unifiedId,GH_UserId,SO_UserId,badges,aboutMe,commentData,active,postQuestions,postAnswers 1,2560475,591785,Critic Nice Question Caucus Constituent Popular Question Nice Question Yearling,,,0,, 2,788538,657108,NULL,NULL,,0,, 3,150462,694891,NULL,NULL,,0,, 4,11194,1543768,Excavator Critic Commentator,NULL,,0,, 5,7001833,943282,Notable Question,NULL,pJust as an FYI you can also specify those things as column attributes For instance might have done ppre code order by model Entry amount desc code prepThis is handy since you can use it on other places such as in relation definition etc ppFor more information you can href http docs sqlalchemy org en latest orm tutorial html rel noreferrer refer this http docs sqlalchemy org en latest core sqlelement html sqlalchemy sql expression ColumnElement desc,0,, 6,238682,943282,Notable Question,NULL,pJust as an FYI you can also specify those things as column attributes For instance might have done ppre code order by model Entry amount desc code prepThis is handy since you can use it on other places such as in relation definition etc ppFor more information you can href http docs sqlalchemy org en latest orm tutorial html rel noreferrer refer this http docs sqlalchemy org en latest core sqlelement html sqlalchemy sql expression ColumnElement desc,0,, 7,387631,513327,NULL,NULL,,0,, 8,314872,247430,Yearling Nice Answer Notable Question Famous Question Yearling Notable Question Nice Question,NULL,,0,, 9,291751,1522845,NULL,NULL,,0,, 10,759571,72908,Popular Question Yearling Nice Answer Nice Question Good Answer Caucus Good Answer Constituent Nice Answer Yearling Good Answer Good Question Necromancer Popular Question Good Answer Nice Answer Famous Question Census Notable Question Yearling Revival Popular Question Nice Answer,NULL,,0,, 11,52748,803280,NULL,NULL,,0,, 12,253145,544221,NULL,NULL,,0,, 13,266238,1159751,Popular Question,NULL,,0,, 14,10899056,981210,Popular Question Notable Question,NULL,,0,, 15,276035,420647,Yearling Student,NULL,,0,, 16,76266,1028338,Notable Question,NULL,,0,, 17,1567727,1234801,NULL,NULL,,0,, 18,284979,1078224,Popular Question Notable Question Citizen Patrol Good Question Yearling Popular Question Promoter Caucus Constituent Custodian Notable Question Tumbleweed Popular Question,NULL,,0,, 19,420715,324025,Editor,NULL,,0,, 20,481357,673970,NULL,NULL,,0,, 21,2371498,1533650,Autobiographer Custodian Custodian Citizen Patrol Yearling Suffrage Organizer Custodian,NULL,,0,, 22,503248,773958,NULL,NULL,,0,, 23,104901,764155,Necromancer,NULL,,0,, 24,1109269,118861,Revival Custodian Informed Custodian Custodian,NULL,,0,, 25,360525,780244,NULL,NULL,,0,, 26,179525,1170802,NULL,NULL,,0,, 27,6094263,811773,NULL,NULL,,0,, 28,94795,811773,NULL,NULL,,0,, 29,3483235,811773,NULL,NULL,,0,, 30,394058,917800,NULL,NULL,,0,, 31,39777,1065241,Guru Good Answer Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Guru Guru Guru Good Answer Nice Answer Guru Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Yearling Good Answer Good Answer Great Answer Nice Answer Enlightened Guru Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Great Answer Great Answer Nice Answer Documentation User Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Great Answer Good Answer Good Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Yearling,NULL,,0,, 32,858493,389430,Nice Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Custodian Nice Question Notable Question Popular Question Yearling Famous Question Notable Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Famous Question Popular Question Nice Question Popular Question Yearling Good Question Nice Question Notable Question,NULL,,0,, 33,7017750,135481,Yearling Yearling Great Question,NULL,,0,, 34,296834,135481,Yearling Yearling Great Question,NULL,,0,, 35,79944,1452380,Teacher,NULL,,0,, 36,50805,1417654,NULL,NULL,,0,, 37,466449,1464989,NULL,NULL,,0,, 38,126968,825806,NULL,NULL,,0,, 39,76272,889203,NULL,NULL,,0,, 40,856372,307610,NULL,NULL,,0,, 41,284642,307610,NULL,NULL,,0,, 42,157653,215458,Popular Question Census,NULL,,0,, 43,38830,829116,Yearling Necromancer Citizen Patrol Yearling Yearling Organizer Explainer Caucus Nice Answer Census Civic Duty Excavator Curious Nice Answer Enlightened Yearling Caucus Revival Announcer Caucus Yearling Popular Question,NULL,,0,, 44,95588,560402,NULL,NULL,,0,, 45,170632,882127,NULL,NULL,,0,, 46,333350,499478,Civic Duty Excavator Enthusiast Yearling Caucus Popular Question Electorate Popular Question Caucus Inquisitive Popular Question Documentation User Yearling Nice Question Custodian Revival Notable Question Caucus Nice Question Announcer Notable Question Nice Question Yearling,NULL,,0,, 47,1850924,1418621,NULL,NULL,,0,, 48,290887,685750,Yearling Notable Question Yearling Popular Question Documentation User Yearling Popular Question,NULL,,0,, 49,1345584,1191658,NULL,NULL,,0,, 50,375000,146457,Curious Necromancer Citizen Patrol Yearling Caucus Notable Question Nice Answer Revival Yearling Necromancer Nice Answer Popular Question Revival Caucus Yearling Necromancer Yearling Necromancer Nice Answer Nice Answer Enlightened Yearling Excavator,NULL,,1,,Is there way to git submodule add repo without cloning it git git submodules pI have very long list of repos that trying to make into one parent repo by making them all submodules ppI ve tried adding them to code gitmodules code manually and also to code git config code but it doesn seem to work ppI ve also tried running codegit submodule sync code and codegit submodule update init code etc but with no luck ppIs there way to trick git into thinking my project has all its 30K submodules without actually needing to clone them all pAfter emlong em walk on the internet found out that you can achieve what you want by writing directly in the git index and create the “gitlink” file type ppre codegit update index add cacheinfo 160000 lt subrepo commit hash gt lt submod path gt code prepAlso do not forget to write the subrepo in code gitmodules code declare the external path mostly 51,580213,951599,NULL,NULL,,0,, 52,147362,794953,Yearling Notable Question Famous Question Famous Question,NULL,,0,, 53,24030,915588,NULL,NULL,,0,, 54,416413,909089,NULL,NULL,,0,, 55,69355,292831,Popular Question Famous Question Nice Question Yearling Famous Question Nice Answer Famous Question Notable Question Popular Question Nice Question Nice Answer Necromancer Nice Question Nice Question Famous Question Popular Question Yearling Notable Question Yearling Notable Question Good Question Great Question Notable Question Famous Question Notable Question,NULL,,0,, 56,83683,606640,Nice Question Popular Question Excavator Popular Question Self-Learner Curious,NULL,,0,, 57,5019,1157588,NULL,NULL,,0,, 58,374682,734588,Popular Question,NULL,,0,, 59,685268,1049383,Nice Answer Enlightened Notable Question Yearling Good Answer Yearling Yearling,NULL,,0,, 60,720421,696632,Announcer Yearling Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Notable Question Nice Answer Nice Answer Enlightened Revival Nice Answer Populist Popular Question Yearling Announcer Nice Answer Announcer Announcer Caucus Nice Answer Good Answer Announcer Revival Nice Answer Nice Answer Populist Good Answer Announcer Announcer Announcer java Announcer Nice Answer Enlightened Announcer Caucus Announcer Notable Question Good Answer Yearling Announcer Announcer Great Answer Announcer Nice Answer Announcer Notable Question Good Answer Nice Answer Enlightened,NULL,,0,, 61,443024,817607,NULL,NULL,,0,, 62,6521743,69666,Famous Question,NULL,,0,, 63,21397,69666,Famous Question,NULL,,0,, 64,201180,1184286,NULL,NULL,,0,, 65,242805,807865,Yearling Editor Nice Answer Custodian Caucus Caucus,NULL,,0,, 66,31146,53912,Yearling Yearling Yearling,NULL,,0,, 67,128527,890866,Editor Custodian Good Answer Yearling,NULL,,0,, 68,9182,1260260,symfony-1.4 Yearling Yearling Nice Answer Enlightened Yearling Caucus,NULL,,0,, 69,101139,1370385,NULL,NULL,,0,, 70,70612,157466,Autobiographer,NULL,,0,, 71,1406370,1137406,Good Question Yearling,NULL,,0,, 72,1523056,1223946,Critic Tumbleweed Yearling Popular Question Revival,NULL,,0,, 73,273503,643369,Popular Question Commentator,NULL,,0,, 74,48592,1311787,Nice Answer Yearling,NULL,,0,, 75,894695,1425131,Informed,NULL,,0,, 76,568746,818535,Popular Question,NULL,,0,, 77,227313,731915,NULL,NULL,,0,, 78,153870,658003,NULL,NULL,,0,, 79,284539,382383,NULL,NULL,,0,, 80,437792,605657,NULL,NULL,,0,, 81,167485,579440,Nice Answer Necromancer Necromancer Yearling Nice Answer Nice Answer Yearling Nice Answer Yearling,NULL,,0,, 82,19752,376483,Notable Question Notable Question Great Answer Favorite Question Necromancer Strunk & White Yearling Good Answer Famous Question Announcer Nice Answer Necromancer Necromancer Nice Answer Caucus Constituent Necromancer Necromancer Famous Question Nice Answer Census Pundit Notable Question Notable Question Great Answer Famous Question Nice Question Yearling Popular Question Famous Question Caucus Constituent Nice Answer Notable Question Announcer Documentation User Necromancer Good Question Popular Question Good Answer Caucus Necromancer Necromancer Yearling Notable Question Great Answer Nice Answer Good Answer Good Answer,NULL,h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre Here you 100th on that answer Clear throughout and to the point Thanks,0,, 83,35419,475688,NULL,NULL,,0,, 84,49459,774191,Notable Question,NULL,,0,, 85,119567,811545,NULL,NULL,,0,, 86,4300180,986322,NULL,NULL,,0,, 87,303686,811197,NULL,NULL,,0,, 88,122030,1059905,Popular Question,NULL,,0,, 89,685153,1106159,NULL,NULL,,0,, 90,174848,1027952,NULL,NULL,,0,, 91,339945,717154,NULL,NULL,,0,, 92,383071,464700,NULL,NULL,,0,, 93,208778,586322,NULL,NULL,,0,, 94,6097,712516,NULL,NULL,,0,, 95,118901,1518143,NULL,NULL,,0,, 96,44420,269244,Commentator Student,NULL,,0,, 97,94786,732655,NULL,NULL,,0,, 98,458821,348756,NULL,NULL,,0,, 99,1613031,705254,NULL,NULL,,0,, 100,367543,941931,NULL,NULL,,0,, 101,559718,1305895,NULL,NULL,NULL,0,NULL,NULL 102,1538011,1414523,NULL,NULL,NULL,0,NULL,NULL 103,223284,700875,NULL,NULL,NULL,0,NULL,NULL 104,3852622,1369264,NULL,NULL,NULL,0,NULL,NULL 105,193115,373378,Yearling Nice Answer Nice Answer Good Answer Good Answer Yearling Nice Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 106,1342940,1176219,Popular Question Yearling,NULL,NULL,0,NULL,NULL 107,326036,299920,Necromancer Yearling Favorite Question Yearling Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 108,263567,1263402,NULL,NULL,NULL,0,NULL,NULL 109,159515,1050860,NULL,NULL,NULL,0,NULL,NULL 110,197690,1287787,NULL,NULL,NULL,0,NULL,NULL 111,503288,1198475,NULL,NULL,NULL,0,NULL,NULL 112,63320,446267,Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened ruby Proofreader Nice Answer Nice Answer Necromancer Yearling ruby-on-rails Caucus Constituent Nice Answer Popular Question Good Answer Nice Answer ruby-on-rails-3 Announcer Caucus Yearling Good Answer Necromancer Nice Answer Taxonomist Necromancer Caucus Constituent Good Answer Yearling Enlightened Revival,NULL,Temporarily unscope model associations ruby on rails activerecord pAssume you have two models ppre codeclass Walrus lt ActiveRecord Base default scope where destroyed at IS NULL has many bubbles dependent destroyendclass Bubble lt ActiveRecord Base default scope where destroyed at IS NULL belongs to walrusend code prepNow if destroy walrus it will also destroy their bubbles set the codedestroyed at code of the codeWalrus code and associated codeBubble code models If want to find destroyed codeWalrus code records can do this ppre codefrank Walrus create frank bubbles create frank destroy Destroys both the walrus and bubble recordsWalrus unscoped do frank Walrus first gt lt Walrus frank bubbles gt end code prepWhat need is way to also unscope associations ppThe real world application is model with lots of associations returned through an API so can manually go through each one and unscope the association better way is not to use default scope use named scopes,0,NULL,NULL 113,309415,191070,NULL,NULL,NULL,0,NULL,NULL 114,48501,954359,Notable Question,NULL,NULL,0,NULL,NULL 115,380004,1354775,NULL,NULL,NULL,0,NULL,NULL 116,87881,438781,Notable Question,NULL,NULL,0,NULL,NULL 117,1523,839769,Student,NULL,NULL,0,NULL,NULL 118,1050426,460734,NULL,NULL,NULL,0,NULL,NULL 119,279609,1003213,NULL,NULL,NULL,0,NULL,NULL 120,210212,173937,Teacher Census Curious Yearling Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 121,355936,931978,NULL,NULL,NULL,0,NULL,NULL 122,102727,998687,Nice Answer Nice Question Revival Mortarboard Notable Question Good Answer Notable Question Nice Answer Yearling Good Answer Custodian Nice Answer Famous Question Necromancer Yearling Self-Learner Nice Answer Good Answer Revival Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 123,368544,293832,NULL,NULL,NULL,0,NULL,NULL 124,796482,324878,NULL,NULL,NULL,0,NULL,NULL 125,232611,914859,Inquisitive Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 126,473,449162,Yearling Nice Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 127,27843,122080,Famous Question Nice Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Good Answer ruby-on-rails Peer Pressure Nice Answer Great Answer Yearling Caucus Good Answer Nice Answer Documentation User Good Answer Great Question Favorite Question Caucus Constituent Nice Answer Enlightened Yearling Popular Question git,NULL,NULL,0,NULL,NULL 128,370615,500696,Critic Notable Question Yearling Organizer Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 129,2895369,1376917,NULL,NULL,NULL,0,NULL,NULL 130,97100,1376917,NULL,NULL,NULL,0,NULL,NULL 131,398943,750510,Good Answer Nice Answer Enlightened Popular Question Nice Question Notable Question Announcer Announcer Booster Reviewer Strunk & White Popular Question Reviewer Archaeologist Necromancer Yearling Copy Editor Popular Question Popular Question Popular Question Notable Question Great Answer Necromancer Documentation Pioneer Nice Answer Nice Answer Nice Answer Notable Question Guru Nice Answer Caucus Popular Question Good Answer Notable Question Nice Answer Enlightened Announcer Yearling Notable Question Announcer Announcer Good Answer Popular Question Caucus Constituent git Guru Good Answer Documentation User Investor java Altruist Peer Pressure Steward Announcer Booster Famous Question Nice Answer Good Question Mortarboard Announcer Announcer Notable Question Publicist Popular Question Booster Booster Good Answer Popular Question Publicist Publicist Census Popular Question Famous Question Caucus Notable Question Good Answer Popular Question Constituent Announcer Announcer Booster Booster Famous Question Nice Question Notable Question Yearling Famous Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Notable Question Good Question Notable Question Nice Answer Enlightened Revival Guru Necromancer Necromancer Announcer,NULL,NULL,0,NULL,NULL 132,3106730,934878,NULL,NULL,NULL,0,NULL,NULL 133,9530,765118,NULL,NULL,NULL,0,NULL,NULL 134,6386,26406,Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Necromancer google-api Nice Answer Guru Tag Editor Nice Question Announcer Nice Answer Nice Answer Enlightened Good Answer Yearling Caucus Announcer Good Answer Revival Populist Generalist Nice Answer Enlightened Nice Answer Notable Question google-plus Caucus Yearling json Announcer google-chrome Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 135,193833,1279355,Notable Question Good Answer Yearling Strunk & White Revival Caucus Constituent Proofreader Custodian Census Yearling Popular Question Caucus Explainer Census Notable Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 136,155597,673882,Notable Question Custodian Yearling Informed Autobiographer Yearling Tumbleweed Good Answer Announcer Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 137,407050,1223952,NULL,NULL,NULL,0,NULL,NULL 138,270650,1498822,Popular Question Curious Commentator Popular Question Notable Question Popular Question Notable Question Famous Question Nice Question Teacher,NULL,NULL,0,NULL,NULL 139,812377,522404,NULL,NULL,NULL,0,NULL,NULL 140,1037838,856016,NULL,NULL,NULL,0,NULL,NULL 141,967415,956998,NULL,NULL,NULL,0,NULL,NULL 142,4156,798714,NULL,NULL,NULL,0,NULL,NULL 143,1951200,760079,Nice Question,NULL,NULL,0,NULL,NULL 144,458607,760079,Nice Question,NULL,NULL,0,NULL,NULL 145,1115749,1128519,NULL,NULL,NULL,0,NULL,NULL 146,112837,1254873,Tumbleweed,NULL,NULL,0,NULL,NULL 147,131168,905368,NULL,NULL,NULL,0,NULL,NULL 148,18688,460455,NULL,NULL,NULL,0,NULL,NULL 149,161295,1486206,Announcer Announcer,NULL,NULL,0,NULL,NULL 150,1390213,714573,NULL,NULL,NULL,0,NULL,NULL 151,155365,709215,NULL,NULL,NULL,0,NULL,NULL 152,114950,918143,Nice Answer Nice Answer Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 153,10233032,712734,Documentation User Curious Autobiographer,NULL,NULL,0,NULL,NULL 154,619151,712734,Documentation User Curious Autobiographer,NULL,NULL,0,NULL,NULL 155,1296672,1082850,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 156,21558,1082850,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 157,223329,211641,Census Popular Question,NULL,NULL,0,NULL,NULL 158,923088,1078303,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 159,240693,225373,NULL,NULL,NULL,0,NULL,NULL 160,1843252,225373,NULL,NULL,NULL,0,NULL,NULL 161,250401,1450250,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 162,506718,1180919,NULL,NULL,NULL,0,NULL,NULL 163,165701,611215,Necromancer Yearling Caucus Necromancer Caucus Popular Question,NULL,Get MIME type by URL php file mime types pFore example codeexif imagetype code works fine ppre code lt php echo exif imagetype http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepBut codefinfo file code does not work ppre code lt php echo finfo file finfo open FILEINFO MIME http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepand got ppre codeWarning finfo file Failed identify data null in test php on line code prepAny thoughts exif imagetype and finfo file use the same php stream open wrapper method and read content of the file,1,Get MIME type by URL php file mime types pFore example codeexif imagetype code works fine ppre code lt php echo exif imagetype http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepBut codefinfo file code does not work ppre code lt php echo finfo file finfo open FILEINFO MIME http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepand got ppre codeWarning finfo file Failed identify data null in test php on line code prepAny thoughts,NULL 164,139194,329063,Nice Answer Pundit Necromancer Necromancer Revival Necromancer Yearling Nice Answer Nice Answer Popular Question Nice Answer Enlightened Necromancer Necromancer Famous Question Good Answer Good Answer Good Answer Good Answer Necromancer Nice Question Nice Answer Good Answer Yearling Popular Question Announcer Necromancer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Good Question Great Answer Revival Good Answer Notable Question Nice Answer Yearling Good Answer Nice Answer Guru clojure Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 165,273842,1320098,NULL,NULL,NULL,0,NULL,NULL 166,2504204,1179571,NULL,NULL,NULL,0,NULL,NULL 167,722567,1179571,NULL,NULL,NULL,0,NULL,NULL 168,8973,579266,NULL,NULL,NULL,0,NULL,NULL 169,112864,28571,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 170,84519,637669,Guru Populist Custodian Yearling Revival Good Answer haskell Revival Nice Question Documentation Pioneer Nice Question Caucus Constituent Informed c Popular Question Good Answer Announcer Popular Question Notable Question Custodian Yearling Revival Announcer llvm Suffrage Vox Populi Caucus Constituent Nice Answer Electorate Documentation User Nice Answer Enlightened Pundit Steward Nice Answer Enlightened Nice Answer Nice Answer Enlightened Census Nice Answer Yearling Nice Answer Caucus Nice Answer Constituent Good Answer Notable Question Good Answer Guru Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 171,116275,1361051,NULL,NULL,NULL,0,NULL,NULL 172,192327,1549405,Yearling,NULL,NULL,0,NULL,NULL 173,687101,879672,NULL,NULL,NULL,0,NULL,NULL 174,173370,833690,NULL,NULL,NULL,0,NULL,NULL 175,185015,767177,Yearling Famous Question Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 176,6744047,767177,Yearling Famous Question Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 177,2677672,869587,NULL,NULL,NULL,0,NULL,NULL 178,149385,1101248,NULL,NULL,NULL,0,NULL,NULL 179,184618,1356069,NULL,NULL,NULL,0,NULL,NULL 180,839895,874991,NULL,NULL,NULL,0,NULL,NULL 181,164949,971354,NULL,NULL,NULL,0,NULL,NULL 182,917070,701329,Popular Question,NULL,NULL,0,NULL,NULL 183,410723,1236497,Popular Question,NULL,NULL,0,NULL,NULL 184,116259,1057262,NULL,NULL,NULL,0,NULL,NULL 185,8127714,1057262,NULL,NULL,NULL,0,NULL,NULL 186,502846,826722,NULL,NULL,NULL,0,NULL,NULL 187,142893,1179409,NULL,NULL,NULL,0,NULL,NULL 188,1735646,607055,Notable Question Caucus Constituent Custodian Custodian Census Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 189,172898,607055,Notable Question Caucus Constituent Custodian Custodian Census Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 190,2207366,1389252,Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 191,649603,964271,Famous Question,NULL,NULL,0,NULL,NULL 192,44838,964271,Famous Question,NULL,NULL,0,NULL,NULL 193,245262,1564660,NULL,NULL,NULL,0,NULL,NULL 194,178001,860436,NULL,NULL,NULL,0,NULL,NULL 195,85132,386803,Popular Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 196,380055,954418,NULL,NULL,NULL,0,NULL,NULL 197,412096,851686,NULL,NULL,NULL,0,NULL,NULL 198,25726,1053202,NULL,NULL,NULL,0,NULL,NULL 199,6125006,1053202,NULL,NULL,NULL,0,NULL,NULL 200,336486,1102960,Self-Learner Popular Question Popular Question Notable Question Yearling Popular Question Caucus Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Caucus Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 201,2650579,1114376,NULL,NULL,NULL,0,NULL,NULL 202,396065,614529,Editor,NULL,NULL,0,NULL,NULL 203,100787,182954,Guru Popular Question Yearling Great Question Great Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 204,792696,1309740,Notable Question Popular Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 205,305428,926925,NULL,NULL,NULL,0,NULL,NULL 206,10996283,1276979,Teacher Informed Supporter Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 207,629098,1046816,NULL,NULL,NULL,0,NULL,NULL 208,1349224,1211671,NULL,NULL,NULL,0,NULL,NULL 209,175579,1201691,NULL,NULL,NULL,0,NULL,NULL 210,255854,975205,NULL,NULL,NULL,0,NULL,NULL 211,153182,1175977,Teacher,NULL,NULL,0,NULL,NULL 212,299198,767514,NULL,NULL,NULL,0,NULL,NULL 213,194536,1307754,NULL,NULL,NULL,0,NULL,NULL 214,555417,1423473,Custodian Popular Question Popular Question Yearling Nice Answer Enlightened Announcer Nice Answer Famous Question Notable Question Yearling Announcer Announcer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 215,201394,546095,Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 216,129781,1102499,NULL,NULL,NULL,0,NULL,NULL 217,216334,390523,Civic Duty Yearling Caucus Constituent Nice Answer Enlightened Yearling Caucus Constituent Caucus Constituent Yearling Excavator,NULL,NULL,0,NULL,NULL 218,46944,839244,NULL,NULL,NULL,0,NULL,NULL 219,3051,181317,Popular Question Yearling Commentator Caucus Notable Question Caucus Popular Question Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 220,1203986,691899,NULL,NULL,NULL,0,NULL,NULL 221,4003928,691899,NULL,NULL,NULL,0,NULL,NULL 222,180858,903875,Critic Popular Question,NULL,NULL,0,NULL,NULL 223,170182,1388935,NULL,NULL,NULL,0,NULL,NULL 224,79492,521121,NULL,NULL,NULL,0,NULL,NULL 225,142249,499189,NULL,NULL,NULL,0,NULL,NULL 226,41529,78782,Strunk & White Yearling Nice Question Popular Question Announcer Good Question Famous Question Notable Question Popular Question Caucus Notable Question Yearling Good Question Famous Question Caucus Constituent Great Answer Notable Question Yearling Caucus Constituent Notable Question Notable Question,NULL,NULL,0,NULL,NULL 227,860818,16945,NULL,NULL,NULL,0,NULL,NULL 228,66511,145413,Informed,NULL,NULL,0,NULL,NULL 229,457458,382292,NULL,NULL,NULL,0,NULL,NULL 230,544864,476756,Notable Question Famous Question Popular Question Good Question Popular Question Notable Question Popular Question Famous Question Yearling Notable Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 231,726134,99379,Notable Question Nice Question Nice Question Notable Question Caucus Constituent Announcer Popular Question Popular Question Famous Question Popular Question Announcer Popular Question Popular Question Nice Question Notable Question Yearling Announcer Notable Question Popular Question Notable Question Good Question Necromancer Popular Question Notable Question,NULL,How to use CMake ExternalProject Add or alternatives in cross platform way cmake cross platform external project pI would like to build third party project that already has CMake as part of my project CMake strips ExternalProject Add is for this purpose but have found it can only be made to work with specific generator and wanted to work on many platforms easily ppFor example here is my external project add script for zlib which has its own CMakeLists txt ppre code set USE PROJECT CMAKE MODULE PATH DCMAKE MODULE PATH MAKE MODULE PATH ExternalProject Add ZLIB SOURCE DIR CMAKE SOURCE DIR external zlib DOWNLOAD COMMAND UPDATE COMMAND CMAKE ARGS DCMAKE INSTALL PREFIX lt INSTALL DIR gt DCMAKE CXX FLAGS CMAKE CXX FLAGS DCMAKE FLAGS CMAKE FLAGS DCMAKE BUILD TYPE CMAKE BUILD TYPE USE PROJECT CMAKE MODULE PATH INSTALL COMMAND ExternalProject Add Step ZLIB installInternally COMMAND cd lt BINARY DIR gt amp amp make install DEPENDEES install ALWAYS ExternalProject Get Property ZLIB install dir if UNIX set ZLIB NAME libz else UNIX set ZLIB NAME zlib endif UNIX add library zlib UNKNOWN IMPORTED set property TARGET zlib PROPERTY IMPORTED LOCATION install dir lib ZLIB NAME set ZLIB LIBRARIES zlib set ZLIB LIBRARIES OPTIONAL ZLIB LIBRARIES set ZLIB DIR install dir CACHE INTERNAL zlib ROOT dir set ZLIB INCLUDE DIRS install dir include CACHE INTERNAL zlib include dirs set ZLIB DEFINES msse2 mfpmath sse CACHE INTERNAL zlib defines code prepThe problem with this is that it works with make but not with Xcode or Visual Studio Perhaps there is some way to take the cmake build commands passed to my project and forward them to ExternalProject Add ppHow can write ExternalProject Add calls in cross platform way with minimal code complexity or is there better alternative Found another tool that can serve this purpose https conan io,0,NULL,NULL 232,7618008,903877,Necromancer Yearling,NULL,NULL,0,NULL,NULL 233,208199,903877,Necromancer Yearling,NULL,NULL,0,NULL,NULL 234,214049,824985,NULL,NULL,NULL,0,NULL,NULL 235,2985058,640296,Student Nice Question Scholar Nice Answer Yearling Popular Question Notable Question Famous Question Good Question,NULL,NULL,1,What is the proper way to determine if an object is bytes like object in Python python python pI have code that expects codestr code but will handle the case of being passed codebytes code in the following way ppre codeif isinstance data bytes data data decode code prepUnfortunately this does not work in the case of codebytearray code Is there more generic way to test whether an object is either codebytes code or codebytearray code or should just check for both Is codehasattr decode code as bad as feel it would be,NULL 236,204540,1100963,NULL,NULL,NULL,0,NULL,NULL 237,270190,239784,NULL,NULL,NULL,0,NULL,NULL 238,394246,841593,NULL,NULL,NULL,0,NULL,NULL 239,433993,459141,NULL,NULL,NULL,0,NULL,NULL 240,1216101,834455,NULL,NULL,NULL,0,NULL,NULL 241,86179,836756,Yearling ruby-on-rails Yearling Yearling,NULL,NULL,0,NULL,NULL 242,463325,285496,Curious,NULL,NULL,0,NULL,NULL 243,142546,284428,Yearling Popular Question Yearling Good Question Excavator Tumbleweed Promoter Yearling,NULL,NULL,0,NULL,NULL 244,117154,855592,Scholar Yearling Caucus Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 245,658281,597539,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 246,447562,818444,Famous Question Famous Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 247,68353,1500225,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 248,43054,793042,NULL,NULL,NULL,0,NULL,NULL 249,6037,793042,NULL,NULL,NULL,0,NULL,NULL 250,83768,1231626,Notable Question,NULL,NULL,0,NULL,NULL 251,119164,799502,Revival,NULL,NULL,0,NULL,NULL 252,369057,656669,Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Caucus Yearling Necromancer Notable Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 253,489807,915859,Popular Question Revival Necromancer,NULL,NULL,0,NULL,NULL 254,450961,1334795,NULL,NULL,NULL,0,NULL,NULL 255,591256,336312,Commentator Tumbleweed Caucus Yearling Nice Answer Enlightened Announcer Yearling Popular Question Good Answer Yearling Critic Guru Yearling,NULL,NULL,0,NULL,NULL 256,2533888,336312,Commentator Tumbleweed Caucus Yearling Nice Answer Enlightened Announcer Yearling Popular Question Good Answer Yearling Critic Guru Yearling,NULL,NULL,0,NULL,NULL 257,79480,386064,Necromancer Popular Question Popular Question Yearling Caucus Notable Question Necromancer Caucus Nice Answer Necromancer Yearling Necromancer Caucus Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 258,139088,898258,Revival Good Question Citizen Patrol Tumbleweed,NULL,NULL,0,NULL,NULL 259,874708,743646,Notable Question,NULL,NULL,0,NULL,NULL 260,1426551,743646,Notable Question,NULL,NULL,0,NULL,NULL 261,237723,688709,NULL,NULL,NULL,0,NULL,NULL 262,427403,618331,Yearling Curious Informed Excavator Nice Answer Yearling Popular Question Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 263,596003,248993,NULL,NULL,NULL,0,NULL,NULL 264,910889,459485,Good Answer Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 265,522240,46220,Yearling Nice Answer Suffrage Announcer Documentation User Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 266,288403,351717,Student Nice Question Popular Question,NULL,NULL,0,NULL,NULL 267,329429,1321575,NULL,NULL,NULL,0,NULL,NULL 268,1050135,625001,Yearling Popular Question Good Answer Yearling Nice Answer Critic Commentator Notable Question,NULL,NULL,0,NULL,NULL 269,279217,601185,Student Editor Commentator Necromancer,NULL,NULL,0,NULL,NULL 270,806436,1232472,NULL,NULL,NULL,0,NULL,NULL 271,463406,809814,NULL,NULL,NULL,0,NULL,NULL 272,50921,1085302,NULL,NULL,NULL,0,NULL,NULL 273,265398,498624,Notable Question Guru Good Question Popular Question Notable Question Popular Question Popular Question Good Question Good Question Popular Question node.js Necromancer Nice Question Popular Question Famous Question angularjs Nice Answer Good Question Notable Question Popular Question Great Answer Popular Question Necromancer Popular Question Notable Question Popular Question Notable Question Notable Question Nice Answer Enlightened Popular Question Enlightened Popular Question Popular Question Great Answer Great Answer Good Question Notable Question Yearling Famous Question Popular Question Famous Question Famous Question Popular Question Notable Question Good Answer Nice Answer Popular Question Good Question Nice Question Popular Question Famous Question Nice Answer Popular Question Popular Question Great Answer Famous Question Popular Question Popular Question Nice Answer Notable Question Taxonomist Notable Question Nice Answer Enlightened Popular Question Famous Question Notable Question Famous Question Notable Question Good Answer Nice Question Popular Question Popular Question Caucus Necromancer Famous Question Nice Question Great Answer Announcer Nice Answer Enlightened Nice Question Custodian Popular Question Popular Question Nice Question Yearling Nice Answer Popular Question Notable Question Good Question Nice Answer Enlightened Notable Question Popular Question Notable Question Guru Great Answer Famous Question Necromancer express Famous Question Great Answer Nice Answer Nice Question Nice Question Nice Question Popular Question Notable Question Nice Question Notable Question Nice Answer Enlightened Yearling Popular Question Notable Question Famous Question,NULL,pRequire is synchronous operation so you can just wrap it in try catch ppre codetry var require home test node project per do stuff catch ex handleErr ex code pre Not really but there no reason you couldn make your own require function and do these checks inside it so instead of throwing the error you can return false,0,NULL,NULL 274,336695,402853,NULL,NULL,NULL,0,NULL,NULL 275,264180,1065291,Popular Question Inquisitive Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Great Question Favorite Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 276,97418,1419186,NULL,NULL,NULL,0,NULL,NULL 277,3069,192264,Great Answer Nice Answer html Good Answer Yearling Nice Answer Pundit Good Answer Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 278,565175,1243496,Popular Question Teacher Commentator,NULL,NULL,0,NULL,NULL 279,472289,1290129,Notable Question Critic Popular Question Popular Question Famous Question Yearling Notable Question Popular Question Famous Question Necromancer Yearling Popular Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 280,160652,1082681,Revival Nice Answer Announcer java Notable Question Announcer Necromancer Necromancer Nice Answer spring-aop Good Answer Good Answer Announcer Revival Nice Answer pointcut Yearling Nice Answer Guru Disciplined Revival Guru Necromancer Nice Answer Enlightened Necromancer Necromancer Announcer Announcer Nice Answer Enlightened Nice Answer Revival Announcer Good Answer Refiner Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Nice Answer aop Announcer Necromancer Announcer Good Answer Nice Answer Necromancer Nice Answer Announcer Necromancer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Announcer Nice Answer Announcer Announcer Caucus Necromancer Nice Answer Enlightened spock Announcer Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Popular Question Necromancer java Nice Answer Enlightened Announcer Guru Announcer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 281,60826,5021,Favorite Question Famous Question Yearling Great Question Guru Popular Question Yearling Excavator Notable Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 282,413055,1193028,Editor,NULL,NULL,0,NULL,NULL 283,274614,803861,NULL,NULL,NULL,0,NULL,NULL 284,302718,212196,Famous Question,NULL,NULL,0,NULL,NULL 285,1289053,943888,NULL,NULL,NULL,0,NULL,NULL 286,339361,645941,NULL,NULL,NULL,0,NULL,NULL 287,2062075,190521,NULL,NULL,NULL,0,NULL,NULL 288,91380,1301970,Curious Yearling Yearling Mortarboard Yearling Commentator Yearling Custodian Critic Custodian Citizen Patrol Popular Question Popular Question Yearling Caucus Excavator Yearling,NULL,NULL,0,NULL,NULL 289,190684,1232802,NULL,NULL,NULL,0,NULL,NULL 290,2977526,1232802,NULL,NULL,NULL,0,NULL,NULL 291,10867,1232802,NULL,NULL,NULL,0,NULL,NULL 292,290065,415902,NULL,NULL,NULL,0,NULL,NULL 293,159132,335588,Good Question Supporter Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 294,2521,281411,Critic Necromancer Revival Popular Question Civic Duty Fanatic Yearling,NULL,NULL,0,NULL,NULL 295,1679888,281411,Critic Necromancer Revival Popular Question Civic Duty Fanatic Yearling,NULL,NULL,0,NULL,NULL 296,129771,394327,Nice Answer Mortarboard Good Answer Enlightened Guru Yearling Caucus Nice Answer Yearling Popular Question Caucus Popular Question Yearling Nice Answer Autobiographer,NULL,pThe solution provided by rgrinberg can be generalized so that we can memoize any function am going to use associative lists instead of hashtables But it does not really matter you can easily convert all my examples to use hashtables ppFirst here is function codememo code which takes another function and returns its memoized version It is what nlucaroni suggested in one of the comments ppre codelet memo let ref in fun gt try List assoc with Not found gt let in code prepThe function codememo code keeps list codem code of results computed so far When asked to compute codef code it first checks codem code to see if codef code has been computed already If yes it returns the result otherwise it actually computes codef code stores the result in codem code and returns it ppThere is problem with the above codememo code in case codef code is recursive Once codememo code calls codef code to compute codef code any recursive calls made by codef code will not be intercepted by codememo code To solve this problem we need to do two things polli pIn the definition of such recursive codef code we need to substitute recursive calls with calls to function to be provided later this will be the memoized version of codef code lili pIn codememo code we need to provide codef code with the promised function which you should call when you want to make recursive call li olpThis leads to the following solution ppre codelet memo rec let ref in let rec try List assoc with Not found gt let in in code prepTo demonstrate how this works let us memoize the naive Fibonacci function We need to write it so that it accepts an extra argument which will call codeself code This argument is what the function should use instead of recursively calling itself ppre codelet fib self function gt gt gt self self code prepNow to get the memoized codefib code we compute ppre codelet fib memoized memo rec fib code prepYou are welcome to try it out to see that codefib memoized 50 code returns instantly This is not so for codememo code where codef code is the usual naive recursive definition What If you memoize that will memoize on the first argument since this example is just where You seem to be stating wrongly that it is memoizing the result of function of type but that not the case pThe solution provided by rgrinberg can be generalized so that we can memoize any function am going to use associative lists instead of hashtables But it does not really matter you can easily convert all my examples to use hashtables ppFirst here is function codememo code which takes another function and returns its memoized version It is what nlucaroni suggested in one of the comments ppre codelet memo let ref in fun gt try List assoc with Not found gt let in code prepThe function codememo code keeps list codem code of results computed so far When asked to compute codef code it first checks codem code to see if codef code has been computed already If yes it returns the result otherwise it actually computes codef code stores the result in codem code and returns it ppThere is problem with the above codememo code in case codef code is recursive Once codememo code calls codef code to compute codef code any recursive calls made by codef code will not be intercepted by codememo code To solve this problem we need to do two things polli pIn the definition of such recursive codef code we need to substitute recursive calls with calls to function to be provided later this will be the memoized version of codef code lili pIn codememo code we need to provide codef code with the promised function which you should call when you want to make recursive call li olpThis leads to the following solution ppre codelet memo rec let ref in let rec try List assoc with Not found gt let in in code prepTo demonstrate how this works let us memoize the naive Fibonacci function We need to write it so that it accepts an extra argument which will call codeself code This argument is what the function should use instead of recursively calling itself ppre codelet fib self function gt gt gt self self code prepNow to get the memoized codefib code we compute ppre codelet fib memoized memo rec fib code prepYou are welcome to try it out to see that codefib memoized 50 code returns instantly This is not so for codememo code where codef code is the usual naive recursive definition indeed done and thanks,0,NULL,NULL 297,1122942,1303422,Yearling Necromancer Notable Question Good Answer Yearling Custodian Necromancer Yearling Curious Good Answer Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 298,98571,988645,Nice Answer,NULL,NULL,0,NULL,NULL 299,944064,84693,NULL,NULL,NULL,0,NULL,NULL 300,209715,296605,NULL,NULL,NULL,0,NULL,NULL 301,543710,4827,NULL,NULL,NULL,0,NULL,NULL 302,565049,1153113,NULL,NULL,NULL,0,NULL,NULL 303,4302,783305,Supporter Notable Question,NULL,NULL,0,NULL,NULL 304,63467,1405539,NULL,NULL,NULL,0,NULL,NULL 305,165154,1213533,NULL,NULL,NULL,0,NULL,NULL 306,4822,195261,NULL,NULL,NULL,0,NULL,NULL 307,491584,712954,NULL,NULL,NULL,0,NULL,NULL 308,162280,452181,NULL,NULL,NULL,0,NULL,NULL 309,478658,1540181,NULL,NULL,NULL,0,NULL,NULL 310,433123,792703,Yearling,NULL,NULL,0,NULL,NULL 311,119732,516179,Custodian Citizen Patrol Caucus Yearling Curious,NULL,NULL,0,NULL,NULL 312,362629,1111356,Good Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 313,918279,120517,Notable Question Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 314,131500,1286044,Yearling Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 315,166858,5599,Nice Answer Nice Question Popular Question Good Question Popular Question Announcer c# Yearling Custodian Famous Question Necromancer Nice Question Good Question Necromancer Yearling Nice Answer Announcer Popular Question Announcer Notable Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 316,201641,366435,Necromancer Enthusiast Notable Question Nice Answer Yearling Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 317,133626,656988,Nice Answer Organizer Yearling Student Revival,NULL,NULL,0,NULL,NULL 318,139423,307250,NULL,NULL,NULL,0,NULL,NULL 319,1784418,538787,NULL,NULL,NULL,0,NULL,NULL 320,394276,405335,Revival,NULL,NULL,0,NULL,NULL 321,1810433,937989,NULL,NULL,NULL,0,NULL,NULL 322,1387718,689839,NULL,NULL,NULL,0,NULL,NULL 323,1776165,1008377,NULL,NULL,NULL,0,NULL,NULL 324,91711,214248,NULL,NULL,NULL,0,NULL,NULL 325,441717,949090,NULL,NULL,NULL,0,NULL,NULL 326,1267213,949090,NULL,NULL,NULL,0,NULL,NULL 327,201344,274819,NULL,NULL,NULL,0,NULL,NULL 328,133738,35247,Popular Question Notable Question Popular Question Good Question Popular Question Famous Question Notable Question Yearling Nice Answer Notable Question Popular Question Necromancer Notable Question Notable Question Notable Question Nice Question Yearling Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 329,7208235,1326568,Teacher Informed,NULL,NULL,0,NULL,NULL 330,137696,867814,Notable Question Popular Question Nice Question Notable Question Famous Question Nice Answer Yearling Notable Question Popular Question Announcer Good Question Popular Question Yearling Announcer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 331,270644,1386750,Commentator Critic Necromancer Student Yearling Excavator,NULL,NULL,0,NULL,NULL 332,1160321,1310567,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 333,279277,608820,Nice Answer Enlightened Favorite Question Guru Yearling Nice Answer Popular Question Guru ruby-on-rails-3 Revival Nice Answer Enlightened Nice Answer Good Answer Yearling Good Answer Nice Answer Enlightened Caucus Constituent Good Answer Documentation User Nice Answer Nice Answer Enlightened Nice Answer Yearling spring mysql Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 334,113037,1350003,NULL,NULL,NULL,0,NULL,NULL 335,600227,277339,Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 336,527906,16795,Yearling Great Answer Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 337,810561,854942,NULL,NULL,NULL,0,NULL,NULL 338,1548484,1325423,hadoop Yearling Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened asp.net Necromancer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 339,1172921,1503063,NULL,NULL,NULL,0,NULL,NULL 340,16528,6366,Yearling Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 341,30868,258901,NULL,NULL,NULL,0,NULL,NULL 342,1467936,1343399,NULL,NULL,NULL,0,NULL,NULL 343,1129352,1343399,NULL,NULL,NULL,0,NULL,NULL 344,1129353,1343399,NULL,NULL,NULL,0,NULL,NULL 345,901537,1378789,NULL,NULL,NULL,0,NULL,NULL 346,20318,945906,Scholar Necromancer Yearling Necromancer Tumbleweed Nice Answer Enlightened Nice Answer Yearling Documentation User Revival Necromancer Revival Necromancer Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 347,174131,1144475,Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Civic Duty Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 348,367145,1072200,Good Answer,NULL,NULL,0,NULL,NULL 349,9696,44089,Guru Famous Question Nice Answer Good Answer Disciplined Nice Answer Nice Question Nice Answer Nice Question eclipse Self-Learner Caucus Custodian Constituent Yearling Notable Question Announcer Popular Question Popular Question Census Enlightened Guru Caucus Constituent Famous Question java Documentation User Nice Question Nice Answer Enlightened Yearling Census Nice Answer Caucus Constituent Nice Answer Good Answer Guru Nice Answer Good Question,NULL,NULL,0,NULL,NULL 350,521816,569349,Editor,NULL,NULL,0,NULL,NULL 351,793859,1215159,Nice Answer,NULL,NULL,0,NULL,NULL 352,985023,1160011,NULL,NULL,NULL,0,NULL,NULL 353,1833338,990769,Popular Question Curious,NULL,NULL,0,NULL,NULL 354,633,783937,Yearling Revival Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 355,34383,984000,NULL,NULL,NULL,0,NULL,NULL 356,42189,61712,Famous Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 357,194848,160917,Notable Question Popular Question Necromancer Yearling Necromancer Popular Question Nice Question Necromancer Nice Answer Necromancer Yearling Necromancer Documentation User Nice Answer Custodian Inquisitive Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 358,113536,508437,NULL,NULL,NULL,0,NULL,NULL 359,904670,906658,Notable Question Great Answer Notable Question Guru Good Answer Nice Answer Notable Question Nice Answer Popular Question Yearling Notable Question Popular Question Caucus Announcer Necromancer Popular Question Necromancer Caucus Yearling Notable Question Good Answer Caucus Announcer Pundit Nice Question Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 360,10715,906658,Notable Question Great Answer Notable Question Guru Good Answer Nice Answer Notable Question Nice Answer Popular Question Yearling Notable Question Popular Question Caucus Announcer Necromancer Popular Question Necromancer Caucus Yearling Notable Question Good Answer Caucus Announcer Pundit Nice Question Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 361,192539,503993,Popular Question,NULL,NULL,0,NULL,NULL 362,430926,547712,NULL,NULL,NULL,0,NULL,NULL 363,3242148,350511,Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Nice Question Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 364,597636,1392543,NULL,NULL,NULL,0,NULL,NULL 365,2442912,1392543,NULL,NULL,NULL,0,NULL,NULL 366,301531,1104670,NULL,NULL,NULL,0,NULL,NULL 367,150179,830702,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 368,2396050,247675,Yearling Popular Question Popular Question Popular Question Yearling Good Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 369,310326,247675,Yearling Popular Question Popular Question Popular Question Yearling Good Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 370,83518,1516135,NULL,NULL,NULL,0,NULL,NULL 371,722855,1537019,Popular Question,NULL,NULL,0,NULL,NULL 372,149620,51001,NULL,NULL,NULL,0,NULL,NULL 373,153396,743515,NULL,NULL,NULL,0,NULL,NULL 374,50815,1320630,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 375,392269,841361,NULL,NULL,NULL,0,NULL,NULL 376,2834449,841361,NULL,NULL,NULL,0,NULL,NULL 377,100424,617196,NULL,NULL,NULL,0,NULL,NULL 378,136144,342862,Popular Question Custodian Famous Question Popular Question Nice Question Famous Question Yearling Notable Question Caucus Constituent Notable Question Nice Question Good Question Caucus Popular Question Announcer Popular Question Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 379,366715,1405065,Nice Answer Good Answer Nice Answer Deputy Nice Answer Enlightened Good Answer Nice Answer Yearling Necromancer Nice Answer Enlightened Nice Answer Nice Answer Enlightened python-3.x Good Answer Nice Answer Good Answer numpy Caucus Nice Answer Refiner Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer python-2.7 Guru class Yearling Nice Answer Nice Answer algorithm Caucus Constituent arrays Nice Answer Enlightened Announcer recursion Good Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened Caucus Constituent Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Sportsmanship Nice Answer Nice Answer Enlightened Good Answer,NULL,pThe simplest way would be to use codelist index code to generate sort value for your list of dictionaries ppre codelistTwo sort key lambda listOne index eyecolor code prepThis is little bit inefficient though since codelist index code does linear search through the eye color list If you had many eye colors to check against it would be slow somewhat better approach would build an index dictionary instead ppre codeorder dict color index for index color in enumerate listOne listTwo sort key lambda order dict eyecolor code prepIf you don want to modify codelistTwo code you can use the built in codesorted code function instead of the codelist sort code method It returns sorted copy of the list rather than sorting in place default value would be pretty easy Just use order dict get eyecolor default in the second version The most reasonable defaults are probably to sort unknown values at the start and float inf to sort them at the end Removing the values would be only bit more complicated You need to use filter or an equivalent list comprehension before sorting pHow about ppre codetry chr unichr Python 2except NameError pass Python 3i 404c chr is now regardless of Python version code prepYou could also create your own function name if you didn want to overwrite Python codechr code guess it is working but you re doing something with the string you get that makes you think it not ASCII and Unicode character 32 is space so doing something like print chr 32 will print what looks like blank line but which actually has one invisible space character on it,0,NULL,NULL 380,119391,714143,Enthusiast Yearling Editor Commentator Informed Custodian Citizen Patrol Yearling Autobiographer Caucus Constituent Fanatic Suffrage Vox Populi Nice Answer Yearling Custodian Custodian Yearling Explainer Organizer Caucus Documentation User Tenacious Nice Answer Yearling Enlightened Scholar Civic Duty,NULL,,0,, 381,484167,1193658,Good Answer Caucus,NULL,NULL,0,NULL,NULL 382,893585,516794,Informed,NULL,NULL,0,NULL,NULL 383,158448,916905,Editor Scholar,NULL,NULL,0,NULL,NULL 384,273932,932279,NULL,NULL,NULL,0,NULL,NULL 385,10294,15695,Nice Answer Good Answer Necromancer Notable Question Popular Question Pundit Good Answer Necromancer Yearling Notable Question Notable Question Good Answer Populist Necromancer Good Answer Favorite Question Announcer Popular Question Caucus Good Answer Yearling Nice Answer Popular Question Nice Answer Notable Question Yearling Necromancer,NULL,NULL,1,How to vertically center an element when using WearableDrawerLayout wear os android wear pI am using codeWearableDrawerLayout code and testing on emulator with chin am trying to have an element vertically centered Instead what see is that the element is centered in the area of the screen minus the chin it is bit shifted towards the top of the screen ppWhat see pp href https stack imgur com uZUmI png rel nofollow noreferrer img src https stack imgur com uZUmI png alt enter image description here ppWhat should see pp href https stack imgur com w1erv png rel nofollow noreferrer img src https stack imgur com w1erv png alt enter image description here ppFrom what can tell in the non public source of codeWearableDrawerLayout code think this is due to this bit ppre codepublic WindowInsets onApplyWindowInsets WindowInsets insets this mSystemWindowInsetBottom insets getSystemWindowInsetBottom if this mSystemWindowInsetBottom MarginLayoutParams layoutParams MarginLayoutParams this getLayoutParams layoutParams bottomMargin this mSystemWindowInsetBottom this setLayoutParams layoutParams return super onApplyWindowInsets insets code prep strongWhat can do to not have this problem strong pp strongEdit strong here is another example of layout that demonstrates the issue pp href https stack imgur com uUdgK png rel nofollow noreferrer img src https stack imgur com uUdgK png alt enter image description here ppAs you can see the chin is not included in the available area which means the codeBoxInsetLayout code has height smaller than it should As consequence its button children are too high they re not bottom aligned ppHere my edit sorry about my Gimp skills that shows the round display and also where the codeBoxInsetLayout code and buttons should go pp href https stack imgur com 3wEJB jpg rel nofollow noreferrer img src https stack imgur com 3wEJB jpg alt enter image description here,NULL 386,1503200,1135607,Scholar,NULL,NULL,0,NULL,NULL 387,473670,896263,NULL,NULL,NULL,0,NULL,NULL 388,245642,1565705,NULL,NULL,NULL,0,NULL,NULL 389,415961,367255,NULL,NULL,NULL,0,NULL,NULL 390,615382,304299,Yearling Notable Question Popular Question Guru Popular Question Popular Question Nice Question Yearling Revival Great Question Famous Question c# Yearling Famous Question,NULL,NULL,0,NULL,NULL 391,78643,950870,NULL,NULL,NULL,0,NULL,NULL 392,720167,670156,Commentator Editor Tumbleweed Necromancer Critic,NULL,NULL,0,NULL,NULL 393,9075046,1368589,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 394,333566,1153730,Teacher,NULL,NULL,0,NULL,NULL 395,174082,708355,Autobiographer,NULL,NULL,0,NULL,NULL 396,25303,671169,Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 397,1470296,807809,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 398,6192879,807809,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 399,105090,350312,Announcer Caucus Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 400,460502,477382,Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 401,227600,837730,NULL,NULL,NULL,0,NULL,NULL 402,254443,550511,Nice Answer,NULL,NULL,0,NULL,NULL 403,396853,1110113,NULL,NULL,NULL,0,NULL,NULL 404,802334,14609,Famous Question Promoter Benefactor Popular Question Famous Question Popular Question Critic,NULL,NULL,0,NULL,NULL 405,562425,542288,NULL,NULL,NULL,0,NULL,NULL 406,13532,1309841,Nice Question Popular Question Revival Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 407,724,375842,Electorate Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 408,1555648,1325408,NULL,NULL,NULL,0,NULL,NULL 409,3571346,84041,Nice Question Yearling Nice Question Famous Question Notable Question Nice Answer Notable Question Popular Question Popular Question Yearling Famous Question Nice Answer Caucus Nice Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 410,90332,84041,Nice Question Yearling Nice Question Famous Question Notable Question Nice Answer Notable Question Popular Question Popular Question Yearling Famous Question Nice Answer Caucus Nice Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 411,9210,895085,NULL,NULL,NULL,0,NULL,NULL 412,1519881,453172,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 413,187779,910447,NULL,NULL,NULL,0,NULL,NULL 414,318712,731488,Nice Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 415,1571669,1317609,NULL,NULL,NULL,0,NULL,NULL 416,906437,1317609,NULL,NULL,NULL,0,NULL,NULL 417,139492,453154,NULL,NULL,NULL,0,NULL,NULL 418,10897837,453154,NULL,NULL,NULL,0,NULL,NULL 419,30063,171316,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 420,603080,1125477,NULL,NULL,NULL,0,NULL,NULL 421,564754,361647,NULL,NULL,NULL,0,NULL,NULL 422,237553,523512,NULL,NULL,NULL,0,NULL,NULL 423,6679107,523512,NULL,NULL,NULL,0,NULL,NULL 424,2891692,1559748,Student,NULL,NULL,0,NULL,NULL 425,318013,1205173,NULL,NULL,NULL,0,NULL,NULL 426,48351,4828,Yearling Good Question Guru Yearling Great Question Good Question Yearling,NULL,NULL,0,NULL,NULL 427,1044853,975904,Popular Question Notable Question Notable Question Civic Duty Popular Question Necromancer Necromancer Popular Question Yearling Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 428,1386791,1108774,NULL,NULL,NULL,0,NULL,NULL 429,160699,285618,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 430,100056,749467,NULL,NULL,NULL,0,NULL,NULL 431,758352,750533,NULL,NULL,NULL,0,NULL,NULL 432,264532,1346709,Notable Question Supporter Self-Learner,NULL,NULL,0,NULL,NULL 433,486448,1138019,NULL,NULL,NULL,0,NULL,NULL 434,665227,665926,Popular Question Custodian Nice Question Popular Question Yearling Notable Question Notable Question Popular Question Good Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Good Question Good Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 435,2007156,1255494,NULL,NULL,NULL,0,NULL,NULL 436,54054,1469858,NULL,NULL,NULL,0,NULL,NULL 437,3070,527185,Good Answer Nice Answer Nice Answer Good Answer Great Answer Enlightened Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Tumbleweed Guru Nice Answer Good Answer Popular Question Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Great Answer Good Answer Nice Answer c# Guru Good Answer Nice Answer Good Answer Nice Answer Great Answer Great Answer Good Answer Good Answer sql-server-2005 Curious Electorate Nice Answer Guru Caucus Constituent Guru Nice Answer Guru Popular Question Good Answer Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Good Answer Nice Answer Popular Question Guru sql-server-2008 Yearling,NULL,NULL,0,NULL,NULL 438,184460,156142,Nice Answer Nice Answer Good Answer Yearling Nice Question Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Great Answer Great Answer Nice Answer Enlightened Enlightened Good Answer Yearling Great Answer Guru Nice Answer Guru Good Question linq Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Custodian Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 439,318425,57055,NULL,NULL,NULL,0,NULL,NULL 440,573683,1137655,NULL,NULL,NULL,0,NULL,NULL 441,296229,327224,NULL,NULL,NULL,0,NULL,NULL 442,1049043,125663,Necromancer Yearling Nice Answer Explainer Necromancer Revival Yearling Necromancer Good Answer Revival Great Answer Good Answer Necromancer Populist Good Answer Yearling Benefactor Nice Answer Nice Answer,NULL,pI ended up writing general purpose logger that produces Java like logging messages when the standard message warning and stop methods are called It includes timestamps and stack traces for warnings and above ppMany thanks to href http www man com Man Group for permission to distribute this Thanks also to Bob Albright whose answer gave me leg up to what was looking for ppre codewithJavaLogging function expr silentSuccess FALSE stopIsFatal TRUE hasFailed FALSE messages list warnings list logger function obj Change behaviour based on type of message level sapply class obj switch debug DEBUG message INFO warning WARN caughtError ERROR error if stopIsFatal FATAL else ERROR level level level ERROR simpleMessage switch level DEBUG INFO TRUE FALSE quashable switch level DEBUG INFO WARN TRUE FALSE Format message time format Sys time OS3 txt conditionMessage obj if simpleMessage txt paste txt sep msg paste time level txt sep calls sys calls calls calls length calls trace limitedLabels calls attr obj calls if simpleMessage amp amp length trace gt trace trace length trace msg paste msg paste at trace collapse sep Output message if silentSuccess amp amp hasFailed amp amp quashable messages lt lt append messages msg if level WARN warnings lt lt append warnings msg else if silentSuccess amp amp hasFailed cat paste messages collapse hasFailed lt lt TRUE cat msg Muffle any redundant output of the same message optionalRestart function res findRestart if is null res invokeRestart res optionalRestart muffleMessage optionalRestart muffleWarning vexpr withCallingHandlers withVisible expr debug logger message logger warning logger caughtError logger error logger if silentSuccess amp amp hasFailed cat paste warnings collapse if vexpr visible vexpr value else invisible vexpr value code prepTo use it just wrap it around your code ppre codewithJavaLogging Your code here code prepFor quieter output in the absence of errors useful for tests set the silentSuccess flag Messages will only be output if an error occurs to give context to the failure ppTo achieve the original goal dump stack trace carry on just use try ppre codetry withJavaLogging Your code here stopIsFatal FALSE code pre Weird that worked for me when wrote it Then again is not the most consistent language on the planet pThere emis em in fact way to do this atomically and safely strongprovided all actors do it the same way strong It an adaptation of the href http www cl cam ac uk techreports UCAM CL TR 697 pdf page 66 rel nofollow noreferrer lock free whack mole algorithm and not entirely trivial so feel free to go with no as the general answer ph1What to do h1olliCheck whether the file already exists Stop if it does lili href https docs python org library uuid html uuid uuid4 rel nofollow noreferrer Generate unique ID liliCopy the source file to the target folder with temporary name say code lt target gt lt UUID gt tmp code liliRenamesup† sup the copy code lt target gt lt UUID gt mole tmp code lili href https docs python org library glob html rel nofollow noreferrer Look for any other files matching the pattern code lt target gt mole tmp code ulliIf their UUID compares greater than yours href https docs python org library os html os remove rel nofollow noreferrer attempt to delete it Don worry if it gone liliIf their UUID compares less than yours attempt to delete your own Again don worry if it gone From now on treat their UUID as if it were your own li ul liliCheck again to see if the destination file already exists If so attempt to delete your temporary file Don worry if it gone Remember your UUID may have changed in step liliIf you didn already attempt to delete it in step attempt to rename your temporary file to its final name code lt target gt code Don worry if it gone just jump back to step li olpYou re done ph1How it works h1pImagine each candidate source file is mole coming out of its hole Half way out it pauses and whacks any competing moles back into the ground before checking no other mole has fully emerged If you run this through in your head you should see that only one mole will ever make it all the way out To prevent this system from href https en wikipedia org wiki Deadlock Livelock rel nofollow noreferrer livelocking we add total ordering on which mole can whack which Bam strike nbsp PhD thesis nbsp strike href https en wikipedia org wiki Non blocking algorithm Lock freedom rel nofollow noreferrer lock free algorithm pp sup† sup Step may look unnecessary mdash why not just use that name in the first place However another process may adopt your strike nbsp mole nbsp strike file in step and make it the winner in step so it very important that you re not still writing out the contents Renames on the same file system are atomic so step is safe No the ordering is only to ensure winner is eventually selected pAnnoyingly the withTimeAtStartOfDay answer is wrong but only occasionally You want ppre codeDays daysBetween start toLocalDate end toLocalDate getDays code prepIt turns out that midnight start of day sometimes means 1am daylight savings happen this way in some places which Days daysBetween doesn handle properly ppre code 5am on the 20th to 1pm on the 21st October 2013 BrazilDateTimeZone BRAZIL DateTimeZone forID America Sao Paulo DateTime start new DateTime 2013 10 20 BRAZIL DateTime end new DateTime 2013 10 21 13 BRAZIL System out println daysBetween start withTimeAtStartOfDay end withTimeAtStartOfDay getDays prints 0System out println daysBetween start toLocalDate end toLocalDate getDays prints code prepGoing via codeLocalDate code sidesteps the whole issue afraid don understand your question suggest posting full Stack Overflow question and pasting link here for me pAnnoyingly the withTimeAtStartOfDay answer is wrong but only occasionally You want ppre codeDays daysBetween start toLocalDate end toLocalDate getDays code prepIt turns out that midnight start of day sometimes means 1am daylight savings happen this way in some places which Days daysBetween doesn handle properly ppre code 5am on the 20th to 1pm on the 21st October 2013 BrazilDateTimeZone BRAZIL DateTimeZone forID America Sao Paulo DateTime start new DateTime 2013 10 20 BRAZIL DateTime end new DateTime 2013 10 21 13 BRAZIL System out println daysBetween start withTimeAtStartOfDay end withTimeAtStartOfDay getDays prints 0System out println daysBetween start toLocalDate end toLocalDate getDays prints code prepGoing via codeLocalDate code sidesteps the whole issue No it doesn just checked suspect you typo 2017,0,NULL,NULL 443,423052,584821,Student Informed,NULL,NULL,0,NULL,NULL 444,158277,27025,Custodian Nice Question Good Question Yearling Good Question Excavator Good Question Yearling Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 445,180214,105223,Yearling Popular Question Yearling Favorite Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 446,83351,369017,Caucus Yearling,NULL,NULL,0,NULL,NULL 447,19293,265504,NULL,NULL,NULL,0,NULL,NULL 448,105922,912685,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 449,153315,23294,Famous Question Yearling Notable Question Popular Question Popular Question Notable Question Yearling Famous Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 450,489576,648844,Announcer Announcer Critic,NULL,NULL,0,NULL,NULL 451,48016,648439,Curious Yearling Popular Question,NULL,NULL,0,NULL,NULL 452,184876,143108,NULL,NULL,NULL,0,NULL,NULL 453,1106261,1214671,NULL,NULL,NULL,0,NULL,NULL 454,121069,646137,Good Question Yearling Nice Answer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 455,15783,263251,node.js Yearling Good Answer Caucus Nice Answer Yearling Necromancer Notable Question Populist Good Answer Caucus Constituent Good Answer Excavator Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 456,2264113,54335,Yearling Good Answer Yearling Editor Nice Question Famous Question,NULL,NULL,0,NULL,NULL 457,63313,1435467,Popular Question,NULL,NULL,0,NULL,NULL 458,75917,113887,Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 459,356040,456188,Popular Question Nice Question Popular Question Notable Question Notable Question Guru Nice Answer Popular Question Popular Question Famous Question Popular Question Nice Answer Enlightened Popular Question Necromancer Yearling Notable Question Good Answer Good Question Good Answer Nice Answer Popular Question Nice Answer Good Question Popular Question Great Answer Nice Answer Nice Question Yearling Famous Question Famous Question Necromancer Nice Answer Enlightened Notable Question Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 460,1647791,1124028,Notable Question,NULL,NULL,0,NULL,NULL 461,2121470,1056499,NULL,NULL,NULL,0,NULL,NULL 462,2832484,1066313,NULL,NULL,NULL,0,NULL,NULL 463,37474,1520718,NULL,NULL,NULL,0,NULL,NULL 464,85473,1310066,NULL,NULL,NULL,0,NULL,NULL 465,4992998,1522758,Popular Question,NULL,NULL,0,NULL,NULL 466,577044,755257,Nice Answer Nice Answer Famous Question Guru Yearling Nice Answer Revival Nice Answer Great Answer Nice Answer Enlightened Popular Question Yearling Good Answer Good Answer Nice Answer Caucus Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 467,961463,238232,Notable Question Popular Question Famous Question Popular Question Great Question Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Great Answer Popular Question Famous Question Popular Question Notable Question Popular Question Good Question Nice Answer Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Famous Question Famous Question Nice Question Nice Question Notable Question Notable Question Guru Good Question Caucus Popular Question Popular Question Nice Question Notable Question Yearling Famous Question Famous Question Famous Question Famous Question Nice Question Famous Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Great Question Notable Question Favorite Question Nice Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Nice Question Notable Question Popular Question Nice Question Popular Question Nice Question Notable Question Yearling Guru Famous Question Popular Question Great Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Caucus Popular Question Famous Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Famous Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 468,238130,445517,Good Answer Nice Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Popular Question Guru Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Guru Yearling Good Answer Nice Answer Good Answer Necromancer Populist Good Answer Guru Nice Answer Caucus Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Nice Answer Nice Answer Generalist Guru Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Announcer delegates Good Answer Yearling Guru Nice Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Necromancer Nice Answer Good Answer Guru Good Answer winforms Popular Question Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Nice Answer Yearling Great Answer Good Answer Great Answer Guru Guru Nice Answer,NULL,pWhen writing crypto code it common to avoid data dependent branches and table lookups to ensure the runtime doesn depend on the data since data dependent timing can lead to side channel attacks ppIt also pretty fast ppre codestatic string ByteToHexBitFiddle byte bytes char new char bytes Length int for int lt bytes Length bytes gt gt char 55 10 gt gt 31 amp bytes amp 0xF char 55 10 gt gt 31 amp return new string code prep subPh nglui mglw nafh Cthulhu lyeh wgah nagl fhtagn sub phrblockquote pAbandon all hope ye who enter here blockquotepAn explanation of the weird bit fiddling polli codebytes gt gt code extracts the high nibble of bytebrcodebytes amp 0xF code extracts the low nibble of byte lili codeb 10 code bris code lt code for values codeb lt 10 code which will become decimal digitbris code gt code for values codeb gt 10 code which will become letter from codeA code to codeF code liliUsing codei gt gt 31 code on signed 32 bit integer extracts the sign thanks to sign extension It will be code code for codei lt code and code0 code for codei gt code liliCombining and shows that code 10 gt gt 31 code will be code0 code for letters and code code for digits liliLooking at the case for letters the last summand becomes code0 code and codeb code is in the range 10 to 15 We want to map it to codeA code 65 to codeF code 70 which implies adding 55 code 10 code liliLooking at the case for digits we want to adapt the last summand so it maps codeb code from the range to to the range code0 code 48 to code9 code 57 This means it needs to become code 55 code brNow we could just multiply with But since is represented by all bits being we can instead use code amp code since code amp code and code amp code li olpSome further considerations pulliI didn use second loop variable to index into codec code since measurement shows that calculating it from codei code is cheaper liliUsing exactly codei lt bytes Length code as upper bound of the loop allows the JITter to eliminate bounds checks on codebytes code so chose that variant liliMaking codeb code an int allows unnecessary conversions from and to byte li ul Because do not want to incur Great Lord Cthulhu wreath pAnother lookup table based approach This one uses only one lookup table for each byte instead of lookup table per nibble ppre codeprivate static readonly uint lookup32 CreateLookup32 private static uint CreateLookup32 var result new uint 256 for int lt 256 string ToString X2 result uint uint lt lt 16 return result private static string ByteArrayToHexViaLookup32 byte bytes var lookup32 lookup32 var result new char bytes Length for int lt bytes Length var val lookup32 bytes result char val result char val gt gt 16 return new string result code prepI also tested variants of this using codeushort code codestruct char X1 X2 code codestruct byte X1 X2 code in the lookup table ppDepending on the compilation target x86 X64 those either had the approximately same performance or were slightly slower than this variant phrpAnd for even higher performance its codeunsafe code sibling ppre codeprivate static readonly uint lookup32Unsafe CreateLookup32Unsafe private static readonly uint lookup32UnsafeP uint GCHandle Alloc lookup32Unsafe GCHandleType Pinned AddrOfPinnedObject private static uint CreateLookup32Unsafe var result new uint 256 for int lt 256 string ToString X2 if BitConverter IsLittleEndian result uint uint lt lt 16 else result uint uint lt lt 16 return result public static string ByteArrayToHexViaLookup32Unsafe byte bytes var lookupP lookup32UnsafeP var result new char bytes Length fixed byte bytesP bytes fixed char resultP result uint resultP2 uint resultP for int lt bytes Length resultP2 lookupP bytesP return new string result code prepOr if you consider it acceptable to write into the string directly ppre codepublic static string ByteArrayToHexViaLookup32UnsafeDirect byte bytes var lookupP lookup32UnsafeP var result new string char bytes Length fixed byte bytesP bytes fixed char resultP result uint resultP2 uint resultP for int lt bytes Length resultP2 lookupP bytesP return result code pre Not sure if there is any measurable advantage is this case Perhaps simply didn think about that alternative when writing this code pAnother lookup table based approach This one uses only one lookup table for each byte instead of lookup table per nibble ppre codeprivate static readonly uint lookup32 CreateLookup32 private static uint CreateLookup32 var result new uint 256 for int lt 256 string ToString X2 result uint uint lt lt 16 return result private static string ByteArrayToHexViaLookup32 byte bytes var lookup32 lookup32 var result new char bytes Length for int lt bytes Length var val lookup32 bytes result char val result char val gt gt 16 return new string result code prepI also tested variants of this using codeushort code codestruct char X1 X2 code codestruct byte X1 X2 code in the lookup table ppDepending on the compilation target x86 X64 those either had the approximately same performance or were slightly slower than this variant phrpAnd for even higher performance its codeunsafe code sibling ppre codeprivate static readonly uint lookup32Unsafe CreateLookup32Unsafe private static readonly uint lookup32UnsafeP uint GCHandle Alloc lookup32Unsafe GCHandleType Pinned AddrOfPinnedObject private static uint CreateLookup32Unsafe var result new uint 256 for int lt 256 string ToString X2 if BitConverter IsLittleEndian result uint uint lt lt 16 else result uint uint lt lt 16 return result public static string ByteArrayToHexViaLookup32Unsafe byte bytes var lookupP lookup32UnsafeP var result new char bytes Length fixed byte bytesP bytes fixed char resultP result uint resultP2 uint resultP for int lt bytes Length resultP2 lookupP bytesP return new string result code prepOr if you consider it acceptable to write into the string directly ppre codepublic static string ByteArrayToHexViaLookup32UnsafeDirect byte bytes var lookupP lookup32UnsafeP var result new string char bytes Length fixed byte bytesP bytes fixed char resultP result uint resultP2 uint resultP for int lt bytes Length resultP2 lookupP bytesP return result code pre The safe implementation uses little endian for its internal representation but makes no assumptions about machine endianness So it should still work on big endian machines possibly bit slower By contrast the unsafe variant re interprets two 16 bit words as one 32 bit word which is why it has to be careful about host endianness,0,NULL,NULL 469,140478,985410,NULL,NULL,NULL,0,NULL,NULL 470,2251578,592536,Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 471,7185395,592536,Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 472,15992,320750,Informed,NULL,NULL,0,NULL,NULL 473,40861,408281,NULL,NULL,NULL,0,NULL,NULL 474,98000,1290604,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 475,98087,1290604,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 476,199275,691783,Good Answer Custodian Guru Yearling Great Answer Yearling Custodian Documentation User Custodian Census Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 477,781301,1405560,Announcer Announcer Announcer conemu Booster Announcer Announcer Yearling console Booster Good Answer Good Answer Publicist Announcer Announcer Good Answer Announcer Critic Nice Answer Enlightened Yearling Nice Answer Announcer Revival Booster Announcer Good Answer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 478,594985,414260,NULL,NULL,NULL,0,NULL,NULL 479,251706,541742,Critic,NULL,NULL,0,NULL,NULL 480,38114,853662,NULL,NULL,NULL,0,NULL,NULL 481,301381,1213965,Nice Question Supporter Notable Question Scholar Good Question Famous Question,NULL,NULL,0,NULL,NULL 482,182189,1445692,NULL,NULL,NULL,0,NULL,NULL 483,172553,784831,Caucus Notable Question Yearling Caucus Notable Question Census Popular Question,NULL,NULL,0,NULL,NULL 484,222210,30317,Civic Duty Nice Question Famous Question Yearling Notable Question Popular Question Popular Question Famous Question Notable Question Yearling Nice Answer Necromancer Notable Question Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 485,477061,972036,NULL,NULL,NULL,0,NULL,NULL 486,552313,370557,NULL,NULL,NULL,0,NULL,NULL 487,2173910,817339,NULL,NULL,NULL,0,NULL,NULL 488,20775,1246914,Notable Question,NULL,NULL,0,NULL,NULL 489,15842,1137259,NULL,NULL,NULL,0,NULL,NULL 490,143409,561886,NULL,NULL,NULL,0,NULL,NULL 491,527395,1235684,Caucus Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 492,105729,1268850,NULL,NULL,NULL,0,NULL,NULL 493,415589,1480270,NULL,NULL,NULL,0,NULL,NULL 494,91681,1246954,Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 495,104745,398537,NULL,NULL,NULL,0,NULL,NULL 496,867540,912016,Yearling Scholar Civic Duty Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 497,7181292,1345847,Tumbleweed Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 498,771736,1345847,Tumbleweed Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 499,690901,1402111,NULL,NULL,NULL,0,NULL,NULL 500,14829,1043233,NULL,NULL,NULL,0,NULL,NULL 501,1351339,1060522,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 502,466622,1447532,NULL,NULL,NULL,0,NULL,NULL 503,84878,1555303,Teacher Popular Question,NULL,NULL,0,NULL,NULL 504,769536,1169050,NULL,NULL,NULL,0,NULL,NULL 505,87989,1440662,NULL,NULL,NULL,0,NULL,NULL 506,125058,263485,Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Autobiographer Necromancer Popular Question Notable Question Popular Question Caucus Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Caucus Nice Answer Famous Question Famous Question Famous Question Notable Question Popular Question Yearling Peer Pressure Notable Question Caucus Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 507,8301,393783,Yearling Nice Answer Popular Question Yearling Custodian python Yearling,NULL,NULL,0,NULL,NULL 508,3879869,243798,Necromancer Nice Question Yearling Notable Question Great Question Famous Question,NULL,NULL,0,NULL,NULL 509,234163,243798,Necromancer Nice Question Yearling Notable Question Great Question Famous Question,NULL,NULL,0,NULL,NULL 510,2890205,780332,NULL,NULL,NULL,0,NULL,NULL 511,169481,613497,Necromancer,NULL,NULL,0,NULL,NULL 512,541900,792447,NULL,NULL,NULL,0,NULL,NULL 513,20977,841537,NULL,NULL,NULL,0,NULL,NULL 514,317045,200807,Census Nice Answer Critic Census,NULL,NULL,0,NULL,NULL 515,732861,612346,Yearling Great Answer Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 516,257793,117474,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 517,229829,443865,NULL,NULL,NULL,0,NULL,NULL 518,25877,1946,Popular Question Notable Question Notable Question Nice Answer Good Question Good Question Nice Question Famous Question Good Question ruby-on-rails Revival Popular Question Nice Question Yearling Great Answer Nice Question Nice Answer Famous Question Nice Question Guru Favorite Question Good Question Popular Question Nice Question Popular Question Famous Question Notable Question Yearling Great Question Famous Question Famous Question Great Question Notable Question Popular Question Popular Question Notable Question Great Question Notable Question Benefactor Nice Answer Enlightened Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 519,8533,153354,Guru Famous Question Excavator Nice Answer Enlightened Yearling Nice Answer Popular Question Revival Yearling Necromancer Enlightened Nice Answer Popular Question Announcer Yearling Nice Answer ios Revival,NULL,NULL,0,NULL,NULL 520,511376,1001443,Enthusiast Popular Question Teacher,NULL,NULL,0,NULL,NULL 521,68626,603330,NULL,NULL,NULL,0,NULL,NULL 522,226141,387390,NULL,NULL,NULL,0,NULL,NULL 523,476072,387390,NULL,NULL,NULL,0,NULL,NULL 524,397179,424273,Notable Question,NULL,NULL,0,NULL,NULL 525,207130,612202,Yearling Nice Answer Popular Question Nice Answer Revival Nice Answer Enlightened Guru Good Answer Notable Question Nice Answer Enlightened Caucus Famous Question Yearling Investor Altruist Popular Question Necromancer Nice Answer Notable Question Announcer Great Answer Good Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Announcer Guru,NULL,NULL,0,NULL,NULL 526,417876,1203736,Notable Question Revival Yearling Famous Question Self-Learner Necromancer Popular Question Notable Question Nice Answer Notable Question Yearling Popular Question Good Answer Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 527,1566035,175586,Notable Question Good Question Nice Question Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 528,171845,1559615,NULL,NULL,NULL,0,NULL,NULL 529,336883,1306089,Teacher Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 530,24676,1306089,Teacher Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 531,190095,413606,Notable Question Notable Question Citizen Patrol Critic,NULL,NULL,0,NULL,NULL 532,25978,43990,Organizer Enthusiast Nice Answer Civic Duty Necromancer Nice Answer Good Answer Caucus Nice Answer Yearling swift Nice Answer Revival Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Revival Necromancer Notable Question Yearling objective-c Custodian Nice Answer Enlightened Caucus Nice Answer Necromancer Necromancer Necromancer Great Answer Good Answer,NULL,NULL,0,NULL,NULL 533,238473,4002,Custodian Nice Answer Popular Question Populist Yearling c# Yearling Guru Yearling Great Answer,NULL,NULL,0,NULL,NULL 534,266148,624938,NULL,NULL,NULL,0,NULL,NULL 535,473700,185360,Yearling Yearling,NULL,NULL,0,NULL,NULL 536,999908,295800,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 537,758465,1312300,Popular Question,NULL,NULL,0,NULL,NULL 538,320648,692770,Nice Question Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 539,15770,1349279,Teacher Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 540,208662,826530,Revival Enthusiast Necromancer Self-Learner Popular Question Yearling Popular Question Famous Question Nice Question Nice Answer Custodian Popular Question,NULL,NULL,0,NULL,NULL 541,420319,721269,Good Answer Revival Nice Answer Enlightened Popular Question Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru winapi Yearling multithreading Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened shared-ptr Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Necromancer Nice Answer Guru Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Necromancer c++11 Nice Answer Nice Answer Enlightened Nice Answer Enlightened hash Good Answer Great Answer Great Answer Enlightened pointers Nice Answer segmentation-fault operating-system Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened linux-kernel Nice Answer Nice Answer malloc Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Revival Good Answer unix Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Announcer Populist Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer stl Enlightened Nice Answer Enlightened Nice Answer Enlightened network-programming Nice Answer Enlightened Good Answer Announcer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened atomic Nice Answer Nice Answer Enlightened Guru Nice Answer Yearling Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened boost-asio Guru Nice Answer Great Answer,NULL,How does the likely unlikely macros in the Linux kernel works and what is their benefit linux gcc linux kernel compiler construction likely unlikely pI ve been digging through some parts of the Linux kernel and found calls like this ppre codeif unlikely fd lt Do something code prepor ppre codeif likely err Do something code prepI ve found the definition of them ppre code define likely builtin expect define unlikely builtin expect code prepI know that they are for optimization but how do they work And how much performance size decrease can be expected from using them And is it worth the hassle and losing the portability probably at least in bottleneck code in userspace of course There no portability issue You can trivially do things like define likely and define unlikely on platforms that don support this kind of hinting pBoth processes and threads are independent sequences of execution The typical difference is that threads of the same process run in shared memory space while processes run in separate memory spaces ppI not sure what hardware vs software threads you might be referring to Threads are an operating environment feature rather than CPU feature though the CPU typically has operations that make threads efficient ppErlang uses the term process because it does not expose shared memory multiprogramming model Calling them threads would imply that they have shared memory This answer seems wrong If both processes and threads were independent sequences of execution then process that contained two threads would have to have three sequences of execution and that can be right Only thread is sequence of execution process is container that can hold one or more sequences of execution codevolatile code is needed if you are reading from spot in memory that say completely separate process device whatever may write to ppI used to work with dual port ram in multiprocessor system in straight We used hardware managed 16 bit value as semaphore to know when the other guy was done Essentially we did this ppre codevoid waitForSemaphore volatile uint16 semPtr WELL KNOWN SEM ADDR well known address to my semaphore while semPtr IS OK FOR ME TO PROCEED code prepWithout codevolatile code the optimizer sees the loop as useless The guy never sets the value He nuts get rid of that code and my code would proceed without having acquired the semaphore causing problems later on The first sentence of this answer is fundamentally wrong in very subtle yet important way It claims volatile is needed under some conditions But this is not so For example consider platform that provides native type say atomic int that is documented to be suitable for reading from memory that completely separate devices might write to Certainly volatile would not be needed on that platform Because this is very often the case in practice volatile is only very rarely needed even when you need this behavior,0,NULL,NULL 542,10814449,961200,Necromancer Autobiographer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 543,774120,961200,Necromancer Autobiographer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 544,2679034,823901,Supporter,NULL,NULL,0,NULL,NULL 545,237909,823901,Supporter,NULL,NULL,0,NULL,NULL 546,599947,362432,Popular Question Notable Question Nice Question Notable Question Yearling Informed Autobiographer Yearling Citizen Patrol Yearling Popular Question Caucus Suffrage Vox Populi Tenacious Yearling Notable Question Documentation User Custodian Excavator Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 547,841002,285835,Popular Question,NULL,NULL,0,NULL,NULL 548,1373787,463724,NULL,NULL,NULL,0,NULL,NULL 549,857442,384140,NULL,NULL,NULL,0,NULL,NULL 550,91253,960026,Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 551,38814,256375,Yearling Good Answer Good Answer Caucus Constituent Yearling Yearling Caucus Nice Answer Enlightened Guru Tumbleweed,NULL,NULL,0,NULL,NULL 552,582847,1032587,NULL,NULL,NULL,0,NULL,NULL 553,206943,1303346,NULL,NULL,NULL,0,NULL,NULL 554,101060,871628,NULL,NULL,NULL,0,NULL,NULL 555,96130,349488,NULL,NULL,NULL,0,NULL,NULL 556,1008526,995960,Critic Nice Answer Caucus Editor Commentator Yearling Caucus Constituent Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 557,449032,1136492,NULL,NULL,NULL,0,NULL,NULL 558,35107,781341,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 559,493123,320825,NULL,NULL,NULL,0,NULL,NULL 560,20476,11137,Famous Question Famous Question Famous Question Popular Question Popular Question Popular Question Good Question Yearling Nice Question Peer Pressure Notable Question Famous Question Good Question Popular Question Notable Question Notable Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 561,393296,1412025,NULL,NULL,NULL,0,NULL,NULL 562,1114500,384164,Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 563,48553,630012,Notable Question,NULL,NULL,0,NULL,NULL 564,901610,1553814,NULL,NULL,NULL,0,NULL,NULL 565,190680,611036,NULL,NULL,NULL,0,NULL,NULL 566,1547179,758986,Scholar Editor Self-Learner Yearling Critic,NULL,NULL,0,NULL,NULL 567,299068,181865,Yearling Great Answer Revival Yearling Caucus Constituent Guru,NULL,NULL,0,NULL,NULL 568,463326,1085652,NULL,NULL,NULL,0,NULL,NULL 569,241776,589828,NULL,NULL,NULL,0,NULL,NULL 570,264213,744025,Critic Necromancer Yearling Editor Yearling Necromancer Revival Necromancer Yearling Nice Answer Nice Answer Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 571,49882,1083138,Custodian Custodian Yearling Citizen Patrol Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 572,1442625,1083138,Custodian Custodian Yearling Citizen Patrol Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 573,260010,1211068,Commentator Scholar Teacher Enthusiast,NULL,NULL,0,NULL,NULL 574,665913,1267618,Notable Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 575,427088,199781,Yearling,NULL,NULL,0,NULL,NULL 576,570766,158594,Nice Answer Nice Answer Yearling Good Answer Good Answer Yearling Yearling Good Answer c++,NULL,NULL,0,NULL,NULL 577,11626,373986,NULL,NULL,NULL,0,NULL,NULL 578,62284,1244647,Necromancer,NULL,NULL,0,NULL,NULL 579,4716469,1244647,Necromancer,NULL,NULL,0,NULL,NULL 580,438173,147110,Necromancer,NULL,NULL,0,NULL,NULL 581,388761,1351749,NULL,NULL,NULL,0,NULL,NULL 582,332968,812995,NULL,NULL,NULL,0,NULL,NULL 583,224793,971362,NULL,NULL,NULL,0,NULL,NULL 584,15938,953429,NULL,NULL,NULL,0,NULL,NULL 585,62354,932620,NULL,NULL,NULL,0,NULL,NULL 586,1466793,1048571,Informed Unsung Hero Necromancer Custodian Enthusiast Nice Answer Enlightened xamarin android Good Answer Autobiographer Nice Answer Mortarboard Proofreader xamarin.android Caucus Guru Yearling Nice Answer Enlightened Constituent Necromancer Good Answer Nice Answer Guru Good Answer Guru xamarin Tumbleweed Announcer Caucus Promoter Benefactor Announcer c# Curious Documentation User Reviewer Explainer Yearling Great Answer Census Announcer Fanatic Nice Answer Popular Question Revival Announcer Great Answer Nice Answer Nice Answer Enlightened Yearling,NULL,pYou need to update the default Android SDK codeproguard jar code with the latest version of Proguard found here pp href https sourceforge net projects proguard files https sourceforge net projects proguard files ppI would recommend that you install this on the side of the default version that Android ships in codeandroid sdk tools proguard code Simply rename the existing folder to something else and add the new version of codeproguard code ppThis is listed in the Xamarin Android release notes pp href https developer xamarin com releases android xamarin android xamarin android https developer xamarin com releases android xamarin android xamarin android ppIn which the following bug was logged as well pp href https bugzilla xamarin com show bug cgi id 44187 https bugzilla xamarin com show bug cgi id 44187 ppWhich is coordinated with Pull Request in the Xamarin Android repository pp href https github com xamarin xamarin android pull 209 https github com xamarin xamarin android pull 209 Create new Stack Overflow question with more details and ll try to answer,1,NULL,Xamarin Android Proguard Unsupported class version number 52 xamarin xamarin android android proguard pI trying to use Proguard in my Xamarin Android project yet the compilation fails with the error codeUnsupported class version number 52 maximum 51 Java code ppI saw from those href https stackoverflow com questions 23170502 proguard says unsupported class version number 52 maximum 51 java two href https stackoverflow com questions 22670059 error proguard unsupported class version number questions that it may be mismatch between Java and Java more precisely some versions of proguard don support Java However in Xamarin Preferences SDK Location Java SDK points to JDK code Library Java JavaVirtualMachines jdk1 79 jdk Contents Home code ppIs there any place where proguard can be configured more precisely Any other idea ppHere the failure log pblockquote pjava io IOException Can read Library Frameworks Xamarin Android framework Versions 18 lib xbuild frameworks MonoAndroid v7 mono android jar Can process class android app ActivityTracker class Unsupported class version number 52 maximum 51 Java at proguard InputReader readInput InputReader java 230 at proguard InputReader readInput InputReader java 200 at proguard InputReader readInput InputReader java 178 at proguard InputReader execute InputReader java 78 at proguard ProGuard readInput ProGuard java 196 at proguard ProGuard execute ProGuard java 78 at proguard ProGuard main ProGuard java 492 Caused by java io IOException Can process class android app ActivityTracker class Unsupported class version number 52 maximum 51 Java at proguard io ClassReader read ClassReader java 112 at proguard io FilteredDataEntryReader read FilteredDataEntryReader java 87 at proguard io JarReader read JarReader java 65 at proguard io DirectoryPump readFiles DirectoryPump java 65 at proguard io DirectoryPump pumpDataEntries DirectoryPump java 53 at proguard InputReader readInput InputReader java 226 more Caused by java lang UnsupportedOperationException Unsupported class version number 52 maximum 51 Java at proguard classfile util ClassUtil checkVersionNumbers ClassUtil java 140 at proguard classfile io ProgramClassReader visitProgramClass ProgramClassReader java 88 at proguard classfile ProgramClass accept ProgramClass java 346 at proguard io ClassReader read ClassReader java 91 11 more p9 Warning Error blockquote pYou need to update the default Android SDK codeproguard jar code with the latest version of Proguard found here pp href https sourceforge net projects proguard files https sourceforge net projects proguard files ppI would recommend that you install this on the side of the default version that Android ships in codeandroid sdk tools proguard code Simply rename the existing folder to something else and add the new version of codeproguard code ppThis is listed in the Xamarin Android release notes pp href https developer xamarin com releases android xamarin android xamarin android https developer xamarin com releases android xamarin android xamarin android ppIn which the following bug was logged as well pp href https bugzilla xamarin com show bug cgi id 44187 https bugzilla xamarin com show bug cgi id 44187 ppWhich is coordinated with Pull Request in the Xamarin Android repository pp href https github com xamarin xamarin android pull 209 https github com xamarin xamarin android pull 209 587,264659,1353981,Supporter Informed Necromancer,NULL,NULL,0,NULL,NULL 588,826558,768859,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 589,150537,1041838,Teacher Revival,NULL,NULL,0,NULL,NULL 590,394099,1159050,Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 591,6921015,1159050,Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 592,212491,398966,NULL,NULL,NULL,0,NULL,NULL 593,74188,1311572,NULL,NULL,NULL,0,NULL,NULL 594,477200,381608,Yearling Nice Answer Nice Question Popular Question Popular Question Revival Popular Question Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 595,661438,1506818,NULL,NULL,NULL,0,NULL,NULL 596,422028,382780,Custodian Yearling Fanatic Yearling Caucus Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 597,507687,420683,Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer inheritance Nice Answer Benefactor Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Notable Question Nice Question Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Announcer Yearling Announcer Guru Nice Answer Enlightened Announcer Nice Answer Enlightened Popular Question Announcer Announcer Nice Answer Enlightened Popular Question Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Yearling Great Answer Great Answer Tumbleweed Nice Answer Enlightened Nice Answer,NULL,pEdit as Howard Hinnant and me somewhat in my comment to the OP pointed out you might not need type with every single character of the string as single template argument If you do need this there macro free solution below ppThere trick found while trying to work with strings at compile time It requires to introduce another type besides the template string but within functions you can limit the scope of this type ppIt doesn use macros but rather some 11 features ppre code include lt iostream gt helper functionconstexpr unsigned strlen char const str unsigned count return str count strlen str count helper function structtemplate lt char char tt gt struct rec print static void print std cout lt lt rec print lt tt gt print template lt char gt struct rec print lt gt static void print std cout lt lt destination template string typetemplate lt char tt gt struct exploded string static void print rec print lt tt gt print struct to explode char const to an exploded string typetemplate lt typename StrProvider unsigned len char tt gt struct explode impl using result typename explode impl lt StrProvider len StrProvider str len tt gt result template lt typename StrProvider char tt gt struct explode impl lt StrProvider tt gt using result exploded string lt tt gt syntactical sugartemplate lt typename StrProvider gt using explode typename explode impl lt StrProvider strlen StrProvider str gt result int main the trick is to introduce type which provides the string rather than storing the string itself struct my str provider constexpr static char const str return hello world auto my str explode lt my str provider gt as variable using My Str explode lt my str provider gt as type my str print code pre Yes thanks pThe code code in the expression code code is the unary code code operator It is defined as follows in expr unary op pblockquote pThe operand of the unary code code operator shall have arithmetic unscoped enumeration or pointer type and the result is the value of the argument blockquotepThe lambda is not of arithmetic type etc but it can be converted pp expr prim lambda pblockquote pThe type of the emlambda expression em is unique unnamed non union class type called the emclosure type em whose properties are described below blockquotep expr prim lambda pblockquote pThe closure type for emlambda expression em with no emlambda capture em has codepublic code non codevirtual code non codeexplicit code codeconst code conversion function to empointer to function em having the same parameter and return types as the closure type function call operator The value returned by this conversion function shall be the address of function that when invoked has the same effect as invoking the closure type’s function call operator blockquotepTherefore the unary code code forces the conversion to the function pointer type which is for this lambda codevoid code Therefore the type of the expression code code is this function pointer type codevoid code ppThe second overload codevoid foo void code becomes an Exact Match in the ranking for overload resolution and is therefore chosen unambiguously as the first overload is NOT an Exact Match phrpThe lambda code code can be converted to codestd function lt void gt code via the non explicit template ctor of codestd function code which takes any type that fulfils the codeCallable code and codeCopyConstructible code requirements ppThe lambda can also be converted to codevoid code via the conversion function of the emclosure type em see above ppBoth are user defined conversion sequences and of the same rank That why overload resolution fails in the emfirst em example due to ambiguity phrpAccording to Cassio Neri backed up by an argument by Daniel Krügler this unary code code trick should be specified behaviour you can rely on it see discussion in the comments ppStill recommend using an explicit cast to the function pointer type if you want to avoid the ambiguity you don need to ask on SO what is does and why it works Yes msvc adds additional conversion functions to deal with different calling conventions of the target function pointer type not sure if that entirely conforming to the Standard though pWhen you write codehas member lt gt value code the compiler looks up the name codehas member code and finds the emprimary em class template that is this declaration ppre codetemplate lt class class void gt struct has member code prep In the OP that written as definition ppThe template argument list code lt gt code is compared to the template parameter list of this primary template Since the primary template has two parameters but you only supplied one the remaining parameter is defaulted to the default template argument codevoid code It as if you had written codehas member lt void gt value code ppNow the template parameter list is compared against any specializations of the template codehas member code Only if no specialization matches the definition of the primary template is used as fall back So the partial specialization is taken into account ppre codetemplate lt class gt struct has member lt void lt decltype member gt gt true type code prepThe compiler tries to match the template arguments codeA void code with the patterns defined in the partial specialization codeT code and codevoid lt gt code one by one First template argument deduction is performed The partial specialization above is still template with template parameters that need to be filled by arguments ppThe first pattern codeT code allows the compiler to deduce the template parameter codeT code This is trivial deduction but consider pattern like codeT const amp code where we could still deduce codeT code For the pattern codeT code and the template argument codeA code we deduce codeT code to be codeA code ppIn the second pattern codevoid lt decltype member gt code the template parameter codeT code appears in context where it cannot be deduced from any template argument There are two reasons for this pulli pThe expression inside codedecltype code is explicitly excluded from template argument deduction guess this is because it can be arbitrarily complex lili pEven if we used pattern without codedecltype code like codevoid lt gt code then the deduction of codeT code happens on the resolved alias template That is we resolve the alias template and then try to deduce the type codeT code from the resulting pattern The resulting pattern however is codevoid code which is not dependent on codeT code and therefore does not allow us to find specific type for codeT code This is similar to the mathematical problem of trying to invert constant function in the mathematical sense of those terms li ulpTemplate argument deduction is finishedsup sup now the emdeduced em template arguments are substituted This creates specialization that looks like this ppre codetemplate lt gt struct has member lt void lt decltype member gt gt true type code prepThe type codevoid lt decltype member gt gt code can now be evaluated It is well formed after substitution hence no emSubstitution Failure em occurs We get ppre codetemplate lt gt struct has member lt void gt true type code prepNow we can compare the template parameter list of this specialization with the template arguments supplied to the original codehas member lt gt value code Both types match exactly so this partial specialization is chosen ppOn the other hand when we define the template as ppre codetemplate lt class class int gt lt int here instead of voidstruct has member false type template lt class gt struct has member lt void lt decltype member gt gt true type code prepWe end up with the same specialization ppre codetemplate lt gt struct has member lt void gt true type code prepbut our template argument list for codehas member lt gt value code now is code lt int gt code The arguments do not match the parameters of the specialization and the primary template is chosen as fall back phrp sup sup The Standard IMHO confusingly includes the substitution process and the matching of explicitly specified template arguments in the emtemplate argument deduction em process For example post N4296 temp class spec match pblockquote pA partial specialization matches given actual template argument list if the template arguments of the partial specialization can be deduced from the actual template argument list blockquotepBut this does not emjust em mean that all template parameters of the partial specialization have to be deduced it also means that substitution must succeed and as it seems the template arguments have to match the substituted template parameters of the partial specialization Note that not completely aware of emwhere em the Standard specifies the comparison between the substituted argument list and the supplied argument list ve tried to elaborate that section bit let me know if that helps,0,NULL,NULL 598,85381,136892,Notable Question Notable Question Popular Question Yearling Notable Question Caucus Nice Question Good Question Custodian Nice Question Nice Question Good Question Famous Question Yearling Good Question Famous Question Popular Question Popular Question Yearling Favorite Question Famous Question Notable Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 599,179014,321090,Yearling Self-Learner Popular Question Custodian Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 600,106511,1440192,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 601,420033,1210957,NULL,NULL,NULL,0,NULL,NULL 602,557216,292613,Yearling Revival Nice Answer Enlightened Revival Yearling Revival Announcer Necromancer Yearling Necromancer Good Answer Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 603,69853,749378,NULL,NULL,NULL,0,NULL,NULL 604,350319,424434,Great Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 605,765233,424434,Great Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 606,1552510,325132,NULL,NULL,NULL,0,NULL,NULL 607,732772,145173,Announcer Necromancer Notable Question Nice Answer Pundit Necromancer Necromancer Announcer Necromancer Announcer Revival Notable Question Nice Answer Famous Question Popular Question Necromancer c# Nice Answer Popular Question Nice Answer Necromancer Notable Question Nice Answer Revival Necromancer Nice Answer Nice Answer Good Question Good Answer Yearling Good Answer Necromancer Necromancer Nice Answer Popular Question Necromancer Necromancer Nice Answer Necromancer Necromancer Necromancer Announcer Popular Question Nice Answer Necromancer Caucus Nice Answer Nice Answer Constituent Nice Answer Necromancer Necromancer Famous Question Nice Answer Necromancer Announcer Revival Great Answer Nice Answer Nice Answer Announcer Good Answer Announcer Popular Question Good Answer Popular Question Announcer Announcer Announcer Announcer Great Answer Announcer Notable Question Announcer Announcer Custodian Archaeologist Announcer Nice Answer Revival Announcer Caucus Necromancer Announcer Necromancer Yearling Necromancer Constituent Announcer Necromancer Booster Announcer Necromancer Announcer Revival Necromancer Nice Answer Announcer Nice Answer Necromancer Custodian Announcer Announcer Announcer Good Answer Popular Question Popular Question Census Necromancer Booster Good Answer Necromancer Tag Editor Popular Question Good Answer Caucus Popular Question Constituent Nice Answer Nice Answer Necromancer Marshal Popular Question Good Answer Necromancer Popular Question Popular Question Necromancer Announcer Revival Announcer Nice Answer Yearling Necromancer Necromancer Announcer Notable Question Announcer Nice Question Revival Nice Question Nice Answer Necromancer Necromancer Necromancer Necromancer,NULL,pThis code detects left and right swipes avoids deprecated API calls and has other miscellaneous improvements over earlier answers ppre code Detects left and right swipes across view public class OnSwipeTouchListener implements OnTouchListener private final GestureDetector gestureDetector public OnSwipeTouchListener Context context gestureDetector new GestureDetector context new GestureListener public void onSwipeLeft public void onSwipeRight public boolean onTouch View MotionEvent event return gestureDetector onTouchEvent event private final class GestureListener extends SimpleOnGestureListener private static final int SWIPE DISTANCE THRESHOLD 100 private static final int SWIPE VELOCITY THRESHOLD 100 public boolean onDown MotionEvent return true public boolean onFling MotionEvent e1 MotionEvent e2 float velocityX float velocityY float distanceX e2 getX e1 getX float distanceY e2 getY e1 getY if Math abs distanceX gt Math abs distanceY amp amp Math abs distanceX gt SWIPE DISTANCE THRESHOLD amp amp Math abs velocityX gt SWIPE VELOCITY THRESHOLD if distanceX gt onSwipeRight else onSwipeLeft return true return false code prepUse it like this ppre codeview setOnTouchListener new OnSwipeTouchListener context public void onSwipeLeft Whatever code pre think so don get that warning in Android Studio pI ve updated Can Gencer extension to not overwrite any existing maps ppre codepublic static IMappingExpression lt TSource TDestination gt IgnoreAllNonExisting lt TSource TDestination gt this IMappingExpression lt TSource TDestination gt expression var sourceType typeof TSource var destinationType typeof TDestination var existingMaps Mapper GetAllTypeMaps First gt SourceType Equals sourceType amp amp DestinationType Equals destinationType foreach var property in existingMaps GetUnmappedPropertyNames expression ForMember property opt gt opt Ignore return expression code prepUsage ppre codeMapper CreateMap lt SourceType DestinationType gt ForMember prop gt Property opt gt opt MapFrom src gt src OtherProperty IgnoreAllNonExisting code pre The AutoMapper approach is described in this answer http stackoverflow com 35078700 145173,0,NULL,NULL 608,1503744,562162,NULL,NULL,NULL,0,NULL,NULL 609,909342,237646,Famous Question Nice Question Critic Notable Question Curious Popular Question Tumbleweed Yearling Caucus Civic Duty,NULL,NULL,0,NULL,NULL 610,308184,187769,Necromancer Revival Notable Question Self-Learner Famous Question Yearling Announcer Popular Question Nice Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 611,779417,1361833,NULL,NULL,NULL,0,NULL,NULL 612,7991047,237169,Notable Question,NULL,NULL,0,NULL,NULL 613,575860,578435,Nice Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 614,96559,82943,NULL,NULL,NULL,0,NULL,NULL 615,1492919,988774,NULL,NULL,NULL,0,NULL,NULL 616,1216202,396423,NULL,NULL,NULL,0,NULL,NULL 617,393737,239879,Popular Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Great Answer Notable Question Good Question Nice Question Popular Question Nice Question Notable Question Nice Question Popular Question Good Answer Favorite Question Popular Question Nice Question Notable Question Great Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Answer Famous Question Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Great Question Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Good Question Nice Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Nice Answer Popular Question Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Nice Question Nice Question Nice Question Famous Question Notable Question Notable Question Notable Question Good Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 618,269918,855105,Popular Question,NULL,NULL,0,NULL,NULL 619,281521,106,Nice Answer Enlightened Nice Answer Yearling Great Question Nice Answer Nice Answer Good Answer Nice Answer asp.net Nice Answer Yearling Favorite Question Good Answer Great Question Custodian Custodian Custodian Custodian Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 620,161313,1554583,Editor Excavator Enthusiast,NULL,NULL,0,NULL,NULL 621,547375,615052,Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 622,96584,331025,NULL,NULL,NULL,0,NULL,NULL 623,85449,226701,NULL,NULL,NULL,0,NULL,NULL 624,100850,2730,Popular Question,NULL,NULL,0,NULL,NULL 625,1855714,894487,Pundit Good Answer Critic Autobiographer Custodian Revival Yearling Necromancer Necromancer Nice Answer Necromancer Revival Announcer Notable Question Necromancer Good Answer Yearling Necromancer Necromancer Nice Answer Caucus Good Answer Necromancer Nice Answer Yearling Good Answer Necromancer Good Answer Necromancer,NULL,pYou can use to specify cookie file to read the cookies from as well ppIn many situations using href https curl haxx se docs manpage html rel noreferrer and href https curl haxx se docs manpage html rel noreferrer to the same file is what you want ppre codecurl cookies txt cookies txt http example com code prep strongFurther strong ppUsing only will make curl start with no cookies but still parse and understand cookies and if redirects or multiple URLs are used it will then use the received cookies within the single invoke before it writes them all to the output file in the end ppThe option feeds set of initial cookies into curl so that it knows about them at start and it activates curl cookie parser so that it ll parse and use incoming cookies as well pp strongSee Also strong ppThe href https ec haxx se http cookies html rel noreferrer cookies chapter in the emEverything curl em book man file is clearer now NOTE that the file specified with cookie is only used as input No cookies will be stored in the file To store cookies use the cookie jar option or you could even save the HTTPheaders to file using dump header,0,NULL,NULL 626,158198,865555,NULL,NULL,NULL,0,NULL,NULL 627,96650,817898,NULL,NULL,NULL,0,NULL,NULL 628,150685,831456,NULL,NULL,NULL,0,NULL,NULL 629,7627691,831456,NULL,NULL,NULL,0,NULL,NULL 630,280257,88901,NULL,NULL,NULL,0,NULL,NULL 631,403966,404347,NULL,NULL,NULL,0,NULL,NULL 632,308599,518714,Census,NULL,NULL,0,NULL,NULL 633,9081,989105,Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Tumbleweed Nice Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 634,109973,1365324,Nice Answer Guru Nice Answer Yearling Popular Question Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 635,192447,693808,NULL,NULL,NULL,0,NULL,NULL 636,29911,633184,NULL,NULL,NULL,0,NULL,NULL 637,1037717,891885,NULL,NULL,NULL,0,NULL,NULL 638,492788,872295,NULL,NULL,NULL,0,NULL,NULL 639,43300,74020,NULL,NULL,NULL,0,NULL,NULL 640,1159760,855184,NULL,NULL,NULL,0,NULL,NULL 641,65645,774086,Revival Good Answer Necromancer Announcer Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Revival Necromancer Nice Answer Necromancer Steward Nice Answer Enlightened Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Announcer Yearling Revival Popular Question Good Answer Nice Answer Enlightened Announcer express Revival Nice Answer Enlightened Fanatic Nice Answer Good Answer Popular Question Announcer Announcer javascript Revival Announcer Necromancer Yearling Good Answer Notable Question Nice Answer Good Answer Revival,NULL,NULL,0,NULL,NULL 642,360653,58179,Yearling Popular Question,NULL,NULL,0,NULL,NULL 643,1520489,1231749,NULL,NULL,NULL,0,NULL,NULL 644,226552,973744,NULL,NULL,NULL,0,NULL,NULL 645,245411,61599,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 646,269697,1355659,NULL,NULL,NULL,0,NULL,NULL 647,999900,916610,NULL,NULL,NULL,0,NULL,NULL 648,226948,495527,NULL,NULL,NULL,0,NULL,NULL 649,228714,256714,NULL,NULL,NULL,0,NULL,NULL 650,558751,1499611,NULL,NULL,NULL,0,NULL,NULL 651,478274,550572,Tumbleweed Necromancer Yearling,NULL,NULL,0,NULL,NULL 652,2953,800152,Yearling Great Answer Nice Question Nice Answer Enlightened Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 653,100153,962090,Critic Commentator Nice Answer Nice Question Notable Question Yearling Promoter Enthusiast Notable Question,NULL,pWell figured it out You need to set your default proxy BEFORE you start using the socket before you import anything that uses it You also need to monkeypatch the getaddrinfo part of socket then everything works fine ppre codeimport socksimport socket Can be socks4 5socks setdefaultproxy socks PROXY TYPE SOCKS4 127 9050 socket socket socks socksocket Magic def getaddrinfo args return socket AF INET socket SOCK STREAM args args socket getaddrinfo getaddrinfoimport urllib code prepThis works and proxies all DNS requests through whatever module you import in lieu of urllib Hope it helps someone out there ppEDIT You can find updated code and stuff on my href http web archive org web 20161011051014 http fitblip pub 2012 11 13 proxying dns with python rel nofollow noreferrer blog ve posted possible solution on your question,0,NULL,NULL 654,327992,918142,NULL,NULL,NULL,0,NULL,NULL 655,245746,662636,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 656,473859,458793,NULL,NULL,NULL,0,NULL,NULL 657,581182,1160757,NULL,NULL,NULL,0,NULL,NULL 658,368741,123204,Nice Answer Enlightened Notable Question Nice Answer Famous Question Nice Answer Enlightened Notable Question Popular Question Nice Question Good Answer Yearling Notable Question Caucus Popular Question Good Question Good Answer Yearling Popular Question Good Answer Guru Famous Question Nice Answer Enlightened Census Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 659,7504839,173677,Popular Question Famous Question Popular Question Favorite Question Nice Question Famous Question Popular Question php Nice Answer Revival Good Question Good Question Notable Question Nice Answer Notable Question Yearling Nice Answer Revival Popular Question Good Answer Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Nice Question Good Question Notable Question Notable Question Popular Question Necromancer Enlightened Nice Answer Notable Question Yearling Nice Question Documentation User Popular Question Notable Question Good Question Good Question Nice Question Popular Question Great Answer Nice Question Famous Question Caucus Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Popular Question Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 660,925210,173677,Popular Question Famous Question Popular Question Favorite Question Nice Question Famous Question Popular Question php Nice Answer Revival Good Question Good Question Notable Question Nice Answer Notable Question Yearling Nice Answer Revival Popular Question Good Answer Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Nice Question Good Question Notable Question Notable Question Popular Question Necromancer Enlightened Nice Answer Notable Question Yearling Nice Question Documentation User Popular Question Notable Question Good Question Good Question Nice Question Popular Question Great Answer Nice Question Famous Question Caucus Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Popular Question Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 661,216237,452872,Good Question,NULL,NULL,0,NULL,NULL 662,247516,1370746,Yearling Revival Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 663,154711,307386,Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 664,628822,993569,NULL,NULL,NULL,0,NULL,NULL 665,195250,1231171,NULL,NULL,NULL,0,NULL,NULL 666,289283,1288860,NULL,NULL,NULL,0,NULL,NULL 667,1179954,959034,NULL,NULL,NULL,0,NULL,NULL 668,298276,464609,Notable Question,NULL,NULL,0,NULL,NULL 669,1592653,386911,Popular Question Popular Question Investor Critic Nice Question Popular Question Notable Question Famous Question Nice Question Popular Question Nice Question Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 670,123326,1026598,Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Revival Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Guru Yearling Good Answer haskell-pipes Nice Answer Nice Answer Good Question Nice Answer Nice Answer Enlightened Necromancer Necromancer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Announcer Nice Question Yearling Good Answer,NULL,NULL,1,NULL,Haskell unnamed command line arguments for optparse generic haskell command line arguments optparse generic pI using href https hackage haskell org package optparse generic rel nofollow optparse generic to parse the command line arguments of program called codeexample code have datatype with named fields record syntax For example ppre codedata Example Example foo Int bar String deriving Generic Show code prepThis generates program which can be called as follows ppre code example foo 42 bar baz code prepHow can tell optparse generic that codebar code should be an unnamed mandatory positional command line argument That means don want to type code bar code when call codeexample code For example want to call codeexample code the following ppre code example foo 42 baz code pre codeoptparse generic code does not support generating such parser from single data type definition since Haskell does not support records with both labeled and unlabeled fields ppHowever what you can do is generate one data type for all the labeled fields and one type for the unlabeled fields and then combine them using codeApplicative code operations like this ppre codedata Labeled Labeled foo Int deriving Generic Show instance ParseRecord Labeleddata Unlabeled Unlabeled String deriving Generic Show instance ParseRecord Unlabeleddata Mixed Mixed Labeled Unlabeled deriving Show instance ParseRecord Mixed where parseRecord Mixed lt gt parseRecord lt gt parseRecord code pre 671,170395,1008487,NULL,NULL,NULL,0,NULL,NULL 672,760568,1387324,NULL,NULL,NULL,0,NULL,NULL 673,52643,1250389,Notable Question Yearling Custodian Custodian Revival Necromancer Nice Answer Yearling Curious Good Answer Yearling Revival Good Answer Necromancer Popular Question Necromancer Nice Answer Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 674,639933,700634,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 675,1504167,548433,Promoter Benefactor Nice Question Census Informed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 676,433210,789250,NULL,NULL,NULL,0,NULL,NULL 677,270580,650806,Supporter Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 678,270579,650806,Supporter Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 679,2232,262162,NULL,NULL,NULL,0,NULL,NULL 680,8123155,10427,Great Answer Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 681,54631,120080,Yearling Popular Question Guru Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 682,108377,833569,Census,NULL,NULL,0,NULL,NULL 683,722566,1284770,Yearling Good Question Popular Question Nice Question Notable Question Favorite Question Famous Question Yearling Great Question Revival Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 684,451353,1337140,Teacher Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 685,163195,562753,Popular Question,NULL,NULL,0,NULL,NULL 686,118319,1269436,Caucus Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 687,15738,341390,Popular Question Necromancer Yearling Good Question,NULL,NULL,0,NULL,NULL 688,499750,1128745,NULL,NULL,NULL,0,NULL,NULL 689,1624152,1128745,NULL,NULL,NULL,0,NULL,NULL 690,408613,955340,Notable Question Census Caucus Yearling Commentator Yearling Critic Citizen Patrol Custodian Custodian Yearling Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 691,216801,386150,NULL,NULL,NULL,0,NULL,NULL 692,12576,169530,Popular Question Critic Excavator Notable Question Popular Question,NULL,NULL,0,NULL,NULL 693,35287,128141,apache Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Citizen Patrol Nice Answer Enlightened Good Answer Excavator Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Strunk & White Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer nginx Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer openshift Nice Answer Tenacious Nice Answer Announcer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Tag Editor Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer docker Nice Answer openshift-origin Nice Answer Enlightened kubernetes,NULL,NULL,0,NULL,NULL 694,429850,226106,NULL,NULL,NULL,0,NULL,NULL 695,591937,430688,Yearling Good Answer,NULL,NULL,0,NULL,NULL 696,231486,512585,NULL,NULL,NULL,0,NULL,NULL 697,301117,571168,Excavator Caucus Constituent Autobiographer Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 698,3058207,571168,Excavator Caucus Constituent Autobiographer Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 699,305278,567604,NULL,NULL,NULL,0,NULL,NULL 700,10502642,494384,Editor Supporter,NULL,NULL,0,NULL,NULL 701,46867,486652,NULL,NULL,NULL,0,NULL,NULL 702,124823,578657,NULL,NULL,NULL,0,NULL,NULL 703,684112,923636,Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Yearling Good Question Famous Question Famous Question Good Question Nice Question Popular Question Notable Question Good Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 704,867487,1051303,NULL,NULL,NULL,0,NULL,NULL 705,347186,1051303,NULL,NULL,NULL,0,NULL,NULL 706,129140,281084,Yearling Popular Question Nice Answer Investor Civic Duty Caucus Necromancer Cleanup Custodian Yearling Good Answer Popular Question Nice Answer Documentation User Nice Answer Yearling Custodian Necromancer,NULL,NULL,0,NULL,NULL 707,382322,1556732,NULL,NULL,NULL,0,NULL,NULL 708,1242937,4120,Good Question Famous Question Good Question Great Question Yearling Famous Question Famous Question Nice Answer Enlightened Good Question Nice Question Famous Question Famous Question Great Question Famous Question Yearling Guru Favorite Question Necromancer Popular Question Nice Question Popular Question Revival Favorite Question Necromancer Popular Question Good Question Notable Question Necromancer Nice Question Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 709,176248,4120,Good Question Famous Question Good Question Great Question Yearling Famous Question Famous Question Nice Answer Enlightened Good Question Nice Question Famous Question Famous Question Great Question Famous Question Yearling Guru Favorite Question Necromancer Popular Question Nice Question Popular Question Revival Favorite Question Necromancer Popular Question Good Question Notable Question Necromancer Nice Question Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 710,159774,1365359,NULL,NULL,NULL,0,NULL,NULL 711,752289,1088825,NULL,NULL,NULL,0,NULL,NULL 712,6340678,972946,NULL,NULL,NULL,0,NULL,NULL 713,107312,972946,NULL,NULL,NULL,0,NULL,NULL 714,50515,485787,Custodian Commentator Yearling Caucus Constituent Documentation User,NULL,NULL,0,NULL,NULL 715,254829,54538,Yearling Necromancer Nice Answer Nice Question Nice Question Nice Answer Good Answer Yearling Good Question Custodian Yearling Notable Question Notable Question Popular Question Stellar Question,NULL,NULL,0,NULL,NULL 716,173537,1475214,Critic Popular Question Commentator,NULL,NULL,0,NULL,NULL 717,114944,495305,Nice Answer,NULL,NULL,0,NULL,NULL 718,257754,262852,Notable Question Famous Question Popular Question Yearling Notable Question Announcer Peer Pressure Popular Question Notable Question Famous Question Notable Question Popular Question Good Question Popular Question Nice Answer Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Good Answer Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Famous Question Announcer Good Question Popular Question Popular Question Famous Question Famous Question Popular Question Electorate Popular Question Announcer Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Announcer Yearling Investor Notable Question Popular Question Notable Question Popular Question Caucus Announcer Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Good Question Notable Question Notable Question Popular Question Popular Question Announcer Announcer Notable Question Notable Question Notable Question Popular Question Famous Question Announcer Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,How do run command on an already existing Docker container docker pI created container with code code so it not interactive ppre codedocker run shykes pybuilder bin bash code prepI see that the container has exited ppre codeCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESd6c45e8cc5f0 shykes pybuilder latest bin bash 41 minutes ago Exited seconds ago clever bardeen code prepNow would like to run occasional commands on the machine and exit Just to get the response ppI tried to start the machine tried attaching thought could call coderun code with container but that does not seem to be allowed Using codestart code just seems to run and then exist quickly ppI like to get back into interactive mode after exiting ppI tried ppre codedocker attach d6c45e8cc5f0 code prepBut get ppre code2014 10 01 22 33 34 You cannot attach to stopped container start it first code prepBut if start it it exits anyway Catch 22 can win how did you know that the docker container had exited what command did you run,0,NULL,NULL 719,615022,793902,NULL,NULL,NULL,0,NULL,NULL 720,2777713,1363532,Notable Question Famous Question Yearling Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 721,449613,1363532,Notable Question Famous Question Yearling Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 722,204524,946152,NULL,NULL,NULL,0,NULL,NULL 723,168469,577400,NULL,NULL,NULL,0,NULL,NULL 724,138235,1300023,Notable Question Necromancer Famous Question Yearling Necromancer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 725,80790,250575,Informed Revival,NULL,NULL,0,NULL,NULL 726,2956940,151123,Yearling Yearling Good Answer Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 727,60587,151123,Yearling Yearling Good Answer Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 728,26791,196350,Guru,NULL,NULL,0,NULL,NULL 729,425832,355809,NULL,NULL,NULL,0,NULL,NULL 730,36691,480957,Teacher,NULL,NULL,0,NULL,NULL 731,148422,1258012,NULL,NULL,NULL,0,NULL,NULL 732,1206180,793827,NULL,NULL,NULL,0,NULL,NULL 733,182003,486508,Nice Answer Enlightened Yearling Announcer Caucus Critic,NULL,NULL,0,NULL,NULL 734,306345,1189599,NULL,NULL,NULL,0,NULL,NULL 735,333871,1532431,NULL,NULL,NULL,0,NULL,NULL 736,79363,1102964,NULL,NULL,NULL,0,NULL,NULL 737,313113,1278566,NULL,NULL,NULL,0,NULL,NULL 738,147280,200945,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 739,7837,130371,Yearling Civic Duty,NULL,NULL,0,NULL,NULL 740,20471,602899,Announcer Supporter Critic Announcer Announcer Student Announcer Tumbleweed Scholar Announcer Announcer Commentator Announcer Enthusiast Curious Yearling Announcer Self-Learner,NULL,NULL,0,NULL,NULL 741,14109,258845,Popular Question Popular Question Notable Question Caucus Curious,NULL,NULL,0,NULL,NULL 742,303388,391151,NULL,NULL,NULL,0,NULL,NULL 743,2464071,520734,NULL,NULL,NULL,0,NULL,NULL 744,23311,2076,Yearling Necromancer Nice Answer Necromancer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 745,244988,1228394,Supporter Editor Excavator Necromancer Critic Informed Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 746,8837795,791943,NULL,NULL,NULL,0,NULL,NULL 747,164904,583964,NULL,NULL,NULL,0,NULL,NULL 748,582814,76605,NULL,NULL,NULL,0,NULL,NULL 749,154444,187469,NULL,NULL,NULL,0,NULL,NULL 750,423037,313586,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 751,35385,81248,Yearling Critic Revival Tumbleweed Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 752,4170372,794380,Notable Question Notable Question Popular Question Nice Answer Good Answer Good Answer Nice Answer Notable Question Popular Question Yearling Popular Question Nice Answer Enlightened ruby Nice Answer Enlightened Popular Question Nice Question Yearling Popular Question Popular Question Census Popular Question Guru Nice Answer Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 753,317560,794380,Notable Question Notable Question Popular Question Nice Answer Good Answer Good Answer Nice Answer Notable Question Popular Question Yearling Popular Question Nice Answer Enlightened ruby Nice Answer Enlightened Popular Question Nice Question Yearling Popular Question Popular Question Census Popular Question Guru Nice Answer Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 754,270281,794380,Notable Question Notable Question Popular Question Nice Answer Good Answer Good Answer Nice Answer Notable Question Popular Question Yearling Popular Question Nice Answer Enlightened ruby Nice Answer Enlightened Popular Question Nice Question Yearling Popular Question Popular Question Census Popular Question Guru Nice Answer Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 755,124219,450726,Custodian Informed Autobiographer Nice Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 756,316905,81785,Notable Question Popular Question Nice Question Popular Question Notable Question Yearling Nice Question Notable Question Popular Question Famous Question Nice Question Popular Question Popular Question Good Question Nice Question Caucus Constituent Nice Question Notable Question Nice Question Popular Question Unsung Hero Popular Question Popular Question Famous Question Yearling Popular Question Famous Question Notable Question Popular Question Caucus Constituent Nice Answer Enlightened Notable Question Popular Question Pundit Cleanup Notable Question Popular Question Famous Question Notable Question Notable Question Census Caucus Revival Yearling Constituent Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 757,577057,296340,NULL,NULL,NULL,0,NULL,NULL 758,42159,1373163,Notable Question,NULL,NULL,0,NULL,NULL 759,1375709,1526747,Student,NULL,NULL,0,NULL,NULL 760,463906,296524,NULL,NULL,NULL,0,NULL,NULL 761,6803450,875216,Popular Question,NULL,NULL,0,NULL,NULL 762,175704,1447986,NULL,NULL,NULL,0,NULL,NULL 763,165021,1004429,NULL,NULL,NULL,0,NULL,NULL 764,289213,462137,NULL,NULL,NULL,0,NULL,NULL 765,124954,1130278,NULL,NULL,NULL,0,NULL,NULL 766,1168609,137,Notable Question Nice Question Nice Question Yearling Famous Question Good Answer Nice Answer php Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 767,139430,574224,NULL,NULL,NULL,0,NULL,NULL 768,3926396,1316687,NULL,NULL,NULL,0,NULL,NULL 769,3952618,1077943,Editor Announcer Supporter,NULL,NULL,0,NULL,NULL 770,679159,1263179,NULL,NULL,NULL,0,NULL,NULL 771,154200,380816,Custodian Informed Yearling Nice Answer Nice Answer Yearling Nice Answer Promoter Nice Question Benefactor Good Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 772,98340,110225,Necromancer Yearling Good Question Great Answer Custodian Great Question Yearling Excavator Yearling Famous Question,NULL,pIn general that depends on your shell but if you use bash zsh ksh or sh as provided by dash the following should work ppre codeif type foobar command name gt dev null then install foobar herefi code prepFor real installation script you probably want to be sure that codetype code doesn return successfully in the case when there is an alias codefoobar code In bash you could do something like this ppre codeif foobar loc type foobar command name foobar loc then install foobar herefi code pre type is typically shell builtin so instead of trying to find manual among the system manuals open your shell manual man bash or man zshbuiltins and search for type,0,NULL,NULL 773,1511084,316635,NULL,NULL,NULL,0,NULL,NULL 774,508160,1251592,NULL,NULL,NULL,0,NULL,NULL 775,137601,87795,NULL,NULL,NULL,0,NULL,NULL 776,243084,584768,Yearling Notable Question Caucus,NULL,NULL,0,NULL,NULL 777,128763,836413,Yearling Yearling Fanatic Caucus Constituent Caucus Constituent Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 778,293829,1357807,Informed Scholar,NULL,NULL,0,NULL,NULL 779,12913,5314,Nice Answer Good Answer Good Answer Great Answer Good Question Good Answer Good Answer Nice Answer Good Answer Nice Question Popular Question Good Answer Populist Good Answer Famous Question Nice Answer Yearling Good Question Nice Answer Good Answer Good Answer Good Answer Popular Question Nice Answer Good Answer Nice Answer Nice Answer Popular Question Nice Answer Yearling Popular Question Documentation User Great Question Notable Question Notable Question Guru Good Question Nice Answer Nice Answer Nice Answer Notable Question Notable Question Yearling Favorite Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 780,1373390,1291791,NULL,NULL,NULL,0,NULL,NULL 781,488725,1174641,Autobiographer Civic Duty Suffrage Citizen Patrol Tumbleweed Scholar Student Critic Vox Populi Yearling Self-Learner Yearling,NULL,NULL,0,NULL,NULL 782,611118,1525962,Enthusiast Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 783,903319,1167239,Tumbleweed Nice Answer Yearling Student Good Answer Yearling Scholar Supporter Yearling Critic,NULL,NULL,0,NULL,NULL 784,1421,185288,NULL,NULL,NULL,0,NULL,NULL 785,21596,941579,NULL,NULL,NULL,0,NULL,NULL 786,68686,276250,Nice Answer Yearling Custodian Famous Question Nice Answer Popular Question javascript Caucus Nice Answer Enlightened Census Yearling Strunk & White Notable Question Famous Question Caucus Nice Answer Enlightened Constituent Notable Question Announcer Nice Answer Good Answer Yearling Nice Answer Enlightened Benefactor Announcer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 787,1718132,1161754,NULL,NULL,NULL,0,NULL,NULL 788,891686,1056037,NULL,NULL,NULL,0,NULL,NULL 789,1195677,1009939,NULL,NULL,NULL,0,NULL,NULL 790,1385864,1122317,Yearling Nice Question Famous Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 791,344620,414297,NULL,NULL,NULL,0,NULL,NULL 792,503616,842253,NULL,NULL,NULL,0,NULL,NULL 793,2718171,1492096,NULL,NULL,NULL,0,NULL,NULL 794,840082,1334159,NULL,NULL,NULL,0,NULL,NULL 795,76797,1039872,Nice Question Famous Question Popular Question Popular Question Good Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 796,250483,316048,Yearling,NULL,NULL,0,NULL,NULL 797,896,132047,Good Answer Good Answer Nice Answer Good Answer Guru Guru Publicist Announcer Guru Announcer Good Answer Notable Question Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Favorite Question Good Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Booster Guru Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Good Answer Yearling Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru retrofit Nice Answer Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Announcer Necromancer Good Answer Good Answer Booster Announcer Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Enlightened okhttp Good Answer Popular Question Great Answer Populist Yearling Good Answer Nice Answer Enlightened Nice Answer Guru Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Guru Booster Announcer Announcer Great Answer Good Answer Guru Guru Announcer Nice Answer Enlightened Booster Great Answer Guru Booster Guru Booster Great Answer Yearling Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru,NULL,pFirst off Butter Knife is not dependency injection library You can think of it as boilerplate reduction library since all it does is replace codefindViewById code and various codesetXxxListener code calls ppThe reason that Butter Knife requires views not be private is that is actually generates code which sets the fields The code that it generates lives in the same package as your class which is why the field must be package private protected or public If the field was private the generated code would fail to compile since it cannot access the private field ppThe generated code looks something like this ppre codepublic static void inject ExampleActivity target ExampleActivity source target title TextView source findViewById id title target subtitle TextView source findViewById id subtitle target footer TextView source findViewById id footer code prepWhen you call codeButterKnife inject this code it looks up this generate class and calls the codeinject code method with your instance of codeExampleActivity code as both the destination for the fields and the source for codefindViewById code calls javac does not allow that,0,NULL,NULL 798,257043,1096151,NULL,NULL,NULL,0,NULL,NULL 799,251543,580527,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 800,422008,1115826,Famous Question,NULL,NULL,0,NULL,NULL 801,92538,438813,NULL,NULL,NULL,0,NULL,NULL 802,87888,622115,Yearling Nice Answer Enlightened Popular Question Yearling Yearling,NULL,pRSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM It does not include memory that is swapped out It does include memory from shared libraries as long as the pages from those libraries are actually in memory It does include all stack and heap memory ppVSZ is the Virtual Memory Size It includes all memory that the process can access including memory that is swapped out memory that is allocated but not used and memory that is from shared libraries ppSo if process has 500K binary and is linked to 2500K of shared libraries has 200K of stack heap allocations of which 100K is actually in memory rest is swapped or unused and it has only actually loaded 1000K of the shared libraries and 400K of its own binary then ppre codeRSS 400K 1000K 100K 1500KVSZ 500K 2500K 200K 3200K code prepSince part of the memory is shared many processes may use it so if you add up all of the RSS values you can easily end up with more space than your system has ppThe memory that is allocated also may not be in RSS until it is actually used by the program So if your program allocated bunch of memory up front then uses it over time you could see RSS going up and VSZ staying the same ppThere is also PSS proportional set size This is newer measure which tracks the shared memory as proportion used by the current process So if there were two processes using the same shared library from before ppre codePSS 400K 1000K 100K 400K 500K 100K 1000K code prepThreads all share the same address space so the RSS VSZ and PSS for each thread is identical to all of the other threads in the process Use ps or top to view this information in linux unix ppThere is way more to it than this to learn more check the following references pulli href http manpages ubuntu com manpages en man1 ps html rel noreferrer http manpages ubuntu com manpages en man1 ps html lili href https web archive org web 20120520221529 http emilics com blog article mconsumption html rel noreferrer https web archive org web 20120520221529 http emilics com blog article mconsumption html li ulpAlso see pulli href https stackoverflow com questions 118307 way to determine processs real memory usage private dirty rss way to determine process 39 real memory usage private dirty RSS li ul not really sure Take look at this answer on Java virtual memory usage https stackoverflow com 561450 622115 Short version VSZ can include heap space that is allocated and not used as well as memory mapped files pRSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM It does not include memory that is swapped out It does include memory from shared libraries as long as the pages from those libraries are actually in memory It does include all stack and heap memory ppVSZ is the Virtual Memory Size It includes all memory that the process can access including memory that is swapped out memory that is allocated but not used and memory that is from shared libraries ppSo if process has 500K binary and is linked to 2500K of shared libraries has 200K of stack heap allocations of which 100K is actually in memory rest is swapped or unused and it has only actually loaded 1000K of the shared libraries and 400K of its own binary then ppre codeRSS 400K 1000K 100K 1500KVSZ 500K 2500K 200K 3200K code prepSince part of the memory is shared many processes may use it so if you add up all of the RSS values you can easily end up with more space than your system has ppThe memory that is allocated also may not be in RSS until it is actually used by the program So if your program allocated bunch of memory up front then uses it over time you could see RSS going up and VSZ staying the same ppThere is also PSS proportional set size This is newer measure which tracks the shared memory as proportion used by the current process So if there were two processes using the same shared library from before ppre codePSS 400K 1000K 100K 400K 500K 100K 1000K code prepThreads all share the same address space so the RSS VSZ and PSS for each thread is identical to all of the other threads in the process Use ps or top to view this information in linux unix ppThere is way more to it than this to learn more check the following references pulli href http manpages ubuntu com manpages en man1 ps html rel noreferrer http manpages ubuntu com manpages en man1 ps html lili href https web archive org web 20120520221529 http emilics com blog article mconsumption html rel noreferrer https web archive org web 20120520221529 http emilics com blog article mconsumption html li ulpAlso see pulli href https stackoverflow com questions 118307 way to determine processs real memory usage private dirty rss way to determine process 39 real memory usage private dirty RSS li ul Yes that is good point can add that memory that is malloced but not yet used will show up like that,0,NULL,NULL 803,474740,1190934,Necromancer Yearling Nice Answer Notable Question Notable Question Popular Question Nice Question Necromancer Great Answer Popular Question Nice Question Nice Answer Popular Question Good Answer Popular Question Nice Question Necromancer Popular Question Nice Answer Notable Question Nice Answer Notable Question Good Answer Popular Question Good Question Popular Question Notable Question Caucus Populist Necromancer Revival Good Answer Famous Question Nice Question Peer Pressure Popular Question Good Answer Yearling Famous Question Famous Question Popular Question Popular Question Custodian Custodian Custodian Popular Question Nice Answer Notable Question Notable Question Revival Nice Answer Nice Question Notable Question Popular Question Popular Question Popular Question Nice Answer Necromancer Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Electorate Revival Famous Question Nice Question Necromancer Popular Question Great Question Popular Question Notable Question Nice Question Great Answer Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Revival Famous Question Notable Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 804,383999,139187,NULL,NULL,NULL,0,NULL,NULL 805,20959,575000,Editor,NULL,NULL,0,NULL,NULL 806,640226,196012,Necromancer Yearling Popular Question Nice Answer Good Answer Custodian Yearling Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 807,263368,684890,Nice Answer Nice Answer Yearling Good Answer Caucus Constituent Yearling Nice Answer Enlightened python Stellar Question Caucus Good Answer Custodian javascript Taxonomist Census Caucus Yearling Strunk & White,NULL,NULL,0,NULL,NULL 808,119008,983586,NULL,NULL,NULL,0,NULL,NULL 809,1532786,983586,NULL,NULL,NULL,0,NULL,NULL 810,14805,362253,Yearling Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 811,347244,782168,Yearling Good Answer Caucus Constituent Yearling Necromancer Necromancer Nice Answer Citizen Patrol Custodian Popular Question Census Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 812,216872,1323736,NULL,NULL,NULL,0,NULL,NULL 813,396317,1345157,Popular Question Critic Caucus Popular Question Caucus Commentator,NULL,NULL,0,NULL,NULL 814,46175,695312,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 815,1110134,484519,NULL,NULL,NULL,0,NULL,NULL 816,2047,863954,Yearling Student Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 817,186897,1149259,Necromancer Yearling Popular Question Notable Question Nice Answer Yearling Popular Question Necromancer Good Answer Nice Answer Nice Answer Yearling Enlightened Citizen Patrol Necromancer Revival,NULL,pJust for completeness Xlib But it somewhat slow when capturing the whole screen ppre codefrom Xlib import display Ximport Image PILW 200 200dsp display Display root dsp screen rootraw root get image ZPixmap 0xffffffff image Image fromstring RGB raw data raw BGRX image show code prepOne could try to trow some types in the bottleneck files in PyXlib and then compile it using Cython That could increase the speed bit phrp strongEdit strongWe can write the core of the function in and then use it in python from ctypes here is something hacked together ppre code include lt stdio gt include lt X11 gt include lt X11 Xlib gt Compile hint gcc shared O3 lX11 fPIC Wl soname prtscn prtscn so prtscn cvoid getScreen const int const int const int const int unsigned char void getScreen const int xx const int yy const int const int out unsigned char data Display display XOpenDisplay NULL Window root DefaultRootWindow display XImage image XGetImage display root xx yy AllPlanes ZPixmap unsigned long red mask image gt red mask unsigned long green mask image gt green mask unsigned long blue mask image gt blue mask int int ii for lt for lt unsigned long pixel XGetPixel image unsigned char blue pixel amp blue mask unsigned char green pixel amp green mask gt gt unsigned char red pixel amp red mask gt gt 16 data ii blue data ii green data ii red ii XDestroyImage image XDestroyWindow display root XCloseDisplay display code prepAnd then the python file ppre codeimport ctypesimport osfrom PIL import ImageLibName prtscn so AbsLibPath os path dirname os path abspath file os path sep LibNamegrab ctypes CDLL AbsLibPath def grab screen x1 y1 x2 y2 x2 x1 y2 y1 size objlength size grab getScreen argtypes result ctypes ubyte objlength grab getScreen x1 y1 result return Image frombuffer RGB result raw RGB if name main im grab screen 1440 900 im show code pre Nope Currently it just copying the desktop image as is any transformation of the image will yield an overhead So without reducing the actual quality of your desktop you re out of luck on that idea Anyway the current overhead is presumably on the Python end of things where we pre allocate buffer can prob be done in and the other slow part where PIL reads in this buffer both those can be optimized and maybe placed on the end of things,0,NULL,NULL 818,27565,128968,Nice Answer Enlightened Good Question Famous Question Notable Question Good Answer Nice Answer Yearling Famous Question Good Question Famous Question Nice Answer Nice Question Notable Question Yearling Nice Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 819,75927,805702,NULL,NULL,NULL,0,NULL,NULL 820,281918,1074897,Popular Question Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 821,76581,9752,Yearling Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 822,132931,1189987,NULL,NULL,NULL,0,NULL,NULL 823,580942,328970,NULL,NULL,NULL,0,NULL,NULL 824,70013,449873,Popular Question Student,NULL,NULL,0,NULL,NULL 825,220452,1112477,NULL,NULL,NULL,0,NULL,NULL 826,109664,182232,NULL,NULL,NULL,0,NULL,NULL 827,1511031,168636,Yearling Great Question Favorite Question,NULL,NULL,0,NULL,NULL 828,680057,646768,Editor Caucus,NULL,NULL,0,NULL,NULL 829,315327,1316806,NULL,NULL,NULL,0,NULL,NULL 830,67162,779076,Notable Question Necromancer Yearling Nice Answer Enlightened Custodian Good Question Popular Question Famous Question Nice Answer Nice Answer Enlightened Yearling Popular Question Notable Question Nice Question Notable Question Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 831,797984,737055,Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Teacher Famous Question Critic,NULL,NULL,0,NULL,NULL 832,400812,1128460,NULL,NULL,NULL,0,NULL,NULL 833,12967,84953,Notable Question Editor Necromancer Commentator Yearling,NULL,NULL,0,NULL,NULL 834,73513,433987,Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 835,1447219,491947,NULL,NULL,NULL,0,NULL,NULL 836,553353,268898,Notable Question Revival Yearling Nice Answer Enlightened Popular Question Necromancer Nice Question Necromancer Nice Answer Announcer Yearling Popular Question Announcer Necromancer Nice Answer Announcer Popular Question Necromancer Popular Question Nice Question Popular Question Yearling Popular Question Necromancer Nice Answer Enlightened Necromancer Popular Question Announcer,NULL,NULL,0,NULL,NULL 837,128828,597750,NULL,NULL,NULL,0,NULL,NULL 838,245984,166734,NULL,NULL,NULL,0,NULL,NULL 839,319231,229159,Notable Question,NULL,NULL,0,NULL,NULL 840,5795040,229159,Notable Question,NULL,NULL,0,NULL,NULL 841,448406,918951,Yearling Necromancer,NULL,NULL,0,NULL,NULL 842,1402986,924088,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 843,1387345,1534440,NULL,NULL,NULL,0,NULL,NULL 844,296241,594595,NULL,NULL,NULL,0,NULL,NULL 845,618756,233200,NULL,NULL,NULL,0,NULL,NULL 846,108888,875786,NULL,NULL,NULL,0,NULL,NULL 847,115687,1068707,NULL,NULL,NULL,0,NULL,NULL 848,226797,1188416,NULL,NULL,NULL,0,NULL,NULL 849,617398,1302640,NULL,NULL,NULL,0,NULL,NULL 850,256184,1175869,Famous Question Popular Question Yearling Nice Question Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 851,304598,80449,Good Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Enlightened Necromancer Custodian Yearling Nice Answer Nice Answer Caucus Good Answer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 852,384620,1469779,Great Question Yearling Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 853,384624,1469779,Great Question Yearling Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 854,169591,88696,Yearling Popular Question Popular Question Taxonomist Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Good Answer Popular Question python Popular Question Popular Question Yearling Nice Question Suffrage Nice Answer Enlightened Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 855,83203,435460,Popular Question Announcer Good Answer Necromancer Announcer Popular Question Announcer Announcer Good Answer Popular Question Yearling Notable Question Nice Answer Announcer Caucus Popular Question Nice Question Popular Question Revival Announcer Popular Question Yearling Nice Answer Popular Question Notable Question Announcer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 856,3910044,976086,NULL,NULL,NULL,0,NULL,NULL 857,85827,1309681,NULL,NULL,NULL,0,NULL,NULL 858,1279941,339739,NULL,NULL,NULL,0,NULL,NULL 859,245078,973298,Yearling Revival Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 860,173320,162836,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 861,259454,1552210,NULL,NULL,NULL,0,NULL,NULL 862,438941,620108,NULL,NULL,NULL,0,NULL,NULL 863,68569,205360,NULL,NULL,NULL,0,NULL,NULL 864,1020650,1556051,Popular Question Yearling Notable Question Nice Question Revival,NULL,NULL,0,NULL,NULL 865,387304,1004073,NULL,NULL,NULL,0,NULL,NULL 866,1512150,1340015,Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 867,1095469,1340015,Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 868,125260,768681,Notable Question Nice Question Famous Question Good Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 869,187124,159438,Guru Nice Answer Nice Answer Enlightened Yearling Popular Question Nice Question Nice Question Nice Answer Enlightened Famous Question Yearling Good Question Popular Question Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 870,352572,894816,NULL,NULL,NULL,0,NULL,NULL 871,172871,817772,NULL,NULL,NULL,0,NULL,NULL 872,165149,372409,Nice Answer Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 873,389731,1086634,NULL,NULL,NULL,0,NULL,NULL 874,885059,870808,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 875,172567,10612,Necromancer Notable Question Revival Notable Question Yearling Good Question Necromancer Necromancer Notable Question Famous Question Yearling Notable Question Good Question Autobiographer Nice Answer Necromancer Popular Question Custodian Revival Famous Question Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 876,74901,1332190,Yearling,NULL,NULL,0,NULL,NULL 877,180096,318699,Yearling Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 878,428317,341679,Editor,NULL,NULL,0,NULL,NULL 879,33799,379580,Nice Question Popular Question Nice Answer Enlightened Notable Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 880,328479,462058,NULL,NULL,NULL,0,NULL,NULL 881,10675775,462058,NULL,NULL,NULL,0,NULL,NULL 882,95277,301248,NULL,NULL,NULL,0,NULL,NULL 883,7344727,1090948,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 884,286014,240937,NULL,NULL,NULL,0,NULL,NULL 885,33416,471226,Yearling,NULL,NULL,0,NULL,NULL 886,5103715,471226,Yearling,NULL,NULL,0,NULL,NULL 887,51929,499650,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 888,925319,330231,NULL,NULL,NULL,0,NULL,NULL 889,17063,298389,Famous Question Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Notable Question Good Answer Announcer Good Answer Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Popular Question Good Answer Good Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Notable Question Nice Answer Announcer Guru Good Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Guru Nice Answer Announcer Nice Answer Nice Answer Guru Announcer Nice Answer Nice Answer Good Answer Announcer Guru Announcer Good Answer Nice Answer Nice Answer Good Answer Announcer Popular Question Nice Answer Enlightened Yearling Guru Great Answer Good Answer Announcer Announcer Popular Question Good Answer Announcer Nice Answer Good Answer Guru Nice Answer Great Answer Good Answer Nice Answer Enlightened Guru Announcer Revival Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 890,718740,1262494,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 891,10052141,1262494,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 892,420489,776715,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 893,1300169,459697,NULL,NULL,NULL,0,NULL,NULL 894,1607307,1076553,Enthusiast Popular Question Notable Question,NULL,NULL,0,NULL,NULL 895,274393,15948,Famous Question Good Question Yearling Yearling Nice Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 896,88134,1428899,NULL,NULL,NULL,0,NULL,NULL 897,73518,498036,NULL,NULL,NULL,0,NULL,NULL 898,1411979,525722,NULL,NULL,NULL,0,NULL,NULL 899,413539,761598,NULL,NULL,NULL,0,NULL,NULL 900,551339,657141,NULL,NULL,NULL,0,NULL,NULL 901,341326,575392,Commentator Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 902,593966,822087,Popular Question Critic Yearling Notable Question,NULL,NULL,0,NULL,NULL 903,199026,303675,Popular Question Good Question ruby-on-rails-3 Nice Question Yearling Popular Question Nice Answer Notable Question Notable Question Nice Question Nice Question Famous Question Guru Yearling Guru Guru Good Question Notable Question Yearling Popular Question Nice Question ruby,NULL,NULL,0,NULL,NULL 904,909350,308767,Good Answer,NULL,NULL,0,NULL,NULL 905,281385,727708,NULL,NULL,NULL,0,NULL,NULL 906,106600,731814,Nice Question Good Question Enthusiast Yearling Notable Question Famous Question Notable Question Stellar Question Notable Question Yearling Yearling Nice Question,NULL,MySQL with Node js mysql node js pI ve just started getting into Node js come from PHP background so fairly used to using MySQL for all my database needs ppHow can use MySQL with Node js Personal preference suppose it depends on the ecosystem you re developing in if you re in team etc This original post is ancient and lot has changed in the Node landscape where its far more commonplace for front and back end work say if you have time to give Node go and its great paired with things like socket io for real time web sockets,0,NULL,NULL 907,91232,412212,Yearling Promoter,NULL,NULL,0,NULL,NULL 908,68295,82928,Notable Question Nice Question Editor Nice Question Yearling Teacher Popular Question,NULL,NULL,0,NULL,NULL 909,82310,736483,NULL,NULL,NULL,0,NULL,NULL 910,19341,260601,Guru Yearling Revival sbt Nice Answer Enlightened Good Answer Revival Good Answer Yearling Nice Answer Good Answer Popular Question Yearling Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 911,209607,1526811,Scholar Supporter,NULL,NULL,0,NULL,NULL 912,1120576,1432975,NULL,NULL,NULL,0,NULL,NULL 913,310176,300436,NULL,NULL,NULL,0,NULL,NULL 914,391741,570161,Popular Question Yearling Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 915,791755,847605,Commentator Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 916,159765,801800,NULL,NULL,NULL,0,NULL,NULL 917,3208613,1336382,Revival,NULL,NULL,0,NULL,NULL 918,53155,804907,NULL,NULL,NULL,0,NULL,NULL 919,663653,2598,Necromancer Favorite Question Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Popular Question Great Answer Nice Answer Popular Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Nice Question Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Famous Question Nice Answer Guru Nice Answer Great Question Guru Census Good Answer Good Answer Great Answer Great Question Nice Answer Notable Question Necromancer Nice Answer Nice Answer Enlightened Guru Popular Question Nice Question Nice Answer Famous Question Guru Announcer Nice Answer Enlightened Guru Good Answer Yearling Notable Question Famous Question Guru Good Answer Guru Nice Answer Great Answer Nice Answer Enlightened Great Answer Popular Question Census Good Answer Good Answer Nice Answer Good Answer Favorite Question Good Answer Nice Answer Nice Question Nice Answer Caucus Notable Question Notable Question Good Question generics Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Guru Great Answer Nice Question Nice Answer Yearling Good Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 920,487288,779513,Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer visual-studio-2010 Nice Answer Enlightened Nice Answer Enlightened apache-spark Nice Answer Enlightened Good Answer Good Answer Nice Question Good Answer Yearling sql-server-2008 Popular Question Nice Answer Popular Question Good Answer Nice Answer Guru rdd Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened linq scala Nice Answer Nice Answer Guru Guru Nice Answer Enlightened apache-spark-sql Good Answer Good Answer Popular Question Notable Question Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened .net Nice Answer Nice Answer Popular Question Nice Answer Famous Question Good Answer Good Answer Good Answer Guru Guru Guru Yearling Notable Question Good Answer Great Answer Popular Question Good Answer Popular Question Notable Question Nice Answer Famous Question Nice Answer Enlightened Great Answer Notable Question Nice Answer Good Answer Popular Question Nice Answer Popular Question Good Answer apache-spark Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Question Nice Answer Nice Answer Yearling Popular Question Nice Answer Good Answer Great Answer Good Answer asp.net-mvc Popular Question Popular Question Good Answer Nice Answer Enlightened Notable Question asp.net Nice Answer Guru Announcer Notable Question Nice Answer Enlightened Popular Question Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 921,25534,515514,Good Answer Announcer Announcer Guru Revival Nice Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 922,417380,81044,Notable Question Favorite Question Yearling Yearling Announcer Excavator Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 923,679871,721391,NULL,NULL,NULL,0,NULL,NULL 924,245431,224832,NULL,NULL,NULL,0,NULL,NULL 925,183335,149795,Notable Question,NULL,NULL,0,NULL,NULL 926,494202,1459470,NULL,NULL,NULL,0,NULL,NULL 927,691506,306310,NULL,NULL,NULL,0,NULL,NULL 928,433841,912645,Favorite Question Great Question Necromancer Custodian Excavator Notable Question Yearling Announcer Notable Question Popular Question Caucus Necromancer Revival Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 929,1735848,1302238,Supporter Scholar,NULL,NULL,0,NULL,NULL 930,159254,1004763,NULL,NULL,NULL,0,NULL,NULL 931,621629,664195,Popular Question,NULL,NULL,0,NULL,NULL 932,351467,981605,Yearling Tumbleweed Critic Nice Question Yearling Notable Question Revival Necromancer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 933,256664,715211,NULL,NULL,NULL,0,NULL,NULL 934,36907,167820,Revival Guru Popular Question Nice Question Yearling Good Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Yearling Census Custodian Excavator Custodian Proofreader Suffrage Vox Populi Reviewer Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 935,443282,35054,Good Answer Nice Answer Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 936,479962,1000361,Nice Answer Notable Question Notable Question Popular Question Famous Question Necromancer Good Answer Nice Question Commentator Notable Question Yearling Famous Question Popular Question Nice Answer Good Question Yearling Good Question Necromancer Yearling Notable Question Great Answer,NULL,NULL,0,NULL,NULL 937,364689,1291365,Notable Question Revival Caucus Popular Question,NULL,NULL,0,NULL,NULL 938,12488,244481,NULL,NULL,NULL,0,NULL,NULL 939,596636,308678,NULL,NULL,NULL,0,NULL,NULL 940,3148662,919532,Nice Answer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 941,1420819,919532,Nice Answer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 942,163124,432851,Tumbleweed,NULL,NULL,0,NULL,NULL 943,897101,878427,NULL,NULL,NULL,0,NULL,NULL 944,1260408,983292,NULL,NULL,NULL,0,NULL,NULL 945,43399,437506,Nice Question Curious Organizer Yearling Custodian Excavator Explainer Yearling Yearling Enthusiast Yearling Custodian Strunk & White Yearling Tenacious Custodian Quorum java Popular Question Notable Question Yearling Famous Question Good Question Documentation User Custodian Unsung Hero Civic Duty Yearling,NULL,NULL,0,NULL,NULL 946,6966920,1059320,Good Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 947,475035,1059320,Good Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 948,488083,827263,Nice Answer Enlightened Nice Answer linux Nice Answer c11 Necromancer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Revival Nice Answer perl Nice Answer c-preprocessor Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Announcer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer terminal Good Question Great Answer Popular Question Revival Nice Answer Good Answer Necromancer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Good Answer Good Answer Yearling Nice Answer Guru Nice Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Necromancer Great Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Guru Good Answer Necromancer macros undefined-behavior Good Answer enums Nice Answer Nice Answer string Nice Answer Nice Answer Popular Question Good Answer Good Answer Nice Answer Good Answer crontab Announcer Nice Answer Good Answer Nice Answer Enlightened Great Question Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Necromancer Archaeologist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Great Answer Nice Answer Good Answer Notable Question Good Answer Nice Answer Enlightened Nice Answer cron Nice Answer Nice Answer Guru Good Answer Great Answer Nice Answer Nice Answer if-statement Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Revival Necromancer Nice Answer Announcer Nice Answer Nice Answer Great Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Announcer Nice Answer Good Answer Nice Answer Necromancer Nice Answer Revival Nice Answer Good Answer Yearling Good Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Nice Answer Necromancer variables Announcer Nice Answer Enlightened Announcer Nice Answer Announcer Nice Answer Guru Necromancer Necromancer Booster Nice Answer Enlightened Nice Answer Good Answer Good Answer Announcer Nice Answer Documentation User Nice Answer Nice Answer Nice Answer Necromancer Good Answer Necromancer Announcer c89 pointers Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer macos Announcer Nice Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Announcer Caucus Booster Good Answer Nice Answer Good Answer Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Announcer Nice Answer time Good Answer Guru Nice Answer Good Answer Yearling Announcer Popular Question Guru Booster Publicist Nice Answer Necromancer Guru Nice Answer Nice Answer Nice Answer Good Answer Necromancer Guru Nice Answer Nice Answer Enlightened Guru Guru Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer,NULL,Why should prefer static constexpr int in class over enum for class level integral constants 11 enums constexpr strongC 17 Update strongcodestatic constexpr code variables are implicitly codeinline code so there no external definition necessary phrpOriginal question ppLet say have list of constants such as ppre codestruct Cls static constexpr int 32 static constexpr int 64 code prepThis of course suggests that add definitions for these to avoid ODR usage issues that may occur so need ppre codeconstexpr int Cls constexpr int Cls code prepWhy strongshould strong prefer this over ppre codestruct Cls enum int 32 64 code prepWhich saves me of the ODR usage headaches since codeN code and codeM code are more truly just constants and not objects in their own right bigger deal if this is header only and is shorter could explicitly specify the type codeenum long long code or whatever if need be What is the advantage of the first As written and are of an anonymous enum type not of type int As you say you can specify enum int suggest you should do so in your example codeEXIT FAILURE code either in return statement in codemain code or as an argument to codeexit code is the only portable way to indicate failure in or program codeexit code can actually signal successful termination on VMS for example ppIf you re going to be using codeEXIT FAILURE code when your program fails then you might as well use codeEXIT SUCCESS code when it succeeds just for the sake of symmetry ppOn the other hand if the program never signals failure you can use either code0 code or codeEXIT SUCCESS code Both are guaranteed by the standard to signal successful completion It barely possible that codeEXIT SUCCESS code could have value other than but it equal to on every implementation ve ever heard of ppUsing code0 code has the minor advantage that you don need code include lt stdlib gt code in or code include lt cstdlib gt code in if you re using codereturn code statement rather than calling codeexit code but for program of any significant size you re going to be including stdlib directly or indirectly anyway ppFor that matter in starting with the 1999 standard and in all versions of reaching the end of codemain code does an implicit codereturn code anyway so you might not need to use either code0 code or codeEXIT SUCCESS code explicitly But at least in consider an explicit codereturn code to be better style pp Somebody asked about OpenVMS haven used it in long time but as recall odd status values generally denote success while even values denote failure The implementation maps code0 code to code1 code so that codereturn code indicates successful termination Other values are passed unchanged so codereturn code also indicates successful termination codeEXIT FAILURE code would have non zero even value Do you actually use VMS codeEXIT FAILURE code either in return statement in codemain code or as an argument to codeexit code is the only portable way to indicate failure in or program codeexit code can actually signal successful termination on VMS for example ppIf you re going to be using codeEXIT FAILURE code when your program fails then you might as well use codeEXIT SUCCESS code when it succeeds just for the sake of symmetry ppOn the other hand if the program never signals failure you can use either code0 code or codeEXIT SUCCESS code Both are guaranteed by the standard to signal successful completion It barely possible that codeEXIT SUCCESS code could have value other than but it equal to on every implementation ve ever heard of ppUsing code0 code has the minor advantage that you don need code include lt stdlib gt code in or code include lt cstdlib gt code in if you re using codereturn code statement rather than calling codeexit code but for program of any significant size you re going to be including stdlib directly or indirectly anyway ppFor that matter in starting with the 1999 standard and in all versions of reaching the end of codemain code does an implicit codereturn code anyway so you might not need to use either code0 code or codeEXIT SUCCESS code explicitly But at least in consider an explicit codereturn code to be better style pp Somebody asked about OpenVMS haven used it in long time but as recall odd status values generally denote success while even values denote failure The implementation maps code0 code to code1 code so that codereturn code indicates successful termination Other values are passed unchanged so codereturn code also indicates successful termination codeEXIT FAILURE code would have non zero even value This is specified by not POSIX fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple Your example static int foo unsigned clearly could be simplified to static int foo Presumably the expression in your actual code is more complicated If you show us the actual expression that causing you problems we might be able to help you do what you re trying to do Simplifying examples is great but in this case you may have simplified away the actual problem pAccording to the ISO standard when you convert an integer to signed type and the value is outside the range of the target type the result is implementation defined Or an implementation defined signal can be raised but don know of any compilers that do this ppIn practice the most common behavior is that the high order bits are discarded So assuming codeint code is 32 bits and codeshort code is 16 bits converting the value code0x1248642 code will probably yield bit pattern that looks like code0x8642 code And assuming two complement representation for signed types which is used on almost all systems the high order bit is the sign bit so the numeric value of the result will be code 31166 code ppre codeint sx code prepThis also involves an implicit conversion from codeshort code to codeint code Since the range of codeint code is guaranteed to cover at least the entire range of codeshort code the value is unchanged Since in your example the value of codesx code happens to be negative this change of representation is likely to involve emsign extension em propagating the code1 code sign bit to all 16 high order bits of the result ppAs indicated none of these details are required by the language standard If you really want to truncate values to narrower type it probably best to use unsigned types which have language specified wraparound behavior and perhaps explicit masking operations like this ppre codeunsigned int 0x1248642 unsigned short sx amp 0xFFFF code prepIf you have 32 bit quantity that you want to shove into 16 bit variable the first thing you should do is decide how you want your code to behave if the value doesn fit Once you ve decided that you can figure out how to write code that does what you want Sometimes truncation happens to be what you want in which case your task is going to be easy especially if you re using unsigned types Sometimes an out of range value is an error in which case you need to check for it and decide how to handle the error Sometimes you might want the value to saturate rather than truncate so you ll need to write code to do that ppKnowing how conversions work in is important but if you emstart em with that question you just might be approaching your problem from the wrong direction Or more precisely if CHAR BIT sizeof short 16 ve worked on systems with CHAR BIT where sizeof short is or even,1,NULL,How do you implement strtol under const correctness pAccording to href http www cplusplus com reference cstdlib strtol http www cplusplus com reference cstdlib strtol this function has signature of codelong int strtol const char str char endptr int base code ppI wonder though If it gets passed codeconst char code to the beginning of the string how does it manage to turn that into non const pointer to the first unprocessed character without cheating What would an implementation of strtol look like that doesn perform const cast blockquote strongHow do you implement codestrtol code under const correctness strong blockquotepYou don because codestrtol code definition is inherently not codeconst code correct ppThis is flaw in the standard library ppThere are several standard functions that take codeconst char code argument expected to point the beginning of character array and give back non codeconst code codechar code pointer that can be used to modify that array pp codestrchr code is one example ppre codechar strchr const char int code prepFor example ppre code include lt string gt int main void const char hello char ptr strchr ptr code prepThis program has undefined behavior On my system it dies with segmentation fault ppThe problem doesn occur in codestrchr code itself It promises not to modify the string you pass to it and it doesn But it returns pointer that the caller can then use to modify it ppThe ANSI committee back in the late 1980s emcould em have split each such function into two versions one that acts on codeconst code character arrays and another for non codeconst code arrays ppre codechar strchr char int const char strcchr const char int code prepBut that would have broken existing pre ANSI code written before codeconst code existed This is the same reason has not made string literals codeconst code ppC which inherits most of standard library deals with this by providing overloaded versions of some functions ppThe bottom line is that emyou em as programmer are responsible for not modifying objects you ve defined as codeconst code In most cases the language helps you enforce this but not always ppAs for how these functions manage to return non codeconst code pointer to codeconst code data they probably just use cast internally not codeconst cast code which exists only in That assuming they re implemented in which is likely but not required When an int is cast to short and truncated how is the new value determined casting truncate pCan someone clarify what happens when an integer is cast to codeshort code in using Raspberry Pi so aware that an codeint code is 32 bits and therefore codeshort code must be 16 bits ppLet say use the following code for example ppre codeint 0x1248642 short sx short int sx code prepI get that codex code would be truncated but can someone explain how exactly Are shifts used How exactly is number truncated from 32 bits to 16 bits pAccording to the ISO standard when you convert an integer to signed type and the value is outside the range of the target type the result is implementation defined Or an implementation defined signal can be raised but don know of any compilers that do this ppIn practice the most common behavior is that the high order bits are discarded So assuming codeint code is 32 bits and codeshort code is 16 bits converting the value code0x1248642 code will probably yield bit pattern that looks like code0x8642 code And assuming two complement representation for signed types which is used on almost all systems the high order bit is the sign bit so the numeric value of the result will be code 31166 code ppre codeint sx code prepThis also involves an implicit conversion from codeshort code to codeint code Since the range of codeint code is guaranteed to cover at least the entire range of codeshort code the value is unchanged Since in your example the value of codesx code happens to be negative this change of representation is likely to involve emsign extension em propagating the code1 code sign bit to all 16 high order bits of the result ppAs indicated none of these details are required by the language standard If you really want to truncate values to narrower type it probably best to use unsigned types which have language specified wraparound behavior and perhaps explicit masking operations like this ppre codeunsigned int 0x1248642 unsigned short sx amp 0xFFFF code prepIf you have 32 bit quantity that you want to shove into 16 bit variable the first thing you should do is decide how you want your code to behave if the value doesn fit Once you ve decided that you can figure out how to write code that does what you want Sometimes truncation happens to be what you want in which case your task is going to be easy especially if you re using unsigned types Sometimes an out of range value is an error in which case you need to check for it and decide how to handle the error Sometimes you might want the value to saturate rather than truncate so you ll need to write code to do that ppKnowing how conversions work in is important but if you emstart em with that question you just might be approaching your problem from the wrong direction 949,395947,80616,Supporter,NULL,NULL,0,NULL,NULL 950,696011,556471,Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 951,33449,314731,NULL,NULL,NULL,0,NULL,NULL 952,662391,1356775,Caucus Constituent Documentation User,NULL,NULL,0,NULL,NULL 953,2303516,263033,Popular Question,NULL,NULL,0,NULL,NULL 954,285187,6330,Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Great Answer Strunk & White Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Great Answer Nice Answer Nice Answer Yearling Notable Question Good Answer Popular Question Nice Answer Enlightened Great Answer Good Answer Nice Answer Popular Question Guru uiview Yearling Popular Question Guru Taxonomist Popular Question Nice Answer Enlightened Custodian Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 955,88056,663061,NULL,NULL,NULL,0,NULL,NULL 956,104425,434375,Popular Question Stellar Question Famous Question Popular Question Nice Question Good Question Notable Question Yearling Caucus Constituent Notable Question Yearling Notable Question Documentation User Custodian Caucus Notable Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 957,340594,1155009,Popular Question,NULL,NULL,0,NULL,NULL 958,3100183,715639,Informed,NULL,NULL,0,NULL,NULL 959,779657,715639,Informed,NULL,NULL,0,NULL,NULL 960,96100,109306,Necromancer Notable Question Notable Question Necromancer Popular Question Favorite Question Nice Answer Yearling Citizen Patrol Popular Question Self-Learner Popular Question Good Question Nice Question Popular Question Great Question Popular Question Nice Answer Enlightened Notable Question Nice Answer Yearling Good Answer Notable Question Popular Question Notable Question Documentation User Revival Necromancer Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 961,826506,551876,NULL,NULL,NULL,0,NULL,NULL 962,1511855,1142740,NULL,NULL,NULL,0,NULL,NULL 963,507389,951683,Supporter,NULL,NULL,0,NULL,NULL 964,77128,823418,NULL,NULL,NULL,0,NULL,NULL 965,251898,859641,NULL,NULL,NULL,0,NULL,NULL 966,139442,72788,Nice Answer Guru Yearling Announcer Yearling Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 967,1349092,1293537,NULL,NULL,NULL,0,NULL,NULL 968,195159,1304612,NULL,NULL,NULL,0,NULL,NULL 969,1259687,113545,NULL,NULL,NULL,0,NULL,NULL 970,150492,619871,NULL,NULL,NULL,0,NULL,NULL 971,3455751,619871,NULL,NULL,NULL,0,NULL,NULL 972,6108342,1543251,NULL,NULL,NULL,0,NULL,NULL 973,1291066,994206,haskell Yearling Notable Question Nice Answer Enlightened Notable Question Yearling Nice Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 974,32925,1482496,NULL,NULL,NULL,0,NULL,NULL 975,302608,445598,Revival Revival Announcer Necromancer Necromancer Necromancer Good Answer Revival Documentation Pioneer ios Yearling Nice Answer Enlightened Announcer Announcer Notable Question Necromancer Yearling Documentation User Nice Answer Enlightened fastlane Nice Answer Good Question Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 976,172415,1291209,NULL,NULL,NULL,0,NULL,NULL 977,488358,1363098,Popular Question,NULL,NULL,0,NULL,NULL 978,79610,134848,Good Answer Tumbleweed Revival Yearling Reviewer Enthusiast Popular Question Nice Answer Enlightened Caucus Constituent Notable Question Yearling Caucus Constituent c# Tag Editor Nice Answer Enlightened Nice Answer Enlightened Revival Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 979,82579,1482161,NULL,NULL,NULL,0,NULL,NULL 980,174795,1185653,NULL,NULL,NULL,0,NULL,NULL 981,665511,1126648,NULL,NULL,NULL,0,NULL,NULL 982,278151,1174347,Notable Question,NULL,NULL,0,NULL,NULL 983,211288,346744,Popular Question Yearling Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 984,237534,601143,NULL,NULL,NULL,0,NULL,NULL 985,461434,1442905,NULL,NULL,NULL,0,NULL,NULL 986,108893,69365,Yearling,NULL,NULL,0,NULL,NULL 987,91269,489943,Notable Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 988,461415,204170,Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 989,32364,182604,Necromancer Good Answer Pundit Informed Revival Yearling Announcer Announcer Good Answer Yearling Nice Answer Tenacious Scholar Self-Learner Popular Question Yearling,NULL,Fastest way to get the first object from queryset in django python django performance django models pOften find myself wanting to get the first object from queryset in Django or return codeNone code if there aren any There are lots of ways to do this which all work But wondering which is the most performant ppre codeqs MyModel objects filter blah blah if qs count gt return qs else return None code prepDoes this result in two database calls That seems wasteful Is this any faster ppre codeqs MyModel objects filter blah blah if len qs gt return qs else return None code prepAnother option would be ppre codeqs MyModel objects filter blah blah try return qs except IndexError return None code prepThis generates single database call which is good But requires creating an exception object lot of the time which is very memory intensive thing to do when all you really need is trivial if test ppHow can do this with just single database call and without churning memory with exception objects this is poor rule of thumb Devs need to understand when QuerySets are evaluated If you are going to use the records anyway using len is better See https docs djangoproject com en dev topics db optimization don overuse count and exists,0,NULL,NULL 990,352862,337582,Nice Answer Enlightened Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 991,513786,978057,Proofreader Excavator Civic Duty javascript Yearling Caucus webgl Strunk & White Caucus Yearling Custodian Caucus Yearling,NULL,FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code checkFramebufferStatus https www khronos org opengles sdk docs man xhtml glCheckFramebufferStatus xml does not have any overload accepting framebuffer object as argument it supposed to be called exclusively with gl FRAMEBUFFER and check the currently bound framebuffer Have you checked if the OES texture float extension is actually supported FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code The OES texture float extension does not guarantee https www khronos org registry webgl extensions OES texture float see last point in overview section that you re able to render to floating point textures That why WEBGL color buffer float https www khronos org registry webgl extensions WEBGL color buffer float was supposed to be introduced however it rarely implemented the only way to make sure is to check the framebuffer status as you already do FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code Or the WebGL spec https www khronos org registry webgl specs latest,0,NULL,NULL 992,190724,605115,NULL,NULL,NULL,0,NULL,NULL 993,35229,641507,Enthusiast Teacher Popular Question Self-Learner Popular Question Yearling Caucus Notable Question Nice Question,NULL,NULL,0,NULL,NULL 994,279495,838107,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 995,10806,1459862,NULL,NULL,NULL,0,NULL,NULL 996,759210,799111,Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 997,200614,1163154,NULL,NULL,NULL,0,NULL,NULL 998,109454,622553,NULL,NULL,NULL,0,NULL,NULL 999,1024920,389697,Informed Documentation User,NULL,NULL,0,NULL,NULL 1000,2601821,253406,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1001,1514949,1061617,NULL,NULL,NULL,0,NULL,NULL 1002,41431,965782,Tag Editor Fanatic Curious Nice Answer Yearling Caucus Excavator Popular Question azure Caucus Nice Answer Nice Answer Enlightened Explainer Popular Question Yearling azure-cosmosdb Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Tumbleweed Notable Question Promoter Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1003,5854,690337,Commentator Yearling Popular Question Critic,NULL,NULL,0,NULL,NULL 1004,88003,272641,NULL,NULL,NULL,0,NULL,NULL 1005,1540196,1232872,Informed Yearling Nice Answer Caucus Caucus,NULL,NULL,0,NULL,NULL 1006,34220,1470629,Census,NULL,NULL,0,NULL,NULL 1007,233244,843194,Editor Student Critic Enthusiast Announcer Citizen Patrol Tumbleweed Yearling Good Answer Commentator Excavator,NULL,NULL,0,NULL,NULL 1008,327931,458139,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 1009,710284,900777,NULL,NULL,NULL,0,NULL,NULL 1010,271721,729574,Explainer,NULL,NULL,0,NULL,NULL 1011,565208,1132948,Teacher Supporter,NULL,NULL,0,NULL,NULL 1012,312930,1900,Good Question Notable Question Nice Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Yearling Great Answer Famous Question Revival Necromancer Famous Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 1013,43909,117030,Good Answer Electorate Necromancer Announcer Yearling Notable Question Custodian Revival Fanatic Caucus Constituent Revival Revival Necromancer Yearling Famous Question Announcer Nice Answer Necromancer Popular Question Notable Question Notable Question Caucus Constituent Yearling Nice Question Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 1014,247458,555515,Nice Question Popular Question Famous Question Inquisitive Popular Question Popular Question Peer Pressure Explainer Citizen Patrol Revival Popular Question Necromancer Good Answer Revival Notable Question Yearling Nice Question Custodian Notable Question Necromancer Good Question Necromancer Nice Answer Caucus Notable Question Announcer Yearling Great Answer Census Nice Question Nice Answer Caucus Notable Question Popular Question Notable Question Nice Question Excavator,NULL,NULL,0,NULL,NULL 1015,455452,449710,NULL,NULL,NULL,0,NULL,NULL 1016,34998,1173542,Tumbleweed Nice Answer Caucus Popular Question Nice Question Good Question Yearling Nice Question Popular Question Nice Question Nice Question Famous Question Popular Question Notable Question Good Answer Notable Question Famous Question Famous Question Yearling Popular Question Announcer Good Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1017,46338,194414,NULL,NULL,NULL,0,NULL,NULL 1018,853384,749133,Notable Question,NULL,NULL,0,NULL,NULL 1019,47442,282594,NULL,NULL,NULL,0,NULL,NULL 1020,891360,623374,Revival,NULL,NULL,0,NULL,NULL 1021,7599883,157438,NULL,NULL,NULL,0,NULL,NULL 1022,362087,3117,Popular Question Curious,NULL,NULL,0,NULL,NULL 1023,29257,1567054,NULL,NULL,NULL,0,NULL,NULL 1024,18637,589226,NULL,NULL,NULL,0,NULL,NULL 1025,269801,386036,Notable Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 1026,1407526,898287,Popular Question,NULL,NULL,0,NULL,NULL 1027,308205,680144,NULL,NULL,NULL,0,NULL,NULL 1028,625107,1130938,NULL,NULL,NULL,0,NULL,NULL 1029,3143481,1130938,NULL,NULL,NULL,0,NULL,NULL 1030,1314354,990761,NULL,NULL,NULL,0,NULL,NULL 1031,8028,281566,Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1032,131838,929514,NULL,NULL,NULL,0,NULL,NULL 1033,565474,14065,Nice Answer Nice Answer Enlightened Nice Question Great Answer Nice Answer Nice Answer Good Answer Good Answer Informed Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Guru Great Answer Announcer Good Answer Guru Nice Answer Popular Question Good Answer Nice Answer Nice Answer Announcer Nice Answer Good Answer Good Answer Announcer Nice Answer Nice Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Nice Question Notable Question Good Question Populist Booster Good Answer Documentation Pioneer Famous Question Announcer Nice Answer Guru Good Answer Good Answer Yearling Nice Answer Notable Question Nice Answer file Announcer Populist Nice Answer Nice Answer Enlightened Nice Answer reference Nice Answer Nice Question Populist Caucus Nice Answer Nice Answer Enlightened Great Answer Popular Question Guru Famous Question Notable Question Favorite Question Great Question struct Good Answer Great Answer Census Nice Answer Nice Answer Good Answer Guru Popular Question Announcer Announcer Nice Answer Great Answer Guru Popular Question Popular Question string Nice Answer Revival Announcer Nice Answer Nice Answer Announcer Nice Answer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Great Answer Caucus Good Answer Nice Answer Good Answer Good Answer Great Answer Popular Question Necromancer Announcer Popular Question Good Answer Yearling Custodian Documentation User Great Answer Announcer Custodian Announcer Notable Question Popular Question Nice Answer Announcer Publicist Nice Answer Enlightened Nice Answer Great Answer Great Question Booster Nice Question Nice Answer Nice Answer Announcer Good Answer Nice Answer getline Stellar Question Good Answer Announcer Nice Question Popular Question Enlightened Suffrage Vox Populi Caucus Announcer Constituent Electorate Nice Question Announcer Good Answer Nice Answer Nice Answer Good Answer Announcer Announcer Great Answer Announcer Nice Answer Good Answer Good Answer Announcer Good Answer Famous Question Notable Question Announcer Great Answer Nice Answer Nice Answer c Famous Question Nice Answer Enlightened Famous Question Popular Question Yearling Stellar Question Announcer Guru Nice Answer std Announcer Announcer Nice Question Announcer Popular Question Great Answer Nice Answer Notable Question,NULL,pWhy does everybody want to return singleton as pointer brReturn it as reference seems much more logical ppYou should never be able to free singleton manually How do you know who is keeping reference to the singleton If you don know or can guarantee nobody has reference in your case via pointer then you have no business freeing the object ppUse the static in function method brThis guarantees that it is created and destroyed only once It also gives you lazy initialization for free ppre codeclass public static amp getInstance static instance return instance private const amp Don Implement void operator const amp Don implement code prepNote you also need to make the constructor private Also make sure that you override the default copy constructor and assignment operator so that you can not make copy of the singleton otherwise it would not be singleton ppAlso read pulli href https stackoverflow com 1008289 14065 https stackoverflow com 1008289 14065 lili href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used lili href https stackoverflow com questions 1008019 singleton design pattern 1008289 1008289 Singleton design pattern li ulpTo make sure you are using singleton for the correct reasons ppThough technically not thread safe in the general case see bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppGCC has an explicit patch to compensate for this bra href http gcc gnu org ml gcc patches 2004 09 msg00265 html rel noreferrer http gcc gnu org ml gcc patches 2004 09 msg00265 html Make it public No point in hiding it pWhy does everybody want to return singleton as pointer brReturn it as reference seems much more logical ppYou should never be able to free singleton manually How do you know who is keeping reference to the singleton If you don know or can guarantee nobody has reference in your case via pointer then you have no business freeing the object ppUse the static in function method brThis guarantees that it is created and destroyed only once It also gives you lazy initialization for free ppre codeclass public static amp getInstance static instance return instance private const amp Don Implement void operator const amp Don implement code prepNote you also need to make the constructor private Also make sure that you override the default copy constructor and assignment operator so that you can not make copy of the singleton otherwise it would not be singleton ppAlso read pulli href https stackoverflow com 1008289 14065 https stackoverflow com 1008289 14065 lili href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used lili href https stackoverflow com questions 1008019 singleton design pattern 1008289 1008289 Singleton design pattern li ulpTo make sure you are using singleton for the correct reasons ppThough technically not thread safe in the general case see bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppGCC has an explicit patch to compensate for this bra href http gcc gnu org ml gcc patches 2004 09 msg00265 html rel noreferrer http gcc gnu org ml gcc patches 2004 09 msg00265 html Correct But this is only template example In real life this is situation were you want to guarantee that the destructor is run Like your communications link to the ISS you want it to shut down correctly and not waste resources PS There is no waste of waste in memory as it uses the same amount of memory as any other technique PS Also note singeltons are usually mistake But this is how you do it iff you want one pWhy does everybody want to return singleton as pointer brReturn it as reference seems much more logical ppYou should never be able to free singleton manually How do you know who is keeping reference to the singleton If you don know or can guarantee nobody has reference in your case via pointer then you have no business freeing the object ppUse the static in function method brThis guarantees that it is created and destroyed only once It also gives you lazy initialization for free ppre codeclass public static amp getInstance static instance return instance private const amp Don Implement void operator const amp Don implement code prepNote you also need to make the constructor private Also make sure that you override the default copy constructor and assignment operator so that you can not make copy of the singleton otherwise it would not be singleton ppAlso read pulli href https stackoverflow com 1008289 14065 https stackoverflow com 1008289 14065 lili href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used lili href https stackoverflow com questions 1008019 singleton design pattern 1008289 1008289 Singleton design pattern li ulpTo make sure you are using singleton for the correct reasons ppThough technically not thread safe in the general case see bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppGCC has an explicit patch to compensate for this bra href http gcc gnu org ml gcc patches 2004 09 msg00265 html rel noreferrer http gcc gnu org ml gcc patches 2004 09 msg00265 html never said that h1Solving order of initialization h1pFirst off this is just temporary work around because you have global variables that you are trying to get rid of but just have not had time yet you are going to get rid of them eventually aren you ppre codeclass public Get the global instance abc static amp getInstance abc return reference static instance abc return instance abc code prepThis will guarantee that it is initialised on first use and destroyed when the application terminates ph3Multi Threaded Problem h3pC 11 emdoes em guarantee that this is thread safe pblockquote strong§6 stmt dcl p4 strong br If control enters the declaration concurrently while the variable is being initialized the concurrent execution shall wait for completion of the initialization blockquotepHowever 03 does emnot em officially guarantee that the construction of static function objects is thread safe So technically the codegetInstance XXX code method must be guarded with critical section On the bright side gcc has an explicit patch as part of the compiler that guarantees that each static function object will only be initialized once even in the presence of threads ppPlease note emDo not em use the href https en wikipedia org wiki Double checked locking rel noreferrer double checked locking pattern to try and avoid the cost of the locking This will not work in 03 ph3Creation Problems h3pOn creation there are no problems because we guarantee that it is created before it can be used ph3Destruction Problems h3pThere is potential problem of accessing the object after it has been destroyed This only happens if you access the object from the destructor of another global variable by global am referring to any non local static variable ppThe solution is to make sure that you force the order of destruction brRemember the order of destruction is the exact inverse of the order of construction So if you access the object in your destructor you must guarantee that the object has not been destroyed To do this you must just guarantee that the object is fully constructed before the calling object is constructed ppre codeclass public static amp getInstance Bglob static instance Bglob return instance Bglob getInstance abc doSomthing The object abc is accessed from the destructor Potential problem You must guarantee that abc is destroyed after this object To guarantee this you must make sure it is constructed first To do this just access the object from the constructor getInstance abc abc is now fully constructed This means it was constructed before this object This means it will be destroyed after this object This means it is safe to use from the destructor code pre And hence it does not provide any guarantee that construction is thread safe pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part You can would not The problem here is if it is called from more than one location The location that calls it first is the one that passes the parameters All other calls the parameters will get dropped on the floor and ignored BUT This is also why the singelton pattern is bad idea when used by itself You should use this pattern in combination with builder pattern say factory Overall the singelton pattern is not good idea You should probably think of another way to design your application pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part That would be good question to ask on http softwareengineering stackexchange com pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part These are not the type of questions for comments These types of questions need the full weight of the community behind them and some though Ask proper question and get the community to answer Comments should be reserved for comments only about the displayed code not how to make it better or alternative techniques pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part If you ask an opinion based question then yes But asking an opinion based question in comments means you get an opinion based answer by me nobody else is looking And try not not answer opinion based questions anyway as there is no real answer pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part ška Yes you are wrong Static storage variables inside function scope are constructed on first use So the first time the function is called is when it is constructed Now this can happen before main If getInstance is called from the constructor of another static storage variable in file scope pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part ška In n4727 Section Declaration statement Paragraph Dynamic initialization of block scope variable with static storage duration or thread storage duration is performed the first time control passes through its declaration pIn 2008 provided 98 implementation of the Singleton design pattern that is lazy evaluated guaranteed destruction not technically thread safe bra href https stackoverflow com questions 270947 can any one provide me sample of singleton in 271104 271104 Can any one provide me sample of Singleton in ppHere is an updated 11 implementation of the Singleton design pattern that is lazy evaluated correctly destroyed and href https stackoverflow com 449823 52074 thread safe ppre codeclass public static amp getInstance static instance Guaranteed to be destroyed Instantiated on first use return instance private Constructor the brackets are needed here 03 Don forget to declare these two You want to make sure they are unacceptable otherwise you may accidentally get copies of your singleton appearing const amp Don Implement void operator const amp Don implement 11 We can use the better technique of deleting the methods we don want public const amp delete void operator const amp delete Note Scott Meyers mentions in his Effective Modern book that deleted functions should generally be public as it results in better error messages due to the compilers behavior to check accessibility before deleted status code prepSee this article about when to use singleton not often bra href https stackoverflow com questions 86582 singleton how should it be used Singleton How should it be used ppSee this two article about initialization order and how to cope bra href https stackoverflow com questions 211237 static variables initialisation order 211307 211307 Static variables initialisation order bra href https stackoverflow com questions 335369 finding static initialization order problems 335746 335746 Finding static initialization order problems ppSee this article describing lifetimes bra href https stackoverflow com questions 246564 what is the lifetime of static variable in function What is the lifetime of static variable in function ppSee this article that discusses some threading implications to singletons bra href https stackoverflow com questions 449436 singleton instance declared as static variable of getinstance method 449823 449823 Singleton instance declared as static variable of GetInstance method is it thread safe ppSee this article that explains why double checked locking will not work on bra href https stackoverflow com questions 367633 what are all the common undefined behaviour that programmer should know about 367690 367690 What are all the common undefined behaviours that programmer should know about bra href http www drdobbs com cpp and the perils of double checked locki 184405726 rel noreferrer Dr Dobbs and The Perils of Double Checked Locking Part ška But should not have needed to tell you that You could have written program in 30 seconds that told you the answer pWhat you need to do is write your own stream buffer brWhen the stream buffer is flushed you output you prefix characters and the content of the stream ppThe following works because std endl causes the following pp1 Add to the stream br2 Calls flush on the streambr2a This calls pubsync on the stream buffer br2b This calls the virtual method sync br2c Override this virtual method to do the work you want ppre code include lt iostream gt include lt sstream gt class MyStream public std ostream Write stream buffer that prefixes each line with Plop class MyStreamBuf public std stringbuf std ostream amp output public MyStreamBuf std ostream amp str output str MyStreamBuf if pbase pptr putOutput When we sync the stream with the output Output Plop then the buffer Reset the buffer flush the actual output stream we are using virtual int sync putOutput return void putOutput Called by destructor destructor can not call virtual methods output lt lt blah lt lt str str output flush My Stream just uses version of my special buffer MyStreamBuf buffer public MyStream std ostream amp str std ostream amp buffer buffer str int main MyStream myStream std cout myStream lt lt lt lt lt lt lt lt std endl lt lt lt lt lt lt std endl lt lt lt lt lt lt std endl gt out blah 123 blah 56 blah 78 gt code pre Well spotted Added destructor to the buffer pCopy file in sane way ppre code include lt fstream gt int main std ifstream src from ogv std ios binary std ofstream dst to ogv std ios binary dst lt lt src rdbuf code prepThis is so simple and intuitive to read it is worth the extra cost If we were doing it lot better to fall back on OS calls to the file system am sure codeboost code has copy file method in its filesystem class ppThere is method for interacting with the file system ppre code include lt copyfile gt intcopyfile const char from const char to copyfile state state copyfile flags flags code pre It does not need to The standard says that if the main function does not end in return then the compiler will plant the return for you Also it is common practice to leave out that return as an indication to other developers that the application can not fail ie you always return the success status code back to the OS pIf you don care about escaping comma and newline brAND you can embed comma and newline in quotes If you can escape then brthen its only about three lines of code OK 14 But its only 15 to read the whole file ppre codestd vector lt std string gt getNextLineAndSplitIntoTokens std istream amp str std vector lt std string gt result std string line std getline str line std stringstream lineStream line std string cell while std getline lineStream cell result push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element result push back return result code prepI would just create class representing row brThen stream into that object ppre code include lt iterator gt include lt iostream gt include lt fstream gt include lt sstream gt include lt vector gt include lt string gt class CSVRow public std string const amp operator std size index const return data index std size size const return data size void readNextRow std istream amp str std string line std getline str line std stringstream lineStream line std string cell data clear while std getline lineStream cell data push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element data push back private std vector lt std string gt data std istream amp operator gt gt std istream amp str CSVRow amp data data readNextRow str return str int main std ifstream file plop csv CSVRow row while file gt gt row std cout lt lt 4th Element lt lt row lt lt code prepBut with little work we could technically create an iterator ppre codeclass CSVIterator public typedef std input iterator tag iterator category typedef CSVRow value type typedef std size difference type typ,,, "def CSVRow pointer typedef CSVRow amp reference CSVIterator std istream amp str str str good amp str NULL this CSVIterator str NULL Pre Increment CSVIterator amp operator if str if str gt gt row str NULL return this Post increment CSVIterator operator int CSVIterator tmp this this return tmp CSVRow const amp operator const return row CSVRow const operator gt const return amp row bool operator CSVIterator const amp rhs return this amp rhs this gt str NULL amp amp rhs str NULL bool operator CSVIterator const amp rhs return this rhs private std istream str CSVRow row int main std ifstream file plop csv for CSVIterator loop file loop CSVIterator loop std cout lt lt 4th Element lt lt loop lt lt code pre Works fine for me have chat room Post your code and will see if there is an issue http chat stackoverflow com rooms 113764 csv pIf you don care about escaping comma and newline brAND you can embed comma and newline in quotes If you can escape then brthen its only about three lines of code OK 14 But its only 15 to read the whole file ppre codestd vector lt std string gt getNextLineAndSplitIntoTokens std istream amp str std vector lt std string gt result std string line std getline str line std stringstream lineStream line std string cell while std getline lineStream cell result push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element result push back return result code prepI would just create class representing row brThen stream into that object ppre code include lt iterator gt include lt iostream gt include lt fstream gt include lt sstream gt include lt vector gt include lt string gt class CSVRow public std string const amp operator std size index const return data index std size size const return data size void readNextRow std istream amp str std string line std getline str line std stringstream lineStream line std string cell data clear while std getline lineStream cell data push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element data push back private std vector lt std string gt data std istream amp operator gt gt std istream amp str CSVRow amp data data readNextRow str return str int main std ifstream file plop csv CSVRow row while file gt gt row std cout lt lt 4th Element lt lt row lt lt code prepBut with little work we could technically create an iterator ppre codeclass CSVIterator public typedef std input iterator tag iterator category typedef CSVRow value type typedef std size difference type typedef CSVRow pointer typedef CSVRow amp reference CSVIterator std istream amp str str str good amp str NULL this CSVIterator str NULL Pre Increment CSVIterator amp operator if str if str gt gt row str NULL return this Post increment CSVIterator operator int CSVIterator tmp this this return tmp CSVRow const amp operator const return row CSVRow const operator gt const return amp row bool operator CSVIterator const amp rhs return this amp rhs this gt str NULL amp amp rhs str NULL bool operator CSVIterator const amp rhs return this rhs private std istream str CSVRow row int main std ifstream file plop csv for CSVIterator loop file loop CSVIterator loop std cout lt lt 4th Element lt lt loop lt lt code pre That line was placed in the code above many moons ago pIf you don care about escaping comma and newline brAND you can embed comma and newline in quotes If you can escape then brthen its only about three lines of code OK 14 But its only 15 to read the whole file ppre codestd vector lt std string gt getNextLineAndSplitIntoTokens std istream amp str std vector lt std string gt result std string line std getline str line std stringstream lineStream line std string cell while std getline lineStream cell result push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element result push back return result code prepI would just create class representing row brThen stream into that object ppre code include lt iterator gt include lt iostream gt include lt fstream gt include lt sstream gt include lt vector gt include lt string gt class CSVRow public std string const amp operator std size index const return data index std size size const return data size void readNextRow std istream amp str std string line std getline str line std stringstream lineStream line std string cell data clear while std getline lineStream cell data push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element data push back private std vector lt std string gt data std istream amp operator gt gt std istream amp str CSVRow amp data data readNextRow str return str int main std ifstream file plop csv CSVRow row while file gt gt row std cout lt lt 4th Element lt lt row lt lt code prepBut with little work we could technically create an iterator ppre codeclass CSVIterator public typedef std input iterator tag iterator category typedef CSVRow value type typedef std size difference type typedef CSVRow pointer typedef CSVRow amp reference CSVIterator std istream amp str str str good amp str NULL this CSVIterator str NULL Pre Increment CSVIterator amp operator if str if str gt gt row str NULL return this Post increment CSVIterator operator int CSVIterator tmp this this return tmp CSVRow const amp operator const return row CSVRow const operator gt const return amp row bool operator CSVIterator const amp rhs return this amp rhs this gt str NULL amp amp rhs str NULL bool operator CSVIterator const amp rhs return this rhs private std istream str CSVRow row int main std ifstream file plop csv for CSVIterator loop file loop CSVIterator loop std cout lt lt 4th Element lt lt loop lt lt code pre rvice Without any testing would try if lineStream data push back So that it only pushes an empty value when there was comma with nothing after it If you test that and it works ll update the answer above pIf you don care about escaping comma and newline brAND you can embed comma and newline in quotes If you can escape then brthen its only about three lines of code OK 14 But its only 15 to read the whole file ppre codestd vector lt std string gt getNextLineAndSplitIntoTokens std istream amp str std vector lt std string gt result std string line std getline str line std stringstream lineStream line std string cell while std getline lineStream cell result push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element result push back return result code prepI would just create class representing row brThen stream into that object ppre code include lt iterator gt include lt iostream gt include lt fstream gt include lt sstream gt include lt vector gt include lt string gt class CSVRow public std string const amp operator std size index const return data index std size size const return data size void readNextRow std istream amp str std string line std getline str line std stringstream lineStream line std string cell data clear while std getline lineStream cell data push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element data push back private std vector lt std string gt data std istream amp operator gt gt std istream amp str CSVRow amp data data readNextRow str return str int main std ifstream file plop csv CSVRow row while file gt gt row std cout lt lt 4th Element lt lt row lt lt code prepBut with little work we could technically create an iterator ppre codeclass CSVIterator public typedef std input iterator tag iterator category typedef CSVRow value type typedef std size difference type typedef CSVRow pointer typedef CSVRow amp reference CSVIterator std istream amp str str str good amp str NULL this CSVIterator str NULL Pre Increment CSVIterator amp operator if str if str gt gt row str NULL return this Post increment CSVIterator operator int CSVIterator tmp this this return tmp CSVRow const amp operator const return row CSVRow const operator gt const return amp row bool operator CSVIterator const amp rhs return this amp rhs this gt str NULL amp amp rhs str NULL bool operator CSVIterator const amp rhs return this rhs private std istream str CSVRow row int main std ifstream file plop csv for CSVIterator loop file loop CSVIterator loop std cout lt lt 4th Element lt lt loop lt lt code pre Sorry Typo when fixing complaint from comments Yes the if lineStream needs more fixed And data should be result fixed pIf you don care about escaping comma and newline brAND you can embed comma and newline in quotes If you can escape then brthen its only about three lines of code OK 14 But its only 15 to read the whole file ppre codestd vector lt std string gt getNextLineAndSplitIntoTokens std istream amp str std vector lt std string gt result std string line std getline str line std stringstream lineStream line std string cell while std getline lineStream cell result push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element result push back return result code prepI would just create class representing row brThen stream into that object ppre code include lt iterator gt include lt iostream gt include lt fstream gt include lt sstream gt include lt vector gt include lt string gt class CSVRow public std string const amp operator std size index const return data index std size size const return data size void readNextRow std istream amp str std string line std getline str line std stringstream lineStream line std string cell data clear while std getline lineStream cell data push back cell This checks for trailing comma with no data after it if lineStream amp amp cell empty If there was trailing comma then add an empty element data push back private std vector lt std string gt data std istream amp operator gt gt std istream amp str CSVRow amp data data readNextRow str return str int main std ifstream file plop csv CSVRow row while file gt gt row std cout lt lt 4th Element lt lt row lt lt code prepBut with little work we could technically create an iterator ppre codeclass CSVIterator public typedef std input iterator tag iterator category typedef CSVRow value type typedef std size difference type typedef CSVRow pointer typedef CSVRow amp reference CSVIterator std istream amp str str str good amp str NULL this CSVIterator str NULL Pre Increment CSVIterator amp operator if str if str gt gt row str NULL return this Post increment CSVIterator operator int CSVIterator tmp this this return tmp CSVRow const amp operator const return row CSVRow const operator gt const return amp row bool operator CSVIterator const amp rhs return this amp rhs this gt str NULL amp amp rhs str NULL bool operator CSVIterator const amp rhs return this rhs private std istream str CSVRow row int main std ifstream file plop csv for CSVIterator loop file loop CSVIterator loop std cout lt lt 4th Element lt lt loop lt lt code pre You have string you can convert that to any type by de serializing it into an object of your appropriate type There are several ways to de serialize the object so that is question you should ask on SO pUnderneath the file system files are represented by inodes or is it multiple inodes not sure br ppA file in the file system is basically link to an inode brA hard link then just creates another file with link to the same underlying inode ppWhen you delete file it removes one link to the underlying inode The inode is only deleted or deletable over writable when all links to the inode have been deleted ppA symbolic link is link to another name in the file system ppOnce hard link has been made the link is to the inode deleting renaming or moving the original file will not affect the hard link as it links to the underlying inode Any changes to the data on the inode is reflected in all files that refer to that inode ppNote Hard links are only valid within the same File System Symbolic links can span file systems as they are simply the name of another file Would changing deleting renaming or moving the original file to deleting renaming or moving the original file system file satisfy your pedantry personally think cover this two lines above with When you delete file it removes one link to the underlying inode but am happy to update the wording if you want to give me some specific pointers on better wording pUnderneath the file system files are represented by inodes or is it multiple inodes not sure br ppA file in the file system is basically link to an inode brA hard link then just creates another file with link to the same underlying inode ppWhen you delete file it removes one link to the underlying inode The inode is only deleted or deletable over writable when all links to the inode have been deleted ppA symbolic link is link to another name in the file system ppOnce hard link has been made the link is to the inode deleting renaming or moving the original file will not affect the hard link as it links to the underlying inode Any changes to the data on the inode is reflected in all files that refer to that inode ppNote Hard links are only valid within the same File System Symbolic links can span file systems as they are simply the name of another file see were you are coming from But user of the file system does not look at it like link link implies symbolic link from the perspective of the file system From there perspective they are working with files Just because underneath the File System is another system that actually stores the file How about deleting renaming or moving the original file hard link to the inode have to ware my pedant hat too pThrowing an exception out of destructor is dangerous brIf another exception is already propagating the application will terminate ppre code include lt iostream gt class Bad public Added the noexcept false so the code keeps its original meaning Post 11 destructors are by default noexcept true and this will by default call terminate if an exception is escapes the destructor But this example is designed to show that terminate is called if two exceptions are propagating at the same time Bad noexcept false throw class Bad2 public Bad2 throw int main int argc char argv try Bad bad catch std cout lt lt Print This try if argc gt Bad bad This destructor will throw an exception that escapes see above throw But having two exceptions propagating at the same time causes terminate to be called else Bad2 bad The exception in this destructor will cause terminate to be called catch std cout lt lt Never print this code prepThis basically boils down to ppAnything dangerous that could throw an exception should be done via public methods not necessarily directly The user of your class can then potentially handle these situations by using the public methods and catching any potential exceptions ppThe destructor will then finish off the object by calling these methods if the user did not do so explicitly but any exceptions throw are caught and dropped after attempting to fix the problem ppSo in effect you pass the responsibility onto the user If the user is in position to correct exceptions they will manually call the appropriate functions and processes any errors If the user of the object is not worried as the object will be destroyed then the destructor is left to take care of business ph1An example h1pstd fstream ppThe close method can potentially throw an exception The destructor calls close if the file has been opened but makes sure that any exceptions do not propagate out of the destructor ppSo if the user of file object wants to do special handling for problems associated to closing the file they will manually call close and handle any exceptions If on the other hand they do not care then the destructor will be left to handle the situation ppScott Myers has an excellent article about the subject in his book Effective ph3Edit h3pApparently also in More Effective bra href http bin login name ftp pub docs programming languages cpp cffective cpp MEC MI11 FR HTM rel noreferrer Item 11 Prevent exceptions from leaving destructors You are correct for post 11 the default action of the destructor is to terminate on throw as destructors are by default noexcept This answer was written when 03 was the standard will update to accommodate the change in language pThrowing an exception out of destructor is dangerous brIf another exception is already propagating the application will terminate ppre code include lt iostream gt class Bad public Added the noexcept false so the code keeps its original meaning Post 11 destructors are by default noexcept true and this will by default call terminate if an exception is escapes the destructor But this example is designed to show that terminate is called if two exceptions are propagating at the same time Bad noexcept false throw class Bad2 public Bad2 throw int main int argc char argv try Bad bad catch std cout lt lt Print This try if argc gt Bad bad This destructor will throw an exception that escapes see above throw But having two exceptions propagating at the same time causes terminate to be called else Bad2 bad The exception in this destructor will cause terminate to be called catch std cout lt lt Never print this code prepThis basically boils down to ppAnything dangerous that could throw an exception should be done via public methods not necessarily directly The user of your class can then potentially handle these situations by using the public methods and catching any potential exceptions ppThe destructor will then finish off the object by calling these methods if the user did not do so explicitly but any exceptions throw are caught and dropped after attempting to fix the problem ppSo in effect you pass the responsibility onto the user If the user is in position to correct exceptions they will manually call the appropriate functions and processes any errors If the user of the object is not worried as the object will be destroyed then the destructor is left to take care of business ph1An example h1pstd fstream ppThe close method can potentially throw an exception The destructor calls close if the file has been opened but makes sure that any exceptions do not propagate out of the destructor ppSo if the user of file object wants to do special handling for problems associated to closing the file they will manually call close and handle any exceptions If on the other hand they do not care then the destructor will be left to handle the situation ppScott Myers has an excellent article about the subject in his book Effective ph3Edit h3pApparently also in More Effective bra href http bin login name ftp pub docs programming languages cpp cffective cpp MEC MI11 FR HTM rel noreferrer Item 11 Prevent exceptions from leaving destructors Should now be accurate pThrowing an exception out of destructor is dangerous brIf another exception is already propagating the application will terminate ppre code include lt iostream gt class Bad public Added the noexcept false so the code keeps its original meaning Post 11 destructors are by default noexcept true and this will by default call terminate if an exception is escapes the destructor But this example is designed to show that terminate is called if two exceptions are propagating at the same time Bad noexcept false throw class Bad2 public Bad2 throw int main int argc char argv try Bad bad catch std cout lt lt Print This try if argc gt Bad bad This destructor will throw an exception that escapes see above throw But having two exceptions propagating at the same time causes terminate to be called else Bad2 bad The exception in this destructor will cause terminate to be called catch std cout lt lt Never print this code prepThis basically boils down to ppAnything dangerous that could throw an exception should be done via public methods not necessarily directly The user of your class can then potentially handle these situations by using the public methods and catching any potential exceptions ppThe destructor will then finish off the object by calling these methods if the user did not do so explicitly but any exceptions throw are caught and dropped after attempting to fix the problem ppSo in effect you pass the responsibility onto the user If the user is in position to correct exceptions they will manually call the appropriate functions and processes any errors If the user of the object is not worried as the object will be destroyed then the destructor is left to take care of business ph1An example h1pstd fstream ppThe close method can potentially throw an exception The destructor calls close if the file has been opened but makes sure that any exceptions do not propagate out of the destructor ppSo if the user of file object wants to do special handling for problems associated to closing the file they will manually call close and handle any exceptions If on the other hand they do not care then the destructor will be left to handle the situation ppScott Myers has an excellent article about the subject in his book Effective ph3Edit h3pApparently also in More Effective bra href http bin login name ftp pub docs programming languages cpp cffective cpp MEC MI11 FR HTM rel noreferrer Item 11 Prevent exceptions from leaving destructors can find your quote in the standard Please provide an exact section reference number and paragraph number The current standard is here n4659 http www open std org jtc1 sc22 wg21 docs papers 2017 n4659 pdf The closest could find was when the destruction of an object during stack unwinding 18 terminates by throwing an exception in Section 18 paragraph point But this is note You should note that notes are not normative and are there for clarification In the default case your quote holds as the destructor by default is noexcept true pThrowing an exception out of destructor is dangerous brIf another exception is already propagating the application will terminate ppre code include lt iostream gt class Bad public Added the noexcept false so the code keeps its original meaning Post 11 destructors are by default noexcept true and this will by default call terminate if an exception is escapes the destructor But this example is designed to show that terminate is called if two exceptions are propagating at the same time Bad noexcept false throw class Bad2 public Bad2 throw int main int argc char argv try Bad bad catch std cout lt lt Print This try if argc gt Bad bad This destructor will throw an exception that escapes see above throw But having two exceptions propagating at the same time causes terminate to be called else Bad2 bad The exception in this destructor will cause terminate to be called catch std cout lt lt Never print this code prepThis basically boils down to ppAnything dangerous that could throw an exception should be done via public methods not necessarily directly The user of your class can then potentially handle these situations by using the public methods and catching any potential exceptions ppThe destructor will then finish off the object by calling these methods if the user did not do so explicitly but any exceptions throw are caught and dropped after attempting to fix the problem ppSo in effect you pass the responsibility onto the user If the user is in position to correct exceptions they will manually call the appropriate functions and processes any errors If the user of the object is not worried as the object will be destroyed then the destructor is left to take care of business ph1An example h1pstd fstream ppThe close method can potentially throw an exception The destructor calls close if the file has been opened but makes sure that any exceptions do not propagate out of the destructor ppSo if the user of file object wants to do special handling for problems associated to closing the file they will manually call close and handle any exceptions If on the other hand they do not care then the destructor will be left to handle the situation ppScott Myers has an excellent article about the subject in his book Effective ph3Edit h3pApparently also in More Effective bra href http bin login name ftp pub docs programming languages cpp cffective cpp MEC MI11 FR HTM rel noreferrer Item 11 Prevent exceptions from leaving destructors But destructor can be explicitly marked noexcept false which leads to the behavior of 03 were exceptions escaping destructor did not call terminate You will also note that added extensive comments in the example above to indicate this pThrowing an exception out of destructor is dangerous brIf another exception is already propagating the application will terminate ppre code include lt iostream gt class Bad public Added the noexcept false so the code keeps its original meaning Post 11 destructors are by default noexcept true and this will by default call terminate if an exception is escapes the destructor But this example is designed to show that terminate is called if two exceptions are propagating at the same time Bad noexcept false throw class Bad2 public Bad2 throw int main int argc char argv try Bad bad catch std cout lt lt Print This try if argc gt Bad bad This destructor will throw an exception that escapes see above throw But having two exceptions propagating at the same time causes terminate to be called else Bad2 bad The exception in this destructor will cause terminate to be called catch std cout lt lt Never print this code prepThis basically boils down to ppAnything dangerous that could throw an exception should be done via public methods not necessarily directly The user of your class can then potentially handle these situations by using the public methods and catching any potential exceptions ppThe destructor will then finish off the object by calling these methods if the user did not do so explicitly but any exceptions throw are caught and dropped after attempting to fix the problem ppSo in effect you pass the responsibility onto the user If the user is in position to correct exceptions they will manually call the appropriate functions and processes any errors If the user of the object is not worried as the object will be destroyed then the destructor is left to take care of business ph1An example h1pstd fstream ppThe close method can potentially throw an exception The destructor calls close if the file has been opened but makes sure that any exceptions do not propagate out of the destructor ppSo if the user of file object wants to do special handling for problems associated to closing the file they will manually call close and handle any exceptions If on the other hand they do not care then the destructor will be left to handle the situation ppScott Myers has an excellent article about the subject in his book Effective ph3Edit h3pApparently also in More Effective bra href http bin login name ftp pub docs programming languages cpp cffective cpp MEC MI11 FR HTM rel noreferrer Item 11 Prevent exceptions from leaving destructors Totally agree destructors should not throw when they do we should terminate that is the best advice But its not requirement of the language""",nice answer nice answer enlighten nice question great answer nice answer nice answer good answer good answer inform nice answer good answer guru nice answer nice answer enlighten guru great answer announcer good answer guru nice answer popular question good answer nice answer nice answer announcer nice answer good answer good answer announcer nice answer nice answer good answer nice answer guru nice answer enlighten nice answer good answer great answer guru nice question notable question good question populist good answer documentation pioneer famous question announcer nice answer guru good answer good answer yearle nice answer notable question nice answer file announcer populist nice answer nice answer enlighten nice answer reference nice answer nice question populist caucus nice answer nice answer enlighten great answer popular question guru famous question notable question favorite question great question struct good answer great answer census nice answer nice answer good answer guru popular question announcer announcer nice answer great answer guru popular question popular question string nice answer revival announcer nice answer nice answer announcer nice answer announcer announcer nice answer enlighten announcer nice answer great answer caucus good answer nice answer good answer good answer great answer popular question necromancer announcer popular question good answer yearle custodian documentation user great answer announcer custodian announcer notable question popular question nice answer announcer publicist nice answer enlighten nice answer great answer great question nice question nice answer nice answer announcer good answer nice answer getline stellar question good answer announcer nice question popular question enlighten suffrage vox populi caucus announcer constituent electorate nice question announcer good answer nice answer nice answer good answer announcer announcer great answer announcer nice answer good answer good answer announcer good answer famous question notable question announcer great answer nice answer nice answer famous question nice answer enlighten famous question popular question yearle stellar question announcer guru nice answer std announcer announcer nice question announcer popular question great answer nice answer notable question pwhy return singleton pointer brreturn reference logical ppyou free singleton manually keep reference singleton guarantee reference case pointer business free object ppuse static function method brthis guarantee create destroy lazy initialization free codeclass public static amp getinstance static instance return instance private const amp implement void operator const amp implement code prepnote make constructor private make override default copy constructor assignment operator make copy singleton singleton ppalso read pulli href https stackoverflow https stackoverflow lili href https stackoverflow question singleton singleton lili href https stackoverflow question singleton design pattern singleton design pattern li ulpto make singleton correct reason ppthough technically thread safe general case bra href https stackoverflow question lifetime static variable function lifetime static variable function ppgcc explicit patch compensate bra href http gcc gnu org gcc patch html noreferrer http gcc gnu org gcc patch html make public point hiding pwhy return singleton pointer brreturn reference logical ppyou free singleton manually keep reference singleton guarantee reference case pointer business free object ppuse static function method brthis guarantee create destroy lazy initialization free codeclass public static amp getinstance static instance return instance private const amp implement void operator const amp implement code prepnote make constructor private make override default copy constructor assignment operator make copy singleton singleton ppalso read pulli href https stackoverflow https stackoverflow lili href https stackoverflow question singleton singleton lili href https stackoverflow question singleton design pattern singleton design pattern li ulpto make singleton correct reason ppthough technically thread safe general case bra href https stackoverflow question lifetime static variable function lifetime static variable function ppgcc explicit patch compensate bra href http gcc gnu org gcc patch html noreferrer http gcc gnu org gcc patch html correct template real life situation guarantee destructor run communication link shut correctly waste resource waste waste memory memory technique note singelton mistake iff pwhy return singleton pointer brreturn reference logical ppyou free singleton manually keep reference singleton guarantee reference case pointer business free object ppuse static function method brthis guarantee create destroy lazy initialization free codeclass public static amp getinstance static instance return instance private const amp implement void operator const amp implement code prepnote make constructor private make override default copy constructor assignment operator make copy singleton singleton ppalso read pulli href https stackoverflow https stackoverflow lili href https stackoverflow question singleton singleton lili href https stackoverflow question singleton design pattern singleton design pattern li ulpto make singleton correct reason ppthough technically thread safe general case bra href https stackoverflow question lifetime static variable function lifetime static variable function ppgcc explicit patch compensate bra href http gcc gnu org gcc patch html noreferrer http gcc gnu org gcc patch html order initialization temporary work global variable rid time rid eventually codeclass public global instance abc static amp getinstance abc return reference static instance abc return instance abc code prepthis guarantee initialise destroy application terminate thread problem emdoe -PRON- guarantee thread safe pblockquote stmt dcl strong control enter declaration concurrently variable initialize concurrent execution wait completion initialization emnot -PRON- officially guarantee construction static function object thread safe technically codegetinstance xxx code method guard critical section bright gcc explicit patch compiler guarantee static function object initialize presence thread ppplease note emdo -PRON- href https wikipedia org wiki double check lock noreferrer double check lock pattern avoid cost lock work problem creation problem guarantee create problem potential problem access object destroy access object destructor global variable global refer local static variable ppthe solution make force order destruction brremember order destruction exact inverse order construction access object destructor guarantee object destroy guarantee object fully construct call object construct codeclass public static amp getinstance bglob static instance bglob return instance bglob getinstance abc dosomthe object abc access destructor potential problem guarantee abc destroy object guarantee make construct access object constructor getinstance abc abc fully construct mean construct object mean destroy object mean safe destructor code provide guarantee construction thread safe pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock problem call location location call pass parameter call parameter drop floor singelton pattern bad idea pattern combination builder pattern factory singelton pattern good idea design application pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock good question http stackexchange pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock type question comment type question weight community proper question community answer comment reserve comment display code make alternative technique pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock opinion base question opinion base question comment mean opinion base answer answer opinion base question real answer pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock wrong static storage variable function scope construct time function call construct happen main getinstance call constructor static storage variable file scope pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock section declaration statement paragraph dynamic initialization block scope variable static storage duration thread storage duration perform time control pass declaration pin provide implementation singleton design pattern lazy evaluate guarantee destruction technically thread safe bra href https stackoverflow question provide sample singleton provide sample singleton pphere update implementation singleton design pattern lazy evaluate correctly destroy href https stackoverflow thread safe codeclass public static amp getinstance static instance guarantee destroy instantiate return instance private constructor bracket need forget declare make unacceptable accidentally copy singleton appear const amp implement void operator const amp implement technique deleting method public const amp delete void operator const amp delete note scott meyer mention effective modern book delete function generally public result error message compiler behavior check accessibility delete status code prepsee article singleton bra href https stackoverflow question singleton singleton ppsee article initialization order cope bra href https stackoverflow question static variable initialisation order static variable initialisation order bra href https stackoverflow question find static initialization order problem find static initialization order problem ppsee article describe lifetime bra href https stackoverflow question lifetime static variable function lifetime static variable function ppsee article discuss thread implication singleton bra href https stackoverflow question singleton instance declare static variable getinstance method singleton instance declare static variable getinstance method thread safe ppsee article explain double check lock work bra href https stackoverflow question common undefined behaviour programmer common undefined behaviour programmer bra href http drdobb cpp peril double check locki noreferrer dobb peril double check lock need write program second tell answer pwhat write stream buffer brwhen stream buffer flush output prefix character content stream ppthe work std endl add stream call flush call pubsync stream buffer call virtual method sync override virtual method work code include lt iostream include lt sstream class mystream public std ostream write stream buffer prefix line plop class mystreambuf public std stringbuf std ostream amp output public mystreambuf std ostream amp str output str mystreambuf pbase pptr putoutput sync stream output output plop buffer reset buffer flush actual output stream virtual int sync putoutput return void putoutput call destructor destructor virtual method output lt lt blah lt lt str str output flush stream version special buffer mystreambuf buffer public mystream std ostream amp str std ostream amp buffer buffer str int main mystream mystream std cout mystream lt lt lt lt lt lt lt lt std endl lt lt lt lt lt lt std endl lt lt lt lt lt lt std endl blah blah blah code spot add destructor buffer pcopy file sane code include lt fstream int main std ifstream src std io binary std ofstream dst std io binary dst lt lt src rdbuf code prepthis simple intuitive read worth extra cost lot fall call file code copy file method filesystem class ppthere method interact file code include lt copyfile intcopyfile const char const char copyfile state state copyfile flag flag code standard main function end return compiler plant return common practice leave return indication developer application fail return success status code pif care escape comma newline brand embe comma newline quote escape brthen line code read file codestd vector lt std string std istream amp str std vector lt std string result std string line std getline str line std stringstream linestream line std string cell std getline linestream cell result push cell check trail comma datum linestream amp amp cell trail comma add element result push return result code prepi create class represent row brthen stream object code include lt iterator include lt iostream include lt fstream include lt sstream include lt vector include lt string class csvrow public std string const amp operator std size index const return datum index std size size const return datum size void readnextrow std istream amp str std string line std getline str line std stringstream linestream line std string cell datum clear std getline linestream cell datum push cell check trail comma datum linestream amp amp cell trail comma add element datum push private std vector lt std string datum std istream amp operator std istream amp str csvrow amp datum datum readnextrow str return str int main std ifstream file plop csv csvrow row file row std cout lt lt element lt lt row lt lt code prepbut work technically create iterator codeclass csviterator public typedef std input iterator tag iterator category typedef csvrow type typedef std size difference type typedef csvrow pointer typedef csvrow amp reference csviterator std istream amp str str str good amp str null csviterator str null increment csviterator amp operator str str row str null return post increment csviterator operator int csviterator tmp return tmp csvrow const amp operator const return row csvrow const operator const return amp row bool operator csviterator const amp rhs return amp rhs str null amp amp rhs str null bool operator csviterator const amp rhs return rhs private std istream str csvrow row int main std ifstream file plop csv csviterator loop file loop csviterator loop std cout lt lt element lt lt loop lt lt code work fine room post code issue http stackoverflow room csv pif care escape comma newline brand embe comma newline quote escape brthen line code read file codestd vector lt std string std istream amp str std vector lt std string result std string line std getline str line std stringstream linestream line std string cell std getline linestream cell result push cell check trail comma datum linestream amp amp cell trail comma add element result push return result code prepi create class represent row brthen stream object code include lt iterator include lt iostream include lt fstream include lt sstream include lt vector include lt string class csvrow public std string const amp operator std size index const return datum index std size size const return datum size void readnextrow std istream amp str std string line std getline str line std stringstream linestream line std string cell datum clear std getline linestream cell datum push cell check trail comma datum linestream amp amp cell trail comma add element datum push private std vector lt std string datum std istream amp operator std istream amp str csvrow amp datum datum readnextrow str return str int main std ifstream file plop csv csvrow row file row std cout lt lt element lt lt row lt lt code prepbut work technically create iterator codeclass csviterator public typedef std input iterator tag iterator category typedef csvrow type typedef std size difference type typedef csvrow pointer typedef csvrow amp reference csviterator std istream amp str str str good amp str null csviterator str null increment csviterator amp operator str str row str null return post increment csviterator operator int csviterator tmp return tmp csvrow const amp operator const return row csvrow const operator const return amp row bool operator csviterator const amp rhs return amp rhs str null amp amp rhs str null bool operator csviterator const amp rhs return rhs private std istream str csvrow row int main std ifstream file plop csv csviterator loop file loop csviterator loop std cout lt lt element lt lt loop lt lt code line code moon ago pif care escape comma newline brand embe comma newline quote escape brthen line code read file codestd vector lt std string std istream amp str std vector lt std string result std string line std getline str line std stringstream linestream line std string cell std getline linestream cell result push cell check trail comma datum linestream amp amp cell trail comma add element result push return result code prepi create class represent row brthen stream object code include lt iterator include lt iostream include lt fstream include lt sstream include lt vector include lt string class csvrow public std string const amp operator std size index const return datum index std size size const return datum size void readnextrow std istream amp str std string line std getline str line std stringstream linestream line std string cell datum clear std getline linestream cell datum push cell check trail comma datum linestream amp amp cell trail comma add element datum push private std vector lt std string datum std istream amp operator std istream amp str csvrow amp datum datum readnextrow str return str int main std ifstream file plop csv csvrow row file row std cout lt lt element lt lt row lt lt code prepbut work technically create iterator codeclass csviterator public typedef std input iterator tag iterator category typedef csvrow type typedef std size difference type typedef csvrow pointer typedef csvrow amp reference csviterator std istream amp str str str good amp str null csviterator str null increment csviterator amp operator str str row str null return post increment csviterator operator int csviterator tmp return tmp csvrow const amp operator const return row csvrow const operator const return amp row bool operator csviterator const amp rhs return amp rhs str null amp amp rhs str null bool operator csviterator const amp rhs return rhs private std istream str csvrow row int main std ifstream file plop csv csviterator loop file loop csviterator loop std cout lt lt element lt lt loop lt lt code rvice testing linestream datum push push comma test work update answer pif care escape comma newline brand embe comma newline quote escape brthen line code read file codestd vector lt std string std istream amp str std vector lt std string result std string line std getline str line std stringstream linestream line std string cell std getline linestream cell result push cell check trail comma datum linestream amp amp cell trail comma add element result push return result code prepi create class represent row brthen stream object code include lt iterator include lt iostream include lt fstream include lt sstream include lt vector include lt string class csvrow public std string const amp operator std size index const return datum index std size size const return datum size void readnextrow std istream amp str std string line std getline str line std stringstream linestream line std string cell datum clear std getline linestream cell datum push cell check trail comma datum linestream amp amp cell trail comma add element datum push private std vector lt std string datum std istream amp operator std istream amp str csvrow amp datum datum readnextrow str return str int main std ifstream file plop csv csvrow row file row std cout lt lt element lt lt row lt lt code prepbut work technically create iterator codeclass csviterator public typedef std input iterator tag iterator category typedef csvrow type typedef std size difference type typedef csvrow pointer typedef csvrow amp reference csviterator std istream amp str str str good amp str null csviterator str null increment csviterator amp operator str str row str null return post increment csviterator operator int csviterator tmp return tmp csvrow const amp operator const return row csvrow const operator const return amp row bool operator csviterator const amp rhs return amp rhs str null amp amp rhs str null bool operator csviterator const amp rhs return rhs private std istream str csvrow row int main std ifstream file plop csv csviterator loop file loop csviterator loop std cout lt lt element lt lt loop lt lt code typo fix complaint comment linestream fix datum result fix pif care escape comma newline brand embe comma newline quote escape brthen line code read file codestd vector lt std string std istream amp str std vector lt std string result std string line std getline str line std stringstream linestream line std string cell std getline linestream cell result push cell check trail comma datum linestream amp amp cell trail comma add element result push return result code prepi create class represent row brthen stream object code include lt iterator include lt iostream include lt fstream include lt sstream include lt vector include lt string class csvrow public std string const amp operator std size index const return datum index std size size const return datum size void readnextrow std istream amp str std string line std getline str line std stringstream linestream line std string cell datum clear std getline linestream cell datum push cell check trail comma datum linestream amp amp cell trail comma add element datum push private std vector lt std string datum std istream amp operator std istream amp str csvrow amp datum datum readnextrow str return str int main std ifstream file plop csv csvrow row file row std cout lt lt element lt lt row lt lt code prepbut work technically create iterator codeclass csviterator public typedef std input iterator tag iterator category typedef csvrow type typedef std size difference type typedef csvrow pointer typedef csvrow amp reference csviterator std istream amp str str str good amp str null csviterator str null increment csviterator amp operator str str row str null return post increment csviterator operator int csviterator tmp return tmp csvrow const amp operator const return row csvrow const operator const return amp row bool operator csviterator const amp rhs return amp rhs str null amp amp rhs str null bool operator csviterator const amp rhs return rhs private std istream str csvrow row int main std ifstream file plop csv csviterator loop file loop csviterator loop std cout lt lt element lt lt loop lt lt code string convert type serialize object type way serialize object question punderneath file file represent inode multiple inode ppa file file basically link inode bra hard link create file link underlie inode ppwhen delete file remove link underlie inode inode delete deletable writable link inode delete ppa symbolic link link file pponce hard link link inode de,,,,,,, "eting rename move original file affect hard link link underlie inode datum inode reflect file refer inode ppnote hard link valid file symbolic link span file system simply file change deleting rename move original file deleting rename move original file file satisfy pedantry personally cover line delete file remove link underlie inode happy update wording specific pointer wording punderneath file file represent inode multiple inode ppa file file basically link inode bra hard link create file link underlie inode ppwhen delete file remove link underlie inode inode delete deletable writable link inode delete ppa symbolic link link file pponce hard link link inode deleting rename move original file affect hard link link underlie inode datum inode reflect file refer inode ppnote hard link valid file symbolic link span file system simply file come user file link link imply symbolic link perspective file perspective work file underneath file store file deleting rename move original file hard link inode ware hat pthrowe exception destructor dangerous brif exception propagating application terminate code include lt iostream class bad public add noexcept false code original meaning post destructor default noexcept true default terminate exception escape destructor design terminate call exception propagating time bad noexcept false throw class public throw int main int argc char argv bad bad catch std cout lt lt print argc bad bad destructor throw exception escape throw exception propagating time terminate call bad exception destructor terminate call catch std cout lt lt print code prepthis basically boil ppanythe dangerous throw exception public method necessarily directly user class potentially handle situation public method catch potential exception ppthe destructor finish object call method user explicitly exception throw catch drop attempt fix problem ppso effect pass responsibility user user position correct exception manually function process error user object worry object destroy destructor leave care business fstream ppthe close method potentially throw exception destructor call close file open make exception propagate destructor ppso user file object special handle problem closing file manually close handle exception hand care destructor leave handle situation ppscott myer excellent article subject book effective effective bra href http bin login pub docs programming language cpp cffective cpp mec fr htm noreferrer item prevent exception leave destructor correct post default action destructor terminate throw destructor default noexcept answer write standard update accommodate change language pthrowe exception destructor dangerous brif exception propagating application terminate code include lt iostream class bad public add noexcept false code original meaning post destructor default noexcept true default terminate exception escape destructor design terminate call exception propagating time bad noexcept false throw class public throw int main int argc char argv bad bad catch std cout lt lt print argc bad bad destructor throw exception escape throw exception propagating time terminate call bad exception destructor terminate call catch std cout lt lt print code prepthis basically boil ppanythe dangerous throw exception public method necessarily directly user class potentially handle situation public method catch potential exception ppthe destructor finish object call method user explicitly exception throw catch drop attempt fix problem ppso effect pass responsibility user user position correct exception manually function process error user object worry object destroy destructor leave care business fstream ppthe close method potentially throw exception destructor call close file open make exception propagate destructor ppso user file object special handle problem closing file manually close handle exception hand care destructor leave handle situation ppscott myer excellent article subject book effective effective bra href http bin login pub docs programming language cpp cffective cpp mec fr htm noreferrer item prevent exception leave destructor accurate pthrowe exception destructor dangerous brif exception propagating application terminate code include lt iostream class bad public add noexcept false code original meaning post destructor default noexcept true default terminate exception escape destructor design terminate call exception propagating time bad noexcept false throw class public throw int main int argc char argv bad bad catch std cout lt lt print argc bad bad destructor throw exception escape throw exception propagating time terminate call bad exception destructor terminate call catch std cout lt lt print code prepthis basically boil ppanythe dangerous throw exception public method necessarily directly user class potentially handle situation public method catch potential exception ppthe destructor finish object call method user explicitly exception throw catch drop attempt fix problem ppso effect pass responsibility user user position correct exception manually function process error user object worry object destroy destructor leave care business fstream ppthe close method potentially throw exception destructor call close file open make exception propagate destructor ppso user file object special handle problem closing file manually close handle exception hand care destructor leave handle situation ppscott myer excellent article subject book effective effective bra href http bin login pub docs programming language cpp cffective cpp mec fr htm noreferrer item prevent exception leave destructor quote standard provide exact section reference number paragraph number current standard http open std org docs paper pdf close destruction object stack unwind terminate throw exception section paragraph point note note note normative clarification default case quote hold destructor default noexcept true pthrowe exception destructor dangerous brif exception propagating application terminate code include lt iostream class bad public add noexcept false code original meaning post destructor default noexcept true default terminate exception escape destructor design terminate call exception propagating time bad noexcept false throw class public throw int main int argc char argv bad bad catch std cout lt lt print argc bad bad destructor throw exception escape throw exception propagating time terminate call bad exception destructor terminate call catch std cout lt lt print code prepthis basically boil ppanythe dangerous throw exception public method necessarily directly user class potentially handle situation public method catch potential exception ppthe destructor finish object call method user explicitly exception throw catch drop attempt fix problem ppso effect pass responsibility user user position correct exception manually function process error user object worry object destroy destructor leave care business fstream ppthe close method potentially throw exception destructor call close file open make exception propagate destructor ppso user file object special handle problem closing file manually close handle exception hand care destructor leave handle situation ppscott myer excellent article subject book effective effective bra href http bin login pub docs programming language cpp cffective cpp mec fr htm noreferrer item prevent exception leave destructor destructor explicitly mark noexcept false lead behavior exception escape destructor terminate note add extensive comment pthrowe exception destructor dangerous brif exception propagating application terminate code include lt iostream class bad public add noexcept false code original meaning post destructor default noexcept true default terminate exception escape destructor design terminate call exception propagating time bad noexcept false throw class public throw int main int argc char argv bad bad catch std cout lt lt print argc bad bad destructor throw exception escape throw exception propagating time terminate call bad exception destructor terminate call catch std cout lt lt print code prepthis basically boil ppanythe dangerous throw exception public method necessarily directly user class potentially handle situation public method catch potential exception ppthe destructor finish object call method user explicitly exception throw catch drop attempt fix problem ppso effect pass responsibility user user position correct exception manually function process error user object worry object destroy destructor leave care business fstream ppthe close method potentially throw exception destructor call close file open make exception propagate destructor ppso user file object special handle problem closing file manually close handle exception hand care destructor leave handle situation ppscott myer excellent article subject book effective effective bra href http bin login pub docs programming language cpp cffective cpp mec fr htm noreferrer item prevent exception leave destructor totally agree destructor throw terminate advice requirement language""",0,NULL,NULL,,,,, 1034,69984,1297138,NULL,NULL,NULL,0,NULL,NULL 1035,337767,47806,NULL,NULL,NULL,0,NULL,NULL 1036,249915,1080829,NULL,NULL,NULL,0,NULL,NULL 1037,1024638,758387,NULL,NULL,NULL,0,NULL,NULL 1038,225227,128579,Custodian Yearling Tumbleweed Student Necromancer Yearling Great Answer Documentation User Yearling Revival,NULL,NULL,0,NULL,NULL 1039,252032,880714,NULL,NULL,NULL,0,NULL,NULL 1040,315513,1113967,Teacher Popular Question,NULL,NULL,0,NULL,NULL 1041,368915,1100935,Teacher Notable Question,NULL,NULL,0,NULL,NULL 1042,148685,823134,NULL,NULL,NULL,0,NULL,NULL 1043,9101107,227049,Necromancer,NULL,NULL,0,NULL,NULL 1044,231168,667786,Civic Duty Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 1045,1936067,358713,Notable Question Nice Question Yearling Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 1046,740504,1286179,Scholar,NULL,NULL,0,NULL,NULL 1047,75916,87517,NULL,NULL,NULL,0,NULL,NULL 1048,29259,505124,NULL,NULL,NULL,0,NULL,NULL 1049,1130321,614008,Nice Question Yearling Famous Question Famous Question Good Question Explainer Yearling Good Question Nice Question Notable Question Yearling Custodian Custodian Informed Autobiographer Custodian,NULL,NULL,0,NULL,NULL 1050,227670,67894,Scholar,NULL,NULL,0,NULL,NULL 1051,24079,1287224,NULL,NULL,NULL,0,NULL,NULL 1052,387286,444639,Popular Question Nice Answer Popular Question Cleanup Popular Question Necromancer Good Question Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question Notable Question Notable Question Good Answer Popular Question Nice Question Nice Question Notable Question Good Question Good Question Announcer Popular Question Necromancer Famous Question Notable Question Notable Question Popular Question Yearling Nice Question Good Question Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Famous Question Good Answer Necromancer Necromancer java Famous Question Famous Question Nice Question Famous Question Popular Question Popular Question Necromancer Necromancer Famous Question Popular Question Good Answer Nice Question Popular Question Nice Answer Famous Question Yearling Popular Question Nice Question Nice Question Good Question Nice Answer Notable Question Popular Question Nice Question Electorate Nice Question Popular Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Famous Question Yearling Nice Answer Popular Question Good Answer Notable Question,NULL,Gradle Test Dependency testing build automated tests dependency management gradle pI have two projects project and Project Both are written in groovy and use gradle as their build system ppProject requires project This holds for both the compile and test code ppHow can configure that the test classes of project have access to the test classes of project possible duplicate http stackoverflow com questions 5644011 multi project test dependencies with gradle,0,NULL,NULL 1053,2425322,444639,Popular Question Nice Answer Popular Question Cleanup Popular Question Necromancer Good Question Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question Notable Question Notable Question Good Answer Popular Question Nice Question Nice Question Notable Question Good Question Good Question Announcer Popular Question Necromancer Famous Question Notable Question Notable Question Popular Question Yearling Nice Question Good Question Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Famous Question Good Answer Necromancer Necromancer java Famous Question Famous Question Nice Question Famous Question Popular Question Popular Question Necromancer Necromancer Famous Question Popular Question Good Answer Nice Question Popular Question Nice Answer Famous Question Yearling Popular Question Nice Question Nice Question Good Question Nice Answer Notable Question Popular Question Nice Question Electorate Nice Question Popular Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Famous Question Yearling Nice Answer Popular Question Good Answer Notable Question,NULL,Gradle Test Dependency testing build automated tests dependency management gradle pI have two projects project and Project Both are written in groovy and use gradle as their build system ppProject requires project This holds for both the compile and test code ppHow can configure that the test classes of project have access to the test classes of project possible duplicate http stackoverflow com questions 5644011 multi project test dependencies with gradle,0,NULL,NULL 1054,930417,924831,Notable Question Critic Self-Learner Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 1055,555730,468091,NULL,NULL,NULL,0,NULL,NULL 1056,954558,1517469,NULL,NULL,NULL,0,NULL,NULL 1057,434188,63557,Yearling Good Answer Mortarboard Cleanup Yearling Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 1058,257282,962651,Popular Question,NULL,NULL,0,NULL,NULL 1059,7840487,879285,NULL,NULL,NULL,0,NULL,NULL 1060,895192,1135833,Student,NULL,NULL,0,NULL,NULL 1061,806026,1427781,NULL,NULL,NULL,0,NULL,NULL 1062,675010,853042,NULL,NULL,NULL,0,NULL,NULL 1063,12448,6294,Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 1064,146023,256633,NULL,NULL,NULL,0,NULL,NULL 1065,1128483,1436003,NULL,NULL,NULL,0,NULL,NULL 1066,1348236,1078640,NULL,NULL,NULL,0,NULL,NULL 1067,483903,991963,NULL,NULL,NULL,0,NULL,NULL 1068,70676,1206433,Nice Answer Yearling Notable Question Commentator,NULL,NULL,0,NULL,NULL 1069,51872,204257,Yearling Revival Curious Necromancer Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 1070,332766,1014103,NULL,NULL,NULL,0,NULL,NULL 1071,478091,439692,NULL,NULL,NULL,0,NULL,NULL 1072,1758766,1031767,NULL,NULL,NULL,0,NULL,NULL 1073,1051209,975628,NULL,NULL,NULL,0,NULL,NULL 1074,146976,1089189,Nice Answer Yearling Nice Answer Nice Answer Enlightened Yearling Good Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 1075,3228509,344570,Nice Answer Self-Learner Notable Question Notable Question Good Question Famous Question Yearling Popular Question Popular Question Famous Question Nice Question Nice Question Good Answer Yearling Guru Famous Question Popular Question Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 1076,108708,570144,NULL,NULL,NULL,0,NULL,NULL 1077,112867,334142,Notable Question Necromancer Yearling Necromancer Nice Answer Civic Duty Census Popular Question Yearling Investor Nice Answer Nice Answer Nice Question Yearling Census Notable Question Nice Answer Yearling Good Answer,NULL,NULL,1,NULL,Easiest way to test for existence of cuda capable GPU from cmake build automation cmake cuda gpu pWe have some nightly build machines that have the href http developer nvidia com object cuda downloads html rel noreferrer cuda libraries installed but which do not have cuda capable GPU installed These machines are capable of building cuda enabled programs but they are not capable of running these programs ppIn our automated nightly build process our cmake scripts use the cmake command pp codefind package CUDA code ppto determine whether the cuda software is installed This sets the cmake variable codeCUDA FOUND code on platforms that have cuda software installed This is great and it works perfectly When codeCUDA FOUND code is set it is OK to build cuda enabled programs Even when the machine has no cuda capable GPU ppBut cuda using test programs naturally fail on the non GPU cuda machines causing our nightly dashboards look dirty So want cmake to avoid running those tests on such machines But still want to build the cuda software on those machines ppAfter getting positive codeCUDA FOUND code result would like to test for the presence of an actual GPU and then set variable say codeCUDA GPU FOUND code to reflect this ppWhat is the simplest way to get cmake to test for the presence of cuda capable gpu ppThis needs to work on three platforms Windows with MSVC Mac and Linux That why we use cmake in the first place pp strongEDIT strong There are couple of good looking suggestions in the answers for how write program to test for the presence of GPU What is still missing is the means of getting CMake to compile and run this program at configuration time suspect that the codeTRY RUN code command in CMake will be critical here but unfortunately that command is href http www cmake org cmake help cmake docs html command try run rel noreferrer nearly undocumented and cannot figure out how to make it work This CMake part of the problem might be much more difficult question Perhaps should have asked this as two separate questions pOne useful approach is to run programs that CUDA has installed such as nvidia smi to see what they return pblockquotepre code find program nvidia smi nvidia smi if nvidia smi set DETECT GPU COUNT NVIDIA SMI execute nvidia smi to get short list of GPUs available exec program nvidia smi path ARGS OUTPUT VARIABLE nvidia smi out RETURN VALUE nvidia smi ret process the stdout of nvidia smi if nvidia smi ret EQUAL convert string with newlines to list of strings string REGEX REPLACE nvidia smi out nvidia smi out foreach line nvidia smi out if line MATCHES GPU math EXPR DETECT GPU COUNT NVIDIA SMI DETECT GPU COUNT NVIDIA SMI the UUID is not very useful for the user remove it string REGEX REPLACE UUID gpu info line if NOT gpu info STREQUAL list APPEND DETECT GPU INFO gpu info endif endif endforeach check num gpu info DETECT GPU COUNT NVIDIA SMI DETECT GPU INFO set DETECT GPU COUNT DETECT GPU COUNT NVIDIA SMI endif endif code pre blockquotepOne might also query linux proc or lspci See fully worked CMake example at href https github com gromacs gromacs blob master cmake gmxDetectGpu cmake rel nofollow https github com gromacs gromacs blob master cmake gmxDetectGpu cmake 1078,213690,80002,Nice Question Popular Question Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Nice Answer Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Famous Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Necromancer Popular Question Nice Question Famous Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Custodian Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Nice Question Famous Question Nice Question Famous Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Famous Question Notable Question Necromancer Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Nice Question Nice Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Famous Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Socratic Notable Question Notable Question Popular Question Nice Question Popular Question Nice Question Nice Question Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Famous Question Good Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Announcer Good Question Yearling Famous Question Popular Question Famous Question Electorate Popular Question Notable Question Popular Question Nice Question Notable Question Nice Question Nice Answer Good Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Question Nice Question Nice Question Notable Question Notable Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1079,295316,897931,NULL,NULL,NULL,0,NULL,NULL 1080,17259,18264,Great Answer Famous Question Yearling Nice Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 1081,448777,199319,NULL,NULL,NULL,0,NULL,NULL 1082,143965,215431,Yearling Good Answer,NULL,NULL,0,NULL,NULL 1083,212532,62970,Yearling Good Question Good Answer Guru Great Answer Nice Answer Yearling Generalist Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1084,388793,913824,Tumbleweed Nice Answer Enlightened Yearling Good Answer Caucus Yearling Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 1085,831554,291299,Editor Yearling Nice Answer Enlightened Excavator Supporter Caucus Constituent Good Answer Yearling Revival Caucus Critic Student Scholar Commentator Revival Yearling,NULL,NULL,0,NULL,NULL 1086,50622,827060,Good Answer Nice Answer Nice Answer Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Guru Notable Question Yearling Good Answer Good Answer Guru Guru Popular Question Guru php Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Guru Great Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Notable Question Good Answer Nice Answer Guru Yearling Nice Answer c Good Answer,NULL,NULL,0,NULL,NULL 1087,23079,1054604,NULL,NULL,NULL,0,NULL,NULL 1088,143312,1468366,Nice Answer Enlightened Necromancer Nice Answer Guru Necromancer Nice Answer Nice Question Nice Answer Popular Question Nice Answer Enlightened Notable Question Popular Question Notable Question Nice Answer Popular Question Nice Question Nice Answer Announcer Popular Question c++ Yearling Nice Answer java Nice Answer Enlightened Famous Question Popular Question Popular Question linux Nice Question Custodian Popular Question Nice Question math Nice Answer Good Question Good Question Nice Answer Guru Pundit Popular Question Nice Answer Revival Announcer Famous Question Nice Question Caucus Popular Question Nice Answer Good Answer Nice Answer Revival Famous Question Necromancer Popular Question Good Answer Census Nice Question Popular Question Nice Answer Necromancer Notable Question Generalist Nice Answer Enlightened Nice Answer Notable Question Nice Question Popular Question Notable Question Announcer Notable Question Popular Question Announcer Revival Yearling Nice Answer Enlightened Socratic Good Answer Announcer Popular Question Popular Question Caucus Notable Question Necromancer Nice Answer Popular Question Popular Question Necromancer Popular Question Documentation User Announcer Nice Answer Enlightened Announcer Nice Answer Good Answer Nice Question Necromancer Popular Question Revival Popular Question Notable Question Nice Answer Enlightened Announcer Popular Question Popular Question Favorite Question Necromancer Notable Question Nice Answer Great Answer Announcer Announcer Booster Announcer Notable Question Announcer Good Question Nice Answer Enlightened Good Answer Good Question Announcer Announcer Good Answer Notable Question Announcer Yearling Announcer Nice Question Good Question Notable Question Notable Question Notable Question Announcer Announcer Popular Question Announcer Announcer Popular Question Nice Question Popular Question Good Answer Announcer Nice Answer,NULL,pSupport for wildcards in the codeAccess Control Allow Headers code header was href https github com whatwg fetch issues 251 rel noreferrer added to the living standard only in May 2016 so it may not be supported by all browsers On browser which don implement this yet it must be an exact match href https www w3 org TR 2014 REC cors 20140116 access control allow headers response header rel noreferrer https www w3 org TR 2014 REC cors 20140116 access control allow headers response header ppIf you expect large number of headers you can read in the value of the codeAccess Control Request Headers code header and echo that value back in the codeAccess Control Allow Headers code header ve got an Apache config for this useful when serving static content http serverfault com 799764 129921 pSupport for wildcards in the codeAccess Control Allow Headers code header was href https github com whatwg fetch issues 251 rel noreferrer added to the living standard only in May 2016 so it may not be supported by all browsers On browser which don implement this yet it must be an exact match href https www w3 org TR 2014 REC cors 20140116 access control allow headers response header rel noreferrer https www w3 org TR 2014 REC cors 20140116 access control allow headers response header ppIf you expect large number of headers you can read in the value of the codeAccess Control Request Headers code header and echo that value back in the codeAccess Control Allow Headers code header this answer http serverfault com 799791 129921 pointed out that wildcards are allowed now at least in theory so updated your answer to reflect this If you don like my style feel free to edit to your taste h12D case h1pJust like the href https en wikipedia org wiki Dot product rel noreferrer dot product is proportional to the cosine of the angle the href https en wikipedia org wiki Determinant rel noreferrer determinant is proprortional to its sine So you can compute the angle like this ppre codedot x1 x2 y1 y2 dot product between x1 y1 and x2 y2 det x1 y2 y1 x2 determinantangle atan2 det dot atan2 or atan2 sin cos code prepThe orientation of this angle matches that of the coordinate system In href https en wikipedia org wiki Cartesian coordinate system In two dimensions rel noreferrer left handed coordinate system emx em pointing right and emy em down as is common for computer graphics this will mean you get positive sign for clockwise angles If the orientation of the coordinate system is mathematical with emy em up you get counter clockwise angles as is the convention in mathematics Changing the order of the inputs will change the sign so if you are unhappy with the signs just swap the inputs ph13D case h1pIn 3D two arbitrarily placed vectors define their own axis of rotation perpendicular to both That axis of rotation does not come with fixed orientation which means that you cannot uniquely fix the direction of the angle of rotation either One common convention is to let angles be always positive and to orient the axis in such way that it fits positive angle In this case the dot product of the normalized vectors is enough to compute angles ppre codedot x1 x2 y1 y2 z1 z2 between x1 y1 z1 and x2 y2 z2 lenSq1 x1 x1 y1 y1 z1 z1lenSq2 x2 x2 y2 y2 z2 z2angle acos dot sqrt lenSq1 lenSq2 code preh1Plane embedded in 3D h1pOne special case is the case where your vectors are not placed arbitrarily but lie within plane with known normal vector emn em Then the axis of rotation will be in direction emn em as well and the orientation of emn em will fix an orientation for that axis In this case you can adapt the 2D computation above including emn em into the href https en wikipedia org wiki Determinant rel noreferrer determinant to make its size 3×3 ppre codedot x1 x2 y1 y2 z1 z2det x1 y2 zn x2 yn z1 xn y1 z2 z1 y2 xn z2 yn x1 zn y1 x2angle atan2 det dot code prepOne condition for this to work is that the normal vector emn em has unit length If not you ll have to normalize it ph2As triple product h2pThis determinant could also be expressed as the href https en wikipedia org wiki Triple product Scalar triple product rel noreferrer triple product as href https stackoverflow com users 1133479 excrubulent pointed out in suggested edit ppre codedet v1 v2 code prepThis might be easier to implement in some APIs and gives different perspective on what going on here The cross product is proportional to the sine of the angle and will lie perpendicular to the plane hence be multiple of emn em The dot product will therefore basically measure the length of that vector but with the correct sign attached to it atan2 usually is in the range 180° 180° To get 0° 360° without case distinction one can replace atan2 with atan2 180° h12D case h1pJust like the href https en wikipedia org wiki Dot product rel noreferrer dot product is proportional to the cosine of the angle the href https en wikipedia org wiki Determinant rel noreferrer determinant is proprortional to its sine So you can compute the angle like this ppre codedot x1 x2 y1 y2 dot product between x1 y1 and x2 y2 det x1 y2 y1 x2 determinantangle atan2 det dot atan2 or atan2 sin cos code prepThe orientation of this angle matches that of the coordinate system In href https en wikipedia org wiki Cartesian coordinate system In two dimensions rel noreferrer left handed coordinate system emx em pointing right and emy em down as is common for computer graphics this will mean you get positive sign for clockwise angles If the orientation of the coordinate system is mathematical with emy em up you get counter clockwise angles as is the convention in mathematics Changing the order of the inputs will change the sign so if you are unhappy with the signs just swap the inputs ph13D case h1pIn 3D two arbitrarily placed vectors define their own axis of rotation perpendicular to both That axis of rotation does not come with fixed orientation which means that you cannot uniquely fix the direction of the angle of rotation either One common convention is to let angles be always positive and to orient the axis in such way that it fits positive angle In this case the dot product of the normalized vectors is enough to compute angles ppre codedot x1 x2 y1 y2 z1 z2 between x1 y1 z1 and x2 y2 z2 lenSq1 x1 x1 y1 y1 z1 z1lenSq2 x2 x2 y2 y2 z2 z2angle acos dot sqrt lenSq1 lenSq2 code preh1Plane embedded in 3D h1pOne special case is the case where your vectors are not placed arbitrarily but lie within plane with known normal vector emn em Then the axis of rotation will be in direction emn em as well and the orientation of emn em will fix an orientation for that axis In this case you can adapt the 2D computation above including emn em into the href https en wikipedia org wiki Determinant rel noreferrer determinant to make its size 3×3 ppre codedot x1 x2 y1 y2 z1 z2det x1 y2 zn x2 yn z1 xn y1 z2 z1 y2 xn z2 yn x1 zn y1 x2angle atan2 det dot code prepOne condition for this to work is that the normal vector emn em has unit length If not you ll have to normalize it ph2As triple product h2pThis determinant could also be expressed as the href https en wikipedia org wiki Triple product Scalar triple product rel noreferrer triple product as href https stackoverflow com users 1133479 excrubulent pointed out in suggested edit ppre codedet v1 v2 code prepThis might be easier to implement in some APIs and gives different perspective on what going on here The cross product is proportional to the sine of the angle and will lie perpendicular to the plane hence be multiple of emn em The dot product will therefore basically measure the length of that vector but with the correct sign attached to it The angle is the positive angle with respect to the coordinate system If is right and is up then the angle is counter clockwise If is down it clockwise Most computer graphics environments use the latter If you want to reverse the orientation simply change the order of the inputs which will flip the sign of the determinant h12D case h1pJust like the href https en wikipedia org wiki Dot product rel noreferrer dot product is proportional to the cosine of the angle the href https en wikipedia org wiki Determinant rel noreferrer determinant is proprortional to its sine So you can compute the angle like this ppre codedot x1 x2 y1 y2 dot product between x1 y1 and x2 y2 det x1 y2 y1 x2 determinantangle atan2 det dot atan2 or atan2 sin cos code prepThe orientation of this angle matches that of the coordinate system In href https en wikipedia org wiki Cartesian coordinate system In two dimensions rel noreferrer left handed coordinate system emx em pointing right and emy em down as is common for computer graphics this will mean you get positive sign for clockwise angles If the orientation of the coordinate system is mathematical with emy em up you get counter clockwise angles as is the convention in mathematics Changing the order of the inputs will change the sign so if you are unhappy with the signs just swap the inputs ph13D case h1pIn 3D two arbitrarily placed vectors define their own axis of rotation perpendicular to both That axis of rotation does not come with fixed orientation which means that you cannot uniquely fix the direction of the angle of rotation either One common convention is to let angles be always positive and to orient the axis in such way that it fits positive angle In this case the dot product of the normalized vectors is enough to compute angles ppre codedot x1 x2 y1 y2 z1 z2 between x1 y1 z1 and x2 y2 z2 lenSq1 x1 x1 y1 y1 z1 z1lenSq2 x2 x2 y2 y2 z2 z2angle acos dot sqrt lenSq1 lenSq2 code preh1Plane embedded in 3D h1pOne special case is the case where your vectors are not placed arbitrarily but lie within plane with known normal vector emn em Then the axis of rotation will be in direction emn em as well and the orientation of emn em will fix an orientation for that axis In this case you can adapt the 2D computation above including emn em into the href https en wikipedia org wiki Determinant rel noreferrer determinant to make its size 3×3 ppre codedot x1 x2 y1 y2 z1 z2det x1 y2 zn x2 yn z1 xn y1 z2 z1 y2 xn z2 yn x1 zn y1 x2angle atan2 det dot code prepOne condition for this to work is that the normal vector emn em has unit length If not you ll have to normalize it ph2As triple product h2pThis determinant could also be expressed as the href https en wikipedia org wiki Triple product Scalar triple product rel noreferrer triple product as href https stackoverflow com users 1133479 excrubulent pointed out in suggested edit ppre codedet v1 v2 code prepThis might be easier to implement in some APIs and gives different perspective on what going on here The cross product is proportional to the sine of the angle and will lie perpendicular to the plane hence be multiple of emn em The dot product will therefore basically measure the length of that vector but with the correct sign attached to it sure didn write down derivation or need one to write this answer What would you like to see derived The first sentence in the 2d section is knowlegde ve been using so often don remember where first heard it but Wikipedia knows about it too https en wikipedia org wiki Dot product Geometric definition https en wikipedia org wiki Determinant C3 97 matrices From that to the atan2 invocation is essentially single step The other sections are essentially variants of this theme h12D case h1pJust like the href https en wikipedia org wiki Dot product rel noreferrer dot product is proportional to the cosine of the angle the href https en wikipedia org wiki Determinant rel noreferrer determinant is proprortional to its sine So you can compute the angle like this ppre codedot x1 x2 y1 y2 dot product between x1 y1 and x2 y2 det x1 y2 y1 x2 determinantangle atan2 det dot atan2 or atan2 sin cos code prepThe orientation of this angle matches that of the coordinate system In href https en wikipedia org wiki Cartesian coordinate system In two dimensions rel noreferrer left handed coordinate system emx em pointing right and emy em down as is common for computer graphics this will mean you get positive sign for clockwise angles If the orientation of the coordinate system is mathematical with emy em up you get counter clockwise angles as is the convention in mathematics Changing the order of the inputs will change the sign so if you are unhappy with the signs just swap the inputs ph13D case h1pIn 3D two arbitrarily placed vectors define their own axis of rotation perpendicular to both That axis of rotation does not come with fixed orientation which means that you cannot uniquely fix the direction of the angle of rotation either One common convention is to let angles be always positive and to orient the axis in such way that it fits positive angle In this case the dot product of the normalized vectors is enough to compute angles ppre codedot x1 x2 y1 y2 z1 z2 between x1 y1 z1 and x2 y2 z2 lenSq1 x1 x1 y1 y1 z1 z1lenSq2 x2 x2 y2 y2 z2 z2angle acos dot sqrt lenSq1 lenSq2 code preh1Plane embedded in 3D h1pOne special case is the case where your vectors are not placed arbitrarily but lie within plane with known normal vector emn em Then the axis of rotation will be in direction emn em as well and the orientation of emn em will fix an orientation for that axis In this case you can adapt the 2D computation above including emn em into the href https en wikipedia org wiki Determinant rel noreferrer determinant to make its size 3×3 ppre codedot x1 x2 y1 y2 z1 z2det x1 y2 zn x2 yn z1 xn y1 z2 z1 y2 xn z2 yn x1 zn y1 x2angle atan2 det dot code prepOne condition for this to work is that the normal vector emn em has unit length If not you ll have to normalize it ph2As triple product h2pThis determinant could also be expressed as the href https en wikipedia org wiki Triple product Scalar triple product rel noreferrer triple product as href https stackoverflow com users 1133479 excrubulent pointed out in suggested edit ppre codedet v1 v2 code prepThis might be easier to implement in some APIs and gives different perspective on what going on here The cross product is proportional to the sine of the angle and will lie perpendicular to the plane hence be multiple of emn em The dot product will therefore basically measure the length of that vector but with the correct sign attached to it That will depend lot on the environment Mainly CPU vs GPU and compiler optimizations Naively the triple product would be multiplications and additions subtractions while my component wise formula is 12 multiplications and additions subtractions guess there are compilers which would apply the distributive law https en wikipedia org wiki Distributive property as part of the optimization reducing the number of multiplications to match what the triple product does out of the box wouldn be surprised if GPUs had highly optimized implementations for vector operations,0,NULL,NULL 1089,189198,722034,Announcer Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 1090,155292,1171215,Critic Commentator Informed Student Excavator Scholar Yearling Popular Question,NULL,NULL,0,NULL,NULL 1091,384489,757362,NULL,NULL,NULL,0,NULL,NULL 1092,46256,1028135,Excavator Popular Question Caucus Constituent Popular Question Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 1093,134534,835875,NULL,NULL,NULL,0,NULL,NULL 1094,32926,86551,Revival,NULL,NULL,0,NULL,NULL 1095,1507017,1511491,Famous Question Caucus Popular Question Popular Question Caucus Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 1096,6724854,1511491,Famous Question Caucus Popular Question Popular Question Caucus Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 1097,1512402,1154566,Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 1098,951227,848778,Tumbleweed Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 1099,60133,470673,Yearling Commentator Editor Nice Question Famous Question,NULL,NULL,0,NULL,NULL 1100,431152,470673,Yearling Commentator Editor Nice Question Famous Question,NULL,NULL,0,NULL,NULL 1101,268256,739563,NULL,NULL,NULL,0,NULL,NULL 1102,177657,1048862,Nice Question Notable Question Announcer Nice Answer Nice Answer Notable Question javascript Good Answer Popular Question Nice Question Good Question Nice Question Good Answer Good Question Notable Question Notable Question Nice Question Notable Question Popular Question Caucus Yearling Popular Question Famous Question Good Answer Popular Question Notable Question Nice Answer Popular Question Good Question Famous Question Nice Question Announcer jquery Caucus Famous Question Notable Question Famous Question Announcer Yearling Announcer Announcer Good Question Famous Question Nice Answer Notable Question Good Answer Announcer Caucus Announcer Favorite Question Announcer Notable Question Great Question Popular Question Good Question Nice Question Good Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1103,458993,846956,Nice Answer Excavator,NULL,NULL,0,NULL,NULL 1104,69089,1136465,NULL,NULL,NULL,0,NULL,NULL 1105,73298,538539,NULL,NULL,NULL,0,NULL,NULL 1106,166290,706577,NULL,NULL,NULL,0,NULL,NULL 1107,607713,1515326,Informed Autobiographer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 1108,24024,672809,Nice Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Guru Guru Good Answer Good Answer Yearling Nice Answer Nice Question Yearling Popular Question Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1109,2207,1075696,NULL,NULL,NULL,0,NULL,NULL 1110,84494,1146077,NULL,NULL,NULL,0,NULL,NULL 1111,322823,518287,Nice Answer Popular Question Nice Question Nice Answer Necromancer Yearling Nice Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1112,553276,742572,NULL,NULL,NULL,0,NULL,NULL 1113,187502,939635,NULL,NULL,NULL,0,NULL,NULL 1114,145060,1033939,Yearling Critic Caucus Commentator Yearling Necromancer Excavator Student Scholar,NULL,NULL,0,NULL,NULL 1115,1255184,725529,NULL,NULL,NULL,0,NULL,NULL 1116,1667526,991750,NULL,NULL,NULL,0,NULL,NULL 1117,330151,821223,Informed Census Notable Question,NULL,NULL,0,NULL,NULL 1118,355688,192539,NULL,NULL,NULL,0,NULL,NULL 1119,1415263,1218762,Benefactor Caucus Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Curious Custodian Yearling Popular Question Nice Answer Nice Answer Enlightened Popular Question Famous Question Caucus Constituent Nice Answer Enlightened Nice Question Yearling Announcer Necromancer Caucus Announcer Yearling Caucus Constituent Announcer Nice Answer Outspoken,NULL,NULL,0,NULL,NULL 1120,496824,1218762,Benefactor Caucus Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Curious Custodian Yearling Popular Question Nice Answer Nice Answer Enlightened Popular Question Famous Question Caucus Constituent Nice Answer Enlightened Nice Question Yearling Announcer Necromancer Caucus Announcer Yearling Caucus Constituent Announcer Nice Answer Outspoken,NULL,NULL,0,NULL,NULL 1121,35181,56241,Yearling Good Answer Famous Question Nice Answer Good Question Nice Question Yearling Necromancer Necromancer Custodian Inquisitive Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1122,820003,871086,Good Answer Nice Answer Yearling Civic Duty Famous Question Autobiographer Yearling Good Question Revival Yearling,NULL,NULL,0,NULL,NULL 1123,377760,832132,Necromancer,NULL,NULL,0,NULL,NULL 1124,247364,606625,Notable Question Popular Question Informed,NULL,NULL,0,NULL,NULL 1125,33083,923894,Notable Question Popular Question Citizen Patrol Famous Question Nice Question Necromancer Yearling Nice Question,NULL,NULL,0,NULL,NULL 1126,107172,592260,NULL,NULL,NULL,0,NULL,NULL 1127,16343,1319641,Notable Question,NULL,NULL,0,NULL,NULL 1128,202744,1487649,Supporter,NULL,NULL,0,NULL,NULL 1129,2677688,881036,NULL,NULL,NULL,0,NULL,NULL 1130,305509,1023966,Curious Yearling Popular Question Custodian Citizen Patrol Revival Yearling,NULL,NULL,0,NULL,NULL 1131,149899,33823,Caucus,NULL,NULL,0,NULL,NULL 1132,175742,229428,NULL,NULL,NULL,0,NULL,NULL 1133,105754,1229837,Teacher,NULL,NULL,0,NULL,NULL 1134,60371,206405,NULL,NULL,NULL,0,NULL,NULL 1135,1294622,1310205,NULL,NULL,NULL,0,NULL,NULL 1136,1174858,1465227,Yearling Informed Caucus Caucus Constituent Documentation User,NULL,NULL,0,NULL,NULL 1137,1157074,1392730,NULL,NULL,NULL,0,NULL,NULL 1138,132055,503044,Commentator Announcer,NULL,NULL,0,NULL,NULL 1139,291632,1295896,Explainer Popular Question Popular Question Necromancer Yearling Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1140,303133,615244,NULL,NULL,NULL,0,NULL,NULL 1141,154702,1493872,Yearling Good Answer,NULL,NULL,0,NULL,NULL 1142,1237203,794885,Nice Question Notable Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 1143,76400,140786,Yearling Nice Question Popular Question Yearling Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 1144,61608,764546,Notable Question Good Question Popular Question Nice Answer Yearling Notable Question Popular Question Caucus Constituent Tag Editor Necromancer Yearling Caucus Constituent Nice Answer Necromancer Nice Question Documentation User Nice Answer Enlightened Census Caucus Constituent Nice Answer Enlightened Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 1145,195195,261512,Famous Question Revival Popular Question Notable Question Notable Question Nice Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 1146,504790,428560,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1147,259151,54091,Yearling Great Answer Good Answer Caucus Yearling Custodian Good Answer Good Answer Yearling Good Answer Caucus Constituent Good Answer Nice Answer Revival,NULL,NULL,0,NULL,NULL 1148,4103,768038,NULL,NULL,NULL,0,NULL,NULL 1149,1209513,1488862,NULL,NULL,NULL,0,NULL,NULL 1150,2684838,9944,NULL,NULL,NULL,0,NULL,NULL 1151,1364850,577925,NULL,NULL,NULL,0,NULL,NULL 1152,3087686,1270320,Yearling Nice Answer Necromancer Revival Excavator Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 1153,804303,1270320,Yearling Nice Answer Necromancer Revival Excavator Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 1154,216613,754471,Guru Yearling Famous Question Tumbleweed Popular Question Popular Question Announcer Yearling Popular Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 1155,1169122,785719,NULL,NULL,NULL,0,NULL,NULL 1156,2342164,1217978,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1157,673917,986012,Tumbleweed Popular Question Yearling Necromancer Popular Question Notable Question Caucus Notable Question Yearling Popular Question Peer Pressure Inquisitive Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Answer Popular Question Critic Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 1158,6511,264985,Self-Learner Nice Answer Yearling Popular Question Yearling Notable Question Good Answer Nice Question,NULL,NULL,0,NULL,NULL 1159,825627,48211,Nice Question Famous Question Talkative Popular Question Yearling Caucus Notable Question Popular Question Citizen Patrol Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 1160,36880,47020,Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question Announcer Announcer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1161,1509815,568042,Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 1162,1463191,640261,Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1163,173043,485682,NULL,NULL,NULL,0,NULL,NULL 1164,479172,1381093,Necromancer Tag Editor Notable Question Famous Question Popular Question Yearling Favorite Question Popular Question Notable Question Notable Question Necromancer Nice Question Popular Question Notable Question Caucus Great Answer Famous Question Notable Question Yearling Nice Answer Popular Question Notable Question Great Question Good Question Nice Answer Enlightened Popular Question Caucus Constituent Notable Question Nice Answer Popular Question Notable Question Famous Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 1165,1807827,1434279,NULL,NULL,NULL,0,NULL,NULL 1166,583412,1434279,NULL,NULL,NULL,0,NULL,NULL 1167,1178009,1002558,NULL,NULL,NULL,0,NULL,NULL 1168,713174,1194690,NULL,NULL,NULL,0,NULL,NULL 1169,1059293,923833,Yearling Revival Caucus Constituent Civic Duty Caucus Constituent Organizer Yearling Custodian Documentation User Yearling Caucus Constituent Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 1170,1297407,338865,NULL,NULL,NULL,0,NULL,NULL 1171,204229,567739,Popular Question Self-Learner Commentator Custodian,NULL,NULL,0,NULL,NULL 1172,578054,1308788,Nice Question Yearling Nice Answer Yearling Popular Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 1173,291165,806261,Yearling Citizen Patrol Yearling Yearling,NULL,NULL,0,NULL,NULL 1174,1509355,1410948,NULL,NULL,NULL,0,NULL,NULL 1175,251735,134502,Guru Popular Question Notable Question Notable Question Nice Question Yearling Famous Question Nice Answer Enlightened Famous Question Popular Question Popular Question Notable Question Popular Question Nice Answer Nice Answer Yearling Popular Question Nice Question Famous Question Notable Question Notable Question Yearling Great Question Good Answer Famous Question Good Question,NULL,NULL,0,NULL,NULL 1176,50262,1180757,NULL,NULL,NULL,0,NULL,NULL 1177,103904,206403,Nice Answer Guru Nice Question dom Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Guru Nice Answer Enlightened ajax Enlightened Guru Nice Answer Enlightened Nice Answer jquery-ui Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Notable Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Nice Answer Guru Notable Question Nice Answer Caucus Notable Question Yearling Guru Constituent Guru arrays Good Answer Census Guru Popular Question Good Answer Great Answer Guru Nice Answer Famous Question Good Answer Good Answer Nice Answer Guru Good Answer Good Answer Notable Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Announcer Nice Answer Good Answer Caucus Nice Answer Constituent Nice Answer Enlightened Announcer Nice Answer Guru Nice Answer Good Answer Guru Popular Question Nice Answer Enlightened Good Answer Documentation User Great Question Good Answer Yearling Good Answer Notable Question Nice Answer Popular Question Nice Answer Census Nice Answer Good Answer Great Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Necromancer Caucus Great Answer Popular Question Good Answer Constituent Popular Question Nice Question Nice Answer Nice Answer Nice Answer Great Answer Guru Populist Announcer Nice Answer Nice Answer Nice Answer Great Answer Guru Great Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Yearling Guru Nice Answer,NULL,pThe href http www w3 org TR html401 struct links html 12 code lt gt code tag doesn have codedisabled code attribute that just for code lt input gt codes and code lt select gt codes and code lt textarea gt codes ppTo disable link you can remove its codehref code attribute or add click handler that returns false Removing the href may make the cursor not change when you hover over it,0,NULL,NULL 1178,33821,140930,NULL,NULL,NULL,0,NULL,NULL 1179,203468,259033,NULL,NULL,NULL,0,NULL,NULL 1180,358245,177087,NULL,NULL,NULL,0,NULL,NULL 1181,515097,631801,NULL,NULL,NULL,0,NULL,NULL 1182,103248,1472062,NULL,NULL,NULL,0,NULL,NULL 1183,251127,109967,NULL,NULL,NULL,0,NULL,NULL 1184,3355541,479070,NULL,NULL,NULL,0,NULL,NULL 1185,288094,903447,Notable Question,NULL,NULL,0,NULL,NULL 1186,59536,856075,Famous Question Necromancer Nice Question Self-Learner Yearling Revival Caucus Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1187,524506,720735,Notable Question Yearling Popular Question Popular Question Caucus Constituent Famous Question Famous Question Caucus Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1188,451645,702462,Notable Question Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 1189,481761,847143,NULL,NULL,NULL,0,NULL,NULL 1190,3257,903800,NULL,NULL,NULL,0,NULL,NULL 1191,866392,308843,Popular Question Famous Question Yearling Yearling Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1192,285993,927029,Famous Question Teacher Good Question Yearling Critic,NULL,NULL,0,NULL,NULL 1193,716416,807321,Commentator,NULL,NULL,0,NULL,NULL 1194,2258017,1115539,Editor Notable Question,NULL,NULL,0,NULL,NULL 1195,1068466,711917,NULL,NULL,NULL,0,NULL,NULL 1196,7113921,988243,NULL,NULL,NULL,0,NULL,NULL 1197,1173806,988243,NULL,NULL,NULL,0,NULL,NULL 1198,312005,1046298,Student,NULL,NULL,0,NULL,NULL 1199,42817,533060,Notable Question,NULL,NULL,0,NULL,NULL 1200,166851,1312329,Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Notable Question Famous Question Yearling Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1201,103193,1146318,Famous Question,NULL,NULL,0,NULL,NULL 1202,3262405,516663,NULL,NULL,NULL,0,NULL,NULL 1203,93996,1200869,NULL,NULL,NULL,0,NULL,NULL 1204,39408,1186184,NULL,NULL,NULL,0,NULL,NULL 1205,529297,353515,NULL,NULL,NULL,0,NULL,NULL 1206,727243,1220606,Yearling Good Answer,NULL,NULL,0,NULL,NULL 1207,1134679,1122490,NULL,NULL,NULL,0,NULL,NULL 1208,1376007,251749,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1209,139425,251749,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1210,18691,1196673,NULL,NULL,NULL,0,NULL,NULL 1211,425558,915094,NULL,NULL,NULL,0,NULL,NULL 1212,157343,532138,NULL,NULL,NULL,0,NULL,NULL 1213,560957,936495,Famous Question,NULL,NULL,0,NULL,NULL 1214,1520126,96251,Popular Question,NULL,NULL,0,NULL,NULL 1215,25063,893830,NULL,NULL,NULL,0,NULL,NULL 1216,105369,87152,Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Good Question Popular Question Nice Question Famous Question Notable Question Nice Question Notable Question Good Question Nice Question Notable Question Notable Question Good Question Notable Question Nice Question Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Yearling Popular Question Famous Question Good Question Popular Question Popular Question Notable Question Popular Question Stellar Question Nice Question Famous Question Good Question Popular Question Stellar Question Popular Question Famous Question Nice Question Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Good Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Good Question Favorite Question Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 1217,399715,887401,Popular Question,NULL,NULL,0,NULL,NULL 1218,246037,1235689,NULL,NULL,NULL,0,NULL,NULL 1219,268400,699363,NULL,NULL,NULL,0,NULL,NULL 1220,1467072,185655,Nice Answer Enlightened Great Answer Popular Question Popular Question Notable Question Nice Answer Notable Question Yearling Caucus Popular Question Constituent Nice Answer Popular Question Popular Question Popular Question Caucus Constituent Reviewer Yearling Documentation User Announcer Notable Question Notable Question Nice Answer Census Nice Answer Enlightened Notable Question Great Answer Nice Answer Enlightened Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1221,79216,494472,Notable Question Notable Question Revival Outspoken,NULL,NULL,0,NULL,NULL 1222,162127,351615,NULL,NULL,NULL,0,NULL,NULL 1223,5820,633763,NULL,NULL,NULL,0,NULL,NULL 1224,530193,1275223,NULL,NULL,NULL,0,NULL,NULL 1225,530195,1275223,NULL,NULL,NULL,0,NULL,NULL 1226,183822,567070,Yearling Good Answer Caucus Yearling Guru Documentation User Yearling Census Custodian Revival,NULL,NULL,0,NULL,NULL 1227,940221,987493,NULL,NULL,NULL,0,NULL,NULL 1228,329406,996003,NULL,NULL,NULL,0,NULL,NULL 1229,85061,145587,Pundit Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened pointers Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Yearling Necromancer Nice Answer Nice Answer Good Answer Nice Answer Popular Question Good Answer Necromancer http Announcer Good Answer struct Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Taxonomist Generalist Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened php Good Answer Nice Answer Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer jquery Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Populist Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Good Answer Great Answer Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Populist Nice Answer Good Answer Guru Great Answer Nice Answer Nice Answer Enlightened Necromancer goroutine,NULL,How to convert HTML table to array with golang html go goquery pI having problem trying to convert an HTML table into Golang array ve tried to achieve it using net html and goquery without any success on both of them ppLet say we have this HTML table ppre code lt html gt lt body gt lt table gt lt tr gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt tr gt lt tr gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt tr gt lt table gt lt body gt lt html gt code prepAnd like to end up with this array ppre code Row Content Row Content Row Content Row Content code prepAs you guy can see just ignoring Contents and ppMy extraction code ppre codefunc extractValue content byte doc goquery NewDocumentFromReader bytes NewReader content doc Find table tr td Each func int td goquery Selection code prepI ve tried to add controller number which would be responsible for ignoring the code lt td gt code that don want to convert and calling ppre codetd NextAll code prepbut with no luck Do you guys have any idea of what should do to accomplish it ppThanks Can you add the actual code you used,0,NULL,NULL 1230,338847,403862,Enthusiast Critic,NULL,NULL,0,NULL,NULL 1231,40981,568520,Good Question Yearling,NULL,NULL,0,NULL,NULL 1232,341565,502458,Great Answer Yearling Caucus Popular Question Caucus Yearling Popular Question Excavator Yearling,NULL,NULL,0,NULL,NULL 1233,638553,110233,Tumbleweed Popular Question Announcer Nice Answer Yearling Famous Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Good Answer Notable Question Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 1234,776804,470159,Popular Question Famous Question Famous Question Nice Question Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Good Question Yearling Caucus Constituent Famous Question Popular Question Popular Question Notable Question Announcer Citizen Patrol Caucus Popular Question Notable Question Popular Question Yearling Popular Question Nice Question Famous Question Popular Question Popular Question Notable Question Famous Question Good Question Popular Question Organizer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1235,87573,792668,Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Yearling Popular Question Custodian Popular Question Custodian Popular Question Notable Question Caucus Yearling,NULL,how to shade before compile with SBT scala sbt sbt assembly href https github com apache incubator gearpump rel noreferrer Our project mainly consists of two parts pulli href https github com apache incubator gearpump blob master project Build scala rel noreferrer Build scala where the root project lies lili href https github com apache incubator gearpump blob master project BuildShaded scala rel noreferrer BuildShaded scala where some external dependencies are shaded with href https github com sbt sbt assembly rel noreferrer sbt assembly The shaded jars will be depended upon by sub projects under the root project through codeunmanagedJars code setting li ulpThe question is how to assembly the shaded project before compiling the root project Otherwise the root project will fail to compile since those classes in the shaded jars are not available because need to depend on the classes after shading managed dependencies will introduce classes before shading how to shade before compile with SBT scala sbt sbt assembly href https github com apache incubator gearpump rel noreferrer Our project mainly consists of two parts pulli href https github com apache incubator gearpump blob master project Build scala rel noreferrer Build scala where the root project lies lili href https github com apache incubator gearpump blob master project BuildShaded scala rel noreferrer BuildShaded scala where some external dependencies are shaded with href https github com sbt sbt assembly rel noreferrer sbt assembly The shaded jars will be depended upon by sub projects under the root project through codeunmanagedJars code setting li ulpThe question is how to assembly the shaded project before compiling the root project Otherwise the root project will fail to compile since those classes in the shaded jars are not available what do you mean Do you have any examples or documentation sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out want to have two dependencies of project one with scope provided the other test sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out get compile error if removing the test entry think it legit to have two dependencies of the same project with two scopes in Maven sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out meier added more details sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out meier The pom file is generated by sbt publish and my problem is that somehow the provided dependency gets lost sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out That will cause compile failure for tests in gearpump streaming project,1,how to shade before compile with SBT scala sbt sbt assembly href https github com apache incubator gearpump rel noreferrer Our project mainly consists of two parts pulli href https github com apache incubator gearpump blob master project Build scala rel noreferrer Build scala where the root project lies lili href https github com apache incubator gearpump blob master project BuildShaded scala rel noreferrer BuildShaded scala where some external dependencies are shaded with href https github com sbt sbt assembly rel noreferrer sbt assembly The shaded jars will be depended upon by sub projects under the root project through codeunmanagedJars code setting li ulpThe question is how to assembly the shaded project before compiling the root project Otherwise the root project will fail to compile since those classes in the shaded jars are not available sbt published maven file missing artifacts with multiple scopes maven sbt pSay have project codeB code that depends on project codeA code with codetest gt test code and codeprovided code scopes ppre codeval Project id project base file myproject dependsOn test gt test provided code prepThe published maven pom file for codeB code however only has the test dependency ppWhy is the codeprovided code dependency left out pp strongUpdate strong ppThis is the actual SBT codes in href https github com apache incubator gearpump blob master project BuildGearpump scala rel nofollow noreferrer our project ppre codelazy val streaming Project id gearpump streaming base file streaming settings commonSettings myAssemblySettings javadocSettings addArtifact Artifact gearpump streaming sbtassembly AssemblyKeys assembly Seq assemblyMergeStrategy in assembly case geardefault conf gt MergeStrategy last case gt val oldStrategy assemblyMergeStrategy in assembly value oldStrategy libraryDependencies Seq com goldmansachs gs collections gsCollectionsVersion pomPostProcess node xml Node gt changeShadedDeps Set com goldmansachs org scala lang org scoverage List getShadedDepXML organization value core id scalaBinaryVersion value version value provided node dependsOn core test gt test provided code prepThe codepomPostProcess code is to remove unwanted dependencies from the published pom file and add codecore code dependency with codeprovided code scope ppWithout the latter the pom file would be like ppre code lt xml version encoding UTF gt lt project xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd xmlns xsi http www w3 org 2001 XMLSchema instance xmlns http maven apache org POM gt lt modelVersion gt lt modelVersion gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump streaming 11 lt artifactId gt lt packaging gt jar lt packaging gt lt description gt gearpump streaming lt description gt lt version gt SNAPSHOT lt version gt lt name gt gearpump streaming lt name gt lt organization gt lt name gt org apache gearpump lt name gt lt organization gt lt url gt https github com apache incubator gearpump lt url gt lt licenses gt lt license gt lt name gt Apache lt name gt lt url gt http www apache org licenses LICENSE txt lt url gt lt license gt lt licenses gt lt scm gt lt connection gt scm git git apache org incubator gearpump git lt connection gt lt developerConnection gt scm git git com apache incubator gearpump lt developerConnection gt lt url gt github com apache incubator gearpump lt url gt lt scm gt lt developers gt lt developer gt lt id gt gearpump lt id gt lt name gt Gearpump Team lt name gt lt url gt http gearpump incubator apache org community html who we are lt url gt lt developer gt lt developers gt lt dependencies gt lt dependency gt lt groupId gt org apache gearpump lt groupId gt lt artifactId gt gearpump core 11 lt artifactId gt lt version gt SNAPSHOT lt version gt lt scope gt test lt scope gt lt dependency gt lt dependencies gt code prep ppYou can see that the provided dependency is left out,NULL 1236,82810,755611,Nice Question,NULL,NULL,0,NULL,NULL 1237,150302,940569,Notable Question Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Good Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Good Question Yearling Nice Question Favorite Question Famous Question Famous Question Famous Question Famous Question Good Question Notable Question Popular Question Popular Question Popular Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1238,40154,4421,Necromancer Nice Answer Great Answer Good Answer Yearling Nice Answer Nice Answer Nice Answer Announcer Pundit Good Answer Good Answer Yearling Necromancer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Question Necromancer Nice Answer Yearling Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 1239,702477,687036,NULL,NULL,NULL,0,NULL,NULL 1240,768387,645543,NULL,NULL,NULL,0,NULL,NULL 1241,20940,1210701,NULL,NULL,NULL,0,NULL,NULL 1242,532727,792367,Notable Question Yearling Famous Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 1243,173855,1149608,NULL,NULL,NULL,0,NULL,NULL 1244,184930,380451,Favorite Question Favorite Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Yearling Self-Learner Notable Question Favorite Question Notable Question Nice Answer Notable Question Nice Answer Yearling Nice Answer Enlightened Enthusiast python Strunk & White Famous Question Popular Question Popular Question Enlightened Notable Question Good Answer Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1245,14991,746383,Yearling Popular Question Famous Question Caucus Constituent Civic Duty Famous Question Yearling Caucus Constituent Nice Answer Deputy Announcer Good Answer Caucus Constituent Yearling Nice Question,NULL,NULL,0,NULL,NULL 1246,277494,234091,Good Question Tumbleweed Yearling Nice Answer Famous Question Autobiographer Popular Question Necromancer Documentation User Yearling Notable Question Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 1247,49105,603288,NULL,NULL,NULL,0,NULL,NULL 1248,204525,128583,Nice Answer Good Answer Yearling Necromancer Good Answer Necromancer Popular Question Announcer Yearling Nice Answer Yearling Good Answer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 1249,104046,1159326,Teacher,NULL,NULL,0,NULL,NULL 1250,5841677,232217,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 1251,235039,232217,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 1252,301029,1088274,NULL,NULL,NULL,0,NULL,NULL 1253,707992,1163790,Nice Answer,NULL,NULL,0,NULL,NULL 1254,309769,1298565,NULL,NULL,NULL,0,NULL,NULL 1255,161994,166389,Yearling Critic Organizer Yearling Yearling Enthusiast Custodian Custodian Custodian Informed Yearling Announcer Caucus Necromancer Announcer,NULL,NULL,0,NULL,NULL 1256,160895,89580,NULL,NULL,NULL,0,NULL,NULL 1257,340810,607070,NULL,NULL,NULL,0,NULL,NULL 1258,16731,276626,Announcer Announcer Yearling Nice Answer Necromancer Notable Question Yearling Populist Revival Good Answer Announcer Guru Revival Good Answer Great Answer Necromancer Yearling Civic Duty Nice Answer Cleanup Nice Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 1259,38160,804758,Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 1260,1663009,777217,NULL,NULL,NULL,0,NULL,NULL 1261,344992,366142,Yearling Caucus Census Yearling Caucus Organizer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1262,408469,568327,Caucus Necromancer Critic Yearling Enthusiast,NULL,NULL,0,NULL,NULL 1263,9164760,167247,NULL,NULL,NULL,0,NULL,NULL 1264,88004,167247,NULL,NULL,NULL,0,NULL,NULL 1265,224819,1150453,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 1266,127712,758037,NULL,NULL,NULL,0,NULL,NULL 1267,28425,574823,Yearling Nice Answer Good Answer Yearling Nice Answer Curious Necromancer Notable Question Nice Answer Necromancer Yearling Necromancer Nice Answer Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 1268,4428093,243991,Yearling Nice Answer Custodian Nice Answer Scholar Nice Answer Famous Question Tumbleweed Civic Duty Nice Answer java Nice Answer Caucus Nice Answer Enlightened Yearling Popular Question Good Question Caucus Revival Good Answer Yearling Census Caucus Nice Answer,NULL,NULL,0,NULL,NULL 1269,160453,243991,Yearling Nice Answer Custodian Nice Answer Scholar Nice Answer Famous Question Tumbleweed Civic Duty Nice Answer java Nice Answer Caucus Nice Answer Enlightened Yearling Popular Question Good Question Caucus Revival Good Answer Yearling Census Caucus Nice Answer,NULL,NULL,0,NULL,NULL 1270,117556,1443305,NULL,NULL,NULL,0,NULL,NULL 1271,65587,436920,Organizer Popular Question,NULL,NULL,0,NULL,NULL 1272,2745191,436920,Organizer Popular Question,NULL,NULL,0,NULL,NULL 1273,519465,1178788,NULL,NULL,NULL,0,NULL,NULL 1274,89739,303637,Popular Question Enthusiast Notable Question Caucus Constituent Yearling Citizen Patrol Custodian Popular Question,NULL,NULL,0,NULL,NULL 1275,313041,67873,Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 1276,79181,53663,Caucus Yearling,NULL,NULL,0,NULL,NULL 1277,5019195,135079,Notable Question Caucus Popular Question Popular Question Popular Question Announcer Caucus Announcer,NULL,NULL,0,NULL,NULL 1278,264660,117220,Caucus Curious Yearling Caucus Pundit Electorate Custodian Good Question Custodian,NULL,NULL,0,NULL,NULL 1279,2305422,46455,NULL,NULL,NULL,0,NULL,NULL 1280,480698,805511,NULL,NULL,NULL,0,NULL,NULL 1281,456320,214383,Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1282,45106,603333,Yearling Famous Question Notable Question Caucus Yearling Famous Question Good Question Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 1283,135404,893100,NULL,NULL,NULL,0,NULL,NULL 1284,7554058,654936,Supporter Nice Question,NULL,NULL,0,NULL,NULL 1285,171096,379217,NULL,NULL,NULL,0,NULL,NULL 1286,1198603,1433962,NULL,NULL,NULL,0,NULL,NULL 1287,856715,419639,Commentator,NULL,NULL,0,NULL,NULL 1288,762435,305631,Popular Question,NULL,NULL,0,NULL,NULL 1289,11245,134785,NULL,NULL,NULL,0,NULL,NULL 1290,52941,871719,Notable Question,NULL,NULL,0,NULL,NULL 1291,875976,1094044,Yearling Tumbleweed Popular Question Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 1292,322778,213703,Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 1293,1123522,750987,Good Answer Nice Answer Nice Answer Good Answer Guru Necromancer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Guru Guru Guru Nice Answer Enlightened Good Answer Guru Great Answer Guru Yearling Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 1294,113852,1015567,NULL,NULL,NULL,0,NULL,NULL 1295,138644,1491486,NULL,NULL,NULL,0,NULL,NULL 1296,200612,845606,NULL,NULL,NULL,0,NULL,NULL 1297,1148762,156575,Caucus Documentation User Good Question Notable Question,NULL,NULL,0,NULL,NULL 1298,3894,1396997,NULL,NULL,NULL,0,NULL,NULL 1299,183276,911501,NULL,NULL,NULL,0,NULL,NULL 1300,325348,510036,Notable Question Famous Question Popular Question Famous Question Nice Answer Nice Question Nice Answer Famous Question Good Answer Notable Question Copy Editor Revival Popular Question Nice Answer Popular Question Famous Question Reviewer java Popular Question Caucus Notable Question Yearling Constituent Good Question Necromancer Census Good Question Popular Question Popular Question Good Question Announcer Nice Question Announcer Caucus Famous Question Necromancer Popular Question Notable Question Nice Question Good Question Yearling Popular Question Nice Answer Popular Question Popular Question Popular Question Census Good Answer Popular Question Necromancer Popular Question Revival Notable Question Nice Question Popular Question Nice Answer Yearling Popular Question Popular Question Notable Question,NULL,pNo but here simple pseudorandom generator adapted from href http en wikipedia org wiki Random number generation rel noreferrer Wikipedia ppre codevar 123456789 var 987654321 var mask 0xffffffff Takes any integerfunction seed 987654321 Returns number between inclusive and exclusive just like Math random function random 36969 amp 65535 gt gt 16 amp mask 18000 amp 65535 gt gt 16 amp mask var result lt lt 16 amp mask result 4294967296 return result code prepEDIT fixed seed function by making it reset this is several years too late but with several seeds at millions of runs it almost perfectly distributed Variance in distribution was around 469446951953614e 18 extremely well distributed This https gist github com Qix c01d144472593a27d398619ad6e54c03 is the script used to test distribution Just needs an object with next method,0,NULL,NULL 1301,341763,1424706,Commentator Nice Answer Yearling Revival Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1302,1789438,1424706,Commentator Nice Answer Yearling Revival Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1303,1115404,832009,Scholar Custodian Autobiographer Necromancer Informed Yearling Nice Answer Yearling Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 1304,380441,832894,Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Yearling Self-Learner Yearling Necromancer Custodian Nice Answer,NULL,NULL,0,NULL,NULL 1305,78680,965783,Popular Question Yearling Yearling Yearling Notable Question,NULL,h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre This is getting better each time revisit Consider turning it into blog post,0,NULL,NULL 1306,842599,26816,Famous Question Good Answer Famous Question Nice Answer Good Answer Yearling Good Question Census java Nice Answer Guru Yearling Nice Answer Enlightened Yearling Guru Nice Question,NULL,NULL,0,NULL,NULL 1307,2659592,445029,NULL,NULL,NULL,0,NULL,NULL 1308,157339,563532,Yearling Informed linq Deputy Fanatic Nice Answer Enlightened .net Nice Answer Steward Nice Answer Outspoken c# Nice Answer Nice Answer Disciplined Convention Documentation Beta Good Answer Nice Answer Caucus Copy Editor Constituent Marshal Investor Altruist Great Answer Yearling Announcer Great Answer Taxonomist Nice Answer Necromancer Census Nice Answer Enlightened Self-Learner Caucus Refiner Nice Answer Enlightened Constituent Curious Nice Answer Steward Popular Question Documentation User Popular Question Yearling Census Nice Answer Enlightened Announcer Sportsmanship Caucus Good Answer Nice Answer Constituent Archaeologist Nice Answer Nice Answer Nice Answer Enlightened Synonymizer Notable Question Nice Answer Nice Answer,NULL,pSee href https tools ietf org html rfc2616 section 10 rel noreferrer RFC2616 pp401 Unauthorized pblockquote pIf the request already included Authorization credentials then the 401 response indicates that authorization has been refused for those credentials blockquotep403 Forbidden pblockquote pThe server understood the request but is refusing to fulfill it blockquotep strongUpdate strong ppFrom your use case it appears that the user is not authenticated would return 401 phrp emEdit href https tools ietf org html rfc2616 section 10 rel noreferrer RFC2616 is obsolete see href https tools ietf org html rfc7231 section rel noreferrer RFC7231 and href https tools ietf org html rfc7235 section rel noreferrer RFC7235 em You say the answer is misleading it is but only enforce the answer rather than contradict it Both the answer and your comment recommend using 401 and not using 403,0,NULL,NULL 1309,48634,767678,Notable Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 1310,110812,327748,Good Answer,NULL,NULL,0,NULL,NULL 1311,128445,439965,Yearling Revival Nice Answer,NULL,pUnfortunately IE10 still remains the only popular browser that doesn support CORS for image drawn to Canvas even when CORS headers are properly set But there is workaround for that via XMLHttpRequest even without proxying image on server side ppre class lang js prettyprint override codevar xhr new XMLHttpRequest xhr onload function var url URL createObjectURL this response img src url here you can use img for drawing to canvas and handling don forget to free memory up when you re done you can do this as soon as image is drawn to canvas URL revokeObjectURL url xhr open GET url true xhr responseType blob xhr send code pre Well yes that not the original question asked and it intended security limitation,0,NULL,NULL 1312,555,887607,Caucus Constituent Nice Answer Caucus Revival,NULL,NULL,0,NULL,NULL 1313,306418,1469919,Curious Caucus Popular Question Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1314,2241987,775371,NULL,NULL,NULL,0,NULL,NULL 1315,4600930,775371,NULL,NULL,NULL,0,NULL,NULL 1316,437825,225689,NULL,NULL,NULL,0,NULL,NULL 1317,192874,971125,NULL,NULL,NULL,0,NULL,NULL 1318,193278,971125,NULL,NULL,NULL,0,NULL,NULL 1319,2048668,68157,NULL,NULL,NULL,0,NULL,NULL 1320,4746,547023,Notable Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Informed Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 1321,1728937,1280310,NULL,NULL,NULL,0,NULL,NULL 1322,296351,646225,NULL,NULL,NULL,0,NULL,NULL 1323,248514,715059,Autobiographer Editor Excavator Critic Student Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 1324,1312202,898805,Famous Question,NULL,NULL,0,NULL,NULL 1325,406961,913081,NULL,NULL,NULL,0,NULL,NULL 1326,684621,588316,NULL,NULL,NULL,0,NULL,NULL 1327,1191641,1498261,NULL,NULL,NULL,0,NULL,NULL 1328,965927,1276480,Revival Self-Learner Commentator Organizer Critic Yearling Citizen Patrol Caucus Yearling Curious Popular Question Excavator Custodian Yearling Yearling Suffrage Yearling Civic Duty Caucus Constituent Custodian Custodian Custodian go Explainer Popular Question Popular Question Yearling Nice Answer Enlightened Nice Answer Enlightened Notable Question Necromancer,NULL,NULL,0,NULL,NULL 1329,8246781,462298,NULL,NULL,NULL,0,NULL,NULL 1330,43163,462298,NULL,NULL,NULL,0,NULL,NULL 1331,105284,259228,Famous Question Good Question,NULL,NULL,0,NULL,NULL 1332,153101,1272824,android Nice Answer Yearling Good Answer Nice Answer Enlightened Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 1333,1079357,977416,Nice Answer,NULL,NULL,0,NULL,NULL 1334,1845205,977416,Nice Answer,NULL,NULL,0,NULL,NULL 1335,795060,155090,Popular Question Popular Question Civic Duty Nice Question Yearling Notable Question Popular Question Notable Question Guru Announcer Yearling Custodian Nice Answer Announcer Booster Notable Question Yearling,NULL,NULL,0,NULL,NULL 1336,296259,431357,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1337,168113,852382,Popular Question Famous Question Popular Question Documentation User Nice Question,NULL,NULL,0,NULL,NULL 1338,182017,349014,Notable Question Yearling Nice Answer Custodian Popular Question Popular Question Yearling Curious Announcer Yearling,NULL,NULL,0,NULL,NULL 1339,420258,768050,Revival Popular Question,NULL,NULL,0,NULL,NULL 1340,37569,54017,Great Answer Yearling Necromancer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer sqlalchemy Nice Answer Nice Answer Guru Nice Answer Nice Answer Pundit Yearling Guru Necromancer sql Guru Nice Answer Enlightened Nice Answer Revival Nice Answer Good Answer Good Answer Nice Answer Announcer Nice Answer Caucus Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Revival Good Answer Announcer Good Answer Good Answer Good Answer Nice Answer Revival Good Answer Nice Answer Enlightened django Guru Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,pThat basically the way to do it there is no shortcut readily available AFAIK ppYou could generalize it ofcourse ppre codedef get or create session model defaults None kwargs instance session query model filter by kwargs first if instance return instance False else params dict for in kwargs iteritems if not isinstance ClauseElement params update defaults or instance model params session add instance return instance True code pre No Probably because it not very common pattern in well designed applications This is nice fire and forget type of method but generally would recommend explicitly creating objects instead pThat basically the way to do it there is no shortcut readily available AFAIK ppYou could generalize it ofcourse ppre codedef get or create session model defaults None kwargs instance session query model filter by kwargs first if instance return instance False else params dict for in kwargs iteritems if not isinstance ClauseElement params update defaults or instance model params session add instance return instance True code pre there is no truly practical way to do it in bulk because an update executes across all selected rows The result is that you would update all rows to the same values or you would need to execute huge amount of update statements If you execute it all in single transaction it shouldn be that slow however And you could batch the inserts of course pThat basically the way to do it there is no shortcut readily available AFAIK ppYou could generalize it ofcourse ppre codedef get or create session model defaults None kwargs instance session query model filter by kwargs first if instance return instance False else params dict for in kwargs iteritems if not isinstance ClauseElement params update defaults or instance model params session add instance return instance True code pre the context error is probably because you don have valid sqlalchemy session beyond that you can put the code anywhere,0,NULL,NULL 1341,208491,795605,Popular Question Critic,NULL,NULL,0,NULL,NULL 1342,97344,212307,Yearling Famous Question Good Question Custodian Civic Duty Necromancer Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 1343,349007,299351,Editor Informed Supporter,NULL,NULL,0,NULL,NULL 1344,123816,198945,Notable Question,NULL,NULL,0,NULL,NULL 1345,726023,200007,NULL,NULL,NULL,0,NULL,NULL 1346,788359,602449,Yearling Popular Question Revival Notable Question Necromancer Notable Question Census Yearling Necromancer Nice Answer Custodian Announcer Revival Nice Question Announcer Necromancer Census Necromancer Yearling Famous Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 1347,96123,243568,Yearling Notable Question Necromancer Popular Question Popular Question Popular Question Necromancer javascript Yearling Good Question Popular Question Caucus Necromancer Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 1348,48206,374793,NULL,NULL,NULL,0,NULL,NULL 1349,48145,890226,Enthusiast Popular Question Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1350,284376,326994,NULL,NULL,NULL,0,NULL,NULL 1351,11745,181907,Nice Question Revival Civic Duty Yearling Caucus Citizen Patrol Famous Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 1352,500339,160667,NULL,NULL,NULL,0,NULL,NULL 1353,560924,1286316,NULL,NULL,NULL,0,NULL,NULL 1354,4955409,1286316,NULL,NULL,NULL,0,NULL,NULL 1355,5718926,1286316,NULL,NULL,NULL,0,NULL,NULL 1356,894931,235058,Popular Question Guru Guru Good Answer Nice Answer Notable Question Great Answer Yearling Notable Question Generalist Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Yearling Great Answer Nice Answer Enlightened Populist Caucus Guru,NULL,NULL,0,NULL,NULL 1357,1512118,1421219,NULL,NULL,NULL,0,NULL,NULL 1358,49357,78110,Revival Yearling Caucus Famous Question Revival Nice Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 1359,222475,175399,Nice Question Good Question Popular Question Notable Question Nice Question Popular Question Favorite Question Popular Question Nice Question Popular Question Famous Question Notable Question Popular Question Notable Question Famous Question Yearling Nice Question Popular Question Caucus Notable Question Constituent Popular Question Great Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Informed Popular Question Famous Question Famous Question Popular Question Yearling Popular Question Nice Answer Enlightened Great Question Good Question Good Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Famous Question Nice Answer Yearling Nice Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1360,580486,11356,Famous Question Famous Question Good Question Popular Question Nice Question Good Question Yearling Notable Question Notable Question Notable Question Notable Question Yearling Favorite Question Famous Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 1361,859522,144020,Popular Question Announcer Booster Nice Question Popular Question Notable Question Popular Question Famous Question Nice Answer Yearling Popular Question Popular Question Yearling Popular Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 1362,872931,924016,Nice Question Nice Answer Enlightened Yearling Famous Question Caucus Constituent Caucus Good Question,NULL,NULL,0,NULL,NULL 1363,94778,814523,NULL,NULL,NULL,0,NULL,NULL 1364,85023,808979,NULL,NULL,NULL,0,NULL,NULL 1365,21897,1145408,Student Caucus Critic,NULL,NULL,0,NULL,NULL 1366,60562,194163,NULL,NULL,NULL,0,NULL,NULL 1367,352636,773016,NULL,NULL,NULL,0,NULL,NULL 1368,96283,1528251,Popular Question Custodian Notable Question Caucus Constituent Yearling Caucus Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1369,583571,1006282,Commentator Critic Caucus,NULL,NULL,0,NULL,NULL 1370,185695,1264623,NULL,NULL,NULL,0,NULL,NULL 1371,3586,412478,Popular Question Popular Question Documentation User Notable Question Yearling,NULL,NULL,0,NULL,NULL 1372,328323,91740,Good Question Famous Question Yearling Yearling Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 1373,132661,796133,Revival,NULL,NULL,0,NULL,NULL 1374,140274,437912,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 1375,645286,1051182,Student Notable Question,NULL,NULL,0,NULL,NULL 1376,52195,287814,Notable Question,NULL,NULL,0,NULL,NULL 1377,349929,1453815,NULL,NULL,NULL,0,NULL,NULL 1378,857671,1130337,Autobiographer,NULL,NULL,0,NULL,NULL 1379,174260,463545,Teacher,NULL,NULL,0,NULL,NULL 1380,212107,813117,Nice Answer Caucus Famous Question Popular Question Popular Question Nice Question Caucus,NULL,NULL,0,NULL,NULL 1381,507321,985345,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 1382,96453,478944,Popular Question,NULL,NULL,0,NULL,NULL 1383,6705,743419,Yearling Nice Answer jbpm Nice Answer Enlightened Yearling Editor Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1384,286015,488204,Self-Learner Good Answer Nice Question Yearling Caucus Revival Guru Popular Question Announcer Nice Answer Caucus Yearling Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 1385,63139,873674,NULL,NULL,NULL,0,NULL,NULL 1386,302086,365109,NULL,NULL,NULL,0,NULL,NULL 1387,775801,1427955,Custodian Scholar,NULL,NULL,0,NULL,NULL 1388,349963,1161181,NULL,NULL,NULL,0,NULL,NULL 1389,1157752,1255159,NULL,NULL,NULL,0,NULL,NULL 1390,15732,25531,NULL,NULL,NULL,0,NULL,NULL 1391,91386,994654,NULL,NULL,NULL,0,NULL,NULL 1392,2173795,1429770,NULL,NULL,NULL,0,NULL,NULL 1393,158778,134567,Nice Answer,NULL,NULL,0,NULL,NULL 1394,72065,786489,Notable Question Notable Question Popular Question Good Question Nice Question Nice Question Notable Question Nice Answer Famous Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Notable Question Yearling Popular Question Reviewer Good Question Yearling Notable Question Notable Question Popular Question Good Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 1395,627312,622846,Yearling Good Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1396,339431,891048,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1397,369168,457564,NULL,NULL,NULL,0,NULL,NULL 1398,5955390,457564,NULL,NULL,NULL,0,NULL,NULL 1399,2152,1040675,Teacher Editor Custodian Supporter,NULL,NULL,0,NULL,NULL 1400,885428,930675,Notable Question Yearling Popular Question Famous Question Nice Question Nice Question Popular Question Good Answer Popular Question Yearling Good Question Popular Question Notable Question Notable Question Popular Question Yearling Citizen Patrol Nice Question Notable Question,NULL,NULL,0,NULL,NULL 1401,426511,930675,Notable Question Yearling Popular Question Famous Question Nice Question Nice Question Popular Question Good Answer Popular Question Yearling Good Question Popular Question Notable Question Notable Question Popular Question Yearling Citizen Patrol Nice Question Notable Question,NULL,NULL,0,NULL,NULL 1402,526574,888967,NULL,NULL,NULL,0,NULL,NULL 1403,154804,1539389,Teacher Supporter,NULL,NULL,0,NULL,NULL 1404,917579,957131,Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 1405,33630,441216,NULL,NULL,NULL,0,NULL,NULL 1406,203511,492649,Good Answer Necromancer Yearling Curious Nice Answer Nice Answer Popular Question Yearling Self-Learner Yearling,NULL,NULL,0,NULL,NULL 1407,158348,530020,Notable Question Caucus Caucus Critic,NULL,NULL,0,NULL,NULL 1408,292064,1227620,Editor Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 1409,205148,1335609,NULL,NULL,NULL,0,NULL,NULL 1410,510953,660895,Yearling Revival Caucus,NULL,NULL,0,NULL,NULL 1411,304830,1018093,Nice Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 1412,36022,1016656,NULL,NULL,NULL,0,NULL,NULL 1413,576222,1350772,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1414,62076,937983,Civic Duty,NULL,NULL,0,NULL,NULL 1415,113043,104783,Necromancer Yearling Popular Question Nice Question Caucus Census Custodian Famous Question Yearling Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 1416,214348,1138435,NULL,NULL,NULL,0,NULL,NULL 1417,1506143,802373,NULL,NULL,NULL,0,NULL,NULL 1418,356597,978509,Nice Question Revival Famous Question Critic Yearling Caucus Popular Question Caucus,NULL,NULL,0,NULL,NULL 1419,368969,294863,Notable Question Good Question Yearling Popular Question Popular Question Popular Question Popular Question Good Answer Popular Question Nice Question Popular Question Popular Question Necromancer Custodian Nice Answer Custodian Yearling Popular Question Guru Nice Answer Enlightened Notable Question Notable Question Notable Question Good Answer Notable Question Custodian Popular Question Popular Question Guru Necromancer Nice Question Yearling Popular Question Necromancer Nice Answer Notable Question Necromancer Custodian Popular Question Nice Answer Popular Question .net,NULL,NULL,0,NULL,NULL 1420,181976,1075375,Custodian Informed Famous Question Notable Question Notable Question Caucus Popular Question Notable Question Custodian Nice Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 1421,1530596,1075375,Custodian Informed Famous Question Notable Question Notable Question Caucus Popular Question Notable Question Custodian Nice Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 1422,482144,1048378,Famous Question Editor,NULL,NULL,0,NULL,NULL 1423,63277,487699,NULL,NULL,NULL,0,NULL,NULL 1424,50925,1065263,NULL,NULL,NULL,0,NULL,NULL 1425,52181,394845,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1426,194093,533164,NULL,NULL,NULL,0,NULL,NULL 1427,10115,838003,NULL,NULL,NULL,0,NULL,NULL 1428,884479,1034483,Revival,NULL,NULL,0,NULL,NULL 1429,290564,170621,Popular Question Notable Question Popular Question Critic Commentator Informed Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 1430,3868958,1335630,NULL,NULL,NULL,0,NULL,NULL 1431,170900,350272,Revival Popular Question Nice Answer Yearling Custodian Nice Answer Enlightened Caucus Popular Question Guru Tumbleweed Good Answer Popular Question Good Answer Yearling Good Answer Popular Question Great Answer Nice Answer Census Great Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 1432,48467,281682,Popular Question,NULL,NULL,0,NULL,NULL 1433,152263,147845,Nice Answer Guru Yearling Good Answer Nice Answer Enlightened c++ Guru Nice Answer Yearling Nice Answer Census Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 1434,394360,1024937,Popular Question,NULL,NULL,0,NULL,NULL 1435,1509737,708817,Necromancer Popular Question Good Question Enthusiast Notable Question Famous Question Famous Question Revival Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 1436,29587,205629,Nice Answer Commentator Yearling Critic Tag Editor Necromancer Yearling Necromancer Organizer Yearling Announcer Nice Answer Revival Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 1437,11587,1342035,NULL,NULL,NULL,0,NULL,NULL 1438,333371,514085,Caucus,NULL,NULL,0,NULL,NULL 1439,1001065,517914,Revival Revival Revival Nice Answer Nice Answer Good Answer Necromancer Excavator Curious Custodian Custodian Mortarboard Yearling Announcer Good Answer Organizer Necromancer Populist Revival Nice Answer Nice Answer Caucus Proofreader Documentation User Yearling Necromancer Necromancer Guru Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 1440,925602,618607,NULL,NULL,NULL,0,NULL,NULL 1441,1638508,241116,NULL,NULL,NULL,0,NULL,NULL 1442,1554302,856336,Teacher Informed Autobiographer Supporter Revival Revival Tumbleweed Student Citizen Patrol Commentator Critic Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 1443,1048818,210994,Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1444,28962,1338354,Critic Census,NULL,NULL,0,NULL,NULL 1445,11220,105431,Custodian Good Answer Yearling Peer Pressure Revival Popular Question Good Answer Nice Answer Great Answer Revival Good Answer Yearling Necromancer Notable Question Yearling Guru Notable Question,NULL,NULL,0,NULL,NULL 1446,1343053,317057,NULL,NULL,NULL,0,NULL,NULL 1447,270469,573025,Notable Question,NULL,NULL,0,NULL,NULL 1448,440016,1412989,Excavator,NULL,NULL,0,NULL,NULL 1449,800284,1111470,NULL,NULL,NULL,0,NULL,NULL 1450,4912865,984636,Editor Student Supporter Commentator Popular Question Scholar Custodian Notable Question,NULL,NULL,0,NULL,NULL 1451,468574,904925,NULL,NULL,NULL,0,NULL,NULL 1452,513498,1227385,Revival Census Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 1453,7497077,1276724,Popular Question Yearling Popular Question Popular Question Popular Question Curious Custodian Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 1454,62301,242940,Yearling Great Answer Nice Question Nice Answer Enlightened Good Answer xss Nice Answer Enlightened Yearling Good Answer Guru Notable Question Announcer Nice Answer Good Answer Good Answer Pundit Nice Answer Great Answer Announcer Nice Answer Enlightened Yearling Famous Question Caucus Nice Answer Enlightened redis,NULL,NULL,0,NULL,NULL 1455,188006,444512,Yearling,NULL,NULL,0,NULL,NULL 1456,722184,353672,Good Answer Guru Yearling Necromancer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 1457,1037836,688876,NULL,NULL,NULL,0,NULL,NULL 1458,394975,104877,Yearling Popular Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 1459,1051040,794439,Popular Question,NULL,NULL,0,NULL,NULL 1460,835958,1147893,NULL,NULL,NULL,0,NULL,NULL 1461,8349255,1128707,NULL,NULL,NULL,0,NULL,NULL 1462,3554,1128707,NULL,NULL,NULL,0,NULL,NULL 1463,270326,1061790,NULL,NULL,NULL,0,NULL,NULL 1464,201137,411718,Necromancer Citizen Patrol Nice Answer Yearling Nice Question Popular Question Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 1465,87406,957273,NULL,NULL,NULL,0,NULL,NULL 1466,329176,981801,NULL,NULL,NULL,0,NULL,NULL 1467,44601,1542629,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1468,212753,19818,Famous Question Nice Answer Enlightened Popular Question Good Answer Yearling Nice Answer Announcer Good Answer Census Guru Nice Answer Announcer Good Answer Yearling Custodian Notable Question Great Answer Census Good Answer Popular Question Revival Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 1469,221516,106755,NULL,NULL,NULL,0,NULL,NULL 1470,286,860606,NULL,NULL,NULL,0,NULL,NULL 1471,450156,1420057,Informed Autobiographer Enthusiast Supporter Citizen Patrol Fanatic,NULL,NULL,0,NULL,NULL 1472,2087489,1202864,Yearling Caucus Nice Question Famous Question,NULL,NULL,0,NULL,NULL 1473,286346,229889,Student Commentator Necromancer Critic Tumbleweed,NULL,NULL,0,NULL,NULL 1474,120097,244068,NULL,NULL,NULL,0,NULL,NULL 1475,83274,38595,Nice Answer Enlightened Popular Question Nice Question Notable Question Yearling Famous Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 1476,577649,1133491,NULL,NULL,NULL,0,NULL,NULL 1477,254060,1443717,Enthusiast Yearling Nice Question Popular Question Announcer Popular Question Revival Popular Question Popular Question Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 1478,265625,87918,Yearling Excavator Caucus Custodian Yearling Self-Learner Caucus Census Yearling Custodian Great Answer,NULL,NULL,0,NULL,NULL 1479,3508335,87918,Yearling Excavator Caucus Custodian Yearling Self-Learner Caucus Census Yearling Custodian Great Answer,NULL,NULL,0,NULL,NULL 1480,4016485,834332,NULL,NULL,NULL,0,NULL,NULL 1481,5021382,883800,NULL,NULL,NULL,0,NULL,NULL 1482,664877,234542,Popular Question Popular Question Notable Question Notable Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 1483,124728,530599,Popular Question,NULL,NULL,0,NULL,NULL 1484,16648,509700,NULL,NULL,NULL,0,NULL,NULL 1485,227089,511194,NULL,NULL,NULL,0,NULL,NULL 1486,245541,577247,NULL,NULL,NULL,0,NULL,NULL 1487,9222,1292707,Yearling Great Answer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 1488,217110,1292707,Yearling Great Answer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 1489,165449,1539711,NULL,NULL,NULL,0,NULL,NULL 1490,233438,513995,NULL,NULL,NULL,0,NULL,NULL 1491,1051266,931543,NULL,NULL,NULL,0,NULL,NULL 1492,11722,1046035,Supporter Notable Question,NULL,NULL,0,NULL,NULL 1493,1174528,1477705,Nice Question Scholar Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 1494,210608,335015,NULL,NULL,NULL,0,NULL,NULL 1495,3655290,741961,Yearling Popular Question Excavator Popular Question Notable Question Yearling Famous Question Organizer Notable Question Popular Question Custodian Census Informed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 1496,86419,256662,Notable Question Yearling Excavator Revival Famous Question Famous Question Favorite Question Nice Question Famous Question Good Question Notable Question Taxonomist Popular Question Notable Question Tenacious Famous Question Nice Question Favorite Question Notable Question Nice Question Nice Answer Famous Question Favorite Question Popular Question Popular Question Popular Question Nice Answer Nice Question Great Question Popular Question Famous Question Notable Question Popular Question Yearling Good Question Notable Question Nice Question Famous Question Popular Question Notable Question Famous Question Nice Question Popular Question Good Answer Popular Question Necromancer Popular Question Tag Editor Good Question Suffrage Vox Populi Notable Question Popular Question Popular Question Nice Question Documentation User Notable Question Revival dendrogram Notable Question Nice Question Great Question Announcer Custodian Popular Question Yearling Unsung Hero Favorite Question Revival Notable Question Nice Question Famous Question Favorite Question Great Question Famous Question Notable Question Good Question dendextend Notable Question Famous Question Nice Answer Notable Question Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1497,881408,945897,NULL,NULL,NULL,0,NULL,NULL 1498,323168,1264913,NULL,NULL,NULL,0,NULL,NULL 1499,68725,1362309,Scholar Yearling Organizer Yearling Nice Answer Student Yearling Excavator Announcer Announcer Booster Caucus Census Yearling,NULL,NULL,0,NULL,NULL 1500,111669,429544,Notable Question Necromancer Yearling Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Necromancer Notable Question Caucus Inquisitive Notable Question Documentation User Famous Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 1501,1207078,590722,NULL,NULL,NULL,0,NULL,NULL 1502,837842,31675,NULL,NULL,NULL,0,NULL,NULL 1503,159188,1005911,NULL,NULL,NULL,0,NULL,NULL 1504,66593,264712,Yearling Nice Answer Enlightened Notable Question Popular Question Popular Question Nice Answer Yearling Notable Question Popular Question Custodian Good Question Nice Answer Nice Answer Notable Question Yearling Nice Question Good Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1505,70681,1498300,NULL,NULL,NULL,0,NULL,NULL 1506,214003,1397353,NULL,NULL,NULL,0,NULL,NULL 1507,24031,79550,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 1508,569051,953732,Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Famous Question Famous Question Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Good Question Caucus Constituent Notable Question Notable Question Good Question Nice Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Famous Question Famous Question Nice Question Popular Question Notable Question Notable Question Good Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 1509,511547,735931,NULL,NULL,NULL,0,NULL,NULL 1510,435156,492863,NULL,NULL,NULL,0,NULL,NULL 1511,435150,492863,NULL,NULL,NULL,0,NULL,NULL 1512,122927,216164,Nice Answer Enlightened Good Answer Custodian Good Answer monads Informed Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Caucus Yearling Guru Nice Answer Nice Answer Caucus Nice Question Nice Answer Nice Answer Enlightened Nice Answer c Yearling Nice Answer Great Answer Nice Answer Enlightened io functional-programming Nice Answer Caucus Nice Answer Electorate Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 1513,325943,966522,NULL,NULL,NULL,0,NULL,NULL 1514,551131,37151,NULL,NULL,NULL,0,NULL,NULL 1515,344768,14157,Notable Question Revival Notable Question,NULL,NULL,0,NULL,NULL 1516,2651409,459958,NULL,NULL,NULL,0,NULL,NULL 1517,121002,459958,NULL,NULL,NULL,0,NULL,NULL 1518,319267,923258,Tumbleweed Necromancer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 1519,218387,1105714,Enthusiast Popular Question Critic Announcer,NULL,NULL,0,NULL,NULL 1520,474517,1015190,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1521,97905,77193,Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 1522,51174,105536,Notable Question Yearling Great Answer Generalist Nice Answer Nice Answer Yearling Custodian Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 1523,158342,451847,Famous Question Popular Question Caucus Popular Question Autobiographer Citizen Patrol Custodian Custodian Notable Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 1524,659318,1281487,NULL,NULL,NULL,0,NULL,NULL 1525,319380,614262,Yearling Favorite Question Famous Question Great Question Yearling Revival Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 1526,166223,661874,NULL,NULL,NULL,0,NULL,NULL 1527,70663,263467,Yearling Nice Answer Enlightened Popular Question Yearling Great Answer Good Answer Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 1528,200578,348119,NULL,NULL,NULL,0,NULL,NULL 1529,218997,130580,Popular Question Popular Question Yearling Informed Documentation Pioneer Nice Question Good Question Popular Question Nice Question Good Answer Nice Answer Enlightened ios Popular Question Nice Answer Yearling Notable Question Caucus Documentation User Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 1530,441435,1220774,NULL,NULL,NULL,0,NULL,NULL 1531,1370180,1472928,Teacher,NULL,NULL,0,NULL,NULL 1532,86665,201282,NULL,NULL,NULL,0,NULL,NULL 1533,277386,742542,NULL,NULL,NULL,0,NULL,NULL 1534,291292,1188651,NULL,NULL,NULL,0,NULL,NULL 1535,1848010,1541708,Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1536,19593,615740,Yearling Famous Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened Great Answer Notable Question,NULL,NULL,0,NULL,NULL 1537,315568,314649,Custodian Yearling Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 1538,83197,204941,Popular Question,NULL,NULL,0,NULL,NULL 1539,38538,47064,Nice Answer Nice Answer Enlightened Nice Answer Famous Question Famous Question Announcer Famous Question Nice Answer Nice Question Nice Answer Good Question Famous Question Yearling Revival Nice Question Notable Question Good Answer Good Question Notable Question Yearling Announcer Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 1540,636350,915044,Yearling Announcer Popular Question Good Answer Popular Question Notable Question Yearling Announcer Necromancer Announcer,NULL,NULL,0,NULL,NULL 1541,167460,700400,Census,NULL,NULL,0,NULL,NULL 1542,12465,143139,Popular Question Caucus Excavator Notable Question Yearling Nice Question Caucus Custodian Famous Question Yearling Good Question Caucus Necromancer Popular Question,NULL,pProviding day value of zero for the next month gives you the previous month last day ppre codevar date new DateTime 2013 print date day 28 for February code pre same is for new DateTime 2016 Dec 2015 Is it guaranteed as well,0,NULL,NULL 1543,141924,52751,Notable Question Yearling Popular Question Custodian Informed Famous Question Popular Question Good Question Famous Question Nice Answer Popular Question Notable Question Notable Question Notable Question Good Question Notable Question Yearling Famous Question Popular Question Good Question Yearling Custodian Good Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 1544,3003386,80075,Necromancer Enthusiast Yearling Custodian Custodian Civic Duty Proofreader Yearling Documentation User Census Necromancer Yearling,NULL,NULL,0,NULL,NULL 1545,301728,866153,NULL,NULL,NULL,0,NULL,NULL 1546,773491,820431,NULL,NULL,NULL,0,NULL,NULL 1547,156584,494584,Good Answer,NULL,NULL,0,NULL,NULL 1548,13893,812362,NULL,NULL,NULL,0,NULL,NULL 1549,796859,1410738,NULL,NULL,NULL,0,NULL,NULL 1550,356396,819434,NULL,NULL,NULL,0,NULL,NULL 1551,588078,1028938,NULL,NULL,NULL,0,NULL,NULL 1552,2256551,1232720,Yearling Good Question Nice Question Popular Question Good Question Notable Question Notable Question Nice Question Yearling Teacher Popular Question Popular Question Yearling Nice Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 1553,240383,1054678,NULL,NULL,NULL,0,NULL,NULL 1554,113341,440592,Notable Question,NULL,NULL,0,NULL,NULL 1555,132753,1067128,NULL,NULL,NULL,0,NULL,NULL 1556,453432,1425847,Student Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 1557,352942,791705,NULL,NULL,NULL,0,NULL,NULL 1558,656881,545509,Necromancer Popular Question Popular Question Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 1559,1895573,255640,Famous Question,NULL,NULL,0,NULL,NULL 1560,177321,566575,NULL,NULL,NULL,0,NULL,NULL 1561,64265,1267805,Yearling Supporter Favorite Question,NULL,NULL,0,NULL,NULL 1562,409737,836129,NULL,NULL,NULL,0,NULL,NULL 1563,358036,388929,Nice Answer Yearling Revival Self-Learner Necromancer Yearling Popular Question Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1564,395569,1226194,Critic Yearling Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 1565,3768954,913736,NULL,NULL,NULL,0,NULL,NULL 1566,631545,1064680,NULL,NULL,NULL,0,NULL,NULL 1567,10412,450786,Revival Editor,NULL,NULL,0,NULL,NULL 1568,528579,759637,Popular Question,NULL,NULL,0,NULL,NULL 1569,169436,725378,NULL,NULL,NULL,0,NULL,NULL 1570,290152,1300146,NULL,NULL,NULL,0,NULL,NULL 1571,1617204,994255,NULL,NULL,NULL,0,NULL,NULL 1572,264005,224771,Yearling Good Question Critic Yearling,NULL,NULL,0,NULL,NULL 1573,1371190,1161371,NULL,NULL,NULL,0,NULL,NULL 1574,41914,1161371,NULL,NULL,NULL,0,NULL,NULL 1575,136270,3916,Good Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Guru Guru Nice Answer Great Answer Great Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Good Answer Yearling Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Good Answer Guru Nice Answer Great Answer Good Answer Revival Nice Answer Revival Nice Answer Enlightened Good Answer Revival Great Answer Good Answer Nice Answer Great Answer Yearling Nice Answer Guru Guru Good Answer Great Answer Nice Answer Good Answer Necromancer Good Answer Nice Answer Enlightened jboss-arquillian Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Yearling Great Answer Announcer Guru,NULL,NULL,0,NULL,NULL 1576,2569805,740743,Supporter,NULL,NULL,0,NULL,NULL 1577,172880,823281,Nice Question Excavator Popular Question Popular Question Yearling Notable Question Popular Question Revival Popular Question Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 1578,261675,1001935,Student,NULL,NULL,0,NULL,NULL 1579,199037,523157,Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 1580,1352526,1134041,NULL,NULL,NULL,0,NULL,NULL 1581,695045,780851,NULL,NULL,NULL,0,NULL,NULL 1582,495934,267572,Notable Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 1583,462592,1255305,Tumbleweed Yearling Curious Popular Question Good Answer Necromancer,NULL,NULL,0,NULL,NULL 1584,34794,703019,Famous Question Yearling ruby-on-rails Popular Question Nice Question Guru Popular Question Guru Good Question Yearling Popular Question Necromancer Notable Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 1585,1384870,1277019,Tumbleweed,NULL,NULL,0,NULL,NULL 1586,59753,800628,NULL,NULL,NULL,0,NULL,NULL 1587,283927,35591,Yearling Necromancer,NULL,NULL,0,NULL,NULL 1588,435739,1309296,Commentator Tumbleweed Teacher Citizen Patrol Organizer Critic Caucus Constituent Census Caucus Constituent Yearling Curious Informed,NULL,NULL,0,NULL,NULL 1589,490421,1243064,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 1590,633454,865855,NULL,NULL,NULL,0,NULL,NULL 1591,437384,165787,Nice Answer Yearling Notable Question Popular Question Good Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 1592,1223023,1067667,NULL,NULL,NULL,0,NULL,NULL 1593,1401257,1039861,Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 1594,24016,1544708,Yearling Popular Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 1595,726941,455520,NULL,NULL,NULL,0,NULL,NULL 1596,104966,994408,NULL,NULL,NULL,0,NULL,NULL 1597,2298105,322806,Great Answer Nice Answer Nice Answer Good Answer Yearling Popular Question Good Answer Great Answer Nice Answer Great Answer Good Answer Populist Nice Answer Promoter Benefactor Great Answer Notable Question Great Answer Nice Answer Yearling Nice Answer Enlightened Notable Question Popular Question Documentation User Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 1598,248872,191071,Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 1599,340380,1046487,Notable Question,NULL,NULL,0,NULL,NULL 1600,113635,148606,Scholar Popular Question Populist Student Notable Question,NULL,NULL,0,NULL,NULL 1601,143128,124416,Favorite Question Civic Duty Popular Question Famous Question Yearling Popular Question Organizer Nice Question Nice Answer Necromancer Explainer Notable Question Caucus Nice Answer Revival Good Question Yearling Good Answer Documentation User Favorite Question Famous Question Nice Answer Enlightened Stellar Question Announcer Custodian Revival Popular Question Nice Answer Nice Answer Enlightened Yearling Popular Question Self-Learner Necromancer Announcer,NULL,NULL,0,NULL,NULL 1602,251313,141243,Announcer Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 1603,135929,594391,NULL,NULL,NULL,0,NULL,NULL 1604,607911,1218859,Popular Question Popular Question Nice Question Notable Question Census,NULL,NULL,0,NULL,NULL 1605,718357,414707,Yearling Fanatic Excavator,NULL,NULL,0,NULL,NULL 1606,984032,508745,Good Answer Revival Yearling Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 1607,907179,1283879,Notable Question,NULL,NULL,0,NULL,NULL 1608,427211,589373,NULL,NULL,NULL,0,NULL,NULL 1609,61275,230614,Famous Question Famous Question Yearling Necromancer Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 1610,341111,618073,NULL,NULL,NULL,0,NULL,NULL 1611,539013,83099,Notable Question,NULL,NULL,0,NULL,NULL 1612,2068262,521364,Nice Question Popular Question Necromancer unity3d Caucus Constituent Yearling c# Good Answer Good Answer Nice Answer Necromancer Populist Documentation User Revival Great Answer Yearling Good Question Nice Answer Enlightened Great Answer Taxonomist Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 1613,4461307,178623,Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1614,98062,1070004,Revival,NULL,NULL,0,NULL,NULL 1615,156759,40569,Yearling Nice Question Yearling Good Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 1616,290608,848651,NULL,NULL,NULL,0,NULL,NULL 1617,63998,82207,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 1618,69369,1554581,NULL,NULL,NULL,0,NULL,NULL 1619,470467,840015,Popular Question,NULL,NULL,0,NULL,NULL 1620,130635,757144,Editor,NULL,NULL,0,NULL,NULL 1621,174446,1377515,NULL,NULL,NULL,0,NULL,NULL 1622,218042,328090,NULL,NULL,NULL,0,NULL,NULL 1623,3623640,328090,NULL,NULL,NULL,0,NULL,NULL 1624,132646,955283,NULL,NULL,NULL,0,NULL,NULL 1625,396254,771453,Guru Yearling Popular Question Notable Question Good Question Yearling Popular Question Popular Question Popular Question Peer Pressure Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 1626,929195,1331841,NULL,NULL,NULL,0,NULL,NULL 1627,180685,977446,NULL,NULL,NULL,0,NULL,NULL 1628,792,17865,Yearling Nice Question Famous Question Famous Question Popular Question Notable Question Yearling Good Question Famous Question Yearling Great Question Nice Question,NULL,NULL,0,NULL,NULL 1629,271205,362721,Notable Question Notable Question Popular Question Popular Question Famous Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 1630,1874041,267782,Editor Critic,NULL,NULL,0,NULL,NULL 1631,74311,267782,Editor Critic,NULL,NULL,0,NULL,NULL 1632,925444,468487,Popular Question,NULL,NULL,0,NULL,NULL 1633,228986,516267,NULL,NULL,NULL,0,NULL,NULL 1634,2207445,516267,NULL,NULL,NULL,0,NULL,NULL 1635,637901,600471,Student Popular Question,NULL,NULL,0,NULL,NULL 1636,128840,286123,NULL,NULL,NULL,0,NULL,NULL 1637,813314,462882,NULL,NULL,NULL,0,NULL,NULL 1638,96703,1436226,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1639,391550,455087,Popular Question,NULL,NULL,0,NULL,NULL 1640,261625,936795,NULL,NULL,NULL,0,NULL,NULL 1641,266195,1180439,NULL,NULL,NULL,0,NULL,NULL 1642,152316,792883,Curious Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1643,32417,1178637,NULL,NULL,NULL,0,NULL,NULL 1644,165987,182153,Popular Question Informed Custodian Yearling Popular Question Revival Popular Question Notable Question Yearling Notable Question Custodian Nice Question Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1645,41453,235002,Great Question Yearling Yearling Stellar Question Good Question,NULL,NULL,0,NULL,NULL 1646,16515,1172228,Necromancer Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 1647,74495,418654,Enthusiast Critic Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1648,1587418,418654,Enthusiast Critic Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1649,65455,107622,Curious Yearling Popular Question,NULL,NULL,0,NULL,NULL 1650,1230691,888329,NULL,NULL,NULL,0,NULL,NULL 1651,10648756,228067,Tumbleweed Scholar Yearling Revival Yearling Good Answer Caucus Yearling Custodian Custodian Custodian Revival,NULL,NULL,0,NULL,NULL 1652,47349,228067,Tumbleweed Scholar Yearling Revival Yearling Good Answer Caucus Yearling Custodian Custodian Custodian Revival,NULL,NULL,0,NULL,NULL 1653,515432,355148,NULL,NULL,NULL,0,NULL,NULL 1654,127322,1108831,NULL,NULL,NULL,0,NULL,NULL 1655,396745,1033257,NULL,NULL,NULL,0,NULL,NULL 1656,84108,717461,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 1657,442365,195579,Notable Question Popular Question Yearling Famous Question Favorite Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1658,393161,677224,NULL,NULL,NULL,0,NULL,NULL 1659,339670,159972,Caucus Scholar Notable Question Caucus Caucus Constituent Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1660,672212,354021,Popular Question,NULL,NULL,0,NULL,NULL 1661,3140876,354021,Popular Question,NULL,NULL,0,NULL,NULL 1662,46065,1058702,NULL,NULL,NULL,0,NULL,NULL 1663,3069308,1234511,Editor,NULL,NULL,0,NULL,NULL 1664,1088782,1519659,NULL,NULL,NULL,0,NULL,NULL 1665,1137235,1519659,NULL,NULL,NULL,0,NULL,NULL 1666,509733,603315,NULL,NULL,NULL,0,NULL,NULL 1667,3003460,567114,Notable Question,NULL,NULL,0,NULL,NULL 1668,991737,567114,Notable Question,NULL,NULL,0,NULL,NULL 1669,7015946,687935,NULL,NULL,NULL,0,NULL,NULL 1670,261539,540085,NULL,NULL,NULL,0,NULL,NULL 1671,103558,1302022,NULL,NULL,NULL,0,NULL,NULL 1672,284605,1234290,NULL,NULL,NULL,0,NULL,NULL 1673,282839,827938,NULL,NULL,NULL,0,NULL,NULL 1674,332898,842075,Yearling Nice Answer Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Popular Question symfony Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Caucus Guru Good Answer Great Answer Census Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1675,247754,1082467,NULL,NULL,NULL,0,NULL,NULL 1676,408951,413746,Supporter,NULL,NULL,0,NULL,NULL 1677,648253,432505,Popular Question,NULL,NULL,0,NULL,NULL 1678,206862,588561,Yearling Citizen Patrol Necromancer Announcer Necromancer Necromancer Yearling Necromancer Scholar Necromancer Yearling Announcer Nice Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 1679,30191,1017515,NULL,NULL,NULL,0,NULL,NULL 1680,110587,1048572,Nice Answer Enlightened node.js Good Answer Announcer Guru Nice Answer Announcer Nice Answer Nice Answer Enlightened Great Question Nice Answer Enlightened Nice Answer Enlightened Great Question Nice Answer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened q Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer ecmascript-6 Announcer Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer babeljs Enlightened Announcer Good Answer Announcer Good Answer deferred Nice Answer Nice Answer Necromancer Good Answer Good Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Necromancer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Booster Great Answer Nice Answer Guru Good Answer Popular Question Nice Answer Nice Answer Good Answer Nice Answer Great Answer Good Answer Announcer Nice Answer Announcer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Announcer Announcer Nice Answer Nice Answer Great Answer Good Answer Nice Answer java Guru object Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened scope javascript-objects Nice Answer Enlightened date Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Enlightened for-loop Stellar Question Nice Answer Enlightened Nice Answer Nice Answer ecmascript-next ecmascript-harmony Guru Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened generator Nice Answer module Good Answer Good Answer async-await Announcer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer es6-promise Nice Answer Enlightened Nice Answer Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Question Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru angularjs Guru Announcer Good Question Great Answer Good Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Announcer Caucus Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Yearling Good Answer Nice Answer Constituent bluebird Announcer Good Answer Good Answer Announcer Nice Answer Enlightened reactjs Guru Guru Great Answer Guru if-statement Guru Guru Announcer Good Answer Nice Answer this Good Answer Guru Nice Answer Good Answer Announcer Announcer Nice Answer Good Answer Guru Nice Answer Enlightened typescript Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Announcer Good Answer Nice Answer prototype Nice Answer Enlightened Nice Answer Announcer Nice Answer Necromancer Nice Answer Enlightened Good Answer mediawiki asynchronous Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer function Nice Answer Enlightened Nice Answer Guru Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Good Answer Nice Answer Nice Answer arrays Announcer Nice Answer Enlightened Guru Nice Answer Announcer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened es6-modules Nice Answer Nice Answer Enlightened Generalist Guru Nice Answer Great Answer Good Answer Great Answer Guru Nice Answer Announcer Announcer Guru Announcer Good Answer Guru Notable Question Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Good Answer Announcer Marshal design-patterns Announcer Nice Answer Enlightened Nice Answer Nice Answer Revival Nice Answer Announcer Nice Answer Good Answer Guru Announcer Announcer Announcer Guru Announcer Announcer Good Answer Announcer Great Answer Announcer Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Announcer Announcer Good Answer Announcer Nice Answer Announcer Announcer Good Answer Announcer Good Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer es6-class Announcer Announcer Announcer Good Answer async-await Announcer Nice Answer Nice Answer Enlightened Announcer Booster Nice Answer Enlightened Guru settimeout Announcer Announcer Nice Answer Enlightened Announcer Publicist Good Answer Great Answer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Guru Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Announcer Announcer Announcer Caucus Famous Question Announcer Announcer Great Answer Announcer Nice Answer Enlightened Announcer Booster Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Great Answer Announcer Announcer Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Announcer Booster Announcer Good Answer Announcer Announcer Announcer Announcer Announcer Enlightened Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Announcer Announcer Announcer Nice Answer Enlightened Great Answer Booster Announcer Announcer Nice Answer Announcer Guru Announcer Announcer Announcer Peer Pressure ecmascript-2017 Nice Answer Enlightened Nice Answer Announcer Booster Announcer Nice Answer Nice Answer Announcer Good Answer Great Answer Nice Answer Enlightened Good Answer Guru Booster Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Booster Announcer Announcer Announcer Announcer Announcer Nice Answer Nice Answer Announcer Booster Announcer Announcer Good Answer Booster Booster Announcer Great Answer Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Reversal Announcer Documentation User Guru Announcer Announcer Nice Answer Announcer Good Answer Announcer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Good Answer Good Answer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Revival Guru Good Answer Announcer Announcer Great Answer Announcer Good Answer Nice Answer Enlightened Booster prototypal-inheritance Nice Answer Popular Question Announcer Announcer Announcer Yearling Nice Answer Enlightened Announcer Announcer Booster Announcer Announcer Announcer Announcer Booster loops Good Answer Nice Answer Enlightened Good Answer Announcer Guru Announcer Great Answer Announcer Good Answer Nice Answer Enlightened Announcer Great Answer Stellar Question Announcer Announcer Nice Answer Announcer Announcer Nice Answer destructuring Nice Answer Enlightened Announcer Announcer Announcer Good Answer Announcer Announcer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Announcer Announcer Nice Answer Enlightened Good Answer Booster Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Announcer Good Answer Announcer Good Answer Announcer Announcer Great Answer Booster Nice Answer Announcer Announcer Good Answer Good Answer Announcer Booster Good Answer Guru Announcer Enlightened Good Answer Booster Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Good Answer Good Answer Booster Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer sorting Good Answer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Announcer Publicist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Booster Nice Answer Nice Answer Announcer Announcer Good Answer Booster Good Answer Announcer Good Answer Good Answer Nice Answer Guru Nice Answer Guru Enlightened Good Answer Publicist Announcer Great Answer Caucus Guru Announcer Announcer Announcer Announcer Announcer Good Answer Great Answer Announcer Announcer Announcer Constituent Nice Answer Booster class Good Answer Nice Answer Good Answer Announcer Nice Answer Announcer Nice Answer Booster Announcer Good Answer Announcer Announcer Nice Answer Announcer Booster Announcer Announcer Booster Publicist Announcer Booster Booster Guru Nice Answer Publicist Nice Answer Announcer Nice Answer Enlightened Announcer Announcer Booster Announcer Nice Answer Announcer Booster Good Answer Nice Answer Good Answer Enlightened Good Answer Announcer Nice Answer Enlightened functional-programming ajax Booster Announcer Guru Publicist es6-promise Announcer Announcer Good Answer arrow-functions Good Answer Nice Answer Announcer Guru Nice Question Guru Enlightened Booster Nice Answer Good Answer Announcer Announcer Nice Answer Enlightened Booster performance Announcer try-catch Nice Answer Nice Answer Enlightened Guru Publicist Nice Answer Good Answer Announcer Announcer Guru Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Booster Necromancer Good Answer Guru Announcer Announcer Booster Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened Booster Nice Answer Announcer Good Answer Nice Answer Enlightened Guru Booster Good Answer Publicist Booster Necromancer Nice Answer Announcer Nice Answer express Good Answer Nice Answer Good Answer Announcer Announcer Booster Nice Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Booster Guru Announcer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Booster Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Announcer Good Answer Good Answer Good Answer Nice Answer Announcer Announcer Booster Enlightened Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer v8 Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Good Answer Publicist Booster Booster Booster Announcer Booster Guru Announcer Booster variables Guru Booster Announcer Announcer Nice Answer Enlightened Booster Nice Answer Good Answer Good Answer Booster Booster Nice Answer Booster Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Good Answer fetch-api Nice Answer Announcer Good Answer,NULL,pSince ES6 there is the native href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array find codefind code method for arrays phrpI have to post an answer to stop these codefilter code suggestions pblockquote psince there are so many functional style array methods in ECMAScript perhaps there something out there already like this blockquotepYou can use the href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array some codesome code Array method to iterate the array until condition is met and then stop Unfortunately it will only return whether the condition was met once not by which element or at what index it was met So we have to amend it little ppre codefunction find arr test ctx var result null arr some function el return test call ctx el arr result el true false return result code pre No See Mark Amery answer below pSince ES6 there is the native href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array find codefind code method for arrays phrpI have to post an answer to stop these codefilter code suggestions pblockquote psince there are so many functional style array methods in ECMAScript perhaps there something out there already like this blockquotepYou can use the href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array some codesome code Array method to iterate the array until condition is met and then stop Unfortunately it will only return whether the condition was met once not by which element or at what index it was met So we have to amend it little ppre codefunction find arr test ctx var result null arr some function el return test call ctx el arr result el true false return result code pre Did you notice the first line of my answer pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre What the difference between regular push and an Array prototype push apply http stackoverflow com 35638511 1048572 See also this answer http stackoverflow com 1374131 1048572 and read the MDN docs on apply https developer mozilla org en US docs Web JavaScript Reference Global Objects Function apply pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre Actually is always an array if the if condition is met because fn always returns an array We use push apply here to append multiple items at once to the res array like res res concat would but without creating new array pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre No now you are confusing the two concat works for arrays that are spread and any other values that are appended as is push apply throws an error with non array like values pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre Yes we could do res push pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre Just replace the has check by whatever you want to test pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre Does work with the examples as given in the question Would be good if you had posted how you called it and what error you got pThis should do it ppre codefunction fn obj key if has obj key or just key in obj return obj elegant return flatten map obj function return typeof object fn key true or efficient var res forEach obj function if typeof object amp amp fn key length res push apply res return res code pre You still haven told me what the error was but maybe you forgot to load lodash blockquote pIs this just syntactic sugar for ES6 blockquotepNo it more than syntactic sugar The gory details are buried in href http www ecma international org ecma 262 sec createperiterationenvironment rel noreferrer §13 9codeCreatePerIterationEnvironment code pblockquote pHow is this working blockquotepIf you use that codelet code keyword in the codefor code statement it will check what names it does bind and then pullicreate new lexical environment with those names for the initialiser expression each iteration previosly to evaluating the increment expression lilicopy the values from all variables with those names from one to the next environment li ulpYour loop statement codefor var lt 10 process nextTick gt console log code desugars to simple ppre code omitting braces when they don introduce blockvar if lt 10 process nextTick gt console log if lt 10 process nextTick gt console log code prepwhile codefor let lt 10 process nextTick gt console log code does desugar to the much more complicated ppre code using braces to explicitly denote block scopes using indentation for control flow let status let status if lt 10 process nextTick gt console log status let status if lt 10 process nextTick gt console log status let status code pre akis which context do you mean blockquote pIs this just syntactic sugar for ES6 blockquotepNo it more than syntactic sugar The gory details are buried in href http www ecma international org ecma 262 sec createperiterationenvironment rel noreferrer §13 9codeCreatePerIterationEnvironment code pblockquote pHow is this working blockquotepIf you use that codelet code keyword in the codefor code statement it will check what names it does bind and then pullicreate new lexical environment with those names for the initialiser expression each iteration previosly to evaluating the increment expression lilicopy the values from all variables with those names from one to the next environment li ulpYour loop statement codefor var lt 10 process nextTick gt console log code desugars to simple ppre code omitting braces when they don introduce blockvar if lt 10 process nextTick gt console log if lt 10 process nextTick gt console log code prepwhile codefor let lt 10 process nextTick gt console log code does desugar to the much more complicated ppre code using braces to explicitly denote block scopes using indentation for control flow let status let status if lt 10 process nextTick gt console log status let status if lt 10 process nextTick gt console log status let status code pre It just scope that contains one variable It is referenced by the closure and it references the scope in which the loop was contained in as its outer link blockquote pIs this just syntactic sugar for ES6 blockquotepNo it more than syntactic sugar The gory details are buried in href http www ecma international org ecma 262 sec createperiterationenvironment rel noreferrer §13 9codeCreatePerIterationEnvironment code pblockquote pHow is this working blockquotepIf you use that codelet code keyword in the codefor code statement it will check what names it does bind and then pullicreate new lexical environment with those names for the initialiser expression each iteration previosly to evaluating the increment expression lilicopy the values from all variables with those names from one to the next environment li ulpYour loop statement codefor var lt 10 process nextTick gt console log code desugars to simple ppre code omitting braces when they don introduce blockvar if lt 10 process nextTick gt console log if lt 10 process nextTick gt console log code prepwhile codefor let lt 10 process nextTick gt console log code does desugar to the much more complicated ppre code using braces to explicitly denote block scopes using indentation for control flow let status let status if lt 10 process nextTick gt console log status let status if lt 10 process nextTick gt console log status let status code pre status is part of the loop context state in my syntax denoted by an object that is used to transport the current value of the block declared variable in the loop header from one scope to the next Yes each iteration creates new scope with new variable This does not depend on the statements in the block like the process nextTick call though pThis should do it ppre codefunction absolute base relative var stack base split parts relative split stack pop remove current file name or empty string omit if base is the current folder without trailing slash for var lt parts length if parts continue if parts stack pop else stack push parts return stack join code pre typically means something else than base And it not exactly relative path If you need help with paths containing tilde please ask new question http stackoverflow com questions ask pThis should do it ppre codefunction absolute base relative var stack base split parts relative split stack pop remove current file name or empty string omit if base is the current folder without trailing slash for var lt parts length if parts continue if parts stack pop else stack push parts return stack join code pre Correct however path starting with is not relative My function only considers paths not URIs My function somehow doesn’t have access to its parent closure is missing variables How javascript scope requirejs closures scope chain pIn my top level function I’m importing some dependencies using require js And they’re there no problem Within this function define callback function and attempt to use some of the variables imported via require js that is variables within the parent closure ppAnd they just aren’t there as confirmed by breakpoint and peek at the Chrome inspector’s Scope Variables panel ppI understand that codefn apply code and friends only set the context as far as codethis code goes not that they can destroy reference to closure or alter the scope chain ppre class lang js prettyprint override codedefine backbone backbone vent app utils foo app services intent function Backbone Vent Foo use strict Backbone Vent and Foo are defined here Vent on myevent function options Backbone is defined here but not Vent or Foo code prepHow is this even possible ppAnd how can fix it possible duplicate of garbage collection with node js http stackoverflow com questions 5326300 garbage collection with node js See also here http stackoverflow com 5368048 1048572 and there http stackoverflow com 8665781 1048572 pHere my much shorter implementation ppre codeObject unflatten function data use strict if Object data data Array isArray data return data var regex resultholder for var in data var cur resultholder prop while regex exec cur cur prop cur prop prop cur prop data return resultholder resultholder code prep codeflatten code hasn changed much and not sure whether you really need those codeisEmpty code cases ppre codeObject flatten function data var result function recurse cur prop if Object cur cur result prop cur else if Array isArray cur for var cur length lt recurse cur prop if result prop else var isEmpty true for var in cur isEmpty false recurse cur prop prop if isEmpty amp amp prop result prop recurse data return result code prepTogether they href http jsfiddle net WSzec rel noreferrer run your benchmark in about the half of the time Opera 12 16 900ms instead of 1900ms Chrome 29 800ms instead of 1600ms True just carelessly copied that over from the OP Would the Object namespace fit better pHere my much shorter implementation ppre codeObject unflatten function data use strict if Object data data Array isArray data return data var regex resultholder for var in data var cur resultholder prop while regex exec cur cur prop cur prop prop cur prop data return resultholder resultholder code prep codeflatten code hasn changed much and not sure whether you really need those codeisEmpty code cases ppre codeObject flatten function data var result function recurse cur prop if Object cur cur result prop cur else if Array isArray cur for var cur length lt recurse cur prop if result prop else var isEmpty true for var in cur isEmpty false recurse cur prop prop if isEmpty amp amp prop result prop recurse data return result code prepTogether they href http jsfiddle net WSzec rel noreferrer run your benchmark in about the half of the time Opera 12 16 900ms instead of 1900ms Chrome 29 800ms instead of 1600ms Thanks for the ideas but this should not be an edit Please post your own answer with the faster solution and notice that Map weren thing in 2013 blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre Yes exactly that what meant by an iterable of asynchronous functions blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre It exactly as the then sequence the return value is the promise for the last fn result and you can chain other callbacks to that blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre objects reduce then fn Promise resolve blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre That exactly equivalent to fn1 then p2 then fn3 catch No need to use function expression blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre Of course the retValFromF1 is passed into p2 that exactly what p2 does Sure if you want to do more pass additional variables call multiple functions etc you need to use function expression though changing p2 in the array would be easier blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre Yes meant that iterable is the fn1 fn2 fn3 array blockquote pIs codePromise all iterable code executing all promises blockquotepNo promises cannot be executed They start their task when they are being emcreated em they represent the results only and emyou em are executing everything in parallel even before passing them to codePromise all code pp codePromise all code does only emawait em multiple promises It doesn care in what order they resolve or whether the computations are running in parallel pblockquote pis there convenient way to run an iterable sequencially blockquotepIf you already have your promises you can do much but codePromise all p1 p2 p3 code which does not have notion of sequence But if you do have an iterable of asynchronous functions you can indeed run them sequentially Basically you need to get from ppre code fn1 fn2 fn3 code prepto ppre codefn1 then fn2 then fn3 then code prepand the solution to do that is using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array Reduce rel noreferrer codeArray reduce code ppre codeiterable reduce fn gt then fn Promise resolve code pre Yes they re asynchronous functions h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre Yes Bluebird http bluebirdjs com docs api spread html but also https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected when https github com cujojs when blob master docs api md promisespread and other major promise libs implement it It becoming less important with destructuring in ES6 h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre What is in loop This questions and all the answers assume that you have fixed number of promises whose results you want to access individually If you re working with arrays of arbitrary size use the result array that Promise all generates h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre You might want to ask separate question https stackoverflow com questions ask and include your code there But in general when you don know how many elements you will have use arrays h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre Never said it was This answer was written in the ES5 age where no promises were in the standard at all and spread was super useful in this pattern For more modern solutions see the accepted answer However already updated the explicit passthrough answer https stackoverflow com 28250693 1048572 and there really no good reason not to update this one as well h1ECMAScript Harmony h1pOf course this problem was recognized by the language designers as well They did lot of work and the href http tc39 github io ecmascript asyncawait rel noreferrer async functions proposal finally made it into ph2ECMAScript h2pYou don need single codethen code invocation or callback function any more as in an asynchronous function that returns promise when being called you can simply wait for promises to resolve directly It also features arbitrary control structures like conditions loops and try catch clauses but for the sake of convenience we don need them here ppre codeasync function getExample var resultA await promiseA some processing var resultB await promiseB more processing return something using both resultA and resultB code preh2ECMAScript h2pWhile we were waiting for ES8 we already did use very similar kind of syntax ES6 came with href http davidwalsh name es6 generators rel noreferrer generator functions which allow to break the execution apart in pieces at arbitrarily placed codeyield code keywords Those slices can be run after each other independently even asynchronously and that just what we do when we want to wait for promise resolution before running the next step ppThere are dedicated libraries like href https github com tj co rel noreferrer co or href http taskjs org rel noreferrer task js but also many promise libraries have helper functions href https github com kriskowal wiki API Reference generators rel noreferrer href http bluebirdjs com docs api generators html rel noreferrer Bluebird href https github com cujojs when blob master docs api md es6 generators rel noreferrer when that do href https stackoverflow com 23554399 1048572 this async step by step execution for you when you give them generator function that yields promises ppre codevar getExample Promise coroutine function Bluebird syntax var resultA yield promiseA some processing var resultB yield promiseB more processing return something using both resultA and resultB code prepThis did work in Node js since version also few browsers or their dev editions did support generator syntax relatively early ph2ECMAScript h2pHowever if you want need to be backwards compatible you cannot use those without transpiler Both generator functions and async functions are supported by the current tooling see for example the documentation of Babel on href http babeljs io learn es2015 ecmascript 2015 features generators rel noreferrer generators and href http babeljs io docs plugins syntax async functions rel noreferrer async functions ppAnd then there are also many other href https github com jashkenas coffeescript wiki List of languages that compile to JS synchronous to asynchronous javascript compilers cps rel noreferrer compile to JS languages athat are dedicated to easing asynchronous programming They usually use syntax similar to codeawait code href http maxtaco github io coffee script rel noreferrer Iced CoffeeScript but there are also others that feature Haskell,,, like codedo code notation href http lattejs com rel noreferrer LatteJs href https www npmjs com package monadic rel noreferrer monadic href http www purescript org rel noreferrer PureScript or href http lispyscript com rel noreferrer LispyScript posted the whole discussion on purpose as canonical duplicate target h1ECMAScript Harmony h1pOf course this problem was recognized by the language designers as well They did lot of work and the href http tc39 github io ecmascript asyncawait rel noreferrer async functions proposal finally made it into ph2ECMAScript h2pYou don need single codethen code invocation or callback function any more as in an asynchronous function that returns promise when being called you can simply wait for promises to resolve directly It also features arbitrary control structures like conditions loops and try catch clauses but for the sake of convenience we don need them here ppre codeasync function getExample var resultA await promiseA some processing var resultB await promiseB more processing return something using both resultA and resultB code preh2ECMAScript h2pWhile we were waiting for ES8 we already did use very similar kind of syntax ES6 came with href http davidwalsh name es6 generators rel noreferrer generator functions which allow to break the execution apart in pieces at arbitrarily placed codeyield code keywords Those slices can be run after each other independently even asynchronously and that just what we do when we want to wait for promise resolution before running the next step ppThere are dedicated libraries like href https github com tj co rel noreferrer co or href http taskjs org rel noreferrer task js but also many promise libraries have helper functions href https github com kriskowal wiki API Reference generators rel noreferrer href http bluebirdjs com docs api generators html rel noreferrer Bluebird href https github com cujojs when blob master docs api md es6 generators rel noreferrer when that do href https stackoverflow com 23554399 1048572 this async step by step execution for you when you give them generator function that yields promises ppre codevar getExample Promise coroutine function Bluebird syntax var resultA yield promiseA some processing var resultB yield promiseB more processing return something using both resultA and resultB code prepThis did work in Node js since version also few browsers or their dev editions did support generator syntax relatively early ph2ECMAScript h2pHowever if you want need to be backwards compatible you cannot use those without transpiler Both generator functions and async functions are supported by the current tooling see for example the documentation of Babel on href http babeljs io learn es2015 ecmascript 2015 features generators rel noreferrer generators and href http babeljs io docs plugins syntax async functions rel noreferrer async functions ppAnd then there are also many other href https github com jashkenas coffeescript wiki List of languages that compile to JS synchronous to asynchronous javascript compilers cps rel noreferrer compile to JS languages athat are dedicated to easing asynchronous programming They usually use syntax similar to codeawait code href http maxtaco github io coffee script rel noreferrer Iced CoffeeScript but there are also others that feature Haskell like codedo code notation href http lattejs com rel noreferrer LatteJs href https www npmjs com package monadic rel noreferrer monadic href http www purescript org rel noreferrer PureScript or href http lispyscript com rel noreferrer LispyScript You can do it manually without any helper function but that is always laborious and error prone can absolutely not recommend it But unless you cannot use transpiler you be using async await anyway Why did making Haskell lazy have an impact on performance performance haskell lazy evaluation pIn href https yow eventer com yow 2011 1004 escape from the ivory tower the haskell journey from 1990 to 2011 by simon peyton jones 1054 this video Escape from the Ivory Tower The Haskell Journey href http research microsoft com en us people simonpj Simon Peyton Jones says that making Haskell Lazy helped them with resource constraints on the machines they had at the time It also led to whole lot of other benefits with laziness ppThen he said that the challenge they have now is that laziness impacts on performance ppMy question is strongWhy did making Haskell lazy have an impact on performance strong https wiki haskell org Foldr Foldl Foldl should give you some insights pThey are not part of the specification nor is there standard way of accessing them that you could use to get the internal state of the promise to construct polyfill However you can convert any standard promise into one that has these values by creating wrapper ppre codefunction MakeQuerablePromise promise Don create wrapper for promises that can already be queried if promise isResolved return promise var isResolved false var isRejected false Observe the promise saving the fulfillment in closure scope var result promise then function isResolved true return function isRejected true throw result isFulfilled function return isResolved isRejected result isResolved function return isResolved result isRejected function return isRejected return result code prepThis doesn affect all promises as modifying the prototype would but it does allow you to convert promise into promise that exposes it state Indeed your terminology http stackoverflow com 29268569 1048572 seems to be messed up You should use isSettled isFulfilled and isRejected pYour codesleep code function does not work because codesetTimeout code does not yet return promise that could be codeawait codeed You will need to promisify it manually ppre codefunction timeout ms return new Promise resolve gt setTimeout resolve ms async function sleep fn args await timeout 3000 return fn args code prepBtw to slow down your loop you probably don want to use codesleep code function that takes callback and defers it like this rather recommend to do something like ppre codewhile goOn other code var parents await Promise all listFiles nextPageToken then requestParents timeout 5000 other code code prepwhich lets the computation of codeparents code take at least seconds It array destructuring https stackoverflow com 3986348 1048572 pYour codesleep code function does not work because codesetTimeout code does not yet return promise that could be codeawait codeed You will need to promisify it manually ppre codefunction timeout ms return new Promise resolve gt setTimeout resolve ms async function sleep fn args await timeout 3000 return fn args code prepBtw to slow down your loop you probably don want to use codesleep code function that takes callback and defers it like this rather recommend to do something like ppre codewhile goOn other code var parents await Promise all listFiles nextPageToken then requestParents timeout 5000 other code code prepwhich lets the computation of codeparents code take at least seconds timeout needs to be declared async if it needs to be awaited https stackoverflow com review suggested edits 18044022 Nope function only needs to return promise that can be awaited or actually thenable is enough How it achieves that is up to the implementation of the function it does not need to be an async function pYour codesleep code function does not work because codesetTimeout code does not yet return promise that could be codeawait codeed You will need to promisify it manually ppre codefunction timeout ms return new Promise resolve gt setTimeout resolve ms async function sleep fn args await timeout 3000 return fn args code prepBtw to slow down your loop you probably don want to use codesleep code function that takes callback and defers it like this rather recommend to do something like ppre codewhile goOn other code var parents await Promise all listFiles nextPageToken then requestParents timeout 5000 other code code prepwhich lets the computation of codeparents code take at least seconds No async await is based on promises The only thing it replaces are then calls pThe codesuper code call will invoke the codeFunction code constructor which expects code string If you want to access your instance data you could just hardcode it ppre codeclass Smth extends Function constructor super return JSON stringify code prepbut that not really satisfying We want to use closure ppHaving the returned function be closure that href https stackoverflow com 20279484 1048572 can access your instance variables is possible but not easy The good thing is that you don have to call codesuper code if you don want to you still can codereturn code arbitrary objects from your ES6 class constructors In this case we do ppre codeclass Smth extends Function constructor refer to smth instead of this function smth return Object setPrototypeOf smth Smth prototype return smth code prepBut we can do even better and abstract this thing out of codeSmth code ppre codeclass ExtensibleFunction extends Function constructor return Object setPrototypeOf new target prototype class Smth extends ExtensibleFunction constructor super function return closure console log this function return console log this prototype constructor class Anth extends ExtensibleFunction constructor super gt return this arrow function no prototype object created this class Evth extends ExtensibleFunction constructor super function return named function this code prepAdmittedly this creates an additional level of indirection in the inheritance chain but that not necessarily bad thing you can extend it instead of the native codeFunction code If you want to avoid it use ppre codefunction ExtensibleFunction return Object setPrototypeOf new target prototype ExtensibleFunction prototype Function prototype code prepbut notice that codeSmth code will not dynamically inherit static codeFunction code properties Mara You don get around mutating the prototype of the function if you want your Smth instances to be instanceof Smth as everyone would expect You can omit the Object setPrototypeOf call if you don need this or any of your prototype methods declared in your class pThe codesuper code call will invoke the codeFunction code constructor which expects code string If you want to access your instance data you could just hardcode it ppre codeclass Smth extends Function constructor super return JSON stringify code prepbut that not really satisfying We want to use closure ppHaving the returned function be closure that href https stackoverflow com 20279484 1048572 can access your instance variables is possible but not easy The good thing is that you don have to call codesuper code if you don want to you still can codereturn code arbitrary objects from your ES6 class constructors In this case we do ppre codeclass Smth extends Function constructor refer to smth instead of this function smth return Object setPrototypeOf smth Smth prototype return smth code prepBut we can do even better and abstract this thing out of codeSmth code ppre codeclass ExtensibleFunction extends Function constructor return Object setPrototypeOf new target prototype class Smth extends ExtensibleFunction constructor super function return closure console log this function return console log this prototype constructor class Anth extends ExtensibleFunction constructor super gt return this arrow function no prototype object created this class Evth extends ExtensibleFunction constructor super function return named function this code prepAdmittedly this creates an additional level of indirection in the inheritance chain but that not necessarily bad thing you can extend it instead of the native codeFunction code If you want to avoid it use ppre codefunction ExtensibleFunction return Object setPrototypeOf new target prototype ExtensibleFunction prototype Function prototype code prepbut notice that codeSmth code will not dynamically inherit static codeFunction code properties Mara Also Object setPrototypeOf is not that much of an optimisation hazard as long it is done right after creating the object It just if you mutate the prototype of an object back and forth during its lifetime that it will be bad pThe codesuper code call will invoke the codeFunction code constructor which expects code string If you want to access your instance data you could just hardcode it ppre codeclass Smth extends Function constructor super return JSON stringify code prepbut that not really satisfying We want to use closure ppHaving the returned function be closure that href https stackoverflow com 20279484 1048572 can access your instance variables is possible but not easy The good thing is that you don have to call codesuper code if you don want to you still can codereturn code arbitrary objects from your ES6 class constructors In this case we do ppre codeclass Smth extends Function constructor refer to smth instead of this function smth return Object setPrototypeOf smth Smth prototype return smth code prepBut we can do even better and abstract this thing out of codeSmth code ppre codeclass ExtensibleFunction extends Function constructor return Object setPrototypeOf new target prototype class Smth extends ExtensibleFunction constructor super function return closure console log this function return console log this prototype constructor class Anth extends ExtensibleFunction constructor super gt return this arrow function no prototype object created this class Evth extends ExtensibleFunction constructor super function return named function this code prepAdmittedly this creates an additional level of indirection in the inheritance chain but that not necessarily bad thing you can extend it instead of the native codeFunction code If you want to avoid it use ppre codefunction ExtensibleFunction return Object setPrototypeOf new target prototype ExtensibleFunction prototype Function prototype code prepbut notice that codeSmth code will not dynamically inherit static codeFunction code properties Oh my of course Thanks for hint fixed it What does the symbol do in javascript imports javascript pFor example ppre codeimport Component from components component code prepIn the code looking at it behaves like code code going up one level in the directory relative to the file path but like to know more generally what it does Unfortunately can find any documentation online due to the symbol searching problem Possible duplicate of Use of symbol in Node module names http stackoverflow com 36293481 1048572 pYou are missing the padding in the hex conversion You ll want to use ppre codefunction toHexString byteArray return Array from byteArray function byte return byte amp 0xFF toString 16 slice join code prepso that each byte transforms to exactly two hex digits Your expected output would be code04812d7e3a9829e5d51bdd64ceb35df060699bc1309731bd6e6f1a5443a7f9ce0af4382fcfd6f5f8a08bb2619709c2d49fb771601770f2c267985af2754e1f8cf9 code Ah right Fixed pTry this non destructive and href http jsperf com random elements from array rel noreferrer fast function ppre codefunction getRandom arr var result new Array len arr length taken new Array len if gt len throw new RangeError getRandom more elements taken than available while var Math floor Math random len result arr in taken taken taken len in taken taken len len return result code pre 朕會功夫 Ah clever that works much better for small samples from large ranges indeed Especially with using an ES6 Set which wasn available in 13 pTry this non destructive and href http jsperf com random elements from array rel noreferrer fast function ppre codefunction getRandom arr var result new Array len arr length taken new Array len if gt len throw new RangeError getRandom more elements taken than available while var Math floor Math random len result arr in taken taken taken len in taken taken len len return result code pre Thanks for the feedback can believe this bug evaded everyone for years Fixed You should have posted comment though not suggested an edit pWell the href http es5 github io x15 rel noreferrer codeNumber code function does expect the digits to and does not handle arabic ones You will need to take care of that yourself ppre codefunction parseArabic str return Number str replace ٠١٢٣٤٥٦٧٨٩ function return charCodeAt 1632 Convert Arabic numbers replace ۰۱۲۳۴۵۶۷۸۹ function return charCodeAt 1776 Convert Persian numbers code prepUsage ppre code gt parseArabic ۱۶۶۰ 1660 code pre Are you sure the edit was necessary The set you edited were supposed to be persian numbers not arabic ones pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre In short because it was designed to work await suspends the current function evaluation including all control structures Yes it is quite similar to generators in that regard which is why they are used to polyfill async await pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre Not really an async function is quite different from Promise executor callback but yes the map callback returns promise in both cases pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre It syntactic loop and will work with await but you rarely will need to enumerate object properties pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre If you don intend to await them then for…of would work equally to forEach No really mean that paragraph to emphasise that there is no place for forEach in modern JS code pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre don understand What is bad for performance in comparison to what pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre No queries forEach asyncRequest does exactly the same as for const of queries asyncRequest There is no difference in performance and both will run the requests in parallel Of course in neither you can wait for anything for how to do that see my answer pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre Yes that basically the two approaches from my answer Neither of them uses forEach Where the problem pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre But that wrong for…of is not bad for performance in comparison to forEach if used in the same unfit way without awaiting anything And yes cannot be used means is unfit pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre Yes that what wrote in my comment above Of course it doesn make any sense and is unfit to solve the OPs problem regardless whether with forEach or for…of And no would not compare the two for…of await vs Promise all map in terms of performance at all they are just different in many other more important regards Choosing sequential vs parallel executing is decision that involves many other factors and of course parallel typically finishes faster pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre You cannot use it because you cannot await the result Of course if you used it like the OP did then they would run in parallel but forEach is absolutely unfit as you said yourself pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre thought and wait for it to finish was implied But still if cannot conveys the same as absolutely should not fine Keep it simple for the beginners they should never use forEach that all they need to know pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre Foss join is method on arrays of strings it doesn wait for promises What you can do is var string await Promise all join Can JavaScript object have prototype chain but also be function javascript inheritance pre codefunction return foo function return bar function prototype var new returns bar throws exception is not function code prepIs there some way for coded code to be function and yet still inherit properties from codea code This became possible now in quite standard way see How to extend Function with ES6 classes http stackoverflow com 36871299 1048572 How many characters can Java String have java string pI trying href http www spoj com problems PALIN rel noreferrer The Next Palindrome problem from Sphere Online Judge SPOJ where need to find palindrome for integer of up to million digits thought about using Java functions for reversing Strings but would they allow for String to be this long Possible duplicate of String Maximum length in Java calling length method https stackoverflow com questions 816142 strings maximum length in java calling length method pYou didn find it in the spec because in the syntax definitions it is written with blanks as codenew target code The name of the expression is codeNewTarget code and you ll find that term few times around pp emNewTarget em is the first of the so called href http www ecma international org ecma 262 sec meta properties rel nof,,,,,,,, "llow noreferrer""",nice answer enlighten good answer announcer guru nice answer announcer nice answer nice answer enlighten great question nice answer enlighten nice answer enlighten great question nice answer nice answer necromancer nice answer enlighten nice answer enlighten nice answer nice answer nice answer enlighten nice answer enlighten nice answer guru good answer nice answer enlighten nice answer good answer good answer good answer announcer revival nice answer enlighten nice answer enlighten nice answer enlighten guru nice answer babeljs enlighten announcer good answer announcer good answer defer nice answer nice answer necromancer good answer good answer enlighten nice answer nice answer good answer nice answer enlighten nice answer enlighten good answer guru good answer good answer nice answer enlighten nice answer necromancer great answer nice answer nice answer nice answer enlighten announcer guru nice answer enlighten good answer nice answer announcer nice answer enlighten nice answer nice answer nice answer enlighten good answer nice answer enlighten great answer nice answer guru good answer popular question nice answer nice answer good answer nice answer great answer good answer announcer nice answer announcer good answer nice answer enlighten good answer nice answer nice answer nice answer good answer good answer nice answer nice answer announcer announcer nice answer nice answer great answer good answer nice answer java guru object good answer announcer nice answer enlighten nice answer nice answer enlighten announcer nice answer nice answer nice answer nice answer enlighten scope nice answer enlighten date nice answer enlighten nice answer announcer nice answer nice answer enlighten stellar question nice answer enlighten nice answer nice answer guru nice answer enlighten good answer announcer nice answer enlighten generator nice answer module good answer good answer announcer good answer popular question nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer guru announcer nice answer enlighten nice answer enlighten guru nice question nice answer necromancer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer good answer good answer nice answer enlighten nice answer guru angularjs guru announcer good question great answer good answer enlighten nice answer announcer nice answer enlighten good answer announcer announcer caucus guru nice answer enlighten nice answer nice answer enlighten enlighten yearle good answer nice answer constituent bluebird announcer good answer good answer announcer nice answer enlighten reactj guru guru great answer guru guru guru announcer good answer nice answer good answer guru nice answer good answer announcer announcer nice answer good answer guru nice answer enlighten typescript good answer nice answer enlighten nice answer good answer nice answer enlighten nice answer great answer nice answer enlighten announcer good answer nice answer prototype nice answer enlighten nice answer announcer nice answer necromancer nice answer enlighten good answer mediawiki asynchronous nice answer nice answer enlighten guru nice answer nice answer function nice answer enlighten nice answer guru guru good answer nice answer enlighten good answer good answer guru good answer good answer nice answer nice answer arrays announcer nice answer enlighten guru nice answer announcer nice answer good answer nice answer nice answer enlighten nice answer nice answer enlighten nice answer nice answer enlighten generalist guru nice answer great answer good answer great answer guru nice answer announcer announcer guru announcer good answer guru notable question nice answer enlighten nice answer nice answer guru nice answer good answer announcer marshal announcer nice answer enlighten nice answer nice answer revival nice answer announcer nice answer good answer guru announcer announcer announcer guru announcer announcer good answer announcer great answer announcer nice answer announcer announcer announcer announcer announcer announcer nice answer enlighten announcer nice answer announcer announcer announcer announcer nice answer enlighten announcer announcer announcer announcer announcer announcer good answer announcer nice answer announcer announcer good answer announcer good answer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer announcer good answer announcer nice answer nice answer enlighten announcer nice answer enlighten guru settimeout announcer announcer nice answer enlighten announcer publicist good answer great answer announcer announcer nice answer announcer announcer announcer announcer nice answer enlighten announcer announcer guru announcer announcer announcer nice answer enlighten announcer nice answer enlighten announcer announcer announcer announcer announcer announcer announcer caucus famous question announcer announcer great answer announcer nice answer enlighten announcer nice answer enlighten announcer announcer nice answer enlighten announcer nice answer nice answer enlighten nice answer announcer nice answer great answer announcer announcer nice answer enlighten announcer announcer nice answer enlighten announcer announcer good answer announcer announcer announcer announcer announcer enlighten announcer announcer nice answer enlighten nice answer enlighten announcer announcer good answer announcer announcer announcer nice answer enlighten great answer announcer announcer nice answer announcer guru announcer announcer announcer peer pressure nice answer enlighten nice answer announcer announcer nice answer nice answer announcer good answer great answer nice answer enlighten good answer guru announcer nice answer enlighten nice answer announcer announcer announcer announcer announcer nice answer enlighten announcer announcer announcer announcer announcer nice answer nice answer announcer announcer announcer good answer announcer great answer announcer announcer announcer announcer nice answer enlighten nice answer announcer reversal announcer documentation user guru announcer announcer nice answer announcer good answer announcer great answer nice answer enlighten nice answer enlighten good answer good answer announcer nice answer good answer good answer announcer nice answer enlighten announcer announcer announcer announcer announcer nice answer nice answer enlighten revival guru good answer announcer announcer great answer announcer good answer nice answer enlighten nice answer popular question announcer announcer announcer yearle nice answer enlighten announcer announcer announcer announcer announcer announcer loop good answer nice answer enlighten good answer announcer guru announcer great answer announcer good answer nice answer enlighten announcer great answer stellar question announcer announcer nice answer announcer announcer nice answer destructure nice answer enlighten announcer announcer announcer good answer announcer announcer good answer nice answer enlighten good answer good answer nice answer announcer announcer nice answer enlighten good answer announcer announcer announcer announcer announcer nice answer enlighten nice answer announcer announcer announcer announcer good answer announcer good answer announcer announcer great answer nice answer announcer announcer good answer good answer announcer good answer guru announcer enlighten good answer announcer nice answer enlighten announcer announcer announcer announcer good answer good answer nice answer enlighten nice answer enlighten announcer announcer sort good answer announcer announcer nice answer enlighten announcer nice answer enlighten guru announcer publicist nice answer enlighten nice answer nice answer enlighten announcer nice answer nice answer announcer announcer good answer good answer announcer good answer good answer nice answer guru nice answer guru enlighten good answer publicist announcer great answer caucus guru announcer announcer announcer announcer announcer good answer great answer announcer announcer announcer constituent nice answer class good answer nice answer good answer announcer nice answer announcer nice answer announcer good answer announcer announcer nice answer announcer announcer announcer publicist announcer guru nice answer publicist nice answer announcer nice answer enlighten announcer announcer announcer nice answer announcer good answer nice answer good answer enlighten good answer announcer nice answer enlighten ajax announcer guru publicist announcer announcer good answer good answer nice answer announcer guru nice question guru enlighten nice answer good answer announcer announcer nice answer enlighten performance announcer nice answer nice answer enlighten guru publicist nice answer good answer announcer announcer guru nice answer nice answer guru nice answer nice answer enlighten nice answer enlighten nice answer good answer announcer necromancer good answer guru announcer announcer nice answer enlighten announcer announcer good answer nice answer nice answer enlighten nice answer announcer good answer nice answer enlighten guru good answer publicist necromancer nice answer announcer nice answer express good answer nice answer good answer announcer announcer nice answer nice answer great answer nice answer good answer nice answer enlighten announcer guru announcer good answer nice answer enlighten announcer nice answer enlighten nice answer enlighten nice answer enlighten announcer nice answer enlighten announcer announcer good answer good answer good answer nice answer announcer announcer enlighten guru announcer nice answer enlighten nice answer enlighten announcer announcer nice answer enlighten nice answer enlighten nice answer announcer good answer publicist announcer guru announcer variable guru announcer announcer nice answer enlighten nice answer good answer good answer nice answer nice answer enlighten nice answer enlighten good answer yearle good answer nice answer announcer good answer extend function class javascript function inheritance ecmascript javascript inheritance extend special object inherit function object call function implement logic codeclass smth extend function constructor super smth code prehrpany method class reference class instance codethis code call function codethis code refer codewindow code reference class instance call function ppp href ru stackoverflow question russian pthe codesuper code invoke codefunction code constructor expect code string access instance datum hardcode codeclass smth extend function constructor super return json stringify code prepbut satisfy closure pphave return function closure href https stackoverflow access instance variable easy good thing codesuper code codereturn code arbitrary object class constructor case codeclass smth extend function constructor refer smth function smth return object setprototypeof smth smth prototype return smth code prepbut abstract thing codesmth code codeclass extend function constructor return object setprototypeof target prototype class smth extend constructor super function return closure console log function return console log prototype constructor class anth extend constructor super return arrow function prototype object create class evth extend constructor super function return name function code prepadmittedly create additional level indirection inheritance chain necessarily bad thing extend native codefunction code avoid codefunction return object setprototypeof target prototype prototype function prototype code prepbut notice codesmth code dynamically inherit static codefunction code property disallow require parameter function definition javascript reactj react redux ecmascript high order component strongquestion strong ppi write function call api define parameter order state ownprop stateprop code prepi codeownprop code codestate code write function definition parameter attempt read write result error fail fast phrp strongthis work strong ppthis appeal code code valid variable codefunction ownprop code strongsome context strong ppmy question mirror href https stackoverflow question skip optional function parameter javascript skip optional function parameter javascript ppthe context question write pair react component implement button click ppthe component specifie layout include button text outer component make modal visible compose component react redux href https github reactj react redux blob master docs api mergeprop option nofollow noreferrer connect function codefunction mybutton handleopen return lt button onclick handleopen classname cta button button text configure lt button const mapstatetoprop return const dispatch return handleopen dispatch const connect mapstatetoprop mybutton export default code prepusage code lt code prepwhat make text display button configurable property pass code lt text click code prepby parameter function map state prop codeownprop code access codetext code property state clarity reduce chance cause bug write mapstatetoprop function parameter unusable ppi transpile standard fine propose extension webpack ppalternately react open solution phrp strongwhy button text redux store strong ppthis technical option reason button text property component wrap provide button functionality directly property put redux store lot code overhead write reducer store initialiser action creator easy display multiple button render page text matter property container class text display clean puse code code fine intention clear accident developer high order function drop argument codefunction nostate fn return state rest fn rest assume context matter nostate ownprop code async await foreach loop javascript node js promise async await ecmascript pare issue codeasync await code codeforeach code loop loop array file codeawait code content file codeimport f f promise async function printfile const file await getfilepath assume work fine file foreach async file const content await f readfile file console log content printfile code prepthis code work wrong suppose codeasync await code high order function want issue psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code limit concurrency promise run javascript node js promise bluebird pi promise function wrapper limit throttle promise run set number promise run time ppin case code run concurrently run time serve order codeimport promise bluebird function second str console log str return promise delay second async function await await await async function await await await console log console log code prepany idea queue set ppi debounce function wonderful codebenjamin gruenbaum code modify throttle promise base execution delay codeexport function promisedebounce fn delay count work queue function work queue length work count return work promise delay delay tap function work work var queue shift fn apply return function debounce var arg argument return promise function resolve queue push arg resolve work lt count work bind code pi library simple implement codefunction queue fn fn var promise resolve return function var function return fn reflect return code prepfor multiple concurrent request trickier codefunction fn return queue fn optimisation var null var active function return function var fn active push reflect function active splice active indexof return promise race active function fst return function snd return return function var active length lt var fst return snd var fst return snd code prepbtw href https wikipedia org wiki actor model noreferrer actor model href https wikipedia org wiki communicating sequential process noreferrer csp simplify deal thing js library strongexample strong codeimport promise bluebird function sequential fn var promise resolve return arg const fn arg reflect return async function second str console log str start await promise delay second console log str end return str sequential async function await await await async function await await await console log console log sequential babel node test js start end start end start end start end start end start end call sequential babel node test js start start end start end start end start end end start end code psince native href https developer mozilla org docs web javascript reference global object array codefind code method arrays phrpi post answer stop codefilter code suggestion pblockquote psince functional style array method ecmascript blockquotepyou href https developer mozilla org docs web javascript reference global object array codesome code array method iterate array condition meet stop return condition meet element index meet amend codefunction arr test var result null arr function el return test el arr result el true false return result code mark amery answer psince native href https developer mozilla org docs web javascript reference global object array codefind code method arrays phrpi post answer stop codefilter code suggestion pblockquote psince functional style array method ecmascript blockquotepyou href https developer mozilla org docs web javascript reference global object array codesome code array method iterate array condition meet stop return condition meet element index meet amend codefunction arr test var result null arr function el return test el arr result el true false return result code notice line answer codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code difference regular push array prototype push apply http stackoverflow answer http stackoverflow read mdn docs apply https developer mozilla org docs web javascript reference global object function apply codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code array condition meet fn return array push apply append multiple item array concat create array codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code confuse concat work arrays spread value append push apply throw error array value codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code push codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code replace check test codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code work example question good post call error codefunction fn key key key return elegant return flatten map function return typeof object fn key true efficient var foreach function typeof object amp amp fn key length push apply return code tell error forget load lodash blockquote pi syntactic sugar blockquotepno syntactic sugar gory detail bury href http ecma international org ecma noreferrer code pblockquote phow work blockquotepif codelet code keyword codefor code statement check name bind pullicreate lexical environment name initialiser expression iteration previosly evaluate increment expression lilicopy value variable name environment li ulpyour loop statement codefor var lt process nexttick console log code desugar simple code omit brace introduce blockvar lt process nexttick console log lt process nexttick console log code prepwhile codefor lt process nexttick console log code desugar complicate code brace explicitly denote block scope indentation control flow status status lt process nexttick console log status status lt process nexttick console log status status code aki context blockquote pi syntactic sugar blockquotepno syntactic sugar gory detail bury href http ecma international org ecma noreferrer code pblockquote phow work blockquotepif codelet code keyword codefor code statement check name bind pullicreate lexical environment name initialiser expression iteration previosly evaluate increment expression lilicopy value variable name environment li ulpyour loop statement codefor var lt process nexttick console log code desugar simple code omit brace introduce blockvar lt process nexttick console log lt process nexttick console log code prepwhile codefor lt process nexttick console log code desugar complicate code brace explicitly denote block scope indentation control flow status status lt process nexttick console log status status lt process nexttick console log status status code scope variable reference closure reference scope loop contain outer link blockquote pi syntactic sugar blockquotepno syntactic sugar gory detail bury href http ecma international org ecma noreferrer code pblockquote phow work blockquotepif codelet code keyword codefor code statement check name bind pullicreate lexical environment name initialiser expression iteration previosly evaluate increment expression lilicopy value variable name environment li ulpyour loop statement codefor var lt process nexttick console log code desugar simple code omit brace introduce blockvar lt process nexttick console log lt process nexttick console log code prepwhile codefor lt process nexttick console log code desugar complicate code brace explicitly denote block scope indentation control flow status status lt process nexttick console log status status lt process nexttick console log status status code status loop context state syntax denote object transport current block declare variable loop header scope iteration create scope variable depend statement block process nexttick codefunction absolute base relative var stack base split part relative split stack pop remove current file string omit base current folder trail slash var lt part length part continue part stack pop stack push part return stack join code typically mean base relative path path tilde question http stackoverflow question codefunction absolute base relative var stack base split part relative split stack pop remove current file string omit base current folder trail slash var lt part length part continue part stack pop stack push part return stack join code correct path start relative function consider path uris function access parent closure miss variable javascript scope requirejs closure scope chain pin level function import dependency require js problem function define callback function attempt variable import require js variable parent closure ppand confirm breakpoint peek chrome inspector scope variable panel ppi understand codefn apply code friend set context codethis code destroy reference closure alter scope chain class lang js prettyprint override codedefine backbone backbone vent app utils foo app service intent function backbone vent foo strict backbone vent foo define vent myevent function option backbone define vent foo code prephow ppand fix duplicate garbage collection node js http stackoverflow question garbage collection node js http stackoverflow http stackoverflow phere short implementation codeobject unflatten function datum strict object datum datum array isarray datum return datum var regex resultholder var datum var cur resultholder prop regex exec cur cur prop cur prop prop cur prop datum return resultholder resultholder code prep codeflatten code change codeisempty code case codeobject flatten function datum var result function recurse cur prop object cur cur result prop cur array isarray cur var cur length lt recurse cur prop result prop var isempty true var cur isempty false recurse cur prop prop isempty amp amp prop result prop recurse datum return result code preptogether href http jsfiddle net wszec noreferrer run benchmark half time opera chrome true carelessly copy object namespace fit phere short implementation codeobject unflatten function datum strict object datum datum array isarray datum return datum var regex resultholder var datum var cur resultholder prop regex exec cur cur prop cur prop prop cur prop datum return resultholder resultholder code prep codeflatten code change codeisempty code case codeobject flatten function datum var result function recurse cur prop object cur cur result prop cur array isarray cur var cur length lt recurse cur prop result prop var isempty true var cur isempty false recurse cur prop prop isempty amp amp prop result prop recurse datum return result code preptogether href http jsfiddle net wszec noreferrer run benchmark half time opera chrome idea edit post answer faster solution notice map thing blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code mean iterable asynchronous function blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code sequence return promise fn result chain callback blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code object reduce fn promise resolve blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code equivalent catch function expression blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code pass pass additional variable multiple function function expression change array easy blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code mean iterable array blockquote pi codepromise iterable code execute promise blockquotepno promise execute start task emcreate -PRON- represent result emyou -PRON- execute parallel pass codepromise code codepromise code emawait -PRON- multiple promise care order resolve computation run parallel pblockquote pi convenient run iterable sequencially blockquotepif promise codepromise code notion sequence iterable asynchronous function run sequentially basically code code prepto code prepand solution href https developer mozilla org docs web javascript reference global object array reduce noreferrer codearray reduce code codeiterable reduce fn fn promise resolve code asynchronous function chain access intermediate value chain split chain single piece attach callback parameter multiple time attach multiple callback promise result forget href https stackoverflow promise represent proxy future derive promise linear chain promise combinator library build result ppthis result straightforward control flow clear composition functionality easy modularisation codefunction getexample var promisea var function resulta processing return promiseb return promise function resulta resultb processing return resulta resultb code prepinstead parameter destructure callback codepromise code avail shy codethen code replace helper method provide promise library href https github kriskowal wiki api reference onrejecte noreferrer href http bluebirdj docs api spread html noreferrer bluebird href https github cujojs blob master docs api promisespread noreferrer code spread function resulta resultb code ppbluebird feature dedicate href http bluebirdj docs api promise join html noreferrer codejoin code function replace codepromise code codespread code combination simple efficient construct promise join function resulta resultb code bluebird http bluebirdj docs api spread html https github kriskowal wiki api reference onrejecte https github cujojs blob master docs api promisespread major promise libs implement important destructure chain access intermediate value chain split chain single piece attach callback parameter multiple time attach multiple callback promise result forget href https stackoverflow promise represent proxy future derive promise linear chain promise combinator library build result ppthis result straightforward control flow clear composition functionality easy modularisation codefunction getexample var promisea var function resulta processing return promiseb return promise function resulta resultb processing return resulta resultb code prepinstead parameter destructure callback codepromise code avail shy codethen code replace helper method provide promise library href https github kriskowal wiki api reference onrejecte noreferrer href http bluebirdj docs api spread html noreferrer bluebird href https github cujojs blob master docs api promisespread noreferrer code spread function resulta resultb code ppbluebird feature dedicate href http bluebirdj docs api promise join html noreferrer codejoin code functio,,,,,,, " replace codepromise code codespread code combination simple efficient construct promise join function resulta resultb code loop question answer assume fix number promise result access individually work arrays arbitrary size result array promise generate chain access intermediate value chain split chain single piece attach callback parameter multiple time attach multiple callback promise result forget href https stackoverflow promise represent proxy future derive promise linear chain promise combinator library build result ppthis result straightforward control flow clear composition functionality easy modularisation codefunction getexample var promisea var function resulta processing return promiseb return promise function resulta resultb processing return resulta resultb code prepinstead parameter destructure callback codepromise code avail shy codethen code replace helper method provide promise library href https github kriskowal wiki api reference onrejecte noreferrer href http bluebirdj docs api spread html noreferrer bluebird href https github cujojs blob master docs api promisespread noreferrer code spread function resulta resultb code ppbluebird feature dedicate href http bluebirdj docs api promise join html noreferrer codejoin code function replace codepromise code codespread code combination simple efficient construct promise join function resulta resultb code separate question https stackoverflow question include code general element arrays chain access intermediate value chain split chain single piece attach callback parameter multiple time attach multiple callback promise result forget href https stackoverflow promise represent proxy future derive promise linear chain promise combinator library build result ppthis result straightforward control flow clear composition functionality easy modularisation codefunction getexample var promisea var function resulta processing return promiseb return promise function resulta resultb processing return resulta resultb code prepinstead parameter destructure callback codepromise code avail shy codethen code replace helper method provide promise library href https github kriskowal wiki api reference onrejecte noreferrer href http bluebirdj docs api spread html noreferrer bluebird href https github cujojs blob master docs api promisespread noreferrer code spread function resulta resultb code ppbluebird feature dedicate href http bluebirdj docs api promise join html noreferrer codejoin code function replace codepromise code codespread code combination simple efficient construct promise join function resulta resultb code answer write age promise standard spread super pattern modern solution accept answer update explicit answer https stackoverflow good reason update harmony problem recognize language designer lot work href http github ecmascript asyncawait noreferrer async function proposal finally single codethen code invocation callback function asynchronous function return promise call simply wait promise resolve directly feature arbitrary control structure condition loop catch clause sake convenience codeasync function getexample var resulta await promisea processing var resultb await promiseb processing return resulta resultb code wait similar kind syntax href http davidwalsh generator noreferrer generator function break execution piece arbitrarily codeyield code keyword slice run independently asynchronously wait promise resolution run step ppthere dedicate library href https github tj noreferrer href http taskj org noreferrer task js promise library helper function href https github kriskowal wiki api reference generator noreferrer href http bluebirdj docs api generator html noreferrer bluebird href https github cujojs blob master docs api generator noreferrer href https stackoverflow async step step execution generator function yield promise codevar getexample promise coroutine function bluebird syntax var resulta yield promisea processing var resultb yield promiseb processing return resulta resultb code prepthis work node js version browser dev edition support generator syntax early backwards compatible transpiler generator function async function support current tooling documentation babel href http babeljs learn ecmascript feature generator noreferrer generator href http babeljs docs plugin syntax async function noreferrer async function ppand href https github jashkenas coffeescript wiki list language compile js synchronous asynchronous javascript compiler cp noreferrer compile js language athat dedicate ease asynchronous programming syntax similar codeawait code href http maxtaco github coffee script noreferrer ice coffeescript feature haskell codedo code notation href http lattejs noreferrer lattejs href https npmj package monadic noreferrer monadic href http purescript org noreferrer purescript href http lispyscript noreferrer lispyscript post discussion purpose canonical duplicate target harmony problem recognize language designer lot work href http github ecmascript asyncawait noreferrer async function proposal finally single codethen code invocation callback function asynchronous function return promise call simply wait promise resolve directly feature arbitrary control structure condition loop catch clause sake convenience codeasync function getexample var resulta await promisea processing var resultb await promiseb processing return resulta resultb code wait similar kind syntax href http davidwalsh generator noreferrer generator function break execution piece arbitrarily codeyield code keyword slice run independently asynchronously wait promise resolution run step ppthere dedicate library href https github tj noreferrer href http taskj org noreferrer task js promise library helper function href https github kriskowal wiki api reference generator noreferrer href http bluebirdj docs api generator html noreferrer bluebird href https github cujojs blob master docs api generator noreferrer href https stackoverflow async step step execution generator function yield promise codevar getexample promise coroutine function bluebird syntax var resulta yield promisea processing var resultb yield promiseb processing return resulta resultb code prepthis work node js version browser dev edition support generator syntax early backwards compatible transpiler generator function async function support current tooling documentation babel href http babeljs learn ecmascript feature generator noreferrer generator href http babeljs docs plugin syntax async function noreferrer async function ppand href https github jashkenas coffeescript wiki list language compile js synchronous asynchronous javascript compiler cp noreferrer compile js language athat dedicate ease asynchronous programming syntax similar codeawait code href http maxtaco github coffee script noreferrer ice coffeescript feature haskell codedo code notation href http lattejs noreferrer lattejs href https npmj package monadic noreferrer monadic href http purescript org noreferrer purescript href http lispyscript noreferrer lispyscript manually helper function laborious error prone absolutely recommend transpiler async await make haskell lazy impact performance performance haskell lazy evaluation pin href https yow event yow escape ivory tower haskell journey simon peyton jone video escape ivory tower haskell journey href http research microsoft people simonpj simon peyton jone make haskell lazy help resource constraint machine time lead lot benefit laziness ppthen challenge laziness impact performance ppmy question strongwhy make haskell lazy impact performance strong https wiki haskell org foldr foldl foldl insight pthey specification standard access internal state promise construct polyfill convert standard promise value create wrapper codefunction promise create wrapper promise query promise isresolve return promise var isresolve false var isrejecte false observe promise save fulfillment closure scope var result promise function isresolve true return function isrejecte true throw result isfulfille function return isresolve isrejecte result isresolve function return isresolve result isrejecte function return isrejecte return result code prepthis affect promise modify prototype convert promise promise expose state terminology http stackoverflow mess issettle isfulfille isrejecte pyour codesleep code function work codesettimeout code return promise codeawait codeed promisify manually codefunction timeout ms return promise resolve settimeout resolve ms async function sleep fn arg await timeout return fn arg code prepbtw slow loop codesleep code function take callback defer recommend codewhile goon code var parent await promise listfile nextpagetoken requestparent timeout code code prepwhich let computation codeparent code second array destructure https stackoverflow pyour codesleep code function work codesettimeout code return promise codeawait codeed promisify manually codefunction timeout ms return promise resolve settimeout resolve ms async function sleep fn arg await timeout return fn arg code prepbtw slow loop codesleep code function take callback defer recommend codewhile goon code var parent await promise listfile nextpagetoken requestparent timeout code code prepwhich let computation codeparent code second timeout declare async await https stackoverflow review suggest edit nope function return promise await thenable achieve implementation function async function pyour codesleep code function work codesettimeout code return promise codeawait codeed promisify manually codefunction timeout ms return promise resolve settimeout resolve ms async function sleep fn arg await timeout return fn arg code prepbtw slow loop codesleep code function take callback defer recommend codewhile goon code var parent await promise listfile nextpagetoken requestparent timeout code code prepwhich let computation codeparent code second async await base promise thing replace call pthe codesuper code invoke codefunction code constructor expect code string access instance datum hardcode codeclass smth extend function constructor super return json stringify code prepbut satisfy closure pphave return function closure href https stackoverflow access instance variable easy good thing codesuper code codereturn code arbitrary object class constructor case codeclass smth extend function constructor refer smth function smth return object setprototypeof smth smth prototype return smth code prepbut abstract thing codesmth code codeclass extend function constructor return object setprototypeof target prototype class smth extend constructor super function return closure console log function return console log prototype constructor class anth extend constructor super return arrow function prototype object create class evth extend constructor super function return name function code prepadmittedly create additional level indirection inheritance chain necessarily bad thing extend native codefunction code avoid codefunction return object setprototypeof target prototype prototype function prototype code prepbut notice codesmth code dynamically inherit static codefunction code property mara mutate prototype function smth instance instanceof smth expect omit object setprototypeof prototype method declare class pthe codesuper code invoke codefunction code constructor expect code string access instance datum hardcode codeclass smth extend function constructor super return json stringify code prepbut satisfy closure pphave return function closure href https stackoverflow access instance variable easy good thing codesuper code codereturn code arbitrary object class constructor case codeclass smth extend function constructor refer smth function smth return object setprototypeof smth smth prototype return smth code prepbut abstract thing codesmth code codeclass extend function constructor return object setprototypeof target prototype class smth extend constructor super function return closure console log function return console log prototype constructor class anth extend constructor super return arrow function prototype object create class evth extend constructor super function return name function code prepadmittedly create additional level indirection inheritance chain necessarily bad thing extend native codefunction code avoid codefunction return object setprototypeof target prototype prototype function prototype code prepbut notice codesmth code dynamically inherit static codefunction code property mara object setprototypeof optimisation hazard long create object mutate prototype object lifetime bad pthe codesuper code invoke codefunction code constructor expect code string access instance datum hardcode codeclass smth extend function constructor super return json stringify code prepbut satisfy closure pphave return function closure href https stackoverflow access instance variable easy good thing codesuper code codereturn code arbitrary object class constructor case codeclass smth extend function constructor refer smth function smth return object setprototypeof smth smth prototype return smth code prepbut abstract thing codesmth code codeclass extend function constructor return object setprototypeof target prototype class smth extend constructor super function return closure console log function return console log prototype constructor class anth extend constructor super return arrow function prototype object create class evth extend constructor super function return name function code prepadmittedly create additional level indirection inheritance chain necessarily bad thing extend native codefunction code avoid codefunction return object setprototypeof target prototype prototype function prototype code prepbut notice codesmth code dynamically inherit static codefunction code property hint fix symbol javascript import javascript pfor codeimport component component component code prepin code behave code code level directory relative file path generally documentation online symbol search problem duplicate symbol node module name http stackoverflow pyou miss pad hex conversion codefunction tohexstring bytearray return array bytearray function byte return byte amp tostre slice join code prepso byte transform hex digit expect output code ah fix ptry destructive href http jsperf random element array noreferrer fast function codefunction getrandom arr var result array len arr length array len len throw rangeerror getrandom element var math floor math random len result arr len len len return result code ah clever work small sample large range set ptry destructive href http jsperf random element array noreferrer fast function codefunction getrandom arr var result array len arr length array len len throw rangeerror getrandom element var math floor math random len result arr len len len return result code feedback bug evade year fix post comment suggest edit pwell href http github noreferrer codenumber code function expect digit handle arabic care codefunction parsearabic str return number str replace function return charcodeat convert arabic number replace function return charcodeat convert persian number code prepusage code parsearabic code edit set edit suppose persian number arabic psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code short design work await suspend current function evaluation include control structure similar generator regard polyfill async await psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code async function promise executor callback map callback return promise case psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code syntactic loop work await rarely enumerate object property psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code intend await work equally foreach paragraph emphasise place foreach modern js code psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code understand bad performance comparison psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code query foreach asyncrequ const query asyncrequ difference performance run request parallel wait answer psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code basically approach answer foreach problem psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code wrong bad performance comparison foreach unfit await mean unfit psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code write comment make sense unfit solve op problem foreach compare await promise map term performance important choose sequential parallel execute decision involve factor parallel typically finish faster psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code await result run parallel foreach absolutely unfit psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code think wait finish imply convey absolutely fine simple beginner foreach psure code work pretty expect fire multiple asynchronous call codeprintfile code function immediately return ppif read file sequence strongyou codeforeach code strong modern codefor code loop codeawait code work expect codeasync function printfile const file await getfilepath const file file const content await f readfile file console log content code prepif read file parallel strongyou codeforeach code strong codeasync code callback function call return promise throw await codemap code await array promise codepromise code codeasync function printfile const file await getfilepath await promise file map async file const content await f readfile file console log content code foss join method arrays string wait promise var string await promise join javascript object prototype chain function javascript inheritance codefunction return foo function return bar function prototype var return bar throw exception function code prepi code code function inherit property codea code standard extend function class http stackoverflow character java string java string pi href http spoj problem palin noreferrer palindrome problem sphere online judge spoj palindrome integer digit think java function reverse string string long duplicate string maximum length java call length method https stackoverflow question string maximum length java call length method pyou spec syntax definition write blank codenew target code expression codenewtarget code term time emnewtarget -PRON- call href http ecma international org ecma meta property nofollow noreferrer""",1,NULL,How to extend Function with ES6 classes javascript function inheritance ecmascript javascript inheritance pES6 allows to extend special objects So it possible to inherit from the function Such object can be called as function but how can implement the logic for such call ppre codeclass Smth extends Function constructor What should be done here super new Smth 256 to get 256 at this call code prehrpAny method of class gets reference to the class instance via codethis code But when it is called as function codethis code refers to codewindow code How can get the reference to the class instance when it is called as function ppPS href ru stackoverflow com 517424 178988 Same question in Russian pThe codesuper code call will invoke the codeFunction code constructor which expects code string If you want to access your instance data you could just hardcode it ppre codeclass Smth extends Function constructor super return JSON stringify code prepbut that not really satisfying We want to use closure ppHaving the returned function be closure that href https stackoverflow com 20279484 1048572 can access your instance variables is possible but not easy The good thing is that you don have to call codesuper code if you don want to you still can codereturn code arbitrary objects from your ES6 class constructors In this case we do ppre codeclass Smth extends Function constructor refer to smth instead of this function smth return Object setPrototypeOf smth Smth prototype return smth code prepBut we can do even better and abstract this thing out of codeSmth code ppre codeclass ExtensibleFunction extends Function constructor return Object setPrototypeOf new target prototype class Smth extends ExtensibleFunction constructor super function return closure console log this function return console log this prototype constructor class Anth extends ExtensibleFunction constructor super gt return this arrow function no prototype object created this class Evth extends ExtensibleFunction constructor super function return named function this code prepAdmittedly this creates an additional level of indirection in the inheritance chain but that not necessarily bad thing you can extend it instead of the native codeFunction code If you want to avoid it use ppre codefunction ExtensibleFunction return Object setPrototypeOf new target prototype ExtensibleFunction prototype Function prototype code prepbut notice that codeSmth code will not dynamically inherit static codeFunction code properties How do disallow use of required parameter in ES7 function definition javascript reactjs react redux ecmascript higher order components strongQuestion strong ppI am writing ES7 function that will be called by an API which defines the parameter order ppre codemapStateToProps state ownProps stateProps code prepI need to use codeownProps code but not codestate code Is it possible to write the function definition so that the first parameter is either not specified or any attempt to read it or write it will result in an error fail fast phrp strongThis doesn work strong ppThis looks appealing but of course code code is valid variable name ppre codefunction myMapStateToProps ownProps code prehrp strongSome more context strong ppMy question is really the mirror of href https stackoverflow com questions 8356227 skipping optional function parameters in javascript Skipping optional function parameters in JavaScript ppThe context to my question is that writing pair of React components which implement button that does something when it clicked ppThe inner component specifies the layout including the button text and the outer component makes the modal visible and is composed with the inner component using react redux href https github com reactjs react redux blob master docs api md connectmapstatetoprops mapdispatchtoprops mergeprops options rel nofollow noreferrer connect function ppre codefunction MyButton handleOpen return lt Button onClick handleOpen className cta button gt Button text that want to configure lt Button gt const mapStateToProps gt return const mapDispatchToProps dispatch gt return handleOpen gt dispatch doSomeStuff const MyButtonContainer connect mapStateToProps mapDispatchToProps MyButton export default MyButtonContainer code prepUsage is ppre code lt MyButtonContainer gt code prepWhat want to do is make the text displayed on the button configurable via property passed to MyButtonContainer ppre code lt MyButtonContainer text Click me gt code prepBy using the second parameter of the function used to map state to props codeownProps code can access the codetext code property but still don need anything from the state so for clarity and to reduce the chance of causing bugs want to write the mapStateToProps function so that the first parameter is unusable ppI am transpiling from ES7 so any standard ES is fine If there are proposed extensions might also be able to use those thanks webpack ppAlternately if there better way of doing this in React be open to that solution too phrp strongWhy not put the button text in the redux store strong ppThis is technical option don like it for several reasons The button text is property of the inner component if wasn using HOC to wrap it and provide the button functionality just specify it directly as property Putting it in the redux store is lot of coding overhead writing reducers store initialisers action creators there must be better and easier way want to display multiple buttons on the same rendered page each with different text no matter what going to have to specify properties on the container class having it be the text to display just seems cleanest pUsing code code should be fine It intention is clear and it shouldn be used by accident by sensible developers phrpYou can use higher order function that drops the first argument ppre codefunction noState fn return state rest gt fn rest assuming the this context doesn matter myMapStateToProps noState ownProps gt code pre Using async await with forEach loop javascript node js promise async await ecmascript 2017 pAre there any issues with using codeasync await code in codeforEach code loop trying to loop through an array of files and codeawait code on the contents of each file ppre codeimport fs from fs promise async function printFiles const files await getFilePaths Assume this works fine files forEach async file gt const contents await fs readFile file utf8 console log contents printFiles code prepThis code does work but could something go wrong with this had someone tell me that you re not supposed to use codeasync await code in higher order function like this so just wanted to ask if there was any issue with this pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre Limit concurrency of promise being run javascript node js promise bluebird pI looking for promise function wrapper that can limit throttle when given promise is running so that only set number of that promise is running at given time ppIn the case below codedelayPromise code should never run concurrently they should all run one at time in first come first serve order ppre codeimport Promise from bluebird function delayPromise seconds str console log str return Promise delay seconds let delayPromise limitConcurrency delayPromise async function await delayPromise 100 await delayPromise 100 await delayPromise 100 async function await delayPromise 100 await delayPromise 100 await delayPromise 100 then gt console log done then gt console log done code prepAny ideas on how to get queue like this set up ppI have debounce function from the wonderful codeBenjamin Gruenbaum code need to modify this to throttle promise based on it own execution and not the delay ppre codeexport function promiseDebounce fn delay count let working let queue function work if queue length working count return working Promise delay delay tap function working then work var next queue shift next fn apply next next return function debounced var args arguments return new Promise function resolve queue push this args resolve if working lt count work bind this code pre pI don think there are any libraries to do this but it actually quite simple to implement yourself ppre codefunction queue fn limitConcurrency fn var Promise resolve return function var then function return fn reflect return code prepFor multiple concurrent requests it gets little trickier but can be done as well ppre codefunction limitConcurrency fn if return queue fn optimisation var null var active function next return function var fn active push reflect then function active splice active indexOf return Promise race active function fst return function snd return return function var put next if active length lt var put fst return snd else var then put then fst return then snd code prepBtw you might want to have look at the href https en wikipedia org wiki Actor model rel noreferrer actors model and href https en wikipedia org wiki Communicating sequential processes rel noreferrer CSP They can simplify dealing with such things there are few JS libraries for them out there as well pp strongExample strong ppre codeimport Promise from bluebird function sequential fn var Promise resolve return args gt const then gt fn args reflect return async function delayPromise seconds str console log str started await Promise delay seconds console log str ended return str let delayPromise sequential delayPromise async function await delayPromise 100 await delayPromise 200 await delayPromise 300 async function await delayPromise 400 await delayPromise 500 await delayPromise 600 then gt console log done then gt console log done gt with sequential babel node test js started ended started ended started ended started ended started ended started done ended done gt without calling sequential babel node test js started started ended started ended started ended started ended done ended started ended done code pre,,,,, 1681,119704,376854,Yearling Popular Question Notable Question Notable Question Popular Question Caucus Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 1682,490209,771801,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1683,2012695,359343,Necromancer Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1684,102807,359343,Necromancer Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1685,501297,1003190,Notable Question Nice Question Nice Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Answer Yearling Nice Question Census Famous Question Famous Question Notable Question Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 1686,2254814,588272,Informed Popular Question Popular Question Nice Question Yearling Notable Question Nice Question Good Question Yearling Popular Question Famous Question Famous Question Popular Question Yearling Great Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 1687,895845,1334157,Announcer,NULL,NULL,0,NULL,NULL 1688,75709,655720,Yearling Popular Question,NULL,NULL,0,NULL,NULL 1689,322456,1243561,NULL,NULL,NULL,0,NULL,NULL 1690,456976,23712,Notable Question Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 1691,208211,743349,Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1692,18138,268938,Yearling Guru,NULL,NULL,0,NULL,NULL 1693,83229,15861,Guru Good Answer Favorite Question Nice Answer Nice Answer Good Answer Good Answer Great Answer Famous Question Notable Question Nice Question Good Answer Great Answer Notable Question Yearling Good Answer Caucus Famous Question Nice Answer Good Answer Nice Answer Nice Answer Notable Question Famous Question Nice Answer Enlightened Favorite Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Good Question Nice Answer Enlightened Notable Question Good Question Great Answer Notable Question Guru Yearling Nice Question Guru Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Question Great Answer Good Answer Guru Nice Answer Nice Answer Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 1694,750702,1496875,NULL,NULL,NULL,0,NULL,NULL 1695,1508704,778611,NULL,NULL,NULL,0,NULL,NULL 1696,391254,705006,NULL,NULL,NULL,0,NULL,NULL 1697,848023,290008,NULL,NULL,NULL,0,NULL,NULL 1698,400080,776548,Popular Question Caucus Constituent Popular Question Nice Question Popular Question Critic Yearling Famous Question,NULL,NULL,0,NULL,NULL 1699,3244329,882694,NULL,NULL,NULL,0,NULL,NULL 1700,475574,1280004,Teacher,NULL,NULL,0,NULL,NULL 1701,422585,325465,NULL,NULL,NULL,0,NULL,NULL 1702,559208,826376,NULL,NULL,NULL,0,NULL,NULL 1703,897140,722806,NULL,NULL,NULL,0,NULL,NULL 1704,59760,1548967,Revival Good Answer Yearling Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 1705,1701313,1548967,Revival Good Answer Yearling Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 1706,367163,1197725,NULL,NULL,NULL,0,NULL,NULL 1707,709687,1461250,NULL,NULL,NULL,0,NULL,NULL 1708,248133,1001513,Critic Nice Answer Yearling Student Scholar,NULL,NULL,0,NULL,NULL 1709,50584,1296495,NULL,NULL,NULL,0,NULL,NULL 1710,96160,771471,Good Answer Yearling Populist Caucus Popular Question Necromancer Yearling Caucus Constituent Popular Question Necromancer Popular Question Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 1711,101507,1158559,Yearling Necromancer Excavator Popular Question Curious Caucus Yearling Populist Good Answer Yearling,NULL,pPut the data into Buffer using the base64 encoding then write this to file ppre codevar fs require fs var string data image png base64 iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg var regex data base64 var matches string match regex var ext matches var data matches var buffer new Buffer data base64 fs writeFileSync data ext buffer code pre Then just apply the regex to the first 268 bytes to extract the mime type The maximum length of mime type is 255 bytes Use split bert answer to extract the data pPut the data into Buffer using the base64 encoding then write this to file ppre codevar fs require fs var string data image png base64 iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg var regex data base64 var matches string match regex var ext matches var data matches var buffer new Buffer data base64 fs writeFileSync data ext buffer code pre Or maybe try taking out the from the regex pIt bit of mystery isn it Several superficially plausible theories turn out to be wrong on investigation polli pSo that the codePOST code object doesn have to implement mutation methods No the codePOST code object belongs to the href https github com django django blob master django http init py L371 rel noreferrer codedjango http QueryDict code class which implements full set of mutation methods including code setitem code code delitem code codepop code and codeclear code It implements immutability by checking flag when you call one of the mutation methods And when you call the codecopy code method you get another codeQueryDict code instance with the mutable flag turned on lili pFor performance improvement No the codeQueryDict code class gains no performance benefit when the mutable flag is turned off lili pSo that the codePOST code object can be used as dictionary key No codeQueryDict code objects are not hashable lili pSo that the codePOST code data can be built lazily without committing to read the whole response href https stackoverflow com questions 2339857 why is post data copied in django comment2312894 2339963 as claimed here see no evidence of this in the code as far as can tell the whole of the response is always read either href https github com django django blob master django http init py L296 rel noreferrer directly or via href https github com django django blob master django http multipartparser py L35 rel noreferrer codeMultiPartParser code for codemultipart code responses lili pTo protect you against programming errors ve seen this claimed but ve never seen good explanation of what these errors are and how immutability protects you against them li olpIn any case codePOST code is emnot always immutable em when the response is codemultipart code then codePOST code is mutable This seems to put the kibosh on most theories you might think of Unless this behaviour is an oversight ppIn summary strongI can see no clear rationale strong in Django for the codePOST code object to be immutable for non codemultipart code requests Even better the querydict is mutable when send the request suing the django test client,0,NULL,NULL 1712,384719,355130,ios Yearling Good Answer Good Answer Tumbleweed Good Answer Custodian Yearling Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 1713,256717,1229280,Informed Editor Teacher Supporter Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 1714,528547,286878,Revival Popular Question,NULL,NULL,0,NULL,NULL 1715,273069,133904,NULL,NULL,NULL,0,NULL,NULL 1716,201550,811708,Announcer Yearling Caucus Yearling python Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1717,4343213,811708,Announcer Yearling Caucus Yearling python Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1718,89880,973047,Census Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 1719,330738,283009,Famous Question,NULL,NULL,0,NULL,NULL 1720,136034,1366371,NULL,NULL,NULL,0,NULL,NULL 1721,525648,282636,Yearling Great Answer Great Answer Yearling Commentator Yearling Popular Question Critic,NULL,NULL,0,NULL,NULL 1722,1087822,1248601,NULL,NULL,NULL,0,NULL,NULL 1723,364703,184484,Popular Question Great Question Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Yearling Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 1724,123137,1555960,NULL,NULL,NULL,0,NULL,NULL 1725,316529,1428591,Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 1726,895161,276022,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 1727,10477087,276022,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 1728,199137,48608,NULL,NULL,NULL,0,NULL,NULL 1729,308465,132510,Custodian Citizen Patrol Informed Caucus Constituent Yearling Caucus Custodian Civic Duty,NULL,NULL,0,NULL,NULL 1730,495784,392743,Popular Question Good Question Necromancer Yearling Necromancer Custodian Nice Question,NULL,NULL,0,NULL,NULL 1731,205005,402616,Civic Duty Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Famous Question Good Question Famous Question Popular Question Popular Question Nice Answer Nice Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 1732,107914,1065230,NULL,NULL,NULL,0,NULL,NULL 1733,3744,1442465,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 1734,108804,1495526,Informed,NULL,NULL,0,NULL,NULL 1735,124752,1116389,Census Nice Question Nice Question,NULL,NULL,0,NULL,NULL 1736,1337208,1254718,Yearling Nice Answer Caucus Necromancer Necromancer Popular Question Yearling Good Answer Great Answer Caucus Announcer Documentation User Yearling Caucus Necromancer,NULL,pTry this it has worked for me ppre code input is the input elementinput focus sets focus to elementvar val this input value store the value of the elementthis input value clear the value of the elementthis input value val set that value back code prepFor the cursor to be move to the end the input has to have focus first then when the value is changed it will goto the end If you set value to the same it won change in chrome Easier input focus val input val,0,NULL,NULL 1737,676656,1347147,Nice Answer Yearling Good Answer Caucus Constituent Popular Question Good Answer Notable Question Notable Question Yearling Caucus Constituent Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 1738,19731,1406678,Critic Popular Question Informed Necromancer,NULL,NULL,0,NULL,NULL 1739,2194155,842842,NULL,NULL,NULL,0,NULL,NULL 1740,18158,169403,Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 1741,13949,610523,NULL,NULL,NULL,0,NULL,NULL 1742,176644,454724,NULL,NULL,NULL,0,NULL,NULL 1743,694,462144,Supporter,NULL,NULL,0,NULL,NULL 1744,276339,895682,NULL,NULL,NULL,0,NULL,NULL 1745,3020664,400998,Custodian Explainer Yearling Caucus Nice Answer Enlightened Census Yearling Yearling,NULL,NULL,0,NULL,NULL 1746,424843,400998,Custodian Explainer Yearling Caucus Nice Answer Enlightened Census Yearling Yearling,NULL,NULL,0,NULL,NULL 1747,71598,941169,NULL,NULL,NULL,0,NULL,NULL 1748,188233,860309,Popular Question,NULL,NULL,0,NULL,NULL 1749,221692,534247,Nice Question,NULL,NULL,0,NULL,NULL 1750,591755,561891,NULL,NULL,NULL,0,NULL,NULL 1751,37361,44700,Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 1752,226526,1475509,Census,NULL,NULL,0,NULL,NULL 1753,3328169,1475509,Census,NULL,NULL,0,NULL,NULL 1754,34394,503127,Nice Answer Enlightened Guru Enlightened Nice Answer Yearling Good Answer Yearling Nice Answer javascript Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 1755,190574,115980,Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1756,1979350,115980,Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1757,48393,1471645,NULL,NULL,NULL,0,NULL,NULL 1758,37911,846267,Popular Question,NULL,NULL,0,NULL,NULL 1759,548781,1021970,Inquisitive Popular Question Popular Question Nice Question Famous Question Famous Question Notable Question Custodian Notable Question Famous Question Popular Question Famous Question Good Question Yearling Good Question Caucus Announcer Constituent Good Question Famous Question Famous Question Famous Question Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Announcer Popular Question Popular Question Announcer Announcer Notable Question Yearling Nice Question Famous Question Announcer Notable Question Popular Question Announcer Favorite Question Notable Question Popular Question Famous Question Announcer Yearling,NULL,NULL,0,NULL,NULL 1760,867639,1274175,NULL,NULL,NULL,0,NULL,NULL 1761,1396725,906787,Revival Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 1762,132680,652603,NULL,NULL,NULL,0,NULL,NULL 1763,349510,1013155,NULL,NULL,NULL,0,NULL,NULL 1764,1017768,1396791,NULL,NULL,NULL,0,NULL,NULL 1765,116469,824521,NULL,NULL,NULL,0,NULL,NULL 1766,462067,1046242,Tumbleweed Yearling Commentator Yearling Supporter,NULL,NULL,0,NULL,NULL 1767,49733,906317,NULL,NULL,NULL,0,NULL,NULL 1768,136267,755742,Yearling Yearling,NULL,NULL,0,NULL,NULL 1769,440084,598929,Yearling Revival Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 1770,57854,562258,Yearling Guru Self-Learner Populist Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Popular Question Good Answer Great Answer,NULL,NULL,0,NULL,NULL 1771,288875,1535866,Popular Question,NULL,NULL,0,NULL,NULL 1772,521224,194849,Yearling Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 1773,415569,181403,Announcer Good Answer Yearling Commentator Census Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 1774,7391464,716347,NULL,NULL,NULL,0,NULL,NULL 1775,84243,1467943,Yearling Nice Answer Enlightened Tumbleweed Yearling Autobiographer Yearling,NULL,NULL,0,NULL,NULL 1776,170552,1204393,Yearling Steward Guru Nice Answer Caucus Yearling Great Answer Yearling Revival,NULL,NULL,0,NULL,NULL 1777,626494,989683,NULL,NULL,NULL,0,NULL,NULL 1778,982990,1471338,Popular Question Teacher Supporter,NULL,NULL,0,NULL,NULL 1779,101979,1014422,Supporter,NULL,NULL,0,NULL,NULL 1780,2204583,1301280,Tumbleweed Popular Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 1781,197263,515128,Nice Answer Enlightened Editor Commentator Self-Learner Popular Question Autobiographer Critic,NULL,NULL,0,NULL,NULL 1782,291648,143250,NULL,NULL,NULL,0,NULL,NULL 1783,30015,265266,Popular Question,NULL,NULL,0,NULL,NULL 1784,919095,509665,Yearling Necromancer,NULL,NULL,0,NULL,NULL 1785,204970,815977,Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Popular Question Yearling Popular Question Good Answer Autobiographer Popular Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 1786,105732,1406995,NULL,NULL,NULL,0,NULL,NULL 1787,1563075,874755,NULL,NULL,NULL,0,NULL,NULL 1788,348205,875287,Supporter Informed Autobiographer Editor Critic Caucus Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 1789,816801,847371,Announcer,NULL,NULL,0,NULL,NULL 1790,803130,1308567,Yearling Yearling,NULL,NULL,0,NULL,NULL 1791,1131528,1386167,NULL,NULL,NULL,0,NULL,NULL 1792,264266,717523,Necromancer Peer Pressure Excavator Informed Commentator Citizen Patrol Yearling Organizer Yearling Popular Question Caucus Revival Enthusiast Custodian Critic Yearling Tenacious Revival Yearling Caucus Scholar Yearling Yearling Unsung Hero Census Explainer c Custodian Custodian Custodian Custodian Custodian Proofreader Strunk & White Tag Editor Cleanup Reviewer Caucus Custodian Custodian Archaeologist Quorum Reviewer Reviewer Reviewer Reviewer Reviewer Reviewer Yearling Revival Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 1793,2735208,1150569,NULL,NULL,NULL,0,NULL,NULL 1794,30217,275084,Notable Question Yearling,NULL,NULL,0,NULL,NULL 1795,1387916,768280,Documentation User,NULL,NULL,0,NULL,NULL 1796,284327,915275,Editor Excavator,NULL,NULL,0,NULL,NULL 1797,124700,328260,Revival Yearling Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 1798,203281,962527,NULL,NULL,NULL,0,NULL,NULL 1799,387256,1125631,Supporter,NULL,NULL,0,NULL,NULL 1800,34931,414272,Revival Yearling Popular Question Nice Answer Excavator Yearling Good Answer Self-Learner Famous Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 1801,119586,414272,Revival Yearling Popular Question Nice Answer Excavator Yearling Good Answer Self-Learner Famous Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 1802,2389439,39529,Nice Question Notable Question Revival Organizer Custodian Nice Question Notable Question Good Question Yearling Notable Question Nice Question Nice Question Notable Question Good Question Yearling Popular Question Notable Question Favorite Question Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 1803,766351,703424,Popular Question Custodian Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 1804,9436,823663,Critic Necromancer Yearling Announcer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1805,165286,437267,NULL,NULL,NULL,0,NULL,NULL 1806,237342,531841,Caucus Constituent Yearling Autobiographer Great Answer Reviewer Good Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 1807,2808614,264796,Notable Question,NULL,NULL,0,NULL,NULL 1808,1997711,13912,Good Question,NULL,NULL,0,NULL,NULL 1809,160290,13912,Good Question,NULL,NULL,0,NULL,NULL 1810,7658060,13912,Good Question,NULL,NULL,0,NULL,NULL 1811,953924,286278,NULL,NULL,NULL,0,NULL,NULL 1812,7845,1353441,Popular Question Yearling Taxonomist Popular Question Reviewer Vox Populi Revival Revival Popular Question Yearling Popular Question Documentation User Nice Question Notable Question Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 1813,163696,1102879,NULL,NULL,NULL,0,NULL,NULL 1814,107896,608819,NULL,NULL,NULL,0,NULL,NULL 1815,83463,617900,Yearling Popular Question Nice Question Notable Question Notable Question Notable Question Yearling Popular Question Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 1816,208582,629415,NULL,NULL,NULL,0,NULL,NULL 1817,712860,339753,Nice Question Yearling Notable Question Famous Question Notable Question Notable Question Good Question Notable Question Famous Question Nice Question Popular Question Notable Question Yearling Famous Question Popular Question Popular Question Yearling Revival Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 1818,683730,841734,NULL,NULL,NULL,0,NULL,NULL 1819,44074,489495,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 1820,35547,527054,NULL,NULL,NULL,0,NULL,NULL 1821,419,274155,NULL,NULL,NULL,0,NULL,NULL 1822,270166,16351,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1823,162543,1465783,NULL,NULL,NULL,0,NULL,NULL 1824,169686,1543920,NULL,NULL,NULL,0,NULL,NULL 1825,32825,550077,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 1826,243857,448736,NULL,NULL,NULL,0,NULL,NULL 1827,385239,389403,NULL,NULL,NULL,0,NULL,NULL 1828,648856,350294,Notable Question Popular Question Famous Question Notable Question Notable Question Yearling Popular Question Notable Question Famous Question Notable Question arrays Popular Question Popular Question Nice Question Necromancer Famous Question Nice Question Nice Question Notable Question Good Answer Nice Answer Enlightened Popular Question Notable Question Tenacious Famous Question Famous Question Nice Answer Yearling Good Question Notable Question Good Question Famous Question Notable Question Caucus Famous Question Nice Answer Enlightened Famous Question Famous Question Famous Question Nice Answer Yearling Necromancer Notable Question Nice Question Good Question Good Answer,NULL,NULL,0,NULL,NULL 1829,206647,1172545,Yearling Revival Informed Nice Answer Enlightened Yearling Nice Answer Necromancer Explainer Enthusiast php Citizen Patrol Tenacious Custodian Strunk & White Custodian Custodian Revival Civic Duty Revival Peer Pressure Necromancer Tumbleweed Nice Answer Fanatic Census Yearling Caucus Good Answer Announcer Good Answer composer-php Announcer Nice Answer Enlightened Student Nice Answer Guru Guru,NULL,NULL,0,NULL,NULL 1830,9170624,945140,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 1831,62411,135388,Necromancer Yearling Revival Yearling Citizen Patrol Custodian Yearling,NULL,pI needed native JS version that returns CSS standard path not jQuery and deals with ShadowDOM This code is minor update on Michael Connor answer just in case someone else needs it ppre codefunction getDomPath el if el return var stack var isShadow false while el parentNode null console log el nodeName var sibCount var sibIndex get sibling indexes for var lt el parentNode childNodes length var sib el parentNode childNodes if sib nodeName el nodeName if sib el sibIndex sibCount sibCount if el hasAttribute id amp amp el id no id shortcuts ids are not unique in shadowDom stack unshift el nodeName toLowerCase el id else var nodeName el nodeName toLowerCase if isShadow nodeName shadow isShadow false if sibCount gt stack unshift nodeName nth of type sibIndex else stack unshift nodeName el el parentNode if el nodeType 11 for shadow dom we isShadow true el el host stack splice removes the html element return stack join gt code pre Warning shadow DOM v1 has dropped support for shadow selectors There is no way to generate full CSS selector for shadow DOM elements recommend replacing the shadow line above with an error,0,NULL,NULL 1832,41003,322,Guru Nice Answer Enlightened Notable Question Stellar Question Favorite Question Nice Question Nice Answer Nice Answer Nice Answer Nice Answer Mortarboard Enlightened Yearling Popular Question Popular Question Yearling Notable Question Revival Famous Question Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 1833,167973,483771,NULL,NULL,NULL,0,NULL,NULL 1834,298665,313690,NULL,NULL,NULL,0,NULL,NULL 1835,12675,313690,NULL,NULL,NULL,0,NULL,NULL 1836,815449,754684,NULL,NULL,NULL,0,NULL,NULL 1837,881508,802454,NULL,NULL,NULL,0,NULL,NULL 1838,365817,348820,Caucus,NULL,NULL,0,NULL,NULL 1839,3482007,900885,NULL,NULL,NULL,0,NULL,NULL 1840,260814,192731,NULL,NULL,NULL,0,NULL,NULL 1841,241233,343075,NULL,NULL,NULL,0,NULL,NULL 1842,455670,388345,NULL,NULL,NULL,0,NULL,NULL 1843,1609927,15073,Nice Question,NULL,NULL,0,NULL,NULL 1844,1993158,63514,Necromancer Nice Question Yearling Notable Question Nice Question Yearling Nice Answer Famous Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 1845,3379301,191548,NULL,NULL,NULL,0,NULL,NULL 1846,2241601,640063,Popular Question,NULL,NULL,0,NULL,NULL 1847,111376,1441602,NULL,NULL,NULL,0,NULL,NULL 1848,175765,1398128,Caucus,NULL,NULL,0,NULL,NULL 1849,18012,1236013,Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Good Answer Popular Question Popular Question Civic Duty Notable Question Famous Question Popular Question Inquisitive Notable Question Necromancer,NULL,NULL,0,NULL,NULL 1850,4436210,1236013,Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Good Answer Popular Question Popular Question Civic Duty Notable Question Famous Question Popular Question Inquisitive Notable Question Necromancer,NULL,NULL,0,NULL,NULL 1851,899396,529198,NULL,NULL,NULL,0,NULL,NULL 1852,4048162,800057,Popular Question Popular Question Yearling Notable Question Famous Question Nice Answer Nice Question Nice Question Inquisitive Popular Question Yearling Popular Question Caucus Famous Question Popular Question Nice Answer Enlightened Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 1853,116280,800057,Popular Question Popular Question Yearling Notable Question Famous Question Nice Answer Nice Question Nice Question Inquisitive Popular Question Yearling Popular Question Caucus Famous Question Popular Question Nice Answer Enlightened Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 1854,388667,906027,NULL,NULL,NULL,0,NULL,NULL 1855,139569,1108689,NULL,NULL,NULL,0,NULL,NULL 1856,1528932,1530087,NULL,NULL,NULL,0,NULL,NULL 1857,402189,567245,Nice Question Popular Question Popular Question Popular Question Notable Question Nice Answer Caucus Custodian Popular Question Yearling Caucus Caucus Famous Question Notable Question Notable Question,NULL,,0,, 1858,407958,783743,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Popular Question Popular Question Nice Question Notable Question Popular Question Nice Answer Pundit Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Yearling Documentation Pioneer Good Answer Socratic Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Popular Question Famous Question Caucus Good Answer Nice Answer Popular Question Nice Question Nice Answer Popular Question Famous Question Popular Question Great Question Popular Question Nice Answer Good Answer Nice Answer Nice Answer Announcer Populist Notable Question Popular Question Revival Popular Question Nice Answer Yearling Good Question Popular Question Popular Question Announcer Nice Answer Popular Question Popular Question Popular Question Sportsmanship Nice Question Nice Answer Custodian Nice Answer Nice Answer Enlightened Good Question Booster Popular Question Documentation User Electorate Popular Question Good Question Popular Question Notable Question Notable Question Good Answer Famous Question Good Answer Announcer Notable Question Nice Answer Announcer Notable Question Nice Answer Enlightened Popular Question Caucus Constituent Nice Answer Good Question Nice Answer Famous Question Popular Question Revival Popular Question Announcer Yearling Famous Question Nice Answer Popular Question Popular Question Nice Answer Great Answer Announcer Notable Question Popular Question functional-programming Popular Question Notable Question Notable Question Nice Answer,NULL,pI believe that continuations are special case of callbacks function may callback any number of functions any number of times For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD for var lt length xD callback array array xD code pre xD div xD div xD ppHowever if function calls back another function as the last thing it does then the second function is called continuation of the first For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD xD This is the last thing forEach does xD cont is continuation of forEach xD cont xD xD function cont index xD if index lt length xD callback array index array index xD This is the last thing cont does xD cont is continuation of itself xD cont index xD xD xD code pre xD div xD div xD ppIf function calls another function as the last thing it does then it called tail call Some languages like Scheme perform tail call optimizations This means that the tail call does not incur the full overhead of function call Instead it implemented as simple goto with the stack frame of the calling function replaced by the stack frame of the tail call pp strongBonus strong Proceeding to continuation passing style Consider the following program pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return xD code pre xD div xD div xD ppNow if every operation including addition multiplication etc were written in the form of functions then we would have pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return add square square xD xD xD function square xD return multiply xD xD xD function multiply xD return xD xD xD function add xD return xD code pre xD div xD div xD ppIn addition if we weren allowed to return any values then we would have to use continuations as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD square function squared xD square function squared xD add squared squared cont xD xD xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD code pre xD div xD div xD ppThis style of programming in which you are not allowed to return values and hence you must resort to passing continuations around is called continuation passing style ppThere are however two problems with continuation passing style polliPassing around continuations increases the size of the call stack Unless you re using language like Scheme which eliminates tail calls you ll risk running out of stack space liliIt pain to write nested functions li olpThe first problem can be easily solved in JavaScript by calling continuations asynchronously By calling the continuation asynchronously the function returns before the continuation is called Hence the call stack size doesn increase pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD square async function squared xD square async function squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD code pre xD div xD div xD ppThe second problem is usually solved using function called codecall with current continuation code which is often abbreviated as codecallcc code Unfortunately codecallcc code can be fully implemented in JavaScript but we could write replacement function for most of its use cases pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD var squared callcc square bind null xD var squared callcc square bind null xD add squared squared cont xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD xD xD function callcc xD var cc function xD cc xD xD xD cc xD xD return cc xD code pre xD div xD div xD ppThe codecallcc code function takes function codef code and applies it to the codecurrent continuation code abbreviated as codecc code The codecurrent continuation code is continuation function which wraps up the rest of the function body after the call to codecallcc code ppConsider the body of the function codepythagoras code ppre codevar squared callcc square bind null var squared callcc square bind null add squared squared cont code prepThe codecurrent continuation code of the second codecallcc code is ppre codefunction cc squared add squared squared cont code prepSimilarly the codecurrent continuation code of the first codecallcc code is ppre codefunction cc squared var squared callcc square bind null add squared squared cont code prepSince the codecurrent continuation code of the first codecallcc code contains another codecallcc code it must be converted to continuation passing style ppre codefunction cc squared square function cc squared add squared squared cont code prepSo essentially codecallcc code logically converts the entire function body back to what we started from and gives those anonymous functions the name codecc code The pythagoras function using this implementation of callcc becomes then ppre codefunction pythagoras cont callcc function cc square function squared square function squared add squared squared cont code prepAgain you can implement codecallcc code in JavaScript but you can implement it the continuation passing style in JavaScript as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD callcc async square bind null function cc squared xD callcc async square bind null function cc squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD xD xD function callcc cc xD async cc xD code pre xD div xD div xD ppThe function codecallcc code can be used to implement complex control flow structures such as try catch blocks coroutines generators href https github com aaditmshah fiber rel noreferrer fibers etc Proper tail calls are still not supported in any major browser Using simple combinator to lift functions into the continuation monad is not sufficient The body of each function would also have to be written in continuation passing style That would be too tedious to do for every single function If you really want to use continuations in JavaScript then look at the JavaScript With Advanced Continuation Support http chumsley org jwacs program transformer which makes asynchronous programming much simpler pI believe that continuations are special case of callbacks function may callback any number of functions any number of times For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD for var lt length xD callback array array xD code pre xD div xD div xD ppHowever if function calls back another function as the last thing it does then the second function is called continuation of the first For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD xD This is the last thing forEach does xD cont is continuation of forEach xD cont xD xD function cont index xD if index lt length xD callback array index array index xD This is the last thing cont does xD cont is continuation of itself xD cont index xD xD xD code pre xD div xD div xD ppIf function calls another function as the last thing it does then it called tail call Some languages like Scheme perform tail call optimizations This means that the tail call does not incur the full overhead of function call Instead it implemented as simple goto with the stack frame of the calling function replaced by the stack frame of the tail call pp strongBonus strong Proceeding to continuation passing style Consider the following program pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return xD code pre xD div xD div xD ppNow if every operation including addition multiplication etc were written in the form of functions then we would have pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return add square square xD xD xD function square xD return multiply xD xD xD function multiply xD return xD xD xD function add xD return xD code pre xD div xD div xD ppIn addition if we weren allowed to return any values then we would have to use continuations as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD square function squared xD square function squared xD add squared squared cont xD xD xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD code pre xD div xD div xD ppThis style of programming in which you are not allowed to return values and hence you must resort to passing continuations around is called continuation passing style ppThere are however two problems with continuation passing style polliPassing around continuations increases the size of the call stack Unless you re using language like Scheme which eliminates tail calls you ll risk running out of stack space liliIt pain to write nested functions li olpThe first problem can be easily solved in JavaScript by calling continuations asynchronously By calling the continuation asynchronously the function returns before the continuation is called Hence the call stack size doesn increase pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD square async function squared xD square async function squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD code pre xD div xD div xD ppThe second problem is usually solved using function called codecall with current continuation code which is often abbreviated as codecallcc code Unfortunately codecallcc code can be fully implemented in JavaScript but we could write replacement function for most of its use cases pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD var squared callcc square bind null xD var squared callcc square bind null xD add squared squared cont xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD xD xD function callcc xD var cc function xD cc xD xD xD cc xD xD return cc xD code pre xD div xD div xD ppThe codecallcc code function takes function codef code and applies it to the codecurrent continuation code abbreviated as codecc code The codecurrent continuation code is continuation function which wraps up the rest of the function body after the call to codecallcc code ppConsider the body of the function codepythagoras code ppre codevar squared callcc square bind null var squared callcc square bind null add squared squared cont code prepThe codecurrent continuation code of the second codecallcc code is ppre codefunction cc squared add squared squared cont code prepSimilarly the codecurrent continuation code of the first codecallcc code is ppre codefunction cc squared var squared callcc square bind null add squared squared cont code prepSince the codecurrent continuation code of the first codecallcc code contains another codecallcc code it must be converted to continuation passing style ppre codefunction cc squared square function cc squared add squared squared cont code prepSo essentially codecallcc code logically converts the entire function body back to what we started from and gives those anonymous functions the name codecc code The pythagoras function using this implementation of callcc becomes then ppre codefunction pythagoras cont callcc function cc square function squared square function squared add squared squared cont code prepAgain you can implement codecallcc code in JavaScript but you can implement it the continuation passing style in JavaScript as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD callcc async square bind null function cc squared xD callcc async square bind null function cc squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD xD xD function callcc cc xD async cc xD code pre xD div xD div xD ppThe function codecallcc code can be used to implement complex control flow structures such as try catch blocks coroutines generators href https github com aaditmshah fiber rel noreferrer fibers etc My asynchronous callcc function doesn return timeout id It returns undefined However the return value does not really matter because the code is asynchronous The result is passed to the callback function cc pI believe that continuations are special case of callbacks function may callback any number of functions any number of times For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD for var lt length xD callback array array xD code pre xD div xD div xD ppHowever if function calls back another function as the last thing it does then the second function is called continuation of the first For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD xD This is the last thing forEach does xD cont is continuation of forEach xD cont xD xD function cont index xD if index lt length xD callback array index array index xD This is the last thing cont does xD cont is continuation of itself xD cont index xD xD xD code pre xD div xD div xD ppIf function calls another function as the last thing it does then it called tail call Some languages like Scheme perform tail call optimizations This means that the tail call does not incur the full overhead of function call Instead it implemented as simple goto with the stack frame of the calling function replaced by the stack frame of the tail call pp strongBonus strong Proceeding to continuation passing style Consider the following program pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return xD code pre xD div xD div xD ppNow if every operation including addition multiplication etc were written in the form of functions then we would have pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return add square square xD xD xD function square xD return multiply xD xD xD function multiply xD return xD xD xD function add xD return xD code pre xD div xD div xD ppIn addition if we weren allowed to return any values then we would have to use continuations as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD square function squared xD square function squared xD add squared squared cont xD xD xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD code pre xD div xD div xD ppThis style of programming in which you are not allowed to return values and hence you must resort to passing continuations around is called continuation passing style ppThere are however two problems with continuation passing style polliPassing around continuations increases the size of the call stack Unless you re using language like Scheme which eliminates tail calls you ll risk running out of stack space liliIt pain to write nested functions li olpThe first problem can be easily solved in JavaScript by calling continuations asynchronously By calling the continuation asynchronously the function returns before the continuation is called Hence the call stack size doesn increase pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD square async function squared xD square async function squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD code pre xD div xD div xD ppThe second problem is usually solved using function called codecall with current continuation code which is often abbreviated as codecallcc code Unfortunately codecallcc code can be fully implemented in JavaScript but we could write replacement function for most of its use cases pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD var squared callcc square bind null xD var squared callcc square bind null xD add squared squared cont xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD xD xD function callcc xD var cc function xD cc xD xD xD cc xD xD return cc xD code pre xD div xD div xD ppThe codecallcc code function takes function codef code and applies it to the codecurrent continuation code abbreviated as codecc code The codecurrent continuation code is continuation function which wraps up the rest of the function body after the call to codecallcc code ppConsider the body of the function codepythagoras code ppre codevar squared callcc square bind null var squared callcc square bind null add squared squared cont code prepThe codecurrent continuation code of the second codecallcc code is ppre codefunction cc squared add squared squared cont code prepSimilarly the codecurrent continuation code of the first codecallcc code is ppre codefunction cc squared var squared callcc square bind null add squared squared cont code prepSince the codecurrent continuation code of the first codecallcc code contains another codecallcc code it must be converted to continuation passing style ppre codefunction cc squared square function cc squared add squared squared cont code prepSo essentially codecallcc code logically converts the entire function body back to what we started from and gives those anonymous functions the name codecc code The pythagoras function using this implementation of callcc becomes then ppre codefunction pythagoras cont callcc function cc square function squared square function squared add squared squared cont code prepAgain you can implement codecallcc code in JavaScript but you can implement it the continuation passing style in JavaScript as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD callcc async square bind null function cc squared xD callcc async square bind null function cc squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD xD xD function callcc cc xD async cc xD code pre xD div xD div xD ppThe function codecallcc code can be used to implement complex control flow structures such as try catch blocks coroutines generators href https github com aaditmshah fiber rel noreferrer fibers etc No pythagoras async alert does not run anything in parallel Everything is sequential You couldn make it parallel even if you wanted to because JavaScript is inherently sequential The only way to run computations in parallel in JavaScript is to use Web Workers separate threads Finally this is just didactic example Hence made everything asynchronous pI believe that continuations are special case of callbacks function may callback any number of functions any number of times For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD for var lt length xD callback array array xD code pre xD div xD div xD ppHowever if function calls back another function as the last thing it does then the second function is called continuation of the first For example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array xD xD forEach array function element array index xD array index element xD xD xD console log array xD xD function forEach array callback xD var length array length xD xD This is the last thing forEach does xD cont is continuation of forEach xD cont xD xD function cont index xD if index lt length xD callback array index array index xD This is the last thing cont does xD cont is continuation of itself xD cont index xD xD xD code pre xD div xD div xD ppIf function calls another function as the last thing it does then it called tail call Some languages like Scheme perform tail call optimizations This means that the tail call does not incur the full overhead of function call Instead it implemented as simple goto with the stack frame of the calling function replaced by the stack frame of the tail call pp strongBonus strong Proceeding to continuation passing style Consider the following program pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return xD code pre xD div xD div xD ppNow if every operation including addition multiplication etc were written in the form of functions then we would have pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconsole log pythagoras xD xD function pythagoras xD return add square square xD xD xD function square xD return multiply xD xD xD function multiply xD return xD xD xD function add xD return xD code pre xD div xD div xD ppIn addition if we weren allowed to return any values then we would have to use continuations as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD square function squared xD square function squared xD add squared squared cont xD xD xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD code pre xD div xD div xD ppThis style of programming in which you are not allowed to return values and hence you must resort to passing continuations around is called continuation passing style ppThere are however two problems with continuation passing style polliPassing around continuations increases the size of the call stack Unless you re using language like Scheme which eliminates tail calls you ll risk running out of stack space liliIt pain to write nested functions li olpThe first problem can be easily solved in JavaScript by calling continuations asynchronously By calling the continuation asynchronously the function returns before the continuation is called Hence the call stack size doesn increase pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD square async function squared xD square async function squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD code pre xD div xD div xD ppThe second problem is usually solved using function called codecall with current continuation code which is often abbreviated as codecallcc code Unfortunately codecallcc code can be fully implemented in JavaScript but we could write replacement function for most of its use cases pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codepythagoras console log xD xD function pythagoras cont xD var squared callcc square bind null xD var squared callcc square bind null xD add squared squared cont xD xD xD function square cont xD multiply cont xD xD xD function multiply cont xD cont xD xD xD function add cont xD cont xD xD xD function callcc xD var cc function xD cc xD xD xD cc xD xD return cc xD code pre xD div xD div xD ppThe codecallcc code function takes function codef code and applies it to the codecurrent continuation code abbreviated as codecc code The codecurrent continuation code is continuation function which wraps up the rest of the function body after the call to codecallcc code ppConsider the body of the function codepythagoras code ppre codevar squared callcc square bind null var squared callcc square bind null add squared squared cont code prepThe codecurrent continuation code of the second codecallcc code is ppre codefunction cc squared add squared squared cont code prepSimilarly the codecurrent continuation code of the first codecallcc code is ppre codefunction cc squared var squared callcc square bind null add squared squared cont code prepSince the codecurrent continuation code of the first codecallcc code contains another codecallcc code it must be converted to continuation passing style ppre codefunction cc squared square function cc squared add squared squared cont code prepSo essentially codecallcc code logically converts the entire function body back to what we started from and gives those anonymous functions the name codecc code The pythagoras function using this implementation of callcc becomes then ppre codefunction pythagoras cont callcc function cc square function squared square function squared add squared squared cont code prepAgain you can implement codecallcc code in JavaScript but you can implement it the continuation passing style in JavaScript as follows pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeFunction prototype async async xD xD pythagoras async console log xD xD function pythagoras cont xD callcc async square bind null function cc squared xD callcc async square bind null function cc squared xD add async squared squared cont xD xD xD xD xD function square cont xD multiply async cont xD xD xD function multiply cont xD cont async xD xD xD function add cont xD cont async xD xD xD function async xD setTimeout bind null this apply null arguments xD xD xD function callcc cc xD async cc xD code pre xD div xD div xD ppThe function codecallcc code can be used to implement complex control flow structures such as try catch blocks coroutines generators href https github com aaditmshah fiber rel noreferrer fibers etc The callcc implementation that you linked to is the way callcc is defined for the continuation monad in Haskell You could do something similar in JavaScript as well but it wouldn look very different than my example because JavaScript doesn have Haskell do notation Hence you ll be stuck in callback hell anyway pI think what you want is an href http en wikipedia org wiki Join SQL Inner join rel noreferrer title Join SQL Wikipedia the free encyclopedia inner join which is simple enough to implement in JavaScript ppre codeconst innerJoin xs ys sel gt xs reduce zs gt ys reduce zs gt cartesian product all combinations zs concat sel filter out the rows and columns you want zs code prepFor the purpose of demonstration we ll use the following data set thank you ppre codeconst userProfiles id name Ashok id name Amit id name Rajeev const questions id text text1 createdBy id text text2 createdBy id text text3 createdBy id text text4 createdBy id text tex,,, 5 createdBy id text text6 createdBy code prepThis is how you would use it ppre codeconst result innerJoin userProfiles questions id uid name id text createdBy gt createdBy uid amp amp id text name code prepIn SQL terms this would be similar to ppre codeSELECT questions id questions text userProfiles nameFROM userProfiles INNER JOIN questionsON questions createdBy userProfiles id code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst innerJoin xs ys sel gt xD xs reduce zs gt xD ys reduce zs gt cartesian product all combinations xD zs concat sel filter out the rows and columns you want xD zs xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result innerJoin userProfiles questions xD id uid name id text createdBy gt xD createdBy uid amp amp id text name xD xD console log result code pre xD div xD div xD phrp strongEdit strong However this is not the best solution Since the above solution loops through the href http en wikipedia org wiki Cartesian product rel noreferrer title Cartesian product Wikipedia the free encyclopedia Cartesian product it takes codeO code time to run With little bit of modification we can make it run in codeO code time href https stackoverflow com 17500750 783743 found it first ppre codeconst equijoin xs ys primary foreign sel gt const ix xs reduce ix row gt loop through items ix set row primary row populate index for primary table new Map create an index for primary table return ys map row gt loop through items sel ix get row foreign get corresponding row from primary row select only the columns you need code prepNow you could use it as follows ppre codeconst result equijoin userProfiles questions id createdBy name id text gt id text name code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst equijoin xs ys primary foreign sel gt xD const ix xs reduce ix row gt ix set row primary row new Map xD return ys map row gt sel ix get row foreign row xD xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result equijoin userProfiles questions id createdBy xD name id text gt id text name xD xD console log result code pre xD div xD div xD That because your data is inconsistent The createdBy property in the questions relation is foreign key https en wikipedia org wiki Foreign key which means that it must have corresponding primary key https en wikipedia org wiki Primary key id property in the userProfiles relation However the questions with id and are created by the user with id and that user doesn exist in your userProfiles relation There nothing wrong with my code pI think what you want is an href http en wikipedia org wiki Join SQL Inner join rel noreferrer title Join SQL Wikipedia the free encyclopedia inner join which is simple enough to implement in JavaScript ppre codeconst innerJoin xs ys sel gt xs reduce zs gt ys reduce zs gt cartesian product all combinations zs concat sel filter out the rows and columns you want zs code prepFor the purpose of demonstration we ll use the following data set thank you ppre codeconst userProfiles id name Ashok id name Amit id name Rajeev const questions id text text1 createdBy id text text2 createdBy id text text3 createdBy id text text4 createdBy id text text5 createdBy id text text6 createdBy code prepThis is how you would use it ppre codeconst result innerJoin userProfiles questions id uid name id text createdBy gt createdBy uid amp amp id text name code prepIn SQL terms this would be similar to ppre codeSELECT questions id questions text userProfiles nameFROM userProfiles INNER JOIN questionsON questions createdBy userProfiles id code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst innerJoin xs ys sel gt xD xs reduce zs gt xD ys reduce zs gt cartesian product all combinations xD zs concat sel filter out the rows and columns you want xD zs xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result innerJoin userProfiles questions xD id uid name id text createdBy gt xD createdBy uid amp amp id text name xD xD console log result code pre xD div xD div xD phrp strongEdit strong However this is not the best solution Since the above solution loops through the href http en wikipedia org wiki Cartesian product rel noreferrer title Cartesian product Wikipedia the free encyclopedia Cartesian product it takes codeO code time to run With little bit of modification we can make it run in codeO code time href https stackoverflow com 17500750 783743 found it first ppre codeconst equijoin xs ys primary foreign sel gt const ix xs reduce ix row gt loop through items ix set row primary row populate index for primary table new Map create an index for primary table return ys map row gt loop through items sel ix get row foreign get corresponding row from primary row select only the columns you need code prepNow you could use it as follows ppre codeconst result equijoin userProfiles questions id createdBy name id text gt id text name code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst equijoin xs ys primary foreign sel gt xD const ix xs reduce ix row gt ix set row primary row new Map xD return ys map row gt sel ix get row foreign row xD xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result equijoin userProfiles questions id createdBy xD name id text gt id text name xD xD console log result code pre xD div xD div xD left outer join is not the same as an equi join or an inner join Hence you re using the wrong function If you intended to use an equi join then your data is inconsistent or incomplete pI think what you want is an href http en wikipedia org wiki Join SQL Inner join rel noreferrer title Join SQL Wikipedia the free encyclopedia inner join which is simple enough to implement in JavaScript ppre codeconst innerJoin xs ys sel gt xs reduce zs gt ys reduce zs gt cartesian product all combinations zs concat sel filter out the rows and columns you want zs code prepFor the purpose of demonstration we ll use the following data set thank you ppre codeconst userProfiles id name Ashok id name Amit id name Rajeev const questions id text text1 createdBy id text text2 createdBy id text text3 createdBy id text text4 createdBy id text text5 createdBy id text text6 createdBy code prepThis is how you would use it ppre codeconst result innerJoin userProfiles questions id uid name id text createdBy gt createdBy uid amp amp id text name code prepIn SQL terms this would be similar to ppre codeSELECT questions id questions text userProfiles nameFROM userProfiles INNER JOIN questionsON questions createdBy userProfiles id code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst innerJoin xs ys sel gt xD xs reduce zs gt xD ys reduce zs gt cartesian product all combinations xD zs concat sel filter out the rows and columns you want xD zs xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result innerJoin userProfiles questions xD id uid name id text createdBy gt xD createdBy uid amp amp id text name xD xD console log result code pre xD div xD div xD phrp strongEdit strong However this is not the best solution Since the above solution loops through the href http en wikipedia org wiki Cartesian product rel noreferrer title Cartesian product Wikipedia the free encyclopedia Cartesian product it takes codeO code time to run With little bit of modification we can make it run in codeO code time href https stackoverflow com 17500750 783743 found it first ppre codeconst equijoin xs ys primary foreign sel gt const ix xs reduce ix row gt loop through items ix set row primary row populate index for primary table new Map create an index for primary table return ys map row gt loop through items sel ix get row foreign get corresponding row from primary row select only the columns you need code prepNow you could use it as follows ppre codeconst result equijoin userProfiles questions id createdBy name id text gt id text name code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst equijoin xs ys primary foreign sel gt xD const ix xs reduce ix row gt ix set row primary row new Map xD return ys map row gt sel ix get row foreign row xD xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result equijoin userProfiles questions id createdBy xD name id text gt id text name xD xD console log result code pre xD div xD div xD Considering that my function is called innerJoin it is supposed to work like an inner join Furthermore an equi join https en wikipedia org wiki Join SQL Equi join is specific type of inner join Hence don know what you re complaining about My function does what is supposed to do It doesn have any bugs pI think what you want is an href http en wikipedia org wiki Join SQL Inner join rel noreferrer title Join SQL Wikipedia the free encyclopedia inner join which is simple enough to implement in JavaScript ppre codeconst innerJoin xs ys sel gt xs reduce zs gt ys reduce zs gt cartesian product all combinations zs concat sel filter out the rows and columns you want zs code prepFor the purpose of demonstration we ll use the following data set thank you ppre codeconst userProfiles id name Ashok id name Amit id name Rajeev const questions id text text1 createdBy id text text2 createdBy id text text3 createdBy id text text4 createdBy id text text5 createdBy id text text6 createdBy code prepThis is how you would use it ppre codeconst result innerJoin userProfiles questions id uid name id text createdBy gt createdBy uid amp amp id text name code prepIn SQL terms this would be similar to ppre codeSELECT questions id questions text userProfiles nameFROM userProfiles INNER JOIN questionsON questions createdBy userProfiles id code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst innerJoin xs ys sel gt xD xs reduce zs gt xD ys reduce zs gt cartesian product all combinations xD zs concat sel filter out the rows and columns you want xD zs xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result innerJoin userProfiles questions xD id uid name id text createdBy gt xD createdBy uid amp amp id text name xD xD console log result code pre xD div xD div xD phrp strongEdit strong However this is not the best solution Since the above solution loops through the href http en wikipedia org wiki Cartesian product rel noreferrer title Cartesian product Wikipedia the free encyclopedia Cartesian product it takes codeO code time to run With little bit of modification we can make it run in codeO code time href https stackoverflow com 17500750 783743 found it first ppre codeconst equijoin xs ys primary foreign sel gt const ix xs reduce ix row gt loop through items ix set row primary row populate index for primary table new Map create an index for primary table return ys map row gt loop through items sel ix get row foreign get corresponding row from primary row select only the columns you need code prepNow you could use it as follows ppre codeconst result equijoin userProfiles questions id createdBy name id text gt id text name code prepPutting it all together pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst equijoin xs ys primary foreign sel gt xD const ix xs reduce ix row gt ix set row primary row new Map xD return ys map row gt sel ix get row foreign row xD xD xD const userProfiles xD id name Ashok xD id name Amit xD id name Rajeev xD xD xD const questions xD id text text1 createdBy xD id text text2 createdBy xD id text text3 createdBy xD id text text4 createdBy xD id text text5 createdBy xD id text text6 createdBy xD xD xD const result equijoin userProfiles questions id createdBy xD name id text gt id text name xD xD console log result code pre xD div xD div xD Also equi join is not supposed to behave like left join If you want to do left join then use left join Don use an equi join You can eat your cake and have it too You can use an equi join and then complain when it doesn work because your data is inconsistent and yes your data is inconsistent because questions and are created by user and user DOES NOT EXIST pI know that this answer is years late but really think the current answers do not provide enough information about href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters how prototypal inheritance is better than classical inheritance ppFirst let see the most common arguments JavaScript programmers state in defence of prototypal inheritance taking these arguments from the current pool of answers polliIt simple liliIt powerful liliIt leads to smaller less redundant code liliIt dynamic and hence it better for dynamic languages li olpNow these arguments are all valid but nobody has bothered explaining why It like telling child that studying Maths is important Sure it is but the child certainly doesn care and you can make child like Maths by saying that it important ppI think the problem with prototypal inheritance is that it explained from the perspective of JavaScript love JavaScript but prototypal inheritance in JavaScript is wrong Unlike classical inheritance there are two patterns of prototypal inheritance polliThe prototypal pattern of prototypal inheritance liliThe constructor pattern of prototypal inheritance li olpUnfortunately JavaScript uses the constructor pattern of prototypal inheritance This is because when JavaScript was created href https brendaneich com rel nofollow noreferrer title Brendan Eich Brendan Eich the creator of JS wanted it to look like Java which has classical inheritance pblockquote pAnd we were pushing it as little brother to Java as complementary language like Visual Basic was to in Microsoft’s language families at the time blockquotepThis is bad because when people use constructors in JavaScript they think of constructors inheriting from other constructors This is wrong In prototypal inheritance objects inherit from other objects Constructors never come into the picture This is what confuses most people ppPeople from languages like Java which has classical inheritance get even more confused because although constructors look like classes they don behave like classes As href http www crockford com rel nofollow noreferrer title Douglas Crockford 39 Wrrrld Wide Web Douglas Crockford stated pblockquote pThis indirection was intended to make the language seem more familiar to classically trained programmers but failed to do that as we can see from the very low opinion Java programmers have of JavaScript JavaScript’s constructor pattern did not appeal to the classical crowd It also obscured JavaScript’s true prototypal nature As result there are very few programmers who know how to use the language effectively blockquotepThere you have it Straight from the horse mouth ph1True Prototypal Inheritance h1pPrototypal inheritance is all about objects Objects inherit properties from other objects That all there is to it There are two ways of creating objects using prototypal inheritance polliCreate brand new object liliClone an existing object and extend it li olp strongNote strong JavaScript offers two ways to clone an object href http aaditmshah github io why prototypal inheritance matters toc rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters delegation and href http aaditmshah github io why prototypal inheritance matters toc 10 rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters concatenation Henceforth ll use the word clone to exclusively refer to inheritance via delegation and the word copy to exclusively refer to inheritance via concatenation ppEnough talk Let see some examples Say have circle of radius code5 code ppre codevar circle radius code prepWe can calculate the area and the circumference of the circle from its radius ppre codecircle area function var radius this radius return Math PI radius radius circle circumference function return Math PI this radius code prepNow want to create another circle of radius code10 code One way to do this would be ppre codevar circle2 radius 10 area circle area circumference circle circumference code prepHowever JavaScript provides better way href http aaditmshah github io why prototypal inheritance matters delegation or differential inheritance rel nofollow noreferrer delegation Crockford href http crockford com javascript prototypal html rel nofollow noreferrer title Prototypal Inheritance codeObject create code function is used to do this ppre codevar circle2 Object create circle circle2 radius 10 code prepThat all You just did prototypal inheritance in JavaScript Wasn that simple You take an object clone it change whatever you need to and hey presto you got yourself brand new object ppNow you might ask How is this simple Every time want to create new circle need to clone codecircle code and manually assign it radius Well the solution is to use function to do the heavy lifting for you ppre codefunction createCircle radius var newCircle Object create circle newCircle radius radius return newCircle var circle2 createCircle 10 code prepIn fact you can combine all of this into single object literal as follows ppre codevar circle radius create function radius var circle Object create this circle radius radius return circle area function var radius this radius return Math PI radius radius circumference function return Math PI this radius var circle2 circle create 10 code preh1Prototypal Inheritance in JavaScript h1pIf you notice in the above program the codecreate code function creates clone of codecircle code assigns new coderadius code to it and then returns it This is exactly what constructor does in JavaScript ppre codefunction Circle radius this radius radius Circle prototype area function var radius this radius return Math PI radius radius Circle prototype circumference function return Math PI this radius var circle new Circle var circle2 new Circle 10 code prepThe constructor pattern in JavaScript is the prototypal pattern inverted Instead of creating an object you create constructor The codenew code keyword binds the codethis code pointer inside the constructor to clone of the codeprototype code of the constructor ppSounds confusing It because the constructor pattern in JavaScript unnecessarily complicates things This is what most programmers find difficult to understand ppInstead of thinking of objects inheriting from other objects they think of constructors inheriting from other constructors and then become utterly confused ppThere whole bunch of other reasons why the constructor pattern in JavaScript should be avoided You can read about them in my blog post here href http aaditmshah github io why prototypal inheritance matters constructors vs prototypes rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Constructors vs Prototypes phrpSo what are the benefits of prototypal inheritance over classical inheritance Let go through the most common arguments again and explain emwhy em ph11 Prototypal Inheritance is Simple h1p href https stackoverflow com users 5445 cms title User CMS Stack Overflow CMS states in his answer pblockquote pIn my opinion the major benefit of prototypal inheritance is its simplicity blockquotepLet consider what we just did We created an object codecircle code which had radius of code5 code Then we cloned it and gave the clone radius of code10 code ppHence we only need two things to make prototypal inheritance work polliA way to create new object object literals liliA way to extend an existing object codeObject create code li olpIn contrast classical inheritance is much more complicated In classical inheritance you have polliClasses liliObject liliInterfaces liliAbstract Classes liliFinal Classes liliVirtual Base Classes liliConstructors liliDestructors li olpYou get the idea The point is that prototypal inheritance is easier to understand easier to implement and easier to reason about ppAs Steve Yegge puts it in his classical blog post href http steve yegge blogspot in 2008 02 portrait of n00b html rel nofollow noreferrer title Stevey 39 Blog Rants Portrait of N00b Portrait of N00b pblockquote pMetadata is any kind of description or model of something else The comments in your code are just natural language description of the computation What makes metadata meta data is that it not strictly necessary If have dog with some pedigree paperwork and lose the paperwork still have perfectly valid dog blockquotepIn the same sense classes are just meta data Classes aren strictly required for inheritance However some people usually n00bs find classes more comfortable to work with It gives them false sense of security pblockquote pWell we also know that static types are just metadata They re specialized kind of comment targeted at two kinds of readers programmers and compilers Static types tell story about the computation presumably to help both reader groups understand the intent of the program But the static types can be thrown away at runtime because in the end they re just stylized comments They re like pedigree paperwork it might make certain insecure personality type happier about their dog but the dog certainly doesn care blockquotepAs stated earlier classes give people false sense of security For example you get too many codeNullPointerException codes in Java even when your code is perfectly legible find classical inheritance usually gets in the way of programming but maybe that just Java Python has an amazing classical inheritance system ph12 Prototypal Inheritance is Powerful h1pMost programmers who come from classical background argue that classical inheritance is more powerful than prototypal inheritance because it has polliPrivate variables liliMultiple inheritance li olpThis claim is false We already know that JavaScript supports href http javascript crockford com private html rel nofollow noreferrer title Private Members in JavaScript private variables via closures but what about multiple inheritance Objects in JavaScript only have one prototype ppThe truth is that prototypal inheritance supports inheriting from multiple prototypes Prototypal inheritance simply means one object inheriting from another object There are actually href http aaditmshah github io why prototypal inheritance matters two methods of prototypal inheritance rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters two ways to implement prototypal inheritance polliDelegation or Differential Inheritance liliCloning or Concatenative Inheritance li olpYes JavaScript only allows objects to delegate to one other object However it allows you to copy the properties of an arbitrary number of objects For example href http underscorejs org extend rel nofollow noreferrer title Underscore js code extend code does just this ppOf course many programmers don consider this to be true inheritance because href https developer mozilla org en US docs Web JavaScript Reference Operators instanceof rel nofollow noreferrer title instanceof JavaScript MDN codeinstanceof code and href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object isPrototypeOf rel nofollow noreferrer title Object isPrototypeOf JavaScript MDN codeisPrototypeOf code say otherwise However this can be easily remedied by storing an array of prototypes on every object which inherits from prototype via concatenation ppre codefunction copyOf object prototype var prototypes object prototypes var prototypeOf Object isPrototypeOf return prototypes indexOf prototype gt prototypes some prototypeOf prototype code prepHence prototypal inheritance is just as powerful as classical inheritance In fact it much more powerful than classical inheritance because in prototypal inheritance you can hand pick which properties to copy and which properties to omit from different prototypes ppIn classical inheritance it impossible or at least very difficult to choose which properties you want to inherit They use virtual base classes and interfaces to solve href http en wikipedia org wiki Multiple inheritance The diamond problem rel nofollow noreferrer title Multiple inheritance Wikipedia the free encyclopedia the diamond problem ppIn JavaScript however you ll most likely never hear of the diamond problem because you can control exactly which properties you wish to inherit and from which prototypes ph13 Prototypal Inheritance is Less Redundant h1pThis point is little more difficult to explain because classical inheritance doesn necessarily lead to more redundant code In fact inheritance whether classical or prototypal is used to reduce the redundancy in code ppOne argument could be that most programming languages with classical inheritance are statically typed and require the user to explicitly declare types unlike Haskell which has implicit static typing Hence this leads to more verbose code ppJava is notorious for this behavior distinctly remember href https twitter com munificentbob rel nofollow noreferrer title Bob Nystrom munificentbob on Twitter Bob Nystrom mentioning the following anecdote in his blog post about href http journal stuffwithstuff com 2011 03 19 pratt parsers expression parsing made easy rel nofollow noreferrer title Pratt Parsers Expression Parsing Made Easy ndash journal stuffwithstuff com Pratt Parsers pblockquote pYou gotta love Java please sign it in quadruplicate level of bureaucracy here blockquotepAgain think that only because Java sucks so much ppOne valid argument is that not all languages which have classical inheritance support multiple inheritance Again Java comes to mind Yes Java has interfaces but that not sufficient Sometimes you really need multiple inheritance ppSince prototypal inheritance allows for multiple inheritance code which requires multiple inheritance is less redundant if written using prototypal inheritance rather than in language which has classical inheritance but no multiple inheritance ph14 Prototypal Inheritance is Dynamic h1pOne of the most important advantages of prototypal inheritance is that you can add new properties to prototypes after they are created This allows you to add new methods to prototype which will be automatically made available to all the objects which delegate to that prototype ppThis is not possible in classical inheritance because once class is created you can modify it at runtime This is probably the single biggest advantage of prototypal inheritance over classical inheritance and it should have been at the top However like saving the best for the end ph1Conclusion h1pPrototypal inheritance matters It important to educate JavaScript programmers on why to abandon the constructor pattern of prototypal inheritance in favor of the prototypal pattern of prototypal inheritance ppWe need to start teaching JavaScript correctly and that means showing new programmers how to write code using the prototypal pattern instead of the constructor pattern ppNot only will it be it easier to explain prototypal inheritance using the prototypal pattern but it will also make better programmers ppIf you liked this answer then you should also read my blog post on href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Why Prototypal Inheritance Matters Trust me you will not be disappointed Yes it is really inheritance We re taking something abstract description of circle and making something concrete particular circle That inheritance in nutshell think you re getting confused because prototypes conflate instantiation with inheritance In classical languages you have Circle class and you be able to make instances of Circle using new You consider this different from inheritance In prototypal languages they re the same thing Read the following answer wrote for more information http stackoverflow com 19640910 783743 pOkay let play little mind game pp img src https stack imgur com ZNn56 png alt ppFrom the above image we can see polliWhen we create function like codefunction Foo code JavaScript creates codeFunction code instance liliEvery codeFunction code instance the constructor function has property codeprototype code which is pointer liliThe codeprototype code property of the constructor function points to its prototype object liliThe prototype object has property codeconstructor code which is also pointer liliThe codeconstructor code property of the prototype object points back to its constructor function liliWhen we create new instance of codeFoo code like codenew Foo code JavaScript creates new object liliThe internal code proto code property of the instance points to the prototype of the constructor li olpNow the question arises that why doesn JavaScript attach the codeconstructor code property to the instance object instead of the prototype Consider ppre codefunction defclass prototype var constructor prototype constructor constructor prototype prototype return constructor var Square defclass constructor function side this side side area function return this side this side var square new Square 10 alert square area 100 code prepAs you can see the codeconstructor code property is just another method of the prototype like codearea code in the example above What makes the codeconstructor code property special is that it used to initialize an instance of the prototype Otherwise it exactly the same as any other method of the prototype ppDefining the codeconstructor code property on the prototype is advantageous for the following reasons polliIt logically correct For example consider codeObject prototype code The codeconstructor code property of codeObject prototype code points to codeObject code If the codeconstructor code property was defined on the instance then codeObject prototype constructor code would be codeundefined code because codeObject prototype code is an instance of codenull code liliIt treated no differently from other prototype methods This makes the job of codenew code easier since it doesn need to define the codeconstructor code property on every instance liliEvery instance shares the same codeconstructor code property Hence it e,,,,,,,, "ficient li olpN""",good answer nice answer enlighten nice answer nice answer nice answer popular question popular question nice question notable question popular question nice answer great answer nice answer nice answer enlighten good answer nice answer enlighten notable question yearle documentation pioneer good answer socratic good answer necromancer nice answer enlighten nice answer enlighten popular question famous question caucus good answer nice answer popular question nice question nice answer popular question famous question popular question great question popular question nice answer good answer nice answer nice answer announcer populist notable question popular question revival popular question nice answer yearle good question popular question popular question announcer nice answer popular question popular question popular question sportsmanship nice question nice answer custodian nice answer nice answer enlighten good question popular question documentation user electorate popular question good question popular question notable question notable question good answer famous question good answer announcer notable question nice answer announcer notable question nice answer enlighten popular question caucus constituent nice answer good question nice answer famous question popular question revival popular question announcer yearle famous question nice answer popular question popular question nice answer great answer announcer notable question popular question popular question notable question notable question nice answer universal quantification typeclass constraint composing function haskell lense rank type plense href https hackage haskell org package lens tutorial docs control lens tutorial html nofollow noreferrer compose ordinary function codelen forall functor code prepnow code lens config foo lens foo string lens config string code prepexpande code forall functor foo foo config config forall functor string string foo foo forall functor string string config config code prepand type function composition code code prepwhich lack universal quantification typeclass constraint question feature treat compiler type checker function composition operator composing lense ppmy guess function universally quantify typeclass constraint long match function compose pwhy value class lang hs prettyprint override code cfoo lens bbar lens code prepthe type codefoo code codebar code expand class lang hs prettyprint override codefoo functor abar functor code prepnote leave codeforall code implicit change codef code codeg code codebar code codef code codefoo code ppanyway apply code code codefoo code class lang hs prettyprint override code foo functor foo functor code prepthus code foo code type codefunctor code codefunctor code constraint simply copy ppnow apply code foo code codebar code class lang hs prettyprint override code foo functor bar functor foo bar functor code prepthus code foo bar code type codefunctor code mean codelen code codefunctor code codefunctor code work pi continuation special case callback function callback number function number time div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd var lt length xd callback array array xd code xd div xd div xd pphowever function call function thing function call continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd xd thing foreach xd cont continuation foreach xd cont xd xd function cont index xd index lt length xd callback array index array index xd thing cont xd cont continuation xd cont index xd xd xd code xd div xd div xd ppif function call function thing call tail language scheme perform tail optimization mean tail incur overhead function implement simple goto stack frame call function replace stack frame tail strongbonus strong proceed continuation pass style program div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return xd code xd div xd div xd ppnow operation include addition multiplication write form function div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return add square square xd xd xd function square xd return multiply xd xd xd function multiply xd return xd xd xd function add xd return xd code xd div xd div xd ppin addition allow return value continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd square function square xd square function square xd add square square cont xd xd xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd code xd div xd div xd ppthis style programming allow return value resort pass continuation call continuation pass style ppthere problem continuation pass style pollipasse continuation increase size stack language scheme eliminate tail call risk run stack space liliit pain write nest function li problem easily solve javascript call continuation asynchronously call continuation asynchronously function return continuation call stack size increase div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd square async function square xd square async function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd code xd div xd div xd ppthe problem solve function call codecall current continuation code abbreviate codecallcc code codecallcc code fully implement javascript write replacement function case div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd var square callcc square bind null xd var square callcc square bind null xd add square square cont xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd xd xd function callcc xd var function xd xd xd xd xd xd return xd code xd div xd div xd ppthe codecallcc code function take function codef code apply codecurrent continuation code abbreviate codecc code codecurrent continuation code continuation function wrap rest function body codecallcc code ppconsider body function codepythagora code codevar square callcc square bind null var square callcc square bind null add square square cont code prepthe codecurrent continuation code codecallcc code codefunction square add square square cont code prepsimilarly codecurrent continuation code codecallcc code codefunction square var square callcc square bind null add square square cont code prepsince codecurrent continuation code codecallcc code codecallcc code convert continuation pass style codefunction square square function square add square square cont code prepso essentially codecallcc code logically convert entire function body start anonymous function codecc code pythagora function implementation callcc codefunction pythagora cont callcc function square function square square function square add square square cont code prepagain implement codecallcc code javascript implement continuation pass style javascript div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd callcc async square bind null function square xd callcc async square bind null function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd xd xd function callcc xd async xd code xd div xd div xd ppthe function codecallcc code implement complex control flow structure catch block coroutine generator href https github aaditmshah fiber noreferrer fiber proper tail call support major browser simple combinator lift function continuation monad sufficient body function write continuation pass style tedious single function continuation javascript javascript advanced continuation support http chumsley org jwacs program transformer make asynchronous programming simple pi continuation special case callback function callback number function number time div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd var lt length xd callback array array xd code xd div xd div xd pphowever function call function thing function call continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd xd thing foreach xd cont continuation foreach xd cont xd xd function cont index xd index lt length xd callback array index array index xd thing cont xd cont continuation xd cont index xd xd xd code xd div xd div xd ppif function call function thing call tail language scheme perform tail optimization mean tail incur overhead function implement simple goto stack frame call function replace stack frame tail strongbonus strong proceed continuation pass style program div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return xd code xd div xd div xd ppnow operation include addition multiplication write form function div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return add square square xd xd xd function square xd return multiply xd xd xd function multiply xd return xd xd xd function add xd return xd code xd div xd div xd ppin addition allow return value continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd square function square xd square function square xd add square square cont xd xd xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd code xd div xd div xd ppthis style programming allow return value resort pass continuation call continuation pass style ppthere problem continuation pass style pollipasse continuation increase size stack language scheme eliminate tail call risk run stack space liliit pain write nest function li problem easily solve javascript call continuation asynchronously call continuation asynchronously function return continuation call stack size increase div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd square async function square xd square async function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd code xd div xd div xd ppthe problem solve function call codecall current continuation code abbreviate codecallcc code codecallcc code fully implement javascript write replacement function case div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd var square callcc square bind null xd var square callcc square bind null xd add square square cont xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd xd xd function callcc xd var function xd xd xd xd xd xd return xd code xd div xd div xd ppthe codecallcc code function take function codef code apply codecurrent continuation code abbreviate codecc code codecurrent continuation code continuation function wrap rest function body codecallcc code ppconsider body function codepythagora code codevar square callcc square bind null var square callcc square bind null add square square cont code prepthe codecurrent continuation code codecallcc code codefunction square add square square cont code prepsimilarly codecurrent continuation code codecallcc code codefunction square var square callcc square bind null add square square cont code prepsince codecurrent continuation code codecallcc code codecallcc code convert continuation pass style codefunction square square function square add square square cont code prepso essentially codecallcc code logically convert entire function body start anonymous function codecc code pythagora function implementation callcc codefunction pythagora cont callcc function square function square square function square add square square cont code prepagain implement codecallcc code javascript implement continuation pass style javascript div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd callcc async square bind null function square xd callcc async square bind null function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd xd xd function callcc xd async xd code xd div xd div xd ppthe function codecallcc code implement complex control flow structure catch block coroutine generator href https github aaditmshah fiber noreferrer fiber asynchronous callcc function return timeout return undefined return matter code asynchronous result pass callback function pi continuation special case callback function callback number function number time div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd var lt length xd callback array array xd code xd div xd div xd pphowever function call function thing function call continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd xd thing foreach xd cont continuation foreach xd cont xd xd function cont index xd index lt length xd callback array index array index xd thing cont xd cont continuation xd cont index xd xd xd code xd div xd div xd ppif function call function thing call tail language scheme perform tail optimization mean tail incur overhead function implement simple goto stack frame call function replace stack frame tail strongbonus strong proceed continuation pass style program div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return xd code xd div xd div xd ppnow operation include addition multiplication write form function div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return add square square xd xd xd function square xd return multiply xd xd xd function multiply xd return xd xd xd function add xd return xd code xd div xd div xd ppin addition allow return value continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd square function square xd square function square xd add square square cont xd xd xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd code xd div xd div xd ppthis style programming allow return value resort pass continuation call continuation pass style ppthere problem continuation pass style pollipasse continuation increase size stack language scheme eliminate tail call risk run stack space liliit pain write nest function li problem easily solve javascript call continuation asynchronously call continuation asynchronously function return continuation call stack size increase div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd square async function square xd square async function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd code xd div xd div xd ppthe problem solve function call codecall current continuation code abbreviate codecallcc code codecallcc code fully implement javascript write replacement function case div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd var square callcc square bind null xd var square callcc square bind null xd add square square cont xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd xd xd function callcc xd var function xd xd xd xd xd xd return xd code xd div xd div xd ppthe codecallcc code function take function codef code apply codecurrent continuation code abbreviate codecc code codecurrent continuation code continuation function wrap rest function body codecallcc code ppconsider body function codepythagora code codevar square callcc square bind null var square callcc square bind null add square square cont code prepthe codecurrent continuation code codecallcc code codefunction square add square square cont code prepsimilarly codecurrent continuation code codecallcc code codefunction square var square callcc square bind null add square square cont code prepsince codecurrent continuation code codecallcc code codecallcc code convert continuation pass style codefunction square square function square add square square cont code prepso essentially codecallcc code logically convert entire function body start anonymous function codecc code pythagora function implementation callcc codefunction pythagora cont callcc function square function square square function square add square square cont code prepagain implement codecallcc code javascript implement continuation pass style javascript div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd callcc async square bind null function square xd callcc async square bind null function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd xd xd function callcc xd async xd code xd div xd div xd ppthe function codecallcc code implement complex control flow structure catch block coroutine generator href https github aaditmshah fiber noreferrer fiber pythagora async alert run parallel sequential make parallel want javascript inherently sequential run computation parallel javascript web worker separate thread finally didactic asynchronous pi continuation special case callback function callback number function number time div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd var lt length xd callback array array xd code xd div xd div xd pphowever function call function thing function call continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar array xd xd foreach array function element array index xd array index element xd xd xd console log array xd xd function foreach array callback xd var length array length xd xd thing foreach xd cont continuation foreach xd cont xd xd function cont index xd index lt length xd callback array index array index xd thing cont xd cont continuation xd cont index xd xd xd code xd div xd div xd ppif function call function thing call tail language scheme perform tail optimization mean tail incur overhead function implement simple goto stack frame call function replace stack frame tail strongbonus strong proceed continuation pass style program div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return xd code xd div xd div xd ppnow operation include addition multiplication write form function div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconsole log pythagora xd xd function pythagora xd return add square square xd xd xd function square xd return multiply xd xd xd function multiply xd return xd xd xd function add xd return xd code xd div xd div xd ppin addition allow return value continuation div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd square function square xd square function square xd add square square cont xd xd xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd code xd div xd div xd ppthis style programming allow return value resort pass continuation call continuation pass style ppthere problem continuation pass style pollipasse continuation increase size stack language scheme eliminate tail call risk run stack space liliit pain write nest function li problem easily solve javascript call continuation asynchronously call continuation asynchronously function return continuation call stack size increase div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd square async function square xd square async function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd code xd div xd div xd ppthe problem solve function call codecall current continuation code abbreviate codecallcc code codecallcc code fully implement javascript write replacement function case div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codepythagora console log xd xd function pythagora cont xd var square callcc square bind null xd var square callcc square bind null xd add square square cont xd xd xd function square cont xd multiply cont xd xd xd function multiply cont xd cont xd xd xd function add cont xd cont xd xd xd function callcc xd var function xd xd xd xd xd xd return xd code xd div xd div xd ppthe codecallcc code function take function codef code apply codecurrent continuation code abbreviate codecc code codecurrent continuation code continuation function wrap rest function body codecallcc code ppconsider body function codepythagora code codevar square callcc square bind null var square callcc square bind null add square square cont code prepthe codecurrent continuation code codecallcc code codefunction square add square square cont code prepsimilarly codecurrent continuation code codecallcc code codefunction square var square callcc square bind null add square square cont code prepsince codecurrent continuation code codecallcc code codecallcc code convert continuation pass style codefunction square square function square add square square cont code prepso essentially codecallcc code logically convert entire function body start anonymous function codecc code pythagora function implementation callcc codefunction pythagora cont callcc function square function square square function square add square square cont code prepagain implement codecallcc code javascript implement continuation pass style javascript div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codefunction prototype async async xd xd pythagora async console log xd xd function pythagora cont xd callcc async square bind null function square xd callcc async square bind null function square xd add async square square cont xd xd xd xd xd function square cont xd multiply async cont xd xd xd function multiply cont xd cont async xd xd xd function add cont xd cont async xd xd xd function async xd settimeout bind null apply null argument xd xd xd function callcc xd async xd code xd div xd div xd ppthe function codecallcc code implement complex control flow structure catch block coroutine generator href https github aaditmshah fiber noreferrer fiber callcc implementation link callcc define continuation monad haskell similar javascript javascript haskell notation stick callback hell pi href http wikipedia org wiki join sql join noreferrer title join sql wikipedia free encyclopedia join simple implement javascript codeconst innerjoin ys sel reduce ys reduce cartesian product combination concat sel filter row column code prepfor purpose demonstration datum set codeconst userprofile ashok amit rajeev const question text createdby text createdby text createdby text createdby text createdby text createdby code prepthis codeconst result innerjoin userprofile question uid text createdby createdby uid amp amp text code prepin sql term similar codeselect question question text userprofile namefrom userprofile join questionson question createdby userprofile code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst innerjoin ys sel xd reduce xd ys reduce cartesian product combination xd concat sel filter row column xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result innerjoin userprofile question xd uid text createdby xd createdby uid amp amp text xd xd console log result code xd div xd div xd phrp strongedit strong solution solution loop href http wikipedia org wiki cartesian product noreferrer title cartesian product wikipedia free encyclopedia cartesian product take codeo code time run bit modification make run codeo code time href https stackoverflow codeconst equijoin ys primary foreign sel const reduce row loop item set row primary row populate index primary table map create index primary table return ys map row loop item sel row foreign row primary row select column code prepnow codeconst result equijoin userprofile question createdby text text code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst equijoin ys primary foreign sel xd const reduce row set row primary row map xd return ys map row sel row foreign row xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result equijoin userprofile question createdby xd text text xd xd console log result code xd div xd div xd datum inconsistent createdby property question relation foreign key https wikipedia org wiki foreign key mean primary key https wikipedia org wiki primary key property userprofile relation question create user user exist userprofile relation wrong code pi href http wikipedia org wiki join sql join noreferrer title join sql wikipedia free encyclopedia join simple implement javascript codeconst innerjoin ys sel reduce ys reduce cartesian product combination concat sel filter row column code prepfor purpose demonstration datum set codeconst userprofile ashok amit rajeev const question text createdby text createdby text createdby text createdby text createdby text createdby code prepthis codeconst result innerjoin userprofile question uid text createdby createdby uid amp amp text code prepin sql term similar codeselect question question text userprofile namefrom userprofile join questionson question createdby userprofile code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst innerjoin ys sel xd reduce xd ys reduce cartesian product combination xd concat sel filter row column xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const,,,,,,, "result innerjoin userprofile question xd uid text createdby xd createdby uid amp amp text xd xd console log result code xd div xd div xd phrp strongedit strong solution solution loop href http wikipedia org wiki cartesian product noreferrer title cartesian product wikipedia free encyclopedia cartesian product take codeo code time run bit modification make run codeo code time href https stackoverflow codeconst equijoin ys primary foreign sel const reduce row loop item set row primary row populate index primary table map create index primary table return ys map row loop item sel row foreign row primary row select column code prepnow codeconst result equijoin userprofile question createdby text text code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst equijoin ys primary foreign sel xd const reduce row set row primary row map xd return ys map row sel row foreign row xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result equijoin userprofile question createdby xd text text xd xd console log result code xd div xd div xd leave outer join equi join join wrong function intend equi join datum inconsistent incomplete pi href http wikipedia org wiki join sql join noreferrer title join sql wikipedia free encyclopedia join simple implement javascript codeconst innerjoin ys sel reduce ys reduce cartesian product combination concat sel filter row column code prepfor purpose demonstration datum set codeconst userprofile ashok amit rajeev const question text createdby text createdby text createdby text createdby text createdby text createdby code prepthis codeconst result innerjoin userprofile question uid text createdby createdby uid amp amp text code prepin sql term similar codeselect question question text userprofile namefrom userprofile join questionson question createdby userprofile code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst innerjoin ys sel xd reduce xd ys reduce cartesian product combination xd concat sel filter row column xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result innerjoin userprofile question xd uid text createdby xd createdby uid amp amp text xd xd console log result code xd div xd div xd phrp strongedit strong solution solution loop href http wikipedia org wiki cartesian product noreferrer title cartesian product wikipedia free encyclopedia cartesian product take codeo code time run bit modification make run codeo code time href https stackoverflow codeconst equijoin ys primary foreign sel const reduce row loop item set row primary row populate index primary table map create index primary table return ys map row loop item sel row foreign row primary row select column code prepnow codeconst result equijoin userprofile question createdby text text code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst equijoin ys primary foreign sel xd const reduce row set row primary row map xd return ys map row sel row foreign row xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result equijoin userprofile question createdby xd text text xd xd console log result code xd div xd div xd function call innerjoin suppose work join equi join https wikipedia org wiki join sql equi join specific type join complain function suppose bug pi href http wikipedia org wiki join sql join noreferrer title join sql wikipedia free encyclopedia join simple implement javascript codeconst innerjoin ys sel reduce ys reduce cartesian product combination concat sel filter row column code prepfor purpose demonstration datum set codeconst userprofile ashok amit rajeev const question text createdby text createdby text createdby text createdby text createdby text createdby code prepthis codeconst result innerjoin userprofile question uid text createdby createdby uid amp amp text code prepin sql term similar codeselect question question text userprofile namefrom userprofile join questionson question createdby userprofile code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst innerjoin ys sel xd reduce xd ys reduce cartesian product combination xd concat sel filter row column xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result innerjoin userprofile question xd uid text createdby xd createdby uid amp amp text xd xd console log result code xd div xd div xd phrp strongedit strong solution solution loop href http wikipedia org wiki cartesian product noreferrer title cartesian product wikipedia free encyclopedia cartesian product take codeo code time run bit modification make run codeo code time href https stackoverflow codeconst equijoin ys primary foreign sel const reduce row loop item set row primary row populate index primary table map create index primary table return ys map row loop item sel row foreign row primary row select column code prepnow codeconst result equijoin userprofile question createdby text text code prepputte div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codeconst equijoin ys primary foreign sel xd const reduce row set row primary row map xd return ys map row sel row foreign row xd xd xd const userprofile xd ashok xd amit xd rajeev xd xd xd const question xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd text createdby xd xd xd const result equijoin userprofile question createdby xd text text xd xd console log result code xd div xd div xd equi join suppose behave leave join leave join leave join equi join eat cake equi join complain work datum inconsistent datum inconsistent question create user user exist pi answer year late current answer provide information href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance classical inheritance ppfirst common argument javascript programmer state defence prototypal inheritance take argument current pool answer polliit simple liliit powerful liliit lead small redundant code liliit dynamic dynamic language li olpnow argument valid bother explain tell child study math important child care make child math important ppi problem prototypal inheritance explain perspective javascript love javascript prototypal inheritance javascript wrong classical inheritance pattern prototypal inheritance pollithe prototypal pattern prototypal inheritance lilithe constructor pattern prototypal inheritance li javascript constructor pattern prototypal inheritance javascript create href https brendaneich nofollow noreferrer title brendan eich brendan eich creator js want java classical inheritance pblockquote pand push brother java complementary language visual basic microsoft language family time blockquotepthis bad people constructor javascript constructor inherit constructor wrong prototypal inheritance object inherit object constructor picture confuse people pppeople language java classical inheritance confuse constructor class behave class href http crockford nofollow noreferrer title crockford wrrrld wide web crockford state pblockquote indirection intend make language familiar classically train programmer fail low opinion java programmer javascript javascript constructor pattern appeal classical crowd obscure javascript true prototypal nature result programmer language effectively straight horse mouth prototypal inheritance inheritance object object inherit property object way create object prototypal inheritance pollicreate brand object liliclone exist object extend li olp strongnote strong javascript offer way clone object href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter delegation href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter concatenation henceforth word clone exclusively refer inheritance delegation word copy exclusively refer inheritance concatenation ppenough talk example circle radius code codevar circle radius code prepwe calculate area circumference circle radius codecircle area function var radius radius return math pi radius radius circle circumference function return math pi radius code prepnow create circle radius code codevar radius area circle area circumference circle circumference code prephowever javascript href http aaditmshah github prototypal inheritance matter delegation differential inheritance nofollow noreferrer delegation crockford href http crockford javascript prototypal html nofollow noreferrer title prototypal inheritance codeobject create code function codevar object create circle radius code prepthat prototypal inheritance javascript simple object clone change hey presto brand object ppnow simple time create circle clone codecircle code manually assign radius solution function heavy lifting codefunction createcircle radius var newcircle object create circle newcircle radius radius return newcircle var createcircle code prepin fact combine single object literal codevar circle radius create function radius var circle object create circle radius radius return circle area function var radius radius return math pi radius radius circumference function return math pi radius var circle create code inheritance javascript notice program codecreate code function create clone codecircle code assign coderadius code return constructor javascript codefunction circle radius radius radius circle prototype area function var radius radius return math pi radius radius circle prototype circumference function return math pi radius var circle circle var circle code prepthe constructor pattern javascript prototypal pattern invert create object create constructor codenew code keyword bind codethis code pointer constructor clone codeprototype code constructor ppsound confuse constructor pattern javascript unnecessarily complicate thing programmer difficult understand ppinstead think object inherit object constructor inherit constructor utterly confuse ppthere bunch reason constructor pattern javascript avoid read blog post href http aaditmshah github prototypal inheritance matter constructor prototype nofollow noreferrer title aadit shah prototypal inheritance matter constructor prototype phrpso benefit prototypal inheritance classical inheritance common argument explain emwhy -PRON- prototypal inheritance simple href https stackoverflow user cms title user cms stack overflow cms state answer pblockquote pin opinion major benefit prototypal inheritance simplicity blockquoteplet create object codecircle code radius code clone give clone radius code pphence thing make prototypal inheritance work pollia create object object literal lilia extend exist object codeobject create code li olpin contrast classical inheritance complicate classical inheritance polliclasse liliobject liliinterface liliabstract class lilifinal class lilivirtual base class lilidestructor li idea point prototypal inheritance easy understand easy implement easy reason ppas steve yegge put classical blog post href http steve yegge blogspot portrait html nofollow noreferrer title stevey blog rant portrait portrait pblockquote pmetadata kind description model comment code natural language description computation make metadata meta datum strictly dog pedigree paperwork lose paperwork perfectly valid dog blockquotepin sense class meta datum class strictly require inheritance people class comfortable work false sense security pblockquote pwell static type metadata specialize kind comment target kind reader programmer compiler static type story computation reader group understand intent program static type throw runtime end stylize comment pedigree paperwork make insecure personality type happy dog dog care blockquotepas state earlier class people false sense security code java code perfectly legible classical inheritance programming java python amazing classical inheritance prototypal inheritance powerful programmer classical background argue classical inheritance powerful prototypal inheritance polliprivate variable lilimultiple inheritance li olpthis claim false javascript support href http javascript crockford private html nofollow noreferrer title private member javascript private variable closure multiple inheritance object javascript prototype ppthe truth prototypal inheritance support inherit multiple prototype prototypal inheritance simply mean object inherit object href http aaditmshah github prototypal inheritance matter method prototypal inheritance nofollow noreferrer title aadit shah prototypal inheritance matter way implement prototypal inheritance pollidelegation differential inheritance liliclone concatenative inheritance li olpye javascript object delegate object copy property arbitrary number object href http underscorejs org extend nofollow noreferrer title underscore js code extend code ppof programmer true inheritance href https developer mozilla org docs web javascript reference operator instanceof nofollow noreferrer title instanceof javascript mdn codeinstanceof code href https developer mozilla org docs web javascript reference global object object isprototypeof nofollow noreferrer title object isprototypeof javascript mdn code easily remedie store array prototype object inherit prototype concatenation codefunction copyof object prototype var prototype object prototype var prototypeof object isprototypeof return prototype indexof prototype prototype prototypeof prototype code prephence prototypal inheritance powerful classical inheritance fact powerful classical inheritance prototypal inheritance hand pick property copy property omit prototype ppin classical inheritance impossible difficult choose property inherit virtual base class interface solve href http wikipedia org wiki multiple inheritance diamond problem nofollow noreferrer title multiple inheritance wikipedia free encyclopedia diamond problem ppin javascript hear diamond problem control property inherit prototype prototypal inheritance redundant point difficult explain classical inheritance necessarily lead redundant code fact inheritance classical prototypal reduce redundancy code ppone argument programming language classical inheritance statically type require user explicitly declare type haskell implicit static type lead verbose code ppjava notorious behavior distinctly remember href https twitter munificentbob nofollow noreferrer title bob nystrom munificentbob twitter bob nystrom mention anecdote blog post href http journal stuffwithstuff pratt parser expression parse easy nofollow noreferrer title pratt parser expression parse easy ndash journal stuffwithstuff pratt parser pblockquote pyou love java sign quadruplicate level bureaucracy java suck ppone valid argument language classical inheritance support multiple inheritance java mind java interface sufficient multiple inheritance ppsince prototypal inheritance multiple inheritance code require multiple inheritance redundant write prototypal inheritance language classical inheritance multiple inheritance prototypal inheritance dynamic important advantage prototypal inheritance add property prototype create add method prototype automatically object delegate prototype ppthis classical inheritance class create modify runtime single big advantage prototypal inheritance classical inheritance save end inheritance matter important educate javascript programmer abandon constructor pattern prototypal inheritance favor prototypal pattern prototypal inheritance ppwe start teaching javascript correctly mean show programmer write code prototypal pattern constructor pattern ppnot easy explain prototypal inheritance prototypal pattern make programmer ppif answer read blog post href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance matter trust disappoint inheritance take abstract description circle make concrete circle inheritance nutshell confuse prototype conflate instantiation inheritance classical language circle class make instance circle inheritance prototypal language thing read answer write information http stackoverflow pokay play mind game img src https stack imgur png alt ppfrom image polliwhen create function codefunction foo code javascript create codefunction code instance lilievery codefunction code instance constructor function property codeprototype code pointer lilithe codeprototype code property constructor function point prototype object lilithe prototype object property codeconstructor code pointer lilithe codeconstructor code property prototype object point constructor function liliwhen create instance codefoo code codenew foo code javascript create object lilithe internal code proto code property instance point prototype constructor li olpnow question arise javascript attach codeconstructor code property instance object prototype codefunction defclass prototype var constructor prototype constructor constructor prototype prototype return constructor var square defclass constructor function area function return var square square alert square area code prepa codeconstructor code property method prototype codearea code make codeconstructor code property special initialize instance prototype method prototype ppdefine codeconstructor code property prototype advantageous reason polliit logically correct codeobject prototype code codeconstructor code property codeobject prototype code point codeobject code codeconstructor code property define instance codeobject prototype constructor code codeundefine code codeobject prototype code instance codenull code liliit treat differently prototype method make job codenew code easy define codeconstructor code property instance lilievery instance share codeconstructor code property efficient li olpn""",1,NULL,What happens with universal quantifications and typeclass constraints when composing functions haskell lenses rank types pLenses href https hackage haskell org package lens tutorial docs Control Lens Tutorial html rel nofollow noreferrer can be composed like any ordinary function We have ppre codeLens forall Functor gt gt gt gt code prepNow consider this example ppre code Lens Config Foo gt Lens Foo String gt Lens Config String code prepExpanding we get ppre code forall Functor gt Foo gt Foo gt Config gt Config gt forall Functor gt String gt String gt Foo gt Foo gt forall Functor gt String gt String gt Config gt Config code prepAnd the type of function composition is ppre code gt gt gt gt gt code prepWhich lacks any universal quantification and typeclass constraints Now my question is how are these two features treated by the compiler type checker so that the function composition operator can be used for composing lenses ppMy guess is that it is OK to have functions universally quantified and typeclass constraints as long as these match for the two functions being composed pWhy don we see what happens Consider the following values ppre class lang hs prettyprint override code gt gt gt gt gt cfoo Lens Bbar Lens code prepThe type of codefoo code and codebar code will be expanded to ppre class lang hs prettyprint override codefoo Functor gt gt gt gt Abar Functor gt gt gt gt code prepNote that left out the codeforall code part because it implicit Also changed the name of codef code to codeg code for codebar code to show that it different from the codef code for codefoo code ppAnyway we ll first apply code code to codefoo code ppre class lang hs prettyprint override code gt gt gt gt gt foo Functor gt gt gt gt foo Functor gt gt gt gt gt gt code prepThus code foo code has the type codeFunctor gt gt gt gt gt gt code As you can see the codeFunctor code constraint is simply copied as is ppNow we apply code foo code to codebar code ppre class lang hs prettyprint override code foo Functor gt gt gt gt gt gt bar Functor gt gt gt gt foo bar Functor gt gt gt gt code prepThus code foo bar code has the type codeFunctor gt gt gt gt code which means that it codeLens code As you can see codeFunctor code is the same as codeFunctor code which is why everything works out,,,,, 1859,419256,389279,Good Answer Yearling Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 1860,904482,528788,NULL,NULL,NULL,0,NULL,NULL 1861,577927,461421,Revival Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 1862,5730758,699435,NULL,NULL,NULL,0,NULL,NULL 1863,5741870,699435,NULL,NULL,NULL,0,NULL,NULL 1864,854590,699435,NULL,NULL,NULL,0,NULL,NULL 1865,1383533,1350215,NULL,NULL,NULL,0,NULL,NULL 1866,885022,734864,NULL,NULL,NULL,0,NULL,NULL 1867,1117438,188288,Yearling,NULL,NULL,0,NULL,NULL 1868,55047,997164,Popular Question,NULL,NULL,0,NULL,NULL 1869,882398,306961,Nice Question Nice Question Yearling Famous Question Notable Question Famous Question Popular Question Nice Question Yearling Great Question Notable Question Caucus Notable Question Constituent Good Question Favorite Question Notable Question Famous Question Informed Caucus Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 1870,190874,348010,Yearling Popular Question,NULL,NULL,0,NULL,NULL 1871,2160,211049,Notable Question,NULL,NULL,0,NULL,NULL 1872,969716,1218458,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 1873,1566600,995571,NULL,NULL,NULL,0,NULL,NULL 1874,441677,1141479,NULL,NULL,NULL,0,NULL,NULL 1875,339031,813084,NULL,NULL,NULL,0,NULL,NULL 1876,201617,528468,Nice Question Famous Question Necromancer Tumbleweed Caucus Caucus Yearling Revival Self-Learner Nice Answer Good Question,NULL,NULL,0,NULL,NULL 1877,393225,59117,NULL,NULL,NULL,0,NULL,NULL 1878,20272,200691,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 1879,100399,120745,Yearling Editor Student Scholar Custodian Informed Organizer Custodian Custodian Custodian Suffrage Vox Populi Custodian Custodian griffon Yearling Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1880,100433,164673,NULL,NULL,NULL,0,NULL,NULL 1881,1542,36446,Nice Answer Yearling Custodian Famous Question Good Answer Favorite Question Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 1882,1513504,239420,Enthusiast Informed Notable Question Critic Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 1883,304528,569751,Necromancer Yearling Good Answer Pundit Nice Answer Necromancer Yearling Caucus Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 1884,255738,707842,Informed Yearling Necromancer,NULL,NULL,0,NULL,NULL 1885,115009,887239,NULL,NULL,NULL,0,NULL,NULL 1886,561068,1325961,NULL,NULL,NULL,0,NULL,NULL 1887,92494,561340,NULL,NULL,NULL,0,NULL,NULL 1888,6553306,537178,NULL,NULL,NULL,0,NULL,NULL 1889,1366490,190968,NULL,NULL,NULL,0,NULL,NULL 1890,566663,1471454,NULL,NULL,NULL,0,NULL,NULL 1891,65143,596062,Nice Question Teacher,NULL,NULL,0,NULL,NULL 1892,139215,495995,Popular Question Good Question Notable Question Nice Question Good Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Yearling Inquisitive Custodian Notable Question Popular Question Nice Answer Popular Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 1893,6871855,1422794,Yearling Census,NULL,NULL,0,NULL,NULL 1894,434274,1422794,Yearling Census,NULL,NULL,0,NULL,NULL 1895,110653,660579,Editor Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 1896,29738,708116,NULL,NULL,NULL,0,NULL,NULL 1897,183204,614445,Autobiographer,NULL,NULL,0,NULL,NULL 1898,167903,756509,Notable Question Necromancer Nice Answer Notable Question Popular Question Revival Yearling Nice Answer Enlightened Nice Answer Yearling Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 1899,1114383,233772,Yearling Notable Question Nice Question Famous Question Nice Question Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 1900,29717,635247,NULL,NULL,NULL,0,NULL,NULL 1901,1110899,561812,NULL,NULL,NULL,0,NULL,NULL 1902,1671,761840,NULL,NULL,NULL,0,NULL,NULL 1903,3695634,213335,Revival,NULL,NULL,0,NULL,NULL 1904,285549,44437,Necromancer Yearling Civic Duty Pundit Great Answer Yearling Nice Answer,NULL,pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it Be aware that current is slightly unsafer than using simple to do the same thing see http stackoverflow com questions 23918062 simple vs current push default in git for decentralized workflow,0,NULL,NULL 1905,24767,460271,NULL,NULL,NULL,0,NULL,NULL 1906,888392,105878,Notable Question Nice Question Popular Question Nice Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 1907,1300825,929812,NULL,NULL,NULL,0,NULL,NULL 1908,507667,787081,NULL,NULL,NULL,0,NULL,NULL 1909,290917,404860,Student,NULL,NULL,0,NULL,NULL 1910,148089,868724,Popular Question Yearling Nice Answer Enlightened Yearling Good Answer Yearling Guru Yearling Yearling Announcer Great Answer Caucus Custodian Custodian Custodian Revival Caucus Constituent Yearling Necromancer Documentation User Necromancer Nice Answer Nice Answer Necromancer Electorate Necromancer Necromancer Nice Answer Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1911,53991,282861,Critic Informed Caucus,NULL,NULL,0,NULL,NULL 1912,105055,705600,Yearling Caucus Supporter Caucus,NULL,NULL,0,NULL,NULL 1913,819994,17751,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1914,443264,17751,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1915,928048,1308042,NULL,NULL,NULL,0,NULL,NULL 1916,186179,152643,Census,NULL,NULL,0,NULL,NULL 1917,75887,49302,NULL,NULL,NULL,0,NULL,NULL 1918,79367,90091,Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 1919,80487,351433,Necromancer,NULL,NULL,0,NULL,NULL 1920,10672,59639,Yearling Nice Answer Revival Popular Question Yearling Necromancer Notable Question Nice Answer Notable Question Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 1921,519195,569308,NULL,NULL,NULL,0,NULL,NULL 1922,2562078,437378,NULL,NULL,NULL,0,NULL,NULL 1923,124080,806956,Good Answer Announcer Necromancer Necromancer Populist Good Answer Good Answer Nice Answer Enlightened Necromancer Yearling Guru Good Answer Curious Nice Answer Nice Answer Good Question Good Answer Popular Question Booster Nice Answer Yearling Announcer Popular Question Popular Question Nice Question Great Answer Nice Answer Announcer Popular Question Good Answer Guru Yearling Great Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 1924,146246,1401562,Yearling Revival Caucus Constituent Revival Necromancer Necromancer Yearling Good Answer Populist Necromancer,NULL,NULL,1,NULL,Docker Python set utf locale python docker utf pI am trying to run my python file that first reads string in Chinese language and print it ppThis is my Dockerfile ppre codeFROM python onbuildENV LANG en US UTF 8ADD codeWORKDIR codeRUN pip install requirements txtCMD python app py code prepThis is my python file ppre code coding utf import jieba 我来到北京清华大学 decode utf print type code prepI then run pp codedocker build python example code pp codedocker run python example code ppError got codeUnicodeEncodeError ascii codec can encode characters in position ordinal not in range 128 code ppWhen run it locally it works fine h2Short version h2pPut this in your codeDockerfile code ppre codeENV PYTHONIOENCODING utf code prepor as mentioned in the comments above pass it on the command line ppre codedocker run PYTHONIOENCODING utf my python image some command code preh2Long version h2pWhen you start the Python interpreter Python has to set up codestdout code in order to send output to your terminal On your modern your terminal probably reports that it supports UTF or some other advanced encoding You can see what encoding is used by running this command ppre code python import sys print sys stdout encoding UTF code prepWhen you run docker container the environment variables Python would expect to use more advanced encoding are not present and so Python will fall back to basic character set to ensure compatibility You can verify this by running the same command in your container ppre code docker run my python image python import sys print sys stdout encoding ANSI X3 1968 code prepWhen we pass codePYTHONIOENCODING code we see the codesys stdout encoding code is set appropriately ppre code docker run PYTHONIOENCODING UTF my python image python import sys print sys stdout encoding UTF code prepRead about codePYTHONIOENCODING code in href https docs python org using cmdline html envvar PYTHONIOENCODING rel noreferrer the Python documentation href https stackoverflow com questions 44344458 why does locale getpreferredencoding return ansi x3 1968 instead of utf This answer also goes into great detail about encoding decoding and codestdout code 1925,462359,69266,Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 1926,7103450,1502194,NULL,NULL,NULL,0,NULL,NULL 1927,7103452,1502194,NULL,NULL,NULL,0,NULL,NULL 1928,7103455,1502194,NULL,NULL,NULL,0,NULL,NULL 1929,7103458,1502194,NULL,NULL,NULL,0,NULL,NULL 1930,7103463,1502194,NULL,NULL,NULL,0,NULL,NULL 1931,269089,47438,Popular Question Yearling Nice Answer Enlightened Good Question Yearling Notable Question Great Answer Popular Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 1932,316301,643483,Yearling Yearling Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 1933,534168,1042728,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1934,82332,233242,Famous Question Yearling Notable Question Great Question Yearling Popular Question Favorite Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 1935,351112,160588,Good Question Yearling Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 1936,268066,1148414,NULL,NULL,NULL,0,NULL,NULL 1937,355805,1016794,NULL,NULL,NULL,0,NULL,NULL 1938,319069,475244,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 1939,46958,1062456,NULL,NULL,NULL,0,NULL,NULL 1940,178488,1093961,Popular Question Student,NULL,NULL,0,NULL,NULL 1941,1245264,65299,Good Answer Yearling Notable Question Nice Answer Nice Question Announcer Nice Answer Enlightened Great Answer Caucus Nice Answer Notable Question Yearling Good Answer Good Answer Nice Answer Necromancer Good Answer Popular Question Nice Answer Famous Question Yearling Nice Answer Guru Nice Answer Enlightened Nice Answer Stellar Question Good Answer,NULL,NULL,0,NULL,NULL 1942,234718,1561294,NULL,NULL,NULL,0,NULL,NULL 1943,788742,1157089,Yearling Good Question Popular Question Necromancer Necromancer Yearling Nice Question Popular Question Nice Answer Favorite Question Nice Answer Yearling Populist Announcer Popular Question Necromancer Famous Question Good Answer,NULL,NULL,0,NULL,NULL 1944,400662,1333125,NULL,NULL,NULL,0,NULL,NULL 1945,44765,315949,NULL,NULL,NULL,0,NULL,NULL 1946,129,178850,Nice Answer Enlightened Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 1947,421525,178850,Nice Answer Enlightened Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 1948,243695,909746,NULL,NULL,NULL,0,NULL,NULL 1949,53215,661705,NULL,NULL,NULL,0,NULL,NULL 1950,323001,1193311,NULL,NULL,NULL,0,NULL,NULL 1951,273065,595294,Critic Notable Question,NULL,NULL,0,NULL,NULL 1952,16304,840897,Yearling Supporter,NULL,NULL,0,NULL,NULL 1953,14511,5377,Popular Question Favorite Question Famous Question Notable Question Notable Question Yearling Popular Question Famous Question Notable Question Nice Answer Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Famous Question Notable Question Famous Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 1954,314362,821798,NULL,NULL,NULL,0,NULL,NULL 1955,48194,850471,NULL,NULL,NULL,0,NULL,NULL 1956,177824,323903,Great Answer Yearling,NULL,NULL,0,NULL,NULL 1957,887544,1504367,Scholar Enthusiast Popular Question Commentator Necromancer Yearling Nice Answer Critic Caucus Constituent Yearling Revival Custodian Necromancer Good Answer Yearling Caucus Necromancer Guru Yearling Notable Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 1958,1361612,1504367,Scholar Enthusiast Popular Question Commentator Necromancer Yearling Nice Answer Critic Caucus Constituent Yearling Revival Custodian Necromancer Good Answer Yearling Caucus Necromancer Guru Yearling Notable Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 1959,92170,445994,NULL,NULL,NULL,0,NULL,NULL 1960,185185,868868,Critic Commentator Editor Yearling,NULL,NULL,0,NULL,NULL 1961,321581,462026,Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 1962,94156,397375,Yearling Great Question Favorite Question,NULL,NULL,0,NULL,NULL 1963,345322,911240,NULL,NULL,NULL,0,NULL,NULL 1964,781562,1262775,Supporter,NULL,NULL,0,NULL,NULL 1965,216905,103238,Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 1966,358435,268484,NULL,NULL,NULL,0,NULL,NULL 1967,284504,1531085,NULL,NULL,NULL,0,NULL,NULL 1968,430396,1200203,Student,NULL,NULL,0,NULL,NULL 1969,240891,943623,Autobiographer,NULL,NULL,0,NULL,NULL 1970,55186,1181865,NULL,NULL,NULL,0,NULL,NULL 1971,918011,1251727,Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 1972,255314,580206,Supporter,NULL,NULL,0,NULL,NULL 1973,259794,798034,Student Teacher Census,NULL,NULL,0,NULL,NULL 1974,18817,459966,Popular Question Guru Popular Question Yearling Popular Question Notable Question Nice Answer Enlightened Notable Question Civic Duty Caucus Yearling Custodian Citizen Patrol Caucus Constituent Notable Question Promoter Benefactor Yearling,NULL,NULL,0,NULL,NULL 1975,322295,107851,Critic Popular Question,NULL,NULL,0,NULL,NULL 1976,178991,583817,Yearling,NULL,NULL,0,NULL,NULL 1977,3406573,459013,NULL,NULL,NULL,0,NULL,NULL 1978,169973,459013,NULL,NULL,NULL,0,NULL,NULL 1979,130879,377476,Popular Question Yearling Famous Question Nice Answer Enlightened Announcer Good Answer Yearling akka.net Nice Answer Nice Question Announcer Yearling Popular Question Announcer Nice Answer Enlightened c# Announcer,NULL,NULL,0,NULL,NULL 1980,1385796,1052542,Teacher,NULL,NULL,0,NULL,NULL 1981,253941,1422673,Custodian Yearling,NULL,NULL,0,NULL,NULL 1982,296163,1170917,Nice Answer Good Answer Yearling Yearling Yearling Yearling Popular Question Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 1983,26720,97842,Yearling Good Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 1984,2303,136839,Announcer Announcer Famous Question Good Question,NULL,NULL,0,NULL,NULL 1985,434052,645456,Supporter,NULL,NULL,0,NULL,NULL 1986,150983,218820,Supporter,NULL,NULL,0,NULL,NULL 1987,154308,320902,Necromancer,NULL,NULL,0,NULL,NULL 1988,165796,1184239,Good Answer Yearling Guru Caucus Yearling Revival Necromancer Nice Answer Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 1989,1513494,1549093,Student Notable Question,NULL,NULL,0,NULL,NULL 1990,76558,480438,NULL,NULL,NULL,0,NULL,NULL 1991,314896,1247083,Popular Question,NULL,NULL,0,NULL,NULL 1992,48893,151409,Notable Question Yearling Popular Question Good Question Popular Question Stellar Question Yearling Popular Question Notable Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 1993,214260,183240,Nice Answer Yearling Tumbleweed Necromancer Necromancer Yearling Populist Good Answer Caucus Constituent Necromancer Notable Question Yearling Custodian Custodian Organizer Investor Altruist Census Caucus Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1994,123385,12086,Great Answer Guru Yearling Great Answer Great Answer Excavator Famous Question Yearling Custodian Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 1995,1530014,10071,NULL,NULL,NULL,0,NULL,NULL 1996,30791,229336,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 1997,10643,197645,Yearling,NULL,NULL,0,NULL,NULL 1998,21107,103838,NULL,NULL,NULL,0,NULL,NULL 1999,9701594,486742,NULL,NULL,NULL,0,NULL,NULL 2000,136502,177969,NULL,NULL,NULL,0,NULL,NULL 2001,1312472,972545,Yearling Editor Documentation User Good Answer,NULL,NULL,0,NULL,NULL 2002,1179520,874930,NULL,NULL,NULL,0,NULL,NULL 2003,740655,881041,NULL,NULL,NULL,0,NULL,NULL 2004,65134,712641,Critic,NULL,NULL,0,NULL,NULL 2005,75176,589306,NULL,NULL,NULL,0,NULL,NULL 2006,302066,1250991,Commentator Scholar Supporter Editor Curious Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2007,195833,231525,NULL,NULL,NULL,0,NULL,NULL 2008,702576,179999,Nice Question,NULL,NULL,0,NULL,NULL 2009,37847,150112,NULL,NULL,NULL,0,NULL,NULL 2010,262186,150885,Yearling Great Answer Custodian Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 2011,991694,1023393,NULL,NULL,NULL,0,NULL,NULL 2012,110618,30664,Good Question Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 2013,77507,202655,NULL,NULL,NULL,0,NULL,NULL 2014,369851,232159,NULL,NULL,NULL,0,NULL,NULL 2015,179573,364133,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 2016,376701,541136,Nice Answer Notable Question Nice Answer Necromancer Necromancer Necromancer Nice Answer Necromancer Nice Answer Popular Question Good Answer Necromancer Good Answer Necromancer Nice Answer Nice Answer Necromancer Necromancer Necromancer Nice Answer Necromancer Good Answer Nice Answer Necromancer Necromancer Good Answer Outspoken Nice Answer Nice Answer Nice Answer Pundit Nice Answer Necromancer Nice Answer Good Answer Necromancer Nice Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Announcer Nice Answer Good Answer Nice Answer Necromancer Announcer Good Answer Good Answer Necromancer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Announcer Necromancer Documentation Pioneer Good Answer Good Answer Good Answer Announcer Necromancer Nice Answer Good Answer Nice Answer Announcer Nice Answer Necromancer Great Answer Good Answer Necromancer Nice Answer Necromancer Good Answer Notable Question Great Answer Good Answer Nice Answer Necromancer Guru Popular Question Nice Answer Guru Good Answer Nice Answer Good Answer Announcer Announcer Necromancer Necromancer Nice Answer Nice Question Convention Good Answer Caucus Booster Good Answer Announcer Constituent Announcer Necromancer Good Answer Nice Answer Necromancer Great Answer Popular Question Nice Answer Enlightened Nice Answer Notable Question Yearling Nice Answer Necromancer Necromancer Necromancer Nice Answer Nice Answer Nice Answer Necromancer Good Answer Good Answer Necromancer Nice Answer Popular Question Announcer Good Answer Necromancer Necromancer Nice Answer Census Good Answer Necromancer Necromancer Announcer Great Answer Nice Answer Good Answer Necromancer Good Answer Nice Answer Announcer Nice Answer Nice Answer python-3.x Announcer Good Answer Good Answer Necromancer Good Answer Great Answer Announcer Nice Answer Good Answer Good Answer Necromancer Announcer Nice Answer Great Answer Nice Answer Necromancer Notable Question Necromancer Nice Answer Necromancer Announcer Nice Answer Nice Answer Booster Nice Answer Good Answer Nice Answer Necromancer Famous Question Nice Answer Necromancer Great Answer Nice Answer Good Answer Good Answer Great Answer Necromancer Good Answer Necromancer Necromancer Great Answer Necromancer Caucus Nice Answer Good Answer Constituent Necromancer Necromancer Good Answer Good Answer list Nice Answer Necromancer Great Answer Nice Question Necromancer Necromancer Necromancer Booster Good Answer Great Answer Nice Answer Nice Answer Nice Answer Popular Question Necromancer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Necromancer Necromancer Necromancer Nice Answer Necromancer Necromancer Documentation User Necromancer Good Answer Good Answer Famous Question Necromancer oop Good Answer Nice Answer Necromancer Nice Answer Good Answer Necromancer Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Sheriff Epic Nice Answer Necromancer Yearling Nice Answer Good Answer Nice Answer Necromancer Good Answer Necromancer Good Answer Notable Question Nice Answer Census Good Answer Nice Answer Publicist Necromancer Nice Answer Necromancer Necromancer Nice Answer Famous Question Necromancer Necromancer Necromancer Nice Answer Great Answer Caucus Nice Answer Nice Answer Popular Question Necromancer Great Answer Nice Answer Great Answer Constituent Great Answer Announcer Nice Answer Necromancer Good Answer Nice Answer Good Answer Necromancer Announcer Necromancer Nice Answer Good Answer Necromancer Booster Good Question Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Good Answer Good Answer Announcer Nice Answer Necromancer Necromancer Nice Answer Necromancer Necromancer Necromancer Necromancer Great Answer Great Answer Announcer Nice Answer Great Answer Nice Answer Revival Nice Answer Nice Question Great Answer Announcer Great Answer Great Answer Nice Answer Enlightened Good Answer Necromancer Nice Answer Necromancer Nice Answer Good Answer Necromancer Good Answer Nice Answer Nice Answer Good Answer Good Answer Necromancer Nice Answer Necromancer Good Answer Nice Answer Necromancer Good Answer Great Answer Necromancer Nice Answer Good Answer Good Answer Good Answer Good Answer Good Answer Legendary Nice Answer Great Answer Nice Answer Good Answer Necromancer Nice Answer Nice Answer Good Answer Good Answer Good Answer Great Answer Necromancer,NULL,blockquote h2How can merge two Python dictionaries in single expression h2 blockquotepFor dictionaries codex code and codey code codez code becomes shallowly merged dictionary with values from codey code replacing those from codex code pulli pIn Python or greater ppre codez code pre lili pIn Python or or lower write function ppre codedef merge two dicts copy start with keys and values update modifies with keys and values amp returns None return code prepand now ppre codez merge two dicts code pre li ulh3Explanation h3pSay you have two dicts and you want to merge them into new dict without altering the original dicts ppre codex code prepThe desired result is to get new dictionary codez code with the values merged and the second dict values overwriting those from the first ppre code gt gt gt code prepA new syntax for this proposed in href https www python org dev peps pep 0448 rel noreferrer PEP 448 and href https mail python org pipermail python dev 2015 February 138564 html rel noreferrer available as of Python is ppre codez code prepAnd it is indeed single expression ppNote that we can merge in with literal notation as well ppre codez foo bar code prepand now ppre code gt gt gt foo bar code prepIt is now showing as implemented in the href https www python org dev peps pep 0478 features for rel noreferrer release schedule for PEP 478 and it has now made its way into href https docs python org dev whatsnew html pep 448 additional unpacking generalizations rel noreferrer What New in Python document ppHowever since many organizations are still on Python you may wish to do this in backwards compatible way The classically Pythonic way available in Python and Python is to do this as two step process ppre codez copy update which returns None since it mutates code prepIn both approaches codey code will come second and its values will replace codex code values thus code code will point to code3 code in our final result ph2Not yet on Python but want emsingle expression em h2pIf you are not yet on Python or need to write backward compatible code and you want this in emsingle expression em the most performant while correct approach is to put it in function ppre codedef merge two dicts Given two dicts merge them into new dict as shallow copy copy update return code prepand then you have single expression ppre codez merge two dicts code prepYou can also make function to merge an undefined number of dicts from zero to very large number ppre codedef merge dicts dict args Given any number of dicts shallow copy and merge into new dict precedence goes to key value pairs in latter dicts result for dictionary in dict args result update dictionary return result code prepThis function will work in Python and for all dicts given dicts codea code to codeg code ppre codez merge dicts code prepand key value pairs in codeg code will take precedence over dicts codea code to codef code and so on ph2Critiques of Other Answers h2pDon use what you see in the formerly accepted answer ppre codez dict items items code prepIn Python you create two lists in memory for each dict create third list in memory with length equal to the length of the first two put together and then discard all three lists to create the dict strongIn Python this will fail strong because you re adding two codedict items code objects together not two lists ppre code gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unsupported operand type for dict items and dict items code prepand you would have to explicitly create them as lists codez dict list items list items code This is waste of resources and computation power ppSimilarly taking the union of codeitems code in Python codeviewitems code in Python will also fail when values are unhashable objects like lists for example Even if your values are hashable strongsince sets are semantically unordered the behavior is undefined in regards to precedence So don do this strong ppre code gt gt gt dict items items code prepThis example demonstrates what happens when values are unhashable ppre code gt gt gt gt gt gt gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prepHere an example where should have precedence but instead the value from is retained due to the arbitrary order of sets ppre code gt gt gt gt gt gt gt gt gt dict items items code prepAnother hack you should not use ppre codez dict code prepThis uses the codedict code constructor and is very fast and memory efficient even slightly more so than our two step process but unless you know precisely what is happening here that is the second dict is being passed as keyword arguments to the dict constructor it difficult to read it not the intended usage and so it is not Pythonic ppHere an example of the usage being href https code djangoproject com attachment ticket 13357 django pypy diff rel noreferrer remediated in django ppDicts are intended to take hashable keys frozensets or tuples but strongthis method fails in Python when keys are not strings strong ppre code gt gt gt dict Traceback most recent call last File lt stdin gt line in lt module gt TypeError keyword arguments must be strings code prepFrom the href https mail python org pipermail python dev 2010 April 099459 html rel noreferrer mailing list Guido van Rossum the creator of the language wrote pblockquote pI am fine with declaring dict illegal since after all it is abuse of the mechanism blockquotepand pblockquote pApparently dict is going around as cool hack for call update and return Personally find it more despicable than cool blockquotepIt is my understanding as well as the understanding of the href https mail python org pipermail python dev 2010 April 099485 html rel noreferrer creator of the language that the intended usage for codedict code is for creating dicts for readability purposes ppre codedict 10 11 code prepinstead of ppre code 10 11 code preh2Response to comments h2blockquote pDespite what Guido says codedict code is in line with the dict specification which btw works for both Python and The fact that this only works for string keys is direct consequence of how keyword parameters work and not short comming of dict Nor is using the operator in this place an abuse of the mechanism in fact was designed precisely to pass dicts as keywords blockquotepAgain it doesn work for when keys are non strings The implicit calling contract is that namespaces take ordinary dicts while users must only pass keyword arguments that are strings All other callables enforced it codedict code broke this consistency in Python ppre code gt gt gt foo None Traceback most recent call last File lt stdin gt line in lt module gt TypeError foo keywords must be strings gt gt gt dict None None code prepThis inconsistency was bad given other implementations of Python Pypy Jython IronPython Thus it was fixed in Python as this usage could be breaking change ppI submit to you that it is malicious incompetence to intentionally write code that only works in one version of language or that only works given certain arbitrary constraints ppMore comments pblockquote codedict items items code is still the most readable solution for Python Readability counts blockquotepMy response codemerge two dicts code actually seems much clearer to me if we re actually concerned about readability And it is not forward compatible as Python is increasingly deprecated pblockquote code code does not seem to handle nested dictionaries the contents of nested keys are simply overwritten not merged ended up being burnt by these answers that do not merge recursively and was surprised no one mentioned it In my interpretation of the word merging these answers describe updating one dict with another and not merging blockquotepYes must refer you back to the question which is asking for emshallow em merge of strong emtwo em strong dictionaries with the first values being overwritten by the second in single expression ppAssuming two dictionary of dictionaries one might recursively merge them in single function but you should be careful not to modify the dicts from either source and the surest way to avoid that is to make copy when assigning values As keys must be hashable and are usually therefore immutable it is pointless to copy them ppre codefrom copy import deepcopydef dict of dicts merge overlapping keys keys amp keys for key in overlapping keys key dict of dicts merge key key for key in keys overlapping keys key deepcopy key for key in keys overlapping keys key deepcopy key return code prepUsage ppre code gt gt gt gt gt gt 10 11 gt gt gt dict of dicts merge 10 11 code prepComing up with contingencies for other value types is far beyond the scope of this question so will point you at href https stackoverflow com 24088493 541136 my answer to the canonical question on Dictionaries of dictionaries merge ph2Less Performant But Correct Ad hocs h2pThese approaches are less performant but they will provide correct behavior They will be emmuch less em performant than codecopy code and codeupdate code or the new unpacking because they iterate through each key value pair at higher level of abstraction but they emdo em respect the order of precedence latter dicts have precedence ppYou can also chain the dicts manually inside dict comprehension ppre code for in dicts for in items iteritems in Python code prepor in python and perhaps as early as when generator expressions were introduced ppre codedict for in dicts for in items code prep codeitertools chain code will chain the iterators over the key value pairs in the correct order ppre codeimport itertoolsz dict itertools chain iteritems iteritems code preh2Performance Analysis h2pI only going to do the performance analysis of the usages known to behave correctly ppre codeimport timeit code prepThe following is done on Ubuntu 14 04 ppIn Python system Python ppre code gt gt gt min timeit repeat lambda merge two dicts 5726828575134277 gt gt gt min timeit repeat lambda for in for in items 163769006729126 gt gt gt min timeit repeat lambda dict itertools chain iteritems iteritems 1614501476287842 gt gt gt min timeit repeat lambda dict for in for in items 2345519065856934 code prepIn Python deadsnakes PPA ppre code gt gt gt min timeit repeat lambda 4094954460160807 gt gt gt min timeit repeat lambda merge two dicts 7881555100320838 gt gt gt min timeit repeat lambda for in for in items 4525277839857154 gt gt gt min timeit repeat lambda dict itertools chain items items 3143140770262107 gt gt gt min timeit repeat lambda dict for in for in items 2069112799945287 code preh2Resources on Dictionaries h2ulli href https stackoverflow com questions 327311 how are pythons built in dictionaries implemented 44509302 44509302 My explanation of Python strongdictionary implementation strong updated for lili href https stackoverflow com questions 1024847 add new keys to dictionary 27208535 27208535 Answer on how to add new keys to dictionary lili href https stackoverflow com questions 209840 map two lists into dictionary in python 33737067 33737067 Mapping two lists into dictionary liliThe official Python href https docs python org tutorial datastructures html dictionaries rel noreferrer docs on dictionaries lili href https www youtube com watch 66P5FMkWoVU rel noreferrer The Dictionary Even Mightier talk by Brandon Rhodes at Pycon 2017 lili href https www youtube com watch npw4s1QTmPg rel noreferrer Modern Python Dictionaries Confluence of Great Ideas talk by Raymond Hettinger at Pycon 2017 li ul attempting to communicate that point in my first sentence Do you think it could be improved blockquote h2How can merge two Python dictionaries in single expression h2 blockquotepFor dictionaries codex code and codey code codez code becomes shallowly merged dictionary with values from codey code replacing those from codex code pulli pIn Python or greater ppre codez code pre lili pIn Python or or lower write function ppre codedef merge two dicts copy start with keys and values update modifies with keys and values amp returns None return code prepand now ppre codez merge two dicts code pre li ulh3Explanation h3pSay you have two dicts and you want to merge them into new dict without altering the original dicts ppre codex code prepThe desired result is to get new dictionary codez code with the values merged and the second dict values overwriting those from the first ppre code gt gt gt code prepA new syntax for this proposed in href https www python org dev peps pep 0448 rel noreferrer PEP 448 and href https mail python org pipermail python dev 2015 February 138564 html rel noreferrer available as of Python is ppre codez code prepAnd it is indeed single expression ppNote that we can merge in with literal notation as well ppre codez foo bar code prepand now ppre code gt gt gt foo bar code prepIt is now showing as implemented in the href https www python org dev peps pep 0478 features for rel noreferrer release schedule for PEP 478 and it has now made its way into href https docs python org dev whatsnew html pep 448 additional unpacking generalizations rel noreferrer What New in Python document ppHowever since many organizations are still on Python you may wish to do this in backwards compatible way The classically Pythonic way available in Python and Python is to do this as two step process ppre codez copy update which returns None since it mutates code prepIn both approaches codey code will come second and its values will replace codex code values thus code code will point to code3 code in our final result ph2Not yet on Python but want emsingle expression em h2pIf you are not yet on Python or need to write backward compatible code and you want this in emsingle expression em the most performant while correct approach is to put it in function ppre codedef merge two dicts Given two dicts merge them into new dict as shallow copy copy update return code prepand then you have single expression ppre codez merge two dicts code prepYou can also make function to merge an undefined number of dicts from zero to very large number ppre codedef merge dicts dict args Given any number of dicts shallow copy and merge into new dict precedence goes to key value pairs in latter dicts result for dictionary in dict args result update dictionary return result code prepThis function will work in Python and for all dicts given dicts codea code to codeg code ppre codez merge dicts code prepand key value pairs in codeg code will take precedence over dicts codea code to codef code and so on ph2Critiques of Other Answers h2pDon use what you see in the formerly accepted answer ppre codez dict items items code prepIn Python you create two lists in memory for each dict create third list in memory with length equal to the length of the first two put together and then discard all three lists to create the dict strongIn Python this will fail strong because you re adding two codedict items code objects together not two lists ppre code gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unsupported operand type for dict items and dict items code prepand you would have to explicitly create them as lists codez dict list items list items code This is waste of resources and computation power ppSimilarly taking the union of codeitems code in Python codeviewitems code in Python will also fail when values are unhashable objects like lists for example Even if your values are hashable strongsince sets are semantically unordered the behavior is undefined in regards to precedence So don do this strong ppre code gt gt gt dict items items code prepThis example demonstrates what happens when values are unhashable ppre code gt gt gt gt gt gt gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prepHere an example where should have precedence but instead the value from is retained due to the arbitrary order of sets ppre code gt gt gt gt gt gt gt gt gt dict items items code prepAnother hack you should not use ppre codez dict code prepThis uses the codedict code constructor and is very fast and memory efficient even slightly more so than our two step process but unless you know precisely what is happening here that is the second dict is being passed as keyword arguments to the dict constructor it difficult to read it not the intended usage and so it is not Pythonic ppHere an example of the usage being href https code djangoproject com attachment ticket 13357 django pypy diff rel noreferrer remediated in django ppDicts are intended to take hashable keys frozensets or tuples but strongthis method fails in Python when keys are not strings strong ppre code gt gt gt dict Traceback most recent call last File lt stdin gt line in lt module gt TypeError keyword arguments must be strings code prepFrom the href https mail python org pipermail python dev 2010 April 099459 html rel noreferrer mailing list Guido van Rossum the creator of the language wrote pblockquote pI am fine with declaring dict illegal since after all it is abuse of the mechanism blockquotepand pblockquote pApparently dict is going around as cool hack for call update and return Personally find it more despicable than cool blockquotepIt is my understanding as well as the understanding of the href https mail python org pipermail python dev 2010 April 099485 html rel noreferrer creator of the language that the intended usage for codedict code is for creating dicts for readability purposes ppre codedict 10 11 code prepinstead of ppre code 10 11 code preh2Response to comments h2blockquote pDespite what Guido says codedict code is in line with the dict specification which btw works for both Python and The fact that this only works for string keys is direct consequence of how keyword parameters work and not short comming of dict Nor is using the operator in this place an abuse of the mechanism in fact was designed precisely to pass dicts as keywords blockquotepAgain it doesn work for when keys are non strings The implicit calling contract is that namespaces take ordinary dicts while users must only pass keyword arguments that are strings All other callables enforced it codedict code broke this consistency in Python ppre code gt gt gt foo None Traceback most recent call last File lt stdin gt line in lt module gt TypeError foo keywords must be strings gt gt gt dict None None code prepThis inconsistency was bad given other implementations of Python Pypy Jython IronPython Thus it was fixed in Python as this usage could be breaking change ppI submit to you that it is malicious incompetence to intentionally write code that only works in one version of language or that only works given certain arbitrary constraints ppMore comments pblockquote codedict items items code is still the most readable solution for Python Readability counts blockquotepMy response codemerge two dicts code actually seems much clearer to me if we re actually concerned about readability And it is not forward compatible as Python is increasingly deprecated pblockquote code code does not seem to handle nested dictionaries the contents of nested keys are simply overwritten not merged ended up being burnt by these answers that do not merge recursively and was surprised no one mentioned it In my interpretation of the word merging these answers describe updating one dict with another and not merging blockquotepYes must refer you back to the question which is asking for emshallow em merge of strong emtwo em strong dictionaries with the first values being overwritten by the second in single expression ppAssuming two dictionary of dictionaries one might recursively merge them in single function but you should be careful not to modify the dicts from either source and the surest way to avoid that is to make copy when assigning values As keys must be hashable and are usually therefore immutable it is pointless to copy them ppre codefrom copy import deepcopydef dict of dicts merge overlapping keys keys amp keys for key in overlapping keys key dict of dicts merge key key for key in keys overlapping keys key deepcopy key for key in keys overlapping keys key deepcopy key return code prepUsage ppre code gt gt gt gt gt gt 10 11 gt gt gt dict of dicts merge 10 11 code prepComing up with contingencies for other value types is far beyond the scope of this question so will point you at href https stackoverflow com 24088493 541136 my answer to the canonical question on Dictionaries of dictionaries merge ph2Less Performant But Correct Ad hocs h2pThese approaches are less performant but they will provide correct behavior They will be emmuch less em performant than codecopy code and codeupdate code or the new unpacking because they iterate through each key value pair at higher level of abstraction but they emdo em respect the order of precedence latter dicts have precedence ppYou can also chain the dicts manually inside dict comprehension ppre code for in dicts for in items iteritems in Python code prepor in python and perhaps as early as when generator expressions were introduced ppre codedict for in dicts for in items code prep codeitertools chain code will chain the iterators over the key value pairs in the correct order ppre codeimport itertoolsz dict itertools chain iteritems iteritems code preh2Performance Analysis h2pI only going to do the performance analysis of the usages known to behave correctly ppre codeimport timeit code prepThe following is done on Ubuntu 14 04 ppIn Python system Python ppre code gt gt gt min timeit repeat lambda merge two dicts 5726828575134277 gt gt gt min timeit repeat lambda for in for in items 163769006729126 gt gt gt min timeit repeat lambda dict itertools chain iteritems iteritems 1614501476287842 gt gt gt min timeit repeat lambda dict for in for in items 2345519065856934 code prepIn Python deadsnakes PPA ppre code gt gt gt min timeit repeat lambda 4094954460160807 gt gt gt min timeit repeat lambda merge two dicts 7881555100320838 gt gt gt min timeit repeat lambda for in for in items 4525277839857154 gt gt gt min timeit repeat lambda dict itertools chain items items 3143140770262107 gt gt gt min timeit repeat lambda dict for in for in items 2069112799945287 code preh2Resources on Dictionaries h2ulli href https stackoverflow com questions 327311 how are pythons built in dictionaries implemented 44509302 44509302 My explanation of Python strongdictionary implementation strong updated for lili href https stackoverflow com questions 1024847 add new keys to dictionary 27208535 27208535 Answer on how to add new keys to dictionary lili href https stackoverflow com questions 209840 map two lists into dictionary in python 33737067 33737067 Mapping two lists into dictionary liliThe official Python href https docs python org tutorial datastructures html dictionaries rel noreferrer docs on dictionaries lili href https www youtube com watch 66P5FMkWoVU rel noreferrer The Dictionary Even Mightier talk by Brandon Rhodes at Pycon 2017 lili href https www youtube com watch npw4s1QTmPg rel noreferrer Modern Python Dictionaries Confluence of Great Ideas talk by Raymond Hettinger at Pycon 2017 li ul the question doesn ask for nested dictionaries but do have an answer that merges such dictionaries recursively here https stackoverflow com 24088493 541136 please review that answer and provide feedback if you think it missing something blockquote h2How can merge two Python dictionaries in single expression h2 blockquotepFor dictionaries codex code and codey code codez code becomes shallowly merged dictionary with values from codey code replacing those from codex code pulli pIn Python or greater ppre codez code pre lili pIn Python or or lower write function ppre codedef merge two dicts copy start with keys and values update modifies with keys and values amp returns None return code prepand now ppre codez merge two dicts code pre li ulh3Explanation h3pSay you have two dicts and you want to merge them into new dict without altering the original dicts ppre codex code prepThe desired result is to get new dictionary codez code with the values merged and the second dict values overwriting those from the first ppre code gt gt gt code prepA new syntax for this proposed in href https www python org dev peps pep 0448 rel noreferrer PEP 448 and href https mail python org pipermail python dev 2015 February 138564 html rel noreferrer available as of Python is ppre codez code prepAnd it is indeed single expression ppNote that we can merge in with literal notation as well ppre codez foo bar code prepand now ppre code gt gt gt foo bar code prepIt is now showing as implemented in the href https www python org dev peps pep 0478 features for rel noreferrer release schedule for PEP 478 and it has now made its way into href https docs python org dev whatsnew html pep 448 additional unpacking generalizations rel noreferrer What New in Python document ppHowever since many organizations are still on Python you may wish to do this in backwards compatible way The classically Pythonic way available in Python and Python is to do this as two step process ppre codez copy update which returns None since it mutates code prepIn both approaches codey code will come second and its values will replace codex code values thus code code will point to code3 code in our final result ph2Not yet on Python but want emsingle expression em h2pIf you are not yet on Python or need to write backward compatible code and you want this in emsingle expression em the most performant while correct approach is to put it in function ppre codedef merge two dicts Given two dicts merge them into new dict as shallow copy copy update return code prepand then you have single expression ppre codez merge two dicts code prepYou can also make function to merge an undefined number of dicts from zero to very large number ppre codedef merge dicts dict args Given any number of dicts shallow copy and merge into new dict precedence goes to key value pairs in latter dicts result for dictionary in dict args result update dictionary return result code prepThis function will work in Python and for all dicts given dicts codea code to codeg code ppre codez merge dicts code prepand key value pairs in codeg code will take precedence over dicts codea code to codef code and so on ph2Critiques of Other Answers h2pDon use what you see in the formerly accepted answer ppre codez dict items items code prepIn Python you create two lists in memory for each dict create third list in memory with length equal to the length of the first two put together and then discard all three lists to create the dict strongIn Python this will fail strong because you re adding two codedict items code objects together not two lists ppre code gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unsupported operand type for dict items and dict items code prepand you would have to explicitly create them as lists codez dict list items list items code This is waste of resources and computation power ppSimilarly taking the union of codeitems code in Python codeviewitems code in Python will also fail when values are unhashable objects like lists for example Even if your values are hashable strongsince sets are semantically unordered the behavior is undefined in regards to precedence So don do this strong ppre code gt gt gt dict items items code prepThis example demonstrates what happens when values are unhashable ppre code gt gt gt gt gt gt gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prepHere an example where should have precedence but instead the value from is retained due to the arbitrary order of sets ppre code gt gt gt gt gt gt gt gt gt dict items items code prepAnother hack you should not use ppre codez dict code prepThis uses the codedict code constructor and is very fast and memory efficient even slightly more so than our two step process but unless you know precisely what is happening here that is the second dict is being passed as keyword arguments to the dict constructor it difficult to read it not the intended usage and so it is not Pythonic ppHere an example of the usage being href https code djangoproject com attachment ticket 13357 django pypy diff rel noreferrer remediated in django ppDicts are intended to take hashable keys frozensets or tuples but strongthis method fails in Python when keys are not strings strong ppre code gt gt gt dict Traceback most recent call last File lt stdin gt line in lt module gt TypeError keyword arguments must be strings code prepFrom the href https mail python org pipermail python dev 2010 April 099459 html rel noreferrer mailing list Guido van Rossum the creator of the language wrote pblockquote pI am fine with declaring dict illegal since after all it is abuse of the mechanism blockquotepand pblockquote pApparently dict is going around as cool hack for call update and return Personally find it more despicable than cool blockquotepIt is my understanding as well as the understanding of the href https mail python org pipermail python dev 2010 April 099485 html rel noreferrer creator of the language that the intended usage for codedict code is for creating dicts for readability purposes ppre codedict 10 11 code prepinstead of ppre code 10 11 code preh2Response to comments h2blockquote pDespite what Guido says codedict code is in line with the dict specification which btw works for both Python and The fact that this only works for string keys is direct consequence of how keyword parameters work and not short comming of dict Nor is using the operator in this place an abuse of the mechanism in fact was designed precisely to pass dicts as keywords blockquotepAgain it doesn work for when keys are non strings The implicit calling contract is that namespaces take ordinary dicts while users must only pass keyword arguments that are strings All other callables enforced it codedict code broke this consistency in Python ppre code gt gt gt foo None Traceback most recent call last File lt stdin gt line in lt module gt TypeError foo keywords must be strings gt gt gt dict None None code prepThis inconsistency was bad given other implementations of Python Pypy Jython IronPython Thus it was fixed in Python as this usage could be breaking change ppI submit to you that it is malicious incompetence to intentionally write code that only works in one version of language or that only works given certain arbitrary constraints ppMore comments pblockquote codedict items items code is still the most readable solution for Python Readability counts blockquotepMy response codemerge two dicts code actually seems much clearer to me if we re actually concerned about readability And it is not forward compatible as Python is increasingly deprecated pblockquote code code does not seem to handle nested dictionaries the contents of nested keys are simply overwritten not merged ended up being burnt by these answers that do not merge recursively and was surprised no one mentioned it In my interpretation of the word merging these answers describe updating one dict with another and not merging blockquotepYes must refer you back to the question which is asking for emshallow em merge of strong emtwo em strong dictionaries with the first values being overwritten by the second in single expression ppAssuming two dictionary of dictionaries one might recursively merge them in single function but you should be careful not to modify the dicts from either source and the surest way to avoid that is to make copy when assigning values As keys must be hashable and are usually therefore immutable it is pointless to copy them ppre codefrom copy import deepcopydef dict of dicts merge overlapping keys keys amp keys for key in overlapping keys key dict of dicts merge key key for key in keys overlapping keys key deepcopy key for key in keys overlapping keys key deepcopy key return code prepUsage ppre code gt gt gt gt gt gt 10 11 gt gt gt dict of dicts merge 10 11 code prepComing up with contingencies for other value types is far beyond the scope of this question so will point you at href https stackoverflow com 24088493 541136 my answer to the canonical question on Dictionaries of dictionaries merge ph2Less Performant But Correct Ad hocs h2pThese approaches are less performant but they will provide correct behavior They will be emmuch less em performant than codecopy code and codeupdate code or the new unpacking because they iterate through each key value pair ,,, t higher level of abstraction but they emdo em respect the order of precedence latter dicts have precedence ppYou can also chain the dicts manually inside dict comprehension ppre code for in dicts for in items iteritems in Python code prepor in python and perhaps as early as when generator expressions were introduced ppre codedict for in dicts for in items code prep codeitertools chain code will chain the iterators over the key value pairs in the correct order ppre codeimport itertoolsz dict itertools chain iteritems iteritems code preh2Performance Analysis h2pI only going to do the performance analysis of the usages known to behave correctly ppre codeimport timeit code prepThe following is done on Ubuntu 14 04 ppIn Python system Python ppre code gt gt gt min timeit repeat lambda merge two dicts 5726828575134277 gt gt gt min timeit repeat lambda for in for in items 163769006729126 gt gt gt min timeit repeat lambda dict itertools chain iteritems iteritems 1614501476287842 gt gt gt min timeit repeat lambda dict for in for in items 2345519065856934 code prepIn Python deadsnakes PPA ppre code gt gt gt min timeit repeat lambda 4094954460160807 gt gt gt min timeit repeat lambda merge two dicts 7881555100320838 gt gt gt min timeit repeat lambda for in for in items 4525277839857154 gt gt gt min timeit repeat lambda dict itertools chain items items 3143140770262107 gt gt gt min timeit repeat lambda dict for in for in items 2069112799945287 code preh2Resources on Dictionaries h2ulli href https stackoverflow com questions 327311 how are pythons built in dictionaries implemented 44509302 44509302 My explanation of Python strongdictionary implementation strong updated for lili href https stackoverflow com questions 1024847 add new keys to dictionary 27208535 27208535 Answer on how to add new keys to dictionary lili href https stackoverflow com questions 209840 map two lists into dictionary in python 33737067 33737067 Mapping two lists into dictionary liliThe official Python href https docs python org tutorial datastructures html dictionaries rel noreferrer docs on dictionaries lili href https www youtube com watch 66P5FMkWoVU rel noreferrer The Dictionary Even Mightier talk by Brandon Rhodes at Pycon 2017 lili href https www youtube com watch npw4s1QTmPg rel noreferrer Modern Python Dictionaries Confluence of Great Ideas talk by Raymond Hettinger at Pycon 2017 li ul the title of the question is How to merge two dictionaries in single expression that is two dictionaries not more not less and certainly not how to merge their values assuming that that they are also dicts Would it be apropos for me to add that information to this answer Maybe Why not Thank you for that feedback would most appreciate it if you commented on that other answer any criticisms relative to the subject you are inquiring about as you re obviously thinking about this Thanks blockquote h2How can merge two Python dictionaries in single expression h2 blockquotepFor dictionaries codex code and codey code codez code becomes shallowly merged dictionary with values from codey code replacing those from codex code pulli pIn Python or greater ppre codez code pre lili pIn Python or or lower write function ppre codedef merge two dicts copy start with keys and values update modifies with keys and values amp returns None return code prepand now ppre codez merge two dicts code pre li ulh3Explanation h3pSay you have two dicts and you want to merge them into new dict without altering the original dicts ppre codex code prepThe desired result is to get new dictionary codez code with the values merged and the second dict values overwriting those from the first ppre code gt gt gt code prepA new syntax for this proposed in href https www python org dev peps pep 0448 rel noreferrer PEP 448 and href https mail python org pipermail python dev 2015 February 138564 html rel noreferrer available as of Python is ppre codez code prepAnd it is indeed single expression ppNote that we can merge in with literal notation as well ppre codez foo bar code prepand now ppre code gt gt gt foo bar code prepIt is now showing as implemented in the href https www python org dev peps pep 0478 features for rel noreferrer release schedule for PEP 478 and it has now made its way into href https docs python org dev whatsnew html pep 448 additional unpacking generalizations rel noreferrer What New in Python document ppHowever since many organizations are still on Python you may wish to do this in backwards compatible way The classically Pythonic way available in Python and Python is to do this as two step process ppre codez copy update which returns None since it mutates code prepIn both approaches codey code will come second and its values will replace codex code values thus code code will point to code3 code in our final result ph2Not yet on Python but want emsingle expression em h2pIf you are not yet on Python or need to write backward compatible code and you want this in emsingle expression em the most performant while correct approach is to put it in function ppre codedef merge two dicts Given two dicts merge them into new dict as shallow copy copy update return code prepand then you have single expression ppre codez merge two dicts code prepYou can also make function to merge an undefined number of dicts from zero to very large number ppre codedef merge dicts dict args Given any number of dicts shallow copy and merge into new dict precedence goes to key value pairs in latter dicts result for dictionary in dict args result update dictionary return result code prepThis function will work in Python and for all dicts given dicts codea code to codeg code ppre codez merge dicts code prepand key value pairs in codeg code will take precedence over dicts codea code to codef code and so on ph2Critiques of Other Answers h2pDon use what you see in the formerly accepted answer ppre codez dict items items code prepIn Python you create two lists in memory for each dict create third list in memory with length equal to the length of the first two put together and then discard all three lists to create the dict strongIn Python this will fail strong because you re adding two codedict items code objects together not two lists ppre code gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unsupported operand type for dict items and dict items code prepand you would have to explicitly create them as lists codez dict list items list items code This is waste of resources and computation power ppSimilarly taking the union of codeitems code in Python codeviewitems code in Python will also fail when values are unhashable objects like lists for example Even if your values are hashable strongsince sets are semantically unordered the behavior is undefined in regards to precedence So don do this strong ppre code gt gt gt dict items items code prepThis example demonstrates what happens when values are unhashable ppre code gt gt gt gt gt gt gt gt gt dict items items Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prepHere an example where should have precedence but instead the value from is retained due to the arbitrary order of sets ppre code gt gt gt gt gt gt gt gt gt dict items items code prepAnother hack you should not use ppre codez dict code prepThis uses the codedict code constructor and is very fast and memory efficient even slightly more so than our two step process but unless you know precisely what is happening here that is the second dict is being passed as keyword arguments to the dict constructor it difficult to read it not the intended usage and so it is not Pythonic ppHere an example of the usage being href https code djangoproject com attachment ticket 13357 django pypy diff rel noreferrer remediated in django ppDicts are intended to take hashable keys frozensets or tuples but strongthis method fails in Python when keys are not strings strong ppre code gt gt gt dict Traceback most recent call last File lt stdin gt line in lt module gt TypeError keyword arguments must be strings code prepFrom the href https mail python org pipermail python dev 2010 April 099459 html rel noreferrer mailing list Guido van Rossum the creator of the language wrote pblockquote pI am fine with declaring dict illegal since after all it is abuse of the mechanism blockquotepand pblockquote pApparently dict is going around as cool hack for call update and return Personally find it more despicable than cool blockquotepIt is my understanding as well as the understanding of the href https mail python org pipermail python dev 2010 April 099485 html rel noreferrer creator of the language that the intended usage for codedict code is for creating dicts for readability purposes ppre codedict 10 11 code prepinstead of ppre code 10 11 code preh2Response to comments h2blockquote pDespite what Guido says codedict code is in line with the dict specification which btw works for both Python and The fact that this only works for string keys is direct consequence of how keyword parameters work and not short comming of dict Nor is using the operator in this place an abuse of the mechanism in fact was designed precisely to pass dicts as keywords blockquotepAgain it doesn work for when keys are non strings The implicit calling contract is that namespaces take ordinary dicts while users must only pass keyword arguments that are strings All other callables enforced it codedict code broke this consistency in Python ppre code gt gt gt foo None Traceback most recent call last File lt stdin gt line in lt module gt TypeError foo keywords must be strings gt gt gt dict None None code prepThis inconsistency was bad given other implementations of Python Pypy Jython IronPython Thus it was fixed in Python as this usage could be breaking change ppI submit to you that it is malicious incompetence to intentionally write code that only works in one version of language or that only works given certain arbitrary constraints ppMore comments pblockquote codedict items items code is still the most readable solution for Python Readability counts blockquotepMy response codemerge two dicts code actually seems much clearer to me if we re actually concerned about readability And it is not forward compatible as Python is increasingly deprecated pblockquote code code does not seem to handle nested dictionaries the contents of nested keys are simply overwritten not merged ended up being burnt by these answers that do not merge recursively and was surprised no one mentioned it In my interpretation of the word merging these answers describe updating one dict with another and not merging blockquotepYes must refer you back to the question which is asking for emshallow em merge of strong emtwo em strong dictionaries with the first values being overwritten by the second in single expression ppAssuming two dictionary of dictionaries one might recursively merge them in single function but you should be careful not to modify the dicts from either source and the surest way to avoid that is to make copy when assigning values As keys must be hashable and are usually therefore immutable it is pointless to copy them ppre codefrom copy import deepcopydef dict of dicts merge overlapping keys keys amp keys for key in overlapping keys key dict of dicts merge key key for key in keys overlapping keys key deepcopy key for key in keys overlapping keys key deepcopy key return code prepUsage ppre code gt gt gt gt gt gt 10 11 gt gt gt dict of dicts merge 10 11 code prepComing up with contingencies for other value types is far beyond the scope of this question so will point you at href https stackoverflow com 24088493 541136 my answer to the canonical question on Dictionaries of dictionaries merge ph2Less Performant But Correct Ad hocs h2pThese approaches are less performant but they will provide correct behavior They will be emmuch less em performant than codecopy code and codeupdate code or the new unpacking because they iterate through each key value pair at higher level of abstraction but they emdo em respect the order of precedence latter dicts have precedence ppYou can also chain the dicts manually inside dict comprehension ppre code for in dicts for in items iteritems in Python code prepor in python and perhaps as early as when generator expressions were introduced ppre codedict for in dicts for in items code prep codeitertools chain code will chain the iterators over the key value pairs in the correct order ppre codeimport itertoolsz dict itertools chain iteritems iteritems code preh2Performance Analysis h2pI only going to do the performance analysis of the usages known to behave correctly ppre codeimport timeit code prepThe following is done on Ubuntu 14 04 ppIn Python system Python ppre code gt gt gt min timeit repeat lambda merge two dicts 5726828575134277 gt gt gt min timeit repeat lambda for in for in items 163769006729126 gt gt gt min timeit repeat lambda dict itertools chain iteritems iteritems 1614501476287842 gt gt gt min timeit repeat lambda dict for in for in items 2345519065856934 code prepIn Python deadsnakes PPA ppre code gt gt gt min timeit repeat lambda 4094954460160807 gt gt gt min timeit repeat lambda merge two dicts 7881555100320838 gt gt gt min timeit repeat lambda for in for in items 4525277839857154 gt gt gt min timeit repeat lambda dict itertools chain items items 3143140770262107 gt gt gt min timeit repeat lambda dict for in for in items 2069112799945287 code preh2Resources on Dictionaries h2ulli href https stackoverflow com questions 327311 how are pythons built in dictionaries implemented 44509302 44509302 My explanation of Python strongdictionary implementation strong updated for lili href https stackoverflow com questions 1024847 add new keys to dictionary 27208535 27208535 Answer on how to add new keys to dictionary lili href https stackoverflow com questions 209840 map two lists into dictionary in python 33737067 33737067 Mapping two lists into dictionary liliThe official Python href https docs python org tutorial datastructures html dictionaries rel noreferrer docs on dictionaries lili href https www youtube com watch 66P5FMkWoVU rel noreferrer The Dictionary Even Mightier talk by Brandon Rhodes at Pycon 2017 lili href https www youtube com watch npw4s1QTmPg rel noreferrer Modern Python Dictionaries Confluence of Great Ideas talk by Raymond Hettinger at Pycon 2017 li ul have updated my answer to respond to your comments blockquote h1In Python what is the purpose of code slots code and what are the cases one should avoid this h1 blockquoteh2TLDR h2pThe special attribute code slots code allows you to explicitly state which instance attributes you expect your object instances to have with the expected results polli strongfaster strong attribute access lili strongspace savings strong in memory li olpThe space savings is from polliStoring value references in slots instead of code dict code liliDenying code dict code and code weakref code creation if parent classes deny them and you declare code slots code li olh3Quick Caveats h3pSmall caveat you should only declare particular slot one time in an inheritance tree For example ppre codeclass Base slots foo bar class Right Base slots baz class Wrong Base slots foo bar baz redundant foo and bar code prepPython doesn object when you get this wrong it probably should problems might not otherwise manifest but your objects will take up more space than they otherwise should ppre code gt gt gt from sys import getsizeof gt gt gt getsizeof Right getsizeof Wrong 64 80 code prepThe biggest caveat is for multiple inheritance multiple parent classes with nonempty slots cannot be combined ppTo accommodate this restriction follow best practices Factor out all but one or all parents abstraction which their concrete class respectively and your new concrete class collectively will inherit from giving the abstraction empty slots just like abstract base classes in the standard library ppSee section on multiple inheritance below for an example ph3Requirements h3ulli pTo have attributes named in code slots code to actually be stored in slots instead of code dict code class must inherit from codeobject code lili pTo prevent the creation of code dict code you must inherit from codeobject code and all classes in the inheritance must declare code slots code and none of them can have code dict code entry li ulpThere are lot of details if you wish to keep reading ph2Why use code slots code Faster attribute access h2pThe creator of Python Guido van Rossum href http python history blogspot com 2010 06 inside story on new style classes html rel noreferrer states that he actually created code slots code for faster attribute access ppIt is trivial to demonstrate measurably significant faster access ppre codeimport timeitclass Foo object slots foo class Bar object passslotted Foo not slotted Bar def get set delete fn obj def get set delete obj foo foo obj foo del obj foo return get set delete code prepand ppre code gt gt gt min timeit repeat get set delete fn slotted 2846834529991611 gt gt gt min timeit repeat get set delete fn not slotted 3664822799983085 code prepThe slotted access is almost 30 faster in Python on Ubuntu ppre code gt gt gt 3664822799983085 28468345299916111 2873325658284342 code prepIn Python on Windows have measured it about 15 faster ph2Why use code slots code Memory Savings h2pAnother purpose of code slots code is to reduce the space in memory that each object instance takes up pp href https docs python org reference datamodel html slots rel noreferrer My own contribution to the documentation clearly states the reasons behind this pblockquote pThe space saved over using code dict code can be significant blockquotep href http docs sqlalchemy org en rel changelog migration 10 html significant improvements in structural memory use rel noreferrer SQLAlchemy attributes lot of memory savings to code slots code ppTo verify this using the Anaconda distribution of Python on Ubuntu Linux with codeguppy hpy code aka heapy and codesys getsizeof code the size of class instance without code slots code declared and nothing else is 64 bytes That does emnot em include the code dict code Thank you Python for lazy evaluation again the code dict code is apparently not called into existence until it is referenced but classes without data are usually useless When called into existence the code dict code attribute is minimum of 280 bytes additionally ppIn contrast class instance with code slots code declared to be code code no data is only 16 bytes and 56 total bytes with one item in slots 64 with two ppFor 64 bit Python illustrate the memory consumption in bytes in Python and for code slots code and code dict code no slots defined for each point where the dict grows in except for and attributes ppre code Python Python 6attrs slots dict slots dict no slots defined none 16 56 272† 16 56 112† †if dict referencedone 48 56 272 48 56 112two 56 56 272 56 56 112six 88 56 1040 88 56 15211 128 56 1040 128 56 24022 216 56 3344 216 56 408 43 384 56 3344 384 56 752 code prepSo in spite of smaller dicts in Python we see how nicely code slots code scale for instances to save us memory and that is major reason you would want to use code slots code ppJust for completeness of my notes note that there is one time cost per slot in the class namespace of 64 bytes in Python and 72 bytes in Python because slots use data descriptors like properties called members ppre code gt gt gt Foo foo lt member foo of Foo objects gt gt gt gt type Foo foo lt class member descriptor gt gt gt gt getsizeof Foo foo 72 code preh2Demonstration of code slots code h2pTo deny the creation of code dict code you must subclass codeobject code ppre codeclass Base object slots code prepnow ppre code gt gt gt Base gt gt gt Traceback most recent call last File lt pyshell 38 gt line in lt module gt AttributeError Base object has no attribute code prepOr subclass another class that defines code slots code ppre codeclass Child Base slots code prepand now ppre codec Child code prepbut ppre code gt gt gt Traceback most recent call last File lt pyshell 42 gt line in lt module gt AttributeError Child object has no attribute code prepTo allow code dict code creation while subclassing slotted objects just add code dict code to the code slots code note that slots are ordered and you shouldn repeat slots that are already in parent classes ppre codeclass SlottedWithDict Child slots dict swd SlottedWithDict swd swd swd code prepand ppre code gt gt gt swd dict code prepOr you don even need to declare code slots code in your subclass and you will still use slots from the parents but not restrict the creation of code dict code ppre codeclass NoSlots Child passns NoSlots ns ns code prepAnd ppre code gt gt gt ns dict code prepHowever code slots code may cause problems for multiple inheritance ppre codeclass BaseA object slots class BaseB object slots code prepBecause creating child class from parents with both non empty slots fails ppre code gt gt gt class Child BaseA BaseB slots Traceback most recent call last File lt pyshell 68 gt line in lt module gt class Child BaseA BaseB slots TypeError Error when calling the metaclass bases multiple bases have instance lay out conflict code prepIf you run into this problem You emcould em just remove code slots code from the parents or if you have control of the parents give them empty slots or refactor to abstractions ppre codefrom abc import ABCclass AbstractA ABC slots class BaseA AbstractA slots class AbstractB ABC slots class BaseB AbstractB slots class Child AbstractA AbstractB slots Child no problem code preh3Add code dict code to code slots code to get dynamic assignment h3pre codeclass Foo object slots bar baz dict code prepand now ppre code gt gt gt foo Foo gt gt gt foo boink boink code prepSo with code dict code in slots we lose some of the size benefits with the upside of having dynamic assignment and still having slots for the names we do expect ppWhen you inherit from an object that isn slotted you get the same sort of semantics when you use code slots code names that are in code slots code point to slotted values while any other values are put in the instance code dict code ppAvoiding code slots code because you want to be able to add attributes on the fly is actually not good reason just add code dict code to your code slots code if this is required ppYou can similarly add code weakref code to code slots code explicitly if you need that feature ph3Set to empty tuple when subclassing namedtuple h3pThe namedtuple builtin make immutable instances that are very lightweight essentially the size of tuples but to get the benefits you need to do it yourself if you subclass them ppre codefrom collections import namedtupleclass MyNT namedtuple MyNT bar baz MyNT is an immutable and lightweight object slots code prepusage ppre code gt gt gt nt MyNT bar baz gt gt gt nt bar bar gt gt gt nt baz baz code prepAnd trying to assign an unexpected attribute raises an codeAttributeError code because we have prevented the creation of code dict code ppre code gt gt gt nt quux quux Traceback most recent call last File lt stdin gt line in lt module gt AttributeError MyNT object has no attribute quux code prepYou emcan em allow code dict code creation by leaving off code slots code but you can use non empty code slots code with subtypes of tuple ph2Biggest Caveat Multiple inheritance h2pEven when non empty slots are the same for multiple parents they cannot be used together ppre codeclass Foo object slots foo bar class Bar object slots foo bar alas would work if empty gt gt gt class Baz Foo Bar passTraceback most recent call last File lt stdin gt line in lt module gt TypeError Error when calling the metaclass bases multiple bases have instance lay out conflict code prepUsing an empty code slots code in the parent seems to provide the most flexibility strongallowing the child to choose to prevent or allow strong by adding code dict code to get dynamic assignment see section above strongthe creation of code dict code strong ppre codeclass Foo object slots class Bar object slots class Baz Foo Bar slots foo bar Baz foo bar foo bar code prepYou don emhave em to have slots so if you add them and remove them later it shouldn cause any problems pp strongGoing out on limb here strong If you re composing href https stackoverflow com questions 860245 mixin vs inheritance 27907511 27907511 mixins or using href https stackoverflow com questions 372042 difference between abstract class and interface in python 31439126 31439126 abstract base classes which aren intended to be instantiated an empty code slots code in those parents seems to be the best way to go in terms of flexibility for subclassers ppTo demonstrate first let create class with code we like to use under multiple inheritance ppre codeclass AbstractBase slots def init self self self def repr self return type self name repr self repr self code prepWe could use the above directly by inheriting and declaring the expected slots ppre codeclass Foo AbstractBase slots code prepBut we don care about that that trivial single inheritance we need another class we might also inherit from maybe with noisy attribute ppre codeclass AbstractBaseC slots def self print getting return self setter def self arg print setting self arg code prepNow if both bases had nonempty slots we couldn do the below In fact if we wanted we could have given codeAbstractBase code nonempty slots and and left them out of the below declaration leaving them in would be wrong ppre codeclass Concretion AbstractBase AbstractBaseC slots split code prepAnd now we have functionality from both via multiple inheritance and can still deny code dict code and code weakref code instantiation ppre code gt gt gt Concretion gt gt gt csetting gt gt gt cgetting Concretion gt gt gt Traceback most recent call last File lt stdin gt line in lt module gt AttributeError Concretion object has no attribute code preh2Other cases to avoid slots h2ulliAvoid them when you want to perform code class code assignment with another class that doesn have them and you can add them unless the slot layouts are identical am very interested in learning who is doing this and why liliAvoid them if you want to subclass variable length builtins like long tuple or str and you want to add attributes to them liliAvoid them if you insist on providing default values via class attributes for instance variables li ulpYou may be able to tease out further caveats from the rest of the code slots code href https docs python org reference datamodel html slots rel noreferrer documentation the dev docs are the most current which have made significant recent contributions to ph2Critiques of other answers h2pThe current top answers cite outdated information and are quite hand wavy and miss the mark in some important ways ph3Do not only use code slots code when instantiating lots of objects h3pI quote pblockquote You would want to use code slots code if you are going to instantiate lot hundreds thousands of objects of the same class blockquotepAbstract Base Classes for example from the codecollections code module are not instantiated yet code slots code are declared for them ppWhy ppIf user wishes to deny code dict code or code weakref code creation those things must not be available in the parent classes pp code slots code contributes to reusability when creating interfaces or mixins ppIt is true that many Python users aren writing for reusability but when you are having the option to deny unnecessary space usage is valuable ph3 code slots code doesn break pickling h3pWhen pickling slotted object you may find it complains with misleading codeTypeError code ppre code gt gt gt pickle loads pickle dumps TypeError class that defines slots without defining getstate cannot be pickled code prepThis is actually incorrect This message comes from the oldest protocol which is the default You can select the latest protocol with the code code argument In Python this would be code2 code which was introduced in and in it is code4 code ppre code gt gt gt pickle loads pickle dumps lt main Foo object at 0x1129C770 gt code prepin Python ppre code gt gt gt pickle loads pickle dumps lt main Foo object at 0x1129C770 gt code prepin Python ppre code gt gt gt pickle loads pickle dumps lt main Foo object at 0x1129C770 gt code prepSo would keep this in mind as it is solved problem ph2Critique of the until Oct 2016 accepted answer h2pThe first paragraph is half short explanation half predictive Here the only part that actually answers the question pblockquote pThe proper use of code slots code is to save space in objects Instead of having dynamic dict that allows adding attributes to objects at anytime there is static structure which does not allow additions after creation This saves the overhead of one dict for every object that uses slots blockquotepThe second half is wishful thinking and off the mark pblockquote pWhile this is sometimes useful optimization it would be completely unnecessary if the Python interpreter was dynamic enough so that it would only require the dict when there actually were additions to the object blockquotepPython actually does something similar to this only creating the code dict code when it is accessed but creating lots of objects with no data is fairly ridiculous ppThe second paragraph oversimplifies and misses actual reasons to avoid code slots code The below is emnot em real reason to avoid slots for emactual em reasons see the rest of my answer above pblockquote pThey change the behavior of the objects that have slots in way that can be abused by control freaks and static typing weenies blockquotepIt then goes on to discuss other ways of accomplishing that perverse goal with Python not discussing anything to do with code slots code ppThe third paragraph is more wishful thinking Together it is mostly off the mark content that the answerer didn even author and contributes to ammunition for critics of the site ph1Memory usage evidence h1pCreate some normal objects and slotted objects ppre code gt gt gt class Foo object pass gt gt gt class Bar object slots code prepInstantiate million of them ppre code gt gt gt foos Foo for in xrange 1000000 gt gt gt bars Bar for in xrange 1000000 code prepInspect with codeguppy hpy heap code ppre code gt gt gt guppy hpy heap Partition of set of 2028259 objects Total size 99763360 bytes Index Count Size Cumulative Kind class dict of class 1000000 49 64000000 64 64000000 64 main Foo 169 16281480 16 80281480 80 list 1000000 49 16000000 16 96281480 97 main Bar 12284 987472 97268952 97 str code prepAccess the regular objects and their code dict code and inspect again ppre code gt gt gt for in foos dict gt gt gt guppy hpy heap Partition of set of 3028258 objects Total size 379763480 bytes Index Count Size Cumulative Kind class dict of class 1000000 33 280000000 74 280000000 74 dict of main Foo 1000000 33 64000000 17 344000000 91 main Foo 169 16281480 360281480 95 list 1000000 33 16000000 376281480 99 main Bar 12284 987472 377268952 99 str code prepThis is consistent with the history of Python from href https www python org download releases descrintro rel noreferrer Unifying types and classes in Python pblockquote pIf you subclass built in type extra space is automatically added to the instances to accomodate code dict code and code weakrefs code The code dict code is not initialized until you use it though so you shouldn worry about the space occupied by an empty dictionary for each instance you create If you don need this extra space you can add the phrase code slots code to your class blockquote thanks for bringing that typo to my attention it turned out was not an instantiation probably forgot was editing that part when saved it into the post history It probably would have been caught sooner if had done the right thing and made the code more copy pastable Thanks again blockquote h1In Python what is the purpose of code slots code and what are the cases one should avoid this h1 blockquoteh2TLDR h2pThe special attribute code slots code allows you to explicitly state which instance attributes you expect your object instances to have with the expected results polli strongfaster strong attribute access lili strongspace savings strong in memory li olpThe space savings is from polliStoring value references in slots instead of code dict code liliDenying code dict code and code weakref code creation if parent classes deny them and you declare code slots code li olh3Quick Caveats h3pSmall caveat you should only declare particular slot,,,,,,,, "one time in an """,nice answer notable question nice answer necromancer necromancer necromancer nice answer necromancer nice answer popular question good answer necromancer good answer necromancer nice answer nice answer necromancer necromancer necromancer nice answer necromancer good answer nice answer necromancer necromancer good answer outspoken nice answer nice answer nice answer nice answer necromancer nice answer good answer necromancer nice answer nice answer good answer great answer nice answer nice answer announcer nice answer good answer nice answer necromancer announcer good answer good answer necromancer good answer nice answer nice answer nice answer nice answer announcer necromancer documentation pioneer good answer good answer good answer announcer necromancer nice answer good answer nice answer announcer nice answer necromancer great answer good answer necromancer nice answer necromancer good answer notable question great answer good answer nice answer necromancer guru popular question nice answer guru good answer nice answer good answer announcer announcer necromancer necromancer nice answer nice question convention good answer caucus good answer announcer constituent announcer necromancer good answer nice answer necromancer great answer popular question nice answer enlighten nice answer notable question yearle nice answer necromancer necromancer necromancer nice answer nice answer nice answer necromancer good answer good answer necromancer nice answer popular question announcer good answer necromancer necromancer nice answer census good answer necromancer necromancer announcer great answer nice answer good answer necromancer good answer nice answer announcer nice answer nice answer announcer good answer good answer necromancer good answer great answer announcer nice answer good answer good answer necromancer announcer nice answer great answer nice answer necromancer notable question necromancer nice answer necromancer announcer nice answer nice answer nice answer good answer nice answer necromancer famous question nice answer necromancer great answer nice answer good answer good answer great answer necromancer good answer necromancer necromancer great answer necromancer caucus nice answer good answer constituent necromancer necromancer good answer good answer list nice answer necromancer great answer nice question necromancer necromancer necromancer good answer great answer nice answer nice answer nice answer popular question necromancer nice answer nice answer great answer nice answer nice answer necromancer necromancer necromancer nice answer necromancer necromancer documentation user necromancer good answer good answer famous question necromancer good answer nice answer necromancer nice answer good answer necromancer good answer good answer guru nice answer nice answer nice answer sheriff epic nice answer necromancer yearle nice answer good answer nice answer necromancer good answer necromancer good answer notable question nice answer census good answer nice answer publicist necromancer nice answer necromancer necromancer nice answer famous question necromancer necromancer necromancer nice answer great answer caucus nice answer nice answer popular question necromancer great answer nice answer great answer constituent great answer announcer nice answer necromancer good answer nice answer good answer necromancer announcer necromancer nice answer good answer necromancer good question nice answer popular question nice answer nice answer nice answer good answer good answer announcer nice answer necromancer necromancer nice answer necromancer necromancer necromancer necromancer great answer great answer announcer nice answer great answer nice answer revival nice answer nice question great answer announcer great answer great answer nice answer enlighten good answer necromancer nice answer necromancer nice answer good answer necromancer good answer nice answer nice answer good answer good answer necromancer nice answer necromancer good answer nice answer necromancer good answer great answer necromancer nice answer good answer good answer good answer good answer good answer legendary nice answer great answer nice answer good answer necromancer nice answer nice answer good answer good answer good answer great answer necromancer abc abcmeta compatible python python python python metaclass python abc pi create class codeabc abcmeta code metaclass compatible python python succeed version simultaneously hand pppython codeimport abcclass object metaclass abc abcmeta abstractmethod def pass code preppython codeimport abcclass metaclass abc abcmeta abstractmethod def pass code run test suitable version python interpreter python python succeed scenario codeimport unittestclass unitt testcase def test raise exception assertraise typeerror error processor msg str error exception expect msg instantiate abstract class abstract method assertequal msg expect msg code run test python expect behavior happen codetypeerror code raise instantiate code code fail test raise exception main traceback recent file home tati sample abc py line test raise exception processor assertionerror typeerror raise code prepwherea run test python raise codesyntaxerror code code python incompatible raise exception file home tati sample abc py line class metaclass abc abcmeta syntaxerror invalid syntax code blockquote abc abcmeta compatible python python blockquotepif python href https docs python org library abc html abc abc nofollow noreferrer codefrom abc import abc code prepand inherit codeabc code codeobject code codeclass abc code prepyou extra dependence module metaclass create parent essentially module metaclass codeimport abc compatible python abc abc abcmeta abc object slot class abc abstractmethod def pass code prepor place messy contribute reuse code abcmeta compatible python class abc abcmeta abc object slot abstractmethod def pass code prepnote signature messy href https pythonhoste org metaclass nofollow noreferrer codesix metaclass code substantially semantic extra dependence solution instantiate implement abstraction precisely expect code traceback recent file lt pyshell line lt module typeerror instantiate abstract class abstract method code code slot code href http bug python org nofollow noreferrer add code slot code abc convenience class python standard library answer update include ppnot code dict code code weakref code codeabc code parent user deny creation child class save memory downside code slot code child class rely implicit code dict code code weakref code creation codeabc code parent ppthe fast fix declare code dict code code weakref code child class code dict code declare member explicitly blockquote merge python dictionary single expression blockquotepfor dictionary codex code codey code codez code shallowly merge dictionary value codey code replace codex code pulli pin python great codez code lili pin python low write function codedef merge dict copy start key value update modifie key value amp return return code prepand codez merge dict code li dict merge dict alter original dict codex code prepthe desire result dictionary codez code value merge dict value overwrite code code prepa syntax propose href https python org dev pep pep noreferrer pep href https mail python org pipermail python dev february html noreferrer python codez code prepand single expression ppnote merge literal notation codez foo bar code prepand code foo bar code prepit show implement href https python org dev pep pep feature noreferrer release schedule pep href https docs python org dev whatsnew html pep additional unpack generalization noreferrer python document pphowever organization python backwards compatible classically pythonic python python step process codez copy update return mutate code prepin approach codey code value replace codex code value code code point code final result python emsingle expression -PRON- python write backward compatible code emsingle expression -PRON- performant correct approach function codedef merge dict dict merge dict shallow copy copy update return code prepand single expression codez merge dict code prepyou make function merge undefined number dict large number codedef merge dict dict arg number dict shallow copy merge dict precedence key pair dict result dictionary dict arg result update dictionary return result code prepthis function work python dict dict codea code codeg code codez merge dict code prepand key pair codeg code precedence dict codea code codef code answer accept answer codez dict item item code prepin python create list memory dict create list memory length equal length discard list create dict strongin python fail strong add codedict item code object list code dict item item traceback recent file lt stdin line lt module typeerror unsupported operand type dict item dict item code prepand explicitly create list codez dict list item list item code waste resource computation power ppsimilarly take union codeitem code python codeviewitem code python fail value unhashable object list value hashable strongsince set semantically unordere behavior undefined precedence strong code dict item item code prepthis demonstrate value unhashable code dict item item traceback recent file lt stdin line lt module typeerror unhashable type list code prephere precedence retain arbitrary order set code dict item item code prepanother hack codez dict code prepthis codedict code constructor fast memory efficient slightly step process precisely happen dict pass keyword argument dict constructor difficult read intend usage pythonic pphere usage href https code djangoproject attachment ticket django pypy diff noreferrer remediate django ppdict intend hashable key frozenset tuple strongthis method fail python key string strong code dict traceback recent file lt stdin line lt module typeerror keyword argument string code href https mail python org pipermail python dev april html noreferrer mailing list guido van rossum creator language write pblockquote pi fine declare dict illegal abuse mechanism blockquotepand pblockquote papparently dict cool hack update return personally despicable cool blockquotepit understanding understanding href https mail python org pipermail python dev april html noreferrer creator language intend usage codedict code create dict readability purpose codedict code prepinstead code code comment pdespite guido codedict code line dict specification btw work python fact work string key direct consequence keyword parameter work short comme dict operator place abuse mechanism fact design precisely pass dict keyword work key string implicit call contract namespace ordinary dict user pass keyword argument string callable enforce codedict code break consistency python code foo traceback recent file lt stdin line lt module typeerror foo keyword string dict code prepthis inconsistency bad implementation python pypy jython ironpython fix python usage break change ppi submit malicious incompetence intentionally write code work version language work arbitrary constraint ppmore comment pblockquote codedict item item code readable solution python readability count blockquotepmy response codemerge dict code clear concern readability forward compatible python increasingly deprecate pblockquote code code handle nest dictionary content nest key simply overwrite merge end burn answer merge recursively surprise mention interpretation word merge answer update dict merge blockquotepye refer question emshallow -PRON- merge strong emtwo -PRON- strong dictionary value overwrite single expression ppassume dictionary dictionary recursively merge single function careful modify dict source sure avoid make copy assign value key hashable immutable pointless copy codefrom copy import deepcopydef dict dict merge overlap key key amp key key overlap key key dict dict merge key key key key overlap key key deepcopy key key key overlap key key deepcopy key return code prepusage code dict dict merge code prepcome contingency type scope question point href https stackoverflow answer canonical question dictionary dictionary merge performant correct ad hocs approach performant provide correct behavior emmuch -PRON- performant codecopy code codeupdate code unpack iterate key pair high level abstraction emdo -PRON- respect order precedence dict precedence ppyou chain dict manually dict comprehension code dict item iteritem python code prepor python early generator expression introduce codedict dict item code prep codeitertool chain code chain iterator key pair correct order codeimport itertoolsz dict itertool chain iteritem iteritem code analysis performance analysis usage behave correctly codeimport timeit code prepthe ubuntu ppin python python code min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain iteritem iteritem min timeit repeat lambda dict item code prepin python deadsnake ppa code min timeit repeat lambda min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain item item min timeit repeat lambda dict item code dictionary href https stackoverflow question python build dictionary implement explanation python implementation strong update lili href https stackoverflow question add key dictionary answer add key dictionary lili href https stackoverflow question map list dictionary python mapping list dictionary lilithe official python href https docs python org tutorial datastructure html dictionary noreferrer docs dictionary lili href https youtube watch noreferrer dictionary mightier talk brandon rhode pycon lili href https youtube watch noreferrer modern python dictionary confluence great idea talk raymond hettinger pycon li attempt communicate point sentence improve blockquote merge python dictionary single expression blockquotepfor dictionary codex code codey code codez code shallowly merge dictionary value codey code replace codex code pulli pin python great codez code lili pin python low write function codedef merge dict copy start key value update modifie key value amp return return code prepand codez merge dict code li dict merge dict alter original dict codex code prepthe desire result dictionary codez code value merge dict value overwrite code code prepa syntax propose href https python org dev pep pep noreferrer pep href https mail python org pipermail python dev february html noreferrer python codez code prepand single expression ppnote merge literal notation codez foo bar code prepand code foo bar code prepit show implement href https python org dev pep pep feature noreferrer release schedule pep href https docs python org dev whatsnew html pep additional unpack generalization noreferrer python document pphowever organization python backwards compatible classically pythonic python python step process codez copy update return mutate code prepin approach codey code value replace codex code value code code point code final result python emsingle expression -PRON- python write backward compatible code emsingle expression -PRON- performant correct approach function codedef merge dict dict merge dict shallow copy copy update return code prepand single expression codez merge dict code prepyou make function merge undefined number dict large number codedef merge dict dict arg number dict shallow copy merge dict precedence key pair dict result dictionary dict arg result update dictionary return result code prepthis function work python dict dict codea code codeg code codez merge dict code prepand key pair codeg code precedence dict codea code codef code answer accept answer codez dict item item code prepin python create list memory dict create list memory length equal length discard list create dict strongin python fail strong add codedict item code object list code dict item item traceback recent file lt stdin line lt module typeerror unsupported operand type dict item dict item code prepand explicitly create list codez dict list item list item code waste resource computation power ppsimilarly take union codeitem code python codeviewitem code python fail value unhashable object list value hashable strongsince set semantically unordere behavior undefined precedence strong code dict item item code prepthis demonstrate value unhashable code dict item item traceback recent file lt stdin line lt module typeerror unhashable type list code prephere precedence retain arbitrary order set code dict item item code prepanother hack codez dict code prepthis codedict code constructor fast memory efficient slightly step process precisely happen dict pass keyword argument dict constructor difficult read intend usage pythonic pphere usage href https code djangoproject attachment ticket django pypy diff noreferrer remediate django ppdict intend hashable key frozenset tuple strongthis method fail python key string strong code dict traceback recent file lt stdin line lt module typeerror keyword argument string code href https mail python org pipermail python dev april html noreferrer mailing list guido van rossum creator language write pblockquote pi fine declare dict illegal abuse mechanism blockquotepand pblockquote papparently dict cool hack update return personally despicable cool blockquotepit understanding understanding href https mail python org pipermail python dev april html noreferrer creator language intend usage codedict code create dict readability purpose codedict code prepinstead code code comment pdespite guido codedict code line dict specification btw work python fact work string key direct consequence keyword parameter work short comme dict operator place abuse mechanism fact design precisely pass dict keyword work key string implicit call contract namespace ordinary dict user pass keyword argument string callable enforce codedict code break consistency python code foo traceback recent file lt stdin line lt module typeerror foo keyword string dict code prepthis inconsistency bad implementation python pypy jython ironpython fix python usage break change ppi submit malicious incompetence intentionally write code work version language work arbitrary constraint ppmore comment pblockquote codedict item item code readable solution python readability count blockquotepmy response codemerge dict code clear concern readability forward compatible python increasingly deprecate pblockquote code code handle nest dictionary content nest key simply overwrite merge end burn answer merge recursively surprise mention interpretation word merge answer update dict merge blockquotepye refer question emshallow -PRON- merge strong emtwo -PRON- strong dictionary value overwrite single expression ppassume dictionary dictionary recursively merge single function careful modify dict source sure avoid make copy assign value key hashable immutable pointless copy codefrom copy import deepcopydef dict dict merge overlap key key amp key key overlap key key dict dict merge key key key key overlap key key deepcopy key key key overlap key key deepcopy key return code prepusage code dict dict merge code prepcome contingency type scope question point href https stackoverflow answer canonical question dictionary dictionary merge performant correct ad hocs approach performant provide correct behavior emmuch -PRON- performant codecopy code codeupdate code unpack iterate key pair high level abstraction emdo -PRON- respect order precedence dict precedence ppyou chain dict manually dict comprehension code dict item iteritem python code prepor python early generator expression introduce codedict dict item code prep codeitertool chain code chain iterator key pair correct order codeimport itertoolsz dict itertool chain iteritem iteritem code analysis performance analysis usage behave correctly codeimport timeit code prepthe ubuntu ppin python python code min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain iteritem iteritem min timeit repeat lambda dict item code prepin python deadsnake ppa code min timeit repeat lambda min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain item item min timeit repeat lambda dict item code dictionary href https stackoverflow question python build dictionary implement explanation python implementation strong update lili href https stackoverflow question add key dictionary answer add key dictionary lili href https stackoverflow question map list dictionary python mapping list dictionary lilithe official python href https docs python org tutorial datastructure html dictionary noreferrer docs dictionary lili href https youtube watch noreferrer dictionary mightier talk brandon rhode pycon lili href https youtube watch noreferrer modern python dictionary confluence great idea talk raymond hettinger pycon li question nest dictionary answer merge dictionary recursively https stackoverflow review answer provide feedback miss blockquote merge python dictionary single expression blockquotepfor dictionary codex code codey code codez code shallowly merge dictionary value codey code replace codex code pulli pin python great codez code lili pin python low write function codedef merge dict copy start key value update modifie key value amp return return code prepand codez merge dict code li dict merge dict alter original dict codex code prepthe desire result dictionary codez code value merge dict value overwrite code code prepa syntax propose href https python org dev pep pep noreferrer pep href https mail python org pipermail python dev february html noreferrer python codez code prepand single expression ppnote merge literal notation codez foo bar code prepand code foo bar code prepit show implement href https python org dev pep pep feature noreferrer release schedule pep href https docs python org dev whatsnew html pep additional unpack generalization noreferrer python document pphowever organization python backwards compatible classically pythonic python python step process codez copy update return mutate code prepin approach codey code value replace codex code value code code point code final result python emsingle expression -PRON- python write backward compatible code emsingle expression -PRON- performant correct approach function codedef merge dict dict merge dict shallow copy copy update return code prepand single expression codez merge dict code prepyou make function merge undefined number dict large number codedef merge dict dict arg number dict shallow copy merge dict precedence key pair dict result dictionary dict arg result update dictionary return result code prepthis function work python dict dict codea code codeg code codez merge dict code prepand key pair codeg code precedence dict codea code codef code answer accept answer codez dict item item code prepin python create list memory dict create list memory length equal length discard list create dict strongin python fail strong add codedict item code object list code dict item item traceback recent file lt stdin line lt module typeerror unsupported operand type dict item dict item code prepand explicitly create list codez dict list item list item code waste resource computation power ppsimilarly take union codeitem code python codeviewitem code python fail value unhashable object list value hashable strongsince set semantically unordere behavior undefined precedence strong code dict item item code prepthis demonstrate value unhashable code dict item item traceback recent file lt stdin line lt module typeerror unhashable type list code prephere precedence retain arbitrary order set code dict item item code prepanother hack codez dict code prepthis codedict code constructor fast memory efficient slightly step process precisely happen dict pass keyword argument dict constructor difficult read intend usage pythonic pphere usage href https code djangoproject attachment ticket django pypy diff noreferrer remediate django ppdict intend hashable key frozenset tuple strongthis method fail python key string strong code dict traceback recent file lt stdin line lt module typeerror keyword argument string code href https mail python org pipermail python dev april html noreferrer mailing list guido van rossum creator language write pblockquote pi fine declare dict illegal abuse mechanism blockquotepand pblockquote papparently dict cool hack update return personally despicable cool blockquotepit understanding understanding href https mail python org pipermail python dev april html noreferrer creator language intend usage codedict code create dict readability purpose codedict code prepinstead code code comment pdespite guido codedict code line dict specification btw work python fact work string key direct consequence keyword parameter work short comme dict operator place abuse mechanism fact design precisely pass dict keyword work key string implicit call contract namespace ordinary dict user pass keyword argument string callable enforce codedict code break consistency python code foo traceback recent file lt stdin line lt module typeerror foo keyword string dict code prepthis inconsistency bad implementation python pypy jython ironpython fix python usage break change ppi submit malicious incompetence intentionally write code work version language work arbitrary constraint ppmore comment pblockquote codedict item item code readable solution python readability count blockquotepmy response codemerge dict code clear concern readability forward compatible python increasingly deprecate pblockquote code code handle nest dictionary content nest key simply overwrite merge end burn answer merge recursively surprise mention interpretation word merge answer update dict merge blockquotepye refer question emshallow -PRON- merge strong emtwo -PRON- strong dictionary value overwrite single expression ppassume dictionary dictionary recursively merge single function careful modify dict source sure avoid make copy assign value key hashable immutable pointless copy codefrom copy import deepcopydef dict dict merge overlap key key amp key key overlap key key dict dict merge key key key key overlap key key deepcopy key key key overlap key key deepcopy key return code prepusage code dict dict merge code prepcome contingency type scope question point href https stackoverflow answer canonical question dictionary dictionary merge performant correct ad hocs approach performant provide correct behavior emmuch -PRON- performant codecopy code codeupdate code unpack iterate key pair high level abstraction emdo -PRON- respect order precedence dict precedence ppyou chain dict manually dict comprehension code dict item iteritem python code prepor python early generator expression introduce codedict dict item code prep codeitertool chain code chain iterator key pair correct order codeimport itertoolsz dict itertool chain iteritem iteritem code analysis performance analysis usage behave correctly codeimport timeit code prepthe ubuntu ppin python python code min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain iteritem iteritem min timeit repeat lambda dict item code prepin python deadsnake ppa code min timeit repeat lambda min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain item item min timeit repeat lambda dict item code dictionary href https stackoverflow question python build dictionary implement explanation python implementation strong update lili href https stackoverflow question add key dictionary answer add key dictionary lili href https stackoverflow question map list dictionary python mapping list dictionary lilithe official python href https docs python org tutorial datastructure html dictionary noreferrer docs dictionary lili href https youtube watch noreferrer dictionary mightier talk brandon rhode pycon lili href https youtube watch noreferrer modern python dictionary confluence great idea talk raymond hettinger pycon li title question merge dictionary single expression dictionary merge value assume dict apropos add information answer feedback comment answer criticism relative subject inquire think blockquote merge python dictionary single expression blockquotepfor dictionary codex code codey code codez code shallowly merge dictionary value codey code replace codex code pulli pin python great codez code lili pin python low write function codedef merge dict copy start key value update modifie key value amp return return code prepand codez merge dict code li dict merge dict alter original dict codex code prepthe desire result dictionary codez code value merge dict value overwrite code code prepa syntax propose href https python org dev pep pep noreferrer pep href https mail python org pipermail python dev february html noreferrer python codez code prepand single expression ppnote merge literal notation codez foo bar code prepand code foo bar code prepit show implement href https python org dev pep pep feature noreferrer release schedule pep href https docs python org dev whatsnew html pep additional unpack generalization noreferrer python document pphowever organization python backwards compatible classically pythonic python python step process codez copy update return mutate code prepin approach codey code value replace codex code value code code point code final result python emsingle expression -PRON- python write backward compatible code emsingle expression -PRON- performant correct approach function codedef merge dict dict merge dict shallow copy copy update return code prepand single expression codez merge dict code prepyou make function merge undefined number dict large number codedef merge dict dict arg number dict shallow copy merge dict precedence key pair dict result dictionary dict arg result update dictionary return result code prepthis function work python dict dict codea code codeg code codez merge dict code prepand key pair codeg code precedence dict codea code codef code answer accept answer codez dict item item code prepin python create list memory dict create list memory length equal length discard list create dict strongin python fail strong add codedict item code object list code dict item item traceback recent file lt stdin line lt module typeerror unsupported operand type dict item dict item code prepand explicitly create list codez dict list item list item code waste resource computation power ppsimilarly take union codeitem code python codeviewitem code python fail value unhashable object list value hashable strongsince set semantically unordere behavior undefined precedence strong code dict item item code prepthis demonstrate value unhashable code dict item item traceback recent file lt stdin line lt module typeerror unhashable type list code prephere precedence retain arbitrary order set code dict item item code prepanother hack codez dict code prepthis codedict code constructor fast memory efficient slightly step process precisely happen dict pass keyword argument dict constructor difficult read intend usage pythonic pphere usage href https code djangoproject attachment ticket django pypy diff noreferrer remediate django ppdict intend hashable key frozenset tuple strongthis method fail python key string strong code dict traceback recent file lt stdin line lt module typeerror keyword argument string code href https mail python org pipermail python dev april html noreferrer mailing list guido van rossum creator language write pblockquote pi fine declare dict illegal abuse mechanism blockquotepand pblockquote papparently dict cool hack update return personally despicable cool blockquotepit understanding understanding href https mail python org pipermail python dev april html noreferrer creator language intend usage codedict code create dict readability purpose codedict code prepinstead code code comment pdespite guido codedict code line dict specification btw work python fact work string key direct consequence keyword parameter work short comme dict operator place abuse mechanism fact design precisely pass dict keyword work key string implicit call contract namespace ordinary dict user pass keyword argument string callable enforce codedict code break consistency python code foo traceback recent file lt stdin line lt module typeerror foo keyword string dict code prepthis inconsistency bad implementation python pypy jython ironpython fix python usage break change ppi submit malicious incompetence intentionally write code work version language work arbitrary constraint ppmore comment pblockquote codedict item item code readable solution python readability count blockquotepmy response codemerge dict,,,,,,, "code clear concern readability forward compatible python increasingly deprecate pblockquote code code handle nest dictionary content nest key simply overwrite merge end burn answer merge recursively surprise mention interpretation word merge answer update dict merge blockquotepye refer question emshallow -PRON- merge strong emtwo -PRON- strong dictionary value overwrite single expression ppassume dictionary dictionary recursively merge single function careful modify dict source sure avoid make copy assign value key hashable immutable pointless copy codefrom copy import deepcopydef dict dict merge overlap key key amp key key overlap key key dict dict merge key key key key overlap key key deepcopy key key key overlap key key deepcopy key return code prepusage code dict dict merge code prepcome contingency type scope question point href https stackoverflow answer canonical question dictionary dictionary merge performant correct ad hocs approach performant provide correct behavior emmuch -PRON- performant codecopy code codeupdate code unpack iterate key pair high level abstraction emdo -PRON- respect order precedence dict precedence ppyou chain dict manually dict comprehension code dict item iteritem python code prepor python early generator expression introduce codedict dict item code prep codeitertool chain code chain iterator key pair correct order codeimport itertoolsz dict itertool chain iteritem iteritem code analysis performance analysis usage behave correctly codeimport timeit code prepthe ubuntu ppin python python code min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain iteritem iteritem min timeit repeat lambda dict item code prepin python deadsnake ppa code min timeit repeat lambda min timeit repeat lambda merge dict min timeit repeat lambda item min timeit repeat lambda dict itertool chain item item min timeit repeat lambda dict item code dictionary href https stackoverflow question python build dictionary implement explanation python implementation strong update lili href https stackoverflow question add key dictionary answer add key dictionary lili href https stackoverflow question map list dictionary python mapping list dictionary lilithe official python href https docs python org tutorial datastructure html dictionary noreferrer docs dictionary lili href https youtube watch noreferrer dictionary mightier talk brandon rhode pycon lili href https youtube watch noreferrer modern python dictionary confluence great idea talk raymond hettinger pycon li update answer respond comment blockquote python purpose code slot code case avoid special attribute code slot code explicitly state instance attribute expect object instance expect result polli strongfaster strong attribute access lili strongspace saving strong memory li space saving pollistore reference slot code dict code lilidenye code dict code code weakref code creation parent class deny declare code slot code li caveat caveat declare slot time inheritance tree codeclass base slot foo bar class base slot baz class wrong base slot foo bar baz redundant foo bar code preppython object wrong problem manifest object space code sys import getsizeof getsizeof getsizeof wrong code prepthe big caveat multiple inheritance multiple parent class nonempty slot combine ppto accommodate restriction follow practice factor parent abstraction concrete class concrete class collectively inherit give abstraction slot abstract base class standard library ppsee section multiple inheritance pto attribute name code slot code store slot code dict code class inherit codeobject code lili pto prevent creation code dict code inherit codeobject code class inheritance declare code slot code code dict code entry li ulpthere lot detail read code slot code faster attribute access creator python guido van rossum href http python history blogspot story style class html noreferrer state create code slot code faster attribute access ppit trivial demonstrate measurably significant faster access codeimport timeitclass foo object slot foo class bar object passslotte foo slot bar def set delete fn def set delete foo foo foo foo return set delete code prepand code min timeit repeat set delete fn slot min timeit repeat set delete fn slot code prepthe slot access faster python ubuntu code code prepin python window measure faster code slot code memory saving purpose code slot code reduce space memory object instance take href https docs python org reference datamodel html slot noreferrer contribution documentation state reason pblockquote pthe space save code dict code significant blockquotep href http docs sqlalchemy org changelog migration html significant improvement structural memory noreferrer sqlalchemy attribute lot memory saving code slot code ppto verify anaconda distribution python ubuntu codeguppy hpy code aka heapy codesys getsizeof code size class instance code slot code declare byte emnot -PRON- include code dict code python lazy evaluation code dict code apparently call existence reference class datum useless call existence code dict code attribute minimum byte additionally ppin contrast class instance code slot code declare code code datum byte total byte item slot ppfor bit python illustrate memory consumption byte python code slot code code dict code slot define point dict grow attribute code python python slot dict slot dict slot define dict referencedone code prepso spite small dict python nicely code slot code scale instance save memory major reason code slot code ppjust completeness note note time cost slot class namespace byte python byte python slot datum descriptor property call member code foo foo lt member foo foo object type foo foo lt class member descriptor getsizeof foo foo code code slot code deny creation code dict code subclass codeobject code codeclass base object slot code prepnow code base traceback recent file lt pyshell line lt module attributeerror base object attribute code prepor subclass class define code slot code codeclass child base slot code prepand codec child code prepbut code traceback recent file lt pyshell line lt module attributeerror child object attribute code prepto code dict code creation subclasse slot object add code dict code code slot code note slot order repeat slot parent class codeclass slottedwithdict child slot dict slottedwithdict code prepand code dict code prepor declare code slot code subclass slot parent restrict creation code dict code codeclass noslot child passn noslot code prepand code dict code prephowever code slot code problem multiple inheritance codeclass basea object slot class baseb object slot code prepbecause create child class parent slot fail code class child basea baseb slot traceback recent file lt pyshell line lt module class child basea baseb slot typeerror error call metaclass basis multiple basis instance lie conflict code prepif run problem emcould -PRON- remove code slot code parent control parent slot refactor abstraction codefrom abc import abcclass abstracta abc slot class basea abstracta slot class abstractb abc slot class baseb abstractb slot class child abstracta abstractb slot child problem code code dict code code slot code dynamic assignment codeclass foo object slot bar baz dict code prepand code foo foo foo boink boink code prepso code dict code slot lose size benefit upside dynamic assignment slot name expect ppwhen inherit object slot sort semantic code slot code name code slot code point slot value value instance code dict code ppavoide code slot code add attribute fly good reason add code dict code code slot code require ppyou similarly add code weakref code code slot code explicitly feature tuple subclasse namedtuple namedtuple builtin make immutable instance lightweight essentially size tuple benefit subclass codefrom collection import namedtupleclass mynt namedtuple mynt bar baz mynt immutable lightweight object slot code prepusage code nt mynt bar baz nt bar bar nt baz baz code prepand assign unexpected attribute raise code prevent creation code dict code code nt quux quux traceback recent file lt stdin line lt module attributeerror mynt object attribute quux code prepyou emcan -PRON- code dict code creation leave code slot code code slot code subtype tuple caveat multiple inheritance slot multiple parent codeclass foo object slot foo bar class bar object slot foo bar alas work class baz foo bar passtraceback recent file lt stdin line lt module typeerror error call metaclass basis multiple basis instance lie conflict code prepuse code slot code parent provide flexibility strongallowe child choose prevent strong add code dict code dynamic assignment section strongthe creation code dict code strong codeclass foo object slot class bar object slot class baz foo bar slot foo bar baz foo bar foo bar code prepyou -PRON- slot add remove problem stronggoe limb strong composing href https stackoverflow question mixin inheritance mixin href https stackoverflow question difference abstract class interface python abstract base class intend instantiate code slot code parent term flexibility subclasser ppto demonstrate create class code multiple inheritance codeclass abstractbase slot def init def repr return type repr repr code prepwe directly inherit declare expect slot codeclass foo abstractbase slot code prepbut care trivial single inheritance class inherit noisy attribute codeclass abstractbasec slot def print return setter def arg print set arg code prepnow basis nonempty slot fact want code nonempty slot leave declaration leave wrong codeclass concretion abstractbase abstractbasec slot split code prepand functionality multiple inheritance deny code dict code code weakref code instantiation code concretion csette cgette concretion traceback recent file lt stdin line lt module attributeerror concretion object attribute code case avoid slot perform code class code assignment class add slot layout identical interested learn liliavoid subclass variable length builtin long tuple str add attribute liliavoid insist provide default value class attribute instance variable li ulpyou tease caveat rest code slot code href https docs python org reference datamodel html slot noreferrer documentation dev docs current significant recent contribution answer current answer cite outdate information hand wavy miss mark important way code slot code instantiate lot object quote pblockquote code slot code instantiate lot hundred thousand object class base class codecollection code module instantiate code slot code declare ppwhy ppif user wish deny code dict code code weakref code creation thing parent class code slot code contribute reusability create interface mixin ppit true python user write reusability option deny unnecessary space usage valuable code slot code break pickle pickle slot object complain mislead codetypeerror code code load dump typeerror class define slot define getstate pickle code prepthis incorrect message old protocol default select late protocol code code argument python code introduce code code load dump lt main foo object code prepin python code load dump lt main foo object code prepin python code load dump lt main foo object code prepso mind solve problem oct accept answer paragraph half short explanation half predictive answer question pblockquote pthe proper code slot code save space object dynamic dict add attribute object anytime static structure addition creation save overhead dict object slot blockquotepthe half wishful think mark pblockquote pwhile optimization completely unnecessary python interpreter dynamic require dict addition object similar create code dict code access create lot object datum fairly ridiculous ppthe paragraph oversimplifie miss actual reason avoid code slot code emnot -PRON- real reason avoid slot emactual -PRON- reason rest answer pblockquote pthey change behavior object slot abuse control freak static type weenie blockquotepit discuss way accomplish perverse goal python discuss code slot code ppthe paragraph wishful think mark content answerer author contribute ammunition critic site usage evidence normal object slot object code class foo object pass class bar object slot code prepinstantiate code foo foo xrange bar bar xrange code prepinspect codeguppy hpy heap code code guppy hpy heap partition set object total size byte index count size cumulative kind class dict class main foo list main bar str code prepaccess regular object code dict code inspect code foo dict guppy hpy heap partition set object total size byte index count size cumulative kind class dict class dict main foo main foo list main bar str code prepthis consistent history python href https python org download release descrintro noreferrer unifying type class python pblockquote pif subclass build type extra space automatically add instance accomodate code dict code code weakref code code dict code initialize worry space occupy dictionary instance create extra space add phrase code slot code class blockquote bring typo attention turn instantiation forget edit save post history catch sooner thing code copy pastable blockquote python purpose code slot code case avoid special attribute code slot code explicitly state instance attribute expect object instance expect result polli strongfaster strong attribute access lili strongspace saving strong memory li space saving pollistore reference slot code dict code lilidenye code dict code code weakref code creation parent class deny declare code slot code li caveat caveat declare slot time""",1,NULL,Using abc ABCMeta in way it is compatible both with Python and Python python python metaclass python abc pI like to create class which has codeabc ABCMeta code as metaclass and is compatible both with Python and Python Until now only succeeded doing this either on or on but never on both versions simultaneously Could someone give me hand ppPython ppre codeimport abcclass SomeAbstractClass object metaclass abc ABCMeta abstractmethod def do something self pass code prepPython ppre codeimport abcclass SomeAbstractClass metaclass abc ABCMeta abstractmethod def do something self pass code preh2Testing h2pIf we run the following test using the suitable version of the Python interpreter Python Example Python Example it succeeds in both scenarios ppre codeimport unittestclass SomeAbstractClassTestCase unittest TestCase def test do something raises exception self with self assertRaises TypeError as error processor SomeAbstractClass msg str error exception expected msg Can instantiate abstract class SomeAbstractClass with abstract methods do something self assertEqual msg expected msg code preh2Problem h2pWhile running the test using Python the expected behavior doesn happen codeTypeError code is not raised while instantiating codeSomeAbstractClass code ppre code FAIL test do something raises exception main SomeAbstractClassTestCase Traceback most recent call last File home tati sample abc py line 22 in test do something raises exception processor SomeAbstractClass AssertionError TypeError not raised code prepWhereas running the test using Python raises codeSyntaxError code ppre code Python incompatible Raises exception File home tati sample abc py line 24 class SomeAbstractClass metaclass abc ABCMeta SyntaxError invalid syntax code pre blockquote h1Using abc ABCMeta in way it is compatible both with Python and Python h1 blockquotepIf we were only using Python this is href https docs python org library abc html abc ABC rel nofollow noreferrer new in we could do ppre codefrom abc import ABC code prepand inherit from codeABC code instead of codeobject code That is ppre codeclass SomeAbstractClass ABC etc code prepYou still don need an extra dependence the six module you can use the metaclass to create parent this is essentially what the six module does in with metaclass ppre codeimport abc compatible with Python and ABC abc ABCMeta ABC object slots class SomeAbstractClass ABC abstractmethod def do something self pass code prepOr you could just do it in place but this is more messy and doesn contribute as much to reuse ppre code use ABCMeta compatible with Python and class SomeAbstractClass abc ABCMeta ABC object slots abstractmethod def do something self pass code prepNote that the signature looks little messier than href https pythonhosted org six six with metaclass rel nofollow noreferrer codesix with metaclass code but it is substantially the same semantics without the extra dependence ph2Either solution h2pand now when we try to instantiate without implementing the abstraction we get precisely what we expect ppre code gt gt gt SomeAbstractClass Traceback most recent call last File lt pyshell 31 gt line in lt module gt SomeAbstractClass TypeError Can instantiate abstract class SomeAbstractClass with abstract methods do something code preh2Note on code slots code h2pWe href http bugs python org issue30463 rel nofollow noreferrer just added empty code slots code to the ABC convenience class in Python standard library and my answer is updated to include it ppNot having code dict code and code weakref code available in the codeABC code parent allows users to deny their creation for child classes and save memory there are no downsides unless you were using code slots code in child classes already and relying on implicit code dict code or code weakref code creation from the codeABC code parent ppThe fast fix would be to declare code dict code or code weakref code in your child class as appropriate Better for code dict code might be to declare all your members explicitly,,,,, 2017,626270,1169872,NULL,NULL,NULL,0,NULL,NULL 2018,2467,725403,NULL,NULL,NULL,0,NULL,NULL 2019,187322,283419,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2020,294475,1259640,NULL,NULL,NULL,0,NULL,NULL 2021,125407,463500,Yearling Guru,NULL,NULL,0,NULL,NULL 2022,3739406,791926,Teacher Popular Question,NULL,NULL,0,NULL,NULL 2023,3659,1367873,NULL,NULL,NULL,0,NULL,NULL 2024,228319,1416419,NULL,NULL,NULL,0,NULL,NULL 2025,759647,699301,NULL,NULL,NULL,0,NULL,NULL 2026,282826,1045662,NULL,NULL,NULL,0,NULL,NULL 2027,264815,1120248,Necromancer Famous Question Guru Famous Question Yearling Nice Answer Good Question Yearling Notable Question Announcer Electorate,NULL,NULL,0,NULL,NULL 2028,33226,11229,Good Answer Good Question Yearling Necromancer Nice Question Nice Answer Necromancer Popular Question Yearling Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 2029,312018,147862,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 2030,239519,850694,Critic Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 2031,274388,957805,Nice Answer,NULL,NULL,0,NULL,NULL 2032,50149,440678,NULL,NULL,NULL,0,NULL,NULL 2033,587574,689435,Curious Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2034,605552,689435,Curious Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2035,156479,571783,Yearling Notable Question Fanatic Notable Question Great Question Nice Question Nice Question Yearling Notable Question Electorate Famous Question Favorite Question Popular Question Notable Question Great Question Yearling Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2036,159851,1215581,NULL,NULL,NULL,0,NULL,NULL 2037,208492,1552119,NULL,NULL,NULL,0,NULL,NULL 2038,20826,6616,Yearling Great Answer Yearling Popular Question,NULL,pI was able to get this working by importing the certificates into the machine store and not the user store which is the default ppre code sudo mozroots import machine sync sudo certmgr ssl https go microsoft com sudo certmgr ssl https nugetgallery blob core windows net sudo certmgr ssl https nuget org code prepI verified that before did this even after having done the original user store based commands href http www mono project com FAQ Security the tlstest exe tool failed and after importing into the machine store it succeeded ppAnd most important to me of course nuget started working then too don use mono or NET anymore so not equipped to update it Hopefully someone else solves any current problems and can either update my answer or add new one,0,NULL,NULL 2039,580760,146041,Announcer Nice Answer Good Question Nice Answer Favorite Question c++11 Nice Question Nice Answer Yearling Nice Answer Revival Necromancer Great Answer Self-Learner Cleanup Nice Question Good Question Popular Question Nice Question Notable Question Necromancer Favorite Question Necromancer Nice Question Nice Answer Good Question Popular Question Notable Question Good Answer Guru Yearling Nice Question Announcer Nice Answer Notable Question Announcer Documentation User Nice Answer Nice Answer Nice Answer Popular Question Great Answer Yearling Nice Answer Enlightened Popular Question Revival,NULL,NULL,1,NULL,Specializing template on lambda in 0x templates lambda 11 specialization pI ve written traits class that lets me extract information about the arguments and type of function or function object in 0x tested with gcc The general case handles function objects ppre codetemplate lt typename gt struct function traits template lt typename typename gt struct internal template lt typename typename gt struct internal lt gt typedef typename internal lt decltype amp operator gt lt lt nested types go here gt gt code prepThen have specialization for plain functions at global scope ppre codetemplate lt typename typename gt struct function traits lt gt code prepThis works fine can pass function into the template or function object and it works properly ppre codetemplate lt typename gt void foo typename function traits lt gt whatever int int foo code prepWhat if instead of passing function or function object into codefoo code want to pass lambda expression ppre codefoo int code prepThe problem here is that neither specialization of codefunction traits lt gt code applies The 0x draft says that the type of the expression is unique unnamed non union class type Demangling the result of calling codetypeid name code on the expression gives me what appears to be gcc internal naming convention for the lambda codemain lambda int code not something that syntactically represents typename ppIn short is there anything can put into the template here ppre codetemplate lt typename typename gt struct function traits lt gt code prepthat will allow this traits class to accept lambda expression pThe codevoid code trick can help href https stackoverflow com questions 27687389 how does void work 27688405 How does void work ppUnless you have 17 you ll need to include the definition of codevoid code ppre codetemplate lt typename Ts gt struct make void typedef void type template lt typename Ts gt using void typename make void lt Ts gt type code prepAdd an extra template argument to the original template defaulted to codevoid code ppre codetemplate lt typename typename void gt struct function traits code prepThe traits object for simple functions is the same as you already have ppre codetemplate lt typename typename gt struct function traits lt gt using return type using class type void using args type std tuple lt gt code prepFor non const methods ppre codetemplate lt typename typename gt struct function traits lt gt using return type using class type void using args type std tuple lt gt code prepDon forget codeconst code methods ppre codetemplate lt typename typename typename gt struct function traits lt const gt const using return type using class type using args type std tuple lt gt code prepFinally the important trait Given class type including lambda types we want to forward from codeT code to codedecltype amp operator code We want to ensure that this trait is only available for types codeT code for which code operator code is available and this is what codevoid code does for us To enforce this constraint we need to put code amp operator code into the trait signature somewhere hence codetemplate lt typename gt struct function traits lt void lt decltype amp operator code ppre codetemplate lt typename gt struct function traits lt void lt decltype amp operator gt gt public function traits lt decltype amp operator gt code prepThe operator method in non codemutable code non generic lambdas is codeconst code which explains why we need the codeconst code template above ppBut ultimately this is very restrictive This won work with generic lambdas or objects with templated codeoperator code If you reconsider your design you find find different approach that is more flexible 2040,3124955,381797,Popular Question Notable Question Popular Question Nice Answer Nice Question Yearling Notable Question Self-Learner Notable Question Good Answer Popular Question Popular Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 2041,31492,381797,Popular Question Notable Question Popular Question Nice Answer Nice Question Yearling Notable Question Self-Learner Notable Question Good Answer Popular Question Popular Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 2042,491591,180755,NULL,NULL,NULL,0,NULL,NULL 2043,357341,463490,Notable Question Popular Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 2044,196076,58136,Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 2045,468792,218045,NULL,NULL,NULL,0,NULL,NULL 2046,249696,1056869,Popular Question Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2047,5399326,1056869,Popular Question Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2048,889928,875415,NULL,NULL,NULL,0,NULL,NULL 2049,21880,868330,NULL,NULL,NULL,0,NULL,NULL 2050,978715,24908,Notable Question Famous Question Proofreader Famous Question Revival Yearling Caucus Constituent c# Favorite Question Popular Question Custodian Yearling Documentation User Good Question Notable Question Announcer Popular Question Notable Question Caucus Notable Question Custodian Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2051,261553,660073,NULL,NULL,NULL,0,NULL,NULL 2052,52101,364670,NULL,NULL,NULL,0,NULL,NULL 2053,145683,823898,Notable Question,NULL,NULL,0,NULL,NULL 2054,108545,176758,Yearling,NULL,NULL,0,NULL,NULL 2055,177949,885287,Nice Answer Yearling Nice Question Popular Question Great Question Nice Question Famous Question Notable Question Yearling Popular Question Popular Question Documentation User Civic Duty Favorite Question Census Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 2056,475995,185839,Yearling,NULL,NULL,0,NULL,NULL 2057,300093,674231,NULL,NULL,NULL,0,NULL,NULL 2058,132709,1464978,NULL,NULL,NULL,0,NULL,NULL 2059,3912851,1464978,NULL,NULL,NULL,0,NULL,NULL 2060,1534390,1464978,NULL,NULL,NULL,0,NULL,NULL 2061,4758212,1464978,NULL,NULL,NULL,0,NULL,NULL 2062,7352256,1464978,NULL,NULL,NULL,0,NULL,NULL 2063,356833,296238,Nice Question,NULL,NULL,0,NULL,NULL 2064,165525,1138897,Popular Question Supporter,NULL,NULL,0,NULL,NULL 2065,6435908,753988,Notable Question,NULL,NULL,0,NULL,NULL 2066,219203,3752,Revival Critic Popular Question,NULL,NULL,0,NULL,NULL 2067,162405,23459,NULL,NULL,NULL,0,NULL,NULL 2068,1002638,826667,NULL,NULL,NULL,0,NULL,NULL 2069,13533,465077,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2070,455302,236106,Notable Question Notable Question Self-Learner Notable Question Popular Question Nice Question Notable Question Custodian Favorite Question Yearling Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Answer Popular Question Famous Question Yearling Popular Question Popular Question Excavator Great Question Good Question Popular Question Famous Question Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 2071,284233,166816,Critic Student,NULL,NULL,0,NULL,NULL 2072,187208,338275,NULL,NULL,NULL,0,NULL,NULL 2073,851192,1222286,NULL,NULL,NULL,0,NULL,NULL 2074,197014,577968,NULL,NULL,NULL,0,NULL,NULL 2075,226414,1343070,Nice Question Enthusiast Teacher Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 2076,496202,2680,c# Famous Question Yearling Famous Question Unsung Hero Nice Answer Custodian Good Answer Yearling Good Question Popular Question Popular Question Census Popular Question Caucus Nice Question Yearling,NULL,NULL,0,NULL,NULL 2077,5959004,939994,Notable Question,NULL,NULL,0,NULL,NULL 2078,206430,1316121,NULL,NULL,NULL,0,NULL,NULL 2079,313913,497356,Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer jquery-validate Good Answer Good Answer Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Reviewer Nice Answer Guru queryover Guru Guru Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Enlightened Nice Answer Guru Nice Answer Enlightened Yearling Caucus Great Answer Great Answer Enlightened Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened c# Good Answer Guru Reviewer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened .net Nice Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Announcer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Announcer json Yearling Announcer Good Answer,NULL,pYou would do something like this by tapping into the codescroll code event handler on codewindow code and using another codetable code with fixed position to show the header at the top of the page pp strongHTML strong ppre code lt table id header fixed gt lt table gt code prep strongCSS strong ppre code header fixed position fixed top 0px display none background color white code prep strongJavaScript strong ppre codevar tableOffset table offset top var header table gt thead clone var fixedHeader header fixed append header window bind scroll function var offset this scrollTop if offset gt tableOffset amp amp fixedHeader is hidden fixedHeader show else if offset lt tableOffset fixedHeader hide code prepThis will show the table head when the user scrolls down far enough to hide the original table head It will hide again when the user has scrolled the page up far enough again ppWorking example href http jsfiddle net andrewwhitaker fj8wM rel noreferrer http jsfiddle net andrewwhitaker fj8wM harmabandu Unfortunately not This is over years old now might be best to open new question,0,NULL,NULL 2080,202749,599075,Yearling Nice Answer Good Answer Guru Good Answer Yearling Custodian Yearling Guru Nice Answer jquery Good Answer,NULL,pA great resource to pick the correct HTTP error code for your API href http www codetinkerer com 2015 12 04 choosing an http status code html rel noreferrer http www codetinkerer com 2015 12 04 choosing an http status code html ppAn excerpt from the article ph2Where to start h2p href https stack imgur com 0pDZI png rel noreferrer img src https stack imgur com 0pDZI png alt enter image description here ph22XX 3XX h2p href https stack imgur com LayiK png rel noreferrer img src https stack imgur com LayiK png alt enter image description here ph24XX h2p href https stack imgur com UTpnp png rel noreferrer img src https stack imgur com UTpnp png alt enter image description here ph25XX h2p href https stack imgur com Wy1rN png rel noreferrer img src https stack imgur com Wy1rN png alt enter image description here regular old 400,0,NULL,NULL 2081,336727,877657,Revival,NULL,NULL,0,NULL,NULL 2082,79040,1442514,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2083,37309,388948,Popular Question,NULL,NULL,0,NULL,NULL 2084,82840,1065691,NULL,NULL,NULL,0,NULL,NULL 2085,748342,136559,Civic Duty Informed Yearling Editor Caucus Enthusiast Yearling Necromancer Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 2086,74975,543830,Yearling Famous Question Notable Question Famous Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 2087,514644,168206,Famous Question Teacher Popular Question Yearling Revival Revival,NULL,NULL,0,NULL,NULL 2088,20979,259603,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2089,158040,334566,Popular Question,NULL,NULL,0,NULL,NULL 2090,1569661,1542990,Custodian Nice Answer Caucus Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 2091,208756,1363782,NULL,NULL,NULL,0,NULL,NULL 2092,276484,859941,NULL,NULL,NULL,0,NULL,NULL 2093,7639340,1223587,NULL,NULL,NULL,0,NULL,NULL 2094,73673,119255,Caucus Informed Caucus Necromancer Nice Answer Yearling Necromancer Good Answer Editor Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2095,140846,1256317,NULL,NULL,NULL,0,NULL,NULL 2096,277504,688309,NULL,NULL,NULL,0,NULL,NULL 2097,48281,224971,Curious Yearling,NULL,NULL,0,NULL,NULL 2098,133362,1169052,Editor Supporter,NULL,NULL,0,NULL,NULL 2099,208217,971454,NULL,NULL,NULL,0,NULL,NULL 2100,10005057,971454,NULL,NULL,NULL,0,NULL,NULL 2101,723371,730138,Promoter Benefactor Autobiographer Popular Question,NULL,pIf you set font size in ems or it will base itself on the default font size The trick is to change the default font size according to the window size Connect to the window codeconfigure event code and set new default font size when the window is resized ppHere simplified example ppre codeconst string WINDOW CSS TEMPLATE mywindow font size fpx const string APPLICATION CSS mywindow label font size 5em void main string args Gtk init ref args var win new Gtk Window win name mywindow win default width 800 win default height 600 var label new Gtk Label Some text label halign Gtk Align END label valign Gtk Align END win add label win destroy connect Gtk main quit var win provider new Gtk CssProvider Gtk StyleContext add provider for screen Gdk Screen get default win provider Gtk STYLE PROVIDER PRIORITY APPLICATION var app provider new Gtk CssProvider try app provider load from data APPLICATION CSS catch Error Process exit Gtk StyleContext add provider for screen Gdk Screen get default app provider Gtk STYLE PROVIDER PRIORITY APPLICATION win configure event connect event gt try Replace this with your desired calculation of the base font size var target size double event height 600 12 var css WINDOW CSS TEMPLATE printf target size win provider load from data css catch Error Process exit return Gdk EVENT PROPAGATE win show all Gtk main code prepThis only cares about the height of the window so you ll get an unreadably tiny label if you resize the window to be much wider than it is high but you can plug in whatever calculation works for you Works perfectly In my case we are guaranteed to never change the window size so implemented your solution without the event https github com andybarry pdfpc commit 19e279cf0a9f6f6bcc89c79185f7bf1bdf305c2b,0,NULL,NULL 2102,139173,1476826,NULL,NULL,NULL,0,NULL,NULL 2103,384914,41956,Nice Answer Popular Question Popular Question Nice Answer Notable Question Nice Answer Notable Question Great Answer Famous Question Popular Question Nice Answer Enlightened Nice Answer string Good Answer Guru Nice Answer Enlightened Announcer sql-server Nice Answer Guru Popular Question Good Question Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Popular Question Great Answer Notable Question xml Nice Answer Notable Question Nice Answer Enlightened Good Answer Guru Good Question Good Question Nice Answer Guru Popular Question Nice Answer Enlightened Great Answer Famous Question Nice Question Notable Question Famous Question Nice Question Popular Question Guru Nice Question Caucus Yearling Great Answer Good Answer Great Question Popular Question Nice Answer Nice Answer Popular Question Popular Question compiler-errors Good Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Nice Answer Good Question sql Notable Question Nice Question Good Answer Notable Question Famous Question Famous Question .net-4.0 Popular Question Guru Notable Question Notable Question Nice Answer Enlightened Great Question Good Question Nice Answer Good Answer Guru Necromancer Nice Question Guru Famous Question Documentation User Nice Answer Famous Question Nice Answer Notable Question Notable Question Nice Answer Yearling Popular Question Nice Answer Enlightened Census Guru Good Question Nice Answer Popular Question Good Answer Nice Answer Enlightened Nice Question Famous Question Notable Question Nice Answer Guru Good Answer Announcer Good Question Good Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Nice Answer Enlightened Notable Question Famous Question Notable Question Guru Nice Answer Great Question Popular Question Nice Answer Yearling,NULL,pTo start program and then close command prompt without waiting for program to exit ppre codestart path file exe code pre sorry it impossible,0,NULL,NULL 2104,331271,392542,Popular Question,NULL,NULL,0,NULL,NULL 2105,562722,910012,NULL,NULL,NULL,0,NULL,NULL 2106,79468,946961,Supporter Popular Question,NULL,NULL,0,NULL,NULL 2107,621471,1024553,Caucus Popular Question,NULL,NULL,0,NULL,NULL 2108,314840,643808,NULL,NULL,NULL,0,NULL,NULL 2109,252816,1265335,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 2110,7466300,708882,Notable Question,NULL,NULL,0,NULL,NULL 2111,275513,708882,Notable Question,NULL,NULL,0,NULL,NULL 2112,269240,906230,Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Promoter Popular Question,NULL,NULL,0,NULL,NULL 2113,261917,262983,Good Answer Yearling Civic Duty Good Question Inquisitive Nice Answer Popular Question Notable Question Yearling Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 2114,902390,303785,Popular Question,NULL,NULL,0,NULL,NULL 2115,1159555,360952,NULL,NULL,NULL,0,NULL,NULL 2116,252284,1140424,Curious Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 2117,133465,1249621,NULL,NULL,NULL,0,NULL,NULL 2118,226,377318,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2119,802010,1472362,NULL,NULL,NULL,0,NULL,NULL 2120,341989,1190453,Yearling Nice Answer Popular Question Self-Learner Caucus Yearling Revival Custodian Custodian Custodian Notable Question Yearling Caucus Nice Answer Yearling Good Answer Caucus Popular Question Revival Organizer,NULL,pIf your intent is to get codeidea ultimate code into nix shell environment then just include that package to codebuildInputs code see it already included so it should already be present in your codePATH code ppBTW you can extend your codeshellHook code and export PATH and other variables rather from there where you have full bash Why would you do it from bash Less copying When you specify ppre codeIDEA JDK usr lib jvm zulu amd64 code prepin Nix the file usr lib jvm zulu amd64 get copied to nix store and codeIDEA JDK code is set to point to file in code nix store code Was that your intent ppRegarding nix instantiate ppre code nix instantiate eval with import lt nixpkgs gt idea pycharm community outPath nix store 71jk0spr30rm4wsihjwbb1hcwwvzqr4k pycharm community 2017 code prepbut you still have to remove doublequotes href https gist github com danbst a9fc068ff26e31d88de9709965daa2bd rel nofollow noreferrer https gist github com danbst a9fc068ff26e31d88de9709965daa2bd ppAlso nitpick codeassert pkgs jetbrains idea ultimate name code can be dropped as it impossible to have empty derivation name in Nix ppAnd another nitpick You ll soon find very incovenient to launch IDE from shell every time It seems good idea to specify that some package is used for development but codenix shell code doesn work well for non cli applications Not to mention occasional problems with Nix GC and codenix shell code You better install IDE globally or per user it is better long term solution phrp ADDENDUM ppYou are looking for this codedev environment nix code ppre codewith import lt nixpkgs gt buildEnv name my super dev env paths emacs nano idea pycharm community buildInputs makeWrapper postBuild for in ls out bin do wrapProgram set IDEA JDK path to zulu jdk set CLANG PATH set CLANCPP PATH done code prepwhich you install using codenix env if dev environment nix code It will wrap your programs with those env vars without polluting your workspace you can pollute it further using codenix shell code with shell hook if you want it tricky question because while it is possible in Nix it has drawbacks ll add required steps to my answer then,1,NULL,How to get the name from nixpkgs derivation in nix expression to be used by nix shell nix nixpkgs pI writing nix expression to be used primarily by codenix shell code not sure how to do that Note this is not on NixOS but don think that is very relevant ppThe particular example looking at is that want to get href https github com NixOS nixpkgs blob 6dae73f552f299e4be792a8f526dda98f427149e pkgs applications editors jetbrains default nix L309 rel nofollow noreferrer this version dependent name that looks like ppre code idea ultimate buildIdea rec name idea ultimate version version 2017 updated by script description Integrated Development Environment IDE by Jetbrains requires paid license license stdenv lib licenses unfree src fetchurl url https download jetbrains com idea ideaIU version no jdk tar gz sha256 b8eb9d612800cc896eb6b6fbefbf9f49d92d2350ae1c3c4598e5e12bf93be401 updated by script wmClass jetbrains idea update channel IDEA Release code prepMy nix expression is the following ppre codelet pkgs import lt nixpkgs gt stdenv pkgs stdenv idea name assert pkgs jetbrains idea ultimate name pkgs jetbrains idea ultimate name in rec scalaEnv stdenv mkDerivation rec name scala env builder scala build sh shellHook alias cls clear CLANG PATH pkgs clang bin clang CLANGPP PATH pkgs clang bin clang bug in the nixpkgs openjdk 29151 makes us resort to Zulu OpenJDK for IDEA IDEA JDK pkgs openjdk lib openjdk PATH pkgs jetbrains idea ultimate idea name bin PATH IDEA JDK usr lib jvm zulu amd64 IDEA JDK opt zulu8 23 jdk8 144 linux x64 IDEA JDK usr lib jvm java openjdk amd64 buildInputs with pkgs ammonite boehmgc clang emacs jetbrains idea ultimate less libunwind openjdk re2 sbt stdenv unzip zlib code prepI have commented out setting codePATH code as it depends on getting codeidea name code in the codelet code clause As an interesting side note as is this does not fail if leave it uncommented but causes very bizarre error when executing codenix shell code about not being able to execute codebash code ve also tried the more simple case of codelet code codeidea name pkgs jetbrains idea ultimate name code but this fails later on when codeidea name code is used in setting codePATH code since codeidea name code ends up being undefined pp strongUpdate strong ppI began exploring with codenix instantiate code but the derivation of interest seems empty ppre code nix shell nix store nix instantiate eval xml import lt nixpkgs gt callPackage 3hk87pqgl2qdqmskxbhy23cyr24q8g6s nixpkgs 18 03pre114739 d0d905668c nixpkgs pkgs applications editors jetbrains idea ultimate lt xml version encoding utf gt lt expr gt lt derivation gt lt repeated gt lt derivation gt lt expr gt code pre pIf your intent is to get codeidea ultimate code into nix shell environment then just include that package to codebuildInputs code see it already included so it should already be present in your codePATH code ppBTW you can extend your codeshellHook code and export PATH and other variables rather from there where you have full bash Why would you do it from bash Less copying When you specify ppre codeIDEA JDK usr lib jvm zulu amd64 code prepin Nix the file usr lib jvm zulu amd64 get copied to nix store and codeIDEA JDK code is set to point to file in code nix store code Was that your intent ppRegarding nix instantiate ppre code nix instantiate eval with import lt nixpkgs gt idea pycharm community outPath nix store 71jk0spr30rm4wsihjwbb1hcwwvzqr4k pycharm community 2017 code prepbut you still have to remove doublequotes href https gist github com danbst a9fc068ff26e31d88de9709965daa2bd rel nofollow noreferrer https gist github com danbst a9fc068ff26e31d88de9709965daa2bd ppAlso nitpick codeassert pkgs jetbrains idea ultimate name code can be dropped as it impossible to have empty derivation name in Nix ppAnd another nitpick You ll soon find very incovenient to launch IDE from shell every time It seems good idea to specify that some package is used for development but codenix shell code doesn work well for non cli applications Not to mention occasional problems with Nix GC and codenix shell code You better install IDE globally or per user it is better long term solution phrp ADDENDUM ppYou are looking for this codedev environment nix code ppre codewith import lt nixpkgs gt buildEnv name my super dev env paths emacs nano idea pycharm community buildInputs makeWrapper postBuild for in ls out bin do wrapProgram set IDEA JDK path to zulu jdk set CLANG PATH set CLANCPP PATH done code prepwhich you install using codenix env if dev environment nix code It will wrap your programs with those env vars without polluting your workspace you can pollute it further using codenix shell code with shell hook if you want 2121,1506899,1449635,NULL,NULL,NULL,0,NULL,NULL 2122,7683717,1264052,Supporter Documentation User,NULL,NULL,0,NULL,NULL 2123,203092,1264052,Supporter Documentation User,NULL,NULL,0,NULL,NULL 2124,889836,750524,NULL,NULL,NULL,0,NULL,NULL 2125,435845,1007877,Nice Answer Good Answer Yearling Necromancer Caucus Constituent Necromancer Yearling Great Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2126,76528,727544,NULL,NULL,NULL,0,NULL,NULL 2127,1522654,1341001,Popular Question Yearling Popular Question Caucus Constituent Notable Question Favorite Question Popular Question Popular Question Yearling Self-Learner Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2128,339481,944897,NULL,NULL,NULL,0,NULL,NULL 2129,52415,558591,NULL,NULL,NULL,0,NULL,NULL 2130,75488,780296,NULL,NULL,NULL,0,NULL,NULL 2131,348118,1031071,NULL,NULL,NULL,0,NULL,NULL 2132,4007,172592,NULL,NULL,NULL,0,NULL,NULL 2133,166242,891767,NULL,NULL,NULL,0,NULL,NULL 2134,205140,615229,Caucus,NULL,NULL,0,NULL,NULL 2135,1149553,63202,Nice Question Yearling Popular Question Caucus Notable Question Notable Question Enthusiast Announcer Yearling Famous Question Popular Question Popular Question Census Caucus,NULL,pYou can use this javascript snippet ppre code lt input onClick this select value Sample Text gt code prepBut apparently it doesn work on mobile Safari In those cases you can use ppre code lt input onClick this setSelectionRange this value length value Sample Text gt code pre Any updates on browser support https www w3schools com jsref met text select asp claims it is supported by all browsers,0,NULL,NULL 2136,172658,721491,Yearling Notable Question Famous Question Good Answer Nice Question,NULL,NULL,0,NULL,NULL 2137,1239395,603294,Necromancer,NULL,NULL,0,NULL,NULL 2138,118144,702266,Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2139,170507,1545063,Notable Question,NULL,NULL,0,NULL,NULL 2140,911934,657630,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 2141,201025,793555,NULL,NULL,NULL,0,NULL,NULL 2142,1610121,1124358,Popular Question,NULL,NULL,0,NULL,NULL 2143,192546,844521,NULL,NULL,NULL,0,NULL,NULL 2144,137639,1566689,NULL,NULL,NULL,0,NULL,NULL 2145,216714,577894,Yearling Nice Answer Popular Question Yearling Nice Answer Enlightened Pundit Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 2146,31384,215168,Guru Inquisitive Guru Good Question Necromancer Popular Question Famous Question Necromancer Guru Nice Answer Enlightened Announcer Nice Question Necromancer Yearling Necromancer Notable Question Guru Good Answer Popular Question Good Answer Nice Answer Nice Answer Popular Question Nice Answer Necromancer Announcer Nice Answer Popular Question Nice Answer Notable Question Yearling Nice Answer Nice Question Good Answer Great Question Popular Question Good Answer Necromancer Nice Answer Notable Question Good Answer Great Answer Good Question Nice Question Announcer Favorite Question Good Answer Notable Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2147,674437,1551768,NULL,NULL,NULL,0,NULL,NULL 2148,579414,154915,Notable Question Good Question Notable Question Yearling Civic Duty Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 2149,186041,484708,NULL,NULL,NULL,0,NULL,NULL 2150,254900,56333,Yearling Quorum Great Question Nice Question Notable Question Good Question Good Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2151,3736820,660664,Notable Question Good Question Notable Question Popular Question Yearling Good Question Notable Question Notable Question Nice Question Popular Question Good Question Notable Question Famous Question Notable Question Nice Answer Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Nice Question Nice Question Popular Question Famous Question Popular Question Famous Question Yearling Nice Question Popular Question Favorite Question Nice Question Popular Question Popular Question Popular Question Great Question Good Question Famous Question Good Answer Notable Question Popular Question Yearling Notable Question Favorite Question Popular Question Favorite Question Popular Question Famous Question Famous Question Nice Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2152,744005,884211,NULL,NULL,NULL,0,NULL,NULL 2153,4062,36308,Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 2154,181757,92042,NULL,NULL,NULL,0,NULL,NULL 2155,602800,1122246,NULL,NULL,NULL,0,NULL,NULL 2156,912654,971378,Peer Pressure Editor Custodian Supporter Commentator Teacher Enthusiast,NULL,NULL,0,NULL,NULL 2157,9453,832425,NULL,NULL,NULL,0,NULL,NULL 2158,229369,789454,NULL,NULL,NULL,0,NULL,NULL 2159,167805,116718,Favorite Question Yearling Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2160,1094936,554464,Nice Question Revival Yearling Good Question Famous Question Necromancer Yearling Necromancer Necromancer Nice Answer Yearling Popular Question Notable Question Popular Question Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 2161,75719,1055334,Guru Good Answer Critic Yearling Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 2162,293576,1524898,Commentator Informed,NULL,NULL,0,NULL,NULL 2163,3596895,1524898,Commentator Informed,NULL,NULL,0,NULL,NULL 2164,146469,762916,NULL,NULL,NULL,0,NULL,NULL 2165,2179676,285004,NULL,NULL,NULL,0,NULL,NULL 2166,191015,1321255,Student Teacher,NULL,NULL,0,NULL,NULL 2167,2168453,1313647,NULL,NULL,NULL,0,NULL,NULL 2168,66689,567248,NULL,NULL,NULL,0,NULL,NULL 2169,919874,795821,NULL,NULL,NULL,0,NULL,NULL 2170,102277,702151,NULL,NULL,NULL,0,NULL,NULL 2171,816076,3958,NULL,NULL,NULL,0,NULL,NULL 2172,706430,601106,NULL,NULL,NULL,0,NULL,NULL 2173,706432,601106,NULL,NULL,NULL,0,NULL,NULL 2174,192217,1040374,Famous Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2175,445606,1559299,NULL,NULL,NULL,0,NULL,NULL 2176,215370,984435,Popular Question,NULL,NULL,0,NULL,NULL 2177,517197,1333805,NULL,NULL,NULL,0,NULL,NULL 2178,308101,567101,Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 2179,114882,1173520,NULL,NULL,NULL,0,NULL,NULL 2180,108257,167814,Notable Question Famous Question Notable Question Nice Question Good Answer Nice Question Popular Question Notable Question Famous Question Nice Answer Famous Question Yearling Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Nice Question Popular Question Nice Answer Yearling Famous Question Notable Question Famous Question Notable Question Good Question Popular Question Good Answer Nice Answer Favorite Question javascript Famous Question Famous Question Peer Pressure Popular Question Yearling Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 2181,458677,1518739,NULL,NULL,NULL,0,NULL,NULL 2182,1521,472758,Popular Question,NULL,NULL,0,NULL,NULL 2183,122608,884254,Nice Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 2184,62349,417458,Popular Question,NULL,NULL,0,NULL,NULL 2185,182666,223363,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2186,199784,549030,NULL,NULL,NULL,0,NULL,NULL 2187,221240,546865,Yearling Critic Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2188,80530,920383,Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2189,498317,346825,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 2190,1848745,346825,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 2191,2452541,346825,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 2192,438257,1341484,NULL,NULL,NULL,0,NULL,NULL 2193,214522,1044077,Scholar Popular Question,NULL,NULL,0,NULL,NULL 2194,812586,640961,NULL,NULL,NULL,0,NULL,NULL 2195,530157,640961,NULL,NULL,NULL,0,NULL,NULL 2196,200695,342491,Famous Question,NULL,NULL,0,NULL,NULL 2197,443016,1376642,NULL,NULL,NULL,0,NULL,NULL 2198,1533266,796102,NULL,NULL,NULL,0,NULL,NULL 2199,165901,263789,NULL,NULL,NULL,0,NULL,NULL 2200,6003453,1166801,Yearling Critic Yearling Tenacious Yearling Nice Answer Enlightened Yearling Caucus Nice Answer Yearling Popular Question Yearling Good Answer scikit-learn,NULL,NULL,0,NULL,NULL 2201,314881,1522429,Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Documentation User Enthusiast Notable Question Inquisitive Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 2202,304838,518594,NULL,NULL,NULL,0,NULL,NULL 2203,1102891,707324,Notable Question Popular Question Famous Question Popular Question Nice Answer Famous Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 2204,167307,235453,Popular Question Notable Question Famous Question Nice Question Nice Question Yearling Famous Question Famous Question Popular Question Good Question Yearling Notable Question Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2205,120052,1410252,NULL,NULL,NULL,0,NULL,NULL 2206,322688,615849,NULL,NULL,NULL,0,NULL,NULL 2207,425553,424725,NULL,NULL,NULL,0,NULL,NULL 2208,722283,1027293,NULL,NULL,NULL,0,NULL,NULL 2209,567484,1021601,NULL,NULL,NULL,0,NULL,NULL 2210,207681,450733,Popular Question Civic Duty Promoter Popular Question Good Answer,NULL,NULL,0,NULL,NULL 2211,6240024,1385421,NULL,NULL,NULL,0,NULL,NULL 2212,697695,1385421,NULL,NULL,NULL,0,NULL,NULL 2213,278377,743430,Teacher Commentator Supporter,NULL,NULL,0,NULL,NULL 2214,68741,422897,Supporter,NULL,NULL,0,NULL,NULL 2215,59598,769725,NULL,NULL,NULL,0,NULL,NULL 2216,1536291,1129855,NULL,NULL,NULL,0,NULL,NULL 2217,308122,386904,Favorite Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Good Question Notable Question Caucus Notable Question Yearling Notable Question Notable Question Nice Question Popular Question Famous Question Popular Question Great Question Popular Question Popular Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 2218,24335,1195754,NULL,NULL,NULL,0,NULL,NULL 2219,4889978,909337,Notable Question,NULL,NULL,0,NULL,NULL 2220,378140,369541,Famous Question Notable Question Popular Question Yearling Notable Question Popular Question Favorite Question Good Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Famous Question Good Question Popular Question Popular Question Famous Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 2221,1211731,1423682,Notable Question Notable Question Nice Question Famous Question Revival Yearling Necromancer Popular Question Caucus Good Question Curious,NULL,NULL,0,NULL,NULL 2222,342823,753705,Necromancer Popular Question Yearling Popular Question Nice Answer Yearling Good Answer Announcer Popular Question Popular Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 2223,404294,369863,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 2224,764799,435506,NULL,NULL,NULL,0,NULL,NULL 2225,7876,936193,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2226,297451,1202316,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2227,633416,921009,Notable Question,NULL,NULL,0,NULL,NULL 2228,191135,142176,Self-Learner Necromancer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2229,708230,302389,NULL,NULL,NULL,0,NULL,NULL 2230,707304,764455,NULL,NULL,NULL,0,NULL,NULL 2231,152957,106063,Famous Question,NULL,NULL,0,NULL,NULL 2232,216289,1090241,Necromancer Census Yearling,NULL,NULL,0,NULL,NULL 2233,915160,891169,Student,NULL,NULL,0,NULL,NULL 2234,755375,267075,Notable Question Yearling Good Question Nice Answer Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2235,37067,267075,Notable Question Yearling Good Question Nice Answer Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2236,974198,1367011,NULL,NULL,NULL,0,NULL,NULL 2237,267327,863063,Excavator Custodian Custodian Citizen Patrol Informed Yearling Custodian Tenacious Good Answer Yearling Documentation User Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 2238,524124,1323689,NULL,NULL,NULL,0,NULL,NULL 2239,194650,963177,Necromancer,NULL,NULL,0,NULL,NULL 2240,435523,224027,NULL,NULL,NULL,0,NULL,NULL 2241,4663,896280,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2242,314629,41789,Great Question Caucus Constituent Popular Question Caucus Popular Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 2243,48955,796610,NULL,NULL,NULL,0,NULL,NULL 2244,17059,283260,Nice Answer Yearling Enlightened Critic Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2245,187497,875229,NULL,NULL,NULL,0,NULL,NULL 2246,287356,1239095,Popular Question,NULL,NULL,0,NULL,NULL 2247,146969,143141,Yearling Great Question,NULL,NULL,0,NULL,NULL 2248,6414,181664,Custodian Yearling Necromancer Necromancer Revival Good Answer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 2249,977084,220255,Famous Question Popular Question Good Question Notable Question Popular Question Good Question Famous Question Yearling Famous Question Notable Question Custodian Popular Question Notable Question Famous Question Good Question Notable Question Yearling Popular Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 2250,116624,365557,Popular Question Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2251,153856,316512,NULL,NULL,NULL,0,NULL,NULL 2252,673175,757714,Popular Question Yearling Notable Question Nice Question Famous Question Commentator Caucus Good Question Yearling Caucus,NULL,NULL,0,NULL,NULL 2253,241029,1001750,NULL,NULL,NULL,0,NULL,NULL 2254,3590,21027,Yearling Announcer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 2255,87335,812519,Student Editor Revival Critic Commentator Informed Yearling Yearling Tenacious Yearling Yearling,NULL,NULL,0,NULL,NULL 2256,13906,261412,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 2257,67957,121704,Civic Duty Yearling Popular Question Yearling Guru Self-Learner Yearling,NULL,NULL,0,NULL,NULL 2258,161639,680996,NULL,NULL,NULL,0,NULL,NULL 2259,18742,764206,Necromancer Revival Autobiographer java Necromancer Good Answer Yearling Nice Answer Necromancer Good Answer Tag Editor Revival Caucus Nice Answer Nice Answer Revival Necromancer Yearling Guru Custodian Custodian Revival Necromancer Nice Answer Organizer Good Answer Nice Answer Nice Answer Custodian Guru Revival Nice Answer Revival Necromancer Revival Yearling Necromancer Necromancer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 2260,167483,16342,Yearling Census Famous Question,NULL,NULL,0,NULL,NULL 2261,1750982,16342,Yearling Census Famous Question,NULL,NULL,0,NULL,NULL 2262,67804,1447046,NULL,NULL,NULL,0,NULL,NULL 2263,695207,939173,NULL,NULL,NULL,0,NULL,NULL 2264,347560,1440536,NULL,NULL,NULL,0,NULL,NULL 2265,321140,663009,NULL,NULL,NULL,0,NULL,NULL 2266,77870,402479,NULL,NULL,NULL,0,NULL,NULL 2267,71390,596720,Popular Question Yearling Famous Question Famous Question Nice Question Notable Question Notable Question Favorite Question Yearling Announcer Necromancer Nice Answer Documentation User Nice Answer Enlightened Yearling Good Answer Notable Question Popular Question Popular Question Famous Question Popular Question Electorate Informed,NULL,NULL,0,NULL,NULL 2268,140907,236351,Famous Question Nice Answer Revival Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 2269,44451,476408,Good Answer Popular Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Question Guru Good Question Notable Question Good Question Famous Question Good Question Nice Answer Enlightened Guru Documentation Pioneer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Nice Answer Good Answer Populist Nice Answer Enlightened Famous Question Good Answer Guru Nice Answer Nice Answer Nice Answer Great Question Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer Great Question Favorite Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Documentation User Yearling Nice Answer Nice Answer Enlightened Necromancer Nice Answer Census Nice Answer Enlightened Good Answer Favorite Question Nice Answer Good Answer Nice Answer Popular Question Guru Nice Answer Enlightened Good Answer Nice Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2270,171838,672058,NULL,NULL,NULL,0,NULL,NULL 2271,1035960,655641,NULL,NULL,NULL,0,NULL,NULL 2272,151905,553940,NULL,NULL,NULL,0,NULL,NULL 2273,363519,936996,NULL,NULL,NULL,0,NULL,NULL 2274,265688,1524350,Revival Popular Question Announcer Curious Yearling Critic Popular Question,NULL,NULL,0,NULL,NULL 2275,448701,604484,Nice Question,NULL,NULL,0,NULL,NULL 2276,3164265,604484,Nice Question,NULL,NULL,0,NULL,NULL 2277,576225,567100,NULL,NULL,NULL,0,NULL,NULL 2278,1565187,1259273,NULL,NULL,NULL,0,NULL,NULL 2279,1520900,893556,NULL,NULL,NULL,0,NULL,NULL 2280,701181,92781,NULL,NULL,NULL,0,NULL,NULL 2281,78321,12442,Nice Answer Announcer Necromancer Yearling Nice Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2282,25304,117796,Census,NULL,NULL,0,NULL,NULL 2283,290701,183524,Popular Question Notable Question Good Question Famous Question Yearling Notable Question Popular Question Favorite Question Yearling Documentation User Famous Question Great Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 2284,24174,523729,NULL,NULL,NULL,0,NULL,NULL 2285,114240,1199501,NULL,NULL,NULL,0,NULL,NULL 2286,1363647,1098153,Popular Question Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2287,168913,1147704,Popular Question,NULL,NULL,0,NULL,NULL 2288,905238,1335385,NULL,NULL,NULL,0,NULL,NULL 2289,407839,1335385,NULL,NULL,NULL,0,NULL,NULL 2290,12606,448876,Excavator Yearling Caucus Critic Nice Answer Census Nice Answer Custodian Announcer Caucus Constituent Documentation User Census Nice Answer Yearling Caucus,NULL,h3The Cause h3pThis is not Highcharts issue at least not by itself the problem is caused by the fact that Bootstrap uses codedisplay none code to hide inactive tabs ppre class lang css prettyprint override code tab content gt tab pane pill content gt pill pane display none this is the problem code prepThis causes Highcharts not able to get the expected width to initialize the chart thus defaults to code600px code This would happen to other tools using the same approach to hide content ph3A Pure CSS Solution h3pInstead of working around the issue with an extra redraw or delayed initialization we can achieve the hidden effect using codeheight overflow hidden code this way the hidden tab panes are still in place and having valid codewidth code ppre class lang css prettyprint override code bootstrap hack fix content width inside hidden tabs tab content gt tab pane not active pill content gt pill pane not active display block height overflow hidden bootstrap hack end code prep strongUpdate strong The previous step solution first hides all tabs then makes the active tab visible again In comparison now we have step solution which directly targets the inactive tabs ppThis solution is seamless so you no longer have to worry whether the chart is inside tab pane or not And it efficient as it fixes the width issue in the first place thus there no need to workaround the width issue afterward via resize redraw reflow using javascript ph3Note about cascading order h3pThis patch needs to be loaded after bootstrap css because of href http www w3 org TR css3 cascade cascade order rel noreferrer CSS cascading order rules in short strongthe latter rule wins strong ph3Demo h3p href http jsfiddle net nfv8d rel noreferrer strongBefore strong vs href http jsfiddle net nfv8d rel noreferrer strongAfter strong ppTip switch to the emProfile em tab to see the difference had to add visibility hidden in order to hide absolutely positioned child elements in Pure CSS Solution,0,NULL,NULL 2291,479500,965496,Favorite Question Notable Question Necromancer Nice Question Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 2292,903894,52515,Yearling Custodian Quorum Necromancer Yearling Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 2293,2088082,1364223,Teacher Custodian Curious Yearling Commentator Critic Good Question Editor Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2294,1347361,1364223,Teacher Custodian Curious Yearling Commentator Critic Good Question Editor Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2295,10687701,1364223,Teacher Custodian Curious Yearling Commentator Critic Good Question Editor Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2296,672319,339806,Supporter Enthusiast Nice Answer,NULL,NULL,0,NULL,NULL 2297,423844,72791,Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Guru Good Answer Good Answer Great Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Popular Question Nice Answer Good Answer Yearling Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Great Answer Documentation User Good Answer Famous Question Good Answer Guru Good Answer Guru Yearling Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 2298,1172580,112950,Great Answer Nice Answer Yearling Good Answer Good Answer Favorite Question Informed Yearling Necromancer Great Answer Nice Answer Great Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 2299,176591,150262,NULL,NULL,NULL,0,NULL,NULL 2300,104616,188154,NULL,NULL,NULL,0,NULL,NULL 2301,1299866,964799,NULL,NULL,NULL,0,NULL,NULL 2302,1720512,739086,NULL,NULL,NULL,0,NULL,NULL 2303,179562,3904,Yearling Necromancer Great Answer Caucus Popular Question Constituent Census Nice Question Informed Nice Question Notable Question Yearling Good Answer Popular Question Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 2304,2238964,789332,NULL,NULL,NULL,0,NULL,NULL 2305,46034,1140121,NULL,NULL,NULL,0,NULL,NULL 2306,152367,563172,NULL,NULL,NULL,0,NULL,NULL 2307,34405,286315,NULL,NULL,NULL,0,NULL,NULL 2308,206483,945521,NULL,NULL,NULL,0,NULL,NULL 2309,420330,1443354,NULL,NULL,NULL,0,NULL,NULL 2310,318211,399005,NULL,NULL,NULL,0,NULL,NULL 2311,676272,362041,NULL,NULL,NULL,0,NULL,NULL 2312,864989,485105,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2313,509433,493892,Popular Question Popular Question Famous Question Popular Question Caucus Popular Question Custodian Yearling Popular Question Popular Question Notable Question Caucus Notable Question Popular Question Popular Question Popular Question Census Notable Question Necromancer Civic Duty Enthusiast Custodian Custodian Caucus Constituent Custodian Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2314,2305,25886,NULL,NULL,NULL,0,NULL,NULL 2315,129795,1295881,NULL,NULL,NULL,0,NULL,NULL 2316,2941673,1295881,NULL,NULL,NULL,0,NULL,NULL 2317,6494529,12234,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2318,328470,12234,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2319,75148,1093518,NULL,NULL,NULL,0,NULL,NULL 2320,32770,674065,Good Answer Yearling,NULL,NULL,0,NULL,NULL 2321,50338,436552,NULL,NULL,NULL,0,NULL,NULL 2322,1565706,190857,Good Question Nice Question Famous Question Notable Question Notable Question Yearling Famous Question Good Answer Great Question Good Question Enlightened Yearling Popular Question Guru Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2323,11631,282975,Yearling Great Answer Yearling Popular Question Yearling Enlightened Guru Notable Question,NULL,NULL,0,NULL,NULL 2324,692430,1332041,Announcer Yearling Notable Question Strunk & White Nice Question Nice Answer Mortarboard Enlightened Census Yearling Cleanup Revival Caucus Popular Question Nice Answer Enlightened Good Answer Yearling Pundit mfc Electorate,NULL,NULL,0,NULL,NULL 2325,100887,680989,NULL,NULL,NULL,0,NULL,NULL 2326,39690,440094,Yearling Guru Informed Necromancer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 2327,260033,472512,Autobiographer,NULL,NULL,0,NULL,NULL 2328,23536,457898,Famous Question Yearling Notable Question Popular Question Nice Answer Notable Question Popular Question Notable Question Popular Question Nice Answer Nice Question Notable Question Popular Question Notable Question Guru Famous Question Famous Question Great Answer Caucus Notable Question Yearling Notable Question Good Question Good Answer Popular Question Popular Question Famous Question Nice Question Famous Question Necromancer Nice Answer Nice Question Good Answer Popular Question Nice Answer Yearling Famous Question Enlightened Necromancer Notable Question Good Question Good Answer Good Question Notable Question,NULL,NULL,0,NULL,NULL 2329,171697,98194,Popular Question Popular Question Census,NULL,NULL,0,NULL,NULL 2330,1318503,561922,NULL,NULL,NULL,0,NULL,NULL 2331,107640,572365,Yearling Notable Question Curious Famous Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 2332,97370,6551,Citizen Patrol Commentator Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 2333,158845,244177,Yearling Popular Question Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 2334,1033347,1243682,NULL,NULL,NULL,0,NULL,NULL 2335,466958,1341538,Critic Yearling Necromancer Yearling Necromancer Nice Answer Announcer Yearling Nice Answer Announcer Revival,NULL,NULL,0,NULL,NULL 2336,157570,1274574,Student,NULL,NULL,0,NULL,NULL 2337,247448,261160,NULL,NULL,NULL,0,NULL,NULL 2338,316789,1564274,NULL,NULL,NULL,0,NULL,NULL 2339,49260,492460,Popular Question Popular Question Notable Question Notable Question Good Answer Nice Question Notable Question Popular Question Notable Question Popular Question Necromancer Notable Question Yearling Famous Question Nice Question Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 2340,410958,606165,NULL,NULL,NULL,0,NULL,NULL 2341,35530,943561,NULL,NULL,NULL,0,NULL,NULL 2342,405387,1367383,NULL,NULL,NULL,0,NULL,NULL 2343,535215,694331,Good Question Guru Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Question go Nice Answer Good Answer Yearling Nice Answer Favorite Question Enlightened Guru Nice Answer Good Answer Good Answer Guru Good Answer Good Answer Guru Nice Answer Enlightened Notable Question Notable Question Notable Question Good Answer Notable Question Notable Question Popular Question Notable Question Popular Question Guru Nice Answer Enlightened Good Answer Nice Answer Great Answer Notable Question Nice Question Nice Answer Enlightened Good Answer Good Answer Popular Question Good Answer Popular Question Favorite Question Great Question Yearling Great Answer Popular Question Famous Question Nice Answer Enlightened Guru Announcer Famous Question Nice Answer Nice Answer Nice Answer Enlightened Custodian Notable Question Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Question Great Answer Great Answer Nice Answer Enlightened Caucus Great Answer Popular Question Nice Answer Announcer Famous Question Good Answer Yearling Great Answer Nice Answer Nice Answer Enlightened Notable Question Guru Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Question Notable Question Nice Answer Enlightened Announcer Famous Question Nice Answer,NULL,pBoth styles are used within the Go standard libraries ppre codeif len gt code prepcan be found in the codestrconv code package href http golang org src pkg strconv atoi go rel noreferrer http golang org src pkg strconv atoi go ppre codeif code prepcan be found in the codeencoding json code package href http golang org src pkg encoding json encode go rel noreferrer http golang org src pkg encoding json encode go ppBoth are idiomatic and are clear enough It is more matter of personal taste and about clarity ppRuss Cox writes in href https groups google com forum topic golang nuts 7Ks1iq2s7FA rel noreferrer golang nuts thread pblockquote pThe one that makes the code clear br If about to look at element typically writebr len even for but if care aboutbr is it this specific string tend to write pIt reasonable to assume that mature compiler will compilebr len and into the same efficient code br Right now 6g etc do compile into function callbr while len is not but that been on my to do list to fix pMake the code clear blockquote Just tried to validate your statement but found commits in the standard library less than year old using len to check empty non empty strings Like this commit https github com golang go commit 802cb5927f1e163749331c9f6cfb414cb0c753b9 by Brad Fitzpatrick am afraid it is still matter of taste and clarity pBoth styles are used within the Go standard libraries ppre codeif len gt code prepcan be found in the codestrconv code package href http golang org src pkg strconv atoi go rel noreferrer http golang org src pkg strconv atoi go ppre codeif code prepcan be found in the codeencoding json code package href http golang org src pkg encoding json encode go rel noreferrer http golang org src pkg encoding json encode go ppBoth are idiomatic and are clear enough It is more matter of personal taste and about clarity ppRuss Cox writes in href https groups google com forum topic golang nuts 7Ks1iq2s7FA rel noreferrer golang nuts thread pblockquote pThe one that makes the code clear br If about to look at element typically writebr len even for but if care aboutbr is it this specific string tend to write pIt reasonable to assume that mature compiler will compilebr len and into the same efficient code br Right now 6g etc do compile into function callbr while len is not but that been on my to do list to fix pMake the code clear blockquote Not trolling There are len keywords in the commit was referring to len in h2 bundle go line 2702 It is not automatically shown as it is generated from golang org net http2 believe pBoth styles are used within the Go standard libraries ppre codeif len gt code prepcan be found in the codestrconv code package href http golang org src pkg strconv atoi go rel noreferrer http golang org src pkg strconv atoi go ppre codeif code prepcan be found in the codeencoding json code package href http golang org src pkg encoding json encode go rel noreferrer http golang org src pkg encoding json encode go ppBoth are idiomatic and are clear enough It is more matter of personal taste and about clarity ppRuss Cox writes in href https groups google com forum topic golang nuts 7Ks1iq2s7FA rel noreferrer golang nuts thread pblockquote pThe one that makes the code clear br If about to look at element typically writebr len even for but if care aboutbr is it this specific string tend to write pIt reasonable to assume that mature compiler will compilebr len and into the same efficient code br Right now 6g etc do compile into function callbr while len is not but that been on my to do list to fix pMake the code clear blockquote No worry assume others will know how to click Load diff for the h2 bundle go file,0,NULL,NULL 2344,15455,862877,Announcer,NULL,NULL,0,NULL,NULL 2345,199162,535467,Revival Famous Question Guru Popular Question Proofreader Yearling Custodian Yearling Notable Question Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 2346,982789,1136102,Student Informed,NULL,NULL,0,NULL,NULL 2347,2887401,1136102,Student Informed,NULL,NULL,0,NULL,NULL 2348,75414,481922,NULL,NULL,NULL,0,NULL,NULL 2349,1504733,57729,Yearling Yearling Caucus Yearling Caucus Custodian Custodian,NULL,NULL,0,NULL,NULL 2350,674021,1191075,NULL,NULL,NULL,0,NULL,NULL 2351,159170,313825,NULL,NULL,NULL,0,NULL,NULL 2352,68628,151356,NULL,NULL,NULL,0,NULL,NULL 2353,28466,70634,Good Question Nice Question,NULL,NULL,0,NULL,NULL 2354,4624,1289491,NULL,NULL,NULL,0,NULL,NULL 2355,2007757,83927,NULL,NULL,NULL,0,NULL,NULL 2356,238149,948404,Popular Question Notable Question Nice Answer Inquisitive Nice Question Yearling Notable Question Self-Learner Famous Question Caucus Tag Editor Census Nice Question Yearling Documentation User Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2357,344966,918241,Critic Yearling Necromancer Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2358,273197,441736,Popular Question Famous Question Notable Question Yearling Notable Question Nice Answer Self-Learner,NULL,NULL,0,NULL,NULL 2359,480611,1282316,NULL,NULL,NULL,0,NULL,NULL 2360,40998,1039169,Popular Question,NULL,NULL,0,NULL,NULL 2361,2543251,882861,Informed Scholar,NULL,NULL,0,NULL,NULL 2362,315885,500948,NULL,NULL,NULL,0,NULL,NULL 2363,285715,647265,NULL,NULL,NULL,0,NULL,NULL 2364,554450,131995,NULL,NULL,NULL,0,NULL,NULL 2365,29663,1177228,Yearling Yearling Yearling Organizer Good Answer Custodian Custodian Custodian Citizen Patrol Tag Editor Proofreader Excavator Explainer Revival Announcer,NULL,NULL,0,NULL,NULL 2366,178343,6605,Notable Question Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 2367,96543,1224073,NULL,NULL,NULL,0,NULL,NULL 2368,306706,1225811,NULL,NULL,NULL,0,NULL,NULL 2369,925848,1406498,NULL,NULL,NULL,0,NULL,NULL 2370,374023,625480,Nice Answer Editor Supporter Yearling,NULL,NULL,0,NULL,NULL 2371,90040,704788,NULL,NULL,NULL,0,NULL,NULL 2372,237112,1323045,NULL,NULL,NULL,0,NULL,NULL 2373,327652,1217648,NULL,NULL,NULL,0,NULL,NULL 2374,437858,1037604,NULL,NULL,NULL,0,NULL,NULL 2375,97207,204932,Nice Answer Good Question Guru Yearling Notable Question Notable Question Necromancer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2376,365604,1076967,NULL,NULL,NULL,0,NULL,NULL 2377,15379,1063806,Student,NULL,NULL,0,NULL,NULL 2378,730424,397661,Popular Question Informed Custodian Popular Question Citizen Patrol Custodian Custodian Reviewer Notable Question Popular Question Notable Question Yearling Organizer Caucus Deputy Steward Census Nice Question Nice Question Nice Question Caucus Popular Question Nice Question Popular Question Revival,NULL,NULL,0,NULL,NULL 2379,419910,1093490,NULL,NULL,NULL,0,NULL,NULL 2380,151018,1291812,Popular Question Yearling Nice Answer Nice Answer Popular Question Notable Question Yearling Nice Question Nice Question Popular Question Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 2381,383277,587313,NULL,NULL,NULL,0,NULL,NULL 2382,712497,1525124,Necromancer Yearling Caucus Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 2383,9637,1058947,NULL,NULL,NULL,0,NULL,NULL 2384,359140,723863,Yearling Critic Revival Commentator,NULL,NULL,0,NULL,NULL 2385,746409,566102,NULL,NULL,NULL,0,NULL,NULL 2386,20970,1363355,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2387,398708,935623,Scholar Student Informed,NULL,NULL,0,NULL,NULL 2388,15611,1077428,NULL,NULL,NULL,0,NULL,NULL 2389,834247,1120578,NULL,NULL,NULL,0,NULL,NULL 2390,671113,1317420,Informed,NULL,NULL,0,NULL,NULL 2391,812984,382204,NULL,NULL,NULL,0,NULL,NULL 2392,322287,416421,Good Answer,NULL,NULL,0,NULL,NULL 2393,601584,1023659,NULL,NULL,NULL,0,NULL,NULL 2394,439579,1030350,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 2395,252622,414671,Supporter Scholar Editor,NULL,NULL,0,NULL,NULL 2396,325568,1488492,NULL,NULL,NULL,0,NULL,NULL 2397,2898488,1032014,Census,NULL,NULL,0,NULL,NULL 2398,38223,1032014,Census,NULL,NULL,0,NULL,NULL 2399,16060,1111626,Nice Answer,NULL,NULL,0,NULL,NULL 2400,312225,1281512,NULL,NULL,NULL,0,NULL,NULL 2401,528021,445747,NULL,NULL,NULL,0,NULL,NULL 2402,166278,265158,Yearling Good Answer Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 2403,5420,856617,Self-Learner Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2404,576807,927828,NULL,NULL,NULL,0,NULL,NULL 2405,73214,1332380,Teacher,NULL,NULL,0,NULL,NULL 2406,342772,1055356,Informed Popular Question Critic Notable Question Caucus Autobiographer Enthusiast,NULL,pre codefrom itertools import islicedef split every iterable iter iterable piece list islice while piece yield piece piece list islice code prepSome tests ppre code gt gt gt list split every range gt gt gt list split every for in range 20 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 gt gt gt join for in split every Hello world Hello world gt gt gt list split every 100 code pre Check out my one liner solution that could also be inlined,0,NULL,NULL 2407,3935558,1055356,Informed Popular Question Critic Notable Question Caucus Autobiographer Enthusiast,NULL,pre codefrom itertools import islicedef split every iterable iter iterable piece list islice while piece yield piece piece list islice code prepSome tests ppre code gt gt gt list split every range gt gt gt list split every for in range 20 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 gt gt gt join for in split every Hello world Hello world gt gt gt list split every 100 code pre Check out my one liner solution that could also be inlined,0,NULL,NULL 2408,271691,350785,NULL,NULL,NULL,0,NULL,NULL 2409,178131,1255601,NULL,NULL,NULL,0,NULL,NULL 2410,309854,1060998,NULL,NULL,NULL,0,NULL,NULL 2411,1517019,389817,NULL,NULL,NULL,0,NULL,NULL 2412,243461,1146679,Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Famous Question Popular Question Nice Answer Famous Question Popular Question Yearling Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2413,45261,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2414,5569807,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2415,2795397,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2416,5946689,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2417,158746,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2418,140855,185820,Popular Question Yearling Caucus Popular Question Yearling Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2419,152282,204512,Revival Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 2420,859741,1038778,NULL,NULL,NULL,0,NULL,NULL 2421,910242,220718,Yearling,NULL,NULL,0,NULL,NULL 2422,10780,1005860,Supporter,NULL,NULL,0,NULL,NULL 2423,190770,1415858,Autobiographer,NULL,NULL,0,NULL,NULL 2424,5099200,1054494,Popular Question,NULL,NULL,0,NULL,NULL 2425,196470,1054494,Popular Question,NULL,NULL,0,NULL,NULL 2426,834836,1232670,NULL,NULL,NULL,0,NULL,NULL 2427,474464,967450,NULL,NULL,NULL,0,NULL,NULL 2428,441573,202376,NULL,NULL,NULL,0,NULL,NULL 2429,559175,1427264,NULL,NULL,NULL,0,NULL,NULL 2430,5921,1512703,Notable Question Revival,NULL,NULL,0,NULL,NULL 2431,195449,512507,Good Answer Custodian Great Answer Nice Question Notable Question Nice Answer Nice Answer Necromancer Nice Answer Enlightened Nice Question Good Answer Famous Question Nice Question Caucus Yearling Great Answer Good Answer Famous Question Famous Question Good Question Famous Question Guru Caucus Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 2432,196100,564801,NULL,NULL,NULL,0,NULL,NULL 2433,296590,493546,NULL,NULL,NULL,0,NULL,NULL 2434,67749,555565,Revival,NULL,NULL,0,NULL,NULL 2435,8438541,1142616,Autobiographer Informed Supporter Revival,NULL,NULL,0,NULL,NULL 2436,128394,277078,Yearling Yearling Nice Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 2437,267775,514325,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2438,218925,212123,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2439,476142,870793,NULL,NULL,NULL,0,NULL,NULL 2440,294086,1098820,Yearling,NULL,NULL,0,NULL,NULL 2441,250236,254190,Yearling Famous Question Guru Nice Answer Nice Answer Popular Question Popular Question Yearling Popular Question Popular Question Custodian Notable Question Popular Question Nice Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 2442,47401,130024,Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Famous Question Nice Question Caucus Popular Question Popular Question Famous Question Self-Learner Popular Question Popular Question Popular Question Yearling Notable Question Caucus Notable Question Famous Question Notable Question Nice Question Caucus Notable Question Famous Question Popular Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2443,158399,1556165,NULL,NULL,NULL,0,NULL,NULL 2444,332835,772798,Famous Question Popular Question Curious Teacher Commentator Notable Question Popular Question Self-Learner Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 2445,243904,769447,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2446,270322,810088,Critic Yearling Populist Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 2447,86412,1124697,NULL,NULL,NULL,0,NULL,NULL 2448,241142,1446682,NULL,NULL,NULL,0,NULL,NULL 2449,146487,791375,NULL,NULL,NULL,0,NULL,NULL 2450,18964,76245,Supporter,NULL,NULL,0,NULL,NULL 2451,2026662,1301451,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2452,11995,462302,Nice Answer Necromancer Good Answer Good Answer Necromancer Necromancer Good Answer Announcer Good Answer Nice Answer Yearling Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Necromancer Announcer Guru Yearling Documentation User Nice Answer Announcer Announcer Announcer Nice Answer Announcer Populist Announcer Good Answer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 2453,38410,1324801,NULL,NULL,NULL,0,NULL,NULL 2454,243594,695640,NULL,NULL,NULL,0,NULL,NULL 2455,2503855,464428,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2456,158562,464428,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2457,1048400,1172039,Nice Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 2458,1210189,484966,NULL,NULL,NULL,0,NULL,NULL 2459,5988065,484966,NULL,NULL,NULL,0,NULL,NULL 2460,388763,269051,NULL,NULL,NULL,0,NULL,NULL 2461,698701,523316,Popular Question,NULL,NULL,0,NULL,NULL 2462,136812,832067,Notable Question,NULL,NULL,0,NULL,NULL 2463,136036,385489,Yearling,NULL,NULL,0,NULL,NULL 2464,622395,1113773,Caucus Yearling Popular Question Popular Question Good Answer Yearling Populist Notable Question,NULL,NULL,0,NULL,NULL 2465,244888,195999,Popular Question Notable Question Notable Question Famous Question Yearling Famous Question Famous Question Favorite Question Popular Question Popular Question Notable Question Great Question Yearling Nice Question Inquisitive Notable Question Popular Question Notable Question Famous Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 2466,35560,134329,Enthusiast Civic Duty Critic,NULL,NULL,0,NULL,NULL 2467,252251,1345327,Civic Duty Revival,NULL,NULL,0,NULL,NULL 2468,4055,861997,Popular Question Yearling,NULL,NULL,0,NULL,NULL 2469,191881,204216,Census,NULL,NULL,0,NULL,NULL 2470,217364,178625,Nice Question Critic,NULL,NULL,0,NULL,NULL 2471,113613,584639,Yearling Caucus Constituent Scholar Commentator,NULL,NULL,0,NULL,NULL 2472,1981749,1450168,NULL,NULL,NULL,0,NULL,NULL 2473,161374,1203047,NULL,NULL,NULL,0,NULL,NULL 2474,900821,1478378,NULL,NULL,NULL,0,NULL,NULL 2475,270208,138265,Famous Question Yearling Great Answer Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2476,75779,751395,NULL,NULL,NULL,0,NULL,NULL 2477,116784,240980,NULL,NULL,NULL,0,NULL,NULL 2478,1498840,471338,NULL,NULL,NULL,0,NULL,NULL 2479,17801,63947,NULL,NULL,NULL,0,NULL,NULL 2480,887577,1108934,Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 2481,327723,466669,NULL,NULL,NULL,0,NULL,NULL 2482,16435,372408,NULL,NULL,NULL,0,NULL,NULL 2483,1309184,292994,NULL,NULL,NULL,0,NULL,NULL 2484,51797,442354,NULL,NULL,NULL,0,NULL,NULL 2485,48021,462698,NULL,NULL,NULL,0,NULL,NULL 2486,12660,1405,Famous Question Nice Answer Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2487,49778,170073,Critic Notable Question Popular Question Editor Self-Learner Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2488,647009,639417,NULL,NULL,NULL,0,NULL,NULL 2489,647010,639417,NULL,NULL,NULL,0,NULL,NULL 2490,167639,452934,NULL,NULL,NULL,0,NULL,NULL 2491,1153502,1023773,Editor,NULL,NULL,0,NULL,NULL 2492,510587,1249642,NULL,NULL,NULL,0,NULL,NULL 2493,1371871,534559,Popular Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 2494,3633770,534559,Popular Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 2495,153895,721089,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2496,948595,884477,Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 2497,103586,139092,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2498,229040,279929,NULL,NULL,NULL,0,NULL,NULL 2499,217713,559137,NULL,NULL,NULL,0,NULL,NULL 2500,819865,558866,Notable Question php Announcer Popular Question Necromancer twig Necromancer Necromancer Nice Answer Enlightened Caucus Yearling Necromancer symfony Good Answer Investor Altruist Nice Answer Nice Answer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 2501,2949490,558866,Notable Question php Announcer Popular Question Necromancer twig Necromancer Necromancer Nice Answer Enlightened Caucus Yearling Necromancer symfony Good Answer Investor Altruist Nice Answer Nice Answer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 2502,118989,131898,Investor Informed Caucus Popular Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 2503,335855,229730,Famous Question Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 2504,62846,318174,Taxonomist Nice Answer java Necromancer Nice Answer Yearling Necromancer Nice Answer Nice Answer Necromancer Great Answer Nice Answer Good Answer Nice Answer Famous Question Popular Question Investor Notable Question Nice Answer Nice Question Popular Question Notable Question Popular Question Nice Answer Popular Question Great Answer Necromancer Necromancer Nice Answer Notable Question Nice Answer Famous Question Yearling Notable Question Notable Question Necromancer Necromancer Great Answer Popular Question Announcer Revival Popular Question Famous Question Custodian Popular Question Popular Question Notable Question Popular Question Announcer Announcer Necromancer spring Popular Question Nice Answer Popular Question Necromancer Great Question Guru Favorite Question Notable Question Nice Answer Popular Question Yearling Notable Question Necromancer Necromancer Notable Question Notable Question Revival Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 2505,21479,656188,Famous Question Yearling Nice Question Notable Question Necromancer Good Question Yearling Good Question Nice Answer Good Question Famous Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 2506,15411,228559,Investor Census Popular Question,NULL,NULL,0,NULL,NULL 2507,75135,26192,Nice Question Great Answer Nice Answer Good Question Great Question Favorite Question Yearling Popular Question Famous Question Great Question Notable Question Yearling Nice Question Notable Question Notable Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 2508,209039,329624,Yearling Notable Question Notable Question Revival Caucus Popular Question Self-Learner Popular Question Popular Question Yearling Famous Question Nice Question Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 2509,68855,157265,Nice Answer,NULL,NULL,0,NULL,NULL 2510,914881,484926,NULL,NULL,NULL,0,NULL,NULL 2511,83258,410357,Yearling Popular Question Enlightened Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2512,312052,293929,Good Answer Guru Nice Answer Enlightened Yearling Good Answer Good Answer Great Answer Yearling Good Answer Nice Question Custodian Guru Nice Answer Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 2513,239274,1179448,NULL,NULL,NULL,0,NULL,NULL 2514,361472,829913,NULL,NULL,NULL,0,NULL,NULL 2515,3740841,1290686,Scholar Editor Custodian Informed,NULL,NULL,0,NULL,NULL 2516,1478441,1290686,Scholar Editor Custodian Informed,NULL,NULL,0,NULL,NULL 2517,209879,529841,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 2518,747708,656259,Curious Yearling Yearling Popular Question Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 2519,166045,1319761,Popular Question,NULL,NULL,0,NULL,NULL 2520,4572323,837357,NULL,NULL,NULL,0,NULL,NULL 2521,142962,1333401,NULL,NULL,NULL,0,NULL,NULL 2522,1518827,1174416,NULL,NULL,NULL,0,NULL,NULL 2523,97487,1259905,NULL,NULL,NULL,0,NULL,NULL 2524,308003,264770,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2525,17758,1148674,NULL,NULL,NULL,0,NULL,NULL 2526,180223,926641,NULL,NULL,NULL,0,NULL,NULL 2527,11070,453518,NULL,NULL,NULL,0,NULL,NULL 2528,71324,21973,Notable Question Yearling Revival Popular Question Yearling Custodian Nice Question Yearling,NULL,NULL,0,NULL,NULL 2529,306531,1333827,NULL,NULL,NULL,0,NULL,NULL 2530,2145618,885388,Supporter Popular Question,NULL,NULL,0,NULL,NULL 2531,243577,136358,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2532,301940,1385881,Commentator Informed Yearling,NULL,NULL,0,NULL,NULL 2533,245810,629391,NULL,NULL,NULL,0,NULL,NULL 2534,253747,839417,Revival,NULL,NULL,0,NULL,NULL 2535,418083,1064664,NULL,NULL,NULL,0,NULL,NULL 2536,537125,334990,Nice Answer Enlightened ruby-on-rails Yearling Guru Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 2537,121643,1136602,NULL,NULL,NULL,0,NULL,NULL 2538,297315,1559708,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2539,238695,362871,Guru Good Answer Notable Question Yearling Famous Question Necromancer Popular Question Famous Question Popular Question Nice Question javascript Good Answer Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2540,14423,327737,Good Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 2541,34795,543429,NULL,NULL,NULL,0,NULL,NULL 2542,1261021,899424,NULL,NULL,NULL,0,NULL,NULL 2543,617369,861203,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2544,297578,710003,NULL,NULL,NULL,0,NULL,NULL 2545,16389,498969,Nice Answer Custodian Popular Question Yearling Revival Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 2546,475371,14019,Famous Question Yearling Nice Question Popular Question Yearling Yearling Popular Question,NULL,pThere are many good answers here already but wanted to share more complete example that both pullidoesn assume codeuname code exists on Windows lilialso detects the processor li ulpThe CCFLAGS defined here aren necessarily recommended or ideal they re just what the project to which was adding OS CPU auto detection happened to be using ppre codeifeq OS Windows NT CCFLAGS WIN32 ifeq PROCESSOR ARCHITEW6432 AMD64 CCFLAGS AMD64 else ifeq PROCESSOR ARCHITECTURE AMD64 CCFLAGS AMD64 endif ifeq PROCESSOR ARCHITECTURE x86 CCFLAGS IA32 endif endifelse UNAME shell uname ifeq UNAME Linux CCFLAGS LINUX endif ifeq UNAME Darwin CCFLAGS OSX endif UNAME shell uname ifeq UNAME x86 64 CCFLAGS AMD64 endif ifneq filter 86 UNAME CCFLAGS IA32 endif ifneq filter arm UNAME CCFLAGS ARM endifendif code pre if else and endif MUST NOT be indented in my experiments also only got this to work outside of the target blocks,0,NULL,NULL 2547,16485,4048,Custodian Popular Question Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2548,14202,146015,Notable Question,NULL,NULL,0,NULL,NULL 2549,164743,420122,NULL,NULL,NULL,0,NULL,NULL 2550,21019,31029,NULL,NULL,NULL,0,NULL,NULL 2551,60492,892388,NULL,NULL,NULL,0,NULL,NULL 2552,212056,1440182,NULL,NULL,NULL,0,NULL,NULL 2553,209785,254788,Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Famous Question Notable Question Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Nice Question Famous Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2554,39850,173244,Revival Revival Yearling Nice Answer Revival Popular Question Yearling Yearling Custodian ios Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 2555,493934,217993,NULL,NULL,NULL,0,NULL,NULL 2556,3072883,195891,NULL,NULL,NULL,0,NULL,NULL 2557,10977431,986007,Popular Question Curious Notable Question Enthusiast Promoter Documentation User Excavator Teacher Civic Duty,NULL,NULL,0,NULL,NULL 2558,1371690,256627,Necromancer,NULL,NULL,0,NULL,NULL 2559,362966,812267,Good Question Yearling,NULL,NULL,0,NULL,NULL 2560,184484,1369734,Caucus Caucus,NULL,NULL,0,NULL,NULL 2561,99693,230543,Announcer,NULL,NULL,0,NULL,NULL 2562,46957,184104,Good Question,NULL,NULL,0,NULL,NULL 2563,3942599,184104,Good Question,NULL,NULL,0,NULL,NULL 2564,167739,63104,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 2565,177908,15676,Stellar Question Yearling Yearling Announcer Custodian Yearling,NULL,NULL,0,NULL,NULL 2566,200507,348724,NULL,NULL,NULL,0,NULL,NULL 2567,1847187,991858,Caucus,NULL,NULL,0,NULL,NULL 2568,76858,1096781,Revival,NULL,NULL,0,NULL,NULL 2569,230234,719890,NULL,NULL,NULL,0,NULL,NULL 2570,148782,19640,Curious Nice Answer,NULL,NULL,0,NULL,NULL 2571,219627,564172,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2572,83453,49241,Nice Answer Enlightened Guru c# Necromancer Nice Answer Custodian Great Answer Guru Nice Answer Revival Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Announcer Guru Good Answer Good Answer vba Excavator Yearling Guru Nice Answer Enlightened Guru Nice Answer,NULL,NULL,0,NULL,NULL 2573,179545,98154,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2574,1514233,333876,NULL,NULL,NULL,0,NULL,NULL 2575,176571,902895,Census,NULL,NULL,0,NULL,NULL 2576,35835,489215,Organizer Yearling Good Answer,NULL,NULL,0,NULL,NULL 2577,169140,259298,NULL,NULL,NULL,0,NULL,NULL 2578,123991,550060,NULL,NULL,NULL,0,NULL,NULL 2579,961283,1193320,NULL,NULL,NULL,0,NULL,NULL 2580,3722821,1193320,NULL,NULL,NULL,0,NULL,NULL 2581,113889,1492059,Supporter Informed Autobiographer Student Scholar,NULL,NULL,0,NULL,NULL 2582,1412140,1097596,NULL,NULL,NULL,0,NULL,NULL 2583,3628433,846889,Supporter,NULL,NULL,0,NULL,NULL 2584,375838,860958,NULL,NULL,NULL,0,NULL,NULL 2585,47848,166640,NULL,NULL,NULL,0,NULL,NULL 2586,164333,1038586,NULL,NULL,NULL,0,NULL,NULL 2587,372536,712624,Announcer Organizer Announcer Popular Question Yearling Necromancer Popular Question Necromancer Documentation User Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2588,136503,534622,Popular Question Enthusiast Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 2589,142456,224605,NULL,NULL,NULL,0,NULL,NULL 2590,92392,428351,Yearling,NULL,NULL,0,NULL,NULL 2591,76384,528044,Commentator Nice Question Good Question Popular Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 2592,193737,222018,Nice Question Popular Question Notable Question Revival Good Question Notable Question Nice Question Famous Question Nice Question Caucus Yearling Notable Question Custodian Reviewer Popular Question Nice Question Nice Question Famous Question Notable Question Famous Question Yearling Nice Question Popular Question Organizer Custodian Custodian Deputy Notable Question Nice Question Famous Question Popular Question Nice Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2593,15494,103256,NULL,NULL,NULL,0,NULL,NULL 2594,209090,1095680,NULL,NULL,NULL,0,NULL,NULL 2595,171528,404963,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2596,692230,120808,Good Answer Good Answer Good Answer Good Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Great Answer Nice Question Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Generalist Guru Guru Good Answer Guru Good Answer Good Answer Guru Yearling Notable Question Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Census Nice Answer Notable Question Yearling Guru Great Answer,NULL,NULL,0,NULL,NULL 2597,2116776,285170,Nice Answer Critic Caucus,NULL,NULL,0,NULL,NULL 2598,170013,285170,Nice Answer Critic Caucus,NULL,NULL,0,NULL,NULL 2599,265500,445398,Custodian Custodian Informed Custodian Yearling Popular Question Caucus Nice Answer Custodian Custodian Necromancer Good Answer Nice Answer Enlightened Good Question Great Answer Organizer Tag Editor Popular Question Revival Yearling Documentation User Famous Question Custodian Nice Answer Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2600,1066704,667818,Revival Nice Answer Popular Question Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 2601,616378,984811,NULL,NULL,NULL,0,NULL,NULL 2602,502219,83806,Yearling Custodian Citizen Patrol Good Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question wpf Great Question Yearling c# Revival Promoter Benefactor Custodian,NULL,NULL,0,NULL,NULL 2603,899191,1291778,Nice Question Popular Question Notable Question Good Question Yearling Popular Question Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 2604,789098,1371170,NULL,NULL,NULL,0,NULL,NULL 2605,707841,774684,NULL,NULL,NULL,0,NULL,NULL 2606,68687,1552865,NULL,NULL,NULL,0,NULL,NULL 2607,220232,465362,NULL,NULL,NULL,0,NULL,NULL 2608,113282,503340,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 2609,430238,927994,Announcer Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 2610,103452,217284,NULL,NULL,NULL,0,NULL,NULL 2611,148754,1072527,NULL,NULL,NULL,0,NULL,NULL 2612,267299,105134,NULL,NULL,NULL,0,NULL,NULL 2613,71725,751,Announcer Necromancer Guru Famous Question Enlightened Nice Answer Enlightened Yearling Popular Question Popular Question Popular Question Nice Answer Popular Question Good Answer Yearling Famous Question Announcer Documentation User Good Question Great Question Popular Question Nice Answer Necromancer Nice Answer Favorite Question Popular Question Popular Question Announcer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2614,499325,1044631,NULL,NULL,NULL,0,NULL,NULL 2615,12547,335404,Yearling Scholar,NULL,NULL,0,NULL,NULL 2616,122850,407845,Nice Question Nice Question Great Question Announcer Necromancer Popular Question Good Answer Informed Nice Question Yearling Notable Question Popular Question Popular Question Notable Question Nice Answer Notable Question Popular Question Famous Question Notable Question Necromancer Favorite Question Good Question Popular Question Nice Answer Nice Answer Guru Yearling Nice Answer Necromancer Favorite Question Popular Question Popular Question Nice Question Famous Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 2617,18049,450587,Yearling Announcer,NULL,NULL,0,NULL,NULL 2618,81417,121089,Yearling Good Answer,NULL,NULL,0,NULL,NULL 2619,2047230,852407,Popular Question,NULL,NULL,0,NULL,NULL 2620,595456,126091,Necromancer Yearling Popular Question Custodian Revival Famous Question Popular Question Yearling Famous Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 2621,261722,273068,NULL,NULL,NULL,0,NULL,NULL 2622,237891,695830,NULL,NULL,NULL,0,NULL,NULL 2623,47579,642893,Yearling,NULL,NULL,0,NULL,NULL 2624,66753,1509091,Citizen Patrol Autobiographer Critic Yearling Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 2625,333843,874750,NULL,NULL,NULL,0,NULL,NULL 2626,292799,482452,Yearling,NULL,NULL,0,NULL,NULL 2627,1625,1025589,Yearling,NULL,NULL,0,NULL,NULL 2628,91299,1328019,Teacher Supporter Informed Editor Organizer Explainer Nice Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 2629,1214358,1328019,Teacher Supporter Informed Editor Organizer Explainer Nice Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 2630,13320,820078,NULL,NULL,NULL,0,NULL,NULL 2631,137695,952263,Famous Question Announcer Excavator,NULL,NULL,0,NULL,NULL 2632,141827,231463,Popular Question Yearling Famous Question Famous Question Yearling Nice Question Notable Question Good Question Notable Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 2633,501171,30154,NULL,NULL,NULL,0,NULL,NULL 2634,164905,403046,Good Answer Guru Yearling Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Electorate Yearling Good Answer,NULL,NULL,0,NULL,NULL 2635,218612,1260890,NULL,NULL,NULL,0,NULL,NULL 2636,199703,860179,Supporter Yearling Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 2637,1007761,1042440,NULL,NULL,NULL,0,NULL,NULL 2638,243654,1359980,NULL,NULL,NULL,0,NULL,NULL 2639,31588,34795,Notable Question Nice Answer Famous Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 2640,194467,282833,Critic Notable Question Commentator Peer Pressure Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 2641,327307,785232,Nice Answer Enlightened Scholar,NULL,NULL,0,NULL,NULL 2642,15350,945819,Nice Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 2643,2997648,58535,Tumbleweed,NULL,NULL,0,NULL,NULL 2644,401093,204218,Nice Answer Yearling Good Answer haskell Nice Answer Cleanup Census Nice Question Nice Answer Popular Question Famous Question Good Answer Nice Answer Yearling Nice Answer Census Nice Answer Yearling,NULL,pIf you have an array such as ppre codevar people name bob dinner pizza name john dinner sushi name larry dinner hummus code prepYou can use the href https developer mozilla org en JavaScript Reference Global Objects Array filter rel noreferrer codefilter code method of an Array object ppre codepeople filter function person return person dinner sushi gt name john dinner sushi code prepIn newer JavaScript implementations you can use function expression ppre codepeople filter gt dinner sushi gt name john dinner sushi code prehrpYou can search for people who have code dinner sushi code using href https developer mozilla org en JavaScript Reference Global Objects Array map rel noreferrer codemap code ppre codepeople map function person if person dinner sushi return person else return null gt null name john dinner sushi null code prepor href https developer mozilla org en JavaScript Reference Global Objects Array reduce rel noreferrer codereduce code ppre codepeople reduce function sushiPeople person if person dinner sushi return sushiPeople concat person else return sushiPeople gt name john dinner sushi code prepI sure you are able to generalize this to arbitrary keys and values you should ask new question about this,0,NULL,NULL 2645,78320,205154,NULL,NULL,NULL,0,NULL,NULL 2646,76591,380587,Notable Question Good Question Famous Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Nice Question Yearling Nice Question Notable Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 2647,446596,603357,Popular Question,NULL,NULL,0,NULL,NULL 2648,139586,905408,NULL,NULL,NULL,0,NULL,NULL 2649,12088,7675,Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Popular Question Custodian Yearling Necromancer Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 2650,188373,978382,NULL,NULL,NULL,0,NULL,NULL 2651,145917,764221,NULL,NULL,NULL,0,NULL,NULL 2652,272008,104533,Popular Question Yearling Notable Question Yearling Good Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 2653,11492,571838,NULL,NULL,NULL,0,NULL,NULL 2654,400546,1118284,NULL,NULL,NULL,0,NULL,NULL 2655,3246064,481702,Notable Question Nice Question Notable Question Notable Question Yearling Famous Question Popular Question Good Question Nice Question Notable Question Good Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2656,34539,245952,NULL,NULL,NULL,0,NULL,NULL 2657,374448,28028,Yearling,NULL,NULL,0,NULL,NULL 2658,161781,453929,Supporter Necromancer,NULL,NULL,0,NULL,NULL 2659,205336,396902,NULL,NULL,NULL,0,NULL,NULL 2660,182122,182200,NULL,NULL,NULL,0,NULL,NULL 2661,105248,26235,Nice Question Nice Answer Citizen Patrol Custodian Notable Question Organizer Autobiographer Tag Editor Excavator Proofreader Civic Duty Peer Pressure Yearling Reviewer Famous Question Caucus Popular Question Notable Question Custodian Nice Question Good Question Yearling Documentation User Popular Question Great Question Famous Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 2662,82531,362531,Populist Yearling Notable Question Nice Answer Favorite Question hibernate-envers Yearling Caucus Good Answer Nice Question Popular Question Yearling Guru,NULL,NULL,1,Cannot infer contravariant Nothing type parameter scala scala compiler pConsider the following snippet ppre codetrait object extends Nothing def xa code prepCompilation of the above 12 fails with ppre codetype mismatch found typerequired code prepThis compiles fine if pullia different type than codeNothing code is used codeobject extends String code lilithe method codea code doesn use codeT code in its return type codedef Unit code lilithe type parameter for codea code is explicitly given codea Nothing code lili codeT code is covariant not contravariant also fails if it invariant li ulpIs this some special case in the compiler for codeNothing code ppAs an interesting work around the following seems to work fine ppre codetrait object extends Nothing def lt xa code pre,NULL 2663,687635,606697,NULL,NULL,NULL,0,NULL,NULL 2664,297363,297663,Notable Question,NULL,NULL,0,NULL,NULL 2665,39140,1224218,Necromancer Supporter Informed Autobiographer Editor Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 2666,26737,1021334,Popular Question,NULL,NULL,0,NULL,NULL 2667,461364,506915,NULL,NULL,NULL,0,NULL,NULL 2668,233962,228671,NULL,NULL,NULL,0,NULL,NULL 2669,71881,996792,Notable Question Famous Question Popular Question Yearling Popular Question Good Question Famous Question Electorate Popular Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 2670,331547,1046626,NULL,NULL,NULL,0,NULL,NULL 2671,371710,961811,Student Notable Question Supporter,NULL,NULL,0,NULL,NULL 2672,16786,33164,Guru Nice Answer ruby-on-rails Yearling Nice Question Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 2673,1372787,1408691,NULL,NULL,NULL,0,NULL,NULL 2674,65709,1191287,NULL,NULL,NULL,0,NULL,NULL 2675,1097437,220595,NULL,NULL,NULL,0,NULL,NULL 2676,426450,923721,Notable Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 2677,325742,1447002,Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2678,134470,1158732,NULL,NULL,NULL,0,NULL,NULL 2679,525675,1056553,NULL,NULL,NULL,0,NULL,NULL 2680,76171,361897,Yearling Famous Question Popular Question Good Question Notable Question Popular Question Popular Question Nice Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 2681,235794,775600,Inquisitive Popular Question Notable Question Famous Question Notable Question Popular Question Good Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2682,15393,399184,Notable Question,NULL,NULL,0,NULL,NULL 2683,198799,36656,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Enthusiast Nice Answer Enlightened Great Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 2684,314280,1304137,Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2685,226396,812484,NULL,NULL,NULL,0,NULL,NULL 2686,726422,550677,NULL,NULL,NULL,0,NULL,NULL 2687,154817,201766,Famous Question Yearling Promoter,NULL,NULL,0,NULL,NULL 2688,192304,1432566,Commentator Yearling Critic Informed Autobiographer Citizen Patrol Yearling Nice Answer Enlightened Custodian Custodian Custodian Yearling Organizer Nice Answer Enlightened Reviewer Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 2689,89596,778135,NULL,NULL,NULL,0,NULL,NULL 2690,1430599,1430314,Teacher Revival,NULL,NULL,0,NULL,NULL 2691,1198345,781977,Popular Question,NULL,NULL,0,NULL,NULL 2692,1328171,8240,Famous Question,NULL,NULL,0,NULL,NULL 2693,200959,1214640,NULL,NULL,NULL,0,NULL,NULL 2694,137065,431222,Yearling Good Answer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2695,206378,396414,Yearling Yearling,NULL,NULL,0,NULL,NULL 2696,169948,727824,Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2697,2083997,727824,Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2698,831542,538458,Popular Question Revival Yearling Necromancer Peer Pressure,NULL,NULL,0,NULL,NULL 2699,74727,1962,NULL,NULL,NULL,0,NULL,NULL 2700,240856,989907,Necromancer,NULL,NULL,0,NULL,NULL 2701,141434,751075,NULL,NULL,NULL,0,NULL,NULL 2702,28826,237679,NULL,NULL,NULL,0,NULL,NULL 2703,647141,818930,NULL,NULL,NULL,0,NULL,NULL 2704,76105,499200,Suffrage Informed Civic Duty Vox Populi,NULL,NULL,0,NULL,NULL 2705,323144,425947,Nice Question,NULL,NULL,0,NULL,NULL 2706,3066692,904159,NULL,NULL,NULL,0,NULL,NULL 2707,167474,660089,Popular Question Popular Question Yearling Notable Question Famous Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2708,883112,660089,Popular Question Popular Question Yearling Notable Question Famous Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2709,305330,740755,Revival,NULL,NULL,0,NULL,NULL 2710,152771,52116,Popular Question Yearling Organizer Nice Answer Favorite Question Famous Question Inquisitive Notable Question Popular Question Popular Question Yearling Good Answer Good Question Good Question Yearling Census Nice Answer Enlightened Nice Answer Enlightened Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2711,22856,14064,Enlightened Nice Question Yearling Popular Question Stellar Question Famous Question Popular Question Yearling Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2712,265535,439785,NULL,NULL,NULL,0,NULL,NULL 2713,336656,1477297,NULL,NULL,NULL,0,NULL,NULL 2714,101452,1191854,NULL,NULL,NULL,0,NULL,NULL 2715,310622,604505,Student,NULL,NULL,0,NULL,NULL 2716,36680,474111,NULL,NULL,NULL,0,NULL,NULL 2717,2715853,264308,Commentator,NULL,NULL,0,NULL,NULL 2718,96547,834775,NULL,NULL,NULL,0,NULL,NULL 2719,611097,1093564,Nice Question,NULL,NULL,0,NULL,NULL 2720,194653,1309172,Curious,NULL,NULL,0,NULL,NULL 2721,1974339,1483543,NULL,NULL,NULL,0,NULL,NULL 2722,237442,1270259,Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Good Question Nice Question Nice Question Nice Question Caucus Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Custodian Good Question Notable Question Notable Question Notable Question Notable Question Notable Question Civic Duty Famous Question Famous Question Famous Question Socratic Notable Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Custodian Popular Question Nice Question Popular Question Peer Pressure Famous Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Good Question Popular Question Good Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2723,511179,935182,NULL,NULL,NULL,0,NULL,NULL 2724,240943,448911,Civic Duty Yearling Notable Question,NULL,NULL,0,NULL,NULL 2725,66827,243370,Yearling Notable Question Yearling Custodian Custodian Notable Question Nice Answer Famous Question Nice Answer Enlightened Nice Question Notable Question Notable Question Yearling Nice Answer Nice Question Nice Question,NULL,NULL,0,NULL,NULL 2726,140608,1071883,NULL,NULL,NULL,0,NULL,NULL 2727,3855850,245017,NULL,NULL,NULL,0,NULL,NULL 2728,748756,17540,Favorite Question Notable Question Yearling Nice Question Announcer Famous Question Census Great Question Popular Question Notable Question Famous Question Yearling Documentation User Notable Question Pundit Yearling Necromancer,NULL,NULL,0,NULL,NULL 2729,83781,936858,Good Answer Documentation User,NULL,NULL,0,NULL,NULL 2730,94512,144734,Census Notable Question,NULL,NULL,0,NULL,NULL 2731,11669,167778,Popular Question Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Question Famous Question Yearling Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 2732,21418,14595,Famous Question Yearling Guru,NULL,NULL,0,NULL,NULL 2733,239358,595478,Yearling Notable Question Nice Answer Good Answer Good Answer Yearling Necromancer Yearling Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 2734,179020,594186,Notable Question Popular Question Notable Question Famous Question Nice Answer Necromancer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 2735,200509,1195042,NULL,NULL,NULL,0,NULL,NULL 2736,910184,24208,Good Question Yearling Popular Question Notable Question Good Answer Nice Question Notable Question Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 2737,11255101,1023753,Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 2738,19897,198056,NULL,NULL,NULL,0,NULL,NULL 2739,408065,525649,Good Question Necromancer Good Answer Famous Question Favorite Question Popular Question Revival Popular Question Yearling Popular Question Documentation User Popular Question Yearling Famous Question Custodian Nice Question Popular Question Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 2740,329114,207161,Popular Question Good Answer Good Answer Yearling Popular Question Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 2741,5079985,320486,Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Nice Question Notable Question Favorite Question Excavator Popular Question Famous Question Famous Question Good Question Popular Question Nice Question Popular Question Famous Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Good Question Notable Question Good Question Documentation User Good Question Nice Question Notable Question Yearling Notable Question Nice Question Famous Question Famous Question Famous Question Notable Question Nice Answer Nice Question Caucus Notable Question Popular Question Good Answer Good Question Famous Question Stellar Question Great Question Favorite Question Great Answer Good Question Popular Question,NULL,NULL,0,NULL,NULL 2742,755494,142827,Famous Question Yearling Nice Answer Yearling Nice Answer Enlightened Popular Question Autobiographer Census Explainer Yearling Nice Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2743,6915499,789452,NULL,NULL,NULL,0,NULL,NULL 2744,364067,727180,NULL,NULL,NULL,0,NULL,NULL 2745,98539,1199102,Yearling Organizer Commentator Revival,NULL,NULL,0,NULL,NULL 2746,547809,208068,Yearling Custodian Citizen Patrol Famous Question Informed Autobiographer Yearling Promoter Announcer,NULL,NULL,0,NULL,NULL 2747,1404664,822219,Popular Question,NULL,NULL,0,NULL,NULL 2748,376453,728241,Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Yearling Nice Question Notable Question Nice Question Famous Question Popular Question Famous Question Popular Question Notable Question Nice Answer Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Nice Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Citizen Patrol Nice Question Popular Question Nice Question Nice Question Popular Question Popular Question Favorite Question Great Question Famous Question Famous Question Popular Question Yearling Notable Question Good Question Famous Question Famous Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 2749,444673,444046,Nice Question,NULL,NULL,0,NULL,NULL 2750,72663,29376,Popular Question Famous Question Yearling Famous Question Caucus Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2751,26325,547691,NULL,NULL,NULL,0,NULL,NULL 2752,747379,1163634,Nice Answer,NULL,NULL,0,NULL,NULL 2753,862736,494664,Enthusiast Announcer Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 2754,195890,502155,Good Question Notable Question Great Answer Yearling Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 2755,1231729,877670,NULL,NULL,NULL,0,NULL,NULL 2756,2067423,877670,NULL,NULL,NULL,0,NULL,NULL 2757,616120,205597,Tumbleweed Informed Documentation User Census,NULL,NULL,0,NULL,NULL 2758,220355,802289,NULL,NULL,NULL,0,NULL,NULL 2759,239552,905766,NULL,NULL,NULL,0,NULL,NULL 2760,224079,305350,NULL,NULL,NULL,0,NULL,NULL 2761,141759,1200,Custodian Guru Good Answer Great Answer Nice Answer Nice Answer Yearling Guru Caucus Constituent Good Answer Nice Answer Excavator Guru Good Answer Good Answer Nice Answer Caucus Constituent Yearling ios Nice Answer Enlightened Good Answer Census Caucus Constituent Enlightened Guru Good Answer Guru Yearling Nice Answer Guru Great Answer,NULL,NULL,0,NULL,NULL 2762,117283,1366,Popular Question Necromancer Necromancer Popular Question Nice Answer Nice Answer Good Answer Great Question Nice Answer Yearling Necromancer Famous Question Nice Answer Good Answer Enlightened Notable Question Nice Question Famous Question Nice Answer Famous Question Nice Question Announcer Caucus Yearling Nice Answer Guru Documentation User Good Answer Good Answer Great Question Yearling Good Question,NULL,NULL,0,NULL,NULL 2763,16043,875473,Nice Answer Editor,NULL,NULL,0,NULL,NULL 2764,123989,614612,Yearling Popular Question,NULL,NULL,0,NULL,NULL 2765,164802,255256,Notable Question Good Question Yearling Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 2766,980141,1077660,NULL,NULL,NULL,0,NULL,NULL 2767,208203,284685,Popular Question Good Answer Famous Question Nice Answer Nice Answer Yearling Good Answer Popular Question Famous Question Nice Question Guru Popular Question Nice Answer Nice Answer Great Question Peer Pressure Nice Answer Caucus Popular Question Census Famous Question Good Answer Guru Yearling Nice Answer Custodian Good Question Notable Question Popular Question Caucus Famous Question Constituent Nice Answer java Nice Answer Documentation User Notable Question Good Answer Notable Question Census Nice Question Guru Yearling Great Answer Caucus Constituent Popular Question Notable Question Good Answer Revival Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 2768,49246,34956,Famous Question Notable Question Popular Question Famous Question Nice Answer Famous Question Famous Question Nice Answer Great Question Announcer Announcer Nice Question Yearling Popular Question Good Question Good Question Nice Answer Famous Question Famous Question Popular Question Popular Question Nice Question Guru Famous Question Notable Question Yearling Announcer Popular Question Favorite Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2769,44621,804671,Notable Question Popular Question Notable Question Popular Question Electorate Yearling Popular Question Good Question Famous Question Nice Question Popular Question Popular Question Yearling Good Question Notable Question Popular Question Notable Question Yearling Custodian Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 2770,105766,56449,Yearling Popular Question Popular Question Great Question Popular Question Great Answer Revival Popular Question Necromancer Nice Question Caucus Constituent Custodian Yearling Notable Question Notable Question Great Answer Revival Caucus Documentation User Stellar Question Census Yearling Caucus Notable Question,NULL,pSee this fiddle href http jsfiddle net simpulton XqDxG http jsfiddle net simpulton XqDxG ppAlso watch the following video href http www youtube com watch 1OALSkJGsRw Communicating Between Controllers ppHtml ppre code lt div ng controller ControllerZero gt lt input ng model message gt lt button ng click handleClick message gt LOG lt button gt lt div gt lt div ng controller ControllerOne gt lt input ng model message gt lt div gt lt div ng controller ControllerTwo gt lt input ng model message gt lt div gt code prepjavascript ppre codevar myModule angular module myModule myModule factory mySharedService function rootScope var sharedService sharedService message sharedService prepForBroadcast function msg this message msg this broadcastItem sharedService broadcastItem function rootScope broadcast handleBroadcast return sharedService function ControllerZero scope sharedService scope handleClick function msg sharedService prepForBroadcast msg scope on handleBroadcast function scope message sharedService message function ControllerOne scope sharedService scope on handleBroadcast function scope message ONE sharedService message function ControllerTwo scope sharedService scope on handleBroadcast function scope message TWO sharedService message ControllerZero inject scope mySharedService ControllerOne inject scope mySharedService ControllerTwo inject scope mySharedService code pre Correct You got it,0,NULL,NULL 2771,428782,343955,Good Answer Populist Good Answer Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Famous Question Good Answer Yearling Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened servlets Good Answer Good Answer Guru Guru Good Answer java-ee html batch-file Good Answer Guru Popular Question Guru Guru Great Answer Nice Answer Good Answer Nice Answer css spring Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Caucus Great Answer Guru Good Answer Nice Answer Custodian Announcer Documentation User Good Answer Notable Question Notable Question Great Answer Nice Answer Enlightened Necromancer Good Answer Nice Answer Nice Answer Guru Great Answer Populist Nice Answer Census Notable Question Nice Answer Good Answer javascript Nice Question Nice Answer Nice Question Nice Answer Necromancer Yearling Nice Answer Guru Enlightened Great Answer Famous Question Guru Nice Answer Good Answer Great Answer Famous Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 2772,1930,786828,NULL,NULL,NULL,0,NULL,NULL 2773,824624,728863,Good Question Nice Question Popular Question Yearling Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Good Question Yearling Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Popular Question Famous Question Nice Question Yearling Popular Question Notable Question Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2774,348522,1131620,Popular Question,NULL,NULL,0,NULL,NULL 2775,219767,820144,Yearling Necromancer Caucus Yearling Nice Answer Enthusiast Caucus Notable Question Nice Answer Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 2776,1373995,800202,NULL,NULL,NULL,0,NULL,NULL 2777,319237,1456397,NULL,NULL,NULL,0,NULL,NULL 2778,66166,618288,Custodian Critic Yearling Notable Question,NULL,NULL,0,NULL,NULL 2779,320549,509769,Commentator Autobiographer Critic Caucus Informed Nice Answer Yearling Enthusiast,NULL,NULL,0,NULL,NULL 2780,742393,269968,Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 2781,78593,1550232,NULL,NULL,NULL,0,NULL,NULL 2782,174314,1083960,Civic Duty Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 2783,911105,1180934,NULL,NULL,NULL,0,NULL,NULL 2784,1020871,1222782,Yearling Nice Answer Enlightened Nice Answer Enlightened Peer Pressure Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 2785,22486,1322393,NULL,NULL,NULL,0,NULL,NULL 2786,21806,150901,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2787,452400,851117,NULL,NULL,NULL,0,NULL,NULL 2788,333629,1052630,NULL,NULL,NULL,0,NULL,NULL 2789,35951,235930,NULL,NULL,NULL,0,NULL,NULL 2790,1648047,794078,NULL,NULL,NULL,0,NULL,NULL 2791,36913,468531,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 2792,270210,283225,Famous Question Good Question,NULL,NULL,0,NULL,NULL 2793,8456523,1151080,Commentator Revival Critic Informed Necromancer Caucus Yearling Announcer Nice Answer Enlightened Announcer Civic Duty,NULL,Pass unknown number of arguments into javascript function javascript pIs there way to pass an unknown number of arguments like ppre codevar print names function names foreach name in names console log name something like this print names foo bar baz code prepAlso how do get the number of arguments passed in So far public override answer http stackoverflow com 18197010 1151080 is the only one that describes how to pass an unknown number of arguments into function call using apply https developer mozilla org en US docs Web JavaScript Reference Global Objects Function apply The others show how to read an unknown number of arguments from within the function using arguments https developer mozilla org en US docs Web JavaScript Reference Functions arguments,0,NULL,NULL 2794,561864,1506216,NULL,NULL,NULL,0,NULL,NULL 2795,958236,563335,Yearling Famous Question Tumbleweed Good Question Curious,NULL,NULL,0,NULL,NULL 2796,191972,1163244,Nice Answer,NULL,NULL,0,NULL,NULL 2797,719038,1530403,NULL,NULL,NULL,0,NULL,NULL 2798,87763,347699,NULL,NULL,NULL,0,NULL,NULL 2799,836,1218076,Teacher Supporter Editor,NULL,NULL,0,NULL,NULL 2800,788364,1185709,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2801,440871,1151778,Student Notable Question,NULL,NULL,0,NULL,NULL 2802,51891,973019,NULL,NULL,NULL,0,NULL,NULL 2803,1505741,1559413,NULL,NULL,NULL,0,NULL,NULL 2804,714524,1150765,Teacher,NULL,NULL,0,NULL,NULL 2805,375335,34304,Yearling .net Guru Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2806,222963,1151213,Notable Question,NULL,NULL,0,NULL,NULL 2807,78851,613973,Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Nice Answer Enlightened Popular Question Nice Answer Popular Question Popular Question Caucus Famous Question Yearling Nice Question Notable Question Notable Question Notable Question Famous Question Popular Question Nice Answer Enlightened Good Question Yearling Famous Question Famous Question Nice Question Nice Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 2808,199423,330078,NULL,NULL,NULL,0,NULL,NULL 2809,31846,94154,Notable Question Yearling Notable Question Popular Question Popular Question Famous Question Good Question Notable Question Yearling Good Question Popular Question Nice Question Famous Question Good Question Favorite Question Favorite Question Famous Question Yearling Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 2810,1012187,1233958,NULL,NULL,NULL,0,NULL,NULL 2811,168799,613338,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 2812,95540,48401,Yearling Caucus Constituent Caucus Yearling,NULL,NULL,0,NULL,NULL 2813,520752,1414070,Autobiographer,NULL,NULL,0,NULL,NULL 2814,208849,142151,NULL,NULL,NULL,0,NULL,NULL 2815,175388,1308206,NULL,NULL,NULL,0,NULL,NULL 2816,900938,1220517,NULL,NULL,NULL,0,NULL,NULL 2817,148752,1288465,NULL,NULL,NULL,0,NULL,NULL 2818,156581,1201433,NULL,NULL,NULL,0,NULL,NULL 2819,328213,569380,Famous Question,NULL,NULL,0,NULL,NULL 2820,4723,1099275,NULL,NULL,NULL,0,NULL,NULL 2821,64664,393604,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 2822,297399,279318,Supporter,NULL,NULL,0,NULL,NULL 2823,499734,1247829,Popular Question,NULL,NULL,0,NULL,NULL 2824,36154,193099,NULL,NULL,NULL,0,NULL,NULL 2825,162494,97238,Organizer Yearling Revival Popular Question Yearling Suffrage Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 2826,74115,1424933,NULL,NULL,NULL,0,NULL,NULL 2827,872206,319458,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 2828,622304,200040,Popular Question,NULL,NULL,0,NULL,NULL 2829,795317,280630,Critic Yearling Yearling Notable Question Yearling Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2830,52885,707978,Necromancer,NULL,NULL,0,NULL,NULL 2831,340942,1291391,Popular Question,NULL,NULL,0,NULL,NULL 2832,893069,835090,Popular Question,NULL,NULL,0,NULL,NULL 2833,249005,1369159,Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 2834,13091,649647,Editor,NULL,NULL,0,NULL,NULL 2835,1573470,899541,Nice Question,NULL,NULL,0,NULL,NULL 2836,257585,1126702,NULL,NULL,NULL,0,NULL,NULL 2837,657593,658535,NULL,NULL,NULL,0,NULL,NULL 2838,9031096,910149,NULL,NULL,NULL,0,NULL,NULL 2839,123450,199360,Necromancer Popular Question Necromancer Popular Question Popular Question Great Question Guru Necromancer Popular Question Yearling Nice Answer Nice Question Necromancer Investor Caucus Announcer Popular Question Popular Question Yearling Nice Answer Nice Answer Announcer Good Question Caucus Good Question Popular Question Announcer Notable Question Notable Question Popular Question Pundit Announcer Yearling,NULL,pI spent some time experimenting with this It seems to sort of follow the new href http dev w3 org 2006 webapi clipops Clipboard API spec You can define paste event handler and look at event clipboardData items and call getAsFile on them to get Blob Once you have Blob you can use href https developer mozilla org en DOM FileReader FileReader on it to see what in it This is how you can get data url for the stuff you just pasted in Chrome ppre code window addEventListener paste ordocument onpaste function event var items event clipboardData event originalEvent clipboardData items console log JSON stringify items will give you the mime types for index in items var item items index if item kind file var blob item getAsFile var reader new FileReader reader onload function event console log event target result data url reader readAsDataURL blob code prepOnce you have data url you can display the image on the page If you want to upload it instead you could use readAsBinaryString or you could put it into an XHR using href https developer mozilla org en XMLHttpRequest FormData FormData in iOS WebKit clipboardData seems to be an instance of DataTransfer https developer mozilla org en US docs Web API DataTransfer,0,NULL,NULL 2840,875587,350429,Popular Question Popular Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 2841,501915,1091840,Notable Question,NULL,NULL,0,NULL,NULL 2842,47741,278690,Nice Answer,NULL,NULL,0,NULL,NULL 2843,267556,1415238,Editor Student,NULL,NULL,0,NULL,NULL 2844,530289,695120,NULL,NULL,NULL,0,NULL,NULL 2845,1063618,916853,NULL,NULL,NULL,0,NULL,NULL 2846,51065,259111,NULL,NULL,NULL,0,NULL,NULL 2847,594766,1019914,Critic Famous Question Caucus Popular Question Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 2848,2351,146603,Famous Question Famous Question Notable Question Nice Question Notable Question Famous Question Popular Question Nice Answer Enlightened Nice Question Notable Question Favorite Question Good Question Nice Question Famous Question Yearling Good Question Notable Question Good Question Famous Question Nice Question Popular Question Famous Question Popular Question Famous Question Favorite Question Popular Question Popular Question Nice Question Notable Question Famous Question Favorite Question Yearling Notable Question Good Question Nice Question Famous Question Good Question Great Question Notable Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 2849,136215,1292359,Talkative Autobiographer Outspoken Caucus Caucus Custodian Informed Census Nice Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 2850,181272,825215,Supporter,NULL,NULL,0,NULL,NULL 2851,281459,566411,NULL,NULL,NULL,0,NULL,NULL 2852,117489,802986,NULL,NULL,NULL,0,NULL,NULL 2853,308855,474398,Custodian Custodian Custodian Proofreader Excavator Nice Answer Enlightened Yearling Caucus Constituent Custodian Custodian Reviewer Caucus Yearling Tumbleweed Census Reviewer Reviewer Caucus Constituent Steward Yearling Notable Question,NULL,NULL,0,NULL,NULL 2854,11604,616001,Student Popular Question,NULL,NULL,0,NULL,NULL 2855,130270,636142,NULL,NULL,NULL,0,NULL,NULL 2856,804486,1068609,Notable Question Popular Question Popular Question Yearling Good Question Famous Question Good Question Popular Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 2857,81214,1366545,NULL,NULL,NULL,0,NULL,NULL 2858,2516088,988205,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2859,294625,988205,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2860,158766,666693,Yearling Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 2861,261425,993510,NULL,NULL,NULL,0,NULL,NULL 2862,515481,788199,Notable Question,NULL,NULL,0,NULL,NULL 2863,241273,613723,NULL,NULL,NULL,0,NULL,NULL 2864,517963,1011919,Yearling Yearling,NULL,NULL,0,NULL,NULL 2865,38939,989373,NULL,NULL,NULL,0,NULL,NULL 2866,219223,1195730,NULL,NULL,NULL,0,NULL,NULL 2867,8077,523692,Good Answer Good Answer Self-Learner Great Answer Nice Answer Good Answer Caucus Yearling Popular Question Caucus Popular Question Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 2868,450666,615465,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2869,227958,814392,Notable Question Enlightened Yearling Popular Question Famous Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 2870,1277,331994,Autobiographer Revival Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 2871,93676,319349,Yearling,NULL,NULL,0,NULL,NULL 2872,833968,1464604,NULL,NULL,NULL,0,NULL,NULL 2873,910173,1249942,NULL,NULL,NULL,0,NULL,NULL 2874,747070,718087,Popular Question Yearling Popular Question Popular Question Popular Question Nice Answer Yearling Revival Notable Question Notable Question Notable Question Yearling Enlightened Great Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 2875,1848542,455714,NULL,NULL,NULL,0,NULL,NULL 2876,695015,455714,NULL,NULL,NULL,0,NULL,NULL 2877,1387585,901895,NULL,NULL,NULL,0,NULL,NULL 2878,33336,763420,NULL,NULL,NULL,0,NULL,NULL 2879,646378,1462713,Editor Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 2880,929882,713608,Necromancer Yearling,NULL,NULL,0,NULL,NULL 2881,581718,1492191,NULL,NULL,NULL,0,NULL,NULL 2882,28145,443219,Notable Question Good Answer Popular Question Notable Question Notable Question Good Question Self-Learner Notable Question Popular Question Popular Question Yearling Notable Question Announcer Nice Question Popular Question Announcer Good Question Pundit Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Custodian Yearling Famous Question,NULL,pI agree you should use the codefmt Fprint code functions if you can manage it However if you don control the code whose output you re capturing you may not have that option ppMostafa answer works but if you want to do it without temporary file you can use href http golang org pkg os Pipe rel noreferrer os Pipe Here an example that equivalent to Mostafa with some code inspired by Go testing package ppre codepackage mainimport bytes fmt io os func print fmt Println output func main old os Stdout keep backup of the real stdout os Pipe os Stdout print outC make chan string copy the output in separate goroutine so printing can block indefinitely go func var buf bytes Buffer io Copy amp buf outC lt buf String back to normal state Close os Stdout old restoring the real stdout out lt outC reading our temp stdout fmt Println previous output fmt Print out code pre Why is there so much more code than the Python example Not trying to troll genuinely curious why Go seems to need more complexity for that seemingly simple operation,0,NULL,NULL 2883,408394,403364,Popular Question,NULL,NULL,0,NULL,NULL 2884,280772,276009,Popular Question Census Yearling Favorite Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2885,452318,872528,Scholar Supporter,NULL,NULL,0,NULL,NULL 2886,1508857,1185324,NULL,NULL,NULL,0,NULL,NULL 2887,60188,851135,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 2888,209498,413022,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 2889,1395266,22506,Nice Answer Yearling Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 2890,1515648,1104190,NULL,NULL,NULL,0,NULL,NULL 2891,169738,469515,NULL,NULL,NULL,0,NULL,NULL 2892,895822,954496,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2893,15543,706138,Guru Yearling Good Answer Nice Answer Good Answer Caucus Constituent Popular Question Yearling Caucus Constituent Caucus Guru Constituent Yearling,NULL,NULL,0,NULL,NULL 2894,112838,237178,Notable Question Yearling Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 2895,1209989,997686,NULL,NULL,NULL,0,NULL,NULL 2896,29182,694362,NULL,NULL,NULL,0,NULL,NULL 2897,208038,58493,NULL,NULL,NULL,0,NULL,NULL 2898,10080,1230763,Yearling Nice Answer Yearling Nice Answer Enlightened Documentation User Yearling,NULL,NULL,0,NULL,NULL 2899,2095,494125,Commentator Census Critic,NULL,NULL,0,NULL,NULL 2900,27543,108302,Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Yearling Good Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2901,168128,1267641,Yearling,NULL,NULL,0,NULL,NULL 2902,366717,437550,Famous Question Notable Question Nice Answer Enthusiast Caucus,NULL,NULL,0,NULL,NULL 2903,106042,866809,Notable Question Nice Answer Nice Answer Notable Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 2904,834956,572154,NULL,NULL,NULL,0,NULL,NULL 2905,894385,1298792,NULL,NULL,NULL,0,NULL,NULL 2906,426726,783536,Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 2907,504882,47680,Necromancer Notable Question Popular Question Nice Question Notable Question Necromancer Great Answer Yearling Nice Question Guru Announcer Great Question Nice Answer Announcer Famous Question Yearling Popular Question Good Answer Necromancer Notable Question Benefactor Good Question Necromancer,NULL,pyou would use the following code to remove utf8 bom ppre code Remove UTF8 Bomfunction remove utf8 bom text bom pack EFBBBF text preg replace bom text return text code pre For some reason in the Google API this BOM shows up at the end of the content variable so needed to tweak this to remove it from the end of the string,0,NULL,NULL 2908,203130,1312911,Scholar,NULL,NULL,0,NULL,NULL 2909,977663,52433,Good Answer Good Answer Yearling Revival Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 2910,361089,1207873,NULL,NULL,NULL,0,NULL,NULL 2911,4224922,523335,NULL,NULL,NULL,0,NULL,NULL 2912,18450,740939,NULL,NULL,NULL,0,NULL,NULL 2913,32168,1404114,NULL,NULL,NULL,0,NULL,NULL 2914,289883,1465916,NULL,NULL,NULL,0,NULL,NULL 2915,168988,882393,Notable Question,NULL,NULL,0,NULL,NULL 2916,2714960,242809,Caucus,NULL,NULL,0,NULL,NULL 2917,42437,1420420,NULL,NULL,NULL,0,NULL,NULL 2918,380644,618535,NULL,NULL,NULL,0,NULL,NULL 2919,137064,766215,NULL,NULL,NULL,0,NULL,NULL 2920,204125,1053833,NULL,NULL,NULL,0,NULL,NULL 2921,2549032,1053833,NULL,NULL,NULL,0,NULL,NULL 2922,236400,1489406,NULL,NULL,NULL,0,NULL,NULL 2923,68131,720971,NULL,NULL,NULL,0,NULL,NULL 2924,99409,1244409,NULL,NULL,NULL,0,NULL,NULL 2925,2451481,1244409,NULL,NULL,NULL,0,NULL,NULL 2926,514435,1385810,NULL,NULL,NULL,0,NULL,NULL 2927,374020,102298,Announcer Yearling,NULL,NULL,0,NULL,NULL 2928,1031434,1045017,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 2929,513273,363078,Nice Answer Enlightened Good Question Popular Question Popular Question Popular Question Popular Question Good Answer Yearling Popular Question Good Question Popular Question Favorite Question Famous Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Famous Question Notable Question Notable Question Great Answer Nice Question Popular Question Popular Question Good Question Popular Question Great Answer Nice Question Yearling Notable Question Guru Popular Question Favorite Question Popular Question Nice Answer Popular Question Popular Question Good Question Nice Question Great Answer Nice Answer Famous Question Notable Question Good Question Good Answer Notable Question Popular Question Notable Question Popular Question Popular Question Nice Answer Yearling Notable Question Disciplined Good Answer Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 2930,1982391,690630,Notable Question,NULL,NULL,0,NULL,NULL 2931,768859,1487039,Popular Question,NULL,NULL,0,NULL,NULL 2932,7939488,197221,Yearling Popular Question Necromancer Notable Question Necromancer Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 2933,2457058,232739,NULL,NULL,NULL,0,NULL,NULL 2934,861069,1062761,NULL,NULL,NULL,0,NULL,NULL 2935,729462,86128,Yearling Good Question Famous Question Great Question Popular Question Popular Question Nice Question Famous Question Popular Question Yearling Yearling Nice Question Famous Question Nice Question Stellar Question,NULL,NULL,0,NULL,NULL 2936,1553844,86128,Yearling Good Question Famous Question Great Question Popular Question Popular Question Nice Question Famous Question Popular Question Yearling Yearling Nice Question Famous Question Nice Question Stellar Question,NULL,NULL,0,NULL,NULL 2937,4273981,401259,NULL,NULL,NULL,0,NULL,NULL 2938,22318,401259,NULL,NULL,NULL,0,NULL,NULL 2939,446589,503948,NULL,NULL,NULL,0,NULL,NULL 2940,15144,558524,Caucus Constituent Yearling Caucus Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 2941,832439,765707,Critic,NULL,NULL,0,NULL,NULL 2942,1145309,506956,NULL,NULL,NULL,0,NULL,NULL 2943,1334718,648708,NULL,NULL,NULL,0,NULL,NULL 2944,14652,1042137,NULL,NULL,NULL,0,NULL,NULL 2945,143422,482184,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 2946,199441,880530,Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Teacher Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Famous Question Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 2947,355457,193619,Famous Question Popular Question Notable Question Great Answer Popular Question Nice Answer Famous Question Good Answer Popular Question Popular Question Notable Question Nice Question Good Answer Great Question Popular Question Notable Question Popular Question Good Question Good Question Nice Question Notable Question Popular Question Nice Question Popular Question Good Question Notable Question Notable Question Great Question Popular Question Notable Question Notable Question Good Question Nice Question Guru Enlightened Documentation Beta Famous Question Documentation Pioneer Nice Question Popular Question Famous Question Notable Question Good Question Popular Question Good Question Mortarboard Notable Question Necromancer Popular Question Yearling Famous Question Notable Question Caucus Famous Question Constituent Famous Question Famous Question Popular Question Popular Question Great Question Popular Question Good Answer Notable Question Notable Question Notable Question Nice Question Famous Question Revival Famous Question Census Good Question Popular Question Great Answer Revival Nice Question Nice Answer Popular Question Popular Question Nice Answer Popular Question Nice Question Nice Question Popular Question Notable Question Favorite Question Nice Question Notable Question Nice Answer Notable Question Notable Question Caucus Popular Question Popular Question Famous Question Notable Question Notable Question Great Answer Notable Question Notable Question Famous Question Documentation User Yearling Notable Question Nice Question Stellar Question Notable Question Popular Question Popular Question Notable Question Famous Question Census Famous Question Notable Question Good Question Favorite Question Nice Answer Popular Question Nice Question Booster Nice Question Popular Question Caucus Popular Question Notable Question Nice Question Nice Question Notable Question Nice Answer Famous Question Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Famous Question Nice Question Notable Question Popular Question Necromancer Popular Question Famous Question Nice Question Famous Question Nice Question Popular Question Popular Question Yearling Good Question Notable Question Famous Question Popular Question Notable Question Famous Question,NULL,pJust for completeness href http www regular expressions info email html rel noreferrer here you have another RFC 2822 compliant regex pblockquote pThe official standard is known as href https tools ietf org html rfc2822 section rel noreferrer RFC 2822 It describes the syntax that valid email addresses must adhere to You can strongbut you shouldn strong mdash href http www regular expressions info email html rel noreferrer read on implement it with this regular expression code z0 amp z0 amp x01 x08 x0b x0c x0e x1f x21 x23 x5b x5d x7f x01 x09 x0b x0c x0e x7f z0 z0 z0 z0 z0 z0 25 01 25 01 z0 z0 x01 x08 x0b x0c x0e x1f x21 x5a x53 x7f x01 x09 x0b x0c x0e x7f code We get more practical implementation of RFC 2822 if we omit the syntax using double quotes and square brackets strongIt will still match 99 99 of all email addresses in actual use today strong code z0 amp z0 amp z0 z0 z0 z0 z0 z0 code pA further change you could make is to allow any two letter country code top level domain and only specific generic top level domains strongThis regex filters dummy email addresses like codeasdf adsf code strong You strongwill need to update it as new top level domains are added strong code z0 amp z0 amp z0 z0 z0 com org net gov mil biz info mobi name aero jobs museum code pSo even when following official standards there are still trade offs to be made strong emDon blindly copy regular expressions from online libraries or discussion forums Always test them on your own data and with your own applications em strong blockquotep subEmphasis mine sub You will need to update it as new top level domains are added Well so much for that now there are over 1500 recognized TLDs,0,NULL,NULL 2948,166496,726172,Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 2949,130867,269597,Yearling Yearling Nice Answer Yearling Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 2950,693000,268366,Guru Nice Question Famous Question Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 2951,7140,1024223,Necromancer Good Question yeoman Revival Necromancer yeoman-generator javascript Nice Answer Enlightened Inquisitive Notable Question Famous Question html Popular Question Popular Question Nice Question Popular Question Fanatic Enlightened Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Question Yearling Caucus Popular Question Notable Question handlebars.js github Popular Question Informed Nice Question Guru Revival Notable Question node.js Notable Question Guru Nice Answer Enlightened Good Answer Nice Question Good Question Revival Notable Question Good Answer Documentation User Yearling Nice Question Nice Answer Enlightened Famous Question Famous Question Nice Answer Enlightened Guru Popular Question Popular Question Great Answer Nice Answer Nice Answer Enlightened Nice Question Good Answer Yearling,NULL,codeorigin xxx code branches are always pointer to remote You cannot check them out as they re not pointer to your local repository you only checkout the commit That why you won see the name written in the command line interface branch marker only the commit hash ppWhat you need to do to update the remote is to force push your local changes to master ppre codegit checkout mastergit reset hard e3f1e37git push force origin master Then to prove it it won print any diff git diff master origin master code pre check git reflog to find the commits you deleted,0,NULL,NULL 2952,210704,83055,Revival Necromancer Yearling Good Answer Announcer Necromancer Yearling Yearling Informed Popular Question Custodian Tag Editor Citizen Patrol Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2953,126203,1008616,NULL,NULL,NULL,0,NULL,NULL 2954,583528,1438322,NULL,NULL,NULL,0,NULL,NULL 2955,594825,64475,Popular Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 2956,46388,1038969,NULL,NULL,NULL,0,NULL,NULL 2957,617233,87126,NULL,NULL,NULL,0,NULL,NULL 2958,221844,1305351,NULL,NULL,NULL,0,NULL,NULL 2959,26665,458371,NULL,NULL,NULL,0,NULL,NULL 2960,9509,5723,Revival Custodian Informed Citizen Patrol Custodian Yearling Custodian Commentator Autobiographer Caucus,NULL,NULL,0,NULL,NULL 2961,174865,233534,Notable Question,NULL,NULL,0,NULL,NULL 2962,329009,1053092,Informed Student Tumbleweed,NULL,NULL,0,NULL,NULL 2963,515066,187736,Yearling Good Answer,NULL,NULL,0,NULL,NULL 2964,250402,1417123,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 2965,254736,673197,Editor,NULL,NULL,0,NULL,NULL 2966,38746,275593,Yearling Guru Nice Answer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 2967,228866,433558,Announcer Yearling Announcer Announcer Revival Announcer Commentator Announcer Nice Answer Yearling Enlightened Announcer Announcer Announcer Booster Revival Revival Announcer Announcer,NULL,NULL,0,NULL,NULL 2968,63894,105592,Critic,NULL,NULL,0,NULL,NULL 2969,183389,440017,NULL,NULL,NULL,0,NULL,NULL 2970,357106,1234762,NULL,NULL,NULL,0,NULL,NULL 2971,1503913,1112641,NULL,NULL,NULL,0,NULL,NULL 2972,165984,642250,NULL,NULL,NULL,0,NULL,NULL 2973,303748,809000,NULL,NULL,NULL,0,NULL,NULL 2974,500696,718323,NULL,NULL,NULL,0,NULL,NULL 2975,146464,711999,Yearling Supporter Critic Good Answer Editor,NULL,NULL,0,NULL,NULL 2976,307203,497348,NULL,NULL,NULL,0,NULL,NULL 2977,148662,813714,NULL,NULL,NULL,0,NULL,NULL 2978,7329,929659,Nice Answer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 2979,1521928,675055,NULL,NULL,NULL,0,NULL,NULL 2980,525348,498174,NULL,NULL,NULL,0,NULL,NULL 2981,60355,117446,NULL,NULL,NULL,0,NULL,NULL 2982,667185,797845,Yearling Excavator Citizen Patrol Organizer Caucus Necromancer Nice Answer Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 2983,59319,217371,NULL,NULL,NULL,0,NULL,NULL 2984,485986,468467,Nice Answer,NULL,NULL,0,NULL,NULL 2985,2724702,944846,NULL,NULL,NULL,0,NULL,NULL 2986,186736,967581,NULL,NULL,NULL,0,NULL,NULL 2987,20802,874870,Student,NULL,NULL,0,NULL,NULL 2988,120103,523948,NULL,NULL,NULL,0,NULL,NULL 2989,116414,1565142,Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 2990,452,956716,NULL,NULL,NULL,0,NULL,NULL 2991,31649,222322,NULL,NULL,NULL,0,NULL,NULL 2992,219924,1067821,Nice Answer,NULL,NULL,0,NULL,NULL 2993,205709,1394432,Informed Supporter,NULL,NULL,0,NULL,NULL 2994,3229513,623234,Yearling Yearling Critic,NULL,NULL,0,NULL,NULL 2995,274015,623234,Yearling Yearling Critic,NULL,NULL,0,NULL,NULL 2996,222291,12230,Popular Question Notable Question Famous Question Nice Answer Enlightened Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 2997,48277,244529,Good Answer Yearling Good Answer Custodian Citizen Patrol Revival Yearling Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 2998,273639,494698,NULL,NULL,NULL,0,NULL,NULL 2999,214359,283342,Popular Question Famous Question Yearling Civic Duty Nice Answer Popular Question Famous Question Inquisitive Yearling Popular Question Popular Question Custodian Custodian Citizen Patrol Famous Question Yearling Nice Answer Good Question Guru Good Answer Popular Question,NULL,NULL,0,NULL,NULL 3000,666806,1311559,NULL,NULL,NULL,0,NULL,NULL 3001,915903,396555,NULL,NULL,NULL,0,NULL,NULL 3002,714948,890449,NULL,NULL,NULL,0,NULL,NULL 3003,101961,973348,Nice Answer Enlightened Yearling jquery Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 3004,939696,973348,Nice Answer Enlightened Yearling jquery Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 3005,195734,126474,NULL,NULL,NULL,0,NULL,NULL 3006,534890,477048,NULL,NULL,NULL,0,NULL,NULL 3007,311896,668502,NULL,NULL,NULL,0,NULL,NULL 3008,313446,824946,Yearling Revival Critic,NULL,NULL,0,NULL,NULL 3009,474780,1432858,NULL,NULL,NULL,0,NULL,NULL 3010,211789,915652,NULL,NULL,NULL,0,NULL,NULL 3011,196161,448967,Popular Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 3012,663596,4332,Nice Answer Necromancer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Necromancer dockerfile Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened docker-compose Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Nice Answer java Nice Answer Enlightened Nice Answer Enlightened Nice Answer docker Necromancer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Guru Guru Nice Answer Enlightened Announcer Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Good Answer Yearling Nice Answer Announcer Popular Question Nice Answer,NULL,pAn image is an ordered collection of root filesystem changes and the corresponding execution parameters for use within container runtime Images are read only pulli href https docs docker com glossary term image rel noreferrer https docs docker com glossary term image li ulpA container is an active or inactive if exited stateful instantiation of an image pulli href https docs docker com glossary term container rel noreferrer https docs docker com glossary term container li ul because that really bad description in the tutorial ll ping Docker,0,NULL,NULL 3013,82967,568189,NULL,NULL,NULL,0,NULL,NULL 3014,16025,200322,Famous Question Nice Answer Great Question Good Answer Notable Question Necromancer Popular Question Good Answer Popular Question Yearling Popular Question Popular Question Famous Question Notable Question Nice Answer Enlightened Notable Question Popular Question Popular Question Great Answer Nice Answer Yearling Popular Question Necromancer Nice Question Popular Question Guru Nice Answer Enlightened Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 3015,24023,1339904,NULL,NULL,NULL,0,NULL,NULL 3016,185320,632069,Popular Question,NULL,NULL,0,NULL,NULL 3017,530565,658298,Nice Answer Nice Question Yearling Famous Question Popular Question Nice Answer Enlightened Explainer Nice Answer Yearling Popular Question Good Answer Popular Question Popular Question Good Question Nice Answer Pundit Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3018,9456,1470774,NULL,NULL,NULL,0,NULL,NULL 3019,672664,319150,Nice Question Popular Question Popular Question Custodian Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 3020,1202362,1366228,Self-Learner Commentator Announcer Tumbleweed Curious Popular Question Critic,NULL,NULL,0,NULL,NULL 3021,945435,1293571,Informed,NULL,NULL,0,NULL,NULL 3022,1519613,610668,Yearling Necromancer Civic Duty Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3023,1091631,998972,Notable Question Popular Question Promoter Benefactor Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 3024,333066,1553272,Necromancer Yearling Caucus Critic Enthusiast Nice Answer Caucus Caucus,NULL,NULL,0,NULL,NULL 3025,300108,219525,Informed Good Question Famous Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 3026,111165,150563,NULL,NULL,NULL,0,NULL,NULL 3027,347550,28406,Good Answer Yearling Nice Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3028,204796,1429368,NULL,NULL,NULL,0,NULL,NULL 3029,140072,1388892,Curious Popular Question Caucus Announcer Informed Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 3030,21540,1462501,Student,NULL,NULL,0,NULL,NULL 3031,11039043,1462501,Student,NULL,NULL,0,NULL,NULL 3032,961948,608563,Autobiographer,NULL,NULL,0,NULL,NULL 3033,164620,803844,NULL,NULL,NULL,0,NULL,NULL 3034,192972,650421,Revival,NULL,NULL,0,NULL,NULL 3035,68197,884330,NULL,NULL,NULL,0,NULL,NULL 3036,75620,298479,syntax Guru Announcer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question dictionary Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Popular Question Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Great Answer Good Answer Popular Question Nice Answer Revival Nice Answer Enlightened python-3.x json Nice Answer Notable Question Good Answer Good Answer Guru Nice Answer git Notable Question Nice Answer Guru Popular Question Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Necromancer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Question Popular Question Nice Answer Enlightened Nice Answer Good Answer Popular Question Nice Question Famous Question Nice Answer Popular Question Good Question python-2.7 Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Notable Question Popular Question Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Caucus Nice Answer Nice Answer Good Question Constituent Popular Question Good Answer Nice Answer Enlightened file Popular Question Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Notable Question Good Answer Nice Answer Popular Question Good Answer oop Good Question Good Question Famous Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Guru Good Answer Great Answer Guru Yearling Nice Answer Good Answer Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Popular Question Great Answer Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Good Question Nice Answer Enlightened Popular Question Nice Answer Good Answer Good Answer Announcer Great Answer Guru Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Nice Answer Great Answer Nice Question Nice Answer Enlightened Nice Answer Notable Question Constituent Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Documentation User Guru Famous Question Nice Answer Enlightened Announcer Nice Question Nice Answer Great Answer Nice Answer Good Answer Good Answer Great Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Popular Question Notable Question Nice Answer Census Favorite Question sqlalchemy Good Answer Nice Answer Famous Question Good Answer Notable Question Guru Guru Nice Answer Enlightened Notable Question Good Answer Famous Question Nice Answer Enlightened Nice Answer Good Question Great Answer Popular Question Nice Question Caucus Great Answer Great Answer Yearling Good Answer Favorite Question Constituent Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Notable Question Good Answer Good Answer Nice Question Great Answer html Guru Great Answer Guru Good Answer Great Answer Great Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Question Nice Answer Enlightened Nice Question Great Question Good Answer Nice Answer Enlightened Great Answer Guru Good Answer Good Answer Nice Answer Nice Answer Great Question Nice Answer Nice Answer Nice Answer Enlightened Announcer,NULL,pYou could use codeORDER BY rating DESC name ASC code to sort by rating and then if the ratings are equal by name Yes you can and think it very ugly to do so if you have anything that not ASC within the same statement,1,InvalidRequirement Invalid requirement parse error error after updating python package python pip setuptools pAfter updating package IPython in my case using codepip install ipython code running any Python script that uses entry points fails with this error ppre codeTraceback most recent call last File home adrian dev indico env bin indico line in lt module gt from pkg resources import load entry point File home adrian dev indico env lib python2 site packages pkg resources vendor packaging requirements py line 94 in init requirement string loc loc requirement string pkg resources vendor packaging requirements InvalidRequirement Invalid requirement parse error at lt code prepNothing else changed did not update any other libraries,NULL 3037,25148,39182,Notable Question Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 3038,303060,202741,NULL,NULL,NULL,0,NULL,NULL 3039,111158,184420,NULL,NULL,NULL,0,NULL,NULL 3040,284054,674514,NULL,NULL,NULL,0,NULL,NULL 3041,274608,516220,Yearling Nice Answer Enlightened Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 3042,487929,1364461,Enthusiast,NULL,NULL,0,NULL,NULL 3043,280443,1213166,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3044,625652,1447569,NULL,NULL,NULL,0,NULL,NULL 3045,390823,105650,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3046,257705,1307116,Yearling Yearling Yearling Student Great Answer Yearling,NULL,NULL,0,NULL,NULL 3047,320089,1563669,Citizen Patrol Suffrage Vox Populi Necromancer Yearling Announcer Caucus Constituent Caucus Yearling Constituent Excavator Caucus Electorate Yearling,NULL,NULL,0,NULL,NULL 3048,1365387,918055,Popular Question Popular Question Nice Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 3049,245814,937550,Popular Question Caucus Constituent Popular Question Caucus Constituent Inquisitive Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3050,86059,912835,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 3051,1012672,634806,Editor,NULL,NULL,0,NULL,NULL 3052,494547,525555,Necromancer Student Critic Necromancer,NULL,NULL,0,NULL,NULL 3053,12442,157321,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3054,50370,188583,NULL,NULL,NULL,0,NULL,NULL 3055,120382,875516,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3056,202121,360647,NULL,NULL,NULL,0,NULL,NULL 3057,63527,225786,NULL,NULL,NULL,0,NULL,NULL 3058,891969,1271260,NULL,NULL,NULL,0,NULL,NULL 3059,664983,223507,NULL,NULL,,0,, 3060,78136,370881,Necromancer,NULL,NULL,0,NULL,NULL 3061,1035535,208576,Necromancer Necromancer Nice Answer Yearling Nice Answer Custodian Famous Question Announcer Yearling Nice Answer Good Answer Revival Yearling Guru Notable Question,NULL,NULL,0,NULL,NULL 3062,243808,509752,Yearling Yearling Necromancer Nice Answer Enlightened Nice Answer Yearling Editor Excavator Custodian Great Answer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 3063,1666939,509752,Yearling Yearling Necromancer Nice Answer Enlightened Nice Answer Yearling Editor Excavator Custodian Great Answer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 3064,63465,1415329,NULL,NULL,NULL,0,NULL,NULL 3065,12495,549035,NULL,NULL,NULL,0,NULL,NULL 3066,79747,138541,Notable Question Nice Question Good Question Nice Question Notable Question Famous Question Yearling Nice Question Good Question Excavator Notable Question Self-Learner Caucus Notable Question Good Question Nice Question Popular Question Stellar Question Yearling Announcer Famous Question Popular Question Nice Question Great Question Notable Question Peer Pressure Popular Question Nice Question Notable Question Good Question Famous Question Yearling Popular Question,NULL,List files with certain extensions with ls and grep bash shell macos grep pI just want to get the files from the current dir and only output mp4 mp3 exe files nothing else So thought could just do this ppre codels grep mp4 grep mp3 grep exe code prepBut no as the first grep will output just mp4 therefor the other grep won be used ppAny ideas PS Running this script on Slow Leopard hahaha definitely was typo recall thinking Snow Leopard was quite fast,0,NULL,NULL 3067,1011340,1251757,NULL,NULL,NULL,0,NULL,NULL 3068,44703,793002,Nice Question Notable Question Nice Question Yearling Nice Answer Enlightened Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 3069,892566,223111,NULL,NULL,NULL,0,NULL,NULL 3070,8610,1154106,Yearling Good Answer Critic Nice Answer Informed Autobiographer Revival Yearling Announcer,NULL,pIn PHP using this code to uncomment SQL ppre code sqlComments lt Commented version sqlComments Skip single amp double quoted expressions Match comments Single line comments Multi line nested comments comment open marker non comment marker characters not comment open not comment close recursive case repeat eventually comment close marker Trim after comments lt Trim after semi colon uncommentedSQL trim preg replace sqlComments sql preg match all sqlComments sql comments extractedComments array filter comments var dump uncommentedSQL extractedComments code pre it because of the php escape 3x in if you want to use the regexp outside php,0,NULL,NULL 3071,181778,995646,NULL,NULL,NULL,0,NULL,NULL 3072,617767,817537,NULL,NULL,NULL,0,NULL,NULL 3073,84036,669836,NULL,NULL,NULL,0,NULL,NULL 3074,160628,537119,NULL,NULL,NULL,0,NULL,NULL 3075,171001,841851,NULL,NULL,NULL,0,NULL,NULL 3076,29723,448527,Good Answer Nice Question Yearling Caucus Constituent Caucus Constituent Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 3077,115477,624551,Yearling Nice Answer Enlightened Nice Answer Popular Question Popular Question Notable Question Good Answer Guru Good Answer Notable Question Great Question Nice Question Yearling Custodian Popular Question Guru Good Answer Nice Answer Nice Answer Yearling Good Answer Stellar Question Good Answer Famous Question Guru Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 3078,317380,1550943,Revival Yearling,NULL,NULL,0,NULL,NULL 3079,154306,725021,Yearling Good Answer Yearling Popular Question Guru Citizen Patrol Revival Caucus Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 3080,317577,641095,Notable Question Yearling Critic Notable Question Nice Answer Enlightened Popular Question Nice Question Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 3081,3935186,641095,Notable Question Yearling Critic Notable Question Nice Answer Enlightened Popular Question Nice Question Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 3082,334280,378298,Announcer Critic,NULL,NULL,0,NULL,NULL 3083,42385,422198,Nice Answer Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3084,919430,817620,Nice Answer Famous Question Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3085,753319,962259,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 3086,13794,939364,Announcer Enthusiast Announcer Yearling Announcer Popular Question Publicist Citizen Patrol,NULL,NULL,0,NULL,NULL 3087,335703,1240055,Yearling Good Question Nice Answer Good Answer Populist Famous Question Nice Question Good Question Yearling Popular Question Nice Question Notable Question Good Answer Yearling Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 3088,301360,688305,Popular Question Popular Question Notable Question Nice Question Notable Question Yearling Nice Question,NULL,pTo highlight the problem—assuming this ADT ppre codesealed trait Statecase object On extends Statecase object Off extends State code prepcirce generic derivation will currently produce the following encodings ppre codescala gt import io circe generic auto io circe syntax import io circe generic auto import io circe syntax scala gt On asJson noSpacesres0 String scala gt On State asJson noSpacesres1 String On code prepThis is because the generic derivation mechanism is built on Shapeless codeLabelledGeneric code which represents case objects as empty codeHList codes This will probably always be the default behavior since it clean simple and consistent but it not always what you want as you note the href https meta plasm us posts 2016 01 14 configuring generic derivation rel noreferrer configuration options that are coming soon will support alternatives ppYou can override this behavior by providing your own generic instances for case objects ppre codeimport io circe Encoderimport shapeless Generic HNil implicit def encodeCaseObject lt Product implicit gen Generic Aux HNil Encoder Encoder String contramap productPrefix code prepThis says if the generic representation of codeA code is an empty codeHList code encode it as its name as JSON string And it works as we expect for case objects that are statically typed as themselves ppre codescala gt On asJson noSpacesres2 String On code prepWhen the value is statically typed as the base type the story is little different ppre codescala gt On State asJson noSpacesres3 String On On code prepWe get generically derived instance for codeState code and it respects our manually defined generic instance for case objects but it still wraps them in an object This makes some sense if you think about it—the ADT emcould em contain case classes which can only reasonably be represented as JSON object and so the object wrapper with constructor name key approach is arguably the most reasonable thing to do ppIt not the only thing we can do though since we emdo em know statically whether the ADT contains case classes or only case objects First we need new type class that witnesses that an ADT is made up only of case objects note that assuming fresh start here but it should be possible to make this work alongside generic derivation ppre codeimport shapeless import shapeless labelled FieldType field trait IsEnum lt Coproduct def to String def from String Option object IsEnum implicit val cnilIsEnum IsEnum CNil new IsEnum CNil def to CNil String sys error Impossible def from String Option CNil None implicit def cconsIsEnum lt Symbol lt Product lt Coproduct implicit witK Witness Aux witH Witness Aux gen Generic Aux HNil tie IsEnum IsEnum FieldType new IsEnum FieldType def to FieldType String match case Inl gt witK value name case Inr gt tie to def from String Option FieldType if witK value name Some Inl field witH value else tie from map Inr code prepAnd then our generic codeEncoder code instances ppre codeimport io circe Encoderimplicit def encodeEnum lt Coproduct implicit gen LabelledGeneric Aux rie IsEnum Encoder Encoder String contramap gt rie to gen to code prepMight as well go ahead and write the decoder too ppre codeimport cats data Xor io circe Decoderimplicit def decodeEnum lt Coproduct implicit gen LabelledGeneric Aux rie IsEnum Decoder Decoder String emap gt Xor fromOption rie from map gen from enum code prepAnd then ppre codescala gt import io circe jawn decodeimport io circe jawn decodescala gt import io circe syntax import io circe syntax scala gt On State asJson noSpacesres0 String On scala gt Off State asJson noSpacesres1 String Off scala gt decode State On res2 cats data Xor io circe Error State Right On scala gt decode State Off res3 cats data Xor io circe Error State Right Off code prepWhich is what we wanted It turns out this breaks down when the sealed trait is contained within an object have been experimenting but would love some guidance on figuring out way to approach this issue,0,NULL,NULL 3089,414825,397020,Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Custodian,NULL,My Terraform backend state with Google Cloud Storage Buckets is created oddly Thoughts terraform gcp hashicorp pI using Terraform setup remote backend to manage state I’ve setup connection tf file for the connection and declaration of GCS for the Terraform state files The file contents looks like this ppre codeprovider google credentials file secrets account thrashingcode json project thrashingcorecode region us west1 terraform backend gcs bucket terraform remote states path dev terraform tfstate project thrashingcorecode code prepThe resource I’ve setup at least for this example is super simple configuration to create default network in GCP That configuration looks like this ppre codedata google compute network my network name default us west1 code prepNow when run terraform init get this error ppre code terraform initInitializing the backend Successfully configured the backend gcs Terraform will automaticallyuse this backend unless the backend configuration changes Error refreshing state WARN Error retrieving object blue world terraform state dev terraform tfstate googleapi got HTTP response code 403 with body adronsotheremail com does not have storage objects get access to blue world terraform state dev terraform tfstate This leaves me with few questions code prepWhere does Terraform derive the “adronsotheremail com” email identity as the account to try to access the storage location with It doesn’t appear to actually be the same email associated to the account created the resource with If can create the resource originally with service account that has ownership rights in phase what is it using for permissions in this particular situation It does clearly exist as shown pp href https stack imgur com 5FDOC png rel nofollow noreferrer img src https stack imgur com 5FDOC png alt the resource exists ppMy first attempt to fix this was to go to the storage resource and add this account to insure it has permission to this resource pp href https stack imgur com BvSmc png rel nofollow noreferrer img src https stack imgur com BvSmc png alt enter image description here ppThat fixed the issue but I’m still not entirely sure why had to add the member Shouldn Terraform have been created when theoretically thought was using the connection information detailed in the connection tf files in the connection right ppReference ve elaborated even further on the entire process and multiple phases of what working on href http blog adron me articles my terraform is broken in state rel nofollow noreferrer here Nope was thinking the same thing too about to post the answer though just figured it out,1,Scripting Docker Not Connected After Running Script bash docker pSo have script that looks like this ppre code bin bash if then docker machine start docker machine env eval docker machine env docker ps fi code prepOnce it has run though the scope of these commands seem to be over For instance don have connection to the docker machine once the script has run but like to script this part out so can have access to it ppFor instance after running this script script sh still can run docker ps ppWhat the reason this happens and how could get it to effectively be connected to after executing this script My Terraform backend state with Google Cloud Storage Buckets is created oddly Thoughts terraform gcp hashicorp pI using Terraform setup remote backend to manage state I’ve setup connection tf file for the connection and declaration of GCS for the Terraform state files The file contents looks like this ppre codeprovider google credentials file secrets account thrashingcode json project thrashingcorecode region us west1 terraform backend gcs bucket terraform remote states path dev terraform tfstate project thrashingcorecode code prepThe resource I’ve setup at least for this example is super simple configuration to create default network in GCP That configuration looks like this ppre codedata google compute network my network name default us west1 code prepNow when run terraform init get this error ppre code terraform initInitializing the backend Successfully configured the backend gcs Terraform will automaticallyuse this backend unless the backend configuration changes Error refreshing state WARN Error retrieving object blue world terraform state dev terraform tfstate googleapi got HTTP response code 403 with body adronsotheremail com does not have storage objects get access to blue world terraform state dev terraform tfstate This leaves me with few questions code prepWhere does Terraform derive the “adronsotheremail com” email identity as the account to try to access the storage location with It doesn’t appear to actually be the same email associated to the account created the resource with If can create the resource originally with service account that has ownership rights in phase what is it using for permissions in this particular situation It does clearly exist as shown pp href https stack imgur com 5FDOC png rel nofollow noreferrer img src https stack imgur com 5FDOC png alt the resource exists ppMy first attempt to fix this was to go to the storage resource and add this account to insure it has permission to this resource pp href https stack imgur com BvSmc png rel nofollow noreferrer img src https stack imgur com BvSmc png alt enter image description here ppThat fixed the issue but I’m still not entirely sure why had to add the member Shouldn Terraform have been created when theoretically thought was using the connection information detailed in the connection tf files in the connection right ppReference ve elaborated even further on the entire process and multiple phases of what working on href http blog adron me articles my terraform is broken in state rel nofollow noreferrer here,NULL 3090,67843,397020,Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Custodian,NULL,My Terraform backend state with Google Cloud Storage Buckets is created oddly Thoughts terraform gcp hashicorp pI using Terraform setup remote backend to manage state I’ve setup connection tf file for the connection and declaration of GCS for the Terraform state files The file contents looks like this ppre codeprovider google credentials file secrets account thrashingcode json project thrashingcorecode region us west1 terraform backend gcs bucket terraform remote states path dev terraform tfstate project thrashingcorecode code prepThe resource I’ve setup at least for this example is super simple configuration to create default network in GCP That configuration looks like this ppre codedata google compute network my network name default us west1 code prepNow when run terraform init get this error ppre code terraform initInitializing the backend Successfully configured the backend gcs Terraform will automaticallyuse this backend unless the backend configuration changes Error refreshing state WARN Error retrieving object blue world terraform state dev terraform tfstate googleapi got HTTP response code 403 with body adronsotheremail com does not have storage objects get access to blue world terraform state dev terraform tfstate This leaves me with few questions code prepWhere does Terraform derive the “adronsotheremail com” email identity as the account to try to access the storage location with It doesn’t appear to actually be the same email associated to the account created the resource with If can create the resource originally with service account that has ownership rights in phase what is it using for permissions in this particular situation It does clearly exist as shown pp href https stack imgur com 5FDOC png rel nofollow noreferrer img src https stack imgur com 5FDOC png alt the resource exists ppMy first attempt to fix this was to go to the storage resource and add this account to insure it has permission to this resource pp href https stack imgur com BvSmc png rel nofollow noreferrer img src https stack imgur com BvSmc png alt enter image description here ppThat fixed the issue but I’m still not entirely sure why had to add the member Shouldn Terraform have been created when theoretically thought was using the connection information detailed in the connection tf files in the connection right ppReference ve elaborated even further on the entire process and multiple phases of what working on href http blog adron me articles my terraform is broken in state rel nofollow noreferrer here Nope was thinking the same thing too about to post the answer though just figured it out,1,Scripting Docker Not Connected After Running Script bash docker pSo have script that looks like this ppre code bin bash if then docker machine start docker machine env eval docker machine env docker ps fi code prepOnce it has run though the scope of these commands seem to be over For instance don have connection to the docker machine once the script has run but like to script this part out so can have access to it ppFor instance after running this script script sh still can run docker ps ppWhat the reason this happens and how could get it to effectively be connected to after executing this script My Terraform backend state with Google Cloud Storage Buckets is created oddly Thoughts terraform gcp hashicorp pI using Terraform setup remote backend to manage state I’ve setup connection tf file for the connection and declaration of GCS for the Terraform state files The file contents looks like this ppre codeprovider google credentials file secrets account thrashingcode json project thrashingcorecode region us west1 terraform backend gcs bucket terraform remote states path dev terraform tfstate project thrashingcorecode code prepThe resource I’ve setup at least for this example is super simple configuration to create default network in GCP That configuration looks like this ppre codedata google compute network my network name default us west1 code prepNow when run terraform init get this error ppre code terraform initInitializing the backend Successfully configured the backend gcs Terraform will automaticallyuse this backend unless the backend configuration changes Error refreshing state WARN Error retrieving object blue world terraform state dev terraform tfstate googleapi got HTTP response code 403 with body adronsotheremail com does not have storage objects get access to blue world terraform state dev terraform tfstate This leaves me with few questions code prepWhere does Terraform derive the “adronsotheremail com” email identity as the account to try to access the storage location with It doesn’t appear to actually be the same email associated to the account created the resource with If can create the resource originally with service account that has ownership rights in phase what is it using for permissions in this particular situation It does clearly exist as shown pp href https stack imgur com 5FDOC png rel nofollow noreferrer img src https stack imgur com 5FDOC png alt the resource exists ppMy first attempt to fix this was to go to the storage resource and add this account to insure it has permission to this resource pp href https stack imgur com BvSmc png rel nofollow noreferrer img src https stack imgur com BvSmc png alt enter image description here ppThat fixed the issue but I’m still not entirely sure why had to add the member Shouldn Terraform have been created when theoretically thought was using the connection information detailed in the connection tf files in the connection right ppReference ve elaborated even further on the entire process and multiple phases of what working on href http blog adron me articles my terraform is broken in state rel nofollow noreferrer here,NULL 3091,945893,798334,NULL,NULL,NULL,0,NULL,NULL 3092,858923,273707,NULL,NULL,NULL,0,NULL,NULL 3093,69128,1164143,Yearling Necromancer Notable Question Yearling Nice Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3094,270350,382608,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3095,317148,631166,NULL,NULL,NULL,0,NULL,NULL 3096,550961,227160,Yearling Favorite Question Great Question Famous Question,NULL,NULL,0,NULL,NULL 3097,670722,266601,NULL,NULL,NULL,0,NULL,NULL 3098,3662065,726062,Notable Question,NULL,NULL,0,NULL,NULL 3099,70489,728281,Citizen Patrol Student Commentator Announcer Announcer Necromancer,NULL,NULL,0,NULL,NULL 3100,61359,117402,NULL,NULL,NULL,0,NULL,NULL 3101,477507,793945,NULL,NULL,NULL,0,NULL,NULL 3102,187443,138935,Popular Question Favorite Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 3103,185927,906433,Nice Answer,NULL,NULL,0,NULL,NULL 3104,578656,806018,Self-Learner Nice Answer Popular Question Yearling Necromancer Nice Answer Student Tumbleweed,NULL,NULL,0,NULL,NULL 3105,137573,121433,Nice Answer Yearling Yearling scala Good Answer Yearling,NULL,NULL,0,NULL,NULL 3106,243806,379482,Nice Question Famous Question Popular Question Yearling Notable Question Great Answer Nice Answer Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3107,4483579,1080378,NULL,NULL,NULL,0,NULL,NULL 3108,23632,474741,NULL,NULL,NULL,0,NULL,NULL 3109,353047,898896,Revival,NULL,NULL,0,NULL,NULL 3110,348024,847743,NULL,NULL,NULL,0,NULL,NULL 3111,23303,585511,NULL,NULL,NULL,0,NULL,NULL 3112,1052015,821143,Informed,NULL,NULL,0,NULL,NULL 3113,1052017,821143,Informed,NULL,NULL,0,NULL,NULL 3114,1278556,706465,NULL,NULL,NULL,0,NULL,NULL 3115,3495788,227443,NULL,NULL,NULL,0,NULL,NULL 3116,75330,227443,NULL,NULL,NULL,0,NULL,NULL 3117,265690,633567,Yearling Good Answer Nice Answer Enlightened Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 3118,570348,1053924,NULL,NULL,NULL,0,NULL,NULL 3119,3179493,358268,NULL,NULL,NULL,0,NULL,NULL 3120,129789,286432,Yearling Reviewer Caucus Constituent Popular Question Nice Answer Yearling Populist Nice Answer Enlightened Nice Answer Enlightened Caucus Announcer Constituent Nice Answer angularjs Census Revival Good Answer Yearling Caucus Constituent Guru,NULL,NULL,0,NULL,NULL 3121,39051,422096,Popular Question,NULL,NULL,0,NULL,NULL 3122,1348447,822142,NULL,NULL,NULL,0,NULL,NULL 3123,213108,272824,Notable Question Good Answer Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Great Answer Guru Guru Nice Answer Enlightened Custodian Guru Nice Answer Enlightened Yearling Guru Nice Answer Good Answer Great Answer Nice Answer Great Answer Custodian Nice Answer Custodian Nice Answer Enlightened Guru Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 3124,185048,769150,Nice Question,NULL,NULL,0,NULL,NULL 3125,1342656,480691,Nice Answer Famous Question Popular Question Nice Question Necromancer Famous Question Nice Question Famous Question Yearling Nice Question Popular Question Popular Question Guru Notable Question Good Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Good Question Favorite Question Good Question Notable Question Yearling Notable Question Famous Question Nice Answer Great Question Famous Question Good Answer Famous Question Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3126,1474472,903272,NULL,NULL,NULL,0,NULL,NULL 3127,3560217,585828,NULL,NULL,NULL,0,NULL,NULL 3128,153993,566869,Critic Citizen Patrol Popular Question Caucus Popular Question Notable Question Yearling Documentation User Self-Learner Popular Question Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 3129,47497,322863,Nice Answer Revival Enthusiast Yearling Guru Civic Duty Popular Question ruby Notable Question Tag Editor Yearling Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 3130,263807,1205303,NULL,NULL,NULL,0,NULL,NULL 3131,133396,790537,NULL,NULL,NULL,0,NULL,NULL 3132,16059,574235,NULL,NULL,NULL,0,NULL,NULL 3133,304365,978906,Popular Question Notable Question Explainer Popular Question Inquisitive Popular Question Popular Question Notable Question Popular Question Excavator Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question Popular Question Notable Question Nice Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Good Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 3134,547820,250653,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3135,411877,961518,NULL,NULL,NULL,0,NULL,NULL 3136,815380,1275284,NULL,NULL,NULL,0,NULL,NULL 3137,521869,910291,Notable Question Notable Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 3138,46080,252346,Caucus Announcer,NULL,NULL,0,NULL,NULL 3139,231826,600443,NULL,NULL,NULL,0,NULL,NULL 3140,175191,224080,NULL,NULL,NULL,0,NULL,NULL 3141,135990,749029,Popular Question,NULL,NULL,0,NULL,NULL 3142,51368,1143798,NULL,NULL,NULL,0,NULL,NULL 3143,50274,329485,NULL,NULL,NULL,0,NULL,NULL 3144,233504,1131214,Student,NULL,NULL,0,NULL,NULL 3145,281076,1154320,NULL,NULL,NULL,0,NULL,NULL 3146,878760,1108408,NULL,NULL,NULL,0,NULL,NULL 3147,599609,338672,Notable Question,NULL,NULL,0,NULL,NULL 3148,904866,391121,NULL,NULL,NULL,0,NULL,NULL 3149,85121,208545,Informed Disciplined Popular Question Tag Editor Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 3150,528308,215829,Teacher,NULL,NULL,0,NULL,NULL 3151,30391,1259547,Notable Question Good Question Famous Question Yearling Caucus Census Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 3152,1951517,523373,NULL,NULL,NULL,0,NULL,NULL 3153,1719703,937839,NULL,NULL,NULL,0,NULL,NULL 3154,371363,937839,NULL,NULL,NULL,0,NULL,NULL 3155,493200,204200,Popular Question Self-Learner Yearling Necromancer Nice Answer Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 3156,371240,206767,Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 3157,82695,777754,NULL,NULL,NULL,0,NULL,NULL 3158,142403,391577,NULL,NULL,NULL,0,NULL,NULL 3159,335705,1153697,NULL,NULL,NULL,0,NULL,NULL 3160,653025,218926,Notable Question Curious Popular Question,NULL,NULL,0,NULL,NULL 3161,21383,449960,NULL,NULL,NULL,0,NULL,NULL 3162,420743,333791,NULL,NULL,NULL,0,NULL,NULL 3163,411554,871044,Notable Question,NULL,NULL,0,NULL,NULL 3164,231968,477208,NULL,NULL,NULL,0,NULL,NULL 3165,883851,598635,NULL,NULL,NULL,0,NULL,NULL 3166,1566758,1042675,NULL,NULL,NULL,0,NULL,NULL 3167,248909,1148007,Autobiographer,NULL,NULL,0,NULL,NULL 3168,191756,828270,NULL,NULL,NULL,0,NULL,NULL 3169,101096,704414,NULL,NULL,NULL,0,NULL,NULL 3170,64923,1181164,NULL,NULL,NULL,0,NULL,NULL 3171,614020,630333,NULL,NULL,NULL,0,NULL,NULL 3172,468444,417685,Good Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Great Answer Guru Notable Question Yearling jquery Announcer Notable Question Good Answer Guru Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3173,10858,778247,Revival Yearling Organizer Explainer Great Answer Yearling Taxonomist Revival Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3174,1124908,1187902,Editor Necromancer,NULL,NULL,0,NULL,NULL 3175,194405,915743,Nice Answer Famous Question Good Answer Yearling Yearling Guru Nice Answer Enlightened Notable Question Famous Question Tumbleweed Caucus Popular Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 3176,1693301,1517960,NULL,NULL,NULL,0,NULL,NULL 3177,293735,1221104,NULL,NULL,NULL,0,NULL,NULL 3178,24720,460939,Announcer,NULL,NULL,0,NULL,NULL 3179,1078483,1167828,Yearling Populist Yearling Guru Great Answer Yearling,NULL,NULL,0,NULL,NULL 3180,1710845,1270401,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 3181,1480541,771848,Nice Question pymongo Revival Nice Answer Good Answer datetime Nice Question Nice Answer Enlightened Nice Question Nice Question Good Question Nice Question Nice Answer Enlightened Necromancer Nice Question Good Question Good Question Good Question Good Answer Revival Announcer Nice Answer elementtree Nice Answer Nice Answer Enlightened Revival Nice Answer Nice Question Nice Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened sqlalchemy Popular Question beautifulsoup Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Nice Answer Popular Question Notable Question Nice Answer Enlightened Nice Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened Nice Question Popular Question Nice Answer Revival Nice Answer Nice Question Nice Answer Necromancer Popular Question Nice Answer Enlightened Revival Revival Notable Question Nice Answer Nice Answer Enlightened Nice Question Nice Question Nice Question xml Revival Popular Question Good Answer Good Question Nice Answer Good Answer Generalist Nice Answer Popular Question e2e-testing Nice Answer Nice Answer Enlightened Good Answer Popular Question Good Answer angularjs Nice Question Popular Question Nice Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Revival Popular Question Notable Question Nice Question list python-3.x Revival Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened angularjs-e2e Revival Nice Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer selenium-chromedriver Nice Answer Notable Question Nice Answer Revival Nice Answer Nice Answer Nice Question Great Answer Popular Question Good Answer Nice Question python-2.7 Nice Answer Enlightened Popular Question Popular Question Nice Answer Populist Nice Question Nice Question c# Nice Question Good Answer Popular Question Guru Notable Question Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Documentation Pioneer Enlightened Revival Nice Question automation css-selectors Nice Answer Enlightened Necromancer Nice Answer Enlightened Necromancer Popular Question Good Answer Popular Question Necromancer Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened xlrd jasmine Nice Answer Necromancer dictionary Popular Question Good Question Nice Answer Enlightened Nice Answer json Nice Answer Good Answer Nice Question Nice Answer Good Answer Nice Answer Notable Question testing Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer openpyxl Notable Question Good Answer Good Answer sql Nice Question Nice Answer Enlightened Nice Answer Enlightened mechanize Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Nice Question Notable Question Good Answer Revival Popular Question Good Answer Guru Guru Nice Answer Nice Answer Enlightened Notable Question Nice Answer Good Answer Notable Question Notable Question Nice Question Nice Answer Necromancer Good Answer end-to-end Nice Answer Enlightened Popular Question xpath string Nice Answer Enlightened Popular Question Revival Caucus Popular Question Nice Answer Revival Nice Answer Constituent Popular Question Good Answer Nice Answer Enlightened Notable Question Notable Question Nice Answer Nice Answer Enlightened Notable Question Notable Question lxml Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened django-forms Nice Answer Famous Question Good Question html-parsing Nice Question java Nice Question Revival Popular Question Nice Answer Nice Question Populist Nice Question Nice Answer automated-tests Nice Answer Enlightened Guru Nice Answer Nice Question Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Question Nice Answer Enlightened Notable Question Popular Question Necromancer Nice Answer Enlightened Nice Question Guru Popular Question Announcer Good Answer Good Answer Nice Question Good Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Guru Census Nice Answer Enlightened Popular Question Good Answer Nice Answer Nice Answer Enlightened split Announcer Nice Question Popular Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Popular Question Necromancer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer phantomjs Popular Question Good Question Good Answer Nice Answer Populist Popular Question Notable Question Popular Question Nice Answer Enlightened Famous Question Good Answer Notable Question Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Question Nice Question Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Necromancer Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Good Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Good Question scrapy-spider Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Announcer Revival Nice Answer Famous Question Notable Question Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Question Famous Question Announcer Announcer Announcer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened url function Nice Answer pip Good Answer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Announcer Populist Necromancer Announcer Guru Announcer Good Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened webdriver Nice Answer Enlightened Announcer Favorite Question Good Answer Good Answer Announcer Notable Question Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Announcer Announcer Caucus Popular Question Nice Answer Enlightened Nice Answer Popular Question Announcer Nice Answer Enlightened Guru Constituent Announcer Announcer Necromancer Necromancer Guru Nice Answer Enlightened Enlightened Enlightened angular Popular Question mongodb Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer sqlite Guru Nice Answer Enlightened Popular Question Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Good Answer Notable Question Nice Question Nice Answer Enlightened Good Answer Nice Question Announcer Good Answer Notable Question Popular Question Announcer unit-testing Nice Question Guru Revival Good Answer Nice Answer Enlightened Nice Answer database django-urls Popular Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Announcer Necromancer Nice Answer Enlightened Nice Answer Favorite Question Famous Question Famous Question Nice Answer Nice Answer Enlightened Nice Question Announcer Necromancer Documentation User Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Question Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Guru Good Answer Guru Notable Question Nice Answer Enlightened Notable Question Nice Answer Famous Question Great Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Necromancer Nice Answer Enlightened Famous Question Announcer python-requests jquery Notable Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Answer xml-parsing Nice Answer Enlightened regex Notable Question Guru postgresql Nice Answer Enlightened python-unittest Nice Answer Nice Question Enlightened Announcer Good Answer Guru Great Answer Nice Question Peer Pressure Notable Question Popular Question Nice Answer Census Popular Question Good Answer Popular Question Announcer Popular Question Nice Answer Enlightened Popular Question Nice Answer Announcer Announcer Enlightened Populist Popular Question pycharm Good Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Popular Question Good Question Booster Nice Answer Enlightened Nice Question Nice Answer screen-scraping Nice Answer Enlightened Nice Answer Announcer Necromancer Announcer Announcer csv Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Famous Question Nice Answer Enlightened Announcer Nice Answer Guru Nice Answer Enlightened Popular Question Popular Question Caucus Nice Question Popular Question Nice Answer Enlightened Nice Answer Revival sorting Nice Answer Nice Answer Enlightened Popular Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Constituent Notable Question Announcer Guru Popular Question Announcer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Enlightened Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Announcer karma-jasmine Good Answer Nice Answer Nice Question Notable Question Guru Announcer Good Answer Good Answer Nice Answer Good Answer Announcer urllib2 Nice Answer Nice Answer Popular Question Notable Question django-models Guru Good Answer Popular Question parsing Announcer Good Question Announcer Notable Question Nice Answer Nice Answer Enlightened Enlightened Notable Question Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Famous Question Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Famous Question Nice Answer Enlightened Yearling Popular Question Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Populist Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Notable Question Notable Question Notable Question Enlightened Nice Answer Enlightened python-3.x Nice Answer Enlightened Nice Answer Enlightened Popular Question Guru Popular Question Popular Question Revival Announcer Good Answer Notable Question for-loop Nice Answer Guru Necromancer Nice Answer Enlightened Necromancer Good Answer Popular Question Popular Question mocking Nice Answer Enlightened Popular Question Nice Answer Enlightened node.js django-queryset Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Nice Question Nice Answer Nice Answer Enlightened Good Question Good Answer Notable Question Nice Answer Nice Answer Enlightened pandas Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Good Answer Good Answer Guru Popular Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Question Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Guru Nice Answer Enlightened Nice Question Nice Answer Enlightened Announcer Good Answer Nice Answer Famous Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer Guru Popular Question Outspoken Nice Answer Enlightened Nice Answer Famous Question Notable Question Good Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Good Answer Announcer Nice Answer Good Answer Enlightened Popular Question Famous Question Nice Answer Enlightened Popular Question Announcer Good Answer Nice Question Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Announcer Popular Question Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened,NULL,pYou can use href https docs python org library functions html next codenext code ppre code gt gt gt None None None gt gt gt next item for item in if item is not None code prepIf the list contains only Nones it will throw codeStopIteration code exception If you want to have default value in this case do this ppre code gt gt gt None None None gt gt gt next item for item in if item is not None All are Nones All are Nones code pre better late than never pIt really depends on how do you need to scrape the site and how and what data do you want to get ppHere an example how you can follow pagination on ebay using codeScrapy code codeSelenium code ppre codeimport scrapyfrom selenium import webdriverclass ProductSpider scrapy Spider name product spider allowed domains ebay com start urls http www ebay com sch html odkw books amp osacat amp trksid p2045573 m570 l1313 TR0 TRC0 Xpython amp nkw python amp sacat amp from R40 def init self self driver webdriver Firefox def parse self response self driver get response url while True next self driver find element by xpath td pagn next try next click get the data and write it to scrapy items except break self driver close code prepHere are some examples of selenium spiders pulli href https stackoverflow com questions 10648644 executing javascript submit form functions using scrapy in python Executing Javascript Submit form functions using scrapy in python lili href https gist github com cheekybastard 4944914 rel noreferrer https gist github com cheekybastard 4944914 lili href https gist github com irfani 1045108 rel noreferrer https gist github com irfani 1045108 lili href http snipplr com view 66998 rel noreferrer http snipplr com view 66998 li ulhrpThere is also an alternative to having to use codeSelenium code with codeScrapy code In some cases using href https github com scrapinghub scrapy splash rel noreferrer codeScrapyJS code middleware is enough to handle the dynamic parts of page Sample real world usage pulli href https stackoverflow com questions 30345623 scraping dynamic content using python scrapy Scraping dynamic content using python Scrapy li ul this is not related to the answer itself Try googling or asking separate question here on SO pUse codefindAll code with codeinclude code and codesequelize fn code for the codeCOUNT code ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes code prepOr you may need to add codegroup code as well ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes group Location id code pre okay let me quickly build sample and debug thanks pUse codefindAll code with codeinclude code and codesequelize fn code for the codeCOUNT code ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes code prepOr you may need to add codegroup code as well ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes group Location id code pre could you please edit the question and post your model definitions Thanks pUse codefindAll code with codeinclude code and codesequelize fn code for the codeCOUNT code ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes code prepOr you may need to add codegroup code as well ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes group Location id code pre thanks please see the update think you should be able to achieve the desired result now Thanks pUse codefindAll code with codeinclude code and codesequelize fn code for the codeCOUNT code ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes code prepOr you may need to add codegroup code as well ppre codeLocation findAll attributes include Sequelize fn COUNT Sequelize col sensors id sensorCount include model Sensor attributes group Location id code pre great fixed the answer to reflect your changes Thanks,1,Extracting quotations citations with nltk not regex python nltk tokenize pThe input list of sentences ppre codesentences Well ve tried to say How Doth the Little Busy Bee but it all came different Alice replied in very melancholy voice She continued ll try again code prepThe desired output ppre codeHow Doth the Little Busy Bee ll try again code prepIs there way to extract the citations can appear in both single and double quotes with codenltk code with built in or third party tokenizers phrpI ve tried using the href http www nltk org modules nltk tokenize sexpr html rel nofollow noreferrer codeSExprTokenizer code tokenizer providing the single and double quotes as codeparens code values but the result was far from the desired ppre codeIn from nltk import SExprTokenizer sentences Well ve tried to say How Doth the Little Busy Bee but it all came different Alice replied in very melancholy voice She continued ll try again tokenizer SExprTokenizer parens strict False for sentence in sentences for item in tokenizer tokenize sentence print item print Well vetriedtosay HowDoththeLittleBusyBee but it all came different Alice replied in very melancholy voice She continued ll try again code prehrpThere were similar threads like href https stackoverflow com questions 37936461 how to extract quotations from text using nltk this and href https stackoverflow com questions 171480 regex grabbing values between quotation marks this but all of them suggest regex based approach but curious if this can be solved with codenltk code only sounds like common task in Natural Language Processing,Wait until alert is not present Selenium Python python selenium pI found this answer href https stackoverflow com 19019311 1998220 https stackoverflow com 19019311 1998220 that waits until the alert is present but need the opposite so whoever runs the macro has time to authenticate on the proxy pop up Is there an opposite to the below code ppre codeWebDriverWait browser 60 until EC alert is present code pre pYou can href https selenium python readthedocs org waits html rel nofollow wait for specific URL title or specific element to be present or visible but you can also have specific codealert is not present code emcustom Expected Condition em ppre codeclass alert is not present object Expect an alert to not to be present def call self driver try alert driver switch to alert alert text return False except NoAlertPresentException return True code pre 3182,168070,1283587,Revival Yearling Good Answer Yearling Necromancer Critic Caucus Constituent Yearling Populist Necromancer Custodian Custodian Yearling Commentator Necromancer Excavator Necromancer Nice Answer Enlightened Civic Duty Student Scholar Yearling Nice Answer,NULL,pThis article about Javascript Strict Mode might interest you href http ejohn org blog ecmascript strict mode json and more rel noreferrer John Resig ECMAScript Strict Mode JSON and More ppTo quote some interesting parts pblockquote pStrict Mode is new feature in ECMAScript that allows you to place program or function in strict operating context This strict context prevents certain actions from being taken and throws more exceptions blockquotepAnd pblockquote pStrict mode helps out in couple ways ul liIt catches some common coding bloopers throwing exceptions li liIt prevents or throws errors when relatively unsafe actions are taken such as gaining access to the global object li liIt disables features that are confusing or poorly thought out li ul blockquotepAlso note you can apply strict mode to the whole file Or you can use it only for specific function em still quoting from John Resig article em pblockquotepre code Non strict code function use strict Define your library strictly Non strict code code pre blockquotepWhich might be helpful if you have to mix old and new code ppSo suppose it bit like the code use strict code you can use in Perl em hence the name em it helps you make fewer errors by detecting more things that could lead to breakages ppCurrently it href http caniuse com use strict rel noreferrer strongsupported by all major browsers strong em bar IE and below em Strict mode may also considerably improve the performance http stackoverflow com questions 38411552 why use strict improves performance 10x in this example,0,NULL,NULL 3183,685021,337306,Notable Question Famous Question Notable Question Yearling Famous Question Popular Question Good Question Popular Question Yearling Popular Question Good Question Caucus Announcer Notable Question Notable Question Good Answer Popular Question Famous Question Caucus Yearling Popular Question Popular Question Popular Question,NULL,pI installed Ruby on Rails alongside WampServer Here is how to do it ppReplace codeC wamp code in the following text by your own WampServer install repository ppInstalling Ruby polliDownload Ruby Use the Windows strongbinary strong version not the one click installer because it contains MySQL and Apache which we don need liliExtract the zip to codeC wamp ruby code lili pAdd Ruby bin repository in your PATH environment variable polliRight click Computer Properties liliClick Advanced System Settings liliAdvanced tab Environment Variables liliAppend code wamp ruby bin code to the Path variable li ol li olpInstalling DevKit ppDownload DevKit polliExtract DevKit to codec wamp ruby DevKit code lili codecd wamp ruby DevKit code lili coderuby dk rb init code pulliAdd code wamp ruby code to the end of codeconfig yml code li ul lili coderuby dk rb install code li olpInstalling Rails and the Mongrel server polli pOpen the command line and type ppre codegem install rails code pre lili pCreate your first Rails application by opening the command line from codeC wamp www rails code and typing ppre coderails hello code pre lili pInstall the Mongrel server and Windows Mongrel service making sure to run the command line as administrator ppre codegem install mongrel and gem install mongrel service code pre lili pInstall Windows service for your Rails application ppre codemongrel rails service install ruby hello wamp www rails hello 3001 development code pre lili pStart your Mongrel service ppre codenet start ruby hello code pre li olpYou can now access your Rails application at codehttp localhost 3001 code ppIntegrating with Apache polli pEnable mod proxy in httpd conf ppOpen httpd conf wamp bin apache Apache2 conf httpd conf and uncomment the following line ppre codeLoadModule proxy module modules mod proxy so code pre lili pForward your traffic to your Mongrel server Add the following text to your httpd conf or extra httpd vhosts conf if it included in your httpd conf ppre code lt VirtualHost 80 gt ServerName hello comServerAlias hello comProxyPass http localhost 3001 ProxyPassReverse http localhost 3001 lt VirtualHost gt code pre lili pAdd hello com to your hosts file Open codec windows system32 drivers etc hosts code in Notepad and add the following line ppre code127 www hello com hello com code pre li olpYou can now go to href http www hello com rel nofollow noreferrer http www hello com and it should load your Rails application ppReferences pulli href http rubyinstaller org downloads rel nofollow noreferrer http rubyinstaller org downloads lili href http www wampserver com rel nofollow noreferrer http www wampserver com lili href http www ruby lang org rel nofollow noreferrer http www ruby lang org lili href http mongrel rubyforge org rel nofollow noreferrer http mongrel rubyforge org and href http mongrel rubyforge org wiki Win32 rel nofollow noreferrer http mongrel rubyforge org wiki Win32 li ul tried this and got Error 500 Internal Server Error Please help,0,NULL,NULL 3184,98949,455934,Custodian Proofreader Popular Question laravel Notable Question Nice Answer Enlightened Popular Question Notable Question Yearling Nice Answer Enlightened Popular Question Nice Answer Yearling Cleanup Yearling,NULL,NULL,0,NULL,NULL 3185,920231,596656,NULL,NULL,NULL,0,NULL,NULL 3186,131884,932342,Yearling Revival Necromancer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 3187,83832,254525,Yearling Good Answer,NULL,NULL,0,NULL,NULL 3188,1652832,1093064,NULL,NULL,NULL,0,NULL,NULL 3189,177255,1093064,NULL,NULL,NULL,0,NULL,NULL 3190,677019,689363,Critic Curious Informed Autobiographer Yearling Caucus Constituent Yearling Promoter Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3191,780989,737230,Supporter Autobiographer Informed Suffrage Excavator Explainer Documentation User Commentator Vox Populi Civic Duty Student Yearling Critic,NULL,NULL,0,NULL,NULL 3192,152803,124873,NULL,NULL,NULL,0,NULL,NULL 3193,16903,523109,NULL,NULL,NULL,0,NULL,NULL 3194,346591,980212,Famous Question Nice Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 3195,467444,977121,Popular Question Notable Question Famous Question Nice Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Yearling Notable Question Notable Question Good Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Necromancer Popular Question Nice Question Popular Question Yearling Popular Question Nice Question Good Question Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 3196,320600,544894,Civic Duty Yearling Necromancer Announcer Announcer Revival Popular Question Necromancer Excavator Nice Answer,NULL,NULL,0,NULL,NULL 3197,62853,562388,Yearling Popular Question Cleanup Curious Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Caucus java Yearling Nice Answer Yearling Census Custodian,NULL,NULL,0,NULL,NULL 3198,97924,1565238,Announcer Custodian Commentator Autobiographer Announcer Announcer Announcer Popular Question Announcer Announcer Announcer Announcer Announcer Announcer Yearling Notable Question Announcer Popular Question Announcer Announcer Self-Learner Booster Nice Question Notable Question Popular Question Announcer Announcer Announcer Popular Question Famous Question Famous Question Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 3199,60122,1311229,NULL,NULL,NULL,0,NULL,NULL 3200,156320,364755,Critic,NULL,NULL,0,NULL,NULL 3201,50442,1371216,NULL,NULL,NULL,0,NULL,NULL 3202,22649,680468,Notable Question Nice Answer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 3203,1646790,807433,Citizen Patrol Critic Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3204,2308000,463128,Nice Answer Enlightened Critic Yearling Caucus Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 3205,1907795,1029708,NULL,NULL,NULL,0,NULL,NULL 3206,176258,815717,NULL,NULL,NULL,0,NULL,NULL 3207,1637793,871456,NULL,NULL,NULL,0,NULL,NULL 3208,32092,17308,Good Answer Great Answer Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3209,334285,1291378,NULL,NULL,NULL,0,NULL,NULL 3210,1048926,1123176,NULL,NULL,NULL,0,NULL,NULL 3211,3265005,1123176,NULL,NULL,NULL,0,NULL,NULL 3212,455334,1372250,Yearling Yearling Citizen Patrol Custodian Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3213,1568406,310194,Yearling Nice Answer Popular Question Necromancer Nice Answer Yearling Curious Caucus Good Answer Notable Question Yearling Nice Answer Good Answer Caucus Census Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 3214,482506,604669,NULL,NULL,NULL,0,NULL,NULL 3215,202392,1225445,NULL,NULL,NULL,0,NULL,NULL 3216,870451,830044,NULL,NULL,NULL,0,NULL,NULL 3217,3537,1207798,Notable Question Popular Question Necromancer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 3218,10935,1552255,Informed Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 3219,3802560,1552255,Informed Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 3220,481122,209869,Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Caucus Good Question Notable Question Good Question Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 3221,645704,1315739,NULL,NULL,NULL,0,NULL,NULL 3222,86695,1260906,Custodian Announcer Good Answer Yearling Citizen Patrol Notable Question Good Question Explainer Electorate Caucus Constituent Quorum Popular Question Necromancer Necromancer Tenacious Announcer Census Yearling Announcer Announcer Tag Editor Nice Answer Announcer Nice Answer Popular Question Necromancer Announcer Necromancer Popular Question Caucus Nice Question Nice Question Popular Question Announcer Popular Question Necromancer Documentation User Nice Answer Necromancer Good Answer Nice Answer Famous Question Necromancer Popular Question Popular Question Census Announcer Nice Answer Revival Announcer Excavator Necromancer Announcer Announcer Yearling Popular Question Caucus Popular Question Notable Question Notable Question Good Answer Famous Question Good Answer Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 3223,114925,360907,Popular Question Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Famous Question Nice Answer Enlightened Notable Question Popular Question Famous Question Yearling Famous Question Notable Question Famous Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3224,1374359,786797,NULL,NULL,NULL,0,NULL,NULL 3225,228034,167670,Popular Question Popular Question Popular Question Famous Question Popular Question Good Question Popular Question Custodian Nice Question Yearling Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Notable Question Famous Question Revival Nice Question Notable Question Nice Answer Popular Question Popular Question Yearling Notable Question Census Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 3226,462475,28380,Nice Answer Famous Question google-drive-sdk Famous Question Nice Answer Yearling Nice Answer Guru Great Answer Good Answer Good Answer Good Answer Populist Good Answer Nice Answer Enlightened Nice Question Yearling Famous Question Nice Answer Great Answer Nice Answer Enlightened Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 3227,10022069,375966,Necromancer Popular Question Popular Question Good Answer Notable Question Good Question Nice Question Notable Question Famous Question Notable Question Electorate Nice Question Notable Question Yearling Notable Question Notable Question Popular Question Announcer Booster Publicist Popular Question Notable Question Nice Question Popular Question Nice Question Necromancer Great Answer Notable Question Popular Question Nice Question Notable Question Nice Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Necromancer Necromancer Popular Question Nice Answer Good Question Popular Question Notable Question Announcer Guru Yearling Notable Question Famous Question Caucus Popular Question Nice Question Announcer Self-Learner Popular Question Popular Question Custodian Good Question Custodian Popular Question Necromancer Famous Question Popular Question Favorite Question Popular Question Nice Question Announcer Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Nice Answer Good Answer Necromancer Popular Question Nice Answer Nice Question Notable Question Strunk & White Necromancer Popular Question Guru Nice Question Yearling Good Question Announcer Notable Question Famous Question Popular Question Famous Question Popular Question,NULL,Switch statement multiple cases in JavaScript javascript switch statement pI need multiple cases in switch statement in JavaScript Something like ppre codeswitch varName case afshin saeed larry alert Hey break default alert Default case break code prepHow can do that If there no way to do something like that in JavaScript want to know an alternative solution that also follows href http c2 com cgi wiki DontRepeatYourself rel noreferrer DRY concept because it not necessary to add more answers,0,NULL,NULL 3228,5087468,375966,Necromancer Popular Question Popular Question Good Answer Notable Question Good Question Nice Question Notable Question Famous Question Notable Question Electorate Nice Question Notable Question Yearling Notable Question Notable Question Popular Question Announcer Booster Publicist Popular Question Notable Question Nice Question Popular Question Nice Question Necromancer Great Answer Notable Question Popular Question Nice Question Notable Question Nice Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Necromancer Necromancer Popular Question Nice Answer Good Question Popular Question Notable Question Announcer Guru Yearling Notable Question Famous Question Caucus Popular Question Nice Question Announcer Self-Learner Popular Question Popular Question Custodian Good Question Custodian Popular Question Necromancer Famous Question Popular Question Favorite Question Popular Question Nice Question Announcer Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Nice Answer Good Answer Necromancer Popular Question Nice Answer Nice Question Notable Question Strunk & White Necromancer Popular Question Guru Nice Question Yearling Good Question Announcer Notable Question Famous Question Popular Question Famous Question Popular Question,NULL,Switch statement multiple cases in JavaScript javascript switch statement pI need multiple cases in switch statement in JavaScript Something like ppre codeswitch varName case afshin saeed larry alert Hey break default alert Default case break code prepHow can do that If there no way to do something like that in JavaScript want to know an alternative solution that also follows href http c2 com cgi wiki DontRepeatYourself rel noreferrer DRY concept because it not necessary to add more answers,0,NULL,NULL 3229,120905,375966,Necromancer Popular Question Popular Question Good Answer Notable Question Good Question Nice Question Notable Question Famous Question Notable Question Electorate Nice Question Notable Question Yearling Notable Question Notable Question Popular Question Announcer Booster Publicist Popular Question Notable Question Nice Question Popular Question Nice Question Necromancer Great Answer Notable Question Popular Question Nice Question Notable Question Nice Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Necromancer Necromancer Popular Question Nice Answer Good Question Popular Question Notable Question Announcer Guru Yearling Notable Question Famous Question Caucus Popular Question Nice Question Announcer Self-Learner Popular Question Popular Question Custodian Good Question Custodian Popular Question Necromancer Famous Question Popular Question Favorite Question Popular Question Nice Question Announcer Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Nice Answer Good Answer Necromancer Popular Question Nice Answer Nice Question Notable Question Strunk & White Necromancer Popular Question Guru Nice Question Yearling Good Question Announcer Notable Question Famous Question Popular Question Famous Question Popular Question,NULL,Switch statement multiple cases in JavaScript javascript switch statement pI need multiple cases in switch statement in JavaScript Something like ppre codeswitch varName case afshin saeed larry alert Hey break default alert Default case break code prepHow can do that If there no way to do something like that in JavaScript want to know an alternative solution that also follows href http c2 com cgi wiki DontRepeatYourself rel noreferrer DRY concept because it not necessary to add more answers,0,NULL,NULL 3230,924766,781566,NULL,NULL,NULL,0,NULL,NULL 3231,1233483,517638,Nice Question,NULL,NULL,0,NULL,NULL 3232,1640733,302485,Yearling Nice Answer Yearling Favorite Question,NULL,pI had similar problem and solved it with JD Long answer But as results of codeggplot2 code updating to version noticed that all codegeom text codecalls rendered somewhat blurred on the plots ppThanks to href https stackoverflow com users 314020 kohske kohske discovered that this code ppre codeggplot data2 aes time value group type col type geom line geom point theme bw geom text aes label correct color color NA geom text aes 15 label another correct color color MVH code prepplots the geom text codenrow data2 codetimes ppThe correct way for supplying data to geom text is building different data frame holding coordinates labels and colors for the strings you want to be plotted ppre codedata2 labels lt data frame time 15 value label correct color another correct color type NA MVH ggplot data2 aes time value group type col type geom line geom point theme bw geom text data data2 labels aes time value label label code pre use check overlap TRUE and it is only rendered once,0,NULL,NULL 3233,323668,442710,NULL,NULL,NULL,0,NULL,NULL 3234,2844324,725318,Teacher Supporter,NULL,NULL,0,NULL,NULL 3235,730296,601182,Yearling Curious Tumbleweed Caucus Yearling Popular Question Popular Question Caucus Notable Question Citizen Patrol Census Popular Question Revival Necromancer Caucus Yearling Notable Question Nice Question Custodian Popular Question Nice Answer Revival Famous Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 3236,683082,1310692,Yearling Notable Question Popular Question Good Answer Populist Popular Question Good Answer Good Question Nice Answer Yearling Popular Question Famous Question Yearling Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3237,38698,253363,Nice Answer,NULL,NULL,0,NULL,NULL 3238,232616,271678,Yearling Notable Question Nice Answer Enlightened Caucus Constituent Yearling Custodian Excavator Good Answer Good Answer r Custodian Custodian Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 3239,238528,1389178,NULL,NULL,NULL,0,NULL,NULL 3240,290544,784191,NULL,NULL,NULL,0,NULL,NULL 3241,126407,1222182,NULL,NULL,NULL,0,NULL,NULL 3242,5895026,1481588,NULL,NULL,NULL,0,NULL,NULL 3243,72203,1481588,NULL,NULL,NULL,0,NULL,NULL 3244,687718,709882,Notable Question,NULL,NULL,0,NULL,NULL 3245,194850,709882,Notable Question,NULL,NULL,0,NULL,NULL 3246,391090,1503792,NULL,NULL,NULL,0,NULL,NULL 3247,18641,551670,Popular Question Supporter Teacher,NULL,NULL,0,NULL,NULL 3248,280767,1345233,Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3249,27559,244789,Yearling Nice Answer Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened Yearling leaflet Nice Answer Good Answer,NULL,pFor anyone wondering how to do this faster without converting to string here solution ppre codefunction precision var while Math round 10 return Math log Math LN10 code prepEdit more complete solution with edge cases covered ppre codefunction precision if isFinite return var while Math round 10 return code pre Thanks for feedback everyone added faster more complete solution,0,NULL,NULL 3250,98451,1024063,NULL,NULL,NULL,0,NULL,NULL 3251,287702,1429803,Informed Student,NULL,NULL,0,NULL,NULL 3252,464026,387527,Famous Question Yearling Famous Question Nice Answer Famous Question Nice Question Good Question Nice Question Yearling Famous Question Yearling Self-Learner Caucus Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 3253,431339,1422087,NULL,NULL,NULL,0,NULL,NULL 3254,358040,1302090,Guru,NULL,NULL,0,NULL,NULL 3255,104873,780750,Necromancer,NULL,NULL,0,NULL,NULL 3256,31771,231442,NULL,NULL,NULL,0,NULL,NULL 3257,2503526,231442,NULL,NULL,NULL,0,NULL,NULL 3258,1662091,1232320,NULL,NULL,NULL,0,NULL,NULL 3259,107014,1232320,NULL,NULL,NULL,0,NULL,NULL 3260,36427,54848,Yearling Excavator Popular Question Favorite Question Yearling Announcer Announcer Necromancer Popular Question Good Question Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 3261,425084,440715,NULL,NULL,NULL,0,NULL,NULL 3262,1374257,632834,NULL,NULL,NULL,0,NULL,NULL 3263,39304,269903,Excavator Yearling Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3264,3466518,338171,NULL,NULL,NULL,0,NULL,NULL 3265,95952,786755,NULL,NULL,NULL,0,NULL,NULL 3266,587913,1357126,Popular Question,NULL,NULL,0,NULL,NULL 3267,47134,107464,Popular Question Editor,NULL,NULL,0,NULL,NULL 3268,91481,119321,NULL,NULL,NULL,0,NULL,NULL 3269,174717,593418,Yearling Popular Question Notable Question Good Question Popular Question Yearling Notable Question Nice Answer Popular Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 3270,691186,386021,Nice Answer Enlightened Popular Question Yearling Notable Question Self-Learner Notable Question Good Answer Caucus Yearling Excavator Census Nice Question Guru Custodian Custodian Custodian Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 3271,67317,422911,NULL,NULL,NULL,0,NULL,NULL 3272,768704,193539,Notable Question Notable Question Critic Necromancer Popular Question,NULL,NULL,0,NULL,NULL 3273,64309,144537,Notable Question Famous Question Good Question Yearling Favorite Question Yearling Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 3274,417108,1084335,NULL,NULL,NULL,0,NULL,NULL 3275,132261,958374,NULL,NULL,NULL,0,NULL,NULL 3276,151882,522965,Popular Question Revival Yearling Popular Question Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 3277,28380,323935,Critic Commentator Enthusiast Yearling Citizen Patrol Nice Answer Yearling Yearling Good Answer Revival Necromancer Yearling Nice Answer Scholar,NULL,NULL,0,NULL,NULL 3278,1429,213118,Notable Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3279,17175,874772,NULL,NULL,NULL,0,NULL,NULL 3280,554284,1263036,NULL,NULL,NULL,0,NULL,NULL 3281,37985,1289657,Yearling Enthusiast Yearling Nice Answer Enlightened Yearling Caucus Revival Good Answer Census javascript Guru Yearling Nice Answer Enlightened,NULL,pDon’t forget that JSX is just sugar for function calls So this ppre class lang html prettyprint override code lt div id wrapper gt lt span gt lt span gt lt span gt lt span gt lt span gt lt span gt lt div gt code prep is just sugar for this ppre class lang javascript prettyprint override codeReact createElement div id wrapper React createElement span null React createElement span null React createElement span null code prepIf you want whitespace between elements which appear on different lines you can either add some manually… ppre class lang html prettyprint override code lt div id wrapper gt lt span gt lt span gt lt span gt lt span gt lt span gt lt span gt lt div gt code prep…or open new elements on the same line with whitespace between them the JSX transpiler respects content between elements just not linebreaks which are adjacent to elements ppre class lang html prettyprint override code lt div id wrapper gt lt span gt lt span gt lt span gt lt span gt lt span gt lt span gt lt div gt code prep…both of which transpile to this ppre class lang javascript prettyprint override codeReact createElement div id wrapper React createElement span null React createElement span null React createElement span null code pre You can do this in JSX too div id wrapper span1 span span2 span span3 span div strongLet define object in Javascript strong According to the href https developer mozilla org en US docs Web JavaScript Glossary MDN docs every value is either an object or primitive pblockquote pprimitive primitive value pA data that is not an object and does not have any methods JavaScript has primitive datatypes string number boolean null undefined blockquotep strongWhat primitive strong pulli code3 code lili code abc code lili codetrue code lili codenull code lili codeundefined code li ulp strongWhat an object not primitive strong pulli codeObject prototype code lilieverything descended from codeObject prototype codeulli codeFunction prototype codeulli codeObject code lili codeFunction code lili codefunction code user defined functions li ul lili codeC prototype code the prototype property of user defined function this is emnot em codeC codes prototypeulli codenew code new ing user defined function li ul lili codeMath code lili codeArray prototype codeulliarrays li ul lili code code objects created using literal notation lili codenew Number code wrappers around primitives lili emmany other things em li ul lili codeObject create null code lilieverything descended from an codeObject create null code li ulp strongHow to check whether value is an object strong pp codeinstanceof code by itself won work because it misses two cases ppre code oops isObject Object prototype gt false oops isObject Object create null gt falsefunction isObject val return val instanceof Object code prep codetypeof object code won work because of false positives codenull code and false negatives functions ppre code oops isObject Object gt falsefunction isObject val return typeof val object code prep codeObject prototype toString call code won work because of false positives for all of the primitives ppre code gt Object prototype toString call object Number gt Object prototype toString call new Number object Number code prepSo use ppre codefunction isObject val if val null return false return typeof val function typeof val object code prehrp answer also seems to work ppre codefunction isObject obj return obj Object obj code prepbecause according to the href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object MDN docs pblockquote pThe Object constructor creates an object wrapper for the given value If the value is null or undefined it will create and return an empty object otherwise it will return an object of type that corresponds to the given value If the value is an object already it will return the value blockquotehrpA third way that seems to work not sure if it 100 is to use codeObject getPrototypeOf code which href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object getPrototypeOf throws an exception if its argument isn an object ppre code these examples throw exceptionsObject getPrototypeOf null Object getPrototypeOf undefined Object getPrototypeOf Object getPrototypeOf abc Object getPrototypeOf true these examples don throw exceptionsObject getPrototypeOf Object Object getPrototypeOf Object prototype Object getPrototypeOf Object create null Object getPrototypeOf Object getPrototypeOf code pre new Number is an object and not primitive so it shouldn be in the list of examples of false positives,0,NULL,NULL 3282,636574,904327,NULL,NULL,NULL,0,NULL,NULL 3283,340808,500584,Announcer Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Guru Good Answer Nice Answer Nice Answer Good Question Great Answer Good Answer Nice Answer Guru Caucus Yearling Guru Great Answer Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Good Answer Good Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Announcer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Good Answer Caucus Great Answer Nice Answer Enlightened Nice Answer Constituent Guru Good Answer Nice Answer Guru Great Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Guru Caucus Nice Answer Enlightened Constituent Nice Answer Good Answer Guru Good Answer Announcer Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Guru Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Good Answer Good Answer Great Answer Yearling Nice Answer Enlightened,NULL,pYou need to read the Python href https docs python org howto unicode html rel noreferrer Unicode HOWTO This error is the href https docs python org howto unicode html the unicode type rel noreferrer very first example ppBasically stop using codestr code to convert from unicode to encoded text bytes ppInstead properly use href http docs python org library stdtypes html str encode rel noreferrer code encode code to encode the string ppre codep agent info join agent contact agent telno encode utf strip code prepor work entirely in unicode not sure what you mean If you re getting this error you definitely have an object of type str string pYou need to read the Python href https docs python org howto unicode html rel noreferrer Unicode HOWTO This error is the href https docs python org howto unicode html the unicode type rel noreferrer very first example ppBasically stop using codestr code to convert from unicode to encoded text bytes ppInstead properly use href http docs python org library stdtypes html str encode rel noreferrer code encode code to encode the string ppre codep agent info join agent contact agent telno encode utf strip code prepor work entirely in unicode No it not It was just copied from the original code like the join and the variable names It something specific to his use case pYou need to read the Python href https docs python org howto unicode html rel noreferrer Unicode HOWTO This error is the href https docs python org howto unicode html the unicode type rel noreferrer very first example ppBasically stop using codestr code to convert from unicode to encoded text bytes ppInstead properly use href http docs python org library stdtypes html str encode rel noreferrer code encode code to encode the string ppre codep agent info join agent contact agent telno encode utf strip code prepor work entirely in unicode not sure understand your question Yes indicates unicode string The encode takes the decoded unicode string and encodes it into specific utf byte sequence So after encoding it as utf it just sequence of bytes not unicode any more as far as Python is concerned h2Use Metaclass h2pI would recommend strongMethod strong but you re better off using strongmetaclass strong than base class Here is sample implementation ppre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Logger object metaclass Singleton code prepOr in Python3 ppre codeclass Logger metaclass Singleton pass code prepIf you want to run code init code every time the class is called add ppre code else cls instances cls init args kwargs code prepto the codeif code statement in codeSingleton call code ppA few words about metaclasses metaclass is the strongclass of class strong that is class is an stronginstance of its metaclass strong You find the metaclass of an object in Python with codetype obj code Normal new style classes are of type codetype code codeLogger code in the code above will be of type codeclass your module Singleton code just as the only instance of codeLogger code will be of type codeclass your module Logger code When you call logger with codeLogger code Python first asks the metaclass of codeLogger code codeSingleton code what to do allowing instance creation to be pre empted This process is the same as Python asking class what to do by calling code getattr code when you reference one of it attributes by doing codemyclass attribute code ppA metaclass essentially decides strongwhat the definition of class means strong and how to implement that definition See for example href http code activestate com recipes 498149 rel noreferrer http code activestate com recipes 498149 which essentially recreates style codestruct codes in Python using metaclasses The thread href https stackoverflow com questions 392160 what are your concrete use cases for metaclasses in python What are your concrete use cases for metaclasses in Python also provides some examples they generally seem to be related to declarative programming especially as used in ORMs ppIn this situation if you use your strongMethod strong and subclass defines code new code method it will be strongexecuted every time strong you call codeSubClassOfSingleton code because it is responsible for calling the method that returns the stored instance With metaclass it will strongonly be called once strong when the only instance is created You want to strongcustomize what it means to call the class strong which is decided by it type ppIn general it strongmakes sense strong to use metaclass to implement singleton singleton is special because is strongcreated only once strong and metaclass is the way you customize the strongcreation of class strong Using metaclass gives you strongmore control strong in case you need to customize the singleton class definitions in other ways ppYour singletons strongwon need multiple inheritance strong because the metaclass is not base class but for strongsubclasses of the created class strong that use multiple inheritance you need to make sure the singleton class is the strongfirst leftmost strong one with metaclass that redefines code call code This is very unlikely to be an issue The instance dict is strongnot in the instance namespace strong so it won accidentally overwrite it ppYou will also hear that the singleton pattern violates the Single Responsibility Principle each class should do strongonly one thing strong That way you don have to worry about messing up one thing the code does if you need to change another because they are separate and encapsulated The metaclass implementation strongpasses this test strong The metaclass is responsible for strongenforcing the pattern strong and the created class and subclasses need not be strongaware that they are singletons strong strongMethod strong fails this test as you noted with MyClass itself is function not class so you cannot call class methods from it ph1Python and Compatible Version h1pWriting something that works in both Python2 and requires using slightly more complicated scheme Since metaclasses are usually subclasses of type codetype code it possible to use one to dynamically create an intermediary base class at run time with it as its metaclass and then use emthat em as the baseclass of the public codeSingleton code base class It harder to explain than to do as illustrated next ppre code works in Python amp 3class Singleton type metaclass that creates Singleton base class when called instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Singleton Singleton SingletonMeta object passclass Logger Singleton pass code prepAn ironic aspect of this approach is that it using subclassing to implement metaclass One possible advantage is that unlike with pure metaclass codeisinstance inst Singleton code will return codeTrue code ph2Corrections h2pOn another topic you ve probably already noticed this but the base class implementation in your original post is wrong code instances code needs to be strongreferenced on the class strong you need to use codesuper code or you re strongrecursing strong and code new code is actually static method that you have to strongpass the class to strong not class method as the actual class stronghasn been created strong yet when it is called All of these things will be true for metaclass implementation as well ppre codeclass Singleton object instances def new class args kwargs if class not in class instances class instances class super Singleton class new class args kwargs return class instances class class MyClass Singleton passc MyClass code preh2Decorator Returning Class h2pI originally was writing comment but it was too long so ll add this here strongMethod strong is better than the other decorator version but it more code than needed for singleton and it not as clear what it does ppThe main problems stem from the class being it own base class First isn it weird to have class be subclass of nearly identical class with the same name that exists only in its code class code attribute This also means that you can define strongany methods that call the method of the same name on their base class strong with codesuper code because they will recurse This means your class can customize code new code and can derive from any classes that need code init code called on them ph2When to use the singleton pattern h2pYour use case is strongone of the better examples strong of wanting to use singleton You say in one of the comments To me logging has always seemed natural candidate for Singletons You re strongabsolutely right strong ppWhen people say singletons are bad the most common reason is they are strongimplicit shared state strong While with global variables and top level module imports are strongexplicit strong shared state other objects that are passed around are generally instantiated This is good point strongwith two exceptions strong ppThe first and one that gets mentioned in various places is when the singletons are strongconstant strong Use of global constants especially enums is widely accepted and considered sane because no matter what strongnone of the users can mess them up for any other user strong This is equally true for constant singleton ppThe second exception which get mentioned less is the opposite when the singleton is strongonly data sink strong not data source directly or indirectly This is why loggers feel like natural use for singletons As the various users are strongnot changing the loggers strong in ways other users will care about there is strongnot really shared state strong This negates the primary argument against the singleton pattern and makes them reasonable choice because of their strongease of use strong for the task ppHere is quote from href http googletesting blogspot com 2008 08 root cause of singletons html rel noreferrer http googletesting blogspot com 2008 08 root cause of singletons html pblockquote pNow there is one kind of Singleton which is OK That is singleton where all of the reachable objects are immutable If all objects are immutable than Singleton has no global state as everything is constant But it is so easy to turn this kind of singleton into mutable one it is very slippery slope Therefore am against these Singletons too not because they are bad but because it is very easy for them to go bad As side note Java enumeration are just these kind of singletons As long as you don put state into your enumeration you are OK so please don pThe other kind of Singletons which are semi acceptable are those which don effect the execution of your code They have no side effects Logging is perfect example It is loaded with Singletons and global state It is acceptable as in it will not hurt you because your application does not behave any different whether or not given logger is enabled The information here flows one way From your application into the logger Even thought loggers are global state since no information flows from loggers into your application loggers are acceptable You should still inject your logger if you want your test to assert that something is getting logged but in general Loggers are not harmful despite being full of state blockquote not totally sure understand your question feel free to clarify In my example what saying is you can accidentally do self instances and override it in an instance of Logger You have to do Logger instances or type self instances or similar So if other classes in multiple inheritance also use the name instances you re still generally going to be save from accidentally overriding it Also as mentioned in comment if you double the underscore Python will further hide the variable and make it even safer h2Use Metaclass h2pI would recommend strongMethod strong but you re better off using strongmetaclass strong than base class Here is sample implementation ppre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Logger object metaclass Singleton code prepOr in Python3 ppre codeclass Logger metaclass Singleton pass code prepIf you want to run code init code every time the class is called add ppre code else cls instances cls init args kwargs code prepto the codeif code statement in codeSingleton call code ppA few words about metaclasses metaclass is the strongclass of class strong that is class is an stronginstance of its metaclass strong You find the metaclass of an object in Python with codetype obj code Normal new style classes are of type codetype code codeLogger code in the code above will be of type codeclass your module Singleton code just as the only instance of codeLogger code will be of type codeclass your module Logger code When you call logger with codeLogger code Python first asks the metaclass of codeLogger code codeSingleton code what to do allowing instance creation to be pre empted This process is the same as Python asking class what to do by calling code getattr code when you reference one of it attributes by doing codemyclass attribute code ppA metaclass essentially decides strongwhat the definition of class means strong and how to implement that definition See for example href http code activestate com recipes 498149 rel noreferrer http code activestate com recipes 498149 which essentially recreates style codestruct codes in Python using metaclasses The thread href https stackoverflow com questions 392160 what are your concrete use cases for metaclasses in python What are your concrete use cases for metaclasses in Python also provides some examples they generally seem to be related to declarative programming especially as used in ORMs ppIn this situation if you use your strongMethod strong and subclass defines code new code method it will be strongexecuted every time strong you call codeSubClassOfSingleton code because it is responsible for calling the method that returns the stored instance With metaclass it will strongonly be called once strong when the only instance is created You want to strongcustomize what it means to call the class strong which is decided by it type ppIn general it strongmakes sense strong to use metaclass to implement singleton singleton is special because is strongcreated only once strong and metaclass is the way you customize the strongcreation of class strong Using metaclass gives you strongmore control strong in case you need to customize the singleton class definitions in other ways ppYour singletons strongwon need multiple inheritance strong because the metaclass is not base class but for strongsubclasses of the created class strong that use multiple inheritance you need to make sure the singleton class is the strongfirst leftmost strong one with metaclass that redefines code call code This is very unlikely to be an issue The instance dict is strongnot in the instance namespace strong so it won accidentally overwrite it ppYou will also hear that the singleton pattern violates the Single Responsibility Principle each class should do strongonly one thing strong That way you don have to worry about messing up one thing the code does if you need to change another because they are separate and encapsulated The metaclass implementation strongpasses this test strong The metaclass is responsible for strongenforcing the pattern strong and the created class and subclasses need not be strongaware that they are singletons strong strongMethod strong fails this test as you noted with MyClass itself is function not class so you cannot call class methods from it ph1Python and Compatible Version h1pWriting something that works in both Python2 and requires using slightly more complicated scheme Since metaclasses are usually subclasses of type codetype code it possible to use one to dynamically create an intermediary base class at run time with it as its metaclass and then use emthat em as the baseclass of the public codeSingleton code base class It harder to explain than to do as illustrated next ppre code works in Python amp 3class Singleton type metaclass that creates Singleton base class when called instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Singleton Singleton SingletonMeta object passclass Logger Singleton pass code prepAn ironic aspect of this approach is that it using subclassing to implement metaclass One possible advantage is that unlike with pure metaclass codeisinstance inst Singleton code will return codeTrue code ph2Corrections h2pOn another topic you ve probably already noticed this but the base class implementation in your original post is wrong code instances code needs to be strongreferenced on the class strong you need to use codesuper code or you re strongrecursing strong and code new code is actually static method that you have to strongpass the class to strong not class method as the actual class stronghasn been created strong yet when it is called All of these things will be true for metaclass implementation as well ppre codeclass Singleton object instances def new class args kwargs if class not in class instances class instances class super Singleton class new class args kwargs return class instances class class MyClass Singleton passc MyClass code preh2Decorator Returning Class h2pI originally was writing comment but it was too long so ll add this here strongMethod strong is better than the other decorator version but it more code than needed for singleton and it not as clear what it does ppThe main problems stem from the class being it own base class First isn it weird to have class be subclass of nearly identical class with the same name that exists only in its code class code attribute This also means that you can define strongany methods that call the method of the same name on their base class strong with codesuper code because they will recurse This means your class can customize code new code and can derive from any classes that need code init code called on them ph2When to use the singleton pattern h2pYour use case is strongone of the better examples strong of wanting to use singleton You say in one of the comments To me logging has always seemed natural candidate for Singletons You re strongabsolutely right strong ppWhen people say singletons are bad the most common reason is they are strongimplicit shared state strong While with global variables and top level module imports are strongexplicit strong shared state other objects that are passed around are generally instantiated This is good point strongwith two exceptions strong ppThe first and one that gets mentioned in various places is when the singletons are strongconstant strong Use of global constants especially enums is widely accepted and considered sane because no matter what strongnone of the users can mess them up for any other user strong This is equally true for constant singleton ppThe second exception which get mentioned less is the opposite when the singleton is strongonly data sink strong not data source directly or indirectly This is why loggers feel like natural use for singletons As the various users are strongnot changing the loggers strong in ways other users will care about there is strongnot really shared state strong This negates the primary argument against the singleton pattern and makes them reasonable choice because of their strongease of use strong for the task ppHere is quote from href http googletesting blogspot com 2008 08 root cause of singletons html rel noreferrer http googletesting blogspot com 2008 08 root cause of singletons html pblockquote pNow there is one kind of Singleton which is OK That is singleton where all of the reachable objects are immutable If all objects are immutable than Singleton has no global state as everything is constant But it is so easy to turn this kind of singleton into mutable one it is very slippery slope Therefore am against these Singletons too not because they are bad but because it is very easy for them to go bad As side note Java enumeration are just these kind of singletons As long as you don put state into your enumeration you are OK so please don pThe other kind of Singletons which are semi acceptable are those which don effect the execution of your code They have no side effects Logging is perfect example It is loaded with Singletons and global state It is acceptable as in it will not hurt you because your application does not behave any different whether or not given logger is enabled The information here flows one way From your application into the logger Even thought loggers are global state since no information flows from loggers into your application loggers are acceptable You should still inject your logger if you want your test to assert that something is getting logged but in general Loggers are not harmful despite being full of state blockquote Also was this post linked from blog post of something It seems like it been getting lot of votes recently before that totally forgot about it h2Use Metaclass h2pI would recommend strongMethod strong but you re better off using strongmetaclass strong than base class Here is sample implementation ppre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Logger object metaclass Singleton code prepOr in Python3 ppre codeclass Logger metaclass Singleton pass code prepIf you want to run code init code every time the class is called add ppre code else cls instances cls init args kwargs code prepto the codeif code statement in codeSingleton call code ppA few words about metaclasses metaclass is the strongclass of class strong that is class is an stronginstance of its metaclass strong You find the metaclass of an object in Python with codetype obj code Normal new style classes are of type codetype code codeLogger code in the code above will be of type codeclass your module Singleton code just as the only instance of codeLogger code will be of type codeclass your module Logger code When you call logger with codeLogger code Python first asks the metaclass of codeLogger code codeSingleton code what to do allowing instance creation to be pre empted This process is the same as Python asking class what to do by calling code getattr code when you reference one of it attributes by doing codemyclass attribute code ppA metaclass essentially decides strongwhat the definition of class means strong and how to implement that definition See for example href http code activestate com recipes 498149 rel noreferrer http code activestate com recipes 498149 which essentially recreates style codestruct codes in Python using metaclasses The thread href https stackoverflow com questions 392160 what are your concrete use cases for metaclasses in python What are your concrete use cases for metaclasses in Python also provides some examples they generally seem to be related to declarative programming especially as used in ORMs ppIn this situation if you use your strongMethod strong and subclass defines code new code method it will be strongexecuted every time strong you call codeSubClassOfSingleton code because it is responsible for calling the method that returns the stored instance With metaclass it will strongonly be called once strong when the only instance is created You want to strongcustomize what it means to call the class strong which is decided by it type ppIn general it strongmakes sense strong to use metaclass to implement singleton singleton is special because is strongcreated only once strong and metaclass is the way you customize the strongcreation of class strong Using metaclass gives you strongmore control strong in case you need to customize the singleton class definitions in other ways ppYour singletons strongwon need multiple inheritance strong because the metaclass is not base class but for strongsubclasses of the created class strong that use multiple inheritance you need to make sure the singleton class is the strongfirst leftmost strong one with metaclass that redefines code call code This is very unlikely to be an issue The instance dict is strongnot in the instance namespace strong so it won accidentally overwrite it ppYou will also hear that the singleton pattern violates the Single Responsibility Principle each class should do strongonly one thing strong That way you don have to worry about messing up one thing the code does if you need to change another because they are separate and encapsulated The metaclass implementation strongpasses this test strong The metaclass is responsible for strongenforcing the pattern strong and the created class and subclasses need not be strongaware that they are singletons strong strongMethod strong fails this test as you noted with MyClass itself is function not class so you cannot call class methods from it ph1Python and Compatible Version h1pWriting something that works in both Python2 and requires using slightly more complicated scheme Since metaclasses are usually subclasses of type codetype code it possible to use one to dynamically create an intermediary base class at run time with it as its metaclass and then use emthat em as the baseclass of the public codeSingleton code base class It harder to explain than to do as illustrated next ppre code works in Python amp 3class Singleton type metaclass that creates Singleton base class when called instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls class Singleton Singleton SingletonMeta object passclass Logger Singleton pass code prepAn ironic aspect of this approach is that it using subclassing to implement metaclass One possible advantage is that unlike with pure metaclass codeisinstance inst Singleton code will return codeTrue code ph2Corrections h2pOn another topic you ve probably already noticed this but the base class implementation in your original post is wrong code instances code needs to be strongreferenced on the class strong you need to use codesuper code or you re strongrecursing strong and code new code is actually static method that you have to strongpass the class to strong not class method as the actual class stronghasn been created strong yet when it is called All of these things will be true for metaclass implementation as well ppre codeclass Singleton object instances def new class args kwargs if class not in class instances class instances class super Singleton class new class args kwargs return class instances class class MyClass Singleton passc MyClass code preh2Decorator Returning Class h2pI originally was writing comment but it was too long so ll add this here strongMethod strong is better than the other decorator version but it more code than needed for singleton and it not as clear what it does ppThe main problems stem from the class being it own base class First isn it weird to have class be subclass of nearly identical class with the same name that exists only in its code class code attribute This also means that you can define strongany methods that call the method of the same name on their base class strong with codesuper code because they will recurse This means your class can customize code new code and can derive from any classes that need code init code called on them ph2When to use the singleton pattern h2pYour use case is strongone of the better examples strong of wanting to use singleton You say in one of the comments To me logging has always seemed natural candidate for Singletons You re strongabsolutely right strong ppWhen people say singletons are bad the most common reason is they are strongimplicit shared state strong While with global variables and top level module imports are strongexplicit strong shared state other objects that are passed around are generally instantiated This is good point strongwith two exceptions strong ppThe first and one that gets mentioned in various places is when the singletons are strongconstant strong Use of global constants especially enums is widely accepted and considered sane because no matter what strongnone of the users can mess them up for any other user strong This is equally true for constant singleton ppThe second exception which get mentioned less is the opposite when the singleton is strongonly data sink strong not data source directly or indirectly This is why loggers feel like natural use for singletons As the various users are strongnot changing the loggers strong in ways other users will care about there is strongnot really shared state strong This negates the primary argument against the singleton pattern and makes them reasonable choice because of their strongease of use strong for the task ppHere is quote from href http googletesting blogspot com 2008 08 root cause of singletons html rel noreferrer http googletesting blogspot com 2008 08 root cause of singletons html pblockquote pNow there is one kind of Singleton which is OK That is singleton where all of the reachable objects are immutable If all objects are immutable than Singleton has no global state as everything is constant But it is so easy to turn this kind of singleton into mutable one it is very slippery slope Therefore am against these Singletons too not because they are bad but because it is very easy for them to go bad As side note Java enumeration are just these kind of singletons As long as you don put state into your enumeration you are OK so please don pThe other kind of Singletons which are semi acceptable are those which don effect the execution of your code They have no side effects Logging is perfect example It is loaded with Singletons and global state It is acceptable as in it will not hurt you because your application does not behave any different whether or not given logger is enabled The information here flows one way From your application into the logger Even thought loggers are global state since no information flows from loggers into your application loggers are acceptable You should still inject your logger if you want your test to assert that something is getting logged but in general Loggers are not harmful despite being full of state blockquote It should in Python pre class lang py prettyprint override codefrom functools import reducedef factors return set reduce list add for in range int if code prepThis will return all of the factors very quickly of number coden code ppWhy square root as the upper limit pp codesqrt sqrt code So if the two factors are the same they re both the square root If you make one factor bigger you have to make the other factor smaller This means that one of the two will always be less than or equal to codesqrt code so you only have to search up to that point to find one of the two matching factors You can then use codex fac1 code to get codefac2 code ppThe codereduce list add code is taking the little lists of code fac1 fac2 code and joining them together in one long list ppThe code for in range int sqrt if code returns pair of factors if the remainder when you divide coden code by the smaller one is zero it doesn need to check the larger one too it just gets that by dividing coden code by the smaller one ppThe codeset code on the outside is getting rid of duplicates which only happens for perfect squares For coden code this will return code2 code twice so codeset code gets rid of one of them arrivillaga steveha answer below https stackoverflow com 6909532 500584 gives some nice versions that don have list creation overhead pre codenext for in test list if value value None code prepThis gets the first item from the list that matches the condition and returns codeNone code if no item matches It my preferred single expression form ppHowever ppre codefor in test list if value value print found it break code prepThe naive loop break version is perfectly Pythonic it concise clear and efficient To make it match the behavior of the one liner ppre codefor in test list if value value print found it breakelse None code prepThis will assign codeNone code to codex code if you don codebreak code out of the loop The else clause is meant to be on the for loop not the if Rejected Edit pThe MRO is basically depth first left to right See href https stackoverflow com questions 1848474 method resolution order mro in new style python classes Method Resolution Order MRO in new style Python classes for some more info ppYou can look at the href http docs python org reference datamodel,,, "html invoking descriptors rel noreferrer code mro code attribute of the class to check but codeFooMixin code should be first if you want to do check first ppre codeclass UltimateBase object def dispatch self args kwargs print base dispatch class FooMixin object def dispatch self args kwargs print perform check return super FooMixin self dispatch args kwargs class BarMixin object def dispatch self args kwargs print perform check return super BarMixin self dispatch args kwargs class FooBar FooMixin BarMixin UltimateBase passFooBar dispatch code prepPrints ppre codeperform check Aperform check Bbase dispatch code prep codeView code has to be last so that it catches any attribute lookups that weren on any mixins without hiding any methods on those mixins not sure understand that part of your question what it why is it added at all or why is it added last That not quite right This will work even if the method is one also defined by object try it yourself See the linked answer for more information""",announcer good answer nice answer great answer good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten great answer nice answer good answer nice answer good answer nice answer enlighten guru good answer good answer nice answer good answer nice answer enlighten good answer nice answer great answer guru good answer nice answer nice answer good question great answer good answer nice answer guru caucus yearle guru great answer nice answer guru nice answer enlighten good answer nice answer enlighten nice answer enlighten nice answer enlighten guru guru nice answer good answer good answer enlighten nice answer enlighten good answer nice answer announcer good answer nice answer enlighten guru nice answer enlighten guru good answer caucus great answer nice answer enlighten nice answer constituent guru good answer nice answer guru great answer yearle nice answer enlighten good answer nice answer enlighten nice answer great answer good answer guru caucus nice answer enlighten constituent nice answer good answer guru good answer announcer good answer good answer good answer nice answer enlighten guru guru nice answer nice answer good answer guru nice answer enlighten good answer nice answer good answer guru good answer good answer great answer yearle nice answer enlighten pyou read python href https docs python org howto unicode html noreferrer unicode howto error href https docs python org howto unicode html unicode type noreferrer ppbasically stop codestr code convert unicode encode text byte ppinstead properly href http docs python org library stdtype html str encode noreferrer code encode code encode string codep agent info join agent contact agent telno encode utf strip code prepor work unicode error object type str string pyou read python href https docs python org howto unicode html noreferrer unicode howto error href https docs python org howto unicode html unicode type noreferrer ppbasically stop codestr code convert unicode encode text byte ppinstead properly href http docs python org library stdtype html str encode noreferrer code encode code encode string codep agent info join agent contact agent telno encode utf strip code prepor work unicode copy original code join variable name specific case pyou read python href https docs python org howto unicode html noreferrer unicode howto error href https docs python org howto unicode html unicode type noreferrer ppbasically stop codestr code convert unicode encode text byte ppinstead properly href http docs python org library stdtype html str encode noreferrer code encode code encode string codep agent info join agent contact agent telno encode utf strip code prepor work unicode understand question unicode string encode take decode unicode string encode specific utf byte sequence encode utf sequence byte unicode python concern metaclass recommend strongmethod strong strongmetaclass strong base class sample implementation codeclass singleton type instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class logger object metaclass singleton code prepor codeclass logger metaclass singleton pass code prepif run code init code time class call add code cls instance cls init arg kwarg code prepto codeif code statement codesingleton code ppa word metaclasse metaclass strongclass class strong class stronginstance metaclass strong metaclass object python codetype code normal style class type codetype code codelogger code code type codeclass module singleton code instance codelogger code type codeclass module logger code logger codelogger code python ask metaclass codelogger code codesingleton code allow instance creation empte process python class call code getattr code reference attribute codemyclass attribute code ppa metaclass essentially decide strongwhat definition class mean strong implement definition href http code activestate recipe noreferrer http code activestate recipe essentially recreate style codestruct code python metaclasse thread href https stackoverflow question concrete case metaclasse python concrete case metaclasse python example generally relate declarative programming orm ppin situation strongmethod strong subclass define code code method strongexecute time strong code responsible call method return store instance metaclass strongonly call strong instance create strongcustomize mean class strong decide type ppin general strongmake sense strong metaclass implement singleton singleton special strongcreate strong metaclass customize strongcreation class strong metaclass strongmore control strong case customize singleton class definition way ppyour singleton strongwon multiple inheritance strong metaclass base class create class strong multiple inheritance make singleton class strongfirst leftmost strong metaclass redefine code code issue instance dict strongnot instance namespace strong accidentally overwrite ppyou hear singleton pattern violate single responsibility principle class strongonly thing strong worry mess thing code change separate encapsulate metaclass implementation strongpasse test strong metaclass responsible strongenforce pattern strong create class subclass strongaware singleton strong strongmethod strong fail test note myclass function class class method compatible version work require slightly complicate scheme metaclasse subclass type codetype code dynamically create intermediary base class run time metaclass -PRON- baseclass public codesingleton code base class harder explain illustrate code work python amp singleton type metaclass create singleton base class call instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class singleton singleton singletonmeta object passclass logger singleton pass code prepan ironic aspect approach subclasse implement metaclass advantage pure metaclass codeisinstance inst singleton code return codetrue code topic notice base class implementation original post wrong code instance code class strong codesuper code strongrecurse strong code code static method strongpass class strong class method actual class stronghasn create strong call thing true metaclass implementation codeclass singleton object instance def class arg kwarg class class instance class instance class super singleton class class arg kwarg return class instance class class myclass singleton passc myclass code return class originally write comment long add strongmethod strong decorator version code need singleton clear ppthe main problem stem class base class weird class subclass identical class exist code class code attribute mean define strongany method method base class strong codesuper code recurse mean class customize code code derive class code init code call singleton pattern case strongone example strong want singleton comment log natural candidate singleton strong ppwhen people singleton bad common reason strongimplicit share state strong global variable level module import strongexplicit strong share state object pass generally instantiate good point strongwith exception strong ppthe mention place singleton strongconstant strong global constant enum widely accept consider sane matter strongnone user mess user strong equally true constant singleton ppthe exception mention opposite singleton strongonly datum sink strong datum source directly indirectly logger feel natural singleton user strongnot change logger strong way user care strongnot share state strong negate primary argument singleton pattern make reasonable choice strongease strong task pphere quote href http googleteste blogspot root singleton html noreferrer http googleteste blogspot root singleton html pblockquote pnow kind singleton singleton reachable object immutable object immutable singleton global state constant easy turn kind singleton mutable slippery slope singleton bad easy bad note java enumeration kind singleton long state enumeration pthe kind singleton semi acceptable effect execution code effect log perfect load singleton global state acceptable hurt application behave logger enable information flow application logger think logger global state information flow logger application logger acceptable inject logger test assert log general logger harmful state blockquote totally understand question feel free clarify accidentally instance override instance logger logger instance type instance similar class multiple inheritance instance generally save accidentally override mention comment double underscore python hide variable make safe metaclass recommend strongmethod strong strongmetaclass strong base class sample implementation codeclass singleton type instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class logger object metaclass singleton code prepor codeclass logger metaclass singleton pass code prepif run code init code time class call add code cls instance cls init arg kwarg code prepto codeif code statement codesingleton code ppa word metaclasse metaclass strongclass class strong class stronginstance metaclass strong metaclass object python codetype code normal style class type codetype code codelogger code code type codeclass module singleton code instance codelogger code type codeclass module logger code logger codelogger code python ask metaclass codelogger code codesingleton code allow instance creation empte process python class call code getattr code reference attribute codemyclass attribute code ppa metaclass essentially decide strongwhat definition class mean strong implement definition href http code activestate recipe noreferrer http code activestate recipe essentially recreate style codestruct code python metaclasse thread href https stackoverflow question concrete case metaclasse python concrete case metaclasse python example generally relate declarative programming orm ppin situation strongmethod strong subclass define code code method strongexecute time strong code responsible call method return store instance metaclass strongonly call strong instance create strongcustomize mean class strong decide type ppin general strongmake sense strong metaclass implement singleton singleton special strongcreate strong metaclass customize strongcreation class strong metaclass strongmore control strong case customize singleton class definition way ppyour singleton strongwon multiple inheritance strong metaclass base class create class strong multiple inheritance make singleton class strongfirst leftmost strong metaclass redefine code code issue instance dict strongnot instance namespace strong accidentally overwrite ppyou hear singleton pattern violate single responsibility principle class strongonly thing strong worry mess thing code change separate encapsulate metaclass implementation strongpasse test strong metaclass responsible strongenforce pattern strong create class subclass strongaware singleton strong strongmethod strong fail test note myclass function class class method compatible version work require slightly complicate scheme metaclasse subclass type codetype code dynamically create intermediary base class run time metaclass -PRON- baseclass public codesingleton code base class harder explain illustrate code work python amp singleton type metaclass create singleton base class call instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class singleton singleton singletonmeta object passclass logger singleton pass code prepan ironic aspect approach subclasse implement metaclass advantage pure metaclass codeisinstance inst singleton code return codetrue code topic notice base class implementation original post wrong code instance code class strong codesuper code strongrecurse strong code code static method strongpass class strong class method actual class stronghasn create strong call thing true metaclass implementation codeclass singleton object instance def class arg kwarg class class instance class instance class super singleton class class arg kwarg return class instance class class myclass singleton passc myclass code return class originally write comment long add strongmethod strong decorator version code need singleton clear ppthe main problem stem class base class weird class subclass identical class exist code class code attribute mean define strongany method method base class strong codesuper code recurse mean class customize code code derive class code init code call singleton pattern case strongone example strong want singleton comment log natural candidate singleton strong ppwhen people singleton bad common reason strongimplicit share state strong global variable level module import strongexplicit strong share state object pass generally instantiate good point strongwith exception strong ppthe mention place singleton strongconstant strong global constant enum widely accept consider sane matter strongnone user mess user strong equally true constant singleton ppthe exception mention opposite singleton strongonly datum sink strong datum source directly indirectly logger feel natural singleton user strongnot change logger strong way user care strongnot share state strong negate primary argument singleton pattern make reasonable choice strongease strong task pphere quote href http googleteste blogspot root singleton html noreferrer http googleteste blogspot root singleton html pblockquote pnow kind singleton singleton reachable object immutable object immutable singleton global state constant easy turn kind singleton mutable slippery slope singleton bad easy bad note java enumeration kind singleton long state enumeration pthe kind singleton semi acceptable effect execution code effect log perfect load singleton global state acceptable hurt application behave logger enable information flow application logger think logger global state information flow logger application logger acceptable inject logger test assert log general logger harmful state blockquote post link blog post lot vote recently totally forget metaclass recommend strongmethod strong strongmetaclass strong base class sample implementation codeclass singleton type instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class logger object metaclass singleton code prepor codeclass logger metaclass singleton pass code prepif run code init code time class call add code cls instance cls init arg kwarg code prepto codeif code statement codesingleton code ppa word metaclasse metaclass strongclass class strong class stronginstance metaclass strong metaclass object python codetype code normal style class type codetype code codelogger code code type codeclass module singleton code instance codelogger code type codeclass module logger code logger codelogger code python ask metaclass codelogger code codesingleton code allow instance creation empte process python class call code getattr code reference attribute codemyclass attribute code ppa metaclass essentially decide strongwhat definition class mean strong implement definition href http code activestate recipe noreferrer http code activestate recipe essentially recreate style codestruct code python metaclasse thread href https stackoverflow question concrete case metaclasse python concrete case metaclasse python example generally relate declarative programming orm ppin situation strongmethod strong subclass define code code method strongexecute time strong code responsible call method return store instance metaclass strongonly call strong instance create strongcustomize mean class strong decide type ppin general strongmake sense strong metaclass implement singleton singleton special strongcreate strong metaclass customize strongcreation class strong metaclass strongmore control strong case customize singleton class definition way ppyour singleton strongwon multiple inheritance strong metaclass base class create class strong multiple inheritance make singleton class strongfirst leftmost strong metaclass redefine code code issue instance dict strongnot instance namespace strong accidentally overwrite ppyou hear singleton pattern violate single responsibility principle class strongonly thing strong worry mess thing code change separate encapsulate metaclass implementation strongpasse test strong metaclass responsible strongenforce pattern strong create class subclass strongaware singleton strong strongmethod strong fail test note myclass function class class method compatible version work require slightly complicate scheme metaclasse subclass type codetype code dynamically create intermediary base class run time metaclass -PRON- baseclass public codesingleton code base class harder explain illustrate code work python amp singleton type metaclass create singleton base class call instance def cls arg kwarg cls cls instance cls instance cls super singleton cls arg kwarg return cls instance cls class singleton singleton singletonmeta object passclass logger singleton pass code prepan ironic aspect approach subclasse implement metaclass advantage pure metaclass codeisinstance inst singleton code return codetrue code topic notice base class implementation original post wrong code instance code class strong codesuper code strongrecurse strong code code static method strongpass class strong class method actual class stronghasn create strong call thing true metaclass implementation codeclass singleton object instance def class arg kwarg class class instance class instance class super singleton class class arg kwarg return class instance class class myclass singleton passc myclass code return class originally write comment long add strongmethod strong decorator version code need singleton clear ppthe main problem stem class base class weird class subclass identical class exist code class code attribute mean define strongany method method base class strong codesuper code recurse mean class customize code code derive class code init code call singleton pattern case strongone example strong want singleton comment log natural candidate singleton strong ppwhen people singleton bad common reason strongimplicit share state strong global variable level module import strongexplicit strong share state object pass generally instantiate good point strongwith exception strong ppthe mention place singleton strongconstant strong global constant enum widely accept consider sane matter strongnone user mess user strong equally true constant singleton ppthe exception mention opposite singleton strongonly datum sink strong datum source directly indirectly logger feel natural singleton user strongnot change logger strong way user care strongnot share state strong negate primary argument singleton pattern make reasonable choice strongease strong task pphere quote href http googleteste blogspot root singleton html noreferrer http googleteste blogspot root singleton html pblockquote pnow kind singleton singleton reachable object immutable object immutable singleton global state constant easy turn kind singleton mutable slippery slope singleton bad easy bad note java enumeration kind singleton long state enumeration pthe kind singleton semi acceptable effect execution code effect log perfect load singleton global state acceptable hurt application behave logger enable information flow application logger think logger global state information flow logger application logger acceptable inject logger test assert log general logger harmful state blockquote python class lang py prettyprint override codefrom functool import reducedef factor return set reduce list add range int code prepthis return factor quickly number coden code ppwhy square root upper limit codesqrt sqrt code factor square root make factor big make factor small mean equal codesqrt code search point match factor codex code code ppthe codereduce list add code take list code code join long list ppthe code range int sqrt code return pair factor remainder divide coden code small check large divide coden code small ppthe codeset code rid duplicate perfect square coden code return code codeset code rid arrivillaga steveha answer https stackoverflow nice version list creation overhead codenext test list code prepthis item list match condition return codenone code item match prefer single expression form pphowever codefor test list print break code prepthe naive loop break version perfectly pythonic concise clear efficient make match behavior liner codefor test list print breakelse code prepthis assign codenone code codex code codebreak code loop clause mean loop reject edit pthe mro basically depth leave href https stackoverflow question method resolution order mro style python class method resolution order mro style python class info ppyou href http docs python org reference datamodel html invoking descriptor noreferrer code mro code attribute class check codefoomixin code check codeclass ultimatebase object def dispatch arg kwarg print base dispatch class foomixin object def dispatch arg kwarg print perform check return super foomixin dispatch arg kwarg class barmixin object def dispatch arg kwarg print perform check return super barmixin dispatch arg kwarg class foobar foomixin barmixin ultimatebase passfoobar dispatch code prepprint codeperform check aperform check bbase dispatch code prep codeview code catch attribute lookup mixin hiding method mixin understand question add add work method define object link answer information,0,NULL,NULL,,,, 3284,104776,1281949,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3285,156326,467995,NULL,NULL,NULL,0,NULL,NULL 3286,7145220,717630,Nice Answer Good Answer Nice Answer Yearling Unsung Hero Necromancer Necromancer Necromancer Good Answer Nice Answer Nice Answer Necromancer Caucus Constituent Nice Answer Necromancer Good Answer Popular Question Revival Nice Answer Nice Answer Yearling Necromancer Nice Answer Necromancer Necromancer Caucus Constituent Good Answer Nice Answer Guru Necromancer Custodian Revival Good Answer Necromancer Caucus Constituent Good Answer Yearling Guru Revival Necromancer Necromancer Necromancer Nice Answer Necromancer Nice Answer Enlightened Notable Question Cleanup Necromancer Necromancer,NULL,NULL,0,NULL,NULL 3287,48101,624,Informed,NULL,NULL,0,NULL,NULL 3288,475336,1122421,NULL,NULL,NULL,0,NULL,NULL 3289,3038054,559819,NULL,NULL,NULL,0,NULL,NULL 3290,580787,199924,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3291,107992,620444,Yearling Revival Pundit Good Answer ms-access Necromancer Caucus Yearling Caucus Constituent css html Nice Answer Documentation User Notable Question Nice Answer Enlightened Tag Editor javascript Census Yearling Caucus Constituent excel Tumbleweed,NULL,NULL,0,NULL,NULL 3292,621650,443058,NULL,NULL,NULL,0,NULL,NULL 3293,926616,264846,Revival,NULL,NULL,0,NULL,NULL 3294,20811,254762,Nice Answer Caucus Yearling Good Answer Critic,NULL,NULL,0,NULL,NULL 3295,735136,414371,NULL,NULL,NULL,0,NULL,NULL 3296,534036,797926,Good Answer akka Yearling Good Answer Popular Question Popular Question Great Answer Nice Question Nice Answer Enlightened Nice Question Notable Question Nice Answer Nice Answer Yearling Caucus Nice Answer Famous Question Nice Answer Nice Answer Yearling Great Answer Guru,NULL,NULL,0,NULL,NULL 3297,1358638,1238944,Yearling Documentation Pioneer Yearling Yearling Popular Question Popular Question Caucus Constituent Nice Answer Custodian Revival Yearling Good Answer Guru Caucus java Documentation User Custodian Custodian Great Answer Census Announcer Yearling Caucus Constituent Custodian Custodian Nice Answer Necromancer,NULL,NULL,1,NULL,IntelliJ shows method parameter hints on usage How to disable it java intellij idea pI am new to IntelliJ and recently updated to strongIntelliJ 2016 strong brIn the editor for Java code it shows the method signature upon usage How do disable this feature ppHere an example of method signature and its call site href https stack imgur com qMA5c jpg rel noreferrer img src https stack imgur com qMA5c jpg alt enter image description here pp strongMethod call strong bra href https stack imgur com ZZXXy jpg rel noreferrer img src https stack imgur com ZZXXy jpg alt enter image description here ppThis behavior was not there in 2016 version am seeing this after update brAny help is appreciated pUntick the bottom option codeShow parameter name hints code pp href https stack imgur com T9qiO png img src https stack imgur com T9qiO png alt Show parameter name hints 3298,917194,879506,NULL,NULL,NULL,0,NULL,NULL 3299,347826,773093,NULL,NULL,NULL,0,NULL,NULL 3300,450052,853118,NULL,NULL,NULL,0,NULL,NULL 3301,332638,1042427,Yearling Good Answer Curious Notable Question Yearling,NULL,NULL,0,NULL,NULL 3302,11027995,1042427,Yearling Good Answer Curious Notable Question Yearling,NULL,NULL,0,NULL,NULL 3303,46488,1348425,NULL,NULL,NULL,0,NULL,NULL 3304,552571,496319,NULL,NULL,NULL,0,NULL,NULL 3305,616517,716431,NULL,NULL,NULL,0,NULL,NULL 3306,296573,1326507,NULL,NULL,NULL,0,NULL,NULL 3307,120535,1144531,NULL,NULL,NULL,0,NULL,NULL 3308,686676,507878,Curious Popular Question,NULL,NULL,0,NULL,NULL 3309,70415,254896,Yearling Revival Yearling asana Tumbleweed Yearling Notable Question Nice Question Popular Question,NULL,NULL,1,NULL,How to get all the tasks between two dates for project asana asana api pAs requirement want to get all the tasks created between any dates for project It does not matter whether these tasks got completed or not ppI looked at the Tasks href https asana com developers api reference tasks query rel nofollow noreferrer API which has query section that talks about pblockquote pcompleted since Only return tasks that are either incomplete or that have been completed since this time br modified since Only return tasks that have been modified since the given time blockquotepI also looked at my Asana Dashboard which supports queries such as pp href https stack imgur com IfHTz png rel nofollow noreferrer img src https stack imgur com IfHTz png alt enter image description here ppNow this also does not let me query as per my requirement pp strongQuestion strong What query API payload do need to run to get all the tasks between dates for project pIt not possible to query emjust em for the tasks you want however you can query for all the tasks and then just filter out the ones by their codecreated at code value So codeGET projects 1234 tasks opt fields name completed at code then iterate over and just select the ones you want Not very efficient but the best that is currently possible 3310,290480,163000,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3311,751030,276940,NULL,NULL,NULL,0,NULL,NULL 3312,40234,470188,NULL,NULL,NULL,0,NULL,NULL 3313,105341,316245,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 3314,10823,946766,NULL,NULL,NULL,0,NULL,NULL 3315,410360,949562,NULL,NULL,NULL,0,NULL,NULL 3316,250592,792074,Popular Question Teacher Necromancer Nice Answer Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 3317,1515211,708042,NULL,NULL,NULL,0,NULL,NULL 3318,603119,540453,Popular Question Good Answer Necromancer Popular Question Yearling Guru Yearling Custodian Good Answer,NULL,NULL,0,NULL,NULL 3319,118090,583895,Revival Revival Critic Civic Duty Necromancer Yearling Caucus Commentator Constituent Custodian Yearling Necromancer Caucus Revival Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3320,319990,1205402,Popular Question,NULL,NULL,0,NULL,NULL 3321,35408,597097,Notable Question Nice Answer Enlightened Popular Question Announcer Citizen Patrol,NULL,NULL,0,NULL,NULL 3322,1651558,1200784,Notable Question Critic Yearling Nice Question,NULL,NULL,0,NULL,NULL 3323,741989,944535,Student,NULL,NULL,0,NULL,NULL 3324,375633,1050581,NULL,NULL,NULL,0,NULL,NULL 3325,3839,91610,Famous Question Nice Question Nice Question Notable Question Famous Question Yearling Famous Question Nice Question Yearling Good Question Famous Question Famous Question Popular Question Famous Question Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 3326,110706,320726,Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Great Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Populist Yearling Nice Answer Great Answer vector Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Great Answer Nice Answer Caucus Constituent Announcer Nice Answer Enlightened Nice Answer function Good Answer Nice Answer Enlightened Inquisitive Popular Question Good Answer Nice Answer Nice Answer Generalist Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer pointers Yearling Notable Question Good Answer Necromancer Nice Answer Good Answer Nice Answer Nice Question Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Guru Constituent Nice Answer Good Answer Nice Answer Good Answer canvas Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened python-3.x python-2.7 Popular Question Nice Answer Enlightened Nice Answer Census Great Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Enlightened Nice Answer Caucus Constituent Yearling Guru Announcer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened data-structures Nice Answer Nice Answer Guru Popular Question Announcer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Revival Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 3327,661953,1399097,Supporter,NULL,NULL,0,NULL,NULL 3328,183163,791616,NULL,NULL,NULL,0,NULL,NULL 3329,521057,685988,NULL,NULL,NULL,0,NULL,NULL 3330,16496,149264,Nice Answer Enlightened Announcer Yearling Yearling Civic Duty Informed Announcer Yearling,NULL,NULL,0,NULL,NULL 3331,6952268,1142728,Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Good Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 3332,200247,1142728,Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Good Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 3333,253183,60739,Yearling Famous Question Nice Question Great Question Popular Question Popular Question Good Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 3334,301683,140134,NULL,NULL,NULL,0,NULL,NULL 3335,443608,924701,NULL,NULL,NULL,0,NULL,NULL 3336,444905,719372,NULL,NULL,NULL,0,NULL,NULL 3337,707663,1199707,Enthusiast Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3338,270201,326652,NULL,NULL,NULL,0,NULL,NULL 3339,502859,91401,Student Supporter,NULL,NULL,0,NULL,NULL 3340,622382,723696,NULL,NULL,NULL,0,NULL,NULL 3341,172251,723696,NULL,NULL,NULL,0,NULL,NULL 3342,367186,1069225,NULL,NULL,NULL,0,NULL,NULL 3343,310330,1357059,Editor Custodian,NULL,NULL,0,NULL,NULL 3344,145228,791694,Necromancer Necromancer Good Answer Nice Answer Yearling Great Answer Custodian Good Answer Civic Duty Necromancer Necromancer Yearling java Great Answer Necromancer Caucus Custodian Yearling Necromancer Nice Answer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 3345,1154341,788410,NULL,NULL,NULL,0,NULL,NULL 3346,368655,1329990,Student,NULL,NULL,0,NULL,NULL 3347,1104096,581617,NULL,NULL,NULL,0,NULL,NULL 3348,62630,537314,Critic Necromancer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3349,220607,103179,Notable Question,NULL,NULL,0,NULL,NULL 3350,137730,877380,NULL,NULL,NULL,0,NULL,NULL 3351,376239,1216936,NULL,NULL,NULL,0,NULL,NULL 3352,1733278,281372,NULL,NULL,NULL,0,NULL,NULL 3353,87013,33391,NULL,NULL,NULL,0,NULL,NULL 3354,227033,395334,NULL,NULL,NULL,0,NULL,NULL 3355,73053,1422223,NULL,NULL,NULL,0,NULL,NULL 3356,456401,1541101,Popular Question Yearling,NULL,NULL,0,NULL,NULL 3357,895269,116395,Popular Question Popular Question Notable Question Good Question Notable Question Notable Question Popular Question Notable Question Notable Question Favorite Question Famous Question Popular Question Notable Question Notable Question Nice Question Nice Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Yearling Notable Question Famous Question Good Question Famous Question Notable Question Famous Question Nice Question Nice Question Good Question Great Question Necromancer Popular Question Famous Question Nice Answer Excavator Famous Question Popular Question Nice Question Popular Question Good Question Notable Question Notable Question Good Question Nice Question Notable Question Famous Question Good Question Notable Question Custodian Caucus Nice Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Good Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Favorite Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 3358,61661,1245908,Curious,NULL,NULL,0,NULL,NULL 3359,920186,716294,Popular Question Popular Question Custodian Notable Question Nice Answer Notable Question Popular Question Nice Question Notable Question Famous Question Popular Question Nice Question Yearling Popular Question Socratic Revival Popular Question Popular Question Notable Question Famous Question ruby-on-rails Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Revival Notable Question Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Revival Notable Question Yearling Popular Question Notable Question Notable Question Nice Question Custodian Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3360,292079,92923,Yearling,NULL,NULL,0,NULL,NULL 3361,55399,1247877,NULL,NULL,NULL,0,NULL,NULL 3362,417156,279438,NULL,NULL,NULL,0,NULL,NULL 3363,653374,1136092,Nice Answer,NULL,NULL,0,NULL,NULL 3364,1539814,199759,NULL,NULL,NULL,0,NULL,NULL 3365,1514874,1086364,NULL,NULL,NULL,0,NULL,NULL 3366,143727,1049015,NULL,NULL,NULL,0,NULL,NULL 3367,552838,1165480,NULL,NULL,NULL,0,NULL,NULL 3368,564669,1281795,NULL,NULL,NULL,0,NULL,NULL 3369,387315,534458,Custodian Yearling Yearling Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3370,876062,751922,NULL,NULL,NULL,0,NULL,NULL 3371,2279426,751922,NULL,NULL,NULL,0,NULL,NULL 3372,141756,968693,NULL,NULL,NULL,0,NULL,NULL 3373,190018,1327167,NULL,NULL,NULL,0,NULL,NULL 3374,902700,1207462,NULL,NULL,NULL,0,NULL,NULL 3375,201869,399337,NULL,NULL,NULL,0,NULL,NULL 3376,350480,835811,NULL,NULL,NULL,0,NULL,NULL 3377,257173,453550,NULL,NULL,NULL,0,NULL,NULL 3378,137005,787386,NULL,NULL,NULL,0,NULL,NULL 3379,382261,641484,Nice Answer Yearling Tumbleweed Student Civic Duty,NULL,NULL,0,NULL,NULL 3380,89043,1401477,NULL,NULL,NULL,0,NULL,NULL 3381,416985,507414,Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Teacher Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3382,137533,1175327,Famous Question Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Taxonomist Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Notable Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Famous Question Good Question Popular Question Good Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Famous Question Nice Question Popular Question Famous Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Caucus Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Great Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling Popular Question Notable Question Custodian Popular Question Favorite Question Notable Question Good Question Popular Question Good Question Popular Question Popular Question Popular Question Nice Question Nice Question Nice Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Popular Question Famous Question,NULL,NULL,1,Style html body from web component Angular angular shadow dom pI working on codeLoginComponent code in Angular that should restyle the codehtml code and codebody code tags so can put in background image specific for the login page ppBut just adding style for the codehtml body code in my codelogin css code doesn seem to work ppIs there way to override the style on the codehtml body code from component Or any element for that matter ppI ve tried things like ppre code host btn host btn host btn host code prepto style an element from outside the codeLogin code component But nothing seems to work,NULL 3383,3775523,1175327,Famous Question Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Taxonomist Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Notable Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Famous Question Good Question Popular Question Good Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Famous Question Nice Question Popular Question Famous Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Caucus Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Great Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling Popular Question Notable Question Custodian Popular Question Favorite Question Notable Question Good Question Popular Question Good Question Popular Question Popular Question Popular Question Nice Question Nice Question Nice Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Popular Question Famous Question,NULL,NULL,1,Style html body from web component Angular angular shadow dom pI working on codeLoginComponent code in Angular that should restyle the codehtml code and codebody code tags so can put in background image specific for the login page ppBut just adding style for the codehtml body code in my codelogin css code doesn seem to work ppIs there way to override the style on the codehtml body code from component Or any element for that matter ppI ve tried things like ppre code host btn host btn host btn host code prepto style an element from outside the codeLogin code component But nothing seems to work,NULL 3384,12524,827397,NULL,NULL,NULL,0,NULL,NULL 3385,255579,64105,Yearling Good Answer Organizer Popular Question Notable Question Popular Question Popular Question Nice Answer Great Question Yearling Popular Question Nice Question Nice Answer Announcer Popular Question Yearling Nice Question Notable Question Great Answer,NULL,NULL,0,NULL,NULL 3386,180758,1176758,Yearling Good Answer,NULL,NULL,0,NULL,NULL 3387,336077,857673,NULL,NULL,NULL,0,NULL,NULL 3388,184951,113808,NULL,NULL,NULL,0,NULL,NULL 3389,501031,1159685,Popular Question Notable Question Famous Question Tumbleweed Notable Question Notable Question Self-Learner Necromancer Popular Question Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 3390,158247,418342,NULL,NULL,,0,, 3391,273649,842264,Yearling,NULL,NULL,0,NULL,NULL 3392,412996,1222904,NULL,NULL,NULL,0,NULL,NULL 3393,96793,823710,NULL,NULL,NULL,0,NULL,NULL 3394,166522,775885,NULL,NULL,NULL,0,NULL,NULL 3395,9033838,680432,Popular Question Popular Question Curious Nice Answer Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 3396,255587,505831,Famous Question,NULL,NULL,0,NULL,NULL 3397,1343161,914854,NULL,NULL,NULL,0,NULL,NULL 3398,434,558777,Notable Question Revival Excavator Good Answer Civic Duty Yearling Popular Question Announcer Announcer Nice Question Popular Question Popular Question Popular Question Nice Question Custodian Yearling Popular Question Popular Question Great Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 3399,454699,1004528,NULL,NULL,NULL,0,NULL,NULL 3400,322455,735142,Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3401,48417,564669,NULL,NULL,NULL,0,NULL,NULL 3402,30110,554432,NULL,NULL,NULL,0,NULL,NULL 3403,1007941,554432,NULL,NULL,NULL,0,NULL,NULL 3404,750132,916348,NULL,NULL,NULL,0,NULL,NULL 3405,1725414,1363367,Necromancer Yearling Good Answer Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3406,83016,324384,Notable Question,NULL,NULL,0,NULL,NULL 3407,49205,788931,NULL,NULL,NULL,0,NULL,NULL 3408,186012,950401,Famous Question Caucus Teacher Yearling,NULL,NULL,0,NULL,NULL 3409,177472,649811,Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Caucus Guru Guru Good Answer Nice Answer Yearling symfony symfony Caucus Nice Answer Enlightened Guru Good Answer Guru Nice Answer Enlightened Promoter Yearling Nice Answer Caucus doctrine2 Benefactor Guru Good Answer,NULL,NULL,0,NULL,NULL 3410,898897,1457749,NULL,NULL,NULL,0,NULL,NULL 3411,385187,850148,Popular Question Famous Question Self-Learner Notable Question Good Question Yearling Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 3412,431850,974009,Famous Question,NULL,NULL,0,NULL,NULL 3413,1214924,771300,Popular Question Custodian Custodian Notable Question Nice Answer Yearling Notable Question Popular Question Yearling Good Question Announcer Notable Question Yearling Stellar Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 3414,132090,398939,Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Custodian Popular Question Famous Question Good Answer Popular Question Popular Question Good Answer Yearling Notable Question Great Question Famous Question Good Question Good Question Great Question Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 3415,319474,664312,NULL,NULL,NULL,0,NULL,NULL 3416,1060490,909102,Popular Question,NULL,NULL,0,NULL,NULL 3417,188222,163276,Curious Popular Question,NULL,NULL,0,NULL,NULL 3418,18998,636007,Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 3419,199547,66493,Yearling Popular Question Revival Popular Question Notable Question Curious Necromancer Peer Pressure Popular Question Good Question Popular Question Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 3420,386309,833148,NULL,NULL,NULL,0,NULL,NULL 3421,891295,604493,Caucus Announcer Notable Question Documentation User Critic Famous Question,NULL,NULL,0,NULL,NULL 3422,52314,314324,Nice Answer Revival Custodian Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 3423,6369454,1168991,NULL,NULL,NULL,0,NULL,NULL 3424,196759,805230,NULL,NULL,NULL,0,NULL,NULL 3425,372199,1501316,NULL,NULL,NULL,0,NULL,NULL 3426,160472,1270492,NULL,NULL,NULL,0,NULL,NULL 3427,662647,210391,Popular Question Inquisitive Notable Question Enthusiast Popular Question Popular Question Notable Question Yearling Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3428,337745,1348391,Guru Yearling Nice Answer Enlightened Popular Question Caucus Nice Answer Nice Answer Student Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 3429,287376,1009360,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3430,890289,1166015,Excavator Critic Citizen Patrol Necromancer Caucus Constituent Popular Question Notable Question Yearling Nice Question Notable Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 3431,159091,1058812,NULL,NULL,NULL,0,NULL,NULL 3432,211988,922252,Notable Question,NULL,NULL,0,NULL,NULL 3433,232559,1128687,Critic Informed Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3434,1698,211353,Informed,NULL,NULL,0,NULL,NULL 3435,356611,827173,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3436,842958,609470,NULL,NULL,NULL,0,NULL,NULL 3437,615,499535,NULL,NULL,NULL,0,NULL,NULL 3438,169169,641755,Yearling Nice Question Nice Question Necromancer Yearling Citizen Patrol Custodian Caucus Revival,NULL,NULL,0,NULL,NULL 3439,748664,636916,NULL,NULL,NULL,0,NULL,NULL 3440,110199,915579,NULL,NULL,NULL,0,NULL,NULL 3441,681756,584917,NULL,NULL,NULL,0,NULL,NULL 3442,210169,982792,Famous Question Notable Question Notable Question Yearling Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3443,428228,815698,NULL,NULL,NULL,0,NULL,NULL 3444,424714,393386,NULL,NULL,NULL,0,NULL,NULL 3445,414880,545546,Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 3446,72686,856219,NULL,NULL,NULL,0,NULL,NULL 3447,1479249,596954,NULL,NULL,NULL,0,NULL,NULL 3448,242541,499588,Commentator,NULL,NULL,0,NULL,NULL 3449,1335353,110432,Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Famous Question Notable Question Notable Question Notable Question Famous Question Notable Question Nice Question Good Question Popular Question Yearling Good Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 3450,374400,494967,NULL,NULL,NULL,0,NULL,NULL 3451,394780,933517,NULL,NULL,NULL,0,NULL,NULL 3452,132297,1358137,Famous Question Good Question Critic,NULL,NULL,0,NULL,NULL 3453,267450,965191,NULL,NULL,NULL,0,NULL,NULL 3454,512,73731,Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 3455,130322,507256,Popular Question Famous Question android Nice Question Nice Answer Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Nice Answer Enlightened Popular Question Great Question Nice Answer Revival Nice Question Notable Question Popular Question Nice Answer Yearling Caucus Nice Question Popular Question Famous Question Notable Question Popular Question Good Answer Notable Question Good Answer Notable Question Nice Question Nice Answer Notable Question Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Yearling Famous Question Popular Question Popular Question Good Answer Good Question Popular Question Nice Question Good Answer Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 3456,529415,162867,NULL,NULL,NULL,0,NULL,NULL 3457,183116,622030,NULL,NULL,NULL,0,NULL,NULL 3458,644654,555503,NULL,NULL,NULL,0,NULL,NULL 3459,91665,384057,Necromancer Curious Popular Question,NULL,NULL,0,NULL,NULL 3460,800276,1151386,NULL,NULL,NULL,0,NULL,NULL 3461,104229,473388,NULL,NULL,NULL,0,NULL,NULL 3462,128351,347585,NULL,NULL,NULL,0,NULL,NULL 3463,381972,1325902,NULL,NULL,NULL,0,NULL,NULL 3464,271279,1088,Nice Answer Enlightened Good Question Popular Question c++ Great Answer Yearling Notable Question Nice Answer Stellar Question Nice Answer Yearling Notable Question Nice Answer Notable Question Good Answer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 3465,587094,721139,NULL,NULL,NULL,0,NULL,NULL 3466,55635,700239,NULL,NULL,NULL,0,NULL,NULL 3467,1177989,1221138,NULL,NULL,NULL,0,NULL,NULL 3468,20004,1126494,NULL,NULL,NULL,0,NULL,NULL 3469,155598,227955,Scholar Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 3470,60384,358804,Announcer Necromancer Necromancer Nice Answer Yearling Nice Answer Necromancer Good Answer Revival Yearling Popular Question Announcer Revival Popular Question Announcer Necromancer Necromancer Census Nice Answer Necromancer Custodian Yearling Popular Question Announcer Notable Question Necromancer Necromancer Civic Duty,NULL,NULL,0,NULL,NULL 3471,342331,1198135,Famous Question,NULL,NULL,0,NULL,NULL 3472,194656,1282276,NULL,NULL,NULL,0,NULL,NULL 3473,4260576,1282276,NULL,NULL,NULL,0,NULL,NULL 3474,458830,919926,NULL,NULL,NULL,0,NULL,NULL 3475,258605,1015791,Yearling,NULL,NULL,0,NULL,NULL 3476,319441,1277169,NULL,NULL,NULL,0,NULL,NULL 3477,245182,1277169,NULL,NULL,NULL,0,NULL,NULL 3478,825297,358438,Popular Question Famous Question Famous Question Nice Question Famous Question Famous Question Nice Question Good Question Popular Question Famous Question Nice Question Notable Question Notable Question Yearling Notable Question Notable Question Famous Question Notable Question Famous Question Famous Question Popular Question Famous Question Famous Question Nice Question Notable Question Good Question Notable Question Great Question Favorite Question Famous Question Famous Question Famous Question Favorite Question Popular Question Famous Question Good Question Nice Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Yearling Nice Question Good Question Notable Question Famous Question Nice Question Good Question Famous Question Famous Question Popular Question Nice Question Notable Question Nice Question Popular Question Famous Question Notable Question Great Question Notable Question Good Question Good Question Popular Question Good Answer Popular Question Yearling Nice Question Great Question Notable Question Notable Question Famous Question Good Question Good Question Famous Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3479,108605,1256108,Student,NULL,NULL,0,NULL,NULL 3480,66745,1141031,NULL,NULL,NULL,0,NULL,NULL 3481,1228247,632027,Notable Question Famous Question Notable Question Popular Question Electorate Announcer Popular Question Popular Question Famous Question Announcer Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 3482,624156,1047224,NULL,NULL,NULL,0,NULL,NULL 3483,771324,1061530,NULL,NULL,NULL,0,NULL,NULL 3484,138739,156882,NULL,NULL,NULL,0,NULL,NULL 3485,1018843,1536165,Informed,NULL,NULL,0,NULL,NULL 3486,310501,51760,Yearling Nice Answer Enlightened Good Answer Proofreader Great Answer c Yearling Custodian Custodian Nice Answer Civic Duty Nice Answer Documentation User Necromancer Custodian Good Answer Yearling Nice Answer Enlightened Notable Question Good Answer Nice Answer linux,NULL,What is monad haskell functional programming monads terminology pHaving briefly looked at Haskell recently what would be embrief succinct practical em explanation as to what monad essentially is ppI have found most explanations ve come across to be fairly inaccessible and lacking in practical detail like to say that monad is construction which lets you put all your crap in doing actual job aka side effects and present you fancy box to keep your code functionnal read side effect free,0,NULL,NULL 3487,7872515,1212346,NULL,NULL,NULL,0,NULL,NULL 3488,696968,1212346,NULL,NULL,NULL,0,NULL,NULL 3489,696969,1212346,NULL,NULL,NULL,0,NULL,NULL 3490,427988,772526,NULL,NULL,NULL,0,NULL,NULL 3491,74328,516672,NULL,NULL,NULL,0,NULL,NULL 3492,205476,419818,NULL,NULL,NULL,0,NULL,NULL 3493,4661190,587879,Supporter,NULL,NULL,0,NULL,NULL 3494,465440,164965,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 3495,1032771,1171291,NULL,NULL,NULL,0,NULL,NULL 3496,40460,1133526,Necromancer,NULL,NULL,0,NULL,NULL 3497,159502,924796,NULL,NULL,NULL,0,NULL,NULL 3498,10006653,1519521,NULL,NULL,NULL,0,NULL,NULL 3499,267313,1519521,NULL,NULL,NULL,0,NULL,NULL 3500,255112,959862,NULL,NULL,NULL,0,NULL,NULL 3501,891929,949539,Famous Question Nice Question Nice Answer Enlightened Yearling Notable Question Caucus Custodian Nice Answer Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 3502,329485,1113090,Popular Question Revival,NULL,NULL,0,NULL,NULL 3503,133652,1120827,Electorate,NULL,NULL,0,NULL,NULL 3504,7211,442177,NULL,NULL,NULL,0,NULL,NULL 3505,158462,442177,NULL,NULL,NULL,0,NULL,NULL 3506,306568,510009,NULL,NULL,NULL,0,NULL,NULL 3507,32267,1145951,NULL,NULL,NULL,0,NULL,NULL 3508,207538,874585,Nice Answer Necromancer Popular Question Yearling Nice Answer Popular Question Caucus Announcer Popular Question Popular Question Popular Question Notable Question Caucus Yearling Popular Question Good Answer Peer Pressure,NULL,NULL,0,NULL,NULL 3509,1322548,801203,Promoter Citizen Patrol Notable Question Popular Question Announcer Documentation User Custodian Popular Question Notable Question Caucus Constituent Inquisitive Notable Question Custodian,NULL,NULL,0,NULL,NULL 3510,256081,1208658,NULL,NULL,NULL,0,NULL,NULL 3511,99041,939709,Enlightened Guru Necromancer Yearling Caucus Guru Informed Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 3512,445437,614348,NULL,NULL,NULL,0,NULL,NULL 3513,514262,523313,NULL,NULL,NULL,0,NULL,NULL 3514,8909,5304,Nice Answer Yearling Notable Question Favorite Question Nice Question Yearling Favorite Question Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3515,445245,818084,Editor Popular Question Popular Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3516,59515,69450,NULL,NULL,NULL,0,NULL,NULL 3517,1512300,877133,NULL,NULL,NULL,0,NULL,NULL 3518,1346072,630976,NULL,NULL,NULL,0,NULL,NULL 3519,191704,312702,NULL,NULL,NULL,0,NULL,NULL 3520,76573,195486,Famous Question Notable Question Popular Question Famous Question Nice Question Nice Question Revival Yearling Notable Question Famous Question Popular Question Necromancer Popular Question Good Question Notable Question Popular Question Nice Answer Enlightened Self-Learner Yearling Nice Question Popular Question Good Question Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 3521,73117,149416,Nice Question Yearling Necromancer Popular Question Nice Question Notable Question Yearling Critic,NULL,NULL,0,NULL,NULL 3522,67924,1315688,NULL,NULL,NULL,0,NULL,NULL 3523,7034177,430988,NULL,NULL,NULL,0,NULL,NULL 3524,482454,995768,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 3525,3865017,878182,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Caucus Constituent Nice Answer Guru Good Question Caucus Constituent Yearling Nice Answer Census Caucus Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 3526,144873,878182,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Caucus Constituent Nice Answer Guru Good Question Caucus Constituent Yearling Nice Answer Census Caucus Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 3527,182193,698512,Custodian Guru Popular Question Yearling Nice Answer Explainer Popular Question Necromancer python Popular Question Caucus Nice Answer Yearling Nice Answer Caucus Popular Question Great Answer Good Answer Popular Question Great Answer Notable Question Notable Question Yearling Good Answer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 3528,148846,1060662,NULL,NULL,NULL,0,NULL,NULL 3529,163382,244737,NULL,NULL,NULL,0,NULL,NULL 3530,668342,229087,Good Question Yearling Census Announcer Good Answer Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 3531,292070,909580,NULL,NULL,NULL,0,NULL,NULL 3532,766929,53698,NULL,NULL,NULL,0,NULL,NULL 3533,266357,691179,NULL,NULL,NULL,0,NULL,NULL 3534,259150,912206,NULL,NULL,NULL,0,NULL,NULL 3535,83123,1036234,Popular Question Peer Pressure Caucus,NULL,NULL,0,NULL,NULL 3536,81307,342099,NULL,NULL,NULL,0,NULL,NULL 3537,341515,1476266,NULL,NULL,NULL,0,NULL,NULL 3538,107716,960396,NULL,NULL,NULL,0,NULL,NULL 3539,49066,816894,NULL,NULL,NULL,0,NULL,NULL 3540,1351612,1494777,Notable Question,NULL,NULL,0,NULL,NULL 3541,340645,46890,NULL,NULL,NULL,0,NULL,NULL 3542,41169,901161,Self-Learner Necromancer Caucus Yearling Nice Answer Editor,NULL,NULL,0,NULL,NULL 3543,402606,1033872,Informed Supporter Popular Question Notable Question Autobiographer Editor Teacher,NULL,NULL,0,NULL,NULL 3544,167838,146530,NULL,NULL,NULL,0,NULL,NULL 3545,285622,122232,asp.net-mvc Nice Question Notable Question Notable Question Yearling Good Question Notable Question Caucus Necromancer Yearling Nice Answer Civic Duty Good Answer Caucus Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 3546,560899,84932,Yearling Notable Question Nice Answer Famous Question Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 3547,542349,348403,NULL,NULL,NULL,0,NULL,NULL 3548,221145,1410972,NULL,NULL,NULL,0,NULL,NULL 3549,899787,893329,Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 3550,243669,1006965,Notable Question,NULL,NULL,0,NULL,NULL 3551,500409,414218,NULL,NULL,NULL,0,NULL,NULL 3552,102096,1110127,NULL,NULL,NULL,0,NULL,NULL 3553,200495,325135,NULL,NULL,NULL,0,NULL,NULL 3554,388454,743567,NULL,NULL,NULL,0,NULL,NULL 3555,1772571,1499087,NULL,NULL,NULL,0,NULL,NULL 3556,1333269,1181887,NULL,NULL,NULL,0,NULL,NULL 3557,1117671,1006902,Nice Question Necromancer Notable Question Yearling Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 3558,195011,1079296,NULL,NULL,NULL,0,NULL,NULL 3559,90896,794902,NULL,NULL,NULL,0,NULL,NULL 3560,665150,1152226,Commentator Curious Popular Question,NULL,NULL,0,NULL,NULL 3561,528508,1031573,Yearling Good Answer,NULL,NULL,0,NULL,NULL 3562,1508014,1170743,NULL,NULL,NULL,0,NULL,NULL 3563,173890,1179495,NULL,NULL,NULL,0,NULL,NULL 3564,301952,1270786,Curious Critic Yearling Necromancer,NULL,NULL,0,NULL,NULL 3565,1507311,986054,Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3566,199696,590473,Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 3567,1285885,1241931,Popular Question,NULL,NULL,0,NULL,NULL 3568,9390002,1510968,NULL,NULL,NULL,0,NULL,NULL 3569,117487,1448089,NULL,NULL,NULL,0,NULL,NULL 3570,87373,268233,NULL,NULL,NULL,0,NULL,NULL 3571,307146,330700,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 3572,585038,896724,NULL,NULL,NULL,0,NULL,NULL 3573,1824739,1240132,Popular Question Popular Question Notable Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 3574,418116,505090,NULL,NULL,NULL,0,NULL,NULL 3575,300128,992523,NULL,NULL,NULL,0,NULL,NULL 3576,26469,1193171,NULL,NULL,NULL,0,NULL,NULL 3577,1367103,1292842,NULL,NULL,NULL,0,NULL,NULL 3578,17341,265005,Yearling Revival Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 3579,463891,1367490,Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 3580,2466041,1024523,Nice Answer,NULL,NULL,0,NULL,NULL 3581,262500,927161,NULL,NULL,NULL,0,NULL,NULL 3582,144433,736162,Suffrage Revival Necromancer Announcer Yearling Disciplined Revival Necromancer Announcer Nice Answer Enlightened Nice Answer Caucus Good Answer Taxonomist Nice Answer Necromancer Nice Answer Popular Question Yearling Nice Answer Popular Question Documentation User Good Answer Revival Revival Caucus Yearling Nice Answer Guru Necromancer Guru,NULL,NULL,0,NULL,NULL 3583,479425,1452187,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3584,480493,1078951,NULL,NULL,NULL,0,NULL,NULL 3585,279864,523620,NULL,NULL,NULL,0,NULL,NULL 3586,554485,1201419,NULL,NULL,NULL,0,NULL,NULL 3587,2338448,1201419,NULL,NULL,NULL,0,NULL,NULL 3588,2633306,1201419,NULL,NULL,NULL,0,NULL,NULL 3589,6951922,1201419,NULL,NULL,NULL,0,NULL,NULL 3590,106013,603465,NULL,NULL,NULL,0,NULL,NULL 3591,715968,798049,NULL,NULL,NULL,0,NULL,NULL 3592,168959,1275966,Custodian Citizen Patrol Custodian Commentator Yearling Custodian Documentation User,NULL,NULL,0,NULL,NULL 3593,450297,461031,NULL,NULL,NULL,0,NULL,NULL 3594,1199189,78258,Nice Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3595,229306,104973,Good Answer Yearling,NULL,NULL,0,NULL,NULL 3596,239420,379712,Custodian Notable Question Nice Question Nice Answer Enlightened Yearling Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 3597,437729,456758,Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 3598,470189,1030081,NULL,NULL,NULL,0,NULL,NULL 3599,8697624,393243,Popular Question Nice Answer Notable Question Yearling Populist Good Answer Nice Answer Popular Question Famous Question Good Answer Popular Question Popular Question Necromancer Nice Answer Necromancer javascript Famous Question Necromancer Good Question Notable Question Good Answer Good Answer Nice Question Disciplined Yearling Popular Question Nice Answer Famous Question Great Answer Revival Promoter Nice Question Good Question Benefactor Popular Question Nice Answer Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 3600,34807,393243,Popular Question Nice Answer Notable Question Yearling Populist Good Answer Nice Answer Popular Question Famous Question Good Answer Popular Question Popular Question Necromancer Nice Answer Necromancer javascript Famous Question Necromancer Good Question Notable Question Good Answer Good Answer Nice Question Disciplined Yearling Popular Question Nice Answer Famous Question Great Answer Revival Promoter Nice Question Good Question Benefactor Popular Question Nice Answer Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 3601,14691,733862,Organizer Yearling,NULL,NULL,0,NULL,NULL 3602,62865,904754,NULL,NULL,NULL,0,NULL,NULL 3603,42075,950790,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3604,183880,60117,Yearling Famous Question Famous Question Good Question Good Question Famous Question Famous Question Popular Question Famous Question Notable Question Yearling Popular Question Good Question Popular Question Good Answer c# Great Answer Good Answer Documentation User Notable Question Good Question Good Question Good Answer Yearling Famous Question Notable Question Popular Question Notable Question Good Answer Favorite Question,NULL,NULL,0,NULL,NULL 3605,7559534,852196,Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3606,2145824,852196,Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3607,1086079,361950,NULL,NULL,NULL,0,NULL,NULL 3608,7247759,589448,NULL,NULL,NULL,0,NULL,NULL 3609,656560,1566863,NULL,NULL,NULL,0,NULL,NULL 3610,199027,447600,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3611,245451,262644,Famous Question Custodian Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 3612,84090,411970,NULL,NULL,NULL,0,NULL,NULL 3613,151751,269493,Yearling Caucus Constituent Tenacious Yearling Citizen Patrol Nice Answer Enlightened Nice Answer Guru Caucus Constituent Custodian Custodian Census Yearling Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 3614,46113,657880,Organizer Yearling Custodian Custodian Informed Citizen Patrol Custodian Critic Commentator Autobiographer Tag Editor gradle Good Answer Yearling Good Answer Documentation User Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 3615,537545,325742,Yearling Guru Nice Answer Good Answer Popular Question Popular Question Good Answer Good Answer Popular Question Popular Question eclipse Good Answer Caucus Constituent Nice Answer Popular Question Good Answer Yearling maven Nice Answer Popular Question git Nice Answer Nice Answer Nice Question Good Answer Notable Question Revival Great Answer Nice Answer Enlightened Famous Question Nice Answer Yearling Nice Answer Good Answer Guru Necromancer Necromancer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 3616,626899,715880,NULL,NULL,NULL,0,NULL,NULL 3617,3277176,715880,NULL,NULL,NULL,0,NULL,NULL 3618,3643928,715880,NULL,NULL,NULL,0,NULL,NULL 3619,86551,539490,Nice Question Great Question Notable Question Nice Question Pundit Popular Question Nice Answer Favorite Question Revival Popular Question Notable Question Famous Question Notable Question Popular Question Revival Popular Question Great Question Necromancer Yearling Necromancer Favorite Question Good Question Popular Question Popular Question Notable Question Nice Question Nice Answer Revival Favorite Question Promoter Notable Question Notable Question Cleanup Popular Question Necromancer Popular Question Revival Announcer Nice Question Organizer Announcer Famous Question Nice Answer Yearling Good Answer Famous Question Good Question Nice Question Popular Question Announcer Notable Question Notable Question Revival Nice Question Popular Question Necromancer Notable Question Popular Question Popular Question Nice Answer Popular Question,NULL,NULL,1,Modify module with plugins when Typescript definition split across multiple files typescript plugins typescript typings pIn Typescript trying to define module HapiJS which has various plugin options ppI refactored the core code into multiple ts files and then imported and re exported them all from the index ts using the following pattern href https github com AJamesPhillips DefinitelyTyped blob 7cbe95badb58151ca8ab3b0bec0ce2ea23fa72b4 types hapi index ts rel nofollow noreferrer as seen here ppre codeexport from hapi connection export from hapi reply export from hapi request export from hapi response export from hapi route export from hapi server views export from hapi server code prepIn separate module it extends them href https github com AJamesPhillips DefinitelyTyped blob 9ed0009123299b9236515e76e9aa3618a365f405 types inert index ts rel nofollow noreferrer as seen here ppre codeimport as hapi from hapi declare module hapi interface IFileHandler path path string or function as described above required path string IRequestHandler lt string gt Extending hapi core interface IRouteConfiguration file string IRequestHandler lt string gt IFileHandler code prepHowever when did this all references to codeIRequestHandler code above error with Cannot find name IRequestHandler If all the hapi code is moved back into one giant index ts then it works as expected Is there way to achieve this using multiple hapi definition files,NULL 3620,30739,121438,NULL,NULL,NULL,0,NULL,NULL 3621,695348,965934,Notable Question Yearling c++ Curious Yearling Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 3622,21203,800664,NULL,NULL,NULL,0,NULL,NULL 3623,404520,1305417,NULL,NULL,NULL,0,NULL,NULL 3624,150268,724178,NULL,NULL,NULL,0,NULL,NULL 3625,353371,360900,Informed,NULL,NULL,0,NULL,NULL 3626,204957,484899,Nice Answer Great Answer Electorate Yearling c Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 3627,828419,1201742,Commentator,NULL,NULL,0,NULL,NULL 3628,67025,1227293,Nice Answer Yearling Civic Duty Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3629,1171164,1350796,Inquisitive Custodian Custodian Custodian Notable Question Yearling Notable Question Nice Question Popular Question Caucus Constituent Civic Duty Popular Question Notable Question Nice Question Notable Question Popular Question Investor Altruist Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Caucus Constituent Popular Question Notable Question Nice Question Famous Question Popular Question Famous Question Good Question Yearling Notable Question Nice Question Caucus Constituent Famous Question Popular Question Notable Question Good Question Notable Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3630,906250,113250,Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 3631,193516,139007,Notable Question Great Answer,NULL,NULL,0,NULL,NULL 3632,254837,1233381,Popular Question,NULL,NULL,0,NULL,NULL 3633,209484,211589,NULL,NULL,NULL,0,NULL,NULL 3634,69137,157157,NULL,NULL,NULL,0,NULL,NULL 3635,308112,592377,Caucus Constituent Documentation User Necromancer,NULL,NULL,0,NULL,NULL 3636,883289,849078,Nice Answer Yearling Notable Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3637,581649,83219,Notable Question Famous Question Yearling Nice Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 3638,480362,1244982,Yearling,NULL,NULL,0,NULL,NULL 3639,206768,793160,Notable Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 3640,398174,353611,NULL,NULL,NULL,0,NULL,NULL 3641,1070884,335863,NULL,NULL,NULL,0,NULL,NULL 3642,158396,868321,Yearling Caucus Excavator Popular Question Custodian Civic Duty Caucus Yearling Enthusiast Informed Autobiographer Custodian Peer Pressure Custodian Custodian Census Caucus Yearling,NULL,NULL,0,NULL,NULL 3643,101302,203642,NULL,NULL,NULL,0,NULL,NULL 3644,223745,636799,Tenacious Necromancer Civic Duty Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 3645,2008,855895,Good Answer Nice Answer Revival Promoter Cleanup Enthusiast Yearling Disciplined,NULL,NULL,0,NULL,NULL 3646,380846,1263052,NULL,NULL,NULL,0,NULL,NULL 3647,336575,8942,Good Answer Yearling Popular Question Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 3648,557526,446048,Critic Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 3649,94205,1556843,NULL,NULL,NULL,0,NULL,NULL 3650,153018,316316,NULL,NULL,NULL,0,NULL,NULL 3651,159167,1067702,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 3652,906759,1021715,NULL,NULL,NULL,0,NULL,NULL 3653,86025,1490656,NULL,NULL,NULL,0,NULL,NULL 3654,23968,881791,Notable Question,NULL,NULL,0,NULL,NULL 3655,29030,659713,NULL,NULL,NULL,0,NULL,NULL 3656,2704744,1147388,Necromancer Nice Answer Yearling Caucus Critic Yearling Good Answer Enthusiast Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 3657,43815,836543,Famous Question Curious Nice Question Notable Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 3658,98058,549848,Popular Question Popular Question javascript Famous Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Popular Question Famous Question Good Answer Necromancer Nice Answer Popular Question Good Answer Notable Question Yearling Good Answer java Necromancer Famous Question Necromancer Good Answer Popular Question Announcer Great Answer Yearling Popular Question Announcer Necromancer Popular Question Necromancer Nice Answer,NULL,pYou can just run codegit cat file sha code and check it returns commit You are right you don need to actually print the actual object for that ppI not 100 sure that what goes on behind the scene is more efficient though pp codetest git cat file sha commit code Note this will also return commit for branch name,0,NULL,NULL 3659,2937777,549848,Popular Question Popular Question javascript Famous Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Popular Question Famous Question Good Answer Necromancer Nice Answer Popular Question Good Answer Notable Question Yearling Good Answer java Necromancer Famous Question Necromancer Good Answer Popular Question Announcer Great Answer Yearling Popular Question Announcer Necromancer Popular Question Necromancer Nice Answer,NULL,pYou can just run codegit cat file sha code and check it returns commit You are right you don need to actually print the actual object for that ppI not 100 sure that what goes on behind the scene is more efficient though pp codetest git cat file sha commit code Note this will also return commit for branch name,0,NULL,NULL 3660,555975,961359,NULL,NULL,NULL,0,NULL,NULL 3661,420954,1340861,NULL,NULL,NULL,0,NULL,NULL 3662,150915,1535777,Yearling Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 3663,385221,800262,NULL,NULL,NULL,0,NULL,NULL 3664,74479,477045,NULL,NULL,NULL,0,NULL,NULL 3665,410419,1549731,Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 3666,754071,372123,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3667,2229685,372123,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3668,537685,1189078,Critic Promoter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3669,406513,341192,Citizen Patrol Revival Famous Question Organizer Yearling Custodian Critic,NULL,NULL,0,NULL,NULL 3670,159523,1006672,NULL,NULL,NULL,0,NULL,NULL 3671,566557,1153651,NULL,NULL,NULL,0,NULL,NULL 3672,50566,1030722,NULL,NULL,NULL,0,NULL,NULL 3673,485910,1058486,Yearling,NULL,NULL,0,NULL,NULL 3674,258715,1317724,NULL,NULL,NULL,0,NULL,NULL 3675,101185,1203562,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 3676,611447,1299398,Nice Answer Nice Answer Yearling Nice Answer Custodian Revival Yearling Populist Good Answer Caucus Census Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 3677,451202,82360,NULL,NULL,NULL,0,NULL,NULL 3678,297155,274507,NULL,NULL,NULL,0,NULL,NULL 3679,309595,145,Famous Question Nice Answer Yearling Notable Question Nice Answer Good Question Famous Question Popular Question Yearling Great Question Yearling Great Question,NULL,NULL,0,NULL,NULL 3680,307963,1104598,NULL,NULL,NULL,0,NULL,NULL 3681,359885,1017811,NULL,NULL,NULL,0,NULL,NULL 3682,3377166,386447,NULL,NULL,NULL,0,NULL,NULL 3683,848989,386447,NULL,NULL,NULL,0,NULL,NULL 3684,60700,964149,NULL,NULL,NULL,0,NULL,NULL 3685,1956676,1402932,Informed Enthusiast Teacher,NULL,NULL,0,NULL,NULL 3686,295249,425801,Custodian Good Answer Nice Answer Enlightened Great Answer Necromancer Notable Question Yearling Good Answer Nice Answer Caucus Constituent Popular Question Guru Famous Question Popular Question Popular Question Guru Caucus Popular Question Constituent Popular Question Yearling Popular Question Good Answer Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 3687,426837,1105311,NULL,NULL,NULL,0,NULL,NULL 3688,86204,1281855,Necromancer,NULL,NULL,0,NULL,NULL 3689,423204,1225770,Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3690,333990,1018433,Famous Question,NULL,NULL,0,NULL,NULL 3691,35312,677748,Notable Question Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 3692,916791,427277,Nice Question,NULL,NULL,0,NULL,NULL 3693,3337112,554363,NULL,NULL,NULL,0,NULL,NULL 3694,283003,554363,NULL,NULL,NULL,0,NULL,NULL 3695,10318,220645,NULL,NULL,NULL,0,NULL,NULL 3696,391315,984020,Popular Question,NULL,NULL,0,NULL,NULL 3697,230634,822018,Caucus,NULL,NULL,0,NULL,NULL 3698,51641,1286040,Yearling Popular Question,NULL,NULL,0,NULL,NULL 3699,107133,476962,NULL,NULL,NULL,0,NULL,NULL 3700,903883,353361,NULL,NULL,NULL,0,NULL,NULL 3701,1292445,1285627,NULL,NULL,NULL,0,NULL,NULL 3702,123458,151186,Notable Question Famous Question Yearling Famous Question Notable Question Nice Question Nice Question Popular Question Yearling Notable Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 3703,216002,670623,Nice Question Self-Learner Notable Question Yearling Revival Nice Question Nice Answer Famous Question Popular Question Popular Question Caucus Constituent Popular Question Good Answer Popular Question Popular Question Yearling Good Question Popular Question Revival Good Question Popular Question Custodian Caucus Notable Question Custodian Constituent Notable Question Booster Necromancer Documentation User Custodian Popular Question Notable Question Nice Question Yearling Necromancer Nice Answer Nice Answer Notable Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 3704,109300,842236,Yearling,NULL,NULL,0,NULL,NULL 3705,765294,1454979,NULL,NULL,NULL,0,NULL,NULL 3706,375602,1454979,NULL,NULL,NULL,0,NULL,NULL 3707,1170345,817544,NULL,NULL,NULL,0,NULL,NULL 3708,76857,324524,NULL,NULL,NULL,0,NULL,NULL 3709,230143,436566,NULL,NULL,NULL,0,NULL,NULL 3710,234381,710269,NULL,NULL,NULL,0,NULL,NULL 3711,97470,1238464,NULL,NULL,NULL,0,NULL,NULL 3712,2505335,1238464,NULL,NULL,NULL,0,NULL,NULL 3713,341509,590847,Notable Question Nice Question Yearling Notable Question Autobiographer Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Nice Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Good Question Popular Question Self-Learner Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Nice Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3714,309650,1050834,Popular Question,NULL,NULL,0,NULL,NULL 3715,3125049,664893,Teacher,NULL,NULL,0,NULL,NULL 3716,2447031,664893,Teacher,NULL,NULL,0,NULL,NULL 3717,2066632,664893,Teacher,NULL,NULL,0,NULL,NULL 3718,307983,664893,Teacher,NULL,NULL,0,NULL,NULL 3719,83126,656694,NULL,NULL,NULL,0,NULL,NULL 3720,2762840,855991,NULL,NULL,NULL,0,NULL,NULL 3721,677440,1244353,Yearling Revival Caucus Constituent Reviewer Revival Necromancer Good Answer Yearling Necromancer Nice Answer Caucus Constituent Good Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 3722,4465740,1244353,Yearling Revival Caucus Constituent Reviewer Revival Necromancer Good Answer Yearling Necromancer Nice Answer Caucus Constituent Good Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 3723,711431,531388,Popular Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 3724,428675,937354,Notable Question,NULL,NULL,0,NULL,NULL 3725,399882,486399,Notable Question Caucus Custodian Announcer Caucus Nice Answer,NULL,NULL,0,NULL,NULL 3726,4256917,1314060,Popular Question Popular Question Documentation User Self-Learner,NULL,NULL,0,NULL,NULL 3727,780613,1314060,Popular Question Popular Question Documentation User Self-Learner,NULL,NULL,0,NULL,NULL 3728,445910,476860,Self-Learner Yearling Revival Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 3729,293249,905967,Notable Question,NULL,NULL,0,NULL,NULL 3730,30113,938717,NULL,NULL,NULL,0,NULL,NULL 3731,6829965,938717,NULL,NULL,NULL,0,NULL,NULL 3732,6257778,341974,NULL,NULL,NULL,0,NULL,NULL 3733,283565,1434366,NULL,NULL,NULL,0,NULL,NULL 3734,886294,625296,NULL,NULL,NULL,0,NULL,NULL 3735,162822,779029,NULL,NULL,NULL,0,NULL,NULL 3736,2014741,779029,NULL,NULL,NULL,0,NULL,NULL 3737,150596,837536,NULL,NULL,NULL,0,NULL,NULL 3738,41178,438969,Good Answer Yearling Caucus Necromancer Nice Answer Necromancer Yearling Documentation User Good Answer Guru Nice Answer Yearling c++,NULL,NULL,0,NULL,NULL 3739,500467,1327941,NULL,NULL,NULL,0,NULL,NULL 3740,92990,207266,NULL,NULL,NULL,0,NULL,NULL 3741,308014,1063267,NULL,NULL,NULL,0,NULL,NULL 3742,185638,993737,NULL,NULL,NULL,0,NULL,NULL 3743,69697,57663,NULL,NULL,NULL,0,NULL,NULL 3744,311546,701047,NULL,NULL,NULL,0,NULL,NULL 3745,460669,1519817,NULL,NULL,NULL,0,NULL,NULL 3746,83981,156134,NULL,NULL,NULL,0,NULL,NULL 3747,311458,1290030,Popular Question,NULL,NULL,0,NULL,NULL 3748,23357,263882,Yearling Great Answer Caucus Constituent Good Answer Yearling Caucus Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 3749,409621,992017,Necromancer,NULL,NULL,0,NULL,NULL 3750,4894236,960626,Revival Yearling Notable Question Necromancer Popular Question Notable Question Self-Learner Necromancer Necromancer Yearling Enthusiast Popular Question Popular Question Necromancer Nice Answer Notable Question Yearling Popular Question Tumbleweed Nice Answer Popular Question Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 3751,738514,954940,Notable Question css3 Popular Question Nice Answer Enlightened Popular Question Yearling Caucus Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Great Answer Nice Answer Caucus Good Answer Yearling Guru javascript Nice Answer Enlightened Caucus Nice Answer Nice Answer Notable Question Good Answer Necromancer Good Question Nice Answer Enlightened flexbox Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3752,27102,420270,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 3753,8635116,731882,Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 3754,149009,731882,Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 3755,923377,1078560,Supporter Necromancer,NULL,NULL,0,NULL,NULL 3756,922837,1389889,NULL,NULL,NULL,0,NULL,NULL 3757,2040163,1351544,NULL,NULL,NULL,0,NULL,NULL 3758,579140,1186326,NULL,NULL,NULL,0,NULL,NULL 3759,126028,437958,Yearling,NULL,NULL,0,NULL,NULL 3760,204912,410102,Notable Question Nice Question Popular Question Nice Question Notable Question Famous Question Popular Question Good Answer Notable Question Popular Question Good Question Pundit Good Question Popular Question Popular Question Yearling Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Famous Question Famous Question Popular Question Famous Question Good Answer Notable Question Notable Question Popular Question Great Answer Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Nice Question Popular Question Announcer Popular Question Yearling Popular Question Popular Question Famous Question Documentation User Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Famous Question Popular Question Notable Question Popular Question Caucus Notable Question Nice Answer Enlightened Guru Famous Question Notable Question Yearling Good Question Great Answer Announcer Good Question Notable Question Nice Answer Enlightened Popular Question Nice Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3761,1364096,532212,Necromancer,NULL,NULL,0,NULL,NULL 3762,16007,10141,Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Popular Question Famous Question kendo-asp.net-mvc Yearling asp.net-mvc Nice Answer Enlightened Announcer Nice Answer Announcer Good Answer kendo-ui Yearling Good Answer Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 3763,300250,887802,NULL,NULL,NULL,0,NULL,NULL 3764,2688,274623,NULL,NULL,NULL,0,NULL,NULL 3765,126838,415025,Yearling Necromancer Yearling Necromancer Caucus Nice Answer Promoter Curious Census,NULL,NULL,0,NULL,NULL 3766,66881,413403,Revival Documentation User Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 3767,73915,133764,Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Announcer Yearling Announcer Revival Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 3768,1533259,886376,Popular Question,NULL,NULL,0,NULL,NULL 3769,761291,886376,Popular Question,NULL,NULL,0,NULL,NULL 3770,136334,1483285,NULL,NULL,NULL,0,NULL,NULL 3771,99604,114786,Nice Answer Curious Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 3772,442511,416622,Good Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 3773,855938,1424434,Editor Teacher Necromancer Nice Answer Supporter Yearling Good Answer Yearling Autobiographer Custodian,NULL,NULL,0,NULL,NULL 3774,271282,1123169,NULL,NULL,NULL,0,NULL,NULL 3775,55022,148926,Notable Question Nice Question Revival Yearling Yearling Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3776,122614,927554,Popular Question Guru Yearling Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 3777,619209,259657,Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 3778,20740,3971,NULL,NULL,NULL,0,NULL,NULL 3779,332551,957146,NULL,NULL,NULL,0,NULL,NULL 3780,1031670,913948,NULL,NULL,NULL,0,NULL,NULL 3781,467475,573950,NULL,NULL,NULL,0,NULL,NULL 3782,759182,1274303,NULL,NULL,NULL,0,NULL,NULL 3783,415382,1185895,NULL,NULL,NULL,0,NULL,NULL 3784,2848167,638546,Nice Answer Nice Question Yearling Nice Answer Investor Peer Pressure Popular Question Notable Question Good Answer Nice Question Citizen Patrol Good Question Nice Answer Revival Good Answer Good Question Necromancer Yearling Nice Answer Good Answer Great Answer Announcer Popular Question Notable Question Announcer Necromancer Announcer Good Answer Nice Answer Good Answer Great Answer Famous Question Popular Question Nice Question Necromancer Yearling Caucus Necromancer Announcer Notable Question Pundit Nice Answer Popular Question Necromancer,NULL,pConverting from href http docs python org library stdtypes html mapping types dict dict to list is made easy in Python Three examples ppre code gt gt Arthur Belling gt gt items Arthur Belling gt gt keys gt gt values Arthur Belling code pre The order of standard dict is not specified http stackoverflow com 9001529 638546 and the order of values can be in different from insertion order However one could sort the lists above https wiki python org moin HowTo Sorting or use OrderedDict see the first link pPhew Django documentation really does not have good example about this spent over hours to dig up all the pieces to understand how this works With that knowledge implemented project that makes possible to upload files and show them as list To download source for the project visit href https github com axelpale minimal django file upload example rel noreferrer https github com axelpale minimal django file upload example or clone it ppre code gt git clone https github com axelpale minimal django file upload example git code prep strongUpdate 2013 01 30 strong The source at GitHub has also implementation for Django in addition to Even though there is few changes the following tutorial is also useful for pp strongUpdate 2013 05 10 strong Implementation for Django at GitHub Minor changes in redirection in urls py and usage of url template tag in list html Thanks to href https github com hubert3 rel noreferrer hubert3 for the effort pp strongUpdate 2013 12 07 strong Django supported at GitHub One import changed in myapp urls py Thanks goes to href https github com Arthedian rel noreferrer Arthedian pp strongUpdate 2015 03 17 strong Django supported at GitHub thanks to href https github com aronysidoro rel noreferrer aronysidoro pp strongUpdate 2015 09 04 strong Django supported at GitHub thanks to href https github com nerogit rel noreferrer nerogit pp strongUpdate 2016 07 03 strong Django supported at GitHub thanks to href https github com daavve rel noreferrer daavve and href https github com nerogit rel noreferrer nerogit ph2Project tree h2pA basic Django project with single app and media directory for uploads ppre codeminimal django file upload example src myproject database sqlite db media myapp templates myapp list html forms py models py urls py views py init py manage py settings py urls py code preh21 Settings myproject settings py h2pTo upload and serve files you need to specify where Django stores uploaded files and from what URL Django serves them MEDIA ROOT and MEDIA URL are in settings py by default but they are empty See the first lines in href https docs djangoproject com en dev topics files rel noreferrer Django Managing Files for details Remember also set the database and add myapp to INSTALLED APPS ppre code import osBASE DIR os path dirname os path dirname file DATABASES default ENGINE django db backends sqlite3 NAME os path join BASE DIR database sqlite3 USER PASSWORD HOST PORT MEDIA ROOT os path join BASE DIR media MEDIA URL media INSTALLED APPS myapp code preh22 Model myproject myapp models py h2pNext you need model with FileField This particular field stores files to media documents 2011 12 24 based on current date and MEDIA ROOT See href https docs djangoproject com en dev ref models fields filefield rel noreferrer FileField reference ppre code coding utf from django db import modelsclass Document models Model docfile models FileField upload to documents code preh23 Form myproject myapp forms py h2pTo handle upload nicely you need form This form has only one field but that is enough See href https docs djangoproject com en dev ref forms fields filefield rel noreferrer Form FileField reference for details ppre code coding utf from django import formsclass DocumentForm forms Form docfile forms FileField label Select file help text max 42 megabytes code preh24 View myproject myapp views py h2pA view where all the magic happens Pay attention how coderequest FILES code are handled For me it was really hard to spot the fact that coderequest FILES docfile code can be saved to models FileField just like that The model save handles the storing of the file to the filesystem automatically ppre code coding utf from django shortcuts import render to responsefrom django template import RequestContextfrom django http import HttpResponseRedirectfrom django core urlresolvers import reversefrom myproject myapp models import Documentfrom myproject myapp forms import DocumentFormdef list request Handle file upload if request method POST form DocumentForm request POST request FILES if form is valid newdoc Document docfile request FILES docfile newdoc save Redirect to the document list after POST return HttpResponseRedirect reverse myapp views list else form DocumentForm empty unbound form Load documents for the list page documents Document objects all Render list page with the documents and the form return render to response myapp list html documents documents form form context instance RequestContext request code preh25 Project URLs myproject urls py h2pDjango does not serve MEDIA ROOT by default That would be dangerous in production environment But in development stage we could cut short Pay attention to the last line That line enables Django to serve files from MEDIA URL This works only in developement stage ppSee href https docs djangoproject com en dev howto static files django conf urls static static rel noreferrer django conf urls static static reference for details See also href https stackoverflow com questions 446026 django how do you serve media stylesheets and link to them within templates this discussion about serving media files ppre code coding utf from django conf urls import patterns include urlfrom django conf import settingsfrom django conf urls static import staticurlpatterns patterns include myapp urls static settings MEDIA URL document root settings MEDIA ROOT code preh26 App URLs myproject myapp urls py h2pTo make the view accessible you must specify urls for it Nothing special here ppre code coding utf from django conf urls import patterns urlurlpatterns patterns myapp views url list list name list code preh27 Template myproject myapp templates myapp list html h2pThe last part template for the list and the upload form below it The form must have enctype attribute set to multipart form data and method set to post to make upload to Django possible See href https docs djangoproject com en dev topics http file uploads rel noreferrer File Uploads documentation for details ppThe FileField has many attributes that can be used in templates document docfile url and document docfile name as in the template See more about these in href https docs djangoproject com en dev topics files using files in models rel noreferrer Using files in models article and href https docs djangoproject com en dev ref files file django core files File rel noreferrer The File object documentation ppre code lt DOCTYPE html gt lt html gt lt head gt lt meta charset utf gt lt title gt Minimal Django File Upload Example lt title gt lt head gt lt body gt lt List of uploaded documents gt if documents lt ul gt for document in documents lt li gt lt href document docfile url gt document docfile name lt gt lt li gt endfor lt ul gt else lt gt No documents lt gt endif lt Upload form Note enctype attribute gt lt form action url list method post enctype multipart form data gt csrf token lt gt form non field errors lt gt lt gt form docfile label tag form docfile help text lt gt lt gt form docfile errors form docfile lt gt lt gt lt input type submit value Upload gt lt gt lt form gt lt body gt lt html gt code preh28 Initialize h2pJust run syncdb and runserver ppre code gt cd myproject gt python manage py syncdb gt python manage py runserver code preh2Results h2pFinally everything is ready On default Django developement environment the list of uploaded documents can be seen at codelocalhost 8000 list code Today the files are uploaded to path to myproject media documents 2011 12 17 and can be opened from the list ppI hope this answer will help someone as much as it would have helped me In the database row is created that represents the file The row does not contain the binary data of the file but only stores the location of the file on the local server It is almost always better to store uploaded files into local directory instead of database because databases are usually not designed for serving files There is multiple tools to share those static files depending your tech stack See this django tutorial about serving static files https docs djangoproject com en 10 howto static files pA href https stackoverflow com 7267280 638546 solution without numpy etc dependencies was provided by kichik but due to href https docs python org tutorial floatingpoint html rel nofollow noreferrer the floating point arithmetics it often behaves unexpectedly As noted by href https stackoverflow com questions 7267226 range for floats 7267280 comment59825229 7267280 me and href https stackoverflow com questions 7267226 range for floats 7267280 comment45048932 7267287 blubberdiblub additional elements easily sneak into the result For example codenaive frange code would yield code0 999 code as its last value and thus yield 11 values in total ppA robust version is provided here ppre codedef frange jump Range for floats float Prevent yielding integers x0 epsilon jump yield yield always first value while epsilon lt x0 jump yield code prepBecause the multiplication the rounding errors do not accumulate The use of codeepsilon code takes care of possible rounding error of the multiplication even though issues of course might rise in the very small and very large ends Now as expected ppre code gt list frange gt gt len 10 code prepAnd with somewhat larger numbers ppre code gt list frange 1000000 gt 999999 gt len 10000000 code prepThe code is also available as href https gist github com axelpale 3e780ebdde4d99cbb69ffe8b1eada92c rel nofollow noreferrer GitHub Gist Thanks for pointing this out It led me to realize that the epsilon should depend on the jump so reviewed the algorithm and repaired the issue This new version is much more robust isn it,1,NULL,range for floats python range fractions decimal pIs there coderange code equivalent for floats in Python ppre code gt gt gt range gt gt gt range Traceback most recent call last File lt pyshell 10 gt line in lt module gt range ValueError range step argument must not be zero code pre pA href https stackoverflow com 7267280 638546 solution without numpy etc dependencies was provided by kichik but due to href https docs python org tutorial floatingpoint html rel nofollow noreferrer the floating point arithmetics it often behaves unexpectedly As noted by href https stackoverflow com questions 7267226 range for floats 7267280 comment59825229 7267280 me and href https stackoverflow com questions 7267226 range for floats 7267280 comment45048932 7267287 blubberdiblub additional elements easily sneak into the result For example codenaive frange code would yield code0 999 code as its last value and thus yield 11 values in total ppA robust version is provided here ppre codedef frange jump Range for floats float Prevent yielding integers x0 epsilon jump yield yield always first value while epsilon lt x0 jump yield code prepBecause the multiplication the rounding errors do not accumulate The use of codeepsilon code takes care of possible rounding error of the multiplication even though issues of course might rise in the very small and very large ends Now as expected ppre code gt list frange gt gt len 10 code prepAnd with somewhat larger numbers ppre code gt list frange 1000000 gt 999999 gt len 10000000 code prepThe code is also available as href https gist github com axelpale 3e780ebdde4d99cbb69ffe8b1eada92c rel nofollow noreferrer GitHub Gist 3785,439438,638546,Nice Answer Nice Question Yearling Nice Answer Investor Peer Pressure Popular Question Notable Question Good Answer Nice Question Citizen Patrol Good Question Nice Answer Revival Good Answer Good Question Necromancer Yearling Nice Answer Good Answer Great Answer Announcer Popular Question Notable Question Announcer Necromancer Announcer Good Answer Nice Answer Good Answer Great Answer Famous Question Popular Question Nice Question Necromancer Yearling Caucus Necromancer Announcer Notable Question Pundit Nice Answer Popular Question Necromancer,NULL,pConverting from href http docs python org library stdtypes html mapping types dict dict to list is made easy in Python Three examples ppre code gt gt Arthur Belling gt gt items Arthur Belling gt gt keys gt gt values Arthur Belling code pre The order of standard dict is not specified http stackoverflow com 9001529 638546 and the order of values can be in different from insertion order However one could sort the lists above https wiki python org moin HowTo Sorting or use OrderedDict see the first link pPhew Django documentation really does not have good example about this spent over hours to dig up all the pieces to understand how this works With that knowledge implemented project that makes possible to upload files and show them as list To download source for the project visit href https github com axelpale minimal django file upload example rel noreferrer https github com axelpale minimal django file upload example or clone it ppre code gt git clone https github com axelpale minimal django file upload example git code prep strongUpdate 2013 01 30 strong The source at GitHub has also implementation for Django in addition to Even though there is few changes the following tutorial is also useful for pp strongUpdate 2013 05 10 strong Implementation for Django at GitHub Minor changes in redirection in urls py and usage of url template tag in list html Thanks to href https github com hubert3 rel noreferrer hubert3 for the effort pp strongUpdate 2013 12 07 strong Django supported at GitHub One import changed in myapp urls py Thanks goes to href https github com Arthedian rel noreferrer Arthedian pp strongUpdate 2015 03 17 strong Django supported at GitHub thanks to href https github com aronysidoro rel noreferrer aronysidoro pp strongUpdate 2015 09 04 strong Django supported at GitHub thanks to href https github com nerogit rel noreferrer nerogit pp strongUpdate 2016 07 03 strong Django supported at GitHub thanks to href https github com daavve rel noreferrer daavve and href https github com nerogit rel noreferrer nerogit ph2Project tree h2pA basic Django project with single app and media directory for uploads ppre codeminimal django file upload example src myproject database sqlite db media myapp templates myapp list html forms py models py urls py views py init py manage py settings py urls py code preh21 Settings myproject settings py h2pTo upload and serve files you need to specify where Django stores uploaded files and from what URL Django serves them MEDIA ROOT and MEDIA URL are in settings py by default but they are empty See the first lines in href https docs djangoproject com en dev topics files rel noreferrer Django Managing Files for details Remember also set the database and add myapp to INSTALLED APPS ppre code import osBASE DIR os path dirname os path dirname file DATABASES default ENGINE django db backends sqlite3 NAME os path join BASE DIR database sqlite3 USER PASSWORD HOST PORT MEDIA ROOT os path join BASE DIR media MEDIA URL media INSTALLED APPS myapp code preh22 Model myproject myapp models py h2pNext you need model with FileField This particular field stores files to media documents 2011 12 24 based on current date and MEDIA ROOT See href https docs djangoproject com en dev ref models fields filefield rel noreferrer FileField reference ppre code coding utf from django db import modelsclass Document models Model docfile models FileField upload to documents code preh23 Form myproject myapp forms py h2pTo handle upload nicely you need form This form has only one field but that is enough See href https docs djangoproject com en dev ref forms fields filefield rel noreferrer Form FileField reference for details ppre code coding utf from django import formsclass DocumentForm forms Form docfile forms FileField label Select file help text max 42 megabytes code preh24 View myproject myapp views py h2pA view where all the magic happens Pay attention how coderequest FILES code are handled For me it was really hard to spot the fact that coderequest FILES docfile code can be saved to models FileField just like that The model save handles the storing of the file to the filesystem automatically ppre code coding utf from django shortcuts import render to responsefrom django template import RequestContextfrom django http import HttpResponseRedirectfrom django core urlresolvers import reversefrom myproject myapp models import Documentfrom myproject myapp forms import DocumentFormdef list request Handle file upload if request method POST form DocumentForm request POST request FILES if form is valid newdoc Document docfile request FILES docfile newdoc save Redirect to the document list after POST return HttpResponseRedirect reverse myapp views list else form DocumentForm empty unbound form Load documents for the list page documents Document objects all Render list page with the documents and the form return render to response myapp list html documents documents form form context instance RequestContext request code preh25 Project URLs myproject urls py h2pDjango does not serve MEDIA ROOT by default That would be dangerous in production environment But in development stage we could cut short Pay attention to the last line That line enables Django to serve files from MEDIA URL This works only in developement stage ppSee href https docs djangoproject com en dev howto static files django conf urls static static rel noreferrer django conf urls static static reference for details See also href https stackoverflow com questions 446026 django how do you serve media stylesheets and link to them within templates this discussion about serving media files ppre code coding utf from django conf urls import patterns include urlfrom django conf import settingsfrom django conf urls static import staticurlpatterns patterns include myapp urls static settings MEDIA URL document root settings MEDIA ROOT code preh26 App URLs myproject myapp urls py h2pTo make the view accessible you must specify urls for it Nothing special here ppre code coding utf from django conf urls import patterns urlurlpatterns patterns myapp views url list list name list code preh27 Template myproject myapp templates myapp list html h2pThe last part template for the list and the upload form below it The form must have enctype attribute set to multipart form data and method set to post to make upload to Django possible See href https docs djangoproject com en dev topics http file uploads rel noreferrer File Uploads documentation for details ppThe FileField has many attributes that can be used in templates document docfile url and document docfile name as in the template See more about these in href https docs djangoproject com en dev topics files using files in models rel noreferrer Using files in models article and href https docs djangoproject com en dev ref files file django core files File rel noreferrer The File object documentation ppre code lt DOCTYPE html gt lt html gt lt head gt lt meta charset utf gt lt title gt Minimal Django File Upload Example lt title gt lt head gt lt body gt lt List of uploaded documents gt if documents lt ul gt for document in documents lt li gt lt href document docfile url gt document docfile name lt gt lt li gt endfor lt ul gt else lt gt No documents lt gt endif lt Upload form Note enctype attribute gt lt form action url list method post enctype multipart form data gt csrf token lt gt form non field errors lt gt lt gt form docfile label tag form docfile help text lt gt lt gt form docfile errors form docfile lt gt lt gt lt input type submit value Upload gt lt gt lt form gt lt body gt lt html gt code preh28 Initialize h2pJust run syncdb and runserver ppre code gt cd myproject gt python manage py syncdb gt python manage py runserver code preh2Results h2pFinally everything is ready On default Django developement environment the list of uploaded documents can be seen at codelocalhost 8000 list code Today the files are uploaded to path to myproject media documents 2011 12 17 and can be opened from the list ppI hope this answer will help someone as much as it would have helped me In the database row is created that represents the file The row does not contain the binary data of the file but only stores the location of the file on the local server It is almost always better to store uploaded files into local directory instead of database because databases are usually not designed for serving files There is multiple tools to share those static files depending your tech stack See this django tutorial about serving static files https docs djangoproject com en 10 howto static files pA href https stackoverflow com 7267280 638546 solution without numpy etc dependencies was provided by kichik but due to href https docs python org tutorial floatingpoint html rel nofollow noreferrer the floating point arithmetics it often behaves unexpectedly As noted by href https stackoverflow com questions 7267226 range for floats 7267280 comment59825229 7267280 me and href https stackoverflow com questions 7267226 range for floats 7267280 comment45048932 7267287 blubberdiblub additional elements easily sneak into the result For example codenaive frange code would yield code0 999 code as its last value and thus yield 11 values in total ppA robust version is provided here ppre codedef frange jump Range for floats float Prevent yielding integers x0 epsilon jump yield yield always first value while epsilon lt x0 jump yield code prepBecause the multiplication the rounding errors do not accumulate The use of codeepsilon code takes care of possible rounding error of the multiplication even though issues of course might rise in the very small and very large ends Now as expected ppre code gt list frange gt gt len 10 code prepAnd with somewhat larger numbers ppre code gt list frange 1000000 gt 999999 gt len 10000000 code prepThe code is also available as href https gist github com axelpale 3e780ebdde4d99cbb69ffe8b1eada92c rel nofollow noreferrer GitHub Gist Thanks for pointing this out It led me to realize that the epsilon should depend on the jump so reviewed the algorithm and repaired the issue This new version is much more robust isn it,1,NULL,range for floats python range fractions decimal pIs there coderange code equivalent for floats in Python ppre code gt gt gt range gt gt gt range Traceback most recent call last File lt pyshell 10 gt line in lt module gt range ValueError range step argument must not be zero code pre pA href https stackoverflow com 7267280 638546 solution without numpy etc dependencies was provided by kichik but due to href https docs python org tutorial floatingpoint html rel nofollow noreferrer the floating point arithmetics it often behaves unexpectedly As noted by href https stackoverflow com questions 7267226 range for floats 7267280 comment59825229 7267280 me and href https stackoverflow com questions 7267226 range for floats 7267280 comment45048932 7267287 blubberdiblub additional elements easily sneak into the result For example codenaive frange code would yield code0 999 code as its last value and thus yield 11 values in total ppA robust version is provided here ppre codedef frange jump Range for floats float Prevent yielding integers x0 epsilon jump yield yield always first value while epsilon lt x0 jump yield code prepBecause the multiplication the rounding errors do not accumulate The use of codeepsilon code takes care of possible rounding error of the multiplication even though issues of course might rise in the very small and very large ends Now as expected ppre code gt list frange gt gt len 10 code prepAnd with somewhat larger numbers ppre code gt list frange 1000000 gt 999999 gt len 10000000 code prepThe code is also available as href https gist github com axelpale 3e780ebdde4d99cbb69ffe8b1eada92c rel nofollow noreferrer GitHub Gist 3786,139542,948706,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 3787,1344797,639893,Critic,NULL,NULL,0,NULL,NULL 3788,194866,1147567,NULL,NULL,NULL,0,NULL,NULL 3789,285514,839549,Nice Answer Enlightened Nice Answer Necromancer Popular Question Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened python Notable Question Good Answer Good Answer Popular Question Yearling Famous Question Nice Answer Enlightened Nice Answer Good Answer Nice Question Nice Question Guru Nice Answer django-forms Nice Answer Enlightened Necromancer Good Answer django Good Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 3790,18365,54082,Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Necromancer Popular Question Great Question Yearling Notable Question Good Question Necromancer Revival Notable Question Yearling Necromancer Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 3791,1564595,656711,NULL,NULL,NULL,0,NULL,NULL 3792,166941,1530846,Editor Excavator Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 3793,1172704,1143322,Yearling Good Answer elasticsearch Yearling Guru Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 3794,243487,555162,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 3795,167914,296722,Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 3796,334753,745479,NULL,NULL,NULL,0,NULL,NULL 3797,108144,1125778,NULL,NULL,NULL,0,NULL,NULL 3798,233755,1384005,NULL,NULL,NULL,0,NULL,NULL 3799,4864807,1384005,NULL,NULL,NULL,0,NULL,NULL 3800,2432164,1136109,Nice Question Excavator Popular Question Notable Question Autobiographer Famous Question Documentation User Curious,NULL,NULL,0,NULL,NULL 3801,256483,1262639,Notable Question,NULL,NULL,0,NULL,NULL 3802,1052670,532670,Peer Pressure Caucus,NULL,NULL,0,NULL,NULL 3803,339138,532670,Peer Pressure Caucus,NULL,NULL,0,NULL,NULL 3804,62769,1212246,Nice Answer Yearling Nice Answer Yearling Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 3805,3276819,1212246,Nice Answer Yearling Nice Answer Yearling Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 3806,64221,254775,Good Answer Nice Answer Curious Yearling,NULL,NULL,0,NULL,NULL 3807,802804,1291029,Popular Question,NULL,NULL,0,NULL,NULL 3808,317342,364279,NULL,NULL,NULL,0,NULL,NULL 3809,204798,456060,NULL,NULL,NULL,0,NULL,NULL 3810,140828,769189,Self-Learner Caucus,NULL,NULL,0,NULL,NULL 3811,32488,1059396,Popular Question Curious Yearling Mortarboard Organizer Yearling Informed Custodian Custodian Custodian Yearling Nice Question Civic Duty Explainer Yearling Enthusiast Famous Question Caucus Constituent Notable Question Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 3812,130611,1174832,NULL,NULL,NULL,0,NULL,NULL 3813,84064,837213,NULL,NULL,NULL,0,NULL,NULL 3814,213804,450113,Notable Question Popular Question Notable Question Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 3815,2607526,438694,Yearling Good Answer Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 3816,171609,438694,Yearling Good Answer Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 3817,892457,478303,Famous Question,NULL,NULL,0,NULL,NULL 3818,190668,24468,Good Answer Nice Answer Nice Answer Good Question Pundit Yearling Cleanup Popular Question Vox Populi arrays Custodian Good Answer Guru Nice Answer ruby Peer Pressure Sportsmanship Necromancer Nice Answer Nice Answer Necromancer Nice Answer Necromancer Nice Answer Enlightened Necromancer Necromancer Yearling Necromancer Necromancer Nice Answer Nice Answer Necromancer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 3819,1437668,1049621,Necromancer,NULL,NULL,0,NULL,NULL 3820,10715072,954044,NULL,NULL,NULL,0,NULL,NULL 3821,52508,1094858,Tumbleweed,NULL,NULL,0,NULL,NULL 3822,37809,1377051,NULL,NULL,NULL,0,NULL,NULL 3823,18476,1196,Nice Answer Enlightened Great Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Good Question Good Answer Nice Answer Good Answer Good Answer Great Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Nice Question Good Question Famous Question Nice Question Great Question Good Answer Nice Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 3824,60739,1048773,NULL,NULL,NULL,0,NULL,NULL 3825,63573,1034043,NULL,NULL,NULL,0,NULL,NULL 3826,324214,711647,NULL,NULL,NULL,0,NULL,NULL 3827,83790,770519,NULL,NULL,NULL,0,NULL,NULL 3828,133673,1509304,NULL,NULL,NULL,0,NULL,NULL 3829,28429,742825,NULL,NULL,NULL,0,NULL,NULL 3830,1126993,125585,Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3831,41025,944163,Yearling,NULL,NULL,0,NULL,NULL 3832,549004,351707,NULL,NULL,NULL,0,NULL,NULL 3833,1693408,947306,NULL,NULL,NULL,0,NULL,NULL 3834,251611,947306,NULL,NULL,NULL,0,NULL,NULL 3835,38790,19081,Nice Answer Enlightened Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 3836,267785,425281,Popular Question Notable Question Famous Question Yearling Caucus Good Question Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 3837,207308,1315188,NULL,NULL,NULL,0,NULL,NULL 3838,9380453,1140277,Student,NULL,NULL,0,NULL,NULL 3839,23465,836786,NULL,NULL,NULL,0,NULL,NULL 3840,61024,22432,NULL,NULL,NULL,0,NULL,NULL 3841,371959,929437,Popular Question Self-Learner cuda Good Answer Announcer Yearling Announcer Good Answer Yearling Nice Answer Census Announcer Notable Question Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 3842,350385,1068202,NULL,NULL,NULL,0,NULL,NULL 3843,168377,380827,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 3844,364158,256648,NULL,NULL,NULL,0,NULL,NULL 3845,18075,196218,Autobiographer Supporter,NULL,NULL,0,NULL,NULL 3846,1028384,442709,Notable Question,NULL,NULL,0,NULL,NULL 3847,109256,504248,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 3848,458332,1370246,NULL,NULL,NULL,0,NULL,NULL 3849,1386247,1203413,Popular Question Popular Question Good Question Curious,NULL,NULL,0,NULL,NULL 3850,103884,522807,NULL,NULL,NULL,0,NULL,NULL 3851,85709,939454,NULL,NULL,NULL,0,NULL,NULL 3852,70318,404789,NULL,NULL,NULL,0,NULL,NULL 3853,909661,816230,Revival Necromancer Nice Answer Yearling Yearling Necromancer Good Answer Good Answer Yearling Guru Yearling Notable Question Citizen Patrol Custodian Custodian Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 3854,91371,939341,Popular Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 3855,307421,1538361,NULL,NULL,NULL,0,NULL,NULL 3856,158780,404949,Revival Yearling Notable Question Nice Answer Famous Question Revival Notable Question Popular Question Popular Question Notable Question Popular Question Caucus Constituent Popular Question Self-Learner Caucus Yearling Popular Question Caucus Constituent Popular Question,NULL,pA simple option is to check for matches before you replace ppre codevar regex var newStr str var replaced str search regex gt if replaced newStr newStr replace regex code prepIf you don want that either you can abuse the codereplace code callback to achieve that in single pass ppre codevar replaced false var newStr str replace function token replaced true return code pre your single pass solution wont work in general ve added an answer pTry this ppre codefunction someFunction site return site replace code pre replace will be is valid path and it shouldn be stripped pHave you tried ppre coderuby path to test file rb name test method name code pre bundle exec ruby lib path to name test fit,0,NULL,NULL 3857,2119111,263070,NULL,NULL,NULL,0,NULL,NULL 3858,308425,457472,Yearling,NULL,NULL,0,NULL,NULL 3859,19652,1348546,NULL,NULL,NULL,0,NULL,NULL 3860,227677,641076,NULL,NULL,NULL,0,NULL,NULL 3861,129968,252585,Yearling Guru Scholar Yearling Necromancer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 3862,1713972,252585,Yearling Guru Scholar Yearling Necromancer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 3863,418468,1104000,Notable Question Famous Question Popular Question Popular Question Caucus Constituent Necromancer Popular Question Custodian Caucus Popular Question Custodian Popular Question Famous Question Caucus Constituent Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3864,108657,154527,Custodian Nice Answer Popular Question Custodian Nice Answer Yearling Notable Question Notable Question Caucus Constituent Nice Answer Yearling Popular Question Nice Answer Enlightened Nice Answer Announcer Popular Question Yearling Notable Question Popular Question Announcer Good Answer Announcer,NULL,NULL,0,NULL,NULL 3865,408829,1168698,Autobiographer Commentator Critic Yearling Yearling Announcer Announcer Custodian Documentation User Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 3866,264797,358524,Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 3867,416619,376296,NULL,NULL,NULL,0,NULL,NULL 3868,908106,183331,Necromancer Nice Answer Good Answer Yearling Necromancer Necromancer Necromancer Good Answer Yearling Great Answer Revival Necromancer Populist Yearling,NULL,NULL,0,NULL,NULL 3869,443828,1340335,NULL,NULL,NULL,0,NULL,NULL 3870,443827,995015,Notable Question,NULL,NULL,0,NULL,NULL 3871,20636,152432,NULL,NULL,NULL,0,NULL,NULL 3872,1428726,895915,Supporter,NULL,NULL,0,NULL,NULL 3873,893249,431112,Popular Question,NULL,NULL,0,NULL,NULL 3874,3611748,860088,NULL,NULL,NULL,0,NULL,NULL 3875,570281,860088,NULL,NULL,NULL,0,NULL,NULL 3876,8227017,973561,NULL,NULL,NULL,0,NULL,NULL 3877,8248194,973561,NULL,NULL,NULL,0,NULL,NULL 3878,355076,517886,Curious Notable Question Nice Answer Enlightened Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3879,152135,131397,Tag Editor,NULL,NULL,0,NULL,NULL 3880,34417,786714,Announcer Yearling Good Answer Yearling Announcer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 3881,394653,665242,NULL,NULL,NULL,0,NULL,NULL 3882,49335,43542,Yearling,NULL,NULL,0,NULL,NULL 3883,72145,373258,NULL,NULL,NULL,0,NULL,NULL 3884,788543,1130247,Supporter Teacher Editor Student,NULL,NULL,0,NULL,NULL 3885,434665,1205805,Popular Question,NULL,NULL,0,NULL,NULL 3886,338756,359287,Great Answer Popular Question Custodian Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 3887,8611009,548072,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 3888,8339,1290627,Necromancer Yearling Good Answer Scholar Caucus Yearling Revival Announcer Yearling,NULL,pI had the same need to serialize into json Take look at href https stackoverflow com questions 2441796 how to discover table properties from sqlalchemy mapped object this question It shows how to discover columns programmatically So from that created the code below It works for me and ll be using it in my web app Happy coding ppre codedef to json inst cls Jsonify the sql alchemy query result convert dict add your coversions for things like datetime and what not that aren serializable dict for in cls table columns getattr inst name if type in convert keys and is not None try name convert type except name Error Failed to covert using str convert type elif is None name str else name return json dumps class Person base tablename person id Column Integer Sequence person id seq primary key True first name Column Text last name Column Text email Column Text def json self return to json self self class code pre Here similar solution https wakatime com blog 32 part sqlalchemy models to json h1A flat implementation h1pYou could use something like this ppre codefrom sqlalchemy ext declarative import DeclarativeMetaclass AlchemyEncoder json JSONEncoder def default self obj if isinstance obj class DeclarativeMeta an SQLAlchemy class fields for field in for in dir obj if not startswith and metadata data obj getattribute field try json dumps data this will fail on non encodable values like other classes fields field data except TypeError fields field None json encodable dict return fields return json JSONEncoder default self obj code prepand then convert to JSON using ppre codec YourAlchemyClass print json dumps cls AlchemyEncoder code prepIt will ignore fields that are not encodable set them to None ppIt doesn auto expand relations since this could lead to self references and loop forever ph1A recursive non circular implementation h1pIf however you rather loop forever you could use ppre codefrom sqlalchemy ext declarative import DeclarativeMeta def new alchemy encoder visited objs class AlchemyEncoder json JSONEncoder def default self obj if isinstance obj class DeclarativeMeta don re visit self if obj in visited objs return None visited objs append obj an SQLAlchemy class fields for field in for in dir obj if not startswith and metadata fields field obj getattribute field json encodable dict return fields return json JSONEncoder default self obj return AlchemyEncoder code prepAnd then encode objects using ppre codeprint json dumps cls new alchemy encoder check circular False code prepThis would encode all children and all their children and all their children Potentially encode your entire database basically When it reaches something its encoded before it will encode it as None ph1A recursive possibly circular selective implementation h1pAnother alternative probably better is to be able to specify the fields you want to expand ppre codedef new alchemy encoder revisit self False fields to expand visited objs class AlchemyEncoder json JSONEncoder def default self obj if isinstance obj class DeclarativeMeta don re visit self if revisit self if obj in visited objs return None visited objs append obj go through each field in this SQLalchemy class fields for field in for in dir obj if not startswith and metadata val obj getattribute field is this field another SQLalchemy object or list of SQLalchemy objects if isinstance val class DeclarativeMeta or isinstance val list and len val gt and isinstance val class DeclarativeMeta unless we re expanding this field stop here if field not in fields to expand not expanding this field set it to None and continue fields field None continue fields field val json encodable dict return fields return json JSONEncoder default self obj return AlchemyEncoder code prepYou can now call it with ppre codeprint json dumps cls new alchemy encoder False parents check circular False code prepTo only expand SQLAlchemy fields called parents for example And yet another solution https wakatime com blog 32 part sqlalchemy models to json,0,NULL,NULL 3889,158329,918692,NULL,NULL,NULL,0,NULL,NULL 3890,240855,858855,Yearling Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3891,54414,562772,Teacher Supporter,NULL,NULL,0,NULL,NULL 3892,3048544,153399,Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Taxonomist Notable Question Popular Question Necromancer Yearling Popular Question Famous Question Popular Question django Famous Question Good Answer Good Question Yearling Census Famous Question Good Question Popular Question Notable Question Popular Question Nice Question Popular Question Yearling Guru Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3893,242351,153399,Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Taxonomist Notable Question Popular Question Necromancer Yearling Popular Question Famous Question Popular Question django Famous Question Good Answer Good Question Yearling Census Famous Question Good Question Popular Question Notable Question Popular Question Nice Question Popular Question Yearling Guru Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3894,677459,492177,NULL,NULL,NULL,0,NULL,NULL 3895,118201,803727,Yearling,NULL,NULL,0,NULL,NULL 3896,176705,238624,Enthusiast Popular Question Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 3897,12277,87195,NULL,NULL,NULL,0,NULL,NULL 3898,203701,770275,NULL,NULL,NULL,0,NULL,NULL 3899,26595,487333,Necromancer,NULL,NULL,0,NULL,NULL 3900,1226437,1374760,Editor Student,NULL,NULL,0,NULL,NULL 3901,54468,1092940,Yearling Editor Necromancer Citizen Patrol Revival Nice Answer Announcer Documentation User Yearling Necromancer Revival Necromancer Yearling Necromancer Nice Answer Good Answer,NULL,pI ran into this same problem myself This is caused by quirk in how transactions are handled in the newer versions of Django coupled with unittest that intentionally triggers an exception ppI had unittest that checked to make sure unique column constraint was enforced by purposefully triggering an IntegrityError exception ppre codedef test constraint self try Duplicates should be prevented models Question objects create domain self domain slug barks self fail Duplicate question allowed except IntegrityError pass do more model stuff code prepIn Django this works fine However in Django each test is wrapped in transaction so if an exception occurs it breaks the transaction until you explicitly roll it back Therefore any further ORM operations in that transaction such as my codedo more model stuff code will fail with that codedjango db transaction TransactionManagementError code exception ppLike caio mentioned in the comments the solution is to capture your exception with codetransaction atomic code like ppre codefrom django db import transactiondef test constraint self try Duplicates should be prevented with transaction atomic models Question objects create domain self domain slug barks self fail Duplicate question allowed except IntegrityError pass code prepThat will prevent the purposefully thrown exception from breaking the entire unittest transaction For me already had transaction atomic block but got this error and had no idea why took this answer advice and put nested atomic block inside of my atomic block around the trouble area After that it gave detailed error of the integrity error hit allowing me to fix my code and do what was trying to do pUse codecryptography code codepycrypto code is not in active development anymore and if possible you should be using cryptography Since June it possible to generate SSH public keys as well ppre codefrom cryptography hazmat primitives import serialization as crypto serializationfrom cryptography hazmat primitives asymmetric import rsafrom cryptography hazmat backends import default backend as crypto default backendkey rsa generate private key backend crypto default backend public exponent 65537 key size 2048 private key key private bytes crypto serialization Encoding PEM crypto serialization PrivateFormat PKCS8 crypto serialization NoEncryption public key key public key public bytes crypto serialization Encoding OpenSSH crypto serialization PublicFormat OpenSSH code prepNote You need at least version code1 code This is the best available it is used currently in major projects and for 2018 at least this should be the accepted answer Most of the other content in this question has aged significantly,0,NULL,NULL 3902,8033290,1092940,Yearling Editor Necromancer Citizen Patrol Revival Nice Answer Announcer Documentation User Yearling Necromancer Revival Necromancer Yearling Necromancer Nice Answer Good Answer,NULL,pI ran into this same problem myself This is caused by quirk in how transactions are handled in the newer versions of Django coupled with unittest that intentionally triggers an exception ppI had unittest that checked to make sure unique column constraint was enforced by purposefully triggering an IntegrityError exception ppre codedef test constraint self try Duplicates should be prevented models Question objects create domain self domain slug barks self fail Duplicate question allowed except IntegrityError pass do more model stuff code prepIn Django this works fine However in Django each test is wrapped in transaction so if an exception occurs it breaks the transaction until you explicitly roll it back Therefore any further ORM operations in that transaction such as my codedo more model stuff code will fail with that codedjango db transaction TransactionManagementError code exception ppLike caio mentioned in the comments the solution is to capture your exception with codetransaction atomic code like ppre codefrom django db import transactiondef test constraint self try Duplicates should be prevented with transaction atomic models Question objects create domain self domain slug barks self fail Duplicate question allowed except IntegrityError pass code prepThat will prevent the purposefully thrown exception from breaking the entire unittest transaction For me already had transaction atomic block but got this error and had no idea why took this answer advice and put nested atomic block inside of my atomic block around the trouble area After that it gave detailed error of the integrity error hit allowing me to fix my code and do what was trying to do pUse codecryptography code codepycrypto code is not in active development anymore and if possible you should be using cryptography Since June it possible to generate SSH public keys as well ppre codefrom cryptography hazmat primitives import serialization as crypto serializationfrom cryptography hazmat primitives asymmetric import rsafrom cryptography hazmat backends import default backend as crypto default backendkey rsa generate private key backend crypto default backend public exponent 65537 key size 2048 private key key private bytes crypto serialization Encoding PEM crypto serialization PrivateFormat PKCS8 crypto serialization NoEncryption public key key public key public bytes crypto serialization Encoding OpenSSH crypto serialization PublicFormat OpenSSH code prepNote You need at least version code1 code This is the best available it is used currently in major projects and for 2018 at least this should be the accepted answer Most of the other content in this question has aged significantly,0,NULL,NULL 3903,611640,1283447,NULL,NULL,NULL,0,NULL,NULL 3904,185173,47041,NULL,NULL,NULL,0,NULL,NULL 3905,1097660,852410,NULL,NULL,NULL,0,NULL,NULL 3906,162997,495384,Yearling Custodian Announcer Nice Answer Necromancer Yearling Necromancer Peer Pressure Yearling,NULL,NULL,0,NULL,NULL 3907,714,595714,NULL,NULL,NULL,0,NULL,NULL 3908,431979,118094,Yearling Good Answer,NULL,NULL,0,NULL,NULL 3909,19974,1493917,NULL,NULL,NULL,0,NULL,NULL 3910,155675,1158392,Popular Question,NULL,NULL,0,NULL,NULL 3911,25404,381895,Yearling Disciplined Custodian Custodian,NULL,NULL,0,NULL,NULL 3912,216752,1280326,NULL,NULL,NULL,0,NULL,NULL 3913,5604585,308529,NULL,NULL,NULL,0,NULL,NULL 3914,891397,950096,NULL,NULL,NULL,0,NULL,NULL 3915,86944,51567,Famous Question Favorite Question Yearling Yearling Nice Answer Great Question,NULL,NULL,0,NULL,NULL 3916,92088,90123,Yearling Custodian Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 3917,750678,438737,Popular Question Nice Answer Tenacious Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Inquisitive Popular Question Popular Question Custodian Unsung Hero Popular Question Caucus Constituent Popular Question Notable Question Notable Question Self-Learner Popular Question Famous Question Popular Question Popular Question Popular Question Caucus Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 3918,433969,134245,Notable Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened objective-c Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 3919,154279,50156,NULL,NULL,NULL,0,NULL,NULL 3920,107021,699008,NULL,NULL,NULL,0,NULL,NULL 3921,135939,1172446,NULL,NULL,NULL,0,NULL,NULL 3922,235716,1379774,NULL,NULL,NULL,0,NULL,NULL 3923,286955,704910,NULL,NULL,NULL,0,NULL,NULL 3924,242009,910005,NULL,NULL,NULL,0,NULL,NULL 3925,291645,19317,Census Editor Organizer,NULL,NULL,0,NULL,NULL 3926,791085,820152,NULL,NULL,NULL,0,NULL,NULL 3927,54570,2958,Nice Question Notable Question Good Answer Peer Pressure Yearling Nice Question Notable Question Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 3928,739645,101120,NULL,NULL,NULL,0,NULL,NULL 3929,23797,194105,Necromancer Civic Duty Notable Question Notable Question Yearling Nice Question Popular Question Revival Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 3930,89600,1510029,Tumbleweed,NULL,NULL,0,NULL,NULL 3931,661317,1478794,NULL,NULL,NULL,0,NULL,NULL 3932,214276,255796,NULL,NULL,NULL,0,NULL,NULL 3933,160688,108648,Yearling Yearling Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 3934,3234461,367495,Yearling Popular Question Nice Question Curious,NULL,NULL,0,NULL,NULL 3935,3802289,367495,Yearling Popular Question Nice Question Curious,NULL,NULL,0,NULL,NULL 3936,29406,367495,Yearling Popular Question Nice Question Curious,NULL,NULL,0,NULL,NULL 3937,906538,72995,Good Answer Yearling Good Answer Necromancer Guru Yearling Guru Yearling Nice Answer Great Question Good Answer,NULL,NULL,0,NULL,NULL 3938,885800,1524695,NULL,NULL,NULL,0,NULL,NULL 3939,2009853,1524695,NULL,NULL,NULL,0,NULL,NULL 3940,1387640,584909,Yearling Notable Question Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 3941,180616,565911,Nice Question Critic Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 3942,251252,102462,Yearling Notable Question,NULL,NULL,0,NULL,NULL 3943,61447,534275,Announcer Commentator Revival Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 3944,227512,680244,Tumbleweed,NULL,NULL,0,NULL,NULL 3945,4027016,313636,Critic Census,NULL,NULL,0,NULL,NULL 3946,97452,1402081,NULL,NULL,NULL,0,NULL,NULL 3947,589394,835458,Enthusiast,NULL,NULL,0,NULL,NULL 3948,199850,81212,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 3949,2973583,1164275,NULL,NULL,NULL,0,NULL,NULL 3950,284287,1164275,NULL,NULL,NULL,0,NULL,NULL 3951,32948,266684,NULL,NULL,NULL,0,NULL,NULL 3952,17254,219238,Nice Answer Enlightened Good Answer Guru Good Answer Custodian Yearling Nice Answer Guru Guru Necromancer Yearling Announcer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 3953,192521,689708,Yearling,NULL,NULL,0,NULL,NULL 3954,90634,1150577,Nice Answer,NULL,NULL,0,NULL,NULL 3955,204499,991679,NULL,NULL,NULL,0,NULL,NULL 3956,1005794,621965,NULL,NULL,NULL,0,NULL,NULL 3957,839593,562910,Popular Question Nice Question Famous Question Popular Question Famous Question Popular Question Yearling Good Question Inquisitive Notable Question,NULL,NULL,0,NULL,NULL 3958,1349083,518971,NULL,NULL,NULL,0,NULL,NULL 3959,254770,1128240,Yearling,NULL,NULL,0,NULL,NULL 3960,1455034,177203,Civic Duty Revival Announcer,NULL,NULL,0,NULL,NULL 3961,270454,40478,Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 3962,234941,54423,Civic Duty Yearling Revival Popular Question Caucus Constituent Notable Question Yearling Notable Question Nice Question Necromancer Revival Census Nice Question Yearling Announcer Announcer Popular Question Necromancer Popular Question Census Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 3963,241620,1530028,NULL,NULL,NULL,0,NULL,NULL 3964,1169034,927561,Custodian,NULL,NULL,0,NULL,NULL 3965,411303,108569,Popular Question Nice Answer Famous Question Notable Question Yearling Notable Question Notable Question Famous Question Caucus Nice Question Famous Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 3966,807372,1118079,NULL,NULL,NULL,0,NULL,NULL 3967,49887,594831,NULL,NULL,NULL,0,NULL,NULL 3968,194480,724011,NULL,NULL,NULL,0,NULL,NULL 3969,602961,160156,Yearling,NULL,NULL,0,NULL,NULL 3970,7428627,53314,Yearling Yearling Good Answer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 3971,237964,53314,Yearling Yearling Good Answer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 3972,3797158,53314,Yearling Yearling Good Answer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 3973,1375863,1128130,NULL,NULL,NULL,0,NULL,NULL 3974,333556,113962,Great Answer Steward Good Answer Good Answer Nice Answer Enlightened Enlightened Guru Nice Answer Enlightened Guru django-forms Good Answer Good Answer python-3.x Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer postgresql Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Guru Great Answer Nice Answer Enlightened post Guru Good Answer django-class-based-views Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Good Answer Good Answer Epic Good Answer Good Answer Good Answer Yearling Revival django-templates Nice Answer Enlightened django-views Good Answer Nice Answer Enlightened Nice Answer Enlightened python-2.7 Nice Answer Enlightened django-migrations Nice Answer Enlightened django-admin Nice Answer django-testing Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Enlightened Guru Nice Answer Notable Question Popular Question Good Question django-orm Good Answer Guru Nice Answer Enlightened Guru Nice Question Great Answer Notable Question Good Answer Caucus Good Answer Good Answer Good Answer Constituent Guru Nice Answer Enlightened Nice Question Nice Answer Enlightened Guru Famous Question Guru Nice Question Nice Answer Enlightened Good Answer Good Answer Great Answer Guru Notable Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Good Answer sql Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Question Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened admin Nice Answer Deputy Guru Nice Answer Enlightened Pundit django-registration Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Guru django-models Good Answer Famous Question Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru mysql Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Necromancer django-rest-framework Good Answer Guru Nice Answer Guru Good Question Good Answer Documentation User Nice Answer Enlightened Nice Answer Notable Question Nice Answer Good Answer Good Answer Necromancer django-generic-views django-urls model Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Guru Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Question Good Answer Good Answer Good Answer Nice Answer heroku Good Answer Good Answer templates Guru Nice Answer Enlightened Guru Nice Answer Guru Announcer Announcer Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Good Answer json Good Answer Nice Answer Enlightened Legendary Notable Question Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened redirect Nice Answer Enlightened Nice Answer Enlightened Archaeologist python-3.x Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Yearling Guru django-1.8 Great Answer Guru django-authentication Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer django-views Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Great Answer Great Answer Guru Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,Django URLs TypeError view must be callable or list tuple in the case of include python django django urls django 10 pAfter upgrading to Django 10 get the error ppre codeTypeError view must be callable or list tuple in the case of include code prepMy urls py is as follows ppre codefrom django conf urls import include urlurlpatterns url myapp views home url contact myapp views contact url login django contrib auth views login code prepThe full traceback is ppre codeTraceback most recent call last File Users alasdair virtualenvs django110 lib python2 site packages django utils autoreload py line 226 in wrapper fn args kwargs File Users alasdair virtualenvs django110 lib python2 site packages django core management commands runserver py line 121 in inner run self check display num errors True File Users alasdair virtualenvs django110 lib python2 site packages django core management base py line 385 in check include deployment checks include deployment checks File Users alasdair virtualenvs django110 lib python2 site packages django core management base py line 372 in run checks return checks run checks kwargs File Users alasdair virtualenvs django110 lib python2 site packages django core checks registry py line 81 in run checks new errors check app configs app configs File Users alasdair virtualenvs django110 lib python2 site packages django core checks urls py line 14 in check url config return check resolver resolver File Users alasdair virtualenvs django110 lib python2 site packages django core checks urls py line 24 in check resolver for pattern in resolver url patterns File Users alasdair virtualenvs django110 lib python2 site packages django utils functional py line 35 in get res instance dict self name self func instance File Users alasdair virtualenvs django110 lib python2 site packages django urls resolvers py line 310 in url patterns patterns getattr self urlconf module urlpatterns self urlconf module File Users alasdair virtualenvs django110 lib python2 site packages django utils functional py line 35 in get res instance dict self name self func instance File Users alasdair virtualenvs django110 lib python2 site packages django urls resolvers py line 303 in urlconf module return import module self urlconf name File System Library Frameworks Python framework Versions lib python2 importlib init py line 37 in import module import name File Users alasdair dev urlproject urlproject urls py line 28 in lt module gt url myapp views home File Users alasdair virtualenvs django110 lib python2 site packages django conf urls init py line 85 in url raise TypeError view must be callable or list tuple in the case of include TypeError view must be callable or list tuple in the case of include code pre yes if decorator does not return view then it implicitly returns None which would cause TypeError as above pMiddleware may be your best bet ve used this piece of code in the past modified from snippet found elsewhere ppre codeimport refrom django conf import settingsfrom django contrib auth decorators import login requiredclass RequireLoginMiddleware object Middleware component that wraps the login required decorator around matching URL patterns To use add the class to MIDDLEWARE CLASSES and define LOGIN REQUIRED URLS and LOGIN REQUIRED URLS EXCEPTIONS in your settings py For example LOGIN REQUIRED URLS topsecret LOGIN REQUIRED URLS EXCEPTIONS topsecret login topsecret logout LOGIN REQUIRED URLS is where you define URL patterns each pattern must be valid regex LOGIN REQUIRED URLS EXCEPTIONS is conversely where you explicitly define any exceptions like login and logout URLs def init self self required tuple re compile url for url in settings LOGIN REQUIRED URLS self exceptions tuple re compile url for url in settings LOGIN REQUIRED URLS EXCEPTIONS def process view self request view func view args view kwargs No need to process URLs if user already logged in if request user is authenticated return None An exception match should immediately return None for url in self exceptions if url match request path return None Requests matching restricted URL pattern are returned wrapped with the login required decorator for url in self required if url match request path return login required view func request view args view kwargs Explicitly return None for all non matching requests return None code prepThen in settings py list the base URLs you want to protect ppre codeLOGIN REQUIRED URLS private stuff login required code prepAs long as your site follows URL conventions for the pages requiring authentication this model will work If this isn one to one fit you may choose to modify the middleware to suit your circumstances more closely ppWhat like about this approach besides removing the necessity of littering the codebase with code code decorators is that if the authentication scheme changes you have one place to go to make global changes For Django 10 see np8 answer https stackoverflow com 46976284 which is written for the new Django middleware pUse href https docs djangoproject com en dev ref models querysets std fieldlookup isnull rel noreferrer codeisnull code ppre codeusers without reports User objects filter report isnull True users with reports User objects filter report isnull False distinct code prepWhen you use codeisnull False code the codedistinct code is required to prevent duplicate results it would be useful to explain why it better even if that as simple as Using NOT EXISTS is usually more efficient that doing join pUse href https docs djangoproject com en dev ref models querysets std fieldlookup isnull rel noreferrer codeisnull code ppre codeusers without reports User objects filter report isnull True users with reports User objects filter report isnull False distinct code prepWhen you use codeisnull False code the codedistinct code is required to prevent duplicate results Fair point but was hoping you could confirm whether or not it gives better performance Given that the question doesn include any SQL not sure the OP specifically wanted query using NOT EXISTS pWhat about ppre codeQ pk isnull True code prepor ppre codeQ pk None code prepIt seems hacky but it appears to work For example ppre code gt gt gt FooBar objects filter 10 pk isnull True lt FooBar FooBar object gt gt gt gt FooBar objects filter 10 amp pk isnull True code prepHowever note that it doesn work as you might expect when OR with an empty codeQ code ppre code gt gt gt FooBar objects filter pk isnull True code prepThe solution to this might be to use codeQ pk isnull False code as the always True ppre code gt gt gt FooBar objects filter pk isnull False pk isnull True lt FooBar FooBar object gt gt gt gt FooBar objects filter pk isnull False amp pk isnull True code pre that good explanation of why it doesn work So think possible solution might be to use pk isnull False instead of for the True object,1,Django URLs TypeError view must be callable or list tuple in the case of include python django django urls django 10 pAfter upgrading to Django 10 get the error ppre codeTypeError view must be callable or list tuple in the case of include code prepMy urls py is as follows ppre codefrom django conf urls import include urlurlpatterns url myapp views home url contact myapp views contact url login django contrib auth views login code prepThe full traceback is ppre codeTraceback most recent call last File Users alasdair virtualenvs django110 lib python2 site packages django utils autoreload py line 226 in wrapper fn args kwargs File Users alasdair virtualenvs django110 lib python2 site packages django core management commands runserver py line 121 in inner run self check display num errors True File Users alasdair virtualenvs django110 lib python2 site packages django core management base py line 385 in check include deployment checks include deployment checks File Users alasdair virtualenvs django110 lib python2 site packages django core management base py line 372 in run checks return checks run checks kwargs File Users alasdair virtualenvs django110 lib python2 site packages django core checks registry py line 81 in run checks new errors check app configs app configs File Users alasdair virtualenvs django110 lib python2 site packages django core checks urls py line 14 in check url config return check resolver resolver File Users alasdair virtualenvs django110 lib python2 site packages django core checks urls py line 24 in check resolver for pattern in resolver url patterns File Users alasdair virtualenvs django110 lib python2 site packages django utils functional py line 35 in get res instance dict self name self func instance File Users alasdair virtualenvs django110 lib python2 site packages django urls resolvers py line 310 in url patterns patterns getattr self urlconf module urlpatterns self urlconf module File Users alasdair virtualenvs django110 lib python2 site packages django utils functional py line 35 in get res instance dict self name self func instance File Users alasdair virtualenvs django110 lib python2 site packages django urls resolvers py line 303 in urlconf module return import module self urlconf name File System Library Frameworks Python framework Versions lib python2 importlib init py line 37 in import module import name File Users alasdair dev urlproject urlproject urls py line 28 in lt module gt url myapp views home File Users alasdair virtualenvs django110 lib python2 site packages django conf urls init py line 85 in url raise TypeError view must be callable or list tuple in the case of include TypeError view must be callable or list tuple in the case of include code pre,Always False object django pIn Django ORM how does one go about creating object that is always False ppThis is similar to the question about href https stackoverflow com 33517468 247696 always True objects but the other way round ppNote that this doesn work ppre codeFoobar objects filter returns queryset which gives all objects code prehrpWhy do want object instead of the simple False value So that can combine it with other values like this for example ppre codecondition always true objectif something or other condition condition foobar that returns object if something or other2 condition condition foobar that returns object2 code pre pWhat about ppre codeQ pk isnull True code prepor ppre codeQ pk None code prepIt seems hacky but it appears to work For example ppre code gt gt gt FooBar objects filter 10 pk isnull True lt FooBar FooBar object gt gt gt gt FooBar objects filter 10 amp pk isnull True code prepHowever note that it doesn work as you might expect when OR with an empty codeQ code ppre code gt gt gt FooBar objects filter pk isnull True code prepThe solution to this might be to use codeQ pk isnull False code as the always True ppre code gt gt gt FooBar objects filter pk isnull False pk isnull True lt FooBar FooBar object gt gt gt gt FooBar objects filter pk isnull False amp pk isnull True code pre 3975,163386,1338551,NULL,NULL,NULL,0,NULL,NULL 3976,15963,470339,Nice Question Revival Popular Question Popular Question Nice Question Popular Question Popular Question Yearling Great Answer Inquisitive Citizen Patrol Necromancer Popular Question Famous Question Good Question Notable Question Famous Question Famous Question Popular Question Yearling Notable Question Revival Announcer Good Question Popular Question Nice Question Yearling Custodian Announcer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 3977,362592,627408,Popular Question Yearling Notable Question Favorite Question Stellar Question Popular Question Popular Question Excavator Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Nice Question Nice Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Yearling Great Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 3978,4274,102793,Nice Answer Enlightened Yearling Good Answer Famous Question Popular Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 3979,739604,676727,NULL,NULL,NULL,0,NULL,NULL 3980,446914,200786,Popular Question,NULL,NULL,0,NULL,NULL 3981,91822,618259,Yearling Announcer Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3982,552614,909425,Nice Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 3983,1521236,883840,NULL,NULL,NULL,0,NULL,NULL 3984,165103,549563,Necromancer Nice Question Nice Answer Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 3985,3942057,690686,NULL,NULL,NULL,0,NULL,NULL 3986,119499,531166,Yearling,NULL,NULL,0,NULL,NULL 3987,136030,1310162,NULL,NULL,NULL,0,NULL,NULL 3988,170405,1023047,NULL,NULL,NULL,0,NULL,NULL 3989,168949,182077,Nice Question,NULL,NULL,0,NULL,NULL 3990,130414,993546,NULL,NULL,NULL,0,NULL,NULL 3991,692565,937870,Good Answer Nice Answer Guru Guru Yearling Caucus Nice Answer Enlightened Great Answer Good Answer Cleanup Guru Good Answer Guru Caucus Constituent Yearling Custodian Guru Good Answer Custodian Census Good Answer Caucus Nice Answer Enlightened Nice Answer Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 3992,7256470,1370493,Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 3993,1566145,526233,Revival Necromancer Editor Nice Answer,NULL,NULL,0,NULL,NULL 3994,51388,1347767,NULL,NULL,NULL,0,NULL,NULL 3995,444938,983949,Revival Enlightened Nice Answer Custodian Yearling Custodian Revival Yearling Guru Necromancer Nice Answer Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 3996,156401,388496,NULL,NULL,NULL,0,NULL,NULL 3997,1383289,979337,Yearling Enthusiast Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 3998,1385963,968055,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 3999,161543,897986,NULL,NULL,NULL,0,NULL,NULL 4000,368813,562934,Popular Question Yearling Nice Answer Enlightened Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4001,116499,433890,Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 4002,5148,550960,NULL,NULL,NULL,0,NULL,NULL 4003,6117636,1553133,NULL,NULL,NULL,0,NULL,NULL 4004,277030,1315776,Yearling Commentator Good Answer Yearling Scholar,NULL,NULL,0,NULL,NULL 4005,2353106,349879,NULL,NULL,NULL,0,NULL,NULL 4006,396433,542885,NULL,NULL,NULL,0,NULL,NULL 4007,216077,933213,NULL,NULL,NULL,0,NULL,NULL 4008,528581,565345,NULL,NULL,NULL,0,NULL,NULL 4009,1026221,26715,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 4010,919038,865749,NULL,NULL,NULL,0,NULL,NULL 4011,1509019,431967,Great Question Popular Question Popular Question Popular Question Good Question Good Question Yearling Good Answer Announcer Yearling Announcer Cleanup Documentation User Popular Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4012,6211304,431967,Great Question Popular Question Popular Question Popular Question Good Question Good Question Yearling Good Answer Announcer Yearling Announcer Cleanup Documentation User Popular Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4013,1059489,1094484,Informed Revival Necromancer Caucus Constituent Yearling Nice Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 4014,184458,117242,Popular Question Nice Question Nice Answer Populist Yearling Famous Question Necromancer Caucus Popular Question Peer Pressure Notable Question Census Yearling Caucus Announcer Documentation User Nice Answer Enlightened Notable Question Popular Question Necromancer Caucus Constituent Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 4015,607698,209427,Necromancer Notable Question Electorate Revival Revival Revival Revival Necromancer jquery Necromancer Necromancer Nice Answer Enlightened Necromancer Popular Question Necromancer Yearling Nice Answer Nice Answer Revival Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Nice Answer Caucus Notable Question Nice Answer Documentation User Yearling Nice Answer Enlightened Necromancer Census Good Answer Popular Question Nice Answer Nice Answer Caucus Good Answer Popular Question Custodian Good Answer Guru Necromancer Yearling,NULL,NULL,0,NULL,NULL 4016,145052,69589,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4017,21512,421089,Guru Good Answer Yearling Custodian Guru Yearling Good Answer Nice Answer Enlightened Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4018,68081,659690,NULL,NULL,NULL,0,NULL,NULL 4019,412806,636399,Yearling Good Answer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 4020,14324,88461,Notable Question Popular Question Yearling Notable Question Caucus Announcer Notable Question Nice Answer Enlightened Census Popular Question Popular Question Notable Question Yearling Good Answer Notable Question Good Question Guru Popular Question Popular Question Famous Question Caucus Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4021,86094,413849,NULL,NULL,NULL,0,NULL,NULL 4022,212193,726915,NULL,NULL,NULL,0,NULL,NULL 4023,219894,917851,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4024,108177,1075700,Notable Question,NULL,NULL,0,NULL,NULL 4025,1343874,332901,Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4026,408399,740066,Yearling,NULL,NULL,0,NULL,NULL 4027,330594,1232625,NULL,NULL,NULL,0,NULL,NULL 4028,694633,237413,NULL,NULL,NULL,0,NULL,NULL 4029,841407,237413,NULL,NULL,NULL,0,NULL,NULL 4030,2846996,237413,NULL,NULL,NULL,0,NULL,NULL 4031,599415,1519440,NULL,NULL,NULL,0,NULL,NULL 4032,999820,1022843,Popular Question,NULL,NULL,0,NULL,NULL 4033,266242,23020,Guru Good Answer Nice Answer Enlightened Yearling Nice Answer Good Answer Nice Answer Enlightened Good Question Nice Answer Good Answer Yearling Nice Answer Guru Nice Answer Guru Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4034,114410,799215,NULL,NULL,NULL,0,NULL,NULL 4035,11888,763464,NULL,NULL,NULL,0,NULL,NULL 4036,342626,1540206,Yearling Nice Answer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 4037,41509,752387,NULL,NULL,NULL,0,NULL,NULL 4038,527027,651359,Nice Question Critic Yearling Informed Yearling Enthusiast Fanatic Nice Question Yearling Documentation User Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4039,3622,454004,NULL,NULL,NULL,0,NULL,NULL 4040,1494705,611211,Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4041,35957,1133801,NULL,NULL,NULL,0,NULL,NULL 4042,891266,881185,Popular Question,NULL,NULL,0,NULL,NULL 4043,512000,1275005,NULL,NULL,NULL,0,NULL,NULL 4044,236828,1359727,NULL,NULL,NULL,0,NULL,NULL 4045,294039,349056,NULL,NULL,NULL,0,NULL,NULL 4046,787225,1421887,NULL,NULL,NULL,0,NULL,NULL 4047,147204,702560,Yearling Popular Question,NULL,NULL,0,NULL,NULL 4048,12275,97167,NULL,NULL,NULL,0,NULL,NULL 4049,180232,411383,Notable Question,NULL,NULL,0,NULL,NULL 4050,959123,1033817,Scholar,NULL,NULL,0,NULL,NULL 4051,799608,11023,Revival Famous Question Nice Question Yearling Popular Question Good Question Announcer Yearling Custodian Census Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 4052,144730,889712,NULL,NULL,NULL,0,NULL,NULL 4053,180990,575702,NULL,NULL,NULL,0,NULL,NULL 4054,897054,1027563,NULL,NULL,NULL,0,NULL,NULL 4055,488860,171137,Populist Yearling Caucus Constituent Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 4056,433786,1005140,NULL,NULL,NULL,0,NULL,NULL 4057,960341,978676,Good Answer Nice Answer Tumbleweed Yearling Guru Custodian Necromancer Nice Answer Revival Unsung Hero Yearling python Nice Answer django Custodian Nice Answer Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 4058,2831,213682,Notable Question Good Answer Popular Question Yearling Good Answer Great Answer Nice Answer Notable Question Good Answer Nice Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4059,862459,219466,Notable Question,NULL,NULL,0,NULL,NULL 4060,3258781,250559,NULL,NULL,NULL,0,NULL,NULL 4061,429086,393443,Popular Question Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 4062,252158,585278,Notable Question,NULL,NULL,0,NULL,NULL 4063,204085,353459,NULL,NULL,NULL,0,NULL,NULL 4064,240145,1087992,NULL,NULL,NULL,0,NULL,NULL 4065,8355,812251,NULL,NULL,NULL,0,NULL,NULL 4066,950621,1275110,Teacher,NULL,NULL,0,NULL,NULL 4067,110612,489611,Nice Question,NULL,NULL,0,NULL,NULL 4068,855039,569332,Nice Question,NULL,NULL,0,NULL,NULL 4069,328785,913053,Nice Answer Enlightened Enlightened Good Answer Curious Nice Answer Enlightened Yearling Guru symfony Nice Answer Nice Answer Enlightened Popular Question Yearling scala Populist Yearling,NULL,NULL,0,NULL,NULL 4070,464077,527745,NULL,NULL,NULL,0,NULL,NULL 4071,754618,695768,NULL,NULL,NULL,0,NULL,NULL 4072,1530460,234025,ruby Nice Answer Enlightened Caucus Yearling Popular Question Popular Question Popular Question Nice Answer Caucus Custodian Custodian Yearling Census Caucus Favorite Question,NULL,NULL,0,NULL,NULL 4073,386987,931221,Notable Question Teacher,NULL,NULL,0,NULL,NULL 4074,549468,809436,NULL,NULL,NULL,0,NULL,NULL 4075,498533,1320711,NULL,NULL,NULL,0,NULL,NULL 4076,50427,39261,Notable Question Good Answer Yearling Nice Answer Notable Question Nice Answer Yearling Quorum Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4077,147886,74057,Yearling Popular Question Popular Question Tumbleweed Caucus Constituent Custodian Yearling Popular Question Popular Question Caucus Constituent Announcer Good Answer Custodian Census Yearling Caucus Announcer Constituent Custodian Announcer Nice Answer,NULL,NULL,0,NULL,NULL 4078,515365,1001417,Good Question Guru Yearling Revival Self-Learner Yearling Popular Question Organizer Custodian Yearling,NULL,NULL,0,NULL,NULL 4079,82675,425741,Popular Question Nice Answer Taxonomist Great Answer Nice Question Good Answer Yearling Famous Question Good Answer Famous Question Custodian Good Question Notable Question Yearling Custodian Custodian Popular Question Yearling Famous Question,NULL,pIf the strings are different ie foo amp foo take look at href http www justin cook com wp 2006 03 31 php parse string between two strings rel noreferrer this post from Justin Cook copy his code below ppre codefunction get string between string start end string string ini strpos string start if ini return ini strlen start len strpos string end ini ini return substr string ini len fullstring this is my tag dog tag parsed get string between fullstring tag tag echo parsed result dog code pre because it picks the first occurrence it finds of the starting string and takes that until the end string In this case the first occurrence of the start string is the in the word self guess you will be better served by regular expression in your case code eval code and code parse code don evaluate JavaScript they evaluate AngularJS href http docs angularjs org guide expression rel noreferrer expressions The linked documentation explains the differences between expressions and JavaScript pp strongQ What exactly is eval doing Why does it need its own mini parsing language strong ppFrom the docs pblockquote pExpressions are JavaScript like code snippets that are usually placed in bindings such as expression Expressions are processed by parse service blockquotepIt JavaScript like mini language that limits what you can run no control flow statements excepting the ternary operator as well as adds some AngularJS goodness filters pp strongQ Why isn plain old javascript eval being used strong ppBecause it not actually evaluating JavaScript As the docs say pblockquote pIf you do want to run arbitrary JavaScript code you should make it controller method and call the method If you want to eval an angular expression from JavaScript use the eval method blockquotepThe docs linked to above have lot more information What you re talking about is called expression sandbox and will be removed on Angular https angularjs blogspot com ar 2016 09 angular 16 expression sandbox removal html,0,NULL,NULL 4080,2793432,425741,Popular Question Nice Answer Taxonomist Great Answer Nice Question Good Answer Yearling Famous Question Good Answer Famous Question Custodian Good Question Notable Question Yearling Custodian Custodian Popular Question Yearling Famous Question,NULL,pIf the strings are different ie foo amp foo take look at href http www justin cook com wp 2006 03 31 php parse string between two strings rel noreferrer this post from Justin Cook copy his code below ppre codefunction get string between string start end string string ini strpos string start if ini return ini strlen start len strpos string end ini ini return substr string ini len fullstring this is my tag dog tag parsed get string between fullstring tag tag echo parsed result dog code pre because it picks the first occurrence it finds of the starting string and takes that until the end string In this case the first occurrence of the start string is the in the word self guess you will be better served by regular expression in your case code eval code and code parse code don evaluate JavaScript they evaluate AngularJS href http docs angularjs org guide expression rel noreferrer expressions The linked documentation explains the differences between expressions and JavaScript pp strongQ What exactly is eval doing Why does it need its own mini parsing language strong ppFrom the docs pblockquote pExpressions are JavaScript like code snippets that are usually placed in bindings such as expression Expressions are processed by parse service blockquotepIt JavaScript like mini language that limits what you can run no control flow statements excepting the ternary operator as well as adds some AngularJS goodness filters pp strongQ Why isn plain old javascript eval being used strong ppBecause it not actually evaluating JavaScript As the docs say pblockquote pIf you do want to run arbitrary JavaScript code you should make it controller method and call the method If you want to eval an angular expression from JavaScript use the eval method blockquotepThe docs linked to above have lot more information What you re talking about is called expression sandbox and will be removed on Angular https angularjs blogspot com ar 2016 09 angular 16 expression sandbox removal html,0,NULL,NULL 4081,290278,425741,Popular Question Nice Answer Taxonomist Great Answer Nice Question Good Answer Yearling Famous Question Good Answer Famous Question Custodian Good Question Notable Question Yearling Custodian Custodian Popular Question Yearling Famous Question,NULL,pIf the strings are different ie foo amp foo take look at href http www justin cook com wp 2006 03 31 php parse string between two strings rel noreferrer this post from Justin Cook copy his code below ppre codefunction get string between string start end string string ini strpos string start if ini return ini strlen start len strpos string end ini ini return substr string ini len fullstring this is my tag dog tag parsed get string between fullstring tag tag echo parsed result dog code pre because it picks the first occurrence it finds of the starting string and takes that until the end string In this case the first occurrence of the start string is the in the word self guess you will be better served by regular expression in your case code eval code and code parse code don evaluate JavaScript they evaluate AngularJS href http docs angularjs org guide expression rel noreferrer expressions The linked documentation explains the differences between expressions and JavaScript pp strongQ What exactly is eval doing Why does it need its own mini parsing language strong ppFrom the docs pblockquote pExpressions are JavaScript like code snippets that are usually placed in bindings such as expression Expressions are processed by parse service blockquotepIt JavaScript like mini language that limits what you can run no control flow statements excepting the ternary operator as well as adds some AngularJS goodness filters pp strongQ Why isn plain old javascript eval being used strong ppBecause it not actually evaluating JavaScript As the docs say pblockquote pIf you do want to run arbitrary JavaScript code you should make it controller method and call the method If you want to eval an angular expression from JavaScript use the eval method blockquotepThe docs linked to above have lot more information What you re talking about is called expression sandbox and will be removed on Angular https angularjs blogspot com ar 2016 09 angular 16 expression sandbox removal html,0,NULL,NULL 4082,479764,1094809,Supporter,NULL,NULL,0,NULL,NULL 4083,209548,1357273,Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 4084,148727,1291616,Teacher Supporter Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 4085,321284,1470861,NULL,NULL,NULL,0,NULL,NULL 4086,382453,218636,NULL,NULL,NULL,0,NULL,NULL 4087,178543,564654,NULL,NULL,NULL,0,NULL,NULL 4088,206311,812749,Civic Duty Yearling Caucus Constituent Electorate Caucus Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 4089,831877,751569,NULL,NULL,NULL,0,NULL,NULL 4090,130301,70608,Custodian Custodian Informed Custodian Documentation User,NULL,NULL,0,NULL,NULL 4091,151514,143511,Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 4092,15789,457665,NULL,NULL,NULL,0,NULL,NULL 4093,11749,224465,Revival Revival Caucus Constituent Caucus Nice Answer,NULL,NULL,0,NULL,NULL 4094,47136,927587,Nice Answer Yearling Caucus Revival Popular Question,NULL,NULL,0,NULL,NULL 4095,66142,517220,NULL,NULL,NULL,0,NULL,NULL 4096,47925,7980,Nice Answer Necromancer Yearling Great Answer Necromancer Yearling Yearling Nice Answer,NULL,pI recently had the same need and the solution is to implement two interfaces polli href http golang org pkg database sql driver Valuer sql driver Valuer lili href http golang org pkg database sql Scanner sql Scanner li olpHere working example ppre codetype FileType int64func FileType Scan value interface error FileType value int64 return nil func FileType Value driver Value error return int64 nil code pre it what the original question used would typically not start worrying too much about value sizes until it becomes an issue or the problem space warrants it,0,NULL,NULL 4097,200510,598940,Yearling Nice Answer Enlightened Civic Duty Nice Question Announcer Yearling Popular Question Excavator Notable Question Notable Question Favorite Question Custodian Necromancer Inquisitive Nice Question Yearling Notable Question Popular Question Nice Answer Great Question Nice Question,NULL,NULL,0,NULL,NULL 4098,472595,1314791,NULL,NULL,NULL,0,NULL,NULL 4099,36936,132509,Popular Question Nice Answer Enlightened Great Question Nice Answer Enlightened Popular Question Famous Question Popular Question Yearling Informed Good Answer Good Question javascript Good Answer Nice Answer Enlightened Nice Answer Explainer Good Question Nice Answer Popular Question Notable Question Yearling Favorite Question Revival Nice Answer Enlightened Documentation User Good Answer Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 4100,149855,1415952,NULL,NULL,NULL,0,NULL,NULL 4101,143519,821805,NULL,NULL,NULL,0,NULL,NULL 4102,12150,502165,NULL,NULL,NULL,0,NULL,NULL 4103,44860,300865,Popular Question,NULL,NULL,0,NULL,NULL 4104,557208,1098199,Autobiographer,NULL,NULL,0,NULL,NULL 4105,1905703,1201946,NULL,NULL,NULL,0,NULL,NULL 4106,1552134,589803,NULL,NULL,NULL,0,NULL,NULL 4107,30598,1393883,Notable Question Yearling Commentator Necromancer Revival Revival Necromancer Popular Question,NULL,NULL,0,NULL,NULL 4108,443796,833660,Notable Question,NULL,NULL,0,NULL,NULL 4109,167605,470681,NULL,NULL,NULL,0,NULL,NULL 4110,1388497,1178420,Enthusiast Critic Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 4111,47861,848845,Notable Question Necromancer Self-Learner,NULL,NULL,0,NULL,NULL 4112,86839,807044,NULL,NULL,NULL,0,NULL,NULL 4113,5735288,807044,NULL,NULL,NULL,0,NULL,NULL 4114,7049,842418,NULL,NULL,NULL,0,NULL,NULL 4115,102707,833586,Notable Question Teacher Revival Necromancer Commentator,NULL,NULL,0,NULL,NULL 4116,165340,786144,NULL,NULL,NULL,0,NULL,NULL 4117,12026,640766,Popular Question,NULL,NULL,0,NULL,NULL 4118,220608,920031,Announcer,NULL,NULL,0,NULL,NULL 4119,124789,230987,Good Answer Nice Answer Popular Question Nice Question Notable Question Yearling Famous Question Good Question Tag Editor Yearling Census Guru Favorite Question Proofreader Self-Learner,NULL,NULL,0,NULL,NULL 4120,188075,1084790,Informed Announcer,NULL,NULL,0,NULL,NULL 4121,1552603,886594,NULL,NULL,NULL,0,NULL,NULL 4122,810104,719619,Popular Question,NULL,NULL,0,NULL,NULL 4123,1529783,797661,Popular Question Notable Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 4124,73122,349087,Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4125,452179,1419519,Commentator Announcer,NULL,NULL,0,NULL,NULL 4126,1428,630094,NULL,NULL,NULL,0,NULL,NULL 4127,714283,1347939,Informed Editor Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 4128,1386044,1165748,Student Supporter,NULL,NULL,0,NULL,NULL 4129,10251,1395306,NULL,NULL,NULL,0,NULL,NULL 4130,1090983,1549386,NULL,NULL,NULL,0,NULL,NULL 4131,245568,209629,java Nice Answer Announcer Great Answer Nice Answer Caucus Yearling Nice Answer Nice Answer Popular Question python Popular Question Good Question Documentation User Nice Answer Enlightened Necromancer Yearling Nice Answer Popular Question Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 4132,341224,286420,Census,NULL,NULL,0,NULL,NULL 4133,1516647,679159,NULL,NULL,NULL,0,NULL,NULL 4134,25914,4013,Popular Question Yearling Good Question cakephp Famous Question Custodian Famous Question Yearling Custodian Custodian Proofreader Nice Question Yearling,NULL,NULL,0,NULL,NULL 4135,156979,783547,Popular Question Nice Question Notable Question Critic Notable Question Curious Yearling Caucus Notable Question Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 4136,23170,1018109,Necromancer Nice Answer Nice Answer Nice Answer Civic Duty Announcer Good Answer Good Answer Yearling Guru java Good Answer Caucus Great Answer Yearling Nice Answer Nice Answer android Nice Answer Good Answer Revival Caucus Constituent Tenacious Announcer Custodian Good Answer Yearling Good Answer Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 4137,207034,633861,NULL,NULL,NULL,0,NULL,NULL 4138,150046,183419,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4139,17780,383466,NULL,NULL,NULL,0,NULL,NULL 4140,125419,567897,Notable Question Notable Question Popular Question Yearling Popular Question Good Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 4141,7427550,1392595,NULL,NULL,NULL,0,NULL,NULL 4142,207140,604570,NULL,NULL,NULL,0,NULL,NULL 4143,343511,759134,Supporter,NULL,NULL,0,NULL,NULL 4144,420188,1406353,NULL,NULL,NULL,0,NULL,NULL 4145,23134,563228,Yearling Necromancer Popular Question Revival Popular Question Caucus Necromancer Yearling Nice Answer Nice Answer Enlightened Peer Pressure Caucus Notable Question Popular Question Documentation User Custodian Custodian Civic Duty Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4146,640608,1454099,NULL,NULL,NULL,0,NULL,NULL 4147,65603,52836,NULL,NULL,NULL,0,NULL,NULL 4148,689196,1098858,Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Enlightened Caucus Caucus,NULL,NULL,0,NULL,NULL 4149,50270,84352,Yearling Good Question Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 4150,396572,425185,NULL,NULL,NULL,0,NULL,NULL 4151,334794,1485219,Good Answer jquery Nice Answer Enlightened html javascript Revival Good Answer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened ckeditor,NULL,NULL,0,NULL,NULL 4152,33929,634065,Citizen Patrol Critic Yearling Caucus Cleanup Nice Answer Caucus Yearling Announcer Commentator Informed Census Caucus Constituent Custodian Good Answer Editor Custodian Yearling,NULL,NULL,1,NULL,OData Exception The limit of for Top query has been exceeded odata ignite asp net web api odata pI am using OData Web API for Version when try to query OData web Api using code top code parameter it return me following exception message pblockquote pThe query specified in the URI is not valid The limit of for Top query has been exceeded The value from the incoming request is 10 blockquotepI am using Apache Ignite dotNet LINQ as data source instead of Entity Framework my OData controller action method is as follows ppre code EnableQuery public IQueryable lt Productioncurvepnl gt GetProductioncurvepnl Console WriteLine Starting query to ignite var AIgniteClient IgniteClient Instance ProductionCurvePnLCache AsCacheQueryable Select gt Value return code pre pSince codeWeb API OData V6 code you need to enable query options to have this work This can be done globally in the codeWebApiConfig Register HttpConfiguration config code ppre class lang cs prettyprint override codeconfig Select Expand Filter OrderBy MaxTop null Count code prepor directly on your models for fine grained configuration ppre class lang cs prettyprint override code Page MaxTop 100 public class Products code prepIf you re using href https odata github io WebApi model bound fluent apis rel noreferrer Model Bound Fluent APIs and cannot add attributes you ll need to append the query options For example code Page 50 50 code ppre class lang cs prettyprint override code builder EntitySet lt AccountRecordDto gt Accounts EntityType Expand Transactions Count Page 50 50 code prepMore details can be found in the href https odata github io WebApi 13 01 modelbound attribute rel noreferrer documentation 4153,79506,764691,Informed Editor Supporter Autobiographer Teacher Commentator Yearling Tenacious Enthusiast Student Yearling Caucus Caucus Custodian,NULL,NULL,0,NULL,NULL 4154,143971,512411,ruby-on-rails Custodian Yearling Good Answer Popular Question Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 4155,2810021,898099,Notable Question Popular Question Popular Question Popular Question Inquisitive Popular Question Notable Question Nice Answer Notable Question Nice Question Popular Question Notable Question Popular Question Caucus Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4156,975936,898099,Notable Question Popular Question Popular Question Popular Question Inquisitive Popular Question Notable Question Nice Answer Notable Question Nice Question Popular Question Notable Question Popular Question Caucus Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4157,434835,390081,NULL,NULL,NULL,0,NULL,NULL 4158,45893,175701,Famous Question,NULL,NULL,0,NULL,NULL 4159,219450,702553,NULL,NULL,NULL,0,NULL,NULL 4160,103380,833304,NULL,NULL,NULL,0,NULL,NULL 4161,245048,1005456,NULL,NULL,NULL,0,NULL,NULL 4162,1926035,954391,Yearling Notable Question Necromancer Yearling Necromancer Curious,NULL,NULL,0,NULL,NULL 4163,67861,603359,Popular Question,NULL,NULL,0,NULL,NULL 4164,64298,482226,Good Question Famous Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 4165,835624,482226,Good Question Famous Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 4166,222274,248406,Yearling Popular Question Reviewer Strunk & White Informed Nice Question Caucus Constituent Popular Question Yearling Census Famous Question Popular Question Nice Answer Caucus Documentation User Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 4167,259726,1171940,NULL,NULL,NULL,0,NULL,NULL 4168,25584,1171940,NULL,NULL,NULL,0,NULL,NULL 4169,134786,701184,NULL,NULL,NULL,0,NULL,NULL 4170,86885,1342283,NULL,NULL,NULL,0,NULL,NULL 4171,8542641,1342283,NULL,NULL,NULL,0,NULL,NULL 4172,264121,298085,Teacher,NULL,NULL,0,NULL,NULL 4173,150691,1020973,Popular Question,NULL,NULL,0,NULL,NULL 4174,227027,519379,Necromancer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 4175,239310,796121,Popular Question,NULL,NULL,0,NULL,NULL 4176,159656,484396,NULL,NULL,NULL,0,NULL,NULL 4177,23765,605093,Yearling Custodian zend-framework2 Nice Answer Good Answer Yearling Custodian Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 4178,929704,844771,Critic Necromancer Popular Question Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 4179,1301829,147905,Famous Question Critic Informed Census Good Question,NULL,NULL,0,NULL,NULL 4180,157257,937460,Census Census,NULL,NULL,0,NULL,NULL 4181,1887441,96004,NULL,NULL,NULL,0,NULL,NULL 4182,1994984,1151889,NULL,NULL,NULL,0,NULL,NULL 4183,491697,1000930,Necromancer Good Answer Yearling Caucus Caucus Good Answer Yearling Guru Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 4184,2699286,994725,Popular Question Yearling Good Question Tumbleweed,NULL,NULL,0,NULL,NULL 4185,87162,994725,Popular Question Yearling Good Question Tumbleweed,NULL,NULL,0,NULL,NULL 4186,50597,1493612,NULL,NULL,NULL,0,NULL,NULL 4187,488999,1370743,NULL,NULL,NULL,0,NULL,NULL 4188,1081702,508809,Yearling,NULL,NULL,0,NULL,NULL 4189,84347,202166,Nice Answer Necromancer Announcer Revival Necromancer Yearling Informed Nice Answer Yearling Good Answer Good Answer Yearling Populist Caucus Yearling Custodian Custodian Enthusiast Custodian Yearling Announcer Necromancer Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 4190,381829,968016,Critic Caucus Constituent Caucus Nice Answer Enlightened Constituent Popular Question,NULL,NULL,0,NULL,NULL 4191,101382,1179308,Critic Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 4192,14700,369854,Famous Question Popular Question Nice Question Nice Question Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Good Question Popular Question Good Question Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4193,520,540212,NULL,NULL,NULL,0,NULL,NULL 4194,247897,432926,Nice Question Commentator Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4195,126552,553960,NULL,NULL,NULL,0,NULL,NULL 4196,177887,486692,Necromancer Yearling Necromancer Commentator Revival Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 4197,98182,206747,NULL,NULL,NULL,0,NULL,NULL 4198,296768,233905,Nice Answer Nice Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4199,110073,346986,NULL,NULL,NULL,0,NULL,NULL 4200,463274,383577,NULL,NULL,NULL,0,NULL,NULL 4201,222019,19892,Guru Yearling Nice Answer Yearling Documentation User c# Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4202,1255965,492228,NULL,NULL,NULL,0,NULL,NULL 4203,480267,1524785,NULL,NULL,NULL,0,NULL,NULL 4204,504189,883347,Critic Yearling Notable Question Necromancer Good Answer,NULL,NULL,0,NULL,NULL 4205,596880,1080770,Good Answer Yearling,NULL,NULL,0,NULL,NULL 4206,7181654,1483090,Notable Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 4207,2454019,1483090,Notable Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 4208,531544,1508211,Teacher,NULL,NULL,0,NULL,NULL 4209,2528301,1194587,NULL,NULL,NULL,0,NULL,NULL 4210,3362,196116,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4211,19649,351895,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4212,158122,934439,Popular Question Nice Question Popular Question Yearling Nice Answer Notable Question Popular Question Good Question Yearling Citizen Patrol Caucus Custodian Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 4213,501299,1178291,NULL,NULL,NULL,0,NULL,NULL 4214,412994,783195,NULL,NULL,NULL,0,NULL,NULL 4215,182619,1210984,Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 4216,443348,192024,Notable Question Famous Question Good Answer Popular Question node.js Nice Answer Nice Question Enlightened Self-Learner Announcer Announcer Yearling Famous Question Nice Answer Enlightened Popular Question Guru Good Answer Nice Answer Nice Question Nice Answer Enlightened Good Question Necromancer Yearling Nice Answer php Census Notable Question Reviewer Famous Question Nice Question Guru Yearling Notable Question,NULL,pThe best way to install Node js and have the latest version or any other version that you prefer be it LTS or current is to download the official binary bundle and uncompress it neat way to do it ppre class lang sh prettyprint override code Use version 10 26 NODE VERSION v0 10 26 To use newer version for example 10 use instead NODE VERSION v6 10 curl LO http nodejs org dist NODE VERSION node NODE VERSION linux x64 tar gz tar xzf node NODE VERSION linux x64 tar gz sudo cp rp node NODE VERSION linux x64 usr local sudo ln usr local node NODE VERSION linux x64 usr local node code prepThe basic idea is to move all the contents of the archive into code usr local code then create symlink in code usr local node code pointing to the most recent version ppFor enabling the use of the node executable from the command line without referencing the full path code usr local node bin node code add code usr local node bin code to your code PATH code usually this involves altering the code bash profile code or code profile code file there plenty of docs for how to do this ppIf you need to update Node js suppose it version 10 then just extract the tarball in code usr local code and update the symbolic link so it points to the new one You can then optionally remove the old folder pp strongMay 2017 update strong ppAs of the Creators Update the commands above can now work also on Windows 10 using the Windows Subsystem for Linux via bash On Ubuntu on Windows 10 after creating the symlink like above to add the folder to your code PATH code add codePATH usr local node bin PATH code in the code bashrc code file good question that you should ask to the maintainers of the distros My guess is that Node has been evolving too fast maintainers of distros have issues with this because they need to test every version before it packaged Also Node is younger and it went through lots of major releases 10 12 in just few years Each major release also broke npm deps Because of that admins may just prefer to install their own node bins hope that now that Node has LTS releases this changes,0,NULL,NULL 4217,1567086,466146,Scholar,NULL,NULL,0,NULL,NULL 4218,99690,568106,Yearling,NULL,NULL,0,NULL,NULL 4219,42780,664652,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 4220,156332,664652,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 4221,1163646,664652,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 4222,520602,950303,Teacher,NULL,NULL,0,NULL,NULL 4223,6438017,803139,Popular Question,NULL,NULL,0,NULL,NULL 4224,34156,232053,Necromancer Revival Caucus Constituent Nice Answer Yearling Caucus Yearling Nice Answer Caucus Necromancer,NULL,NULL,0,NULL,NULL 4225,372655,988250,Yearling Reviewer Deputy Fanatic Necromancer Caucus,NULL,NULL,0,NULL,NULL 4226,166026,532500,Notable Question Nice Answer Enlightened Nice Question Popular Question Famous Question Popular Question Tumbleweed Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 4227,252063,707694,NULL,NULL,NULL,0,NULL,NULL 4228,61159,617839,Great Answer Necromancer Yearling Guru Necromancer Nice Answer Enlightened Good Answer Guru Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Good Answer Populist Good Answer Good Answer Caucus Good Answer Nice Answer Good Answer Good Answer Yearling Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Guru Guru Nice Answer Guru Guru Guru Guru Yearling Enlightened Nice Answer Enlightened Guru Guru Nice Answer Guru Guru Pundit Enlightened Good Answer,NULL,NULL,0,NULL,NULL 4229,207533,925537,Citizen Patrol Census Scholar Necromancer Student Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 4230,327607,763275,NULL,NULL,NULL,0,NULL,NULL 4231,424220,1018110,Famous Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4232,379918,754388,Critic Yearling Necromancer Necromancer Yearling Nice Answer Custodian Nice Answer Informed Yearling Necromancer Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 4233,1099077,1397751,NULL,NULL,NULL,0,NULL,NULL 4234,19869,901526,NULL,NULL,NULL,0,NULL,NULL 4235,786404,1284986,Nice Answer Enlightened Yearling erlang Custodian Informed Caucus Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 4236,54577,439792,Famous Question Nice Answer Notable Question Popular Question Yearling Famous Question Civic Duty Caucus Good Answer Yearling Nice Answer Enlightened Notable Question Good Answer Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 4237,306698,962956,NULL,NULL,NULL,0,NULL,NULL 4238,91850,188536,Notable Question,NULL,NULL,0,NULL,NULL 4239,88628,987687,Yearling Popular Question Good Question Good Question Good Answer Yearling Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4240,2126275,1439763,Informed,NULL,NULL,0,NULL,NULL 4241,124181,141956,NULL,NULL,NULL,0,NULL,NULL 4242,1103509,1433901,Custodian Revival Yearling Organizer Citizen Patrol Custodian Custodian Yearling Caucus Popular Question Explainer Yearling Nice Question Civic Duty Suffrage Vox Populi Caucus Self-Learner Popular Question Notable Question Popular Question Yearling Necromancer,NULL,NULL,1,Can PermissionRequiredMixin and LoginRequiredMixin be combined django django pI have some users that are allowed to see certain view ppTo allow users to login and complain with code403 Forbidden code for those users that cannot see that login can use the following as explained href https docs djangoproject com en topics auth default the permission required decorator rel noreferrer here ppre codeired polls can vote raise exception True ef my view request code prepThis indeed works as expected But all my views are class based views Since Django finally there are bunch of pretty mixins for doing things that were only possible through the decorators However ppre codeclass MyClassView LoginRequiredMixin PermissionRequiredMixin TemplateView raise exception lt gt permission required polls can vote template name poll vote html code prepthis doesn work Because the coderaise exception code flag is used by both codeLoginRequiredMixin code and codePermissionRequiredMixin code cannot set it to anything pulliif coderaise exception code is codeTrue code user that is not logged in receives code403 Forbidden code which do not want liliif coderaise exception code is codeFalse code user that is strongnot strong allowed to see the view will be redirected to the login page which because the user is logged in will redirect again to the page Creating not at all fancy redirect loop li ulpOf course could implement my own mixin that behaves expected but is there any Django way of doing this in the view itself not in the codeurls py code,NULL 4243,675097,661764,Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Custodian Popular Question Yearling Notable Question Cleanup Custodian Popular Question,NULL,Implementing an atomic queue in QT5 multithreading qt5 atomic atomicity pI am building rather complicated application in Qt that can dynamically load dynamic libraries and run them as threads and they must pass information between each other as quickly as possible so figured an atomic queue would be my best case scenario so this is the AtomicQueue hpp file ppre code ifndef ATOMICQUEUE HPP define ATOMICQUEUE HPP include lt QAtomicPointer gt Used http www drdobbs com parallel writing lock free code corrected queue 210604448 pgno as referencetemplate lt class gt class AtomicQueue struct QueueNode QueueNode const amp value next NULL data value QueueNode if next delete next QueueNode next data public AtomicQueue front new QueueNode tail store front divider store front AtomicQueue void push const amp value tail load gt next new QueueNode value tail tail load gt next This moves the QueueNode into the atomic pointer making it safe while front divider load QueueNode tmp front front front gt next delete tmp bool peek amp result if divider load tail load Problem area QueueNode next divider load gt next if next result next gt data return true return false bool pop amp result bool res this gt peek result if res divider divider load gt next return res private QueueNode front QAtomicPointer lt QueueNode gt divider tail endif ATOMICQUEUE HPP code prepThe queue breaks after push and pop one item and can figure out why quite new to Atomic style thread safe programming so it quite possible that just don understand specific aspect of this When running in debug mode get SEGSEV segfault in my codebool AtomicQueue peek code function when do coderesult next gt data code ppCan anyone point out what doing wrong ph1Update h1pSo fixed the problem which was in my QueueNode destructor Essentially when deleted node it would attempt to clean up all further nodes which then gave me few different routes for fixing it polliSet flag in QueueNode that tells it not to delete all the code gt next code nodes liliDetach the front node before deleting it liliAllow the AtomicQueue to manage cleanup of nodes li olpI opted for the third option since it already did some cleanup while pushing new nodes so here is the fixed class for anyone interested ppre code ifndef ATOMICQUEUE HPP define ATOMICQUEUE HPP include lt QAtomicPointer gt Used http www drdobbs com parallel writing lock free code corrected queue 210604448 pgno as referencetemplate lt class gt class AtomicQueue struct QueueNode QueueNode const amp value next NULL data value QueueNode if next delete next QueueNode next data public AtomicQueue front new QueueNode tail store front divider store front AtomicQueue QueueNode node front while node gt next QueueNode node gt next delete node node void push const amp value tail load gt next new QueueNode value tail tail load gt next This moves the QueueNode into the atomic pointer making it safe while front divider load QueueNode tmp front front front gt next delete tmp bool peek amp result if divider load tail load Problem area QueueNode next divider load gt next if next result next gt data return true return false bool pop amp result bool res this gt peek result if res divider divider load gt next return res private QueueNode front QAtomicPointer lt QueueNode gt divider tail endif ATOMICQUEUE HPP code pre My pleasure It few years old now but hopefully it still up to par with the rest of Qt Not sure if the new standard maybe offers some better features for this though,0,NULL,NULL 4244,35746,456020,NULL,NULL,NULL,0,NULL,NULL 4245,101301,1169810,NULL,NULL,NULL,0,NULL,NULL 4246,405399,302178,Notable Question Yearling Nice Answer Good Question Notable Question Yearling Notable Question Famous Question Custodian Informed,NULL,NULL,0,NULL,NULL 4247,45605,199174,Notable Question Yearling Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4248,305621,1042534,Scholar,NULL,NULL,0,NULL,NULL 4249,583974,484022,NULL,NULL,NULL,0,NULL,NULL 4250,83900,1390507,Nice Answer Enlightened Nice Answer Yearling Yearling go Yearling Good Answer,NULL,NULL,0,NULL,NULL 4251,6138106,1390507,Nice Answer Enlightened Nice Answer Yearling Yearling go Yearling Good Answer,NULL,NULL,0,NULL,NULL 4252,635089,340326,Informed Autobiographer,NULL,NULL,0,NULL,NULL 4253,11206,189504,Nice Answer Good Question Good Question Necromancer,NULL,NULL,0,NULL,NULL 4254,198654,287892,Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 4255,371249,1058347,NULL,NULL,NULL,0,NULL,NULL 4256,168838,730958,Census Excavator,NULL,NULL,0,NULL,NULL 4257,579388,818445,Nice Question Famous Question Yearling Popular Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 4258,149996,711486,Student Popular Question Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 4259,62876,182629,Popular Question Popular Question Nice Question Popular Question Good Answer Nice Question Famous Question Yearling Notable Question Caucus Nice Question Famous Question Good Question Famous Question Notable Question Popular Question Informed Electorate Popular Question Notable Question Yearling Announcer Good Answer Popular Question Nice Question Notable Question Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 4260,4403,1182559,Commentator Peer Pressure Tumbleweed Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4261,698176,630578,Popular Question Nice Question Famous Question Famous Question Good Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 4262,67470,569381,Revival Good Answer,NULL,NULL,0,NULL,NULL 4263,3018578,74350,Revival Yearling Nice Answer Necromancer Yearling Nice Question Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4264,252729,798211,Editor Teacher Student Revival Self-Learner Scholar Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 4265,482091,483474,Necromancer,NULL,NULL,0,NULL,NULL 4266,160896,1094964,Notable Question,NULL,NULL,0,NULL,NULL 4267,960914,625782,Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Yearling Guru Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 4268,209016,266732,Informed,NULL,NULL,0,NULL,NULL 4269,54330,863412,Notable Question Investor,NULL,NULL,0,NULL,NULL 4270,75622,18829,Announcer Necromancer Nice Answer Nice Answer Necromancer Nice Answer Announcer Popular Question Announcer Yearling Nice Answer Good Answer Revival Good Answer Yearling Announcer Nice Answer Yearling Nice Answer,NULL,How does the SQL injection from the Bobby Tables XKCD comic work security validation sql injection pJust looking at pp img src https stack imgur com G0ifh png alt XKCD Strip title Her daughter is named Help 39 trapped in driver 39 license factory em Source href https xkcd com 327 rel noreferrer https xkcd com 327 em ppWhat does this SQL do ppre codeRobert DROP TABLE STUDENTS code prepI know both code code and code code are for comments but doesn the word codeDROP code get commented as well since it is part of the same line https beta companieshouse gov uk company 10542519 is the registration for consultancy named DROP TABLE COMPANIES LTD How to indent few lines in Markdown markup markdown pI want to write few lines of text They should be formatted normally except each line should start at the 6th column don want the code block formatting rule to make this chunk of text look like code as ll use other formatting like bold face etc How to do that in Markdown The use of for definition lists is not universal in Markdown implementations but if your Markdown variant supports it this works perfectly You should make this real answer,0,NULL,NULL 4271,60462,1423709,Popular Question Caucus,NULL,NULL,0,NULL,NULL 4272,22677,89373,Good Answer Revival Yearling Nice Answer Nice Answer Good Answer rest Nice Answer Yearling Guru Yearling Popular Question Guru,NULL,pHere is the end of my settings file ppre codeclass DisableMigrations object def contains self item return True def getitem self item return NoneTESTS IN PROGRESS Falseif test in sys argv or jenkins in sys argv logging disable logging CRITICAL PASSWORD HASHERS django contrib auth hashers MD5PasswordHasher DEBUG False TEMPLATE DEBUG False TESTS IN PROGRESS True MIGRATION MODULES DisableMigrations code prepbased on this href https gist github com NotSqrt 5f3c76cd15e40ef62d09 rel noreferrer snippet ppI disabled migrations only when tests are running getitem must return None in Django 11,0,NULL,NULL 4273,311763,135917,Revival Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4274,129292,1222347,NULL,NULL,NULL,0,NULL,NULL 4275,206936,859724,Notable Question Custodian Good Answer Critic Commentator Famous Question,NULL,NULL,0,NULL,NULL 4276,86152,596030,Necromancer,NULL,NULL,0,NULL,NULL 4277,256101,212110,Notable Question,NULL,NULL,0,NULL,NULL 4278,455791,993416,Popular Question Good Answer Notable Question Good Answer Nice Question Notable Question Nice Answer Enlightened Famous Question Popular Question Yearling Notable Question Notable Question Nice Question Yearling Popular Question Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 4279,500768,782111,NULL,NULL,NULL,0,NULL,NULL 4280,235438,472765,Great Answer Necromancer Yearling Nice Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4281,1478120,1558716,NULL,NULL,NULL,0,NULL,NULL 4282,124023,331308,Yearling Caucus Yearling Guru Caucus Notable Question Yearling Popular Question Notable Question Populist,NULL,NULL,0,NULL,NULL 4283,7182,37181,Nice Answer Nice Question Nice Answer Nice Question Famous Question Nice Answer Good Answer Announcer Good Question Yearling Notable Question Popular Question Nice Question Nice Question Notable Question Popular Question Good Answer Notable Question Famous Question Popular Question Revival Documentation User Famous Question Yearling Notable Question Custodian Custodian Popular Question Popular Question Popular Question Nice Answer Nice Question Nice Answer Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 4284,1558705,729273,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 4285,132338,1261092,Famous Question,NULL,NULL,0,NULL,NULL 4286,208,71953,Yearling Popular Question Famous Question Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 4287,323844,802583,Student Commentator Yearling,NULL,NULL,0,NULL,NULL 4288,136104,1159125,NULL,NULL,NULL,0,NULL,NULL 4289,9225215,1355620,NULL,NULL,NULL,0,NULL,NULL 4290,124667,983921,Notable Question,NULL,NULL,0,NULL,NULL 4291,69950,1005136,Yearling Yearling Excavator Nice Answer perl Yearling,NULL,NULL,0,NULL,NULL 4292,578398,94819,Good Answer Yearling Popular Question Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 4293,49004,109079,Yearling Nice Answer Revival Great Answer Necromancer Yearling Necromancer Nice Answer Good Answer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 4294,388335,116442,Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4295,1736104,615257,Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4296,187143,615257,Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4297,237340,1207917,NULL,NULL,NULL,0,NULL,NULL 4298,1164952,453002,Nice Question Good Answer Famous Question Popular Question Great Answer Guru Pundit Good Answer Yearling Good Answer Nice Answer Great Answer Nice Question Famous Question Popular Question php Cleanup Nice Answer Enlightened Yearling Necromancer Nice Answer Nice Answer Enlightened Census regex Nice Answer Enlightened nginx Nice Answer Enlightened Nice Answer Enlightened git Disciplined Tag Editor Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 4299,844663,443525,NULL,NULL,NULL,0,NULL,NULL 4300,480454,306290,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4301,1495786,879513,NULL,NULL,NULL,0,NULL,NULL 4302,531242,1126127,Yearling Nice Answer Enlightened Nice Answer Nice Answer Necromancer Necromancer python Necromancer Nice Question Necromancer Necromancer Necromancer Caucus Constituent Notable Question Good Answer Yearling Nice Answer Good Answer Good Answer Census Popular Question Famous Question Nice Answer javascript Nice Question Caucus Constituent Necromancer Guru Nice Answer Documentation User Popular Question Famous Question Good Answer Yearling Caucus Constituent Revival Popular Question Good Answer Guru Popular Question,NULL,NULL,0,NULL,NULL 4303,83253,316759,Necromancer Yearling Tumbleweed Guru Notable Question Famous Question Necromancer Good Question Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 4304,194540,1488304,NULL,NULL,NULL,0,NULL,NULL 4305,1241576,236676,NULL,NULL,NULL,0,NULL,NULL 4306,47062,413193,NULL,NULL,NULL,0,NULL,NULL 4307,16478,1455833,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 4308,1696576,171350,Revival Nice Answer Yearling Notable Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 4309,2066240,171350,Revival Nice Answer Yearling Notable Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 4310,75968,171350,Revival Nice Answer Yearling Notable Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 4311,4405948,171350,Revival Nice Answer Yearling Notable Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 4312,299126,256098,NULL,NULL,NULL,0,NULL,NULL 4313,62132,132963,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 4314,906862,474065,Nice Answer Enlightened Nice Answer Nice Answer Yearling Good Answer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 4315,83136,1141440,Yearling Popular Question Revival Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 4316,4387112,1141440,Yearling Popular Question Revival Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 4317,157368,1208172,NULL,NULL,NULL,0,NULL,NULL 4318,17965,1170037,Critic,NULL,NULL,0,NULL,NULL 4319,1188590,1180701,Famous Question,NULL,NULL,0,NULL,NULL 4320,4628980,1180701,Famous Question,NULL,NULL,0,NULL,NULL 4321,375179,451001,Yearling,NULL,NULL,0,NULL,NULL 4322,1016018,451001,Yearling,NULL,NULL,0,NULL,NULL 4323,326596,1157162,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4324,1099849,1356729,Popular Question,NULL,NULL,0,NULL,NULL 4325,231493,1322771,NULL,NULL,NULL,0,NULL,NULL 4326,35046,414453,NULL,NULL,NULL,0,NULL,NULL 4327,2833290,414453,NULL,NULL,NULL,0,NULL,NULL 4328,61805,82203,Popular Question Notable Question Notable Question Popular Question Good Answer Yearling Notable Question Nice Question Notable Question Nice Answer Enlightened css Notable Question Nice Answer Enlightened Good Question Yearling Good Answer Guru jquery Good Question Famous Question Nice Question Notable Question Great Answer Popular Question Nice Question Yearling Nice Question Great Question php Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 4329,170006,359774,Informed,NULL,NULL,0,NULL,NULL 4330,376499,343382,Famous Question Yearling Notable Question Nice Question Caucus Notable Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 4331,210052,38461,Citizen Patrol Nice Answer Custodian Custodian Proofreader Self-Learner Nice Question Yearling Necromancer Necromancer Custodian Popular Question Custodian Reviewer Announcer Nice Answer Enlightened Caucus Constituent Announcer Custodian Great Answer Documentation User Yearling Popular Question Nice Answer Revival Custodian Custodian Popular Question Strunk & White Necromancer Good Answer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4332,50219,586803,NULL,NULL,NULL,0,NULL,NULL 4333,255539,335467,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4334,120734,1210411,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4335,12789,1108418,NULL,NULL,NULL,0,NULL,NULL 4336,12641,803933,Student,NULL,NULL,0,NULL,NULL 4337,473264,398051,NULL,NULL,NULL,0,NULL,NULL 4338,342814,503763,NULL,NULL,NULL,0,NULL,NULL 4339,4264,177194,Commentator Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 4340,1807882,204627,NULL,NULL,NULL,0,NULL,NULL 4341,49122,204627,NULL,NULL,NULL,0,NULL,NULL 4342,433191,1225442,NULL,NULL,NULL,0,NULL,NULL 4343,62649,859314,Notable Question Good Answer Nice Question Yearling Famous Question Yearling Caucus Yearling Curious,NULL,NULL,0,NULL,NULL 4344,51064,165876,Popular Question Good Question Yearling Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 4345,2002268,1127013,Notable Question,NULL,NULL,0,NULL,NULL 4346,169791,1127013,Notable Question,NULL,NULL,0,NULL,NULL 4347,367735,1239962,Custodian Curious Enthusiast,NULL,NULL,0,NULL,NULL 4348,32025,733596,Popular Question Famous Question Notable Question Great Question Popular Question Famous Question Good Question Notable Question Famous Question Notable Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Good Question Popular Question Notable Question Good Question Good Question Popular Question Notable Question Notable Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Socratic Nice Question Popular Question Good Question Popular Question Favorite Question Yearling Good Question Good Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Famous Question Caucus Popular Question Famous Question Popular Question Good Question Popular Question Nice Question Notable Question Notable Question Notable Question Famous Question Notable Question Good Question Famous Question Famous Question Notable Question Notable Question Notable Question Notable Question Yearling Promoter Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 4349,606166,741065,NULL,NULL,NULL,0,NULL,NULL 4350,114166,764034,NULL,NULL,NULL,0,NULL,NULL 4351,353927,1449814,Mortarboard Notable Question Yearling Popular Question Caucus Yearling Caucus Popular Question php Guru Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4352,352657,458273,NULL,NULL,NULL,0,NULL,NULL 4353,169761,634963,Necromancer,NULL,NULL,0,NULL,NULL 4354,24600,1023745,NULL,NULL,NULL,0,NULL,NULL 4355,314970,925335,NULL,NULL,NULL,0,NULL,NULL 4356,19071,1284169,Editor Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 4357,1516104,1114201,Notable Question Notable Question Custodian Custodian Custodian Suffrage Vox Populi Explainer Documentation Pioneer Good Answer Custodian Tenacious Caucus Constituent Promoter Popular Question Yearling Organizer Census Excavator Fanatic Proofreader Popular Question Caucus Nice Answer Enlightened Constituent javascript angular Notable Question Documentation User Custodian Custodian Yearling Civic Duty Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Caucus Popular Question Popular Question Good Answer Guru Popular Question,NULL,NULL,0,NULL,NULL 4358,399850,243424,Autobiographer Caucus Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 4359,716657,847309,Notable Question Famous Question Popular Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 4360,17520,1010172,NULL,NULL,NULL,0,NULL,NULL 4361,263360,1529115,NULL,NULL,NULL,0,NULL,NULL 4362,13130,342560,NULL,NULL,NULL,0,NULL,NULL 4363,7873192,1188441,Custodian Informed Autobiographer Notable Question Yearling,NULL,NULL,0,NULL,NULL 4364,1877336,1188441,Custodian Informed Autobiographer Notable Question Yearling,NULL,NULL,0,NULL,NULL 4365,418670,1188441,Custodian Informed Autobiographer Notable Question Yearling,NULL,NULL,0,NULL,NULL 4366,451844,76146,Famous Question Popular Question Good Question Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 4367,211963,452467,NULL,NULL,NULL,0,NULL,NULL 4368,773377,1176098,NULL,NULL,NULL,0,NULL,NULL 4369,922322,762082,Necromancer Yearling Nice Answer Famous Question Yearling Necromancer Notable Question Popular Question Good Answer Nice Answer Necromancer Yearling Citizen Patrol Custodian Famous Question Nice Question,NULL,NULL,0,NULL,NULL 4370,59722,1313472,Guru Yearling Yearling Nice Answer Enlightened Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4371,180208,655520,Student Custodian Custodian Citizen Patrol Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 4372,33745,94272,Yearling Guru Famous Question Yearling Yearling Good Question Custodian Nice Answer,NULL,NULL,0,NULL,NULL 4373,4039,245269,NULL,NULL,NULL,0,NULL,NULL 4374,865507,1004361,NULL,NULL,NULL,0,NULL,NULL 4375,910205,1348064,NULL,NULL,NULL,0,NULL,NULL 4376,4121004,410717,NULL,NULL,NULL,0,NULL,NULL 4377,47816,410717,NULL,NULL,NULL,0,NULL,NULL 4378,1306274,410717,NULL,NULL,NULL,0,NULL,NULL 4379,186429,536805,Supporter Editor,NULL,NULL,0,NULL,NULL 4380,172280,1203319,NULL,NULL,NULL,0,NULL,NULL 4381,82709,526781,Yearling Caucus Census,NULL,NULL,0,NULL,NULL 4382,15153,177746,Notable Question Commentator Tumbleweed Critic Notable Question Caucus Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 4383,2564617,809251,NULL,NULL,NULL,0,NULL,NULL 4384,411952,400793,Yearling Good Question Good Answer Good Question Famous Question Yearling Civic Duty Announcer Famous Question Nice Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 4385,466570,634909,NULL,NULL,NULL,0,NULL,NULL 4386,281999,307628,Informed Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4387,474254,537482,NULL,NULL,NULL,0,NULL,NULL 4388,571935,978996,NULL,NULL,NULL,0,NULL,NULL 4389,53508,536615,NULL,NULL,NULL,0,NULL,NULL 4390,524642,781491,NULL,NULL,NULL,0,NULL,NULL 4391,972413,443428,Commentator Necromancer Student Caucus Nice Answer Yearling Civic Duty Necromancer Popular Question,NULL,NULL,0,NULL,NULL 4392,1385142,1071788,Popular Question,NULL,NULL,0,NULL,NULL 4393,28783,703114,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 4394,3508155,104999,Favorite Question Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Great Answer Notable Question Guru Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Notable Question Famous Question ajax node.js Nice Answer Good Answer Great Question Great Answer Caucus Good Answer Nice Answer Enlightened Nice Answer Famous Question Nice Question Famous Question Yearling Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Nice Question Guru Notable Question Nice Question Nice Answer Good Answer Nice Answer Great Answer Popular Question Famous Question Good Answer Yearling Famous Question Nice Answer Notable Question Notable Question,NULL,strong2018 edit think this answer has some interesting info but for any practical applications you should use href https stackoverflow com 6860916 104999 Joe answer instead strong ppA simple way to create unique ID in JavaScript is to use the Date object ppre codevar uniqid Date now code prepThat gives you the total milliseconds elapsed since January 1st 1970 swhich is unique value every time you call that ppThe problem with that value now is that you cannot use it as an element ID since in HTML IDs need to start with an alphabetical character There is also the problem that two users doing an action at the exact same time might result in the same ID We could lessen the probability of that and fix our alphabetical character problem by appending random letter before the numerical part of the ID ppre codevar randLetter String fromCharCode 65 Math floor Math random 26 var uniqid randLetter Date now code prepThis still has chance showever slim of colliding though Your best bet for unique id is to keep running count increment it every time and do all that in single place ie on the server ve edited the answer to reflect the recent comments,0,NULL,NULL 4395,484237,104999,Favorite Question Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Great Answer Notable Question Guru Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Notable Question Famous Question ajax node.js Nice Answer Good Answer Great Question Great Answer Caucus Good Answer Nice Answer Enlightened Nice Answer Famous Question Nice Question Famous Question Yearling Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Nice Question Guru Notable Question Nice Question Nice Answer Good Answer Nice Answer Great Answer Popular Question Famous Question Good Answer Yearling Famous Question Nice Answer Notable Question Notable Question,NULL,strong2018 edit think this answer has some interesting info but for any practical applications you should use href https stackoverflow com 6860916 104999 Joe answer instead strong ppA simple way to create unique ID in JavaScript is to use the Date object ppre codevar uniqid Date now code prepThat gives you the total milliseconds elapsed since January 1st 1970 swhich is unique value every time you call that ppThe problem with that value now is that you cannot use it as an element ID since in HTML IDs need to start with an alphabetical character There is also the problem that two users doing an action at the exact same time might result in the same ID We could lessen the probability of that and fix our alphabetical character problem by appending random letter before the numerical part of the ID ppre codevar randLetter String fromCharCode 65 Math floor Math random 26 var uniqid randLetter Date now code prepThis still has chance showever slim of colliding though Your best bet for unique id is to keep running count increment it every time and do all that in single place ie on the server ve edited the answer to reflect the recent comments,0,NULL,NULL 4396,38934,794,Nice Answer Yearling Popular Question Popular Question Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4397,309237,1331930,NULL,NULL,NULL,0,NULL,NULL 4398,2426358,1394229,Custodian Custodian Nice Answer Yearling Revival Caucus Curious Popular Question Necromancer Popular Question Nice Answer Enlightened Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 4399,1284814,985942,Good Answer android Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 4400,684,237211,Nice Answer javascript Yearling Guru Documentation User Yearling Good Answer,NULL,NULL,0,NULL,NULL 4401,123233,81178,NULL,NULL,NULL,0,NULL,NULL 4402,300632,1101289,Yearling,NULL,NULL,0,NULL,NULL 4403,612991,1515695,Supporter Census Citizen Patrol Tumbleweed,NULL,NULL,0,NULL,NULL 4404,1481147,897593,NULL,NULL,NULL,0,NULL,NULL 4405,444962,1038085,Notable Question Yearling Famous Question Nice Question Famous Question Critic,NULL,NULL,0,NULL,NULL 4406,173825,672016,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 4407,732484,539416,NULL,NULL,NULL,0,NULL,NULL 4408,421603,344612,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4409,122210,777138,NULL,NULL,NULL,0,NULL,NULL 4410,176027,1103443,NULL,NULL,NULL,0,NULL,NULL 4411,666448,698833,NULL,NULL,NULL,0,NULL,NULL 4412,648139,1363620,Yearling Famous Question,NULL,NULL,0,NULL,NULL 4413,66519,1092941,NULL,NULL,NULL,0,NULL,NULL 4414,665804,623547,NULL,NULL,NULL,0,NULL,NULL 4415,539108,1103494,NULL,NULL,NULL,0,NULL,NULL 4416,399405,131697,Popular Question Yearling Good Question Caucus Civic Duty Announcer Announcer Custodian Custodian Famous Question Yearling Caucus Constituent Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 4417,74684,167916,Famous Question,NULL,NULL,0,NULL,NULL 4418,1030284,236813,Yearling,NULL,NULL,0,NULL,NULL 4419,43483,31671,Nice Answer Nice Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Popular Question Good Answer Notable Question Nice Answer Favorite Question Notable Question Good Answer Guru Good Question Famous Question Good Answer Good Answer Popular Question Nice Answer Guru Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Nice Answer Notable Question Good Question Nice Answer Enlightened Good Answer firefox Popular Question Notable Question Nice Answer Enlightened Good Answer Famous Question Nice Answer Enlightened Good Answer Popular Question Good Answer Nice Answer Nice Question Good Answer Great Answer Good Question Good Answer Nice Answer Enlightened Great Question replace Good Answer Famous Question Notable Question Favorite Question Notable Question Famous Question Popular Question Guru Popular Question session Famous Question Guru Nice Question Great Answer Good Answer Nice Answer Nice Question Famous Question parsing Great Answer Notable Question Revival Famous Question html5 Famous Question Necromancer Popular Question Nice Question Nice Answer Popular Question Good Answer Guru Guru Nice Answer Enlightened Good Answer Good Answer Nice Question python Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Notable Question Nice Answer Nice Answer Guru Favorite Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Famous Question Nice Answer Enlightened Announcer Great Answer Popular Question Guru Great Answer Good Answer Great Question Good Answer Great Answer Nice Answer Good Question preg-replace Nice Answer Favorite Question Great Answer Guru Nice Answer Nice Answer Yearling Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Good Answer Nice Answer Enlightened Nice Answer Constituent Announcer Nice Answer Enlightened Nice Answer Good Answer Good Answer Popular Question Famous Question Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Enlightened Good Answer Guru Famous Question Guru Good Answer Popular Question Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Famous Question Notable Question Nice Answer Guru Good Answer Nice Answer Nice Answer Great Question Nice Answer Great Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Famous Question Good Answer Good Answer Nice Answer Good Answer Announcer Guru Great Answer Nice Answer sorting Guru Nice Answer Famous Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Famous Question Nice Question Nice Answer Enlightened Necromancer Nice Answer Good Answer Nice Answer Announcer Great Answer Populist Nice Answer Enlightened .htaccess Nice Answer Enlightened Good Answer Great Question Nice Answer Famous Question Good Answer Great Answer Announcer Nice Question Nice Answer Great Question Caucus Good Answer Guru Famous Question xml Good Answer Nice Answer Good Question Nice Answer Enlightened Popular Question Nice Question Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Custodian Good Question Good Answer Guru Nice Question Documentation User Great Question Guru Good Question Nice Answer Good Answer Yearling Necromancer Nice Answer Guru Enlightened Famous Question Announcer Good Answer Popular Question Necromancer Nice Answer Great Answer Nice Answer Enlightened Good Answer Notable Question Famous Question Guru Nice Answer Announcer Guru Nice Answer Enlightened Good Answer Guru Nice Answer Stellar Question Popular Question Guru Popular Question Nice Answer Enlightened Good Answer Nice Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Famous Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Announcer Good Answer Great Answer Great Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Guru Notable Question Nice Answer Nice Question Necromancer Popular Question Good Answer Popular Question Great Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer Famous Question Great Answer Good Answer Nice Answer Great Question Nice Answer Nice Answer Enlightened Famous Question Guru ajax Popular Question Guru Notable Question Nice Answer Enlightened Great Question Nice Answer Famous Question Nice Answer Notable Question Yearling Great Question Nice Answer Nice Answer Enlightened Guru Guru Good Answer,NULL,pYou can set the codeouterdiv code CSS to this ppre code outerdiv overflow hidden make sure this doesn cause unexpected behaviour code prepYou can also do this by adding an element at the end with codeclear both code This can be added normally with JS not good solution or with code after code CSS pseudo element not widely supported in older IEs ppThe problem is that containers won naturally expand to include floated children Be warned with using the first example if you have any children elements outside the parent element they will be hidden You can also use auto as the property value but this will invoke scrollbars if any element appears outside ppYou can also try floating the parent container but depending on your design this may be impossible difficult There is an alternative solution in the paragraph below the example CSS Does JavaScript have method like range to generate range within the supplied bounds javascript arrays pIn PHP you can do ppre coderange Array range Array code prepThat is there is function that lets you get range of numbers or characters by passing the upper and lower bounds ppIs there anything built in to JavaScript natively for this If not how would implement it You could use split there also div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code container xD width 100px xD height 100px xD position relative xD xD navi xD infoi xD width 100 xD height 100 xD position absolute xD top xD left xD xD infoi xD index 10 xD code pre xD pre class snippet code html lang html prettyprint override code lt div id container gt xD lt div id navi gt lt div gt xD lt div id infoi gt xD lt img src https appharbor com assets images stackoverflow logo png height 20 width 32 gt xD lt div gt xD lt div gt code pre xD div xD div xD ppI would suggest learning about codeposition relative code and child elements with codeposition absolute code It also years newer div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code container xD width 100px xD height 100px xD position relative xD xD navi xD infoi xD width 100 xD height 100 xD position absolute xD top xD left xD xD infoi xD index 10 xD code pre xD pre class snippet code html lang html prettyprint override code lt div id container gt xD lt div id navi gt lt div gt xD lt div id infoi gt xD lt img src https appharbor com assets images stackoverflow logo png height 20 width 32 gt xD lt div gt xD lt div gt code pre xD div xD div xD ppI would suggest learning about codeposition relative code and child elements with codeposition absolute code 1014 people disagree pYou could make your own plugins ppre codejQuery fn visible function return this css visibility visible jQuery fn invisible function return this css visibility hidden jQuery fn visibilityToggle function return this css visibility function visibility return visibility visible hidden visible code prepIf you want to overload the original jQuery codetoggle code which don recommend ppre code function var toggle fn toggle fn toggle function var args makeArray arguments lastArg args pop if lastArg visibility return this visibilityToggle return toggle apply this arguments jQuery code prep href http jsfiddle net uxTeU rel noreferrer jsFiddle This isn toggling classes but toggling visibility pTry this number ppre codefunction assignArrayByPath amp arr path value separator keys explode separator path foreach keys as key arr amp arr key arr value code prep href http codepad org j9nFiTiZ CodePad ppIt will loop through the keys delimited with code code by default to get to the final property and then do assignment on the value ppIf some of the keys aren present they re created Agree on those points will edit the answer pre code lt php urls array http www example com http www example com http www example com q1 one http www example com html http www example com html q1 one query q2 two foreach urls as amp url parsedUrl parse url url if parsedUrl path null url separator parsedUrl query NULL amp url separator query var dump urls code preh3Output h3pre codearray gt string 29 http www example com q2 two gt string 32 http www example com q2 two gt string 39 http www example com q1 one amp q2 two gt string 36 http www example com html q2 two gt amp string 43 http www example com html q1 one amp q2 two code prep href http codepad org KHSlbmgr rel noreferrer CodePad Browsers appear to correct it but can update the answer,0,NULL,NULL 4420,198719,1199195,Good Question Notable Question Popular Question Promoter Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 4421,167886,612267,Notable Question Yearling,NULL,NULL,0,NULL,NULL 4422,150,3789,Yearling,NULL,NULL,0,NULL,NULL 4423,132152,118130,Good Question Notable Question Notable Question Yearling Good Answer Popular Question Famous Question Notable Question Good Question Popular Question Nice Answer Enlightened Popular Question Nice Question Good Question Popular Question Yearling Popular Question Famous Question Famous Question Nice Question Famous Question Popular Question Good Question Nice Question Yearling Good Question Guru Good Question Guru,NULL,NULL,0,NULL,NULL 4424,178014,961353,Yearling Announcer Yearling Documentation User Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4425,1094893,1350281,NULL,NULL,NULL,0,NULL,NULL 4426,259971,307569,NULL,NULL,NULL,0,NULL,NULL 4427,2561424,448294,Yearling Notable Question Yearling Nice Question Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 4428,108056,448294,Yearling Notable Question Yearling Nice Question Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 4429,80561,1138546,NULL,NULL,NULL,0,NULL,NULL 4430,658544,680640,NULL,NULL,NULL,0,NULL,NULL 4431,1113018,1253155,NULL,NULL,NULL,0,NULL,NULL 4432,151485,160909,NULL,NULL,NULL,0,NULL,NULL 4433,181112,1395258,NULL,NULL,NULL,0,NULL,NULL 4434,137228,734150,Yearling Census Yearling Census Yearling Enthusiast,NULL,NULL,0,NULL,NULL 4435,171815,131809,Nice Question Nice Answer Enlightened Popular Question Popular Question Notable Question Necromancer Revival Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Popular Question Notable Question Notable Question Good Answer Famous Question Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Famous Question Good Question Nice Answer Enlightened Yearling node.js Nice Answer Enlightened Popular Question Good Question Notable Question Popular Question Popular Question Nice Answer Enlightened Disciplined Popular Question Famous Question Notable Question Famous Question Popular Question Famous Question Popular Question Socratic Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Strunk & White Mortarboard Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Good Answer Notable Question Custodian Announcer Deputy Nice Answer Popular Question Famous Question Yearling Pundit Caucus Popular Question Notable Question Notable Question Notable Question Nice Answer Enlightened Popular Question Famous Question Notable Question Popular Question Good Answer Popular Question Nice Answer Enlightened Popular Question Nice Question Nice Question Popular Question Notable Question Announcer Notable Question Popular Question Popular Question Notable Question Nice Answer Enlightened Famous Question Guru Nice Answer Nice Answer Enlightened Announcer Notable Question Famous Question Guru Notable Question Famous Question Nice Answer Good Answer Famous Question Notable Question Announcer Popular Question Notable Question Yearling Nice Question Popular Question Good Answer Notable Question Nice Question mongoose Nice Answer Enlightened Popular Question Famous Question Notable Question Announcer Good Question Nice Question Popular Question Notable Question Popular Question Guru Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4436,422739,921247,NULL,NULL,NULL,0,NULL,NULL 4437,126721,433164,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 4438,321277,297050,Notable Question Popular Question Popular Question Popular Question Yearling Organizer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 4439,267348,596068,Good Answer Yearling Nice Answer Nice Answer Enlightened Yearling ruby-on-rails Nice Answer javascript Guru Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 4440,390272,791739,NULL,NULL,NULL,0,NULL,NULL 4441,59387,229761,Guru Great Answer Yearling Nice Answer Enlightened Yearling Notable Question Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 4442,41812,993270,Curious,NULL,NULL,0,NULL,NULL 4443,156475,747368,Revival Critic Caucus Constituent,NULL,NULL,0,NULL,NULL 4444,102900,1505094,NULL,NULL,NULL,0,NULL,NULL 4445,322230,437888,Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 4446,110829,782068,NULL,NULL,NULL,0,NULL,NULL 4447,673600,887922,NULL,NULL,NULL,0,NULL,NULL 4448,352259,31280,Yearling Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Good Answer Yearling Caucus Guru Guru Nice Answer Enlightened Good Answer Documentation User Yearling Not a Robot Great Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 4449,13047,103287,NULL,NULL,NULL,0,NULL,NULL 4450,36661,62076,Nice Answer Yearling Famous Question Good Answer Guru Nice Answer Enlightened Nice Question Guru Good Answer Good Answer Guru Guru Popular Question Good Answer Nice Answer Enlightened Guru Popular Question Generalist Nice Question Good Question Famous Question Nice Answer Good Answer Notable Question Nice Question Guru Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Nice Answer Guru Yearling Guru Guru Nice Answer Enlightened Nice Answer Good Answer Favorite Question Good Answer xcode Good Answer Nice Answer Great Question Good Answer Nice Answer Nice Question Famous Question Nice Answer Enlightened Good Answer Documentation User Popular Question Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Great Answer Census Great Answer Good Answer Yearling Good Answer Nice Answer Popular Question Good Answer Popular Question Good Answer Nice Answer Popular Question Notable Question Good Answer Nice Answer Nice Question Good Answer Notable Question Nice Question Nice Answer Enlightened Nice Question Good Answer,NULL,NULL,0,NULL,NULL 4451,144308,731140,NULL,NULL,NULL,0,NULL,NULL 4452,513135,1552906,Supporter,NULL,NULL,0,NULL,NULL 4453,294183,451111,NULL,NULL,NULL,0,NULL,NULL 4454,1055569,891223,Teacher Self-Learner Yearling,NULL,NULL,0,NULL,NULL 4455,14204,588287,NULL,NULL,NULL,0,NULL,NULL 4456,223553,948645,Popular Question Popular Question Yearling Nice Question Notable Question Popular Question Popular Question Good Question Yearling Caucus Notable Question Necromancer Notable Question Nice Question Famous Question Notable Question Yearling Revival Yearling Necromancer Necromancer Nice Answer Famous Question Good Question,NULL,NULL,1,NULL,Android check if Spanned objects are equal android spannable spanned pHow can check if two Spanned objects are equal they have the same content and spans applied rather not implement the codeequals Spanned span code method pThe span classes in Android lack codeequals code and codehashCode code methods don know why Maybe it was just an oversight There is also bug in the codeSpannableStringBuilder equals code method ppThe workaround is exactly what you feared If you use for example codeAbsoluteSizeSpan code you need to extend it and add codeequals code and codehashCode code methods Use your version instead of the framework version when adding spans to the codeSpannableStringBuilder code ppre codeimport android os Parcel public class AbsoluteSizeSpan extends android text style AbsoluteSizeSpan public AbsoluteSizeSpan int size super size public AbsoluteSizeSpan int size boolean dip super size dip public AbsoluteSizeSpan Parcel src super src public boolean equals Object if this return true if null getClass getClass return false AbsoluteSizeSpan that AbsoluteSizeSpan if getSize that getSize return false return getDip that getDip public int hashCode int result getSize result 31 result getDip return result code prepIn the Android framework codeSpannableStringBuilder equals code method list of sorted spans in compared to list of unsorted spans To fix this override codeSpannableStringBuilder equals code ppre codepublic class SpannableStringBuilder extends android text SpannableStringBuilder public boolean equals Object if instanceof Spanned amp amp toString equals toString Spanned other Spanned Check span data Object otherSpans other getSpans other length Object class Object spans getSpans length Object class if spans length otherSpans length for int lt spans length Object thisSpan spans Object otherSpan otherSpans if thisSpan this if other otherSpan getSpanStart thisSpan other getSpanStart otherSpan getSpanEnd thisSpan other getSpanEnd otherSpan getSpanFlags thisSpan other getSpanFlags otherSpan return false else if thisSpan equals otherSpan getSpanStart thisSpan other getSpanStart otherSpan getSpanEnd thisSpan other getSpanEnd otherSpan getSpanFlags thisSpan other getSpanFlags otherSpan return false return true return false code prepAdd your override versions of the span classes to your version of codeSpannableStringBuilder code 4457,100676,1012019,NULL,NULL,NULL,0,NULL,NULL 4458,188714,230253,Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4459,419924,789469,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4460,7473056,789469,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4461,148010,1445666,NULL,NULL,NULL,0,NULL,NULL 4462,122945,72141,Popular Question Informed,NULL,NULL,0,NULL,NULL 4463,20199,217265,NULL,NULL,NULL,0,NULL,NULL 4464,1029,568473,Yearling Nice Answer Enlightened Yearling Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4465,2642,455615,Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 4466,39716,418213,Yearling Yearling Caucus Popular Question Caucus Mortarboard Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 4467,154821,695401,NULL,NULL,NULL,0,NULL,NULL 4468,479124,1350666,NULL,NULL,NULL,0,NULL,NULL 4469,42224,1071930,Notable Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 4470,29376,1107841,NULL,NULL,NULL,0,NULL,NULL 4471,49178,1144402,NULL,NULL,NULL,0,NULL,NULL 4472,500449,1062409,NULL,NULL,NULL,0,NULL,NULL 4473,806687,5790,Good Answer Yearling Popular Question Yearling Great Answer Census Guru Yearling,NULL,NULL,0,NULL,NULL 4474,1006583,865741,NULL,NULL,NULL,0,NULL,NULL 4475,30977,264290,Revival Commentator Popular Question,NULL,NULL,0,NULL,NULL 4476,2477976,159149,Nice Answer Yearling Popular Question Good Answer Notable Question Announcer Yearling Nice Question Excavator Famous Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 4477,406735,9621,Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 4478,306313,1445512,NULL,NULL,NULL,0,NULL,NULL 4479,138268,1485649,NULL,NULL,NULL,0,NULL,NULL 4480,73590,149449,NULL,NULL,NULL,0,NULL,NULL 4481,21630,540644,python Good Answer Nice Answer Nice Answer Enlightened Guru Yearling Caucus Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 4482,694087,51801,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Tumbleweed Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4483,30975,51801,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Tumbleweed Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4484,99527,1305231,Informed Caucus,NULL,NULL,0,NULL,NULL 4485,8153448,62229,NULL,NULL,NULL,0,NULL,NULL 4486,142784,62229,NULL,NULL,NULL,0,NULL,NULL 4487,460544,665103,NULL,NULL,NULL,0,NULL,NULL 4488,582438,1116886,NULL,NULL,NULL,0,NULL,NULL 4489,40821,1116886,NULL,NULL,NULL,0,NULL,NULL 4490,1187758,1116886,NULL,NULL,NULL,0,NULL,NULL 4491,687411,1116886,NULL,NULL,NULL,0,NULL,NULL 4492,667897,1116886,NULL,NULL,NULL,0,NULL,NULL 4493,133356,807656,Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 4494,695097,834428,NULL,NULL,NULL,0,NULL,NULL 4495,148938,874192,NULL,NULL,NULL,0,NULL,NULL 4496,269827,351462,NULL,NULL,NULL,0,NULL,NULL 4497,76426,926109,Revival,NULL,NULL,0,NULL,NULL 4498,76064,354214,NULL,NULL,NULL,0,NULL,NULL 4499,44100,913651,Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 4500,67997,1373843,Notable Question Good Question,NULL,NULL,0,NULL,NULL 4501,108787,1374175,Yearling Nice Answer Enlightened Nice Answer node.js Nice Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 4502,10964,1072131,NULL,NULL,NULL,0,NULL,NULL 4503,342744,694361,NULL,NULL,NULL,0,NULL,NULL 4504,95817,518351,NULL,NULL,NULL,0,NULL,NULL 4505,6509,1327946,NULL,NULL,NULL,0,NULL,NULL 4506,343384,293340,Yearling,NULL,pTry testing each chunk of tokens ending with NEWLINE Then correct pattern for docstring including cases where it serves as comment but isn assigned to code doc code believe is assuming match is performed from start of file of after NEWLINE ppre code DEDENT INDENT STRING COMMENT NEWLINE code prepThis should handle all tricky cases string concatenation line continuation module class function docstrings comment in the sameline after string Note there is difference between NL and NEWLINE tokens so we don need to worry about single string of the line inside expression Thank you ve used this answer as the basis of https github com dw mitogen pull 178,0,NULL,NULL 4507,239318,1286871,Necromancer Yearling,NULL,NULL,0,NULL,NULL 4508,11260,547214,Promoter Nice Question Notable Question Announcer Guru Necromancer Good Answer Yearling Nice Answer Nice Answer Notable Question Necromancer Nice Answer Enlightened Necromancer Nice Answer Popular Question Reviewer Necromancer Nice Answer Notable Question Good Question Good Question Necromancer xcode Notable Question Nice Answer Notable Question Nice Answer Yearling Notable Question Nice Answer Nice Question Necromancer Announcer Good Answer Popular Question Documentation User Good Answer macos Necromancer Popular Question Necromancer Famous Question Yearling Necromancer Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4509,337095,769485,Yearling,NULL,NULL,0,NULL,NULL 4510,25165,1422124,javascript Good Answer Good Answer Good Answer Custodian Notable Question Nice Question Yearling Enlightened Nice Answer css Great Answer Good Answer Guru Nice Answer Nice Answer Yearling Famous Question Guru node.js Enlightened Famous Question Popular Question Guru Yearling Citizen Patrol Nice Answer Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 4511,585149,679913,Nice Answer Yearling Notable Question Famous Question Notable Question Nice Answer Enlightened Self-Learner Nice Question Yearling Notable Question Favorite Question Yearling Custodian Critic Citizen Patrol Informed Tumbleweed,NULL,NULL,0,NULL,NULL 4512,1337658,1047772,NULL,NULL,NULL,0,NULL,NULL 4513,153743,921351,NULL,NULL,NULL,0,NULL,NULL 4514,179039,7671,Good Answer Good Answer Good Answer Favorite Question Nice Answer Famous Question Nice Answer Populist Nice Answer Tag Editor Documentation Pioneer Nice Answer Revival Great Answer Yearling Guru Necromancer Notable Question Caucus Good Answer Nice Answer Necromancer clojure Great Answer Great Question Nice Answer Nice Answer Revival Popular Question Great Answer Yearling Documentation User Census Nice Answer Good Answer Nice Answer Enlightened Good Answer Favorite Question Nice Answer Enlightened Nice Answer java clojure.spec Nice Answer Good Answer Popular Question Yearling Nice Answer Nice Answer Nice Answer,NULL,pAs of Clojure there is new preferred way to load and invoke Clojure functions This method is now preferred to calling RT directly and supersedes many of the other answers here The javadoc is href http clojure github io clojure javadoc clojure java api package summary html here the main entry point is codeclojure java api Clojure code ppTo lookup and call Clojure function ppre codeIFn plus Clojure var clojure core plus invoke code prepFunctions in codeclojure core code are automatically loaded Other namespaces can be loaded via require ppre codeIFn require Clojure var clojure core require require invoke Clojure read clojure set code prep codeIFn codes can be passed to higher order functions the example below passes codeplus code to coderead code ppre codeIFn map Clojure var clojure core map IFn inc Clojure var clojure core inc map invoke inc Clojure read code prepMost codeIFn codes in Clojure refer to functions few however refer to non function data values To access these use codederef code instead of codefn code ppre codeIFn printLength Clojure var clojure core print length IFn deref Clojure var clojure core deref deref invoke printLength code prepSometimes if using some other part of the Clojure runtime you may need to ensure that the Clojure runtime is properly initialized calling method on the Clojure class is sufficient for this purpose If you do not need to call method on Clojure then simply causing the class to load is sufficient in the past there has been similar recommendation to load the RT class this is now preferred ppre codeClass forName clojure java api Clojure code pre think there are only couple special forms that don also exist as vars One workaround is to access it via Clojure read It would be reasonable to file this as an enhancement request though to provide Clojure quote or by making it work as var,1,NULL,Parsing with clojure spec clojure clojure spec pre code require clojure spec as code prepconsider the following data ppre code def data names Anna lucky Peter Jon lucky Andre lucky code prepIt hash map of with one key names having value of vector of vectors The inner vectors must contain string as the first element and can optionally contain the keyword lucky as the second element ppThe previous two sentences should be described with codeclojure spec code Let start with the items in the vector ppre code def item cat name string lucky lucky conform item Tom name Tom conform item Tom lucky name Tom lucky lucky conform item Tom sad clojure spec invalid code prepThis works However if there is only one option Wouldn parsed result look be better like this ppre code name Tom lucky true or name Tom lucky false code prepCan this be done in clojure spec ppWith this one can carry on ppre code def items coll of item conform items Tom lucky Tim Tom lucky Tim code prepHowever it looks like it passes the test but why the items are not parsed anymore pp strongEdit strong emThis could be solved by switching from alpha7 to alpha10 release where coll of only takes one argument em ppFinally my spec looks like having the previously described caveats ppre code def my spec keys req un items code pre pspec is not designed to provide arbitrary data transformation Clojure core library can be used for that ppIt is possible to achieve this using codes conformer code but it is not recommended to use that feature for arbitrary transformations like this it is better suited to things like building custom specs 4515,1380480,1163003,NULL,NULL,NULL,0,NULL,NULL 4516,581010,508715,NULL,NULL,NULL,0,NULL,NULL 4517,53648,341190,Popular Question,NULL,NULL,0,NULL,NULL 4518,120410,104251,NULL,NULL,NULL,0,NULL,NULL 4519,806332,560792,Teacher Scholar Popular Question Necromancer Critic,NULL,NULL,0,NULL,NULL 4520,1096376,75245,Great Answer Yearling Nice Answer Good Answer Good Answer Good Answer Yearling Yearling Good Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 4521,41341,75245,Great Answer Yearling Nice Answer Good Answer Good Answer Good Answer Yearling Yearling Good Answer Nice Answer Enlightened Nice Answer,NULL,,0,, 4522,1270763,1106339,Critic Yearling Caucus Yearling Enthusiast Yearling,NULL,NULL,0,NULL,NULL 4523,460519,454913,NULL,NULL,NULL,0,NULL,NULL 4524,772807,536868,NULL,NULL,NULL,0,NULL,NULL 4525,99167,1186334,NULL,NULL,NULL,0,NULL,NULL 4526,460248,489489,NULL,NULL,NULL,0,NULL,NULL 4527,87143,615531,NULL,NULL,NULL,0,NULL,NULL 4528,84187,157251,Nice Answer Populist Yearling,NULL,NULL,0,NULL,NULL 4529,494049,1100112,NULL,NULL,NULL,0,NULL,NULL 4530,377585,721843,NULL,NULL,NULL,0,NULL,NULL 4531,741405,856028,NULL,NULL,NULL,0,NULL,NULL 4532,1477608,104542,NULL,NULL,NULL,0,NULL,NULL 4533,7889866,629073,NULL,NULL,NULL,0,NULL,NULL 4534,498851,1518496,Notable Question Critic Nice Question Popular Question Yearling Famous Question Good Question Notable Question Self-Learner Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4535,403960,547580,NULL,NULL,NULL,0,NULL,NULL 4536,283079,819421,Yearling,NULL,NULL,0,NULL,NULL 4537,16679,18208,Nice Answer Enlightened Populist Yearling Nice Answer Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 4538,1086135,604833,Scholar Yearling Popular Question Notable Question Student Yearling,NULL,NULL,0,NULL,NULL 4539,386210,1061079,NULL,NULL,NULL,0,NULL,NULL 4540,208963,264811,NULL,NULL,NULL,0,NULL,NULL 4541,2208284,293678,NULL,NULL,NULL,0,NULL,NULL 4542,71472,22276,NULL,NULL,NULL,0,NULL,NULL 4543,82179,15187,Good Answer Guru Necromancer Guru Nice Question Nice Answer Enlightened Good Answer Yearling Great Question Popular Question Nice Question Nice Answer Enlightened Good Question Nice Question Popular Question Nice Question Good Answer Popular Question Popular Question Great Answer Nice Question Yearling Popular Question Popular Question Good Answer Famous Question Guru Famous Question Disciplined Yearling Pundit,NULL,NULL,0,NULL,NULL 4544,519340,118657,Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Famous Question Popular Question Good Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Great Question Enthusiast Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Custodian Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 4545,750264,1505452,Commentator Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 4546,186087,962065,NULL,NULL,NULL,0,NULL,NULL 4547,157027,646243,Popular Question,NULL,NULL,0,NULL,NULL 4548,3061,503139,NULL,NULL,NULL,0,NULL,NULL 4549,164870,534966,NULL,NULL,NULL,0,NULL,NULL 4550,1311244,1444233,Commentator Necromancer,NULL,NULL,0,NULL,NULL 4551,11366,415313,Popular Question Yearling Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 4552,1166144,815350,NULL,NULL,NULL,0,NULL,NULL 4553,683802,809584,Popular Question Notable Question Yearling Nice Question Caucus Custodian Popular Question Yearling Caucus Popular Question Promoter Benefactor Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4554,4976547,496013,NULL,NULL,NULL,0,NULL,NULL 4555,89838,1197499,Teacher Yearling Nice Answer Enlightened Supporter,NULL,NULL,0,NULL,NULL 4556,311510,1446522,NULL,NULL,NULL,0,NULL,NULL 4557,202306,660544,NULL,NULL,NULL,0,NULL,NULL 4558,78067,543038,NULL,NULL,,0,, 4559,1950328,243053,Yearling Custodian Custodian Citizen Patrol Informed Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4560,6479207,386751,Popular Question Nice Answer Stellar Question Nice Answer Popular Question Good Question Nice Question Populist Popular Question Good Answer Yearling Popular Question Notable Question Nice Question Notable Question Notable Question Good Question Famous Question Famous Question Yearling Announcer Notable Question Popular Question Famous Question Popular Question Popular Question Good Answer Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4561,15964,386751,Popular Question Nice Answer Stellar Question Nice Answer Popular Question Good Question Nice Question Populist Popular Question Good Answer Yearling Popular Question Notable Question Nice Question Notable Question Notable Question Good Question Famous Question Famous Question Yearling Announcer Notable Question Popular Question Famous Question Popular Question Popular Question Good Answer Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4562,84817,770830,Nice Answer Enlightened Nice Answer Great Answer Tumbleweed Yearling Outspoken Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Strunk & White Custodian Nice Answer Good Answer Yearling Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Caucus Nice Answer Enlightened Nice Answer Yearling Great Answer Nice Answer Enlightened Booster Announcer Proofreader python,NULL,NULL,0,NULL,NULL 4563,260976,966362,Revival,NULL,NULL,0,NULL,NULL 4564,391750,711881,Nice Question,NULL,NULL,0,NULL,NULL 4565,12325,578190,Yearling Nice Answer Revival Revival Documentation User Yearling,NULL,NULL,0,NULL,NULL 4566,816706,578190,Yearling Nice Answer Revival Revival Documentation User Yearling,NULL,NULL,0,NULL,NULL 4567,917667,968557,NULL,NULL,NULL,0,NULL,NULL 4568,3017582,1189605,NULL,NULL,NULL,0,NULL,NULL 4569,228943,118759,NULL,NULL,NULL,0,NULL,NULL 4570,352586,660412,NULL,NULL,NULL,0,NULL,NULL 4571,319655,406988,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4572,135874,755835,Custodian Explainer Necromancer Guru Popular Question Yearling Notable Question swift Good Question Great Answer Notable Question Popular Question Yearling Famous Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 4573,522013,614054,Informed Necromancer Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4574,150210,205689,NULL,NULL,NULL,0,NULL,NULL 4575,81643,1154914,NULL,NULL,NULL,0,NULL,NULL 4576,6905374,1223777,Nice Question Yearling Popular Question Enthusiast Caucus Notable Question Notable Question Caucus Good Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 4577,274647,234053,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer templates Good Answer Yearling Nice Answer Enlightened Nice Answer Great Answer string Great Answer Nice Answer Great Answer Good Answer Good Answer Guru Yearling python Good Answer Nice Answer Enlightened Nice Answer class Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 4578,63292,81081,Popular Question Yearling Notable Question Necromancer Nice Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 4579,98511,60614,Yearling Yearling Student Scholar Informed Commentator Caucus Yearling Custodian Caucus,NULL,NULL,0,NULL,NULL 4580,150340,1408951,Supporter,NULL,NULL,0,NULL,NULL 4581,743428,960800,Yearling Yearling,NULL,NULL,0,NULL,NULL 4582,176810,403172,NULL,NULL,NULL,0,NULL,NULL 4583,229799,1223692,Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 4584,1089592,141022,Popular Question Popular Question Notable Question Nice Answer Notable Question Popular Question Notable Question Nice Answer Yearling Notable Question Notable Question Notable Question Popular Question Notable Question html Nice Question Nice Question Popular Question Nice Answer Popular Question Census Notable Question Popular Question Nice Answer Necromancer Popular Question Enthusiast Announcer Notable Question Caucus Yearling Popular Question Cleanup Popular Question Famous Question Custodian Custodian Popular Question Popular Question Notable Question Popular Question Revival Nice Question Necromancer Nice Question Yearling Nice Answer Notable Question Famous Question Popular Question Announcer Taxonomist Nice Question Popular Question Nice Answer Enlightened Revival Custodian,NULL,NULL,0,NULL,NULL 4585,732727,1154598,NULL,NULL,NULL,0,NULL,NULL 4586,732732,1154598,NULL,NULL,NULL,0,NULL,NULL 4587,3353579,148384,NULL,NULL,NULL,0,NULL,NULL 4588,116921,148384,NULL,NULL,NULL,0,NULL,NULL 4589,110184,1143678,Good Answer Yearling,NULL,NULL,0,NULL,NULL 4590,572565,481266,NULL,NULL,NULL,0,NULL,NULL 4591,1032304,925622,Nice Answer Enlightened Notable Question Popular Question Notable Question Yearling Necromancer Popular Question Nice Question Nice Answer Popular Question Popular Question Notable Question Yearling Nice Question Nice Answer Popular Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 4592,46139,368502,Caucus,NULL,NULL,0,NULL,NULL 4593,129678,504346,NULL,NULL,NULL,0,NULL,NULL 4594,296745,296812,Revival,NULL,NULL,0,NULL,NULL 4595,49664,598386,Popular Question Yearling Necromancer Necromancer Nice Answer Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 4596,4942,881352,NULL,NULL,NULL,0,NULL,NULL 4597,110769,159679,Nice Question Famous Question Yearling Necromancer Great Question Great Question Nice Answer Notable Question Popular Question Famous Question Popular Question Yearling Nice Answer Notable Question Enlightened Famous Question Nice Answer Nice Answer Enlightened Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 4598,705065,448357,Necromancer Revival Necromancer Popular Question Popular Question Announcer Revival Nice Answer Necromancer Custodian Custodian Yearling Revival Necromancer android Nice Answer Nice Answer Caucus Constituent Cleanup Nice Question Nice Answer Revival Good Answer Good Answer Necromancer Explainer Revival Revival Popular Question Custodian Custodian Caucus Good Question Constituent Nice Answer Yearling Popular Question Necromancer Documentation User Popular Question Good Answer Necromancer Caucus Constituent Good Answer Notable Question Popular Question Popular Question Nice Answer Revival Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 4599,352116,1029996,NULL,NULL,NULL,0,NULL,NULL 4600,230609,104451,Good Answer Yearling Nice Answer Guru Yearling Good Answer Nice Answer Necromancer Nice Answer Nice Answer Guru Nice Answer Nice Answer Custodian Yearling Nice Answer Custodian c++,NULL,NULL,0,NULL,NULL 4601,422624,839116,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4602,3295299,839116,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4603,768378,212092,NULL,NULL,NULL,0,NULL,NULL 4604,869667,645317,Yearling Curious Nice Answer Revival Revival,NULL,NULL,0,NULL,NULL 4605,308926,1092634,NULL,NULL,NULL,0,NULL,NULL 4606,15166,193308,Popular Question Notable Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 4607,191465,1005235,Popular Question Yearling Popular Question Custodian Informed Caucus Yearling Census Custodian Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 4608,201105,118750,Notable Question Notable Question Yearling Nice Question Notable Question Good Question Notable Question Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Nice Question Revival Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4609,1050233,170459,NULL,NULL,NULL,0,NULL,NULL 4610,168881,619800,Necromancer,NULL,NULL,0,NULL,NULL 4611,209932,1129067,NULL,NULL,NULL,0,NULL,NULL 4612,192288,642198,NULL,NULL,NULL,0,NULL,NULL 4613,226172,216695,Notable Question Necromancer Popular Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 4614,902127,1417317,Necromancer,NULL,NULL,0,NULL,NULL 4615,94862,231152,NULL,NULL,NULL,0,NULL,NULL 4616,326137,815327,Curious Yearling Critic Famous Question Popular Question Necromancer Nice Answer Yearling Tumbleweed Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4617,521660,363505,Nice Question,NULL,NULL,0,NULL,NULL 4618,195050,1151671,NULL,NULL,NULL,0,NULL,NULL 4619,479030,1054490,NULL,NULL,NULL,0,NULL,NULL 4620,36478,522577,NULL,NULL,NULL,0,NULL,NULL 4621,1274468,380784,NULL,NULL,NULL,0,NULL,NULL 4622,19138,376654,Teacher,NULL,NULL,0,NULL,NULL 4623,367519,523461,Good Answer Nice Answer Nice Answer Necromancer Yearling Custodian Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 4624,380585,973603,Critic Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Caucus Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Good Answer r Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4625,1111527,519531,Yearling Custodian Yearling Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 4626,572857,1142015,NULL,NULL,NULL,0,NULL,NULL 4627,813803,1142015,NULL,NULL,NULL,0,NULL,NULL 4628,1079954,607959,Yearling Caucus Yearling Notable Question Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 4629,1018230,1068554,Nice Answer Critic,NULL,NULL,0,NULL,NULL 4630,2046,90800,Popular Question Famous Question Yearling Famous Question Citizen Patrol Nice Question Popular Question Popular Question Notable Question Benefactor Good Answer Yearling Notable Question Announcer Notable Question Popular Question Nice Answer Nice Answer Popular Question Guru Popular Question Inquisitive Popular Question Yearling Nice Answer Enlightened Notable Question Necromancer Notable Question Popular Question Civic Duty Self-Learner Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 4631,393913,620184,Yearling Excavator Caucus Good Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4632,172709,1198896,Yearling Notable Question Self-Learner Census Yearling Civic Duty Popular Question Yearling Announcer Caucus Famous Question Nice Answer,NULL,How can animate the drawing of text on web page javascript css canvas html5 canvas css shapes pI want to have web page which has one centered word ppI want this word to be drawn with an animation such that the page writes the word out the same way that we would it starts at one point and draws lines and curves over time such that the end result is glyph ppI do not care if this is done with code lt canvas gt code or the DOM and don care whether it done with JavaScript or CSS The absence of jQuery would be nice but not required ppHow can do this ve searched emexhaustively em with no luck ärtström that does not appear to answer the question at all,0,NULL,NULL 4633,3420553,945706,NULL,NULL,NULL,0,NULL,NULL 4634,2068624,620870,NULL,NULL,NULL,0,NULL,NULL 4635,255932,166186,Announcer Yearling Yearling Critic Commentator Revival Informed Custodian Autobiographer Yearling Yearling Famous Question Nice Answer Enlightened Yearling Organizer Caucus Popular Question Nice Answer Citizen Patrol Yearling Nice Answer Enlightened Enthusiast Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4636,547059,455833,Notable Question Nice Answer Yearling Caucus Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Notable Question Yearling Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 4637,254701,919599,NULL,NULL,NULL,0,NULL,NULL 4638,19539,1323450,NULL,NULL,NULL,0,NULL,NULL 4639,141107,641133,NULL,NULL,NULL,0,NULL,NULL 4640,145413,288318,Yearling Great Answer Editor Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 4641,84517,712,Yearling Great Answer Nice Answer Great Answer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 4642,429143,190127,Yearling Nice Question Yearling Popular Question Announcer Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 4643,117832,277702,Teacher,NULL,NULL,0,NULL,NULL 4644,2755275,277702,Teacher,NULL,NULL,0,NULL,NULL 4645,120152,1499397,NULL,NULL,NULL,0,NULL,NULL 4646,146500,514678,Popular Question,NULL,NULL,0,NULL,NULL 4647,69040,46854,Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 4648,72687,902378,Yearling Caucus Custodian Excavator Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 4649,227036,1236408,NULL,NULL,NULL,0,NULL,NULL 4650,471046,48367,NULL,NULL,NULL,0,NULL,NULL 4651,7796,902839,Famous Question Notable Question Yearling Nice Question Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 4652,303785,1045173,Informed Student,NULL,NULL,0,NULL,NULL 4653,438382,639292,Nice Answer Enlightened Custodian Custodian Custodian Yearling Good Answer Caucus Organizer Explainer Census Yearling Fanatic Nice Answer Enlightened Caucus Constituent Tumbleweed Documentation User Guru Census Yearling Caucus,NULL,NULL,0,NULL,NULL 4654,147677,844397,Yearling Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 4655,630929,687581,Popular Question Notable Question Yearling Nice Answer Good Question Popular Question Favorite Question Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Census Yearling Nice Question Documentation User Good Answer Favorite Question Populist Yearling Good Answer Good Question Nice Question,NULL,NULL,0,NULL,NULL 4656,64302,750740,NULL,NULL,NULL,0,NULL,NULL 4657,111135,160115,Critic,NULL,NULL,0,NULL,NULL 4658,103316,1066815,Critic,NULL,NULL,0,NULL,NULL 4659,321928,1447966,NULL,NULL,NULL,0,NULL,NULL 4660,168684,275779,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 4661,674000,1144054,NULL,NULL,NULL,0,NULL,NULL 4662,737341,668609,Popular Question,NULL,NULL,0,NULL,NULL 4663,1511530,1097344,NULL,NULL,NULL,0,NULL,NULL 4664,352020,863252,NULL,NULL,NULL,0,NULL,NULL 4665,78139,736509,Teacher Custodian,NULL,NULL,0,NULL,NULL 4666,405472,757218,Student Scholar Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 4667,2993141,795563,Self-Learner Caucus,NULL,NULL,0,NULL,NULL 4668,137985,795563,Self-Learner Caucus,NULL,NULL,0,NULL,NULL 4669,173125,421216,Necromancer,NULL,NULL,0,NULL,NULL 4670,18448,640835,NULL,NULL,NULL,0,NULL,NULL 4671,210596,923679,Self-Learner Commentator Critic Yearling Nice Answer Enlightened Yearling Custodian Citizen Patrol Custodian Good Answer Custodian Yearling Guru Yearling Caucus Constituent Curious Informed Yearling Yearling php Great Answer Autobiographer Organizer Yearling,NULL,NULL,0,NULL,NULL 4672,2336589,975758,NULL,NULL,NULL,0,NULL,NULL 4673,161701,975758,NULL,NULL,NULL,0,NULL,NULL 4674,1126041,1194726,NULL,NULL,NULL,0,NULL,NULL 4675,206863,1285475,NULL,NULL,NULL,0,NULL,NULL 4676,161615,1555168,NULL,NULL,NULL,0,NULL,NULL 4677,178049,1360484,NULL,NULL,NULL,0,NULL,NULL 4678,1897452,1360484,NULL,NULL,NULL,0,NULL,NULL 4679,948729,853404,Good Answer Notable Question Yearling Great Answer Good Answer Caucus Popular Question Famous Question Guru Custodian Custodian Yearling Nice Answer Enlightened Notable Question Popular Question Good Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4680,472706,853404,Good Answer Notable Question Yearling Great Answer Good Answer Caucus Popular Question Famous Question Guru Custodian Custodian Yearling Nice Answer Enlightened Notable Question Popular Question Good Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4681,85139,565289,NULL,NULL,NULL,0,NULL,NULL 4682,485372,572506,Critic Editor,NULL,NULL,0,NULL,NULL 4683,111325,1248964,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 4684,32462,9025,Famous Question Popular Question Census,NULL,NULL,0,NULL,NULL 4685,138210,118606,Yearling Good Answer Nice Answer Enlightened qt Good Answer Yearling Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 4686,50448,1028654,NULL,NULL,NULL,0,NULL,NULL 4687,268862,21584,Nice Question Necromancer Popular Question Yearling Nice Answer Yearling Documentation User Notable Question Custodian Good Answer Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 4688,1431691,504286,Student Supporter Nice Question Popular Question Good Question Scholar Yearling Notable Question Editor Teacher Yearling Commentator Curious Popular Question,NULL,NULL,0,NULL,NULL 4689,155024,162407,Nice Answer Nice Answer Enlightened Investor Necromancer Nice Answer Enlightened Good Answer Nice Answer Guru Yearling Nice Answer Nice Answer Guru Good Answer Yearling Nice Answer Guru Yearling Guru,NULL,NULL,0,NULL,NULL 4690,1346977,1492231,Informed Autobiographer Tumbleweed Supporter Teacher,NULL,NULL,0,NULL,NULL 4691,234299,335726,NULL,NULL,NULL,0,NULL,NULL 4692,13184,1501565,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 4693,233462,1013709,NULL,NULL,NULL,0,NULL,NULL 4694,14977,412426,Yearling Great Answer Caucus Constituent Necromancer Caucus Constituent Yearling Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4695,261177,646051,NULL,NULL,NULL,0,NULL,NULL 4696,41695,366211,Notable Question,NULL,NULL,0,NULL,NULL 4697,50039,998758,NULL,NULL,NULL,0,NULL,NULL 4698,222796,387595,NULL,NULL,NULL,0,NULL,NULL 4699,160249,1078916,NULL,NULL,NULL,0,NULL,NULL 4700,183502,509927,Self-Learner,NULL,NULL,0,NULL,NULL 4701,2056917,697037,NULL,NULL,NULL,0,NULL,NULL 4702,292606,697037,NULL,NULL,NULL,0,NULL,NULL 4703,12263,1088946,NULL,NULL,NULL,0,NULL,NULL 4704,1042798,561476,Necromancer Commentator Yearling Nice Answer Popular Question Nice Answer Notable Question Yearling Notable Question Necromancer Yearling Popular Question Good Answer Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4705,161341,396587,NULL,NULL,NULL,0,NULL,NULL 4706,42724,306091,Popular Question,NULL,NULL,0,NULL,NULL 4707,142649,422906,Informed,NULL,NULL,0,NULL,NULL 4708,277821,992489,Commentator Yearling Yearling Revival Tenacious Yearling Yearling Yearling Unsung Hero Editor Custodian Nice Answer Enlightened Citizen Patrol Popular Question Caucus Critic tensorflow Yearling Revival Organizer Revival Yearling Excavator,NULL,NULL,0,NULL,NULL 4709,2695101,1486062,NULL,NULL,NULL,0,NULL,NULL 4710,388846,1243445,Self-Learner Critic Commentator Popular Question Yearling,NULL,NULL,0,NULL,NULL 4711,138591,1473389,NULL,NULL,NULL,0,NULL,NULL 4712,117156,451630,NULL,NULL,NULL,0,NULL,NULL 4713,1606,1346815,Nice Answer Yearling php Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 4714,117553,410744,NULL,NULL,NULL,0,NULL,NULL 4715,401566,905875,NULL,NULL,NULL,0,NULL,NULL 4716,3121643,905875,NULL,NULL,NULL,0,NULL,NULL 4717,9799742,905875,NULL,NULL,NULL,0,NULL,NULL 4718,993407,177023,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4719,912515,538580,NULL,NULL,NULL,0,NULL,NULL 4720,181337,216712,Autobiographer,NULL,NULL,0,NULL,NULL 4721,1195943,752706,Famous Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 4722,1007211,441265,Revival Populist,NULL,NULL,0,NULL,NULL 4723,153850,441265,Revival Populist,NULL,NULL,0,NULL,NULL 4724,597173,1261084,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 4725,310193,763794,Notable Question Custodian Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 4726,607663,725271,NULL,NULL,NULL,0,NULL,NULL 4727,1216104,296522,Popular Question,NULL,NULL,0,NULL,NULL 4728,296237,296522,Popular Question,NULL,NULL,0,NULL,NULL 4729,264553,1525865,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4730,130365,804479,Nice Question Announcer Yearling Nice Answer Revival Necromancer Nice Answer Enlightened Famous Question Nice Answer Announcer Yearling Necromancer Nice Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 4731,261961,135254,Commentator,NULL,NULL,0,NULL,NULL 4732,830382,696363,NULL,NULL,NULL,0,NULL,NULL 4733,2859493,131975,Popular Question Necromancer Nice Question Yearling Tumbleweed Notable Question Curious Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 4734,440,45712,Yearling Necromancer Announcer Famous Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 4735,485353,381815,Enthusiast Good Answer Tumbleweed,NULL,NULL,0,NULL,NULL 4736,18228,993508,Popular Question Necromancer Nice Answer Yearling Yearling Custodian Nice Answer Caucus Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 4737,204776,1081390,NULL,NULL,NULL,0,NULL,NULL 4738,2393823,1149332,Peer Pressure Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4739,64132,19756,Nice Answer Taxonomist Popular Question Good Answer Famous Question Yearling Revival Caucus Constituent Famous Question Custodian Custodian Caucus Constituent Good Answer Guru Enlightened Yearling Popular Question Good Question Notable Question Caucus Constituent Necromancer Guru Yearling Famous Question,NULL,NULL,0,NULL,NULL 4740,8171,766489,NULL,NULL,NULL,0,NULL,NULL 4741,7786,1476352,Civic Duty Commentator,NULL,NULL,0,NULL,NULL 4742,290541,221244,Famous Question Nice Question Good Question Good Question Notable Question Famous Question Yearling Popular Question Notable Question Nice Question Nice Question Famous Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Notable Question Yearling Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4743,1506879,943432,Revival Necromancer Yearling Good Answer Caucus Nice Answer Nice Answer Caucus Yearling Popular Question Nice Answer Good Answer Necromancer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4744,197669,430665,NULL,NULL,NULL,0,NULL,NULL 4745,1578076,604991,Nice Question,NULL,NULL,0,NULL,NULL 4746,8822353,1457663,NULL,NULL,NULL,0,NULL,NULL 4747,1127077,1457663,NULL,NULL,NULL,0,NULL,NULL 4748,69045,553615,NULL,NULL,NULL,0,NULL,NULL 4749,27521,195509,Popular Question,NULL,,0,, 4750,249431,323915,Popular Question,NULL,NULL,0,NULL,NULL 4751,3470562,813111,Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Notable Question Self-Learner Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 4752,1393876,313113,Announcer Nice Answer Enlightened Yearling Revival Nice Answer Nice Answer Announcer Necromancer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Good Answer Announcer Good Answer Announcer Yearling Strunk & White Announcer Announcer Good Answer Caucus Announcer Pundit Nice Answer Announcer Documentation User Announcer Revival Announcer Announcer Guru Announcer Popular Question Yearling Revival Announcer Revival Taxonomist Guru Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4753,831497,877036,Nice Answer,NULL,NULL,0,NULL,NULL 4754,583982,192224,NULL,NULL,NULL,0,NULL,NULL 4755,636438,122536,Popular Question Popular Question Popular Question Notable Question Autobiographer Nice Question Nice Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Socratic Notable Question Favorite Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Yearling Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Notable Question Good Question Popular Question Nice Question Notable Question Notable Question Stellar Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Great Question Popular Question Notable Question Famous Question Notable Question Good Question Great Question Good Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Famous Question Good Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Famous Question Nice Question Notable Question Popular Question Good Question Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Famous Question Good Question Famous Question Favorite Question Nice Question Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 4756,110782,13467,Yearling Nice Answer Enlightened Good Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 4757,439689,601572,Popular Question Suffrage Excavator Vox Populi Nice Question Electorate Announcer,NULL,NULL,0,NULL,NULL 4758,23717,203786,Yearling Yearling,NULL,NULL,0,NULL,NULL 4759,64196,583313,NULL,NULL,NULL,0,NULL,NULL 4760,3899116,429476,Notable Question Curious Citizen Patrol Civic Duty Yearling Revival Nice Answer Announcer Yearling Necromancer Necromancer Popular Question Announcer Necromancer Census Popular Question Necromancer Necromancer Yearling Nice Answer Yearling Necromancer Revival,NULL,round in Python doesn seem to be rounding properly python floating point rounding pThe documentation for the href http docs python org lib built in funcs html rel noreferrer round function states that you pass it number and the positions past the decimal to round Thus it emshould em do this ppre coden 59round code prepBut in actuality good old floating point weirdness creeps in and you get ppre code5 5999999999999996 code prepFor the purposes of UI need to display code5 code poked around the Internet and found some href http mail python org pipermail python list 2005 September 340383 html rel noreferrer documentation that this is dependent on my implementation of Python Unfortunately this occurs on both my Windows dev machine and each Linux server ve tried href http www python org doc tut node16 html rel noreferrer See here also ppShort of creating my own round library is there any way around this tried this with python 11 round 59 and it is giving result as in both windows and linux x86 64 bit machine Cython the documentation link mentioned is changed now guess pYou can use href http docs python org library itertools html itertools chain rel noreferrer codeitertools chain code ppre code gt gt gt import itertools gt gt gt list2d gt gt gt merged list itertools chain list2d code prepor on Python use href http docs python org library itertools html itertools chain from iterable rel noreferrer codeitertools chain from iterable code which doesn require unpacking the list ppre code gt gt gt import itertools gt gt gt list2d gt gt gt merged list itertools chain from iterable list2d code prepThis approach is arguably more readable than code item for sublist in for item in sublist code and appears to be faster too ppre code me python mtimeit 99 import itertools list itertools chain from iterable 10000 loops best of 24 usec per loop me python mtimeit 99 item for sublist in for item in sublist 10000 loops best of 45 usec per loop me python mtimeit 99 sum 1000 loops best of 488 usec per loop me python mtimeit 99 reduce lambda 1000 loops best of 522 usec per loop me python versionPython code pre This is slower than what Alex proposed in the context below all altered nbrs nbr1 key1 src2 nbr2 key2 src4 timeit for key in all altered nbrs itervalues for in key keys timeit reduce lambda extend keys or all altered nbrs itervalues timeit list itertools chain src relation keys for src relation in all altered nbrs itervalues 100000 loops best of 47 µs per loop 100000 loops best of 74 µs per loop 100000 loops best of 12 µs per loop pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public This did not help there was merge and it popped an error saying option not specified As in the comments did this git revert HEAD and tried again but it gave an error saying cherrypick or revert is in progress did cherrypick quit and it went back to the message that there was merge and is not specified pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public just checked out the commit hash and created new branch from there to work This is more safe and easier,0,NULL,NULL 4761,320940,1494521,NULL,NULL,NULL,0,NULL,NULL 4762,489019,130921,NULL,NULL,NULL,0,NULL,NULL 4763,186232,779050,Yearling Guru Caucus Constituent Caucus Constituent Custodian Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4764,486180,876743,NULL,NULL,NULL,0,NULL,NULL 4765,122636,848852,Yearling Yearling,NULL,NULL,0,NULL,NULL 4766,179984,794503,Famous Question,NULL,NULL,0,NULL,NULL 4767,655627,1135629,Yearling Nice Answer Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4768,500333,1532133,NULL,NULL,NULL,0,NULL,NULL 4769,424260,558265,NULL,NULL,NULL,0,NULL,NULL 4770,4502,297630,Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 4771,83107,561541,Yearling Commentator Good Answer Yearling Editor Critic Yearling Yearling Enthusiast Guru Scholar Student Caucus Constituent Yearling Yearling Nice Answer Nice Answer Organizer Popular Question,NULL,NULL,0,NULL,NULL 4772,1218340,163668,Revival,NULL,NULL,0,NULL,NULL 4773,132925,212584,Yearling Caucus Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 4774,514741,435522,Nice Question Popular Question Necromancer Popular Question Yearling Self-Learner Curious Revival Notable Question Yearling Nice Question Popular Question Popular Question Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 4775,148006,1149101,NULL,NULL,NULL,0,NULL,NULL 4776,651394,1206301,Yearling Necromancer Popular Question Custodian Yearling Peer Pressure Nice Question Caucus Popular Question Yearling Caucus Mortarboard concurrency,NULL,NULL,0,NULL,NULL 4777,1042322,1136940,Popular Question Critic Informed Caucus Notable Question Popular Question Yearling Caucus Documentation User Yearling Organizer Famous Question,NULL,NULL,0,NULL,NULL 4778,265498,210465,Enthusiast,NULL,NULL,0,NULL,NULL 4779,600544,526494,NULL,NULL,NULL,0,NULL,NULL 4780,1318059,1221956,NULL,NULL,NULL,0,NULL,NULL 4781,744667,46111,Scholar,NULL,NULL,0,NULL,NULL 4782,2035559,938594,NULL,NULL,NULL,0,NULL,NULL 4783,3162,380159,Nice Answer Popular Question Popular Question Necromancer Guru Yearling Good Answer Revival Nice Answer Good Answer Yearling Nice Question Popular Question Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 4784,63178,1387884,Scholar Student,NULL,NULL,0,NULL,NULL 4785,884457,503173,NULL,NULL,NULL,0,NULL,NULL 4786,50878,1279744,Commentator Notable Question Caucus,NULL,NULL,0,NULL,NULL 4787,22607,1422194,Notable Question,NULL,NULL,0,NULL,NULL 4788,55725,840568,Autobiographer Popular Question Teacher Scholar Commentator Critic,NULL,NULL,0,NULL,NULL 4789,241625,273367,Yearling Famous Question,NULL,NULL,0,NULL,NULL 4790,119276,728975,NULL,NULL,NULL,0,NULL,NULL 4791,125637,1304961,NULL,NULL,NULL,0,NULL,NULL 4792,130903,1115773,NULL,NULL,NULL,0,NULL,NULL 4793,491372,1265154,Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer django Pundit Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent pandas Good Answer Nice Answer Enlightened scikit-learn Good Answer Good Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Good Answer Good Answer Announcer Good Answer Guru python-2.7 Nice Answer Enlightened Announcer Good Answer Guru Nice Answer Enlightened Announcer Documentation User Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Good Answer Guru Good Answer Guru Guru Announcer Guru Guru Nice Answer Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 4794,363315,1306816,Yearling,NULL,NULL,0,NULL,NULL 4795,257780,734072,Nice Answer,NULL,NULL,0,NULL,NULL 4796,443323,1039334,NULL,NULL,NULL,0,NULL,NULL 4797,923353,1014458,Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 4798,617809,446528,NULL,NULL,NULL,0,NULL,NULL 4799,154788,826475,NULL,NULL,NULL,0,NULL,NULL 4800,1420757,1341080,NULL,NULL,NULL,0,NULL,NULL 4801,18701,476270,Custodian Yearling Nice Answer Enlightened Great Answer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 4802,287742,344747,NULL,NULL,NULL,0,NULL,NULL 4803,560297,1102183,Supporter,NULL,NULL,0,NULL,NULL 4804,1514970,1102183,Supporter,NULL,NULL,0,NULL,NULL 4805,76916,231624,Notable Question Popular Question Revival Inquisitive Popular Question Good Question Revival Popular Question Caucus Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Civic Duty Notable Question Nice Question Caucus Nice Question Popular Question Popular Question Necromancer Popular Question Popular Question Necromancer Yearling Popular Question Nice Question Nice Question Popular Question Good Question Nice Answer Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 4806,392476,1402453,Guru Yearling Good Answer Good Answer Nice Answer Yearling Guru Guru Great Answer Nice Answer Yearling garbage-collection,NULL,NULL,0,NULL,NULL 4807,3190892,799356,NULL,NULL,NULL,0,NULL,NULL 4808,1056386,861423,Good Answer Explainer Yearling Popular Question Caucus Constituent Revival Yearling Popular Question Popular Question Census Nice Question Caucus Constituent Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 4809,6956411,856043,NULL,NULL,NULL,0,NULL,NULL 4810,10130,1047741,Notable Question Famous Question Popular Question Popular Question Popular Question git Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Announcer Popular Question Great Answer Popular Question Famous Question Caucus Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Electorate Popular Question Announcer Notable Question Notable Question Announcer Notable Question Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4811,49358,763883,NULL,NULL,NULL,0,NULL,NULL 4812,144441,281140,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4813,345911,987266,NULL,NULL,NULL,0,NULL,NULL 4814,20496,9204,Great Answer Nice Answer Enlightened Popular Question Popular Question Good Answer Good Question Nice Question Notable Question Nice Question Notable Question java Good Answer Nice Answer Enlightened Good Answer Necromancer Notable Question Nice Answer Popular Question Populist Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question pattern-matching Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Guru Nice Question apache-spark Good Answer Necromancer Popular Question Favorite Question Nice Question Guru generics Popular Question Notable Question Popular Question Yearling Good Question Notable Question Notable Question Popular Question Nice Answer Enlightened Notable Question Notable Question Good Answer eclipse-plugin Notable Question Notable Question Good Answer Famous Question Revival Popular Question Nice Question Notable Question Famous Question Famous Question Popular Question Great Question Nice Answer Guru Popular Question Notable Question Nice Answer Enlightened Nice Question Notable Question Necromancer Popular Question Necromancer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question typeclass Nice Answer Enlightened Famous Question Popular Question Popular Question Notable Question Famous Question Nice Answer Enlightened Nice Answer Guru Popular Question Notable Question Popular Question implicit Famous Question Nice Answer Enlightened Notable Question Nice Answer Enlightened eclipse Nice Answer Yearling Popular Question Popular Question Popular Question Nice Answer Enlightened Notable Question Notable Question Popular Question Nice Answer Good Answer Popular Question kotlin Revival Good Answer Nice Answer Enlightened Necromancer Notable Question Nice Answer Popular Question Popular Question Nice Question Favorite Question Famous Question Caucus Popular Question Nice Answer Enlightened Good Question Good Question Notable Question Nice Answer Enlightened Famous Question Nice Answer Necromancer Popular Question Nice Answer Notable Question Nice Question Guru Nice Question Nice Answer Good Answer Announcer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Famous Question Good Answer Famous Question Nice Answer Popular Question implicit-conversion Notable Question,NULL,NULL,0,NULL,NULL 4815,18594,161287,Notable Question Famous Question Notable Question Good Question Famous Question Good Question Popular Question Famous Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Great Question Popular Question Famous Question Famous Question Popular Question Yearling Notable Question Good Question Good Question Popular Question Nice Question Popular Question Nice Question Famous Question Notable Question Notable Question Popular Question Necromancer Good Question Nice Answer Nice Question Notable Question Notable Question Nice Answer Nice Answer Favorite Question Favorite Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Yearling Popular Question Famous Question Famous Question Nice Question Notable Question Popular Question Nice Answer Notable Question Nice Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4816,444946,788374,Yearling Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 4817,190187,975785,NULL,NULL,NULL,0,NULL,NULL 4818,166227,1290086,NULL,NULL,NULL,0,NULL,NULL 4819,359194,599628,Popular Question Yearling Famous Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Famous Question Popular Question Yearling Notable Question Nice Answer Nice Question Good Question,NULL,NULL,0,NULL,NULL 4820,1889996,1139509,NULL,NULL,NULL,0,NULL,NULL 4821,581569,93540,Yearling Popular Question Popular Question Stellar Question Nice Answer Popular Question Necromancer Nice Answer Notable Question Investor Nice Question Strunk & White Altruist Announcer Census Cleanup Necromancer Necromancer Nice Question Popular Question Popular Question Nice Question Yearling Good Answer Revival Revival Necromancer Custodian Nice Answer Necromancer Tumbleweed Necromancer Famous Question Good Question Notable Question Popular Question Disciplined Nice Answer Nice Answer Revival Announcer Yearling Informed Necromancer Revival Nice Answer Necromancer Good Question Popular Question Good Question Popular Question,NULL,Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this it would take days to fix them proper therefore this question Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this rather hope this legacy API will be decommissioned before there will be trouble But this isn going to happen for year or two Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this sure you re right it will stay running under PHP5 in production while PHP5 is supported and updated but got to be prepared for its end of life Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this could you point in direction where one can read about these new enforcements Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this Really want to challenge this assumption somewhere Because PHP already enforces explicitly defined interfaces And there func get args which enable fluent interfaces anyway,1,Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this,jekyll debug or print all variables ruby debugging jekyll pI want to peak into Jekyll brain and see what going on in php you have href http php net manual en function get defined vars php get defined vars so tried to do something akin to that with ppre code for local variable in local variables lt gt local variable lt gt lt br gt endfor code prepWhich output nothing Am trying too hard Is there some method in ruby or jekyll for this just like to poke around and make sure everything is set correctly and possibly to find out about variables don know about codeinspect code doesn let you peek inside variables where codejsonify code does just that ppre code variable jsonify code prepNo plugins needed 4822,4229,411960,Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 4823,198861,781474,NULL,NULL,NULL,0,NULL,NULL 4824,191695,799442,Enthusiast Editor,NULL,NULL,0,NULL,NULL 4825,23137,982753,Revival Nice Answer,NULL,NULL,0,NULL,NULL 4826,157305,322079,Teacher Editor Yearling Critic Tenacious Caucus Yearling Commentator Custodian Enthusiast Yearling Yearling Mortarboard Yearling Yearling Unsung Hero Yearling Organizer Revival Revival Caucus Yearling Revival php guzzle Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4827,672257,675016,Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 4828,33637,95985,Revival Enthusiast,NULL,NULL,0,NULL,NULL 4829,228122,963455,NULL,NULL,NULL,0,NULL,NULL 4830,429781,379584,NULL,NULL,NULL,0,NULL,NULL 4831,108778,1016033,Good Answer Nice Answer Enlightened Announcer Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Announcer Announcer Announcer Documentation User Custodian Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer nginx Nice Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 4832,103183,1186395,NULL,NULL,NULL,0,NULL,NULL 4833,44881,1335055,NULL,NULL,NULL,0,NULL,NULL 4834,536871,1045750,NULL,NULL,NULL,0,NULL,NULL 4835,429688,990158,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 4836,250829,214749,NULL,NULL,NULL,0,NULL,NULL 4837,1564070,307932,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 4838,169910,307932,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 4839,152953,1015700,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4840,372276,1057026,Nice Question,NULL,NULL,0,NULL,NULL 4841,345690,1232586,NULL,NULL,NULL,0,NULL,NULL 4842,211284,436199,Caucus Caucus,NULL,NULL,0,NULL,NULL 4843,5348372,436199,Caucus Caucus,NULL,NULL,0,NULL,NULL 4844,553817,566872,Nice Answer Revival,NULL,NULL,0,NULL,NULL 4845,1083323,1066637,NULL,NULL,NULL,0,NULL,NULL 4846,347911,888958,Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 4847,277105,843734,Notable Question Civic Duty Popular Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 4848,891238,421669,NULL,NULL,NULL,0,NULL,NULL 4849,7982,487160,Commentator Popular Question Curious Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4850,8756,246385,NULL,NULL,NULL,0,NULL,NULL 4851,7857,960828,Good Answer Notable Question Popular Question Guru Good Answer Nice Answer Enlightened Notable Question Necromancer Explainer Popular Question Popular Question Nice Answer Nice Answer Popular Question Good Question Good Answer Yearling Nice Answer Nice Answer Nice Answer Good Answer Popular Question Necromancer Good Answer Popular Question Popular Question Popular Question Nice Answer Good Question Popular Question Nice Answer Good Question Notable Question Notable Question Nice Answer Enlightened ruby-on-rails-3 Yearling Nice Answer Necromancer Nice Answer Nice Answer Popular Question Guru Nice Answer Enlightened Good Answer Nice Question Nice Question Nice Answer Good Answer Yearling Guru Guru Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 4852,206704,720800,Supporter Popular Question,NULL,NULL,0,NULL,NULL 4853,359845,1013486,Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 4854,80502,338765,NULL,NULL,NULL,0,NULL,NULL 4855,15746,1428163,NULL,NULL,NULL,0,NULL,NULL 4856,113383,398836,Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 4857,265446,1014291,NULL,NULL,NULL,0,NULL,NULL 4858,580035,1404476,NULL,NULL,NULL,0,NULL,NULL 4859,1026219,889631,NULL,NULL,NULL,0,NULL,NULL 4860,492442,336507,NULL,NULL,NULL,0,NULL,NULL 4861,307335,653442,NULL,NULL,NULL,0,NULL,NULL 4862,231283,648703,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 4863,938823,810061,NULL,NULL,NULL,0,NULL,NULL 4864,69789,989092,NULL,NULL,NULL,0,NULL,NULL 4865,125892,557758,Popular Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 4866,308591,1364580,NULL,NULL,NULL,0,NULL,NULL 4867,9985,1090255,Yearling Critic Informed,NULL,NULL,0,NULL,NULL 4868,165057,786948,Yearling Nice Answer Good Answer Custodian Caucus Nice Answer Enlightened Custodian Yearling Caucus Guru Good Answer Census Nice Question Caucus Yearling Good Answer Enlightened Nice Question Popular Question,NULL,NULL,0,NULL,NULL 4869,212722,1325139,NULL,NULL,NULL,0,NULL,NULL 4870,77732,788782,Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 4871,464308,1053110,Teacher Supporter,NULL,NULL,0,NULL,NULL 4872,1566807,232257,NULL,NULL,NULL,0,NULL,NULL 4873,372818,844882,Nice Answer Booster Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Notable Question Necromancer Populist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Question Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Question Guru Yearling Good Answer Notable Question Nice Question Great Answer Booster Revival Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Great Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Revival Necromancer Popular Question Good Answer Nice Answer Announcer Nice Answer Enlightened Favorite Question Publicist Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Guru Announcer Documentation User Notable Question Nice Answer Nice Answer Announcer Booster Great Answer Great Answer Enlightened Famous Question Great Answer Publicist Guru Guru Announcer Necromancer Announcer Guru Good Answer Popular Question Necromancer Yearling Revival Nice Answer Enlightened Nice Question,NULL,pFirst of all you should read my href http www androiddesignpatterns com 2013 08 fragment transaction commit state loss html rel noreferrer strongblog post strong for more information it talks about why this exception happens and what you can do to prevent it ppCalling codecommitAllowingStateLoss code is more of hack than fix State loss is bad and should be avoided at all costs At the time that codeonActivityResult code is called the activity fragment state may not yet have been restored and therefore any transactions that happen during this time will be lost as result This is very important bug which must be addressed Note that the bug only happens when your codeActivity code is coming back after having been killed by the system which depending on how much memory the device has can sometimes be rare so this sort of bug is not something that is very easy to catch while testing ppTry moving your transactions into codeonPostResume code instead note that codeonPostResume code is always called after codeonResume code and codeonResume code is always called after codeonActivityResult code ppre codeprivate boolean mReturningWithResult false ed void onActivityResult int requestCode int resultCode Intent data super onActivityResult requestCode resultCode data mReturningWithResult true ed void onPostResume super onPostResume if mReturningWithResult Commit your transactions here Reset the boolean flag back to false for next time mReturningWithResult false code prepThis might seem little weird but doing this sort of thing is necessary to ensure that your codeFragmentTransaction codes are always committed emafter em the codeActivity code state has been restored to its original state codeonPostResume code is guaranteed to be called after the codeActivity code state has been restored Is there bug that you know of that confirms this wasn aware of any changes to the fragment lifecycle recently,0,NULL,NULL 4874,816395,23066,Famous Question Yearling Necromancer Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 4875,181516,778552,Popular Question Civic Duty Yearling Popular Question Popular Question Yearling Nice Answer Caucus Custodian Custodian Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4876,176481,948350,Nice Answer Enlightened Good Answer Notable Question Investor Notable Question Good Answer Yearling Nice Answer Enlightened Popular Question Caucus Famous Question Popular Question Good Answer Nice Answer Enlightened Notable Question Popular Question Great Answer Popular Question Good Answer Yearling Popular Question Caucus Notable Question Guru Guru Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 4877,325716,1126045,NULL,NULL,NULL,0,NULL,NULL 4878,83389,12730,Yearling Notable Question Caucus Custodian Popular Question Notable Question Caucus Constituent Yearling Caucus Constituent Custodian Explainer Yearling Custodian Citizen Patrol Revival,NULL,NULL,1,How to test an akka stream closed shape runnable graph with an encapsulated source and sink scala scalatest akka stream pI created an akka stream that has process function and an error handler function passed into it The codeSource code and codeSink code are fully encapsulated in codeClosedShape code codeRunnableFlow code My intention is that would pass an item to the parent class and run it through the flow This all seems to work until get to testing using scala test and passing appending to Lists inside the process function and error handler function randomly generating errors to see things flow to the error handler function as well The problem is if pass 100 items to the parent class then would expect the list of items in the error function and the list of items in the process function to add up to 100 Since the Source and Sink are fully encapsulated don have clear way to tell the test to wait and it gets to the assertion should statements before all items have processed through the stream ve created href https gist github com leftofnull 3e4c2a6b18fe71d219b6 rel nofollow this gist to describe the stream ppHere an example test for the above gist ppre codeimport akka actor import akka stream import akka testkit import org scalatest class TestSpec system ActorSystem extends TestKit system with ImplicitSender with WordSpecLike with Matchers with BeforeAndAfterAll def this this ActorSystem TestSpec override def afterAll Thread sleep 500 mat shutdown TestKit shutdownActorSystem system implicit val mat ActorMaterializer ActorMaterializerSettings system withDebugLogging true withFuzzing true TestSpec must handle messages in val testStream new Testing For Testing class see gist https gist github com leftofnull 3e4c2a6b18fe71d219b6 to 100 map gt testStream processString Give it 100 strings to chew on testStream errors size should not be passes testStream processed size should not be passes testStream processed size testStream errors size should be 100 fails due to checking before all items are processed code pre,NULL 4879,73615,904215,Teacher,NULL,NULL,0,NULL,NULL 4880,58178,1356812,NULL,NULL,NULL,0,NULL,NULL 4881,446892,679195,NULL,NULL,NULL,0,NULL,NULL 4882,32769,670290,NULL,NULL,NULL,0,NULL,NULL 4883,1071981,1113159,Nice Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 4884,17822,1113641,NULL,NULL,NULL,0,NULL,NULL 4885,381699,1127193,Yearling Guru Nice Question Yearling,NULL,NULL,0,NULL,NULL 4886,120882,1179127,Census,NULL,NULL,0,NULL,NULL 4887,120109,27069,Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 4888,1270915,127687,Famous Question Yearling Caucus Informed Civic Duty Tag Editor Nice Question Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 4889,406185,1046859,Yearling Famous Question Famous Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 4890,947413,490526,Nice Answer Yearling Guru Custodian Custodian Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 4891,216614,959391,Autobiographer Custodian Scholar,NULL,NULL,0,NULL,NULL 4892,1488914,1066575,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4893,393038,207090,Custodian Great Question Favorite Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 4894,330108,649933,NULL,NULL,NULL,0,NULL,NULL 4895,228036,91642,Yearling Popular Question Custodian Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4896,2238066,1507875,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 4897,53951,816387,NULL,NULL,NULL,0,NULL,NULL 4898,445048,132444,Popular Question Yearling Necromancer Nice Answer Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 4899,585760,58540,NULL,NULL,NULL,0,NULL,NULL 4900,567180,207399,Critic,NULL,NULL,0,NULL,NULL 4901,49898,781881,NULL,NULL,NULL,0,NULL,NULL 4902,511059,274789,NULL,NULL,NULL,0,NULL,NULL 4903,45863,274789,NULL,NULL,NULL,0,NULL,NULL 4904,55889,1113489,NULL,NULL,NULL,0,NULL,NULL 4905,132124,412689,Great Answer Yearling Famous Question Guru Popular Question Yearling Self-Learner Famous Question Nice Question objective-c Yearling,NULL,NULL,0,NULL,NULL 4906,19165,285025,Notable Question Revival,NULL,NULL,0,NULL,NULL 4907,485250,65694,Necromancer Good Answer Yearling Proofreader Explainer Famous Question Custodian Strunk & White Informed Reviewer Nice Answer Necromancer Custodian Necromancer Necromancer Nice Answer Necromancer Good Answer Nice Question Nice Answer Caucus Revival Necromancer Necromancer Revival Necromancer Good Answer Yearling Nice Answer Nice Answer Nice Answer Caucus Constituent Necromancer Necromancer Custodian Nice Answer Necromancer Great Answer Nice Answer Nice Answer Necromancer Yearling Nice Answer Necromancer Popular Question Necromancer Necromancer Revival Necromancer Necromancer Archaeologist,NULL,NULL,0,NULL,NULL 4908,1059304,569086,NULL,NULL,NULL,0,NULL,NULL 4909,445251,1287567,Notable Question,NULL,NULL,0,NULL,NULL 4910,883757,1151295,Nice Question,NULL,NULL,0,NULL,NULL 4911,47526,1529244,NULL,NULL,NULL,0,NULL,NULL 4912,1147844,357350,Popular Question,NULL,NULL,0,NULL,NULL 4913,41841,18627,Nice Answer Good Answer Good Answer Necromancer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Populist Nice Answer Yearling Nice Answer Census Explainer cassandra Nice Question Nice Question Custodian Custodian elisp Good Answer Custodian cassandra-3.0 Fanatic Revival clojure Yearling Organizer Citizen Patrol Excavator,NULL,NULL,0,NULL,NULL 4914,134923,650002,NULL,NULL,NULL,0,NULL,NULL 4915,1214756,1464761,NULL,NULL,NULL,0,NULL,NULL 4916,886655,681844,NULL,NULL,NULL,0,NULL,NULL 4917,165202,1154129,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 4918,195886,940531,NULL,NULL,NULL,0,NULL,NULL 4919,422211,784858,Nice Answer Enlightened Nice Answer Yearling Nice Question Good Answer Popular Question Yearling Great Answer Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 4920,927976,1467359,NULL,NULL,NULL,0,NULL,NULL 4921,107502,1467359,NULL,NULL,NULL,0,NULL,NULL 4922,223034,900631,Yearling Good Answer Yearling Custodian Citizen Patrol Yearling Yearling,NULL,NULL,0,NULL,NULL 4923,1090535,1405605,Popular Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 4924,86175,1432982,Necromancer Yearling Nice Answer Revival Caucus Constituent Announcer Yearling Revival Excavator Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 4925,1965393,238447,NULL,NULL,NULL,0,NULL,NULL 4926,134280,1503726,NULL,NULL,NULL,0,NULL,NULL 4927,626541,849298,NULL,NULL,NULL,0,NULL,NULL 4928,1574006,811521,NULL,NULL,NULL,0,NULL,NULL 4929,1560179,1312015,NULL,NULL,NULL,0,NULL,NULL 4930,697370,1019227,Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Enlightened Yearling Caucus Constituent Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Notable Question Nice Answer Caucus Constituent Great Answer Yearling Nice Answer Census Suffrage Vox Populi Nice Answer Caucus Good Answer Guru python-3.x Nice Answer Yearling,NULL,NULL,0,NULL,NULL 4931,16104,44389,Guru Guru Favorite Question Popular Question Good Answer Nice Answer Enlightened Famous Question Notable Question Guru Good Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer Notable Question Guru Popular Question Guru Nice Answer Good Answer regex Notable Question Popular Question Popular Question Nice Answer Guru Guru Nice Question Guru Great Answer Nice Answer Enlightened Great Answer Guru Guru Good Answer Good Answer Nice Answer Nice Answer Yearling Popular Question Nice Answer Great Answer Notable Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Guru Great Answer Famous Question Great Answer Nice Answer Good Question Nice Answer Nice Answer Great Question Notable Question Yearling Revival Good Answer Good Answer Nice Answer Favorite Question Nice Answer Nice Question Guru Good Answer Populist Good Answer Guru Famous Question Great Answer Popular Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 4932,359171,555460,Necromancer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 4933,6697,476699,Yearling,NULL,NULL,0,NULL,NULL 4934,1522634,1058136,Popular Question Notable Question Civic Duty Popular Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 4935,1196120,1088438,NULL,NULL,NULL,0,NULL,NULL 4936,244499,759501,Yearling,NULL,NULL,0,NULL,NULL 4937,4208267,759501,Yearling,NULL,NULL,0,NULL,NULL 4938,359620,513508,Nice Answer Notable Question Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 4939,920580,1409910,NULL,NULL,NULL,0,NULL,NULL 4940,157544,811716,NULL,NULL,NULL,0,NULL,NULL 4941,168793,609988,Yearling Necromancer Guru Guru Yearling Curious Yearling Famous Question,NULL,NULL,0,NULL,NULL 4942,81230,1075864,Nice Question Popular Question Good Answer Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 4943,213209,1177843,NULL,NULL,NULL,0,NULL,NULL 4944,363993,857617,Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4945,419620,27385,Popular Question Nice Answer Enthusiast Archaeologist Inquisitive Tumbleweed Promoter Self-Learner Notable Question Custodian Proofreader Documentation Pioneer Informed Popular Question java Yearling Popular Question Popular Question Popular Question Census Custodian Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Great Answer Popular Question Documentation User Yearling Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Custodian Famous Question Revival Popular Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 4946,2431,1165750,Critic Commentator,NULL,NULL,0,NULL,NULL 4947,847859,763607,Teacher Famous Question,NULL,NULL,0,NULL,NULL 4948,2163044,763607,Teacher Famous Question,NULL,NULL,0,NULL,NULL 4949,1323921,1464896,NULL,NULL,NULL,0,NULL,NULL 4950,455029,1021051,Informed Critic,NULL,NULL,0,NULL,NULL 4951,366480,553536,Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 4952,23920,99714,NULL,NULL,NULL,0,NULL,NULL 4953,905328,636879,NULL,NULL,NULL,0,NULL,NULL 4954,1692870,401038,NULL,NULL,NULL,0,NULL,NULL 4955,482254,11897,Yearling Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 4956,201898,836352,NULL,NULL,NULL,0,NULL,NULL 4957,254305,413662,Necromancer Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 4958,15271,428260,Good Answer Famous Question ruby-on-rails-3 github Nice Answer Enlightened Yearling Nice Answer Good Question Caucus Constituent Nice Answer Enlightened Good Answer Good Answer Popular Question Guru Good Question Caucus Revival Constituent Yearling Nice Answer Documentation User ruby-on-rails Nice Answer Guru Yearling Necromancer,NULL,NULL,1,NULL,Clipboard failure in tmux vim after upgrading to MacOS Sierra vim tmux macos sierra neovim pYesterday upgraded to MacOS Sierra and it broke my clipboard functionality in my tmux neovim setup ppHere is the behavior pulliI can use the standard ctrl ctrl to copy paste between system lt vim liliI can yank paste between two VIM instances when NOT in tmux session liliI cannot yank paste between two VIM instances when in tmux session li ulpWhenever use the clipboard in vim within tmux session get the following vim error ppre codeclipboard error code prepMy code vimrc code is huge but here what think might be relevant ppre codeset clipboard unnamed code prepIn my code tmux conf code also truncated for brevity ppre codeset prefix use tilde key as prefixbind send key insert tilde by pressing twiceset history limit 100000 set buffer sizeset escape time fix escape key in vimset allow rename off keep window names staticset default terminal screen 256color set the TERM to 256 colorsset base index start window count at 1set pane base index start pane count at 1set default shell SHELL use zsh as shell code prep strongEDIT strong This appears to be related to the bug reported here pp href https github com tmux tmux issues 543 rel noreferrer https github com tmux tmux issues 543 pp href https github com ChrisJohnsen tmux MacOSX pasteboard issues 53 rel noreferrer https github com ChrisJohnsen tmux MacOSX pasteboard issues 53 pThis seem to be regression on macOS Sierra solution that worked for me has been mentioned by href https github com joshuamcginnis Josh McGinnis href https github com tmux tmux issues 543 https github com tmux tmux issues 543 pp codebrew install reattach to user namespace code ppEnsure the following is set in tmux conf ppre codeset default shell SHELL set default command reattach to user namespace SHELL code prepIn vimrc or config nvim init vim for Neovim ppre codeset clipboard unnamed code prepNow all is well and can copy paste between system lt vim sessions using vim keybindings and or system ctrl ctrl 4959,407899,1039148,NULL,NULL,NULL,0,NULL,NULL 4960,1388764,885249,NULL,NULL,NULL,0,NULL,NULL 4961,550518,894313,Famous Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 4962,235199,1467333,NULL,NULL,NULL,0,NULL,NULL 4963,165486,966113,NULL,NULL,NULL,0,NULL,NULL 4964,143345,698389,NULL,NULL,NULL,0,NULL,NULL 4965,292685,1158854,Necromancer Autobiographer Custodian Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 4966,850226,680267,Notable Question Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 4967,32468,1144138,NULL,NULL,NULL,0,NULL,NULL 4968,205269,1113229,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 4969,123228,14006,Great Question Famous Question Yearling Custodian Favorite Question Favorite Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 4970,370571,367708,Curious Popular Question Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 4971,728201,525135,NULL,NULL,NULL,0,NULL,NULL 4972,117244,371236,Critic,NULL,NULL,0,NULL,NULL 4973,150342,11682,Yearling,NULL,NULL,0,NULL,NULL 4974,1392597,1011265,NULL,NULL,NULL,0,NULL,NULL 4975,137591,867423,Nice Question Yearling Necromancer Nice Answer Nice Answer Yearling Popular Question Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 4976,176034,411967,Nice Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 4977,400221,199236,Popular Question Good Question Yearling Custodian Custodian Citizen Patrol Reviewer Yearling Custodian Tenacious Reviewer Organizer Custodian Yearling Enthusiast Unsung Hero Investor Altruist Popular Question Reviewer Deputy Yearling Popular Question Documentation User Nice Question Census Notable Question Steward Yearling Tumbleweed Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 4978,972793,1492911,NULL,NULL,NULL,0,NULL,NULL 4979,364729,218802,NULL,NULL,NULL,0,NULL,NULL 4980,187748,332839,Tumbleweed Curious Famous Question Popular Question Census Announcer Self-Learner Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 4981,371905,651179,NULL,NULL,NULL,0,NULL,NULL 4982,208871,1295957,Yearling Yearling Scholar Student,NULL,NULL,0,NULL,NULL 4983,650814,250715,Necromancer,NULL,NULL,0,NULL,NULL 4984,148936,289472,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 4985,204521,479553,Famous Question Yearling Popular Question Nice Answer Enlightened Nice Question Necromancer Nice Question Nice Question Popular Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4986,676084,479553,Famous Question Yearling Popular Question Nice Answer Enlightened Nice Question Necromancer Nice Question Nice Question Popular Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 4987,311746,392073,NULL,NULL,NULL,0,NULL,NULL 4988,86193,1076332,NULL,NULL,NULL,0,NULL,NULL 4989,247250,1401580,Yearling Yearling Scholar Documentation User Yearling,NULL,NULL,0,NULL,NULL 4990,17757,11926,Announcer Nice Answer Enlightened Nice Answer Nice Answer Good Question Nice Answer Famous Question Nice Question Nice Answer Famous Question Nice Answer Guru Good Answer Guru Yearling Favorite Question Popular Question Nice Answer Enlightened Nice Answer Famous Question Good Answer Favorite Question Notable Question Good Question Nice Answer Notable Question Nice Answer Nice Answer Famous Question Great Answer Necromancer Nice Answer Nice Answer Popular Question Nice Question Good Answer Good Answer Famous Question Yearling Popular Question Great Question Guru Announcer Nice Question Announcer Announcer Nice Question Announcer Nice Answer Nice Answer Great Question Nice Answer Great Answer Nice Answer Nice Answer Popular Question Good Question Good Question Nice Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 4991,8767608,1322155,Teacher,NULL,NULL,0,NULL,NULL 4992,302128,1011817,NULL,NULL,NULL,0,NULL,NULL 4993,335811,1274535,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 4994,571256,1520191,Popular Question,NULL,NULL,0,NULL,NULL 4995,1044864,1178235,Yearling Enthusiast Yearling Custodian Custodian Custodian Commentator Custodian Tumbleweed Excavator Yearling,NULL,NULL,0,NULL,NULL 4996,265572,1026493,NULL,NULL,NULL,0,NULL,NULL 4997,211070,432854,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 4998,25717,1243323,Popular Question,NULL,NULL,0,NULL,NULL 4999,7263982,889146,NULL,NULL,NULL,0,NULL,NULL 5000,115816,530469,NULL,NULL,NULL,0,NULL,NULL 5001,412869,691172,NULL,NULL,NULL,0,NULL,NULL 5002,34974,467141,Custodian Custodian Yearling Curious Proofreader Informed Custodian Caucus Yearling Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 5003,796477,126965,Famous Question,NULL,NULL,0,NULL,NULL 5004,27568,133249,Necromancer,NULL,NULL,0,NULL,NULL 5005,3850010,1388450,Editor Student,NULL,NULL,0,NULL,NULL 5006,641898,357257,Organizer Yearling Nice Question Caucus Constituent Curious Yearling Popular Question Civic Duty Necromancer Famous Question Caucus Constituent Notable Question Notable Question Nice Answer Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 5007,123900,411855,Popular Question,NULL,NULL,0,NULL,NULL 5008,152775,117238,NULL,NULL,NULL,0,NULL,NULL 5009,351119,193091,NULL,NULL,NULL,0,NULL,NULL 5010,52602,1133652,NULL,NULL,NULL,0,NULL,NULL 5011,11376,485923,NULL,NULL,NULL,0,NULL,NULL 5012,108411,180960,Famous Question Custodian Custodian Custodian Yearling Explainer Yearling Curious Notable Question Organizer Yearling Notable Question Enthusiast Caucus Documentation User Yearling Announcer Notable Question Custodian Yearling Tenacious Yearling Nice Answer Civic Duty Yearling Notable Question,NULL,NULL,0,NULL,NULL 5013,808449,1202490,NULL,NULL,NULL,0,NULL,NULL 5014,319061,1077690,NULL,NULL,NULL,0,NULL,NULL 5015,1537024,61976,Good Question Yearling Self-Learner Notable Question Yearling Great Question Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 5016,66535,814911,NULL,NULL,NULL,0,NULL,NULL 5017,320860,1010243,Popular Question Critic Guru Nice Answer Yearling Popular Question python Yearling Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5018,57188,29851,Famous Question Critic,NULL,NULL,0,NULL,NULL 5019,2107410,302484,Teacher,NULL,NULL,0,NULL,NULL 5020,150358,302484,Teacher,NULL,NULL,0,NULL,NULL 5021,81806,93440,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 5022,7950,158689,Nice Answer Yearling Guru Caucus Good Answer Nice Answer Guru Necromancer Informed Nice Answer Enlightened Nice Answer Caucus Constituent Yearling Census Proofreader Reviewer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 5023,301577,1220094,NULL,NULL,NULL,0,NULL,NULL 5024,32992,1114430,NULL,NULL,NULL,0,NULL,NULL 5025,1978368,596985,Peer Pressure Yearling Nice Answer Enlightened Popular Question Nice Answer Caucus Notable Question Nice Question Yearling Good Answer Yearling Guru Custodian,NULL,NULL,0,NULL,NULL 5026,1567412,571942,Popular Question Famous Question Caucus Notable Question Famous Question Critic Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 5027,1104763,544658,NULL,NULL,NULL,0,NULL,NULL 5028,883707,879852,Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 5029,906133,1307909,Revival,NULL,NULL,0,NULL,NULL 5030,355626,660745,NULL,NULL,NULL,0,NULL,NULL 5031,370931,1062697,NULL,NULL,NULL,0,NULL,NULL 5032,174075,1011783,NULL,NULL,NULL,0,NULL,NULL 5033,68230,661287,Caucus Constituent,NULL,NULL,0,NULL,NULL 5034,351661,667234,Necromancer Yearling Nice Question Nice Answer Yearling Good Answer,NULL,pGot reply from over at the href https reactjs org rel nofollow noreferrer React team ppNormal HTML CSS ppre code lt div class something gt lt span gt Something lt span gt lt div gt lt style gt something after content position absolute webkit filter blur 10px saturate lt style gt code prepReact with inline style ppre coderender function return lt div gt lt span gt Something lt span gt lt div style position absolute WebkitFilter blur 10px saturate gt lt div gt code prepThe trick is that instead of using code after code in CSS in order to create new element you should instead create new element via React If you don want to have to add this element everywhere then make component that does it for you ppFor special attributes like code webkit filter code the way to encode them is by removing dashes and capitalizing the next letter So it turns into codeWebkitFilter code Note that doing code webkit filter code should also work There presentation by Vjeux in which he lists flaws of CSS and fixes them with React inline styles The whole CSS sucks and our thing is great nature of the presentation is very harmful and confuses lot of newcomers argument is valid and there are more valid arguments for using CSS with React CSS has nice declarative syntax just like React but using them together is harder than it needs to be and the team puts almost no effort into making it easier hope they eat the humble pie one day and fix these issues Stopping the hate on CSS would be nice first step,0,NULL,NULL 5035,11859,211827,Citizen Patrol Custodian Tumbleweed Custodian Yearling Notable Question Revival Necromancer,NULL,pIf you re interested into the number of processors emavailable em to your current process you have to check href http man7 org linux man pages man7 cpuset html rel noreferrer cpuset first Otherwise or if cpuset is not in use href http docs python org library multiprocessing html multiprocessing cpu count rel noreferrer codemultiprocessing cpu count code is the way to go in Python and newer The following method falls back to couple of alternative methods in older versions of Python ppre codeimport osimport reimport subprocessdef available cpu count Number of available virtual or physical CPUs on this system user real as output by time when called with an optimally scaling userspace only program cpuset cpuset may restrict the number of available processors try re search Cpus allowed open proc self status read if res bin int group replace 16 count if res gt return res except IOError pass Python try import multiprocessing return multiprocessing cpu count except ImportError NotImplementedError pass https github com giampaolo psutil try import psutil return psutil cpu count psutil NUM CPUS on old versions except ImportError AttributeError pass POSIX try res int os sysconf SC NPROCESSORS ONLN if res gt return res except AttributeError ValueError pass Windows try res int os environ NUMBER OF PROCESSORS if res gt return res except KeyError ValueError pass jython try from java lang import Runtime runtime Runtime getRuntime res runtime availableProcessors if res gt return res except ImportError pass BSD try sysctl subprocess Popen sysctl hw ncpu stdout subprocess PIPE scStdout sysctl communicate res int scStdout if res gt return res except OSError ValueError pass Linux try res open proc cpuinfo read count processor if res gt return res except IOError pass Solaris try pseudoDevices os listdir devices pseudo res for pd in pseudoDevices if re match cpuid pd res if res gt return res except OSError pass Other UNIXes heuristic try try dmesg open var run dmesg boot read except IOError dmesgProcess subprocess Popen dmesg stdout subprocess PIPE dmesg dmesgProcess communicate res while ncpu str res in dmesg res if res gt return res except OSError pass raise Exception Can not determine number of CPUs on this system code pre Not entirely correct when the file handle refcount reaches zero immediately after the read the GC will clean it up by calling in latest versions io BufferedReader del which closes first https github com python cpython blob Lib pyio py L375 L385,0,NULL,NULL 5036,373499,800903,Nice Answer Supporter Yearling Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5037,121997,1166587,NULL,NULL,NULL,0,NULL,NULL 5038,7740149,1166587,NULL,NULL,NULL,0,NULL,NULL 5039,1171380,1315377,NULL,NULL,NULL,0,NULL,NULL 5040,432200,1483233,NULL,NULL,NULL,0,NULL,NULL 5041,32012,510860,NULL,NULL,NULL,0,NULL,NULL 5042,1027935,1358947,Notable Question,NULL,NULL,0,NULL,NULL 5043,308483,1515667,NULL,NULL,NULL,0,NULL,NULL 5044,353243,566306,NULL,NULL,NULL,0,NULL,NULL 5045,1448523,22582,Notable Question Yearling Good Question Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Good Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 5046,275832,1065920,NULL,NULL,NULL,0,NULL,NULL 5047,10550,823653,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 5048,83078,184876,NULL,NULL,NULL,0,NULL,NULL 5049,1552859,1018531,Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 5050,447319,1344647,Student Commentator Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 5051,444513,449796,Revival,NULL,NULL,0,NULL,NULL 5052,186420,761177,Scholar Student,NULL,NULL,0,NULL,NULL 5053,1108753,650144,Nice Question Curious Notable Question,NULL,NULL,0,NULL,NULL 5054,89950,721980,NULL,NULL,NULL,0,NULL,NULL 5055,915103,482791,Autobiographer,NULL,NULL,0,NULL,NULL 5056,327699,537541,NULL,NULL,NULL,0,NULL,NULL 5057,112488,265113,NULL,NULL,NULL,0,NULL,NULL 5058,160335,1266544,NULL,NULL,NULL,0,NULL,NULL 5059,80918,1034353,Commentator Yearling,NULL,NULL,0,NULL,NULL 5060,267440,842282,Yearling Caucus,NULL,NULL,0,NULL,NULL 5061,107608,1357589,NULL,NULL,NULL,0,NULL,NULL 5062,8914,445124,Nice Answer Enlightened Good Answer Guru Yearling Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 5063,51754,651748,NULL,NULL,NULL,0,NULL,NULL 5064,10179842,394572,Popular Question Enlightened Good Answer Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Guru Great Answer Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5065,838222,394572,Popular Question Enlightened Good Answer Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Guru Great Answer Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5066,398786,436805,Notable Question,NULL,NULL,0,NULL,NULL 5067,84357,865354,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5068,146540,636136,Notable Question Yearling Necromancer Populist Caucus Yearling Nice Answer Curious Documentation User Custodian python Yearling,NULL,pYou need to install href http initd org psycopg rel noreferrer codepsycopg2 code Python library ph2Installation h2hrpDownload href http initd org psycopg rel noreferrer http initd org psycopg then install it under Python PATH ppAfter downloading easily extract the tarball and ppre code python setup py install code prepOr if you wish install it by either href http pypi python org pypi setuptools rel noreferrer easy install or href http pypi python org pypi pip rel noreferrer pip pp sup emI prefer to use pip over easy install for no reason em sup pulli code easy install psycopg2 code lili code pip install psycopg2 code li ulh2Configuration h2hrpin strongsettings strong py ppre codeDATABASES default ENGINE django db backends postgresql NAME db name USER db user PASSWORD db user password HOST PORT db port number code prehrp sup Other installation instructions can be found at href http initd org psycopg download rel noreferrer download page and href http initd org psycopg install rel noreferrer install page sup Thanks for the comment have updated the post regarding to it,0,NULL,NULL 5069,529708,1081919,NULL,NULL,NULL,0,NULL,NULL 5070,79603,183833,Yearling,NULL,NULL,0,NULL,NULL 5071,377,8338,Nice Answer Announcer Nice Answer Nice Answer Yearling Caucus Popular Question Guru Nice Answer Nice Answer Yearling Notable Question Nice Answer Announcer Good Question Good Answer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 5072,15868,1046241,NULL,NULL,NULL,0,NULL,NULL 5073,501462,980573,NULL,NULL,NULL,0,NULL,NULL 5074,13886,59870,Yearling Notable Question Reviewer Yearling Revival Caucus Constituent Yearling Nice Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 5075,39491,1040657,Nice Question,NULL,NULL,0,NULL,NULL 5076,91718,1337000,NULL,NULL,NULL,0,NULL,NULL 5077,245128,655372,python Nice Answer Notable Question Nice Question Yearling Documentation Beta Notable Question Caucus Revival Yearling Popular Question Necromancer Nice Answer Enlightened Popular Question Documentation User Yearling Popular Question Popular Question Notable Question Necromancer,NULL,Creating singleton in Python python singleton decorator base class metaclass emThis question is not for the discussion of whether or not the href http en wikipedia org wiki Singleton pattern rel noreferrer singleton design pattern is desirable is an anti pattern or for any religious wars but to discuss how this pattern is best implemented in Python in such way that is most pythonic In this instance define most pythonic to mean that it follows the principle of least astonishment em ppI have multiple classes which would become singletons my use case is for logger but this is not important do not wish to clutter several classes with added gumph when can simply inherit or decorate ppBest methods phrh2Method decorator h2pre codedef singleton class instances def getinstance args kwargs if class not in instances instances class class args kwargs return instances class return getinstance MyClass BaseClass pass code prepPros pulliDecorators are additive in way that is often more intuitive than multiple inheritance li ulpCons pulliWhile objects created using MyClass would be true singleton objects MyClass itself is function not class so you cannot call class methods from it Also for codem MyClass MyClass type code then codem amp amp amp amp code li ulhrh2Method base class h2pre codeclass Singleton object instance None def new class args kwargs if not isinstance class instance class class instance object new class args kwargs return class instanceclass MyClass Singleton BaseClass pass code prepPros pulliIt true class li ulpCons pulliMultiple inheritance eugh code new code could be overwritten during inheritance from second base class One has to think more than is necessary li ulhrh2Method href https stackoverflow com questions 100003 what is metaclass in python metaclass h2pre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls Python2class MyClass BaseClass metaclass Singleton Python3class MyClass BaseClass metaclass Singleton pass code prepPros pulliIt true class liliAuto magically covers inheritance liliUses code metaclass code for its proper purpose and made me aware of it li ulpCons pulliAre there any li ulhrh2Method decorator returning class with the same name h2pre codedef singleton class class class class instance None def new class args kwargs if class instance is None class instance super class class new class args kwargs class instance sealed False return class instance def init self args kwargs if self sealed return super class self init args kwargs self sealed True class name class name return class MyClass BaseClass pass code prepPros pulliIt true class liliAuto magically covers inheritance li ulpCons pulliIs there not an overhead for creating each new class Here we are creating two classes for each class we wish to make singleton While this is fine in my case worry that this might not scale Of course there is matter of debate as to whether it aught to be too easy to scale this pattern liliWhat is the point of the code sealed code attribute liliCan call methods of the same name on base classes using codesuper code because they will recurse This means you can customize code new code and can subclass class that needs you to call up to code init code li ul because strictly speaking that static class or as close as you get in python You can still add instance attributes unless you prevent instantiation at which point it becomes more truly static Creating singleton in Python python singleton decorator base class metaclass emThis question is not for the discussion of whether or not the href http en wikipedia org wiki Singleton pattern rel noreferrer singleton design pattern is desirable is an anti pattern or for any religious wars but to discuss how this pattern is best implemented in Python in such way that is most pythonic In this instance define most pythonic to mean that it follows the principle of least astonishment em ppI have multiple classes which would become singletons my use case is for logger but this is not important do not wish to clutter several classes with added gumph when can simply inherit or decorate ppBest methods phrh2Method decorator h2pre codedef singleton class instances def getinstance args kwargs if class not in instances instances class class args kwargs return instances class return getinstance MyClass BaseClass pass code prepPros pulliDecorators are additive in way that is often more intuitive than multiple inheritance li ulpCons pulliWhile objects created using MyClass would be true singleton objects MyClass itself is function not class so you cannot call class methods from it Also for codem MyClass MyClass type code then codem amp amp amp amp code li ulhrh2Method base class h2pre codeclass Singleton object instance None def new class args kwargs if not isinstance class instance class class instance object new class args kwargs return class instanceclass MyClass Singleton BaseClass pass code prepPros pulliIt true class li ulpCons pulliMultiple inheritance eugh code new code could be overwritten during inheritance from second base class One has to think more than is necessary li ulhrh2Method href https stackoverflow com questions 100003 what is metaclass in python metaclass h2pre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls Python2class MyClass BaseClass metaclass Singleton Python3class MyClass BaseClass metaclass Singleton pass code prepPros pulliIt true class liliAuto magically covers inheritance liliUses code metaclass code for its proper purpose and made me aware of it li ulpCons pulliAre there any li ulhrh2Method decorator returning class with the same name h2pre codedef singleton class class class class instance None def new class args kwargs if class instance is None class instance super class class new class args kwargs class instance sealed False return class instance def init self args kwargs if self sealed return super class self init args kwargs self sealed True class name class name return class MyClass BaseClass pass code prepPros pulliIt true class liliAuto magically covers inheritance li ulpCons pulliIs there not an overhead for creating each new class Here we are creating two classes for each class we wish to make singleton While this is fine in my case worry that this might not scale Of course there is matter of debate as to whether it aught to be too easy to scale this pattern liliWhat is the point of the code sealed code attribute liliCan call methods of the same name on base classes using codesuper code because they will recurse This means you can customize code new code and can subclass class that needs you to call up to code init code li ul With Singleton you have only single instance ergo you can setattr without any inconsistencies This is why was saying that for static class you would have to prevent instantiation Creating singleton in Python python singleton decorator base class metaclass emThis question is not for the discussion of whether or not the href http en wikipedia org wiki Singleton pattern rel noreferrer singleton design pattern is desirable is an anti pattern or for any religious wars but to discuss how this pattern is best implemented in Python in such way that is most pythonic In this instance define most pythonic to mean that it follows the principle of least astonishment em ppI have multiple classes which would become singletons my use case is for logger but this is not important do not wish to clutter several classes with added gumph when can simply inherit or decorate ppBest methods phrh2Method decorator h2pre codedef singleton class instances def getinstance args kwargs if class not in instances instances class class args kwargs return instances class return getinstance MyClass BaseClass pass code prepPros pulliDecorators are additive in way that is often more intuitive than multiple inheritance li ulpCons pulliWhile objects created using MyClass would be true singleton objects MyClass itself is function not class so you cannot call class methods from it Also for codem MyClass MyClass type code then codem amp amp amp amp code li ulhrh2Method base class h2pre codeclass Singleton object instance None def new class args kwargs if not isinstance class instance class class instance object new class args kwargs return class instanceclass MyClass Singleton BaseClass pass code prepPros pulliIt true class li ulpCons pulliMultiple inheritance eugh code new code could be overwritten during inheritance from second base class One has to think more than is necessary li ulhrh2Method href https stackoverflow com questions 100003 what is metaclass in python metaclass h2pre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls Python2class MyClass BaseClass metaclass Singleton Python3class MyClass BaseClass metaclass Singleton pass code prepPros pulliIt true class liliAuto magically covers inheritance liliUses code metaclass code for its proper purpose and made me aware of it li ulpCons pulliAre there any li ulhrh2Method decorator returning class with the same name h2pre codedef singleton class class class class instance None def new class args kwargs if class instance is None class instance super class class new class args kwargs class instance sealed False return class instance def init self args kwargs if self sealed return super class self init args kwargs self sealed True class name class name return class MyClass BaseClass pass code prepPros pulliIt true class liliAuto magically covers inheritance li ulpCons pulliIs there not an overhead for creating each new class Here we are creating two classes for each class we wish to make singleton While this is fine in my case worry that this might not scale Of course there is matter of debate as to whether it aught to be too easy to scale this pattern liliWhat is the point of the code sealed code attribute liliCan call methods of the same name on base classes using codesuper code because they will recurse This means you can customize code new code and can subclass class that needs you to call up to code init code li ul indeed you probably want some form of guard around init although also say that you very rarely want Singleton over the years since this question was written ve only really needed Singleton twice and one of those was taken out when made things more functional and therefore this shared state became undesirable Creating singleton in Python python singleton decorator base class metaclass emThis question is not for the discussion of whether or not the href http en wikipedia org wiki Singleton pattern rel noreferrer singleton design pattern is desirable is an anti pattern or for any religious wars but to discuss how this pattern is best implemented in Python in such way that is most pythonic In this instance define most pythonic to mean that it follows the principle of least astonishment em ppI have multiple classes which would become singletons my use case is for logger but this is not important do not wish to clutter several classes with added gumph when can simply inherit or decorate ppBest methods phrh2Method decorator h2pre codedef singleton class instances def getinstance args kwargs if class not in instances instances class class args kwargs return instances class return getinstance MyClass BaseClass pass code prepPros pulliDecorators are additive in way that is often more intuitive than multiple inheritance li ulpCons pulliWhile objects created using MyClass would be true singleton objects MyClass itself is function not class so you cannot call class methods from it Also for codem MyClass MyClass type code then codem amp amp amp amp code li ulhrh2Method base class h2pre codeclass Singleton object instance None def new class args kwargs if not isinstance class instance class class instance object new class args kwargs return class instanceclass MyClass Singleton BaseClass pass code prepPros pulliIt true class li ulpCons pulliMultiple inheritance eugh code new code could be overwritten during inheritance from second base class One has to think more than is necessary li ulhrh2Method href https stackoverflow com questions 100003 what is metaclass in python metaclass h2pre codeclass Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super Singleton cls call args kwargs return cls instances cls Python2class MyClass BaseClass metaclass Singleton Python3class MyClass BaseClass metaclass Singleton pass code prepPros pulliIt true class liliAuto magically covers inheritance liliUses code metaclass code for its proper purpose and made me aware of it li ulpCons pulliAre there any li ulhrh2Method decorator returning class with the same name h2pre codedef singleton class class class class instance None def new class args kwargs if class instance is None class instance super class class new class args kwargs class instance sealed False return class instance def init self args kwargs if self sealed return super class self init args kwargs self sealed True class name class name return class MyClass BaseClass pass code prepPros pulliIt true class liliAuto magically covers inheritance li ulpCons pulliIs there not an overhead for creating each new class Here we are creating two classes for each class we wish to make singleton While this is fine in my case worry that this might not scale Of course there is matter of debate as to whether it aught to be too easy to scale this pattern liliWhat is the point of the code sealed code attribute liliCan call methods of the same name on base classes using codesuper code because they will recurse This means you can customize code new code and can subclass class that needs you to call up to code init code li ul You wouldn how would you know that it wasn going to instantiated again,0,NULL,NULL 5078,88579,1076574,Good Answer Popular Question Notable Question Popular Question Popular Question Popular Question Caucus Constituent Yearling Popular Question Notable Question Popular Question Civic Duty Yearling Popular Question Census Announcer Revival Notable Question,NULL,NULL,0,NULL,NULL 5079,181866,140083,Necromancer Nice Answer Popular Question Yearling Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5080,483981,296347,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5081,220186,61015,Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 5082,522467,651827,Notable Question Yearling Custodian Yearling Yearling Tenacious Yearling Caucus Yearling Custodian Unsung Hero Yearling Critic Yearling Curious,NULL,NULL,0,NULL,NULL 5083,490732,35794,Custodian Announcer Caucus Revival Announcer Revival Yearling Caucus Critic Census,NULL,NULL,0,NULL,NULL 5084,2365726,1481997,Teacher,NULL,NULL,0,NULL,NULL 5085,248722,503158,Tumbleweed Nice Answer Custodian Promoter Curious Benefactor Yearling Revival Popular Question Popular Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 5086,220265,667616,NULL,NULL,NULL,0,NULL,NULL 5087,257253,319795,Nice Answer Revival Taxonomist Nice Answer Enlightened Yearling azure Nice Answer Enlightened Revival Good Answer Nice Answer Revival Nice Answer Enlightened Yearling Enlightened c# Necromancer Nice Answer Enlightened Good Answer azure-cosmosdb azure-cosmosdb Revival Nice Answer Nice Answer Enlightened Announcer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5088,41284,89771,Famous Question Good Answer performance Nice Answer Nice Answer Nice Question Great Question Announcer html Necromancer Famous Question Necromancer Nice Answer Good Answer Guru Nice Answer Yearling Popular Question Famous Question Good Question Necromancer Great Answer Good Answer Notable Question Nice Answer Famous Question Nice Question Notable Question Notable Question Good Answer Nice Question Popular Question Famous Question Notable Question Favorite Question Good Answer Good Answer Notable Question Popular Question Notable Question Nice Answer Notable Question Nice Question Good Answer Popular Question Announcer Good Answer Famous Question Popular Question Popular Question Popular Question Populist Notable Question Famous Question Good Answer Good Answer Notable Question Nice Answer Notable Question Nice Answer mysql Nice Answer Notable Question Nice Answer Popular Question Generalist Nice Answer Enlightened Nice Answer Yearling Nice Question Guru Popular Question Popular Question Notable Question Nice Answer Famous Question Nice Answer Announcer Caucus Notable Question Great Answer Good Answer Populist Necromancer Popular Question Nice Answer Great Answer Guru Popular Question Notable Question Nice Answer Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Nice Answer Famous Question Nice Answer Nice Answer Nice Answer Enlightened Good Answer Necromancer Good Answer Nice Answer Nice Question Nice Answer Good Answer codeigniter Necromancer Famous Question Notable Question Great Answer Popular Question Announcer Good Answer Announcer Yearling Good Question Nice Answer Good Question Popular Question Good Question Popular Question Booster Good Answer Good Answer Nice Answer Nice Answer Guru Popular Question Nice Answer Revival Nice Answer Populist Notable Question Announcer Popular Question Great Answer Announcer Announcer Good Answer Good Answer Great Answer Notable Question,NULL,NULL,0,NULL,NULL 5089,772783,402250,NULL,NULL,NULL,0,NULL,NULL 5090,542431,490571,Notable Question Popular Question Caucus Notable Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5091,13494,1172336,NULL,NULL,NULL,0,NULL,NULL 5092,326247,371735,NULL,NULL,NULL,0,NULL,NULL 5093,634222,1045158,NULL,NULL,NULL,0,NULL,NULL 5094,506054,134372,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5095,897296,1305186,Editor Scholar,NULL,NULL,0,NULL,NULL 5096,27616,183036,Yearling,NULL,NULL,0,NULL,NULL 5097,536586,606317,NULL,NULL,NULL,0,NULL,NULL 5098,31686,76900,Yearling Enlightened Guru Yearling Announcer Nice Answer Nice Question Favorite Question Nice Answer Custodian Yearling cappuccino Announcer,NULL,pre codeDIR cd dirname BASH SOURCE gt dev null amp amp pwd code prepis useful one liner which will give you the full directory name of the script no matter where it is being called from ppIt will work as long as the last component of the path used to find the script is not symlink directory links are OK If you also want to resolve any links to the script itself you need multi line solution ppre codeSOURCE BASH SOURCE while SOURCE do resolve SOURCE until the file is no longer symlink DIR cd dirname SOURCE gt dev null amp amp pwd SOURCE readlink SOURCE SOURCE amp amp SOURCE DIR SOURCE if SOURCE was relative symlink we need to resolve it relative to the path where the symlink file was locateddoneDIR cd dirname SOURCE gt dev null amp amp pwd code prepThis last one will work with any combination of aliases codesource code codebash code symlinks etc ppBeware if you codecd code to different directory before running this snippet the result may be incorrect Also watch out for href http bosker wordpress com 2012 02 12 bash scripters beware of the cdpath rel noreferrer code CDPATH code gotchas ppTo understand how it works try running this more verbose form ppre code bin bashSOURCE BASH SOURCE while SOURCE do resolve SOURCE until the file is no longer symlink TARGET readlink SOURCE if TARGET then echo SOURCE SOURCE is an absolute symlink to TARGET SOURCE TARGET else DIR dirname SOURCE echo SOURCE SOURCE is relative symlink to TARGET relative to DIR SOURCE DIR TARGET if SOURCE was relative symlink we need to resolve it relative to the path where the symlink file was located fidoneecho SOURCE is SOURCE RDIR dirname SOURCE DIR cd dirname SOURCE amp amp pwd if DIR RDIR then echo DIR RDIR resolves to DIR fiecho DIR is DIR code prepAnd it will print something like ppre class lang none prettyprint override codeSOURCE scriptdir sh is relative symlink to sym2 scriptdir sh relative to SOURCE is sym2 scriptdir sh DIR sym2 resolves to home ubuntu dotfiles fo fo real real1 real2 DIR is home ubuntu dotfiles fo fo real real1 real2 code pre your comment is not macOS or probably BSD in general compatible while the accepted answer is readlink gives readlink illegal option,0,NULL,NULL 5099,2391337,738452,NULL,NULL,NULL,0,NULL,NULL 5100,390816,738452,NULL,NULL,NULL,0,NULL,NULL 5101,4187,1178470,NULL,NULL,NULL,0,NULL,NULL 5102,869919,703448,Teacher Informed Autobiographer Supporter Revival Necromancer Editor Revival Necromancer Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5103,579453,1067669,NULL,NULL,NULL,0,NULL,NULL 5104,1007125,615066,NULL,NULL,NULL,0,NULL,NULL 5105,65340,45582,Good Answer Yearling Custodian Notable Question Populist Yearling Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 5106,36526,2443,Famous Question Good Answer Notable Question Notable Question Revival Notable Question Popular Question Nice Question javascript Good Question Popular Question Popular Question Great Question Popular Question Popular Question Nice Answer Yearling Popular Question Famous Question Nice Answer Great Question Famous Question Great Answer Popular Question Good Question Custodian Famous Question Nice Answer Necromancer Popular Question Nice Question Notable Question Caucus Yearling Nice Question Documentation User Popular Question Good Answer Famous Question Nice Question Good Answer Famous Question Popular Question Nice Answer Nice Answer Popular Question Popular Question Stellar Question Famous Question Good Question Revival Yearling Guru Popular Question Good Answer Notable Question Necromancer Good Question,NULL,pThe following solution is hackish as it uses reflection to bypass encapsulation but it works flawlessly ppre codeFile file URL url file toURI toURL URLClassLoader classLoader URLClassLoader ClassLoader getSystemClassLoader Method method URLClassLoader class getDeclaredMethod addURL URL class method setAccessible true method invoke classLoader url code pre afraid don know how it behaves when replacing jars imagine there some caching going on keeping it from hitting the disk every time Try it and let us know pThe following solution is hackish as it uses reflection to bypass encapsulation but it works flawlessly ppre codeFile file URL url file toURI toURL URLClassLoader classLoader URLClassLoader ClassLoader getSystemClassLoader Method method URLClassLoader class getDeclaredMethod addURL URL class method setAccessible true method invoke classLoader url code pre Well it’s about time,0,NULL,NULL 5107,252815,898716,Excavator Supporter Informed Revival Revival Revival Autobiographer Critic Citizen Patrol Yearling Commentator Caucus Constituent Documentation User Yearling Caucus,NULL,NULL,0,NULL,NULL 5108,137174,499951,NULL,NULL,NULL,0,NULL,NULL 5109,930867,451079,Yearling Good Question Editor,NULL,NULL,0,NULL,NULL 5110,411933,303808,NULL,NULL,NULL,0,NULL,NULL 5111,3016676,1411864,Critic Nice Question Yearling Caucus Constituent Tumbleweed Famous Question Autobiographer Good Question Popular Question,NULL,NULL,0,NULL,NULL 5112,819677,791422,NULL,NULL,NULL,0,NULL,NULL 5113,442254,1334870,NULL,NULL,NULL,0,NULL,NULL 5114,185117,235663,Notable Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 5115,9228029,1524834,Necromancer,NULL,NULL,0,NULL,NULL 5116,236356,1524834,Necromancer,NULL,NULL,0,NULL,NULL 5117,393538,417328,Self-Learner Yearling Good Question,NULL,NULL,0,NULL,NULL 5118,584906,522540,NULL,NULL,NULL,0,NULL,NULL 5119,608327,9706,Yearling Custodian Informed Nice Answer Yearling Yearling Good Answer Favorite Question Yearling Custodian,NULL,NULL,0,NULL,NULL 5120,65604,121713,Yearling Good Question Good Question Nice Question Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 5121,7839140,483570,NULL,NULL,NULL,0,NULL,NULL 5122,78608,171087,Revival Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Good Answer Popular Question Nice Answer Enlightened Curious Revival Caucus Yearling Documentation User Good Answer Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 5123,263034,1198679,NULL,NULL,NULL,0,NULL,NULL 5124,2179236,1150524,NULL,NULL,NULL,0,NULL,NULL 5125,287539,1150524,NULL,NULL,NULL,0,NULL,NULL 5126,1027871,250673,Announcer Organizer,NULL,NULL,0,NULL,NULL 5127,1230323,576734,Curious Census Citizen Patrol,NULL,NULL,0,NULL,NULL 5128,76208,117006,Curious,NULL,NULL,0,NULL,NULL 5129,71870,1207349,Teacher,NULL,NULL,0,NULL,NULL 5130,46828,667813,NULL,NULL,NULL,0,NULL,NULL 5131,3748,1178372,Critic,NULL,NULL,0,NULL,NULL 5132,28306,120132,NULL,NULL,NULL,0,NULL,NULL 5133,38664,864985,NULL,NULL,NULL,0,NULL,NULL 5134,1436614,227441,Popular Question Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 5135,36679,92364,Famous Question Commentator Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 5136,314818,179252,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5137,331471,1019766,Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 5138,377712,1217042,Revival Yearling Populist,NULL,NULL,0,NULL,NULL 5139,135148,1057215,Supporter,NULL,NULL,0,NULL,NULL 5140,6143124,905362,NULL,NULL,NULL,0,NULL,NULL 5141,7010133,905362,NULL,NULL,NULL,0,NULL,NULL 5142,3671,905362,NULL,NULL,NULL,0,NULL,NULL 5143,242964,295305,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5144,177997,1188305,Autobiographer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5145,531911,927123,NULL,NULL,NULL,0,NULL,NULL 5146,633198,659857,NULL,NULL,NULL,0,NULL,NULL 5147,1593255,1430206,Yearling Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Necromancer Necromancer Yearling Nice Answer Notable Question Custodian Nice Answer,NULL,NULL,0,NULL,NULL 5148,3297192,1430206,Yearling Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Necromancer Necromancer Yearling Nice Answer Notable Question Custodian Nice Answer,NULL,NULL,0,NULL,NULL 5149,16587,306296,Popular Question,NULL,NULL,0,NULL,NULL 5150,225631,1123295,Notable Question Good Answer Commentator Nice Question Popular Question Yearling Self-Learner Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5151,183775,1239912,Caucus Census,NULL,NULL,0,NULL,NULL 5152,1701992,1239912,Caucus Census,NULL,NULL,0,NULL,NULL 5153,297056,307266,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5154,67535,1224722,NULL,NULL,NULL,0,NULL,NULL 5155,497289,1512325,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 5156,277244,974853,NULL,NULL,NULL,0,NULL,NULL 5157,139217,1561562,NULL,NULL,NULL,0,NULL,NULL 5158,396289,1151507,NULL,NULL,NULL,0,NULL,NULL 5159,48291,1187689,NULL,NULL,NULL,0,NULL,NULL 5160,1644333,1180557,Caucus Popular Question Promoter Nice Question Yearling,NULL,NULL,0,NULL,NULL 5161,82609,459679,NULL,NULL,,0,, 5162,3328381,274529,NULL,NULL,NULL,0,NULL,NULL 5163,9923,274529,NULL,NULL,NULL,0,NULL,NULL 5164,415813,1420721,NULL,NULL,NULL,0,NULL,NULL 5165,13845,533839,NULL,NULL,NULL,0,NULL,NULL 5166,149345,57414,Yearling Nice Question Great Question Good Question Nice Answer Yearling Famous Question Notable Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5167,1998491,57414,Yearling Nice Question Great Question Good Question Nice Answer Yearling Famous Question Notable Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5168,1111707,1194516,Teacher Curious Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5169,411690,1234765,Notable Question Yearling Custodian Explainer Promoter Benefactor Nice Answer Popular Question Notable Question Caucus Constituent Famous Question Self-Learner Yearling Popular Question Popular Question Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 5170,125527,561698,Yearling Great Answer Nice Answer Nice Answer Custodian Nice Question Notable Question Investor Popular Question Famous Question Yearling Necromancer Great Answer Nice Answer Nice Answer Popular Question Documentation User Announcer Yearling Popular Question Good Answer Announcer Custodian Custodian Electorate Necromancer,NULL,pThere lot of conflicting info about rJava on SO My concern with lot of these answers was that once you start monkeying with the codeJAVA HOME code variables you run the risk of borking your Java install completely the solution can be worse than the disease Here quick rundown of do no harm things you can do if you are having rJava problems pp1 in the terminal run codeR CMD javareconf code This is script written by Core that will Detect current Java setup and update the corresponding configuration in Take look at the internals href https svn project org trunk src scripts javareconf in rel noreferrer here pp2 re install rJava from source codeinstall packages rJava type source code pp3 Open from the command line Load rJava Open emRStudio em from the command line href http jeromyanglim tumblr com post 34221143729 how to run rstudio from the command line on osx rel noreferrer directions Load rJava Do you get the same error If not great you re getting warmer You ve isolated your problem to an issue with emRStudio em not itself pp4 There some sort of issue with RStudio and rJava that relates to actually you know what not even going to try to finish that sentence because frankly it above my pay grade Dynamic libraries something something ppThere are bunch of writeups href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer here href http paulklemm com zenf blog 2015 02 20 run rjava with rstudio under osx 10 dot 10 rel noreferrer here href http andrewgoldstone com blog 2015 02 03 rjava rel noreferrer here href http conjugateprior org 2014 12 java8 osx rel noreferrer and here on the web about this My favorite title was href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer the rJava nightmare pp strongYour mileage may vary strong but href https stackoverflow com 31039105 this SO answer was all needed to get RStudio to play nice one line of code on the terminal and all it does is creates symbolic link No changes to permissions no modification of environment variables just simple symlink ppIf that doesn do it for you suggest reading the linked blog posts above before you start copy pasting the multitude of emthis worked for me em answers littered across SO probably isn on your PATH and thus windows is not recognizing https stackoverflow com 10077744 561698,1,NULL,How can make rJava use the newer version of java on osx java rjava pI am following this tutorial on rJava href http cran project org web packages helloJavaWorld vignettes helloJavaWorld pdf http cran project org web packages helloJavaWorld vignettes helloJavaWorld pdf ppI have made all the files as specified in the tutorial and installed the helloJavaWorld package but once run the helloJavaWorld function it complains ppre code gt helloJavaWorld Error in jnew HelloJavaWorld java lang UnsupportedClassVersionError HelloJavaWorld Unsupported major minor version 52 code prepSo tried to check the java version that rJava is using ppre code jinit jvm jnew java lang System jvm props jvm getProperties toString jvm props lt strsplit gsub jvm props jvm props java runtime name Java TM SE Runtime Environment sun boot library path System Library Java JavaVirtualMachines jdk Contents Libraries java vm version 20 65 b04 466 awt nativeDoubleBuffering true gopherProxySet false mrj build 11M4716 java vm vendor Apple Inc java vendor url http www apple com path separator 10 java vm name Java HotSpot TM 64 Bit Server VM 11 file encoding pkg sun io 12 user country US 13 sun os patch level unknown 14 java vm specification name Java Virtual Machine Specification 15 user dir private tmp 16 java runtime version 65 b14 466 11M4716 17 java awt graphicsenv apple awt CGraphicsEnvironment 18 java endorsed dirs System Library Java JavaVirtualMachines jdk Contents Home lib endorsed 19 os arch x86 64 20 java io tmpdir var folders 5d 44ctbbln4dsflgzxph1dm8wr0000gn 21 line separator 22 java vm specification vendor Sun Microsystems Inc 23 os name Mac OS 24 sun jnu encoding MacRoman 25 java library path Users kaiyin Library Java Extensions Library Java Extensions System Library Java Extensions usr lib java 26 java specification name Java Platform API Specification 27 java class version 50 28 sun management compiler HotSpot 64 Bit Tiered Compilers 29 os version 10 10 30 http nonProxyHosts local local 169 254 16 169 254 16 31 user home Users kaiyin 32 user timezone 33 java awt printerjob apple awt CPrinterJob 34 file encoding MacRoman 35 java specification version 36 java class path Library Frameworks framework Versions Resources library rJava java boot Library Frameworks framework Versions Resources library helloJavaWorld java 37 user name kaiyin 38 java vm specification version 39 java home System Library Java JavaVirtualMachines jdk Contents Home 40 sun arch data model 64 41 user language en 42 java specification vendor Sun Microsystems Inc 43 awt toolkit apple awt CToolkit 44 java vm info mixed mode 45 java version 65 46 java ext dirs Users kaiyin Library Java Extensions Library Java Extensions System Library Java Extensions System Library Java JavaVirtualMachines jdk Contents Home lib ext 47 sun boot class path System Library Java JavaVirtualMachines jdk Contents Classes jsfd jar System Library Java JavaVirtualMachines jdk Contents Classes classes jar System Library Frameworks JavaVM framework Frameworks JavaRuntimeSupport framework Resources Java JavaRuntimeSupport jar System Library Java JavaVirtualMachines jdk Contents Classes ui jar System Library Java JavaVirtualMachines jdk Contents Classes laf jar System Library Java JavaVirtualMachines jdk Contents Classes sunrsasign jar System Library Java JavaVirtualMachines jdk Contents Classes jsse jar System Library Java JavaVirtualMachines jdk Contents Classes jce jar System Library Java JavaVirtualMachines jdk Contents Classes charsets jar 48 java awt headless true 49 java vendor Apple Inc 50 file separator 51 java vendor url bug http bugreport apple com 52 sun io unicode encoding UnicodeLittle 53 sun cpu endian little 54 mrj version 1070 65 466 55 socksNonProxyHosts local local 169 254 16 169 254 16 56 ftp nonProxyHosts local local 169 254 16 169 254 16 57 sun cpu isalist code prepIt looks like it uses java preinstalled on OSX but compiled the HelloJavaWorld class with java which leads to the question How can make rJava use the newer version of java ppOutput of codeR CMD javareconf code ppre codeJava interpreter usr bin javaJava version 25Java home path Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jreJava compiler usr bin javacJava headers gen usr bin javahJava archive tool usr bin jarNon system Java on OS Xtrying to compile and link JNI progamdetected JNI cpp flags JAVA HOME include JAVA HOME include darwindetected JNI linker flags JAVA HOME lib server ljvmclang Library Frameworks framework Resources include DNDEBUG Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jre include Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jre include darwin usr local include usr local include freetype2 opt X11 include fPIC Wall mtune core2 O2 conftest conftest oclang dynamiclib Wl headerpad max install names undefined dynamic lookup single module multiply defined suppress usr local lib conftest so conftest Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jre lib server ljvm Library Frameworks framework framework Wl framework Wl CoreFoundationJAVA HOME Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jreJava library path JAVA HOME lib serverJNI cpp flags JAVA HOME include JAVA HOME include darwinJNI linker flags JAVA HOME lib server ljvmUpdating Java configuration in Library Frameworks framework ResourcesDone code prepContent of Library Frameworks framework Versions Resources etc javaconf ppre code Versions from settings when configure was run JAVA HOME JAVA CPPFLAGS autodetect JAVA LD LIBRARY PATH autodetect JAVA LIBS autodetect code prepContent of Library Frameworks framework Versions Resources etc ldpaths ppre code➜ etc cat ldpaths JAVA HOME Library Java JavaVirtualMachines jdk1 25 jdk Contents Home jre JAVA LD LIBRARY PATH JAVA HOME lib server if test then LD LIBRARY PATH HOME lib else LD LIBRARY PATH HOME lib fiif test JAVA LD LIBRARY PATH then LD LIBRARY PATH LD LIBRARY PATH JAVA LD LIBRARY PATH fi This is DYLD FALLBACK LIBRARY PATH on Darwin OS and LD LIBRARY PATH elsewhereif test DYLD FALLBACK LIBRARY PATH then DYLD FALLBACK LIBRARY PATH LD LIBRARY PATH else DYLD FALLBACK LIBRARY PATH LD LIBRARY PATH DYLD FALLBACK LIBRARY PATH fiexport DYLD FALLBACK LIBRARY PATH code pre pThere lot of conflicting info about rJava on SO My concern with lot of these answers was that once you start monkeying with the codeJAVA HOME code variables you run the risk of borking your Java install completely the solution can be worse than the disease Here quick rundown of do no harm things you can do if you are having rJava problems pp1 in the terminal run codeR CMD javareconf code This is script written by Core that will Detect current Java setup and update the corresponding configuration in Take look at the internals href https svn project org trunk src scripts javareconf in rel noreferrer here pp2 re install rJava from source codeinstall packages rJava type source code pp3 Open from the command line Load rJava Open emRStudio em from the command line href http jeromyanglim tumblr com post 34221143729 how to run rstudio from the command line on osx rel noreferrer directions Load rJava Do you get the same error If not great you re getting warmer You ve isolated your problem to an issue with emRStudio em not itself pp4 There some sort of issue with RStudio and rJava that relates to actually you know what not even going to try to finish that sentence because frankly it above my pay grade Dynamic libraries something something ppThere are bunch of writeups href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer here href http paulklemm com zenf blog 2015 02 20 run rjava with rstudio under osx 10 dot 10 rel noreferrer here href http andrewgoldstone com blog 2015 02 03 rjava rel noreferrer here href http conjugateprior org 2014 12 java8 osx rel noreferrer and here on the web about this My favorite title was href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer the rJava nightmare pp strongYour mileage may vary strong but href https stackoverflow com 31039105 this SO answer was all needed to get RStudio to play nice one line of code on the terminal and all it does is creates symbolic link No changes to permissions no modification of environment variables just simple symlink ppIf that doesn do it for you suggest reading the linked blog posts above before you start copy pasting the multitude of emthis worked for me em answers littered across SO 5171,2551025,1068243,Unsung Hero Custodian Revival Mortarboard Popular Question Necromancer Famous Question Caucus Constituent Yearling Nice Answer Notable Question Nice Answer Necromancer Famous Question ios Famous Question Good Answer Popular Question Revival Nice Question Caucus Nice Answer Yearling Nice Answer Nice Question Census Announcer Great Answer Good Question Favorite Question Famous Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5172,349542,460477,Critic Popular Question Documentation User Caucus,NULL,NULL,0,NULL,NULL 5173,238802,750404,NULL,NULL,NULL,0,NULL,NULL 5174,669632,1012709,Autobiographer,NULL,NULL,0,NULL,NULL 5175,202764,1153647,NULL,NULL,NULL,0,NULL,NULL 5176,545780,1329506,NULL,NULL,NULL,0,NULL,NULL 5177,6297490,579594,NULL,NULL,NULL,0,NULL,NULL 5178,397745,579594,NULL,NULL,NULL,0,NULL,NULL 5179,201167,688016,NULL,NULL,NULL,0,NULL,NULL 5180,201948,997271,NULL,NULL,NULL,0,NULL,NULL 5181,889215,752692,NULL,NULL,NULL,0,NULL,NULL 5182,232895,1472158,NULL,NULL,NULL,0,NULL,NULL 5183,342397,152347,Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Nice Answer Enlightened Yearling Necromancer Notable Question javascript Popular Question Tenacious Nice Answer Custodian Notable Question Yearling Notable Question jquery Notable Question Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 5184,2211341,152347,Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Nice Answer Enlightened Yearling Necromancer Notable Question javascript Popular Question Tenacious Nice Answer Custodian Notable Question Yearling Notable Question jquery Notable Question Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 5185,437763,815542,Yearling Yearling Necromancer Enthusiast Yearling Organizer Civic Duty Popular Question Yearling Caucus Tenacious Yearling Census Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 5186,20527,304024,Great Answer Yearling Popular Question Guru Nice Answer Nice Answer Nice Answer Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 5187,800570,1024479,NULL,NULL,NULL,0,NULL,NULL 5188,324468,10668,Yearling,NULL,NULL,0,NULL,NULL 5189,258879,595947,Popular Question Yearling Notable Question Popular Question Nice Answer Caucus Popular Question Yearling Caucus Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 5190,2147345,301419,Notable Question Yearling Caucus Constituent Unsung Hero Nice Answer Proofreader Census Yearling Caucus Constituent Popular Question Custodian Custodian Census Caucus Yearling Constituent,NULL,NULL,0,NULL,NULL 5191,202571,824557,NULL,NULL,NULL,0,NULL,NULL 5192,610584,403729,Yearling,NULL,NULL,0,NULL,NULL 5193,374429,1152577,Editor Enthusiast Scholar Student,NULL,NULL,0,NULL,NULL 5194,158111,933110,NULL,NULL,NULL,0,NULL,NULL 5195,27377,140937,Nice Answer Favorite Question Popular Question Famous Question Good Question Notable Question Good Question Notable Question Good Question Popular Question Popular Question Famous Question Famous Question Nice Question c# Talkative Notable Question Notable Question Popular Question Popular Question Nice Question Nice Question Yearling Famous Question Notable Question Nice Question Nice Answer Notable Question Popular Question Good Question Nice Question Popular Question Popular Question Popular Question Caucus Notable Question Popular Question Notable Question Notable Question Famous Question Good Question Nice Answer Notable Question Nice Answer Famous Question Notable Question Notable Question Famous Question Popular Question Yearling Good Question Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Good Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Nice Question Favorite Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Favorite Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 5196,18237,1253475,NULL,NULL,NULL,0,NULL,NULL 5197,489788,657433,Critic Informed Scholar Caucus Good Question Famous Question Enthusiast,NULL,NULL,0,NULL,NULL 5198,917769,1177434,NULL,NULL,NULL,0,NULL,NULL 5199,1097547,1254996,Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Famous Question Famous Question Famous Question Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Famous Question Good Question Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Yearling Notable Question Excavator Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Organizer Yearling,NULL,NULL,0,NULL,NULL 5200,96143,1207950,Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 5201,10453,372673,NULL,NULL,NULL,0,NULL,NULL 5202,44391,778953,Nice Answer Enlightened Guru Yearling Good Answer Good Answer Yearling Nice Answer Enlightened Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 5203,326932,377981,NULL,NULL,NULL,0,NULL,NULL 5204,4744,1104602,NULL,NULL,NULL,0,NULL,NULL 5205,208679,690204,Popular Question Notable Question Good Question Famous Question Popular Question Notable Question Good Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Answer Notable Question Famous Question Famous Question Notable Question Famous Question Popular Question Notable Question Famous Question Popular Question Famous Question Famous Question Nice Answer Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Notable Question Nice Answer Documentation User Popular Question Notable Question Nice Question Popular Question Custodian Notable Question Great Question Notable Question Yearling Favorite Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5206,75609,641019,NULL,NULL,NULL,0,NULL,NULL 5207,15160,1176841,Critic Yearling,NULL,NULL,0,NULL,NULL 5208,235984,1381949,NULL,NULL,NULL,0,NULL,NULL 5209,390560,309201,Nice Answer,NULL,NULL,0,NULL,NULL 5210,381834,88080,Favorite Question Popular Question Notable Question Yearling Good Answer Popular Question Great Question Famous Question Enlightened Yearling Nice Question Yearling Benefactor,NULL,NULL,0,NULL,NULL 5211,399526,1254823,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5212,50204,1254823,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5213,227138,889945,Peer Pressure Yearling Great Answer Great Answer Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 5214,2174396,1206389,NULL,NULL,NULL,0,NULL,NULL 5215,445137,1490717,Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5216,121648,277177,Yearling,NULL,NULL,0,NULL,NULL 5217,216858,894888,NULL,NULL,NULL,0,NULL,NULL 5218,173063,1138137,Yearling Popular Question Nice Answer Notable Question Popular Question Nice Question Caucus Constituent Popular Question Popular Question Yearling Popular Question Civic Duty Nice Answer Famous Question Popular Question Nice Answer Popular Question Enthusiast Notable Question Notable Question Caucus Constituent Nice Answer Popular Question Yearling Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 5219,670802,888055,NULL,NULL,NULL,0,NULL,NULL 5220,417331,422835,Popular Question Popular Question Popular Question Caucus Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,1,NULL,Cx Freeze Showwarning AttributeError NoneType object has no attribute write mysql python mysql python anaconda cx freeze pScripts works fine on source file with using Anaconda alongside with Python When cxfreeze it with following setup file pblockquote pfrom cx Freeze import setup Executable psetup executables Executable main py base Win32GUI version blockquotepI got following error on the server pblockquote pDBOps py line 54 in executemany Users user Anaconda3 lib site packages MySQLdb cursors py line 286 in executemany File FileC Users user Anaconda3 lib site packages MySQLdb cursors py line 127 in warning check File Python 64 bit lib warnings py pline 15 in showwarning AttributeError NoneType object has no attribute write blockquotepI thougth different python versions installed on my system might result this problem removed them by using installer Nothing changed Same error on both server and lochal machines The errorneous part seems like Python 64 bit lib warnings py since there is no such directory path neither on my system or on server pHere is the relevant solution by Thomas Kluyver pblockquote pThe bigger issue there is that anything that attempts to show warning will cause an error because by default it tries to write warnings to sys stderr and if you use the Win32GUI base there no stderr to write to Calling warnings simplefilter ignore beforehand should prevent that blockquotepsource href https bitbucket org anthony tuininga cx freeze issues 81 python 34 venv importlib attributeerror rel nofollow https bitbucket org anthony tuininga cx freeze issues 81 python 34 venv importlib attributeerror 5221,196536,259258,NULL,NULL,NULL,0,NULL,NULL 5222,168396,268962,NULL,NULL,NULL,0,NULL,NULL 5223,101348,822502,Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 5224,222931,1007110,NULL,NULL,NULL,0,NULL,NULL 5225,2475568,1443936,Popular Question Popular Question Notable Question Critic Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 5226,1752009,1443936,Popular Question Popular Question Notable Question Critic Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 5227,160759,202206,Yearling,NULL,NULL,0,NULL,NULL 5228,202041,1176231,NULL,NULL,NULL,0,NULL,NULL 5229,109234,1184678,NULL,NULL,NULL,0,NULL,NULL 5230,30771,612827,Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 5231,51362,346686,NULL,NULL,NULL,0,NULL,NULL 5232,157927,603193,NULL,NULL,NULL,0,NULL,NULL 5233,1043615,1035123,NULL,NULL,NULL,0,NULL,NULL 5234,51108,82559,Nice Answer Yearling Nice Answer Caucus Constituent Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 5235,343298,218558,Popular Question Famous Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 5236,188963,193424,Yearling Organizer Custodian,NULL,NULL,0,NULL,NULL 5237,19001,675065,Popular Question Famous Question Popular Question Famous Question Necromancer Good Question Popular Question Yearling Nice Question Popular Question Popular Question Good Question Popular Question Nice Answer Notable Question Necromancer Good Answer Popular Question Notable Question Necromancer Popular Question Nice Question Custodian Nice Question Notable Question Good Question Famous Question Caucus Nice Answer Enlightened Good Question Nice Question Notable Question Guru Popular Question Notable Question Popular Question Nice Question Nice Answer Popular Question Yearling Populist Guru Famous Question Popular Question Guru Popular Question Good Answer Caucus Constituent Nice Answer Famous Question angularjs Popular Question Popular Question Good Question Documentation User Announcer Popular Question Good Answer Nice Question Popular Question Great Answer Necromancer Yearling Great Answer python Notable Question Popular Question Announcer Nice Question Popular Question Announcer Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5238,917219,911491,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5239,572544,615352,NULL,NULL,NULL,0,NULL,NULL 5240,1942385,1130991,NULL,NULL,NULL,0,NULL,NULL 5241,83099,786070,NULL,NULL,NULL,0,NULL,NULL 5242,929513,1077130,NULL,NULL,NULL,0,NULL,NULL 5243,38474,318497,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 5244,233198,1447400,NULL,NULL,NULL,0,NULL,NULL 5245,349109,634739,Curious Nice Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 5246,82982,679406,NULL,NULL,NULL,0,NULL,NULL 5247,654386,775941,Nice Answer Notable Question Yearling Self-Learner Announcer,NULL,NULL,0,NULL,NULL 5248,383087,919211,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5249,143911,1211513,Popular Question Yearling Good Answer Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5250,1452820,1100592,NULL,NULL,NULL,0,NULL,NULL 5251,144121,477655,Popular Question Nice Question Yearling Popular Question Notable Question Enthusiast Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Yearling Famous Question Popular Question Necromancer Popular Question Census Nice Answer Yearling Popular Question Famous Question Notable Question Announcer Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 5252,116271,302783,Teacher,NULL,NULL,0,NULL,NULL 5253,150672,159912,Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 5254,279717,869645,Necromancer Student Caucus Yearling Nice Answer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 5255,2007648,869645,Necromancer Student Caucus Yearling Nice Answer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 5256,979002,1306820,Popular Question,NULL,NULL,0,NULL,NULL 5257,7840,1061750,NULL,NULL,NULL,0,NULL,NULL 5258,79823,58477,NULL,NULL,NULL,0,NULL,NULL 5259,375515,49294,Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5260,2593953,3013,Yearling Notable Question Editor Organizer Yearling Citizen Patrol Custodian Critic Revival Necromancer Yearling Informed Enthusiast Yearling Tag Editor Quorum Yearling Promoter Benefactor Nice Answer Caucus Constituent Fanatic Nice Question Yearling Census Popular Question Tenacious Yearling Yearling Good Answer fabricjs Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 5261,67410,3013,Yearling Notable Question Editor Organizer Yearling Citizen Patrol Custodian Critic Revival Necromancer Yearling Informed Enthusiast Yearling Tag Editor Quorum Yearling Promoter Benefactor Nice Answer Caucus Constituent Fanatic Nice Question Yearling Census Popular Question Tenacious Yearling Yearling Good Answer fabricjs Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 5262,489145,350117,NULL,NULL,NULL,0,NULL,NULL 5263,480692,514165,Popular Question Census Editor Excavator Curious Notable Question,NULL,NULL,0,NULL,NULL 5264,290098,895789,Popular Question Necromancer Good Answer Popular Question Nice Question Self-Learner Yearling Electorate Custodian Nice Answer Custodian Custodian Quorum Caucus Popular Question Constituent Explainer Necromancer Good Answer Nice Answer Proofreader Necromancer Revival Nice Answer Caucus Constituent Yearling Guru Good Answer Nice Answer Enlightened Documentation User Necromancer Nice Answer Necromancer Census Revival Nice Answer Caucus Popular Question Nice Answer Popular Question Necromancer Popular Question Yearling Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 5265,17377,10165,Nice Answer Enlightened Yearling Revival Nice Answer Yearling Nice Answer Revival Civic Duty Yearling,NULL,NULL,0,NULL,NULL 5266,106373,1071913,Popular Question,NULL,NULL,0,NULL,NULL 5267,216421,277472,NULL,NULL,NULL,0,NULL,NULL 5268,563539,896859,Popular Question Popular Question Popular Question Teacher Popular Question Revival Supporter Notable Question Notable Question Popular Question Self-Learner Notable Question Critic Notable Question Popular Question Commentator Yearling,NULL,NULL,0,NULL,NULL 5269,177080,779117,NULL,NULL,NULL,0,NULL,NULL 5270,211858,706162,NULL,NULL,NULL,0,NULL,NULL 5271,243629,1373453,NULL,NULL,NULL,0,NULL,NULL 5272,7068399,420940,Caucus Constituent,NULL,NULL,0,NULL,NULL 5273,18889,420940,Caucus Constituent,NULL,NULL,0,NULL,NULL 5274,416477,1252496,NULL,NULL,NULL,0,NULL,NULL 5275,244800,312326,NULL,NULL,NULL,0,NULL,NULL 5276,34624,866296,Good Answer Electorate Yearling Caucus Constituent Guru Necromancer Caucus Yearling Constituent Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 5277,99986,185687,NULL,NULL,NULL,0,NULL,NULL 5278,396069,586778,NULL,NULL,NULL,0,NULL,NULL 5279,922653,1235734,NULL,NULL,NULL,0,NULL,NULL 5280,161816,274119,Necromancer,NULL,NULL,0,NULL,NULL 5281,483845,1284637,Yearling Quorum Civic Duty Tumbleweed Scholar Revival Enthusiast Nice Answer Enlightened Reviewer Electorate Custodian Self-Learner Yearling Nice Answer Popular Question Popular Question Nice Question Popular Question Notable Question Good Answer Caucus Constituent Notable Question Nice Question Yearling Famous Question Good Question Notable Question Nice Answer Caucus Documentation User Good Answer Favorite Question Census Caucus Yearling Custodian c# asp.net-core Popular Question,NULL,code bash profile code is file that sits at code code You should be able to open it with text editor and add those commands ppAlternatively you can do this in your terminal ppre codeecho source dnvm sh gt gt bash profileecho export MONO MANAGED WATCHER disabled gt gt bash profile code prepWhats happening here is you are appending piece of text code source dnvm sh code into specific file ppThe codeecho code command prints the text and the code gt gt code shift operator appends the text to the file which is code bash profile code located at code code Glad could help,1,NULL,Making sure to always run the dnvm and dnu commands by adding to bash profile net ubuntu mono dnvm dnu pI was following along href https code visualstudio com docs runtimes ASPnet5 installing aspnet and dnx rel nofollow Installing ASP NET and DNX post and here stuck pblockquote strongTip strong Add the following to your code bash profile code and restart the Terminal The first line will ensure that you can always run the codednvm code and codednu code commands The second line works around known bug in Mono where you may see the IOException codeFileSystemWatcher has reached the maximum number of files to watch code when running your application blockquotepre codesource dnvm shexport MONO MANAGED WATCHER disabled code prepMy simple question is pulliHow to add it to code bash profile code li ul code bash profile code is file that sits at code code You should be able to open it with text editor and add those commands ppAlternatively you can do this in your terminal ppre codeecho source dnvm sh gt gt bash profileecho export MONO MANAGED WATCHER disabled gt gt bash profile code prepWhats happening here is you are appending piece of text code source dnvm sh code into specific file ppThe codeecho code command prints the text and the code gt gt code shift operator appends the text to the file which is code bash profile code located at code code 5282,155432,440328,NULL,NULL,NULL,0,NULL,NULL 5283,335445,1239674,NULL,NULL,NULL,0,NULL,NULL 5284,506143,1469349,NULL,NULL,NULL,0,NULL,NULL 5285,405532,176554,Yearling Notable Question Nice Answer Famous Question Nice Answer Enlightened Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 5286,261351,755672,NULL,NULL,NULL,0,NULL,NULL 5287,31095,228788,NULL,NULL,NULL,0,NULL,NULL 5288,1969903,784550,Famous Question,NULL,NULL,0,NULL,NULL 5289,294308,1460722,Student,NULL,NULL,0,NULL,NULL 5290,141051,1187471,Yearling Notable Question Good Question Good Answer Good Question Custodian Popular Question Famous Question Yearling Announcer Nice Answer Popular Question Popular Question Yearling Great Answer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 5291,1047945,1215011,NULL,NULL,NULL,0,NULL,NULL 5292,232088,901465,Yearling Caucus Constituent Revival Popular Question Popular Question Nice Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 5293,436501,337490,Critic Citizen Patrol Commentator Famous Question Yearling Caucus Constituent Nice Question Caucus,NULL,NULL,0,NULL,NULL 5294,501477,331646,Popular Question,NULL,NULL,0,NULL,NULL 5295,175284,1326783,NULL,NULL,NULL,0,NULL,NULL 5296,307273,1121693,NULL,NULL,NULL,0,NULL,NULL 5297,150813,332021,NULL,NULL,NULL,0,NULL,NULL 5298,181604,107668,Good Answer Custodian Yearling Self-Learner Informed Yearling Yearling,NULL,NULL,0,NULL,NULL 5299,181606,107668,Good Answer Custodian Yearling Self-Learner Informed Yearling Yearling,NULL,NULL,0,NULL,NULL 5300,108493,546111,NULL,NULL,NULL,0,NULL,NULL 5301,1574219,510850,Commentator Informed Curious Critic Yearling Yearling Custodian Caucus Nice Answer Enlightened Yearling Good Answer Caucus Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 5302,89976,545622,Yearling Popular Question,NULL,NULL,0,NULL,NULL 5303,812679,1080532,Popular Question,NULL,NULL,0,NULL,NULL 5304,231797,756396,NULL,NULL,NULL,0,NULL,NULL 5305,1979259,73315,Popular Question Yearling Nice Question Notable Question Famous Question Good Question Famous Question Nice Question Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 5306,53370,73315,Popular Question Yearling Nice Question Notable Question Famous Question Good Question Famous Question Nice Question Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 5307,642081,531927,Student Editor Critic,NULL,NULL,0,NULL,NULL 5308,746129,336945,Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Notable Question Good Question Nice Question Popular Question Yearling Notable Question Popular Question Nice Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5309,347633,643163,NULL,NULL,NULL,0,NULL,NULL 5310,1253490,643163,NULL,NULL,NULL,0,NULL,NULL 5311,1077683,1532931,Necromancer Yearling Caucus Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 5312,291994,501244,NULL,NULL,NULL,0,NULL,NULL 5313,257706,242383,Yearling postgresql Nice Answer Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 5314,35075,221810,NULL,NULL,NULL,0,NULL,NULL 5315,45949,1127084,NULL,NULL,NULL,0,NULL,NULL 5316,172220,718119,NULL,NULL,NULL,0,NULL,NULL 5317,7242460,718119,NULL,NULL,NULL,0,NULL,NULL 5318,52634,141686,Revival Yearling Citizen Patrol Caucus Nice Answer Yearling Notable Question Caucus Constituent Revival Guru Yearling,NULL,NULL,0,NULL,NULL 5319,1425574,1394943,Yearling,NULL,NULL,0,NULL,NULL 5320,1905931,410487,Notable Question Popular Question Custodian Citizen Patrol Custodian Yearling Custodian Critic Reviewer Enthusiast Popular Question Popular Question Yearling Revival Notable Question Nice Question Caucus Announcer Caucus Popular Question Necromancer,NULL,NULL,0,NULL,NULL 5321,328533,1432421,NULL,NULL,NULL,0,NULL,NULL 5322,3332,560382,Yearling Necromancer Good Answer Notable Question Nice Answer Caucus Yearling Guru Yearling Census Nice Answer Caucus Great Answer,NULL,NULL,0,NULL,NULL 5323,819715,1019722,NULL,NULL,NULL,0,NULL,NULL 5324,558448,1031302,NULL,NULL,NULL,0,NULL,NULL 5325,4456079,943713,Famous Question Popular Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 5326,202394,943713,Famous Question Popular Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 5327,1814024,220648,Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 5328,83322,632751,NULL,NULL,NULL,0,NULL,NULL 5329,262230,1545487,Popular Question,NULL,NULL,0,NULL,NULL 5330,935113,1057279,Necromancer Yearling,NULL,NULL,0,NULL,NULL 5331,1099738,360293,Informed Teacher Supporter Commentator Autobiographer Editor Necromancer Student Scholar,NULL,NULL,0,NULL,NULL 5332,1396053,682513,Great Answer Yearling Good Answer Nice Answer Enlightened Notable Question Tumbleweed Caucus Curious Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Popular Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 5333,474822,16974,Yearling Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 5334,52383,182927,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 5335,136684,314015,Excavator Announcer Nice Answer Yearling Nice Answer Announcer Yearling Necromancer Necromancer Yearling Announcer Great Answer Autobiographer Necromancer,NULL,pRed Hat provides OpenJDK Windows binaries under exactly the same license as AdoptOpenJDK and any other open source OpenJDK build under the href http hg openjdk java net jdk8u jdk8u file 866ed739fa56 LICENSE rel nofollow noreferrer GNU GPL with classpath exception All the restrictions about the development use are related only to the subscription support that can be purchased from Red Hat ppTechnical differences between Red Hat OpenJDK for Windows and other mentioned builds are pretty minor as all these builds pass href https en wikipedia org wiki Technology Compatibility Kit rel nofollow noreferrer TCK Generally Red Hat builds are trying to stay as close as possible in behaviour to OpenJDK package that is included in RHEL and CentOS ppDifferences polli pRH OpenJDK build is done from the sources of OpenJDK RPM package that is used on RHEL CentOS These sources are generally very close to href http hg openjdk java net jdk8u jdk8u rel nofollow noreferrer upstream sources but contain some changes see points below and may include some bugfixes RPM patches ahead of time RHEL CentOS changes can be tracked in publicly available href https git centos org summary rpms java openjdk rel nofollow noreferrer repo for CentOS RPM lili pRH OpenJDK includes href https developers redhat com products openjdk overview shenandoah rel nofollow noreferrer Shenandoah garbage collector lili pRH OpenJDK uses sources from RHEL CentOS for dependency libraries zlib giflib libjpeg turbo libpng nss instead of the partial sources of these libraries that are included in tree in upstream jdk sources lili pElliptic Crypto implementation in RH OpenJDK includes only most popular href https en wikipedia org wiki Comparison of TLS implementations Supported elliptic curves rel nofollow noreferrer elliptic curves NIST 256 NIST 384 and NIST 521 lili pRH OpenJDK uses the set of root CA certificates from RHEL CentOS lili pRH OpenJDK may use slightly newer timezone data it is taken from RHEL CentOS lili pRH OpenJDK includes all Java sources code inside the src zip file that is used by IDEs to allow browsing jdk code in upstream build substantial part of these sources is not included lili pRH OpenJDK does not include demos and samples lili pRH OpenJDK includes set of font files lili pall native binaries in RH OpenJDK are signed by RH certificate lili pRH OpenJDK installer includes href https wiki openjdk java net display OpenJFX Main rel nofollow noreferrer JavaFX implementation lili pRH OpenJDK installer includes href https developers redhat com products openjdk overview webstart rel nofollow noreferrer WebStart implementation li olpSource work on OpenJDK Windows builds at RH Indeed this was also taken from RHEL CentOS link https git centos org blob rpms java openjdk git 95d8095737ad044d3508c26a50214ca0661eb599 SPECS java openjdk spec L1503,1,NULL,Technical difference between AdoptOpenJDK and Red Hat OpenJDK for Windows java windows redhat openjdk pRed hat provides the href https developers redhat com products openjdk download rel nofollow noreferrer Red Hat OpenJDK for Windows for development use only registration required AdoptOpenJDK provides OpenJDK builds for Windows href https adoptopenjdk net releases html variant openjdk8 amp jvmVariant hotspot x64 win rel nofollow noreferrer AdoptOpenJDK Windows without any restrictions ppIs there any technical difference between the two packages when using the same version update 8u181 With technical difference mean missing classes functions different default JVM settings etc pRed Hat provides OpenJDK Windows binaries under exactly the same license as AdoptOpenJDK and any other open source OpenJDK build under the href http hg openjdk java net jdk8u jdk8u file 866ed739fa56 LICENSE rel nofollow noreferrer GNU GPL with classpath exception All the restrictions about the development use are related only to the subscription support that can be purchased from Red Hat ppTechnical differences between Red Hat OpenJDK for Windows and other mentioned builds are pretty minor as all these builds pass href https en wikipedia org wiki Technology Compatibility Kit rel nofollow noreferrer TCK Generally Red Hat builds are trying to stay as close as possible in behaviour to OpenJDK package that is included in RHEL and CentOS ppDifferences polli pRH OpenJDK build is done from the sources of OpenJDK RPM package that is used on RHEL CentOS These sources are generally very close to href http hg openjdk java net jdk8u jdk8u rel nofollow noreferrer upstream sources but contain some changes see points below and may include some bugfixes RPM patches ahead of time RHEL CentOS changes can be tracked in publicly available href https git centos org summary rpms java openjdk rel nofollow noreferrer repo for CentOS RPM lili pRH OpenJDK includes href https developers redhat com products openjdk overview shenandoah rel nofollow noreferrer Shenandoah garbage collector lili pRH OpenJDK uses sources from RHEL CentOS for dependency libraries zlib giflib libjpeg turbo libpng nss instead of the partial sources of these libraries that are included in tree in upstream jdk sources lili pElliptic Crypto implementation in RH OpenJDK includes only most popular href https en wikipedia org wiki Comparison of TLS implementations Supported elliptic curves rel nofollow noreferrer elliptic curves NIST 256 NIST 384 and NIST 521 lili pRH OpenJDK uses the set of root CA certificates from RHEL CentOS lili pRH OpenJDK may use slightly newer timezone data it is taken from RHEL CentOS lili pRH OpenJDK includes all Java sources code inside the src zip file that is used by IDEs to allow browsing jdk code in upstream build substantial part of these sources is not included lili pRH OpenJDK does not include demos and samples lili pRH OpenJDK includes set of font files lili pall native binaries in RH OpenJDK are signed by RH certificate lili pRH OpenJDK installer includes href https wiki openjdk java net display OpenJFX Main rel nofollow noreferrer JavaFX implementation lili pRH OpenJDK installer includes href https developers redhat com products openjdk overview webstart rel nofollow noreferrer WebStart implementation li olpSource work on OpenJDK Windows builds at RH 5336,1029628,1266765,NULL,NULL,NULL,0,NULL,NULL 5337,190292,213323,Popular Question Great Answer Notable Question Notable Question Popular Question Popular Question javascript Notable Question Famous Question Nice Answer Nice Question Yearling Good Answer Popular Question Popular Question Tag Editor Favorite Question Popular Question Good Question Nice Answer Enlightened Yearling Taxonomist Nice Answer Popular Question Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 5338,167662,668534,NULL,NULL,NULL,0,NULL,NULL 5339,108391,1239798,Famous Question Yearling,NULL,NULL,0,NULL,NULL 5340,106242,911063,NULL,NULL,NULL,0,NULL,NULL 5341,182190,1565818,NULL,NULL,NULL,0,NULL,NULL 5342,269753,564075,Yearling,NULL,NULL,0,NULL,NULL 5343,2396187,225814,Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Nice Answer Enlightened Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question Popular Question Socratic Nice Question Nice Question Notable Question Nice Question Popular Question Popular Question Famous Question Great Question Notable Question Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Nice Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Great Question Popular Question Popular Question Notable Question Popular Question Famous Question Good Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 5344,781000,910294,NULL,NULL,NULL,0,NULL,NULL 5345,251900,1234331,NULL,NULL,NULL,0,NULL,NULL 5346,251899,1234331,NULL,NULL,NULL,0,NULL,NULL 5347,122589,220441,NULL,NULL,NULL,0,NULL,NULL 5348,1509110,1498346,Necromancer,NULL,NULL,0,NULL,NULL 5349,219446,234375,Popular Question,NULL,NULL,0,NULL,NULL 5350,53746,166984,NULL,NULL,NULL,0,NULL,NULL 5351,1352257,827785,Necromancer Caucus Curious Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 5352,114488,291545,Yearling Yearling Great Question Favorite Question Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5353,216351,220272,Popular Question Yearling Popular Question Popular Question Notable Question Caucus Documentation User Custodian Custodian Custodian Yearling Caucus Constituent Notable Question Excavator Inquisitive Civic Duty Explainer Yearling,NULL,NULL,0,NULL,NULL 5354,682566,479477,NULL,NULL,NULL,0,NULL,NULL 5355,163536,401137,Nice Answer Enlightened Popular Question Good Answer Yearling Nice Answer Nice Answer Good Question Nice Answer Enlightened Notable Question Good Answer Yearling Documentation User Notable Question javascript Great Answer Enlightened Nice Answer Guru Populist Yearling Nice Answer,NULL,NULL,0,NULL,NULL 5356,1520321,1189813,NULL,NULL,NULL,0,NULL,NULL 5357,109859,252684,Yearling Famous Question Notable Question Notable Question Nice Question Yearling Nice Question Nice Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 5358,231692,75794,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 5359,20057,712117,Editor Informed Excavator Commentator Documentation User Custodian Census Critic,NULL,NULL,0,NULL,NULL 5360,53128,597683,NULL,NULL,NULL,0,NULL,NULL 5361,206338,734879,NULL,NULL,NULL,0,NULL,NULL 5362,236121,1359684,Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 5363,2948686,1359684,Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 5364,363754,59111,Good Answer Yearling Nice Answer Great Answer Nice Answer Enlightened javascript Guru arrays Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Notable Question Good Answer Guru Nice Answer Nice Answer Guru Nice Answer Nice Answer Good Answer Yearling Great Answer vb.net Guru Nice Answer Nice Question Great Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Guru Great Answer Announcer Good Answer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 5365,494092,1038335,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5366,184608,528168,NULL,NULL,NULL,0,NULL,NULL 5367,217961,637437,NULL,NULL,NULL,0,NULL,NULL 5368,18433,379772,Necromancer Informed,NULL,NULL,0,NULL,NULL 5369,81614,154279,Nice Answer,NULL,NULL,0,NULL,NULL 5370,135153,554416,NULL,NULL,NULL,0,NULL,NULL 5371,87728,654219,NULL,NULL,NULL,0,NULL,NULL 5372,663411,681195,NULL,NULL,NULL,0,NULL,NULL 5373,181534,716185,Yearling,NULL,NULL,0,NULL,NULL 5374,9273,332798,Commentator Editor Revival Yearling Student Enthusiast Scholar Announcer Necromancer Yearling Nice Answer Custodian Civic Duty Announcer Citizen Patrol Revival,NULL,NULL,0,NULL,NULL 5375,147127,484596,Nice Answer Enlightened Revival Necromancer Nice Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer Popular Question Popular Question Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer Yearling,NULL,pOne easy way would be to reassign the dataframe with list of the columns rearranged as needed ppThis is what you have now ppre codeIn dfOut mean0 445598 173835 343415 682252 582616 4455431 881592 696942 702232 696724 373551 6702082 662527 955193 131016 609548 804694 6325963 260919 783467 593433 033426 512019 4366534 131842 799367 182828 683330 019485 3633715 498784 873495 383811 699289 480447 5871656 388771 395757 745237 628406 784473 5885297 147986 459451 310961 706435 100914 3451498 394947 863494 585030 565944 356561 5531959 689260 865243 136481 386582 730399 561593In cols df columns tolist In colsOut 0L 1L 2L 3L 4L mean code prepRearrange codecols code in any way you want This is how moved the last element to the first position ppre codeIn 12 cols cols cols In 13 colsOut 13 mean 0L 1L 2L 3L 4L code prepThen reorder the dataframe like this ppre codeIn 16 df df cols OR df df ix cols In 17 dfOut 17 mean 40 445543 445598 173835 343415 682252 5826161 670208 881592 696942 702232 696724 3735512 632596 662527 955193 131016 609548 8046943 436653 260919 783467 593433 033426 5120194 363371 131842 799367 182828 683330 0194855 587165 498784 873495 383811 699289 4804476 588529 388771 395757 745237 628406 7844737 345149 147986 459451 310961 706435 1009148 553195 394947 863494 585030 565944 3565619 561593 689260 865243 136481 386582 730399 code pre That not set union it concatenation of two ordered lists,0,NULL,NULL 5376,275392,1048457,NULL,NULL,NULL,0,NULL,NULL 5377,364122,842493,NULL,NULL,NULL,0,NULL,NULL 5378,173824,21447,Proofreader Yearling Scholar Nice Answer Good Answer Civic Duty Custodian Announcer Curious Commentator Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 5379,199682,1159821,NULL,NULL,NULL,0,NULL,NULL 5380,481048,1052431,NULL,NULL,NULL,0,NULL,NULL 5381,426829,1196078,NULL,NULL,NULL,0,NULL,NULL 5382,2561929,674474,Yearling Notable Question Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5383,702162,674474,Yearling Notable Question Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5384,1909170,225260,Nice Answer Notable Question Good Answer Popular Question Yearling Guru Yearling Excavator Good Answer Good Question Great Question,NULL,NULL,0,NULL,NULL 5385,74903,1024645,NULL,NULL,NULL,0,NULL,NULL 5386,20329,885148,NULL,NULL,NULL,0,NULL,NULL 5387,295074,473103,NULL,NULL,NULL,0,NULL,NULL 5388,77130,1378732,NULL,NULL,NULL,0,NULL,NULL 5389,18185,255532,Yearling Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 5390,299260,1084152,NULL,NULL,NULL,0,NULL,NULL 5391,163598,273493,Notable Question Yearling,NULL,NULL,0,NULL,NULL 5392,1243409,71053,Nice Question Yearling,NULL,NULL,0,NULL,NULL 5393,15208,140110,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5394,787158,705610,NULL,NULL,NULL,0,NULL,NULL 5395,2182627,650987,NULL,NULL,NULL,0,NULL,NULL 5396,164678,650987,NULL,NULL,NULL,0,NULL,NULL 5397,494263,1524222,NULL,NULL,NULL,0,NULL,NULL 5398,164190,1093582,Custodian Steward Steward Nice Answer Popular Question javascript Notable Question Good Answer Caucus Popular Question Yearling Notable Question Caucus Constituent node.js Popular Question Revival Electorate Nice Answer Enlightened Mortarboard Nice Answer Documentation User Yearling Nice Answer Nice Answer Enlightened promise Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 5399,1231835,551674,NULL,NULL,NULL,0,NULL,NULL 5400,47612,1413406,NULL,NULL,NULL,0,NULL,NULL 5401,9612621,922009,Famous Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 5402,2303158,922009,Famous Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 5403,283866,1094556,NULL,NULL,NULL,0,NULL,NULL 5404,614100,644863,Nice Answer,NULL,NULL,0,NULL,NULL 5405,178184,1130391,NULL,NULL,NULL,0,NULL,NULL 5406,204967,108176,Nice Question Yearling Notable Question Notable Question Popular Question Great Question Announcer Popular Question Good Question Favorite Question Famous Question Popular Question Good Question Yearling Popular Question Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 5407,187382,330223,NULL,NULL,NULL,0,NULL,NULL 5408,7809,357182,NULL,NULL,NULL,0,NULL,NULL 5409,5947,1134198,Revival,NULL,NULL,0,NULL,NULL 5410,2033395,252353,Nice Answer,NULL,NULL,0,NULL,NULL 5411,176650,252353,Nice Answer,NULL,NULL,0,NULL,NULL 5412,291222,424473,NULL,NULL,NULL,0,NULL,NULL 5413,74789,148870,Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Great Answer shell Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer branch Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Guru Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Guru jquery Guru Nice Answer Enlightened Nice Answer Great Answer Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer string Guru Good Answer Good Answer multithreading Guru Great Answer Great Answer Nice Answer Guru Great Answer Guru Good Answer Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Constituent Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened list Nice Answer Good Answer oop Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened loops Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Great Answer Good Answer Guru Guru Nice Answer Nice Answer Good Answer Great Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Populist Nice Answer Favorite Question Nice Answer Good Answer Guru Good Answer Good Answer Nice Answer Caucus Guru Good Answer Constituent Yearling Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Guru Enlightened Nice Answer Great Answer Good Answer Guru Nice Answer Enlightened Great Answer Great Answer Guru Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened mysql Good Answer Guru Nice Answer Good Answer Guru Good Answer Census Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Guru Good Answer Caucus Nice Answer Constituent multidimensional-array Great Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Guru Nice Answer Enlightened Guru Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Guru Great Question Guru Guru Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened,NULL,olli codegit diff HEAD code Shows what has changed since the last commit lili codegit diff HEAD code Shows what has changed since the commit embefore em the latest commit lili codegit diff cached code Show what has been added to the index via codegit add code but not yet committed lili codegit diff code Show what has changed but hasn been added to the index yet via codegit add code li olpIt looks like this ppre code Working Directory lt git add diff Index lt diff HEAD git commit diff cached diff staged HEAD lt diff HEAD previous git commit HEAD lt code pre git diff by default shows the difference between the working directory and the index The index version of file reflects any changes that were added by git add even if they aren committed yet pIf you re putting this in string within program you may actually need to use four backslashes because the string parser will remove two of them when de escaping it for the emstring em and then the regex needs two for an escaped regex backslash ppFor instance ppre coderegex code prepis interpreted as ppre coderegex escaped backslash followed by escaped backslash code prepis interpreted as ppre coderegex code prepis interpreted as regex that matches single backslash phrpDepending on the language you might be able to use different form of quoting that doesn parse escape sequences to avoid having to use as many for instance in Python ppre codere compile code prepThe coder code in front of the quotes makes it emraw em string which doesn parse backslash escapes because not all languages have unescaped regex literals and thus sometimes the programming language itself interprets slash escapes once in its string syntax and the resulting string then gets passed to the regex engine which interprets slash escapes in regex syntax pInteractive rebase off of point earlier in the history than the commit you need to modify codegit rebase lt earliercommit gt code In the list of commits being rebased change the text from codepick code to codeedit code next to the hash of the one you want to modify Then when git prompts you to change the commit use this ppre codegit commit amend author Author Name lt email com gt code prehrpFor example if your commit history is codeA code with codeF code as codeHEAD code and you want to change the author of codeC code and codeD code then you would polliSpecify codegit rebase code href https help github com articles about git rebase an example of using git rebase rel noreferrer here is an example of what you will see after executing the codegit rebase code command ulliif you need to edit codeA code use codegit rebase root code li ul lilichange the lines for both codeC code and codeD code from codepick code to codeedit code liliOnce the rebase started it would first pause at codeC code liliYou would codegit commit amend author Author Name lt email com gt code liliThen codegit rebase continue code liliIt would pause again at codeD code liliThen you would codegit commit amend author Author Name lt email com gt code again lili codegit rebase continue code liliThe rebase would complete liliUse codegit push code to update your origin with the updated commits li ol you literally change the word at the beginning of the line to the word edit pInteractive rebase off of point earlier in the history than the commit you need to modify codegit rebase lt earliercommit gt code In the list of commits being rebased change the text from codepick code to codeedit code next to the hash of the one you want to modify Then when git prompts you to change the commit use this ppre codegit commit amend author Author Name lt email com gt code prehrpFor example if your commit history is codeA code with codeF code as codeHEAD code and you want to change the author of codeC code and codeD code then you would polliSpecify codegit rebase code href https help github com articles about git rebase an example of using git rebase rel noreferrer here is an example of what you will see after executing the codegit rebase code command ulliif you need to edit codeA code use codegit rebase root code li ul lilichange the lines for both codeC code and codeD code from codepick code to codeedit code liliOnce the rebase started it would first pause at codeC code liliYou would codegit commit amend author Author Name lt email com gt code liliThen codegit rebase continue code liliIt would pause again at codeD code liliThen you would codegit commit amend author Author Name lt email com gt code again lili codegit rebase continue code liliThe rebase would complete liliUse codegit push code to update your origin with the updated commits li ol not unless you have copy of the older version of the history rebase is command that specifically rewrites history,0,NULL,NULL 5414,1373318,949625,NULL,NULL,NULL,0,NULL,NULL 5415,563273,1431944,Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 5416,44359,131482,Popular Question Yearling Stellar Question Popular Question Yearling Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5417,342635,337972,Autobiographer,NULL,NULL,0,NULL,NULL 5418,595,1141615,NULL,NULL,NULL,0,NULL,NULL 5419,41334,574351,Popular Question Curious Great Question Yearling Caucus Constituent Popular Question Yearling Popular Question Citizen Patrol Critic Organizer Documentation User Census Notable Question Favorite Question Yearling Self-Learner Popular Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 5420,264579,904408,NULL,NULL,NULL,0,NULL,NULL 5421,62947,605371,Notable Question,NULL,NULL,0,NULL,NULL 5422,621853,801626,Teacher,NULL,NULL,0,NULL,NULL 5423,1375799,884783,NULL,NULL,NULL,0,NULL,NULL 5424,895461,1343726,Notable Question,NULL,NULL,0,NULL,NULL 5425,2471395,507821,NULL,NULL,NULL,0,NULL,NULL 5426,10532,507821,NULL,NULL,NULL,0,NULL,NULL 5427,233728,212330,Teacher Informed Editor Yearling Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 5428,856208,1155323,Yearling Inquisitive Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Autobiographer Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5429,9612968,1460949,NULL,NULL,NULL,0,NULL,NULL 5430,782547,560791,Yearling Critic Civic Duty Necromancer Announcer,NULL,NULL,0,NULL,NULL 5431,90918,780436,NULL,NULL,NULL,0,NULL,NULL 5432,452332,684199,NULL,NULL,NULL,0,NULL,NULL 5433,526458,26898,Yearling,NULL,NULL,0,NULL,NULL 5434,1285732,1014183,NULL,NULL,NULL,0,NULL,NULL 5435,102060,485964,NULL,NULL,NULL,0,NULL,NULL 5436,206556,992462,NULL,NULL,NULL,0,NULL,NULL 5437,18251,234349,Popular Question,NULL,NULL,0,NULL,NULL 5438,256196,1345865,Announcer,NULL,NULL,0,NULL,NULL 5439,1283241,420774,Yearling Necromancer Critic Nice Answer Yearling Notable Question Enlightened Civic Duty Good Answer Yearling Revival Documentation User Popular Question Notable Question Necromancer Custodian,NULL,NULL,0,NULL,NULL 5440,137992,506806,NULL,NULL,NULL,0,NULL,NULL 5441,199947,423410,Popular Question Yearling Good Question Popular Question Famous Question Informed Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5442,257764,143080,NULL,NULL,NULL,0,NULL,NULL 5443,296978,205207,Popular Question Good Question Popular Question Yearling Custodian Yearling Famous Question Custodian Pundit Yearling,NULL,NULL,0,NULL,NULL 5444,2357574,868168,Teacher,NULL,NULL,0,NULL,NULL 5445,1004069,1112430,NULL,NULL,NULL,0,NULL,NULL 5446,151683,1091208,Necromancer Yearling Custodian Nice Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 5447,8275805,1091208,Necromancer Yearling Custodian Nice Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 5448,4991,216953,Good Question Popular Question Nice Question Famous Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 5449,80055,197633,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5450,5812,235993,Good Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 5451,8214,552813,NULL,NULL,NULL,0,NULL,NULL 5452,71197,126382,Notable Question Nice Answer Yearling Notable Question Necromancer Notable Question Necromancer Caucus Constituent Yearling Nice Question Popular Question Popular Question Nice Answer Popular Question Popular Question Popular Question Notable Question Revival Yearling Nice Question Notable Question Census Nice Answer Caucus Constituent Yearling Famous Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5453,10003068,1093222,Popular Question Popular Question Critic Curious Notable Question Caucus Tumbleweed Custodian Nice Question,NULL,NULL,0,NULL,NULL 5454,376506,1093222,Popular Question Popular Question Critic Curious Notable Question Caucus Tumbleweed Custodian Nice Question,NULL,NULL,0,NULL,NULL 5455,375,129356,NULL,NULL,NULL,0,NULL,NULL 5456,74151,225291,Yearling Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 5457,6300646,739299,Nice Answer,NULL,NULL,0,NULL,NULL 5458,939708,714085,NULL,NULL,NULL,0,NULL,NULL 5459,1007183,977975,NULL,NULL,NULL,0,NULL,NULL 5460,4427997,668802,Informed,NULL,NULL,0,NULL,NULL 5461,465152,1479457,Supporter,NULL,NULL,0,NULL,NULL 5462,157400,790174,Yearling Good Answer Yearling Popular Question Notable Question ruby-on-rails Guru Yearling,NULL,NULL,0,NULL,NULL 5463,1833361,1563980,NULL,NULL,NULL,0,NULL,NULL 5464,739810,387119,Curious Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 5465,312461,246577,NULL,NULL,NULL,0,NULL,NULL 5466,74947,743782,NULL,NULL,NULL,0,NULL,NULL 5467,1334693,77909,Necromancer Necromancer Yearling Nice Answer Yearling Editor Yearling Commentator Yearling Yearling Good Answer Caucus Nice Answer Enthusiast Yearling Necromancer Peer Pressure Yearling Tenacious Critic Guru Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 5468,1102068,113376,Notable Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 5469,707583,1541540,Informed,NULL,NULL,0,NULL,NULL 5470,1391214,821862,NULL,NULL,NULL,0,NULL,NULL 5471,549445,1305513,NULL,NULL,NULL,0,NULL,NULL 5472,34664,1508050,NULL,NULL,NULL,0,NULL,NULL 5473,380003,187343,Self-Learner Necromancer Yearling Nice Answer Revival Tenacious Nice Answer Enlightened Popular Question Nice Answer Caucus Yearling Promoter Tumbleweed Nice Answer Enlightened Good Answer Unsung Hero Yearling,NULL,NULL,0,NULL,NULL 5474,1726446,582069,NULL,NULL,NULL,0,NULL,NULL 5475,323872,582069,NULL,NULL,NULL,0,NULL,NULL 5476,70111,758366,NULL,NULL,NULL,0,NULL,NULL 5477,734101,496713,Nice Answer Yearling Good Answer Nice Answer Yearling Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 5478,155933,274782,NULL,NULL,NULL,0,NULL,NULL 5479,114317,410599,NULL,NULL,NULL,0,NULL,NULL 5480,10148,663173,NULL,NULL,NULL,0,NULL,NULL 5481,145828,1116200,NULL,NULL,NULL,0,NULL,NULL 5482,7257999,1359677,NULL,NULL,NULL,0,NULL,NULL 5483,3514984,792785,NULL,NULL,NULL,0,NULL,NULL 5484,1182430,410019,NULL,NULL,NULL,0,NULL,NULL 5485,101759,1120565,NULL,NULL,NULL,0,NULL,NULL 5486,13393,410055,NULL,NULL,NULL,0,NULL,NULL 5487,4694,1387230,Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 5488,3803085,1194644,Critic Yearling Commentator Yearling Editor Custodian Custodian Citizen Patrol Caucus Constituent Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 5489,189252,1194644,Critic Yearling Commentator Yearling Editor Custodian Custodian Citizen Patrol Caucus Constituent Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 5490,298643,755550,NULL,NULL,NULL,0,NULL,NULL 5491,806347,604858,NULL,NULL,NULL,0,NULL,NULL 5492,1283912,398206,Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 5493,2533751,1381785,Popular Question Necromancer Nice Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 5494,64002,1430811,NULL,NULL,NULL,0,NULL,NULL 5495,480794,329903,Famous Question Yearling,NULL,NULL,0,NULL,NULL 5496,289772,1260322,Yearling Civic Duty Caucus Nice Answer Enlightened Yearling Census Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 5497,213481,242826,Yearling Famous Question Necromancer Notable Question Notable Question Notable Question Popular Question Good Question Popular Question Famous Question Yearling Custodian Custodian Census Famous Question Popular Question,NULL,NULL,0,NULL,NULL 5498,48395,590874,Supporter,NULL,NULL,0,NULL,NULL 5499,64626,1225675,Yearling,NULL,NULL,0,NULL,NULL 5500,486524,777455,NULL,NULL,NULL,0,NULL,NULL 5501,78686,1074571,Critic,NULL,NULL,0,NULL,NULL 5502,763658,827578,Teacher,NULL,NULL,0,NULL,NULL 5503,131001,1090554,NULL,NULL,NULL,0,NULL,NULL 5504,83948,367019,NULL,NULL,NULL,0,NULL,NULL 5505,1242831,878351,NULL,NULL,NULL,0,NULL,NULL 5506,725574,955588,NULL,NULL,NULL,0,NULL,NULL 5507,148741,228521,Popular Question Nice Question Notable Question Popular Question Notable Question Famous Question Famous Question Nice Question Nice Answer Notable Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Famous Question Notable Question Famous Question Good Question Popular Question Good Question Notable Question Nice Question Good Question Popular Question Good Question Notable Question Famous Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Good Question Nice Question Famous Question Favorite Question Notable Question Good Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5508,678700,580946,Popular Question,NULL,NULL,0,NULL,NULL 5509,229858,1306001,NULL,NULL,NULL,0,NULL,NULL 5510,1382033,990421,Necromancer Necromancer Nice Answer Necromancer Yearling Necromancer Nice Answer Nice Answer Revival Yearling Citizen Patrol Nice Answer Good Answer Custodian Custodian Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5511,326281,1065738,Civic Duty Good Answer Caucus Constituent Yearling Necromancer Caucus Constituent Necromancer Nice Answer Enlightened Yearling Census Caucus ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 5512,194438,762747,Promoter Yearling Famous Question Popular Question Notable Question Revival Nice Question Popular Question Necromancer Nice Answer Caucus Popular Question Good Answer Nice Answer Popular Question Yearling Popular Question Good Answer Nice Answer Enlightened Custodian Necromancer Census Cleanup Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5513,219235,1356792,Yearling Populist Custodian Citizen Patrol Good Answer Necromancer Custodian,NULL,NULL,0,NULL,NULL 5514,436349,1113023,Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Curious Revival Nice Question Good Answer Nice Answer Famous Question Caucus Yearling Announcer d3.js Good Answer Promoter Benefactor Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Yearling Stellar Question Nice Answer Enlightened Nice Answer Enlightened Guru,NULL,pGood question Looks like the dispatch object has somewhat href https github com d3 d3 blob master CHANGES md dispatches d3 dispatch rel noreferrer changed and that coded3 rebind code no longer exists Because the latter is gone it appears that there no way to copy via coded3 rebind code the code on code method Instead you must implement your own href https github com d3 d3 brush blob master src brush js L533 L536 rel noreferrer See here how bostock implemented coded3 brush code ppI put together href https jsfiddle net meetamit k5am14nc rel noreferrer this jsFiddle to demonstrate how to achieve with D3 v4 what you re asking ppThe important bit is implementing the code on code method ppre codeinstance on function var value dispatcher on apply dispatcher arguments return value dispatcher instance value code prepAnd dispatching is like this ppre codedispatcher call was clicked this Hello Foo code pre If understood you question It shouldn matter that they re in different files What matters is that exports on function lives within the instantiator function in your case that would be within d3 mapDots function districts If that the case then them being in separate files shouldn be problem as long as the main script properly imports the mapDots script if you re able to call d3 mapDots with no error then it is properly imported pGood question Looks like the dispatch object has somewhat href https github com d3 d3 blob master CHANGES md dispatches d3 dispatch rel noreferrer changed and that coded3 rebind code no longer exists Because the latter is gone it appears that there no way to copy via coded3 rebind code the code on code method Instead you must implement your own href https github com d3 d3 brush blob master src brush js L533 L536 rel noreferrer See here how bostock implemented coded3 brush code ppI put together href https jsfiddle net meetamit k5am14nc rel noreferrer this jsFiddle to demonstrate how to achieve with D3 v4 what you re asking ppThe important bit is implementing the code on code method ppre codeinstance on function var value dispatcher on apply dispatcher arguments return value dispatcher instance value code prepAnd dispatching is like this ppre codedispatcher call was clicked this Hello Foo code pre You should be able to make jsFiddle that reproduces your issue and that would help solve it pGood question Looks like the dispatch object has somewhat href https github com d3 d3 blob master CHANGES md dispatches d3 dispatch rel noreferrer changed and that coded3 rebind code no longer exists Because the latter is gone it appears that there no way to copy via coded3 rebind code the code on code method Instead you must implement your own href https github com d3 d3 brush blob master src brush js L533 L536 rel noreferrer See here how bostock implemented coded3 brush code ppI put together href https jsfiddle net meetamit k5am14nc rel noreferrer this jsFiddle to demonstrate how to achieve with D3 v4 what you re asking ppThe important bit is implementing the code on code method ppre codeinstance on function var value dispatcher on apply dispatcher arguments return value dispatcher instance value code prepAnd dispatching is like this ppre codedispatcher call was clicked this Hello Foo code pre Hey glad it worked out If you still have questions let me know Otherwise if you don mind and if my answer qualifies then please mark it as accepted and or upvote so that can get some points Thanks,1,NULL,Rebinding exports in d3 js v4 javascript d3 js pI creating map using the modules system more or less used to D3 js v3 but am still getting used to v4 ppI am trying to add dispatch but don know how to rebind the exports in V4 as this function is not available now ppSo for my dispatch dis and my particular event changetype the rebind in d3 v3 would be right before returning the exports for example ppre coded3 mapDots function districts var dis d3 dispatch changetype exports color function if arguments length return color color return this d3 rebind exports dis on return exports code prepDoes anyone know how to do this in v4 ve been trying dispatch apply but it doesn work ppThanks pGood question Looks like the dispatch object has somewhat href https github com d3 d3 blob master CHANGES md dispatches d3 dispatch rel noreferrer changed and that coded3 rebind code no longer exists Because the latter is gone it appears that there no way to copy via coded3 rebind code the code on code method Instead you must implement your own href https github com d3 d3 brush blob master src brush js L533 L536 rel noreferrer See here how bostock implemented coded3 brush code ppI put together href https jsfiddle net meetamit k5am14nc rel noreferrer this jsFiddle to demonstrate how to achieve with D3 v4 what you re asking ppThe important bit is implementing the code on code method ppre codeinstance on function var value dispatcher on apply dispatcher arguments return value dispatcher instance value code prepAnd dispatching is like this ppre codedispatcher call was clicked this Hello Foo code pre 5515,329299,967838,NULL,NULL,NULL,0,NULL,NULL 5516,160892,1195247,Popular Question Nice Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 5517,677322,750039,Scholar Announcer Announcer Commentator Curious Revival Critic Informed Custodian Yearling Popular Question Yearling Caucus Notable Question Announcer,NULL,NULL,0,NULL,NULL 5518,263986,750039,Scholar Announcer Announcer Commentator Curious Revival Critic Informed Custodian Yearling Popular Question Yearling Caucus Notable Question Announcer,NULL,NULL,0,NULL,NULL 5519,17106,489311,Popular Question Notable Question Nice Question Notable Question Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 5520,167067,771359,NULL,NULL,NULL,0,NULL,NULL 5521,1025087,337461,Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5522,53130,943007,Commentator Curious Popular Question,NULL,NULL,1,MySQL cursor based pagination with multiple columns mysql pagination pI have some table that want to query using cursor based pagination but it needs to apply for multiple columns ppLet take simplified example of using columns fetch the first page like this ppre class lang sql prettyprint override codeSELECT column column 2FROM table nameORDER BY column column 2LIMIT 10 code prepAfter get the results can fetch the next page based on the last row Let say the last row was codecolumn column code like to do something like this ppre class lang sql prettyprint override codeSELECT column column 2FROM table nameWHERE column gt AND column gt 8ORDER BY column column 2LIMIT 10 code prepBut this is obviously wrong It would filter out row that has codecolumn column code because of the filter on codecolumn code or row that has codecolumn column code because of the filter on codecolumn code ppI can do something like this to avoid the problem ppre class lang sql prettyprint override codeSELECT column column 2FROM table nameWHERE column gt 5OR column AND column gt ORDER BY column column 2LIMIT 10 code prepBut this becomes very cumbersome and error prone for more than columns ppAlso my use case includes columns of multiple types codeINT UNSIGNED code and codeBINARY code but all are comparable ppDo you have any suggestions ppThanks,NULL 5523,264385,247924,Good Question Yearling Critic Excavator Yearling,NULL,NULL,0,NULL,NULL 5524,241814,1466248,Student Yearling,NULL,NULL,0,NULL,NULL 5525,297877,1143309,Yearling Notable Question Famous Question Necromancer Notable Question Yearling Popular Question Nice Answer Enlightened Good Answer Famous Question Nice Question Great Answer Popular Question Yearling Census Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 5526,550889,1277423,NULL,NULL,NULL,0,NULL,NULL 5527,173088,547636,Nice Answer Yearling Good Answer Yearling Self-Learner Caucus Constituent Yearling Notable Question Commentator Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 5528,892165,495041,Notable Question Good Answer sql-server Popular Question Great Answer Nice Answer Popular Question sql Notable Question Yearling Caucus Popular Question Notable Question Popular Question Nice Answer Nice Question Nice Answer Caucus Announcer Good Answer Custodian Nice Answer Enlightened Yearling Great Answer Census Guru Revival Good Answer Great Answer Caucus Popular Question Notable Question Popular Question Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 5529,164492,975487,NULL,NULL,NULL,0,NULL,NULL 5530,345018,330114,NULL,NULL,NULL,0,NULL,NULL 5531,124412,835277,Yearling Famous Question Notable Question Curious Famous Question Popular Question Excavator Enthusiast Nice Question,NULL,NULL,0,NULL,NULL 5532,266353,785648,NULL,NULL,NULL,0,NULL,NULL 5533,197332,1304966,Tumbleweed,NULL,NULL,0,NULL,NULL 5534,528827,505164,NULL,NULL,NULL,0,NULL,NULL 5535,85911,1267648,NULL,NULL,NULL,0,NULL,NULL 5536,1118600,1414578,Revival Notable Question Yearling Revival Revival Revival Self-Learner Necromancer Popular Question Popular Question Popular Question Notable Question Yearling Nice Answer Notable Question Tenacious Famous Question Yearling,NULL,NULL,0,NULL,NULL 5537,520860,818739,Yearling Nice Question Guru Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 5538,189926,478489,NULL,NULL,NULL,0,NULL,NULL 5539,97639,353562,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 5540,7818098,8825,Nice Question Yearling Famous Question Good Question Famous Question Great Answer Good Question Famous Question Yearling Nice Answer Nice Answer Good Question Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 5541,122415,8825,Nice Question Yearling Famous Question Good Question Famous Question Great Answer Good Question Famous Question Yearling Nice Answer Nice Answer Good Question Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 5542,712512,724910,Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5543,72586,650437,NULL,NULL,NULL,0,NULL,NULL 5544,106710,782808,Nice Question Nice Question Good Question ios Good Question objective-c Enthusiast Popular Question Yearling Famous Question Necromancer Famous Question Nice Answer Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Favorite Question Nice Answer Good Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 5545,261756,1066327,NULL,NULL,NULL,0,NULL,NULL 5546,562864,1128545,Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 5547,125400,733032,Popular Question Yearling Critic Revival Yearling Organizer Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 5548,253368,1058844,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5549,511257,1014473,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5550,632919,1406640,NULL,NULL,NULL,0,NULL,NULL 5551,72974,955263,Good Answer Yearling Commentator Informed Necromancer,NULL,pThe code provided by eerpini does not work as written Note for example that the pipe ends that are closed in the parent are used afterwards Look at ppre codeclose wpipefd code prepand the subsequent write to that closed descriptor This is just transposition but it shows this code has never been used Below is version that have tested Unfortunately changed the code style so this was not accepted as an edit of eerpini code ppThe only structural change is that only redirect the in the child note the dup2 calls are only in the child path This is very important because otherwise the parent gets messed up Thanks to eerpini for the initial answer which used in developing this one ppre code include lt stdio gt include lt stdlib gt include lt unistd gt include lt errno gt define PIPE READ define PIPE WRITE 1int createChild const char szCommand char const aArguments char const aEnvironment const char szMessage int aStdinPipe int aStdoutPipe int nChild char nChar int nResult if pipe aStdinPipe lt perror allocating pipe for child input redirect return if pipe aStdoutPipe lt close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE perror allocating pipe for child output redirect return nChild fork if nChild child continues here redirect stdin if dup2 aStdinPipe PIPE READ STDIN FILENO exit errno redirect stdout if dup2 aStdoutPipe PIPE WRITE STDOUT FILENO exit errno redirect stderr if dup2 aStdoutPipe PIPE WRITE STDERR FILENO exit errno all these are for use by parent only close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ close aStdoutPipe PIPE WRITE run child process image replace this with any exec function find easier to use man exec nResult execve szCommand aArguments aEnvironment if we get here at all an error occurred but we are in the child process so just exit exit nResult else if nChild gt parent continues here close unused file descriptors these are for child only close aStdinPipe PIPE READ close aStdoutPipe PIPE WRITE Include error check here if NULL szMessage write aStdinPipe PIPE WRITE szMessage strlen szMessage Just char by char read here you can change it accordingly while read aStdoutPipe PIPE READ amp nChar write STDOUT FILENO amp nChar done with these in this example program you would normally keep these open of course as long as you want to talk to the child close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ else failed to create child close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ close aStdoutPipe PIPE WRITE return nChild code pre Oh understand your comment now The example program does blocking read on the parent side so it will in fact block forever if the child stops sending anything and does not close the stdout This is outside the scope of this example program which is just about getting the forking and redirects to be correct You will need to write your own application logic to communicate between the parent and the child pThe code provided by eerpini does not work as written Note for example that the pipe ends that are closed in the parent are used afterwards Look at ppre codeclose wpipefd code prepand the subsequent write to that closed descriptor This is just transposition but it shows this code has never been used Below is version that have tested Unfortunately changed the code style so this was not accepted as an edit of eerpini code ppThe only structural change is that only redirect the in the child note the dup2 calls are only in the child path This is very important because otherwise the parent gets messed up Thanks to eerpini for the initial answer which used in developing this one ppre code include lt stdio gt include lt stdlib gt include lt unistd gt include lt errno gt define PIPE READ define PIPE WRITE 1int createChild const char szCommand char const aArguments char const aEnvironment const char szMessage int aStdinPipe int aStdoutPipe int nChild char nChar int nResult if pipe aStdinPipe lt perror allocating pipe for child input redirect return if pipe aStdoutPipe lt close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE perror allocating pipe for child output redirect return nChild fork if nChild child continues here redirect stdin if dup2 aStdinPipe PIPE READ STDIN FILENO exit errno redirect stdout if dup2 aStdoutPipe PIPE WRITE STDOUT FILENO exit errno redirect stderr if dup2 aStdoutPipe PIPE WRITE STDERR FILENO exit errno all these are for use by parent only close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ close aStdoutPipe PIPE WRITE run child process image replace this with any exec function find easier to use man exec nResult execve szCommand aArguments aEnvironment if we get here at all an error occurred but we are in the child process so just exit exit nResult else if nChild gt parent continues here close unused file descriptors these are for child only close aStdinPipe PIPE READ close aStdoutPipe PIPE WRITE Include error check here if NULL szMessage write aStdinPipe PIPE WRITE szMessage strlen szMessage Just char by char read here you can change it accordingly while read aStdoutPipe PIPE READ amp nChar write STDOUT FILENO amp nChar done with these in this example program you would normally keep these open of course as long as you want to talk to the child close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ else failed to create child close aStdinPipe PIPE READ close aStdinPipe PIPE WRITE close aStdoutPipe PIPE READ close aStdoutPipe PIPE WRITE return nChild code pre Here is gist of completely horrible application protocol runs on MacOS should work on Linux that just sends hello world message and assumes nothing goes wrong You would of course write real application protocol for production code but at least you can see it running here https gist github com derammo e2802f9e4a713633901c7c5390388b78,0,NULL,NULL 5552,77727,371357,Yearling Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 5553,73324,162258,NULL,NULL,NULL,0,NULL,NULL 5554,350475,754320,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 5555,881952,754377,Editor Revival Yearling Great Question Civic Duty Caucus Caucus Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 5556,30337,754377,Editor Revival Yearling Great Question Civic Duty Caucus Caucus Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 5557,12801,118361,NULL,NULL,NULL,0,NULL,NULL 5558,324047,1258503,NULL,NULL,NULL,0,NULL,NULL 5559,402383,1056455,Popular Question Popular Question Commentator Teacher Critic Popular Question Tumbleweed Yearling Notable Question Popular Question Notable Question Caucus Nice Question Notable Question Curious Popular Question Yearling Popular Question Necromancer Famous Question Famous Question,NULL,NULL,0,NULL,NULL 5560,363652,257169,Notable Question Organizer Yearling Nice Answer Notable Question Popular Question Popular Question Popular Question Yearling Good Question Populist Notable Question Yearling Popular Question Notable Question Notable Question Yearling Great Answer Custodian Famous Question Popular Question,NULL,NULL,0,NULL,NULL 5561,85981,163149,Good Question,NULL,NULL,0,NULL,NULL 5562,3614,813264,NULL,NULL,NULL,0,NULL,NULL 5563,187069,91966,NULL,NULL,NULL,0,NULL,NULL 5564,304222,414145,Commentator Nice Answer Enlightened Popular Question Custodian,NULL,NULL,0,NULL,NULL 5565,3684440,477403,Notable Question Nice Question Custodian Popular Question Popular Question Yearling Notable Question Necromancer,NULL,pHere is an example ppre codeclass Parent def self descendants ObjectSpace each object Class select klass klass lt self endendclass Child lt Parentendclass GrandChild lt Childendputs Parent descendantsputs Child descendants code prepputs Parent descendants gives you ppre codeGrandChildChild code prepputs Child descendants gives you ppre codeGrandChild code pre How could make this work for Object and BasicObject curious to know what they show up,0,NULL,NULL 5566,152092,477403,Notable Question Nice Question Custodian Popular Question Popular Question Yearling Notable Question Necromancer,NULL,pHere is an example ppre codeclass Parent def self descendants ObjectSpace each object Class select klass klass lt self endendclass Child lt Parentendclass GrandChild lt Childendputs Parent descendantsputs Child descendants code prepputs Parent descendants gives you ppre codeGrandChildChild code prepputs Child descendants gives you ppre codeGrandChild code pre How could make this work for Object and BasicObject curious to know what they show up,0,NULL,NULL 5567,394946,445845,Critic Caucus Necromancer Yearling Nice Answer Nice Answer Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 5568,802698,542733,NULL,NULL,NULL,0,NULL,NULL 5569,101008,368482,Supporter,NULL,NULL,0,NULL,NULL 5570,413433,1236530,Good Question Yearling Great Answer Yearling Caucus Constituent Enthusiast Yearling,NULL,NULL,0,NULL,NULL 5571,14340,167595,Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 5572,540062,1184722,NULL,NULL,NULL,0,NULL,NULL 5573,627876,136268,Popular Question,NULL,NULL,0,NULL,NULL 5574,67112,164137,Popular Question Good Answer Famous Question Good Question Yearling Popular Question Civic Duty Custodian Popular Question Notable Question Yearling Excavator Announcer Notable Question Popular Question Notable Question Yearling Self-Learner Popular Question Yearling Famous Question Yearling Announcer Popular Question Announcer Nice Question,NULL,strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre sympathise with your comment but moving this into plugin will sort of defeat the purpose of the code of just being able to git clone cd vagrant up first time around strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre what do you expect to happen with this comment Either provide more details or debug it yourself strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre what version of Vagrant Ruby and OS do you got problems with Can you provide minimal instructions to replicate your issue,0,NULL,NULL 5575,54190,1021683,NULL,NULL,NULL,0,NULL,NULL 5576,139298,1480990,Yearling,NULL,NULL,0,NULL,NULL 5577,92809,1348767,Yearling Nice Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 5578,798480,249939,NULL,NULL,NULL,0,NULL,NULL 5579,112816,418736,NULL,NULL,NULL,0,NULL,NULL 5580,298084,474452,Yearling Good Question,NULL,NULL,0,NULL,NULL 5581,109781,269138,NULL,NULL,NULL,0,NULL,NULL 5582,436875,237955,Notable Question Great Answer Nice Answer Notable Question Guru Nice Answer Popular Question Nice Answer Yearling Steward Good Answer Yearling Popular Question Good Answer Popular Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 5583,553837,762002,NULL,NULL,NULL,0,NULL,NULL 5584,638412,1504157,NULL,NULL,NULL,0,NULL,NULL 5585,52451,431327,Famous Question Yearling Announcer Yearling Nice Answer android Nice Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 5586,209926,399298,NULL,NULL,NULL,0,NULL,NULL 5587,660036,790696,NULL,NULL,NULL,0,NULL,NULL 5588,823515,1308526,NULL,NULL,NULL,0,NULL,NULL 5589,144500,43597,Nice Answer Yearling Announcer Necromancer Yearling Announcer Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 5590,322454,1377290,NULL,NULL,NULL,0,NULL,NULL 5591,1556313,762642,NULL,NULL,NULL,0,NULL,NULL 5592,167667,65148,Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Good Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 5593,330429,670858,Supporter Popular Question,NULL,NULL,0,NULL,NULL 5594,319970,834620,NULL,NULL,NULL,0,NULL,NULL 5595,676845,1056586,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5596,17982,234151,Yearling Popular Question Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 5597,119915,97160,Nice Answer Good Answer Announcer Great Answer Revival Necromancer Good Answer Good Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Revival Great Answer Nice Answer Nice Answer Necromancer 3d Outspoken Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Necromancer Good Answer Documentation Beta Documentation Pioneer Revival Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Nice Answer Announcer Necromancer Necromancer Nice Answer Good Answer Famous Question Nice Answer Nice Answer Good Answer Caucus Necromancer Good Answer Famous Question Good Answer Constituent Guru Announcer Announcer Necromancer Nice Answer Guru Nice Answer Nice Answer Nice Answer Revival Nice Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Necromancer Good Answer Announcer Nice Answer Nice Answer Announcer Good Answer Yearling Announcer Nice Answer Enlightened Nice Answer Announcer Revival Nice Answer Enlightened Announcer Nice Answer Announcer Announcer Good Answer Nice Answer Caucus Announcer Constituent Nice Answer Announcer Announcer Nice Answer struct Good Question Announcer Announcer Good Answer Announcer Announcer Announcer Announcer Announcer Documentation User Nice Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Announcer Good Answer Revival Guru Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Good Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Announcer Caucus Constituent Guru Nice Answer Announcer Yearling Nice Answer Enlightened Announcer Nice Answer Announcer Announcer Good Question Announcer Announcer Announcer Nice Answer Announcer Booster Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Announcer Necromancer Good Answer Announcer Favorite Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5598,147644,215089,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5599,39180,392689,NULL,NULL,NULL,0,NULL,NULL 5600,1056201,1110171,Nice Answer Yearling Scholar Custodian Good Answer Caucus Constituent Yearling Self-Learner Popular Question Popular Question Reviewer Tumbleweed Notable Question Curious Documentation User Notable Question Nice Question Yearling Famous Question Necromancer Popular Question Caucus Nice Answer Good Question Custodian Custodian,NULL,NULL,0,NULL,NULL 5601,1208099,408426,Nice Question Nice Answer Nice Answer Yearling Notable Question Nice Answer Enlightened Nice Answer Yearling Great Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 5602,1083227,1351786,NULL,NULL,NULL,0,NULL,NULL 5603,200435,1264607,Editor,NULL,NULL,0,NULL,NULL 5604,209666,472209,NULL,NULL,NULL,0,NULL,NULL 5605,441594,800071,NULL,NULL,NULL,0,NULL,NULL 5606,442738,632689,Tumbleweed Caucus Famous Question Critic,NULL,NULL,0,NULL,NULL 5607,114977,1515513,NULL,NULL,NULL,0,NULL,NULL 5608,7990899,1515513,NULL,NULL,NULL,0,NULL,NULL 5609,215470,456801,Yearling,NULL,NULL,0,NULL,NULL 5610,422725,153712,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 5611,233435,543371,NULL,NULL,NULL,0,NULL,NULL 5612,36201,973825,NULL,NULL,NULL,0,NULL,NULL 5613,329900,986308,NULL,NULL,NULL,0,NULL,NULL 5614,271883,827110,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Nice Answer Announcer Good Answer Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 5615,916475,574406,NULL,NULL,NULL,0,NULL,NULL 5616,348480,1103811,Yearling Nice Answer Yearling Favorite Question Nice Answer Yearling Nice Answer Enlightened Caucus Custodian Good Answer,NULL,NULL,0,NULL,NULL 5617,92236,790651,NULL,NULL,NULL,0,NULL,NULL 5618,1640813,790651,NULL,NULL,NULL,0,NULL,NULL 5619,250862,258667,Good Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 5620,1473899,1115857,Revival,NULL,NULL,0,NULL,NULL 5621,419868,1399347,NULL,NULL,NULL,0,NULL,NULL 5622,654100,245223,NULL,NULL,NULL,0,NULL,NULL 5623,681084,992563,Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 5624,205126,602592,Notable Question,NULL,NULL,0,NULL,NULL 5625,1505929,457992,NULL,NULL,NULL,0,NULL,NULL 5626,619049,1038959,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 5627,296225,508601,Nice Answer Famous Question Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Good Answer Nice Answer Enlightened Generalist Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Guru Good Question Good Answer Famous Question Caucus mongodb-.net-driver mongodb-.net-driver Good Answer nosql Guru Nice Answer Enlightened Yearling Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Great Answer Guru Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 5628,1471846,330242,Necromancer Yearling Necromancer Notable Question Good Question Nice Answer Custodian Custodian Custodian Yearling Excavator Popular Question Custodian Custodian Custodian Census Taxonomist Explainer Revival Yearling Revival Popular Question Popular Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 5629,1558383,330242,Necromancer Yearling Necromancer Notable Question Good Question Nice Answer Custodian Custodian Custodian Yearling Excavator Popular Question Custodian Custodian Custodian Census Taxonomist Explainer Revival Yearling Revival Popular Question Popular Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 5630,242071,56149,Notable Question Nice Question Good Answer Yearling Favorite Question Revival Famous Question Popular Question Good Answer Famous Question Popular Question Notable Question Popular Question Notable Question Necromancer Notable Question Announcer Good Question Popular Question Good Answer Nice Question Notable Question Guru Popular Question Notable Question Popular Question Yearling Notable Question Necromancer Popular Question Popular Question Popular Question Notable Question Good Question Announcer Nice Answer Enlightened Popular Question Good Answer Popular Question Popular Question Notable Question Yearling Nice Question Famous Question Notable Question Good Answer Popular Question Popular Question Popular Question Notable Question Citizen Patrol Nice Answer Nice Question,NULL,NSFetchedResultsController with predicate ignores changes merged from different NSManagedObjectContext core data ios nsfetchedresultscontroller nspredicate pI am presenting table view contents using codeNSFetchedResultsController code which has predicate ppre code NSPredicate predicateWithFormat visible NSNumber numberWithBool YES code prepOn background thread using separate codeNSManagedObjectContext code update few of the entities and change theirs codevisible code value from codeNO code to codeYES code Save merge changes in main thread codeNSManagedObjectContext code But codeNSFetchedResultsController code codefetchedObjects code doesn change Also controller doesn call code controller didChangeObject code on delegate If entities are updated on main thread in identical manner my test app calls the same method everything works as expected ppAlso Notification codeNSUpdatedObjectsKey code contains those objects ppCurrently the only solutions ve found is to call for each of codeNSUpdatedObjectsKey code entities ppre codeNSManagedObjectContext context main thread context context existingObjectWithID object objectID error nil code prepThis issue is only with strongupdated strong objects which previously didn match the predicate ppAm missing something obvious This bug is finally fixed in iOS 10 https twitter com an0 status 750413478620491776,0,NULL,NULL 5631,117397,443700,Notable Question Popular Question Necromancer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5632,220771,1397351,Good Answer Enlightened Good Answer Nice Answer Good Answer Yearling Good Answer Booster Announcer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Good Answer Guru Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Good Answer Announcer Yearling Nice Answer Announcer Guru Announcer Caucus Announcer Nice Answer Nice Answer Announcer Caucus Booster Nice Answer jquery Yearling Good Answer Self-Learner Good Answer Good Answer Booster Booster,NULL,coderotateX 50deg code is equivalent to coderotate3d 50deg code pp coderotateY 20deg code is equivalent to coderotate3d 20deg code pp coderotateZ 15deg code is equivalent to coderotate3d 15deg code ppSo pp coderotateX 50deg rotateY 20deg rotateZ 15deg code ppis equivalent to pp coderotate3d 50deg rotate3d 20deg rotate3d 15deg code phrpFor generic coderotate3d code you have the matrix pp img src https stack imgur com B5n9T png alt generic rotate matrix ppwhere pp img src https stack imgur com YWRI3 png alt explanation phrpYou now get the matrices for each of the coderotate3d code transforms and you multiply them And the resulting matrix is the matrix corresponding to the resulting single coderotate3d code Not sure how to easy it is to extract the values for coderotate3d code out of it but it sure easy to extract those for single codematrix3d code phrpIn the first case coderotateX 50deg code or coderotate3d 50deg code you have pp codex code codey code codez code codeα 50deg code ppSo the first row of the matrix in this case is code1 code ppThe second one is code0 cos 50deg sin 50deg code ppThe third one code0 sin 50deg cos 50deg code ppAnd the fourth one is obviously code0 code phrpIn the second case you have codex code codey code codez code codeα 20deg code ppFirst row codecos 20deg sin 20deg code ppSecond row code0 code ppThird row code sin 20 cos 20deg code ppFourth code0 code phrpIn the third case you have codex code codey code codez code codeα 15deg code ppFirst row codecos 15deg sin 15deg code ppSecond row codesin 15deg cos 15deg code ppAnd the third and the fourth row are code0 code and code0 code respectively phrp strong emNote strong you may have noticed that the signs of the sin values for the rotateY transform are different than for the other two transforms It not computation mistake The reason for this is that for the screen you have the axis pointing down not up em phrpSo these are the three code4x4 code matrices that you need to multiply in order to get the code4x4 code matrix for the resulting single coderotate3d code transform As ve said not sure how easy it can be to get the values out but the 16 elements in the 4x4 matrix are exactly the 16 parameters of the codematrix3d code equivalent of the chained transform phrp strongEDIT strong ppActually it turns out it pretty easy You compute the trace sum of diagonal elements of the matrix for the coderotate3d code matrix pp code4 cos cos cos code ppYou then compute the trace for the product of the three code4x4 code matrices you equate the result with code2 cos code you extract codeα code Then you compute codex code codey code codez code ppIn this particular case if computed correctly the trace of the matrix resulting from the product of the three code4x4 code matrices is going to be ppre codeT cos 20deg cos 15deg cos 50deg cos 15deg sin 50deg sin 20deg cos 15deg cos 50deg cos 20deg code prepSo codecos code which means that codeα acos code It not one row The first values are the values on the 1st column the next 642788 766044 are the values on the 2nd column and so on Here the values you have fit the rotateX situation in my answer above 64 is the cos of your angle 76 is the sin These signs place it between 90° and 0° You can get the exact value with Math atan2 76 64 Then you have rotate3d αrad Or you could convert to degrees 180 Math PI,0,NULL,NULL 5633,128948,325866,NULL,NULL,NULL,0,NULL,NULL 5634,1194344,154427,Notable Question,NULL,NULL,0,NULL,NULL 5635,322013,149482,Nice Question Nice Question Good Answer Nice Answer Great Question Nice Question Nice Question Nice Question Nice Answer Popular Question Good Answer Nice Question Popular Question Notable Question Notable Question Notable Question Nice Question Nice Answer Enlightened Guru Notable Question Announcer Good Question Favorite Question Notable Question Popular Question Popular Question Notable Question Good Answer Nice Question Good Answer Popular Question Guru Nice Question Popular Question Notable Question Announcer Great Question Notable Question Nice Answer Nice Answer Nice Question Popular Question Nice Answer Necromancer Nice Question Notable Question Nice Question Popular Question Good Question Notable Question Nice Question Good Question Famous Question Great Answer Famous Question Nice Question Notable Question Nice Question Good Answer Popular Question c Notable Question Notable Question Notable Question Yearling Notable Question Favorite Question Nice Answer Favorite Question Nice Question Popular Question Great Question Nice Question Popular Question Great Answer Good Answer Notable Question Great Question Guru Nice Answer Enlightened Famous Question Nice Question Notable Question Nice Answer Enlightened Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Famous Question Notable Question Good Question Caucus Constituent Nice Answer Good Question Famous Question Nice Question Nice Answer Notable Question Good Question Good Answer Nice Question Nice Answer Nice Answer Enlightened Nice Question Popular Question Good Question Nice Question Good Answer Famous Question Popular Question Nice Question Favorite Question Notable Question Famous Question Notable Question Popular Question Popular Question Nice Answer Notable Question Notable Question Announcer Booster Nice Question Notable Question Favorite Question Popular Question Nice Answer Famous Question Popular Question Popular Question Caucus Yearling Famous Question Notable Question Famous Question Good Question Notable Question Nice Question Famous Question Notable Question Great Question Famous Question Popular Question Nice Question Famous Question Favorite Question Nice Answer Notable Question Popular Question Good Answer Notable Question Notable Question Popular Question Good Question Notable Question Nice Question Notable Question Nice Question Nice Answer Famous Question Popular Question Notable Question Great Question Good Question Announcer Nice Question Good Question Famous Question Nice Question Popular Question Census Nice Question Famous Question Necromancer Guru Good Question Nice Answer Good Answer Great Answer Good Question Nice Answer Nice Answer Popular Question Notable Question Notable Question Caucus Notable Question Popular Question Constituent Nice Question Nice Question Nice Question Popular Question Notable Question Notable Question Notable Question Great Question Good Question Nice Question Famous Question Notable Question Popular Question Famous Question Popular Question Necromancer Nice Question Nice Answer Good Question Nice Answer Great Question Guru Nice Question Great Question Notable Question Notable Question Good Question Famous Question Famous Question Nice Question Yearling Notable Question Favorite Question Popular Question Popular Question Notable Question Popular Question Nice Answer Nice Answer Notable Question Popular Question Favorite Question Good Question Announcer Famous Question Notable Question Nice Question Famous Question Notable Question Nice Answer Great Answer Popular Question Popular Question Popular Question,NULL,pI think we re confusing things Haskell code code is equivalent to code gt gt code Not to be confused with code gt code which is just inverted function application and is like Haskell code code reversed ppre codelet gt gt let gt code prepI believe Haskell programmers do use code code often Perhaps not as often as programmers tend to use code gt code On the other hand some guys use code gt gt code to ridiculous degree href http blogs msdn com ashleyf archive 2011 04 21 programming is pointless aspx rel noreferrer http blogs msdn com ashleyf archive 2011 04 21 programming is pointless aspx don think is equivalent to don know if has but that would be the equivalent like in Elm pTry this for size ppre code include lt stdbool gt include lt stdio gt include lt stdlib gt include lt string gt include lt unistd gt returns the number of utf8 code points in the buffer at ssize utf8len char size len for if amp 0xC0 0x80 len return len returns pointer to the beginning of the pos th utf8 codepoint in the buffer at schar utf8index char size pos pos for if amp 0xC0 0x80 pos if pos return return NULL converts codepoint indexes start and end to byte offsets in the buffer at svoid utf8slice char ssize start ssize end char utf8index start start utf8index end end appends the utf8 string at src to destchar utf8cat char dest char src return strcat dest src test programint main int argc char argv slurp all of stdin to with length len char malloc size len while true realloc len 0x10000 ssize cnt read STDIN FILENO len 0x10000 if cnt perror read abort else if cnt break else len cnt do some demo operations printf utf8len zu utf8len ssize start end utf8slice amp start amp end printf utf8slice end start start start end utf8slice amp start amp end printf utf8slice end start start return code prepSample run ppre codematt Desktop echo 你们好āa utf8ops utf8len 5utf8slice 好utf8slice code prepNote that your example has an off by one error strong codetheString code strong That sounds utf8len utf8len should return,1,Can leave sockets in SYN RECV until interested in accepting sockets tcp server bittorrent backlog pIn href https github com anacrolix torrent rel nofollow torrent client ve written don accept connections unless actually want or need more connections This leads to codenetstat code showing lot of codeSYN RECV code which seems plausible as haven yet completed the connection Do these consume available file descriptors on the server Is it bad practise to let the backlog fill up until actually want to accept Is there better practice Get the name of the currently executing testing test testing go discovery pIn Go how would get the name of the currently executing test the function name starting with codeTest code of the current test without passing it in manually,NULL 5636,1437964,1301237,Notable Question Nice Answer Custodian Custodian Yearling Necromancer Custodian Nice Answer Notable Question Good Answer Nice Answer Nice Question Favorite Question Yearling Good Answer Curious Popular Question Nice Answer Custodian Necromancer Yearling Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 5637,3388113,1301237,Notable Question Nice Answer Custodian Custodian Yearling Necromancer Custodian Nice Answer Notable Question Good Answer Nice Answer Nice Question Favorite Question Yearling Good Answer Curious Popular Question Nice Answer Custodian Necromancer Yearling Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 5638,37138,23033,Yearling Caucus Yearling Documentation User Nice Answer Informed Strunk & White Caucus Yearling,NULL,NULL,0,NULL,NULL 5639,8067,346286,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 5640,821,481317,NULL,NULL,NULL,0,NULL,NULL 5641,2777339,1043971,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5642,203187,1043971,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5643,7774824,513355,Notable Question Popular Question Critic Caucus Popular Question Yearling Tumbleweed Caucus Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 5644,352599,719002,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5645,318910,406442,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5646,1134644,1260457,NULL,NULL,NULL,0,NULL,NULL 5647,80511,623564,NULL,NULL,NULL,0,NULL,NULL 5648,807837,744401,Critic Popular Question Commentator,NULL,NULL,0,NULL,NULL 5649,162623,520901,Autobiographer Supporter,NULL,NULL,0,NULL,NULL 5650,169813,553902,Editor Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 5651,343960,1457073,NULL,NULL,NULL,0,NULL,NULL 5652,915373,865071,NULL,NULL,NULL,0,NULL,NULL 5653,12162,1118245,NULL,NULL,NULL,0,NULL,NULL 5654,1522419,886484,Teacher Famous Question,NULL,NULL,0,NULL,NULL 5655,10001,1496226,NULL,NULL,NULL,0,NULL,NULL 5656,258464,1194848,Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5657,5865135,1194848,Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5658,1348551,1520443,Critic Notable Question Nice Answer Famous Question Necromancer Yearling Popular Question Good Answer Good Question Popular Question Nice Answer Yearling Caucus Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 5659,23146,189776,Great Answer Yearling Popular Question Nice Question Critic Famous Question Notable Question Yearling Custodian Favorite Question Yearling,NULL,NULL,0,NULL,NULL 5660,595599,416265,NULL,NULL,NULL,0,NULL,NULL 5661,201000,114260,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5662,169626,635231,Yearling Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5663,860635,902067,NULL,NULL,NULL,0,NULL,NULL 5664,2550,96354,Famous Question Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Question firebase firebase-security Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 5665,93677,810277,Citizen Patrol Notable Question Yearling Necromancer Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Great Answer Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5666,93535,225381,Notable Question Favorite Question Nice Question Notable Question Famous Question Yearling Stellar Question Investor Documentation User Yearling Nice Question Stellar Question,NULL,NULL,0,NULL,NULL 5667,213440,225665,NULL,NULL,NULL,0,NULL,NULL 5668,237090,820922,Curious Popular Question,NULL,NULL,0,NULL,NULL 5669,118004,1274613,Popular Question Notable Question Yearling Custodian Notable Question Popular Question Notable Question Talkative Popular Question Caucus Tag Editor Yearling Great Answer Necromancer Popular Question Necromancer Good Question Documentation User Popular Question Notable Question Inquisitive Civic Duty Yearling Notable Question Popular Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 5670,73592,1174784,Yearling Good Answer Cleanup Necromancer Yearling Necromancer Necromancer Nice Answer Custodian Announcer Documentation User Custodian Good Answer Census Yearling Nice Answer Revival Popular Question Custodian,NULL,pAddressing the above too small task to require library issue by straightforward implementation ppre codedef sizeof fmt num suffix for unit in Ki Mi Gi Ti Pi Ei Zi if abs num lt 1024 return 1f num unit suffix num 1024 return 1f num Yi suffix code prepSupports pulliall currently known href https en wikipedia org wiki Binary prefix Specific units of IEC 60027 and ISO 2FIEC 80000 rel noreferrer binary prefixes lilinegative and positive numbers lilinumbers larger than 1000 Yobibytes liliarbitrary units maybe you like to count in Gibibits li ulpExample ppre code gt gt gt sizeof fmt 168963795964 157 4GiB code prepby href https web archive org web 20111010015624 http blogmag net blog read 38 Print human readable file size rel noreferrer Fred Cirera there are two such libraries in http stackoverflow com 15485265 1174784 also note that the above code has been adopted by borg backup and improved for Python3 https github com borgbackup borg blob master src borg helpers py L745 Git alias with positional parameters git command parameters position alias pBasically trying to alias ppre codegit files 9fa3 code prep to execute the command ppre codegit diff name status 9fa3 9fa3 code prepbut git doesn appear to pass positional parameters to the alias command have tried ppre code alias files git diff name status files git diff name status code prep and few others but those didn work ppThe degenerate case would be ppre code git echo reverse these params ee code prep how can make this work can confirm can run shell commands with arguments without any shenanigans in Git 11 What is the Python equivalent of static variables inside function python pWhat is the idiomatic Python equivalent of this code ppre codevoid foo static int counter counter printf counter is counter code prepspecifically how does one implement the static member at the function level as opposed to the class level And does placing the function into class change anything in general when get to this stage in Python it because need to build class to regroup bunch of functions pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting why isn that class part of the standard library it seems much more useful to send all messages at once especially for batch jobs as opposed to long running servers pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting why is the line drawn there because you have to draw it somewhere really my point is that exactly find the SMTPHandler basically useless and the BufferingSMTPHandler essential for SMTP support in logging the line was drawn in the wrong place pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting well the buffering handler would certainly improve things there it not one dimensional line here allowing an improved SMTP lib in there would be plus IMHO but okay get it,0,NULL,NULL 5671,68303,282906,Yearling Yearling,NULL,NULL,0,NULL,NULL 5672,6956684,810283,NULL,NULL,NULL,0,NULL,NULL 5673,178168,386591,Nice Answer Necromancer Notable Question Yearling Nice Answer Nice Question Nice Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 5674,275228,620648,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 5675,150699,1067688,Necromancer Nice Question Popular Question Necromancer Notable Question Popular Question Caucus Yearling Famous Question Good Answer Popular Question Popular Question Nice Question Good Question Notable Question Notable Question Nice Answer Custodian Custodian Nice Answer Civic Duty Yearling Enthusiast Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5676,313600,1129360,Popular Question,NULL,NULL,0,NULL,NULL 5677,148705,576557,Editor,NULL,NULL,0,NULL,NULL 5678,945872,714820,Favorite Question,NULL,NULL,0,NULL,NULL 5679,40947,1372096,Informed,NULL,NULL,0,NULL,NULL 5680,309247,880709,Tumbleweed Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 5681,389081,481796,Student Editor Nice Question Critic Scholar Yearling,NULL,NULL,0,NULL,NULL 5682,102706,776266,NULL,NULL,NULL,0,NULL,NULL 5683,160851,242538,Yearling Announcer Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 5684,978862,721328,Guru Guru Yearling Yearling Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 5685,296193,620705,NULL,NULL,NULL,0,NULL,NULL 5686,1108492,1097234,NULL,NULL,NULL,0,NULL,NULL 5687,298843,661639,Nice Answer Enlightened Yearling Notable Question Caucus Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 5688,385360,1439147,Notable Question Popular Question Necromancer Nice Answer Nice Answer Yearling Caucus Custodian Yearling Famous Question Investor Nice Question Popular Question,NULL,NULL,0,NULL,NULL 5689,729368,1022043,Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 5690,98677,38483,Notable Question Nice Answer Famous Question Popular Question Nice Question Nice Question Popular Question Yearling Custodian Popular Question Famous Question Census Enthusiast Notable Question Nice Question Popular Question Documentation User Notable Question Yearling Popular Question Popular Question Notable Question Nice Question Famous Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5691,197706,389648,Notable Question Tumbleweed Nice Question Critic Famous Question Yearling Good Question Teacher Documentation User Custodian,NULL,NULL,0,NULL,NULL 5692,2582750,389648,Notable Question Tumbleweed Nice Question Critic Famous Question Yearling Good Question Teacher Documentation User Custodian,NULL,NULL,0,NULL,NULL 5693,89450,646617,Yearling Curious Popular Question Notable Question Nice Question Tumbleweed Custodian Famous Question Critic,NULL,NULL,1,How to combine object properties in typescript typescript pI like to know the best way to do this say have two objects ppre codevar objectA propertyA propertyB propertyM 13 var objectB propertyN 14 propertyO 15 propertyZ 26 code prepIf objectC is created by ppre codevar objectC Object assign objectA objectB code prepHow can declare describe objectC so the compiler IDE knows that it has the properties of both objectA and objectB ppI like to find way without the need of defining interfaces for objectA and objectB don want to write declaration and definition evaluation for the same property twice This redundancy is significant if have too many properties on an object pp Is there an operator that can extract the interface type of an existing object ppIs it possible,NULL 5694,178185,472034,Notable Question Popular Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Nice Answer Favorite Question Popular Question Nice Question Socratic Popular Question Popular Question Yearling Good Question Notable Question Notable Question Famous Question Famous Question Nice Question Notable Question Famous Question Popular Question Popular Question Notable Question Famous Question Great Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Yearling Notable Question Good Question Stellar Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5695,1182280,924444,NULL,NULL,NULL,0,NULL,NULL 5696,650095,634040,Supporter,NULL,NULL,0,NULL,NULL 5697,54765,385361,NULL,NULL,NULL,0,NULL,NULL 5698,1546897,837073,Critic Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 5699,114724,434206,Yearling Necromancer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 5700,453272,805687,Popular Question,NULL,NULL,0,NULL,NULL 5701,620829,275534,NULL,NULL,NULL,0,NULL,NULL 5702,514704,1415330,NULL,NULL,NULL,0,NULL,NULL 5703,149202,599023,Informed Yearling Commentator Nice Answer,NULL,NULL,0,NULL,NULL 5704,213776,216823,NULL,NULL,NULL,0,NULL,NULL 5705,6089,323152,Enthusiast Enthusiast,NULL,NULL,0,NULL,NULL 5706,1039805,1219143,Custodian Teacher,NULL,NULL,0,NULL,NULL 5707,134285,21186,Pundit Popular Question Good Answer Popular Question Nice Question Nice Question Yearling Notable Question Nice Answer Enlightened Nice Answer Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Guru Notable Question Guru Nice Answer Guru Yearling Good Answer Nice Answer Great Answer Popular Question Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 5708,501789,1246258,NULL,NULL,NULL,0,NULL,NULL 5709,369761,230094,NULL,NULL,NULL,0,NULL,NULL 5710,30099,1356134,NULL,NULL,NULL,0,NULL,NULL 5711,111329,496507,NULL,NULL,NULL,0,NULL,NULL 5712,82099,1107397,NULL,NULL,NULL,0,NULL,NULL 5713,29287,307901,Commentator Revival,NULL,NULL,0,NULL,NULL 5714,16035,121146,Revival Notable Question Necromancer Yearling Famous Question Caucus Constituent Nice Answer Enlightened Yearling Popular Question Good Answer Announcer Notable Question Nice Question Notable Question Nice Answer Nice Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5715,35645,744753,Nice Question,NULL,NULL,0,NULL,NULL 5716,9353368,900048,NULL,NULL,NULL,0,NULL,NULL 5717,78342,59329,Promoter Commentator Curious Popular Question,NULL,NULL,0,NULL,NULL 5718,127096,346027,Nice Answer Yearling Commentator Informed Caucus Yearling Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 5719,253465,648266,NULL,NULL,NULL,0,NULL,NULL 5720,88472,565724,NULL,NULL,NULL,0,NULL,NULL 5721,1421127,960083,Popular Question,NULL,NULL,0,NULL,NULL 5722,461838,1092051,NULL,NULL,NULL,0,NULL,NULL 5723,131654,772754,NULL,NULL,NULL,0,NULL,NULL 5724,515798,395763,Teacher Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 5725,405777,8805,Yearling Documentation User Good Answer,NULL,NULL,0,NULL,NULL 5726,1217475,27238,Good Question Yearling,NULL,NULL,0,NULL,NULL 5727,409886,434956,Popular Question,NULL,NULL,0,NULL,NULL 5728,156186,98378,Stellar Question Yearling css Guru Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 5729,64617,337997,Nice Answer Custodian Caucus Yearling Documentation User Census Caucus,NULL,NULL,0,NULL,NULL 5730,183828,1025411,Guru Enlightened Nice Answer Yearling Caucus Great Answer Custodian Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5731,61895,54007,NULL,NULL,NULL,0,NULL,NULL 5732,1298897,451310,NULL,NULL,NULL,0,NULL,NULL 5733,155344,313350,NULL,NULL,NULL,0,NULL,NULL 5734,156554,512382,NULL,NULL,NULL,0,NULL,NULL 5735,47130,24082,Custodian Good Answer Nice Answer Enlightened Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5736,497576,756148,Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Caucus Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Good Question Famous Question Popular Question Nice Question Notable Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5737,139517,635798,Yearling Nice Answer Revival Great Answer Yearling Caucus Necromancer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 5738,12135,64529,Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 5739,203133,469588,NULL,NULL,NULL,0,NULL,NULL 5740,116088,156633,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5741,985464,870739,NULL,NULL,NULL,0,NULL,NULL 5742,1077466,496874,NULL,NULL,NULL,0,NULL,NULL 5743,1152500,41807,Nice Question,NULL,NULL,0,NULL,NULL 5744,206864,314406,Popular Question Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 5745,16232,146950,Notable Question Yearling Guru Guru Caucus Popular Question Curious Notable Question Good Answer Custodian Yearling Nice Answer Enlightened Popular Question Custodian Yearling Custodian,NULL,NULL,1,Avoid CPU side conversion with texImage2D in Firefox javascript firefox webgl pWhenever use textures in webgl Firefox Firefox Developer Edition 50 0a2 for OSX to be excact outputs these warnings in the console pblockquote pError WebGL texSubImage2D Incurred CPU side conversion which is very slowbrError WebGL texSubImage2D Incurred CPU pixel conversion which is very slowbrError WebGL texSubImage2D Chosen format type incurred an expensive reformat 0x1908 0x1401 blockquotepIs there any way to avoid that have tried all combinations of allowed formats and types for the codetexImage2D code call but get conversion on the CPU no matter what try ppHere is minimal example showing what am doing pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar gl document querySelector canvas getContext webgl xD xD var textureSize 512 xD var canvas document createElement canvas xD canvas width textureSize xD canvas height textureSize xD xD var ctx canvas getContext 2d xD ctx fillStyle rgba xD ctx fillRect canvas width canvas height xD xD ctx fillStyle rgba xD ctx fillRect 400 400 xD xD var texture gl createTexture xD gl bindTexture gl TEXTURE 2D texture xD gl texImage2D gl TEXTURE 2D gl RGBA gl RGBA gl UNSIGNED BYTE canvas xD gl texParameteri gl TEXTURE 2D gl TEXTURE MAG FILTER gl NEAREST xD gl texParameteri gl TEXTURE 2D gl TEXTURE MIN FILTER gl NEAREST xD gl texParameteri gl TEXTURE 2D gl TEXTURE WRAP gl CLAMP TO EDGE xD gl texParameteri gl TEXTURE 2D gl TEXTURE WRAP gl CLAMP TO EDGE code pre xD pre class snippet code html lang html prettyprint override code lt canvas gt code pre xD div xD div xD,NULL 5746,451120,739428,NULL,NULL,NULL,0,NULL,NULL 5747,42491,339505,Good Answer Custodian Yearling Populist Nice Answer Necromancer Revival Revival Good Question Yearling Great Answer Necromancer Yearling Excavator Necromancer Great Answer,NULL,pSimple one liner ppre codefunction abs path cd dirname amp gt dev null amp amp printf PWD code prepUsage ppre codefunction do something local file abs path printf Absolute path to file do something HOME path to some where code prepI am still trying to figure out how can get it to be completely oblivious to whether the path exists or not so it can be used when creating files as well actually ended up going completely overboard for the dotfile synchronizer that maintaining It has clean path function that removes unneeded path parts if you stick relative path at the end of PWD and run it through that it should work quite well https github com andsens homeshick blob 490013f818e26fa477141846614ea873d5ef645f lib fs sh L66 L152 pI use these two gitconfig settings ppre code log date relative format pretty format Cblue ad Creset ae Cgreen Creset code prep ad is the author date which can be overidden by code date code or the option specified in the log stanza in gitconfig like the relative date because it gives an immediate feeling of when stuff was comitted Output looks like this ppre code6c3e1a2 hours ago you com lsof is dependency now 0754f18 11 hours ago you com Properly unmount so detaching works 336a3ac 13 hours ago you com Show ami registration command if auto register failsbe2ad45 17 hours ago you com Fixes Sao Paolo region is included as well 5aed68e 17 hours ago you com Shorten while loops code prepThis is all of course in color so it is easy to distinguish the various parts of log line Also it is the default when typing codegit log code because of the format section pp2014 UPDATE Since git now supports padding have nice amendment to the version above ppre codepretty format yellow Cblue gt 12 ad Cgreen lt aN Cred Creset code prepThis right aligns the relative dates and left aligns committer names meaning you get column like look that is easy on the eyes pstrongScreenshot strongp nbsp nbsp href https imgur com eRYXa0F png rel noreferrer img src https imgur com eRYXa0F png alt ss pp2016 UPDATE Since GPG commit signing is becoming thing thought update this post with version that includes signature verification in the screenshot it the magenta letter right after the commit short explanation of the flag pblockquote show for good valid signature for bad signature for good signature with unknown validity and for no signature blockquotepOther changes include pullicolors are now removed if the output is to something other than the tty which is useful for grepping etc lili codegit log code now contains the reflog selector liliSave parens on refnames and put them at the end to preserve column alignment liliTruncate relative dates if they are too long code3 years code liliTruncate commiter names might be little short for some ppl just change the code lt trunc code or check out the href https git scm com docs git shortlog rel noreferrer git mailmap feature to shorten commiter names li ulpHere the config ppre codepretty format auto yellow auto magenta auto blue gt 12 trunc ad auto green lt trunc aN auto reset auto red gD code prepAll in all column alignment is now preserved lot better at the expense of some hopefully useless characters Feel free to edit if you have any improvements love to make the message color depend on whether commit is signed but it doesn seem like that is possible atm pstrongScreenshot strongp href https imgur com fRyUrXV png rel noreferrer img src https imgur com fRyUrXV png alt Screenshot of git log sure no problem https gist github com andsens 3ba598d829e948e1bf816e2c4cd5f282 pI use these two gitconfig settings ppre code log date relative format pretty format Cblue ad Creset ae Cgreen Creset code prep ad is the author date which can be overidden by code date code or the option specified in the log stanza in gitconfig like the relative date because it gives an immediate feeling of when stuff was comitted Output looks like this ppre code6c3e1a2 hours ago you com lsof is dependency now 0754f18 11 hours ago you com Properly unmount so detaching works 336a3ac 13 hours ago you com Show ami registration command if auto register failsbe2ad45 17 hours ago you com Fixes Sao Paolo region is included as well 5aed68e 17 hours ago you com Shorten while loops code prepThis is all of course in color so it is easy to distinguish the various parts of log line Also it is the default when typing codegit log code because of the format section pp2014 UPDATE Since git now supports padding have nice amendment to the version above ppre codepretty format yellow Cblue gt 12 ad Cgreen lt aN Cred Creset code prepThis right aligns the relative dates and left aligns committer names meaning you get column like look that is easy on the eyes pstrongScreenshot strongp nbsp nbsp href https imgur com eRYXa0F png rel noreferrer img src https imgur com eRYXa0F png alt ss pp2016 UPDATE Since GPG commit signing is becoming thing thought update this post with version that includes signature verification in the screenshot it the magenta letter right after the commit short explanation of the flag pblockquote show for good valid signature for bad signature for good signature with unknown validity and for no signature blockquotepOther changes include pullicolors are now removed if the output is to something other than the tty which is useful for grepping etc lili codegit log code now contains the reflog selector liliSave parens on refnames and put them at the end to preserve column alignment liliTruncate relative dates if they are too long code3 years code liliTruncate commiter names might be little short for some ppl just change the code lt trunc code or check out the href https git scm com docs git shortlog rel noreferrer git mailmap feature to shorten commiter names li ulpHere the config ppre codepretty format auto yellow auto magenta auto blue gt 12 trunc ad auto green lt trunc aN auto reset auto red gD code prepAll in all column alignment is now preserved lot better at the expense of some hopefully useless characters Feel free to edit if you have any improvements love to make the message color depend on whether commit is signed but it doesn seem like that is possible atm pstrongScreenshot strongp href https imgur com fRyUrXV png rel noreferrer img src https imgur com fRyUrXV png alt Screenshot of git log ầnViệtHoàng oneline is just an alias for pretty oneline format pretty is the default pretty format but there is no way to override format oneline afaik What do is omit the pretty shortlog line in the config and then make an alias for running git log pretty shortlog pI would use the following codeawk code command ppre codestring text text text text char awk char print NF lt lt lt string code prepI splitting the string by code char code and print the number of resulting fields minus ppIf your shell does not support the code lt lt lt code operator use codeecho code ppre codeecho string awk char print NF code pre You can skip the wc just use grep it works on both bsd grep and linux grep,0,NULL,NULL 5748,381126,1740,Yearling Notable Question Notable Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5749,526539,1362567,Supporter,NULL,NULL,0,NULL,NULL 5750,210702,7084,Necromancer Yearling Yearling Popular Question Stellar Question Yearling,NULL,NULL,0,NULL,NULL 5751,379032,228693,Custodian Famous Question Famous Question Revival,NULL,NULL,0,NULL,NULL 5752,10550837,228693,Custodian Famous Question Famous Question Revival,NULL,NULL,0,NULL,NULL 5753,319091,1081196,NULL,NULL,NULL,0,NULL,NULL 5754,987849,945341,NULL,NULL,NULL,0,NULL,NULL 5755,282148,818155,NULL,NULL,NULL,0,NULL,NULL 5756,328800,1234138,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5757,682261,1120186,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5758,334918,1271759,NULL,NULL,NULL,0,NULL,NULL 5759,985661,457167,NULL,NULL,NULL,0,NULL,NULL 5760,72941,577172,NULL,NULL,NULL,0,NULL,NULL 5761,2044746,1286452,NULL,NULL,NULL,0,NULL,NULL 5762,646220,921772,NULL,NULL,NULL,0,NULL,NULL 5763,11190040,1236086,Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 5764,1348322,571120,Supporter,NULL,NULL,0,NULL,NULL 5765,811122,126610,Nice Question Notable Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Nice Question Yearling Famous Question Famous Question Popular Question Favorite Question Notable Question Famous Question Notable Question Great Question Famous Question Notable Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5766,713745,694528,Student,NULL,NULL,0,NULL,NULL 5767,1150247,1413473,NULL,NULL,NULL,0,NULL,NULL 5768,75128,749040,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5769,488037,1478736,NULL,NULL,NULL,0,NULL,NULL 5770,7713082,1478736,NULL,NULL,NULL,0,NULL,NULL 5771,14846,948155,NULL,NULL,NULL,0,NULL,NULL 5772,96537,959021,Popular Question,NULL,NULL,0,NULL,NULL 5773,25434,999459,NULL,NULL,NULL,0,NULL,NULL 5774,71673,1007593,Teacher Supporter Informed Census,NULL,NULL,0,NULL,NULL 5775,128405,1186249,NULL,NULL,NULL,0,NULL,NULL 5776,210928,462159,NULL,NULL,NULL,0,NULL,NULL 5777,437112,514575,NULL,NULL,NULL,0,NULL,NULL 5778,86848,732896,Yearling Guru Good Answer Yearling Famous Question Necromancer Yearling Nice Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 5779,776049,1553741,Custodian Yearling Self-Learner Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5780,201763,526074,Notable Question Necromancer Good Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5781,356586,312081,Civic Duty Popular Question Census Caucus Custodian Informed,NULL,NULL,0,NULL,NULL 5782,209518,1149314,NULL,NULL,NULL,0,NULL,NULL 5783,128675,307298,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 5784,117100,301661,Good Answer Yearling Caucus Caucus Reviewer Constituent Documentation User Notable Question Census Caucus Deputy,NULL,NULL,0,NULL,NULL 5785,2395418,596855,Popular Question Caucus Popular Question Yearling Informed Necromancer Notable Question Notable Question Notable Question Nice Answer Popular Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 5786,751983,596855,Popular Question Caucus Popular Question Yearling Informed Necromancer Notable Question Notable Question Notable Question Nice Answer Popular Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 5787,315379,170007,Famous Question Popular Question Census Pundit Popular Question Notable Question,NULL,pIf you just want to remove untracked files do this ppre codegit clean df code prepadd codex code to that if you want to also include specifically ignored files use codegit clean dfx code emlot em throughout the day ppYou can create custom git by just writing script called codegit whatever code and having it in your path Your comment is the real answer which is also repeated later by Lococo,0,NULL,NULL 5788,294501,782457,NULL,NULL,NULL,0,NULL,NULL 5789,1280489,1448356,NULL,NULL,NULL,0,NULL,NULL 5790,36139,639708,Yearling Necromancer Caucus Yearling Caucus Good Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5791,299977,1063802,Critic Necromancer,NULL,NULL,0,NULL,NULL 5792,2351824,942135,Yearling Student Custodian Yearling Scholar,NULL,NULL,0,NULL,NULL 5793,296329,521791,Supporter Teacher Documentation User Necromancer,NULL,NULL,0,NULL,NULL 5794,45499,172068,Guru Yearling Popular Question dokuwiki Popular Question Tenacious Notable Question Revival Yearling Nice Question Promoter Benefactor Peer Pressure Nice Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5795,13034,2250,Excavator Census,NULL,NULL,0,NULL,NULL 5796,7554,186424,Yearling Necromancer Caucus Constituent Caucus Constituent Census Caucus Good Answer,NULL,NULL,0,NULL,NULL 5797,674883,798885,NULL,NULL,NULL,0,NULL,NULL 5798,851869,1068963,NULL,NULL,NULL,0,NULL,NULL 5799,671961,276957,Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 5800,306915,1334437,NULL,NULL,NULL,0,NULL,NULL 5801,913218,845490,Yearling Yearling,NULL,NULL,0,NULL,NULL 5802,166697,1317860,Editor Student Scholar Peer Pressure,NULL,NULL,0,NULL,NULL 5803,1510439,1081497,NULL,NULL,NULL,0,NULL,NULL 5804,36471,802826,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 5805,892070,50552,Notable Question Nice Answer Nice Answer Nice Answer Good Answer database-design Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Necromancer Good Answer Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Popular Question Guru Guru Nice Answer Guru Nice Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened sql-order-by Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer Nice Answer Popular Question Nice Answer Guru Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Good Answer Guru Guru Good Answer Guru Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Popular Question sql-server-2012 transactions Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer sql-server-2005 Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer sql-update Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Notable Question Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Question Guru Guru Guru Great Answer Nice Answer Nice Answer Enlightened string Guru Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Populist Nice Answer Great Answer Nice Answer distinct Nice Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 5806,37611,756679,NULL,NULL,NULL,0,NULL,NULL 5807,12676,368714,Yearling,NULL,NULL,0,NULL,NULL 5808,122773,570217,Yearling Good Answer Custodian Popular Question Popular Question Yearling Notable Question Populist Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 5809,3040,498326,NULL,NULL,NULL,0,NULL,NULL 5810,892075,212013,Custodian Famous Question Yearling Good Question Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5811,61364,980247,Autobiographer Excavator Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 5812,901246,69553,Popular Question Notable Question Nice Question Yearling Critic,NULL,NULL,0,NULL,NULL 5813,3422367,69553,Popular Question Notable Question Nice Question Yearling Critic,NULL,NULL,0,NULL,NULL 5814,110570,1108919,Citizen Patrol Yearling Yearling Nice Answer Custodian Yearling Caucus Caucus Yearling Tumbleweed Popular Question,NULL,h2From CLI h2h3PHP lt h3p code localIP getHostByName php uname code ph3PHP gt h3p code localIP getHostByName getHostName code your etc hosts file is not configured properly You should check the DNS IP resolution with ping HOSTNAME,0,NULL,NULL 5815,167314,218751,NULL,NULL,NULL,0,NULL,NULL 5816,804344,1000223,NULL,NULL,NULL,0,NULL,NULL 5817,5541469,1007433,NULL,NULL,NULL,0,NULL,NULL 5818,52768,1007433,NULL,NULL,NULL,0,NULL,NULL 5819,5134397,1007433,NULL,NULL,NULL,0,NULL,NULL 5820,5481313,1007433,NULL,NULL,NULL,0,NULL,NULL 5821,132917,1272966,Scholar Necromancer Critic Yearling Nice Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 5822,116554,1346480,NULL,NULL,NULL,0,NULL,NULL 5823,42537,526415,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 5824,12674,1279593,NULL,NULL,NULL,0,NULL,NULL 5825,64728,139094,Famous Question,NULL,NULL,0,NULL,NULL 5826,324276,517308,Commentator Census Informed,NULL,NULL,0,NULL,NULL 5827,2273029,1324486,NULL,NULL,NULL,0,NULL,NULL 5828,128789,118536,Scholar Commentator Student Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5829,1470663,857955,NULL,NULL,NULL,0,NULL,NULL 5830,181409,790076,Necromancer,NULL,NULL,0,NULL,NULL 5831,117085,712525,Critic Yearling Autobiographer Popular Question Necromancer Yearling Necromancer Nice Answer Necromancer Popular Question Nice Answer Yearling Organizer Popular Question Good Question,NULL,pHere is technique that can be used to read strongboth strong stdout and stderr concurrently It supposes you can provide buffer where to write the data read from the streams but as you can see it is easily replaceable by call to the logging module simple print statements or callback to do something on the fly or else ppre codeimport geventimport gevent subprocessdef read stream stream buf try while not stream closed stream readline if not break buf write except RuntimeError process was terminated abruptly passp gevent subprocess Popen stdout create buffer with write methodstderr create buffer with write methodgevent spawn read stream stdout stdout gevent spawn read stream stderr stderr status wait code prep strongEdit strong Following the comments by Sebastien implemented full example that demonstrates the concurrent live readout of the output using greenlets don accumulate the output such as proposed above but just prints it for the sake of this example Here it is ppre codeimport geventimport gevent subprocessdef count greenlets See http stackoverflow com 20027162 712525 import gc from greenlet import greenlet greenlets obj for obj in gc get objects if isinstance obj greenlet print At greenlets len greenlets for in greenlets print def read stream stream try while not stream closed stream readline if not break print rstrip except RuntimeError process was terminated abruptly passcount greenlets start p1 gevent subprocess Popen ping www google com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p1 stdout gevent spawn read stream p1 stderr count greenlets after p1 p2 gevent subprocess Popen ping www facebook com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p2 stderr gevent spawn read stream p2 stdout count greenlets after p2 p1 wait count greenlets after p1 wait p2 wait count greenlets after p2 wait count greenlets end code prepIt gives the following output ppre codeAt start greenlets lt greenlet greenlet object at 0x1060d0690 gt At after p1 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt At after p2 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt PING www google com 172 217 19 164 56 data bytes64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 722 msPING star mini c10r facebook com 31 13 91 36 56 data bytes64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 673 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 11 863 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 31 389 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 492 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 921 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 488 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 859 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 053 ms www google com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 11 863 12 724 13 492 547 msAt after p1 wait greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt 64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 379 ms star mini c10r facebook com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 29 673 30 444 31 389 622 msAt after p2 wait greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt At end greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt code pre Both are pertinent questions According to https greenlet readthedocs org en latest garbage collecting live greenlets my interpretation is this should happen transparently upon termination of the greenlet given not keeping trace of them The join calls allows you to synchronise and wait until completion If you don keep track of the greenlets they will be garbage collected once they are completed checked and the same is used inside the code for gevent this works as expected it reads the output live ll post an example code later that demonstrates it pHere is technique that can be used to read strongboth strong stdout and stderr concurrently It supposes you can provide buffer where to write the data read from the streams but as you can see it is easily replaceable by call to the logging module simple print statements or callback to do something on the fly or else ppre codeimport geventimport gevent subprocessdef read stream stream buf try while not stream closed stream readline if not break buf write except RuntimeError process was terminated abruptly passp gevent subprocess Popen stdout create buffer with write methodstderr create buffer with write methodgevent spawn read stream stdout stdout gevent spawn read stream stderr stderr status wait code prep strongEdit strong Following the comments by Sebastien implemented full example that demonstrates the concurrent live readout of the output using greenlets don accumulate the output such as proposed above but just prints it for the sake of this example Here it is ppre codeimport geventimport gevent subprocessdef count greenlets See http stackoverflow com 20027162 712525 import gc from greenlet import greenlet greenlets obj for obj in gc get objects if isinstance obj greenlet print At greenlets len greenlets for in greenlets print def read stream stream try while not stream closed stream readline if not break print rstrip except RuntimeError process was terminated abruptly passcount greenlets start p1 gevent subprocess Popen ping www google com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p1 stdout gevent spawn read stream p1 stderr count greenlets after p1 p2 gevent subprocess Popen ping www facebook com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p2 stderr gevent spawn read stream p2 stdout count greenlets after p2 p1 wait count greenlets after p1 wait p2 wait count greenlets after p2 wait count greenlets end code prepIt gives the following output ppre codeAt start greenlets lt greenlet greenlet object at 0x1060d0690 gt At after p1 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt At after p2 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt PING www google com 172 217 19 164 56 data bytes64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 722 msPING star mini c10r facebook com 31 13 91 36 56 data bytes64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 673 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 11 863 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 31 389 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 492 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 921 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 488 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 859 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 053 ms www google com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 11 863 12 724 13 492 547 msAt after p1 wait greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt 64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 379 ms star mini c10r facebook com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 29 673 30 444 31 389 622 msAt after p2 wait greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt At end greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt code pre Of course Let me check that as soon as back to my computer pHere is technique that can be used to read strongboth strong stdout and stderr concurrently It supposes you can provide buffer where to write the data read from the streams but as you can see it is easily replaceable by call to the logging module simple print statements or callback to do something on the fly or else ppre codeimport geventimport gevent subprocessdef read stream stream buf try while not stream closed stream readline if not break buf write except RuntimeError process was terminated abruptly passp gevent subprocess Popen stdout create buffer with write methodstderr create buffer with write methodgevent spawn read stream stdout stdout gevent spawn read stream stderr stderr status wait code prep strongEdit strong Following the comments by Sebastien implemented full example that demonstrates the concurrent live readout of the output using greenlets don accumulate the output such as proposed above but just prints it for the sake of this example Here it is ppre codeimport geventimport gevent subprocessdef count greenlets See http stackoverflow com 20027162 712525 import gc from greenlet import greenlet greenlets obj for obj in gc get objects if isinstance obj greenlet print At greenlets len greenlets for in greenlets print def read stream stream try while not stream closed stream readline if not break print rstrip except RuntimeError process was terminated abruptly passcount greenlets start p1 gevent subprocess Popen ping www google com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p1 stdout gevent spawn read stream p1 stderr count greenlets after p1 p2 gevent subprocess Popen ping www facebook com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p2 stderr gevent spawn read stream p2 stdout count greenlets after p2 p1 wait count greenlets after p1 wait p2 wait count greenlets after p2 wait count greenlets end code prepIt gives the following output ppre codeAt start greenlets lt greenlet greenlet object at 0x1060d0690 gt At after p1 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt At after p2 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt PING www google com 172 217 19 164 56 data bytes64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 722 msPING star mini c10r facebook com 31 13 91 36 56 data bytes64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 673 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 11 863 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 31 389 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 492 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 921 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 488 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 859 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 053 ms www google com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 11 863 12 724 13 492 547 msAt after p1 wait greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt 64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 379 ms star mini c10r facebook com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 29 673 30 444 31 389 622 msAt after p2 wait greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt At end greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt code pre There you are have now updated the example and it should work OK Please let me know otherwise,1,NULL,Get live stdout from gevent subprocess python subprocess stdout gevent pI trying to get the stdout of process via POPEN as soon as it there With gevent readline and read still block process and wait for process to finish Any clues And yes searched high and low for simple solution It has to be possible without threading right pHere is technique that can be used to read strongboth strong stdout and stderr concurrently It supposes you can provide buffer where to write the data read from the streams but as you can see it is easily replaceable by call to the logging module simple print statements or callback to do something on the fly or else ppre codeimport geventimport gevent subprocessdef read stream stream buf try while not stream closed stream readline if not break buf write except RuntimeError process was terminated abruptly passp gevent subprocess Popen stdout create buffer with write methodstderr create buffer with write methodgevent spawn read stream stdout stdout gevent spawn read stream stderr stderr status wait code prep strongEdit strong Following the comments by Sebastien implemented full example that demonstrates the concurrent live readout of the output using greenlets don accumulate the output such as proposed above but just prints it for the sake of this example Here it is ppre codeimport geventimport gevent subprocessdef count greenlets See http stackoverflow com 20027162 712525 import gc from greenlet import greenlet greenlets obj for obj in gc get objects if isinstance obj greenlet print At greenlets len greenlets for in greenlets print def read stream stream try while not stream closed stream readline if not break print rstrip except RuntimeError process was terminated abruptly passcount greenlets start p1 gevent subprocess Popen ping www google com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p1 stdout gevent spawn read stream p1 stderr count greenlets after p1 p2 gevent subprocess Popen ping www facebook com stdout gevent subprocess PIPE stderr gevent subprocess PIPE shell True gevent spawn read stream p2 stderr gevent spawn read stream p2 stdout count greenlets after p2 p1 wait count greenlets after p1 wait p2 wait count greenlets after p2 wait count greenlets end code prepIt gives the following output ppre codeAt start greenlets lt greenlet greenlet object at 0x1060d0690 gt At after p1 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt At after p2 greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b0f0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b190 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt PING www google com 172 217 19 164 56 data bytes64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 722 msPING star mini c10r facebook com 31 13 91 36 56 data bytes64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 673 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 11 863 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 31 389 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 492 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 29 921 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 12 488 ms64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 859 ms64 bytes from 172 217 19 164 icmp seq ttl 56 time 13 053 ms www google com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 11 863 12 724 13 492 547 msAt after p1 wait greenlets lt Hub at 0x106300f50 select default pending gt lt Greenlet at 0x10646b230 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt Greenlet at 0x10646b2d0 read stream lt gevent fileobjectposix FileObjectPosix object at gt lt greenlet greenlet object at 0x1060d0690 gt 64 bytes from 31 13 91 36 icmp seq ttl 87 time 30 379 ms star mini c10r facebook com ping statistics packets transmitted packets received packet lossround trip min avg max stddev 29 673 30 444 31 389 622 msAt after p2 wait greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt At end greenlets lt Hub at 0x106300f50 select default pending gt lt greenlet greenlet object at 0x1060d0690 gt code pre 5832,50279,264545,NULL,NULL,NULL,0,NULL,NULL 5833,151619,313063,Nice Answer Good Answer Popular Question Famous Question Nice Answer Nice Answer Nice Answer Yearling Popular Question Great Answer Notable Question Good Answer Nice Answer Nice Answer Necromancer Nice Answer Good Answer Guru Nice Answer Good Question Nice Answer Guru Great Answer Yearling Notable Question Popular Question Announcer Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Announcer Popular Question Guru Announcer Notable Question Popular Question Great Answer Announcer Announcer Popular Question Nice Answer Guru Good Answer Yearling Good Answer Popular Question Popular Question Nice Answer Enlightened Notable Question,NULL,pYou can use the href https www python org dev peps pep 0508 environment markers rel noreferrer environment markers to achieve this in coderequirements txt code since codepip code ppre codeSomeProject python version lt SomeProject sys platform win32 code prepIt is supported by setuptools too by declaring extra requirements in codesetup py code ppre codesetup install requires six humanize extras require python version ipaddress code prepSee also href http pip readthedocs org en stable reference pip install requirement specifiers rel noreferrer requirement specifiers Nice How can do the same with sys platform win32 tried using sys platform win32 but get an Invalid environment marker error from the setup function,0,NULL,NULL 5834,284319,562791,Popular Question Critic Citizen Patrol Notable Question Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 5835,235578,190210,Notable Question,NULL,NULL,0,NULL,NULL 5836,21886,1511346,NULL,NULL,NULL,0,NULL,NULL 5837,5746324,803371,NULL,NULL,NULL,0,NULL,NULL 5838,1040,803371,NULL,NULL,NULL,0,NULL,NULL 5839,512398,495301,Yearling Famous Question,NULL,NULL,0,NULL,NULL 5840,1364352,105398,Popular Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 5841,470470,131776,Popular Question,NULL,NULL,0,NULL,NULL 5842,1531025,327355,NULL,NULL,NULL,0,NULL,NULL 5843,500491,327355,NULL,NULL,NULL,0,NULL,NULL 5844,24849,575601,NULL,NULL,NULL,0,NULL,NULL 5845,859102,985686,Yearling Good Answer Nice Answer Announcer Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 5846,382246,216224,NULL,NULL,NULL,0,NULL,NULL 5847,49771,505567,Yearling,NULL,NULL,0,NULL,NULL 5848,496786,632523,NULL,NULL,NULL,0,NULL,NULL 5849,708226,624687,Popular Question,NULL,NULL,0,NULL,NULL 5850,50332,478264,NULL,NULL,NULL,0,NULL,NULL 5851,395986,95019,Critic,NULL,NULL,0,NULL,NULL 5852,265851,667004,NULL,NULL,NULL,0,NULL,NULL 5853,725487,213542,Informed Autobiographer,NULL,NULL,0,NULL,NULL 5854,2169434,604048,Yearling Revival Announcer Good Answer Popular Question Caucus Popular Question Yearling Popular Question Notable Question Organizer Custodian Cleanup Announcer Nice Answer Notable Question Necromancer Nice Answer Enlightened Census Yearling Self-Learner Popular Question Nice Answer Popular Question Nice Question Notable Question Popular Question Necromancer Explainer Necromancer python Popular Question Nice Answer Custodian Announcer Good Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 5855,37843,1091415,NULL,NULL,NULL,0,NULL,NULL 5856,18534,524329,Revival,NULL,NULL,0,NULL,NULL 5857,1488961,407011,Notable Question Yearling Famous Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 5858,97921,1432689,NULL,NULL,NULL,0,NULL,NULL 5859,640177,214549,Informed,NULL,NULL,0,NULL,NULL 5860,2047002,1484750,Good Answer Yearling Nice Answer Nice Answer Caucus Constituent Nice Answer Enlightened Census Nice Answer Yearling Caucus Constituent Good Answer Census Caucus Constituent c# Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 5861,1402498,960874,NULL,NULL,NULL,0,NULL,NULL 5862,219744,976531,Revival Supporter Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 5863,180755,98057,Popular Question Necromancer Tag Editor Strunk & White Good Answer Yearling Revival Popular Question Populist Nice Answer Good Question Notable Question Announcer Good Answer Popular Question Nice Answer Guru Yearling Nice Answer Famous Question Nice Answer Nice Question Documentation User Nice Answer Announcer Census Notable Question Nice Answer Yearling Necromancer Guru Nice Question Announcer Announcer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 5864,307035,1183386,Student Teacher,NULL,NULL,0,NULL,NULL 5865,592939,174953,Necromancer,NULL,NULL,0,NULL,NULL 5866,117872,396133,Nice Answer Notable Question Famous Question Nice Question Yearling Popular Question Nice Question Announcer Famous Question Yearling Popular Question Booster Famous Question Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 5867,5809,731672,Yearling Tumbleweed Enthusiast Editor Yearling Yearling Student Scholar Promoter Benefactor,NULL,NULL,0,NULL,NULL 5868,177361,633211,NULL,NULL,NULL,0,NULL,NULL 5869,342507,449289,NULL,NULL,NULL,0,NULL,NULL 5870,49598,104099,Nice Question Nice Answer Notable Question Notable Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 5871,17409,571554,Popular Question,NULL,NULL,0,NULL,NULL 5872,895720,720538,NULL,NULL,NULL,0,NULL,NULL 5873,33901,667206,Popular Question Yearling Famous Question Yearling Popular Question Revival Popular Question Good Answer Yearling Favorite Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 5874,1038787,554491,Popular Question Popular Question Yearling Popular Question Inquisitive Notable Question Popular Question Census Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Cleanup Custodian Organizer Self-Learner Notable Question Notable Question Custodian Custodian Revival Yearling Popular Question Custodian Nice Question Notable Question Popular Question Notable Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 5875,253920,1016428,Scholar Commentator Caucus Revival Editor Critic,NULL,NULL,0,NULL,NULL 5876,493992,986287,Necromancer Yearling Nice Answer Yearling Good Answer Yearling Guru Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 5877,101001,568429,NULL,NULL,NULL,0,NULL,NULL 5878,3938076,568429,NULL,NULL,NULL,0,NULL,NULL 5879,1504355,142409,NULL,NULL,NULL,0,NULL,NULL 5880,123402,646977,NULL,NULL,NULL,0,NULL,NULL 5881,1348407,991854,NULL,NULL,NULL,0,NULL,NULL 5882,165073,1460913,Informed Student Autobiographer,NULL,NULL,0,NULL,NULL 5883,1828981,1335861,NULL,NULL,NULL,0,NULL,NULL 5884,359038,959066,Popular Question,NULL,NULL,0,NULL,NULL 5885,52574,333262,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 5886,925494,1061557,Custodian Tumbleweed,NULL,NULL,0,NULL,NULL 5887,64620,732346,NULL,NULL,NULL,0,NULL,NULL 5888,215809,544685,Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 5889,194855,390534,Necromancer Yearling Caucus Good Answer Necromancer Necromancer Yearling Caucus Nice Answer ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 5890,120504,507297,Popular Question Teacher,NULL,NULL,0,NULL,NULL 5891,161893,319622,Notable Question Good Question,NULL,NULL,0,NULL,NULL 5892,817806,69178,Yearling Guru Self-Learner Popular Question Guru Yearling Notable Question Guru Yearling Famous Question,NULL,NULL,0,NULL,NULL 5893,147384,92712,Necromancer,NULL,NULL,0,NULL,NULL 5894,219648,36131,Nice Question Favorite Question Nice Answer Famous Question Good Question Yearling Good Question Great Question Nice Question Famous Question Popular Question Nice Question Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 5895,2051972,835393,NULL,NULL,NULL,0,NULL,NULL 5896,1149360,595413,NULL,NULL,NULL,0,NULL,NULL 5897,108671,480491,Necromancer Editor Student Scholar,NULL,NULL,0,NULL,NULL 5898,83415,482317,Explainer Popular Question Nice Answer Nice Answer Curious Promoter Nice Question Yearling Census Notable Question Good Answer Investor Yearling Popular Question Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 5899,242024,771036,Yearling,NULL,NULL,0,NULL,NULL 5900,119078,298999,NULL,NULL,NULL,0,NULL,NULL 5901,259462,1170465,Curious Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 5902,519334,1103996,NULL,NULL,NULL,0,NULL,NULL 5903,252151,126903,NULL,NULL,NULL,0,NULL,NULL 5904,1321113,388059,Notable Question,NULL,NULL,0,NULL,NULL 5905,232535,388059,Notable Question,NULL,NULL,0,NULL,NULL 5906,261713,1094189,NULL,NULL,NULL,0,NULL,NULL 5907,45607,263001,NULL,NULL,NULL,0,NULL,NULL 5908,609291,483979,NULL,NULL,NULL,0,NULL,NULL 5909,336686,949017,NULL,NULL,NULL,0,NULL,NULL 5910,332492,909393,Yearling Famous Question Caucus Constituent Necromancer Popular Question Great Answer Caucus Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 5911,243091,1066733,NULL,NULL,NULL,0,NULL,NULL 5912,1347320,1056493,Popular Question Revival Notable Question Famous Question Caucus Popular Question Popular Question Announcer Critic Custodian,NULL,NULL,0,NULL,NULL 5913,1566010,1277242,NULL,NULL,NULL,0,NULL,NULL 5914,231526,1158146,Editor Revival Revival Organizer,NULL,NULL,0,NULL,NULL 5915,666755,134174,Yearling,NULL,NULL,0,NULL,NULL 5916,1207488,643066,Peer Pressure Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 5917,34419,817243,NULL,NULL,NULL,0,NULL,NULL 5918,231172,1040509,Supporter Notable Question,NULL,NULL,0,NULL,NULL 5919,733092,607175,NULL,NULL,NULL,0,NULL,NULL 5920,644816,607175,NULL,NULL,NULL,0,NULL,NULL 5921,14657,1014139,NULL,NULL,NULL,0,NULL,NULL 5922,478101,135160,ios objective-c Yearling Nice Answer Caucus Popular Question Announcer Yearling Great Answer Nice Answer Revival Yearling Announcer Necromancer Revival Popular Question,NULL,NULL,0,NULL,NULL 5923,186662,1091457,Editor Yearling Necromancer,NULL,NULL,0,NULL,NULL 5924,258251,193710,NULL,NULL,NULL,0,NULL,NULL 5925,130791,395341,Organizer Good Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 5926,190036,255275,Necromancer Caucus,NULL,NULL,0,NULL,NULL 5927,1117329,435380,Critic Notable Question,NULL,NULL,0,NULL,NULL 5928,478195,1078924,NULL,NULL,NULL,0,NULL,NULL 5929,883076,353526,Nice Answer Enlightened Yearling Guru Yearling Good Answer Curious Yearling Nice Answer Enlightened Self-Learner,NULL,NULL,0,NULL,NULL 5930,1515268,1343829,NULL,NULL,NULL,0,NULL,NULL 5931,1503920,713751,Teacher Popular Question,NULL,NULL,0,NULL,NULL 5932,174677,778582,NULL,NULL,NULL,0,NULL,NULL 5933,9554628,778582,NULL,NULL,NULL,0,NULL,NULL 5934,290631,250098,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 5935,356679,992020,NULL,NULL,NULL,0,NULL,NULL 5936,1021368,1067803,Informed Tumbleweed,NULL,NULL,0,NULL,NULL 5937,5931,630877,Yearling Good Answer Self-Learner Promoter Benefactor Guru django-models Nice Answer Enlightened Announcer Nice Answer Enlightened Caucus Nice Answer Enlightened Popular Question Announcer Yearling Nice Answer Enlightened Nice Answer python django Popular Question Nice Answer Caucus Good Answer Notable Question Nice Answer Enlightened Nice Answer Good Answer Nice Question Notable Question Good Answer Enlightened Yearling Announcer Caucus Nice Answer Good Answer Nice Answer Nice Answer Enlightened Announcer Announcer Booster,NULL,NULL,0,NULL,NULL 5938,257315,483478,NULL,NULL,NULL,0,NULL,NULL 5939,120481,135797,Notable Question Good Question Yearling Notable Question Self-Learner Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 5940,100959,145914,NULL,NULL,NULL,0,NULL,NULL 5941,12741,57084,Popular Question Census,NULL,NULL,0,NULL,NULL 5942,172170,949028,Yearling Good Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 5943,434669,1534315,NULL,NULL,NULL,0,NULL,NULL 5944,10480,245706,Nice Answer Yearling Necromancer Notable Question Nice Question Notable Question Nice Question Nice Question Notable Question Popular Question Necromancer Guru Famous Question Guru Nice Answer Nice Answer Notable Question Good Question Good Answer Nice Question Guru Necromancer Notable Question Necromancer Notable Question Good Answer Nice Answer Caucus Constituent Yearling Guru Notable Question Famous Question Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Famous Question Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened Notable Question Popular Question Nice Question Notable Question Good Answer Documentation User Good Answer Nice Answer Enlightened Yearling Favorite Question Good Answer Notable Question Nice Answer Famous Question Popular Question Guru Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Popular Question Famous Question,NULL,pIn the standard library there is no cross platform way to create aware timezones without creating your own timezone class ppOn Windows there codewin32timezone utcnow code but that part of pywin32 would rather suggest to use the href http pytz sourceforge net rel noreferrer pytz library which has constantly updated database of most timezones ppWorking with local timezones can be very tricky see Further reading links below so you may rather want to use UTC throughout your application especially for arithmetic operations like calculating the difference between two time points ppYou can get the current date time like so ppre codeimport pytzfrom datetime import datetimedatetime utcnow replace tzinfo pytz utc code prepMind that codedatetime today code and codedatetime now code return the emlocal em time not the UTC time so applying code replace tzinfo pytz utc code to them would not be correct ppAnother nice way to do it is ppre codedatetime now pytz utc code prepwhich is bit shorter and does the same phrpFurther reading watching why to prefer UTC in many cases pulli href https pythonhosted org pytz rel noreferrer pytz documentation lili href http web archive org web 20160803154621 http www windward net blogs every developer know time rel noreferrer What Every Developer Should Know About Time development hints for many real life use cases lili href https www youtube com watch 5wpm gesOY rel noreferrer The Problem with Time amp Timezones Computerphile funny eye opening explanation about the complexity of working with timezones video li ul ve replaced the whole block added and redacted over again because it contains invalid Python prompt syntax non repeatable input values now and you only describe one case of where timezone aware vs UTC matters while there are too many existing sources on the Internet to which we could refer for great explanations of the whole context and more problem cases Ultimately OP only asked how to create timezone aware datetime object so short hint link is preferred instead of having 60 of the answer dedicated to another problem pIn the standard library there is no cross platform way to create aware timezones without creating your own timezone class ppOn Windows there codewin32timezone utcnow code but that part of pywin32 would rather suggest to use the href http pytz sourceforge net rel noreferrer pytz library which has constantly updated database of most timezones ppWorking with local timezones can be very tricky see Further reading links below so you may rather want to use UTC throughout your application especially for arithmetic operations like calculating the difference between two time points ppYou can get the current date time like so ppre codeimport pytzfrom datetime import datetimedatetime utcnow replace tzinfo pytz utc code prepMind that codedatetime today code and codedatetime now code return the emlocal em time not the UTC time so applying code replace tzinfo pytz utc code to them would not be correct ppAnother nice way to do it is ppre codedatetime now pytz utc code prepwhich is bit shorter and does the same phrpFurther reading watching why to prefer UTC in many cases pulli href https pythonhosted org pytz rel noreferrer pytz documentation lili href http web archive org web 20160803154621 http www windward net blogs every developer know time rel noreferrer What Every Developer Should Know About Time development hints for many real life use cases lili href https www youtube com watch 5wpm gesOY rel noreferrer The Problem with Time amp Timezones Computerphile funny eye opening explanation about the complexity of working with timezones video li ul thanks for the heads up Since your proposed blog article only partially matches the content ve replaced it with web archive link pA method is function that takes class instance as its first parameter Methods are members of classes ppre codeclass def method self possibly other arguments pass do something here code prepAs you wanted to know what it specifically means in Python one can distinguish between bound and unbound methods In Python all functions and as such also methods are objects which can be passed around and played with So the difference between unbound and bound methods is pp1 Bound methods ppre code Create an instance of and call method instance print instance method prints lt bound method method of lt main instance at 0x00FC50F8 gt gt instance method normal method callf instance methodf method call without using the variable instance explicitly code prepBound methods are methods that belong to instances of class In this example codeinstance method code is bound to the instance called codeinstance code Everytime that bound method is called the instance is passed as first parameter automagically which is called codeself code by convention pp2 Unbound methods ppre codeprint method prints lt unbound method method gt instance method instance this call is the same as methodf instance this one instance method and the same as calling the bound method as you would usually do code prepWhen you access codeC method code the method inside class instead of inside an instance you get an unbound method If you want to call it you have to pass the instance as first parameter because the method is emnot em bound to any instance ppKnowing that difference you can make use of functions methods as objects like passing methods around As an example use case imagine an API that lets you define callback function but you want to provide method as callback function No problem just pass codeself myCallbackMethod code as the callback and it will automatically be called with the instance as first argument This wouldn be possible in static languages like or only with trickery ppHope you got the point think that is all you should know about method basics You could also read more about the codeclassmethod code and codestaticmethod code decorators but that another topic It not very unusual Uniform function call syntax https en wikipedia org wiki Uniform Function Call Syntax was proposed implemented in quite few languages already,0,NULL,NULL 5945,9005,421749,Nice Answer Popular Question Yearling Great Question Notable Question Yearling Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 5946,1725235,958954,Civic Duty Yearling Nice Answer Enlightened Good Answer Revival Nice Answer Yearling Revival Custodian Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 5947,3373135,235170,Notable Question Yearling Informed Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 5948,210206,235170,Notable Question Yearling Informed Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 5949,193631,190585,NULL,NULL,NULL,0,NULL,NULL 5950,593222,260104,Good Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 5951,600853,1154528,NULL,NULL,NULL,0,NULL,NULL 5952,124590,218514,Good Question,NULL,NULL,0,NULL,NULL 5953,32506,119081,Great Answer Guru Nice Question Notable Question Popular Question Popular Question Good Answer Favorite Question Nice Answer Famous Question Yearling Notable Question Guru Famous Question Popular Question Good Answer Popular Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Guru Good Answer Favorite Question Yearling Nice Answer Guru Good Answer Good Question Notable Question Popular Question Famous Question Nice Question Documentation User Good Answer Notable Question mysql Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Popular Question,NULL,pYou can get the query string in codelocation search code then you can split everything after the question mark ppre codevar params if location search var parts location search substring split amp for var lt parts length var nv parts split if nv continue params nv nv true Now you can get the parameters you want like so var abc params abc code pre There is no clear right or wrong here First of all repeated fields with the same names have no specified standard behavior and is up to the parser to handle Additionally the pattern only has meaning in some cases PHP but not others So not clearly wrong just not implemented to handle non standard case that you may or may not need to handle pYou can use href http php net reset rel noreferrer codereset code and href http php net key rel noreferrer codekey code ppre codereset array first key key array code prepIt essentially the same as your initial code but with little less overhead and it more obvious what is happening ppJust remember to call codereset code or you may get any of the keys in the array You can also use href http php net end rel noreferrer codeend code instead of codereset code to get the last key ppIf you wanted the key to get the first value codereset code actually returns it ppre code first value reset array code prepThere is one special case to watch out for though so check the length of the array first ppre code arr1 array false arr2 array var dump reset arr1 reset arr2 bool true code pre reset mutates the array internal key pointer but not the values or keys themselves,0,NULL,NULL 5954,36569,1188913,Announcer Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 5955,119794,1188913,Announcer Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 5956,20270,637343,NULL,NULL,NULL,0,NULL,NULL 5957,52001,721848,NULL,NULL,NULL,0,NULL,NULL 5958,197637,803791,NULL,NULL,NULL,0,NULL,NULL 5959,20508,500592,NULL,NULL,NULL,0,NULL,NULL 5960,259857,586863,NULL,NULL,NULL,0,NULL,NULL 5961,158987,691001,Nice Answer,NULL,NULL,0,NULL,NULL 5962,270339,1405908,NULL,NULL,NULL,0,NULL,NULL 5963,457910,152439,Announcer Good Question Popular Question Good Question Famous Question Popular Question Notable Question Yearling Famous Question Popular Question Announcer Notable Question Popular Question Good Question Famous Question Nice Question Favorite Question Popular Question Famous Question Self-Learner Notable Question Famous Question Yearling Famous Question Nice Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Yearling Good Question Nice Question Notable Question Nice Question,NULL,pI ve always kept this around in util file You can use it as mixin on your own classes too ppre codeclass dotdict dict dot notation access to dictionary attributes getattr dict get setattr dict setitem delattr dict delitem mydict val it works nested dict val nested works too mydict dotdict mydict mydict val it works mydict nested dotdict nested dict mydict nested val nested works too code pre Very simple answer great Do you happen to know what would need to to in order to have tab completion in IPython work The class would need to implement dir self but somehow cannot get it to work,0,NULL,NULL 5964,128914,219001,NULL,NULL,NULL,0,NULL,NULL 5965,310073,877377,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 5966,662648,877377,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 5967,87126,741247,Good Answer,NULL,NULL,0,NULL,NULL 5968,128715,424006,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 5969,385739,1236748,NULL,NULL,NULL,0,NULL,NULL 5970,706106,756885,NULL,NULL,NULL,0,NULL,NULL 5971,68130,54710,Civic Duty Yearling,NULL,pre codeDIR cd dirname BASH SOURCE gt dev null amp amp pwd code prepis useful one liner which will give you the full directory name of the script no matter where it is being called from ppIt will work as long as the last component of the path used to find the script is not symlink directory links are OK If you also want to resolve any links to the script itself you need multi line solution ppre codeSOURCE BASH SOURCE while SOURCE do resolve SOURCE until the file is no longer symlink DIR cd dirname SOURCE gt dev null amp amp pwd SOURCE readlink SOURCE SOURCE amp amp SOURCE DIR SOURCE if SOURCE was relative symlink we need to resolve it relative to the path where the symlink file was locateddoneDIR cd dirname SOURCE gt dev null amp amp pwd code prepThis last one will work with any combination of aliases codesource code codebash code symlinks etc ppBeware if you codecd code to different directory before running this snippet the result may be incorrect Also watch out for href http bosker wordpress com 2012 02 12 bash scripters beware of the cdpath rel noreferrer code CDPATH code gotchas ppTo understand how it works try running this more verbose form ppre code bin bashSOURCE BASH SOURCE while SOURCE do resolve SOURCE until the file is no longer symlink TARGET readlink SOURCE if TARGET then echo SOURCE SOURCE is an absolute symlink to TARGET SOURCE TARGET else DIR dirname SOURCE echo SOURCE SOURCE is relative symlink to TARGET relative to DIR SOURCE DIR TARGET if SOURCE was relative symlink we need to resolve it relative to the path where the symlink file was located fidoneecho SOURCE is SOURCE RDIR dirname SOURCE DIR cd dirname SOURCE amp amp pwd if DIR RDIR then echo DIR RDIR resolves to DIR fiecho DIR is DIR code prepAnd it will print something like ppre class lang none prettyprint override codeSOURCE scriptdir sh is relative symlink to sym2 scriptdir sh relative to SOURCE is sym2 scriptdir sh DIR sym2 resolves to home ubuntu dotfiles fo fo real real1 real2 DIR is home ubuntu dotfiles fo fo real real1 real2 code pre The oneliner assumes cd is silent If not you will end up with garbage Better DIR cd dirname BASH SOURCE dev null pwd,0,NULL,NULL 5972,122042,751143,NULL,NULL,NULL,0,NULL,NULL 5973,18143,475587,NULL,NULL,NULL,0,NULL,NULL 5974,10025129,643764,NULL,NULL,NULL,0,NULL,NULL 5975,541753,643764,NULL,NULL,NULL,0,NULL,NULL 5976,52279,25319,Popular Question Nice Answer Notable Question Nice Answer Yearling Nice Answer Enlightened Famous Question Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Popular Question Announcer Great Question Yearling,NULL,pI haven had the time to test it myself but the following code should work for all codeEnum code types ppre codepublic class JsonConvertEnum JavaScriptPrimitiveConverter public override IEnumerable lt Type gt SupportedTypes get yield return typeof Enum public override object Deserialize object primitiveValue Type type JavaScriptSerializer serializer if type IsEnum return null return Enum Parse type string primitiveValue public override object Serialize object obj JavaScriptSerializer serializer if obj GetType IsEnum return null return obj ToString code prepBasically it uses the codeType code metadata to determine if it is an codeEnum code or not and then makes use of codeEnum Parse code to convert it from the primitive value back to the correct enum To convert from codeEnum code to codestring code all you have to do is to cast the value to codestring code ppIt can be made more terse by using the ternary operator but left the more verbose version for clarity ppHope this helps Glad could help,1,NULL,Tell Nancy to serialize enums into strings nancy pNancy by default serialize enums into integers when generating JSON response need to serialize enums into strings ppThere is way to customize Nancy JSON serialization by creating href https github com NancyFx Nancy wiki Extending Serialization with Converters rel nofollow JavaScriptPrimitiveConverter For example this is what did to customize serialization for ONE enum ppCreate the customization class ppre codepublic class JsonConvertEnum JavaScriptPrimitiveConverter public override IEnumerable lt Type gt SupportedTypes get yield return typeof MyFirstEnum public override object Deserialize object primitiveValue Type type JavaScriptSerializer serializer if type typeof MyFirstEnum var serialized string primitiveValue MyFirstEnum deserialized if Enum TryParse serialized out deserialized return deserialized else return null return null public override object Serialize object obj JavaScriptSerializer serializer if obj is MyFirstEnum var deserialized MyFirstEnum obj var serialized deserialized ToString return serialized return null code prepRegister it during bootstrap ppre codeprotected override void ApplicationStartup Nancy TinyIoc TinyIoCContainer container Nancy Bootstrapper IPipelines pipelines base ApplicationStartup container pipelines Nancy Json JsonSettings PrimitiveConverters Add new JsonConvertEnum code prepI need to do this for ALL of my enums ppIs there simpler way pI haven had the time to test it myself but the following code should work for all codeEnum code types ppre codepublic class JsonConvertEnum JavaScriptPrimitiveConverter public override IEnumerable lt Type gt SupportedTypes get yield return typeof Enum public override object Deserialize object primitiveValue Type type JavaScriptSerializer serializer if type IsEnum return null return Enum Parse type string primitiveValue public override object Serialize object obj JavaScriptSerializer serializer if obj GetType IsEnum return null return obj ToString code prepBasically it uses the codeType code metadata to determine if it is an codeEnum code or not and then makes use of codeEnum Parse code to convert it from the primitive value back to the correct enum To convert from codeEnum code to codestring code all you have to do is to cast the value to codestring code ppIt can be made more terse by using the ternary operator but left the more verbose version for clarity ppHope this helps 5977,426210,645779,NULL,NULL,NULL,0,NULL,NULL 5978,103510,611495,NULL,NULL,NULL,0,NULL,NULL 5979,374811,75382,Yearling Yearling Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 5980,235122,75382,Yearling Yearling Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 5981,17813,24595,Yearling,NULL,NULL,0,NULL,NULL 5982,616707,91109,NULL,NULL,NULL,0,NULL,NULL 5983,2255400,1040529,NULL,NULL,NULL,0,NULL,NULL 5984,206680,180965,NULL,NULL,NULL,0,NULL,NULL 5985,4449,181823,Caucus,NULL,NULL,0,NULL,NULL 5986,1876222,1396744,Popular Question,NULL,NULL,0,NULL,NULL 5987,2185351,1027729,Popular Question,NULL,NULL,0,NULL,NULL 5988,436807,1262467,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 5989,49434,1074467,NULL,NULL,NULL,0,NULL,NULL 5990,347530,164277,Nice Answer Yearling Nice Answer Enlightened Great Answer Revival Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 5991,194721,440032,Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Nice Answer Enlightened Nice Answer Notable Question Nice Question Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 5992,124423,954592,NULL,NULL,NULL,0,NULL,NULL 5993,44361,1247540,Popular Question,NULL,NULL,0,NULL,NULL 5994,156567,974677,Informed,NULL,NULL,0,NULL,NULL 5995,238137,545989,NULL,NULL,NULL,0,NULL,NULL 5996,898861,280064,NULL,NULL,NULL,0,NULL,NULL 5997,203619,402418,NULL,NULL,NULL,0,NULL,NULL 5998,596557,578994,Notable Question,NULL,NULL,0,NULL,NULL 5999,312719,1366131,NULL,NULL,NULL,0,NULL,NULL 6000,1173091,1503994,jquery javascript Enthusiast Electorate Custodian Custodian Yearling Nice Answer Enlightened html Guru Self-Learner Caucus Reviewer Constituent Nice Answer Enlightened Reviewer Popular Question Guru Good Answer Pundit Notable Question Yearling Nice Answer Caucus Nice Answer Documentation User Census Nice Question Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 6001,127696,457375,Great Answer Nice Answer Yearling Booster Necromancer Custodian Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 6002,1186044,1447332,Nice Answer Yearling Custodian Necromancer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 6003,462211,1447332,Nice Answer Yearling Custodian Necromancer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 6004,561113,434557,Yearling,NULL,NULL,0,NULL,NULL 6005,18039,405156,NULL,NULL,NULL,0,NULL,NULL 6006,1310631,1348755,NULL,NULL,NULL,0,NULL,NULL 6007,450976,468820,Necromancer Famous Question Popular Question Yearling Caucus Necromancer Necromancer Quorum Necromancer Custodian Nice Answer Caucus Constituent Nice Answer Yearling Census Nice Answer Popular Question Good Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 6008,51910,360758,Nice Question Notable Question Notable Question Notable Question Custodian Famous Question Notable Question Yearling Notable Question Custodian Guru Good Question Caucus Popular Question Custodian Notable Question Favorite Question Yearling Notable Question Notable Question Notable Question Nice Question Yearling Favorite Question Famous Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 6009,352680,1251677,Necromancer Caucus Notable Question Critic Commentator Curious Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6010,41414,204814,Curious Announcer Custodian Popular Question,NULL,NULL,0,NULL,NULL 6011,931009,983661,Informed Notable Question Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 6012,3055686,857262,NULL,NULL,NULL,0,NULL,NULL 6013,2050,465684,Commentator Revival Nice Answer Yearling Announcer Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 6014,1365784,395166,Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6015,217521,664618,Notable Question Critic,NULL,NULL,0,NULL,NULL 6016,1731894,981913,Yearling Nice Answer Enlightened Yearling Tumbleweed Citizen Patrol Custodian Good Answer Yearling Custodian Custodian Nice Answer Yearling Caucus Announcer Guru,NULL,NULL,0,NULL,NULL 6017,3180,260011,Yearling,NULL,NULL,0,NULL,NULL 6018,1385,261251,Popular Question Yearling Famous Question Good Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6019,7964988,1433297,NULL,NULL,NULL,0,NULL,NULL 6020,135989,278843,Popular Question Yearling Inquisitive Notable Question Yearling Nice Question Nice Answer Enlightened Popular Question Nice Answer Good Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6021,390050,1282859,Informed,NULL,NULL,0,NULL,NULL 6022,4003,904141,Necromancer Caucus,NULL,NULL,0,NULL,NULL 6023,3499027,1263963,NULL,NULL,NULL,0,NULL,NULL 6024,150764,1263963,NULL,NULL,NULL,0,NULL,NULL 6025,25121,348571,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 6026,89919,1138890,NULL,NULL,NULL,0,NULL,NULL 6027,46988,78949,Popular Question Nice Answer Yearling Notable Question Good Answer Famous Question Notable Question Popular Question Nice Answer Enlightened Yearling Popular Question Popular Question Good Question Nice Answer Enlightened Yearling Notable Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 6028,508005,1072114,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6029,81432,265899,Yearling Editor Notable Question Great Question Notable Question Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 6030,52432,1535195,NULL,NULL,NULL,0,NULL,NULL 6031,151361,956869,Popular Question,NULL,NULL,0,NULL,NULL 6032,186093,496019,NULL,NULL,NULL,0,NULL,NULL 6033,228403,1387563,Popular Question Commentator Popular Question Curious Custodian Announcer Notable Question Popular Question Notable Question Teacher Yearling Famous Question Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6034,165309,1093407,NULL,NULL,NULL,0,NULL,NULL 6035,296831,1091944,NULL,NULL,NULL,0,NULL,NULL 6036,131188,105350,Nice Answer Enlightened Yearling Favorite Question Popular Question Notable Question Good Answer Popular Question Popular Question Yearling Notable Question Notable Question Nice Answer Nice Answer Enlightened Good Answer Yearling Announcer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 6037,12549,765780,NULL,NULL,NULL,0,NULL,NULL 6038,272010,1259758,NULL,NULL,NULL,0,NULL,NULL 6039,296901,1562350,Enthusiast Informed Commentator Autobiographer Curious Promoter Teacher Self-Learner Caucus Constituent Critic Yearling Nice Answer Yearling Popular Question Popular Question,NULL,pIn case you are using Cocoapods try this solution fixed the problem for me pp href https github com CocoaPods CocoaPods issues 7606 issuecomment 381279098 rel noreferrer https github com CocoaPods CocoaPods issues 7606 issuecomment 381279098 ppJust add code below to your Podfile and update your dependencies ppre codepost install do installer installer pods project targets each do target target build configurations each do config config build settings delete CODE SIGNING ALLOWED config build settings delete CODE SIGNING REQUIRED end end installer pods project build configurations each do config config build settings delete CODE SIGNING ALLOWED config build settings delete CODE SIGNING REQUIRED endend code pre don have such behaviour in my project Everything works fine for now But ve revealed another issue related to this one Code signing options was also defined in root Pods project My answer is updated to handle this problem too,1,NULL,How to resolve property getter setter method selector using runtime reflection in Objective or reverse objective cocoa reflection declared property pObjective offers runtime reflections feature trying to find getter setter selector name of declared property know the basic rule like codefield code codesetField code Anyway think runtime reflection should offer feature to resolve the name for complete abstraction but couldn find the function ppHow can resolve the getter setter method strongselector strong not implementation of declared property with runtime reflection in Objective actually Apple Cocoa ppOr reverse query method selector declared property pA little update from my NSObject category Hope this ll help some one ppre code SEL getterForPropertyWithName NSString name const char propertyName name cStringUsingEncoding NSASCIIStringEncoding objc property prop class getProperty self propertyName const char selectorName property copyAttributeValue prop if selectorName NULL selectorName name cStringUsingEncoding NSASCIIStringEncoding NSString selectorString NSString stringWithCString selectorName encoding NSASCIIStringEncoding return NSSelectorFromString selectorString SEL setterForPropertyWithName NSString name const char propertyName name cStringUsingEncoding NSASCIIStringEncoding objc property prop class getProperty self propertyName char selectorName property copyAttributeValue prop NSString selectorString if selectorName NULL char firstChar char toupper propertyName NSString capitalLetter NSString stringWithFormat firstChar NSString reminder NSString stringWithCString propertyName encoding NSASCIIStringEncoding selectorString set capitalLetter reminder componentsJoinedByString else selectorString NSString stringWithCString selectorName encoding NSASCIIStringEncoding return NSSelectorFromString selectorString code pre Failed to render and update auto layout status for UIViewController dlopen Cosmos framework no suitable image found ios swift rating cosmos pI using Cosmos Pod in my project as stars rating have error in one of my Storyboard after set view class to CosmosView pblockquote pfile Users FedericoVivian Documents Documenti 20personali CSMApp CSMApp LogBook LogBook storyboard error IB Designables Failed to render and update auto layout status for UIViewController GJw lE 8co dlopen Cosmos framework no suitable image found Did find Cosmos framework required code signature missing for Cosmos framework blockquotepI using this release ppCosmos release 15 0Xcode 3Swift ppHow can fix this error It causes whole storyboard to be blank ppHelp me please pIn case you are using Cocoapods try this solution fixed the problem for me pp href https github com CocoaPods CocoaPods issues 7606 issuecomment 381279098 rel noreferrer https github com CocoaPods CocoaPods issues 7606 issuecomment 381279098 ppJust add code below to your Podfile and update your dependencies ppre codepost install do installer installer pods project targets each do target target build configurations each do config config build settings delete CODE SIGNING ALLOWED config build settings delete CODE SIGNING REQUIRED end end installer pods project build configurations each do config config build settings delete CODE SIGNING ALLOWED config build settings delete CODE SIGNING REQUIRED endend code pre 6040,60673,279684,Yearling Popular Question Autobiographer Custodian Nice Answer Notable Question Yearling Notable Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 6041,70370,381902,Critic Editor Yearling,NULL,NULL,0,NULL,NULL 6042,571248,939304,Popular Question Revival Popular Question,NULL,pI think the preg replace function is the simpliest solution ppAs href https stackoverflow com 12807176 229088 comment17320341 12807176 EaterOfCode suggests read the href http en wikipedia org wiki Emoji rel noreferrer wiki page and coded new regex since none of SO or other websites answers seemed to work for Instagram photo captions API returning format Note identifier is mandatory to match unicode chars ppre codepublic static function removeEmoji text clean text Match Emoticons regexEmoticons 1F600 1F64F clean text preg replace regexEmoticons text Match Miscellaneous Symbols and Pictographs regexSymbols 1F300 1F5FF clean text preg replace regexSymbols clean text Match Transport And Map Symbols regexTransport 1F680 1F6FF clean text preg replace regexTransport clean text Match Miscellaneous Symbols regexMisc 2600 26FF clean text preg replace regexMisc clean text Match Dingbats regexDingbats 2700 27BF clean text preg replace regexDingbats clean text return clean text code prepThe function does not remove all emojis since there are many more but you get the point ppPlease refer to href http unicode org emoji charts full emoji list html rel noreferrer unicode org full emoji list thanks href https stackoverflow com questions 12807176 php writing simple removeemoji function comment67832624 12824140 Epoc If the function is returning nothing it is likely the case that you supplied bad UTF8 input string and preg replace choked on it Make sure to check that preg last error PREG NO ERROR otherwise you will need to go back and figure out at what point did utf8 string become corrupted,0,NULL,NULL 6043,763009,49488,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6044,105017,1394318,NULL,NULL,NULL,0,NULL,NULL 6045,599967,1444710,NULL,NULL,NULL,0,NULL,NULL 6046,498151,567938,Yearling Caucus Commentator Critic,NULL,NULL,0,NULL,NULL 6047,252060,257536,NULL,NULL,NULL,0,NULL,NULL 6048,193741,502405,NULL,NULL,NULL,0,NULL,NULL 6049,275158,486582,NULL,NULL,NULL,0,NULL,NULL 6050,366977,1043611,NULL,NULL,NULL,0,NULL,NULL 6051,920225,888032,NULL,NULL,NULL,0,NULL,NULL 6052,68398,997111,NULL,NULL,NULL,0,NULL,NULL 6053,415390,268673,Yearling Nice Question Tumbleweed Custodian Popular Question Citizen Patrol Caucus Constituent Yearling Census Custodian Custodian Great Question Favorite Question Yearling Notable Question Inquisitive Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6054,52082,685567,NULL,NULL,NULL,0,NULL,NULL 6055,7082,1449914,NULL,NULL,NULL,0,NULL,NULL 6056,170822,833830,Notable Question,NULL,NULL,0,NULL,NULL 6057,129364,390056,NULL,NULL,NULL,0,NULL,NULL 6058,42544,145404,Yearling Citizen Patrol Student,NULL,NULL,0,NULL,NULL 6059,122199,61000,Yearling,NULL,NULL,0,NULL,NULL 6060,467016,809384,Popular Question Good Question Popular Question Notable Question Popular Question Yearling Nice Answer Quorum Documentation Pioneer Popular Question Enthusiast Popular Question Popular Question Nice Answer Nice Question Popular Question Notable Question Notable Question Nice Question Yearling Notable Question Popular Question Documentation User Popular Question Notable Question Popular Question Famous Question Necromancer Good Answer Yearling Notable Question Notable Question Nice Question Notable Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 6061,329963,1502465,NULL,NULL,NULL,0,NULL,NULL 6062,1161024,641238,Nice Answer Nice Answer Yearling Guru Good Answer Revival Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6063,328066,1167537,Yearling Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 6064,438506,221664,NULL,NULL,NULL,0,NULL,NULL 6065,25466,1288364,Popular Question Nice Question Notable Question Yearling Nice Answer Good Question Popular Question Popular Question Notable Question Good Question Notable Question Yearling Popular Question Good Answer Notable Question Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 6066,280559,442837,Citizen Patrol Custodian Yearling Caucus Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 6067,135884,979624,Popular Question,NULL,NULL,0,NULL,NULL 6068,1102598,1422605,NULL,NULL,NULL,0,NULL,NULL 6069,1140639,439847,Critic Popular Question Yearling Caucus Notable Question Self-Learner Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6070,1471825,491794,Nice Answer,NULL,NULL,0,NULL,NULL 6071,156391,351150,Good Question Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 6072,253975,1092789,NULL,NULL,NULL,0,NULL,NULL 6073,7928,191036,NULL,NULL,NULL,0,NULL,NULL 6074,305885,821998,NULL,NULL,NULL,0,NULL,NULL 6075,82155,539566,Supporter,NULL,NULL,0,NULL,NULL 6076,177031,1251185,Famous Question,NULL,NULL,0,NULL,NULL 6077,1022880,598694,Notable Question Census Teacher,NULL,NULL,0,NULL,NULL 6078,162360,136865,NULL,NULL,NULL,0,NULL,NULL 6079,906150,1272368,NULL,NULL,NULL,0,NULL,NULL 6080,4294610,945623,NULL,NULL,NULL,0,NULL,NULL 6081,230473,945623,NULL,NULL,NULL,0,NULL,NULL 6082,254082,1141335,NULL,NULL,NULL,0,NULL,NULL 6083,1102846,809419,Supporter Revival,NULL,NULL,0,NULL,NULL 6084,617502,1244883,Yearling Civic Duty Popular Question Caucus Constituent Census Curious,NULL,NULL,0,NULL,NULL 6085,47144,52907,NULL,NULL,NULL,0,NULL,NULL 6086,1351293,1055384,NULL,NULL,NULL,0,NULL,NULL 6087,151874,272120,Popular Question,NULL,NULL,0,NULL,NULL 6088,961512,1126085,Supporter,NULL,NULL,0,NULL,NULL 6089,2219851,1126085,Supporter,NULL,NULL,0,NULL,NULL 6090,235282,1417677,NULL,NULL,NULL,0,NULL,NULL 6091,1164038,1345261,NULL,NULL,NULL,0,NULL,NULL 6092,190602,962968,Autobiographer Informed,NULL,NULL,0,NULL,NULL 6093,623545,811242,NULL,NULL,NULL,0,NULL,NULL 6094,251672,704810,NULL,NULL,NULL,0,NULL,NULL 6095,1258620,354718,Nice Answer Tumbleweed Nice Answer c# Custodian Yearling Notable Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 6096,250641,604930,Necromancer,NULL,NULL,0,NULL,NULL 6097,300319,678374,NULL,NULL,NULL,0,NULL,NULL 6098,207513,609095,NULL,NULL,NULL,0,NULL,NULL 6099,160766,1250898,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 6100,380191,1358698,Yearling Caucus Tumbleweed Caucus Commentator Promoter Benefactor,NULL,NULL,0,NULL,NULL 6101,372013,371171,NULL,NULL,NULL,0,NULL,NULL 6102,68369,180482,Yearling Tumbleweed Nice Answer Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 6103,121629,1075775,NULL,NULL,NULL,0,NULL,NULL 6104,78026,1255665,NULL,NULL,NULL,0,NULL,NULL 6105,9728,658036,Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6106,84328,2484,Nice Question Good Question Notable Question Nice Question Good Question Good Question Famous Question Popular Question Notable Question Stellar Question Yearling Notable Question Notable Question Popular Question Notable Question Populist Famous Question Self-Learner Favorite Question Nice Question Good Question Famous Question Good Answer Notable Question Famous Question Yearling Notable Question Nice Question Famous Question Favorite Question Nice Question Nice Answer Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 6107,1518394,823972,NULL,NULL,NULL,0,NULL,NULL 6108,16036,589334,NULL,NULL,NULL,0,NULL,NULL 6109,3643807,294431,Yearling Notable Question Popular Question Nice Question Famous Question Popular Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 6110,6046,1494600,NULL,NULL,NULL,0,NULL,NULL 6111,44207,726236,NULL,NULL,NULL,0,NULL,NULL 6112,382927,350228,Critic Notable Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6113,129121,776473,Notable Question Famous Question Excavator Nice Question Yearling Custodian Favorite Question Good Question Tag Editor Inquisitive Informed Notable Question Nice Question Good Answer Nice Question Notable Question Nice Question Yearling Popular Question c++ Nice Answer Famous Question Quorum Nice Question Great Question Yearling Popular Question Nice Question Notable Question Explainer Popular Question Nice Answer Notable Question Popular Question Civic Duty,NULL,Why does ASAN SYMBOLIZER PATH no longer work with version adorned binaries ubuntu clang ubuntu 16 04 address sanitizer pOn Ubuntu 14 10 the codellvm symbolizer code program is installed as code usr bin llvm symbolizer code Normally address sanitizer wants to find binary named codellvm symbolizer code in codePATH code However as workaround it was possible to explicitly set codeASAN SYMBOLIZER PATH code So setting codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code in the environment would let an address sanitizer instrumented program print symbolized errors ppOn Ubuntu 16 04 the codellvm symbolizer code program is again installed with version suffix now as code usr bin llvm symbolizer code However the codeASAN SYMBOLIZER PATH code setting no longer seems to work Running an ASAN instrumented program with codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code set in the environment generates the following error when ASAN detects an error ppre code 18718 ERROR External symbolizer path is set to usr bin llvm symbolizer which isn known symbolizer Please set the path to the llvm symbolizer binary or other known tool code prepDoes anyone know why this behavior changed or how to restore the old behavior This seems unreasonably restrictive The symbolizer program ve pointed ASAN to is definitely known symbolizer it just happens to have an Ubuntu mandated version tag at the end ppNote that adjusting codePATH code doesn help here since Ubuntu doesn ship an codellvm symbolizer code binary that comes without version adornment For anyone else who encounters this it appears that this was the result of this change in compiler rt ve pinged the review to try to determine if this change in behavior was intended or if this is regression http reviews llvm org D8285 Why does ASAN SYMBOLIZER PATH no longer work with version adorned binaries ubuntu clang ubuntu 16 04 address sanitizer pOn Ubuntu 14 10 the codellvm symbolizer code program is installed as code usr bin llvm symbolizer code Normally address sanitizer wants to find binary named codellvm symbolizer code in codePATH code However as workaround it was possible to explicitly set codeASAN SYMBOLIZER PATH code So setting codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code in the environment would let an address sanitizer instrumented program print symbolized errors ppOn Ubuntu 16 04 the codellvm symbolizer code program is again installed with version suffix now as code usr bin llvm symbolizer code However the codeASAN SYMBOLIZER PATH code setting no longer seems to work Running an ASAN instrumented program with codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code set in the environment generates the following error when ASAN detects an error ppre code 18718 ERROR External symbolizer path is set to usr bin llvm symbolizer which isn known symbolizer Please set the path to the llvm symbolizer binary or other known tool code prepDoes anyone know why this behavior changed or how to restore the old behavior This seems unreasonably restrictive The symbolizer program ve pointed ASAN to is definitely known symbolizer it just happens to have an Ubuntu mandated version tag at the end ppNote that adjusting codePATH code doesn help here since Ubuntu doesn ship an codellvm symbolizer code binary that comes without version adornment Sure that works fine on my dev box but this is for CI system where can alter usr bin,1,Why does ASAN SYMBOLIZER PATH no longer work with version adorned binaries ubuntu clang ubuntu 16 04 address sanitizer pOn Ubuntu 14 10 the codellvm symbolizer code program is installed as code usr bin llvm symbolizer code Normally address sanitizer wants to find binary named codellvm symbolizer code in codePATH code However as workaround it was possible to explicitly set codeASAN SYMBOLIZER PATH code So setting codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code in the environment would let an address sanitizer instrumented program print symbolized errors ppOn Ubuntu 16 04 the codellvm symbolizer code program is again installed with version suffix now as code usr bin llvm symbolizer code However the codeASAN SYMBOLIZER PATH code setting no longer seems to work Running an ASAN instrumented program with codeASAN SYMBOLIZER PATH usr bin llvm symbolizer code set in the environment generates the following error when ASAN detects an error ppre code 18718 ERROR External symbolizer path is set to usr bin llvm symbolizer which isn known symbolizer Please set the path to the llvm symbolizer binary or other known tool code prepDoes anyone know why this behavior changed or how to restore the old behavior This seems unreasonably restrictive The symbolizer program ve pointed ASAN to is definitely known symbolizer it just happens to have an Ubuntu mandated version tag at the end ppNote that adjusting codePATH code doesn help here since Ubuntu doesn ship an codellvm symbolizer code binary that comes without version adornment,NULL 6114,1463783,368666,NULL,NULL,NULL,0,NULL,NULL 6115,44930,368666,NULL,NULL,NULL,0,NULL,NULL 6116,145762,1340035,Yearling,NULL,NULL,0,NULL,NULL 6117,308825,437961,Nice Answer Revival Guru Announcer Good Answer Nice Answer Good Answer Yearling Nice Answer Necromancer Guru Necromancer Good Answer Yearling Famous Question Nice Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 6118,30576,441008,Yearling Yearling Nice Answer Enlightened aspectj Yearling,NULL,NULL,0,NULL,NULL 6119,527238,73681,Yearling Nice Answer Nice Answer Enlightened Nice Question Good Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Necromancer Nice Answer Great Answer Great Answer Good Answer Nice Answer Enlightened macos Good Answer Great Answer Nice Answer Yearling Great Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 6120,168711,519702,Notable Question Yearling Famous Question Pundit Popular Question Custodian Yearling Famous Question Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 6121,282144,516485,NULL,NULL,NULL,0,NULL,NULL 6122,589029,267656,Notable Question Good Question,NULL,NULL,0,NULL,NULL 6123,1037375,346466,Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6124,1041285,886266,Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 6125,26034,7549,Yearling,NULL,NULL,0,NULL,NULL 6126,2284642,1299363,Good Question Famous Question Yearling Caucus Popular Question Famous Question Popular Question Critic,NULL,NULL,0,NULL,NULL 6127,810441,1299363,Good Question Famous Question Yearling Caucus Popular Question Famous Question Popular Question Critic,NULL,NULL,0,NULL,NULL 6128,221312,1210055,Yearling Revival Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 6129,213335,623308,NULL,NULL,NULL,0,NULL,NULL 6130,421468,171089,Great Answer Yearling Notable Question Popular Question Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6131,157062,590952,Popular Question Notable Question Notable Question Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 6132,845198,955526,Nice Answer Yearling Good Answer Caucus Constituent Nice Answer Guru Student Yearling Popular Question Custodian Custodian Guru Good Answer Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 6133,497698,510984,NULL,NULL,NULL,0,NULL,NULL 6134,166664,17375,Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Yearling Yearling Great Answer Nice Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6135,252888,1247498,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6136,335263,296237,Scholar,NULL,NULL,0,NULL,NULL 6137,1127965,998372,Yearling Custodian Census Enthusiast Yearling Yearling,NULL,NULL,0,NULL,NULL 6138,2225223,164236,Good Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 6139,1217668,1544803,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6140,1600178,1070772,NULL,NULL,NULL,0,NULL,NULL 6141,99068,265741,NULL,NULL,NULL,0,NULL,NULL 6142,911338,819847,Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6143,898090,857265,NULL,NULL,NULL,0,NULL,NULL 6144,169849,343759,Good Question Citizen Patrol Yearling Revival Nice Answer Enlightened Yearling Famous Question Notable Question Nice Answer Enlightened Good Answer Popular Question Yearling Popular Question Guru Yearling Self-Learner,NULL,NULL,0,NULL,NULL 6145,48330,96067,Yearling Good Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 6146,857315,866057,Necromancer Editor Student Scholar Tumbleweed Critic Yearling Nice Answer Revival Self-Learner Yearling,NULL,NULL,0,NULL,NULL 6147,1058154,641279,NULL,NULL,NULL,0,NULL,NULL 6148,384530,11801,Popular Question Notable Question Famous Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Yearling Documentation User Popular Question Notable Question Announcer Popular Question Popular Question Cleanup Popular Question,NULL,NULL,0,NULL,NULL 6149,170500,722401,NULL,NULL,NULL,0,NULL,NULL 6150,25273,727318,Popular Question,NULL,NULL,0,NULL,NULL 6151,337106,1108697,Caucus Tumbleweed Commentator Enthusiast Caucus Student Constituent Yearling Revival Mortarboard Yearling Custodian Custodian Curious Revival Yearling Revival Yearling Organizer,NULL,NULL,0,NULL,NULL 6152,141654,984145,NULL,NULL,NULL,0,NULL,NULL 6153,84201,495133,NULL,NULL,NULL,0,NULL,NULL 6154,217483,538507,Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 6155,161288,520909,NULL,NULL,NULL,0,NULL,NULL 6156,2388583,520909,NULL,NULL,NULL,0,NULL,NULL 6157,194667,1054789,Nice Answer Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 6158,1355581,1223719,Civic Duty Yearling Custodian Popular Question Revival Yearling Custodian Custodian Popular Question Yearling Notable Question,NULL,NULL,1,Travis CI Build Failure java gradle travis ci gradlew pI attempting to get Travis CI build to work The build was fine until configured the codegradle build code file to upload to Maven Central don want to configure the Travis CI build to actually upload releases yet just want it to verify the build and run tests ppMy original code travis yml code file stopped working because of the code gradlew assemble code task runs signArchives has properties that hadn defined now fixed the script to define these properties but it fails at the signArchives task since don have this setup on Travis CI ppI tried to href https docs travis ci com user customizing the build Customizing the Build Step rel nofollow customize the build step using the following script but it still ends up running code gradlew assemble code ppre codelanguage javajdk oraclejdk8script gradle build signArchives code prepWhy is it not honoring my custom defined script pp href https github com GreaterMKEMeetup slack integrations api rel nofollow GitHub project pp href https travis ci org GreaterMKEMeetup slack integrations api builds 147529347 rel nofollow Failed Travis CI Build,NULL 6159,285863,800724,Yearling Yearling,NULL,NULL,0,NULL,NULL 6160,47811,751823,NULL,NULL,NULL,0,NULL,NULL 6161,2928,335798,NULL,NULL,NULL,0,NULL,NULL 6162,27191,1128934,Good Answer,NULL,NULL,0,NULL,NULL 6163,202982,621868,NULL,NULL,NULL,0,NULL,NULL 6164,185118,125496,Yearling,NULL,NULL,0,NULL,NULL 6165,317916,1055606,NULL,NULL,NULL,0,NULL,NULL 6166,169428,1297515,Tumbleweed,NULL,NULL,0,NULL,NULL 6167,529417,600715,NULL,NULL,NULL,0,NULL,NULL 6168,509011,571796,NULL,NULL,NULL,0,NULL,NULL 6169,2383706,571796,NULL,NULL,NULL,0,NULL,NULL 6170,380735,640541,NULL,NULL,NULL,0,NULL,NULL 6171,34312,38765,Nice Question Popular Question Notable Question regex Nice Question Popular Question Necromancer Notable Question Popular Question Notable Question Good Answer Nice Answer Notable Question Nice Question Popular Question Nice Answer Nice Answer Popular Question Nice Question Stellar Question Notable Question Notable Question Great Question Nice Question Good Question Nice Answer Great Question Nice Answer Nice Answer Great Question Popular Question Nice Question Nice Question Good Question Popular Question Necromancer Nice Answer Good Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Answer Nice Answer Nice Answer Good Answer Guru Nice Answer Notable Question Popular Question Popular Question Nice Question Caucus Popular Question Popular Question Famous Question Yearling Good Question Good Answer Popular Question Notable Question Notable Question Popular Question Good Answer Nice Question Notable Question Nice Question Nice Answer Notable Question Notable Question Notable Question Popular Question Great Answer Popular Question Nice Question Nice Answer Notable Question Announcer Notable Question Notable Question Announcer Famous Question ruby-on-rails-3 Notable Question Popular Question Nice Question Nice Answer Notable Question Notable Question Caucus Famous Question Popular Question Popular Question Good Question Famous Question Nice Question Announcer Nice Question Nice Question Nice Answer Good Question Popular Question Popular Question Favorite Question Popular Question Notable Question Yearling Nice Question ruby-on-rails Popular Question Nice Question Famous Question Announcer Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Famous Question Announcer Notable Question Nice Question Custodian Popular Question Nice Question Notable Question Nice Answer Notable Question Popular Question Notable Question Popular Question Nice Answer Enlightened Good Answer Necromancer Announcer Good Answer Great Answer Good Answer Announcer Popular Question Yearling Notable Question,NULL,pYou can apply this CSS to the inner code lt div gt code ppre class lang css prettyprint override code inner width 50 margin auto code prepOf course you don have to set the codewidth code to code50 code Any width less than the containing code lt div gt code will work The codemargin auto code is what does the actual centering ppIf you are targeting IE8 it might be better to have this instead ppre class lang css prettyprint override code inner display table margin auto code prepIt will make the inner element center horizontally and it works without setting specific codewidth code ppWorking example here pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code inner xD display table xD margin auto xD code pre xD pre class snippet code html lang html prettyprint override code lt div id outer style width 100 gt xD lt div id inner gt Foo foo lt div gt xD lt div gt code pre xD div xD div xD The margin auto is what does the actual centering can someone explain the magic behind this,0,NULL,NULL 6172,112780,313207,Yearling Popular Question Popular Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 6173,7345617,313207,Yearling Popular Question Popular Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 6174,283881,97076,Excavator Yearling Custodian Informed Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Yearling Popular Question Nice Answer Yearling php Good Answer,NULL,NULL,0,NULL,NULL 6175,110648,1522182,NULL,NULL,NULL,0,NULL,NULL 6176,76973,408270,Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 6177,1651,128850,Popular Question Popular Question Great Question Notable Question Yearling Nice Answer Guru Notable Question Custodian Nice Question Pundit Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 6178,206255,984790,Supporter,NULL,NULL,0,NULL,NULL 6179,112523,170400,Necromancer Yearling Popular Question Caucus Excavator Revival Organizer Notable Question,NULL,pI had this problem when doing codedocker build code and was getting ppre codeError while pulling image Get https index docker io v1 repositories library debian images dial tcp lookup index docker io on 75 75 76 76 53 server misbehaving code prepand ppre codeError while pulling image Get https index docker io v1 repositories library debian images dial tcp lookup index docker io no such host code prepRestarting the vm that docker uses fixed my problem ppre codedocker machine restart default amp amp eval docker machine env default code pre Same issue but using Docker For Mac Beta so regenerating certs or re mapping docker machine not an option for me,0,NULL,NULL 6180,1839007,361334,Autobiographer Informed Yearling Yearling Popular Question Notable Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 6181,207937,509317,NULL,NULL,NULL,0,NULL,NULL 6182,53145,960876,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6183,551969,533497,Tenacious Caucus Constituent Yearling Nice Answer Enlightened Custodian Yearling Census Caucus Constituent,NULL,NULL,0,NULL,NULL 6184,323157,850867,NULL,NULL,NULL,0,NULL,NULL 6185,656563,1472900,NULL,NULL,NULL,0,NULL,NULL 6186,216365,309460,NULL,NULL,NULL,0,NULL,NULL 6187,10914,699629,Editor Excavator,NULL,NULL,0,NULL,NULL 6188,98917,333259,Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 6189,134903,413499,NULL,NULL,NULL,0,NULL,NULL 6190,256132,1308699,Necromancer Yearling Nice Answer Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6191,441154,765409,Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Nice Answer Famous Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Famous Question Famous Question Notable Question Announcer Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6192,78669,629555,Yearling Investor Great Question Caucus Yearling Caucus Constituent Custodian Yearling,NULL,NULL,0,NULL,NULL 6193,22893,122196,NULL,NULL,NULL,0,NULL,NULL 6194,256349,774902,NULL,NULL,NULL,0,NULL,NULL 6195,737279,1414103,NULL,NULL,NULL,0,NULL,NULL 6196,591,275588,Teacher,NULL,NULL,0,NULL,NULL 6197,243029,933711,Custodian Yearling Necromancer Nice Answer Yearling Popular Question Announcer Good Answer Yearling Yearling Popular Question Popular Question Popular Question Necromancer Nice Question Civic Duty Nice Answer Enlightened Yearling Nice Answer Famous Question Announcer,NULL,NULL,0,NULL,NULL 6198,25623,70358,NULL,NULL,NULL,0,NULL,NULL 6199,1565235,1464033,NULL,NULL,NULL,0,NULL,NULL 6200,397291,1137553,Yearling Yearling Organizer Great Answer Yearling,NULL,NULL,0,NULL,NULL 6201,152320,381384,Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 6202,473215,1174126,NULL,NULL,NULL,0,NULL,NULL 6203,944,788349,Famous Question Notable Question Peer Pressure Popular Question Popular Question Promoter,NULL,NULL,0,NULL,NULL 6204,172462,5152,Famous Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 6205,419510,849826,Informed,NULL,NULL,0,NULL,NULL 6206,894217,1163439,NULL,NULL,NULL,0,NULL,NULL 6207,83944,439517,Good Question,NULL,NULL,0,NULL,NULL 6208,1604170,1027974,NULL,NULL,NULL,0,NULL,NULL 6209,26583,1418673,NULL,NULL,NULL,0,NULL,NULL 6210,250244,510022,NULL,NULL,NULL,0,NULL,NULL 6211,218538,1234499,NULL,NULL,NULL,0,NULL,NULL 6212,120105,294641,Popular Question,NULL,NULL,0,NULL,NULL 6213,490325,575352,Notable Question Nice Answer Yearling Necromancer Famous Question Notable Question Nice Question Yearling Good Question Nice Answer Yearling Good Answer,NULL,pUnfortunately what you like to do is not possible GraphQL requires you to be explicit about specifying which fields you would like returned from your query Ok and if request some object of an unknown form from backend which supposed to proxy or send back,0,NULL,NULL 6214,3267,350106,Famous Question python Famous Question Nice Answer Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Good Question Popular Question Great Answer Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Famous Question Famous Question Notable Question Taxonomist Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Question Nice Question Nice Answer Nice Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Popular Question Notable Question Good Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Nice Question Yearling Notable Question Announcer Nice Answer Popular Question Popular Question Popular Question Necromancer Notable Question Notable Question Nice Answer Enlightened,NULL,pWith version 13 of Git and later code recurse submodules code can be used instead of code recursive code ppre codegit clone recurse submodules j8 git github com foo bar gitcd bar code prep supEditor’s note code j8 code is an optional performance optimization that became available in version and fetches up to submodules at time in parallel see codeman git clone code sup ppWith version of Git up until version 12 code code flag only available in version ppre codegit clone recursive j8 git github com foo bar gitcd bar code prepWith version of Git and later you can use ppre codegit clone recursive git github com foo bar gitcd bar code prepFor already cloned repos or older Git versions use ppre codegit clone git github com foo bar gitcd bargit submodule update init recursive code pre Thanks had forgotten to actually retrieve the submodule dependency contents with git submodule update init recursive before running sh cd cmd ios7crypt go install,0,NULL,NULL 6215,384625,1473230,NULL,NULL,NULL,0,NULL,NULL 6216,139486,159874,Yearling Good Answer Caucus Constituent java Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 6217,25353,1265470,NULL,NULL,NULL,0,NULL,NULL 6218,70688,1030110,Tenacious Outspoken Popular Question Investor Altruist Popular Question Yearling Caucus Necromancer Popular Question Nice Answer Enlightened Caucus Notable Question Notable Question r Documentation User Yearling Census Sportsmanship Popular Question Caucus Nice Answer Copy Editor Self-Learner Yearling,NULL,NULL,0,NULL,NULL 6219,88213,1250712,NULL,NULL,NULL,0,NULL,NULL 6220,780100,581681,Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 6221,94055,492479,NULL,NULL,NULL,0,NULL,NULL 6222,303882,84942,Yearling Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 6223,334216,847229,NULL,NULL,NULL,0,NULL,NULL 6224,1619062,864655,Nice Question,NULL,NULL,0,NULL,NULL 6225,102451,345059,Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 6226,8159927,258946,NULL,NULL,NULL,0,NULL,NULL 6227,168099,258946,NULL,NULL,NULL,0,NULL,NULL 6228,169707,106852,Good Answer Yearling Guru Yearling Nice Answer Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6229,326406,524750,Revival Yearling Revival Notable Question Necromancer Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 6230,137400,702831,NULL,NULL,NULL,0,NULL,NULL 6231,389728,895769,Yearling Civic Duty,NULL,NULL,0,NULL,NULL 6232,182774,549307,NULL,NULL,NULL,0,NULL,NULL 6233,369509,971964,NULL,NULL,NULL,0,NULL,NULL 6234,61854,488311,NULL,NULL,NULL,0,NULL,NULL 6235,537362,290042,NULL,NULL,NULL,0,NULL,NULL 6236,176314,82754,Notable Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 6237,1344314,1428365,Famous Question Notable Question Notable Question Curious,NULL,NULL,0,NULL,NULL 6238,480196,746755,NULL,NULL,NULL,0,NULL,NULL 6239,868799,1071181,NULL,NULL,NULL,0,NULL,NULL 6240,2777728,444088,Popular Question Nice Answer Enlightened Good Answer Nice Question Guru Yearling Great Answer Popular Question Notable Question Popular Question Nice Question Great Answer Nice Question Guru Notable Question Nice Answer Yearling c++ Good Answer Popular Question Popular Question Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6241,61569,128167,Popular Question Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6242,71223,487806,NULL,NULL,NULL,0,NULL,NULL 6243,1423648,34211,Guru Good Answer Guru Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Guru ruby Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Famous Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer casting Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Taxonomist Great Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Yearling Great Answer Nice Answer Nice Answer Good Answer Guru Guru Nice Answer Guru Nice Answer Nice Answer Guru Guru Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Guru Good Answer Guru Nice Answer Great Answer Nice Answer Great Answer Nice Answer Nice Answer Good Answer Guru Good Answer Notable Question Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Guru Yearling Guru Nice Answer Guru Nice Answer Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Great Answer Good Question Guru Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Favorite Question Nice Answer Nice Answer Great Answer Great Answer Nice Answer Good Answer Good Answer Great Answer Guru Great Answer Nice Answer Yearling Great Answer Guru Guru Good Answer,NULL,NULL,0,NULL,NULL 6244,2695062,1306143,NULL,NULL,NULL,0,NULL,NULL 6245,743670,242638,NULL,NULL,NULL,0,NULL,NULL 6246,1944225,660496,Popular Question Nice Question Nice Question Famous Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 6247,124593,324995,Citizen Patrol Notable Question Yearling Yearling Yearling Custodian Curious Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 6248,79394,181772,Notable Question Guru regex Nice Question Nice Answer Enlightened Good Answer Nice Question Notable Question Nice Question Notable Question Nice Answer Popular Question Nice Answer Nice Question Popular Question Popular Question Nice Answer Popular Question Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Revival Popular Question Announcer Nice Answer Nice Answer Nice Answer Yearling Notable Question Nice Answer Nice Answer Popular Question Announcer Necromancer Popular Question Good Answer Announcer Good Answer Good Answer Announcer Good Answer Popular Question Popular Question Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 6249,27831,333625,Announcer Guru Explainer Necromancer Nice Answer Yearling Custodian Good Answer Popular Question Caucus Necromancer Constituent Guru Yearling Announcer Nice Question Notable Question Nice Answer Great Answer Yearling Great Answer,NULL,strongUpdate 2016 05 27 strong ppAs of React v15 support for SVG in React is close to 100 parity with current browser support for SVG href https facebook github io react blog 2016 04 07 react v15 html rel noreferrer source You just need to apply some syntax transformations to make it JSX compatible href https reactjs org docs dom elements html rel noreferrer like you already have to do for HTML codeclass code codeclassName code codestyle color purple code codestyle color purple code For any namespaced colon separated attribute codexlink href code remove the code code and capitalize the second part of the attribute codexlinkHref code Here’s an example of an svg with code lt defs gt code code lt use gt code and inline styles ppre class lang js prettyprint override codefunction SvgWithXlink props return lt svg width 100 height 100 xmlns http www w3 org 2000 svg xmlnsXlink http www w3 org 1999 xlink gt lt style gt classA fill props fill lt style gt lt defs gt lt id Port gt lt circle style fill inherit 10 gt lt gt lt defs gt lt text 15 gt black lt text gt lt use 70 10 xlinkHref Port gt lt text 35 gt props fill lt text gt lt use 70 30 xlinkHref Port className classA gt lt text 55 gt blue lt text gt lt use 50 xlinkHref Port style fill blue gt lt svg gt code prep href http codepen io acusti pen qNWMGL editors 0010 rel noreferrer Working codepen demo ppFor more details on specific support check the docs’ href https facebook github io react docs dom elements html all supported svg attributes rel noreferrer list of supported SVG attributes And here’s the now closed href https github com facebook react issues 2250 rel noreferrer GitHub issue that tracked support for namespaced SVG attributes phrp strongPrevious answer strong ppYou can do simple SVG embed without having to use codedangerouslySetInnerHTML code by just stripping the namespace attributes For example this works ppre code render function return lt svg viewBox 120 120 gt lt circle cx 60 cy 60 50 gt lt svg gt code prepAt which point you can think about adding props like codefill code or whatever else might be useful to configure Thanks galenlong updated the link in my answer strongUpdate 2016 05 27 strong ppAs of React v15 support for SVG in React is close to 100 parity with current browser support for SVG href https facebook github io react blog 2016 04 07 react v15 html rel noreferrer source You just need to apply some syntax transformations to make it JSX compatible href https reactjs org docs dom elements html rel noreferrer like you already have to do for HTML codeclass code codeclassName code codestyle color purple code codestyle color purple code For any namespaced colon separated attribute codexlink href code remove the code code and capitalize the second part of the attribute codexlinkHref code Here’s an example of an svg with code lt defs gt code code lt use gt code and inline styles ppre class lang js prettyprint override codefunction SvgWithXlink props return lt svg width 100 height 100 xmlns http www w3 org 2000 svg xmlnsXlink http www w3 org 1999 xlink gt lt style gt classA fill props fill lt style gt lt defs gt lt id Port gt lt circle style fill inherit 10 gt lt gt lt defs gt lt text 15 gt black lt text gt lt use 70 10 xlinkHref Port gt lt text 35 gt props fill lt text gt lt use 70 30 xlinkHref Port className classA gt lt text 55 gt blue lt text gt lt use 50 xlinkHref Port style fill blue gt lt svg gt code prep href http codepen io acusti pen qNWMGL editors 0010 rel noreferrer Working codepen demo ppFor more details on specific support check the docs’ href https facebook github io react docs dom elements html all supported svg attributes rel noreferrer list of supported SVG attributes And here’s the now closed href https github com facebook react issues 2250 rel noreferrer GitHub issue that tracked support for namespaced SVG attributes phrp strongPrevious answer strong ppYou can do simple SVG embed without having to use codedangerouslySetInnerHTML code by just stripping the namespace attributes For example this works ppre code render function return lt svg viewBox 120 120 gt lt circle cx 60 cy 60 50 gt lt svg gt code prepAt which point you can think about adding props like codefill code or whatever else might be useful to configure gor Great question don’t know I’ve never used React Native Did you give it go strongUpdate 2016 05 27 strong ppAs of React v15 support for SVG in React is close to 100 parity with current browser support for SVG href https facebook github io react blog 2016 04 07 react v15 html rel noreferrer source You just need to apply some syntax transformations to make it JSX compatible href https reactjs org docs dom elements html rel noreferrer like you already have to do for HTML codeclass code codeclassName code codestyle color purple code codestyle color purple code For any namespaced colon separated attribute codexlink href code remove the code code and capitalize the second part of the attribute codexlinkHref code Here’s an example of an svg with code lt defs gt code code lt use gt code and inline styles ppre class lang js prettyprint override codefunction SvgWithXlink props return lt svg width 100 height 100 xmlns http www w3 org 2000 svg xmlnsXlink http www w3 org 1999 xlink gt lt style gt classA fill props fill lt style gt lt defs gt lt id Port gt lt circle style fill inherit 10 gt lt gt lt defs gt lt text 15 gt black lt text gt lt use 70 10 xlinkHref Port gt lt text 35 gt props fill lt text gt lt use 70 30 xlinkHref Port className classA gt lt text 55 gt blue lt text gt lt use 50 xlinkHref Port style fill blue gt lt svg gt code prep href http codepen io acusti pen qNWMGL editors 0010 rel noreferrer Working codepen demo ppFor more details on specific support check the docs’ href https facebook github io react docs dom elements html all supported svg attributes rel noreferrer list of supported SVG attributes And here’s the now closed href https github com facebook react issues 2250 rel noreferrer GitHub issue that tracked support for namespaced SVG attributes phrp strongPrevious answer strong ppYou can do simple SVG embed without having to use codedangerouslySetInnerHTML code by just stripping the namespace attributes For example this works ppre code render function return lt svg viewBox 120 120 gt lt circle cx 60 cy 60 50 gt lt svg gt code prepAt which point you can think about adding props like codefill code or whatever else might be useful to configure Can you give me an example where it doesn’t work just forked my original demo to add classB and it worked https codepen io acusti pen BVJzNg strongFor WordPress strong ppUse href https developer wordpress org reference functions wp script add data rel noreferrer codewp script add data code to wrap the script in conditional comment ppre codewp enqueue script html5shiv cdn jsdelivr net html5shiv html5shiv js wp script add data html5shiv conditional lt IE wp enqueue script respond get template directory uri js respond min js wp script add data respond conditional lt IE code prepJust make sure you register the script before invoking codewp script add data code registering is handled by codewp enqueue script code above and that the first argument you pass to codewp script add data code matches the first argument you passed when you registered the script phrp strongFor WordPress strong ppYou can use the href https developer wordpress org reference hooks script loader tag rel noreferrer codescript loader tag code filter today to enqueue scripts wrapped in conditional comments Here’s an example implementation ppre codewp enqueue script html5shiv cdn jsdelivr net html5shiv html5shiv js array false add filter script loader tag function tag handle if handle html5shiv tag lt if lt IE gt tag lt endif gt return tag 10 code prepAnd if you want to include more than one script in the same way you can use something like ppre code Conditional polyfills conditional scripts array html5shiv gt cdn jsdelivr net html5shiv html5shiv js html5shiv printshiv gt cdn jsdelivr net html5shiv html5shiv printshiv js respond gt cdn jsdelivr net respond respond min js foreach conditional scripts as handle gt src wp enqueue script handle src array false add filter script loader tag function tag handle use conditional scripts if array key exists handle conditional scripts tag lt if lt IE gt tag lt endif gt return tag 10 code pre added an example of the WP version of loading scripts with conditional comments Does that make it clear or do you still have questions,0,NULL,NULL 6250,1531122,1384337,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 6251,242492,521894,NULL,NULL,NULL,0,NULL,NULL 6252,459014,1530520,NULL,NULL,NULL,0,NULL,NULL 6253,329284,510722,Yearling Necromancer,NULL,NULL,0,NULL,NULL 6254,600370,6950,Excavator Nice Answer Famous Question Yearling Nice Question Custodian Custodian Custodian Organizer Caucus Constituent,NULL,NULL,0,NULL,NULL 6255,1714,221200,Nice Answer,NULL,NULL,0,NULL,NULL 6256,252750,479607,NULL,NULL,NULL,0,NULL,NULL 6257,29324,365831,NULL,NULL,NULL,0,NULL,NULL 6258,717174,1371161,Popular Question Yearling Popular Question Notable Question Nice Answer Popular Question Critic Popular Question Yearling Popular Question Popular Question Nice Question Custodian Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6259,119635,191636,Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 6260,191568,145395,Yearling Nice Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 6261,476183,474237,NULL,NULL,NULL,0,NULL,NULL 6262,243279,1086228,NULL,NULL,NULL,0,NULL,NULL 6263,63274,544065,Popular Question Yearling Good Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 6264,1327976,1086123,NULL,NULL,NULL,0,NULL,NULL 6265,75815,1076071,Notable Question,NULL,NULL,0,NULL,NULL 6266,35186,29813,Guru Yearling Yearling Scholar Quorum Yearling,NULL,NULL,0,NULL,NULL 6267,248736,851244,NULL,NULL,NULL,0,NULL,NULL 6268,164901,214812,Famous Question Popular Question Nice Question Famous Question Popular Question Great Answer Popular Question Nice Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question ruby Caucus Constituent Custodian Popular Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 6269,395267,719557,NULL,NULL,NULL,0,NULL,NULL 6270,336445,528915,NULL,NULL,NULL,0,NULL,NULL 6271,303656,114883,NULL,NULL,NULL,0,NULL,NULL 6272,89346,17408,NULL,NULL,NULL,0,NULL,NULL 6273,491992,200136,Nice Answer Yearling Editor Yearling Custodian Informed Yearling Citizen Patrol Custodian Yearling Student Scholar Custodian,NULL,NULL,0,NULL,NULL 6274,988882,306995,Student Popular Question,NULL,NULL,0,NULL,NULL 6275,46959,175885,Famous Question Popular Question Curious Revival Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 6276,169737,945848,Yearling Famous Question,NULL,NULL,0,NULL,NULL 6277,127472,61439,Popular Question Yearling Good Answer Famous Question Necromancer Popular Question Famous Question Necromancer Revival html Notable Question Guru Yearling Good Answer Nice Answer Good Question Famous Question Notable Question Nice Answer Enlightened Nice Answer Guru Yearling Good Question Good Answer,NULL,NULL,0,NULL,NULL 6278,74242,266069,Yearling Custodian Scholar Great Answer Yearling Nice Answer Enlightened Guru Custodian Documentation User Census Nice Answer Enlightened Yearling Custodian Caucus Excavator ruby-on-rails,NULL,NULL,0,NULL,NULL 6279,125827,109419,Teacher Supporter,NULL,NULL,0,NULL,NULL 6280,27788,847813,NULL,NULL,NULL,0,NULL,NULL 6281,7063,827416,Revival,NULL,NULL,0,NULL,NULL 6282,244534,744498,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6283,2691787,1507517,NULL,NULL,NULL,0,NULL,NULL 6284,68529,785114,NULL,NULL,NULL,0,NULL,NULL 6285,155688,155417,Yearling Favorite Question Documentation User Yearling Caucus,NULL,NULL,0,NULL,NULL 6286,211103,152948,Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened json Good Answer Nice Answer Necromancer Caucus Good Answer Nice Answer Guru Nice Answer string Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Custodian Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Necromancer Nice Answer Enlightened Good Answer Caucus Constituent Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Good Answer Nice Answer Announcer Caucus Great Answer Good Answer Guru Investor Altruist Populist Good Answer bash Nice Answer Enlightened Yearling Nice Answer Good Answer go Nice Answer Good Answer Good Answer,NULL,pThe rules which did not change in 11 pulliReserved in any scope including for use as href https stackoverflow com questions 4297933 implementation 4297974 implementation macros ulliidentifiers beginning with an underscore followed immediately by an uppercase letter liliidentifiers containing adjacent underscores or double underscore li ul liliReserved in the global namespace ulliidentifiers beginning with an underscore li ul liliAlso everything in the codestd code namespace is reserved You are allowed to add template specializations though li ulpFrom the 2003 Standard pblockquote h317 Global names lib global names h3 pCertain sets of names and function signatures are always reserved to the implementation ul liEach name that contains double underscore code code or begins with an underscore followed by an uppercase letter 11 is reserved to the implementation for any use li liEach name that begins with an underscore is reserved to the implementation for use as name in the global namespace sup165 sup li ul sup165 sup Such names are also reserved in namespace code std code 17 blockquotepBecause is based on the standard 03 and C99 is normative reference 03 these also apply from the 1999 Standard pblockquote h37 Reserved identifiers h3 pEach header declares or defines all identifiers listed in its associated subclause and optionally declares or defines identifiers listed in its associated future library directions subclause and identifiers which are always reserved either for any use or for use as file scope identifiers ul liAll identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use li liAll identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces li liEach macro name in any of the following subclauses including the future library directions is reserved for use as specified if any of its associated headers is included unless explicitly stated otherwise see li liAll identifiers with external linkage in any of the following subclauses including the future library directions are always reserved for use as identifiers with external linkage sup154 sup li liEach identifier with file scope listed in any of the following subclauses including the future library directions is reserved for use as macro name and as an identifier with file scope in the same name space if any of its associated headers is included li ul pNo other identifiers are reserved If the program declares or defines an identifier in context in which it is reserved other than as allowed by or defines reserved identifier as macro name the behavior is undefined pIf the program removes with code undef code any macro definition of an identifier in the first group listed above the behavior is undefined sup154 sup The list of reserved identifiers with external linkage includes codeerrno code codemath errhandling code codesetjmp code and codeva end code blockquotepOther restrictions might apply For example the POSIX standard reserves lot of identifiers that are likely to show up in normal code pulliNames beginning with capital codeE code followed digit or uppercase letter ullimay be used for additional error code names li ul liliNames that begin with either codeis code or codeto code followed by lowercase letterullimay be used for additional character testing and conversion functions li ul liliNames that begin with codeLC code followed by an uppercase letterullimay be used for additional macros specifying locale attributes li ul liliNames of all existing mathematics functions suffixed with codef code or codel code are reservedullifor corresponding functions that operate on float and long double arguments respectively li ul liliNames that begin with codeSIG code followed by an uppercase letter are reservedullifor additional signal names li ul liliNames that begin with codeSIG code followed by an uppercase letter are reservedullifor additional signal actions li ul liliNames beginning with codestr code codemem code or codewcs code followed by lowercase letter are reservedullifor additional string and array functions li ul liliNames beginning with codePRI code or codeSCN code followed by any lowercase letter or codeX code are reservedullifor additional format specifier macros li ul liliNames that end with code code are reservedullifor additional type names li ul li ulpWhile using these names for your own purposes right now might not cause problem they do raise the possibility of conflict with future versions of that standard phrpPersonally just don start identifiers with underscores New addition to my rule Don use double underscores anywhere which is easy as rarely use underscore ppAfter doing research on this article no longer end my identifiers with code codeas this is reserved by the POSIX standard ppThe rule about any identifier ending with code code surprised me lot think that is POSIX standard not sure yet looking for clarification and official chapter and verse This is from the href http www gnu org software libtool manual libc Reserved Names html rel noreferrer GNU libtool manual listing reserved names ppCesarB provided the following link to the href http www opengroup org onlinepubs 009695399 functions xsh chap02 02 html rel noreferrer POSIX 2004 reserved symbols and notes that many other reserved prefixes and suffixes can be found there Thea href http www opengroup org onlinepubs 9699919799 functions V2 chap02 html rel noreferrer POSIX 2008 reserved symbols are defined here The restrictions are somewhat more nuanced than those above roughly yes It says that any implementation can define new ctype function tofoo for any identifier foo beginning with letter including lerance If that happens and it causes clash with your own global well you were warned The practical impact to you is small but it gives POSIX and implementers breathing room to add stuff without endless quibbling,0,NULL,NULL 6287,7033,673677,NULL,NULL,NULL,0,NULL,NULL 6288,181245,1139885,NULL,NULL,NULL,0,NULL,NULL 6289,780252,1198450,NULL,NULL,NULL,0,NULL,NULL 6290,286656,113455,Yearling Nice Answer Enlightened Yearling Curious Popular Question Yearling,NULL,NULL,0,NULL,NULL 6291,70164,461146,Nice Question Famous Question Good Answer Nice Question Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 6292,502276,908077,NULL,NULL,NULL,0,NULL,NULL 6293,465602,26874,Self-Learner Famous Question Popular Question Yearling Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6294,27892,1269623,NULL,NULL,NULL,0,NULL,NULL 6295,363611,601714,NULL,NULL,NULL,0,NULL,NULL 6296,377350,417872,Nice Question Nice Question Notable Question Popular Question Nice Question Popular Question Famous Question Custodian Custodian Famous Question Notable Question Popular Question Good Answer Famous Question Great Question Famous Question Popular Question Favorite Question Great Question Notable Question Popular Question Notable Question Popular Question Pundit Popular Question Nice Answer Notable Question Favorite Question Famous Question Good Question Notable Question Yearling Popular Question Notable Question Nice Answer Enlightened Famous Question Good Answer Notable Question Notable Question Nice Question Nice Answer Popular Question Nice Answer Enlightened Famous Question Great Answer Popular Question Nice Answer Enlightened Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Nice Question Guru Yearling Popular Question Famous Question Popular Question Documentation User Great Answer Popular Question Good Question Famous Question Popular Question Popular Question Nice Answer Enlightened Notable Question Notable Question Good Question Notable Question Popular Question Popular Question Great Answer Notable Question Nice Answer Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Favorite Question Favorite Question Popular Question Nice Question Popular Question Popular Question Notable Question Yearling Nice Answer Guru Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6297,13417,172363,Nice Question Good Question Popular Question Notable Question Notable Question Nice Question Guru Nice Answer Enlightened Nice Answer Notable Question Nice Answer Nice Answer Enlightened Enlightened Nice Answer javascript Popular Question Notable Question Yearling Nice Answer Enlightened Good Question Caucus Notable Question Popular Question Revival Popular Question Popular Question Famous Question Popular Question Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Caucus Yearling Documentation User Popular Question Nice Answer Enlightened Popular Question Good Answer Popular Question Census Famous Question Popular Question Nice Question Reviewer Suffrage Caucus Popular Question Constituent Good Answer Popular Question Notable Question Electorate Notable Question Guru Peer Pressure Nice Question Notable Question Famous Question Yearling Popular Question Notable Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 6298,6337,99184,Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6299,74004,928159,NULL,NULL,NULL,0,NULL,NULL 6300,15731,7011,Popular Question Popular Question Notable Question Notable Question Nice Question Good Question Yearling Notable Question Popular Question Notable Question Yearling Nice Question Famous Question Notable Question Good Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 6301,50572,778449,Teacher Supporter Announcer,NULL,NULL,0,NULL,NULL 6302,492261,5662,Nice Answer Famous Question Nice Answer Good Answer Yearling Good Answer Nice Question Yearling Notable Question Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 6303,554472,607189,NULL,NULL,NULL,0,NULL,NULL 6304,124127,462276,Notable Question Caucus Famous Question Caucus Popular Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 6305,545798,225335,NULL,NULL,NULL,0,NULL,NULL 6306,52488,725792,Nice Answer Good Answer ruby-on-rails-3 Yearling Good Answer Nice Answer Good Answer Yearling Caucus Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 6307,87344,11577,Famous Question Good Question jquery Yearling Good Question Nice Answer Necromancer Nice Answer Good Answer Famous Question Good Answer Nice Answer Yearling Notable Question Good Answer Great Question Yearling,NULL,NULL,0,NULL,NULL 6308,363709,330013,Popular Question Popular Question Popular Question javascript Popular Question Enlightened Guru Yearling ruby-on-rails Popular Question Good Answer Popular Question Guru Notable Question Popular Question Yearling Popular Question Popular Question Taxonomist Notable Question Notable Question Caucus jquery Custodian Census Notable Question Nice Answer Enlightened Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6309,30696,1110495,NULL,NULL,NULL,0,NULL,NULL 6310,201808,870552,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 6311,114201,836780,Popular Question Popular Question Nice Answer Yearling Notable Question Yearling Notable Question Census Notable Question Yearling Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 6312,456134,784403,Yearling Scholar Custodian Critic,NULL,NULL,0,NULL,NULL 6313,338458,67200,NULL,NULL,NULL,0,NULL,NULL 6314,210341,370859,NULL,NULL,NULL,0,NULL,NULL 6315,373704,1339140,NULL,NULL,NULL,0,NULL,NULL 6316,2149,211563,Guru Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Custodian Custodian Custodian Custodian Great Answer Nice Answer Enlightened Nice Answer Good Answer Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling Caucus Nice Answer Enlightened Favorite Question Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Generalist Good Answer Good Answer Nice Answer Announcer Nice Answer Guru Great Answer Nice Answer Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Nice Answer Caucus Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6317,287247,1461324,NULL,NULL,NULL,0,NULL,NULL 6318,524755,1405985,Scholar Student Popular Question,NULL,NULL,0,NULL,NULL 6319,474913,333439,NULL,NULL,NULL,0,NULL,NULL 6320,28776,420988,NULL,NULL,NULL,0,NULL,NULL 6321,279945,242615,Necromancer,NULL,NULL,0,NULL,NULL 6322,123563,648802,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 6323,77209,590540,NULL,NULL,NULL,0,NULL,NULL 6324,381183,1330621,NULL,NULL,NULL,0,NULL,NULL 6325,85098,440305,Notable Question,NULL,NULL,0,NULL,NULL 6326,265973,211762,NULL,NULL,NULL,0,NULL,NULL 6327,86626,790063,NULL,NULL,NULL,0,NULL,NULL 6328,3140105,790063,NULL,NULL,NULL,0,NULL,NULL 6329,150836,133160,Necromancer Critic Yearling Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 6330,243424,452024,Yearling,NULL,NULL,0,NULL,NULL 6331,128949,498323,NULL,NULL,NULL,0,NULL,NULL 6332,141869,288557,Critic Yearling,NULL,NULL,0,NULL,NULL 6333,283515,977697,NULL,NULL,NULL,0,NULL,NULL 6334,131691,374052,Popular Question Notable Question Yearling Nice Question Necromancer Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 6335,432191,3024,Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6336,844303,503592,NULL,NULL,NULL,0,NULL,NULL 6337,40196,416845,Nice Answer Popular Question Yearling Famous Question Autobiographer Announcer,NULL,NULL,0,NULL,NULL 6338,190572,742663,NULL,NULL,NULL,0,NULL,NULL 6339,790072,900515,NULL,NULL,NULL,0,NULL,NULL 6340,402362,927679,NULL,NULL,NULL,0,NULL,NULL 6341,251985,42274,Nice Question objective-c Good Answer Yearling ios Notable Question Caucus Constituent Yearling Census Caucus Yearling,NULL,NULL,0,NULL,NULL 6342,34536,48204,NULL,NULL,NULL,0,NULL,NULL 6343,344955,394623,NULL,NULL,NULL,0,NULL,NULL 6344,159154,473906,NULL,NULL,NULL,0,NULL,NULL 6345,72201,367693,NULL,NULL,NULL,0,NULL,NULL 6346,168278,847799,Popular Question,NULL,NULL,0,NULL,NULL 6347,595367,551441,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6348,115401,1151309,NULL,NULL,NULL,0,NULL,NULL 6349,192124,123321,Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6350,551801,1116980,Enthusiast,NULL,NULL,0,NULL,NULL 6351,2834718,1116980,Enthusiast,NULL,NULL,0,NULL,NULL 6352,91966,46926,Nice Answer Popular Question Nice Answer Nice Answer Great Answer Notable Question Nice Answer Enlightened Necromancer Good Answer Good Answer Good Answer Good Question Nice Answer Enlightened Revival Yearling Popular Question Popular Question Notable Question Good Answer Great Question Good Question Necromancer Nice Question Great Answer Nice Answer Enlightened Great Question Good Answer Notable Question Great Answer Good Answer c# Yearling Popular Question Enlightened Guru Favorite Question Nice Question Notable Question Favorite Question Famous Question Popular Question Necromancer Nice Answer Popular Question Nice Question Popular Question Yearling Popular Question,NULL,pHow about this ppre codeint timeout 1000 var task SomeOperationAsync if await Task WhenAny task Task Delay timeout task task completed within timeout else timeout logic code prepAnd here href http blogs msdn com pfxteam archive 2011 11 10 10235834 aspx rel noreferrer great blog post Crafting Task TimeoutAfter Method from MS Parallel Library team with more info on this sort of thing pp strongAddition strong at the request of comment on my answer here is an expanded solution that includes cancellation handling Note that passing cancellation to the task and the timer means that there are multiple ways cancellation can be experienced in your code and you should be sure to test for and be confident you properly handle all of them Don leave to chance various combinations and hope your computer does the right thing at runtime ppre codeint timeout 1000 var task SomeOperationAsync cancellationToken if await Task WhenAny task Task Delay timeout cancellationToken task Task completed within timeout Consider that the task may have faulted or been canceled We re await the task so that any exceptions cancellation is rethrown await task else timeout cancellation logic code pre Once you re in the no timeout branch of the code just await the original now completed task to assign the result to variable,0,NULL,NULL 6353,165959,191502,Curious Nice Answer Self-Learner,NULL,NULL,0,NULL,NULL 6354,276970,309284,Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 6355,108869,15315,NULL,NULL,NULL,0,NULL,NULL 6356,108898,15315,NULL,NULL,NULL,0,NULL,NULL 6357,893213,1496792,NULL,NULL,NULL,0,NULL,NULL 6358,190160,1344499,Supporter Good Answer Yearling,NULL,NULL,0,NULL,NULL 6359,220969,1344499,Supporter Good Answer Yearling,NULL,NULL,0,NULL,NULL 6360,320189,1512750,NULL,NULL,NULL,0,NULL,NULL 6361,1354116,4239,Nice Answer asp.net-mvc Notable Question Yearling Nice Answer Guru Great Answer Good Question Good Answer Yearling Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6362,1734116,4239,Nice Answer asp.net-mvc Notable Question Yearling Nice Answer Guru Great Answer Good Question Good Answer Yearling Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6363,628583,1554635,Curious Autobiographer Quorum Yearling Caucus Nice Answer Census Yearling Nice Answer Enlightened Census Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 6364,907857,1415866,Yearling Curious Revival Notable Question Yearling Popular Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6365,517170,998302,NULL,NULL,NULL,0,NULL,NULL 6366,444114,591100,NULL,NULL,NULL,0,NULL,NULL 6367,394642,778774,Yearling Necromancer Documentation User,NULL,NULL,0,NULL,NULL 6368,15107,1154753,Good Answer Yearling,NULL,NULL,0,NULL,NULL 6369,244285,261017,Popular Question Notable Question Yearling Famous Question Nice Question Critic,NULL,NULL,0,NULL,NULL 6370,24172,1311305,Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 6371,1231283,920620,Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Critic,NULL,NULL,0,NULL,NULL 6372,7981907,920620,Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Critic,NULL,NULL,0,NULL,NULL 6373,29325,1102394,NULL,NULL,NULL,0,NULL,NULL 6374,69726,436361,Notable Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6375,693,262327,NULL,NULL,NULL,0,NULL,NULL 6376,328070,484644,NULL,NULL,NULL,0,NULL,NULL 6377,66188,833127,Editor Supporter,NULL,NULL,0,NULL,NULL 6378,508281,651983,Yearling Popular Question Nice Question Notable Question Tumbleweed Yearling Good Question Good Answer Yearling Revival Announcer Notable Question,NULL,NULL,0,NULL,NULL 6379,347155,523329,Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 6380,91542,154594,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6381,219031,279361,Curious,NULL,NULL,0,NULL,NULL 6382,163822,358324,Popular Question Revival,NULL,,0,, 6383,240119,94697,Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 6384,367734,183635,Popular Question,NULL,NULL,0,NULL,NULL 6385,176680,730126,Yearling Revival Necromancer Famous Question Good Answer,NULL,NULL,0,NULL,NULL 6386,164425,613527,NULL,NULL,NULL,0,NULL,NULL 6387,814649,157365,NULL,NULL,NULL,0,NULL,NULL 6388,1132756,1172651,NULL,NULL,NULL,0,NULL,NULL 6389,17881,755720,Yearling Necromancer Notable Question Good Answer Autobiographer Popular Question Good Answer Yearling Popular Question Yearling Curious,NULL,NULL,0,NULL,NULL 6390,75859,718526,Steward Explainer Electorate Custodian Custodian Custodian Proofreader Cleanup Reviewer Reviewer Strunk & White Steward Reviewer Steward Yearling Self-Learner Popular Question Yearling Caucus Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6391,24383,1352105,NULL,NULL,NULL,0,NULL,NULL 6392,2532137,1096662,Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6393,75756,2990,Nice Answer Enlightened Good Answer django Yearling Nice Answer Enlightened Census python Announcer Nice Answer Yearling Nice Answer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 6394,826844,778331,Supporter,NULL,NULL,0,NULL,NULL 6395,144415,275109,Good Question Nice Question Yearling Popular Question Popular Question Nice Question Popular Question Good Question Custodian Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 6396,245654,1322851,NULL,NULL,NULL,0,NULL,NULL 6397,10274729,700937,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6398,163369,700937,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6399,92878,556635,Editor Popular Question,NULL,NULL,0,NULL,NULL 6400,397146,1294026,Tumbleweed,NULL,NULL,0,NULL,NULL 6401,111560,699468,NULL,NULL,NULL,0,NULL,NULL 6402,659912,1205526,Commentator Suffrage Teacher Vox Populi Popular Question Popular Question Electorate Documentation User,NULL,NULL,0,NULL,NULL 6403,752230,774408,NULL,NULL,NULL,0,NULL,NULL 6404,21083,650329,Nice Answer Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 6405,124548,819906,NULL,NULL,NULL,0,NULL,NULL 6406,10982977,1039881,NULL,NULL,NULL,0,NULL,NULL 6407,136504,788275,NULL,NULL,NULL,0,NULL,NULL 6408,4959,1015946,NULL,NULL,NULL,0,NULL,NULL 6409,215356,1170095,Yearling Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 6410,465,120434,Nice Answer Enlightened Great Answer Guru Yearling Nice Answer Yearling Caucus Nice Answer Enlightened Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 6411,1497824,252861,Notable Question,NULL,NULL,0,NULL,NULL 6412,250066,272642,Enthusiast Nice Answer Yearling Caucus Popular Question Popular Question Popular Question Popular Question Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 6413,69405,1223687,NULL,NULL,NULL,0,NULL,NULL 6414,110427,528576,Famous Question Nice Answer Popular Question Popular Question Yearling Nice Question Notable Question Inquisitive Popular Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6415,126668,862536,Yearling Notable Question,NULL,NULL,0,NULL,NULL 6416,186036,418084,Good Question Popular Question Good Question Yearling Yearling Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 6417,54633,1161559,Popular Question Commentator Popular Question Editor,NULL,NULL,0,NULL,NULL 6418,276662,1096700,NULL,NULL,NULL,0,NULL,NULL 6419,126855,460088,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 6420,3898899,371067,Famous Question Yearling,NULL,NULL,0,NULL,NULL 6421,711645,371067,Famous Question Yearling,NULL,NULL,0,NULL,NULL 6422,366642,929283,Editor Commentator Scholar Custodian,NULL,NULL,0,NULL,NULL 6423,7835733,969192,Informed,NULL,NULL,0,NULL,NULL 6424,177974,849187,Nice Answer Yearling Necromancer Yearling Nice Answer Popular Question Good Answer Yearling Nice Question Caucus Announcer Revival Yearling Good Answer Notable Question,NULL,pIn computing an idempotent operation is one that has no additional effect if it is called more than once with the same input parameters For example removing an item from set can be considered an idempotent operation on the set ppIn mathematics an idempotent operation is one where emf em For example the codeabs code function is idempotent because codeabs abs abs code for all codex code ppThese slightly different definitions can be reconciled by considering that emx em in the mathematical definition represents the state of an object and emf em is an operation that may mutate that object For example consider the href https docs python org library stdtypes html set rel noreferrer Python codeset code and its codediscard code method The codediscard code method removes an element from set and does nothing if the element does not exist So ppre codemy set discard code prephas exactly the same effect as doing the same operation twice ppre codemy set discard my set discard code prepIdempotent operations are often used in the design of network protocols where request to perform an operation is guaranteed to happen at least once but might also happen more than once If the operation is idempotent then there is no harm in performing the operation two or more times ppSee the Wikipedia article on href http en wikipedia org wiki Idempotence rel noreferrer idempotence for more information phrp supThe above answer previously had some incorrect and misleading examples Comments below written before April 2014 refer to an older revision sup For those who speak Russian head to https ru wikipedia org wiki D0 98 D0 B4 D0 B5 D0 BC D0 BF D0 BE D1 82 D0 B5 D0 BD D1 82 D0 BD D0 BE D1 81 D1 82 D1 8C Clearest definition by far,0,NULL,NULL 6425,168986,588785,Good Question Notable Question Notable Question Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6426,1968,395596,NULL,NULL,NULL,0,NULL,NULL 6427,158190,1326879,Necromancer Student Editor Yearling Nice Answer Autobiographer Commentator,NULL,NULL,0,NULL,NULL 6428,144003,1305424,NULL,NULL,NULL,0,NULL,NULL 6429,208802,1402481,NULL,NULL,NULL,0,NULL,NULL 6430,215561,542793,NULL,NULL,NULL,0,NULL,NULL 6431,885991,1082160,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 6432,74112,615318,Yearling Yearling Informed Yearling,NULL,NULL,0,NULL,NULL 6433,83070,1313736,NULL,NULL,NULL,0,NULL,NULL 6434,638346,1519572,NULL,NULL,NULL,0,NULL,NULL 6435,55298,245652,Good Answer Popular Question Popular Question Yearling Notable Question Notable Question Guru Yearling Nice Question Notable Question Nice Answer Notable Question Yearling Notable Question Notable Question Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 6436,3257344,245652,Good Answer Popular Question Popular Question Yearling Notable Question Notable Question Guru Yearling Nice Question Notable Question Nice Answer Notable Question Yearling Notable Question Notable Question Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 6437,82846,205270,Notable Question Popular Question Socratic Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Nice Answer Nice Question Famous Question Popular Question Popular Question Famous Question Popular Question Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Famous Question Nice Answer Famous Question Popular Question Notable Question Notable Question Nice Question Good Answer Nice Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Great Question Famous Question Popular Question Popular Question Notable Question Famous Question Good Question Popular Question Notable Question Yearling Good Question Notable Question Good Question Nice Question Popular Question Notable Question Nice Question Popular Question Good Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Favorite Question Nice Answer Popular Question Popular Question Good Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Good Question Yearling Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Popular Question Good Question Great Question Nice Question Good Answer Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Notable Question Good Question Notable Question Notable Question Nice Question Nice Question Notable Question Notable Question Nice Question Great Question Popular Question Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 6438,10831,196550,Yearling Revival Yearling Necromancer Guru Autobiographer Great Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 6439,4111729,106688,Yearling Famous Question Yearling Notable Question Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 6440,254763,360361,NULL,NULL,NULL,0,NULL,NULL 6441,486166,669163,Popular Question Yearling Caucus Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 6442,135753,514753,NULL,NULL,NULL,0,NULL,NULL 6443,35772,1044267,NULL,NULL,NULL,0,NULL,NULL 6444,558909,1312280,Custodian Teacher Editor Informed Supporter Scholar Commentator,NULL,NULL,0,NULL,NULL 6445,424444,438760,Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6446,356912,873078,NULL,NULL,NULL,0,NULL,NULL 6447,40833,842016,Yearling Popular Question Notable Question Popular Question Yearling Notable Question Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6448,526069,206340,NULL,NULL,NULL,0,NULL,NULL 6449,827873,472526,NULL,NULL,NULL,0,NULL,NULL 6450,256110,863106,NULL,NULL,NULL,0,NULL,NULL 6451,1040222,166488,Notable Question Popular Question Yearling Popular Question Good Answer Nice Question Yearling Popular Question Popular Question Nice Question Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 6452,1516673,432254,Famous Question Famous Question Great Answer Yearling Famous Question Popular Question Caucus Popular Question Yearling Popular Question Popular Question Yearling Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6453,19100,853920,Yearling Announcer Announcer Yearling Announcer Announcer Nice Answer Enlightened Guru Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 6454,192229,390959,NULL,NULL,NULL,0,NULL,NULL 6455,362296,875265,Necromancer Organizer Revival Revival Yearling Explainer Custodian Necromancer Nice Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6456,224739,1444040,Popular Question Autobiographer Teacher,NULL,NULL,0,NULL,NULL 6457,564530,60935,Good Question Nice Answer,NULL,NULL,0,NULL,NULL 6458,3253,187103,Good Answer Good Answer Stellar Question Good Answer Yearling Nice Answer Revival Necromancer Good Answer Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened Yearling ideavim Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 6459,6998525,279441,NULL,NULL,NULL,0,NULL,NULL 6460,583733,279441,NULL,NULL,NULL,0,NULL,NULL 6461,265836,436350,Notable Question Yearling Enthusiast Good Question,NULL,NULL,0,NULL,NULL 6462,1339,312757,NULL,NULL,NULL,0,NULL,NULL 6463,119291,808537,Yearling Revival Yearling Revival,NULL,NULL,0,NULL,NULL 6464,363966,808537,Yearling Revival Yearling Revival,NULL,NULL,0,NULL,NULL 6465,117513,355357,Curious Commentator Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 6466,1103075,1178704,Student,NULL,NULL,0,NULL,NULL 6467,1286027,1346949,NULL,NULL,NULL,0,NULL,NULL 6468,62305,1150421,NULL,NULL,NULL,0,NULL,NULL 6469,6446673,862010,NULL,NULL,NULL,0,NULL,NULL 6470,171147,862010,NULL,NULL,NULL,0,NULL,NULL 6471,114249,993424,Notable Question Scholar,NULL,NULL,0,NULL,NULL 6472,2155558,124250,Notable Question Caucus,NULL,NULL,0,NULL,NULL 6473,17865,58146,Necromancer Yearling Popular Question Necromancer Famous Question Necromancer Good Answer Revival Yearling Announcer Famous Question Necromancer Nice Answer Yearling Nice Answer Great Question Nice Answer Announcer,NULL,pBefore going further check for the following reasons that are under your control pulliIs the folder set as current directory of your process If yes change it to something else first liliHave you opened file or loaded DLL from that folder and forgot to close unload it li ulpOtherwise check for the following legitimate reasons outside of your control pulliThere are files marked as read only in that folder liliYou don have deletion permission to some of those files liliThe file or subfolder is open in Explorer or another app li ulpIf any of the above is the problem you should understand why it happens before trying to improve your deletion code emShould em your app be deleting read only or inaccessible files Who marked them that way and why ppOnce you have ruled out the above reasons there still possibility of spurious failures The deletion will fail if anyone holds handle to any of the files or folders being deleted and there are many reasons why someone may be enumerating the folder or reading its files pullisearch indexers lilianti viruses lilibackup software li ulpThe general approach to deal with spurious failures is to try multiple times pausing between the attempts You obviously don want to keep trying forever so you should give up after certain number of attempts and either throw an exception or ignore the error Like this ppre codeprivate static void DeleteRecursivelyWithMagicDust string destinationDir const int magicDust 10 for var gnomes gnomes lt magicDust gnomes try Directory Delete destinationDir true catch DirectoryNotFoundException return good catch IOException System IO IOException The directory is not empty System Diagnostics Debug WriteLine Gnomes prevent deletion of Applying magic dust attempt destinationDir gnomes see http stackoverflow com questions 329355 cannot delete directory with directory deletepath true for more magic Thread Sleep 50 continue return depending on your use case consider throwing an exception here code prepIn my opinion helper like that should be used for all deletions because spurious failures are always possible However YOU SHOULD ADAPT THIS CODE TO YOUR USE CASE not just blindly copy it ppI had spurious failures for an internal data folder generated by my app located under LocalAppData so my analysis goes like this polli pThe folder is controlled solely by my application and the user has no valid reason to go and mark things as read only or inaccessible inside that folder so don try to handle that case lili pThere no valuable user created stuff in there so there no risk of forcefully deleting something by mistake lili pBeing an internal data folder don expect it to be open in explorer at least don feel the need to specifically handle the case fine handling that case via support lili pIf all attempts fail choose to ignore the error Worst case the app fails to unpack some newer resources crashes and prompts the user to contact support which is acceptable to me as long as it does not happen often Or if the app does not crash it will leave some old data behind which again is acceptable to me lili pI choose to limit retries to 500ms 50 10 This is an arbitrary threshold which works in practice wanted the threshold to be short enough so that users wouldn kill the app thinking that it has stopped responding On the other hand half second is plenty of time for the offender to finish processing my folder Judging from other SO answers which sometimes find even codeSleep code to be acceptable very few users will ever experience more than single retry lili pI retry every 50ms which is another arbitrary number feel that if file is being processed indexed checked when try to delete it 50ms is about the right time to expect the processing to be completed in my case Also 50ms is small enough to not result in noticeable slowdown again codeSleep code seems to be enough in many cases so we don want to delay too much lili pThe code retries on any IO exceptions don normally expect any exceptions accessing LocalAppData so chose simplicity and accepted the risk of 500ms delay in case legitimate exception happens also didn want to figure out way to detect the exact exception that want to retry on li ol You don need the comparison if we re out of the loop we ve failed And yes in many cases you will want to throw exception then add appropriate error handling code up the stack likely with user visible message,0,NULL,NULL 6474,76024,581564,NULL,NULL,NULL,0,NULL,NULL 6475,579921,85863,Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 6476,55607,99209,Nice Answer Yearling Good Question Famous Question Yearling Caucus Constituent Good Question Yearling Famous Question Custodian,NULL,NULL,0,NULL,NULL 6477,112779,13719,Yearling Necromancer,NULL,NULL,0,NULL,NULL 6478,1203043,857168,NULL,NULL,NULL,0,NULL,NULL 6479,237982,388038,Popular Question Yearling Notable Question Nice Question Self-Learner Nice Question Nice Answer Yearling Notable Question Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 6480,261546,437218,NULL,NULL,NULL,0,NULL,NULL 6481,916289,914692,Nice Answer Famous Question Notable Question Self-Learner Nice Question Caucus Constituent Famous Question Popular Question Popular Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 6482,193670,366212,NULL,NULL,NULL,0,NULL,NULL 6483,585165,539212,NULL,NULL,NULL,0,NULL,NULL 6484,320675,148726,Notable Question Commentator Critic Popular Question,NULL,NULL,0,NULL,NULL 6485,216105,449460,Notable Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 6486,535312,326806,Revival Commentator Yearling Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 6487,15869,217076,Good Answer Good Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Disciplined Yearling Famous Question Guru Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6488,178153,340257,NULL,NULL,NULL,0,NULL,NULL 6489,1037980,1053778,NULL,NULL,NULL,0,NULL,NULL 6490,157037,1061905,Commentator,NULL,NULL,0,NULL,NULL 6491,661855,1055825,Investor Notable Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 6492,3528622,1166995,NULL,NULL,NULL,0,NULL,NULL 6493,261199,725502,NULL,NULL,NULL,0,NULL,NULL 6494,2847972,1203558,Nice Answer Enlightened Notable Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 6495,465743,1203558,Nice Answer Enlightened Notable Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 6496,2224601,1203558,Nice Answer Enlightened Notable Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 6497,4427215,721617,NULL,NULL,NULL,0,NULL,NULL 6498,1377420,1018647,NULL,NULL,NULL,0,NULL,NULL 6499,2374060,596183,Nice Answer Enlightened Commentator,NULL,NULL,0,NULL,NULL 6500,1409543,1111098,Good Question,NULL,NULL,0,NULL,NULL 6501,761917,1053566,NULL,NULL,NULL,0,NULL,NULL 6502,475703,577086,NULL,NULL,NULL,0,NULL,NULL 6503,629718,567558,Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 6504,283963,1323448,NULL,NULL,NULL,0,NULL,NULL 6505,235483,927813,NULL,NULL,NULL,0,NULL,NULL 6506,14926,418721,NULL,NULL,NULL,0,NULL,NULL 6507,166509,1226910,Editor,NULL,NULL,0,NULL,NULL 6508,357229,1354236,NULL,NULL,NULL,0,NULL,NULL 6509,48423,267180,Custodian Yearling Necromancer Good Answer Yearling Caucus Custodian Caucus Revival,NULL,NULL,0,NULL,NULL 6510,41795,1010311,NULL,NULL,NULL,0,NULL,NULL 6511,217037,219594,Nice Answer Nice Question Civic Duty Yearling Nice Answer Caucus Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 6512,226774,1303564,NULL,NULL,NULL,0,NULL,NULL 6513,124779,513353,NULL,NULL,NULL,0,NULL,NULL 6514,667945,1264227,Student Nice Question Scholar Popular Question,NULL,NULL,0,NULL,NULL 6515,139778,111027,NULL,NULL,NULL,0,NULL,NULL 6516,521738,231973,NULL,NULL,NULL,0,NULL,NULL 6517,2005629,1228429,Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Civic Duty Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6518,294684,684222,Great Answer Yearling Nice Answer Yearling Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 6519,2815428,4431,Enthusiast Good Answer Famous Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 6520,73504,688338,Scholar Student,NULL,NULL,0,NULL,NULL 6521,3011543,360671,Student,NULL,NULL,0,NULL,NULL 6522,77628,360671,Student,NULL,NULL,0,NULL,NULL 6523,194386,178954,NULL,NULL,NULL,0,NULL,NULL 6524,46210,1390143,NULL,NULL,NULL,0,NULL,NULL 6525,252549,168086,Fanatic Citizen Patrol Notable Question Revival Yearling Organizer Nice Question Notable Question Famous Question Nice Answer Enlightened Caucus Popular Question Notable Question Notable Question Nice Answer Revival Yearling Famous Question Good Question Census Caucus Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6526,184852,362224,NULL,NULL,NULL,0,NULL,NULL 6527,115867,677737,Informed,NULL,NULL,0,NULL,NULL 6528,357482,1159910,NULL,NULL,NULL,0,NULL,NULL 6529,613213,312480,Yearling Necromancer Nice Question Popular Question Necromancer Popular Question Famous Question Nice Answer Enlightened Yearling Nice Answer Nice Question Yearling Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 6530,254421,213296,Nice Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 6531,75490,962531,NULL,NULL,NULL,0,NULL,NULL 6532,106616,1361983,NULL,NULL,NULL,0,NULL,NULL 6533,1976796,1029100,NULL,NULL,NULL,0,NULL,NULL 6534,73686,496776,NULL,NULL,NULL,0,NULL,NULL 6535,428908,1012099,NULL,NULL,NULL,0,NULL,NULL 6536,113300,844537,NULL,NULL,NULL,0,NULL,NULL 6537,1115531,867339,Popular Question Custodian Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 6538,275311,805266,Announcer Nice Answer Enlightened Good Answer Announcer Booster Yearling Nice Question Revival Revival Nice Answer Enlightened Caucus Popular Question Necromancer Custodian Nice Answer Announcer Custodian Custodian Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened Announcer Documentation User Nice Answer Necromancer Popular Question Yearling Necromancer Famous Question node.js Custodian,NULL,NULL,0,NULL,NULL 6539,582257,1325339,Critic Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 6540,785372,267667,NULL,NULL,NULL,0,NULL,NULL 6541,198617,1180560,NULL,NULL,NULL,0,NULL,NULL 6542,3050312,1180560,NULL,NULL,NULL,0,NULL,NULL 6543,3170378,1180560,NULL,NULL,NULL,0,NULL,NULL 6544,126530,393399,NULL,NULL,NULL,0,NULL,NULL 6545,83872,221539,NULL,NULL,NULL,0,NULL,NULL 6546,601513,187266,Notable Question,NULL,NULL,0,NULL,NULL 6547,881668,916514,NULL,NULL,NULL,0,NULL,NULL 6548,20602,193246,Yearling Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 6549,406030,109407,Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Famous Question Famous Question Popular Question Good Question Stellar Question Famous Question Yearling Notable Question Peer Pressure Notable Question Nice Question Popular Question Nice Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6550,500879,757100,semantic-web sparql Yearling jena Tag Editor Yearling Caucus fuseki Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6551,10427,223490,Nice Question Popular Question Nice Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6552,76008,187264,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 6553,285532,1291174,NULL,NULL,NULL,0,NULL,NULL 6554,2026954,1303740,Yearling Critic,NULL,NULL,0,NULL,NULL 6555,155012,205694,Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 6556,434111,1490210,NULL,NULL,NULL,0,NULL,NULL 6557,147009,81679,Yearling Popular Question,NULL,NULL,0,NULL,NULL 6558,1816830,81679,Yearling Popular Question,NULL,NULL,0,NULL,NULL 6559,1252422,26721,Famous Question Good Question Yearling Nice Question Favorite Question Good Answer Notable Question Yearling Great Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 6560,193812,216530,NULL,NULL,NULL,0,NULL,NULL 6561,133400,15687,Explainer Yearling Organizer Popular Question Yearling Necromancer Documentation User Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6562,181247,421799,NULL,NULL,NULL,0,NULL,NULL 6563,1514598,368283,NULL,NULL,NULL,0,NULL,NULL 6564,165925,8140,NULL,NULL,NULL,0,NULL,NULL 6565,263907,1381789,NULL,NULL,pThe better way is to use the full path to installed script it will run in its virtualenv automatically ppre codetasks name install python packages pip name item virtualenv venv with items buildbot name create buildbot master command venv bin buildbot create master buildbot creates buildbot buildbot tac code pre It worth noting for anyone stumbling across this while scratching their head that while calling the executable at it full path usually works it not quite exactly the same https github com pypa pipenv issues 393 issue 233266934,0,NULL,NULL 6566,145755,1067,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 6567,48879,374873,Yearling Good Answer Good Answer Necromancer Yearling Nice Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 6568,81125,782942,NULL,NULL,NULL,0,NULL,NULL 6569,243620,116990,Nice Answer Necromancer Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 6570,1439,609144,Popular Question Nice Question Popular Question Famous Question Popular Question Critic,NULL,NULL,0,NULL,NULL 6571,185603,21120,NULL,NULL,NULL,0,NULL,NULL 6572,59981,311428,NULL,NULL,NULL,0,NULL,NULL 6573,474502,366829,Supporter Necromancer,NULL,NULL,0,NULL,NULL 6574,377006,78104,Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6575,20281,389559,NULL,NULL,NULL,0,NULL,NULL 6576,393221,46575,Electorate Notable Question Caucus Yearling Census Good Answer Popular Question Yearling Census Nice Question Notable Question,NULL,NULL,0,NULL,NULL 6577,19985,15726,NULL,NULL,NULL,0,NULL,NULL 6578,337980,437862,Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 6579,325809,4805,Custodian Famous Question Famous Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 6580,31591,672958,Excavator,NULL,NULL,0,NULL,NULL 6581,132088,275482,NULL,NULL,NULL,0,NULL,NULL 6582,71215,1097065,Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Notable Question Scholar Nice Answer Enlightened Good Answer Investor Altruist Nice Answer Yearling Guru Guru Enlightened Caucus Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 6583,529877,275354,Guru Nice Answer Enlightened Yearling Notable Question Nice Answer Enlightened Great Answer Great Answer Guru Nice Answer Enlightened Yearling Self-Learner Nice Answer Famous Question Great Answer Nice Answer Enlightened Good Answer Good Answer Popular Question Notable Question Census Good Question Yearling Notable Question Famous Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 6584,10890,506230,Notable Question Good Question Notable Question Custodian Popular Question Popular Question Yearling Proofreader Announcer Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6585,50933,1546406,NULL,NULL,NULL,0,NULL,NULL 6586,339156,10569,Disciplined Nice Answer Custodian Custodian Yearling Reviewer Nice Answer Stellar Question Stellar Question Notable Question Nice Question Nice Answer Yearling Nice Question Nice Answer Enlightened Census Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6587,361082,1052854,NULL,NULL,NULL,0,NULL,NULL 6588,94464,337528,Yearling Popular Question Populist Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 6589,36390,432773,Nice Answer,NULL,NULL,0,NULL,NULL 6590,1055792,1020732,NULL,NULL,NULL,0,NULL,NULL 6591,616597,569291,Teacher Enthusiast,NULL,NULL,0,NULL,NULL 6592,172482,847187,Yearling Caucus Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 6593,15777,302100,Great Answer Yearling,NULL,NULL,0,NULL,NULL 6594,302355,120447,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 6595,140279,1423535,NULL,NULL,NULL,0,NULL,NULL 6596,293279,1143002,NULL,NULL,NULL,0,NULL,NULL 6597,426804,431166,Yearling Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 6598,271975,431166,Yearling Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 6599,892392,321521,NULL,NULL,NULL,0,NULL,NULL 6600,326603,1154351,NULL,NULL,NULL,0,NULL,NULL 6601,37144,4468,Nice Question Yearling Nice Answer Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 6602,1508519,1415620,Good Answer,NULL,NULL,0,NULL,NULL 6603,63342,636035,NULL,NULL,NULL,0,NULL,NULL 6604,1045711,1347629,Yearling Announcer,NULL,NULL,0,NULL,NULL 6605,6011,267998,Benefactor Revival Famous Question Nice Question Famous Question Necromancer Yearling Yearling Documentation User Famous Question Famous Question Census Notable Question Necromancer Yearling Nice Question,NULL,NULL,0,NULL,NULL 6606,72851,1052457,NULL,NULL,NULL,0,NULL,NULL 6607,131379,1480603,Yearling,NULL,NULL,0,NULL,NULL 6608,644735,1396575,Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Great Question Yearling Nice Question Stellar Question Popular Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 6609,401451,584597,Yearling Notable Question Good Answer Good Answer Excavator Nice Answer Good Answer Nice Answer Yearling Custodian Civic Duty Nice Question Populist Nice Answer Enlightened Popular Question Nice Answer Great Answer Nice Answer Famous Question Yearling Nice Answer Good Question Great Answer,NULL,NULL,0,NULL,NULL 6610,21930,8454,Good Answer Good Answer Nice Answer Good Answer Revival Nice Answer Enlightened Good Answer Nice Answer Necromancer Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Census Good Question Nice Answer Nice Answer c Good Answer Good Answer Good Answer Good Answer Popular Question Yearling Steward Revival Announcer Nice Answer Good Answer Nice Answer Census Necromancer Nice Answer Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6611,300021,1013757,Necromancer,NULL,NULL,0,NULL,NULL 6612,376270,445336,Autobiographer,NULL,NULL,0,NULL,NULL 6613,188088,1510889,NULL,NULL,NULL,0,NULL,NULL 6614,63919,766486,NULL,NULL,NULL,0,NULL,NULL 6615,119588,1391161,NULL,NULL,NULL,0,NULL,NULL 6616,2381763,1391161,NULL,NULL,NULL,0,NULL,NULL 6617,968718,1052002,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 6618,231121,735706,NULL,NULL,NULL,0,NULL,NULL 6619,64721,157346,Yearling Populist,NULL,NULL,0,NULL,NULL 6620,304698,309252,Citizen Patrol,NULL,NULL,0,NULL,NULL 6621,102500,5901,Caucus,NULL,NULL,0,NULL,NULL 6622,65170,729767,NULL,NULL,NULL,0,NULL,NULL 6623,126109,203805,Popular Question Revival Notable Question Promoter,NULL,NULL,0,NULL,NULL 6624,1071116,796047,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 6625,186764,912423,NULL,NULL,NULL,0,NULL,NULL 6626,2028371,527862,Popular Question,NULL,NULL,0,NULL,NULL 6627,208229,1148064,NULL,NULL,NULL,0,NULL,NULL 6628,185505,288412,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6629,158022,591031,NULL,NULL,NULL,0,NULL,NULL 6630,1168236,171259,Popular Question Popular Question Popular Question Popular Question Custodian Caucus,NULL,NULL,0,NULL,NULL 6631,90579,986732,NULL,NULL,NULL,0,NULL,NULL 6632,1610070,1295906,Reviewer Electorate Notable Question Yearling Marshal Custodian Excavator Caucus Copy Editor Constituent Proofreader Tag Editor Yearling Famous Question Caucus Constituent Documentation User Custodian Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 6633,22844,1124084,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 6634,11335144,1124084,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 6635,9737,457670,Informed,NULL,NULL,0,NULL,NULL 6636,405115,5865,Famous Question Popular Question Yearling Caucus Popular Question Great Answer Good Question Notable Question Yearling Nice Question Benefactor Famous Question Revival Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6637,698237,405628,NULL,NULL,NULL,0,NULL,NULL 6638,543386,794143,NULL,NULL,NULL,0,NULL,NULL 6639,1135563,14877,Nice Answer Nice Question Popular Question Good Answer Nice Answer Yearling Nice Answer Enlightened Necromancer Great Question Guru Enlightened Notable Question Nice Answer Enlightened Great Answer Yearling Popular Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 6640,517410,756852,NULL,NULL,NULL,0,NULL,NULL 6641,370171,1061794,NULL,NULL,NULL,0,NULL,NULL 6642,4573394,930826,NULL,NULL,NULL,0,NULL,NULL 6643,1261464,930826,NULL,NULL,NULL,0,NULL,NULL 6644,1052240,992933,NULL,NULL,NULL,0,NULL,NULL 6645,9858,1376256,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 6646,31304,17113,Notable Question,NULL,NULL,0,NULL,NULL 6647,291637,288317,Popular Question Yearling Notable Question Caucus Yearling Famous Question Notable Question Popular Question Famous Question Yearling Caucus Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 6648,484607,1369934,NULL,NULL,NULL,0,NULL,NULL 6649,558271,227546,Tenacious Good Answer Necromancer Caucus Good Answer Yearling Populist Yearling Revival Good Answer Pundit Guru Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6650,504582,1447888,NULL,NULL,NULL,0,NULL,NULL 6651,3946,1550235,Informed Autobiographer,NULL,NULL,0,NULL,NULL 6652,565574,899834,Curious Documentation User Tumbleweed,NULL,NULL,0,NULL,NULL 6653,790375,433060,NULL,NULL,NULL,0,NULL,NULL 6654,165128,1161565,Popular Question,NULL,NULL,0,NULL,NULL 6655,541497,1246468,NULL,NULL,NULL,0,NULL,NULL 6656,3371,653084,NULL,NULL,NULL,0,NULL,NULL 6657,29467,931803,NULL,NULL,NULL,0,NULL,NULL 6658,127129,46460,Nice Question Notable Question Good Answer Yearling Nice Answer Good Question Good Answer Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Answer Yearling Nice Question Good Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6659,720817,1046505,Supporter,NULL,NULL,0,NULL,NULL 6660,127625,2108,Good Question Yearling Peer Pressure Famous Question Yearling Famous Question Good Question Nice Question Popular Question Favorite Question Great Answer Great Question Yearling,NULL,NULL,0,NULL,NULL 6661,105612,12367,Popular Question Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 6662,618655,523025,Supporter,NULL,NULL,0,NULL,NULL 6663,483249,310988,Custodian Citizen Patrol Yearling Quorum Yearling Nice Question Nice Answer Cleanup Popular Question Popular Question Revival Caucus Famous Question Disciplined Constituent Necromancer Popular Question Custodian Civic Duty Suffrage Vox Populi Tag Editor Excavator Notable Question Peer Pressure Good Question Explainer Yearling Custodian Caucus Constituent Popular Question Notable Question Notable Question Documentation User Famous Question Nice Question Nice Answer Popular Question Inquisitive Custodian Census c# Announcer Good Answer Necromancer Nice Answer Enlightened Caucus Constituent Popular Question Yearling Nice Question Notable Question Necromancer Custodian Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 6664,2195753,957794,Editor Self-Learner Yearling Commentator Enthusiast Caucus Popular Question Yearling Nice Answer Caucus Critic,NULL,NULL,0,NULL,NULL 6665,373600,1267758,Yearling,NULL,NULL,0,NULL,NULL 6666,893412,433767,Census,NULL,NULL,0,NULL,NULL 6667,3312,829334,NULL,NULL,NULL,0,NULL,NULL 6668,1358327,584419,Teacher Student,NULL,NULL,0,NULL,NULL 6669,410113,1381122,Teacher,NULL,NULL,0,NULL,NULL 6670,3290395,1298826,NULL,NULL,NULL,0,NULL,NULL 6671,354175,1457871,Necromancer Yearling Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 6672,193037,116926,Yearling Commentator Editor Informed Autobiographer Yearling Caucus,NULL,NULL,0,NULL,NULL 6673,71455,632688,Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Guru Popular Question Good Answer Good Answer Custodian Guru Yearling,NULL,pI ll throw another method out there since it the shortest way can think of ppre codea sort by amp to code pre That is good question Here is good thread which explains it in detail https stackoverflow com questions 1961030 ruby ampersand colon shortcut,0,NULL,NULL 6674,17659,332622,Nice Question Yearling Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Yearling Good Question Famous Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6675,12821,262478,Yearling mqtt Revival Guru Unsung Hero Yearling Proofreader Citizen Patrol Announcer Caucus android Custodian Yearling twitter,NULL,NULL,0,NULL,NULL 6676,1512137,1038002,Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Census Notable Question Necromancer Popular Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 6677,367453,66542,Yearling Good Question Notable Question Nice Answer Notable Question Yearling Popular Question Good Answer Great Answer Great Answer Custodian Yearling Great Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 6678,167980,563887,NULL,NULL,NULL,0,NULL,NULL 6679,319916,730262,Popular Question,NULL,NULL,0,NULL,NULL 6680,56748,1397051,Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Famous Question Yearling Great Answer Great Answer Great Answer Yearling Great Answer Self-Learner Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 6681,355934,1266795,Custodian Nice Answer Yearling Yearling Popular Question Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 6682,1563716,151471,Nice Question Informed Suffrage Mortarboard Vox Populi ios swift Excavator Proofreader Populist Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Custodian Documentation User Census Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 6683,8941,185681,NULL,NULL,NULL,0,NULL,NULL 6684,1172557,1383591,NULL,NULL,NULL,0,NULL,NULL 6685,96846,870178,Popular Question Popular Question Popular Question Nice Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6686,1059702,870178,Popular Question Popular Question Popular Question Nice Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6687,3901853,1082598,NULL,NULL,NULL,0,NULL,NULL 6688,1336093,1501878,Informed,NULL,NULL,0,NULL,NULL 6689,50678,510260,NULL,NULL,NULL,0,NULL,NULL 6690,289037,445061,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 6691,206553,786463,Notable Question Popular Question Nice Question Notable Question Yearling Popular Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 6692,36739,1188161,NULL,NULL,NULL,0,NULL,NULL 6693,596235,1130909,Notable Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Promoter Benefactor Yearling Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6694,205078,1546471,NULL,NULL,NULL,0,NULL,NULL 6695,1310216,1079618,NULL,NULL,NULL,0,NULL,NULL 6696,2518028,942147,Famous Question Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 6697,362335,235431,Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 6698,345247,117710,Notable Question Nice Answer Yearling Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 6699,72761,29810,NULL,NULL,NULL,0,NULL,NULL 6700,318763,110265,Yearling Guru,NULL,NULL,0,NULL,NULL 6701,330261,1026346,NULL,NULL,NULL,0,NULL,NULL 6702,349232,312161,Yearling Great Answer Popular Question Guru Announcer Popular Question Informed Yearling Excavator Caucus Announcer Popular Question Explainer Documentation User Census Nice Answer Yearling Popular Question Nice Question Notable Question Tenacious,NULL,NULL,0,NULL,NULL 6703,446838,384133,NULL,NULL,NULL,0,NULL,NULL 6704,174133,680869,NULL,NULL,NULL,0,NULL,NULL 6705,30883,995787,NULL,NULL,NULL,0,NULL,NULL 6706,159100,552065,Nice Question,NULL,NULL,0,NULL,NULL 6707,1518953,1484175,NULL,NULL,NULL,0,NULL,NULL 6708,204157,1240082,Autobiographer Informed Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 6709,209704,557712,NULL,NULL,NULL,0,NULL,NULL 6710,223330,1377468,NULL,NULL,NULL,0,NULL,NULL 6711,264125,963521,Enthusiast Organizer Civic Duty Custodian Popular Question Yearling Notable Question Documentation User,NULL,NULL,0,NULL,NULL 6712,1693871,684841,NULL,NULL,NULL,0,NULL,NULL 6713,1434693,870693,Critic Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6714,1543052,897085,Informed Autobiographer,NULL,NULL,0,NULL,NULL 6715,1598604,528264,NULL,NULL,NULL,0,NULL,NULL 6716,270133,587361,NULL,NULL,NULL,0,NULL,NULL 6717,202158,518942,Necromancer,NULL,NULL,0,NULL,NULL 6718,238657,887890,NULL,NULL,NULL,0,NULL,NULL 6719,1520670,908425,Excavator Popular Question Nice Question Notable Question Popular Question Good Answer Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Caucus Constituent Notable Question Yearling Good Answer Necromancer Popular Question Famous Question Good Answer Popular Question Civic Duty Yearling,NULL,NULL,0,NULL,NULL 6720,305718,1296322,NULL,NULL,NULL,0,NULL,NULL 6721,70829,839925,Informed Yearling Yearling Yearling Yearling Critic Tenacious Yearling Caucus Yearling Nice Answer Good Answer Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 6722,352409,914358,Editor Supporter Revival Critic Caucus Yearling Nice Answer Enlightened Necromancer Informed Caucus,NULL,NULL,0,NULL,NULL 6723,64588,1498092,Critic,NULL,NULL,0,NULL,NULL 6724,274992,1443857,Informed Autobiographer,NULL,NULL,0,NULL,NULL 6725,275011,1443857,Informed Autobiographer,NULL,NULL,0,NULL,NULL 6726,73507,121653,NULL,NULL,NULL,0,NULL,NULL 6727,1768011,121653,NULL,NULL,NULL,0,NULL,NULL 6728,1410408,928691,NULL,NULL,NULL,0,NULL,NULL 6729,1755219,928691,NULL,NULL,NULL,0,NULL,NULL 6730,128131,327708,Yearling Yearling Revival Caucus Yearling Necromancer Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 6731,28755,390054,Good Answer Popular Question Yearling Nice Answer Enlightened Yearling Good Answer Popular Question Great Answer Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 6732,1512567,1543974,NULL,NULL,NULL,0,NULL,NULL 6733,496239,772481,Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Announcer Announcer Necromancer Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6734,556134,979928,Yearling Notable Question Civic Duty Revival Necromancer,NULL,NULL,0,NULL,NULL 6735,1481784,464519,NULL,NULL,NULL,0,NULL,NULL 6736,1564776,120440,Nice Question Notable Question Yearling Famous Question Nice Answer Caucus Nice Question Popular Question Yearling Popular Question Documentation User Organizer Civic Duty Explainer Custodian Popular Question Self-Learner Yearling Popular Question,NULL,Algorithm to return all combinations of elements from algorithm combinations pI want to write function that takes an array of letters as an argument and number of those letters to select ppSay you provide an array of letters and want to select letters from that Then you should get ppre code8 56 code prepArrays or words in return consisting of letters each There nice cogent article with what looks like an efficient implementation here https msdn microsoft com en us library aa289166 vs 71 aspx,0,NULL,NULL 6737,979699,115985,Great Answer Nice Answer Good Answer Good Answer Great Answer Yearling Good Question Famous Question Good Answer sql Notable Question Generalist Yearling Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Guru Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 6738,118195,763114,NULL,NULL,NULL,0,NULL,NULL 6739,220058,1217560,Excavator Popular Question Announcer,NULL,NULL,0,NULL,NULL 6740,176323,1125253,NULL,NULL,NULL,0,NULL,NULL 6741,132414,876349,Notable Question,NULL,NULL,0,NULL,NULL 6742,169321,337168,Popular Question,NULL,NULL,0,NULL,NULL 6743,1350503,540045,Enthusiast,NULL,NULL,0,NULL,NULL 6744,1536380,1185316,NULL,NULL,NULL,0,NULL,NULL 6745,1100136,440450,NULL,NULL,NULL,0,NULL,NULL 6746,86913,1033953,Necromancer Yearling Curious,NULL,NULL,0,NULL,NULL 6747,170622,1370545,Informed Autobiographer,NULL,NULL,0,NULL,NULL 6748,195028,71092,Nice Question,NULL,NULL,0,NULL,NULL 6749,24613,615370,Good Answer,NULL,NULL,0,NULL,NULL 6750,733616,793521,Nice Question,NULL,NULL,0,NULL,NULL 6751,55422,89384,NULL,NULL,NULL,0,NULL,NULL 6752,155697,191069,Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6753,307385,1549523,Curious Documentation User Custodian Yearling Custodian Popular Question Custodian Enthusiast Caucus Yearling Constituent Civic Duty Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6754,1130335,1168396,Teacher Enthusiast,NULL,NULL,0,NULL,NULL 6755,46379,43977,Yearling Yearling,NULL,NULL,0,NULL,NULL 6756,2839209,43977,Yearling Yearling,NULL,NULL,0,NULL,NULL 6757,7964459,1201672,NULL,NULL,NULL,0,NULL,NULL 6758,178696,186153,Famous Question Inquisitive Popular Question Notable Question Notable Question Popular Question Notable Question Caucus Nice Answer Popular Question Nice Question Yearling Tumbleweed Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6759,9884,427193,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6760,629504,1233865,Nice Answer Notable Question Critic,NULL,NULL,0,NULL,NULL 6761,726517,1103943,Good Answer,NULL,NULL,0,NULL,NULL 6762,466534,1263009,NULL,NULL,NULL,0,NULL,NULL 6763,207402,1063008,NULL,NULL,NULL,0,NULL,NULL 6764,290546,464886,Good Question Good Answer Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 6765,52864,340300,Nice Question Notable Question Revival Famous Question Yearling,NULL,NULL,0,NULL,NULL 6766,97059,306602,Good Answer Yearling Nice Answer Enlightened Great Answer Great Answer Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 6767,174731,1424975,Notable Question,NULL,NULL,0,NULL,NULL 6768,11160340,1105870,Popular Question Popular Question Yearling Necromancer Nice Answer Enlightened Popular Question Announcer,NULL,NULL,0,NULL,NULL 6769,313296,1105870,Popular Question Popular Question Yearling Necromancer Nice Answer Enlightened Popular Question Announcer,NULL,NULL,0,NULL,NULL 6770,32461,348392,Critic Informed Civic Duty Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 6771,2163785,348392,Critic Informed Civic Duty Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 6772,235106,369822,Yearling Enthusiast Critic Popular Question Caucus Census Notable Question Popular Question Caucus Documentation User Tumbleweed Census Yearling Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6773,52545,1042365,NULL,NULL,NULL,0,NULL,NULL 6774,311721,530302,Enthusiast Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6775,44023,260774,Census,NULL,NULL,0,NULL,NULL 6776,223258,699743,Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6777,270913,203299,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 6778,120819,165041,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6779,503213,976829,Popular Question,NULL,NULL,0,NULL,NULL 6780,540441,372578,NULL,NULL,NULL,0,NULL,NULL 6781,396942,1357573,Yearling Nice Answer Enlightened Necromancer Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 6782,483385,393475,NULL,NULL,NULL,0,NULL,NULL 6783,854332,644810,Nice Answer Yearling Nice Answer Nice Answer Enlightened Self-Learner Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Necromancer Caucus Constituent rspec Popular Question ruby Guru Necromancer Yearling Good Answer Necromancer Good Answer Caucus Nice Answer Enlightened Constituent Good Answer Notable Question Guru Nice Answer Enlightened Guru Nice Answer Yearling Caucus Constituent Nice Question Nice Answer Popular Question Guru ruby-on-rails Nice Answer Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 6784,70211,387881,NULL,NULL,NULL,0,NULL,NULL 6785,2675914,1412084,Curious Informed Documentation User Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 6786,109999,213578,Teacher Supporter,NULL,NULL,0,NULL,NULL 6787,510758,826669,NULL,NULL,NULL,0,NULL,NULL 6788,2580037,1000166,NULL,NULL,NULL,0,NULL,NULL 6789,172006,568169,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 6790,473915,1240022,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6791,250996,91936,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 6792,161336,115383,NULL,NULL,NULL,0,NULL,NULL 6793,357689,834613,Good Answer Yearling Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 6794,222972,108069,Popular Question Famous Question Nice Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 6795,462021,513397,Civic Duty Yearling Necromancer Citizen Patrol Yearling Electorate Informed Popular Question Caucus Cleanup Caucus Good Answer,NULL,External editor for IPython notebook ipython ipython notebook pI am using IPython notebook and want to edit programs in an external editor How do get the code edit file name py code to open an editor such as Notepad To check the current set editor from IPython run config TerminalInteractiveShell editor pI do not quite understand why you want to use commandline arguments instead of simply reading from strongstandard input strong Python has simple idiom for iterating over lines at stdin ppre codeimport sysfor line in sys stdin sys stdout write line code prepMy usage example ppre code echo first line nsecond line python python iterate stdin py first linesecond line code prepYour usage example ppre code echo days go by and still python python iterate stdin pydays go by and still code pre Is it possible to pipe into an interactive Python REPL Running echo days go by and still python or echo days go by and still python takes the stream as python script instead of stdin pUse the following command to do clear screen instead of merely adding new lines ppre codeprintf 033c code prepyes that printf on the bash prompt ppYou will probably want to define an alias though ppre codealias cls printf 033c code preh3Explanation h3pre class lang none prettyprint override code 033 x1B 27 ESC code prepSo this becomes code lt ESC gt code which is the VT100 escape code for resetting the terminal href http www termsys demon co uk vtansi htm rel noreferrer Here is some more information on terminal escape codes ph3Edit h3pHere are few other ways of doing it ppre codeprintf ec is ESC in bashecho en ec thanks Reinhart Enable interpretation of of backslash escapes Do not output new line code preh1KDE h1pThe above does not work on the KDE console called Konsole but there is hope Use the following sequence of commands to clear the screen and the scroll back buffer ppre codeclear amp amp echo en 3J code prepOr perhaps use the following alias on KDE ppre codealias cls clear amp amp echo en 3J code prepI got the scroll back clearing command from href https superuser com 59718 6765 here The solution for KDE is solution for xterm and terminals that support xterm escape sequences The official list of xterm escape sequences is at invisible island net xterm ctlseqs ctlseqs html http invisible island net xterm ctlseqs ctlseqs html If you want to learn more about terminal escape sequences see ANSI escape sequence https en wikipedia org index php title ANSI escape sequence,0,NULL,NULL 6796,1326719,943889,NULL,NULL,NULL,0,NULL,NULL 6797,314212,228648,Commentator Caucus Constituent Yearling Necromancer Yearling Necromancer Nice Answer Nice Answer Yearling Announcer Good Answer Yearling Yearling,NULL,pYou can access capturing groups like this pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar myString something format abc xD var myRegexp format xD var match myRegexp exec myString xD console log match abc code pre xD div xD div xD ppAnd if there are multiple matches you can iterate over them pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar myString something format abc xD var myRegexp format xD match myRegexp exec myString xD while match null xD matched text match xD match start match index xD capturing group match xD console log match xD match myRegexp exec myString xD code pre xD div xD div xD one valid case of using RegExp exec instead of String match is when you need to access the sub groups,0,NULL,NULL 6798,4817,785962,NULL,NULL,NULL,0,NULL,NULL 6799,146116,582555,Popular Question Critic Famous Question Enthusiast,NULL,NULL,0,NULL,NULL 6800,45118,449624,Guru Caucus,NULL,NULL,0,NULL,NULL 6801,1127789,1128243,Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 6802,6978607,1128243,Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 6803,93232,16825,Yearling,NULL,NULL,0,NULL,NULL 6804,212692,216909,Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Nice Question Good Question Yearling Popular Question Popular Question Famous Question Popular Question Civic Duty Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Caucus Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Nice Question Revival Popular Question Popular Question Popular Question Necromancer Popular Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 6805,768455,807279,NULL,NULL,NULL,0,NULL,NULL 6806,895521,498639,NULL,NULL,NULL,0,NULL,NULL 6807,48506,1403561,NULL,NULL,NULL,0,NULL,NULL 6808,729932,1399254,NULL,NULL,NULL,0,NULL,NULL 6809,190304,1337564,NULL,NULL,NULL,0,NULL,NULL 6810,174096,775042,NULL,NULL,NULL,0,NULL,NULL 6811,315541,192437,NULL,NULL,NULL,0,NULL,NULL 6812,272015,939108,Necromancer Organizer Revival Custodian Popular Question Yearling Peer Pressure Civic Duty Popular Question Documentation User Custodian Custodian Yearling Notable Question Nice Question Nice Answer Announcer Nice Question,NULL,pCodecademy is great way for beginners to learn JavaScript Learning any programming language takes practice and Codecademy makes you practice ppSometimes however you need to go beyond the scope of the practicals and learn some theory Read the following answer It explains prototypal inheritance in JavaScript really well href https stackoverflow com 8096017 783743 https stackoverflow com 8096017 783743 ppNow you have codePenguin code constructor as follows ppre codefunction Penguin name this name name this numLegs code prepThen you create an codeEmperor code constructor which inherits from codePenguin code ppre codefunction Emperor name this name name Emperor prototype new Penguin code prepNotice that you re creating an instance of codePenguin code and assigning it to codeEmperor prototype code Hence polli codeEmperor prototype name undefined code this is because you re not passing any codename code to the codePenguin code constructor If written codeEmperor prototype new Penguin Empy code then codeEmperor prototype name code would be code Empy code lili codeEmperor prototype numLegs code obviously li olpNow when you create new codeEmperor code as follows you need to give the constructor name remember that you re inheriting codeundefined code from codePenguin code as name Hence ppre codevar emp new Emperor Empy code prep strongThat was the old school method strong ppNowadays JavaScript programmers use codeObject create code and codecall code to inherit from another constructor Let me explain with an example ppre codefunction Emperor name Penguin call this name Emperor prototype Object create Penguin prototype Emperor prototype constructor Emperor code prepThis method has several advantages over the old school method polliInstead of creating new instance of codePenguin code using codenew Penguin code and passing no arguments to it we inherit the prototype members of codePenguin code using codeObject create Penguin prototype code This also prevent unnecessary initialization of the base constructor until the derived constructor is actually called liliInstead of writing codethis name name code in the derived constructor again we call the base constructor using codePenguin call this name code which does it for us Such pattern is called mixin and is very useful if the base constructor needs to be initialized at runtime or needs to maintain its own state information li olpNote that we have also added an additional statement codeEmperor prototype constructor Emperor code This is because codeprototype code is very special property which exists on all functions It points to an object which has very special codeconstructor code property which points to the function itself By setting codeEmperor prototype code to something else we lose this property Hence we set it again ppThe net effect in both these examples is the same However for more complex code it much better to use the new method Happy learning JavaScript There is actually an important difference in behavior between the two methods In the old method all Emperor instances share the reference to numLegs so changing one will affect everyone In other words all emperor penguins have the same number of legs With the new version the value is copied into the instance instead of referring to copy in the prototype pCodecademy is great way for beginners to learn JavaScript Learning any programming language takes practice and Codecademy makes you practice ppSometimes however you need to go beyond the scope of the practicals and learn some theory Read the following answer It explains prototypal inheritance in JavaScript really well href https stackoverflow com 8096017 783743 https stackoverflow com 8096017 783743 ppNow you have codePenguin code constructor as follows ppre codefunction Penguin name this name name this numLegs code prepThen you create an codeEmperor code constructor which inherits from codePenguin code ppre codefunction Emperor name this name name Emperor prototype new Penguin code prepNotice that you re creating an instance of codePenguin code and assigning it to codeEmperor prototype code Hence polli codeEmperor prototype name undefined code this is because you re not passing any codename code to the codePenguin code constructor If written codeEmperor prototype new Penguin Empy code then codeEmperor prototype name code would be code Empy code lili codeEmperor prototype numLegs code obviously li olpNow when you create new codeEmperor code as follows you need to give the constructor name remember that you re inheriting codeundefined code from codePenguin code as name Hence ppre codevar emp new Emperor Empy code prep strongThat was the old school method strong ppNowadays JavaScript programmers use codeObject create code and codecall code to inherit from another constructor Let me explain with an example ppre codefunction Emperor name Penguin call this name Emperor prototype Object create Penguin prototype Emperor prototype constructor Emperor code prepThis method has several advantages over the old school method polliInstead of creating new instance of codePenguin code using codenew Penguin code and passing no arguments to it we inherit the prototype members of codePenguin code using codeObject create Penguin prototype code This also prevent unnecessary initialization of the base constructor until the derived constructor is actually called liliInstead of writing codethis name name code in the derived constructor again we call the base constructor using codePenguin call this name code which does it for us Such pattern is called mixin and is very useful if the base constructor needs to be initialized at runtime or needs to maintain its own state information li olpNote that we have also added an additional statement codeEmperor prototype constructor Emperor code This is because codeprototype code is very special property which exists on all functions It points to an object which has very special codeconstructor code property which points to the function itself By setting codeEmperor prototype code to something else we lose this property Hence we set it again ppThe net effect in both these examples is the same However for more complex code it much better to use the new method Happy learning JavaScript argue that it nothing inherently wrong with modifying an inherited property We get the same problem even if the parent had setter What you definitely shouldn do is putting anything but methods in the prototype which the first method does That is just recipe for disaster At least if you do not make sure that the properties are not modifiable Or actually want global mutable state that is shared between instances but it pretty obscure confusing way to do it How can obfuscate protect JavaScript javascript obfuscation source code protection pI want to make JavaScript application that not open source and thus wish to learn how to can obfuscate my JS code Is this possible Most of the obfuscators mentioned here can be reversed simply by setting window eval console log bind console before running the script At best the result after running that will be the same as from running minifier on the original so don see any real advantages of using dedicated obfuscator over just using minifier Especially since obfuscated code is usually more bloated and slower to load than minified code How can obfuscate protect JavaScript javascript obfuscation source code protection pI want to make JavaScript application that not open source and thus wish to learn how to can obfuscate my JS code Is this possible In conclusion Before choosing an obfuscator try running an obfuscated example after setting var oldEval window eval window eval function console log return oldEval Then paste the result into jsbeautifier and see if it still looks obfuscated If not choose another obfuscator How can obfuscate protect JavaScript javascript obfuscation source code protection pI want to make JavaScript application that not open source and thus wish to learn how to can obfuscate my JS code Is this possible Or even simpler Just paste the example in http deobfuscatejavascript com The results from the best javascript obfuscator according to after running the deobfuscator is exactly the same as the original source even including comments,0,NULL,NULL 6813,573859,608012,NULL,NULL,NULL,0,NULL,NULL 6814,692229,713303,Popular Question Popular Question Enthusiast Self-Learner Popular Question Popular Question Necromancer,NULL,lenses fclabels data accessor which library for structure access and mutation is better data structures haskell record lenses pThere are at least three popular libraries for accessing and manipulating fields of records The ones know of are data accessor fclabels and lenses ppPersonally started with data accessor and using them now However recently on haskell cafe there was an opinion of fclabels being superior ppTherefore interested in comparison of those three and maybe more libraries As of today lens https hackage haskell org package lens package has the richest functionality and documentation so if you don mind its complexity and dependencies it the way to go,0,NULL,NULL 6815,2054699,650381,Popular Question,NULL,NULL,0,NULL,NULL 6816,260000,494170,Popular Question Famous Question Popular Question Critic Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 6817,1341744,994235,NULL,NULL,NULL,0,NULL,NULL 6818,187506,100477,Notable Question Famous Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 6819,713608,609131,Supporter Teacher,NULL,NULL,0,NULL,NULL 6820,1240911,767216,Teacher,NULL,NULL,0,NULL,NULL 6821,498383,1366821,NULL,NULL,NULL,0,NULL,NULL 6822,790866,781523,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6823,608345,752920,Notable Question Notable Question Famous Question Yearling Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Deputy Popular Question Popular Question Notable Question Yearling Popular Question Nice Question Popular Question Custodian Notable Question Popular Question Popular Question Notable Question Nice Answer Yearling Nice Answer Enlightened Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6824,38820,846478,NULL,NULL,NULL,0,NULL,NULL 6825,434003,930412,Popular Question Editor Popular Question,NULL,NULL,0,NULL,NULL 6826,3587525,562471,NULL,NULL,NULL,0,NULL,NULL 6827,682791,662791,NULL,NULL,NULL,0,NULL,NULL 6828,2508868,938146,Notable Question,NULL,NULL,0,NULL,NULL 6829,197683,938146,Notable Question,NULL,NULL,0,NULL,NULL 6830,205591,516938,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6831,459754,428598,Yearling Nice Question Popular Question Nice Question Famous Question Nice Question Notable Question Yearling Notable Question Good Question Self-Learner Notable Question Yearling Famous Question Great Question Yearling Popular Question Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6832,18334,90403,Good Question Nice Answer Enlightened Notable Question Mortarboard Yearling Yearling,NULL,NULL,0,NULL,NULL 6833,11005263,803884,Popular Question,NULL,NULL,0,NULL,NULL 6834,86574,803884,Popular Question,NULL,NULL,0,NULL,NULL 6835,591178,108230,NULL,NULL,NULL,0,NULL,NULL 6836,716112,1558542,NULL,NULL,NULL,0,NULL,NULL 6837,168436,303139,Supporter,NULL,NULL,0,NULL,NULL 6838,331617,843244,Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Custodian Yearling Nice Question Great Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Yearling Nice Question Good Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 6839,2420922,307201,NULL,NULL,NULL,0,NULL,NULL 6840,1554880,344539,NULL,NULL,NULL,0,NULL,NULL 6841,28822,390775,NULL,NULL,NULL,0,NULL,NULL 6842,112700,1079260,NULL,NULL,NULL,0,NULL,NULL 6843,157797,234125,Nice Answer Yearling Enlightened Announcer Necromancer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6844,425259,808236,Yearling Famous Question Famous Question Popular Question Notable Question Nice Question Yearling Custodian Famous Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6845,3328572,1102329,NULL,NULL,NULL,0,NULL,NULL 6846,12101,544707,Caucus Yearling Autobiographer Critic Informed Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 6847,737481,464358,NULL,NULL,NULL,0,NULL,NULL 6848,68268,220949,Notable Question Famous Question Nice Answer Yearling Custodian Popular Question Necromancer Caucus Yearling Stellar Question Announcer Yearling,NULL,NULL,0,NULL,NULL 6849,1507946,487418,NULL,NULL,NULL,0,NULL,NULL 6850,427285,932816,NULL,NULL,NULL,0,NULL,NULL 6851,2285187,1106855,NULL,NULL,NULL,0,NULL,NULL 6852,12260,1486328,NULL,NULL,NULL,0,NULL,NULL 6853,249073,922626,NULL,NULL,NULL,0,NULL,NULL 6854,64450,808990,Yearling Nice Answer Enlightened Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 6855,247119,341514,Notable Question,NULL,NULL,0,NULL,NULL 6856,1921736,148745,Great Answer Good Answer Popular Question Yearling Great Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 6857,686101,1229472,NULL,NULL,NULL,0,NULL,NULL 6858,62114,1420044,Scholar Editor,NULL,NULL,0,NULL,NULL 6859,427949,2118,Notable Question Famous Question Revival Famous Question Famous Question Notable Question Good Question Custodian Nice Question Yearling Notable Question Good Question Famous Question Good Answer Popular Question Popular Question Notable Question Popular Question Cleanup Yearling Pundit Custodian Popular Question Famous Question Good Question Yearling Good Question Great Question Favorite Question,NULL,pIn Unix systems the end of line is represented with line feed LF In windows line is represented with carriage return CR and line feed LF thus CRLF when you get code from git that was uploaded from unix system they will only have an LF ppIf you want to turn this warning off type this in the git command line ppre codegit config core autocrlf true code prepIf you want to make an intelligent decision how git should handle this href http git scm com book en v2 Customizing Git Git Configuration Formatting and Whitespace rel noreferrer read the documentation ppHere is snippet pblockquote strongFormatting and Whitespace strong pFormatting and whitespace issues are some of the more frustrating and subtle problems that many developers encounter when collaborating especially cross platform It’s very easy for patches or other collaborated work to introduce subtle whitespace changes because editors silently introduce them and if your files ever touch Windows system their line endings might be replaced Git has few configuration options to help with these issues ppre codecore autocrlf code pre pIf you’re programming on Windows and working with people who are not or vice versa you’ll probably run into line ending issues at some point This is because Windows uses both carriage return character and linefeed character for newlines in its files whereas Mac and Linux systems use only the linefeed character This is subtle but incredibly annoying fact of cross platform work many editors on Windows silently replace existing LF style line endings with CRLF or insert both line ending characters when the user hits the enter key pGit can handle this by auto converting CRLF line endings into LF when you add file to the index and vice versa when it checks out code onto your filesystem You can turn on this functionality with the core autocrlf setting If you’re on Windows machine set it to true this converts LF endings into CRLF when you check out code ppre code git config global core autocrlf true code pre pIf you’re on Linux or Mac system that uses LF line endings then you don’t want Git to automatically convert them when you check out files however if file with CRLF endings accidentally gets introduced then you may want Git to fix it You can tell Git to convert CRLF to LF on commit but not the other way around by setting core autocrlf to input ppre code git config global core autocrlf input code pre pThis setup should leave you with CRLF endings in Windows checkouts but LF endings on Mac and Linux systems and in the repository pIf you’re Windows programmer doing Windows only project then you can turn off this functionality recording the carriage returns in the repository by setting the config value to false ppre code git config global core autocrlf false code pre blockquote Is there any disadvantage of using core autocrlf input on Windows if you use an editor which doesn muck up line endings pHere is solution subclassing Normalize To use it ppre codenorm MidPointNorm midpoint imshow norm norm code prepHere is the Class ppre codefrom numpy import mafrom matplotlib import cbookfrom matplotlib colors import Normalizeclass MidPointNorm Normalize def init self midpoint vmin None vmax None clip False Normalize init self vmin vmax clip self midpoint midpoint def call self value clip None if clip is None clip self clip result is scalar self process value value self autoscale None result vmin vmax midpoint self vmin self vmax self midpoint if not vmin lt midpoint lt vmax raise ValueError midpoint must be between maxvalue and minvalue elif vmin vmax result fill Or should it be all masked Or elif vmin gt vmax raise ValueError maxvalue must be bigger than minvalue else vmin float vmin vmax float vmax if clip mask ma getmask result result ma array np clip result filled vmax vmin vmax mask mask ma division is very slow we can take shortcut resdat result data First scale to to range than to from to resdat midpoint resdat resdat gt abs vmax midpoint resdat resdat lt abs vmin midpoint resdat resdat result ma array resdat mask result mask copy False if is scalar result result return result def inverse self value if not self scaled raise ValueError Not invertible until scaled vmin vmax midpoint self vmin self vmax self midpoint if cbook iterable value val ma asarray value val val val val gt abs vmax midpoint val val lt abs vmin midpoint val midpoint return val else val val if val lt return val abs vmin midpoint midpoint else return val abs vmax midpoint midpoint code pre Is it possible to use this class in addition to log or sym log scaling without having to create more sub classes My current use case already uses norm SymLogNorm linthresh pI recently had to begrudgingly disable pasting in form element To do so wrote cross browser implementation of Internet Explorer and others onpaste event handler My solution had to be independent of any third party JavaScript libraries ppHere what came up with It doesn completely disable pasting the user can paste single character at time for example but it meets my needs and avoids having to deal with keyCodes etc ppre code Register onpaste on inputs and textareas in browsers that don natively support it function var onload window onload window onload function if typeof onload function onload apply this arguments var fields var inputs document getElementsByTagName input var textareas document getElementsByTagName textarea for var lt inputs length fields push inputs for var lt textareas length fields push textareas for var lt fields length var field fields if typeof field onpaste function amp amp field getAttribute onpaste field onpaste eval function field getAttribute onpaste if typeof field onpaste function var oninput field oninput field oninput function if typeof oninput function oninput apply this arguments if typeof this previousValue undefined this previousValue this value var pasted Math abs this previousValue length this value length gt amp amp this value if pasted amp amp this onpaste apply this arguments this value this previousValue this previousValue this value if field addEventListener field addEventListener input field oninput false else if field attachEvent field attachEvent oninput field oninput code prepTo make use of this in order to disable pasting ppre code lt input type text onpaste return false gt code prehrp know oninput isn part of the W3C DOM spec but all of the browsers ve tested this code with mdash Chrome Safari Firefox Opera 10 IE6 IE7 mdash support either oninput or onpaste Out of all these browsers only Opera doesn support onpaste but it does support oninput ppNote This won work on console or other system that uses an on screen keyboard assuming the on screen keyboard doesn send keys to the browser when each key is selected If it possible your page app could be used by someone with an on screen keyboard and Opera Nintendo Wii some mobile phones don use this script unless you ve tested to make sure the on screen keyboard sends keys to the browser after each key selection The code implements onpaste in browsers which do not already provide it You say am able to prevent user from pasting anything but which browsers did you test this in pI recently had to begrudgingly disable pasting in form element To do so wrote cross browser implementation of Internet Explorer and others onpaste event handler My solution had to be independent of any third party JavaScript libraries ppHere what came up with It doesn completely disable pasting the user can paste single character at time for example but it meets my needs and avoids having to deal with keyCodes etc ppre code Register onpaste on inputs and textareas in browsers that don natively support it function var onload window onload window onload function if typeof onload function onload apply this arguments var fields var inputs document getElementsByTagName input var textareas document getElementsByTagName textarea for var lt inputs length fields push inputs for var lt textareas length fields push textareas for var lt fields length var field fields if typeof field onpaste function amp amp field getAttribute onpaste field onpaste eval function field getAttribute onpaste if typeof field onpaste function var oninput field oninput field oninput function if typeof oninput function oninput apply this arguments if typeof this previousValue undefined this previousValue this value var pasted Math abs this previousValue length this value length gt amp amp this value if pasted amp amp this onpaste apply this arguments this value this previousValue this previousValue this value if field addEventListener field addEventListener input field oninput false else if field attachEvent field attachEvent oninput field oninput code prepTo make use of this in order to disable pasting ppre code lt input type text onpaste return false gt code prehrp know oninput isn part of the W3C DOM spec but all of the browsers ve tested this code with mdash Chrome Safari Firefox Opera 10 IE6 IE7 mdash support either oninput or onpaste Out of all these browsers only Opera doesn support onpaste but it does support oninput ppNote This won work on console or other system that uses an on screen keyboard assuming the on screen keyboard doesn send keys to the browser when each key is selected If it possible your page app could be used by someone with an on screen keyboard and Opera Nintendo Wii some mobile phones don use this script unless you ve tested to make sure the on screen keyboard sends keys to the browser after each key selection In regards to the implementation see two obvious improvements only run the code in browsers where onpaste it not already supported re execute when the DOM is modified currently it will not be applied to dynamically added inputs,0,NULL,NULL 6860,237257,1121615,NULL,NULL,NULL,0,NULL,NULL 6861,2165714,1121615,NULL,NULL,NULL,0,NULL,NULL 6862,115794,294074,Autobiographer,NULL,NULL,0,NULL,NULL 6863,1438689,847123,Famous Question,NULL,NULL,0,NULL,NULL 6864,22500,65571,NULL,NULL,NULL,0,NULL,NULL 6865,42982,63804,Yearling Nice Answer Nice Answer Custodian Yearling Caucus Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 6866,137059,378080,Autobiographer Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Announcer Popular Question Notable Question Yearling Nice Question Nice Question Famous Question,NULL,pExpanding on answer here my own PyYAML solution which has the advantage of being self contained subclass of codeyaml Loader code It doesn depend on any module level globals or on modifying the global state of the codeyaml code module ppre class lang py prettyprint override codeimport yaml osclass IncludeLoader yaml Loader yaml Loader subclass handles include path to foo yml directives in config files When constructed with file object the root path for includes defaults to the directory containing the file otherwise to the current working directory In either case the root path can be overridden by the root keyword argument When an included file contain its own include directive the path is relative to location Example YAML file home frodo one ring yml Name The One Ring Specials resize to wearer Effects include path to invisibility yml YAML file home frodo path to invisibility yml Name invisibility Message Suddenly you disappear Loading data IncludeLoader open home frodo one ring yml get data Result Effects Message Suddenly you disappear Name invisibility Name The One Ring Specials resize to wearer def init self args kwargs super IncludeLoader self init args kwargs self add constructor include self include if root in kwargs self root kwargs root elif isinstance self stream file self root os path dirname self stream name else self root os path curdir def include self loader node oldRoot self root filename os path join self root loader construct scalar node self root os path dirname filename data yaml load open filename self root oldRoot return data code pre Unfortunately this does not work with references such as included INCLUDED include inner yamlmerge INCLUDED,0,NULL,NULL 6867,373536,497174,Supporter,NULL,NULL,0,NULL,NULL 6868,83751,1537,Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6869,938284,836563,NULL,NULL,NULL,0,NULL,NULL 6870,2742,331842,NULL,NULL,NULL,0,NULL,NULL 6871,381479,196277,NULL,NULL,NULL,0,NULL,NULL 6872,1016286,1451786,NULL,NULL,NULL,0,NULL,NULL 6873,353190,1020380,NULL,NULL,NULL,0,NULL,NULL 6874,3798402,11,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 6875,420351,11,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 6876,2068435,347301,NULL,NULL,NULL,0,NULL,NULL 6877,2196932,187612,NULL,NULL,NULL,0,NULL,NULL 6878,401079,2667,Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 6879,65618,441238,NULL,NULL,NULL,0,NULL,NULL 6880,4275728,441238,NULL,NULL,NULL,0,NULL,NULL 6881,1795024,78452,NULL,NULL,NULL,0,NULL,NULL 6882,819743,78452,NULL,NULL,NULL,0,NULL,NULL 6883,387396,986568,Editor Excavator Necromancer Yearling Nice Answer Commentator,NULL,NULL,0,NULL,NULL 6884,9724541,77013,Yearling,NULL,NULL,0,NULL,NULL 6885,235790,1034186,NULL,NULL,NULL,0,NULL,NULL 6886,156402,460942,Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Good Question Nice Answer Nice Answer Good Answer Great Answer Good Answer Yearling Good Answer Necromancer javascript Necromancer Nice Answer Guru Popular Question Caucus Nice Question Popular Question Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 6887,7843407,789991,NULL,NULL,NULL,0,NULL,NULL 6888,245506,548126,NULL,NULL,NULL,0,NULL,NULL 6889,480557,820668,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6890,46162,1328888,Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Famous Question Nice Question Caucus Constituent Notable Question Notable Question Notable Question Popular Question Custodian Yearling Caucus Good Question Yearling Famous Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 6891,1117882,196774,NULL,NULL,NULL,0,NULL,NULL 6892,396612,24821,Nice Question Notable Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 6893,483256,830012,Guru Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling Guru Great Answer Populist Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 6894,650523,878339,Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6895,1264901,264806,Yearling,NULL,NULL,0,NULL,NULL 6896,80090,637917,NULL,NULL,NULL,0,NULL,NULL 6897,69392,114941,NULL,NULL,NULL,0,NULL,NULL 6898,75805,986366,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 6899,164580,1097215,Necromancer,NULL,NULL,0,NULL,NULL 6900,484795,1112297,NULL,NULL,NULL,0,NULL,NULL 6901,937092,366292,Notable Question,NULL,NULL,0,NULL,NULL 6902,42821,1329367,Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Nice Answer Yearling Notable Question Nice Question Famous Question Popular Question Good Answer Caucus Notable Question Popular Question Good Answer Yearling Notable Question Notable Question Nice Answer Enlightened Announcer Announcer Announcer Populist Good Answer Necromancer Good Answer Favorite Question Necromancer Yearling Nice Answer Great Question Announcer Self-Learner Nice Question Notable Question,NULL,pHere jQuery getScript alternative with callback functionality ppre codefunction getScript source callback var script document createElement script var prior document getElementsByTagName script script async script onload script onreadystatechange function isAbort if isAbort script readyState loaded complete test script readyState script onload script onreadystatechange null script undefined if isAbort if callback callback script src source prior parentNode insertBefore script prior code pre set timeout for couple seconds after the call and clear it on the success callback if it fires you can probably assume it failed unless your source is extremely slow pI believe this is what you were looking for ppre codeclass Expression protected expression protected result public function construct expression this gt expression expression public function evaluate this gt result eval return this gt expression return this public function getResult return this gt result class NegativeFinder protected expressionObj public function construct Expression expressionObj this gt expressionObj expressionObj public function isItNegative result this gt expressionObj gt evaluate gt getResult if this gt hasMinusSign result return true else return false protected function hasMinusSign value return substr strval value code prep strongUsage strong ppre code soldPrice boughtPrice negativeFinderObj new NegativeFinder new Expression soldPrice boughtPrice echo negativeFinderObj gt isItNegative It is negative It is not negative code prepDo however note that eval is dangerous function therefore use it only if you really really need to find out if number is negative pp https imgur com XJKSGfo jpg,0,NULL,NULL 6903,224265,711869,NULL,NULL,NULL,0,NULL,NULL 6904,157132,1346184,Autobiographer Supporter,NULL,NULL,0,NULL,NULL 6905,1564767,1000542,NULL,NULL,NULL,0,NULL,NULL 6906,283805,1096684,NULL,NULL,NULL,0,NULL,NULL 6907,317650,973270,NULL,NULL,NULL,0,NULL,NULL 6908,1021003,1071375,NULL,NULL,NULL,0,NULL,NULL 6909,8419975,862091,NULL,NULL,NULL,0,NULL,NULL 6910,86768,945676,NULL,NULL,NULL,0,NULL,NULL 6911,478662,822292,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 6912,7057046,943100,Scholar Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 6913,173337,943100,Scholar Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 6914,106703,783478,Popular Question Announcer Caucus Caucus,NULL,NULL,0,NULL,NULL 6915,103334,572511,NULL,NULL,NULL,0,NULL,NULL 6916,350392,1316720,NULL,NULL,NULL,0,NULL,NULL 6917,152290,238472,Yearling,NULL,NULL,0,NULL,NULL 6918,103332,431270,Nice Answer Enlightened Yearling Caucus Good Answer Constituent Announcer Popular Question Self-Learner Nice Answer Good Answer Caucus Constituent Yearling Documentation User Nice Answer Notable Question Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 6919,89803,215966,Guru Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer css Notable Question Good Answer Good Answer Yearling Nice Answer Good Answer Nice Answer Enlightened Great Answer Peer Pressure Nice Answer Enlightened Nice Answer javascript Nice Answer Nice Answer Enlightened Popular Question Guru Nice Answer Announcer Yearling macos Census forms Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 6920,66076,1454210,NULL,NULL,NULL,0,NULL,NULL 6921,114916,75815,Notable Question,NULL,NULL,0,NULL,NULL 6922,165375,161838,Popular Question Student,NULL,NULL,0,NULL,NULL 6923,370414,1265303,NULL,NULL,NULL,0,NULL,NULL 6924,161039,836944,Yearling Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 6925,305233,250331,NULL,NULL,NULL,0,NULL,NULL 6926,47832,761394,NULL,NULL,NULL,0,NULL,NULL 6927,180084,129372,Yearling Famous Question Good Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6928,1023241,570435,NULL,NULL,NULL,0,NULL,NULL 6929,59814,144824,Yearling Custodian Informed Documentation User Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 6930,3165107,653327,Popular Question,NULL,NULL,0,NULL,NULL 6931,433990,653327,Popular Question,NULL,NULL,0,NULL,NULL 6932,159145,881611,NULL,NULL,NULL,0,NULL,NULL 6933,261610,755940,NULL,NULL,NULL,0,NULL,NULL 6934,1105817,967319,NULL,NULL,NULL,0,NULL,NULL 6935,269310,508684,NULL,NULL,NULL,0,NULL,NULL 6936,157098,1421619,NULL,NULL,NULL,0,NULL,NULL 6937,7901149,515929,NULL,NULL,NULL,0,NULL,NULL 6938,264814,515929,NULL,NULL,NULL,0,NULL,NULL 6939,827459,936587,Popular Question,NULL,NULL,0,NULL,NULL 6940,461631,318870,Famous Question Revival Popular Question Nice Question Popular Question Yearling Favorite Question Notable Question Notable Question Great Answer Revival Revival Revival Notable Question Necromancer Notable Question Nice Question Popular Question Nice Answer Necromancer Nice Answer Yearling Famous Question Revival Announcer Good Answer Nice Answer Nice Answer Famous Question Famous Question Nice Question Good Answer Good Question Good Answer Popular Question Yearling Famous Question Great Question Nice Answer Good Question Famous Question Popular Question Necromancer Good Answer,NULL,NULL,0,NULL,NULL 6941,337107,848578,Editor Student,NULL,NULL,0,NULL,NULL 6942,657523,465062,Informed Editor,NULL,NULL,0,NULL,NULL 6943,680640,1056119,NULL,NULL,NULL,0,NULL,NULL 6944,4686,1092442,NULL,NULL,NULL,0,NULL,NULL 6945,10627162,1140722,NULL,NULL,NULL,0,NULL,NULL 6946,2207950,1027883,NULL,NULL,NULL,0,NULL,NULL 6947,300859,482788,NULL,NULL,NULL,0,NULL,NULL 6948,751759,184741,Popular Question Popular Question Nice Question Notable Question Nice Question Notable Question Necromancer Necromancer Yearling Notable Question Caucus Constituent Notable Question Popular Question Good Question Popular Question Popular Question Nice Answer Popular Question Notable Question Caucus Notable Question Notable Question Nice Answer Nice Answer Yearling Documentation User Popular Question Census Yearling Famous Question,NULL,NULL,0,NULL,NULL 6949,1019614,1257284,NULL,NULL,NULL,0,NULL,NULL 6950,4021051,488,Populist Yearling Nice Question Yearling Favorite Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 6951,1020158,614756,NULL,NULL,NULL,0,NULL,NULL 6952,63819,24069,Nice Answer Enlightened Custodian Yearling Popular Question Necromancer Yearling Notable Question Popular Question Nice Question Caucus Constituent Great Answer Announcer Notable Question Nice Answer Enlightened Yearling Announcer,NULL,NULL,0,NULL,NULL 6953,275578,161937,Yearling,NULL,NULL,0,NULL,NULL 6954,402373,185274,NULL,NULL,NULL,0,NULL,NULL 6955,718018,687005,NULL,NULL,NULL,0,NULL,NULL 6956,94907,799314,NULL,NULL,NULL,0,NULL,NULL 6957,692054,871081,Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 6958,4757254,943531,Notable Question Yearling Self-Learner Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6959,891857,943531,Notable Question Yearling Self-Learner Popular Question Nice Question,NULL,NULL,0,NULL,NULL 6960,739959,699268,NULL,NULL,NULL,0,NULL,NULL 6961,193068,857155,NULL,NULL,NULL,0,NULL,NULL 6962,912186,1291441,NULL,NULL,NULL,0,NULL,NULL 6963,28337,656113,Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 6964,25658,1313046,NULL,NULL,NULL,0,NULL,NULL 6965,27628,3619,Famous Question Good Answer Nice Question Good Question Famous Question Nice Question Nice Question Necromancer Great Answer Custodian Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Necromancer Notable Question Famous Question Famous Question Caucus Good Answer Nice Answer Notable Question Electorate Nice Question Famous Question Popular Question Notable Question Nice Answer Popular Question Yearling Revival Necromancer Nice Question Notable Question Popular Question Notable Question Notable Question Good Question Good Answer Good Answer Popular Question Nice Answer Announcer Popular Question Necromancer Famous Question Yearling Announcer log4net Nice Answer,NULL,How can script distinguish Docker Toolbox and Docker for Windows docker scripting docker toolbox docker for windows pOn my current team we re still transitioning from Docker Toolbox to Docker for Windows lot of our scripts still assume that you re running Docker Toolbox on VirtualBox like how to mount drives how slashes or drive names work for those mounts ppIs there reliable way to tell from inside script whether codedocker code is coming from Docker Toolbox or Docker for Windows Windows host docker is expected to be on the PATH,1,How can script distinguish Docker Toolbox and Docker for Windows docker scripting docker toolbox docker for windows pOn my current team we re still transitioning from Docker Toolbox to Docker for Windows lot of our scripts still assume that you re running Docker Toolbox on VirtualBox like how to mount drives how slashes or drive names work for those mounts ppIs there reliable way to tell from inside script whether codedocker code is coming from Docker Toolbox or Docker for Windows,NULL 6966,475303,857595,Revival,NULL,NULL,0,NULL,NULL 6967,722929,998248,Yearling Necromancer Yearling Revival Commentator Yearling Nice Answer Tumbleweed Curious Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 6968,1623110,998248,Yearling Necromancer Yearling Revival Commentator Yearling Nice Answer Tumbleweed Curious Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 6969,675495,1335566,NULL,NULL,NULL,0,NULL,NULL 6970,25939,483875,NULL,NULL,NULL,0,NULL,NULL 6971,132372,1384374,Famous Question Nice Answer Notable Question Nice Answer Enlightened Popular Question Necromancer Popular Question Famous Question Famous Question Nice Answer Enlightened Necromancer Yearling Nice Answer Enlightened Nice Answer fosuserbundle Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Answer Enlightened Notable Question Caucus Constituent Nice Answer Good Answer Great Question symfony symfony Popular Question doctrine2 Popular Question Famous Question Nice Question Nice Answer Enlightened Yearling Strunk & White Good Answer Cleanup Nice Answer Documentation User Favorite Question Popular Question Necromancer Famous Question Necromancer Nice Answer Necromancer Caucus Good Answer Notable Question Yearling Nice Answer Enlightened Popular Question Necromancer Nice Answer Necromancer Notable Question Nice Answer Necromancer Necromancer Great Answer Great Answer Guru,NULL,NULL,0,NULL,NULL 6972,5767198,569364,NULL,NULL,NULL,0,NULL,NULL 6973,338340,569364,NULL,NULL,NULL,0,NULL,NULL 6974,75870,64290,Yearling Nice Answer Notable Question Popular Question Great Answer Nice Answer Caucus Great Answer Notable Question Yearling Popular Question Popular Question Caucus Good Question Popular Question Good Answer Popular Question Notable Question Census Notable Question Yearling Caucus Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 6975,22550,353815,NULL,NULL,NULL,0,NULL,NULL 6976,922045,1357395,Nice Answer Notable Question Yearling Nice Answer Curious Yearling Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 6977,248041,252895,Yearling Yearling Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 6978,120409,123510,Famous Question Yearling Famous Question Notable Question Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 6979,298278,409103,Notable Question Good Question Popular Question Self-Learner Yearling Custodian Notable Question Popular Question Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6980,176610,447753,NULL,NULL,NULL,0,NULL,NULL 6981,1392702,536981,Nice Answer Caucus Constituent Caucus Caucus Constituent Commentator Yearling,NULL,NULL,0,NULL,NULL 6982,23611,676976,Famous Question,NULL,NULL,0,NULL,NULL 6983,193676,953456,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 6984,199236,170573,Supporter,NULL,NULL,0,NULL,NULL 6985,78190,30584,NULL,NULL,NULL,0,NULL,NULL 6986,595378,448727,NULL,NULL,NULL,0,NULL,NULL 6987,177185,383249,Curious,NULL,NULL,0,NULL,NULL 6988,3405,359485,Popular Question,NULL,NULL,0,NULL,NULL 6989,703136,917136,NULL,NULL,NULL,0,NULL,NULL 6990,168141,5469,Good Question Notable Question Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Notable Question Yearling Nice Answer Notable Question Good Answer Great Question Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 6991,895414,526520,NULL,NULL,NULL,0,NULL,NULL 6992,1146295,1064780,Nice Question Famous Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 6993,54231,588105,NULL,NULL,NULL,0,NULL,NULL 6994,157406,826238,NULL,NULL,NULL,0,NULL,NULL 6995,333289,189347,Good Question Revival Popular Question Popular Question Yearling Nice Answer Popular Question Famous Question Necromancer Necromancer Yearling Popular Question Notable Question Popular Question Nice Answer Famous Question Notable Question Necromancer Yearling Notable Question Caucus Nice Answer Enlightened Yearling Custodian Popular Question Favorite Question Yearling Notable Question Great Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 6996,657333,1164104,Yearling Necromancer Nice Answer Enlightened Caucus Good Answer Yearling Nice Answer Enlightened Census Yearling Custodian Nice Answer Enlightened Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 6997,862308,1209178,NULL,NULL,NULL,0,NULL,NULL 6998,20517,195969,Yearling,NULL,NULL,0,NULL,NULL 6999,4998,1470065,NULL,NULL,NULL,0,NULL,NULL 7000,200850,848472,NULL,NULL,NULL,0,NULL,NULL 7001,7428267,848472,NULL,NULL,NULL,0,NULL,NULL 7002,178226,1030576,Notable Question Yearling Popular Question Self-Learner Popular Question Nice Question Caucus Custodian Custodian Popular Question Notable Question Notable Question Popular Question Yearling Documentation User Nice Answer Notable Question Necromancer,NULL,NULL,0,NULL,NULL 7003,976414,1281116,NULL,NULL,NULL,0,NULL,NULL 7004,81501,399343,Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 7005,102640,208218,Nice Answer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7006,330229,867593,Good Answer,NULL,NULL,0,NULL,NULL 7007,64489,829423,NULL,NULL,NULL,0,NULL,NULL 7008,67319,276458,Popular Question Famous Question Critic Notable Question,NULL,NULL,0,NULL,NULL 7009,479818,463347,NULL,NULL,NULL,0,NULL,NULL 7010,2712340,1492007,NULL,NULL,NULL,0,NULL,NULL 7011,256675,654780,NULL,NULL,NULL,0,NULL,NULL 7012,222303,324284,Necromancer Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 7013,157246,1202676,NULL,NULL,NULL,0,NULL,NULL 7014,605641,781704,Famous Question Necromancer Yearling Necromancer Nice Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7015,279239,920927,NULL,NULL,NULL,0,NULL,NULL 7016,91800,144619,Popular Question,NULL,NULL,0,NULL,NULL 7017,85159,1255156,Necromancer Nice Answer Excavator Caucus Yearling,NULL,NULL,0,NULL,NULL 7018,966697,1096920,NULL,NULL,NULL,0,NULL,NULL 7019,239168,879926,Yearling,NULL,NULL,0,NULL,NULL 7020,811078,1183233,NULL,NULL,NULL,0,NULL,NULL 7021,541252,1359431,Revival Popular Question Popular Question Nice Answer Popular Question Guru Yearling Great Answer Necromancer Nice Question Popular Question Necromancer Popular Question Necromancer Popular Question Nice Answer Popular Question Yearling Notable Question Good Answer Nice Question Famous Question Nice Answer Notable Question Nice Answer Yearling,NULL,pHere is functional solution to the problem without any strongmutable variable strong using codereduce code and codeflatten code provided by codeunderscore js code ppre codefunction cartesianProductOf return reduce arguments function return flatten map function return map function return concat true cartesianProductOf code prepRemark This solution was inspired by href http cwestblog com 2011 05 02 cartesian product of multiple arrays rel noreferrer http cwestblog com 2011 05 02 cartesian product of multiple arrays Why is map map flatten better than double forEach It seems more convoluted Mutability am probably going to upset lot of functional programmers here but why does mutability matter if the array you are building is local to the reduce call pHere is functional solution to the problem without any strongmutable variable strong using codereduce code and codeflatten code provided by codeunderscore js code ppre codefunction cartesianProductOf return reduce arguments function return flatten map function return map function return concat true cartesianProductOf code prepRemark This solution was inspired by href http cwestblog com 2011 05 02 cartesian product of multiple arrays rel noreferrer http cwestblog com 2011 05 02 cartesian product of multiple arrays playing devil advocate to my previous comment lodash has flatMap which could make this slightly more elegant but don think underscore does,0,NULL,NULL 7022,489432,1155405,NULL,NULL,NULL,0,NULL,NULL 7023,272642,311748,NULL,NULL,NULL,0,NULL,NULL 7024,645481,1841,Great Question Good Answer Great Question Yearling Nice Question Favorite Question Necromancer Notable Question Famous Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 7025,229813,1519622,NULL,NULL,NULL,0,NULL,NULL 7026,342485,328573,NULL,NULL,NULL,0,NULL,NULL 7027,947617,328573,NULL,NULL,NULL,0,NULL,NULL 7028,1059342,433268,NULL,NULL,NULL,0,NULL,NULL 7029,216432,1402853,NULL,NULL,NULL,0,NULL,NULL 7030,194006,174316,Famous Question Yearling Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 7031,3303331,330406,Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7032,273645,330406,Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7033,103390,275240,NULL,NULL,NULL,0,NULL,NULL 7034,307096,1050686,Curious Notable Question,NULL,NULL,0,NULL,NULL 7035,116456,830662,NULL,NULL,NULL,0,NULL,NULL 7036,4276,205784,Popular Question Notable Question Notable Question Populist Good Answer Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 7037,165224,641433,NULL,NULL,NULL,0,NULL,NULL 7038,440007,1240277,Informed Autobiographer Scholar Teacher Supporter,NULL,NULL,0,NULL,NULL 7039,325163,941688,Citizen Patrol Yearling Excavator Organizer,NULL,NULL,0,NULL,NULL 7040,5260,130155,Yearling Popular Question Great Answer Nice Answer Enlightened Great Answer Announcer Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Nice Answer Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 7041,69265,339872,Necromancer Necromancer Yearling Popular Question Announcer Nice Answer Nice Question Announcer Yearling Necromancer Nice Answer Necromancer Announcer Necromancer Nice Answer Caucus Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 7042,652910,1437311,NULL,NULL,NULL,0,NULL,NULL 7043,25994,416598,Yearling,NULL,NULL,0,NULL,NULL 7044,145497,343207,Famous Question,NULL,NULL,0,NULL,NULL 7045,957723,668948,NULL,NULL,NULL,0,NULL,NULL 7046,251629,149099,NULL,NULL,NULL,0,NULL,NULL 7047,90895,576682,Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Good Question Excavator Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Notable Question Socratic Popular Question Famous Question Popular Question Famous Question Nice Question Famous Question Yearling Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Good Question Documentation User Popular Question Notable Question Notable Question Yearling Nice Answer Enlightened Popular Question Famous Question Famous Question Good Question Famous Question Nice Question Great Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7048,162169,502353,NULL,NULL,NULL,0,NULL,NULL 7049,28963,520217,Popular Question Proofreader Nice Answer Enlightened Electorate Announcer sfml Peer Pressure Announcer Yearling Notable Question Documentation User Nice Answer Yearling Nice Question Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 7050,1080375,768036,NULL,NULL,NULL,0,NULL,NULL 7051,9049,133327,Notable Question Good Question Famous Question Popular Question Yearling Necromancer Nice Answer Favorite Question Nice Question Famous Question Organizer Altruist Popular Question Good Question Notable Question Yearling Notable Question Popular Question Good Answer Good Question Nice Answer Notable Question Popular Question Famous Question Famous Question Nice Question Announcer Yearling Notable Question Great Question Famous Question Popular Question Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 7052,207262,1110514,Necromancer Investor Altruist Popular Question,NULL,NULL,0,NULL,NULL 7053,628102,556801,NULL,NULL,NULL,0,NULL,NULL 7054,4296,265042,Excavator Necromancer Popular Question,NULL,NULL,0,NULL,NULL 7055,8424,969908,Good Answer Yearling symfony Guru Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 7056,218624,589372,NULL,NULL,NULL,0,NULL,NULL 7057,1032847,473352,Yearling Nice Question Popular Question Scholar,NULL,NULL,0,NULL,NULL 7058,58064,803281,NULL,NULL,NULL,0,NULL,NULL 7059,2472,573309,NULL,NULL,NULL,0,NULL,NULL 7060,130437,1565438,Nice Question Yearling Necromancer Notable Question Yearling Notable Question Critic Excavator Popular Question Popular Question Popular Question Good Question Announcer Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 7061,485795,740373,Popular Question,NULL,NULL,0,NULL,NULL 7062,602480,1037332,NULL,NULL,NULL,0,NULL,NULL 7063,51806,1062750,NULL,NULL,NULL,0,NULL,NULL 7064,170691,407903,Yearling,NULL,NULL,0,NULL,NULL 7065,47539,987717,Famous Question,NULL,NULL,0,NULL,NULL 7066,2357,751904,Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 7067,145337,1052033,Revival Curious Announcer Tumbleweed Yearling Citizen Patrol Popular Question Announcer Necromancer Caucus Nice Answer Yearling Popular Question Revival Revival Necromancer Good Answer Caucus Popular Question Announcer Necromancer Revival Peer Pressure Yearling Announcer Populist Census Custodian Custodian Nice Answer Notable Question Revival Announcer Revival Custodian Necromancer Custodian Self-Learner Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7068,84392,523758,Nice Answer Nice Answer java-ee Caucus Self-Learner Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 7069,337637,908502,Necromancer Yearling,NULL,NULL,0,NULL,NULL 7070,537538,800667,NULL,NULL,NULL,0,NULL,NULL 7071,878693,735807,NULL,NULL,NULL,0,NULL,NULL 7072,754900,230966,NULL,NULL,NULL,0,NULL,NULL 7073,1309401,700226,Popular Question Yearling Notable Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7074,51874,700226,Popular Question Yearling Notable Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7075,1244187,1062684,Commentator Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7076,121913,242786,Yearling Good Answer Guru Yearling pyramid Yearling,NULL,NULL,0,NULL,NULL 7077,107927,1435303,NULL,NULL,NULL,0,NULL,NULL 7078,117415,880602,NULL,NULL,NULL,0,NULL,NULL 7079,72362,1115611,NULL,NULL,NULL,0,NULL,NULL 7080,2555124,1115611,NULL,NULL,NULL,0,NULL,NULL 7081,350896,1006984,Student Yearling Scholar Popular Question Revival Yearling Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 7082,324815,902577,Informed Editor Revival Critic Necromancer Revival Caucus Announcer Yearling Necromancer Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7083,319194,204662,NULL,NULL,NULL,0,NULL,NULL 7084,270207,689015,NULL,NULL,NULL,0,NULL,NULL 7085,784358,957823,NULL,NULL,NULL,0,NULL,NULL 7086,310626,893753,NULL,NULL,NULL,0,NULL,NULL 7087,328684,732468,NULL,NULL,NULL,0,NULL,NULL 7088,46055,318359,Yearling Good Answer Autobiographer Caucus Constituent Tag Editor Custodian Enthusiast Revival Yearling Electorate Nice Answer Famous Question Revival Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 7089,143936,956483,NULL,NULL,NULL,0,NULL,NULL 7090,36638,384913,NULL,NULL,NULL,0,NULL,NULL 7091,1080595,939028,NULL,NULL,NULL,0,NULL,NULL 7092,166323,456517,Yearling Good Answer Yearling Popular Question Guru Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7093,1023890,729137,NULL,NULL,NULL,0,NULL,NULL 7094,487019,1062619,NULL,NULL,NULL,0,NULL,NULL 7095,255361,900888,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 7096,252694,777282,NULL,NULL,NULL,0,NULL,NULL 7097,309575,183994,Great Answer Necromancer Yearling Necromancer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 7098,37245,820520,Yearling Announcer Custodian Notable Question Documentation User Announcer Curious Popular Question Tag Editor Announcer Yearling Nice Question,NULL,NULL,0,NULL,NULL 7099,1521606,1505704,NULL,NULL,NULL,0,NULL,NULL 7100,68587,615373,NULL,NULL,NULL,0,NULL,NULL 7101,38789,1550209,NULL,NULL,NULL,0,NULL,NULL 7102,1372725,593675,Enthusiast,NULL,NULL,0,NULL,NULL 7103,891151,1416023,Nice Answer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 7104,645723,460497,Tumbleweed Informed Teacher Editor Supporter Popular Question Custodian Necromancer Self-Learner,NULL,NULL,0,NULL,NULL 7105,593815,906156,NULL,NULL,NULL,0,NULL,NULL 7106,210591,269460,NULL,NULL,NULL,0,NULL,NULL 7107,991053,421891,Critic Revival Notable Question Necromancer Custodian Custodian Caucus Famous Question Announcer Documentation User Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 7108,212586,230202,Nice Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Caucus Constituent Yearling Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Answer Good Question Documentation User Yearling Nice Answer Popular Question Caucus Investor Famous Question Popular Question Nice Answer Nice Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 7109,39562,891347,NULL,NULL,NULL,0,NULL,NULL 7110,851173,1364554,NULL,NULL,NULL,0,NULL,NULL 7111,6905984,1364554,NULL,NULL,NULL,0,NULL,NULL 7112,333394,1455566,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 7113,363707,149851,Nice Answer Popular Question Caucus Constituent Census Necromancer Popular Question Custodian Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 7114,1571521,1049191,NULL,NULL,NULL,0,NULL,NULL 7115,646374,1103561,Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Stellar Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Electorate Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Nice Answer Popular Question Nice Question Notable Question Notable Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 7116,196332,1161193,NULL,NULL,NULL,0,NULL,NULL 7117,567608,567527,NULL,NULL,NULL,0,NULL,NULL 7118,191701,235629,NULL,NULL,NULL,0,NULL,NULL 7119,2902970,386685,Yearling Nice Answer Necromancer Yearling Nice Answer Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 7120,116731,386685,Yearling Nice Answer Necromancer Yearling Nice Answer Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 7121,415164,1151695,Editor Student Supporter Announcer,NULL,NULL,0,NULL,NULL 7122,829099,596654,NULL,NULL,NULL,0,NULL,NULL 7123,304272,1231300,Commentator Caucus Constituent Curious Teacher Informed Autobiographer Yearling Necromancer,NULL,NULL,0,NULL,NULL 7124,294695,1470634,NULL,NULL,NULL,0,NULL,NULL 7125,793946,814092,NULL,NULL,NULL,0,NULL,NULL 7126,270623,997565,NULL,NULL,NULL,0,NULL,NULL 7127,421685,1438643,Student Supporter,NULL,NULL,0,NULL,NULL 7128,1413332,999746,Citizen Patrol,NULL,NULL,0,NULL,NULL 7129,122480,550451,Revival Necromancer Good Answer Guru Nice Answer Enlightened Caucus Yearling symfony Nice Answer Enlightened Guru Yearling Guru,NULL,NULL,0,NULL,NULL 7130,313298,655977,NULL,NULL,NULL,0,NULL,NULL 7131,64481,34532,NULL,NULL,NULL,0,NULL,NULL 7132,72305,34532,NULL,NULL,NULL,0,NULL,NULL 7133,34659,929024,NULL,NULL,NULL,0,NULL,NULL 7134,125334,867208,Great Question Famous Question Yearling Guru Organizer Yearling Caucus Stellar Question Yearling,NULL,NULL,0,NULL,NULL 7135,185724,300572,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 7136,49390,78490,Nice Question,NULL,NULL,0,NULL,NULL 7137,27538,71701,Yearling Great Answer Yearling Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 7138,2793942,71701,Yearling Great Answer Yearling Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 7139,184977,254769,NULL,NULL,NULL,0,NULL,NULL 7140,591356,924797,NULL,NULL,NULL,0,NULL,NULL 7141,261930,705422,NULL,NULL,NULL,0,NULL,NULL 7142,13106,519808,Good Answer Nice Answer Enlightened Yearling Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7143,54050,736160,NULL,NULL,NULL,0,NULL,NULL 7144,65080,247441,Yearling Nice Answer Famous Question Guru Popular Question Popular Question Explainer Good Answer Nice Answer python Good Question javascript Good Answer Caucus Nice Answer Enlightened Yearling Necromancer Nice Answer Yearling Necromancer Caucus Nice Answer Good Question Good Answer Notable Question Notable Question Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7145,962790,961044,NULL,NULL,NULL,0,NULL,NULL 7146,151415,1159900,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7147,64708,223654,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7148,432967,815125,NULL,NULL,NULL,0,NULL,NULL 7149,1979710,815125,NULL,NULL,NULL,0,NULL,NULL 7150,327005,893870,NULL,NULL,NULL,0,NULL,NULL 7151,28049,947428,Good Answer Necromancer Custodian Critic,NULL,NULL,0,NULL,NULL 7152,278583,1102761,Yearling,NULL,NULL,0,NULL,NULL 7153,200746,189599,Yearling Critic Good Question Popular Question,NULL,NULL,1,Merging NET Standard assemblies net net core net standard pI couldn find any documentation on the possibility to merge two or more NET Standard assemblies either using emILRepack em or emILMerge em Both of the tools are merging assemblies of the NET profiles and but believe they re not compatible with NET standard profile ppHas anyone any experience with that Anyone can point to any documentation of the feature ppThanks,NULL 7154,53491,934040,Excavator Custodian Citizen Patrol Tenacious Yearling Custodian Custodian Caucus Constituent Yearling Caucus Constituent Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Yearling Explainer,NULL,NULL,0,NULL,NULL 7155,300750,741782,Revival Popular Question Necromancer Notable Question Necromancer Yearling Revival Nice Answer Revival Necromancer Self-Learner Yearling Announcer Nice Answer Necromancer Announcer Yearling Custodian Necromancer Famous Question Revival Nice Answer Caucus Constituent Nice Answer Yearling Announcer Nice Answer Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 7156,352496,1175074,Critic Yearling Caucus Caucus Popular Question Commentator Excavator,NULL,NULL,0,NULL,NULL 7157,15002,644660,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7158,402432,960631,Notable Question,NULL,NULL,0,NULL,NULL 7159,2259,84283,Revival Yearling Caucus Necromancer Caucus Announcer,NULL,NULL,0,NULL,NULL 7160,141854,1163744,NULL,NULL,NULL,0,NULL,NULL 7161,259798,942076,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7162,72050,378026,Caucus Yearling Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 7163,683776,765586,Informed,NULL,NULL,0,NULL,NULL 7164,138488,706172,Supporter Tumbleweed Teacher Editor Commentator Curious,NULL,NULL,0,NULL,NULL 7165,540008,390,Great Answer Yearling Nice Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 7166,47087,556386,NULL,NULL,NULL,0,NULL,NULL 7167,33166,964853,Critic Caucus Revival Caucus,NULL,NULL,0,NULL,NULL 7168,239615,706208,Critic Custodian Citizen Patrol Scholar Caucus,NULL,NULL,0,NULL,NULL 7169,151402,1101590,Revival Nice Answer Yearling Yearling Good Answer Yearling Revival Critic Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 7170,214061,1321593,NULL,NULL,NULL,0,NULL,NULL 7171,173867,1001442,NULL,NULL,NULL,0,NULL,NULL 7172,205363,231178,Revival Caucus,NULL,NULL,0,NULL,NULL 7173,253845,163988,NULL,NULL,NULL,0,NULL,NULL 7174,254548,1090332,NULL,NULL,NULL,0,NULL,NULL 7175,124533,1146114,Necromancer Necromancer Yearling Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 7176,1024597,836864,Popular Question Notable Question Editor Tumbleweed,NULL,NULL,0,NULL,NULL 7177,8309684,836864,Popular Question Notable Question Editor Tumbleweed,NULL,NULL,0,NULL,NULL 7178,200388,8715,Good Question Notable Question Popular Question Famous Question Nice Answer Revival Famous Question Popular Question Yearling Popular Question Notable Question Self-Learner Popular Question Popular Question Revival Yearling Famous Question Good Answer Notable Question Notable Question Famous Question Revival Good Answer Popular Question Notable Question Popular Question Good Answer Notable Question Benefactor Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 7179,237562,481749,NULL,NULL,NULL,0,NULL,NULL 7180,1505501,1035228,NULL,NULL,NULL,0,NULL,NULL 7181,42304,1332545,Notable Question Yearling Nice Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 7182,27005,601852,NULL,NULL,NULL,0,NULL,NULL 7183,194113,603155,NULL,NULL,NULL,0,NULL,NULL 7184,564822,1491551,NULL,NULL,NULL,0,NULL,NULL 7185,503756,165084,Necromancer Good Question Popular Question Nice Answer Good Answer Necromancer Notable Question Notable Question Yearling Necromancer Notable Question Nice Answer Famous Question Announcer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 7186,1465393,165084,Necromancer Good Question Popular Question Nice Answer Good Answer Necromancer Notable Question Notable Question Yearling Necromancer Notable Question Nice Answer Famous Question Announcer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 7187,1543416,45963,Notable Question Favorite Question Notable Question Famous Question Notable Question Famous Question Notable Question Nice Question Notable Question Good Question Nice Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Nice Question Notable Question Favorite Question Notable Question Notable Question Notable Question Popular Question Famous Question Nice Question Famous Question Notable Question Yearling Notable Question Famous Question Famous Question Notable Question Notable Question Good Question Nice Question Popular Question Great Question Notable Question Promoter Benefactor Popular Question Notable Question Notable Question Famous Question Good Question Notable Question Documentation User Good Question Nice Question Famous Question Yearling Famous Question Good Question Notable Question Popular Question Nice Question Nice Question Famous Question Notable Question Famous Question Good Question Popular Question Good Question Nice Question Nice Question Favorite Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 7188,32824,427632,NULL,NULL,NULL,0,NULL,NULL 7189,177379,797630,NULL,NULL,NULL,0,NULL,NULL 7190,154197,587587,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 7191,593386,205289,Notable Question,NULL,NULL,0,NULL,NULL 7192,23358,133864,Commentator Scholar Caucus Constituent Yearling Announcer Student Popular Question,NULL,NULL,0,NULL,NULL 7193,955489,1014394,NULL,NULL,NULL,0,NULL,NULL 7194,928428,1004278,Famous Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Great Question Notable Question Yearling Notable Question Famous Question Notable Question Popular Question Good Question Popular Question Famous Question Popular Question Popular Question Famous Question Good Question Notable Question Famous Question Nice Question Notable Question Favorite Question Famous Question Yearling Notable Question Notable Question Notable Question Famous Question Favorite Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 7195,161099,660689,NULL,NULL,NULL,0,NULL,NULL 7196,1382583,829381,Necromancer,NULL,NULL,0,NULL,NULL 7197,319477,1086121,Announcer Reviewer Yearling Nice Answer Enlightened Announcer Informed,NULL,NULL,0,NULL,NULL 7198,359774,105741,Nice Answer Yearling Famous Question Nice Answer Great Answer Yearling Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 7199,166850,840762,NULL,NULL,NULL,0,NULL,NULL 7200,96659,1485722,Tumbleweed,NULL,NULL,0,NULL,NULL 7201,260065,1132325,Custodian Citizen Patrol Custodian Scholar Yearling Notable Question Custodian Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 7202,182960,438140,Guru Popular Question Guru Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Great Answer Famous Question Necromancer Great Answer Yearling Good Answer Guru Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 7203,226333,997627,NULL,NULL,NULL,0,NULL,NULL 7204,491602,1012493,NULL,NULL,NULL,0,NULL,NULL 7205,87974,847988,Popular Question Popular Question Yearling Popular Question Popular Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7206,1501651,989639,NULL,NULL,NULL,0,NULL,NULL 7207,585089,1133954,Famous Question Teacher Revival Nice Question,NULL,NULL,0,NULL,NULL 7208,98400,1161126,NULL,NULL,NULL,0,NULL,NULL 7209,1075038,1189138,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7210,86590,291603,NULL,NULL,NULL,0,NULL,NULL 7211,266329,984391,NULL,NULL,NULL,0,NULL,NULL 7212,578426,2948,Necromancer Nice Question Civic Duty Notable Question Yearling Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 7213,305378,64979,Yearling Necromancer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 7214,61791,918959,Necromancer Necromancer Nice Answer Nice Answer Nice Answer regex Nice Answer Epic Nice Answer Enlightened Revival Reviewer Custodian Reviewer Great Answer Reviewer Nice Answer Nice Answer Good Answer Guru Nice Answer c Nice Answer Popular Question Good Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Necromancer Enlightened Documentation Pioneer Necromancer Convention Nice Answer Nice Answer Nice Question Good Question Benefactor Altruist Yearling Announcer Revival Necromancer Necromancer Refiner Necromancer Revival Steward Steward string Caucus Nice Answer Enlightened dictionary Nice Answer python-2.x Constituent Good Answer Nice Answer Nice Answer python-3.x Announcer Nice Answer Nice Answer Nice Answer Good Answer Guru Census Nice Answer Revival Good Answer arrays Revival Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Generalist Nice Answer Good Answer Necromancer Nice Answer gcc Announcer Nice Answer Nice Answer Good Answer Announcer Necromancer Good Answer Necromancer Populist Nice Answer Nice Answer Caucus Nice Answer Enlightened Nice Answer Revival c Constituent pointers Necromancer Nice Answer linux Yearling Nice Answer Announcer Good Answer Nice Answer Announcer Necromancer Documentation User Notable Question Nice Answer Nice Answer Good Answer Archaeologist Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Steward Necromancer Nice Answer Copy Editor Good Answer Great Answer Nice Answer Notable Question Nice Answer Enlightened Census Nice Answer Necromancer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Caucus Constituent Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Necromancer Good Answer Necromancer Good Answer Nice Answer Announcer Nice Answer Good Answer Necromancer Nice Answer Enlightened Necromancer Guru Necromancer Necromancer Famous Question Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Good Answer Guru Good Answer Nice Question Nice Answer Necromancer Nice Answer Announcer Good Answer Nice Answer Yearling Good Answer Nice Answer Necromancer Nice Answer Enlightened Good Answer Necromancer Guru sqlalchemy Nice Answer Enlightened Nice Answer Nice Answer Good Answer python-2.7 Guru Enlightened Nice Answer,NULL,Disable output buffering python stdout buffered pIs output buffering enabled by default in Python interpreter for codesys stdout code ppIf the answer is positive what are all the ways to disable it ppSuggestions so far polliUse the code code command line switch liliWrap codesys stdout code in an object that flushes after every write liliSet codePYTHONUNBUFFERED code env var lili codesys stdout os fdopen sys stdout fileno code li olpIs there any other way to set some global flag in codesys code codesys stdout code programmatically during execution For print in Python see this answer http stackoverflow com 14729823 918959 pre codedef is ascii return all ord lt 128 for in code pre decode ascii will also fail fast pre code include lt cstdio gt include lt iostream gt include lt memory gt include lt stdexcept gt include lt string gt include lt array gt std string exec const char cmd std array lt char 128 gt buffer std string result std unique ptr lt FILE decltype amp pclose gt pipe popen cmd pclose if pipe throw std runtime error popen failed while fgets buffer data buffer size pipe get nullptr result buffer data return result code prepPre 11 version ppre code include lt iostream gt include lt stdexcept gt include lt stdio gt include lt string gt std string exec const char cmd char buffer 128 std string result FILE pipe popen cmd if pipe throw std runtime error popen failed try while fgets buffer sizeof buffer pipe NULL result buffer catch pclose pipe throw pclose pipe return result code prepReplace codepopen code and codepclose code with code popen code and code pclose code for Windows while feof is always wrong and fgets is equally wrong when you re not really reading lines Use fread and check the return value pThe python signal handlers do not seem to be real signal handlers that is they happen after the fact in the normal flow and after the handler has already returned Thus you try to put your quit logic within the signal handler As the signal handler runs in the main thread it will block execution there too ppSomething like this seems to work nicely ppre codeimport signalimport timeimport sysdef run program while True time sleep print def exit gracefully signum frame restore the original signal handler as otherwise evil things will happen in raw input when CTRL is pressed and our signal handler is not re entrant signal signal signal SIGINT original sigint try if raw input nReally quit gt lower startswith sys exit except KeyboardInterrupt print Ok ok quitting sys exit restore the exit gracefully handler here signal signal signal SIGINT exit gracefully if name main store the original SIGINT handler original sigint signal getsignal signal SIGINT signal signal signal SIGINT exit gracefully run program code prepThe code restores the original signal handler for the duration of coderaw input code coderaw input code itself is not re entrable and re entering it will lead to codeRuntimeError can re enter readline code being raised from codetime sleep code which is something we don want as it is harder to catch than codeKeyboardInterrupt code Rather we let consecutive Ctrl to raise codeKeyboardInterrupt code the posix signal handlers if registered by signal signal are one shot so if it wasn reregistered the next ctrl would throw Keyboardinterrupt pThe python signal handlers do not seem to be real signal handlers that is they happen after the fact in the normal flow and after the handler has already returned Thus you try to put your quit logic within the signal handler As the signal handler runs in the main thread it will block execution there too ppSomething like this seems to work nicely ppre codeimport signalimport timeimport sysdef run program while True time sleep print def exit gracefully signum frame restore the original signal handler as otherwise evil things will happen in raw input when CTRL is pressed and our signal handler is not re entrant signal signal signal SIGINT original sigint try if raw input nReally quit gt lower startswith sys exit except KeyboardInterrupt print Ok ok quitting sys exit restore the exit gracefully handler here signal signal signal SIGINT exit gracefully if name main store the original SIGINT handler original sigint signal getsignal signal SIGINT signal signal signal SIGINT exit gracefully run program code prepThe code restores the original signal handler for the duration of coderaw input code coderaw input code itself is not re entrable and re entering it will lead to codeRuntimeError can re enter readline code being raised from codetime sleep code which is something we don want as it is harder to catch than codeKeyboardInterrupt code Rather we let consecutive Ctrl to raise codeKeyboardInterrupt code There are couple ways to ignore ctrl in POSIX You can make the terminal ignore ctrl you can make the program to not have controlling terminal or you can ignore the signal so you should be simply able to use signal signal signal SIGINT signal SIG IGN to block the ctrl completely pThe python signal handlers do not seem to be real signal handlers that is they happen after the fact in the normal flow and after the handler has already returned Thus you try to put your quit logic within the signal handler As the signal handler runs in the main thread it will block execution there too ppSomething like this seems to work nicely ppre codeimport signalimport timeimport sysdef run program while True time sleep print def exit gracefully signum frame restore the original signal handler as otherwise evil things will happen in raw input when CTRL is pressed and our signal handler is not re entrant signal signal signal SIGINT original sigint try if raw input nReally quit gt lower startswith sys exit except KeyboardInterrupt print Ok ok quitting sys exit restore the exit gracefully handler here signal signal signal SIGINT exit gracefully if name main store the original SIGINT handler original sigint signal getsignal signal SIGINT signal signal signal SIGINT exit gracefully run program code prepThe code restores the original signal handler for the duration of coderaw input code coderaw input code itself is not re entrable and re entering it will lead to codeRuntimeError can re enter readline code being raised from codetime sleep code which is something we don want as it is harder to catch than codeKeyboardInterrupt code Rather we let consecutive Ctrl to raise codeKeyboardInterrupt code very tired answered pThe reason for this error is the completely stupid behaviour of codejson dumps code in Python ppre code gt gt gt json dumps ensure ascii False gt gt gt json dumps ensure ascii False gt gt gt json dumps ensure ascii False xc3 xa4 gt gt gt json dumps ensure ascii False Traceback most recent call last File lt stdin gt line in lt module gt File usr lib python2 json init py line 250 in dumps sort keys sort keys kw encode obj File usr lib python2 json encoder py line 210 in encode return join chunks UnicodeDecodeError ascii codec can decode byte 0xc3 in position ordinal not in range 128 code prepThis coupled with the fact that codeio open code with codeencoding code set only accepts codeunicode code objects which by itself is right leads to problems ppThe return type is completely dependent on whatever is the type of keys or values in the dictionary if codeensure ascii False code but codestr code is returned always if codeensure ascii True code If you can accidentally set bit strings to dictionaries you cannot blindly convert this return type to codeunicode code because you emneed em to set the encoding presumably UTF ppre code gt gt gt json dumps obj ensure ascii False gt gt gt if isinstance str unicode UTF code prepIn strongthis strong case believe you can use the codejson dump code to write to an open binary file however if you need to do something more complicated with the resulting object you probably need the above code phrpOne solution is to end all this encoding decoding madness by switching to Python ck naah busy now and hit repcap today already,1,NULL,Why does paramiko returns as newline instead of python paramiko openssh tty pty pI using python SSH library named paramiko It uses like this ppre codessh paramiko SSHClient ssh set missing host key policy paramiko AutoAddPolicy ssh connect host username user name password password chan ssh pool host get transport open session chan exec command SOME COMMAND code prepBecause need to execute some command in strongsudo strong need to call emchan get pty em before emexec command em to ensure there is tty avaliable ppAnd found after called get pty the stdout return from remote server using as newline instead of ppFor example ppre code gt gt gt chan ssh get transport open session gt gt gt chan exec command echo hello world gt gt gt chan recv 1000 hello world code prepand after calling get pty ppre code gt gt gt chan ssh get transport open session gt gt gt chan get pty gt gt gt chan exec command echo hello world gt gt gt chan recv 1000 hello world code prepI have do some web searching but cannot find anything connect to empty tty newline em ppI worried about what may cause this change ppWhy does paramiko returns as newline instead of pBecause that is how the newlines are translated for pseudo terminal code code is the carriage return that moves cursor to column and code code is the linefeed that moves cursor down by one ppThe terminal has by default the href https stackoverflow com 7812142 918959 codeonlcr code translation flag enabled From codestty code man pages pblockquote code onlcr code pnewline performs carriage return blockquotepYou can also see this flag enabled without code code in front on the 3rd last line in output of codestty code ppre code stty aspeed 38400 baud rows 46 columns 79 line intr quit erase kill eof eol lt undef gt eol2 lt undef gt swtch lt undef gt start stop susp rprnt werase lnext flush min time parenb parodd cmspar cs8 hupcl cstopb cread clocal crtscts ignbrk brkint ignpar parmrk inpck istrip inlcr igncr icrnl ixon ixoff iuclc ixany imaxbel iutf8opost olcuc ocrnl onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0isig icanon iexten echo echoe echok echonl noflsh xcase tostop echoprtechoctl echoke code prepYou can disable this setting with codestty onlcr code however its presence shouldn normally be problem if you suspect some binary data might become broken you must not use pty anyway phrpIf this is just some single command then it does not add much to security that you send your plaintext password over SSH if anyone haves access to your remote account now they ll not only have unlimited access to root on that computer but they also know your password It is embetter em to let ssh to root and let root run this command with href https stackoverflow com questions 402615 how to restrict ssh users to predefined set of commands after login forced commands or href https unix stackexchange com questions 18830 how to run specific program as root without password prompt edit code etc sudoers code so that no password is required for this single command from this account 7215,42459,2448,Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 7216,290915,987533,Editor Yearling Good Answer,NULL,NULL,0,NULL,NULL 7217,1429247,729821,NULL,NULL,NULL,0,NULL,NULL 7218,117505,1335938,NULL,NULL,NULL,0,NULL,NULL 7219,45732,516927,NULL,NULL,NULL,0,NULL,NULL 7220,1437593,615921,Popular Question,NULL,NULL,0,NULL,NULL 7221,183154,1197782,Documentation User Enthusiast,NULL,NULL,0,NULL,NULL 7222,695318,1099161,NULL,NULL,NULL,0,NULL,NULL 7223,922249,1262315,NULL,NULL,NULL,0,NULL,NULL 7224,176021,1196467,Excavator Popular Question,NULL,NULL,0,NULL,NULL 7225,724000,1032610,Popular Question Popular Question Popular Question Popular Question Custodian Popular Question Popular Question Notable Question Popular Question Promoter Popular Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Nice Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7226,2796304,937673,NULL,NULL,NULL,0,NULL,NULL 7227,355803,694239,NULL,NULL,NULL,0,NULL,NULL 7228,322310,381988,Notable Question Famous Question Notable Question Yearling Great Question Favorite Question Self-Learner Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 7229,1356417,493321,Informed Autobiographer Yearling Yearling Nice Answer Yearling Caucus Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 7230,20980,871774,xamarin.ios Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 7231,386466,1187024,NULL,NULL,NULL,0,NULL,NULL 7232,61952,1557759,Excavator Student Yearling Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 7233,276189,833007,Nice Question Notable Question Notable Question Popular Question Yearling Notable Question Good Answer Notable Question Notable Question Notable Question Popular Question Popular Question Caucus Notable Question Famous Question Yearling Popular Question Announcer Nice Question Popular Question Necromancer Caucus Nice Answer Notable Question Notable Question Famous Question Census Good Question Yearling Caucus Civic Duty Informed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7234,363624,1315738,Curious Popular Question Famous Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 7235,339349,414317,NULL,NULL,NULL,0,NULL,NULL 7236,580572,545797,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 7237,488305,1158841,Curious,NULL,NULL,0,NULL,NULL 7238,425861,1189128,NULL,NULL,NULL,0,NULL,NULL 7239,72928,359423,Curious Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 7240,1286020,985796,Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7241,560690,1405056,Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 7242,808344,306198,NULL,NULL,NULL,0,NULL,NULL 7243,24057,1321290,Notable Question Nice Answer Popular Question Favorite Question Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Famous Question Notable Question Famous Question Popular Question Nice Question Popular Question Caucus Famous Question Notable Question Notable Question Nice Question Popular Question Notable Question Yearling Popular Question Caucus Notable Question Famous Question Famous Question Notable Question Notable Question Caucus Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 7244,157222,1336200,Student Popular Question Custodian,NULL,NULL,0,NULL,NULL 7245,457426,396575,NULL,NULL,NULL,0,NULL,NULL 7246,4508637,299803,Nice Question,NULL,NULL,0,NULL,NULL 7247,574421,563622,NULL,NULL,NULL,0,NULL,NULL 7248,200339,346960,NULL,NULL,NULL,0,NULL,NULL 7249,274368,932354,Student,NULL,NULL,0,NULL,NULL 7250,887264,253077,Notable Question,NULL,NULL,0,NULL,NULL 7251,1626222,621329,NULL,NULL,NULL,0,NULL,NULL 7252,523960,621329,NULL,NULL,NULL,0,NULL,NULL 7253,1345105,946063,NULL,NULL,NULL,0,NULL,NULL 7254,1437587,1194698,NULL,NULL,NULL,0,NULL,NULL 7255,112186,506638,Critic Yearling Nice Question Popular Question Yearling Notable Question Caucus Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 7256,30811,696605,NULL,NULL,NULL,0,NULL,NULL 7257,202450,277375,Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 7258,2364,1110808,Self-Learner Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 7259,322218,994457,Yearling Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7260,260492,1091965,NULL,NULL,NULL,0,NULL,NULL 7261,318731,678227,NULL,NULL,NULL,0,NULL,NULL 7262,4548951,998084,NULL,NULL,NULL,0,NULL,NULL 7263,1146150,998084,NULL,NULL,NULL,0,NULL,NULL 7264,37810,125351,Promoter Nice Answer Necromancer Guru Good Answer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Good Answer Critic Yearling,NULL,NULL,0,NULL,NULL 7265,182471,183039,Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Editor Caucus Yearling Critic Nice Question,NULL,NULL,0,NULL,NULL 7266,654764,819574,NULL,NULL,NULL,0,NULL,NULL 7267,558752,810320,Famous Question,NULL,NULL,0,NULL,NULL 7268,764381,826938,Critic Popular Question Enthusiast Yearling Notable Question Popular Question Inquisitive Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Yearling Popular Question Notable Question Documentation User Popular Question Popular Question Popular Question Popular Question Civic Duty Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7269,945622,721525,Critic Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 7270,10449,690318,NULL,NULL,NULL,0,NULL,NULL 7271,353866,257091,NULL,NULL,NULL,0,NULL,NULL 7272,309438,531924,Yearling Famous Question Famous Question Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7273,493139,1412034,NULL,NULL,NULL,0,NULL,NULL 7274,244845,909267,NULL,NULL,NULL,0,NULL,NULL 7275,525587,202692,Nice Answer,NULL,NULL,0,NULL,NULL 7276,348904,1056084,NULL,NULL,NULL,0,NULL,NULL 7277,540897,706506,NULL,NULL,NULL,0,NULL,NULL 7278,4725,305340,Yearling Nice Question Nice Question Necromancer Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7279,93601,337164,NULL,NULL,NULL,0,NULL,NULL 7280,60558,1218958,NULL,NULL,NULL,0,NULL,NULL 7281,2343683,753691,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7282,1685107,753691,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7283,187034,821649,Necromancer Nice Answer Revival Yearling Notable Question Nice Answer Enlightened Yearling Caucus Popular Question Notable Question Nice Question Custodian Critic Nice Answer Citizen Patrol Explainer r Tenacious Custodian Nice Question Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 7284,256458,318266,Scholar Popular Question,NULL,NULL,0,NULL,NULL 7285,1509930,542620,Popular Question Nice Answer Revival Nice Question Notable Question,NULL,NULL,0,NULL,NULL 7286,60445,945394,NULL,NULL,NULL,0,NULL,NULL 7287,264992,707449,NULL,NULL,NULL,0,NULL,NULL 7288,349991,232693,Nice Question,NULL,NULL,0,NULL,NULL 7289,3841752,232693,Nice Question,NULL,NULL,0,NULL,NULL 7290,215899,578029,NULL,NULL,NULL,0,NULL,NULL 7291,278980,613699,NULL,NULL,NULL,0,NULL,NULL 7292,251452,856428,Notable Question Necromancer Excavator,NULL,NULL,0,NULL,NULL 7293,372672,679645,NULL,NULL,NULL,0,NULL,NULL 7294,184834,918962,NULL,NULL,NULL,0,NULL,NULL 7295,720728,360847,Good Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 7296,249797,1492042,NULL,NULL,NULL,0,NULL,NULL 7297,103515,1443200,NULL,NULL,NULL,0,NULL,NULL 7298,128520,569052,Caucus,NULL,NULL,0,NULL,NULL 7299,470953,336504,Popular Question,NULL,NULL,0,NULL,NULL 7300,32961,1212523,NULL,NULL,NULL,0,NULL,NULL 7301,511308,1526896,Good Answer Yearling Necromancer Necromancer Good Answer Nice Answer Caucus Nice Answer Good Answer Necromancer Populist Yearling Great Answer Necromancer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 7302,367059,1125390,Teacher,NULL,NULL,0,NULL,NULL 7303,106442,358004,Yearling Notable Question,NULL,NULL,0,NULL,NULL 7304,74433,206397,NULL,NULL,NULL,0,NULL,NULL 7305,28814,538705,Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 7306,11332,225741,NULL,NULL,NULL,0,NULL,NULL 7307,11117,285566,NULL,NULL,NULL,0,NULL,NULL 7308,560953,32719,NULL,NULL,NULL,0,NULL,NULL 7309,251628,1400010,NULL,NULL,NULL,0,NULL,NULL 7310,1123617,768531,NULL,NULL,NULL,0,NULL,NULL 7311,124570,657428,Popular Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 7312,96026,121284,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7313,835950,682246,Nice Answer Yearling Critic Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 7314,42052,42219,Great Answer Yearling Necromancer Notable Question Necromancer Nice Question Notable Question Good Answer Yearling Revival Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 7315,182443,203015,Commentator Organizer Editor Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 7316,31913,1198359,Informed,NULL,NULL,0,NULL,NULL 7317,120671,938774,Popular Question Yearling Nice Question Notable Question Editor Teacher Commentator Tumbleweed Nice Question Famous Question Popular Question Nice Question Self-Learner Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 7318,44186,840748,Notable Question Notable Question Yearling Popular Question Documentation Beta Famous Question Nice Question Famous Question Notable Question Popular Question Revival Yearling Revival Documentation User Popular Question,NULL,NULL,0,NULL,NULL 7319,8906325,840748,Notable Question Notable Question Yearling Popular Question Documentation Beta Famous Question Nice Question Famous Question Notable Question Popular Question Revival Yearling Revival Documentation User Popular Question,NULL,NULL,0,NULL,NULL 7320,165496,1243071,NULL,NULL,NULL,0,NULL,NULL 7321,190558,646077,NULL,NULL,NULL,0,NULL,NULL 7322,5097,194756,Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 7323,247427,1345282,NULL,NULL,NULL,0,NULL,NULL 7324,149744,12171,Guru Nice Answer Nice Answer Enlightened Good Answer Yearling Notable Question Good Question Famous Question Favorite Question Custodian Popular Question Popular Question Yearling Good Answer Documentation User Census Nice Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 7325,7757,590921,NULL,NULL,NULL,0,NULL,NULL 7326,32994,403805,Nice Answer Enlightened reactive-banana Nice Answer Yearling Nice Answer Enlightened Custodian Nice Answer Nice Answer Yearling Caucus Nice Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 7327,3718408,1251070,Self-Learner Yearling Popular Question Notable Question Notable Question Notable Question Nice Question Critic Enthusiast Famous Question Popular Question Yearling Good Question Notable Question Necromancer Popular Question Popular Question Popular Question Inquisitive Popular Question Famous Question Nice Answer Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7328,93282,199317,NULL,NULL,NULL,0,NULL,NULL 7329,699787,542744,NULL,NULL,NULL,0,NULL,NULL 7330,492247,848242,Yearling Caucus Notable Question Census Good Answer Civic Duty Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7331,163938,688752,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7332,60606,1335314,Informed,NULL,NULL,0,NULL,NULL 7333,63205,1134749,NULL,NULL,NULL,0,NULL,NULL 7334,916850,1278156,NULL,NULL,NULL,0,NULL,NULL 7335,109723,72114,Yearling Great Answer Nice Question Yearling Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 7336,267633,214303,Nice Question Famous Question Critic Yearling,NULL,NULL,0,NULL,NULL 7337,4569,237301,NULL,NULL,NULL,0,NULL,NULL 7338,195399,595257,NULL,NULL,NULL,0,NULL,NULL 7339,1380903,490615,NULL,NULL,NULL,0,NULL,NULL 7340,1058235,1028629,NULL,NULL,NULL,0,NULL,NULL 7341,228611,117539,Good Answer Nice Answer Enlightened Yearling Nice Answer Sportsmanship Guru Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 7342,168127,1087736,NULL,NULL,NULL,0,NULL,NULL 7343,281041,435595,NULL,NULL,NULL,0,NULL,NULL 7344,7060763,273797,Popular Question Popular Question Nice Question Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 7345,1949790,273797,Popular Question Popular Question Nice Question Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 7346,133324,421557,NULL,NULL,NULL,0,NULL,NULL 7347,1617160,1304246,NULL,NULL,NULL,0,NULL,NULL 7348,193021,230421,NULL,NULL,NULL,0,NULL,NULL 7349,102780,1243967,Yearling Yearling Promoter Student Caucus Excavator Yearling ruby,NULL,NULL,0,NULL,NULL 7350,412493,1540248,Commentator Yearling Caucus Tag Editor Announcer,NULL,NULL,0,NULL,NULL 7351,281156,1175950,NULL,NULL,NULL,0,NULL,NULL 7352,1632974,1298364,NULL,NULL,NULL,0,NULL,NULL 7353,390930,309314,NULL,NULL,NULL,0,NULL,NULL 7354,270788,961262,NULL,NULL,NULL,0,NULL,NULL 7355,814485,241776,Yearling Necromancer c++ Necromancer Revival Necromancer Caucus Populist Yearling Nice Answer Custodian Revival Nice Answer Revival Revival Reviewer Nice Answer Enlightened Good Answer Yearling Good Answer Popular Question Guru Caucus Necromancer Constituent Necromancer Necromancer backwards-compatibility Nice Answer,NULL,NULL,0,NULL,NULL 7356,814486,241776,Yearling Necromancer c++ Necromancer Revival Necromancer Caucus Populist Yearling Nice Answer Custodian Revival Nice Answer Revival Revival Reviewer Nice Answer Enlightened Good Answer Yearling Good Answer Popular Question Guru Caucus Necromancer Constituent Necromancer Necromancer backwards-compatibility Nice Answer,NULL,NULL,0,NULL,NULL 7357,982974,1195623,NULL,NULL,NULL,0,NULL,NULL 7358,68481,633060,Commentator,NULL,NULL,0,NULL,NULL 7359,462649,1090965,Notable Question Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7360,1022228,683164,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7361,522655,1118464,NULL,NULL,NULL,0,NULL,NULL 7362,150925,884732,NULL,NULL,NULL,0,NULL,NULL 7363,90642,161739,Popular Question Curious Commentator Yearling Caucus Constituent Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7364,194049,858493,Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7365,49620,210641,NULL,NULL,NULL,0,NULL,NULL 7366,23945,718430,Enthusiast,NULL,NULL,0,NULL,NULL 7367,176574,1464475,NULL,NULL,NULL,0,NULL,NULL 7368,480051,1279878,NULL,NULL,NULL,0,NULL,NULL 7369,6817,328445,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Populist Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Great Answer Guru Guru Good Answer Yearling Revival Guru android-activity Great Answer,NULL,NULL,0,NULL,NULL 7370,130339,338204,Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Peer Pressure Notable Question Popular Question Popular Question Notable Question Notable Question Good Question Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Favorite Question Famous Question Yearling Notable Question Popular Question Nice Question Good Question Popular Question Yearling Great Question Nice Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 7371,384250,685060,Good Answer Popular Question Popular Question Popular Question Yearling Notable Question Civic Duty Popular Question Notable Question Popular Question Caucus Constituent Popular Question Notable Question Nice Question Yearling Popular Question Popular Question Caucus Constituent Notable Question Custodian Caucus Constituent Yearling Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 7372,355482,324694,Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 7373,176613,1001739,Yearling,NULL,NULL,0,NULL,NULL 7374,324544,137893,Popular Question Popular Question Famous Question Famous Question Good Question Nice Question Notable Question Popular Question Notable Question Yearling Nice Answer Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Good Question Popular Question Promoter Necromancer Benefactor Famous Question Notable Question Famous Question Popular Question Custodian Good Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Famous Question Notable Question Famous Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 7375,256379,1262159,Announcer Yearling Self-Learner Census Announcer,NULL,NULL,0,NULL,NULL 7376,256401,1056449,Editor Teacher Supporter Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 7377,248006,969069,Teacher,NULL,NULL,0,NULL,NULL 7378,332706,1420210,Editor Student Scholar,NULL,NULL,0,NULL,NULL 7379,128725,183639,Yearling Organizer Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 7380,1097203,959657,NULL,NULL,NULL,0,NULL,NULL 7381,199003,176341,Notable Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7382,471473,900804,NULL,NULL,NULL,0,NULL,NULL 7383,229443,65326,Stellar Question Yearling Notable Question Notable Question Yearling Nice Answer Yearling Nice Question Famous Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 7384,47753,225825,NULL,NULL,NULL,0,NULL,NULL 7385,168514,1248881,NULL,NULL,NULL,0,NULL,NULL 7386,105285,227746,NULL,NULL,NULL,0,NULL,NULL 7387,174227,987624,Necromancer Informed Nice Answer Critic Enthusiast Caucus Yearling,NULL,NULL,0,NULL,NULL 7388,365700,630732,NULL,NULL,NULL,0,NULL,NULL 7389,460127,1031908,NULL,NULL,NULL,0,NULL,NULL 7390,144381,683010,Supporter,NULL,NULL,0,NULL,NULL 7391,34178,322634,Yearling Necromancer Good Answer Yearling Yearling Editor Necromancer,NULL,NULL,0,NULL,NULL 7392,131931,1195155,NULL,NULL,NULL,0,NULL,NULL 7393,460940,515276,NULL,NULL,NULL,0,NULL,NULL 7394,1096823,604187,NULL,NULL,NULL,0,NULL,NULL 7395,65480,466013,NULL,NULL,NULL,0,NULL,NULL 7396,687663,1060893,NULL,NULL,NULL,0,NULL,NULL 7397,95500,1203535,NULL,NULL,NULL,0,NULL,NULL 7398,661634,1215665,NULL,NULL,NULL,0,NULL,NULL 7399,872915,763199,NULL,NULL,NULL,0,NULL,NULL 7400,903516,936280,NULL,NULL,NULL,0,NULL,NULL 7401,56364,86288,Yearling Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 7402,146416,983884,Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 7403,11200500,983884,Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 7404,426685,821796,NULL,NULL,NULL,0,NULL,NULL 7405,58175,1352885,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7406,1324858,379910,Informed Autobiographer,NULL,NULL,0,NULL,NULL 7407,339979,642376,Popular Question Yearling Self-Learner Populist Notable Question Revival Caucus Yearling Necromancer Popular Question Popular Question Nice Answer Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 7408,1518516,834146,NULL,NULL,NULL,0,NULL,NULL 7409,329617,270663,Nice Question Famous Question Yearling Good Question Notable Question Good Question Good Question Nice Question Popular Question Yearling Good Question Notable Question Notable Question Yearling Civic Duty Nice Question,NULL,NULL,0,NULL,NULL 7410,3341,530115,NULL,NULL,NULL,0,NULL,NULL 7411,249758,447708,Great Answer Yearling Nice Answer Populist Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 7412,127829,765364,NULL,NULL,NULL,0,NULL,NULL 7413,177696,658946,NULL,NULL,NULL,0,NULL,NULL 7414,234107,1047589,Tumbleweed Autobiographer,NULL,NULL,0,NULL,NULL 7415,33868,17734,Nice Question,NULL,NULL,0,NULL,NULL 7416,959362,1211202,NULL,NULL,NULL,0,NULL,NULL 7417,9376356,1211202,NULL,NULL,NULL,0,NULL,NULL 7418,506960,510771,NULL,NULL,NULL,0,NULL,NULL 7419,178589,1238066,NULL,NULL,NULL,0,NULL,NULL 7420,318760,1005931,NULL,NULL,NULL,0,NULL,NULL 7421,60154,636786,Yearling Good Question Yearling Famous Question Yearling Popular Question Favorite Question Great Question,NULL,NULL,0,NULL,NULL 7422,67461,40914,Popular Question Notable Question Notable Question Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 7423,29450,561553,Popular Question,NULL,NULL,0,NULL,NULL 7424,1340105,276138,Yearling Good Answer Good Answer Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Yearling Custodian Nice Answer Generalist Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Good Answer Guru Yearling Good Answer Guru Guru Good Answer Great Answer,NULL,NULL,0,NULL,NULL 7425,26046,133051,NULL,NULL,NULL,0,NULL,NULL 7426,188223,223430,Yearling Necromancer,NULL,NULL,0,NULL,NULL 7427,342030,1115789,NULL,NULL,NULL,0,NULL,NULL 7428,79455,12030,Nice Answer Enlightened Guru Great Answer Tumbleweed Nice Answer language-agnostic Yearling Good Answer google-cloud-datastore Guru javascript Nice Answer Enlightened google-cloud-datastore google-cloud-datastore Good Question Good Answer Good Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Notable Question c++ Nice Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7429,8757864,121095,Teacher Yearling Yearling Tumbleweed Cleanup Custodian Yearling,NULL,NULL,0,NULL,NULL 7430,33581,121095,Teacher Yearling Yearling Tumbleweed Cleanup Custodian Yearling,NULL,NULL,0,NULL,NULL 7431,442874,41195,Informed Autobiographer,NULL,NULL,0,NULL,NULL 7432,101251,252412,Famous Question,NULL,NULL,0,NULL,NULL 7433,323387,390363,Good Answer Guru Popular Question Nice Answer Good Answer c Yearling Nice Answer Popular Question Guru Nice Answer Enlightened Pundit Nice Answer Enlightened Good Answer Necromancer Good Answer Popular Question Yearling Good Answer sed Custodian Census Good Answer Great Answer Necromancer Yearling Nice Answer Guru Guru,NULL,NULL,0,NULL,NULL 7434,81998,107613,Yearling Popular Question Nice Question Good Question Popular Question Mortarboard Notable Question Great Question Good Answer Popular Question Notable Question Yearling Guru Good Question Notable Question Notable Question Nice Question Stellar Question Census Cleanup Yearling Notable Question Notable Question Reviewer,NULL,NULL,0,NULL,NULL 7435,4455,108156,Enthusiast,NULL,NULL,0,NULL,NULL 7436,102010,656677,Popular Question Good Question Popular Question Nice Question Yearling Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question Famous Question Famous Question Good Question Notable Question Popular Question Notable Question Famous Question Yearling Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 7437,151838,341315,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 7438,95849,92548,NULL,NULL,NULL,0,NULL,NULL 7439,207138,600516,Yearling Popular Question Good Question Yearling Famous Question Notable Question Notable Question Yearling Notable Question Great Question,NULL,NULL,0,NULL,NULL 7440,16918,354987,django Yearling Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7441,678216,364775,Famous Question Nice Question Critic Nice Answer,NULL,NULL,0,NULL,NULL 7442,207337,1281458,NULL,NULL,NULL,0,NULL,NULL 7443,1184522,879637,NULL,NULL,NULL,0,NULL,NULL 7444,15998,858350,Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 7445,3062,845841,Critic Necromancer,NULL,NULL,0,NULL,NULL 7446,17240,91238,Notable Question Good Question Excavator Announcer Custodian Necromancer Yearling Civic Duty Announcer,NULL,NULL,0,NULL,NULL 7447,560019,1271878,NULL,NULL,NULL,0,NULL,NULL 7448,378624,873013,NULL,NULL,NULL,0,NULL,NULL 7449,636733,85134,Good Answer Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Yearling Guru Revival Nice Answer Nice Answer Good Answer Necromancer Good Answer Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Enlightened Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Yearling Guru Great Answer Good Answer Good Answer Necromancer Nice Answer Nice Answer Enlightened Good Answer Guru Great Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Yearling Great Answer Nice Answer Enlightened Guru Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 7450,85904,1518820,Necromancer,NULL,NULL,0,NULL,NULL 7451,13655,211180,Enlightened Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 7452,150950,1031676,Caucus Popular Question,NULL,NULL,0,NULL,NULL 7453,899718,902180,Revival,NULL,NULL,0,NULL,NULL 7454,510310,253496,Commentator Excavator,NULL,NULL,0,NULL,NULL 7455,10346,558483,NULL,NULL,NULL,0,NULL,NULL 7456,172469,606308,NULL,NULL,NULL,0,NULL,NULL 7457,649930,1157445,Critic Popular Question,NULL,NULL,0,NULL,NULL 7458,136387,1134852,NULL,NULL,NULL,0,NULL,NULL 7459,132588,825731,NULL,NULL,NULL,0,NULL,NULL 7460,153189,968472,NULL,NULL,NULL,0,NULL,NULL 7461,49913,730189,Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7462,1145593,747491,NULL,NULL,NULL,0,NULL,NULL 7463,1520528,843987,NULL,NULL,NULL,0,NULL,NULL 7464,814823,667868,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7465,195411,1331077,NULL,NULL,NULL,0,NULL,NULL 7466,1741354,1331077,NULL,NULL,NULL,0,NULL,NULL 7467,324172,419378,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7468,31646,837070,Commentator Scholar Nice Answer Yearling Caucus Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 7469,368938,537907,NULL,NULL,NULL,0,NULL,NULL 7470,1195554,412387,NULL,NULL,NULL,0,NULL,NULL 7471,179489,242042,Yearling Inquisitive Quorum Popular Question Good Answer Good Answer Notable Question Good Question Explainer Popular Question Nice Answer Popular Question Notable Question Necromancer Revival Popular Question Nice Answer Necromancer Notable Question Popular Question Caucus Nice Answer Nice Answer Enlightened Necromancer Yearling Favorite Question Good Answer Necromancer Necromancer Notable Question java Notable Question Notable Question Popular Question Notable Question Necromancer Popular Question Caucus Guru Good Answer Populist Good Answer Popular Question Necromancer Popular Question Good Answer Necromancer Custodian Notable Question Custodian Nice Answer Custodian Announcer Necromancer Yearling Census Notable Question Announcer Notable Question Caucus Announcer Nice Answer Notable Question Necromancer Popular Question Notable Question Revival Revival Good Answer Announcer Popular Question Famous Question Nice Answer,NULL,pAlthough it not necessarily for coverage created this method to verify that the utility class is well defined and do bit of coverage as well ppre code Verifies that utility class is well defined clazz utility class to verify public static void assertUtilityClassWellDefined final Class lt gt clazz throws NoSuchMethodException InvocationTargetException InstantiationException IllegalAccessException Assert assertTrue class must be final Modifier isFinal clazz getModifiers Assert assertEquals There must be only one constructor clazz getDeclaredConstructors length final Constructor lt gt constructor clazz getDeclaredConstructor if constructor isAccessible Modifier isPrivate constructor getModifiers Assert fail constructor is not private constructor setAccessible true constructor newInstance constructor setAccessible false for final Method method clazz getMethods if Modifier isStatic method getModifiers amp amp method getDeclaringClass equals clazz Assert fail there exists non static method method code prepI have placed the full code and examples in href https github com trajano maven jee6 tree master maven jee6 test https github com trajano maven jee6 tree master maven jee6 test Because the constructor is private so disabled the fact that it is private However it should be private to begin with as such disable access to it after the test pIf you re using Maven use the following dependency ppre code lt dependency gt lt groupId gt org glassfish jersey core lt groupId gt lt artifactId gt jersey common lt artifactId gt lt version gt 22 lt version gt lt scope gt test lt scope gt lt dependency gt code prepFor Gradle the following will work ppre codetestCompile org glassfish jersey core jersey common 22 code pre No In production you would use whatever was provided,0,NULL,NULL 7472,1208149,52141,Great Question Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 7473,1164093,1411732,Popular Question,NULL,NULL,0,NULL,NULL 7474,1827024,1318627,NULL,NULL,NULL,0,NULL,NULL 7475,79955,1318627,NULL,NULL,NULL,0,NULL,NULL 7476,3224514,1318627,NULL,NULL,NULL,0,NULL,NULL 7477,131073,382587,Notable Question Good Question Revival Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 7478,694911,263801,Yearling Necromancer Necromancer Popular Question Nice Question Revival Necromancer Yearling Popular Question Popular Question Yearling Popular Question Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 7479,73493,415131,NULL,NULL,NULL,0,NULL,NULL 7480,430360,1085741,NULL,NULL,NULL,0,NULL,NULL 7481,195275,217496,Good Answer Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 7482,23694,1514245,NULL,NULL,NULL,0,NULL,NULL 7483,252189,472800,Yearling,NULL,NULL,0,NULL,NULL 7484,399363,463935,Yearling Nice Answer Census Caucus Documentation User Census,NULL,NULL,0,NULL,NULL 7485,36637,544584,Popular Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7486,334644,1242412,NULL,NULL,NULL,0,NULL,NULL 7487,47754,626525,NULL,NULL,NULL,0,NULL,NULL 7488,376712,637071,NULL,NULL,NULL,0,NULL,NULL 7489,1381214,891213,Critic,NULL,NULL,0,NULL,NULL 7490,434990,1297308,NULL,NULL,NULL,0,NULL,NULL 7491,296553,703118,NULL,NULL,NULL,0,NULL,NULL 7492,28745,319589,Suffrage Vox Populi Electorate Enthusiast Custodian,NULL,NULL,0,NULL,NULL 7493,87155,292552,NULL,NULL,NULL,0,NULL,NULL 7494,364105,993217,NULL,NULL,NULL,0,NULL,NULL 7495,145448,407480,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 7496,67205,1334452,Informed,NULL,NULL,0,NULL,NULL 7497,297136,508436,Tumbleweed,NULL,NULL,0,NULL,NULL 7498,211859,1358911,NULL,NULL,NULL,0,NULL,NULL 7499,290103,705378,NULL,NULL,NULL,0,NULL,NULL 7500,40812,587282,NULL,NULL,NULL,0,NULL,NULL 7501,545210,223342,NULL,NULL,NULL,0,NULL,NULL 7502,375470,429107,NULL,NULL,NULL,0,NULL,NULL 7503,7019185,429107,NULL,NULL,NULL,0,NULL,NULL 7504,103236,6488,Good Answer Yearling Nice Question Notable Question Popular Question Caucus Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7505,251495,1106328,Necromancer Popular Question Yearling Critic Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 7506,848013,570649,NULL,NULL,NULL,0,NULL,NULL 7507,27544,306320,Yearling Good Answer Census Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 7508,160382,954442,Critic Organizer Yearling Informed Autobiographer Yearling Explainer Suffrage Custodian Citizen Patrol Custodian Civic Duty Vox Populi Custodian Yearling Yearling Reviewer Tenacious Reviewer Strunk & White Unsung Hero Deputy Revival Tag Editor Custodian Custodian Custodian Necromancer Proofreader Reviewer Reviewer Electorate Famous Question Fanatic Nice Answer Enlightened Revival Yearling Caucus Constituent selenium-webdriver Announcer Nice Answer Enlightened Announcer Revival Yearling Documentation User Census Announcer Announcer Popular Question Nice Answer Announcer Announcer Announcer Announcer Nice Answer Yearling java,NULL,NULL,0,NULL,NULL 7509,21529,697305,NULL,NULL,NULL,0,NULL,NULL 7510,1329233,931130,NULL,NULL,NULL,0,NULL,NULL 7511,270333,1223149,NULL,NULL,NULL,0,NULL,NULL 7512,67663,1370301,Announcer,NULL,NULL,0,NULL,NULL 7513,396667,856719,NULL,NULL,NULL,0,NULL,NULL 7514,255647,401382,NULL,NULL,NULL,0,NULL,NULL 7515,571146,694151,Popular Question,NULL,NULL,0,NULL,NULL 7516,165782,1144120,Popular Question Yearling Excavator Good Answer Nice Question Popular Question Caucus Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Caucus Notable Question Documentation User Popular Question Custodian Popular Question Popular Question Yearling Famous Question Popular Question Populist Notable Question Popular Question Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7517,2854,118960,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7518,173709,279262,Notable Question,NULL,NULL,0,NULL,NULL 7519,168448,485573,Popular Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 7520,895621,1487189,Custodian Popular Question,NULL,NULL,0,NULL,NULL 7521,15703,1496305,Critic Commentator Yearling,NULL,NULL,0,NULL,NULL 7522,64244,848030,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 7523,893707,927954,Popular Question,NULL,NULL,0,NULL,NULL 7524,9489,800042,Yearling Notable Question,NULL,NULL,0,NULL,NULL 7525,518167,37772,Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7526,104793,671691,NULL,NULL,NULL,0,NULL,NULL 7527,285079,427495,NULL,NULL,NULL,0,NULL,NULL 7528,31972,292168,NULL,NULL,NULL,0,NULL,NULL 7529,31522,2843,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7530,155642,610558,NULL,NULL,NULL,0,NULL,NULL 7531,469144,474090,Supporter,NULL,NULL,0,NULL,NULL 7532,44183,700011,Yearling,NULL,NULL,0,NULL,NULL 7533,649907,1450856,Nice Answer Announcer Excavator Census,NULL,NULL,0,NULL,NULL 7534,573619,610036,Popular Question,NULL,NULL,0,NULL,NULL 7535,12167,1525164,NULL,NULL,NULL,0,NULL,NULL 7536,4729,448912,Notable Question Notable Question Notable Question Yearling Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 7537,924405,819959,NULL,NULL,NULL,0,NULL,NULL 7538,324553,413020,Nice Answer Popular Question Nice Answer Good Question Necromancer Yearling Necromancer Famous Question Popular Question Nice Answer Announcer Nice Answer Necromancer Announcer Necromancer Nice Answer Yearling Announcer Announcer Announcer Popular Question Nice Question Notable Question Good Answer Cleanup Popular Question Necromancer Notable Question Popular Question Yearling Announcer Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 7539,413341,1082903,NULL,NULL,NULL,0,NULL,NULL 7540,668476,941602,NULL,NULL,NULL,0,NULL,NULL 7541,164368,783279,Revival,NULL,NULL,0,NULL,NULL 7542,139345,1447856,NULL,NULL,NULL,0,NULL,NULL 7543,1021072,1010003,Good Answer Notable Question Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 7544,2112473,1279530,Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 7545,5164035,1279530,Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 7546,611354,1279530,Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 7547,273375,946690,NULL,NULL,NULL,0,NULL,NULL 7548,215526,500150,Notable Question,NULL,NULL,0,NULL,NULL 7549,175637,1005055,NULL,NULL,NULL,0,NULL,NULL 7550,77068,495415,Commentator Critic,NULL,NULL,0,NULL,NULL 7551,67633,749782,Revival Custodian Custodian Revival Great Answer Yearling Custodian Revival Caucus Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 7552,46149,316923,Teacher,NULL,NULL,0,NULL,NULL 7553,180972,708793,NULL,NULL,NULL,0,NULL,NULL 7554,832996,555681,NULL,NULL,NULL,0,NULL,NULL 7555,190261,562686,Nice Answer,NULL,NULL,0,NULL,NULL 7556,93915,156869,Notable Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Famous Question Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Famous Question Constituent Nice Answer Nice Answer Census android Popular Question Populist Good Answer Caucus Yearling Nice Question Custodian Caucus Constituent Inquisitive Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 7557,1049716,300695,NULL,NULL,NULL,0,NULL,NULL 7558,64269,117975,Nice Answer Yearling Notable Question Popular Question Good Answer Yearling Great Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 7559,2828763,595378,Teacher Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7560,87255,595378,Teacher Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7561,1772395,1079017,Famous Question Famous Question Great Question Popular Question Nice Question Nice Question Yearling Good Question Notable Question Popular Question Yearling Notable Question Good Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7562,11384235,1079017,Famous Question Famous Question Great Question Popular Question Nice Question Nice Question Yearling Good Question Notable Question Popular Question Yearling Notable Question Good Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7563,406900,446783,Yearling Notable Question,NULL,NULL,0,NULL,NULL 7564,83350,11659,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7565,168301,1200542,Critic Nice Answer Necromancer Popular Question Scholar Yearling Notable Question Announcer Documentation User Revival Good Answer,NULL,NULL,0,NULL,NULL 7566,97867,1299441,NULL,NULL,NULL,0,NULL,NULL 7567,155801,855693,NULL,NULL,NULL,0,NULL,NULL 7568,153428,1430810,Yearling Nice Answer Popular Question Notable Question Yearling Good Answer Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 7569,81949,433961,Yearling Informed Yearling Revival Yearling Yearling Tenacious Citizen Patrol Custodian Enthusiast Yearling,NULL,NULL,0,NULL,NULL 7570,125520,578892,NULL,NULL,NULL,0,NULL,NULL 7571,204445,1025840,Good Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 7572,43164,1447667,NULL,NULL,NULL,0,NULL,NULL 7573,703960,588068,Popular Question,NULL,NULL,0,NULL,NULL 7574,89639,1043636,Nice Answer Yearling Editor Popular Question,NULL,NULL,0,NULL,NULL 7575,126871,159537,Yearling Caucus Census Editor Revival,NULL,NULL,0,NULL,NULL 7576,1505001,78878,Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 7577,336430,1106604,Notable Question,NULL,NULL,0,NULL,NULL 7578,36581,499476,NULL,NULL,NULL,0,NULL,NULL 7579,163520,181174,Nice Answer Excavator Enthusiast Curious Revival Yearling Notable Question Caucus Necromancer Necromancer Necromancer Popular Question Necromancer Nice Answer Necromancer Yearling Nice Answer Great Answer Necromancer Popular Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 7580,234658,951827,NULL,NULL,NULL,0,NULL,NULL 7581,196165,508985,NULL,NULL,NULL,0,NULL,NULL 7582,614098,1556290,Necromancer Curious python Yearling Nice Answer Enlightened Nice Answer Enlightened pypy Nice Answer Enlightened Nice Answer Notable Question Yearling Good Answer Necromancer Yearling Revival Notable Question Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 7583,393619,1387231,Tumbleweed Census,NULL,NULL,0,NULL,NULL 7584,9642422,1387231,Tumbleweed Census,NULL,NULL,0,NULL,NULL 7585,151389,1524405,NULL,NULL,NULL,0,NULL,NULL 7586,1759014,1546623,NULL,NULL,NULL,0,NULL,NULL 7587,162621,44385,Custodian Notable Question Yearling Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7588,2352,1048540,NULL,NULL,NULL,0,NULL,NULL 7589,3157,42761,NULL,NULL,NULL,0,NULL,NULL 7590,251767,1164528,NULL,NULL,NULL,0,NULL,NULL 7591,713938,817307,NULL,NULL,NULL,0,NULL,NULL 7592,2983,141821,Yearling Stellar Question Great Answer Promoter Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 7593,230145,1481484,Necromancer Supporter,NULL,NULL,0,NULL,NULL 7594,190196,3896,Nice Answer,NULL,NULL,0,NULL,NULL 7595,177815,415807,Popular Question,NULL,NULL,0,NULL,NULL 7596,1066604,1059105,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7597,1178108,1005972,Commentator Student Citizen Patrol Necromancer Yearling Yearling Critic Yearling Mortarboard Yearling Custodian Yearling Custodian Nice Answer Tumbleweed Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7598,165426,989133,Self-Learner Documentation User,NULL,NULL,0,NULL,NULL 7599,774166,182146,NULL,NULL,NULL,0,NULL,NULL 7600,29457,1209072,NULL,NULL,NULL,0,NULL,NULL 7601,23995,1445812,Student Investor Commentator Informed Yearling Tumbleweed Necromancer Caucus Popular Question Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7602,18171,15959,NULL,NULL,NULL,0,NULL,NULL 7603,299885,321744,Popular Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 7604,312728,592309,Tumbleweed,NULL,NULL,0,NULL,NULL 7605,473578,765054,NULL,NULL,NULL,0,NULL,NULL 7606,121512,111870,Revival Necromancer Yearling Revival Nice Answer Enlightened Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 7607,10689,74366,Nice Answer Good Answer Yearling Guru Nice Answer Enlightened Guru Nice Answer Populist Great Answer Yearling Nice Answer Guru Nice Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7608,449507,887533,Nice Answer Enlightened Famous Question Excavator Good Answer Self-Learner Yearling Good Question Caucus Nice Answer Custodian Caucus Yearling Revival Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7609,17039,320031,Nice Answer Enlightened Yearling Guru Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 7610,554373,700943,Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 7611,475360,1290679,Scholar Student Popular Question Supporter,NULL,NULL,0,NULL,NULL 7612,34039,4986,NULL,NULL,NULL,0,NULL,NULL 7613,219796,781574,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 7614,3665295,1280886,NULL,NULL,NULL,0,NULL,NULL 7615,5945571,1344652,Yearling,NULL,NULL,0,NULL,NULL 7616,110334,791624,NULL,NULL,NULL,0,NULL,NULL 7617,376206,475189,Student,NULL,NULL,0,NULL,NULL 7618,436320,1439568,NULL,NULL,NULL,0,NULL,NULL 7619,72893,105793,Yearling Tumbleweed Editor,NULL,NULL,0,NULL,NULL 7620,482582,419899,NULL,NULL,NULL,0,NULL,NULL 7621,318709,304658,Notable Question Necromancer Yearling Notable Question Enthusiast Nice Question,NULL,NULL,0,NULL,NULL 7622,897326,1032316,Custodian Tumbleweed Peer Pressure Promoter Necromancer Popular Question Yearling Informed Custodian Excavator Notable Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7623,261836,1063885,NULL,NULL,NULL,0,NULL,NULL 7624,348549,881685,NULL,NULL,NULL,0,NULL,NULL 7625,327779,908430,Tumbleweed Teacher Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7626,135876,1164922,Yearling Nice Answer Famous Question Necromancer Caucus Yearling Scholar Good Answer Necromancer Custodian Announcer Yearling Caucus Citizen Patrol Nice Answer Nice Answer Yearling Informed Census Notable Question Necromancer Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 7627,400995,838283,NULL,NULL,NULL,0,NULL,NULL 7628,723529,477263,NULL,NULL,NULL,0,NULL,NULL 7629,973740,949110,Popular Question Popular Question Nice Question Yearling Popular Question Teacher,NULL,NULL,0,NULL,NULL 7630,345966,1425694,Notable Question Supporter,NULL,NULL,0,NULL,NULL 7631,492213,1030378,NULL,NULL,NULL,0,NULL,NULL 7632,401614,1030378,NULL,NULL,NULL,0,NULL,NULL 7633,351762,255633,Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Good Question Popular Question Popular Question Yearling Famous Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 7634,293324,78667,Good Answer Nice Question Yearling Nice Question Good Answer Custodian Good Answer Guru Nice Answer Nice Answer Popular Question Popular Question Nice Question Yearling Popular Question Good Answer Great Question Self-Learner Notable Question Nice Answer Enlightened Famous Question Famous Question Civic Duty Famous Question Caucus Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7635,141360,712348,Good Answer Yearling,NULL,NULL,0,NULL,NULL 7636,246009,22325,Popular Question Yearling Notable Question Good Answer Nice Answer Yearling Popular Question Famous Question Custodian Yearling,NULL,NULL,0,NULL,NULL 7637,55498,1173611,NULL,NULL,NULL,0,NULL,NULL 7638,557089,11889,Yearling Great Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 7639,735947,1310389,NULL,NULL,NULL,0,NULL,NULL 7640,1160415,179265,NULL,NULL,NULL,0,NULL,NULL 7641,368967,4479,NULL,NULL,NULL,0,NULL,NULL 7642,77070,1171821,NULL,NULL,NULL,0,NULL,NULL 7643,1228182,554075,Popular Question Custodian Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Necromancer Nice Question Good Answer Yearling Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 7644,203119,1188154,Documentation User,NULL,NULL,0,NULL,NULL 7645,710168,379027,NULL,NULL,NULL,0,NULL,NULL 7646,115051,373311,NULL,NULL,NULL,0,NULL,NULL 7647,11357,949116,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 7648,1278936,1289167,Critic Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Necromancer Notable Question Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 7649,589000,987456,NULL,NULL,NULL,0,NULL,NULL 7650,295706,1173871,Necromancer,NULL,NULL,0,NULL,NULL 7651,349831,1222465,Supporter,NULL,NULL,0,NULL,NULL 7652,363378,413145,Supporter Good Question,NULL,NULL,0,NULL,NULL 7653,190243,45112,Notable Question Great Question Famous Question Popular Question Notable Question Nice Answer Nice Answer Enlightened Famous Question Popular Question Famous Question Famous Question Nice Answer Enlightened Yearling Self-Learner Necromancer Custodian Notable Question Nice Question Custodian Good Answer Favorite Question Popular Question Good Answer Great Question Popular Question Yearling Good Answer Stellar Question Guru Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7654,372877,1523997,NULL,NULL,NULL,0,NULL,NULL 7655,30464,637320,NULL,NULL,NULL,0,NULL,NULL 7656,370825,735562,NULL,NULL,NULL,0,NULL,NULL 7657,1512135,959736,NULL,NULL,NULL,0,NULL,NULL 7658,15677,513672,Good Answer Caucus,NULL,NULL,0,NULL,NULL 7659,14185,93995,Popular Question Notable Question Popular Question Good Answer Yearling Good Answer Nice Answer Good Question Great Answer Necromancer Famous Question Famous Question Famous Question Pundit Nice Question Nice Question Famous Question Good Question Nice Question Nice Question Nice Answer Good Question Popular Question Popular Question Famous Question Famous Question Popular Question Nice Question Popular Question Good Answer Popular Question Famous Question Notable Question Notable Question Popular Question Yearling Famous Question Famous Question Popular Question Great Answer Popular Question Notable Question Notable Question Popular Question Great Question Notable Question Good Question Popular Question Census Good Question Notable Question Notable Question Yearling Popular Question Popular Question Revival Notable Question Great Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7660,3569,19990,Tag Editor Nice Question Nice Answer Notable Question Nice Answer Yearling Great Answer Great Answer Famous Question Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7661,145696,584441,NULL,NULL,NULL,0,NULL,NULL 7662,8048016,697266,NULL,NULL,NULL,0,NULL,NULL 7663,110603,37917,NULL,NULL,NULL,0,NULL,NULL 7664,27466,1177780,Teacher Revival,NULL,NULL,0,NULL,NULL 7665,60638,1555560,NULL,NULL,NULL,0,NULL,NULL 7666,208581,407762,Yearling Nice Answer Yearling Nice Answer Enlightened Notable Question Guru Nice Answer Yearling Popular Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 7667,50188,819275,Popular Question Notable Question Critic Popular Question,NULL,NULL,0,NULL,NULL 7668,142749,205058,NULL,NULL,NULL,0,NULL,NULL 7669,81434,287822,Good Answer Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7670,8376591,961511,NULL,NULL,NULL,0,NULL,NULL 7671,75464,961511,NULL,NULL,NULL,0,NULL,NULL 7672,204993,744454,NULL,NULL,NULL,0,NULL,NULL 7673,8029957,904758,NULL,NULL,NULL,0,NULL,NULL 7674,443474,904758,NULL,NULL,NULL,0,NULL,NULL 7675,193087,117750,Necromancer Famous Question Popular Question Yearling Notable Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 7676,160149,528617,Popular Question Notable Question Self-Learner Peer Pressure Popular Question Custodian Popular Question Popular Question Notable Question Notable Question Caucus Yearling Notable Question Popular Question Notable Question Great Question Nice Question Famous Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7677,171659,10442,Great Answer,NULL,NULL,0,NULL,NULL 7678,522365,361535,Yearling Yearling Nice Answer Enlightened Famous Question Notable Question Nice Answer Enlightened Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 7679,219725,496008,NULL,NULL,NULL,0,NULL,NULL 7680,175359,345066,NULL,NULL,NULL,0,NULL,NULL 7681,5547,791534,Yearling,NULL,NULL,0,NULL,NULL 7682,435435,724781,NULL,NULL,NULL,0,NULL,NULL 7683,1072533,701320,NULL,NULL,NULL,0,NULL,NULL 7684,155715,346005,Notable Question Yearling Nice Question Famous Question Famous Question Notable Question Yearling Revival Announcer Popular Question Good Question Custodian Yearling Necromancer,NULL,NULL,0,NULL,NULL 7685,110074,137871,Yearling Nice Question Popular Question Yearling Inquisitive Popular Question Yearling Nice Question Popular Question Famous Question Notable Question Self-Learner Yearling Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 7686,1075733,1265913,Supporter,NULL,NULL,0,NULL,NULL 7687,1515860,124930,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7688,194615,410712,Popular Question Popular Question Popular Question Popular Question Self-Learner Popular Question Famous Question Investor Census Popular Question,NULL,NULL,0,NULL,NULL 7689,383159,270209,Revival Popular Question Yearling Nice Answer Enlightened Necromancer Notable Question Popular Question Nice Answer Enlightened Custodian Yearling Popular Question Good Answer Autobiographer,NULL,NULL,0,NULL,NULL 7690,2653842,270209,Revival Popular Question Yearling Nice Answer Enlightened Necromancer Notable Question Popular Question Nice Answer Enlightened Custodian Yearling Popular Question Good Answer Autobiographer,NULL,NULL,0,NULL,NULL 7691,1637609,270209,Revival Popular Question Yearling Nice Answer Enlightened Necromancer Notable Question Popular Question Nice Answer Enlightened Custodian Yearling Popular Question Good Answer Autobiographer,NULL,NULL,0,NULL,NULL 7692,1561963,835861,NULL,NULL,NULL,0,NULL,NULL 7693,270227,207695,NULL,NULL,NULL,0,NULL,NULL 7694,84054,96729,Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 7695,292351,1306078,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7696,103464,1033489,NULL,NULL,NULL,0,NULL,NULL 7697,406424,545475,Informed Autobiographer Yearling Excavator Caucus Yearling Nice Answer Popular Question Yearling Custodian Citizen Patrol Good Answer Nice Answer Yearling Revival Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 7698,74485,187064,NULL,NULL,NULL,0,NULL,NULL 7699,20425,414075,Revival Custodian Necromancer Notable Question Popular Question Notable Question Proofreader Revival Notable Question Nice Question Nice Answer Yearling Caucus Constituent Electorate Caucus Constituent Yearling Popular Question Popular Question Nice Answer Documentation User Custodian Caucus Popular Question Popular Question Good Answer Famous Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 7700,233342,1491043,NULL,NULL,NULL,0,NULL,NULL 7701,35660,1158311,NULL,NULL,NULL,0,NULL,NULL 7702,111126,433421,Nice Answer Revival Necromancer Revival Great Answer Yearling Necromancer Revival Necromancer Revival Guru Necromancer Necromancer Yearling Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7703,1058224,1168933,NULL,NULL,NULL,0,NULL,NULL 7704,46038,645127,Promoter Nice Answer Enlightened Benefactor Yearling Popular Question Famous Question Necromancer Nice Question Notable Question Yearling Civic Duty Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 7705,1010716,1356091,Necromancer,NULL,NULL,0,NULL,NULL 7706,1777924,587905,Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7707,67768,1474698,NULL,NULL,NULL,0,NULL,NULL 7708,1414226,192265,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7709,2038924,304088,NULL,NULL,NULL,0,NULL,NULL 7710,2579103,304088,NULL,NULL,NULL,0,NULL,NULL 7711,65537,304088,NULL,NULL,NULL,0,NULL,NULL 7712,152617,956970,NULL,NULL,NULL,0,NULL,NULL 7713,101193,7666,Yearling Revival Guru Nice Answer Yearling Notable Question Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 7714,436999,214127,NULL,NULL,NULL,0,NULL,NULL 7715,4969243,32577,Famous Question Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Notable Question Nice Answer Nice Question Yearling Popular Question Popular Question Good Answer Nice Answer Enlightened Notable Question Good Question Popular Question Nice Answer Notable Question Popular Question Good Question Popular Question Notable Question Yearling Notable Question Nice Question Notable Question Revival Notable Question Famous Question Nice Answer Enlightened Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 7716,1695108,901351,NULL,NULL,NULL,0,NULL,NULL 7717,208614,230443,Yearling Famous Question Notable Question Nice Answer Popular Question Notable Question Popular Question Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7718,1509720,1145515,NULL,NULL,NULL,0,NULL,NULL 7719,295975,745952,Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7720,1421252,308731,Nice Answer Enlightened Yearling Nice Answer Enlightened Cleanup ruby Custodian Custodian Custodian Proofreader Reviewer Yearling Electorate Suffrage Vox Populi Good Answer Quorum Deputy ruby-on-rails Strunk & White Custodian Reviewer Mortarboard Steward Reviewer Talkative Reviewer Custodian Steward Marshal Popular Question Guru Yearling Nice Answer Famous Question Nice Answer ruby-on-rails-4,NULL,NULL,0,NULL,NULL 7721,222021,82062,Revival Popular Question Famous Question Famous Question Nice Question Famous Question Notable Question Famous Question Yearling Famous Question Favorite Question Announcer Popular Question Favorite Question Good Question Nice Question Great Question Nice Question Caucus Popular Question Famous Question Popular Question Announcer Nice Answer Nice Answer Nice Answer Enlightened Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Nice Question Nice Answer Popular Question Good Answer Good Question Great Question Stellar Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Nice Question Nice Question Notable Question Good Answer Necromancer,NULL,NULL,0,NULL,NULL 7722,99424,494375,Explainer Caucus Constituent,NULL,NULL,0,NULL,NULL 7723,109222,491937,Tumbleweed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7724,4631915,922647,Popular Question,NULL,NULL,0,NULL,NULL 7725,148533,922647,Popular Question,NULL,NULL,0,NULL,NULL 7726,488148,1193623,NULL,NULL,NULL,0,NULL,NULL 7727,409856,603322,NULL,NULL,NULL,0,NULL,NULL 7728,391525,548748,NULL,NULL,NULL,0,NULL,NULL 7729,668098,511190,NULL,NULL,NULL,0,NULL,NULL 7730,750089,1271696,NULL,NULL,NULL,0,NULL,NULL 7731,10088839,1271696,NULL,NULL,NULL,0,NULL,NULL 7732,10752,1440831,NULL,NULL,NULL,0,NULL,NULL 7733,131196,856091,Popular Question Supporter,NULL,NULL,0,NULL,NULL 7734,532709,1188742,NULL,NULL,NULL,0,NULL,NULL 7735,1507630,1348707,Scholar Teacher,NULL,NULL,0,NULL,NULL 7736,1353855,991020,Famous Question,NULL,NULL,0,NULL,NULL 7737,79248,1087863,NULL,NULL,NULL,0,NULL,NULL 7738,1172774,313583,Notable Question Yearling Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7739,18015,2038,Yearling Nice Answer Popular Question Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7740,889727,458832,Popular Question Yearling Yearling Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 7741,868659,615484,Commentator,NULL,NULL,0,NULL,NULL 7742,344024,245669,NULL,NULL,NULL,0,NULL,NULL 7743,21770,62143,NULL,NULL,NULL,0,NULL,NULL 7744,418754,826777,NULL,NULL,NULL,0,NULL,NULL 7745,407331,857727,Yearling Caucus Proofreader Guru Custodian Revival Mortarboard Yearling Nice Answer Custodian Quorum Reviewer Reviewer Custodian Steward Reviewer Reviewer Yearling Steward,NULL,NULL,0,NULL,NULL 7746,407757,329977,NULL,NULL,NULL,0,NULL,NULL 7747,70118,65225,Good Answer Yearling,NULL,NULL,0,NULL,NULL 7748,139953,79287,NULL,NULL,NULL,0,NULL,NULL 7749,69367,613894,NULL,NULL,NULL,0,NULL,NULL 7750,24568,627326,NULL,NULL,NULL,0,NULL,NULL 7751,50896,663401,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7752,298946,238849,Popular Question Notable Question Nice Answer Good Answer Popular Question Famous Question Notable Question Civic Duty Nice Question Notable Question Yearling Popular Question Guru Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Great Answer Popular Question Stellar Question Good Answer Good Answer Nice Question Yearling Good Question Famous Question Famous Question Popular Question Famous Question Notable Question Notable Question Notable Question Nice Question Custodian Excavator Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7753,98814,986907,Yearling,NULL,NULL,0,NULL,NULL 7754,408420,518064,Yearling Popular Question Popular Question Tumbleweed Nice Answer Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 7755,24818,1040140,NULL,NULL,NULL,0,NULL,NULL 7756,1176299,762835,Yearling Populist Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 7757,563011,102694,Excavator Popular Question Popular Question Yearling Good Answer Popular Question Nice Answer Custodian Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 7758,26527,122022,Necromancer Announcer Nice Answer Popular Question Yearling Good Answer Yearling Nice Answer Guru Yearling,NULL,pThere better support for this now through codeconda env code You can for example now do ppre codename sample envchannels dependencies requests bokeh gt 10 pip editable git https github com pythonforfacebook facebook sdk git00e02eaa71cc2a242790a0fcc egg facebook sdk master code prepIt still calling pip under the covers but you can now unify your conda and pip package specifications in single codeenvironment yml code file ppIf you wanted to update your root environment with this file you would need to save this to file for example codeenvironment yml code then run the command codeconda env update environment yml code ppIt more likely that you would want to create new environment pp codeconda env create environment yml code changed as supposed in the comments ve edited the answer to answer your question,0,NULL,NULL 7759,317179,347386,Good Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 7760,11252,12917,Disciplined Caucus Student Caucus,NULL,NULL,0,NULL,NULL 7761,42653,294619,Famous Question Nice Answer Yearling Famous Question Notable Question Nice Question Nice Question Famous Question Popular Question Great Question Good Question Popular Question Yearling Revival Notable Question Nice Question Yearling Stellar Question Good Answer,NULL,NULL,0,NULL,NULL 7762,256420,238195,Student Editor Teacher Necromancer Supporter Informed,NULL,NULL,0,NULL,NULL 7763,155114,530772,Notable Question,NULL,NULL,0,NULL,NULL 7764,155139,530772,Notable Question,NULL,NULL,0,NULL,NULL 7765,196721,258611,Yearling Nice Answer Nice Answer Popular Question Nice Answer Nice Question Good Answer Proofreader Revival Popular Question Custodian Caucus Notable Question Yearling Good Question Reviewer Caucus Great Answer Yearling Notable Question Curious Custodian Caucus Famous Question Revival,NULL,NULL,0,NULL,NULL 7766,419263,964242,Necromancer Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 7767,632367,393206,NULL,NULL,NULL,0,NULL,NULL 7768,513729,452844,Student,NULL,NULL,0,NULL,NULL 7769,694151,1024598,NULL,NULL,NULL,0,NULL,NULL 7770,86117,309367,Yearling Good Answer,NULL,NULL,0,NULL,NULL 7771,269334,1548504,Yearling Curious Good Answer Popular Question,NULL,NULL,0,NULL,NULL 7772,35443,278681,Nice Answer,NULL,NULL,0,NULL,NULL 7773,904555,894332,NULL,NULL,NULL,0,NULL,NULL 7774,498050,1505819,Popular Question Curious Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7775,2692831,100704,Caucus Caucus Nice Question Famous Question Census Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 7776,617507,100704,Caucus Caucus Nice Question Famous Question Census Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 7777,738,1203286,Student,NULL,NULL,0,NULL,NULL 7778,145853,415188,NULL,NULL,NULL,0,NULL,NULL 7779,17575,815324,Documentation User,NULL,NULL,0,NULL,NULL 7780,3105433,753292,NULL,NULL,NULL,0,NULL,NULL 7781,348351,1334908,NULL,NULL,NULL,0,NULL,NULL 7782,666761,42895,Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7783,1654457,400796,Yearling,NULL,NULL,0,NULL,NULL 7784,365702,1336230,Necromancer,NULL,NULL,0,NULL,NULL 7785,1273067,294557,Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 7786,285332,634472,NULL,NULL,NULL,0,NULL,NULL 7787,2611,450243,Commentator Popular Question Popular Question Favorite Question Documentation User Famous Question,NULL,NULL,0,NULL,NULL 7788,47690,328591,Yearling Revival Good Answer Yearling Yearling,NULL,,0,, 7789,1832238,1126888,Notable Question,NULL,NULL,0,NULL,NULL 7790,132847,448885,NULL,NULL,NULL,0,NULL,NULL 7791,62812,595862,NULL,NULL,NULL,0,NULL,NULL 7792,286251,977375,NULL,NULL,NULL,0,NULL,NULL 7793,599795,486957,NULL,NULL,NULL,0,NULL,NULL 7794,937882,527419,Nice Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 7795,213602,281265,Popular Question Notable Question Yearling Popular Question Notable Question Famous Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 7796,291274,1438136,Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7797,19219,78455,Popular Question,NULL,NULL,0,NULL,NULL 7798,1510689,1071129,NULL,NULL,NULL,0,NULL,NULL 7799,860153,1549881,Revival Necromancer Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7800,162552,386918,NULL,NULL,NULL,0,NULL,NULL 7801,316307,279869,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7802,713660,1412727,Supporter Notable Question Necromancer,NULL,NULL,0,NULL,NULL 7803,346554,726861,Autobiographer Commentator,NULL,NULL,0,NULL,NULL 7804,4448,96342,Revival Yearling Announcer Yearling Announcer Critic Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 7805,1522385,1293732,NULL,NULL,NULL,0,NULL,NULL 7806,652975,892000,NULL,NULL,NULL,0,NULL,NULL 7807,3386321,560146,Notable Question Popular Question Famous Question Inquisitive Popular Question Famous Question Talkative Popular Question Caucus Constituent Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7808,6391107,486139,Citizen Patrol Notable Question Popular Question Notable Question Favorite Question Popular Question Popular Question Necromancer Good Answer Nice Question Nice Answer Notable Question Yearling Nice Answer Popular Question Popular Question Nice Answer Popular Question Nice Question Famous Question Famous Question Caucus Great Answer Yearling Nice Question Popular Question Nice Answer Popular Question Populist Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 7809,1350583,486139,Citizen Patrol Notable Question Popular Question Notable Question Favorite Question Popular Question Popular Question Necromancer Good Answer Nice Question Nice Answer Notable Question Yearling Nice Answer Popular Question Popular Question Nice Answer Popular Question Nice Question Famous Question Famous Question Caucus Great Answer Yearling Nice Question Popular Question Nice Answer Popular Question Populist Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 7810,279691,1100477,NULL,NULL,NULL,0,NULL,NULL 7811,4610181,1100477,NULL,NULL,NULL,0,NULL,NULL 7812,226979,653709,Supporter Informed,NULL,NULL,0,NULL,NULL 7813,1085447,1548636,NULL,NULL,NULL,0,NULL,NULL 7814,86101,718878,NULL,NULL,NULL,0,NULL,NULL 7815,909687,1329179,Custodian Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 7816,10255,1322334,NULL,NULL,NULL,0,NULL,NULL 7817,809845,230979,NULL,NULL,NULL,0,NULL,NULL 7818,72701,200750,NULL,NULL,NULL,0,NULL,NULL 7819,139592,857240,NULL,NULL,NULL,0,NULL,NULL 7820,674698,1066445,Popular Question Popular Question Nice Question Notable Question Popular Question Nice Question Nice Question Popular Question Famous Question Popular Question Popular Question Yearling Famous Question Notable Question Notable Question Famous Question Notable Question Caucus Good Question Nice Question Yearling Famous Question Caucus Notable Question Popular Question Civic Duty Popular Question Popular Question Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 7821,246725,596346,Nice Question,NULL,NULL,0,NULL,NULL 7822,49576,126606,Yearling Nice Answer Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 7823,232679,397291,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 7824,245783,145844,Guru git Custodian Yearling Nice Question Nice Question Yearling Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 7825,54918,152313,Custodian Custodian,NULL,NULL,0,NULL,NULL 7826,211539,878468,NULL,NULL,NULL,0,NULL,NULL 7827,233924,473135,Notable Question Supporter Notable Question Nice Question,NULL,NULL,0,NULL,NULL 7828,257620,1293344,NULL,NULL,NULL,0,NULL,NULL 7829,75679,615776,Yearling Great Answer Guru Yearling Nice Answer Enlightened Famous Question Announcer Nice Question Popular Question Popular Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 7830,201330,595268,NULL,NULL,NULL,0,NULL,NULL 7831,315968,1071036,NULL,NULL,NULL,0,NULL,NULL 7832,2345136,424180,Yearling Revival Yearling Necromancer Yearling Documentation User Necromancer Necromancer Necromancer Yearling,NULL,pThere is codetimezone code parameter to href http docs sqlalchemy org en latest core types html sqlalchemy types DateTime rel noreferrer codeDateTime code column time so there is no problem with storing timezone aware codedatetime code objects However found convenient to convert stored codedatetime code to UTC automatically with simple type decorator ppre codefrom sqlalchemy import typesfrom dateutil tz import tzutcfrom datetime import datetimeclass UTCDateTime types TypeDecorator impl types DateTime def process bind param self value engine if value is not None return value astimezone tzutc def process result value self value engine if value is not None return datetime value year value month value day value hour value minute value second value microsecond tzinfo tzutc code prepNote that is behaves nicely when you use naive codedatetime code by accident meaning it will raise ValueError Yes it possible to simplify it as you described Both expressions evaluate to the same value You can test it yourself by substituting value for any datetime object,0,NULL,NULL 7833,265676,694317,NULL,NULL,NULL,0,NULL,NULL 7834,817356,1309466,NULL,NULL,NULL,0,NULL,NULL 7835,380351,985193,NULL,NULL,NULL,0,NULL,NULL 7836,32116,1399295,NULL,NULL,NULL,0,NULL,NULL 7837,56029,1556708,Nice Answer Enlightened Caucus Guru Caucus,NULL,NULL,0,NULL,NULL 7838,1364262,1438221,Popular Question,NULL,NULL,0,NULL,NULL 7839,77734,969451,Revival Yearling Announcer Nice Question Yearling Custodian Popular Question Nice Answer Necromancer Notable Question Yearling Revival Revival Stellar Question Necromancer Nice Answer Great Question Nice Answer Necromancer Yearling Popular Question Necromancer Popular Question Popular Question,NULL,pOne reason for avoiding Template Haskell is that it as whole isn type safe at all thus going against much of the spirit of Haskell Here are some examples of this pulliYou have no control over what kind of Haskell AST piece of TH code will generate beyond where it will appear you can have value of type href http hackage haskell org packages archive template haskell latest doc html Language Haskell TH Syntax html Exp codeExp code but you don know if it is an expression that represents code Char code or code gt forall gt code or whatever TH would be more reliable if one could express that function may only generate expressions of certain type or only function declarations or only data constructor matching patterns etc liliYou can generate expressions that don compile You generated an expression that references free variable codefoo code that doesn exist Tough luck you ll only see that when actually using your code generator and only under the circumstances that trigger the generation of that particular code It is very difficult to unit test too li ulpTH is also outright dangerous pulliCode that runs at compile time can do arbitrary codeIO code including launching missiles or stealing your credit card You don want to have to look through every cabal package you ever download in search for TH exploits liliTH can access module private functions and definitions completely breaking encapsulation in some cases li ulpThen there are some problems that make TH functions less fun to use as library developer pulliTH code isn always composable Let say someone makes generator for lenses and more often than not that generator will be structured in such way that it can only be called directly by the end user and not by other TH code by for example taking list of type constructors to generate lenses for as the parameter It is tricky to generate that list in code while the user only has to write codegenerateLenses Foo Bar code liliDevelopers don even strongknow strong that TH code can be composed Did you know that you can write codeforM Foo Bar generateLens code codeQ code is just monad so you can use all of the usual functions on it Some people don know this and because of that they create multiple overloaded versions of essentially the same functions with the same functionality and these functions lead to certain bloat effect Also most people write their generators in the codeQ code monad even when they don have to which is like writing codebla IO Int bla return code you are giving function more environment than it needs and clients of the function are required to provide that environment as an effect of that li ulpFinally there are some things that make TH functions less fun to use as an end user pulliOpacity When TH function has type codeQ Dec code it can generate absolutely anything at the top level of module and you have absolutely no control over what will be generated liliMonolithism You can control how much TH function generates unless the developer allows it if you find function that generates database interface strongand strong JSON serialization interface you can say No only want the database interface thanks ll roll my own JSON interface liliRun time TH code takes relatively long time to run The code is interpreted anew every time file is compiled and often ton of packages are required by the running TH code that have to be loaded This slows down compile time considerably li ul If TH isn type safe why does the wiki tell it is type safe https wiki haskell org Template Haskell,0,NULL,NULL 7840,229257,833211,NULL,NULL,NULL,0,NULL,NULL 7841,571144,174674,Popular Question Popular Question Notable Question Yearling Notable Question Announcer Famous Question Yearling Notable Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 7842,474304,894738,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 7843,269330,62194,Notable Question Famous Question Yearling Famous Question Great Question Great Question Great Answer Famous Question Notable Question Notable Question Good Question Favorite Question Good Question Great Question Good Question Nice Question Yearling Famous Question Notable Question Nice Question Famous Question Notable Question Famous Question Notable Question Good Question Documentation User Nice Question Yearling Notable Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 7844,1516947,300187,Custodian Informed Custodian Citizen Patrol Yearling Custodian Nice Question Caucus Yearling Excavator Reviewer Yearling Revival Popular Question Tenacious Curious Civic Duty Custodian Organizer Custodian Enthusiast Proofreader Revival Unsung Hero Caucus Yearling r Custodian Custodian Notable Question Explainer Announcer Necromancer Self-Learner Necromancer Revival,NULL,NULL,0,NULL,NULL 7845,3142736,274074,NULL,NULL,NULL,0,NULL,NULL 7846,225963,274074,NULL,NULL,NULL,0,NULL,NULL 7847,341744,731243,Famous Question,NULL,NULL,0,NULL,NULL 7848,220320,274154,Popular Question Yearling Famous Question Yearling Nice Answer Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 7849,278686,1562633,Popular Question Notable Question Custodian Yearling Explainer Notable Question Nice Question Necromancer Popular Question Yearling Notable Question Necromancer Nice Answer Popular Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7850,641438,850224,Nice Question Notable Question Custodian Nice Question Yearling Taxonomist Popular Question Popular Question Famous Question Popular Question Populist Nice Answer Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Great Answer Popular Question Yearling Nice Question Good Answer Nice Question Famous Question,NULL,pI ve also had problem with the ArgumentError Cannot build association model name Are you trying to build polymorphic one to one association ppAnd found better solution for this kind of problem You can use native method Lets look to the nested attributes implementation inside Rails3 ppre codeelsif reject new record association name attributes method build association name if respond to method send method attributes except UNASSIGNABLE KEYS else raise ArgumentError Cannot build association association name Are you trying to build polymorphic one to one association endend code prepSo actually what do we need to do here Is just to create build association name inside our model ve did totally working example at the bottom ppre codeclass Job lt ActiveRecord Base CLIENT TYPES Contact attr accessible client type client attributes belongs to client polymorphic gt true accepts nested attributes for client protected def build client params assignment options raise Unknown client type client type unless CLIENT TYPES include client type self client client type constantize new params endend code pre Had to remove build client from protected because it did not see the method,0,NULL,NULL 7851,202965,823855,NULL,NULL,NULL,0,NULL,NULL 7852,1209830,857332,NULL,NULL,NULL,0,NULL,NULL 7853,106378,2313,Popular Question Popular Question Yearling Notable Question Nice Answer Custodian Popular Question Yearling Nice Question Popular Question Custodian Yearling Good Answer Nice Question,NULL,NULL,0,NULL,NULL 7854,549921,1179966,NULL,NULL,NULL,0,NULL,NULL 7855,170814,659325,Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7856,48489,760323,Notable Question Nice Answer Yearling Commentator,NULL,NULL,0,NULL,NULL 7857,89409,51209,Yearling Notable Question Favorite Question Notable Question Popular Question Nice Answer Notable Question Notable Question Popular Question Yearling Good Question Nice Answer Nice Question Popular Question Popular Question Yearling Popular Question Famous Question Revival Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7858,812940,439077,NULL,NULL,NULL,0,NULL,NULL 7859,283319,257568,Yearling Revival Revival Revival Revival Good Answer rust Necromancer Caucus Yearling Nice Answer Enlightened Necromancer Good Answer Revival Announcer Announcer Announcer Caucus Necromancer Announcer Announcer Nice Answer Announcer Yearling Nice Answer Nice Answer Enlightened Caucus Nice Answer Nice Answer Cleanup Nice Answer,NULL,pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul rdtsc has also some precedence https github com gz rust x86 blob 1e2efb6b7a0d76d9b672e09862515f5ac2541d9f src shared time rs L17 https github com ArtemGr gstuff rs blob eae4fbafff5c9e898ae762190c9a5f921a445505 gstuff rs L448 pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul thanks fixed https github com ArtemGr gstuff rs commit f5c395dbbfcc6e1a7fff521438b385751b900a2e pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul don see it in https doc rust lang org nightly std intrinsics index html or in the Rust tracker,1,NULL,How to download large file with hyper and resume on error rust hyper pI want to download large files 500mb with hyper and be able to resume if the download fails ppIs there any way with hyper to run some function for each chunk of data received The codesend code method returns codeResult lt Response gt code but can find any methods on href http hyper rs hyper hyper client response struct Response html rel nofollow noreferrer Response that return an iterator over chunks Ideally be able to do something like ppre codeclient get amp url to string send map mut res let mut chunk String new write this chunk to disk code prepIs this possible or will codemap code only be called once hyper has downloaded the entire file blockquote pIs there any way with hyper to run some function for each chunk of data received blockquotepHyper href https docs rs hyper 12 hyper client response struct Response html rel nofollow noreferrer codeResponse code implements href https doc rust lang org std io trait Read html rel nofollow noreferrer codeRead code It means that codeResponse code is stream and you can read arbitrary chunks of data from it as you would usually do with stream ppFor what it worth here piece of code use to download large files from ICECat using the codeRead code interface in order to display the download progress in the terminal ppThe variable coderesponse code here is an instance of Hyper codeResponse code ppre code let mut file try fs File create amp tmp path let mut deflate try GzDecoder new response let mut buf 128 1024 let mut written loop status line icecat fetch url written 1024 1024 MiB let len match deflate read amp mut buf Ok gt break EOF Ok len gt len Err ref err if err kind io ErrorKind Interrupted gt continue Err err gt return ERR Download failed url err try file write all amp buf len written len try fs rename tmp path target path status line clear code preblockquote pI want to download large files 500mb with hyper and be able to resume if the download fails blockquotepThis is usually implemented with the HTTP Range header cf href https tools ietf org html rfc7233 rel nofollow noreferrer RFC 7233 ppNot every server out there supports the Range header ve seen lot of servers with custom HTTP stack and without the proper Range support or with the Range header disabled for some reason So skipping the Hyper codeResponse code chunks might be necessary fallback ppBut if you want to speed things up and save traffic then the primary means of resuming stopped download should be by using the Range header phrpP With Hyper 12 the response body returned by the Hyper is href https docs rs futures 24 futures stream trait Stream html rel nofollow noreferrer codeStream code and to run some function for each chunk of data received we can use the codefor each code stream combinator ppre codeextern crate futures extern crate futures cpupool extern crate hyper 12extern crate hyper rustls use futures Future use futures cpupool CpuPool use hyper rt Stream use hyper Body Client Request use hyper rustls HttpsConnector use std thread use std time Duration fn main let url https steemitimages com DQmYWcEumaw1ajSge5PcGpgPpXydTkTcqe1daF4Ro3sRLDi IMG 20130103 103123 jpg In real life we want an asynchronous reactor such as the tokio core but for short example the CpuPool should do let pool CpuPool new let https HttpsConnector new let client Client builder executor pool clone build https unwrap is used because there are different ways and or libraries to handle the errors and you should pick one yourself Also to keep this example simple let req Request builder uri url body Body empty unwrap let fut client request req Rebinding shadowing the fut variable allows us in smart IDEs to more easily examine the gradual weaving of the types let fut fut then move res let res res unwrap println Status res status let body res into body for each returns Future that we must embed into our chain of futures in order to execute it body for each move chunk println Got chunk of bytes chunk len Ok Handle the errors we need error free futures for spawn let fut fut then move gt Result lt gt unwrap Ok Spawning the future onto runtime starts executing it in background If not spawned onto runtime the future will be executed in wait Note that we should keep the future around To save resources most implementations would cancel the dropped futures let fut pool spawn fut thread sleep Duration from secs or fut wait code pre 7860,198863,566268,NULL,NULL,NULL,0,NULL,NULL 7861,791846,756261,Yearling Popular Question Popular Question Nice Answer Enlightened Nice Answer Excavator Yearling Documentation User Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 7862,253754,1497749,Enthusiast,NULL,NULL,0,NULL,NULL 7863,196931,322727,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 7864,96328,973555,Notable Question Popular Question Yearling Revival Curious Revival Necromancer Popular Question,NULL,NULL,0,NULL,NULL 7865,247727,834603,NULL,NULL,NULL,0,NULL,NULL 7866,19570,1205205,Popular Question,NULL,NULL,0,NULL,NULL 7867,101720,440489,Custodian Student Necromancer,NULL,NULL,0,NULL,NULL 7868,353873,717336,Popular Question Caucus Custodian Yearling Popular Question Caucus Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 7869,328144,1041831,Scholar,NULL,NULL,0,NULL,NULL 7870,18031,651244,NULL,NULL,NULL,0,NULL,NULL 7871,208087,909906,NULL,NULL,NULL,0,NULL,NULL 7872,52088,1424877,Nice Question Necromancer Popular Question Enlightened Revival Yearling Popular Question Necromancer Revival Announcer Revival Revival Inquisitive Caucus Investor Popular Question Great Answer Notable Question Notable Question Nice Question Yearling Nice Question Good Answer Pundit Great Answer Announcer Necromancer Nice Question Popular Question Nice Question Revival Nice Question Revival Necromancer Announcer Popular Question Caucus Necromancer Notable Question Necromancer Announcer Necromancer Popular Question Yearling Popular Question Necromancer Nice Answer Announcer Necromancer Custodian Popular Question Necromancer Notable Question Popular Question Revival Self-Learner,NULL,NULL,1,Error SDL file not found with angled include in libsdl gfx 26 header files include path pMy program contains the line ppre code include lt SDL SDL gfxPrimitives gt code prepThis compiled fine with codelibsdl gfx2 25 code and code usr local include code However upon upgrading to codelibsdl gfx2 26 code see this error message from Clang ppre codeIn file included from sysconfig 271 usr local include SDL SDL gfxPrimitives 38 10 error SDL file not found with lt angled gt include use quotes instead include lt SDL gt error generated code prepI have verified that the immediate cause of the problem is that this line from codeSDL SDL gfxPrimitives code used to have code SDL code but in version 26 it was changed to code lt SDL gt code The file it is attempting to read is actually located at code usr local include SDL SDL code It should have been included using either its user space name code lt SDL SDL gt code or its relative path name code SDL code code lt SDL gt code is neither of these ppI have notified the libsdl gfx maintainer Andreas Schiffler via email and pointed to this SO question in my email ppGiven that do not want to make local modifications to the headers in code usr local include SDL code what the best way to work around this bug in the meantime,NULL 7873,154818,238292,Nice Answer Enlightened Notable Question Popular Question Custodian Yearling Nice Answer Enlightened Great Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 7874,1143401,238292,Nice Answer Enlightened Notable Question Popular Question Custodian Yearling Nice Answer Enlightened Great Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 7875,652016,1075406,NULL,NULL,NULL,0,NULL,NULL 7876,90141,1298998,Nice Answer Enlightened Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 7877,245118,46495,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7878,109008,46495,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7879,2734126,386063,NULL,NULL,NULL,0,NULL,NULL 7880,292892,658224,Popular Question,NULL,NULL,0,NULL,NULL 7881,312729,284623,NULL,NULL,NULL,0,NULL,NULL 7882,624895,211560,Popular Question Popular Question Notable Question Famous Question Popular Question Documentation User Nice Question Census Popular Question Notable Question Critic Popular Question Nice Question Excavator Popular Question Yearling,NULL,NULL,0,NULL,NULL 7883,736090,1122474,Teacher Editor Supporter Commentator Yearling Student Caucus Constituent Nice Answer Yearling Enlightened Critic Good Answer Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7884,30102,923698,NULL,NULL,NULL,0,NULL,NULL 7885,66704,1239042,NULL,NULL,NULL,0,NULL,NULL 7886,63834,388306,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 7887,881612,235668,Curious,NULL,NULL,0,NULL,NULL 7888,564160,906203,Notable Question Quorum Editor Teacher Informed Revival Necromancer Commentator,NULL,NULL,0,NULL,NULL 7889,991476,1420248,NULL,NULL,NULL,0,NULL,NULL 7890,266684,814861,Stellar Question Notable Question Announcer Announcer Yearling Good Question Notable Question Notable Question Famous Question Revival Custodian Custodian Announcer Notable Question Excavator Inquisitive Nice Question Yearling Caucus Popular Question Popular Question Informed Revival Nice Question objective-c Organizer Yearling Good Question,NULL,NULL,0,NULL,NULL 7891,399,65490,Yearling Great Answer Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 7892,49346,90801,clojurescript Altruist Pundit Good Answer Famous Question Good Answer Good Answer Yearling Good Answer Nice Answer Notable Question Synonymizer Favorite Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question Nice Answer Enlightened Popular Question Caucus Famous Question Good Answer Popular Question Favorite Question Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Popular Question Guru Nice Question Caucus Nice Answer Good Question Popular Question Nice Answer Enlightened Stellar Question Popular Question Nice Answer Famous Question Nice Answer Enlightened Nice Answer Good Answer Notable Question Census Nice Answer Enlightened Notable Question Caucus Nice Answer Enlightened Nice Answer Enlightened Constituent Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 7893,455977,505157,Necromancer Good Answer Critic Yearling Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7894,8714,551436,Reviewer Nice Answer Popular Question Necromancer Informed Nice Answer Notable Question Popular Question Custodian javascript Excavator Good Answer Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Census Caucus Constituent Famous Question Custodian Documentation User Custodian Proofreader Yearling Notable Question Census Electorate Caucus Popular Question,NULL,NULL,1,NULL,How do delete Git branch both locally and remotely git git branch git remote pI want to delete branch both locally and on my remote project fork on href http en wikipedia org wiki GitHub rel noreferrer GitHub ph3Failed Attempts to Delete Remote Branch h3pre code git branch remotes origin bugfixerror branch remotes origin bugfix not found git branch origin bugfixerror branch origin bugfix not found git branch rd origin bugfixDeleted remote branch origin bugfix was 2a14ef7 git pushEverything up to date git pullFrom github com gituser gitproject new branch bugfix gt origin bugfixAlready up to date code prepWhat do need to do differently to successfully delete thecoderemotes origin bugfix code branch both locally and on GitHub pI got sick of googling for this answer so took similar approachto href https stackoverflow com 15775364 551436 the answer that crizCraig posted earlier ppAdded the following to my Bash profile ppre codefunction gitdelete git push origin delete git branch code prepThen every time done with branch merged into codemaster code for example run the following in my terminal ppre codegitdelete my branch name code prep which then deletes codemy branch name code from codeorigin code as as well as locally 7895,2473148,1388621,NULL,NULL,NULL,0,NULL,NULL 7896,155720,638159,NULL,NULL,NULL,0,NULL,NULL 7897,37857,291223,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 7898,946940,957968,Teacher,NULL,NULL,0,NULL,NULL 7899,129693,534150,Necromancer Announcer Notable Question Popular Question Good Answer Notable Question Good Question Notable Question Guru Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 7900,528079,1192922,NULL,NULL,NULL,0,NULL,NULL 7901,8854959,713715,Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 7902,393996,1324153,NULL,NULL,NULL,0,NULL,NULL 7903,102363,1080136,NULL,NULL,NULL,0,NULL,NULL 7904,118535,1341209,NULL,NULL,NULL,0,NULL,NULL 7905,98780,18354,NULL,NULL,NULL,0,NULL,NULL 7906,1045072,1395638,NULL,NULL,NULL,0,NULL,NULL 7907,1195035,1015302,NULL,NULL,NULL,0,NULL,NULL 7908,2475625,1015302,NULL,NULL,NULL,0,NULL,NULL 7909,7870608,1391826,Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 7910,23635,348352,NULL,NULL,NULL,0,NULL,NULL 7911,59235,622496,Electorate Caucus Constituent Critic Caucus Constituent Vox Populi Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 7912,85148,1291034,NULL,NULL,NULL,0,NULL,NULL 7913,480507,694139,Nice Question Self-Learner Autobiographer Famous Question Yearling Popular Question Popular Question Good Question Yearling Notable Question Nice Answer Popular Question Nice Answer Enlightened Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 7914,281057,259240,Notable Question Yearling Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 7915,101256,1124929,Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 7916,10699,1018997,NULL,NULL,NULL,0,NULL,NULL 7917,506140,773229,Nice Question,NULL,NULL,0,NULL,NULL 7918,633620,1446440,NULL,NULL,NULL,0,NULL,NULL 7919,121015,1014374,NULL,NULL,NULL,0,NULL,NULL 7920,48058,875666,Editor,NULL,NULL,0,NULL,NULL 7921,915047,1394520,Famous Question Good Question,NULL,NULL,0,NULL,NULL 7922,1236349,899314,NULL,NULL,NULL,0,NULL,NULL 7923,77847,1384063,NULL,NULL,NULL,0,NULL,NULL 7924,296705,1281675,Editor Census,NULL,NULL,0,NULL,NULL 7925,1020638,525463,NULL,NULL,NULL,0,NULL,NULL 7926,311949,1242324,Yearling Popular Question Proofreader Yearling Custodian Cleanup Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 7927,155291,238310,Quorum Tenacious Yearling Student Popular Question Census,NULL,NULL,0,NULL,NULL 7928,440729,480122,NULL,NULL,NULL,0,NULL,NULL 7929,19544,480014,Popular Question,NULL,NULL,0,NULL,NULL 7930,313300,1201003,Student,NULL,NULL,0,NULL,NULL 7931,472368,835935,Yearling Caucus Constituent Good Answer Caucus,NULL,NULL,0,NULL,NULL 7932,118550,1540215,Popular Question Popular Question Popular Question Peer Pressure Yearling Popular Question Caucus Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7933,1175211,743268,Caucus Popular Question Curious Tumbleweed Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 7934,226814,743268,Caucus Popular Question Curious Tumbleweed Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 7935,1428283,743268,Caucus Popular Question Curious Tumbleweed Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 7936,625215,13937,Yearling Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 7937,1609992,677176,Curious Popular Question Popular Question Popular Question Informed Self-Learner Notable Question Yearling,NULL,NULL,0,NULL,NULL 7938,305585,563785,Yearling Necromancer Caucus Constituent Fanatic Caucus Nice Answer Yearling Census Caucus Constituent,NULL,NULL,0,NULL,NULL 7939,399979,477534,NULL,NULL,NULL,0,NULL,NULL 7940,470214,268780,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 7941,17339,472545,NULL,NULL,NULL,0,NULL,NULL 7942,151208,1032105,NULL,NULL,NULL,0,NULL,NULL 7943,13960,827559,Good Question Notable Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 7944,795211,1345064,NULL,NULL,NULL,0,NULL,NULL 7945,1507329,546913,NULL,NULL,NULL,0,NULL,NULL 7946,8335,201852,Notable Question Good Answer,NULL,NULL,0,NULL,NULL 7947,449883,1151460,NULL,NULL,NULL,0,NULL,NULL 7948,267720,515423,Necromancer Yearling Nice Answer Announcer Nice Answer Yearling Student Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 7949,212415,4186,Nice Question Popular Question Yearling Guru Revival Nice Answer Popular Question Good Answer Yearling Popular Question Good Question Great Answer Nice Answer Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 7950,184707,131148,Yearling Critic,NULL,NULL,0,NULL,NULL 7951,290597,772450,Yearling Yearling Custodian Custodian Yearling Great Answer,NULL,NULL,0,NULL,NULL 7952,61222,547972,NULL,NULL,NULL,0,NULL,NULL 7953,31973,950083,Supporter,NULL,NULL,0,NULL,NULL 7954,70102,884711,NULL,NULL,NULL,0,NULL,NULL 7955,1139871,834885,NULL,NULL,NULL,0,NULL,NULL 7956,255846,188280,Famous Question,NULL,NULL,0,NULL,NULL 7957,1570181,1266255,Student,NULL,NULL,0,NULL,NULL 7958,495143,945122,NULL,NULL,NULL,0,NULL,NULL 7959,233468,759812,Necromancer Nice Question Popular Question Caucus Yearling Curious Caucus,NULL,NULL,0,NULL,NULL 7960,274931,970038,NULL,NULL,NULL,0,NULL,NULL 7961,1660355,1266513,Commentator Editor Necromancer Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7962,56357,1476846,NULL,NULL,NULL,0,NULL,NULL 7963,483360,1106338,Scholar Student Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 7964,361081,118810,Famous Question Notable Question Necromancer Nice Answer Popular Question Nice Question Announcer Yearling Nice Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Announcer Notable Question Popular Question Notable Question Popular Question Yearling Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 7965,365859,147564,Popular Question Nice Answer Popular Question Announcer Popular Question Yearling Famous Question Good Question Notable Question Caucus Popular Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 7966,9225384,941531,Popular Question Yearling Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 7967,220333,1192168,Commentator Promoter Student Benefactor,NULL,NULL,0,NULL,NULL 7968,389736,656287,NULL,NULL,NULL,0,NULL,NULL 7969,219583,1555120,NULL,NULL,NULL,0,NULL,NULL 7970,2869270,820262,Notable Question Notable Question Famous Question Caucus Documentation User Civic Duty Popular Question Announcer Informed Caucus Constituent Yearling Autobiographer,NULL,NULL,0,NULL,NULL 7971,131949,820262,Notable Question Notable Question Famous Question Caucus Documentation User Civic Duty Popular Question Announcer Informed Caucus Constituent Yearling Autobiographer,NULL,NULL,0,NULL,NULL 7972,253124,1198446,Famous Question,NULL,NULL,0,NULL,NULL 7973,163432,863115,Custodian Necromancer Nice Answer Yearling Nice Answer Enlightened Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 7974,115617,655738,Yearling,NULL,NULL,0,NULL,NULL 7975,118856,872168,Citizen Patrol Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 7976,103402,794988,Popular Question Nice Answer Enlightened Yearling Enthusiast Necromancer Yearling Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 7977,124956,951587,NULL,NULL,NULL,0,NULL,NULL 7978,132079,427606,Nice Answer Enlightened ruby-on-rails Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 7979,8512,456640,NULL,NULL,NULL,0,NULL,NULL 7980,680228,803287,Necromancer Favorite Question Yearling Famous Question Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 7981,47890,114251,Good Answer Nice Answer Guru Enlightened Good Answer Good Answer Popular Question Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Famous Question object Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Nice Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Answer Good Answer Nice Answer Nice Answer Famous Question Nice Answer Enlightened Good Answer Nice Answer Guru Guru Nice Answer Enlightened Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Nice Answer Enlightened Guru Nice Answer twitter-bootstrap-3 Famous Question Nice Answer Enlightened Guru Great Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Favorite Question Nice Answer Guru Good Answer Nice Answer Enlightened if-statement Good Answer Nice Answer Enlightened Good Answer Good Answer hide Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Constituent Nice Answer Enlightened Good Answer Nice Answer jquery-plugins Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Nice Question Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer autocomplete Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened select Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened dom Nice Answer Enlightened Guru datepicker Nice Answer Nice Answer jquery-validate Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened checkbox Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened spring Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Caucus Nice Question Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Enlightened Constituent Nice Answer Enlightened Enlightened Great Answer Guru Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Necromancer Good Answer Famous Question Good Answer Nice Answer Nice Answer Enlightened Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Famous Question Nice Answer Enlightened Nice Answer Good Question Great Answer string Great Answer Census Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Caucus Nice Answer Enlightened Constituent Good Answer html-table Good Question Good Answer Good Question Good Question Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Famous Question Notable Question Yearling Good Answer Guru Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 7982,157636,482926,Necromancer Yearling Caucus Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 7983,1516004,1018818,Caucus Notable Question Notable Question Yearling Nice Question Critic Nice Question,NULL,NULL,0,NULL,NULL 7984,64844,278223,Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 7985,7592,145495,NULL,NULL,NULL,0,NULL,NULL 7986,685031,821046,Critic Caucus Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 7987,209225,882851,NULL,NULL,NULL,0,NULL,NULL 7988,254006,990837,NULL,NULL,NULL,0,NULL,NULL 7989,125117,713911,Popular Question,NULL,NULL,0,NULL,NULL 7990,898674,1292591,NULL,NULL,NULL,0,NULL,NULL 7991,30451,243456,Yearling Nice Question Famous Question Notable Question Yearling Good Question Popular Question Notable Question Popular Question Famous Question Yearling Great Question Famous Question Good Question Favorite Question,NULL,NULL,0,NULL,NULL 7992,603502,635171,Yearling Guru Famous Question Nice Question Good Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Nice Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 7993,20841,940169,NULL,NULL,NULL,0,NULL,NULL 7994,193,491586,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 7995,1192081,303347,Favorite Question Popular Question Popular Question Yearling Popular Question Necromancer Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Favorite Question Nice Answer Nice Question Popular Question Great Question Popular Question Notable Question Nice Answer Notable Question Notable Question Yearling Revival Popular Question Nice Answer Great Question Necromancer Nice Question Notable Question Popular Question Notable Question Notable Question Great Question Necromancer Yearling Notable Question Necromancer Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Taxonomist Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 7996,333457,585670,Yearling,NULL,NULL,0,NULL,NULL 7997,13201,585670,Yearling,NULL,NULL,0,NULL,NULL 7998,1833752,1059071,Popular Question,NULL,NULL,0,NULL,NULL 7999,240206,1059071,Popular Question,NULL,NULL,0,NULL,NULL 8000,284862,310402,Popular Question Informed Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 8001,306362,363441,Good Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8002,285076,406578,Popular Question,NULL,NULL,0,NULL,NULL 8003,156102,377392,Notable Question Yearling Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8004,1014967,581308,NULL,NULL,NULL,0,NULL,NULL 8005,1722362,457224,Nice Answer Necromancer Nice Answer Good Question Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 8006,36301,457224,Nice Answer Necromancer Nice Answer Good Question Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 8007,1577261,457224,Nice Answer Necromancer Nice Answer Good Question Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 8008,4662272,185434,NULL,NULL,NULL,0,NULL,NULL 8009,173072,622875,Popular Question Yearling Popular Question Popular Question Famous Question Good Question Notable Question Nice Answer Popular Question Notable Question Popular Question Notable Question Notable Question Favorite Question Nice Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Good Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8010,1211182,315399,Tumbleweed Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8011,675082,216352,Popular Question Yearling,NULL,NULL,0,NULL,NULL 8012,2652021,615154,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8013,223029,615154,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8014,135012,507139,NULL,NULL,NULL,0,NULL,NULL 8015,126119,6109,Necromancer Yearling Yearling Necromancer Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 8016,601828,214197,Yearling Famous Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 8017,161409,297435,Yearling Cleanup Notable Question Popular Question Good Answer Nice Answer Yearling Notable Question Nice Answer Enlightened Nice Answer Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8018,127957,1125076,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8019,529606,39785,Notable Question Tumbleweed Necromancer Proofreader Yearling Census Popular Question Notable Question Custodian Pundit Necromancer Nice Answer Yearling Census Nice Answer Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8020,473367,544252,Notable Question,NULL,NULL,0,NULL,NULL 8021,103977,186723,NULL,NULL,NULL,0,NULL,NULL 8022,6044,1355238,NULL,NULL,NULL,0,NULL,NULL 8023,705941,1488002,NULL,NULL,NULL,0,NULL,NULL 8024,328378,1266525,NULL,NULL,NULL,0,NULL,NULL 8025,406417,87129,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8026,1312518,1220901,Necromancer,NULL,NULL,0,NULL,NULL 8027,80179,312332,Citizen Patrol,NULL,NULL,0,NULL,NULL 8028,101840,597731,NULL,NULL,NULL,0,NULL,NULL 8029,1292335,629779,NULL,NULL,NULL,0,NULL,NULL 8030,887522,793725,Student Notable Question,NULL,NULL,0,NULL,NULL 8031,185952,350193,Yearling Famous Question Notable Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 8032,3377383,350193,Yearling Famous Question Notable Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 8033,278243,804836,NULL,NULL,NULL,0,NULL,NULL 8034,615017,1276754,NULL,NULL,NULL,0,NULL,NULL 8035,453521,620921,NULL,NULL,NULL,0,NULL,NULL 8036,476338,1126058,NULL,NULL,NULL,0,NULL,NULL 8037,239185,963673,NULL,NULL,NULL,0,NULL,NULL 8038,10347,299604,Teacher Custodian Editor Scholar,NULL,NULL,0,NULL,NULL 8039,356968,1296125,Yearling Nice Answer Census Custodian Caucus,NULL,NULL,0,NULL,NULL 8040,1511897,1192056,NULL,NULL,NULL,0,NULL,NULL 8041,116134,1200896,NULL,NULL,NULL,0,NULL,NULL 8042,103300,977355,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 8043,125549,597990,NULL,NULL,NULL,0,NULL,NULL 8044,1394083,597990,NULL,NULL,NULL,0,NULL,NULL 8045,113227,344643,Nice Answer Notable Question Famous Question Yearling Notable Question Nice Answer Guru Popular Question Popular Question Yearling Census Yearling Nice Answer Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 8046,42647,560039,Yearling Guru Nice Answer Enlightened Good Answer Yearling Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 8047,217186,20459,Good Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 8048,77575,310162,Necromancer Nice Question Yearling Self-Learner Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 8049,445047,984687,NULL,NULL,NULL,0,NULL,NULL 8050,97209,1115957,Famous Question Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 8051,60337,434728,NULL,NULL,NULL,0,NULL,NULL 8052,33190,764788,Custodian Student Yearling Necromancer Nice Answer Yearling Caucus Constituent Documentation User Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 8053,253026,1532801,NULL,NULL,NULL,0,NULL,NULL 8054,455409,233745,Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 8055,1309211,681102,Revival Yearling Good Answer Good Answer javascript Good Answer Good Answer Necromancer Census Nice Answer Enlightened Yearling Caucus Notable Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8056,5093158,956815,Teacher,NULL,NULL,0,NULL,NULL 8057,222279,558271,Yearling Favorite Question Popular Question Great Question Yearling Curious,NULL,NULL,0,NULL,NULL 8058,450682,736484,NULL,NULL,NULL,0,NULL,NULL 8059,115280,1141828,NULL,NULL,NULL,0,NULL,NULL 8060,560631,757326,NULL,NULL,NULL,0,NULL,NULL 8061,914893,1509668,NULL,NULL,NULL,0,NULL,NULL 8062,2605283,120982,Teacher,NULL,NULL,0,NULL,NULL 8063,5144,138881,Caucus,NULL,NULL,0,NULL,NULL 8064,1423514,1323489,NULL,NULL,NULL,0,NULL,NULL 8065,238614,631978,Yearling Notable Question,NULL,NULL,0,NULL,NULL 8066,351984,1459275,Critic Nice Answer Enlightened Revival Famous Question Yearling Nice Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 8067,65434,7483,Good Answer Famous Question Yearling Famous Question Curious Yearling,NULL,NULL,0,NULL,NULL 8068,555012,1462131,NULL,NULL,NULL,0,NULL,NULL 8069,241733,333283,Good Question Nice Answer Popular Question Nice Question Announcer Revival Notable Question Yearling Notable Question Popular Question Announcer Notable Question Famous Question Popular Question Notable Question Caucus Nice Question Great Answer Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Notable Question Announcer Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,pYou can href http jsfiddle net sdDVf http jsfiddle net sdDVf phrpre code textarea keydown function if keyCode tab was pressed get caret position selection var start this selectionStart var end this selectionEnd var this this var value this val set textarea value to text before caret tab text after caret this val value substring start value substring end put caret at right position again add one for the tab this selectionStart this selectionEnd start prevent the focus lose preventDefault code pre Not sure how why this was missed on the last substring call start should be given as the first argument value substring start end Otherwise tabbing when selecting text erases the text,0,NULL,NULL 8070,111197,43355,Nice Question Notable Question Nice Question Famous Question Famous Question Popular Question Yearling Popular Question Good Question Custodian Yearling Nice Question Notable Question Notable Question Great Answer,NULL,NULL,0,NULL,NULL 8071,276460,192958,Nice Question Nice Question Famous Question Famous Question Civic Duty Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 8072,82587,453614,Excavator Yearling Custodian Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 8073,830361,680706,NULL,NULL,NULL,0,NULL,NULL 8074,1201365,1551670,Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 8075,11713,341446,Nice Answer Custodian Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 8076,201497,458955,Good Question Nice Question Custodian Yearling Notable Question Caucus Famous Question Famous Question Famous Question Yearling Famous Question Popular Question Nice Question Popular Question Notable Question Famous Question Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 8077,72913,598029,Nice Answer Yearling Documentation User,NULL,NULL,0,NULL,NULL 8078,2129327,975586,Supporter Teacher,NULL,NULL,0,NULL,NULL 8079,6003,136333,Tumbleweed Yearling Announcer Student Yearling Announcer Announcer Necromancer Custodian Announcer Organizer Yearling Announcer Custodian,NULL,pA couple of things polliI wouldn use codetravis retry code here since codecurl code has the href https curl haxx se docs manpage html retry rel nofollow noreferrer code retry code flag that works better lilimacOS uses BSD codetar code not GNU codetar code You can either olliFind common flag that works on both liliInstall href https formulae brew sh formula gnu tar rel nofollow noreferrer codegnu tar code and use that instead This formula requires more than just codebrew install gnu tar code if you want to execute it as codetar code so be sure to set it up correctly li ol li ol This is what see when run brew install gnu tar https gist github com BanzaiMan e627ec19b86dc01eefa85eb787685755 pA couple of things polliI wouldn use codetravis retry code here since codecurl code has the href https curl haxx se docs manpage html retry rel nofollow noreferrer code retry code flag that works better lilimacOS uses BSD codetar code not GNU codetar code You can either olliFind common flag that works on both liliInstall href https formulae brew sh formula gnu tar rel nofollow noreferrer codegnu tar code and use that instead This formula requires more than just codebrew install gnu tar code if you want to execute it as codetar code so be sure to set it up correctly li ol li ol You are downloading https www stackage org stack linux x86 64 which sounds like Linux executable would be pretty surprised if the Mac could execute it pA couple of things polliI wouldn use codetravis retry code here since codecurl code has the href https curl haxx se docs manpage html retry rel nofollow noreferrer code retry code flag that works better lilimacOS uses BSD codetar code not GNU codetar code You can either olliFind common flag that works on both liliInstall href https formulae brew sh formula gnu tar rel nofollow noreferrer codegnu tar code and use that instead This formula requires more than just codebrew install gnu tar code if you want to execute it as codetar code so be sure to set it up correctly li ol li ol As for travis retry You notice that on https travis ci org orome crypto enigma hs jobs 441071972 L93 the command that actually failed was tar and because of it curl failed due to the broken pipe You now have misleading message on https travis ci org orome crypto enigma hs jobs 441071972 L102 Not sure if the retries are actually running the piped command curl tar either since there no error message on tar pA couple of things polliI wouldn use codetravis retry code here since codecurl code has the href https curl haxx se docs manpage html retry rel nofollow noreferrer code retry code flag that works better lilimacOS uses BSD codetar code not GNU codetar code You can either olliFind common flag that works on both liliInstall href https formulae brew sh formula gnu tar rel nofollow noreferrer codegnu tar code and use that instead This formula requires more than just codebrew install gnu tar code if you want to execute it as codetar code so be sure to set it up correctly li ol li ol explained why travis retry is not the best thing to do here in the previous comment My gnu tar comment was based on your previous incomplete implementation where you assumed that the file you are downloading would work on the Mac If whatever the solution you found instead of mine does the trick happy for you,1,NULL,How do configure my travis yaml jobs include and before install to install stack for macOS macos travis ci haskell stack pThough ve implemented the steps href https docs haskellstack org en stable travis ci highlight travis installing stack rel nofollow noreferrer described in the instructions ppre codebefore install Download and unpack the stack executable mkdir local bin export PATH HOME local bin PATH travis retry curl https get haskellstack org stable linux x86 64 tar gz tar xz wildcards strip components local bin stack code prepin href https github com orome crypto enigma hs blob 21bbb39860fb1a66d7c340331724ee0abf1c5481 travis yml rel nofollow noreferrer my codetravis yaml code these href https travis ci org orome crypto enigma hs jobs 441071972 rel nofollow noreferrer fail when attempt to build on macOS using ppre codejobs include name LTS Haskell for macOS os osx osx image xcode10 env code prepwith ppre codetar Option wildcards is not supportedUsage List tar tf lt archive filename gt Extract tar xf lt archive filename gt Create tar cf lt archive filename gt filenames Help tar helpcurl 23 Failed writing body 597 The command curl https www stackage org stack linux x86 64 failed Retrying of curl 23 Failed writing body 597 The command curl https www stackage org stack linux x86 64 failed Retrying of curl 23 Failed writing body 597 The command curl https www stackage org stack linux x86 64 failed times code prepHow do modify my codetravis yaml code codejobs include code and codebefore install code to install stack for macOS pA couple of things polliI wouldn use codetravis retry code here since codecurl code has the href https curl haxx se docs manpage html retry rel nofollow noreferrer code retry code flag that works better lilimacOS uses BSD codetar code not GNU codetar code You can either olliFind common flag that works on both liliInstall href https formulae brew sh formula gnu tar rel nofollow noreferrer codegnu tar code and use that instead This formula requires more than just codebrew install gnu tar code if you want to execute it as codetar code so be sure to set it up correctly li ol li ol 8080,630377,356328,Famous Question,NULL,NULL,0,NULL,NULL 8081,2314320,496574,NULL,NULL,NULL,0,NULL,NULL 8082,28933,813193,Necromancer Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 8083,170899,272722,NULL,NULL,NULL,0,NULL,NULL 8084,52569,425371,NULL,NULL,NULL,0,NULL,NULL 8085,498711,981031,Critic Commentator Scholar,NULL,NULL,0,NULL,NULL 8086,201238,641008,Editor Supporter,NULL,NULL,0,NULL,NULL 8087,12645,61818,Yearling Nice Answer Enlightened Custodian Notable Question Revival Great Answer Yearling Necromancer Notable Question Good Answer Documentation User Nice Question Yearling Benefactor,NULL,NULL,0,NULL,NULL 8088,3162422,890629,NULL,NULL,NULL,0,NULL,NULL 8089,910262,1092734,NULL,NULL,NULL,0,NULL,NULL 8090,217121,77040,Yearling Tumbleweed Yearling Notable Question Good Answer Popular Question Curious Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 8091,2444,1058266,NULL,NULL,NULL,0,NULL,NULL 8092,68965,16628,Nice Question Popular Question Good Question Famous Question Notable Question Notable Question Yearling Taxonomist Notable Question Famous Question Notable Question Notable Question Popular Question Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 8093,241481,1435972,NULL,NULL,NULL,0,NULL,NULL 8094,6545202,638714,NULL,NULL,NULL,0,NULL,NULL 8095,1236596,638714,NULL,NULL,NULL,0,NULL,NULL 8096,516114,967355,Yearling Stellar Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 8097,152103,1539071,Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 8098,222058,12767,Yearling Good Question Yearling Yearling Yearling Great Question Famous Question,NULL,NULL,0,NULL,NULL 8099,1693163,142337,Yearling Editor Scholar Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 8100,1204174,173073,Yearling Caucus Notable Question Necromancer Announcer Yearling Necromancer Necromancer Informed Promoter Announcer,NULL,NULL,0,NULL,NULL 8101,52292,11895,Popular Question Nice Question Autobiographer Popular Question Revival Notable Question Nice Answer Enlightened Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 8102,2624340,506611,NULL,NULL,NULL,0,NULL,NULL 8103,581189,39677,Popular Question Famous Question Notable Question Popular Question Good Question Popular Question Famous Question Popular Question Great Question Nice Question Popular Question Famous Question Good Question Nice Question Popular Question Notable Question Popular Question Famous Question Good Question Great Question Notable Question Great Question Nice Question Notable Question Nice Question Popular Question Famous Question Popular Question Favorite Question Popular Question Good Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Good Question Popular Question Favorite Question Nice Question Popular Question Famous Question Great Question Famous Question Famous Question Popular Question Notable Question Nice Question Nice Question Famous Question Notable Question Notable Question Famous Question Famous Question Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Good Question Notable Question Popular Question Notable Question Notable Question Good Question Nice Question Notable Question Popular Question Favorite Question Good Question Good Question Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Famous Question Popular Question Nice Question Good Question Good Question Great Question Popular Question Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Great Question Famous Question Notable Question Favorite Question Famous Question Nice Question Notable Question Good Question Notable Question Notable Question Famous Question Popular Question Notable Question Great Question Notable Question Nice Question Great Question Popular Question Popular Question Popular Question Nice Question Good Question Famous Question Good Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Favorite Question Popular Question Popular Question Famous Question Popular Question Great Question Famous Question Notable Question Famous Question Favorite Question Nice Question Notable Question Notable Question Good Question Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Famous Question Famous Question Notable Question Nice Question Popular Question Popular Question Notable Question Favorite Question Popular Question Nice Question Notable Question Nice Question Popular Question Notable Question Nice Question Nice Question Famous Question Nice Question Great Question Famous Question Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Nice Question Notable Question Notable Question Famous Question Good Question Favorite Question Notable Question Famous Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Stellar Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Nice Question Famous Question Favorite Question Nice Question Good Question Great Question Nice Question Popular Question Notable Question Notable Question Famous Question Notable Question Good Question Famous Question Popular Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Nice Question Famous Question Stellar Question Notable Question Good Question Popular Question Good Question Notable Question Good Question Nice Question Popular Question Famous Question Stellar Question Good Question Good Question Popular Question Famous Question Nice Question Popular Question Famous Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Notable Question Favorite Question Socratic Good Question Popular Question Nice Question Famous Question Famous Question Popular Question Good Question Famous Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Notable Question Popular Question Good Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Nice Question Good Question Notable Question Popular Question Great Question Popular Question Great Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Great Question Famous Question Nice Question Notable Question Popular Question Stellar Question Good Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Favorite Question Popular Question Famous Question Notable Question Famous Question Notable Question Nice Question Famous Question Famous Question Popular Question Notable Question Stellar Question Great Question Popular Question Nice Question Famous Question Famous Question Notable Question Notable Question Popular Question Good Question Good Question Famous Question Notable Question Stellar Question Popular Question Nice Question Good Question Notable Question Great Question Popular Question Notable Question Notable Question Nice Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Nice Question Favorite Question Favorite Question Popular Question Great Question Famous Question Yearling Popular Question Good Question Popular Question Favorite Question Famous Question Popular Question Notable Question Good Question Popular Question Notable Question Notable Question Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 8104,2745824,498312,NULL,NULL,NULL,0,NULL,NULL 8105,190131,1151108,Teacher,NULL,NULL,0,NULL,NULL 8106,1901818,805027,Notable Question,NULL,NULL,0,NULL,NULL 8107,179534,1117021,NULL,NULL,NULL,0,NULL,NULL 8108,8036,132978,Notable Question Good Question Popular Question Popular Question Nice Question Yearling Good Question Popular Question Nice Answer Famous Question Good Question Popular Question Good Question Famous Question Yearling Popular Question Great Question Good Answer Civic Duty Famous Question Revival Popular Question Yearling Revival Favorite Question Necromancer,NULL,NULL,0,NULL,NULL 8109,361488,345941,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 8110,995081,47462,Critic Supporter Informed,NULL,NULL,0,NULL,NULL 8111,428336,207776,Famous Question Great Question Promoter Popular Question Popular Question Yearling Tumbleweed Yearling Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 8112,30798,1067799,Yearling Yearling,NULL,NULL,0,NULL,NULL 8113,161520,313189,NULL,NULL,NULL,0,NULL,NULL 8114,47427,207564,NULL,NULL,NULL,0,NULL,NULL 8115,183406,588264,Notable Question Good Answer Nice Answer Good Answer Nice Question Yearling Popular Question Popular Question Good Answer Popular Question Nice Question Yearling Popular Question Notable Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 8116,81062,436439,NULL,NULL,NULL,0,NULL,NULL 8117,1205706,273039,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 8118,257512,322049,Supporter Notable Question Commentator Caucus Critic Teacher Informed Tumbleweed,NULL,NULL,0,NULL,NULL 8119,345169,974768,NULL,NULL,NULL,0,NULL,NULL 8120,25325,1525091,Guru Yearling Caucus Custodian Nice Answer Enlightened Yearling Caucus Constituent Custodian Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8121,135025,1189657,NULL,NULL,NULL,0,NULL,NULL 8122,16221,478679,NULL,NULL,NULL,0,NULL,NULL 8123,67586,93405,NULL,NULL,NULL,0,NULL,NULL 8124,1200075,410734,Necromancer Nice Answer Enlightened Critic,NULL,NULL,0,NULL,NULL 8125,155802,552164,Supporter Popular Question,NULL,NULL,0,NULL,NULL 8126,1430415,776089,NULL,NULL,NULL,0,NULL,NULL 8127,178082,829903,Good Answer Yearling Nice Answer Enlightened Populist Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 8128,120114,16023,Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 8129,252858,204380,Popular Question,NULL,NULL,0,NULL,NULL 8130,2095976,1442528,NULL,NULL,NULL,0,NULL,NULL 8131,27020,640584,Popular Question Popular Question Good Answer Popular Question Revival Necromancer Nice Question Notable Question Famous Question Popular Question Yearling Nice Answer Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Revival Notable Question Popular Question Popular Question Good Answer Notable Question Notable Question Popular Question Popular Question Famous Question Nice Answer Popular Question Famous Question Nice Question Popular Question Yearling Popular Question Great Answer Popular Question Notable Question Guru Notable Question Necromancer Good Question Famous Question Notable Question Nice Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Good Answer Great Question Notable Question Favorite Question Nice Question Notable Question Nice Answer Revival Notable Question Yearling Nice Answer Nice Question Great Question Popular Question Popular Question Good Question Notable Question Popular Question Nice Answer Notable Question Favorite Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 8132,307299,1387837,Editor,NULL,NULL,0,NULL,NULL 8133,6492199,282345,Yearling Good Answer Caucus Constituent Nice Answer Tumbleweed Yearling Caucus Notable Question Famous Question Yearling Popular Question Famous Question,NULL,pThis is synthesis of some of the other answers that have been provided The Java system properties provide enough information to come up with the path to the java command and the classpath in what think is platform independent way ppre codepublic final class JavaProcess private JavaProcess public static int exec Class klass throws IOException InterruptedException String javaHome System getProperty java home String javaBin javaHome File separator bin File separator java String classpath System getProperty java class path String className klass getName ProcessBuilder builder new ProcessBuilder javaBin cp classpath className Process process builder inheritIO start process waitFor return process exitValue code prepYou would run this method like so ppre codeint status JavaProcess exec MyClass class code prepI thought it made sense to pass in the actual class rather than the String representation of the name since the class has to be in the classpath anyways for this to work Thanks Separating out cp from the actual classpath helped When making them together as single String it errors out Unrecognized option cp blah pNot strange at all people do this all the time Make sure the collection name is correct case matters and that the ObjectId is exact ppDocumentation is href http www mongodb org display DOCS Object IDs here ppre code gt db test insert gt db test find no criteria id ObjectId 4ecc05e55dd98a436ddcc47c gt db test find id ObjectId 4ecc05e55dd98a436ddcc47c explicit id ObjectId 4ecc05e55dd98a436ddcc47c gt db test find ObjectId 4ecc05e55dd98a436ddcc47c shortcut id ObjectId 4ecc05e55dd98a436ddcc47c code pre was missing the quotes around the actual id value,0,NULL,NULL 8134,28960,215565,NULL,NULL,NULL,0,NULL,NULL 8135,163676,1275121,NULL,NULL,NULL,0,NULL,NULL 8136,890229,1037952,NULL,NULL,NULL,0,NULL,NULL 8137,506487,1277069,Popular Question,NULL,NULL,0,NULL,NULL 8138,210479,120915,Necromancer Informed Yearling Great Answer Nice Answer Scholar Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 8139,921487,1421643,Student,NULL,NULL,0,NULL,NULL 8140,13848,158101,Notable Question Notable Question Critic,NULL,NULL,0,NULL,NULL 8141,172514,1230533,NULL,NULL,NULL,0,NULL,NULL 8142,209938,646426,Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 8143,169893,216553,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8144,158026,1484180,NULL,NULL,NULL,0,NULL,NULL 8145,1194451,616087,NULL,NULL,NULL,0,NULL,NULL 8146,84234,912796,Popular Question Yearling Curious Necromancer,NULL,NULL,0,NULL,NULL 8147,23198,243803,Teacher Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8148,9944,188145,Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Great Answer Documentation User Yearling Good Answer ruby Yearling,NULL,NULL,0,NULL,NULL 8149,87836,444865,Notable Question,NULL,NULL,0,NULL,NULL 8150,5236,1218522,Student,NULL,NULL,0,NULL,NULL 8151,50574,1141759,Autobiographer,NULL,NULL,0,NULL,NULL 8152,146570,106746,NULL,NULL,NULL,0,NULL,NULL 8153,184754,486496,Popular Question Good Question Famous Question Yearling Popular Question Popular Question Caucus Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 8154,210240,278077,NULL,NULL,NULL,0,NULL,NULL 8155,366546,709484,NULL,NULL,NULL,0,NULL,NULL 8156,238752,440334,NULL,NULL,NULL,0,NULL,NULL 8157,53805,84181,Yearling Nice Answer Enthusiast Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8158,240166,1253333,Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8159,210203,1164146,Popular Question Necromancer Good Answer Popular Question Famous Question Notable Question Yearling Necromancer Nice Answer Notable Question Nice Answer Yearling Nice Answer Necromancer Famous Question Custodian Yearling Popular Question Nice Answer Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 8160,1947174,1164146,Popular Question Necromancer Good Answer Popular Question Famous Question Notable Question Yearling Necromancer Nice Answer Notable Question Nice Answer Yearling Nice Answer Necromancer Famous Question Custodian Yearling Popular Question Nice Answer Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 8161,9101224,1164146,Popular Question Necromancer Good Answer Popular Question Famous Question Notable Question Yearling Necromancer Nice Answer Notable Question Nice Answer Yearling Nice Answer Necromancer Famous Question Custodian Yearling Popular Question Nice Answer Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 8162,1109961,311562,Nice Answer Enlightened Popular Question Necromancer Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 8163,919725,1504653,Scholar,NULL,NULL,0,NULL,NULL 8164,2737415,293628,NULL,NULL,NULL,0,NULL,NULL 8165,915176,308468,NULL,NULL,NULL,0,NULL,NULL 8166,56446,245428,Yearling Good Answer Proofreader Nice Answer Famous Question Good Answer Yearling Nice Answer Guru Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 8167,92114,1222345,Student Scholar Editor Supporter Teacher Revival,NULL,NULL,0,NULL,NULL 8168,6673162,1222345,Student Scholar Editor Supporter Teacher Revival,NULL,NULL,0,NULL,NULL 8169,110567,450600,Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Revival Notable Question Popular Question Inquisitive Notable Question Notable Question Necromancer Notable Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Nice Answer Popular Question Nice Question Famous Question Famous Question Popular Question Yearling,NULL,NULL,1,Enabling Kubernetes PodPresets with kops kubernetes kops pI ve got kubernetes cluster which was set up with kops with and then upgraded to trying to use PodPresets The docs state the following requirements pblockquote ol liYou have enabled the api type settings k8s io v1alpha1 podpreset li liYou have enabled the admission controller PodPreset li liYou have defined your pod presets li ol blockquotepI seeing that for the first is taken care of how can verify How can apply the second can see that there are three kube apiserver pods running in the cluster imagine it for the azs guess can edit their yaml config from kubernetes dashboard and add PodPreset to the admission control string But is there better way to achieve this,NULL 8170,1075305,661918,NULL,NULL,NULL,0,NULL,NULL 8171,1512736,1149711,NULL,NULL,NULL,0,NULL,NULL 8172,15050,238599,Popular Question Notable Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 8173,1509944,1192532,NULL,NULL,NULL,0,NULL,NULL 8174,248487,240695,Yearling Organizer Yearling Good Answer,NULL,NULL,0,NULL,NULL 8175,662133,848336,Supporter,NULL,NULL,0,NULL,NULL 8176,6562052,1034521,Teacher,NULL,NULL,0,NULL,NULL 8177,658162,1034521,Teacher,NULL,NULL,0,NULL,NULL 8178,231809,61128,Critic,NULL,NULL,0,NULL,NULL 8179,192510,969851,NULL,NULL,NULL,0,NULL,NULL 8180,588029,969851,NULL,NULL,NULL,0,NULL,NULL 8181,94796,432745,Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Enlightened Good Answer Yearling Nice Answer Great Answer Guru Revival Good Answer Good Answer Great Answer Nice Answer svn Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Enlightened Great Answer Great Answer Great Answer Nice Answer Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer Yearling Good Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 8182,871333,516380,Necromancer Yearling Nice Answer Commentator Nice Answer,NULL,NULL,0,NULL,NULL 8183,175254,1217707,NULL,NULL,NULL,0,NULL,NULL 8184,437718,977090,Editor Excavator,NULL,NULL,0,NULL,NULL 8185,753012,255562,Yearling Good Question Popular Question Notable Question Favorite Question Nice Question Good Question Popular Question Caucus Famous Question Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Caucus Yearling Nice Answer Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Popular Question Great Answer Famous Question Notable Question Taxonomist,NULL,NULL,0,NULL,NULL 8186,926225,90147,Nice Question,NULL,NULL,0,NULL,NULL 8187,902879,1032249,NULL,NULL,NULL,0,NULL,NULL 8188,1511350,974193,NULL,NULL,NULL,0,NULL,NULL 8189,446395,9195,Yearling Favorite Question Quorum Yearling Custodian Great Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 8190,110575,523083,NULL,NULL,NULL,0,NULL,NULL 8191,311793,1414193,Supporter Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 8192,9383655,1414193,Supporter Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 8193,197560,137996,Electorate Curious Popular Question Yearling Notable Question Nice Answer Good Answer Yearling Revival Popular Question Enthusiast Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8194,301760,756772,NULL,NULL,NULL,0,NULL,NULL 8195,1022952,879465,NULL,NULL,NULL,0,NULL,NULL 8196,96169,383066,NULL,NULL,NULL,0,NULL,NULL 8197,567355,692649,NULL,NULL,NULL,0,NULL,NULL 8198,335727,886092,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8199,1385121,1398425,Popular Question Popular Question Yearling Documentation Pioneer Caucus Constituent Census Popular Question Popular Question Yearling Caucus Constituent Famous Question Nice Answer Enlightened Documentation User Census asp.net-mvc Electorate Nice Question Nice Answer Caucus Constituent Popular Question Yearling Popular Question c# Announcer Notable Question,NULL,NULL,0,NULL,NULL 8200,24051,470420,NULL,NULL,NULL,0,NULL,NULL 8201,70035,393303,Nice Answer Revival Yearling Good Answer Yearling Good Answer Good Answer Caucus Yearling,NULL,pI think we re confusing things Haskell code code is equivalent to code gt gt code Not to be confused with code gt code which is just inverted function application and is like Haskell code code reversed ppre codelet gt gt let gt code prepI believe Haskell programmers do use code code often Perhaps not as often as programmers tend to use code gt code On the other hand some guys use code gt gt code to ridiculous degree href http blogs msdn com ashleyf archive 2011 04 21 programming is pointless aspx rel noreferrer http blogs msdn com ashleyf archive 2011 04 21 programming is pointless aspx Certainly agree that function composition is legit By some guys referring to myself That my own blog,0,NULL,NULL 8202,261017,1227059,Nice Question Notable Question Supporter Promoter Benefactor Scholar,NULL,NULL,0,NULL,NULL 8203,3534,507302,NULL,NULL,NULL,0,NULL,NULL 8204,411751,416743,Yearling,NULL,NULL,0,NULL,NULL 8205,44485,123632,Notable Question Nice Question Good Answer Nice Question Nice Answer Nice Answer Notable Question Nice Answer Guru Nice Question ios Yearling Nice Answer Guru Self-Learner Nice Answer Enlightened Nice Answer Guru Popular Question Guru Popular Question Popular Question Necromancer Famous Question Revival Good Answer Notable Question Nice Question Nice Answer Good Answer Deputy Electorate Suffrage swift cocoa-touch uitableview Good Answer Informed Nice Question Popular Question Great Answer Nice Answer Yearling Necromancer Caucus Constituent Popular Question Good Answer Nice Answer Custodian Nice Answer Notable Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Popular Question Guru Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened Popular Question Enlightened Good Answer Inquisitive Good Answer Good Answer Yearling Tag Editor Good Answer Vox Populi Necromancer Copy Editor Reviewer Pundit Mortarboard swift Guru Guru Revival Archaeologist Nice Answer Good Answer Guru Guru,NULL,pYou can get the version and build numbers as follows ppre codelet version Bundle main object forInfoDictionaryKey CFBundleShortVersionString as Stringlet build Bundle main object forInfoDictionaryKey kCFBundleVersionKey as String as String code prepor in Objective ppre codeNSString version NSBundle mainBundle objectForInfoDictionaryKey CFBundleShortVersionString NSString build NSBundle mainBundle objectForInfoDictionaryKey NSString kCFBundleVersionKey code prepI have the following methods in category on codeUIApplication code ppre codeextension UIApplication class func appVersion gt String return Bundle main object forInfoDictionaryKey CFBundleShortVersionString as String class func appBuild gt String return Bundle main object forInfoDictionaryKey kCFBundleVersionKey as String as String class func versionBuild gt String let version appVersion build appBuild return version build version version build code prep strongGist strong href https gist github com ashleymills 6ec9fce6d7ec2a11af9b rel noreferrer https gist github com ashleymills 6ec9fce6d7ec2a11af9b phrpHere the equivalent in Objective ppre code NSString appVersion return NSBundle mainBundle objectForInfoDictionaryKey CFBundleShortVersionString NSString build return NSBundle mainBundle objectForInfoDictionaryKey NSString kCFBundleVersionKey NSString versionBuild NSString version self appVersion NSString build self build NSString versionBuild NSString stringWithFormat version if version isEqualToString build versionBuild NSString stringWithFormat versionBuild build return versionBuild code prep strongGist strong href https gist github com ashleymills c37efb46c9dbef73d5dd rel noreferrer https gist github com ashleymills c37efb46c9dbef73d5dd respectfully disagree Conceptually this fits with UIApplication as the information returned is about the application Also this only applies to the main bundle it would make no sense to make this an instance method on any bundle pYou can get the version and build numbers as follows ppre codelet version Bundle main object forInfoDictionaryKey CFBundleShortVersionString as Stringlet build Bundle main object forInfoDictionaryKey kCFBundleVersionKey as String as String code prepor in Objective ppre codeNSString version NSBundle mainBundle objectForInfoDictionaryKey CFBundleShortVersionString NSString build NSBundle mainBundle objectForInfoDictionaryKey NSString kCFBundleVersionKey code prepI have the following methods in category on codeUIApplication code ppre codeextension UIApplication class func appVersion gt String return Bundle main object forInfoDictionaryKey CFBundleShortVersionString as String class func appBuild gt String return Bundle main object forInfoDictionaryKey kCFBundleVersionKey as String as String class func versionBuild gt String let version appVersion build appBuild return version build version version build code prep strongGist strong href https gist github com ashleymills 6ec9fce6d7ec2a11af9b rel noreferrer https gist github com ashleymills 6ec9fce6d7ec2a11af9b phrpHere the equivalent in Objective ppre code NSString appVersion return NSBundle mainBundle objectForInfoDictionaryKey CFBundleShortVersionString NSString build return NSBundle mainBundle objectForInfoDictionaryKey NSString kCFBundleVersionKey NSString versionBuild NSString version self appVersion NSString build self build NSString versionBuild NSString stringWithFormat version if version isEqualToString build versionBuild NSString stringWithFormat versionBuild build return versionBuild code prep strongGist strong href https gist github com ashleymills c37efb46c9dbef73d5dd rel noreferrer https gist github com ashleymills c37efb46c9dbef73d5dd Yes did Thank you Fixed,0,NULL,NULL 8206,240491,926819,NULL,NULL,NULL,0,NULL,NULL 8207,54800,1129636,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 8208,204071,726735,NULL,NULL,NULL,0,NULL,NULL 8209,454164,642883,NULL,NULL,NULL,0,NULL,NULL 8210,142483,39068,Revival Revival Popular Question Notable Question Nice Answer Enlightened Notable Question Favorite Question Good Answer Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Caucus Yearling Famous Question Notable Question Popular Question Announcer Notable Question Notable Question Notable Question Famous Question Popular Question Good Question Caucus Good Question Notable Question Documentation User Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Good Question Notable Question Revival Famous Question Notable Question Nice Answer Great Answer Popular Question Nice Answer Popular Question Favorite Question Great Question asp.net Favorite Question Yearling,NULL,NULL,0,NULL,NULL 8211,4736,524349,NULL,NULL,NULL,0,NULL,NULL 8212,143477,565303,Caucus Census Caucus Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 8213,455402,43192,Good Answer,NULL,NULL,0,NULL,NULL 8214,8015,1032347,NULL,NULL,NULL,0,NULL,NULL 8215,4624996,33203,Promoter Announcer Good Question Good Question Popular Question Stellar Question Popular Question Yearling Booster Famous Question Stellar Question Good Question Good Question Announcer Yearling Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 8216,104782,1553694,NULL,NULL,NULL,0,NULL,NULL 8217,216511,186501,Necromancer Famous Question Revival Good Question,NULL,NULL,0,NULL,NULL 8218,25673,557448,NULL,NULL,NULL,0,NULL,NULL 8219,404693,1022659,Popular Question,NULL,NULL,0,NULL,NULL 8220,368157,1275999,Critic Good Answer Yearling,NULL,NULL,0,NULL,NULL 8221,151587,498268,NULL,NULL,NULL,0,NULL,NULL 8222,141482,793477,Yearling Yearling Nice Answer Caucus Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Explainer,NULL,NULL,0,NULL,NULL 8223,351878,990132,NULL,NULL,NULL,0,NULL,NULL 8224,503245,179993,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8225,139174,325300,Yearling Nice Answer Nice Answer Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 8226,182564,287575,Good Answer Necromancer Yearling Nice Answer Notable Question Popular Question Nice Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Good Question Good Answer Guru Yearling Notable Question Nice Answer Famous Question Popular Question Booster Yearling Necromancer Necromancer Announcer Nice Answer Nice Question,NULL,pOne of the engineers who built R8 Stephan Herhut listed the following rules for the latest Guava code25 android code in href https youtu be x9T5EYE QWQ 21m50s rel noreferrer this session from Google 2018 ppre code dontwarn afu org checkerframework dontwarn org checkerframework dontwarn com google errorprone dontwarn sun misc Unsafe dontwarn java lang ClassValue code prepThe video also includes short explanation of the rules first are static analysis annotation frameworks last are unavailable classes on Android which are protected by runtime checks in Guava ppI spoke with Stephan after the session and he said these will hopefully be included in the Guava documentation in the future or better yet in the codeconsumerProguardFiles code of future Guava releases Here hoping Technically Stephan talk used Guava 24 android but tested the rules with 25 android and they worked,1,NULL,ProGuard configuration for Guava with obfuscation and optimization java android guava proguard pLooking for ProGuard configuration for Guava that will obfuscate and optimize as the default one that is provided on the website does not ppNot only that cannot get it to export my apk keep getting ppre codeWarning com google common collect MinMaxPriorityQueue can find referenced field int UNSET EXPECTED SIZE in class com google common collect MinMaxPriorityQueue BuilderYou should check if you need to specify additional program jars code pre pOne of the engineers who built R8 Stephan Herhut listed the following rules for the latest Guava code25 android code in href https youtu be x9T5EYE QWQ 21m50s rel noreferrer this session from Google 2018 ppre code dontwarn afu org checkerframework dontwarn org checkerframework dontwarn com google errorprone dontwarn sun misc Unsafe dontwarn java lang ClassValue code prepThe video also includes short explanation of the rules first are static analysis annotation frameworks last are unavailable classes on Android which are protected by runtime checks in Guava ppI spoke with Stephan after the session and he said these will hopefully be included in the Guava documentation in the future or better yet in the codeconsumerProguardFiles code of future Guava releases Here hoping 8227,67642,967228,NULL,NULL,NULL,0,NULL,NULL 8228,315855,750199,NULL,NULL,NULL,0,NULL,NULL 8229,445607,1558376,Autobiographer Teacher Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8230,424438,756345,NULL,NULL,NULL,0,NULL,NULL 8231,717229,235061,Caucus Popular Question,NULL,NULL,0,NULL,NULL 8232,15490,637099,NULL,NULL,NULL,0,NULL,NULL 8233,8494705,78332,NULL,NULL,NULL,0,NULL,NULL 8234,187648,998319,NULL,NULL,NULL,0,NULL,NULL 8235,1386779,1274968,Announcer,NULL,NULL,0,NULL,NULL 8236,2948726,1274968,Announcer,NULL,NULL,0,NULL,NULL 8237,1174991,1505466,Popular Question,NULL,NULL,0,NULL,NULL 8238,3302279,1505466,Popular Question,NULL,NULL,0,NULL,NULL 8239,422990,586700,NULL,NULL,NULL,0,NULL,NULL 8240,826052,1022008,NULL,NULL,NULL,0,NULL,NULL 8241,303907,1286523,NULL,NULL,NULL,0,NULL,NULL 8242,838442,815812,Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question Self-Learner Notable Question Famous Question Popular Question Documentation User Nice Question Notable Question Census Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 8243,3053699,815812,Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question Self-Learner Notable Question Famous Question Popular Question Documentation User Nice Question Notable Question Census Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 8244,2609372,815812,Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question Self-Learner Notable Question Famous Question Popular Question Documentation User Nice Question Notable Question Census Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 8245,185833,342952,Critic,NULL,NULL,0,NULL,NULL 8246,213870,917094,NULL,NULL,NULL,0,NULL,NULL 8247,2040395,1292762,NULL,NULL,NULL,0,NULL,NULL 8248,65579,471842,Notable Question Necromancer Yearling Nice Answer Enlightened Nice Answer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 8249,122968,471842,Notable Question Necromancer Yearling Nice Answer Enlightened Nice Answer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 8250,115411,586081,Supporter,NULL,NULL,0,NULL,NULL 8251,890113,829350,Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8252,1341389,1246747,Informed,NULL,NULL,0,NULL,NULL 8253,1059,890960,Enthusiast,NULL,NULL,0,NULL,NULL 8254,59456,1497735,Nice Answer,NULL,NULL,0,NULL,NULL 8255,921587,394630,Yearling Famous Question,NULL,NULL,0,NULL,NULL 8256,133994,223301,Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8257,53872,1363227,NULL,NULL,NULL,0,NULL,NULL 8258,465360,1090805,NULL,NULL,NULL,0,NULL,NULL 8259,481068,705661,Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Yearling Nice Question Famous Question Nice Question Popular Question Good Question Yearling Nice Question Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,1,What is the right command to convert an mp3 file to the required codec version MPEG version and bit rate 48 kbps for Amazon Alexa SSML ffmpeg alexa skills kit pI am trying to convert an mp3 file to the format expected by the audio tag in the Amazon Alexa SSML markup language as described here href https developer amazon com public solutions alexa alexa skills kit docs speech synthesis markup language ssml reference https developer amazon com public solutions alexa alexa skills kit docs speech synthesis markup language ssml reference ppThe documentation recommends using href https www ffmpeg org ffmpeg html https www ffmpeg org ffmpeg html ppI tried this command but can find the right codec to use codeffmpeg input mp3 ar 44100 ab 48k codec mpeg2 ac output mp3 code ppI know need to convert the file because Alexa fails with the following error codeThe audio is not of supported MPEG version code,NULL 8260,603481,703322,NULL,NULL,NULL,0,NULL,NULL 8261,205183,922954,Nice Answer Self-Learner Notable Question Yearling Popular Question Yearling Announcer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 8262,1634459,401375,Popular Question Popular Question Notable Question Popular Question Popular Question Custodian Excavator Popular Question Yearling Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 8263,1707622,919292,NULL,NULL,NULL,0,NULL,NULL 8264,106908,2905,Good Question Yearling Good Answer Census Yearling Census Yearling Good Question,NULL,NULL,0,NULL,NULL 8265,270953,832065,Nice Answer Famous Question Popular Question Nice Question Nice Question Good Answer Popular Question Notable Question Yearling Favorite Question Good Question Nice Question Great Question Favorite Question iphone Nice Question Good Answer Famous Question Nice Answer Notable Question Famous Question Yearling Famous Question Famous Question Announcer Custodian Notable Question Good Answer Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 8266,34703,950524,NULL,NULL,NULL,0,NULL,NULL 8267,418,5577,Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Taxonomist Great Answer Pundit Yearling,NULL,NULL,0,NULL,NULL 8268,75771,62735,Yearling Good Answer Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 8269,239872,62735,Yearling Good Answer Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 8270,96622,1000182,Yearling Popular Question,NULL,NULL,0,NULL,NULL 8271,1541116,1000182,Yearling Popular Question,NULL,NULL,0,NULL,NULL 8272,1507405,1057442,Popular Question,NULL,NULL,0,NULL,NULL 8273,299373,556537,NULL,NULL,NULL,0,NULL,NULL 8274,77223,1129979,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8275,100218,187195,Good Answer Yearling Good Answer Guru Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 8276,155018,915641,NULL,NULL,NULL,0,NULL,NULL 8277,29235,99475,NULL,NULL,NULL,0,NULL,NULL 8278,5012,291451,Necromancer Yearling,NULL,NULL,0,NULL,NULL 8279,38417,359735,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8280,368831,526365,Yearling Good Answer Critic Yearling Necromancer Revival Revival Editor Yearling Necromancer Revival Revival Autobiographer Necromancer Yearling Necromancer Popular Question Necromancer Nice Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8281,152174,649589,Supporter Informed,NULL,NULL,0,NULL,NULL 8282,139276,582524,NULL,NULL,NULL,0,NULL,NULL 8283,1133969,603125,Popular Question Notable Question Popular Question Notable Question Necromancer Popular Question Necromancer Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8284,117408,314883,Yearling Yearling Famous Question Organizer Taxonomist Critic Yearling Favorite Question,NULL,NULL,0,NULL,NULL 8285,30097,166732,Nice Answer Enlightened Popular Question Yearling Nice Question Nice Answer git Announcer Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 8286,640660,965178,NULL,NULL,NULL,0,NULL,NULL 8287,210184,564882,NULL,NULL,NULL,0,NULL,NULL 8288,599227,703529,Yearling Yearling Necromancer Caucus Nice Answer Revival Yearling Custodian Necromancer Curious Necromancer Yearling Nice Answer Nice Answer Custodian Yearling Good Answer Necromancer Peer Pressure Citizen Patrol Yearling Tumbleweed Excavator Good Answer Caucus Popular Question Necromancer Nice Question Notable Question javascript Necromancer Civic Duty Revival Autobiographer Cleanup Nice Answer Caucus Custodian Yearling Necromancer Famous Question Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 8289,85825,292789,Nice Question Notable Question Notable Question Notable Question Notable Question Famous Question Tumbleweed Nice Question Yearling Good Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 8290,10394,161801,Announcer Announcer Favorite Question Nice Question Popular Question Announcer anaconda Self-Learner Nice Question Nice Answer Nice Question sympy Necromancer Famous Question Nice Answer Guru python Great Answer Announcer Announcer Popular Question Nice Answer ipython Documentation Pioneer Announcer Yearling Nice Answer Enlightened Good Answer Famous Question Popular Question Nice Answer Enlightened Good Answer Announcer Popular Question Popular Question Caucus Populist Good Answer Good Answer Popular Question Favorite Question math Nice Answer Good Answer python-3.x Nice Answer Enlightened Great Answer Census Great Answer Announcer Guru Good Question Nice Answer Nice Answer Enlightened Necromancer Popular Question Announcer Nice Answer Enlightened Great Question Guru Enlightened Nice Answer Announcer Caucus Announcer Notable Question Nice Answer Enlightened Favorite Question Nice Question Yearling Announcer Necromancer Popular Question Nice Answer Documentation User Popular Question Popular Question Nice Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Great Answer Good Question Favorite Question Announcer Census Nice Answer Enlightened Announcer Popular Question Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus symbolic-math Necromancer Necromancer Good Answer Nice Answer Good Answer Guru Nice Answer Notable Question Good Answer Notable Question Nice Answer Nice Question Nice Answer Good Answer Necromancer Announcer Nice Answer Enlightened Yearling Guru Notable Question Nice Answer Notable Question Good Answer Nice Answer Popular Question Announcer Nice Answer Nice Question Nice Answer,NULL,Get object by id python pLet say have an id of Python object which retrieved by doing codeid thing code How do find codething code again by the id number was given Legitimate reason to do this debugging The default repr on objects includes their memory address Sometimes when debugging especially interactively you want to be able to access that object without trying to dig into where it is defined Get object by id python pLet say have an id of Python object which retrieved by doing codeid thing code How do find codething code again by the id number was given by no means suggesting debugging is the only use case It definitely one that no one would argue with though Get object by id python pLet say have an id of Python object which retrieved by doing codeid thing code How do find codething code again by the id number was given By the way this is my own answer that uses this functionality https stackoverflow com questions 44877745 is there way to make dis dis print code objects recursively 46373545 46373545,1,Matplotlib log scale for values too small for floating point python matplotlib plot floating point sympy pI want to make plot with matplotlib with really small values shown on log scale This works fine until the numbers get too small and don fit in float ppI am representing values using SymPy arbitrary precision floats but these are apparently converted to Python or NumPy machine floats internally in matplotlib ppFor example ppre code gt gt gt import sympy gt gt gt import matplotlib pyplot as plt gt gt gt plt plot sympy Float 1e 20 sympy Float 1e 100 sympy Float 1e 700 lt matplotlib lines Line2D object at 0x11ac0c208 gt gt gt gt plt yscale log code prepProduces href https stack imgur com I8lrx png rel nofollow noreferrer img src https stack imgur com I8lrx png alt plot ppWhat it should show is the third value at 10 700 not at negative infinity ppNow have very little hope of getting matplotlib to use SymPy Floats internally if it possible let me know What would like to do is provide matplotlib with the log of the value which can compute myself just fine but still display the exponential of that value on the axis with log scale,NULL 8291,261110,275891,Scholar Student Revival,NULL,NULL,0,NULL,NULL 8292,1169416,1287487,Popular Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 8293,606693,610301,NULL,NULL,NULL,0,NULL,NULL 8294,138460,276047,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 8295,1010869,71643,NULL,NULL,NULL,0,NULL,NULL 8296,212343,446423,NULL,NULL,NULL,0,NULL,NULL 8297,219467,1149587,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 8298,252609,577774,Caucus Yearling Necromancer Autobiographer Student Good Answer,NULL,NULL,0,NULL,NULL 8299,1768303,1463494,Revival,NULL,NULL,0,NULL,NULL 8300,1173373,502433,NULL,NULL,NULL,0,NULL,NULL 8301,91600,410059,Supporter Yearling Great Answer Editor Yearling Commentator Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8302,47564,127137,Yearling Caucus Constituent Critic Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 8303,12588,1168615,NULL,NULL,NULL,0,NULL,NULL 8304,99456,174231,Critic Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 8305,180073,1301588,Nice Question Notable Question Popular Question Editor Commentator Yearling Supporter,NULL,NULL,0,NULL,NULL 8306,44015,412078,NULL,NULL,NULL,0,NULL,NULL 8307,29613,1447871,Critic Vox Populi Popular Question,NULL,NULL,0,NULL,NULL 8308,597495,301498,Popular Question,NULL,NULL,0,NULL,NULL 8309,18163,1464069,Yearling Good Answer Necromancer Yearling Necromancer Caucus Constituent Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 8310,107396,903030,Good Question Yearling,NULL,NULL,0,NULL,NULL 8311,512054,1398408,NULL,NULL,NULL,0,NULL,NULL 8312,893969,995458,NULL,NULL,NULL,0,NULL,NULL 8313,327363,1245472,NULL,NULL,NULL,0,NULL,NULL 8314,1177422,831432,NULL,NULL,NULL,0,NULL,NULL 8315,326013,1026,Nice Answer Necromancer Nice Answer xul Great Answer Yearling Revival Revival Revival Nice Answer Enlightened Caucus Good Answer Revival Nice Answer Enlightened Announcer Revival Nice Answer Enlightened Announcer Promoter Benefactor Famous Question Revival Revival Revival Announcer Necromancer Announcer Announcer Announcer Announcer Caucus Necromancer Revival Constituent Yearling Necromancer Announcer Good Answer Necromancer Revival Popular Question Announcer Nice Answer Enlightened Nice Answer Census Nice Answer dom Announcer Nice Answer Nice Answer Announcer Announcer Caucus Good Answer Constituent Announcer Pundit Good Answer Announcer Revival Yearling Notable Question Good Question Necromancer,NULL,NULL,0,NULL,NULL 8316,1385165,1376436,Yearling Good Answer Yearling Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 8317,6120,106381,Citizen Patrol Enthusiast Commentator,NULL,NULL,0,NULL,NULL 8318,337031,432882,NULL,NULL,NULL,0,NULL,NULL 8319,1106619,305172,Commentator Student Supporter,NULL,NULL,0,NULL,NULL 8320,579797,863567,Popular Question Good Question,NULL,NULL,0,NULL,NULL 8321,46906,38334,Good Answer Famous Question Yearling Caucus Constituent Documentation User Caucus,NULL,NULL,0,NULL,NULL 8322,298605,1026733,NULL,NULL,NULL,0,NULL,NULL 8323,442999,1026733,NULL,NULL,NULL,0,NULL,NULL 8324,1333850,947501,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 8325,207215,630261,Curious Informed Nice Answer Yearling Nice Answer Popular Question Notable Question Yearling Notable Question Popular Question Famous Question Custodian Notable Question Yearling Popular Question Nice Question Nice Question Famous Question Popular Question Taxonomist,NULL,NULL,0,NULL,NULL 8326,116858,640661,NULL,NULL,NULL,0,NULL,NULL 8327,155966,432251,Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 8328,465875,1510235,NULL,NULL,NULL,0,NULL,NULL 8329,18046,277537,Good Answer Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Nice Answer Yearling Nice Answer Civic Duty Good Question Great Answer Custodian Custodian Notable Question Custodian Nice Question Yearling Caucus Constituent Excavator Great Answer,NULL,NULL,0,NULL,NULL 8330,152907,1472667,NULL,NULL,NULL,0,NULL,NULL 8331,68624,57198,NULL,NULL,NULL,0,NULL,NULL 8332,8826907,57198,NULL,NULL,NULL,0,NULL,NULL 8333,84700,208067,Good Answer Proofreader Yearling Custodian Caucus Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 8334,515650,1426139,NULL,NULL,NULL,0,NULL,NULL 8335,738730,1022313,NULL,NULL,NULL,0,NULL,NULL 8336,533389,733687,Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 8337,189379,237326,NULL,NULL,NULL,0,NULL,NULL 8338,194490,155937,Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 8339,27999,650305,NULL,NULL,NULL,0,NULL,NULL 8340,397324,1100907,Civic Duty Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 8341,1381922,1188364,NULL,NULL,NULL,0,NULL,NULL 8342,1475382,181364,Famous Question,NULL,NULL,0,NULL,NULL 8343,757370,81574,Critic,NULL,NULL,0,NULL,NULL 8344,216510,599475,Informed Teacher Custodian,NULL,NULL,0,NULL,NULL 8345,754368,674135,NULL,NULL,NULL,0,NULL,NULL 8346,52006,447566,Yearling Promoter Yearling Enthusiast Yearling,NULL,NULL,0,NULL,NULL 8347,136903,2838,Enlightened,NULL,NULL,0,NULL,NULL 8348,217268,175778,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8349,7207847,4478,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8350,164217,4478,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8351,471145,644743,Popular Question Caucus,NULL,NULL,0,NULL,NULL 8352,9601,582352,Famous Question,NULL,NULL,0,NULL,NULL 8353,141375,744008,Revival Good Answer Necromancer Yearling Announcer Populist,NULL,NULL,0,NULL,NULL 8354,10081,10515,Famous Question Necromancer Good Question,NULL,NULL,0,NULL,NULL 8355,889471,918719,NULL,NULL,NULL,0,NULL,NULL 8356,143255,594437,Citizen Patrol Critic Informed Autobiographer Commentator,NULL,NULL,0,NULL,NULL 8357,1215116,845472,NULL,NULL,NULL,0,NULL,NULL 8358,469209,959757,NULL,NULL,NULL,0,NULL,NULL 8359,886499,1003648,NULL,NULL,NULL,0,NULL,NULL 8360,991919,274522,NULL,NULL,NULL,0,NULL,NULL 8361,59608,625742,Necromancer Caucus Yearling Editor Revival Census Necromancer Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 8362,25294,1284187,NULL,NULL,NULL,0,NULL,NULL 8363,396927,908180,Yearling Good Answer,NULL,NULL,0,NULL,NULL 8364,204498,591865,NULL,NULL,NULL,0,NULL,NULL 8365,66560,203554,NULL,NULL,NULL,0,NULL,NULL 8366,161426,768418,NULL,NULL,NULL,0,NULL,NULL 8367,504644,918765,Popular Question Popular Question Nice Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 8368,423480,1182030,NULL,NULL,NULL,0,NULL,NULL 8369,1522794,1412632,NULL,NULL,NULL,0,NULL,NULL 8370,29753,15345,Self-Learner Notable Question Famous Question Notable Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 8371,623568,1226676,Favorite Question Autobiographer Yearling Nice Question Notable Question Notable Question Nice Question Famous Question Stellar Question Yearling Popular Question Famous Question Inquisitive Famous Question Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8372,9070,658001,NULL,NULL,NULL,0,NULL,NULL 8373,369495,831919,NULL,NULL,NULL,0,NULL,NULL 8374,1271,1281172,Popular Question Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8375,3077,1216986,NULL,NULL,NULL,0,NULL,NULL 8376,231629,712271,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 8377,117813,1132856,Supporter Scholar Student Teacher Editor Excavator,NULL,NULL,0,NULL,NULL 8378,356192,1007690,NULL,NULL,NULL,0,NULL,NULL 8379,7856,150379,Student,NULL,NULL,0,NULL,NULL 8380,339279,596087,NULL,NULL,NULL,0,NULL,NULL 8381,667821,1022335,NULL,NULL,NULL,0,NULL,NULL 8382,844370,750075,Popular Question,NULL,NULL,0,NULL,NULL 8383,22898,529160,Notable Question Favorite Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8384,2032244,529160,Notable Question Favorite Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8385,66930,579934,Necromancer,NULL,NULL,0,NULL,NULL 8386,2827028,44852,Stellar Question Great Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Socratic Good Question Notable Question Popular Question jquery Nice Question Notable Question Nice Question Notable Question Popular Question Famous Question Stellar Question Notable Question Favorite Question Guru Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Nice Question Notable Question Notable Question Famous Question Famous Question Famous Question Popular Question Nice Answer Notable Question Nice Question Popular Question Necromancer Popular Question Famous Question Custodian Notable Question Popular Question Nice Question Yearling Notable Question Famous Question Popular Question Famous Question Good Question Notable Question Popular Question Favorite Question Popular Question Good Question Nice Question Popular Question Notable Question Famous Question Favorite Question Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Good Question Famous Question Nice Question Nice Question Caucus Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Famous Question Yearling Nice Question Notable Question Good Question Good Question Nice Question Notable Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Strunk & White Popular Question Notable Question Famous Question Necromancer Famous Question Notable Question Good Question Notable Question Notable Question Popular Question Great Question css Good Question Good Question Good Question Popular Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 8387,3500856,44852,Stellar Question Great Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Socratic Good Question Notable Question Popular Question jquery Nice Question Notable Question Nice Question Notable Question Popular Question Famous Question Stellar Question Notable Question Favorite Question Guru Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Nice Question Notable Question Notable Question Famous Question Famous Question Famous Question Popular Question Nice Answer Notable Question Nice Question Popular Question Necromancer Popular Question Famous Question Custodian Notable Question Popular Question Nice Question Yearling Notable Question Famous Question Popular Question Famous Question Good Question Notable Question Popular Question Favorite Question Popular Question Good Question Nice Question Popular Question Notable Question Famous Question Favorite Question Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Good Question Famous Question Nice Question Nice Question Caucus Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Famous Question Yearling Nice Question Notable Question Good Question Good Question Nice Question Notable Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Strunk & White Popular Question Notable Question Famous Question Necromancer Famous Question Notable Question Good Question Notable Question Notable Question Popular Question Great Question css Good Question Good Question Good Question Popular Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 8388,18109,587802,Popular Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 8389,31285,442738,NULL,NULL,NULL,0,NULL,NULL 8390,535180,898840,Popular Question Caucus Notable Question Popular Question Yearling Good Question Notable Question Documentation User Popular Question Popular Question Popular Question Self-Learner Popular Question Popular Question Yearling Famous Question Notable Question Notable Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 8391,972837,847293,NULL,NULL,NULL,0,NULL,NULL 8392,1504119,398398,Famous Question Notable Question Famous Question Nice Question Nice Question Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Good Question Good Question Popular Question Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Good Question Famous Question Yearling Famous Question Good Question Famous Question Famous Question Popular Question Notable Question Famous Question Famous Question Famous Question Nice Question Notable Question Good Question Good Question Nice Question Notable Question Notable Question Fanatic Notable Question Famous Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Good Question Famous Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 8393,183256,398398,Famous Question Notable Question Famous Question Nice Question Nice Question Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Good Question Good Question Popular Question Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Good Question Famous Question Yearling Famous Question Good Question Famous Question Famous Question Popular Question Notable Question Famous Question Famous Question Famous Question Nice Question Notable Question Good Question Good Question Nice Question Notable Question Notable Question Fanatic Notable Question Famous Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Good Question Famous Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 8394,250091,60223,Yearling Popular Question Good Answer Necromancer Good Answer Nice Answer Enlightened Popular Question Popular Question Nice Answer Yearling Notable Question Popular Question Popular Question Disciplined Guru Revival Popular Question Inquisitive Self-Learner Yearling Good Answer Popular Question Announcer Nice Answer Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 8395,238666,61117,Teacher Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 8396,517216,301065,Informed Autobiographer Census,NULL,NULL,0,NULL,NULL 8397,461880,757781,NULL,NULL,NULL,0,NULL,NULL 8398,1202194,93031,Yearling Inquisitive Notable Question Popular Question Caucus Popular Question Popular Question Yearling Guru Notable Question Popular Question Caucus Notable Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 8399,111097,611323,NULL,NULL,NULL,0,NULL,NULL 8400,7653899,611323,NULL,NULL,NULL,0,NULL,NULL 8401,426558,418487,NULL,NULL,NULL,0,NULL,NULL 8402,395416,1313399,NULL,NULL,NULL,0,NULL,NULL 8403,97238,153238,NULL,NULL,NULL,0,NULL,NULL 8404,145751,200348,NULL,NULL,NULL,0,NULL,NULL 8405,627194,845339,NULL,NULL,NULL,0,NULL,NULL 8406,1480687,946665,NULL,NULL,NULL,0,NULL,NULL 8407,524954,80186,Yearling Caucus Civic Duty Informed Announcer,NULL,NULL,0,NULL,NULL 8408,2371522,657501,NULL,NULL,NULL,0,NULL,NULL 8409,362497,713818,NULL,NULL,NULL,0,NULL,NULL 8410,358535,153092,Custodian Famous Question Famous Question Nice Question Yearling Famous Question Notable Question Caucus Custodian Famous Question Popular Question Yearling Popular Question Great Question Nice Question Nice Question Notable Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 8411,145260,726984,NULL,NULL,NULL,0,NULL,NULL 8412,512057,767986,NULL,NULL,NULL,0,NULL,NULL 8413,2795671,767986,NULL,NULL,NULL,0,NULL,NULL 8414,2682023,1497012,Informed Popular Question,NULL,NULL,0,NULL,NULL 8415,107460,1332125,NULL,NULL,NULL,0,NULL,NULL 8416,187060,1257726,NULL,NULL,NULL,0,NULL,NULL 8417,1512521,1019004,NULL,NULL,NULL,0,NULL,NULL 8418,4286093,1191634,NULL,NULL,NULL,0,NULL,NULL 8419,140348,992414,Notable Question,NULL,NULL,0,NULL,NULL 8420,226826,1274577,Critic,NULL,NULL,0,NULL,NULL 8421,9662251,1391233,Custodian Scholar Teacher Supporter,NULL,NULL,0,NULL,NULL 8422,393442,1132982,NULL,NULL,NULL,0,NULL,NULL 8423,979854,1132982,NULL,NULL,NULL,0,NULL,NULL 8424,28126,1077167,Editor Scholar Student Supporter Teacher,NULL,NULL,0,NULL,NULL 8425,132196,894516,NULL,NULL,NULL,0,NULL,NULL 8426,27676,846206,Yearling Self-Learner Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 8427,144214,362992,Revival Yearling,NULL,NULL,0,NULL,NULL 8428,63781,1393798,Notable Question Yearling,NULL,NULL,0,NULL,NULL 8429,352610,314626,NULL,NULL,NULL,0,NULL,NULL 8430,561942,343866,NULL,NULL,NULL,0,NULL,NULL 8431,451001,454537,NULL,NULL,NULL,0,NULL,NULL 8432,200810,114658,Yearling Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 8433,467041,667557,NULL,NULL,NULL,0,NULL,NULL 8434,298596,1541935,Enthusiast,NULL,NULL,0,NULL,NULL 8435,7646740,1541935,Enthusiast,NULL,NULL,0,NULL,NULL 8436,218402,1124983,NULL,NULL,NULL,0,NULL,NULL 8437,520868,485407,NULL,NULL,NULL,0,NULL,NULL 8438,189995,1071121,NULL,NULL,NULL,0,NULL,NULL 8439,362704,471003,NULL,NULL,NULL,0,NULL,NULL 8440,39560,577133,Nice Answer Yearling Enlightened Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 8441,534731,644786,Self-Learner Notable Question Notable Question Yearling Popular Question Pundit Caucus Constituent Popular Question Famous Question Nice Answer Enlightened Cleanup Popular Question Popular Question Yearling Popular Question Caucus Constituent Notable Question Reviewer Nice Question css Yearling Caucus Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 8442,372468,1036728,Necromancer Necromancer Populist Nice Answer Nice Answer Necromancer Great Answer Necromancer Good Answer Taxonomist Yearling Popular Question Popular Question Nice Answer Necromancer Nice Answer Necromancer git Guru Nice Answer Custodian Necromancer Notable Question Popular Question Revival Popular Question Popular Question Nice Answer Great Answer Inquisitive Good Answer Popular Question Good Answer Notable Question Notable Question Nice Answer Yearling Good Answer Favorite Question Announcer Good Answer Guru Pundit Popular Question Popular Question Nice Answer Necromancer Necromancer Nice Question Necromancer Necromancer Necromancer Yearling,NULL,pYou don really need all that much code ppre codeIFS sorted sort lt lt lt array unset IFS code prepSupports whitespace in elements as long as it not newline emand em works in Bash ppe ppre code array IFS sorted sort lt lt lt array printf sorted code prep strongNote strong has href https stackoverflow com questions 7442417 how to sort an array in bash 11789688 noredirect comment67720230 11789688 pointed out that care is required if elements contain wildcards such as code code or code code pblockquote pThe sorted part is using the split and glob operator You should turn glob off codeset code or codeset noglob code or codeshopt op noglob code or an element of the array like code code will be expanded to list of files blockquoteh2What happening h2pThe result is culmination six things that happen in this order polli codeIFS code lili code array code lili code lt lt lt code lili codesort code lili codesorted code lili codeunset IFS code li olh3First the codeIFS code h3pThis is an important part of our operation that affects the outcome of and in the following way ppGiven pulli code array code expands to every element delimited by the first character of codeIFS code lili codesorted code creates elements by splitting on every character of codeIFS code li ulp codeIFS code href https unix stackexchange com questions 184863 what is the meaning of ifs in bash scripting sets things up so that elements are expanded using ema new line em as the delimiter and then later created in way that each line becomes an element Splitting on new line ppDelimiting by new line is important because that how codesort code operates sorting per line Splitting by emonly em new line is not as important but is needed preserve elements that contain spaces or tabs ppThe default value of codeIFS code is ema space em ema tab em followed by ema new line em and would be unfit for our operation ph3Next the codesort lt lt lt array code part h3p code lt lt lt code called href https unix stackexchange com questions 80362 what does mean emhere strings em takes the expansion of code array code as explained above and feeds it into the standard input of codesort code ppWith our example codesort code is fed this following string ppre codea cbf3 code prepSince codesort code emsorts em it produces ppre code3 5a cbf code preh3Next the codesorted code part h3pThe code code part called href http www tldp org LDP abs html commandsub html rel noreferrer emcommand substitution em causes its content codesort lt lt lt array code to run as normal command while taking the resulting emstandard output em as the literal that goes where ever code code was ppIn our example this produces something similar to simply writing ppre codesorted 5a cbf code prep codesorted code then becomes an array that created by splitting this literal on every new line ph3Finally the codeunset IFS code h3pThis resets the value of codeIFS code to the default value and is just good practice ppIt to ensure we don cause trouble with anything that relies on codeIFS code later in our script Otherwise we need to remember that we ve switched things around something that might be impractical for complex scripts It necessary because sorted is not command but rather second variable assignment pYou don really need all that much code ppre codeIFS sorted sort lt lt lt array unset IFS code prepSupports whitespace in elements as long as it not newline emand em works in Bash ppe ppre code array IFS sorted sort lt lt lt array printf sorted code prep strongNote strong has href https stackoverflow com questions 7442417 how to sort an array in bash 11789688 noredirect comment67720230 11789688 pointed out that care is required if elements contain wildcards such as code code or code code pblockquote pThe sorted part is using the split and glob operator You should turn glob off codeset code or codeset noglob code or codeshopt op noglob code or an element of the array like code code will be expanded to list of files blockquoteh2What happening h2pThe result is culmination six things that happen in this order polli codeIFS code lili code array code lili code lt lt lt code lili codesort code lili codesorted code lili codeunset IFS code li olh3First the codeIFS code h3pThis is an important part of our operation that affects the outcome of and in the following way ppGiven pulli code array code expands to every element delimited by the first character of codeIFS code lili codesorted code creates elements by splitting on every character of codeIFS code li ulp codeIFS code href https unix stackexchange com questions 184863 what is the meaning of ifs in bash scripting sets things up so that elements are expanded using ema new line em as the delimiter and then later created in way that each line becomes an element Splitting on new line ppDelimiting by new line is important because that how codesort code operates sorting per line Splitting by emonly em new line is not as important but is needed preserve elements that contain spaces or tabs ppThe default value of codeIFS code is ema space em ema tab em followed by ema new line em and would be unfit for our operation ph3Next the codesort lt lt lt array code part h3p code lt lt lt code called href https unix stackexchange com questions 80362 what does mean emhere strings em takes the expansion of code array code as explained above and feeds it into the standard input of codesort code ppWith our example codesort code is fed this following string ppre codea cbf3 code prepSince codesort code emsorts em it produces ppre code3 5a cbf code preh3Next the codesorted code part h3pThe code code part called href http www tldp org LDP abs html commandsub html rel noreferrer emcommand substitution em causes its content codesort lt lt lt array code to run as normal command while taking the resulting emstandard output em as the literal that goes where ever code code was ppIn our example this produces something similar to simply writing ppre codesorted 5a cbf code prep codesorted code then becomes an array that created by splitting this literal on every new line ph3Finally the codeunset IFS code h3pThis resets the value of codeIFS code to the default value and is just good practice ppIt to ensure we don cause trouble with anything that relies on codeIFS code later in our script Otherwise we need to remember that we ve switched things around something that might be impractical for complex scripts don get what easier What you wrote is longer than what in the answer and sets IFS anyhow pYou don really need all that much code ppre codeIFS sorted sort lt lt lt array unset IFS code prepSupports whitespace in elements as long as it not newline emand em works in Bash ppe ppre code array IFS sorted sort lt lt lt array printf sorted code prep strongNote strong has href https stackoverflow com questions 7442417 how to sort an array in bash 11789688 noredirect comment67720230 11789688 pointed out that care is required if elements contain wildcards such as code code or code code pblockquote pThe sorted part is using the split and glob operator You should turn glob off codeset code or codeset noglob code or codeshopt op noglob code or an element of the array like code code will be expanded to list of files blockquoteh2What happening h2pThe result is culmination six things that happen in this order polli codeIFS code lili code array code lili code lt lt lt code lili codesort code lili codesorted code lili codeunset IFS code li olh3First the codeIFS code h3pThis is an important part of our operation that affects the outcome of and in the following way ppGiven pulli code array code expands to every element delimited by the first character of codeIFS code lili codesorted code creates elements by splitting on every character of codeIFS code li ulp codeIFS code href https unix stackexchange com questions 184863 what is the meaning of ifs in bash scripting sets things up so that elements are expanded using ema new line em as the delimiter and then later created in way that each line becomes an element Splitting on new line ppDelimiting by new line is important because that how codesort code operates sorting per line Splitting by emonly em new line is not as important but is needed preserve elements that contain spaces or tabs ppThe default value of codeIFS code is ema space em ema tab em followed by ema new line em and would be unfit for our operation ph3Next the codesort lt lt lt array code part h3p code lt lt lt code called href https unix stackexchange com questions 80362 what does mean emhere strings em takes the expansion of code array code as explained above and feeds it into the standard input of codesort code ppWith our example codesort code is fed this following string ppre codea cbf3 code prepSince codesort code emsorts em it produces ppre code3 5a cbf code preh3Next the codesorted code part h3pThe code code part called href http www tldp org LDP abs html commandsub html rel noreferrer emcommand substitution em causes its content codesort lt lt lt array code to run as normal command while taking the resulting emstandard output em as the literal that goes where ever code code was ppIn our example this produces something similar to simply writing ppre codesorted 5a cbf code prep codesorted code then becomes an array that created by splitting this literal on every new line ph3Finally the codeunset IFS code h3pThis resets the value of codeIFS code to the default value and is just good practice ppIt to ensure we don cause trouble with anything that relies on codeIFS code later in our script Otherwise we need to remember that we ve switched things around something that might be impractical for complex scripts think you should explain why that useful Maybe if you re writing script that reads IFS Though the question then is why Or maybe it for modularity within the script In which case IFS OLD IFS wouldn restore the old value if it was previously unset but instead sets it to blank which can do more damage than good think script implicitly has certain level of interdependency so we design and make rules on how our scripts should behave To this end using OLD IFS seems no more beneficial than just sticking with unset IFS,0,NULL,NULL 8443,61552,258156,NULL,NULL,NULL,0,NULL,NULL 8444,64004,120120,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8445,1764165,1293654,NULL,NULL,NULL,0,NULL,NULL 8446,61897,1002962,NULL,NULL,NULL,0,NULL,NULL 8447,87343,497651,NULL,NULL,NULL,0,NULL,NULL 8448,15909,1220164,NULL,NULL,NULL,0,NULL,NULL 8449,257276,918850,Yearling Custodian Informed Custodian Caucus Constituent Nice Question Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 8450,232766,1368660,NULL,NULL,NULL,0,NULL,NULL 8451,140636,1039086,Census Census,NULL,NULL,0,NULL,NULL 8452,65222,208793,Nice Answer Yearling Census Documentation User Yearling Yearling Good Answer,NULL,pYet another take on this Using the example given in the Vim help for codetabpagebuflist code to get list of the buffers that appear in tab or window have the below in my code vimrc code ppre codefunction DeleteInactiveBufs From tabpagebuflist help get list of all buffers in all tabs let tablist for in range tabpagenr call extend tablist tabpagebuflist endfor Below originally inspired by Hara Krishna Dara and Keith Roberts http tech groups yahoo com group vim message 56425 let nWipeouts for in range bufnr if bufexists amp amp getbufvar amp mod amp amp index tablist bufno exists AND isn modified AND isn in the list of buffers open in windows and tabs silent exec bwipeout let nWipeouts nWipeouts endif endfor echomsg nWipeouts buffer wiped out endfunctioncommand Bdi call DeleteInactiveBufs code pre Sorry only just seen your comment The page you ve linked to is now blank From the rb extension guessing this was another CommandT conflict If so really can help as don use it,0,NULL,NULL 8453,285122,798055,Yearling Necromancer Nice Answer Necromancer Necromancer Yearling Caucus Necromancer Student Scholar Good Answer Census Tumbleweed Revival Custodian Caucus Nice Answer Yearling Curious Self-Learner,NULL,pHere an extremely simple CSV parser that handles quoted fields with commas new lines and escaped double quotation marks There no splitting or RegEx It scans the input string characters at time and builds an array ppTest it at href http jsfiddle net vHKYH rel noreferrer http jsfiddle net vHKYH ppre codefunction parseCSV str var arr var quote false true means we re inside quoted field iterate over each character keep track of current row and column of the returned array for var row col lt str length var cc str nc str current character next character arr row arr row create new row if necessary arr row col arr row col create new column start with empty string if necessary If the current character is quotation mark and we re inside quoted field and the next character is also quotation mark add quotation mark to the current column and skip the next character if cc amp amp quote amp amp nc arr row col cc continue If it just one quotation mark begin end quoted field if cc quote quote continue If it comma and we re not in quoted field move on to the next column if cc amp amp quote col continue If it newline CRLF and we re not in quoted field skip the next character and move on to the next row and move to column of that new row if cc amp amp nc amp amp quote row col continue If it newline LF or CR and we re not in quoted field move on to the next row and move to column of that new row if cc amp amp quote row col continue if cc amp amp quote row col continue Otherwise append the current character to the current column arr row col cc return arr code pre here my version of this with headers option you can use to parse rows into objects keyed by the header https gist github com atomkirk eccb66f77b306d0d1fcecb2c605bd22e,0,NULL,NULL 8454,1638941,128237,Yearling Nice Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 8455,210543,1216417,Yearling,NULL,NULL,0,NULL,NULL 8456,885922,1320761,NULL,NULL,NULL,0,NULL,NULL 8457,366745,1214,Yearling Civic Duty Yearling Notable Question,NULL,NULL,0,NULL,NULL 8458,16061,1214,Yearling Civic Duty Yearling Notable Question,NULL,NULL,0,NULL,NULL 8459,177697,14659,Famous Question,NULL,NULL,0,NULL,NULL 8460,110108,847653,Notable Question,NULL,NULL,0,NULL,NULL 8461,51452,899265,NULL,NULL,NULL,0,NULL,NULL 8462,593430,568800,NULL,NULL,NULL,0,NULL,NULL 8463,666143,151913,Popular Question Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 8464,92463,1051550,NULL,NULL,NULL,0,NULL,NULL 8465,428973,128991,Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Socratic Custodian Famous Question Notable Question Autobiographer Yearling Popular Question Notable Question Famous Question Popular Question Good Question Nice Question Necromancer Popular Question Nice Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Nice Answer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 8466,141437,49554,Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 8467,119282,935758,Editor,NULL,NULL,0,NULL,NULL 8468,39807,1324380,NULL,NULL,NULL,0,NULL,NULL 8469,105887,854162,NULL,NULL,NULL,0,NULL,NULL 8470,354793,370622,NULL,NULL,NULL,0,NULL,NULL 8471,223647,215515,Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8472,391176,541193,NULL,NULL,NULL,0,NULL,NULL 8473,902566,409382,Nice Answer Yearling Documentation User Good Answer Scholar,NULL,NULL,0,NULL,NULL 8474,44143,457058,NULL,NULL,NULL,0,NULL,NULL 8475,17052,462512,Yearling,NULL,NULL,0,NULL,NULL 8476,1781050,1283498,Yearling Notable Question Popular Question Critic Popular Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 8477,512307,1010297,Critic Popular Question Notable Question Popular Question Yearling Custodian Popular Question Caucus Investor Popular Question,NULL,Python Doing some work on background with Gtk GUI python gtk python pygobject gtk3 ulli strongpython strong lili stronggtk3 strong lili strongpython gobject strong li ulpI trying to display GUI and do some work in the background As understand it should look something like this ppre code usr bin env python3 coding utf import timefrom threading import Threadfrom gi repository import Gtk Gdkclass Gui def run self self Window Gtk Window self Window set border width self Window set title Некий GUI self Window connect destroy lambda self stop self outBut Gtk Button new from stock Gtk STOCK OK self outBut set size request 150 35 self outBut connect clicked lambda self passfun self Window add self outBut self Window show all def stop self Gtk main quit def passfun self passclass LoopSleep Thread def run self while True print time sleep gui Gui gui run loopSleep LoopSleep loopSleep start Gdk threads init Gdk threads enter Gtk main Gdk threads leave code prepBut it does not work Several cycles occurs when you press the button And the cycle runs after the window is closed But not together ppWhat do wrong No don need any deviation only,0,NULL,NULL 8478,124782,618117,NULL,NULL,NULL,0,NULL,NULL 8479,431,805642,Necromancer Nice Answer Yearling Necromancer,NULL,NULL,1,NULL,Tensorflow AttributeError NoneType object has no attribute TF DeleteStatus python tensorflow keras pTensorflow is giving me this unresolved error ppre codeException ignored in lt bound method BaseSession del of lt tensorflow python client session Session object at 0x7f68d14b6668 gt gt Traceback most recent call last File opt anaconda3 lib python3 site packages tensorflow python client session py line 532 in del AttributeError NoneType object has no attribute TF DeleteStatus code prepThe error has been discussed href https github com tensorflow tensorflow issues 3388 here The problem is it is not showing up consistently However it is showing up in my terminal frequently Has anybody managed to get around it Thanks pYou need to delete the Tensorflow session to avoid that message The simplest probably is to use codewith code statement ppre codefrom keras import backend as Kdef main with get session train classify code pre 8480,181248,963316,Nice Answer Yearling Notable Question Good Answer Nice Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 8481,73106,192249,NULL,NULL,NULL,0,NULL,NULL 8482,169704,391612,NULL,NULL,NULL,0,NULL,NULL 8483,998243,851695,Yearling,NULL,NULL,0,NULL,NULL 8484,150751,475565,Announcer,NULL,NULL,0,NULL,NULL 8485,272522,1369655,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8486,3003658,380697,NULL,NULL,NULL,0,NULL,NULL 8487,41870,300041,Notable Question Yearling Custodian Nice Question Yearling Famous Question Popular Question Necromancer Notable Question Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 8488,2062054,394870,NULL,NULL,NULL,0,NULL,NULL 8489,171879,606355,Caucus Constituent Vox Populi Popular Question Caucus Constituent Popular Question Notable Question Tumbleweed Documentation User Self-Learner Yearling Custodian Census Caucus,NULL,NULL,0,NULL,NULL 8490,68073,810207,NULL,NULL,NULL,0,NULL,NULL 8491,803291,763076,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8492,334122,743667,NULL,NULL,NULL,0,NULL,NULL 8493,380463,1061699,Yearling Yearling Teacher,NULL,NULL,0,NULL,NULL 8494,1527209,1273129,NULL,NULL,NULL,0,NULL,NULL 8495,585620,912644,Popular Question Popular Question Notable Question Yearling Famous Question Nice Question Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8496,10586,1224814,Tumbleweed Nice Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 8497,1015432,841081,NULL,NULL,NULL,0,NULL,NULL 8498,175117,1137049,Supporter Editor,NULL,NULL,0,NULL,NULL 8499,132914,310324,NULL,NULL,NULL,0,NULL,NULL 8500,399117,632239,NULL,NULL,NULL,0,NULL,NULL 8501,129583,1230037,Nice Question Yearling Editor,NULL,NULL,0,NULL,NULL 8502,1590739,1327172,NULL,NULL,NULL,0,NULL,NULL 8503,40471,451557,NULL,NULL,NULL,0,NULL,NULL 8504,36377,217538,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 8505,3673082,419828,Popular Question,NULL,NULL,0,NULL,NULL 8506,477938,419828,Popular Question,NULL,NULL,0,NULL,NULL 8507,136489,250077,Notable Question,NULL,NULL,0,NULL,NULL 8508,44628,1082663,Critic Commentator Caucus Informed Editor Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 8509,744020,871655,NULL,NULL,NULL,0,NULL,NULL 8510,259334,447446,Student Yearling Yearling Scholar Commentator Nice Question Yearling Enlightened Guru Popular Question Caucus Yearling Great Answer Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 8511,168019,699089,NULL,NULL,NULL,0,NULL,NULL 8512,228631,1306167,NULL,NULL,NULL,0,NULL,NULL 8513,199523,599436,Popular Question Yearling Nice Answer Enlightened Famous Question Nice Answer Yearling Nice Answer Great Answer java Nice Answer Enlightened Famous Question Yearling Popular Question Famous Question Nice Question Famous Question Good Answer Good Answer Great Answer Good Question,NULL,NULL,0,NULL,NULL 8514,113178,227251,NULL,NULL,NULL,0,NULL,NULL 8515,333209,688197,Teacher,NULL,NULL,0,NULL,NULL 8516,6643,271697,Nice Question Yearling Popular Question Proofreader Explainer Stellar Question Notable Question Documentation Pioneer Nice Question Popular Question Nice Question Caucus Constituent Notable Question Yearling Stellar Question Popular Question Popular Question Favorite Question Notable Question Documentation User Notable Question Famous Question Popular Question Yearling Famous Question Caucus Famous Question Strunk & White Notable Question,NULL,NULL,0,NULL,NULL 8517,69147,1448988,Tenacious Yearling,NULL,NULL,0,NULL,NULL 8518,141002,727009,NULL,NULL,NULL,0,NULL,NULL 8519,89903,1250147,Necromancer,NULL,NULL,0,NULL,NULL 8520,1125726,718528,NULL,NULL,NULL,0,NULL,NULL 8521,738036,896725,NULL,NULL,NULL,0,NULL,NULL 8522,50153,823399,NULL,NULL,NULL,0,NULL,NULL 8523,779330,351400,Popular Question Popular Question Notable Question Announcer Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8524,50484,26051,Guru Popular Question Good Answer Enlightened Nice Question Guru Good Question Notable Question Guru Nice Question Yearling Nice Answer Guru Good Answer objective-c Popular Question Guru Nice Answer Enlightened Nice Answer Pundit Guru Yearling Documentation User Nice Answer jquery Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 8525,1021316,1528985,Informed Nice Answer Yearling Caucus Tumbleweed Autobiographer Custodian,NULL,NULL,0,NULL,NULL 8526,16046,18623,Yearling Good Question Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 8527,15232,202171,NULL,NULL,NULL,0,NULL,NULL 8528,372336,350062,NULL,NULL,NULL,0,NULL,NULL 8529,306420,1148180,NULL,NULL,NULL,0,NULL,NULL 8530,45983,194944,NULL,NULL,NULL,0,NULL,NULL 8531,656643,418347,NULL,NULL,NULL,0,NULL,NULL 8532,441653,239567,Guru Good Answer php Nice Answer Necromancer Caucus Yearling Guru Nice Answer Enlightened Census Curious Nice Answer Copy Editor Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Yearling Census Caucus Nice Answer Nice Answer Popular Question Great Answer html,NULL,NULL,0,NULL,NULL 8533,466133,112768,NULL,NULL,NULL,0,NULL,NULL 8534,5027829,483743,Famous Question,NULL,NULL,0,NULL,NULL 8535,181505,483743,Famous Question,NULL,NULL,0,NULL,NULL 8536,697029,1441450,NULL,NULL,NULL,0,NULL,NULL 8537,220233,1245023,Good Answer Nice Answer Yearling Custodian Census,NULL,NULL,0,NULL,NULL 8538,230149,743580,Supporter,NULL,NULL,0,NULL,NULL 8539,89967,813126,NULL,NULL,NULL,0,NULL,NULL 8540,910693,1421518,Yearling,NULL,NULL,0,NULL,NULL 8541,650744,610531,Good Answer Revival Yearling Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 8542,322326,1121345,Custodian Custodian Proofreader Caucus Yearling Census Necromancer rest Good Answer Nice Answer Yearling Census Caucus Necromancer Taxonomist,NULL,NULL,0,NULL,NULL 8543,237159,182139,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 8544,1250122,1281741,NULL,NULL,NULL,0,NULL,NULL 8545,101737,926413,NULL,NULL,NULL,0,NULL,NULL 8546,350180,1442659,NULL,NULL,NULL,0,NULL,NULL 8547,535315,1370722,Civic Duty Enthusiast Yearling Convention Nice Answer Yearling Citizen Patrol Organizer Tenacious Announcer Nice Answer Enlightened Necromancer Documentation User Unsung Hero Yearling,NULL,NULL,0,NULL,NULL 8548,114116,570073,Notable Question,NULL,NULL,0,NULL,NULL 8549,591022,1498820,NULL,NULL,NULL,0,NULL,NULL 8550,278122,1104940,NULL,NULL,NULL,0,NULL,NULL 8551,132594,559732,NULL,NULL,NULL,0,NULL,NULL 8552,511247,22654,NULL,NULL,NULL,0,NULL,NULL 8553,111474,424844,NULL,NULL,NULL,0,NULL,NULL 8554,1031599,478830,NULL,NULL,NULL,0,NULL,NULL 8555,16851,52936,NULL,NULL,NULL,0,NULL,NULL 8556,17741,52936,NULL,NULL,NULL,0,NULL,NULL 8557,229448,1264619,NULL,NULL,NULL,0,NULL,NULL 8558,511419,860450,NULL,NULL,NULL,0,NULL,NULL 8559,194371,1022445,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8560,21590,1205358,NULL,NULL,NULL,0,NULL,NULL 8561,90774,229481,Caucus Caucus,NULL,NULL,0,NULL,NULL 8562,276433,510196,Yearling Notable Question,NULL,NULL,0,NULL,NULL 8563,72022,27938,Enlightened Great Answer Popular Question Necromancer Notable Question Yearling Custodian Custodian Announcer Yearling Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 8564,14393,691560,Student Self-Learner,NULL,NULL,0,NULL,NULL 8565,38254,1517299,Notable Question Supporter Famous Question Popular Question,NULL,NULL,0,NULL,NULL 8566,1287199,1161172,Yearling Scholar Editor Popular Question Nice Answer Commentator Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 8567,825937,578903,NULL,NULL,NULL,0,NULL,NULL 8568,52595,523939,Curious Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8569,96254,536508,Necromancer,NULL,NULL,0,NULL,NULL 8570,24212,592468,Notable Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 8571,430330,990528,NULL,NULL,NULL,0,NULL,NULL 8572,323771,451816,Yearling,NULL,NULL,0,NULL,NULL 8573,162433,233160,Yearling Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 8574,46347,130442,Good Question Popular Question Famous Question Great Answer Good Answer Notable Question Popular Question Yearling Nice Question Notable Question Popular Question Favorite Question Good Answer Famous Question Yearling Famous Question Nice Question Notable Question Great Question Notable Question Nice Question Nice Question Great Question Nice Question Great Question Notable Question Famous Question Great Question Yearling Popular Question,NULL,pLets say your HTML looks something like this ppre code lt div class box gt lt stuff gt lt class bet time gt Bet days ago lt gt lt div gt code prepThen with CSS you can make that text appear in the bottom right like so ppre code box position relative bet time position absolute bottom right code prepThe way this works is that absolutely positioned elements are always positioned with respect to the first relatively positioned parent element or the window Because we set the box position to relative code bet time code positions its right edge to the right edge of code box code and its bottom edge to the bottom edge of code box code No this solution positions it in the bottom right of the parent container regardless of page viewport size If your equivalent of box is set to 100 width height that very likely the viewport size not the page,0,NULL,NULL 8575,1521273,981413,NULL,NULL,NULL,0,NULL,NULL 8576,110153,538746,Yearling Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 8577,694334,1123895,NULL,NULL,NULL,0,NULL,NULL 8578,230839,558561,Teacher Supporter Announcer Revival,NULL,NULL,0,NULL,NULL 8579,1240818,117743,Yearling Investor Altruist Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 8580,23331,500959,Nice Question Guru javascript Good Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Nice Answer Famous Question Notable Question Popular Question Nice Question Popular Question Nice Answer Yearling Nice Answer Enlightened Great Question Nice Answer Notable Question Great Answer Popular Question Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 8581,187655,1120026,NULL,NULL,NULL,0,NULL,NULL 8582,339931,1360071,NULL,NULL,NULL,0,NULL,NULL 8583,907286,1296649,Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 8584,1431522,525743,Revival Nice Answer Revival Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Census Custodian Famous Question Good Question Necromancer,NULL,pIf you can find the path to codepip code you can simply use codepython pip code instead ppre codepython pip install awesome package code pre python pip install awesome package user to install as user if you get permission denied error,0,NULL,NULL 8585,198614,359786,Announcer Populist Yearling Civic Duty Notable Question Necromancer Necromancer Necromancer Famous Question Nice Question Yearling Announcer Census Nice Question Yearling Taxonomist,NULL,NULL,0,NULL,NULL 8586,843779,318408,NULL,NULL,NULL,0,NULL,NULL 8587,321104,706427,Popular Question,NULL,NULL,0,NULL,NULL 8588,1027617,160579,NULL,NULL,NULL,0,NULL,NULL 8589,499175,266809,Yearling Nice Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 8590,1068191,357944,Popular Question Excavator,NULL,NULL,0,NULL,NULL 8591,377315,370556,Necromancer Caucus Popular Question Caucus Constituent Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8592,21530,341003,Famous Question Caucus Yearling Necromancer Informed,NULL,NULL,0,NULL,NULL 8593,344393,784038,NULL,NULL,NULL,0,NULL,NULL 8594,2179,9832,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8595,8695792,9832,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8596,178663,240748,NULL,NULL,NULL,0,NULL,NULL 8597,6340769,1457385,Scholar Supporter Commentator Curious Teacher Custodian Informed Citizen Patrol Excavator Critic Organizer Quorum Yearling Yearling Yearling Explainer Yearling Caucus Promoter Tenacious Constituent Enthusiast Unsung Hero Custodian Custodian Custodian Proofreader Suffrage ios Popular Question Civic Duty Strunk & White Announcer swift Announcer Vox Populi Electorate Fanatic Custodian swift3 Cleanup Reviewer Copy Editor Announcer Announcer Announcer Yearling Nice Answer Enlightened xcode Revival Announcer Announcer Caucus Constituent Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Popular Question Announcer Popular Question Nice Answer Enlightened Announcer Documentation User Announcer Announcer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Custodian Refiner Guru Custodian Announcer swift Good Answer Announcer Good Answer Announcer Announcer Nice Answer ios Peer Pressure Caucus Nice Answer grand-central-dispatch Announcer Announcer Nice Answer core-data Nice Answer Enlightened Announcer Yearling Good Answer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Notable Question Great Answer Nice Answer Enlightened Notable Question swift3 Nice Answer Enlightened Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 8598,901378,1457385,Scholar Supporter Commentator Curious Teacher Custodian Informed Citizen Patrol Excavator Critic Organizer Quorum Yearling Yearling Yearling Explainer Yearling Caucus Promoter Tenacious Constituent Enthusiast Unsung Hero Custodian Custodian Custodian Proofreader Suffrage ios Popular Question Civic Duty Strunk & White Announcer swift Announcer Vox Populi Electorate Fanatic Custodian swift3 Cleanup Reviewer Copy Editor Announcer Announcer Announcer Yearling Nice Answer Enlightened xcode Revival Announcer Announcer Caucus Constituent Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Popular Question Announcer Popular Question Nice Answer Enlightened Announcer Documentation User Announcer Announcer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Custodian Refiner Guru Custodian Announcer swift Good Answer Announcer Good Answer Announcer Announcer Nice Answer ios Peer Pressure Caucus Nice Answer grand-central-dispatch Announcer Announcer Nice Answer core-data Nice Answer Enlightened Announcer Yearling Good Answer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Notable Question Great Answer Nice Answer Enlightened Notable Question swift3 Nice Answer Enlightened Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 8599,132480,400773,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8600,1931112,526312,Popular Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 8601,127025,799665,NULL,NULL,NULL,0,NULL,NULL 8602,197714,919240,Commentator Famous Question,NULL,NULL,0,NULL,NULL 8603,438207,998940,Nice Answer,NULL,NULL,0,NULL,NULL 8604,23496,896026,Nice Answer Yearling Critic Good Answer Yearling,NULL,NULL,0,NULL,NULL 8605,308222,1243574,Popular Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 8606,477660,640798,NULL,NULL,NULL,0,NULL,NULL 8607,373263,284401,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8608,1059275,1265770,Critic Caucus Autobiographer Commentator,NULL,NULL,0,NULL,NULL 8609,433303,328276,Yearling,NULL,NULL,0,NULL,NULL 8610,184386,1110510,Promoter,NULL,NULL,0,NULL,NULL 8611,454182,1172934,NULL,NULL,NULL,0,NULL,NULL 8612,2635603,391114,NULL,NULL,NULL,0,NULL,NULL 8613,400540,391114,NULL,NULL,NULL,0,NULL,NULL 8614,159210,89847,Good Answer Good Answer Nice Answer Yearling Guru winapi Informed Nice Answer Yearling Guru Nice Answer Guru Yearling Popular Question Great Answer Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 8615,35339,987479,NULL,NULL,NULL,0,NULL,NULL 8616,166948,1118919,Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Great Question Nice Question Good Question Notable Question Nice Question Yearling Nice Question Popular Question Necromancer Good Question Popular Question Popular Question Popular Question Nice Question Notable Question Caucus Constituent Popular Question Excavator android Notable Question Popular Question Popular Question Good Question Custodian Popular Question Yearling Nice Question Famous Question Popular Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 8617,162380,472866,Famous Question Nice Question Yearling Nice Question Notable Question Famous Question Good Question Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 8618,162351,440333,Necromancer Commentator Student Good Answer Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 8619,316916,1472460,NULL,NULL,NULL,0,NULL,NULL 8620,663,350187,Editor,NULL,NULL,0,NULL,NULL 8621,490058,1170432,NULL,NULL,NULL,0,NULL,NULL 8622,434791,125978,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8623,785474,1171453,NULL,NULL,NULL,0,NULL,NULL 8624,36883,20487,Famous Question Nice Answer Enlightened Yearling Guru Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 8625,1542543,364228,Yearling Necromancer Custodian Yearling Student Revival Nice Answer Necromancer Necromancer Yearling Nice Answer Good Answer Revival Revival,NULL,pTested and designed for any combination of SDK and OS ph2Swift h2p strongAdded iPad types iPad and iPad mini are non retina iPads While iPad Mini amp above iPad iPad Air Air Air and iPad Pro have same logical resolution of 1024 iPad Pro has maxLength of 1366 strong href http iosres com rel noreferrer Reference ppre codeimport UIKitpublic enum DisplayType case unknown case iphone4 case iphone5 case iphone6 case iphone6plus case iPadNonRetina case iPad case iPadProBig static let iphone7 iphone6 static let iphone7plus iphone6plus public final class Display class var width CGFloat return UIScreen main bounds size width class var height CGFloat return UIScreen main bounds size height class var maxLength CGFloat return max width height class var minLength CGFloat return min width height class var zoomed Bool return UIScreen main nativeScale gt UIScreen main scale class var retina Bool return UIScreen main scale gt class var phone Bool return UIDevice current userInterfaceIdiom phone class var pad Bool return UIDevice current userInterfaceIdiom pad class var carplay Bool return UIDevice current userInterfaceIdiom carPlay class var tv Bool return UIDevice current userInterfaceIdiom tv class var typeIsLike DisplayType if phone amp amp maxLength lt 568 return iphone4 else if phone amp amp maxLength 568 return iphone5 else if phone amp amp maxLength 667 return iphone6 else if phone amp amp maxLength 736 return iphone6plus else if pad amp amp retina return iPadNonRetina else if pad amp amp retina amp amp maxLength 1024 return iPad else if pad amp amp maxLength 1366 return iPadProBig return unknown code prepSee it in actiona href https gist github com hfossli bc93d924649de881ee2882457f14e346 rel noreferrer https gist github com hfossli bc93d924649de881ee2882457f14e346 ppNote If iPhone is in zoomed mode the UI is zoomed up version of iPhone These functions is not determining device type but display mode thus iPhone is the desired result in this example ph2Objective h2pre code define IS IPAD UI USER INTERFACE IDIOM UIUserInterfaceIdiomPad define IS IPHONE UI USER INTERFACE IDIOM UIUserInterfaceIdiomPhone define IS RETINA UIScreen mainScreen scale gt define SCREEN WIDTH UIScreen mainScreen bounds size width define SCREEN HEIGHT UIScreen mainScreen bounds size height define SCREEN MAX LENGTH MAX SCREEN WIDTH SCREEN HEIGHT define SCREEN MIN LENGTH MIN SCREEN WIDTH SCREEN HEIGHT define IS ZOOMED IS IPHONE amp amp SCREEN MAX LENGTH 736 define IS IPHONE OR LESS IS IPHONE amp amp SCREEN MAX LENGTH lt 568 define IS IPHONE IS IPHONE amp amp SCREEN MAX LENGTH 568 define IS IPHONE IS IPHONE amp amp SCREEN MAX LENGTH 667 define IS IPHONE 6P IS IPHONE amp amp SCREEN MAX LENGTH 736 code prepUsage href http pastie org 9687735 rel noreferrer http pastie org 9687735 ppNote If iPhone is in zoomed mode the UI is zoomed up version of iPhone These functions is not determining device type but display mode thus iPhone is the desired result in this example thanks for explain iOS rotation issues One more macros for iPad Pro define IS IPAD PRO IS IPAD SCREEN MAX LENGTH 1366,0,NULL,NULL 8626,338347,418838,NULL,NULL,NULL,0,NULL,NULL 8627,194104,431435,NULL,NULL,NULL,0,NULL,NULL 8628,112915,373596,Notable Question Yearling Famous Question Good Question Yearling Famous Question Revival Yearling,NULL,NULL,0,NULL,NULL 8629,236627,1319098,NULL,NULL,NULL,0,NULL,NULL 8630,690343,1058513,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 8631,9144,1060314,Announcer Yearling Announcer Revival Necromancer Revival Necromancer Yearling Popular Question Popular Question Necromancer Popular Question Announcer Custodian Yearling Nice Answer Popular Question Inquisitive Announcer Yearling Enthusiast Popular Question Notable Question Self-Learner Yearling Announcer Critic Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Popular Question Revival Yearling,NULL,Seeking Typescript Type Definition new callable clarification typescript pMy issue arises from attempting to add TypeScript type definition code ts code to 3rd party library Keep in mind do not control this library am simply trying to consume it and appease the tsc compiler ppReading the guidelines here re writing coded ts code files pp href https typescript codeplex com wikipage title Writing 20Definition 20 28 ts 29 20Files rel nofollow https typescript codeplex com wikipage title Writing 20Definition 20 28 ts 29 20Files ppI am looking at this specific example strongNew callable methods strong ppHere the documentation shows the following pattern ppre codeinterface Widget sprock void interface WidgetFactory new name string Widget width number height number Widget declare var widget WidgetFactory code prepBuilding on this have created the following for my needs ppre codedeclare module react localization interface LocalizedStringsMethods setLanguage language string void getLanguage string getInterfaceLanguage string formatString str string values any string getAvailableLanguages string interface LocalizedStringsFactory new props any LocalizedStringsMethods var LocalizedStrings LocalizedStringsFactory export default LocalizedStrings code prepThe notable exception here is the documentation version does not use codedeclare module code Aside from that to my eye these SHOULD be the same an yield similar result am clearly missing something get the following error instead pp strongerror TS2351 Cannot use new with an expression whose type lacks call or construct signature strong ppI can change my definition to this ppre codedeclare module react localization var LocalizedStrings any export LocalizedStrings code prepThe error is now gone but lose all the wonderful type information ppI am at loss What exactly am doing wrong here ppOk to add to the mystery tried doing codeexport code in the fuller type example instead of codeexport default code ppre codedeclare module react localization interface LocalizedStringsMethods setLanguage language string void getLanguage string getInterfaceLanguage string formatString str string values any string getAvailableLanguages string interface LocalizedStringsFactory new props any LocalizedStringsMethods var LocalizedStrings LocalizedStringsFactory export LocalizedStrings lt HERE instead of export default code prepCan someone explain to me why this works but codeexport default code ends up returning codeundefined code Also have to import this like pp codeimport as LocalizedStrings from react localization code prefer to do the import as codeimport LocalizedStrings from react localization code At this point ll live with the former just like to understand why additionally it looks like it relevant that this 3rd party lib is compiled from babel https github com Microsoft TypeScript issues 5565 When Babel transpiles module whose only export is an export default it injects module exports exports default into the generated code causing the exported object to become the function itself instead of module object that has the function as the default property,1,Seeking Typescript Type Definition new callable clarification typescript pMy issue arises from attempting to add TypeScript type definition code ts code to 3rd party library Keep in mind do not control this library am simply trying to consume it and appease the tsc compiler ppReading the guidelines here re writing coded ts code files pp href https typescript codeplex com wikipage title Writing 20Definition 20 28 ts 29 20Files rel nofollow https typescript codeplex com wikipage title Writing 20Definition 20 28 ts 29 20Files ppI am looking at this specific example strongNew callable methods strong ppHere the documentation shows the following pattern ppre codeinterface Widget sprock void interface WidgetFactory new name string Widget width number height number Widget declare var widget WidgetFactory code prepBuilding on this have created the following for my needs ppre codedeclare module react localization interface LocalizedStringsMethods setLanguage language string void getLanguage string getInterfaceLanguage string formatString str string values any string getAvailableLanguages string interface LocalizedStringsFactory new props any LocalizedStringsMethods var LocalizedStrings LocalizedStringsFactory export default LocalizedStrings code prepThe notable exception here is the documentation version does not use codedeclare module code Aside from that to my eye these SHOULD be the same an yield similar result am clearly missing something get the following error instead pp strongerror TS2351 Cannot use new with an expression whose type lacks call or construct signature strong ppI can change my definition to this ppre codedeclare module react localization var LocalizedStrings any export LocalizedStrings code prepThe error is now gone but lose all the wonderful type information ppI am at loss What exactly am doing wrong here ppOk to add to the mystery tried doing codeexport code in the fuller type example instead of codeexport default code ppre codedeclare module react localization interface LocalizedStringsMethods setLanguage language string void getLanguage string getInterfaceLanguage string formatString str string values any string getAvailableLanguages string interface LocalizedStringsFactory new props any LocalizedStringsMethods var LocalizedStrings LocalizedStringsFactory export LocalizedStrings lt HERE instead of export default code prepCan someone explain to me why this works but codeexport default code ends up returning codeundefined code Also have to import this like pp codeimport as LocalizedStrings from react localization code prefer to do the import as codeimport LocalizedStrings from react localization code At this point ll live with the former just like to understand why,NULL 8632,82008,330261,NULL,NULL,NULL,0,NULL,NULL 8633,707542,995045,Scholar,NULL,NULL,0,NULL,NULL 8634,144199,260924,NULL,NULL,NULL,0,NULL,NULL 8635,140653,374383,Notable Question Yearling Famous Question Caucus Nice Question Promoter Benefactor Popular Question Popular Question Census Caucus Announcer,NULL,NULL,0,NULL,NULL 8636,634580,765192,Yearling Custodian Nice Answer Yearling Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 8637,1074096,504096,NULL,NULL,NULL,0,NULL,NULL 8638,91139,1532783,Informed,NULL,NULL,0,NULL,NULL 8639,3172280,1532783,Informed,NULL,NULL,0,NULL,NULL 8640,112335,345270,NULL,NULL,NULL,0,NULL,NULL 8641,492292,251013,NULL,NULL,NULL,0,NULL,NULL 8642,63686,736714,Notable Question Nice Question Popular Question Popular Question Notable Question Revival Notable Question Notable Question Guru Yearling Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Good Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Good Question Yearling Popular Question Popular Question Nice Question Popular Question Nice Answer Popular Question Famous Question Good Question Nice Answer Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Favorite Question Good Question Popular Question Notable Question Nice Answer Notable Question,NULL,iptables not working on macvlan traffic in container docker iptables pI have host with one interface codeeth0 code IP code10 10 10 24 code start up docker add container no network then create macvlan device on codeeth0 code give it IP code10 10 20 24 code and put it in the container ppBoth the host and the container now have full network access ppI then create an iptables rule on the host to drop all traffic to or from the container IP code10 10 20 code The rules do not work and traffic gets through ppOf course if do it from within the container either codeip netns exec PID iptables code or by giving the container codeNET ADMIN code capabilities it works ppShould the iptables rules of the underlying host not filter the traffic Not directly will write an answer in here,1,iptables not working on macvlan traffic in container docker iptables pI have host with one interface codeeth0 code IP code10 10 10 24 code start up docker add container no network then create macvlan device on codeeth0 code give it IP code10 10 20 24 code and put it in the container ppBoth the host and the container now have full network access ppI then create an iptables rule on the host to drop all traffic to or from the container IP code10 10 20 code The rules do not work and traffic gets through ppOf course if do it from within the container either codeip netns exec PID iptables code or by giving the container codeNET ADMIN code capabilities it works ppShould the iptables rules of the underlying host not filter the traffic,NULL 8643,17913,690160,NULL,NULL,NULL,0,NULL,NULL 8644,11346,155720,Nice Answer Nice Answer Yearling Popular Question Notable Question Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 8645,2061447,1248183,NULL,NULL,NULL,0,NULL,NULL 8646,8038347,636942,Yearling Popular Question Revival Yearling Notable Question Documentation User Announcer Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 8647,770326,433034,NULL,NULL,NULL,0,NULL,NULL 8648,108153,518085,Good Answer Yearling Necromancer Necromancer Necromancer Revival Yearling Nice Answer Nice Answer Nice Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 8649,890485,452589,NULL,NULL,NULL,0,NULL,NULL 8650,945961,612624,Notable Question Nice Question Curious Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 8651,181479,306686,Announcer,NULL,NULL,0,NULL,NULL 8652,597866,1313930,NULL,NULL,NULL,0,NULL,NULL 8653,2102106,720939,Supporter Investor,NULL,NULL,0,NULL,NULL 8654,332217,319885,Curious Commentator,NULL,NULL,0,NULL,NULL 8655,9225,1499561,NULL,NULL,NULL,0,NULL,NULL 8656,713046,1232518,NULL,NULL,NULL,0,NULL,NULL 8657,806770,1543586,NULL,NULL,NULL,0,NULL,NULL 8658,241867,634007,NULL,NULL,NULL,0,NULL,NULL 8659,1148244,978981,NULL,NULL,NULL,0,NULL,NULL 8660,185422,382609,NULL,NULL,NULL,0,NULL,NULL 8661,1511307,243011,NULL,NULL,NULL,0,NULL,NULL 8662,818434,1234513,Popular Question Notable Question Popular Question Commentator Supporter,NULL,NULL,0,NULL,NULL 8663,13740,1484467,NULL,NULL,NULL,0,NULL,NULL 8664,3646,152873,Excavator Good Question Notable Question Notable Question Good Answer Popular Question Good Question Yearling Notable Question python Notable Question Famous Question Nice Answer Notable Question Custodian Notable Question Nice Answer Yearling Guru Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 8665,1146292,1049678,Popular Question Popular Question Good Answer Good Answer Notable Question Yearling Good Answer Yearling Nice Answer Enlightened Populist Guru Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8666,5331643,824271,NULL,NULL,NULL,0,NULL,NULL 8667,525480,1442554,Popular Question Notable Question Nice Question Notable Question Supporter Curious Commentator,NULL,NULL,0,NULL,NULL 8668,109541,1004326,NULL,NULL,NULL,0,NULL,NULL 8669,22378,1352190,Revival Yearling Guru Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 8670,42460,573,Announcer Informed Good Answer Nice Question Populist Good Answer Notable Question Favorite Question Popular Question Yearling Announcer Nice Answer Guru Caucus Constituent Great Question Favorite Question Good Answer Great Answer Nice Answer Nice Answer Enlightened Yearling Good Question Announcer Nice Answer Nice Question Caucus Constituent Great Answer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 8671,215372,1137803,Announcer Critic Yearling Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8672,6513152,1557994,NULL,NULL,NULL,0,NULL,NULL 8673,559955,191534,NULL,NULL,NULL,0,NULL,NULL 8674,611389,481420,Curious Informed Autobiographer Necromancer Critic Yearling Nice Answer Popular Question Yearling Caucus Popular Question Famous Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 8675,127385,808020,NULL,NULL,NULL,0,NULL,NULL 8676,111624,1531136,Notable Question Yearling Popular Question Popular Question Yearling Caucus Announcer Yearling Nice Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8677,76456,1384305,NULL,NULL,NULL,0,NULL,NULL 8678,309919,1205724,Yearling,NULL,NULL,0,NULL,NULL 8679,132363,586257,NULL,NULL,NULL,0,NULL,NULL 8680,354852,446893,NULL,NULL,NULL,0,NULL,NULL 8681,418004,1201057,Popular Question,NULL,NULL,0,NULL,NULL 8682,407358,996851,NULL,NULL,NULL,0,NULL,NULL 8683,297869,1202873,Revival,NULL,NULL,0,NULL,NULL 8684,1565860,1171442,NULL,NULL,NULL,0,NULL,NULL 8685,330447,548360,Revival Nice Question Popular Question Popular Question Nice Answer Good Answer Notable Question Notable Question Yearling Good Answer Announcer Popular Question Good Question Popular Question Yearling Revival Nice Question Popular Question,NULL,pAfter hours of digging inside the Android Source code found the problem ppThe error was thrown by the codeWifiP2pService code class The reason was that the device was trying to connect to was not on the internal nearby peers list ppBut why the device is not on the peers list ppAfter more digging saw that when scan is finished the peers list is cleared ppSo what failed my connection is the codestopScan code method that invoked just before initiating the connection After removing this line the connection established successfully pp strongWhy did stopped the scan strong brI came to WiFi Direct immediately after finished implementing the feature in Bluetooth The documentation on Bluetooth specifically says to stop any ongoing scan before connecting to device in order to save bandwidth and speed up the process So thought to do the same on WiFi Direct strongDon do that strong myself never tried doing that but if it works for you then it is probably OK Destroying connection just because scan is stopped would be bug,0,NULL,NULL 8686,5918967,548360,Revival Nice Question Popular Question Popular Question Nice Answer Good Answer Notable Question Notable Question Yearling Good Answer Announcer Popular Question Good Question Popular Question Yearling Revival Nice Question Popular Question,NULL,pAfter hours of digging inside the Android Source code found the problem ppThe error was thrown by the codeWifiP2pService code class The reason was that the device was trying to connect to was not on the internal nearby peers list ppBut why the device is not on the peers list ppAfter more digging saw that when scan is finished the peers list is cleared ppSo what failed my connection is the codestopScan code method that invoked just before initiating the connection After removing this line the connection established successfully pp strongWhy did stopped the scan strong brI came to WiFi Direct immediately after finished implementing the feature in Bluetooth The documentation on Bluetooth specifically says to stop any ongoing scan before connecting to device in order to save bandwidth and speed up the process So thought to do the same on WiFi Direct strongDon do that strong myself never tried doing that but if it works for you then it is probably OK Destroying connection just because scan is stopped would be bug,0,NULL,NULL 8687,192652,1100873,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8688,209601,1105491,Necromancer,NULL,NULL,0,NULL,NULL 8689,901777,1261757,NULL,NULL,NULL,0,NULL,NULL 8690,889566,322606,Teacher,NULL,NULL,0,NULL,NULL 8691,103305,767891,NULL,NULL,NULL,0,NULL,NULL 8692,558682,852299,Teacher Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8693,43862,1150168,NULL,NULL,NULL,0,NULL,NULL 8694,356227,88558,Enlightened Guru Notable Question Yearling Nice Answer Popular Question Custodian Nice Answer Enlightened Nice Answer Enlightened Nice Answer sql-server-2008 Nice Answer asp.net Talkative Caucus Constituent Necromancer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Notable Question Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Notable Question Guru Nice Answer Enlightened Nice Answer Enlightened Yearling sql-server Nice Answer tsql Nice Answer Enlightened Nice Answer Nice Answer Benefactor Nice Answer Populist,NULL,pA little bit late but the following approach might be good compromise without reverting to unsafe code Basically it initializes the beginning of the array using conventional loop and then reverts to codeBuffer BlockCopy code which should be as fast as you can get using managed call ppre codepublic static void MemSet byte array byte value if array null throw new ArgumentNullException array const int blockSize 4096 bigger may be better to certain extent int index int length Math Min blockSize array Length while index lt length array index value length array Length while index lt length Buffer BlockCopy array array index Math Min blockSize length index index blockSize code pre What wrong with my answer Any suggestion for improvement,0,NULL,NULL 8695,354472,101952,Famous Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 8696,661321,1025022,NULL,NULL,NULL,0,NULL,NULL 8697,203675,1265012,Scholar Supporter Editor,NULL,NULL,0,NULL,NULL 8698,282609,331473,Good Answer Popular Question Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Good Answer python Caucus Good Question Census Nice Answer Enlightened Nice Answer Enlightened Custodian Nice Answer Enlightened Yearling Guru Guru Caucus Nice Answer Enlightened Good Answer Documentation User Guru Census Caucus Yearling Guru Good Answer Nice Answer,NULL,pYou can really define this as the default value since the default value is evaluated when the method is defined which is before any instances exist An easy work around is to do something like this ppre codeclass def init self format self format format def process self formatting None formatting formatting if formatting is not None else self format print formatting code prep codeself format code will only be used if codeformatting code is codeNone code phrpTo demonstrate the point of how default values work see this example ppre codedef mk default print mk default has been called def myfun foo mk default print myfun has been called print about to test functions myfun testing myfun testing again code prepAnd the output here ppre codemk default has been called about to test functionsmyfun has been called myfun has been called code prepNotice how codemk default code was called only once and that happened before the function was ever called good point ve updated my answer to account for this thanks,0,NULL,NULL 8699,24474,777406,NULL,NULL,NULL,0,NULL,NULL 8700,227157,1150074,NULL,NULL,NULL,0,NULL,NULL 8701,449688,614481,NULL,NULL,NULL,0,NULL,NULL 8702,821097,1560153,Informed Teacher Editor Supporter Yearling Critic Yearling Explainer Custodian Citizen Patrol Custodian Commentator Yearling Custodian Yearling Yearling Organizer Enthusiast Caucus Constituent Fanatic Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 8703,1422713,1560153,Informed Teacher Editor Supporter Yearling Critic Yearling Explainer Custodian Citizen Patrol Custodian Commentator Yearling Custodian Yearling Yearling Organizer Enthusiast Caucus Constituent Fanatic Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 8704,90182,674016,NULL,NULL,NULL,0,NULL,NULL 8705,4930,616095,Good Question Yearling Famous Question Nice Answer Enlightened Notable Question Yearling Popular Question Famous Question Popular Question Notable Question Caucus Notable Question Yearling Famous Question Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 8706,27527,174620,Popular Question Popular Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 8707,6827435,174620,Popular Question Popular Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 8708,507588,912569,Popular Question,NULL,NULL,0,NULL,NULL 8709,7711399,591422,NULL,NULL,NULL,0,NULL,NULL 8710,98630,1158596,NULL,NULL,NULL,0,NULL,NULL 8711,12437,2726,Populist Yearling Great Answer Yearling Good Answer Revival Great Answer Yearling,NULL,NULL,0,NULL,NULL 8712,538475,460320,Yearling Good Answer Yearling Yearling Yearling Great Answer Popular Question Yearling Custodian Enthusiast Custodian Custodian Commentator Informed Caucus Organizer Good Answer Yearling,NULL,NULL,0,NULL,NULL 8713,2690457,191666,NULL,NULL,NULL,0,NULL,NULL 8714,213409,906283,NULL,NULL,NULL,0,NULL,NULL 8715,146953,206001,Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 8716,133640,423167,NULL,NULL,NULL,0,NULL,NULL 8717,802099,977132,NULL,NULL,NULL,0,NULL,NULL 8718,245582,931425,NULL,NULL,NULL,0,NULL,NULL 8719,2077394,1179041,Supporter Notable Question,NULL,NULL,0,NULL,NULL 8720,39499,1179041,Supporter Notable Question,NULL,NULL,0,NULL,NULL 8721,473376,802142,NULL,NULL,NULL,0,NULL,NULL 8722,14858,498945,NULL,NULL,NULL,0,NULL,NULL 8723,52972,447288,Yearling Revival Caucus Constituent Good Answer Notable Question Announcer Popular Question Yearling Guru,NULL,NULL,1,NULL,How to handle dependency on scipy in setup py python python scipy setuptools pI am trying to create codesetup py code for project that depends on SciPy The following codesetup py code reproduces this ppre codesetup name test version install requires scipy code prepWhen installing this using codepython setup py develop code it generates the following error ppre codeImportError No module named numpy distutils core code prepHowever when install scipy using codepip code it installed it from wheel and it works just fine ppSo my questions is how can create codesetup py code that depends on SciPy Why won codesetuptools code install dependencies from wheels Would this work better when using Python we plan to migrate anyway so if it works there ll just wait until the migration is complete ppI am using Python on Mac OS 10 10 with codesetuptools code and codepip code pUltimately this worked for me ppre code usr bin env pythonfrom setuptools import setup Extensionfrom setuptools command build ext import build ext as build ext This cludge is necessary for horrible reasons see comment below and http stackoverflow com 19919905 447288 class build ext build ext def finalize options self build ext finalize options self Prevent numpy from thinking it is still in its setup process builtins NUMPY SETUP False import numpy self include dirs append numpy get include setup Amazingly pip install scipy fails if numpy is not already installed Since we cannot control the order that dependencies are installed via install requires use setup requires to ensure that numpy is available before scipy is installed Unfortunately this is still not sufficient numpy has guard to check when it is in its setup process that we must circumvent with the cmdclass setup requires numpy cmdclass build ext build ext install requires numpy scipy code pre 8724,1236569,1410943,Yearling,NULL,NULL,0,NULL,NULL 8725,282821,1148594,Notable Question,NULL,NULL,0,NULL,NULL 8726,203976,263686,Revival,NULL,NULL,0,NULL,NULL 8727,1167930,1399541,NULL,NULL,NULL,0,NULL,NULL 8728,196578,386938,Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8729,235427,1141866,NULL,NULL,NULL,0,NULL,NULL 8730,865575,443362,NULL,NULL,NULL,0,NULL,NULL 8731,392054,1149919,Yearling Explainer Necromancer Popular Question Good Answer Necromancer Caucus Nice Answer Yearling Caucus Nice Answer Popular Question Nice Answer Census Yearling Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 8732,55125,577202,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8733,42883,1036954,Critic,NULL,NULL,0,NULL,NULL 8734,299493,1140088,NULL,NULL,NULL,0,NULL,NULL 8735,729957,584260,Yearling Curious Popular Question Famous Question Yearling Yearling Self-Learner,NULL,NULL,0,NULL,NULL 8736,1387019,654963,NULL,NULL,NULL,0,NULL,NULL 8737,1189296,390189,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8738,306592,746988,NULL,NULL,NULL,0,NULL,NULL 8739,37814,453594,Guru Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Notable Question Good Answer Yearling Good Answer Nice Answer Enlightened Notable Question Necromancer Famous Question Nice Answer Guru Popular Question Guru Nice Answer Enlightened Caucus Necromancer Good Answer Guru Good Answer Nice Answer Census Announcer Nice Answer Enlightened Great Answer Popular Question Revival Nice Answer Enlightened Yearling Good Answer Great Answer Notable Question Nice Answer Enlightened Good Question Nice Answer Populist Notable Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Caucus Guru Famous Question Yearling Popular Question Guru Nice Answer Good Answer Notable Question Necromancer Guru,NULL,NULL,0,NULL,NULL 8740,138779,494671,neo4j Yearling Caucus Nice Answer Nice Answer Enlightened Yearling Mortarboard Revival Yearling,NULL,NULL,0,NULL,NULL 8741,85847,717950,Necromancer Yearling Great Answer Nice Answer Great Answer Yearling Yearling,NULL,pAs href https stackoverflow com users 661591 substack corrected me in href http webchat freenode net channels node js rel noreferrer node the new href http nodejs org api stream html rel noreferrer streams API in Node v10 makes this easier ppre codeconst Readable require stream Readable const new Readable read gt redundant see update belows push your text here push null code prep… after which you can freely href http nodejs org api stream html stream readable pipe destination options rel noreferrer pipe it or otherwise pass it to your intended consumer ppIt not as clean as the href https github com substack resumer rel noreferrer resumer one liner but it does avoid the extra dependency pp emUpdate em in v0 10 26 through v9 so far call to codepush code directly from the REPL prompt will crash with codenot implemented code exception if you didn set code read code It won crash inside function or script If inconsistency makes you nervous include the codenoop code Looks like you shouldn’t do it this way Quoting the docs https nodejs org download nightly v10 nightly20180405b29c36b807 docs api stream html stream readable push chunk encoding “The readable push method is intended be called only by Readable Implementers and only from within the readable read method,0,NULL,NULL 8742,1037889,1505645,NULL,NULL,NULL,0,NULL,NULL 8743,193642,432392,Teacher Self-Learner,NULL,NULL,0,NULL,NULL 8744,691844,1486107,NULL,NULL,NULL,0,NULL,NULL 8745,1265377,753416,Popular Question Notable Question Commentator Curious,NULL,NULL,0,NULL,NULL 8746,74720,1225312,Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 8747,64577,1120228,Supporter Notable Question,NULL,NULL,0,NULL,NULL 8748,62900,1178230,Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 8749,73317,1093865,Popular Question Custodian Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 8750,103886,582128,Good Answer Revival,NULL,NULL,0,NULL,NULL 8751,189270,362808,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8752,1933611,1235723,NULL,NULL,NULL,0,NULL,NULL 8753,168893,1235723,NULL,NULL,NULL,0,NULL,NULL 8754,179957,312188,Nice Answer Enlightened Yearling Notable Question Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8755,601875,213348,Nice Question Notable Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 8756,378,187068,NULL,NULL,NULL,0,NULL,NULL 8757,1348266,1225905,Editor Curious,NULL,NULL,0,NULL,NULL 8758,59589,588779,Notable Question Notable Question Yearling Nice Question Yearling Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 8759,602623,378048,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 8760,367078,705372,NULL,NULL,NULL,0,NULL,NULL 8761,97221,19872,Announcer,NULL,NULL,0,NULL,NULL 8762,116817,476757,NULL,NULL,NULL,0,NULL,NULL 8763,584202,255461,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8764,1121287,424356,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8765,388251,1057069,NULL,NULL,NULL,0,NULL,NULL 8766,157048,178110,ruby-on-rails Popular Question Favorite Question Nice Answer Famous Question Good Answer Nice Answer Enlightened Popular Question Favorite Question Yearling Famous Question Popular Question Nice Question Notable Question Famous Question Yearling Popular Question Famous Question Famous Question Necromancer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 8767,22254,547452,Yearling Yearling Good Answer,NULL,pThe Go linker href http golang org cmd link rel noreferrer go tool link has an option to set the value of an uninitialised string variable ppre code importpath name value Set the value of the string variable in importpath named name to value Note that before Go this option took two separate arguments Now it takes one argument split on the first sign code prepAs part of your build process you could set version string variable using this You can pass this through the codego code tool using code ldflags code For example given the following source file ppre codepackage mainimport fmt var xyz stringfunc main fmt Println xyz code prepThen ppre code go run ldflags main xyz abc main goabc code prepIn order to set codemain minversion code to the build date and time when building ppre codego build ldflags main minversion date service go code prepIf you compile without initializing codemain minversion code in this way it will contain the empty string ldflags only applies when you create the final binary You would have to supply that each time you create binary using the library pThe Go linker href http golang org cmd link rel noreferrer go tool link has an option to set the value of an uninitialised string variable ppre code importpath name value Set the value of the string variable in importpath named name to value Note that before Go this option took two separate arguments Now it takes one argument split on the first sign code prepAs part of your build process you could set version string variable using this You can pass this through the codego code tool using code ldflags code For example given the following source file ppre codepackage mainimport fmt var xyz stringfunc main fmt Println xyz code prepThen ppre code go run ldflags main xyz abc main goabc code prepIn order to set codemain minversion code to the build date and time when building ppre codego build ldflags main minversion date service go code prepIf you compile without initializing codemain minversion code in this way it will contain the empty string as mentioned in the help output it the package import path https golang org doc code html ImportPaths pThe Go linker href http golang org cmd link rel noreferrer go tool link has an option to set the value of an uninitialised string variable ppre code importpath name value Set the value of the string variable in importpath named name to value Note that before Go this option took two separate arguments Now it takes one argument split on the first sign code prepAs part of your build process you could set version string variable using this You can pass this through the codego code tool using code ldflags code For example given the following source file ppre codepackage mainimport fmt var xyz stringfunc main fmt Println xyz code prepThen ppre code go run ldflags main xyz abc main goabc code prepIn order to set codemain minversion code to the build date and time when building ppre codego build ldflags main minversion date service go code prepIf you compile without initializing codemain minversion code in this way it will contain the empty string not directly you would instead have to initialise the struct variable from package level string vars,0,NULL,NULL 8768,904277,708228,NULL,NULL,NULL,0,NULL,NULL 8769,564284,816232,NULL,NULL,NULL,0,NULL,NULL 8770,931838,466140,NULL,NULL,NULL,0,NULL,NULL 8771,1500047,220563,NULL,NULL,NULL,0,NULL,NULL 8772,220688,868993,Revival,NULL,NULL,0,NULL,NULL 8773,79778,522024,Yearling Famous Question Popular Question Caucus Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 8774,912677,786875,NULL,NULL,NULL,0,NULL,NULL 8775,133548,601804,NULL,NULL,NULL,0,NULL,NULL 8776,227127,360735,NULL,NULL,NULL,0,NULL,NULL 8777,416543,1071340,Teacher,NULL,NULL,0,NULL,NULL 8778,161131,920990,NULL,NULL,NULL,0,NULL,NULL 8779,60775,502231,Enthusiast Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8780,2033402,1289234,Popular Question Student,NULL,NULL,0,NULL,NULL 8781,666154,1289234,Popular Question Student,NULL,NULL,0,NULL,NULL 8782,471312,955855,NULL,NULL,NULL,0,NULL,NULL 8783,108887,418178,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8784,582238,720181,NULL,NULL,NULL,0,NULL,NULL 8785,6751,821751,Student Yearling,NULL,NULL,0,NULL,NULL 8786,436105,269483,Yearling Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Nice Answer Yearling Good Answer bash Good Answer Good Answer Nice Answer Custodian Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8787,660839,559350,Nice Answer Yearling Good Answer Popular Question Enthusiast Revival Yearling,NULL,NULL,0,NULL,NULL 8788,7990614,559350,Nice Answer Yearling Good Answer Popular Question Enthusiast Revival Yearling,NULL,NULL,0,NULL,NULL 8789,282170,297589,Popular Question,NULL,NULL,0,NULL,NULL 8790,691797,1195006,NULL,NULL,NULL,0,NULL,NULL 8791,470771,184394,Teacher Editor Citizen Patrol Supporter Commentator Critic Informed Autobiographer Yearling Suffrage Vox Populi Enthusiast Caucus Constituent Fanatic Yearling Popular Question,NULL,NULL,0,NULL,NULL 8792,324168,374285,Necromancer,NULL,NULL,0,NULL,NULL 8793,261399,1203055,Yearling,NULL,NULL,0,NULL,NULL 8794,895054,783008,Curious,NULL,NULL,0,NULL,NULL 8795,7332968,783008,Curious,NULL,NULL,0,NULL,NULL 8796,7213,1527478,NULL,NULL,NULL,0,NULL,NULL 8797,108924,1372378,Announcer Booster,NULL,NULL,0,NULL,NULL 8798,21486,1134119,Yearling Yearling Nice Answer Yearling Announcer Announcer,NULL,Large ArrayBuffer crashes with XMLHttpRequest send javascript xmlhttprequest pI trying to send files using codeXMLHttpRequest code in JavaScript To do so use codeFileReader code with codereadAsArrayBuffer code ppMy code ends with something like that ppre code content from readAsArrayBuffervar xhr new XMLHttpRequest xhr open POST url true xhr send content code prepNow depending of the browser computer when try to use codesend ArrayBuffer code with large ArrayBuffer 1GB file it crashes the browser ppHere is demo href https codepen io Aymkdn pen xXZMwV rel nofollow noreferrer https codepen io Aymkdn pen xXZMwV just click on the Test button ppThis demo creates an ArrayBuffer of 1GB and tries to upload it to some url tried it on computers with last Chrome and Firefox 100 of the Chrome browsers crashed and 66 of the Firefox browsers crashed ppAm missing something here Is there size limit to the data passed to codesend code ppThanks Alen this is not due to the server side the browser crashes before sending it Keith yes but the server use doesn support the chunk,1,Large ArrayBuffer crashes with XMLHttpRequest send javascript xmlhttprequest pI trying to send files using codeXMLHttpRequest code in JavaScript To do so use codeFileReader code with codereadAsArrayBuffer code ppMy code ends with something like that ppre code content from readAsArrayBuffervar xhr new XMLHttpRequest xhr open POST url true xhr send content code prepNow depending of the browser computer when try to use codesend ArrayBuffer code with large ArrayBuffer 1GB file it crashes the browser ppHere is demo href https codepen io Aymkdn pen xXZMwV rel nofollow noreferrer https codepen io Aymkdn pen xXZMwV just click on the Test button ppThis demo creates an ArrayBuffer of 1GB and tries to upload it to some url tried it on computers with last Chrome and Firefox 100 of the Chrome browsers crashed and 66 of the Firefox browsers crashed ppAm missing something here Is there size limit to the data passed to codesend code ppThanks,Large ArrayBuffer crashes with XMLHttpRequest send javascript xmlhttprequest pI trying to send files using codeXMLHttpRequest code in JavaScript To do so use codeFileReader code with codereadAsArrayBuffer code ppMy code ends with something like that ppre code content from readAsArrayBuffervar xhr new XMLHttpRequest xhr open POST url true xhr send content code prepNow depending of the browser computer when try to use codesend ArrayBuffer code with large ArrayBuffer 1GB file it crashes the browser ppHere is demo href https codepen io Aymkdn pen xXZMwV rel nofollow noreferrer https codepen io Aymkdn pen xXZMwV just click on the Test button ppThis demo creates an ArrayBuffer of 1GB and tries to upload it to some url tried it on computers with last Chrome and Firefox 100 of the Chrome browsers crashed and 66 of the Firefox browsers crashed ppAm missing something here Is there size limit to the data passed to codesend code ppThanks pAfter different tests it seems that the easy fix is to send codeBlob code instead of an codeArrayBuffer code ppre code content from readAsArrayBuffer so it an ArrayBuffervar xhr new XMLHttpRequest xhr open POST url true xhr send new Blob content transform ArrayBuffer into Blob code prepIn that case the browsers don crash anymore 8799,171322,781875,NULL,NULL,NULL,0,NULL,NULL 8800,571230,1499761,NULL,NULL,NULL,0,NULL,NULL 8801,46230,851817,NULL,NULL,NULL,0,NULL,NULL 8802,17068,794835,Popular Question,NULL,NULL,0,NULL,NULL 8803,900013,495416,Nice Answer Yearling Enlightened Popular Question Nice Question Revival Popular Question Notable Question Caucus Civic Duty Revival Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 8804,192777,120901,Revival Yearling Necromancer Favorite Question Famous Question Nice Answer Yearling Custodian Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 8805,129915,144876,Nice Question Yearling Popular Question Yearling Good Answer Good Question Notable Question Yearling Yearling Necromancer Popular Question Nice Answer Famous Question Revival Yearling Notable Question Necromancer Nice Answer Good Answer Great Answer Nice Question Great Question Custodian Yearling Good Answer,NULL,pI know this has been answered already but think this is better answer so thought contribute it anyway ppThor has method you can use to change the behavior so errors cause non zero exit codes It not documented very well IMHO ppre codeclass Test lt Thor def self exit on failure true end desc example an example task def example puts thor task endend code prepThe default for this is inexplicably codefalse code don know why anyone would want it to behave like that personally href https github com erikhuda thor issues 244 Thor issue 244 addresses this as well This should be the accepted answer,0,NULL,NULL 8806,67097,417489,NULL,NULL,NULL,0,NULL,NULL 8807,719126,60190,Yearling Yearling,NULL,NULL,0,NULL,NULL 8808,4394590,60190,Yearling Yearling,NULL,NULL,0,NULL,NULL 8809,163588,1217402,NULL,NULL,NULL,0,NULL,NULL 8810,351616,532383,Nice Question Nice Question Caucus Caucus Editor Necromancer Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Promoter Scholar Student Supporter Yearling Self-Learner Famous Question Commentator Yearling Yearling Yearling Yearling Curious Critic Famous Question Yearling,NULL,NULL,0,NULL,NULL 8811,28734,526407,NULL,NULL,NULL,0,NULL,NULL 8812,398698,695332,Nice Question Popular Question Notable Question Yearling Popular Question Nice Question Self-Learner Notable Question Famous Question Famous Question Notable Question Nice Question Popular Question Famous Question Popular Question Yearling Popular Question Good Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 8813,866802,672298,Yearling Popular Question,NULL,NULL,0,NULL,NULL 8814,317553,283171,NULL,NULL,NULL,0,NULL,NULL 8815,205185,877031,Yearling Student Popular Question Announcer,NULL,NULL,0,NULL,NULL 8816,18028,602309,Popular Question,NULL,NULL,0,NULL,NULL 8817,795288,815365,NULL,NULL,NULL,0,NULL,NULL 8818,431993,1498823,Popular Question Populist Yearling Great Answer Custodian Nice Answer Informed Autobiographer Good Answer Yearling Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 8819,8765,284582,NULL,NULL,NULL,0,NULL,NULL 8820,115683,397534,NULL,NULL,NULL,0,NULL,NULL 8821,2986979,239090,NULL,NULL,NULL,0,NULL,NULL 8822,53786,1317461,Yearling Nice Answer Enlightened Nice Answer Revival Yearling Good Answer Yearling google-apps-script,NULL,NULL,0,NULL,NULL 8823,216069,692102,NULL,NULL,NULL,0,NULL,NULL 8824,15617,3797,Necromancer Notable Question Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Guru c# Good Answer Notable Question Yearling Popular Question Notable Question Good Question Famous Question Notable Question Famous Question Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Yearling Great Answer Famous Question asp.net Nice Question Nice Question Notable Question Popular Question Good Answer Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 8825,449654,1276548,Self-Learner,NULL,NULL,0,NULL,NULL 8826,2362241,212897,NULL,NULL,NULL,0,NULL,NULL 8827,135452,825322,Informed Editor Custodian Teacher,NULL,NULL,0,NULL,NULL 8828,15117,1460205,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 8829,2402,355794,NULL,NULL,NULL,0,NULL,NULL 8830,207320,350118,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 8831,791704,886342,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 8832,44292,73306,Critic Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 8833,41258,440419,NULL,NULL,NULL,0,NULL,NULL 8834,59705,1380355,NULL,NULL,NULL,0,NULL,NULL 8835,256366,1398083,Notable Question Popular Question Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8836,16000,1272111,Student Critic Popular Question,NULL,NULL,0,NULL,NULL 8837,139536,701622,Notable Question,NULL,NULL,0,NULL,NULL 8838,100819,895268,NULL,NULL,NULL,0,NULL,NULL 8839,337271,481327,NULL,NULL,NULL,0,NULL,NULL 8840,1268148,502932,NULL,NULL,NULL,0,NULL,NULL 8841,103598,502932,NULL,NULL,NULL,0,NULL,NULL 8842,900259,1127435,NULL,NULL,NULL,0,NULL,NULL 8843,174969,756606,NULL,NULL,NULL,0,NULL,NULL 8844,319315,922115,Yearling Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 8845,443243,671751,NULL,NULL,NULL,0,NULL,NULL 8846,625287,438740,Yearling Caucus Constituent Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8847,120243,567184,Popular Question Census,NULL,NULL,0,NULL,NULL 8848,88553,123016,Great Question Popular Question Famous Question Nice Question Great Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Stellar Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 8849,442098,1347675,Necromancer,NULL,NULL,0,NULL,NULL 8850,7591009,479371,NULL,NULL,NULL,0,NULL,NULL 8851,134886,586323,NULL,NULL,NULL,0,NULL,NULL 8852,77287,285614,Nice Answer Enlightened Yearling Nice Answer Nice Answer Popular Question Good Answer Notable Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened python Nice Answer ruby-on-rails Popular Question Famous Question Notable Question Good Question Famous Question Nice Answer Enlightened Notable Question Good Answer Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 8853,2786283,1552756,Revival Supporter Informed,NULL,NULL,0,NULL,NULL 8854,3481661,551183,NULL,NULL,NULL,0,NULL,NULL 8855,341136,1105411,NULL,NULL,NULL,0,NULL,NULL 8856,104011,28581,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 8857,1823483,836291,Yearling Critic,NULL,NULL,0,NULL,NULL 8858,161525,55021,NULL,NULL,NULL,0,NULL,NULL 8859,171991,72653,NULL,NULL,NULL,0,NULL,NULL 8860,240557,1103679,NULL,NULL,NULL,0,NULL,NULL 8861,10247320,710958,Curious Critic Yearling Yearling Caucus Popular Question Caucus Notable Question Tumbleweed Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 8862,120460,527152,Nice Answer Enlightened Nice Answer Enlightened ruby Autobiographer Nice Answer Enlightened Caucus Constituent Yearling Good Answer Necromancer Documentation User Yearling Caucus Nice Answer Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 8863,2398431,1216295,NULL,NULL,NULL,0,NULL,NULL 8864,459022,253243,NULL,NULL,NULL,0,NULL,NULL 8865,165864,402267,Yearling,NULL,NULL,0,NULL,NULL 8866,314294,487464,Enthusiast Yearling Revival Excavator Yearling Nice Question Civic Duty Necromancer Custodian Revival Yearling Necromancer Yearling Necromancer Nice Answer Census Necromancer Yearling Necromancer Necromancer Yearling Popular Question Nice Answer Enlightened Announcer Necromancer,NULL,pWell believe it either an implementation bug or an undocumented design decision The crux of the issue is that name binding operation in the module scope should bind to global variable The way it is achieved is that when in the module level globals IS locals try that one out in the interpreter so when you do any name binding it assigns it as usual to the locals dictionary which is also the globals hence global variable is created ppWhen you look up variable you first check your current locals and if the name is not found you recursively check locals of containing scopes for the variable name until you find the variable or reach the module scope If you reach that you check the globals which are supposed to be the module scope locals ppre code gt gt gt exec compile import sys nprint sys getframe code co name blah exec lt module gt gt gt gt exec nclass object tprint Traceback most recent call last File lt stdin gt line in lt module gt File lt string gt line in lt module gt File lt string gt line in ANameError name is not defined gt gt gt gt gt gt exec nclass object tprint code prepThis behavior is why inheritance worked The name lookup used code object scope locals which indeed had in it ppIn the end it an ugly hack in the CPython implementation special casing globals lookup It also causes some nonsensical artifical situations ppre code gt gt gt def global gt gt gt gt gt gt in locals True code prepPlease note that this is all my inference based on messing with the interpreter while reading section Naming and binding of the python language reference While this isn definitive haven opened CPython sources fairly sure correct about the behavior Looks like this is now wont fix issue think that the exec API is very misleading with bad defaults pWell believe it either an implementation bug or an undocumented design decision The crux of the issue is that name binding operation in the module scope should bind to global variable The way it is achieved is that when in the module level globals IS locals try that one out in the interpreter so when you do any name binding it assigns it as usual to the locals dictionary which is also the globals hence global variable is created ppWhen you look up variable you first check your current locals and if the name is not found you recursively check locals of containing scopes for the variable name until you find the variable or reach the module scope If you reach that you check the globals which are supposed to be the module scope locals ppre code gt gt gt exec compile import sys nprint sys getframe code co name blah exec lt module gt gt gt gt exec nclass object tprint Traceback most recent call last File lt stdin gt line in lt module gt File lt string gt line in lt module gt File lt string gt line in ANameError name is not defined gt gt gt gt gt gt exec nclass object tprint code prepThis behavior is why inheritance worked The name lookup used code object scope locals which indeed had in it ppIn the end it an ugly hack in the CPython implementation special casing globals lookup It also causes some nonsensical artifical situations ppre code gt gt gt def global gt gt gt gt gt gt in locals True code prepPlease note that this is all my inference based on messing with the interpreter while reading section Naming and binding of the python language reference While this isn definitive haven opened CPython sources fairly sure correct about the behavior recommend runpy https docs python org library runpy html Much better api code BASH SOURCE code equivalent in zsh is code code NOT code code as OP said the latter failed in zshrc ppHere code code indicates prompt expansion on the value code code indicates The name of the script sourced file or shell function that zsh is currently executing ppwhichever was started most recently If there is none this is equivalent to the parameter from codeman zshmisc code Note if your zshrc file is symlink you can use readlink to resolve to the absolute path readlink Correct way to generate random numbers in Cython python random numpy cython pWhat is the most efficient and portable way to generate random random in code code in Cython One approach is to use codeINT MAX code and coderand code from the library ppre codefrom libc stdlib cimport randcdef extern from limits int INT MAXcdef float randnum rand float INT MAX code prepIs it OK to use codeINT MAX code in this way noticed that it quite different from the constant you get from Python max int ppre codeimport sysprint INT MAXprint sys maxint code prepyields ppre code2147483647 max int 9223372036854775807 python max int code prepWhich is the right normalization number for coderand code strongEDIT strong additionally how can the random seed be set seeded based on current time if one uses the approach of calling coderand code from libc Please watch rand considered harmful https channel9 msdn com Events GoingNative 2013 rand Considered Harmful,0,NULL,NULL 8867,2602852,487464,Enthusiast Yearling Revival Excavator Yearling Nice Question Civic Duty Necromancer Custodian Revival Yearling Necromancer Yearling Necromancer Nice Answer Census Necromancer Yearling Necromancer Necromancer Yearling Popular Question Nice Answer Enlightened Announcer Necromancer,NULL,pWell believe it either an implementation bug or an undocumented design decision The crux of the issue is that name binding operation in the module scope should bind to global variable The way it is achieved is that when in the module level globals IS locals try that one out in the interpreter so when you do any name binding it assigns it as usual to the locals dictionary which is also the globals hence global variable is created ppWhen you look up variable you first check your current locals and if the name is not found you recursively check locals of containing scopes for the variable name until you find the variable or reach the module scope If you reach that you check the globals which are supposed to be the module scope locals ppre code gt gt gt exec compile import sys nprint sys getframe code co name blah exec lt module gt gt gt gt exec nclass object tprint Traceback most recent call last File lt stdin gt line in lt module gt File lt string gt line in lt module gt File lt string gt line in ANameError name is not defined gt gt gt gt gt gt exec nclass object tprint code prepThis behavior is why inheritance worked The name lookup used code object scope locals which indeed had in it ppIn the end it an ugly hack in the CPython implementation special casing globals lookup It also causes some nonsensical artifical situations ppre code gt gt gt def global gt gt gt gt gt gt in locals True code prepPlease note that this is all my inference based on messing with the interpreter while reading section Naming and binding of the python language reference While this isn definitive haven opened CPython sources fairly sure correct about the behavior Looks like this is now wont fix issue think that the exec API is very misleading with bad defaults pWell believe it either an implementation bug or an undocumented design decision The crux of the issue is that name binding operation in the module scope should bind to global variable The way it is achieved is that when in the module level globals IS locals try that one out in the interpreter so when you do any name binding it assigns it as usual to the locals dictionary which is also the globals hence global variable is created ppWhen you look up variable you first check your current locals and if the name is not found you recursively check locals of containing scopes for the variable name until you find the variable or reach the module scope If you reach that you check the globals which are supposed to be the module scope locals ppre code gt gt gt exec compile import sys nprint sys getframe code co name blah exec lt module gt gt gt gt exec nclass object tprint Traceback most recent call last File lt stdin gt line in lt module gt File lt string gt line in lt module gt File lt string gt line in ANameError name is not defined gt gt gt gt gt gt exec nclass object tprint code prepThis behavior is why inheritance worked The name lookup used code object scope locals which indeed had in it ppIn the end it an ugly hack in the CPython implementation special casing globals lookup It also causes some nonsensical artifical situations ppre code gt gt gt def global gt gt gt gt gt gt in locals True code prepPlease note that this is all my inference based on messing with the interpreter while reading section Naming and binding of the python language reference While this isn definitive haven opened CPython sources fairly sure correct about the behavior recommend runpy https docs python org library runpy html Much better api code BASH SOURCE code equivalent in zsh is code code NOT code code as OP said the latter failed in zshrc ppHere code code indicates prompt expansion on the value code code indicates The name of the script sourced file or shell function that zsh is currently executing ppwhichever was started most recently If there is none this is equivalent to the parameter from codeman zshmisc code Note if your zshrc file is symlink you can use readlink to resolve to the absolute path readlink Correct way to generate random numbers in Cython python random numpy cython pWhat is the most efficient and portable way to generate random random in code code in Cython One approach is to use codeINT MAX code and coderand code from the library ppre codefrom libc stdlib cimport randcdef extern from limits int INT MAXcdef float randnum rand float INT MAX code prepIs it OK to use codeINT MAX code in this way noticed that it quite different from the constant you get from Python max int ppre codeimport sysprint INT MAXprint sys maxint code prepyields ppre code2147483647 max int 9223372036854775807 python max int code prepWhich is the right normalization number for coderand code strongEDIT strong additionally how can the random seed be set seeded based on current time if one uses the approach of calling coderand code from libc Please watch rand considered harmful https channel9 msdn com Events GoingNative 2013 rand Considered Harmful,0,NULL,NULL 8868,928412,631717,Notable Question Notable Question Nice Question Nice Question Nice Answer Notable Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 8869,52084,266726,Nice Question Popular Question Yearling Notable Question Famous Question Popular Question Inquisitive Nice Question Notable Question Yearling Civic Duty Notable Question Yearling Caucus Self-Learner,NULL,NULL,0,NULL,NULL 8870,13266,157017,Critic Enthusiast Inquisitive Notable Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Nice Question Yearling Self-Learner Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,1,Unit Testing Azure Functions and csx Files unit testing azure visual studio 2015 xunit azure functions pAzure Functions abstract plenty of dependencies like queue libraries and Azure Tables So from Unit Test dependencies mocking perspective there is less coding effort and accordingly less maintenance ppAssuming we are developing locally using Visual Studio 2015 pulliHow can unit test not interested in integration test single Azure Function Preferably in xUnit however any framework would do liliHow can unit test function in csx file in general li ul,NULL 8871,55683,66688,Popular Question Yearling Famous Question Good Answer Good Question Yearling Popular Question Nice Question Caucus Famous Question Census Yearling Guru Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8872,231832,1087270,NULL,NULL,NULL,0,NULL,NULL 8873,66575,352812,Curious Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8874,82702,655228,Census,NULL,NULL,0,NULL,NULL 8875,397304,1471630,NULL,NULL,NULL,0,NULL,NULL 8876,669431,930839,NULL,NULL,NULL,0,NULL,NULL 8877,1143959,806843,NULL,NULL,NULL,0,NULL,NULL 8878,130555,1481901,Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8879,715896,973139,NULL,NULL,NULL,0,NULL,NULL 8880,343578,1119143,Informed,NULL,NULL,0,NULL,NULL 8881,736844,281469,Necromancer Notable Question Popular Question Yearling Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Good Answer Nice Question Good Answer Guru Caucus Notable Question Popular Question Revival Popular Question Nice Answer Nice Answer Great Question Notable Question Yearling Popular Question java Popular Question Necromancer Popular Question Necromancer Popular Question Notable Question Announcer Good Answer Popular Question Popular Question Popular Question Guru Enlightened Famous Question Notable Question Notable Question Popular Question Nice Question Pundit Popular Question Popular Question Nice Question Yearling Necromancer Famous Question Notable Question Famous Question Nice Answer Notable Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 8882,525747,281469,Necromancer Notable Question Popular Question Yearling Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Good Answer Nice Question Good Answer Guru Caucus Notable Question Popular Question Revival Popular Question Nice Answer Nice Answer Great Question Notable Question Yearling Popular Question java Popular Question Necromancer Popular Question Necromancer Popular Question Notable Question Announcer Good Answer Popular Question Popular Question Popular Question Guru Enlightened Famous Question Notable Question Notable Question Popular Question Nice Question Pundit Popular Question Popular Question Nice Question Yearling Necromancer Famous Question Notable Question Famous Question Nice Answer Notable Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 8883,1848445,1440169,Popular Question,NULL,NULL,0,NULL,NULL 8884,16214,915479,Nice Answer Enlightened Popular Question Nice Question Yearling Good Answer Yearling Notable Question Guru Yearling Notable Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 8885,1282,8024,Great Answer Yearling Good Answer Guru Popular Question Caucus Yearling Documentation User Good Answer Great Question Yearling,NULL,NULL,0,NULL,NULL 8886,85442,3415,Nice Answer Popular Question Notable Question Guru Great Answer Nice Answer Custodian Nice Answer Good Answer Yearling Guru Guru Nice Answer Yearling Announcer Documentation User Great Question Guru Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 8887,165192,1289662,NULL,NULL,NULL,0,NULL,NULL 8888,93612,61,Famous Question Notable Question Yearling Good Question Stellar Question Nice Answer Famous Question Good Question Yearling Famous Question Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 8889,577186,40834,Notable Question Nice Question Notable Question Notable Question Notable Question Necromancer Popular Question Nice Question Famous Question Good Question Favorite Question Notable Question Yearling Popular Question Nice Answer Notable Question Yearling Notable Question Good Question Popular Question Good Question Great Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 8890,293040,822164,Good Question Famous Question Nice Question Announcer Announcer Yearling Popular Question Announcer Yearling Famous Question,NULL,NULL,0,NULL,NULL 8891,85427,373903,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 8892,99435,674440,NULL,NULL,NULL,0,NULL,NULL 8893,637083,858175,NULL,NULL,NULL,0,NULL,NULL 8894,630817,484099,Self-Learner Yearling Famous Question Notable Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 8895,13099,586766,Yearling Scholar Commentator Informed,NULL,NULL,0,NULL,NULL 8896,1108418,1415874,NULL,NULL,NULL,0,NULL,NULL 8897,159157,805828,NULL,NULL,NULL,0,NULL,NULL 8898,938102,805828,NULL,NULL,NULL,0,NULL,NULL 8899,935938,1000532,NULL,NULL,NULL,0,NULL,NULL 8900,143123,1011922,NULL,NULL,NULL,0,NULL,NULL 8901,173058,1101800,NULL,NULL,NULL,0,NULL,NULL 8902,1292389,1503502,Critic Necromancer Yearling Caucus Nice Answer Revival Yearling Good Answer,NULL,NULL,1,NSManageObjectContext Class is not key value coding compliant for the key ios core data restkit xcode8 pI ve got an iOS app with RestKit library and CoreData Since Xcode8 can see way more logs than before and one of them doesn make any sense to me ppre codeerror An observer of NSManagedObjectContextDidSaveNotification illegally threw an exception Objects saved inserted managedObjectContext lt PFWeakReference 0x600000621560 gt updated and exception lt PFWeakReference 0x600000621560 gt valueForUndefinedKey this class is not key value coding compliant for the key with userInfo NSTargetObjectUserInfoKey lt PFWeakReference 0x600000621560 gt NSUnknownUserInfoKey code prepSo far what can understand is that weak reference to the managedObjectContext above in the error is using wrong key but can figured out how to debug it ppAll the NSManagedObjects related to this issue seems to be collections Mostly NSSet from OneToMany or ManyToMany relationship ppThen found this href https developer apple com library content documentation Cocoa Conceptual KeyValueCoding Articles CollectionOperators html Apple documentation pblockquote pAll the collection operators with the exception of require key path to the right of the collection operator blockquotepHowever can see any predicate or CoreData request made that currently use this key ppI regenerated all my NSManagedObject models and double check all the inverse relations between them but it didn help me to get rid of it ppThis app is running fine but couldn find any solution to remove this warning,NULL 8903,227044,505165,Good Answer Famous Question Yearling Caucus Constituent Nice Answer Notable Question Caucus Enlightened Notable Question Popular Question Yearling Good Answer Census Famous Question Famous Question Guru Yearling,NULL,NULL,0,NULL,NULL 8904,212710,1531199,Nice Question Popular Question Notable Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 8905,53817,1053824,NULL,NULL,NULL,0,NULL,NULL 8906,960496,1283603,NULL,NULL,NULL,0,NULL,NULL 8907,364336,1283603,NULL,NULL,NULL,0,NULL,NULL 8908,258107,220978,NULL,NULL,NULL,0,NULL,NULL 8909,1509526,687079,Nice Question,NULL,NULL,0,NULL,NULL 8910,530306,773193,Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8911,183950,200898,Proofreader Enthusiast Yearling Caucus android Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8912,569609,692802,NULL,NULL,NULL,0,NULL,NULL 8913,7517309,1164632,Popular Question,NULL,NULL,0,NULL,NULL 8914,367484,176960,NULL,NULL,NULL,0,NULL,NULL 8915,982810,1419140,NULL,NULL,NULL,0,NULL,NULL 8916,423437,918613,NULL,NULL,NULL,0,NULL,NULL 8917,119545,1327219,NULL,NULL,NULL,0,NULL,NULL 8918,191073,401861,NULL,NULL,NULL,0,NULL,NULL 8919,145713,191134,NULL,NULL,NULL,0,NULL,NULL 8920,1489721,930291,NULL,NULL,NULL,0,NULL,NULL 8921,487734,1020607,NULL,NULL,NULL,0,NULL,NULL 8922,172529,711926,Notable Question Famous Question Popular Question Popular Question Yearling Nice Question Notable Question Notable Question Popular Question Nice Question Popular Question Yearling Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 8923,718528,319647,NULL,NULL,NULL,0,NULL,NULL 8924,41917,814986,Yearling Good Answer,NULL,NULL,0,NULL,NULL 8925,120117,444558,NULL,NULL,NULL,0,NULL,NULL 8926,1006394,8815,Nice Answer Good Answer Nice Answer Guru Guru Necromancer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Notable Question Yearling Nice Question Great Answer Informed Good Answer Good Answer Famous Question Good Answer Good Answer Nice Answer Good Question Great Answer symfony symfony Guru Generalist Nice Answer Enlightened Popular Question Good Answer Nice Answer forms Nice Answer Good Answer Good Answer Guru Yearling Guru Guru Nice Answer Guru Good Answer Nice Question Good Question Nice Answer Good Answer Nice Answer Nice Answer Guru Yearling Nice Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 8927,42789,607735,Critic Census,NULL,NULL,0,NULL,NULL 8928,89563,609002,Documentation Pioneer Documentation User Informed Autobiographer,NULL,NULL,0,NULL,NULL 8929,10092,367793,Popular Question,NULL,NULL,0,NULL,NULL 8930,1377065,134229,Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 8931,403039,691089,NULL,NULL,NULL,0,NULL,NULL 8932,46402,1307166,Necromancer c Yearling Nice Answer Enlightened Nice Answer Good Answer python Yearling Nice Answer Nice Answer Enlightened Census Nice Answer Enlightened Guru Caucus Constituent Yearling Good Answer Necromancer Good Answer,NULL,NULL,0,NULL,NULL 8933,1243920,417329,NULL,NULL,NULL,0,NULL,NULL 8934,328594,452191,NULL,NULL,NULL,0,NULL,NULL 8935,59307,401306,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8936,76263,1352786,NULL,NULL,NULL,0,NULL,NULL 8937,2798682,88949,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8938,22374,88949,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 8939,117829,760389,Nice Answer Enlightened Yearling Announcer Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 8940,9886,130638,Popular Question Famous Question Good Question Good Question Famous Question Famous Question Announcer Yearling Revival Nice Answer Notable Question Popular Question Booster Announcer Nice Question Popular Question Great Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Answer Famous Question Good Answer Publicist Nice Answer Yearling Nice Answer Enlightened Nice Question Nice Answer Announcer Great Question Nice Question Nice Answer Announcer Popular Question Great Question Popular Question Nice Answer Nice Question Yearling Necromancer Popular Question Nice Answer Good Question,NULL,pHere is more efficient version which uses codeon code for all contenteditables It based off the top answers here ppre code body on focus contenteditable function const this this this data before this html on blur keyup paste input contenteditable function const this this if this data before this html this data before this html this trigger change code prepThe project is here href https github com balupton html5edit rel nofollow noreferrer https github com balupton html5edit result from the coffeescript conversion in coffeescript you must always return things as it has implicit returns and with jquery return false can mean prevent default action ve removed the coffeescript code no one uses it anymore and updated the javascript code pHere is more efficient version which uses codeon code for all contenteditables It based off the top answers here ppre code body on focus contenteditable function const this this this data before this html on blur keyup paste input contenteditable function const this this if this data before this html this data before this html this trigger change code prepThe project is here href https github com balupton html5edit rel nofollow noreferrer https github com balupton html5edit it shouldn as that is what if this data before this html is for pThanks to the comments on this question by href https stackoverflow com users 721269 david schwartz David Schwartz created href https github com bevry istextorbinary rel nofollow noreferrer istextorbinary to solve this problem for what it is worth istextorbinary is now javascript,0,NULL,NULL 8941,177796,999569,Necromancer,NULL,NULL,0,NULL,NULL 8942,398024,68035,Yearling Notable Question Good Answer Popular Question Custodian Popular Question Yearling Popular Question Popular Question Nice Answer Notable Question Yearling Popular Question Guru Popular Question,NULL,NULL,0,NULL,NULL 8943,231009,72035,Popular Question Yearling Popular Question Good Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 8944,141152,1535876,Enthusiast Fanatic,NULL,NULL,0,NULL,NULL 8945,18261,1346510,Yearling Revival Revival Autobiographer Announcer Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 8946,139470,827733,NULL,NULL,NULL,0,NULL,NULL 8947,4526406,686932,NULL,NULL,NULL,0,NULL,NULL 8948,912569,1148784,Yearling Necromancer Custodian Scholar Tumbleweed Custodian Investor Altruist Yearling Nice Answer Necromancer Revival android Caucus Nice Answer Nice Question Excavator Nice Question Yearling Good Answer Nice Answer Curious Necromancer Good Answer,NULL,NULL,1,NDK builder r15 finds neither HAVE PTHREAD COND TIMEDWAIT MONOTONIC nor pthread condattr setclock for some build targets Build fails android android ndk pI have some native code in my project use pthread with monotonic time But not good in NDK development ppC code to initialise and use condition with monotonic clock ppre codeint initMonotonicCond pthread cond cond int result ifdef HAVE PTHREAD COND TIMEDWAIT MONOTONIC result pthread cond init cond NULL else pthread condattr cond1attr result pthread condattr init amp cond1attr result pthread condattr setclock amp cond1attr CLOCK MONOTONIC result pthread cond init cond amp cond1attr pthread condattr destroy amp cond1attr endif return result void monothonicWait pthread cond cond pthread mutex mutex const struct timespec ts ifdef HAVE PTHREAD COND TIMEDWAIT MONOTONIC pthread cond timedwait monotonic np cond mutex ts else pthread cond timedwait cond mutex ts endif code prepGradle builds ndk project with ppre codeandroid compileSdkVersion 25 buildToolsVersion 25 defaultConfig minSdkVersion 16 targetSdkVersion 24 buildTypes release minifyEnabled false proguardFiles getDefaultProguardFile proguard android txt proguard rules pro externalNativeBuild cmake cppFlags fexceptions frtti fPIE fPIC abiFilters armeabi v7a armeabi arm64 v8a x86 x86 64 mips mips64 debug externalNativeBuild cmake cppFlags fexceptions frtti fPIE funwind tables DDEBUG fPIC abiFilters armeabi code prepRecently ve updated Android Studio and all the SDK stuff to newer version And ndk build to r15 guess And now getting and error when building ppError 155 15 error use of undeclared identifier pthread condattr setclock did you mean pthread condattr setpshared ppAfter some research ve fount that now codeHAVE PTHREAD COND TIMEDWAIT MONOTONIC code and codepthread cond timedwait monotonic np code should be defined for non x64 targets armeabi v7a armeabi x86 mips And it was defined But it is not defined now ppSo armeabi v7a x86 mips do not have defined nither codeHAVE PTHREAD COND TIMEDWAIT MONOTONIC code nor codepthread condattr setclock code defined so my project can be built for theese targets ppSo what the reason for that and what options do have ppShould not use monothonic wait for that targets some way ppShould not build for those targets ppShould revert to older NDK ppOr should write to google groups about that,NULL 8949,382029,764886,Student,NULL,NULL,0,NULL,NULL 8950,200862,913566,Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 8951,278044,488306,NULL,NULL,NULL,0,NULL,NULL 8952,5723788,139687,Good Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 8953,36209,139687,Good Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 8954,2840360,728177,Yearling,NULL,NULL,0,NULL,NULL 8955,24524,728177,Yearling,NULL,NULL,0,NULL,NULL 8956,3240688,409018,Popular Question,NULL,NULL,0,NULL,NULL 8957,485725,695633,NULL,NULL,NULL,0,NULL,NULL 8958,2306,692022,Popular Question,NULL,NULL,0,NULL,NULL 8959,410645,1101584,Census Revival Necromancer,NULL,NULL,0,NULL,NULL 8960,136285,249799,NULL,NULL,NULL,0,NULL,NULL 8961,60080,1013655,NULL,NULL,NULL,0,NULL,NULL 8962,271706,648167,NULL,NULL,NULL,0,NULL,NULL 8963,21829,1036969,NULL,NULL,NULL,0,NULL,NULL 8964,131165,986705,NULL,NULL,NULL,0,NULL,NULL 8965,1061787,539751,NULL,NULL,NULL,0,NULL,NULL 8966,453760,194834,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 8967,296749,889852,Custodian Custodian Nice Answer Yearling Necromancer Caucus Curious Nice Answer Good Answer Notable Question Caucus Constituent Yearling Documentation User Custodian Census Caucus Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 8968,4381042,889852,Custodian Custodian Nice Answer Yearling Necromancer Caucus Curious Nice Answer Good Answer Notable Question Caucus Constituent Yearling Documentation User Custodian Census Caucus Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 8969,1215129,1426552,NULL,NULL,NULL,0,NULL,NULL 8970,481562,112781,Yearling Great Answer Popular Question Nice Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 8971,198355,974016,NULL,NULL,NULL,0,NULL,NULL 8972,507137,1118455,NULL,NULL,NULL,0,NULL,NULL 8973,9143,142144,NULL,NULL,NULL,0,NULL,NULL 8974,889251,473735,Supporter Census,NULL,NULL,0,NULL,NULL 8975,1830605,754276,NULL,NULL,NULL,0,NULL,NULL 8976,4779538,1278683,NULL,NULL,NULL,0,NULL,NULL 8977,769135,349429,NULL,NULL,NULL,0,NULL,NULL 8978,1126542,285694,Good Answer Yearling Good Answer Nice Answer Revival Revival Nice Question Populist Great Question Popular Question Necromancer Revival Announcer Inquisitive Nice Answer Necromancer Yearling Necromancer Revival Popular Question Good Answer Notable Question Populist Revival Announcer Good Answer Nice Question Popular Question Necromancer Yearling Popular Question Necromancer Notable Question Popular Question Notable Question Good Answer,NULL,pGood cocoa function ppre code BOOL NSStringIsValidEmail NSString checkString BOOL stricterFilter NO Discussion http blog logichigh com 2010 09 02 validating an mail address NSString stricterFilterString Z0 9a Za z0 Za NSString laxString Za z0 Za Za NSString emailRegex stricterFilter stricterFilterString laxString NSPredicate emailTest NSPredicate predicateWithFormat SELF MATCHES emailRegex return emailTest evaluateWithObject checkString code prepDiscussion on Lax vs Strict href http blog logichigh com 2010 09 02 validating an mail address rel noreferrer http blog logichigh com 2010 09 02 validating an mail address ppAnd because categories are just better you could also add an interface ppre code NSString emailValidation BOOL isValidEmail code prepImplement ppre code NSString emailValidation BOOL isValidEmail BOOL stricterFilter NO Discussion http blog logichigh com 2010 09 02 validating an mail address NSString stricterFilterString Z0 9a Za z0 Za NSString laxString Za z0 Za Za NSString emailRegex stricterFilter stricterFilterString laxString NSPredicate emailTest NSPredicate predicateWithFormat SELF MATCHES emailRegex return emailTest evaluateWithObject self code prepAnd then utilize ppre codeif emailString com isValidEmail True if InvalidEmailecausenosuffix isValidEmail False code pre what wrong with that address Looks valid to me Note function is far too simple to do domain validation as well Valid top level domain list is constantly expanding so only way to do that would be some sort of network or DNS validation pGood cocoa function ppre code BOOL NSStringIsValidEmail NSString checkString BOOL stricterFilter NO Discussion http blog logichigh com 2010 09 02 validating an mail address NSString stricterFilterString Z0 9a Za z0 Za NSString laxString Za z0 Za Za NSString emailRegex stricterFilter stricterFilterString laxString NSPredicate emailTest NSPredicate predicateWithFormat SELF MATCHES emailRegex return emailTest evaluateWithObject checkString code prepDiscussion on Lax vs Strict href http blog logichigh com 2010 09 02 validating an mail address rel noreferrer http blog logichigh com 2010 09 02 validating an mail address ppAnd because categories are just better you could also add an interface ppre code NSString emailValidation BOOL isValidEmail code prepImplement ppre code NSString emailValidation BOOL isValidEmail BOOL stricterFilter NO Discussion http blog logichigh com 2010 09 02 validating an mail address NSString stricterFilterString Z0 9a Za z0 Za NSString laxString Za z0 Za Za NSString emailRegex stricterFilter stricterFilterString laxString NSPredicate emailTest NSPredicate predicateWithFormat SELF MATCHES emailRegex return emailTest evaluateWithObject self code prepAnd then utilize ppre codeif emailString com isValidEmail True if InvalidEmailecausenosuffix isValidEmail False code pre Yeah looks like the RFC allows single periods but not multiple in row in the local portion of the email address This would probably make for pretty challenging regular expression If you ve got one that covers all the same but gets the double period case then feel free to suggest,0,NULL,NULL 8979,335244,1202092,NULL,NULL,NULL,0,NULL,NULL 8980,316729,753353,NULL,NULL,NULL,0,NULL,NULL 8981,397,21480,Yearling Revival Yearling Favorite Question Caucus Revival Necromancer Popular Question Good Question Custodian,NULL,NULL,0,NULL,NULL 8982,62183,845065,Editor Excavator,NULL,NULL,0,NULL,NULL 8983,23194,150755,Yearling Necromancer Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 8984,295570,1462806,NULL,NULL,NULL,0,NULL,NULL 8985,2473903,1480911,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 8986,499178,478953,NULL,NULL,NULL,0,NULL,NULL 8987,291629,1193638,NULL,NULL,NULL,0,NULL,NULL 8988,740639,683284,NULL,NULL,NULL,0,NULL,NULL 8989,503991,1486055,NULL,NULL,NULL,0,NULL,NULL 8990,964387,1089451,NULL,NULL,NULL,0,NULL,NULL 8991,157271,157328,Organizer Peer Pressure Civic Duty Informed Tag Editor Explainer Custodian Reviewer Custodian Tenacious Enthusiast Popular Question Famous Question Necromancer Yearling Taxonomist Good Answer Yearling Nice Answer Enlightened Necromancer Census Notable Question Yearling,NULL,NULL,0,NULL,NULL 8992,216940,1271945,Self-Learner,NULL,NULL,0,NULL,NULL 8993,89794,1037191,NULL,NULL,NULL,0,NULL,NULL 8994,1575215,826449,Editor,NULL,NULL,0,NULL,NULL 8995,175382,846120,NULL,NULL,NULL,0,NULL,NULL 8996,454610,497189,NULL,NULL,NULL,0,NULL,NULL 8997,880390,910040,NULL,NULL,NULL,0,NULL,NULL 8998,294523,612952,NULL,NULL,NULL,0,NULL,NULL 8999,461202,104390,NULL,NULL,NULL,0,NULL,NULL 9000,592916,565542,Nice Answer Enlightened Notable Question Announcer,NULL,NULL,0,NULL,NULL 9001,987311,1069624,Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 9002,317387,1346578,Curious Popular Question Tumbleweed Caucus Yearling Caucus Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9003,532452,1106910,NULL,NULL,NULL,0,NULL,NULL 9004,62367,385884,Announcer,NULL,NULL,0,NULL,NULL 9005,801634,10470,Notable Question Yearling Nice Answer Great Answer Citizen Patrol,NULL,pI built RVM for production and added the developer niceties later on If you would like more information read the documentation on the website and come talk to me in rvm on irc freenode net sometime during the day EDT most days have to agree here rvm uses deeply ugly and unnecessary hooks into the shell when virtualenv solved the problem years before Meanwhile they break every few months and are prohibitive to debug recommend if you do use rvm do not use any of the hooks it attempts to add without your consent,0,NULL,NULL 9006,147987,481742,Nice Answer core-data Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 9007,365482,1391851,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 9008,1602204,656071,NULL,NULL,NULL,0,NULL,NULL 9009,144191,1395435,NULL,NULL,NULL,0,NULL,NULL 9010,155334,1495256,NULL,NULL,NULL,0,NULL,NULL 9011,3144878,70198,Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Famous Question Good Question Popular Question Yearling Announcer Notable Question Popular Question Notable Question Nice Question Great Question Notable Question,NULL,NULL,0,NULL,NULL 9012,118283,70198,Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Famous Question Good Question Popular Question Yearling Announcer Notable Question Popular Question Notable Question Nice Question Great Question Notable Question,NULL,NULL,0,NULL,NULL 9013,1194715,818974,NULL,NULL,NULL,0,NULL,NULL 9014,694921,908488,NULL,NULL,NULL,0,NULL,NULL 9015,2654981,1426869,Yearling,NULL,NULL,0,NULL,NULL 9016,636110,380403,Popular Question Popular Question Notable Question Critic Nice Question Yearling Popular Question Notable Question Popular Question Nice Question Famous Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9017,485063,188779,Yearling Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 9018,741854,341912,Teacher,NULL,NULL,0,NULL,NULL 9019,462370,375262,Tumbleweed Enthusiast Promoter Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 9020,473151,661363,Nice Answer Populist Yearling Necromancer Popular Question Good Question Necromancer Notable Question Nice Answer java Good Answer Good Answer Notable Question Yearling Caucus Constituent Great Answer Custodian Custodian Custodian Nice Question Nice Answer Caucus Yearling Notable Question Nice Answer Revival Popular Question,NULL,NULL,0,NULL,NULL 9021,423921,589473,NULL,NULL,NULL,0,NULL,NULL 9022,79775,150578,NULL,NULL,NULL,0,NULL,NULL 9023,456106,172399,Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 9024,82035,186599,NULL,NULL,NULL,0,NULL,NULL 9025,270828,430338,NULL,NULL,NULL,0,NULL,NULL 9026,172473,265456,NULL,NULL,NULL,0,NULL,NULL 9027,273283,589384,Teacher Editor Supporter Critic Yearling Commentator Yearling Informed,NULL,NULL,0,NULL,NULL 9028,5934229,589384,Teacher Editor Supporter Critic Yearling Commentator Yearling Informed,NULL,NULL,0,NULL,NULL 9029,233314,1052085,NULL,NULL,NULL,0,NULL,NULL 9030,10353,832183,NULL,NULL,NULL,0,NULL,NULL 9031,7694842,445728,Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9032,231391,947131,Popular Question,NULL,NULL,0,NULL,NULL 9033,386076,370960,NULL,NULL,NULL,0,NULL,NULL 9034,84135,404610,NULL,NULL,NULL,0,NULL,NULL 9035,910378,773197,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9036,835275,633336,NULL,NULL,NULL,0,NULL,NULL 9037,379876,304393,Custodian Notable Question Popular Question Autobiographer Yearling Good Answer Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 9038,201648,1415942,NULL,NULL,NULL,0,NULL,NULL 9039,2031005,770476,Notable Question Curious Caucus Critic Popular Question Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 9040,1516562,1341055,NULL,NULL,NULL,0,NULL,NULL 9041,557716,1213504,NULL,NULL,NULL,0,NULL,NULL 9042,17244,1111779,NULL,NULL,NULL,0,NULL,NULL 9043,417152,268818,Nice Question,NULL,NULL,0,NULL,NULL 9044,18141,538645,Supporter,NULL,NULL,0,NULL,NULL 9045,10741,626729,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 9046,437814,292464,NULL,NULL,NULL,0,NULL,NULL 9047,167289,650892,Informed Student,NULL,NULL,0,NULL,NULL 9048,9616,1450341,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 9049,67043,212896,Investor Commentator,NULL,NULL,0,NULL,NULL 9050,85509,245018,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 9051,1258720,1137128,NULL,NULL,NULL,0,NULL,NULL 9052,85613,239965,Guru Necromancer Great Answer Necromancer Nice Answer Good Answer Good Answer Yearling Yearling Populist Nice Answer,NULL,NULL,0,NULL,NULL 9053,92255,963023,NULL,NULL,NULL,0,NULL,NULL 9054,1354730,756541,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 9055,3235,384309,Custodian Proofreader Necromancer Reviewer Custodian Yearling Necromancer Nice Answer Excavator Custodian Suffrage Informed Vox Populi Explainer Tag Editor Civic Duty Organizer Custodian Custodian Census Nice Answer Enlightened Strunk & White Yearling Caucus Documentation User Popular Question Nice Answer Enlightened Census Caucus Yearling Notable Question swift,NULL,NULL,0,NULL,NULL 9056,108817,185210,Popular Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 9057,480253,306566,NULL,NULL,NULL,0,NULL,NULL 9058,132101,732499,NULL,NULL,NULL,0,NULL,NULL 9059,79604,310372,NULL,NULL,NULL,0,NULL,NULL 9060,267220,837290,NULL,NULL,NULL,0,NULL,NULL 9061,222335,1551,Notable Question Guru Necromancer Popular Question Nice Question Notable Question Yearling Good Answer Nice Answer Notable Question Stellar Question Nice Question Popular Question Popular Question Notable Question Nice Answer Famous Question Nice Answer Favorite Question Yearling Great Question Nice Answer Enlightened Popular Question Famous Question Famous Question Announcer Good Question Nice Question Yearling Good Answer Nice Answer Stellar Question,NULL,NULL,0,NULL,NULL 9062,153572,907365,Notable Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9063,422812,690827,NULL,NULL,NULL,0,NULL,NULL 9064,1132552,1318119,Supporter,NULL,NULL,0,NULL,NULL 9065,131430,840253,Nice Answer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 9066,601688,1539978,Critic,NULL,NULL,0,NULL,NULL 9067,9611681,1539978,Critic,NULL,NULL,0,NULL,NULL 9068,537583,250162,Yearling Proofreader Notable Question Popular Question Yearling Notable Question Custodian Nice Question Yearling Caucus Great Answer,NULL,pThat can be done much simpler considering that int True is and int False is ppre codefrom datetime import datedef calculate age born today date today return today year born year today month today day lt born month born day code pre born is date datetime,0,NULL,NULL 9069,265513,250162,Yearling Proofreader Notable Question Popular Question Yearling Notable Question Custodian Nice Question Yearling Caucus Great Answer,NULL,pThat can be done much simpler considering that int True is and int False is ppre codefrom datetime import datedef calculate age born today date today return today year born year today month today day lt born month born day code pre born is date datetime,0,NULL,NULL 9070,505597,611765,NULL,NULL,NULL,0,NULL,NULL 9071,404683,1441515,NULL,NULL,NULL,0,NULL,NULL 9072,983362,687185,NULL,NULL,NULL,0,NULL,NULL 9073,700117,1266281,NULL,NULL,NULL,0,NULL,NULL 9074,1133616,284843,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 9075,1407885,845279,Nice Answer Notable Question Excavator Yearling Tumbleweed java Caucus Curious Nice Question Yearling Caucus Nice Answer Custodian Census Yearling,NULL,NULL,0,NULL,NULL 9076,242252,1434302,NULL,NULL,NULL,0,NULL,NULL 9077,6234295,149184,Pundit Necromancer Yearling,NULL,NULL,0,NULL,NULL 9078,229077,149184,Pundit Necromancer Yearling,NULL,NULL,0,NULL,NULL 9079,746460,1375719,NULL,NULL,NULL,0,NULL,NULL 9080,432707,1344619,NULL,NULL,NULL,0,NULL,NULL 9081,432410,404248,Teacher Nice Question,NULL,NULL,0,NULL,NULL 9082,66797,512277,Nice Answer Enlightened Excavator Popular Question Yearling Announcer Civic Duty Nice Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 9083,167649,351229,Reviewer Yearling Good Answer Yearling Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9084,140346,632028,NULL,NULL,NULL,0,NULL,NULL 9085,326458,1130894,Yearling Civic Duty Yearling Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 9086,60952,30362,Announcer Revival,NULL,NULL,0,NULL,NULL 9087,1235149,873178,NULL,NULL,NULL,0,NULL,NULL 9088,19750,172964,Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 9089,285342,762052,NULL,NULL,NULL,0,NULL,NULL 9090,112517,900680,NULL,NULL,NULL,0,NULL,NULL 9091,172374,876573,NULL,NULL,NULL,0,NULL,NULL 9092,1331079,611084,Curious Yearling Caucus Yearling Good Answer Revival Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 9093,328488,489826,NULL,NULL,NULL,0,NULL,NULL 9094,141916,1103376,NULL,NULL,NULL,0,NULL,NULL 9095,95939,364131,Popular Question Yearling,NULL,NULL,0,NULL,NULL 9096,578626,662063,Proofreader Nice Question Good Question Nice Question Famous Question Popular Question Good Question Famous Question Popular Question Yearling Popular Question Nice Answer Nice Question Famous Question Notable Question Nice Question Notable Question Good Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Favorite Question Popular Question Popular Question Good Question Popular Question Notable Question Favorite Question Popular Question Nice Question Popular Question Notable Question Promoter Nice Question Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Notable Question Popular Question Notable Question Good Question Notable Question Good Question Popular Question Popular Question Famous Question Notable Question Famous Question Popular Question Yearling Popular Question Famous Question Nice Question Popular Question Notable Question Great Question Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9097,1277928,662063,Proofreader Nice Question Good Question Nice Question Famous Question Popular Question Good Question Famous Question Popular Question Yearling Popular Question Nice Answer Nice Question Famous Question Notable Question Nice Question Notable Question Good Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Favorite Question Popular Question Popular Question Good Question Popular Question Notable Question Favorite Question Popular Question Nice Question Popular Question Notable Question Promoter Nice Question Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Notable Question Popular Question Notable Question Good Question Notable Question Good Question Popular Question Popular Question Famous Question Notable Question Famous Question Popular Question Yearling Popular Question Famous Question Nice Question Popular Question Notable Question Great Question Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9098,664460,546506,Student Supporter Scholar Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 9099,671048,1213696,Popular Question,NULL,NULL,0,NULL,NULL 9100,48810,424402,NULL,NULL,NULL,0,NULL,NULL 9101,1519035,547618,NULL,NULL,NULL,0,NULL,NULL 9102,2549158,1315743,Editor,NULL,NULL,0,NULL,NULL 9103,1234916,1315743,Editor,NULL,NULL,0,NULL,NULL 9104,511646,884025,NULL,NULL,NULL,0,NULL,NULL 9105,125211,745924,Good Answer Yearling Good Answer linux Good Answer Good Answer Nice Answer Curious Nice Question Nice Answer Enlightened Promoter Good Question Benefactor Nice Answer Caucus Nice Answer Enlightened Yearling Announcer Nice Answer Enlightened Good Answer Good Answer Nice Answer Popular Question Yearling Good Answer Announcer Good Answer Guru,NULL,pI always do it this way ppre code define GNU SOURCE include lt stdio gt include lt dlfcn gt static void real malloc size NULL static void mtrace init void real malloc dlsym RTLD NEXT malloc if NULL real malloc fprintf stderr Error in dlsym dlerror void malloc size size if real malloc NULL mtrace init void NULL fprintf stderr malloc size real malloc size fprintf stderr return code prepDon use constructors just initialize at first call to codemalloc code Use codeRTLD NEXT code to avoid codedlopen code You can also try href http www gnu org hello manual libc Hooks for Malloc html rel noreferrer malloc hooks Be aware that all those are GNU extensions and probably wont work elsewhere It not really necessary You can lookup malloc function on every call It will just be little slower,0,NULL,NULL 9106,26053,537002,Yearling Good Answer Yearling Yearling Nice Question Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 9107,128643,872433,Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9108,2276969,1391082,NULL,NULL,NULL,0,NULL,NULL 9109,360143,317916,Nice Answer Notable Question Yearling Guru Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 9110,35354,748252,NULL,NULL,NULL,0,NULL,NULL 9111,85589,373578,NULL,NULL,NULL,0,NULL,NULL 9112,196528,634415,Caucus Excavator Popular Question Caucus Popular Question Yearling Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 9113,4654,620706,Revival,NULL,NULL,0,NULL,NULL 9114,193873,130814,NULL,NULL,NULL,0,NULL,NULL 9115,84349,298073,Yearling Popular Question Popular Question Announcer Caucus Notable Question Famous Question Nice Question Popular Question Notable Question Nice Question Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 9116,1925116,892606,NULL,NULL,NULL,0,NULL,NULL 9117,312412,541796,Popular Question Good Answer Popular Question Notable Question Yearling Popular Question Nice Answer Enlightened Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9118,356405,1082245,NULL,NULL,NULL,0,NULL,NULL 9119,146095,403614,Good Answer Notable Question Notable Question Nice Answer Custodian Popular Question Yearling Revival Custodian Caucus Constituent Necromancer Nice Answer Enlightened Yearling Guru Necromancer Documentation User Curious Proofreader Informed Autobiographer Notable Question Nice Answer Necromancer Revival Necromancer Custodian php Caucus Constituent Revival Yearling Revival Necromancer Good Answer Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9120,178702,274416,NULL,NULL,NULL,0,NULL,NULL 9121,131361,387586,NULL,NULL,NULL,0,NULL,NULL 9122,599537,839195,NULL,NULL,NULL,0,NULL,NULL 9123,1168314,1364155,Scholar Informed Popular Question,NULL,NULL,0,NULL,NULL 9124,373656,1075023,Nice Answer,NULL,NULL,0,NULL,NULL 9125,171604,505131,NULL,NULL,NULL,0,NULL,NULL 9126,7695608,505131,NULL,NULL,NULL,0,NULL,NULL 9127,218524,460060,NULL,NULL,NULL,0,NULL,NULL 9128,203089,794407,Yearling Notable Question Critic Self-Learner Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9129,14166,1046712,Famous Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9130,489738,1139495,NULL,NULL,NULL,0,NULL,NULL 9131,72006,32120,Famous Question Popular Question Custodian Popular Question Yearling Informed Autobiographer Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 9132,171311,876491,NULL,NULL,NULL,0,NULL,NULL 9133,20314,786467,Popular Question Critic Notable Question Yearling Nice Question Popular Question Notable Question Good Answer Autobiographer Yearling Notable Question,NULL,NULL,0,NULL,NULL 9134,268360,191121,NULL,NULL,NULL,0,NULL,NULL 9135,382095,751398,NULL,NULL,NULL,0,NULL,NULL 9136,1514722,1356941,Student Scholar,NULL,NULL,0,NULL,NULL 9137,2514441,347445,Notable Question Notable Question Popular Question Caucus Caucus Custodian Custodian Yearling Civic Duty Informed Peer Pressure Necromancer Nice Answer Yearling Promoter Revival,NULL,NULL,0,NULL,NULL 9138,22434,591641,NULL,NULL,NULL,0,NULL,NULL 9139,1601686,327604,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9140,14671,327604,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9141,157832,12647,NULL,NULL,NULL,0,NULL,NULL 9142,160115,380309,NULL,NULL,NULL,0,NULL,NULL 9143,166893,176982,NULL,NULL,NULL,0,NULL,NULL 9144,1176271,804031,NULL,NULL,NULL,0,NULL,NULL 9145,399640,1353579,NULL,NULL,NULL,0,NULL,NULL 9146,1070302,633398,NULL,NULL,NULL,0,NULL,NULL 9147,353639,501190,NULL,NULL,NULL,0,NULL,NULL 9148,186846,486682,NULL,NULL,NULL,0,NULL,NULL 9149,83920,1383177,Informed Teacher,NULL,NULL,0,NULL,NULL 9150,536822,1044757,NULL,NULL,NULL,0,NULL,NULL 9151,348483,1482357,Yearling Revival Caucus Critic Popular Question Yearling Popular Question Nice Question Necromancer Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9152,1319240,1142614,NULL,NULL,NULL,0,NULL,NULL 9153,318792,284758,Popular Question Notable Question Nice Question Nice Question Necromancer Notable Question Taxonomist Yearling Socratic Popular Question Nice Question Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Nice Question Notable Question Famous Question Good Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Good Question Notable Question Nice Question Nice Question Popular Question Popular Question Famous Question Yearling Popular Question Notable Question Nice Question Famous Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Famous Question Notable Question Famous Question Popular Question Announcer Nice Question Popular Question Nice Question Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Great Question Good Question Popular Question Notable Question Yearling .net Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Question Notable Question Nice Question Popular Question Nice Question Famous Question Nice Question Nice Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9154,1566414,1332837,Yearling Nice Answer Nice Answer Enlightened Nice Answer Popular Question Yearling Announcer yii2 Yearling Good Answer,NULL,NULL,0,NULL,NULL 9155,128331,458850,Popular Question Famous Question Notable Question Favorite Question Famous Question Yearling Nice Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Yearling Great Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 9156,217672,637580,Caucus Popular Question,NULL,NULL,0,NULL,NULL 9157,180599,981041,NULL,NULL,NULL,0,NULL,NULL 9158,75120,165905,Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 9159,197107,385272,NULL,NULL,NULL,0,NULL,NULL 9160,913642,608354,Supporter Commentator Curious,NULL,NULL,0,NULL,NULL 9161,140395,193748,Notable Question Nice Answer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 9162,277552,300084,NULL,NULL,NULL,0,NULL,NULL 9163,68534,972382,NULL,NULL,NULL,0,NULL,NULL 9164,211906,316150,NULL,NULL,NULL,0,NULL,NULL 9165,166066,1190430,Yearling Announcer Nice Answer Enlightened Yearling Nice Answer Enlightened machine-learning Nice Answer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 9166,689089,978925,Famous Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 9167,61100,53182,Yearling Necromancer Nice Answer Necromancer Yearling Great Answer Yearling Good Question Guru,NULL,NULL,0,NULL,NULL 9168,200743,102046,Critic Notable Question,NULL,NULL,0,NULL,NULL 9169,1390948,1188337,Informed,NULL,NULL,0,NULL,NULL 9170,172848,1540757,NULL,NULL,NULL,0,NULL,NULL 9171,148431,768564,Popular Question,NULL,NULL,0,NULL,NULL 9172,19355,1307003,Notable Question,NULL,NULL,0,NULL,NULL 9173,92776,1324973,Supporter,NULL,NULL,0,NULL,NULL 9174,573259,259357,Popular Question,NULL,NULL,0,NULL,NULL 9175,229775,1386239,Popular Question,NULL,NULL,0,NULL,NULL 9176,43481,474606,NULL,NULL,NULL,0,NULL,NULL 9177,426585,851620,Popular Question Revival Yearling Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 9178,467734,806927,NULL,NULL,NULL,0,NULL,NULL 9179,111840,1015699,NULL,NULL,NULL,0,NULL,NULL 9180,716266,1227953,Popular Question Popular Question Caucus Famous Question Yearling Famous Question Notable Question Famous Question Revival Popular Question Caucus Nice Question Nice Question Nice Answer Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 9181,10768499,382770,Necromancer Promoter Popular Question Popular Question Popular Question Good Answer Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 9182,60615,382770,Necromancer Promoter Popular Question Popular Question Popular Question Good Answer Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 9183,140616,390734,NULL,NULL,NULL,0,NULL,NULL 9184,195243,398287,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9185,288815,473191,Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 9186,7895,969520,NULL,NULL,NULL,0,NULL,NULL 9187,194422,426412,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Yearling Nice Answer Nice Answer Excavator Good Answer Guru Nice Answer Caucus Good Answer Guru Nice Answer Enlightened Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 9188,134081,456797,Popular Question,NULL,NULL,0,NULL,NULL 9189,110417,207119,Notable Question Popular Question Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Question Custodian Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9190,664637,389885,Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9191,437854,1289087,NULL,NULL,NULL,0,NULL,NULL 9192,248601,1058189,NULL,NULL,NULL,0,NULL,NULL 9193,259054,1443882,Informed,NULL,NULL,0,NULL,NULL 9194,214538,695257,Teacher Enthusiast Supporter,NULL,NULL,0,NULL,NULL 9195,556201,739786,NULL,NULL,NULL,0,NULL,NULL 9196,8273374,739786,NULL,NULL,NULL,0,NULL,NULL 9197,125217,336429,NULL,NULL,NULL,0,NULL,NULL 9198,89764,655667,Yearling Popular Question Popular Question Famous Question Popular Question Notable Question jquery Census Excavator Yearling Nice Answer Popular Question Nice Answer Enlightened Popular Question Popular Question Notable Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9199,4774160,802943,Commentator Supporter Popular Question Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 9200,91293,312442,Notable Question Popular Question Custodian Editor Informed Revival,NULL,NULL,0,NULL,NULL 9201,228579,495355,Notable Question,NULL,NULL,0,NULL,NULL 9202,316676,1281831,NULL,NULL,NULL,0,NULL,NULL 9203,260626,90108,Supporter Popular Question,NULL,NULL,0,NULL,NULL 9204,127038,645857,NULL,NULL,NULL,0,NULL,NULL 9205,236560,910650,Student,NULL,pI found the answer href http www foliotek com devblog make table rows sortable using jquery ui sortable rel noreferrer here ppI modified it slightly to clone the row instead of adding widths to the original ppre code helper function tr var originals tr children var helper tr clone helper children each function index Set helper cell sizes to match the original sizes this width originals eq index width return helper code pre found the width was resulting in padded cells not QUITE being right swapped for this width originals eq index outerWidth,0,NULL,NULL 9206,10906,14895,Yearling,NULL,NULL,0,NULL,NULL 9207,63082,300863,Nice Answer Guru Nice Answer Yearling Good Answer Good Answer Good Answer Popular Question Great Answer Good Answer Enlightened Guru Caucus Constituent Popular Question Census Good Answer Nice Answer Electorate Nice Answer Nice Answer Enlightened Yearling Guru Good Answer Nice Answer Guru Good Answer Good Answer Great Answer Good Answer Caucus Great Answer Constituent Nice Answer Enlightened Good Answer Good Answer Good Answer Census Nice Answer Announcer Nice Answer Caucus Yearling Constituent Nice Answer Enlightened Great Answer Great Answer Announcer Guru Nice Answer,NULL,NULL,0,NULL,NULL 9208,448758,468057,NULL,NULL,NULL,0,NULL,NULL 9209,61859,1238591,NULL,NULL,NULL,0,NULL,NULL 9210,158020,620020,NULL,NULL,NULL,0,NULL,NULL 9211,4488978,1418711,Supporter Curious Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9212,1434642,1418711,Supporter Curious Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9213,652462,334496,NULL,NULL,NULL,0,NULL,NULL 9214,829061,922964,Editor Excavator,NULL,NULL,0,NULL,NULL 9215,294973,1024870,NULL,NULL,NULL,0,NULL,NULL 9216,208027,375025,Nice Answer Necromancer Yearling Nice Answer Yearling Curious Popular Question Yearling Popular Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9217,608873,180772,NULL,NULL,NULL,0,NULL,NULL 9218,278565,1110932,NULL,NULL,NULL,0,NULL,NULL 9219,42896,444215,Announcer Custodian Good Answer Custodian Custodian Yearling Great Answer Necromancer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 9220,37298,2140,Nice Answer Guru Good Answer Nice Answer Great Answer Good Answer Good Answer Yearling Necromancer Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Populist Guru Great Answer Nice Answer Enlightened Self-Learner Enlightened Enlightened Good Answer Nice Question Nice Answer Enlightened Yearling Documentation User Good Answer macos macos Guru Popular Question Guru Nice Answer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 9221,695725,721801,NULL,NULL,NULL,0,NULL,NULL 9222,419024,211676,Necromancer Critic Popular Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 9223,54072,95509,Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened Nice Answer Yearling Popular Question Great Answer Guru Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9224,16090,85125,Nice Answer Revival Nice Answer Yearling Nice Question Popular Question Good Answer Yearling Tumbleweed Necromancer Good Answer Populist Nice Answer Enlightened Good Answer Great Answer ruby-on-rails Yearling Notable Question Nice Answer Guru Nice Question,NULL,NULL,0,NULL,NULL 9225,350609,1002950,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9226,397305,1178402,Popular Question Commentator,NULL,NULL,0,NULL,NULL 9227,110885,407547,Nice Answer Enlightened Yearling Revival Revival Good Answer Yearling Necromancer Guru Nice Answer,NULL,NULL,0,NULL,NULL 9228,612044,447471,NULL,NULL,NULL,0,NULL,NULL 9229,41006,1001966,Popular Question Curious Commentator Critic Notable Question Nice Question Caucus Yearling Popular Question Popular Question Tumbleweed Popular Question Popular Question Yearling Promoter Popular Question Popular Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 9230,134232,194366,NULL,NULL,NULL,0,NULL,NULL 9231,10612449,194366,NULL,NULL,NULL,0,NULL,NULL 9232,101565,292541,NULL,NULL,NULL,0,NULL,NULL 9233,440322,730624,NULL,NULL,NULL,0,NULL,NULL 9234,49844,496046,Nice Answer Custodian Popular Question Favorite Question Necromancer Civic Duty Excavator Notable Question Yearling Nice Answer Pundit Popular Question Nice Answer Revival Good Answer Announcer Popular Question Good Answer Announcer Revival Necromancer Yearling Notable Question Census Custodian Custodian php Great Question Mortarboard Necromancer Tenacious Necromancer Nice Answer Necromancer Inquisitive Popular Question Nice Answer Enlightened Popular Question Yearling,NULL,strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre still get nasty loop when try this Same for similar code in other answers strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre it for the information of other people coming across this in future pointing out that the answer is likely out of date not expecting anything to happen strongUPDATE Aug 31 2018 See fix below for later versions of Vagrant strong ppHere is version based on Louis St Amour solution together with Rob Kinyon comment about re exec if new plugin was installeed use it successfully in my own setup ppre coderequired plugins vagrant share vagrant vbguest plugins to install required plugins select plugin not Vagrant has plugin plugin if not plugins to install empty puts Installing plugins plugins to install join if system vagrant plugin install plugins to install join exec vagrant ARGV join else abort Installation of one or more plugins has failed Aborting endend code pre sure Vagrant latest ruby 1p57 may have been installed from homebrew OS 10 12 My assumption was that this year old answer was simply not compatible with recent Vagrant pI was searching for solution to this exact problem and came across very simple way of achieving the effect was going for ppre codefooter box shadow 50vh 50vh 000 code prepThis creates shadow which will fall off the screen if not needed but otherwise will give 100vh full viewport height worth of coverage to the space below the footer so the body background doesn appear below it can make up my mind whether like or hate this solution but it sure works worry about performance Regardless it better to use 50vh rather than precise length Submitted an edit,0,NULL,NULL 9235,270369,1540333,NULL,NULL,NULL,0,NULL,NULL 9236,1796204,661183,NULL,NULL,NULL,0,NULL,NULL 9237,25838,661183,NULL,NULL,NULL,0,NULL,NULL 9238,1851354,1472229,Popular Question Notable Question Good Answer Yearling Necromancer Announcer Custodian Guru Yearling Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9239,9100649,1472229,Popular Question Notable Question Good Answer Yearling Necromancer Announcer Custodian Guru Yearling Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9240,135469,954494,NULL,NULL,NULL,0,NULL,NULL 9241,631437,980825,Popular Question Necromancer Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9242,55702,905414,Yearling Nice Answer Enlightened Yearling Yearling Custodian Custodian Informed,NULL,NULL,0,NULL,NULL 9243,653642,165667,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9244,154134,615820,NULL,NULL,NULL,0,NULL,NULL 9245,326676,1544504,Student Informed,NULL,NULL,0,NULL,NULL 9246,114095,1328477,Yearling,NULL,NULL,0,NULL,NULL 9247,37718,650800,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 9248,38183,548618,Revival Popular Question Notable Question Yearling Popular Question Nice Question Nice Answer Famous Question Popular Question Necromancer Notable Question Popular Question Yearling Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9249,448809,614360,NULL,NULL,NULL,0,NULL,NULL 9250,392150,1126591,NULL,NULL,NULL,0,NULL,NULL 9251,1627877,1126591,NULL,NULL,NULL,0,NULL,NULL 9252,41789,392981,NULL,NULL,NULL,0,NULL,NULL 9253,268119,521197,Nice Answer Yearling Caucus Caucus Caucus Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 9254,67741,335412,Popular Question Notable Question Notable Question Yearling Necromancer Popular Question Great Question Popular Question Yearling Notable Question Yearling Nice Answer,NULL,pYou can write modulesup1 sup that can measure given function The following function returns the runtime of given function in seconds ppre codedefmodule Benchmark do def measure function do function gt timer tc gt elem gt Kernel 000 000 endend code prepUse it like this ppre codeiex gt Benchmark measure fn gt 123456 654321 end 0e code prepIf you want to use that for Benchmarking then there is another answer ppA better approach than measuring single run execution time is to measure operations per timeframe This takes the code under test and executes it repeatingly within given timeframe This methodology yields more accurate results ppThere is library called href https github com mroth benchwarmer rel noreferrer Benchwarmer you can use for that ppAdd Benchwarmer to your codemix exs code ppre codedef deps do benchwarmer gt end code prepSimply pass an inline function ppre codeiex gt Benchwarmer benchmark fn gt 123456 654321 end Function lt 20 90072148 in erl eval expr gt sec 2M iterations 61 μs op Benchwarmer Results code preulli Code taken from href http www littlelines com blog 2014 06 27 elixir vs ruby showdown part one rel noreferrer http www littlelines com blog 2014 06 27 elixir vs ruby showdown part one liliAnother Benchmarking library called Benchfella href https github com alco benchfella rel noreferrer https github com alco benchfella li ul Benchwarmer version should be or installing dependencies will fail,0,NULL,NULL 9255,278633,284349,Nice Answer,NULL,NULL,0,NULL,NULL 9256,443431,1164605,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 9257,375887,1454995,NULL,NULL,NULL,0,NULL,NULL 9258,4540276,1454995,NULL,NULL,NULL,0,NULL,NULL 9259,62155,18715,Good Answer Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 9260,270474,1471907,Informed,NULL,NULL,0,NULL,NULL 9261,54799,1169194,Nice Question Notable Question Yearling Nice Question Notable Question Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Famous Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 9262,1765409,1169194,Nice Question Notable Question Yearling Nice Question Notable Question Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Famous Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 9263,1555745,1039565,Caucus Scholar,NULL,NULL,0,NULL,NULL 9264,346402,1190545,Notable Question,NULL,NULL,0,NULL,NULL 9265,383111,383632,Nice Answer Enlightened Notable Question Popular Question Popular Question Yearling Informed Autobiographer Famous Question Custodian Cleanup Citizen Patrol Popular Question Yearling Caucus Notable Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 9266,479368,1456518,NULL,NULL,NULL,0,NULL,NULL 9267,22703,977315,NULL,NULL,NULL,0,NULL,NULL 9268,1511706,309311,Yearling Great Answer Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 9269,411997,486285,Notable Question Curious Popular Question,NULL,NULL,0,NULL,NULL 9270,311983,85036,Yearling Great Answer Yearling Student Yearling Nice Answer Tumbleweed Autobiographer Custodian,NULL,NULL,0,NULL,NULL 9271,570457,1302813,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9272,312446,670050,NULL,NULL,NULL,0,NULL,NULL 9273,193688,1005161,NULL,NULL,NULL,0,NULL,NULL 9274,167795,503548,Good Answer Yearling Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 9275,196026,124384,Guru Yearling Caucus Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 9276,306438,1359799,Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 9277,600883,311600,Famous Question Famous Question Notable Question Popular Question Notable Question Yearling Good Question Famous Question Good Question Nice Question Yearling Popular Question Nice Question Yearling Notable Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 9278,44003,649830,Popular Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 9279,224781,74198,Popular Question Good Answer Nice Question Yearling Popular Question Nice Answer Caucus Favorite Question Yearling Nice Question Nice Answer Notable Question Popular Question Yearling Great Answer Nice Answer Custodian Guru Good Answer,NULL,NULL,0,NULL,NULL 9280,9746,352392,NULL,NULL,NULL,0,NULL,NULL 9281,216096,580676,NULL,NULL,NULL,0,NULL,NULL 9282,141001,492812,Supporter,NULL,NULL,0,NULL,NULL 9283,84738,1434878,Caucus Constituent,NULL,NULL,0,NULL,NULL 9284,762201,1122495,NULL,NULL,NULL,0,NULL,NULL 9285,1226767,1258945,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9286,29684,161588,NULL,NULL,NULL,0,NULL,NULL 9287,22835,523156,Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 9288,1331054,996313,Popular Question Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 9289,6802585,996313,Popular Question Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 9290,674774,355460,NULL,NULL,NULL,0,NULL,NULL 9291,513785,470592,NULL,NULL,NULL,0,NULL,NULL 9292,2011881,451367,Famous Question Popular Question Curious,NULL,NULL,0,NULL,NULL 9293,534824,763799,Vox Populi Civic Duty Custodian Yearling Student Scholar Strunk & White ruby-on-rails Revival Nice Answer Good Answer Popular Question Yearling Notable Question Necromancer Nice Answer Custodian Yearling Popular Question Necromancer,NULL,NULL,1,NULL,Golang check if string is valid path go pThe Golang filepath module href https golang org pkg path filepath https golang org pkg path filepath contains few functions for manipulating paths and codeos Stat code can be used to check if file exists Is there way to check if string actually forms valid path at all regardless of whether there file at that path or not pThis problem sounds very simple but it is actually not Here is two possible solutions that found ph1Solution Academic h1pThe idea here is to check given filepath based on rules ph2Problems h2olliOperating system UNIX Windows liliFilesystem liliReserved keywords li olp strongOperating system strong ppThe first one is the easiest Go provides various tools for OS specific filenames separators ppExample in the href https golang org pkg os PathSeparator os package ppre codeconst PathSeparator OS specific path separator PathListSeparator OS specific path list separator code prepAnother one in the href https golang org pkg path filepath VolumeName filepath package ppre code VolumeName returns leading volume name Given foo bar it returns on Windows Given host share foo it returns host share On other platforms it returns func VolumeName path string string return path volumeNameLen path code prep strongFilesystem strong ppFilesystems have different restrictions The maximum length or the charset allowed may vary Unfortunately there is no way you can tell not as far as know at least which filesystem your path will traverse pp strongReserved keywords strong ppHave blacklist of all reserved keywords for given OS ph2Implementation h2pFor this solution would build href https en wikipedia org wiki Lexical analysis lexer href https en wikipedia org wiki Parsing parser ppThe tradeoff is that it would not guarantee 100 that filepath is valid ph1Solution Empirical h1pAttempt to create the file and delete it right after ppre codefunc IsValid fp string bool Check if file already exists if err os Stat fp err nil return true Attempt to create it var byte if err ioutil WriteFile fp 0644 err nil os Remove fp And delete it return true return false code prepThe main benefit of this solution is that it is straightforward and more accurate If file already exists or can be created at given path it means it is valid However this solution can also invalidate valid paths because of restricted access ph1Summary h1pThe first solution will be less accurate than the second one even though more correct from puristic point of view The solution you should pick up depends on your need Do you prefer false positives or false negatives The first solution can give you false positives while the second one false negatives 9294,1133425,1027810,Revival Yearling Nice Answer Necromancer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 9295,34616,128319,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9296,93862,416385,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9297,3089424,537276,NULL,NULL,NULL,0,NULL,NULL 9298,472178,537276,NULL,NULL,NULL,0,NULL,NULL 9299,568551,800316,NULL,NULL,NULL,0,NULL,NULL 9300,581358,895034,NULL,NULL,NULL,0,NULL,NULL 9301,31652,201253,NULL,NULL,NULL,0,NULL,NULL 9302,372868,1041139,Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 9303,1674374,659691,Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 9304,226426,633980,Critic Yearling Nice Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 9305,659391,841108,Talkative Announcer linker makefile operating-system Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer system-calls Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer gcc Good Answer Announcer pthreads Notable Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Populist Nice Answer Enlightened macros Nice Answer Nice Answer Enlightened Good Answer Nice Question Inquisitive Nice Question Nice Answer Enlightened Announcer bash Announcer Guru Nice Answer x86 c-preprocessor Caucus Nice Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer ocaml Nice Answer Nice Answer Enlightened Necromancer Revival Nice Answer Enlightened Revival Census Nice Answer Popular Question Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Notable Question Announcer Announcer pointers Nice Question signals Nice Answer Announcer Good Answer debugging file Nice Answer Enlightened Nice Question Nice Answer Announcer Good Answer Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Good Answer Guru Excavator python Nice Answer Announcer Nice Answer Enlightened Announcer Announcer Nice Answer Popular Question Announcer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Popular Question Enlightened Announcer Announcer Popular Question Announcer qt Reviewer Custodian unix Custodian Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer Documentation User Announcer Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Vox Populi scanf Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Guru Announcer compiler-optimization Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Necromancer Announcer Announcer Enlightened Announcer Nice Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer time Enlightened Announcer Census Announcer Nice Answer Good Answer Revival Announcer Nice Answer Nice Answer Necromancer Nice Answer Enlightened Announcer Popular Question Nice Answer Good Answer Guru Nice Answer Announcer Nice Answer Enlightened Nice Answer Announcer macos Good Answer Nice Answer Announcer Announcer Announcer Nice Answer Nice Answer Nice Answer Enlightened Popular Question stack Nice Answer Enlightened Nice Answer Announcer Popular Question Nice Answer Enlightened Guru Announcer Announcer Guru embedded Nice Answer Nice Answer Enlightened Announcer Announcer Nice Answer Announcer Announcer Yearling Announcer Announcer Nice Answer Great Answer Guru Enlightened Announcer Announcer Nice Answer Nice Answer Nice Answer Announcer Nice Answer Announcer Populist Good Answer Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Announcer visual-studio Nice Answer Announcer Nice Answer Nice Answer Enlightened Deputy,NULL,Parse string into argv argc arguments pIs there way in to parse piece of text and obtain values for argv and argc as if the text had been passed to an application on the command line ppThis doesn have to work on Windows just Linux also don care about quoting of arguments You probably also want globbing so see glob http man7 org linux man pages man7 glob html and follow the references there Is recent GTK 22 still Boehm GC friendly thread issue linux multithreading gtk boehm gc pThe href https www hboehm info gc rel noreferrer Boehm conservative garbage collector is quite useful href https www sop inria fr indes fp Bigloo rel noreferrer Bigloo is using it href http www gnu org software guile rel noreferrer Guile is using something similar etc notably on Linux which is the only OS care about using Debian Sid x86 64 if that matters and codelibgc dev code package is version code1 code so the Boehm GC is ppHowever strongBoehm GC strong requires to be aware of every thread using it Its href https github com ivmai bdwgc blob master include gc pthread redirects L80 rel noreferrer gc pthreads redirects more or less internal header file strongis redefining codepthread create code strong as ppre code define pthread create GC pthread create code prepActually what Boehm GC needs is href https github com ivmai bdwgc blob master include gc L1393 rel noreferrer GC register my thread to be called early in the new thread call stack and codeGC pthread create code is doing that ppIn the past Glib 46 provided way to redefine memory allocation using href https developer gnome org glib 52 glib Memory Allocation html GMemVTable rel noreferrer codestruct GMemVTable code which is strongdeprecated strong strongand cannot be used strong anymore my Debian codelibglib2 02 dev code package is version code2 50 code There is href https developer gnome org glib 52 glib Memory Allocation html mem gc friendly rel noreferrer codeg mem gc friendly code global boolean but when looking into Glib source code it simply clears memory zones before freeing them ppRecent GTK3 my codelibgtk dev code package has version code3 22 11 code are creating threads for something probably related to Dbus and perhaps also to GtkTextView using indirectly codepthread create code thru href https developer gnome org glib 52 glib Threads html rel noreferrer Glib thread functions And there is no way except by patching the source code to be notified of that thread creation afraid than any GTK callback would install using href https developer gnome org gobject 52 gobject Signals html signal connect rel noreferrer codeg signal connect code might be called from these threads Or that if subclass GTK widget with some methods which might use or access some codeGC malloc code ed buffer there could be disaster ppOn the other hand there is strong coding rule in GTK that all GTK operations should happen only in the main thread To quote href https developer gnome org gdk3 stable gdk3 Threads html rel noreferrer Gdk3 Threads page pblockquote strongGTK strong however strongis emnot em thread safe strong You should only use GTK and GDK from the thread codegtk init code and codegtk main code were called on This is usually referred to as the “main thread” blockquotepIf follow this rule myself am sure that no internal GTK code will ever call my callbacks using Boehm GC from some non main thread ppMy intuition is that if ever codeGC alloc code is called from outside the main thread by GTK internals not directly by my code disaster would happen because these GTK internal threads have not been started with codeGC pthread create code there might call some of my code because am subclassing some existing GTK widget or because connected some GTK signal even if don myself code things using GTK amp Boehm GC outside of the main thread ppThe point is that Boehm GC needs to scan every stack in every thread possibly using it ppFWIW reported possible href https bugzilla gnome org show bug cgi id 780815 rel noreferrer bug 780815 on GTK bugzilla ppA typical example is codegtk 22 11 examples application9 code from GTK 22 11 tarball codepthread create code href https bugzilla gnome org page cgi id traceparser trace html amp trace id 237313 rel noreferrer emis called em very indirectly by codeg application run code via codeg bus get sync code Yes because some of these notably for GtkTextView might run mutex locked in another thread And in that case GTK has no synchronization issues but Boehm GC is unhappy Is recent GTK 22 still Boehm GC friendly thread issue linux multithreading gtk boehm gc pThe href https www hboehm info gc rel noreferrer Boehm conservative garbage collector is quite useful href https www sop inria fr indes fp Bigloo rel noreferrer Bigloo is using it href http www gnu org software guile rel noreferrer Guile is using something similar etc notably on Linux which is the only OS care about using Debian Sid x86 64 if that matters and codelibgc dev code package is version code1 code so the Boehm GC is ppHowever strongBoehm GC strong requires to be aware of every thread using it Its href https github com ivmai bdwgc blob master include gc pthread redirects L80 rel noreferrer gc pthreads redirects more or less internal header file strongis redefining codepthread create code strong as ppre code define pthread create GC pthread create code prepActually what Boehm GC needs is href https github com ivmai bdwgc blob master include gc L1393 rel noreferrer GC register my thread to be called early in the new thread call stack and codeGC pthread create code is doing that ppIn the past Glib 46 provided way to redefine memory allocation using href https developer gnome org glib 52 glib Memory Allocation html GMemVTable rel noreferrer codestruct GMemVTable code which is strongdeprecated strong strongand cannot be used strong anymore my Debian codelibglib2 02 dev code package is version code2 50 code There is href https developer gnome org glib 52 glib Memory Allocation html mem gc friendly rel noreferrer codeg mem gc friendly code global boolean but when looking into Glib source code it simply clears memory zones before freeing them ppRecent GTK3 my codelibgtk dev code package has version code3 22 11 code are creating threads for something probably related to Dbus and perhaps also to GtkTextView using indirectly codepthread create code thru href https developer gnome org glib 52 glib Threads html rel noreferrer Glib thread functions And there is no way except by patching the source code to be notified of that thread creation afraid than any GTK callback would install using href https developer gnome org gobject 52 gobject Signals html signal connect rel noreferrer codeg signal connect code might be called from these threads Or that if subclass GTK widget with some methods which might use or access some codeGC malloc code ed buffer there could be disaster ppOn the other hand there is strong coding rule in GTK that all GTK operations should happen only in the main thread To quote href https developer gnome org gdk3 stable gdk3 Threads html rel noreferrer Gdk3 Threads page pblockquote strongGTK strong however strongis emnot em thread safe strong You should only use GTK and GDK from the thread codegtk init code and codegtk main code were called on This is usually referred to as the “main thread” blockquotepIf follow this rule myself am sure that no internal GTK code will ever call my callbacks using Boehm GC from some non main thread ppMy intuition is that if ever codeGC alloc code is called from outside the main thread by GTK internals not directly by my code disaster would happen because these GTK internal threads have not been started with codeGC pthread create code there might call some of my code because am subclassing some existing GTK widget or because connected some GTK signal even if don myself code things using GTK amp Boehm GC outside of the main thread ppThe point is that Boehm GC needs to scan every stack in every thread possibly using it ppFWIW reported possible href https bugzilla gnome org show bug cgi id 780815 rel noreferrer bug 780815 on GTK bugzilla ppA typical example is codegtk 22 11 examples application9 code from GTK 22 11 tarball codepthread create code href https bugzilla gnome org page cgi id traceparser trace html amp trace id 237313 rel noreferrer emis called em very indirectly by codeg application run code via codeg bus get sync code forgot the details But did run gdb on some GtkTextView code few years ago and was suprised by several threads,1,Is recent GTK 22 still Boehm GC friendly thread issue linux multithreading gtk boehm gc pThe href https www hboehm info gc rel noreferrer Boehm conservative garbage collector is quite useful href https www sop inria fr indes fp Bigloo rel noreferrer Bigloo is using it href http www gnu org software guile rel noreferrer Guile is using something similar etc notably on Linux which is the only OS care about using Debian Sid x86 64 if that matters and codelibgc dev code package is version code1 code so the Boehm GC is ppHowever strongBoehm GC strong requires to be aware of every thread using it Its href https github com ivmai bdwgc blob master include gc pthread redirects L80 rel noreferrer gc pthreads redirects more or less internal header file strongis redefining codepthread create code strong as ppre code define pthread create GC pthread create code prepActually what Boehm GC needs is href https github com ivmai bdwgc blob master include gc L1393 rel noreferrer GC register my thread to be called early in the new thread call stack and codeGC pthread create code is doing that ppIn the past Glib 46 provided way to redefine memory allocation using href https developer gnome org glib 52 glib Memory Allocation html GMemVTable rel noreferrer codestruct GMemVTable code which is strongdeprecated strong strongand cannot be used strong anymore my Debian codelibglib2 02 dev code package is version code2 50 code There is href https developer gnome org glib 52 glib Memory Allocation html mem gc friendly rel noreferrer codeg mem gc friendly code global boolean but when looking into Glib source code it simply clears memory zones before freeing them ppRecent GTK3 my codelibgtk dev code package has version code3 22 11 code are creating threads for something probably related to Dbus and perhaps also to GtkTextView using indirectly codepthread create code thru href https developer gnome org glib 52 glib Threads html rel noreferrer Glib thread functions And there is no way except by patching the source code to be notified of that thread creation afraid than any GTK callback would install using href https developer gnome org gobject 52 gobject Signals html signal connect rel noreferrer codeg signal connect code might be called from these threads Or that if subclass GTK widget with some methods which might use or access some codeGC malloc code ed buffer there could be disaster ppOn the other hand there is strong coding rule in GTK that all GTK operations should happen only in the main thread To quote href https developer gnome org gdk3 stable gdk3 Threads html rel noreferrer Gdk3 Threads page pblockquote strongGTK strong however strongis emnot em thread safe strong You should only use GTK and GDK from the thread codegtk init code and codegtk main code were called on This is usually referred to as the “main thread” blockquotepIf follow this rule myself am sure that no internal GTK code will ever call my callbacks using Boehm GC from some non main thread ppMy intuition is that if ever codeGC alloc code is called from outside the main thread by GTK internals not directly by my code disaster would happen because these GTK internal threads have not been started with codeGC pthread create code there might call some of my code because am subclassing some existing GTK widget or because connected some GTK signal even if don myself code things using GTK amp Boehm GC outside of the main thread ppThe point is that Boehm GC needs to scan every stack in every thread possibly using it ppFWIW reported possible href https bugzilla gnome org show bug cgi id 780815 rel noreferrer bug 780815 on GTK bugzilla ppA typical example is codegtk 22 11 examples application9 code from GTK 22 11 tarball codepthread create code href https bugzilla gnome org page cgi id traceparser trace html amp trace id 237313 rel noreferrer emis called em very indirectly by codeg application run code via codeg bus get sync code,change background color of GtkTextView GTK 22 using CSS css linux gtk3 pI would like to change on Linux Debian Sid x86 64 GTK 22 the emdefault em background color for untagged text in href https developer gnome org gtk3 unstable GtkTextView html rel nofollow noreferrer GtkTextView or else its GtkTextBuffer pp href https stackoverflow com 21485264 841108 This and href https stackoverflow com 15516032 841108 that answers don help are obsolete ppIn my href https github com bstarynk bismon rel nofollow noreferrer bismon program see href https stackoverflow com 46809878 841108 this question for details tried on some global codeextern GtkWidget commandview BM code initialized with ppre codecommandview BM gtk text view new with buffer commandbuf BM gtk widget set name commandview BM commandview code prepTo use ppre code commandview background color seashell font size 18px font family Inconsolata code prepin my codebismon css code file but that does not work Replacing code commandview code by code commandview text code or code commandview view code don change anything ppI would also be happy if some emdefault em tag existed in href https developer gnome org gtk3 unstable GtkTextBuffer html rel nofollow noreferrer GtkTextBuffer but this does not seem to be the case ppI have at least two textviews in the same window one for commands another for logging and would like them to have different background colors pThe working syntax in CSS file is with space to separate the name from the class so in my case ppre code commandview text background color seashell font size 19px font family Inconsolata code pre 9306,22584,562231,NULL,NULL,NULL,0,NULL,NULL 9307,503010,384016,Nice Question Notable Question Nice Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Good Question Good Question Favorite Question Popular Question Famous Question Notable Question Great Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Nice Question Nice Question Favorite Question Yearling Favorite Question Favorite Question Good Question Famous Question Popular Question Popular Question Notable Question Good Question Popular Question Revival Great Question Great Question Notable Question Great Question Popular Question Nice Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question,NULL,NULL,1,webpack ERROR in CommonsChunkPlugin While running in normal mode it not allowed to use non entry chunk javascript webpack pSo When try to split my application into application js file and libraries js file everything works fine When try to split it up into application js file and libraries js files get this error when building pp codeERROR in CommonsChunkPlugin While running in normal mode it not allowed to use non entry chunk libraries react code ppAnyone know what might be causing this error ppMy configuration for webpack is ppre codevar webpack require webpack var ExtractTextPlugin require extract text webpack plugin var extractSass new ExtractTextPlugin main css module exports module loaders test jsx loader babel exclude node modules query presets react es2015 test scss loader extractSass extract css sass test html loader file name name ext test misc js loader file name misc name ext test png jpg jpeg loader file name images name ext plugins extractSass new webpack optimize CommonsChunkPlugin libraries core libraries core js new webpack optimize CommonsChunkPlugin libraries react libraries react js entry 3rd party libraries libraries core lodash superagent bluebird eventemitter3 object assign schema inspector jsuri store cacheable immutable libraries react react react dom react router nucleus react application code application web app application jsx mocks mocked api web app mock api js mocked local storage web app mock local storage js output path web build publicPath build filename name js code pre,NULL 9308,593457,1038102,Tumbleweed Student Self-Learner Scholar Critic Caucus Yearling Informed Autobiographer Nice Answer Announcer Popular Question,NULL,NULL,0,NULL,NULL 9309,901769,82896,NULL,NULL,NULL,0,NULL,NULL 9310,90509,42059,Yearling Student Nice Answer Enlightened Yearling Census Nice Answer Enlightened Tenacious Caucus Yearling,NULL,NULL,0,NULL,NULL 9311,451683,925253,Custodian Documentation User Yearling Critic Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 9312,420898,816248,Custodian Popular Question,NULL,NULL,0,NULL,NULL 9313,180920,625440,Nice Answer Yearling Good Answer Good Answer Good Answer Yearling Nice Answer Enlightened Guru Nice Answer Yearling Guru Nice Answer Guru,NULL,NULL,0,NULL,NULL 9314,199250,1251050,NULL,NULL,NULL,0,NULL,NULL 9315,85183,1220118,Popular Question,NULL,NULL,0,NULL,NULL 9316,181054,797672,Yearling Caucus Constituent Census Yearling Caucus Constituent Reviewer Census Nice Answer Caucus Constituent Yearling,NULL,pre codegit clone https username password com username repository git code prepThis way worked for me from github repository pp strongEdit based on Michael Scharf comment strong ppYou can leave out the password so that it won be logged your bash history file ppre codegit clone https username com username repository git code prepIt will prompt you for your password See Benjamin Gruenbaum comment,0,NULL,NULL 9317,1038216,653161,NULL,NULL,NULL,0,NULL,NULL 9318,213697,999985,NULL,NULL,NULL,0,NULL,NULL 9319,413325,1423623,Student Scholar,NULL,NULL,0,NULL,NULL 9320,169825,416370,Editor Scholar Census,NULL,NULL,0,NULL,NULL 9321,87242,557616,Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 9322,193384,270237,Famous Question Yearling Notable Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 9323,88760,294082,Yearling,NULL,NULL,0,NULL,NULL 9324,739688,841512,NULL,NULL,NULL,0,NULL,NULL 9325,44687,548609,NULL,NULL,NULL,0,NULL,NULL 9326,1501112,602152,Famous Question Popular Question Notable Question Popular Question Popular Question Promoter Nice Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9327,53727,699686,NULL,NULL,NULL,0,NULL,NULL 9328,1462108,1021087,NULL,NULL,NULL,0,NULL,NULL 9329,743451,670720,NULL,NULL,NULL,0,NULL,NULL 9330,1515147,1183184,NULL,NULL,NULL,0,NULL,NULL 9331,156552,88851,Popular Question Yearling Great Answer Great Answer Good Answer Famous Question Guru Famous Question Famous Question Popular Question Famous Question Nice Answer Enlightened Yearling Nice Answer Guru Great Answer Guru Great Answer Good Answer Populist Yearling Popular Question Nice Answer Great Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 9332,755546,1050075,NULL,NULL,NULL,0,NULL,NULL 9333,27333,244618,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9334,467534,670099,NULL,NULL,NULL,0,NULL,NULL 9335,6214261,1279655,NULL,NULL,NULL,0,NULL,NULL 9336,588119,782450,NULL,NULL,NULL,0,NULL,NULL 9337,79619,1188498,Supporter Necromancer,NULL,NULL,0,NULL,NULL 9338,817152,1231355,Informed Autobiographer Teacher Revival Announcer Supporter,NULL,NULL,0,NULL,NULL 9339,1556733,799307,NULL,NULL,NULL,0,NULL,NULL 9340,131162,246567,Tumbleweed Caucus Popular Question Yearling Nice Question Yearling Good Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 9341,138581,356815,Famous Question Famous Question Popular Question Popular Question Yearling Reviewer Popular Question Nice Answer Notable Question Popular Question Famous Question Revival Notable Question Caucus Notable Question Popular Question Custodian Nice Question Announcer Yearling Necromancer Popular Question Notable Question Caucus Popular Question Announcer Popular Question Good Question Famous Question Popular Question Notable Question Documentation User Popular Question Good Question Nice Answer Popular Question Custodian Good Answer Yearling Nice Answer Nice Question Nice Question Popular Question Popular Question Nice Question,NULL,pHere generic friendly version ppre codepublic class MapUtil public static lt extends Comparable lt super gt gt Map lt gt sortByValue Map lt gt map List lt Entry lt gt gt list new ArrayList lt gt map entrySet list sort Entry comparingByValue Map lt gt result new LinkedHashMap lt gt for Entry lt gt entry list result put entry getKey entry getValue return result code pre The Java version only compiles in my Eclipse environment if replace LinkedHashMap new by LinkedHashMapK new pMy solution is not specific to certain ad network and is very lightweight ve been running it in production for few years AdBlock blocks all URLs containing the word ads So this is what did ppI added small js file to my webroot with the name codeads js code ppThis is the only line of code in that file ppre class lang js prettyprint override codevar canRunAds true code prepThen somewhere in my page ppre class lang html prettyprint override code lt html gt lt head gt lt script src js ads js gt lt script gt lt head gt lt body gt lt script gt if window canRunAds undefined adblocker detected show fallback showFallbackImage lt script gt lt body gt lt html gt code prepFiles like ads js are blocked by at least these adblockers on Chrome pulliAdBlock liliAdblock Plus liliAdblock Pro li ulp Yes these are completely different browser extensions ppThis does not work with pulliGhostery Only blocks actual doubleclick appnexus urls li ul This is very nice approach But it is client based js looking for serverside solution where the website could deliver another HTML in case of an active AdBlocker instead of doing all the hiding functionality in javascript Any server side solution,0,NULL,NULL 9342,1363810,1239331,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 9343,145633,305969,Nice Answer Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9344,74094,735685,NULL,NULL,NULL,0,NULL,NULL 9345,176225,1112530,Curious Civic Duty Notable Question Popular Question Promoter Benefactor Caucus Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9346,124095,341925,Notable Question,NULL,NULL,0,NULL,NULL 9347,113708,137246,NULL,NULL,NULL,0,NULL,NULL 9348,123492,510781,NULL,NULL,NULL,0,NULL,NULL 9349,110821,126855,Great Answer Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Question Great Question Famous Question Yearling Popular Question Popular Question Popular Question Nice Question Nice Answer Good Answer Nice Answer Necromancer Popular Question Notable Question Notable Question Popular Question Great Question Popular Question Revival Favorite Question Popular Question Nice Answer Nice Question Popular Question Favorite Question Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question Nice Question Nice Question Nice Question Famous Question Popular Question Nice Question Nice Question Famous Question Good Question Nice Question Custodian Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Nice Answer Revival Nice Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 9350,6435564,126855,Great Answer Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Question Great Question Famous Question Yearling Popular Question Popular Question Popular Question Nice Question Nice Answer Good Answer Nice Answer Necromancer Popular Question Notable Question Notable Question Popular Question Great Question Popular Question Revival Favorite Question Popular Question Nice Answer Nice Question Popular Question Favorite Question Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question Nice Question Nice Question Nice Question Famous Question Popular Question Nice Question Nice Question Famous Question Good Question Nice Question Custodian Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Nice Answer Revival Nice Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 9351,104360,605275,NULL,NULL,NULL,0,NULL,NULL 9352,27009,169478,Notable Question Documentation User,NULL,NULL,0,NULL,NULL 9353,227189,1450772,Nice Question,NULL,NULL,0,NULL,NULL 9354,1184150,1338054,Curious Nice Answer Yearling Popular Question Popular Question Notable Question Notable Question Critic Yearling Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 9355,118529,1377343,Tumbleweed Editor,NULL,NULL,0,NULL,NULL 9356,35649,711724,NULL,NULL,NULL,0,NULL,NULL 9357,190701,178258,NULL,NULL,NULL,0,NULL,NULL 9358,76830,419369,Yearling Commentator Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 9359,304415,546571,NULL,NULL,NULL,0,NULL,NULL 9360,3331,295615,Popular Question Famous Question Yearling Autobiographer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 9361,91452,1390389,Supporter,NULL,NULL,0,NULL,NULL 9362,720149,889356,NULL,NULL,NULL,0,NULL,NULL 9363,1520674,1401980,Popular Question Self-Learner Yearling Popular Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 9364,2996672,1455867,Autobiographer Informed,NULL,NULL,0,NULL,NULL 9365,1509600,1455867,Autobiographer Informed,NULL,NULL,0,NULL,NULL 9366,98952,338951,Yearling Yearling,NULL,NULL,0,NULL,NULL 9367,33921,59511,Critic Commentator Census Yearling,NULL,NULL,0,NULL,NULL 9368,55004,847626,Excavator Caucus Notable Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 9369,558422,827134,Teacher Popular Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 9370,77314,637399,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 9371,1358432,1094638,Popular Question,NULL,NULL,0,NULL,NULL 9372,229717,267505,NULL,NULL,NULL,0,NULL,NULL 9373,480518,1153934,Teacher,NULL,NULL,0,NULL,NULL 9374,42568,450778,Necromancer,NULL,NULL,0,NULL,NULL 9375,389055,104965,Notable Question Yearling Popular Question Notable Question Nice Question Famous Question Nice Question Yearling Yearling Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 9376,509719,1457515,NULL,NULL,NULL,0,NULL,NULL 9377,1197970,1221195,Popular Question Scholar,NULL,NULL,0,NULL,NULL 9378,1116999,1024652,NULL,NULL,NULL,0,NULL,NULL 9379,575127,911167,NULL,NULL,NULL,0,NULL,NULL 9380,127642,92743,Nice Answer Popular Question Yearling Nice Answer Good Answer Yearling Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 9381,442956,1513081,NULL,NULL,NULL,0,NULL,NULL 9382,894483,876147,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9383,104038,467546,Notable Question Yearling Nice Question Yearling Custodian Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 9384,12963,1003830,Good Question Announcer Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Good Answer Popular Question Popular Question Notable Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Yearling Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 9385,128014,640404,Nice Answer Yearling Great Answer Yearling Famous Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 9386,213237,884104,Custodian Yearling Custodian Critic Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 9387,9699,969629,NULL,NULL,NULL,0,NULL,NULL 9388,713036,767374,NULL,NULL,NULL,0,NULL,NULL 9389,96212,135687,Popular Question Popular Question Notable Question Nice Question Good Question Good Question Notable Question Famous Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Yearling Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Popular Question Famous Question Famous Question Yearling Good Answer Notable Question Nice Question Nice Question Notable Question Famous Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 9390,1527296,1229523,NULL,NULL,NULL,0,NULL,NULL 9391,36797,1113831,Popular Question,NULL,NULL,0,NULL,NULL 9392,158529,221236,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 9393,1293840,380099,Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 9394,158008,699972,Yearling Popular Question Yearling Great Question Favorite Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 9395,332404,1015855,NULL,NULL,NULL,0,NULL,NULL 9396,41194,176922,Nice Answer Popular Question Nice Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Caucus Nice Question Notable Question Good Answer Yearling Great Answer Good Answer Census Nice Answer Good Answer Reviewer Yearling,NULL,pSomething important when dealing with outliers is that one should try to use estimators as robust as possible The mean of distribution will be biased by outliers but the median will be much less ppBuilding on eumiro answer ppre codedef reject outliers data np abs data np median data mdev np median mdev if mdev else return data lt code prepHere have replace the mean with the more robust median and the standard deviation with the absolute distance to the median then scaled the distances by their again median value so that codem code is on reasonable relative scale ppNote that for the codedata lt code syntax to work codedata code must be numpy array The choice for depends on the input data set Its value ultimately decides the purity of the filtered data and the efficiency of rejecting true outliers One way to determine good value would be to examine the interplay of purity and efficiency from simulated training data and pick some value pSomething important when dealing with outliers is that one should try to use estimators as robust as possible The mean of distribution will be biased by outliers but the median will be much less ppBuilding on eumiro answer ppre codedef reject outliers data np abs data np median data mdev np median mdev if mdev else return data lt code prepHere have replace the mean with the more robust median and the standard deviation with the absolute distance to the median then scaled the distances by their again median value so that codem code is on reasonable relative scale ppNote that for the codedata lt code syntax to work codedata code must be numpy array er2010 Like said this depends on your specific requirements how clean we need to signal sample to be false positives or how many signal measurements we can afford to throw away to keep the signal clean false negatives As for specific example evaluation for certain use case see http www desy de blist notes whyeffpur ps gz,0,NULL,NULL 9397,851562,1179003,Yearling Revival,NULL,NULL,0,NULL,NULL 9398,443005,298140,NULL,NULL,NULL,0,NULL,NULL 9399,72601,454485,NULL,NULL,NULL,0,NULL,NULL 9400,194737,364646,Teacher,NULL,NULL,0,NULL,NULL 9401,478630,798607,NULL,NULL,NULL,0,NULL,NULL 9402,160642,1457843,Informed,NULL,NULL,0,NULL,NULL 9403,1092858,988680,Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 9404,161586,1205138,Yearling Necromancer Caucus Caucus,NULL,NULL,0,NULL,NULL 9405,19434,151321,NULL,NULL,NULL,0,NULL,NULL 9406,483285,180777,Good Answer Yearling Caucus Populist,NULL,NULL,0,NULL,NULL 9407,193415,1034346,NULL,NULL,NULL,0,NULL,NULL 9408,110371,572840,NULL,NULL,NULL,0,NULL,NULL 9409,667283,675140,NULL,NULL,NULL,0,NULL,NULL 9410,152306,1541266,NULL,NULL,NULL,0,NULL,NULL 9411,329558,1092762,Popular Question Revival Self-Learner Yearling Revival Notable Question Caucus Constituent Documentation User Popular Question,NULL,NULL,0,NULL,NULL 9412,144232,471387,Popular Question,NULL,NULL,0,NULL,NULL 9413,214254,928052,Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 9414,317004,1304072,NULL,NULL,NULL,0,NULL,NULL 9415,483051,1304072,NULL,NULL,NULL,0,NULL,NULL 9416,1359746,213256,Necromancer Popular Question Yearling Yearling Excavator Custodian Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 9417,340424,62235,Promoter Nice Question Good Question Curious Commentator Nice Question Popular Question Good Question Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 9418,332100,1544484,NULL,NULL,NULL,0,NULL,NULL 9419,3776138,1544484,NULL,NULL,NULL,0,NULL,NULL 9420,285621,1290621,Editor Critic Informed Autobiographer Yearling Scholar Revival Student,NULL,NULL,0,NULL,NULL 9421,479852,1046413,NULL,NULL,NULL,0,NULL,NULL 9422,80545,1239923,NULL,NULL,NULL,0,NULL,NULL 9423,155517,1154082,NULL,NULL,NULL,0,NULL,NULL 9424,487271,25646,Announcer Nice Answer Enlightened memory-management Nice Answer Enlightened Nice Answer Custodian Good Answer Nice Answer Great Answer multithreading Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru nsdictionary Guru Nice Answer Enlightened Nice Answer Enlightened retaincount Yearling Good Answer Nice Answer Good Answer Guru Good Answer methods Nice Answer Enlightened Good Answer Guru Guru Good Answer Yearling Revival Nice Answer macos macos Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Tumbleweed Good Answer Great Answer Yearling Guru Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 9425,43586,905236,NULL,NULL,NULL,0,NULL,NULL 9426,116286,614552,NULL,NULL,NULL,0,NULL,NULL 9427,143478,998106,Caucus Popular Question,NULL,NULL,0,NULL,NULL 9428,162175,1347712,NULL,NULL,NULL,0,NULL,NULL 9429,30161,176978,Nice Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling reddit Announcer Good Answer Yearling Cleanup Custodian Famous Question Caucus Good Answer Good Question python Yearling,NULL,NULL,0,NULL,NULL 9430,164863,1500517,NULL,NULL,NULL,0,NULL,NULL 9431,1029790,771071,Student Yearling Custodian Scholar Custodian Custodian Suffrage Vox Populi Revival Caucus Constituent Civic Duty Explainer Yearling Caucus Constituent Documentation User Census Popular Question,NULL,NULL,0,NULL,NULL 9432,213999,849312,Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9433,61773,1242093,Explainer Yearling apache-karaf Caucus Yearling Nice Answer Documentation User Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 9434,32677,366782,Nice Question Yearling Good Answer Popular Question Good Question Popular Question Good Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9435,911716,30948,Editor Yearling Enthusiast Announcer,NULL,NULL,0,NULL,NULL 9436,114898,167925,Yearling Custodian Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 9437,98191,1222057,Popular Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9438,232067,254164,NULL,NULL,NULL,0,NULL,NULL 9439,905188,511236,NULL,NULL,NULL,0,NULL,NULL 9440,163749,758054,NULL,NULL,NULL,0,NULL,NULL 9441,165080,1100422,NULL,NULL,NULL,0,NULL,NULL 9442,2158980,1152595,NULL,NULL,NULL,0,NULL,NULL 9443,6763,915827,NULL,NULL,NULL,0,NULL,NULL 9444,754782,1108035,NULL,NULL,NULL,0,NULL,NULL 9445,2491613,1108035,NULL,NULL,NULL,0,NULL,NULL 9446,195241,722753,Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9447,922620,221515,Notable Question Popular Question Custodian Notable Question Famous Question Popular Question Nice Answer Popular Question Famous Question Famous Question Notable Question Caucus Yearling Nice Question Notable Question Famous Question Nice Question Popular Question Good Question Notable Question Famous Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question Good Answer Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9448,401952,738634,Notable Question Yearling Revival Nice Answer Enlightened Yearling Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 9449,746575,1339490,NULL,NULL,NULL,0,NULL,NULL 9450,320478,1289154,NULL,NULL,NULL,0,NULL,NULL 9451,172477,614575,Custodian Yearling Nice Answer Great Answer Yearling Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 9452,470500,9275,Revival Necromancer Good Answer Great Question Necromancer Yearling Caucus Nice Answer Necromancer Necromancer Nice Answer Yearling Good Answer c# Citizen Patrol Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 9453,23243,211776,Guru Great Answer Yearling jquery Good Answer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9454,29614,503612,Student Tumbleweed,NULL,NULL,0,NULL,NULL 9455,1053164,467737,NULL,NULL,NULL,0,NULL,NULL 9456,276756,136134,Tumbleweed Nice Question Tag Editor Yearling Popular Question Popular Question Announcer Great Question,NULL,NULL,0,NULL,NULL 9457,392410,519888,NULL,NULL,NULL,0,NULL,NULL 9458,398820,366706,Famous Question Critic Notable Question,NULL,NULL,0,NULL,NULL 9459,1128685,1475887,NULL,NULL,NULL,0,NULL,NULL 9460,513401,986572,NULL,NULL,NULL,0,NULL,NULL 9461,43526,558757,Popular Question,NULL,NULL,0,NULL,NULL 9462,179887,794918,Teacher Necromancer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 9463,53085,623672,NULL,NULL,NULL,0,NULL,NULL 9464,31191,234122,NULL,NULL,NULL,0,NULL,NULL 9465,1633664,721339,Popular Question,NULL,NULL,0,NULL,NULL 9466,1325208,721339,Popular Question,NULL,NULL,0,NULL,NULL 9467,3179,1287889,Caucus Critic Informed,NULL,NULL,0,NULL,NULL 9468,112391,116811,NULL,NULL,NULL,0,NULL,NULL 9469,231792,123711,Famous Question Nice Question Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 9470,146367,1130037,NULL,NULL,NULL,0,NULL,NULL 9471,336457,1443413,NULL,NULL,NULL,0,NULL,NULL 9472,36261,1158494,NULL,NULL,NULL,0,NULL,NULL 9473,159481,1158494,NULL,NULL,NULL,0,NULL,NULL 9474,470934,736647,NULL,NULL,NULL,0,NULL,NULL 9475,7535238,928094,NULL,NULL,NULL,0,NULL,NULL 9476,496019,652422,NULL,NULL,NULL,0,NULL,NULL 9477,46830,936798,NULL,NULL,NULL,0,NULL,NULL 9478,257951,1436491,Yearling Necromancer Nice Answer Nice Answer Yearling Revival Great Answer Tumbleweed Autobiographer Yearling Scholar,NULL,NULL,0,NULL,NULL 9479,33655,82681,Yearling Famous Question Yearling Caucus Tenacious Yearling Scholar Caucus Yearling Documentation User Census Fanatic Yearling Caucus Revival Custodian,NULL,NULL,0,NULL,NULL 9480,95620,369838,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 9481,25009,583755,Tumbleweed Revival Necromancer Nice Answer Editor,NULL,NULL,0,NULL,NULL 9482,204638,1393382,NULL,NULL,NULL,0,NULL,NULL 9483,33304,648824,NULL,NULL,NULL,0,NULL,NULL 9484,452343,702327,Yearling Popular Question Caucus Constituent Caucus Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 9485,3390,1798,NULL,NULL,NULL,0,NULL,NULL 9486,1580,807789,NULL,NULL,NULL,0,NULL,NULL 9487,432193,1052013,Yearling Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9488,138831,983874,NULL,NULL,NULL,0,NULL,NULL 9489,99740,1521220,NULL,NULL,NULL,0,NULL,NULL 9490,387692,442190,Supporter Revival,NULL,NULL,0,NULL,NULL 9491,100504,1051025,Popular Question,NULL,NULL,0,NULL,NULL 9492,473755,1307154,Caucus Constituent Popular Question Caucus Notable Question Documentation User Announcer Caucus Notable Question,NULL,NULL,0,NULL,NULL 9493,811452,1524648,NULL,NULL,NULL,0,NULL,NULL 9494,52013,140710,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9495,501632,1127583,Announcer Nice Answer Yearling Nice Answer Enlightened Good Answer Citizen Patrol Yearling Nice Answer Announcer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 9496,13183,129541,ruby-on-rails Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 9497,20189,1153054,NULL,NULL,NULL,0,NULL,NULL 9498,230147,1230611,Scholar,NULL,NULL,0,NULL,NULL 9499,422,2999,Good Question Good Question Yearling Great Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 9500,598601,301976,NULL,NULL,NULL,0,NULL,NULL 9501,84856,525694,Revival,NULL,NULL,0,NULL,NULL 9502,373698,207388,Popular Question,NULL,NULL,0,NULL,NULL 9503,3127808,1193457,NULL,NULL,NULL,0,NULL,NULL 9504,292659,50894,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 9505,251582,2688,Guru Good Answer Great Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Yearling Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Census Nice Answer Enlightened Announcer Great Answer Nice Answer Enlightened Announcer Yearling Nice Answer Enlightened Popular Question Custodian Guru Nice Answer Documentation User Great Answer Guru Nice Answer Census Great Answer Great Answer Announcer Popular Question Great Answer Nice Question Guru Yearling Guru Announcer Popular Question Great Question,NULL,NULL,0,NULL,NULL 9506,998410,1026193,NULL,NULL,NULL,0,NULL,NULL 9507,165187,32422,NULL,NULL,NULL,0,NULL,NULL 9508,132308,1067124,Tumbleweed Notable Question Necromancer Enthusiast Custodian Self-Learner Necromancer Vox Populi Electorate Revival Popular Question Yearling Necromancer Nice Answer Good Answer Nice Answer Nice Question Revival Famous Question Good Answer Citizen Patrol Notable Question Documentation User Good Answer Yearling Revival Revival Revival Revival Popular Question Necromancer Populist Yearling,NULL,pSimple one liner ppre codefunction abs path cd dirname amp gt dev null amp amp printf PWD code prepUsage ppre codefunction do something local file abs path printf Absolute path to file do something HOME path to some where code prepI am still trying to figure out how can get it to be completely oblivious to whether the path exists or not so it can be used when creating files as well had to use instead of to make it work,0,NULL,NULL 9509,7964,873167,NULL,NULL,NULL,0,NULL,NULL 9510,186183,1473477,NULL,NULL,NULL,0,NULL,NULL 9511,144031,575476,NULL,NULL,NULL,0,NULL,NULL 9512,3267960,500223,NULL,NULL,NULL,0,NULL,NULL 9513,921544,620634,NULL,NULL,NULL,0,NULL,NULL 9514,96360,1146840,Yearling Famous Question Famous Question Famous Question Notable Question Popular Question Nice Answer Famous Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 9515,246815,717295,Notable Question,NULL,NULL,0,NULL,NULL 9516,638091,1162491,Yearling Nice Answer Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 9517,1397089,1268833,NULL,NULL,NULL,0,NULL,NULL 9518,150199,423346,NULL,NULL,NULL,0,NULL,NULL 9519,30190,440356,NULL,NULL,NULL,0,NULL,NULL 9520,278803,1023292,NULL,NULL,NULL,0,NULL,NULL 9521,200603,253650,Yearling Nice Question Yearling Great Answer Yearling Notable Question Great Answer,NULL,NULL,0,NULL,NULL 9522,159279,54811,Yearling Popular Question,NULL,NULL,0,NULL,NULL 9523,151070,1542540,Yearling Custodian Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 9524,107642,306971,Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 9525,265199,245089,NULL,NULL,NULL,0,NULL,NULL 9526,627099,1523508,Notable Question Caucus,NULL,NULL,0,NULL,NULL 9527,781794,540001,Notable Question Citizen Patrol Excavator Yearling Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 9528,247459,963217,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 9529,2665960,875129,NULL,NULL,NULL,0,NULL,NULL 9530,206185,1233631,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 9531,419621,365954,NULL,NULL,NULL,0,NULL,NULL 9532,203208,1341023,NULL,NULL,NULL,0,NULL,NULL 9533,7784,681589,NULL,NULL,NULL,0,NULL,NULL 9534,3120,92786,Custodian Famous Question Popular Question Yearling Notable Question Great Answer Peer Pressure Popular Question Popular Question Notable Question Yearling Notable Question Favorite Question Popular Question Civic Duty Custodian Popular Question Great Question Favorite Question Great Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 9535,1135530,1561193,NULL,NULL,NULL,0,NULL,NULL 9536,318935,418131,Autobiographer Tumbleweed Census Scholar,NULL,NULL,0,NULL,NULL 9537,21532,60371,Yearling Nice Question Good Answer Good Answer Popular Question Yearling Necromancer Guru Great Answer Civic Duty Documentation User Citizen Patrol Notable Question Announcer Investor Revival Necromancer Yearling Necromancer Nice Answer Good Answer Nice Answer Guru,NULL,pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre not possible to configure it have to instantiate your own to specify custom configuration pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre think the example shown above will be unneeded at some point and that the goal is still zero conf but it not quite there yet for reference re this specific example https github com webpack webpack issues 6614 pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre sorry ve just added the require line to the example pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre correct as far as know the docs are not up to date for Webpack this information come from GitHub issue pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre and here search for optimization minimizer on this page https medium com webpack webpack mode and optimization 5423a6bc597a pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre one of the GH issues that document this https github com webpack webpack issues 6879 pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre érez webpack already installs uglifyjs webpack plugin as dependency,1,NULL,Webpack How to configure minimize javascript web webpack webpack pWebpack comes with the following statement pblockquote pwebpack optimize UglifyJsPlugin has been removed please use config optimization minimize instead blockquotepFair enough but cannot find any information about configuring the UglifyJsPlugin instance running under the hood for example to change the cache directory Can this be done pIt not possible to modify the default configuration ppYou can use the codeoptimization minimizer code setting to instantiate your own codeUglifyJsPlugin code however Using we used this example to get source maps even when codemode code is set to code production code for example no longer necessary as of ppre codeconst UglifyJsPlugin require uglifyjs webpack plugin module exports optimization minimizer we specify custom UglifyJsPlugin here to get source maps in production new UglifyJsPlugin cache true parallel true uglifyOptions compress false ecma mangle true sourceMap true code pre 9538,75401,101290,Necromancer Yearling Necromancer Custodian Custodian Nice Answer Caucus Constituent Notable Question Necromancer Good Answer Nice Question Necromancer Good Answer Nice Answer Nice Question Announcer Yearling Good Answer Caucus Constituent Necromancer Good Answer Civic Duty Nice Answer Revival Great Answer Explainer Necromancer Populist Custodian Famous Question Necromancer Yearling Nice Answer Announcer Cleanup Necromancer Good Answer Necromancer Nice Answer,NULL,pDepending upon the design being produced each of the below clearfix CSS solutions has its own benefits ppThe clearfix does have useful applications but it has also been used as hack Before you use clearfix perhaps these modern css solutions can be useful pulli href https css tricks com snippets css guide to flexbox rel noreferrer css flexbox lili href https css tricks com snippets css complete guide grid rel noreferrer css grid li ulhrh1Modern Clearfix Solutions h1hrh2Container with codeoverflow auto code h2pThe simplest way to clear floated elements is using the style codeoverflow auto code on the containing element This solution works in every modern browsers ppre class lang html prettyprint override code lt div style overflow auto gt lt img style float right src path to floated element png width 500 height 500 gt lt gt Your content here… lt gt lt div gt code prepOne downside using certain combinations of margin and padding on the external element can cause scrollbars to appear but this can be solved by placing the margin and padding on another parent containing element ppUsing ‘overflow hidden’ is also clearfix solution but will not have scrollbars however using codehidden code will crop any content positioned outside of the containing element pp emNote em The floated element is an codeimg code tag in this example but could be any html element phrh2Clearfix Reloaded h2pThierry Koblentz on CSSMojo wrote href http cssmojo com the very latest clearfix reloaded rel noreferrer The very latest clearfix reloaded He noted that by dropping support for oldIE the solution can be simplified to one css statement Additionally using codedisplay block code instead of codedisplay table code allows margins to collapse properly when elements with clearfix are siblings ppre class lang css prettyprint override code container after content display block clear both code prepThis is the most modern version of the clearfix phrp⋮ pp⋮ ph1Older Clearfix Solutions h1pThe below solutions are not necessary for modern browsers but may be useful for targeting older browsers ppNote that these solutions rely upon browser bugs and therefore should be used only if none of the above solutions work for you ppThey are listed roughly in chronological order phrh2 Beat That ClearFix clearfix for modern browsers h2pThierry Koblentz of href http www cssmojo com latest new clearfix so far rel noreferrer CSS Mojo has pointed out that when targeting modern browsers we can now drop the codezoom code and code before code property values and simply use ppre class lang css prettyprint override code container after content display table clear both code prep emThis solution does not support for IE …on purpose em ppThierry also offers href http www cssmojo com latest new clearfix so far why is that rel noreferrer word of caution if you start new project from scratch go for it but don’t swap this technique with the one you have now because even though you do not support oldIE your existing rules prevent collapsing margins phrh2Micro Clearfix h2pThe most recent and globally adopted clearfix solution the href http nicolasgallagher com micro clearfix hack rel noreferrer Micro Clearfix by Nicolas Gallagher pp emKnown support Firefox Safari Chrome Opera IE em ppre class lang css prettyprint override code container before container after content display table container after clear both container zoom code prehrh2Overflow Property h2pThis basic method is preferred for the usual case when positioned content will not show outside the bounds of the container pp href http www quirksmode org css clearing html rel noreferrer http www quirksmode org css clearing html emexplains how to resolve common issues related to this technique namely setting codewidth 100 code on the container em ppre class lang css prettyprint override code container overflow hidden display inline block display block code prepRather than using the codedisplay code property to set hasLayout for IE other properties can be used for href http www satzansatz de cssd onhavinglayout html rel noreferrer triggering hasLayout for an element ppre class lang css prettyprint override code container overflow hidden zoom display block code prepAnother way to clear floats using the codeoverflow code property is to use the href http wellstyled com css underscore hack html rel noreferrer underscore hack IE will apply the values prefixed with the underscore other browsers will not The codezoom code property triggers href http www satzansatz de cssd onhavinglayout html rel noreferrer hasLayout in IE ppre class lang css prettyprint override code container overflow hidden overflow visible for IE zoom for IE code prepWhile this works it is not ideal to use hacks phrh2PIE Easy Clearing Method h2pThis older Easy Clearing method has the advantage of allowing positioned elements to hang outside the bounds of the container at the expense of more tricky CSS ppThis solution is quite old but you can learn all about Easy Clearing on Position Is Everything href http www positioniseverything net easyclearing html rel noreferrer http www positioniseverything net easyclearing html phrh2Element using clear property h2pThe quick and dirty solution with some drawbacks for when you’re quickly slapping something together ppre code lt br style clear both gt lt So dirty gt code preh3Drawbacks h3ulliIt not responsive and thus may not provide the desired effect if layout styles change based upon media queries solution in pure CSS is more ideal liliIt adds html markup without necessarily adding any semantic value liliIt requires inline definition and solution for each instance rather than class reference to single solution of “clearfix” in the css and class references to it in the html liliIt makes code difficult to work with for others as they may have to write more hacks to work around it liliIn the future when you need want to use another clearfix solution you won have to go back and remove every code lt br style clear both gt code tag littered around the markup li ul Follow the link for more info You ll read that it Win IE fix pDepending upon the design being produced each of the below clearfix CSS solutions has its own benefits ppThe clearfix does have useful applications but it has also been used as hack Before you use clearfix perhaps these modern css solutions can be useful pulli href https css tricks com snippets css guide to flexbox rel noreferrer css flexbox lili href https css tricks com snippets css complete guide grid rel noreferrer css grid li ulhrh1Modern Clearfix Solutions h1hrh2Container with codeoverflow auto code h2pThe simplest way to clear floated elements is using the style codeoverflow auto code on the containing element This solution works in every modern browsers ppre class lang html prettyprint override code lt div style overflow auto gt lt img style float right src path to floated element png width 500 height 500 gt lt gt Your content here… lt gt lt div gt code prepOne downside using certain combinations of margin and padding on the external element can cause scrollbars to appear but this can be solved by placing the margin and padding on another parent containing element ppUsing ‘overflow hidden’ is also clearfix solution but will not have scrollbars however using codehidden code will crop any content positioned outside of the containing element pp emNote em The floated element is an codeimg code tag in this example but could be any html element phrh2Clearfix Reloaded h2pThierry Koblentz on CSSMojo wrote href http cssmojo com the very latest clearfix reloaded rel noreferrer The very latest clearfix reloaded He noted that by dropping support for oldIE the solution can be simplified to one css statement Additionally using codedisplay block code instead of codedisplay table code allows margins to collapse properly when elements with clearfix are siblings ppre class lang css prettyprint override code container after content display block clear both code prepThis is the most modern version of the clearfix phrp⋮ pp⋮ ph1Older Clearfix Solutions h1pThe below solutions are not necessary for modern browsers but may be useful for targeting older browsers ppNote that these solutions rely upon browser bugs and therefore should be used only if none of the above solutions work for you ppThey are listed roughly in chronological order phrh2 Beat That ClearFix clearfix for modern browsers h2pThierry Koblentz of href http www cssmojo com latest new clearfix so far rel noreferrer CSS Mojo has pointed out that when targeting modern browsers we can now drop the codezoom code and code before code property values and simply use ppre class lang css prettyprint override code container after content display table clear both code prep emThis solution does not support for IE …on purpose em ppThierry also offers href http www cssmojo com latest new clearfix so far why is that rel noreferrer word of caution if you start new project from scratch go for it but don’t swap this technique with the one you have now because even though you do not support oldIE your existing rules prevent collapsing margins phrh2Micro Clearfix h2pThe most recent and globally adopted clearfix solution the href http nicolasgallagher com micro clearfix hack rel noreferrer Micro Clearfix by Nicolas Gallagher pp emKnown support Firefox Safari Chrome Opera IE em ppre class lang css prettyprint override code container before container after content display table container after clear both container zoom code prehrh2Overflow Property h2pThis basic method is preferred for the usual case when positioned content will not show outside the bounds of the container pp href http www quirksmode org css clearing html rel noreferrer http www quirksmode org css clearing html emexplains how to resolve common issues related to this technique namely setting codewidth 100 code on the container em ppre class lang css prettyprint override code container overflow hidden display inline block display block code prepRather than using the codedisplay code property to set hasLayout for IE other properties can be used for href http www satzansatz de cssd onhavinglayout html rel noreferrer triggering hasLayout for an element ppre class lang css prettyprint override code container overflow hidden zoom display block code prepAnother way to clear floats using the codeoverflow code property is to use the href http wellstyled com css underscore hack html rel noreferrer underscore hack IE will apply the values prefixed with the underscore other browsers will not The codezoom code property triggers href http www satzansatz de cssd onhavinglayout html rel noreferrer hasLayout in IE ppre class lang css prettyprint override code container overflow hidden overflow visible for IE zoom for IE code prepWhile this works it is not ideal to use hacks phrh2PIE Easy Clearing Method h2pThis older Easy Clearing method has the advantage of allowing positioned elements to hang outside the bounds of the container at the expense of more tricky CSS ppThis solution is quite old but you can learn all about Easy Clearing on Position Is Everything href http www positioniseverything net easyclearing html rel noreferrer http www positioniseverything net easyclearing html phrh2Element using clear property h2pThe quick and dirty solution with some drawbacks for when you’re quickly slapping something together ppre code lt br style clear both gt lt So dirty gt code preh3Drawbacks h3ulliIt not responsive and thus may not provide the desired effect if layout styles change based upon media queries solution in pure CSS is more ideal liliIt adds html markup without necessarily adding any semantic value liliIt requires inline definition and solution for each instance rather than class reference to single solution of “clearfix” in the css and class references to it in the html liliIt makes code difficult to work with for others as they may have to write more hacks to work around it liliIn the future when you need want to use another clearfix solution you won have to go back and remove every code lt br style clear both gt code tag littered around the markup li ul Thanks much appreciated ve updated the whole answer Since this solution is aging decided to simply link to the solution rather than summarizing,0,NULL,NULL 9539,141433,1333154,Revival Revival,NULL,NULL,0,NULL,NULL 9540,1506769,1002836,NULL,NULL,NULL,0,NULL,NULL 9541,63223,379596,NULL,NULL,NULL,0,NULL,NULL 9542,530835,79152,Nice Question Yearling Good Answer Notable Question Good Question Notable Question Good Answer Notable Question Popular Question Yearling Caucus Good Question Yearling Excavator,NULL,pSo Warpzit was on the right track he just didn address your specific issue too well came across the exact same issue and here is how solved it ppFirst created static boolean variable for simplicity sake lets put it in the FragmentUtils class ppre codepublic class FragmentUtils public static boolean sDisableFragmentAnimations false code prepThen in EVERY fragment you have you need to override the onCreateAnimation method ppre code Animation onCreateAnimation int transit boolean enter int nextAnim if FragmentUtils sDisableFragmentAnimations Animation new Animation setDuration return return super onCreateAnimation transit enter nextAnim code prepThen when you need to clear the backstack from your activity simply do the following ppre codepublic void clearBackStack FragmentUtils sDisableFragmentAnimations true getSupportFragmentManager popBackStackImmediate null FragmentManager POP BACK STACK INCLUSIVE FragmentUtils sDisableFragmentAnimations false code prepAnd voila call to clearBackStack will drop you back into the root fragment without any transition animations ppHopefully the big will add less stupid way of doing this in the future overriding onCreateAnimation throws lang IllegalStateException super onCreateAnimation transit enter nextAnim must not be null Why,0,NULL,NULL 9543,2169341,422957,Nice Question Announcer Nice Answer Yearling Nice Answer Yearling Famous Question Booster Popular Question Yearling Tag Editor Yearling Good Question Documentation User Announcer Nice Question Famous Question Revival Announcer Yearling,NULL,NULL,1,NULL,Youtube iframe api allow autoplay Chrome 65 iframe youtube api youtube iframe api pChrome 65 the current canary version is blocking iframed youtube videos from auto playing with sound ppThe latest changes to Chrome require the iframe to have strongallow autoplay strong ppHow do go about adding strongallow autoplay strong to the youtube iframe api can find it in any of the documentation pp href https developers google com web updates 2017 09 autoplay policy changes iframe rel noreferrer https developers google com web updates 2017 09 autoplay policy changes iframe pblockquote pA feature policy allows developers to selectively enable and disable use of various browser features and APIs Once an origin has received autoplay permission it can delegate that permission to cross origin iframes with new feature policy for autoplay Note that autoplay is allowed by default on same origin iframes blockquotep div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt iframe src myvideo html allow autoplay gt code pre xD div xD div xD pThe YouTube IFrame API has been recently updated to use codeallow autoplay code instead of codegesture media code It should now work as expected ppSorry for the confusion 9544,32167,393756,Famous Question Autobiographer Popular Question Nice Question Popular Question Citizen Patrol Yearling Popular Question Notable Question Notable Question Inquisitive Popular Question Announcer Notable Question Popular Question Cleanup Yearling Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Civic Duty Good Question Notable Question Nice Question Famous Question Nice Answer Yearling Notable Question Famous Question Excavator Nice Question Favorite Question Yearling,NULL,rc exe no longer found in VS 2015 Command Prompt windows cmake windows 10 visual studio 2017 pI just installed Windows 10 Creators Update version 10 15063 ppI have multiple versions of Visual Studio installed 2012 2013 2015 and 2017 installed VS 2017 only couple weeks ago ph3Problem h3pCMake version no longer finds the compiler when run inside VS2015 x64 Native Command Prompt it emdoes em work properly when run inside VS 2017 command prompt ph3Reproduction h3pContent of codeCMakeLists txt code ppre class lang none prettyprint override codeproject test add executable test test cpp code prep Content of codetest cpp code is irrelevant ppCMake invocation in VS2015 x64 Native Command Prompt ppre class lang none prettyprint override code gt mkdir build gt cd build gt cmake Visual Studio 14 2015 Win64 code prepCMake output ppre class lang none prettyprint override code The compiler identification is unknown The CXX compiler identification is unknownCMake Error at CMakeLists txt project No CMAKE COMPILER could be found CMake Error at CMakeLists txt project No CMAKE CXX COMPILER could be found Configuring incomplete errors occurred See also dev cmaketest build CMakeFiles CMakeOutput log See also dev cmaketest build CMakeFiles CMakeError log code preh3Analysis h3pThe reason of the failure is clear when looking at codeCMakeFiles CMakeError log code ppre class lang none prettyprint override codeClCompile Program Files x86 Microsoft Visual Studio 14 VC bin x86 amd64 CL exe nologo W0 WX Od MBCS Gm EHsc RTC1 MDd GS fp precise Zc wchar Zc forScope Zc inline Fo Debug Fd Debug vc140 pdb Gd TC errorReport queue CMakeCCompilerId CMakeCCompilerId cLink Program Files x86 Microsoft Visual Studio 14 VC bin x86 amd64 link exe ERRORREPORT QUEUE OUT CompilerIdC exe INCREMENTAL NO NOLOGO kernel32 lib user32 lib gdi32 lib winspool lib comdlg32 lib advapi32 lib shell32 lib ole32 lib oleaut32 lib uuid lib odbc32 lib odbccp32 lib MANIFEST MANIFESTUAC level asInvoker uiAccess false manifest embed PDB CompilerIdC pdb SUBSYSTEM CONSOLE TLBID DYNAMICBASE NXCOMPAT IMPLIB CompilerIdC lib MACHINE X64 Debug CMakeCCompilerId objLINK fatal error LNK1158 cannot run rc exe dev cmaketest build CMakeFiles CompilerIdC CompilerIdC vcxproj code prep coderc exe code Resource Compiler is not found Indeed in the same VS 2015 command prompt ppre class lang none prettyprint override code gt where rc exeINFO Could not find files for the given pattern code prepWhile it emis em found in VS 2013 command prompt ppre class lang none prettyprint override code gt where rc exeC Program Files x86 Windows Kits bin x64 rc exeC Program Files x86 Windows Kits bin x86 rc exe code prepand VS 2017 command prompt ppre class lang none prettyprint override code gt where rc exeC Program Files x86 Windows Kits 10 bin 10 15063 x64 rc exe code prepChecking the content of the codePATH code environment variables in various VS command prompts pulli pInside VS 2013 command prompt codePATH code contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits bin x64 code pre lili pInside VS 2017 command prompt codePATH code contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits 10 bin x64C Program Files x86 Windows Kits 10 bin 10 15063 x64 code pre lili pBut inside VS 2015 command prompt codePATH code only contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits 10 bin x64 code prepwhich does not contain coderc exe code li ulh3Questions h3olli pIs this known issue or is it specific to my system lili pWhat could Windows 10 Creators Update possibly install uninstall or alter in the system perhaps something related to Windows SDKs that would trigger this problem lili pWhat is clean way to resolve this li olpEdit Installed VS 2017 components pp href https stack imgur com SqSCn png rel noreferrer img src https stack imgur com SqSCn png alt VS 2017 components installed running Visual Studio Entreprise 2015 Version 14 25425 01 Update How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver Also rather not add attributes on the collections as my classes have many of them and all of them should be treated equally How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver How would that work if Foo has multiple collections only some of them being empty care to explain How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver couldn see how this approach could work in my case It defines how one particular property of class should be serialized How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver Yes but it does so for one specific property identified by its name looking for solution that works for all collection fields and properties of all the classes present and future need to serialize without having to manually list them somewhere The accepted solution is exactly what was after It somewhat obscure but once written it can be tucked away and usage is straightforward How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver Thanks,1,rc exe no longer found in VS 2015 Command Prompt windows cmake windows 10 visual studio 2017 pI just installed Windows 10 Creators Update version 10 15063 ppI have multiple versions of Visual Studio installed 2012 2013 2015 and 2017 installed VS 2017 only couple weeks ago ph3Problem h3pCMake version no longer finds the compiler when run inside VS2015 x64 Native Command Prompt it emdoes em work properly when run inside VS 2017 command prompt ph3Reproduction h3pContent of codeCMakeLists txt code ppre class lang none prettyprint override codeproject test add executable test test cpp code prep Content of codetest cpp code is irrelevant ppCMake invocation in VS2015 x64 Native Command Prompt ppre class lang none prettyprint override code gt mkdir build gt cd build gt cmake Visual Studio 14 2015 Win64 code prepCMake output ppre class lang none prettyprint override code The compiler identification is unknown The CXX compiler identification is unknownCMake Error at CMakeLists txt project No CMAKE COMPILER could be found CMake Error at CMakeLists txt project No CMAKE CXX COMPILER could be found Configuring incomplete errors occurred See also dev cmaketest build CMakeFiles CMakeOutput log See also dev cmaketest build CMakeFiles CMakeError log code preh3Analysis h3pThe reason of the failure is clear when looking at codeCMakeFiles CMakeError log code ppre class lang none prettyprint override codeClCompile Program Files x86 Microsoft Visual Studio 14 VC bin x86 amd64 CL exe nologo W0 WX Od MBCS Gm EHsc RTC1 MDd GS fp precise Zc wchar Zc forScope Zc inline Fo Debug Fd Debug vc140 pdb Gd TC errorReport queue CMakeCCompilerId CMakeCCompilerId cLink Program Files x86 Microsoft Visual Studio 14 VC bin x86 amd64 link exe ERRORREPORT QUEUE OUT CompilerIdC exe INCREMENTAL NO NOLOGO kernel32 lib user32 lib gdi32 lib winspool lib comdlg32 lib advapi32 lib shell32 lib ole32 lib oleaut32 lib uuid lib odbc32 lib odbccp32 lib MANIFEST MANIFESTUAC level asInvoker uiAccess false manifest embed PDB CompilerIdC pdb SUBSYSTEM CONSOLE TLBID DYNAMICBASE NXCOMPAT IMPLIB CompilerIdC lib MACHINE X64 Debug CMakeCCompilerId objLINK fatal error LNK1158 cannot run rc exe dev cmaketest build CMakeFiles CompilerIdC CompilerIdC vcxproj code prep coderc exe code Resource Compiler is not found Indeed in the same VS 2015 command prompt ppre class lang none prettyprint override code gt where rc exeINFO Could not find files for the given pattern code prepWhile it emis em found in VS 2013 command prompt ppre class lang none prettyprint override code gt where rc exeC Program Files x86 Windows Kits bin x64 rc exeC Program Files x86 Windows Kits bin x86 rc exe code prepand VS 2017 command prompt ppre class lang none prettyprint override code gt where rc exeC Program Files x86 Windows Kits 10 bin 10 15063 x64 rc exe code prepChecking the content of the codePATH code environment variables in various VS command prompts pulli pInside VS 2013 command prompt codePATH code contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits bin x64 code pre lili pInside VS 2017 command prompt codePATH code contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits 10 bin x64C Program Files x86 Windows Kits 10 bin 10 15063 x64 code pre lili pBut inside VS 2015 command prompt codePATH code only contains ppre class lang none prettyprint override codeC Program Files x86 Windows Kits 10 bin x64 code prepwhich does not contain coderc exe code li ulh3Questions h3olli pIs this known issue or is it specific to my system lili pWhat could Windows 10 Creators Update possibly install uninstall or alter in the system perhaps something related to Windows SDKs that would trigger this problem lili pWhat is clean way to resolve this li olpEdit Installed VS 2017 components pp href https stack imgur com SqSCn png rel noreferrer img src https stack imgur com SqSCn png alt VS 2017 components installed How to omit empty collections when serializing with Json NET json json net pI using Newtonsoft Json NET to serialize classes to JSON from ppre codeclass Foo public string public List lt string gt new List lt string gt var json JsonConvert SerializeObject new Foo Formatting Indented new JsonSerializerSettings NullValueHandling NullValueHandling Ignore code prepThe value of codejson code here is ppre code code prepbut would like it to be code code if codeY code is an empty list ppI couldn find satisfactory way to achieve this Maybe with custom contract resolver,NULL 9545,469769,393922,Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 9546,8653,464826,NULL,NULL,NULL,0,NULL,NULL 9547,57555,228885,Revival Good Answer Popular Question Good Answer Revival Guru Popular Question Custodian Guru Nice Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened webpack Notable Question Nice Answer Nice Answer Caucus Constituent Enlightened Nice Answer Good Answer reactjs Yearling Good Answer Revival Announcer Good Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question javascript Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Caucus Constituent Nice Answer Enlightened node.js Guru python Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Good Answer Good Answer Caucus Constituent Notable Question html5,NULL,NULL,0,NULL,NULL 9548,313506,957686,NULL,NULL,NULL,0,NULL,NULL 9549,568379,1389421,NULL,NULL,NULL,0,NULL,NULL 9550,34594,744707,NULL,NULL,NULL,0,NULL,NULL 9551,3328270,626318,Yearling Nice Answer Yearling Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 9552,920988,626318,Yearling Nice Answer Yearling Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 9553,90202,218098,Popular Question Caucus Constituent Yearling Fanatic Caucus Constituent Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9554,160810,963937,Good Answer,NULL,NULL,0,NULL,NULL 9555,430689,124303,Good Answer Yearling Great Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 9556,6312520,328274,NULL,NULL,NULL,0,NULL,NULL 9557,341183,785474,Yearling Nice Answer Enlightened Census,NULL,NULL,0,NULL,NULL 9558,203491,709445,Tumbleweed Curious Critic Popular Question Caucus Constituent Notable Question Popular Question Yearling Nice Question Yearling Famous Question Popular Question Necromancer Good Question Notable Question Nice Answer Yearling Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 9559,6459,271744,Nice Answer,NULL,NULL,0,NULL,NULL 9560,51463,1432687,NULL,NULL,NULL,0,NULL,NULL 9561,462267,230718,NULL,NULL,NULL,0,NULL,NULL 9562,29768,102674,Necromancer Notable Question Caucus Constituent Necromancer Necromancer Yearling Nice Answer Editor Popular Question,NULL,NULL,0,NULL,NULL 9563,232716,942979,NULL,NULL,NULL,0,NULL,NULL 9564,702832,192896,Notable Question Yearling Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9565,99845,477672,NULL,NULL,NULL,0,NULL,NULL 9566,1109744,713630,NULL,NULL,NULL,0,NULL,NULL 9567,49386,155498,Popular Question,NULL,NULL,0,NULL,NULL 9568,725845,252958,Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 9569,20790,780710,NULL,NULL,NULL,0,NULL,NULL 9570,356633,630736,NULL,NULL,NULL,0,NULL,NULL 9571,248496,264054,NULL,NULL,NULL,0,NULL,NULL 9572,299684,290443,Nice Question Famous Question Yearling Popular Question Notable Question Popular Question Good Answer Notable Question Popular Question Yearling Popular Question Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Custodian Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Nice Question Popular Question Popular Question Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 9573,2318338,290443,Nice Question Famous Question Yearling Popular Question Notable Question Popular Question Good Answer Notable Question Popular Question Yearling Popular Question Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Custodian Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Nice Question Popular Question Popular Question Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 9574,307757,433310,Editor Autobiographer Informed Teacher Supporter Critic,NULL,NULL,0,NULL,NULL 9575,172217,249234,NULL,NULL,NULL,0,NULL,NULL 9576,193568,758947,NULL,NULL,NULL,0,NULL,NULL 9577,427466,696028,Notable Question,NULL,NULL,0,NULL,NULL 9578,185634,448254,Caucus Self-Learner Good Answer Yearling,NULL,NULL,0,NULL,NULL 9579,341731,19888,Great Answer Yearling Stellar Question Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 9580,369691,309683,Favorite Question Guru Nice Answer Notable Question Yearling Popular Question Notable Question Nice Question Stellar Question Good Answer Good Question Notable Question Famous Question Great Question Popular Question Nice Answer Enlightened Revival hibernate Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Favorite Question Nice Question Popular Question Popular Question Custodian Famous Question Popular Question Popular Question Famous Question Nice Answer Announcer Caucus Yearling Revival Popular Question Popular Question Revival Popular Question Good Answer Nice Answer Notable Question Good Question Popular Question Popular Question Revival Announcer Notable Question,NULL,NULL,1,Is it possible to write Ansible hosts inventory files in YAML ansible ansible inventory pIn the best practices page there is an example that uses codehosts yml code for hosts files pp href https stack imgur com avauq png rel noreferrer img src https stack imgur com avauq png alt YAML based hosts file ppIn the docs however can only find the INI syntax for writing hosts files ppWhat is the syntax for the inventory files in YAML,NULL 9581,39238,248082,Yearling Notable Question Good Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer Notable Question Announcer Yearling Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Caucus Guru Documentation User Booster Census Yearling Good Answer Caucus Constituent Booster java Populist Good Answer,NULL,NULL,0,NULL,NULL 9582,440347,233081,NULL,NULL,NULL,0,NULL,NULL 9583,184160,111890,Editor,NULL,NULL,0,NULL,NULL 9584,178391,1256401,Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9585,839204,998666,NULL,NULL,NULL,0,NULL,NULL 9586,139465,101186,Necromancer Nice Answer Necromancer Yearling Nice Answer Nice Question Great Question Yearling,NULL,NULL,0,NULL,NULL 9587,702163,597553,NULL,NULL,NULL,0,NULL,NULL 9588,2065336,1171321,Nice Question Announcer Yearling Famous Question,NULL,NULL,0,NULL,NULL 9589,430620,1171321,Nice Question Announcer Yearling Famous Question,NULL,NULL,0,NULL,NULL 9590,425166,212776,NULL,NULL,NULL,0,NULL,NULL 9591,280081,1340281,Tumbleweed Notable Question Custodian Curious Documentation User Promoter Benefactor,NULL,NULL,0,NULL,NULL 9592,397853,1270535,Revival Notable Question,NULL,NULL,0,NULL,NULL 9593,244292,140651,Announcer,NULL,NULL,0,NULL,NULL 9594,70669,384349,Great Answer Yearling Nice Answer Enlightened Custodian Custodian Excavator Good Answer Guru Yearling Revival Nice Answer Civic Duty Self-Learner Yearling,NULL,NULL,0,NULL,NULL 9595,338204,1195143,NULL,NULL,NULL,0,NULL,NULL 9596,620229,1385333,NULL,NULL,NULL,0,NULL,NULL 9597,895435,612375,NULL,NULL,NULL,0,NULL,NULL 9598,101523,1536701,Notable Question,NULL,NULL,0,NULL,NULL 9599,287374,1470545,NULL,NULL,NULL,0,NULL,NULL 9600,492882,1113562,Necromancer Popular Question Notable Question Nice Answer Self-Learner Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 9601,2488396,742619,NULL,NULL,NULL,0,NULL,NULL 9602,2767770,1212843,Student,NULL,NULL,0,NULL,NULL 9603,66588,1305977,NULL,NULL,NULL,0,NULL,NULL 9604,382431,967750,NULL,NULL,NULL,0,NULL,NULL 9605,82312,768570,Supporter,NULL,NULL,0,NULL,NULL 9606,162019,21632,Good Answer Good Answer Great Answer Yearling Favorite Question Nice Question Yearling Nice Answer Guru Revival Good Answer Yearling Good Answer Guru Popular Question,NULL,NULL,0,NULL,NULL 9607,83530,601821,NULL,NULL,NULL,0,NULL,NULL 9608,846970,998486,NULL,NULL,NULL,0,NULL,NULL 9609,589694,350883,NULL,NULL,NULL,0,NULL,NULL 9610,843748,1512515,Popular Question,NULL,NULL,0,NULL,NULL 9611,429675,236169,fluent-nhibernate Nice Answer Nice Answer Enlightened Popular Question Nice Answer Popular Question Good Question Necromancer Popular Question Yearling Nice Answer Good Question Popular Question Notable Question Notable Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 9612,36412,976155,Guru Revival Nice Answer Enlightened Taxonomist Civic Duty Nice Answer Enlightened sonarqube Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Refiner Guru Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9613,181511,885541,Revival Announcer,NULL,NULL,0,NULL,NULL 9614,180791,578021,NULL,NULL,NULL,0,NULL,NULL 9615,1608565,1418209,NULL,NULL,NULL,0,NULL,NULL 9616,704418,441923,Nice Question Excavator Notable Question Nice Question Popular Question Popular Question Good Question Notable Question Yearling Notable Question Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Yearling Notable Question Good Answer Notable Question Popular Question Necromancer Yearling Great Question,NULL,NULL,0,NULL,NULL 9617,1268756,692990,NULL,NULL,NULL,0,NULL,NULL 9618,194572,831594,NULL,NULL,NULL,0,NULL,NULL 9619,506949,1506590,Informed Teacher Revival Supporter Autobiographer Necromancer Nice Answer Critic Editor Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 9620,132873,489111,Supporter,NULL,NULL,0,NULL,NULL 9621,129994,1178357,NULL,NULL,NULL,0,NULL,NULL 9622,413911,211769,Necromancer Caucus,NULL,NULL,0,NULL,NULL 9623,419996,386815,NULL,NULL,NULL,0,NULL,NULL 9624,1360876,975021,NULL,NULL,NULL,0,NULL,NULL 9625,670043,600748,NULL,NULL,NULL,0,NULL,NULL 9626,13233,1426101,NULL,NULL,NULL,0,NULL,NULL 9627,86553,1207479,Nice Question Nice Question Famous Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 9628,490718,770285,NULL,NULL,NULL,0,NULL,NULL 9629,129877,189948,NULL,NULL,NULL,0,NULL,NULL 9630,42641,1510244,NULL,NULL,NULL,0,NULL,NULL 9631,218610,956227,NULL,NULL,NULL,0,NULL,NULL 9632,31105,66278,Popular Question,NULL,NULL,0,NULL,NULL 9633,608795,328511,NULL,NULL,NULL,0,NULL,NULL 9634,7375116,328511,NULL,NULL,NULL,0,NULL,NULL 9635,349094,466872,NULL,NULL,NULL,0,NULL,NULL 9636,9,891142,Editor,NULL,NULL,0,NULL,NULL 9637,47996,53653,Yearling Notable Question Notable Question Nice Answer Notable Question Famous Question Good Answer Nice Question Popular Question ios Famous Question Great Answer Famous Question Populist Notable Question Revival Notable Question Popular Question Yearling Famous Question Favorite Question Popular Question Notable Question ruby-on-rails Famous Question Notable Question Stellar Question Notable Question Popular Question Nice Question Good Answer Good Answer Notable Question Good Question Good Question Nice Answer Popular Question Yearling Notable Question Nice Question Announcer Nice Answer Enlightened Necromancer Famous Question Popular Question Famous Question Popular Question Announcer Popular Question php Nice Answer Popular Question Notable Question,NULL,How to use package installed locally in node modules node js coffeescript npm node modules pHow do use local version of module in codenode js code For example in my app installed coffee script ppre codenpm install coffee script code prepThis installs it in code node modules code and the coffee command is in code node modules bin coffee code Is there way to run this command when in my project main folder guess looking for something similar to codebundle exec code in bundler Basically like to specify version of coffee script that everyone involved with the project should use ppI know can add the code code flag to install it globally so coffee works fine anywhere but what if wanted to have different versions of coffee per project indeed that what ve been doing lately instead of messing with PATH,0,NULL,NULL 9638,4463,675544,NULL,NULL,NULL,0,NULL,NULL 9639,78551,73044,Yearling Notable Question Self-Learner Necromancer,NULL,NULL,0,NULL,NULL 9640,24424,131464,Autobiographer,NULL,NULL,0,NULL,NULL 9641,344891,3279,Good Question Popular Question Popular Question Nice Question Notable Question Nice Question Popular Question Notable Question Nice Answer Popular Question Popular Question Popular Question Nice Answer Notable Question Yearling Good Answer Famous Question Nice Answer Guru Notable Question Notable Question Popular Question Nice Question Nice Question Necromancer Popular Question Notable Question Famous Question Notable Question Caucus Famous Question Yearling Nice Answer Notable Question Notable Question Notable Question Guru Census Nice Answer Announcer Caucus Constituent Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 9642,220894,825546,NULL,NULL,NULL,0,NULL,NULL 9643,2504442,396861,Guru Popular Question Good Answer Self-Learner Popular Question Popular Question Good Answer Popular Question Popular Question Popular Question Yearling Popular Question Populist Notable Question Custodian Nice Question Yearling Notable Question Necromancer Popular Question Nice Answer Custodian Notable Question Popular Question Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 9644,6239026,384988,NULL,NULL,NULL,0,NULL,NULL 9645,178347,384988,NULL,NULL,NULL,0,NULL,NULL 9646,82163,421444,Yearling,NULL,NULL,0,NULL,NULL 9647,18927,963337,Yearling Critic,NULL,NULL,0,NULL,NULL 9648,224963,188580,Notable Question,NULL,NULL,0,NULL,NULL 9649,10785,427368,NULL,NULL,NULL,0,NULL,NULL 9650,595943,506454,NULL,NULL,NULL,0,NULL,NULL 9651,352684,800425,NULL,NULL,NULL,0,NULL,NULL 9652,131930,809422,Teacher,NULL,NULL,0,NULL,NULL 9653,8827919,862710,Popular Question Yearling Popular Question Critic Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9654,143923,450791,NULL,NULL,NULL,0,NULL,NULL 9655,29071,51914,NULL,NULL,NULL,0,NULL,NULL 9656,401474,944951,Critic Yearling,NULL,NULL,0,NULL,NULL 9657,152818,85000,NULL,NULL,NULL,0,NULL,NULL 9658,99199,853097,NULL,NULL,NULL,0,NULL,NULL 9659,788500,475217,Good Answer Necromancer Announcer Good Answer Booster Booster Yearling Nice Answer Announcer Announcer Announcer Publicist Announcer Announcer Booster Announcer Announcer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 9660,1348505,325684,Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9661,262407,185693,NULL,NULL,NULL,0,NULL,NULL 9662,148521,1217608,Nice Answer Yearling Critic Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 9663,352168,387189,NULL,NULL,NULL,0,NULL,NULL 9664,135980,1422359,Supporter,NULL,NULL,0,NULL,NULL 9665,254243,40843,Suffrage Vox Populi Informed Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9666,28314,1357567,NULL,NULL,NULL,0,NULL,NULL 9667,470314,41012,Nice Answer Nice Answer Nice Question Good Answer Good Question Nice Answer Necromancer Great Answer Famous Question Yearling Notable Question Favorite Question Necromancer Guru Popular Question Nice Answer Famous Question Nice Answer Enlightened Yearling Necromancer Great Answer Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 9668,305334,1342260,NULL,NULL,NULL,0,NULL,NULL 9669,129111,122291,Yearling Popular Question Popular Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 9670,197940,523208,NULL,NULL,NULL,0,NULL,NULL 9671,99623,36191,Necromancer Necromancer Nice Question Great Answer Nice Answer Necromancer Necromancer Revival Citizen Patrol Nice Answer Populist Nice Question Nice Answer Necromancer Nice Answer Necromancer Peer Pressure Nice Answer Yearling Nice Answer Necromancer geolocation ip Explainer Nice Answer Great Answer Necromancer Nice Answer Nice Answer Necromancer Necromancer Good Answer Great Question Caucus Nice Answer Yearling Popular Question Nice Answer Good Answer Popular Question Good Answer php Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 9672,20925,823202,NULL,NULL,NULL,0,NULL,NULL 9673,2665000,1541782,Popular Question Notable Question Student Supporter Popular Question Famous Question,NULL,NULL,0,NULL,NULL 9674,241546,19450,Nice Answer Enlightened Organizer Tag Editor Good Answer Nice Answer Nice Answer Yearling Good Answer Announcer concurrency Yearling Populist caching Good Answer Nice Answer Nice Answer Enlightened Custodian Taxonomist Yearling Guru,NULL,NULL,0,NULL,NULL 9675,90140,256948,NULL,NULL,NULL,0,NULL,NULL 9676,367666,1198166,Popular Question Notable Question Popular Question Yearling Famous Question Notable Question Popular Question Notable Question Popular Question Nice Answer Good Question Yearling Popular Question Nice Question Famous Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 9677,201384,352444,NULL,NULL,NULL,0,NULL,NULL 9678,424213,111644,Notable Question Nice Answer Enlightened Yearling Popular Question Famous Question Nice Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 9679,19140,56456,Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 9680,63335,56456,Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 9681,290344,122387,Supporter,NULL,NULL,0,NULL,NULL 9682,195784,426794,Necromancer Good Answer Good Answer Yearling Nice Answer Necromancer Nice Answer Popular Question Populist Popular Question Notable Question Notable Question Great Question Yearling Good Answer Nice Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9683,84800,13185,NULL,NULL,NULL,0,NULL,NULL 9684,1091590,474657,Self-Learner Notable Question Nice Question Notable Question Critic Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Inquisitive Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9685,21472,1090845,NULL,NULL,NULL,0,NULL,NULL 9686,310184,271423,Necromancer,NULL,NULL,0,NULL,NULL 9687,269329,207431,NULL,NULL,NULL,0,NULL,NULL 9688,1349202,672888,NULL,NULL,NULL,0,NULL,NULL 9689,3996038,775251,NULL,NULL,NULL,0,NULL,NULL 9690,1088603,775251,NULL,NULL,NULL,0,NULL,NULL 9691,961068,370698,Commentator Student Yearling,NULL,NULL,0,NULL,NULL 9692,1066058,1440030,Popular Question Popular Question Notable Question Popular Question Promoter Self-Learner Notable Question Yearling Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 9693,199565,1440030,Popular Question Popular Question Notable Question Popular Question Promoter Self-Learner Notable Question Yearling Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 9694,477809,1334861,NULL,NULL,NULL,0,NULL,NULL 9695,634081,128506,Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 9696,182137,438281,Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 9697,10967,949889,NULL,NULL,NULL,0,NULL,NULL 9698,89397,500511,Teacher Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9699,1351530,397229,Teacher,NULL,NULL,0,NULL,NULL 9700,1333453,240615,Editor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9701,894307,573685,Necromancer Yearling Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 9702,3002,865424,NULL,NULL,NULL,0,NULL,NULL 9703,72717,839484,Nice Answer Enlightened Yearling Nice Answer Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 9704,248191,418492,Good Answer Good Answer Revival Yearling Necromancer Caucus Guru Popular Question Necromancer Yearling Nice Question Self-Learner Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9705,132786,1470882,Nice Question,NULL,NULL,0,NULL,NULL 9706,171537,1206985,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 9707,109719,550179,NULL,NULL,NULL,0,NULL,NULL 9708,345886,82663,Nice Question Necromancer Popular Question Good Question,NULL,NULL,0,NULL,NULL 9709,70957,1040161,Nice Answer,NULL,NULL,0,NULL,NULL 9710,145617,4870,Famous Question,NULL,NULL,0,NULL,NULL 9711,262556,855143,NULL,NULL,NULL,0,NULL,NULL 9712,362169,522489,Notable Question Self-Learner Census Notable Question Critic,NULL,NULL,0,NULL,NULL 9713,5845978,281558,Popular Question Scholar Nice Question,NULL,NULL,0,NULL,NULL 9714,129609,281558,Popular Question Scholar Nice Question,NULL,NULL,0,NULL,NULL 9715,238312,335032,Good Answer Guru Yearling Good Question Great Answer Yearling Disciplined Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 9716,2475962,335032,Good Answer Guru Yearling Good Question Great Answer Yearling Disciplined Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 9717,28985,282761,Yearling Guru Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 9718,12889,726741,Informed Notable Question Supporter,NULL,NULL,0,NULL,NULL 9719,6368809,1499281,NULL,NULL,NULL,0,NULL,NULL 9720,214015,1499281,NULL,NULL,NULL,0,NULL,NULL 9721,548070,701632,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9722,1895925,232065,NULL,NULL,NULL,0,NULL,NULL 9723,32706,557798,Supporter,NULL,NULL,0,NULL,NULL 9724,5243,80674,NULL,NULL,NULL,0,NULL,NULL 9725,1696125,1390540,Nice Answer Enlightened Revival Yearling Nice Answer Enlightened Commentator Necromancer Yearling Revival Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 9726,353500,792711,NULL,NULL,NULL,0,NULL,NULL 9727,32365,1329597,Editor,NULL,NULL,0,NULL,NULL 9728,93748,183497,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 9729,2702834,149259,Notable Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9730,83399,149259,Notable Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9731,455911,1056406,Notable Question Popular Question Popular Question Yearling Custodian Excavator Documentation User Popular Question Yearling Disciplined Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9732,187461,145412,Commentator,NULL,NULL,0,NULL,NULL 9733,151967,127477,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 9734,484700,314577,NULL,NULL,NULL,0,NULL,NULL 9735,8814,3461,Good Answer Nice Answer Nice Question Notable Question Yearling Famous Question Caucus Nice Answer Good Answer Populist Famous Question Necromancer Caucus Necromancer Good Answer Yearling Custodian Good Answer Caucus Good Answer Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 9736,1004590,3461,Good Answer Nice Answer Nice Question Notable Question Yearling Famous Question Caucus Nice Answer Good Answer Populist Famous Question Necromancer Caucus Necromancer Good Answer Yearling Custodian Good Answer Caucus Good Answer Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 9737,43722,1282175,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9738,25250,247474,Yearling Nice Question Popular Question Favorite Question Notable Question Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Popular Question Yearling Popular Question Popular Question Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9739,452392,804423,NULL,NULL,NULL,0,NULL,NULL 9740,9034547,804423,NULL,NULL,NULL,0,NULL,NULL 9741,9829,362264,NULL,NULL,NULL,0,NULL,NULL 9742,92973,205659,Revival Revival Yearling Critic Caucus Constituent Necromancer,NULL,NULL,0,NULL,NULL 9743,303979,2799,Popular Question Popular Question Notable Question Yearling Favorite Question Favorite Question Good Answer Famous Question Famous Question Nice Question Yearling Notable Question Good Answer Good Question Necromancer Notable Question Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9744,2746361,2799,Popular Question Popular Question Notable Question Yearling Favorite Question Favorite Question Good Answer Famous Question Famous Question Nice Question Yearling Notable Question Good Answer Good Question Necromancer Notable Question Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9745,76116,202836,Census Census,NULL,NULL,0,NULL,NULL 9746,63517,241618,NULL,NULL,NULL,0,NULL,NULL 9747,6685,11284,Enthusiast Yearling Notable Question Yearling Nice Question Announcer Yearling,NULL,NULL,0,NULL,NULL 9748,336153,1546786,NULL,NULL,NULL,0,NULL,NULL 9749,1563268,1328811,NULL,NULL,NULL,0,NULL,NULL 9750,208248,722367,Popular Question Self-Learner Necromancer Yearling Nice Answer Notable Question Yearling Good Answer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 9751,206595,1329468,NULL,NULL,NULL,0,NULL,NULL 9752,62104,1332201,NULL,NULL,NULL,0,NULL,NULL 9753,208078,850278,NULL,NULL,NULL,0,NULL,NULL 9754,751193,135786,Good Answer Famous Question Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Guru Nice Answer Good Question Guru Great Answer Good Answer Nice Answer Enlightened Good Answer Guru Enlightened Famous Question Popular Question Nice Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Famous Question Good Answer Good Answer Yearling Nice Answer Enlightened Guru Nice Answer Good Answer Notable Question Famous Question Nice Answer Favorite Question Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Revival Great Answer Good Answer Announcer Great Answer Booster Popular Question Populist Good Answer Guru Nice Answer Good Answer Yearling Nice Answer Necromancer Nice Answer Nice Answer rxjs Good Answer Populist Necromancer Guru Good Answer Nice Answer Great Question Guru Famous Question Yearling Nice Question Necromancer Good Answer Notable Question Nice Answer,NULL,h3With Rx4 codecontrolled code Observable is still invoked when you subscribe h3pThe codecontrolled code operator in RxJS was really just controlling the flow of the Observable emafter em the operator Up to that point it all pumps through and buffers at that operator Consider this pp RxJS href http jsbin com yaqabe edit html js console rel nofollow http jsbin com yaqabe edit html js console ppre codeconst source Rx Observable range do gt console log do controlled source subscribe gt console log setTimeout gt console log requesting source request 1000 code prepYou ll notice all five values from the codeObservable range code are emitted by the codedo code emimmediately em then one second 1000ms pause before you get your two values ppSo it really the illusion of backpressure control In the end there an unbounded buffer in that operator An array that is collecting everything that the Observable above it is sending down and waiting for you to dequeue it by calling coderequest code phrh3RxJS beta replicating codecontrolled code h3pAt the time of this answer the codecontrolled code operator does not exist in RxJS This is for few reasons No requests for it and Its name is clearly confusing hence this question on StackOverflow ppHow to replicate the behavior in RxJS for now href http jsbin com metuyab edit html js console rel nofollow http jsbin com metuyab edit html js console ppre code subject we ll use to zip with the sourceconst controller new Rx Subject request function to next values into the subjectfunction request count for let lt count controller next count We ll zip our source with the subject we don care about what comes out of the Subject so we ll drop that const source Rx Observable range zip controller gt Same effect as above Rx examplesource subscribe gt console log Same effect as above Rx examplerequest code prehrh3Backpressure control h3pFor real backpressure control right now one solution is an iterator of promise IoP isn without its problems though for one thing there an object allocation at each turn Every value has Promise associated to it For another thing cancellation isn there because it promises ppA better Rx based approach is to have Subject that feeds the top of your observable chain and you compose in the rest ppSomething like this href http jsbin com qeqaxo edit js console rel nofollow http jsbin com qeqaxo edit js console ppre code start with valuesconst controller new Rx BehaviorSubject some observable source in this case an interval const source Rx Observable interval 100 const controlled controller flatMap map your count into set of values count gt source take count additional mapping for metadata about when the block is done count value index gt return value value done count index when the block is done request more do done gt done amp amp controller next we only care about the value for output map value gt value start our subscriptioncontrolled subscribe gt console log code prep we have some plans for flowable observable type with real backpressure control in the near future too That will be more exciting and much better for this sort of scenario That flatMap above could probably be concatMap too Just matter of what you re doing with that controller subject and how you want it to behave,1,NULL,RXJS control observable invocation typescript angular rxjs rxjs5 pI use href https github com ReactiveX RxJS rel nofollow RxJs version within my Angular project want to create some observables but don want the observables being invoked immediately ppIn href https github com Reactive Extensions RxJS rel nofollow version you could control the invocation with for example the href https github com Reactive Extensions RxJS blob master doc api core operators controlled md rel nofollow Controlled command or href https github com Reactive Extensions RxJS blob master doc api core operators pausablebuffered md rel nofollow Pausable Buffers But that functionality is not href https github com ReactiveX RxJS blob master MIGRATION md operators renamed or removed rel nofollow yet available in version ppHow can get the this kind of functionality in RxJs ppMy ultimate goal is to queue the created observables and invoke them one by one The next one is only invoked when the previous one is processed successfully When one fails the queue is emptied pp strongEDIT strong ppWith the the comment of Fasching could create working solution with the href https github com Reactive Extensions RxJS blob master doc api core operators publish md rel nofollow Publish operation pp href http jsbin com xiyituqezi edit js console rel nofollow JS Bin ppre code Queue to queue operationsconst queue Just function to create Observersfunction createObserver id Observer return next function console log Next id error function err console log Error err complete function console log Completed Creates an async operation and add it to the queuefunction createOperation name string Observable console log add name Create an async operation var observable Rx Observable create observer gt Some async operation setTimeout gt observer next Done 500 Hold the operation var published observable publish Add Global subscribe published subscribe createObserver Global Add it to the queue queue push published Return the published so the caller could add subscribe return published Create operations on holdcreateOperation SourceA subscribe createObserver SourceA createOperation SourceB subscribe createObserver SourceB createOperation SourceC subscribe createObserver SourceC createOperation SourceD subscribe createObserver SourceD Dequeue and run the firstqueue shift connect code pre h3With Rx4 codecontrolled code Observable is still invoked when you subscribe h3pThe codecontrolled code operator in RxJS was really just controlling the flow of the Observable emafter em the operator Up to that point it all pumps through and buffers at that operator Consider this pp RxJS href http jsbin com yaqabe edit html js console rel nofollow http jsbin com yaqabe edit html js console ppre codeconst source Rx Observable range do gt console log do controlled source subscribe gt console log setTimeout gt console log requesting source request 1000 code prepYou ll notice all five values from the codeObservable range code are emitted by the codedo code emimmediately em then one second 1000ms pause before you get your two values ppSo it really the illusion of backpressure control In the end there an unbounded buffer in that operator An array that is collecting everything that the Observable above it is sending down and waiting for you to dequeue it by calling coderequest code phrh3RxJS beta replicating codecontrolled code h3pAt the time of this answer the codecontrolled code operator does not exist in RxJS This is for few reasons No requests for it and Its name is clearly confusing hence this question on StackOverflow ppHow to replicate the behavior in RxJS for now href http jsbin com metuyab edit html js console rel nofollow http jsbin com metuyab edit html js console ppre code subject we ll use to zip with the sourceconst controller new Rx Subject request function to next values into the subjectfunction request count for let lt count controller next count We ll zip our source with the subject we don care about what comes out of the Subject so we ll drop that const source Rx Observable range zip controller gt Same effect as above Rx examplesource subscribe gt console log Same effect as above Rx examplerequest code prehrh3Backpressure control h3pFor real backpressure control right now one solution is an iterator of promise IoP isn without its problems though for one thing there an object allocation at each turn Every value has Promise associated to it For another thing cancellation isn there because it promises ppA better Rx based approach is to have Subject that feeds the top of your observable chain and you compose in the rest ppSomething like this href http jsbin com qeqaxo edit js console rel nofollow http jsbin com qeqaxo edit js console ppre code start with valuesconst controller new Rx BehaviorSubject some observable source in this case an interval const source Rx Observable interval 100 const controlled controller flatMap map your count into set of values count gt source take count additional mapping for metadata about when the block is done count value index gt return value value done count index when the block is done request more do done gt done amp amp controller next we only care about the value for output map value gt value start our subscriptioncontrolled subscribe gt console log code prep we have some plans for flowable observable type with real backpressure control in the near future too That will be more exciting and much better for this sort of scenario 9755,15544,39161,Guru Nice Answer Yearling Civic Duty Favorite Question symfony1 Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9756,23823,233964,Yearling Self-Learner Popular Question Popular Question Notable Question Yearling Tumbleweed Nice Answer,NULL,NULL,0,NULL,NULL 9757,60400,346417,NULL,NULL,NULL,0,NULL,NULL 9758,17451,46643,Notable Question Yearling Popular Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 9759,1965978,46643,Notable Question Yearling Popular Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 9760,67978,584628,NULL,NULL,NULL,0,NULL,NULL 9761,413950,806889,Nice Answer Student Excavator Yearling Revival Popular Question Self-Learner Announcer Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 9762,74778,947048,Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 9763,19109,246467,Famous Question,NULL,NULL,0,NULL,NULL 9764,148476,446932,Good Answer Revival,NULL,NULL,0,NULL,NULL 9765,93962,705977,Good Answer Yearling Organizer Yearling Nice Answer Enlightened Guru Documentation User Announcer,NULL,NULL,0,NULL,NULL 9766,1521774,955568,NULL,NULL,NULL,0,NULL,NULL 9767,61043,1536763,NULL,NULL,NULL,0,NULL,NULL 9768,23588,399859,NULL,NULL,NULL,0,NULL,NULL 9769,130460,907263,Nice Answer Notable Question Yearling Popular Question Necromancer Good Question Popular Question Yearling Notable Question Notable Question Nice Answer Popular Question Yearling,NULL,pTry ppre codepublic class Main public static void main String args String line foo bar qual baz blurb junk quux syzygy String tokens line split for String tokens System out println gt code prepOutput ppre code gt foo gt bar gt qual baz blurb gt junk quux syzygy code prepIn other words emsplit on the comma only if that comma has zero or an even number of quotes ahead of it em ppOr bit friendlier for the eyes ppre codepublic class Main public static void main String args String line foo bar qual baz blurb junk quux syzygy String otherThanQuote String quotedString String format otherThanQuote String regex String format enable comments ignore white spaces match comma start positive look ahead start non capturing group match otherThanQuote zero or more times match quotedString end group and repeat it zero or more times match otherThanQuote match the end of the string stop positive look ahead otherThanQuote quotedString otherThanQuote String tokens line split regex for String tokens System out println gt code prepwhich produces the same as the first example ph2EDIT h2pAs mentioned by in the comments pblockquote pI prefer using href http docs guava libraries googlecode com git javadoc com google common base Splitter html rel noreferrer Guava Splitter as it has saner defaults see discussion above about empty matches being trimmed by codeString split code so did ppre codeSplitter on Pattern compile code pre blockquote WARNING This regexp is slow It has behavior in that the lookahead at each comma looks all the way to the end of the string Using this regexp caused 4x slowdown in large Spark jobs 45 minutes hours The faster alternative is something like findAllIn in combination with postprocessing step to skip the first always empty field following each non empty field,0,NULL,NULL 9770,300774,10947,Good Answer Necromancer Notable Question Nice Question Good Question Great Question Populist Good Answer Notable Question Good Answer Great Answer Revival Nice Answer Yearling Nice Answer Guru Nice Answer Good Answer Favorite Question Nice Answer Good Answer Nice Answer Populist Notable Question Nice Question Famous Question Popular Question Yearling Great Answer Revival macos Popular Question Nice Answer Revival Nice Answer Nice Answer Stellar Question Yearling,NULL,Leaking views when changing rootViewController inside transitionWithView ios cocoa touch uiviewcontroller core animation pWhile investigating memory leak discovered problem related to the technique of calling codesetRootViewController code inside transition animation block ppre code UIView transitionWithView self window duration options UIViewAnimationOptionTransitionFlipFromLeft animations self window rootViewController newController completion nil code prepIf the old view controller the one being replaced is currently presenting another view controller then the above code does not remove the presented view from the view hierarchy ppThat is this sequence of operations polliX becomes Root View Controller liliX presents so that view is on screen liliUsing codetransitionWithView code to make the new Root View Controller li olp looks OK to the user but the Debug View Hierarchy tool will reveal that view is still there behind view inside codeUITransitionView code That is after the three steps above the view hierarchy is pulliUIWindowulliUITransitionViewulliUIView view li ul liliUIView view li ul li ulpI suspect this is problem because at the time of the transition view isn actually part of the view hierarchy ppIf send codedismissViewControllerAnimated NO code to immediately before codetransitionWithView code the resulting view hierarchy is pulliUIWindowulliUIView view liliUIView view li ul li ulpIf send codedismissViewControllerAnimated code YES or NO to then perform the transition in the codecompletion code block then the view hierarchy is correct Unfortunately that interferes with the animation If animating the dismissal it wastes time if not animating it looks broken ppI trying some other approaches making new container view controller class to serve as my root view controller but haven found anything that works ll update this question as go ppThe ultimate goal is to transition from the presented view to new root view controller directly and without leaving stray view hierarchies around wound up writing code to aggressively dismiss all view controllers before changing the root It very specific to my app though Since posting this ve been wondering if swapping the UIWindow is the thing to do but haven had the time to experiment much pRemove existing files from the repository ppre codefind name DS Store print0 xargs git rm ignore unmatch code prepAdd the line ppre code DS Store code prepto the file code gitignore code which can be found at the top level of your repository or created if it isn there already You can do this easily with this command in the top directory ppre codeecho DS Store gt gt gitignore code prepThen ppre codegit add gitignoregit commit DS Store banished code pre There no point in discussing GitHub gitignore project here comment on the relevant pull request https github com github gitignore pull 2109 pRemove existing files from the repository ppre codefind name DS Store print0 xargs git rm ignore unmatch code prepAdd the line ppre code DS Store code prepto the file code gitignore code which can be found at the top level of your repository or created if it isn there already You can do this easily with this command in the top directory ppre codeecho DS Store gt gt gitignore code prepThen ppre codegit add gitignoregit commit DS Store banished code pre not exactly sure what you mean by type of command you should open new question and or read the Bash manual,0,NULL,NULL 9771,7870,38522,Notable Question Famous Question Nice Question Good Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Nice Question Notable Question Famous Question Nice Question Famous Question Favorite Question Nice Question Nice Question Explainer javascript Tenacious Informed Nice Question Popular Question Peer Pressure Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Good Question Great Question Notable Question Popular Question Nice Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Fanatic Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question Good Question Good Question Favorite Question Famous Question Famous Question Famous Question Notable Question Good Question Nice Question Famous Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Good Question Famous Question Nice Answer Enlightened Nice Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Popular Question Necromancer Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Great Question Notable Question Popular Question Popular Question Great Answer Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Nice Answer Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 9772,727292,1077568,NULL,NULL,NULL,0,NULL,NULL 9773,6542,438295,NULL,NULL,NULL,0,NULL,NULL 9774,84045,88282,NULL,NULL,NULL,0,NULL,NULL 9775,329562,490152,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9776,8921,193253,NULL,NULL,NULL,0,NULL,NULL 9777,330764,384316,Popular Question Yearling Tenacious Documentation User Popular Question Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9778,406047,852742,NULL,NULL,NULL,0,NULL,NULL 9779,88147,244389,NULL,NULL,NULL,0,NULL,NULL 9780,182061,1173944,NULL,NULL,NULL,0,NULL,NULL 9781,31435,358173,Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9782,38777,365526,Good Answer Nice Answer Enlightened Famous Question Yearling Great Answer Popular Question Notable Question Nice Answer Great Answer Great Answer Yearling Notable Question Announcer Nice Answer Enlightened Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9783,299667,940133,NULL,NULL,NULL,0,NULL,NULL 9784,95601,1253063,NULL,NULL,NULL,0,NULL,NULL 9785,293446,161298,Notable Question Yearling Yearling Nice Answer Good Answer Excavator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9786,186414,1445526,Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 9787,889258,1417031,NULL,NULL,NULL,0,NULL,NULL 9788,851772,217006,NULL,NULL,NULL,0,NULL,NULL 9789,564646,238221,NULL,NULL,NULL,0,NULL,NULL 9790,308799,601907,NULL,NULL,NULL,0,NULL,NULL 9791,96582,33051,Nice Answer Nice Answer Guru Nice Answer Yearling Caucus Constituent Popular Question Census Nice Answer Popular Question Announcer Announcer Guru Caucus Constituent Nice Answer Documentation User Yearling Nice Answer Census Guru Necromancer Nice Answer Pundit Caucus Constituent Guru Notable Question Nice Answer asp.net-membership Announcer Yearling,NULL,NULL,0,NULL,NULL 9792,615853,400686,Famous Question Curious Critic Yearling Famous Question,NULL,NULL,0,NULL,NULL 9793,28094,532530,Good Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 9794,1514871,1154489,NULL,NULL,NULL,0,NULL,NULL 9795,325115,135124,Yearling Popular Question Editor Promoter Benefactor Caucus Popular Question Stellar Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 9796,5800,383775,NULL,NULL,NULL,0,NULL,NULL 9797,227362,1421857,NULL,NULL,NULL,0,NULL,NULL 9798,124504,1256191,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 9799,162688,1535566,Teacher Supporter,NULL,NULL,0,NULL,NULL 9800,1194709,1117691,NULL,NULL,NULL,0,NULL,NULL 9801,119415,828177,NULL,NULL,NULL,0,NULL,NULL 9802,65007,1089729,NULL,NULL,NULL,0,NULL,NULL 9803,254096,1168516,NULL,NULL,NULL,0,NULL,NULL 9804,21430,95274,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 9805,66586,301280,Yearling Nice Answer Caucus Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 9806,927566,1022096,NULL,NULL,NULL,0,NULL,NULL 9807,344785,902483,Popular Question,NULL,NULL,0,NULL,NULL 9808,63477,46545,Guru Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 9809,1074912,1446457,Teacher Supporter,NULL,NULL,0,NULL,NULL 9810,2792,121477,Excavator Popular Question Notable Question Caucus Famous Question Nice Question,NULL,NULL,0,NULL,NULL 9811,1311598,1062730,NULL,NULL,NULL,0,NULL,NULL 9812,85697,194869,Popular Question Popular Question Popular Question Yearling Popular Question Necromancer Yearling Famous Question Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 9813,68437,151262,Informed,NULL,NULL,0,NULL,NULL 9814,47662,451977,NULL,NULL,NULL,0,NULL,NULL 9815,304749,859762,Notable Question ruby Popular Question Great Answer Famous Question Famous Question Yearling Good Answer Caucus Nice Answer Revival Nice Answer Good Question Notable Question html Guru Popular Question Guru Yearling Necromancer Nice Question Good Answer javascript Nice Question Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 9816,215868,711242,NULL,NULL,NULL,0,NULL,NULL 9817,194785,937434,NULL,NULL,NULL,0,NULL,NULL 9818,192155,924203,NULL,NULL,NULL,0,NULL,NULL 9819,65226,68101,Nice Question Yearling Favorite Question Great Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 9820,2298651,1386209,Curious Notable Question Popular Question Excavator Famous Question Yearling Caucus Good Question Yearling,NULL,NULL,0,NULL,NULL 9821,2457224,1386209,Curious Notable Question Popular Question Excavator Famous Question Yearling Caucus Good Question Yearling,NULL,NULL,0,NULL,NULL 9822,407825,800782,Necromancer,NULL,NULL,0,NULL,NULL 9823,146538,413354,Reviewer Strunk & White Explainer Custodian Yearling Good Answer Caucus Constituent Census Custodian Custodian Custodian Caucus Yearling Great Answer Documentation User Census Caucus Reviewer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9824,24334,541235,Nice Answer,NULL,NULL,0,NULL,NULL 9825,34111,828277,Guru Student Yearling Promoter Yearling Caucus Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 9826,442450,140395,Famous Question Editor Curious Commentator Informed Autobiographer Organizer Excavator Yearling Popular Question Good Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 9827,373344,427878,NULL,NULL,NULL,0,NULL,NULL 9828,198738,890634,Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 9829,9901,695499,NULL,NULL,NULL,0,NULL,NULL 9830,205430,485735,NULL,NULL,NULL,0,NULL,NULL 9831,212947,501654,NULL,NULL,NULL,0,NULL,NULL 9832,221150,432513,NULL,NULL,NULL,0,NULL,NULL 9833,72198,124414,Good Answer Good Answer Great Answer Guru Yearling Guru ruby-on-rails Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 9834,788274,424704,NULL,NULL,NULL,0,NULL,NULL 9835,308271,424704,NULL,NULL,NULL,0,NULL,NULL 9836,705621,982907,Famous Question,NULL,NULL,0,NULL,NULL 9837,178176,809286,NULL,NULL,NULL,0,NULL,NULL 9838,604486,1392745,NULL,NULL,NULL,0,NULL,NULL 9839,287148,759441,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 9840,291536,1229275,Yearling Caucus Nice Answer Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 9841,45186,3381,Notable Question Popular Question Great Answer Notable Question Famous Question Good Answer Famous Question Nice Question Yearling Nice Answer Good Answer Announcer Notable Question Nice Answer Enlightened Nice Question Good Answer Guru Yearling Popular Question Nice Answer Enlightened Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9842,65416,379063,NULL,NULL,NULL,0,NULL,NULL 9843,48381,82518,NULL,NULL,NULL,0,NULL,NULL 9844,311803,109903,NULL,NULL,NULL,0,NULL,NULL 9845,53497,758011,Revival Caucus Notable Question Caucus Electorate Popular Question Yearling,NULL,NULL,0,NULL,NULL 9846,188007,854909,Necromancer Revival,NULL,NULL,0,NULL,NULL 9847,11938,24488,NULL,NULL,NULL,0,NULL,NULL 9848,118592,421808,Popular Question Nice Question Tumbleweed Nice Question Popular Question Nice Question Yearling Notable Question Notable Question Critic Famous Question,NULL,NULL,0,NULL,NULL 9849,7897,39207,Necromancer Necromancer Revival Nice Question Necromancer Yearling Notable Question Necromancer Necromancer Nice Answer Enlightened Caucus Yearling Good Answer Yearling,NULL,pThe dirname command is the most basic simply parsing the path up to the filename off of the script name variable ppre codedirname code prepBut as strongmatt strong pointed out the path returned is different depending on how the script is called pwd doesn do the job because that only tells you what the current directory is not what directory the script resides in Additionally if symbolic link to script is executed you re going to get probably relative path to where the link resides not the actual script ppSome others have mentioned the strongreadlink strong command but at its simplest you can use ppre codedirname readlink code prepreadlink will resolve the script path to an absolute path from the root of the filesystem So any paths containing single or double dots tildes and or symbolic links will be resolved to full path ppHere script demonstrating each of these strongwhatdir sh strong ppre code bin bashecho pwd pwd echo echo basename basename echo dirname dirname echo dirname readlink dirname readlink code prepRunning this script in my home dir using relative path ppre class lang none prettyprint override code gt gt gt whatdir sh pwd Users phatblat whatdir shbasename whatdir shdirname dirname readlink Users phatblat code prepAgain but using the full path to the script ppre class lang none prettyprint override code gt gt gt Users phatblat whatdir sh pwd Users phatblat Users phatblat whatdir shbasename whatdir shdirname Users phatblatdirname readlink Users phatblat code prepNow changing directories ppre class lang none prettyprint override code gt gt gt cd tmp gt gt gt whatdir sh pwd tmp Users phatblat whatdir shbasename whatdir shdirname Users phatblatdirname readlink Users phatblat code prepAnd finally using symbolic link to execute the script ppre class lang none prettyprint override code gt gt gt ln whatdir sh whatdirlink sh gt gt gt whatdirlink sh pwd tmp whatdirlink shbasename whatdirlink shdirname dirname readlink Users phatblat code pre Good call FYI greadlink can easily be installed through homebrew brew install coreutils,0,NULL,NULL 9850,199494,788168,Announcer Yearling Notable Question Nice Answer Enlightened Popular Question Yearling Self-Learner Revival Yearling,NULL,pAll these tips will work but simpler way might be to include your stylesheet emafter em the Bootstrap styles ppIf you include your css codesite specific css code after Bootstrap codebootstrap css code you can override rules by redefining them ppFor example if this is how you include CSS in your code lt head gt code ppre code lt link rel stylesheet href css bootstrap css gt lt link rel stylesheet href css site specific css gt code prepYou can simply move the sidebar to the right by writing in your codesite specific css code file ppre code sidebar float right code prepForgive the lack of HAML and SASS do not know them well enough to write tutorials in them łażejMichalik You are only partially correct They are prioritized by both order and specificity See item of Cascading Order https www w3 org TR 2011 REC CSS2 20110607 cascade html cascade Most modern CSS design principles suggest that high specificity is bad http csswizardry com 2012 05 keep your css selectors short But yes sometimes Bootstrap has high specificity and you will need to be equally specific still think my answer is better than the accepted one though pAll these tips will work but simpler way might be to include your stylesheet emafter em the Bootstrap styles ppIf you include your css codesite specific css code after Bootstrap codebootstrap css code you can override rules by redefining them ppFor example if this is how you include CSS in your code lt head gt code ppre code lt link rel stylesheet href css bootstrap css gt lt link rel stylesheet href css site specific css gt code prepYou can simply move the sidebar to the right by writing in your codesite specific css code file ppre code sidebar float right code prepForgive the lack of HAML and SASS do not know them well enough to write tutorials in them łażejMichalik still argue that inclusion order is your most idiomatic way to override if possible prefer that For this specific question that is possible For other questions you are of course correct No inclusion order beats specificity,0,NULL,NULL 9851,440124,1319,Revival Yearling Nice Question Popular Question Nice Question Self-Learner Nice Answer Enlightened Popular Question Yearling Popular Question Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9852,415383,1055038,NULL,NULL,NULL,0,NULL,NULL 9853,3931016,1055038,NULL,NULL,NULL,0,NULL,NULL 9854,1360436,817636,NULL,NULL,NULL,0,NULL,NULL 9855,171423,1176190,NULL,NULL,NULL,0,NULL,NULL 9856,885510,67457,Yearling,NULL,NULL,0,NULL,NULL 9857,198766,357106,Nice Answer Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Good Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 9858,53510,1561740,Supporter Tumbleweed Editor,NULL,NULL,0,NULL,NULL 9859,14141,789610,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 9860,161853,189696,NULL,NULL,NULL,0,NULL,NULL 9861,297264,212183,Yearling,NULL,NULL,0,NULL,NULL 9862,6278307,61396,Yearling Great Answer Necromancer Nice Answer Yearling Nice Answer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 9863,482548,41541,Notable Question Popular Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 9864,33765,1420423,Curious Commentator,NULL,NULL,0,NULL,NULL 9865,6998235,599002,NULL,NULL,NULL,0,NULL,NULL 9866,51628,1275666,Citizen Patrol Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9867,88703,832395,NULL,NULL,NULL,0,NULL,NULL 9868,17450,1186294,NULL,NULL,NULL,0,NULL,NULL 9869,106848,314379,Nice Answer,NULL,NULL,0,NULL,NULL 9870,165505,665228,Notable Question Popular Question Yearling Popular Question Good Answer Yearling Necromancer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 9871,47571,1306285,NULL,NULL,NULL,0,NULL,NULL 9872,503173,1249163,NULL,NULL,NULL,0,NULL,NULL 9873,599605,626327,Tumbleweed Census Commentator Excavator,NULL,NULL,0,NULL,NULL 9874,146490,430153,Popular Question,NULL,NULL,0,NULL,NULL 9875,1520760,226831,Scholar Famous Question Popular Question,NULL,NULL,0,NULL,NULL 9876,734844,538729,Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 9877,165014,247081,Yearling Favorite Question Popular Question Good Question Popular Question Notable Question Notable Question Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 9878,248481,1042731,Revival Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 9879,165233,226726,NULL,NULL,NULL,0,NULL,NULL 9880,69189,26880,Notable Question Nice Answer Good Answer Yearling Famous Question Yearling Notable Question Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 9881,1661077,706114,NULL,NULL,NULL,0,NULL,NULL 9882,68895,97394,Commentator Yearling,NULL,NULL,0,NULL,NULL 9883,187895,861677,Popular Question Yearling Popular Question Critic Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9884,130306,908569,NULL,NULL,NULL,0,NULL,NULL 9885,97504,11703,Yearling Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 9886,240324,298100,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9887,2393082,1296812,NULL,NULL,NULL,0,NULL,NULL 9888,628265,1296812,NULL,NULL,NULL,0,NULL,NULL 9889,569878,269515,Yearling Popular Question Nice Question Revival,NULL,NULL,0,NULL,NULL 9890,315634,1487961,Yearling,NULL,NULL,0,NULL,NULL 9891,1210185,982495,NULL,NULL,NULL,0,NULL,NULL 9892,422016,1294246,NULL,NULL,NULL,0,NULL,NULL 9893,15078,440966,NULL,NULL,NULL,0,NULL,NULL 9894,1522405,1188054,Necromancer Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 9895,116089,665420,NULL,NULL,NULL,0,NULL,NULL 9896,390118,561806,Good Answer Yearling,NULL,NULL,0,NULL,NULL 9897,42057,953218,Favorite Question Necromancer Revival Populist Popular Question Necromancer Nice Answer Notable Question Guru Nice Answer Guru Yearling Popular Question Necromancer Notable Question Nice Answer Nice Question Guru Famous Question Good Question Nice Answer Excavator Nice Answer Good Answer Popular Question Caucus Necromancer Yearling Great Answer Good Answer Popular Question Popular Question Great Question Nice Answer Civic Duty Famous Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9898,95617,661606,NULL,NULL,NULL,0,NULL,NULL 9899,1613436,661606,NULL,NULL,NULL,0,NULL,NULL 9900,316888,402424,Notable Question,NULL,NULL,0,NULL,NULL 9901,14933,816953,NULL,NULL,NULL,0,NULL,NULL 9902,174005,892201,NULL,NULL,NULL,0,NULL,NULL 9903,633558,1410614,NULL,NULL,NULL,0,NULL,NULL 9904,89787,1301892,NULL,NULL,NULL,0,NULL,NULL 9905,30090,573562,NULL,NULL,NULL,0,NULL,NULL 9906,216189,664125,Popular Question Yearling Popular Question Guru Notable Question Notable Question Notable Question Custodian Yearling Revival Revival Notable Question Notable Question Popular Question Yearling Popular Question Necromancer Notable Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 9907,193888,330829,NULL,NULL,NULL,0,NULL,NULL 9908,325606,1324513,NULL,NULL,NULL,0,NULL,NULL 9909,116687,839749,NULL,NULL,NULL,0,NULL,NULL 9910,372578,1106992,Popular Question,NULL,NULL,0,NULL,NULL 9911,10023875,662888,Nice Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9912,1662765,662888,Nice Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 9913,108066,317472,NULL,NULL,NULL,0,NULL,NULL 9914,9669,1109852,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 9915,80654,668783,NULL,NULL,NULL,0,NULL,NULL 9916,45751,399533,NULL,NULL,NULL,0,NULL,NULL 9917,212823,586390,Famous Question,NULL,NULL,0,NULL,NULL 9918,20555,678207,NULL,NULL,NULL,0,NULL,NULL 9919,747404,92318,Self-Learner Popular Question Famous Question Caucus Popular Question Notable Question Notable Question Notable Question Census Caucus Constituent Yearling Nice Question,NULL,NULL,0,NULL,NULL 9920,69288,937904,NULL,NULL,NULL,0,NULL,NULL 9921,310086,530251,NULL,NULL,NULL,0,NULL,NULL 9922,111530,645124,NULL,NULL,NULL,0,NULL,NULL 9923,1837460,1546976,Census,NULL,NULL,0,NULL,NULL 9924,483886,354510,NULL,NULL,NULL,0,NULL,NULL 9925,316711,774449,NULL,NULL,NULL,0,NULL,NULL 9926,252883,229424,Popular Question Famous Question Notable Question Good Question Nice Question Notable Question Popular Question Yearling Good Question Famous Question Popular Question Popular Question Famous Question Yearling Famous Question Nice Question Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 9927,655992,1023812,Notable Question Custodian Custodian Tenacious Popular Question Notable Question Custodian Notable Question Popular Question Civic Duty Nice Question Notable Question Proofreader Notable Question Yearling Notable Question Nice Question Popular Question Famous Question Popular Question Nice Question Nice Question Custodian Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Good Question Organizer Caucus Nice Question Good Question Revival Notable Question Popular Question Custodian Excavator Reviewer Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9928,1063940,1464343,Autobiographer Teacher Tumbleweed Excavator Popular Question Citizen Patrol Notable Question Nice Question Critic,NULL,NULL,0,NULL,NULL 9929,402297,588322,Nice Answer,NULL,NULL,0,NULL,NULL 9930,152232,478144,Good Question Good Question Nice Answer Enlightened Nice Question Famous Question jquery Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Answer Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Popular Question Great Answer Notable Question Famous Question Popular Question javascript Popular Question Nice Question Nice Question Popular Question Notable Question Good Question Famous Question Notable Question Popular Question Nice Answer Nice Question Yearling Famous Question Famous Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Socratic Great Question Good Question Notable Question Famous Question Nice Question Famous Question Nice Question Popular Question Good Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Answer Popular Question Notable Question Famous Question Famous Question Great Answer Yearling Famous Question Notable Question Famous Question Notable Question Notable Question Notable Question Nice Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Good Question Great Answer Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Popular Question Popular Question Nice Question Popular Question Popular Question Yearling Good Question Popular Question Nice Question Favorite Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9931,432053,68707,Yearling Good Question Revival Notable Question Nice Question Popular Question Caucus Guru Popular Question Popular Question Notable Question Yearling Tenacious Popular Question Announcer Announcer Nice Answer Enlightened Nice Question Custodian Custodian Good Answer Nice Answer Famous Question Nice Question Yearling Enlightened Notable Question Announcer Good Answer Nice Question Cleanup Necromancer,NULL,NULL,0,NULL,NULL 9932,602724,75857,Popular Question Yearling Good Question Yearling Nice Question Notable Question Popular Question Good Question Notable Question Famous Question Yearling Popular Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9933,89171,392350,Good Question Popular Question Famous Question Popular Question Nice Question Notable Question Yearling Popular Question Caucus Notable Question Notable Question Yearling Notable Question Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 9934,132425,490493,NULL,NULL,NULL,0,NULL,NULL 9935,1385899,165702,Self-Learner Popular Question Custodian Citizen Patrol Popular Question Yearling Popular Question Caucus Constituent Notable Question Popular Question Notable Question Caucus Constituent Favorite Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9936,581450,754361,NULL,NULL,NULL,0,NULL,NULL 9937,76106,668259,Yearling,NULL,NULL,0,NULL,NULL 9938,186993,913077,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 9939,754585,733305,NULL,NULL,NULL,0,NULL,NULL 9940,922715,191086,Popular Question Popular Question Yearling Popular Question Caucus Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9941,15626,1025471,NULL,NULL,NULL,0,NULL,NULL 9942,270525,378482,Good Question Notable Question Yearling Famous Question Nice Question Documentation User Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 9943,1716248,440119,Nice Answer Enlightened Notable Question Nice Answer char Nice Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened reference const Nice Answer Guru Guru Nice Answer Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Self-Learner Nice Answer Good Answer Nice Answer Yearling Nice Answer Good Answer Nice Answer string Nice Answer Guru Enlightened Guru Good Answer Nice Answer function Good Answer Nice Answer Popular Question Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Good Answer Guru Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Caucus sdl Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling sorting Nice Answer Enlightened Good Answer Documentation User Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer lambda Caucus Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer arrays Notable Question Popular Question Popular Question Yearling Guru Nice Question Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Guru Guru Good Answer,NULL,NULL,0,NULL,NULL 9944,323386,1272941,Necromancer Promoter Curious Yearling Necromancer Nice Answer Critic Yearling Necromancer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 9945,161213,1167626,Guru Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 9946,475398,1102856,NULL,NULL,NULL,0,NULL,NULL 9947,233405,667330,Popular Question Notable Question Revival Yearling Nice Question Yearling Popular Question Promoter Benefactor Yearling Popular Question,NULL,NULL,0,NULL,NULL 9948,19958,1121482,Informed Autobiographer,NULL,NULL,0,NULL,NULL 9949,273768,381220,Supporter,NULL,NULL,0,NULL,NULL 9950,458900,199685,Nice Answer Necromancer Popular Question Cleanup Enthusiast Notable Question Yearling Popular Question Necromancer Necromancer Necromancer Popular Question Nice Answer Yearling Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 9951,137043,455770,Notable Question Organizer Good Answer Necromancer Necromancer Nice Answer Popular Question Good Answer Yearling Popular Question Caucus Constituent Nice Question Popular Question Great Answer Nice Answer Enlightened Caucus Constituent Popular Question Yearling Documentation User Revival Caucus Constituent Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9952,241265,209263,Yearling,NULL,NULL,0,NULL,NULL 9953,142606,978960,NULL,NULL,NULL,0,NULL,NULL 9954,227311,1327559,Popular Question Notable Question Popular Question Yearling Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 9955,247132,986338,Student Supporter,NULL,NULL,0,NULL,NULL 9956,8886849,986338,Student Supporter,NULL,NULL,0,NULL,NULL 9957,1020678,986338,Student Supporter,NULL,NULL,0,NULL,NULL 9958,231422,416250,NULL,NULL,NULL,0,NULL,NULL 9959,742286,431079,Civic Duty Yearling Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 9960,913297,383804,Popular Question Yearling Promoter Benefactor Caucus Constituent Yearling Custodian Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 9961,3968195,1229694,NULL,NULL,NULL,0,NULL,NULL 9962,79683,1510867,Teacher Revival Commentator Announcer Yearling Revival Self-Learner Popular Question Popular Question Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 9963,292344,650228,Yearling Guru Nice Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 9964,140301,379399,Popular Question,NULL,NULL,0,NULL,NULL 9965,3487,104274,Supporter Popular Question Notable Question Excavator Teacher,NULL,NULL,0,NULL,NULL 9966,54821,245907,NULL,NULL,NULL,0,NULL,NULL 9967,559341,1389981,Guru Yearling Caucus Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 9968,1353653,743062,NULL,NULL,NULL,0,NULL,NULL 9969,596359,652084,NULL,NULL,NULL,0,NULL,NULL 9970,350597,1456391,Notable Question Nice Answer Yearling Autobiographer Caucus Popular Question Critic,NULL,NULL,0,NULL,NULL 9971,469782,1259918,Student,NULL,NULL,0,NULL,NULL 9972,44666,528428,Popular Question Good Question Nice Answer Enlightened Notable Question Guru Excavator Nice Answer Nice Answer Enlightened Caucus Constituent Yearling Popular Question Good Answer Enlightened Great Answer Good Question Revival Good Answer Caucus Popular Question Yearling Nice Answer Famous Question Great Answer Revival Nice Answer Caucus Favorite Question Great Question Custodian Great Answer Popular Question,NULL,NULL,0,NULL,NULL 9973,799151,609700,NULL,NULL,NULL,0,NULL,NULL 9974,221994,339260,Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Self-Learner Popular Question Nice Question Nice Question Popular Question Nice Question Citizen Patrol Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9975,8775332,339260,Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Self-Learner Popular Question Nice Question Nice Question Popular Question Nice Question Citizen Patrol Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 9976,1030695,1318952,NULL,NULL,NULL,0,NULL,NULL 9977,1583,1171480,Popular Question Yearling Famous Question Nice Answer Enlightened Notable Question Excavator Yearling Peer Pressure php Unsung Hero Yearling,NULL,NULL,0,NULL,NULL 9978,168013,995604,Popular Question,NULL,NULL,0,NULL,NULL 9979,384932,723783,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 9980,1001102,758437,NULL,NULL,NULL,0,NULL,NULL 9981,52175,385613,Informed Editor,NULL,NULL,0,NULL,NULL 9982,349555,1440029,NULL,NULL,NULL,0,NULL,NULL 9983,847471,905015,NULL,NULL,NULL,0,NULL,NULL 9984,1076056,1189998,NULL,NULL,NULL,0,NULL,NULL 9985,507368,1189998,NULL,NULL,NULL,0,NULL,NULL 9986,9798458,927985,NULL,NULL,NULL,0,NULL,NULL 9987,1065619,631390,Teacher,NULL,NULL,0,NULL,NULL 9988,26370,1322223,NULL,NULL,NULL,0,NULL,NULL 9989,777849,884191,Popular Question Yearling Self-Learner Nice Answer Yearling Good Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 9990,2119426,875005,NULL,NULL,NULL,0,NULL,NULL 9991,432657,875005,NULL,NULL,NULL,0,NULL,NULL 9992,181908,329846,NULL,NULL,NULL,0,NULL,NULL 9993,461096,79048,Nice Answer Popular Question Yearling Good Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 9994,206520,535743,NULL,NULL,NULL,0,NULL,NULL 9995,199204,728717,NULL,NULL,NULL,0,NULL,NULL 9996,201732,364029,Nice Answer Popular Question Popular Question Yearling Nice Question Famous Question Promoter Benefactor Famous Question Popular Question Notable Question Notable Question Census Good Question Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 9997,100392,1407345,NULL,NULL,NULL,0,NULL,NULL 9998,234160,778124,NULL,NULL,NULL,0,NULL,NULL 9999,440440,421251,Yearling Revival,NULL,NULL,0,NULL,NULL 10000,128608,161759,Notable Question,NULL,NULL,0,NULL,NULL 10001,475374,1204416,NULL,NULL,NULL,0,NULL,NULL 10002,640677,1204416,NULL,NULL,NULL,0,NULL,NULL 10003,214846,1073348,NULL,NULL,NULL,0,NULL,NULL 10004,252410,827511,NULL,NULL,NULL,0,NULL,NULL 10005,10413,33795,Nice Answer Enlightened Yearling Yearling Nice Answer Great Answer Explainer Yearling,NULL,NULL,0,NULL,NULL 10006,27416,155358,NULL,NULL,NULL,0,NULL,NULL 10007,351723,159289,Popular Question Editor,NULL,NULL,0,NULL,NULL 10008,754673,1095955,NULL,NULL,NULL,0,NULL,NULL 10009,34426,1316848,NULL,NULL,NULL,0,NULL,NULL 10010,49899,1407848,NULL,NULL,NULL,0,NULL,NULL 10011,512201,1015119,NULL,NULL,NULL,0,NULL,NULL 10012,396791,683196,Editor Excavator,NULL,NULL,0,NULL,NULL 10013,321541,1440587,NULL,NULL,NULL,0,NULL,NULL 10014,6235,938949,Taxonomist Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Revival Good Answer Tumbleweed jupyter Yearling Nice Answer Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer jupyter-notebook Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Yearling Enlightened Announcer Nice Answer Great Answer Nice Answer parallel-processing Enlightened Guru Nice Answer Enlightened Great Answer Popular Question Good Answer Good Answer Great Answer Nice Answer Enlightened Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 10015,132683,287568,Nice Answer Good Answer Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 10016,1566487,263676,NULL,NULL,NULL,0,NULL,NULL 10017,89892,34441,Yearling Nice Answer Revival Guru Yearling Nice Answer Caucus Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10018,1613913,1038017,Popular Question,NULL,NULL,0,NULL,NULL 10019,77615,1551701,Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 10020,36851,1068060,Nice Answer,NULL,NULL,0,NULL,NULL 10021,375383,398485,Nice Question,NULL,NULL,0,NULL,NULL 10022,1242890,1089122,NULL,NULL,NULL,0,NULL,NULL 10023,359614,721578,Popular Question Yearling Quorum Famous Question Revival Curious Good Answer Yearling Guru Documentation User Census Popular Question Civic Duty Custodian Yearling Nice Question,NULL,NULL,0,NULL,NULL 10024,28178,405682,Yearling Necromancer Yearling Announcer Nice Answer Nice Answer Enlightened Yearling Necromancer Tag Editor Announcer Announcer Custodian,NULL,NULL,0,NULL,NULL 10025,12723,241837,Good Answer,NULL,NULL,0,NULL,NULL 10026,604923,1446760,NULL,NULL,NULL,0,NULL,NULL 10027,174408,328504,Yearling Yearling Yearling Nice Answer Enlightened Good Question Famous Question Yearling Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 10028,414884,705332,NULL,NULL,NULL,0,NULL,NULL 10029,368233,1157110,NULL,NULL,NULL,0,NULL,NULL 10030,527422,141284,Popular Question Good Answer Yearling Guru Notable Question Yearling Revival Nice Question Nice Answer Announcer Custodian Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10031,267482,141284,Popular Question Good Answer Yearling Guru Notable Question Yearling Revival Nice Question Nice Answer Announcer Custodian Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10032,719893,340467,Popular Question Notable Question Favorite Question Yearling Great Question Notable Question Yearling Popular Question Popular Question Caucus Yearling Critic Cleanup,NULL,NULL,0,NULL,NULL 10033,1519897,924087,NULL,NULL,NULL,0,NULL,NULL 10034,473463,227230,Nice Answer Yearling Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Good Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10035,747901,1255734,NULL,NULL,NULL,0,NULL,NULL 10036,726088,1208331,NULL,NULL,NULL,0,NULL,NULL 10037,67339,647316,Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10038,68421,1020037,NULL,NULL,NULL,0,NULL,NULL 10039,220654,197606,Famous Question Notable Question Notable Question Notable Question Famous Question Notable Question Great Question Nice Question Famous Question Popular Question Popular Question Nice Question Nice Question Notable Question Notable Question Nice Question Electorate Notable Question Popular Question Popular Question Revival Notable Question Popular Question Notable Question Famous Question Good Question Good Answer Popular Question Announcer Popular Question Announcer Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Good Question Famous Question Notable Question Famous Question Famous Question Famous Question Nice Question Famous Question Popular Question Good Question Favorite Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Custodian Custodian Custodian Notable Question Notable Question Nice Question Popular Question Notable Question Good Question Revival Great Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Nice Question Notable Question Nice Question Notable Question Notable Question Famous Question Popular Question Famous Question Popular Question Favorite Question Popular Question Famous Question Popular Question Good Question Famous Question Famous Question Notable Question Popular Question Nice Question Notable Question Popular Question Good Question Famous Question Popular Question Nice Question Nice Question Nice Question Nice Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Popular Question Good Question Notable Question Nice Question Popular Question Notable Question Nice Question Good Question Favorite Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Nice Answer Notable Question Good Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Pundit Notable Question Popular Question Nice Question Popular Question Notable Question Great Answer Popular Question Good Question Announcer Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10040,241076,1334477,NULL,NULL,NULL,0,NULL,NULL 10041,105837,112765,Nice Question Famous Question Yearling Notable Question Good Question Good Question Necromancer Good Question Nice Answer Good Question Popular Question Nice Question Popular Question Notable Question Nice Question Notable Question Yearling Popular Question Famous Question Famous Question Nice Question Yearling Famous Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 10042,476922,910025,NULL,NULL,NULL,0,NULL,NULL 10043,1075886,1459363,Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 10044,2028257,1309663,NULL,NULL,NULL,0,NULL,NULL 10045,41474,234944,ruby Great Answer Good Answer Nice Answer Notable Question Yearling Good Answer Necromancer Nice Answer Enlightened Civic Duty Yearling Informed Favorite Question,NULL,NULL,0,NULL,NULL 10046,243047,1036500,Nice Answer Enlightened Announcer Necromancer Announcer Announcer Good Answer Good Answer Nice Answer Revival Nice Answer Enlightened Sportsmanship Popular Question Nice Answer Announcer r Good Answer Necromancer Good Answer Famous Question Popular Question Nice Answer Announcer Notable Question Taxonomist Nice Question Good Answer Nice Question Popular Question Nice Answer Enlightened Nice Answer Popular Question Nice Question Good Answer Revival Announcer Revival Nice Answer Nice Answer Yearling Announcer Popular Question Revival Famous Question Cleanup Necromancer Announcer Nice Question Announcer Announcer Notable Question Announcer Guru Popular Question Nice Answer Announcer Notable Question Nice Answer Announcer Announcer Announcer Announcer Good Answer Announcer Favorite Question Nice Answer Announcer Announcer Announcer Announcer Nice Answer Popular Question Popular Question Necromancer Announcer Announcer Necromancer Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Announcer Good Answer Announcer Announcer Announcer Notable Question Nice Answer Enlightened Announcer Notable Question Necromancer Yearling Announcer Necromancer Good Answer Good Answer Great Question Announcer Announcer Announcer Nice Answer Nice Answer Good Question Famous Question Announcer Populist Great Answer Nice Answer Good Answer Necromancer ggplot2 Booster Famous Question Necromancer Announcer Announcer Favorite Question Nice Question Notable Question Nice Answer Booster Nice Question Necromancer Necromancer Necromancer Nice Answer Good Answer Popular Question Notable Question Yearling Popular Question,NULL,pI wrote the answer on CV that you refer to here bit more detail polli codeseq 100 by code simply creates number sequence from to 100 by ones so 100 Those are the numbers of topics that want to use in the models One model with topics another with topics another with topics and so on to 100 topics lili codeAssociatedPress 21 30 code is simply subset of the built in data in the codetopicmodels code package just used subset in that example so that it would run faster li olpRegarding the general question of optimal topic numbers now follow the example of MartinPonweiser on Model Selection by Harmonic Mean in his thesis which is here href http epub wu ac at 3558 main pdf rel noreferrer http epub wu ac at 3558 main pdf Here how do it at the moment ppre codelibrary topicmodels get some of the example data that bundled with the package data AssociatedPress package topicmodels harmonicMean lt function logLikelihoods precision 2000L library Rmpfr llMed lt median logLikelihoods as double llMed log mean exp mpfr logLikelihoods prec precision llMed The log likelihood values are then determined by first fitting the model using for examplek 20burnin 1000iter 1000keep 50fitted lt LDA AssociatedPress 21 30 method Gibbs control list burnin burnin iter iter keep keep where keep indicates that every keep iteration the log likelihood is evaluated and stored This returns all log likelihood values including burnin these need to be omitted before calculating the harmonic mean logLiks lt fitted burnin keep assuming that burnin is multiple of keep and harmonicMean logLiks code prepSo to do this over sequence of topic models with different numbers of topics ppre code generate numerous topic models with different numbers of topicssequ lt seq 50 in this case sequence of numbers from to 50 by ones fitted many lt lapply sequ function LDA AssociatedPress 21 30 method Gibbs control list burnin burnin iter iter keep keep extract logliks from each topiclogLiks many lt lapply fitted many function burnin keep compute harmonic meanshm many lt sapply logLiks many function harmonicMean inspectplot sequ hm many type compute optimum number of topicssequ which max hm many code prep img src https stack imgur com VSYS0 png alt enter image description here Here the output with numbers of topics along the axis indicating that topics is optimum ppCross validation of topic models is pretty well documented in the docs that come with the package see here for example href http cran project org web packages topicmodels vignettes topicmodels pdf rel noreferrer http cran project org web packages topicmodels vignettes topicmodels pdf Give that try and then come back with more specific question about coding CV with topic models Lately have been using this pkg to find the optimum number of topics https cran project org web packages ldatuning,0,NULL,NULL 10047,247284,815014,NULL,NULL,NULL,0,NULL,NULL 10048,24326,357866,NULL,NULL,NULL,0,NULL,NULL 10049,990724,1431816,NULL,NULL,NULL,0,NULL,NULL 10050,3120054,1431816,NULL,NULL,NULL,0,NULL,NULL 10051,334308,1431816,NULL,NULL,NULL,0,NULL,NULL 10052,431944,78666,Yearling Necromancer Caucus Yearling Nice Question Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10053,22065,567039,Informed Caucus Constituent Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 10054,346224,1339569,Popular Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 10055,59808,119624,Good Answer Popular Question Popular Question Good Question Famous Question Benefactor Popular Question Famous Question Famous Question Yearling Nice Question Notable Question Good Answer Notable Question Necromancer Notable Question Notable Question Nice Answer Great Answer Nice Answer Revival Notable Question Yearling Nice Question Caucus Notable Question Notable Question Popular Question Nice Answer Enlightened Notable Question Necromancer Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 10056,322788,1253592,NULL,NULL,NULL,0,NULL,NULL 10057,4240285,1253592,NULL,NULL,NULL,0,NULL,NULL 10058,221055,97893,Notable Question Notable Question Popular Question Yearling Popular Question Caucus Constituent Popular Question Notable Question Nice Question Notable Question Famous Question Yearling Good Question Notable Question Caucus Constituent Popular Question Popular Question Popular Question Notable Question Nice Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10059,43434,562061,Yearling Yearling,NULL,NULL,0,NULL,NULL 10060,137175,1350232,Supporter Popular Question Nice Question,NULL,NULL,0,NULL,NULL 10061,645800,61754,Nice Question Yearling Necromancer Announcer Guru Good Answer Popular Question Caucus Nice Answer Yearling Announcer Announcer Nice Answer Necromancer Yearling Caucus Constituent Notable Question Nice Answer Nice Question,NULL,pre codestat git FETCH HEAD code prepWill give you unix timestamp of the last modification of that file Git writes the FETCH HEAD file every time you pull or fetch even if there was nothing to pull Obviously if you have another branch checked out then you should look at git refs heads YOUR BRANCH NAME instead Obvious but it still tripped me up So thought would mention it here pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly You can try JavaScript solution but that won work if your user uses the browser Print command pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly Yes your example works perfectly pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly It is still using the Bootstrap styles Bootstrap is setting the text to black when printing via the rule in print less pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly Not sure what you mean by master CSS file Put the CSS snippet in your CSS file and change section to print to selector that selects the section you want to print pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly It is possible that the bit you wanted already had visibility visible set by some other CSS pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly If you want to hide the printable stuff on the screen then simpler solutions are possible But it bit weird it means you see something on the screen select Print and something completely different would appear at your printer pHere is general solution using strongCSS only strong which have verified to work ppre code print body visibility hidden section to print section to print visibility visible section to print position absolute left top code prepAlternative approaches aren so good Using codedisplay code is tricky because if any element has codedisplay none code then none of its descendants will display either To use it you have to change the structure of your page ppUsing codevisibility code works better since you can turn on visibility for descendants The invisible elements still affect the layout though so move codesection to print code to the top left so it prints properly can you give an example How to use package installed locally in node modules node js coffeescript npm node modules pHow do use local version of module in codenode js code For example in my app installed coffee script ppre codenpm install coffee script code prepThis installs it in code node modules code and the coffee command is in code node modules bin coffee code Is there way to run this command when in my project main folder guess looking for something similar to codebundle exec code in bundler Basically like to specify version of coffee script that everyone involved with the project should use ppI know can add the code code flag to install it globally so coffee works fine anywhere but what if wanted to have different versions of coffee per project lot of instructions read say things like npm install niftycommand and then niftycommand But this will never work unless you have node modules bin in your path will it pPut this in an code htaccess code file at the emroot em of your web server ppre codeRedirectMatch 404 git code prepThis solution is strongrobust strong and strongsecure strong it pulliworks for all code git code directories in your site even if there are more than one lilialso hides other Git files like code gitignore code and code gitmodules code liliworks even for newly added code git code directories and lilidoesn even give away the fact that the directories exist li ul My solutiuon already does that It matches any path containing the string git So that includes git git index foo gitignore etc pPut this in an code htaccess code file at the emroot em of your web server ppre codeRedirectMatch 404 git code prepThis solution is strongrobust strong and strongsecure strong it pulliworks for all code git code directories in your site even if there are more than one lilialso hides other Git files like code gitignore code and code gitmodules code liliworks even for newly added code git code directories and lilidoesn even give away the fact that the directories exist li ul The wildcards aren necessary in my testing and the docs agree See my comment above But adding the wildcard should be harmless so no reason not to add it Something about your setup perhaps,0,NULL,NULL 10062,3273753,1124677,NULL,NULL,NULL,0,NULL,NULL 10063,338757,1124677,NULL,NULL,NULL,0,NULL,NULL 10064,2929895,628499,Nice Answer Enlightened Yearling weka Caucus Nice Answer Enlightened Nice Answer Enlightened Custodian Yearling Custodian Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 10065,2800536,1068484,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10066,1963047,1068484,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10067,1511722,169363,Nice Answer,NULL,NULL,0,NULL,NULL 10068,223311,1108455,NULL,NULL,NULL,0,NULL,NULL 10069,174156,1173586,Student,NULL,NULL,0,NULL,NULL 10070,668790,10248,Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10071,108494,164546,Nice Answer Enlightened Yearling Caucus Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 10072,671940,1403936,NULL,NULL,NULL,0,NULL,NULL 10073,29719,1157664,NULL,NULL,NULL,0,NULL,NULL 10074,792476,758542,Informed Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 10075,150882,288599,NULL,NULL,NULL,0,NULL,NULL 10076,432100,1150700,Yearling Good Answer Critic Yearling Necromancer Yearling Autobiographer Guru,NULL,NULL,0,NULL,NULL 10077,35137,1149284,NULL,NULL,NULL,0,NULL,NULL 10078,122560,448389,Caucus,NULL,NULL,0,NULL,NULL 10079,933904,1562945,Critic Yearling Promoter Benefactor Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 10080,175975,1562945,Critic Yearling Promoter Benefactor Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 10081,191100,544000,Nice Answer Student Scholar Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 10082,388956,198749,Yearling Citizen Patrol Custodian Yearling Curious Popular Question Yearling,NULL,NULL,0,NULL,NULL 10083,42198,590360,Notable Question Teacher,NULL,NULL,0,NULL,NULL 10084,26687,467608,Nice Question Popular Question Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 10085,130931,320351,Supporter,NULL,NULL,0,NULL,NULL 10086,12444,264514,Yearling Announcer Yearling Revival Revival Necromancer Necromancer Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 10087,1933,438783,NULL,NULL,NULL,0,NULL,NULL 10088,4400507,839149,Autobiographer Editor,NULL,NULL,0,NULL,NULL 10089,1516819,839149,Autobiographer Editor,NULL,NULL,0,NULL,NULL 10090,171702,485770,NULL,NULL,NULL,0,NULL,NULL 10091,517432,1042086,NULL,NULL,NULL,0,NULL,NULL 10092,1076048,1250930,NULL,NULL,NULL,0,NULL,NULL 10093,78840,1189815,Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 10094,370300,201630,Citizen Patrol Custodian Necromancer Nice Answer Yearling Organizer Proofreader Great Answer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10095,313704,1333165,Nice Answer Yearling Good Answer Good Answer Yearling Curious Revival Nice Answer Enlightened Yearling Custodian Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 10096,193515,1093805,NULL,NULL,NULL,0,NULL,NULL 10097,311673,661196,Yearling Nice Answer Enlightened Notable Question Nice Answer Yearling java Nice Answer Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10098,163918,1422102,Critic Yearling Commentator Informed Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 10099,271622,221441,Supporter,NULL,NULL,0,NULL,NULL 10100,75774,649,Famous Question Notable Question Nice Answer Announcer Yearling Announcer Good Question,NULL,NULL,0,NULL,NULL 10101,73747,730141,NULL,NULL,NULL,0,NULL,NULL 10102,99698,175850,Yearling,NULL,NULL,0,NULL,NULL 10103,86577,53707,Excavator Nice Answer,NULL,NULL,0,NULL,NULL 10104,1984841,502596,NULL,NULL,NULL,0,NULL,NULL 10105,52425,139218,NULL,NULL,NULL,0,NULL,NULL 10106,131752,201241,NULL,NULL,NULL,0,NULL,NULL 10107,103548,1363238,NULL,NULL,NULL,0,NULL,NULL 10108,227048,159144,Notable Question Teacher Census,NULL,NULL,0,NULL,NULL 10109,1062420,1365100,NULL,NULL,NULL,0,NULL,NULL 10110,370841,273476,NULL,NULL,NULL,0,NULL,NULL 10111,960632,512899,NULL,NULL,NULL,0,NULL,NULL 10112,27306,1131075,NULL,NULL,NULL,0,NULL,NULL 10113,399304,1182778,NULL,NULL,NULL,0,NULL,NULL 10114,1185632,208001,NULL,NULL,NULL,0,NULL,NULL 10115,1922,679572,Yearling,NULL,NULL,0,NULL,NULL 10116,42886,241735,Yearling Necromancer,NULL,NULL,0,NULL,NULL 10117,194003,967222,NULL,NULL,NULL,0,NULL,NULL 10118,7590,156189,Nice Answer Yearling Notable Question Good Answer Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10119,169854,1146898,Critic Autobiographer Census Yearling,NULL,NULL,0,NULL,NULL 10120,88975,491513,Popular Question Yearling,NULL,NULL,0,NULL,NULL 10121,653359,1512573,NULL,NULL,NULL,0,NULL,NULL 10122,3884019,1512573,NULL,NULL,NULL,0,NULL,NULL 10123,524692,978873,NULL,NULL,NULL,0,NULL,NULL 10124,150354,13816,Good Answer Popular Question Good Answer Yearling Nice Question Good Question Yearling Nice Answer Notable Question Great Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10125,232499,895825,Popular Question Teacher,NULL,NULL,0,NULL,NULL 10126,214748,401274,NULL,NULL,NULL,0,NULL,NULL 10127,224682,375118,Good Answer Yearling Caucus Good Answer Census,NULL,NULL,0,NULL,NULL 10128,260986,730813,NULL,NULL,NULL,0,NULL,NULL 10129,373581,946,Stellar Question Custodian Yearling Yearling Documentation User Pundit Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 10130,757823,210475,Revival Self-Learner Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10131,101016,681625,NULL,NULL,NULL,0,NULL,NULL 10132,148214,117028,Famous Question Yearling Nice Answer Enlightened Popular Question Great Question Popular Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 10133,62618,1128445,Nice Question Nice Question Popular Question Revival Yearling Necromancer Famous Question Good Question Popular Question Popular Question Nice Question Yearling Popular Question Famous Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10134,104780,868594,NULL,NULL,NULL,0,NULL,NULL 10135,51913,377642,Scholar Student,NULL,NULL,0,NULL,NULL 10136,71115,221739,NULL,NULL,NULL,0,NULL,NULL 10137,20248,2453,Notable Question Yearling Necromancer Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 10138,61301,310597,NULL,NULL,NULL,0,NULL,NULL 10139,810159,432240,NULL,NULL,NULL,0,NULL,NULL 10140,238247,717265,NULL,NULL,NULL,0,NULL,NULL 10141,207548,367641,Nice Answer Stellar Question Yearling Good Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 10142,1516287,1267914,NULL,NULL,NULL,0,NULL,NULL 10143,640994,363546,Yearling Popular Question Yearling Nice Answer Investor Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 10144,3011194,363546,Yearling Popular Question Yearling Nice Answer Investor Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 10145,339941,974121,NULL,NULL,NULL,0,NULL,NULL 10146,210683,38698,Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 10147,171719,546754,NULL,NULL,NULL,0,NULL,NULL 10148,29652,201832,NULL,NULL,NULL,0,NULL,NULL 10149,46595,1047070,Informed Yearling,NULL,NULL,0,NULL,NULL 10150,563593,336142,Enthusiast Good Answer Caucus Populist,NULL,NULL,0,NULL,NULL 10151,946069,884893,Announcer Popular Question Revival Yearling Enthusiast Popular Question Announcer Necromancer Necromancer Necromancer Popular Question Popular Question Announcer Yearling Nice Question Citizen Patrol,NULL,NULL,0,NULL,NULL 10152,449634,1518636,NULL,NULL,NULL,0,NULL,NULL 10153,310733,240041,Popular Question Notable Question Popular Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 10154,105963,213894,Good Answer,NULL,NULL,0,NULL,NULL 10155,368878,828352,NULL,NULL,NULL,0,NULL,NULL 10156,13442,73673,Nice Question Good Question Revival Notable Question Famous Question Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Announcer Popular Question Popular Question Notable Question Popular Question Necromancer Nice Question Popular Question Famous Question Good Answer Popular Question Notable Question Pundit Notable Question Nice Answer Good Question Popular Question Famous Question Notable Question Caucus Constituent Good Answer Popular Question Good Answer Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Revival Nice Question Revival Popular Question Notable Question Popular Question Famous Question ruby Notable Question Nice Question Nice Question Popular Question Great Answer Census Notable Question Popular Question Yearling Caucus Good Question Nice Question Good Question Famous Question Announcer Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Necromancer Popular Question,NULL,pUse strong code Date Time current code strong instead of strong code Date Time now code strong ppRails extends the codeTime code and codeDateTime code objects and includes the codecurrent code property for retrieving the time the Rails environment is set to default UTC as opposed to the server time Could be anything ppThis is critical You should always be working in UTC time except when converting between timezones for user input or display but many production systems are emnot em UTC by default Heroku is set to PST GMT ppSee article href https web archive org web 20130622051657 http forrst com posts Date Time current vs Date Time now especially RX1 rel noreferrer stronghere strong current does help avoid writing Time now zone but it does not solve the issue with potential fractional seconds added as the answer by points out,0,NULL,NULL 10157,447418,1483399,Supporter,NULL,NULL,0,NULL,NULL 10158,100534,278993,Enlightened Necromancer Yearling Nice Answer Nice Answer Enlightened Revival Necromancer ios Good Answer Yearling Good Answer Custodian Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 10159,72530,293735,Nice Answer Necromancer Yearling Revival Self-Learner Nice Answer Yearling Necromancer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 10160,1137512,1466928,NULL,NULL,NULL,0,NULL,NULL 10161,7638165,1466928,NULL,NULL,NULL,0,NULL,NULL 10162,147882,664404,Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10163,245932,843898,Yearling Revival Necromancer Necromancer Nice Answer Yearling Good Answer Yearling Necromancer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 10164,204084,482712,NULL,NULL,NULL,0,NULL,NULL 10165,66978,1520001,NULL,NULL,NULL,0,NULL,NULL 10166,2057329,1520001,NULL,NULL,NULL,0,NULL,NULL 10167,423652,219332,Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 10168,125224,284527,Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 10169,691805,444379,Good Question,NULL,NULL,0,NULL,NULL 10170,34058,5035,Good Question Yearling Nice Answer Great Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 10171,16096,383099,Good Answer,NULL,NULL,0,NULL,NULL 10172,239186,1091338,NULL,NULL,NULL,0,NULL,NULL 10173,6998,347984,NULL,NULL,NULL,0,NULL,NULL 10174,659319,1312901,NULL,NULL,NULL,0,NULL,NULL 10175,803228,1041753,NULL,NULL,NULL,0,NULL,NULL 10176,103993,900652,Popular Question,NULL,NULL,0,NULL,NULL 10177,206547,1554661,Yearling Commentator Critic Revival,NULL,NULL,0,NULL,NULL 10178,180647,824797,NULL,NULL,NULL,0,NULL,NULL 10179,129212,122033,Revival Good Answer Nice Answer Enlightened Yearling Autobiographer Nice Answer Necromancer Notable Question Caucus Constituent Popular Question Necromancer Popular Question Good Answer Necromancer Necromancer django-class-based-views Nice Answer Nice Answer Yearling Nice Answer Enlightened python Announcer Caucus Constituent Nice Question Nice Answer Custodian Custodian Popular Question Notable Question Necromancer Notable Question Popular Question Nice Question Civic Duty Yearling Popular Question Good Answer Necromancer Self-Learner Good Answer Peer Pressure Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 10180,81113,1072182,Necromancer,NULL,NULL,0,NULL,NULL 10181,660908,1506943,Popular Question,NULL,NULL,0,NULL,NULL 10182,186195,555783,Tumbleweed Student,NULL,NULL,0,NULL,NULL 10183,123868,1170529,Yearling,NULL,NULL,0,NULL,NULL 10184,2901,145434,Nice Answer Enlightened Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 10185,152778,17191,NULL,NULL,NULL,0,NULL,NULL 10186,178863,10522,Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Good Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Good Question Notable Question Notable Question Notable Question Necromancer Popular Question Famous Question Famous Question Popular Question Nice Question Good Question Popular Question Good Question Popular Question Famous Question Notable Question Yearling Popular Question Famous Question Popular Question Notable Question Nice Question Nice Question Notable Question Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 10187,554681,842385,NULL,NULL,NULL,0,NULL,NULL 10188,1374397,1175926,NULL,NULL,NULL,0,NULL,NULL 10189,57246,48500,Popular Question Popular Question Yearling Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 10190,113453,516493,Critic Yearling,NULL,NULL,0,NULL,NULL 10191,892441,1055200,Revival Nice Answer Enlightened Caucus Constituent Yearling Necromancer Revival Nice Answer Nice Answer Enlightened Necromancer symfony Nice Answer Nice Answer Caucus Constituent Custodian Yearling Scholar Caucus Nice Answer Necromancer mysql Yearling,NULL,NULL,0,NULL,NULL 10192,641684,1387380,Nice Answer Enlightened Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10193,75798,1172125,Yearling Nice Answer Custodian Guru Nice Answer Yearling Good Answer Famous Question Great Answer Yearling Guru Good Question Famous Question,NULL,NULL,0,NULL,NULL 10194,45877,1293811,NULL,NULL,NULL,0,NULL,NULL 10195,533691,112313,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 10196,7399135,112313,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 10197,210675,392168,NULL,NULL,NULL,0,NULL,NULL 10198,479449,946752,Yearling Good Answer Necromancer Great Answer Nice Answer Commentator Scholar Yearling Yearling,NULL,NULL,0,NULL,NULL 10199,102378,1293623,NULL,NULL,NULL,0,NULL,NULL 10200,8034303,1193584,NULL,NULL,NULL,0,NULL,NULL 10201,11283341,1095635,NULL,NULL,NULL,0,NULL,NULL 10202,403006,1095635,NULL,NULL,NULL,0,NULL,NULL 10203,43073,125935,Nice Question Popular Question Famous Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 10204,65346,578342,NULL,NULL,NULL,0,NULL,NULL 10205,9802589,417096,Notable Question Popular Question Famous Question Nice Question Popular Question Notable Question Nice Answer Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Good Question Nice Question Popular Question Popular Question Notable Question Civic Duty Revival Popular Question Nice Question Notable Question Nice Question Great Question Notable Question Nice Question Popular Question Good Answer Popular Question Famous Question Yearling Popular Question Nice Question Popular Question Good Question Popular Question Notable Question Favorite Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 10206,199390,417096,Notable Question Popular Question Famous Question Nice Question Popular Question Notable Question Nice Answer Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Good Question Nice Question Popular Question Popular Question Notable Question Civic Duty Revival Popular Question Nice Question Notable Question Nice Question Great Question Notable Question Nice Question Popular Question Good Answer Popular Question Famous Question Yearling Popular Question Nice Question Popular Question Good Question Popular Question Notable Question Favorite Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 10207,256980,1458139,NULL,NULL,NULL,0,NULL,NULL 10208,1670633,1328607,NULL,NULL,NULL,0,NULL,NULL 10209,180227,1289962,Supporter Yearling,NULL,NULL,0,NULL,NULL 10210,406776,1032081,NULL,NULL,NULL,0,NULL,NULL 10211,29570,282204,Popular Question Yearling,NULL,NULL,0,NULL,NULL 10212,263804,1033552,Nice Question Yearling Popular Question Good Question Nice Answer Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 10213,445275,800103,Yearling Good Question Nice Answer Famous Question Nice Question Yearling Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 10214,340486,1120152,NULL,NULL,NULL,0,NULL,NULL 10215,1811019,643436,NULL,NULL,NULL,0,NULL,NULL 10216,528902,140450,Informed Autobiographer Teacher Editor Supporter Yearling Necromancer,NULL,NULL,0,NULL,NULL 10217,77556,117463,Popular Question Yearling Good Question Notable Question Popular Question Popular Question Yearling Notable Question Good Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 10218,10748,600498,Yearling Nice Answer Great Answer pymongo Yearling Guru Nice Answer python Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 10219,116295,737869,NULL,NULL,NULL,0,NULL,NULL 10220,466490,3571,Announcer Good Answer Nice Answer Famous Question Guru Notable Question Nice Answer Great Answer Enthusiast Guru Great Answer Nice Answer Nice Answer Announcer Nice Answer Yearling Great Answer Nice Answer Enlightened Nice Answer Good Answer Custodian Good Answer Nice Answer Nice Answer Enlightened Custodian Guru Enlightened Good Question Good Answer Nice Answer Inquisitive Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Question Announcer Nice Answer Good Answer Caucus Popular Question Yearling Good Answer Great Answer Nice Answer Documentation User Great Answer Notable Question Good Answer Custodian Populist Necromancer Famous Question Popular Question Yearling Great Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 10221,417704,852486,NULL,NULL,NULL,0,NULL,NULL 10222,3799941,53293,Notable Question,NULL,NULL,0,NULL,NULL 10223,291930,779137,NULL,NULL,NULL,0,NULL,NULL 10224,95223,1070488,NULL,NULL,NULL,0,NULL,NULL 10225,230454,889169,NULL,NULL,NULL,0,NULL,NULL 10226,3292,946224,Guru Good Question Nice Answer Necromancer Popular Question Nice Answer Good Answer Popular Question Nice Answer Good Answer Great Answer Great Answer Yearling Famous Question Caucus Popular Question Nice Question Nice Answer Caucus Necromancer Yearling Documentation User Nice Question Famous Question Good Answer Famous Question Great Answer Caucus Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 10227,13844,350792,NULL,NULL,NULL,0,NULL,NULL 10228,637701,1172931,Nice Question,NULL,NULL,0,NULL,NULL 10229,198683,1477578,Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10230,4883797,1477578,Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10231,1383488,1302428,Yearling Necromancer Nice Answer Nice Answer Critic Yearling Necromancer,NULL,NULL,0,NULL,NULL 10232,791777,1079609,Nice Answer Yearling Critic Yearling Favorite Question Revival Necromancer Revival Revival Announcer Yearling Necromancer Necromancer Nice Answer Yearling Mortarboard Good Answer Guru Census Nice Answer Nice Answer Tumbleweed Citizen Patrol Good Answer,NULL,NULL,0,NULL,NULL 10233,308880,169510,NULL,NULL,NULL,0,NULL,NULL 10234,428246,160901,NULL,NULL,strongUPDATE 2016 12 21 strong ppA lot has happened in the last 5yrs code dev urandom code has been updated and is now considered high entropy source of randomness on modern Linux kernels and distributions In the last 6mo we ve seen entropy starvation on Linux 19 kernel using Ubuntu so don think this issue is resolved but it sufficiently difficult to end up with low entropy randomness when asking for any amount of randomness from the OS phrpI hate to say this but none of the other solutions posted here are correct with regards to being secure session ID ppre code pip install M2Cryptoimport base64 M2Cryptodef generate session id num bytes 16 return base64 b64encode M2Crypto m2 rand bytes num bytes code prepNeither codeuuid code or codeos urandom code are good choices for generating session IDs Both may generate strongrandom strong results but random does not mean it is strongsecure strong due to poor strongentropy strong See href http www reteam org papers e59 pdf rel noreferrer How to Crack Linear Congruential Generator by Haldir or href http csrc nist gov groups ST toolkit rng index html rel noreferrer NIST resources on Random Number Generation If you still want to use UUID then use UUID that was generated with good initial random number ppre codeimport uuid M2Cryptouuid UUID bytes M2Crypto m2 rand bytes num bytes UUID 5e85edc4 7078 d214 e773 f8caae16fe6c code prepor ppre code pip install pyOpenSSLimport uuid OpenSSLuuid UUID bytes OpenSSL rand bytes 16 UUID c9bf635f b0cc d278 a2c5 01eaae654461 code prepM2Crypto is best OpenSSL API in Python atm as pyOpenSSL appears to be maintained only to support legacy applications If you generate uuids with id uuid UUID bytes OpenSSL rand bytes 16 keep in mind that you will have id variant uuid RESERVED FUTURE so not uuid RFC 4122 and then id version is None This also means that bits are changed to mark the variant all others are just randoms You might have collisions whereas RFC 4122 based uuids are designed to prevent that Anyway RFC 4122 states in section security Do not assume that UUIDs are hard to guess they should not be used as security capabilities identifiers whose mere possession grants access for example,0,NULL,NULL 10235,217045,1083829,Popular Question Self-Learner Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10236,8651,430498,Notable Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10237,386015,690331,Teacher Supporter,NULL,NULL,0,NULL,NULL 10238,370905,63263,Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10239,243051,365269,Popular Question Popular Question Popular Question Notable Question Caucus Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10240,301509,733582,Notable Question Nice Answer Yearling Nice Answer Good Answer Popular Question Civic Duty Yearling Yearling,NULL,NULL,0,NULL,NULL 10241,1045394,716012,NULL,NULL,NULL,0,NULL,NULL 10242,158071,1432266,Popular Question Tumbleweed Notable Question Nice Question Famous Question Good Question Teacher Yearling Yearling,NULL,NULL,0,NULL,NULL 10243,3433307,1233787,Teacher,NULL,NULL,0,NULL,NULL 10244,224069,1233787,Teacher,NULL,NULL,0,NULL,NULL 10245,9551259,877051,NULL,NULL,NULL,0,NULL,NULL 10246,369101,877051,NULL,NULL,NULL,0,NULL,NULL 10247,46716,13986,Popular Question Necromancer Nice Answer Enlightened Yearling Great Answer Good Question Popular Question Nice Answer Great Answer Good Answer Notable Question Yearling Nice Answer Enlightened Census Announcer Popular Question Nice Answer Notable Question Nice Question Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 10248,1094989,661216,Editor Supporter Informed,NULL,NULL,0,NULL,NULL 10249,4448421,661216,Editor Supporter Informed,NULL,NULL,0,NULL,NULL 10250,528134,1272624,Autobiographer Yearling Caucus Constituent Custodian Census Yearling,NULL,pI realise that this is an old topic but using the strict parameter isn necessarily going to help ppRunning base64 decode on string such as am not base 64 encoded will not return false ppIf however you try decoding the string with strict and re encode it with base64 encode you can compare the result with the original data to determine if it valid bas64 encoded value ppre codeif base64 encode base64 decode data true data echo data is valid else echo data is NOT valid code pre assuming you mean 123412341234 as string then it works that valid base64 string if you mean the integer then it not string so won work pI realise that this is an old topic but using the strict parameter isn necessarily going to help ppRunning base64 decode on string such as am not base 64 encoded will not return false ppIf however you try decoding the string with strict and re encode it with base64 encode you can compare the result with the original data to determine if it valid bas64 encoded value ppre codeif base64 encode base64 decode data true data echo data is valid else echo data is NOT valid code pre base64 is not encryption it way of encoding data such that it is transmittable using mechanisms which only support the ASCII charset pI realise that this is an old topic but using the strict parameter isn necessarily going to help ppRunning base64 decode on string such as am not base 64 encoded will not return false ppIf however you try decoding the string with strict and re encode it with base64 encode you can compare the result with the original data to determine if it valid bas64 encoded value ppre codeif base64 encode base64 decode data true data echo data is valid else echo data is NOT valid code pre But that not what this question was about it was about determining if the data is valid base64 which the string 123412341234 is just because that not good enough for your purposes doesn mean that it isn valid base64 In your instance if you control the encoding of the data you can mark it in some fashion prior to base64 encoding that way you CAN determine whether you should pass it through decryption after decoding,0,NULL,NULL 10251,171301,11563,Notable Question Yearling,NULL,NULL,0,NULL,NULL 10252,328097,218119,Nice Answer Necromancer Good Answer Yearling Necromancer Nice Answer Yearling Great Question Caucus Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 10253,92998,213649,NULL,NULL,NULL,0,NULL,NULL 10254,1058682,827836,Good Question Yearling,NULL,NULL,0,NULL,NULL 10255,318778,363821,Revival Yearling Good Answer Census Yearling orchardcms Yearling Enlightened,NULL,NULL,0,NULL,NULL 10256,725477,265387,NULL,NULL,NULL,0,NULL,NULL 10257,495924,274019,Popular Question,NULL,NULL,0,NULL,NULL 10258,3494,478519,NULL,NULL,NULL,0,NULL,NULL 10259,338332,895538,NULL,NULL,NULL,0,NULL,NULL 10260,174715,1076616,NULL,NULL,NULL,0,NULL,NULL 10261,146892,269666,Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 10262,181786,647196,NULL,NULL,NULL,0,NULL,NULL 10263,191706,473438,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 10264,316674,888833,NULL,NULL,NULL,0,NULL,NULL 10265,298120,944098,NULL,NULL,NULL,0,NULL,NULL 10266,512177,905914,Nice Answer Yearling Nice Question Popular Question Self-Learner Great Answer Necromancer Popular Question Yearling Popular Question Famous Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 10267,902943,329999,Popular Question Promoter Notable Question Nice Question Notable Question Nice Answer Popular Question Yearling Inquisitive Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10268,252327,326368,NULL,NULL,NULL,0,NULL,NULL 10269,991511,841116,NULL,NULL,NULL,0,NULL,NULL 10270,1027455,1442191,Yearling Caucus Census,NULL,NULL,0,NULL,NULL 10271,599144,803501,NULL,NULL,NULL,0,NULL,NULL 10272,170816,1520765,NULL,NULL,NULL,0,NULL,NULL 10273,175935,636195,Famous Question,NULL,NULL,0,NULL,NULL 10274,1193375,1048745,Nice Question Notable Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 10275,220455,307716,Critic Announcer,NULL,NULL,0,NULL,NULL 10276,198674,1058698,NULL,NULL,NULL,0,NULL,NULL 10277,127678,600059,NULL,NULL,NULL,0,NULL,NULL 10278,1567334,1233223,NULL,NULL,NULL,0,NULL,NULL 10279,241831,1233223,NULL,NULL,NULL,0,NULL,NULL 10280,1550216,1346797,NULL,NULL,NULL,0,NULL,NULL 10281,236836,151894,Popular Question Enthusiast Famous Question Famous Question Notable Question Yearling Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10282,204033,151894,Popular Question Enthusiast Famous Question Famous Question Notable Question Yearling Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10283,24187,815590,c# Nice Answer Cleanup Enthusiast Unsung Hero Tumbleweed Popular Question Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Civic Duty Good Answer Yearling Announcer Popular Question Curious Documentation User Guru Nice Answer Enlightened Investor Yearling Popular Question Nice Answer entity-framework,NULL,pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre think that everything depends So EF try to fit the most general need of most people never had to create table for Enum just using int fit my need IMHO think that EF design choose that because most people use in this way and to have better performance and DB Size optimization Also don think so that this is going to lead conceptual paradoxes if there is valid justification to create another table got for it Am clear Btw Happy new Year pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre eventStream ReceiveJoke joke Console WriteLine Pretty nice joke joke Thanks pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre enum is reserved word in to use this word as variable method class name you must use the sufix pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre does EF do it automatically pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre It does pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre you can change the name of FacultyEnum to Facultaties pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre Hehe thanks am happy that could help you,1,NULL,How to create table corresponding to enum in EF6 Code First entity framework enums ef code first entity framework pI ve followed href https msdn microsoft com en us data hh859576 aspx rel noreferrer MSDN on how to handle enumerations in Code First for EF6 It worked as supposed to strongbut strong the field in the created table that refers to the enumerator is simple emint em ppI prefer second table to be produced the values of which would follow the definition of the enumerator in code So instead of only getting table corresponding to emDepartment em in the example on MSDN also like to see second table populated by the items from emFaculty em ppre codepublic enum Faculty Eng Math Eco public partial class Department Key public Guid ID get set Required public Faculty Name get set code prepResearching the issue stumbled upon href http gentlelogic blogspot se 2014 07 ef code first create table out of enum html rel noreferrer solution which suggests creating table for the enumeration and populating it explicitly by seeding ppIt appear to me as cumbersome approach and lot of work that should be handled automagically After all the system knows what actual values that constitute the enumeration From DB point of view it still data rows just as the entities that create but from OO aspect it not really data rather type loosely expressed that can assume finite and onbeforehand known number of states ppIs the approach of populating the table manually recommended pSince EF doesn handle it automatically strongyes strong this is the recommend way ppI suggest some modifications in article that you provided ph3Rename your enum h3pre codepublic enum FacultyEnum Eng Math Eco code preh3Create class that represent the table h3pre codepublic class Faculty private Faculty FacultyEnum Id int Name ToString Description GetEnumDescription protected Faculty For EF Key DatabaseGenerated DatabaseGeneratedOption None public int Id get set Required MaxLength 100 public string Name get set MaxLength 100 public string Description get set public static implicit operator Faculty FacultyEnum gt new Faculty public static implicit operator FacultyEnum Faculty faculty gt FacultyEnum faculty Id code preh3Your model reference the class h3pre codepublic class ExampleClass public virtual Faculty Faculty get set code preh3Create extension method to get description from enum and seed values h3pre codeusing System using System ComponentModel using System Data Entity using System Data Entity Migrations using System Linq public static class Extensions public static string GetEnumDescription lt TEnum gt this TEnum item gt item GetType GetField item ToString GetCustomAttributes typeof DescriptionAttribute false Cast lt DescriptionAttribute gt FirstOrDefault Description string Empty public static void SeedEnumValues lt TEnum gt this IDbSet lt gt dbSet Func lt TEnum gt converter where class gt Enum GetValues typeof TEnum Cast lt object gt Select value gt converter TEnum value ToList ForEach instance gt dbSet AddOrUpdate instance code preh3Add the seed in Configuration cs h3pre codeprotected override void Seed Temp MyClass context context Facultys SeedEnumValues lt Faculty FacultyEnum gt gt context SaveChanges code preh3Add the enum table in your DbContext h3pre codepublic class MyClass DbContext public DbSet lt ExampleClass gt Examples get set public DbSet lt Faculty gt Facultys get set code preh3Use it h3pre codevar example new ExampleClass example Faculty FacultyEnum Eng if example Faculty FacultyEnum Math code code preh3To remember h3pIf you don add virtual in Faculty property you must use Include method from DbSet to do Eager Load ppre codevar exampleFromDb dbContext Examples Include gt Faculty SingleOrDefault gt Id if example Faculty FacultyEnum Math code code prepIf Faculty property is virtual then just use it ppre codevar exampleFromDb dbContext Examples Find if example Faculty FacultyEnum Math code code pre 10284,865910,814180,Yearling Critic Announcer Caucus Good Answer Notable Question,NULL,NULL,0,NULL,NULL 10285,634923,257162,Necromancer Yearling,NULL,NULL,0,NULL,NULL 10286,130795,1112230,Yearling Caucus,NULL,NULL,0,NULL,NULL 10287,243502,435282,NULL,NULL,NULL,0,NULL,NULL 10288,27008,656323,NULL,NULL,NULL,0,NULL,NULL 10289,1689880,1445787,NULL,NULL,NULL,0,NULL,NULL 10290,742213,1279844,Good Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Popular Question Necromancer Famous Question Notable Question Popular Question Yearling Nice Question Famous Question Necromancer Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Nice Question Nice Answer Nice Question Good Question Popular Question Famous Question Notable Question Good Question Nice Question Notable Question Good Question,NULL,pFrom ES6 ES2015 default parameters is in the language specification ppre codefunction read file file delete after false Code code prepjust works ppReference href https developer mozilla org en docs Web JavaScript Reference Functions default parameters rel noreferrer Default Parameters MDN pblockquote pDefault function parameters allow formal parameters to be initialized with default values if strongno value strong or strongundefined strong is passed blockquotepYou can also href http exploringjs com es6 ch parameter handling html sec named parameters rel noreferrer simulate default emnamed em parameters via destructuring ppre code the below lets you call the function without any parametersfunction myFor start end step Use the variables start end and step here ··· code prep strongPre ES2015 strong ppThere are lot of ways but this is my preferred method it lets you pass in anything you want including false or null codetypeof null object code ppre codefunction foo typeof undefined 42 typeof undefined default code pre Note that setting defaults in the parameter declaration doesn currently work in mobile Safari or Chrome,0,, 10291,433523,117744,Popular Question Good Answer Yearling Notable Question Census Popular Question Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 10292,193353,904949,NULL,NULL,NULL,0,NULL,NULL 10293,464776,1549265,NULL,NULL,NULL,0,NULL,NULL 10294,149971,1308287,Yearling Good Answer Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10295,118582,504729,Popular Question Popular Question Notable Question Yearling Caucus Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10296,1065902,930095,Popular Question Notable Question Excavator Critic Yearling Notable Question Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 10297,87315,1380760,NULL,NULL,NULL,0,NULL,NULL 10298,3951252,856388,Popular Question,NULL,NULL,0,NULL,NULL 10299,724837,520686,NULL,NULL,NULL,0,NULL,NULL 10300,19164,398839,NULL,NULL,NULL,0,NULL,NULL 10301,235591,1271915,NULL,NULL,NULL,0,NULL,NULL 10302,323985,378025,Famous Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10303,11172,19165,Nice Answer Necromancer Revival Yearling Nice Answer Nice Answer Nice Answer Enlightened Revival Good Question Yearling Taxonomist Nice Answer Revival Revival Yearling Custodian Nice Answer Custodian Tumbleweed Explainer,NULL,NULL,0,NULL,NULL 10304,462213,712162,NULL,NULL,NULL,0,NULL,NULL 10305,208188,1183929,NULL,NULL,NULL,0,NULL,NULL 10306,1517140,152738,NULL,NULL,NULL,0,NULL,NULL 10307,1109953,1320781,NULL,NULL,NULL,0,NULL,NULL 10308,685194,1069759,Curious,NULL,NULL,0,NULL,NULL 10309,66127,174172,Autobiographer Yearling Necromancer Citizen Patrol Nice Answer Nice Answer Revival Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 10310,60553,503910,Supporter Student Commentator,NULL,NULL,0,NULL,NULL 10311,591525,168819,NULL,NULL,NULL,0,NULL,NULL 10312,2649742,338583,NULL,NULL,NULL,0,NULL,NULL 10313,192336,338583,NULL,NULL,NULL,0,NULL,NULL 10314,105058,225098,NULL,NULL,NULL,0,NULL,NULL 10315,154773,303415,NULL,NULL,NULL,0,NULL,NULL 10316,189172,282259,Critic,NULL,NULL,0,NULL,NULL 10317,185680,449979,NULL,NULL,NULL,0,NULL,NULL 10318,432799,256425,Critic Good Question,NULL,NULL,0,NULL,NULL 10319,402111,566936,Supporter,NULL,NULL,0,NULL,NULL 10320,1142754,1312387,Notable Question,NULL,NULL,0,NULL,NULL 10321,4992,791064,Editor Yearling,NULL,NULL,0,NULL,NULL 10322,38525,398366,NULL,NULL,NULL,0,NULL,NULL 10323,25666,313119,Editor Commentator,NULL,NULL,0,NULL,NULL 10324,1104185,350722,Revival Famous Question Yearling Popular Question Necromancer Famous Question Popular Question Notable Question Yearling Famous Question Nice Answer Notable Question Popular Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 10325,405871,237661,Nice Question Great Question Nice Question Favorite Question Yearling Yearling Famous Question Popular Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 10326,98056,638509,Necromancer,NULL,NULL,0,NULL,NULL 10327,2653,4070,Student Revival Documentation User,NULL,NULL,0,NULL,NULL 10328,673242,520361,NULL,NULL,NULL,0,NULL,NULL 10329,165686,1024836,NULL,NULL,NULL,0,NULL,NULL 10330,47520,608573,NULL,NULL,NULL,0,NULL,NULL 10331,665704,968047,NULL,NULL,NULL,0,NULL,NULL 10332,244407,232079,NULL,NULL,NULL,0,NULL,NULL 10333,522714,1358821,NULL,NULL,NULL,0,NULL,NULL 10334,2377675,1358821,NULL,NULL,NULL,0,NULL,NULL 10335,222739,276919,NULL,NULL,NULL,0,NULL,NULL 10336,414925,683701,NULL,NULL,NULL,0,NULL,NULL 10337,1079,136254,Nice Answer,NULL,NULL,0,NULL,NULL 10338,104025,981954,Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 10339,181824,852769,NULL,NULL,NULL,0,NULL,NULL 10340,192771,123520,NULL,NULL,NULL,0,NULL,NULL 10341,165355,1236351,NULL,NULL,NULL,0,NULL,NULL 10342,7557719,1236351,NULL,NULL,NULL,0,NULL,NULL 10343,473679,345428,Notable Question,NULL,NULL,0,NULL,NULL 10344,648745,359910,Popular Question Popular Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10345,4146,1344230,NULL,NULL,NULL,0,NULL,NULL 10346,93563,1427412,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10347,8264790,1427412,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10348,150385,548733,NULL,NULL,NULL,0,NULL,NULL 10349,51844,671953,NULL,NULL,NULL,0,NULL,NULL 10350,569894,245387,Yearling Supporter,NULL,NULL,0,NULL,NULL 10351,56522,122975,Yearling Enthusiast Notable Question Popular Question Nice Answer Nice Question Nice Question Yearling Famous Question Announcer Famous Question Nice Answer Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 10352,1648280,1053877,NULL,NULL,NULL,0,NULL,NULL 10353,4589285,1053877,NULL,NULL,NULL,0,NULL,NULL 10354,1565289,1106125,NULL,NULL,NULL,0,NULL,NULL 10355,521994,873010,NULL,NULL,NULL,0,NULL,NULL 10356,158791,1106205,NULL,NULL,NULL,0,NULL,NULL 10357,4904982,858818,NULL,NULL,NULL,0,NULL,NULL 10358,85999,1408705,Teacher Revival,NULL,NULL,0,NULL,NULL 10359,174613,44286,Notable Question Nice Question Famous Question Notable Question Great Answer Nice Question Famous Question Nice Answer Enlightened Popular Question Favorite Question Good Question Popular Question Good Answer Nice Question Good Question Stellar Question Famous Question Good Question Famous Question Yearling Popular Question Notable Question Notable Question Good Question Popular Question Famous Question Notable Question Popular Question Famous Question Great Question Popular Question Necromancer Notable Question Famous Question Notable Question Notable Question Yearling Popular Question Famous Question Good Question Great Answer Popular Question Favorite Question Great Question Popular Question Good Question Nice Question Great Question Famous Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 10360,65581,625841,NULL,NULL,NULL,0,NULL,NULL 10361,1562819,842292,NULL,NULL,NULL,0,NULL,NULL 10362,307255,225754,Notable Question,NULL,NULL,0,NULL,NULL 10363,900159,1337359,NULL,NULL,NULL,0,NULL,NULL 10364,103622,124824,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 10365,81355,691880,NULL,NULL,NULL,0,NULL,NULL 10366,190851,338691,Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Custodian Custodian Organizer Yearling Custodian Citizen Patrol Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10367,292525,139909,Popular Question Notable Question Popular Question Good Question Famous Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question Notable Question Nice Question Good Question Popular Question Good Answer Yearling Great Question Documentation User Notable Question Famous Question Favorite Question Notable Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 10368,3121476,950984,NULL,NULL,NULL,0,NULL,NULL 10369,2630246,1504824,Necromancer Yearling Necromancer Yearling Necromancer Caucus Nice Answer Fanatic Custodian Yearling Custodian Necromancer Nice Answer Popular Question Nice Answer Good Answer Yearling Necromancer Popular Question Caucus Popular Question Yearling Necromancer Nice Answer Tumbleweed Yearling Popular Question,NULL,NULL,0,NULL,NULL 10370,71463,90090,Revival,NULL,NULL,0,NULL,NULL 10371,502259,1336441,Popular Question,NULL,NULL,0,NULL,NULL 10372,755943,499890,NULL,NULL,NULL,0,NULL,NULL 10373,1392731,459092,NULL,NULL,NULL,0,NULL,NULL 10374,570124,563525,NULL,NULL,NULL,0,NULL,NULL 10375,163508,400236,Investor Altruist Yearling Civic Duty Autobiographer Popular Question Yearling Revival Good Question Yearling Custodian Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 10376,380673,313541,Popular Question,NULL,NULL,0,NULL,NULL 10377,176664,776584,Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 10378,253058,959836,Scholar,NULL,NULL,0,NULL,NULL 10379,1379723,1503308,NULL,NULL,NULL,0,NULL,NULL 10380,5183,938375,Nice Question,NULL,NULL,0,NULL,NULL 10381,208589,892675,NULL,NULL,NULL,0,NULL,NULL 10382,215984,1087750,NULL,NULL,NULL,0,NULL,NULL 10383,670948,1006879,NULL,NULL,NULL,0,NULL,NULL 10384,70643,1006879,NULL,NULL,NULL,0,NULL,NULL 10385,134190,543331,Enthusiast,NULL,NULL,0,NULL,NULL 10386,197461,1344112,NULL,NULL,NULL,0,NULL,NULL 10387,34567,290499,NULL,NULL,NULL,0,NULL,NULL 10388,516655,1552341,NULL,NULL,NULL,0,NULL,NULL 10389,24537,524186,NULL,NULL,NULL,0,NULL,NULL 10390,487473,674874,NULL,NULL,NULL,0,NULL,NULL 10391,145425,111987,NULL,NULL,NULL,0,NULL,NULL 10392,691133,381897,Popular Question Yearling Notable Question Explainer Necromancer Notable Question java Nice Answer Notable Question Caucus Popular Question Good Answer Nice Answer Enlightened Yearling Good Answer Caucus Documentation User Announcer Caucus Necromancer Necromancer Yearling Revival,NULL,pIn order to use DynamoDBLocal you need to follow these steps polliGet Direct DynamoDBLocal Dependency liliGet Native SQLite4Java dependencies liliSet codesqlite4java library path code to show native libraries li olp strong1 Get Direct DynamoDBLocal Dependency strong ppThis one is the easy one You need this repository as explained in href https forums aws amazon com ann jspa annID 3148 rel noreferrer AWS Forums ppre class lang xml prettyprint override code lt Dependency gt lt dependencies gt lt dependency gt lt groupId gt com amazonaws lt groupId gt lt artifactId gt DynamoDBLocal lt artifactId gt lt version gt 11 lt version gt lt scope gt lt scope gt lt dependency gt lt dependencies gt lt Custom repository gt lt repositories gt lt repository gt lt id gt dynamodb local lt id gt lt name gt DynamoDB Local Release Repository lt name gt lt url gt https s3 us west amazonaws com dynamodb local release lt url gt lt repository gt lt repositories gt code prep strong2 Get Native SQLite4Java dependencies strong ppIf you do not add these dependencies your tests will fail with 500 internal error ppFirst add these dependencies ppre class lang xml prettyprint override code lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java lt artifactId gt lt version gt 392 lt version gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x86 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x64 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java osx lt artifactId gt lt version gt 392 lt version gt lt type gt dylib lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux i386 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux amd64 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt code prepThen add this plugin to get native dependencies to specific folder ppre class lang xml prettyprint override code lt build gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven dependency plugin lt artifactId gt lt version gt 10 lt version gt lt executions gt lt execution gt lt id gt copy lt id gt lt phase gt test compile lt phase gt lt goals gt lt goal gt copy dependencies lt goal gt lt goals gt lt configuration gt lt includeScope gt test lt includeScope gt lt includeTypes gt so dll dylib lt includeTypes gt lt outputDirectory gt project basedir native libs lt outputDirectory gt lt configuration gt lt execution gt lt executions gt lt plugin gt lt plugins gt lt build gt code prep strong3 Set codesqlite4java library path code to show native libraries strong ppAs last step you need to set codesqlite4java library path code system property to native libs directory It is OK to do that just before creating your local server ppre codeSystem setProperty sqlite4java library path native libs code prepAfter these steps you can use DynamoDBLocal as you want Here is Junit rule that creates local server for that ppre codeimport com amazonaws auth BasicAWSCredentials import com amazonaws services dynamodbv2 AmazonDynamoDB import com amazonaws services dynamodbv2 AmazonDynamoDBClient import com amazonaws services dynamodbv2 local main ServerRunner import com amazonaws services dynamodbv2 local server DynamoDBProxyServer import org junit rules ExternalResource import java io IOException import java net ServerSocket Creates local DynamoDB instance for testing public class LocalDynamoDBCreationRule extends ExternalResource private DynamoDBProxyServer server private AmazonDynamoDB amazonDynamoDB public LocalDynamoDBCreationRule This one should be copied during test compile time If project basedir does not contains folder named native libs please try mvn clean install from command line first System setProperty sqlite4java library path native libs protected void before throws Throwable try final String port getAvailablePort this server ServerRunner createServerFromCommandLineArgs new String inMemory port port server start amazonDynamoDB new AmazonDynamoDBClient new BasicAWSCredentials access secret amazonDynamoDB setEndpoint http localhost port catch Exception throw new RuntimeException protected void after if server null return try server stop catch Exception throw new RuntimeException public AmazonDynamoDB getAmazonDynamoDB return amazonDynamoDB private String getAvailablePort try final ServerSocket serverSocket new ServerSocket return String valueOf serverSocket getLocalPort catch IOException throw new RuntimeException Available port was not found code prepYou can use this rule like this ppre code JUnit4 class public class UserDAOImplTest public static final LocalDynamoDBCreationRule dynamoDB new LocalDynamoDBCreationRule code pre ki tried that as well but cannot make it working without native libraries What is your DDB local version Maybe they updated dependencies,1,NULL,Easier DynamoDB local testing java unit testing junit amazon dynamodb pI using href http docs aws amazon com amazondynamodb latest developerguide Tools DynamoDBLocal html DynamoDB local for unit testing It not bad but has some drawbacks Specifically pulliYou have to somehow start the server before your tests run liliThe server isn started and stopped before each test so tests become inter dependent unless you add code to delete all tables etc after each test liliAll developers need to have it installed li ulpWhat want to do is something like put the DynamoDB local jar and the other jars upon which it depends in my test resources directory writing Java Then before each test start it up running with code inMemory code and after the test stop it That way anyone pulling down the git repo gets copy of everything they need to run the tests and each test is independent of the others ppI have found way to make this work but it ugly so looking for alternatives The solution have is to put zip file of the DynamoDB local stuff in test resources then in an method extract it to some temporary directory and start new java process to execute it That works but it ugly and has some drawbacks pulliEveryone needs the java executable on their PATH liliI have to unpack zip to the local disk Using local disk is often dicey for testing especially with continuous builds and such liliI have to spawn process and wait for it to start for each unit test and then kill that process after each test Besides being slow the potential for left over processes seems ugly li ulpIt seems like there should be an easier way DynamoDB Local is after all just Java code Can somehow ask the JVM to fork itself and look inside the resources to build classpath Or even better can just call the codemain code method of DynamoDb Local from some other thread so this all happens in single process Any ideas ppPS am aware of Alternator but it appears to have other drawbacks so inclined to stick with Amazon supported solution if can make it work pIn order to use DynamoDBLocal you need to follow these steps polliGet Direct DynamoDBLocal Dependency liliGet Native SQLite4Java dependencies liliSet codesqlite4java library path code to show native libraries li olp strong1 Get Direct DynamoDBLocal Dependency strong ppThis one is the easy one You need this repository as explained in href https forums aws amazon com ann jspa annID 3148 rel noreferrer AWS Forums ppre class lang xml prettyprint override code lt Dependency gt lt dependencies gt lt dependency gt lt groupId gt com amazonaws lt groupId gt lt artifactId gt DynamoDBLocal lt artifactId gt lt version gt 11 lt version gt lt scope gt lt scope gt lt dependency gt lt dependencies gt lt Custom repository gt lt repositories gt lt repository gt lt id gt dynamodb local lt id gt lt name gt DynamoDB Local Release Repository lt name gt lt url gt https s3 us west amazonaws com dynamodb local release lt url gt lt repository gt lt repositories gt code prep strong2 Get Native SQLite4Java dependencies strong ppIf you do not add these dependencies your tests will fail with 500 internal error ppFirst add these dependencies ppre class lang xml prettyprint override code lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java lt artifactId gt lt version gt 392 lt version gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x86 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x64 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java osx lt artifactId gt lt version gt 392 lt version gt lt type gt dylib lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux i386 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux amd64 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt code prepThen add this plugin to get native dependencies to specific folder ppre class lang xml prettyprint override code lt build gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven dependency plugin lt artifactId gt lt version gt 10 lt version gt lt executions gt lt execution gt lt id gt copy lt id gt lt phase gt test compile lt phase gt lt goals gt lt goal gt copy dependencies lt goal gt lt goals gt lt configuration gt lt includeScope gt test lt includeScope gt lt includeTypes gt so dll dylib lt includeTypes gt lt outputDirectory gt project basedir native libs lt outputDirectory gt lt configuration gt lt execution gt lt executions gt lt plugin gt lt plugins gt lt build gt code prep strong3 Set codesqlite4java library path code to show native libraries strong ppAs last step you need to set codesqlite4java library path code system property to native libs directory It is OK to do that just before creating your local server ppre codeSystem setProperty sqlite4java library path native libs code prepAfter these steps you can use DynamoDBLocal as you want Here is Junit rule that creates local server for that ppre codeimport com amazonaws auth BasicAWSCredentials import com amazonaws services dynamodbv2 AmazonDynamoDB import com amazonaws services dynamodbv2 AmazonDynamoDBClient import com amazonaws services dynamodbv2 local main ServerRunner import com amazonaws services dynamodbv2 local server DynamoDBProxyServer import org junit rules ExternalResource import java io IOException import java net ServerSocket Creates local DynamoDB instance for testing public class LocalDynamoDBCreationRule extends ExternalResource private DynamoDBProxyServer server private AmazonDynamoDB amazonDynamoDB public LocalDynamoDBCreationRule This one should be copied during test compile time If project basedir does not contains folder named native libs please try mvn clean install from command line first System setProperty sqlite4java library path native libs protected void before throws Throwable try final String port getAvailablePort this server ServerRunner createServerFromCommandLineArgs new String inMemory port port server start amazonDynamoDB new AmazonDynamoDBClient new BasicAWSCredentials access secret amazonDynamoDB setEndpoint http localhost port catch Exception throw new RuntimeException protected void after if server null return try server stop catch Exception throw new RuntimeException public AmazonDynamoDB getAmazonDynamoDB return amazonDynamoDB private String getAvailablePort try final ServerSocket serverSocket new ServerSocket return String valueOf serverSocket getLocalPort catch IOException throw new RuntimeException Available port was not found code prepYou can use this rule like this ppre code JUnit4 class public class UserDAOImplTest public static final LocalDynamoDBCreationRule dynamoDB new LocalDynamoDBCreationRule code pre 10393,418259,710131,Yearling Good Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 10394,202361,854975,NULL,NULL,NULL,0,NULL,NULL 10395,19481,1082818,NULL,NULL,NULL,0,NULL,NULL 10396,537118,272609,Yearling Good Question Necromancer Good Question Yearling Popular Question Organizer Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10397,1628656,515411,Popular Question Yearling Notable Question Popular Question Yearling Necromancer Favorite Question,NULL,Maven build path specifies execution environment J2SE even though changed it to java eclipse maven m2eclipse pIn Eclipse Juno installed the latest m2e plugin 20120903 1050 In preferences have added jdk1 11 in Java Installed JREs Add and then specified the location codeC Program Files Java jdk1 11 code When create new Maven project and run it get warning pblockquote pBuild path specifies execution environment J2SE There are no JREs installed in the workspace that are strictly compatible with this environment blockquotepI am not sure how to resolve this ppI believe it is Maven problem because do not have this error when run normal Java projects read href http mikechencodingnotes blogspot com 2011 11 m2e compiler j2se 15 warning message html rel noreferrer here that should change the maven compiler plugin pom and change the source and target from to something more appropriate In my case have done this but still get the warning can personally confirm this so not going to change the accepted answer The second answer worked for me at the time of writing the question,0,NULL,NULL 10398,324166,798955,Yearling Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 10399,907390,465403,Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 10400,2265,187258,Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 10401,209381,395369,Popular Question,NULL,NULL,0,NULL,NULL 10402,216161,63609,Popular Question Nice Question Popular Question Famous Question Notable Question Yearling Popular Question Good Question Notable Question Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10403,205369,39722,Notable Question Announcer Famous Question Notable Question Yearling Famous Question Census Notable Question Famous Question Nice Question Announcer Caucus Constituent Popular Question Documentation User Nice Question Yearling Great Question Census Famous Question Caucus Constituent Favorite Question c# Nice Answer Good Question Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 10404,182121,1000985,Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10405,207930,178191,NULL,NULL,NULL,0,NULL,NULL 10406,232333,109989,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10407,3821766,1117004,Popular Question Notable Question Great Question Favorite Question Popular Question Famous Question Yearling Notable Question Notable Question Notable Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 10408,111409,1117004,Popular Question Notable Question Great Question Favorite Question Popular Question Famous Question Yearling Notable Question Notable Question Notable Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 10409,100967,1306250,NULL,NULL,NULL,0,NULL,NULL 10410,29144,949762,Nice Question Nice Answer Critic Commentator Yearling Revival Famous Question Yearling Good Question Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 10411,19531,470259,NULL,NULL,NULL,0,NULL,NULL 10412,664433,464981,NULL,NULL,NULL,0,NULL,NULL 10413,800544,464981,NULL,NULL,NULL,0,NULL,NULL 10414,47668,583872,NULL,NULL,NULL,0,NULL,NULL 10415,245536,135059,Notable Question Tumbleweed Popular Question Popular Question Popular Question Yearling Custodian Citizen Patrol Organizer Popular Question Notable Question Notable Question Notable Question Census Caucus Nice Question,NULL,NULL,0,NULL,NULL 10416,221522,291306,NULL,NULL,NULL,0,NULL,NULL 10417,104658,918246,NULL,NULL,NULL,0,NULL,NULL 10418,67618,166498,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 10419,415747,155280,Notable Question Notable Question Notable Question Notable Question Nice Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10420,210120,1390345,NULL,NULL,NULL,0,NULL,NULL 10421,216443,421533,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 10422,368111,84143,Yearling Great Question Custodian Self-Learner Nice Answer Popular Question Yearling Nice Question Notable Question Good Answer Stellar Question Good Question Caucus Famous Question Great Answer Custodian Nice Answer Popular Question Census Popular Question Great Question Yearling Favorite Question Good Answer,NULL,NULL,0,NULL,NULL 10423,1509170,756303,NULL,NULL,NULL,0,NULL,NULL 10424,583468,350035,NULL,NULL,NULL,0,NULL,NULL 10425,241924,424215,NULL,NULL,NULL,0,NULL,NULL 10426,1035190,495916,Enthusiast Popular Question Curious Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 10427,236948,170040,Yearling Announcer Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 10428,42622,1496095,Supporter Necromancer Nice Answer Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 10429,1037175,1496095,Supporter Necromancer Nice Answer Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 10430,4093325,1000184,NULL,NULL,NULL,0,NULL,NULL 10431,71875,750936,Necromancer Great Question Popular Question Yearling Revival Nice Answer Enlightened Yearling Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10432,177060,685277,Popular Question Caucus Caucus,NULL,NULL,0,NULL,NULL 10433,233439,471384,Notable Question Yearling Popular Question Famous Question Informed Nice Question Famous Question Popular Question Caucus Yearling Popular Question Famous Question Caucus Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 10434,1034311,1243761,Editor Teacher Nice Answer Enlightened Yearling,NULL,NULL,1,Updating field value of struct from Julia julia lang ffi pMy question is simple but don know the best way to do that or Julia doesn offer such way at the moment how can set field value of struct from Julia ppImagine you have struct type to represent node of tree in library ppre codetypedef struct node int type node next node children node parent node code prepand copy it in Julia ppre codeimmutable node typ Cint next Ptr node children Ptr node parent Ptr node end code prepNow assume that you have pointer to codenode code allocated in and want to update the codeparent code field in Julia know we have codeunsafe store code to update value pointed by pointer but it cumbersome to calculate the pointer offset of the codeparent code field in this case it would be codesizeof Int sizeof Ptr node code on my 64 bit machine Is there any simpler way to do the same thing,NULL 10435,1352051,1217016,NULL,NULL,NULL,0,NULL,NULL 10436,484642,1292665,NULL,NULL,NULL,0,NULL,NULL 10437,374385,1300995,Good Answer Yearling Guru Caucus Guru Yearling Good Answer Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 10438,464991,377546,Supporter,NULL,NULL,0,NULL,NULL 10439,549909,1403111,Teacher Revival Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 10440,300509,1476114,Notable Question Revival Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10441,1092900,76776,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10442,281560,373551,Yearling Popular Question Populist Populist Yearling Good Answer,NULL,NULL,0,NULL,NULL 10443,531053,282556,NULL,NULL,NULL,0,NULL,NULL 10444,292861,240140,NULL,NULL,NULL,0,NULL,NULL 10445,1306665,274370,NULL,NULL,NULL,0,NULL,NULL 10446,325506,510808,Nice Answer,NULL,NULL,0,NULL,NULL 10447,237387,1108937,NULL,NULL,NULL,0,NULL,NULL 10448,426513,1298518,Scholar Supporter,NULL,NULL,0,NULL,NULL 10449,1339838,637668,Yearling,NULL,NULL,0,NULL,NULL 10450,93678,195768,Notable Question,NULL,NULL,0,NULL,NULL 10451,280575,1277198,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 10452,280576,1277198,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 10453,339181,1207392,Notable Question Caucus Constituent Caucus Constituent Popular Question Caucus Constituent Popular Question Curious,NULL,NULL,0,NULL,NULL 10454,119378,1155306,Student Scholar,NULL,NULL,0,NULL,NULL 10455,116656,977439,NULL,NULL,NULL,0,NULL,NULL 10456,370,190158,Revival Custodian Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 10457,610466,1060736,NULL,NULL,NULL,0,NULL,NULL 10458,226657,78642,Famous Question Yearling Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Yearling Famous Question Notable Question Notable Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 10459,1189660,1217423,NULL,NULL,NULL,0,NULL,NULL 10460,83476,776937,NULL,NULL,NULL,0,NULL,NULL 10461,403712,1404144,NULL,NULL,NULL,0,NULL,NULL 10462,67039,120826,NULL,NULL,NULL,0,NULL,NULL 10463,151770,516236,Popular Question Famous Question Yearling Notable Question Nice Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 10464,453738,348091,NULL,NULL,NULL,0,NULL,NULL 10465,273411,258794,Nice Answer Notable Question Necromancer Nice Question Yearling Civic Duty Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 10466,794685,454252,Nice Question javascript Famous Question Nice Answer Revival Nice Answer Nice Answer Necromancer google-maps Notable Question Self-Learner Nice Answer Enlightened Famous Question Popular Question Popular Question Yearling Good Answer Popular Question Necromancer Notable Question Popular Question Necromancer Nice Question Nice Question Nice Answer Popular Question Popular Question Good Question Nice Answer Notable Question Notable Question Notable Question Nice Answer Announcer Nice Answer Notable Question Famous Question Good Question Necromancer Announcer Yearling Good Answer Good Answer Famous Question Nice Question Popular Question Nice Answer Census Notable Question html Popular Question Nice Answer Popular Question Good Answer Good Question Popular Question Good Question Necromancer Populist Announcer Famous Question Yearling Popular Question Nice Answer Nice Question,NULL,NULL,1,Angular2 ContentChildren has itself as child angular pI have just seen that ContentChildren has itself as children from this example pp href https plnkr co edit V8t1gR preview rel nofollow noreferrer https plnkr co edit V8t1gR preview pp codengui react code is just component selector You can think it as codemy component code use this name for the development of href https github com ng2 ui react rel nofollow noreferrer react ppre code lt ngui react id gt lt ngui react id 10 gt lt ngui react id 11 gt lt ngui react gt lt ngui react id 12 gt lt ngui react gt lt ngui react gt lt ngui react gt code prepThis is the component code that am running ppre code selector ngui react template lt div gt lt fieldset gt lt legend gt amp lt ngui react id id gt lt legend gt lt ng content gt lt ng content gt lt fieldset gt lt div gt code prepAs you seen on this screenshot brthe content children of ngui react 11 should be code code brbut see code 11 code which has it self as children ppIt is ver odd to me pp href https stack imgur com BbLpk png rel nofollow noreferrer img src https stack imgur com BbLpk png alt enter image description here ppIs this behaviour by design or did find bug angular2 directive Cannot read property subscribe of undefined with outputs metadata angular angular2 directives pRegarding Angular2 directive wanted to use codeoutputs code instead of using code code because have many custom events and wanted to keep DRY ppHowever am having codeTypeError Cannot read property subscribe of undefined code and don know why it happening pp href http plnkr co edit SFL9fo preview rel noreferrer http plnkr co edit SFL9fo preview ppre codeimport Directive from core selector my directive outputs myEvent export class MyDirective constructor console log gt gt gt gt gt gt gt gt gt this myEvent this myEvent code prep href https stack imgur com E1jDb png rel noreferrer img src https stack imgur com E1jDb png alt enter image description here ppAnd this is app component that uses this directive pp href https stack imgur com U0Urm png rel noreferrer img src https stack imgur com U0Urm png alt enter image description here,NULL 10467,5839943,454252,Nice Question javascript Famous Question Nice Answer Revival Nice Answer Nice Answer Necromancer google-maps Notable Question Self-Learner Nice Answer Enlightened Famous Question Popular Question Popular Question Yearling Good Answer Popular Question Necromancer Notable Question Popular Question Necromancer Nice Question Nice Question Nice Answer Popular Question Popular Question Good Question Nice Answer Notable Question Notable Question Notable Question Nice Answer Announcer Nice Answer Notable Question Famous Question Good Question Necromancer Announcer Yearling Good Answer Good Answer Famous Question Nice Question Popular Question Nice Answer Census Notable Question html Popular Question Nice Answer Popular Question Good Answer Good Question Popular Question Good Question Necromancer Populist Announcer Famous Question Yearling Popular Question Nice Answer Nice Question,NULL,NULL,1,Angular2 ContentChildren has itself as child angular pI have just seen that ContentChildren has itself as children from this example pp href https plnkr co edit V8t1gR preview rel nofollow noreferrer https plnkr co edit V8t1gR preview pp codengui react code is just component selector You can think it as codemy component code use this name for the development of href https github com ng2 ui react rel nofollow noreferrer react ppre code lt ngui react id gt lt ngui react id 10 gt lt ngui react id 11 gt lt ngui react gt lt ngui react id 12 gt lt ngui react gt lt ngui react gt lt ngui react gt code prepThis is the component code that am running ppre code selector ngui react template lt div gt lt fieldset gt lt legend gt amp lt ngui react id id gt lt legend gt lt ng content gt lt ng content gt lt fieldset gt lt div gt code prepAs you seen on this screenshot brthe content children of ngui react 11 should be code code brbut see code 11 code which has it self as children ppIt is ver odd to me pp href https stack imgur com BbLpk png rel nofollow noreferrer img src https stack imgur com BbLpk png alt enter image description here ppIs this behaviour by design or did find bug angular2 directive Cannot read property subscribe of undefined with outputs metadata angular angular2 directives pRegarding Angular2 directive wanted to use codeoutputs code instead of using code code because have many custom events and wanted to keep DRY ppHowever am having codeTypeError Cannot read property subscribe of undefined code and don know why it happening pp href http plnkr co edit SFL9fo preview rel noreferrer http plnkr co edit SFL9fo preview ppre codeimport Directive from core selector my directive outputs myEvent export class MyDirective constructor console log gt gt gt gt gt gt gt gt gt this myEvent this myEvent code prep href https stack imgur com E1jDb png rel noreferrer img src https stack imgur com E1jDb png alt enter image description here ppAnd this is app component that uses this directive pp href https stack imgur com U0Urm png rel noreferrer img src https stack imgur com U0Urm png alt enter image description here,NULL 10468,18867,184077,Favorite Question Notable Question Yearling Caucus Constituent Great Question Popular Question Nice Answer Famous Question Caucus Constituent Yearling Custodian Notable Question Caucus Constituent Notable Question Nice Answer Custodian Yearling Nice Question,NULL,NULL,0,NULL,NULL 10469,119398,674751,Necromancer Yearling Nice Answer Yearling Good Answer Yearling Populist Nice Answer,NULL,NULL,0,NULL,NULL 10470,2062846,674751,Necromancer Yearling Nice Answer Yearling Good Answer Yearling Populist Nice Answer,NULL,NULL,0,NULL,NULL 10471,216987,1021678,NULL,NULL,NULL,0,NULL,NULL 10472,1400143,973091,NULL,NULL,NULL,0,NULL,NULL 10473,8698590,63119,Nice Answer,NULL,NULL,0,NULL,NULL 10474,239712,63119,Nice Answer,NULL,NULL,0,NULL,NULL 10475,245829,1189205,NULL,NULL,NULL,0,NULL,NULL 10476,505159,477210,NULL,NULL,NULL,0,NULL,NULL 10477,179801,1399933,Supporter Documentation User,NULL,NULL,0,NULL,NULL 10478,380396,236848,Yearling Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 10479,107235,1451237,Student Supporter,NULL,NULL,0,NULL,NULL 10480,63162,798832,NULL,NULL,NULL,0,NULL,NULL 10481,38141,407929,NULL,NULL,NULL,0,NULL,NULL 10482,10980,35084,Self-Learner Yearling Enlightened Notable Question Nice Question Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10483,694150,826260,NULL,NULL,NULL,0,NULL,NULL 10484,303977,740878,NULL,NULL,NULL,0,NULL,NULL 10485,176847,489610,Yearling,NULL,NULL,0,NULL,NULL 10486,700,351097,NULL,NULL,NULL,0,NULL,NULL 10487,798250,761948,NULL,NULL,NULL,0,NULL,NULL 10488,599564,1044704,Student Scholar Nice Question Supporter,NULL,NULL,0,NULL,NULL 10489,1666385,1056411,NULL,NULL,NULL,0,NULL,NULL 10490,244598,323720,Notable Question Great Question Good Question Yearling Popular Question Good Answer Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 10491,427258,1236580,NULL,NULL,NULL,0,NULL,NULL 10492,486998,64346,Civic Duty Announcer Necromancer Caucus Nice Question Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 10493,356607,458413,NULL,NULL,NULL,0,NULL,NULL 10494,375962,204788,Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Revival Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Good Answer spring-mvc Populist Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Documentation User Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Famous Question Announcer Custodian Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Yearling Nice Answer Enlightened Announcer,NULL,pYou can absolutely do that just remove the code code annotation Spring will cleanly bind your request parameters to your class instance ppre codepublic List lt MyObject gt myAction value page required false int page MyObject myObject code pre Yes you can do this via if you have annotated method you can provide the default values there and then your real method can add in other details from the request here is link with more information on how to do this http docs spring io spring docs current spring framework reference htmlsingle mvc ann modelattrib methods,0,NULL,NULL 10495,328174,426380,NULL,NULL,NULL,0,NULL,NULL 10496,210950,1469605,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10497,45103,1071659,Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 10498,445371,1149631,Caucus Yearling Custodian Informed Tumbleweed Necromancer Caucus Student Custodian,NULL,NULL,0,NULL,NULL 10499,538418,734621,NULL,NULL,NULL,0,NULL,NULL 10500,348111,507404,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 10501,1503602,548406,NULL,NULL,NULL,0,NULL,NULL 10502,128848,582795,Popular Question,NULL,NULL,0,NULL,NULL 10503,39627,1220479,Yearling Famous Question Good Question Nice Answer Yearling Great Answer Yearling Custodian Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 10504,3145,1072267,Yearling Nice Answer Nice Question Nice Question Yearling Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10505,105641,1488613,Yearling Guru,NULL,NULL,0,NULL,NULL 10506,428457,1275779,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10507,86385,1026782,Caucus Yearling,NULL,NULL,0,NULL,NULL 10508,182692,1002085,NULL,NULL,NULL,0,NULL,NULL 10509,293478,363988,Revival,NULL,NULL,0,NULL,NULL 10510,1621537,683569,NULL,NULL,NULL,0,NULL,NULL 10511,199941,216085,Supporter Critic Yearling Nice Answer Yearling Disciplined Good Answer,NULL,NULL,0,NULL,NULL 10512,159807,505110,NULL,NULL,NULL,0,NULL,NULL 10513,29720,42559,Civic Duty Notable Question Caucus Yearling Guru Popular Question Good Answer Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 10514,4416501,617044,Notable Question Notable Question Yearling Great Answer Nice Answer Famous Question Necromancer Nice Answer Good Answer Nice Answer Famous Question Nice Answer Enlightened Caucus Notable Question Good Answer Nice Answer Enlightened Good Answer Yearling Popular Question Announcer Popular Question Caucus Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Announcer Custodian Revival Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 10515,1581778,624547,Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Yearling Nice Answer Caucus Constituent Good Answer Yearling Populist Excavator Organizer Yearling Explainer Yearling Custodian Tenacious Announcer Custodian Revival Necromancer Revival tensorflow Custodian Custodian Custodian Strunk & White python Revival Civic Duty Refiner Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10516,631707,268101,Curious Yearling Popular Question Popular Question Autobiographer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10517,352057,564559,Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Revival Notable Question Nice Question Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Yearling Famous Question Nice Question Custodian Famous Question Popular Question Popular Question,NULL,,0,, 10518,315668,759893,NULL,NULL,NULL,0,NULL,NULL 10519,13284,385702,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10520,114109,502181,NULL,NULL,NULL,0,NULL,NULL 10521,99121,1473156,Autobiographer,NULL,NULL,0,NULL,NULL 10522,478950,189629,Guru Yearling Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10523,33733,146817,Supporter,NULL,NULL,0,NULL,NULL 10524,82211,393248,NULL,NULL,NULL,0,NULL,NULL 10525,460026,4352,Nice Answer Yearling Critic Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10526,637399,696389,NULL,NULL,NULL,0,NULL,NULL 10527,241034,16113,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 10528,28321,67842,Notable Question,NULL,NULL,0,NULL,NULL 10529,1060211,326536,Nice Answer Favorite Question Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 10530,454768,1079136,NULL,NULL,NULL,0,NULL,NULL 10531,304366,462955,Nice Question Popular Question Yearling Popular Question Famous Question Famous Question Nice Answer Benefactor Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 10532,251670,630784,Yearling Necromancer Nice Answer Nice Answer Enlightened Nice Answer Enlightened cllocationmanager Caucus Nice Answer Enlightened Custodian iphone Yearling Necromancer Popular Question Good Answer Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 10533,34483,1029936,Nice Answer Enlightened Popular Question Nice Answer Nice Answer Nice Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Question Notable Question Notable Question Nice Answer Enlightened Good Answer Popular Question Good Answer Popular Question Yearling Notable Question Popular Question Nice Answer Good Answer Popular Question Good Answer Notable Question Popular Question Notable Question Notable Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Enlightened Nice Question Nice Question Guru Nice Answer Notable Question Nice Answer Enlightened Yearling Popular Question Guru Census Good Answer Nice Question Nice Question Popular Question Good Answer Popular Question Popular Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 10534,110529,763557,Popular Question Nice Answer Yearling Necromancer Notable Question Census Necromancer Good Answer,NULL,NULL,0,NULL,NULL 10535,151875,1310967,NULL,NULL,NULL,0,NULL,NULL 10536,10498,112002,Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 10537,356373,601508,NULL,NULL,NULL,0,NULL,NULL 10538,186402,290256,Good Answer Yearling Good Answer Yearling Good Answer Popular Question ruby Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10539,13851,1914,Excavator Yearling Nice Question Good Answer,NULL,NULL,0,NULL,NULL 10540,78425,71495,Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 10541,21449,1257225,NULL,NULL,NULL,0,NULL,NULL 10542,70896,467274,Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Constituent Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10543,279539,115266,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 10544,105402,1561264,NULL,NULL,NULL,0,NULL,NULL 10545,46527,267263,Yearling Good Answer Nice Answer Yearling Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 10546,248043,270033,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 10547,98097,787171,Notable Question Revival Tumbleweed Popular Question Yearling Popular Question Popular Question Revival Great Question Famous Question Yearling Custodian Custodian Informed Autobiographer Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 10548,256939,368316,Good Answer,NULL,NULL,0,NULL,NULL 10549,140819,88722,Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10550,4907008,514025,Revival Custodian Popular Question Good Answer Revival Yearling Necromancer Notable Question Popular Question Popular Question Popular Question Critic Self-Learner Yearling Popular Question Famous Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 10551,88265,514025,Revival Custodian Popular Question Good Answer Revival Yearling Necromancer Notable Question Popular Question Popular Question Popular Question Critic Self-Learner Yearling Popular Question Famous Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 10552,526273,1083933,NULL,NULL,NULL,0,NULL,NULL 10553,21207,1326775,Yearling Yearling Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10554,408653,311499,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 10555,266170,741926,NULL,NULL,NULL,0,NULL,NULL 10556,167077,248701,Yearling Popular Question Nice Answer Yearling Suffrage Promoter Notable Question Revival Self-Learner,NULL,NULL,0,NULL,NULL 10557,461627,1120370,Popular Question Notable Question Popular Question Nice Question Nice Question Famous Question Popular Question Famous Question Excavator Custodian Necromancer Notable Question Necromancer Notable Question Necromancer Nice Question Nice Answer Nice Question Popular Question Nice Answer Nice Question Popular Question Good Answer Nice Answer Yearling Favorite Question Popular Question Nice Question Notable Question Popular Question Popular Question Necromancer Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Notable Question Civic Duty Notable Question Famous Question Nice Question Nice Answer Popular Question Notable Question Notable Question Documentation User Popular Question Notable Question Good Question Necromancer Nice Question Popular Question Nice Answer Yearling Nice Question Census Popular Question Famous Question Caucus Good Answer Nice Answer Popular Question Popular Question Nice Question Nice Question Notable Question Famous Question Popular Question Notable Question,NULL,NULL,1,NULL,shuffling permutating DataFrame in pandas python numpy pandas pWhat simple and efficient way to shuffle dataframe in pandas by rows or by columns how to write function codeshuffle df axis code that takes dataframe number of shuffles coden code and an axis codeaxis code is rows codeaxis code is columns and returns copy of the dataframe that has been shuffled coden code times pp strongEdit strong key is to do this without destroying the row column labels of the dataframe If you just shuffle codedf index code that loses all that information want the resulting codedf code to be the same as the original except with the order of rows or order of columns different pp strongEdit2 strong My question was unclear When say shuffle the rows mean shuffle each row independently So if you have two columns codea code and codeb code want each row shuffled on its own so that you don have the same associations between codea code and codeb code as you do if you just re order each row as whole Something like ppre codefor for each col in df shuffle columnreturn new df code prepBut hopefully more efficient than naive looping This does not work for me ppre codedef shuffle df axis shuffled df df copy for in range shuffled df apply np random shuffle shuffled df values axis axis return shuffled dfdf pandas DataFrame range 10 range 10 shuffle df code pre pSampling randomizes so just sample the entire data frame ppre codedf sample frac code pre 10558,524579,323149,Yearling Caucus Revival Civic Duty Documentation User Announcer Citizen Patrol Explainer Custodian Yearling,NULL,NULL,0,NULL,NULL 10559,234670,1280598,NULL,NULL,NULL,0,NULL,NULL 10560,692775,1056306,NULL,NULL,NULL,0,NULL,NULL 10561,150700,105336,NULL,NULL,NULL,0,NULL,NULL 10562,99039,17773,Great Answer Yearling Nice Answer Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 10563,25312,153414,NULL,NULL,NULL,0,NULL,NULL 10564,366539,1325551,Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 10565,127654,1353732,NULL,NULL,NULL,0,NULL,NULL 10566,227454,433178,Popular Question Critic Yearling Caucus Revival,NULL,NULL,0,NULL,NULL 10567,174648,711683,NULL,NULL,NULL,0,NULL,NULL 10568,889967,1257305,NULL,NULL,NULL,0,NULL,NULL 10569,4868,477055,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10570,432115,374391,Popular Question Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 10571,980942,578958,NULL,NULL,NULL,0,NULL,NULL 10572,3447396,1002157,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10573,894778,888988,Popular Question,NULL,NULL,0,NULL,NULL 10574,407137,1405522,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10575,281132,553473,Nice Question Popular Question Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 10576,89906,301048,NULL,NULL,NULL,0,NULL,NULL 10577,3000896,1181141,Student Commentator,NULL,NULL,0,NULL,NULL 10578,862061,1144761,Custodian Commentator Supporter,NULL,NULL,0,NULL,NULL 10579,25014,131433,Guru Nice Answer Enlightened Great Answer Popular Question Popular Question Good Answer Notable Question Notable Question Notable Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Guru Popular Question Popular Question Popular Question Famous Question Nice Answer windows Nice Answer Enlightened Notable Question Popular Question Nice Question Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Good Answer Nice Answer Good Answer Nice Answer Nice Question Nice Answer Popular Question Famous Question Good Answer Notable Question Famous Question Nice Answer Notable Question Nice Question Notable Question Nice Answer Good Answer Good Answer Famous Question Yearling Caucus Nice Question Good Answer Good Answer Announcer Announcer Nice Answer Popular Question Guru Nice Answer Popular Question Guru Good Answer Good Answer Good Answer git Good Answer Popular Question Great Answer Nice Answer Nice Answer Good Answer Popular Question Popular Question Nice Answer Good Question Nice Question jni Guru Yearling Notable Question Good Answer Good Answer Good Answer Good Answer Good Answer Popular Question Nice Answer Enlightened arrays file Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 10580,817603,1134508,NULL,NULL,NULL,0,NULL,NULL 10581,259983,1208275,Student Commentator Teacher Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10582,1566450,477954,Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 10583,10397127,277506,NULL,NULL,NULL,0,NULL,NULL 10584,20012,751372,NULL,NULL,NULL,0,NULL,NULL 10585,428385,736672,NULL,NULL,NULL,0,NULL,NULL 10586,1922264,1248884,Notable Question,NULL,NULL,0,NULL,NULL 10587,95449,166856,Good Question,NULL,NULL,0,NULL,NULL 10588,153302,870373,Editor,NULL,NULL,0,NULL,NULL 10589,236422,478189,Popular Question,NULL,NULL,0,NULL,NULL 10590,394133,1200972,Scholar,NULL,NULL,0,NULL,NULL 10591,1063773,1147592,NULL,NULL,NULL,0,NULL,NULL 10592,694850,893947,Yearling Critic,NULL,NULL,0,NULL,NULL 10593,100316,241421,Enthusiast Teacher Supporter,NULL,NULL,0,NULL,NULL 10594,38285,1209703,Teacher,NULL,NULL,0,NULL,NULL 10595,9028,1006595,Yearling Good Answer Revival Yearling Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 10596,82977,261547,NULL,NULL,NULL,0,NULL,NULL 10597,240164,412344,NULL,NULL,NULL,0,NULL,NULL 10598,673558,585913,Yearling Popular Question Self-Learner Nice Question Notable Question Popular Question Nice Answer Popular Question Nice Answer Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Guru Caucus Notable Question Nice Question Notable Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10599,366674,845811,NULL,NULL,NULL,0,NULL,NULL 10600,1516029,1492560,NULL,NULL,NULL,0,NULL,NULL 10601,64506,452115,Revival Civic Duty Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Announcer Announcer Popular Question Popular Question Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 10602,660215,943501,NULL,NULL,NULL,0,NULL,NULL 10603,915020,1048328,Nice Answer,NULL,NULL,0,NULL,NULL 10604,389112,940422,NULL,NULL,NULL,0,NULL,NULL 10605,102415,591203,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 10606,359445,250924,Necromancer Popular Question Nice Answer Famous Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 10607,164507,207400,NULL,NULL,NULL,0,NULL,NULL 10608,603505,770616,NULL,NULL,NULL,0,NULL,NULL 10609,230016,15595,Popular Question Famous Question Nice Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 10610,6386287,854675,NULL,NULL,NULL,0,NULL,NULL 10611,960159,1349685,NULL,NULL,NULL,0,NULL,NULL 10612,448440,882666,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10613,2531107,882666,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10614,118558,1027492,Notable Question,NULL,NULL,0,NULL,NULL 10615,89722,661939,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 10616,479077,980121,NULL,NULL,NULL,0,NULL,NULL 10617,3632929,980121,NULL,NULL,NULL,0,NULL,NULL 10618,150208,980121,NULL,NULL,NULL,0,NULL,NULL 10619,263517,1059861,NULL,NULL,NULL,0,NULL,NULL 10620,4701723,1408075,Informed,NULL,NULL,0,NULL,NULL 10621,186986,709019,Yearling,NULL,NULL,0,NULL,NULL 10622,448517,457757,NULL,NULL,NULL,0,NULL,NULL 10623,87404,1096551,Necromancer Necromancer Good Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 10624,305002,577360,Famous Question Commentator Yearling Custodian Yearling Critic Informed Yearling Tenacious Yearling Yearling Explainer Yearling Enthusiast Nice Question Unsung Hero Caucus Nice Answer Enlightened Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 10625,239375,217527,Great Question Notable Question Yearling Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 10626,42092,74305,Yearling Mortarboard Nice Answer Guru Nice Answer Good Answer Caucus Necromancer Yearling Nice Answer Caucus Good Answer Famous Question Custodian Nice Answer Nice Answer Enlightened Good Answer Yearling Guru Nice Question Disciplined,NULL,NULL,0,NULL,NULL 10627,258317,110856,Popular Question Necromancer Yearling Popular Question Good Answer Yearling Nice Question Guru Yearling Popular Question Famous Question,NULL,How to check if there nothing to be committed in the current branch git git status pThe goal is to get an unambiguous status that can be evaluated in shell command ppI tried codegit status code but it always returns even if there are items to commit ppre codegit statusecho this is always code prepI have an idea but think it is rather bad idea ppre codeif git status grep gt then code for change else code for nothing change fi code prepany other way phrp strongupdate and now this solve see Mark Longair post strong ppI tried this but cause an problem ppre codeif git status porcelain then echo IT IS CLEAN else echo PLEASE COMMIT YOUR CHANGE FIRST echo git statusfi code prepwhen the ppit will get some error binary operator expected ppnow am looking at man and try the git diff pp code for my hope and hope better answer ppre code if git status grep lt change to below code although the above code is simple but think it is not strict logicalif git diff cached exit code HEAD gt dev null amp amp git ls files other exclude standard directory grep then echo PLEASE COMMIT YOUR CHANGE FIRST exit 1else exit 0fi code pre Your second attempt using git status porcelain was nearly correct You were just missing some double quotes around the call to git status The first line should be if git status porcelain The double quotes ensure that the command output which may contain spaces is treated as single argument to the test,0,NULL,NULL 10628,1345382,736455,Teacher Supporter,NULL,NULL,0,NULL,NULL 10629,1108874,678214,Yearling Caucus,NULL,NULL,0,NULL,NULL 10630,152117,1379889,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 10631,344541,1079403,NULL,NULL,NULL,0,NULL,NULL 10632,90501,901696,Revival Student Scholar Supporter Editor Popular Question Notable Question Yearling,NULL,pThis is probably due to href https github com YuzuJS setImmediate macrotasks and microtasks rel noreferrer the difference between microtasks and tasks macrotasks Firefox has never had standards complaint promise implementation that uses microtasks whereas Chrome Bluebird and others correctly use microtasks You can see this in how microtask which executes sooner than macrotask but still async falls inside the transaction boundary whereas macrotask from Firefox promises does not ppSo this is Firefox bug This is fixed in Firefox as of version 60 See bug 1193394 https bugzilla mozilla org show bug cgi id 1193394,0,NULL,NULL 10633,162419,1324630,NULL,NULL,NULL,0,NULL,NULL 10634,150548,1246536,NULL,NULL,NULL,0,NULL,NULL 10635,287583,1268964,Notable Question Nice Question Popular Question Nice Answer Famous Question Custodian Yearling Good Question Popular Question Tumbleweed Yearling Notable Question Notable Question Popular Question Popular Question Caucus Constituent Nice Question Good Answer Notable Question Great Question Yearling Notable Question Nice Question Famous Question Good Question Favorite Question Caucus Constituent Documentation User Popular Question Famous Question Nice Question Yearling Populist Favorite Question Famous Question Famous Question Great Question,NULL,NULL,0,NULL,NULL 10636,325660,968856,Famous Question,NULL,NULL,0,NULL,NULL 10637,232157,593504,NULL,NULL,NULL,0,NULL,NULL 10638,639688,740600,Necromancer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 10639,1218608,998501,NULL,NULL,NULL,0,NULL,NULL 10640,348820,40754,NULL,NULL,NULL,0,NULL,NULL 10641,202627,104117,Investor Enlightened Good Answer Yearling Popular Question Popular Question Good Answer Yearling Popular Question Nice Answer Good Answer Good Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 10642,333081,84328,Nice Answer Yearling ruby-on-rails Famous Question Yearling Good Answer Yearling Great Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 10643,767460,1497756,NULL,NULL,NULL,0,NULL,NULL 10644,610384,449114,NULL,NULL,NULL,0,NULL,NULL 10645,7931453,1391332,NULL,NULL,NULL,0,NULL,NULL 10646,1313371,1391332,NULL,NULL,NULL,0,NULL,NULL 10647,437220,1366678,NULL,NULL,NULL,0,NULL,NULL 10648,790926,1464495,Revival Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Revival Announcer Custodian Notable Question Popular Question Popular Question Announcer Yearling Custodian Citizen Patrol,NULL,pThis adds reversed option to toctree ppre codefrom sphinx directives import TocTreefrom docutils parsers rst import directivesclass NewTocTree TocTree option spec dict TocTree option spec reversed directives flag def run self rst super NewTocTree self run if reversed in self options rst entries reverse return rstdef setup app app add directive toctree NewTocTree code prepWhich lets you do ppre codeContents toctree maxdepth reversed glob 20 code pre This also reverses the toctree in the sidebar,0,NULL,NULL 10649,894457,195662,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10650,148404,778753,NULL,NULL,NULL,0,NULL,NULL 10651,36625,593204,NULL,NULL,NULL,0,NULL,NULL 10652,3213,59210,Yearling Custodian Nice Answer Good Answer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 10653,30931,427027,NULL,NULL,NULL,0,NULL,NULL 10654,80456,588895,NULL,NULL,NULL,0,NULL,NULL 10655,1187662,4227,Famous Question Nice Answer Enlightened Famous Question Popular Question Famous Question Notable Question Stellar Question Popular Question Nice Question Notable Question Notable Question Good Answer Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Famous Question Notable Question Popular Question Good Question Caucus Popular Question Favorite Question Popular Question Necromancer Notable Question Nice Question Necromancer Notable Question Popular Question Notable Question Notable Question Nice Question Notable Question Necromancer Notable Question Revival Nice Question Announcer Popular Question Notable Question Popular Question Notable Question Revival Popular Question Popular Question Yearling Notable Question Enthusiast Notable Question Nice Answer Popular Question Popular Question Nice Answer Popular Question Caucus Popular Question Nice Answer Necromancer Popular Question Notable Question Nice Question Nice Question Notable Question Yearling Famous Question Good Answer Popular Question Popular Question Popular Question Notable Question Good Answer Nice Question Nice Question Nice Question,NULL,pHere is an improved version of the above mentioned attached behavior It fully supports twoway binding and also works with codeHeriarchicalDataTemplate code and codeTreeView codes where its items are virtualized Please note though that to find the TreeViewItem that needs to be selected it will realize create the virtualized codeTreeViewItem codes until it finds the right one This could potentially be performance problem with big virtualized trees ppre code lt summary gt Behavior that makes the lt see cref System Windows Controls TreeView SelectedItem gt bindable lt summary gt public class BindableSelectedItemBehavior Behavior lt TreeView gt lt summary gt Identifies the lt see cref SelectedItem gt dependency property lt summary gt public static readonly DependencyProperty SelectedItemProperty DependencyProperty Register SelectedItem typeof object typeof BindableSelectedItemBehavior new UIPropertyMetadata null OnSelectedItemChanged lt summary gt Gets or sets the selected item of the lt see cref TreeView gt that this behavior is attached to lt summary gt public object SelectedItem get return this GetValue SelectedItemProperty set this SetValue SelectedItemProperty value lt summary gt Called after the behavior is attached to an AssociatedObject lt summary gt lt remarks gt Override this to hook up functionality to the AssociatedObject lt remarks gt protected override void OnAttached base OnAttached this AssociatedObject SelectedItemChanged this OnTreeViewSelectedItemChanged lt summary gt Called when the behavior is being detached from its AssociatedObject but before it has actually occurred lt summary gt lt remarks gt Override this to unhook functionality from the AssociatedObject lt remarks gt protected override void OnDetaching base OnDetaching if this AssociatedObject null this AssociatedObject SelectedItemChanged this OnTreeViewSelectedItemChanged private static Action lt int gt GetBringIndexIntoView Panel itemsHostPanel var virtualizingPanel itemsHostPanel as VirtualizingStackPanel if virtualizingPanel null return null var method virtualizingPanel GetType GetMethod BringIndexIntoView BindingFlags Instance BindingFlags NonPublic Type DefaultBinder new typeof int null if method null return null return gt method Invoke virtualizingPanel new object lt summary gt Recursively search for an item in this subtree lt summary gt lt param name container gt The parent ItemsControl This can be TreeView or TreeViewItem lt param gt lt param name item gt The item to search for lt param gt lt returns gt The TreeViewItem that contains the specified item lt returns gt private static TreeViewItem GetTreeViewItem ItemsControl container object item if container null if container DataContext item return container as TreeViewItem Expand the current container if container is TreeViewItem amp amp TreeViewItem container IsExpanded container SetValue TreeViewItem IsExpandedProperty true Try to generate the ItemsPresenter and the ItemsPanel by calling ApplyTemplate Note that in the virtualizing case even if the item is marked expanded we still need to do this step in order to regenerate the visuals because they may have been virtualized away container ApplyTemplate var itemsPresenter ItemsPresenter container Template FindName ItemsHost container if itemsPresenter null itemsPresenter ApplyTemplate else The Tree template has not named the ItemsPresenter so walk the descendents and find the child itemsPresenter container GetVisualDescendant lt ItemsPresenter gt if itemsPresenter null container UpdateLayout itemsPresenter container GetVisualDescendant lt ItemsPresenter gt var itemsHostPanel Panel VisualTreeHelper GetChild itemsPresenter Ensure that the generator for this panel has been created pragma warning disable 168 var children itemsHostPanel Children pragma warning restore 168 var bringIndexIntoView GetBringIndexIntoView itemsHostPanel for int count container Items Count lt count TreeViewItem subContainer if bringIndexIntoView null Bring the item into view so that the container will be generated bringIndexIntoView subContainer TreeViewItem container ItemContainerGenerator ContainerFromIndex else subContainer TreeViewItem container ItemContainerGenerator ContainerFromIndex Bring the item into view to maintain the same behavior as with virtualizing panel subContainer BringIntoView if subContainer null continue Search the next level for the object var resultContainer GetTreeViewItem subContainer item if resultContainer null return resultContainer The object is not under this TreeViewItem so collapse it subContainer IsExpanded false return null private static void OnSelectedItemChanged DependencyObject sender DependencyPropertyChangedEventArgs var item NewValue as TreeViewItem if item null item SetValue TreeViewItem IsSelectedProperty true return var behavior BindableSelectedItemBehavior sender var treeView behavior AssociatedObject if treeView null at designtime the AssociatedObject sometimes seems to be null return item GetTreeViewItem treeView NewValue if item null item IsSelected true private void OnTreeViewSelectedItemChanged object sender RoutedPropertyChangedEventArgs lt object gt this SelectedItem NewValue code prepAnd for the sake of completeness hier is the implementation of codeGetVisualDescentants code ppre code lt summary gt Extension methods for the lt see cref DependencyObject gt type lt summary gt public static class DependencyObjectExtensions lt summary gt Gets the first child of the specified visual that is of tyoe lt typeparamref name gt in the visual tree recursively lt summary gt lt param name visual gt The visual to get the visual children for lt param gt lt returns gt The first child of the specified visual that is of tyoe lt typeparamref name gt of the specified visual in the visual tree recursively or lt gt null lt gt if none was found lt returns gt public static GetVisualDescendant lt gt this DependencyObject visual where DependencyObject return visual GetVisualDescendants FirstOrDefault gt is lt summary gt Gets all children of the specified visual in the visual tree recursively lt summary gt lt param name visual gt The visual to get the visual children for lt param gt lt returns gt All children of the specified visual in the visual tree recursively lt returns gt public static IEnumerable lt DependencyObject gt GetVisualDescendants this DependencyObject visual if visual null yield break for var lt VisualTreeHelper GetChildrenCount visual var child VisualTreeHelper GetChild visual yield return child foreach var subChild in GetVisualDescendants child yield return subChild code pre have updated my answer,0,NULL,NULL 10656,1498198,1459360,NULL,NULL,NULL,0,NULL,NULL 10657,240503,333059,NULL,NULL,NULL,0,NULL,NULL 10658,1739954,446699,Notable Question,NULL,NULL,0,NULL,NULL 10659,267374,649669,Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 10660,959425,812210,NULL,NULL,NULL,0,NULL,NULL 10661,855109,349575,Notable Question,NULL,NULL,0,NULL,NULL 10662,213103,427804,NULL,NULL,NULL,0,NULL,NULL 10663,128637,553523,jquery Necromancer Nice Answer Informed Popular Question css Good Answer Yearling Nice Answer Popular Question Enlightened Taxonomist Yearling Caucus Nice Answer Guru,NULL,NULL,0,NULL,NULL 10664,207143,1542161,NULL,NULL,NULL,0,NULL,NULL 10665,121843,154566,Supporter,NULL,NULL,0,NULL,NULL 10666,422637,844808,Guru Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 10667,78042,997950,Necromancer,NULL,NULL,0,NULL,NULL 10668,932398,752345,Yearling Self-Learner Popular Question Caucus Nice Question,NULL,NULL,0,NULL,NULL 10669,253061,603599,NULL,NULL,NULL,0,NULL,NULL 10670,1766656,1191379,Good Answer Editor Populist,NULL,NULL,1,NULL,Golang benchmarking StopTimer hangs is it me go pI ve run into problem benchmarking my Go programs and it looks to me like Go bug Please help me understand why it not ppIn nutshell benchmarking hangs when call codeb StopTimer code even if then call codeb StartTimer code afterwards AFAICT am using the functions as intended ppThis is on Mac OSX 10 11 El Capitan with codego version go1 darwin amd64 code everything else seems to be fine will try to check this on Linux later today and update the question ppHere the code Run with codego test bench code as usual ppre codepackage bmtimerimport testing time These appear to not matter they can be very short var COSTLY PREP DELAY time Nanosecondvar RESET STATE DELAY time Nanosecond This however the measured function delay must not be too short The shorter it is the more iterations will be timed If it infinitely short then you will hang or perhaps appear to hang var FUNCTION OF INTEREST DELAY time Microsecondfunc CostlyPrep time Sleep COSTLY PREP DELAY func ResetState time Sleep RESET STATE DELAY func FunctionOfInterest time Sleep FUNCTION OF INTEREST DELAY func TestPlaceHolder testing func BenchmarkSomething testing CostlyPrep ResetTimer for lt FunctionOfInterest StopTimer ResetState StartTimer code prepThanks in advance for any tips ve come up short on Google as well as here pp emEdit em It seems this only happens of codeFunctionOfInterest code is really fast and yes specifically want to do this inside my benchmark loop ve updated the sample code to make that more clear And emthink em have it figured out now emTL DR it not bug it just little tricky em ppI pretty sure know what going on The use of codeStopTimer code and codeStartTimer code inside the benchmarking loop is not the problem the problem is that the function emdo em want to test is too fast for its own good Or for my good anyway ppBy adjusting the sleep time used by that function we can pretty easily observe the benchmarking differences At least for something this simple Go is running more iterations the faster the emmeasured em code returns This is known behavior and should have thought of it One finds output like this ppre codePASSBenchmarkSomething 1000000 2079 ns opok bmtimer 36 587s code prepWhen the codeFunctionOfInterest code returns very fast or of course infinitely fast as in codefunc tooFast code then Go keeps running more iterations of it trying to get reliable benchmark You might run out of patience Or your computer might ppre code Test killed with quit ran too long 10m0s FAIL bmtimer 600 037s code prep That was ten minutes at 100 CPU on one core ppThe good news of course is that it not bug the bad news is it still pretty annoying that it doesn just stop at say million iterations and tell you its best guess ppBut then again the other good news is that encountering this problem indicates your function is fast enough and probably doesn need benchmarking ppThe remaining mystery is strongWhy does this only happen when we stop and start the timer strong ppWithout fiddling with the timer can call my noop function and it benchmarks it just fine in mere two billion iterations ppre codeBenchmarkSomething 2000000000 33 ns opok bmtimer 706s code prepMy best guess is based on the comment from emstopping the world em takes at least little time and when you re running two billion iterations that can easily run over ten minutes Like the man said billion here billion there and pretty soon you re talking about real money pp That my guess anyway Smarter folks than may yet correct me ppThus the moral of our story is strongyes strong by all means do take advantage of codeb StopTimer code and codeb StartTimer code in order to handle state if you have no other way to deal with it But keep in mind that for very fast functions it may be too much for the benchmarker ppI do wish knew better way to isolate the specific function benchmark for fast functions My initial hack that used before trying codeStopTimer code was to have another benchmark function that benchmarks just the extra code so you get two numbers ns op with everything and ns op emwithout em the function of interest That works and it probably even more accurate than stopping the timer but it does require advance knowledge of how to interpret the benchmark output 10671,1230008,436422,Tumbleweed Yearling Commentator Necromancer Necromancer Necromancer Popular Question Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 10672,399386,1075663,Popular Question Notable Question Necromancer Not a Robot,NULL,NULL,0,NULL,NULL 10673,687401,625486,NULL,NULL,NULL,0,NULL,NULL 10674,158426,29690,Nice Answer Nice Answer Announcer Famous Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 10675,103533,399823,NULL,NULL,NULL,0,NULL,NULL 10676,187550,1123827,NULL,NULL,NULL,0,NULL,NULL 10677,243994,448551,Nice Answer Enlightened osgi Student Scholar Yearling Nice Answer Yearling Announcer Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 10678,276426,1285552,NULL,NULL,NULL,0,NULL,NULL 10679,26471,638166,NULL,NULL,NULL,0,NULL,NULL 10680,458748,722113,NULL,NULL,NULL,0,NULL,NULL 10681,33346,1194688,NULL,NULL,NULL,0,NULL,NULL 10682,2212043,698846,Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 10683,3252361,7163,Famous Question,NULL,NULL,0,NULL,NULL 10684,99657,343356,Great Answer Yearling Revival Yearling Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 10685,3606562,1498497,Editor Scholar Student,NULL,NULL,0,NULL,NULL 10686,205293,167854,Proofreader Reviewer Yearling Caucus Constituent Nice Question Nice Question Electorate Famous Question Custodian Yearling Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 10687,244814,321463,NULL,NULL,NULL,0,NULL,NULL 10688,2955,447838,Yearling Informed,NULL,NULL,0,NULL,NULL 10689,179031,23914,Nice Answer Caucus Editor Student Popular Question,NULL,NULL,0,NULL,NULL 10690,1050844,56648,Great Question Yearling Popular Question Famous Question Nice Answer Yearling Good Question Yearling Nice Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 10691,72871,637173,NULL,NULL,NULL,0,NULL,NULL 10692,145000,10085,Student Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 10693,277989,1461815,Yearling Nice Answer Nice Answer Yearling Commentator Popular Question,NULL,NULL,0,NULL,NULL 10694,42473,277481,NULL,NULL,NULL,0,NULL,NULL 10695,524029,137935,NULL,NULL,NULL,0,NULL,NULL 10696,162526,114852,NULL,NULL,NULL,0,NULL,NULL 10697,180303,682601,Yearling Famous Question Necromancer,NULL,NULL,0,NULL,NULL 10698,242795,626297,NULL,NULL,NULL,0,NULL,NULL 10699,28586,1091834,NULL,NULL,NULL,0,NULL,NULL 10700,268208,559826,Student,NULL,NULL,0,NULL,NULL 10701,151446,100478,Nice Answer Nice Question Good Answer Nice Answer Yearling Good Answer Good Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Great Answer Guru Yearling Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Documentation User Good Answer Great Answer Good Answer Yearling Custodian Nice Answer Guru,NULL,pThere are two ways to get blocks dispatched to the main queue to run The first is via codedispatch main code as mentioned by Drewsmits However as he also noted there big problem with using codedispatch main code in your test strongit never returns strong It will just sit there waiting to run any blocks that come its way for the rest of eternity That not so helpful for unit test as you can imagine ppLuckily there another option In the codeCOMPATIBILITY code section of the href https developer apple com legacy library documentation Darwin Reference ManPages man3 dispatch main html rel nofollow codedispatch main code man page it says this pblockquote pCocoa applications need not call dispatch main Blocks submitted to the main queue will be executed as part of the common modes of the application main NSRunLoop or CFRunLoop blockquotepIn other words if you re in Cocoa app the dispatch queue is drained by the main thread codeNSRunLoop code So all we need to do is keep the run loop running while we re waiting for the test to finish It looks like this ppre code void testDoSomething block BOOL hasCalledBack NO void completionBlock void void NSLog Completion Block hasCalledBack YES MyObject doSomethingAsyncThenRunCompletionBlockOnMainQueue completionBlock Repeatedly process events in the run loop until we see the callback run This code will wait for up to 10 seconds for something to come through on the main queue before it times out If your tests need longer than that bump up the time limit Giving it timeout like this means your tests won hang indefinitely NSRunLoop runMode beforeDate always processes exactly one event or returns after timing out NSDate loopUntil NSDate dateWithTimeIntervalSinceNow 10 while hasCalledBack NO amp amp loopUntil timeIntervalSinceNow gt NSRunLoop currentRunLoop runMode NSDefaultRunLoopMode beforeDate loopUntil if hasCalledBack STFail know this will fail thanks code pre Historical note SenTest has been replaced by XCTest which now includes support for asynchronous tests directly via the XCTestExpectation API,0,NULL,NULL 10702,917104,182393,Yearling Popular Question Notable Question Caucus Notable Question Constituent Notable Question Popular Question Notable Question Tumbleweed Caucus Constituent Notable Question Yearling Notable Question Custodian Census Caucus Constituent Good Answer Custodian Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 10703,1735980,824057,NULL,NULL,NULL,0,NULL,NULL 10704,694431,824057,NULL,NULL,NULL,0,NULL,NULL 10705,16933,836450,Necromancer Notable Question Yearling Nice Answer Caucus Proofreader Custodian Notable Question Great Answer Necromancer Notable Question Nice Question Enlightened Promoter Yearling Nice Answer Popular Question Nice Answer Good Answer Popular Question Investor Altruist Announcer Yearling Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 10706,342944,448567,NULL,NULL,NULL,0,NULL,NULL 10707,113757,35448,Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 10708,1025605,643282,NULL,NULL,NULL,0,NULL,NULL 10709,250853,1100692,Popular Question Caucus Notable Question Necromancer Popular Question Yearling Notable Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 10710,1565758,1067672,Self-Learner,NULL,NULL,0,NULL,NULL 10711,134759,115833,Popular Question Yearling c++ Nice Answer Enlightened Yearling Guru Good Answer Nice Question Nice Answer Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10712,918858,317265,Editor Informed Critic Commentator Autobiographer Scholar Tag Editor Organizer Yearling Revival Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 10713,59188,724060,Notable Question,NULL,NULL,0,NULL,NULL 10714,253995,921942,NULL,NULL,NULL,0,NULL,NULL 10715,401356,515042,Nice Answer Yearling Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Yearling Custodian Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 10716,176632,793931,Revival Editor Census Critic,NULL,NULL,0,NULL,NULL 10717,44267,1121296,NULL,NULL,NULL,0,NULL,NULL 10718,725121,1339298,NULL,NULL,NULL,0,NULL,NULL 10719,456225,1174149,Caucus Commentator,NULL,NULL,0,NULL,NULL 10720,1571934,287292,Yearling Famous Question Nice Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 10721,27387,256428,NULL,NULL,NULL,0,NULL,NULL 10722,302781,256428,NULL,NULL,NULL,0,NULL,NULL 10723,1046991,778505,NULL,NULL,NULL,0,NULL,NULL 10724,663026,3645,NULL,NULL,NULL,0,NULL,NULL 10725,522462,112966,Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 10726,53400,416291,NULL,NULL,NULL,0,NULL,NULL 10727,243568,573888,NULL,NULL,NULL,0,NULL,NULL 10728,359532,556770,Good Answer Yearling Yearling Documentation User javascript Yearling,NULL,NULL,0,NULL,NULL 10729,138728,293615,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 10730,29352,94818,NULL,NULL,NULL,0,NULL,NULL 10731,24263,477264,NULL,NULL,NULL,0,NULL,NULL 10732,401462,808599,NULL,NULL,NULL,0,NULL,NULL 10733,109263,493603,Caucus,NULL,NULL,0,NULL,NULL 10734,38302,1046190,NULL,NULL,NULL,0,NULL,NULL 10735,494016,573138,NULL,NULL,NULL,0,NULL,NULL 10736,451824,849314,NULL,NULL,NULL,0,NULL,NULL 10737,197585,1505090,Popular Question,NULL,NULL,0,NULL,NULL 10738,106406,1288761,NULL,NULL,NULL,0,NULL,NULL 10739,37715,29397,Necromancer Notable Question Famous Question Notable Question Yearling Necromancer Revival Necromancer Yearling Revival Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 10740,165263,1135258,NULL,NULL,NULL,0,NULL,NULL 10741,544668,280069,Notable Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10742,7318347,245909,NULL,NULL,NULL,0,NULL,NULL 10743,1130208,1117869,Notable Question Revival Critic Great Answer Caucus Yearling Civic Duty Excavator Caucus Custodian Popular Question Yearling Census Caucus,NULL,NULL,0,NULL,NULL 10744,1172125,715913,Popular Question,NULL,NULL,0,NULL,NULL 10745,1208200,773686,NULL,NULL,NULL,0,NULL,NULL 10746,4767420,773686,NULL,NULL,NULL,0,NULL,NULL 10747,29451,72319,Nice Answer Enlightened Yearling Custodian Custodian Good Answer Excavator swift Custodian Custodian Documentation User Yearling Guru Necromancer Nice Answer Enlightened ios Yearling,NULL,NULL,0,NULL,NULL 10748,467027,45804,NULL,NULL,NULL,0,NULL,NULL 10749,911941,752497,android Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 10750,3532,679485,Popular Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 10751,466968,722168,Supporter,NULL,NULL,0,NULL,NULL 10752,111901,1115194,NULL,NULL,NULL,0,NULL,NULL 10753,1531697,1048417,NULL,NULL,NULL,0,NULL,NULL 10754,64254,652286,Popular Question,NULL,NULL,0,NULL,NULL 10755,32772,914868,NULL,NULL,NULL,0,NULL,NULL 10756,199262,583258,NULL,NULL,NULL,0,NULL,NULL 10757,60077,1272706,Necromancer,NULL,NULL,0,NULL,NULL 10758,493315,50476,Notable Question Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Good Answer Nice Question Nice Answer Enlightened Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer parsing Great Answer Good Answer Great Answer Notable Question Nice Answer Nice Answer Good Answer Caucus Nice Answer Enlightened Good Answer antlr4 Good Answer Good Answer Constituent Famous Question Guru Nice Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Constituent Good Answer Nice Answer Enlightened Documentation User Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Great Answer Census Good Answer Guru Nice Answer Good Answer grammar Caucus Guru Constituent Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Guru Great Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Revival Guru Guru Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer,NULL,pThe notion that regex doesn support inverse matching is not entirely true You can mimic this behavior by using negative look arounds ppre code hede code prepThe regex above will match any string or line without line break strongnot strong containing the sub string hede As mentioned this is not something regex is good at or should do but still it emis em possible ppAnd if you need to match line break chars as well use the href http perldoc perl org perlre html Modifiers rel noreferrer DOT ALL modifier the trailing codes code in the following pattern ppre code hede code prepor use it inline ppre code hede code prep em where the code code are the regex delimiters not part of the pattern em ppIf the DOT ALL modifier is not available you can mimic the same behavior with the character class code code ppre code hede code preh2Explanation h2pA string is just list of coden code characters Before and after each character there an empty string So list of coden code characters will have coden code empty strings Consider the string code ABhedeCD code ppre code ┌──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┐S │e1│ │e2│ │e3│ │e4│ │e5│ │e6│ │e7│ │e8│ │e9│ └──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┘index code prepwhere the codee code are the empty strings The regex code hede code looks ahead to see if there no substring code hede code to be seen and if that is the case so something else is seen then the code code dot will match any character except line break Look arounds are also called emzero width assertions em because they don emconsume em any characters They only assert validate something ppSo in my example every empty string is first validated to see if there no code hede code up ahead before character is consumed by the code code dot The regex code hede code will do that only once so it is wrapped in group and repeated zero or more times code hede code Finally the start and end of input are anchored to make sure the entire input is consumed code hede code ppAs you can see the input code ABhedeCD code will fail because on codee3 code the regex code hede code fails there emis em code hede code up ahead sure but this is SO not MathOverflow or CS Stackexchange People asking question here are generally looking for practical answer Most libraries or tools like grep which the OP mentions with regex support all have features that mke them non regular in theoretical sense pThe notion that regex doesn support inverse matching is not entirely true You can mimic this behavior by using negative look arounds ppre code hede code prepThe regex above will match any string or line without line break strongnot strong containing the sub string hede As mentioned this is not something regex is good at or should do but still it emis em possible ppAnd if you need to match line break chars as well use the href http perldoc perl org perlre html Modifiers rel noreferrer DOT ALL modifier the trailing codes code in the following pattern ppre code hede code prepor use it inline ppre code hede code prep em where the code code are the regex delimiters not part of the pattern em ppIf the DOT ALL modifier is not available you can mimic the same behavior with the character class code code ppre code hede code preh2Explanation h2pA string is just list of coden code characters Before and after each character there an empty string So list of coden code characters will have coden code empty strings Consider the string code ABhedeCD code ppre code ┌──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┐S │e1│ │e2│ │e3│ │e4│ │e5│ │e6│ │e7│ │e8│ │e9│ └──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┘index code prepwhere the codee code are the empty strings The regex code hede code looks ahead to see if there no substring code hede code to be seen and if that is the case so something else is seen then the code code dot will match any character except line break Look arounds are also called emzero width assertions em because they don emconsume em any characters They only assert validate something ppSo in my example every empty string is first validated to see if there no code hede code up ahead before character is consumed by the code code dot The regex code hede code will do that only once so it is wrapped in group and repeated zero or more times code hede code Finally the start and end of input are anchored to make sure the entire input is consumed code hede code ppAs you can see the input code ABhedeCD code will fail because on codee3 code the regex code hede code fails there emis em code hede code up ahead Khullah You re missing the flag Adding it in your regex didn do the trick but creating new test with did work on Regexr https regexr com 3hj1b In short it bug in Regexr pThe notion that regex doesn support inverse matching is not entirely true You can mimic this behavior by using negative look arounds ppre code hede code prepThe regex above will match any string or line without line break strongnot strong containing the sub string hede As mentioned this is not something regex is good at or should do but still it emis em possible ppAnd if you need to match line break chars as well use the href http perldoc perl org perlre html Modifiers rel noreferrer DOT ALL modifier the trailing codes code in the following pattern ppre code hede code prepor use it inline ppre code hede code prep em where the code code are the regex delimiters not part of the pattern em ppIf the DOT ALL modifier is not available you can mimic the same behavior with the character class code code ppre code hede code preh2Explanation h2pA string is just list of coden code characters Before and after each character there an empty string So list of coden code characters will have coden code empty strings Consider the string code ABhedeCD code ppre code ┌──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┐S │e1│ │e2│ │e3│ │e4│ │e5│ │e6│ │e7│ │e8│ │e9│ └──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┘index code prepwhere the codee code are the empty strings The regex code hede code looks ahead to see if there no substring code hede code to be seen and if that is the case so something else is seen then the code code dot will match any character except line break Look arounds are also called emzero width assertions em because they don emconsume em any characters They only assert validate something ppSo in my example every empty string is first validated to see if there no code hede code up ahead before character is consumed by the code code dot The regex code hede code will do that only once so it is wrapped in group and repeated zero or more times code hede code Finally the start and end of input are anchored to make sure the entire input is consumed code hede code ppAs you can see the input code ABhedeCD code will fail because on codee3 code the regex code hede code fails there emis em code hede code up ahead true but don think disclaimer is needed This is SO not Math Overflow or CS SE and nearly all popular programming languages with regex support are PCRE is close to it pMany regex implementations will not allow you to match an arbitrary amount of nesting However Perl PHP and NET support recursive patterns ppA demo in Perl ppre class lang perl prettyprint override code usr bin perl wmy text outer center inner inner center ouer outer inner ouer outer ouer while text print code prepwhich will print ppre outer center inner inner center ouer outer inner ouer outer ouer prepOr the PHP equivalent ppre class lang php prettyprint override code text outer center inner inner center ouer outer inner ouer outer ouer preg match all text matches print matches code prepwhich produces ppreArray Array outer center inner inner center ouer outer inner ouer outer ouer prepAn explanation ppre start group match literal group any char other than and OR recursively match the entir pattern end group and repeat zero or more times match literal end group preh2EDIT h2pNote comment pblockquote pA better pattern might be code gt code from href http php net manual en regexp reference recursive php rel noreferrer PHP Recursive patterns For my data Bart pattern was crashing PHP when it encountered long string without nesting This pattern went through all my data without problem blockquote note that often post regex patterns as easy as possible so that it is easier to understand But you are right it could optimized quite bit by the atomic group and greedy matching of ll edit my answer with your comment pMany regex implementations will not allow you to match an arbitrary amount of nesting However Perl PHP and NET support recursive patterns ppA demo in Perl ppre class lang perl prettyprint override code usr bin perl wmy text outer center inner inner center ouer outer inner ouer outer ouer while text print code prepwhich will print ppre outer center inner inner center ouer outer inner ouer outer ouer prepOr the PHP equivalent ppre class lang php prettyprint override code text outer center inner inner center ouer outer inner ouer outer ouer preg match all text matches print matches code prepwhich produces ppreArray Array outer center inner inner center ouer outer inner ouer outer ouer prepAn explanation ppre start group match literal group any char other than and OR recursively match the entir pattern end group and repeat zero or more times match literal end group preh2EDIT h2pNote comment pblockquote pA better pattern might be code gt code from href http php net manual en regexp reference recursive php rel noreferrer PHP Recursive patterns For my data Bart pattern was crashing PHP when it encountered long string without nesting This pattern went through all my data without problem blockquote No problem You raise valid point on large input my original pattern does not performs well pTry ppre codepublic class Main public static void main String args String line foo bar qual baz blurb junk quux syzygy String tokens line split for String tokens System out println gt code prepOutput ppre code gt foo gt bar gt qual baz blurb gt junk quux syzygy code prepIn other words emsplit on the comma only if that comma has zero or an even number of quotes ahead of it em ppOr bit friendlier for the eyes ppre codepublic class Main public static void main String args String line foo bar qual baz blurb junk quux syzygy String otherThanQuote String quotedString String format otherThanQuote String regex String format enable comments ignore white spaces match comma start positive look ahead start non capturing group match otherThanQuote zero or more times match quotedString end group and repeat it zero or more times match otherThanQuote match the end of the string stop positive look ahead otherThanQuote quotedString otherThanQuote String tokens line split regex for String tokens System out println gt code prepwhich produces the same as the first example ph2EDIT h2pAs mentioned by in the comments pblockquote pI prefer using href http docs guava libraries googlecode com git javadoc com google common base Splitter html rel noreferrer Guava Splitter as it has saner defaults see discussion above about empty matches being trimmed by codeString split code so did ppre codeSplitter on Pattern compile code pre blockquote good point Added to the answer pIn many regex implementations the following rules apply ppMeta characters inside character class are pulli code code negation lili code code range lili code code end of the class lili code code escape char li ulpSo these should all be escaped There are some corner cases though pulli code code needs no escaping if placed at the very start or end of the class code abc code or code abc code In quite few regex implementations it also needs no escaping when placed directly after range code abc code or short hand character class code abc code This is what you observed lili code code needs no escaping when it emnot em at the start of the class code code means any char except codea code and code code matches either codea code or code code which equals code code lili code code needs no escaping if it the only character in the class code code matches the char code code li ul that is language restriction not specific to regex itself pNo ANTLR max is the same as Java href https docs oracle com javase docs api java lang Character html MAX VALUE rel nofollow Character MAX VALUE ppIf you look at part of href https github com antlr grammars v4 blob master antlr4 LexBasic g4 rel nofollow ANTLR4 lexer grammar you will see these rules ppre code Any kind of escaped character that we can embed within ANTLR literal strings fragment EscSeq Esc btnfr The standard escaped character set such as tab newline etc UnicodeEsc Unicode escape sequence Invalid escape character EOF Incomplete at EOF fragment UnicodeEsc HexDigit HexDigit HexDigit HexDigit fragment Esc code pre No problemo you re welcome pTry ppre code arr preg split str code prehrp strongEdit strong ppA short explanation ppThe code code is called positive href http www regular expressions info lookaround html rel noreferrer look ahead For example codea code will only match single code code if the next character the one to the right of it is code code Note that the code code is emnot em part of the match ppThe code code is just short hand for the href http www regular expressions info charclass html rel noreferrer character class code code In other words it matches single character other than white space character The code code after the code code makes the character class code code href http www regular expressions info possessive html rel noreferrer possessive ppFinally the code code denotes the end of the string ppTo recap the complete regex code code would read in plain English as follows pblockquote pmatch one or more white space characters only when looking ahead of those white space characters zero or more characters other than white space characters followed by the end of the string can be seen blockquote in the case there is more than space like this which will be split into instead of,1,NULL,How do specify unicode literal that requires more than four hex digits in Antlr unicode antlr antlr4 lexical analysis unicode literals pI want to define lexer rule for ranges between unicode characters that have code points that need more than four hexadecimal digits to identify To be concrete want to declare the following rule ppre codeID Continue uE0100 uE01EF code prepUnfortunately it doesn work This rule will match characters that are not in this range not certain to what exact behaviour this results in but it isn the one want ve tried also the following padding with leading zeros and using digits ppre codeID Continue U000E0100 U000E01EF code prepBut it seems to result in the same unwanted behaviour ppI am using Antlr4 and the IntelliJ plugin for it for testing ppDoes Antlr4 not support unicode literals above code uFFFF code pNo ANTLR max is the same as Java href https docs oracle com javase docs api java lang Character html MAX VALUE rel nofollow Character MAX VALUE ppIf you look at part of href https github com antlr grammars v4 blob master antlr4 LexBasic g4 rel nofollow ANTLR4 lexer grammar you will see these rules ppre code Any kind of escaped character that we can embed within ANTLR literal strings fragment EscSeq Esc btnfr The standard escaped character set such as tab newline etc UnicodeEsc Unicode escape sequence Invalid escape character EOF Incomplete at EOF fragment UnicodeEsc HexDigit HexDigit HexDigit HexDigit fragment Esc code pre 10759,238294,243611,Yearling Nice Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 10760,59227,841295,NULL,NULL,NULL,0,NULL,NULL 10761,120120,457488,Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Nice Answer Nice Answer Enlightened Announcer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 10762,512208,1327937,NULL,NULL,NULL,0,NULL,NULL 10763,322968,26130,Famous Question Famous Question Favorite Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Yearling Popular Question Excavator Popular Question Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Famous Question Famous Question Notable Question Popular Question Nice Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Electorate Nice Question Good Question Famous Question Notable Question Notable Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 10764,97274,1234666,Student,NULL,NULL,0,NULL,NULL 10765,163884,1501939,NULL,NULL,NULL,0,NULL,NULL 10766,162354,1074185,Populist Popular Question Good Answer Popular Question Yearling Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 10767,429442,918481,Student,NULL,NULL,0,NULL,NULL 10768,732657,350778,Supporter Revival,NULL,NULL,0,NULL,NULL 10769,164082,350778,Supporter Revival,NULL,NULL,0,NULL,NULL 10770,268231,245869,Yearling Popular Question Excavator Custodian Popular Question Yearling Famous Question Good Answer Nice Answer Enlightened Popular Question Nice Question Yearling Famous Question c++,NULL,pJust for the sake of providing yet another way to emalmost em do what you want wrote this some time ago to avoid having code first code and code second code all over my code ppre codeauto pair2params auto amp amp return auto amp amp first second code prepNow you can write something like assuming range based codefor each code ppre codeint main auto values map lt int string gt hello world for each values pair2params int key const string amp value cout lt lt key lt lt lt lt value lt lt code prepRunning example href http ideone com Bs9Ctm rel nofollow http ideone com Bs9Ctm Note as implemented it requires 14 compiler,1,NULL,Is it possible in to do std map for element container iteration with named variables eg key and value instead of first and second 11 dictionary iteration readability pI wasn sure what to search for found href https stackoverflow com questions 1500064 renaming first and second of map iterator Renaming first and second of map iterator but it not quite what want to do ppHere what like to do see below for nonsense code Is something close to this possible Otherwise will just have to go with the option of adapting the iterator as the first line inside the loop suppose ppre code what want to do std map lt int std string gt my map populate my mapfor auto key auto amp value my map do something with integer key and string value code prepC 11 is fine but rather avoid boost if possible ppThe closest ve gotten is ppre code TODO can this be templated struct KeyVal int amp id std string amp info template lt typename gt KeyVal amp id first info second for KeyVal kv my map std cout lt lt kv info code prepBut that means writing an adapter class for each map ppre code slightly joke answer what could possibly go wrong define key first define value second code pre pJust for the sake of providing yet another way to emalmost em do what you want wrote this some time ago to avoid having code first code and code second code all over my code ppre codeauto pair2params auto amp amp return auto amp amp first second code prepNow you can write something like assuming range based codefor each code ppre codeint main auto values map lt int string gt hello world for each values pair2params int key const string amp value cout lt lt key lt lt lt lt value lt lt code prepRunning example href http ideone com Bs9Ctm rel nofollow http ideone com Bs9Ctm 10771,265709,442627,Yearling Nice Answer Revival Revival Necromancer Yearling Necromancer Peer Pressure Necromancer Good Answer,NULL,NULL,0,NULL,NULL 10772,1206799,680591,NULL,NULL,NULL,0,NULL,NULL 10773,63041,370455,NULL,NULL,NULL,0,NULL,NULL 10774,291369,548224,Famous Question Yearling Curious,NULL,NULL,0,NULL,NULL 10775,507,227536,Good Answer Nice Answer Enlightened Notable Question Revival Necromancer Nice Question Guru Nice Answer Good Answer Nice Answer Enlightened Caucus Yearling Nice Answer Notable Question Guru Announcer Caucus Constituent Custodian Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Popular Question Good Answer,NULL,NULL,0,NULL,NULL 10776,848736,30829,NULL,NULL,NULL,0,NULL,NULL 10777,9285645,30829,NULL,NULL,NULL,0,NULL,NULL 10778,1068277,339715,NULL,NULL,NULL,0,NULL,NULL 10779,1241720,827344,NULL,NULL,NULL,0,NULL,NULL 10780,5422256,1427447,Teacher,NULL,NULL,0,NULL,NULL 10781,290515,678950,Excavator Notable Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 10782,326907,389899,Yearling Popular Question Notable Question Good Question Popular Question Nice Question Notable Question Nice Question Yearling Good Question Famous Question Popular Question Favorite Question Notable Question Yearling Announcer Documentation User Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10783,647865,745245,NULL,NULL,NULL,0,NULL,NULL 10784,1672837,359447,NULL,NULL,NULL,0,NULL,NULL 10785,18645,96368,NULL,NULL,NULL,0,NULL,NULL 10786,18385,757123,NULL,NULL,NULL,0,NULL,NULL 10787,167290,797411,Self-Learner,NULL,NULL,0,NULL,NULL 10788,435131,653406,Notable Question Notable Question Yearling Popular Question Popular Question Nice Question Yearling Notable Question Documentation User Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 10789,1505136,491797,Good Question Yearling,NULL,NULL,0,NULL,NULL 10790,856060,775388,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10791,1178047,1128485,NULL,NULL,NULL,0,NULL,NULL 10792,1857422,899315,NULL,NULL,NULL,0,NULL,NULL 10793,1331602,1061257,Popular Question Custodian Custodian Informed Custodian Autobiographer Citizen Patrol Suffrage Vox Populi Custodian Custodian Excavator Explainer Popular Question Nice Answer Enlightened Yearling Nice Question Nice Question php Notable Question Good Answer Guru Popular Question Famous Question Popular Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 10794,297284,1292745,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 10795,140815,460232,NULL,NULL,NULL,0,NULL,NULL 10796,3504934,1372753,NULL,NULL,NULL,0,NULL,NULL 10797,337974,1073287,Nice Question Yearling Popular Question Famous Question Self-Learner Good Answer,NULL,NULL,0,NULL,NULL 10798,488329,332733,c++ Yearling Caucus Constituent Yearling Announcer Caucus Constituent Good Answer Announcer Caucus Constituent Announcer Announcer Yearling Announcer Guru,NULL,NULL,0,NULL,NULL 10799,637862,792313,Notable Question Popular Question Notable Question Popular Question Nice Answer Yearling Popular Question Notable Question Nice Question Famous Question Good Answer Yearling Notable Question Notable Question Announcer Popular Question Popular Question Yearling Nice Answer Inquisitive Notable Question Nice Answer Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question Yearling Good Answer Nice Question,NULL,NULL,0,NULL,NULL 10800,260589,806545,Student,NULL,NULL,0,NULL,NULL 10801,141358,1034597,NULL,NULL,NULL,0,NULL,NULL 10802,2030856,535556,Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Good Question Popular Question Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Famous Question Notable Question Good Question Nice Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Famous Question Nice Question Popular Question Notable Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Nice Question Famous Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Notable Question Notable Question Nice Answer Famous Question Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 10803,68695,498176,Nice Answer Yearling Nice Answer Enlightened Necromancer Revival Necromancer Nice Answer Yearling Popular Question Good Answer Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 10804,77181,1034493,NULL,NULL,NULL,0,NULL,NULL 10805,66063,1378927,Popular Question Popular Question Revival Good Answer Yearling Civic Duty Caucus Constituent Necromancer Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Revival Revival Census Necromancer Popular Question Popular Question Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10806,200774,1056852,Good Question Notable Question Notable Question Popular Question Caucus Yearling Announcer Yearling Notable Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 10807,11142,219146,NULL,NULL,NULL,0,NULL,NULL 10808,1254610,780926,NULL,NULL,NULL,0,NULL,NULL 10809,792663,1073006,Famous Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Yearling Popular Question Revival Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Announcer Nice Question Famous Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 10810,392205,113999,Good Answer Excavator Nice Question Yearling Famous Question Good Answer Necromancer Notable Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 10811,298637,776797,Custodian Custodian Organizer Necromancer Nice Answer Yearling Excavator Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 10812,3369368,469472,NULL,NULL,NULL,0,NULL,NULL 10813,703185,109309,Yearling Nice Question Good Answer Famous Question Census Popular Question Yearling Custodian Revival Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 10814,50891,1551095,NULL,NULL,NULL,0,NULL,NULL 10815,128490,101951,Popular Question Good Question,NULL,NULL,0,NULL,NULL 10816,212391,798707,NULL,NULL,NULL,0,NULL,NULL 10817,532572,400306,Excavator Yearling Popular Question Notable Question Student,NULL,pkudos ppWhat about using index ppe code input eq input index this code Answer should accommodate Sentient warning above but should also include visible because otherwise the list will include hidden type input fields,0,NULL,NULL 10818,1444388,838110,Popular Question,NULL,NULL,0,NULL,NULL 10819,25196,202027,Popular Question,NULL,NULL,0,NULL,NULL 10820,3277032,202027,Popular Question,NULL,NULL,0,NULL,NULL 10821,359181,1074655,Yearling,NULL,NULL,0,NULL,NULL 10822,206711,668807,Yearling Good Answer Good Answer Famous Question Yearling Good Answer Nice Answer Announcer Guru Revival Good Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 10823,8039552,668807,Yearling Good Answer Good Answer Famous Question Yearling Good Answer Nice Answer Announcer Guru Revival Good Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 10824,34104,781471,NULL,NULL,NULL,0,NULL,NULL 10825,3172291,169164,Popular Question Nice Question Favorite Question Good Question Custodian Yearling Popular Question Popular Question Custodian Notable Question Yearling Benefactor Enthusiast Informed Famous Question Yearling,NULL,NULL,0,NULL,NULL 10826,585950,169164,Popular Question Nice Question Favorite Question Good Question Custodian Yearling Popular Question Popular Question Custodian Notable Question Yearling Benefactor Enthusiast Informed Famous Question Yearling,NULL,NULL,0,NULL,NULL 10827,2673856,169164,Popular Question Nice Question Favorite Question Good Question Custodian Yearling Popular Question Popular Question Custodian Notable Question Yearling Benefactor Enthusiast Informed Famous Question Yearling,NULL,NULL,0,NULL,NULL 10828,592269,891812,Popular Question Critic Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10829,34989,1048369,Popular Question Nice Question Nice Answer Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10830,2042142,1536309,Popular Question Necromancer Notable Question Necromancer Good Answer Nice Answer Necromancer Necromancer Good Answer Yearling Good Answer Popular Question Excavator Caucus Guru Revival Popular Question ruby-on-rails Necromancer Nice Answer Good Answer Nice Answer Revival Notable Question ruby Explainer Great Answer Nice Answer Enlightened Revival Announcer Announcer Nice Answer Announcer Announcer Revival Caucus Yearling Cleanup Necromancer Popular Question Announcer Announcer Nice Answer Famous Question Inquisitive javascript Custodian Nice Answer Nice Question Good Answer Necromancer Notable Question Necromancer Necromancer Announcer Necromancer Good Answer Caucus Notable Question Necromancer Necromancer Announcer Necromancer Good Question Necromancer Announcer reactjs Yearling Guru Great Answer Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10831,538522,1536309,Popular Question Necromancer Notable Question Necromancer Good Answer Nice Answer Necromancer Necromancer Good Answer Yearling Good Answer Popular Question Excavator Caucus Guru Revival Popular Question ruby-on-rails Necromancer Nice Answer Good Answer Nice Answer Revival Notable Question ruby Explainer Great Answer Nice Answer Enlightened Revival Announcer Announcer Nice Answer Announcer Announcer Revival Caucus Yearling Cleanup Necromancer Popular Question Announcer Announcer Nice Answer Famous Question Inquisitive javascript Custodian Nice Answer Nice Question Good Answer Necromancer Notable Question Necromancer Necromancer Announcer Necromancer Good Answer Caucus Notable Question Necromancer Necromancer Announcer Necromancer Good Question Necromancer Announcer reactjs Yearling Guru Great Answer Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10832,238937,80731,Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Good Answer Yearling Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 10833,632845,14704,Nice Answer,NULL,NULL,0,NULL,NULL 10834,124679,601094,Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 10835,454120,383861,Nice Answer Nice Answer Nice Answer Enlightened Necromancer eclipselink Nice Answer Enlightened Necromancer Revival Announcer Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer jersey Nice Answer Enlightened Good Answer Enlightened Nice Answer Enlightened Good Answer Enlightened Nice Answer xpath Nice Answer Announcer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer spring Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened json Nice Answer Great Answer Nice Answer Enlightened Guru Nice Answer sax Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Announcer jaxb2 Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Good Answer Announcer Good Answer Announcer Announcer Announcer Great Answer Announcer Announcer Nice Answer Guru Announcer Nice Answer Announcer Announcer Announcer Good Answer Announcer Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Great Answer Announcer Nice Answer Announcer Nice Answer Enlightened jax-rs Good Answer Nice Answer Guru Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened cxf validation Good Answer Good Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer dom Good Answer Good Answer Good Answer Announcer Guru Announcer namespaces Good Answer Guru Guru Announcer Nice Answer Good Answer Nice Answer Enlightened Announcer Announcer Nice Answer Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 10836,30149,417268,NULL,NULL,NULL,0,NULL,NULL 10837,891251,260307,Popular Question,NULL,NULL,0,NULL,NULL 10838,375697,436803,NULL,NULL,NULL,0,NULL,NULL 10839,395435,317000,NULL,NULL,NULL,0,NULL,NULL 10840,1391185,680951,NULL,NULL,NULL,0,NULL,NULL 10841,6718,945226,Explainer Nice Answer Notable Question Nice Answer Custodian Yearling Caucus Constituent Enlightened Promoter Benefactor Caucus Constituent Yearling Quorum Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 10842,28106,553989,NULL,NULL,NULL,0,NULL,NULL 10843,88100,550494,NULL,NULL,NULL,0,NULL,NULL 10844,251695,368682,Nice Answer Popular Question Yearling Popular Question Good Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 10845,6981124,67268,Popular Question Nice Question Yearling Popular Question Nice Answer Good Answer Popular Question Necromancer Favorite Question Great Question Nice Answer Yearling Notable Question Famous Question Notable Question Famous Question Notable Question Necromancer Notable Question Famous Question Popular Question Famous Question Yearling Favorite Question Popular Question Popular Question Necromancer Nice Answer Popular Question Revival Nice Answer,NULL,NULL,0,NULL,NULL 10846,64466,67268,Popular Question Nice Question Yearling Popular Question Nice Answer Good Answer Popular Question Necromancer Favorite Question Great Question Nice Answer Yearling Notable Question Famous Question Notable Question Famous Question Notable Question Necromancer Notable Question Famous Question Popular Question Famous Question Yearling Favorite Question Popular Question Popular Question Necromancer Nice Answer Popular Question Revival Nice Answer,NULL,NULL,0,NULL,NULL 10847,220215,1307340,NULL,NULL,NULL,0,NULL,NULL 10848,12206,1013173,Yearling Self-Learner Yearling Nice Question Famous Question Yearling Nice Question Excavator Documentation User Civic Duty Announcer Good Answer Yearling Good Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 10849,167497,794388,NULL,NULL,NULL,0,NULL,NULL 10850,2201781,351187,NULL,NULL,NULL,0,NULL,NULL 10851,78639,1056624,NULL,NULL,NULL,0,NULL,NULL 10852,78640,1056624,NULL,NULL,NULL,0,NULL,NULL 10853,962265,659746,Tumbleweed,NULL,NULL,0,NULL,NULL 10854,315322,480858,NULL,NULL,NULL,0,NULL,NULL 10855,176516,1510246,NULL,NULL,NULL,0,NULL,NULL 10856,192687,854152,NULL,NULL,NULL,0,NULL,NULL 10857,1098880,266493,NULL,NULL,NULL,0,NULL,NULL 10858,136421,950348,NULL,NULL,NULL,0,NULL,NULL 10859,35155,135322,Popular Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10860,170508,1476167,NULL,NULL,NULL,0,NULL,NULL 10861,15880,32384,Nice Answer Nice Answer Enlightened Nice Answer Great Question Famous Question Yearling Famous Question Nice Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 10862,8469006,32384,Nice Answer Nice Answer Enlightened Nice Answer Great Question Famous Question Yearling Famous Question Nice Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 10863,153663,1048120,Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10864,27330,398261,Famous Question Critic,NULL,NULL,0,NULL,NULL 10865,180199,1083780,NULL,NULL,NULL,0,NULL,NULL 10866,96694,1013106,Teacher Revival,NULL,NULL,0,NULL,NULL 10867,4165,177284,Guru Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 10868,50770,926361,NULL,NULL,NULL,0,NULL,NULL 10869,1373327,1278619,Necromancer Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10870,143680,1278619,Necromancer Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 10871,2321699,1019258,Student Supporter,NULL,NULL,0,NULL,NULL 10872,55985,53051,NULL,NULL,NULL,0,NULL,NULL 10873,774929,460110,NULL,NULL,NULL,0,NULL,NULL 10874,29125,639934,NULL,NULL,NULL,0,NULL,NULL 10875,2328430,931197,NULL,NULL,NULL,0,NULL,NULL 10876,321791,652588,Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10877,1504118,313861,NULL,NULL,NULL,0,NULL,NULL 10878,183239,564413,Critic Necromancer Nice Answer Yearling Informed,NULL,NULL,0,NULL,NULL 10879,33840,239927,NULL,NULL,,0,, 10880,156372,481176,Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 10881,339836,615247,NULL,NULL,NULL,0,NULL,NULL 10882,231157,1243002,NULL,NULL,NULL,0,NULL,NULL 10883,4650,140038,NULL,NULL,NULL,0,NULL,NULL 10884,312397,1277411,NULL,NULL,NULL,0,NULL,NULL 10885,382299,848998,NULL,NULL,NULL,0,NULL,NULL 10886,129492,1378212,Informed,NULL,NULL,0,NULL,NULL 10887,200214,743614,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10888,159004,1390647,Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10889,13243,1224727,NULL,NULL,NULL,0,NULL,NULL 10890,167957,1224727,NULL,NULL,NULL,0,NULL,NULL 10891,36189,1316541,NULL,NULL,NULL,0,NULL,NULL 10892,16575,926709,NULL,NULL,NULL,0,NULL,NULL 10893,27400,303654,Teacher,NULL,NULL,0,NULL,NULL 10894,590011,269080,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 10895,564691,501917,NULL,NULL,NULL,0,NULL,NULL 10896,10566338,743022,NULL,NULL,NULL,0,NULL,NULL 10897,29062,370627,Famous Question Popular Question Notable Question Notable Question Nice Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 10898,1754231,1043118,Census,NULL,NULL,0,NULL,NULL 10899,1515230,197192,Famous Question,NULL,NULL,0,NULL,NULL 10900,6403252,313453,Notable Question,NULL,NULL,0,NULL,NULL 10901,379826,313453,Notable Question,NULL,NULL,0,NULL,NULL 10902,1031574,82129,NULL,NULL,NULL,0,NULL,NULL 10903,27343,2702,NULL,NULL,NULL,0,NULL,NULL 10904,823260,417166,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling Good Answer Scholar,NULL,NULL,0,NULL,NULL 10905,89907,641486,NULL,NULL,NULL,0,NULL,NULL 10906,28157,458436,Enthusiast Critic Citizen Patrol Census Popular Question,NULL,NULL,0,NULL,NULL 10907,1194309,201644,Good Answer Excavator Enthusiast Nice Answer Famous Question Custodian Famous Question Good Answer Good Answer Popular Question Nice Question Popular Question Popular Question Yearling Caucus Notable Question Nice Answer Enlightened Organizer Good Answer Guru Popular Question Notable Question Nice Question Famous Question Popular Question Notable Question Good Question Good Question Yearling Popular Question Caucus Constituent Notable Question Popular Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10908,7485096,1052852,Critic Commentator Informed Citizen Patrol Yearling Necromancer Caucus Necromancer,NULL,NULL,0,NULL,NULL 10909,308092,1052852,Critic Commentator Informed Citizen Patrol Yearling Necromancer Caucus Necromancer,NULL,NULL,0,NULL,NULL 10910,1508592,1219048,NULL,NULL,NULL,0,NULL,NULL 10911,66639,936540,Revival,NULL,NULL,0,NULL,NULL 10912,280228,107906,NULL,NULL,NULL,0,NULL,NULL 10913,2194624,1390656,NULL,NULL,NULL,0,NULL,NULL 10914,241266,454589,NULL,NULL,NULL,0,NULL,NULL 10915,415908,857618,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 10916,1262676,1047894,NULL,NULL,NULL,0,NULL,NULL 10917,268459,1469744,NULL,NULL,NULL,0,NULL,NULL 10918,163313,345030,Supporter,NULL,NULL,0,NULL,NULL 10919,254519,1019364,Notable Question Yearling Popular Question Informed Popular Question,NULL,NULL,0,NULL,NULL 10920,263313,828844,Popular Question,NULL,NULL,0,NULL,NULL 10921,6074,142926,Notable Question,NULL,NULL,0,NULL,NULL 10922,103111,722729,NULL,NULL,NULL,0,NULL,NULL 10923,23115,264797,Yearling Yearling Good Answer Nice Question Announcer Yearling,NULL,NULL,0,NULL,NULL 10924,507291,1059979,Yearling Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 10925,429341,155447,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10926,172224,620983,NULL,NULL,NULL,0,NULL,NULL 10927,97096,212422,NULL,NULL,NULL,0,NULL,NULL 10928,878588,933424,Notable Question Yearling,NULL,NULL,0,NULL,NULL 10929,148853,1102705,Necromancer Excavator Nice Answer Yearling Caucus Commentator Critic Caucus Constituent Revival Enthusiast Yearling Good Answer,NULL,NULL,0,NULL,NULL 10930,283276,811153,Popular Question Commentator,NULL,NULL,0,NULL,NULL 10931,147992,1557339,Notable Question,NULL,NULL,0,NULL,NULL 10932,425372,783424,Caucus,NULL,NULL,0,NULL,NULL 10933,23203,548568,Great Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Popular Question Popular Question Great Answer Popular Question Famous Question Good Question Caucus Famous Question Nice Question Yearling Guru Good Answer Announcer Good Question Necromancer Nice Answer Yearling javascript Popular Question Nice Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 10934,69433,1518276,NULL,NULL,NULL,0,NULL,NULL 10935,187186,313227,NULL,NULL,NULL,0,NULL,NULL 10936,90971,1266731,Supporter,NULL,NULL,0,NULL,NULL 10937,46864,38045,Yearling Great Question Custodian Favorite Question,NULL,NULL,0,NULL,NULL 10938,312657,1474530,NULL,NULL,NULL,0,NULL,NULL 10939,1322580,1319714,Tumbleweed,NULL,NULL,0,NULL,NULL 10940,3186092,669673,NULL,NULL,NULL,0,NULL,NULL 10941,513581,669673,NULL,NULL,NULL,0,NULL,NULL 10942,244256,711667,Good Answer Yearling,NULL,NULL,0,NULL,NULL 10943,980115,837267,NULL,NULL,NULL,0,NULL,NULL 10944,587,122350,Nice Answer,NULL,NULL,0,NULL,NULL 10945,286272,461441,Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 10946,146967,497647,Nice Answer Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 10947,20644,786673,NULL,NULL,,0,, 10948,556607,1349601,Yearling Citizen Patrol Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 10949,321568,276055,NULL,NULL,NULL,0,NULL,NULL 10950,918840,287857,Famous Question Yearling Custodian Informed Autobiographer Famous Question Famous Question Popular Question Notable Question Yearling Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10951,1507056,1048715,NULL,NULL,NULL,0,NULL,NULL 10952,110990,761533,Curious,NULL,NULL,0,NULL,NULL 10953,231046,1387998,Nice Answer,NULL,NULL,0,NULL,NULL 10954,130924,1238024,NULL,NULL,NULL,0,NULL,NULL 10955,91443,184373,Popular Question Notable Question Popular Question objective-c Custodian Nice Question Yearling Custodian Yearling Famous Question Census Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 10956,427907,933058,NULL,NULL,NULL,0,NULL,NULL 10957,30251,541358,Curious Notable Question Famous Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 10958,155236,20626,Guru Yearling Notable Question Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 10959,29341,1280696,NULL,NULL,NULL,0,NULL,NULL 10960,1301,365712,Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 10961,323015,1029830,NULL,NULL,NULL,0,NULL,NULL 10962,404879,477834,NULL,NULL,NULL,0,NULL,NULL 10963,781608,1026360,Teacher,NULL,NULL,0,NULL,NULL 10964,81812,1545143,NULL,NULL,NULL,0,NULL,NULL 10965,381959,652484,Custodian Yearling Great Answer Famous Question Caucus Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 10966,662042,934540,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 10967,3535342,934540,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 10968,31957,174057,NULL,NULL,NULL,0,NULL,NULL 10969,1897,804732,NULL,NULL,NULL,0,NULL,NULL 10970,257430,1190354,Revival,NULL,NULL,0,NULL,NULL 10971,448115,910673,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10972,694626,910673,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 10973,112222,1184419,NULL,NULL,NULL,0,NULL,NULL 10974,264109,649134,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 10975,313363,794539,Yearling Custodian Revival Yearling Revival Great Answer python Custodian Custodian Necromancer Enthusiast Yearling Revival Caucus Constituent Documentation User Yearling Nice Answer,NULL,NULL,0,NULL,NULL 10976,277048,759163,Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 10977,65411,451288,NULL,NULL,NULL,0,NULL,NULL 10978,143797,89480,Good Answer Nice Question Yearling Civic Duty Necromancer Famous Question Famous Question Nice Question Famous Question Famous Question Yearling Popular Question Revival Popular Question Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 10979,352549,545821,Nice Question Tumbleweed,NULL,NULL,0,NULL,NULL 10980,260614,710783,Popular Question Caucus,NULL,NULL,0,NULL,NULL 10981,34694,345207,Popular Question,NULL,NULL,0,NULL,NULL 10982,237164,60335,Yearling c Nice Answer Enlightened Nice Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 10983,1222611,468508,Yearling Notable Question Nice Question Great Answer Famous Question Nice Question Famous Question Yearling Favorite Question Notable Question Nice Question Popular Question Famous Question Nice Answer Great Question Announcer Yearling Good Answer Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 10984,212527,853744,Enthusiast Yearling,NULL,NULL,0,NULL,NULL 10985,254587,595121,NULL,NULL,NULL,0,NULL,NULL 10986,171512,48098,Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 10987,153822,1513517,Nice Answer Enlightened Caucus Yearling Caucus Caucus Good Answer,NULL,NULL,0,NULL,NULL 10988,198711,274638,NULL,NULL,NULL,0,NULL,NULL 10989,7970830,274638,NULL,NULL,NULL,0,NULL,NULL 10990,1792763,929604,NULL,NULL,NULL,0,NULL,NULL 10991,7834966,963330,Informed,NULL,NULL,0,NULL,NULL 10992,906726,963330,Informed,NULL,NULL,0,NULL,NULL 10993,582575,595205,Custodian Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 10994,32724,283952,Popular Question Yearling Self-Learner Good Question Good Answer Yearling Great Question Favorite Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 10995,4490571,283952,Popular Question Yearling Self-Learner Good Question Good Answer Yearling Great Question Favorite Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 10996,1031845,453925,Notable Question Yearling Popular Question Popular Question Nice Question Good Question Good Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Famous Question,NULL,Integer to float conversions with IEEE FP ieee 754 pWhat are the guarantees regarding conversions from integral to floating point types in implementation supporting IEEE 754 FP arithmetic ppSpecifically is it always well defined behaviour to convert any integral value to any floating point type possibly resulting in value of code inf code Or are there situations in which this would result in undefined behaviour pp Note am not asking about exact conversion just if performing the conversion is always legal from the point of view of the language standard right but it also has notion of floating point optionally conforming to iec559 in std numeric limits so that must buy us something in terms of guarantees Integer to float conversions with IEEE FP ieee 754 pWhat are the guarantees regarding conversions from integral to floating point types in implementation supporting IEEE 754 FP arithmetic ppSpecifically is it always well defined behaviour to convert any integral value to any floating point type possibly resulting in value of code inf code Or are there situations in which this would result in undefined behaviour pp Note am not asking about exact conversion just if performing the conversion is always legal from the point of view of the language standard In my copy of the standard it says regarding the iec 559 flag True if and only if the type adheres to IEC 559 standard Are you saying that an implementation that sets this to true might not be following iec 559,1,Integer to float conversions with IEEE FP ieee 754 pWhat are the guarantees regarding conversions from integral to floating point types in implementation supporting IEEE 754 FP arithmetic ppSpecifically is it always well defined behaviour to convert any integral value to any floating point type possibly resulting in value of code inf code Or are there situations in which this would result in undefined behaviour pp Note am not asking about exact conversion just if performing the conversion is always legal from the point of view of the language standard,NULL 10997,1568322,1330033,Curious Teacher,NULL,NULL,0,NULL,NULL 10998,1365108,24875,Custodian Electorate Pundit Cleanup Nice Question Nice Question Yearling Caucus Constituent Census Caucus Constituent Yearling Popular Question Popular Question Caucus Constituent Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 10999,335195,343761,Yearling Nice Question Custodian Yearling Necromancer Documentation User,NULL,NULL,0,NULL,NULL 11000,116907,389050,Popular Question,NULL,NULL,0,NULL,NULL 11001,811089,487899,NULL,NULL,NULL,0,NULL,NULL 11002,276811,707206,NULL,NULL,NULL,0,NULL,NULL 11003,295184,1493379,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 11004,1303575,422390,Popular Question Popular Question Custodian Notable Question Notable Question Nice Question Yearling Famous Question Popular Question Notable Question Notable Question Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 11005,67943,524733,Nice Answer Caucus Nice Answer Enlightened Yearling Student Announcer Scholar Nice Answer Documentation User Yearling Caucus Tag Editor Organizer Announcer javascript Enlightened Popular Question Nice Answer Yearling,NULL,h1WebRTC running on localhost HTTPS h1pYou are looking to run your WebRTC demo locally on your laptop using localhost You must use HTTPS Here is GIF video of your demo working using locally secured webserver em included em strongWe cleaned up your video DOM jQuery code and also corrected few errors strong You can find the HTML source for href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists pp href https stack imgur com s3Z55 gif rel nofollow noreferrer img src https stack imgur com s3Z55 gif alt WebRTC running on HTTPS localhost 127 ph3Run WebRTC Demo Locally h3pThese terminal commands will download the html file to your local box create PEM key for TLS crypto and run local HTTPS server using Python ppre codecurl https gist githubusercontent com stephenlb edd4b0c218a72a34349baa004a80fd7a raw 1b28c5e39db0d5eaabc10006cede0a8825b9afd4 webrtc demo html gt webrtc demo htmlpython lt curl https gist githubusercontent com stephenlb 2e19d98039469b9d0134 raw 5afefc79647e0786097ca3406dbf93c5de919aed https py code prepThen open and accept the local HTTPS connection agree to unknown root CA warning ppre codeopen https 4443 webrtc demo html code prepRun the above command to test the demo ph3Reference Links for WebRTC h3ulli href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists lili href https gist github com stephenlb 2e19d98039469b9d0134 rel nofollow noreferrer Python HTTPS localhost Server on 127 lili href https github com stephenlb webrtc sdk webrtc simple calling api mobile rel nofollow noreferrer WebRTC SDK Documentation li ul updated local running demo h1WebRTC running on localhost HTTPS h1pYou are looking to run your WebRTC demo locally on your laptop using localhost You must use HTTPS Here is GIF video of your demo working using locally secured webserver em included em strongWe cleaned up your video DOM jQuery code and also corrected few errors strong You can find the HTML source for href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists pp href https stack imgur com s3Z55 gif rel nofollow noreferrer img src https stack imgur com s3Z55 gif alt WebRTC running on HTTPS localhost 127 ph3Run WebRTC Demo Locally h3pThese terminal commands will download the html file to your local box create PEM key for TLS crypto and run local HTTPS server using Python ppre codecurl https gist githubusercontent com stephenlb edd4b0c218a72a34349baa004a80fd7a raw 1b28c5e39db0d5eaabc10006cede0a8825b9afd4 webrtc demo html gt webrtc demo htmlpython lt curl https gist githubusercontent com stephenlb 2e19d98039469b9d0134 raw 5afefc79647e0786097ca3406dbf93c5de919aed https py code prepThen open and accept the local HTTPS connection agree to unknown root CA warning ppre codeopen https 4443 webrtc demo html code prepRun the above command to test the demo ph3Reference Links for WebRTC h3ulli href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists lili href https gist github com stephenlb 2e19d98039469b9d0134 rel nofollow noreferrer Python HTTPS localhost Server on 127 lili href https github com stephenlb webrtc sdk webrtc simple calling api mobile rel nofollow noreferrer WebRTC SDK Documentation li ul https github com GleasonK android webrtc tutorial tree gh pages has the WEB version,1,NULL,Cannot get PubNub WebRTC tutorial to work javascript html webrtc pubnub pI trying to build my first WebRTC app by following PubNub tutorial href https www pubnub com blog 2015 08 25 webrtc video chat app in 20 lines of javascript rel nofollow noreferrer https www pubnub com blog 2015 08 25 webrtc video chat app in 20 lines of javascript however it has failed to work at all fairly new to programming so any help would be greatly appreciated Below is my code Please note that have created an account and have my own pub and sub which have inserted appropriately ppre code lt DOCTYPE html gt lt html gt lt div id vid box gt lt div gt lt form name loginForm id login action onsubmit return login this gt lt input type text name username id username placeholder Pick username gt lt input type submit name login submit value Log In gt lt form gt lt form name callForm id call action onsubmit return makeCall this gt lt input type text name number placeholder Enter user to dial gt lt input type submit value Call gt lt form gt lt script src https ajax googleapis com ajax libs jquery jquery min js gt lt script gt lt script src https cdn pubnub com pubnub min js gt lt script gt lt script src js webrtc js gt lt script gt lt script type text javascript gt var video out document getElementById vid box function login form var phone window phone PHONE number form username value Anonymous listen on username line else Anonymous publish key MY OWN PUB KEY subscribe key MY OWN SUB KEY phone ready function form username style background 55ff5b phone receive function session session connected function session video out appendChild session video session ended function session video out innerHTML return false So the form does not submit function makeCall form if window phone alert Login First else phone dial form number value return false lt script gt lt html gt code pre h1WebRTC running on localhost HTTPS h1pYou are looking to run your WebRTC demo locally on your laptop using localhost You must use HTTPS Here is GIF video of your demo working using locally secured webserver em included em strongWe cleaned up your video DOM jQuery code and also corrected few errors strong You can find the HTML source for href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists pp href https stack imgur com s3Z55 gif rel nofollow noreferrer img src https stack imgur com s3Z55 gif alt WebRTC running on HTTPS localhost 127 ph3Run WebRTC Demo Locally h3pThese terminal commands will download the html file to your local box create PEM key for TLS crypto and run local HTTPS server using Python ppre codecurl https gist githubusercontent com stephenlb edd4b0c218a72a34349baa004a80fd7a raw 1b28c5e39db0d5eaabc10006cede0a8825b9afd4 webrtc demo html gt webrtc demo htmlpython lt curl https gist githubusercontent com stephenlb 2e19d98039469b9d0134 raw 5afefc79647e0786097ca3406dbf93c5de919aed https py code prepThen open and accept the local HTTPS connection agree to unknown root CA warning ppre codeopen https 4443 webrtc demo html code prepRun the above command to test the demo ph3Reference Links for WebRTC h3ulli href https gist github com stephenlb edd4b0c218a72a34349baa004a80fd7a rel nofollow noreferrer WebRTC Source Code on GitHub Gists lili href https gist github com stephenlb 2e19d98039469b9d0134 rel nofollow noreferrer Python HTTPS localhost Server on 127 lili href https github com stephenlb webrtc sdk webrtc simple calling api mobile rel nofollow noreferrer WebRTC SDK Documentation li ul 11006,26382,580866,Nice Question Famous Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 11007,691728,1429907,NULL,NULL,,0,, 11008,535758,37628,NULL,NULL,NULL,0,NULL,NULL 11009,499481,261375,Famous Question Inquisitive Famous Question Notable Question Famous Question Good Question Yearling Famous Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 11010,279252,238972,Yearling,NULL,NULL,0,NULL,NULL 11011,1571172,580445,NULL,NULL,NULL,0,NULL,NULL 11012,84694,1096975,NULL,NULL,NULL,0,NULL,NULL 11013,365711,202960,NULL,NULL,NULL,0,NULL,NULL 11014,813169,1165058,Yearling Nice Answer Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 11015,1385811,1416185,NULL,NULL,NULL,0,NULL,NULL 11016,2200283,1187186,NULL,NULL,NULL,0,NULL,NULL 11017,34447,184043,NULL,NULL,NULL,0,NULL,NULL 11018,975630,743765,Necromancer Popular Question Nice Answer Critic Yearling Caucus Autobiographer Census Caucus Informed Necromancer,NULL,NULL,0,NULL,NULL 11019,3250235,335150,NULL,NULL,NULL,0,NULL,NULL 11020,185456,451238,Nice Question Necromancer Famous Question Notable Question Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 11021,972764,1525796,NULL,NULL,NULL,0,NULL,NULL 11022,475029,594712,Popular Question Enthusiast Teacher Notable Question,NULL,NULL,0,NULL,NULL 11023,595557,808036,Nice Question Yearling Necromancer Popular Question Tumbleweed Yearling Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 11024,43325,757486,Revival,NULL,NULL,0,NULL,NULL 11025,935913,416481,NULL,NULL,NULL,0,NULL,NULL 11026,833613,1542845,NULL,NULL,NULL,0,NULL,NULL 11027,72058,192508,NULL,NULL,NULL,0,NULL,NULL 11028,20931,53495,Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Populist Great Answer Announcer Nice Answer Yearling Guru Good Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 11029,44037,183604,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 11030,293178,348062,NULL,NULL,NULL,0,NULL,NULL 11031,1997869,216709,Popular Question,NULL,NULL,0,NULL,NULL 11032,337423,788464,NULL,NULL,NULL,0,NULL,NULL 11033,588934,857711,NULL,NULL,NULL,0,NULL,NULL 11034,383053,507000,Electorate Fanatic,NULL,NULL,0,NULL,NULL 11035,158854,482398,Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 11036,123719,330555,NULL,NULL,NULL,0,NULL,NULL 11037,543458,720486,Necromancer Notable Question Yearling Popular Question Civic Duty Famous Question Good Question Necromancer Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Revival Famous Question Yearling Popular Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11038,1907998,1302251,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 11039,34812,1302251,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 11040,250308,1086560,Yearling Tumbleweed Tag Editor Documentation User Revival Yearling google-maps-api-3 Revival,NULL,NULL,0,NULL,NULL 11041,158418,576366,NULL,NULL,NULL,0,NULL,NULL 11042,147281,627090,Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11043,32381,238628,Taxonomist Popular Question Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Popular Question python Yearling Guru,NULL,NULL,0,NULL,NULL 11044,184506,400265,Curious Yearling Great Question Yearling Stellar Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11045,366739,1237044,Necromancer Yearling Nice Answer Excavator Informed Civic Duty Nice Answer Caucus Nice Answer Necromancer Yearling Nice Answer Custodian Custodian Custodian Citizen Patrol Suffrage Nice Answer Nice Answer Enlightened Documentation User Announcer Yearling Good Answer Popular Question,NULL,pIf you are using maven you might be interested in adding the following to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt configuration gt lt compilerArgument gt XDignore symbol file lt compilerArgument gt lt configuration gt lt plugin gt code pre It works for me using Oracle Java compiler just verified with single file project that it reported warning without the configuration above and then the warning went away after added the section above My answer isn explicit about this but did you put that section inside build plugins Otherwise don have any other ideas pIf you are using maven you might be interested in adding the following to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt configuration gt lt compilerArgument gt XDignore symbol file lt compilerArgument gt lt configuration gt lt plugin gt code pre Thanks for the info glad you found fix pMany of the solutions here sort or reverse the codeIntStream code but that unnecessarily requires intermediate storage href https stackoverflow com 24011264 2711488 Stuart Marks solution is the way to go ppre codestatic IntStream revRange int from int to return IntStream range from to map gt to from code prepIt correctly handles overflow as well passing this test ppre code void testRevRange assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int MAX VALUE code pre Thanks Unfortunately didn intend to leak the Estreams name going to remove it from the post It one of our company internal utility classes which we use to supplement java util stream Stream static methods pMany of the solutions here sort or reverse the codeIntStream code but that unnecessarily requires intermediate storage href https stackoverflow com 24011264 2711488 Stuart Marks solution is the way to go ppre codestatic IntStream revRange int from int to return IntStream range from to map gt to from code prepIt correctly handles overflow as well passing this test ppre code void testRevRange assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int MAX VALUE code pre just tested his solution with my test method above it passes was unnecessarily avoiding overflow instead of embracing it as he did agree that his is better ll edit mine to reflect that pMany of the solutions here sort or reverse the codeIntStream code but that unnecessarily requires intermediate storage href https stackoverflow com 24011264 2711488 Stuart Marks solution is the way to go ppre codestatic IntStream revRange int from int to return IntStream range from to map gt to from code prepIt correctly handles overflow as well passing this test ppre code void testRevRange assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int MAX VALUE code pre encourage to accept his instead of mine Once my suggested edit of his post is accepted ll delete my answer altogether pMany of the solutions here sort or reverse the codeIntStream code but that unnecessarily requires intermediate storage href https stackoverflow com 24011264 2711488 Stuart Marks solution is the way to go ppre codestatic IntStream revRange int from int to return IntStream range from to map gt to from code prepIt correctly handles overflow as well passing this test ppre code void testRevRange assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int MAX VALUE code pre Both of your proposals fail on the second to last test above assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE,1,NULL,Java stream reverse order java java java stream pGeneral question What the proper way to reverse stream Assuming that we don know what type of elements that stream consists of what the generic way to reverse any stream ppSpecific question pp codeIntStream code provides range method to generate Integers in specific range codeIntStream range range code now that want to reverse it switching range from to negative won work also can use codeInteger compare code ppre codeList lt Integer gt list Arrays asList list stream sorted Integer compare forEach System out println code prepwith codeIntStream code ll get this compiler error pblockquote pError 191 ajc The method codesorted code in the type codeIntStream code is not applicable for the arguments codeInteger compare code blockquotepwhat am missing here pMany of the solutions here sort or reverse the codeIntStream code but that unnecessarily requires intermediate storage href https stackoverflow com 24011264 2711488 Stuart Marks solution is the way to go ppre codestatic IntStream revRange int from int to return IntStream range from to map gt to from code prepIt correctly handles overflow as well passing this test ppre code void testRevRange assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int assertArrayEquals revRange MIN VALUE MIN VALUE toArray new int MIN VALUE assertArrayEquals revRange MAX VALUE MAX VALUE toArray new int MAX VALUE code pre 11046,3432326,1186031,NULL,NULL,NULL,0,NULL,NULL 11047,177415,257654,Excavator Necromancer,NULL,NULL,0,NULL,NULL 11048,256208,841810,Yearling Notable Question Popular Question Famous Question Yearling Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 11049,1507654,1011280,Nice Answer Yearling Critic Informed Editor,NULL,NULL,0,NULL,NULL 11050,69365,189179,Necromancer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Guru Custodian Guru Guru Good Answer Good Answer Guru Great Answer Nice Answer Yearling Good Answer Good Answer Good Answer Great Answer Good Answer Good Answer Nice Answer Guru Generalist Good Answer Good Answer Enlightened Good Answer Notable Question Good Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Guru Nice Answer Enlightened Guru Guru Good Answer Guru Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Enlightened Guru Great Answer Great Answer Guru Good Answer Yearling Great Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11051,15995,88092,Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Custodian Good Question asp.net Notable Question Yearling Good Answer Notable Question Yearling Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 11052,32366,1305849,NULL,NULL,NULL,0,NULL,NULL 11053,377009,890031,NULL,NULL,NULL,0,NULL,NULL 11054,292750,1504607,NULL,NULL,NULL,0,NULL,NULL 11055,137909,767,Popular Question Good Question Popular Question Famous Question Yearling Popular Question Popular Question Nice Answer Notable Question Notable Question Notable Question Nice Question Popular Question Nice Question Yearling Famous Question Favorite Question Famous Question Nice Question Great Answer Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 11056,1769824,1555978,NULL,NULL,NULL,0,NULL,NULL 11057,106284,789568,NULL,NULL,NULL,0,NULL,NULL 11058,783947,1018977,NULL,NULL,NULL,0,NULL,NULL 11059,3664988,957678,NULL,NULL,NULL,0,NULL,NULL 11060,165370,1092847,NULL,NULL,NULL,0,NULL,NULL 11061,68158,1121509,NULL,NULL,NULL,0,NULL,NULL 11062,50876,376113,Nice Answer Nice Answer Great Answer Nice Question Necromancer Nice Answer Nice Answer Taxonomist Great Answer Popular Question Notable Question Yearling Notable Question Notable Question Revival Notable Question Notable Question Good Answer Popular Question Popular Question Popular Question Nice Question Nice Question Nice Answer Enlightened Yearling Popular Question Electorate Good Answer Notable Question Documentation User Popular Question Good Answer Popular Question Nice Question Nice Answer Popular Question Popular Question Good Answer Notable Question Yearling Popular Question Popular Question Socratic Good Answer,NULL,NULL,0,NULL,NULL 11063,1099866,341233,Nice Question Yearling Guru Good Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 11064,130680,1293417,Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 11065,361856,826968,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 11066,368429,327429,Nice Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 11067,273529,1205637,Popular Question Caucus Tumbleweed Popular Question Notable Question Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11068,146529,120108,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11069,141426,459792,Necromancer,NULL,NULL,0,NULL,NULL 11070,101787,735296,NULL,NULL,NULL,0,NULL,NULL 11071,212800,703201,NULL,NULL,NULL,0,NULL,NULL 11072,249762,276088,NULL,NULL,NULL,0,NULL,NULL 11073,383467,10389,Reviewer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 11074,884221,972274,Nice Answer Yearling Caucus Constituent Commentator Revival Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11075,40929,199701,Nice Question Popular Question Popular Question Famous Question Necromancer Good Question Yearling Organizer Revival Census Self-Learner Famous Question Popular Question Revival Popular Question Popular Question Documentation User Notable Question Yearling Necromancer Revival Nice Question Yearling,NULL,NULL,0,NULL,NULL 11076,244404,791345,Yearling Famous Question Popular Question Famous Question Popular Question Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 11077,187057,770019,Yearling Notable Question Custodian Caucus Good Answer Good Question Yearling Popular Question Famous Question Good Answer Good Question Caucus Constituent Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11078,269703,518319,NULL,NULL,NULL,0,NULL,NULL 11079,133391,1136723,NULL,NULL,NULL,0,NULL,NULL 11080,341138,1136723,NULL,NULL,NULL,0,NULL,NULL 11081,381008,689524,Popular Question Commentator,NULL,NULL,0,NULL,NULL 11082,1224003,1123784,Enthusiast Tumbleweed,NULL,NULL,0,NULL,NULL 11083,1099062,902042,NULL,NULL,NULL,0,NULL,NULL 11084,3937443,690050,NULL,NULL,NULL,0,NULL,NULL 11085,934787,1144958,NULL,NULL,NULL,0,NULL,NULL 11086,296201,1095655,NULL,NULL,NULL,0,NULL,NULL 11087,374858,1051238,NULL,NULL,NULL,0,NULL,NULL 11088,88350,326399,NULL,NULL,NULL,0,NULL,NULL 11089,24435,146359,Popular Question,NULL,NULL,0,NULL,NULL 11090,74150,495349,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 11091,390580,153339,NULL,NULL,NULL,0,NULL,NULL 11092,342019,1025419,NULL,NULL,NULL,0,NULL,NULL 11093,234050,422396,NULL,NULL,NULL,0,NULL,NULL 11094,341823,1110942,NULL,NULL,NULL,0,NULL,NULL 11095,2186304,1481656,NULL,NULL,NULL,0,NULL,NULL 11096,157410,158611,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11097,343223,579171,NULL,NULL,NULL,0,NULL,NULL 11098,562820,261869,Yearling Good Answer javascript Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Good Answer Yearling Guru Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 11099,516685,1227119,Good Answer Yearling Nice Answer Custodian Citizen Patrol Yearling Necromancer Revival Yearling Good Answer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11100,127682,555548,Popular Question Notable Question Good Question Popular Question Notable Question Notable Question Popular Question Famous Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 11101,601759,475992,Custodian Yearling Self-Learner Caucus Necromancer,NULL,NULL,0,NULL,NULL 11102,1217404,376980,Favorite Question Notable Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 11103,42684,731300,NULL,NULL,NULL,0,NULL,NULL 11104,238998,1143216,NULL,NULL,NULL,0,NULL,NULL 11105,28565,1143216,NULL,NULL,NULL,0,NULL,NULL 11106,685972,380556,NULL,NULL,NULL,0,NULL,NULL 11107,127562,312125,NULL,NULL,NULL,0,NULL,NULL 11108,866051,734333,Teacher,NULL,NULL,0,NULL,NULL 11109,75268,1350495,Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 11110,108526,179279,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 11111,664266,867555,NULL,NULL,NULL,0,NULL,NULL 11112,183326,901894,NULL,NULL,NULL,0,NULL,NULL 11113,609250,1093862,NULL,NULL,NULL,0,NULL,NULL 11114,11279866,1093862,NULL,NULL,NULL,0,NULL,NULL 11115,47686,825870,NULL,NULL,NULL,0,NULL,NULL 11116,233738,1146531,NULL,NULL,NULL,0,NULL,NULL 11117,974217,76674,Popular Question Yearling Notable Question Nice Question Notable Question Nice Question Popular Question Popular Question Good Question Notable Question Self-Learner Yearling Popular Question Famous Question Good Answer Yearling Popular Question Famous Question Notable Question Populist,NULL,NULL,0,NULL,NULL 11118,288417,432711,NULL,NULL,NULL,0,NULL,NULL 11119,46883,145756,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 11120,85948,231018,Notable Question Critic Notable Question,NULL,NULL,0,NULL,NULL 11121,18943,1384,Guru Good Question Yearling Yearling Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 11122,483506,1055726,NULL,NULL,NULL,0,NULL,NULL 11123,2198441,1092199,NULL,NULL,NULL,0,NULL,NULL 11124,542222,1396087,NULL,NULL,NULL,0,NULL,NULL 11125,736999,190338,Favorite Question Yearling,NULL,NULL,0,NULL,NULL 11126,1172482,1068814,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11127,143745,6580,Famous Question Good Question Yearling Famous Question Good Question Good Question Favorite Question Good Answer Yearling Great Answer Great Question Popular Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 11128,207481,1326792,Supporter,NULL,NULL,0,NULL,NULL 11129,33486,473054,Yearling Yearling,NULL,NULL,0,NULL,NULL 11130,288416,1296500,NULL,NULL,NULL,0,NULL,NULL 11131,1178705,551409,NULL,NULL,NULL,0,NULL,NULL 11132,85608,1494444,NULL,NULL,NULL,0,NULL,NULL 11133,2117230,1167047,NULL,NULL,NULL,0,NULL,NULL 11134,15432,503320,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 11135,265528,655006,Necromancer Yearling,NULL,NULL,0,NULL,NULL 11136,265459,655006,Necromancer Yearling,NULL,NULL,0,NULL,NULL 11137,298573,1493069,Necromancer Critic Promoter Commentator Benefactor Nice Answer Yearling Yearling Caucus Constituent Good Answer Revival Yearling Necromancer Organizer Civic Duty Caucus Curious Constituent Custodian Yearling Nice Answer Informed Nice Question Yearling Necromancer Enthusiast Good Answer Explainer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 11138,2584,90723,Nice Answer Nice Question Nice Answer Popular Question Yearling Popular Question Notable Question Nice Answer Enlightened Notable Question Popular Question Caucus Nice Answer Yearling Good Answer Good Answer Great Answer Caucus Informed Nice Answer Good Answer Nice Question Nice Question Good Answer Custodian Yearling Notable Question Good Answer Notable Question Popular Question,NULL,pI wrote the UUID generator parser for Ruby so consider myself to be reasonably well informed on the subject There are four major UUID versions ppVersion UUIDs are essentially just 16 bytes of randomness pulled from cryptographically secure random number generator with some bit twiddling to identify the UUID version and variant These are extremely unlikely to collide but it could happen if PRNG is used or if you just happen to have really really really really really bad luck ppVersion and Version UUIDs use the SHA1 and MD5 hash functions respectively to combine namespace with piece of already unique data to generate UUID This will for example allow you to produce UUID from URL Collisions here are only possible if the underlying hash function also has collision ppVersion UUIDs are the most common They use the network card MAC address which unless spoofed should be unique plus timestamp plus the usual bit twiddling to generate the UUID In the case of machine that doesn have MAC address the node bytes are generated with cryptographically secure random number generator If two UUIDs are generated in sequence fast enough that the timestamp matches the previous UUID the timestamp is incremented by Collisions should not occur unless one of the following happens The MAC address is spoofed One machine running two different UUID generating applications produces UUIDs at the exact same moment Two machines without network card or without user level access to the MAC address are given the same random node sequence and generate UUIDs at the exact same moment We run out of bytes to represent the timestamp and rollover back to zero ppRealistically none of these events occur by accident within single application ID space Unless you re accepting IDs on say an Internet wide scale or with an untrusted environment where malicious individuals might be able to do something bad in the case of an ID collision it just not something you should worry about It critical to understand that if you happen to generate the same version UUID as do in most cases it doesn matter ve generated the ID in completely different ID space from yours My application will never know about the collision so the collision doesn matter Frankly in single application space without malicious actors the extinction of all life on earth will occur long before you have collision even on version UUID even if you re generating quite few UUIDs per second ppAlso 64 16 is 256 exabytes As in you would need to store 256 exabytes worth of IDs before you had 50 chance of an ID collision in single application space The answer is largely intending to address the questioner comment that better solutions would have non zero probability of failure arguing that when probability of failure is low enough you may as well just round down Are you ever forced to use UUIDs Maybe not nobody holding gun to your head Are there times when UUIDs are clearly the best answer Yes absolutely more recent example would be using them to ensure constant length secret identifiers in the context of mitigating SSL weaknesses on stream ciphers revealing too much information on message length pI wrote the UUID generator parser for Ruby so consider myself to be reasonably well informed on the subject There are four major UUID versions ppVersion UUIDs are essentially just 16 bytes of randomness pulled from cryptographically secure random number generator with some bit twiddling to identify the UUID version and variant These are extremely unlikely to collide but it could happen if PRNG is used or if you just happen to have really really really really really bad luck ppVersion and Version UUIDs use the SHA1 and MD5 hash functions respectively to combine namespace with piece of already unique data to generate UUID This will for example allow you to produce UUID from URL Collisions here are only possible if the underlying hash function also has collision ppVersion UUIDs are the most common They use the network card MAC address which unless spoofed should be unique plus timestamp plus the usual bit twiddling to generate the UUID In the case of machine that doesn have MAC address the node bytes are generated with cryptographically secure random number generator If two UUIDs are generated in sequence fast enough that the timestamp matches the previous UUID the timestamp is incremented by Collisions should not occur unless one of the following happens The MAC address is spoofed One machine running two different UUID generating applications produces UUIDs at the exact same moment Two machines without network card or without user level access to the MAC address are given the same random node sequence and generate UUIDs at the exact same moment We run out of bytes to represent the timestamp and rollover back to zero ppRealistically none of these events occur by accident within single application ID space Unless you re accepting IDs on say an Internet wide scale or with an untrusted environment where malicious individuals might be able to do something bad in the case of an ID collision it just not something you should worry about It critical to understand that if you happen to generate the same version UUID as do in most cases it doesn matter ve generated the ID in completely different ID space from yours My application will never know about the collision so the collision doesn matter Frankly in single application space without malicious actors the extinction of all life on earth will occur long before you have collision even on version UUID even if you re generating quite few UUIDs per second ppAlso 64 16 is 256 exabytes As in you would need to store 256 exabytes worth of IDs before you had 50 chance of an ID collision in single application space Also some of what wrote was explicitly meant to address specific shortcomings in other answers pGeneral principles for good URI design pulli strongDon strong use query parameters to alter state lili strongDon strong use mixed case paths if you can help it lowercase is best lili strongDon strong use implementation specific extensions in your URIs php py pl etc lili strongDon strong fall into href http en wikipedia org wiki Remote procedure call rel noreferrer RPC with your URIs lili strongDo strong limit your URI space as much as possible lili strongDo strong keep path segments short lili strongDo strong prefer either code resource code or code resource code create 301 redirects from the one you don use lili strongDo strong use query parameters for sub selection of resource pagination search queries lili strongDo strong move stuff out of the URI that should be in an HTTP header or body li ulp Note did not say RESTful URI design URIs are essentially opaque in REST ppGeneral principles for HTTP method choice pulli strongDon strong ever use GET to alter state this is great way to have the Googlebot ruin your day lili strongDon strong use PUT unless you are updating an entire resource lili strongDon strong use PUT unless you can also legitimately do GET on the same URI lili strongDon strong use POST to retrieve information that is long lived or that might be reasonable to cache lili strongDon strong perform an operation that is not href http en wikipedia org wiki Idempotence rel noreferrer idempotent with PUT lili strongDo strong use GET for as much as possible lili strongDo strong use POST in preference to PUT when in doubt lili strongDo strong use POST whenever you have to do something that feels RPC like lili strongDo strong use PUT for classes of resources that are larger or hierarchical lili strongDo strong use DELETE in preference to POST to remove resources lili strongDo strong use GET for things like calculations unless your input is large in which case use POST li ulpGeneral principles of web service design with HTTP pulli strongDon strong put metadata in the body of response that should be in header lili strongDon strong put metadata in separate resource unless including it would create significant overhead lili strongDo strong use the appropriate status codeulli code201 Created code after creating resource resource strongmust strong exist at the time the response is sent lili code202 Accepted code after performing an operation successfully or creating resource asynchronously lili code400 Bad Request code when someone does an operation on data that clearly bogus for your application this could be validation error generally reserve 500 for uncaught exceptions lili code401 Unauthorized code when someone accesses your API either without supplying necessary codeAuthorization code header or when the credentials within the codeAuthorization code are invalid don use this response code if you aren expecting credentials via an codeAuthorization code header lili code403 Forbidden code when someone accesses your API in way that might be malicious or if they aren authorized lili code405 Method Not Allowed code when someone uses POST when they should have used PUT etc lili code413 Request Entity Too Large code when someone attempts to send you an unacceptably large file lili code418 teapot code href http tools ietf org html rfc2324 section rel noreferrer when attempting to brew coffee with teapot li ul lili strongDo strong use caching headers whenever you canulli codeETag code headers are good when you can easily reduce resource to hash value lili codeLast Modified code should indicate to you that keeping around timestamp of when resources are updated is good idea lili codeCache Control code and codeExpires code should be given sensible values li ul lili strongDo strong everything you can to honor caching headers in request codeIf None Modified code codeIf Modified Since code lili strongDo strong use redirects when they make sense but these should be rare for web service li ulpWith regard to your specific question POST should be used for and These operations fall under the RPC like guideline above For remember that POST does not necessarily have to use codeContent Type application www form urlencoded code This could just as easily be JSON or CSV payload Read the last paragraph,0,NULL,NULL 11139,23994,607050,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 11140,506832,18831,Yearling Popular Question Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 11141,13361,403163,Popular Question,NULL,NULL,0,NULL,NULL 11142,14638,1128469,NULL,NULL,NULL,0,NULL,NULL 11143,918168,1349681,NULL,NULL,NULL,0,NULL,NULL 11144,74516,241232,Yearling Custodian Nice Answer javascript Good Answer Yearling Caucus,NULL,strongNOTE strong The above answers use functionality that didn exist at the time that this answer was written recommend using codejQuery when code instead of these approaches but leaving the answer for historical purposes pp ppYou could probably get by with simple counting semaphore although how you implement it would be dependent on your code simple example would be something like ppre codevar semaphore counting semaphore for ajax requests all queued false bool indicator to account for instances where the first request might finish before the second even startssemaphore get ajax test1 html function data semaphore if all queued amp amp semaphore process your custom stuff here semaphore get ajax test2 html function data semaphore if all queued amp amp semaphore process your custom stuff here semaphore get ajax test3 html function data semaphore if all queued amp amp semaphore process your custom stuff here semaphore get ajax test4 html function data semaphore if all queued amp amp semaphore process your custom stuff here now that all ajax requests are queued up switch the bool to indicate itall queued true code prepIf you wanted this to operate like async false but you didn want to lock the browser you could accomplish the same thing with jQuery queue ppre codevar queue lt div gt queue queue function get ajax test1 html function data queue dequeue queue function get ajax test2 html function data queue dequeue queue function get ajax test3 html function data queue dequeue queue function get ajax test4 html function data queue dequeue code pre The answer is almost years old jQuery didn have when when this was written,0,NULL,NULL 11145,63988,359469,Popular Question,NULL,NULL,0,NULL,NULL 11146,74068,1387802,NULL,NULL,NULL,0,NULL,NULL 11147,60250,1208036,Autobiographer Commentator Critic Yearling Yearling Custodian Citizen Patrol Custodian Custodian Informed Yearling Tenacious Nice Answer Nice Answer Yearling Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 11148,790218,599039,Popular Question,NULL,NULL,0,NULL,NULL 11149,295276,343176,NULL,NULL,NULL,0,NULL,NULL 11150,142888,51474,NULL,NULL,NULL,0,NULL,NULL 11151,291546,957951,NULL,NULL,NULL,0,NULL,NULL 11152,133181,77776,Nice Answer,NULL,NULL,0,NULL,NULL 11153,889907,303188,Student,NULL,NULL,0,NULL,NULL 11154,133783,67445,Notable Question Yearling Nice Answer Good Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11155,682547,1332960,Nice Answer,NULL,NULL,0,NULL,NULL 11156,1644546,779982,Popular Question Caucus,NULL,NULL,0,NULL,NULL 11157,83912,367650,Yearling Nice Answer Nice Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 11158,250385,65829,Good Answer,NULL,NULL,0,NULL,NULL 11159,1073034,414344,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11160,85829,1279310,Student Scholar Commentator,NULL,NULL,0,NULL,NULL 11161,6187,606778,Editor Scholar Supporter Documentation User,NULL,NULL,0,NULL,NULL 11162,32675,241206,Yearling,NULL,NULL,0,NULL,NULL 11163,2460317,241206,Yearling,NULL,NULL,0,NULL,NULL 11164,380911,1059641,NULL,NULL,NULL,0,NULL,NULL 11165,193926,229143,Yearling Civic Duty Notable Question Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 11166,53969,358705,NULL,NULL,NULL,0,NULL,NULL 11167,693942,853791,Custodian Cleanup Yearling Popular Question Nice Question Yearling Nice Question Good Question Popular Question Yearling Caucus Constituent Popular Question Yearling Civic Duty Nice Question Popular Question Inquisitive Yearling Popular Question Popular Question Caucus Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Revival Popular Question Yearling Popular Question,NULL,Can retrieve the source code of the library packaged with Conan package manager to be able to debug in it packages conan pTypically href https conan io rel nofollow noreferrer Conan package contains only build artifacts like code dll code code lib code code pdb code code so code code code code dylib code files as well headers of given strongC strong or strongC strong library However sometimes when you debugging your code consuming the library is very useful to be able to step into the library code to look what happens inside For example to determine when having some problem whether this is because of incorrect use of the library or because of bug in it polliIs it possible alongside package which you consume to retrieve the source code from which it is build to be able to debug in it liliIf this is not possible for arbitrary package whether it is possible to create such package by yourself li ol Conan is package manager for and libraries have link to it official site in the answer The package typically contains already build library alongside its headers It seems that the source is not available in the package by default,1,Can retrieve the source code of the library packaged with Conan package manager to be able to debug in it packages conan pTypically href https conan io rel nofollow noreferrer Conan package contains only build artifacts like code dll code code lib code code pdb code code so code code code code dylib code files as well headers of given strongC strong or strongC strong library However sometimes when you debugging your code consuming the library is very useful to be able to step into the library code to look what happens inside For example to determine when having some problem whether this is because of incorrect use of the library or because of bug in it polliIs it possible alongside package which you consume to retrieve the source code from which it is build to be able to debug in it liliIf this is not possible for arbitrary package whether it is possible to create such package by yourself li ol,NULL 11168,523466,1332316,Nice Answer Nice Answer Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 11169,307158,486469,Teacher,NULL,NULL,0,NULL,NULL 11170,221275,568933,Yearling Tumbleweed Yearling Tenacious,NULL,NULL,0,NULL,NULL 11171,7121927,337116,Necromancer Nice Answer Caucus Constituent Yearling Good Question Popular Question Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 11172,222915,337116,Necromancer Nice Answer Caucus Constituent Yearling Good Question Popular Question Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 11173,382068,1082563,NULL,NULL,NULL,0,NULL,NULL 11174,977713,147715,NULL,NULL,NULL,0,NULL,NULL 11175,1565932,1461592,NULL,NULL,NULL,0,NULL,NULL 11176,136106,519745,NULL,NULL,NULL,0,NULL,NULL 11177,409251,478250,NULL,NULL,NULL,0,NULL,NULL 11178,48031,1358183,NULL,NULL,NULL,0,NULL,NULL 11179,1504410,809999,Popular Question Yearling Nice Question Popular Question Nice Question Notable Question Notable Question Yearling Famous Question Good Question Nice Answer Nice Answer Enlightened Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 11180,1396680,1273323,NULL,NULL,NULL,0,NULL,NULL 11181,347565,987742,NULL,NULL,NULL,0,NULL,NULL 11182,7647163,1176375,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 11183,139024,1129087,NULL,NULL,NULL,0,NULL,NULL 11184,308778,863456,NULL,NULL,NULL,0,NULL,NULL 11185,64897,908731,NULL,NULL,NULL,0,NULL,NULL 11186,462358,55102,Yearling Nice Answer Peer Pressure Proofreader Nice Question Nice Answer Necromancer Notable Question c# Notable Question Caucus Yearling Good Question Nice Answer Necromancer Custodian Notable Question Popular Question Yearling Nice Answer Good Answer Good Answer Caucus Famous Question,NULL,NULL,0,NULL,NULL 11187,881428,1197877,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11188,195761,235281,Caucus,NULL,NULL,0,NULL,NULL 11189,989207,895114,Citizen Patrol Nice Question Popular Question Popular Question Caucus Famous Question Nice Question Nice Question Caucus Constituent Tumbleweed Custodian Famous Question Caucus Constituent Yearling Notable Question,NULL,NULL,0,NULL,NULL 11190,153310,654253,Custodian Custodian Custodian Yearling Critic Organizer Commentator Yearling Yearling Informed Autobiographer Caucus Yearling Tag Editor Caucus Constituent Excavator Documentation User Yearling Caucus Constituent Taxonomist,NULL,NULL,0,NULL,NULL 11191,32775,905309,Notable Question,NULL,NULL,0,NULL,NULL 11192,66996,901642,Notable Question Notable Question Tumbleweed Caucus Popular Question Nice Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 11193,750984,1196427,NULL,NULL,NULL,0,NULL,NULL 11194,1566577,1202524,NULL,NULL,NULL,0,NULL,NULL 11195,263030,38740,Editor Teacher Popular Question Revival Popular Question Self-Learner Commentator,NULL,NULL,0,NULL,NULL 11196,599171,1447317,NULL,NULL,NULL,0,NULL,NULL 11197,914767,1154287,NULL,NULL,NULL,0,NULL,NULL 11198,448978,1116765,NULL,NULL,NULL,0,NULL,NULL 11199,34169,347423,NULL,NULL,NULL,0,NULL,NULL 11200,3787464,1094038,Popular Question,NULL,NULL,0,NULL,NULL 11201,226402,1094038,Popular Question,NULL,NULL,0,NULL,NULL 11202,150355,51208,Yearling Famous Question Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 11203,1504792,461446,Notable Question Curious,NULL,NULL,0,NULL,NULL 11204,89555,1515149,Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11205,87164,928724,NULL,NULL,NULL,0,NULL,NULL 11206,308740,901204,Popular Question,NULL,NULL,0,NULL,NULL 11207,517293,1060554,Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 11208,101556,1122790,NULL,NULL,NULL,0,NULL,NULL 11209,502469,1302293,NULL,NULL,NULL,0,NULL,NULL 11210,4132,1147293,Commentator Informed Yearling Yearling Disciplined Necromancer Custodian Nice Answer Enlightened Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 11211,1983567,514315,Notable Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 11212,91515,514315,Notable Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 11213,2651362,812212,NULL,NULL,NULL,0,NULL,NULL 11214,772981,812212,NULL,NULL,NULL,0,NULL,NULL 11215,1533790,769837,NULL,NULL,NULL,0,NULL,NULL 11216,64062,163415,Yearling Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 11217,129041,1549098,Supporter Teacher Announcer Announcer Announcer Popular Question Popular Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 11218,1641652,620635,Student,NULL,NULL,0,NULL,NULL 11219,212091,368264,Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 11220,86145,234078,NULL,NULL,NULL,0,NULL,NULL 11221,1049815,1381213,NULL,NULL,NULL,0,NULL,NULL 11222,308089,1095715,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11223,49850,850850,NULL,NULL,NULL,0,NULL,NULL 11224,358751,840210,NULL,NULL,NULL,0,NULL,NULL 11225,98385,42573,NULL,NULL,NULL,0,NULL,NULL 11226,1065674,1091894,Notable Question Promoter Self-Learner Benefactor Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11227,9567611,885617,NULL,NULL,NULL,0,NULL,NULL 11228,610685,885617,NULL,NULL,NULL,0,NULL,NULL 11229,925566,808014,NULL,NULL,NULL,0,NULL,NULL 11230,256197,184045,NULL,NULL,NULL,0,NULL,NULL 11231,264721,1195009,NULL,NULL,NULL,0,NULL,NULL 11232,831727,384602,Yearling Caucus,NULL,NULL,0,NULL,NULL 11233,653,456190,Notable Question,NULL,NULL,0,NULL,NULL 11234,40341,331336,NULL,NULL,NULL,0,NULL,NULL 11235,42388,786456,NULL,NULL,NULL,0,NULL,NULL 11236,1195923,470988,NULL,NULL,NULL,0,NULL,NULL 11237,1764823,348196,NULL,NULL,NULL,0,NULL,NULL 11238,183747,348196,NULL,NULL,NULL,0,NULL,NULL 11239,185580,103079,Necromancer Autobiographer Supporter,NULL,NULL,0,NULL,NULL 11240,337573,656542,Revival Yearling Revival Necromancer Nice Answer Yearling Notable Question Curious Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 11241,113277,1161350,Tumbleweed Student Scholar Supporter Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 11242,490493,618739,Nice Question Popular Question Nice Answer Yearling Enlightened Nice Answer Notable Question Critic Popular Question Announcer Census Yearling,NULL,NULL,0,NULL,NULL 11243,2681076,618739,Nice Question Popular Question Nice Answer Yearling Enlightened Nice Answer Notable Question Critic Popular Question Announcer Census Yearling,NULL,NULL,0,NULL,NULL 11244,134128,362179,Popular Question,NULL,NULL,0,NULL,NULL 11245,556988,458623,NULL,NULL,NULL,0,NULL,NULL 11246,175119,1112231,NULL,NULL,NULL,0,NULL,NULL 11247,817000,1138117,NULL,NULL,NULL,0,NULL,NULL 11248,415339,872938,NULL,NULL,NULL,0,NULL,NULL 11249,255974,872938,NULL,NULL,NULL,0,NULL,NULL 11250,200801,547956,Good Answer Yearling Caucus Commentator,NULL,NULL,0,NULL,NULL 11251,465894,1180838,NULL,NULL,NULL,0,NULL,NULL 11252,53594,385094,Popular Question Nice Question Nice Answer Popular Question Inquisitive Revival Yearling Organizer Notable Question Revival Famous Question Yearling Notable Question Revival Notable Question Yearling Necromancer Necromancer Revival Popular Question,NULL,NULL,0,NULL,NULL 11253,236870,286363,NULL,NULL,NULL,0,NULL,NULL 11254,889843,492414,NULL,NULL,NULL,0,NULL,NULL 11255,753902,1112881,NULL,NULL,NULL,0,NULL,NULL 11256,1219823,548059,Nice Question Custodian Citizen Patrol Popular Question Famous Question Yearling Notable Question Good Answer Documentation User Necromancer Yearling,NULL,NULL,0,NULL,NULL 11257,8700737,715458,Yearling Popular Question Popular Question Custodian Caucus Announcer Custodian Nice Answer Good Answer Yearling Popular Question Documentation User Popular Question Census Notable Question Caucus Benefactor Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11258,375572,715458,Yearling Popular Question Popular Question Custodian Caucus Announcer Custodian Nice Answer Good Answer Yearling Popular Question Documentation User Popular Question Census Notable Question Caucus Benefactor Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11259,46328,646462,NULL,NULL,NULL,0,NULL,NULL 11260,7795513,646462,NULL,NULL,NULL,0,NULL,NULL 11261,352998,87693,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11262,3762781,87693,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11263,474194,10114,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11264,583541,1061451,NULL,NULL,NULL,0,NULL,NULL 11265,67191,980979,NULL,NULL,NULL,0,NULL,NULL 11266,285073,306505,NULL,NULL,NULL,0,NULL,NULL 11267,317418,725429,NULL,NULL,NULL,0,NULL,NULL 11268,209598,1105638,NULL,NULL,NULL,0,NULL,NULL 11269,131592,15987,Popular Question Nice Question Notable Question Census Notable Question Good Question Necromancer Custodian,NULL,NULL,0,NULL,NULL 11270,25976,396304,Good Answer Yearling Popular Question Nice Answer Notable Question Popular Question Announcer Famous Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 11271,570413,882956,Supporter Scholar,NULL,NULL,0,NULL,NULL 11272,349515,164082,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 11273,159559,1377879,Popular Question Yearling Popular Question Popular Question Critic Popular Question Popular Question Popular Question Caucus Yearling Notable Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Nice Question Good Question Teacher Nice Question Famous Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 11274,209320,9263,NULL,NULL,NULL,0,NULL,NULL 11275,256842,113211,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11276,228432,4052,Great Question Notable Question Yearling Custodian Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 11277,63575,576497,Enthusiast Yearling Popular Question Caucus Necromancer Necromancer Yearling Notable Question Nice Answer Nice Answer Revival,NULL,NULL,0,NULL,NULL 11278,529571,338659,Notable Question,NULL,NULL,0,NULL,NULL 11279,146377,747282,Caucus Yearling,NULL,NULL,0,NULL,NULL 11280,168194,43582,Good Answer Nice Answer Nice Answer Enlightened Tag Editor Good Answer Nice Answer Good Answer Great Answer Good Answer Yearling Nice Answer Student Self-Learner Good Answer Good Answer Good Answer Promoter Great Answer Great Answer Curious Guru Nice Answer Good Answer Yearling Necromancer Nice Answer Nice Answer Enlightened Good Answer Guru Necromancer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 11281,74457,37141,Great Question Nice Question Benefactor Good Question Favorite Question Famous Question Nice Question Necromancer Necromancer Notable Question Nice Question Yearling Good Answer Stellar Question Announcer Nice Answer Favorite Question Popular Question Yearling Documentation User Popular Question Good Answer Popular Question Popular Question Nice Answer Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 11282,1071422,764296,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 11283,97188,386165,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11284,1199849,1356994,Custodian Yearling Notable Question Guru Notable Question,NULL,NULL,0,NULL,NULL 11285,64627,290119,Student Autobiographer,NULL,NULL,0,NULL,NULL 11286,48384,547084,NULL,NULL,NULL,0,NULL,NULL 11287,321631,1162614,NULL,NULL,NULL,0,NULL,NULL 11288,228664,525305,Nice Answer Nice Answer Yearling Necromancer Nice Answer Nice Answer Yearling Peer Pressure Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 11289,54818,292500,Yearling Nice Answer Enlightened Necromancer Nice Question Yearling Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 11290,142161,417996,Good Answer Necromancer Yearling Yearling Guru Necromancer Good Answer,NULL,NULL,0,NULL,NULL 11291,680007,196875,NULL,NULL,NULL,0,NULL,NULL 11292,29643,102133,Yearling Popular Question Popular Question Popular Question Popular Question Yearling Caucus Announcer Yearling Notable Question Notable Question Notable Question Announcer Popular Question Popular Question Caucus Popular Question Good Answer Nice Question Good Question Documentation User Popular Question Yearling Announcer Census Popular Question Notable Question Custodian Custodian Yearling Yearling Explainer Popular Question Yearling Popular Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 11293,5104,721080,NULL,NULL,NULL,0,NULL,NULL 11294,1104994,985641,Popular Question,NULL,NULL,0,NULL,NULL 11295,1532173,104833,Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Great Question Popular Question Notable Question Yearling Popular Question Popular Question Famous Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11296,415314,478350,NULL,NULL,NULL,0,NULL,NULL 11297,124431,326457,NULL,NULL,NULL,0,NULL,NULL 11298,85069,77316,NULL,NULL,NULL,0,NULL,NULL 11299,632222,602162,Notable Question Notable Question Famous Question Excavator Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 11300,859449,660961,Yearling Yearling Popular Question Notable Question Self-Learner Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 11301,551325,1168048,Tumbleweed,NULL,NULL,0,NULL,NULL 11302,13035,56375,Yearling,NULL,NULL,0,NULL,NULL 11303,29134,788126,NULL,NULL,NULL,0,NULL,NULL 11304,955595,128176,Notable Question Yearling,NULL,NULL,0,NULL,NULL 11305,108450,950917,NULL,NULL,NULL,0,NULL,NULL 11306,1397617,950917,NULL,NULL,NULL,0,NULL,NULL 11307,144788,1053171,NULL,NULL,NULL,0,NULL,NULL 11308,82172,245081,Nice Question,NULL,NULL,0,NULL,NULL 11309,38562,492204,NULL,NULL,NULL,0,NULL,NULL 11310,26477,966315,NULL,NULL,NULL,0,NULL,NULL 11311,344770,95396,Nice Answer Notable Question Yearling Necromancer Guru Nice Question Necromancer Yearling Popular Question Notable Question Popular Question Nice Question Nice Answer Revival Peer Pressure Custodian Great Answer Necromancer Custodian Custodian Yearling Great Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11312,27648,463922,Nice Answer Yearling Necromancer Revival Revival Yearling,NULL,NULL,0,NULL,NULL 11313,160480,955612,NULL,NULL,NULL,0,NULL,NULL 11314,124624,1416531,NULL,NULL,NULL,0,NULL,NULL 11315,80624,105672,Popular Question Nice Answer Yearling Nice Answer Enlightened Good Answer Popular Question Nice Question Good Answer Guru Nice Answer Enlightened Good Answer Notable Question Nice Answer Good Answer Great Answer Popular Question Popular Question Nice Answer Notable Question Good Answer Great Answer Enlightened Yearling Notable Question Popular Question Good Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Notable Question Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Nice Answer Popular Question Notable Question Notable Question Nice Answer,NULL,pThe gcc option code code enables different levels of optimization Use code O0 code to disable them and use code code to output assembly code O3 code is the highest level of optimization ppStarting with gcc the optimization level code Og code is available It enables optimizations that do not interfere with debugging and is the recommended default for the standard edit compile debug cycle ppTo change the dialect of the assembly to either intel or att use code masm intel code or code masm att code ppYou can also enable certain optimizations manually with code fname code ppHave look at the href http gcc gnu org onlinedocs gcc gcc gcc manual for much more Thanks for the hint ammended the answer,0,NULL,NULL 11316,124376,105282,Nice Answer Enlightened Yearling Good Answer Yearling Census Nice Answer Enlightened Guru Yearling Caucus Documentation User Yearling Census Caucus Constituent Yearling Announcer Great Answer,NULL,NULL,0,NULL,NULL 11317,635929,1031452,Notable Question Nice Question Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 11318,436694,252218,Yearling Nice Answer Nice Answer Necromancer Caucus Yearling Good Question Popular Question Caucus Good Answer Enlightened Documentation User Yearling Popular Question Popular Question Caucus Nice Answer Guru,NULL,Get mouse position on Linux pure Python python linux mouse x11 pI trying to get the global mouse position code code in Linux with pure Python cyptes if necessary can get relative position changes by listening to code dev input mice code but not receiving any event with absolute position to calibrate EV ABS ppI tried using ctypes to connect to X11 but everything after codeXOpenDisplay code segfaults yes the codeXOpenDisplay code worked and returned non zero ppre codeimport ctypesimport ctypes utilx11 ctypes cdll LoadLibrary ctypes util find library X11 display x11 XOpenDisplay None assert displaywindow x11 XDefaultRootWindow display segfault here code prepThe equivalent code works well in but looking for solution without dependencies or compilation steps ppre code include lt stdio gt include lt stdlib gt include lt X11 Xlib gt include lt X11 Xutil gt int main Display display XOpenDisplay NULL XEvent event XQueryPointer display XDefaultRootWindow display amp event xbutton root amp event xbutton window amp event xbutton root amp event xbutton root amp event xbutton amp event xbutton amp event xbutton state printf event xbutton root event xbutton root XCloseDisplay display return code prepThis was tested on Fedora 23 64 bits Interesting idea of using TCP IP to talk to the server Unfortunately the latest version of this library has Python as requirement and zero mentions for mouse Get mouse position on Linux pure Python python linux mouse x11 pI trying to get the global mouse position code code in Linux with pure Python cyptes if necessary can get relative position changes by listening to code dev input mice code but not receiving any event with absolute position to calibrate EV ABS ppI tried using ctypes to connect to X11 but everything after codeXOpenDisplay code segfaults yes the codeXOpenDisplay code worked and returned non zero ppre codeimport ctypesimport ctypes utilx11 ctypes cdll LoadLibrary ctypes util find library X11 display x11 XOpenDisplay None assert displaywindow x11 XDefaultRootWindow display segfault here code prepThe equivalent code works well in but looking for solution without dependencies or compilation steps ppre code include lt stdio gt include lt stdlib gt include lt X11 Xlib gt include lt X11 Xutil gt int main Display display XOpenDisplay NULL XEvent event XQueryPointer display XDefaultRootWindow display amp event xbutton root amp event xbutton window amp event xbutton root amp event xbutton root amp event xbutton amp event xbutton amp event xbutton state printf event xbutton root event xbutton root XCloseDisplay display return code prepThis was tested on Fedora 23 64 bits As of 2016 06 06 the code above still segfaults on Fedora 23 64 bits Get mouse position on Linux pure Python python linux mouse x11 pI trying to get the global mouse position code code in Linux with pure Python cyptes if necessary can get relative position changes by listening to code dev input mice code but not receiving any event with absolute position to calibrate EV ABS ppI tried using ctypes to connect to X11 but everything after codeXOpenDisplay code segfaults yes the codeXOpenDisplay code worked and returned non zero ppre codeimport ctypesimport ctypes utilx11 ctypes cdll LoadLibrary ctypes util find library X11 display x11 XOpenDisplay None assert displaywindow x11 XDefaultRootWindow display segfault here code prepThe equivalent code works well in but looking for solution without dependencies or compilation steps ppre code include lt stdio gt include lt stdlib gt include lt X11 Xlib gt include lt X11 Xutil gt int main Display display XOpenDisplay NULL XEvent event XQueryPointer display XDefaultRootWindow display amp event xbutton root amp event xbutton window amp event xbutton root amp event xbutton root amp event xbutton amp event xbutton amp event xbutton state printf event xbutton root event xbutton root XCloseDisplay display return code prepThis was tested on Fedora 23 64 bits As of 2018 03 03 the code above still segfaults on Ubuntu 17 10 64 bits,1,Get mouse position on Linux pure Python python linux mouse x11 pI trying to get the global mouse position code code in Linux with pure Python cyptes if necessary can get relative position changes by listening to code dev input mice code but not receiving any event with absolute position to calibrate EV ABS ppI tried using ctypes to connect to X11 but everything after codeXOpenDisplay code segfaults yes the codeXOpenDisplay code worked and returned non zero ppre codeimport ctypesimport ctypes utilx11 ctypes cdll LoadLibrary ctypes util find library X11 display x11 XOpenDisplay None assert displaywindow x11 XDefaultRootWindow display segfault here code prepThe equivalent code works well in but looking for solution without dependencies or compilation steps ppre code include lt stdio gt include lt stdlib gt include lt X11 Xlib gt include lt X11 Xutil gt int main Display display XOpenDisplay NULL XEvent event XQueryPointer display XDefaultRootWindow display amp event xbutton root amp event xbutton window amp event xbutton root amp event xbutton root amp event xbutton amp event xbutton amp event xbutton state printf event xbutton root event xbutton root XCloseDisplay display return code prepThis was tested on Fedora 23 64 bits,NULL 11319,1578324,922125,Student,NULL,NULL,0,NULL,NULL 11320,30291,363877,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 11321,88220,1126261,Necromancer,NULL,NULL,0,NULL,NULL 11322,51744,84508,Good Question Yearling,NULL,NULL,0,NULL,NULL 11323,745737,84508,Good Question Yearling,NULL,NULL,0,NULL,NULL 11324,472493,1148769,Yearling Informed Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 11325,455532,21728,Famous Question Famous Question Nice Question Popular Question Nice Question Good Answer Good Answer Good Question Custodian Nice Question Famous Question Famous Question Popular Question Famous Question Popular Question Good Answer Notable Question Notable Question Great Question Nice Question Notable Question Nice Question Notable Question Notable Question Notable Question Taxonomist Popular Question Notable Question Famous Question Notable Question Good Question Yearling Good Question Popular Question Nice Question Notable Question Popular Question Famous Question Notable Question Good Question Popular Question Popular Question Nice Question Nice Question Nice Question Popular Question Notable Question Good Question Popular Question Nice Question Popular Question Necromancer Popular Question Good Question Popular Question Good Question Notable Question Announcer Good Question Popular Question Notable Question Pundit Nice Question Good Question Good Question Popular Question Notable Question Famous Question Notable Question Nice Answer Nice Answer Yearling Good Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Great Question Nice Answer Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Autobiographer Notable Question Nice Question Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Notable Question Famous Question Nice Question Enthusiast Yearling Good Question Popular Question Announcer Nice Question Popular Question Notable Question Popular Question Notable Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 11326,531339,453264,Popular Question,NULL,NULL,0,NULL,NULL 11327,98143,693154,Popular Question Self-Learner Organizer Revival Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11328,185499,27388,Nice Answer Announcer Good Answer Good Answer Great Answer Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 11329,742658,746742,NULL,NULL,NULL,0,NULL,NULL 11330,562160,1130636,Necromancer Critic Civic Duty Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11331,680153,1130636,Necromancer Critic Civic Duty Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11332,1340532,857193,Popular Question Tumbleweed Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11333,187696,401767,NULL,NULL,NULL,0,NULL,NULL 11334,610730,1031665,NULL,NULL,NULL,0,NULL,NULL 11335,309020,526129,NULL,NULL,NULL,0,NULL,NULL 11336,251579,592600,NULL,NULL,NULL,0,NULL,NULL 11337,1553338,680411,NULL,NULL,NULL,0,NULL,NULL 11338,1218494,776816,NULL,NULL,NULL,0,NULL,NULL 11339,334762,1510873,Popular Question Revival,NULL,NULL,0,NULL,NULL 11340,18308,315192,NULL,NULL,NULL,0,NULL,NULL 11341,1916440,1492083,NULL,NULL,NULL,0,NULL,NULL 11342,897579,424775,Tumbleweed Curious,NULL,NULL,0,NULL,NULL 11343,277384,633073,NULL,NULL,NULL,0,NULL,NULL 11344,527101,454787,NULL,NULL,NULL,0,NULL,NULL 11345,490267,553957,NULL,NULL,NULL,0,NULL,NULL 11346,1979534,1162044,Revival Necromancer Yearling Popular Question Notable Question Civic Duty Popular Question Popular Question Nice Answer Enlightened Organizer Yearling Popular Question Notable Question Yearling Nice Question Self-Learner Popular Question Announcer Notable Question Revival Popular Question Necromancer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 11347,266156,1151209,Teacher Curious Popular Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 11348,211010,300070,NULL,NULL,NULL,0,NULL,NULL 11349,65382,525154,NULL,NULL,NULL,0,NULL,NULL 11350,129700,378138,NULL,NULL,NULL,0,NULL,NULL 11351,507174,1220736,Notable Question,NULL,NULL,0,NULL,NULL 11352,391831,882615,NULL,NULL,NULL,0,NULL,NULL 11353,86513,911452,NULL,NULL,NULL,0,NULL,NULL 11354,2105450,1189515,Scholar Supporter,NULL,NULL,0,NULL,NULL 11355,697878,1189515,Scholar Supporter,NULL,NULL,0,NULL,NULL 11356,36529,35513,Notable Question Notable Question Popular Question Notable Question Good Question Famous Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 11357,307181,17523,Famous Question Nice Answer Popular Question Notable Question Notable Question Famous Question Nice Answer Enlightened Nice Question Nice Question Popular Question Famous Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Good Question Good Question Popular Question Good Answer Nice Answer Nice Answer Good Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question Popular Question Nice Question Nice Answer Enlightened Explainer Announcer Notable Question Notable Question Popular Question Good Question Census Necromancer Notable Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Announcer Socratic Famous Question Announcer Popular Question Nice Question Popular Question Favorite Question Good Question Yearling Announcer Announcer Notable Question Nice Question Good Question Census Notable Question Announcer Good Question Famous Question Nice Question Good Question Famous Question Famous Question Notable Question Good Question Announcer Guru Necromancer Nice Answer Popular Question Yearling Good Question Great Question Good Question,NULL,NULL,0,NULL,NULL 11358,1505797,550939,NULL,NULL,NULL,0,NULL,NULL 11359,154003,860648,Popular Question Revival Self-Learner Yearling Necromancer Census Caucus Editor,NULL,NULL,0,NULL,NULL 11360,155251,476665,NULL,NULL,NULL,0,NULL,NULL 11361,126551,1063014,Popular Question,NULL,NULL,0,NULL,NULL 11362,1706,693934,Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 11363,311384,989140,Yearling Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 11364,119552,270494,Famous Question Caucus Yearling Popular Question Popular Question Census Popular Question Caucus Popular Question Nice Question Popular Question Notable Question Popular Question Caucus Revival,NULL,NULL,0,NULL,NULL 11365,474267,217224,NULL,NULL,NULL,0,NULL,NULL 11366,258411,268110,NULL,NULL,NULL,0,NULL,NULL 11367,451199,216527,NULL,NULL,NULL,0,NULL,NULL 11368,481845,32090,Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Notable Question Famous Question Good Question Nice Question Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Caucus Nice Question Nice Answer Famous Question Popular Question Favorite Question Popular Question Guru Guru Good Answer Famous Question Announcer Nice Question Guru Popular Question Announcer Favorite Question Nice Answer Yearling Nice Answer Guru Announcer Census Pundit Good Question Nice Answer Announcer Popular Question Nice Question Popular Question Guru Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 11369,1144232,1507577,NULL,NULL,NULL,0,NULL,NULL 11370,284469,731860,NULL,NULL,NULL,0,NULL,NULL 11371,222360,1163422,NULL,NULL,NULL,0,NULL,NULL 11372,9482,124581,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 11373,435772,554321,NULL,NULL,NULL,0,NULL,NULL 11374,69691,722067,NULL,NULL,NULL,0,NULL,NULL 11375,10001969,386466,Notable Question,NULL,NULL,0,NULL,NULL 11376,38642,386466,Notable Question,NULL,NULL,0,NULL,NULL 11377,1003966,513342,Notable Question Nice Answer Famous Question Nice Question Popular Question Notable Question Popular Question Famous Question Nice Answer Notable Question Popular Question Necromancer Nice Question Popular Question Nice Answer Enlightened Popular Question Nice Question Yearling Popular Question Notable Question Great Answer Good Answer Nice Answer Good Answer Notable Question Famous Question Nice Question Announcer Popular Question Pundit Notable Question Yearling Notable Question Notable Question Nice Answer Enlightened Popular Question Nice Question Good Answer java Good Answer Popular Question Notable Question Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 11378,537,25077,Famous Question Notable Question Nice Question Excavator Popular Question Notable Question Famous Question Nice Question Announcer Notable Question Nice Question Yearling Popular Question Revival Popular Question Revival Popular Question Necromancer Famous Question Good Question Notable Question Famous Question Yearling Notable Question Famous Question Nice Answer Popular Question Announcer Popular Question Popular Question Popular Question Popular Question Populist Nice Question Yearling Popular Question Notable Question,NULL,Undefined symbols for architecture x86 64 for extension with an Alamofire Request swift2 linker errors alamofire pI created protocol for codeAlamofire Response code and then extend it like this ppre codeimport Alamofirepublic protocol MyResponseType typealias Value typealias Error ErrorType var request NSURLRequest get var response NSHTTPURLResponse get var data NSData get var result Alamofire Result lt Value Error gt get init request NSURLRequest response NSHTTPURLResponse data NSData result Alamofire Result lt Value Error gt timeline Alamofire Timeline extension Alamofire Response MyResponseType code prepThe building process passed but when it comes to link it fails Here comes the errors ppre codeUndefined symbols for architecture x86 64 Alamofire Response data getter ObjC NSData referenced from protocol witness for wtftest MyResponseType data getter ObjC NSData in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest MyResponseType in wtftest in ViewController Alamofire Response result getter Alamofire Result lt gt referenced from protocol witness for wtftest MyResponseType result getter Alamofire Result lt Value Error gt in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest ProducerResponseType in wtftest in ViewController Alamofire Response request getter ObjC NSURLRequest referenced from protocol witness for wtftest MyResponseType request getter ObjC NSURLRequest in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest MyResponseType in wtftest in ViewController Alamofire Response response getter ObjC NSHTTPURLResponse referenced from protocol witness for wtftest MyResponseType response getter ObjC NSHTTPURLResponse in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest ProducerResponseType in wtftest in ViewController old symbol not found for architecture x86 64clang error linker command failed with exit code use to see invocation code prepIs this bug of swift Or did do something wrong Memon sorry ProducerResponseType is actually MyResponseType here forgot to modify it Inconsistent behavior of select for socket between Linux and BSD linux macos sockets pI am building cross platform socket program under MacOS FreeBSD and Linux like this ppre code include lt stdio gt include lt stdlib gt include lt sys time gt include lt sys types gt include lt sys socket gt include lt unistd gt int main void fd set rfds fd set wfds struct timeval tv int retval int fd socket AF INET SOCK STREAM FD ZERO amp rfds FD ZERO amp wfds FD SET fd amp rfds FD SET fd amp wfds tv tv sec tv tv usec retval select fd amp rfds amp wfds NULL amp tv printf ready sockets retval exit EXIT SUCCESS code prepIt very simple it creates codesocket code and use codeselect code to see if it either readable or writable ppIf run it under MacOS ppre codeready sockets code prepYou will see the program blocks for second and it prints socket ready But if you run it under Linux you will see it prints out ppre codeready sockets code prepimmediately Which sounds very odd to me since the socket just created there is nothing to read or write but yet codeselect code function told me it ready to read and write how come they behave differently don know if this is my bug or Linux bug but at least didn see any document saying anything about select on newly created socket The reason am doing so is that want to call connect on it later have abstraction allows me to register handler to the socket for reading and writing events And if before call connect it triggers read and write events which will be trouble and the handler got called before anything happened Then can only register handler to the selector after socket is connected,1,Undefined symbols for architecture x86 64 for extension with an Alamofire Request swift2 linker errors alamofire pI created protocol for codeAlamofire Response code and then extend it like this ppre codeimport Alamofirepublic protocol MyResponseType typealias Value typealias Error ErrorType var request NSURLRequest get var response NSHTTPURLResponse get var data NSData get var result Alamofire Result lt Value Error gt get init request NSURLRequest response NSHTTPURLResponse data NSData result Alamofire Result lt Value Error gt timeline Alamofire Timeline extension Alamofire Response MyResponseType code prepThe building process passed but when it comes to link it fails Here comes the errors ppre codeUndefined symbols for architecture x86 64 Alamofire Response data getter ObjC NSData referenced from protocol witness for wtftest MyResponseType data getter ObjC NSData in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest MyResponseType in wtftest in ViewController Alamofire Response result getter Alamofire Result lt gt referenced from protocol witness for wtftest MyResponseType result getter Alamofire Result lt Value Error gt in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest ProducerResponseType in wtftest in ViewController Alamofire Response request getter ObjC NSURLRequest referenced from protocol witness for wtftest MyResponseType request getter ObjC NSURLRequest in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest MyResponseType in wtftest in ViewController Alamofire Response response getter ObjC NSHTTPURLResponse referenced from protocol witness for wtftest MyResponseType response getter ObjC NSHTTPURLResponse in conformance lt where Swift ErrorType gt Alamofire Response lt gt wtftest ProducerResponseType in wtftest in ViewController old symbol not found for architecture x86 64clang error linker command failed with exit code use to see invocation code prepIs this bug of swift Or did do something wrong Inconsistent behavior of select for socket between Linux and BSD linux macos sockets pI am building cross platform socket program under MacOS FreeBSD and Linux like this ppre code include lt stdio gt include lt stdlib gt include lt sys time gt include lt sys types gt include lt sys socket gt include lt unistd gt int main void fd set rfds fd set wfds struct timeval tv int retval int fd socket AF INET SOCK STREAM FD ZERO amp rfds FD ZERO amp wfds FD SET fd amp rfds FD SET fd amp wfds tv tv sec tv tv usec retval select fd amp rfds amp wfds NULL amp tv printf ready sockets retval exit EXIT SUCCESS code prepIt very simple it creates codesocket code and use codeselect code to see if it either readable or writable ppIf run it under MacOS ppre codeready sockets code prepYou will see the program blocks for second and it prints socket ready But if you run it under Linux you will see it prints out ppre codeready sockets code prepimmediately Which sounds very odd to me since the socket just created there is nothing to read or write but yet codeselect code function told me it ready to read and write how come they behave differently,NULL 11379,1264201,287941,Enlightened Yearling Famous Question Popular Question Good Answer Popular Question Revival Notable Question Yearling Guru Documentation User Custodian Yearling Popular Question Census Nice Question Yearling,NULL,NULL,0,NULL,NULL 11380,311787,236741,NULL,NULL,NULL,0,NULL,NULL 11381,115535,539686,Announcer Announcer Nice Answer Caucus Constituent Yearling Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11382,62009,1175614,Popular Question Popular Question Nice Question Yearling Nice Question Notable Question Famous Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11383,143141,251216,Good Question Yearling,NULL,NULL,0,NULL,NULL 11384,36419,1359833,NULL,NULL,NULL,0,NULL,NULL 11385,36589,219217,Good Answer Great Answer Good Answer Guru Good Answer Good Answer Yearling Great Answer Guru Yearling Good Answer Great Answer Nice Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 11386,722452,965989,Yearling,NULL,NULL,0,NULL,NULL 11387,2073040,1199260,NULL,NULL,NULL,0,NULL,NULL 11388,15462,127970,NULL,NULL,NULL,0,NULL,NULL 11389,16264,217288,Necromancer Famous Question Good Question Popular Question Notable Question Favorite Question Guru Great Answer Nice Answer Nice Answer Nice Answer Famous Question Good Answer Nice Answer Notable Question Caucus Constituent Yearling Great Answer Nice Answer Nice Answer Enlightened Necromancer Good Answer Census Great Answer Good Answer Good Answer Guru Famous Question Nice Answer Good Answer Popular Question Notable Question Good Answer Documentation User Yearling Notable Question Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 11390,106876,904097,NULL,NULL,NULL,0,NULL,NULL 11391,1037151,1286607,Yearling,NULL,NULL,0,NULL,NULL 11392,753796,496015,Notable Question Notable Question Yearling Popular Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 11393,903097,1327413,NULL,NULL,NULL,0,NULL,NULL 11394,177115,550205,NULL,NULL,NULL,0,NULL,NULL 11395,398683,581420,Notable Question Popular Question Yearling Good Answer Famous Question Popular Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 11396,1033637,1175026,NULL,NULL,NULL,0,NULL,NULL 11397,108795,573791,Necromancer Yearling Nice Answer Necromancer Yearling Good Answer Yearling Caucus Good Answer Nice Answer Revival Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 11398,234041,639111,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 11399,1187859,1090674,NULL,NULL,NULL,0,NULL,NULL 11400,11919,151007,Necromancer Announcer Popular Question Announcer Civic Duty Yearling Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Announcer Notable Question Necromancer Revival Yearling Nice Question Announcer Revival,NULL,NULL,0,NULL,NULL 11401,752449,64004,Yearling Populist Great Answer Nice Answer Good Answer Great Answer Popular Question Notable Question Nice Answer Nice Answer Enlightened Custodian database Nice Answer Good Answer Nice Answer Yearling Guru Great Answer Good Answer Nice Answer Nice Answer Guru Good Answer Good Answer Great Answer Yearling Good Answer Good Answer mysql Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11402,2556,260445,Census,NULL,NULL,0,NULL,NULL 11403,458255,986996,NULL,NULL,NULL,0,NULL,NULL 11404,204564,1427827,NULL,NULL,NULL,0,NULL,NULL 11405,798746,1187013,NULL,NULL,NULL,0,NULL,NULL 11406,116320,790268,Yearling Yearling,NULL,NULL,0,NULL,NULL 11407,1227506,1507038,NULL,NULL,NULL,0,NULL,NULL 11408,6209628,401373,NULL,NULL,NULL,0,NULL,NULL 11409,22577,401373,NULL,NULL,NULL,0,NULL,NULL 11410,1294614,678155,Critic Nice Question Yearling Revival Popular Question Nice Question Necromancer Famous Question Yearling Nice Answer Popular Question Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 11411,252650,1201780,NULL,NULL,NULL,0,NULL,NULL 11412,273231,1124678,NULL,NULL,NULL,0,NULL,NULL 11413,270026,304645,Necromancer Famous Question Notable Question Yearling Popular Question Caucus Famous Question Yearling Nice Answer Enlightened Good Question Caucus Constituent Nice Question Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 11414,264344,1020889,Famous Question,NULL,NULL,0,NULL,NULL 11415,1626824,397696,NULL,NULL,NULL,0,NULL,NULL 11416,84812,433709,Documentation User,NULL,NULL,0,NULL,NULL 11417,46949,856880,Popular Question Yearling Popular Question iphone Popular Question Notable Question Announcer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 11418,376815,253179,NULL,NULL,NULL,0,NULL,NULL 11419,1967333,1042787,Teacher,NULL,NULL,0,NULL,NULL 11420,62237,151829,Yearling Guru Yearling Nice Answer Custodian Enlightened Nice Answer Custodian Caucus Yearling Civic Duty Informed Good Answer Guru,NULL,NULL,0,NULL,NULL 11421,88081,143269,Popular Question Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Favorite Question Popular Question Notable Question Notable Question Famous Question Custodian Nice Question Yearling Nice Answer Enlightened Socratic Nice Question Great Question Popular Question Yearling Famous Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 11422,5088266,143269,Popular Question Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Favorite Question Popular Question Notable Question Notable Question Famous Question Custodian Nice Question Yearling Nice Answer Enlightened Socratic Nice Question Great Question Popular Question Yearling Famous Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 11423,240419,1514064,Editor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11424,294368,569864,Nice Answer Popular Question Popular Question Yearling Popular Question Caucus Popular Question Yearling Caucus Good Answer Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11425,1177316,614492,NULL,NULL,NULL,0,NULL,NULL 11426,10249246,600031,NULL,NULL,NULL,0,NULL,NULL 11427,273533,600031,NULL,NULL,NULL,0,NULL,NULL 11428,200529,114866,Nice Answer Enlightened Custodian Yearling Good Answer Excavator Nice Answer Enlightened Yearling Necromancer Nice Answer Documentation User Revival Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 11429,85740,423020,NULL,NULL,NULL,0,NULL,NULL 11430,269558,600161,Notable Question,NULL,NULL,0,NULL,NULL 11431,323244,633083,Necromancer,NULL,NULL,0,NULL,NULL 11432,10766482,1559910,Informed,NULL,NULL,0,NULL,NULL 11433,2319707,591286,Critic Notable Question Nice Answer Popular Question Yearling Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 11434,37963,591286,Critic Notable Question Nice Answer Popular Question Yearling Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 11435,27960,500158,NULL,NULL,NULL,0,NULL,NULL 11436,6492894,293081,NULL,NULL,NULL,0,NULL,NULL 11437,236869,520469,Popular Question,NULL,NULL,0,NULL,NULL 11438,299318,706792,NULL,NULL,NULL,0,NULL,NULL 11439,151883,1095769,Supporter,NULL,NULL,0,NULL,NULL 11440,316798,277067,Yearling Notable Question Nice Answer Enlightened Popular Question Popular Question Good Answer Popular Question Popular Question Yearling Popular Question Notable Question Yearling Nice Answer Famous Question Popular Question Nice Answer Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11441,120883,1138343,NULL,NULL,NULL,0,NULL,NULL 11442,65074,169691,Popular Question Yearling Caucus Constituent Famous Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 11443,338688,1554155,NULL,NULL,NULL,0,NULL,NULL 11444,51498,86018,Guru Custodian Yearling Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 11445,165629,15108,Yearling Famous Question Notable Question Nice Question Yearling Notable Question Documentation User Census Nice Question Yearling,NULL,NULL,1,How can limit the length of line in NLog nlog pWe have targets in our default NLog config codeFile code and codeConsole code In order for the Console to stay readable we would like to define maximum length of line shown in the Console before wrapping to the next line ppNow have looked quite bit at the different href https github com NLog NLog wiki Layout Renderers rel nofollow layouts for NLog but could only find the href https github com NLog NLog wiki Pad Layout Renderer rel nofollow pad wrapper with codefixed length code option But this truncates the line instead of wrapping it ppThe only way can think of is via regexp and introduction of the href https github com NLog NLog wiki Newline Layout Renderer rel nofollow code newline code layout ppAny other ideas,NULL 11446,143347,1127373,Caucus,NULL,NULL,0,NULL,NULL 11447,728732,370098,NULL,NULL,NULL,0,NULL,NULL 11448,196130,477839,Excavator Informed Organizer Commentator Revival Yearling,NULL,NULL,0,NULL,NULL 11449,233723,608975,Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11450,5766180,908282,NULL,NULL,NULL,0,NULL,NULL 11451,563045,199678,Popular Question,NULL,NULL,0,NULL,NULL 11452,165761,403814,NULL,NULL,NULL,0,NULL,NULL 11453,353867,177477,Guru Yearling Student Scholar Supporter,NULL,NULL,0,NULL,NULL 11454,64318,577062,Necromancer Yearling Necromancer Necromancer Nice Answer Nice Answer Yearling Announcer Good Answer Yearling Custodian Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 11455,15135,217010,NULL,NULL,NULL,0,NULL,NULL 11456,42320,219744,NULL,NULL,NULL,0,NULL,NULL 11457,110894,1299667,Student Informed,NULL,NULL,0,NULL,NULL 11458,244580,1177128,Announcer Announcer,NULL,NULL,0,NULL,NULL 11459,930816,1462055,NULL,NULL,NULL,0,NULL,NULL 11460,290928,824873,NULL,NULL,NULL,0,NULL,NULL 11461,260588,1018201,Informed Editor Tumbleweed,NULL,NULL,0,NULL,NULL 11462,426010,371908,Good Answer Necromancer Populist Necromancer Yearling Necromancer Yearling Necromancer Custodian Yearling,NULL,pre code usr bin pythonfrom subprocess import Popen PIPE STDOUTimport ptyimport oscmd socat PTY PTY master slave pty openpty Popen cmd shell True stdin PIPE stdout slave stderr slave close fds True stdout os fdopen master print stdout readline print stdout readline code prepThere are two problems with your version Firstly you call read without argument which means it will attempt to read everything But since socat doesn terminate it never decides that it has read everything By using readline python only reads until it finds newline From my understanding of your problem that is what you need ppThe second problem is that the standard library will buffer outputs on pipes We solve that by creating pty with the openpty function and passing it to both stdout and stderr of the subprocess We use fdopen to make that file descriptor into regular python object and we get rid of the buffering ppI don know what you are doing with the socat but wonder whether it could replaced by using the pty module You are copying one pty to another and openpty is creating pair of ptys Perhaps you can use those directly This was life saver,0,NULL,NULL 11463,522251,244005,Yearling Good Question Famous Question Custodian Popular Question Notable Question Notable Question Good Answer Favorite Question Nice Question Good Question Popular Question Yearling Good Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Nice Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 11464,219872,272791,Informed,NULL,NULL,0,NULL,NULL 11465,92642,1552892,NULL,NULL,NULL,0,NULL,NULL 11466,82137,377384,Announcer Necromancer Announcer Self-Learner Yearling Announcer Necromancer Caucus Announcer Nice Answer Custodian Yearling Notable Question Nice Answer Announcer Announcer Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 11467,3615236,1508210,Notable Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 11468,78477,1508210,Notable Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 11469,70685,1059748,NULL,NULL,NULL,0,NULL,NULL 11470,89821,144756,Notable Question Nice Question Popular Question Famous Question Famous Question Yearling Good Answer Notable Question Good Question Notable Question Good Question Custodian Nice Question Famous Question Popular Question Revival Popular Question Popular Question Nice Question Yearling Popular Question Cleanup Popular Question Notable Question Notable Question Popular Question Yearling Favorite Question Necromancer,NULL,NULL,0,NULL,NULL 11471,739587,26713,NULL,NULL,NULL,0,NULL,NULL 11472,6565721,810483,NULL,NULL,NULL,0,NULL,NULL 11473,1333628,345396,NULL,NULL,NULL,0,NULL,NULL 11474,7111,264609,Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 11475,686023,445852,NULL,NULL,NULL,0,NULL,NULL 11476,1188128,247076,NULL,NULL,NULL,0,NULL,NULL 11477,11233,915949,NULL,NULL,NULL,0,NULL,NULL 11478,239255,650986,NULL,NULL,NULL,0,NULL,NULL 11479,428128,1261637,Necromancer Popular Question Editor,NULL,NULL,0,NULL,NULL 11480,44662,291550,Nice Answer Popular Question Good Answer Excavator Yearling Good Answer Nice Answer Necromancer Good Answer Great Answer Good Answer Nice Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Good Answer Popular Question Announcer Yearling Necromancer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Revival Nice Answer Guru Good Answer Yearling Guru Good Answer Necromancer,NULL,NULL,0,NULL,NULL 11481,182295,859787,Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 11482,189301,1165245,Yearling Nice Answer Enlightened Proofreader Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 11483,575880,357918,Editor Supporter,NULL,NULL,0,NULL,NULL 11484,356990,462176,NULL,NULL,NULL,0,NULL,NULL 11485,2244799,1516581,NULL,NULL,NULL,0,NULL,NULL 11486,21971,281485,Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11487,396460,134809,NULL,NULL,NULL,0,NULL,NULL 11488,106168,793590,NULL,NULL,NULL,0,NULL,NULL 11489,10071769,324834,NULL,NULL,NULL,0,NULL,NULL 11490,73545,324834,NULL,NULL,NULL,0,NULL,NULL 11491,328912,79790,Yearling Announcer Yearling Great Answer Yearling Popular Question Scholar,NULL,NULL,0,NULL,NULL 11492,49076,110459,Critic Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 11493,153615,254993,Informed Notable Question Caucus,NULL,NULL,0,NULL,NULL 11494,55081,1311916,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 11495,148673,294049,NULL,NULL,NULL,0,NULL,NULL 11496,68732,161369,Student Editor,NULL,NULL,0,NULL,NULL 11497,132304,38129,Famous Question Good Answer Good Answer Great Answer Yearling Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 11498,89472,514764,NULL,NULL,NULL,0,NULL,NULL 11499,338744,461631,Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Yearling Notable Question Nice Question Popular Question Nice Question Popular Question Nice Answer Notable Question Famous Question Popular Question Notable Question Famous Question Nice Question Nice Question Famous Question Nice Question Yearling Popular Question Nice Answer Notable Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 11500,39779,319249,Curious Notable Question,NULL,NULL,0,NULL,NULL 11501,610940,857012,Nice Answer Enlightened Nice Question Yearling Necromancer Famous Question Nice Answer Nice Answer Census Yearling Popular Question Famous Question Census Good Answer Yearling,NULL,Why do need to do set upstream all the time git git branch pI create new branch in Git ppre codegit branch my branch code prepPush it ppre codegit push origin my branch code prepNow say someone made some changes on the server and want to pull from codeorigin my branch code do ppre codegit pull code prepBut get ppre codeYou asked me to pull without telling me which branch youwant to merge with and branch my branch merge inyour configuration file does not tell me either Pleasespecify which branch you want to use on the command line andtry again git pull lt repository gt lt refspec gt See git pull for details If you often merge with the same branch you may want touse something like the following in your configuration file branch my branch remote lt nickname gt merge lt remote ref gt remote lt nickname gt url lt url gt fetch lt refspec gt See git config for details code prepI learned that can make it work with ppre codegit branch set upstream my branch origin my branch code prepBut why do need to do this for every branch create Isn it obvious that if push codemy branch code into codeorigin my branch code then would want to pull codeorigin my branch code into codemy branch code How can make this the default behavior er git branch set upstream is deprecated git push set upstream is not,0,NULL,NULL 11502,1434682,587422,NULL,NULL,NULL,0,NULL,NULL 11503,122624,779999,Census Caucus Constituent,NULL,NULL,0,NULL,NULL 11504,111386,1144884,NULL,NULL,NULL,0,NULL,NULL 11505,1177884,1532962,Commentator,NULL,NULL,0,NULL,NULL 11506,85946,602271,NULL,NULL,NULL,0,NULL,NULL 11507,409533,185137,Notable Question Yearling Yearling Notable Question Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 11508,800661,1521332,NULL,NULL,NULL,0,NULL,NULL 11509,492700,1117328,NULL,NULL,NULL,0,NULL,NULL 11510,64528,764377,NULL,NULL,NULL,0,NULL,NULL 11511,333794,1435931,NULL,NULL,NULL,0,NULL,NULL 11512,48844,331856,NULL,NULL,NULL,0,NULL,NULL 11513,1992636,1167300,Informed,NULL,NULL,0,NULL,NULL 11514,195507,1419354,NULL,NULL,NULL,0,NULL,NULL 11515,883371,1343813,NULL,NULL,NULL,0,NULL,NULL 11516,103078,32517,NULL,NULL,NULL,0,NULL,NULL 11517,20702,66685,Nice Answer,NULL,NULL,0,NULL,NULL 11518,359894,1176435,Yearling Famous Question Caucus Yearling Nice Question Popular Question Yearling Announcer android,NULL,NULL,0,NULL,NULL 11519,5029,662661,NULL,NULL,NULL,0,NULL,NULL 11520,248612,1159534,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 11521,633033,345547,Yearling Good Answer Nice Question Notable Question Notable Question Populist Notable Question,NULL,NULL,0,NULL,NULL 11522,420361,1502846,Scholar Editor Popular Question,NULL,NULL,0,NULL,NULL 11523,1221059,1327777,NULL,NULL,NULL,0,NULL,NULL 11524,286734,83606,NULL,NULL,NULL,0,NULL,NULL 11525,1354018,791360,NULL,NULL,NULL,0,NULL,NULL 11526,370644,317684,Yearling,NULL,NULL,0,NULL,NULL 11527,6252,636052,Yearling,NULL,NULL,0,NULL,NULL 11528,213095,766641,NULL,NULL,NULL,0,NULL,NULL 11529,767710,1145924,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11530,633857,1366707,Popular Question,NULL,NULL,0,NULL,NULL 11531,42985,596131,Critic Notable Question Census,NULL,NULL,0,NULL,NULL 11532,122188,160454,Popular Question Commentator Editor Organizer Yearling Necromancer Caucus Yearling Explainer Yearling Yearling Yearling Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 11533,367268,388977,Notable Question Revival,NULL,NULL,0,NULL,NULL 11534,353910,1434226,NULL,NULL,NULL,0,NULL,NULL 11535,116175,955956,NULL,NULL,NULL,0,NULL,NULL 11536,543672,1452648,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11537,336467,950800,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 11538,72105,805003,Yearling Nice Question Good Answer ruby-on-rails Good Answer Yearling Enlightened Popular Question Necromancer Popular Question Yearling Nice Answer Great Question,NULL,NULL,0,NULL,NULL 11539,491257,40330,NULL,NULL,NULL,0,NULL,NULL 11540,172879,406220,NULL,NULL,NULL,0,NULL,NULL 11541,211486,1361836,Announcer,NULL,NULL,0,NULL,NULL 11542,3345584,97448,Necromancer Revival Yearling Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 11543,47631,675328,NULL,NULL,NULL,0,NULL,NULL 11544,222629,41887,Nice Question Good Answer Yearling Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 11545,1805526,863344,Famous Question,NULL,NULL,0,NULL,NULL 11546,269403,968182,Yearling,NULL,NULL,0,NULL,NULL 11547,132330,1352247,NULL,NULL,NULL,0,NULL,NULL 11548,55281,182778,Nice Answer Self-Learner Civic Duty Yearling Announcer Yearling Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 11549,199053,546569,NULL,NULL,NULL,0,NULL,NULL 11550,10946,664466,Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 11551,99234,455306,Yearling Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11552,192284,113222,Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 11553,47082,69721,Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 11554,667092,255182,Necromancer,NULL,NULL,0,NULL,NULL 11555,166477,332904,Popular Question Nice Question Notable Question Nice Question Yearling Nice Answer Nice Question Custodian Notable Question Great Question Popular Question Famous Question Famous Question Yearling Good Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 11556,66821,61435,Popular Question Yearling Famous Question Great Question Notable Question Announcer Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 11557,9191610,61435,Popular Question Yearling Famous Question Great Question Notable Question Announcer Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 11558,23641,63072,Revival,NULL,NULL,0,NULL,NULL 11559,392715,548522,NULL,NULL,NULL,0,NULL,NULL 11560,8354,1441069,Yearling Good Answer Excavator Yearling,NULL,NULL,0,NULL,NULL 11561,134113,598628,Revival,NULL,NULL,0,NULL,NULL 11562,5163407,500834,NULL,NULL,NULL,0,NULL,NULL 11563,118577,1036528,NULL,NULL,NULL,0,NULL,NULL 11564,62348,423231,Yearling Custodian Announcer Caucus Revival Informed,NULL,NULL,0,NULL,NULL 11565,85935,112832,NULL,NULL,NULL,0,NULL,NULL 11566,2866342,261891,NULL,NULL,NULL,0,NULL,NULL 11567,3921594,376347,NULL,NULL,NULL,0,NULL,NULL 11568,1147747,660180,NULL,NULL,NULL,0,NULL,NULL 11569,3992804,660180,NULL,NULL,NULL,0,NULL,NULL 11570,6807061,959960,Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 11571,463909,959960,Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 11572,98741,183948,Yearling Curious,NULL,NULL,0,NULL,NULL 11573,495044,904652,Supporter Teacher Editor Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 11574,126926,1274982,NULL,NULL,NULL,0,NULL,NULL 11575,737726,1197612,NULL,NULL,NULL,0,NULL,NULL 11576,522154,1337342,Nice Answer,NULL,NULL,0,NULL,NULL 11577,235072,967644,NULL,NULL,NULL,0,NULL,NULL 11578,395638,655489,Nice Question Famous Question Curious Popular Question Notable Question Yearling Famous Question,NULL,pre codevar attr this attr name For some browsers attr is undefined for others attr is false Check for both if typeof attr typeof undefined amp amp attr false code pre true but if that the case you probably have some bigger problems,0,NULL,NULL 11579,92628,886488,NULL,NULL,NULL,0,NULL,NULL 11580,6657894,886488,NULL,NULL,NULL,0,NULL,NULL 11581,2133,129908,NULL,NULL,NULL,0,NULL,NULL 11582,33848,267475,Yearling Great Answer Necromancer Custodian Critic Informed Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 11583,154471,1412466,NULL,NULL,NULL,0,NULL,NULL 11584,68877,629836,Tumbleweed Informed Autobiographer,NULL,NULL,0,NULL,NULL 11585,3121,253686,Famous Question Yearling Nice Answer Popular Question Good Answer Famous Question Pundit Nice Question Notable Question Nice Question Notable Question Notable Question Popular Question Announcer Good Question Good Answer Good Answer Notable Question Yearling Nice Question Good Answer Nice Answer Enlightened Good Question Favorite Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Famous Question Great Question Nice Answer Popular Question Guru Yearling Good Answer Nice Answer Enlightened Popular Question Favorite Question Great Question Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11586,223016,1139752,Yearling Nice Answer Announcer Famous Question Nice Answer Necromancer Yearling Necromancer Notable Question Census,NULL,NULL,0,NULL,NULL 11587,8266,174864,Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Nice Question Yearling Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 11588,633417,827441,Popular Question Necromancer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 11589,194364,827441,Popular Question Necromancer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 11590,28183,279201,NULL,NULL,NULL,0,NULL,NULL 11591,88859,227615,Nice Answer Nice Answer Popular Question Notable Question Yearling Investor Notable Question Nice Answer Enlightened Good Answer Revival Yearling Revival Good Question,NULL,NULL,0,NULL,NULL 11592,316946,1076092,Yearling Revival Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 11593,901554,216018,Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 11594,1333027,468705,Good Answer Yearling,NULL,NULL,0,NULL,NULL 11595,92440,22087,NULL,NULL,NULL,0,NULL,NULL 11596,319396,159441,Notable Question Nice Question Custodian Custodian,NULL,pThere is strongno built in way to get callers binding strong in Ruby in or ppYou can use href https github com banister binding of caller rel noreferrer https github com banister binding of caller to work around ppIn MRI you can use RubyVM DebugInspector see href https github com banister binding of caller blob master lib binding of caller mri2 rb rel noreferrer https github com banister binding of caller blob master lib binding of caller mri2 rb ppWorking sample in MRI ppre coderequire debug inspector def bar symbol RubyVM DebugInspector open do inspector val eval symbol to inspector frame binding puts symbol val endenddef foo 100 bar endfoo 100 code pre Why This is metaprogramming technique it is undesirable in the way that all metaprogramming is undesirable difficult to maintain and debug but it isn dangerous is new or special way,0,NULL,NULL 11597,445107,31352,Quorum,NULL,NULL,0,NULL,NULL 11598,236028,1034781,Scholar,NULL,NULL,0,NULL,NULL 11599,222164,87845,NULL,NULL,NULL,0,NULL,NULL 11600,635958,564488,Popular Question,NULL,NULL,0,NULL,NULL 11601,179055,608850,Supporter,NULL,NULL,0,NULL,NULL 11602,13360,275696,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 11603,185375,438629,Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 11604,15290,1025721,Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 11605,22561,109581,Good Answer Caucus Civic Duty Popular Question Announcer Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 11606,77869,252859,Nice Answer Yearling Good Answer Yearling Notable Question Guru Yearling Necromancer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 11607,454758,424464,NULL,NULL,NULL,0,NULL,NULL 11608,29031,158285,Notable Question Popular Question Nice Answer Popular Question Notable Question Notable Question c++ Notable Question Popular Question Favorite Question Nice Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Popular Question Notable Question Nice Question Popular Question Yearling Famous Question Nice Question Notable Question Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Good Answer Nice Question Announcer Explainer Nice Question Good Answer Necromancer Necromancer Popular Question Famous Question Notable Question Nice Question Nice Question Yearling Popular Question Documentation User Nice Question Popular Question Notable Question Popular Question .net Popular Question Nice Question Revival Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Announcer Popular Question Announcer Notable Question Nice Question Notable Question Necromancer Popular Question Notable Question Nice Answer Announcer Yearling Notable Question Nice Question Announcer Popular Question Popular Question Nice Question Necromancer Announcer,NULL,How to implement IsAssignableFrom with Mono Cecil mono cecil pI have type strongType strong that wish to search an assembly for derived types ppI trying to use Mono Cecil to prescan the assembly for performance reasons Scanning and loading all assemblies is taking too long and its been suggested that cecil is much faster to do prescan with as only fraction of the assemblies available will having matching types ppSo far have the below which works only for interfaces ppre code private static IEnumerable lt Type gt MatchingTypesFromDll lt TParent gt string dllPath var type typeof TParent if type IsInterface throw new Exception Only interfaces supported try var assDef Mono Cecil AssemblyDefinition ReadAssembly dllPath var types assDef Modules SelectMany gt GetTypes if types Any gt Interfaces Any gt FullName type FullName var assembly Assembly LoadFrom dllPath return assembly GetExportedTypes Where TypeSatisfies lt TParent gt else return new Type catch Exception return new Type private static bool TypeSatisfies lt TParent gt Type type return typeof TParent IsAssignableFrom type amp amp type IsAbstract amp amp type IsInterface code prepHow could extend this to work for base classes as well mean not an interface How to implement IsAssignableFrom with Mono Cecil mono cecil pI have type strongType strong that wish to search an assembly for derived types ppI trying to use Mono Cecil to prescan the assembly for performance reasons Scanning and loading all assemblies is taking too long and its been suggested that cecil is much faster to do prescan with as only fraction of the assemblies available will having matching types ppSo far have the below which works only for interfaces ppre code private static IEnumerable lt Type gt MatchingTypesFromDll lt TParent gt string dllPath var type typeof TParent if type IsInterface throw new Exception Only interfaces supported try var assDef Mono Cecil AssemblyDefinition ReadAssembly dllPath var types assDef Modules SelectMany gt GetTypes if types Any gt Interfaces Any gt FullName type FullName var assembly Assembly LoadFrom dllPath return assembly GetExportedTypes Where TypeSatisfies lt TParent gt else return new Type catch Exception return new Type private static bool TypeSatisfies lt TParent gt Type type return typeof TParent IsAssignableFrom type amp amp type IsAbstract amp amp type IsInterface code prepHow could extend this to work for base classes as well Changed the wording normal classes to base classes,1,How to implement IsAssignableFrom with Mono Cecil mono cecil pI have type strongType strong that wish to search an assembly for derived types ppI trying to use Mono Cecil to prescan the assembly for performance reasons Scanning and loading all assemblies is taking too long and its been suggested that cecil is much faster to do prescan with as only fraction of the assemblies available will having matching types ppSo far have the below which works only for interfaces ppre code private static IEnumerable lt Type gt MatchingTypesFromDll lt TParent gt string dllPath var type typeof TParent if type IsInterface throw new Exception Only interfaces supported try var assDef Mono Cecil AssemblyDefinition ReadAssembly dllPath var types assDef Modules SelectMany gt GetTypes if types Any gt Interfaces Any gt FullName type FullName var assembly Assembly LoadFrom dllPath return assembly GetExportedTypes Where TypeSatisfies lt TParent gt else return new Type catch Exception return new Type private static bool TypeSatisfies lt TParent gt Type type return typeof TParent IsAssignableFrom type amp amp type IsAbstract amp amp type IsInterface code prepHow could extend this to work for base classes as well,Passing an object in that inherits from generic causes cast exception with IDispatch net exception com marshalling pI have COM call would like to make ppre code DispId 163 MethodImpl MethodImplOptions InternalCall MethodCodeType MethodCodeType Runtime return MarshalAs UnmanagedType IDispatch object CreatePropertyManagerPage MarshalAs UnmanagedType BStr In string Title In int Options MarshalAs UnmanagedType IDispatch In object Handler In Out ref int Errors code prepThe strongHandler strong property is the one causing me problems If pass in an object that inherits from ppre codepublic abstract class PmpBase lt TMacroFeature TData gt IPropertyManagerPage2Handler9 code prepthen get InvalidCastException However if remove the generics and pass class that inherits from ppre codepublic abstract class PmpBase IPropertyManagerPage2Handler9 code prepby hard coding the types in the file then the object passes into the call can replicate the same findings by doing ppre codenew DispatchWrapper foo code prepwhere strongfoo strong is an instance of the class that derives from either the generic it fails and the non generic it passes version ppI have zero knowledge of COM and am just trying to use the automation interface to solidworks Am trying to do something impossible haven found any obvious articles that associate generics with errors with COM pI can explain why the problem occurs but the solution is quite easy created proxy class for the interface was trying to pass to COM ppre codepublic class PropertyManagerPage2Handler9Wrapper IPropertyManagerPage2Handler9 readonly IPropertyManagerPage2Handler9 Implementation public PropertyManagerPage2Handler9Wrapper IPropertyManagerPage2Handler9 implementation Implementation implementation public void AfterActivation Implementation AfterActivation public void OnClose int Reason Implementation OnClose Reason public void AfterClose Implementation AfterClose lt snip gt code prepand passed the wrapper to the COM function instead of the original instance Then there was no class cast exception ppre codevar propertyManagerPage SwApp CreatePropertyManagerPage Name options new PropertyManagerPage2Handler9Wrapper this ref errors code prepinstead of this ppre codevar propertyManagerPage SwApp CreatePropertyManagerPage Name options this ref errors code pre 11609,3173241,1226486,Popular Question,NULL,NULL,0,NULL,NULL 11610,187852,1034194,Guru Yearling Revival Necromancer Yearling Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 11611,154935,530418,NULL,NULL,NULL,0,NULL,NULL 11612,165407,1325556,Supporter Popular Question,NULL,NULL,0,NULL,NULL 11613,584838,568352,Yearling Popular Question Popular Question Editor Notable Question Yearling Critic Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11614,91427,1546,Popular Question Yearling Great Question Favorite Question Yearling Good Question Great Question Favorite Question Popular Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11615,327938,1371907,NULL,NULL,NULL,0,NULL,NULL 11616,19749,502402,Commentator Necromancer Notable Question,NULL,NULL,0,NULL,NULL 11617,85898,1261878,NULL,NULL,NULL,0,NULL,NULL 11618,472205,843769,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 11619,145051,28686,Yearling,NULL,NULL,0,NULL,NULL 11620,3175890,691555,Editor,NULL,NULL,0,NULL,NULL 11621,202455,626911,Notable Question Yearling Announcer Announcer Nice Answer Necromancer Yearling Good Answer Caucus Nice Answer Constituent Census Yearling Revival Good Answer Necromancer,NULL,pFWIW this worked for me ppre code id before display block content margin top 75px height 75px visibility hidden code pre Can someone explain why this works,0,NULL,NULL 11622,121310,197963,NULL,NULL,NULL,0,NULL,NULL 11623,317065,1158895,Yearling Announcer Nice Answer Notable Question Yearling Announcer Announcer Notable Question Nice Answer Enlightened Announcer Announcer Revival Announcer Popular Question Announcer Yearling Nice Answer Announcer Announcer Nice Answer Announcer Announcer,NULL,NULL,0,NULL,NULL 11624,487013,547467,Popular Question,NULL,NULL,0,NULL,NULL 11625,9787994,547467,Popular Question,NULL,NULL,0,NULL,NULL 11626,433789,591310,Yearling Great Answer Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 11627,2389572,607564,NULL,NULL,NULL,0,NULL,NULL 11628,187433,607564,NULL,NULL,NULL,0,NULL,NULL 11629,49650,205481,php Good Answer Custodian Guru Yearling Documentation User Yearling apache2 Nice Question Yearling,NULL,NULL,0,NULL,NULL 11630,350169,120258,Yearling Yearling Notable Question Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 11631,11262213,120258,Yearling Yearling Notable Question Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 11632,178910,982947,Good Answer Yearling Editor Populist Yearling Critic Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 11633,62730,71390,NULL,NULL,NULL,0,NULL,NULL 11634,184097,617736,NULL,NULL,NULL,0,NULL,NULL 11635,1187834,1139144,NULL,NULL,NULL,0,NULL,NULL 11636,133527,1467998,Editor Tumbleweed Student Supporter,NULL,NULL,0,NULL,NULL 11637,173534,707187,Yearling Popular Question Yearling Necromancer Revival Nice Answer Enlightened Yearling Nice Answer Popular Question Revival Famous Question,NULL,NULL,0,NULL,NULL 11638,237136,850865,NULL,NULL,NULL,0,NULL,NULL 11639,113975,155570,NULL,NULL,NULL,0,NULL,NULL 11640,235709,1197429,Announcer,NULL,NULL,0,NULL,NULL 11641,818012,347541,NULL,NULL,NULL,0,NULL,NULL 11642,73387,1348920,NULL,NULL,NULL,0,NULL,NULL 11643,69791,457116,Critic Caucus Caucus Tumbleweed Caucus Yearling,NULL,pAFAIK the most reliable way to check for this and the way that is used internally in virtualenv and in pip is to check for the existence of codesys real prefix code ppre codeimport sysif hasattr sys real prefix code prepInside virtualenv codesys prefix code points to the virtualenv directory and codesys real prefix code points to the real prefix of the system Python often code usr code or code usr local code or some such ppOutside virtualenv codesys real prefix code should not exist ppUsing the codeVIRTUAL ENV code environment variable is not reliable It is set by the virtualenv codeactivate code shell script but virtualenv can be used without activation by directly running an executable from the virtualenv codebin code or codeScripts code directory in which case code VIRTUAL ENV code will not be set Also using Anaconda Miniconda environments does not work either,0,NULL,NULL 11644,500160,48724,Good Answer,NULL,NULL,0,NULL,NULL 11645,140772,1234349,NULL,NULL,NULL,0,NULL,NULL 11646,87374,687894,Yearling,NULL,NULL,0,NULL,NULL 11647,47615,19564,Yearling Good Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 11648,12298,219192,Yearling Custodian Custodian Informed Autobiographer,NULL,NULL,0,NULL,NULL 11649,518659,157036,NULL,NULL,NULL,0,NULL,NULL 11650,85698,410216,NULL,NULL,NULL,0,NULL,NULL 11651,73888,842110,NULL,NULL,NULL,0,NULL,NULL 11652,172092,1032238,NULL,NULL,NULL,0,NULL,NULL 11653,485915,3268,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 11654,1032740,308180,NULL,NULL,NULL,0,NULL,NULL 11655,194530,308180,NULL,NULL,NULL,0,NULL,NULL 11656,196965,428538,NULL,NULL,NULL,0,NULL,NULL 11657,209443,463279,NULL,NULL,NULL,0,NULL,NULL 11658,530481,1133199,Yearling ruby-on-rails Nice Answer Necromancer Nice Answer Enlightened Necromancer Good Answer Yearling Guru Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Yearling Popular Question Enlightened Guru,NULL,NULL,0,NULL,NULL 11659,494723,713552,Tumbleweed,NULL,NULL,0,NULL,NULL 11660,481832,287976,Taxonomist Popular Question Yearling Popular Question Popular Question Nice Question Good Answer Notable Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Enlightened Nice Answer Enlightened Popular Question Notable Question Notable Question liferay Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Famous Question Yearling Great Answer Nice Question Nice Answer Sportsmanship Notable Question Popular Question Nice Answer Nice Answer Good Answer Peer Pressure Announcer Popular Question Documentation User Nice Answer Census Notable Question Guru Popular Question Yearling Popular Question Necromancer Notable Question Good Answer Good Answer Popular Question Custodian Reviewer Custodian Nice Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 11661,1563682,228527,NULL,NULL,NULL,0,NULL,NULL 11662,42138,199110,NULL,NULL,NULL,0,NULL,NULL 11663,36378,1373353,NULL,NULL,NULL,0,NULL,NULL 11664,336351,54838,Yearling Nice Answer Famous Question Great Answer Good Answer Great Answer Yearling Famous Question Great Answer Famous Question Stellar Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 11665,1114233,1068348,NULL,NULL,NULL,0,NULL,NULL 11666,230712,1096513,Revival Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 11667,129314,29260,Notable Question,NULL,NULL,0,NULL,NULL 11668,296236,109605,Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 11669,19421,296888,NULL,NULL,NULL,0,NULL,NULL 11670,158429,631130,NULL,NULL,NULL,0,NULL,NULL 11671,304439,1209707,NULL,NULL,NULL,0,NULL,NULL 11672,95981,516988,NULL,NULL,NULL,0,NULL,NULL 11673,515176,1314033,NULL,NULL,NULL,0,NULL,NULL 11674,142776,334841,Scholar Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 11675,671382,379124,NULL,NULL,NULL,0,NULL,NULL 11676,18035,147243,NULL,NULL,NULL,0,NULL,NULL 11677,79531,176841,Nice Answer Electorate Notable Question Nice Question Popular Question Yearling Famous Question Announcer Nice Answer Nice Answer Enlightened Yearling Disciplined Nice Answer Announcer Self-Learner Announcer Yearling,NULL,NULL,0,NULL,NULL 11678,857897,1277739,NULL,NULL,NULL,0,NULL,NULL 11679,738749,1218719,Supporter,NULL,NULL,0,NULL,NULL 11680,933806,1260254,Notable Question Caucus Constituent Caucus Constituent Tumbleweed Revival,NULL,NULL,0,NULL,NULL 11681,891655,1112402,Yearling Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 11682,219934,992493,NULL,NULL,NULL,0,NULL,NULL 11683,4587218,502210,NULL,NULL,NULL,0,NULL,NULL 11684,1543254,933656,NULL,NULL,NULL,0,NULL,NULL 11685,231512,264605,NULL,NULL,NULL,0,NULL,NULL 11686,262446,559977,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11687,167785,250795,NULL,NULL,NULL,0,NULL,NULL 11688,1024,416791,Enlightened Popular Question Popular Question Famous Question Popular Question Yearling Revival Census Popular Question Favorite Question Notable Question Popular Question Yearling Popular Question Documentation User Famous Question Notable Question Popular Question Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 11689,308889,147261,Popular Question,NULL,NULL,0,NULL,NULL 11690,1342633,781143,NULL,NULL,NULL,0,NULL,NULL 11691,8202,241142,Nice Question Necromancer Nice Question Good Question Popular Question Popular Question Nice Answer Notable Question Popular Question Famous Question Popular Question Nice Answer Necromancer Notable Question Famous Question Nice Question Notable Question Notable Question Nice Answer Famous Question Popular Question Good Question Necromancer Notable Question Yearling Popular Question Nice Answer Popular Question Notable Question Nice Question Nice Answer Nice Answer Notable Question Nice Question Necromancer Notable Question Nice Answer Popular Question Good Answer Nice Question Necromancer Notable Question Nice Question Nice Answer Great Answer Popular Question Good Answer Notable Question Famous Question Popular Question Good Question Famous Question Yearling Popular Question Nice Answer Good Answer Popular Question Enthusiast Notable Question Popular Question Popular Question Nice Answer Good Answer Good Answer Nice Answer Archaeologist,NULL,pIf you have href http mxcl github io homebrew Homebrew installed you can do this ppre code check the zsh infobrew info zsh install zshbrew install without etcdir zsh add shell pathsudo vim etc shells add the following line into the very end of the file etc shells usr local bin zsh change default shellchsh usr local bin zsh code prepHope it helps thanks and öhler what is the purpose of skipping etc zshrc It seems like strange thing to skip to me pTL DR ppre codesudo apt get install nodejs legacy code prehrpFirst of all let me clarify the situation bit In summer 2012 Debian maintainers decided to rename Node js executable to prevent some kind of namespace collision with another package It was very hard decision for Debian Technical Committee because it breaks backward compatibility ppThe following is quote from Committee resolution draft published in Debian href http bugs debian org cgi bin bugreport cgi bug 614907 108 rel noreferrer mailing list pblockquote ol li pThe nodejs package shall be changed to provide usr bin nodejs not usr bin node The package should declare Breaks relationship with any packages in Debian that reference usr bin node li li pThe nodejs source package shall also provide nodejs legacy binary package at Priority extra that contains usr bin node as symlink to usr bin nodejs No package in the archive may depend on or recommend the nodejs legacy package which is provided solely for upstreambr compatibility This package declares shall also declare Conflicts relationship with the node package li ol lt blockquotepParagraph is the actual solution for OP issue OP should try to install this package instead of doing symlink by hand Here is link to this package in Debian package index href http packages debian org sid nodejs legacy rel noreferrer website ppIt can be installed using codesudo apt get install nodejs legacy code ppI have not found any information about adopting the whole thing by NPM developers but think codenpm code package will be fixed on some point and codenodejs legacy code become really legacy Unless missing something this was not name space collision There no namespace it was simple name collision Name spaces allow you to have the same name twice or more as long as each exists in different name space No such spaces exist for executable names in Linux or Unix The closest thing is that you can have multiple directories in your PATH variable and the earliest one with matching named executable is used But that really very different from namespace,0,NULL,NULL 11692,358516,1082228,NULL,NULL,NULL,0,NULL,NULL 11693,59364,118829,NULL,NULL,NULL,0,NULL,NULL 11694,86887,1257332,Editor Teacher Supporter Student Scholar,NULL,NULL,0,NULL,NULL 11695,116561,188643,Yearling Nice Question,NULL,NULL,0,NULL,NULL 11696,809793,481020,Announcer Informed Autobiographer Self-Learner Popular Question Yearling Notable Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11697,1145350,1055136,NULL,NULL,NULL,0,NULL,NULL 11698,155703,573687,NULL,NULL,NULL,0,NULL,NULL 11699,84295,1172316,NULL,NULL,NULL,0,NULL,NULL 11700,164801,749409,Custodian Informed Notable Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 11701,105913,1079634,NULL,NULL,NULL,0,NULL,NULL 11702,105927,1079634,NULL,NULL,NULL,0,NULL,NULL 11703,36779,62082,Good Answer reactjs Good Answer Good Answer Revival Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Good Answer Good Answer Good Answer Revival Good Answer Great Answer Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened react-router Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Great Answer Necromancer Nice Answer Guru Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Guru Guru Good Answer Nice Answer Enlightened Guru react-jsx Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Guru Guru Great Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Custodian Guru Guru Great Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Great Answer Announcer Nice Answer Enlightened Census Guru Guru Nice Answer Enlightened Yearling Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer Populist Good Answer Guru Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 11704,270355,324491,Good Answer Popular Question Yearling Revival Good Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11705,71284,513371,NULL,NULL,NULL,0,NULL,NULL 11706,122692,1130943,NULL,NULL,NULL,0,NULL,NULL 11707,23614,341748,Yearling Yearling,NULL,NULL,0,NULL,NULL 11708,39534,2519,Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 11709,27032,491206,Guru Yearling Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 11710,11250,558051,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 11711,65397,85360,pyephem Popular Question Revival Revival Yearling Nice Answer Enlightened Popular Question Enthusiast python Good Answer Cleanup Nice Answer Nice Answer Enlightened Good Answer Revival Necromancer Revival Revival Nice Answer Revival Nice Answer Necromancer Great Answer Revival Populist Yearling Good Answer Good Answer Great Answer Guru Necromancer Caucus Good Answer Good Answer Populist Nice Question Necromancer Revival Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Nice Answer Self-Learner Good Answer Good Answer Good Answer,NULL,pBy using the href http docs python org library functions html divmod rel noreferrer codedivmod code function which does only single division to produce both the quotient and the remainder you can have the result very quickly with only two mathematical operations ppre codem divmod seconds 60 divmod 60 print 02d 02d code pre For those discussing datetimes please note that the original question does not want the hours broken down into any larger units of time so anything that creates larger time units than hours would then need them manually reduced back to an integral number of hours,0,NULL,NULL 11712,1036006,769940,Curious Cleanup Custodian Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 11713,249837,243345,Critic,NULL,NULL,0,NULL,NULL 11714,22557,483257,Yearling Civic Duty Notable Question Informed Yearling Caucus Constituent Enthusiast Announcer Excavator,NULL,NULL,0,NULL,NULL 11715,86568,1275141,NULL,NULL,NULL,0,NULL,NULL 11716,685488,1515885,NULL,NULL,NULL,0,NULL,NULL 11717,30711,1168554,NULL,NULL,NULL,0,NULL,NULL 11718,207867,581803,Yearling Revival Good Answer Notable Question Nice Answer Yearling Necromancer Yearling Nice Question Curious Critic Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11719,250551,1205670,NULL,NULL,NULL,0,NULL,NULL 11720,3621,171765,Notable Question Yearling,NULL,NULL,0,NULL,NULL 11721,202451,850403,NULL,NULL,NULL,0,NULL,NULL 11722,122416,941234,Good Answer Yearling Famous Question Popular Question Famous Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11723,36481,689494,Yearling,NULL,NULL,0,NULL,NULL 11724,159081,264601,Yearling Good Answer Yearling Good Question Necromancer Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 11725,124350,841051,Tumbleweed,NULL,NULL,0,NULL,NULL 11726,508442,168125,Good Answer,NULL,NULL,0,NULL,NULL 11727,259386,454323,NULL,NULL,NULL,0,NULL,NULL 11728,1386037,1521920,NULL,NULL,NULL,0,NULL,NULL 11729,22456,409090,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 11730,137950,367884,Curious Teacher Yearling Good Question,NULL,NULL,0,NULL,NULL 11731,892224,1322902,Enthusiast,NULL,NULL,0,NULL,NULL 11732,83894,253002,Custodian Citizen Patrol Informed Nice Answer,NULL,NULL,0,NULL,NULL 11733,332941,450847,Notable Question Necromancer Popular Question Popular Question Famous Question Yearling Nice Question Revival Notable Question Nice Question Yearling Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11734,96270,115546,Good Question Famous Question Famous Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 11735,271515,189569,Yearling Good Question,NULL,NULL,0,NULL,NULL 11736,382408,548930,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 11737,904244,548930,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 11738,1210661,1188783,NULL,NULL,NULL,0,NULL,NULL 11739,814754,1221505,NULL,NULL,NULL,0,NULL,NULL 11740,76718,773681,Popular Question,NULL,NULL,0,NULL,NULL 11741,410213,631179,Popular Question Popular Question Famous Question Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 11742,322812,81491,Good Answer Good Question Notable Question Nice Answer Enlightened Popular Question Popular Question Yearling Notable Question Famous Question Popular Question Famous Question Nice Answer Notable Question google-cloud-storage Yearling Famous Question Good Answer Nice Question Nice Answer Great Question Great Question Documentation User Notable Question Nice Question Census google-cloud-platform Caucus Yearling Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Favorite Question Good Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 11743,798209,699002,Scholar Tumbleweed Student Popular Question,NULL,NULL,0,NULL,NULL 11744,203103,1030288,NULL,NULL,NULL,0,NULL,NULL 11745,95531,440795,Scholar Editor Yearling Curious Necromancer Popular Question Nice Question Notable Question Notable Question Custodian Yearling Critic,NULL,NULL,0,NULL,NULL 11746,545065,1000622,Notable Question Notable Question Notable Question Nice Question Curious Critic,NULL,NULL,0,NULL,NULL 11747,589931,1493663,NULL,NULL,NULL,0,NULL,NULL 11748,156156,415097,NULL,NULL,NULL,0,NULL,NULL 11749,110833,535153,NULL,NULL,NULL,0,NULL,NULL 11750,27183,1148929,NULL,NULL,NULL,0,NULL,NULL 11751,24151,252266,NULL,NULL,NULL,0,NULL,NULL 11752,1751,31327,Yearling Nice Question Popular Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 11753,66707,285533,Nice Question Yearling Good Question Nice Answer Guru Yearling Good Answer Notable Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11754,46773,1371716,Necromancer Yearling Autobiographer Yearling Yearling,NULL,NULL,0,NULL,NULL 11755,252005,1371716,Necromancer Yearling Autobiographer Yearling Yearling,NULL,NULL,0,NULL,NULL 11756,5712513,1261643,Necromancer,NULL,NULL,0,NULL,NULL 11757,1513542,507691,NULL,NULL,NULL,0,NULL,NULL 11758,300152,1299073,d3.js Yearling Famous Question Good Question Yearling Nice Answer Documentation User Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11759,262088,1230799,NULL,NULL,NULL,0,NULL,NULL 11760,519191,556771,Popular Question Popular Question Yearling Caucus Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 11761,63340,231842,Nice Question Popular Question Good Answer Guru Yearling Nice Question Guru Notable Question Great Question Yearling Caucus,NULL,NULL,0,NULL,NULL 11762,109619,71839,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11763,296538,1346560,NULL,NULL,NULL,0,NULL,NULL 11764,331628,185190,Editor,NULL,NULL,0,NULL,NULL 11765,72584,697243,Necromancer Good Answer Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 11766,353426,93928,NULL,NULL,NULL,0,NULL,NULL 11767,77781,670229,Good Answer Announcer Popular Question Yearling Promoter Benefactor Good Answer Guru Notable Question Necromancer Yearling Popular Question Announcer Investor Revival Popular Question Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 11768,436560,1214019,NULL,NULL,NULL,0,NULL,NULL 11769,2060947,1349527,NULL,NULL,NULL,0,NULL,NULL 11770,198239,1384509,NULL,NULL,NULL,0,NULL,NULL 11771,206367,941016,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 11772,157288,401096,Nice Answer Enlightened Nice Answer Yearling Caucus Popular Question Revival email Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11773,155215,1107285,Editor Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 11774,487776,16883,Good Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Good Answer Good Answer Guru Famous Question Popular Question Good Answer Nice Answer Nice Answer Nice Answer Guru Notable Question Populist Guru Nice Question Guru Nice Answer Nice Answer Good Question Nice Answer Good Answer c Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Guru Populist Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Good Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Great Answer Enlightened Great Answer Good Answer Nice Answer Good Answer Great Answer Nice Answer Good Answer Nice Answer Yearling Good Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Good Answer Popular Question Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Guru Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Guru Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Notable Question Good Answer Nice Answer Guru Guru Good Answer Nice Answer java-ee Great Answer Good Answer coding-style Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Guru Nice Answer Notable Question Nice Answer Nice Answer Nice Answer Nice Answer Populist Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Good Answer swing Nice Answer Custodian Custodian Nice Answer Great Answer Good Answer Good Answer Necromancer Good Answer Nice Answer Great Answer Nice Question Nice Answer Necromancer Great Answer Great Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Guru static Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Yearling Nice Answer Famous Question Good Answer Good Answer Great Answer Good Answer Popular Question Good Answer Good Answer Good Answer Nice Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 11775,240991,469114,Organizer,NULL,NULL,0,NULL,NULL 11776,701002,1284306,NULL,NULL,NULL,0,NULL,NULL 11777,205102,72041,Nice Question Famous Question Yearling Notable Question Caucus Constituent Necromancer Caucus Nice Answer Yearling Civic Duty Revival,NULL,NULL,0,NULL,NULL 11778,950,950912,Nice Answer Guru Yearling Custodian Good Answer Yearling Good Answer Announcer Census python Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11779,457815,1281579,Yearling Supporter Nice Answer,NULL,NULL,0,NULL,NULL 11780,569016,1371836,Yearling Nice Answer Census Notable Question,NULL,NULL,0,NULL,NULL 11781,1770829,833611,NULL,NULL,NULL,0,NULL,NULL 11782,505956,833611,NULL,NULL,NULL,0,NULL,NULL 11783,218002,392225,Civic Duty Commentator,NULL,NULL,0,NULL,NULL 11784,4780562,1340240,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11785,174841,1340240,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11786,584419,835083,Famous Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Good Question Nice Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Great Question Popular Question Famous Question Notable Question Nice Question Famous Question Popular Question Famous Question Nice Question Notable Question Nice Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Yearling Famous Question Notable Question Notable Question Popular Question Favorite Question Notable Question Popular Question Popular Question Great Question Popular Question Notable Question Famous Question Nice Question Nice Question Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 11787,1179486,366472,Famous Question Nice Question Famous Question Famous Question Famous Question Famous Question Notable Question Nice Question Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Yearling Famous Question Nice Question Popular Question Popular Question Famous Question Notable Question Notable Question Nice Question Famous Question Good Question Nice Question Great Question Notable Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 11788,508828,462110,NULL,NULL,NULL,0,NULL,NULL 11789,74726,438249,Organizer Revival Nice Question Famous Question Yearling Revival Nice Question Yearling Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 11790,83646,131782,Yearling Notable Question Popular Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 11791,150478,89650,NULL,NULL,NULL,0,NULL,NULL 11792,237546,662879,NULL,NULL,NULL,0,NULL,NULL 11793,124619,1080869,NULL,NULL,NULL,0,NULL,NULL 11794,392712,214972,Popular Question Teacher,NULL,NULL,0,NULL,NULL 11795,465394,1519498,NULL,NULL,NULL,0,NULL,NULL 11796,1199916,904684,Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Good Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 11797,32839,69697,Yearling Announcer Caucus Disciplined Necromancer Yearling Guru Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11798,185573,954798,Informed Autobiographer Teacher Editor Citizen Patrol,NULL,NULL,0,NULL,NULL 11799,603742,448219,NULL,NULL,NULL,0,NULL,NULL 11800,1521746,192097,NULL,NULL,NULL,0,NULL,NULL 11801,99075,945930,NULL,NULL,NULL,0,NULL,NULL 11802,14534,802625,Editor Critic,NULL,NULL,0,NULL,NULL 11803,49724,663264,NULL,NULL,NULL,0,NULL,NULL 11804,30369,122201,Popular Question Nice Answer Yearling Nice Answer Popular Question Notable Question Nice Answer Nice Answer Yearling Nice Answer Enlightened Caucus Popular Question Famous Question Nice Question Famous Question Revival Caucus Notable Question Popular Question Popular Question Yearling Good Answer Nice Question Notable Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 11805,283787,985721,Notable Question,NULL,NULL,0,NULL,NULL 11806,1528619,1359196,NULL,NULL,NULL,0,NULL,NULL 11807,24493,612972,Necromancer Yearling Notable Question Yearling Nice Answer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 11808,13391,488033,Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 11809,130405,29297,Nice Question Notable Question Famous Question Popular Question Good Answer Necromancer Popular Question Revival Nice Question Great Question Yearling Popular Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Nice Question Yearling Notable Question Popular Question Custodian Nice Answer Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 11810,110105,132040,Yearling Good Answer Yearling Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 11811,2101720,39053,Enthusiast Good Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 11812,197427,39053,Enthusiast Good Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 11813,22535,1187954,NULL,NULL,NULL,0,NULL,NULL 11814,580761,199,Good Question Popular Question Good Question Popular Question Announcer Famous Question Nice Answer Good Answer Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Revival Famous Question Popular Question Notable Question Yearling Nice Answer Famous Question Notable Question Popular Question Notable Question Notable Question Nice Question Announcer Yearling Popular Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 11815,655819,807558,Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 11816,276439,1150184,NULL,NULL,NULL,0,NULL,NULL 11817,5015,515360,Editor Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11818,19168,52972,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11819,329561,674720,Commentator Necromancer Yearling Necromancer Necromancer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 11820,243760,951776,NULL,NULL,NULL,0,NULL,NULL 11821,151658,540814,NULL,NULL,NULL,0,NULL,NULL 11822,140454,573190,Editor Promoter Benefactor,NULL,NULL,0,NULL,NULL 11823,10740,1305776,NULL,NULL,NULL,0,NULL,NULL 11824,401117,1425,Yearling Census Yearling Census Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 11825,4779471,1425,Yearling Census Yearling Census Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 11826,132398,552766,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 11827,682435,129798,Announcer Revival Citizen Patrol Yearling Informed Revival Notable Question Popular Question Custodian Yearling Great Answer Custodian Necromancer Popular Question Caucus Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 11828,3328359,221651,NULL,NULL,NULL,0,NULL,NULL 11829,449915,221651,NULL,NULL,NULL,0,NULL,NULL 11830,2808076,1393746,Popular Question Popular Question Self-Learner Yearling Revival Curious Notable Question Critic Announcer Popular Question,NULL,strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues The actual bug has been diagnosed and should be fixed soon imagine strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues https github com pixijs pixi js issues 3829 strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues https github com pixijs pixi js commit 94b1975dff90dc4ffb12b7f66fecbe9f8dedc776 in dev,1,NULL,PIXI js AnimatedSprite lag on first play javascript sprite sheet pixi js texturepacker pI need some help understanding what the best practice is for creating PIXI extras AnimatedSprite from spritesheet am currently loading medium sized spritesheets for animation created by TexturePacker collect all the frames and then play However the first time playing the animation is very unsmooth and almost jumps immediately to the end from then on it plays really smooth have read bit and can see possible causes The lag might be caused by the time taken to upload the textures to the GPU There is PIXI plugin called prepare coderenderer plugins prepare upload code which should enable me to upload them before playing and possibly smoothen out the initial loop Having an AnimatedSprite build from more than one texture image is not ideal and could be the cause pp strongQuestion strong Should use the PIXI Prepare plugin will this help and if so how do actually use it Documentation for it is incredibly limited pp strongQuestion strong Is having frames across multiple textures bad idea could it be the cause amp why ppA summarised example of what am doing ppre class lang js prettyprint override codefunction loadSpriteSheet callback let loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load loadSpriteSheet function resource helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray stage addChild animSprite animSprite play code pre strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues 11831,379722,1393746,Popular Question Popular Question Self-Learner Yearling Revival Curious Notable Question Critic Announcer Popular Question,NULL,strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues The actual bug has been diagnosed and should be fixed soon imagine strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues https github com pixijs pixi js issues 3829 strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues https github com pixijs pixi js commit 94b1975dff90dc4ffb12b7f66fecbe9f8dedc776 in dev,1,NULL,PIXI js AnimatedSprite lag on first play javascript sprite sheet pixi js texturepacker pI need some help understanding what the best practice is for creating PIXI extras AnimatedSprite from spritesheet am currently loading medium sized spritesheets for animation created by TexturePacker collect all the frames and then play However the first time playing the animation is very unsmooth and almost jumps immediately to the end from then on it plays really smooth have read bit and can see possible causes The lag might be caused by the time taken to upload the textures to the GPU There is PIXI plugin called prepare coderenderer plugins prepare upload code which should enable me to upload them before playing and possibly smoothen out the initial loop Having an AnimatedSprite build from more than one texture image is not ideal and could be the cause pp strongQuestion strong Should use the PIXI Prepare plugin will this help and if so how do actually use it Documentation for it is incredibly limited pp strongQuestion strong Is having frames across multiple textures bad idea could it be the cause amp why ppA summarised example of what am doing ppre class lang js prettyprint override codefunction loadSpriteSheet callback let loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load loadSpriteSheet function resource helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray stage addChild animSprite animSprite play code pre strongQuestion strong ppSo have found solution possibly not the solution but it works well for me The prepare plugin was the right solution but never worked WebGL needs the entire texture uploaded not the frames The way textures are uploaded to the GPU is via coderenderer bindTexture texture code When the PIXI loader receives sprite atlas url codemy sprites json code it automatically downloads the image file and names it as codemysprites json image code in the loaders resources So you need to grab that make texture and upload it to the GPU So here is the updated code ppre codelet loader new PIXI loaders Loader loader add http mysite fake sprite1 json loader add http mysite fake sprite2 json loader add http mysite fake sprite3 json loader once complete callback loader load function uploadToGPU resourceName resourceName resourceName image let texture new PIXI Texture fromImage resourceName this renderer bindTexture texture loadSpriteSheet function resource uploadToGPU http mysite fake sprite1 json uploadToGPU http mysite fake sprite2 json uploadToGPU http mysite fake sprite3 json helper function to get all the frames from multiple textures let frameArray getFrameFromResource resource let animSprite new PIXI extras AnimatedSprite frameArray this stage addChild animSprite animSprite play code prep strongQuestion strong ppI never really discovered and answer but the solution to Question has made my animations perfectly smooth so in my case see no performance issues 11832,252798,20223,NULL,NULL,NULL,0,NULL,NULL 11833,964080,99872,Yearling Notable Question,NULL,NULL,0,NULL,NULL 11834,10424706,1180369,NULL,NULL,NULL,0,NULL,NULL 11835,77799,326027,NULL,NULL,NULL,0,NULL,NULL 11836,563071,473726,Notable Question,NULL,NULL,0,NULL,NULL 11837,205149,470472,Nice Question Yearling,NULL,NULL,0,NULL,NULL 11838,72324,523233,Investor,NULL,NULL,0,NULL,NULL 11839,717626,1335436,Popular Question,NULL,NULL,0,NULL,NULL 11840,69363,86684,Yearling Good Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 11841,169555,636111,Revival Critic Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 11842,475772,1308862,Citizen Patrol,NULL,NULL,0,NULL,NULL 11843,44352,564821,NULL,NULL,NULL,0,NULL,NULL 11844,5925933,848668,Necromancer Tenacious Announcer Excavator Revival Nice Answer Popular Question Custodian Proofreader Cleanup Necromancer Explainer Popular Question Yearling Reviewer Documentation Pioneer Quorum Custodian Notable Question Mortarboard Nice Answer Nice Answer Caucus Suffrage Vox Populi Electorate Popular Question Custodian Necromancer Announcer Yearling Caucus Constituent Necromancer Good Answer Documentation User Notable Question Necromancer Necromancer Caucus Constituent Popular Question Yearling,NULL,NULL,1,NULL,How to output my ruby commandline text in different colours ruby command line colors pHow can make the puts commands output from commandline based ruby program colour would appreciated any references to how call each different colour also ppLets say we start with this ppre codeputs The following word is blue Im Blue puts The following word is green Im Green puts The following word is red Im Red code prepAnd get different text want in different colours want You get the idea ppIm using Ubuntu would need to change my approach so that the program outputs correctly in diff os pThought add another solution as it does things little differently and includes more colour codes ppFirst some examples ppUsing method chaining ppre codeString include AnsiTextStyles puts How are you blue bold am good red boldputs How are you blue bold am good red bold code prepUsing the codestyle code method and applying multiple attributes ppre codeputs How are you style red puts am good style blue underline puts Good to hear style bg magenta blink code prepThis can be used to store style attributes in some manner to apply later ppre codetext styles red bold red bold blue underline blue underline pretty bg magenta blink text styles each do name style styled text Text styled multiple ways style style puts name styled text end code prepI ve given few more examples on href https gist github com br3nt 762f232cb37cd1b4834288d4a1c4d243 rel nofollow this gist created and expanded the code to include refinements so that modifications to String are scoped ppThis is the basic code ppre codemodule AnsiTextStyles TEXT ATTRIBUTES text properties none turn off all attributes bold bright these do the same thing really italic underline blink reverse swap foreground and background colours hide foreground color same as background foreground colours black 30 grey 90 lt grey 37 white gt 97 red 31 lt red 91 green 32 lt green 92 dk yellow 33 brown 33 yellow 93 blue 34 lt blue 94 magenta 35 pink 95 lt magenta 95 cyan 36 lt cyan 96 default 39 background colours bg black 40 bg grey 100 bg lt grey 47 bg white 107 bg red 41 bg lt red 101 bg green 42 bg lt green 102 bg dk yellow 43 bg brown 43 bg yellow 103 bg blue 44 bg lt blue 104 bg magenta 45 bg pink 105 bg lt magenta 105 bg cyan 46 bg lt cyan 106 def self text attributes TEXT ATTRIBUTES keys end applies the text attributes to the current string def style text attributes codes TEXT ATTRIBUTES values at text attributes flatten compact sm codes join self to endend code pre 11845,381599,1444956,Notable Question,NULL,NULL,0,NULL,NULL 11846,460050,618378,Editor Popular Question,NULL,NULL,0,NULL,NULL 11847,3010973,371116,NULL,NULL,NULL,0,NULL,NULL 11848,1441,371116,NULL,NULL,NULL,0,NULL,NULL 11849,2024136,371116,NULL,NULL,NULL,0,NULL,NULL 11850,368919,543915,Popular Question Good Question Custodian Notable Question Yearling Popular Question Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 11851,427990,1017559,Caucus Curious Yearling,NULL,NULL,0,NULL,NULL 11852,902207,1332548,Necromancer,NULL,NULL,0,NULL,NULL 11853,16379,74733,NULL,NULL,NULL,0,NULL,NULL 11854,113611,1161446,NULL,NULL,NULL,0,NULL,NULL 11855,481374,120871,Popular Question Revival Yearling Notable Question Necromancer Notable Question Revival Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 11856,178370,1362456,NULL,NULL,NULL,0,NULL,NULL 11857,93887,794099,NULL,NULL,NULL,0,NULL,NULL 11858,1612111,827153,NULL,NULL,NULL,0,NULL,NULL 11859,357324,630727,NULL,NULL,NULL,0,NULL,NULL 11860,95883,126647,NULL,NULL,NULL,0,NULL,NULL 11861,1392159,814492,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11862,49821,481753,Curious Revival Popular Question,NULL,NULL,0,NULL,NULL 11863,515398,798312,Notable Question,NULL,NULL,0,NULL,NULL 11864,322813,238186,NULL,NULL,NULL,0,NULL,NULL 11865,464869,1181827,Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Popular Question Inquisitive Tumbleweed Caucus Nice Question Popular Question Notable Question Popular Question Popular Question Promoter Notable Question Nice Question Enthusiast Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Nice Question Famous Question Yearling Good Question Nice Question Popular Question Famous Question Caucus Famous Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 11866,620866,564314,NULL,NULL,NULL,0,NULL,NULL 11867,357735,670768,Yearling Civic Duty Informed Yearling Necromancer Student,NULL,pre coderawQuery SELECT id name FROM people WHERE name AND id new String David code prepYou pass string array with an equal number of elements as you have it is not valid query The is only applicable to values,0,NULL,NULL 11868,23125,24848,Yearling Excavator Good Answer Organizer Notable Question,NULL,NULL,0,NULL,NULL 11869,125436,704939,NULL,NULL,NULL,0,NULL,NULL 11870,98692,176021,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 11871,885969,371718,NULL,NULL,NULL,0,NULL,NULL 11872,425671,143383,Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 11873,265211,186675,NULL,NULL,NULL,0,NULL,NULL 11874,320512,1010025,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 11875,13688,659988,Announcer Yearling Nice Answer Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened Yearling Announcer Announcer Announcer Citizen Patrol Great Answer Yearling Caucus Announcer Custodian Announcer Announcer Nice Answer Enlightened expo Announcer,NULL,NULL,0,NULL,NULL 11876,1508220,768693,Editor Excavator Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 11877,298217,869942,Nice Answer Yearling Cleanup Revival Scholar,NULL,NULL,0,NULL,NULL 11878,448390,667722,Teacher,NULL,NULL,0,NULL,NULL 11879,146867,744032,Necromancer,NULL,NULL,0,NULL,NULL 11880,1111216,1342127,NULL,NULL,NULL,0,NULL,NULL 11881,34773,180713,Enlightened,NULL,NULL,0,NULL,NULL 11882,1126444,922848,NULL,NULL,NULL,0,NULL,NULL 11883,251298,1288059,Editor Student,NULL,NULL,0,NULL,NULL 11884,6474,463454,Yearling Nice Answer Caucus Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 11885,7137,413001,NULL,NULL,NULL,0,NULL,NULL 11886,499015,636906,NULL,NULL,NULL,0,NULL,NULL 11887,212927,562012,NULL,NULL,NULL,0,NULL,NULL 11888,504940,1505142,Teacher,NULL,NULL,0,NULL,NULL 11889,2036569,1290802,NULL,NULL,NULL,0,NULL,NULL 11890,648837,1351981,NULL,NULL,NULL,0,NULL,NULL 11891,958014,346107,NULL,NULL,NULL,0,NULL,NULL 11892,431551,92932,Custodian Custodian Nice Answer Cleanup Yearling Good Answer Popular Question Good Answer Custodian Yearling Guru Census Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 11893,370258,1381009,NULL,NULL,NULL,0,NULL,NULL 11894,28858,60664,Yearling Great Answer Notable Question Nice Answer css html Great Answer Guru Notable Question Yearling Nice Answer Enlightened Great Answer Popular Question Guru Notable Question Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 11895,199552,1360048,NULL,NULL,NULL,0,NULL,NULL 11896,33598,433970,Commentator Critic Yearling Nice Answer Announcer Popular Question Yearling Nice Question Nice Answer Yearling Good Answer Documentation User Notable Question Yearling Civic Duty Caucus Constituent Yearling,NULL,p5 years later we finally have better solution Use href https developer mozilla org en docs Web API MutationObserver rel noreferrer MutationObserver ppIn short ppre codenew MutationObserver function mutations console log mutations target nodeValue observe document querySelector title subtree true characterData true code prepWith comments ppre code select the target nodevar target document querySelector title create an observer instancevar observer new MutationObserver function mutations We need only first event and only new value of the title console log mutations target nodeValue configuration of the observer var config subtree true characterData true pass in the target node as well as the observer optionsobserver observe target config code prepAlso href http caniuse com search Mutation rel noreferrer Mutation Observer has awesome browser support img src https imgur com v9s8lny png alt It wasn working for me when set document title directly either used Chrome 52 However adding childList true to the config object fixed it,0,NULL,NULL 11897,8000,1357488,NULL,NULL,NULL,0,NULL,NULL 11898,246801,111094,Favorite Question Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 11899,4095,236574,Informed Yearling Critic Documentation User Editor Commentator Census Yearling Tenacious Yearling Citizen Patrol Yearling Yearling Unsung Hero Yearling,NULL,NULL,0,NULL,NULL 11900,2569035,1337367,Caucus Revival,NULL,NULL,0,NULL,NULL 11901,66816,275754,NULL,NULL,NULL,0,NULL,NULL 11902,1146711,454421,Nice Answer Good Answer Necromancer Yearling Necromancer Yearling Popular Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11903,556610,240316,Yearling Nice Answer Critic Good Answer Revival,NULL,NULL,0,NULL,NULL 11904,91547,1541138,Editor Teacher Informed Student Scholar Supporter Citizen Patrol Documentation User Commentator Critic Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 11905,194160,1034431,Census,NULL,NULL,0,NULL,NULL 11906,270043,1405526,NULL,NULL,NULL,0,NULL,NULL 11907,204134,431110,NULL,NULL,NULL,0,NULL,NULL 11908,38459,1152653,Supporter Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11909,111064,928092,NULL,NULL,NULL,0,NULL,NULL 11910,824163,854513,NULL,NULL,NULL,0,NULL,NULL 11911,1492185,854513,NULL,NULL,NULL,0,NULL,NULL 11912,741665,886946,NULL,NULL,NULL,0,NULL,NULL 11913,560559,830877,NULL,NULL,NULL,0,NULL,NULL 11914,232830,388087,Necromancer,NULL,NULL,0,NULL,NULL 11915,1113806,596032,NULL,NULL,NULL,0,NULL,NULL 11916,410519,433779,Good Question Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 11917,1522135,1413777,NULL,NULL,NULL,0,NULL,NULL 11918,226222,271577,Popular Question Yearling Necromancer Nice Answer Popular Question Caucus Yearling Nice Answer Good Answer Caucus Popular Question Taxonomist Announcer Nice Answer Necromancer Documentation User Necromancer Inquisitive Necromancer Yearling Popular Question Nice Answer Popular Question Announcer Nice Question Nice Answer Enlightened Notable Question,NULL,pTo convert any string into SQLite identifier pulliEnsure the string can be encoded as UTF liliEnsure the string does not include any NUL characters liliReplace all code code with code code liliWrap the entire thing in double quotes li ulh3Implementation h3pre class lang python prettyprint override codeimport codecsdef quote identifier errors strict encodable encode utf errors decode utf nul index encodable find x00 if nul index gt error UnicodeEncodeError NUL terminated utf encodable nul index nul index NUL not allowed error handler codecs lookup error errors replacement error handler error encodable encodable replace x00 replacement return encodable replace code prepGiven string single argument it will escape and quote it correctly or raise an exception The second argument can be used to specify any error handler registered in href http docs python org library codecs html rel noreferrer the codecodecs code module The built in ones are pblockquote ul li code strict code raise an exception in case of an encoding error li li code replace code replace malformed data with suitable replacement marker such as code code or code ufffd code li li code ignore code ignore malformed data and continue without further notice li li code xmlcharrefreplace code replace with the appropriate XML character reference for encoding only li li code backslashreplace code replace with backslashed escape sequences for encoding only li ul blockquotepThis doesn check for reserved identifiers so if you try to create new codeSQLITE MASTER code table it won stop you ph3Example Usage h3pre class lang python prettyprint override codeimport sqlite3def test identifier identifier Tests an identifier to ensure it handled properly with sqlite3 connect memory as execute CREATE TABLE quote identifier identifier foo assert identifier execute SELECT name FROM SQLITE MASTER fetchone test identifier Héllo Hello workstest identifier 北方话 workstest identifier chr 0x20000 worksprint quote identifier Fo x00o replace prints Fo print quote identifier Fo x00o ignore prints Foo print quote identifier Fo x00o raises UnicodeEncodeErrorprint quote identifier chr 0xD800 raises UnicodeEncodeError code preh3Observations and References h3ulliSQLite identifiers are href http www sqlite org datatype3 html storageclasses rel noreferrer codeTEXT code not binary ulli href http www sqlite org faq html q7 rel noreferrer codeSQLITE MASTER code schema in the FAQ liliPython SQLite API yelled at me when gave it bytes it couldn decode as text liliPython SQLite API requires queries be codestr codes not codebytes code li ul li ululliSQLite identifiers are quoted using double quotes ulli href http www sqlite org lang keywords html rel noreferrer SQL as Understood by SQLite li ul li ululliDouble quotes in SQLite identifiers are escaped as two double quotes li ululliSQLite identifiers preserve case but they are case insensitive towards ASCII letters It is possible to enable unicode aware case insensitivity ulli href http www sqlite org faq html q18 rel noreferrer SQLite FAQ Question 18 li ul li ululliSQLite does not support the href http en wikipedia org wiki Null character rel noreferrer NUL character in strings or identifiers ulli href http www sqlite org src tktview name 57c971fc74 rel noreferrer SQLite Ticket 57c971fc74 li ul li ululli codesqlite3 code can handle any other unicode string as long as it can be properly encoded to UTF Invalid strings could cause crashes between Python and Python or thereabouts Python accepted these invalid strings but this is considered bug ulli href http bugs python org issue12569 rel noreferrer Python Issue 12569 lili href http hg python org cpython file 42ec507815d2 Modules sqlite cursor rel noreferrer Modules sqlite cursor liliI tested it bunch li ul li ul Since your answer seems the most comprehensive on this topic if you happen to know perhaps you could add mention of restrictions or special handling of the empty string especially since the likes of IndexedDB do allow it as an identifier see some implementation treat empty strings as temporary database pThis helps for HTML5 SQLite ppre codetx executeSql SELECT name sql FROM sqlite master WHERE type table AND name your table name function tx results var columnParts results rows item sql replace split RegEx var columnNames for in columnParts if typeof columnParts string columnNames push columnParts split console log columnNames Your code which uses the columnNames code prepYou can reuse the regex in your language to get the column names ppShorter Alternative ppre codetx executeSql SELECT name sql FROM sqlite master WHERE type table AND name your table name function tx results var columnNames results rows item sql replace replace split console log columnNames Your code which uses the columnNames code pre Great solution was concerned this wouldn include subsequent column alterations but per the spec the sql column contains copy of the original CREATE statement text that created the object except normalized as described above and as modified by subsequent ALTER TABLE statements Rationales consequences of WebIDL class inheritance requirements javascript indexeddb prototypal inheritance webidl pIn JavaScript library Node and browser to which am contributing IndexedDBShim for the sake of complete test coverage am hoping to ensure we can not only better pass general W3C tests pertaining to IndexedDB but also the WebIDL based interface tests related to IndexedDB ppIn preparation for this when run the WebIDL tests of the W3C over the codeEvent code and codeCustomEvent code interfaces with the Event polyfills we are using one testing requirement that becomes evident after parsing codeinterface CustomEvent Event code is that the prototype of codeCustomEvent code must be set to codeEvent code Please note that am not referring to any requirement that the prototype of codeCustomEvent code emobjects em must inherit from codeEvent code ala codeCustomEvent prototype new Event code or codeCustomEvent prototype Object create Event code mind you but that the prototype of the object responsible for the class the constructor function codeCustomEvent code is set to codeEvent code rather than as the default codeFunction prototype code ppSure enough in Chrome console see that for the built in interfaces codeObject getPrototypeOf CustomEvent Event code is indeed codetrue code As far as can tell the only standards based way can get this to occur in polyfill is to do the following ppre codefunction ShimEvent function ShimCustomEvent Object setPrototypeOf ShimCustomEvent ShimEvent code prep but see warnings on href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object setPrototypeOf rel nofollow noreferrer MDN that this method is slow across all browsers ppI guess will just need to choose on whether the performance hit is worth the greater standards compliance ppHowever in any case still like to have better understanding to know of what consequence it is for interfaces to inherit in this manner and perhaps this is more question of my understanding of JavaScript rather than of WebIDL per se ppSince by the fact of such mere association between the function object prototype the methods of the inheriting interface do not get inherited by the base interface is the expectation of prototype connection between the class functions to merely express the inheritance hierarchy between the interfaces for the sake of any who might wish to introspect on them within code Or is there some other practical consequence to this particular requirement of class prototype connection While the topic within the question has some bearing potentially that particular question was based on mistaken understanding of the MDN docs and was actually about EventListener Categories for rejection by the Structured Cloning Algorithm javascript clone indexeddb postmessage pI seeking to faithfully implement the Structured Cloning Algorithm for an IndexedDB polyfill including for Node While the algorithm explicit whitelisting of certain types is mostly clear more at loss for understanding its blanket blacklisting and how to detect such blacklisted types ppThe Structured Cloning Algorithm href https html spec whatwg org multipage infrastructure html safe passing of structured data rel nofollow noreferrer states pblockquote pBy default platform objects are not cloneable objects blockquotep where platform object is href https heycam github io webidl dfn platform object rel nofollow noreferrer defined in WebIDL pblockquote pIn given implementation of set of IDL fragments an object can be described as being platform object user object or neither There are two kinds of object that are considered to be platform objects ul liobjects that implement non callback interface li liobjects representing IDL DOMExceptions li ul blockquotepAs to another category of potentially non clonable objects the SCA after whitelisting certain types href https html spec whatwg org multipage infrastructure html structuredclone rel nofollow noreferrer mentions pblockquote ol start 18 liOtherwise if input has any internal slot other than Prototype or Extensible then throw DataCloneError DOMException li ol pFor instance PromiseState or WeakMapData internal slot ol start 19 liOtherwise if input is an exotic object then throw DataCloneError DOMException li ol blockquotepAn exotic object is defined in href https tc39 github io ecma262 sec exotic object rel nofollow noreferrer ECMAScript 2017 as an pblockquote pobject that does not have the default behaviour for one or more of the essential internal methods NOTE Any object that is not an ordinary object is an exotic object blockquotepSince SCA throws for codeIsCallable code which checks for code Call code and All ECMAScript function objects have the Call internal method defined here have excluded the essential internal methods for functions leading to the following pulli GetPrototypeOf SetPrototypeOf IsExtensible PreventExtensions GetOwnProperty DefineOwnProperty HasProperty Get Set Delete OwnPropertyKeys li ulpSo few questions arise as to conditions for rejection polliHow to detect platform objects for default blacklisting and how to detect find those platform objects which do have code Clone code internal method and thus can be whitelisted liliFor rejecting non whitelisted array exotic objects that are not defined in ECMAScript itself how to find which other specifications do not offer the default behavior for the essential internal methods above in their objects unless the href https html spec whatwg org multipage infrastructure html cloneable objects rel nofollow noreferrer HTML spec statement that Objects defined in the JavaScript specification are handled by the StructuredClone abstract operation directly indicates that no non ECMAScript defined objects will get this algorithm applied liliWhether other specifications besides ECMAScript define their own internal slots for their objects which might be another criterion for rejection li olpMy implementation thus far is ppre codefunction throwUponDataCloneError val Should also throw with IsDetachedBuffer process not called within the ECMAScript spec We are not dealing with Blob File at this point as the IndexedDB spec requires synchronous rejection and we apparently have to use deprecated sync XHR or readFileSync in Node to get this Proxy should be rejected but no apparent way to introspect on it const stringTag toString call val slice if typeof val symbol Symbol toStringTag is only Symbol for its initial value so safer to check typeof Function All functions including bound function exotic objects rejected per IsCallable check could also be covered by typeof function Arguments non array exotic object Error Error and other errors have the ErrorData internal slot and give Error The following checks are only based on the default expected toStringTag values Module non array exotic object Promise Promise instances have an extra slot PromiseState but not throwing in Chrome postMessage WeakMap WeakMap instances have an extra slot WeakMapData but not throwing in Chrome postMessage WeakSet WeakSet instances have an extra slot WeakSetData but not throwing in Chrome postMessage includes stringTag val Object prototype non array exotic object but not throwing in Chrome postMessage throw new DOMException The object cannot be cloned DataCloneError code prepAs one means of detecting platform objects WebIDL states pblockquote pThe class string of platform object that implements one or more interfaces must be the identifier of the primary interface of the platform object blockquotep where class string is href https heycam github io webidl dfn class string rel nofollow noreferrer defined as pblockquote pthe string to include in the string returned from codeObject prototype toString code If an object has class string then the object must at the time it is created have property whose name is the code code symbol and whose value is the specified string blockquotepIn fact one JS implementation of SCA could find href https github com traviskaufman cycloneJS blob master cyclone js rel nofollow noreferrer CycloneJS takes this approach in throwing upon any non recognized code code ppHowever am concerned that polliEspecially as code code is not an internal slot and thus objects having distinct one is not an automatic disqualifier be concerned rejecting any object with such distinct tag would be excessively prohibitive But maybe these cases would be too few to be of concern liliI am still left however with the question of whether there is need to scour specs for non default behavior of essential internal methods to reject those too Likewise if other specifications besides ECMAScript define their own internal slots which might be another criterion for rejection wonder if it is safe to assume for both cases though that most if not all of these would indeed have their own distinct code code and could thus be rejected per the approach in concern li olpSo essentially like to know whether the codeObject prototype toString code whitelisting approach ought to be mostly adequate to avoid false positives or false negatives and whether any other detection techniques could give more granular control Btw FWIW regarding the mistaken non failure of Promise WeakMap and WeakSet in Chrome step 18 of the SCA reported https bugs chromium org chromium issues detail id 698564 but it got classified as spam Categories for rejection by the Structured Cloning Algorithm javascript clone indexeddb postmessage pI seeking to faithfully implement the Structured Cloning Algorithm for an IndexedDB polyfill including for Node While the algorithm explicit whitelisting of certain types is mostly clear more at loss for understanding its blanket blacklisting and how to detect such blacklisted types ppThe Structured Cloning Algorithm href https html spec whatwg org multipage infrastructure html safe passing of structured data rel nofollow noreferrer states pblockquote pBy default platform objects are not cloneable objects blockquotep where platform object is href https heycam github io webidl dfn platform object rel nofollow noreferrer defined in WebIDL pblockquote pIn given implementation of set of IDL fragments an object can be described as being platform object user object or neither There are two kinds of object that are considered to be platform objects ul liobjects that implement non callback interface li liobjects representing IDL DOMExceptions li ul blockquotepAs to another category of potentially non clonable objects the SCA after whitelisting certain types href https html spec whatwg org multipage infrastructure html structuredclone rel nofollow noreferrer mentions pblockquote ol start 18 liOtherwise if input has any internal slot other than Prototype or Extensible then throw DataCloneError DOMException li ol pFor instance PromiseState or WeakMapData internal slot ol start 19 liOtherwise if input is an exotic object then throw DataCloneError DOMException li ol blockquotepAn exotic object is defined in href https tc39 github io ecma262 sec exotic object rel nofollow noreferrer ECMAScript 2017 as an pblockquote pobject that does not have the default behaviour for one or more of the essential internal methods NOTE Any object that is not an ordinary object is an exotic object blockquotepSince SCA throws for codeIsCallable code which checks for code Call code and All ECMAScript function objects have the Call internal method defined here have excluded the essential internal methods for functions leading to the following pulli GetPrototypeOf SetPrototypeOf IsExtensible PreventExtensions GetOwnProperty DefineOwnProperty HasProperty Get Set Delete OwnPropertyKeys li ulpSo few questions arise as to conditions for rejection polliHow to detect platform objects for default blacklisting and how to detect find those platform objects which do have code Clone code internal method and thus can be whitelisted liliFor rejecting non whitelisted array exotic objects that are not defined in ECMAScript itself how to find which other specifications do not offer the default behavior for the essential internal methods above in their objects unless the href https html spec whatwg org multipage infrastructure html cloneable objects rel nofollow noreferrer HTML spec statement that Objects defined in the JavaScript specification are handled by the StructuredClone abstract operation directly indicates that no non ECMAScript defined objects will get this algorithm applied liliWhether other specifications besides ECMAScript define their own internal slots for their objects which might be another criterion for rejection li olpMy implementation thus far is ppre codefunction throwUponDataCloneError val Should also throw with IsDetachedBuffer process not called within the ECMAScript spec We are not dealing with Blob File at this point as the IndexedDB spec requires synchronous rejection and we apparently have to use deprecated sync XHR or readFileSync in Node to get this Proxy should be rejected but no apparent way to introspect on it const stringTag toString call val slice if typeof val symbol Symbol toStringTag is only Symbol for its initial value so safer to check typeof Function All functions including bound function exotic objects rejected per IsCallable check could also be covered by typeof function Arguments non array exotic object Error Error and other errors have the ErrorData internal slot and give Error The following checks are only based on the default expected toStringTag values Module non array exotic object Promise Promise instances have an extra slot PromiseState but not throwing in Chrome postMessage WeakMap WeakMap instances have an extra slot WeakMapData but not throwing in Chrome postMessage WeakSet WeakSet instances have an extra slot WeakSetData but not throwing in Chrome postMessage includes stringTag val Object prototype non array exotic object but not throwing in Chrome postMessage throw new DOMException The object cannot be cloned DataCloneError code prepAs one means of detecting platform objects WebIDL states pblockquote pThe class string of platform object that implements one or more interfaces must be the identifier of the primary interface of the platform object blockquotep where class string is href https heycam github io webidl dfn class string rel nofollow noreferrer defined as pblockquote pthe string to include in the string returned from codeObject prototype toString code If an object has class string then the object must at the time it is created have property whose name is the code code symbol and whose value is the specified string blockquotepIn fact one JS implementation of SCA could find href https github com traviskaufman cycloneJS blob master cyclone js rel nofollow noreferrer CycloneJS takes this approach in throwing upon any non recognized code code ppHowever am concerned that polliEspecially as code code is not an internal slot and thus objects having distinct one is not an automatic disqualifier be concerned rejecting any object with such distinct tag would be excessively prohibitive But maybe these cases would be too few to be of concern liliI am still left however with the question of whether there is need to scour specs for non default behavior of essential internal methods to reject those too Likewise if other specifications besides ECMAScript define their own internal slots which might be another criterion for rejection wonder if it is safe to assume for both cases though that most if not all of these would indeed have their own distinct code code and could thus be rejected per the approach in concern li olpSo essentially like to know whether the codeObject prototype toString code whitelisting approach ought to be mostly adequate to avoid false positives or false negatives and whether any other detection techniques could give more granular control And just added mention in the comment of the non failure of Object prototype which as non array exotic object appears it ought to fail too Categories for rejection by the Structured Cloning Algorithm javascript clone indexeddb postmessage pI seeking to faithfully implement the Structured Cloning Algorithm for an IndexedDB polyfill including for Node While the algorithm explicit whitelisting of certain types is mostly clear more at loss for understanding its blanket blacklisting and how to detect such blacklisted types ppThe Structured Cloning Algorithm href https html spec whatwg org multipage infrastructure html safe passing of structured data rel nofollow noreferrer states pblockquote pBy default platform objects are not cloneable objects blockquotep where platform object is href https heycam github io webidl dfn platform object rel nofollow noreferrer defined in WebIDL pblockquote pIn given implementation of set of IDL fragments an object can be described as being platform object user object or neither There are two kinds of object that are considered to be platform objects ul liobjects that implement non callback interface li liobjects representing IDL DOMExceptions li ul blockquotepAs to another category of potentially non clonable objects the SCA after whitelisting certain types href https html spec whatwg org multipage infrastructure html structuredclone rel nofollow noreferrer mentions pblockquote ol start 18 liOtherwise if input has any internal slot other than Prototype or Extensible then throw DataCloneError DOMException li ol pFor instance PromiseState or WeakMapData internal slot ol start 19 liOtherwise if input is an exotic object then throw DataCloneError DOMException li ol blockquotepAn exotic object is defined in href https tc39 github io ecma262 sec exotic object rel nofollow noreferrer ECMAScript 2017 as an pblockquote pobject that does not have the default behaviour for one or more of the essential internal methods NOTE Any object that is not an ordinary object is an exotic object blockquotepSince SCA throws for codeIsCallable code which checks for code Call code and All ECMAScript function objects have the Call internal method defined here have excluded the essential internal methods for functions leading to the following pulli GetPrototypeOf SetPrototypeOf IsExtensible PreventExtensions GetOwnProperty DefineOwnProperty HasProperty Get Set Delete OwnPropertyKeys li ulpSo few questions arise as to conditions for rejection polliHow to detect platform objects for default blacklisting and how to detect find those platform objects which do have code Clone code internal method and thus can be whitelisted liliFor rejecting non whitelisted array exotic objects that are not defined in ECMAScript itself how to find which other specifications do not offer the default behavior for the essential internal methods above in their objects unless the href https html spec whatwg org multipage infrastructure html cloneable objects rel nofollow noreferrer HTML spec statement that Objects defined in the JavaScript specification are handled by the StructuredClone abstract operation directly indicates that no non ECMAScript defined objects will get this algorithm applied liliWhether other specifications besides ECMAScript define their own internal slots for their objects which might be another criterion for rejection li olpMy implementation thus far is ppre codefunction throwUponDataCloneError val Should also throw with IsDetachedBuffer process not called within the ECMAScript spec We are not dealing with Blob File at this point as the IndexedDB spec requires synchronous rejection and we apparently have to use deprecated sync XHR or readFileSync in Node to get this Proxy should be rejected but no apparent way to introspect on it const stringTag toString call val slice if typeof val symbol Symbol toStringTag is only Symbol for its initial value so safer to check typeof Function All functions including bound function exotic objects rejected per IsCallable check could also be covered by typeof function Arguments non array exotic object Error Error and other errors have the ErrorData internal slot and give Error The following checks are only based on the default expected toStringTag values Module non array exotic object Promise Promise instances have an extra slot PromiseState but not throwing in Chrome postMessage WeakMap WeakMap instances have an extra slot WeakMapData but not throwing in Chrome postMessage WeakSet WeakSet instances have an extra slot WeakSetData but not throwing in Chrome postMessage includes stringTag val Object prototype non array exotic object but not throwing in Chrome postMessage throw new DOMException The object cannot be cloned DataCloneError code prepAs one means of detecting platform objects WebIDL states pblockquote pThe class string of platform object that implements one or more interfaces must be the identifier of the primary interface of the platform object blockquotep where class string is href https heycam github io webidl dfn class string rel nofollow noreferrer defined as pblockquote pthe string to include in the string returned from codeObject prototype toString code If an object has class string then the object must at the time it is created have property whose name is the code code symbol and whose value is the specified string blockquotepIn fact one JS implementation of SCA could find href https github com traviskaufman cycloneJS blob master cyclone js rel nofollow noreferrer CycloneJS takes this approach in throwing upon any non recognized code code ppHowever am concerned that polliEspecially as code code is not an internal slot and thus objects having distinct one is not an automatic disqualifier be concerned rejecting any object with such distinct tag would be excessively prohibitive But maybe these cases would be too few to be of concern liliI am still left however with the question of whether there is need to scour specs for non default behavior of essential internal methods to reject those too Likewise if other specifications besides ECMAScript define their own internal slots which might be another criterion for rejection wonder if it is safe to assume for both cases though that most if not all of these would indeed have their own distinct code code and could thus be rejected per the approach in concern li olpSo essentially like to know whether the codeObject prototype toString code whitelisting approach ought to be mostly adequate to avoid false positives or false negatives and whether any other detection techniques could give more granular control This is actually quite different from that topic Yes both threads impinge on the distinct behavior of what were formerly termed host objects though here it more looking at the HTML definition of platform objects they appear to be very closely related However my question is also asking for practical information related to better detection of those specific non built in or otherwise exotic objects for purposes of the structured cloning algorithm Please also read the comments above by the IndexedDB spec editor re the practical nature of the question Number MIN VALUE and toString javascript google chrome Working on Mac the following code ppre codeNumber MIN VALUE toString 32 5e 324 toString 32 code prepboth give the following expectedly long value in Safari 10 12603 30 34 pblockquote 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002 blockquotepwhile in Chrome 57 2987 133 64 bit they both give Similar results occur for other codetoString code calls including without parameters ppShouldn Chrome be able to handle at least this value itself albeit not any lower Is one or the other called for by the spec This is happening on Node but not on,1,AbortError within IndexedDB upgradeneeded event google chrome firefox indexeddb pIn the following code Firefox adds an codeAbortError code to console while Chrome does not ppre codevar bugDB test1 var delReq indexedDB deleteDatabase bugDB delReq onsuccess function var req indexedDB open bugDB req onupgradeneeded function console log upgrade req result close console log finish closing code prepAlthough this error doesn prevent execution of finish closing it does cause problems in Mocha Chai testing for Firefox though no such error occurs if codereq results close code is called within codereq onsuccess code handler Is this bug in Firefox If the codeAbortError code is being propagated somewhere by design how can one successfully trap it codee target result onabort code is not working Rationales consequences of WebIDL class inheritance requirements javascript indexeddb prototypal inheritance webidl pIn JavaScript library Node and browser to which am contributing IndexedDBShim for the sake of complete test coverage am hoping to ensure we can not only better pass general W3C tests pertaining to IndexedDB but also the WebIDL based interface tests related to IndexedDB ppIn preparation for this when run the WebIDL tests of the W3C over the codeEvent code and codeCustomEvent code interfaces with the Event polyfills we are using one testing requirement that becomes evident after parsing codeinterface CustomEvent Event code is that the prototype of codeCustomEvent code must be set to codeEvent code Please note that am not referring to any requirement that the prototype of codeCustomEvent code emobjects em must inherit from codeEvent code ala codeCustomEvent prototype new Event code or codeCustomEvent prototype Object create Event code mind you but that the prototype of the object responsible for the class the constructor function codeCustomEvent code is set to codeEvent code rather than as the default codeFunction prototype code ppSure enough in Chrome console see that for the built in interfaces codeObject getPrototypeOf CustomEvent Event code is indeed codetrue code As far as can tell the only standards based way can get this to occur in polyfill is to do the following ppre codefunction ShimEvent function ShimCustomEvent Object setPrototypeOf ShimCustomEvent ShimEvent code prep but see warnings on href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object setPrototypeOf rel nofollow noreferrer MDN that this method is slow across all browsers ppI guess will just need to choose on whether the performance hit is worth the greater standards compliance ppHowever in any case still like to have better understanding to know of what consequence it is for interfaces to inherit in this manner and perhaps this is more question of my understanding of JavaScript rather than of WebIDL per se ppSince by the fact of such mere association between the function object prototype the methods of the inheriting interface do not get inherited by the base interface is the expectation of prototype connection between the class functions to merely express the inheritance hierarchy between the interfaces for the sake of any who might wish to introspect on them within code Or is there some other practical consequence to this particular requirement of class prototype connection Categories for rejection by the Structured Cloning Algorithm javascript clone indexeddb postmessage pI seeking to faithfully implement the Structured Cloning Algorithm for an IndexedDB polyfill including for Node While the algorithm explicit whitelisting of certain types is mostly clear more at loss for understanding its blanket blacklisting and how to detect such blacklisted types ppThe Structured Cloning Algorithm href https html spec whatwg org multipage infrastructure html safe passing of structured data rel nofollow noreferrer states pblockquote pBy default platform objects are not cloneable objects blockquotep where platform object is href https heycam github io webidl dfn platform object rel nofollow noreferrer defined in WebIDL pblockquote pIn given implementation of set of IDL fragments an object can be described as being platform object user object or neither There are two kinds of object that are considered to be platform objects ul liobjects that implement non callback interface li liobjects representing IDL DOMExceptions li ul blockquotepAs to another category of potentially non clonable objects the SCA after whitelisting certain types href https html spec whatwg org multipage infrastructure html structuredclone rel nofollow noreferrer mentions pblockquote ol start 18 liOtherwise if input has any internal slot other than Prototype or Extensible then throw DataCloneError DOMException li ol pFor instance PromiseState or WeakMapData internal slot ol start 19 liOtherwise if input is an exotic object then throw DataCloneError DOMException li ol blockquotepAn exotic object is defined in href https tc39 github io ecma262 sec exotic object rel nofollow noreferrer ECMAScript 2017 as an pblockquote pobject that does not have the default behaviour for one or more of the essential internal methods NOTE Any object that is not an ordinary object is an exotic object blockquotepSince SCA throws for codeIsCallable code which checks for code Call code and All ECMAScript function objects have the Call internal method defined here have excluded the essential internal methods for functions leading to the following pulli GetPrototypeOf SetPrototypeOf IsExtensible PreventExtensions GetOwnProperty DefineOwnProperty HasProperty Get Set Delete OwnPropertyKeys li ulpSo few questions arise as to conditions for rejection polliHow to detect platform objects for default blacklisting and how to detect find those platform objects which do have code Clone code internal method and thus can be whitelisted liliFor rejecting non whitelisted array exotic objects that are not defined in ECMAScript itself how to find which other specifications do not offer the default behavior for the essential internal methods above in their objects unless the href https html spec whatwg org multipage infrastructure html cloneable objects rel nofollow noreferrer HTML spec statement that Objects defined in the JavaScript specification are handled by the StructuredClone abstract operation directly indicates that no non ECMAScript defined objects will get this algorithm applied liliWhether other specifications besides ECMAScript define their own internal slots for their objects which might be another criterion for rejection li olpMy implementation thus far is ppre codefunction throwUponDataCloneError val Should also throw with IsDetachedBuffer process not called within the ECMAScript spec We are not dealing with Blob File at this point as the IndexedDB spec requires synchronous rejection and we apparently have to use deprecated sync XHR or readFileSync in Node to get this Proxy should be rejected but no apparent way to introspect on it const stringTag toString call val slice if typeof val symbol Symbol toStringTag is only Symbol for its initial value so safer to check typeof Function All functions including bound function exotic objects rejected per IsCallable check could also be covered by typeof function Arguments non array exotic object Error Error and other errors have the ErrorData internal slot and give Error The following checks are only based on the default expected toStringTag values Module non array exotic object Promise Promise instances have an extra slot PromiseState but not throwing in Chrome postMessage WeakMap WeakMap instances have an extra slot WeakMapData but not throwing in Chrome postMessage WeakSet WeakSet instances have an extra slot WeakSetData but not throwing in Chrome postMessage includes stringTag val Object prototype non array exotic object but not throwing in Chrome postMessage throw new DOMException The object cannot be cloned DataCloneError code prepAs one means of detecting platform objects WebIDL states pblockquote pThe class string of platform object that implements one or more interfaces must be the identifier of the primary interface of the platform object blockquotep where class string is href https heycam github io webidl dfn class string rel nofollow noreferrer defined as pblockquote pthe string to include in the string returned from codeObject prototype toString code If an object has class string then the object must at the time it is created have property whose name is the code code symbol and whose value is the specified string blockquotepIn fact one JS implementation of SCA could find href https github com traviskaufman cycloneJS blob master cyclone js rel nofollow noreferrer CycloneJS takes this approach in throwing upon any non recognized code code ppHowever am concerned that polliEspecially as code code is not an internal slot and thus objects having distinct one is not an automatic disqualifier be concerned rejecting any object with such distinct tag would be excessively prohibitive But maybe these cases would be too few to be of concern liliI am still left however with the question of whether there is need to scour specs for non default behavior of essential internal methods to reject those too Likewise if other specifications besides ECMAScript define their own internal slots which might be another criterion for rejection wonder if it is safe to assume for both cases though that most if not all of these would indeed have their own distinct code code and could thus be rejected per the approach in concern li olpSo essentially like to know whether the codeObject prototype toString code whitelisting approach ought to be mostly adequate to avoid false positives or false negatives and whether any other detection techniques could give more granular control Number MIN VALUE and toString javascript google chrome Working on Mac the following code ppre codeNumber MIN VALUE toString 32 5e 324 toString 32 code prepboth give the following expectedly long value in Safari 10 12603 30 34 pblockquote 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002 blockquotepwhile in Chrome 57 2987 133 64 bit they both give Similar results occur for other codetoString code calls including without parameters ppShouldn Chrome be able to handle at least this value itself albeit not any lower Is one or the other called for by the spec,Conflicting use of babel register node js babeljs pI having what appears to be conflict in codebabel register code between two local npm packages ppIn package am doing the following ppre coderequire babel register require index code prepAnd in the index file of the same package ppre coderequire test code prepAnd in the test package ppre coderequire babel register require test index code prepThis throws the following error pp codethrow new Error only one instance of babel polyfill is allowed code ppBut if take the codebabel register code line out of the test package get the following error in the codeindex code file of the test package ppre codeimport fs from fs SyntaxError Unexpected reserved word code prepI have tried using codeSystem import code to import the test package as well using the polyfill specified on the BabelJS site but in this context get the same error as above How should go about importing one package into the other and preserve the ability to use ES6 imports exports and other ES6 features ppEDIT ve simplified this little am still requiring the test into to the first package but am not loading an intermediary file Instead the main file of test is set to codetest index code Theoretically now it is just loading single ES6 module which it should be able to register still get the above error pIn my case got away with setting ppre class lang js prettyprint override codeself babelPolyfill false code prepI don know if setting the polyfill second time will cause some subtle problems but with good number of unit tests didn see any problems by using this hack to avoid the script choking 11919,93166,396044,Popular Question,NULL,NULL,0,NULL,NULL 11920,72698,345905,Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11921,2881887,1172469,Autobiographer Custodian Editor,NULL,NULL,0,NULL,NULL 11922,1808314,1172469,Autobiographer Custodian Editor,NULL,NULL,0,NULL,NULL 11923,41206,180881,Custodian Custodian,NULL,NULL,0,NULL,NULL 11924,648166,1029186,NULL,NULL,NULL,0,NULL,NULL 11925,221948,1355000,NULL,NULL,NULL,0,NULL,NULL 11926,477723,63562,Yearling Self-Learner Yearling Popular Question Great Question Necromancer,NULL,NULL,0,NULL,NULL 11927,73965,697499,NULL,NULL,NULL,0,NULL,NULL 11928,529213,504890,NULL,NULL,NULL,0,NULL,NULL 11929,316432,1202170,NULL,NULL,NULL,0,NULL,NULL 11930,477312,1445017,Student Scholar Supporter Popular Question Popular Question Notable Question Editor Tumbleweed Nice Question Notable Question,NULL,NULL,0,NULL,NULL 11931,198929,127278,Popular Question Popular Question Popular Question Yearling Good Answer Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 11932,28780,622513,Revival Autobiographer Nice Answer Enlightened Caucus Editor,NULL,NULL,0,NULL,NULL 11933,3977459,936267,NULL,NULL,NULL,0,NULL,NULL 11934,157197,936267,NULL,NULL,NULL,0,NULL,NULL 11935,66829,1038218,Yearling,NULL,NULL,0,NULL,NULL 11936,10159,536622,NULL,NULL,NULL,0,NULL,NULL 11937,340308,881484,NULL,NULL,NULL,0,NULL,NULL 11938,461618,580788,NULL,NULL,NULL,0,NULL,NULL 11939,126495,1161076,Yearling Nice Question Notable Question Good Answer Notable Question Caucus Notable Question Yearling Popular Question Popular Question Custodian Famous Question Nice Answer Notable Question javascript Popular Question Popular Question Good Answer Yearling Notable Question Favorite Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 11940,1209077,1042111,Enthusiast Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 11941,106864,676522,NULL,NULL,NULL,0,NULL,NULL 11942,700663,431445,NULL,NULL,NULL,0,NULL,NULL 11943,917873,904232,NULL,NULL,NULL,0,NULL,NULL 11944,109146,560556,Notable Question,NULL,NULL,0,NULL,NULL 11945,518193,560556,Notable Question,NULL,NULL,0,NULL,NULL 11946,18474,32536,Revival Necromancer Necromancer Yearling Census Nice Answer Caucus Good Answer Documentation User Yearling Informed Yearling Custodian,NULL,NULL,0,NULL,NULL 11947,139127,8817,NULL,NULL,NULL,0,NULL,NULL 11948,88723,501291,Nice Answer,NULL,NULL,0,NULL,NULL 11949,182040,87917,NULL,NULL,NULL,0,NULL,NULL 11950,282119,166721,NULL,NULL,NULL,0,NULL,NULL 11951,270899,762045,NULL,NULL,NULL,0,NULL,NULL 11952,685218,387064,Tag Editor Popular Question Popular Question Notable Question Yearling Popular Question Caucus Popular Question Famous Question Favorite Question Famous Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question Famous Question Famous Question Notable Question Popular Question Notable Question Notable Question Nice Question Nice Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 11953,279192,1021264,NULL,NULL,NULL,0,NULL,NULL 11954,132269,171071,Popular Question,NULL,NULL,0,NULL,NULL 11955,166434,464387,NULL,NULL,NULL,0,NULL,NULL 11956,5842755,780196,Student Editor Commentator,NULL,NULL,0,NULL,NULL 11957,168861,780196,Student Editor Commentator,NULL,NULL,0,NULL,NULL 11958,62370,252004,Famous Question Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11959,169925,913175,NULL,NULL,NULL,0,NULL,NULL 11960,1186540,697587,Notable Question Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11961,741558,909910,Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 11962,20215,1305695,NULL,NULL,NULL,0,NULL,NULL 11963,2634529,1246923,NULL,NULL,NULL,0,NULL,NULL 11964,1081,358712,NULL,NULL,NULL,0,NULL,NULL 11965,600142,253573,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 11966,177395,16744,Nice Question Notable Question Good Question Notable Question Notable Question Favorite Question Nice Question Yearling Good Question Great Question Popular Question Famous Question Yearling Popular Question Nice Question Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 11967,6521339,801991,Teacher,NULL,NULL,0,NULL,NULL 11968,5733419,801991,Teacher,NULL,NULL,0,NULL,NULL 11969,3802462,801991,Teacher,NULL,NULL,0,NULL,NULL 11970,25582,801991,Teacher,NULL,NULL,0,NULL,NULL 11971,3718001,801991,Teacher,NULL,NULL,0,NULL,NULL 11972,1442514,1496945,NULL,NULL,NULL,0,NULL,NULL 11973,260674,1496945,NULL,NULL,NULL,0,NULL,NULL 11974,316175,1095756,Nice Answer Enlightened Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11975,430900,926199,NULL,NULL,NULL,0,NULL,NULL 11976,1086158,1436360,NULL,NULL,NULL,0,NULL,NULL 11977,186117,1123434,Informed Editor Student Popular Question,NULL,NULL,0,NULL,NULL 11978,898433,1557,Good Answer Yearling Famous Question Notable Question Popular Question Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 11979,921459,1481257,NULL,NULL,NULL,0,NULL,NULL 11980,22655,933381,NULL,NULL,NULL,0,NULL,NULL 11981,8648,1558175,Yearling Great Answer Yearling Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 11982,319345,381199,NULL,NULL,NULL,0,NULL,NULL 11983,4200932,716132,NULL,NULL,NULL,0,NULL,NULL 11984,192974,204854,NULL,NULL,NULL,0,NULL,NULL 11985,151032,1061458,Student Scholar Supporter Informed,NULL,NULL,0,NULL,NULL 11986,137988,403517,Yearling,NULL,NULL,0,NULL,NULL 11987,164966,578987,Revival Yearling Caucus Constituent Census,NULL,NULL,0,NULL,NULL 11988,558993,1270705,Notable Question,NULL,NULL,0,NULL,NULL 11989,23162,213906,NULL,NULL,NULL,0,NULL,NULL 11990,127009,860000,Nice Answer javascript Necromancer Nice Answer Enlightened Good Answer ios Necromancer Good Answer swift Popular Question Nice Answer Good Answer Nice Answer Announcer Yearling Popular Question Popular Question Nice Answer Great Answer Good Answer Nice Answer Caucus Good Answer Nice Answer Guru Nice Answer Enlightened Census Good Answer Popular Question Necromancer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Enlightened Announcer Guru Nice Question Announcer Documentation User Great Answer Necromancer Census Notable Question Nice Answer Enlightened Caucus Notable Question html Announcer Yearling Good Answer Notable Question Popular Question,NULL,strongUpdate strong ppSwift behavior here has changed quite bit since Not that it was that easy before but Swift has made it harder to convert between number types because it wants you to be explicit about what to do with precision loss Your new choices now look like this ppre codevar rating NSNumbervar ratingDouble DoubleratingDouble rating as Double 1ratingDouble Double exactly rating 2ratingDouble Double truncating rating 3ratingDouble rating doubleValue 4if let rating as Double ratingDouble if let Double exactly rating ratingDouble code preolli pThis calls href https github com apple swift blob a28c9d62138e5386ba9341332af218cd232c455e stdlib public SDK Foundation NSNumber swift L509 rel nofollow noreferrer codeDouble forceBridgeFromObjectiveC code which calls codeDouble exactly code with codeDouble code codeInt64 code or codeUInt64 code based on the stored type in coderating code It will fail and crash the app if the number isn exactly representable as codeDouble code codeUInt64 max code has more digits than codeDouble code can store so it ll crash lili pThis is exactly the same as except that it may also crash on codeNaN code since that check isn included lili pThis function always returns codeDouble code but will lose precision in cases where and would crash href https github com apple swift blob a28c9d62138e5386ba9341332af218cd232c455e stdlib public SDK Foundation NSNumber swift L484 rel nofollow noreferrer This literally just calls codedoubleValue code when passing in an codeNSNumber code lili pSame as lili pThis is like except that instead of crashing the app it ll return nil and the inside of the statement won be evaluated lili pSame as but like will return nil if the value is codeNaN code li olpIf you know your data source is dealing in doubles will probably all serve you about the same and would be my first choices though phrp strongOld Answer for Swift and strong ppThere are several things you can do ppre codevar rating NSNumbervar ratingDouble DoubleratingDouble rating as Double 1ratingDouble Double rating 2ratingDouble rating doubleValue code preolliThe first item takes advantage of codeObjective codebridging which allows codeAnyObject code and codeNSNumber code to be cast as href https developer apple com library ios documentation swift conceptual buildingcocoaapps WorkingWithCocoaDataTypes html apple ref doc uid TP40014216 CH6 XID 45 rel nofollow noreferrer codeDouble Float Int UInt Bool code liliThe second item presumably goes through constructor with the signature codeinit number NSNumber code couldn find it in the module or docs but passing codeAnyObject code in generated an error that it cannot be implicitly downcast to codeNSNumber code so it must be there and not just bridging liliThe third item doesn employ language features in the same way It just takes advantage of the fact that codedoubleValue code returns codeDouble code li olpOne benefit of is that it also works for codeAnyObject code so your code could be ppre codelet ratingDouble self prodResult prodsInfo prodList indexPath row avgRating as Double code prepNote that removed the code code from your function and moved the code code in Whenever you use you are eschewing the safety of code code so there no reason to do both together Which part isn working The above code works for me in Swift Xcode Implicit bridging ratingDouble rating was removed forever ago but explicit bridging works pI got the view debugger working again by placing the following fix in my project ppre code ifdef DEBUG import lt UIKit UIKit gt import lt objc runtime gt UIView FixViewDebugging void load Method original class getInstanceMethod self viewForBaselineLayout class addMethod self viewForFirstBaselineLayout method getImplementation original method getTypeEncoding original class addMethod self viewForLastBaselineLayout method getImplementation original method getTypeEncoding original endif code prepWhen your project loads the codeload code method will execute causing codeviewForFirstBaselineLayout code and codeviewForLastBaselineLayout code to use the codeviewForBaselineLayout code implementation if they are not currently implemented so view debugging gets iOS8 flavor the behavior it was looking for ppTo add this to your own project create new empty Objective file in your project and paste the contents in You can name it whatever you want call mine UIView FixViewDebugging If you are in pure Swift project you strongdo not strong need to create bridging header The file will be compiled into your project and you don need to reference it ppNote this will only work for debug builds because of the code ifdef DEBUG code You can remove it but then you may accidentally compile this into your release builds though it should have no ill side effects If this method isn working with these lines check that your target has codeDEBUG code in Build Settings Apple LLVM Preprocessing Preprocessor Macros Debug Thanks ve added that to my answer,1,NULL,Debug view hierarchy in Xcode fails xcode swift pThis function fails with runtime error ppre code UIWindow viewForFirstBaselineLayout unrecognized selector sent to instance 0x7fb9dae257d0 code prepAnybody encountered the same pp strongUPD strong brFails on simulator iOS works fine pp strongUPD2 strongcodeUIWindow code is created like ppre codewindow UIWindow frame UIScreen mainScreen bounds window rootViewController RootViewController rootVCwindow makeKeyAndVisible code pre pI got the view debugger working again by placing the following fix in my project ppre code ifdef DEBUG import lt UIKit UIKit gt import lt objc runtime gt UIView FixViewDebugging void load Method original class getInstanceMethod self viewForBaselineLayout class addMethod self viewForFirstBaselineLayout method getImplementation original method getTypeEncoding original class addMethod self viewForLastBaselineLayout method getImplementation original method getTypeEncoding original endif code prepWhen your project loads the codeload code method will execute causing codeviewForFirstBaselineLayout code and codeviewForLastBaselineLayout code to use the codeviewForBaselineLayout code implementation if they are not currently implemented so view debugging gets iOS8 flavor the behavior it was looking for ppTo add this to your own project create new empty Objective file in your project and paste the contents in You can name it whatever you want call mine UIView FixViewDebugging If you are in pure Swift project you strongdo not strong need to create bridging header The file will be compiled into your project and you don need to reference it ppNote this will only work for debug builds because of the code ifdef DEBUG code You can remove it but then you may accidentally compile this into your release builds though it should have no ill side effects If this method isn working with these lines check that your target has codeDEBUG code in Build Settings Apple LLVM Preprocessing Preprocessor Macros Debug 11991,20722,245297,NULL,NULL,NULL,0,NULL,NULL 11992,111646,611889,NULL,NULL,NULL,0,NULL,NULL 11993,258351,378111,NULL,NULL,NULL,0,NULL,NULL 11994,54445,1202797,NULL,NULL,NULL,0,NULL,NULL 11995,809921,1296105,NULL,NULL,NULL,0,NULL,NULL 11996,4497256,721,Good Answer Yearling Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 11997,95977,1536139,NULL,NULL,NULL,0,NULL,NULL 11998,158182,1344464,NULL,NULL,NULL,0,NULL,NULL 11999,234946,29148,Documentation User,NULL,NULL,0,NULL,NULL 12000,2313435,935361,Nice Answer Enlightened Yearling Notable Question Nice Answer Famous Question html Nice Answer Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 12001,1372444,935361,Nice Answer Enlightened Yearling Notable Question Nice Answer Famous Question html Nice Answer Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 12002,746388,559858,NULL,NULL,NULL,0,NULL,NULL 12003,250311,733617,NULL,NULL,NULL,0,NULL,NULL 12004,47269,166091,Good Answer Caucus Documentation User Revival,NULL,NULL,0,NULL,NULL 12005,348556,1229557,Self-Learner Yearling,NULL,NULL,0,NULL,NULL 12006,226621,422362,NULL,NULL,NULL,0,NULL,NULL 12007,372438,1088185,Informed Tumbleweed Editor Student Teacher Supporter Autobiographer Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 12008,752545,424348,NULL,NULL,NULL,0,NULL,NULL 12009,1899471,294218,Popular Question,NULL,NULL,0,NULL,NULL 12010,1024155,794431,NULL,NULL,NULL,0,NULL,NULL 12011,230505,1148505,Yearling Notable Question Popular Question Caucus Yearling Notable Question Custodian Census Yearling Curious Nice Question Revival Popular Question,NULL,NULL,0,NULL,NULL 12012,3412435,1281486,NULL,NULL,NULL,0,NULL,NULL 12013,683105,1281486,NULL,NULL,NULL,0,NULL,NULL 12014,121637,142571,Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 12015,47592,182777,NULL,NULL,NULL,0,NULL,NULL 12016,60837,1172677,NULL,NULL,NULL,0,NULL,NULL 12017,299119,1214646,Supporter,NULL,NULL,0,NULL,NULL 12018,1660385,1198198,Informed Teacher Notable Question Notable Question Tumbleweed Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12019,217120,817732,Student,NULL,NULL,0,NULL,NULL 12020,745812,817732,Student,NULL,NULL,0,NULL,NULL 12021,47279,285810,NULL,NULL,NULL,0,NULL,NULL 12022,853958,597204,NULL,NULL,NULL,0,NULL,NULL 12023,47476,775256,NULL,NULL,NULL,0,NULL,NULL 12024,8064440,515554,NULL,NULL,NULL,0,NULL,NULL 12025,9636807,515554,NULL,NULL,NULL,0,NULL,NULL 12026,180542,515554,NULL,NULL,NULL,0,NULL,NULL 12027,3969094,686457,NULL,NULL,NULL,0,NULL,NULL 12028,267547,535816,Yearling Necromancer Critic Yearling,NULL,NULL,0,NULL,NULL 12029,401104,70984,Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 12030,261204,327734,Yearling Revival,NULL,NULL,0,NULL,NULL 12031,319882,209022,Tumbleweed Yearling Good Answer Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 12032,2549889,1096728,Famous Question Popular Question Nice Answer Notable Question Necromancer Good Answer Citizen Patrol,NULL,NULL,0,NULL,NULL 12033,8609,1107775,NULL,NULL,NULL,0,NULL,NULL 12034,980367,545105,NULL,NULL,NULL,0,NULL,NULL 12035,418866,620298,NULL,NULL,NULL,0,NULL,NULL 12036,242479,110678,Informed,NULL,NULL,0,NULL,NULL 12037,176620,1058120,NULL,NULL,NULL,0,NULL,NULL 12038,17700,795364,Teacher,NULL,NULL,0,NULL,NULL 12039,35133,961521,NULL,NULL,NULL,0,NULL,NULL 12040,244357,772305,NULL,NULL,NULL,0,NULL,NULL 12041,517945,248003,Custodian Organizer Necromancer Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 12042,117400,871886,Editor Scholar Student,NULL,NULL,0,NULL,NULL 12043,17184,108359,Nice Answer Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Guru Guru Good Answer Yearling Nice Answer Enlightened Documentation User Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12044,29522,929784,NULL,NULL,NULL,0,NULL,NULL 12045,323266,675212,NULL,NULL,NULL,0,NULL,NULL 12046,50967,112785,Notable Question Famous Question Good Question Popular Question Notable Question Yearling Guru Popular Question Good Question Famous Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Famous Question Good Answer Good Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 12047,1332711,1354519,NULL,NULL,NULL,0,NULL,NULL 12048,701819,906935,NULL,NULL,NULL,0,NULL,NULL 12049,14386,1969,Good Answer Nice Answer Nice Answer Yearling Nice Answer Cleanup Yearling Notable Question Good Answer Good Question Popular Question Custodian Notable Question Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 12050,156705,9965,Announcer Great Answer Revival Revival Nice Answer Revival Nice Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened yql Revival Yearling Nice Answer Enlightened Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 12051,135760,23070,Guru Guru Good Answer Great Answer Populist Great Answer Famous Question Good Answer Great Answer Guru Great Answer Yearling Nice Answer Nice Answer Favorite Question Nice Answer Good Answer Popular Question Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Famous Question Yearling Populist Nice Answer Enlightened Great Answer Good Answer Guru Great Answer Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12052,4856275,23070,Guru Guru Good Answer Great Answer Populist Great Answer Famous Question Good Answer Great Answer Guru Great Answer Yearling Nice Answer Nice Answer Favorite Question Nice Answer Good Answer Popular Question Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Famous Question Yearling Populist Nice Answer Enlightened Great Answer Good Answer Guru Great Answer Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12053,426510,678330,NULL,NULL,NULL,0,NULL,NULL 12054,1362041,487099,Guru Yearling Popular Question Notable Question Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 12055,112544,1441259,NULL,NULL,NULL,0,NULL,NULL 12056,115619,123705,NULL,NULL,NULL,0,NULL,NULL 12057,20804,1288682,Popular Question,NULL,NULL,0,NULL,NULL 12058,500109,3747,Famous Question Notable Question Nice Question Famous Question Famous Question Yearling Famous Question Notable Question Famous Question Favorite Question Famous Question Yearling Notable Question Good Question Custodian Custodian Nice Question Nice Question Custodian Yearling,NULL,NULL,0,NULL,NULL 12059,110980,978430,Necromancer Excavator Nice Answer Caucus Constituent Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 12060,1969264,215192,Teacher,NULL,NULL,0,NULL,NULL 12061,10207730,826737,Necromancer Yearling Commentator,NULL,NULL,0,NULL,NULL 12062,181420,541639,Yearling Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 12063,36379,849050,NULL,NULL,NULL,0,NULL,NULL 12064,4657,449774,NULL,NULL,NULL,0,NULL,NULL 12065,20726,1375765,NULL,NULL,NULL,0,NULL,NULL 12066,424367,236475,Popular Question Investor Curious Revival,NULL,NULL,0,NULL,NULL 12067,89000,416130,Popular Question Yearling Announcer Yearling Yearling,NULL,Which Java annotation should use java nullpointerexception null annotations ide pI looking to make my code more readable as well as use tooling like IDE code inspection and or static code analysis FindBugs and Sonar to avoid NullPointerExceptions Many of the tools seem incompatible with each others code code code code code code annotation and listing all of them in my code would be terrible to read Any suggestions of which one is the best Here is the list of equivalent annotations ve found pulli strong codejavax validation constraints NotNull code strong bremCreated for runtime validation not static analysis em bra href http download oracle com javaee api javax validation constraints NotNull html rel noreferrer documentation lili strong codeedu umd cs findbugs annotations NonNull code strong bremUsed by href http findbugs sourceforge net rel noreferrer Findbugs static analysis and therefore Sonar now href https www sonarqube org rel noreferrer Sonarqube em bra href http findbugs sourceforge net manual annotations html rel noreferrer documentation lili strong codejavax annotation Nonnull code strong bremThis might work with Findbugs too but href https jcp org en jsr detail id 305 rel noreferrer JSR 305 is inactive See also href https stackoverflow com questions 2289694 what is the status of jsr 305 What is the status of JSR 305 ema href http code google com jsr 305 source browse trunk ri src main java javax annotation Nonnull java rel noreferrer source lili strong codeorg jetbrains annotations NotNull code strong bremUsed by IntelliJ IDEA IDE for static analysis em bra href https www jetbrains com help idea nullable and notnull annotations html rel noreferrer documentation lili strong codelombok NonNull code strong bremUsed to control code generation in href https projectlombok org rel noreferrer Project Lombok em bremPlaceholder annotation since there is no standard em bra href https github com rzwitserloot lombok blob master src core lombok NonNull java rel noreferrer source href https projectlombok org features NonNull html rel noreferrer documentation lili strong codeandroid support annotation NonNull code strong bremMarker annotation available in Android provided by support annotations package em bra href https developer android com reference android support annotation NonNull html rel noreferrer documentation lili strong codeorg eclipse jdt annotation NonNull code strong bremUsed by Eclipse for static code analysis em bra href http help eclipse org oxygen topic org eclipse jdt doc user tasks task improve code quality htm rel noreferrer documentation li ul Describing why it exists doesn mean there is an opinion here that its bad choice It has an of RUNTIME so that it can be used to validate constraints in runtime environment https stackoverflow com questions 3107970 how do different retention policies affect my annotations,0,NULL,NULL 12068,241404,218883,Favorite Question Popular Question Caucus Yearling Great Question,NULL,NULL,0,NULL,NULL 12069,59807,432449,NULL,NULL,NULL,0,NULL,NULL 12070,186751,1070201,Critic Notable Question,NULL,NULL,0,NULL,NULL 12071,204955,1389892,Notable Question,NULL,NULL,0,NULL,NULL 12072,547233,804106,NULL,NULL,NULL,0,NULL,NULL 12073,969544,796895,NULL,NULL,NULL,0,NULL,NULL 12074,883859,924327,NULL,NULL,NULL,0,NULL,NULL 12075,1209112,231377,NULL,NULL,NULL,0,NULL,NULL 12076,209021,108348,Announcer Great Answer Good Answer Announcer Necromancer Nice Answer Enlightened Yearling Good Answer Yearling Necromancer Custodian Famous Question Necromancer Yearling Guru Benefactor Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 12077,37887,623922,Yearling Revival,NULL,NULL,0,NULL,NULL 12078,39694,468618,Notable Question Nice Answer Enlightened Popular Question Yearling Good Answer Yearling Announcer Custodian Yearling,NULL,NULL,0,NULL,NULL 12079,1089109,773931,NULL,NULL,NULL,0,NULL,NULL 12080,461986,341639,NULL,NULL,NULL,0,NULL,NULL 12081,412007,671841,NULL,NULL,NULL,0,NULL,NULL 12082,91404,1691,Yearling Populist Yearling Yearling Custodian Yearling Revival Custodian Custodian Custodian Citizen Patrol Tenacious Necromancer Revival Explainer Great Answer Nice Answer Yearling Informed Excavator,NULL,NULL,0,NULL,NULL 12083,67064,1309435,NULL,NULL,NULL,0,NULL,NULL 12084,199114,136259,Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12085,563346,1235950,Yearling Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 12086,516148,288539,NULL,NULL,NULL,0,NULL,NULL 12087,116053,1375563,NULL,NULL,NULL,0,NULL,NULL 12088,1522252,1217759,Notable Question,NULL,NULL,0,NULL,NULL 12089,11965,1275446,NULL,NULL,NULL,0,NULL,NULL 12090,911902,1275446,NULL,NULL,NULL,0,NULL,NULL 12091,1503876,786434,Necromancer Yearling Documentation User Civic Duty Caucus Constituent Revival Curious Custodian Custodian Informed Custodian,NULL,pLooks like this ppre code lt grandfathered gt en GB oed ami bnn default enochian hak klingon lux mingo navajo pwn tao tay tsu sgn BE FR sgn BE NL sgn CH DE art lojban cel gaulish no bok no nyn zh guoyu zh hakka zh min zh min nan zh xiang lt language gt Za lt extlang gt Za Za Za Za lt script gt Za lt region gt Za lt variant gt Za z0 Za z0 lt extension gt 9A WY Za wy Za z0 lt privateUse gt Za z0 lt privateUse gt Za z0 code prepHere is the code to generate it in ppre codevar regular art lojban cel gaulish no bok no nyn zh guoyu zh hakka zh min zh min nan zh xiang var irregular en GB oed ami bnn default enochian hak klingon lux mingo navajo pwn tao tay tsu sgn BE FR sgn BE NL sgn CH DE var grandfathered lt grandfathered gt irregular regular var privateUse lt privateUse gt Za z0 var singleton 9A WY Za wy var extension lt extension gt singleton Za z0 var variant lt variant gt Za z0 Za z0 var region lt region gt Za var script lt script gt Za var extlang lt extlang gt Za Za var language lt language gt Za extlang Za Za var langtag language script region variant extension privateUse var languageTag grandfathered langtag privateUse Console WriteLine languageTag code prepI cannot guarantee its correctness may have made typos but it works fine on the examples in Appendix ppDepending on your environment you might need to remove the named capturing groups code lt gt code See it in action https www regexpal com fam 103066,0,NULL,NULL 12092,255521,1132947,Enthusiast,NULL,NULL,0,NULL,NULL 12093,1099352,657960,Yearling,NULL,NULL,0,NULL,NULL 12094,60843,1334800,NULL,NULL,NULL,0,NULL,NULL 12095,123621,757878,NULL,NULL,NULL,0,NULL,NULL 12096,282527,777989,NULL,NULL,NULL,0,NULL,NULL 12097,136621,147471,Guru Yearling Nice Answer Enlightened Nice Question Pundit Great Answer Nice Answer Nice Question Nice Answer Yearling Good Answer Great Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 12098,802,314318,Nice Question Custodian Yearling Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Yearling Notable Question Popular Question Popular Question Good Answer Famous Question Popular Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12099,182335,189481,Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 12100,165368,560596,NULL,NULL,NULL,0,NULL,NULL 12101,1621565,41910,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12102,396788,924661,NULL,NULL,NULL,0,NULL,NULL 12103,291728,537751,NULL,NULL,NULL,0,NULL,NULL 12104,16809,251084,NULL,NULL,NULL,0,NULL,NULL 12105,88391,98207,Notable Question Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12106,330609,439439,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12107,156061,83309,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12108,159384,715242,Famous Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 12109,142997,618333,NULL,NULL,NULL,0,NULL,NULL 12110,1597121,618333,NULL,NULL,NULL,0,NULL,NULL 12111,95074,846715,NULL,NULL,NULL,0,NULL,NULL 12112,233417,679194,NULL,NULL,NULL,0,NULL,NULL 12113,172478,390708,Stellar Question Popular Question Great Answer Nice Answer Yearling Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Populist Nice Answer Enlightened Yearling Popular Question Announcer Documentation User Census Announcer Nice Answer Enlightened Popular Question Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 12114,225875,123447,NULL,NULL,NULL,0,NULL,NULL 12115,575960,773449,Yearling Critic Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12116,1226970,482199,NULL,NULL,NULL,0,NULL,NULL 12117,4931,1380144,NULL,NULL,NULL,0,NULL,NULL 12118,514572,565814,NULL,NULL,NULL,0,NULL,NULL 12119,186066,472655,NULL,NULL,NULL,0,NULL,NULL 12120,445066,1399905,NULL,NULL,,0,, 12121,723163,433355,Yearling Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 12122,15986,76137,Yearling Nice Answer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 12123,1153896,499932,Favorite Question Good Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 12124,147608,1189769,Yearling Tenacious Civic Duty Yearling Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12125,64650,226800,Necromancer Notable Question Yearling Revival Nice Answer Notable Question Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 12126,63595,242644,Popular Question Nice Answer Enlightened Promoter Benefactor Nice Answer Enlightened Good Answer Notable Question Popular Question Yearling Notable Question Good Answer Yearling Popular Question Good Answer Nice Answer Nice Question Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 12127,155701,163522,NULL,NULL,NULL,0,NULL,NULL 12128,43149,756610,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 12129,46919,15901,Nice Answer Yearling Caucus Constituent Promoter Famous Question Caucus Yearling Notable Question Notable Question Taxonomist Yearling,NULL,NULL,0,NULL,NULL 12130,4272157,572192,NULL,NULL,NULL,0,NULL,NULL 12131,45856,294550,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 12132,507236,332022,Notable Question Yearling Notable Question Popular Question Good Answer Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 12133,207241,582386,Nice Answer Enlightened Proofreader Yearling Nice Answer Enlightened Guru Popular Question Yearling Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 12134,1352515,677156,NULL,NULL,NULL,0,NULL,NULL 12135,840592,1063052,Popular Question,NULL,NULL,0,NULL,NULL 12136,30454,499395,Guru Notable Question Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 12137,86854,19212,Notable Question Popular Question Good Question Famous Question Popular Question Famous Question Popular Question Necromancer Notable Question Famous Question Good Question Notable Question Notable Question Notable Question Popular Question Necromancer Nice Question Nice Question Good Question Notable Question Favorite Question Good Question Necromancer Good Answer Nice Question Popular Question Nice Question Good Question Good Question Popular Question Great Question Popular Question Favorite Question Popular Question Famous Question Popular Question Nice Question Famous Question Yearling Nice Question Popular Question Nice Question Popular Question Great Answer Notable Question Announcer Nice Answer Nice Question Great Answer Great Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Populist Famous Question Good Question Nice Question Good Answer Popular Question Popular Question Famous Question Nice Question Famous Question Notable Question Announcer Notable Question Popular Question Popular Question Announcer Nice Answer Notable Question Popular Question Great Answer Necromancer Nice Answer Nice Question Notable Question Nice Question Notable Question Nice Question Popular Question Notable Question Notable Question Nice Answer Notable Question Notable Question Yearling Necromancer Nice Question Nice Question Notable Question Popular Question Socratic Nice Answer Notable Question Nice Answer Popular Question Popular Question Notable Question Census Announcer Famous Question Notable Question Announcer Good Answer Good Question Good Question Favorite Question Famous Question Notable Question Nice Question Famous Question Notable Question Necromancer Famous Question Popular Question Famous Question Yearling Stellar Question Necromancer Revival Popular Question,NULL,Add centered text to the middle of hr like line html css xhtml line vertical alignment pI wondering what options one has in xhtml strict to create line on both sides of text like so ppreSection one Next section Section two prepI ve thought of doing some fancy things like this ppre code lt div style float left width 44 gt lt hr gt lt div gt lt div style float right width 44 gt lt hr gt lt div gt Next section code prepOr alternatively because the above has problems with alignment both vertical and horizontal ppre code lt table gt lt tr gt lt td style width 47 gt lt hr gt lt td gt lt td style vertical align middle text align center gt Next section lt td gt lt td style width 47 gt lt hr gt lt td gt lt tr gt lt table gt code prepThis also has alignment problems which solve with this mess ppre code lt table gt lt tr gt lt td style border bottom 1px solid gray width 47 gt amp nbsp lt td gt lt td style vertical align middle text align center rowspan gt Next section lt td gt lt td style border bottom 1px solid gray width 47 gt amp nbsp lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt td gt amp nbsp lt td gt lt tr gt lt table gt code prepIn addition to the alignment problems both options feel fudgy and be much obliged if you happened to have seen this before and know of an elegant solution useful answer here would employ CSS Grid,0,NULL,NULL 12138,482522,560697,NULL,NULL,NULL,0,NULL,NULL 12139,5054,119390,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12140,27230,1411531,NULL,NULL,NULL,0,NULL,NULL 12141,381248,22417,Good Answer Taxonomist Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12142,120442,1408322,NULL,NULL,NULL,0,NULL,NULL 12143,453106,1492879,NULL,NULL,NULL,0,NULL,NULL 12144,198378,879532,NULL,NULL,NULL,0,NULL,NULL 12145,1281822,1446475,NULL,NULL,NULL,0,NULL,NULL 12146,243517,1350577,NULL,NULL,NULL,0,NULL,NULL 12147,7537989,1350577,NULL,NULL,NULL,0,NULL,NULL 12148,4386829,1305354,NULL,NULL,NULL,0,NULL,NULL 12149,1084970,961712,Yearling Popular Question Nice Answer Good Answer Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 12150,201361,727652,Yearling Guru Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12151,2564,482495,NULL,NULL,NULL,0,NULL,NULL 12152,103986,563249,NULL,NULL,NULL,0,NULL,NULL 12153,9338668,105061,Popular Question Yearling Announcer Popular Question Yearling Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12154,120386,105061,Popular Question Yearling Announcer Popular Question Yearling Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12155,28469,454340,NULL,NULL,NULL,0,NULL,NULL 12156,65568,87858,Popular Question Nice Answer Yearling Notable Question Nice Answer Good Answer django Tenacious Yearling Good Answer Popular Question Nice Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 12157,146058,635806,Popular Question Nice Question Famous Question Popular Question Popular Question Custodian Citizen Patrol Organizer Yearling Nice Answer Enlightened Notable Question Yearling Documentation User Nice Question Notable Question Popular Question Popular Question Yearling Announcer Revival Nice Question Explainer Announcer,NULL,NULL,0,NULL,NULL 12158,1105621,48136,mocking Nice Answer Guru Nice Answer Nice Answer Guru Nice Answer Guru Good Answer Necromancer Caucus Good Answer Constituent Yearling Nice Answer Nice Answer Census Necromancer Necromancer Nice Answer Good Answer Nice Answer Nice Answer Announcer unit-testing Necromancer Nice Answer Guru Good Answer Good Answer Announcer Necromancer Caucus Good Answer Nice Answer Populist Nice Answer Guru Necromancer Reviewer Documentation User Revival Good Answer Yearling Census Good Answer Guru Nice Answer Necromancer Good Answer Nice Answer Enlightened Pundit Good Answer Revival Announcer Revival Necromancer Tumbleweed Nice Answer Cleanup Announcer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 12159,68799,140264,Notable Question Famous Question Nice Answer Enlightened Popular Question Necromancer Nice Answer Enlightened Popular Question Notable Question Nice Answer Yearling Good Answer Pundit Announcer Informed Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Enlightened Popular Question Notable Question Necromancer Good Answer Yearling Good Answer Nice Answer Good Answer Documentation User Good Answer Notable Question Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Nice Answer Good Answer Good Answer Necromancer Yearling Guru Famous Question,NULL,Segmentation fault occurring when modifying string using pointers string pointers reverse h2Context h2pI learning and trying to reverse string in place using pointers know you can use an array this is more about learning about pointers ph2Problem h2pI keep getting segmentation faults when trying to run the code below href https en wikipedia org wiki GNU Compiler Collection rel nofollow noreferrer GCC seems not to like the code end begin code line strong emWhy is that em strong ppEspecially since my code is nearly identical to href https stackoverflow com 198275 140264 the non evil function already discussed in another question ppre code include lt stdio gt include lt string gt void my strrev char begin char temp char end end begin strlen begin while end gt begin temp end end begin begin temp end begin main char string foobar my strrev string printf string code pre Possible duplicate of Why do get segmentation fault when writing to string initialized with char but not char http stackoverflow com questions 164194 why do get segmentation fault when writing to string initialized with cha Segmentation fault occurring when modifying string using pointers string pointers reverse h2Context h2pI learning and trying to reverse string in place using pointers know you can use an array this is more about learning about pointers ph2Problem h2pI keep getting segmentation faults when trying to run the code below href https en wikipedia org wiki GNU Compiler Collection rel nofollow noreferrer GCC seems not to like the code end begin code line strong emWhy is that em strong ppEspecially since my code is nearly identical to href https stackoverflow com 198275 140264 the non evil function already discussed in another question ppre code include lt stdio gt include lt string gt void my strrev char begin char temp char end end begin strlen begin while end gt begin temp end end begin begin temp end begin main char string foobar my strrev string printf string code pre Makes sense to me Voted to close too What is the difference between an interface and abstract class oop interface abstract class pWhat exactly is the difference between an interface and abstract class ve removed the PHP tag form this question since almost none of the answer are language specific and the question itself is not language specific,0,NULL,NULL 12160,460126,1364156,NULL,NULL,NULL,0,NULL,NULL 12161,29011,1097744,NULL,NULL,NULL,0,NULL,NULL 12162,2281777,1458765,NULL,NULL,NULL,0,NULL,NULL 12163,1143,576555,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12164,1232906,885036,Notable Question Good Answer Famous Question Yearling Popular Question Good Answer Necromancer Popular Question Good Answer Yearling Good Answer Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12165,8934,885036,Notable Question Good Answer Famous Question Yearling Popular Question Good Answer Necromancer Popular Question Good Answer Yearling Good Answer Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12166,1583453,1456715,Yearling,NULL,NULL,0,NULL,NULL 12167,285476,1456715,Yearling,NULL,NULL,0,NULL,NULL 12168,4976763,1456715,Yearling,NULL,NULL,0,NULL,NULL 12169,404178,86828,Yearling Popular Question Tumbleweed Popular Question Revival Good Question Yearling,NULL,NULL,0,NULL,NULL 12170,1613377,806246,Teacher Announcer,NULL,NULL,0,NULL,NULL 12171,65264,893502,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 12172,458318,1050048,NULL,NULL,NULL,0,NULL,NULL 12173,489,153574,Notable Question Informed Revival Notable Question Good Answer Notable Question Yearling Disciplined Census Caucus Yearling Nice Question Great Answer Famous Question Necromancer Nice Answer Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 12174,243963,1316689,Excavator Supporter Necromancer,NULL,NULL,0,NULL,NULL 12175,84959,483528,Famous Question Announcer Famous Question Revival Announcer Necromancer Revival Nice Answer Popular Question Yearling Famous Question Necromancer Nice Answer Popular Question Popular Question Good Answer Necromancer Nice Answer Revival Announcer Announcer Necromancer Announcer Yearling Good Answer Announcer Announcer Populist Nice Answer Enlightened Revival Announcer Nice Answer Nice Answer Announcer Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 12176,76178,320399,Custodian Notable Question Custodian Good Answer Popular Question Yearling Announcer Popular Question Notable Question Popular Question Popular Question Good Question Yearling Electorate Notable Question Notable Question Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Booster Announcer Announcer Announcer Popular Question Announcer Announcer Announcer Yearling Announcer Nice Answer Enlightened Announcer Booster Announcer Announcer Announcer Announcer Booster Booster,NULL,ElasticSearch Return Unique Values elasticsearch pHow would get the values of all the codelanguages code from the records and make them unique pp strongRecords strong ppre codePUT items language 10 PUT items language 11 PUT items language 10 code prep strongQuery strong ppre codeGET items search gt Expected Response 10 11 code prepAny help would be great For those researching this topic there also useful discussion here Find distinct values not distinct counts in elasticsearch http stackoverflow com 28189725 320399 pIf you use the option you need to provide an extension for your backups ppIf you have ppre codeFile1 txtFile2 cfg code prepThe command note the lack of space between code code and code code and the code code to make it work on new versions of Mac and on GNU ppre codesed original old link new link code prepcreate backup files like ppre codeFile1 txt originalFile2 cfg original code prepThere is no portable way to avoid making backup files because is impossible to find mix of sed commands that works on all cases pulli codesed code does not work on OS as it creates code code backups lili codesed code does not work on OS 10 but works on 10 lili codesed code not working on GNU li ul Will this always be an issue Is there some way that Apple might be able to create workaround package GNU sed with OSX Or couldn GNU sed support sed,0,NULL,NULL 12177,120640,73479,Yearling ios Caucus Yearling Caucus Constituent Nice Answer Yearling Caucus Custodian Good Answer,NULL,NULL,0,NULL,NULL 12178,769845,646856,NULL,NULL,NULL,0,NULL,NULL 12179,129476,27078,NULL,NULL,NULL,0,NULL,NULL 12180,23929,82439,NULL,NULL,NULL,0,NULL,NULL 12181,239341,411933,NULL,NULL,NULL,0,NULL,NULL 12182,233081,615625,NULL,NULL,NULL,0,NULL,NULL 12183,93724,48992,Tumbleweed,NULL,NULL,0,NULL,NULL 12184,143661,811111,Nice Answer Famous Question Popular Question Notable Question Yearling Good Question Favorite Question Yearling Good Question Yearling Great Answer Pundit Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 12185,106765,513677,NULL,NULL,NULL,0,NULL,NULL 12186,174751,1094297,NULL,NULL,NULL,0,NULL,NULL 12187,214664,1119623,Editor,NULL,NULL,0,NULL,NULL 12188,451112,178951,Popular Question,NULL,NULL,0,NULL,NULL 12189,265784,1293455,NULL,NULL,NULL,0,NULL,NULL 12190,743185,1238529,NULL,NULL,NULL,0,NULL,NULL 12191,161051,790141,Yearling Revival Necromancer Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 12192,261094,906020,Supporter,NULL,NULL,0,NULL,NULL 12193,1162568,262729,NULL,NULL,NULL,0,NULL,NULL 12194,3238660,161406,NULL,NULL,NULL,0,NULL,NULL 12195,1365584,471654,NULL,NULL,NULL,0,NULL,NULL 12196,80930,84848,NULL,NULL,NULL,0,NULL,NULL 12197,1076932,1563845,NULL,NULL,NULL,0,NULL,NULL 12198,46564,550125,Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 12199,146476,671702,NULL,NULL,NULL,0,NULL,NULL 12200,828705,673982,NULL,NULL,NULL,0,NULL,NULL 12201,35431,230526,Notable Question Nice Question Revival Yearling Famous Question,NULL,NULL,0,NULL,NULL 12202,372881,542905,NULL,NULL,NULL,0,NULL,NULL 12203,396512,468391,Necromancer Nice Answer Yearling Good Answer Yearling Nice Answer Good Answer Yearling Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 12204,725773,848281,NULL,NULL,NULL,0,NULL,NULL 12205,163843,1175799,NULL,NULL,NULL,0,NULL,NULL 12206,157026,267448,NULL,NULL,NULL,0,NULL,NULL 12207,4647558,511006,Yearling Autobiographer Yearling Custodian Notable Question Yearling Yearling Tenacious Popular Question Yearling Unsung Hero Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 12208,3287050,511006,Yearling Autobiographer Yearling Custodian Notable Question Yearling Yearling Tenacious Popular Question Yearling Unsung Hero Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 12209,77757,486820,Notable Question Popular Question Notable Question Nice Answer Enlightened Yearling Custodian Pundit Caucus Good Question Popular Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 12210,340243,401566,Critic Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 12211,607248,490730,NULL,NULL,NULL,0,NULL,NULL 12212,15884,362797,Citizen Patrol Custodian Informed Good Answer Caucus Yearling Custodian Caucus,NULL,NULL,0,NULL,NULL 12213,654271,1419037,Informed,NULL,NULL,0,NULL,NULL 12214,106709,599939,Census Documentation User Announcer Yearling,NULL,NULL,0,NULL,NULL 12215,68778,392008,NULL,NULL,NULL,0,NULL,NULL 12216,276448,307310,Famous Question Famous Question Yearling Popular Question php Caucus Necromancer Yearling Nice Answer Nice Answer Enlightened Census Caucus Yearling,NULL,NULL,0,NULL,NULL 12217,359793,94253,NULL,NULL,NULL,0,NULL,NULL 12218,262960,1318772,NULL,NULL,NULL,0,NULL,NULL 12219,289563,1064629,Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 12220,5932806,1064629,Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 12221,425655,1184357,Critic Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 12222,223310,1143575,Curious Good Answer Yearling Popular Question Popular Question Popular Question Census Guru Yearling Custodian Citizen Patrol Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 12223,148061,977153,Revival Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12224,23753,422891,Notable Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12225,133401,784092,NULL,NULL,NULL,0,NULL,NULL 12226,628837,336401,NULL,NULL,NULL,0,NULL,NULL 12227,75546,268981,Good Question Notable Question Popular Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 12228,912179,348292,Informed,NULL,NULL,0,NULL,NULL 12229,35129,623506,Popular Question Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 12230,3470993,623506,Popular Question Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 12231,294980,977705,NULL,NULL,NULL,0,NULL,NULL 12232,1714761,1247104,NULL,NULL,NULL,0,NULL,NULL 12233,2023456,1518239,NULL,NULL,NULL,0,NULL,NULL 12234,670779,1272904,Teacher Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12235,816982,608555,Revival Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 12236,209623,1324482,NULL,NULL,NULL,0,NULL,NULL 12237,1172786,829095,NULL,NULL,NULL,0,NULL,NULL 12238,808354,1227396,Curious Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 12239,544186,538216,Nice Answer javascript Nice Answer Necromancer Caucus Constituent Yearling Announcer Caucus Nice Answer Nice Answer Nice Question Good Answer Custodian Yearling arrays Necromancer Caucus Necromancer Good Answer Nice Question Popular Question Nice Answer Nice Answer,NULL,Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this just want to add that this type of thing is prime candidate for stronger enforcement in PHP suggest that whatever you do you keep this in mind Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this There isn anything concrete yet but if this code used interfaces or abstract classes in the inheritance then it would already be hard error expect their behavior to be unified in some future version of PHP possibly PHP,0,NULL,NULL 12240,207223,924133,Informed Autobiographer,NULL,NULL,0,NULL,NULL 12241,470329,788076,NULL,NULL,NULL,0,NULL,NULL 12242,28328,112859,Notable Question,NULL,NULL,0,NULL,NULL 12243,791562,1510210,Student,NULL,NULL,0,NULL,NULL 12244,17522,483840,Famous Question,NULL,NULL,0,NULL,NULL 12245,75465,75971,NULL,NULL,NULL,0,NULL,NULL 12246,133855,1545747,Informed,NULL,NULL,0,NULL,NULL 12247,1510174,1258992,Popular Question,NULL,NULL,0,NULL,NULL 12248,216766,147317,NULL,NULL,NULL,0,NULL,NULL 12249,100348,523575,Nice Answer,NULL,NULL,0,NULL,NULL 12250,12392,368774,NULL,NULL,NULL,0,NULL,NULL 12251,65459,719733,NULL,NULL,NULL,0,NULL,NULL 12252,819341,345224,NULL,NULL,NULL,0,NULL,NULL 12253,1077288,1452364,NULL,NULL,NULL,0,NULL,NULL 12254,317477,1028326,NULL,NULL,NULL,0,NULL,NULL 12255,6492850,1028326,NULL,NULL,NULL,0,NULL,NULL 12256,14541,529528,Supporter,NULL,NULL,0,NULL,NULL 12257,295220,557216,Critic,NULL,NULL,0,NULL,NULL 12258,124278,6600,Good Answer Yearling Famous Question Popular Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 12259,11944,522811,NULL,NULL,NULL,0,NULL,NULL 12260,2500415,1051807,NULL,NULL,NULL,0,NULL,NULL 12261,6489277,1554781,Popular Question,NULL,NULL,0,NULL,NULL 12262,86140,939860,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Necromancer Guru Nice Answer Enlightened Nice Answer Necromancer Good Answer Great Answer Nice Answer Nice Answer Guru Nice Answer database Guru Good Answer Nice Answer Enlightened Revival Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened Enlightened Great Answer Nice Answer Self-Learner Nice Answer Enlightened postgresql-9.2 stored-procedures Good Answer Nice Answer Good Answer Famous Question Announcer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer performance Announcer Good Answer Good Answer Nice Answer Good Answer Revival Good Answer Nice Answer Nice Answer Enlightened loops Nice Answer Announcer Nice Answer Enlightened Good Answer Necromancer Nice Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer csv Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Necromancer Guru Great Answer Nice Answer Guru Nice Answer Enlightened postgresql-performance Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Revival sql-limit Nice Answer Enlightened Nice Answer Nice Answer Good Answer Revival Popular Question Guru Guru Guru Nice Answer Nice Answer Enlightened Great Answer postgresql-9.4 Good Answer pattern-matching Good Answer Nice Answer Nice Answer Necromancer Good Answer Nice Answer Good Answer Nice Answer Guru Nice Answer Enlightened Announcer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Guru Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Necromancer Nice Answer Good Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Guru Nice Answer Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer heroku Good Answer Good Answer Nice Answer Necromancer Caucus Nice Answer Revival Great Answer Nice Answer Good Answer postgresql-9.3 Guru Necromancer Constituent Guru Necromancer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru crosstab Populist Good Answer Nice Answer Good Answer Great Answer Great Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Announcer left-join Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Enlightened Great Answer Guru Guru Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened triggers Necromancer Guru Guru Good Answer function Nice Answer Enlightened Guru Necromancer Notable Question Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer concurrency Populist Guru Nice Answer Enlightened Popular Question Announcer Good Answer Popular Question Announcer Good Answer Announcer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Good Answer Famous Question Nice Answer Great Answer Nice Answer Announcer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Nice Answer Announcer Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer sql-order-by Nice Answer Announcer Good Answer Announcer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Announcer Guru Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Guru Announcer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened aggregate-functions Nice Answer Nice Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Announcer database-design Announcer Announcer Great Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Good Answer Good Answer Caucus Nice Answer Nice Answer Enlightened full-text-search Good Answer json Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Guru upsert Constituent Announcer Announcer Nice Answer Guru Nice Answer Nice Answer Necromancer ruby Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer arrays Nice Answer Good Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Announcer Guru Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Guru Announcer many-to-many Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Popular Question Great Answer Good Answer Nice Answer Enlightened Nice Answer Custodian Nice Answer Enlightened Good Answer variables Nice Answer recursive-query Guru Guru Guru Announcer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Revival Announcer Good Answer join Nice Answer Nice Answer Guru Revival Good Answer Nice Answer Nice Answer Enlightened Nice Question Good Answer datetime Good Answer Great Answer Announcer Announcer Good Answer Nice Answer Announcer Good Answer Announcer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Guru Good Answer Necromancer Good Answer Good Answer Good Answer Announcer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Populist Great Answer Announcer Good Answer Revival Nice Question Good Answer Good Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Populist Revival dynamic-sql Necromancer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Nice Answer jdbc Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Good Answer Announcer Great Answer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Good Answer Announcer Caucus Nice Answer Revival Good Answer Nice Answer Good Answer Enlightened Nice Answer Nice Answer Guru Good Answer Good Answer Constituent Announcer Good Answer Announcer Announcer Good Answer Good Answer Nice Answer Nice Answer Good Answer Great Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer sorting search-path Nice Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Guru Revival Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Great Answer Nice Answer union Nice Answer Enlightened for-loop Good Answer Nice Answer Enlightened Good Answer Nice Answer Guru Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Revival Nice Answer Great Answer Guru Good Answer Announcer Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened Announcer Guru Nice Answer Guru Good Answer Nice Answer date-arithmetic Nice Answer Good Answer Guru Nice Answer Announcer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Announcer Necromancer Announcer Announcer Necromancer Announcer sql-view Good Answer Good Answer Yearling Nice Answer Nice Answer Enlightened aggregate Nice Answer Enlightened Nice Answer Nice Answer Guru Great Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened sql-execution-plan Good Answer cursor Good Answer Announcer Nice Answer Great Answer Announcer Great Answer Announcer Announcer Guru Guru Guru Nice Answer Enlightened amazon-redshift Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Nice Answer Necromancer Enlightened Nice Answer Necromancer Nice Answer Enlightened Revival common-table-expression,NULL,pUse the href https www postgresql org docs current static unaccent html rel noreferrer strongunaccent module strong for that which is completely different from what you are linking to pblockquote punaccent is text search dictionary that removes accents diacritic signs from lexemes blockquotepInstall once per database with ppre codeCREATE EXTENSION unaccent code prepIf you get an error like pblockquote pERROR could not open extension control file usr share postgresql extension unaccent control No such file or directory blockquotepInstall the contrib package on your database server like instructed in this related answer pulli href https stackoverflow com questions 12100638 error when creating unaccent extension on postgresql Error when creating unaccent extension on PostgreSQL li ulpAmong other things it provides the function codeunaccent code you can use with your example where codeLIKE code seems not needed ppre codeSELECT FROM usersWHERE unaccent name unaccent João code preh2Index h2pTo use an index for that kind of query create an href https www postgresql org docs current static indexes expressional html rel noreferrer index on the expression strongHowever strong Postgres only accepts codeIMMUTABLE code functions for indexes If function can return different result for the same input the index could silently break ph3 codeunaccent code only codeSTABLE code not codeIMMUTABLE code h3pUnfortunately codeunaccent code is only codeSTABLE code not codeIMMUTABLE code According to href https www postgresql org message id flat 201012021544 oB2FiTn1041521 postgresql org 201012021544 oB2FiTn1041521 postgresql org rel noreferrer this thread on pgsql bugs this is due to emthree em reasons polliIt depends on the behavior of dictionary liliThere is no hard wired connection to this dictionary liliIt therefore also depends on the current codesearch path code which can change easily li olp href https django orm readthedocs org en latest orm pg fulltext html rel noreferrer Some tutorials on the web instruct to just alter the function volatility to codeIMMUTABLE code This brute force method can break under certain conditions ppOthers suggest href https www postgresql org message id flat CAANrE7rpWjvZgdKX hArNp8ynUezZ Ehp8QEqC7hwfXuNqa91g gmail com CAANrE7rpWjvZgdKX hArNp8ynUezZ Ehp8QEqC7hwfXuNqa91g gmail com rel noreferrer simple codeIMMUTABLE code wrapper function like did myself in the past ppThere is an ongoing debate whether to make the href https www postgresql org docs current static unaccent html id 11 53 rel noreferrer variant with two parameters codeIMMUTABLE code which declares the used dictionary explicitly Read href https www postgresql org message id flat 20120826134701 GM10814 us 20120826134701 GM10814 us rel noreferrer here or href https www postgresql org message id flat CAFj8pRDi0LRcmgyvd0ttC9J VwOxe094fVRG2KTR AQC86y wg gmail com CAFj8pRDi0LRcmgyvd0ttC9J VwOxe094fVRG2KTR AQC86y wg gmail com rel noreferrer here ppAnother alternative would be this module with an href https github com metabrainz postgresql musicbrainz unaccent rel noreferrer IMMUTABLE codeunaccent code function by Musicbrainz provided on Github Haven tested it myself think have come up with strong embetter idea em strong ph3Best for now h3pI propose an approach that is at least strongas efficient as other solutions floating around but safer strong Create wrapper function with the two parameter form and hard wire the schema for function and dictionary ppre codeCREATE OR REPLACE FUNCTION public unaccent text RETURNS text AS func SELECT bpublic bunaccent public unaccent schema qualify function and dictionary func LANGUAGE sql IMMUTABLE code prep codepublic code being the schema where you installed the extension codepublic code is the default pp emPreviously had added codeSET search path public pg temp code to the function until discovered that the dictionary can be schema qualified too href https www postgresql org docs current static unaccent html id 11 53 rel noreferrer which is currently pg 10 not documented This version is bit shorter and around twice as fast in my tests on pg and pg 10 em ppThe updated version still doesn allow href https wiki postgresql org wiki Inlining of SQL functions rel noreferrer function inlining because functions declared codeIMMUTABLE code may not call non immutable functions in the body to allow that Hardly matters for performance while we make use of an strong href https www postgresql org docs current static indexes expressional html rel noreferrer expression index strong on this codeIMMUTABLE code function ppre codeCREATE INDEX users unaccent name idx ON users public unaccent name code prepSecurity for client programs has been tightened with Postgres 10 etc You emneed em to schema qualify function and dictionary as demonstrated when used in any indexes See pulli href https dba stackexchange com questions 202490 text search dictionary unaccent does not exist entries in postgres log supp noredirect comment421020 202490 text search dictionary “unaccent” does not exist entries in postgres log supposedly during automatic analyze li ulpAdapt your queries to match the index so the query planner can use it ppre codeSELECT FROM usersWHERE unaccent name unaccent João code prepYou don need the function in the right expression You can supply unaccented strings like code Joao code directly ph3Ligatures h3pIn Postgres strong9 or older strong ligatures like or have to be expanded manually if you need that since codeunaccent code always substitutes emsingle em letter ppre codeSELECT unaccent unaccent code prepYou will love href https www postgresql org message id flat 201012021544 oB2FiTn1041521 postgresql org 201012021544 oB2FiTn1041521 postgresql org rel noreferrer this update to unaccent in Postgres strong9 strong pblockquote pExtend codecontrib unaccent code standard codeunaccent rules code file to handle all diacritics known to Unicode and strongexpand ligatures correctly strong Thomas Munro Léonard Benedetti blockquotepBold emphasis mine Now we get ppre codeSELECT unaccent unaccent OE AE oe ae ss code preh3Pattern matching h3pFor strong codeLIKE code strong or strong codeILIKE code strong with arbitrary patterns combine this with the module href https www postgresql org docs current static pgtrgm html rel noreferrer strong codepg trgm code strong in PostgreSQL or later Create trigram GIN typically preferable or GIST expression index Example for GIN ppre codeCREATE INDEX users unaccent name trgm idx ON usersUSING gin unaccent name gin trgm ops code prepCan be used for queries like ppre codeSELECT FROM usersWHERE unaccent name LIKE unaccent João code prepGIN and GIST indexes are more expensive to maintain than plain btree pulli href https stackoverflow com questions 28975517 difference between gist and gin index 28976555 28976555 Difference between GiST and GIN index li ulpThere are simpler solutions for just left anchored patterns More about pattern matching and performance pulli href https dba stackexchange com 10696 3684 Pattern matching with LIKE SIMILAR TO or regular expressions in PostgreSQL li ulp codepg trgm code also provides useful href https www postgresql org docs current static pgtrgm html PGTRGM OP TABLE rel noreferrer operators for similarity code code and distance code lt gt code ppTrigram indexes also support simple regular expressions with code code et al and strongcase insensitive strong pattern matching with codeILIKE code pulli href https stackoverflow com questions 28627951 postgresql accent case insensitive search 28636000 28636000 PostgreSQL accent case insensitive search li ul It depends Please ask your question in new question comments are not the place You can always link to this one for context pThe SQL DDL data definition language statements could look like this ppre codeCREATE TABLE product product id serial PRIMARY KEY implicit primary key constraint product text NOT NULL price numeric NOT NULL DEFAULT CREATE TABLE bill bill id serial PRIMARY KEY bill text NOT NULL billdate date NOT NULL DEFAULT CURRENT DATE CREATE TABLE bill product bill id int REFERENCES bill bill id ON UPDATE CASCADE ON DELETE CASCADE product id int REFERENCES product product id ON UPDATE CASCADE amount numeric NOT NULL DEFAULT CONSTRAINT bill product pkey PRIMARY KEY bill id product id explicit pk code prepI made few adjustments pulli pThe strongn relationship strong is normally implemented by separate table codebill product code in this case lili pI added href https stackoverflow com questions 14649682 safely and cleanly rename tables that use serial primary key columns in postgres 14651788 14651788 strong codeserial code strong columns as strongsurrogate primary keys strong highly recommend that because the name of product is hardly unique Also enforcing uniqueness and referencing the column in foreign keys is much cheaper with byte codeinteger code than with string stored as codetext code or codevarchar code brIn Postgres 10 or later consider an href https www postgresql org docs current static sql createtable html rel noreferrer strong codeIDENTITY code strong column instead Details pulli href https blog 2ndquadrant com postgresql 10 identity columns rel noreferrer https blog 2ndquadrant com postgresql 10 identity columns li ul lili pDon use names of basic data types like codedate code as strongidentifiers strong While this is possible it is bad style and leads to confusing errors and error messages Use href http www postgresql org docs current interactive sql syntax lexical html SQL SYNTAX IDENTIFIERS rel noreferrer legal lower case unquoted identifiers Never use href http www postgresql org docs current interactive sql keywords appendix html rel noreferrer reserved words and avoid double quoted mixed case identifiers if you can lili codename code is not good name renamed the codename code column of the table codeproduct code to be codeproduct code That is better strongnaming convention strong Otherwise when you join couple of tables in query which you do ema lot em in relational database you end up with multiple columns named codename code and have to use column aliases to sort out the mess That not helpful Another widespread anti pattern would be just codeid code as column name brI am not sure what the name of codebill code would be Maybe codebill id code can be the emname em in this case lili codeprice code is of strongdata type strong codenumeric code to store fractional numbers emprecisely as entered em arbitrary precision type instead of floating point type If you deal with whole numbers exclusively make that codeinteger code For example you could save emprices as Cents em lili pThe codeamount code code Products code in your question goes into the linking table codebill product code and is of type codenumeric code as well Again codeinteger code if you deal with whole numbers exclusively lili pYou see the strongforeign keys strong in codebill product code created both to cascade changes codeON UPDATE CASCADE code If codeproduct id code or codebill id code should change the change is cascaded to all depending entries in codebill product code and nothing breaks brI also used codeON DELETE CASCADE code for codebill id code If you delete bill the details are deleted with it brNot so for products You don want to delete product that used in bill Postgres will throw an error if you attempt this You would add another column to codeproduct code to mark obsolete rows instead lili pAll columns in this basic example end up to be strong codeNOT NULL code strong so codeNULL code values are not allowed Yes emall em columns columns used in primary key are defined codeUNIQUE NOT NULL code automatically That because codeNULL code values wouldn make sense in any of the columns It makes beginner life easier But you won get away so easily you need to understand href http www postgresql org docs current interactive functions comparison html rel noreferrer codeNULL code handling anyway Additional columns might allow codeNULL code values functions and joins can introduce codeNULL code values in queries etc lili pRead the chapter on href http www postgresql org docs current interactive sql createtable html rel noreferrer codeCREATE TABLE code in the manual lili pPrimary keys are implemented with unique strongindex strong on the key columns that makes queries with conditions on the PK column fast However the sequence of key columns is relevant in multicolumn keys Since the PK on codebill product code is on code bill id product id code in my example you may want to add another index on just codeproduct id code or code product id bill id code if you have queries looking for given codeproduct id code and no codebill id code Details pulli href https stackoverflow com questions 11352056 postgresql composite primary key 11352543 11352543 PostgreSQL composite primary key lili href https dba stackexchange com 27493 3684 Is composite index also good for queries on the first field lili href https dba stackexchange com 7484 3684 Working of indexes in PostgreSQL li ul lili pRead the href http www postgresql org docs current interactive indexes html rel noreferrer chapter on indexes in the manual li ul There is only row for each bill in table bill We need the amount per added item in bill product h3Basic query h3pThis query creates all necessary DDL statements simplified with cast to href https www postgresql org docs current interactive datatype oid html rel noreferrer coderegprocedure code ppre codeSELECT DROP FUNCTION oid regprocedureFROM pg procWHERE proname my function name name without schema qualificationAND pg function is visible oid restrict to current search path you may or may not want this code prepOutput ppre codeDROP FUNCTION my function name string text form text maxlen integer DROP FUNCTION my function name string text form text DROP FUNCTION my function name string text code prepExecute the commands after plausibility check ppThe function name is case sensitive and with no added double quotes when passed as codetext code parameter to match against codepg proc proname code ppThe cast to the object identifier type coderegprocedure code strong codeoid regprocedure code strong makes all identifiers strongsafe against SQL injection strong by way of maliciously malformed identifiers When converting to codetext code the function name is double quoted and schema qualified according to the current href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 codesearch path code automatically where needed pp href https www postgresql org docs current interactive functions info html FUNCTIONS INFO SCHEMA TABLE rel noreferrer codepg function is visible oid code restricts the selection to functions in the current href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 codesearch path code You may or may not want that With the condition codepg function is visible oid code in place the function is guaranteed to be visible ppIf you have multiple functions of the same name in multiple schemas or overloaded functions with various function arguments strong emall em strong of those will be listed separately You may want to restrict to specific schema or specific function parameter after all ppRelated pulli href https stackoverflow com questions 25068040 when how are default value expression functions bound with regard to search pa 25068681 25068681 When how are default value expression functions bound with regard to search path li ulh3Function h3pYou can build codeplpgsql code function around this to execute the statements immediately with href https www postgresql org docs current interactive plpgsql statements html PLPGSQL STATEMENTS EXECUTING DYN rel noreferrer codeEXECUTE code For Postgres strong9 strong or later strongCareful It drops your functions strong ppre codeCREATE OR REPLACE FUNCTION delfunc name text OUT func dropped int AS func DECLARE sql text BEGIN SELECT count int DROP FUNCTION string agg oid regprocedure text DROP FUNCTION FROM pg proc WHERE proname name AND pg function is visible oid INTO func dropped sql only returned if trailing DROPs succeed IF func dropped gt THEN only if function found EXECUTE sql END IF END func LANGUAGE plpgsql code prepCall ppre codeSELECT FROM delfunc my function name code prepOr just ppre codeSELECT delfunc my function name code prepThis way you don get the column emname em codefunc dropped code for the result column May not matter to you ppThe function returns the number of functions found and dropped no exception raised code0 code if none were found ppIt assumes default codesearch path code where codepg catalog code has not been moved around brMore in these related answers pulli href https stackoverflow com questions 9067335 how does the search path influence identifier resolution and the current schema 9067777 9067777 How does the search path influence identifier resolution and the current schema lili href https stackoverflow com questions 2829158 truncating all tables in postgres database 12082038 12082038 Truncating all tables in Postgres database lili href https stackoverflow com questions 8139618 postgresql parameterized order by limit in table function 8146245 8146245 PostgreSQL parameterized Order By Limit in table function li ulp strong emFor Postgres versions older than or older variants of the function using coderegproc code and codepg get function identity arguments oid code check the edit history of this answer em strong updated with an improved function to take care of this pExplicit cursors are rarely needed in plpgsql Just use the simpler and faster strongimplicit cursor strong of href http www postgresql org docs current interactive plpgsql control structures html PLPGSQL RECORDS ITERATING rel nofollow noreferrer strong codeFOR code strong loop pp strongNote strong Since table names are not unique per database you have to schema qualify table names to be sure Also limit the function to the default schema public Adapt to your needs but be sure to exclude the system schemas codepg code and codeinformation schema code ppBe strongvery careful strong with these functions They nuke your database added child safety device Comment the codeRAISE NOTICE code line and uncomment codeEXECUTE code to prime the bomb ppre codeCREATE OR REPLACE FUNCTION truncate tables username text RETURNS void AS func DECLARE tbl text sch text BEGIN FOR sch tbl IN SELECT schemaname tablename FROM pg tables WHERE tableowner username AND schemaname public LOOP RAISE NOTICE EXECUTE dangerous test before you execute format TRUNCATE TABLE CASCADE sch tbl END LOOP END func LANGUAGE plpgsql code prep href http www postgresql org docs current interactive functions string html FUNCTIONS STRING FORMAT rel nofollow noreferrer codeformat code requires Postgres or later In older versions concatenate the query string like this ppre code TRUNCATE TABLE quote ident sch quote ident tbl CASCADE code preh3Single command no loop h3pSince we can href http www postgresql org docs current interactive sql truncate html rel nofollow noreferrer strong codeTRUNCATE code strong multiple tables at once we don need any cursor or loop at all pulli href https stackoverflow com questions 23723851 passing table names in an array 23729229 23729229 Passing table names in an array li ulpAggregate all table names and execute single statement Simpler faster ppre codeCREATE OR REPLACE FUNCTION truncate tables username text RETURNS void AS func BEGIN RAISE NOTICE EXECUTE dangerous test before you execute SELECT TRUNCATE TABLE string agg format schemaname tablename CASCADE FROM pg tables WHERE tableowner username AND schemaname public END func LANGUAGE plpgsql code prepCall ppre codeSELECT truncate tables postgres code preh3Refined query h3pYou don even need function In Postgres you can execute dynamic commands in href http www postgresql org docs current interactive sql do html rel nofollow noreferrer strong codeDO code strong statement And in Postgres the syntax can be even simpler ppre codeDO func BEGIN RAISE NOTICE EXECUTE SELECT TRUNCATE TABLE string agg oid regclass text CASCADE FROM pg class WHERE relkind only tables AND relnamespace public regnamespace END func code prepAbout the difference between codepg class code codepg tables code and codeinformation schema tables code pulli href https stackoverflow com questions 20582500 how to check if table exists in given schema 24089729 24089729 How to check if table exists in given schema li ulpAbout coderegclass code and quoted table names pulli href https stackoverflow com questions 10705616 table name as postgresql function parameter 10711349 10711349 Table name as PostgreSQL function parameter li ulh2For repeated use h2pIt might be simpler and much faster to create template database let name it codemy template code with your vanilla structure and all empty tables Then go through strong codeDROP code href http www postgresql org docs current interactive sql createdatabase html rel nofollow noreferrer codeCREATE DATABASE code strong cycle ppre codeDROP DATABASE mydb CREATE DATABASE mydb bTEMPLATE my template code prepThis is strong emextremely em fast strong because Postgres copies the whole structure on the file level No concurrency issues or other overhead slowing you down Thank you blockquote pIs there way to store that sub select as pseudo column in the table blockquotepA href http www postgresql org docs current interactive sql createview html rel noreferrer codeVIEW code like has been advised is perfectly valid solution But there is another way that fits your question even more closely You can write function that takes the table type as parameter to strong ememulate em strong strong computed field strong or strong generated column strong ppConsider this test case derived from your description ppre codeCREATE TABLE tbl id int col1 int col2 int INSERT INTO tbl VALUES CREATE TABLE tbl id int id int colx int INSERT INTO tbl VALUES 11 11 11 code prepCreate function that emulates codecol3 code ppre codeCREATE FUNCTION col3 tbl RETURNS int8 AS func SELECT sum colx FROM tbl WHERE id id func LANGUAGE SQL STABLE code prepNow you can query ppre codeSELECT id col1 col2 tbl col3FROM tbl code prepOr even ppre codeSELECT col3 FROM tbl code prepNote how wrote codetbl col3 code codea col3 code not just codecol3 code This is emessential em ppUnlike href https oracle base com articles 11g virtual columns 11gr1 rel noreferrer virtual column in Oracle it is strong emnot em strong included automatically in codeSELECT FROM tbl code You could use codeVIEW code for that ph2Why does this work h2pThe common way to reference table column is with strongattribute notation strong ppreSELECT btbl col1 FROM tbl prepThe common way to call function is with strongfunctional notation strong ppreSELECT bcol3 tbl prepGenerally it best to strongstick to these canonical ways strong which agree with the SQL standard ppBut in PostgreSQL functional notation and attribute notation are equivalent So these work as well ppreSELECT bcol1 tbl FROM tbl SELECT btbl col3 prep href http www postgresql org docs current interactive xfunc sql html XFUNC SQL COMPOSITE FUNCTIONS rel noreferrer More about that in the manual brYou probably see by now where this is going This emlooks em like you would add an extra column of table codetbl code while codecol3 code is actually function that takes the current row of codetbl code or its alias as row type argument and computes value ppre codeSELECT col3FROM tbl AS code prepIf there is an actual column codecol3 code it takes priority and the system does not look for function of that name taking the row codetbl code as parameter ppThe beauty of it you can add or drop columns from codetbl code and the last query will dynamically return all current columns where view would only return such columns that existed at creation time early binding vs late binding of code code brOf course you have to drop the depending function before you can drop the table now And you have to take care not to invalidate the function when making changes to the table érace The function is not automatically part of the table you have to spell it out like instructed clarified some more pIt depends on what you want to test strong emexactly em strong ph3Information schema h3pTo find whether the table exists emno matter who asking em querying the information schema codeinformation schema tables code is strongincorrect strong strictly speaking because href http www postgresql org docs current interactive infoschema tables html rel noreferrer per documentation pblockquote pOnly those tables and views are shown that the current user has access to by way of being the owner or having some privilege blockquotepThe query href https stackoverflow com 20584058 939860 demonstrated by can return codeFALSE code but the table can still exist It answers the question pp strong emHow to check whether table or view exists and the current user has access to it em strong ppre codeSELECT EXISTS SELECT FROM information schema tables WHERE table schema schema name AND table name table name code prepThe information schema is mainly useful to stay portable across major versions and across different RDBMS But the implementation is slow because Postgres has to use sophisticated views to comply to the standard codeinformation schema tables code is rather simple example And some information like OIDs gets lost in translation from the system catalogs which emactually em carry all information ph3System catalogs h3pYour question was pp strong emHow to check whether table exists em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name AND relkind only tables code prepUse the system catalogs codepg class code and codepg namespace code directly which is also considerably faster However href http www postgresql org docs current interactive catalog pg class html rel noreferrer per documentation on codepg class code pblockquote pThe catalog codepg class code catalogs tables and most everything else that has columns or is otherwise similar to table This includes strongindexes strong but see also codepg index code strongsequences strong strongviews strong strongmaterialized views strong strongcomposite types strong and strongTOAST tables strong blockquotepFor this particular question you can also use the href https www postgresql org docs current static view pg tables html rel noreferrer system view strong codepg tables code strong bit simpler and more portable across major Postgres versions which is hardly of concern for this basic query ppre codeSELECT EXISTS SELECT FROM pg tables WHERE schemaname schema name AND tablename table name code prepIdentifiers have to be unique among emall em objects mentioned above If you want to ask pp strong emHow to check whether name for table or similar object in given schema is taken em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name code preulli href https dba stackexchange com questions 75015 query to return output column names and data types of query table or view 75124 75124 Related answer on dba SE discussing strong Information schema vs system catalogs strong li ulh2Alternative cast to href http www postgresql org docs current interactive datatype oid html rel noreferrer strong coderegclass code strong h2pre codeSELECT schema name table name regclass code prepThis emraises an exception em if the optionally schema qualified table or other object occupying that name does not exist ppIf you do not schema qualify the table name cast to coderegclass code defaults to the href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 strong codesearch path code strong and returns the OID for the first table found or an exception if the table is in none of the listed schemas Note that the system schemas codepg catalog code and codepg temp code the schema for temporary objects of the current session are automatically part of the codesearch path code ppYou can use that and catch possible exception in function Example pulli href https stackoverflow com questions 11905868 Check if sequence exists in Postgres plpgsql 11919600 11919600 Check if sequence exists in Postgres plpgsql li ulpA query like above avoids possible exceptions and is therefore slightly faster ph2 href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer codeto regclass rel name code in Postgres h2pMuch simpler now ppre codeSELECT to regclass schema name table name code prepSame as the cast href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer strongbut strong it returns pblockquote null rather than throwing an error if the name is not found blockquote pg tables is actually good idea for How to check whether table exists Checking for tables only not for other purposes like explained above Also pg tables is view involving several tables pg class pg namespace pg tablespace which is bit more expensive The most important reason am used to query pg class directly and didn think of pg tables when writing this answer added it above now thanks pIt depends on what you want to test strong emexactly em strong ph3Information schema h3pTo find whether the table exists emno matter who asking em querying the information schema codeinformation schema tables code is strongincorrect strong strictly speaking because href http www postgresql org docs current interactive infoschema tables html rel noreferrer per documentation pblockquote pOnly those tables and views are shown that the current user has access to by way of being the owner or having some privilege blockquotepThe query href https stackoverflow com 20584058 939860 demonstrated by can return codeFALSE code but the table can still exist It answers the question pp strong emHow to check whether table or view exists and the current user has access to it em strong ppre codeSELECT EXISTS SELECT FROM information schema tables WHERE table schema schema name AND table name table name code prepThe information schema is mainly useful to stay portable across major versions and across different RDBMS But the implementation is slow because Postgres has to use sophisticated views to comply to the standard codeinformation schema tables code is rather simple example And some information like OIDs gets lost in translation from the system catalogs which emactually em carry all information ph3System catalogs h3pYour question was pp strong emHow to check whether table exists em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name AND relkind only tables code prepUse the system catalogs codepg class code and codepg namespace code directly which is also considerably faster However href http www postgresql org docs current interactive catalog pg class html rel noreferrer per documentation on codepg class code pblockquote pThe catalog codepg class code catalogs tables and most everything else that has columns or is otherwise similar to table This includes strongindexes strong but see also codepg index code strongsequences strong strongviews strong strongmaterialized views strong strongcomposite types strong and strongTOAST tables strong blockquotepFor this particular question you can also use the href https www postgresql org docs current static view pg tables html rel noreferrer system view strong codepg tables code strong bit simpler and more portable across major Postgres versions which is hardly of concern for this basic query ppre codeSELECT EXISTS SELECT FROM pg tables WHERE schemaname schema name AND tablename table name code prepIdentifiers have to be unique among emall em objects mentioned above If you want to ask pp strong emHow to check whether name for table or similar object in given schema is taken em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name code preulli href https dba stackexchange com questions 75015 query to return output column names and data types of query table or view 75124 75124 Related answer on dba SE discussing strong Information schema vs system catalogs strong li ulh2Alternative cast to href http w,,, w postgresql org docs current interactive datatype oid html rel noreferrer strong coderegclass code strong h2pre codeSELECT schema name table name regclass code prepThis emraises an exception em if the optionally schema qualified table or other object occupying that name does not exist ppIf you do not schema qualify the table name cast to coderegclass code defaults to the href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 strong codesearch path code strong and returns the OID for the first table found or an exception if the table is in none of the listed schemas Note that the system schemas codepg catalog code and codepg temp code the schema for temporary objects of the current session are automatically part of the codesearch path code ppYou can use that and catch possible exception in function Example pulli href https stackoverflow com questions 11905868 Check if sequence exists in Postgres plpgsql 11919600 11919600 Check if sequence exists in Postgres plpgsql li ulpA query like above avoids possible exceptions and is therefore slightly faster ph2 href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer codeto regclass rel name code in Postgres h2pMuch simpler now ppre codeSELECT to regclass schema name table name code prepSame as the cast href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer strongbut strong it returns pblockquote null rather than throwing an error if the name is not found blockquote Right removed my incorrect comment You can use pg my temp schema https www postgresql org docs static functions info html FUNCTIONS INFO SESSION TABLE to get the OID of the actual temp schema if it exists But views in the information schema don include OIDs You could SELECT nspname FROM pg namespace WHERE OID pg my temp schema Your test has several weaknesses correct test would be table schema LIKE pg temp or stricter table schema pg temp pIn strongPostgreSQL strong this is typically strongsimpler and faster strong more performance optimization below ppre codeSELECT bDISTINCT ON customer id customer totalFROM purchasesORDER BY customer total DESC id code prepOr shorter if not as clear with ordinal numbers of output columns ppre codeSELECT DISTINCT ON id customer totalFROM purchasesORDER BY DESC code prepIf codetotal code can be NULL won hurt either way but you ll want to match existing indexes ppre code ORDER BY customer total DESC bNULLS LAST id code preh3Major points h3ulli href https www postgresql org docs current static sql select html SQL DISTINCT rel noreferrer strong codeDISTINCT ON code strong is PostgreSQL extension of the standard where only codeDISTINCT code on the whole codeSELECT code list is defined lili pList any number of expressions in the codeDISTINCT ON code clause the combined row value defines duplicates href https www postgresql org docs current static queries select lists html QUERIES DISTINCT rel noreferrer The manual pblockquote pObviously two rows are considered distinct if they differ in at least one column value strongNull values are considered equal in this comparison strong blockquotepBold emphasis mine lili codeDISTINCT ON code can be combined with strong codeORDER BY code strong Leading expressions have to match leading codeDISTINCT ON code expressions in the same order You can add emadditional em expressions to codeORDER BY code to pick particular row from each group of peers added codeid code as last item to break ties pp em Pick the row with the smallest codeid code from each group sharing the highest codetotal code em ppIf codetotal code can be NULL you emmost probably em want the row with the greatest non null value Add codeNULLS LAST code like demonstrated Details pulli href https stackoverflow com questions 9510509 postgresql sort by datetime asc null first 9511492 9511492 PostgreSQL sort by datetime asc null first li ul lili strongThe codeSELECT code list strong is not constrained by expressions in codeDISTINCT ON code or codeORDER BY code in any way Not needed in the simple case above pulli pYou emdon have to em include any of the expressions in codeDISTINCT ON code or codeORDER BY code lili pYou emcan em include any other expression in the codeSELECT code list This is instrumental for replacing much more complex queries with subqueries and aggregate window functions li ul lili pI tested with Postgres versions 11 But the feature has been there at least since version so basically always li ulh2Index h2pThe emperfect em index for the above query would be href https www postgresql org docs current static indexes multicolumn html rel noreferrer multi column index spanning all three columns in matching sequence and with matching sort order ppre codeCREATE INDEX purchases 3c idx ON purchases customer total DESC id code prepMay be too specialized But use it if read performance for the particular query is crucial If you have codeDESC NULLS LAST code in the query use the same in the index so that sort order matches and the index is applicable ph2Effectiveness Performance optimization h2pWeigh cost and benefit before creating tailored indexes for each query The potential of above index largely depends on strongdata distribution strong ppThe index is used because it delivers pre sorted data In Postgres or later the query can also benefit from an strong href https www postgresql org docs current static indexes index only scans html rel noreferrer index only scan strong if the index is smaller than the underlying table The index has to be scanned in its entirety though pulli pFor strong emfew em rows per customer strong high cardinality in column codecustomer code this is very efficient Even more so if you need sorted output anyway The benefit shrinks with growing number of rows per customer brIdeally you have enough href https www postgresql org docs current static runtime config resource html GUC WORK MEM rel noreferrer strong codework mem code strong to process the involved sort step in RAM and not spill to disk But generally setting codework mem code emtoo em high can have adverse effects Consider codeSET LOCAL code for exceptionally big queries Find how much you need with codeEXPLAIN ANALYZE code Mention of emDisk em in the sort step indicates the need for more pulli href https stackoverflow com questions 8106181 configuration parameter work mem in postgresql on linux 8108807 8108807 Configuration parameter work mem in PostgreSQL on Linux lili href https dba stackexchange com questions 48630 optimize simple query using order by date and text 48633 48633 Optimize simple query using ORDER BY date and text li ul lili pFor strong emmany em rows per customer strong low cardinality in column codecustomer code href https wiki postgresql org wiki Loose indexscan rel noreferrer strongloose index scan strong skip scan would be much more efficient but that not implemented up to Postgres 11 An implementation for index only scans is planned for Postgres 12 See href https commitfest postgresql org 19 1741 rel noreferrer here and href https www postgresql org message id flat 707b6f68 16fa 7aa7 96e5 eeb4865e6a30 com rel noreferrer here brFor now there are strongfaster query techniques strong to substitute for this In particular if you have separate table holding unique customers which is the typical use case But also if you don pulli strong href https stackoverflow com questions 25536422 optimize group by query to retrieve latest record per user 25536748 25536748 Optimize GROUP BY query to retrieve latest record per user strong lili href https stackoverflow com questions 24244026 optimize groupwise maximum query 24377356 24377356 Optimize groupwise maximum query lili href https stackoverflow com questions 25957558 querying last related records in postgres 25965393 25965393 Query last related rows per row li ul li ulh2Benchmark h2pI had simple benchmark here which is outdated by now replaced it with href https stackoverflow com 34715134 939860 strongdetailed benchmark in this separate answer strong The original benchmark is from 2011 don have the setup any more But it was about time to run tests with pg and pg anyway See details in the added answer http stackoverflow com 34715134 939860 You might add comment with result from your installation below pIn strongPostgreSQL strong this is typically strongsimpler and faster strong more performance optimization below ppre codeSELECT bDISTINCT ON customer id customer totalFROM purchasesORDER BY customer total DESC id code prepOr shorter if not as clear with ordinal numbers of output columns ppre codeSELECT DISTINCT ON id customer totalFROM purchasesORDER BY DESC code prepIf codetotal code can be NULL won hurt either way but you ll want to match existing indexes ppre code ORDER BY customer total DESC bNULLS LAST id code preh3Major points h3ulli href https www postgresql org docs current static sql select html SQL DISTINCT rel noreferrer strong codeDISTINCT ON code strong is PostgreSQL extension of the standard where only codeDISTINCT code on the whole codeSELECT code list is defined lili pList any number of expressions in the codeDISTINCT ON code clause the combined row value defines duplicates href https www postgresql org docs current static queries select lists html QUERIES DISTINCT rel noreferrer The manual pblockquote pObviously two rows are considered distinct if they differ in at least one column value strongNull values are considered equal in this comparison strong blockquotepBold emphasis mine lili codeDISTINCT ON code can be combined with strong codeORDER BY code strong Leading expressions have to match leading codeDISTINCT ON code expressions in the same order You can add emadditional em expressions to codeORDER BY code to pick particular row from each group of peers added codeid code as last item to break ties pp em Pick the row with the smallest codeid code from each group sharing the highest codetotal code em ppIf codetotal code can be NULL you emmost probably em want the row with the greatest non null value Add codeNULLS LAST code like demonstrated Details pulli href https stackoverflow com questions 9510509 postgresql sort by datetime asc null first 9511492 9511492 PostgreSQL sort by datetime asc null first li ul lili strongThe codeSELECT code list strong is not constrained by expressions in codeDISTINCT ON code or codeORDER BY code in any way Not needed in the simple case above pulli pYou emdon have to em include any of the expressions in codeDISTINCT ON code or codeORDER BY code lili pYou emcan em include any other expression in the codeSELECT code list This is instrumental for replacing much more complex queries with subqueries and aggregate window functions li ul lili pI tested with Postgres versions 11 But the feature has been there at least since version so basically always li ulh2Index h2pThe emperfect em index for the above query would be href https www postgresql org docs current static indexes multicolumn html rel noreferrer multi column index spanning all three columns in matching sequence and with matching sort order ppre codeCREATE INDEX purchases 3c idx ON purchases customer total DESC id code prepMay be too specialized But use it if read performance for the particular query is crucial If you have codeDESC NULLS LAST code in the query use the same in the index so that sort order matches and the index is applicable ph2Effectiveness Performance optimization h2pWeigh cost and benefit before creating tailored indexes for each query The potential of above index largely depends on strongdata distribution strong ppThe index is used because it delivers pre sorted data In Postgres or later the query can also benefit from an strong href https www postgresql org docs current static indexes index only scans html rel noreferrer index only scan strong if the index is smaller than the underlying table The index has to be scanned in its entirety though pulli pFor strong emfew em rows per customer strong high cardinality in column codecustomer code this is very efficient Even more so if you need sorted output anyway The benefit shrinks with growing number of rows per customer brIdeally you have enough href https www postgresql org docs current static runtime config resource html GUC WORK MEM rel noreferrer strong codework mem code strong to process the involved sort step in RAM and not spill to disk But generally setting codework mem code emtoo em high can have adverse effects Consider codeSET LOCAL code for exceptionally big queries Find how much you need with codeEXPLAIN ANALYZE code Mention of emDisk em in the sort step indicates the need for more pulli href https stackoverflow com questions 8106181 configuration parameter work mem in postgresql on linux 8108807 8108807 Configuration parameter work mem in PostgreSQL on Linux lili href https dba stackexchange com questions 48630 optimize simple query using order by date and text 48633 48633 Optimize simple query using ORDER BY date and text li ul lili pFor strong emmany em rows per customer strong low cardinality in column codecustomer code href https wiki postgresql org wiki Loose indexscan rel noreferrer strongloose index scan strong skip scan would be much more efficient but that not implemented up to Postgres 11 An implementation for index only scans is planned for Postgres 12 See href https commitfest postgresql org 19 1741 rel noreferrer here and href https www postgresql org message id flat 707b6f68 16fa 7aa7 96e5 eeb4865e6a30 com rel noreferrer here brFor now there are strongfaster query techniques strong to substitute for this In particular if you have separate table holding unique customers which is the typical use case But also if you don pulli strong href https stackoverflow com questions 25536422 optimize group by query to retrieve latest record per user 25536748 25536748 Optimize GROUP BY query to retrieve latest record per user strong lili href https stackoverflow com questions 24244026 optimize groupwise maximum query 24377356 24377356 Optimize groupwise maximum query lili href https stackoverflow com questions 25957558 querying last related records in postgres 25965393 25965393 Query last related rows per row li ul li ulh2Benchmark h2pI had simple benchmark here which is outdated by now replaced it with href https stackoverflow com 34715134 939860 strongdetailed benchmark in this separate answer strong Not from the top of my head DISTINCT ON is only good for getting one row per group of peers h3 Column Tetris h3pActually you can do strong emsomething em strong but this needs deeper understanding The keyword is strong emalignment padding em strong href https www postgresql org docs current static catalog pg type html rel noreferrer Every data type has specific alignment requirements ppYou can minimize space lost to padding strong embetween columns em strong by ordering them favorably The following extreme example would waste lot of physical disk space ppre codeCREATE TABLE int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 code prepTo save strong24 bytes strong per row use instead ppre codeCREATE TABLE int8 int8 int8 int8 int2 int2 int2 int2 int2 occupy byte MAXALIGN no padding at the end code prepAs rule of thumb if you put byte columns first then bytes bytes and byte columns last you can go wrong codetext code or codeboolean code do not have alignment restrictions like that some other types do Some types can be href https www postgresql org docs current static storage toast html rel noreferrer compressed or toasted stored out of line or both ppNormally you may save couple of bytes per row at best playing em column tetris em None of this is necessary in most cases But with billions of rows it can mean couple of gigabytes easily ppYou can test the actual column row size with the function href https www postgresql org docs current static functions admin html FUNCTIONS ADMIN DBSIZE rel noreferrer strong codepg column size code strong brBe aware that some data types can use more space in RAM than on disk compressed format So you can get bigger results for constants RAM format than for table columns disk format when testing the same value or row of values vs table row with codepg column size code pp href http www sqlfiddle com 17 84e13 84 rel noreferrer strongSQL Fiddle strong ph3Overhead per tuple row h3p4 bytes per row for the item pointer not subject to above considerations brAnd at least 24 bytes 23 padding for the tuple header href https www postgresql org docs current static storage page layout html rel noreferrer The manual on Database Page Layout pblockquote pThere is fixed size header occupying 23 bytes on most machines followed by an optional null bitmap an optional object ID field and the user data blockquotepFor the padding between header and user data you need to know codeMAXALIGN code on your server typically bytes on 64 bit OS or bytes on 32 bit OS If you are not sure check out href https www postgresql org docs current static app pgcontroldata html rel noreferrer codepg controldata code ppRun the following in your emPostgres binary dir em to get definitive answer ppre code pg controldata path to my dbcluster code prep href https www postgresql org docs current static storage page layout html rel noreferrer The manual pblockquote pThe actual user data columns of the row begins at the offset indicated by codet hoff code which must always be multiple of the codeMAXALIGN code distance for the platform blockquotepSo you typically get the storage optimum by packing data in multiples of bytes ppThere is nothing to gain in the emexample you posted em It already packed tightly bytes of padding after the last codeint2 code bytes at the end You could consolidate the padding to bytes at the end which wouldn change anything ph3Overhead per data page h3pData page size is typically KB Some overhead bloat at this level too Remainders not big enough to fit another tuple and more importantly dead rows or percentage reserved with the href https www postgresql org docs current static sql createtable html SQL CREATETABLE STORAGE PARAMETERS rel noreferrer codeFILLFACTOR code setting ppThere are couple of other factors for size on disk to take into account pulli href https stackoverflow com questions 10885706 how many records can store in mb of postgresql on heroku How many records can store in MB of PostgreSQL on Heroku lili href https stackoverflow com questions 5008753 does not using null in postgresql still use null bitmap in the header lq Does not using NULL in PostgreSQL still use NULL bitmap in the header lili href https dba stackexchange com 43142 3684 Configuring PostgreSQL for read performance li ulh3Array types h3pWith strongarray strong like you were evaluating you would add strong24 bytes of overhead strong for the array type Plus elements of an array occupy space as usual Nothing to gain there Because nobody implemented the division between logical and physical column order It an open TODO item https wiki postgresql org index php title Alter column position action history but not trivial since it messing with system catalogs all over the place Still true almost years later Since Postgres VIEW can serve to present different column order for simple cases writes are propagated automatically too h3 Column Tetris h3pActually you can do strong emsomething em strong but this needs deeper understanding The keyword is strong emalignment padding em strong href https www postgresql org docs current static catalog pg type html rel noreferrer Every data type has specific alignment requirements ppYou can minimize space lost to padding strong embetween columns em strong by ordering them favorably The following extreme example would waste lot of physical disk space ppre codeCREATE TABLE int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 code prepTo save strong24 bytes strong per row use instead ppre codeCREATE TABLE int8 int8 int8 int8 int2 int2 int2 int2 int2 occupy byte MAXALIGN no padding at the end code prepAs rule of thumb if you put byte columns first then bytes bytes and byte columns last you can go wrong codetext code or codeboolean code do not have alignment restrictions like that some other types do Some types can be href https www postgresql org docs current static storage toast html rel noreferrer compressed or toasted stored out of line or both ppNormally you may save couple of bytes per row at best playing em column tetris em None of this is necessary in most cases But with billions of rows it can mean couple of gigabytes easily ppYou can test the actual column row size with the function href https www postgresql org docs current static functions admin html FUNCTIONS ADMIN DBSIZE rel noreferrer strong codepg column size code strong brBe aware that some data types can use more space in RAM than on disk compressed format So you can get bigger results for constants RAM format than for table columns disk format when testing the same value or row of values vs table row with codepg column size code pp href http www sqlfiddle com 17 84e13 84 rel noreferrer strongSQL Fiddle strong ph3Overhead per tuple row h3p4 bytes per row for the item pointer not subject to above considerations brAnd at least 24 bytes 23 padding for the tuple header href https www postgresql org docs current static storage page layout html rel noreferrer The manual on Database Page Layout pblockquote pThere is fixed size header occupying 23 bytes on most machines followed by an optional null bitmap an optional object ID field and the user data blockquotepFor the padding between header and user data you need to know codeMAXALIGN code on your server typically bytes on 64 bit OS or bytes on 32 bit OS If you are not sure check out href https www postgresql org docs current static app pgcontroldata html rel noreferrer codepg controldata code ppRun the following in your emPostgres binary dir em to get definitive answer ppre code pg controldata path to my dbcluster code prep href https www postgresql org docs current static storage page layout html rel noreferrer The manual pblockquote pThe actual user data columns of the row begins at the offset indicated by codet hoff code which must always be multiple of the codeMAXALIGN code distance for the platform blockquotepSo you typically get the storage optimum by packing data in multiples of bytes ppThere is nothing to gain in the emexample you posted em It already packed tightly bytes of padding after the last codeint2 code bytes at the end You could consolidate the padding to bytes at the end which wouldn change anything ph3Overhead per data page h3pData page size is typically KB Some overhead bloat at this level too Remainders not big enough to fit another tuple and more importantly dead rows or percentage reserved with the href https www postgresql org docs current static sql createtable html SQL CREATETABLE STORAGE PARAMETERS rel noreferrer codeFILLFACTOR code setting ppThere are couple of other factors for size on disk to take into account pulli href https stackoverflow com questions 10885706 how many records can store in mb of postgresql on heroku How many records can store in MB of PostgreSQL on Heroku lili href https stackoverflow com questions 5008753 does not using null in postgresql still use null bitmap in the header lq Does not using NULL in PostgreSQL still use NULL bitmap in the header lili href https dba stackexchange com 43142 3684 Configuring PostgreSQL for read performance li ulh3Array types h3pWith strongarray strong like you were evaluating you would add strong24 bytes of overhead strong for the array type Plus elements of an array occupy space as usual Nothing to gain there Sounds like useful feature tool to reorder columns before the table gets created which avoids complications from messing with system catalogs Might also be implemented in any client software tool to optimize CREATE TABLE statement for minimal storage h3 Column Tetris h3pActually you can do strong emsomething em strong but this needs deeper understanding The keyword is strong emalignment padding em strong href https www postgresql org docs current static catalog pg type html rel noreferrer Every data type has specific alignment requirements ppYou can minimize space lost to padding strong embetween columns em strong by ordering them favorably The following extreme example would waste lot of physical disk space ppre codeCREATE TABLE int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 code prepTo save strong24 bytes strong per row use instead ppre codeCREATE TABLE int8 int8 int8 int8 int2 int2 int2 int2 int2 occupy byte MAXALIGN no padding at the end code prepAs rule of thumb if you put byte columns first then bytes bytes and byte columns last you can go wrong codetext code or codeboolean code do not have alignment restrictions like that some other types do Some types can be href https www postgresql org docs current static storage toast html rel noreferrer compressed or toasted stored out of line or both ppNormally you may save couple of bytes per row at best playing em column tetris em None of this is necessary in most cases But with billions of rows it can mean couple of gigabytes easily ppYou can test the actual column row size with the function href https www postgresql org docs current static functions admin html FUNCTIONS ADMIN DBSIZE rel noreferrer strong codepg column size code strong brBe aware that some data types can use more space in RAM than on disk compressed format So you can get bigger results for constants RAM format than for table columns disk format when testing the same value or row of values vs table row with codepg column size code pp href http www sqlfiddle com 17 84e13 84 rel noreferrer strongSQL Fiddle strong ph3Overhead per tuple row h3p4 bytes per row for the item pointer not subject to above considerations brAnd at least 24 bytes 23 padding for the tuple header href https www postgresql org docs current static storage page layout html rel noreferrer The manual on Database Page Layout pblockquote pThere is fixed size header occupying 23 bytes on most machines followed by an optional null bitmap an optional object ID field and the user data blockquotepFor the padding between header and user data you need to know codeMAXALIGN code on your server typically bytes on 64 bit OS or bytes on 32 bit OS If you are not sure check out href https www postgresql org docs current static app pgcontroldata html rel noreferrer codepg controldata code ppRun the following in your emPostgres binary dir em to get definitive answer ppre code pg controldata path to my dbcluster code prep href https www postgresql org docs current static storage page layout html rel noreferrer The manual pblockquote pThe actual user data columns of the row begins at the offset indicated by codet hoff code which must always be multiple of the codeMAXALIGN code distance for the platform blockquotepSo you typically get the storage optimum by packing data in multiples of bytes ppThere is nothing to gain in the emexample you posted em It already packed tightly bytes of padding after the last codeint2 code bytes at the end You could consolidate the padding to bytes at the end which wouldn change anything ph3Overhead per data page h3pData page size is typically KB Some overhead bloat at this level too Remainders not big enough to fit another tuple and more importantly dead rows or percentage reserved with the href https www postgresql org docs current static sql createtable html SQL CREATETABLE STORAGE PARAMETERS rel noreferrer codeFILLFACTOR code setting ppThere are couple of other factors for size on disk to take into account pulli href https stackoverflow com questions 10885706 how many records can store in mb of postgresql on heroku How many records can store in MB of PostgreSQL on Heroku lili href https stackoverflow com questions 5008753 does not using null in postgresql still use null bitmap in the header lq Does not using NULL in PostgreSQL still use NULL bitmap in the header lili href https dba stackexchange com 43142 3684 Configuring PostgreSQL for read performance li ulh3Array types h3pWith strongarray strong like you were evaluating you would add strong24 bytes of overhead strong for the array type Plus elements of an array occupy space as usual Nothing to gain there Thanks this explains all the sudden love pCounting rows in embig em tables is known to be slow in PostgreSQL To get precise number it has to do full count of rows due to the nature of href http www postgresql org docs current interactive mvcc html rel noreferrer MVCC There is way to strongspeed this up dramatically strong if the count does strongnot strong have to be strongexact strong like it seems to be in your case ppInstead of getting the emexact em count strongslow strong with big tables ppre codeSELECT count AS exact count FROM myschema mytable code prepYou get close estimate like this strongextremely fast strong ppre codeSELECT reltuples bigint AS estimate FROM pg class where relname mytable code prepHow close the estimate is depends on whether you run href http www postgresql org docs current interactive sql analyze html rel noreferrer codeANALYZE code enough It is usually very close brSee the href http wiki postgresql org wiki FAQ Why is 22SELECT count 28 2A 29 FROM bigtable 3B 22 slow 3F rel noreferrer PostgreSQL Wiki FAQ brOr href http wiki postgresql org wiki Slow Counting rel noreferrer the dedicated wiki page for count performance ph3Better yet h3pThe article in the PostgreSQL Wiki strikeis strike was stronga bit sloppy strong It ignored the possibility that there can be multiple tables of the same name in one database in different schemas To account for that ppre codeSELECT reltuples bigint AS estimateFROM pg class cJOIN pg namespace ON oid relnamespaceWHERE relname mytable AND nspname myschema code preh2Or better still h2pre codeSELECT reltuples bigint AS estimateFROM pg classWHERE oid myschema mytable regclass code prepFaster simpler safer more elegant See the manual on href http www postgresql org docs current static datatype oid html rel noreferrer Object Identifier Types ppUse codeto regclass myschema mytable code in Postgres to avoid exceptions for invalid table names pulli href https stackoverflow com questions 20582500 how to check if table exists in given schema 24089729 24089729 How to check if table exists in given schema li ulp br ph3 href http www postgresql org docs devel static sql select html SQL FROM rel noreferrer codeTABLESAMPLE SYSTEM code in Postgres h3pre codeSELECT 100 count AS estimate FROM mytable TABLESAMPLE SYSTEM code prepLike href https stackoverflow com questions 7943233 fast way to discover the row count of table 7945274 noredirect comment52393816 7945274 commented the newly added clause for the codeSELECT code command might be useful if statistics in codepg class code are not current enough for some reason For example pulliNo codeautovacuum code running liliImmediately after big codeINSERT code or codeDELETE code lili codeTEMPORARY code tables which are not covered by codeautovacuum code li ulpThis only looks at random emn em code1 code in the example selection of blocks and counts rows in it bigger sample increases the cost and reduces the error your pick Accuracy depends on more factors pulliDistribution of row size If given block happens to hold wider than usual rows the count is lower than usual etc liliDead tuples or codeFILLFACTOR code occupy space per block If unevenly distributed across the table the estimate may be off liliGeneral rounding errors li ulpIn most cases the estimate from codepg class code will be faster and more accurate ph3Answer to actual question h3blockquote pFirst need to know the number of rows in that table if the total count is greater than some predefined constant blockquotepAnd whether it pblockquote is possible at the moment the count pass my constant value it will stop the counting and not wait to finish the counting to inform the row count is greater blockquotep strongYes strong You can use strongsubquery with codeLIMIT code strong ppre codeSELECT count FROM SELECT FROM token LIMIT 500000 code prepPostgres emactually stops counting em beyond the given limit you get an emexact and current em count for up to emn em rows 500000 in the example and emn em otherwise Not ne,,,,,,,, "rly as fast as """,nice answer enlighten nice answer enlighten nice answer good answer good answer nice answer nice answer nice answer nice answer enlighten enlighten nice answer enlighten nice answer necromancer guru nice answer enlighten nice answer necromancer good answer great answer nice answer nice answer guru nice answer database guru good answer nice answer enlighten revival nice answer enlighten good answer nice answer nice answer enlighten revival nice answer enlighten enlighten great answer nice answer nice answer enlighten good answer nice answer good answer famous question announcer nice answer good answer nice answer enlighten nice answer enlighten good answer performance announcer good answer good answer nice answer good answer revival good answer nice answer nice answer enlighten loop nice answer announcer nice answer enlighten good answer necromancer nice answer nice answer announcer nice answer nice answer good answer csv nice answer nice answer guru nice answer nice answer enlighten nice answer necromancer guru great answer nice answer guru nice answer enlighten nice answer enlighten nice answer enlighten good answer good answer good answer revival nice answer enlighten nice answer nice answer good answer revival popular question guru guru guru nice answer nice answer enlighten great answer good answer good answer nice answer nice answer necromancer good answer nice answer good answer nice answer guru nice answer enlighten announcer nice answer necromancer nice answer nice answer nice answer guru good answer good answer guru nice answer nice answer enlighten nice answer good answer nice answer nice answer enlighten good answer nice answer guru nice answer enlighten necromancer nice answer good answer yearle good answer nice answer nice answer enlighten nice answer nice answer enlighten nice answer good answer nice answer good answer guru nice answer great answer guru good answer nice answer enlighten nice answer nice answer nice answer good answer nice answer enlighten nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer enlighten nice answer enlighten announcer heroku good answer good answer nice answer necromancer caucus nice answer revival great answer nice answer good answer guru necromancer constituent guru necromancer nice answer good answer nice answer nice answer enlighten good answer nice answer nice answer nice answer enlighten nice answer enlighten nice answer nice answer enlighten guru crosstab populist good answer nice answer good answer great answer great answer good answer nice answer nice answer good answer nice answer good answer good answer nice answer good answer nice answer nice answer good answer announcer nice answer enlighten announcer nice answer enlighten nice answer nice answer great answer nice answer enlighten great answer guru guru good answer nice answer guru nice answer nice answer enlighten enlighten nice answer nice answer good answer nice answer enlighten nice answer enlighten nice answer great answer nice answer enlighten trigger necromancer guru guru good answer function nice answer enlighten guru necromancer notable question nice answer nice answer good answer nice answer nice answer enlighten nice answer enlighten nice answer good answer good answer concurrency populist guru nice answer enlighten popular question announcer good answer popular question announcer good answer announcer nice answer enlighten announcer guru nice answer enlighten good answer famous question nice answer great answer nice answer announcer enlighten nice answer enlighten announcer announcer announcer nice answer nice answer announcer good answer nice answer announcer nice answer enlighten nice answer nice answer enlighten enlighten nice answer nice answer announcer good answer announcer announcer announcer nice answer announcer announcer announcer announcer nice answer announcer announcer announcer announcer announcer guru great answer good answer great answer nice answer enlighten nice answer announcer nice answer nice answer good answer good answer nice answer enlighten good answer great answer guru announcer nice answer enlighten nice answer guru nice answer enlighten nice answer nice answer announcer nice answer enlighten good answer nice answer enlighten good answer announcer announcer announcer great answer nice answer enlighten announcer nice answer nice answer enlighten good answer good answer caucus nice answer nice answer enlighten good answer json announcer announcer nice answer enlighten nice answer enlighten guru upsert constituent announcer announcer nice answer guru nice answer nice answer necromancer ruby nice answer nice answer enlighten good answer nice answer nice answer arrays nice answer good answer nice answer nice answer enlighten announcer nice answer announcer guru nice answer enlighten nice answer announcer nice answer enlighten nice answer enlighten good answer yearle nice answer enlighten guru announcer nice answer nice answer enlighten announcer nice answer nice answer nice answer enlighten popular question great answer good answer nice answer enlighten nice answer custodian nice answer enlighten good answer variable nice answer guru guru guru announcer good answer nice answer nice answer nice answer enlighten revival announcer good answer join nice answer nice answer guru revival good answer nice answer nice answer enlighten nice question good answer datetime good answer great answer announcer announcer good answer nice answer announcer good answer announcer nice answer enlighten nice answer good answer nice answer enlighten announcer guru nice answer enlighten nice answer nice answer great answer nice answer guru good answer necromancer good answer good answer good answer announcer good answer good answer nice answer nice answer nice answer nice answer enlighten nice answer enlighten nice answer populist great answer announcer good answer revival nice question good answer good answer great answer good answer nice answer nice answer enlighten nice answer enlighten good answer guru nice answer good answer nice answer nice answer enlighten good answer guru populist revival necromancer good answer nice answer enlighten announcer nice answer enlighten nice answer nice answer jdbc great answer nice answer enlighten nice answer nice answer enlighten announcer good answer announcer great answer nice answer enlighten guru announcer nice answer enlighten good answer nice answer enlighten nice answer nice answer enlighten nice answer enlighten good answer nice answer nice answer announcer nice answer enlighten good answer announcer nice answer good answer announcer caucus nice answer revival good answer nice answer good answer enlighten nice answer nice answer guru good answer good answer constituent announcer good answer announcer announcer good answer good answer nice answer nice answer good answer great answer announcer nice answer nice answer enlighten nice answer sort nice answer nice answer enlighten announcer good answer nice answer enlighten guru revival announcer nice answer enlighten nice answer nice answer enlighten announcer nice answer enlighten great answer nice answer union nice answer enlighten good answer nice answer enlighten good answer nice answer guru announcer announcer nice answer enlighten nice answer enlighten nice answer good answer nice answer nice answer nice answer nice answer enlighten guru revival nice answer great answer guru good answer announcer nice answer enlighten good answer necromancer nice answer enlighten announcer guru nice answer guru good answer nice answer nice answer good answer guru nice answer announcer nice answer nice answer guru nice answer enlighten nice answer good answer announcer necromancer announcer announcer necromancer announcer good answer good answer yearle nice answer nice answer enlighten aggregate nice answer enlighten nice answer nice answer guru great answer nice answer enlighten nice answer great answer nice answer enlighten good answer cursor good answer announcer nice answer great answer announcer great answer announcer announcer guru guru guru nice answer enlighten nice answer nice answer nice answer nice answer enlighten good answer nice answer great answer nice answer necromancer enlighten nice answer necromancer nice answer enlighten revival copy multiple csv file postgresql postgresql csv postgi plpgsql postgresql copy pi postgi database point postgre extract point geographically distinct area csv file file area ppi set codearea code table area polygon area title effectively loop table postgi cod intersect code select datum csv file filename csv file title area table ppi comfortable detail intersection code set csv output area sort join store procedure loop construct plpgsql pyou loop row area table plpgsql careful quote identifier value ppassume setup codecreate table area title text primary key area polygon geometry create table point point serial primary key geom geometry code prepyou plpgsql block codedo declare title text begin title select title area loop execute format copy select area join point intersect geom area polygon title format csv title path title csv end loop end code prepuse format strong code code strong string strongl strongiteral properly quote string avoid syntax error strongsql injection strong string codearea title code work file name ppalso careful quote filename ema -PRON- title strongnote strong utility command codecopy code emvariable substitution -PRON- command codeinsert code codeupdate code codedelete code concatenate command emstring -PRON- ppthis read codearea area polygon code loop cast codetext code concatenate query string text representation cast codegeometry code actual undisclose datum type prone error ppinstead read codearea title code uniquely identify row handle rest query internally pulli href https stackoverflow question error set distinct plpgsql variable error set distinct plpgsql variable li puse href https postgresql org docs current static unaccent html noreferrer strongunaccent module strong completely link pblockquote punaccent text search dictionary remove accent diacritic sign lexeme database codecreate extension unaccent code prepif error pblockquote perror open extension control file usr share postgresql extension unaccent control file directory contrib package database server instruct relate answer pulli href https stackoverflow question error create unaccent extension postgresql error create unaccent extension postgresql li ulpamong thing function codeunaccent code codelike code need codeselect userswhere unaccent unaccent code index kind query create href https postgresql org docs current static index expressional html noreferrer index expression stronghowever strong postgre accept codeimmutable code function index function return result input index silently break codeunaccent code codestable code codeimmutable code codeunaccent code codestable code codeimmutable code href https postgresql org message flat postgresql org postgresql org noreferrer thread pgsql bug emthree -PRON- reason polliit depend behavior dictionary hard wire connection dictionary liliit depend current codesearch path code change easily li olp href https django orm readthedocs org late orm fulltext html noreferrer tutorial web instruct alter function volatility codeimmutable code brute force method break condition ppother suggest href https postgresql org message flat gmail gmail noreferrer simple codeimmutable code wrapper function ppthere ongoing debate make href https postgresql org docs current static unaccent html noreferrer variant parameter codeimmutable code declare dictionary explicitly read href https postgresql org message flat noreferrer href https postgresql org message flat wg gmail wg gmail noreferrer ppanother alternative module href https github metabrainz postgresql musicbrainz unaccent noreferrer immutable codeunaccent code function musicbrainz provide github test strong embetter idea -PRON- strong propose approach stronga efficient solution float safe strong create wrapper function parameter form hard wire schema function dictionary codecreate replace function public unaccent text return text func select bpublic bunaccent public unaccent schema qualify function dictionary func language sql immutable code prep codepublic code schema instal extension codepublic code default empreviously add codeset search path public temp code function discover dictionary schema qualify href https postgresql org docs current static unaccent html noreferrer document version bit short fast test -PRON- ppthe update version href https wiki postgresql org wiki inline sql function noreferrer function inline function declare codeimmutable code immutable function body matter performance make strong href https postgresql org docs current static index expressional html noreferrer expression index strong codeimmutable code function codecreate index user unaccent idx user public unaccent code prepsecurity client program tighten postgre emnee -PRON- schema qualify function dictionary demonstrate index pulli href https stackexchange question text search dictionary unaccent exist entry postgre log supp noredirect text search dictionary unaccent exist entry postgre log supposedly automatic analyze li ulpadapt query match index query planner codeselect userswhere unaccent unaccent code prepyou function expression supply unaccented string code joao code directly postgre old strong ligature expand manually codeunaccent code substitute emsingle -PRON- letter codeselect unaccent unaccent code prepyou love href https postgresql org message flat postgresql org postgresql org noreferrer update unaccent postgre strong pblockquote pextend codecontrib unaccent code standard codeunaccent rule code file handle diacritic unicode strongexpand ligature correctly strong thomas munro benedetti blockquotepbold emphasis codeselect unaccent unaccent ae ae ss code match strong codelike code strong strong codeilike code strong arbitrary pattern combine module href https postgresql org docs current static pgtrgm html noreferrer strong codepg trgm code strong postgresql create trigram gin typically preferable gist expression index gin codecreate index user unaccent trgm idx usersusing gin unaccent gin trgm op code prepcan query codeselect userswhere unaccent unaccent code prepgin gist index expensive maintain plain btree pulli href https stackoverflow question difference gist gin index difference gist gin index li ulpthere simple solution leave anchor pattern pattern match performance pulli href https stackexchange pattern match similar regular expression postgresql li ulp codepg trgm code href https postgresql org docs current static pgtrgm html pgtrgm table noreferrer operator similarity code code distance code lt code pptrigram index support simple regular expression code code al strongcase insensitive strong pattern match codeilike code pulli href https stackoverflow question postgresql accent case insensitive search postgresql accent case insensitive search li depend question question comment place link context pthe sql ddl datum definition language statement codecreate table product product serial primary key implicit primary key constraint product text null price numeric null default create table serial primary key text null billdate date null default current date create table product int reference update cascade delete cascade product int reference product product update cascade numeric null default constraint product pkey primary key product explicit pk code prepi adjustment pulli pthe strongn relationship strong implement separate table codebill product code case lili pi add href https stackoverflow question safely cleanly rename table serial primary key column postgre strong codeserial code strong column strongsurrogate primary key strong highly recommend product unique enforce uniqueness reference column foreign key cheap byte codeinteger code string store codetext code codevarchar code brin postgre href https postgresql org docs current static sql createtable html noreferrer strong codeidentity code strong column detail pulli href https blog postgresql identity column noreferrer https blog postgresql identity column li lili pdon name basic datum type codedate code strong bad style lead confuse error error message href http postgresql org docs current interactive sql syntax lexical html sql syntax identifier noreferrer legal low case unquoted identifier href http postgresql org docs current interactive sql keyword appendix html noreferrer reserve word avoid double quote mix case identifier lili codename code good rename codename code column table codeproduct code codeproduct code strongname convention strong join couple table query ema lot -PRON- relational database end multiple column name codename code column alias sort mess helpful widespread pattern codeid code column bri codebill code codebill code emname -PRON- case lili codeprice code strongdata type strong codenumeric code store fractional number emprecisely enter -PRON- arbitrary precision type float point type deal number exclusively make codeinteger code save emprice cent -PRON- lili pthe codeamount code code product code question link table codebill product code type codenumeric code codeinteger code deal number exclusively lili pyou strongforeign key strong codebill product code create cascade codeon update cascade code codeproduct code codebill code change change cascade depend entry codebill product code break bri codeon delete cascade code codebill code delete detail delete brnot product delete product postgre throw error attempt add column codeproduct code mark obsolete row lili pall column basic end strong codenot null code strong codenull code value allow emall -PRON- column column primary key define codeunique null code automatically codenull code value make sense column make beginner life easy easily understand href http postgresql org docs current interactive function comparison html noreferrer codenull code handle additional column codenull code value function join introduce codenull code value query lili pread chapter href http postgresql org docs current interactive sql createtable html noreferrer codecreate table code manual lili pprimary key implement unique strongindex strong key column make query condition pk column fast sequence key column relevant multicolumn key pk codebill product code code product code add index codeproduct code code product code query codeproduct code codebill code detail pulli href https stackoverflow question postgresql composite primary key postgresql composite primary key lili href https stackexchange composite index good query field lili href https stackexchange work index postgresql li lili pread href http postgresql org docs current interactive index html noreferrer chapter index manual li row table add item product query query create ddl statement simplify cast href https postgresql org docs current interactive datatype oid html noreferrer code codeselect drop function oid procwhere proname function schema function visible oid restrict current search path code prepoutput codedrop function function string text form text maxlen integer drop function function string text form text drop function function string text code prepexecute command plausibility check ppthe function case sensitive add double quote pass codetext code parameter match codepg proc proname code ppthe cast object identifi type code strong codeoid regprocedure code strong make identifier strongsafe sql injection strong maliciously malforme identifier convert codetext code function double quote schema qualify current href https stackoverflow question create table specific schema default postgre codesearch path code automatically need href https postgresql org docs current interactive function info html function info schema table noreferrer codepg function visible oid code restrict selection function current href https stackoverflow question create table specific schema default postgre codesearch path code condition codepg function visible oid code place function guarantee visible ppif multiple function multiple schema overload function function argument strong emall -PRON- strong list separately restrict specific schema specific function parameter pprelate pulli href https stackoverflow question default expression function bind regard search pa default expression function bind regard search path li build codeplpgsql code function execute statement immediately href https postgresql org docs current interactive plpgsql statement html plpgsql statement execute noreferrer codeexecute code postgre strong strongcareful drop function strong codecreate replace function text func drop int func declare sql text begin select count int drop function string agg oid regprocedure text drop function proc proname function visible oid func drop sql return trail drop succeed func drop function execute sql end end func language plpgsql code prepcall codeselect function code prepor codeselect function code prepthis column emname -PRON- codefunc drop code result column matter ppthe function return number function drop exception raise code ppit assume default codesearch path code codepg catalog code move brmore relate answer pulli href https stackoverflow question search path influence identifi resolution current schema search path influence identifi resolution current schema lili href https stackoverflow question truncate table postgre database truncate table postgre database lili href https stackoverflow question postgresql parameterize order limit table function postgresql parameterize order limit table function li ulp strong emfor postgre version old old variant function coderegproc code codepg function identity argument oid code check edit history answer -PRON- strong update improve function care pexplicit cursor rarely need plpgsql simple faster strongimplicit cursor strong href http postgresql org docs current interactive plpgsql control structure html plpgsql record iterate nofollow noreferrer strong codefor code strong loop strongnote strong table name unique database schema qualify table name limit function default schema public adapt exclude schema codepg code codeinformation schema code ppbe strongvery careful strong function nuke database add child safety device comment coderaise notice code line uncomment codeexecute code prime bomb codecreate replace function truncate table username text return void func declare tbl text sch text begin sch tbl select schemaname tablename table tableowner username schemaname public loop raise notice execute dangerous test execute format truncate table cascade sch tbl end loop end func language plpgsql code prep href http postgresql org docs current interactive function string html function string format nofollow noreferrer codeformat code require postgre old version concatenate query string code truncate table quote ident sch quote ident tbl cascade code command loop href http postgresql org docs current interactive sql truncate html nofollow noreferrer strong codetruncate code strong multiple table cursor loop pulli href https stackoverflow question pass table name array pass table name array li ulpaggregate table name execute single statement simple faster codecreate replace function truncate table username text return void func begin raise notice execute dangerous test execute select truncate table string agg format schemaname tablename cascade table tableowner username schemaname public end func language plpgsql code prepcall codeselect truncate table postgre code query function postgre execute dynamic command href http postgresql org docs current interactive sql html nofollow noreferrer strong codedo code strong statement postgre syntax simple codedo func begin raise notice execute select truncate table string agg oid regclass text cascade class relkind table relnamespace public regnamespace end func code prepabout difference codepg class code codepg table code codeinformation schema table code pulli href https stackoverflow question check table exist schema check table exist schema li coderegclass code quote table name pulli href https stackoverflow question table postgresql function parameter table postgresql function parameter li repeat simple faster create template database codemy template code vanilla structure table strong codedrop code href http postgresql org docs current interactive sql createdatabase html nofollow noreferrer codecreate database code strong cycle codedrop database mydb create database mydb btemplate template code prepthis strong emextremely -PRON- fast strong postgre copy structure file level concurrency issue overhead slow blockquote pi store select pseudo column table blockquotepa href http postgresql org docs current interactive sql createview html noreferrer codeview code advise perfectly valid solution fit question closely write function take table type parameter strong ememulate -PRON- strong strong compute field strong strong generate column strong ppconsider test case derive description codecreate table tbl int int int insert tbl value create table tbl int int colx int insert tbl value code prepcreate function emulate code codecreate function tbl return func select sum colx tbl func language sql stable code prepnow query codeselect tbl tbl code prepor codeselect tbl code prepnote write codetbl code codea code code emessential -PRON- ppunlike href https oracle base article virtual column noreferrer virtual column oracle strong emnot -PRON- strong include automatically codeselect tbl code codeview code work common reference table column strongattribute notation strong ppreselect btbl tbl prepthe common function notation strong ppreselect tbl prepgenerally strongstick canonical way strong agree sql standard ppbut postgresql functional notation attribute notation equivalent work ppreselect tbl tbl select btbl prep href http postgresql org docs current interactive sql html sql composite function noreferrer manual bryou emlook -PRON- add extra column table codetbl code code function take current row codetbl code alias row type argument compute codeselect tbl code prepif actual column code take priority function take row codetbl code parameter ppthe beauty add drop column codetbl code query dynamically return current column view return column exist creation time early bind late bind code code brof drop depend function drop table care invalidate function make table function automatically table spell instruct clarify pit depend test strong emexactly -PRON- strong schema table exist emno matter -PRON- querying information schema codeinformation schema table code strongincorrect strong strictly speak href http postgresql org docs current interactive infoschema table html noreferrer documentation pblockquote ponly table view show current user access owner privilege blockquotepthe query href https stackoverflow demonstrate return codefalse code table exist answer question strong check table view exist current user access -PRON- strong codeselect exist select information schema table table schema schema table table code prepthe information schema stay portable major version rdbms implementation slow postgre sophisticated view comply standard codeinformation schema table code simple information oid lose translation catalog emactually -PRON- carry information catalog question strong check table exist -PRON- strong codeselect exist select catalog class join catalog namespace oid relnamespace nspname schema relname table relkind table code prepuse catalog codepg class code codepg namespace code directly considerably faster href http postgresql org docs current interactive catalog class html noreferrer documentation codepg class code pblockquote pthe catalog codepg class code catalog table column similar table include strongindexe strong codepg index code strongsequence strong strongview strong view strong strongcomposite type strong strongtoast table strong blockquotepfor question href https postgresql org docs current static view table html noreferrer view strong codepg table code strong bit simple portable major postgre version concern basic query codeselect exist select table schemaname schema tablename table code prepidentifier unique emall -PRON- object mention strong check table similar object schema -PRON- strong codeselect exist select catalog class join catalog namespace oid relnamespace nspname schema relname table code preulli href https stackexchange question query return output column name datum type query table view relate answer discuss strong information schema catalog strong li cast href http postgresql org docs current interactive datatype oid html noreferrer strong coderegclass code strong codeselect schema table regclass code prepthis emraise exception -PRON- optionally schema qualify table object occupy exist ppif schema qualify table cast coderegclass code default href https stackoverflow question create table specific schema default postgre strong codesearch path code strong return oid table exception table list schema note schema codepg catalog code codepg temp code schema temporary object current session automatically codesearch path code ppyou catch exception function pulli href https stackoverflow question check sequence exist postgre plpgsql check sequence exist postgre plpgsql li ulpa query avoid exception slightly faster href http postgresql org docs current interactive function info html function info catalog table noreferrer codeto regclass code postgre simple codeselect regclass schema table code prepsame cast href http postgresql org docs current interactive function info html function info catalog table noreferrer strongbut strong return pblockquote null throw error blockquote table good idea check table exist check table purpose explain table view involve table class namespace tablespace bit expensive important reason query class directly table write answer add pit depend test strong emexactly -PRON- strong schema table exist emno matter -PRON- querying information schema codeinformation schema table code strongincorrect strong strictly speak href http postgresql org docs current interactive infoschema table html noreferrer documentation pblockquote ponly table view show current user access owner privilege blockquotepthe query href https stackoverflow demonstrate return codefalse code table exist answer question strong check table view exist current user access -PRON- strong codeselect exist select information schema table table schema schema table table code prepthe information schema stay portable major version rdbms implementation slow postgre sophisticated view comply standard codeinformation schema table code simple information oid lose translation catalog emactually -PRON- carry information catalog question strong check table exist -PRON- strong codeselect exist select catalog class join catalog namespace oid relnamespace nspname schema relname table relkind table code prepuse catalog codepg class code codepg namespace code directly considerably faster href http postgresql org docs current interactive catalog class html noreferrer documentation codepg class code pblockquote pthe catalog codepg class code catalog table column similar table include strongindexe strong codepg index code strongsequence strong strongview strong view strong strongcomposite type strong strongtoast table strong blockquotepfor question href https postgresql org docs current static view table html noreferrer view strong codepg table code strong bit simple portable major postgre version concern basic query codeselect exist select table schemaname schema tablename table code prepidentifier unique emall -PRON- object mention strong check table similar object schema -PRON- strong codeselect exist select catalog class join catalog namespace oid relnamespace nspname schema relname table code preulli href https stackexchange question query return output column name datum type query table view relate answer discuss strong information schema catalog strong li cast href http postgresql org docs current interactive datatype oid html noreferrer strong coderegclass code strong codeselect schema table regclass code prepthis emraise exception -PRON- optionally schema qualify table object occupy exist ppif schema qualify table cast coderegclass code default href https stackoverflow question create table specific schema default postgre strong codesearch path code strong return oid table exception table list schema note schema codepg catalog code codepg temp code schema temporary object current session automatically codesearch path code ppyou catch exception function ,,,,,,, "ulli href https stackoverflow question check sequence exist postgre plpgsql check sequence exist postgre plpgsql li ulpa query avoid exception slightly faster href http postgresql org docs current interactive function info html function info catalog table noreferrer codeto regclass code postgre simple codeselect regclass schema table code prepsame cast href http postgresql org docs current interactive function info html function info catalog table noreferrer strongbut strong return pblockquote null throw error blockquote remove incorrect comment temp schema https postgresql org docs static function info html function info session table oid actual temp schema exist view information schema include oid select nspname namespace oid temp schema test weakness correct test table schema temp strict table schema temp pin strong typically strongsimpler faster strong performance optimization codeselect bdistinct customer customer totalfrom purchasesorder customer total desc code prepor short clear ordinal number output column codeselect distinct customer totalfrom purchasesorder desc code prepif codetotal code null hurt match exist index code order customer total desc bnull code point href https postgresql org docs current static sql select html sql distinct noreferrer strong codedistinct code strong postgresql extension standard codedistinct code codeselect code list define lili plist number expression codedistinct code clause combine row define duplicate href https postgresql org docs current static query select list html query distinct noreferrer manual pblockquote pobviously row consider distinct differ column strongnull value consider equal comparison strong blockquotepbold emphasis lili codedistinct code combine strong codeorder code strong lead expression match lead codedistinct code expression order add emadditional -PRON- expression codeorder code pick row group peer add codeid code item break tie -PRON- pick row small codeid code group sharing high codetotal code -PRON- ppif codetotal code null emmost -PRON- row great null add codenull code demonstrate detail pulli href https stackoverflow question postgresql sort datetime asc null postgresql sort datetime asc null li lili strongthe codeselect code list strong constrain expression codedistinct code codeorder code need simple case pulli pyou emdon -PRON- include expression codedistinct code codeorder code lili pyou emcan -PRON- include expression codeselect code list instrumental replace complex query subquerie aggregate window function li lili pi test postgre version feature version basically li emperfect -PRON- index query href https postgresql org docs current static index multicolumn html noreferrer multi column index span column match sequence match sort order codecreate index purchase idx purchase customer total desc code prepmay specialize read performance query crucial codedesc null code query index sort order match index applicable performance optimization cost benefit create tailor index query potential index largely depend strongdata distribution strong ppthe index deliver sort datum postgre query benefit strong href https postgresql org docs current static index index scan html noreferrer index scan strong index small underlie table index scan entirety pulli pfor strong emfew -PRON- row customer strong high cardinality column codecustomer code efficient sort output benefit shrink grow number row customer brideally href https postgresql org docs current static runtime config resource html guc work mem noreferrer strong codework mem code strong process involve sort step ram spill disk generally set codework mem code emtoo -PRON- high adverse effect codeset local code exceptionally big query codeexplain analyze code mention emdisk -PRON- sort step pulli href https stackoverflow question configuration parameter work mem postgresql configuration parameter work mem postgresql lili href https stackexchange question optimize simple query order date text optimize simple query order date text li lili pfor strong emmany -PRON- row customer strong low cardinality column codecustomer code href https wiki postgresql org wiki loose indexscan noreferrer strongloose index scan strong skip scan efficient implement postgre implementation index scan plan postgre href https commitf postgresql org noreferrer href https postgresql org message flat noreferrer brfor strongfaster query technique strong substitute separate table hold unique customer typical case pulli strong href https stackoverflow question optimize group query retrieve late record user optimize group query retrieve late record user strong lili href https stackoverflow question optimize groupwise maximum query optimize groupwise maximum query lili href https stackoverflow question querying relate record postgre query relate row row li li simple benchmark outdate replace href https stackoverflow strongdetaile benchmark separate answer strong original benchmark setup time run test detail add answer http stackoverflow add comment result installation pin strong typically strongsimpler faster strong performance optimization codeselect bdistinct customer customer totalfrom purchasesorder customer total desc code prepor short clear ordinal number output column codeselect distinct customer totalfrom purchasesorder desc code prepif codetotal code null hurt match exist index code order customer total desc bnull code point href https postgresql org docs current static sql select html sql distinct noreferrer strong codedistinct code strong postgresql extension standard codedistinct code codeselect code list define lili plist number expression codedistinct code clause combine row define duplicate href https postgresql org docs current static query select list html query distinct noreferrer manual pblockquote pobviously row consider distinct differ column strongnull value consider equal comparison strong blockquotepbold emphasis lili codedistinct code combine strong codeorder code strong lead expression match lead codedistinct code expression order add emadditional -PRON- expression codeorder code pick row group peer add codeid code item break tie -PRON- pick row small codeid code group sharing high codetotal code -PRON- ppif codetotal code null emmost -PRON- row great null add codenull code demonstrate detail pulli href https stackoverflow question postgresql sort datetime asc null postgresql sort datetime asc null li lili strongthe codeselect code list strong constrain expression codedistinct code codeorder code need simple case pulli pyou emdon -PRON- include expression codedistinct code codeorder code lili pyou emcan -PRON- include expression codeselect code list instrumental replace complex query subquerie aggregate window function li lili pi test postgre version feature version basically li emperfect -PRON- index query href https postgresql org docs current static index multicolumn html noreferrer multi column index span column match sequence match sort order codecreate index purchase idx purchase customer total desc code prepmay specialize read performance query crucial codedesc null code query index sort order match index applicable performance optimization cost benefit create tailor index query potential index largely depend strongdata distribution strong ppthe index deliver sort datum postgre query benefit strong href https postgresql org docs current static index index scan html noreferrer index scan strong index small underlie table index scan entirety pulli pfor strong emfew -PRON- row customer strong high cardinality column codecustomer code efficient sort output benefit shrink grow number row customer brideally href https postgresql org docs current static runtime config resource html guc work mem noreferrer strong codework mem code strong process involve sort step ram spill disk generally set codework mem code emtoo -PRON- high adverse effect codeset local code exceptionally big query codeexplain analyze code mention emdisk -PRON- sort step pulli href https stackoverflow question configuration parameter work mem postgresql configuration parameter work mem postgresql lili href https stackexchange question optimize simple query order date text optimize simple query order date text li lili pfor strong emmany -PRON- row customer strong low cardinality column codecustomer code href https wiki postgresql org wiki loose indexscan noreferrer strongloose index scan strong skip scan efficient implement postgre implementation index scan plan postgre href https commitf postgresql org noreferrer href https postgresql org message flat noreferrer brfor strongfaster query technique strong substitute separate table hold unique customer typical case pulli strong href https stackoverflow question optimize group query retrieve late record user optimize group query retrieve late record user strong lili href https stackoverflow question optimize groupwise maximum query optimize groupwise maximum query lili href https stackoverflow question querying relate record postgre query relate row row li li simple benchmark outdate replace href https stackoverflow strongdetaile benchmark separate answer strong head distinct good row group peer column tetris strong emsomethe -PRON- strong deep understanding keyword strong emalignment pad -PRON- strong href https postgresql org docs current static catalog type html noreferrer datum type specific alignment requirement ppyou minimize space lose pad strong embetween column -PRON- strong order favorably extreme waste lot physical disk space codecreate table byte pad byte pad byte pad byte pad code prepto save byte strong row codecreate table occupy byte maxalign pad end code prepa rule thumb byte column byte byte byte column wrong codetext code codeboolean code alignment restriction type type href https postgresql org docs current static storage toast html noreferrer compress toast store line ppnormally save couple byte row play -PRON- column tetris -PRON- case billion row couple gigabyte easily ppyou test actual column row size function href https postgresql org docs current static function admin html function admin dbsize noreferrer strong codepg column size code strong brbe aware datum type space ram disk compress format big result constant ram format table column disk format testing row value table row codepg column size code href http sqlfiddle noreferrer strongsql fiddle strong tuple row byte row item pointer subject consideration brand byte pad tuple header href https postgresql org docs current static storage page layout html noreferrer manual database page layout pblockquote pthere fix size header occupy byte machine optional null bitmap optional object field user datum blockquotepfor pad header user datum codemaxalign code server typically byte bit byte bit check href https postgresql org docs current static app pgcontroldata html noreferrer codepg controldata code pprun empostgre binary dir -PRON- definitive answer code controldata path dbcluster code prep href https postgresql org docs current static storage page layout html noreferrer manual pblockquote pthe actual user datum column row begin offset codet hoff code multiple codemaxalign code distance platform blockquotepso typically storage optimum pack datum multiple byte ppthere gain emexample post -PRON- pack tightly byte pad code byte end consolidate pad byte end change datum page page size typically overhead bloat level remainder big fit tuple importantly dead row percentage reserve href https postgresql org docs current static sql createtable html sql createtable storage parameter noreferrer codefillfactor code set ppthere couple factor size disk account pulli href https stackoverflow question record store mb postgresql heroku record store mb postgresql heroku lili href https stackoverflow question null postgresql null bitmap header null postgresql null bitmap header lili href https stackexchange configure postgresql read performance li type strongarray strong evaluate add byte overhead strong array type element array occupy space usual gain implement division logical physical column order open todo item https wiki postgresql org index php title alter column position action history trivial mess catalog place true year postgre view serve present column order simple case write propagate automatically column tetris strong emsomethe -PRON- strong deep understanding keyword strong emalignment pad -PRON- strong href https postgresql org docs current static catalog type html noreferrer datum type specific alignment requirement ppyou minimize space lose pad strong embetween column -PRON- strong order favorably extreme waste lot physical disk space codecreate table byte pad byte pad byte pad byte pad code prepto save byte strong row codecreate table occupy byte maxalign pad end code prepa rule thumb byte column byte byte byte column wrong codetext code codeboolean code alignment restriction type type href https postgresql org docs current static storage toast html noreferrer compress toast store line ppnormally save couple byte row play -PRON- column tetris -PRON- case billion row couple gigabyte easily ppyou test actual column row size function href https postgresql org docs current static function admin html function admin dbsize noreferrer strong codepg column size code strong brbe aware datum type space ram disk compress format big result constant ram format table column disk format testing row value table row codepg column size code href http sqlfiddle noreferrer strongsql fiddle strong tuple row byte row item pointer subject consideration brand byte pad tuple header href https postgresql org docs current static storage page layout html noreferrer manual database page layout pblockquote pthere fix size header occupy byte machine optional null bitmap optional object field user datum blockquotepfor pad header user datum codemaxalign code server typically byte bit byte bit check href https postgresql org docs current static app pgcontroldata html noreferrer codepg controldata code pprun empostgre binary dir -PRON- definitive answer code controldata path dbcluster code prep href https postgresql org docs current static storage page layout html noreferrer manual pblockquote pthe actual user datum column row begin offset codet hoff code multiple codemaxalign code distance platform blockquotepso typically storage optimum pack datum multiple byte ppthere gain emexample post -PRON- pack tightly byte pad code byte end consolidate pad byte end change datum page page size typically overhead bloat level remainder big fit tuple importantly dead row percentage reserve href https postgresql org docs current static sql createtable html sql createtable storage parameter noreferrer codefillfactor code set ppthere couple factor size disk account pulli href https stackoverflow question record store mb postgresql heroku record store mb postgresql heroku lili href https stackoverflow question null postgresql null bitmap header null postgresql null bitmap header lili href https stackexchange configure postgresql read performance li type strongarray strong evaluate add byte overhead strong array type element array occupy space usual gain sound feature tool reorder column table create avoid complication mess catalog implement client software tool optimize create table statement minimal storage column tetris strong emsomethe -PRON- strong deep understanding keyword strong emalignment pad -PRON- strong href https postgresql org docs current static catalog type html noreferrer datum type specific alignment requirement ppyou minimize space lose pad strong embetween column -PRON- strong order favorably extreme waste lot physical disk space codecreate table byte pad byte pad byte pad byte pad code prepto save byte strong row codecreate table occupy byte maxalign pad end code prepa rule thumb byte column byte byte byte column wrong codetext code codeboolean code alignment restriction type type href https postgresql org docs current static storage toast html noreferrer compress toast store line ppnormally save couple byte row play -PRON- column tetris -PRON- case billion row couple gigabyte easily ppyou test actual column row size function href https postgresql org docs current static function admin html function admin dbsize noreferrer strong codepg column size code strong brbe aware datum type space ram disk compress format big result constant ram format table column disk format testing row value table row codepg column size code href http sqlfiddle noreferrer strongsql fiddle strong tuple row byte row item pointer subject consideration brand byte pad tuple header href https postgresql org docs current static storage page layout html noreferrer manual database page layout pblockquote pthere fix size header occupy byte machine optional null bitmap optional object field user datum blockquotepfor pad header user datum codemaxalign code server typically byte bit byte bit check href https postgresql org docs current static app pgcontroldata html noreferrer codepg controldata code pprun empostgre binary dir -PRON- definitive answer code controldata path dbcluster code prep href https postgresql org docs current static storage page layout html noreferrer manual pblockquote pthe actual user datum column row begin offset codet hoff code multiple codemaxalign code distance platform blockquotepso typically storage optimum pack datum multiple byte ppthere gain emexample post -PRON- pack tightly byte pad code byte end consolidate pad byte end change datum page page size typically overhead bloat level remainder big fit tuple importantly dead row percentage reserve href https postgresql org docs current static sql createtable html sql createtable storage parameter noreferrer codefillfactor code set ppthere couple factor size disk account pulli href https stackoverflow question record store mb postgresql heroku record store mb postgresql heroku lili href https stackoverflow question null postgresql null bitmap header null postgresql null bitmap header lili href https stackexchange configure postgresql read performance li type strongarray strong evaluate add byte overhead strong array type element array occupy space usual gain explain sudden love pcounte row embig -PRON- table slow postgresql precise number count row nature href http postgresql org docs current interactive mvcc html noreferrer mvcc strongspee dramatically strong count strongnot strong strongexact strong case ppinstead emexact -PRON- count strongslow strong big table codeselect count exact count mytable code prepyou close estimate strongextremely fast strong codeselect reltuple bigint estimate class relname mytable code prephow close estimate depend run href http postgresql org docs current interactive sql analyze html noreferrer codeanalyze code close brsee href http wiki postgresql org wiki faq count bigtable slow noreferrer postgresql wiki faq bror href http wiki postgresql org wiki slow count noreferrer dedicate wiki page count performance article postgresql wiki strikei strike stronga bit sloppy strong possibility multiple table database schema account codeselect reltuple bigint class cjoin namespace oid relname mytable nspname code codeselect reltuple bigint classwhere oid mytable regclass code prepfaster simple safe elegant manual href http postgresql org docs current static datatype oid html noreferrer object identifi type ppuse codeto regclass mytable code postgre avoid exception invalid table name pulli href https stackoverflow question check table exist schema check table exist schema li ulp href http postgresql org docs devel static sql select html sql noreferrer codetablesample code postgre codeselect count estimate mytable tablesample code preplike href https stackoverflow question fast discover row count table noredirect comment newly add clause codeselect code command statistic codepg class code current reason pullino codeautovacuum code run liliimmediately big codeinsert code codedelete code lili codetemporary code table cover codeautovacuum code li ulpthis random emn -PRON- code selection block count row big sample increase cost reduce error pick accuracy depend factor row size block hold wider usual row count low usual tuple codefillfactor code occupy space block unevenly distribute table estimate liligeneral round error li ulpin case estimate codepg class code faster accurate actual question pfirst number row table total count great predefine constant blockquotepand pblockquote moment count pass constant stop count wait finish count inform row count great blockquotep strongyes strong strongsubquery codelimit code strong codeselect count select token limit code preppostgre emactually stop count -PRON- limit emexact current -PRON- count emn -PRON- row emn -PRON- fast""",1,NULL,How to COPY to multiple CSV files in PostgreSQL postgresql csv postgis plpgsql postgresql copy pI ve got PostGIS database of points in Postgres and would like to extract the points in several geographically distinct areas to CSV files one file per area ppI have set up an codearea code table with area polygons and area titles and would like to effectively loop through that table using something like Postgis codest intersects code to select the data to go in each CSV file and get the filename for the CSV file from the title in the area table ppI comfortable with the details of doing the intersection code and setting up the CSV output what don know is how to do it for each area Is it possible to do something like this with some sort of join Or do need to do it with stored procedure and use loop construct in plpgsql pYou can loop over rows in your area table in plpgsql But be careful to get quoting of identifiers and values right ppAssuming this setup ppre codeCREATE TABLE area title text PRIMARY KEY area polygon geometry CREATE TABLE points point id serial PRIMARY KEY the geom geometry code prepYou can use this plpgsql block ppre codeDO do DECLARE title text BEGIN FOR title IN SELECT title FROM area LOOP EXECUTE format COPY SELECT FROM area JOIN points ON ST INTERSECTS the geom area polygon WHERE title TO FORMAT csv title path to title csv END LOOP END do code prepUse format with strong code code strong for string strongl strongiteral to get properly quoted strings to avoid syntax errors and possible strongSQL injection strong You still need to use strings in codearea title code that work for file names ppAlso careful to quote the filename emas whole em not just the title part of it pp strongNote strong that the utility command codeCOPY code does not allow emvariable substitution em like in DML commands with codeINSERT code codeUPDATE code and codeDELETE code You must concatenate the whole command as emstring em ppThis is why do not read out codearea area polygon code in the loop We would have to cast it to codetext code to concatenate it into the query string where the text representation would be cast back to codegeometry code or whatever your actual undisclosed data type is That prone to errors ppInstead only read codearea title code to uniquely identify the row and handle the rest in the query internally pulli href https stackoverflow com questions 36025308 error when setting distinct using plpgsql variable 36025963 36025963 Error when setting distinct using plpgsql variable li ul,,,,, 12263,1121493,393230,NULL,NULL,NULL,0,NULL,NULL 12264,357734,920734,NULL,NULL,NULL,0,NULL,NULL 12265,406977,88622,Nice Question Necromancer Yearling Famous Question Popular Question Popular Question Popular Question Great Answer Good Question Yearling Famous Question Great Answer Popular Question Good Question Notable Question Stellar Question Good Question Nice Question Yearling Nice Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12266,107420,458271,NULL,NULL,NULL,0,NULL,NULL 12267,26216,1382587,NULL,NULL,NULL,0,NULL,NULL 12268,195294,1095532,Notable Question Popular Question Caucus Critic Custodian,NULL,NULL,0,NULL,NULL 12269,407254,1401421,NULL,NULL,NULL,0,NULL,NULL 12270,559226,924359,NULL,NULL,NULL,0,NULL,NULL 12271,306155,1072292,NULL,NULL,NULL,0,NULL,NULL 12272,652407,1353792,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12273,380737,866849,NULL,NULL,NULL,0,NULL,NULL 12274,237447,1114907,Popular Question Teacher Popular Question Commentator Nice Question Editor Yearling Scholar Supporter Necromancer Revival Notable Question,NULL,NULL,0,NULL,NULL 12275,305537,578033,NULL,NULL,NULL,0,NULL,NULL 12276,126160,147126,Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12277,7394061,147126,Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12278,609913,321039,NULL,NULL,NULL,0,NULL,NULL 12279,7547703,93026,Taxonomist Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Necromancer Popular Question Nice Question Yearling Notable Question Good Answer Nice Question Nice Question Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 12280,230199,93026,Taxonomist Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Necromancer Popular Question Nice Question Yearling Notable Question Good Answer Nice Question Nice Question Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 12281,8276882,93026,Taxonomist Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Necromancer Popular Question Nice Question Yearling Notable Question Good Answer Nice Question Nice Question Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 12282,861507,93026,Taxonomist Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Necromancer Popular Question Nice Question Yearling Notable Question Good Answer Nice Question Nice Question Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 12283,234273,906916,NULL,NULL,NULL,0,NULL,NULL 12284,511215,5358,Popular Question Good Answer Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 12285,71272,1028399,NULL,NULL,NULL,0,NULL,NULL 12286,190230,798487,Popular Question,NULL,NULL,0,NULL,NULL 12287,37747,192952,NULL,NULL,NULL,0,NULL,NULL 12288,146087,1497535,Tumbleweed,NULL,NULL,0,NULL,NULL 12289,163371,1354199,NULL,NULL,NULL,0,NULL,NULL 12290,24220,140171,Nice Answer,NULL,NULL,0,NULL,NULL 12291,23764,1096557,NULL,NULL,NULL,0,NULL,NULL 12292,831673,1165453,NULL,NULL,NULL,0,NULL,NULL 12293,1385654,546446,Notable Question Commentator,NULL,NULL,0,NULL,NULL 12294,7775369,1468039,Teacher,NULL,NULL,0,NULL,NULL 12295,131831,1123655,NULL,NULL,NULL,0,NULL,NULL 12296,410666,404541,Famous Question Famous Question,NULL,NULL,0,NULL,NULL 12297,71879,659870,Yearling Caucus Census Revival Caucus,NULL,NULL,0,NULL,NULL 12298,425820,1015901,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 12299,208481,1188194,NULL,NULL,NULL,0,NULL,NULL 12300,3484716,1278653,Popular Question Commentator Informed Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 12301,323442,1278653,Popular Question Commentator Informed Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 12302,162014,359435,Popular Question,NULL,NULL,0,NULL,NULL 12303,8211903,1034143,Teacher,NULL,NULL,0,NULL,NULL 12304,65481,802514,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 12305,83194,1010291,NULL,NULL,NULL,0,NULL,NULL 12306,9192366,1010291,NULL,NULL,NULL,0,NULL,NULL 12307,1372845,1288909,Supporter Informed,NULL,NULL,0,NULL,NULL 12308,186206,620027,NULL,NULL,NULL,0,NULL,NULL 12309,62619,365016,NULL,NULL,NULL,0,NULL,NULL 12310,932650,461048,Nice Answer Custodian Necromancer Yearling Popular Question Nice Answer Caucus Great Answer Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 12311,15959,28004,Popular Question Favorite Question Nice Question gridview Famous Question Guru Notable Question Famous Question Necromancer Notable Question Nice Question javascript Famous Question Popular Question Notable Question Good Answer Notable Question Famous Question Notable Question Popular Question Notable Question Nice Question Necromancer Nice Answer Good Answer Nice Question Popular Question Popular Question Popular Question Yearling Caucus Constituent Popular Question Nice Answer Enlightened Notable Question Nice Question Great Question Nice Answer Famous Question Good Answer Guru Good Answer Famous Question Notable Question Nice Question Nice Answer Nice Answer Nice Question Notable Question Notable Question Nice Answer Guru Popular Question Popular Question Announcer Guru Caucus Constituent Nice Question Guru Announcer Nice Answer Enlightened Nice Answer Enlightened c# Nice Question Guru Popular Question Yearling Popular Question Stellar Question Good Answer Census Announcer Good Question sql Announcer Popular Question Caucus Good Answer Constituent Notable Question Nice Answer Good Answer Nice Answer Nice Answer Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Answer Good Answer Nice Answer Enlightened Announcer Popular Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 12312,1050421,941445,NULL,NULL,NULL,0,NULL,NULL 12313,223479,1219341,NULL,NULL,NULL,0,NULL,NULL 12314,169956,328205,NULL,NULL,NULL,0,NULL,NULL 12315,34575,192340,NULL,NULL,NULL,0,NULL,NULL 12316,252059,443968,Teacher,NULL,NULL,0,NULL,NULL 12317,395114,332570,NULL,NULL,NULL,0,NULL,NULL 12318,25364,344877,Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 12319,635214,4900,Great Question Famous Question Good Answer Good Question Yearling Famous Question Caucus Favorite Question Yearling Nice Question Census Caucus Taxonomist Yearling Custodian,NULL,NULL,0,NULL,NULL 12320,8275916,1152335,Yearling Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 12321,2638019,777337,Yearling Great Answer Notable Question Nice Answer Enlightened Necromancer Good Answer Nice Question Yearling Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12322,111287,777337,Yearling Great Answer Notable Question Nice Answer Enlightened Necromancer Good Answer Nice Question Yearling Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12323,8344,383451,NULL,NULL,NULL,0,NULL,NULL 12324,712516,352095,Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12325,31222,994905,NULL,NULL,NULL,0,NULL,NULL 12326,6507,222155,Necromancer Organizer Good Answer Peer Pressure Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12327,117749,1093633,Necromancer,NULL,NULL,0,NULL,NULL 12328,164253,686117,Yearling Notable Question Popular Question Popular Question Popular Question Citizen Patrol Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12329,119699,1422235,NULL,NULL,NULL,0,NULL,NULL 12330,1512841,674200,NULL,NULL,NULL,0,NULL,NULL 12331,91153,162623,Good Question Popular Question Popular Question Enthusiast Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12332,79521,551625,Popular Question Famous Question Popular Question Notable Question Notable Question Necromancer Nice Question Yearling Nice Question Quorum Famous Question Nice Question Good Question Notable Question Popular Question Custodian Custodian Notable Question Yearling Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 12333,267437,1484991,NULL,NULL,NULL,0,NULL,NULL 12334,191951,1540851,Teacher,NULL,NULL,0,NULL,NULL 12335,31874,1236940,Good Answer Announcer Announcer Yearling Investor Custodian Populist,NULL,NULL,0,NULL,NULL 12336,475184,618152,NULL,NULL,NULL,0,NULL,NULL 12337,1522563,1248052,NULL,NULL,NULL,0,NULL,NULL 12338,66820,34256,Nice Answer,NULL,NULL,0,NULL,NULL 12339,461707,424138,Yearling Guru Curious Yearling Caucus Constituent Custodian Caucus Constituent Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 12340,240617,267847,Critic Informed Caucus,NULL,NULL,0,NULL,NULL 12341,894943,536190,NULL,NULL,NULL,0,NULL,NULL 12342,693625,1030600,NULL,NULL,NULL,0,NULL,NULL 12343,1118001,657468,Informed Editor,NULL,NULL,0,NULL,NULL 12344,33505,1421897,Notable Question Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12345,19425,408844,NULL,NULL,NULL,0,NULL,NULL 12346,195514,274770,Popular Question Revival Famous Question Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 12347,50200,327385,NULL,NULL,NULL,0,NULL,NULL 12348,212338,1267214,NULL,NULL,NULL,0,NULL,NULL 12349,36063,202606,NULL,NULL,NULL,0,NULL,NULL 12350,297652,443201,Scholar Student Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 12351,927,210168,NULL,NULL,NULL,0,NULL,NULL 12352,2007285,946814,Yearling Civic Duty Popular Question Nice Question Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12353,454747,988303,Yearling Excavator Critic Necromancer Caucus,NULL,NULL,0,NULL,NULL 12354,177690,972327,NULL,NULL,NULL,0,NULL,NULL 12355,230879,340760,asp.net-mvc linq Notable Question Nice Question Good Answer Nice Question Publicist Populist Good Answer Announcer Nice Question Popular Question Notable Question Famous Question Notable Question Good Question Notable Question Necromancer Popular Question Notable Question css Nice Question Popular Question Nice Answer Famous Question Nice Question javascript Notable Question Good Question Popular Question Yearling Notable Question Guru Famous Question Nice Answer Nice Answer Nice Question Nice Answer Great Answer Great Answer Good Answer Famous Question Good Question Popular Question Nice Question Notable Question Famous Question Documentation Beta Documentation Pioneer Nice Question Popular Question Nice Answer Notable Question Nice Answer Good Answer Nice Question Popular Question Good Question Nice Answer Necromancer Famous Question Famous Question Notable Question Famous Question Notable Question Popular Question Nice Answer Enlightened Favorite Question Popular Question Popular Question Caucus Famous Question Popular Question Notable Question Popular Question Favorite Question Nice Question Famous Question Famous Question Great Question Necromancer Announcer Notable Question Good Answer Necromancer Census Popular Question Popular Question Good Answer Nice Question Necromancer Announcer Famous Question Popular Question Notable Question Notable Question Revival jquery Necromancer Notable Question Announcer Popular Question Nice Question Yearling Announcer Nice Answer Nice Answer Popular Question Popular Question Nice Answer Good Question Famous Question Notable Question Nice Answer Popular Question Announcer Famous Question Nice Answer Nice Answer Great Answer Notable Question Nice Answer Nice Answer Enlightened Notable Question Notable Question Famous Question Popular Question Good Question Notable Question Nice Answer Custodian Famous Question Popular Question Notable Question Nice Question Announcer Popular Question Good Question Documentation User Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Famous Question Announcer string Announcer Nice Answer Great Answer Famous Question Nice Question Popular Question Nice Answer Popular Question Necromancer Census Nice Answer Popular Question Famous Question Revival Announcer Nice Answer Famous Question Announcer Guru typescript Good Answer Good Question Nice Answer Notable Question Nice Answer Enlightened Great Answer Socratic Nice Answer Nice Question Good Question Notable Question Nice Question Necromancer Famous Question Notable Question Famous Question arrays Nice Answer Necromancer Popular Question Nice Answer Nice Answer Popular Question Yearling c# Nice Answer Famous Question Necromancer Necromancer Notable Question Stellar Question Nice Answer Notable Question Popular Question Famous Question Popular Question Announcer Popular Question Popular Question Nice Answer Nice Question Nice Answer Necromancer Popular Question Notable Question Popular Question Good Question Notable Question Popular Question Famous Question Nice Answer Revival Famous Question,NULL,Merge flatten an array of arrays in JavaScript javascript arrays flatten pI have JavaScript array like ppre code 12 25 25 18 22 10 code prepHow would go about merging the separate inner arrays into one like ppre code 12 25 code pre There an experimental flat on arrays https developer mozilla org en US docs Web JavaScript Reference Global Objects Array flat h1ES2015 ES6 h1pre codegetQueryStringParams query gt return query test query query slice query split amp reduce params param gt let key value param split params key value decodeURIComponent value replace return params code prehrh2Without jQuery h2pre codevar qs function if return var for var lt length var split if length else decodeURIComponent replace return window location search substr split amp code prepWith an URL like code topic 123 amp name query string code the following will return ppre codeqs topic 123qs name query stringqs nothere undefined object code prehrh2Google method h2pTearing Google code found the method they use codegetUrlParameters code ppre codefunction var typeof undefined if amp amp return for var vb Ya Ya amp Ya amp dd ia unescape lt var if var Ca try catch amp amp return code prepIt is obfuscated but it is understandable It does not work because some variables are undefined ppThey start to look for parameters on the url from code code and also from the hash code code Then for each parameter they split in the equal sign codeb code which looks like codeindexOf code they use the position of the char to get the key value Having it split they check whether the parameter has value or not if it has then they store the value of coded code otherwise they just continue ppIn the end the object coded code is returned handling escaping and the code code sign This object is just like mine it has the same behavior phrpMy method as strongjQuery plugin strong ppre code function QueryString function paramsArray let params for let lt paramsArray length let param paramsArray split if param length continue params param decodeURIComponent param replace return params window location search substr split amp jQuery code prepUsage ppre code Get param QueryString param or QueryString param This outputs something like val Get all params as object QueryString This outputs something like Object param val param2 val Set param only in the QueryString object doesn affect the browser querystring QueryString param newvalue This doesn output anything it just updates the QueryString object Convert object into string suitable for url querystring Requires jQuery param QueryString This outputs something like param newvalue amp param2 val Update the url querystring in the browser location bar with the QueryString objecthistory replaceState param QueryString or history pushState param QueryString code prehrh2 href http jsperf com querystring with javascript rel nofollow noreferrer Performance test split method against regex method href http jsperf com rel nofollow noreferrer jsPerf h2pPreparation code methods declaration ph3Split test code h3pre codevar qs window GetQueryString query var search qs var value qs value var undef qs undefinedstring code preh3Regex test code h3pre codevar search window getParameterByName var value window getParameterByName value var undef window getParameterByName undefinedstring code prep strongTesting in Firefox x86 on Windows Server 2008 R2 x64 strong pulli strongSplit method strong 144 780 ±2 17 fastest lili strongRegex method strong 13 891 ±0 85 90 slower li ul extracted from Google search page don have access to the unminified version they use at Google It doesn run because it out of context codebabel polyfill code is required You must also install it in order to get async await working ppre codenpm babel core babel polyfill babel preset es2015 babel preset stage babel loader code preppackage json ppre code devDependencies babel core 20 babel polyfill 16 babel preset es2015 15 babel preset stage 15 code prep babelrc ppre code presets es2015 stage code prep js with async await sample code ppre code use strict export default async function foo var await bar console log function bar return bar code prepIn the startup file ppre coderequire babel core register require babel polyfill code prepIf you are using strongwebpack strong you need to put it as the first entry as per comment ppre codemodule exports entry babel polyfill test js output filename bundle js module loaders test jsx loader babel code prepIf you want to run tests with babel then use ppre codemocha compilers js babel core register require babel polyfill code pre devDependency if you are using webpack because it will then compile the files before running dependency if you are not using webpack and you are requiring babel,0,NULL,NULL 12356,800798,1054407,NULL,NULL,NULL,0,NULL,NULL 12357,107973,479618,Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 12358,226771,42926,Notable Question Yearling Caucus Good Answer Yearling Necromancer Custodian,NULL,NULL,0,NULL,NULL 12359,675210,379032,Popular Question,NULL,NULL,0,NULL,NULL 12360,176206,662622,NULL,NULL,NULL,0,NULL,NULL 12361,223974,442758,NULL,NULL,NULL,0,NULL,NULL 12362,654267,1007248,Supporter Notable Question,NULL,NULL,0,NULL,NULL 12363,516081,971525,NULL,NULL,NULL,0,NULL,NULL 12364,424333,571461,Yearling Organizer Tenacious Popular Question Caucus Constituent Yearling Notable Question Famous Question Popular Question Caucus Constituent Notable Question Yearling Nice Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 12365,202444,789845,Popular Question Revival,NULL,NULL,0,NULL,NULL 12366,100145,947500,Popular Question,NULL,NULL,0,NULL,NULL 12367,173566,1534793,NULL,NULL,NULL,0,NULL,NULL 12368,1032605,957362,Popular Question Custodian Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12369,2652313,957362,Popular Question Custodian Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12370,310319,804103,NULL,NULL,NULL,0,NULL,NULL 12371,142552,448875,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12372,40835,407954,Announcer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 12373,1015420,11666,Popular Question Revival Notable Question Great Answer Notable Question Yearling Nice Question Good Question Famous Question Informed Favorite Question Yearling Necromancer Popular Question Stellar Question Yearling,NULL,NULL,0,NULL,NULL 12374,74086,146702,Revival,NULL,NULL,0,NULL,NULL 12375,404721,1112802,NULL,NULL,NULL,0,NULL,NULL 12376,220568,880999,Student,NULL,NULL,0,NULL,NULL 12377,308164,104219,Electorate Cleanup Famous Question Explainer Yearling Strunk & White Reviewer Caucus Constituent Popular Question Popular Question Necromancer Yearling Caucus Constituent Nice Answer Custodian Custodian Guru ruby-on-rails Necromancer Caucus Constituent Archaeologist Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 12378,102710,673289,Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 12379,12618,200869,Yearling,NULL,NULL,0,NULL,NULL 12380,115858,1154495,NULL,NULL,NULL,0,NULL,NULL 12381,1277394,314971,Custodian Yearling Nice Answer Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 12382,458407,427297,NULL,NULL,NULL,0,NULL,NULL 12383,6926,145080,Necromancer Popular Question Good Answer Necromancer Yearling Notable Question Notable Question Popular Question Nice Answer Notable Question netlogo Nice Answer Popular Question Yearling Custodian Census Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12384,115267,160315,Nice Answer,NULL,NULL,0,NULL,NULL 12385,304375,503916,Yearling Popular Question Popular Question Famous Question Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 12386,185536,1357024,Famous Question Good Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 12387,223178,68757,Yearling Popular Question Notable Question Good Answer Guru Good Answer Yearling Notable Question Census Great Answer Yearling Good Answer Notable Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 12388,367493,744804,NULL,NULL,NULL,0,NULL,NULL 12389,144999,377464,Nice Answer Necromancer Yearling Good Answer Yearling Good Answer jquery Nice Answer Enlightened Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 12390,170887,769795,NULL,NULL,NULL,0,NULL,NULL 12391,203474,1304363,NULL,NULL,NULL,0,NULL,NULL 12392,361706,7432,Good Answer robotframework Necromancer Nice Answer Enlightened Popular Question Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Notable Question Nice Answer Enlightened Nice Answer Guru tk Good Answer string grid Good Answer Popular Question Announcer Nice Question Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer tkinter-canvas Guru Nice Answer Enlightened Popular Question selenium-webdriver Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Enlightened Good Answer Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Guru Yearling Nice Answer Nice Answer Nice Answer class Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Caucus Nice Answer Enlightened Revival canvas function Nice Answer Announcer Popular Question Announcer Popular Question Custodian listbox Nice Answer Nice Answer Enlightened Good Answer Announcer Good Answer Announcer Nice Answer Enlightened Announcer Census scrollbar Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru selenium Nice Question Good Answer Nice Answer Enlightened python-2.7 Notable Question Popular Question Guru Good Answer Guru Nice Answer Enlightened Nice Answer Notable Question Famous Question Announcer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Booster Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Announcer Nice Answer user-interface Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Good Answer Nice Answer image Nice Answer Announcer Nice Answer Enlightened Good Answer Great Answer Nice Answer Good Answer robotframework Announcer Announcer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened textbox Good Answer python-3.x Announcer Announcer Nice Answer tcl Nice Answer Nice Answer Enlightened Good Answer window Epic Announcer Nice Answer Enlightened Revival tkinter-entry Nice Question Good Answer Great Answer bash Announcer Announcer Announcer Yearling Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Nice Answer Revival Good Answer Documentation User Nice Answer Enlightened fonts Nice Answer Necromancer Announcer Notable Question Good Answer Nice Answer automated-tests Necromancer Nice Answer Enlightened Revival Nice Answer Enlightened Guru Nice Answer Good Answer Announcer Nice Answer Enlightened Reviewer Announcer Nice Answer Nice Answer Enlightened macos Revival Announcer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Census Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Populist Nice Answer Guru Nice Answer Nice Answer Enlightened Good Answer Announcer Caucus Constituent Nice Answer Good Answer Announcer Nice Answer Announcer binding Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Announcer Announcer Announcer Nice Answer Enlightened Good Answer Good Answer Great Answer Good Answer Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Popular Question Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Great Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Guru Good Answer Guru Yearling Nice Answer Nice Answer Enlightened Announcer Nice Answer Announcer Announcer Announcer Nice Answer Revival Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,pYou can move an item on canvas using the href http effbot org tkinterbook canvas htm Tkinter Canvas coords method rel noreferrer coords and or href http effbot org tkinterbook canvas htm Tkinter Canvas move method rel noreferrer move methods to change the coordinates from what they are to what you want them to be ppHere simple example showing how to create and move an item on canvas ppre codeimport Tkinter as tkclass Example tk Frame Illustrate how to drag items on Tkinter canvas def init self parent tk Frame init self parent create canvas self canvas tk Canvas width 400 height 400 self canvas pack fill both expand True this data is used to keep track of an item being dragged self drag data item None create couple of movable objects self create token 100 100 white self create token 200 100 black add bindings for clicking dragging and releasing over any object with the token tag self canvas tag bind token lt ButtonPress gt self on token press self canvas tag bind token lt ButtonRelease gt self on token release self canvas tag bind token lt B1 Motion gt self on token motion def create token self coord color Create token at the given coordinate in the given color coord self canvas create oval 25 25 25 25 outline color fill color tags token def on token press self event Begining drag of an object record the item and its location self drag data item self canvas find closest event event self drag data event self drag data event def on token release self event End drag of an object reset the drag information self drag data item None self drag data self drag data def on token motion self event Handle dragging of an object compute how much the mouse has moved delta event self drag data delta event self drag data move the object the appropriate amount self canvas move self drag data item delta delta record the new position self drag data event self drag data event yif name main root tk Tk Example root pack fill both expand True root mainloop code pre you are absolutely correct about the use of uppercase for function names Thanks for pointing it out don know why chose that naming scheme updated the answer to use all lowercase don quite understand the other point you were trying to make don see where you think repeating myself All of the code is necessary for fully functioning example and felt fully functioning example was best in this case pI have relatively foolproof solution but it complex and will likely be hard to understand because it requires some knowledge of how Tkinter and the underlying tcl tk text widget works ll present it here as complete solution that you can use as is because think it illustrates unique approach that works quite well ppNote that this solution works no matter what font you use and whether or not you use different fonts on different lines have embedded widgets and so on ph2Importing Tkinter h2pBefore we get started the following code assumes tkinter is imported like this if you re using python or greater ppre codeimport tkinter as tk code prep or this for python ppre codeimport Tkinter as tk code preh2The line number widget h2pLet tackle the display of the line numbers What we want to do is use canvas so that we can position the numbers precisely We ll create custom class and give it new method named coderedraw code that will redraw the line numbers for an associated text widget We also give it method codeattach code for associating text widget with this widget ppThis method takes advantage of the fact that the text widget itself can tell us exactly where line of text starts and ends via the codedlineinfo code method This can tell us precisely where to draw the line numbers on our canvas It also takes advantage of the fact that codedlineinfo code returns codeNone code if line is not visible which we can use to know when to stop displaying line numbers ppre codeclass TextLineNumbers tk Canvas def init self args kwargs tk Canvas init self args kwargs self textwidget None def attach self text widget self textwidget text widget def redraw self args redraw line numbers self delete all self textwidget index while True dline self textwidget dlineinfo if dline is None break dline linenum str split self create text anchor nw text linenum self textwidget index 1line code prepIf you associate this with text widget and then call the coderedraw code method it should display the line numbers just fine ph2Automatically updating the line numbers h2pThis works but has fatal flaw you have to know when to call coderedraw code You could create binding that fires on every key press but you also have to fire on mouse buttons and you have to handle the case where user presses key and uses the auto repeat function etc The line numbers also need to be redrawn if the window is grown or shrunk or the user scrolls so we fall into rabbit hole of trying to figure out every possible event that could cause the numbers to change ppThere is another solution which is to have the text widget fire an event whenever something changes Unfortunately the text widget doesn have direct support for notifying the program of changes To get around that we can use proxy to intercept changes to the text widget and generate an event for us ppIn an answer to the question href https stackoverflow com 13835207 7432 binding to cursor movement doesnt change INSERT mark offered similar solution that shows how to have text widget call callback whenever something changes This time instead of callback we ll generate an event since our needs are little different ph2A custom text class h2pHere is class that creates custom text widget that will generate code lt lt Change gt gt code event whenever text is inserted or deleted or when the view is scrolled ppre codeclass CustomText tk Text def init self args kwargs tk Text init self args kwargs create proxy for the underlying widget self orig self orig self tk call rename self self orig self tk createcommand self self proxy def proxy self args let the actual widget perform the requested action cmd self orig args result self tk call cmd generate an event if something was added or deleted or the cursor position changed if args in insert replace delete or args mark set insert or args xview moveto or args xview scroll or args yview moveto or args yview scroll self event generate lt lt Change gt gt when tail return what the actual widget returned return result code preh2Putting it all together h2pFinally here is an example program which uses these two classes ppre codeclass Example tk Frame def init self args kwargs tk Frame init self args kwargs self text CustomText self self vsb tk Scrollbar orient vertical command self text yview self text configure yscrollcommand self vsb set self text tag configure bigfont font Helvetica 24 bold self linenumbers TextLineNumbers self width 30 self linenumbers attach self text self vsb pack side right fill self linenumbers pack side left fill self text pack side right fill both expand True self text bind lt lt Change gt gt self on change self text bind lt Configure gt self on change self text insert end one ntwo nthree self text insert end four bigfont self text insert end five def on change self event self linenumbers redraw code prep and of course add this at the end of the file to bootstrap it ppre codeif name main root tk Tk Example root pack side top fill both expand True root mainloop code pre have you actually observed performance issues or only think there are performance issues It shouldn matter how many lines of text you have because it only draws the linenumbers for the visible lines ve tested it with 10 000 lines of text and it seems to work fine Of course if you enter 10 000 lines of text one at time it will be slightly slower but even then the performance seems acceptable pI have relatively foolproof solution but it complex and will likely be hard to understand because it requires some knowledge of how Tkinter and the underlying tcl tk text widget works ll present it here as complete solution that you can use as is because think it illustrates unique approach that works quite well ppNote that this solution works no matter what font you use and whether or not you use different fonts on different lines have embedded widgets and so on ph2Importing Tkinter h2pBefore we get started the following code assumes tkinter is imported like this if you re using python or greater ppre codeimport tkinter as tk code prep or this for python ppre codeimport Tkinter as tk code preh2The line number widget h2pLet tackle the display of the line numbers What we want to do is use canvas so that we can position the numbers precisely We ll create custom class and give it new method named coderedraw code that will redraw the line numbers for an associated text widget We also give it method codeattach code for associating text widget with this widget ppThis method takes advantage of the fact that the text widget itself can tell us exactly where line of text starts and ends via the codedlineinfo code method This can tell us precisely where to draw the line numbers on our canvas It also takes advantage of the fact that codedlineinfo code returns codeNone code if line is not visible which we can use to know when to stop displaying line numbers ppre codeclass TextLineNumbers tk Canvas def init self args kwargs tk Canvas init self args kwargs self textwidget None def attach self text widget self textwidget text widget def redraw self args redraw line numbers self delete all self textwidget index while True dline self textwidget dlineinfo if dline is None break dline linenum str split self create text anchor nw text linenum self textwidget index 1line code prepIf you associate this with text widget and then call the coderedraw code method it should display the line numbers just fine ph2Automatically updating the line numbers h2pThis works but has fatal flaw you have to know when to call coderedraw code You could create binding that fires on every key press but you also have to fire on mouse buttons and you have to handle the case where user presses key and uses the auto repeat function etc The line numbers also need to be redrawn if the window is grown or shrunk or the user scrolls so we fall into rabbit hole of trying to figure out every possible event that could cause the numbers to change ppThere is another solution which is to have the text widget fire an event whenever something changes Unfortunately the text widget doesn have direct support for notifying the program of changes To get around that we can use proxy to intercept changes to the text widget and generate an event for us ppIn an answer to the question href https stackoverflow com 13835207 7432 binding to cursor movement doesnt change INSERT mark offered similar solution that shows how to have text widget call callback whenever something changes This time instead of callback we ll generate an event since our needs are little different ph2A custom text class h2pHere is class that creates custom text widget that will generate code lt lt Change gt gt code event whenever text is inserted or deleted or when the view is scrolled ppre codeclass CustomText tk Text def init self args kwargs tk Text init self args kwargs create proxy for the underlying widget self orig self orig self tk call rename self self orig self tk createcommand self self proxy def proxy self args let the actual widget perform the requested action cmd self orig args result self tk call cmd generate an event if something was added or deleted or the cursor position changed if args in insert replace delete or args mark set insert or args xview moveto or args xview scroll or args yview moveto or args yview scroll self event generate lt lt Change gt gt when tail return what the actual widget returned return result code preh2Putting it all together h2pFinally here is an example program which uses these two classes ppre codeclass Example tk Frame def init self args kwargs tk Frame init self args kwargs self text CustomText self self vsb tk Scrollbar orient vertical command self text yview self text configure yscrollcommand self vsb set self text tag configure bigfont font Helvetica 24 bold self linenumbers TextLineNumbers self width 30 self linenumbers attach self text self vsb pack side right fill self linenumbers pack side left fill self text pack side right fill both expand True self text bind lt lt Change gt gt self on change self text bind lt Configure gt self on change self text insert end one ntwo nthree self text insert end four bigfont self text insert end five def on change self event self linenumbers redraw code prep and of course add this at the end of the file to bootstrap it ppre codeif name main root tk Tk Example root pack side top fill both expand True root mainloop code pre the problem is in loading the text one line at time You are correct that this method makes that method slower but there are two simple fixes add the ability to turn this feature off during the initial loading simply remove the Change binding at startup or read whole file and insert it in single statement pI have relatively foolproof solution but it complex and will likely be hard to understand because it requires some knowledge of how Tkinter and the underlying tcl tk text widget works ll present it here as complete solution that you can use as is because think it illustrates unique approach that works quite well ppNote that this solution works no matter what font you use and whether or not you use different fonts on different lines have embedded widgets and so on ph2Importing Tkinter h2pBefore we get started the following code assumes tkinter is imported like this if you re using python or greater ppre codeimport tkinter as tk code prep or this for python ppre codeimport Tkinter as tk code preh2The line number widget h2pLet tackle the display of the line numbers What we want to do is use canvas so that we can position the numbers precisely We ll create custom class and give it new method named coderedraw code that will redraw the line numbers for an associated text widget We also give it method codeattach code for associating text widget with this widget ppThis method takes advantage of the fact that the text widget itself can tell us exactly where line of text starts and ends via the codedlineinfo code method This can tell us precisely where to draw the line numbers on our canvas It also takes advantage of the fact that codedlineinfo code returns codeNone code if line is not visible which we can use to know when to stop displaying line numbers ppre codeclass TextLineNumbers tk Canvas def init self args kwargs tk Canvas init self args kwargs self textwidget None def attach self text widget self textwidget text widget def redraw self args redraw line numbers self delete all self textwidget index while True dline self textwidget dlineinfo if dline is None break dline linenum str split self create text anchor nw text linenum self textwidget index 1line code prepIf you associate this with text widget and then call the coderedraw code method it should display the line numbers just fine ph2Automatically updating the line numbers h2pThis works but has fatal flaw you have to know when to call coderedraw code You could create binding that fires on every key press but you also have to fire on mouse buttons and you have to handle the case where user presses key and uses the auto repeat function etc The line numbers also need to be redrawn if the window is grown or shrunk or the user scrolls so we fall into rabbit hole of trying to figure out every possible event that could cause the numbers to change ppThere is another solution which is to have the text widget fire an event whenever something changes Unfortunately the text widget doesn have direct support for notifying the program of changes To get around that we can use proxy to intercept changes to the text widget and generate an event for us ppIn an answer to the question href https stackoverflow com 13835207 7432 binding to cursor movement doesnt change INSERT mark offered similar solution that shows how to have text widget call callback whenever something changes This time instead of callback we ll generate an event since our needs are little different ph2A custom text class h2pHere is class that creates custom text widget that will generate code lt lt Change gt gt code event whenever text is inserted or deleted or when the view is scrolled ppre codeclass CustomText tk Text def init self args kwargs tk Text init self args kwargs create proxy for the underlying widget self orig self orig self tk call rename self self orig self tk createcommand self self proxy def proxy self args let the actual widget perform the requested action cmd self orig args result self tk call cmd generate an event if something was added or deleted or the cursor position changed if args in insert replace delete or args mark set insert or args xview moveto or args xview scroll or args yview moveto or args yview scroll self event generate lt lt Change gt gt when tail return what the actual widget returned return result code preh2Putting it all together h2pFinally here is an example program which uses these two classes ppre codeclass Example tk Frame def init self args kwargs tk Frame init self args kwargs self text CustomText self self vsb tk Scrollbar orient vertical command self text yview self text configure yscrollcommand self vsb set self text tag configure bigfont font Helvetica 24 bold self linenumbers TextLineNumbers self width 30 self linenumbers attach self text self vsb pack side right fill self linenumbers pack side left fill self text pack side right fill both expand True self text bind lt lt Change gt gt self on change self text bind lt Configure gt self on change self text insert end one ntwo nthree self text insert end four bigfont self text insert end five def on change self event self linenumbers redraw code prep and of course add this at the end of the file to bootstrap it ppre codeif name main root tk Tk Example root pack side top fill both expand True root mainloop code pre don know what you mean by add the change event to normal text widgets that exactly what this code does it adds change event to normal text widget The delete method works fine with the code in this answer In your comment it appears you re calling the delete method on the class rather than an instance of the class pIf you mean the directory of the script being run ppre codeimport osos path dirname os path abspath file code prepIf you mean the current working directory ppre codeimport osos getcwd code prepNote that before and after codefile code is two underscores not just one not sure what you mean don think powershell changes how os path abspath works pIf you mean the directory of the script being run ppre codeimport osos path dirname os path abspath file code prepIf you mean the current working directory ppre codeimport osos getcwd code prepNote that before and after codefile code is two underscores not just one this will only work if you run it in script There is no file if running from an interactive prompt pIf you mean the directory of the script being run ppre codeimport osos path dirname os path abspath file code prepIf you mean the current working directory ppre codeimport osos getcwd code prepNote that before and after codefile code is two underscores not just one have you actually tried it in an interactive prompt file will not be set since there is no file What do you think it would be set to h2Overview h2pYou can only associate scrollbars with few widgets and the root widget and codeFrame code aren part of that group of widgets ppThe most common solution is to create canvas widget and associate the scrollbars with that widget Then into that canvas embed the frame that contains your label widgets Determine the width height of the frame and feed that into the canvas codescrollregion code option so that the scrollregion exactly matches the size of the frame ppDrawing the text items directly on the canvas isn very hard so you might want to reconsider that approach if the frame embedded in canvas solution seems too complex Since you re creating grid the coordinates of each text item is going to be very easy to compute especially if each row is the same height which it probably is if you re using single font ppFor drawing directly on the canvas just figure out the line height of the font you re using and there are commands for that Then each coordinate is coderow lineheight spacing code The coordinate will be fixed number based on the widest item in each column If you give everything tag for the column it is in you can adjust the coordinate and width of all items in column with single command ph2Object oriented solution h2pHere an example of the frame embedded in canvas solution using an object oriented approach ppre codeimport tkinter as tkclass Example tk Frame def init self root tk Frame init self root self canvas tk Canvas root borderwidth background ffffff self frame tk Frame self canvas background ffffff self vsb tk Scrollbar root orient vertical command self canvas yview self canvas configure yscrollcommand self vsb set self vsb pack side right fill self canvas pack side left fill both expand True self canvas create window window self frame anchor nw tags self frame self frame bind lt Configure gt self onFrameConfigure self populate def populate self Put in some fake data for row in range 100 tk Label self frame text row width borderwidth relief solid grid row row column this is the second column for row row tk Label self frame text grid row row column def onFrameConfigure self event Reset the scroll region to encompass the inner frame self canvas configure scrollregion self canvas bbox all if name main root tk Tk Example root pack side top fill both expand True root mainloop code preh2Procedural solution h2pHere is solution that doesn use objects ppre codeimport tkinter as tkdef populate frame Put in some fake data for row in range 100 tk Label frame text row width borderwidth relief solid grid row row column this is the second column for row row tk Label frame text grid row row column def onFrameConfigure canvas Reset the scroll region to encompass the inner frame canvas configure scrollregion canvas bbox all root tk Tk canvas tk Canvas root borderwidth background ffffff frame tk Frame canvas background ffffff vsb tk Scrollbar root orient vertical command canvas yview canvas configure yscrollcommand vsb set vsb pack side right fill canvas pack side left fill both expand True canvas create window window frame anchor nw frame bind lt Configure gt lambda event canvas canvas onFrameConfigure canvas populate frame root mainloop code prep strongNote strong to make this work in python use codeTkinter code rather than codetkinter code in the import statement you need the binding on Configure to handle the case of the window being resized after the GUI starts up This may never happen but the unnecessary calls aren worth worrying over since they typically take just millisecond or two to run h2Overview h2pYou can only associate scrollbars with few widgets and the root widget and codeFrame code aren part of that group of widgets ppThe most common solution is to create canvas widget and associate the scrollbars with that widget Then into that canvas embed the frame that contains your label widgets Determine the width height of the frame and feed that into the canvas codescrollregion code option so that the scrollregion exactly matches the size of the frame ppDrawing the text items directly on the canvas isn very hard so you might want to reconsider that approach if the frame embedded in canvas solution seems too complex Since you re creating grid the coordinates of each text item is going to be very easy to compute especially if each row is the same height which it probably is if you re using single font ppFor drawing directly on the canvas just figure out the line height of the font you re using and there are commands for that Then each coordinate is coderow lineheight spacing code The coordinate will be fixed number based on the widest item in each column If you give everything tag for the column it is in you can adjust the coordinate and width of all items in column with single command ph2Object oriented solution h2pHere an example of the frame embedded in canvas solution using an object oriented approach ppre codeimport tkinter as tkclass Example tk Frame def init self root tk Frame init self root self canvas tk Canvas root borderwidth background ffffff self frame tk Frame self canvas background ffffff self vsb tk Scrollbar root orient vertical command self canvas yview self canvas configure yscrollcommand self vsb set self vsb pack side right fill self canvas pack side left fill both expand True self canvas create window window self frame anchor nw tags self frame self frame bind lt Configure gt self onFrameConfigure self populate def populate self Put in some fake data for row in range 100 tk Label self frame text row width borderwidth relief solid grid row row column this is the second column for row row tk Label self frame text grid row row column def onFrameConfigure self event Reset the scroll region to encompass the inner frame self canvas configure scrollregion self canvas bbox all if name main root tk Tk Example root pack side top fill both expand True root mainloop code preh2Procedural solution h2pHere is solution that doesn use objects ppre codeimport tkinter as tkdef populate frame Put in some fake data for row in range 100 tk Label frame text row width borderwidth relief solid grid row row column this is the second column for row row tk Label frame text grid row row column def onFrameConfigure canvas Reset the scroll region to encompass the inner frame canvas configure scrollregion canvas bbox all root tk Tk canvas tk Canvas root borderwidth background ffffff frame tk Frame canvas background ffffff vsb tk Scrollbar root orient vertical command canvas yview canvas configure yscrollcommand vsb set vsb pack side right fill canvas pack side left fill both expand True canvas create window window frame anchor nw frame bind lt Configure gt lambda event canvas canvas onFrameConfigure canvas populate frame root mainloop code prep strongNote strong to make this work in python use codeTkinter code rather than codetkinter code in the import statement yes in this specific case it works fine since the contents of the inner frame never changes As general solution however using the binding will cover the case when more widgets are added in the frame later or if the widgets in the inner frame change size Though to be honest this example needs an additional binding on the Configure event of the canvas itself to handle the case when it is resized pOne way is to stack the frames on top of each other then you can simply raise one above the other in the stacking order The one on top will be the one that is visible This works best if all the frames are the same size but with little work you can get it to work with any sized frames pp strongNote strong for this to work all of the widgets for page must have that page ie codeself code or descendant as parent or master depending on the terminology you prefer ppHere bit of contrived example to show you the general concept ppre codeimport tkinter as tk python 3from tkinter import font as tkfont python import Tkinter as tk python import tkFont as tkfont python 2class SampleApp tk Tk def init self args kwargs tk Tk init self args kwargs self title font tkfont Font family Helvetica size 18 weight bold slant italic the container is where we ll stack bunch of frames on top of each other then the one we want visible will be raised above the others container tk Frame self container pack side top fill both expand True container grid rowconfigure weight container grid columnconfigure weight self frames for in StartPage PageOne PageTwo page name name frame parent container controller self self frames page name frame put all of the pages in the same location the one on the top of the stacking order will be the one that is visible frame grid row column sticky nsew self show frame StartPage def show frame self page name Show frame for the given page name frame self frames page name frame tkraise class StartPage tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is the start page font controller title font label pack side top fill pady 10 button1 tk Button self text Go to Page One command lambda controller show frame PageOne button2 tk Button self text Go to Page Two command lambda controller show frame PageTwo button1 pack button2 pack class PageOne tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is page font controller title font label pack side top fill pady 10 button tk Button self text Go to the start page command lambda controller show frame StartPage button pack class PageTwo tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is page font controller title font label pack side top fill pady 10 button tk Button self text Go to the start page command lambda controller show frame StartPage button pack if name main app SampleApp app mainloop code prep href https stack imgur com w1sVH png rel noreferrer img src https stack imgur com w1sVH png alt start page href https stack imgur com xH5w5 png rel noreferrer img src https stack imgur com xH5w5 png alt page href https stack imgur com 339hd png rel noreferrer img src https stack imgur com 339hd png alt page ppIf you find the concept of creating instance in class confusing or if different pages need different arguments during construction you can explicitly call each class separately The loop serves mainly to illustrate the point that each class is identical ppFor example to create the classes individually you can remove the loop codefor in StartPage code with this ppre codeself frames StartPage StartPage parent container controller self self frames PageOne PageOne parent container controller self self frames PageTwo PageTwo parent container controller self self frames StartPage grid row column sticky nsew self frames PageOne grid row column sticky nsew self frames PageTwo grid row column sticky nsew code prehrpOver time people have asked other questions using this code or an online tutorial that copied this code as starting point You might want to read the answers to these questions pulli href https stackoverflow com 32864610 7432 Understanding parent and controller in Tkinter init lili href https stackoverflow com 34301300 7432 Tkinter Understanding how to switch frames lili href https stackoverflow com 32212408 7432 How to get variable data from class lili href https stackoverflow com 48731097 7432 Calling functions from Tkinter Frame to an other lili href https stackoverflow com 33646605 7432 How to access variables from different classes in tkinter lili href https stackoverflow com 35029188 7432 How would make method which is run every time frame is shown in tkinter lili href https stackoverflow com 35991126 7432 Tkinter Frame Resize lili href https stackoverflow com 39530107 7432 Tkinter have code for pages in separate files lili href https stackoverflow com 45064732 7432 Refresh tkinter frame on button press li ul there are definitely simpler ways of achieving this with or without stacking frames In the absolute simplest case create frame with whatever you want When you are ready to switch destroy it and create something else pOne way is to stack the frames on top of each other then you can simply raise one above the other in the stacking order The one on top will be the one that is visible This works best if all the frames are the same size but with little work you can get it to work with any sized frames pp strongNote strong for this to work all of the widgets for page must have that page ie codeself code or descendant as parent or master depending on the terminology you prefer ppHere bit of contrived example to show you the general concept ppre codeimport tkinter as tk python 3from tkinter import font as tkfont python import Tkinter as tk python import tkFont as tkfont python 2class SampleApp tk Tk def init self args kwargs tk Tk init self args kwargs self title font tkfont Font family Helvetica size 18 weight bold slant italic the container is where we ll stack bunch of frames on top of each other then the one we want visible will be raised above the others container tk Frame self container pack side top fill both expand True container grid rowconfigure weight container grid columnconfigure ,,, "eight self frames for in StartPage PageOne PageTwo page name name frame parent container controller self self frames page name frame put all of the pages in the same location the one on the top of the stacking order will be the one that is visible frame grid row column sticky nsew self show frame StartPage def show frame self page name Show frame for the given page name frame self frames page name frame tkraise class StartPage tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is the start page font controller title font label pack side top fill pady 10 button1 tk Button self text Go to Page One command lambda controller show frame PageOne button2 tk Button self text Go to Page Two command lambda controller show frame PageTwo button1 pack button2 pack class PageOne tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is page font controller title font label pack side top fill pady 10 button tk Button self text Go to the start page command lambda controller show frame StartPage button pack class PageTwo tk Frame def init self parent controller tk Frame init self parent self controller controller label tk Label self text This is page font controller title font label pack side top fill pady 10 button tk Button self text Go to the start page command lambda controller show frame StartPage button pack if name main app SampleApp app mainloop code prep href https stack imgur com w1sVH png rel noreferrer img src https stack imgur com w1sVH png alt start page href https stack imgur com xH5w5 png rel noreferrer img src https stack imgur com xH5w5 png alt page href https stack imgur com 339hd png rel noreferrer img src https stack imgur com 339hd png alt page ppIf you find the concept of creating instance in class confusing or if different pages need different arguments during construction you can explicitly call each class separately The loop serves mainly to illustrate the point that each class is identical ppFor example to create the classes individually you can remove the loop codefor in StartPage code with this ppre codeself frames StartPage StartPage parent container controller self self frames PageOne PageOne parent container controller self self frames PageTwo PageTwo parent container controller self self frames StartPage grid row column sticky nsew self frames PageOne grid row column sticky nsew self frames PageTwo grid row column sticky nsew code prehrpOver time people have asked other questions using this code or an online tutorial that copied this code as starting point You might want to read the answers to these questions pulli href https stackoverflow com 32864610 7432 Understanding parent and controller in Tkinter init lili href https stackoverflow com 34301300 7432 Tkinter Understanding how to switch frames lili href https stackoverflow com 32212408 7432 How to get variable data from class lili href https stackoverflow com 48731097 7432 Calling functions from Tkinter Frame to an other lili href https stackoverflow com 33646605 7432 How to access variables from different classes in tkinter lili href https stackoverflow com 35029188 7432 How would make method which is run every time frame is shown in tkinter lili href https stackoverflow com 35991126 7432 Tkinter Frame Resize lili href https stackoverflow com 39530107 7432 Tkinter have code for pages in separate files lili href https stackoverflow com 45064732 7432 Refresh tkinter frame on button press li ul yes pack forget can be used if you re using pack pThe correct answer is use the codevalidatecommand code attribute of the widget Unfortunately this feature is severely under documented in the Tkinter world though it is quite sufficiently documented in the Tk world Even though it not documented well it has everything you need to do validation without resorting to bindings or tracing variables or modifying the widget from within the validation procedure ppThe trick is to know that you can have Tkinter pass in special values to your validate command These values give you all the information you need to know to decide on whether the data is valid or not the value prior to the edit the value after the edit if the edit is valid and several other bits of information To use these though you need to do little voodoo to get this information passed to your validate command ppNote it important that the validation command returns either codeTrue code or codeFalse code Anything else will cause the validation to be turned off for the widget ppHere an example that only allows lowercase and prints all those funky values ppre codeimport tkinter as tk python import Tkinter as tk python xclass Example tk Frame def init self parent tk Frame init self parent valid percent substitutions from the Tk entry man page note you only have to register the ones you need this example registers them all for illustrative purposes Type of action insert delete for others index of char string to be inserted deleted or value of the entry if the edit is allowed value of entry prior to editing the text string being inserted or deleted if any the type of validation that is currently set the type of validation that triggered the callback key focusin focusout forced the tk name of the widget vcmd self register self onValidate self entry tk Entry self validate key validatecommand vcmd self text tk Text self height 10 width 40 self entry pack side top fill self text pack side bottom fill both expand True def onValidate self self text delete end self text insert end OnValidate self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end Disallow anything but lowercase letters if lower return True else self bell return Falseif name main root tk Tk Example root pack fill both expand True root mainloop code pre because self is frame and the text widget is child of that frame parent is the parent of self pThe correct answer is use the codevalidatecommand code attribute of the widget Unfortunately this feature is severely under documented in the Tkinter world though it is quite sufficiently documented in the Tk world Even though it not documented well it has everything you need to do validation without resorting to bindings or tracing variables or modifying the widget from within the validation procedure ppThe trick is to know that you can have Tkinter pass in special values to your validate command These values give you all the information you need to know to decide on whether the data is valid or not the value prior to the edit the value after the edit if the edit is valid and several other bits of information To use these though you need to do little voodoo to get this information passed to your validate command ppNote it important that the validation command returns either codeTrue code or codeFalse code Anything else will cause the validation to be turned off for the widget ppHere an example that only allows lowercase and prints all those funky values ppre codeimport tkinter as tk python import Tkinter as tk python xclass Example tk Frame def init self parent tk Frame init self parent valid percent substitutions from the Tk entry man page note you only have to register the ones you need this example registers them all for illustrative purposes Type of action insert delete for others index of char string to be inserted deleted or value of the entry if the edit is allowed value of entry prior to editing the text string being inserted or deleted if any the type of validation that is currently set the type of validation that triggered the callback key focusin focusout forced the tk name of the widget vcmd self register self onValidate self entry tk Entry self validate key validatecommand vcmd self text tk Text self height 10 width 40 self entry pack side top fill self text pack side bottom fill both expand True def onValidate self self text delete end self text insert end OnValidate self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end Disallow anything but lowercase letters if lower return True else self bell return Falseif name main root tk Tk Example root pack fill both expand True root mainloop code pre stackoverflow isn discussion site If you have questions please click the Ask Question button pThe correct answer is use the codevalidatecommand code attribute of the widget Unfortunately this feature is severely under documented in the Tkinter world though it is quite sufficiently documented in the Tk world Even though it not documented well it has everything you need to do validation without resorting to bindings or tracing variables or modifying the widget from within the validation procedure ppThe trick is to know that you can have Tkinter pass in special values to your validate command These values give you all the information you need to know to decide on whether the data is valid or not the value prior to the edit the value after the edit if the edit is valid and several other bits of information To use these though you need to do little voodoo to get this information passed to your validate command ppNote it important that the validation command returns either codeTrue code or codeFalse code Anything else will cause the validation to be turned off for the widget ppHere an example that only allows lowercase and prints all those funky values ppre codeimport tkinter as tk python import Tkinter as tk python xclass Example tk Frame def init self parent tk Frame init self parent valid percent substitutions from the Tk entry man page note you only have to register the ones you need this example registers them all for illustrative purposes Type of action insert delete for others index of char string to be inserted deleted or value of the entry if the edit is allowed value of entry prior to editing the text string being inserted or deleted if any the type of validation that is currently set the type of validation that triggered the callback key focusin focusout forced the tk name of the widget vcmd self register self onValidate self entry tk Entry self validate key validatecommand vcmd self text tk Text self height 10 width 40 self entry pack side top fill self text pack side bottom fill both expand True def onValidate self self text delete end self text insert end OnValidate self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end self text insert end Disallow anything but lowercase letters if lower return True else self bell return Falseif name main root tk Tk Example root pack fill both expand True root mainloop code pre no there no special voodoo register is common method on all widgets In this example self is Frame widget You can use the register method of any widget eg root register pIf you re willing to live dangerously it possible to hook in to the internals of the text widget and have it call function whenever the contents change regardless of how it changed ppThe trick is to replace the underlying tk widget command with proxy This proxy is responsible for doing whatever the real text widget would do then send virtual event if what it did was insert or delete text ppWith that in place it just matter of setting up binding to that event and putting read trace on the variable Of course if you try inserting widgets or images into the text they won be reflected in the textvariable ppHere quick and dirty example not tested at all in anything real This uses the same technique that used to implement line numbers in text widget see href https stackoverflow com 16375233 https stackoverflow com 16375233 ppre codeimport Tkinter as tkimport randomimport timeitclass TextWithVar tk Text text widget that accepts textvariable option def init self parent args kwargs try self textvariable kwargs pop textvariable except KeyError self textvariable None tk Text init self parent args kwargs if the variable has data in it use it to initialize the widget if self textvariable is not None self insert self textvariable get this defines an internal proxy which generates virtual event whenever text is inserted or deleted self tk eval proc widget proxy widget widget command args call the real tk widget command with the real args set result uplevel linsert args widget command if the contents changed generate an event we can bind to if lindex args in insert replace delete event generate widget lt lt Change gt gt when tail return the result from the real widget command return result this replaces the underlying widget with the proxy self tk eval rename widget widget interp alias widget widget proxy widget widget format widget str self set up binding to update the variable whenever the widget changes self bind lt lt Change gt gt self on widget change set up trace to update the text widget when the variable changes if self textvariable is not None self textvariable trace wu self on var change def on var change self args Change the text widget when the associated textvariable changes only change the widget if something actually changed otherwise we ll get into an endless loop text current self get end 1c var current self textvariable get if text current var current self delete end self insert var current def on widget change self event None Change the variable when the widget changes if self textvariable is not None self textvariable set self get end 1c class Example tk Frame def init self parent tk Frame init self parent self textvar tk StringVar self textvar set Hello world create an entry widget and text widget that share textvariable typing in one should update the other self entry tk Entry self textvariable self textvar self text TextWithVar self textvariable self textvar borderwidth relief sunken background bisque self entry pack side top fill expand True self text pack side top fill both expand True if name main root tk Tk Example root pack fill both expand True root mainloop code pre can think of nothing that would cause that to happen My guess is that you re doing something slightly differently between the two TextWithVar is Text just with extra methods Nothing has been taken away pIf you re willing to live dangerously it possible to hook in to the internals of the text widget and have it call function whenever the contents change regardless of how it changed ppThe trick is to replace the underlying tk widget command with proxy This proxy is responsible for doing whatever the real text widget would do then send virtual event if what it did was insert or delete text ppWith that in place it just matter of setting up binding to that event and putting read trace on the variable Of course if you try inserting widgets or images into the text they won be reflected in the textvariable ppHere quick and dirty example not tested at all in anything real This uses the same technique that used to implement line numbers in text widget see href https stackoverflow com 16375233 https stackoverflow com 16375233 ppre codeimport Tkinter as tkimport randomimport timeitclass TextWithVar tk Text text widget that accepts textvariable option def init self parent args kwargs try self textvariable kwargs pop textvariable except KeyError self textvariable None tk Text init self parent args kwargs if the variable has data in it use it to initialize the widget if self textvariable is not None self insert self textvariable get this defines an internal proxy which generates virtual event whenever text is inserted or deleted self tk eval proc widget proxy widget widget command args call the real tk widget command with the real args set result uplevel linsert args widget command if the contents changed generate an event we can bind to if lindex args in insert replace delete event generate widget lt lt Change gt gt when tail return the result from the real widget command return result this replaces the underlying widget with the proxy self tk eval rename widget widget interp alias widget widget proxy widget widget format widget str self set up binding to update the variable whenever the widget changes self bind lt lt Change gt gt self on widget change set up trace to update the text widget when the variable changes if self textvariable is not None self textvariable trace wu self on var change def on var change self args Change the text widget when the associated textvariable changes only change the widget if something actually changed otherwise we ll get into an endless loop text current self get end 1c var current self textvariable get if text current var current self delete end self insert var current def on widget change self event None Change the variable when the widget changes if self textvariable is not None self textvariable set self get end 1c class Example tk Frame def init self parent tk Frame init self parent self textvar tk StringVar self textvar set Hello world create an entry widget and text widget that share textvariable typing in one should update the other self entry tk Entry self textvariable self textvar self text TextWithVar self textvariable self textvar borderwidth relief sunken background bisque self entry pack side top fill expand True self text pack side top fill both expand True if name main root tk Tk Example root pack fill both expand True root mainloop code pre comments aren place for extended discussions If you have specific question click the New Question button pIf you re willing to live dangerously it possible to hook in to the internals of the text widget and have it call function whenever the contents change regardless of how it changed ppThe trick is to replace the underlying tk widget command with proxy This proxy is responsible for doing whatever the real text widget would do then send virtual event if what it did was insert or delete text ppWith that in place it just matter of setting up binding to that event and putting read trace on the variable Of course if you try inserting widgets or images into the text they won be reflected in the textvariable ppHere quick and dirty example not tested at all in anything real This uses the same technique that used to implement line numbers in text widget see href https stackoverflow com 16375233 https stackoverflow com 16375233 ppre codeimport Tkinter as tkimport randomimport timeitclass TextWithVar tk Text text widget that accepts textvariable option def init self parent args kwargs try self textvariable kwargs pop textvariable except KeyError self textvariable None tk Text init self parent args kwargs if the variable has data in it use it to initialize the widget if self textvariable is not None self insert self textvariable get this defines an internal proxy which generates virtual event whenever text is inserted or deleted self tk eval proc widget proxy widget widget command args call the real tk widget command with the real args set result uplevel linsert args widget command if the contents changed generate an event we can bind to if lindex args in insert replace delete event generate widget lt lt Change gt gt when tail return the result from the real widget command return result this replaces the underlying widget with the proxy self tk eval rename widget widget interp alias widget widget proxy widget widget format widget str self set up binding to update the variable whenever the widget changes self bind lt lt Change gt gt self on widget change set up trace to update the text widget when the variable changes if self textvariable is not None self textvariable trace wu self on var change def on var change self args Change the text widget when the associated textvariable changes only change the widget if something actually changed otherwise we ll get into an endless loop text current self get end 1c var current self textvariable get if text current var current self delete end self insert var current def on widget change self event None Change the variable when the widget changes if self textvariable is not None self textvariable set self get end 1c class Example tk Frame def init self parent tk Frame init self parent self textvar tk StringVar self textvar set Hello world create an entry widget and text widget that share textvariable typing in one should update the other self entry tk Entry self textvariable self textvar self text TextWithVar self textvariable self textvar borderwidth relief sunken background bisque self entry pack side top fill expand True self text pack side top fill both expand True if name main root tk Tk Example root pack fill both expand True root mainloop code pre it is bug in the code ve updated the code pIt not entirely clear what your goals are think it safe to assume that if your code does everything right ie the URL is correct and css rules don cause the element to be hidden that the browser will do what it supposed to do and show the image Of course if you re on the testing team that is actually testing the browser itself that different problem ppSo assuming that the browser is behaving correctly here are couple of suggestions polli pYou can use the href http rtomac github io robotframework selenium2library doc Selenium2Library html Page 20Should 20Contain 20Image rel noreferrer Page should contain image attribute to verify the element is in the DOM lili pYou can use the href http rtomac github io robotframework selenium2library doc Selenium2Library html Get 20Element 20Attribute rel noreferrer Get Element Attribute keyword to get the value of the codesrc code attribute and then use the href http bulkan github io robotframework requests Get rel noreferrer Get keyword of the href http bulkan github io robotframework requests rel noreferrer requests library to verify that the url returns 200 status code lili pYou can use the href http rtomac github io robotframework selenium2library doc Selenium2Library html Element 20Should 20Be 20Visible rel noreferrer Element should be visible keyword to verify that the css rules allow the element to be displayed li olpHere is complete working example ppre code Settings Library Selenium2Library Library RequestsLibrary Variables TEST PAGE http the internet herokuapp com hovers BROWSER chrome Keywords Assert an image is visible Arguments element id Documentation This keyword fails if the given image element is not visible Three checks are performed that the element is on the page that selenium thinks the element is visible and that the src attribute of the image points to resource that is accessible Step verify the page contains the given element Page should contain image element id Step verify that the element is visible Element should be visible element id Step verify the src attribute of the image is accessible img src Get element attribute element id Create session img src img src response Get img src URL is relative to the session URL Should be equal as integers response status code 200 image url img src returned unexpected status code response status code show values False Test Cases Example of test to verify an image is visible Documentation Verify that the first image on the test page is visible Setup Open browser TEST PAGE BROWSER Assert an image is visible div figure img Teardown Close All Browsers code pre the only drawback is that if the response isn 200 eg 404 the test could think that the image is visible because the DOM element is on the page when the actual image is not because the URL is incorrect""",good answer robotframework necromancer nice answer enlighten popular question necromancer nice answer enlighten announcer nice answer enlighten nice answer enlighten nice answer enlighten revival notable question nice answer enlighten nice answer guru tk good answer string grid good answer popular question announcer nice question announcer nice answer nice answer enlighten nice answer enlighten announcer announcer guru nice answer enlighten popular question nice answer enlighten good answer good answer announcer nice answer enlighten good answer popular question nice answer nice answer nice answer nice answer guru nice answer enlighten guru yearle nice answer nice answer nice answer class nice answer nice answer enlighten nice answer nice answer caucus nice answer enlighten revival canva function nice answer announcer popular question announcer popular question custodian listbox nice answer nice answer enlighten good answer announcer good answer announcer nice answer enlighten announcer census scrollbar nice answer nice answer good answer nice answer enlighten guru selenium nice question good answer nice answer enlighten notable question popular question guru good answer guru nice answer enlighten nice answer notable question famous question announcer nice answer nice answer nice answer great answer nice answer good answer guru nice answer nice answer enlighten nice answer enlighten nice answer good answer announcer announcer nice answer nice answer enlighten announcer nice answer nice answer enlighten good answer nice answer image nice answer announcer nice answer enlighten good answer great answer nice answer good answer robotframework announcer announcer announcer good answer nice answer enlighten nice answer enlighten enlighten textbox good answer announcer announcer nice answer tcl nice answer nice answer enlighten good answer window epic announcer nice answer enlighten revival nice question good answer great answer bash announcer announcer announcer yearle good answer guru nice answer nice answer nice answer enlighten nice answer nice answer enlighten enlighten nice answer nice answer nice answer revival good answer documentation user nice answer enlighten font nice answer necromancer announcer notable question good answer nice answer necromancer nice answer enlighten revival nice answer enlighten guru nice answer good answer announcer nice answer enlighten reviewer announcer nice answer nice answer enlighten macos revival announcer nice answer good answer nice answer nice answer enlighten announcer nice answer enlighten nice answer enlighten announcer nice answer enlighten census announcer good answer nice answer nice answer enlighten nice answer nice answer enlighten nice answer enlighten announcer populist nice answer guru nice answer nice answer enlighten good answer announcer caucus constituent nice answer good answer announcer nice answer announcer bind nice answer nice answer nice answer nice answer nice answer good answer announcer announcer announcer nice answer enlighten good answer good answer great answer good answer announcer nice answer enlighten announcer good answer nice answer popular question announcer nice answer nice answer nice answer enlighten nice answer nice answer enlighten enlighten great answer good answer nice answer enlighten announcer nice answer nice answer enlighten guru good answer guru yearle nice answer nice answer enlighten announcer nice answer announcer announcer announcer nice answer revival good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer guru nice answer enlighten nice answer enlighten good answer nice answer nice answer enlighten nice answer enlighten pyou item canva href http effbot org tkinterbook canva htm tkint canva coord method noreferrer coord href http effbot org tkinterbook canva htm tkint canva method noreferrer method change coordinate pphere simple show create item canva codeimport tkint tkclass tk frame illustrate drag item tkint canva def init parent tk frame init parent create canva canva tk canva width height canva pack expand true datum track item drag drag datum item create couple movable object create token white create token black add binding clicking drag release object token tag canva tag bind token lt buttonpress token press canva tag bind token lt buttonrelease token release canva tag bind token lt motion token motion def create token coord color create token coordinate color coord canva create oval outline color color tag token def token press event begin drag object record item location drag datum item canva close event event drag datum event drag datum event def token release event end drag object reset drag information drag datum item drag datum drag datum def token motion event handle drag object compute mouse move delta event drag datum delta event drag datum object canva drag datum item delta delta record position drag datum event drag datum event yif main root tk tk root pack expand true root mainloop code absolutely correct uppercase function name point choose name scheme update answer lowercase understand point make repeat code fully function feel fully function case pi foolproof solution complex hard understand require knowledge tkint underlie tcl tk text widget work present complete solution illustrate unique approach work ppnote solution work matter font font line embed widget tkint start code assume tkint import python great codeimport tkint tk code prep python codeimport tkint tk code line number widget tackle display line number canva position number precisely create custom class method name coderedraw code redraw line number text widget method codeattach code associate text widget widget ppthis method take advantage fact text widget line text start end codedlineinfo code method precisely draw line number canva take advantage fact codedlineinfo code return codenone code line visible stop display line number codeclass textlinenumber tk canva def init arg kwarg tk canva init arg kwarg textwidget def attach text widget textwidget text widget def redraw arg redraw line number delete textwidget index true dline textwidget dlineinfo dline break dline linenum str split create text anchor text linenum textwidget index code prepif associate text widget coderedraw code method display line number fine update line number work fatal flaw coderedraw code create bind fire key press mouse button handle case user press key auto repeat function line number redrawn window grow shrink user scroll fall rabbit hole figure event number change ppthere solution text widget event text widget direct support notify program proxy intercept text widget generate event ppin answer question href https stackoverflow bind cursor movement do not change insert mark offer similar solution show text widget callback time callback generate event custom text class class create custom text widget generate code lt lt change code event text insert delete view scroll codeclass tk text def init arg kwarg tk text init arg kwarg create proxy underlie widget orig orig tk rename orig tk createcommand proxy def proxy arg actual widget perform request action cmd orig arg result tk cmd generate event add delete cursor position change arg insert replace delete arg mark set insert arg xview moveto arg xview scroll arg yview moveto arg yview scroll event generate lt lt change tail return actual widget return return result code program class codeclass tk frame def init arg kwarg tk frame init arg kwarg text tk scrollbar orient vertical command text yview text configure yscrollcommand set text tag configure bigfont font helvetica bold linenumber textlinenumber width linenumber attach text pack linenumber pack leave text pack expand true text bind lt lt change change text bind lt configure change text insert end ntwo nthree text insert end bigfont text insert end def change event linenumber redraw code prep add end file bootstrap codeif main root tk tk root pack expand true root mainloop code observe performance issue performance issue matter line text draw linenumber visible line test line text work fine enter line text time slightly slow performance acceptable pi foolproof solution complex hard understand require knowledge tkint underlie tcl tk text widget work present complete solution illustrate unique approach work ppnote solution work matter font font line embed widget tkint start code assume tkint import python great codeimport tkint tk code prep python codeimport tkint tk code line number widget tackle display line number canva position number precisely create custom class method name coderedraw code redraw line number text widget method codeattach code associate text widget widget ppthis method take advantage fact text widget line text start end codedlineinfo code method precisely draw line number canva take advantage fact codedlineinfo code return codenone code line visible stop display line number codeclass textlinenumber tk canva def init arg kwarg tk canva init arg kwarg textwidget def attach text widget textwidget text widget def redraw arg redraw line number delete textwidget index true dline textwidget dlineinfo dline break dline linenum str split create text anchor text linenum textwidget index code prepif associate text widget coderedraw code method display line number fine update line number work fatal flaw coderedraw code create bind fire key press mouse button handle case user press key auto repeat function line number redrawn window grow shrink user scroll fall rabbit hole figure event number change ppthere solution text widget event text widget direct support notify program proxy intercept text widget generate event ppin answer question href https stackoverflow bind cursor movement do not change insert mark offer similar solution show text widget callback time callback generate event custom text class class create custom text widget generate code lt lt change code event text insert delete view scroll codeclass tk text def init arg kwarg tk text init arg kwarg create proxy underlie widget orig orig tk rename orig tk createcommand proxy def proxy arg actual widget perform request action cmd orig arg result tk cmd generate event add delete cursor position change arg insert replace delete arg mark set insert arg xview moveto arg xview scroll arg yview moveto arg yview scroll event generate lt lt change tail return actual widget return return result code program class codeclass tk frame def init arg kwarg tk frame init arg kwarg text tk scrollbar orient vertical command text yview text configure yscrollcommand set text tag configure bigfont font helvetica bold linenumber textlinenumber width linenumber attach text pack linenumber pack leave text pack expand true text bind lt lt change change text bind lt configure change text insert end ntwo nthree text insert end bigfont text insert end def change event linenumber redraw code prep add end file bootstrap codeif main root tk tk root pack expand true root mainloop code problem loading text line time correct method make method slow simple fix add ability turn feature initial loading simply remove change bind startup read file insert single statement pi foolproof solution complex hard understand require knowledge tkint underlie tcl tk text widget work present complete solution illustrate unique approach work ppnote solution work matter font font line embed widget tkint start code assume tkint import python great codeimport tkint tk code prep python codeimport tkint tk code line number widget tackle display line number canva position number precisely create custom class method name coderedraw code redraw line number text widget method codeattach code associate text widget widget ppthis method take advantage fact text widget line text start end codedlineinfo code method precisely draw line number canva take advantage fact codedlineinfo code return codenone code line visible stop display line number codeclass textlinenumber tk canva def init arg kwarg tk canva init arg kwarg textwidget def attach text widget textwidget text widget def redraw arg redraw line number delete textwidget index true dline textwidget dlineinfo dline break dline linenum str split create text anchor text linenum textwidget index code prepif associate text widget coderedraw code method display line number fine update line number work fatal flaw coderedraw code create bind fire key press mouse button handle case user press key auto repeat function line number redrawn window grow shrink user scroll fall rabbit hole figure event number change ppthere solution text widget event text widget direct support notify program proxy intercept text widget generate event ppin answer question href https stackoverflow bind cursor movement do not change insert mark offer similar solution show text widget callback time callback generate event custom text class class create custom text widget generate code lt lt change code event text insert delete view scroll codeclass tk text def init arg kwarg tk text init arg kwarg create proxy underlie widget orig orig tk rename orig tk createcommand proxy def proxy arg actual widget perform request action cmd orig arg result tk cmd generate event add delete cursor position change arg insert replace delete arg mark set insert arg xview moveto arg xview scroll arg yview moveto arg yview scroll event generate lt lt change tail return actual widget return return result code program class codeclass tk frame def init arg kwarg tk frame init arg kwarg text tk scrollbar orient vertical command text yview text configure yscrollcommand set text tag configure bigfont font helvetica bold linenumber textlinenumber width linenumber attach text pack linenumber pack leave text pack expand true text bind lt lt change change text bind lt configure change text insert end ntwo nthree text insert end bigfont text insert end def change event linenumber redraw code prep add end file bootstrap codeif main root tk tk root pack expand true root mainloop code add change event normal text widget code add change event normal text widget delete method work fine code answer comment appear call delete method class instance class pif directory script run codeimport oso path dirname path abspath file code prepif current work directory codeimport oso getcwd code prepnote codefile code underscore powershell path abspath work pif directory script run codeimport oso path dirname path abspath file code prepif current work directory codeimport oso getcwd code prepnote codefile code underscore work run script file run interactive prompt pif directory script run codeimport oso path dirname path abspath file code prepif current work directory codeimport oso getcwd code prepnote codefile code underscore interactive prompt file set file set associate scrollbar widget root widget codeframe code group widget ppthe common solution create canva widget associate scrollbar widget canva embe frame label widget determine width height frame feed canva code option scrollregion match size frame ppdrawe text item directly canva hard reconsider approach frame embed canva solution complex create grid coordinate text item easy compute row height single font ppfor draw directly canva figure line height font command coordinate coderow lineheight space code coordinate fix number base wide item column tag column adjust coordinate width item column single command orient solution frame embed canva solution object orient approach codeimport tkint tkclass tk frame def init root tk frame init root canva tk canva root borderwidth background ffffff frame tk frame canva background ffffff tk scrollbar root orient vertical command canva yview canva configure yscrollcommand set pack canva pack leave expand true canva create window window frame anchor tag frame frame bind lt configure populate def populate fake datum row range tk label frame text row width borderwidth relief solid grid row row column column row row tk label frame text grid row row column def event reset scroll region encompass frame canva configure scrollregion canva bbox main root tk tk root pack expand true root mainloop code solution solution object codeimport tkint tkdef populate frame fake datum row range tk label frame text row width borderwidth relief solid grid row row column column row row tk label frame text grid row row column def canva reset scroll region encompass frame canva configure scrollregion canva bbox root tk tk canva tk canva root borderwidth background ffffff frame tk frame canva background ffffff tk scrollbar root orient vertical command canva yview canva configure yscrollcommand set pack canva pack leave expand true canva create window window frame anchor frame bind lt configure lambda event canva canva canva populate frame root mainloop code prep strongnote strong make work python codetkinter code codetkinter code import statement bind configure handle case window resize gui start happen unnecessary call worth worry typically millisecond run associate scrollbar widget root widget codeframe code group widget ppthe common solution create canva widget associate scrollbar widget canva embe frame label widget determine width height frame feed canva code option scrollregion match size frame ppdrawe text item directly canva hard reconsider approach frame embed canva solution complex create grid coordinate text item easy compute row height single font ppfor draw directly canva figure line height font command coordinate coderow lineheight space code coordinate fix number base wide item column tag column adjust coordinate width item column single command orient solution frame embed canva solution object orient approach codeimport tkint tkclass tk frame def init root tk frame init root canva tk canva root borderwidth background ffffff frame tk frame canva background ffffff tk scrollbar root orient vertical command canva yview canva configure yscrollcommand set pack canva pack leave expand true canva create window window frame anchor tag frame frame bind lt configure populate def populate fake datum row range tk label frame text row width borderwidth relief solid grid row row column column row row tk label frame text grid row row column def event reset scroll region encompass frame canva configure scrollregion canva bbox main root tk tk root pack expand true root mainloop code solution solution object codeimport tkint tkdef populate frame fake datum row range tk label frame text row width borderwidth relief solid grid row row column column row row tk label frame text grid row row column def canva reset scroll region encompass frame canva configure scrollregion canva bbox root tk tk canva tk canva root borderwidth background ffffff frame tk frame canva background ffffff tk scrollbar root orient vertical command canva yview canva configure yscrollcommand set pack canva pack leave expand true canva create window window frame anchor frame bind lt configure lambda event canva canva canva populate frame root mainloop code prep strongnote strong make work python codetkinter code codetkinter code import statement specific case work fine content frame general solution bind cover case widget add frame widget frame change size honest additional bind configure event canva handle case resize pone stack frame simply raise stack order visible work frame size work work sized frame strongnote strong work widget page page codeself code descendant parent master depend terminology prefer pphere bit contrive general concept codeimport tkint tk python tkint import font tkfont python import tkint tk python import tkfont tkfont python sampleapp tk tk def init arg kwarg tk tk init arg kwarg title font tkfont font family helvetica size weight bold slant italic container stack bunch frame visible raise container tk frame container pack expand true container grid rowconfigure weight container grid columnconfigure weight frame startpage pageone pagetwo page frame parent container controller frame page frame page location stack order visible frame grid row column sticky nsew frame startpage def frame page frame page frame frame page frame tkraise class startpage tk frame def init parent controller tk frame init parent controller controller label tk label text start page font controller title font label pack pady tk button text page command lambda controller frame pageone tk button text page command lambda controller frame pagetwo pack pack class pageone tk frame def init parent controller tk frame init parent controller controller label tk label text page font controller title font label pack pady button tk button text start page command lambda controller frame startpage button pack class pagetwo tk frame def init parent controller tk frame init parent controller controller label tk label text page font controller title font label pack pady button tk button text start page command lambda controller frame startpage button pack main app sampleapp app mainloop code prep href https stack imgur png noreferrer img src https stack imgur png alt start page href https stack imgur png noreferrer img src https stack imgur png alt page href https stack imgur png noreferrer img src https stack imgur png alt page ppif concept create instance class confuse page argument construction explicitly class separately loop serve illustrate point class identical ppfor create class individually remove loop codefor startpage code codeself frame startpage startpage parent container controller frame pageone pageone parent container controller frame pagetwo pagetwo parent container controller frame startpage grid row column sticky nsew frame pageone grid row column sticky nsew frame pagetwo grid row column sticky nsew code prehrpover time people ask question code online tutorial copy code start point read answer question pulli href https stackoverflow understanding parent controller tkint init lili href https stackoverflow tkint understanding switch frame lili href https stackoverflow variable datum class lili href https stackoverflow call function tkint frame lili href https stackoverflow access variable class tkint lili href https stackoverflow make method run time frame show tkint lili href https stackoverflow tkint frame resize lili href https stackoverflow tkint code page separate file lili href https stackoverflow refresh tkint frame button press li simple way achieve stack frame absolute simple case create frame ready switch destroy create pone stack frame simply raise stack order visible work frame size work work sized frame strongnote strong work widget page page codeself code descendant parent master depend terminology prefer pphere bit contrive general concept codeimport tkint tk python tkint import font tkfont python import tkint tk python import tkfont tkfont python sampleapp tk tk def init arg kwarg tk tk init arg kwarg title font tkfont font family helvetica size weight bold slant italic container stack bunch frame visible raise container tk frame container pack expand true container grid rowconfigure weight container grid columnconfigure weight frame startpage pageone pagetwo page frame parent container controller frame page frame page location stack order visible frame grid row column sticky nsew frame startpage def frame page frame page frame frame page frame tkraise class startpage tk frame def init parent controller tk frame init parent controller controller label tk label text start page font controller title font label pack pady tk button text page command lambda controller frame pageone tk button text page command lambda controller frame pagetwo pack pack class pageone tk frame def init parent controller tk frame init parent controller controller label tk label text page font controller title font label pack pady button tk button text start page command lambda controller frame startpage button pack class pagetwo tk frame def init parent controller tk frame init parent controller controller label tk label text page font controller title font label pack pady button tk button text start page command lambda controller frame startpage button pack main app sampleapp app mainloop code prep href https stack imgur png noreferrer img src https stack imgur png alt start page href https stack imgur png noreferrer img src https stack imgur png alt page href https stack imgur png noreferrer img src https stack imgur png alt page ppif concept create instance class confuse page argument construction explicitly class separately loop serve illustrate point class identical ppfor create class individually remove loop codefor startpage code codeself frame startpage startpage parent container controller frame pageone pageone parent container controller frame pagetwo pagetwo parent container controller frame startpage grid row column sticky nsew frame pageone grid row column sticky nsew frame pagetwo grid row column sticky nsew code prehrpover time people ask question code online tutorial copy code start point read answer question pulli href https stackoverflow understanding parent controller tkint init lili href https stackoverflow tkint understanding switch frame lili href https stackoverflow variable datum class lili href https stackoverflow call function tkint frame lili href https stackoverflow access variable class tkint lili href https stackoverflow make method run time frame show tkint lili href https stackoverflow tkint frame resize lili href https stackoverflow tkint code page separate file lili href https stackoverflow refresh tkint frame button press li pack forget pack pthe correct answer code attribute widget feature severely document tkint world sufficiently document tk world document validation resort binding trace variable modify widget validation procedure ppthe trick tkint pass special value validate command value information decide datum valid prior edit edit edit valid bit information voodoo information pass validate command ppnote important validation command return codetrue code codefalse code validation turn widget pphere lowercase print funky value codeimport tkint tk python import tkint tk python tk frame def init parent tk frame init parent valid percent substitution tk entry man page note register register illustrative purpose type action insert delete index char string insert delete entry edit allow entry prior edit text string insert delete type validation set type validation trigger callback key focusin focusout force tk widget vcmd register onvalidate entry tk entry validate key validatecommand vcmd text tk text height width entry pack text pack expand true def onvalidate text delete end text insert end onvalidate text insert end text insert end text insert end text insert end text insert end text insert end text insert end text insert end disallow lowercase letter low return true bell return falseif main root tk tk root pack expand true root mainloop code frame text widget child frame parent parent pthe correct answer code attribute widget feature severely document tkint world sufficiently document tk world document validation resort binding trace variable modify widget validation procedure ppthe trick tkint pass special value validate command value information decide datum valid prior edit edit edit valid bit information voodoo information pass validate command ppnote important validation command return codetrue code codefalse code validation turn widget pphere lowercase print funky value codeimport tkint tk python import tkint tk python tk frame def init parent tk frame init parent valid percent substitution tk entry man page note register register illustrative purpose type action insert delete index char string insert delete entry edit allow entry prior edit text string insert delete type validation set type validation trigger callback key focusin focusout force tk widget vcmd register onvalidate entry tk entry validate key validatecommand vcmd text tk text height width entry pack text pack expand true def onvalidate text delete end text insert end onvalidate text insert end text insert end text insert end text insert end text insert end text insert end text insert end text insert end disallow lowercase letter low return true bell return falseif main root tk tk root pack expand true root mainloop code stackoverflow discussion site question click question button pthe correct answer code attribute widget feature severely document tkint world sufficiently document tk world document validation resort binding trace variable modify widget validation procedure ppthe trick tkint pass special value validate command value information decide datum valid prior edit edit edit valid bit information voodoo information pass validate command ppnote important validation command return codetrue code codefalse code validation turn widget pphere lowercase print funky value codeimport tkint tk python import tkint tk python tk frame def init parent tk frame init parent valid percent substitution tk entry man page note register register illustrative purpose type action insert delete index char string insert delete entry edit allow entry prior edit text string insert delete type validation set type validation trigger callback key focusin focusout force tk widget vcmd register onvalidate entry tk entry validate key validatecommand vcmd text tk text height width entry pack text pack expand true def onvalidate text delete end text insert end onvalidate text insert end text insert end text insert end text insert end text insert end text insert end text insert end text insert end disallow lowercase letter low return true bell return falseif main root tk tk root pack expand true root mainloop code special voodoo register common method widget frame widget register method widget root register pif live dangerously hook internal text widget function content change change ppthe trick replace underlie tk widget command proxy proxy responsible real text widget send virtual event insert delete text ppwith place matter set bind event put read trace variable insert widget image text reflect textvariable pphere quick dirty test real technique implement line number text widget href https stackoverflow https stackoverflow codeimport tkint tkimport randomimport timeitclass textwithvar tk text text widget accept textvariable option def init parent arg kwarg textvariable kwarg pop textvariable keyerror textvariable tk text init parent arg kwarg variable datum initialize widget textvariable insert textvariable define internal proxy generate virtual event text insert delete tk eval proc widget proxy widget widget command arg real tk widget command real arg set result uplevel linsert arg widget command content change generate event bind lindex arg insert replace delete event generate widget lt lt change tail return result real widget command return result replace underlie widget proxy tk eval rename widget widget alias widget widget proxy widget widget format widget str set bind update variable widget bind lt lt change widget change set trace update text widget variable textvariable textvariable trace var change def var change arg change text widget textvariable change widget change endless loop text current end var current textvariable text current var current delete end insert var current def widget change event change variable widget textvariable textvariable set end class tk frame def init parent tk frame init parent textvar tk stringvar textvar set world create entry widget text widget share textvariable type update entry tk entry textvariable textvar text textwithvar textvariable textvar borderwidth relief sink background bisque entry pack expand true text pack expand true main root tk tk root pack expand true root mainloop code happen guess slightly differently textwithvar text extra method pif live dangerously hook internal text widget function content change change ppthe trick replace underlie tk widget command proxy proxy responsible real text widget send virtual event insert delete text ppwith place matter set bind event put read trace variable insert widget image text reflect textvariable pphere quick dirty test real technique implement line number text widget href https stackoverflow https stackoverflow codeimport tkint tkimport randomimport timeitclass textwithvar tk text text widget accept textvariable option def init parent arg kwarg textvariable kwarg pop textvariable keyerror textvariable tk text init parent arg kwarg variable datum initialize widget textvariable insert textvariable define internal proxy generate virtual event text insert delete tk eval proc widget proxy widget widget command arg real tk widget command real arg set result uplevel linsert arg widget command content change generate event bi,,,,,,, "d lindex arg insert replace delete event generate widget lt lt change tail return result real widget command return result replace underlie widget proxy tk eval rename widget widget alias widget widget proxy widget widget format widget str set bind update variable widget bind lt lt change widget change set trace update text widget variable textvariable textvariable trace var change def var change arg change text widget textvariable change widget change endless loop text current end var current textvariable text current var current delete end insert var current def widget change event change variable widget textvariable textvariable set end class tk frame def init parent tk frame init parent textvar tk stringvar textvar set world create entry widget text widget share textvariable type update entry tk entry textvariable textvar text textwithvar textvariable textvar borderwidth relief sink background bisque entry pack expand true text pack expand true main root tk tk root pack expand true root mainloop code comment place extend discussion specific question click question button pif live dangerously hook internal text widget function content change change ppthe trick replace underlie tk widget command proxy proxy responsible real text widget send virtual event insert delete text ppwith place matter set bind event put read trace variable insert widget image text reflect textvariable pphere quick dirty test real technique implement line number text widget href https stackoverflow https stackoverflow codeimport tkint tkimport randomimport timeitclass textwithvar tk text text widget accept textvariable option def init parent arg kwarg textvariable kwarg pop textvariable keyerror textvariable tk text init parent arg kwarg variable datum initialize widget textvariable insert textvariable define internal proxy generate virtual event text insert delete tk eval proc widget proxy widget widget command arg real tk widget command real arg set result uplevel linsert arg widget command content change generate event bind lindex arg insert replace delete event generate widget lt lt change tail return result real widget command return result replace underlie widget proxy tk eval rename widget widget alias widget widget proxy widget widget format widget str set bind update variable widget bind lt lt change widget change set trace update text widget variable textvariable textvariable trace var change def var change arg change text widget textvariable change widget change endless loop text current end var current textvariable text current var current delete end insert var current def widget change event change variable widget textvariable textvariable set end class tk frame def init parent tk frame init parent textvar tk stringvar textvar set world create entry widget text widget share textvariable type update entry tk entry textvariable textvar text textwithvar textvariable textvar borderwidth relief sink background bisque entry pack expand true text pack expand true main root tk tk root pack expand true root mainloop code bug code update code pit clear goal safe assume code url correct css rule element hide browser suppose image testing team testing browser problem ppso assume browser behave correctly couple suggestion polli pyou href http rtomac github robotframework doc html page noreferrer page image attribute verify element dom lili pyou href http rtomac github robotframework doc html noreferrer element attribute keyword codesrc code attribute href http bulkan github robotframework request noreferrer keyword href http bulkan github robotframework request noreferrer request library verify url return status code lili pyou href http rtomac github robotframework doc html element noreferrer element visible keyword verify css rule element display li olphere complete work code setting library library requestslibrary variable test page http internet herokuapp hover browser chrome keyword assert image visible argument element documentation keyword fail image element visible check perform element page selenium think element visible src attribute image point resource accessible step verify page element page image element step verify element visible element visible element step verify src attribute image accessible img src element attribute element create session img src img src response img src url relative session url equal integer response status code image url img src return unexpected status code response status code value false test case test verify image visible documentation verify image test page visible setup open browser test page browser assert image visible div figure img teardown close browser code drawback response test image visible dom element page actual image url incorrect""",0,NULL,NULL,,,,, 12393,1796729,1204287,NULL,NULL,NULL,0,NULL,NULL 12394,37674,1382826,Nice Answer,NULL,NULL,0,NULL,NULL 12395,707301,154744,Nice Answer Enlightened Good Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 12396,797452,3165,Famous Question,NULL,NULL,0,NULL,NULL 12397,254099,265710,Yearling Good Answer Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12398,1226333,1072424,NULL,NULL,NULL,0,NULL,NULL 12399,1473858,952862,NULL,NULL,NULL,0,NULL,NULL 12400,197579,120526,Popular Question Popular Question Popular Question Notable Question Notable Question Self-Learner Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 12401,148175,212258,Necromancer,NULL,NULL,0,NULL,NULL 12402,12957,73049,Nice Answer Guru Yearling Good Question Notable Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12403,41995,450142,Nice Answer Informed Yearling,NULL,NULL,0,NULL,NULL 12404,1935,91365,Necromancer Good Answer Nice Answer Yearling Notable Question Nice Answer Pundit Nice Answer Notable Question Good Answer Popular Question Civic Duty Yearling Announcer Good Answer Populist Populist Notable Question Necromancer Nice Question Necromancer Necromancer Necromancer Yearling Great Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 12405,90716,531554,Yearling,NULL,NULL,0,NULL,NULL 12406,49387,1255858,Enlightened Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 12407,220176,1098341,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12408,664992,452787,NULL,NULL,NULL,0,NULL,NULL 12409,43962,285734,Yearling Yearling Good Answer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 12410,406952,1181527,NULL,NULL,NULL,0,NULL,NULL 12411,203953,979456,NULL,NULL,NULL,0,NULL,NULL 12412,83048,865991,NULL,NULL,NULL,0,NULL,NULL 12413,342255,761741,NULL,NULL,NULL,0,NULL,NULL 12414,5122293,761741,NULL,NULL,NULL,0,NULL,NULL 12415,150916,113975,NULL,NULL,NULL,0,NULL,NULL 12416,20989,339448,Famous Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12417,435414,890395,Famous Question Good Question Nice Question Yearling Caucus Nice Answer Enlightened Yearling Disciplined,NULL,NULL,0,NULL,NULL 12418,116309,1139481,NULL,NULL,NULL,0,NULL,NULL 12419,647525,775184,Revival Nice Answer Great Answer objective-c Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Nice Answer Necromancer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer ios Good Answer Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Guru Guru Good Answer Great Answer Nice Answer Yearling Good Answer Enlightened tfs rest Good Answer Guru,NULL,pHere code from sample of mine It async and returns JSON object It could do any get request Note there more optimal ways just sample for example instead of concatenating the chunks you put into an array and join it etc Hopefully it gets you started in the right direction ppre codevar http require http var https require https getJSON REST get request returning JSON object options http options object callback callback to pass the results JSON object back exports getJSON function options onResult console log rest getJSON var port options port 443 https http var req port request options function res var output console log options host res statusCode res setEncoding utf8 res on data function chunk output chunk res on end function var obj JSON parse output onResult res statusCode obj req on error function err res send error err message req end code prepIt called by creating an options objects like ppre codevar options host somesite com port 443 path some path method GET headers Content Type application json code prepand providing callback function ppFor example in service require the rest module above and then do this ppre coderest getJSON options function statusCode result could work with the result html json here could also just return it console log onResult statusCode JSON stringify result res statusCode statusCode res send result code prepUPDATE ppIf you re looking for async await linear no callback promises compile time support and intellisense we create lightweight http and rest client that fits that bill pp href https github com Microsoft typed rest client rel noreferrer Microsoft typed rest client node has querystring object https nodejs org api querystring html and url object https nodejs org docs latest api url html,0,NULL,NULL 12420,7568,202295,NULL,NULL,NULL,0,NULL,NULL 12421,321577,144755,Popular Question Yearling,NULL,NULL,0,NULL,NULL 12422,645705,324359,NULL,NULL,NULL,0,NULL,NULL 12423,207719,828340,NULL,NULL,NULL,0,NULL,NULL 12424,44107,1452,Custodian Scholar Citizen Patrol Popular Question Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 12425,178026,1122453,Popular Question,NULL,NULL,0,NULL,NULL 12426,8021,1122453,Popular Question,NULL,NULL,0,NULL,NULL 12427,12110,1357494,Popular Question,NULL,NULL,0,NULL,NULL 12428,29786,721407,NULL,NULL,NULL,0,NULL,NULL 12429,461608,1046540,NULL,NULL,NULL,0,NULL,NULL 12430,57582,129475,Necromancer Revival Nice Answer Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Nice Question Nice Question Nice Question Notable Question Announcer Notable Question Popular Question Notable Question Nice Question Announcer Notable Question Popular Question Notable Question Nice Question Popular Question Famous Question Nice Question Notable Question Notable Question Popular Question Nice Question Famous Question Yearling Famous Question Popular Question Nice Question Famous Question Famous Question Nice Question Necromancer Nice Question Popular Question Notable Question Nice Answer Nice Question Nice Question Yearling Good Question Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Announcer Nice Question,NULL,NULL,0,NULL,NULL 12431,257374,348146,Announcer,NULL,NULL,0,NULL,NULL 12432,48555,311364,Nice Answer Popular Question Yearling Popular Question Good Answer Necromancer Popular Question Notable Question Notable Question Nice Question Notable Question Pundit Notable Question Good Answer Popular Question Popular Question Nice Answer Necromancer Popular Question Notable Question Famous Question Yearling Inquisitive Necromancer Announcer Popular Question Notable Question Popular Question Popular Question Revival Good Answer Yearling Notable Question Nice Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12433,31998,450139,Famous Question Popular Question Yearling Notable Question Great Question Yearling Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 12434,3295949,366464,Notable Question Custodian Yearling git Necromancer Nice Answer Enlightened Critic Famous Question Popular Question Good Answer Yearling Good Question Nice Question Nice Answer Yearling Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12435,379814,366464,Notable Question Custodian Yearling git Necromancer Nice Answer Enlightened Critic Famous Question Popular Question Good Answer Yearling Good Question Nice Question Nice Answer Yearling Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12436,77553,634972,Yearling Famous Question Good Question Popular Question Yearling Citizen Patrol Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 12437,118118,1367919,NULL,NULL,NULL,0,NULL,NULL 12438,296436,933827,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12439,2925355,1195864,Scholar Popular Question,NULL,NULL,0,NULL,NULL 12440,42108,273663,Curious Editor Caucus Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 12441,88627,343920,NULL,NULL,NULL,0,NULL,NULL 12442,82383,361936,NULL,NULL,NULL,0,NULL,NULL 12443,107976,315990,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12444,1636372,1443172,NULL,NULL,NULL,0,NULL,NULL 12445,28942,237146,NULL,NULL,NULL,0,NULL,NULL 12446,441632,1212338,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12447,1309349,1054753,NULL,NULL,NULL,0,NULL,NULL 12448,368700,1298686,Student,NULL,NULL,0,NULL,NULL 12449,108468,496725,Yearling,NULL,NULL,0,NULL,NULL 12450,1241551,1425824,NULL,NULL,NULL,0,NULL,NULL 12451,185678,386294,Critic Popular Question Famous Question Yearling Notable Question Caucus Revival Revival,NULL,NULL,0,NULL,NULL 12452,63182,514655,NULL,NULL,NULL,0,NULL,NULL 12453,7808,1485140,Yearling Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12454,137548,1029469,Revival Promoter Benefactor Civic Duty Curious Revival Caucus Necromancer Yearling Nice Answer Announcer Caucus Constituent Custodian Custodian Custodian Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 12455,2578213,404527,NULL,NULL,NULL,0,NULL,NULL 12456,16301,392584,Student Scholar,NULL,NULL,0,NULL,NULL 12457,15857,380135,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12458,162118,380135,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12459,286743,394713,NULL,NULL,NULL,0,NULL,NULL 12460,1026950,909665,NULL,NULL,NULL,0,NULL,NULL 12461,543803,1128305,NULL,NULL,NULL,0,NULL,NULL 12462,78481,1258398,Yearling Popular Question Nice Question Guru Peer Pressure Good Answer Great Question Popular Question Guru Great Question Caucus Constituent Notable Question Nice Answer Yearling Good Answer Nice Question Great Answer Yearling Nice Answer Enlightened Good Question Notable Question,NULL,NULL,0,NULL,NULL 12463,1613178,1258398,Yearling Popular Question Nice Question Guru Peer Pressure Good Answer Great Question Popular Question Guru Great Question Caucus Constituent Notable Question Nice Answer Yearling Good Answer Nice Question Great Answer Yearling Nice Answer Enlightened Good Question Notable Question,NULL,NULL,0,NULL,NULL 12464,1114285,1258398,Yearling Popular Question Nice Question Guru Peer Pressure Good Answer Great Question Popular Question Guru Great Question Caucus Constituent Notable Question Nice Answer Yearling Good Answer Nice Question Great Answer Yearling Nice Answer Enlightened Good Question Notable Question,NULL,NULL,0,NULL,NULL 12465,415692,40164,Popular Question Famous Question Notable Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12466,3032591,977464,Nice Answer Nice Answer Guru Yearling symfony Nice Answer Nice Answer Yearling Necromancer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12467,28701,977464,Nice Answer Nice Answer Guru Yearling symfony Nice Answer Nice Answer Yearling Necromancer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12468,480309,600339,Yearling Nice Answer Commentator Informed Revival Announcer Announcer Editor Yearling Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 12469,83541,751614,NULL,NULL,NULL,0,NULL,NULL 12470,2417284,751614,NULL,NULL,NULL,0,NULL,NULL 12471,1504728,1014868,Notable Question,NULL,NULL,0,NULL,NULL 12472,518849,623975,Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 12473,448116,149057,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12474,149803,183984,Revival Critic Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 12475,5979530,1191042,NULL,NULL,NULL,0,NULL,NULL 12476,114321,163802,NULL,NULL,NULL,0,NULL,NULL 12477,145381,1353627,NULL,NULL,NULL,0,NULL,NULL 12478,406118,201042,Nice Answer Enlightened Nice Answer Nice Answer Yearling Enlightened Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12479,2465539,251115,Famous Question,NULL,NULL,0,NULL,NULL 12480,1404805,1338782,Student,NULL,NULL,0,NULL,NULL 12481,289870,339571,Notable Question,NULL,NULL,0,NULL,NULL 12482,264627,1178800,NULL,NULL,NULL,0,NULL,NULL 12483,2323283,491897,Popular Question Popular Question Tumbleweed Yearling Popular Question Yearling Census Announcer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12484,431669,1311427,Popular Question Notable Question Nice Question Caucus Caucus,NULL,NULL,0,NULL,NULL 12485,198839,164661,NULL,NULL,NULL,0,NULL,NULL 12486,361574,269989,NULL,NULL,NULL,0,NULL,NULL 12487,200999,551988,NULL,NULL,NULL,0,NULL,NULL 12488,26002,1483702,NULL,NULL,NULL,0,NULL,NULL 12489,322197,848121,NULL,NULL,NULL,0,NULL,NULL 12490,752405,1101165,Teacher,NULL,NULL,0,NULL,NULL 12491,254531,100680,Yearling Notable Question Revival,NULL,NULL,0,NULL,NULL 12492,253315,1416054,Informed Autobiographer Teacher Student Scholar Supporter Editor Tumbleweed,NULL,NULL,0,NULL,NULL 12493,76842,1246266,NULL,NULL,NULL,0,NULL,NULL 12494,243776,512625,NULL,NULL,NULL,0,NULL,NULL 12495,216992,49206,Editor Yearling Favorite Question,NULL,NULL,0,NULL,NULL 12496,3877531,466341,NULL,NULL,NULL,0,NULL,NULL 12497,330670,10537,Yearling Editor Critic Yearling Census,NULL,NULL,0,NULL,NULL 12498,68766,1368999,NULL,NULL,NULL,0,NULL,NULL 12499,1050846,1424161,NULL,NULL,NULL,0,NULL,NULL 12500,780575,682012,NULL,NULL,NULL,0,NULL,NULL 12501,10898835,828507,Popular Question Tumbleweed Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12502,725028,828507,Popular Question Tumbleweed Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12503,185206,968342,Nice Question,NULL,NULL,0,NULL,NULL 12504,432196,456737,Nice Question,NULL,NULL,0,NULL,NULL 12505,1387058,1506245,NULL,NULL,NULL,0,NULL,NULL 12506,820738,1296808,NULL,NULL,NULL,0,NULL,NULL 12507,13224,380071,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12508,91734,1441273,NULL,NULL,NULL,0,NULL,NULL 12509,29964,63328,Census,NULL,NULL,0,NULL,NULL 12510,167623,169438,NULL,NULL,NULL,0,NULL,NULL 12511,611330,137171,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12512,262190,540634,NULL,NULL,NULL,0,NULL,NULL 12513,150030,227676,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12514,22462,1022369,NULL,NULL,NULL,0,NULL,NULL 12515,3328244,1022369,NULL,NULL,NULL,0,NULL,NULL 12516,1178801,70716,Necromancer Yearling Guru Good Answer Electorate Necromancer Caucus Census Revival Proofreader Custodian Yearling Famous Question Nice Answer Caucus Constituent Nice Answer Custodian Census Popular Question Yearling Caucus Constituent Good Answer Custodian,NULL,NULL,0,NULL,NULL 12517,75985,592080,Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12518,409253,1400048,Commentator Critic Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 12519,70576,705214,NULL,NULL,NULL,0,NULL,NULL 12520,168360,1055950,NULL,NULL,NULL,0,NULL,NULL 12521,270314,62398,Popular Question Yearling Notable Question Famous Question Disciplined Cleanup Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12522,22237,134448,Yearling,NULL,NULL,0,NULL,NULL 12523,1578859,558669,NULL,NULL,NULL,0,NULL,NULL 12524,253197,40896,Notable Question,NULL,NULL,0,NULL,NULL 12525,547189,598683,Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Nice Answer Good Answer python Nice Answer Enlightened Inquisitive Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Popular Question Notable Question django-admin Yearling Good Answer Nice Answer Enlightened Good Answer Popular Question Popular Question Popular Question forms Popular Question Good Answer Nice Answer Popular Question Guru Census Enlightened Yearling Nice Answer Popular Question Notable Question Nice Answer Enlightened Nice Answer Notable Question Popular Question Popular Question Nice Answer Enlightened Good Answer Guru Popular Question Popular Question Guru Nice Answer Enlightened Notable Question Popular Question,NULL,How to access parameters in an ngrx effect in Angular angular ngrx pI have http service call that requires two parameters when dispatched ppre code export class InvoiceService getInvoice invoiceNumber string zipCode string Observable lt Invoice gt code prepHow do subsequently pass those two parameters to codethis invoiceService getInvoice code in my Effect ppre code export class InvoiceEffects getInvoice this actions ofType InvoiceActions GET INVOICE switchMap gt this invoiceService getInvoice need params here map invoice gt return this invoiceActions getInvoiceResult invoice code pre brand new to ngrx so please bear with me In this case haven set any values into the store yet making service call to obtain the data want to store in state Should perhaps pass the parameters as the payload of my getInvoice action How to access parameters in an ngrx effect in Angular angular ngrx pI have http service call that requires two parameters when dispatched ppre code export class InvoiceService getInvoice invoiceNumber string zipCode string Observable lt Invoice gt code prepHow do subsequently pass those two parameters to codethis invoiceService getInvoice code in my Effect ppre code export class InvoiceEffects getInvoice this actions ofType InvoiceActions GET INVOICE switchMap gt this invoiceService getInvoice need params here map invoice gt return this invoiceActions getInvoiceResult invoice code pre At least on the right track Would you know of an example or documentation on how can access the payload,1,How to access parameters in an ngrx effect in Angular angular ngrx pI have http service call that requires two parameters when dispatched ppre code export class InvoiceService getInvoice invoiceNumber string zipCode string Observable lt Invoice gt code prepHow do subsequently pass those two parameters to codethis invoiceService getInvoice code in my Effect ppre code export class InvoiceEffects getInvoice this actions ofType InvoiceActions GET INVOICE switchMap gt this invoiceService getInvoice need params here map invoice gt return this invoiceActions getInvoiceResult invoice code pre,NULL 12526,243749,479107,NULL,NULL,NULL,0,NULL,NULL 12527,1101434,826716,Yearling Yearling Caucus Custodian Announcer Caucus Yearling Announcer Announcer Announcer Necromancer Announcer Student Scholar Yearling,NULL,NULL,0,NULL,NULL 12528,829766,442642,Great Question Yearling Famous Question Favorite Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12529,37393,65359,Yearling Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling ruby-on-rails Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12530,453635,645618,NULL,NULL,NULL,0,NULL,NULL 12531,399432,251892,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12532,4096,668921,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 12533,167359,528103,NULL,NULL,NULL,0,NULL,NULL 12534,14729,77859,Yearling Yearling Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 12535,774872,1113701,Popular Question,NULL,NULL,0,NULL,NULL 12536,429443,469620,NULL,NULL,NULL,0,NULL,NULL 12537,4973572,964126,NULL,NULL,NULL,0,NULL,NULL 12538,365577,1445808,NULL,NULL,NULL,0,NULL,NULL 12539,926899,144784,NULL,NULL,NULL,0,NULL,NULL 12540,96131,852562,Popular Question Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12541,12955,1188245,NULL,NULL,NULL,0,NULL,NULL 12542,292733,1275298,NULL,NULL,NULL,0,NULL,NULL 12543,292500,1387675,NULL,NULL,NULL,0,NULL,NULL 12544,125168,599252,NULL,NULL,NULL,0,NULL,NULL 12545,44557,1220653,Popular Question Necromancer Popular Question Nice Question Notable Question Popular Question Yearling Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 12546,340078,1203255,NULL,NULL,NULL,0,NULL,NULL 12547,678016,399601,NULL,NULL,NULL,0,NULL,NULL 12548,275098,194319,Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Notable Question Notable Question Famous Question Popular Question Famous Question Famous Question Popular Question Notable Question Citizen Patrol Notable Question Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 12549,168759,1083129,NULL,NULL,NULL,0,NULL,NULL 12550,433395,901714,NULL,NULL,NULL,0,NULL,NULL 12551,336896,1560384,NULL,NULL,NULL,0,NULL,NULL 12552,249909,796988,NULL,NULL,NULL,0,NULL,NULL 12553,143276,610251,NULL,NULL,NULL,0,NULL,NULL 12554,711365,768477,NULL,NULL,NULL,0,NULL,NULL 12555,741828,1163561,Necromancer Enthusiast Critic Yearling Census Caucus Constituent,NULL,NULL,0,NULL,NULL 12556,198840,849308,NULL,NULL,NULL,0,NULL,NULL 12557,1109626,1408520,NULL,NULL,NULL,0,NULL,NULL 12558,120478,1418990,NULL,NULL,NULL,0,NULL,NULL 12559,1500,879159,NULL,NULL,NULL,0,NULL,NULL 12560,210777,815937,NULL,NULL,NULL,0,NULL,NULL 12561,153129,270483,Yearling Popular Question Custodian Famous Question Notable Question Popular Question Yearling Notable Question Famous Question Good Question Popular Question Nice Question Notable Question Famous Question Popular Question Census Nice Question Nice Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 12562,535515,1362858,Popular Question Popular Question Peer Pressure Notable Question Popular Question Critic Notable Question Popular Question Popular Question Teacher Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 12563,118330,981494,Revival Yearling,NULL,NULL,0,NULL,NULL 12564,547145,308686,Yearling Critic,NULL,NULL,0,NULL,NULL 12565,149235,1238448,NULL,NULL,NULL,0,NULL,NULL 12566,184759,57698,Nice Question Notable Question Famous Question Yearling Nice Question Popular Question Favorite Question Popular Question Notable Question Revival Nice Question Good Question Nice Question Nice Answer Great Question Notable Question Popular Question Popular Question Good Answer Yearling Census Popular Question Good Question Famous Question Nice Question Nice Question Notable Question Notable Question Necromancer Notable Question Nice Question Notable Question c# Documentation User Stellar Question Census Yearling Great Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12567,148163,901072,NULL,NULL,NULL,0,NULL,NULL 12568,2835300,6023,Revival Notable Question Nice Question Yearling Critic Popular Question Documentation User Revival,NULL,NULL,0,NULL,NULL 12569,70353,1062565,Necromancer,NULL,NULL,0,NULL,NULL 12570,248541,115849,Yearling,NULL,NULL,0,NULL,NULL 12571,100541,468630,NULL,NULL,NULL,0,NULL,NULL 12572,416667,589884,NULL,NULL,NULL,0,NULL,NULL 12573,3595774,250431,NULL,NULL,NULL,0,NULL,NULL 12574,317198,250431,NULL,NULL,NULL,0,NULL,NULL 12575,24106,146821,Necromancer Notable Question Nice Answer Popular Question Notable Question Famous Question Nice Answer Popular Question Popular Question Nice Answer Nice Question Nice Question Favorite Question Yearling Notable Question Good Answer Popular Question Great Answer Popular Question Popular Question Nice Answer Enlightened Good Question Nice Answer Famous Question Notable Question Notable Question Popular Question Revival Yearling Good Answer Nice Answer Documentation User Necromancer Notable Question Notable Question Notable Question Notable Question Famous Question Yearling Necromancer Great Question Guru Famous Question Notable Question,NULL,NULL,0,NULL,NULL 12576,24120,146821,Necromancer Notable Question Nice Answer Popular Question Notable Question Famous Question Nice Answer Popular Question Popular Question Nice Answer Nice Question Nice Question Favorite Question Yearling Notable Question Good Answer Popular Question Great Answer Popular Question Popular Question Nice Answer Enlightened Good Question Nice Answer Famous Question Notable Question Notable Question Popular Question Revival Yearling Good Answer Nice Answer Documentation User Necromancer Notable Question Notable Question Notable Question Notable Question Famous Question Yearling Necromancer Great Question Guru Famous Question Notable Question,NULL,NULL,0,NULL,NULL 12577,297969,954003,NULL,NULL,NULL,0,NULL,NULL 12578,347469,1236032,NULL,NULL,NULL,0,NULL,NULL 12579,54934,991562,NULL,NULL,NULL,0,NULL,NULL 12580,7902,451914,Necromancer,NULL,NULL,0,NULL,NULL 12581,302546,1424555,NULL,NULL,NULL,0,NULL,NULL 12582,908845,867873,NULL,NULL,NULL,0,NULL,NULL 12583,1672271,1104974,Notable Question Editor,NULL,NULL,0,NULL,NULL 12584,2719,601583,NULL,NULL,NULL,0,NULL,NULL 12585,861914,461857,NULL,NULL,NULL,0,NULL,NULL 12586,157573,213371,Notable Question Popular Question Notable Question Self-Learner Yearling Popular Question Notable Question Notable Question Nice Question Notable Question Nice Answer Nice Answer Yearling Popular Question Famous Question Necromancer Yearling Popular Question Good Answer Popular Question Good Question Nice Question Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 12587,154695,396572,NULL,NULL,NULL,0,NULL,NULL 12588,309991,1148867,NULL,NULL,NULL,0,NULL,NULL 12589,338221,1233767,Popular Question Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 12590,255801,567853,NULL,NULL,NULL,0,NULL,NULL 12591,1419375,567853,NULL,NULL,NULL,0,NULL,NULL 12592,410363,1305244,NULL,NULL,NULL,0,NULL,NULL 12593,14622,564252,Curious Popular Question,NULL,,0,, 12594,291045,417385,Famous Question Informed Nice Question Yearling Caucus Constituent Necromancer Nice Answer Civic Duty Custodian Yearling Famous Question Good Question Caucus Constituent Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 12595,401180,790057,NULL,NULL,NULL,0,NULL,NULL 12596,237488,1417405,NULL,NULL,NULL,0,NULL,NULL 12597,395147,269778,Nice Question Popular Question Curious Famous Question Yearling Custodian Commentator Notable Question Popular Question,NULL,NULL,0,NULL,NULL 12598,181399,360303,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 12599,2974696,194480,Famous Question Notable Question Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 12600,654938,330851,Popular Question Census,NULL,NULL,0,NULL,NULL 12601,1127394,1562586,Good Answer,NULL,NULL,0,NULL,NULL 12602,1006370,936839,NULL,NULL,NULL,0,NULL,NULL 12603,1064888,736232,NULL,NULL,NULL,0,NULL,NULL 12604,52218,123558,Notable Question Yearling Revival Notable Question Good Question Popular Question Good Question Yearling Self-Learner Announcer Nice Answer Enlightened Notable Question Good Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 12605,432027,626946,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12606,455042,649662,NULL,NULL,NULL,0,NULL,NULL 12607,2228133,649662,NULL,NULL,NULL,0,NULL,NULL 12608,504468,1008938,Good Answer ios Self-Learner objective-c Guru Nice Answer Nice Answer Necromancer Nice Question Nice Answer Enlightened Yearling ruby Guru Caucus Good Answer Nice Answer Enlightened Popular Question Popular Question Guru Famous Question Nice Answer Enlightened python Famous Question Notable Question Documentation User Yearling Notable Question Good Answer Nice Answer Good Answer Good Answer Famous Question Nice Answer Great Answer Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 12609,25423,352340,Notable Question,NULL,NULL,0,NULL,NULL 12610,1937273,1157449,NULL,NULL,NULL,0,NULL,NULL 12611,101211,1419924,Supporter Nice Answer Enlightened Yearling Yearling Revival Commentator Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12612,34663,103289,NULL,NULL,NULL,0,NULL,NULL 12613,8524064,494204,Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12614,384490,196891,NULL,NULL,NULL,0,NULL,NULL 12615,1512583,1322258,NULL,NULL,NULL,0,NULL,NULL 12616,1520855,91137,NULL,NULL,NULL,0,NULL,NULL 12617,4718,549403,NULL,NULL,NULL,0,NULL,NULL 12618,7525116,1107992,Altruist Caucus Necromancer Revival,NULL,NULL,0,NULL,NULL 12619,7133,1107992,Altruist Caucus Necromancer Revival,NULL,NULL,0,NULL,NULL 12620,989691,1472193,Tumbleweed Revival Necromancer Revival Caucus Critic Yearling Census Caucus Constituent Necromancer,NULL,NULL,0,NULL,NULL 12621,359783,1439233,NULL,NULL,NULL,0,NULL,NULL 12622,230120,667153,NULL,NULL,NULL,0,NULL,NULL 12623,116703,1173808,NULL,NULL,NULL,0,NULL,NULL 12624,97321,398582,Yearling Good Answer Popular Question Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12625,412681,1203825,Notable Question Critic Yearling,NULL,NULL,0,NULL,NULL 12626,227139,1048697,node.js Nice Answer Nice Answer Notable Question Announcer Yearling Custodian Informed Announcer Investor Altruist Announcer Caucus Announcer Documentation User Yearling Census Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12627,135494,928752,Nice Answer Notable Question Yearling Census Caucus,NULL,NULL,0,NULL,NULL 12628,1253351,1286688,Enthusiast Necromancer Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 12629,96065,631535,Notable Question Yearling,NULL,NULL,0,NULL,NULL 12630,418046,967434,NULL,NULL,NULL,0,NULL,NULL 12631,1502754,609755,Tumbleweed Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12632,48338,771564,Civic Duty Informed Caucus Nice Question Constituent Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 12633,1234658,845,Nice Question,NULL,NULL,0,NULL,NULL 12634,1506552,1024357,NULL,NULL,NULL,0,NULL,NULL 12635,105046,880485,NULL,NULL,NULL,0,NULL,NULL 12636,1565818,1209788,NULL,NULL,NULL,0,NULL,NULL 12637,480500,628809,NULL,NULL,NULL,0,NULL,NULL 12638,87656,1302359,NULL,NULL,NULL,0,NULL,NULL 12639,481549,20869,Notable Question Good Answer Nice Answer Tumbleweed Yearling Good Answer Nice Question Famous Question Popular Question Caucus Yearling Tenacious Notable Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 12640,391825,961972,Yearling Famous Question,NULL,NULL,0,NULL,NULL 12641,216235,147221,NULL,NULL,NULL,0,NULL,NULL 12642,14383,786261,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12643,37015,258445,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 12644,893957,626822,NULL,NULL,NULL,0,NULL,NULL 12645,375230,1096306,NULL,NULL,NULL,0,NULL,NULL 12646,2246,1049053,NULL,NULL,NULL,0,NULL,NULL 12647,582147,497784,Announcer Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 12648,137806,1388866,Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Caucus Constituent Yearling Popular Question Popular Question Popular Question Famous Question Caucus Constituent Good Question Yearling Custodian Custodian Caucus Constituent Good Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 12649,1440,155332,Civic Duty Yearling Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 12650,457820,1459871,NULL,NULL,NULL,0,NULL,NULL 12651,28148,49380,Famous Question Nice Question Popular Question Yearling Good Question Necromancer Popular Question Good Answer Famous Question Yearling Census Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 12652,203987,217895,Critic Announcer Nice Answer Enlightened Caucus Custodian,NULL,NULL,0,NULL,NULL 12653,41574,142406,Proofreader Civic Duty Excavator Great Question Tumbleweed Yearling Reviewer Famous Question Caucus Constituent Nice Answer Enthusiast Notable Question Yearling Self-Learner Nice Answer Enlightened Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 12654,1580719,92606,Yearling Good Answer Nice Answer Nice Answer Enlightened Famous Question Yearling Favorite Question Nice Answer Enlightened Yearling Great Question,NULL,NULL,0,NULL,NULL 12655,1120921,1008903,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12656,432227,955366,Yearling Caucus Famous Question Yearling Documentation User Commentator Good Question,NULL,NULL,0,NULL,NULL 12657,58032,375050,Yearling Necromancer Notable Question Revival Yearling Nice Answer Popular Question Yearling Good Answer Popular Question Revival Notable Question Yearling Nice Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 12658,1278713,1439843,Yearling Necromancer Yearling Announcer Nice Answer Necromancer Announcer Civic Duty Announcer Announcer Self-Learner Good Answer Announcer,NULL,pTry codeR CMD check as cran foo tar gz code ppThe new code as cran code option gathers few of these together this was discussed on devel ppAlso few weeks before 15 came out added this to code check Renviron code These are documented in the Internals manual ppre code See Internals manual CHECK CRAN INCOMING TRUE CHECK FORCE SUGGESTS FALSE CHECK VC DIRS TRUE CHECK UNSAFE CALLS TRUE CHECK TIMINGS 10 CHECK INSTALL DEPENDS TRUE CHECK SUGGESTS ONLY TRUE CHECK NO RECOMMENDED TRUE CHECK SUBDIRS NOCASE TRUE CHECK EXECUTABLES EXCLUSIONS FALSE CHECK LICENSE TRUE CHECK DOC SIZES2 TRUE CHECK CODETOOLS PROFILE suppressPartialMatchArgs false CHECK VIGNETTES NLINES 50 CHECK DOT INTERNAL TRUE code pre CHECK CRAN INCOMING TRUE this explains why didn get spell check reports,0,NULL,NULL 12659,157214,430413,NULL,NULL,NULL,0,NULL,NULL 12660,24522,125083,Yearling Custodian actionscript-3 Yearling Announcer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 12661,1524160,790387,Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Guru python-3.x Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Great Answer Nice Question virtualenv Yearling Nice Answer Guru Good Answer Nice Answer Good Answer Great Answer Guru Famous Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Guru list Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Good Answer csv Nice Answer Enlightened Nice Answer Good Answer string Generalist Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling python-2.7 Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened Good Answer Populist Good Answer Good Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Documentation User Good Answer Great Answer Good Answer Nice Answer Enlightened macos Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Census Nice Answer Enlightened Nice Answer Enlightened Announcer shell Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Caucus Constituent Good Answer Necromancer heroku Good Answer Nice Answer Guru Good Answer Guru Enlightened Nice Answer Necromancer Yearling Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer windows Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Great Answer file Good Answer Nice Answer forms Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 12662,230577,790387,Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Guru python-3.x Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Great Answer Nice Question virtualenv Yearling Nice Answer Guru Good Answer Nice Answer Good Answer Great Answer Guru Famous Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Guru list Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Good Answer csv Nice Answer Enlightened Nice Answer Good Answer string Generalist Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling python-2.7 Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened Good Answer Populist Good Answer Good Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Documentation User Good Answer Great Answer Good Answer Nice Answer Enlightened macos Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Census Nice Answer Enlightened Nice Answer Enlightened Announcer shell Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Caucus Constituent Good Answer Necromancer heroku Good Answer Nice Answer Guru Good Answer Guru Enlightened Nice Answer Necromancer Yearling Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer windows Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Great Answer file Good Answer Nice Answer forms Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 12663,101959,1350667,NULL,NULL,NULL,0,NULL,NULL 12664,161292,1556323,Nice Answer,NULL,NULL,0,NULL,NULL 12665,107884,1434784,NULL,NULL,NULL,0,NULL,NULL 12666,104001,40257,Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 12667,722469,21980,Yearling Yearling Editor Scholar Yearling,NULL,NULL,0,NULL,NULL 12668,90689,825603,NULL,NULL,NULL,0,NULL,NULL 12669,5802,244313,Yearling Nice Answer Enlightened Popular Question Necromancer Yearling Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 12670,15122,300900,Critic Yearling,NULL,NULL,0,NULL,NULL 12671,198635,937128,Student,NULL,NULL,0,NULL,NULL 12672,480287,1250489,NULL,NULL,NULL,0,NULL,NULL 12673,988291,858352,NULL,NULL,NULL,0,NULL,NULL 12674,165318,1126598,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 12675,152880,986257,NULL,NULL,NULL,0,NULL,NULL 12676,1504109,1140208,NULL,NULL,NULL,0,NULL,NULL 12677,1472453,926154,NULL,NULL,NULL,0,NULL,NULL 12678,389593,161234,Revival Yearling,NULL,NULL,0,NULL,NULL 12679,161429,306657,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12680,1203576,1027786,NULL,NULL,NULL,0,NULL,NULL 12681,217486,457310,NULL,NULL,NULL,0,NULL,NULL 12682,218698,149427,Nice Answer Informed Autobiographer,NULL,NULL,0,NULL,NULL 12683,307657,986741,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 12684,6278,160313,Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer transactions Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Documentation User Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer groovy Yearling grails-plugin Good Answer Good Answer,NULL,NULL,0,NULL,NULL 12685,6766887,450756,Yearling Notable Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 12686,540489,450756,Yearling Notable Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 12687,310467,1068420,Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Yearling Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Socratic Popular Question Notable Question Nice Question Popular Question Popular Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12688,38708,474701,Popular Question Popular Question Nice Question Nice Question Popular Question Inquisitive Popular Question Notable Question Famous Question Nice Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12689,1104405,474701,Popular Question Popular Question Nice Question Nice Question Popular Question Inquisitive Popular Question Notable Question Famous Question Nice Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12690,36994,1227125,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12691,312756,835462,Teacher,NULL,NULL,0,NULL,NULL 12692,116504,294647,NULL,NULL,NULL,0,NULL,NULL 12693,1928862,480613,NULL,NULL,NULL,0,NULL,NULL 12694,90325,435904,Nice Question Yearling Caucus Constituent Taxonomist Census Nice Answer Great Answer Good Answer Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 12695,851318,774346,Tumbleweed,NULL,NULL,0,NULL,NULL 12696,232976,462794,Teacher Yearling Investor Altruist Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Promoter Benefactor Famous Question Famous Question Notable Question Inquisitive Nice Question Popular Question Popular Question Custodian Notable Question Peer Pressure Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12697,11835,137794,Good Answer Enlightened Guru Nice Answer Enlightened Yearling Revival Good Answer Guru Good Answer Necromancer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Caucus Strunk & White jupyter Custodian Revival jupyter-notebook Documentation User Guru Necromancer Good Answer Great Answer python Guru Revival ipython Yearling Guru Guru Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 12698,2032458,1499250,NULL,NULL,NULL,0,NULL,NULL 12699,371683,306481,NULL,NULL,NULL,0,NULL,NULL 12700,208637,1137642,Informed Student,NULL,NULL,0,NULL,NULL 12701,384325,1105234,NULL,NULL,NULL,0,NULL,NULL 12702,499172,780399,Yearling,NULL,NULL,0,NULL,NULL 12703,175174,1479964,Yearling Popular Question Yearling Popular Question Guru Census Yearling,NULL,NULL,0,NULL,NULL 12704,511275,1161287,Commentator Yearling,NULL,NULL,0,NULL,NULL 12705,208417,718291,Editor Revival Critic Yearling Revival Custodian Student Yearling Commentator,NULL,NULL,0,NULL,NULL 12706,2181992,547987,Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12707,249321,547987,Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12708,371770,683240,NULL,NULL,NULL,0,NULL,NULL 12709,81076,1091432,NULL,NULL,NULL,0,NULL,NULL 12710,312476,459881,Famous Question Autobiographer Popular Question Popular Question Yearling Nice Question Great Answer Yearling Popular Question Suffrage Electorate Yearling Announcer,NULL,NULL,0,NULL,NULL 12711,12879,17815,Guru Popular Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Guru Yearling Famous Question Nice Question Popular Question Notable Question Guru Nice Answer Good Answer Nice Answer Enlightened Great Answer Popular Question Caucus Yearling Nice Answer Necromancer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 12712,47892,549150,NULL,NULL,NULL,0,NULL,NULL 12713,211423,136586,Teacher Editor Revival Popular Question,NULL,NULL,0,NULL,NULL 12714,380516,244728,Revival Notable Question Notable Question Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 12715,25471,720768,Popular Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 12716,2947,114328,NULL,NULL,NULL,0,NULL,NULL 12717,75412,1064547,NULL,NULL,NULL,0,NULL,NULL 12718,80261,373610,NULL,NULL,NULL,0,NULL,NULL 12719,3800944,720595,Editor,NULL,NULL,0,NULL,NULL 12720,489278,720595,Editor,NULL,NULL,0,NULL,NULL 12721,372738,175602,Famous Question Teacher,NULL,NULL,0,NULL,NULL 12722,9216671,982157,NULL,NULL,NULL,0,NULL,NULL 12723,1517235,982157,NULL,NULL,NULL,0,NULL,NULL 12724,318293,488175,NULL,NULL,NULL,0,NULL,NULL 12725,9094,11596,Custodian Popular Question Good Answer Popular Question Stellar Question Great Answer Yearling Nice Answer Favorite Question Popular Question Populist Nice Answer Yearling Guru Caucus Nice Question Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 12726,1090503,11596,Custodian Popular Question Good Answer Popular Question Stellar Question Great Answer Yearling Nice Answer Favorite Question Popular Question Populist Nice Answer Yearling Guru Caucus Nice Question Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 12727,110635,198437,Popular Question Self-Learner Yearling Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 12728,751171,1507430,Editor Scholar Student,NULL,NULL,0,NULL,NULL 12729,1193799,1138071,NULL,NULL,NULL,0,NULL,NULL 12730,86279,549140,Informed Necromancer,NULL,NULL,0,NULL,NULL 12731,256333,767046,Commentator Autobiographer Yearling Informed Custodian Custodian Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 12732,419243,1084826,Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 12733,603910,471669,NULL,NULL,NULL,0,NULL,NULL 12734,19333,1020470,Necromancer Announcer Necromancer Announcer Necromancer Necromancer Quorum Nice Answer Nice Answer Yearling Caucus Pundit Constituent Announcer Organizer Tag Editor Census Custodian Announcer Necromancer Announcer Caucus Announcer Constituent Nice Answer Nice Answer Enlightened Popular Question Announcer Announcer Yearling Announcer Announcer Revival Necromancer Nice Answer Enlightened Caucus Announcer Necromancer Constituent Announcer Notable Question Good Answer Nice Answer Revival Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 12735,138551,1170088,NULL,NULL,NULL,0,NULL,NULL 12736,222496,37815,Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Enlightened Good Answer Guru Nice Answer Enlightened Yearling Good Answer Custodian Guru Great Answer Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 12737,22323,351839,NULL,NULL,NULL,0,NULL,NULL 12738,595733,1214303,NULL,NULL,NULL,0,NULL,NULL 12739,532588,567655,Supporter,NULL,NULL,0,NULL,NULL 12740,273681,465976,NULL,NULL,NULL,0,NULL,NULL 12741,158589,23324,Nice Answer Necromancer Yearling Nice Answer Self-Learner Yearling Popular Question macos Necromancer Yearling,NULL,NULL,0,NULL,NULL 12742,2719684,301442,NULL,NULL,NULL,0,NULL,NULL 12743,15681,301442,NULL,NULL,NULL,0,NULL,NULL 12744,108829,168776,Famous Question Nice Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12745,257806,468392,Good Question Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 12746,3490042,579606,Good Question,NULL,NULL,0,NULL,NULL 12747,200498,579606,Good Question,NULL,NULL,0,NULL,NULL 12748,1564102,148591,Popular Question,NULL,NULL,0,NULL,NULL 12749,337525,689364,NULL,NULL,NULL,0,NULL,NULL 12750,39611,93434,NULL,NULL,NULL,0,NULL,NULL 12751,45548,735,Yearling Caucus Revival Caucus Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 12752,26298,166997,Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 12753,107652,411200,Popular Question,NULL,NULL,0,NULL,NULL 12754,3942161,213719,Nice Question Popular Question Popular Question Notable Question Yearling Caucus Excavator Revival Necromancer Popular Question Good Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 12755,46705,317118,Yearling Supporter,NULL,NULL,0,NULL,NULL 12756,1187072,702508,NULL,NULL,NULL,0,NULL,NULL 12757,309391,236953,NULL,NULL,NULL,0,NULL,NULL 12758,20834,772227,NULL,NULL,NULL,0,NULL,NULL 12759,846573,729914,NULL,NULL,NULL,0,NULL,NULL 12760,642411,1085570,Nice Answer Popular Question Notable Question Good Answer Famous Question Popular Question Yearling Nice Question Popular Question Nice Question Good Question Great Answer Necromancer Announcer Nice Answer Notable Question Yearling Notable Question Notable Question Necromancer Good Answer,NULL,NULL,0,NULL,NULL 12761,101685,1261602,NULL,NULL,NULL,0,NULL,NULL 12762,32627,7503,Yearling,NULL,NULL,0,NULL,NULL 12763,164405,811107,NULL,NULL,NULL,0,NULL,NULL 12764,871,352568,NULL,NULL,NULL,0,NULL,NULL 12765,4759111,302441,Great Question Commentator Teacher Yearling Supporter Yearling Curious Revival Popular Question,NULL,NULL,0,NULL,NULL 12766,122698,276406,NULL,NULL,NULL,0,NULL,NULL 12767,475277,319381,Yearling Enthusiast Revival Necromancer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 12768,79493,301414,NULL,NULL,NULL,0,NULL,NULL 12769,8718365,390139,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12770,7331091,390139,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12771,332125,390139,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12772,80855,305559,Favorite Question Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 12773,19932,507169,Organizer Necromancer Yearling Custodian Informed Custodian Revival Announcer Guru Yearling Necromancer Excavator Announcer Yearling,NULL,NULL,0,NULL,NULL 12774,7199585,968218,Nice Question Famous Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 12775,160755,947563,Autobiographer Editor Excavator,NULL,NULL,0,NULL,NULL 12776,149412,912718,Popular Question,NULL,NULL,0,NULL,NULL 12777,7068,953,Yearling Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12778,296318,351410,Famous Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Custodian Notable Question Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 12779,426990,239839,NULL,NULL,NULL,0,NULL,NULL 12780,63424,407678,Notable Question,NULL,NULL,0,NULL,NULL 12781,5832,333776,Necromancer Announcer,NULL,NULL,0,NULL,NULL 12782,788078,296308,Famous Question Yearling Nice Answer Enlightened Nice Answer Yearling Nice Question Nice Answer Famous Question Famous Question Good Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 12783,208172,574240,Yearling Informed Caucus Yearling Necromancer Popular Question Nice Question Yearling Caucus Nice Answer Revival Good Question Popular Question,NULL,NULL,0,NULL,NULL 12784,373421,258950,Commentator Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 12785,3461906,1324634,NULL,NULL,NULL,0,NULL,NULL 12786,1191639,1158989,NULL,NULL,NULL,0,NULL,NULL 12787,697893,1349403,Nice Question Critic Yearling Popular Question Nice Question Notable Question Notable Question Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 12788,13607,120278,Good Answer Popular Question Yearling Guru Good Question Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12789,118,513875,Custodian Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Yearling Nice Answer Enlightened Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 12790,207920,888720,NULL,NULL,NULL,0,NULL,NULL 12791,660822,308118,Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Yearling Guru Guru Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 12792,1799266,308118,Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Yearling Guru Guru Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 12793,460175,356436,Popular Question,NULL,NULL,0,NULL,NULL 12794,748825,605928,NULL,NULL,NULL,0,NULL,NULL 12795,122067,1524905,Popular Question,NULL,NULL,0,NULL,NULL 12796,402015,1234192,NULL,NULL,NULL,0,NULL,NULL 12797,59306,720912,Good Answer Guru Guru Yearling Guru Nice Answer Enlightened Nice Answer Pundit Revival Nice Answer Nice Answer Nice Answer Enlightened Guru Yearling internet-explorer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 12798,1311529,13534,Civic Duty Custodian Necromancer Census Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 12799,348015,542256,Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 12800,43767,694047,NULL,NULL,NULL,0,NULL,NULL 12801,385766,923934,Nice Answer Notable Question Popular Question Yearling Notable Question Notable Question Populist Yearling Citizen Patrol Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 12802,89545,153872,Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 12803,791283,598805,Yearling Popular Question Peer Pressure Popular Question Popular Question Good Question Notable Question Custodian Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12804,1331471,986720,Curious Custodian Necromancer Yearling Announcer Excavator Announcer Popular Question Necromancer Nice Answer,NULL,pFor capturing groups used to using codepreg match all code in PHP and ve tried to replicate it functionality here ppre code lt script gt Return all pattern matches with captured groupsRegExp prototype execAll function string var match null var matches new Array while match this exec string var matchArray for in match if parseInt matchArray push match matches push matchArray return matches Examplevar someTxt abc123 def456 ghi890 var results execAll someTxt Output abc123 123 def456 456 ghi890 890 lt script gt code pre You have to reset the lastIndex to zero before starting the loop this lastIndex,0,NULL,NULL 12805,1256774,4628,NULL,NULL,NULL,0,NULL,NULL 12806,83987,524211,Notable Question Yearling,NULL,NULL,0,NULL,NULL 12807,2284564,524211,Notable Question Yearling,NULL,NULL,0,NULL,NULL 12808,93038,534395,Teacher,NULL,NULL,0,NULL,NULL 12809,1108759,1419491,NULL,NULL,,0,, 12810,1869875,1318736,NULL,NULL,NULL,0,NULL,NULL 12811,601028,1450016,NULL,NULL,NULL,0,NULL,NULL 12812,288043,751469,NULL,NULL,NULL,0,NULL,NULL 12813,789857,417776,Popular Question,NULL,NULL,0,NULL,NULL 12814,1033287,1022929,NULL,NULL,NULL,0,NULL,NULL 12815,1047283,604681,Teacher,NULL,NULL,0,NULL,NULL 12816,302009,605714,NULL,NULL,NULL,0,NULL,NULL 12817,3284595,220450,NULL,NULL,NULL,0,NULL,NULL 12818,855132,709606,Popular Question,NULL,NULL,0,NULL,NULL 12819,573941,681534,NULL,NULL,NULL,0,NULL,NULL 12820,233529,1083791,NULL,NULL,NULL,0,NULL,NULL 12821,576693,48998,Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12822,4402930,48998,Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12823,326789,699653,NULL,NULL,NULL,0,NULL,NULL 12824,422073,196852,Enthusiast Autobiographer Yearling Revival Organizer Popular Question Yearling Revival Popular Question Yearling Custodian Tenacious Curious Yearling Custodian Unsung Hero Census Mortarboard Caucus Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 12825,116581,138854,NULL,NULL,NULL,0,NULL,NULL 12826,399743,249045,NULL,NULL,NULL,0,NULL,NULL 12827,440166,794051,NULL,NULL,NULL,0,NULL,NULL 12828,322919,753160,Custodian Custodian Guru Custodian Yearling Yearling Caucus Announcer Yearling Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 12829,1067061,1336927,NULL,NULL,NULL,0,NULL,NULL 12830,342905,977553,NULL,NULL,NULL,0,NULL,NULL 12831,103265,178396,Popular Question Nice Answer Good Answer Yearling Enlightened Popular Question Good Answer Nice Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 12832,307294,602868,NULL,NULL,NULL,0,NULL,NULL 12833,281172,461183,Critic,NULL,NULL,0,NULL,NULL 12834,91593,1036401,NULL,NULL,NULL,0,NULL,NULL 12835,400082,1194196,NULL,NULL,NULL,0,NULL,NULL 12836,187038,517424,Yearling,NULL,NULL,0,NULL,NULL 12837,100324,83982,Notable Question Yearling Nice Question Yearling Nice Answer Enlightened Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12838,141394,225956,Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 12839,622737,731494,NULL,NULL,NULL,0,NULL,NULL 12840,772011,1453182,NULL,NULL,NULL,0,NULL,NULL 12841,580686,1202703,Yearling Caucus Yearling Popular Question Popular Question Popular Question Popular Question Nice Answer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12842,428418,982768,NULL,NULL,NULL,0,NULL,NULL 12843,294332,982768,NULL,NULL,NULL,0,NULL,NULL 12844,461242,749061,NULL,NULL,NULL,0,NULL,NULL 12845,8001,1335320,NULL,NULL,NULL,0,NULL,NULL 12846,315313,537190,NULL,NULL,NULL,0,NULL,NULL 12847,817338,302920,Popular Question,NULL,NULL,0,NULL,NULL 12848,357159,606553,NULL,NULL,NULL,0,NULL,NULL 12849,1518810,946570,NULL,NULL,NULL,0,NULL,NULL 12850,179478,1050649,NULL,NULL,NULL,0,NULL,NULL 12851,887351,1050649,NULL,NULL,NULL,0,NULL,NULL 12852,262346,1028474,NULL,NULL,NULL,0,NULL,NULL 12853,927282,1342640,Tumbleweed,NULL,NULL,0,NULL,NULL 12854,35163,846706,NULL,NULL,NULL,0,NULL,NULL 12855,73931,193267,Good Answer Nice Question Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 12856,279182,910850,NULL,NULL,NULL,0,NULL,NULL 12857,322879,700925,NULL,NULL,NULL,0,NULL,NULL 12858,329435,3876,NULL,NULL,NULL,0,NULL,NULL 12859,264922,523445,NULL,NULL,NULL,0,NULL,NULL 12860,1060512,793633,Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 12861,772015,842952,NULL,NULL,NULL,0,NULL,NULL 12862,306685,442223,NULL,NULL,NULL,0,NULL,NULL 12863,6534094,712508,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12864,351247,1231893,NULL,NULL,NULL,0,NULL,NULL 12865,190917,139089,Good Question Great Question Popular Question Famous Question Favorite Question Notable Question Yearling Popular Question Nice Answer Popular Question Popular Question Nice Question Nice Question Yearling Famous Question Popular Question Favorite Question Famous Question Nice Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 12866,200518,984230,NULL,NULL,NULL,0,NULL,NULL 12867,3295457,984230,NULL,NULL,NULL,0,NULL,NULL 12868,18902,793235,Supporter Announcer,NULL,NULL,0,NULL,NULL 12869,182783,669780,Popular Question,NULL,NULL,0,NULL,NULL 12870,11018478,316167,NULL,NULL,NULL,0,NULL,NULL 12871,648951,316167,NULL,NULL,NULL,0,NULL,NULL 12872,10576585,316167,NULL,NULL,NULL,0,NULL,NULL 12873,10144,1464065,NULL,NULL,NULL,0,NULL,NULL 12874,42451,399311,NULL,NULL,NULL,0,NULL,NULL 12875,62383,1533034,Teacher Informed Autobiographer,NULL,NULL,0,NULL,NULL 12876,1112469,24804,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 12877,2956359,1208935,NULL,NULL,NULL,0,NULL,NULL 12878,7799,678708,Yearling Nice Answer Enlightened Popular Question Nice Answer Notable Question Yearling Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 12879,48449,944933,NULL,NULL,NULL,0,NULL,NULL 12880,51258,1024682,NULL,NULL,NULL,0,NULL,NULL 12881,328682,876937,javascript Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Tumbleweed Popular Question Yearling Good Answer Notable Question Announcer Popular Question Nice Answer Enlightened Popular Question Yearling Good Answer Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12882,328055,181900,NULL,NULL,NULL,0,NULL,NULL 12883,304220,1508973,NULL,NULL,NULL,0,NULL,NULL 12884,639741,689110,NULL,NULL,NULL,0,NULL,NULL 12885,34640,386181,NULL,NULL,NULL,0,NULL,NULL 12886,26077,199649,Notable Question Stellar Question Nice Question Nice Question Good Answer Famous Question Great Answer Yearling Nice Answer Good Question Notable Question Populist Popular Question Popular Question Nice Question Notable Question Yearling Good Question Nice Answer Custodian Custodian Populist Notable Question Famous Question Necromancer Populist Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 12887,23612,405013,Notable Question Popular Question Excavator Popular Question Good Question Famous Question Good Question Good Question Notable Question Popular Question Nice Answer Popular Question Necromancer Revival Notable Question Good Question Informed Yearling Famous Question Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Nice Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Nice Question Nice Question Good Question Caucus Yearling Popular Question Popular Question Popular Question Notable Question Great Answer Popular Question Popular Question Famous Question Favorite Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 12888,82185,308412,NULL,NULL,NULL,0,NULL,NULL 12889,143698,135707,NULL,NULL,NULL,0,NULL,NULL 12890,832892,122587,NULL,NULL,NULL,0,NULL,NULL 12891,7695,505974,NULL,NULL,NULL,0,NULL,NULL 12892,196718,963506,Supporter,NULL,NULL,0,NULL,NULL 12893,435484,1163318,Yearling Editor Good Answer,NULL,NULL,0,NULL,NULL 12894,370896,1333235,NULL,NULL,NULL,0,NULL,NULL 12895,13166,969508,NULL,NULL,NULL,0,NULL,NULL 12896,310941,1429992,NULL,NULL,NULL,0,NULL,NULL 12897,31680,1374930,Enthusiast,NULL,NULL,0,NULL,NULL 12898,207573,48696,Caucus Yearling Good Question Great Question Yearling Custodian,NULL,NULL,0,NULL,NULL 12899,914833,777101,NULL,NULL,NULL,0,NULL,NULL 12900,453043,424555,Guru Yearling Yearling Popular Question Autobiographer Caucus Tumbleweed Scholar Commentator Census Informed Yearling Popular Question,NULL,NULL,0,NULL,NULL 12901,479050,1012240,Custodian Nice Answer Enlightened Yearling Yearling Good Answer Popular Question Nice Answer Announcer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 12902,199134,266817,Editor Necromancer Necromancer Yearling Critic,NULL,NULL,0,NULL,NULL 12903,279718,629644,NULL,NULL,NULL,0,NULL,NULL 12904,73981,360979,Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 12905,279165,669737,Informed Caucus Constituent Caucus Documentation User,NULL,NULL,0,NULL,NULL 12906,291693,985863,NULL,NULL,NULL,0,NULL,NULL 12907,257446,232227,NULL,NULL,NULL,0,NULL,NULL 12908,266694,1431306,NULL,NULL,NULL,0,NULL,NULL 12909,428448,880499,NULL,NULL,NULL,0,NULL,NULL 12910,317003,174523,NULL,NULL,NULL,0,NULL,NULL 12911,823598,384072,NULL,NULL,NULL,0,NULL,NULL 12912,151682,567129,NULL,NULL,NULL,0,NULL,NULL 12913,1496419,748877,NULL,NULL,NULL,0,NULL,NULL 12914,51793,704364,NULL,NULL,NULL,0,NULL,NULL 12915,16243,931754,Yearling Caucus Enthusiast Yearling Caucus Supporter Caucus,NULL,NULL,0,NULL,NULL 12916,298136,636350,Enlightened,NULL,NULL,0,NULL,NULL 12917,80133,1110815,Notable Question Autobiographer Civic Duty Yearling Announcer Nice Answer Yearling Announcer Necromancer Custodian Announcer Announcer Nice Answer Enlightened Announcer Revival Necromancer Yearling Nice Answer Announcer Announcer,NULL,NULL,0,NULL,NULL 12918,25446,901671,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 12919,111716,369680,NULL,NULL,NULL,0,NULL,NULL 12920,124655,787918,Nice Answer Notable Question Yearling Notable Question Great Question Mortarboard Revival Citizen Patrol Favorite Question Enthusiast Yearling Caucus Popular Question Nice Answer Necromancer Nice Answer Enlightened Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 12921,68876,701261,NULL,NULL,NULL,0,NULL,NULL 12922,310162,1549831,NULL,NULL,NULL,0,NULL,NULL 12923,342187,225475,Yearling,NULL,NULL,0,NULL,NULL 12924,489042,524826,NULL,NULL,NULL,0,NULL,NULL 12925,411538,1170887,NULL,NULL,NULL,0,NULL,NULL 12926,107427,752326,NULL,NULL,NULL,0,NULL,NULL 12927,207918,529930,NULL,NULL,NULL,0,NULL,NULL 12928,440707,954132,Editor Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 12929,764239,1160485,Necromancer Commentator Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 12930,219905,701567,Revival,NULL,NULL,0,NULL,NULL 12931,1282701,649277,NULL,NULL,NULL,0,NULL,NULL 12932,112216,855665,Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 12933,38737,779559,NULL,NULL,NULL,0,NULL,NULL 12934,73526,688750,Nice Question,NULL,NULL,0,NULL,NULL 12935,577441,1298019,Yearling Caucus Promoter Benefactor,NULL,NULL,0,NULL,NULL 12936,205584,639465,Yearling Nice Answer Popular Question Yearling Popular Question django,NULL,NULL,0,NULL,NULL 12937,153571,894899,NULL,NULL,NULL,0,NULL,NULL 12938,34183,1236072,Popular Question,NULL,NULL,0,NULL,NULL 12939,75717,1381036,NULL,NULL,NULL,0,NULL,NULL 12940,131118,179138,Nice Question Nice Answer Enlightened Guru Guru Guru Notable Question Nice Answer Nice Answer Enlightened Good Answer Great Answer Necromancer Yearling Caucus Good Answer Guru Notable Question Nice Answer Announcer Good Answer Good Answer Yearling Good Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 12941,394605,724052,NULL,NULL,NULL,0,NULL,NULL 12942,757256,1229157,Revival,NULL,NULL,0,NULL,NULL 12943,130713,1146900,NULL,NULL,NULL,0,NULL,NULL 12944,201204,585798,NULL,NULL,NULL,0,NULL,NULL 12945,161798,190908,Excavator Curious Organizer Yearling Explainer Caucus Notable Question Caucus Announcer Documentation User,NULL,NULL,0,NULL,NULL 12946,310800,54545,Curious Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 12947,693680,757914,NULL,NULL,NULL,0,NULL,NULL 12948,87556,786493,NULL,NULL,NULL,0,NULL,NULL 12949,50187,475880,NULL,NULL,NULL,0,NULL,NULL 12950,2346120,886206,Promoter,NULL,NULL,0,NULL,NULL 12951,160638,1464338,Teacher,NULL,NULL,0,NULL,NULL 12952,1595689,999493,NULL,NULL,NULL,0,NULL,NULL 12953,245913,588185,NULL,NULL,NULL,0,NULL,NULL 12954,155399,936450,Notable Question,NULL,NULL,0,NULL,NULL 12955,609499,857120,NULL,NULL,NULL,0,NULL,NULL 12956,621206,888211,Caucus Custodian,NULL,NULL,0,NULL,NULL 12957,1032242,396278,Necromancer Yearling,NULL,NULL,0,NULL,NULL 12958,36819,1017167,NULL,NULL,NULL,0,NULL,NULL 12959,404307,491040,NULL,NULL,NULL,0,NULL,NULL 12960,11717,771671,NULL,NULL,NULL,0,NULL,NULL 12961,231877,902373,NULL,NULL,NULL,0,NULL,NULL 12962,19067,183753,Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Constituent Popular Question Nice Question Popular Question Yearling Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Caucus Popular Question Nice Question Nice Question Caucus Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 12963,33157,82126,Popular Question Yearling Populist Good Answer,NULL,NULL,0,NULL,NULL 12964,246193,1267398,Notable Question Yearling Notable Question Nice Answer Necromancer Necromancer Nice Answer Enlightened Yearling Popular Question Necromancer Famous Question Populist Necromancer Good Answer Nice Answer Promoter Custodian Yearling Caucus Constituent Notable Question Necromancer Great Answer,NULL,Separation of business logic and data access in django python django model view controller data access layer business logic layer pI am writing project in Django and see that 80 of the code is in the file codemodels py code This code is confusing and after certain time cease to understand what is really happening ppHere is what bothers me polliI find it ugly that my model level which was supposed to beresponsible only for the work with data from database is alsosending email walking on API to other services etc liliAlso find it unacceptable to place business logic in the view becausethis way it becomes difficult to control For example in myapplication there are at least three ways to create newinstances of codeUser code but technically it should create them uniformly liliI do not always notice when the methods andproperties of my models become non deterministic and when they developside effects li olpHere is simple example At first the codeUser code model was like this ppre codeclass User db Models def get present name self return self name or Anonymous def activate self self status activated self save code prepOver time it turned into this ppre codeclass User db Models def get present name self property became non deterministic in terms of database data is taken from another service by api return remote api request user name self uid or Anonymous def activate self method now has side effect send message to user self status activated self save send mail Your account is activated self email code prepWhat want is to separate entities in my code polli strongEntities of my database database level What contains my application strong lili strongEntities of my application business logic level What can make my application strong li olpWhat are the good practices to implement such an approach that can be applied in Django Great question with some fantastic answers,0,NULL,NULL 12965,2681559,691501,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 12966,295514,691501,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 12967,202478,1212308,NULL,NULL,NULL,0,NULL,NULL 12968,22732,1135289,Student,NULL,NULL,0,NULL,NULL 12969,90788,59120,Yearling Yearling Good Answer Good Answer php Yearling Good Answer,NULL,NULL,0,NULL,NULL 12970,3124662,794776,NULL,NULL,NULL,0,NULL,NULL 12971,331050,118032,Yearling Census,NULL,NULL,0,NULL,NULL 12972,90580,1405834,NULL,NULL,NULL,0,NULL,NULL 12973,87112,126626,Famous Question,NULL,NULL,0,NULL,NULL 12974,420218,941031,Popular Question Popular Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 12975,12299,1196256,NULL,NULL,NULL,0,NULL,NULL 12976,1587231,20846,Necromancer Popular Question Famous Question Yearling Famous Question Yearling Excavator Necromancer Good Question Yearling,NULL,NULL,0,NULL,NULL 12977,322186,891847,NULL,NULL,NULL,0,NULL,NULL 12978,244879,1078657,Popular Question,NULL,NULL,0,NULL,NULL 12979,717343,214973,Famous Question Notable Question Famous Question Notable Question Nice Question Yearling Nice Question Nice Question Yearling Nice Question Popular Question Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 12980,428352,716293,NULL,NULL,NULL,0,NULL,NULL 12981,525658,737595,NULL,NULL,NULL,0,NULL,NULL 12982,251038,1512663,NULL,NULL,NULL,0,NULL,NULL 12983,292527,1048127,NULL,NULL,NULL,0,NULL,NULL 12984,1358062,819835,Scholar Supporter Notable Question,NULL,NULL,0,NULL,NULL 12985,328964,170656,Self-Learner Revival Enthusiast Announcer Necromancer Good Answer Great Answer Yearling Nice Answer Enlightened Announcer Nice Answer Good Answer Yearling Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 12986,136762,381200,Notable Question,NULL,NULL,0,NULL,NULL 12987,11898,1034083,Teacher,NULL,NULL,0,NULL,NULL 12988,130382,225237,NULL,NULL,NULL,0,NULL,NULL 12989,221021,396997,Nice Answer Nice Answer Yearling Notable Question Necromancer Popular Question Census Critic Nice Answer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 12990,3683121,703184,NULL,NULL,NULL,0,NULL,NULL 12991,495662,703184,NULL,NULL,NULL,0,NULL,NULL 12992,26614,834640,Informed,NULL,NULL,0,NULL,NULL 12993,412597,157256,Yearling,NULL,NULL,0,NULL,NULL 12994,124751,1383769,NULL,NULL,NULL,0,NULL,NULL 12995,523993,648926,NULL,NULL,NULL,0,NULL,NULL 12996,247370,67731,Yearling Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 12997,215362,311985,Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 12998,194290,1118599,NULL,NULL,NULL,0,NULL,NULL 12999,312314,975132,Great Answer Popular Question Yearling Excavator Tumbleweed Caucus Famous Question Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 13000,35785,50047,NULL,NULL,NULL,0,NULL,NULL 13001,2053623,487014,Critic,NULL,ulli pThere is no interoperable way to encode non ASCII names in codeContent Disposition code href http greenbytes de tech tc2231 rel noreferrer Browser compatibility is mess lili pThe href http greenbytes de tech webdav rfc5987 html rel noreferrer theoretically correct syntax for use of UTF in codeContent Disposition code is very weird codefilename UTF foo c3 a4 code yes that an asterisk and no quotes except an empty single quote in the middle lili pThis header is kinda not quite standard href http www w3 org Protocols rfc2616 rfc2616 sec19 html sec19 rel noreferrer HTTP spec acknowledges its existence but doesn require clients to support it li ulpThere is simple and very robust alternative stronguse URL that contains the filename you want strong ppWhen the name after the last slash is the one you want you don need any extra headers ppThis trick works ppre code real script php fake filename doc code prepAnd if your server supports URL rewriting codemod rewrite code in Apache then you can fully hide the script part ppCharacters in URLs should be in UTF urlencoded byte by byte ppre code mot C3 B6rhead motörhead code pre this is great solution and made me feel kinda stupid on related note remember if the filename comes from user variable you still have to make sure it ready for the filesystem If you don and the file has something like you get really weird browser errors With this answer http superuser com 358861 as reference used replace 000 031,0,NULL,NULL 13002,185091,487014,Critic,NULL,ulli pThere is no interoperable way to encode non ASCII names in codeContent Disposition code href http greenbytes de tech tc2231 rel noreferrer Browser compatibility is mess lili pThe href http greenbytes de tech webdav rfc5987 html rel noreferrer theoretically correct syntax for use of UTF in codeContent Disposition code is very weird codefilename UTF foo c3 a4 code yes that an asterisk and no quotes except an empty single quote in the middle lili pThis header is kinda not quite standard href http www w3 org Protocols rfc2616 rfc2616 sec19 html sec19 rel noreferrer HTTP spec acknowledges its existence but doesn require clients to support it li ulpThere is simple and very robust alternative stronguse URL that contains the filename you want strong ppWhen the name after the last slash is the one you want you don need any extra headers ppThis trick works ppre code real script php fake filename doc code prepAnd if your server supports URL rewriting codemod rewrite code in Apache then you can fully hide the script part ppCharacters in URLs should be in UTF urlencoded byte by byte ppre code mot C3 B6rhead motörhead code pre this is great solution and made me feel kinda stupid on related note remember if the filename comes from user variable you still have to make sure it ready for the filesystem If you don and the file has something like you get really weird browser errors With this answer http superuser com 358861 as reference used replace 000 031,0,NULL,NULL 13003,147527,216488,Nice Answer Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13004,123914,507151,Good Answer Revival Popular Question Notable Question Famous Question Yearling Nice Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 13005,3776,653831,NULL,NULL,NULL,0,NULL,NULL 13006,101781,653831,NULL,NULL,NULL,0,NULL,NULL 13007,2105956,700111,Yearling Civic Duty Caucus Necromancer Yearling Census Caucus Constituent Necromancer Necromancer,NULL,NULL,0,NULL,NULL 13008,331090,373798,Yearling Guru,NULL,NULL,0,NULL,NULL 13009,696006,204048,NULL,NULL,NULL,0,NULL,NULL 13010,50498,113342,Nice Answer Enlightened Yearling Notable Question Yearling Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 13011,22792,228523,NULL,NULL,NULL,0,NULL,NULL 13012,4443854,714260,NULL,NULL,NULL,0,NULL,NULL 13013,11679,714260,NULL,NULL,NULL,0,NULL,NULL 13014,110130,782204,NULL,NULL,NULL,0,NULL,NULL 13015,65003,1086223,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13016,24488,7525,Census,NULL,NULL,0,NULL,NULL 13017,2266571,408160,Revival Announcer Nice Question Notable Question Yearling Critic Commentator Popular Question Enthusiast Announcer Self-Learner Yearling,NULL,NULL,0,NULL,NULL 13018,1029552,928604,NULL,NULL,NULL,0,NULL,NULL 13019,204982,1013576,NULL,NULL,NULL,0,NULL,NULL 13020,7869,182862,Caucus Excavator Caucus,NULL,NULL,0,NULL,NULL 13021,9764,437159,Famous Question,NULL,NULL,0,NULL,NULL 13022,702210,715949,NULL,NULL,NULL,0,NULL,NULL 13023,564070,655000,NULL,NULL,NULL,0,NULL,NULL 13024,204274,743138,NULL,NULL,NULL,0,NULL,NULL 13025,384146,82547,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 13026,112546,816511,NULL,NULL,NULL,0,NULL,NULL 13027,237401,991503,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13028,1332906,1074480,Nice Answer Enlightened Yearling Announcer amazon-web-services Yearling Nice Answer Enlightened Citizen Patrol Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 13029,408337,743544,NULL,NULL,NULL,0,NULL,NULL 13030,1970988,650313,NULL,NULL,NULL,0,NULL,NULL 13031,25874,138261,Nice Answer Enlightened Notable Question Yearling Popular Question Nice Answer Enlightened Nice Question Good Answer jquery Good Answer Yearling Notable Question Popular Question Good Answer Good Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 13032,3662909,1426498,NULL,NULL,NULL,0,NULL,NULL 13033,1690555,1426498,NULL,NULL,NULL,0,NULL,NULL 13034,1521607,1260477,NULL,NULL,NULL,0,NULL,NULL 13035,1343409,357020,NULL,NULL,NULL,0,NULL,NULL 13036,3898018,357020,NULL,NULL,NULL,0,NULL,NULL 13037,319443,365843,Yearling,NULL,NULL,0,NULL,NULL 13038,158129,233839,Enthusiast Custodian Nice Question,NULL,NULL,0,NULL,NULL 13039,1858969,990159,Informed Necromancer Yearling Nice Answer Self-Learner Yearling Necromancer Good Answer Notable Question Yearling Nice Answer Yearling Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 13040,208875,963475,Nice Question Notable Question Yearling Notable Question Self-Learner Custodian Yearling,NULL,NULL,0,NULL,NULL 13041,457649,882518,NULL,NULL,NULL,0,NULL,NULL 13042,507348,2876,Yearling,NULL,NULL,0,NULL,NULL 13043,38759,1076207,Revival Custodian Custodian Custodian Suffrage Vox Populi Excavator Yearling Yearling Civic Duty Yearling Tenacious Nice Answer Good Answer Yearling ruby Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13044,12787,1288670,Student Teacher,NULL,NULL,0,NULL,NULL 13045,79042,798723,NULL,NULL,NULL,0,NULL,NULL 13046,651596,963078,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13047,104677,1170939,NULL,NULL,NULL,0,NULL,NULL 13048,66183,414088,NULL,NULL,NULL,0,NULL,NULL 13049,1019212,414088,NULL,NULL,NULL,0,NULL,NULL 13050,159106,497646,Popular Question,NULL,NULL,0,NULL,NULL 13051,1122648,170554,Custodian Custodian,NULL,NULL,0,NULL,NULL 13052,779850,1035823,NULL,NULL,NULL,0,NULL,NULL 13053,44006,902207,Custodian Notable Question Nice Answer Enlightened Favorite Question Notable Question Nice Question Notable Question Yearling Good Question Notable Question Nice Question Famous Question Announcer Great Question Good Question Good Answer Yearling Famous Question Good Question Great Answer Popular Question Taxonomist Excavator Promoter Benefactor Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13054,319639,1545234,NULL,NULL,NULL,0,NULL,NULL 13055,382859,847536,Teacher Supporter Census Census,NULL,NULL,0,NULL,NULL 13056,63930,139766,Notable Question Famous Question Popular Question Great Question Nice Answer Yearling Popular Question Good Question Popular Question Favorite Question Famous Question Nice Question Notable Question Yearling Nice Answer Good Question Nice Answer Famous Question Yearling Guru Guru,NULL,NULL,0,NULL,NULL 13057,1054719,1218601,Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13058,33482,843539,NULL,NULL,NULL,0,NULL,NULL 13059,1050723,589975,NULL,NULL,NULL,0,NULL,NULL 13060,261581,1434270,NULL,NULL,NULL,0,NULL,NULL 13061,445378,735433,NULL,NULL,NULL,0,NULL,NULL 13062,168990,657347,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13063,95076,181707,Yearling Famous Question Enthusiast Nice Question Popular Question Notable Question Nice Answer Popular Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 13064,103257,175584,Announcer Yearling Announcer Necromancer Nice Answer Announcer Yearling Custodian Custodian Necromancer Announcer Yearling Announcer Civic Duty Announcer Great Answer Necromancer Good Answer Necromancer Announcer Yearling Necromancer Nice Answer,NULL,pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it There is further SO answer https stackoverflow com 948397 175584 that explains that simple is the default config value so beginners don mess things up Therefore for more advanced usage setting it to current then makes sense as it simple mode with the addition of creating an upstream branch if doesn exist pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it Yes it will work without but then it would not be tracking the upsteam branch for any changes depends whether you care about that or not pAs of git version 13 git supports href https git scm com docs git config includes rel noreferrer conditional configuration includes In this example we clone Company repos in code company code directory and Company repos in code company code ppIn your code gitconfig code you can put something like this ppre code includeIf gitdir company path gitconfig company includeIf gitdir company path gitconfig company code prepExample contents of gitconfig company ppre code user name John Smithemail john smith net code prepExample contents of gitconfig company ppre code user name John Smithemail js com code pre you need to install git 13 Ubuntu 16 04 has git Get the latest version of git via Git PPA https launchpad net git core archive ubuntu ppa and it will work,0,NULL,NULL 13065,1343135,899272,NULL,NULL,NULL,0,NULL,NULL 13066,30195,417198,Good Question,NULL,NULL,0,NULL,NULL 13067,330100,625326,NULL,NULL,NULL,0,NULL,NULL 13068,759027,910712,Revival Popular Question,NULL,NULL,0,NULL,NULL 13069,106014,482506,Favorite Question Nice Question Nice Answer Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Nice Answer Stellar Question Nice Answer Notable Question Popular Question Nice Answer Nice Question Great Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Yearling Guru Notable Question Notable Question Nice Answer Enlightened Good Answer Notable Question Popular Question Nice Answer Enlightened Famous Question Notable Question Great Question Nice Question Nice Answer Popular Question Famous Question Notable Question Good Answer Popular Question Good Question Popular Question Nice Answer Enlightened Famous Question Nice Answer Nice Answer Yearling Nice Answer Enlightened Notable Question Notable Question Popular Question Famous Question Custodian Nice Answer Enlightened Notable Question Necromancer Notable Question Popular Question Nice Answer Enlightened Famous Question Nice Question Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 13070,541835,843333,NULL,NULL,NULL,0,NULL,NULL 13071,126190,19687,Popular Question Good Answer Yearling Census Yearling Great Answer Famous Question Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 13072,342068,1067717,Nice Answer Enlightened Revival Proofreader Caucus Constituent Yearling Custodian Caucus Necromancer Necromancer Nice Answer Custodian Good Answer Yearling Nice Answer Enlightened Caucus Constituent Great Answer Yearling,NULL,pEDIT codeTHREE Curve create code has been deprecated See href https stackoverflow com questions 42934609 extrude 3d shape from three line object in three js 42955930 42955930 this answer for the new pattern to follow phrpTo create your own curve class sub class of codeTHREE Curve code here is the pattern to follow ppre codeMyCurve THREE Curve create define the constructor args optional function points this points points this myProperty add property if you want define the getPoint function function return new THREE Vector3 flesh this out code prepIn your case you can duplicate codeSplineCurve3 code you just need to change the codegetPoint code function To do so you can replace this ppre code THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight code prepwith simple linear interpolation ppre code copy pt1 lerp pt2 weight code prepthree js 60 My implementation of TRHEE Path3 based on your comment in Typescript https gist github com calvin ffc992a541d2e12b7936911c0ef989b4,0,NULL,NULL 13073,89505,1067717,Nice Answer Enlightened Revival Proofreader Caucus Constituent Yearling Custodian Caucus Necromancer Necromancer Nice Answer Custodian Good Answer Yearling Nice Answer Enlightened Caucus Constituent Great Answer Yearling,NULL,pEDIT codeTHREE Curve create code has been deprecated See href https stackoverflow com questions 42934609 extrude 3d shape from three line object in three js 42955930 42955930 this answer for the new pattern to follow phrpTo create your own curve class sub class of codeTHREE Curve code here is the pattern to follow ppre codeMyCurve THREE Curve create define the constructor args optional function points this points points this myProperty add property if you want define the getPoint function function return new THREE Vector3 flesh this out code prepIn your case you can duplicate codeSplineCurve3 code you just need to change the codegetPoint code function To do so you can replace this ppre code THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight THREE Curve Utils interpolate pt0 pt1 pt2 pt3 weight code prepwith simple linear interpolation ppre code copy pt1 lerp pt2 weight code prepthree js 60 My implementation of TRHEE Path3 based on your comment in Typescript https gist github com calvin ffc992a541d2e12b7936911c0ef989b4,0,NULL,NULL 13074,253261,314679,NULL,NULL,NULL,0,NULL,NULL 13075,948196,1509214,Popular Question Notable Question Popular Question Popular Question Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13076,35739,586706,Yearling Nice Answer Good Answer Notable Question Great Question Notable Question Notable Question Guru Nice Question Good Answer Yearling Famous Question Popular Question Good Question Popular Question Notable Question Nice Question Yearling Nice Answer Famous Question Good Question Great Answer,NULL,NULL,0,NULL,NULL 13077,427158,992391,Investor Altruist Popular Question Nice Question Famous Question Popular Question Famous Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13078,306433,240361,Popular Question Yearling,NULL,NULL,0,NULL,NULL 13079,172909,1114067,NULL,NULL,NULL,0,NULL,NULL 13080,1510359,1244044,Notable Question Nice Answer Enlightened Nice Answer Caucus,NULL,NULL,0,NULL,NULL 13081,476490,899207,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13082,41374,1357678,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13083,293155,708659,NULL,NULL,NULL,0,NULL,NULL 13084,155982,143515,NULL,NULL,NULL,0,NULL,NULL 13085,1136167,970354,NULL,NULL,NULL,0,NULL,NULL 13086,79204,970354,NULL,NULL,NULL,0,NULL,NULL 13087,142700,258700,NULL,NULL,NULL,0,NULL,NULL 13088,555399,59877,Yearling Famous Question Yearling Yearling Favorite Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 13089,218935,376821,Good Answer Yearling Nice Question Famous Question Stellar Question Good Question Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 13090,31125,242123,Yearling Nice Answer Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 13091,3450918,493906,Notable Question,NULL,NULL,0,NULL,NULL 13092,470490,1247136,Revival Excavator Famous Question Necromancer Yearling Nice Answer Announcer Disciplined Good Question Yearling,NULL,NULL,0,NULL,NULL 13093,627320,1284750,NULL,NULL,NULL,0,NULL,NULL 13094,2479339,1284750,NULL,NULL,NULL,0,NULL,NULL 13095,139247,753986,NULL,NULL,NULL,0,NULL,NULL 13096,885756,408259,Popular Question Supporter Scholar,NULL,NULL,0,NULL,NULL 13097,235856,1394081,NULL,NULL,NULL,0,NULL,NULL 13098,1015074,368864,Nice Answer Favorite Question Nice Answer Enlightened Notable Question Popular Question Great Question Notable Question Nice Answer Notable Question Popular Question Nice Answer Yearling Nice Answer Enlightened Favorite Question Good Answer html Famous Question Notable Question Yearling Notable Question Popular Question Announcer Popular Question Notable Question Notable Question Documentation User Nice Answer Nice Question Good Answer Famous Question Good Answer Good Answer Revival Nice Question Yearling Good Answer Great Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 13099,270935,1410685,NULL,NULL,NULL,0,NULL,NULL 13100,365707,906619,NULL,NULL,NULL,0,NULL,NULL 13101,311268,89508,Guru Notable Question Famous Question Yearling Necromancer Caucus Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 13102,408784,767290,NULL,NULL,NULL,0,NULL,NULL 13103,556912,1256137,Popular Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13104,1200809,1168822,NULL,NULL,NULL,0,NULL,NULL 13105,2097911,510547,Yearling,NULL,NULL,0,NULL,NULL 13106,1481017,663269,Census,NULL,NULL,0,NULL,NULL 13107,114516,1382355,Enthusiast,NULL,NULL,0,NULL,NULL 13108,300420,1251119,Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 13109,646543,881347,Notable Question,NULL,NULL,0,NULL,NULL 13110,679399,516137,NULL,NULL,NULL,0,NULL,NULL 13111,580735,600954,Critic,NULL,NULL,0,NULL,NULL 13112,46664,15088,Nice Question Revival,NULL,NULL,0,NULL,NULL 13113,485267,1420529,NULL,NULL,NULL,0,NULL,NULL 13114,85129,809606,Notable Question Yearling Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13115,59899,21475,Popular Question Famous Question Nice Answer Popular Question Good Answer Nice Answer Great Answer Revival Necromancer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Popular Question Yearling Good Answer Announcer Caucus Good Answer Constituent Popular Question Nice Answer Nice Answer Guru Good Question Nice Question Custodian Custodian Census Guru Notable Question Nice Answer Nice Answer Nice Question Great Answer Good Answer Nice Answer Good Answer Announcer Good Answer Good Answer Guru Good Answer Caucus Booster Nice Question Good Answer Constituent Popular Question Guru Yearling Popular Question Nice Answer Announcer Announcer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Question Census Nice Answer Caucus Great Answer Nice Answer string Necromancer Great Answer Popular Question Nice Answer Enlightened c++11 Notable Question Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 13116,158884,107385,Popular Question,NULL,NULL,0,NULL,NULL 13117,1339361,1247714,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13118,30448,1067294,NULL,NULL,NULL,0,NULL,NULL 13119,258009,311126,NULL,NULL,NULL,0,NULL,NULL 13120,179689,14873,Popular Question Yearling Notable Question Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 13121,314963,156995,NULL,NULL,NULL,0,NULL,NULL 13122,1955366,1473547,NULL,NULL,NULL,0,NULL,NULL 13123,190141,1118434,NULL,NULL,NULL,0,NULL,NULL 13124,222704,100663,NULL,NULL,NULL,0,NULL,NULL 13125,903732,252505,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 13126,237303,355937,NULL,NULL,NULL,0,NULL,NULL 13127,253616,675386,NULL,NULL,NULL,0,NULL,NULL 13128,100228,280657,NULL,NULL,NULL,0,NULL,NULL 13129,1032786,633234,Yearling Nice Answer Popular Question Necromancer Good Answer Nice Answer Nice Answer Excavator Nice Answer Self-Learner Popular Question Necromancer Yearling Necromancer Caucus Popular Question Popular Question Documentation User Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13130,100349,810530,NULL,NULL,NULL,0,NULL,NULL 13131,70976,586978,Nice Answer,NULL,NULL,0,NULL,NULL 13132,83686,498080,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 13133,913249,23744,Good Answer Good Answer Good Answer Guru Nice Answer Yearling Nice Question Nice Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Guru Guru Great Answer Good Answer Good Answer Announcer Nice Answer Good Answer Populist Popular Question Guru Nice Answer Yearling Good Answer Nice Answer Enlightened Cleanup Custodian Nice Answer Great Answer Yearling,NULL,pYou can implement your own trap function that automatically passes the signal to the function ppre codetrap with arg func shift for sig do trap func sig sig done trap with arg func trap INT TERM EXIT code prepThe first argument to func trap will be the name of the signal It is explicity documented as far as know but have look at help trap or the man page anyway It is just consequence of how arg is evaluated when it is executed Bash does not document exactly how arg is executed but if you look at the posix shell docs http pubs opengroup org onlinepubs 007904975 utilities trap html it tells you is equivalent to eval arg pYou can implement your own trap function that automatically passes the signal to the function ppre codetrap with arg func shift for sig do trap func sig sig done trap with arg func trap INT TERM EXIT code prepThe first argument to func trap will be the name of the signal this is documented in the bash man page under Compound Commands where the for command is documented or you can run help for at bash command line where it is also described Also in my previous comment now un editable meant to say not explicitly documented pUse codeiptables code to list the chain redirecting stdout stderr to code dev null code and check the exit code If the chain exists codeiptables code will exit true ppThis shell function is from my iptables front end script ppre codechain exists lt gt amp amp echo Usage chain exists lt chain name gt table gt amp return local chain name shift eq amp amp local table table iptables table list chain name gt dev null gt amp code prepNote that use the code code option so that iptables does not try to resolve IP addresses to hostnames Without this you ll find this function would be slow ppYou can then use this function to conditionally create chain ppre codechain exists foo create chain foo code prepwhere codecreate chain code is another function to create the chain You could call codeiptables code directly but the above naming makes it quite obvious what is going on iptables have fixed this thanks table look at the line above and you ll see table already contains table did it this way so that table is either empty or table table since the table is optional and you don want table if there is no table argument,0,NULL,NULL 13134,1242677,247328,Yearling Guru Necromancer Nice Answer Yearling Custodian Custodian Yearling Explainer,NULL,NULL,0,NULL,NULL 13135,215080,237987,NULL,NULL,NULL,0,NULL,NULL 13136,448,205844,NULL,NULL,NULL,0,NULL,NULL 13137,4318183,205844,NULL,NULL,NULL,0,NULL,NULL 13138,1529592,1272766,NULL,NULL,NULL,0,NULL,NULL 13139,22163,845225,Popular Question Yearling Great Answer Popular Question Notable Question Excavator Yearling Popular Question Nice Question Yearling,NULL,pInspired by the solutions described in the thread mentioned by abstracted the recursion functionality href https github com marklagendijk angular recursion into service ppre codemodule factory RecursionHelper compile function compile return Manually compiles the element fixing the recursion loop element link post link function or an object with function registered via pre and post properties An object containing the linking functions compile function element link Normalize the link parameter if angular isFunction link link post link Break the recursion loop by removing the contents var contents element contents remove var compiledContents return pre link amp amp link pre link pre null Compiles and re adds the contents post function scope element Compile the contents if compiledContents compiledContents compile contents Re add the compiled contents to the element compiledContents scope function clone element append clone Call the post linking function if any if link amp amp link post link post apply null arguments code prepWhich is used as follows ppre codemodule directive tree RecursionHelper function RecursionHelper return restrict scope family template lt gt family name lt gt lt ul gt lt li ng repeat child in family children gt lt tree family child gt lt tree gt lt li gt lt ul gt compile function element Use the compile function from the RecursionHelper And return the linking function which it returns return RecursionHelper compile element code prepSee this href http plnkr co edit JAIyolmqPqO9KsynSiZp preview Plunker for demo like this solution best because polliYou don need an special directive which makes your html less clean liliThe recursion logic is abstracted away into the RecursionHelper service so you keep your directives clean li ol just created Gist referencing to this code https gist github com decklord 26037e31f7b0ad7bb5c7806296ed63b3,0,NULL,NULL 13140,184698,738679,Yearling Yearling Critic Yearling Excavator,NULL,NULL,0,NULL,NULL 13141,103958,1310274,NULL,NULL,NULL,0,NULL,NULL 13142,17439,265383,Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13143,2235,1411639,NULL,NULL,NULL,0,NULL,NULL 13144,1378308,647517,Famous Question,NULL,NULL,0,NULL,NULL 13145,489993,873589,NULL,NULL,NULL,0,NULL,NULL 13146,205478,477314,NULL,NULL,NULL,0,NULL,NULL 13147,32568,380289,Popular Question Good Answer Custodian Nice Question Nice Question Yearling Popular Question Famous Question Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 13148,759063,422913,Popular Question,NULL,NULL,0,NULL,NULL 13149,966986,1522457,NULL,NULL,NULL,0,NULL,NULL 13150,890000,362013,NULL,NULL,NULL,0,NULL,NULL 13151,199546,2729,Nice Question Guru Guru Good Question Yearling Nice Answer Notable Question Good Answer Yearling Nice Answer Yearling,NULL,,0,, 13152,106942,1198455,Yearling Nice Question Notable Question Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13153,9545755,1198455,Yearling Nice Question Notable Question Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13154,275106,843625,NULL,NULL,NULL,0,NULL,NULL 13155,123899,26779,NULL,NULL,NULL,0,NULL,NULL 13156,156592,804985,Yearling Nice Question,NULL,NULL,0,NULL,NULL 13157,100892,689436,NULL,NULL,NULL,0,NULL,NULL 13158,1562059,925203,NULL,NULL,NULL,0,NULL,NULL 13159,29921,514866,Nice Answer Citizen Patrol Civic Duty Caucus Yearling Famous Question Yearling Necromancer Necromancer Caucus Custodian Nice Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13160,1233942,708395,Documentation User Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 13161,172892,266278,Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13162,162794,988957,Custodian Citizen Patrol Informed Yearling Custodian Custodian Announcer Nice Answer Enlightened Tag Editor Caucus Constituent Yearling Nice Question Announcer Famous Question Good Answer,NULL,NULL,0,NULL,NULL 13163,220178,83833,Nice Question Notable Question Good Question Yearling Notable Question Notable Question Caucus Documentation User Revival Custodian Good Question Yearling,NULL,NULL,0,NULL,NULL 13164,264205,223440,Nice Answer Enlightened Self-Learner Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Famous Question java Famous Question Nice Answer Yearling Notable Question Guru Good Answer,NULL,NULL,0,NULL,NULL 13165,746514,1209622,Popular Question Caucus,NULL,NULL,0,NULL,NULL 13166,201765,1161276,NULL,NULL,NULL,0,NULL,NULL 13167,195621,570548,Necromancer Famous Question Popular Question Nice Question Popular Question Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 13168,185885,286821,NULL,NULL,NULL,0,NULL,NULL 13169,128334,364071,Scholar,NULL,NULL,0,NULL,NULL 13170,18936,494954,Notable Question Notable Question Popular Question Notable Question Yearling Good Question Popular Question Nice Question Famous Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 13171,2205456,494954,Notable Question Notable Question Popular Question Notable Question Yearling Good Question Popular Question Nice Question Famous Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 13172,12254,1152679,Editor Excavator Caucus Constituent Announcer Caucus Documentation User Census Announcer Critic,NULL,NULL,0,NULL,NULL 13173,218611,1170981,NULL,NULL,NULL,0,NULL,NULL 13174,149234,559901,NULL,NULL,NULL,0,NULL,NULL 13175,27923,63166,Revival Yearling Necromancer Nice Question,NULL,NULL,0,NULL,NULL 13176,287475,283032,Nice Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 13177,255136,1008965,NULL,NULL,NULL,0,NULL,NULL 13178,17905,413317,Notable Question Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 13179,258800,191842,Famous Question Good Question,NULL,NULL,0,NULL,NULL 13180,372659,1306115,NULL,NULL,NULL,0,NULL,NULL 13181,112258,797247,NULL,NULL,NULL,0,NULL,NULL 13182,126095,270329,NULL,NULL,NULL,0,NULL,NULL 13183,87715,592699,Good Question,NULL,NULL,0,NULL,NULL 13184,315377,39044,Necromancer Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13185,1173778,847673,NULL,NULL,NULL,0,NULL,NULL 13186,65552,791247,Yearling Revival Yearling Great Answer Editor Yearling,NULL,NULL,0,NULL,NULL 13187,9479588,1462224,Popular Question Notable Question Popular Question Yearling Notable Question Self-Learner Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Famous Question Caucus Nice Question Yearling Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13188,8113263,860793,Custodian Student Teacher,NULL,NULL,0,NULL,NULL 13189,172959,860793,Custodian Student Teacher,NULL,NULL,0,NULL,NULL 13190,10218,166597,Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 13191,76148,220114,NULL,NULL,NULL,0,NULL,NULL 13192,65403,277524,Necromancer Notable Question Yearling Critic Nice Answer Yearling Census Caucus Commentator Good Answer,NULL,NULL,0,NULL,NULL 13193,87504,701231,Popular Question,NULL,NULL,0,NULL,NULL 13194,1042680,681090,NULL,NULL,NULL,0,NULL,NULL 13195,1503496,1093329,NULL,NULL,NULL,0,NULL,NULL 13196,904840,880668,NULL,NULL,NULL,0,NULL,NULL 13197,192608,917934,NULL,NULL,NULL,0,NULL,NULL 13198,2077660,731614,Yearling Yearling Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 13199,518579,1560938,NULL,NULL,NULL,0,NULL,NULL 13200,12202,567158,NULL,NULL,NULL,0,NULL,NULL 13201,397224,969105,NULL,NULL,NULL,0,NULL,NULL 13202,189250,265277,Yearling Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 13203,186014,395062,Yearling,NULL,NULL,0,NULL,NULL 13204,196040,113347,Good Answer ruby Favorite Question Guru Yearling Popular Question Good Question Yearling Popular Question Great Answer Stellar Question Informed Notable Question Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13205,1322077,273162,Famous Question Custodian Teacher Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13206,94344,899681,NULL,NULL,NULL,0,NULL,NULL 13207,98525,497441,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 13208,6923614,917912,NULL,NULL,NULL,0,NULL,NULL 13209,74033,303661,Yearling Good Question,NULL,NULL,0,NULL,NULL 13210,118185,271139,Yearling Notable Question Notable Question Yearling Great Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 13211,46593,1191621,NULL,NULL,NULL,0,NULL,NULL 13212,184316,1520008,Popular Question,NULL,NULL,0,NULL,NULL 13213,129814,239816,Nice Answer Necromancer Self-Learner Organizer Nice Question Tenacious swift Good Answer Nice Answer Curious Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Popular Question Good Answer Notable Question Nice Question Good Question Mortarboard Good Answer Necromancer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Census Nice Answer Good Answer Popular Question Necromancer Revival ios Good Answer,NULL,NULL,0,NULL,NULL 13214,1524488,959936,Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Question Nice Question Good Question Famous Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Notable Question Caucus Notable Question Famous Question Good Question Notable Question Famous Question Notable Question Caucus Notable Question Popular Question Popular Question Yearling Notable Question Custodian Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Question Nice Question Nice Question Notable Question Popular Question Yearling Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 13215,275572,918170,Popular Question,NULL,NULL,0,NULL,NULL 13216,18096,502540,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 13217,512552,440087,NULL,NULL,NULL,0,NULL,NULL 13218,22193,510098,NULL,NULL,NULL,0,NULL,NULL 13219,7496729,1026296,NULL,NULL,NULL,0,NULL,NULL 13220,113224,734220,NULL,NULL,NULL,0,NULL,NULL 13221,150584,58005,Yearling Necromancer Tumbleweed Citizen Patrol Yearling Necromancer Nice Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 13222,469886,1326773,Disciplined Famous Question Popular Question,NULL,NULL,0,NULL,NULL 13223,704745,1262231,Popular Question,NULL,NULL,0,NULL,NULL 13224,182041,1262231,Popular Question,NULL,NULL,0,NULL,NULL 13225,2951884,1262231,Popular Question,NULL,NULL,0,NULL,NULL 13226,622752,135775,Caucus Critic,NULL,NULL,0,NULL,NULL 13227,556935,703225,Popular Question Yearling Revival Notable Question Announcer Necromancer Yearling Necromancer Custodian Necromancer Notable Question Yearling Caucus Constituent Announcer Revival Announcer Nice Answer Nice Answer Necromancer Yearling Announcer Revival Announcer Nice Answer Yearling android Nice Answer Revival Good Answer Famous Question Announcer Populist Necromancer Good Answer Caucus Yearling Announcer Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 13228,2758,79525,NULL,NULL,NULL,0,NULL,NULL 13229,248113,566530,Revival Necromancer,NULL,NULL,0,NULL,NULL 13230,32069,333796,Popular Question,NULL,NULL,0,NULL,NULL 13231,126810,671457,Necromancer Popular Question Nice Question Yearling Nice Answer Caucus Constituent Investor Yearling Popular Question Notable Question Revival Announcer Good Answer Caucus Yearling Announcer Announcer Announcer Good Answer Announcer Announcer Custodian Necromancer Custodian Nice Answer,NULL,NULL,0,NULL,NULL 13232,841656,915214,Popular Question,NULL,,0,, 13233,556164,433237,Necromancer,NULL,NULL,0,NULL,NULL 13234,63479,90478,Necromancer Yearling Critic,NULL,NULL,0,NULL,NULL 13235,184895,75613,Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Notable Question Good Question Notable Question Custodian Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 13236,55383,661215,Autobiographer,NULL,NULL,0,NULL,NULL 13237,152956,1200400,Informed Autobiographer Citizen Patrol Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 13238,47072,172865,Yearling Commentator Nice Question,NULL,NULL,0,NULL,NULL 13239,694345,1549736,Necromancer Yearling Caucus Popular Question Caucus Yearling Inquisitive,NULL,NULL,0,NULL,NULL 13240,834564,1555197,NULL,NULL,NULL,0,NULL,NULL 13241,101116,607985,NULL,NULL,NULL,0,NULL,NULL 13242,1101028,449792,Popular Question,NULL,NULL,0,NULL,NULL 13243,910317,788139,NULL,NULL,NULL,0,NULL,NULL 13244,87230,250838,Nice Answer Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 13245,111036,998612,NULL,NULL,NULL,0,NULL,NULL 13246,510059,368328,Notable Question Yearling Favorite Question Nice Answer Popular Question Yearling Notable Question Popular Question Nice Question Yearling Tag Editor Caucus Popular Question Announcer Nice Answer Good Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 13247,80816,319132,Yearling,NULL,NULL,0,NULL,NULL 13248,184983,589491,Revival Notable Question,NULL,NULL,0,NULL,NULL 13249,206882,958146,NULL,NULL,NULL,0,NULL,NULL 13250,98349,789833,NULL,NULL,NULL,0,NULL,NULL 13251,156654,1173919,NULL,NULL,NULL,0,NULL,NULL 13252,321290,740671,NULL,NULL,NULL,0,NULL,NULL 13253,17967,740671,NULL,NULL,NULL,0,NULL,NULL 13254,217133,882616,NULL,NULL,NULL,0,NULL,NULL 13255,100759,473440,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 13256,220225,118224,Yearling Custodian Nice Question Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 13257,154225,856737,NULL,NULL,NULL,0,NULL,NULL 13258,29514,801538,NULL,NULL,NULL,0,NULL,NULL 13259,694398,314920,NULL,NULL,NULL,0,NULL,NULL 13260,142719,161015,Nice Answer,NULL,NULL,0,NULL,NULL 13261,96785,745122,NULL,NULL,NULL,0,NULL,NULL 13262,521271,714414,NULL,NULL,NULL,0,NULL,NULL 13263,602028,1158448,Autobiographer Informed Scholar,NULL,NULL,0,NULL,NULL 13264,827709,958580,Popular Question Caucus Notable Question Yearling Self-Learner Notable Question Necromancer Notable Question Announcer Revival Yearling Nice Question Revival Excavator Custodian Autobiographer Custodian,NULL,NULL,0,NULL,NULL 13265,51843,548149,Necromancer,NULL,NULL,0,NULL,NULL 13266,233104,773252,NULL,NULL,NULL,0,NULL,NULL 13267,253581,1039106,NULL,NULL,NULL,0,NULL,NULL 13268,141137,773142,Notable Question,NULL,NULL,0,NULL,NULL 13269,9997,214330,NULL,NULL,NULL,0,NULL,NULL 13270,44934,693949,NULL,NULL,NULL,0,NULL,NULL 13271,34967,377428,NULL,NULL,NULL,0,NULL,NULL 13272,417469,665124,Nice Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 13273,900152,1208039,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13274,479227,206479,Famous Question Yearling Popular Question Good Answer Notable Question Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 13275,4703346,832119,NULL,NULL,NULL,0,NULL,NULL 13276,874587,421455,Yearling Popular Question,NULL,NULL,0,NULL,NULL 13277,445708,252280,Popular Question Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 13278,254222,252280,Popular Question Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 13279,135491,828712,Yearling,NULL,NULL,0,NULL,NULL 13280,235439,79941,Yearling Good Answer Caucus Civic Duty Notable Question Tag Editor Revival Revival Yearling Popular Question Revival Nice Question Popular Question Nice Question Famous Question Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 13281,750522,183893,Famous Question Popular Question Notable Question Popular Question Yearling Nice Question Good Question Guru Popular Question Popular Question Custodian Famous Question Nice Answer Enlightened Popular Question javascript Famous Question Famous Question Notable Question Good Question Yearling Popular Question Famous Question Self-Learner Nice Answer Enlightened Favorite Question Yearling,NULL,NULL,1,ObservableT is not class derived from ObservableT typescript rxjs5 pWhen trying to extend class from class in codenode modules code the typescript compiler throws error saying pp codeProperty source is protected but type Observable lt gt is not class derived from Observable lt gt code ppThis only happens when the base class is from codenode module code ppThe base class looks like ppre codeimport Observable from rxjs Observable export abstract class TestBase lt gt request options any Observable lt gt return Observable throw new Error TestBase is abstract class Extend it and implement own request method code prepSubclassing it in project ppre codeimport Observable from rxjs Observable import TestBase from core class SocketResponse class Socket request Observable lt SocketResponse gt return new Observable of new SocketResponse export class Sub extends TestBase lt SocketResponse gt request options any Observable lt SocketResponse gt return new Socket request code prepIf the base class codeTestBase code is moved from the codenode module code to the project it self and change the import to look likecodeimport TestBase from base code The error disappears ppIs this due to that the compiles creates the types in different scopes for each module completely lost here pp strongUpdate strong ppThis seems to only happen when linking the codenode modules code with codenpm link code Seems like one possible workaround for the moment is to instead of returning type in the base class to return interface ppMore information can be found here pp href https github com Microsoft TypeScript issues 6496 https github com Microsoft TypeScript issues 6496 pp href https github com ReactiveX rxjs issues 1744 https github com ReactiveX rxjs issues 1744,NULL 13282,173352,1681,Famous Question Nice Question Yearling Famous Question Good Question Nice Question Famous Question Favorite Question Good Question Yearling Famous Question Nice Answer Good Question Nice Answer Yearling Popular Question Electorate,NULL,NULL,0,NULL,NULL 13283,485835,1257631,Yearling Self-Learner Caucus Census Yearling Popular Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 13284,126697,253994,Yearling Great Answer Yearling Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 13285,7655,80589,Notable Question Yearling Nice Question Guru Good Answer Popular Question Popular Question Yearling Popular Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 13286,1036304,950659,NULL,NULL,NULL,0,NULL,NULL 13287,190058,265540,Informed Autobiographer Student Documentation User,NULL,NULL,0,NULL,NULL 13288,689205,1006805,Necromancer Necromancer Popular Question Notable Question Yearling Nice Answer Enlightened Nice Answer Necromancer Yearling Necromancer Good Answer Yearling Necromancer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 13289,448348,834234,NULL,NULL,NULL,0,NULL,NULL 13290,236956,243144,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13291,10930825,1139731,Popular Question,NULL,NULL,0,NULL,NULL 13292,892526,1139731,Popular Question,NULL,NULL,0,NULL,NULL 13293,437206,1058378,NULL,NULL,NULL,0,NULL,NULL 13294,27370,329557,NULL,NULL,NULL,0,NULL,NULL 13295,3676533,1427757,Scholar,NULL,NULL,0,NULL,NULL 13296,143008,968999,Student Commentator Popular Question Critic Editor Notable Question Popular Question Nice Answer Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 13297,244315,1139562,NULL,NULL,NULL,0,NULL,NULL 13298,59793,856550,Yearling,NULL,NULL,0,NULL,NULL 13299,252751,407934,Notable Question Popular Question Notable Question Nice Question Popular Question Good Question Yearling Popular Question Popular Question Documentation User Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question,NULL,What the best way to handle multiple SKScenes ios sprite kit skscene pI made game using the default new game project and then inserted normal UIView as the app intro scene vs since upgraded the intro into using an SKScene with buttons that push the original gameViewController onto the stack It seemed bit laggy once the gameview was loaded so assuming that to do with the overhead of having full skscenes and view controllers even set the landing scene to pause but it will obviously still use memory ppMy question is how can use an SKScene as the landing page with it own LandingViewController and then efficiently add the GameViewController to the stack ve tried merging the view controllers but this seems like stupid way of doing things ppCurrent setup ppre codeLandingViewController LandingSceneGameViewController GameViewScene Other Game Classes code prepApp enters at LandingViewController which inits the LandingScene and landing UI Sprites LandingViewController handles the touch events like buttons etc When new game is tapped GameViewController is pushed currently using Segue and GameViewController inits it scene gamestate UI game board etc GameViewController handles it touch events for it scene When game ends click end game or game over state the GameViewController is popped ppBoth LandingViewController and GameViewController control the flow of their animations and clicks etc so GameViewController does the game logic like next turn end game etc Any help or pointers would be appreciated as would like to do this right The sprites am moving on the GameScene are slower to react and animate This only started once had the views with scenes no reworking the function based on the suggestions of,1,What the best way to handle multiple SKScenes ios sprite kit skscene pI made game using the default new game project and then inserted normal UIView as the app intro scene vs since upgraded the intro into using an SKScene with buttons that push the original gameViewController onto the stack It seemed bit laggy once the gameview was loaded so assuming that to do with the overhead of having full skscenes and view controllers even set the landing scene to pause but it will obviously still use memory ppMy question is how can use an SKScene as the landing page with it own LandingViewController and then efficiently add the GameViewController to the stack ve tried merging the view controllers but this seems like stupid way of doing things ppCurrent setup ppre codeLandingViewController LandingSceneGameViewController GameViewScene Other Game Classes code prepApp enters at LandingViewController which inits the LandingScene and landing UI Sprites LandingViewController handles the touch events like buttons etc When new game is tapped GameViewController is pushed currently using Segue and GameViewController inits it scene gamestate UI game board etc GameViewController handles it touch events for it scene When game ends click end game or game over state the GameViewController is popped ppBoth LandingViewController and GameViewController control the flow of their animations and clicks etc so GameViewController does the game logic like next turn end game etc Any help or pointers would be appreciated as would like to do this right,NULL 13300,33271,1204116,Yearling Good Answer,NULL,NULL,0,NULL,NULL 13301,268348,305088,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 13302,519687,201362,Student,NULL,NULL,0,NULL,NULL 13303,3582489,201362,Student,NULL,NULL,0,NULL,NULL 13304,25388,759418,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13305,883354,1475857,Teacher Supporter Editor Informed Commentator Autobiographer Scholar,NULL,NULL,0,NULL,NULL 13306,37604,1031485,NULL,NULL,NULL,0,NULL,NULL 13307,553255,1059208,NULL,NULL,NULL,0,NULL,NULL 13308,20515,982506,Yearling Nice Question Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 13309,6597,3207,Good Answer Nice Answer Good Answer Popular Question Announcer Necromancer Notable Question Nice Answer Enlightened Popular Question Nice Answer Revival Nice Answer Great Answer Yearling Guru Nice Answer Great Answer Nice Answer Nice Answer Good Answer Notable Question Announcer Great Answer Good Answer Guru Yearling Nice Answer Good Question Good Answer Guru Nice Answer Enlightened Necromancer Yearling Revival Nice Answer Good Answer Famous Question,NULL,pI would use href http docs python org library functools html functools partial rel noreferrer functools partial and href http docs python org library functools html functools wraps rel noreferrer functools wraps ppre codefrom functools import partial wrapsfrom django forms formsets import formset factoryServiceFormSet formset factory wraps ServiceForm partial ServiceForm affiliate request affiliate extra code prepI think this is the cleanest approach and doesn affect ServiceForm in any way by making it difficult to subclass should work with modelformset factory think all the parens are right What kind of trouble are you having,0,NULL,NULL 13310,492608,144604,Popular Question Popular Question Yearling Great Answer Popular Question Yearling Necromancer Custodian Nice Answer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 13311,474350,920885,Popular Question Popular Question Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 13312,445035,399367,Revival Popular Question Popular Question Popular Question django Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Question Yearling Civic Duty Nice Answer Guru Custodian Caucus Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 13313,27399,281199,Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Nice Question Notable Question Popular Question Announcer Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13314,572317,831819,NULL,NULL,NULL,0,NULL,NULL 13315,40406,667106,Necromancer Necromancer Tumbleweed Yearling Good Answer Custodian Yearling Caucus Constituent Nice Answer Custodian Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13316,30773,365798,Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 13317,3685155,365798,Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 13318,332740,1404558,NULL,NULL,NULL,0,NULL,NULL 13319,266369,1199570,Revival,NULL,NULL,0,NULL,NULL 13320,1360931,440445,Popular Question Popular Question Necromancer Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 13321,999569,440445,Popular Question Popular Question Necromancer Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 13322,334200,860812,NULL,NULL,NULL,0,NULL,NULL 13323,208884,1092382,Teacher,NULL,NULL,0,NULL,NULL 13324,258890,334115,NULL,NULL,NULL,0,NULL,NULL 13325,274910,712626,Commentator Citizen Patrol,NULL,NULL,0,NULL,NULL 13326,352841,1532290,NULL,NULL,NULL,0,NULL,NULL 13327,3095334,1185535,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 13328,1516480,1199304,Informed Scholar Teacher Student,NULL,NULL,0,NULL,NULL 13329,334959,1029758,NULL,NULL,NULL,0,NULL,NULL 13330,168477,1237888,Informed Autobiographer,NULL,NULL,0,NULL,NULL 13331,9133,25276,Custodian Announcer,NULL,NULL,0,NULL,NULL 13332,657149,306463,Good Question,NULL,NULL,0,NULL,NULL 13333,217727,1042957,Popular Question,NULL,NULL,0,NULL,NULL 13334,911010,505307,Student Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 13335,5240259,505307,Student Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 13336,1820909,505307,Student Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 13337,1158494,55385,Announcer Yearling Custodian Excavator Custodian Tenacious Organizer Yearling Peer Pressure Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 13338,242239,518921,NULL,NULL,NULL,0,NULL,NULL 13339,245417,239862,NULL,NULL,NULL,0,NULL,NULL 13340,9842,499136,NULL,NULL,NULL,0,NULL,NULL 13341,1884380,1435746,NULL,NULL,NULL,0,NULL,NULL 13342,37905,333272,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 13343,300020,1345115,Autobiographer Yearling Good Answer Caucus Constituent Caucus Documentation User Announcer,NULL,NULL,0,NULL,NULL 13344,3361912,1345115,Autobiographer Yearling Good Answer Caucus Constituent Caucus Documentation User Announcer,NULL,NULL,0,NULL,NULL 13345,9170696,1345115,Autobiographer Yearling Good Answer Caucus Constituent Caucus Documentation User Announcer,NULL,NULL,0,NULL,NULL 13346,338191,222060,NULL,NULL,NULL,0,NULL,NULL 13347,138449,236499,Revival Nice Question Notable Question Famous Question Notable Question Yearling Necromancer Caucus Yearling Good Question Nice Answer Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 13348,259824,1417489,NULL,NULL,NULL,0,NULL,NULL 13349,28127,1015273,Nice Answer Enlightened Popular Question Good Answer jekyll Excavator Yearling Populist Announcer Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 13350,76200,71002,Notable Question,NULL,NULL,0,NULL,NULL 13351,178156,354681,Guru Custodian Yearling Notable Question Nice Question Yearling Custodian Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 13352,2421215,515600,Good Question Yearling,NULL,NULL,0,NULL,NULL 13353,53083,515600,Good Question Yearling,NULL,NULL,0,NULL,NULL 13354,74665,1028565,NULL,NULL,NULL,0,NULL,NULL 13355,344350,1401606,NULL,NULL,NULL,0,NULL,NULL 13356,1043,645303,NULL,NULL,NULL,0,NULL,NULL 13357,86875,973054,NULL,NULL,NULL,0,NULL,NULL 13358,5009608,1140948,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13359,187811,29642,Mortarboard Custodian Good Answer Guru Revival Yearling Caucus Constituent Caucus Informed Custodian Yearling Famous Question Caucus Nice Question Yearling,NULL,NULL,0,NULL,NULL 13360,452244,742657,NULL,NULL,NULL,0,NULL,NULL 13361,46021,1140857,NULL,NULL,NULL,0,NULL,NULL 13362,16925,1039773,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 13363,267227,218868,NULL,NULL,NULL,0,NULL,NULL 13364,906809,1149890,Teacher Informed Supporter Editor Yearling Commentator Tumbleweed Yearling Revival Autobiographer Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 13365,756564,1392517,NULL,NULL,NULL,0,NULL,NULL 13366,62838,754851,NULL,NULL,NULL,0,NULL,NULL 13367,236923,1109938,Notable Question Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 13368,25940,221007,Notable Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13369,482475,1131422,NULL,NULL,NULL,0,NULL,NULL 13370,304176,1062897,Caucus Yearling Necromancer Necromancer Caucus,NULL,NULL,0,NULL,NULL 13371,120582,154762,Nice Answer Necromancer Popular Question Citizen Patrol Documentation Pioneer Yearling Caucus Necromancer Good Answer Investor Disciplined Famous Question Talkative Nice Question Revival Custodian Announcer Good Answer Guru Custodian Caucus Yearling Documentation User Self-Learner Custodian Announcer Caucus Nice Answer Enlightened Yearling Famous Question Announcer Organizer,NULL,NULL,0,NULL,NULL 13372,191767,895183,NULL,NULL,NULL,0,NULL,NULL 13373,3960740,1511465,NULL,NULL,NULL,0,NULL,NULL 13374,53115,1219460,Nice Answer Nice Answer Yearling Good Answer Excavator Informed Organizer Good Answer Yearling Nice Answer Enlightened Proofreader Necromancer Yearling Nice Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 13375,15223,20899,Yearling,NULL,NULL,0,NULL,NULL 13376,1431997,320896,Good Answer Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 13377,187608,316414,Curious,NULL,NULL,0,NULL,NULL 13378,440353,1418376,NULL,NULL,NULL,0,NULL,NULL 13379,47778,179149,NULL,NULL,NULL,0,NULL,NULL 13380,8148,1257816,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13381,298450,961925,NULL,NULL,NULL,0,NULL,NULL 13382,337018,1437470,NULL,NULL,NULL,0,NULL,NULL 13383,304614,1114780,Popular Question Notable Question Documentation User Popular Question,NULL,pThe error message indicates that MySQL connection via socket is tried which is not supported ppIn the context of Laravel artisan you probably want to use different the correct environment Eg codephp artisan migrate env production code or whatever environment See href http laravel com docs artisan usage rel noreferrer here had to add unix socket Applications MAMP tmp mysql mysql sock to config database php,0,NULL,NULL 13384,121979,1069444,Great Answer Critic Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 13385,617648,1131696,Autobiographer Necromancer,NULL,NULL,0,NULL,NULL 13386,439929,955360,Good Answer,NULL,NULL,0,NULL,NULL 13387,83516,751090,Guru Nice Answer Enlightened Good Answer Revival Nice Answer xml-serialization jquery Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Great Answer Necromancer Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Populist Nice Answer Enlightened Caucus Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Generalist Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Guru datacontractserializer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer wcf-rest Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Necromancer Announcer Good Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 13388,109108,655103,NULL,NULL,NULL,0,NULL,NULL 13389,2551182,1011113,Curious Custodian Commentator Scholar,NULL,NULL,0,NULL,NULL 13390,7687,100586,Yearling Yearling Good Answer Populist Great Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 13391,61647,159497,NULL,NULL,NULL,0,NULL,NULL 13392,214207,433759,NULL,NULL,NULL,0,NULL,NULL 13393,228060,1494787,Popular Question,NULL,NULL,0,NULL,NULL 13394,1067278,1378811,Critic,NULL,NULL,0,NULL,NULL 13395,373700,292331,Famous Question,NULL,NULL,0,NULL,NULL 13396,565893,105827,Yearling Good Answer Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 13397,229471,1064340,NULL,NULL,NULL,0,NULL,NULL 13398,3444732,703616,Good Question,NULL,NULL,0,NULL,NULL 13399,806414,952435,NULL,NULL,NULL,0,NULL,NULL 13400,108050,468868,Curious Yearling Caucus Necromancer Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 13401,1206325,630834,Supporter Teacher,NULL,NULL,0,NULL,NULL 13402,269502,867259,NULL,NULL,NULL,0,NULL,NULL 13403,1182448,1168205,NULL,NULL,NULL,0,NULL,NULL 13404,74173,739705,Popular Question,NULL,NULL,0,NULL,NULL 13405,866017,1421059,Necromancer Revival Caucus Caucus Yearling Organizer Caucus Constituent Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 13406,757921,1115128,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13407,360288,893047,NULL,NULL,NULL,0,NULL,NULL 13408,89037,1028181,NULL,NULL,NULL,0,NULL,NULL 13409,7964043,1028181,NULL,NULL,NULL,0,NULL,NULL 13410,170462,774183,Good Question Nice Question Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Great Answer Popular Question Good Question Popular Question Good Answer Famous Question Yearling Popular Question java Notable Question Nice Question Good Question Notable Question Popular Question Nice Answer Enlightened Notable Question Famous Question Notable Question Famous Question Good Answer Nice Answer Popular Question Notable Question Popular Question Caucus Popular Question Nice Answer Nice Answer Nice Question Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Census Notable Question Taxonomist Notable Question Notable Question Nice Question Famous Question Good Answer Nice Answer Nice Answer Yearling Notable Question Popular Question Popular Question Revival Notable Question Caucus Nice Answer Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Documentation User Popular Question Famous Question Famous Question Popular Question Popular Question Favorite Question Famous Question Popular Question Socratic Census Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Question Caucus Notable Question Constituent Nice Question Popular Question Nice Answer Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Guru Yearling Good Question Notable Question Popular Question pom.xml Popular Question Guru Popular Question Nice Question Notable Question Notable Question Nice Answer Popular Question Notable Question Good Question Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13411,177075,175495,Notable Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 13412,151759,240949,erlang Nice Answer Enlightened Good Answer Caucus Yearling Nice Answer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 13413,334525,722320,NULL,NULL,NULL,0,NULL,NULL 13414,815497,946668,NULL,NULL,NULL,0,NULL,NULL 13415,58074,1285437,NULL,NULL,NULL,0,NULL,NULL 13416,30379,454196,Nice Answer Yearling Informed Good Answer Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13417,904625,1442007,Popular Question Famous Question Yearling Revival Famous Question Popular Question Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 13418,1443145,903268,NULL,NULL,NULL,0,NULL,NULL 13419,47122,131815,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 13420,2006503,131815,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 13421,295880,372310,NULL,NULL,NULL,0,NULL,NULL 13422,50748,824086,NULL,NULL,NULL,0,NULL,NULL 13423,11977,805602,NULL,NULL,NULL,0,NULL,NULL 13424,27454,51683,Talkative Yearling Nice Answer Nice Answer Good Answer Caucus Announcer Nice Question Yearling Census Caucus Revival Great Answer Yearling Census Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 13425,106916,63372,Notable Question,NULL,NULL,0,NULL,NULL 13426,491658,359578,Excavator Informed Announcer Announcer Yearling Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Necromancer Nice Answer Yearling Good Answer Announcer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 13427,276391,1114411,Yearling,NULL,NULL,0,NULL,NULL 13428,65496,397640,NULL,NULL,NULL,0,NULL,NULL 13429,83699,433290,NULL,NULL,NULL,0,NULL,NULL 13430,201965,786494,NULL,NULL,NULL,0,NULL,NULL 13431,684152,1328979,Necromancer Yearling Nice Answer Yearling Revival Commentator Nice Answer Critic Necromancer Revival,NULL,NULL,0,NULL,NULL 13432,242762,52509,Yearling Nice Answer Popular Question Popular Question Famous Question Famous Question Tag Editor Tumbleweed Good Answer Caucus Constituent Yearling Notable Question Taxonomist Caucus Constituent Favorite Question Great Answer Yearling Census Caucus Custodian Constituent,NULL,NULL,0,NULL,NULL 13433,592070,1301707,NULL,NULL,NULL,0,NULL,NULL 13434,4677670,267185,Yearling,NULL,NULL,0,NULL,NULL 13435,1056022,267185,Yearling,NULL,NULL,0,NULL,NULL 13436,24994,1161453,Autobiographer Revival,NULL,NULL,0,NULL,NULL 13437,6472919,1236846,NULL,NULL,NULL,0,NULL,NULL 13438,392684,359467,Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Popular Question Yearling Good Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 13439,204567,334705,NULL,NULL,NULL,0,NULL,NULL 13440,291487,460065,NULL,NULL,NULL,0,NULL,NULL 13441,840950,1241806,NULL,NULL,NULL,0,NULL,NULL 13442,160602,387256,NULL,NULL,NULL,0,NULL,NULL 13443,374336,613926,Good Answer,NULL,NULL,0,NULL,NULL 13444,630187,565904,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13445,42511,1176882,Teacher,NULL,NULL,0,NULL,NULL 13446,206645,1073346,NULL,NULL,NULL,0,NULL,NULL 13447,240183,1287933,NULL,NULL,NULL,0,NULL,NULL 13448,340960,412944,NULL,NULL,NULL,0,NULL,NULL 13449,137489,834,Popular Question Popular Question Notable Question Revival Notable Question Proofreader Yearling Good Question Nice Question Stellar Question Famous Question Census Famous Question Famous Question Nice Question Yearling Nice Answer Good Question Documentation User Notable Question Nice Answer Popular Question Census Announcer Nice Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 13450,129804,1275970,NULL,NULL,NULL,0,NULL,NULL 13451,306211,630060,Yearling,NULL,NULL,0,NULL,NULL 13452,212095,964796,NULL,NULL,NULL,0,NULL,NULL 13453,1510094,379595,NULL,NULL,NULL,0,NULL,NULL 13454,1098296,631934,NULL,NULL,NULL,0,NULL,NULL 13455,165775,55063,NULL,NULL,NULL,0,NULL,NULL 13456,7390589,923854,Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Yearling boost Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Guru Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Taxonomist Necromancer Good Answer Yearling Custodian Good Answer Nice Answer Good Answer atomic Nice Answer language-lawyer Announcer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer lambda Nice Answer c Populist Yearling Nice Answer Guru Sportsmanship Guru Guru,NULL,pNot an answer but href https stackoverflow com 21028742 923854 lengthy addendum to Howard use an allocator adapter that basically works the same as Howard allocator but is safer since polliit only interposes on value initialization and not emall em initializations liliit correctly default initializes li olpre code Allocator adaptor that interposes construct calls to convert value initialization into default initialization template lt typename typename std allocator lt gt gt class default init allocator public typedef std allocator traits lt gt public template lt typename gt struct rebind using other default init allocator lt typename template rebind alloc lt gt gt using template lt typename gt void construct ptr noexcept std is nothrow default constructible lt gt value new static cast lt void gt ptr template lt typename typename Args gt void construct ptr Args amp amp args construct static cast lt amp gt this ptr std forward lt Args gt args code pre using inherits constructors from the adapted allocator type so that default init allocatorT is constructible from any set of arguments that can be used to construct an pNot an answer but href https stackoverflow com 21028742 923854 lengthy addendum to Howard use an allocator adapter that basically works the same as Howard allocator but is safer since polliit only interposes on value initialization and not emall em initializations liliit correctly default initializes li olpre code Allocator adaptor that interposes construct calls to convert value initialization into default initialization template lt typename typename std allocator lt gt gt class default init allocator public typedef std allocator traits lt gt public template lt typename gt struct rebind using other default init allocator lt typename template rebind alloc lt gt gt using template lt typename gt void construct ptr noexcept std is nothrow default constructible lt gt value new static cast lt void gt ptr template lt typename typename Args gt void construct ptr Args amp amp args construct static cast lt amp gt this ptr std forward lt Args gt args code pre std allocator traitsT construct Alloc Args args delegates to construct args if it valid and otherwise is equivalent to new args Since callers are expected to use allocator traits std allocator doesn need to implement member construct which is equivalent to the fallback hence it is deprecated The adaptor implemented here uses allocator traits instead of calling construct directly on the underlying allocator so it continues to work fine even when adapting std allocator that no longer implements construct pUnfortunately this program has undefined behavior 11 §17 pblockquote pA program may add template specialization for any standard library template to namespace std only if the declaration depends on user defined type and the specialization meets the standard library requirements for the original template and is not explicitly prohibited blockquotep codehash lt pair lt int int gt gt code depends on primitive and standard library types only This is easily worked around by defining your hash class outside of namespace codestd code and using that hash explicitly in your map declaration ppre codestruct pairhash public template lt typename typename gt std size operator const std pair lt gt amp const return std hash lt gt first std hash lt gt second class abc std unordered map lt std pair lt int int gt int pairhash gt rules code prepEDIT ve used xor to combine the hashes of the pair members here because lazy but for serious use href https stackoverflow com questions 5889238 why is xor the default way to combine hashes xor is fairly crappy hash combining function The general rule exists to keep users from interfering with library implementors and or future changes to the standard library implementation can for example provide specialization of std hashstd pairT as conforming extension Or 35 might define such specialization Neither would be possible without breaking some programs if users were allowed to define such specializations themselves pSometimes it easier to unpack everything at once instead of recursively If you simply want parameter pack for each you can use variant of href https stackoverflow com 12515637 923854 the braced init list expansion trick href http coliru stacked crooked com c1fcef82203bf70f rel nofollow noreferrer Live demo at Coliru ppre codetemplate lt class gt void process one type cerr lt lt typeid name lt lt template lt class gt void func int process one type lt gt void cerr lt lt code pre char is the syntax for C99 compound literal of type char It not valid syntax pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone Aha thank you didn realize the link was out of sync with the answer Should be fixed now pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone Lz The second long template parameters apply constraints to the first parameters They re only valid when has the required property and otherwise cause substitution failure removing the corresponding overload from overload resolution pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone Lz Only the first template parameter is type parameter The second template parameter in both cases is non type parameter of type pointer to void when the enable if condition is satisfied and pointer to substitution failure otherwise whose value defaults to nullptr pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone Lz The sole purpose of the unnamed second parameter is to cause substitution failure when doesn meet the requirements for the overload effectively removing that overload from the overload set in that circumstance The intent here is that we have two otherwise identical overloads of print one of which will be selected by overload resolution when the type of the function parameter derives from Printable and another which will be selected the the type of the function parameter derives from Serializable,0,NULL,NULL 13457,901231,854730,Custodian Informed Editor Custodian Citizen Patrol Nice Answer Custodian Enthusiast Yearling Custodian Explainer Unsung Hero Organizer Excavator Yearling Caucus Documentation User Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13458,596628,852326,NULL,NULL,NULL,0,NULL,NULL 13459,70414,764445,Yearling Necromancer Revival Nice Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 13460,480757,770370,NULL,NULL,NULL,0,NULL,NULL 13461,1069654,1510848,Nice Answer Necromancer Nice Answer Nice Answer Yearling hive Explainer Yearling Good Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13462,5540396,832286,Yearling,NULL,NULL,0,NULL,NULL 13463,445711,832286,Yearling,NULL,NULL,0,NULL,NULL 13464,77112,184949,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 13465,4908296,271955,Popular Question Popular Question Notable Question Custodian Enthusiast Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 13466,82870,271955,Popular Question Popular Question Notable Question Custodian Enthusiast Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 13467,454122,1301370,NULL,NULL,NULL,0,NULL,NULL 13468,1076211,509768,NULL,NULL,NULL,0,NULL,NULL 13469,1349523,1459599,Editor Popular Question,NULL,NULL,0,NULL,NULL 13470,581984,309047,NULL,NULL,NULL,0,NULL,NULL 13471,428470,236615,NULL,NULL,NULL,0,NULL,NULL 13472,565884,1059797,Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 13473,4766807,1059797,Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 13474,357900,1151271,Famous Question,NULL,NULL,0,NULL,NULL 13475,48811,290081,NULL,NULL,NULL,0,NULL,NULL 13476,1970,654013,NULL,NULL,NULL,0,NULL,NULL 13477,103938,1217468,Good Answer Yearling Caucus Caucus Constituent Necromancer Yearling Custodian Necromancer Yearling Necromancer Good Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 13478,406396,1182167,Informed,NULL,NULL,0,NULL,NULL 13479,600816,1442483,NULL,NULL,NULL,0,NULL,NULL 13480,78003,325800,NULL,NULL,NULL,0,NULL,NULL 13481,445833,325800,NULL,NULL,NULL,0,NULL,NULL 13482,260166,575642,Yearling Caucus Informed Yearling Yearling,NULL,NULL,0,NULL,NULL 13483,166259,774788,NULL,NULL,NULL,0,NULL,NULL 13484,854354,560448,NULL,NULL,NULL,0,NULL,NULL 13485,8253489,237904,Popular Question Nice Answer Good Question Popular Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13486,133799,237904,Popular Question Nice Answer Good Question Popular Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13487,51875,25559,NULL,NULL,NULL,0,NULL,NULL 13488,210458,147373,Proofreader Notable Question Good Answer Famous Question Famous Question Nice Answer Good Question Popular Question Good Question Nice Question Yearling Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Great Question Notable Question Famous Question Caucus Yearling Necromancer Census Nice Answer Famous Question Famous Question Good Answer Nice Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13489,226316,875621,NULL,NULL,NULL,0,NULL,NULL 13490,419035,389645,NULL,NULL,NULL,0,NULL,NULL 13491,389694,20504,Yearling Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 13492,85197,1561281,Necromancer,NULL,NULL,0,NULL,NULL 13493,53283,393107,NULL,NULL,NULL,0,NULL,NULL 13494,289403,70206,Popular Question Yearling,NULL,NULL,0,NULL,NULL 13495,16451,1121092,NULL,NULL,NULL,0,NULL,NULL 13496,107099,661152,Famous Question,NULL,NULL,0,NULL,NULL 13497,101666,98199,NULL,NULL,NULL,0,NULL,NULL 13498,7142,1265107,Good Answer javascript Yearling Nice Answer Guru Nice Answer Yearling Guru Caucus Yearling Great Answer,NULL,pUpdate Courtesy of casey foster in comment below pblockquote pAs of node v6 you can use codeprocess prependOnceListener uncaughtException code to do this much more succinctly blockquotehrpOld answer ppThe secret lies in process listeners uncaughtException pp href http nodejs org docs latest api events html emitter listeners rel noreferrer http nodejs org docs latest api events html emitter listeners ppSimply remove the mocha listener add your own then reattach the mocha listener ppSee below ppre codevar assert require assert function throwNextTick error process nextTick function throw error describe throwNextTick function it works as expected function next var error new Error boo var recordedError null var originalException process listeners uncaughtException pop Needed in node 10 process removeListener uncaughtException originalException process once uncaughtException function error recordedError error throwNextTick error process nextTick function process listeners uncaughtException push originalException assert equal recordedError error next code pre As of node v6 you can use process prependOnceListener uncaughtException to do this much more succinctly,0,NULL,NULL 13499,1035108,727438,NULL,NULL,,0,, 13500,6093988,727438,NULL,NULL,NULL,0,NULL,NULL 13501,1063858,66450,Yearling Informed Nice Answer Great Answer Caucus Yearling Popular Question Good Answer Caucus Yearling Caucus Popular Question,NULL,pI needed to do it without the interpolation that putImageData causes so did it by scaling the image data into new resized ImageData object can think of any other time ve thought that using nested for loops was good idea ppre codefunction scaleImageData imageData scale var scaled createImageData imageData width scale imageData height scale for var row row lt imageData height row for var col col lt imageData width col var sourcePixel imageData data row imageData width col imageData data row imageData width col imageData data row imageData width col imageData data row imageData width col for var lt scale var destRow row scale for var lt scale var destCol col scale for var lt scaled data destRow scaled width destCol sourcePixel return scaled code prepI hope that at least one other programmer can copy and paste this into their editor while muttering There but for the grace of god go ášZato It the canvas context,0,NULL,NULL 13502,95510,674276,Yearling Nice Question Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 13503,71040,143201,Editor Yearling Revival Good Question,NULL,NULL,0,NULL,NULL 13504,11499,145928,Popular Question,NULL,NULL,0,NULL,NULL 13505,245503,1221711,NULL,NULL,NULL,0,NULL,NULL 13506,368412,529981,NULL,NULL,,0,, 13507,92406,1242117,NULL,NULL,NULL,0,NULL,NULL 13508,96973,680586,NULL,NULL,NULL,0,NULL,NULL 13509,169740,110834,Notable Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 13510,499479,1226608,NULL,NULL,NULL,0,NULL,NULL 13511,947887,1164240,NULL,NULL,NULL,0,NULL,NULL 13512,97883,312111,NULL,NULL,NULL,0,NULL,NULL 13513,200212,289496,Nice Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 13514,1022295,948882,NULL,NULL,NULL,0,NULL,NULL 13515,15111,974805,NULL,NULL,NULL,0,NULL,NULL 13516,85674,704076,NULL,NULL,NULL,0,NULL,NULL 13517,35886,203900,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 13518,108367,967461,Popular Question,NULL,NULL,0,NULL,NULL 13519,13238,53162,Notable Question Yearling Nice Answer Enlightened Good Answer Caucus Guru Yearling Great Answer Good Answer Populist Nice Answer Enlightened Nice Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13520,209878,1158964,Notable Question Curious,NULL,NULL,0,NULL,NULL 13521,1288349,474769,NULL,NULL,NULL,0,NULL,NULL 13522,1011745,888371,NULL,NULL,NULL,0,NULL,NULL 13523,423619,775982,Nice Answer Enlightened Guru Popular Question Notable Question Nice Question Nice Question Nice Question Revival Notable Question Yearling Nice Answer Notable Question Notable Question Yearling Famous Question Good Question Popular Question Notable Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 13524,383979,1059084,NULL,NULL,NULL,0,NULL,NULL 13525,47906,65971,Taxonomist Popular Question Yearling Popular Question Excavator Nice Answer Good Answer Good Answer Guru Curious Guru Yearling Nice Answer Enlightened twitter-bootstrap-3 Nice Answer Strunk & White Notable Question Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Popular Question Popular Question Great Answer Notable Question Investor Altruist Good Answer,NULL,NULL,0,NULL,NULL 13526,761063,300851,Popular Question,NULL,NULL,0,NULL,NULL 13527,155723,293263,NULL,NULL,NULL,0,NULL,NULL 13528,404374,394759,Populist,NULL,NULL,0,NULL,NULL 13529,50233,89856,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13530,756226,568737,Nice Answer Yearling Critic Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 13531,295602,1152382,NULL,NULL,NULL,0,NULL,NULL 13532,1073576,1277041,NULL,NULL,NULL,0,NULL,NULL 13533,5409509,1277041,NULL,NULL,NULL,0,NULL,NULL 13534,1349946,1455069,NULL,NULL,NULL,0,NULL,NULL 13535,468970,1521415,NULL,NULL,NULL,0,NULL,NULL 13536,238124,1132628,Yearling Custodian Caucus Yearling Nice Answer Enlightened Nice Answer Cleanup Good Answer Yearling,NULL,NULL,0,NULL,NULL 13537,341428,714329,NULL,NULL,NULL,0,NULL,NULL 13538,75725,761324,NULL,NULL,NULL,0,NULL,NULL 13539,1079948,749020,Notable Question Popular Question Popular Question Famous Question Critic Teacher Nice Question Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 13540,585482,714016,NULL,NULL,NULL,0,NULL,NULL 13541,394484,879555,Nice Question,NULL,NULL,0,NULL,NULL 13542,8039,1057147,NULL,NULL,NULL,0,NULL,NULL 13543,385517,534310,Yearling Popular Question Popular Question Nice Question Popular Question Self-Learner Popular Question Caucus Necromancer Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 13544,69980,4840,NULL,NULL,NULL,0,NULL,NULL 13545,239398,375490,Yearling Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 13546,285378,1288110,Investor,NULL,NULL,0,NULL,NULL 13547,311582,1157224,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 13548,45376,1016887,NULL,NULL,NULL,0,NULL,NULL 13549,556529,465895,Good Answer Popular Question Nice Answer Suffrage Vox Populi Electorate Strunk & White Notable Question Yearling Guru mysql Caucus Constituent Caucus Nice Answer Nice Answer Enlightened Yearling Documentation User php Tumbleweed Good Answer Census Popular Question Caucus Investor Revival Nice Answer Popular Question Steward Yearling,NULL,NULL,0,NULL,NULL 13550,204119,123340,Yearling Student Caucus Constituent Nice Answer Yearling Nice Answer Notable Question ios Yearling Good Answer,NULL,NULL,0,NULL,NULL 13551,158775,679024,NULL,NULL,NULL,0,NULL,NULL 13552,406710,702818,Notable Question,NULL,NULL,0,NULL,NULL 13553,1328644,1482154,NULL,NULL,NULL,0,NULL,NULL 13554,17292,821917,NULL,NULL,NULL,0,NULL,NULL 13555,65368,275944,Good Answer Yearling Nice Answer Enlightened Guru Necromancer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 13556,116752,687992,NULL,NULL,NULL,0,NULL,NULL 13557,232092,858449,NULL,NULL,NULL,0,NULL,NULL 13558,200889,546196,NULL,NULL,NULL,0,NULL,NULL 13559,668763,840727,NULL,NULL,NULL,0,NULL,NULL 13560,994904,292263,Famous Question Notable Question Famous Question Yearling Popular Question Favorite Question Guru Notable Question Popular Question Popular Question Revival Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Yearling Popular Question Good Question Great Question Famous Question,NULL,NULL,0,NULL,NULL 13561,301570,695124,NULL,NULL,NULL,0,NULL,NULL 13562,49669,582344,Notable Question Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 13563,823367,50727,Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 13564,499672,1211132,NULL,NULL,NULL,0,NULL,NULL 13565,5126,631850,NULL,NULL,NULL,0,NULL,NULL 13566,36884,601928,Notable Question,NULL,NULL,0,NULL,NULL 13567,1123574,79450,Nice Answer Yearling Revival Famous Question Custodian Yearling Revival Good Answer Tenacious Popular Question Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 13568,72063,2820,Announcer Popular Question elixir Notable Question Sportsmanship Notable Question Popular Question Notable Question Yearling Notable Question Nice Question Notable Question Nice Answer Caucus Constituent Great Answer Famous Question Popular Question Nice Answer Popular Question Notable Question Custodian Nice Answer Caucus Constituent Yearling Famous Question Popular Question Popular Question Notable Question Nice Question Custodian Custodian Census Popular Question Caucus Announcer Constituent Popular Question Nice Question Popular Question Popular Question Nice Answer Notable Question Stellar Question Yearling,NULL,Array versus linked list arrays data structures linked list pWhy would someone want to use linked list over an array ppCoding linked list is no doubt bit more work than using an array and one may wonder what would justify the additional effort ppI think insertion of new elements is trivial in linked list but it major chore in an array Are there other advantages to using linked list to store set of data versus storing it in an array ppThis question is not duplicate of href https stackoverflow com questions 322715 when to use linkedlist over arraylist this question because the other question is asking specifically about particular Java class while this question is concerned with the general data structures Actually that question would be duplicate of this question because my question was posted first,0,NULL,NULL 13569,49852,740527,Teacher,NULL,NULL,0,NULL,NULL 13570,81404,448797,NULL,NULL,NULL,0,NULL,NULL 13571,753181,1235842,NULL,NULL,NULL,0,NULL,NULL 13572,848916,1112485,NULL,NULL,NULL,0,NULL,NULL 13573,856070,1221420,NULL,NULL,NULL,0,NULL,NULL 13574,74419,191857,Famous Question Critic Yearling Necromancer,NULL,NULL,0,NULL,NULL 13575,286728,555699,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13576,502126,780143,NULL,NULL,NULL,0,NULL,NULL 13577,26926,23028,Necromancer Popular Question Yearling objective-c Cleanup Good Question Caucus Revival Nice Answer Announcer Yearling Necromancer Nice Answer Census Necromancer cocoa Custodian Nice Answer Necromancer Yearling Announcer Revival Popular Question Nice Answer Enlightened,NULL,NULL,1,macOS Installer Show Files only The file listing isn available macos installer pkgbuild pkg file pThe Installer has build in file browser under file menu But it only shows The file listing isn available ppIn the installer log ppre codeInstaller 82159 PFPackage packageWithURL can instantiate package Users Downloads Install pkg code prepScreenshot pp href https stack imgur com qAQm8 png rel nofollow noreferrer img src https stack imgur com qAQm8 png alt macOS Installer Show Files only The file listing isn 39 available ppStructure of the Install pkg href https stack imgur com MzOfN png rel nofollow noreferrer img src https stack imgur com MzOfN png alt Structure of the Install pkg,NULL 13578,1301833,859447,NULL,NULL,NULL,0,NULL,NULL 13579,591157,985874,Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 13580,169574,62118,Yearling Famous Question Popular Question Notable Question Notable Question Good Question Popular Question Famous Question Favorite Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 13581,651020,1012414,NULL,NULL,NULL,0,NULL,NULL 13582,25808,818075,Necromancer Critic Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 13583,18360,14978,Nice Question Necromancer Yearling Nice Answer Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 13584,475856,626607,NULL,NULL,NULL,0,NULL,NULL 13585,48792,204011,Yearling Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13586,480049,33372,Famous Question,NULL,NULL,0,NULL,NULL 13587,23168,780262,Necromancer Caucus Yearling Nice Answer Caucus Autobiographer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13588,1077333,955619,Good Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Necromancer Nice Answer Popular Question Necromancer Necromancer Yearling Nice Answer Notable Question Notable Question django python Notable Question Notable Question Popular Question Revival Popular Question Popular Question Favorite Question Notable Question Necromancer Good Answer Necromancer Notable Question Yearling Popular Question Notable Question Nice Answer Popular Question Nice Question Nice Answer Necromancer Notable Question Notable Question Favorite Question Nice Answer Yearling Famous Question Famous Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 13589,364479,808332,NULL,NULL,NULL,0,NULL,NULL 13590,839117,947875,Notable Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13591,92950,37575,Necromancer Nice Answer Notable Question Guru Popular Question Nice Answer Nice Answer Yearling Good Answer Yearling Famous Question Popular Question Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 13592,49537,295623,NULL,NULL,NULL,0,NULL,NULL 13593,642228,852973,Critic Nice Question Yearling Notable Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 13594,8566,234318,Famous Question Yearling Good Answer Popular Question Nice Question Notable Question Yearling Famous Question Good Question Popular Question Guru Yearling Nice Question,NULL,NULL,0,NULL,NULL 13595,2181524,598481,NULL,NULL,NULL,0,NULL,NULL 13596,1283533,1015243,NULL,NULL,NULL,0,NULL,NULL 13597,46784,1550491,NULL,NULL,NULL,0,NULL,NULL 13598,93662,1007351,NULL,NULL,NULL,0,NULL,NULL 13599,291454,740388,NULL,NULL,NULL,0,NULL,NULL 13600,448374,982872,NULL,NULL,NULL,0,NULL,NULL 13601,145886,371060,NULL,NULL,NULL,0,NULL,NULL 13602,1359864,729517,NULL,NULL,NULL,0,NULL,NULL 13603,3806704,810228,NULL,NULL,NULL,0,NULL,NULL 13604,158570,810228,NULL,NULL,NULL,0,NULL,NULL 13605,60912,1135188,NULL,NULL,NULL,0,NULL,NULL 13606,496570,1177001,NULL,NULL,NULL,0,NULL,NULL 13607,131893,789222,Nice Answer Yearling Necromancer Necromancer vim Yearling Caucus Necromancer Nice Answer Yearling Announcer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 13608,1147587,1079750,NULL,NULL,NULL,0,NULL,NULL 13609,131595,960121,NULL,NULL,NULL,0,NULL,NULL 13610,325487,67166,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13611,64614,1031367,NULL,NULL,NULL,0,NULL,NULL 13612,75663,1087902,NULL,NULL,NULL,0,NULL,NULL 13613,104891,204392,Student,NULL,NULL,0,NULL,NULL 13614,100310,448612,Student,NULL,NULL,0,NULL,NULL 13615,990599,1395760,NULL,NULL,NULL,0,NULL,NULL 13616,133474,424803,NULL,NULL,NULL,0,NULL,NULL 13617,3997968,424803,NULL,NULL,NULL,0,NULL,NULL 13618,27088,689553,NULL,NULL,NULL,0,NULL,NULL 13619,376850,1078465,Nice Answer Yearling Commentator Scholar Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 13620,329138,916433,NULL,NULL,NULL,0,NULL,NULL 13621,298367,977441,NULL,NULL,NULL,0,NULL,NULL 13622,2541785,611751,Yearling Yearling Caucus Constituent Yearling Civic Duty Yearling Custodian Yearling Census Famous Question Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 13623,37240,577199,Popular Question Yearling Notable Question Necromancer Famous Question Famous Question Popular Question Notable Question Nice Answer Notable Question Revival Announcer Good Answer Popular Question Nice Question Notable Question Yearling Guru Popular Question Necromancer Great Answer Necromancer Notable Question Good Answer Necromancer Excavator Yearling Nice Answer Necromancer python Nice Answer Popular Question Custodian Nice Answer Good Answer Cleanup Nice Question Famous Question,NULL,pIf you want to avoid external libraries you can concisely implement vanilla version of codegroupBy code like so pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar groupBy function xs key xD return xs reduce function rv xD rv key rv key push xD return rv xD xD xD xD console log groupBy one two three length xD xD gt one two three code pre xD div xD div xD you will need more general solution Some of the other answers in this thread might work better for you,1,NULL,Most efficient method to groupby on array of objects javascript arrays object group by underscore js pWhat is the most efficient way to groupby objects in an array ppFor example given this array of objects ppre code Phase Phase Step Step Task Task Value Phase Phase Step Step Task Task Value 10 Phase Phase Step Step Task Task Value 15 Phase Phase Step Step Task Task Value 20 Phase Phase Step Step Task Task Value 25 Phase Phase Step Step Task Task Value 30 Phase Phase Step Step Task Task Value 35 Phase Phase Step Step Task Task Value 40 code prepI’m displaying this information in table I’d like to groupby different methods but want to sum the values ppI’m using Underscore js for its groupby function which is helpful but doesn’t do the whole trick because don’t want them “split up” but “merged” more like the SQL codegroup by code method ppWhat I’m looking for would be able to total specific values if requested ppSo if did groupby codePhase code I’d want to receive ppre code Phase Phase Value 50 Phase Phase Value 130 code prepAnd if did groupy codePhase code codeStep code I’d receive ppre code Phase Phase Step Step Value 15 Phase Phase Step Step Value 35 Phase Phase Step Step Value 55 Phase Phase Step Step Value 75 code prepIs there helpful script for this or should stick to using Underscore js and then looping through the resulting object to do the totals myself pIf you want to avoid external libraries you can concisely implement vanilla version of codegroupBy code like so pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar groupBy function xs key xD return xs reduce function rv xD rv key rv key push xD return rv xD xD xD xD console log groupBy one two three length xD xD gt one two three code pre xD div xD div xD 13624,881761,492171,Critic Popular Question,NULL,NULL,0,NULL,NULL 13625,646054,1408830,Critic Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 13626,458608,1061021,Notable Question Custodian Notable Question Promoter Benefactor Popular Question Popular Question Notable Question Famous Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 13627,609584,1394561,NULL,NULL,NULL,0,NULL,NULL 13628,1037458,328,Nice Question Yearling Famous Question Benefactor Popular Question,NULL,NULL,0,NULL,NULL 13629,67436,622403,Commentator Yearling Good Answer spring Yearling Yearling,NULL,NULL,0,NULL,NULL 13630,460333,1231812,NULL,NULL,NULL,0,NULL,NULL 13631,808480,640053,Popular Question Yearling Popular Question Citizen Patrol Notable Question Yearling Self-Learner Popular Question Notable Question Popular Question Popular Question Peer Pressure Caucus Notable Question Civic Duty Popular Question Yearling Notable Question Tenacious Popular Question Yearling Popular Question Nice Question Organizer Popular Question Explainer Famous Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Nice Answer Mortarboard Good Answer javascript Great Answer Famous Question Popular Question Guru Enlightened Yearling Famous Question Inquisitive Nice Question Nice Answer Enlightened Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13632,38870,652018,NULL,NULL,NULL,0,NULL,NULL 13633,408893,458502,Popular Question Peer Pressure Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 13634,596075,744071,Famous Question Popular Question Notable Question Announcer Notable Question Popular Question Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 13635,121999,294917,NULL,NULL,NULL,0,NULL,NULL 13636,141931,2119,Nice Answer Famous Question Good Question Good Answer Guru Guru Good Answer Nice Answer Yearling Great Answer Nice Answer Good Answer Nice Answer Great Question Nice Answer Enlightened Enlightened Famous Question Great Answer Notable Question Yearling Nice Answer Great Answer Guru Good Question Good Question Guru Nice Question Great Answer Guru Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 13637,442169,1208298,NULL,NULL,NULL,0,NULL,NULL 13638,162541,102616,Yearling Famous Question Popular Question Popular Question Announcer Necromancer Notable Question Popular Question Yearling Popular Question Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13639,102929,12934,Notable Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13640,9655613,12934,Notable Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13641,705546,1326194,NULL,NULL,NULL,0,NULL,NULL 13642,356215,935757,Yearling Necromancer,NULL,NULL,0,NULL,NULL 13643,653693,1260560,Autobiographer Popular Question Popular Question Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 13644,240901,1069873,NULL,NULL,NULL,0,NULL,NULL 13645,5309,753926,Announcer,NULL,NULL,0,NULL,NULL 13646,34113,258662,Announcer Famous Question Yearling Popular Question Nice Answer Enlightened Famous Question Popular Question Popular Question Nice Question Popular Question Announcer Notable Question Famous Question Notable Question Popular Question Popular Question Good Question Nice Answer Popular Question Good Question Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Nice Question Nice Question Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Guru Famous Question Notable Question Nice Question Yearling Nice Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Good Answer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 13647,663120,305206,NULL,NULL,NULL,0,NULL,NULL 13648,1501746,11870,Good Answer Yearling Announcer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 13649,322191,1510448,NULL,NULL,NULL,0,NULL,NULL 13650,37053,580913,Critic,NULL,NULL,0,NULL,NULL 13651,191055,975177,NULL,NULL,NULL,0,NULL,NULL 13652,708745,852482,NULL,NULL,NULL,0,NULL,NULL 13653,230525,1521535,Supporter,NULL,NULL,0,NULL,NULL 13654,352292,568053,Famous Question Informed Nice Question Good Answer Yearling Popular Question Popular Question Nice Question Popular Question Famous Question Caucus Custodian Yearling Famous Question Notable Question Famous Question Popular Question Nice Question Popular Question Yearling Popular Question Good Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 13655,73307,635865,Nice Question Nice Answer Yearling Famous Question Yearling Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 13656,22778,453617,Popular Question Nice Answer Yearling Enlightened Necromancer,NULL,NULL,0,NULL,NULL 13657,234081,203623,NULL,NULL,NULL,0,NULL,NULL 13658,1109472,519241,Revival Yearling Nice Answer Enlightened Great Answer Nice Question Nice Answer Nice Answer asp.net Yearling Popular Question Popular Question Self-Learner Necromancer Yearling,NULL,NULL,0,NULL,NULL 13659,893876,744481,NULL,NULL,NULL,0,NULL,NULL 13660,113110,1373751,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 13661,8918201,758412,NULL,NULL,NULL,0,NULL,NULL 13662,392529,702598,Nice Answer,NULL,NULL,0,NULL,NULL 13663,20671,830378,NULL,NULL,NULL,0,NULL,NULL 13664,13556,460637,NULL,NULL,NULL,0,NULL,NULL 13665,242797,45176,Yearling Yearling,NULL,NULL,0,NULL,NULL 13666,136705,524381,NULL,NULL,NULL,0,NULL,NULL 13667,308867,116900,NULL,NULL,NULL,0,NULL,NULL 13668,20131,1212433,NULL,NULL,NULL,0,NULL,NULL 13669,427895,624245,NULL,NULL,NULL,0,NULL,NULL 13670,443006,73619,NULL,NULL,NULL,0,NULL,NULL 13671,9106,73619,NULL,NULL,NULL,0,NULL,NULL 13672,359206,1226681,Supporter,NULL,NULL,0,NULL,NULL 13673,904572,913304,Popular Question Supporter Commentator,NULL,NULL,0,NULL,NULL 13674,81630,480835,NULL,NULL,NULL,0,NULL,NULL 13675,167362,851398,Announcer Caucus Civic Duty,NULL,NULL,0,NULL,NULL 13676,185926,91945,Notable Question Notable Question Notable Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 13677,1457710,1006023,NULL,NULL,NULL,0,NULL,NULL 13678,911275,71148,Necromancer,NULL,NULL,0,NULL,NULL 13679,676081,646861,NULL,NULL,NULL,0,NULL,NULL 13680,789944,668668,Self-Learner Revival,NULL,NULL,0,NULL,NULL 13681,301619,890311,NULL,NULL,NULL,0,NULL,NULL 13682,120129,221391,NULL,NULL,NULL,0,NULL,NULL 13683,91451,877429,NULL,NULL,NULL,0,NULL,NULL 13684,1505291,819655,NULL,NULL,NULL,0,NULL,NULL 13685,1832071,1255062,Popular Question,NULL,NULL,0,NULL,NULL 13686,389413,1400004,NULL,NULL,NULL,0,NULL,NULL 13687,419056,607371,Editor Custodian,NULL,NULL,0,NULL,NULL 13688,82220,373402,Yearling Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Yearling Notable Question Necromancer Nice Question Nice Question,NULL,NULL,0,NULL,NULL 13689,233288,1133696,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 13690,299974,148217,Notable Question Popular Question Yearling Good Answer Yearling Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 13691,207291,1054104,Popular Question Popular Question Yearling Nice Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 13692,257312,770462,NULL,NULL,NULL,0,NULL,NULL 13693,183179,650929,Yearling Notable Question Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13694,1422647,650929,Yearling Notable Question Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13695,1035435,824348,Supporter,NULL,NULL,0,NULL,NULL 13696,303955,1405218,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 13697,19431,817949,NULL,NULL,NULL,0,NULL,NULL 13698,43885,1272073,NULL,NULL,NULL,0,NULL,NULL 13699,755247,654373,NULL,NULL,NULL,0,NULL,NULL 13700,42049,1069332,NULL,NULL,NULL,0,NULL,NULL 13701,2735547,1098230,Civic Duty scala Nice Answer Enlightened Yearling Nice Answer Fanatic Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13702,753753,559620,Informed,NULL,NULL,0,NULL,NULL 13703,9052319,936334,NULL,NULL,NULL,0,NULL,NULL 13704,308156,438386,Nice Answer Excavator Good Answer Nice Answer Enlightened Announcer Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Caucus Civic Duty Nice Answer Enthusiast Good Answer spyder Necromancer Guru Fanatic Revival Caucus Nice Answer Enlightened Nice Answer ipython Yearling Guru python Announcer Good Answer Nice Answer Enlightened Revival Announcer Good Answer Guru Revival Guru Revival Nice Answer Necromancer Nice Answer Enlightened Announcer Announcer Nice Answer Announcer Yearling Announcer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 13705,514737,1442926,Excavator Nice Question,NULL,NULL,0,NULL,NULL 13706,1209731,1450124,NULL,NULL,NULL,0,NULL,NULL 13707,447047,1381668,NULL,NULL,NULL,0,NULL,NULL 13708,511084,755794,Teacher,NULL,NULL,0,NULL,NULL 13709,3459933,1195363,NULL,NULL,NULL,0,NULL,NULL 13710,543530,719398,Caucus,NULL,NULL,0,NULL,NULL 13711,204217,1522030,NULL,NULL,NULL,0,NULL,NULL 13712,436373,1486965,NULL,NULL,NULL,0,NULL,NULL 13713,226133,888194,NULL,NULL,NULL,0,NULL,NULL 13714,2082066,724684,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13715,328452,158233,Yearling,NULL,NULL,0,NULL,NULL 13716,1271219,283300,NULL,NULL,NULL,0,NULL,NULL 13717,349702,685684,NULL,NULL,NULL,0,NULL,NULL 13718,7432981,252078,Yearling Yearling Good Answer Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13719,9278522,252078,Yearling Yearling Good Answer Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13720,1448104,252078,Yearling Yearling Good Answer Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13721,45110,396422,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 13722,192309,156224,Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 13723,133731,172185,Necromancer Popular Question Yearling Nice Answer Famous Question Great Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 13724,158995,253405,Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 13725,95195,1219059,NULL,NULL,NULL,0,NULL,NULL 13726,746105,1064920,NULL,NULL,NULL,0,NULL,NULL 13727,846168,530733,Nice Answer Enlightened Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 13728,10741015,830313,NULL,NULL,NULL,0,NULL,NULL 13729,1255458,830313,NULL,NULL,NULL,0,NULL,NULL 13730,23066,893498,Nice Answer,NULL,NULL,0,NULL,NULL 13731,3357545,1310134,NULL,NULL,NULL,0,NULL,NULL 13732,434174,1310134,NULL,NULL,NULL,0,NULL,NULL 13733,344912,64635,Yearling Nice Answer Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 13734,161059,894931,NULL,NULL,NULL,0,NULL,NULL 13735,419252,1048211,Commentator Custodian Scholar Revival,NULL,NULL,0,NULL,NULL 13736,1362871,1237087,NULL,NULL,NULL,0,NULL,NULL 13737,326998,658018,NULL,NULL,NULL,0,NULL,NULL 13738,198919,1373172,NULL,NULL,NULL,0,NULL,NULL 13739,169820,1031898,Announcer Necromancer Yearling Caucus Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 13740,184563,287583,Yearling Nice Answer Nice Answer Enlightened Good Question Nice Answer Popular Question Good Question Caucus Notable Question Yearling Nice Question Popular Question Yearling Good Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 13741,889397,559557,NULL,NULL,NULL,0,NULL,NULL 13742,180302,854429,NULL,NULL,NULL,0,NULL,NULL 13743,165243,1073969,Revival,NULL,NULL,0,NULL,NULL 13744,780367,161276,Revival Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13745,16934,703161,Announcer Self-Learner Civic Duty Popular Question Notable Question Notable Question Caucus Notable Question Custodian Custodian Tag Editor Notable Question Nice Answer Yearling Caucus Constituent Popular Question Documentation User Census Suffrage Vox Populi Informed Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13746,121892,695204,NULL,NULL,NULL,0,NULL,NULL 13747,287114,178652,Editor,NULL,NULL,0,NULL,NULL 13748,395907,906752,NULL,NULL,NULL,0,NULL,NULL 13749,374100,1050536,Yearling Nice Answer Yearling Documentation User Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13750,320567,574041,NULL,NULL,NULL,0,NULL,NULL 13751,1106168,734551,Supporter,NULL,NULL,0,NULL,NULL 13752,421379,1079416,NULL,NULL,NULL,0,NULL,NULL 13753,733285,927334,NULL,NULL,NULL,0,NULL,NULL 13754,4407767,298245,Announcer,NULL,NULL,0,NULL,NULL 13755,1016850,511550,NULL,NULL,NULL,0,NULL,NULL 13756,489511,1558017,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 13757,136205,499049,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13758,25479,176192,Guru Yearling Good Answer Yearling jquery Yearling,NULL,NULL,0,NULL,NULL 13759,591714,527137,Scholar Tumbleweed,NULL,pKeep your original request then provide your own codewillSendRequest redirectResponse code to customize strongthat strong request rather than working with the one Apple provides you ppre code NSURLRequest connection NSURLConnection connection willSendRequest NSURLRequest request redirectResponse NSURLResponse redirectResponse if redirectResponse The request you initialized the connection with should be kept as originalRequest Instead of trying to merge the pieces of originalRequest into Cocoa touch proposed redirect request we make mutable copy of the original request change the URL to match that of the proposed request and return it as the request to use NSMutableURLRequest originalRequest mutableCopy setURL request URL return else return request code prepBy doing this you re explicitly ignoring some aspects of the HTTP spec Redirects should generally be turned into GET requests depending on the HTTP status code But in practice this behaviour will serve you better when POSTing from an iOS application ppSee also pulli href http developer apple com library ios documentation Cocoa Conceptual URLLoadingSystem Articles RequestChanges html apple ref doc uid TP40009506 SW1 rel nofollow iOS Developer Library URL Loading System Programming Guide Handling Redirects and Other Request Changes li ul This post was very helpful but there are few issues worth mentioning hilighting if redirectResponse is nil then the redirect method was called just to put the request in canonical form if the original request was post the new one is likely get and thus the you ll need to set HTTPMethod to POST the body HTTPBody may have become nil and may need to be restored the headers may have also changed Content Type and may need to be updated,0,NULL,NULL 13760,75319,1018418,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13761,180013,883455,NULL,NULL,NULL,0,NULL,NULL 13762,167002,587795,NULL,NULL,NULL,0,NULL,NULL 13763,94950,82268,Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 13764,331796,158706,NULL,NULL,NULL,0,NULL,NULL 13765,388245,816602,Famous Question Yearling Notable Question Popular Question Nice Question Guru Yearling Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13766,251945,598892,Yearling Nice Answer Yearling Yearling Good Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 13767,529811,1309092,Notable Question Yearling Popular Question Tumbleweed Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13768,431505,689959,Supporter Student Scholar Revival Self-Learner,NULL,NULL,0,NULL,NULL 13769,426839,263998,Yearling Good Answer Necromancer Announcer Good Answer Necromancer Necromancer Announcer Nice Answer Yearling Nice Answer Good Answer Necromancer Nice Question Great Answer Announcer Popular Question Necromancer Announcer Necromancer Yearling Notable Question Necromancer Nice Answer Enlightened Good Answer,NULL,codecd code is easy to write using generator and decorator ppre codefrom contextlib import contextmanagerimport osef cd newdir prevdir os getcwd os chdir os path expanduser newdir try yield finally os chdir prevdir code prepThen the directory is reverted even after an exception is thrown ppre codeos chdir home with cd tmp raise Exception There no place like home Directory is now back to home code pre it generator See docs on contextlib contextmanager https docs python org library contextlib html This is very useful pattern in Python worth learning,0,NULL,NULL 13770,85510,610476,NULL,NULL,NULL,0,NULL,NULL 13771,42953,145465,Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 13772,1555241,145465,Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 13773,93949,269909,NULL,NULL,NULL,0,NULL,NULL 13774,144086,1223151,NULL,NULL,NULL,0,NULL,NULL 13775,1803731,1315800,Revival Yearling Popular Question Notable Question Notable Question Yearling Enthusiast Famous Question Notable Question Popular Question Popular Question Caucus Popular Question Yearling Quorum Famous Question Census Notable Question Popular Question Notable Question Caucus Constituent Notable Question Nice Question Documentation User Popular Question Notable Question Nice Question Census Caucus Constituent Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 13776,5768,108590,Yearling Good Answer Nice Answer Yearling Guru Nice Answer Enlightened java Guru Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 13777,2303254,947639,Yearling,NULL,NULL,0,NULL,NULL 13778,610945,249933,Nice Answer Enlightened Yearling Nice Answer Nice Question Nice Answer Nice Answer Nice Question Nice Answer Enlightened Good Question Revival Good Answer Good Answer Good Question Nice Question Good Answer Nice Answer Enlightened Famous Question Good Answer Revival Nice Answer Enlightened Nice Answer Nice Question Notable Question Famous Question Nice Answer Enlightened silverlight Good Answer Guru linq Peer Pressure Yearling Nice Question Notable Question Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Question Nice Answer Notable Question Good Answer Great Answer Popular Question .net Popular Question Guru Nice Answer Enlightened Famous Question Necromancer Announcer Announcer Necromancer Nice Answer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Announcer Popular Question Proofreader Good Answer Guru Popular Question Nice Answer Nice Answer Enlightened Necromancer Announcer webassembly Nice Answer javascript Popular Question Revival Popular Question Necromancer Announcer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 13779,166367,384676,Notable Question Caucus Custodian Custodian Enthusiast Yearling Yearling Census Citizen Patrol Excavator Suffrage Vox Populi Necromancer Yearling Civic Duty Yearling Yearling Caucus Constituent Fanatic Custodian Tenacious extjs Documentation User Custodian Proofreader Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 13780,203672,795132,NULL,NULL,NULL,0,NULL,NULL 13781,2449755,795132,NULL,NULL,NULL,0,NULL,NULL 13782,216553,299840,Notable Question,NULL,NULL,0,NULL,NULL 13783,886086,973907,NULL,NULL,NULL,0,NULL,NULL 13784,329978,1087731,Nice Answer,NULL,pFirst it not bug pblockquote pAn array variable is considered set if subscript has been assigned value The null string is valid value blockquotepNo subscript has been assigned value so the array isn set phrpThere is conditional you can use inline to achieve what you want Use code arr arr code instead of code arr code ppre code function args perl say say ARGV for ARGV set arr args arr bash arr unbound variable args arr arr arr args arr arr 10 arr args arr arr 30 a1 b2 code prepTested with bash 25 and 11 arr arr is shorter and seems to work just as well pFirst it not bug pblockquote pAn array variable is considered set if subscript has been assigned value The null string is valid value blockquotepNo subscript has been assigned value so the array isn set phrpThere is conditional you can use inline to achieve what you want Use code arr arr code instead of code arr code ppre code function args perl say say ARGV for ARGV set arr args arr bash arr unbound variable args arr arr arr args arr arr 10 arr args arr arr 30 a1 b2 code prepTested with bash 25 and 11 Well if you use based indexes it does work unset arr arr echo arr arr Maybe this is bit nasty though as it accesses the indexed value without providing the index part,0,NULL,NULL 13785,457336,467645,NULL,NULL,NULL,0,NULL,NULL 13786,457978,1057560,NULL,NULL,NULL,0,NULL,NULL 13787,217502,936533,NULL,NULL,NULL,0,NULL,NULL 13788,411720,1002965,Inquisitive Popular Question Nice Answer Popular Question Yearling Revival Caucus Popular Question Nice Question Notable Question Popular Question Notable Question Caucus Constituent Nice Answer Yearling Civic Duty Popular Question Caucus Constituent Nice Question Notable Question Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 13789,275457,498415,Famous Question Revival Yearling Nice Question Announcer Famous Question Popular Question Necromancer Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 13790,29856,627871,Yearling,NULL,NULL,0,NULL,NULL 13791,13412,1387951,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13792,29498,342893,NULL,NULL,NULL,0,NULL,NULL 13793,1030961,795127,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13794,547857,795127,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13795,47729,513271,NULL,NULL,NULL,0,NULL,NULL 13796,45087,707984,Popular Question Yearling Tumbleweed Nice Answer Curious Revival Revival Custodian Necromancer Yearling Nice Answer Yearling Informed,NULL,NULL,0,NULL,NULL 13797,1471618,1306142,Nice Question Good Question,NULL,NULL,0,NULL,NULL 13798,4257017,1306142,Nice Question Good Question,NULL,NULL,0,NULL,NULL 13799,1646,1382048,NULL,NULL,NULL,0,NULL,NULL 13800,2258,21698,Nice Answer Announcer Nice Answer Popular Question Nice Question Announcer Nice Answer Guru Announcer Good Answer Good Answer Yearling Revival Announcer Revival Announcer Famous Question Caucus Popular Question Nice Question Notable Question Nice Answer Popular Question Census Announcer Necromancer Announcer Announcer Popular Question Popular Question Nice Answer Good Answer Announcer Electorate Caucus Constituent Announcer Announcer Revival Announcer Nice Answer Yearling Popular Question Good Answer Notable Question macos Census Announcer Nice Answer Popular Question Caucus Good Answer Revival Yearling,NULL,pTL DR Expose emlog handler em block in your API phrpHere is suggestion to make logging configurable very easily with logger class as part of your public API Let’s call it codeMYLibraryLogger code ppre code MYLibraryLogger import lt Foundation Foundation gt typedef NS ENUM NSUInteger MYLogLevel MYLogLevelError MYLogLevelWarning MYLogLevelInfo MYLogLevelDebug MYLogLevelVerbose MYLibraryLogger NSObject void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler code prepThis class has single method that allows client to register log handler block This makes it trivial for client to implement logging with their favorite library Here is how client would use it with href https github com fpillet NSLogger NSLogger ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line LogMessageRawF file int line function MYLibrary int level message code prepor with href https github com CocoaLumberjack CocoaLumberjack CocoaLumberjack ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line The MYLogLevel enum matches the DDLogFlag options from DDLog when shifted DDLog log YES message message level ddLogLevel flag lt lt level context MYLibraryLumberjackContext file file function function line line tag nil code prepHere is an implementation of codeMYLibraryLogger code with default log handler that only logs errors and warnings ppre code MYLibraryLogger import MYLibraryLogger static void LogHandler NSString void MYLogLevel const char const char NSUInteger NSString message void MYLogLevel level const char file const char function NSUInteger line if level MYLogLevelError level MYLogLevelWarning NSLog MYLibrary message MYLibraryLogger void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler LogHandler logHandler void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line if LogHandler LogHandler message level file function line code prepThe last missing piece for this solution to work is set of macros for you to use through your library ppre code MYLibraryLogger Private import lt Foundation Foundation gt import MYLibraryLogger MYLibraryLogger void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line define MYLibraryLog level message MYLibraryLogger logMessage message level level file FILE function PRETTY FUNCTION line LINE define MYLibraryLogError format MYLibraryLog MYLogLevelError return NSString stringWithFormat format VA ARGS define MYLibraryLogWarning format MYLibraryLog MYLogLevelWarning return NSString stringWithFormat format VA ARGS define MYLibraryLogInfo format MYLibraryLog MYLogLevelInfo return NSString stringWithFormat format VA ARGS define MYLibraryLogDebug format MYLibraryLog MYLogLevelDebug return NSString stringWithFormat format VA ARGS define MYLibraryLogVerbose format MYLibraryLog MYLogLevelVerbose return NSString stringWithFormat format VA ARGS code prepThen you just use it like this inside your library ppre codeMYLibraryLogError Operation finished with error error code prepNotice how the log emmessage em is block returning string instead of just string This way you can potentially avoid expensive computations if the defined log handler decides not to evaluate the message based on the log level as in the default log handler above This lets you write one liner logs with potentially costly log messages to compute with no performance hit if the log is discarded for example ppre codeMYLibraryLogDebug Object return object debugDescription code pre The log handler is simply called on the thread the log was emitted Both CocoaLumberjack https github com CocoaLumberjack CocoaLumberjack blob f57de5cb54c9334e0685c7de2f33f1da5658d2f8 Classes DDLog L963 and NSLogger https github com fpillet NSLogger blob 2259236c4ba1f5070c58f31797888fe96abcc492 Client 20Logger iOS LoggerClient L2123 use the current queue thread to get its name pTL DR Expose emlog handler em block in your API phrpHere is suggestion to make logging configurable very easily with logger class as part of your public API Let’s call it codeMYLibraryLogger code ppre code MYLibraryLogger import lt Foundation Foundation gt typedef NS ENUM NSUInteger MYLogLevel MYLogLevelError MYLogLevelWarning MYLogLevelInfo MYLogLevelDebug MYLogLevelVerbose MYLibraryLogger NSObject void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler code prepThis class has single method that allows client to register log handler block This makes it trivial for client to implement logging with their favorite library Here is how client would use it with href https github com fpillet NSLogger NSLogger ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line LogMessageRawF file int line function MYLibrary int level message code prepor with href https github com CocoaLumberjack CocoaLumberjack CocoaLumberjack ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line The MYLogLevel enum matches the DDLogFlag options from DDLog when shifted DDLog log YES message message level ddLogLevel flag lt lt level context MYLibraryLumberjackContext file file function function line line tag nil code prepHere is an implementation of codeMYLibraryLogger code with default log handler that only logs errors and warnings ppre code MYLibraryLogger import MYLibraryLogger static void LogHandler NSString void MYLogLevel const char const char NSUInteger NSString message void MYLogLevel level const char file const char function NSUInteger line if level MYLogLevelError level MYLogLevelWarning NSLog MYLibrary message MYLibraryLogger void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler LogHandler logHandler void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line if LogHandler LogHandler message level file function line code prepThe last missing piece for this solution to work is set of macros for you to use through your library ppre code MYLibraryLogger Private import lt Foundation Foundation gt import MYLibraryLogger MYLibraryLogger void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line define MYLibraryLog level message MYLibraryLogger logMessage message level level file FILE function PRETTY FUNCTION line LINE define MYLibraryLogError format MYLibraryLog MYLogLevelError return NSString stringWithFormat format VA ARGS define MYLibraryLogWarning format MYLibraryLog MYLogLevelWarning return NSString stringWithFormat format VA ARGS define MYLibraryLogInfo format MYLibraryLog MYLogLevelInfo return NSString stringWithFormat format VA ARGS define MYLibraryLogDebug format MYLibraryLog MYLogLevelDebug return NSString stringWithFormat format VA ARGS define MYLibraryLogVerbose format MYLibraryLog MYLogLevelVerbose return NSString stringWithFormat format VA ARGS code prepThen you just use it like this inside your library ppre codeMYLibraryLogError Operation finished with error error code prepNotice how the log emmessage em is block returning string instead of just string This way you can potentially avoid expensive computations if the defined log handler decides not to evaluate the message based on the log level as in the default log handler above This lets you write one liner logs with potentially costly log messages to compute with no performance hit if the log is discarded for example ppre codeMYLibraryLogDebug Object return object debugDescription code pre Except that it doesn keep file function and line information,1,How should handle logs in an Objective library objective logging pI’m writing an Objective library and in some places I’d like to log some information Using codeNSLog code is not ideal since it’s not configurable and has neither level support nor tag support CocoaLumberjack and NSLogger are both popular logging libraries supporting levels and contexts tags but I’d prefer not to depend on third party logging library ppHow can produce logs in configurable way that doesn’t force specific logging library upon my users,How should handle logs in an Objective library objective logging pI’m writing an Objective library and in some places I’d like to log some information Using codeNSLog code is not ideal since it’s not configurable and has neither level support nor tag support CocoaLumberjack and NSLogger are both popular logging libraries supporting levels and contexts tags but I’d prefer not to depend on third party logging library ppHow can produce logs in configurable way that doesn’t force specific logging library upon my users pTL DR Expose emlog handler em block in your API phrpHere is suggestion to make logging configurable very easily with logger class as part of your public API Let’s call it codeMYLibraryLogger code ppre code MYLibraryLogger import lt Foundation Foundation gt typedef NS ENUM NSUInteger MYLogLevel MYLogLevelError MYLogLevelWarning MYLogLevelInfo MYLogLevelDebug MYLogLevelVerbose MYLibraryLogger NSObject void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler code prepThis class has single method that allows client to register log handler block This makes it trivial for client to implement logging with their favorite library Here is how client would use it with href https github com fpillet NSLogger NSLogger ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line LogMessageRawF file int line function MYLibrary int level message code prepor with href https github com CocoaLumberjack CocoaLumberjack CocoaLumberjack ppre code MYLibraryLogger setLogHandler NSString message void MYLogLevel level const char file const char function NSUInteger line The MYLogLevel enum matches the DDLogFlag options from DDLog when shifted DDLog log YES message message level ddLogLevel flag lt lt level context MYLibraryLumberjackContext file file function function line line tag nil code prepHere is an implementation of codeMYLibraryLogger code with default log handler that only logs errors and warnings ppre code MYLibraryLogger import MYLibraryLogger static void LogHandler NSString void MYLogLevel const char const char NSUInteger NSString message void MYLogLevel level const char file const char function NSUInteger line if level MYLogLevelError level MYLogLevelWarning NSLog MYLibrary message MYLibraryLogger void setLogHandler void NSString message void MYLogLevel level const char file const char function NSUInteger line logHandler LogHandler logHandler void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line if LogHandler LogHandler message level file function line code prepThe last missing piece for this solution to work is set of macros for you to use through your library ppre code MYLibraryLogger Private import lt Foundation Foundation gt import MYLibraryLogger MYLibraryLogger void logMessage NSString void message level MYLogLevel level file const char file function const char function line NSUInteger line define MYLibraryLog level message MYLibraryLogger logMessage message level level file FILE function PRETTY FUNCTION line LINE define MYLibraryLogError format MYLibraryLog MYLogLevelError return NSString stringWithFormat format VA ARGS define MYLibraryLogWarning format MYLibraryLog MYLogLevelWarning return NSString stringWithFormat format VA ARGS define MYLibraryLogInfo format MYLibraryLog MYLogLevelInfo return NSString stringWithFormat format VA ARGS define MYLibraryLogDebug format MYLibraryLog MYLogLevelDebug return NSString stringWithFormat format VA ARGS define MYLibraryLogVerbose format MYLibraryLog MYLogLevelVerbose return NSString stringWithFormat format VA ARGS code prepThen you just use it like this inside your library ppre codeMYLibraryLogError Operation finished with error error code prepNotice how the log emmessage em is block returning string instead of just string This way you can potentially avoid expensive computations if the defined log handler decides not to evaluate the message based on the log level as in the default log handler above This lets you write one liner logs with potentially costly log messages to compute with no performance hit if the log is discarded for example ppre codeMYLibraryLogDebug Object return object debugDescription code pre 13801,179501,716759,NULL,NULL,NULL,0,NULL,NULL 13802,213642,779124,NULL,NULL,NULL,0,NULL,NULL 13803,70619,556060,NULL,NULL,NULL,0,NULL,NULL 13804,67184,875545,NULL,NULL,NULL,0,NULL,NULL 13805,76568,980730,Popular Question Critic Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 13806,315043,189082,NULL,NULL,NULL,0,NULL,NULL 13807,157594,1358180,NULL,NULL,NULL,0,NULL,NULL 13808,9154,162410,Notable Question Necromancer Nice Answer Taxonomist Yearling Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Guru Good Answer Good Answer Nice Question Nice Answer Enlightened Yearling Announcer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 13809,243078,1242280,Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 13810,258781,774179,Revival Yearling,NULL,NULL,0,NULL,NULL 13811,5936,336927,Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 13812,599109,609861,NULL,NULL,NULL,0,NULL,NULL 13813,116004,56602,Census,NULL,NULL,0,NULL,NULL 13814,113189,817133,NULL,NULL,NULL,0,NULL,NULL 13815,20571,787997,NULL,NULL,NULL,0,NULL,NULL 13816,275615,729876,NULL,NULL,NULL,0,NULL,NULL 13817,1505352,1545752,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 13818,638566,1001376,Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13819,723494,952837,NULL,NULL,NULL,0,NULL,NULL 13820,193696,835760,NULL,NULL,NULL,0,NULL,NULL 13821,1685457,1402608,Teacher,NULL,NULL,0,NULL,NULL 13822,5606,1402608,Teacher,NULL,NULL,0,NULL,NULL 13823,256462,58991,Explainer Civic Duty Nice Question Yearling Taxonomist Good Answer Informed Nice Answer Enlightened Yearling Nice Answer Nice Question Documentation User Good Answer Popular Question Yearling Necromancer Caucus Popular Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 13824,60994,100970,Nice Answer Enlightened Nice Answer Nice Answer slf4j Guru Yearling Announcer Nice Answer Enlightened Guru Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Caucus Good Answer Nice Answer Revival Good Answer Good Answer Good Answer Custodian Good Answer Yearling Nice Answer Enlightened Great Answer Good Answer,NULL,strongDisclaimer strong am the founder of log4j SLF4J and logback projects ppThere are objective reasons for preferring SLF4J For one strongSLF4J allows the end user the liberty to choose the underlying logging framework strong In addition savvier users tend to prefer href http logback qos ch reasonsToSwitch html rel nofollow noreferrer logback which offers capabilities beyond log4j with falling way behind Feature wise may be sufficient for some users but for many others it just isn In nutshell if logging is important to you you would want to use SLF4J with logback as the underlying implementation If logging is unimportant is fine ppHowever as an oss developer you need to take into account the preferences of your users and not just your own It follows that you should adopt SLF4J not because emyou em are convinced that SLF4J is better than but because most Java developers currently July 2012 prefer SLF4J as their logging API If ultimately you decide not to care about popular opinion consider the following facts pollithose who prefer do so out of convenience because is bundled with the JDK To my knowledge there are no other objective arguments in favor of liliyour own preference for is just that ema preference em li olpThus holding hard facts above public opinion while seemingly brave is logical fallacy in this case ppIf still not convinced href https stackoverflow com users 571407 jb nizet JB Nizet makes an additional and potent argument pblockquote pExcept the end user could have already done this customization for his own code or another library that uses log4j or logback is extensible but having to extend logback log4j and God only knows which other logging framework because he uses four libraries that use four different logging frameworks is cumbersome By using SLF4J you allow him to configure the logging frameworks he wants not the one you have chosen strongRemember that typical project uses myriads of libraries and not just yours strong blockquotepIf for whatever reason you hate the SLF4J API and using it will snuff the fun out of your work then by all means go for After all there are means to href http www slf4j org legacy html jul to slf4j rel nofollow noreferrer redirect to SLF4J ppBy the way parametrization is at least 10 times slower than SLF4J which ends up making noticeable difference The essence of my post is that different developers have different preferences which seems beyond dispute Yes Calculating the difference between two Java date instances java date time timedelta java util date pI using Java codejava util Date code class in Scala and want to compare codeDate code object and the current time know can calculate the delta by using getTime ppre code new java util Date getTime oldDate getTime code prepHowever this just leaves me with codelong code representing milliseconds Is there any simpler nicer way to get time delta For most of the solutions outlined here and elsewhere they are inaccurate when Daylight savings time DST is taken into account Indeed when 24 hours are added to Saturday 2016 03 26T23 30 CET the resulting date is 2016 03 28T00 30 CET and two day frontiers are crossed Indeed DST goes into effect on Sunday 2016 03 27T02 00 Central European Time The DST issue is not specific to CET and occurs each tme the period being considered contains DST going into effect,0,NULL,NULL 13825,235909,513286,Yearling Caucus Announcer Caucus Self-Learner Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13826,2894,86577,Caucus,NULL,NULL,0,NULL,NULL 13827,98546,159346,Custodian Custodian Notable Question Popular Question Yearling Good Question Good Question Popular Question Custodian Notable Question Informed Notable Question Yearling Good Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 13828,201038,206009,NULL,NULL,NULL,0,NULL,NULL 13829,106404,599130,Excavator Informed,NULL,NULL,0,NULL,NULL 13830,1972755,811566,NULL,NULL,NULL,0,NULL,NULL 13831,17768,42021,Yearling Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13832,439199,409887,NULL,NULL,NULL,0,NULL,NULL 13833,71577,776823,NULL,NULL,NULL,0,NULL,NULL 13834,169961,681532,NULL,NULL,NULL,0,NULL,NULL 13835,7005378,570775,NULL,NULL,NULL,0,NULL,NULL 13836,177545,570775,NULL,NULL,NULL,0,NULL,NULL 13837,291868,134397,Notable Question Great Question Nice Question Good Question Nice Answer Famous Question Nice Question Favorite Question Enthusiast Notable Question Good Question Nice Question Yearling Notable Question Famous Question Good Question Nice Question Famous Question Nice Question Good Question Good Question Notable Question Notable Question Good Answer Nice Question Famous Question Nice Question Famous Question Famous Question Notable Question Popular Question Nice Question Famous Question Nice Question Nice Question Nice Question Good Question Yearling Notable Question Notable Question Popular Question Popular Question Favorite Question Popular Question Nice Question Popular Question Yearling Good Question Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 13838,690187,393046,Notable Question Notable Question Popular Question Popular Question Notable Question Announcer Popular Question Notable Question Necromancer Civic Duty Famous Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13839,285570,1366519,Organizer Caucus Caucus Constituent Custodian Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 13840,935649,105015,Good Answer Yearling Yearling Caucus Constituent Nice Question Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 13841,806168,157852,Good Answer Custodian Yearling Nice Answer Enlightened Good Answer Good Answer Yearling Guru Yearling Nice Answer,NULL,NULL,1,Go GL Project method giving unexpected results opengl go go gl pGo GL Project method is giving me unexpectedly large screen coordinates ppTo summarize ppre code Screen is 800x600 projection mgl32 Perspective mgl32 DegToRad 45 Field of view 45 degrees 800 600 Aspect ratio Near at 10 Far at 10 camera mgl32 LookAtV mgl32 Vec3 10 Camera out on and slightly above mgl32 Vec3 Looking at the origin mgl32 Vec3 Up is positive model mgl32 Ident4 Simple model matrix to avoid confusion modelView camera Mul4 model The model view matrix camera here Okay so what does the origin translate to Expect center of screen with arbitrary seeming depth origin mgl32 Vec3 screenOrigin mgl32 Project origin modelView projection 800 600 fmt Printf Origin screenOrigin screenOrigin screenOrigin What about the point to the right of the origin Expect increased but still less than screenWidth and should be the same as for the origin In my actual program drew cube at and it is completely visible in the window test mgl32 Vec3 screenTest mgl32 Project test modelView projection 800 600 fmt Printf Test screenTest screenTest screenTest code prepThe results ppre codeOrigin 400 300 500255 Test 4021 32 300 500255 code prep4021 32 That WAY off the screen ppI ve pretty much eliminated all the variables can think of except for the cube rendering using as hint basicall My code is based on this but moved the camera and the cube href https github com go gl examples tree master gl41core cube rel nofollow https github com go gl examples tree master gl41core cube ppI get the same results if use as the input vector and translate Ident4 by units in which makes sense ppSo what am doing wrong Based on the position of the cube drawing would expect something like 625,NULL 13842,47221,1084729,Organizer Explainer Yearling,NULL,NULL,0,NULL,NULL 13843,330450,1253919,NULL,NULL,NULL,0,NULL,NULL 13844,50180,222482,NULL,NULL,NULL,0,NULL,NULL 13845,125704,1502810,Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 13846,1517714,1064829,Informed Revival,NULL,NULL,0,NULL,NULL 13847,92753,646923,Nice Answer Necromancer Caucus,NULL,NULL,0,NULL,NULL 13848,701152,1034113,NULL,NULL,NULL,0,NULL,NULL 13849,1472584,461348,Yearling Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 13850,231367,218830,Popular Question Yearling Yearling Custodian Excavator Yearling,NULL,NULL,0,NULL,NULL 13851,525609,1245989,Yearling Custodian,NULL,NULL,0,NULL,NULL 13852,8731868,1245989,Yearling Custodian,NULL,NULL,0,NULL,NULL 13853,1504171,586986,Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Excavator Popular Question Popular Question Famous Question Notable Question Good Question Self-Learner Famous Question Good Question Popular Question Notable Question Nice Question Popular Question Informed Notable Question Popular Question Great Question Caucus Popular Question Famous Question Popular Question Notable Question Yearling Famous Question Favorite Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Necromancer Popular Question Notable Question Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Yearling Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Announcer Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question,NULL,pCheckout this benchmark href http jsben ch bWfk9 rel noreferrer http jsben ch bWfk9 ppIn my previous tests where speed was main concern found ppre codeJSON parse JSON stringify obj code prepto be the fastest way to deep clone an object it beats out href https api jquery com jQuery extend rel noreferrer jQuery extend with deep flag set true by 10 20 ppjQuery extend is pretty fast when the deep flag is set to false shallow clone It is good option because it includes some extra logic for type validation and doesn copy over undefined properties etc but this will also slow you down little ppIf you know the structure of the objects you are trying to clone or can avoid deep nested arrays you can write simple codefor var in obj code loop to clone your object while checking hasOwnProperty and it will be much much faster than jQuery ppLastly if you are attempting to clone known object structure in hot loop you can get MUCH MUCH MORE PERFORMANCE by simply in lining the clone procedure and manually constructing the object ppJavaScript trace engines suck at optimizing codefor in code loops and checking hasOwnProperty will slow you down as well Manual clone when speed is an absolute must ppre codevar clonedObject knownProp obj knownProp code prepBeware using the codeJSON parse JSON stringify obj code method on codeDate code objects codeJSON stringify new Date code returns string representation of the date in ISO format which codeJSON parse code strongdoesn strong convert back to codeDate code object href https stackoverflow com questions 11491938 issues with date when using json stringify and json parse 11491993 11491993 See this answer for more details ppAdditionally please note that in Chrome 65 at least native cloning is not the way to go According to href https jsperf com efficient deep cloning teqniques rel noreferrer this JSPerf performing native cloning by creating new function is nearly strong800x strong slower than using JSON stringify which is incredibly fast all the way across the board “This one line of Javascript made FT com 10 times slower” https medium com ft product technology this one line of javascript made ft com 10 times slower 5afb02bfd93f,0,NULL,NULL 13854,38400,17094,NULL,NULL,NULL,0,NULL,NULL 13855,5502101,554246,Yearling Caucus Constituent Caucus Constituent Documentation User Census Caucus,NULL,NULL,0,NULL,NULL 13856,153994,835727,NULL,NULL,NULL,0,NULL,NULL 13857,119749,119796,Supporter,NULL,NULL,0,NULL,NULL 13858,898988,1032566,NULL,NULL,NULL,0,NULL,NULL 13859,110785,242451,Yearling Guru Popular Question Yearling Notable Question Good Answer Yearling Nice Question Civic Duty Yearling Announcer,NULL,NULL,0,NULL,NULL 13860,51315,693597,NULL,NULL,NULL,0,NULL,NULL 13861,455241,1212909,Editor Scholar,NULL,NULL,0,NULL,NULL 13862,194642,251094,Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 13863,1512290,780098,NULL,NULL,NULL,0,NULL,NULL 13864,190219,977236,NULL,NULL,NULL,0,NULL,NULL 13865,399441,1064857,NULL,NULL,NULL,0,NULL,NULL 13866,99688,879148,NULL,NULL,NULL,0,NULL,NULL 13867,200069,1218128,NULL,NULL,NULL,0,NULL,NULL 13868,104325,368553,NULL,NULL,NULL,0,NULL,NULL 13869,161255,850812,Necromancer Yearling Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13870,2601619,1044712,Scholar Supporter Notable Question Curious,NULL,NULL,0,NULL,NULL 13871,913849,810779,NULL,NULL,NULL,0,NULL,NULL 13872,1981620,1290113,NULL,NULL,NULL,0,NULL,NULL 13873,291030,977201,Revival Scholar Necromancer Yearling Caucus Editor Critic Announcer Enthusiast Caucus Announcer Caucus,NULL,NULL,0,NULL,NULL 13874,4623291,933925,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 13875,170873,569312,NULL,NULL,NULL,0,NULL,NULL 13876,910,1462474,Talkative,NULL,NULL,0,NULL,NULL 13877,713556,246284,NULL,NULL,NULL,0,NULL,NULL 13878,773030,134369,NULL,NULL,NULL,0,NULL,NULL 13879,2644091,920824,Popular Question,NULL,NULL,0,NULL,NULL 13880,162339,690794,Enthusiast,NULL,NULL,0,NULL,NULL 13881,3914727,1216614,NULL,NULL,NULL,0,NULL,NULL 13882,642537,877026,NULL,NULL,NULL,0,NULL,NULL 13883,274563,23657,Famous Question Nice Answer Yearling Notable Question Nice Question Yearling Revival Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 13884,798066,1176637,NULL,NULL,NULL,0,NULL,NULL 13885,3280472,1176637,NULL,NULL,NULL,0,NULL,NULL 13886,1161040,554389,Popular Question Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 13887,196266,964018,Notable Question Caucus Popular Question Announcer Benefactor Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13888,167741,297646,NULL,NULL,NULL,0,NULL,NULL 13889,310096,360829,python Enlightened Nice Answer Necromancer Yearling Popular Question Nice Answer Enlightened Revival Necromancer Great Answer Nice Answer Yearling Necromancer Notable Question Nice Answer Populist Necromancer Nice Answer Necromancer Yearling Great Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 13890,1095741,424214,Yearling Yearling,NULL,NULL,0,NULL,NULL 13891,794804,449396,NULL,NULL,NULL,0,NULL,NULL 13892,56878,794485,Famous Question Announcer Popular Question Yearling Self-Learner Tumbleweed Nice Question Notable Question Announcer Popular Question Notable Question Yearling Necromancer Notable Question Caucus Constituent Notable Question Documentation User Nice Question Good Answer Popular Question Yearling Enthusiast,NULL,NULL,0,NULL,NULL 13893,119160,796775,NULL,NULL,NULL,0,NULL,NULL 13894,64616,75950,Commentator Caucus Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 13895,622328,315993,NULL,NULL,NULL,0,NULL,NULL 13896,125204,1085922,NULL,NULL,NULL,0,NULL,NULL 13897,300196,980933,Critic,NULL,NULL,0,NULL,NULL 13898,90191,1505119,Editor Critic Caucus Constituent,NULL,NULL,0,NULL,NULL 13899,242716,704213,NULL,NULL,NULL,0,NULL,NULL 13900,973687,625071,Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 13901,153017,1119944,NULL,NULL,NULL,0,NULL,NULL 13902,336294,28258,Popular Question Taxonomist Great Answer Nice Answer Nice Answer Revival Yearling Nice Answer Great Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Notable Question Yearling Good Answer Nice Answer Yearling Great Answer Nice Question,NULL,NULL,0,NULL,NULL 13903,277972,1070036,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 13904,394427,407094,Yearling,NULL,NULL,0,NULL,NULL 13905,1408544,688393,Popular Question Yearling Guru Nice Answer Good Answer Famous Question Notable Question Popular Question Yearling Nice Answer Caucus Good Answer Tumbleweed Popular Question Documentation User Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 13906,308356,1421663,NULL,NULL,,0,, 13907,145280,785085,Popular Question Popular Question Good Question Famous Question Caucus Yearling,NULL,NULL,0,NULL,NULL 13908,194844,1012982,Informed Autobiographer,NULL,NULL,0,NULL,NULL 13909,473552,461949,Teacher Student Scholar Supporter Tumbleweed Revival,NULL,NULL,0,NULL,NULL 13910,834144,1312149,NULL,NULL,NULL,0,NULL,NULL 13911,37488,947584,NULL,NULL,NULL,0,NULL,NULL 13912,1017412,199647,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 13913,1601349,199647,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 13914,171116,304383,Nice Answer Popular Question Yearling Taxonomist Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 13915,826005,782458,NULL,NULL,NULL,0,NULL,NULL 13916,26452,957936,Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 13917,608017,1159656,NULL,NULL,NULL,0,NULL,NULL 13918,151961,768586,Necromancer Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 13919,904546,652752,NULL,NULL,NULL,0,NULL,NULL 13920,267554,40765,NULL,NULL,NULL,0,NULL,NULL 13921,1167860,692237,NULL,NULL,NULL,0,NULL,NULL 13922,70259,1389919,NULL,NULL,NULL,0,NULL,NULL 13923,903502,619096,NULL,NULL,NULL,0,NULL,NULL 13924,184689,971121,Custodian Necromancer Nice Answer Nice Answer Nice Answer Yearling Good Answer Good Answer Revival Guru git Good Answer Necromancer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Good Answer Guru Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 13925,1120217,869385,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 13926,1416234,599086,NULL,NULL,NULL,0,NULL,NULL 13927,52898,47579,Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 13928,7879,1190046,Announcer Yearling Peer Pressure Necromancer Yearling Necromancer Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 13929,1517125,952046,Notable Question Famous Question Custodian Popular Question Excavator Informed Taxonomist Reviewer Yearling Popular Question Famous Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 13930,447867,722158,NULL,NULL,NULL,0,NULL,NULL 13931,694802,896702,Teacher Famous Question Popular Question Curious Yearling,NULL,NULL,0,NULL,NULL 13932,166607,1472588,Yearling Revival Enthusiast Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13933,179996,1244210,Notable Question,NULL,NULL,0,NULL,NULL 13934,351716,1520767,Editor Teacher Supporter Commentator Informed Autobiographer Critic Enthusiast Scholar Yearling Yearling Tenacious Custodian Custodian Custodian Yearling Caucus Constituent Peer Pressure Documentation User Yearling Yearling Caucus Constituent Popular Question Student Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 13935,363248,1105543,NULL,NULL,NULL,0,NULL,NULL 13936,117383,1049498,NULL,NULL,NULL,0,NULL,NULL 13937,76248,814627,NULL,NULL,NULL,0,NULL,NULL 13938,304372,886517,NULL,NULL,NULL,0,NULL,NULL 13939,463163,234121,Popular Question Yearling Notable Question Good Answer Nice Answer Necromancer Necromancer Popular Question Good Answer Yearling Civic Duty Nice Question,NULL,NULL,0,NULL,NULL 13940,1078267,234121,Popular Question Yearling Notable Question Good Answer Nice Answer Necromancer Necromancer Popular Question Good Answer Yearling Civic Duty Nice Question,NULL,NULL,0,NULL,NULL 13941,183221,363018,Notable Question Popular Question Critic Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 13942,2736730,1033798,Nice Answer Yearling Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 13943,4568,1033798,Nice Answer Yearling Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 13944,251728,1284852,Tumbleweed Popular Question Supporter Teacher Curious,NULL,NULL,0,NULL,NULL 13945,352632,260499,NULL,NULL,NULL,0,NULL,NULL 13946,2505,1142534,NULL,NULL,NULL,0,NULL,NULL 13947,443041,1408616,NULL,NULL,NULL,0,NULL,NULL 13948,96442,21814,Nice Answer Enlightened Custodian Nice Answer Enlightened Necromancer ios Explainer Yearling Nice Answer Notable Question swift Caucus Constituent Yearling Documentation User Nice Answer Enlightened Census Yearling,NULL,NULL,0,NULL,NULL 13949,239943,244115,NULL,NULL,NULL,0,NULL,NULL 13950,207835,585996,NULL,NULL,NULL,0,NULL,NULL 13951,252623,1258296,NULL,NULL,NULL,0,NULL,NULL 13952,9653,534555,Revival,NULL,NULL,0,NULL,NULL 13953,105592,1393036,NULL,NULL,NULL,0,NULL,NULL 13954,433328,933163,Critic,NULL,NULL,0,NULL,NULL 13955,81401,61728,Curious,NULL,NULL,0,NULL,NULL 13956,2108765,1097130,Teacher Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 13957,844938,119326,Great Answer Nice Answer Enlightened Populist Yearling Announcer Good Answer Deputy Yearling Nice Answer Popular Question Census Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 13958,3840313,1092709,NULL,NULL,NULL,0,NULL,NULL 13959,365709,945840,Necromancer Nice Answer Supporter,NULL,NULL,0,NULL,NULL 13960,1065505,1290368,Necromancer Yearling Nice Answer Critic Yearling Editor Revival Civic Duty Custodian Caucus Good Answer Yearling Necromancer Caucus Yearling Necromancer Necromancer Commentator Populist Nice Answer Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 13961,429331,105760,Notable Question Nice Answer Proofreader Yearling Notable Question Popular Question Popular Question Notable Question Favorite Question Good Question Good Question Good Question Good Question Custodian Custodian Famous Question Yearling Nice Answer Enlightened Notable Question Popular Question Famous Question Popular Question Famous Question Pundit Popular Question Yearling Favorite Question Famous Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 13962,3885896,549304,NULL,NULL,NULL,0,NULL,NULL 13963,582153,522253,NULL,NULL,NULL,0,NULL,NULL 13964,70907,607808,Scholar Curious Teacher Commentator Informed,NULL,NULL,0,NULL,NULL 13965,798,872392,NULL,NULL,NULL,0,NULL,NULL 13966,197269,970946,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 13967,106469,1416190,NULL,NULL,NULL,0,NULL,NULL 13968,125192,1376052,NULL,NULL,NULL,0,NULL,NULL 13969,234146,1141531,Popular Question Notable Question Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 13970,26724,51308,Yearling Nice Answer Enlightened Favorite Question Yearling,NULL,NULL,0,NULL,NULL 13971,837497,13792,Nice Answer Good Answer Good Answer Guru Good Answer Nice Answer Guru Good Answer Good Answer Good Answer Good Answer Nice Answer Guru Good Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Guru Great Answer Nice Answer Yearling Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Taxonomist Nice Answer Guru guava Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Great Answer Good Answer Great Answer Nice Answer Great Answer Great Answer Good Answer Nice Answer Good Answer Yearling Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Populist Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 13972,85687,614478,NULL,NULL,NULL,0,NULL,NULL 13973,220803,1460426,NULL,NULL,NULL,0,NULL,NULL 13974,77827,1475712,NULL,NULL,NULL,0,NULL,NULL 13975,450534,531098,Notable Question Yearling Good Answer Nice Answer Populist Yearling Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 13976,1295863,941471,Necromancer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 13977,107553,1301862,NULL,NULL,NULL,0,NULL,NULL 13978,992518,823310,NULL,NULL,NULL,0,NULL,NULL 13979,185864,1042331,NULL,NULL,NULL,0,NULL,NULL 13980,1598,168255,NULL,NULL,NULL,0,NULL,NULL 13981,1354803,63696,Notable Question,NULL,NULL,0,NULL,NULL 13982,200429,1566335,NULL,NULL,NULL,0,NULL,NULL 13983,59381,1216454,NULL,NULL,NULL,0,NULL,NULL 13984,4534059,809886,NULL,NULL,NULL,0,NULL,NULL 13985,4781767,809886,NULL,NULL,NULL,0,NULL,NULL 13986,18030,809886,NULL,NULL,NULL,0,NULL,NULL 13987,7322193,809886,NULL,NULL,NULL,0,NULL,NULL 13988,9144077,809886,NULL,NULL,NULL,0,NULL,NULL 13989,9144108,809886,NULL,NULL,NULL,0,NULL,NULL 13990,289322,278981,Yearling Notable Question Popular Question Census Popular Question Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 13991,3926,1232645,NULL,NULL,NULL,0,NULL,NULL 13992,1791699,1364607,NULL,NULL,NULL,0,NULL,NULL 13993,186147,187421,Yearling Good Question Commentator Yearling,NULL,NULL,0,NULL,NULL 13994,322337,420260,Yearling Good Answer,NULL,NULL,0,NULL,NULL 13995,306142,806799,NULL,NULL,NULL,0,NULL,NULL 13996,1474543,906105,Informed Editor,NULL,NULL,0,NULL,NULL 13997,62494,336596,Popular Question,NULL,NULL,0,NULL,NULL 13998,47465,261247,NULL,NULL,NULL,0,NULL,NULL 13999,6306098,1176873,Popular Question Popular Question Notable Question Custodian Popular Question Self-Learner Popular Question Popular Question Editor Notable Question Caucus Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14000,173443,378063,Informed Autobiographer,NULL,NULL,0,NULL,NULL 14001,10437378,378063,Informed Autobiographer,NULL,NULL,0,NULL,NULL 14002,382752,543200,Informed Yearling,NULL,NULL,0,NULL,NULL 14003,258705,938187,NULL,NULL,NULL,0,NULL,NULL 14004,418145,282647,NULL,NULL,NULL,0,NULL,NULL 14005,146514,145049,NULL,NULL,NULL,0,NULL,NULL 14006,11007841,834376,NULL,NULL,NULL,0,NULL,NULL 14007,8208329,1077353,NULL,NULL,NULL,0,NULL,NULL 14008,724757,1077353,NULL,NULL,NULL,0,NULL,NULL 14009,1638417,1331122,NULL,NULL,NULL,0,NULL,NULL 14010,6265264,1331122,NULL,NULL,NULL,0,NULL,NULL 14011,62998,89082,Yearling Nice Question Popular Question Nice Question Notable Question Popular Question Enthusiast Good Question Yearling Notable Question Revival Notable Question Critic Popular Question Caucus Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 14012,72419,1219927,Caucus Caucus Informed Caucus Yearling,NULL,NULL,0,NULL,NULL 14013,897206,225885,Popular Question Popular Question Notable Question Nice Question Famous Question Good Question Socratic Famous Question Nice Answer Nice Question Notable Question Nice Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Nice Answer Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Yearling Good Question Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14014,363816,897076,Supporter Scholar Informed Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 14015,97915,256856,Yearling,NULL,NULL,0,NULL,NULL 14016,588788,1560418,NULL,NULL,NULL,0,NULL,NULL 14017,444533,591097,Revival Yearling Necromancer Revival Necromancer Nice Answer Good Answer Yearling Necromancer Revival Revival Great Answer Electorate Revival Nice Answer Yearling Announcer Custodian Custodian Custodian Custodian Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 14018,1362162,1232164,Popular Question,NULL,NULL,0,NULL,NULL 14019,116290,466180,NULL,NULL,NULL,0,NULL,NULL 14020,364313,41665,Populist Great Answer Good Question Great Answer Favorite Question Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Good Answer Yearling Good Question Good Answer Good Answer Favorite Question Guru Good Answer Good Answer Good Answer Great Question Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 14021,131226,812888,Revival Necromancer,NULL,NULL,0,NULL,NULL 14022,178280,190039,NULL,NULL,NULL,0,NULL,NULL 14023,159172,837251,Yearling Nice Answer Yearling Notable Question javascript Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14024,889778,83897,Popular Question Good Question Nice Question Notable Question Famous Question Notable Question Favorite Question Yearling Notable Question Great Answer Popular Question Famous Question Notable Question Popular Question Notable Question Necromancer Nice Answer Popular Question Good Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Answer Famous Question Popular Question Nice Question Famous Question Nice Question Popular Question Famous Question Notable Question Nice Question Good Question Yearling Popular Question Notable Question Popular Question Announcer Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Necromancer Nice Question Notable Question Notable Question Popular Question Popular Question Good Answer Popular Question Nice Question Popular Question Popular Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Revival Popular Question,NULL,pI say neither ph2Why not 404 Not Found h2pThe 404 status code should be reserved for situations in which resource is not found In this case your resource is ema collection of users em This collection exists but it currently empty Personally be very confused as an author of client for your application if got code200 code one day and code404 code the next day just because someone happened to remove couple of users What am supposed to do Is my URL wrong Did someone change the API and neglect to leave redirection ph2Why not 204 No Content h2pHere an excerpt from href http www w3 org Protocols rfc2616 rfc2616 sec10 html rel noreferrer the description of the 204 status code by w3c pblockquote pThe server has fulfilled the request but does not need to return an entity body and might want to return updated metainformation blockquotepWhile this may seem reasonable in this case think it would also confuse clients code204 code is supposed to indicate that some operation was executed successfully and no data needs to be returned This is perfect as response to codeDELETE code request or perhaps firing some script that does not need to return data In case of codeapi users code you usually expect to receive representation of your collection of users Sending response body one time and not sending it the other time is inconsistent and potentially misleading ph2Why use 200 OK h2pFor reasons mentioned above consistency would return representation of an empty collection Let assume you re using XML normal response body for non empty collection of users could look like this ppre code lt users gt lt user gt lt id gt lt id gt lt name gt Tom lt name gt lt user gt lt user gt lt id gt lt id gt lt name gt IMB lt name gt lt user gt lt users gt code prepand if the list is empty you could just respond with something like this while still using code200 code ppre code lt users gt code prepEither way client receives response body that follows certain well known format There no unnecessary confusion and status code checking Also no status code definition is violated Everybody happy ppYou can do the same with JSON or HTML or whatever format you re using Definitely agree And for REST would simply send back status code of 200 with an empty array,0,NULL,NULL 14025,447393,828827,Popular Question,NULL,NULL,0,NULL,NULL 14026,192323,858611,NULL,NULL,NULL,0,NULL,NULL 14027,1516145,377519,NULL,NULL,NULL,0,NULL,NULL 14028,885511,747540,NULL,NULL,NULL,0,NULL,NULL 14029,12880,140328,Custodian Custodian Custodian Popular Question Notable Question Yearling Caucus Guru Popular Question Yearling Caucus Constituent Popular Question Good Question Nice Answer Good Answer Popular Question Popular Question Yearling Famous Question,NULL,pAll the gory details can be found in the current RFC on the topic href http www ietf org rfc rfc3986 txt rel noreferrer RFC 3986 Uniform Resource Identifier URI Generic Syntax ppBased on href https stackoverflow com questions 1547899 which characters make url invalid 1547940 1547940 this related answer you are looking at list that looks like codeA code codea code code0 code code code code code code code code code code code code code code code code code code code code code code code code code code code code amp code code code code code code code code code code code code code code code and code code Everything else must be href http www w3schools com tags ref urlencode asp rel noreferrer url encoded Also some of these characters can only exist in very specific spots in URI the RFC has all of these specifics FYI gave response on that exact comment above already,0,NULL,NULL 14030,448488,158854,NULL,NULL,NULL,0,NULL,NULL 14031,97201,1551570,Teacher Revival,NULL,NULL,0,NULL,NULL 14032,14332,635958,NULL,NULL,NULL,0,NULL,NULL 14033,703999,1178453,Famous Question Revival Self-Learner,NULL,NULL,0,NULL,NULL 14034,531103,721092,NULL,NULL,NULL,0,NULL,NULL 14035,411474,25416,Good Answer Custodian Yearling Good Answer Nice Answer Popular Question Notable Question Good Answer Yearling Notable Question Guru Custodian Custodian Nice Answer Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 14036,12287,57,Nice Question,NULL,NULL,0,NULL,NULL 14037,156588,312404,NULL,NULL,NULL,0,NULL,NULL 14038,44944,547546,Editor Famous Question Good Question Yearling Census Critic,NULL,Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM Can you link to where it says it not well defined Or do you mean by its omission of NaN There are many other NaN values too The method is very clear in why it exists and its handling of NaN Also Double NaN won work because of how the compiler inlines it you have to DNEG it at runtime Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM Empirically have confirmed that it does preserve the bits on eager return like that and what am having my compiler do think you are right that the maintainers will just fix the docs to be like Math abs and say they return NaN instead of the exact argument Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM Bug opened at http bugs java com bugdatabase view bug do bug id JDK 8177950 Sadly they re not paying attention and are just dismissing whilst trying to teach me about NaN,1,Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM,NULL 14039,84640,37309,Favorite Question Notable Question Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 14040,171701,254792,Promoter Enthusiast Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14041,8782685,254792,Promoter Enthusiast Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14042,294964,482494,Nice Answer Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 14043,86495,364798,Nice Answer Critic Announcer Yearling,NULL,NULL,0,NULL,NULL 14044,252477,51484,Notable Question,NULL,NULL,0,NULL,NULL 14045,1683476,293492,Nice Answer Nice Answer Yearling Populist Good Answer Necromancer Yearling Caucus Nice Answer Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 14046,10174256,293492,Nice Answer Nice Answer Yearling Populist Good Answer Necromancer Yearling Caucus Nice Answer Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 14047,8699459,293492,Nice Answer Nice Answer Yearling Populist Good Answer Necromancer Yearling Caucus Nice Answer Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 14048,490968,1296676,NULL,NULL,NULL,0,NULL,NULL 14049,223144,205219,NULL,NULL,NULL,0,NULL,NULL 14050,50027,1344864,Good Answer Necromancer Nice Answer Yearling Good Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14051,202152,293585,Popular Question Good Question Notable Question Notable Question Nice Question Notable Question Popular Question Yearling Famous Question Great Question Popular Question Nice Question Yearling Nice Question Benefactor Popular Question Famous Question Favorite Question Yearling Favorite Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 14052,1477583,1164802,Editor Yearling,NULL,NULL,0,NULL,NULL 14053,3270,619117,NULL,NULL,NULL,0,NULL,NULL 14054,580509,777708,Commentator,NULL,NULL,0,NULL,NULL 14055,35081,157947,NULL,NULL,NULL,0,NULL,NULL 14056,129531,168155,Yearling,NULL,NULL,0,NULL,NULL 14057,463638,642763,NULL,NULL,NULL,0,NULL,NULL 14058,18142,181343,Yearling,NULL,NULL,0,NULL,NULL 14059,100826,23300,Great Answer Custodian Yearling Proofreader Custodian Nice Answer Popular Question Caucus Yearling Documentation User Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 14060,93746,490592,Necromancer Popular Question Announcer Yearling Cleanup Necromancer Revival Yearling Announcer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14061,64735,1345127,NULL,NULL,NULL,0,NULL,NULL 14062,245967,487900,NULL,NULL,NULL,0,NULL,NULL 14063,94373,693936,NULL,NULL,NULL,0,NULL,NULL 14064,419077,744216,Editor Scholar,NULL,NULL,0,NULL,NULL 14065,59552,5458,Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 14066,83876,230956,Informed Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14067,178349,18992,Favorite Question Yearling Great Question Tumbleweed Notable Question Nice Question Yearling Popular Question Popular Question Necromancer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 14068,118993,228415,NULL,NULL,NULL,0,NULL,NULL 14069,141891,1402129,NULL,NULL,NULL,0,NULL,NULL 14070,140587,94416,Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Custodian Census Popular Question,NULL,NULL,0,NULL,NULL 14071,187193,1261963,Census Curious Tumbleweed,NULL,NULL,0,NULL,NULL 14072,537827,203724,NULL,NULL,NULL,0,NULL,NULL 14073,122357,1211524,Fanatic Yearling Nice Answer Enlightened Nice Answer Nice Answer Good Answer Yearling Census Announcer google-closure-compiler Good Answer Caucus Announcer Revival Census Yearling Caucus Announcer Good Answer,NULL,NULL,0,NULL,NULL 14074,253298,177425,Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 14075,687661,182097,Yearling,NULL,NULL,0,NULL,NULL 14076,24496,1405456,NULL,NULL,NULL,0,NULL,NULL 14077,107156,417212,Popular Question,NULL,NULL,0,NULL,NULL 14078,92513,341979,NULL,NULL,NULL,0,NULL,NULL 14079,888289,1214951,Yearling Nice Answer Nice Answer Enlightened Tenacious Nice Answer Yearling Good Answer Guru ruby-on-rails Yearling ruby Good Answer Good Answer,NULL,NULL,0,NULL,NULL 14080,710064,1483691,Yearling,NULL,NULL,0,NULL,NULL 14081,208541,967526,Good Answer Yearling Commentator Yearling Yearling Custodian Informed Caucus Yearling Necromancer Revival Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 14082,1853298,1150867,NULL,NULL,NULL,0,NULL,NULL 14083,1218035,473574,NULL,NULL,NULL,0,NULL,NULL 14084,104012,1256069,Populist Nice Answer Enlightened Yearling Yearling Critic Editor Student Scholar Yearling Yearling,NULL,NULL,0,NULL,NULL 14085,654492,360904,NULL,NULL,NULL,0,NULL,NULL 14086,77717,1203118,NULL,NULL,NULL,0,NULL,NULL 14087,516653,325398,Yearling,NULL,NULL,0,NULL,NULL 14088,85406,406725,NULL,NULL,NULL,0,NULL,NULL 14089,291711,1300992,Civic Duty Informed Necromancer,NULL,NULL,0,NULL,NULL 14090,774007,292497,NULL,NULL,NULL,0,NULL,NULL 14091,2029631,1029614,Notable Question Yearling Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14092,139537,245691,Citizen Patrol Critic Yearling,NULL,NULL,0,NULL,NULL 14093,36083,118609,Student,NULL,NULL,0,NULL,NULL 14094,42408,1101298,NULL,NULL,NULL,0,NULL,NULL 14095,42206,506486,NULL,NULL,NULL,0,NULL,NULL 14096,4023170,970005,NULL,NULL,NULL,0,NULL,NULL 14097,185304,450206,Notable Question Notable Question Popular Question Yearling Popular Question Stellar Question Great Question Popular Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 14098,389796,1055475,Famous Question Popular Question Explainer Yearling Notable Question Custodian Announcer Notable Question Caucus Revival Notable Question Custodian Custodian Custodian Census Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14099,1177990,1041137,Popular Question Notable Question Notable Question Notable Question Popular Question Promoter Notable Question Yearling Enthusiast Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 14100,9288,1427628,NULL,NULL,NULL,0,NULL,NULL 14101,313353,125804,Popular Question Popular Question Popular Question Nice Answer Popular Question Nice Answer Yearling Notable Question Caucus Good Answer Famous Question Popular Question Yearling Popular Question Caucus Popular Question Good Answer Populist Caucus Custodian Notable Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 14102,272186,964723,NULL,NULL,NULL,0,NULL,NULL 14103,181164,426509,Caucus Yearling,NULL,NULL,0,NULL,NULL 14104,238954,1024384,NULL,NULL,NULL,0,NULL,NULL 14105,523144,43165,NULL,NULL,NULL,0,NULL,NULL 14106,158908,123486,Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14107,172524,1046940,NULL,NULL,NULL,0,NULL,NULL 14108,4741,1100161,Yearling Guru,NULL,NULL,0,NULL,NULL 14109,121409,778860,NULL,NULL,NULL,0,NULL,NULL 14110,280217,821934,NULL,NULL,NULL,0,NULL,NULL 14111,2474145,76014,NULL,NULL,NULL,0,NULL,NULL 14112,614517,410307,Famous Question,NULL,NULL,0,NULL,NULL 14113,1147331,877229,NULL,NULL,NULL,0,NULL,NULL 14114,1326969,754745,NULL,NULL,NULL,0,NULL,NULL 14115,82825,929102,NULL,NULL,NULL,0,NULL,NULL 14116,283599,486920,Guru Favorite Question Nice Answer Yearling Caucus Documentation User Yearling Caucus Custodian ruby Yearling,NULL,NULL,0,NULL,NULL 14117,340682,1158047,NULL,NULL,NULL,0,NULL,NULL 14118,40319,851264,NULL,NULL,NULL,0,NULL,NULL 14119,157024,1113995,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 14120,42331,1500011,NULL,NULL,NULL,0,NULL,NULL 14121,94894,1346610,Yearling Curious Yearling Good Question Editor Custodian Popular Question Yearling Nice Question Notable Question Popular Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14122,701,552038,Yearling Nice Answer Yearling Good Answer Yearling Mortarboard Yearling Revival Custodian Revival Guru Yearling Revival Revival Necromancer Revival Yearling Revival,NULL,NULL,0,NULL,NULL 14123,1423747,821689,Yearling,NULL,NULL,0,NULL,NULL 14124,431051,1337176,NULL,NULL,NULL,0,NULL,NULL 14125,656848,1207374,NULL,NULL,NULL,0,NULL,NULL 14126,358678,767166,Yearling Popular Question Nice Answer Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 14127,440868,514326,Famous Question,NULL,NULL,0,NULL,NULL 14128,3787647,429980,NULL,NULL,NULL,0,NULL,NULL 14129,2098005,920572,Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14130,97606,374699,NULL,NULL,NULL,0,NULL,NULL 14131,107848,195130,Popular Question Custodian Popular Question Popular Question Enlightened Yearling Caucus Popular Question Notable Question Good Answer Great Answer Nice Question Yearling Good Answer Taxonomist Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14132,445941,626084,Yearling Notable Question Nice Question Popular Question Good Answer Revival Notable Question Caucus Constituent Popular Question Yearling Notable Question Custodian Popular Question Necromancer Caucus Revival Nice Answer Yearling Popular Question Famous Question Great Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14133,572702,558599,Supporter,NULL,NULL,0,NULL,NULL 14134,272037,722094,Documentation Pioneer Yearling Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 14135,900788,727951,NULL,NULL,NULL,0,NULL,NULL 14136,42841,1432047,Editor Supporter Informed Autobiographer Custodian Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 14137,1092518,1436382,NULL,NULL,NULL,0,NULL,NULL 14138,19684,950061,NULL,NULL,NULL,0,NULL,NULL 14139,175826,552796,Famous Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14140,1244271,433292,Civic Duty Notable Question Yearling Revival Nice Question Notable Question,NULL,NULL,0,NULL,NULL 14141,18788,966649,Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 14142,341995,316121,NULL,NULL,NULL,0,NULL,NULL 14143,64083,1489151,NULL,NULL,NULL,0,NULL,NULL 14144,375049,1229848,Teacher Editor Supporter Informed Suffrage Commentator Enthusiast Vox Populi Promoter Benefactor Popular Question Documentation User,NULL,NULL,0,NULL,NULL 14145,295479,697088,NULL,NULL,NULL,0,NULL,NULL 14146,657631,681234,NULL,NULL,NULL,0,NULL,NULL 14147,1849191,492013,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 14148,170403,492013,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 14149,919823,1155517,NULL,NULL,NULL,0,NULL,NULL 14150,332678,851606,NULL,NULL,NULL,0,NULL,NULL 14151,46996,1273107,NULL,NULL,NULL,0,NULL,NULL 14152,143133,443016,Nice Answer Yearling Caucus Nice Answer Caucus Yearling Announcer Great Answer Announcer Caucus Yearling,NULL,NULL,0,NULL,NULL 14153,822696,238504,Informed,NULL,NULL,0,NULL,NULL 14154,1092933,653114,Autobiographer,NULL,NULL,0,NULL,NULL 14155,3867488,474947,NULL,NULL,NULL,0,NULL,NULL 14156,294949,245362,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14157,415557,1287790,Popular Question Announcer Critic Notable Question Self-Learner Announcer,NULL,NULL,0,NULL,NULL 14158,59768,344702,Popular Question,NULL,NULL,0,NULL,NULL 14159,753546,1418556,NULL,NULL,NULL,0,NULL,NULL 14160,134522,711515,Yearling Nice Answer Caucus Yearling Necromancer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 14161,137367,1455348,NULL,NULL,NULL,0,NULL,NULL 14162,2910616,565573,Supporter,NULL,NULL,0,NULL,NULL 14163,330667,1012045,NULL,NULL,NULL,0,NULL,NULL 14164,145931,60903,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 14165,275339,1165123,Famous Question Good Question Notable Question Popular Question Nice Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 14166,97654,1292317,NULL,NULL,NULL,0,NULL,NULL 14167,161956,300996,Notable Question Yearling Popular Question Custodian Popular Question Yearling Caucus Good Answer Necromancer Yearling Nice Question Popular Question Notable Question Autobiographer Custodian,NULL,NULL,0,NULL,NULL 14168,43655,501538,NULL,NULL,NULL,0,NULL,NULL 14169,252001,739914,NULL,NULL,NULL,0,NULL,NULL 14170,163108,1237601,NULL,NULL,NULL,0,NULL,NULL 14171,118154,459299,NULL,NULL,NULL,0,NULL,NULL 14172,44384,530425,Supporter,NULL,NULL,0,NULL,NULL 14173,218860,467744,NULL,NULL,NULL,0,NULL,NULL 14174,92903,1260496,Teacher Popular Question,NULL,NULL,0,NULL,NULL 14175,41433,1123187,Supporter Necromancer,NULL,NULL,0,NULL,NULL 14176,1516402,1460025,NULL,NULL,NULL,0,NULL,NULL 14177,69005,595673,NULL,NULL,NULL,0,NULL,NULL 14178,108399,1118690,NULL,NULL,NULL,0,NULL,NULL 14179,155410,960494,Announcer,NULL,NULL,0,NULL,NULL 14180,115980,48203,NULL,NULL,NULL,0,NULL,NULL 14181,75611,198082,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14182,157924,617975,NULL,NULL,NULL,0,NULL,NULL 14183,189396,1309423,Nice Question Self-Learner Curious Caucus Constituent Caucus Constituent Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14184,987793,880841,NULL,NULL,NULL,0,NULL,NULL 14185,557645,568254,Yearling Notable Question Popular Question Necromancer Yearling Popular Question Nice Answer Popular Question Popular Question Self-Learner Caucus Good Answer Custodian Yearling Nice Answer Enlightened Census Caucus Guru Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 14186,4597042,476413,NULL,NULL,NULL,0,NULL,NULL 14187,852554,476413,NULL,NULL,NULL,0,NULL,NULL 14188,131417,70191,Revival Nice Answer Enlightened Yearling Popular Question Nice Answer Tumbleweed Yearling Necromancer Nice Answer Curious Nice Answer Yearling django Necromancer Announcer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 14189,102743,555362,Student Supporter Teacher Scholar Revival Yearling Critic Commentator Yearling Enthusiast Custodian Tumbleweed Caucus Citizen Patrol Curious Popular Question Yearling Caucus Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 14190,149910,566741,Revival,NULL,NULL,0,NULL,NULL 14191,308944,1038432,Census,NULL,NULL,0,NULL,NULL 14192,321117,287839,Popular Question Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14193,333097,558820,Necromancer Nice Question Custodian Nice Question Nice Answer Excavator Popular Question Good Answer Popular Question Notable Question Yearling Good Answer Documentation User Nice Answer Yearling,NULL,Upgrading all packages with pip python pip pIs it possible to upgrade all Python packages at one time with strong href https pypi python org pypi pip rel noreferrer codepip code strong ppNote that there is href https github com pypa pip issues 59 rel noreferrer feature request for this on the official issue tracker Up to date feature request and discussion https github com pypa pip issues 4551,0,NULL,NULL 14194,9957,272839,Benefactor Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Answer Good Answer Nice Answer Popular Question Notable Question Notable Question Nice Answer Enlightened Popular Question Notable Question Notable Question Good Question Notable Question Nice Question Notable Question Nice Question Yearling Popular Question Guru Notable Question Notable Question Notable Question Good Answer Notable Question Notable Question Documentation User Great Answer Good Answer Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Famous Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 14195,15831,48483,Good Question Good Answer Notable Question Necromancer Notable Question Popular Question Yearling Popular Question Popular Question Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14196,1133572,1284721,NULL,NULL,NULL,0,NULL,NULL 14197,173635,560109,NULL,NULL,NULL,0,NULL,NULL 14198,669393,324712,NULL,NULL,NULL,0,NULL,NULL 14199,194516,5645,c# Nice Answer Nice Answer Good Answer Necromancer Guru Great Answer Nice Question Yearling Nice Answer Necromancer Good Answer Notable Question Pundit Yearling Famous Question Necromancer Good Answer Good Answer Yearling Great Answer Famous Question,NULL,NULL,0,NULL,NULL 14200,676,122493,Critic Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 14201,410417,1305726,NULL,NULL,NULL,0,NULL,NULL 14202,205768,153067,Notable Question Editor,NULL,NULL,0,NULL,NULL 14203,1037509,921748,NULL,NULL,NULL,0,NULL,NULL 14204,72604,777793,NULL,NULL,NULL,0,NULL,NULL 14205,254556,221918,NULL,NULL,NULL,0,NULL,NULL 14206,250897,1052618,NULL,NULL,NULL,0,NULL,NULL 14207,647675,488228,NULL,NULL,NULL,0,NULL,NULL 14208,411211,131284,Famous Question,NULL,NULL,0,NULL,NULL 14209,235363,869004,NULL,NULL,NULL,0,NULL,NULL 14210,273094,1513139,Informed Editor Tumbleweed Student,NULL,NULL,0,NULL,NULL 14211,63922,1320510,Nice Answer Nice Answer Stellar Question Necromancer Necromancer Explainer Necromancer Good Answer Good Answer Yearling Nice Answer Good Answer Nice Answer Necromancer Necromancer Cleanup Necromancer Custodian Custodian Revival Necromancer Nice Answer Good Answer Announcer Caucus Constituent Nice Answer Custodian Necromancer Great Answer Yearling Necromancer Nice Answer Necromancer Good Answer Necromancer Nice Answer Necromancer Caucus Nice Answer Nice Answer Notable Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 14212,112887,573180,Yearling Famous Question Yearling Necromancer Notable Question Popular Question Revival Yearling Popular Question Popular Question Nice Answer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 14213,83440,67342,Yearling Notable Question Nice Answer Nice Answer Enlightened Good Question Popular Question Yearling Famous Question Nice Question Popular Question Good Answer Taxonomist Yearling Famous Question Good Answer Guru Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14214,21795,9900,Civic Duty Informed Popular Question Stellar Question Yearling Proofreader Explainer Popular Question Popular Question Popular Question Nice Answer Enlightened Nice Question Yearling Nice Answer Custodian Necromancer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 14215,82048,129171,Notable Question Popular Question Popular Question Yearling Nice Question Good Question Yearling Famous Question Famous Question Popular Question Great Question Yearling Famous Question Yearling Famous Question Good Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 14216,366005,1106267,Caucus,NULL,NULL,0,NULL,NULL 14217,1564646,1538392,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14218,438256,1140478,NULL,NULL,NULL,0,NULL,NULL 14219,438071,1309264,NULL,NULL,NULL,0,NULL,NULL 14220,874111,497993,NULL,NULL,NULL,0,NULL,NULL 14221,42132,590327,Good Answer,NULL,NULL,0,NULL,NULL 14222,157561,1430667,NULL,NULL,NULL,0,NULL,NULL 14223,146906,96235,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14224,896627,195128,Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 14225,338724,63193,Yearling Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 14226,29096,680590,NULL,NULL,NULL,0,NULL,NULL 14227,159067,459901,NULL,NULL,NULL,0,NULL,NULL 14228,103059,117065,Popular Question Yearling,NULL,NULL,0,NULL,NULL 14229,102400,1359936,NULL,NULL,NULL,0,NULL,NULL 14230,67718,910509,Yearling,NULL,NULL,0,NULL,NULL 14231,158149,1058310,NULL,NULL,NULL,0,NULL,NULL 14232,97299,257235,Nice Answer Yearling Great Question Favorite Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14233,215646,1503421,NULL,NULL,NULL,0,NULL,NULL 14234,315626,170746,Necromancer Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 14235,222862,230550,Guru jquery Yearling Great Answer Curious Great Answer Peer Pressure Custodian Yearling Caucus Constituent Informed Popular Question,NULL,NULL,0,NULL,NULL 14236,291297,852738,Notable Question,NULL,NULL,0,NULL,NULL 14237,1279359,500308,Yearling Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14238,253195,928250,Notable Question,NULL,NULL,0,NULL,NULL 14239,175873,680626,Nice Answer,NULL,NULL,0,NULL,NULL 14240,148221,460925,NULL,NULL,NULL,0,NULL,NULL 14241,460180,895071,NULL,NULL,NULL,0,NULL,NULL 14242,2418,110209,NULL,NULL,NULL,0,NULL,NULL 14243,1166141,1273455,Yearling Notable Question Good Question Yearling Nice Question Notable Question Favorite Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 14244,616808,381847,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14245,26530,491963,NULL,NULL,NULL,0,NULL,NULL 14246,236316,1133125,NULL,NULL,NULL,0,NULL,NULL 14247,165643,43364,Popular Question Guru Custodian,NULL,NULL,0,NULL,NULL 14248,929090,957646,NULL,NULL,NULL,0,NULL,NULL 14249,222046,938451,NULL,NULL,NULL,0,NULL,NULL 14250,192085,431926,NULL,NULL,NULL,0,NULL,NULL 14251,1223811,566882,Necromancer,NULL,NULL,0,NULL,NULL 14252,196375,1297063,NULL,NULL,NULL,0,NULL,NULL 14253,10008358,1297063,NULL,NULL,NULL,0,NULL,NULL 14254,598921,159618,Popular Question,NULL,NULL,0,NULL,NULL 14255,1295991,508708,Notable Question Nice Question Nice Answer Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 14256,310375,517961,NULL,NULL,,0,, 14257,914161,1440166,NULL,NULL,NULL,0,NULL,NULL 14258,37554,157016,NULL,NULL,NULL,0,NULL,NULL 14259,397193,768680,Yearling Yearling Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 14260,475806,836217,NULL,NULL,NULL,0,NULL,NULL 14261,4890609,836217,NULL,NULL,NULL,0,NULL,NULL 14262,1280178,961400,NULL,NULL,NULL,0,NULL,NULL 14263,867835,1318631,NULL,NULL,NULL,0,NULL,NULL 14264,768983,913394,Nice Answer Enlightened Nice Answer Yearling Popular Question Famous Question Yearling Popular Question Caucus Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14265,101513,1552414,Custodian Yearling Yearling Yearling Announcer,NULL,pTried this Should work in both code htaccess code codehttpd conf code and in codeVirtualHost code usually placed in codehttpd vhosts conf code if you have included it from your httpd conf ppre code lt filesMatch html htm js css gt FileETag None lt ifModule mod headers gt Header unset ETag Header set Cache Control max age no cache no store must revalidate Header set Pragma no cache Header set Expires Wed 11 Jan 1984 05 00 00 GMT lt ifModule gt lt filesMatch gt code preblockquote p100 Prevent Files from being cached pThis is similar to how google ads employ the header Cache Control private gzip ok to prevent caching of ads by proxies and clients blockquotepFrom href http www askapache com htaccess using http headers with htaccess html rel noreferrer http www askapache com htaccess using http headers with htaccess html ppAnd optionally add the extension for the template files you are retrieving if you are using an extension other than code html code for those mo Yes it possible It regular expression you can try filesMatch or filesMatch,0,NULL,NULL 14266,271715,124056,NULL,NULL,NULL,0,NULL,NULL 14267,431816,1143915,Supporter Editor Tumbleweed Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 14268,3142,47322,Great Answer Notable Question Nice Question Famous Question Yearling Popular Question Famous Question Good Question Nice Answer Enlightened Yearling Good Answer Good Answer Popular Question Guru,NULL,NULL,0,NULL,NULL 14269,226155,910445,NULL,NULL,NULL,0,NULL,NULL 14270,201762,297526,Nice Question Yearling Popular Question Notable Question Famous Question Yearling Popular Question Revival Notable Question Excavator Yearling Nice Question,NULL,NULL,0,NULL,NULL 14271,240271,69299,Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 14272,166,491341,Nice Answer Enlightened Popular Question Yearling Famous Question Yearling Nice Answer Famous Question Popular Question Notable Question Great Answer Popular Question Nice Question Yearling Popular Question Popular Question Good Answer Great Answer,NULL,MongoDB only creates text search index with language override option mongodb mongoose pUsing mongoDB version can only get text index created if supply the language override option as below this is in Mongoose ppre codeschema index foo text bar text language override text code prepWithout the codelanguage override code option the index is never created Does anyone know why this is The library is Mongoose,1,MongoDB only creates text search index with language override option mongodb mongoose pUsing mongoDB version can only get text index created if supply the language override option as below this is in Mongoose ppre codeschema index foo text bar text language override text code prepWithout the codelanguage override code option the index is never created Does anyone know why this is,NULL 14273,240120,135968,Famous Question Yearling Announcer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 14274,766176,1392985,Student Supporter Scholar Editor,NULL,NULL,0,NULL,NULL 14275,153336,636761,NULL,NULL,NULL,0,NULL,NULL 14276,67110,176723,Notable Question objective-c Famous Question Yearling Notable Question Nice Answer Enlightened Yearling Guru Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 14277,630589,875172,Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14278,544466,643804,Tumbleweed,NULL,NULL,0,NULL,NULL 14279,3721110,846988,NULL,NULL,NULL,0,NULL,NULL 14280,354285,496413,Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 14281,81166,537716,Student Scholar Yearling Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 14282,137649,1297277,NULL,NULL,NULL,0,NULL,NULL 14283,6696877,1034874,NULL,NULL,NULL,0,NULL,NULL 14284,17399,87417,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 14285,87069,124040,Notable Question,NULL,NULL,0,NULL,NULL 14286,133540,279234,Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14287,106041,78259,Good Answer Nice Answer Yearling Popular Question Popular Question Good Answer Good Answer unix Notable Question Famous Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Enlightened Good Answer Nice Question Good Answer Good Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Great Answer Popular Question Famous Question Famous Question Nice Answer Yearling Good Answer Nice Answer Promoter Nice Question Nice Answer Nice Answer Good Answer Famous Question Notable Question Populist Nice Answer Popular Question Nice Answer Yearling Good Answer Nice Answer Popular Question Notable Question Good Answer Popular Question Good Answer Taxonomist Nice Answer Enlightened Nice Answer Populist,NULL,pThe easiest method have found so far is to say ppre codewget http cpanmin us perl perl5 App cpanminus local libeval perl perl5 lib perl5 Mlocal lib echo eval perl perl5 lib perl5 Mlocal lib gt gt profileecho export MANPATH HOME perl5 man MANPATH gt gt profile code prepThis assumes your profile is named code profile code you may need to change that to be code bash profile code code bashrc code etc After that you can install modules by saying ppre codecpanm Module Name code prepand simply use them the same way you would if the were installed in the root directories phrpWhat follows is brief explanation of what the commands above do pp codewget http cpanmin us code fetches the latest version of codecpanm code and prints it to codeSTDOUT code which is then piped to codeperl perl5 App cpanminus local lib code The first code code tells codeperl code to expect the program to come in on codeSTDIN code this makes codeperl code run the version of codecpanm code we just downloaded codeperl code passes the rest of the arguments to codecpanm code The code perl5 code argument tells codecpanm code where to install Perl modules and the other two arguments are two modules to install code App cpanmins code href http search cpan org dist App cpanminus lib App cpanminus pm rel noreferrer is the package that installs codecpanm code href http search cpan org dist local lib lib local lib pm rel noreferrer codelocal lib code is helper module that manages the environment variables needed to run modules in local directory ppAfter those modules are installed we run ppre codeeval perl perl5 lib perl5 Mlocal lib code prepto set the environment variables needed to use the local modules and then ppre codeecho eval perl perl5 lib perl5 Mlocal lib gt gt profile code prepto ensure we will be able to use them the next time we log in ppre codeecho export MANPATH HOME perl5 man MANPATH gt gt profile code prepwill hopefully cause man to find the man pages for your local modules Child processes cannot modify the environment of parent processes To deal with this commands like perl perl5 lib perl5 Mlocal lib or ssh agent that need to set environment variables for parent process print out the commands that need to be run in the parent process and then you eval them You don actually need to eval them though You could say perl perl5 lib perl5 Mlocal lib tmp commands source tmp commands but the eval method is cleaner no files to clean up or accidentally overwrite,0,NULL,NULL 14288,1088100,1159960,Necromancer Student Supporter,NULL,NULL,0,NULL,NULL 14289,1034993,115150,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14290,1093424,344269,Good Answer Yearling Guru Nice Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 14291,624712,258629,NULL,NULL,NULL,0,NULL,NULL 14292,637820,210130,Good Answer Notable Question Nice Answer Good Answer Guru Good Answer Yearling Popular Question Nice Answer Populist Nice Answer Yearling Popular Question Yearling,NULL,pSince am using background image none of these solutions worked well for me Here is solution that does some fun objective magic and offers drop in solution with minimal code ppFirst add category to codeUIButton code that overrides the hit test and also adds property for expanding the hit test frame pp strong emUIButton Extensions em strong ppre code UIButton Extensions nonatomic assign UIEdgeInsets hitTestEdgeInsets code prep strong emUIButton Extensions em strong ppre code import UIButton Extensions import lt objc runtime gt UIButton Extensions hitTestEdgeInsets static const NSString KEY HIT TEST EDGE INSETS HitTestEdgeInsets void setHitTestEdgeInsets UIEdgeInsets hitTestEdgeInsets NSValue value NSValue value amp hitTestEdgeInsets withObjCType UIEdgeInsets objc setAssociatedObject self amp KEY HIT TEST EDGE INSETS value OBJC ASSOCIATION RETAIN NONATOMIC UIEdgeInsets hitTestEdgeInsets NSValue value objc getAssociatedObject self amp KEY HIT TEST EDGE INSETS if value UIEdgeInsets edgeInsets value getValue amp edgeInsets return edgeInsets else return UIEdgeInsetsZero BOOL pointInside CGPoint point withEvent UIEvent event if UIEdgeInsetsEqualToEdgeInsets self hitTestEdgeInsets UIEdgeInsetsZero self enabled self hidden return super pointInside point withEvent event CGRect relativeFrame self bounds CGRect hitFrame UIEdgeInsetsInsetRect relativeFrame self hitTestEdgeInsets return CGRectContainsPoint hitFrame point code prepOnce this class is added all you need to do is set the edge insets of your button Note that chose to add the insets so if you want to make the hit area larger you must use negative numbers ppre code button setHitTestEdgeInsets UIEdgeInsetsMake 10 10 10 10 code prepNote Remember to import the category code import UIButton Extensions code in your classes don disagree This sort of monkey patching is not ideal don have subclass solution unfortunately Feel free to provide one,0,NULL,NULL 14293,273156,1144734,NULL,NULL,NULL,0,NULL,NULL 14294,481760,139916,Tumbleweed,NULL,NULL,0,NULL,NULL 14295,9148,281699,Revival Yearling Yearling Great Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 14296,161521,1244783,Yearling,NULL,NULL,0,NULL,NULL 14297,1386549,766812,Notable Question,NULL,NULL,0,NULL,NULL 14298,1280925,965673,Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 14299,81717,1222881,Revival Commentator Tag Editor,NULL,NULL,0,NULL,NULL 14300,1625296,1174200,NULL,NULL,NULL,0,NULL,NULL 14301,437499,1100416,Nice Question,NULL,NULL,0,NULL,NULL 14302,125684,535831,NULL,NULL,NULL,0,NULL,NULL 14303,210398,827598,NULL,NULL,NULL,0,NULL,NULL 14304,1873832,827598,NULL,NULL,NULL,0,NULL,NULL 14305,1387051,1162101,NULL,NULL,NULL,0,NULL,NULL 14306,25410,967218,Self-Learner,NULL,NULL,0,NULL,NULL 14307,29256,568805,Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 14308,389057,325844,NULL,NULL,NULL,0,NULL,NULL 14309,895708,1415672,Commentator Organizer Scholar Explainer Nice Answer Caucus Popular Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 14310,7207,49462,NULL,NULL,NULL,0,NULL,NULL 14311,1566974,1073982,NULL,NULL,NULL,0,NULL,NULL 14312,503993,629804,Necromancer Yearling Nice Answer Excavator Organizer Popular Question Suffrage Vox Populi Electorate Notable Question Popular Question Nice Answer Nice Answer Popular Question Popular Question Popular Question Caucus Good Answer Popular Question Yearling Great Question Popular Question Notable Question Popular Question Popular Question Good Answer Yearling Caucus Notable Question Popular Question Popular Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 14313,1079623,620692,NULL,NULL,NULL,0,NULL,NULL 14314,805617,457744,NULL,NULL,NULL,0,NULL,NULL 14315,1023596,318158,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14316,10556,593036,Yearling Famous Question Good Answer Good Answer Yearling Popular Question Favorite Question Popular Question Inquisitive Popular Question Popular Question Nice Question Yearling Notable Question Excavator Famous Question Popular Question Revival Nice Question,NULL,NULL,0,NULL,NULL 14317,296275,1459754,NULL,NULL,NULL,0,NULL,NULL 14318,53332,957270,Student Editor Self-Learner Nice Question Popular Question Critic Notable Question Scholar Yearling,NULL,NULL,0,NULL,NULL 14319,853935,793744,NULL,NULL,NULL,0,NULL,NULL 14320,190418,660274,Revival Custodian Yearling Commentator Famous Question Nice Question Popular Question Good Answer Yearling Notable Question Curious,NULL,NULL,0,NULL,NULL 14321,162315,108961,NULL,NULL,NULL,0,NULL,NULL 14322,746048,1014348,Scholar,NULL,NULL,0,NULL,NULL 14323,82093,757806,Notable Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 14324,226889,381462,Census Census,NULL,NULL,0,NULL,NULL 14325,471185,908128,Editor Scholar Supporter,NULL,NULL,0,NULL,NULL 14326,216314,314572,NULL,NULL,NULL,0,NULL,NULL 14327,30235,271475,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Necromancer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Yearling rspec Generalist Good Answer Nice Answer Enlightened Great Answer Announcer Nice Answer Nice Answer Enlightened Peer Pressure Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 14328,199321,2619,Good Answer Yearling,NULL,NULL,0,NULL,NULL 14329,720052,250100,Notable Question,NULL,NULL,0,NULL,NULL 14330,151393,389169,Supporter Student Commentator,NULL,pAll the answers or the same answer repeated over and over are inadequate What you want to do is this ppre codefrom setuptools command easy install import easy installclass easy install default easy install class easy install had problems with the fist parameter not being an instance of Distribution even though it was This is due to some import related mess def init self from distutils dist import Distribution dist Distribution self distribution dist self initialize options self dry run None self verbose dist verbose self force None self help self finalized 0e easy install default import distutils errorstry finalize options except distutils errors DistutilsError passprint install dir code prepThe final line shows you the installation dir Works on Ubuntu whereas the above ones don Don ask me about windows or other dists but since it the exact same dir that easy install uses by default it probably correct everywhere where easy install works so everywhere even macs Have fun Note original code has many swearwords in it indeed this is not perfect but it worked for me and took lot of time to figure out so put it here in hopes someone else can build upon the time ve spent on it already,0,NULL,NULL 14331,85683,980430,Necromancer Enthusiast Critic Caucus Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 14332,399455,318790,Announcer Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 14333,1519169,265749,NULL,NULL,NULL,0,NULL,NULL 14334,927092,970308,Great Answer Notable Question Famous Question Notable Question Good Question Famous Question Yearling Nice Answer Good Question Popular Question Popular Question Popular Question Notable Question Nice Question Yearling Nice Question Popular Question Organizer Popular Question Popular Question Popular Question Notable Question Popular Question Great Answer Announcer Notable Question Notable Question java Explainer Nice Answer Favorite Question Custodian Nice Answer Notable Question Favorite Question Yearling Notable Question Famous Question Revival,NULL,Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes Wow that is very complete answer Unfortunately am seeing it trigger about 100 reloads second via the prometheus logs Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes Maybe if it did an md5 comparison on the file before making the curl Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes ll try this http unix stackexchange com 166608 Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes stand corrected it actually does work can reproduce my run away refresh mode Thanks Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes Container is gone now Please post the Dockerfile contents here How can register secondary servlet with Spring Boot java spring spring boot pI have an extra servlet need to register in my application However with Spring Boot and its Java Config can just add servlet mappings in codeweb xml code file ppHow can add additional servlets It has been many years can recall the usecase had at the time Perhaps it was to leverage the DropWizard metric exporter servlet since it offered way to visualize the metric that had been collected SpringBoot later incoporated that into an actuator endpoint itself And Micrometer io solves the problem even better,0,NULL,NULL 14335,627233,964865,NULL,NULL,NULL,0,NULL,NULL 14336,29908,215277,Popular Question Caucus Revival Enthusiast,NULL,NULL,0,NULL,NULL 14337,4532,20838,Yearling Caucus,NULL,NULL,0,NULL,NULL 14338,37812,1019205,Curious Necromancer Informed Suffrage Vox Populi Yearling Notable Question,NULL,NULL,0,NULL,NULL 14339,143649,28836,Guru Nice Question Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 14340,37454,1136809,NULL,NULL,NULL,0,NULL,NULL 14341,909855,245120,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14342,404838,1513316,NULL,NULL,NULL,0,NULL,NULL 14343,232223,521749,Popular Question Student,NULL,NULL,0,NULL,NULL 14344,44092,1365022,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 14345,188948,1064252,NULL,NULL,NULL,0,NULL,NULL 14346,226129,951578,Popular Question,NULL,NULL,0,NULL,NULL 14347,114615,1432609,NULL,NULL,NULL,0,NULL,NULL 14348,268504,842290,NULL,NULL,NULL,0,NULL,NULL 14349,2708176,667602,NULL,NULL,NULL,0,NULL,NULL 14350,1386512,1438557,NULL,NULL,NULL,0,NULL,NULL 14351,926719,893960,Notable Question,NULL,NULL,0,NULL,NULL 14352,91195,955345,NULL,NULL,NULL,0,NULL,NULL 14353,6503948,1032542,NULL,NULL,NULL,0,NULL,NULL 14354,410660,453203,NULL,NULL,NULL,0,NULL,NULL 14355,543879,1489417,NULL,NULL,NULL,0,NULL,NULL 14356,170810,665197,Scholar Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14357,214840,889064,Yearling Great Answer Necromancer Yearling Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 14358,395675,675554,NULL,NULL,NULL,0,NULL,NULL 14359,286002,719893,NULL,NULL,NULL,0,NULL,NULL 14360,251740,1471177,Teacher Student,NULL,NULL,0,NULL,NULL 14361,350481,1094988,Enthusiast,NULL,NULL,0,NULL,NULL 14362,124229,1466173,NULL,NULL,NULL,0,NULL,NULL 14363,267711,1358474,NULL,NULL,NULL,0,NULL,NULL 14364,169824,1215974,NULL,NULL,NULL,0,NULL,NULL 14365,902680,845070,Notable Question Popular Question Nice Answer Famous Question Popular Question Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 14366,113081,245363,Yearling Announcer Caucus Caucus Necromancer,NULL,NULL,0,NULL,NULL 14367,155441,1115359,NULL,NULL,NULL,0,NULL,NULL 14368,169494,373422,Yearling Popular Question Civic Duty Yearling Custodian Caucus Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14369,151834,1142646,NULL,NULL,NULL,0,NULL,NULL 14370,187558,437897,NULL,NULL,NULL,0,NULL,NULL 14371,104614,838116,NULL,NULL,NULL,0,NULL,NULL 14372,91545,1430917,NULL,NULL,NULL,0,NULL,NULL 14373,791312,644146,NULL,NULL,NULL,0,NULL,NULL 14374,183074,619424,Yearling Custodian Popular Question Tumbleweed Self-Learner Yearling Census Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 14375,45190,979787,NULL,NULL,NULL,0,NULL,NULL 14376,45090,1097968,NULL,NULL,NULL,0,NULL,NULL 14377,258717,523657,NULL,NULL,NULL,0,NULL,NULL 14378,4085848,115005,Yearling Necromancer Nice Question Notable Question Popular Question Notable Question Revival Yearling Necromancer Notable Question Good Question Yearling Necromancer Popular Question Good Question,NULL,NULL,0,NULL,NULL 14379,680927,1341073,NULL,NULL,NULL,0,NULL,NULL 14380,166185,798358,NULL,NULL,NULL,0,NULL,NULL 14381,1034650,798358,NULL,NULL,NULL,0,NULL,NULL 14382,128200,1000242,NULL,NULL,NULL,0,NULL,NULL 14383,426351,525557,NULL,NULL,NULL,0,NULL,NULL 14384,911501,1164272,NULL,NULL,NULL,0,NULL,NULL 14385,1503664,1116050,NULL,NULL,NULL,0,NULL,NULL 14386,127254,788722,Supporter Popular Question,NULL,NULL,0,NULL,NULL 14387,126903,1239437,NULL,NULL,NULL,0,NULL,NULL 14388,668320,347647,NULL,NULL,NULL,0,NULL,NULL 14389,3922990,789405,NULL,NULL,NULL,0,NULL,NULL 14390,515758,788072,Yearling Supporter Stellar Question Popular Question Good Question Yearling Notable Question Caucus Famous Question Notable Question Enthusiast Critic Yearling Famous Question,NULL,NULL,0,NULL,NULL 14391,106217,505763,Popular Question Announcer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 14392,164423,1031210,NULL,NULL,NULL,0,NULL,NULL 14393,895229,1095669,NULL,NULL,NULL,0,NULL,NULL 14394,19577,174993,Critic Yearling,NULL,NULL,0,NULL,NULL 14395,167685,489559,Yearling Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 14396,60589,1074615,NULL,NULL,NULL,0,NULL,NULL 14397,523047,1396606,Critic Informed Yearling Tenacious Custodian Organizer Explainer Citizen Patrol Yearling Caucus realm Notable Question android Yearling Nice Answer Enlightened Announcer Nice Answer Enlightened Caucus Nice Answer Enlightened Custodian Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 14398,9967,214151,Yearling Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 14399,924849,966894,NULL,NULL,NULL,0,NULL,NULL 14400,848848,452028,NULL,NULL,NULL,0,NULL,NULL 14401,506454,1278982,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14402,30053,81467,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 14403,201971,230774,Supporter,NULL,NULL,0,NULL,NULL 14404,441286,810095,NULL,NULL,NULL,0,NULL,NULL 14405,101676,1304664,NULL,NULL,NULL,0,NULL,NULL 14406,123203,851507,NULL,NULL,NULL,0,NULL,NULL 14407,115529,1077489,Supporter Enthusiast Necromancer Good Answer Commentator Nice Answer Yearling Caucus Tumbleweed Custodian Custodian Critic Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 14408,427652,420752,NULL,NULL,NULL,0,NULL,NULL 14409,898040,1391819,NULL,NULL,NULL,0,NULL,NULL 14410,3178699,1092315,NULL,NULL,NULL,0,NULL,NULL 14411,1065823,525497,Student,NULL,NULL,0,NULL,NULL 14412,1471639,1143685,NULL,NULL,NULL,0,NULL,NULL 14413,156990,1326153,NULL,NULL,NULL,0,NULL,NULL 14414,184034,714422,Nice Answer,NULL,NULL,0,NULL,NULL 14415,188531,1340170,Teacher,NULL,NULL,0,NULL,NULL 14416,889016,648383,NULL,NULL,NULL,0,NULL,NULL 14417,4397443,1258812,NULL,NULL,NULL,0,NULL,NULL 14418,713495,432020,Informed,NULL,NULL,0,NULL,NULL 14419,847785,465024,Teacher,NULL,NULL,0,NULL,NULL 14420,697584,811047,Famous Question Yearling Custodian Guru Caucus Constituent Good Answer Yearling Curious Caucus Yearling,NULL,NULL,0,NULL,NULL 14421,5583,22039,Nice Question Popular Question Popular Question Good Question Good Question Yearling Notable Question Famous Question Great Answer Yearling Great Answer Yearling,NULL,MySQL Check if the user exists and drop it mysql database pThere’s not standard way to check if MySQL user exists and based on that drop it Are there any workarounds for this ppEdit need straight way to run this without throwing up an errorbre ppre codeDROP USER test code pre if you could just put this as an answer ll mark it as the right one,0,NULL,NULL 14422,54173,553794,NULL,NULL,NULL,0,NULL,NULL 14423,270726,1477655,Not a Robot Nice Answer,NULL,NULL,0,NULL,NULL 14424,50920,727520,NULL,NULL,NULL,0,NULL,NULL 14425,716857,394647,Nice Question Necromancer Yearling Nice Answer Self-Learner Autobiographer Necromancer Custodian Citizen Patrol Revival Yearling Enthusiast Popular Question Popular Question Caucus Necromancer Announcer Yearling Caucus Constituent Good Question Necromancer Civic Duty,NULL,NULL,0,NULL,NULL 14426,2193257,1529448,NULL,NULL,NULL,0,NULL,NULL 14427,47981,186557,Documentation User,NULL,NULL,0,NULL,NULL 14428,9087,855632,Revival,NULL,NULL,0,NULL,NULL 14429,75880,829581,NULL,NULL,NULL,0,NULL,NULL 14430,538101,347760,NULL,NULL,NULL,0,NULL,NULL 14431,41664,347760,NULL,NULL,NULL,0,NULL,NULL 14432,80928,981814,NULL,NULL,NULL,0,NULL,NULL 14433,499753,1290103,Supporter,NULL,NULL,0,NULL,NULL 14434,10770090,38743,Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Good Question Notable Question Popular Question Popular Question Nice Question Good Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Famous Question Revival Popular Question ruby-on-rails Popular Question Famous Question Notable Question Nice Answer Popular Question Nice Answer Great Question Notable Question Good Question Yearling Nice Question Notable Question Nice Question Famous Question Notable Question Notable Question Famous Question Popular Question Favorite Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Necromancer Popular Question Nice Question Famous Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14435,285468,38743,Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Good Question Notable Question Popular Question Popular Question Nice Question Good Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Famous Question Revival Popular Question ruby-on-rails Popular Question Famous Question Notable Question Nice Answer Popular Question Nice Answer Great Question Notable Question Good Question Yearling Nice Question Notable Question Nice Question Famous Question Notable Question Notable Question Famous Question Popular Question Favorite Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Necromancer Popular Question Nice Question Famous Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14436,142774,488173,NULL,NULL,NULL,0,NULL,NULL 14437,111122,102019,Commentator Popular Question,NULL,NULL,0,NULL,NULL 14438,676019,449345,Announcer Yearling Popular Question Caucus Nice Question Popular Question Popular Question Yearling Announcer Popular Question Critic Notable Question,NULL,NULL,0,NULL,NULL 14439,68464,1296054,Editor Excavator,NULL,NULL,0,NULL,NULL 14440,46751,736950,NULL,NULL,NULL,0,NULL,NULL 14441,92204,1307200,Famous Question Yearling Great Question Yearling Yearling Stellar Question Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 14442,29529,31284,Good Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Great Answer Yearling Guru Nice Answer Good Answer Good Answer Nice Answer Custodian Yearling Guru Guru Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 14443,650622,309721,Yearling Custodian Caucus Tumbleweed Civic Duty Suffrage Caucus Necromancer Necromancer Yearling Custodian Peer Pressure Nice Answer,NULL,NULL,0,NULL,NULL 14444,498887,1540340,Teacher Supporter Custodian Explainer Yearling Commentator Yearling Critic Informed Autobiographer Yearling Necromancer Citizen Patrol Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14445,18226,238030,Nice Question Good Answer Good Answer Revival Notable Question Nice Answer Enlightened Good Question Nice Question Populist Good Answer Good Question Famous Question Nice Question Good Answer Good Question Good Question Yearling Popular Question Popular Question Nice Question Notable Question Notable Question Nice Question Notable Question Notable Question Nice Answer Good Answer Popular Question Popular Question Yearling Notable Question Famous Question Custodian Custodian Stellar Question Great Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 14446,149808,952728,NULL,NULL,NULL,0,NULL,NULL 14447,70557,952728,NULL,NULL,NULL,0,NULL,NULL 14448,1382395,223633,Nice Question Great Answer Guru Famous Question Good Answer Curious Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14449,2012562,1164585,NULL,NULL,NULL,0,NULL,NULL 14450,746533,1164585,NULL,NULL,NULL,0,NULL,NULL 14451,318241,1119697,NULL,NULL,NULL,0,NULL,NULL 14452,1507607,1107155,NULL,NULL,NULL,0,NULL,NULL 14453,375987,753953,Commentator,NULL,NULL,0,NULL,NULL 14454,304692,297293,NULL,NULL,NULL,0,NULL,NULL 14455,476945,1320626,Teacher Nice Answer Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 14456,331616,524784,Nice Question Citizen Patrol Yearling Notable Question Popular Question Notable Question Nice Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 14457,9685252,298519,Notable Question Nice Question Famous Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14458,39666,112614,Popular Question Yearling Great Question Promoter Nice Question Popular Question Yearling Good Answer Good Answer Custodian Custodian Electorate Great Question Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 14459,219818,1531992,Teacher,NULL,NULL,0,NULL,NULL 14460,212629,1014411,NULL,NULL,NULL,0,NULL,NULL 14461,1226376,103753,Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Nice Answer Popular Question Nice Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Revival Notable Question Famous Question Popular Question Nice Answer Yearling Notable Question Notable Question Documentation User Notable Question Nice Question Famous Question Good Question Yearling Popular Question Popular Question Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14462,36266,777292,Nice Question Notable Question Notable Question Yearling Custodian Caucus Constituent Excavator Reviewer Census Yearling Popular Question Caucus Constituent Documentation User Census Caucus Constituent Yearling Custodian Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 14463,12348,1191308,Critic,NULL,NULL,0,NULL,NULL 14464,165907,1122109,NULL,NULL,NULL,0,NULL,NULL 14465,457875,1001212,NULL,NULL,NULL,0,NULL,NULL 14466,209509,573616,Notable Question Famous Question Necromancer Notable Question Famous Question Famous Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Critic Popular Question Self-Learner Custodian,NULL,NULL,0,NULL,NULL 14467,373296,1035658,NULL,NULL,NULL,0,NULL,NULL 14468,435885,1188442,NULL,NULL,NULL,0,NULL,NULL 14469,1114275,787415,NULL,NULL,NULL,0,NULL,NULL 14470,1521340,987514,Notable Question Yearling Good Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 14471,108984,646359,Notable Question,NULL,NULL,0,NULL,NULL 14472,991650,895967,NULL,NULL,NULL,0,NULL,NULL 14473,856439,114996,Nice Answer Good Answer Nice Answer Guru Autobiographer Yearling Great Answer Good Answer Nice Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 14474,133564,381846,NULL,NULL,NULL,0,NULL,NULL 14475,696883,624369,NULL,NULL,NULL,0,NULL,NULL 14476,171351,197630,Popular Question Famous Question Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 14477,4713819,1180687,NULL,NULL,NULL,0,NULL,NULL 14478,4849314,114157,Self-Learner Popular Question Announcer Notable Question Notable Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 14479,908039,974060,NULL,NULL,NULL,0,NULL,NULL 14480,359627,574428,Editor,NULL,NULL,0,NULL,NULL 14481,933350,201405,Nice Answer Famous Question Yearling Good Question Good Answer Yearling Nice Question Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 14482,41259,958003,Critic Popular Question Notable Question Yearling Notable Question Famous Question Notable Question Popular Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 14483,250645,1156483,NULL,NULL,NULL,0,NULL,NULL 14484,1357169,942004,Popular Question Popular Question Revival Yearling Caucus Notable Question Popular Question Notable Question Notable Question Self-Learner Popular Question Notable Question Popular Question Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 14485,80048,1049031,NULL,NULL,NULL,0,NULL,NULL 14486,101071,391505,NULL,NULL,NULL,0,NULL,NULL 14487,32611,1097642,NULL,NULL,NULL,0,NULL,NULL 14488,47896,1096943,Teacher,NULL,NULL,0,NULL,NULL 14489,396264,461640,Popular Question Famous Question Nice Question Custodian Yearling Popular Question Self-Learner Good Question Announcer Notable Question Yearling Popular Question Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14490,830153,1395758,Yearling Necromancer Enthusiast Yearling Mortarboard Yearling Custodian Custodian Citizen Patrol Custodian Custodian Tumbleweed Promoter Yearling Fanatic Caucus c# Nice Answer Enlightened Yearling Excavator Curious Caucus Constituent Yearling Popular Question Revival Peer Pressure Popular Question Popular Question Necromancer,NULL,Create ETag filter in ASP NET MVC asp net mvc caching filter etag pI would like to create an ETag filter in MVC The problem is that can control the Response OutputStream if was able to do that would simply calculate the ETag according to the result stream did this thing before in WCF but couldn find any simple idea to do that in MVC ppI want to be able to write something like that ppre code ETag public ActionResult MyAction var myModel Factory CreateModel return View myModel code prepAny idea Theken that is if your content does not change given the input parameters But the purpose of the ETag is exactly in knowing if the content has not changed since the client requested it If you re doing that you are completely missing the point of using an ETag in the first place you just need client side cache that nevere ever expires jm2c,0,NULL,NULL 14491,12683,958217,NULL,NULL,NULL,0,NULL,NULL 14492,4011057,470478,NULL,NULL,NULL,0,NULL,NULL 14493,4299105,225389,Critic Commentator Custodian Yearling Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 14494,229204,409116,Editor Peer Pressure Yearling Revival,NULL,NULL,0,NULL,NULL 14495,144961,288124,Revival Supporter,NULL,NULL,0,NULL,NULL 14496,327497,408153,Student Popular Question,NULL,NULL,0,NULL,NULL 14497,4064184,104104,Famous Question Yearling Nice Answer Good Question Popular Question Popular Question Yearling Popular Question Inquisitive Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 14498,895667,1173338,NULL,NULL,NULL,0,NULL,NULL 14499,310707,63030,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 14500,611901,793958,NULL,NULL,NULL,0,NULL,NULL 14501,62708,1064977,Yearling Necromancer Curious Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14502,157789,615707,NULL,NULL,NULL,0,NULL,NULL 14503,3957914,839900,NULL,NULL,NULL,0,NULL,NULL 14504,228132,839900,NULL,NULL,NULL,0,NULL,NULL 14505,138747,1374485,NULL,NULL,NULL,0,NULL,NULL 14506,6489329,918888,Editor Revival,NULL,NULL,0,NULL,NULL 14507,1511920,918888,Editor Revival,NULL,NULL,0,NULL,NULL 14508,629313,35233,Nice Answer Famous Question Nice Answer Enlightened Custodian Yearling Necromancer Popular Question Yearling Nice Answer Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14509,178864,724632,NULL,NULL,NULL,0,NULL,NULL 14510,645023,1025787,NULL,NULL,NULL,0,NULL,NULL 14511,194617,130347,Notable Question Yearling Popular Question Inquisitive Popular Question Yearling Notable Question Good Question Notable Question Notable Question Custodian Yearling Nice Question,NULL,NULL,0,NULL,NULL 14512,68386,871359,Good Question Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 14513,155468,1119119,Editor,NULL,NULL,0,NULL,NULL 14514,191850,78342,Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 14515,163695,891962,Nice Question Yearling Notable Question Yearling Great Answer Tumbleweed Organizer Curious Yearling Custodian,NULL,NULL,0,NULL,NULL 14516,501008,761338,NULL,NULL,NULL,0,NULL,NULL 14517,163374,90909,Popular Question Nice Question Yearling Famous Question Notable Question Announcer Good Answer Nice Answer Enlightened Great Question Popular Question Notable Question Famous Question Nice Question Popular Question Yearling Announcer Revival Favorite Question Famous Question Announcer Famous Question Yearling,NULL,NULL,0,NULL,NULL 14518,66612,1072677,NULL,NULL,NULL,0,NULL,NULL 14519,17769,38070,Famous Question Yearling Populist Good Answer Popular Question Yearling Famous Question Yearling,NULL,pYou can do this and it is extremely well documented at href https developer apple com library mac documentation cocoa Reference ObjCRuntimeRef index html https developer apple com library mac documentation cocoa Reference ObjCRuntimeRef index html ppTo fetch all the instance or class methods of class you may use codeclass copyMethodList code and iterate over the results An example ppre code import lt objc runtime gt Gets list of all methods on class or metaclass and dumps some properties of each clz the class or metaclass to investigate void DumpObjcMethods Class clz unsigned int methodCount Method methods class copyMethodList clz amp methodCount printf Found methods on methodCount class getName clz for unsigned int lt methodCount Method method methods printf has method named of encoding class getName clz sel getName method getName method method getTypeEncoding method Or do whatever you need here free methods code prepYou will need to make two separate calls to this method One for the instance methods and another for the class methods ppre code This will dump all the instance methods DumpObjcMethods yourClass code prepCalling the same on the metaclass will give you all the class methods ppre code Calling the same on the metaclass gives you the class methods DumpObjcMethods object getClass yourClass Metaclass code pre don think there is typo there There is no routine called object getMetaClass The class objects class is its meta class,0,NULL,NULL 14520,194544,800254,Notable Question Good Question Yearling Notable Question Good Question Revival Yearling Nice Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14521,4408141,1195506,NULL,NULL,NULL,0,NULL,NULL 14522,13530,1195506,NULL,NULL,NULL,0,NULL,NULL 14523,524908,671802,Revival,NULL,NULL,0,NULL,NULL 14524,176186,11767,Informed Yearling,NULL,NULL,0,NULL,NULL 14525,479981,1245582,Scholar Autobiographer,NULL,NULL,0,NULL,NULL 14526,212045,121090,NULL,NULL,NULL,0,NULL,NULL 14527,222794,142830,NULL,NULL,NULL,0,NULL,NULL 14528,6940,808756,NULL,NULL,NULL,0,NULL,NULL 14529,168408,392865,NULL,NULL,NULL,0,NULL,NULL 14530,103002,929503,NULL,NULL,NULL,0,NULL,NULL 14531,110960,1197964,NULL,NULL,NULL,0,NULL,NULL 14532,26134,372599,Caucus Constituent Yearling Good Question Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 14533,2763681,951324,NULL,NULL,NULL,0,NULL,NULL 14534,226532,1094544,Nice Answer,NULL,NULL,0,NULL,NULL 14535,27099,110189,Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 14536,511119,1551239,NULL,NULL,NULL,0,NULL,NULL 14537,59452,1497455,Famous Question,NULL,NULL,0,NULL,NULL 14538,926842,942111,Teacher,NULL,NULL,0,NULL,NULL 14539,1350833,1270253,Tumbleweed,NULL,NULL,0,NULL,NULL 14540,1553399,1538475,NULL,NULL,NULL,0,NULL,NULL 14541,242005,1363612,Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14542,891118,653689,Revival Good Question Notable Question Critic Popular Question Tumbleweed Census Yearling Necromancer,NULL,NULL,0,NULL,NULL 14543,6576884,1174721,NULL,NULL,NULL,0,NULL,NULL 14544,884874,1253103,Student Citizen Patrol Custodian Informed Organizer Caucus Constituent Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14545,174797,672575,NULL,NULL,NULL,0,NULL,NULL 14546,164603,45942,Nice Answer Notable Question Revival Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Notable Question Notable Question Popular Question Notable Question Yearling Great Question,NULL,NULL,0,NULL,NULL 14547,1072068,161336,Yearling Nice Answer Necromancer Caucus Nice Answer Popular Question Caucus Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 14548,405169,275970,Yearling,NULL,NULL,0,NULL,NULL 14549,69957,846252,NULL,NULL,NULL,0,NULL,NULL 14550,233850,394436,Yearling,NULL,NULL,0,NULL,NULL 14551,72304,744579,Yearling,NULL,NULL,0,NULL,NULL 14552,272794,794034,NULL,NULL,NULL,0,NULL,NULL 14553,187784,1210622,Popular Question,NULL,NULL,0,NULL,NULL 14554,445163,354991,Popular Question,NULL,NULL,0,NULL,NULL 14555,340433,168903,Nice Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Caucus Good Answer Great Answer Good Answer Revival Good Answer Yearling Documentation User Announcer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 14556,114441,303431,Popular Question Good Question Popular Question Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 14557,127352,1431978,NULL,NULL,NULL,0,NULL,NULL 14558,2965727,587609,Famous Question Informed Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 14559,722262,796221,NULL,NULL,NULL,0,NULL,NULL 14560,731509,1167750,Yearling Good Answer Nice Answer Enlightened Caucus php Yearling Caucus Announcer Nice Answer Enlightened Yearling Announcer Announcer Good Answer Announcer Announcer Announcer Student Scholar,NULL,NULL,0,NULL,NULL 14561,1705772,1191742,NULL,NULL,NULL,0,NULL,NULL 14562,528239,615780,Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Good Question Notable Question Notable Question Nice Question Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Good Question Notable Question Famous Question Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question Notable Question Nice Question Nice Question Notable Question Popular Question Great Question Famous Question Popular Question Popular Question Popular Question Favorite Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Socratic Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 14563,25447,518291,NULL,NULL,NULL,0,NULL,NULL 14564,1196788,767071,NULL,NULL,NULL,0,NULL,NULL 14565,34935,628786,Revival Yearling Nice Question Nice Answer Necromancer Famous Question Popular Question Yearling Nice Answer Announcer Caucus Announcer Notable Question,NULL,Why does my rolling adler32 checksum not work in go modulo arithmetic python go checksum modulo adler32 pI am implementing in go href https en wikipedia org wiki Rolling hash rel nofollow noreferrer rolling version of the href https en wikipedia org wiki Adler 32 rel nofollow noreferrer adler32 checksum ppThis href https stackoverflow com 20086159 628786 answer was helpful to double check my maths However am struggling at implementing it correctly in golang ppI wrote the following code ppre codefunc roll adler leave enter uint32 uint32 adler amp 0xffff adler gt gt 16 enter leave MOD leave MOD return lt lt 16 code prepIt tested it on various inputs and it worked fine until decided to run it on random data Here is href https play golang org VxRqoLcFQr rel nofollow noreferrer sample where it does not work found several of them ppWhat is baffling me is that the same code in python works perfectly on those inputs ppre codedef roll adler leave enter adler amp 0xffff adler gt gt 16 enter leave MOD leave MOD return lt lt 16 code prepFor good measure am including href https repl it EhAV rel nofollow noreferrer proof that this works in python Note that the python checksum matches the non rolling version of the go checksum and that part is directly from the go core libraries ppI studied my results on all the other problematic samples and found that am never making mistake on the least significant bits of the checksum the bits Also the error is consistently the same equals to code0xe10000 code suspect peculiarity of how go handles modulo operations on uint32 integers to be the cause of this ppWhat is happening and how do fix my code How would you fix the code,1,Why does my rolling adler32 checksum not work in go modulo arithmetic python go checksum modulo adler32 pI am implementing in go href https en wikipedia org wiki Rolling hash rel nofollow noreferrer rolling version of the href https en wikipedia org wiki Adler 32 rel nofollow noreferrer adler32 checksum ppThis href https stackoverflow com 20086159 628786 answer was helpful to double check my maths However am struggling at implementing it correctly in golang ppI wrote the following code ppre codefunc roll adler leave enter uint32 uint32 adler amp 0xffff adler gt gt 16 enter leave MOD leave MOD return lt lt 16 code prepIt tested it on various inputs and it worked fine until decided to run it on random data Here is href https play golang org VxRqoLcFQr rel nofollow noreferrer sample where it does not work found several of them ppWhat is baffling me is that the same code in python works perfectly on those inputs ppre codedef roll adler leave enter adler amp 0xffff adler gt gt 16 enter leave MOD leave MOD return lt lt 16 code prepFor good measure am including href https repl it EhAV rel nofollow noreferrer proof that this works in python Note that the python checksum matches the non rolling version of the go checksum and that part is directly from the go core libraries ppI studied my results on all the other problematic samples and found that am never making mistake on the least significant bits of the checksum the bits Also the error is consistently the same equals to code0xe10000 code suspect peculiarity of how go handles modulo operations on uint32 integers to be the cause of this ppWhat is happening and how do fix my code,NULL 14566,118417,1527069,Student Scholar Necromancer Critic Documentation User Yearling,NULL,NULL,0,NULL,NULL 14567,969695,1527069,Student Scholar Necromancer Critic Documentation User Yearling,NULL,NULL,0,NULL,NULL 14568,198442,413131,NULL,NULL,NULL,0,NULL,NULL 14569,227421,122416,NULL,NULL,NULL,0,NULL,NULL 14570,440773,1122653,NULL,NULL,NULL,0,NULL,NULL 14571,10286462,1019888,NULL,NULL,NULL,0,NULL,NULL 14572,106925,275463,NULL,NULL,NULL,0,NULL,NULL 14573,884588,1347537,Revival Necromancer,NULL,NULL,0,NULL,NULL 14574,427270,1325016,Autobiographer,NULL,NULL,0,NULL,NULL 14575,66429,145125,Yearling Nice Question Notable Question Revival Caucus Yearling Popular Question Famous Question Nice Question Notable Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 14576,194532,825485,NULL,NULL,NULL,0,NULL,NULL 14577,440216,883147,Yearling Teacher Yearling Yearling,NULL,NULL,0,NULL,NULL 14578,2243892,235243,Good Answer Great Question Guru Nice Answer Popular Question Popular Question Stellar Question Yearling Nice Question Popular Question Guru Nice Answer Notable Question Yearling Notable Question Great Answer Custodian Nice Answer Nice Answer Good Question Famous Question,NULL,NULL,0,NULL,NULL 14579,24545,235243,Good Answer Great Question Guru Nice Answer Popular Question Popular Question Stellar Question Yearling Nice Question Popular Question Guru Nice Answer Notable Question Yearling Notable Question Great Answer Custodian Nice Answer Nice Answer Good Question Famous Question,NULL,NULL,0,NULL,NULL 14580,566589,1066846,Popular Question,NULL,NULL,0,NULL,NULL 14581,104107,1248093,Critic Nice Question Famous Question Caucus Yearling Popular Question Enthusiast Caucus Organizer Nice Question,NULL,NULL,0,NULL,NULL 14582,688105,1089210,Famous Question,NULL,NULL,0,NULL,NULL 14583,428009,735382,NULL,NULL,NULL,0,NULL,NULL 14584,89085,107693,Good Answer,NULL,NULL,0,NULL,NULL 14585,137313,569019,Yearling Popular Question,NULL,NULL,0,NULL,NULL 14586,655639,405804,NULL,NULL,NULL,0,NULL,NULL 14587,8422228,744866,Teacher Tumbleweed Scholar Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 14588,45998,744866,Teacher Tumbleweed Scholar Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 14589,303960,967443,NULL,NULL,NULL,0,NULL,NULL 14590,284820,829167,NULL,NULL,NULL,0,NULL,NULL 14591,20606,1103824,NULL,NULL,NULL,0,NULL,NULL 14592,111226,792466,Informed,NULL,NULL,0,NULL,NULL 14593,194665,170302,NULL,NULL,NULL,0,NULL,NULL 14594,1529731,372241,NULL,NULL,NULL,0,NULL,NULL 14595,72812,372241,NULL,NULL,NULL,0,NULL,NULL 14596,54467,400405,Popular Question Notable Question Notable Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 14597,1011848,1026774,NULL,NULL,NULL,0,NULL,NULL 14598,130530,1494283,NULL,NULL,NULL,0,NULL,NULL 14599,603614,1017602,Teacher,NULL,NULL,0,NULL,NULL 14600,564312,881810,Supporter Student Editor Scholar,NULL,NULL,0,NULL,NULL 14601,906085,889141,NULL,NULL,NULL,0,NULL,NULL 14602,288210,332370,Notable Question Notable Question Yearling Yearling Nice Answer Nice Question Great Question Favorite Question,NULL,NULL,0,NULL,NULL 14603,171314,136558,Yearling Necromancer Popular Question Nice Question Notable Question Yearling Yearling,NULL,pPlace the following code in codeconfig initializers quiet assets rb code ppre codeif Rails env development Rails application assets try logger Logger new dev null Rails Rack Logger class eval do def call with quiet assets env previous level Rails logger level Rails logger level Logger ERROR if env PATH INFO assets call without quiet assets env ensure Rails logger level previous level end alias method chain call quiet assets endend code prepUpdated now works for Rails too previous attempt fixes codebefore dispatch code now we re going for the root rack codecall code instead ppUpdate proper Rack middleware solution instead of fragile codealias method chain code from href https github com rails rails issues 2639 issuecomment 6591735 https github com rails rails issues 2639 issuecomment 6591735 you can skip overwriting Rails application assets logger have updated the code,0,NULL,NULL 14604,25245,1492311,Organizer Supporter Informed,NULL,NULL,0,NULL,NULL 14605,13707,13747,NULL,NULL,NULL,0,NULL,NULL 14606,195387,974588,NULL,NULL,NULL,0,NULL,NULL 14607,170885,857733,Informed Tumbleweed,NULL,NULL,0,NULL,NULL 14608,59810,1286267,Teacher,NULL,NULL,0,NULL,NULL 14609,251003,1304356,NULL,NULL,NULL,0,NULL,NULL 14610,226518,115566,NULL,NULL,NULL,0,NULL,NULL 14611,565940,435409,Popular Question,NULL,NULL,0,NULL,NULL 14612,27555,865331,Yearling Census Nice Question Quorum,NULL,NULL,0,NULL,NULL 14613,186280,1080288,NULL,NULL,NULL,0,NULL,NULL 14614,1144737,458751,Yearling Good Answer Notable Question Yearling Notable Question Guru Nice Answer Enlightened php Yearling,NULL,NULL,0,NULL,NULL 14615,9919,468283,NULL,NULL,NULL,0,NULL,NULL 14616,2105845,1348908,NULL,NULL,NULL,0,NULL,NULL 14617,1180108,1022512,NULL,NULL,NULL,0,NULL,NULL 14618,27672,598993,Yearling Nice Answer Notable Question Popular Question Revival Notable Question Excavator Nice Question Famous Question Necromancer Necromancer Notable Question Yearling Popular Question Notable Question Nice Question Documentation User Popular Question Yearling Famous Question Announcer Announcer Populist Good Answer,NULL,NULL,0,NULL,NULL 14619,152748,7624,Nice Answer Nice Answer Yearling Good Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 14620,164387,420191,Notable Question Yearling Custodian Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 14621,1681734,836957,Notable Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,1,Find substrings that are embedded in certain pattern python string pI know there has to be better faster way to do all of this but ve brute forced solution for now that works Can this be done more efficiently ppPsuedo code ppre codezoneNAME BBQ ZP Family Room ZP Firepit ZP Kitchen ZP Living Room Media Room ZP Portable ZP Spa ZP BBQ ZP Family Room ZP Firepit ZP Kitchen ZP Media Room ZP Portable ZP Spa ZP re sub zoneNAME split re sub re split filter None code prepFinal output pp code BBQ ZP Family Room ZP Firepit ZP Kitchen ZP Living Room Media Room ZP Portable ZP Spa ZP code,NULL 14622,161795,769228,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 14623,192419,1024464,NULL,NULL,NULL,0,NULL,NULL 14624,967978,19655,Necromancer Nice Answer Famous Question Yearling Scholar,NULL,NULL,1,NULL,How to set heap size for sbt scala sbt pI am using SBT 12 have read other answers on stack overflow and followed them however none of them helps for example pullicreate codeForkRun code class have not observed any forked process during my usage of sbt liliset environment variable codeJAVA OPTS code it is set but sbt process command line does not seem to use it at all lili codesbt Xmx2G code appends the parameter to sbt process command line however the old value code Xmx1536m code is used by sbt instead of the appended parameter li ulpAm missing something How do set heap size for sbt 12 when doing both testing and coderun code pOn windows for sbt 13 you need to set codeJAVA OPTS code to the jvm options you want ppre code gt set JAVA OPTS Xmx1G gt sbt assembly code prepThe codesbt bat code script loads its defaults from codeconf sbtconfig txt code into codeCFG OPTS code but will use codeJAVA OPTS code instead if set ppRelevant excerpts from codesbt bat code ppre coderem FIRST we load the config file of extra options set FN SBT HOME conf sbtconfig txtset CFG OPTS FOR tokens eol usebackq delims IN FN DO set DO NOT REUSE ME rem ZOMG Part WE use here to delay the expansion of rem CFG OPTS otherwise it remains for this loop set CFG OPTS CFG OPTS DO NOT REUSE ME code prep skip ppre coderem We use the value of the JAVA OPTS environment variable if defined rather than the config set JAVA OPTS JAVA OPTS if JAVA OPTS set JAVA OPTS CFG OPTS run JAVACMD JAVA OPTS SBT OPTS cp SBT HOME sbt launch jar xsbt boot Boot code pre 14625,3896953,377124,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14626,207433,377124,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14627,3395044,592977,Custodian Student Popular Question Notable Question Nice Question Critic Good Question Yearling Famous Question Commentator,NULL,NULL,0,NULL,NULL 14628,902891,266877,Popular Question,NULL,NULL,0,NULL,NULL 14629,90778,1022433,NULL,NULL,NULL,0,NULL,NULL 14630,177622,888068,Notable Question Notable Question Nice Question Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 14631,1354670,348307,NULL,NULL,NULL,0,NULL,NULL 14632,535064,1548268,NULL,NULL,NULL,0,NULL,NULL 14633,500188,345812,Nice Answer Notable Question Popular Question Nice Question Custodian Reviewer Notable Question Notable Question Popular Question Famous Question Yearling codeigniter Steward Popular Question Notable Question Fanatic Popular Question Favorite Question Nice Answer Enlightened Popular Question Caucus Constituent Notable Question Notable Question Census Popular Question Popular Question Yearling Popular Question Caucus Popular Question php Popular Question Famous Question Popular Question Nice Answer Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 14634,69617,1180532,NULL,NULL,NULL,0,NULL,NULL 14635,83363,360674,Revival Notable Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Favorite Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Documentation User Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Announcer Tenacious,NULL,NULL,0,NULL,NULL 14636,481328,1109497,NULL,NULL,NULL,0,NULL,NULL 14637,202009,1121016,NULL,NULL,NULL,0,NULL,NULL 14638,140767,453587,NULL,NULL,NULL,0,NULL,NULL 14639,787586,362422,NULL,NULL,NULL,0,NULL,NULL 14640,29718,642086,Popular Question,NULL,NULL,0,NULL,NULL 14641,1290140,101301,Notable Question,NULL,NULL,0,NULL,NULL 14642,759301,1462689,Nice Answer,NULL,NULL,0,NULL,NULL 14643,235892,691886,NULL,NULL,NULL,0,NULL,NULL 14644,373500,583478,Popular Question,NULL,NULL,0,NULL,NULL 14645,7822,201735,NULL,NULL,NULL,0,NULL,NULL 14646,884955,708747,Yearling Guru Yearling Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14647,1087899,366217,NULL,NULL,NULL,0,NULL,NULL 14648,600837,1530489,NULL,NULL,NULL,0,NULL,NULL 14649,141696,892920,Caucus,NULL,NULL,0,NULL,NULL 14650,179044,321437,Nice Answer,NULL,NULL,0,NULL,NULL 14651,39154,572203,Popular Question,NULL,NULL,0,NULL,NULL 14652,122432,969337,NULL,NULL,NULL,0,NULL,NULL 14653,70122,458308,Necromancer Guru Enlightened Nice Answer Yearling Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14654,16116,9443,Necromancer Custodian Yearling Famous Question Popular Question Notable Question Yearling Documentation User Census Excavator Yearling,NULL,NULL,0,NULL,NULL 14655,1116318,1283667,Scholar Tumbleweed Excavator Informed Nice Answer Critic Announcer Yearling Announcer Caucus Organizer Quorum Civic Duty,NULL,NULL,0,NULL,NULL 14656,38529,1283667,Scholar Tumbleweed Excavator Informed Nice Answer Critic Announcer Yearling Announcer Caucus Organizer Quorum Civic Duty,NULL,NULL,0,NULL,NULL 14657,2294826,1283667,Scholar Tumbleweed Excavator Informed Nice Answer Critic Announcer Yearling Announcer Caucus Organizer Quorum Civic Duty,NULL,NULL,0,NULL,NULL 14658,8995,101869,Guru Excavator Nice Answer Nice Question Yearling Famous Question Announcer Notable Question Populist Notable Question Yearling Popular Question Nice Question Census Nice Answer Enlightened Caucus Announcer Famous Question javascript Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 14659,15496,480970,Good Answer Necromancer,NULL,NULL,0,NULL,NULL 14660,119175,1534080,NULL,NULL,NULL,0,NULL,NULL 14661,713296,501482,Scholar Supporter,NULL,NULL,0,NULL,NULL 14662,485231,639692,NULL,NULL,NULL,0,NULL,NULL 14663,14394,82668,Popular Question Yearling Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14664,437735,1118556,NULL,NULL,NULL,0,NULL,NULL 14665,13611,118296,Famous Question,NULL,NULL,0,NULL,NULL 14666,266547,1227117,NULL,NULL,NULL,0,NULL,NULL 14667,41738,225997,Editor Nice Answer,NULL,NULL,0,NULL,NULL 14668,86395,729542,NULL,NULL,NULL,0,NULL,NULL 14669,370055,46717,Nice Question Popular Question Famous Question Popular Question Good Question Caucus Yearling Custodian Custodian Inquisitive Caucus Popular Question Yearling Famous Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 14670,270362,1113881,Student Promoter Scholar Good Answer Yearling Custodian Good Answer Caucus Necromancer javascript Nice Answer Yearling Guru Peer Pressure Guru Good Answer,NULL,h1Curl h1pAs you can read on the href https curl haxx se docs manpage html rel nofollow noreferrer curl manpage uploads of this form are done by specifying data strings and can be done directly from file with code data binary path to file code syntax ppre code data binary lt data gt HTTP This posts data exactly as specified with no extra processing whatsoever If you start the data with the letter the rest should be filename Data is posted in similar manner as data ascii does except that newlines and car‐ riage returns are preserved and conversions are never done If this option is used several times the ones following the first will append data as described in data code prepIf the image is only available as binary string in your language for example as Node js buffer and you don want to hit the filesystem then you may have to escape it by enclosing it in code code characters and replacing every code code character inside of the string with an appropriate escape sequence like code code or if that makes you uneasy code code Recall that codeecho abc def ghi code will echo codeabcdefghi code as one single unit ph1Node js h1pNode is little more forgiving because it has an explicit buffer type but it does require bit more construction to make it work Here am wrapping the return data in Promise in case you need it ppre class lang js prettyprint override codeconst http require http function upload image buffer image id return new Promise accept reject gt let options method PUT hostname maven nabisco com port 80 path artifactory cdt repo folder image id headers Content Type application octet stream Content Length image buffer length let data let request http request options response gt response on data chunk gt data push chunk response on end gt accept headers response headers statusCode response statusCode data Buffer concat data request on error err gt reject err request write image buffer request end code pre Try MDN Web APIs XMLHttpRequest Sending and Receiving Binary Data https developer mozilla org en US docs Web API XMLHttpRequest Sending and Receiving Binary Data h1The golden spiral method h1pYou said you couldn get the golden spiral method to work and that shame because it really really good would like to give you complete understanding of it so that maybe you can understand how to keep this away from being bunched up ppSo here fast non random way to create lattice that is approximately correct as discussed above no lattice will be perfect but this may be good enough It is compared to other methods at href https bendwavy org pack pack htm rel noreferrer BendWavy org but it just has nice and pretty look as well as guarantee about even spacing in the limit ph2Primer sunflower spirals on the unit disk h2pTo understand this algorithm first invite you to look at the 2D sunflower spiral algorithm This is based on the fact that the most irrational number is the golden ratio code sqrt code and if one emits points by the approach stand at the center turn golden ratio of whole turns then emit another point in that direction one naturally constructs spiral which as you get to higher and higher numbers of points nevertheless refuses to have well defined bars that the points line up on sup Note sup ppThe algorithm for even spacing on disk is ppre class lang py prettyprint override codefrom numpy import pi cos sin sqrt arangeimport matplotlib pyplot as ppnum pts 100indices arange num pts dtype float 5r sqrt indices num pts theta pi indicespp scatter cos theta sin theta pp show code prepand it produces results that look like 100 and 1000 pp href https stack imgur com U7Ut2 png rel noreferrer img src https stack imgur com U7Ut2 png alt enter image description here ph2Spacing the points radially h2pThe key strange thing is the formula coder sqrt indices num pts code how did come to that one sup Note sup ppWell am using the square root here because want these to have even area spacing around the sphere That the same as saying that in the limit of large emN em want little region emR em emr em emr em demr em emΘ em emθ em emθ em demθ em to contain number of points proportional to its area which is emr em demr em demθ em Now if we pretend that we are talking about random variable here this has straightforward interpretation as saying that the joint probability density for emR em emΘ em is just emc em for some constant emc em Normalization on the unit disk then forces emc em pi ppNow let me introduce trick It comes from probability theory where it known as href https en wikipedia org wiki Inverse transform sampling rel noreferrer sampling the inverse CDF suppose you wanted to emgenerate em random variable with probability density emf em emz em and you have random variable emU em Uniform just like comes out of coderandom code in most programming languages How do you do this polliFirst turn your density into href https en wikipedia org wiki Cumulative distribution function rel noreferrer cumulative distribution function emF em emz em which remember increases monotonically from to with derivative emf em emz em liliThen calculate the CDF inverse function emF em sup sup emz em liliYou will find that emZ em emF em sup sup emU em is distributed according to the target density sup Note sup li olpNow the golden ratio spiral trick spaces the points out in nicely even pattern for emθ em so let integrate that out for the unit circle we are left with emF em emr em emr em sup2 sup So the inverse function is emF em sup sup emu em emu em sup1 sup and therefore we would generate random points on the sphere in polar coordinates with coder sqrt random theta pi random code ppNow instead of emrandomly em sampling this inverse function we re emuniformly em sampling it and the nice thing about uniform sampling is that our results about how points are spread out in the limit of large emN em will behave as if we had randomly sampled it This combination is the trick Instead of coderandom code we use code arange num pts dtype float num pts code so that say if we want to sample 10 points they are coder 05 15 25 95 code We uniformly sample emr em to get equal area spacing and we use the sunflower increment to avoid awful bars of points in the output ph2Now doing the sunflower on sphere h2pThe changes that we need to make to dot the sphere with points merely involve switching out the polar coordinates for spherical coordinates The radial coordinate of course doesn enter into this because we re on unit sphere To keep things little more consistent here even though was trained as physicist ll use mathematicians coordinates where le emφ em le pi is latitude coming down from the pole and le emθ em le pi is longitude So the difference from above is that we are basically replacing the variable emr em with em phi em ppOur area element which was emr em demr em demθ em now becomes the not much more complicated sin emφ em demφ em demθ em So our joint density for uniform spacing is sin emφ em 4π Integrating out emθ em we find emf em emφ em sin emφ em thus emF em emφ em minus cos emφ em Inverting this we can see that uniform random variable would look like acos emu em but we sample uniformly instead of randomly so we instead use emφ em sub emk em sub acos minus emk em emN em And the rest of the algorithm is just projecting this onto the and coordinates ppre class lang py prettyprint override codefrom numpy import pi cos sin arccos arangeimport mpl toolkits mplot3dimport matplotlib pyplot as ppnum pts 1000indices arange num pts dtype float 5phi arccos indices num pts theta pi indicesx cos theta sin phi sin theta sin phi cos phi pp figure add subplot 111 projection 3d scatter pp show code prepAgain for 100 and 1000 the results look like href https stack imgur com 13o9v png rel noreferrer img src https stack imgur com 13o9v png alt enter image description here aa href https stack imgur com jml6W png rel noreferrer img src https stack imgur com jml6W png alt enter image description here ph1Notes h1olli pThose bars are formed by rational approximations to number and the best rational approximations to number come from its continued fraction expression codez code where codez code is an integer and coden code is either finite or infinite sequence of positive integers ppre class lang py prettyprint override codedef continued fraction while floor yield code prepSince the fraction part code1 code is always between zero and one large integer in the continued fraction allows for particularly good rational approximation one divided by something between 100 and 101 is better than one divided by something between and The most irrational number is therefore the one which is code1 code and has no particularly good rational approximations one can solve emφ em emφ em by multiplying through by emφ em to get the formula for the golden ratio pol start li pFor folks who are not so familiar with NumPy all of the functions are vectorized so that codesqrt array code is the same as what other languages might write codemap sqrt array code So this is component by component codesqrt code application The same also holds for division by scalar or addition with scalars those apply to all components in parallel lili pThe proof is simple once you know that this is the result If you ask what the probability that emz em lt emZ em lt emz em demz em this is the same as asking what the probability that emz em lt emF em sup sup emU em lt emz em demz em apply emF em to all three expressions noting that it is monotonically increasing function hence emF em emz em lt emU em lt emF em emz em demz em expand the right hand side out to find emF em emz em emf em emz em demz em and since emU em is uniform this probability is just emf em emz em demz em as promised li ol li ol thank you for the kind words it is so far down in part because it is much much younger than all the rest of the answers here am surprised that it is even doing as well as it has been h1The golden spiral method h1pYou said you couldn get the golden spiral method to work and that shame because it really really good would like to give you complete understanding of it so that maybe you can understand how to keep this away from being bunched up ppSo here fast non random way to create lattice that is approximately correct as discussed above no lattice will be perfect but this may be good enough It is compared to other methods at href https bendwavy org pack pack htm rel noreferrer BendWavy org but it just has nice and pretty look as well as guarantee about even spacing in the limit ph2Primer sunflower spirals on the unit disk h2pTo understand this algorithm first invite you to look at the 2D sunflower spiral algorithm This is based on the fact that the most irrational number is the golden ratio code sqrt code and if one emits points by the approach stand at the center turn golden ratio of whole turns then emit another point in that direction one naturally constructs spiral which as you get to higher and higher numbers of points nevertheless refuses to have well defined bars that the points line up on sup Note sup ppThe algorithm for even spacing on disk is ppre class lang py prettyprint override codefrom numpy import pi cos sin sqrt arangeimport matplotlib pyplot as ppnum pts 100indices arange num pts dtype float 5r sqrt indices num pts theta pi indicespp scatter cos theta sin theta pp show code prepand it produces results that look like 100 and 1000 pp href https stack imgur com U7Ut2 png rel noreferrer img src https stack imgur com U7Ut2 png alt enter image description here ph2Spacing the points radially h2pThe key strange thing is the formula coder sqrt indices num pts code how did come to that one sup Note sup ppWell am using the square root here because want these to have even area spacing around the sphere That the same as saying that in the limit of large emN em want little region emR em emr em emr em demr em emΘ em emθ em emθ em demθ em to contain number of points proportional to its area which is emr em demr em demθ em Now if we pretend that we are talking about random variable here this has straightforward interpretation as saying that the joint probability density for emR em emΘ em is just emc em for some constant emc em Normalization on the unit disk then forces emc em pi ppNow let me introduce trick It comes from probability theory where it known as href https en wikipedia org wiki Inverse transform sampling rel noreferrer sampling the inverse CDF suppose you wanted to emgenerate em random variable with probability density emf em emz em and you have random variable emU em Uniform just like comes out of coderandom code in most programming languages How do you do this polliFirst turn your density into href https en wikipedia org wiki Cumulative distribution function rel noreferrer cumulative distribution function emF em emz em which remember increases monotonically from to with derivative emf em emz em liliThen calculate the CDF inverse function emF em sup sup emz em liliYou will find that emZ em emF em sup sup emU em is distributed according to the target density sup Note sup li olpNow the golden ratio spiral trick spaces the points out in nicely even pattern for emθ em so let integrate that out for the unit circle we are left with emF em emr em emr em sup2 sup So the inverse function is emF em sup sup emu em emu em sup1 sup and therefore we would generate random points on the sphere in polar coordinates with coder sqrt random theta pi random code ppNow instead of emrandomly em sampling this inverse function we re emuniformly em sampling it and the nice thing about uniform sampling is that our results about how points are spread out in the limit of large emN em will behave as if we had randomly sampled it This combination is the trick Instead of coderandom code we use code arange num pts dtype float num pts code so that say if we want to sample 10 points they are coder 05 15 25 95 code We uniformly sample emr em to get equal area spacing and we use the sunflower increment to avoid awful bars of points in the output ph2Now doing the sunflower on sphere h2pThe changes that we need to make to dot the sphere with points merely involve switching out the polar coordinates for spherical coordinates The radial coordinate of course doesn enter into this because we re on unit sphere To keep things little more consistent here even though was trained as physicist ll use mathematicians coordinates where le emφ em le pi is latitude coming down from the pole and le emθ em le pi is longitude So the difference from above is that we are basically replacing the variable emr em with em phi em ppOur area element which was emr em demr em demθ em now becomes the not much more complicated sin emφ em demφ em demθ em So our joint density for uniform spacing is sin emφ em 4π Integrating out emθ em we find emf em emφ em sin emφ em thus emF em emφ em minus cos emφ em Inverting this we can see that uniform random variable would look like acos emu em but we sample uniformly instead of randomly so we instead use emφ em sub emk em sub acos minus emk em emN em And the rest of the algorithm is just projecting this onto the and coordinates ppre class lang py prettyprint override codefrom numpy import pi cos sin arccos arangeimport mpl toolkits mplot3dimport matplotlib pyplot as ppnum pts 1000indices arange num pts dtype float 5phi arccos indices num pts theta pi indicesx cos theta sin phi sin theta sin phi cos phi pp figure add subplot 111 projection 3d scatter pp show code prepAgain for 100 and 1000 the results look like href https stack imgur com 13o9v png rel noreferrer img src https stack imgur com 13o9v png alt enter image description here aa href https stack imgur com jml6W png rel noreferrer img src https stack imgur com jml6W png alt enter image description here ph1Notes h1olli pThose bars are formed by rational approximations to number and the best rational approximations to number come from its continued fraction expression codez code where codez code is an integer and coden code is either finite or infinite sequence of positive integers ppre class lang py prettyprint override codedef continued fraction while floor yield code prepSince the fraction part code1 code is always between zero and one large integer in the continued fraction allows for particularly good rational approximation one divided by something between 100 and 101 is better than one divided by something between and The most irrational number is therefore the one which is code1 code and has no particularly good rational approximations one can solve emφ em emφ em by multiplying through by emφ em to get the formula for the golden ratio pol start li pFor folks who are not so familiar with NumPy all of the functions are vectorized so that codesqrt array code is the same as what other languages might write codemap sqrt array code So this is component by component codesqrt code application The same also holds for division by scalar or addition with scalars those apply to all components in parallel lili pThe proof is simple once you know that this is the result If you ask what the probability that emz em lt emZ em lt emz em demz em this is the same as asking what the probability that emz em lt emF em sup sup emU em lt emz em demz em apply emF em to all three expressions noting that it is monotonically increasing function hence emF em emz em lt emU em lt emF em emz em demz em expand the right hand side out to find emF em emz em emf em emz em demz em and since emU em is uniform this probability is just emf em emz em demz em as promised li ol li ol That sounds like question that could get very complicated very fast especially if you start using say great circle distances rather than Euclidean distances But maybe can answer simple question if one converts the points on the sphere to their Voronoi diagram one can describe each Voronoi cell as having approximately area 4π and one can convert this to characteristic distance by pretending it circle rather than rhombus πr² 4π Then,1,NULL,HTTP POST raw binary data with Node js and browser without using form data javascript node js curl pSo can convert an image to base64 and then POST the image data with JSON which is convenient like so ppre code curl username pwd PUT Content Type application json image my base64 str data http maven nabisco com artifactory cdt repo folder unique image id code prepHowever my question is is there way to send the raw binary image data instead of encoding as base64 How could do that with either cURL or Node js Is it possible to send file or binary data without using form data in an HTTP request ppAt the end of the day however like to POST the image from the browser and in that case encoding the image as base64 might be the only way to go h1Curl h1pAs you can read on the href https curl haxx se docs manpage html rel nofollow noreferrer curl manpage uploads of this form are done by specifying data strings and can be done directly from file with code data binary path to file code syntax ppre code data binary lt data gt HTTP This posts data exactly as specified with no extra processing whatsoever If you start the data with the letter the rest should be filename Data is posted in similar manner as data ascii does except that newlines and car‐ riage returns are preserved and conversions are never done If this option is used several times the ones following the first will append data as described in data code prepIf the image is only available as binary string in your language for example as Node js buffer and you don want to hit the filesystem then you may have to escape it by enclosing it in code code characters and replacing every code code character inside of the string with an appropriate escape sequence like code code or if that makes you uneasy code code Recall that codeecho abc def ghi code will echo codeabcdefghi code as one single unit ph1Node js h1pNode is little more forgiving because it has an explicit buffer type but it does require bit more construction to make it work Here am wrapping the return data in Promise in case you need it ppre class lang js prettyprint override codeconst http require http function upload image buffer image id return new Promise accept reject gt let options method PUT hostname maven nabisco com port 80 path artifactory cdt repo folder image id headers Content Type application octet stream Content Length image buffer length let data let request http request options response gt response on data chunk gt data push chunk response on end gt accept headers response headers statusCode response statusCode data Buffer concat data request on error err gt reject err request write image buffer request end code pre Evenly distributing points on sphere python algorithm math geometry uniform pI need an algorithm that can give me positions around sphere for points less than 20 probably that vaguely spreads them out There no need for perfection but just need it so none of them are bunched together pulli href https stackoverflow com questions 5408276 python uniform spherical distribution This question provided good code but couldn find way to make this uniform as this seemed 100 randomized lili href http www xsi blog com archives 115 rel noreferrer This blog post recommended had two ways allowing input of number of points on the sphere but the href http sitemason vanderbilt edu page hmbADS rel noreferrer Saff and Kuijlaars algorithm is exactly in psuedocode could transcribe and the href http cgafaq info wiki Evenly distributed points on sphere Spirals rel noreferrer code example found contained node which couldn see explained and ruined that possibility The second blog example was the Golden Section Spiral which gave me strange bunched up results with no clear way to define constant radius lili href http mathworld wolfram com SpherePointPicking html rel noreferrer This algorithm from href https stackoverflow com questions 1841014 uniform random monte carlo distribution on unit sphere this question seems like it could possibly work but can piece together what on that page into psuedocode or anything li ulpA few other question threads came across spoke of randomized uniform distribution which adds level of complexity not concerned about apologize that this is such silly question but wanted to show that ve truly looked hard and still come up short ppSo what looking for is simple pseudocode to evenly distribute points around unit sphere that either returns in spherical or Cartesian coordinates Even better if it can even distribute with bit of randomization think planets around star decently spread out but with room for leeway h1The golden spiral method h1pYou said you couldn get the golden spiral method to work and that shame because it really really good would like to give you complete understanding of it so that maybe you can understand how to keep this away from being bunched up ppSo here fast non random way to create lattice that is approximately correct as discussed above no lattice will be perfect but this may be good enough It is compared to other methods at href https bendwavy org pack pack htm rel noreferrer BendWavy org but it just has nice and pretty look as well as guarantee about even spacing in the limit ph2Primer sunflower spirals on the unit disk h2pTo understand this algorithm first invite you to look at the 2D sunflower spiral algorithm This is based on the fact that the most irrational number is the golden ratio code sqrt code and if one emits points by the approach stand at the center turn golden ratio of whole turns then emit another point in that direction one naturally constructs spiral which as you get to higher and higher numbers of points nevertheless refuses to have well defined bars that the points line up on sup Note sup ppThe algorithm for even spacing on disk is ppre class lang py prettyprint override codefrom numpy import pi cos sin sqrt arangeimport matplotlib pyplot as ppnum pts 100indices arange num pts dtype float 5r sqrt indices num pts theta pi indicespp scatter cos theta sin theta pp show code prepand it produces results that look like 100 and 1000 pp href https stack imgur com U7Ut2 png rel noreferrer img src https stack imgur com U7Ut2 png alt enter image description here ph2Spacing the points radially h2pThe key strange thing is the formula coder sqrt indices num pts code how did come to that one sup Note sup ppWell am using the square root here because want these to have even area spacing around the sphere That the same as saying that in the limit of large emN em want little region emR em emr em emr em demr em emΘ em emθ em emθ em demθ em to contain number of points proportional to its area which is emr em demr em demθ em Now if we pretend that we are talking about random variable here this has straightforward interpretation as saying that the joint probability density for emR em emΘ em is just emc em for some constant emc em Normalization on the unit disk then forces emc em pi ppNow let me introduce trick It comes from probability theory where it known as href https en wikipedia org wiki Inverse transform sampling rel noreferrer sampling the inverse CDF suppose you wanted to emgenerate em random variable with probability density emf em emz em and you have random variable emU em Uniform just like comes out of coderandom code in most programming languages How do you do this polliFirst turn your density into href https en wikipedia org wiki Cumulative distribution function rel noreferrer cumulative distribution function emF em emz em which remember increases monotonically from to with derivative emf em emz em liliThen calculate the CDF inverse function emF em sup sup emz em liliYou will find that emZ em emF em sup sup emU em is distributed according to the target density sup Note sup li olpNow the golden ratio spiral trick spaces the points out in nicely even pattern for emθ em so let integrate that out for the unit circle we are left with emF em emr em emr em sup2 sup So the inverse function is emF em sup sup emu em emu em sup1 sup and therefore we would generate random points on the sphere in polar coordinates with coder sqrt random theta pi random code ppNow instead of emrandomly em sampling this inverse function we re emuniformly em sampling it and the nice thing about uniform sampling is that our results about how points are spread out in the limit of large emN em will behave as if we had randomly sampled it This combination is the trick Instead of coderandom code we use code arange num pts dtype float num pts code so that say if we want to sample 10 points they are coder 05 15 25 95 code We uniformly sample emr em to get equal area spacing and we use the sunflower increment to avoid awful bars of points in the output ph2Now doing the sunflower on sphere h2pThe changes that we need to make to dot the sphere with points merely involve switching out the polar coordinates for spherical coordinates The radial coordinate of course doesn enter into this because we re on unit sphere To keep things little more consistent here even though was trained as physicist ll use mathematicians coordinates where le emφ em le pi is latitude coming down from the pole and le emθ em le pi is longitude So the difference from above is that we are basically replacing the variable emr em with em phi em ppOur area element which was emr em demr em demθ em now becomes the not much more complicated sin emφ em demφ em demθ em So our joint density for uniform spacing is sin emφ em 4π Integrating out emθ em we find emf em emφ em sin emφ em thus emF em emφ em minus cos emφ em Inverting this we can see that uniform random variable would look like acos emu em but we sample uniformly instead of randomly so we instead use emφ em sub emk em sub acos minus emk em emN em And the rest of the algorithm is just projecting this onto the and coordinates ppre class lang py prettyprint override codefrom numpy import pi cos sin arccos arangeimport mpl toolkits mplot3dimport matplotlib pyplot as ppnum pts 1000indices arange num pts dtype float 5phi arccos indices num pts theta pi indicesx cos theta sin phi sin theta sin phi cos phi pp figure add subplot 111 projection 3d scatter pp show code prepAgain for 100 and 1000 the results look like href https stack imgur com 13o9v png rel noreferrer img src https stack imgur com 13o9v png alt enter image description here aa href https stack imgur com jml6W png rel noreferrer img src https stack imgur com jml6W png alt enter image description here ph1Notes h1olli pThose bars are formed by rational approximations to number and the best rational approximations to number come from its continued fraction expression codez code where codez code is an integer and coden code is either finite or infinite sequence of positive integers ppre class lang py prettyprint override codedef continued fraction while floor yield code prepSince the fraction part code1 code is always between zero and one large integer in the continued fraction allows for particularly good rational approximation one divided by something between 100 and 101 is better than one divided by something between and The most irrational number is therefore the one which is code1 code and has no particularly good rational approximations one can solve emφ em emφ em by multiplying through by emφ em to get the formula for the golden ratio pol start li pFor folks who are not so familiar with NumPy all of the functions are vectorized so that codesqrt array code is the same as what other languages might write codemap sqrt array code So this is component by component codesqrt code application The same also holds for division by scalar or addition with scalars those apply to all components in parallel lili pThe proof is simple once you know that this is the result If you ask what the probability that emz em lt emZ em lt emz em demz em this is the same as asking what the probability that emz em lt emF em sup sup emU em lt emz em demz em apply emF em to all three expressions noting that it is monotonically increasing function hence emF em emz em lt emU em lt emF em emz em demz em expand the right hand side out to find emF em emz em emf em emz em demz em and since emU em is uniform this probability is just emf em emz em demz em as promised li ol li ol 14671,99016,84458,Good Answer Great Question Nice Question Notable Question Notable Question Good Answer Nice Question Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Stellar Question Good Answer Notable Question Good Question Yearling Great Answer Good Answer Favorite Question Good Question Nice Question Stellar Question Notable Question Notable Question Good Question Good Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 14672,370342,62562,Yearling Popular Question Nice Answer Revival Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Great Answer Nice Question Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14673,380264,888261,NULL,NULL,NULL,0,NULL,NULL 14674,352251,335559,Yearling Yearling Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 14675,36604,91864,Revival,NULL,NULL,0,NULL,NULL 14676,331722,313736,Yearling Necromancer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 14677,292494,563183,NULL,NULL,NULL,0,NULL,NULL 14678,516636,1524507,Caucus Yearling Caucus Announcer,NULL,NULL,0,NULL,NULL 14679,44691,38126,Nice Answer Good Answer Good Answer Great Question Good Answer Notable Question Notable Question Good Answer Notable Question Favorite Question Good Question Popular Question Popular Question Yearling Nice Answer Guru Revival Generalist Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Popular Question Good Answer Nice Answer Popular Question Great Answer Good Answer Yearling Guru Nice Answer Enlightened Popular Question Good Answer Good Answer Great Answer Nice Answer Good Answer Great Answer Yearling,NULL,Angular OnPush change detection for dynamic components angular angular2 changedetection pI have an Angular component that dynamically creates various other types of component inside itself It binds its own properties to child component code code properties via an codeOnChanges code hook ppThis binding works fine when the child component change detection is set to Default Then the new inputs are detected and the component template is updated ppHowever it doesn work when change detection is OnPush then the change is not detected believe the change should be detected because new immutable object string is assigned to component code code property ppHere plunker to demonstrate href https plnkr co edit 0wHQghtww2HXVbC27bC1 rel noreferrer https plnkr co edit 0wHQghtww2HXVbC27bC1 ppHow can get this parent to dynamic child property binding to work with ChangeDetectionStrategy OnPush For anyone interested here the related GitHub issue with more info about why OnPush change detection works differently for dynamic components https github com angular angular issues 14087,1,Angular OnPush change detection for dynamic components angular angular2 changedetection pI have an Angular component that dynamically creates various other types of component inside itself It binds its own properties to child component code code properties via an codeOnChanges code hook ppThis binding works fine when the child component change detection is set to Default Then the new inputs are detected and the component template is updated ppHowever it doesn work when change detection is OnPush then the change is not detected believe the change should be detected because new immutable object string is assigned to component code code property ppHere plunker to demonstrate href https plnkr co edit 0wHQghtww2HXVbC27bC1 rel noreferrer https plnkr co edit 0wHQghtww2HXVbC27bC1 ppHow can get this parent to dynamic child property binding to work with ChangeDetectionStrategy OnPush,NULL 14680,317002,31810,Popular Question,NULL,NULL,0,NULL,NULL 14681,91246,403850,NULL,NULL,NULL,0,NULL,NULL 14682,277151,503216,NULL,NULL,NULL,0,NULL,NULL 14683,271629,808729,Nice Question Nice Answer Popular Question Favorite Question Popular Question Popular Question Yearling Notable Question Favorite Question Necromancer Nice Question Yearling Notable Question Nice Answer Great Question Great Question Electorate Custodian Yearling Famous Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 14684,591147,6527,Nice Question Yearling Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 14685,976806,1394042,NULL,NULL,NULL,0,NULL,NULL 14686,2177888,564472,NULL,NULL,NULL,0,NULL,NULL 14687,18268,564472,NULL,NULL,NULL,0,NULL,NULL 14688,86529,352029,NULL,NULL,NULL,0,NULL,NULL 14689,35205,609712,Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Custodian Popular Question Good Question Famous Question Notable Question Popular Question Yearling Enthusiast Popular Question Popular Question Good Question Caucus Popular Question Notable Question Necromancer Notable Question Popular Question Yearling Popular Question Notable Question Caucus Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14690,102015,59198,Notable Question Good Question Necromancer Yearling Notable Question Good Question Famous Question Good Question Notable Question Popular Question Popular Question Popular Question Great Question Notable Question Famous Question Popular Question Notable Question .net Popular Question Nice Answer Popular Question Good Answer Famous Question Necromancer Necromancer Nice Question Good Question Necromancer Good Question Famous Question Favorite Question Famous Question Nice Answer Notable Question Good Answer Populist Necromancer Nice Answer Good Answer Populist Notable Question Good Answer Nice Answer Nice Answer Necromancer Yearling Good Question Nice Question Necromancer Famous Question Good Answer Good Answer Necromancer c# Good Answer Nice Answer Popular Question Nice Question Necromancer Popular Question Notable Question Famous Question Nice Question Nice Answer Nice Answer Yearling Notable Question Good Question Popular Question Good Answer Nice Question Revival Notable Question Famous Question Popular Question Nice Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 14691,9441,1418217,NULL,NULL,NULL,0,NULL,NULL 14692,18319,574673,NULL,NULL,NULL,0,NULL,NULL 14693,70081,262819,Notable Question Yearling Good Answer Yearling Yearling Nice Answer Necromancer Popular Question Great Answer Announcer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 14694,923053,1427291,NULL,NULL,NULL,0,NULL,NULL 14695,1149179,104428,Yearling,NULL,NULL,0,NULL,NULL 14696,21721,104428,Yearling,NULL,NULL,0,NULL,NULL 14697,108792,656334,Good Answer Famous Question Yearling Nice Answer Good Question Notable Question Popular Question Nice Answer Popular Question Yearling Popular Question Popular Question Popular Question Yearling Caucus Notable Question Popular Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 14698,219276,1043467,NULL,NULL,NULL,0,NULL,NULL 14699,1513749,876242,Guru Yearling,NULL,NULL,0,NULL,NULL 14700,714568,1108274,NULL,NULL,NULL,0,NULL,NULL 14701,96430,287985,Yearling Good Answer Yearling Tumbleweed Scholar Taxonomist Yearling,NULL,NULL,0,NULL,NULL 14702,85985,171742,Popular Question Famous Question Popular Question Guru Popular Question Notable Question Popular Question Great Answer Popular Question Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Yearling Notable Question Popular Question Nice Question Popular Question Nice Answer Enlightened asp.net-mvc Nice Question Popular Question Popular Question Good Answer Custodian Generalist Nice Answer Notable Question Famous Question Yearling Good Question Documentation User Notable Question Famous Question Notable Question Famous Question Guru Great Answer Altruist Notable Question Good Answer Nice Answer Yearling Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 14703,4577049,195160,Yearling Nice Answer Famous Question Nice Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 14704,2687388,556752,Good Answer,NULL,NULL,0,NULL,NULL 14705,338203,924412,NULL,NULL,NULL,0,NULL,NULL 14706,275031,38140,Notable Question Good Question Famous Question Popular Question Popular Question Nice Question Popular Question Good Answer Nice Answer Announcer Necromancer Nice Question Good Question Great Answer Announcer Notable Question Yearling Nice Answer Popular Question Nice Answer Nice Question Good Question Popular Question Good Answer Popular Question Good Answer Nice Answer Popular Question Popular Question Yearling Announcer Famous Question Notable Question Announcer Nice Answer Great Answer Nice Question Notable Question Notable Question Great Answer Stellar Question Famous Question Popular Question Nice Question Nice Answer Not a Robot Nice Question Yearling,NULL,NULL,0,NULL,NULL 14707,271027,1228770,Supporter,NULL,NULL,0,NULL,NULL 14708,66243,1176240,NULL,NULL,NULL,0,NULL,NULL 14709,395900,262834,NULL,NULL,NULL,0,NULL,NULL 14710,133992,197739,Popular Question Yearling,NULL,NULL,0,NULL,NULL 14711,5269,173509,NULL,NULL,NULL,0,NULL,NULL 14712,68452,170733,NULL,NULL,NULL,0,NULL,NULL 14713,163874,79677,Good Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Famous Question Popular Question Good Answer Nice Question Popular Question Announcer Necromancer Necromancer Notable Question Good Answer Popular Question Notable Question Nice Answer Yearling Popular Question Nice Answer Notable Question Popular Question Necromancer Popular Question Popular Question Nice Question Nice Answer Announcer Announcer Popular Question Nice Answer Good Answer Guru Good Answer Nice Answer Good Question Nice Answer Nice Question Nice Question Notable Question Notable Question Necromancer Census Nice Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14714,502202,67184,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14715,371961,2134,Revival Guru Good Answer Yearling Necromancer Necromancer Good Answer Yearling Great Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 14716,66856,803225,Nice Answer Self-Learner Revival Nice Answer Nice Question Good Answer Guru Yearling Necromancer Guru Nice Answer Good Answer Good Answer Notable Question Yearling Popular Question Necromancer Electorate Revival Census Announcer Nice Answer Necromancer Guru Popular Question Yearling,NULL,pSomething like ppre codepublic class ObservableWebView extends WebView private OnScrollChangedCallback mOnScrollChangedCallback public ObservableWebView final Context context super context public ObservableWebView final Context context final AttributeSet attrs super context attrs public ObservableWebView final Context context final AttributeSet attrs final int defStyle super context attrs defStyle protected void onScrollChanged final int final int final int oldl final int oldt super onScrollChanged oldl oldt if mOnScrollChangedCallback null mOnScrollChangedCallback onScroll oldl oldt public OnScrollChangedCallback getOnScrollChangedCallback return mOnScrollChangedCallback public void setOnScrollChangedCallback final OnScrollChangedCallback onScrollChangedCallback mOnScrollChangedCallback onScrollChangedCallback Impliment in the activity fragment view that you want to listen to the webview public static interface OnScrollChangedCallback public void onScroll int int int oldl int oldt code prepShould work this is untested but this works for almost every other view in Android ppYou would implement like ppre codewv ObservableWebView findViewById id scorllableWebview wv setOnScrollChangedCallback new OnScrollChangedCallback public void onScroll int int int oldl int oldt if gt oldt Do stuff System out println Swipe UP Do stuff else if lt oldt System out println Swipe Down Log TAG We Scrolled etc code pre literally see the answer below https stackoverflow com 34110402 803225,0,NULL,NULL 14717,247189,1034339,NULL,NULL,NULL,0,NULL,NULL 14718,42397,665548,NULL,NULL,NULL,0,NULL,NULL 14719,1521440,1440848,NULL,NULL,NULL,0,NULL,NULL 14720,145509,1502631,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 14721,292266,1393264,NULL,NULL,NULL,0,NULL,NULL 14722,143381,68300,Notable Question Notable Question Popular Question Necromancer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14723,50895,728778,NULL,NULL,NULL,0,NULL,NULL 14724,107180,1518575,Supporter,NULL,NULL,0,NULL,NULL 14725,1145973,362065,NULL,NULL,NULL,0,NULL,NULL 14726,155629,173533,NULL,NULL,NULL,0,NULL,NULL 14727,14080,29689,Yearling Nice Answer Enlightened Good Answer Yearling Good Question Revival Census Yearling,NULL,NULL,0,NULL,NULL 14728,250141,1408516,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14729,1275466,1480498,Editor,NULL,NULL,0,NULL,NULL 14730,24295,868228,Notable Question Nice Question Critic,NULL,NULL,0,NULL,NULL 14731,323945,960382,NULL,NULL,NULL,0,NULL,NULL 14732,1036259,532858,Nice Answer Enlightened Documentation Pioneer Caucus Yearling Great Answer Caucus Documentation User Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 14733,1761919,532858,Nice Answer Enlightened Documentation Pioneer Caucus Yearling Great Answer Caucus Documentation User Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 14734,632006,717248,NULL,NULL,NULL,0,NULL,NULL 14735,883312,255678,Organizer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 14736,200530,1423975,NULL,NULL,NULL,0,NULL,NULL 14737,29574,24093,Commentator Nice Answer Documentation User Custodian Custodian Yearling Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 14738,59430,839238,Popular Question Yearling,NULL,NULL,0,NULL,NULL 14739,1482947,825559,Famous Question Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14740,44341,1086740,NULL,NULL,NULL,0,NULL,NULL 14741,409430,291063,NULL,NULL,NULL,0,NULL,NULL 14742,19717,875362,facebook Famous Question Good Answer Yearling Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Popular Question Documentation User Guru Revival Yearling,NULL,NULL,0,NULL,NULL 14743,464157,858019,Popular Question Editor,NULL,NULL,0,NULL,NULL 14744,166944,557525,NULL,NULL,NULL,0,NULL,NULL 14745,160794,1038678,NULL,NULL,NULL,0,NULL,NULL 14746,251187,251441,Popular Question Yearling Custodian Informed Good Answer,NULL,NULL,0,NULL,NULL 14747,737691,971626,Scholar Editor Supporter Commentator Curious Tumbleweed,NULL,NULL,0,NULL,NULL 14748,52798,555057,NULL,NULL,NULL,0,NULL,NULL 14749,141078,629676,Popular Question,NULL,NULL,0,NULL,NULL 14750,2266897,1031247,NULL,NULL,NULL,0,NULL,NULL 14751,404571,1505975,NULL,NULL,NULL,0,NULL,NULL 14752,888718,1269836,NULL,NULL,NULL,0,NULL,NULL 14753,1245970,615445,NULL,NULL,NULL,0,NULL,NULL 14754,217397,470948,Necromancer Nice Answer Yearling Nice Answer Enlightened Nice Answer Revival Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 14755,657633,436294,NULL,NULL,NULL,0,NULL,NULL 14756,1066332,52920,Yearling Enthusiast Nice Answer Enlightened Nice Answer Yearling Census Nice Answer Yearling Nice Question Good Answer,NULL,NULL,0,NULL,NULL 14757,133141,315562,Yearling Nice Answer Enlightened Guru Yearling Announcer Yearling javascript Tag Editor Tumbleweed,NULL,NULL,0,NULL,NULL 14758,278305,935153,NULL,NULL,NULL,0,NULL,NULL 14759,110088,413575,Nice Question Nice Answer Popular Question Stellar Question Nice Question Yearling Popular Question Good Answer android Yearling Famous Question Yearling Favorite Question Great Question,NULL,NULL,0,NULL,NULL 14760,14821,256066,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14761,294895,1180527,NULL,NULL,NULL,0,NULL,NULL 14762,120610,538353,NULL,NULL,NULL,0,NULL,NULL 14763,883261,761548,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 14764,298398,391130,NULL,NULL,NULL,0,NULL,NULL 14765,460500,669976,NULL,NULL,NULL,0,NULL,NULL 14766,122805,1028537,NULL,NULL,NULL,0,NULL,NULL 14767,229461,350029,Nice Answer Civic Duty Nice Answer Notable Question Yearling Autobiographer Popular Question Critic Announcer Custodian Caucus Constituent Good Answer Documentation User Yearling Guru,NULL,NULL,0,NULL,NULL 14768,619730,560693,Popular Question Curious Tumbleweed Popular Question Critic Yearling Notable Question Nice Answer Popular Question Notable Question,NULL,NULL,1,NULL,Debounce function implemented with promises javascript promise pI trying to implement debounce function that works with promise in javascript That way each caller can consume the result of the debounced function using Promise Here is the best have been able to come up with so far ppre codefunction debounce inner ms let timer null let promise null const events new EventEmitter do really need this return function args if timer null promise new Promise resolve gt events once done resolve else clearTimeout timer timer setTimeout gt events emit done inner args timer null ms return promise code prepIdeally would like to implement this utility function emwithout em introducing dependency on EventEmitter or implementing my own basic version of EventEmitter but can think of way to do it Any thoughts pI found better way to implement this with promises ppre codefunction debounce inner ms let timer null let resolves return function args Run the function after certain amount of time clearTimeout timer timer setTimeout gt Get the result of the inner function then apply it to the resolve function of each promise that has been created since the last time the inner function was run let result inner args resolves forEach gt result resolves ms return new Promise gt resolves push code prepI still welcome suggestions but the new implementation answers my original question about how to implement this function without dependency on EventEmitter or something like it 14769,464715,214479,NULL,NULL,NULL,0,NULL,NULL 14770,885350,958029,Editor Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 14771,42444,383793,Nice Answer Enlightened Custodian Revival Nice Answer Yearling Caucus Announcer Famous Question Tumbleweed Announcer Yearling Announcer Announcer Good Answer Announcer Booster Announcer Revival Good Question Custodian Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 14772,1328174,443342,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14773,386572,189320,NULL,NULL,NULL,0,NULL,NULL 14774,11276794,1024422,NULL,NULL,NULL,0,NULL,NULL 14775,1227826,514091,NULL,NULL,NULL,0,NULL,NULL 14776,2191703,1116887,Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14777,299691,1001691,NULL,NULL,NULL,0,NULL,NULL 14778,1156292,979820,Teacher Famous Question,NULL,NULL,0,NULL,NULL 14779,270619,551931,NULL,NULL,NULL,0,NULL,NULL 14780,206920,250198,Yearling Guru Yearling Caucus,NULL,NULL,0,NULL,NULL 14781,495658,374815,NULL,NULL,NULL,0,NULL,NULL 14782,132084,820751,NULL,NULL,NULL,0,NULL,NULL 14783,293732,869117,Census,NULL,NULL,0,NULL,NULL 14784,110056,258120,Yearling Custodian Proofreader Guru Good Answer Good Answer Excavator Informed Yearling Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14785,22030,656689,Necromancer Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 14786,24008,407101,Nice Question Nice Answer Autobiographer Notable Question Yearling,NULL,NULL,0,NULL,NULL 14787,1101828,407101,Nice Question Nice Answer Autobiographer Notable Question Yearling,NULL,NULL,0,NULL,NULL 14788,205107,302507,NULL,NULL,NULL,0,NULL,NULL 14789,155731,1152768,NULL,NULL,NULL,0,NULL,NULL 14790,503166,391852,Yearling Promoter Commentator Benefactor,NULL,NULL,0,NULL,NULL 14791,47627,276664,Notable Question Editor Promoter Popular Question Yearling Favorite Question Popular Question Popular Question Good Answer Great Question Yearling Benefactor,NULL,NULL,0,NULL,NULL 14792,61154,195351,Notable Question Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14793,10549,4558,Good Answer Famous Question Good Question Yearling Nice Answer Enlightened Nice Answer Yearling python Yearling Guru,NULL,NULL,0,NULL,NULL 14794,153924,525964,NULL,NULL,NULL,0,NULL,NULL 14795,486030,1200177,Good Answer Nice Answer Enlightened Guru Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 14796,64200,233883,Nice Question,NULL,NULL,0,NULL,NULL 14797,246528,1211393,NULL,NULL,NULL,0,NULL,NULL 14798,517205,1043546,NULL,NULL,NULL,0,NULL,NULL 14799,906436,176877,Good Answer Necromancer asp.net-mvc Necromancer Good Answer Notable Question Great Answer Necromancer Good Answer Nice Answer javascript Popular Question Good Answer Nice Question Necromancer Necromancer Necromancer Good Answer Necromancer Popular Question Nice Answer Nice Question Announcer Necromancer Necromancer Announcer Nice Answer Nice Answer Nice Question Great Answer Great Answer Nice Answer Nice Answer Necromancer Popular Question Yearling Popular Question Revival Nice Answer Popular Question Revival Nice Answer Strunk & White Necromancer Good Answer Announcer Notable Question entity-framework Necromancer Good Answer Nice Question Necromancer Good Answer Nice Answer Good Answer Necromancer Popular Question Good Answer Announcer Announcer Announcer Announcer Announcer Announcer Good Question Nice Answer Enlightened Announcer Notable Question Yearling Popular Question Announcer Necromancer Great Answer Good Answer Announcer Revival Announcer Revival Nice Answer Popular Question Notable Question Nice Answer Necromancer Good Answer Good Answer Nice Answer Enlightened Nice Answer Necromancer Necromancer Nice Question Yearling Good Answer Notable Question Good Answer html Announcer,NULL,pThe real answer is Because you cannot trust defer ppIn concept defer and async differ as follows pp strongasync strong allows the script to be downloaded in the background without blocking Then the moment it finishes downloading rendering is blocked and that script executes Render resumes when the script has executed pp strongdefer strong does the same thing except claims to guarantee that scripts execute in the order they were specified on the page and that they will be executed after the document has finished parsing So some scripts may finish downloading then sit and wait for scripts that downloaded later but appeared before them ppUnfortunately due to what is really standards cat fight defer definition varies spec to spec and even in the most recent specs doesn offer useful guarantee As answers href https stackoverflow com questions 3952009 defer attribute chrome here and href https github com h5bp lazyweb requests issues 42 rel noreferrer this issue demonstrate browsers implement defer differently pulliIn certain situations some browsers have bug that causes codedefer code scripts to run out of order liliSome browsers delay the codeDOMContentLoaded code event until after the codedefer code scripts have loaded and some don liliSome browsers obey codedefer code on code lt script gt code elements with inline code and without codesrc code attribute and some ignore it li ulpFortunately the spec does at least specify that async overrides defer So you can treat all scripts as async and get wide swath of browser support like so ppre code lt script defer async src gt lt script gt code prep98 of browsers in use worldwide and 99 in the US will avoid blocking with this approach pp If you need to wait until the document has finished parsing listen to the event codeDOMContentLoaded code event or use jQuery handy code ready code function You want to do this anyway to fall back gracefully on browsers that don implement codedefer code at all For older browsers that don support async namely older IE pJust to make this all simpler ve moved the code necessary to force TablePerConcrete to open source Its purpose is to allow features normally only available in the Fluent Interface where you have to scatter lot of code into your Db class OnModelCreating method to migrate over to Attribute based features ppIt allows you to do things like this ppre code TablePerConcrete public class MySubclassTable MyParentClassEntity code prepForcing TPC regardless of what EF might decide to infer from your parent class subclass relationship ppOne interesting challenge here is that sometimes EF will screw up an inherited Id property setting it to be filled with an explicit value rather than being database generated You can ensure it doesn do that by having the parent class implement interface codeIId code which just says This has an Id property then marking the subclasses with code ForcePKId code ppre codepublic class MyParentClassEntity IId public int Id get set TablePerConcrete ForcePKId public class MySubclassTable MyParentClassEntity No need for PK Id property here it was inherited and will work as you intended code prepKicking off the code that handles all this for you is pretty simple just add couple lines to your Db class ppre codepublic class Db DbContext protected override void OnModelCreating DbModelBuilder modelBuilder var modelsProject Assembly GetExecutingAssembly B9DbExtender New Extend modelBuilder modelsProject code prepYou can access it one of ways polli pVia single gist with all the relevant classes copy pasted into single file here href https gist github com b9chris 8efd30687d554d1ceeb3fee359c179f9 rel nofollow noreferrer https gist github com b9chris 8efd30687d554d1ceeb3fee359c179f9 lili pVia library our Brass9 Data which we re releasing open source It has lot of other EF6 tools in it like Data Migrations It also more organized with classes broken out into separate files as you normally expect href https github com b9chris Brass9 Data rel nofollow noreferrer https github com b9chris Brass9 Data li ol Fixed Sorry about that,0,NULL,NULL 14800,41678,280118,NULL,NULL,NULL,0,NULL,NULL 14801,68380,27074,Necromancer Custodian Nice Question Revival Yearling Famous Question Benefactor Tumbleweed Nice Answer Enlightened Mortarboard Good Answer Guru c++ Great Answer Famous Question Nice Question Good Question Popular Question Yearling Self-Learner Inquisitive Nice Question Cleanup Popular Question Nice Question Popular Question Yearling,NULL,How to implement common bash idioms in Python python bash shell pI currently do my textfile manipulation through bunch of badly remembered AWK sed Bash and tiny bit of Perl ppI ve seen mentioned few places that python is good for this kind of thing How can use Python to replace shell scripting AWK sed and friends This is my question don understand why it is opinion based The top answer lists each of the main things shell does and tells you how to do them in python That in my opinion answers the question in non opinion way,0,NULL,NULL 14802,109018,403414,NULL,NULL,NULL,0,NULL,NULL 14803,22547,10524,NULL,NULL,NULL,0,NULL,NULL 14804,28345,919708,NULL,NULL,NULL,0,NULL,NULL 14805,63784,87380,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14806,347339,1335372,NULL,NULL,NULL,0,NULL,NULL 14807,126631,872491,Enthusiast Popular Question Announcer Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 14808,74417,362857,Famous Question Famous Question Notable Question Popular Question Good Question Popular Question Good Question Yearling Nice Question Famous Question Popular Question Favorite Question Nice Question Popular Question Popular Question Great Question Custodian Custodian Good Question Popular Question Notable Question Famous Question Yearling Nice Answer Famous Question Famous Question Popular Question Famous Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14809,64580,406194,Yearling,NULL,NULL,0,NULL,NULL 14810,101021,140578,Popular Question Revival Caucus Famous Question Census Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 14811,78151,461108,Notable Question Citizen Patrol Custodian Yearling Popular Question Popular Question Promoter Benefactor Nice Question Yearling Good Answer Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 14812,105578,189469,Custodian Yearling Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14813,789108,79849,Notable Question Yearling Popular Question Good Question Yearling Famous Question Notable Question Nice Question Nice Question Yearling Popular Question Good Question Good Question,NULL,NULL,0,NULL,NULL 14814,283680,79849,Notable Question Yearling Popular Question Good Question Yearling Famous Question Notable Question Nice Question Nice Question Yearling Popular Question Good Question Good Question,NULL,NULL,0,NULL,NULL 14815,182865,27870,Famous Question Taxonomist Popular Question Yearling Notable Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Good Question Notable Question Popular Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 14816,473344,448,Popular Question Popular Question Popular Question Yearling Custodian Nice Answer Nice Answer Enlightened Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 14817,208743,750708,Notable Question Critic Good Question Yearling,NULL,NULL,0,NULL,NULL 14818,49216,1106917,NULL,NULL,NULL,0,NULL,NULL 14819,1023960,947675,NULL,NULL,NULL,0,NULL,NULL 14820,184864,276365,NULL,NULL,NULL,0,NULL,NULL 14821,203958,3947,Revival Notable Question Yearling Good Answer Yearling Good Answer Revival Yearling javascript,NULL,NULL,0,NULL,NULL 14822,8206,901453,NULL,NULL,NULL,0,NULL,NULL 14823,336981,94896,Nice Answer Yearling Notable Question Nice Answer Enlightened Nice Question Nice Answer Great Answer Yearling Great Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 14824,204986,306550,Popular Question,NULL,NULL,0,NULL,NULL 14825,169582,734716,Announcer Announcer,NULL,NULL,0,NULL,NULL 14826,123602,136886,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 14827,215921,187381,NULL,NULL,NULL,0,NULL,NULL 14828,928195,1229566,Critic,NULL,NULL,0,NULL,NULL 14829,76537,9573,NULL,NULL,NULL,0,NULL,NULL 14830,365795,384448,NULL,NULL,NULL,0,NULL,NULL 14831,330457,1128140,Citizen Patrol Necromancer Yearling,NULL,NULL,0,NULL,NULL 14832,151757,12852,Custodian Citizen Patrol Caucus Yearling Critic Caucus Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 14833,22396,1000222,Unsung Hero Yearling Yearling Yearling Explainer Yearling Announcer,NULL,NULL,0,NULL,NULL 14834,465030,1447766,Census,NULL,NULL,0,NULL,NULL 14835,565947,1266984,Scholar,NULL,NULL,0,NULL,NULL 14836,11802,607410,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 14837,602861,48419,Notable Question,NULL,NULL,0,NULL,NULL 14838,108174,1377526,Yearling Good Question Popular Question Famous Question Yearling Critic Famous Question Teacher Custodian Custodian Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 14839,3188873,1377526,Yearling Good Question Popular Question Famous Question Yearling Critic Famous Question Teacher Custodian Custodian Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 14840,45735,738225,Critic,NULL,NULL,0,NULL,NULL 14841,4391860,738225,Critic,NULL,NULL,0,NULL,NULL 14842,393712,1397513,NULL,NULL,NULL,0,NULL,NULL 14843,831511,106910,Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14844,89558,135913,Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 14845,232848,98818,Nice Answer Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 14846,1320,357985,Announcer Necromancer Nice Question,NULL,NULL,0,NULL,NULL 14847,42831,1461483,NULL,NULL,NULL,0,NULL,NULL 14848,178634,985215,Supporter Notable Question,NULL,NULL,0,NULL,NULL 14849,44284,636675,NULL,NULL,NULL,0,NULL,NULL 14850,430851,336130,Critic Popular Question,NULL,NULL,0,NULL,NULL 14851,233049,719706,NULL,NULL,NULL,0,NULL,NULL 14852,591878,290791,NULL,NULL,NULL,0,NULL,NULL 14853,90915,530317,Popular Question Curious Famous Question,NULL,NULL,0,NULL,NULL 14854,1151292,358748,Notable Question Investor Notable Question Notable Question Promoter Famous Question Nice Question Benefactor Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14855,141660,175981,Nice Answer Good Answer Revival Revival Nice Answer Great Answer Yearling Announcer Popular Question Revival Great Answer Revival Yearling Announcer Nice Answer Good Answer Popular Question Necromancer Nice Answer Enlightened Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 14856,393963,421356,Revival,NULL,NULL,0,NULL,NULL 14857,20865,610743,Good Answer,NULL,NULL,0,NULL,NULL 14858,5920132,283078,Great Answer Necromancer git Good Answer Yearling Guru Nice Answer Good Answer Deputy Nice Answer Necromancer Caucus Nice Answer Enlightened Yearling Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened php Census Nice Answer Enlightened Yearling Nice Answer Nice Answer Announcer Great Answer Announcer Good Answer Custodian,NULL,pFrom href https docs npmjs com misc developers keeping files out of your package rel noreferrer the documentation pblockquote pUse code npmignore code file to keep stuff out of your package If there no code npmignore code file but there emis em code gitignore code file then npm will ignore the stuff matched by the code gitignore code file If you emwant em to include something that is excluded by your code gitignore code file you can create an empty code npmignore code file to override it blockquotepIn simpler terms npm emprefers em the code npmignore code file if it is there but will fall back to the code gitignore code file So if both are present it will use the code npmignore code file ppIn many cases both Git and npm can ignore the same files so it makes sense to just use code gitignore code file on its own If there ever discrepancy npm and Git need to ignore different files then you need to maintain separate code gitignore code and code npmignore code files ppMore information on what to put in code npmignore code files href https stackoverflow com questions 25124844 should npmignore my tests Should npmignore my tests Sounds like you need an npmignore file containing the same contents as gitignore but with the bin line removed pFrom href https docs npmjs com misc developers keeping files out of your package rel noreferrer the documentation pblockquote pUse code npmignore code file to keep stuff out of your package If there no code npmignore code file but there emis em code gitignore code file then npm will ignore the stuff matched by the code gitignore code file If you emwant em to include something that is excluded by your code gitignore code file you can create an empty code npmignore code file to override it blockquotepIn simpler terms npm emprefers em the code npmignore code file if it is there but will fall back to the code gitignore code file So if both are present it will use the code npmignore code file ppIn many cases both Git and npm can ignore the same files so it makes sense to just use code gitignore code file on its own If there ever discrepancy npm and Git need to ignore different files then you need to maintain separate code gitignore code and code npmignore code files ppMore information on what to put in code npmignore code files href https stackoverflow com questions 25124844 should npmignore my tests Should npmignore my tests the second sentence covers that “If you want to include something that is excluded by your gitignore file you can create an empty npmignore file to override it In your case you will need to copy gitignore to npmignore and remove the folder from npmignore only,0,NULL,NULL 14859,205684,283078,Great Answer Necromancer git Good Answer Yearling Guru Nice Answer Good Answer Deputy Nice Answer Necromancer Caucus Nice Answer Enlightened Yearling Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened php Census Nice Answer Enlightened Yearling Nice Answer Nice Answer Announcer Great Answer Announcer Good Answer Custodian,NULL,pFrom href https docs npmjs com misc developers keeping files out of your package rel noreferrer the documentation pblockquote pUse code npmignore code file to keep stuff out of your package If there no code npmignore code file but there emis em code gitignore code file then npm will ignore the stuff matched by the code gitignore code file If you emwant em to include something that is excluded by your code gitignore code file you can create an empty code npmignore code file to override it blockquotepIn simpler terms npm emprefers em the code npmignore code file if it is there but will fall back to the code gitignore code file So if both are present it will use the code npmignore code file ppIn many cases both Git and npm can ignore the same files so it makes sense to just use code gitignore code file on its own If there ever discrepancy npm and Git need to ignore different files then you need to maintain separate code gitignore code and code npmignore code files ppMore information on what to put in code npmignore code files href https stackoverflow com questions 25124844 should npmignore my tests Should npmignore my tests Sounds like you need an npmignore file containing the same contents as gitignore but with the bin line removed pFrom href https docs npmjs com misc developers keeping files out of your package rel noreferrer the documentation pblockquote pUse code npmignore code file to keep stuff out of your package If there no code npmignore code file but there emis em code gitignore code file then npm will ignore the stuff matched by the code gitignore code file If you emwant em to include something that is excluded by your code gitignore code file you can create an empty code npmignore code file to override it blockquotepIn simpler terms npm emprefers em the code npmignore code file if it is there but will fall back to the code gitignore code file So if both are present it will use the code npmignore code file ppIn many cases both Git and npm can ignore the same files so it makes sense to just use code gitignore code file on its own If there ever discrepancy npm and Git need to ignore different files then you need to maintain separate code gitignore code and code npmignore code files ppMore information on what to put in code npmignore code files href https stackoverflow com questions 25124844 should npmignore my tests Should npmignore my tests the second sentence covers that “If you want to include something that is excluded by your gitignore file you can create an empty npmignore file to override it In your case you will need to copy gitignore to npmignore and remove the folder from npmignore only,0,NULL,NULL 14860,45665,542323,NULL,NULL,NULL,0,NULL,NULL 14861,110084,837785,Nice Question Notable Question Good Question Editor Popular Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 14862,51088,43672,Commentator,NULL,NULL,0,NULL,NULL 14863,228476,60743,Scholar Student Excavator,NULL,NULL,0,NULL,NULL 14864,110514,1457372,NULL,NULL,NULL,0,NULL,NULL 14865,832,635251,NULL,NULL,NULL,0,NULL,NULL 14866,192853,416222,Supporter,NULL,NULL,0,NULL,NULL 14867,196746,407553,Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 14868,14661,306297,Nice Question Yearling Famous Question Good Answer Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 14869,189663,75864,Yearling Populist,NULL,NULL,0,NULL,NULL 14870,200788,268154,Nice Answer Popular Question Good Answer Yearling Caucus Census Notable Question Citizen Patrol Caucus Census Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 14871,320038,237927,NULL,NULL,NULL,0,NULL,NULL 14872,105822,1220,Great Question Good Question Famous Question Famous Question Yearling Notable Question Caucus Notable Question Nice Answer Nice Question Good Question Great Question Yearling Nice Answer Great Answer Popular Question Good Question Famous Question Notable Question Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 14873,286591,930728,Self-Learner Nice Answer Enlightened osgi Necromancer Necromancer Yearling apache-karaf Caucus Constituent osgi-bundle maven karaf java apache-camel Revival Proofreader Caucus Constituent Yearling Custodian Custodian Nice Answer apache-felix Good Answer Caucus Constituent Revival Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 14874,27422,653173,Yearling Good Answer Yearling Caucus Documentation User Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 14875,314687,1476231,NULL,NULL,NULL,0,NULL,NULL 14876,218810,781019,NULL,NULL,NULL,0,NULL,NULL 14877,530515,44360,Yearling Citizen Patrol Yearling Yearling,NULL,NULL,0,NULL,NULL 14878,149581,36929,Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 14879,291420,1513504,Yearling Custodian Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14880,6189,41221,Nice Answer Yearling Nice Answer Enlightened Yearling Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 14881,432874,245287,Yearling,NULL,NULL,0,NULL,NULL 14882,532936,762785,NULL,NULL,NULL,0,NULL,NULL 14883,43095,618432,Notable Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 14884,161908,15233,Nice Answer Promoter Benefactor Notable Question Notable Question Famous Question Yearling Caucus Necromancer Notable Question Yearling Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14885,61449,6471,Guru Yearling Census Nice Answer,NULL,NULL,0,NULL,NULL 14886,186143,377049,Necromancer Tag Editor,NULL,NULL,0,NULL,NULL 14887,519531,566484,Good Answer Guru Yearling Revival,NULL,NULL,0,NULL,NULL 14888,317429,47721,Curious Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14889,582331,1369660,Nice Answer Enlightened Revival Revival,NULL,NULL,0,NULL,NULL 14890,207746,1221974,NULL,NULL,NULL,0,NULL,NULL 14891,60993,757005,NULL,NULL,NULL,0,NULL,NULL 14892,61021,757005,NULL,NULL,NULL,0,NULL,NULL 14893,690938,1178432,NULL,NULL,NULL,0,NULL,NULL 14894,151040,1420400,NULL,NULL,NULL,0,NULL,NULL 14895,682,135153,NULL,NULL,NULL,0,NULL,NULL 14896,206394,1317494,NULL,NULL,NULL,0,NULL,NULL 14897,493102,1185276,NULL,NULL,NULL,0,NULL,NULL 14898,736837,1558227,NULL,NULL,NULL,0,NULL,NULL 14899,1159360,16625,NULL,NULL,NULL,0,NULL,NULL 14900,290423,105872,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14901,485,1460176,NULL,NULL,NULL,0,NULL,NULL 14902,23819,59984,Yearling Nice Answer Good Answer Nice Answer Enlightened Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 14903,17463,697773,NULL,NULL,NULL,0,NULL,NULL 14904,69470,174971,Good Answer Nice Answer Notable Question Disciplined Necromancer Yearling Popular Question Caucus Nice Answer Yearling Pundit Custodian Yearling,NULL,NULL,0,NULL,NULL 14905,204734,1351526,NULL,NULL,NULL,0,NULL,NULL 14906,376006,316625,NULL,NULL,NULL,0,NULL,NULL 14907,86809,2272,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14908,384249,1493214,NULL,NULL,NULL,0,NULL,NULL 14909,46871,54401,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 14910,32985,701333,NULL,NULL,NULL,0,NULL,NULL 14911,135274,108518,Good Question Popular Question Yearling Guru Yearling Nice Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 14912,7801,48310,Popular Question Yearling Good Answer Revival Yearling Notable Question Guru Popular Question Famous Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14913,436674,111021,Necromancer Nice Question Necromancer Necromancer Notable Question Yearling Necromancer Nice Question Necromancer Notable Question Famous Question Nice Question Yearling Necromancer Nice Question Necromancer Popular Question Necromancer Necromancer Good Answer Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 14914,13641,916813,NULL,NULL,NULL,0,NULL,NULL 14915,385999,1119935,Popular Question Notable Question Nice Answer Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14916,2242434,737080,Revival Nice Answer Yearling Necromancer Organizer Tag Editor Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14917,37919,737080,Revival Nice Answer Yearling Necromancer Organizer Tag Editor Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 14918,52484,496080,Notable Question Notable Question Popular Question Yearling Popular Question Excavator Necromancer Nice Answer Custodian Yearling Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14919,365447,850789,NULL,NULL,NULL,0,NULL,NULL 14920,521109,555891,Famous Question,NULL,NULL,0,NULL,NULL 14921,918958,495347,Supporter,NULL,NULL,0,NULL,NULL 14922,377651,11974,Yearling,NULL,NULL,0,NULL,NULL 14923,270869,727509,Scholar Yearling,NULL,NULL,0,NULL,NULL 14924,356592,219286,NULL,NULL,NULL,0,NULL,NULL 14925,101525,829466,NULL,NULL,NULL,0,NULL,NULL 14926,398452,801706,Good Answer Notable Question Yearling Famous Question Custodian Guru Notable Question Popular Question Popular Question Popular Question Yearling Great Answer php Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14927,3954279,801706,Good Answer Notable Question Yearling Famous Question Custodian Guru Notable Question Popular Question Popular Question Popular Question Yearling Great Answer php Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 14928,743905,165608,NULL,NULL,NULL,0,NULL,NULL 14929,469944,749669,Commentator Curious Popular Question,NULL,NULL,0,NULL,NULL 14930,380586,228394,Necromancer Yearling,NULL,NULL,0,NULL,NULL 14931,163480,362195,NULL,NULL,NULL,0,NULL,NULL 14932,13145,334634,NULL,NULL,NULL,0,NULL,NULL 14933,234816,215468,Popular Question,NULL,NULL,0,NULL,NULL 14934,84963,1325446,Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 14935,339964,931736,NULL,NULL,NULL,0,NULL,NULL 14936,411071,6991,NULL,NULL,NULL,0,NULL,NULL 14937,674856,1289412,NULL,NULL,NULL,0,NULL,NULL 14938,438392,1495282,Notable Question,NULL,NULL,0,NULL,NULL 14939,4225969,1495282,Notable Question,NULL,NULL,0,NULL,NULL 14940,54229,533467,Autobiographer Caucus Editor Supporter Yearling Yearling Yearling Custodian Custodian Nice Answer,NULL,NULL,0,NULL,NULL 14941,25289,264805,Citizen Patrol Supporter,NULL,NULL,0,NULL,NULL 14942,120251,234938,Nice Answer Enlightened Announcer Nice Answer jenkins-plugins Nice Answer Enlightened Nice Answer Enlightened Necromancer Good Answer Necromancer Nice Answer Enlightened Guru Notable Question Nice Answer Enlightened Popular Question Good Question Nice Answer Enlightened Revival Necromancer Great Answer Nice Answer Guru Nice Answer Nice Question Good Answer Necromancer Yearling Nice Answer Nice Answer Good Answer Custodian Custodian Great Answer Necromancer Good Answer Nice Answer Enlightened Good Question Nice Answer Nice Answer Guru Great Answer Good Answer Announcer Guru Announcer Good Answer Announcer Good Answer Good Question Good Answer Nice Answer Guru Nice Answer Nice Answer jenkins-pipeline jenkins Guru Announcer Yearling Nice Answer Enlightened Nice Answer Guru Great Answer Nice Answer Enlightened Good Answer Good Answer Famous Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Guru Guru Nice Answer Enlightened Good Answer Good Answer Great Answer,NULL,pI find far easier solution is to forget all the codeif code checks all over the place and just use href http proguard sourceforge net rel noreferrer ProGuard to strip out any codeLog code or codeLog code method calls when we call our Ant coderelease code target ppThat way we always have the debug info being output for regular builds and don have to make any code changes for release builds ProGuard can also do multiple passes over the bytecode to remove other undesired statements empty blocks and can automatically inline short methods where appropriate ppFor example here very basic ProGuard config for Android ppre code dontskipnonpubliclibraryclasses dontobfuscate forceprocessing optimizationpasses keep class extends android app Activity assumenosideeffects class android util Log public static public static code prepSo you would save that to file then call ProGuard from Ant passing in your just compiled JAR and the Android platform JAR you re using ppSee also href http proguard sourceforge net manual examples html androidapplication rel noreferrer the examples in the ProGuard manual phrp strongUpdate years later strong Nowadays used href https github com JakeWharton timber rel noreferrer Timber for Android logging ppNot only is it bit nicer than the default codeLog code implementation the log tag is set automatically and it easy to log formatted strings and exceptions but you can also specify different logging behaviours at runtime ppIn this example logging statements will only be written to logcat in debug builds of my app ppTimber is set up in my codeApplication code codeonCreate code method ppre codeif BuildConfig DEBUG Timber plant new Timber DebugTree code prepThen anywhere else in my code can log easily ppre codeTimber Downloading URL url try catch IOException ioe Timber ioe Bad things happened code prepSee the href https github com JakeWharton timber blob dd94a22 timber sample src main java com example timber ExampleApp java rel noreferrer Timber sample app for more advanced example where all log statements are sent to logcat during development and in production no debug statements are logged but errors are silently reported to Crashlytics That unrelated to this question but Java lets you register handler to catch otherwise unhandled exceptions pI find far easier solution is to forget all the codeif code checks all over the place and just use href http proguard sourceforge net rel noreferrer ProGuard to strip out any codeLog code or codeLog code method calls when we call our Ant coderelease code target ppThat way we always have the debug info being output for regular builds and don have to make any code changes for release builds ProGuard can also do multiple passes over the bytecode to remove other undesired statements empty blocks and can automatically inline short methods where appropriate ppFor example here very basic ProGuard config for Android ppre code dontskipnonpubliclibraryclasses dontobfuscate forceprocessing optimizationpasses keep class extends android app Activity assumenosideeffects class android util Log public static public static code prepSo you would save that to file then call ProGuard from Ant passing in your just compiled JAR and the Android platform JAR you re using ppSee also href http proguard sourceforge net manual examples html androidapplication rel noreferrer the examples in the ProGuard manual phrp strongUpdate years later strong Nowadays used href https github com JakeWharton timber rel noreferrer Timber for Android logging ppNot only is it bit nicer than the default codeLog code implementation the log tag is set automatically and it easy to log formatted strings and exceptions but you can also specify different logging behaviours at runtime ppIn this example logging statements will only be written to logcat in debug builds of my app ppTimber is set up in my codeApplication code codeonCreate code method ppre codeif BuildConfig DEBUG Timber plant new Timber DebugTree code prepThen anywhere else in my code can log easily ppre codeTimber Downloading URL url try catch IOException ioe Timber ioe Bad things happened code prepSee the href https github com JakeWharton timber blob dd94a22 timber sample src main java com example timber ExampleApp java rel noreferrer Timber sample app for more advanced example where all log statements are sent to logcat during development and in production no debug statements are logged but errors are silently reported to Crashlytics If you use Timber properly using format parameters only one String constant will be created and no StringBuilders Any methods called in the parameters wouldn be executed for builds where Timber is no op If you really want to ensure that the String constants are removed from the APK imagine you could use ProGuard with an assumenosideeffects declaration for Timber pI find far easier solution is to forget all the codeif code checks all over the place and just use href http proguard sourceforge net rel noreferrer ProGuard to strip out any codeLog code or codeLog code method calls when we call our Ant coderelease code target ppThat way we always have the debug info being output for regular builds and don have to make any code changes for release builds ProGuard can also do multiple passes over the bytecode to remove other undesired statements empty blocks and can automatically inline short methods where appropriate ppFor example here very basic ProGuard config for Android ppre code dontskipnonpubliclibraryclasses dontobfuscate forceprocessing optimizationpasses keep class extends android app Activity assumenosideeffects class android util Log public static public static code prepSo you would save that to file then call ProGuard from Ant passing in your just compiled JAR and the Android platform JAR you re using ppSee also href http proguard sourceforge net manual examples html androidapplication rel noreferrer the examples in the ProGuard manual phrp strongUpdate years later strong Nowadays used href https github com JakeWharton timber rel noreferrer Timber for Android logging ppNot only is it bit nicer than the default codeLog code implementation the log tag is set automatically and it easy to log formatted strings and exceptions but you can also specify different logging behaviours at runtime ppIn this example logging statements will only be written to logcat in debug builds of my app ppTimber is set up in my codeApplication code codeonCreate code method ppre codeif BuildConfig DEBUG Timber plant new Timber DebugTree code prepThen anywhere else in my code can log easily ppre codeTimber Downloading URL url try catch IOException ioe Timber ioe Bad things happened code prepSee the href https github com JakeWharton timber blob dd94a22 timber sample src main java com example timber ExampleApp java rel noreferrer Timber sample app for more advanced example where all log statements are sent to logcat during development and in production no debug statements are logged but errors are silently reported to Crashlytics That irrelevant to this answer as BuildConfig DEBUG is only being called once during Application creation,0,NULL,NULL 14943,178251,522909,NULL,NULL,NULL,0,NULL,NULL 14944,83261,661206,Nice Answer,NULL,NULL,0,NULL,NULL 14945,146965,1150951,Nice Answer,NULL,NULL,0,NULL,NULL 14946,357767,505843,Nice Answer Yearling Peer Pressure Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 14947,74936,1882,Necromancer Yearling Organizer Tenacious Good Answer Good Answer Yearling Nice Answer Enlightened Guru rabbitmq Revival Nice Answer Enlightened Yearling Necromancer Explainer,NULL,NULL,0,NULL,NULL 14948,21975,7831,Nice Answer Favorite Question Nice Answer Good Answer Popular Question Good Answer Nice Answer Nice Question Yearling Notable Question Nice Answer Good Answer Nice Question Popular Question Nice Question Reviewer Custodian Great Question Strunk & White Popular Question Yearling Documentation User Good Answer Famous Question Popular Question Notable Question Popular Question Famous Question Nice Question Great Question Famous Question Yearling Guru Notable Question Proofreader,NULL,NULL,0,NULL,NULL 14949,585879,58244,Yearling Nice Answer Great Question Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14950,251558,699459,NULL,NULL,NULL,0,NULL,NULL 14951,26410,73270,NULL,NULL,NULL,0,NULL,NULL 14952,735640,378867,NULL,NULL,NULL,0,NULL,NULL 14953,1341935,8037,Good Answer Popular Question Good Answer Revival Guru Necromancer Yearling Popular Question Nice Answer Notable Question Yearling Nice Answer Nice Question Announcer Famous Question Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 14954,311768,158336,Famous Question,NULL,NULL,0,NULL,NULL 14955,96136,1399849,Informed,NULL,NULL,0,NULL,NULL 14956,343665,558769,NULL,NULL,NULL,0,NULL,NULL 14957,689768,1376716,Student,NULL,NULL,0,NULL,NULL 14958,790217,260405,NULL,NULL,NULL,0,NULL,NULL 14959,247548,248664,Yearling Nice Answer Enlightened Popular Question Yearling Necromancer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 14960,34424,167470,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 14961,191307,1111177,Notable Question,NULL,NULL,0,NULL,NULL 14962,31824,474997,Good Answer Great Answer Yearling Guru Great Answer Famous Question Guru Yearling Great Question Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 14963,386511,1364342,NULL,NULL,NULL,0,NULL,NULL 14964,171532,998150,NULL,NULL,NULL,0,NULL,NULL 14965,237011,574303,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 14966,75534,148439,Nice Answer Yearling Necromancer Yearling Yearling Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 14967,119244,451989,Good Answer Necromancer Necromancer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 14968,209956,216229,Notable Question Yearling Favorite Question Necromancer Necromancer Necromancer Nice Question Yearling Announcer Announcer Custodian Announcer Famous Question Yearling Revival Popular Question Custodian,NULL,NULL,0,NULL,NULL 14969,170237,931098,Yearling Citizen Patrol Informed Autobiographer Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 14970,157210,204462,Yearling Great Answer Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 14971,23516,746890,Famous Question Popular Question Necromancer Popular Question Nice Answer Informed Yearling Nice Question Nice Question Popular Question Nice Answer Popular Question Good Answer Necromancer Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question Notable Question Good Answer Nice Answer Revival Nice Question Announcer Yearling Notable Question Popular Question Announcer Announcer Popular Question Good Answer Populist Good Answer Announcer Notable Question Famous Question Famous Question Yearling Notable Question Famous Question Revival Good Question Notable Question Good Answer Popular Question Popular Question Notable Question Popular Question Good Answer Revival Announcer Nice Question Announcer,NULL,NULL,0,NULL,NULL 14972,321697,1030246,Yearling Announcer Civic Duty Critic,NULL,NULL,0,NULL,NULL 14973,716927,1012241,Commentator Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 14974,377260,257899,Notable Question,NULL,NULL,0,NULL,NULL 14975,14711,2297,NULL,NULL,NULL,0,NULL,NULL 14976,5578,962050,NULL,NULL,NULL,0,NULL,NULL 14977,45712,627986,NULL,NULL,NULL,0,NULL,NULL 14978,199008,485426,NULL,NULL,NULL,0,NULL,NULL 14979,404139,277232,NULL,NULL,NULL,0,NULL,NULL 14980,216073,210535,Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 14981,207926,575102,NULL,NULL,NULL,0,NULL,NULL 14982,258558,924239,Popular Question,NULL,NULL,0,NULL,NULL 14983,261837,924239,Popular Question,NULL,NULL,0,NULL,NULL 14984,885140,927963,Caucus,NULL,NULL,0,NULL,NULL 14985,34839,927963,Caucus,NULL,NULL,0,NULL,NULL 14986,558915,612279,Yearling Great Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 14987,261640,947815,NULL,NULL,NULL,0,NULL,NULL 14988,135704,161692,NULL,NULL,NULL,0,NULL,NULL 14989,120859,237078,NULL,NULL,NULL,0,NULL,NULL 14990,436730,1354016,NULL,NULL,NULL,0,NULL,NULL 14991,72644,1279033,Favorite Question Notable Question Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 14992,317335,135692,Good Answer Popular Question Good Question Yearling Notable Question Popular Question Good Answer Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 14993,71104,705918,NULL,NULL,NULL,0,NULL,NULL 14994,503928,609388,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 14995,1332723,815218,Investor Autobiographer Notable Question Yearling Curious,NULL,NULL,0,NULL,NULL 14996,280064,1296761,NULL,NULL,NULL,0,NULL,NULL 14997,64010,138109,NULL,NULL,NULL,0,NULL,NULL 14998,227028,501532,NULL,NULL,NULL,0,NULL,NULL 14999,125678,1132719,NULL,NULL,NULL,0,NULL,NULL 15000,83970,602685,NULL,NULL,NULL,0,NULL,NULL 15001,6485981,785859,NULL,NULL,NULL,0,NULL,NULL 15002,6912341,785859,NULL,NULL,NULL,0,NULL,NULL 15003,24377,322122,Enlightened Popular Question Nice Question Notable Question Popular Question Nice Answer Enlightened Nice Question cocoa Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Nice Question Notable Question Nice Question Notable Question Popular Question Nice Answer Enlightened Good Answer Great Question Nice Answer Nice Answer Enlightened Good Question Popular Question Nice Answer Nice Question Popular Question Notable Question Notable Question Nice Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Good Question Famous Question Famous Question Nice Answer Enlightened Favorite Question Good Answer Notable Question Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Nice Question Notable Question Nice Question Nice Question Notable Question Nice Question Popular Question Notable Question Yearling Famous Question Popular Question Nice Question Nice Question Popular Question Notable Question Good Answer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15004,8134133,1013654,NULL,NULL,NULL,0,NULL,NULL 15005,35057,1013654,NULL,NULL,NULL,0,NULL,NULL 15006,228814,575774,NULL,NULL,NULL,0,NULL,NULL 15007,44695,37943,Yearling,NULL,NULL,0,NULL,NULL 15008,279541,346527,Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 15009,88959,44481,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15010,501583,1402371,NULL,NULL,NULL,0,NULL,NULL 15011,929096,274,Nice Question Famous Question Famous Question Popular Question Famous Question Popular Question Good Answer Popular Question Yearling Nice Question Mortarboard Popular Question Nice Question Nice Question Notable Question Popular Question Notable Question Famous Question Famous Question Nice Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15012,103638,650836,NULL,NULL,NULL,0,NULL,NULL 15013,250005,225682,Supporter Notable Question Announcer,NULL,NULL,0,NULL,NULL 15014,377523,844870,Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 15015,487273,616546,NULL,NULL,NULL,0,NULL,NULL 15016,34904,193688,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Great Answer Good Answer Nice Answer Enlightened Guru Guru Great Answer Nice Answer Mortarboard Good Answer Good Answer Announcer Nice Answer Enlightened Guru Yearling Good Answer Nice Answer Caucus Constituent Nice Answer Nice Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Guru Great Answer Good Answer Good Answer Enlightened Nice Answer Announcer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Caucus Constituent Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened macos Caucus Constituent Good Answer Great Answer Good Answer Announcer Good Answer Great Answer Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 15017,1341166,1550324,Editor Commentator,NULL,NULL,0,NULL,NULL 15018,152577,1155173,NULL,NULL,NULL,0,NULL,NULL 15019,66078,1146656,NULL,NULL,NULL,0,NULL,NULL 15020,227339,1035783,Nice Answer Announcer Nice Answer Yearling Necromancer Nice Answer Notable Question Yearling Census Caucus,NULL,NULL,0,NULL,NULL 15021,151430,1218521,NULL,NULL,NULL,0,NULL,NULL 15022,544581,53487,Great Answer Yearling Revival Yearling Revival Nice Answer Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 15023,44097,805882,Announcer Announcer Notable Question,NULL,NULL,0,NULL,NULL 15024,694066,115276,Notable Question,NULL,NULL,0,NULL,NULL 15025,88942,412520,Yearling Inquisitive Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15026,93360,349795,NULL,NULL,NULL,0,NULL,NULL 15027,145276,582083,Yearling,NULL,NULL,0,NULL,NULL 15028,4137,145530,Announcer Yearling,NULL,NULL,0,NULL,NULL 15029,6294024,1114524,NULL,NULL,NULL,0,NULL,NULL 15030,51161,1244676,Popular Question Caucus Nice Answer Yearling Necromancer Necromancer Census Necromancer Yearling,NULL,NULL,0,NULL,NULL 15031,139593,83743,Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Necromancer Custodian Census Yearling Nice Answer Good Answer Good Question Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 15032,501311,477592,NULL,NULL,NULL,0,NULL,NULL 15033,169312,464033,NULL,NULL,NULL,0,NULL,NULL 15034,238990,1076804,NULL,NULL,NULL,0,NULL,NULL 15035,87191,1516298,NULL,NULL,NULL,0,NULL,NULL 15036,31274,444738,Nice Answer Yearling Guru Excavator Yearling Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15037,767599,1318051,Good Question Yearling Popular Question Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 15038,424540,257364,Yearling Necromancer Necromancer Critic Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 15039,415894,1415072,NULL,NULL,NULL,0,NULL,NULL 15040,597073,455226,NULL,NULL,NULL,0,NULL,NULL 15041,87042,242479,NULL,NULL,NULL,0,NULL,NULL 15042,622181,1173480,NULL,NULL,NULL,0,NULL,NULL 15043,605962,1173480,NULL,NULL,NULL,0,NULL,NULL 15044,349500,1025719,Notable Question,NULL,NULL,0,NULL,NULL 15045,256713,300807,Popular Question Yearling Notable Question Nice Answer Nice Answer Great Question Nice Question Popular Question Guru Notable Question Yearling Great Question Nice Question Good Answer Nice Answer iphone Yearling Guru Notable Question,NULL,NULL,0,NULL,NULL 15046,226976,151744,Autobiographer,NULL,NULL,0,NULL,NULL 15047,352454,119384,Popular Question,NULL,NULL,0,NULL,NULL 15048,16462,363927,Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 15049,887888,1249034,Popular Question,NULL,NULL,0,NULL,NULL 15050,64961,881072,NULL,NULL,NULL,0,NULL,NULL 15051,2006131,461258,Supporter,NULL,NULL,0,NULL,NULL 15052,273909,261483,Famous Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 15053,117788,1243003,NULL,NULL,NULL,0,NULL,NULL 15054,453377,367427,Notable Question,NULL,NULL,0,NULL,NULL 15055,11795,89574,Popular Question Popular Question Yearling Guru Notable Question Nice Answer Yearling Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 15056,1331784,195735,NULL,NULL,NULL,0,NULL,NULL 15057,172957,320786,NULL,NULL,NULL,0,NULL,NULL 15058,323102,54806,Yearling postgresql Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Popular Question Nice Answer Enlightened Yearling Guru Guru Good Answer Popular Question Necromancer Nice Answer Enlightened Populist Yearling Nice Answer Good Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 15059,1038824,1400774,Notable Question Explainer Organizer Critic Caucus Self-Learner Yearling Popular Question Famous Question Tag Editor,NULL,NULL,0,NULL,NULL 15060,106570,1228022,Supporter,NULL,NULL,0,NULL,NULL 15061,1288590,899126,Popular Question Nice Answer Enlightened Sportsmanship Yearling Caucus Constituent Tenacious Census Notable Question Caucus Constituent Yearling Announcer Announcer Documentation User Nice Answer Enlightened Nice Answer Census Caucus Constituent Announcer Announcer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 15062,192503,1004718,NULL,NULL,NULL,0,NULL,NULL 15063,11884,141396,NULL,NULL,NULL,0,NULL,NULL 15064,50254,655637,NULL,NULL,NULL,0,NULL,NULL 15065,3109431,458292,Great Question,NULL,NULL,0,NULL,NULL 15066,635250,458292,Great Question,NULL,NULL,0,NULL,NULL 15067,1071721,235160,Popular Question Tumbleweed Popular Question Editor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15068,321979,953348,Yearling Nice Answer Necromancer Notable Question Nice Answer Revival Yearling Necromancer Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 15069,64609,1433014,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15070,1420243,188537,Yearling Enthusiast Revival Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 15071,781077,28681,Famous Question,NULL,NULL,0,NULL,NULL 15072,67879,250703,Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 15073,654367,324651,Civic Duty Nice Answer Yearling Revival Necromancer Custodian Nice Answer Yearling,NULL,pAs href https stackoverflow com users 661591 substack corrected me in href http webchat freenode net channels node js rel noreferrer node the new href http nodejs org api stream html rel noreferrer streams API in Node v10 makes this easier ppre codeconst Readable require stream Readable const new Readable read gt redundant see update belows push your text here push null code prep… after which you can freely href http nodejs org api stream html stream readable pipe destination options rel noreferrer pipe it or otherwise pass it to your intended consumer ppIt not as clean as the href https github com substack resumer rel noreferrer resumer one liner but it does avoid the extra dependency pp emUpdate em in v0 10 26 through v9 so far call to codepush code directly from the REPL prompt will crash with codenot implemented code exception if you didn set code read code It won crash inside function or script If inconsistency makes you nervous include the codenoop code null tells the stream that it has finished reading all the data and to close the stream,0,NULL,NULL 15074,69801,324651,Civic Duty Nice Answer Yearling Revival Necromancer Custodian Nice Answer Yearling,NULL,pAs href https stackoverflow com users 661591 substack corrected me in href http webchat freenode net channels node js rel noreferrer node the new href http nodejs org api stream html rel noreferrer streams API in Node v10 makes this easier ppre codeconst Readable require stream Readable const new Readable read gt redundant see update belows push your text here push null code prep… after which you can freely href http nodejs org api stream html stream readable pipe destination options rel noreferrer pipe it or otherwise pass it to your intended consumer ppIt not as clean as the href https github com substack resumer rel noreferrer resumer one liner but it does avoid the extra dependency pp emUpdate em in v0 10 26 through v9 so far call to codepush code directly from the REPL prompt will crash with codenot implemented code exception if you didn set code read code It won crash inside function or script If inconsistency makes you nervous include the codenoop code null tells the stream that it has finished reading all the data and to close the stream,0,NULL,NULL 15075,25323,1331457,python Yearling Good Answer Yearling Great Answer Notable Question Guru Nice Question Good Answer Self-Learner Yearling Famous Question,NULL,NULL,1,Insert the output of shell command directly into tmux pane shell copy paste tmux pMy goal is to replicate the middle mouse copy paste functionality in linux ppI can display the output of this clipboard in pane via ppre codebind key root MouseDown2Pane run shell xclip selection primary code prepI like to directly insert this output into the pane similar to codesend keys code but don see way to link the commands together ppI running tmux version,NULL 15076,451815,660069,NULL,NULL,NULL,0,NULL,NULL 15077,923081,936109,Popular Question,NULL,NULL,0,NULL,NULL 15078,401685,964509,Excavator Good Answer Yearling Caucus Yearling Revival Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 15079,2829587,964509,Excavator Good Answer Yearling Caucus Yearling Revival Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 15080,309618,153841,NULL,NULL,NULL,0,NULL,NULL 15081,746082,305959,Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 15082,276732,156210,Notable Question Yearling Necromancer Necromancer Nice Answer Yearling Notable Question Good Answer Yearling Yearling Good Answer Necromancer Custodian Great Answer Caucus Yearling Nice Answer Nice Answer Autobiographer Popular Question Custodian Excavator Informed Good Answer Necromancer Necromancer Nice Answer Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 15083,366520,171217,Popular Question Popular Question Favorite Question Popular Question Announcer Nice Answer Great Answer Popular Question Nice Answer Famous Question Notable Question Nice Question Yearling Great Question Informed Popular Question Necromancer Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question Nice Question Good Question Famous Question Famous Question Famous Question Popular Question Popular Question Announcer Good Question Great Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Nice Answer Notable Question Yearling Famous Question Great Question Famous Question Great Question Good Question Popular Question Announcer Popular Question Popular Question Popular Question Favorite Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,DOM pure JavaScript solution to jQuery closest implementation javascript dom pHere the markup trying to query So given the markup ppre code lt table class non unique identifier table gt lt tr gt lt td gt lt div id unique identifier gt lt div gt lt td gt lt tr gt lt table gt code prepI querying for unique identifier ppre codevar myDiv document getElementById unique identifier code prepI then trying to select the table The issue is that want to make the code not brittle so don need to do this ppre codevar myDiv document getElementById unique identifier myTable myDiv parentNode parentNode parentNode parentNode code prep strongMy question strong ppIs there currently DOM implementation of the jQuery equivalent of closest closest implementation that is efficient without nested for loops would be preferred pp strongLimitations strong ppI required to not use jQuery or sizzle for this particular issue or introduce any new libraries The code is quite old as well Thus that is the reason for such limitations and the existence of code lt tables gt code W3C DOM4 Spec https www w3 org TR dom,0,NULL,NULL 15084,489776,532566,Teacher Autobiographer Informed,NULL,NULL,0,NULL,NULL 15085,347138,403476,NULL,NULL,NULL,0,NULL,NULL 15086,235081,503734,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 15087,159126,1409645,NULL,NULL,NULL,0,NULL,NULL 15088,293289,1087440,NULL,NULL,NULL,0,NULL,NULL 15089,103156,786211,NULL,NULL,NULL,0,NULL,NULL 15090,231875,789754,Yearling Caucus Notable Question Yearling Yearling Great Answer Populist Yearling,NULL,NULL,0,NULL,NULL 15091,1209696,1168264,NULL,NULL,NULL,0,NULL,NULL 15092,178068,1245873,NULL,NULL,NULL,0,NULL,NULL 15093,61896,434445,Notable Question Good Question Notable Question Famous Question Famous Question Yearling Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Nice Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 15094,61491,659411,NULL,NULL,NULL,0,NULL,NULL 15095,382533,727913,Famous Question Famous Question,NULL,NULL,0,NULL,NULL 15096,582058,656065,Yearling Custodian Tumbleweed Notable Question Notable Question Caucus Popular Question Nice Question,NULL,NULL,0,NULL,NULL 15097,167479,507847,NULL,NULL,NULL,0,NULL,NULL 15098,30136,209039,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15099,58017,410074,Yearling Nice Answer matlab Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15100,54756,638079,Popular Question Popular Question Yearling Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 15101,48082,468205,Self-Learner Nice Question Yearling Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 15102,147546,1067082,Teacher Supporter Necromancer Popular Question,NULL,NULL,0,NULL,NULL 15103,33577,1174023,NULL,NULL,NULL,0,NULL,NULL 15104,61196,514536,Necromancer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15105,1782709,407216,NULL,NULL,NULL,0,NULL,NULL 15106,84480,479766,Autobiographer Supporter,NULL,NULL,0,NULL,NULL 15107,193789,1330053,NULL,NULL,NULL,0,NULL,NULL 15108,2366025,81053,Popular Question Yearling Famous Question Necromancer Announcer jquery Notable Question Good Answer Notable Question Caucus Popular Question Good Answer Nice Answer Guru Popular Question Favorite Question Guru Yearling Announcer Nice Answer Good Answer Nice Answer Popular Question Yearling Informed Guru,NULL,NULL,0,NULL,NULL 15109,468437,1232534,NULL,NULL,NULL,0,NULL,NULL 15110,1564466,79910,Favorite Question Yearling Famous Question Popular Question Popular Question Yearling Revival Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 15111,638916,688489,NULL,NULL,NULL,0,NULL,NULL 15112,12300,4455,Excavator xamarin.ios Documentation Beta Yearling Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 15113,1128411,1196056,NULL,NULL,NULL,0,NULL,NULL 15114,16143,509749,Good Answer Yearling Enthusiast Good Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15115,2480040,797972,Informed,NULL,NULL,0,NULL,NULL 15116,26000,138841,Yearling Famous Question Guru Good Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 15117,181545,593877,Popular Question,NULL,NULL,0,NULL,NULL 15118,1326487,355025,NULL,NULL,NULL,0,NULL,NULL 15119,519903,784378,NULL,NULL,NULL,0,NULL,NULL 15120,668689,1234151,NULL,NULL,NULL,0,NULL,NULL 15121,234195,996380,Student Editor Scholar Supporter,NULL,NULL,0,NULL,NULL 15122,733787,834110,NULL,NULL,NULL,0,NULL,NULL 15123,834499,1080596,NULL,NULL,NULL,0,NULL,NULL 15124,77493,1080596,NULL,NULL,NULL,0,NULL,NULL 15125,44038,1250975,NULL,NULL,NULL,0,NULL,NULL 15126,369250,425383,NULL,NULL,NULL,0,NULL,NULL 15127,20873,820254,Nice Answer Enlightened Guru Yearling Good Answer Good Answer Custodian Nice Answer Enlightened ruby-on-rails-3.2 Nice Answer Nice Answer Good Answer ruby-on-rails Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Civic Duty Nice Answer Enlightened Nice Answer Enlightened Guru Guru Notable Question Popular Question Nice Answer Nice Answer capybara Great Answer Yearling Nice Answer Enlightened Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 15128,7684,500374,Good Question,NULL,NULL,0,NULL,NULL 15129,198003,568115,NULL,NULL,NULL,0,NULL,NULL 15130,32814,247542,Popular Question Nice Question Famous Question Yearling Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Popular Question Notable Question Popular Question Peer Pressure Nice Answer Popular Question Revival Popular Question Nice Question Famous Question Good Answer Popular Question Nice Question Popular Question Notable Question Announcer Popular Question Cleanup Notable Question Notable Question Notable Question Notable Question Popular Question Nice Answer Popular Question Nice Question Famous Question Popular Question Revival Popular Question Necromancer Popular Question Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Nice Question Nice Question Good Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Nice Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Good Question Good Question Notable Question Famous Question Good Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Revival Necromancer Nice Question Nice Question Nice Question Favorite Question Popular Question Nice Answer Enlightened Popular Question Popular Question Great Answer Nice Question Popular Question Nice Question Nice Question Popular Question Famous Question Notable Question Notable Question Nice Question Notable Question Notable Question Announcer Revival Notable Question Good Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Nice Question Popular Question Nice Question Necromancer Famous Question Necromancer Notable Question Nice Answer Socratic Popular Question Notable Question Notable Question python Notable Question Good Question Good Answer Caucus Famous Question Popular Question Nice Question Famous Question Notable Question Good Answer Popular Question Famous Question Famous Question Good Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Nice Question Notable Question Good Question Famous Question Good Question Popular Question Popular Question Great Question Yearling Popular Question Announcer Famous Question Nice Question Nice Answer Enlightened Popular Question Popular Question Nice Question Nice Question Famous Question Nice Answer Popular Question Notable Question Popular Question Necromancer Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Announcer Popular Question Famous Question Good Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Question Popular Question Good Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question,NULL,pYou need to read the Python href https docs python org howto unicode html rel noreferrer Unicode HOWTO This error is the href https docs python org howto unicode html the unicode type rel noreferrer very first example ppBasically stop using codestr code to convert from unicode to encoded text bytes ppInstead properly use href http docs python org library stdtypes html str encode rel noreferrer code encode code to encode the string ppre codep agent info join agent contact agent telno encode utf strip code prepor work entirely in unicode This is bad and confusing advice The reason people use str is because the object IS NOT already string so there no encode method to call pYou need to read the Python href https docs python org howto unicode html rel noreferrer Unicode HOWTO This error is the href https docs python org howto unicode html the unicode type rel noreferrer very first example ppBasically stop using codestr code to convert from unicode to encoded text bytes ppInstead properly use href http docs python org library stdtypes html str encode rel noreferrer code encode code to encode the string ppre codep agent info join agent contact agent telno encode utf strip code prepor work entirely in unicode Nope this error was being thrown by this code unicode list DjangoQueryObject pLets say your HTML looks something like this ppre code lt div class box gt lt stuff gt lt class bet time gt Bet days ago lt gt lt div gt code prepThen with CSS you can make that text appear in the bottom right like so ppre code box position relative bet time position absolute bottom right code prepThe way this works is that absolutely positioned elements are always positioned with respect to the first relatively positioned parent element or the window Because we set the box position to relative code bet time code positions its right edge to the right edge of code box code and its bottom edge to the bottom edge of code box code OP question is little vague but this solution positions it to the bottom right corner of the screen not the page,1,Python YAML dump using block style without quotes python yaml pHow do you load and dump YAML using PyYAML so that it uses the original styling as closely as possible ppI have Python to load and dump YAML data like ppre codeimport sysimport yamldef represent dictorder self data Maintains ordering of specific dictionary keys in the YAML output data ordering questions tags answers weight date text for key in ordering if key in data data append str key data pop key if data data extend data items return self represent mapping tag yaml org 2002 map data yaml add representer dict represent dictorder text questions Lorem ipsum dolor sit amet consectetur adipiscing elit tags context curabitur answers weight date 2014 19 text Mauris lorem magna auctor et tristique id fringilla ut metus Donec pellentesque elit non felis feugiat in gravida ex hendrerit Mauris quis velit sapien Nullam blandit diam et pharetra maximus mi erat scelerisque turpis eu vestibulum dui ligula non lectus Aenean consectetur eleifend accumsan In erat lacus egestas ut tincidunt ac congue quis elit Suspendisse semper purus ac turpis maximus dignissim Proin nec neque convallis placerat odio non suscipit erat Nulla nec mattis nibh accumsan feugiat felis Mauris lorem magna auctor et tristique id fringilla ut metus Morbi non arcu odio Maecenas faucibus urna et leo euismod placerat Nulla facilisi Pellentesque at pretium nunc Ut ipsum nibh suscipit pretium eu eleifend vitae purus yaml dump yaml load text stream sys stdout default flow style False indent code prepbut this outputs the YAML in different style like ppre code questions Lorem ipsum dolor sit amet consectetur adipiscing elit tags context curabitur answers weight date 2014 19 text Mauris lorem magna auctor et tristique id fringilla ut metus Donec pellentesque elit non felis feugiat in gravida ex hendrerit Mauris quis velit sapien Nullam blandit diam et pharetra maximus mi erat scelerisque turpis eu vestibulum dui ligula non lectus Aenean consectetur eleifend accumsan n4 In erat lacus egestas ut tincidunt ac congue quis elit Suspendisse semper purus ac turpis maximus dignissim Proin nec neque convallis placerat odio non suscipit erat Nulla nec mattis nibh accumsan feugiat felis Mauris lorem magna auctor et tristique id fringilla ut metus Morbi non arcu odio Maecenas faucibus urna et leo euismod placerat Nulla facilisi Pellentesque at pretium nunc Ut ipsum nibh suscipit pretium eu eleifend vitae purus code prepAs you can see it changing the style of the text block so that newlines are escaped making it lot harder to read ppSo tried specifying the codedefault style code attribute like ppre codeyaml dump yaml load text stream sys stdout default flow style False default style indent code prepAnd that fixed the text block style but then it broke other styles by putting quotes around all other strings adding newlines to single line strings and munging integers like ppre code questions Lorem ipsum dolor sit amet consectetur adipiscing elit tags context curabitur answers weight int date 2014 19 text Mauris lorem magna auctor et tristique id fringilla ut metus Donec pellentesque elit non felis feugiat in gravida ex hendrerit Mauris quis velit sapien Nullam blandit diam et pharetra maximus mi erat scelerisque turpis eu vestibulum dui ligula non lectus Aenean consectetur eleifend accumsan In erat lacus egestas ut tincidunt ac congue quis elit Suspendisse semper purus ac turpis maximus dignissim Proin nec neque convallis placerat odio non suscipit erat Nulla nec mattis nibh accumsan feugiat felis Mauris lorem magna auctor et tristique id fringilla ut metus Morbi non arcu odio Maecenas faucibus urna et leo euismod placerat Nulla facilisi Pellentesque at pretium nunc Ut ipsum nibh suscipit pretium eu eleifend vitae purus code prepHow do fix this so the output resembles the style of my original input,NULL 15131,370922,620417,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 15132,371816,609788,NULL,NULL,NULL,0,NULL,NULL 15133,102702,235820,Famous Question Caucus Commentator Constituent Yearling Good Question Famous Question Caucus Yearling Favorite Question Excavator,NULL,NULL,0,NULL,NULL 15134,80559,469117,NULL,NULL,NULL,0,NULL,NULL 15135,315578,449448,NULL,NULL,NULL,0,NULL,NULL 15136,188251,343488,Student Popular Question Commentator Yearling,NULL,NULL,0,NULL,NULL 15137,67837,862839,NULL,NULL,NULL,0,NULL,NULL 15138,359362,1176452,Tumbleweed Popular Question Notable Question Yearling Notable Question Self-Learner Announcer,NULL,NULL,0,NULL,NULL 15139,500383,612063,NULL,NULL,NULL,0,NULL,NULL 15140,388971,87476,Yearling Yearling,NULL,NULL,0,NULL,NULL 15141,528618,748674,NULL,NULL,NULL,0,NULL,NULL 15142,14633,535550,Informed,NULL,NULL,0,NULL,NULL 15143,686303,305552,Guru Guru Yearling Nice Question Pundit Popular Question Famous Question Caucus Famous Question Yearling Cleanup Popular Question Good Answer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 15144,15845,4642,Popular Question Famous Question Yearling Yearling Nice Question Great Answer Benefactor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15145,360275,1353465,Student Teacher Supporter Excavator Explainer Yearling Commentator Critic Yearling Enthusiast Caucus Custodian Custodian Citizen Patrol Fanatic Announcer Nice Answer Enlightened Caucus Constituent,NULL,NULL,0,NULL,NULL 15146,184828,370638,Notable Question,NULL,NULL,0,NULL,NULL 15147,138804,940700,NULL,NULL,NULL,0,NULL,NULL 15148,54059,441209,Notable Question Excavator Yearling Custodian Popular Question Tumbleweed Popular Question Nice Question Yearling Favorite Question Nice Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 15149,79237,53748,NULL,NULL,NULL,0,NULL,NULL 15150,885163,501171,Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question Revival Popular Question Notable Question Popular Question Notable Question Nice Question Notable Question Nice Question Popular Question Popular Question Notable Question Necromancer Good Answer Notable Question Notable Question Notable Question Yearling Nice Answer Popular Question Popular Question Popular Question Popular Question Famous Question ruby Popular Question Socratic Notable Question Popular Question Popular Question Revival Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Nice Question ruby-on-rails Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Great Answer Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Famous Question Necromancer Good Question Popular Question Good Question Popular Question Yearling Popular Question,NULL,pThis seem to be regression on macOS Sierra solution that worked for me has been mentioned by href https github com joshuamcginnis Josh McGinnis href https github com tmux tmux issues 543 https github com tmux tmux issues 543 pp codebrew install reattach to user namespace code ppEnsure the following is set in tmux conf ppre codeset default shell SHELL set default command reattach to user namespace SHELL code prepIn vimrc or config nvim init vim for Neovim ppre codeset clipboard unnamed code prepNow all is well and can copy paste between system lt vim sessions using vim keybindings and or system ctrl ctrl This work However every new tmux pane that is opened is named reattach to user namespace Is this expected,0,NULL,NULL 15151,692123,1476197,Supporter,NULL,NULL,0,NULL,NULL 15152,1021523,1170972,NULL,NULL,NULL,0,NULL,NULL 15153,104489,592280,NULL,NULL,NULL,0,NULL,NULL 15154,42431,231770,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 15155,165302,1011052,Curious Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15156,439933,341927,Nice Answer Custodian Citizen Patrol Custodian Autobiographer Yearling Custodian,NULL,NULL,0,NULL,NULL 15157,271471,1298553,Tumbleweed Civic Duty Yearling Necromancer Nice Answer Yearling Necromancer Popular Question Nice Answer Self-Learner Revival Yearling Documentation User Necromancer Curious Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 15158,103507,875427,Supporter,NULL,NULL,0,NULL,NULL 15159,298612,1294954,NULL,NULL,NULL,0,NULL,NULL 15160,343457,1143231,Caucus Caucus Commentator Yearling,NULL,NULL,0,NULL,NULL 15161,271986,975650,Informed Supporter Teacher,NULL,NULL,0,NULL,NULL 15162,94859,249009,Caucus,NULL,NULL,0,NULL,NULL 15163,62465,527096,Popular Question Popular Question Nice Question Nice Answer Caucus Constituent Yearling Nice Answer Notable Question Custodian Custodian Popular Question Caucus Constituent Notable Question Yearling Civic Duty Caucus Constituent Yearling,NULL,,0,, 15164,63048,453786,NULL,NULL,NULL,0,NULL,NULL 15165,47143,1567117,NULL,NULL,NULL,0,NULL,NULL 15166,161045,582103,NULL,NULL,NULL,0,NULL,NULL 15167,64283,592319,Supporter Popular Question,NULL,NULL,0,NULL,NULL 15168,433498,1322729,NULL,NULL,NULL,0,NULL,NULL 15169,42582,698566,NULL,NULL,NULL,0,NULL,NULL 15170,301356,337499,NULL,NULL,NULL,0,NULL,NULL 15171,134873,204070,Guru Custodian Informed Yearling Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15172,283593,777293,Notable Question,NULL,NULL,0,NULL,NULL 15173,77366,674447,Necromancer Editor Necromancer Caucus Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 15174,207002,767727,NULL,NULL,NULL,0,NULL,NULL 15175,241393,751020,NULL,NULL,NULL,0,NULL,NULL 15176,201899,524625,NULL,NULL,NULL,0,NULL,NULL 15177,2194990,524625,NULL,NULL,NULL,0,NULL,NULL 15178,271137,524625,NULL,NULL,NULL,0,NULL,NULL 15179,257175,486176,NULL,NULL,NULL,0,NULL,NULL 15180,9512167,191114,NULL,NULL,NULL,0,NULL,NULL 15181,82442,3757,Favorite Question Good Answer Stellar Question Great Answer Good Answer Yearling Good Answer Stellar Question Necromancer Nice Question Nice Answer Famous Question Good Question Yearling Good Answer Famous Question Good Question Popular Question Nice Answer Custodian Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 15182,222321,432802,Yearling,NULL,NULL,0,NULL,NULL 15183,33081,179372,Popular Question Popular Question Popular Question Self-Learner Popular Question Nice Answer Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Famous Question Famous Question Nice Answer Enlightened Notable Question Inquisitive Popular Question Notable Question Yearling Popular Question Populist Good Answer Famous Question Popular Question Nice Answer Nice Answer Notable Question Great Answer Cleanup Guru Yearling,NULL,NULL,0,NULL,NULL 15184,176410,231529,Nice Answer Revival Nice Answer Enlightened Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15185,16403,248392,NULL,NULL,NULL,0,NULL,NULL 15186,1338612,775513,Notable Question Yearling Caucus Revival Yearling Caucus Announcer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15187,80898,613366,NULL,NULL,NULL,0,NULL,NULL 15188,1462068,536179,NULL,NULL,NULL,0,NULL,NULL 15189,1763038,390177,Revival Nice Answer Revival Popular Question Nice Answer Popular Question Popular Question Reviewer Tenacious Yearling Popular Question Popular Question Caucus Constituent Necromancer Notable Question Popular Question Notable Question Yearling Caucus Revival Popular Question Documentation User Nice Answer Enlightened Notable Question Popular Question Nice Answer Announcer Popular Question Popular Question Yearling Popular Question Announcer Nice Question,NULL,NULL,0,NULL,NULL 15190,570194,806689,NULL,NULL,NULL,0,NULL,NULL 15191,974796,1039620,Popular Question Critic Popular Question Excavator Announcer,NULL,NULL,0,NULL,NULL 15192,1278278,975621,Editor Curious Tumbleweed Critic Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15193,523173,534858,Benefactor Popular Question Popular Question Notable Question Popular Question Notable Question Civic Duty Yearling Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 15194,193422,1460929,Nice Answer Yearling Curious Revival Announcer Necromancer Necromancer Civic Duty Yearling Nice Answer Popular Question Popular Question Yearling Documentation User Custodian Custodian Citizen Patrol Revival Nice Answer Yearling Informed Autobiographer Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 15195,157061,392056,Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 15196,78295,9817,NULL,NULL,NULL,0,NULL,NULL 15197,11699,961036,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15198,43091,1259298,NULL,NULL,NULL,0,NULL,NULL 15199,375040,363570,NULL,NULL,NULL,0,NULL,NULL 15200,577686,665309,Curious Popular Question,NULL,NULL,0,NULL,NULL 15201,954337,1002043,NULL,NULL,NULL,0,NULL,NULL 15202,7694314,889053,Popular Question Necromancer Yearling Popular Question Tag Editor Custodian Necromancer Inquisitive Yearling Nice Answer Popular Question Civic Duty Informed Popular Question Popular Question Popular Question Revival Custodian Nice Answer Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question,NULL,codewget http google com code works as expected for me embut em with caveat the headers are considered debugging information and as such they are sent to the emstandard error em rather than the standard output If you are redirecting the standard output to file or another process you will only get the document contents ppYou can try redirecting the standard error to the standard output as possible solution For example in codebash code ppre code wget gt amp grep code prepor ppre code wget gt wget txt gt amp code prepThe code code option suppresses the progress bar and some other annoyingly chatty parts of the codewget code output the option wasn supported on my alpine linux container omitted it and all was good,0,NULL,NULL 15203,492641,993928,Popular Question Necromancer Tumbleweed Nice Answer,NULL,NULL,0,NULL,NULL 15204,165183,930427,Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Famous Question Famous Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 15205,244834,407866,Necromancer Critic Nice Question Yearling Popular Question Necromancer Nice Answer Enlightened Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 15206,39311,1022476,Curious Critic Commentator Tumbleweed Self-Learner Yearling Popular Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15207,429792,272460,Editor Scholar,NULL,NULL,0,NULL,NULL 15208,293147,11239,Popular Question Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 15209,326349,5799,NULL,NULL,NULL,0,NULL,NULL 15210,124180,759724,Popular Question Popular Question Good Question Popular Question Yearling Citizen Patrol Critic Notable Question Editor Notable Question,NULL,NULL,0,NULL,NULL 15211,1427376,759724,Popular Question Popular Question Good Question Popular Question Yearling Citizen Patrol Critic Notable Question Editor Notable Question,NULL,NULL,0,NULL,NULL 15212,462452,345236,Critic Yearling Good Answer Revival Caucus Yearling Necromancer Guru Caucus Constituent Yearling Yearling Nice Answer Necromancer Yearling Yearling,NULL,pBy using href https github com giampaolo psutil rel noreferrer psutil ppre codeimport psutil osdef kill proc tree pid including parent True parent psutil Process pid children parent children recursive True for child in children child kill gone still alive psutil wait procs children timeout if including parent parent kill parent wait me os getpid kill proc tree me code pre Thanks very much for this It exactly what was looking for Would you agree to let the code in this answer to be used under open source licensing terms BSD or MIT would be ideal since they are compatible with Numpy Pandas Scipy etc,0,NULL,NULL 15213,429821,483100,NULL,NULL,NULL,0,NULL,NULL 15214,164545,247479,NULL,NULL,NULL,0,NULL,NULL 15215,85479,395181,Nice Answer Nice Answer Yearling jsf java Enlightened Yearling Caucus Necromancer Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 15216,47629,465382,NULL,NULL,NULL,0,NULL,NULL 15217,38805,593796,NULL,NULL,NULL,0,NULL,NULL 15218,379182,473394,NULL,NULL,NULL,0,NULL,NULL 15219,420873,977455,NULL,NULL,NULL,0,NULL,NULL 15220,19496,33019,Yearling,NULL,NULL,0,NULL,NULL 15221,290506,521677,Teacher Popular Question,NULL,NULL,0,NULL,NULL 15222,2351243,1117703,NULL,NULL,NULL,0,NULL,NULL 15223,217641,833789,NULL,NULL,NULL,0,NULL,NULL 15224,93225,690837,Civic Duty Necromancer Yearling Popular Question Nice Answer Nice Question Necromancer Yearling Necromancer Notable Question Revival Notable Question Yearling Necromancer Good Answer Necromancer Good Answer Nice Answer Enlightened Populist Yearling Nice Answer Custodian Necromancer Nice Answer Necromancer Cleanup Custodian Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 15225,850779,556162,Popular Question,NULL,NULL,0,NULL,NULL 15226,8260,320373,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15227,1342845,1310776,NULL,NULL,NULL,0,NULL,NULL 15228,894479,928292,NULL,NULL,NULL,0,NULL,NULL 15229,240148,938014,NULL,NULL,NULL,0,NULL,NULL 15230,88185,1551991,NULL,NULL,NULL,0,NULL,NULL 15231,64049,43896,Critic Popular Question,NULL,NULL,0,NULL,NULL 15232,185124,845749,NULL,NULL,NULL,0,NULL,NULL 15233,15359,1003532,Yearling,NULL,NULL,0,NULL,NULL 15234,67576,204286,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15235,313424,1261793,Popular Question,NULL,NULL,0,NULL,NULL 15236,1817193,1261793,Popular Question,NULL,NULL,0,NULL,NULL 15237,483357,657325,NULL,NULL,,0,, 15238,7790,813027,Yearling,NULL,NULL,0,NULL,NULL 15239,53750,772175,Popular Question Good Question Yearling Popular Question Great Answer Caucus Constituent Famous Question Yearling Caucus Custodian Informed Popular Question Good Question Popular Question Caucus Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15240,238458,701940,Nice Answer Yearling Famous Question Documentation User Good Question Yearling,NULL,NULL,0,NULL,NULL 15241,3714851,166700,Popular Question Yearling Nice Answer Famous Question Custodian Custodian Caucus Yearling Good Answer Popular Question Critic Yearling,NULL,NULL,0,NULL,NULL 15242,251128,166700,Popular Question Yearling Nice Answer Famous Question Custodian Custodian Caucus Yearling Good Answer Popular Question Critic Yearling,NULL,NULL,0,NULL,NULL 15243,162386,218029,Notable Question,NULL,NULL,0,NULL,NULL 15244,2568862,843765,Notable Question,NULL,NULL,0,NULL,NULL 15245,150363,1358456,NULL,NULL,NULL,0,NULL,NULL 15246,152512,487701,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15247,271750,770567,Informed Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15248,163334,750979,Yearling Popular Question Nice Answer Good Answer Yearling Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 15249,298851,305475,Great Answer Custodian Reviewer Yearling Custodian Caucus Good Answer Yearling Caucus Constituent Nice Answer Enlightened Census Caucus Yearling,NULL,NULL,0,NULL,NULL 15250,49972,548075,Guru Nice Answer Enlightened Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 15251,3830919,1518321,Scholar Student,NULL,NULL,0,NULL,NULL 15252,6293001,1193572,Student Supporter,NULL,NULL,0,NULL,NULL 15253,281972,1238381,Supporter Teacher Editor Autobiographer Informed Necromancer Nice Answer Yearling Caucus Constituent Critic Necromancer Caucus Necromancer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15254,228593,911832,NULL,NULL,NULL,0,NULL,NULL 15255,1527803,982251,NULL,NULL,NULL,0,NULL,NULL 15256,403858,1426740,Necromancer,NULL,NULL,0,NULL,NULL 15257,293852,1353246,Notable Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 15258,355,112658,Good Answer Yearling Good Answer Yearling Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 15259,34654,270627,NULL,NULL,NULL,0,NULL,NULL 15260,5270,574272,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15261,115412,2968,NULL,NULL,NULL,0,NULL,NULL 15262,174486,250556,NULL,NULL,NULL,0,NULL,NULL 15263,62828,1512093,NULL,NULL,NULL,0,NULL,NULL 15264,5589236,1512093,NULL,NULL,NULL,0,NULL,NULL 15265,24182,126998,Popular Question Yearling Popular Question Caucus Notable Question Guru Yearling Caucus Constituent Custodian Caucus Constituent Yearling Good Question,NULL,NULL,0,NULL,NULL 15266,18110,499997,Popular Question,NULL,NULL,0,NULL,NULL 15267,1912,1178144,NULL,NULL,NULL,0,NULL,NULL 15268,5115232,902618,NULL,NULL,NULL,0,NULL,NULL 15269,29923,1382301,Tumbleweed Student Teacher,NULL,NULL,0,NULL,NULL 15270,1842291,85868,Yearling java Promoter Revival Self-Learner Yearling Yearling Famous Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 15271,1344923,1454971,NULL,NULL,NULL,0,NULL,NULL 15272,78094,339785,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 15273,10650,341425,NULL,NULL,NULL,0,NULL,NULL 15274,1349635,1504504,NULL,NULL,NULL,0,NULL,NULL 15275,10294084,721010,NULL,NULL,NULL,0,NULL,NULL 15276,482244,721010,NULL,NULL,NULL,0,NULL,NULL 15277,37161,69654,Yearling Nice Question Notable Question Good Question Popular Question Popular Question Popular Question Yearling Famous Question Famous Question Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 15278,54101,581968,Yearling,NULL,NULL,0,NULL,NULL 15279,1993802,759835,Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 15280,989,288703,Popular Question Nice Question Popular Question Popular Question Nice Question Nice Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Nice Answer Enlightened Popular Question Notable Question Favorite Question Notable Question Nice Question Popular Question Good Question Good Answer Famous Question Popular Question Popular Question Nice Question Nice Question Famous Question Nice Answer Popular Question angularjs Good Answer Yearling Good Question Popular Question Famous Question Good Question Notable Question Famous Question Notable Question Nice Question Guru Notable Question Notable Question Notable Question Famous Question Popular Question Nice Answer Popular Question Popular Question Good Answer Yearling Notable Question Notable Question Great Answer Nice Question Nice Answer Good Question Great Question Famous Question Nice Question Famous Question,NULL,Why does my NN not classify these tic tac toe pattern correctly machine learning artificial intelligence classification keras pI trying to teach an AI to recognize patterns of tic tac toe with winning line ppUnfortunately it not learning to recognize them correctly think my way of representing encoding the game into vectors is wrong ppI choose way that is easy for an human me in particular to understand ppre codetraining data np array float32 target data np array float32 code prepThis uses an array of length to represent board The first three items represent the first row the next three the second row and so on The line breaks should make it obvious The target data then maps the first two game states to no wins and the last two game states to wins ppThen wanted to create some validation data that is slightly different to see if it generalizes ppre codevalidation data np array float32 code prepObviously again the last two game states should be wins whereas the first two should not ppI tried to play with the number of neurons and learning rate but no matter what try my output looks pretty off ppre code 01207292 98913926 00925775 00577191 code prepI tend to think it the way how represent the game state that may be wrong but actually have no idea ppCan anyone help me out here ppThis is the entire code that use ppre codeimport numpy as npfrom keras models import Sequentialfrom keras layers core import Activation Densefrom keras optimizers import SGDtraining data np array float32 target data np array float32 validation data np array float32 model Sequential model add Dense input dim activation sigmoid model add Dense activation sigmoid sgd SGD lr decay 1e momentum nesterov True model compile loss mean squared error optimizer sgd history model fit training data target data nb epoch 10000 batch size verbose print model predict validation data code prep strongUPDATE strong ppI tried to follow the advice and used more training data with no success so far ppMy training set looks like this now ppre codetraining data np array float32 target data np array float32 code prepConsidering that only count patterns of code1 code as wins there are only different win states for the way represent the data made the NN see of them so that still have to test against to see if the generalization works now feeding it 15 states that it should not consider win ppHowever the outcome for my validation seems to actually get worse ppre code 06987642e 07 72647212e 02 97011139e 03 93282426e 07 code prepThings tried polliChanging from emsigmoid em to emsoftmax em liliAdding more neurons liliAdding more layer liliA mix of all of the above li ol also tried that with no success thinking it really the size of the grid that is too small ll try with bigger grid so that have more space to draw positive samples without taking all the samples to proof generalization,1,Why does my NN not classify these tic tac toe pattern correctly machine learning artificial intelligence classification keras pI trying to teach an AI to recognize patterns of tic tac toe with winning line ppUnfortunately it not learning to recognize them correctly think my way of representing encoding the game into vectors is wrong ppI choose way that is easy for an human me in particular to understand ppre codetraining data np array float32 target data np array float32 code prepThis uses an array of length to represent board The first three items represent the first row the next three the second row and so on The line breaks should make it obvious The target data then maps the first two game states to no wins and the last two game states to wins ppThen wanted to create some validation data that is slightly different to see if it generalizes ppre codevalidation data np array float32 code prepObviously again the last two game states should be wins whereas the first two should not ppI tried to play with the number of neurons and learning rate but no matter what try my output looks pretty off ppre code 01207292 98913926 00925775 00577191 code prepI tend to think it the way how represent the game state that may be wrong but actually have no idea ppCan anyone help me out here ppThis is the entire code that use ppre codeimport numpy as npfrom keras models import Sequentialfrom keras layers core import Activation Densefrom keras optimizers import SGDtraining data np array float32 target data np array float32 validation data np array float32 model Sequential model add Dense input dim activation sigmoid model add Dense activation sigmoid sgd SGD lr decay 1e momentum nesterov True model compile loss mean squared error optimizer sgd history model fit training data target data nb epoch 10000 batch size verbose print model predict validation data code prep strongUPDATE strong ppI tried to follow the advice and used more training data with no success so far ppMy training set looks like this now ppre codetraining data np array float32 target data np array float32 code prepConsidering that only count patterns of code1 code as wins there are only different win states for the way represent the data made the NN see of them so that still have to test against to see if the generalization works now feeding it 15 states that it should not consider win ppHowever the outcome for my validation seems to actually get worse ppre code 06987642e 07 72647212e 02 97011139e 03 93282426e 07 code prepThings tried polliChanging from emsigmoid em to emsoftmax em liliAdding more neurons liliAdding more layer liliA mix of all of the above li ol,NULL 15281,87843,1420938,NULL,NULL,NULL,0,NULL,NULL 15282,996743,396523,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15283,303376,469276,Yearling Nice Answer Revival Tumbleweed Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 15284,18148,317968,Good Answer Yearling,NULL,NULL,0,NULL,NULL 15285,496629,1295148,NULL,NULL,NULL,0,NULL,NULL 15286,169055,141848,NULL,NULL,NULL,0,NULL,NULL 15287,36568,616425,Commentator Documentation User Caucus,NULL,NULL,0,NULL,NULL 15288,8092,1369386,NULL,NULL,NULL,0,NULL,NULL 15289,96029,1091924,NULL,NULL,NULL,0,NULL,NULL 15290,50485,150340,Notable Question Great Answer Popular Question Notable Question Yearling Yearling Notable Question Notable Question Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 15291,1301841,1430063,Necromancer,NULL,NULL,0,NULL,NULL 15292,446551,1430063,Necromancer,NULL,NULL,0,NULL,NULL 15293,69322,15274,Revival Yearling Good Answer Explainer Announcer Caucus Yearling Revival Census Self-Learner Guru Announcer Caucus Notable Question Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 15294,83696,1467707,NULL,NULL,NULL,0,NULL,NULL 15295,892474,813717,Necromancer,NULL,NULL,0,NULL,NULL 15296,1351314,979802,NULL,NULL,NULL,0,NULL,NULL 15297,55632,878627,Yearling Student Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 15298,33052,330439,Announcer,NULL,NULL,0,NULL,NULL 15299,498021,1039257,NULL,NULL,NULL,0,NULL,NULL 15300,21674,641032,Yearling Popular Question Popular Question Caucus Constituent Yearling Custodian Caucus Constituent Documentation User Nice Question ruby-on-rails-3 Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 15301,3514418,819246,Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 15302,190876,547152,NULL,NULL,NULL,0,NULL,NULL 15303,3422074,862173,NULL,NULL,NULL,0,NULL,NULL 15304,2172999,45276,Nice Answer Curious Notable Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 15305,7873,45276,Nice Answer Curious Notable Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 15306,9959798,1185854,NULL,NULL,NULL,0,NULL,NULL 15307,26668,224736,NULL,NULL,NULL,0,NULL,NULL 15308,211498,861171,Nice Answer Enlightened Student Custodian Informed Scholar Yearling,NULL,NULL,0,NULL,NULL 15309,127485,451446,NULL,NULL,NULL,0,NULL,NULL 15310,315588,1073187,NULL,NULL,NULL,0,NULL,NULL 15311,327019,841477,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15312,793115,923449,NULL,NULL,NULL,0,NULL,NULL 15313,434559,153572,Yearling Necromancer Popular Question Enlightened,NULL,NULL,0,NULL,NULL 15314,78382,942440,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 15315,387979,168465,Nice Question Nice Answer Popular Question Necromancer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer Good Answer Necromancer Notable Question Nice Answer Nice Answer Yearling Necromancer Great Answer Popular Question Caucus Notable Question Necromancer Notable Question Necromancer Necromancer Good Answer Caucus Constituent Nice Answer Yearling Good Answer Documentation User Good Answer Nice Answer Enlightened Census Notable Question Good Answer Caucus Constituent Populist Nice Answer Notable Question Popular Question Nice Question c++ Yearling Nice Answer Good Question,NULL,Fastest sort of fixed length int array algorithm optimization sorting gpgpu pAnswering to another Stack Overflow question href https stackoverflow com questions 2775774 what is the best algorithm for this array comparison problem 2777202 2777202 this one stumbled upon an interesting sub problem What is the fastest way to sort an array of ints ppAs the question is very low level pulliwe can assume libraries are available and the call itself has its cost only plain lilito avoid emptying instruction pipeline that has emvery em high cost we should probably minimize branches jumps and every other kind of control flow breaking like those hidden behind sequence points in code amp amp code or code code liliroom is constrained and minimizing registers and memory use is an issue ideally in place sort is probably best li ulpReally this question is kind of Golf where the goal is not to minimize source length but execution time call it Zening code as used in the title of the book href https rads stackoverflow com amzn click 1883577039 rel noreferrer Zen of Code optimization by href http en wikipedia org wiki Michael Abrash rel noreferrer Michael Abrash and its href http www codinghorror com blog 2008 02 there aint no such thing as the fastest code html rel noreferrer sequels ppAs for why it is interesting there is several layers pullithe example is simple and easy to understand and measure not much skill involved liliit shows effects of choice of good algorithm for the problem but also effects of the compiler and underlying hardware li ulpHere is my reference naive not optimized implementation and my test set ppre code include lt stdio gt static inline int sort6 int char imin int tmp for lt imin for lt if lt imin imin tmp imin imin tmp static inline unsigned long long rdtsc void unsigned long long int asm volatile byte 0x0f 0x31 return int main int argc char argv int int 100 300 500 100 500 200 600 unsigned long long cycles rdtsc for lt sort6 printf 10 cycles rdtsc cycles printf Time is unsigned cycles code preh2 strongRaw results strong h2pAs number of variants is becoming large gathered them all in test suite that can be found href http pastebin com azzuk072 rel noreferrer here The actual tests used are bit less naive than those showed above thanks to Kevin Stock You can compile and execute it in your own environment quite interested by behavior on different target architecture compilers OK guys put it in answers will every contributor of new resultset ppI gave the answer to Daniel Stutzbach for golfing one year ago as he was at the source of the fastest solution at that time sorting networks pp strongLinux 64 bits gcc 64 bits Intel Core Duo E8400 O2 strong pulliDirect call to qsort library function 689 38 liliNaive implementation insertion sort 285 70 liliInsertion Sort Daniel Stutzbach 142 12 liliInsertion Sort Unrolled 125 47 liliRank Order 102 26 liliRank Order with registers 58 03 liliSorting Networks Daniel Stutzbach 111 68 liliSorting Networks Paul 66 36 liliSorting Networks 12 with Fast Swap 58 86 liliSorting Networks 12 reordered Swap 53 74 liliSorting Networks 12 reordered Simple Swap 31 54 liliReordered Sorting Network fast swap 31 54 liliReordered Sorting Network fast swap V2 33 63 liliInlined Bubble Sort Paolo Bonzini 48 85 liliUnrolled Insertion Sort Paolo Bonzini 75 30 li ulp strongLinux 64 bits gcc 64 bits Intel Core Duo E8400 O1 strong pulliDirect call to qsort library function 705 93 liliNaive implementation insertion sort 135 60 liliInsertion Sort Daniel Stutzbach 142 11 liliInsertion Sort Unrolled 126 75 liliRank Order 46 42 liliRank Order with registers 43 58 liliSorting Networks Daniel Stutzbach 115 57 liliSorting Networks Paul 64 44 liliSorting Networks 12 with Fast Swap 61 98 liliSorting Networks 12 reordered Swap 54 67 liliSorting Networks 12 reordered Simple Swap 31 54 liliReordered Sorting Network fast swap 31 24 liliReordered Sorting Network fast swap V2 33 07 liliInlined Bubble Sort Paolo Bonzini 45 79 liliUnrolled Insertion Sort Paolo Bonzini 80 15 li ulpI included both O1 and O2 results because surprisingly for several programs O2 is strongless strong efficient than O1 wonder what specific optimization has this effect ph2 strongComments on proposed solutions strong h2p strongInsertion Sort Daniel Stutzbach strong ppAs expected minimizing branches is indeed good idea pp strongSorting Networks Daniel Stutzbach strong ppBetter than insertion sort wondered if the main effect was not get from avoiding the external loop gave it try by unrolled insertion sort to check and indeed we get roughly the same figures code is href http pastebin com azzuk072 rel noreferrer here pp strongSorting Networks Paul strong ppThe best so far The actual code used to test is href http pastebin com azzuk072 rel noreferrer here Don know yet why it is nearly two times as fast as the other sorting network implementation Parameter passing Fast max pp strongSorting Networks 12 SWAP with Fast Swap strong ppAs suggested by Daniel Stutzbach combined his 12 swap sorting network with branchless fast swap code is href http pastebin com azzuk072 rel noreferrer here It is indeed faster the best so far with small margin roughly as could be expected using less swap ppIt is also interesting to notice that the branchless swap seems to be much times less efficient than the simple one using if on PPC architecture pp strongCalling Library qsort strong ppTo give another reference point also tried as suggested to just call library qsort code is href http pastebin com azzuk072 rel noreferrer here As expected it is much slower 10 to 30 times slower as it became obvious with the new test suite the main problem seems to be the initial load of the library after the first call and it compares not so poorly with other version It is just between and 20 times slower on my Linux On some architecture used for tests by others it seems even to be faster really surprised by that one as library qsort use more complex API pp strongRank order strong ppRex Kerr proposed another completely different method for each item of the array compute directly its final position This is efficient because computing rank order do not need branch The drawback of this method is that it takes three times the amount of memory of the array one copy of array and variables to store rank orders The performance results are very surprising and interesting On my reference architecture with 32 bits OS and Intel Core2 Quad E8300 cycle count was slightly below 1000 like sorting networks with branching swap But when compiled and executed on my 64 bits box Intel Core2 Duo it performed much better it became the fastest so far finally found out the true reason My 32bits box use gcc and my 64bits box gcc and the last one seems much better at optimising this particular code there was very little difference for other proposals pp emupdate em ppAs published figures above shows this effect was still enhanced by later versions of gcc and Rank Order became consistently twice as fast as any other alternative pp strongSorting Networks 12 with reordered Swap strong ppThe amazing efficiency of the Rex Kerr proposal with gcc made me wonder how could program with times as much memory usage be faster than branchless sorting networks My hypothesis was that it had less dependencies of the kind read after write allowing for better use of the superscalar instruction scheduler of the x86 That gave me an idea reorder swaps to minimize read after write dependencies More simply put when you do codeSWAP SWAP code you have to wait for the first swap to be finished before performing the second one because both access to common memory cell When you do codeSWAP SWAP codethe processor can execute both in parallel tried it and it works as expected the sorting networks is running about 10 faster pp strongSorting Networks 12 with Simple Swap strong ppOne year after the original post Steinar Gunderson suggested that we should not try to outsmart the compiler and keep the swap code simple It indeed good idea as the resulting code is about 40 faster He also proposed swap optimized by hand using x86 inline assembly code that can still spare some more cycles The most surprising it says volumes on programmer psychology is that one year ago none of used tried that version of swap Code used to test is href http pastebin com azzuk072 rel noreferrer here Others suggested other ways to write fast swap but it yields the same performances as the simple one with decent compiler ppThe best code is now as follow ppre codestatic inline void sort6 sorting network simple swap int define min lt define max lt define SWAP const int min const int max SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP undef SWAP undef min undef max code prepIf we believe our test set and yes it is quite poor it mere benefit is being short simple and easy to understand what we are measuring the average number of cycles of the resulting code for one sort is below 40 cycles tests are executed That put each swap at an average of cycles call that amazingly fast Any other improvements possible Monov still interrested but believe that the code would be quite different on GPU Henceforth it probably should be another question As lazy din opened it So if you have good answer working on GPU feel free to give it Fastest sort of fixed length int array algorithm optimization sorting gpgpu pAnswering to another Stack Overflow question href https stackoverflow com questions 2775774 what is the best algorithm for this array comparison problem 2777202 2777202 this one stumbled upon an interesting sub problem What is the fastest way to sort an array of ints ppAs the question is very low level pulliwe can assume libraries are available and the call itself has its cost only plain lilito avoid emptying instruction pipeline that has emvery em high cost we should probably minimize branches jumps and every other kind of control flow breaking like those hidden behind sequence points in code amp amp code or code code liliroom is constrained and minimizing registers and memory use is an issue ideally in place sort is probably best li ulpReally this question is kind of Golf where the goal is not to minimize source length but execution time call it Zening code as used in the title of the book href https rads stackoverflow com amzn click 1883577039 rel noreferrer Zen of Code optimization by href http en wikipedia org wiki Michael Abrash rel noreferrer Michael Abrash and its href http www codinghorror com blog 2008 02 there aint no such thing as the fastest code html rel noreferrer sequels ppAs for why it is interesting there is several layers pullithe example is simple and easy to understand and measure not much skill involved liliit shows effects of choice of good algorithm for the problem but also effects of the compiler and underlying hardware li ulpHere is my reference naive not optimized implementation and my test set ppre code include lt stdio gt static inline int sort6 int char imin int tmp for lt imin for lt if lt imin imin tmp imin imin tmp static inline unsigned long long rdtsc void unsigned long long int asm volatile byte 0x0f 0x31 return int main int argc char argv int int 100 300 500 100 500 200 600 unsigned long long cycles rdtsc for lt sort6 printf 10 cycles rdtsc cycles printf Time is unsigned cycles code preh2 strongRaw results strong h2pAs number of variants is becoming large gathered them all in test suite that can be found href http pastebin com azzuk072 rel noreferrer here The actual tests used are bit less naive than those showed above thanks to Kevin Stock You can compile and execute it in your own environment quite interested by behavior on different target architecture compilers OK guys put it in answers will every contributor of new resultset ppI gave the answer to Daniel Stutzbach for golfing one year ago as he was at the source of the fastest solution at that time sorting networks pp strongLinux 64 bits gcc 64 bits Intel Core Duo E8400 O2 strong pulliDirect call to qsort library function 689 38 liliNaive implementation insertion sort 285 70 liliInsertion Sort Daniel Stutzbach 142 12 liliInsertion Sort Unrolled 125 47 liliRank Order 102 26 liliRank Order with registers 58 03 liliSorting Networks Daniel Stutzbach 111 68 liliSorting Networks Paul 66 36 liliSorting Networks 12 with Fast Swap 58 86 liliSorting Networks 12 reordered Swap 53 74 liliSorting Networks 12 reordered Simple Swap 31 54 liliReordered Sorting Network fast swap 31 54 liliReordered Sorting Network fast swap V2 33 63 liliInlined Bubble Sort Paolo Bonzini 48 85 liliUnrolled Insertion Sort Paolo Bonzini 75 30 li ulp strongLinux 64 bits gcc 64 bits Intel Core Duo E8400 O1 strong pulliDirect call to qsort library function 705 93 liliNaive implementation insertion sort 135 60 liliInsertion Sort Daniel Stutzbach 142 11 liliInsertion Sort Unrolled 126 75 liliRank Order 46 42 liliRank Order with registers 43 58 liliSorting Networks Daniel Stutzbach 115 57 liliSorting Networks Paul 64 44 liliSorting Networks 12 with Fast Swap 61 98 liliSorting Networks 12 reordered Swap 54 67 liliSorting Networks 12 reordered Simple Swap 31 54 liliReordered Sorting Network fast swap 31 24 liliReordered Sorting Network fast swap V2 33 07 liliInlined Bubble Sort Paolo Bonzini 45 79 liliUnrolled Insertion Sort Paolo Bonzini 80 15 li ulpI included both O1 and O2 results because surprisingly for several programs O2 is strongless strong efficient than O1 wonder what specific optimization has this effect ph2 strongComments on proposed solutions strong h2p strongInsertion Sort Daniel Stutzbach strong ppAs expected minimizing branches is indeed good idea pp strongSorting Networks Daniel Stutzbach strong ppBetter than insertion sort wondered if the main effect was not get from avoiding the external loop gave it try by unrolled insertion sort to check and indeed we get roughly the same figures code is href http pastebin com azzuk072 rel noreferrer here pp strongSorting Networks Paul strong ppThe best so far The actual code used to test is href http pastebin com azzuk072 rel noreferrer here Don know yet why it is nearly two times as fast as the other sorting network implementation Parameter passing Fast max pp strongSorting Networks 12 SWAP with Fast Swap strong ppAs suggested by Daniel Stutzbach combined his 12 swap sorting network with branchless fast swap code is href http pastebin com azzuk072 rel noreferrer here It is indeed faster the best so far with small margin roughly as could be expected using less swap ppIt is also interesting to notice that the branchless swap seems to be much times less efficient than the simple one using if on PPC architecture pp strongCalling Library qsort strong ppTo give another reference point also tried as suggested to just call library qsort code is href http pastebin com azzuk072 rel noreferrer here As expected it is much slower 10 to 30 times slower as it became obvious with the new test suite the main problem seems to be the initial load of the library after the first call and it compares not so poorly with other version It is just between and 20 times slower on my Linux On some architecture used for tests by others it seems even to be faster really surprised by that one as library qsort use more complex API pp strongRank order strong ppRex Kerr proposed another completely different method for each item of the array compute directly its final position This is efficient because computing rank order do not need branch The drawback of this method is that it takes three times the amount of memory of the array one copy of array and variables to store rank orders The performance results are very surprising and interesting On my reference architecture with 32 bits OS and Intel Core2 Quad E8300 cycle count was slightly below 1000 like sorting networks with branching swap But when compiled and executed on my 64 bits box Intel Core2 Duo it performed much better it became the fastest so far finally found out the true reason My 32bits box use gcc and my 64bits box gcc and the last one seems much better at optimising this particular code there was very little difference for other proposals pp emupdate em ppAs published figures above shows this effect was still enhanced by later versions of gcc and Rank Order became consistently twice as fast as any other alternative pp strongSorting Networks 12 with reordered Swap strong ppThe amazing efficiency of the Rex Kerr proposal with gcc made me wonder how could program with times as much memory usage be faster than branchless sorting networks My hypothesis was that it had less dependencies of the kind read after write allowing for better use of the superscalar instruction scheduler of the x86 That gave me an idea reorder swaps to minimize read after write dependencies More simply put when you do codeSWAP SWAP code you have to wait for the first swap to be finished before performing the second one because both access to common memory cell When you do codeSWAP SWAP codethe processor can execute both in parallel tried it and it works as expected the sorting networks is running about 10 faster pp strongSorting Networks 12 with Simple Swap strong ppOne year after the original post Steinar Gunderson suggested that we should not try to outsmart the compiler and keep the swap code simple It indeed good idea as the resulting code is about 40 faster He also proposed swap optimized by hand using x86 inline assembly code that can still spare some more cycles The most surprising it says volumes on programmer psychology is that one year ago none of used tried that version of swap Code used to test is href http pastebin com azzuk072 rel noreferrer here Others suggested other ways to write fast swap but it yields the same performances as the simple one with decent compiler ppThe best code is now as follow ppre codestatic inline void sort6 sorting network simple swap int define min lt define max lt define SWAP const int min const int max SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP SWAP undef SWAP undef min undef max code prepIf we believe our test set and yes it is quite poor it mere benefit is being short simple and easy to understand what we are measuring the average number of cycles of the resulting code for one sort is below 40 cycles tests are executed That put each swap at an average of cycles call that amazingly fast Any other improvements possible To run code on GPU you can use CUDA or OpenCL It raises some restrictions but it still code and benefits from GPU By the way if you have GPU just sorting numbers would probably be waste of power pFor completude you can also easily do it without calling any heavy library function no snprintf no strcat not even memcpy It can be useful say if you are programming some microcontroller or OS kernel where libc is not available ppNothing really fancy you can find similar code around if you google for it Really it not much more complicated than calling snprintf and much faster ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str int for lt sizeof buf pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout printf str code prepHere is another slightly shorter version It merely avoid intermediate index variable and duplicating laste case code but the terminating character is written two times ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str for pin lt buf sizeof buf pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout printf str code prepBelow is yet another version to answer to comment saying used trick to know the size of the input buffer Actually it not trick but necessary input knowledge you need to know the size of the data that you are converting made this clearer by extracting the conversion code to separate function also added boundary check code for target buffer which is not really necessary if we know what we are doing ppre code include lt stdio gt void tohex unsigned char in size insz char out size outsz unsigned char pin in const char hex 0123456789ABCDEF char pout out for pin lt in insz pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout if pout out gt outsz Better to truncate output string than overflow buffer it would be still better to either return status or ensure the target buffer is large enough and it never happen break pout int main enum insz outsz insz unsigned char buf 10 11 char str outsz tohex buf insz str outsz printf str code pre War unless my code is bogus using const won safeguard much except as you say mixing up pointers or using the same pointer for input and output ok still possible But it will also help compiler to optimize code Even better would be to also use restrict keyword too bad C99 not but often exists as compiler extension What do you want more meaninfull as to call input buffer in and output buffer out could also opt for using string and returning copy instead of providing output buffer in modern optimizers are good enough to don care much pFor completude you can also easily do it without calling any heavy library function no snprintf no strcat not even memcpy It can be useful say if you are programming some microcontroller or OS kernel where libc is not available ppNothing really fancy you can find similar code around if you google for it Really it not much more complicated than calling snprintf and much faster ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str int for lt sizeof buf pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout printf str code prepHere is another slightly shorter version It merely avoid intermediate index variable and duplicating laste case code but the terminating character is written two times ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str for pin lt buf sizeof buf pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout printf str code prepBelow is yet another version to answer to comment saying used trick to know the size of the input buffer Actually it not trick but necessary input knowledge you need to know the size of the data that you are converting made this clearer by extracting the conversion code to separate function also added boundary check code for target buffer which is not really necessary if we know what we are doing ppre code include lt stdio gt void tohex unsigned char in size insz char out size outsz unsigned char pin in const char hex 0123456789ABCDEF char pout out for pin lt in insz pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout if pout out gt outsz Better to truncate output string than overflow buffer it would be still better to either return status or ensure the target buffer is large enough and it never happen break pout int main enum insz outsz insz unsigned char buf 10 11 char str outsz tohex buf insz str outsz printf str code pre Ward depends on the kind of project you are working on In some context all memory allocation may be forbidden in such cases resizing is no go not sure what you suggest with your sizeof Either it has to be be inside caller code besause in callee it just won work because of pointer decay or the input parameters could be defined as reference to arrays in which case the size can even be implicit But in non trivial cases the same function could be used for instance to append an hex value to some text message then the actual memory checks become different pFor completude you can also easily do it without calling any heavy library function no snprintf no strcat not even memcpy It can be useful say if you are programming some microcontroller or OS kernel where libc is not available ppNothing really fancy you can find similar code around if you google for it Really it not much more complicated than calling snprintf and much faster ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str int for lt sizeof buf pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout printf str code prepHere is another slightly shorter version It merely avoid intermediate index variable and duplicating laste case code but the terminating character is written two times ppre code include lt stdio gt int main unsigned char buf 10 11 target buffer should be large enough char str 12 unsigned char pin buf const char hex 0123456789ABCDEF char pout str for pin lt buf sizeof buf pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout pout printf str code prepBelow is yet another version to answer to comment saying used trick to know the size of the input buffer Actually it not trick but necessary input knowledge you need to know the size of the data that you are converting made this clearer by extracting the conversion code to separate function also added boundary check code for target buffer which is not really necessary if we know what we are doing ppre code include lt stdio gt void tohex unsigned char in size insz char out size outsz unsigned char pin in const char hex 0123456789ABCDEF char pout out for pin lt in insz pout pin pout hex pin gt gt amp 0xF pout hex pin amp 0xF pout if pout out gt outsz Better to truncate output string than overflow buffer it would be still better to either return status or ensure the target buffer is large enough and it never happen break pout int main enum insz outsz insz unsigned char buf 10 11 char str outsz tohex buf insz str outsz printf str code pre Ward doing nothing is indeed an option That what wrote in my code comment,0,NULL,NULL 15316,24791,762306,NULL,NULL,NULL,0,NULL,NULL 15317,4058,117816,Notable Question,NULL,NULL,0,NULL,NULL 15318,1614168,219461,Yearling Great Answer,NULL,NULL,0,NULL,NULL 15319,2315614,219461,Yearling Great Answer,NULL,NULL,0,NULL,NULL 15320,667561,1196615,NULL,NULL,NULL,0,NULL,NULL 15321,1643084,1249598,Notable Question,NULL,NULL,0,NULL,NULL 15322,40278,1036741,Nice Answer Notable Question Nice Answer Enlightened Popular Question Yearling Popular Question Good Answer Notable Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 15323,733146,831180,Announcer Populist Yearling Caucus Necromancer Nice Answer Good Answer Nice Answer Popular Question Yearling Good Answer Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 15324,897825,1161578,NULL,NULL,NULL,0,NULL,NULL 15325,29021,327402,Nice Answer Enlightened Favorite Question Great Question Notable Question Guru Popular Question Popular Question Nice Answer Enlightened Good Answer Popular Question Popular Question Nice Answer Notable Question Famous Question Popular Question Popular Question Nice Answer Yearling Nice Question Famous Question Notable Question Announcer Announcer Nice Question Notable Question Popular Question Notable Question Nice Question Great Question Notable Question Good Question Good Question Notable Question Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question Good Answer Notable Question Good Question Nice Question Yearling Good Answer Notable Question Famous Question Nice Question Notable Question Pundit Nice Question Good Question Notable Question Nice Question Necromancer Nice Answer Good Answer Notable Question Good Answer Yearling Popular Question Famous Question Famous Question Favorite Question Popular Question Good Answer Good Answer,NULL,NULL,0,NULL,NULL 15326,154920,221740,NULL,NULL,NULL,0,NULL,NULL 15327,71461,267364,Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Popular Question Popular Question Popular Question Caucus Good Answer Yearling Great Answer Famous Question Nice Answer Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 15328,11294,97592,Nice Answer Yearling Good Answer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 15329,659722,357719,Popular Question,NULL,NULL,0,NULL,NULL 15330,160778,396964,Good Question Promoter Benefactor Yearling Notable Question Caucus Popular Question Popular Question Popular Question Yearling Custodian Custodian Custodian Popular Question Nice Question Organizer Yearling Explainer Popular Question Reviewer Popular Question Notable Question Yearling Notable Question Popular Question Nice Answer Yearling Good Question Yearling Popular Question Famous Question Yearling Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 15331,1310975,1054391,Notable Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15332,13351,952985,Yearling Guru Yearling Autobiographer,NULL,NULL,0,NULL,NULL 15333,14774,283355,NULL,NULL,NULL,0,NULL,NULL 15334,54992,27583,Notable Question Popular Question Yearling Famous Question Popular Question Nice Question Great Answer Yearling Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 15335,409561,502572,Yearling Popular Question Yearling Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 15336,435403,1458831,Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 15337,904893,1024683,NULL,NULL,NULL,0,NULL,NULL 15338,284685,927088,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15339,578206,1438908,Teacher Notable Question Census Popular Question Popular Question Custodian Caucus Constituent Revival Self-Learner Yearling Critic Notable Question Famous Question,NULL,NULL,0,NULL,NULL 15340,34772,945780,Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 15341,3696,587013,Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 15342,1530528,877703,Notable Question Nice Answer Nice Question Good Answer Popular Question Civic Duty Custodian Custodian Custodian Organizer Self-Learner Yearling Notable Question Guru Nice Answer Caucus Necromancer Popular Question Inquisitive Popular Question Nice Answer Nice Question Popular Question Famous Question Popular Question Caucus Yearling Popular Question Popular Question Necromancer Notable Question Tag Editor Census Revival Caucus Notable Question Nice Question Necromancer Popular Question Custodian Yearling Popular Question Famous Question Notable Question,NULL,pThe href https developer mozilla org en US docs Web JavaScript Reference Global Objects Date rel noreferrer Date object will do what you want construct one for each date then compare them using the code gt code code lt code code lt code or code gt code ppThe code code code code code code and code code operators require you to use codedate getTime code as in ppre codevar d1 new Date var d2 new Date d1 var same d1 getTime d2 getTime var notSame d1 getTime d2 getTime code prepto be clear just checking for equality directly with the data objects won work ppre codevar d1 new Date var d2 new Date d1 console log d1 d2 prints false wrong console log d1 d2 prints false wrong console log d1 d2 prints true wrong console log d1 d2 prints true wrong console log d1 getTime d2 getTime prints true correct code prepI suggest you use drop downs or some similar constrained form of date entry rather than text boxes though lest you find yourself in input validation hell you could use the property of antisymmetry http mathworld wolfram com AntisymmetricRelation html d1 d2 d1 d2 implies d1 equals d2,0,NULL,NULL 15343,1505791,618267,NULL,NULL,NULL,0,NULL,NULL 15344,136972,1201422,Yearling Enthusiast Necromancer Yearling,NULL,NULL,0,NULL,NULL 15345,911305,2179,Yearling,NULL,NULL,0,NULL,NULL 15346,83383,546758,NULL,NULL,NULL,0,NULL,NULL 15347,356548,160208,Notable Question Custodian Revival Notable Question Nice Question Yearling Nice Question Notable Question Guru Popular Question Nice Question Nice Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 15348,50883,33966,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15349,1691418,221483,Supporter,NULL,NULL,0,NULL,NULL 15350,367149,1172023,Yearling Necromancer Famous Question Yearling Nice Question Nice Answer Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 15351,142531,448858,Yearling Nice Answer Yearling Necromancer Caucus Good Answer Custodian Citizen Patrol Custodian Good Answer Nice Answer Yearling Census Curious Informed Yearling Custodian,NULL,NULL,0,NULL,NULL 15352,1013645,1306973,Notable Question Notable Question Notable Question Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 15353,1042008,311163,Notable Question Nice Question Nice Question Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 15354,32272,612168,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 15355,4755,673958,Yearling Good Answer Caucus Constituent Yearling Necromancer Caucus Necromancer Custodian Necromancer Census Necromancer Yearling Citizen Patrol Guru,NULL,NULL,0,NULL,NULL 15356,108414,42413,Good Question Yearling Yearling Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15357,417683,179026,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 15358,457366,188638,Popular Question Nice Answer Guru Guru Yearling Nice Question Good Answer Popular Question Nice Answer Enlightened Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 15359,495126,842429,Notable Question,NULL,NULL,0,NULL,NULL 15360,15556,228324,Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 15361,898163,1108219,NULL,NULL,NULL,0,NULL,NULL 15362,9016,394443,NULL,NULL,NULL,0,NULL,NULL 15363,960680,323819,NULL,NULL,NULL,0,NULL,NULL 15364,207000,323819,NULL,NULL,NULL,0,NULL,NULL 15365,2974,855405,NULL,NULL,NULL,0,NULL,NULL 15366,208238,455356,Revival Necromancer,NULL,NULL,0,NULL,NULL 15367,3125773,597910,NULL,NULL,NULL,0,NULL,NULL 15368,2572350,597910,NULL,NULL,NULL,0,NULL,NULL 15369,131462,812803,NULL,NULL,NULL,0,NULL,NULL 15370,184462,930878,NULL,NULL,NULL,0,NULL,NULL 15371,191694,883862,NULL,NULL,NULL,0,NULL,NULL 15372,31753,1144010,NULL,NULL,NULL,0,NULL,NULL 15373,615618,1226827,NULL,NULL,NULL,0,NULL,NULL 15374,565678,719490,NULL,NULL,NULL,0,NULL,NULL 15375,777879,1144012,Yearling Nice Answer Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 15376,49411,59272,Yearling Guru Yearling Necromancer Nice Answer Yearling,NULL,pAs others have noted Swift doesn synthesize the necessary equality operators automatically Let me propose cleaner IMHO implementation though ppre codeenum SimpleToken Equatable case Name String case Number Int public func lhs SimpleToken rhs SimpleToken gt Bool switch lhs rhs case let Name Name let Number Number return default return false code prepIt far from ideal there lot of repetition but at least you don need to do nested switches with if statements inside With the where clause won each case continue to be tested until it hits default for every false It might be trivial but that sort of thing can add up in certain systems,0,NULL,NULL 15377,449,890961,Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15378,184847,315650,Good Answer Popular Question Popular Question Nice Answer Famous Question Great Answer Yearling Famous Question Caucus Nice Question Popular Question javascript Yearling Popular Question Custodian Excavator Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 15379,149357,1563467,NULL,NULL,NULL,0,NULL,NULL 15380,135771,1397416,NULL,NULL,NULL,0,NULL,NULL 15381,116916,1207840,Teacher Supporter,NULL,NULL,0,NULL,NULL 15382,3300720,1207840,Teacher Supporter,NULL,NULL,0,NULL,NULL 15383,213775,994595,NULL,NULL,NULL,0,NULL,NULL 15384,51997,6855,Good Question Nice Question Yearling Notable Question Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 15385,1344361,1170005,Necromancer,NULL,NULL,0,NULL,NULL 15386,144398,448428,Nice Question,NULL,NULL,0,NULL,NULL 15387,274833,181375,Teacher,NULL,NULL,0,NULL,NULL 15388,436801,164228,Student,NULL,NULL,0,NULL,NULL 15389,1040394,455066,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15390,39706,1182302,Popular Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15391,156430,1066580,NULL,NULL,NULL,0,NULL,NULL 15392,624753,53602,Yearling Good Question Yearling Good Answer Popular Question Yearling Stellar Question Nice Question,NULL,NULL,0,NULL,NULL 15393,246357,968269,Notable Question Nice Answer Enlightened Nice Question Yearling Yearling Famous Question Yearling Informed Popular Question,NULL,NULL,0,NULL,NULL 15394,890587,702839,Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 15395,215092,386521,Custodian Nice Answer Unsung Hero ios Yearling Talkative watchkit Nice Answer Enlightened Excavator Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 15396,61652,657316,Notable Question,NULL,NULL,0,NULL,NULL 15397,51864,371040,Yearling Custodian Caucus Guru Nice Answer Enlightened Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 15398,199367,165713,Excavator Yearling Famous Question Announcer Yearling Citizen Patrol Tumbleweed Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 15399,1427762,256379,NULL,NULL,NULL,0,NULL,NULL 15400,1018827,524529,Necromancer Yearling Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 15401,379732,524529,Necromancer Yearling Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 15402,110055,95073,Famous Question Nice Question Yearling Custodian Custodian Revival Revival Famous Question,NULL,NULL,0,NULL,NULL 15403,22549,560110,Editor Popular Question,NULL,NULL,0,NULL,NULL 15404,50216,133393,NULL,NULL,NULL,0,NULL,NULL 15405,233008,173748,Yearling Famous Question Notable Question Famous Question Notable Question Good Question Famous Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 15406,128038,828778,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15407,1195820,1134541,Yearling Yearling Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 15408,1511595,510357,NULL,NULL,NULL,0,NULL,NULL 15409,10263759,1257315,Scholar,NULL,NULL,0,NULL,NULL 15410,66770,1438387,NULL,NULL,NULL,0,NULL,NULL 15411,45085,134595,Nice Question Notable Question Notable Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 15412,380066,131852,Yearling,NULL,NULL,0,NULL,NULL 15413,238608,5073,Civic Duty Informed Famous Question Popular Question Custodian Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15414,127079,496288,Supporter,NULL,NULL,0,NULL,NULL 15415,68648,111495,Notable Question Nice Question Good Answer Yearling Custodian Popular Question Nice Answer Famous Question Yearling Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 15416,656319,1370536,Yearling Nice Question Yearling Notable Question Popular Question Caucus Constituent Nice Question Yearling Good Answer Famous Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 15417,7135,208666,Necromancer,NULL,NULL,0,NULL,NULL 15418,17910,322925,NULL,NULL,NULL,0,NULL,NULL 15419,164292,876539,NULL,NULL,NULL,0,NULL,NULL 15420,1538846,727527,NULL,NULL,NULL,0,NULL,NULL 15421,5944766,703233,Nice Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 15422,731244,703233,Nice Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 15423,731248,703233,Nice Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 15424,317611,1209984,Famous Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 15425,2225839,723155,Excavator,NULL,NULL,0,NULL,NULL 15426,255564,723155,Excavator,NULL,NULL,0,NULL,NULL 15427,1466473,743251,NULL,NULL,NULL,0,NULL,NULL 15428,1570814,635125,Civic Duty Yearling Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Announcer Announcer Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 15429,377096,1392972,NULL,NULL,NULL,0,NULL,NULL 15430,166457,1104725,NULL,NULL,NULL,0,NULL,NULL 15431,611127,177762,Excavator Yearling Caucus Necromancer Nice Answer Organizer Yearling Yearling,NULL,NULL,0,NULL,NULL 15432,88019,617159,Yearling Necromancer Notable Question Great Answer Necromancer Yearling Announcer Caucus Guru Good Question Nice Answer haskell Yearling Good Answer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 15433,180926,614,Good Question Necromancer Custodian,NULL,NULL,0,NULL,NULL 15434,45650,1131006,Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 15435,9025317,828454,NULL,NULL,NULL,0,NULL,NULL 15436,2943957,876932,NULL,NULL,NULL,0,NULL,NULL 15437,78701,38932,NULL,NULL,NULL,0,NULL,NULL 15438,1078577,319013,Announcer Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 15439,3014367,408193,Yearling Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 15440,20436,408193,Yearling Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 15441,172912,268789,Excavator Custodian Census,NULL,NULL,0,NULL,NULL 15442,60082,959751,NULL,NULL,NULL,0,NULL,NULL 15443,1069296,1526225,Revival,NULL,NULL,0,NULL,NULL 15444,125763,481294,NULL,NULL,NULL,0,NULL,NULL 15445,504157,341041,Teacher Informed Commentator Organizer,NULL,NULL,0,NULL,NULL 15446,150273,463557,NULL,NULL,NULL,0,NULL,NULL 15447,83694,512364,NULL,NULL,NULL,0,NULL,NULL 15448,6247659,854312,NULL,NULL,NULL,0,NULL,NULL 15449,98033,649156,NULL,NULL,NULL,0,NULL,NULL 15450,46468,881481,Popular Question Custodian Notable Question Caucus,NULL,NULL,0,NULL,NULL 15451,268816,802241,NULL,NULL,NULL,0,NULL,NULL 15452,231813,1561402,NULL,NULL,NULL,0,NULL,NULL 15453,693768,591413,NULL,NULL,NULL,0,NULL,NULL 15454,187424,197658,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 15455,54822,1558454,Editor Tumbleweed Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15456,70798,620851,NULL,NULL,NULL,0,NULL,NULL 15457,647127,555191,NULL,NULL,NULL,0,NULL,NULL 15458,233144,1145705,Yearling Yearling Guru Yearling android,NULL,NULL,0,NULL,NULL 15459,13357,20467,Favorite Question Yearling Famous Question Caucus Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 15460,147218,1019365,NULL,NULL,NULL,0,NULL,NULL 15461,9766347,1019365,NULL,NULL,NULL,0,NULL,NULL 15462,242984,1517197,NULL,NULL,NULL,0,NULL,NULL 15463,65133,1196628,NULL,NULL,NULL,0,NULL,NULL 15464,341750,236433,Census,NULL,NULL,0,NULL,NULL 15465,197017,865948,Supporter Scholar Student,NULL,NULL,0,NULL,NULL 15466,231712,1291457,Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15467,9453644,1291457,Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15468,64679,724989,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15469,10070,718763,Yearling Self-Learner Popular Question Caucus Yearling Notable Question Popular Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 15470,1386309,1175677,NULL,NULL,NULL,0,NULL,NULL 15471,555467,204142,Good Answer Good Answer Guru Yearling Caucus Constituent Good Answer Necromancer Yearling Great Answer Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 15472,499968,807092,Popular Question Notable Question Yearling Popular Question Nice Question Notable Question Notable Question Caucus Famous Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 15473,161291,1202959,Populist Yearling Great Answer Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 15474,47773,598779,NULL,NULL,NULL,0,NULL,NULL 15475,189246,147366,Good Answer Yearling Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 15476,22497,894129,NULL,NULL,NULL,0,NULL,NULL 15477,13120,183721,NULL,NULL,NULL,0,NULL,NULL 15478,453835,542338,NULL,NULL,NULL,0,NULL,NULL 15479,1187353,1600,Self-Learner Popular Question Guru Notable Question Yearling Nice Answer Enlightened Good Answer Famous Question Popular Question Populist Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 15480,1341254,70261,Yearling Self-Learner Good Answer Good Answer Great Answer Great Answer Good Question Nice Answer Enlightened Guru Nice Answer Enlightened Citizen Patrol Famous Question Good Answer Caucus Yearling Enlightened Good Answer Civic Duty Good Answer Yearling Guru Great Answer Guru Good Answer,NULL,pThey are not part of the specification nor is there standard way of accessing them that you could use to get the internal state of the promise to construct polyfill However you can convert any standard promise into one that has these values by creating wrapper ppre codefunction MakeQuerablePromise promise Don create wrapper for promises that can already be queried if promise isResolved return promise var isResolved false var isRejected false Observe the promise saving the fulfillment in closure scope var result promise then function isResolved true return function isRejected true throw result isFulfilled function return isResolved isRejected result isResolved function return isResolved result isRejected function return isRejected return result code prepThis doesn affect all promises as modifying the prototype would but it does allow you to convert promise into promise that exposes it state The question is about simulating Dojo with standard promise and the terminology is theirs not mine,0,NULL,NULL 15481,27423,577180,Yearling Necromancer Good Question Good Question Good Answer Necromancer Popular Question Yearling Nice Answer Good Question Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 15482,163793,11708,Good Answer python Good Answer Good Answer Good Question Nice Question Yearling Notable Question Nice Question Notable Question Notable Question Notable Question Notable Question Guru Nice Answer Nice Answer Nice Answer Enlightened Stellar Question Famous Question Nice Answer Yearling Nice Question Nice Answer Enlightened c Popular Question Good Question Yearling Guru,NULL,NULL,0,NULL,NULL 15483,1076778,485889,NULL,NULL,NULL,0,NULL,NULL 15484,713185,516201,NULL,NULL,NULL,0,NULL,NULL 15485,1507928,514389,Popular Question Necromancer Notable Question Famous Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Notable Question Popular Question Nice Answer Notable Question Notable Question Popular Question Nice Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Yearling Great Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15486,786675,777685,Tumbleweed Popular Question Notable Question Curious Revival,NULL,NULL,0,NULL,NULL 15487,434219,112043,NULL,NULL,NULL,0,NULL,NULL 15488,351961,1103904,NULL,NULL,NULL,0,NULL,NULL 15489,296763,940271,Good Answer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15490,495992,224859,Yearling,NULL,NULL,0,NULL,NULL 15491,324341,1001429,NULL,NULL,NULL,0,NULL,NULL 15492,1873281,434856,NULL,NULL,NULL,0,NULL,NULL 15493,3120855,1171060,NULL,NULL,NULL,0,NULL,NULL 15494,447925,1290657,Revival,NULL,NULL,0,NULL,NULL 15495,559329,592359,NULL,NULL,NULL,0,NULL,NULL 15496,864307,1084430,NULL,NULL,NULL,0,NULL,NULL 15497,34269,1204230,NULL,NULL,NULL,0,NULL,NULL 15498,961288,244431,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15499,105992,1047030,NULL,NULL,NULL,0,NULL,NULL 15500,10141,1497995,NULL,NULL,NULL,0,NULL,NULL 15501,406345,379795,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15502,1217339,1201102,NULL,NULL,NULL,0,NULL,NULL 15503,4602801,771677,Critic Necromancer Yearling Scholar Nice Answer Revival Yearling Nice Answer Enlightened Good Answer Yearling Caucus Custodian Populist Revival Custodian Yearling Revival Yearling android,NULL,pI going to elaborate on the approved answer because think there slightly simpler implementation than that article provides ppI wasn able to find built in behavior that handles generic moving of views but this one is good general purpose option from href http alisonhuang blog logdown com posts 290009 design support library coordinator layout and behavior rel noreferrer http alisonhuang blog logdown com posts 290009 design support library coordinator layout and behavior linked in another comment ppre codeimport android content Context import android support annotation Keep import android support design widget CoordinatorLayout import android support design widget Snackbar import android support v4 view ViewCompat import android util AttributeSet import android view View class MoveUpwardBehavior extends CoordinatorLayout Behavior lt View gt public MoveUpwardBehavior super public MoveUpwardBehavior Context context AttributeSet attrs super context attrs public boolean layoutDependsOn CoordinatorLayout parent View child View dependency return dependency instanceof Snackbar SnackbarLayout public boolean onDependentViewChanged CoordinatorLayout parent View child View dependency float translationY Math min ViewCompat getTranslationY dependency dependency getHeight ViewCompat setTranslationY child translationY return true you need this when you swipe the snackbar thanx to ubuntudroid comment public void onDependentViewRemoved CoordinatorLayout parent View child View dependency ViewCompat animate child translationY start code prepthen in your layout file add layout behavior as below ppre code lt LinearLayout android id id main content android orientation vertical app layout behavior com example MoveUpwardBehavior gt code prepwhere the layout behavior is the full path to your custom behavior There no need to subclass LinearLayout unless you have specific need to have default behavior which seems uncommon this solution doesn require subclassing the target view which feel is excessive Also it generally best practice to explain the answer inline since links tend to go away after while,1,NULL,How to move view above Snackbar just like FloatingButton android android snackbar pI got linear layout that want to move up when Snackbar appears ppI saw many examples how to do this with FloatingButton but what about regular view pI going to elaborate on the approved answer because think there slightly simpler implementation than that article provides ppI wasn able to find built in behavior that handles generic moving of views but this one is good general purpose option from href http alisonhuang blog logdown com posts 290009 design support library coordinator layout and behavior rel noreferrer http alisonhuang blog logdown com posts 290009 design support library coordinator layout and behavior linked in another comment ppre codeimport android content Context import android support annotation Keep import android support design widget CoordinatorLayout import android support design widget Snackbar import android support v4 view ViewCompat import android util AttributeSet import android view View class MoveUpwardBehavior extends CoordinatorLayout Behavior lt View gt public MoveUpwardBehavior super public MoveUpwardBehavior Context context AttributeSet attrs super context attrs public boolean layoutDependsOn CoordinatorLayout parent View child View dependency return dependency instanceof Snackbar SnackbarLayout public boolean onDependentViewChanged CoordinatorLayout parent View child View dependency float translationY Math min ViewCompat getTranslationY dependency dependency getHeight ViewCompat setTranslationY child translationY return true you need this when you swipe the snackbar thanx to ubuntudroid comment public void onDependentViewRemoved CoordinatorLayout parent View child View dependency ViewCompat animate child translationY start code prepthen in your layout file add layout behavior as below ppre code lt LinearLayout android id id main content android orientation vertical app layout behavior com example MoveUpwardBehavior gt code prepwhere the layout behavior is the full path to your custom behavior There no need to subclass LinearLayout unless you have specific need to have default behavior which seems uncommon 15504,174723,1158593,NULL,NULL,NULL,0,NULL,NULL 15505,1555033,298404,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15506,290227,433393,Popular Question Announcer Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 15507,210117,1390206,NULL,NULL,NULL,0,NULL,NULL 15508,307917,154688,Notable Question Notable Question Necromancer Famous Question Favorite Question Popular Question Notable Question Notable Question Popular Question Yearling Good Question Notable Question Nice Question Notable Question Notable Question Notable Question Good Answer Custodian Popular Question Famous Question Yearling Notable Question Great Question Notable Question Nice Answer Notable Question Great Question Famous Question Popular Question Famous Question Nice Question Famous Question Popular Question Nice Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 15509,549611,998523,Excavator Enthusiast Yearling Civic Duty Yearling Good Question Great Question Caucus Yearling Famous Question Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 15510,360370,1554278,NULL,NULL,NULL,0,NULL,NULL 15511,164235,25226,Nice Answer,NULL,NULL,0,NULL,NULL 15512,254220,598717,Notable Question Yearling Enthusiast Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15513,207756,613016,Notable Question Custodian Citizen Patrol Famous Question Popular Question Popular Question Popular Question Necromancer Yearling Notable Question Caucus Notable Question Notable Question Custodian Critic Notable Question Nice Answer Documentation User Popular Question Popular Question Nice Answer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 15514,43658,614688,Notable Question Nice Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 15515,2292368,614688,Notable Question Nice Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 15516,473253,1210309,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 15517,50841,308851,Cleanup Popular Question Good Answer Yearling Necromancer Great Answer Nice Answer Popular Question Nice Answer Enlightened Announcer Notable Question Nice Answer Enlightened Announcer Announcer Yearling Popular Question Announcer Notable Question Notable Question Announcer Announcer php Nice Answer Documentation User Announcer Yearling Nice Answer Announcer Necromancer Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15518,18694,1143128,NULL,NULL,NULL,0,NULL,NULL 15519,139900,76736,Popular Question,NULL,NULL,0,NULL,NULL 15520,547598,557346,NULL,NULL,NULL,0,NULL,NULL 15521,1144998,1131144,NULL,NULL,NULL,0,NULL,NULL 15522,122082,570386,NULL,NULL,NULL,0,NULL,NULL 15523,310167,1453929,NULL,NULL,NULL,0,NULL,NULL 15524,44328,446733,Popular Question Famous Question Popular Question Great Question Yearling Great Question Popular Question Popular Question Popular Question Notable Question Notable Question Great Answer Nice Question Yearling Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15525,13824,747633,Editor Student Popular Question Nice Question,NULL,NULL,0,NULL,NULL 15526,251331,495237,Notable Question,NULL,NULL,0,NULL,NULL 15527,639959,857278,NULL,NULL,NULL,0,NULL,NULL 15528,14932,247329,NULL,NULL,NULL,0,NULL,NULL 15529,23403,257443,Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 15530,12927,661171,Popular Question Notable Question Popular Question Notable Question Yearling Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15531,77411,334872,Popular Question Notable Question Custodian Custodian Yearling Caucus Yearling Announcer Notable Question Civic Duty Custodian Yearling Famous Question Famous Question Great Question,NULL,NULL,0,NULL,NULL 15532,698278,1271205,NULL,NULL,NULL,0,NULL,NULL 15533,3811313,970766,Commentator Yearling Revival Necromancer Civic Duty,NULL,NULL,0,NULL,NULL 15534,1067114,970766,Commentator Yearling Revival Necromancer Civic Duty,NULL,NULL,0,NULL,NULL 15535,760931,860603,Yearling Critic Yearling Tenacious Revival Necromancer Caucus,NULL,NULL,0,NULL,NULL 15536,11282,1183148,Yearling Caucus Constituent Caucus Informed Commentator Yearling Explainer,NULL,NULL,0,NULL,NULL 15537,48827,1497809,NULL,NULL,NULL,0,NULL,NULL 15538,34578,218167,NULL,NULL,NULL,0,NULL,NULL 15539,349924,355814,NULL,NULL,NULL,0,NULL,NULL 15540,3508439,377263,NULL,NULL,NULL,0,NULL,NULL 15541,13472,187340,NULL,NULL,NULL,0,NULL,NULL 15542,49132,45918,Notable Question Guru Yearling Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 15543,362258,849628,NULL,NULL,NULL,0,NULL,NULL 15544,1098960,635724,NULL,NULL,NULL,0,NULL,NULL 15545,30121,564606,Nice Question Good Question Yearling Caucus Notable Question Popular Question Caucus Famous Question Census Favorite Question,NULL,NULL,0,NULL,NULL 15546,130481,1103226,NULL,NULL,NULL,0,NULL,NULL 15547,518629,1472919,NULL,NULL,NULL,0,NULL,NULL 15548,10639764,1235360,NULL,NULL,NULL,0,NULL,NULL 15549,695007,872032,NULL,NULL,NULL,0,NULL,NULL 15550,1534326,357154,NULL,NULL,NULL,0,NULL,NULL 15551,261350,254864,Yearling,NULL,NULL,0,NULL,NULL 15552,678699,783450,NULL,NULL,NULL,0,NULL,NULL 15553,1923477,1395158,NULL,NULL,NULL,0,NULL,NULL 15554,509013,150571,Favorite Question Yearling Popular Question Great Question Notable Question Self-Learner Yearling Custodian Popular Question Notable Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 15555,387355,1024025,Informed,NULL,NULL,0,NULL,NULL 15556,186762,862883,Nice Answer azure Good Answer Nice Question jquery Good Answer Yearling Nice Answer Revival Guru Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 15557,226137,1201159,Favorite Question Yearling Great Question Nice Answer Notable Question Favorite Question Yearling Taxonomist Inquisitive Notable Question Yearling Nice Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15558,1026066,552789,NULL,NULL,NULL,0,NULL,NULL 15559,28578,306323,Altruist Yearling Popular Question Necromancer Yearling Tag Editor Nice Answer Yearling Custodian Announcer Nice Answer,NULL,NULL,0,NULL,NULL 15560,2724432,974077,Popular Question Announcer Custodian Yearling Notable Question Nice Answer Autobiographer Explainer Custodian Yearling Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 15561,153578,451378,NULL,NULL,NULL,0,NULL,NULL 15562,744222,1200864,Informed,NULL,NULL,0,NULL,NULL 15563,320853,423479,NULL,NULL,NULL,0,NULL,NULL 15564,236306,846902,Notable Question Popular Question Popular Question Caucus Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 15565,189983,322778,NULL,NULL,NULL,0,NULL,NULL 15566,169856,453275,Popular Question,NULL,NULL,0,NULL,NULL 15567,172581,1020906,NULL,NULL,NULL,0,NULL,NULL 15568,323586,1509584,NULL,NULL,NULL,0,NULL,NULL 15569,23352,44196,Commentator Self-Learner Caucus Popular Question Constituent Custodian Yearling Nice Answer Nice Answer Enthusiast Informed Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 15570,9804922,524072,NULL,NULL,NULL,0,NULL,NULL 15571,312090,524072,NULL,NULL,NULL,0,NULL,NULL 15572,1508069,1116782,Critic Caucus Constituent Good Question,NULL,NULL,0,NULL,NULL 15573,70512,1159707,Teacher,NULL,NULL,0,NULL,NULL 15574,61477,1229777,NULL,NULL,NULL,0,NULL,NULL 15575,219921,771143,Supporter,NULL,NULL,0,NULL,NULL 15576,832842,1274538,Notable Question Popular Question Popular Question Famous Question Nice Question Critic,NULL,NULL,0,NULL,NULL 15577,10023777,685763,NULL,NULL,NULL,0,NULL,NULL 15578,334746,685763,NULL,NULL,NULL,0,NULL,NULL 15579,246572,517969,NULL,NULL,NULL,0,NULL,NULL 15580,583742,1397119,NULL,NULL,NULL,0,NULL,NULL 15581,155072,462396,Popular Question,NULL,NULL,0,NULL,NULL 15582,35014,183735,Nice Question Notable Question Informed Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 15583,397223,627569,Yearling Nice Answer Notable Question Popular Question Guru Notable Question Caucus Yearling Great Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Caucus Promoter Custodian Benefactor Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15584,311566,1020977,Yearling Guru,NULL,NULL,0,NULL,NULL 15585,24125,1008762,Nice Answer Enlightened Yearling Necromancer Caucus Revival Peer Pressure Custodian Yearling Necromancer Revival Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 15586,8385861,490754,NULL,NULL,NULL,0,NULL,NULL 15587,1022055,490754,NULL,NULL,NULL,0,NULL,NULL 15588,236126,381116,Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 15589,959256,1478786,NULL,NULL,NULL,0,NULL,NULL 15590,60083,1218832,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15591,465842,1416809,NULL,NULL,NULL,0,NULL,NULL 15592,4384,876892,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 15593,178987,1293435,NULL,NULL,NULL,0,NULL,NULL 15594,94330,1144542,Enthusiast,NULL,NULL,0,NULL,NULL 15595,552300,1110823,Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 15596,1150018,661837,Famous Question,NULL,NULL,0,NULL,NULL 15597,227337,787842,Yearling Popular Question Revival Nice Question Notable Question Notable Question Popular Question Yearling Famous Question Nice Question Announcer Popular Question Good Question Announcer Famous Question,NULL,pI enjoy to anwer of larsreed but complite code ready to use ppre require server when and emacs major version 23 equal window system w32 defun server ensure safe dir dir Noop Suppress error directory emacs server is unsafe on windows server start prepI discass this issue in my blog article href http brain break blogspot com 2009 08 when moving from gnu emacs 22 html rel noreferrer http brain break blogspot com 2009 08 when moving from gnu emacs 22 html ppAlso note that in 2009 09 19 fixed bug 4197 about server ensure safe dir so in incoming Emacs 23 this workaround is not needed ppUnder recently released Emacs 23 have such warning ppWarning server Using code emacs server code to store Emacs server authentication files Directories on FAT32 filesystems are NOT secure against tampering See variable codeserver auth dir code for details ppTo fix this as say warning you can point server auth dir to NTFS partition code APPDATA code usually located Windows code SYSTEMDRIVE code and user usually format system drive as NTFS partition ppre require server when and eq window system w32 file exists getenv APPDATA setq server auth dir concat getenv APPDATA emacs server make directory server auth dir server start pre This is the only solution which works for me Emacs 24 on Win7 64 installed via Chocolatey,0,NULL,NULL 15598,805571,916876,Teacher Revival,NULL,NULL,0,NULL,NULL 15599,224466,561816,NULL,NULL,NULL,0,NULL,NULL 15600,128529,659935,NULL,NULL,NULL,0,NULL,NULL 15601,589987,1038369,Guru Announcer Nice Answer Enlightened Caucus Yearling Constituent Caucus Constituent Nice Answer Custodian Yearling Nice Answer Enlightened Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 15602,885885,1244272,NULL,NULL,NULL,0,NULL,NULL 15603,21415,343287,NULL,NULL,NULL,0,NULL,NULL 15604,414677,1161818,Supporter,NULL,NULL,0,NULL,NULL 15605,310195,220559,Notable Question Yearling Yearling Benefactor Yearling,NULL,NULL,0,NULL,NULL 15606,179657,474909,NULL,NULL,NULL,0,NULL,NULL 15607,44117,150383,NULL,NULL,NULL,0,NULL,NULL 15608,96164,337110,Disciplined,NULL,NULL,0,NULL,NULL 15609,505887,224286,Nice Answer Necromancer Nice Answer Enlightened Yearling Notable Question Guru Nice Answer Peer Pressure Documentation User Good Answer Yearling,NULL,NULL,0,NULL,NULL 15610,36734,770148,NULL,NULL,NULL,0,NULL,NULL 15611,54379,530177,Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 15612,614272,971983,Teacher,NULL,NULL,0,NULL,NULL 15613,1521364,1196073,NULL,NULL,NULL,0,NULL,NULL 15614,1969626,1207034,NULL,NULL,NULL,0,NULL,NULL 15615,30749,660234,NULL,NULL,NULL,0,NULL,NULL 15616,128515,785998,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15617,459019,614112,Notable Question Notable Question Necromancer Notable Question Nice Question Good Question Notable Question Famous Question Good Question Nice Question Nice Question Notable Question Proofreader Good Question Popular Question Famous Question Good Answer Necromancer Yearling php Investor Famous Question Altruist Fanatic Nice Answer Necromancer Nice Answer Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Necromancer Popular Question Necromancer Great Question Good Answer javascript Nice Answer Revival Popular Question laravel Popular Question Nice Question Popular Question Revival Favorite Question Popular Question reactjs Nice Question Popular Question Necromancer Notable Question Popular Question Necromancer Necromancer Taxonomist Popular Question Nice Answer Nice Answer Great Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Answer Yearling Necromancer Notable Question Nice Answer Nice Question Nice Answer Notable Question Necromancer Necromancer Good Answer Nice Answer Popular Question Documentation User Necromancer Nice Question Favorite Question Necromancer Nice Answer Nice Answer Nice Question Notable Question Popular Question Necromancer Notable Question Good Answer Necromancer Notable Question Good Answer Nice Answer Populist Famous Question Nice Answer Informed Revival Nice Question Good Answer Notable Question Necromancer Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Necromancer Popular Question Nice Answer Enlightened Notable Question Popular Question Famous Question Yearling Guru Notable Question Good Answer Necromancer Nice Answer Good Answer Popular Question Notable Question Notable Question Nice Answer Nice Answer Notable Question Revival,NULL,h1Step by Step example using FontAwesome h1h2 emIncluding color and custom post types em h2h31 Pick an icon h3ulliGoto href http fontawesome io icons rel noreferrer http fontawesome io icons liliPick an icon have chosen fa flask for this example li ulh32 Get the SVG h3ulliGoto href https github com encharm Font Awesome SVG PNG tree master black svg rel noreferrer https github com encharm Font Awesome SVG PNG tree master black svg liliFind the icon it will be the name without the codefa code prefix in my case that is flask svg liliClick the icon then click Raw in Github li ulh3Bring the SVG into Wordpress h3ulli pInside your codefunctions php code where you register your custom post type add the following snippet ppre codeadd action init my init function my init register post type labs label gt Labs ect menu icon gt data image svg xml base64 base64 encode lt svg width 20 height 20 viewBox 1792 1792 xmlns http www w3 org 2000 svg gt lt path fill black M1591 1448q56 89 21 152 5t 140 63 5h 1152q 106 140 63 5t21 152 5l503 793v 399h 64q 26 45 19t 19 45 19 45 45 19h512q26 45 19t19 45 19 45 45 19h 64v399zm 779 725l 272 429h712l 272 429 20 31v 436h 128v436z gt lt svg gt code pre li ulp strongImportant notes strong pulliThe contents of codebase64 encode code is the copied raw string from Font Awesomes github page liliYou need to change two small things within the svg string ulli1 Add codefill black code attribute to the path elements this allows the color to be change by Wordpress lili2 optional Change the width and height to 20 as this is the admin width height size and seems to result it crisper result li ul li ulp href https stack imgur com Roazu png rel noreferrer img src https stack imgur com Roazu png alt enter image description here Nice tip web about the color you re absolutely right h1Step by Step example using FontAwesome h1h2 emIncluding color and custom post types em h2h31 Pick an icon h3ulliGoto href http fontawesome io icons rel noreferrer http fontawesome io icons liliPick an icon have chosen fa flask for this example li ulh32 Get the SVG h3ulliGoto href https github com encharm Font Awesome SVG PNG tree master black svg rel noreferrer https github com encharm Font Awesome SVG PNG tree master black svg liliFind the icon it will be the name without the codefa code prefix in my case that is flask svg liliClick the icon then click Raw in Github li ulh3Bring the SVG into Wordpress h3ulli pInside your codefunctions php code where you register your custom post type add the following snippet ppre codeadd action init my init function my init register post type labs label gt Labs ect menu icon gt data image svg xml base64 base64 encode lt svg width 20 height 20 viewBox 1792 1792 xmlns http www w3 org 2000 svg gt lt path fill black M1591 1448q56 89 21 152 5t 140 63 5h 1152q 106 140 63 5t21 152 5l503 793v 399h 64q 26 45 19t 19 45 19 45 45 19h512q26 45 19t19 45 19 45 45 19h 64v399zm 779 725l 272 429h712l 272 429 20 31v 436h 128v436z gt lt svg gt code pre li ulp strongImportant notes strong pulliThe contents of codebase64 encode code is the copied raw string from Font Awesomes github page liliYou need to change two small things within the svg string ulli1 Add codefill black code attribute to the path elements this allows the color to be change by Wordpress lili2 optional Change the width and height to 20 as this is the admin width height size and seems to result it crisper result li ul li ulp href https stack imgur com Roazu png rel noreferrer img src https stack imgur com Roazu png alt enter image description here You will need to post link or screenshot of the rendered dom and css h1Step by Step example using FontAwesome h1h2 emIncluding color and custom post types em h2h31 Pick an icon h3ulliGoto href http fontawesome io icons rel noreferrer http fontawesome io icons liliPick an icon have chosen fa flask for this example li ulh32 Get the SVG h3ulliGoto href https github com encharm Font Awesome SVG PNG tree master black svg rel noreferrer https github com encharm Font Awesome SVG PNG tree master black svg liliFind the icon it will be the name without the codefa code prefix in my case that is flask svg liliClick the icon then click Raw in Github li ulh3Bring the SVG into Wordpress h3ulli pInside your codefunctions php code where you register your custom post type add the following snippet ppre codeadd action init my init function my init register post type labs label gt Labs ect menu icon gt data image svg xml base64 base64 encode lt svg width 20 height 20 viewBox 1792 1792 xmlns http www w3 org 2000 svg gt lt path fill black M1591 1448q56 89 21 152 5t 140 63 5h 1152q 106 140 63 5t21 152 5l503 793v 399h 64q 26 45 19t 19 45 19 45 45 19h512q26 45 19t19 45 19 45 45 19h 64v399zm 779 725l 272 429h712l 272 429 20 31v 436h 128v436z gt lt svg gt code pre li ulp strongImportant notes strong pulliThe contents of codebase64 encode code is the copied raw string from Font Awesomes github page liliYou need to change two small things within the svg string ulli1 Add codefill black code attribute to the path elements this allows the color to be change by Wordpress lili2 optional Change the width and height to 20 as this is the admin width height size and seems to result it crisper result li ul li ulp href https stack imgur com Roazu png rel noreferrer img src https stack imgur com Roazu png alt enter image description here Thats good to here You can change them but typically they are generated from the application that created the icon like Illustrator In react router v4 how does one link to fragment identifier javascript reactjs react router pGiven the very simple page having assumed React and react router have been imported ppre code Current location example com about lt Link to about the team gt See the team lt Link gt loads of content lt id the team gt lt gt code prepI would expect the above upon clicking See the team would scroll down to the id ed team anchor The url correctly updates to codeexample com about the team code but it doesn scroll down ppI have tried alternatives such as code lt name the team gt lt gt code but believe this is no longer spec nor does it work ppThere are plenty of work arounds on github for react router but they rely on the update callback present on BrowserRouter that is no longer present in v4 Looks like it relies on react router In react router v4 how does one link to fragment identifier javascript reactjs react router pGiven the very simple page having assumed React and react router have been imported ppre code Current location example com about lt Link to about the team gt See the team lt Link gt loads of content lt id the team gt lt gt code prepI would expect the above upon clicking See the team would scroll down to the id ed team anchor The url correctly updates to codeexample com about the team code but it doesn scroll down ppI have tried alternatives such as code lt name the team gt lt gt code but believe this is no longer spec nor does it work ppThere are plenty of work arounds on github for react router but they rely on the update callback present on BrowserRouter that is no longer present in v4 The issue being that React Router v4 doesn have onUpdate callbacks,1,In react router v4 how does one link to fragment identifier javascript reactjs react router pGiven the very simple page having assumed React and react router have been imported ppre code Current location example com about lt Link to about the team gt See the team lt Link gt loads of content lt id the team gt lt gt code prepI would expect the above upon clicking See the team would scroll down to the id ed team anchor The url correctly updates to codeexample com about the team code but it doesn scroll down ppI have tried alternatives such as code lt name the team gt lt gt code but believe this is no longer spec nor does it work ppThere are plenty of work arounds on github for react router but they rely on the update callback present on BrowserRouter that is no longer present in v4,Custom svg admin menu icon in WordPress css svg wordpress pI really counting on your help in this one searched lot and found no solution want to have custom icon for my plugin in admin menu and want it to integrate well with the color scheme ppI looked here href https codex wordpress org Function Reference add menu page rel nofollow noreferrer https codex wordpress org Function Reference add menu page aUnder code icon url code pblockquote WP If data image svg xml base64 the specified SVG data image is used as CSS background blockquotepHowever if put URL to an SVG icon there all get is an img with SVG in its src attribute so it doesn integrate at all with the color scheme It supposed to be CSS background ppAlso don understand this codedata image svg xml base64 code What does it mean exactly ppI tried embedding inline SVG in the code icon url code but obviously it won work but just had to try it ppDashicons are not an option there no icon there suitable for my project h1Step by Step example using FontAwesome h1h2 emIncluding color and custom post types em h2h31 Pick an icon h3ulliGoto href http fontawesome io icons rel noreferrer http fontawesome io icons liliPick an icon have chosen fa flask for this example li ulh32 Get the SVG h3ulliGoto href https github com encharm Font Awesome SVG PNG tree master black svg rel noreferrer https github com encharm Font Awesome SVG PNG tree master black svg liliFind the icon it will be the name without the codefa code prefix in my case that is flask svg liliClick the icon then click Raw in Github li ulh3Bring the SVG into Wordpress h3ulli pInside your codefunctions php code where you register your custom post type add the following snippet ppre codeadd action init my init function my init register post type labs label gt Labs ect menu icon gt data image svg xml base64 base64 encode lt svg width 20 height 20 viewBox 1792 1792 xmlns http www w3 org 2000 svg gt lt path fill black M1591 1448q56 89 21 152 5t 140 63 5h 1152q 106 140 63 5t21 152 5l503 793v 399h 64q 26 45 19t 19 45 19 45 45 19h512q26 45 19t19 45 19 45 45 19h 64v399zm 779 725l 272 429h712l 272 429 20 31v 436h 128v436z gt lt svg gt code pre li ulp strongImportant notes strong pulliThe contents of codebase64 encode code is the copied raw string from Font Awesomes github page liliYou need to change two small things within the svg string ulli1 Add codefill black code attribute to the path elements this allows the color to be change by Wordpress lili2 optional Change the width and height to 20 as this is the admin width height size and seems to result it crisper result li ul li ulp href https stack imgur com Roazu png rel noreferrer img src https stack imgur com Roazu png alt enter image description here 15618,103323,127419,NULL,NULL,NULL,0,NULL,NULL 15619,401995,1231384,Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 15620,311812,975118,NULL,NULL,NULL,0,NULL,NULL 15621,106877,470801,NULL,NULL,NULL,0,NULL,NULL 15622,97595,217490,Yearling Revival,NULL,NULL,0,NULL,NULL 15623,10485,459736,Scholar Caucus Constituent,NULL,NULL,0,NULL,NULL 15624,342484,1231451,Famous Question Yearling Popular Question Documentation User Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 15625,464289,23402,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 15626,291285,623307,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 15627,166479,66720,Yearling,NULL,NULL,0,NULL,NULL 15628,336707,470837,Popular Question,NULL,NULL,0,NULL,NULL 15629,90805,115603,NULL,NULL,NULL,0,NULL,NULL 15630,234744,616814,Nice Question Famous Question Not a Robot Informed,NULL,NULL,0,NULL,NULL 15631,62328,663535,NULL,NULL,NULL,0,NULL,NULL 15632,76473,267945,Popular Question Yearling,NULL,NULL,0,NULL,NULL 15633,255253,1167508,NULL,NULL,NULL,0,NULL,NULL 15634,2064863,1167508,NULL,NULL,NULL,0,NULL,NULL 15635,8741847,1167508,NULL,NULL,NULL,0,NULL,NULL 15636,168973,440053,NULL,NULL,NULL,0,NULL,NULL 15637,164807,263727,NULL,NULL,NULL,0,NULL,NULL 15638,712259,317879,NULL,NULL,NULL,0,NULL,NULL 15639,110663,946115,NULL,NULL,NULL,0,NULL,NULL 15640,447903,450844,Revival Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 15641,1069286,989530,Teacher Supporter,NULL,NULL,0,NULL,NULL 15642,1428983,1403046,Announcer Yearling Nice Answer Nice Question Announcer Nice Answer Enlightened Yearling Yearling,NULL,pInitialization in Swift with inheritance is kind of tricky You must have all your child object instance variables instantiated before you can call codesuper init code and yet you need to call codesuper init code before you can call methods on the codeself code object ppMy suggestion is to give codeuuid code temporary value before you call codesuper init code and then generate the codeuuid code with your instance method afterwards ppre codeclass Device Serializable var uuid String override init First you need to initialize this classes instance variables This feels little silly to put in temporary value but if you don want to use an optional then it is necessary self uuid Next you need to initialize super before you can use the self object super init Since you are calling createUUID you are calling an instance method on the self object Your object must call super init before you can do so self uuid self createUUID func createUUID gt String return XXX2 code prep href https developer apple com library ios documentation Swift Conceptual Swift Programming Language Initialization html apple ref doc uid TP40014097 CH18 ID216 rel nofollow Here is the reference for initialization in Swift on classes that inherit from other classes It is pretty long but you can summarize it as ppre codeoverride init Make sure all instance variables for the child class are instantiated super init Do other initialization that requires the self object here code prepBut you can also read about convenience initializers there too which are pretty handy Sure but the asker issue with initialization is kind of chicken and egg problem You can call an instance method until it initialized but you can initialize it without calling an instance method Unless you want to use implicitly unwrapped optionals this is what you ve gotta do lazy variable could work too,0,NULL,NULL 15643,797132,28973,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15644,42508,522950,Notable Question,NULL,NULL,0,NULL,NULL 15645,279143,1120593,NULL,NULL,NULL,0,NULL,NULL 15646,197616,1279967,NULL,NULL,NULL,0,NULL,NULL 15647,246664,526165,Teacher Supporter,NULL,NULL,0,NULL,NULL 15648,581986,936469,Custodian Notable Question Popular Question Notable Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 15649,909372,10276,Notable Question Custodian Yearling Yearling Great Answer Nice Answer Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 15650,168232,51789,Yearling Popular Question Nice Answer Popular Question Famous Question Citizen Patrol Yearling Notable Question Notable Question Nice Question Popular Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15651,445749,605327,NULL,NULL,NULL,0,NULL,NULL 15652,70797,191470,Popular Question,NULL,NULL,0,NULL,NULL 15653,79880,1507709,Informed,NULL,NULL,0,NULL,NULL 15654,36343,1286669,NULL,NULL,NULL,0,NULL,NULL 15655,216236,1343031,NULL,NULL,NULL,0,NULL,NULL 15656,54211,518251,Nice Answer Great Answer Necromancer Yearling Great Answer Nice Answer Yearling android Organizer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 15657,3122013,973494,NULL,NULL,NULL,0,NULL,NULL 15658,409694,973494,NULL,NULL,NULL,0,NULL,NULL 15659,504780,797444,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15660,36611,528436,Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 15661,158114,1014373,Good Answer Yearling Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15662,113942,1475960,NULL,NULL,NULL,0,NULL,NULL 15663,346734,1054400,NULL,NULL,NULL,0,NULL,NULL 15664,323637,560314,NULL,NULL,NULL,0,NULL,NULL 15665,86162,210809,Nice Question Yearling Stellar Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 15666,105968,1184880,NULL,NULL,NULL,0,NULL,NULL 15667,535775,217070,NULL,NULL,NULL,0,NULL,NULL 15668,353265,563663,Notable Question,NULL,Failing to subclass builtin String object javascript ecmascript subclassing built in es2015 pI ve been experimenting with subclassing the built in String object in ES2015 using Node running the code untranspiled using bunch of harmony flags Here the full command codenode harmony harmony modules harmony destructuring harmony rest parameters harmony arrow functions harmony spreadcalls harmony object harmony default parameters harmony new target harmony reflect harmony modules js code ppGiven that the spec specifically says the String object is made to be subclassable See section code21 The String Constructor code struggling to understand if this is something that doing wrong or bug in Node or maybe even V8 ppThe code to reproduce the issue follows ppre code use strict class Str extends String capitalize return this slice toUpperCase this slice var new Str asdf console log constructor Function String console log proto String console log capitalize TypeError capitalize is not function code prepThe code above demonstrates that the prototype chain isn being setup as would expect However if manually fix the code proto code using the code below everything works correctly pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override code use strict xD xD class Str extends String xD constructor args xD super args xD Object setPrototypeOf this new target prototype xD xD xD capitalize xD return this slice toUpperCase this slice xD xD xD xD var new Str asdf xD console log constructor xD Function Str xD xD console log proto xD Str xD xD console log capitalize xD Asdf code pre xD div xD div xD ppI really curious to know why the inheritance is not working as expect don need to capture it explicitly ES6 calls the super constructor automatically when an inheriting constructor is not supplied Failing to subclass builtin String object javascript ecmascript subclassing built in es2015 pI ve been experimenting with subclassing the built in String object in ES2015 using Node running the code untranspiled using bunch of harmony flags Here the full command codenode harmony harmony modules harmony destructuring harmony rest parameters harmony arrow functions harmony spreadcalls harmony object harmony default parameters harmony new target harmony reflect harmony modules js code ppGiven that the spec specifically says the String object is made to be subclassable See section code21 The String Constructor code struggling to understand if this is something that doing wrong or bug in Node or maybe even V8 ppThe code to reproduce the issue follows ppre code use strict class Str extends String capitalize return this slice toUpperCase this slice var new Str asdf console log constructor Function String console log proto String console log capitalize TypeError capitalize is not function code prepThe code above demonstrates that the prototype chain isn being setup as would expect However if manually fix the code proto code using the code below everything works correctly pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override code use strict xD xD class Str extends String xD constructor args xD super args xD Object setPrototypeOf this new target prototype xD xD xD capitalize xD return this slice toUpperCase this slice xD xD xD xD var new Str asdf xD console log constructor xD Function Str xD xD console log proto xD Str xD xD console log capitalize xD Asdf code pre xD div xD div xD ppI really curious to know why the inheritance is not working as expect suspect that could be the case however subclassing Array for example works as intended The reason instanceof is failing is the incorrect prototype chain as mention in the question If you try instanceof on the second example it ll work correctly because force the prototype chain to be correct Failing to subclass builtin String object javascript ecmascript subclassing built in es2015 pI ve been experimenting with subclassing the built in String object in ES2015 using Node running the code untranspiled using bunch of harmony flags Here the full command codenode harmony harmony modules harmony destructuring harmony rest parameters harmony arrow functions harmony spreadcalls harmony object harmony default parameters harmony new target harmony reflect harmony modules js code ppGiven that the spec specifically says the String object is made to be subclassable See section code21 The String Constructor code struggling to understand if this is something that doing wrong or bug in Node or maybe even V8 ppThe code to reproduce the issue follows ppre code use strict class Str extends String capitalize return this slice toUpperCase this slice var new Str asdf console log constructor Function String console log proto String console log capitalize TypeError capitalize is not function code prepThe code above demonstrates that the prototype chain isn being setup as would expect However if manually fix the code proto code using the code below everything works correctly pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override code use strict xD xD class Str extends String xD constructor args xD super args xD Object setPrototypeOf this new target prototype xD xD xD capitalize xD return this slice toUpperCase this slice xD xD xD xD var new Str asdf xD console log constructor xD Function Str xD xD console log proto xD Str xD xD console log capitalize xD Asdf code pre xD div xD div xD ppI really curious to know why the inheritance is not working as expect resisting opening this as an issue in Node because it could just be that Node is using an incomplete buggy version of V8 and it could already be resolved OTH it could be something don know about inheriting from String Failing to subclass builtin String object javascript ecmascript subclassing built in es2015 pI ve been experimenting with subclassing the built in String object in ES2015 using Node running the code untranspiled using bunch of harmony flags Here the full command codenode harmony harmony modules harmony destructuring harmony rest parameters harmony arrow functions harmony spreadcalls harmony object harmony default parameters harmony new target harmony reflect harmony modules js code ppGiven that the spec specifically says the String object is made to be subclassable See section code21 The String Constructor code struggling to understand if this is something that doing wrong or bug in Node or maybe even V8 ppThe code to reproduce the issue follows ppre code use strict class Str extends String capitalize return this slice toUpperCase this slice var new Str asdf console log constructor Function String console log proto String console log capitalize TypeError capitalize is not function code prepThe code above demonstrates that the prototype chain isn being setup as would expect However if manually fix the code proto code using the code below everything works correctly pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override code use strict xD xD class Str extends String xD constructor args xD super args xD Object setPrototypeOf this new target prototype xD xD xD capitalize xD return this slice toUpperCase this slice xD xD xD xD var new Str asdf xD console log constructor xD Function Str xD xD console log proto xD Str xD xD console log capitalize xD Asdf code pre xD div xD div xD ppI really curious to know why the inheritance is not working as expect ᴍɪʀ indeed It seems to have been bug in V8 so my original answer is correct for fixing it in prior versions Thanks for the heads up,1,Failing to subclass builtin String object javascript ecmascript subclassing built in es2015 pI ve been experimenting with subclassing the built in String object in ES2015 using Node running the code untranspiled using bunch of harmony flags Here the full command codenode harmony harmony modules harmony destructuring harmony rest parameters harmony arrow functions harmony spreadcalls harmony object harmony default parameters harmony new target harmony reflect harmony modules js code ppGiven that the spec specifically says the String object is made to be subclassable See section code21 The String Constructor code struggling to understand if this is something that doing wrong or bug in Node or maybe even V8 ppThe code to reproduce the issue follows ppre code use strict class Str extends String capitalize return this slice toUpperCase this slice var new Str asdf console log constructor Function String console log proto String console log capitalize TypeError capitalize is not function code prepThe code above demonstrates that the prototype chain isn being setup as would expect However if manually fix the code proto code using the code below everything works correctly pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override code use strict xD xD class Str extends String xD constructor args xD super args xD Object setPrototypeOf this new target prototype xD xD xD capitalize xD return this slice toUpperCase this slice xD xD xD xD var new Str asdf xD console log constructor xD Function Str xD xD console log proto xD Str xD xD console log capitalize xD Asdf code pre xD div xD div xD ppI really curious to know why the inheritance is not working as expect,NULL 15669,312174,1447649,Popular Question,NULL,NULL,0,NULL,NULL 15670,519098,579027,NULL,NULL,NULL,0,NULL,NULL 15671,114509,824876,NULL,NULL,NULL,0,NULL,NULL 15672,40928,304096,NULL,NULL,NULL,0,NULL,NULL 15673,176671,216860,Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 15674,215434,1229620,NULL,NULL,NULL,0,NULL,NULL 15675,514126,266269,NULL,NULL,NULL,0,NULL,NULL 15676,1510734,1457112,NULL,NULL,NULL,0,NULL,NULL 15677,1288435,975095,Scholar Supporter Editor,NULL,NULL,0,NULL,NULL 15678,8437,1556209,NULL,NULL,NULL,0,NULL,NULL 15679,13010,160854,NULL,NULL,NULL,0,NULL,NULL 15680,195641,233792,Nice Question Popular Question Popular Question Custodian Nice Answer Enlightened Promoter Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Question Enlightened Revival Caucus Revival Yearling Famous Question Nice Answer Famous Question Nice Answer Caucus Notable Question Nice Answer Documentation User Nice Question Yearling Good Answer Custodian Good Answer Good Question,NULL,NULL,0,NULL,NULL 15681,135091,1162838,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 15682,180943,273637,Necromancer Yearling Necromancer Popular Question Necromancer Nice Answer Enlightened Explainer Great Answer Necromancer Revival Notable Question Good Answer Nice Question Notable Question Great Question Nice Question Popular Question Good Answer Nice Question Yearling Custodian Necromancer Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Caucus Notable Question Documentation User Notable Question Nice Answer Good Question Yearling Notable Question Nice Answer Necromancer Great Question Revival Famous Question Famous Question Stellar Question Necromancer Nice Question Popular Question Great Answer Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 15683,54752,1238316,NULL,NULL,NULL,0,NULL,NULL 15684,3928567,1238316,NULL,NULL,NULL,0,NULL,NULL 15685,714439,1238316,NULL,NULL,NULL,0,NULL,NULL 15686,124434,13,Guru Nice Answer Great Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer lisp Nice Answer Nice Question Great Answer Good Answer Nice Answer Enlightened Guru Good Answer Great Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Populist Yearling Nice Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Caucus Good Answer Guru algorithm Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer windows Announcer Nice Answer Enlightened Guru Census Great Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Guru Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Popular Question Announcer Announcer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Caucus Yearling Good Answer Nice Answer Good Answer Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Census Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Caucus Good Answer Guru Good Answer Nice Question Nice Answer Nice Answer Enlightened Good Answer Investor Guru Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Yearling Nice Answer Enlightened Great Answer Great Answer Guru Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 15687,147926,687939,NULL,NULL,NULL,0,NULL,NULL 15688,166980,1229713,NULL,NULL,NULL,0,NULL,NULL 15689,10003755,184820,Supporter,NULL,NULL,0,NULL,NULL 15690,313235,184820,Supporter,NULL,,0,, 15691,57686,91486,NULL,NULL,NULL,0,NULL,NULL 15692,167249,91911,Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 15693,1677350,863685,Teacher Popular Question,NULL,NULL,0,NULL,NULL 15694,331331,1101579,Yearling Nice Question Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 15695,136140,831215,NULL,NULL,NULL,0,NULL,NULL 15696,560993,8453,Good Answer Good Answer Good Question Yearling Favorite Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 15697,857775,1317605,NULL,NULL,NULL,0,NULL,NULL 15698,857802,1317605,NULL,NULL,NULL,0,NULL,NULL 15699,317376,1111018,Yearling Popular Question Guru Notable Question,NULL,NULL,0,NULL,NULL 15700,1228376,441753,NULL,NULL,NULL,0,NULL,NULL 15701,292599,353855,NULL,NULL,NULL,0,NULL,NULL 15702,132070,1441884,Informed Teacher,NULL,NULL,0,NULL,NULL 15703,10991,1082416,NULL,NULL,NULL,0,NULL,NULL 15704,280402,680020,NULL,NULL,NULL,0,NULL,NULL 15705,428225,194901,Good Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 15706,7917,162820,NULL,NULL,NULL,0,NULL,NULL 15707,282028,482187,NULL,NULL,NULL,0,NULL,NULL 15708,302604,244903,Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 15709,401146,840171,NULL,NULL,NULL,0,NULL,NULL 15710,667964,1217905,NULL,NULL,NULL,0,NULL,NULL 15711,102294,1146782,NULL,NULL,NULL,0,NULL,NULL 15712,168387,481544,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15713,162120,461262,NULL,NULL,NULL,0,NULL,NULL 15714,545356,910844,Good Answer Nice Answer Good Answer Yearling Mortarboard Great Answer Nice Answer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 15715,165040,877425,Notable Question Popular Question Yearling Nice Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 15716,249207,920462,Informed Yearling,NULL,NULL,0,NULL,NULL 15717,84761,937427,Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 15718,214470,406905,Yearling,NULL,NULL,0,NULL,NULL 15719,166077,897414,Custodian Yearling Announcer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15720,880938,1129980,Editor Citizen Patrol,NULL,NULL,0,NULL,NULL 15721,104245,590069,NULL,NULL,NULL,0,NULL,NULL 15722,1130370,1273763,NULL,NULL,NULL,0,NULL,NULL 15723,82267,1273763,NULL,NULL,NULL,0,NULL,NULL 15724,1308425,609748,NULL,NULL,NULL,0,NULL,NULL 15725,29179,630716,Yearling Yearling Great Question Nice Answer Nice Answer Enlightened Yearling Cleanup,NULL,NULL,0,NULL,NULL 15726,70517,618068,Notable Question Nice Answer Yearling Notable Question Notable Question Notable Question Notable Question Good Question Popular Question Famous Question Nice Question Notable Question Notable Question Yearling Necromancer Notable Question Notable Question Nice Answer Popular Question Notable Question Famous Question Necromancer Caucus Popular Question Popular Question Nice Answer Popular Question Nice Question Revival Notable Question Necromancer Nice Answer Necromancer Yearling Famous Question c++ Nice Question Notable Question Good Answer Notable Question,NULL,answer works great until you use the new RSpec codeexpect code syntax ppPutting this into coderails helper rb code works for me ppre codeFactoryGirl SyntaxRunner class eval do include RSpec Mocks ExampleMethodsend code prepIn the OP example you can now do ppre codeFactoryGirl define do factory cimg for testing tags do Factory attributes after build do cimg allow cimg to receive validate img true end endend code prepCredit github com printercu see href https github com thoughtbot factory girl issues 703 issuecomment 83960003 rel noreferrer https github com thoughtbot factory girl issues 703 issuecomment 83960003 Note that FactoryGirl is now FactoryBot so those two names should change in your example,1,NULL,Cmake cannot find library using link directories cmake makefile pI Ubuntu am learning about cmake and make and just trying simple example have two directories codesrc code and codebuild code In codesrc code have two files codemain cpp code and codeCMakeLists txt code which has only the following text ppre codeadd executable test main cpp link directories usr lib x86 64 linux gnu target link libraries test protobuf code prepIn code usr lib x86 64 linux gnu code there is shared library called codelibprotobuf so code which want to link against My codemain cpp code uses functions in this library by including the releveant header file code include lt google protobuf message gt code ppNow in my codebuild code directory run codecmake src code and then codemake code However then get linker errors telling me that there are undefined references to some of the functions in the protobuf library If do search through all the files and subdirectories in codebuild code there is not mention of anything related to protobuf ppHowever if remove the codelink directories code line in my codeCMakeLists txt code file and instead write the full path to the library when specifying the executable codetarget link libraries test usr lib x86 64 linux gnu libprotobuf so code it compiles and links fine ppWhy is codelink directories code not allowing cmake to find this library pMake sure that your call to codelink directories code takes place strongbefore your call strong to the relevant codeadd executable code ppI had mistakenly believed it only needed to be before the call to codetarget link libraries code but that not the case After moving the call the library is linked properly 15727,266753,646385,Famous Question Notable Question Yearling Popular Question Nice Question Famous Question Famous Question Nice Answer Good Question,NULL,NULL,0,NULL,NULL 15728,10584,313330,Editor Teacher Supporter Student Scholar,NULL,NULL,0,NULL,NULL 15729,148857,847102,Critic Excavator Notable Question Yearling,NULL,NULL,0,NULL,NULL 15730,7251,918402,NULL,NULL,NULL,0,NULL,NULL 15731,54266,813655,NULL,NULL,NULL,0,NULL,NULL 15732,149641,263618,NULL,NULL,NULL,0,NULL,NULL 15733,383065,672879,Revival Yearling Editor Promoter Tumbleweed Necromancer Caucus Necromancer,NULL,NULL,0,NULL,NULL 15734,833683,814244,Nice Answer Caucus Critic,NULL,NULL,0,NULL,NULL 15735,45331,560848,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 15736,69100,1527951,NULL,NULL,NULL,0,NULL,NULL 15737,1213564,544708,NULL,NULL,NULL,0,NULL,NULL 15738,126174,711553,Nice Question Favorite Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 15739,420661,1095336,NULL,NULL,NULL,0,NULL,NULL 15740,596579,314896,NULL,NULL,NULL,0,NULL,NULL 15741,1978808,1297495,NULL,NULL,NULL,0,NULL,NULL 15742,668355,214634,NULL,NULL,NULL,0,NULL,NULL 15743,150551,140204,Famous Question,NULL,NULL,0,NULL,NULL 15744,430320,452388,Excavator Civic Duty Yearling Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 15745,246803,1369621,NULL,NULL,NULL,0,NULL,NULL 15746,378736,686322,NULL,NULL,NULL,0,NULL,NULL 15747,1561646,381627,NULL,NULL,NULL,0,NULL,NULL 15748,183503,470877,Yearling Nice Answer Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 15749,236045,1177799,NULL,NULL,NULL,0,NULL,NULL 15750,73358,528413,NULL,NULL,NULL,0,NULL,NULL 15751,170693,401482,Popular Question,NULL,NULL,0,NULL,NULL 15752,132936,167378,Tumbleweed Student Announcer,NULL,NULL,0,NULL,NULL 15753,364831,1207791,Excavator Yearling Citizen Patrol Nice Answer Enlightened Organizer,NULL,NULL,0,NULL,NULL 15754,242959,1550772,Famous Question Popular Question Popular Question Caucus Constituent Famous Question,NULL,NULL,0,NULL,NULL 15755,30208,624544,Notable Question Popular Question Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 15756,577076,1238257,Popular Question Popular Question Popular Question Yearling Notable Question Caucus Constituent Notable Question Self-Learner Custodian Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 15757,37105,315523,NULL,NULL,NULL,0,NULL,NULL 15758,171608,1500762,NULL,NULL,NULL,0,NULL,NULL 15759,542672,210977,Necromancer,NULL,NULL,0,NULL,NULL 15760,209346,663657,NULL,NULL,NULL,0,NULL,NULL 15761,121942,413622,Notable Question Yearling Necromancer Nice Answer Good Question Popular Question Yearling Custodian Citizen Patrol Famous Question Yearling Announcer Custodian Custodian Notable Question Census Civic Duty,NULL,NULL,0,NULL,NULL 15762,209937,640001,NULL,NULL,NULL,0,NULL,NULL 15763,26890,45813,Notable Question Popular Question Necromancer Announcer Popular Question Nice Question Nice Answer Populist Famous Question Nice Answer Notable Question Popular Question Nice Question Announcer Nice Question Yearling xcode Notable Question Famous Question Announcer Nice Question Good Answer Notable Question Revival Announcer Popular Question Popular Question Inquisitive Revival Yearling Caucus Constituent Necromancer Revival Guru Nice Answer Notable Question Necromancer Popular Question,NULL,xcodebuild No applicable devices found when exporting archive xcode rvm xcode7 xcodebuild pAs of Xcode 7† the codexcodebuild code export archive step has been giving us errors ppBuild command ppre codexcodebuild exportArchive archivePath path to Thing xcarchive exportPath path to exportOptionsPlist path to PackageOptions adhoc plist code prepyields ppre code2015 10 08 16 28 27 409 xcodebuild 62682 464728 MT IDEDistribution Step failed lt IDEDistributionThinningStep 0x7ff1a42d23f0 gt Error Domain IDEDistributionErrorDomain Code 14 No applicable devices found UserInfo 0x7ff1a72ddd80 NSLocalizedDescription No applicable devices found error exportArchive No applicable devices found Error Domain IDEDistributionErrorDomain Code 14 No applicable devices found UserInfo 0x7ff1a72ddd80 NSLocalizedDescription No applicable devices found EXPORT FAILED code prepWhat gives How to fix phrp† amp on Mavericks think you doubled your comment,0,NULL,NULL 15764,1020710,1148628,NULL,NULL,NULL,0,NULL,NULL 15765,67411,194135,Nice Answer Populist Good Answer Yearling,NULL,NULL,0,NULL,NULL 15766,886904,7510,NULL,NULL,NULL,0,NULL,NULL 15767,1840303,1204957,Popular Question,NULL,NULL,0,NULL,NULL 15768,288205,575144,Scholar,NULL,NULL,0,NULL,NULL 15769,499611,37834,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15770,511757,19235,Nice Answer Good Answer Revival Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15771,912853,964041,NULL,NULL,NULL,0,NULL,NULL 15772,765972,701388,NULL,NULL,NULL,0,NULL,NULL 15773,161858,1556967,NULL,NULL,NULL,0,NULL,NULL 15774,889091,972035,NULL,NULL,NULL,0,NULL,NULL 15775,309606,1452554,Nice Answer Yearling Necromancer,NULL,pI found couple of examples by the iText author that use the Graphics2D API and the Apache Batik library to draw the SVG in PDF pp href http itextpdf com examples iia php id 269 rel nofollow http itextpdf com examples iia php id 269 pp href http itextpdf com examples iia php id 263 rel nofollow http itextpdf com examples iia php id 263 ppFor my purposes needed to take string of SVG and draw that in PDF at certain size and location while maintaining the vector nature of the image no rasterization ppI wanted to bypass the SVG file that seems prevalent in the SAXSVGDocumentFactory createSVGDocument functions found the following post helpful for using SVG text string instead of flat file pp href http batik 2283329 n4 nabble com Parse SVG from String td3539080 html rel nofollow http batik 2283329 n4 nabble com Parse SVG from String td3539080 html pblockquote pYou have to create StringReader from your String and pass that to the SAXSVGDocumentFactory createDocument String Reader method The URI that you pass as the first parameter as String will be the base document URI of the SVG document This should only be important if your SVG references any external files pBest regards pDaniel blockquotepJava Source derived from the iText examples ppre code SVG as text string String svg lt svg gt lt svg gt Create the PDF document rootPath is the present working directory path Document document new Document PdfWriter writer PdfWriter getInstance document new FileOutputStream new File rootPath svg pdf document open Add paragraphs to the document document add new Paragraph Paragraph document add new Paragraph Boilerplate for drawing the SVG to the PDF String parser XMLResourceDescriptor getXMLParserClassName SAXSVGDocumentFactory factory new SAXSVGDocumentFactory parser UserAgent userAgent new UserAgentAdapter DocumentLoader loader new DocumentLoader userAgent BridgeContext ctx new BridgeContext userAgent loader ctx setDynamicState BridgeContext DYNAMIC GVTBuilder builder new GVTBuilder PdfContentByte cb writer getDirectContent Parse the SVG and draw it to the PDF Graphics2D g2d new PdfGraphics2D cb 725 400 SVGDocument chart factory createSVGDocument rootPath new StringReader svg GraphicsNode chartGfx builder build ctx chart chartGfx paint g2d g2d dispose Add paragraphs to the document document add new Paragraph Paragraph document add new Paragraph document close code prepNote that this will draw SVG to the PDF you are working on The SVG appears as floating layer above text still working on moving scaling it and having it rest inline with text but hopefully that is outside the immediate scope of the question ppHope this was able to help ppCheers ppEDIT was able to implement my svg as an inline object using the following The commented lines are for adding quick border to check positioning ppre codeSAXSVGDocumentFactory factory new SAXSVGDocumentFactory XMLResourceDescriptor getXMLParserClassName UserAgent userAgent new UserAgentAdapter DocumentLoader loader new DocumentLoader userAgent BridgeContext ctx new BridgeContext userAgent loader ctx setDynamicState BridgeContext DYNAMIC GVTBuilder builder new GVTBuilder SVGDocument svgDoc factory createSVGDocument rootPath new StringReader svg PdfTemplate svgTempl PdfTemplate createTemplate writer Float parseFloat svgDoc getDocumentElement getAttribute width Float parseFloat svgDoc getDocumentElement getAttribute height Graphics2D g2d new PdfGraphics2D svgTempl svgTempl getWidth svgTempl getHeight GraphicsNode chartGfx builder build ctx svgDoc chartGfx paint g2d g2d dispose Image svgImg new ImgTemplate svgTempl svgImg setAlignment Image ALIGN CENTER svgImg setBorder Image BOX svgImg setBorderColor new BaseColor 0xff 0x00 0x00 svgImg setBorderWidth document add svgImg code pre sorry but haven touched this in years since wrote the answer would imagine that was using version that was released around Sep 2012 so that would probably be iText which was released in Aug 2012 according to their GitHub releases https github com itext itextpdf releases tag Hope that helps,0,NULL,NULL 15776,52486,294270,NULL,NULL,NULL,0,NULL,NULL 15777,213463,757155,NULL,NULL,NULL,0,NULL,NULL 15778,456653,847061,Notable Question,NULL,NULL,0,NULL,NULL 15779,414870,1301535,NULL,NULL,NULL,0,NULL,NULL 15780,224965,1011680,Enthusiast Announcer,NULL,NULL,0,NULL,NULL 15781,209493,1086266,NULL,NULL,NULL,0,NULL,NULL 15782,21378,785229,Yearling Nice Question Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 15783,597084,814682,NULL,NULL,NULL,0,NULL,NULL 15784,786676,4594,Notable Question Nice Question Famous Question Self-Learner Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 15785,24017,90835,Yearling Great Answer Great Answer Yearling Good Answer Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 15786,65440,291699,NULL,NULL,NULL,0,NULL,NULL 15787,42333,150920,Revival Custodian Suffrage Vox Populi Caucus,NULL,NULL,0,NULL,NULL 15788,26710,977957,Yearling Notable Question,NULL,NULL,0,NULL,NULL 15789,403388,781976,Scholar Commentator,NULL,NULL,0,NULL,NULL 15790,168107,696340,NULL,NULL,NULL,0,NULL,NULL 15791,331793,1173909,NULL,NULL,NULL,0,NULL,NULL 15792,35671,1032110,NULL,NULL,NULL,0,NULL,NULL 15793,151421,907374,NULL,NULL,NULL,0,NULL,NULL 15794,193624,844150,Yearling Good Answer Yearling Necromancer Yearling Yearling Nice Answer Necromancer Necromancer Yearling Necromancer Great Answer,NULL,NULL,1,NULL,Convert URL parameters to JavaScript object javascript jquery url url parameters url parsing pI have string like this pp codeabc foo amp def 5Basf 5D amp xyz code ppHow can convert it into JavaScript object like this ppre code abc foo def asf xyz code pre pA concise solution ppre codelocation search slice split amp map gt split reduce obj pair gt const key value pair map decodeURIComponent return obj key value code pre 15795,238700,521859,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15796,410979,77917,Yearling Commentator Good Answer Critic Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 15797,429861,487409,NULL,NULL,NULL,0,NULL,NULL 15798,10147871,487409,NULL,NULL,NULL,0,NULL,NULL 15799,1789070,11654,Nice Answer Deputy Nice Answer Enlightened Generalist Nice Answer Enlightened Nice Answer midi Nice Answer Enlightened android Enlightened Nice Answer Enlightened Documentation Pioneer Nice Answer Guru Guru Nice Answer Enlightened c# Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Quorum Guru Nice Answer Enlightened Nice Answer Caucus Nice Answer Constituent Custodian Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened audio Nice Answer Nice Answer Enlightened sql Good Answer Census Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened triggers Guru blob Nice Answer Enlightened Good Answer Nice Answer Announcer constraints Caucus Nice Answer Enlightened Constituent Good Answer Nice Answer Steward Reviewer Nice Answer Enlightened Yearling Pundit Nice Answer Enlightened Good Answer Documentation User Nice Answer Guru python mysql Peer Pressure Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Census Good Answer Nice Answer Enlightened Announcer android-sqlite Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Nice Answer Enlightened Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened linux-device-driver Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer php Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 15800,5649,11654,Nice Answer Deputy Nice Answer Enlightened Generalist Nice Answer Enlightened Nice Answer midi Nice Answer Enlightened android Enlightened Nice Answer Enlightened Documentation Pioneer Nice Answer Guru Guru Nice Answer Enlightened c# Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Quorum Guru Nice Answer Enlightened Nice Answer Caucus Nice Answer Constituent Custodian Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened audio Nice Answer Nice Answer Enlightened sql Good Answer Census Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened triggers Guru blob Nice Answer Enlightened Good Answer Nice Answer Announcer constraints Caucus Nice Answer Enlightened Constituent Good Answer Nice Answer Steward Reviewer Nice Answer Enlightened Yearling Pundit Nice Answer Enlightened Good Answer Documentation User Nice Answer Guru python mysql Peer Pressure Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Census Good Answer Nice Answer Enlightened Announcer android-sqlite Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Nice Answer Enlightened Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened linux-device-driver Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer php Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 15801,813237,610174,Census,NULL,NULL,0,NULL,NULL 15802,1631378,425502,Curious Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15803,61803,855997,Popular Question,NULL,NULL,0,NULL,NULL 15804,258329,489070,Notable Question Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15805,7046,1231484,Yearling Yearling,NULL,NULL,0,NULL,NULL 15806,61396,135494,Famous Question Necromancer Yearling Good Answer Nice Answer Enlightened Yearling Nice Question Nice Answer Enlightened Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15807,15302,1556039,NULL,NULL,NULL,0,NULL,NULL 15808,197380,1556039,NULL,NULL,NULL,0,NULL,NULL 15809,155636,192991,NULL,NULL,NULL,0,NULL,NULL 15810,149210,433058,NULL,NULL,NULL,0,NULL,NULL 15811,1061267,374067,Student,NULL,NULL,0,NULL,NULL 15812,17885,260677,Yearling Yearling Nice Answer Nice Answer Enlightened Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15813,105545,885250,NULL,NULL,NULL,0,NULL,NULL 15814,502392,803404,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15815,184578,463012,Popular Question,NULL,NULL,0,NULL,NULL 15816,268316,1292441,Nice Answer Popular Question Yearling Notable Question Good Answer Popular Question Notable Question Necromancer Yearling Famous Question Caucus Nice Answer Enlightened Popular Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 15817,383194,798502,Notable Question Great Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Caucus Constituent Notable Question Notable Question Famous Question Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Caucus Popular Question Necromancer Nice Question Famous Question Popular Question Notable Question Custodian Favorite Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Famous Question Yearling Custodian Citizen Patrol Popular Question Custodian Famous Question Popular Question,NULL,NULL,0,NULL,NULL 15818,137735,256733,Popular Question,NULL,NULL,0,NULL,NULL 15819,639044,1038984,Informed Popular Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 15820,2746507,567779,Nice Question Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15821,234279,567779,Nice Question Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15822,1396639,567779,Nice Question Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 15823,265681,901417,Reviewer Nice Question Steward Fanatic Excavator Yearling Popular Question Self-Learner Necromancer Nice Question Caucus Constituent Famous Question Notable Question Notable Question Famous Question Notable Question Caucus Constituent Yearling Good Question Nice Question Census Famous Question Deputy Caucus Constituent Revival Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15824,461020,801304,Popular Question Popular Question Editor Popular Question,NULL,NULL,0,NULL,NULL 15825,977163,853424,Curious Famous Question Popular Question Notable Question Popular Question,NULL,rvm installation not working RVM is not function ruby rvm pI just installed RVM but can make it work have such line at the end of my code profile code file ppre code HOME rvm scripts rvm amp amp HOME rvm scripts rvm code prepI tried to run codesource profile code and restarting terminal but still when run codervm use code getting ppre codeRVM is not function selecting rubies with rvm use will not work code prepMy system is Ubuntu 11 10 Wherever one has problem with certain technology there is always hero in shining armor with precious advice to throw away that technology and install completely alternative absolutely amazing another one with no draw backs It as if asked some ruby question and that hero immediately came up with just install java,0,NULL,NULL 15826,17643,1431146,Popular Question Yearling Nice Answer Enlightened Self-Learner Good Answer Caucus Yearling Announcer Caucus Notable Question Announcer Announcer Necromancer Curious Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 15827,178507,417364,NULL,NULL,NULL,0,NULL,NULL 15828,109083,791057,NULL,NULL,NULL,0,NULL,NULL 15829,184035,684263,NULL,NULL,NULL,0,NULL,NULL 15830,423312,221468,NULL,NULL,NULL,0,NULL,NULL 15831,546956,596233,Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 15832,1112041,876963,NULL,NULL,NULL,0,NULL,NULL 15833,885227,1224563,Editor,NULL,NULL,0,NULL,NULL 15834,66414,996109,Notable Question Teacher,NULL,NULL,0,NULL,NULL 15835,6608033,245110,NULL,NULL,NULL,0,NULL,NULL 15836,485452,1323009,NULL,NULL,NULL,0,NULL,NULL 15837,501326,77784,Yearling Popular Question Popular Question Good Answer Yearling Notable Question Yearling Famous Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 15838,248728,1032234,NULL,NULL,NULL,0,NULL,NULL 15839,64346,448010,NULL,NULL,NULL,0,NULL,NULL 15840,24428,41754,Good Answer Notable Question Yearling Favorite Question Good Answer Good Answer Nice Answer Enlightened Revival Yearling Custodian Guru Good Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 15841,540671,700546,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15842,12555,29152,Famous Question Necromancer Popular Question Good Question Inquisitive Nice Question Nice Answer Notable Question Nice Answer c# Yearling Popular Question Nice Answer Necromancer Necromancer Nice Answer Enlightened Good Question Nice Answer Enlightened Popular Question Announcer Yearling Census Great Answer Good Question Good Answer Nice Answer Famous Question Necromancer Famous Question Yearling Custodian,NULL,NULL,0,NULL,NULL 15843,12153,585198,NULL,NULL,NULL,0,NULL,NULL 15844,148924,1012172,NULL,NULL,NULL,0,NULL,NULL 15845,373482,211105,Critic,NULL,NULL,0,NULL,NULL 15846,251243,510066,NULL,NULL,NULL,0,NULL,NULL 15847,121642,1193908,NULL,NULL,NULL,0,NULL,NULL 15848,61903,199490,Supporter Critic,NULL,NULL,0,NULL,NULL 15849,243483,791041,NULL,NULL,NULL,0,NULL,NULL 15850,760819,417532,NULL,NULL,NULL,0,NULL,NULL 15851,253423,417532,NULL,NULL,NULL,0,NULL,NULL 15852,232460,959471,NULL,NULL,NULL,0,NULL,NULL 15853,1356531,665650,Yearling Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 15854,233660,111065,Famous Question Notable Question Yearling Notable Question Yearling Notable Question Favorite Question Popular Question Popular Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 15855,27026,297973,Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 15856,107207,1075717,Scholar Curious Famous Question,NULL,NULL,0,NULL,NULL 15857,523055,373343,Popular Question Caucus Constituent Caucus Curious Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 15858,46695,13668,Yearling Yearling,NULL,NULL,0,NULL,NULL 15859,151887,1236987,NULL,NULL,NULL,0,NULL,NULL 15860,69991,600990,Tumbleweed,NULL,NULL,0,NULL,NULL 15861,802454,95741,Great Answer Good Answer heroku Yearling Good Answer Nice Answer Guru Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Revival Great Answer,NULL,NULL,0,NULL,NULL 15862,14426,95741,Great Answer Good Answer heroku Yearling Good Answer Nice Answer Guru Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Revival Great Answer,NULL,NULL,0,NULL,NULL 15863,122410,486871,Yearling Nice Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 15864,51071,42631,Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 15865,131883,819598,Good Answer Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Announcer Guru Yearling Nice Answer Enlightened Great Answer Great Answer Announcer Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 15866,387313,365906,Supporter,NULL,NULL,0,NULL,NULL 15867,40982,1264598,Teacher Supporter,NULL,NULL,0,NULL,NULL 15868,365651,943815,NULL,NULL,NULL,0,NULL,NULL 15869,591442,1036507,Yearling,NULL,NULL,0,NULL,NULL 15870,158584,127146,Editor,NULL,NULL,0,NULL,NULL 15871,7389724,366648,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15872,154028,592820,Nice Answer Enlightened Critic Enthusiast Caucus Caucus Announcer Yearling Revival,NULL,NULL,0,NULL,NULL 15873,1049840,74817,Good Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 15874,142098,1509512,Self-Learner Popular Question Yearling Famous Question Popular Question Notable Question Critic Nice Question Caucus Constituent Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 15875,274082,42486,Popular Question Notable Question Yearling Stellar Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 15876,902863,123681,Nice Answer Yearling Custodian Proofreader Custodian Suffrage Vox Populi Civic Duty Excavator Custodian Reviewer Quorum Explainer Organizer Caucus Constituent Strunk & White javascript Investor Electorate Fanatic Unsung Hero Custodian Yearling Documentation User Nice Answer Custodian Census Caucus Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15877,421992,419519,NULL,NULL,NULL,0,NULL,NULL 15878,477325,377248,Promoter Benefactor Yearling Curious Tumbleweed Caucus Nice Answer Yearling Necromancer Self-Learner Caucus Necromancer Nice Question,NULL,NULL,0,NULL,NULL 15879,406547,312922,Revival,NULL,NULL,0,NULL,NULL 15880,363340,540734,NULL,NULL,NULL,0,NULL,NULL 15881,220586,790561,Teacher Informed Census,NULL,NULL,0,NULL,NULL 15882,918430,191419,Popular Question Notable Question Famous Question Yearling Notable Question Popular Question Popular Question Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 15883,1361619,1334571,NULL,NULL,NULL,0,NULL,NULL 15884,444061,349962,Nice Answer Enlightened Yearling Organizer Nice Answer Enlightened Nice Answer Guru Yearling apache Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15885,164256,363252,Yearling,NULL,NULL,0,NULL,NULL 15886,3011041,363252,Yearling,NULL,NULL,0,NULL,NULL 15887,1089450,1125479,Yearling Scholar Supporter Student Yearling Yearling,NULL,NULL,0,NULL,NULL 15888,208540,454743,NULL,NULL,NULL,0,NULL,NULL 15889,532199,1563407,NULL,NULL,NULL,0,NULL,NULL 15890,87922,909119,NULL,NULL,NULL,0,NULL,NULL 15891,13995,463930,NULL,NULL,NULL,0,NULL,NULL 15892,384682,983700,NULL,NULL,NULL,0,NULL,NULL 15893,358432,1036868,NULL,NULL,NULL,0,NULL,NULL 15894,1496716,1036868,NULL,NULL,NULL,0,NULL,NULL 15895,192496,1319559,NULL,NULL,NULL,0,NULL,NULL 15896,263421,479029,NULL,NULL,NULL,0,NULL,NULL 15897,155543,960808,NULL,NULL,NULL,0,NULL,NULL 15898,380675,960808,NULL,NULL,NULL,0,NULL,NULL 15899,170629,1335370,Teacher,NULL,NULL,0,NULL,NULL 15900,2749,1182157,NULL,NULL,NULL,0,NULL,NULL 15901,20063,1184077,NULL,NULL,NULL,0,NULL,NULL 15902,777114,1249485,NULL,NULL,NULL,0,NULL,NULL 15903,434504,501764,NULL,NULL,NULL,0,NULL,NULL 15904,768359,912485,NULL,NULL,NULL,0,NULL,NULL 15905,628366,868541,Nice Answer Nice Answer Guru Yearling Necromancer Nice Answer Populist Yearling Good Answer Taxonomist Yearling Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 15906,191627,661232,Yearling Informed Popular Question Famous Question Yearling Popular Question Popular Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 15907,155496,984897,NULL,NULL,NULL,0,NULL,NULL 15908,166972,1251126,NULL,NULL,NULL,0,NULL,NULL 15909,30500,1166861,NULL,NULL,NULL,0,NULL,NULL 15910,311835,1216667,NULL,NULL,NULL,0,NULL,NULL 15911,44565,211438,Yearling Guru Nice Answer Yearling Custodian Documentation User Necromancer Yearling,NULL,NULL,0,NULL,NULL 15912,96118,238698,NULL,NULL,NULL,0,NULL,NULL 15913,26851,437542,NULL,NULL,NULL,0,NULL,NULL 15914,179448,782074,Scholar,NULL,NULL,0,NULL,NULL 15915,234763,1319355,NULL,NULL,NULL,0,NULL,NULL 15916,182769,913443,NULL,NULL,NULL,0,NULL,NULL 15917,49173,997071,NULL,NULL,NULL,0,NULL,NULL 15918,467333,1542105,NULL,NULL,NULL,0,NULL,NULL 15919,18544,247861,Yearling Guru Good Answer Nice Answer Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 15920,286578,595897,Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15921,340259,1187367,NULL,NULL,NULL,0,NULL,NULL 15922,502209,28578,Revival Necromancer Nice Answer Yearling Popular Question,NULL,pOn debian ubuntu you can resolve this by first installing the codeacl code package on the remote host like with this ansible task ppre code name install setfacl support become yes apt pkg acl code prepSame thing with redhat centos install the codeacl code package on the remote host ppre code name install setfacl support become yes yum name acl code pre Did not require reboot in my case,0,NULL,NULL 15923,390796,1133365,Documentation User,NULL,NULL,0,NULL,NULL 15924,717,1205702,Custodian Nice Answer Nice Answer Mortarboard Good Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15925,6574570,1205702,Custodian Nice Answer Nice Answer Mortarboard Good Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 15926,1339712,945730,Popular Question,NULL,NULL,0,NULL,NULL 15927,1565586,900942,Scholar Critic,NULL,NULL,0,NULL,NULL 15928,92425,388443,Necromancer Nice Question Disciplined Good Answer Yearling Nice Answer Necromancer Famous Question Yearling Notable Question Revival Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 15929,409016,720186,NULL,NULL,NULL,0,NULL,NULL 15930,13575,504733,Good Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 15931,88972,294286,NULL,NULL,NULL,0,NULL,NULL 15932,206995,557815,NULL,NULL,NULL,0,NULL,NULL 15933,41830,15875,NULL,NULL,NULL,0,NULL,NULL 15934,114583,596944,Revival,NULL,NULL,0,NULL,NULL 15935,21771,287865,NULL,NULL,NULL,0,NULL,NULL 15936,843820,6356,Popular Question Notable Question Popular Question Popular Question Custodian Nice Question Nice Question Famous Question Popular Question Notable Question Notable Question Yearling Notable Question Nice Answer Enlightened Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 15937,405197,839371,NULL,NULL,NULL,0,NULL,NULL 15938,237926,560811,Yearling,NULL,NULL,0,NULL,NULL 15939,90147,1227066,Teacher,NULL,NULL,0,NULL,NULL 15940,79442,327789,Popular Question,NULL,NULL,0,NULL,NULL 15941,29042,1348329,Commentator Critic Enthusiast Curious,NULL,NULL,0,NULL,NULL 15942,10013751,1348329,Commentator Critic Enthusiast Curious,NULL,NULL,0,NULL,NULL 15943,340247,131881,Guru Good Answer Popular Question Necromancer Necromancer Great Answer Necromancer Yearling python Necromancer Necromancer Popular Question Announcer Notable Question Great Answer Necromancer Necromancer Necromancer Nice Answer Nice Answer Revival Good Answer Populist Nice Answer Nice Answer Necromancer Necromancer Yearling Necromancer django Nice Answer Necromancer Great Answer Necromancer Famous Question Good Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 15944,738606,725496,Famous Question,NULL,NULL,0,NULL,NULL 15945,1511719,792996,NULL,NULL,NULL,0,NULL,NULL 15946,197982,560814,Yearling Great Answer Necromancer Good Answer Yearling Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 15947,64079,58,Popular Question Great Question Necromancer Great Answer Famous Question Nice Answer Necromancer Good Question Nice Question Yearling Nice Answer Great Question Notable Question Nice Question Great Question Popular Question Popular Question Necromancer Yearling Great Answer Notable Question Famous Question Good Answer Famous Question Popular Question Great Question Nice Answer Popular Question Yearling,NULL,pTo just merge the arrays without removing duplicates ph3ES5 version use codeArray concat code h3pre codevar array1 Vijendra Singh var array2 Singh Shakya var array3 array1 concat array2 Merges both arrays Vijendra Singh Singh Shakya code preh3ES6 version use href https developer mozilla org en US docs Web JavaScript Reference Operators Destructuring assignment rel noreferrer destructuring h3pre codeconst array1 Vijendra Singh const array2 Singh Shakya const array3 array1 array2 code prepSince there is no built in way to remove duplicates href http www ecma international org publications files ECMA ST Ecma 262 pdf rel noreferrer ECMA 262 actually has codeArray forEach code which would be great for this we have to do it manually ppre codeArray prototype unique function var this concat for var lt length for var lt length if splice return code prepThen to use it ppre codevar array1 Vijendra Singh var array2 Singh Shakya Merges both arrays and gets unique itemsvar array3 array1 concat array2 unique code prepThis will also preserve the order of the arrays no sorting needed ppSince many people are annoyed about prototype augmentation of codeArray prototype code and codefor in code loops here is less invasive way to use it ppre codefunction arrayUnique array var array concat for var lt length for var lt length if splice return var array1 Vijendra Singh var array2 Singh Shakya Merges both arrays and gets unique itemsvar array3 arrayUnique array1 concat array2 code prepFor those who are fortunate enough to work with browsers where ES5 is available you can use codeObject defineProperty code like this ppre codeObject defineProperty Array prototype unique enumerable false configurable false writable false value function var this concat for var lt length for var lt length if splice return code pre Just use Babel and Set as described in another answer,0,NULL,NULL 15948,325728,1552355,NULL,NULL,NULL,0,NULL,NULL 15949,359539,92759,Yearling Popular Question Notable Question Nice Question Popular Question Yearling Popular Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 15950,717921,617854,NULL,NULL,NULL,0,NULL,NULL 15951,236895,687981,NULL,NULL,NULL,0,NULL,NULL 15952,444078,1088665,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 15953,1735115,536078,Necromancer Necromancer Nice Answer Necromancer Caucus Constituent Yearling Nice Answer Civic Duty Nice Answer Necromancer Caucus Constituent Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 15954,774858,1366302,Nice Answer Yearling ruby-on-rails Nice Answer Enlightened Good Answer Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 15955,384201,504180,NULL,NULL,NULL,0,NULL,NULL 15956,88007,1523190,Supporter,NULL,NULL,0,NULL,NULL 15957,720821,477120,NULL,NULL,NULL,0,NULL,NULL 15958,1519862,857027,NULL,NULL,NULL,0,NULL,NULL 15959,146479,333567,NULL,NULL,NULL,0,NULL,NULL 15960,26968,1200700,Good Answer,NULL,NULL,0,NULL,NULL 15961,175393,383038,Self-Learner Citizen Patrol Tumbleweed Yearling Custodian Organizer,NULL,NULL,0,NULL,NULL 15962,6363,510878,NULL,NULL,NULL,0,NULL,NULL 15963,627087,527667,NULL,NULL,NULL,0,NULL,NULL 15964,895689,959032,Revival Notable Question,NULL,NULL,0,NULL,NULL 15965,1127582,287185,Investor Yearling Good Question Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Custodian Custodian Custodian Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 15966,13060,774278,NULL,NULL,NULL,0,NULL,NULL 15967,178486,1337437,NULL,NULL,NULL,0,NULL,NULL 15968,674888,1155346,NULL,NULL,NULL,0,NULL,NULL 15969,427545,1240241,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 15970,112272,103059,Good Answer Informed Yearling Custodian Good Answer Yearling Census Yearling Great Answer,NULL,NULL,0,NULL,NULL 15971,1380119,98830,Popular Question Yearling Yearling Nice Question Notable Question Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15972,29149,861749,Popular Question Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 15973,2674869,800457,Necromancer Notable Question Pundit Necromancer Mortarboard Great Answer Nice Question Self-Learner Yearling Famous Question Necromancer Announcer Necromancer Good Answer Necromancer Great Answer Good Question Necromancer Good Question Good Answer Nice Answer Nice Answer Necromancer Nice Question Necromancer Good Answer Good Answer Nice Answer Yearling Nice Answer Necromancer Nice Answer Necromancer Necromancer Necromancer Custodian Revival Good Answer Revival Nice Answer Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 15974,4751463,778777,Popular Question,NULL,NULL,0,NULL,NULL 15975,612590,110379,Yearling Necromancer,NULL,NULL,0,NULL,NULL 15976,159152,723987,Famous Question,NULL,NULL,0,NULL,NULL 15977,366890,493914,Yearling Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 15978,296721,329712,Notable Question Yearling Popular Question Necromancer Caucus,NULL,NULL,0,NULL,NULL 15979,115955,367196,Student Scholar,NULL,NULL,0,NULL,NULL 15980,268974,580465,NULL,NULL,NULL,0,NULL,NULL 15981,887869,211206,Yearling,NULL,NULL,0,NULL,NULL 15982,513604,472917,NULL,NULL,NULL,0,NULL,NULL 15983,515589,1132885,NULL,NULL,NULL,0,NULL,NULL 15984,186910,23572,Notable Question Popular Question Popular Question Popular Question Good Answer Good Answer Good Question Good Question Necromancer Good Question Famous Question Great Question Nice Answer Enlightened Notable Question Nice Question Great Answer Nice Question Yearling Notable Question Nice Answer Popular Question Necromancer Popular Question Necromancer Good Question Popular Question Nice Answer Nice Answer Good Question Necromancer Necromancer Nice Answer Sportsmanship Nice Question Stellar Question Necromancer Favorite Question Yearling Famous Question Necromancer collections Notable Question Good Answer Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 15985,168869,190514,NULL,NULL,NULL,0,NULL,NULL 15986,507187,596543,Notable Question Nice Question Autobiographer,NULL,NULL,0,NULL,NULL 15987,254297,663223,NULL,NULL,NULL,0,NULL,NULL 15988,88234,219881,Enthusiast Popular Question Caucus,NULL,NULL,0,NULL,NULL 15989,73933,238672,Good Answer Yearling Guru Yearling ruby-on-rails Popular Question,NULL,NULL,0,NULL,NULL 15990,126133,5445,Nice Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Good Answer Good Answer Good Answer Good Answer Good Answer Good Answer Great Answer Nice Answer Guru Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Populist Good Answer Guru Nice Answer Nice Answer Enlightened Enlightened Guru Good Answer Great Answer Nice Answer Guru Guru Nice Answer Great Answer Nice Answer Good Answer Good Answer Nice Answer Guru Great Answer Populist Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer date Nice Answer Enlightened Nice Answer Guru Nice Answer Great Answer Nice Answer Guru Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Great Answer Great Answer Nice Answer Good Answer Guru Good Answer Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer Guru Enlightened Guru Good Answer Nice Answer Guru Great Answer Nice Answer Good Answer Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Guru Great Answer Guru Great Answer Great Answer Good Answer Guru Guru Good Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Great Answer Great Answer Guru Enlightened Great Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Good Answer syntax Great Answer Good Answer Guru Enlightened Nice Answer Great Answer Nice Answer Yearling Guru Enlightened Guru Guru Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Guru Nice Answer Enlightened Good Answer Great Answer Good Answer Great Answer Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Great Answer Great Answer Good Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Guru Great Answer Guru Good Answer Populist Nice Answer Populist Great Answer Guru Guru Good Answer Guru Nice Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Good Answer Enlightened Good Answer Populist Guru Good Answer Great Answer Guru Nice Answer Nice Answer Great Answer Nice Answer Good Answer Yearling Nice Answer Good Answer Populist Nice Answer Good Answer Great Answer Guru Good Answer Good Answer Good Answer Great Answer,NULL,strongEDIT strong This question was answered almost year ago when there were not much useful built in methods in the codeArray prototype code ppNow certainly would just recommend you to use the codefilter code method ppTake in mind that this method will return you ema new array em with the elements that pass the criteria of the callback function you provide to it for example if you want to remove codenull code or codeundefined code values pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar array null undefined xD xD var filtered array filter function el xD return el null xD xD xD console log filtered code pre xD div xD div xD ppIt will depend on what you consider to be empty for example if you were dealing with strings the above function wouldn remove elements that are an empty string ppOne common pattern that see often used is to remove elements that are emfalsy em which include an empty string code code code0 code codeNaN code codenull code codeundefined code and codefalse code ppYou can simply pass to the codefilter code method the codeBoolean code constructor function or simply return the same element in the filter criteria function for example ppre codevar filtered array filter Boolean code prepOr ppre codevar filtered array filter function el return el code prepIn both ways this works because the codefilter code method in the first case calls the codeBoolean code constructor as function converting the value and in the second case the codefilter code method internally converts the return value of the callback implicitly to codeBoolean code ppIf you are working with sparse arrays and you are trying to get rid of the holes you can simply use the codefilter code method passing callback that returns true for example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar sparseArray xD cleanArray sparseArray filter function return true xD xD console log cleanArray code pre xD div xD div xD pp strongOld answer strong Don do this ppI use this method extending the native Array prototype ppre codeArray prototype clean function deleteValue for var lt this length if this deleteValue this splice return this test new Array One Two Three Four clean test2 test2 clean undefined code prepOr you can simply push the existing elements into other array ppre code Will remove all falsy values undefined null false NaN and empty string function cleanArray actual var newArray new Array for var lt actual length if actual newArray push actual return newArray cleanArray code pre you re right have updated the answer it has been almost 10 years,0,NULL,NULL 15991,94154,129805,Necromancer Nice Question Nice Question Custodian Nice Question Notable Question Popular Question Nice Question Famous Question Famous Question Favorite Question Popular Question Popular Question Nice Question Nice Answer Notable Question Famous Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Necromancer Popular Question Nice Question Popular Question Popular Question Yearling Famous Question Good Answer Notable Question Great Question Famous Question Popular Question Good Answer Nice Answer Famous Question Notable Question Nice Question Notable Question Good Question Notable Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Favorite Question Notable Question Notable Question Popular Question Favorite Question Good Question Famous Question Popular Question Stellar Question Popular Question Popular Question Nice Question Popular Question Popular Question Great Question Popular Question Popular Question Good Question Yearling Notable Question Famous Question Nice Question Socratic Notable Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Famous Question Explainer Nice Question Announcer Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Announcer Popular Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 15992,550917,565812,NULL,NULL,NULL,0,NULL,NULL 15993,206772,1181553,Yearling Announcer Yearling Caucus Popular Question Documentation User Census Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 15994,3888,65542,Yearling Announcer Notable Question Nice Answer Popular Question Good Question Nice Answer Enlightened Good Question Nice Answer Enlightened Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 15995,34788,395175,NULL,NULL,NULL,0,NULL,NULL 15996,161527,1274969,Necromancer Good Answer,NULL,NULL,0,NULL,NULL 15997,69899,1006050,Popular Question Yearling Nice Question Nice Question Popular Question Caucus Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 15998,913407,95272,Nice Answer Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 15999,53897,658351,NULL,NULL,NULL,0,NULL,NULL 16000,250076,1494321,Revival Supporter,NULL,NULL,0,NULL,NULL 16001,976790,1494321,Revival Supporter,NULL,NULL,0,NULL,NULL 16002,142775,915105,NULL,NULL,NULL,0,NULL,NULL 16003,3776148,915105,NULL,NULL,NULL,0,NULL,NULL 16004,652292,695906,NULL,NULL,NULL,0,NULL,NULL 16005,601211,1134166,Notable Question,NULL,NULL,0,NULL,NULL 16006,141320,783696,Notable Question,NULL,NULL,0,NULL,NULL 16007,1506197,1130110,NULL,NULL,NULL,0,NULL,NULL 16008,1510316,1299024,Popular Question Teacher,NULL,NULL,0,NULL,NULL 16009,43667,409179,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16010,535,786223,Civic Duty Suffrage Vox Populi Announcer Nice Answer Enlightened Yearling Mortarboard java Good Answer hadoop Necromancer Yearling Nice Answer Enlightened Nice Answer Enlightened Explainer Excavator Electorate Caucus Constituent Notable Question Guru Custodian Enlightened Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16011,141919,635291,NULL,NULL,NULL,0,NULL,NULL 16012,47982,64830,NULL,NULL,NULL,0,NULL,NULL 16013,17569,950926,NULL,NULL,NULL,0,NULL,NULL 16014,3996452,615528,Commentator Autobiographer Yearling Custodian Nice Answer Enlightened Revival Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 16015,533014,615528,Commentator Autobiographer Yearling Custodian Nice Answer Enlightened Revival Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 16016,15705,455039,Popular Question Popular Question Good Answer Popular Question Notable Question Yearling Notable Question Famous Question Nice Question Nice Question Necromancer Yearling Documentation User Guru Popular Question Famous Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16017,160439,1401307,NULL,NULL,NULL,0,NULL,NULL 16018,184204,1234642,NULL,NULL,NULL,0,NULL,NULL 16019,1350753,1410839,Editor Student Scholar Teacher Supporter Informed Commentator Autobiographer Critic Yearling Peer Pressure Yearling,NULL,NULL,0,NULL,NULL 16020,146562,960233,NULL,NULL,NULL,0,NULL,NULL 16021,704009,394975,NULL,NULL,NULL,0,NULL,NULL 16022,133684,908995,NULL,NULL,NULL,0,NULL,NULL 16023,235415,52325,Informed,NULL,NULL,0,NULL,NULL 16024,244207,266337,Custodian cassandra Custodian Custodian Yearling Nice Answer Enlightened Custodian Organizer Caucus Excavator Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Proofreader Nice Answer Announcer cassandra Nice Answer Enlightened Census Yearling Caucus Nice Answer Enlightened Civic Duty cassandra-3.0 Good Answer,NULL,NULL,0,NULL,NULL 16025,6581151,855384,NULL,NULL,NULL,0,NULL,NULL 16026,1657044,855384,NULL,NULL,NULL,0,NULL,NULL 16027,248234,855384,NULL,NULL,NULL,0,NULL,NULL 16028,101948,24391,Popular Question Popular Question Good Question Famous Question Popular Question Notable Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Caucus Constituent Nice Question Good Question Notable Question Nice Question Popular Question Yearling Tenacious Notable Question Famous Question Nice Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 16029,3263988,641029,NULL,NULL,NULL,0,NULL,NULL 16030,350501,799851,NULL,NULL,NULL,0,NULL,NULL 16031,50506,1107607,Student Custodian Tumbleweed Revival Citizen Patrol Critic Nice Answer Caucus Constituent Yearling Self-Learner Popular Question Popular Question Yearling Documentation User Notable Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 16032,212841,1154044,Nice Answer Informed Commentator Critic Caucus Editor Yearling Yearling Enthusiast Scholar Caucus Constituent Custodian Citizen Patrol Custodian Civic Duty Suffrage Vox Populi Custodian Reviewer Yearling Deputy Reviewer Fanatic,NULL,NULL,0,NULL,NULL 16033,569035,538494,NULL,NULL,NULL,0,NULL,NULL 16034,348366,1282113,NULL,NULL,NULL,0,NULL,NULL 16035,667988,891577,NULL,NULL,NULL,0,NULL,NULL 16036,39770,1034959,NULL,NULL,NULL,0,NULL,NULL 16037,357559,1034959,NULL,NULL,NULL,0,NULL,NULL 16038,2933013,1034959,NULL,NULL,NULL,0,NULL,NULL 16039,85663,683321,Popular Question Yearling Favorite Question Necromancer Announcer Popular Question Nice Question Yearling Great Answer Necromancer Famous Question Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Popular Question Excavator Popular Question Nice Question Nice Question Revival,NULL,NULL,0,NULL,NULL 16040,1375886,1261368,NULL,NULL,NULL,0,NULL,NULL 16041,462619,342348,Popular Question Necromancer Notable Question Inquisitive Peer Pressure Popular Question Yearling Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Necromancer Popular Question Yearling Nice Question Popular Question Famous Question Popular Question Notable Question Notable Question Caucus Constituent Popular Question Popular Question Yearling Popular Question Good Question Notable Question Necromancer Self-Learner Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16042,76184,738581,NULL,NULL,NULL,0,NULL,NULL 16043,186438,1191569,NULL,NULL,NULL,0,NULL,NULL 16044,371711,1197643,NULL,NULL,NULL,0,NULL,NULL 16045,1492986,1278297,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 16046,766024,481665,Supporter,NULL,NULL,0,NULL,NULL 16047,274223,1285940,NULL,NULL,NULL,0,NULL,NULL 16048,47625,733871,NULL,NULL,NULL,0,NULL,NULL 16049,32465,475443,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 16050,167180,747116,Yearling Custodian Caucus Custodian Announcer Yearling Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 16051,2985525,1199385,NULL,NULL,NULL,0,NULL,NULL 16052,1001506,1418983,Nice Answer Yearling Good Answer Excavator Yearling Guru Curious Custodian Great Answer Yearling Documentation User Custodian Custodian Informed Civic Duty Autobiographer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16053,725034,1418983,Nice Answer Yearling Good Answer Excavator Yearling Guru Curious Custodian Great Answer Yearling Documentation User Custodian Custodian Informed Civic Duty Autobiographer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16054,326914,279097,Popular Question Famous Question Custodian,NULL,NULL,0,NULL,NULL 16055,4907,156743,Nice Answer,NULL,NULL,0,NULL,NULL 16056,10676531,827399,Popular Question Custodian,NULL,NULL,0,NULL,NULL 16057,333661,827399,Popular Question Custodian,NULL,NULL,0,NULL,NULL 16058,439725,406870,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 16059,350824,940148,NULL,NULL,NULL,0,NULL,NULL 16060,807631,1490082,NULL,NULL,NULL,0,NULL,NULL 16061,1519735,1062956,NULL,NULL,NULL,0,NULL,NULL 16062,233835,828890,NULL,NULL,NULL,0,NULL,NULL 16063,23547,577335,NULL,NULL,NULL,0,NULL,NULL 16064,252211,575632,Supporter,NULL,NULL,0,NULL,NULL 16065,101169,995731,NULL,NULL,NULL,0,NULL,NULL 16066,502364,889995,NULL,NULL,NULL,0,NULL,NULL 16067,10275,1253948,Revival,NULL,NULL,0,NULL,NULL 16068,8732949,1253948,Revival,NULL,NULL,0,NULL,NULL 16069,15750,132053,Nice Answer Nice Answer Revival Enlightened Yearling Guru Nice Answer Nice Answer Yearling ruby-on-rails Yearling postgresql,NULL,NULL,0,NULL,NULL 16070,171574,318036,NULL,NULL,NULL,0,NULL,NULL 16071,429543,161979,Commentator Yearling Necromancer Revival Popular Question Informed Organizer Custodian Necromancer,NULL,NULL,0,NULL,NULL 16072,152128,301829,Popular Question Popular Question Famous Question Yearling Custodian Notable Question Famous Question Popular Question Yearling Famous Question Popular Question Good Question Great Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 16073,86899,376138,Custodian Nice Answer Guru Yearling Nice Answer Enlightened Nice Answer Reviewer Announcer Good Question Custodian Yearling Announcer Yearling Nice Answer Civic Duty Great Answer,NULL,NULL,0,NULL,NULL 16074,577488,1160478,Popular Question Yearling Supporter,NULL,NULL,0,NULL,NULL 16075,312958,6306,Good Question,NULL,NULL,0,NULL,NULL 16076,26384,395287,Announcer Good Answer Notable Question Popular Question Great Answer Notable Question Yearling Good Answer Nice Answer Popular Question Popular Question Notable Question Nice Question Popular Question Nice Answer Popular Question Good Question Good Answer Yearling Caucus Documentation User Nice Answer Popular Question Notable Question Good Answer Announcer Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 16077,5823,588398,NULL,NULL,NULL,0,NULL,NULL 16078,890132,1359343,Scholar Caucus Excavator Census Civic Duty,NULL,NULL,0,NULL,NULL 16079,74240,1359343,Scholar Caucus Excavator Census Civic Duty,NULL,NULL,0,NULL,NULL 16080,297703,1124490,Supporter Necromancer Autobiographer,NULL,NULL,0,NULL,NULL 16081,535676,243009,NULL,NULL,NULL,0,NULL,NULL 16082,117735,947561,Student,NULL,NULL,0,NULL,NULL 16083,610415,41673,Popular Question Custodian Yearling Famous Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 16084,84529,582258,NULL,NULL,NULL,0,NULL,NULL 16085,530939,187658,NULL,NULL,NULL,0,NULL,NULL 16086,322153,58391,Nice Answer Yearling Enlightened string Nice Answer Nice Answer Popular Question Announcer Revival Nice Answer Enlightened Revival Notable Question Revival Caucus Constituent Good Answer Yearling Census Notable Question Nice Answer Enlightened Nice Question Nice Answer Revival Nice Answer Enlightened Good Question Famous Question Caucus Constituent Nice Answer Nice Answer Enlightened Necromancer Announcer Nice Answer Enlightened Census Nice Answer Yearling Revival Caucus Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened c# Nice Answer Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16087,513926,1089603,NULL,NULL,NULL,0,NULL,NULL 16088,15813,179321,Nice Answer Nice Answer Enthusiast Census Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 16089,469731,612034,NULL,NULL,NULL,0,NULL,NULL 16090,8516,766514,NULL,NULL,NULL,0,NULL,NULL 16091,185898,449766,NULL,NULL,NULL,0,NULL,NULL 16092,338355,780440,NULL,NULL,NULL,0,NULL,NULL 16093,404856,78830,Yearling Taxonomist Necromancer Notable Question Yearling Revival Good Answer Yearling Nice Answer Great Answer Good Answer,NULL,NULL,0,NULL,NULL 16094,370919,981242,Yearling Popular Question Popular Question Popular Question Caucus Constituent Critic Quorum Notable Question Nice Question Notable Question Announcer Popular Question Caucus Constituent Custodian Custodian Documentation User Self-Learner Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 16095,79269,1540957,NULL,NULL,NULL,0,NULL,NULL 16096,104613,42015,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16097,655180,389837,Yearling Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 16098,1293957,365212,NULL,NULL,NULL,0,NULL,NULL 16099,11185169,455504,NULL,NULL,NULL,0,NULL,NULL 16100,213682,637401,NULL,NULL,NULL,0,NULL,NULL 16101,64516,819877,NULL,NULL,NULL,0,NULL,NULL 16102,251232,95190,Nice Answer Good Answer Yearling Nice Answer Great Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Question Pundit Nice Answer Guru Good Answer Good Answer Good Answer Nice Answer node.js Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer javascript Nice Answer Notable Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Announcer mongodb Yearling Populist Announcer Nice Answer Enlightened Guru Famous Question Announcer Guru Announcer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Announcer Populist Great Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Announcer Good Answer Nice Answer Popular Question Good Answer Announcer Great Answer Announcer Great Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 16103,44131,951707,NULL,NULL,NULL,0,NULL,NULL 16104,298150,1391756,Teacher,NULL,NULL,0,NULL,NULL 16105,1393479,1547348,Student Editor,NULL,NULL,0,NULL,NULL 16106,1050901,375308,NULL,NULL,NULL,0,NULL,NULL 16107,57714,125534,NULL,NULL,NULL,0,NULL,NULL 16108,2913296,1181380,NULL,NULL,NULL,0,NULL,NULL 16109,984957,1346152,NULL,NULL,NULL,0,NULL,NULL 16110,756436,921638,NULL,NULL,NULL,0,NULL,NULL 16111,205843,271764,Yearling Notable Question Great Answer Nice Question Famous Question Yearling Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 16112,318229,1160992,Autobiographer Yearling Yearling Caucus Constituent Caucus Constituent Nice Answer Enlightened Popular Question Yearling Commentator,NULL,NULL,0,NULL,NULL 16113,116312,104454,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 16114,11266,689124,NULL,NULL,NULL,0,NULL,NULL 16115,53546,12704,Nice Answer Necromancer Nice Question Guru Nice Answer Necromancer Nice Answer Nice Answer Revival Guru Yearling Caucus Constituent Good Answer Good Question Census Good Answer Caucus Constituent Necromancer java gradle Yearling Good Answer Necromancer Notable Question Nice Answer Announcer Good Answer Nice Answer Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 16116,193245,1511016,NULL,NULL,NULL,0,NULL,NULL 16117,1614959,996974,NULL,NULL,NULL,0,NULL,NULL 16118,142445,803864,Necromancer,NULL,NULL,0,NULL,NULL 16119,73045,1177427,NULL,NULL,NULL,0,NULL,NULL 16120,640950,1242182,NULL,NULL,NULL,0,NULL,NULL 16121,2425914,432320,NULL,NULL,NULL,0,NULL,NULL 16122,306383,366251,NULL,NULL,NULL,0,NULL,NULL 16123,47984,237793,NULL,NULL,NULL,0,NULL,NULL 16124,312883,1288202,Necromancer,NULL,NULL,0,NULL,NULL 16125,225664,1111789,NULL,NULL,NULL,0,NULL,NULL 16126,240925,230343,NULL,NULL,NULL,0,NULL,NULL 16127,12208,304894,Famous Question Yearling Good Answer Notable Question javascript Popular Question Notable Question Good Question Yearling Guru Famous Question Good Answer Nice Question Good Question Nice Answer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 16128,146732,850229,NULL,NULL,NULL,0,NULL,NULL 16129,311086,850229,NULL,NULL,NULL,0,NULL,NULL 16130,166070,727171,Popular Question,NULL,NULL,0,NULL,NULL 16131,27562,4977,Guru Nice Answer Enlightened Nice Answer Yearling Notable Question Good Question Yearling Good Answer Enlightened Notable Question Notable Question Good Answer Nice Question Popular Question Yearling Good Question Popular Question Notable Question Guru,NULL,NULL,0,NULL,NULL 16132,164756,82748,Yearling Popular Question Famous Question Notable Question Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 16133,581314,1209435,Nice Answer Yearling Supporter,NULL,NULL,0,NULL,NULL 16134,2369222,576818,NULL,NULL,NULL,0,NULL,NULL 16135,8880304,277586,Good Answer Popular Question Popular Question Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 16136,281988,277586,Good Answer Popular Question Popular Question Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 16137,44964,1217567,Organizer Nice Answer,NULL,NULL,0,NULL,NULL 16138,873176,841627,NULL,NULL,NULL,0,NULL,NULL 16139,1508931,475007,Scholar,NULL,NULL,0,NULL,NULL 16140,165506,40527,Good Answer Good Question Good Answer Yearling Famous Question Yearling Famous Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 16141,216626,375830,Good Answer Yearling Popular Question Popular Question Notable Question Commentator Yearling Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 16142,14896,469821,Revival Necromancer Nice Answer Commentator,NULL,NULL,0,NULL,NULL 16143,413617,951502,NULL,NULL,NULL,0,NULL,NULL 16144,1533554,951502,NULL,NULL,NULL,0,NULL,NULL 16145,3656,404447,Nice Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16146,16675,1306634,Revival,NULL,NULL,0,NULL,NULL 16147,7102314,1092584,Necromancer,NULL,NULL,0,NULL,NULL 16148,287941,1092584,Necromancer,NULL,NULL,0,NULL,NULL 16149,569684,1106959,NULL,NULL,NULL,0,NULL,NULL 16150,888528,656149,NULL,NULL,NULL,0,NULL,NULL 16151,994789,200916,Nice Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 16152,892494,1202710,NULL,NULL,NULL,0,NULL,NULL 16153,26708,1004146,NULL,NULL,NULL,0,NULL,NULL 16154,313375,174605,Good Question Nice Question Yearling Custodian Caucus Constituent Famous Question Famous Question Good Question Announcer Caucus Constituent Popular Question Yearling Documentation User Census Excavator Popular Question Caucus Constituent Good Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 16155,92549,1514221,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16156,55206,526501,Announcer,NULL,NULL,0,NULL,NULL 16157,4427753,1083529,NULL,NULL,NULL,0,NULL,NULL 16158,290680,1083529,NULL,NULL,NULL,0,NULL,NULL 16159,81145,764312,Student Scholar Commentator Yearling Nice Answer Yearling Populist Good Answer Organizer,NULL,NULL,0,NULL,NULL 16160,140974,797240,NULL,NULL,NULL,0,NULL,NULL 16161,474376,865234,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 16162,398385,13421,Editor Yearling,NULL,NULL,0,NULL,NULL 16163,1164658,342494,Revival Caucus Popular Question Popular Question Nice Answer Civic Duty Caucus,NULL,NULL,0,NULL,NULL 16164,1913232,342494,Revival Caucus Popular Question Popular Question Nice Answer Civic Duty Caucus,NULL,NULL,0,NULL,NULL 16165,763880,897558,NULL,NULL,NULL,0,NULL,NULL 16166,18254,128986,NULL,NULL,NULL,0,NULL,NULL 16167,2281421,128986,NULL,NULL,NULL,0,NULL,NULL 16168,695769,770606,Self-Learner Yearling Notable Question Nice Answer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 16169,81538,1134951,NULL,NULL,NULL,0,NULL,NULL 16170,93224,468646,Yearling Yearling,NULL,NULL,0,NULL,NULL 16171,101144,604093,Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 16172,59550,717792,NULL,NULL,NULL,0,NULL,NULL 16173,23272,402868,Yearling Great Answer Yearling Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 16174,195144,1320304,Popular Question,NULL,NULL,0,NULL,NULL 16175,279740,798319,Famous Question Popular Question Nice Question Caucus Documentation User Civic Duty,NULL,NULL,0,NULL,NULL 16176,1953,305786,NULL,NULL,NULL,0,NULL,NULL 16177,39041,2310,Autobiographer,NULL,NULL,0,NULL,NULL 16178,2631328,399060,Popular Question Popular Question Great Question Yearling Caucus Self-Learner Popular Question Famous Question Yearling Caucus Notable Question Popular Question Popular Question Caucus Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16179,535270,399060,Popular Question Popular Question Great Question Yearling Caucus Self-Learner Popular Question Famous Question Yearling Caucus Notable Question Popular Question Popular Question Caucus Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16180,135282,283783,Great Answer Yearling Revival Good Answer Great Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16181,420594,1033992,NULL,NULL,NULL,0,NULL,NULL 16182,101028,1395081,Census,NULL,NULL,0,NULL,NULL 16183,280418,852056,Nice Answer Yearling Notable Question Yearling Necromancer Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 16184,5164974,1065522,NULL,NULL,NULL,0,NULL,NULL 16185,167440,1020545,NULL,NULL,NULL,0,NULL,NULL 16186,387648,431136,Popular Question,NULL,NULL,0,NULL,NULL 16187,184679,1024153,NULL,NULL,NULL,0,NULL,NULL 16188,1503775,439716,Nice Answer Yearling Guru Revival Yearling Nice Answer Enlightened php Promoter Necromancer Yearling,NULL,NULL,0,NULL,NULL 16189,146468,1325883,NULL,NULL,NULL,0,NULL,NULL 16190,101547,745372,NULL,NULL,NULL,0,NULL,NULL 16191,143983,457469,Nice Question,NULL,NULL,0,NULL,NULL 16192,1569626,1208269,NULL,NULL,NULL,0,NULL,NULL 16193,145750,1261717,NULL,NULL,NULL,0,NULL,NULL 16194,15027,866413,Yearling,NULL,NULL,0,NULL,NULL 16195,92385,472873,Commentator,NULL,NULL,0,NULL,NULL 16196,919735,447341,Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question nhibernate Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Yearling Popular Question Cleanup Good Answer Notable Question Census Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16197,664240,956240,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16198,123411,804612,NULL,NULL,NULL,0,NULL,NULL 16199,168342,751070,Popular Question Yearling Nice Answer Caucus Good Answer Revival Yearling Caucus Necromancer Yearling Good Answer Custodian Popular Question,NULL,NULL,0,NULL,NULL 16200,694299,776725,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16201,648790,469601,Necromancer Yearling Nice Answer Editor Yearling Good Answer Necromancer Yearling Necromancer Yearling Yearling,NULL,Programmatically navigate using react router reactjs react router pWith codereact router code can use the codeLink code element to create links that are natively handled by react router ppI see internally it calls codethis context transitionTo code ppI want to do navigation but not from link from dropdown selection for example How can do this in code What is codethis context code ppI saw the codeNavigation code mixin but can do this without mixins glad you got this answered but sad it has to be this complicated Navigating within web app should be easy and well documented VueJS makes it trivial Each component gets the router instance injected automatically There clearly defined section for it in their docs https router vuejs org guide essentials navigation html like React for lot of things but it so overly complicated sometimes rant Programmatically navigate using react router reactjs react router pWith codereact router code can use the codeLink code element to create links that are natively handled by react router ppI see internally it calls codethis context transitionTo code ppI want to do navigation but not from link from dropdown selection for example How can do this in code What is codethis context code ppI saw the codeNavigation code mixin but can do this without mixins You re right That not what this community is about It about answering questions not squabbling over frameworks Thanks for the reminder,0,NULL,NULL 16202,7326,196340,NULL,NULL,NULL,0,NULL,NULL 16203,5037251,1072287,Yearling Yearling Favorite Question Great Question Yearling Good Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16204,92136,1072287,Yearling Yearling Favorite Question Great Question Yearling Good Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16205,628394,710128,NULL,NULL,NULL,0,NULL,NULL 16206,888419,202898,NULL,NULL,NULL,0,NULL,NULL 16207,199379,133906,Popular Question Popular Question Self-Learner Caucus,NULL,NULL,0,NULL,NULL 16208,240775,1121721,NULL,NULL,NULL,0,NULL,NULL 16209,686926,625946,Famous Question,NULL,NULL,0,NULL,NULL 16210,1099687,1172350,Yearling Necromancer Nice Answer Yearling Excavator Commentator Good Answer Popular Question Yearling Guru Necromancer Custodian,NULL,NULL,0,NULL,NULL 16211,459582,166896,Popular Question Famous Question Popular Question Caucus Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16212,475331,224950,NULL,NULL,NULL,0,NULL,NULL 16213,222020,143721,Popular Question Popular Question Notable Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 16214,1375663,1048194,NULL,NULL,NULL,0,NULL,NULL 16215,46378,510868,Nice Answer Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 16216,146422,68873,NULL,NULL,NULL,0,NULL,NULL 16217,1527825,275815,NULL,NULL,NULL,0,NULL,NULL 16218,179032,105492,Yearling Nice Answer Excavator Good Answer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 16219,69446,862443,Good Question,NULL,NULL,0,NULL,NULL 16220,17733,1265314,NULL,NULL,NULL,0,NULL,NULL 16221,581468,7252,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 16222,159761,7252,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 16223,521023,953717,NULL,NULL,NULL,0,NULL,NULL 16224,574666,285249,NULL,NULL,NULL,0,NULL,NULL 16225,673757,8152,Nice Answer Good Answer Popular Question Famous Question Nice Answer Guru Good Answer Yearling Nice Answer Enlightened Strunk & White Nice Answer Nice Answer Famous Question Guru Tumbleweed Yearling Nice Answer Enlightened Guru Popular Question Census Caucus Popular Question Notable Question Good Answer Yearling Popular Question Nice Answer Enlightened,NULL,NULL,1,Cake enabling Parallel MSBuild cakebuild pIn cake file how do enable parallel build on MsBuild actions get the message output to the terminal to please add the switch but don see how to do this in the MS Build Settings that pass into the MsBuild method,NULL 16226,53736,623520,NULL,NULL,NULL,0,NULL,NULL 16227,1791947,262271,Yearling Necromancer Civic Duty Nice Answer Announcer Excavator Notable Question Announcer Popular Question Announcer Stellar Question Announcer Yearling Custodian Notable Question Nice Question Revival Famous Question Revival Announcer Necromancer Yearling Good Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 16228,1760667,262271,Yearling Necromancer Civic Duty Nice Answer Announcer Excavator Notable Question Announcer Popular Question Announcer Stellar Question Announcer Yearling Custodian Notable Question Nice Question Revival Famous Question Revival Announcer Necromancer Yearling Good Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 16229,23182,319984,NULL,NULL,NULL,0,NULL,NULL 16230,222746,216142,Good Answer Caucus Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16231,2503963,1017768,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16232,169691,1017768,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16233,13089,460868,Necromancer,NULL,NULL,0,NULL,NULL 16234,76001,69464,Yearling Good Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 16235,897811,1101200,NULL,NULL,NULL,0,NULL,NULL 16236,222081,369163,NULL,NULL,NULL,0,NULL,NULL 16237,309806,79842,Good Answer Popular Question Revival Yearling Popular Question Popular Question Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16238,214767,378955,Informed Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 16239,145759,788025,NULL,NULL,NULL,0,NULL,NULL 16240,1519504,1010050,NULL,NULL,NULL,0,NULL,NULL 16241,3710991,1010050,NULL,NULL,NULL,0,NULL,NULL 16242,427839,155368,Yearling Self-Learner Nice Question Announcer Famous Question Famous Question Announcer,NULL,NULL,0,NULL,NULL 16243,46823,349891,NULL,NULL,NULL,0,NULL,NULL 16244,55657,824909,NULL,NULL,NULL,0,NULL,NULL 16245,366723,996203,NULL,NULL,NULL,0,NULL,NULL 16246,520174,525522,Good Answer,NULL,NULL,0,NULL,NULL 16247,26056,396243,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 16248,47909,800825,Yearling,NULL,NULL,0,NULL,NULL 16249,88961,397801,Notable Question Necromancer Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 16250,41526,187780,Necromancer Self-Learner Necromancer Excavator Yearling Popular Question Necromancer Nice Answer Announcer Necromancer Yearling Notable Question Announcer Nice Answer Nice Question Pundit Nice Answer Nice Answer Yearling,NULL,Why is MySQL default collation latin1 swedish ci mysql collation pWhat is the reasoning behind setting codelatin1 swedish ci code as the compiled default when other options seem much more reasonable like codelatin1 general ci code or codeutf8 general ci code Please note that utf8 general ci does not support byte UTF so for true UTF support you would want utf8mb4 general ci or one of the other mb4 variants,0,NULL,NULL 16251,24331,79250,Yearling Nice Answer Nice Answer Yearling Great Answer Good Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 16252,145182,651939,Notable Question,NULL,NULL,0,NULL,NULL 16253,180614,1450186,NULL,NULL,NULL,0,NULL,NULL 16254,1422350,254565,NULL,NULL,NULL,0,NULL,NULL 16255,598677,1336934,NULL,NULL,NULL,0,NULL,NULL 16256,241345,1380189,Yearling Caucus Revival Revival Yearling,NULL,NULL,0,NULL,NULL 16257,1878164,1150478,Popular Question Commentator Popular Question Curious Critic,NULL,NULL,0,NULL,NULL 16258,388206,1072281,Notable Question Editor Yearling,NULL,NULL,0,NULL,NULL 16259,9634,1178944,Custodian Editor,NULL,NULL,0,NULL,NULL 16260,1033477,2750,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16261,8960,598587,Yearling Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16262,72510,643684,Notable Question Famous Question Yearling Necromancer Nice Question Yearling Nice Answer Revival Announcer Necromancer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 16263,1463838,523577,NULL,NULL,NULL,0,NULL,NULL 16264,66763,40462,Yearling Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 16265,105067,340623,Popular Question,NULL,NULL,0,NULL,NULL 16266,1152831,241745,Nice Answer Guru stripe-payments Yearling ruby Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16267,543144,765410,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16268,435100,1144845,NULL,NULL,NULL,0,NULL,NULL 16269,57412,352273,NULL,NULL,NULL,0,NULL,NULL 16270,60260,780028,NULL,NULL,NULL,0,NULL,NULL 16271,116346,1245132,NULL,NULL,NULL,0,NULL,NULL 16272,5987723,999223,Yearling Citizen Patrol Mortarboard Yearling Critic Popular Question Explainer Autobiographer Custodian Yearling Excavator Notable Question Self-Learner Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 16273,100059,892387,Favorite Question Notable Question Notable Question Popular Question Famous Question Yearling Famous Question Notable Question Popular Question Yearling Good Question Nice Answer Enlightened Stellar Question Good Answer Nice Question Famous Question Notable Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16274,137612,303502,Yearling Critic Informed Commentator Yearling,NULL,NULL,0,NULL,NULL 16275,2498005,78798,Nice Answer Good Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16276,169584,29299,Great Answer Yearling Caucus Constituent Necromancer Caucus Yearling Custodian Custodian Nice Answer Census Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 16277,289238,3506,Popular Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 16278,185756,361609,Necromancer Nice Answer Announcer Popular Question Popular Question Yearling Populist Electorate Revival Announcer Famous Question Nice Question Necromancer Nice Answer Popular Question Notable Question Yearling Pundit Announcer Custodian Custodian Good Answer Announcer Necromancer Good Answer Notable Question Investor Altruist Yearling Nice Answer javascript,NULL,NULL,0,NULL,NULL 16279,1811692,361609,Necromancer Nice Answer Announcer Popular Question Popular Question Yearling Populist Electorate Revival Announcer Famous Question Nice Question Necromancer Nice Answer Popular Question Notable Question Yearling Pundit Announcer Custodian Custodian Good Answer Announcer Necromancer Good Answer Notable Question Investor Altruist Yearling Nice Answer javascript,NULL,NULL,0,NULL,NULL 16280,18792,244405,NULL,NULL,NULL,0,NULL,NULL 16281,157228,585325,Yearling,NULL,,0,, 16282,408444,1408974,Good Answer Yearling,NULL,NULL,0,NULL,NULL 16283,598484,997122,NULL,NULL,NULL,0,NULL,NULL 16284,238542,544914,NULL,NULL,NULL,0,NULL,NULL 16285,15277,711030,NULL,NULL,NULL,0,NULL,NULL 16286,136723,22837,Popular Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 16287,3695747,520073,Popular Question,NULL,NULL,0,NULL,NULL 16288,331845,520073,Popular Question,NULL,NULL,0,NULL,NULL 16289,42757,1078277,NULL,NULL,NULL,0,NULL,NULL 16290,589044,722420,NULL,NULL,NULL,0,NULL,NULL 16291,209301,751561,NULL,NULL,NULL,0,NULL,NULL 16292,662013,1067065,NULL,NULL,NULL,0,NULL,NULL 16293,347792,272761,Caucus Yearling Announcer Necromancer Custodian Nice Answer Announcer Famous Question Yearling Good Answer Nice Answer android Yearling,NULL,NULL,0,NULL,NULL 16294,175627,1077495,Yearling,NULL,NULL,0,NULL,NULL 16295,5106088,1077495,Yearling,NULL,NULL,0,NULL,NULL 16296,2796164,1077495,Yearling,NULL,NULL,0,NULL,NULL 16297,176828,1226945,Nice Answer Yearling Popular Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16298,234181,1370767,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 16299,766046,917411,NULL,NULL,NULL,0,NULL,NULL 16300,3623,892063,NULL,NULL,NULL,0,NULL,NULL 16301,1181228,775758,NULL,NULL,NULL,0,NULL,NULL 16302,26165,886036,NULL,NULL,NULL,0,NULL,NULL 16303,493973,750543,Popular Question Yearling Popular Question Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 16304,5448,1323,Yearling Great Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 16305,158142,863823,NULL,NULL,NULL,0,NULL,NULL 16306,304662,1023206,NULL,NULL,NULL,0,NULL,NULL 16307,71180,330728,NULL,NULL,NULL,0,NULL,NULL 16308,67398,1371137,NULL,NULL,NULL,0,NULL,NULL 16309,175662,951604,Good Answer ruby-on-rails Yearling Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 16310,463259,753538,NULL,NULL,NULL,0,NULL,NULL 16311,502308,974702,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16312,155058,200335,NULL,NULL,NULL,0,NULL,NULL 16313,1339424,542730,Autobiographer Excavator Yearling Yearling Mortarboard Critic Caucus Caucus Necromancer Custodian,NULL,NULL,0,NULL,NULL 16314,175047,1068705,NULL,NULL,NULL,0,NULL,NULL 16315,31291,575034,Nice Answer,NULL,NULL,0,NULL,NULL 16316,902638,811008,Yearling Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Census Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 16317,908517,1149496,Custodian Tumbleweed Census,NULL,NULL,0,NULL,NULL 16318,8801,492931,NULL,NULL,,0,, 16319,18211,632223,NULL,NULL,NULL,0,NULL,NULL 16320,89244,800368,NULL,NULL,NULL,0,NULL,NULL 16321,86143,337156,Commentator Editor Custodian,NULL,NULL,0,NULL,NULL 16322,383493,608174,Critic Informed Notable Question Caucus Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 16323,263914,95372,Notable Question Good Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 16324,258043,482758,Yearling Notable Question Necromancer Good Answer Announcer Yearling Custodian Documentation User Informed Popular Question Booster Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 16325,143066,515916,NULL,NULL,NULL,0,NULL,NULL 16326,276325,1185911,Tumbleweed,NULL,NULL,0,NULL,NULL 16327,760581,76852,Yearling Tag Editor Popular Question Yearling Self-Learner Notable Question Explainer Yearling Popular Question,NULL,NULL,1,NULL,How to encrypt your Travis keys travis ci public key encryption pThe Travis href https docs travis ci com user encryption keys rel nofollow noreferrer docs say that the easiest way to encrypt keys eg To upload to S3 is to use their command line tool ppAre there other ways to do this that doesn involve installing Ruby etc just to use their command line tool pThere happens to be Javascript method and it available href http travis encrypt github io rel nofollow noreferrer here with the corresponding github repo href https github com travis encrypt travis encrypt github io rel nofollow noreferrer here ppTo use encrypted S3 keys is moderately confusing because the principles are not well explained in the Travis docs ppIn the top left field of the form mentioned above you enter your Travis CI userid repo name so this allows the script to pull down the public key for your repository that has been created by Travis ppIn the right top field you enter ppre codeAWS ACCESS KEY ID the access string from Amazon IAM code prepClick on strongEncrypt strong and copy the string generated below strongEncrypted Data strong ppThen in the right top field you enter ppre codeAWS SECRET ACCESS KEY the very secret string from Amazon IAM code prepand again copy the encrypted string Note that the encrypted strings change each time due to random data being included into the encrypted strings ppThese encrypted key pairs are decrypted by Travis and exported as environment variables You enter them in the travis yml file like this ppre codeglobal travis encrypt AWS ACCESS KEY ID AWS ACCESS KEY ID secure first very long encrypted string travis encrypt AWS SECRET ACCESS KEY AWS SECRET ACCESS KEY secure second very long encrypted string AWS S3 BUCKET NAME yourbucketname code prepNow in the deploy section you reference them by using the names you used for the encryption pair ppre codedeploy provider s3 these are set up in the global env access key id AWS ACCESS KEY ID secret access key AWS SECRET ACCESS KEY bucket AWS S3 BUCKET NAME skip cleanup true upload dir travis builds code prepIf you had used the name ACCESS ID in global env when you encrypted it then in deploy you would refer to it as ACCESS ID ppThe upload dir is created in the named bucket ppWhen your build runs in Travis the decrypted keys are not exposed Instead what you see is ppre codeSee https docs travis ci com user workers container based infrastructure for details Setting environment variables from travis yml export AWS ACCESS KEY ID secure export AWS SECRET ACCESS KEY secure export AWS S3 BUCKET NAME yourbucketname code pre 16328,141695,1515540,Good Answer Nice Answer Enlightened Informed Yearling Caucus Great Answer Nice Answer Enlightened Great Answer Good Answer Yearling Caucus Great Answer php Census Caucus Nice Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Enlightened Guru Good Answer,NULL,NULL,0,NULL,NULL 16329,377344,843521,NULL,NULL,NULL,0,NULL,NULL 16330,1459447,401175,Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Famous Question,NULL,pThat basically the way to do it there is no shortcut readily available AFAIK ppYou could generalize it ofcourse ppre codedef get or create session model defaults None kwargs instance session query model filter by kwargs first if instance return instance False else params dict for in kwargs iteritems if not isinstance ClauseElement params update defaults or instance model params session add instance return instance True code pre It is 2016 now Is this included in sqlalchemy yet or not,0,NULL,NULL 16331,24580,20261,Guru Guru Great Answer Good Answer php Guru Yearling Nice Question Good Question Nice Answer Enlightened Popular Question Good Answer Great Answer Nice Answer Populist Popular Question Great Answer Caucus Nice Answer Enlightened Notable Question Great Answer Yearling Popular Question Guru Nice Answer Great Answer Caucus Popular Question Popular Question Good Answer Good Question Good Answer Yearling Nice Answer Nice Answer Great Answer,NULL,pFirst you create your branch locally ppre codegit checkout lt branch name gt Create new branch and check it out code prepThe remote branch is automatically created when you push it to the remote server So when you feel ready for it you can just do ppre codegit push lt remote name gt lt branch name gt code prepWhere code lt remote name gt code is typically codeorigin code the name which git gives to the remote you cloned from Your colleagues would then just pull that branch and it automatically created locally ppNote however that formally the format is ppre codegit push lt remote name gt lt local branch name gt lt remote branch name gt code prepBut when you omit one it assumes both branch names are the same Having said this as word of strongcaution strong do not make the critical mistake of specifying only code lt remote branch name gt code with the colon or the remote branch will be deleted ppSo that subsequent codegit pull code will know what to do you might instead want to use ppre codegit push set upstream lt remote name gt lt local branch name gt code prepAs described below the code set upstream code option sets up an upstream branch pblockquote pFor every branch that is up to date or successfully pushed add upstream tracking reference used by argument less git pull and other commands blockquote If you read correctly you see it says git push remote branch You failed to specify remote and just repeated the branch name twice pFirst you create your branch locally ppre codegit checkout lt branch name gt Create new branch and check it out code prepThe remote branch is automatically created when you push it to the remote server So when you feel ready for it you can just do ppre codegit push lt remote name gt lt branch name gt code prepWhere code lt remote name gt code is typically codeorigin code the name which git gives to the remote you cloned from Your colleagues would then just pull that branch and it automatically created locally ppNote however that formally the format is ppre codegit push lt remote name gt lt local branch name gt lt remote branch name gt code prepBut when you omit one it assumes both branch names are the same Having said this as word of strongcaution strong do not make the critical mistake of specifying only code lt remote branch name gt code with the colon or the remote branch will be deleted ppSo that subsequent codegit pull code will know what to do you might instead want to use ppre codegit push set upstream lt remote name gt lt local branch name gt code prepAs described below the code set upstream code option sets up an upstream branch pblockquote pFor every branch that is up to date or successfully pushed add upstream tracking reference used by argument less git pull and other commands blockquote It tells git checkout you want to create new branch instead of checking out an existing one or checking out file,0,NULL,NULL 16332,379453,326466,Popular Question Popular Question Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 16333,365690,326466,Popular Question Popular Question Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 16334,585567,646608,NULL,NULL,NULL,0,NULL,NULL 16335,321480,405798,Nice Answer,NULL,NULL,0,NULL,NULL 16336,1234608,922892,NULL,NULL,NULL,0,NULL,NULL 16337,118192,922892,NULL,NULL,NULL,0,NULL,NULL 16338,29721,993281,NULL,NULL,NULL,0,NULL,NULL 16339,24436,127335,Good Answer Good Answer Yearling Revival Guru Yearling Tumbleweed Great Answer Nice Answer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 16340,119955,1378893,NULL,NULL,NULL,0,NULL,NULL 16341,672388,1415457,Informed Teacher,NULL,NULL,0,NULL,NULL 16342,253945,984754,NULL,NULL,NULL,0,NULL,NULL 16343,263566,703437,Tumbleweed Popular Question Curious,NULL,NULL,0,NULL,NULL 16344,547038,399559,NULL,NULL,NULL,0,NULL,NULL 16345,99401,1092090,NULL,NULL,NULL,0,NULL,NULL 16346,228928,747753,NULL,NULL,NULL,0,NULL,NULL 16347,190549,1165051,Good Answer Yearling Critic Yearling Popular Question Commentator,NULL,NULL,0,NULL,NULL 16348,334175,509220,Nice Question Yearling,NULL,NULL,0,NULL,NULL 16349,1210201,389229,NULL,NULL,NULL,0,NULL,NULL 16350,907900,899977,Editor,NULL,NULL,0,NULL,NULL 16351,70334,1188534,Critic Promoter Nice Question Disciplined,NULL,NULL,0,NULL,NULL 16352,28305,69634,Famous Question Popular Question Notable Question Yearling Nice Answer Enlightened Good Answer Popular Question Popular Question Nice Question Nice Question Notable Question Nice Answer Famous Question Famous Question Popular Question Guru Favorite Question Announcer Nice Answer Nice Question Great Answer Famous Question Notable Question Yearling Famous Question Famous Question Favorite Question Popular Question Guru Custodian Great Answer Good Question Yearling Good Question Notable Question Great Answer Popular Question Nice Answer Popular Question Great Question,NULL,NULL,0,NULL,NULL 16353,271437,273444,Yearling Yearling Necromancer Nice Answer Nice Answer Enlightened Yearling Nice Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 16354,708172,1189158,Student,NULL,NULL,0,NULL,NULL 16355,4704251,846991,NULL,NULL,NULL,0,NULL,NULL 16356,2178558,846991,NULL,NULL,NULL,0,NULL,NULL 16357,630788,1520438,Yearling Autobiographer Yearling Revival Yearling Explainer Student Scholar Nice Answer Yearling Good Answer Caucus Yearling Caucus Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 16358,575424,595105,Notable Question Excavator Famous Question Notable Question Nice Answer Yearling Revival Popular Question Good Question Documentation User Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16359,155431,1287621,NULL,NULL,NULL,0,NULL,NULL 16360,365084,406864,Yearling,NULL,NULL,0,NULL,NULL 16361,61018,1275839,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16362,4018945,206617,Popular Question,NULL,NULL,0,NULL,NULL 16363,823129,695031,NULL,NULL,NULL,0,NULL,NULL 16364,45181,369939,NULL,NULL,NULL,0,NULL,NULL 16365,49845,835430,NULL,NULL,NULL,0,NULL,NULL 16366,8959,281552,NULL,NULL,NULL,0,NULL,NULL 16367,32489,577333,NULL,NULL,NULL,0,NULL,NULL 16368,55394,1480323,Popular Question,NULL,NULL,0,NULL,NULL 16369,597415,1156132,Tumbleweed Notable Question Student Supporter Popular Question Self-Learner Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 16370,1438149,744030,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16371,238332,40521,Popular Question Epic asp.net-web-api Popular Question linq Good Answer Famous Question Popular Question Famous Question Nice Answer asp.net-mvc-4 Good Question Famous Question Famous Question asp.net-mvc-3 Nice Answer Famous Question Nice Answer Enlightened Nice Question Nice Question Good Answer Generalist Guru Nice Answer Enlightened Notable Question Electorate Stellar Question Guru Guru Nice Answer Nice Answer Popular Question Nice Answer Guru Documentation Pioneer Nice Answer Nice Answer json Famous Question Nice Answer ajax asp.net-core-mvc Notable Question Nice Answer Enlightened Guru Good Answer asp.net-mvc-5 Good Answer Popular Question Good Answer Nice Question Notable Question Good Answer Nice Answer Caucus Good Answer Favorite Question Nice Answer Guru Yearling css Nice Answer Enlightened Nice Answer Enlightened Famous Question asp.net-core Nice Answer javascript Nice Answer Enlightened Nice Answer Guru Nice Answer Notable Question Good Answer Nice Answer Enlightened Notable Question Good Answer Good Answer Nice Question Notable Question Nice Answer Good Answer Popular Question Notable Question Famous Question Nice Answer Enlightened Nice Question Notable Question Popular Question Notable Question Notable Question Good Question Nice Answer Enlightened Nice Answer Announcer Good Answer Stellar Question Guru Nice Answer Enlightened Caucus Guru Good Answer Nice Answer Enlightened Notable Question Nice Answer Nice Question Necromancer Nice Answer c#-4.0 Nice Answer Good Answer Famous Question Nice Answer Enlightened Popular Question Nice Answer Nice Answer Revival Documentation User asp.net html Good Answer Popular Question Great Answer Deputy Strunk & White Nice Answer Enlightened Notable Question Famous Question Notable Question Yearling Nice Answer Enlightened Nice Answer Good Answer razor Nice Answer Nice Answer Enlightened Announcer Popular Question Notable Question Census Good Answer Nice Answer Nice Answer Notable Question Notable Question asp.net-core-mvc Nice Answer Guru Good Answer Good Answer Caucus Notable Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer asp.net-core Good Answer Notable Question Nice Answer Popular Question Revival Guru Great Question Guru Great Question Benefactor Notable Question Nice Answer Good Answer Announcer Nice Answer Famous Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Notable Question Guru Nice Answer Enlightened Stellar Question Nice Answer Enlightened Good Answer visual-studio Yearling Great Answer,NULL,NULL,0,NULL,NULL 16372,1510150,1078424,NULL,NULL,NULL,0,NULL,NULL 16373,395385,387989,Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 16374,128068,702009,Revival,NULL,NULL,0,NULL,NULL 16375,1315824,1254906,Tumbleweed,NULL,NULL,0,NULL,NULL 16376,339374,1373692,NULL,NULL,NULL,0,NULL,NULL 16377,83401,1532836,Notable Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 16378,270292,733685,NULL,NULL,NULL,0,NULL,NULL 16379,1367052,234822,Popular Question,NULL,NULL,0,NULL,NULL 16380,582789,1541749,Yearling Yearling,NULL,NULL,0,NULL,NULL 16381,270055,892249,Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16382,1190370,808879,NULL,NULL,NULL,0,NULL,NULL 16383,327374,1095707,Yearling Guru Yearling Caucus Yearling Custodian Excavator Great Answer Yearling,NULL,NULL,0,NULL,NULL 16384,1266153,899831,NULL,NULL,NULL,0,NULL,NULL 16385,577934,256917,Good Question Favorite Question Yearling Popular Question Popular Question Famous Question Notable Question Nice Question Nice Question Popular Question Notable Question Popular Question Notable Question Caucus Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Famous Question Popular Question Popular Question Great Question Popular Question Great Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Answer Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Favorite Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16386,8984138,256917,Good Question Favorite Question Yearling Popular Question Popular Question Famous Question Notable Question Nice Question Nice Question Popular Question Notable Question Popular Question Notable Question Caucus Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Famous Question Popular Question Popular Question Great Question Popular Question Great Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Answer Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Favorite Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16387,34524,455008,Announcer Guru Enlightened Excavator Notable Question Yearling Enlightened android Announcer Yearling Great Answer Caucus Popular Question Notable Question Nice Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 16388,820329,407668,NULL,NULL,NULL,0,NULL,NULL 16389,316068,210582,Notable Question,NULL,NULL,0,NULL,NULL 16390,1311840,1068539,Caucus Yearling Caucus Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 16391,555835,576810,Famous Question,NULL,NULL,0,NULL,NULL 16392,2674683,1523825,NULL,NULL,NULL,0,NULL,NULL 16393,454323,743655,Famous Question,NULL,NULL,0,NULL,NULL 16394,5123076,1177362,NULL,NULL,NULL,0,NULL,NULL 16395,1401758,1177362,NULL,NULL,NULL,0,NULL,NULL 16396,654078,910435,Necromancer Critic Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 16397,1801405,990251,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16398,48656,663181,NULL,NULL,NULL,0,NULL,NULL 16399,179517,394200,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16400,7276635,140800,Commentator Yearling Famous Question Good Question Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 16401,25320,140800,Commentator Yearling Famous Question Good Question Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 16402,1994845,771464,NULL,NULL,NULL,0,NULL,NULL 16403,319471,214352,Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 16404,283149,517718,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16405,20681,592510,Notable Question,NULL,NULL,0,NULL,NULL 16406,425098,933963,Nice Answer Popular Question Popular Question Yearling Good Answer Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 16407,3466,656833,Yearling Notable Question Nice Question Famous Question Nice Answer Nice Question Documentation Pioneer Quorum Yearling Good Question Yearling Nice Answer Popular Question Notable Question Documentation User Yearling Popular Question Caucus Popular Question Announcer Nice Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 16408,416005,593851,NULL,NULL,NULL,0,NULL,NULL 16409,148532,325677,Teacher Supporter,NULL,NULL,0,NULL,NULL 16410,6273556,1236829,NULL,NULL,NULL,0,NULL,NULL 16411,33561,744300,Nice Answer Custodian Suffrage Vox Populi Commentator Citizen Patrol Organizer Civic Duty Custodian Yearling Custodian Student Reviewer Enthusiast Scholar Reviewer Excavator,NULL,NULL,0,NULL,NULL 16412,853903,163872,Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 16413,1345648,1318839,NULL,NULL,NULL,0,NULL,NULL 16414,486350,189336,Nice Question Self-Learner Notable Question Nice Question Notable Question Notable Question Good Question Custodian Citizen Patrol Notable Question Popular Question Yearling Notable Question Caucus Nice Question Famous Question Good Question Revival Custodian Necromancer Favorite Question Yearling Inquisitive Announcer Necromancer Nice Answer Great Question Nice Question Good Question Promoter Benefactor Famous Question Popular Question Nice Answer Famous Question Good Answer Popular Question Yearling Cleanup,NULL,pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre Strangely when run this get pyspark sql utils AnalysisException unresolved operator Union This seems to be some kind of spark bug maybe someone else knows what going on pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre yes thanks for catching that pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre sorry wasn able to test this code just sketched out what the overall approach should be really should have mentioned that ve updated the answer to note that were you able to modify this code to get it to work if so can you let me know what need to change pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre thanks ve added line the second to last line to the code that ensures the columns are in the same order ve avoided doing any sorting because think the only important thing is that the orders are same they don need to be sorted Let me know what you think haven tested this yet as don have spark environment handy at the moment pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre thanks ll remove the disclaimers about the code not being tested,1,NULL,How to perform union on two DataFrames with different amounts of columns in spark apache spark apache spark sql pI have codeDataFrame codes as followed pp href https stack imgur com L4qs0 png rel noreferrer img src https stack imgur com L4qs0 png alt Source data ppI need union like this pp href https stack imgur com mdICY png rel noreferrer img src https stack imgur com mdICY png alt enter image description here ppThe codeunionAll code function doesn work because the number and the name of columns are different ppHow can do this pHere pyspark solution ppIt assumes that if field in codedf1 code is missing from codedf2 code then you add that missing field to codedf2 code with null values However it also assumes that if the field exists in both dataframes but the type or nullability of the field is different then the two dataframes conflict and cannot be combined In that case raise codeTypeError code ppre class lang py prettyprint override codefrom pyspark sql functions import litdef harmonize schemas and combine df left df right left types name dataType for in df left schema right types name dataType for in df right schema left fields set name dataType nullable for in df left schema right fields set name dataType nullable for in df right schema First go over left unique fields for name type nullable in left fields difference right fields if name in right types type left types name if type type raise TypeError Union failed Type conflict on field left type right type name type type else raise TypeError Union failed Nullability conflict on field left nullable right nullable name nullable not nullable df right df right withColumn name lit None cast type Now go over right unique fields for name type nullable in right fields difference left fields if name in left types type right types name if type type raise TypeError Union failed Type conflict on field right type left type name type type else raise TypeError Union failed Nullability conflict on field right nullable left nullable name nullable not nullable df left df left withColumn name lit None cast type Make sure columns are in the same order df left df left select df right columns return df left union df right code pre 16415,273696,362377,Revival Yearling Revival Necromancer Nice Answer Enlightened Caucus Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 16416,504753,359009,Autobiographer Yearling,NULL,NULL,0,NULL,NULL 16417,19307,292854,Popular Question,NULL,NULL,0,NULL,NULL 16418,68210,1139893,Autobiographer,NULL,NULL,0,NULL,NULL 16419,4062609,384243,Yearling Guru,NULL,NULL,0,NULL,NULL 16420,180230,946610,Supporter Student Popular Question Informed,NULL,Why template is not compiling in tests angularjs unit testing karma runner pI wrote href https github com PavelDemyanenko ng countdown ribbon blob 58f83a1a25de67edce7d0e01a0f0d254811a9d30 tests ng countdown ribbon spec js rel nofollow noreferrer spec for my controller Angular module ngCountdownRibbon has logic that adds ribbon with counter to document body In getRibbonDate function want to access this computed values and check them in test innerText of html element But somehow it not compiled when try to get it How can get this spec working pp strongThe desired behavior strong ppCompiled code appended in document body should be ppre code lt ng href http amzn com ZWFNUL8AGNLP class ribbon container ng scope target blank href http amzn com ZWFNUL8AGNLP gt lt span class ribbon ribbon left ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt day left lt ng pluralize gt lt span gt lt span gt lt gt code prep strongWhat get in compiled code now strong ppre codeLOG lt ng href ngCountdownRibbon ribbonLink class ribbon container ng scope target blank gt lt span class ribbon ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt lt ng pluralize gt lt span gt lt span gt lt gt code prepThe shortest way to reproduce is to fork href https github com PavelDemyanenko ng countdown ribbon rel nofollow noreferrer repo and run npm test command from branch init tests Yeah sure ll edit this question in minute Why template is not compiling in tests angularjs unit testing karma runner pI wrote href https github com PavelDemyanenko ng countdown ribbon blob 58f83a1a25de67edce7d0e01a0f0d254811a9d30 tests ng countdown ribbon spec js rel nofollow noreferrer spec for my controller Angular module ngCountdownRibbon has logic that adds ribbon with counter to document body In getRibbonDate function want to access this computed values and check them in test innerText of html element But somehow it not compiled when try to get it How can get this spec working pp strongThe desired behavior strong ppCompiled code appended in document body should be ppre code lt ng href http amzn com ZWFNUL8AGNLP class ribbon container ng scope target blank href http amzn com ZWFNUL8AGNLP gt lt span class ribbon ribbon left ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt day left lt ng pluralize gt lt span gt lt span gt lt gt code prep strongWhat get in compiled code now strong ppre codeLOG lt ng href ngCountdownRibbon ribbonLink class ribbon container ng scope target blank gt lt span class ribbon ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt lt ng pluralize gt lt span gt lt span gt lt gt code prepThe shortest way to reproduce is to fork href https github com PavelDemyanenko ng countdown ribbon rel nofollow noreferrer repo and run npm test command from branch init tests done Why template is not compiling in tests angularjs unit testing karma runner pI wrote href https github com PavelDemyanenko ng countdown ribbon blob 58f83a1a25de67edce7d0e01a0f0d254811a9d30 tests ng countdown ribbon spec js rel nofollow noreferrer spec for my controller Angular module ngCountdownRibbon has logic that adds ribbon with counter to document body In getRibbonDate function want to access this computed values and check them in test innerText of html element But somehow it not compiled when try to get it How can get this spec working pp strongThe desired behavior strong ppCompiled code appended in document body should be ppre code lt ng href http amzn com ZWFNUL8AGNLP class ribbon container ng scope target blank href http amzn com ZWFNUL8AGNLP gt lt span class ribbon ribbon left ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt day left lt ng pluralize gt lt span gt lt span gt lt gt code prep strongWhat get in compiled code now strong ppre codeLOG lt ng href ngCountdownRibbon ribbonLink class ribbon container ng scope target blank gt lt span class ribbon ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt lt ng pluralize gt lt span gt lt span gt lt gt code prepThe shortest way to reproduce is to fork href https github com PavelDemyanenko ng countdown ribbon rel nofollow noreferrer repo and run npm test command from branch init tests but it works though these attributes are only seen when edit html code from inspector to copy it her Rendered version can be seen here http paveldemyanenko github io ng countdown ribbon as you can see no illegal characters in inspector Only when you edit you see these illegal characters don know why it works like that in browser,1,Why template is not compiling in tests angularjs unit testing karma runner pI wrote href https github com PavelDemyanenko ng countdown ribbon blob 58f83a1a25de67edce7d0e01a0f0d254811a9d30 tests ng countdown ribbon spec js rel nofollow noreferrer spec for my controller Angular module ngCountdownRibbon has logic that adds ribbon with counter to document body In getRibbonDate function want to access this computed values and check them in test innerText of html element But somehow it not compiled when try to get it How can get this spec working pp strongThe desired behavior strong ppCompiled code appended in document body should be ppre code lt ng href http amzn com ZWFNUL8AGNLP class ribbon container ng scope target blank href http amzn com ZWFNUL8AGNLP gt lt span class ribbon ribbon left ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt day left lt ng pluralize gt lt span gt lt span gt lt gt code prep strongWhat get in compiled code now strong ppre codeLOG lt ng href ngCountdownRibbon ribbonLink class ribbon container ng scope target blank gt lt span class ribbon ng class ngCountdownRibbon ribbonClass gt lt span gt lt ng pluralize count ngCountdownRibbon ribbonDays when Event has come one day left other days left lt ng pluralize gt lt ng pluralize gt lt span gt lt span gt lt gt code prepThe shortest way to reproduce is to fork href https github com PavelDemyanenko ng countdown ribbon rel nofollow noreferrer repo and run npm test command from branch init tests,NULL 16421,501975,770646,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16422,613978,837113,NULL,NULL,NULL,0,NULL,NULL 16423,487962,659490,Famous Question Informed Famous Question Popular Question Cleanup Custodian,NULL,NULL,0,NULL,NULL 16424,132556,449483,Popular Question Yearling Favorite Question Yearling Notable Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 16425,53432,587429,Teacher Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 16426,196635,757031,NULL,NULL,NULL,0,NULL,NULL 16427,359664,113134,Popular Question Popular Question Yearling Notable Question Popular Question Yearling Custodian Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 16428,54772,571009,Good Answer,NULL,NULL,0,NULL,NULL 16429,77234,579082,NULL,NULL,NULL,0,NULL,NULL 16430,836694,313842,Great Question Yearling Famous Question Yearling Favorite Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 16431,1037768,34806,Notable Question Good Question Announcer Necromancer Popular Question Popular Question Popular Question Announcer Popular Question Popular Question Necromancer Nice Question Famous Question Notable Question Announcer Nice Answer Nice Question Nice Answer Popular Question Notable Question Announcer Yearling Tenacious Notable Question Nice Answer Good Question Explainer Popular Question Famous Question Popular Question Notable Question Popular Question Announcer Popular Question Popular Question Famous Question Notable Question Announcer Nice Question Announcer Yearling Popular Question Announcer Good Answer Announcer Announcer Taxonomist Nice Answer Notable Question Yearling Notable Question,NULL,pSmartLove answer unfortunately falls short if you re going to no op code fn modal Constructor prototype enforceFocus code you should reset it when your modal closes the following is directly from our code about which have emno qualms em putting into production ppre code Since confModal is essentially nested modal it enforceFocus method must be no op or the following error results Uncaught RangeError Maximum call stack size exceeded But then when the nested modal is hidden we reset modal enforceFocusvar enforceModalFocusFn fn modal Constructor prototype enforceFocus fn modal Constructor prototype enforceFocus function confModal on hidden function fn modal Constructor prototype enforceFocus enforceModalFocusFn confModal modal backdrop false code pre Sorry was not clear that confModal is reference to modal in my code that has already been instantiated just substitute this with reference to your own instantiated modal pFirst let’s clarify href https git scm com book tr v2 Git Internals Git References rel noreferrer what HEAD is and what it means when it is detached ppHEAD is the symbolic name for the currently checked out commit When HEAD is not detached the “normal”sup1 sup situation you have branch checked out HEAD actually points to branch’s “ref” and the branch points to the commit HEAD is thus “attached” to branch When you make new commit the branch that HEAD points to is updated to point to the new commit HEAD follows automatically since it just points to the branch pulli codegit symbolic ref HEAD code yields coderefs heads master code brThe branch named “master” is checked out lili codegit rev parse refs heads master code yield code17a02998078923f2d62811326d130de991d1a95a code brThat commit is the current tip or “head” of the master branch lili codegit rev parse HEAD code also yields code17a02998078923f2d62811326d130de991d1a95a code brThis is what it means to be “symbolic ref” It points to an object through some other reference br Symbolic refs were originally implemented as symbolic links but later changed to plain files with extra interpretation so that they could be used on platforms that do not have symlinks li ulpWe have codeHEAD code coderefs heads master code code17a02998078923f2d62811326d130de991d1a95a code ppWhen HEAD is detached it points directly to commit—instead of indirectly pointing to one through branch You can think of detached HEAD as being on an unnamed branch pulli codegit symbolic ref HEAD code fails with codefatal ref HEAD is not symbolic ref code lili codegit rev parse HEAD code yields code17a02998078923f2d62811326d130de991d1a95a code brSince it is not symbolic ref it must point directly to the commit itself li ulpWe have codeHEAD code code17a02998078923f2d62811326d130de991d1a95a code ppThe important thing to remember with detached HEAD is that if the commit it points to is otherwise unreferenced no other ref can reach it then it will become “dangling” when you checkout some other commit Eventually such dangling commits will be pruned through the garbage collection process by default they are kept for at least weeks and may be kept longer by being referenced by HEAD’s reflog pp sup1 supIt is perfectly fine to do “normal” work with detached HEAD you just have to keep track of what you are doing to avoid having to fish dropped history out of the reflog phrpThe intermediate steps of an interactive rebase are done with detached HEAD partially to avoid polluting the active branch’s reflog If you finish the full rebase operation it will update your original branch with the cumulative result of the rebase operation and reattach HEAD to the original branch My guess is that you never fully completed the rebase process this will leave you with detached HEAD pointing to the commit that was most recently processed by the rebase operation ppTo recover from your situation you should create branch that points to the commit currently pointed to by your detached HEAD ppre codegit branch tempgit checkout temp code prep sub these two commands can be abbreviated as codegit checkout temp code sub ppThis will reattach your HEAD to the new codetemp code branch ppNext you should compare the current commit and its history with the normal branch on which you expected to be working ppre codegit log graph decorate pretty oneline abbrev commit master origin master tempgit diff master tempgit diff origin master temp code prep You will probably want to experiment with the log options add code code leave off code pretty code to see the whole log message etc ppIf your new codetemp code branch looks good you may want to update codemaster code to point to it ppre codegit branch master tempgit checkout master code prep sub these two commands can be abbreviated as codegit checkout master temp code sub ppYou can then delete the temporary branch ppre codegit branch temp code prepFinally you will probably want to push the reestablished history ppre codegit push origin master code prepYou may need to add code force code to the end of this command to push if the remote branch can not be “fast forwarded” to the new commit you dropped or rewrote some existing commit or otherwise rewrote some bit of history ppIf you were in the middle of rebase operation you should probably clean it up You can check whether rebase was in process by looking for the directory code git rebase merge code You can manually clean up the in progress rebase by just deleting that directory if you no longer remember the purpose and context of the active rebase operation Usually you would use codegit rebase abort code but that does some extra resetting that you probably want to avoid it moves HEAD back to the original branch and resets it back to the original commit which will undo some of the work we did above Ridiculously long find answers with as many upvotes to be more immediately useful because don have to read through bunch of cruft,0,NULL,NULL 16432,5601728,323,Good Question Notable Question,NULL,NULL,0,NULL,NULL 16433,146769,1048712,NULL,NULL,NULL,0,NULL,NULL 16434,226506,1059594,NULL,NULL,NULL,0,NULL,NULL 16435,888889,647952,Yearling Good Question Yearling Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16436,336458,1550057,NULL,NULL,NULL,0,NULL,NULL 16437,16941,211327,Guru Popular Question Proofreader Organizer Custodian Civic Duty Notable Question Nice Answer Famous Question Good Question Reviewer Popular Question Popular Question Good Question Great Answer Yearling Famous Question Famous Question Notable Question Nice Question Notable Question Nice Question Good Answer Famous Question Popular Question Popular Question Popular Question Populist Custodian Good Answer Yearling Nice Question Notable Question Favorite Question Notable Question Popular Question Custodian Suffrage Vox Populi Custodian Nice Question Necromancer Popular Question Notable Question Revival Yearling Nice Question,NULL,How do remove the passphrase for the SSH key without having to create new key unix ssh passwords openssh passphrase pI set passphrase when creating new SSH key on my laptop But as realise now this is quite painful when you are trying to commit href http en wikipedia org wiki Git 28software 29 rel noreferrer Git and href http en wikipedia org wiki Apache Subversion rel noreferrer SVN to remote location over SSH many times in an hour ppOne way can think of is delete my SSH keys and create new Is there way to remove the passphrase while still keeping the same keys agree this is good question and if the mods want to move it to SuperUser with redirect that great but it shouldn just be closed when the community has spoken so strongly In vanilla JavaScript turn relative path base URL into absolute URL javascript dom pIn Ruby it’s simple to do this but in JavaScript I’m not sure ppGiven starting page such as codehttp example org foo bar code want to be able to take any link on the page which can have any sort of codehref code such as code php code code code codey html code etc and turn it into fully qualified absolute URL such as in the last example codehttp example org foo html code ppIs there any sort of simple way to do this If it helps we can assume these paths do live in an actual web page as actual code lt href gt code elements Hi my goal involves lifting section of HTML to be published elsewhere as quoted rich text The links should still function in their new home h1Technical Background h1pThe third party sets amp reads cookies over HTTP not in JavaScript ppSo we need two requests to an external domain to test if third party cookies are enabled polliOne where the third party sets the cookie liliThe second with differing response depending on whether the browser sent the cookie back to the same third party in second request li olpWe cannot use XMLHTTPRequest Ajax because of the DOM security model ppObviously you can load both scripts in parallel or the second request may be made embefore em the first request’s response makes it back and the test cookie will not have been set ph1Code Example h1pGiven polli pThe code html code file is on one domain and lili pThe code js php code files are on second domain we have li olh3The HTML test page h3pSaved as codethird party cookies html code ppre code lt DOCTYPE html gt lt html gt lt head id head gt lt meta charset utf gt lt title gt Test if Third Party Cookies are Enabled lt title gt lt style type text css gt body color black background white none error color c00 loading color 888 hidden display none lt style gt lt script type text javascript gt window 3rd party test step1 loaded function At this point third party domain has now attempted to set cookie if all went to plan var step2Url http third party example com step2 js php resultsEl document getElementById 3rd party cookie test results step2El document createElement script Update loading results message resultsEl innerHTML Stage one complete loading stage amp hellip And load the second part of the test reading the cookie step2El setAttribute src step2Url resultsEl appendChild step2El window 3rd party test step2 loaded function cookieSuccess var resultsEl document getElementById 3rd party cookie test results errorEl document getElementById 3rd party cookie test error Show message resultsEl innerHTML cookieSuccess Third party cookies are lt gt functioning lt gt in your browser Third party cookies appear to be lt gt disabled lt gt Done so remove loading class resultsEl className resultsEl className replace bloading And remove error message errorEl className hidden lt script gt lt head gt lt body id thebody gt lt h1 gt Test if Third Party Cookies are Enabled lt h1 gt lt id 3rd party cookie test results class loading gt Testing amp hellip lt gt lt id 3rd party cookie test error class error hidden gt If this message persists the test could not be completed we could not reach the third party to test or another error occurred lt gt lt script type text javascript gt window setTimeout function var errorEl document getElementById 3rd party cookie test error if errorEl className match berror Show error message errorEl className errorEl className replace bhidden else 1000 sec timeout lt script gt lt script type text javascript src http third party example com step1 js php gt lt script gt lt body gt lt html gt code preh3The first third party JavaScript file h3pSaved as codestep1 js php code ppThis is written in PHP so we can set cookies as the file loads It could of course be written in any language or even done in server config files ppre code lt php header Content Type application javascript charset UTF Set test cookie setcookie third party hey there time 3600 24 gt window 3rd party test step1 loaded code preh3The second third party JavaScript file h3pSaved as codestep2 js php code ppThis is written in PHP so we can read cookies server side before we respond We also clear the cookie so the test can be repeated if you want to mess around with browser settings and re try ppre code lt php header Content Type application javascript charset UTF Read test cookie if there cookie received isset COOKIE third party amp amp COOKIE third party hey there And clear it so the user can test it again setcookie third party time 3600 24 gt window 3rd party test step2 loaded lt php echo cookie received true false gt code prepThe last line uses the ternary operator to output literal Javascript codetrue code or codefalse code depending on whether the test cookie was present ph1 href https alanhogan github io web experiments 3rd third party cookies html rel noreferrer Test it here h1pAvailable for your testing pleasure at href https alanhogan github io web experiments 3rd third party cookies html rel noreferrer https alanhogan github io web experiments 3rd third party cookies html pp As final note strongdon’t use someone else’s server strong to test third party cookies without their permission It could break spontaneously or inject malware And it’s rude I’m deleting some outdated comments from above but fixed my example test within few days of ’s helpful note I’d be experiencing issues thanks to my former web host’s epic failure in handling my SSL renewal Please let me know if the test breaks in the future https alanhogan com contact reason 3rd 20party 20cookie 20test,1,In vanilla JavaScript turn relative path base URL into absolute URL javascript dom pIn Ruby it’s simple to do this but in JavaScript I’m not sure ppGiven starting page such as codehttp example org foo bar code want to be able to take any link on the page which can have any sort of codehref code such as code php code code code codey html code etc and turn it into fully qualified absolute URL such as in the last example codehttp example org foo html code ppIs there any sort of simple way to do this If it helps we can assume these paths do live in an actual web page as actual code lt href gt code elements,NULL 16438,172230,1198264,Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 16439,98177,411248,NULL,NULL,NULL,0,NULL,NULL 16440,722032,1234545,Supporter,NULL,NULL,0,NULL,NULL 16441,230030,47135,Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 16442,288336,995546,NULL,NULL,NULL,0,NULL,NULL 16443,284851,973611,Nice Question Notable Question Teacher Famous Question Popular Question,NULL,NULL,0,NULL,NULL 16444,324195,1275732,NULL,NULL,NULL,0,NULL,NULL 16445,90950,464279,NULL,NULL,NULL,0,NULL,NULL 16446,395123,243467,Curious Documentation User Popular Question Excavator Notable Question,NULL,NULL,0,NULL,NULL 16447,192765,1379732,Good Answer Popular Question Yearling Nice Question Popular Question Popular Question Yearling Notable Question Guru Nice Answer Enlightened Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 16448,189103,1324721,NULL,NULL,NULL,0,NULL,NULL 16449,976937,347009,NULL,NULL,NULL,0,NULL,NULL 16450,86259,1082800,NULL,NULL,NULL,0,NULL,NULL 16451,146941,1060210,Necromancer Necromancer Excavator Yearling Caucus,NULL,NULL,0,NULL,NULL 16452,852709,428359,NULL,NULL,NULL,0,NULL,NULL 16453,383492,543987,Notable Question,NULL,NULL,0,NULL,NULL 16454,107174,188702,Good Answer Nice Answer Enlightened Nice Answer Great Answer Populist Yearling Caucus javascript Notable Question Nice Answer Enlightened Nice Answer Caucus Custodian Yearling Nice Answer Popular Question Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 16455,529433,1109994,NULL,NULL,NULL,0,NULL,NULL 16456,60772,132780,Popular Question,NULL,NULL,0,NULL,NULL 16457,8771488,1013796,NULL,NULL,NULL,0,NULL,NULL 16458,21468,1013796,NULL,NULL,NULL,0,NULL,NULL 16459,786960,1391325,Yearling Notable Question Autobiographer Yearling Enthusiast Citizen Patrol Yearling Famous Question Quorum Organizer Famous Question Custodian Yearling Nice Question Nice Answer Fanatic Yearling Popular Question,NULL,NULL,1,Java audio Clip cannot be closed when using Linux PulseAudio java linux audio openjdk pulseaudio pI trying to play sound in Java application but the application never actually terminates because the PulseAudio Eventloop thread is left running even after trying to href https docs oracle com javase docs api javax sound sampled Line html close rel nofollow noreferrer close the href https docs oracle com javase docs api javax sound sampled Clip html rel nofollow noreferrer codeClip code instance used for playing the sound ppre codeimport java io File import java io IOException import javax sound sampled AudioFormat import javax sound sampled AudioInputStream import javax sound sampled AudioSystem import javax sound sampled Clip import javax sound sampled DataLine import javax sound sampled LineEvent import javax sound sampled LineListener import javax sound sampled LineUnavailableException import javax sound sampled UnsupportedAudioFileException final class AudioClipTest public static void main String args throws UnsupportedAudioFileException IOException LineUnavailableException try AudioInputStream instream AudioSystem getAudioInputStream new File resources test sound wav final AudioFormat format instream getFormat final Clip clip Clip AudioSystem getLine new DataLine Info Clip class format clip addLineListener new LineListener public void update final LineEvent event if event getType LineEvent Type STOP System out println Finished playing audio event getLine close FIXME This line is never reached on Linux with PulseAudio System out println Closed audio data line clip open instream clip start code prepOn my Linux machinesup dagger sup the above main method plays the relevant sound prints pblockquote pFinished playing audio blockquotepand then hangs while on Windowssup ddagger sup machine it prints pblockquote pFinished playing audio pClosed audio data line blockquotepand exits properly ppThe actual codeClip code implementation used on the Linux machine is codeorg classpath icedtea pulseaudio PulseAudioClip code whereas on Windows it is codecom sun media sound DirectAudioDevice DirectClip code strongWhat is going on here mdash What is codePulseAudioClip close code doing which isn returning strong phrp sup dagger sup strongDistribution strong emLinux Mint 18 em strongKernel strong em4 92 generic x86 64 em strongOpenJDK strong em8u131 b11 2ubuntu1 16 04 em strongPulseAudio strong em1 ubuntu3 em pp sup ddagger sup strongDistribution strong emWindows 10 Pro em strongVersion strong em1703 em strongOS Build strong em15063 540 x64 em strongOracle JDK strong em1 144 b01 em strongDirectX strong emversion 12 em,NULL 16460,344410,888961,NULL,NULL,NULL,0,NULL,NULL 16461,669288,580030,Famous Question,NULL,NULL,0,NULL,NULL 16462,288456,884719,NULL,NULL,NULL,0,NULL,NULL 16463,859922,884719,NULL,NULL,NULL,0,NULL,NULL 16464,46671,1523955,NULL,NULL,NULL,0,NULL,NULL 16465,87469,1363309,Yearling Nice Answer Enlightened Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16466,3929501,250435,Nice Question Necromancer Nice Answer Popular Question Yearling Revival Famous Question Yearling Necromancer Good Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 16467,72346,405133,NULL,NULL,,0,, 16468,118126,572507,Editor Excavator,NULL,NULL,0,NULL,NULL 16469,171656,433436,NULL,NULL,NULL,0,NULL,NULL 16470,742881,549944,Enthusiast Popular Question Yearling Necromancer Critic,NULL,NULL,0,NULL,NULL 16471,72314,641089,NULL,NULL,NULL,0,NULL,NULL 16472,73678,1489528,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 16473,165322,763770,Custodian Custodian Yearling Nice Answer Good Answer Caucus Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16474,39360,218711,NULL,NULL,NULL,0,NULL,NULL 16475,1529959,643935,Supporter,NULL,NULL,0,NULL,NULL 16476,4144,42146,Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16477,109618,586,Nice Answer Good Answer Popular Question Yearling Caucus Yearling Necromancer Excavator Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 16478,115443,180975,Notable Question Nice Answer Popular Question Popular Question Yearling Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 16479,36465,440712,Popular Question,NULL,NULL,0,NULL,NULL 16480,542874,643933,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 16481,541950,511816,NULL,NULL,NULL,0,NULL,NULL 16482,1516258,207217,NULL,NULL,NULL,0,NULL,NULL 16483,313405,294946,Famous Question Revival Self-Learner Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 16484,223007,285932,Popular Question,NULL,NULL,0,NULL,NULL 16485,50779,637857,Popular Question Yearling Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16486,161472,1190642,Popular Question,NULL,NULL,0,NULL,NULL 16487,52949,173892,Nice Question Famous Question Famous Question Excavator Yearling Great Answer Good Question Popular Question android Nice Question Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 16488,15032,985610,Revival,NULL,NULL,0,NULL,NULL 16489,444248,266109,NULL,NULL,NULL,0,NULL,NULL 16490,194118,1149206,Caucus Excavator Promoter Benefactor Critic Curious,NULL,NULL,0,NULL,NULL 16491,327784,911520,NULL,NULL,NULL,0,NULL,NULL 16492,29401,145373,Good Question,NULL,NULL,0,NULL,NULL 16493,270296,150214,Student,NULL,NULL,0,NULL,NULL 16494,909160,428436,Necromancer,NULL,NULL,0,NULL,NULL 16495,68756,1253233,Revival Yearling Revival Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 16496,908276,1312722,Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Revival Great Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Necromancer Necromancer Caucus Good Answer Good Answer Necromancer Yearling Guru Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 16497,121372,1201801,Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 16498,565542,597430,Yearling Popular Question Popular Question Popular Question Editor Notable Question,NULL,NULL,0,NULL,NULL 16499,353919,1265773,NULL,NULL,NULL,0,NULL,NULL 16500,275770,1182404,NULL,NULL,NULL,0,NULL,NULL 16501,116937,373962,Popular Question java Popular Question Nice Question Good Answer Good Answer Good Question Yearling Nice Answer Enlightened Famous Question Nice Question Nice Answer Popular Question Nice Answer Popular Question Popular Question Nice Question Good Question Popular Question Popular Question Notable Question Good Answer Famous Question Yearling Notable Question Nice Answer Popular Question Guru Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 16502,169486,1502060,NULL,NULL,NULL,0,NULL,NULL 16503,191985,917982,NULL,NULL,NULL,0,NULL,NULL 16504,568556,1013713,Curious Caucus Popular Question Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 16505,13416,8912,Popular Question Nice Answer Enlightened Guru Good Answer Great Answer Good Answer Revival Yearling Good Answer Famous Question Nice Answer Guru Yearling Nice Answer Enlightened Good Question Popular Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16506,792310,231952,Yearling Critic,NULL,NULL,0,NULL,NULL 16507,1869422,1228343,Yearling Yearling Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 16508,92893,1067337,Yearling Necromancer Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 16509,159971,328993,Notable Question Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 16510,378066,681632,NULL,NULL,NULL,0,NULL,NULL 16511,13040,422977,Yearling Nice Answer Caucus Census Caucus,NULL,NULL,0,NULL,NULL 16512,705800,1010878,NULL,NULL,NULL,0,NULL,NULL 16513,266096,138475,Good Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Guru Nice Answer Good Answer Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer Great Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Guru Great Answer Good Answer Yearling Guru Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Nice Question Guru Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Great Answer Enlightened Guru Nice Answer Good Answer Great Answer Good Answer Good Answer Great Answer Great Answer Nice Answer Enlightened Populist Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Good Answer Census Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Guru Guru Great Answer Guru Great Answer Great Answer Great Answer Guru Guru Good Answer Yearling Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Guru Great Answer Great Answer Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Guru Nice Answer Enlightened Great Answer Guru Populist Guru Guru Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Good Answer Guru Good Answer Good Answer Nice Answer Enlightened image Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Guru Good Answer Great Answer Nice Answer Nice Answer Good Answer Nice Answer Yearling Good Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 16514,299063,1374569,Informed Autobiographer,NULL,NULL,0,NULL,NULL 16515,250441,664898,Nice Answer html Citizen Patrol Yearling Nice Answer Famous Question Popular Question Good Answer Yearling Yearling Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16516,102598,535516,NULL,NULL,NULL,0,NULL,NULL 16517,2105,947019,Revival,NULL,NULL,0,NULL,NULL 16518,117297,462954,Necromancer Yearling Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 16519,168009,886380,Popular Question Census Necromancer Documentation User Necromancer Census,NULL,NULL,0,NULL,NULL 16520,1163447,1021965,Popular Question Notable Question Yearling Famous Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 16521,1270907,1241517,NULL,NULL,NULL,0,NULL,NULL 16522,210579,158007,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 16523,147080,1429373,NULL,NULL,NULL,0,NULL,NULL 16524,177016,1289348,NULL,NULL,NULL,0,NULL,NULL 16525,3008,711570,NULL,NULL,NULL,0,NULL,NULL 16526,504819,1520083,Good Answer ruby-on-rails Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Caucus Yearling Guru Guru Good Answer Civic Duty Yearling,NULL,NULL,0,NULL,NULL 16527,40043,782565,NULL,NULL,NULL,0,NULL,NULL 16528,10161,808928,NULL,NULL,NULL,0,NULL,NULL 16529,582730,1335827,Citizen Patrol Enthusiast Yearling Notable Question Informed,NULL,NULL,0,NULL,NULL 16530,73046,1006745,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16531,887222,486533,NULL,NULL,NULL,0,NULL,NULL 16532,822818,806318,Popular Question Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 16533,9674384,806318,Popular Question Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 16534,115910,380905,NULL,NULL,NULL,0,NULL,NULL 16535,549560,1309964,Nice Question Notable Question Commentator Famous Question Tumbleweed Good Question Teacher Yearling Popular Question Popular Question Notable Question Favorite Question Revival Yearling,NULL,NULL,0,NULL,NULL 16536,1345659,39437,NULL,NULL,NULL,0,NULL,NULL 16537,53966,1196641,Custodian Custodian Commentator Yearling,NULL,NULL,0,NULL,NULL 16538,197861,230092,NULL,NULL,NULL,0,NULL,NULL 16539,377988,1164631,NULL,NULL,NULL,0,NULL,NULL 16540,164990,1140524,Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Famous Question Nice Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Yearling Famous Question Notable Question Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16541,226566,231686,NULL,NULL,NULL,0,NULL,NULL 16542,162165,906838,NULL,NULL,NULL,0,NULL,NULL 16543,567615,914965,NULL,NULL,NULL,0,NULL,NULL 16544,531504,358388,NULL,NULL,NULL,0,NULL,NULL 16545,315678,319952,Great Answer Good Question Guru Yearling Nice Answer Enlightened Famous Question Yearling Famous Question Necromancer Nice Answer Revival Popular Question Good Answer Necromancer Great Answer Popular Question Nice Answer Yearling Notable Question Good Answer,NULL,pYes you can But if you have non unique entries on your table it will fail Here is the how to add unique constraint on your table If you re using PostgreSQL you can follow below instruction ppre codeCREATE UNIQUE INDEX constraint name ON table name columns code pre Edited the answer for clarity,1,NULL,TypeError float argument must be string or number not Period python pandas matplotlib pI have pandas dataframe with columns like this ppre codedf columns pd to datetime list df list df 2017 01 2016 01 code prepThen performed an interpolation in each row of the dataset because have some NaNs that want to get rid off Here is the result printed ppre codeORIGINAL 2007 12 01 NaN 2008 12 01 NaN 2009 12 01 NaN 2010 12 01 35 2011 12 01 67 2012 12 01 NaN 2013 12 01 NaN 2014 12 01 03 2015 12 01 37 2016 12 01 NaN 2017 12 01 NaN Name row1 dtype float64 INTERPOLATION 2007 12 01 350000 2008 12 01 350000 2009 12 01 350000 2010 12 01 350000 2011 12 01 670000 2012 12 01 790219 2013 12 01 910109 2014 12 01 030000 2015 12 01 370000 2016 12 01 370000 2017 12 01 370000 Name row1 dtype float64 code prepThen try to plot the interpolated row and get ppre codeTypeError float argument must be string or number not Period code prepThe whole code ppre codeprint ORIGINAL series interpolation series interpolate method func limit 10 limit direction both interpolation plot print INTERPOLATION interpolation code prepIt seems to me that the error is in the time values in the series but think matplotlib should be hable to handle it so doing something wrong for sure Thanks in advance pThis is bug in Pandas and will be fixed by the href https github com pandas dev pandas issues 14763 rel nofollow noreferrer next major release by August 31 2018 if everything goes swimmingly ppFor now workaround have to do That or install an earlier version of pandas such as 20 16546,392352,484674,Teacher Supporter Citizen Patrol Enthusiast Scholar Commentator Critic Yearling Explainer Yearling Self-Learner Caucus Revival Constituent Civic Duty Popular Question Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 16547,628142,1457398,Yearling Curious Yearling Popular Question Nice Question Self-Learner Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16548,209005,1252079,Critic Enthusiast Yearling,NULL,NULL,0,NULL,NULL 16549,1287359,1258421,Popular Question Popular Question Curious Popular Question Popular Question Notable Question Nice Answer Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Yearling Famous Question Nice Question Caucus Good Answer Notable Question Popular Question Critic Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16550,86098,492492,NULL,NULL,NULL,0,NULL,NULL 16551,41531,547246,Good Answer Great Answer Great Answer Guru Yearling Good Answer Yearling Notable Question Guru Good Answer,NULL,NULL,0,NULL,NULL 16552,376868,520932,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16553,397445,77194,Student Good Answer Yearling Popular Question Notable Question Yearling Yearling Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16554,165940,744117,Informed Commentator,NULL,NULL,0,NULL,NULL 16555,1011645,441459,Yearling Notable Question Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16556,917863,1226906,Popular Question Revival Notable Question Yearling Notable Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Good Question Popular Question Famous Question Yearling Famous Question Notable Question Popular Question Popular Question Caucus Popular Question Promoter Notable Question Benefactor Nice Question Notable Question Popular Question Yearling Popular Question Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 16557,195736,1424511,NULL,NULL,NULL,0,NULL,NULL 16558,77340,297732,NULL,NULL,NULL,0,NULL,NULL 16559,51535,497513,NULL,NULL,NULL,0,NULL,NULL 16560,75062,1283453,Teacher Editor Supporter Custodian Scholar,NULL,NULL,0,NULL,NULL 16561,35381,1151528,NULL,NULL,NULL,0,NULL,NULL 16562,187427,1399290,Notable Question,NULL,NULL,0,NULL,NULL 16563,47275,517909,NULL,NULL,NULL,0,NULL,NULL 16564,315352,447458,Great Question Yearling Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16565,259836,1029654,Notable Question Nice Question Popular Question Yearling Famous Question Caucus Constituent Yearling Caucus Constituent Announcer Custodian,NULL,NULL,0,NULL,NULL 16566,315401,1229477,Famous Question Revival Necromancer Nice Answer Popular Question Yearling Famous Question Good Answer Yearling Guru Popular Question Self-Learner Notable Question Yearling Necromancer Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 16567,11003686,1248660,NULL,NULL,NULL,0,NULL,NULL 16568,50387,1248660,NULL,NULL,NULL,0,NULL,NULL 16569,399686,634571,NULL,NULL,NULL,0,NULL,NULL 16570,458762,984605,NULL,NULL,NULL,0,NULL,NULL 16571,69642,922628,NULL,NULL,NULL,0,NULL,NULL 16572,219491,829957,NULL,NULL,NULL,0,NULL,NULL 16573,181351,532413,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16574,24667,1454548,NULL,NULL,NULL,0,NULL,NULL 16575,113909,800389,Notable Question Nice Question Supporter Autobiographer Commentator,NULL,NULL,0,NULL,NULL 16576,44784,259764,Yearling Famous Question Notable Question Notable Question Custodian Custodian Yearling Enthusiast Custodian Popular Question Guru Nice Answer Yearling Favorite Question Popular Question Good Answer Good Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 16577,504118,683537,Editor,NULL,NULL,0,NULL,NULL 16578,935842,1535214,Popular Question,NULL,NULL,0,NULL,NULL 16579,108013,856445,NULL,NULL,NULL,0,NULL,NULL 16580,6483,995383,NULL,NULL,NULL,0,NULL,NULL 16581,33758,99514,Yearling Nice Answer Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 16582,188274,1134690,NULL,NULL,NULL,0,NULL,NULL 16583,121962,164746,Yearling Custodian Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 16584,4239934,681122,Necromancer Necromancer Yearling Necromancer Good Answer Yearling Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16585,105272,126663,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 16586,213945,28974,Yearling Documentation User Yearling Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16587,187426,113960,Nice Question Popular Question Nice Question Notable Question Famous Question Famous Question Nice Answer Enlightened Yearling Good Question Notable Question Popular Question Good Question Good Question Famous Question Nice Answer Notable Question Yearling Notable Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 16588,1122839,17172,Guru Guru Great Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Good Answer Good Answer Guru Nice Answer Good Answer Good Answer Nice Answer Good Answer Great Answer Great Answer Good Answer Good Answer Nice Answer Yearling Good Answer Good Answer Guru Nice Answer Guru Nice Answer Notable Question Guru Nice Answer Great Answer Nice Answer Nice Answer Good Answer Nice Answer Guru Great Answer Nice Answer Yearling Good Answer Custodian Documentation User Great Answer Good Answer Great Answer Great Answer Great Answer Good Answer Guru Famous Question Nice Answer Enlightened Nice Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Guru Great Answer Nice Answer Populist Good Answer Yearling Nice Answer Necromancer Guru,NULL,NULL,0,NULL,NULL 16589,57697,348502,Famous Question Yearling Excavator Self-Learner Popular Question Commentator Popular Question Yearling,NULL,,0,, 16590,4940413,445576,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 16591,667541,873669,Necromancer Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 16592,5034380,492797,NULL,NULL,NULL,0,NULL,NULL 16593,1711689,941699,Popular Question c++ Nice Question Good Question Popular Question Custodian Notable Question Cleanup Yearling Nice Answer Enlightened Popular Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 16594,592756,1211504,NULL,NULL,NULL,0,NULL,NULL 16595,6265932,1211504,NULL,NULL,NULL,0,NULL,NULL 16596,312699,631443,NULL,NULL,NULL,0,NULL,NULL 16597,239263,1135094,Necromancer Informed Announcer Peer Pressure,NULL,NULL,0,NULL,NULL 16598,18860,151312,Nice Answer Famous Question Guru Famous Question Citizen Patrol Nice Answer Nice Answer Nice Answer Good Answer Yearling Necromancer Favorite Question Good Answer Necromancer Revival Popular Question Nice Answer Notable Question Guru Good Question Necromancer Revival Yearling Announcer Necromancer Popular Question Nice Answer Good Answer Popular Question javascript node.js Tag Editor Populist Notable Question Necromancer Yearling Popular Question Good Answer Nice Answer Populist Nice Answer,NULL,h1Short Sweet h1pre codefunction escapeRegExp string return string replace amp amp means the whole matched string code prep strongExample strong ppre codeescapeRegExp All of these should be escaped gt gt gt All of these should be escaped code prep strongInstall strong ppAvailable on npm as href https www npmjs com package escape string regexp rel noreferrer escape string regexp ppre codenpm install save escape string regexp code prep strongNote strong ppSee href https developer mozilla org en docs Web JavaScript Guide Regular Expressions rel noreferrer MDN Javascript Guide Regular Expressions ppOther symbols MAY be escaped without consequence but are not required to be pp pp pp pp ph2Test Case typical url h2pre codeescapeRegExp path to resource html search query gt gt gt path to resource html search query code preh1The Long Answer h1pIf you re going to use the function above at least link to this stack overflow post in your code documentation so that it doesn look like crazy hard to test voodoo ppre codevar escapeRegExp function Referring to the table here https developer mozilla org en JavaScript Reference Global Objects regexp these characters should be escaped These characters only have special meaning inside of brackets they do not need to be escaped but they MAY be escaped without any adverse effects to the best of my knowledge and casual testing my test amp lt gt match var specials order matters for these order doesn matter for any of these choose to escape every character with even though only some strictly require it when inside of regex RegExp specials join escapeRegExp function str return str replace regex amp test escapeRegExp path to res search this that code pre var re escapeRegExp re toString h3Update Nov 2018 Do you emneed em self signed certs h3pOr would real certificates get the job done better Have you considered any of these pulliLet Encrypt via href https git coolaj86 com coolaj86 greenlock express js rel nofollow noreferrer Greenlock js liliLet Encrypt via href https greenlock domains rel nofollow noreferrer https greenlock domains liliLocalhost relay service such as href https telebit cloud rel nofollow noreferrer https telebit cloud li ulp em Note Let Encrypt can also issue certificates to private networks em ph1ScreenCast h1p href https coolaj86 com articles how to create csr for https tls ssl rsa pems rel nofollow noreferrer https coolaj86 com articles how to create csr for https tls ssl rsa pems ph1Full Working example h1ullicreates certificates liliruns node js server lilino warnings or errors in node js client lilino warnings or errors in cURL li ulp href https github com coolaj86 nodejs self signed certificate example rel nofollow noreferrer https github com coolaj86 nodejs self signed certificate example ppUsing codelocalhost greenlock domains code as an example it points to 127 ph2server js h2pre code use strict var https require https port process argv 8043 fs require fs path require path server options require ssl root cas inject addFile path join dirname server my private root ca cert pem options key fs readFileSync path join dirname server privkey pem You don need to specify ca it done by ssl root cas ca fs readFileSync path join dirname server my private root ca cert pem cert fs readFileSync path join dirname server fullchain pem function app req res res setHeader Content Type text plain res end Hello encrypted world server https createServer options app listen port function port server address port console log Listening on https 127 port console log Listening on https server address address port console log Listening on https localhost greenlock domains port code preh2client js h2pre code use strict var https require https fs require fs path require path ca fs readFileSync path join dirname client my private root ca cert pem port process argv 8043 hostname process argv localhost greenlock domains var options host hostname port port path ca ca options agent new https Agent options https request options function res res pipe process stdout end code prepAnd the script that makes the certificate files ph2make certs sh h2pre code bin bashFQDN make directories to work frommkdir server client all Create your very own Root Certificate Authorityopenssl genrsa out all my private root ca privkey pem 2048 Self sign your Root Certificate Authority Since this is private the details can be as bogus as you likeopenssl req x509 new nodes key all my private root ca privkey pem days 1024 out all my private root ca cert pem subj US ST Utah Provo ACME Signing Authority Inc CN example com Create Device Certificate for each domain such as example com example com awesome example com NOTE You MUST match CN to the domain name or ip address you want to useopenssl genrsa out all privkey pem 2048 Create request from your Device which your Root CA will signopenssl req new key all privkey pem out all csr pem subj US ST Utah Provo ACME Tech Inc CN FQDN Sign the request from Device with your Root CAopenssl x509 req in all csr pem CA all my private root ca cert pem CAkey all my private root ca privkey pem CAcreateserial out all cert pem days 500 Put things in their proper placersync all privkey cert pem server cat all cert pem gt server fullchain pem we have no intermediates in this casersync all my private root ca cert pem server rsync all my private root ca cert pem client create DER format crt for iOS Mobile Safari etcopenssl x509 outform der in all my private root ca cert pem out client my private root ca crt code prepFor example ppre codebash make certs sh localhost greenlock domains code prepHopefully this puts the nail in the coffin on this one ppAnd some more explanation href https github com coolaj86 node ssl root cas wiki Painless Self Signed Certificates in node js rel nofollow noreferrer https github com coolaj86 node ssl root cas wiki Painless Self Signed Certificates in node js ph1Install private cert on iOS Mobile Safari h1pYou need to create copy of the root ca certificate DER format with crt extension ppre code create DER format crt for iOS Mobile Safari etcopenssl x509 outform der in all my private root ca cert pem out client my private root ca crt code prepThen you can simply serve that file with your webserver When you click the link you should be asked if you want to install the certificate ppFor an example of how this works you can try installing MIT Certificate Authority href https ca mit edu mitca crt rel nofollow noreferrer https ca mit edu mitca crt ph1Related Examples h1ulli href https github com coolaj86 nodejs ssl example rel nofollow noreferrer https github com coolaj86 nodejs ssl example lili href https github com coolaj86 nodejs ssl trusted peer example rel nofollow noreferrer https github com coolaj86 nodejs ssl trusted peer example lili href https github com coolaj86 node ssl root cas rel nofollow noreferrer https github com coolaj86 node ssl root cas lili href https github com coolaj86 nodejs https sni vhost example rel nofollow noreferrer https github com coolaj86 nodejs https sni vhost example aulli Multiple vhosts with SSL on the same server li ul lili href https telebit cloud rel nofollow noreferrer https telebit cloud aulli get REAL SSL certs you can use TODAY for testing on localhost li ul li ul If you want to use it in safari you need to add your root ca updated the tutorial with an iOS section,0,NULL,NULL 16599,359701,357074,NULL,NULL,NULL,0,NULL,NULL 16600,134542,374013,NULL,NULL,NULL,0,NULL,NULL 16601,726995,1309410,NULL,NULL,NULL,0,NULL,NULL 16602,379103,853599,Yearling Good Answer Popular Question Yearling Nice Answer Nice Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 16603,422222,237604,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16604,235123,1068009,NULL,NULL,NULL,0,NULL,NULL 16605,323515,205934,Guru Nice Answer Nice Answer Nice Answer Yearling Nice Answer Good Answer Nice Answer Yearling Great Answer Curious Yearling,NULL,NULL,0,NULL,NULL 16606,97828,1021869,NULL,NULL,NULL,0,NULL,NULL 16607,2948520,847637,Popular Question,NULL,NULL,0,NULL,NULL 16608,372393,847637,Popular Question,NULL,NULL,0,NULL,NULL 16609,841559,388696,NULL,NULL,NULL,0,NULL,NULL 16610,10158720,113090,Announcer Yearling,NULL,NULL,0,NULL,NULL 16611,868606,113090,Announcer Yearling,NULL,NULL,0,NULL,NULL 16612,3807578,836382,Popular Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 16613,252722,836382,Popular Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 16614,179997,1429889,NULL,NULL,NULL,0,NULL,NULL 16615,510270,555328,Informed Notable Question,NULL,NULL,0,NULL,NULL 16616,164764,1190804,NULL,NULL,NULL,0,NULL,NULL 16617,65254,503045,Student,NULL,NULL,0,NULL,NULL 16618,3292689,503045,Student,NULL,NULL,0,NULL,NULL 16619,97969,1148976,NULL,NULL,NULL,0,NULL,NULL 16620,25220,419056,NULL,NULL,NULL,0,NULL,NULL 16621,494988,1180825,Informed Citizen Patrol Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 16622,76770,1168946,Excavator,NULL,NULL,0,NULL,NULL 16623,619299,1123705,NULL,NULL,NULL,0,NULL,NULL 16624,923655,739435,NULL,NULL,NULL,0,NULL,NULL 16625,211814,202931,NULL,NULL,NULL,0,NULL,NULL 16626,217831,329902,Popular Question Necromancer Nice Answer Nice Question Popular Question Notable Question Yearling Necromancer Booster,NULL,NULL,0,NULL,NULL 16627,315245,576238,Yearling Nice Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 16628,434419,1306756,Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 16629,937087,173136,Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 16630,35907,858828,NULL,NULL,NULL,0,NULL,NULL 16631,830448,640216,NULL,NULL,NULL,0,NULL,NULL 16632,100562,612644,Curious Popular Question Teacher Good Question Popular Question,NULL,NULL,0,NULL,NULL 16633,329618,1535493,NULL,NULL,NULL,0,NULL,NULL 16634,757909,142270,NULL,NULL,NULL,0,NULL,NULL 16635,50931,837638,Nice Answer Good Answer Yearling Popular Question Tenacious Necromancer ruby-on-rails Necromancer Custodian Custodian Organizer Cleanup Yearling Civic Duty Explainer Caucus Unsung Hero Necromancer Nice Answer Nice Answer Good Answer Yearling Promoter Benefactor Necromancer Notable Question,NULL,NULL,0,NULL,NULL 16636,34529,377899,NULL,NULL,NULL,0,NULL,NULL 16637,531264,207067,NULL,NULL,NULL,0,NULL,NULL 16638,14994,189501,NULL,NULL,NULL,0,NULL,NULL 16639,63286,486551,Famous Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 16640,26615,277364,NULL,NULL,NULL,0,NULL,NULL 16641,1227663,548365,NULL,NULL,NULL,0,NULL,NULL 16642,4734531,548365,NULL,NULL,NULL,0,NULL,NULL 16643,411634,512244,NULL,NULL,NULL,0,NULL,NULL 16644,295384,210957,NULL,NULL,NULL,0,NULL,NULL 16645,88011,1393509,NULL,NULL,NULL,0,NULL,NULL 16646,138786,1547895,NULL,NULL,NULL,0,NULL,NULL 16647,162659,296867,Popular Question Teacher,NULL,NULL,0,NULL,NULL 16648,37896,69959,Yearling Nice Answer Yearling Favorite Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 16649,151889,1081674,NULL,NULL,NULL,0,NULL,NULL 16650,530261,141131,Guru Nice Answer Guru Yearling Great Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 16651,211683,351937,Nice Answer Yearling Nice Question Necromancer Notable Question Popular Question Yearling Nice Question Notable Question Good Question Civic Duty Yearling,NULL,NULL,0,NULL,NULL 16652,1396430,1419840,NULL,NULL,NULL,0,NULL,NULL 16653,52379,374460,Nice Answer Yearling Notable Question Notable Question Necromancer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 16654,129000,245852,NULL,NULL,NULL,0,NULL,NULL 16655,448383,979517,Notable Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 16656,19813,822410,NULL,NULL,NULL,0,NULL,NULL 16657,2164026,606003,NULL,NULL,NULL,0,NULL,NULL 16658,1170761,606003,NULL,NULL,NULL,0,NULL,NULL 16659,22077,1357904,NULL,NULL,NULL,0,NULL,NULL 16660,316635,767041,NULL,NULL,NULL,0,NULL,NULL 16661,121605,287180,NULL,NULL,NULL,0,NULL,NULL 16662,1520109,877556,Critic Student Supporter Scholar Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 16663,258974,657879,NULL,NULL,NULL,0,NULL,NULL 16664,29583,1113281,NULL,NULL,NULL,0,NULL,NULL 16665,611682,1354383,NULL,NULL,NULL,0,NULL,NULL 16666,848958,95108,Yearling Famous Question Enlightened Nice Question Popular Question Yearling Yearling Popular Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 16667,164693,203130,Nice Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Question Guru Notable Question Favorite Question Great Answer Great Answer Nice Answer Enlightened Good Answer Guru Notable Question Popular Question Nice Answer Guru Yearling ruby-on-rails Caucus Constituent Great Answer Good Answer Notable Question Nice Answer Custodian Great Question Guru Nice Answer Necromancer Great Answer ruby Notable Question Great Answer Caucus Nice Answer Good Answer Custodian Good Answer Documentation User Great Answer Yearling Nice Answer Announcer Nice Question Caucus Popular Question Good Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Notable Question Good Answer javascript Yearling,NULL,pA better way of doing this is to simply use the built in href http ruby doc org core Enumerable html Enumerable support in href http www ruby doc org stdlib libdoc csv rdoc CSV html method open Ruby Standard Library CSV parser ppre codeheaders CSV open file csv csv csv first code prepThe block will result in the file automatically being closed and the call will return an array of the parsed headers If you read the above you ll see that this leaves file open You would need to do file CSV open line file first file close instead Or you can use the block variant where the file is automatically closed for you and is the right way of doing this in Ruby,0,NULL,NULL 16668,186164,498656,Favorite Question Popular Question Yearling Yearling Custodian Excavator Notable Question Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 16669,368762,576548,NULL,NULL,NULL,0,NULL,NULL 16670,158616,812503,NULL,NULL,NULL,0,NULL,NULL 16671,1920747,812503,NULL,NULL,NULL,0,NULL,NULL 16672,1514579,281488,Popular Question Notable Question Nice Question Famous Question Great Question Notable Question Yearling Notable Question Notable Question Popular Question Notable Question Nice Question Popular Question Civic Duty Good Question Popular Question Notable Question Popular Question Necromancer Good Answer Proofreader Notable Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Nice Question Popular Question Popular Question Custodian Custodian Notable Question Custodian Popular Question Yearling Excavator Popular Question Custodian Custodian Citizen Patrol Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Custodian Explainer Reviewer Famous Question Yearling Famous Question Famous Question Revival Famous Question Notable Question Socratic Notable Question Popular Question Notable Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 16673,198687,335914,Tumbleweed,NULL,NULL,0,NULL,NULL 16674,478554,68037,Yearling,NULL,NULL,0,NULL,NULL 16675,232485,204041,NULL,NULL,NULL,0,NULL,NULL 16676,881854,688537,NULL,NULL,NULL,0,NULL,NULL 16677,167775,303452,NULL,NULL,NULL,0,NULL,NULL 16678,403987,978894,NULL,NULL,NULL,0,NULL,NULL 16679,2025802,1060323,Scholar Student Tumbleweed,NULL,NULL,0,NULL,NULL 16680,30641,823791,Necromancer Informed,NULL,NULL,0,NULL,NULL 16681,1095287,110829,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16682,151722,110313,Yearling Great Question Good Question Good Question Notable Question Yearling Good Question Yearling Nice Answer Enlightened Notable Question Guru Popular Question,NULL,NULL,0,NULL,NULL 16683,5122,597370,NULL,NULL,NULL,0,NULL,NULL 16684,28219,720822,Yearling Populist Revival Editor Guru Yearling Great Answer Custodian Yearling Custodian,NULL,strong2016 Update strongThe node windows mac linux series uses common API across all operating systems so it is absolutely relevant solution However node linux generates systemv init files As systemd continues to grow in popularity it is realistically better option on Linux PR welcome if anyone wants to add systemd support to node linux pp emOriginal Thread em ppThis is pretty old thread now but href https github com coreybutler node windows rel noreferrer title node windows node windows provides another way to create background services on Windows It is loosely based on the codenssm code concept of using an codeexe code wrapper around your node script However it uses codewinsw exe code instead and provides configurable node wrapper for more granular control over how the process starts stops on failures These processes are available like any other service pp img src https stack imgur com sdCrz png alt enter image description here ppThe module also bakes in some event logging pp img src https stack imgur com 7ns5u png alt enter image description here ppDaemonizing your script is accomplished through code For example ppre codevar Service require node windows Service Create new service objectvar svc new Service name Hello World description The nodejs org example web server script path to my node script js Listen for the install event which indicates the process is available as service svc on install function svc start Listen for the start event and let us know when the process has actually started working svc on start function console log svc name started nVisit http 127 3000 to see it in action Install the script as service svc install code prepThe module supports things like capping restarts so bad scripts don hose your server and growing time intervals between restarts ppSince node windows services run like any other it is possible to manage monitor the service with whatever software you already use ppFinally there are no codemake code dependencies In other words straightforward codenpm install node windows code will work You don need Visual Studio NET or node gyp magic to install this Also it MIT and BSD licensed ppIn full disclosure the author of this module It was designed to relieve the exact pain the OP experienced but with tighter integration into the functionality the Operating System already provides hope future viewers with this same question find it useful Might be best to open new question with more detail about the problem including the code you are using,0,NULL,NULL 16685,1180162,395256,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16686,327751,316726,Nice Answer Enlightened Yearling Good Answer Great Answer Nice Answer Nice Answer Enlightened Enlightened Yearling Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 16687,22924,409014,NULL,NULL,NULL,0,NULL,NULL 16688,22938,409014,NULL,NULL,NULL,0,NULL,NULL 16689,71259,482378,NULL,NULL,NULL,0,NULL,NULL 16690,131703,1419479,Yearling Good Answer Nice Answer Notable Question Necromancer Yearling Good Question Guru Yearling Revival,NULL,NULL,0,NULL,NULL 16691,485240,468170,NULL,NULL,NULL,0,NULL,NULL 16692,188176,1456475,NULL,NULL,NULL,0,NULL,NULL 16693,777,341646,Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 16694,8489,48311,Good Answer Nice Answer Nice Question Necromancer Notable Question Good Answer Good Question Good Question Famous Question Nice Question Revival Necromancer Famous Question Nice Question Yearling Notable Question Famous Question Good Question Yearling Nice Question Notable Question Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 16695,163617,989089,Revival Enthusiast,NULL,NULL,0,NULL,NULL 16696,13264,1413577,NULL,NULL,NULL,0,NULL,NULL 16697,38839,1529784,NULL,NULL,NULL,0,NULL,NULL 16698,94984,798647,Revival Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 16699,129614,113081,NULL,NULL,NULL,0,NULL,NULL 16700,478814,1459283,NULL,NULL,NULL,0,NULL,NULL 16701,96046,784368,Popular Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 16702,7341278,784368,Popular Question Promoter Curious Benefactor,NULL,NULL,0,NULL,NULL 16703,16212,8151,Inquisitive Informed Popular Question Self-Learner Notable Question Popular Question Famous Question Yearling Caucus Notable Question Notable Question Notable Question Announcer Nice Answer Caucus Constituent Yearling Popular Question Custodian Great Answer Announcer Caucus Constituent Famous Question Yearling Custodian Electorate Nice Answer,NULL,NULL,0,NULL,NULL 16704,115023,258011,Yearling Popular Question Famous Question Famous Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 16705,586064,288757,Nice Answer Enlightened Yearling Caucus Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 16706,780511,754196,NULL,NULL,NULL,0,NULL,NULL 16707,130536,809603,Nice Answer Nice Answer Yearling linux Nice Answer Enlightened Revival Nice Answer Enlightened Good Answer Notable Question Notable Question Yearling Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 16708,903771,933113,Yearling Quorum Popular Question Announcer,NULL,NULL,0,NULL,NULL 16709,48169,618088,NULL,NULL,NULL,0,NULL,NULL 16710,677862,985427,NULL,NULL,NULL,0,NULL,NULL 16711,80728,1004848,NULL,NULL,NULL,0,NULL,NULL 16712,7799628,1465776,Necromancer,NULL,NULL,0,NULL,NULL 16713,17760,780629,Revival Yearling Good Answer Revival Yearling Necromancer Good Answer Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 16714,68135,28066,NULL,NULL,NULL,0,NULL,NULL 16715,1432063,742227,NULL,NULL,NULL,0,NULL,NULL 16716,766858,1104960,NULL,NULL,NULL,0,NULL,NULL 16717,159475,198710,Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16718,10826367,1102346,NULL,NULL,NULL,0,NULL,NULL 16719,344731,1102346,NULL,NULL,NULL,0,NULL,NULL 16720,455891,1102346,NULL,NULL,NULL,0,NULL,NULL 16721,142603,423941,Nice Answer Critic Editor Yearling Census Caucus,NULL,NULL,0,NULL,NULL 16722,68164,1036647,Nice Question,NULL,NULL,0,NULL,NULL 16723,753376,955133,NULL,NULL,NULL,0,NULL,NULL 16724,1043666,1313963,NULL,NULL,NULL,0,NULL,NULL 16725,49382,267947,NULL,NULL,NULL,0,NULL,NULL 16726,82131,213536,NULL,NULL,NULL,0,NULL,NULL 16727,498696,732956,NULL,NULL,NULL,0,NULL,NULL 16728,239625,556648,NULL,NULL,NULL,0,NULL,NULL 16729,88384,146560,Popular Question Necromancer Yearling Commentator Yearling Caucus Constituent Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 16730,614075,1564558,NULL,NULL,NULL,0,NULL,NULL 16731,955591,1022800,NULL,NULL,NULL,0,NULL,NULL 16732,144813,1340219,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16733,127985,1377619,Editor Supporter,NULL,NULL,0,NULL,NULL 16734,72730,164834,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16735,570321,949704,Famous Question Notable Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 16736,250437,949704,Famous Question Notable Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 16737,76438,643470,NULL,NULL,NULL,0,NULL,NULL 16738,1094546,1162856,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16739,85718,350317,Yearling Good Question Good Answer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 16740,222266,136763,Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 16741,2155148,322551,Yearling Notable Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 16742,123600,137784,Tag Editor Necromancer Yearling Popular Question Nice Answer Yearling Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 16743,1505373,959453,NULL,NULL,NULL,0,NULL,NULL 16744,290871,358167,NULL,NULL,NULL,0,NULL,NULL 16745,21988,1284694,NULL,NULL,NULL,0,NULL,NULL 16746,172062,516549,NULL,NULL,NULL,0,NULL,NULL 16747,163966,593033,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16748,72556,1059137,NULL,NULL,NULL,0,NULL,NULL 16749,179670,1925,Popular Question Nice Answer Enlightened Good Answer Notable Question Great Question Favorite Question Yearling Famous Question Yearling Notable Question Notable Question Favorite Question Notable Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 16750,44707,186778,Yearling Good Answer,NULL,NULL,0,NULL,NULL 16751,318334,631085,NULL,NULL,NULL,0,NULL,NULL 16752,24228,1361710,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16753,316258,207313,Popular Question Nice Question Yearling Good Answer Necromancer Necromancer actionscript-3 Nice Answer Yearling Notable Question Notable Question Good Answer Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 16754,208735,1242079,Yearling Good Question,NULL,NULL,0,NULL,NULL 16755,199732,333730,Notable Question Yearling azure-web-sites Good Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 16756,43529,331813,Yearling Nice Answer Enlightened Popular Question Citizen Patrol Yearling Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 16757,235188,53954,Investor Caucus Famous Question,NULL,NULL,0,NULL,NULL 16758,36456,1441328,Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Question Nice Answer shell Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Question Yearling Good Answer Nice Answer Nice Answer Good Answer fish Guru Enlightened Nice Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 16759,1504618,846980,NULL,NULL,NULL,0,NULL,NULL 16760,333633,762228,Informed,NULL,NULL,0,NULL,NULL 16761,232503,1468038,Informed,NULL,NULL,0,NULL,NULL 16762,163774,22294,Nice Answer Great Answer Great Answer Custodian Nice Answer Yearling Nice Question Popular Question Yearling Nice Answer Informed Nice Question Good Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 16763,9420,388061,Civic Duty Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 16764,134816,1192767,NULL,NULL,NULL,0,NULL,NULL 16765,1115267,748585,Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16766,221968,1253098,NULL,NULL,NULL,0,NULL,NULL 16767,137235,451214,Not a Robot,NULL,NULL,0,NULL,NULL 16768,3188502,825190,Popular Question Yearling Excavator Curious Popular Question Popular Question Notable Question Announcer Explainer Yearling Nice Question Yearling Necromancer Organizer Yearling,NULL,NULL,0,NULL,NULL 16769,356743,825190,Popular Question Yearling Excavator Curious Popular Question Popular Question Notable Question Announcer Explainer Yearling Nice Question Yearling Necromancer Organizer Yearling,NULL,NULL,0,NULL,NULL 16770,1032611,432835,NULL,NULL,NULL,0,NULL,NULL 16771,177559,207303,NULL,NULL,NULL,0,NULL,NULL 16772,74423,171496,NULL,NULL,NULL,0,NULL,NULL 16773,35594,11303,Yearling Custodian Popular Question Autobiographer Excavator Good Answer Yearling Yearling Informed,NULL,NULL,0,NULL,NULL 16774,1148786,1560634,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 16775,1090913,570005,Popular Question Popular Question Famous Question Popular Question Notable Question Nice Answer Famous Question Yearling Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16776,334689,325548,NULL,NULL,NULL,0,NULL,NULL 16777,1081237,11867,NULL,NULL,NULL,0,NULL,NULL 16778,166442,284060,NULL,NULL,NULL,0,NULL,NULL 16779,872089,1318669,Notable Question,NULL,NULL,0,NULL,NULL 16780,17678,1309357,NULL,NULL,NULL,0,NULL,NULL 16781,69909,1319286,Notable Question,NULL,NULL,0,NULL,NULL 16782,222038,87327,Yearling Necromancer Popular Question Yearling Notable Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 16783,189645,985890,Popular Question,NULL,NULL,0,NULL,NULL 16784,26012,123787,Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 16785,897197,1432550,Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 16786,249252,1382614,Notable Question,NULL,NULL,0,NULL,NULL 16787,1296990,54988,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 16788,6095,54988,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 16789,281957,522572,NULL,NULL,NULL,0,NULL,NULL 16790,616013,690886,Good Answer,NULL,NULL,0,NULL,NULL 16791,460336,777968,NULL,NULL,NULL,0,NULL,NULL 16792,646175,1230737,NULL,NULL,NULL,0,NULL,NULL 16793,325505,1512061,Informed,NULL,NULL,0,NULL,NULL 16794,535333,521610,Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 16795,733125,1178665,Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 16796,1033971,1244605,Yearling Popular Question Self-Learner Yearling Critic Yearling Excavator Popular Question,NULL,NULL,0,NULL,NULL 16797,47249,824583,NULL,NULL,NULL,0,NULL,NULL 16798,2447438,1439401,Nice Question Popular Question Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 16799,688997,1320143,Critic Commentator Yearling Curious Good Answer Self-Learner Caucus Tumbleweed Excavator Announcer Yearling Nice Answer Enlightened Custodian Citizen Patrol Custodian Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 16800,119543,1047367,Critic Necromancer,NULL,NULL,0,NULL,NULL 16801,1422822,1547034,Census,NULL,NULL,0,NULL,NULL 16802,602644,367117,Yearling Autobiographer Commentator Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 16803,375599,547350,Popular Question Nice Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 16804,375592,213272,Yearling Announcer Yearling Nice Answer Yearling Yearling Popular Question Nice Answer Enlightened Good Answer Yearling travis-ci,NULL,NULL,0,NULL,NULL 16805,223916,147143,Popular Question Popular Question Popular Question Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 16806,116567,771643,NULL,NULL,NULL,0,NULL,NULL 16807,34597,374731,NULL,NULL,NULL,0,NULL,NULL 16808,4903836,398565,NULL,NULL,NULL,0,NULL,NULL 16809,303494,194326,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 16810,23236,689735,NULL,NULL,NULL,0,NULL,NULL 16811,286626,32032,Necromancer Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 16812,70479,624472,Nice Answer Enlightened Yearling asp.net razor Yearling Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 16813,339962,1061720,NULL,NULL,NULL,0,NULL,NULL 16814,169703,594472,NULL,NULL,NULL,0,NULL,NULL 16815,8772418,1486119,NULL,NULL,NULL,0,NULL,NULL 16816,325678,1486119,NULL,NULL,NULL,0,NULL,NULL 16817,63243,1175115,NULL,NULL,NULL,0,NULL,NULL 16818,1036323,1291106,NULL,NULL,NULL,0,NULL,NULL 16819,272834,1091801,NULL,NULL,NULL,0,NULL,NULL 16820,4403434,1440035,Caucus Constituent Good Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 16821,141844,410117,NULL,NULL,NULL,0,NULL,NULL 16822,166194,882256,NULL,NULL,NULL,0,NULL,NULL 16823,194520,320514,Nice Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 16824,156885,537025,Popular Question Caucus Constituent Pundit Custodian Custodian Custodian Enthusiast,NULL,NULL,0,NULL,NULL 16825,107445,2510,Popular Question Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16826,418960,668654,Popular Question,NULL,NULL,0,NULL,NULL 16827,227118,338618,Famous Question Yearling,NULL,NULL,0,NULL,NULL 16828,2217147,1377179,Teacher,NULL,NULL,0,NULL,NULL 16829,3241056,1377179,Teacher,NULL,NULL,0,NULL,NULL 16830,270284,1377179,Teacher,NULL,NULL,0,NULL,NULL 16831,3236973,1377179,Teacher,NULL,NULL,0,NULL,NULL 16832,167813,410245,NULL,NULL,NULL,0,NULL,NULL 16833,5091,142339,Nice Answer Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 16834,7279,218137,Student,NULL,NULL,0,NULL,NULL 16835,2017030,1119893,NULL,NULL,NULL,0,NULL,NULL 16836,561244,997490,NULL,NULL,NULL,0,NULL,NULL 16837,1615368,456240,NULL,NULL,NULL,0,NULL,NULL 16838,276746,1150988,NULL,NULL,NULL,0,NULL,NULL 16839,455653,14731,Famous Question Famous Question Notable Question Nice Question Good Answer Popular Question Nice Answer Necromancer Favorite Question Favorite Question Revival Announcer Guru Famous Question Nice Question Announcer Necromancer Notable Question Popular Question Necromancer Popular Question Notable Question Announcer Announcer Announcer Announcer Popular Question Popular Question Favorite Question Notable Question Nice Answer Necromancer Popular Question Nice Question Good Answer Nice Question Necromancer Notable Question Popular Question Custodian Necromancer Famous Question Famous Question Nice Question Good Question Great Answer Popular Question Necromancer Notable Question Popular Question Necromancer Great Answer Favorite Question Good Answer Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Famous Question Popular Question Nice Question Nice Question Good Answer Notable Question Good Question Good Question Popular Question Yearling Nice Question Notable Question Notable Question Notable Question Necromancer Nice Question Nice Question Good Question Famous Question Nice Question Famous Question Necromancer Notable Question Famous Question Necromancer Nice Question Great Question Caucus Announcer Announcer Good Question Nice Answer Necromancer Good Question Announcer Popular Question maven Popular Question Popular Question Popular Question Announcer Nice Answer Notable Question Good Question Famous Question Nice Answer Nice Question Popular Question Necromancer Popular Question Announcer Popular Question Notable Question Good Answer Popular Question Nice Question Famous Question Notable Question Announcer Good Question Announcer Announcer Notable Question Popular Question Good Question Electorate Popular Question Nice Question Nice Answer Nice Answer Announcer Announcer Good Answer Popular Question Announcer Popular Question Revival Announcer Great Question Good Answer Announcer Announcer Announcer Popular Question Notable Question Necromancer Popular Question Announcer Announcer Announcer Announcer Popular Question Notable Question Announcer Announcer Popular Question Popular Question Famous Question Announcer Notable Question Notable Question Announcer Nice Answer Necromancer Announcer Nice Answer Nice Answer Caucus Announcer Popular Question Notable Question Necromancer Announcer Announcer Announcer Great Answer Popular Question Popular Question Yearling Nice Answer Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Announcer Announcer Booster Announcer Announcer Nice Answer Nice Question Popular Question Good Answer Notable Question Great Question Nice Question Nice Answer Famous Question Notable Question Popular Question Notable Question Notable Question Good Question Announcer Nice Question Popular Question Popular Question Popular Question Announcer Nice Answer Nice Answer Great Question Notable Question Famous Question Announcer Announcer Announcer Announcer Nice Answer Popular Question Necromancer Socratic Favorite Question Notable Question Notable Question Popular Question Revival Popular Question Popular Question Caucus Constituent Notable Question Popular Question Notable Question Popular Question Good Answer Announcer Announcer Notable Question Announcer Notable Question Nice Question Nice Question Announcer Nice Answer Necromancer Good Question Popular Question Announcer Announcer Announcer Announcer Nice Answer Popular Question Nice Question Nice Question Good Question Popular Question Notable Question Great Answer Popular Question Popular Question Nice Question Notable Question Good Question Popular Question Notable Question Yearling Notable Question Announcer Nice Question Popular Question Good Answer Notable Question Notable Question Good Question Nice Question Nice Answer Nice Answer Nice Question Booster Notable Question Good Question Popular Question Announcer Famous Question Good Answer Famous Question Popular Question,NULL,href http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis rel noreferrer http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis provides an overview of this issue from PostgreSQL perspective ppIs DDL transactional according to this document pulliPostgreSQL yes liliMySQL no DDL causes an implicit commit liliOracle Database 11g Release and above by default no but an alternative called edition based redefinition exists liliOlder versions of Oracle no DDL causes an implicit commit liliSQL Server yes liliSybase Adaptive Server yes liliDB2 yes liliInformix yes liliFirebird Interbase yes li ulpSQLite also appears to have transactional DDL as well was able to codeROLLBACK code codeCREATE TABLE code statement in SQLite Its codeCREATE TABLE code documentation does not mention any special transactional gotchas There is an open issue in MariaDB for adding transactional DDL support https jira mariadb org browse MDEV 4259 Please vote for it href http java sun com javase docs api java lang System html console rel noreferrer System console will return the console your application is connected to if it is connected otherwise it returns codenull code Note that it’s only available from JDK on System console will be null if either stdin or stdout are redirected but it doesn tell you which one it is This is relevant because sometimes you need to know which stream if any is connected to the console For example if stdout is redirected to log file you might want to strip out ANSI escape codes https en wikipedia org wiki ANSI escape code but the same is not true if stdin is redirected pI managed to put together regex that matches IPv6 IPv4 and Hostname that can think of unfortunately what seems to be invalid IP Address is valid Hostname in some cases but guess that is ok brSo here the regex the test program can be found href http jsfiddle net DanielD 8S4nq rel noreferrer here ppre code 25 01 25 01 25 01 25 01 255 9A Za 9A Za 61 9A Za 9A Za 9A Za 61 9A Za 9A Fa 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 25 25 IPv4 25 01 25 01 25 01 25 01 Hostname RFC 1123 255 9A Za 9A Za 61 9A Za 9A Za 9A Za 61 9A Za IPv6 9A Fa 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 9A Fa 25 25 9A Fa 9A Fa 25 25 code prepsee also bra href https stackoverflow com questions 106179 regular expression to match hostname or ip address Regular expression to match DNS hostname or IP Address br href http tools ietf org html rfc1123 rel noreferrer RFC 1123 br href http www intermapper com ipv6validator rel noreferrer IPv6 Validator According to https tools ietf org html rfc3696 section top level domain names not be all numeric pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote You should post new question instead of commenting on this answer It will help fleshing out your use case pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote think you re misunderstanding the article They are quoting point advocated by the Effective Java https www amazon ca Effective Java 2nd Joshua Bloch dp 0321356683 book which says that when method return type is Collection not an arbitrary object as cache would return then you should favor returning an empty collection instead of null or Optional pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote The article doesn disagree You should favor returning empty collections unless you have good reason not to In your case you have good reason not to pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote would advocate the use of the builder pattern when you have many optional parameters pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote Static factory methods or the builder pattern are probably appropriate in your case pIt turns out that codeJarOutputStream code has three undocumented quirks polliDirectory names must end with slash liliPaths must use slashes not liliEntries may not begin with slash li olpHere is the correct way to create Jar file ppre codepublic void run throws IOException Manifest manifest new Manifest manifest getMainAttributes put Attributes Name MANIFEST VERSION JarOutputStream target new JarOutputStream new FileOutputStream output jar manifest add new File inputDirectory target target close private void add File source JarOutputStream target throws IOException BufferedInputStream in null try if source isDirectory String name source getPath replace if name isEmpty if name endsWith name JarEntry entry new JarEntry name entry setTime source lastModified target putNextEntry entry target closeEntry for File nestedFile source listFiles add nestedFile target return JarEntry entry new JarEntry source getPath replace entry setTime source lastModified target putNextEntry entry in new BufferedInputStream new FileInputStream source byte buffer new byte 1024 while true int count in read buffer if count break target write buffer count target closeEntry finally if in null in close code pre It not bug per se because this isn the focus of the question The focus of this question is how to create JAR file using JarOutputStream and the answer does that The implementation assumes that you want to pass the entire source path into the JAR file but this is something that you can easily modify How to negate property in pom xml maven pI like to negate boolean property as defined in pom xml ppMeaning given property code doSomething code need to pass code lt skip gt code to plugin where the value of code lt skip gt code should be the negation of code doSomething code ppIf code doSomething code is false then want to skip If it is true then don want to skip Any ideas pp strongClarification strong am not talking about using the negation of property for profile activation just want to pass the negation of boolean into plugin It custom plugin See download cmake at https github com cmake maven project cmake maven project want to skip downloads if users set this property to false but the plugin actually takes the negation of this value as input skip parameter,1,How to negate property in pom xml maven pI like to negate boolean property as defined in pom xml ppMeaning given property code doSomething code need to pass code lt skip gt code to plugin where the value of code lt skip gt code should be the negation of code doSomething code ppIf code doSomething code is false then want to skip If it is true then don want to skip Any ideas pp strongClarification strong am not talking about using the negation of property for profile activation just want to pass the negation of boolean into plugin,Why should Java Optional not be used in arguments java java optional pI ve read on many Web sites Optional should be used as return type only and not used in method arguments struggling to find logical reason why For example have piece of logic which has optional parameters Therefore think it would make sense to write my method signature like this solution ppre codepublic int calculateSomething Optional lt String gt p1 Optional lt BigDecimal gt p2 my logic code prepMany web pages specify Optional should not be used as method arguments With this in mind could use the following method signature and add clear Javadoc comment to specify that the arguments may be null hoping future maintainers will read the Javadoc and therefore always carry out null checks prior to using the arguments solution ppre codepublic int calculateSomething String p1 BigDecimal p2 my logic code prepAlternatively could replace my method with four public methods to provide nicer interface and make it more obvious p1 and p2 are optional solution ppre codepublic int calculateSomething calculateSomething null null public int calculateSomething String p1 calculateSomething p1 null public int calculateSomething BigDecimal p2 calculateSomething null p2 public int calculateSomething String p1 BigDecimal p2 my logic code prepNow try writing the code of the class which invokes this piece of logic for each approach first retrieve the two input parameters from another object which returns codeOptional codes and then invoke codecalculateSomething code Therefore if solution is used the calling code would look like this ppre codeOptional lt String gt p1 otherObject getP1 Optional lt BigInteger gt p2 otherObject getP2 int result myObject calculateSomething p1 p2 code prepif solution is used the calling code would look like this ppre codeOptional lt String gt p1 otherObject getP1 Optional lt BigInteger gt p2 otherObject getP2 int result myObject calculateSomething p1 orElse null p2 orElse null code prepif solution is applied could use the code above or could use the following but it significantly more code ppre codeOptional lt String gt p1 otherObject getP1 Optional lt BigInteger gt p2 otherObject getP2 int result if p1 isPresent if p2 isPresent result myObject calculateSomething p1 p2 else result myObject calculateSomething p1 else if p2 isPresent result myObject calculateSomething p2 else result myObject calculateSomething code prep strongSo my question is Why is it considered bad practice to use codeOptional codes as method arguments see solution strong It looks like the most readable solution to me and makes it most obvious that the parameters could be empty null to future maintainers aware the designers of codeOptional code intended it to only be used as return type but can find any logical reasons not to use it in this scenario pThe href http dolszewski com java java optional use cases rel noreferrer best post ve seen on the topic was written by href https stackoverflow com users 1487809 daniel olszewski Daniel Olszewski pblockquote pAlthough it might be tempting to consider Optional for not mandatory method parameters such solution pale in comparison with other possible alternatives To illustrate the problem examine the following constructor declaration ppre codepublic SystemMessage String title String content Optional lt Attachment gt attachment assigning field values code pre pAt first glance it may look as right design decision After all we explicitly marked the attachment parameter as optional However as for calling the constructor client code can become little bit clumsy ppre codeSystemMessage withoutAttachment new SystemMessage title content Optional empty Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content Optional ofNullable attachment code pre pInstead of providing clarity the factory methods of the Optional class only distract the reader Note there’s only one optional parameter but imagine having two or three Uncle Bob definitely wouldn’t be proud of such code strongWhen method can accept optional parameters it’s preferable to adopt the well proven approach and design such case using method overloading strong In the example of the SystemMessage class declaring two separate constructors are superior to using Optional ppre codepublic SystemMessage String title String content this title content null public SystemMessage String title String content Attachment attachment assigning field values code pre pThat change makes client code much simpler and easier to read ppre codeSystemMessage withoutAttachment new SystemMessage title content Attachment attachment new Attachment SystemMessage withAttachment new SystemMessage title content attachment code pre blockquote 16840,75441,372698,Necromancer Yearling Good Answer Census Custodian,NULL,NULL,0,NULL,NULL 16841,23175,967310,NULL,NULL,NULL,0,NULL,NULL 16842,940154,358716,NULL,NULL,NULL,0,NULL,NULL 16843,362542,586117,NULL,NULL,NULL,0,NULL,NULL 16844,448075,1345008,NULL,NULL,NULL,0,NULL,NULL 16845,102962,230170,NULL,NULL,NULL,0,NULL,NULL 16846,219175,938786,NULL,NULL,NULL,0,NULL,NULL 16847,118781,1133285,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 16848,39252,543015,NULL,NULL,NULL,0,NULL,NULL 16849,3471938,866557,NULL,NULL,NULL,0,NULL,NULL 16850,4607502,303725,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 16851,161512,309596,Yearling Populist Popular Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 16852,34283,348995,Yearling Popular Question Announcer Announcer Notable Question Notable Question Civic Duty Announcer,NULL,NULL,0,NULL,NULL 16853,2504134,348995,Yearling Popular Question Announcer Announcer Notable Question Notable Question Civic Duty Announcer,NULL,NULL,0,NULL,NULL 16854,157320,32514,Citizen Patrol Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Yearling Editor Famous Question,NULL,NULL,0,NULL,NULL 16855,282724,192671,Popular Question,NULL,NULL,0,NULL,NULL 16856,553898,639637,Notable Question Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 16857,807731,939212,Necromancer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 16858,977740,939212,Necromancer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 16859,286190,564538,Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Taxonomist Nice Answer Enlightened Enlightened Nice Answer Enlightened Pundit Guru Good Answer Notable Question Good Answer Revival Nice Answer Enlightened Good Answer Caucus Good Answer Nice Answer Yearling Good Answer Good Answer Announcer Steward Guru Nice Answer Announcer Guru Good Answer Nice Answer Announcer Good Answer Nice Answer Enlightened Booster Yearling Guru Announcer Good Answer Nice Answer Nice Answer Announcer Nice Answer Good Answer Guru Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 16860,1020857,342767,Popular Question,NULL,,0,, 16861,773292,1408640,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 16862,2574693,1408640,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 16863,127590,490170,Census Nice Question Yearling,NULL,NULL,0,NULL,NULL 16864,1286489,1535461,NULL,NULL,NULL,0,NULL,NULL 16865,8485,214350,Necromancer Nice Answer Necromancer Necromancer Pundit Nice Answer Enlightened Guru uitableview Famous Question Nice Answer Revival Necromancer Nice Answer Yearling Necromancer Nice Answer Nice Answer Good Question Announcer Nice Answer Enlightened Necromancer Revival Famous Question Yearling Good Question Nice Answer Nice Answer Good Answer ios Yearling,NULL,pHere is Wood solution updated for Swift ppre codeenum HMACAlgorithm case MD5 SHA1 SHA224 SHA256 SHA384 SHA512 func toCCHmacAlgorithm gt CCHmacAlgorithm var result Int switch self case MD5 result kCCHmacAlgMD5 case SHA1 result kCCHmacAlgSHA1 case SHA224 result kCCHmacAlgSHA224 case SHA256 result kCCHmacAlgSHA256 case SHA384 result kCCHmacAlgSHA384 case SHA512 result kCCHmacAlgSHA512 return CCHmacAlgorithm result func digestLength gt Int var result CInt switch self case MD5 result CC MD5 DIGEST LENGTH case SHA1 result CC SHA1 DIGEST LENGTH case SHA224 result CC SHA224 DIGEST LENGTH case SHA256 result CC SHA256 DIGEST LENGTH case SHA384 result CC SHA384 DIGEST LENGTH case SHA512 result CC SHA512 DIGEST LENGTH return Int result extension String func hmac algorithm HMACAlgorithm key String gt String let cKey key cString using String Encoding utf8 let cData self cString using String Encoding utf8 var result CUnsignedChar repeating count Int algorithm digestLength CCHmac algorithm toCCHmacAlgorithm cKey Int strlen cKey cData Int strlen cData amp result let hmacData NSData NSData bytes result length Int algorithm digestLength let hmacBase64 hmacData base64EncodedString options NSData Base64EncodingOptions lineLength76Characters return String hmacBase64 usage let hmacResult String myStringToHMAC hmac algorithm HMACAlgorithm SHA1 key foo code pre sounds like you have typo running this exact code in couple of projects The error you mention sounds like it on this intializer which is correct in the above code https developer apple com reference swift array 1641692 init,1,NULL,Implementing HMAC and SHA1 encryption in swift ios swift xcode6 pI am relatively new to Swift and stuck encrypting using HMAC and SHA1 Found the following answer href https stackoverflow com 24411522 4188344 https stackoverflow com 24411522 4188344 but can work out how to implement this properly Any help would be amazing pHere is Wood solution updated for Swift ppre codeenum HMACAlgorithm case MD5 SHA1 SHA224 SHA256 SHA384 SHA512 func toCCHmacAlgorithm gt CCHmacAlgorithm var result Int switch self case MD5 result kCCHmacAlgMD5 case SHA1 result kCCHmacAlgSHA1 case SHA224 result kCCHmacAlgSHA224 case SHA256 result kCCHmacAlgSHA256 case SHA384 result kCCHmacAlgSHA384 case SHA512 result kCCHmacAlgSHA512 return CCHmacAlgorithm result func digestLength gt Int var result CInt switch self case MD5 result CC MD5 DIGEST LENGTH case SHA1 result CC SHA1 DIGEST LENGTH case SHA224 result CC SHA224 DIGEST LENGTH case SHA256 result CC SHA256 DIGEST LENGTH case SHA384 result CC SHA384 DIGEST LENGTH case SHA512 result CC SHA512 DIGEST LENGTH return Int result extension String func hmac algorithm HMACAlgorithm key String gt String let cKey key cString using String Encoding utf8 let cData self cString using String Encoding utf8 var result CUnsignedChar repeating count Int algorithm digestLength CCHmac algorithm toCCHmacAlgorithm cKey Int strlen cKey cData Int strlen cData amp result let hmacData NSData NSData bytes result length Int algorithm digestLength let hmacBase64 hmacData base64EncodedString options NSData Base64EncodingOptions lineLength76Characters return String hmacBase64 usage let hmacResult String myStringToHMAC hmac algorithm HMACAlgorithm SHA1 key foo code pre 16866,153097,1089713,Supporter,NULL,NULL,0,NULL,NULL 16867,190831,58236,NULL,NULL,NULL,0,NULL,NULL 16868,94801,96740,Yearling Peer Pressure Notable Question Nice Answer Enlightened Good Answer ruby-on-rails Popular Question Yearling Custodian Custodian Good Question Yearling Great Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 16869,99271,363181,NULL,NULL,NULL,0,NULL,NULL 16870,1347357,1377501,NULL,NULL,NULL,0,NULL,NULL 16871,97377,355989,Popular Question Promoter Commentator Notable Question,NULL,NULL,0,NULL,NULL 16872,650464,903880,Popular Question Supporter,NULL,NULL,0,NULL,NULL 16873,1214855,771074,NULL,NULL,NULL,0,NULL,NULL 16874,95830,324335,NULL,NULL,NULL,0,NULL,NULL 16875,402027,282342,NULL,NULL,NULL,0,NULL,NULL 16876,106011,330603,Popular Question,NULL,NULL,0,NULL,NULL 16877,185034,188784,Famous Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 16878,148,480988,Nice Answer Enlightened Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 16879,91039,70998,Famous Question Yearling Stellar Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16880,26030,187539,Caucus Yearling,NULL,NULL,0,NULL,NULL 16881,25689,841769,Scholar Supporter Tumbleweed Student,NULL,NULL,0,NULL,NULL 16882,160246,984174,Tumbleweed Informed,NULL,NULL,0,NULL,NULL 16883,348984,559529,NULL,NULL,NULL,0,NULL,NULL 16884,1027378,902866,NULL,NULL,NULL,0,NULL,NULL 16885,498478,981200,Nice Question,NULL,NULL,0,NULL,NULL 16886,182863,458628,NULL,NULL,NULL,0,NULL,NULL 16887,544365,1114470,NULL,NULL,NULL,0,NULL,NULL 16888,44908,134077,Informed Good Answer Necromancer Nice Answer Popular Question Popular Question Yearling Great Answer Nice Answer Revival Nice Question Necromancer Yearling Necromancer Documentation User Famous Question Notable Question Necromancer Yearling Cleanup Announcer Necromancer Good Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 16889,42481,570208,Yearling,NULL,NULL,0,NULL,NULL 16890,136482,900971,Necromancer Good Answer Yearling Populist Nice Answer Yearling Census Revival Revival Guru Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 16891,76312,47399,Custodian Yearling Good Answer Yearling Curious Taxonomist,NULL,NULL,0,NULL,NULL 16892,772487,1171032,Yearling Nice Answer Citizen Patrol Custodian Yearling Necromancer Good Answer Popular Question Documentation User Revival Yearling Caucus Constituent Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 16893,247749,701131,NULL,NULL,NULL,0,NULL,NULL 16894,240920,297819,NULL,NULL,NULL,0,NULL,NULL 16895,67696,403994,Self-Learner Citizen Patrol Scholar Documentation User,NULL,NULL,0,NULL,NULL 16896,923188,1226903,Popular Question,NULL,NULL,0,NULL,NULL 16897,157049,724421,Teacher Supporter,NULL,NULL,0,NULL,NULL 16898,97592,1140047,NULL,NULL,NULL,0,NULL,NULL 16899,18857,633801,NULL,NULL,NULL,0,NULL,NULL 16900,33687,275980,Yearling Civic Duty Yearling Yearling,NULL,NULL,0,NULL,NULL 16901,559682,379309,NULL,NULL,NULL,0,NULL,NULL 16902,1511520,586727,NULL,NULL,NULL,0,NULL,NULL 16903,957244,1332610,NULL,NULL,NULL,0,NULL,NULL 16904,498588,1443131,NULL,NULL,NULL,0,NULL,NULL 16905,14263,194670,Great Answer Yearling Nice Answer Enlightened Good Answer Yearling Excavator Informed Yearling,NULL,NULL,0,NULL,NULL 16906,47791,688981,Supporter Editor Tumbleweed,NULL,NULL,0,NULL,NULL 16907,517956,1296327,Nice Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Famous Question Critic Nice Question Notable Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 16908,16906,988527,Citizen Patrol Yearling Popular Question Nice Answer Nice Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 16909,83248,185889,NULL,NULL,NULL,0,NULL,NULL 16910,408868,52239,Yearling Nice Question Good Answer Nice Answer Tag Editor Popular Question Necromancer Popular Question Good Answer Revival Popular Question Announcer Caucus Nice Question Nice Answer Notable Question Great Answer Yearling Popular Question Necromancer Guru Notable Question Good Question Nice Question Announcer algorithm Good Answer Popular Question Revival Documentation User Nice Answer Enlightened Notable Question Popular Question Yearling Revival Census Caucus Announcer Popular Question Good Answer Notable Question Popular Question,NULL,FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code ławJasper removed that check from the repro because it was returning non null on all the browsers tested including firefox android put the check back in since it causing confusion to omit it FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code The mobile version of firefox does seem to be failing an awful lot of conformance tests at https www khronos org registry webgl sdk tests webgl conformance tests html Maybe it bug in the browser,1,FRAMEBUFFER INCOMPLETE ATTACHMENT only happens on Android Firefox javascript cross browser webgl framebuffer pI have some javascript webgl code that works on every browser ve tried except for the mobile version of firefox running on Android The problem has something to do with being href https www opengl org wiki Framebuffer Object Framebuffer Completeness rel nofollow framebuffer complete but don know what specifically is wrong ppHere the smallest repro could make It supposed to just create texture and framebuffer set some properties then check that the framebuffer is complete pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar canvas document createElement canvas xD var gl canvas getContext webgl xD var GL WebGLRenderingContext xD if gl getExtension OES texture float null xD alert No float support xD xD xD var texture gl createTexture xD var frameBuffer gl createFramebuffer xD gl bindTexture GL TEXTURE 2D texture xD gl bindFramebuffer GL FRAMEBUFFER frameBuffer xD xD gl texParameteri GL TEXTURE 2D GL TEXTURE MAG FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE MIN FILTER GL NEAREST xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texParameteri GL TEXTURE 2D GL TEXTURE WRAP GL CLAMP TO EDGE xD gl texImage2D xD GL TEXTURE 2D target xD level xD GL RGBA internalformat xD width xD height xD border xD GL RGBA format xD GL FLOAT type changing to UNSIGNED BYTE fixes the failure xD null pixels xD xD gl framebufferTexture2D xD GL FRAMEBUFFER xD GL COLOR ATTACHMENT0 xD GL TEXTURE 2D xD texture xD xD xD var result gl checkFramebufferStatus GL FRAMEBUFFER xD if result GL FRAMEBUFFER COMPLETE xD alert success FRAMEBUFFER COMPLETE xD else xD alert ERROR xD Argument wasn frame buffer xD GL INVALID ENUM INVALID ENUM xD GL FRAMEBUFFER INCOMPLETE ATTACHMENT FRAMEBUFFER INCOMPLETE ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD FRAMEBUFFER INCOMPLETE MISSING ATTACHMENT xD GL FRAMEBUFFER INCOMPLETE DIMENSIONS FRAMEBUFFER INCOMPLETE DIMENSIONS xD GL FRAMEBUFFER UNSUPPORTED FRAMEBUFFER UNSUPPORTED xD result result xD code pre xD div xD div xD ppIn my testing this code succeeds on Windows Firefox 44 Windows Chrome 49 Android Chrome and Ubuntu Firefox But it fails with codeFRAMEBUFFER INCOMPLETE ATTACHMENT code on Android Firefox ppAlso ve found that it only seems to affect codeFLOAT code textures If change the type to codeUNSIGNED BYTE code it passes ppBecause not familiar with opengl in general it likely that ve made some obvious oversight not binding required property and mobile firefox is the only browser that didn silently fix my mistake ppAnother possibly relevant thing is having to pass codeGL FRAMEBUFFER code into codegl checkFramebufferStatus code instead of the actual codeframeBuffer code instance When pass codeframeBuffer code the result is just always Normally means success but href https developer mozilla org en US docs Web API WebGLRenderingContext checkFramebufferStatus rel nofollow the mdn docs don even list as possible return value for this function they say the good result is codeFRAMEBUFFER COMPLETE code,NULL 16911,1017653,583823,NULL,NULL,NULL,0,NULL,NULL 16912,200898,83441,Promoter Famous Question Nice Question,NULL,NULL,0,NULL,NULL 16913,458349,323009,NULL,NULL,NULL,0,NULL,NULL 16914,278770,1195741,Scholar,NULL,NULL,0,NULL,NULL 16915,502246,738662,Civic Duty Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16916,2602070,738662,Civic Duty Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16917,693334,899003,Notable Question Popular Question Announcer Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 16918,86069,1209972,NULL,NULL,NULL,0,NULL,NULL 16919,126349,198846,Good Answer Nice Answer Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 16920,178639,499151,Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 16921,508140,1167834,NULL,NULL,NULL,0,NULL,NULL 16922,303743,92992,Student Promoter Yearling Nice Question Good Answer Yearling Nice Answer Enlightened Tumbleweed Critic Revival,NULL,NULL,0,NULL,NULL 16923,418298,378543,NULL,NULL,NULL,0,NULL,NULL 16924,287412,8224,Favorite Question Yearling Popular Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 16925,330759,872896,NULL,NULL,NULL,0,NULL,NULL 16926,92166,489057,NULL,NULL,NULL,0,NULL,NULL 16927,6824875,784976,NULL,NULL,NULL,0,NULL,NULL 16928,340262,329921,Custodian Census,NULL,NULL,0,NULL,NULL 16929,717464,60067,Notable Question Custodian Favorite Question Yearling Popular Question Famous Question Notable Question Caucus Yearling Notable Question Great Question Caucus Announcer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 16930,401,572973,NULL,NULL,NULL,0,NULL,NULL 16931,88568,537999,NULL,NULL,NULL,0,NULL,NULL 16932,116150,123678,Yearling,NULL,NULL,0,NULL,NULL 16933,153630,26311,Popular Question Nice Question Notable Question Editor Excavator Good Question,NULL,NULL,0,NULL,NULL 16934,142198,69548,Custodian Caucus Constituent Yearling Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 16935,300837,779834,NULL,NULL,NULL,0,NULL,NULL 16936,7310022,719598,NULL,NULL,NULL,0,NULL,NULL 16937,18180,1342011,NULL,NULL,NULL,0,NULL,NULL 16938,1008262,222230,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16939,14419,1553179,NULL,NULL,NULL,0,NULL,NULL 16940,362068,6632,Yearling Popular Question Popular Question Notable Question Announcer Popular Question Revival Documentation User Yearling,NULL,NULL,0,NULL,NULL 16941,258223,557728,NULL,NULL,NULL,0,NULL,NULL 16942,8144,271159,NULL,NULL,NULL,0,NULL,NULL 16943,2403885,271159,NULL,NULL,NULL,0,NULL,NULL 16944,214515,298172,Yearling Notable Question Popular Question Notable Question Promoter Good Question Inquisitive Popular Question Good Question Yearling Notable Question Notable Question Custodian Custodian Famous Question,NULL,NULL,0,NULL,NULL 16945,502530,1024019,Curious Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 16946,422258,219028,Notable Question,NULL,NULL,0,NULL,NULL 16947,290385,766616,Notable Question Yearling Necromancer Yearling Nice Answer Nice Answer Necromancer Yearling Organizer,NULL,NULL,0,NULL,NULL 16948,471978,501781,Notable Question Caucus,NULL,NULL,0,NULL,NULL 16949,315134,13714,Revival Notable Question Nice Question Yearling Popular Question Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 16950,156066,586787,NULL,NULL,NULL,0,NULL,NULL 16951,154990,1271591,NULL,NULL,NULL,0,NULL,NULL 16952,877285,638436,NULL,NULL,NULL,0,NULL,NULL 16953,3749899,638436,NULL,NULL,NULL,0,NULL,NULL 16954,73924,1198695,NULL,NULL,NULL,0,NULL,NULL 16955,28797,998314,NULL,NULL,NULL,0,NULL,NULL 16956,83680,1274466,Yearling Revival Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 16957,82793,654790,Revival,NULL,NULL,0,NULL,NULL 16958,828542,1506698,NULL,NULL,NULL,0,NULL,NULL 16959,1837754,1366616,Notable Question,NULL,NULL,0,NULL,NULL 16960,354979,686655,NULL,NULL,NULL,0,NULL,NULL 16961,48193,759888,NULL,NULL,NULL,0,NULL,NULL 16962,222040,8802,Popular Question Excavator Yearling Popular Question Notable Question Documentation User Nice Question Custodian,NULL,NULL,0,NULL,NULL 16963,1206905,329350,Student,NULL,NULL,0,NULL,NULL 16964,406721,248145,Yearling,NULL,NULL,0,NULL,NULL 16965,213944,323826,NULL,NULL,NULL,0,NULL,NULL 16966,270356,158893,Popular Question Nice Question Critic Notable Question,NULL,NULL,0,NULL,NULL 16967,23744,1349897,NULL,NULL,NULL,0,NULL,NULL 16968,122094,425810,Curious Yearling Nice Answer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 16969,112370,364150,Good Answer Yearling Yearling Custodian Tag Editor Guru python Nice Answer Enlightened Caucus Nice Answer Enlightened Revival Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer google-colaboratory,NULL,NULL,0,NULL,NULL 16970,18416,455340,Notable Question Nice Question Famous Question Nice Question Civic Duty Nice Question Notable Question Nice Question Popular Question Cleanup Famous Question Popular Question Excavator Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Caucus Notable Question Popular Question Good Answer Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Good Question Revival Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Famous Question Necromancer Popular Question Famous Question Popular Question Good Answer Notable Question Famous Question Famous Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 16971,418607,5193,Nice Answer Yearling Popular Question Popular Question Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 16972,417252,33689,Popular Question Popular Question Great Answer Notable Question Popular Question Popular Question Announcer Famous Question Nice Question Yearling Good Question Notable Question Popular Question Popular Question Famous Question Notable Question Famous Question Nice Question Great Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 16973,168339,64897,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 16974,602846,830372,Popular Question,NULL,NULL,0,NULL,NULL 16975,6781,25333,Yearling Popular Question Guru Nice Answer Enlightened Favorite Question mongodb-.net-driver Yearling Documentation User Census Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 16976,4017534,910814,NULL,NULL,NULL,0,NULL,NULL 16977,131120,307391,NULL,NULL,NULL,0,NULL,NULL 16978,267478,586884,NULL,NULL,NULL,0,NULL,NULL 16979,614316,1438083,Student Autobiographer,NULL,NULL,0,NULL,NULL 16980,185100,859833,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 16981,125831,958289,NULL,NULL,NULL,0,NULL,NULL 16982,7036142,670884,Critic Yearling Yearling Citizen Patrol Enthusiast Custodian,NULL,NULL,0,NULL,NULL 16983,45988,114,Famous Question Yearling Popular Question Popular Question Editor Good Question Yearling,NULL,NULL,0,NULL,NULL 16984,93920,462313,NULL,NULL,NULL,0,NULL,NULL 16985,651128,1482675,NULL,NULL,NULL,0,NULL,NULL 16986,165062,68943,NULL,NULL,NULL,0,NULL,NULL 16987,2741924,68943,NULL,NULL,NULL,0,NULL,NULL 16988,430846,1301869,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 16989,44337,1426727,NULL,NULL,NULL,0,NULL,NULL 16990,431165,748974,NULL,NULL,NULL,0,NULL,NULL 16991,1129855,742997,NULL,NULL,NULL,0,NULL,NULL 16992,1154787,1300266,NULL,NULL,NULL,0,NULL,NULL 16993,771771,542695,Notable Question Commentator Popular Question Critic,NULL,NULL,0,NULL,NULL 16994,723657,585851,NULL,NULL,NULL,0,NULL,NULL 16995,276944,183421,NULL,NULL,NULL,0,NULL,NULL 16996,3230154,183421,NULL,NULL,NULL,0,NULL,NULL 16997,91946,1144702,NULL,NULL,NULL,0,NULL,NULL 16998,92076,1144702,NULL,NULL,NULL,0,NULL,NULL 16999,609844,285812,Yearling Great Question,NULL,NULL,0,NULL,NULL 17000,59344,193056,NULL,NULL,NULL,0,NULL,NULL 17001,92472,1128306,NULL,NULL,NULL,0,NULL,NULL 17002,2662377,1128306,NULL,NULL,NULL,0,NULL,NULL 17003,65378,486388,NULL,NULL,NULL,0,NULL,NULL 17004,108788,371277,NULL,NULL,NULL,0,NULL,NULL 17005,316974,33383,Good Question Famous Question,NULL,NULL,0,NULL,NULL 17006,139202,468494,NULL,NULL,NULL,0,NULL,NULL 17007,403545,121466,Notable Question Nice Question Notable Question Popular Question Notable Question Announcer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17008,1217618,1311564,NULL,NULL,NULL,0,NULL,NULL 17009,288261,489396,Yearling Revival Citizen Patrol Announcer Announcer,NULL,NULL,0,NULL,NULL 17010,710862,248333,NULL,NULL,NULL,0,NULL,NULL 17011,3328424,865168,NULL,NULL,NULL,0,NULL,NULL 17012,171828,865168,NULL,NULL,NULL,0,NULL,NULL 17013,556528,303555,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17014,143950,270903,Popular Question,NULL,NULL,0,NULL,NULL 17015,6958,725850,Notable Question,NULL,NULL,0,NULL,NULL 17016,309749,466125,Curious Commentator Popular Question,NULL,NULL,0,NULL,NULL 17017,304233,442535,Yearling Scholar Civic Duty Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 17018,23366,1303524,NULL,NULL,NULL,0,NULL,NULL 17019,212904,300162,Yearling Student Yearling Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 17020,494754,1039303,Supporter,NULL,NULL,0,NULL,NULL 17021,20780,964644,Supporter,NULL,,0,, 17022,977414,320837,Famous Question Nice Question Popular Question Yearling Notable Question Nice Question Caucus Good Question Census Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17023,149052,784135,NULL,NULL,NULL,0,NULL,NULL 17024,7536161,536068,Popular Question,NULL,NULL,0,NULL,NULL 17025,302691,365030,Yearling Caucus Revival Yearling Caucus,NULL,NULL,0,NULL,NULL 17026,201943,1356357,NULL,NULL,NULL,0,NULL,NULL 17027,33253,1473287,Yearling,NULL,NULL,0,NULL,NULL 17028,451861,1440011,Editor Student,NULL,NULL,0,NULL,NULL 17029,198565,983093,NULL,NULL,NULL,0,NULL,NULL 17030,159160,491159,NULL,NULL,NULL,0,NULL,NULL 17031,109653,286021,Documentation User Popular Question,NULL,NULL,0,NULL,NULL 17032,435729,680941,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17033,25135,186558,Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17034,210590,69885,Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question python,NULL,NULL,0,NULL,NULL 17035,484431,1344835,NULL,NULL,NULL,0,NULL,NULL 17036,50991,282642,NULL,NULL,NULL,0,NULL,NULL 17037,294903,941508,Yearling Caucus Necromancer Yearling Caucus Constituent Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17038,60757,1326774,NULL,NULL,NULL,0,NULL,NULL 17039,983317,333243,Notable Question Good Answer Revival Nice Question,NULL,NULL,0,NULL,NULL 17040,975219,946761,NULL,NULL,NULL,0,NULL,NULL 17041,748017,912483,NULL,NULL,NULL,0,NULL,NULL 17042,132664,566637,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17043,152833,221260,NULL,NULL,NULL,0,NULL,NULL 17044,377441,1544353,NULL,NULL,NULL,0,NULL,NULL 17045,632977,371737,Tenacious Guru Yearling Curious Excavator Popular Question Famous Question Nice Answer Enlightened Yearling Notable Question Custodian Documentation User Self-Learner Good Answer Guru Yearling Popular Question Custodian Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 17046,118512,863180,Popular Question Notable Question Notable Question Yearling Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17047,154152,1436323,NULL,NULL,NULL,0,NULL,NULL 17048,846861,43851,Necromancer Notable Question Good Question Necromancer Yearling Necromancer Custodian Custodian Explainer Popular Question Nice Answer Notable Question Nice Answer Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 17049,308560,277345,Popular Question Nice Question Yearling Popular Question Famous Question Revival Notable Question Announcer Notable Question Nice Answer Popular Question Popular Question Yearling Necromancer Famous Question Announcer Announcer Enthusiast Announcer Custodian Revival Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 17050,1335,773100,NULL,NULL,NULL,0,NULL,NULL 17051,792294,969247,NULL,NULL,NULL,0,NULL,NULL 17052,1034590,1372429,Supporter Nice Question,NULL,NULL,0,NULL,NULL 17053,1263287,528635,NULL,NULL,NULL,0,NULL,NULL 17054,200362,1460830,Yearling Necromancer Popular Question Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 17055,390926,199418,Tumbleweed Promoter Nice Question Notable Question,NULL,NULL,0,NULL,NULL 17056,340110,341362,Necromancer Notable Question Nice Answer Tumbleweed Popular Question Popular Question Yearling Custodian Popular Question Good Question Popular Question Famous Question Caucus Constituent Popular Question Necromancer Famous Question Guru Enthusiast Popular Question Famous Question Famous Question Yearling Popular Question Caucus Famous Question Revival Announcer Census Custodian Popular Question Famous Question Notable Question Notable Question Notable Question Notable Question Caucus Yearling Necromancer Popular Question Nice Answer Nice Answer Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 17057,100255,1420791,Critic,NULL,NULL,0,NULL,NULL 17058,208424,217547,NULL,NULL,NULL,0,NULL,NULL 17059,895363,870110,NULL,NULL,NULL,0,NULL,NULL 17060,200595,540833,NULL,NULL,NULL,0,NULL,NULL 17061,153857,521132,NULL,NULL,NULL,0,NULL,NULL 17062,149393,593299,NULL,NULL,NULL,0,NULL,NULL 17063,64249,728223,NULL,NULL,NULL,0,NULL,NULL 17064,1504984,757517,NULL,NULL,NULL,0,NULL,NULL 17065,111090,1240959,NULL,NULL,NULL,0,NULL,NULL 17066,200157,979224,NULL,NULL,NULL,0,NULL,NULL 17067,309160,320711,NULL,NULL,NULL,0,NULL,NULL 17068,80927,97856,Yearling Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 17069,312527,791294,NULL,NULL,NULL,0,NULL,NULL 17070,82268,43400,Nice Question,NULL,NULL,0,NULL,NULL 17071,128739,282061,Popular Question Student Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 17072,1089245,1284494,Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling ruby Nice Answer Enlightened Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 17073,1187342,1180569,Nice Question Popular Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 17074,4402,1029997,NULL,NULL,NULL,0,NULL,NULL 17075,291678,433041,Notable Question Teacher Citizen Patrol Tag Editor Commentator Caucus Documentation User Announcer Yearling Census Critic Caucus Revival,NULL,NULL,0,NULL,NULL 17076,1210951,1040722,NULL,NULL,NULL,0,NULL,NULL 17077,880886,149202,Popular Question Popular Question Necromancer Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 17078,484281,530413,Yearling,NULL,NULL,0,NULL,NULL 17079,71995,389387,NULL,NULL,NULL,0,NULL,NULL 17080,73709,673288,Critic Commentator Nice Answer Caucus Editor Yearling,NULL,pUntil API Gateway APIG supports edge caching via its internal use of CloudFormation CF have come up with workaround ppYou can indeed put CF dist in front of APIG the trick is to force HTTPS only Viewer Protocol Policy AND to not forward the HOST header because APIG needs SNI ppI setup my CF Default Cache Behavior Settings to not forward any headers and forced Viewer Protocol Policy to HTTPS Only and it works Hope this helps others ppHere is CloudFormation resource object that has all the required configuration Note use the convention code lt stage gt lt app name gt code for StackName ppre codeCloudFront Type AWS CloudFront Distribution Properties DistributionConfig Enabled true IPV6Enabled true HttpVersion http2 Comment Join Ref AWS StackName Cloud Front Aliases Ref CloudFrontCname ViewerCertificate AcmCertificateArn Ref AcmCertificateArn SslSupportMethod sni only Origins Id APIGOrigin DomainName Sub apigId execute api AWS Region amazonaws com apigId Ref ApiGatewayLambdaProxy OriginPath Sub Stage Stage Select Split Ref AWS StackName CustomOriginConfig HTTPPort 80 HTTPSPort 443 OriginProtocolPolicy https only OriginCustomHeaders HeaderName Verify From Cf HeaderValue Ref VerifyFromCfHeaderVal DefaultCacheBehavior AllowedMethods DELETE GET HEAD OPTIONS PATCH POST PUT CachedMethods GET HEAD OPTIONS ForwardedValues Headers Access Control Request Headers Access Control Request Method Origin Authorization Host APIG needs to use SNI QueryString true TargetOriginId APIGOrigin ViewerProtocolPolicy https only Compress true DefaultTTL CustomErrorResponses ErrorCachingMinTTL ErrorCode 400 ErrorCachingMinTTL ErrorCode 403 ErrorCachingMinTTL ErrorCode 500 DNSARecord Type AWS Route53 RecordSet Properties Comment Ref AWS StackName Name Ref CloudFrontCname Type HostedZoneName Join Select Split Ref CloudFrontCname Select Split Ref CloudFrontCname AliasTarget HostedZoneId Ref Route53HostedZoneId DNSName GetAtt CloudFront DomainName DNSAAAARecord Type AWS Route53 RecordSet Properties Comment Ref AWS StackName Name Ref CloudFrontCname Type AAAA HostedZoneName Join Select Split Ref CloudFrontCname Select Split Ref CloudFrontCname AliasTarget HostedZoneId Ref Route53HostedZoneId DNSName GetAtt CloudFront DomainName code prep strongUpdates strong polli codeOriginProtocolPolicy code to codehttps only code liliNow using YML liliMore production ready example SSL only codeDomainName code not hard coded custom header to verify requests come through CloudFront codeCustomErrorResponses code Edge Gzip Caching codeOPTIONS code li ol just tested and it now working curl https api cloudprowess com to see it in action do this in order to be able to set custom domain that uses an SSL certificate issued by the AWS Certificate Manager which wouldn be available otherwise to my API Gateway My question now is if this is going to cost me twice for CloudFront bandwidth and requests or will the within CloudFront costs be zero ll ask this as new question,0,NULL,NULL 17081,762571,904493,NULL,NULL,NULL,0,NULL,NULL 17082,712822,597404,NULL,NULL,NULL,0,NULL,NULL 17083,112608,1073903,NULL,NULL,NULL,0,NULL,NULL 17084,36609,187004,Yearling Necromancer Citizen Patrol Revival Good Answer Caucus ruby Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 17085,259748,592015,Yearling Popular Question Popular Question Popular Question Self-Learner Popular Question Nice Question Good Question Yearling Custodian Notable Question Popular Question Popular Question Notable Question Notable Question Guru Popular Question Custodian Popular Question java Necromancer Yearling Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17086,166060,12892,Guru Announcer Yearling Caucus Constituent Announcer Announcer Census Announcer Announcer Announcer Guru Booster Caucus Announcer Announcer Yearling Announcer Necromancer Documentation User Publicist Popular Question Census Announcer Announcer Announcer Booster Announcer Good Answer Caucus Constituent Booster Famous Question Announcer Announcer Yearling,NULL,pYou can use href http docs python org library itertools html itertools chain rel noreferrer codeitertools chain code ppre code gt gt gt import itertools gt gt gt list2d gt gt gt merged list itertools chain list2d code prepor on Python use href http docs python org library itertools html itertools chain from iterable rel noreferrer codeitertools chain from iterable code which doesn require unpacking the list ppre code gt gt gt import itertools gt gt gt list2d gt gt gt merged list itertools chain from iterable list2d code prepThis approach is arguably more readable than code item for sublist in for item in sublist code and appears to be faster too ppre code me python mtimeit 99 import itertools list itertools chain from iterable 10000 loops best of 24 usec per loop me python mtimeit 99 item for sublist in for item in sublist 10000 loops best of 45 usec per loop me python mtimeit 99 sum 1000 loops best of 488 usec per loop me python mtimeit 99 reduce lambda 1000 loops best of 522 usec per loop me python versionPython code pre reduce lambda could be replaced with reduce operator add Get the short Git version hash git pIs there cleaner way to get the short version hash of codeHEAD code from Git ppI want to see the same output as get from ppre code git log head sed commit head code prehrpI originally used this to generate version string but this is even better ppre codegit describe tags code prepIt will output strings like code0 12 code tagged commit or code0 11 g0c85fbc code five commits after the tag Possible duplicate of git get short hash from regular hash https stackoverflow com questions 16413373 git get short hash from regular hash pre codeimport csvimport sqlite3from glob import glob from os path import expanduserconn sqlite3 connect open places sqlite from one of the Firefox profiles glob expanduser mozilla firefox places sqlite cursor conn cursor cursor execute select from moz places with open out csv newline as csv file Python version with open out csv wb as csv file Python version csv writer csv writer csv file csv writer writerow for in cursor description write headers csv writer writerows cursor code prep href http www python org dev peps pep 0249 description rel noreferrer PEP 249 DB API has more information about codecursor description code actually no the documentation suggests using the binary mode See also revision from the history of the answer pre codeimport csvimport sqlite3from glob import glob from os path import expanduserconn sqlite3 connect open places sqlite from one of the Firefox profiles glob expanduser mozilla firefox places sqlite cursor conn cursor cursor execute select from moz places with open out csv newline as csv file Python version with open out csv wb as csv file Python version csv writer csv writer csv file csv writer writerow for in cursor description write headers csv writer writerows cursor code prep href http www python org dev peps pep 0249 description rel noreferrer PEP 249 DB API has more information about codecursor description code ve updated my answer for Python pre codeimport operatortuple map operator add code pre generator comprehensions are even better tuple item1 item2 for item1 item2 in zip,0,NULL,NULL 17087,1392385,1103529,NULL,NULL,NULL,0,NULL,NULL 17088,223395,1103529,NULL,NULL,NULL,0,NULL,NULL 17089,82522,680,Famous Question Nice Question Famous Question Popular Question Yearling Great Answer Good Question Favorite Question Necromancer Necromancer Great Answer Great Answer Good Question Popular Question Good Question Announcer Yearling Great Answer Notable Question Notable Question Nice Answer Nice Question Good Question Yearling Stellar Question Notable Question,NULL,NULL,0,NULL,NULL 17090,36544,1256,Good Question Favorite Question Yearling Great Question Notable Question Good Question Nice Question Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 17091,489937,601318,Revival,NULL,NULL,0,NULL,NULL 17092,129138,16526,Nice Answer Necromancer Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17093,512521,249126,NULL,NULL,NULL,0,NULL,NULL 17094,318805,397816,Guru Good Answer Yearling Notable Question Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 17095,478294,292921,Good Answer Yearling Popular Question Nice Question Civic Duty Custodian Necromancer Nice Question Popular Question Popular Question Notable Question Custodian Yearling Good Answer Pundit Popular Question Popular Question Famous Question Popular Question Yearling Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17096,455136,292921,Good Answer Yearling Popular Question Nice Question Civic Duty Custodian Necromancer Nice Question Popular Question Popular Question Notable Question Custodian Yearling Good Answer Pundit Popular Question Popular Question Famous Question Popular Question Yearling Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17097,806509,641129,NULL,NULL,NULL,0,NULL,NULL 17098,25495,244296,Yearling Good Answer Nice Answer Nice Answer Enlightened Good Question Good Answer Good Answer Good Answer Nice Answer Popular Question Notable Question Great Answer Guru Notable Question Nice Answer Good Answer Good Answer Good Answer Favorite Question Great Answer Nice Answer Great Answer Electorate Informed Good Answer Good Answer Great Answer Great Answer Great Answer Great Answer Guru Good Answer Nice Answer Enlightened Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Popular Question Necromancer Good Answer Great Answer Famous Question Nice Answer Guru Great Answer Nice Answer Great Answer Famous Question Guru Great Answer Great Answer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Documentation User Good Answer Nice Answer Enlightened Guru Yearling Good Answer Good Answer Great Answer Caucus Good Question Notable Question Guru Great Answer Guru Popular Question,NULL,pHere compilation of href http developer android com guide faq framework html rel noreferrer most common ways to achieve this pulliSend data inside intent liliStatic fields liliHashMap of codeWeakReferences code liliPersist objects sqlite share preferences file etc li ulp strongTL DR strong there are two ways of sharing data passing data in the intent extras or saving it somewhere else If data is primitives Strings or user defined objects send it as part of the intent extras user defined objects must implement codeParcelable code If passing complex objects save an instance in singleton somewhere else and access them from the launched activity ppSome examples of how and why to implement each approach ph2Send data inside intents h2pre codeIntent intent new Intent FirstActivity this SecondActivity class intent putExtra some key value intent putExtra some other key value startActivity intent code prepOn the second activity ppre codeBundle bundle getIntent getExtras int value bundle getInt some key String value2 bundle getString some other key code prepUse this method strongif you are passing primitive data or Strings strong You can also pass objects that implements codeSerializable code ppAlthough tempting you should think twice before using codeSerializable code it error prone and horribly slow So in general strongstay away from codeSerializable code strong if possible If you want to pass complex user defined objects strongtake look at the codeParcelable code interface strong It harder to implement but it has considerable speed gains compared to codeSerializable code ph1Share data without persisting to disk h1pIt is possible to share data between activities by saving it in memory given that in most cases both activities run in the same process pp strongNote strong sometimes when the user leaves your activity without quitting it Android may decide to kill your application In such scenario have experienced cases in which android attempts to launch the last activity using the intent provided before the app was killed In this cases data stored in singleton either yours or codeApplication code will be gone and bad things could happen To avoid such cases you either persist objects to disk or check data before using it to make sure its valid ph2Use singleton class h2pHave class to hold the data ppre codepublic class DataHolder private String data public String getData return data public void setData String data this data data private static final DataHolder holder new DataHolder public static DataHolder getInstance return holder code prepFrom the launched activity ppre codeString data DataHolder getInstance getData code preh3Use application singleton h3pThe application singleton is an instance of codeandroid app Application code which is created when the app is launched You can provide custom one by extending codeApplication code ppre codeimport android app Application public class MyApplication extends Application private String data public String getData return data public void setData String data this data data code prepBefore launching the activity ppre codeMyApplication app MyApplication getApplicationContext app setData someData code prepThen from the launched activity ppre codeMyApplication app MyApplication getApplicationContext String data app getData code preh3Static fields h3pThe idea is basically the same as the singleton but in this case you provide static access to the data ppre codepublic class DataHolder private static String data public static String getData return data public static String setData String data DataHolder data data code prepFrom the launched activity ppre codeString data DataHolder getData code preh3HashMap of codeWeakReferences code h3pSame idea but allowing the garbage collector to removed unreferenced objects when the user quits the activity ppre codepublic class DataHolder Map lt String WeakReference lt Object gt gt data new HashMap lt String WeakReference lt Object gt gt void save String id Object object data put id new WeakReference lt Object gt object Object retrieve String id WeakReference lt Object gt objectWeakReference data get id return objectWeakReference get code prepBefore launching the activity ppre codeDataHolder getInstance save someId someObject code prepFrom the launched activity ppre codeDataHolder getInstance retrieve someId code prepYou may or may not have to pass the object id using the intent’s extras It all depends on your specific problem ph1Persist objects to disk h1pThe idea is to save the data in disk before launching the other activity pp strongAdvantages strong you can launch the activity from other places and if the data is already persisted it should work just fine pp strongDisadvantages strong it’s cumbersome and takes more time to implement Requires more code and thus more chance of introducing bugs It will also be much slower ppSome of the ways to persist objects include pulli href http developer android com guide topics data data storage html pref rel noreferrer Save them to the shared preferences lili href http developer android com guide topics data data storage html db rel noreferrer Save them to sqlite database liliSave them to file I’d avoid this one li ul Yes sir indeed,0,NULL,NULL 17099,15344,964340,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17100,61221,1373026,Tumbleweed Popular Question Not a Robot Yearling Necromancer,NULL,NULL,0,NULL,NULL 17101,623159,679332,NULL,NULL,NULL,0,NULL,NULL 17102,521117,923323,Good Question Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 17103,1214956,1378514,NULL,NULL,NULL,0,NULL,NULL 17104,685146,1099676,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17105,45939,564449,Yearling Notable Question Notable Question Nice Question Popular Question Famous Question Popular Question Caucus Constituent Yearling Popular Question Notable Question Popular Question Popular Question Caucus Good Question Yearling Custodian Popular Question Popular Question Popular Question Excavator Notable Question,NULL,NULL,0,NULL,NULL 17106,210143,513487,NULL,NULL,NULL,0,NULL,NULL 17107,896097,279026,Documentation User,NULL,NULL,0,NULL,NULL 17108,1605131,1202136,Yearling Good Question Revival Nice Answer Announcer Nice Answer Notable Question Guru Nice Answer Enlightened Yearling python Good Answer Necromancer Promoter Benefactor Nice Question Good Question Popular Question Good Answer Yearling Popular Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17109,3364,764523,NULL,NULL,,0,, 17110,345894,603036,Nice Answer Autobiographer Critic Yearling Popular Question Revival Custodian Citizen Patrol Organizer Tag Editor Popular Question Caucus Yearling Yearling Yearling Tenacious Announcer Good Answer Curious Unsung Hero Yearling Caucus Civic Duty Necromancer Self-Learner,NULL,NULL,0,NULL,NULL 17111,4706,620479,Informed Critic Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 17112,261226,1507979,Yearling,NULL,NULL,0,NULL,NULL 17113,27865,412567,Necromancer Necromancer Popular Question Yearling Nice Answer Revival Pundit Self-Learner Yearling Necromancer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17114,104903,412567,Necromancer Necromancer Popular Question Yearling Nice Answer Revival Pundit Self-Learner Yearling Necromancer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17115,177042,42959,Nice Question,NULL,NULL,0,NULL,NULL 17116,479740,958965,Yearling Good Answer,NULL,NULL,0,NULL,NULL 17117,344459,911408,Popular Question Nice Answer Revival Yearling Critic Popular Question Civic Duty Yearling Necromancer Nice Answer Yearling Good Answer Enthusiast,NULL,NULL,0,NULL,NULL 17118,1308671,1222687,Revival Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 17119,138726,371374,NULL,NULL,NULL,0,NULL,NULL 17120,489433,116751,Revival Yearling Famous Question Nice Question Notable Question Popular Question Necromancer Necromancer Yearling Notable Question Nice Question Popular Question Necromancer Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17121,25997,6262,Custodian Custodian Custodian Yearling Nice Answer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 17122,1735911,6262,Custodian Custodian Custodian Yearling Nice Answer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 17123,131544,546084,Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Famous Question Enlightened Popular Question Favorite Question Notable Question Guru Notable Question Nice Answer Popular Question Notable Question Yearling Guru Enlightened Good Answer Famous Question Good Answer Guru Nice Answer Good Question Notable Question Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Notable Question Nice Answer Famous Question Nice Answer Yearling Good Question Guru Notable Question Nice Answer Favorite Question Nice Answer Enlightened Good Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 17124,1287856,573737,NULL,NULL,NULL,0,NULL,NULL 17125,231244,848947,Popular Question,NULL,NULL,0,NULL,NULL 17126,101573,692051,Yearling Civic Duty Nice Answer Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 17127,225853,234315,NULL,NULL,NULL,0,NULL,NULL 17128,281588,234315,NULL,NULL,NULL,0,NULL,NULL 17129,200489,234913,Citizen Patrol Custodian Custodian Organizer Yearling,NULL,NULL,0,NULL,NULL 17130,212836,1125385,NULL,NULL,NULL,0,NULL,NULL 17131,71051,420357,Great Answer Yearling Good Answer Yearling Guru Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 17132,1086603,693869,Yearling Revival Caucus Good Answer Announcer Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 17133,100699,439456,Good Question,NULL,NULL,0,NULL,NULL 17134,1503820,1117616,NULL,NULL,NULL,0,NULL,NULL 17135,646624,223677,NULL,NULL,NULL,0,NULL,NULL 17136,62959,659444,NULL,NULL,NULL,0,NULL,NULL 17137,1236623,561709,Popular Question Nice Question Notable Question Necromancer Yearling Popular Question Caucus Custodian Informed Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 17138,607201,859654,Popular Question,NULL,NULL,0,NULL,NULL 17139,1020468,558761,NULL,NULL,NULL,0,NULL,NULL 17140,3297137,558761,NULL,NULL,NULL,0,NULL,NULL 17141,84390,211291,NULL,NULL,NULL,0,NULL,NULL 17142,26123,959833,Popular Question Self-Learner Notable Question Yearling Necromancer Nice Question Nice Answer Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 17143,97204,786275,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 17144,222243,78815,Yearling Good Question Autobiographer,NULL,NULL,0,NULL,NULL 17145,864400,523257,NULL,NULL,NULL,0,NULL,NULL 17146,281402,1563979,NULL,NULL,NULL,0,NULL,NULL 17147,114163,281837,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 17148,283113,471407,Popular Question,NULL,NULL,0,NULL,NULL 17149,649159,564825,Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 17150,491747,570554,NULL,NULL,NULL,0,NULL,NULL 17151,64111,157280,Famous Question Necromancer Yearling Custodian Nice Answer Good Answer Yearling Good Answer Necromancer Great Answer Yearling,NULL,pI have created working example of what believe you are describing on my site here bra href http phrogz net svg drag under transformation xhtml rel noreferrer http phrogz net svg drag under transformation xhtml ppIn general you convert the mouse cursor into the local space of an object by polli pCreating codemousemove code event handler ppre class lang js prettyprint override codevar svg document getElementsByTagName svg document documentElement addEventListener mousemove function evt false code pre lili pIn that event handler convert the mouse coordinates in pixels into the global space of your SVG document ppre class lang js prettyprint override codevar pt svg createSVGPoint pt evt clientX pt evt clientY var globalPoint pt matrixTransform svg getScreenCTM inverse code pre lili pConvert the global point into the space of the object you are dragging ppre class lang js prettyprint override codevar globalToLocal dragObject getTransformToElement svg inverse var inObjectSpace globalPoint matrixTransform globalToLocal code pre li olpFor Stack Overflow posterity here the full source of my SVG XHTML demo in case my site is down ppre class lang html prettyprint override code lt DOCTYPE HTML gt lt html xmlns http www w3 org 1999 xhtml xml lang en gt lt head gt lt meta http equiv content type content application xhtml xml charset utf gt lt title gt Dragging Transformed SVG Elements lt title gt lt style type text css media screen gt html body background eee margin user select none moz user select none webkit user select none margin 5em text align center svg position absolute top left width 90 height 90 background fff border 1px solid ccc svg rect stroke 333 svg drag cursor move svg sizer opacity fill ff0 stroke 630 footer position absolute bottom 5em margin bottom width 40em margin left 20em left 50 color 666 font style italic font size 85 dragcatch position absolute left right top bottom index lt style gt lt head gt lt body gt lt gt Showing how to drag points inside transformation hierarchy lt gt lt svg viewBox 200 100 xmlns http www w3 org 2000 svg xmlns xlink http www w3 org 1999 xlink version baseProfile full gt lt transform scale gt lt rect transform translate 50 20 rotate 30 class drag resize 50 30 width 50 height 30 fill 69c gt lt rect class drag resize width 90 height 50 fill c66 gt lt gt lt svg gt lt id footer gt Copyright 2011 lt href mailto net gt Gavin Kistner lt gt Comments criticisms welcome lt gt lt script type text javascript gt lt CDATA var svg document getElementsByTagName svg var svgNS svg getAttribute xmlns var pt svg createSVGPoint function createOn root name prop var el document createElementNS svgNS name for var in prop if prop hasOwnProperty el setAttribute prop return root appendChild el function rectCorner rect pt rect animVal value rect width animVal value pt rect animVal value rect height animVal value return pt matrixTransform rect getTransformToElement svg function pointIn el pt pt return pt matrixTransform el getTransformToElement svg inverse function cursorPoint evt pt evt clientX pt evt clientY return pt matrixTransform svg getScreenCTM inverse Make all rects resizable before drag so the drag handles become drag for var svg querySelectorAll rect resize len length lt len function rect var dot createOn svg circle class drag sizer cx cy var moveDotToRect function var corner rectCorner rect dot setAttribute cx corner dot setAttribute cy corner moveDotToRect rect addEventListener dragged moveDotToRect false dot addEventListener dragged function var rectXY pointIn rect dot cx animVal value dot cy animVal value var Math max rectXY rect animVal value var Math max rectXY rect animVal value rect setAttribute width rect setAttribute height false for var svg querySelectorAll drag len length lt len function el var onmove make inner closure available for unregistration el addEventListener mousedown function el parentNode appendChild el move to top var el tagName circle cx var el tagName circle cy var mouseStart cursorPoint var elementStart el animVal value el animVal value onmove function var current cursorPoint pt current mouseStart pt current mouseStart var el getTransformToElement svg inverse pt pt matrixTransform el setAttribute elementStart pt el setAttribute elementStart pt var dragEvent document createEvent Event dragEvent initEvent dragged true true el dispatchEvent dragEvent document body addEventListener mousemove onmove false false document body addEventListener mouseup function document body removeEventListener mousemove onmove false false gt lt script gt lt div id dragcatch gt lt div gt lt body gt lt html gt code pre FYI the example is currently throwing an error in Chrome drag under transformation xhtml 56Uncaught TypeError rect getTransformToElement is not function,0,NULL,NULL 17152,22824,174497,Yearling Good Question,NULL,NULL,0,NULL,NULL 17153,315973,1230032,Student Editor Supporter Teacher Peer Pressure Commentator,NULL,NULL,0,NULL,NULL 17154,138341,583443,NULL,NULL,NULL,0,NULL,NULL 17155,15088,722338,NULL,NULL,NULL,0,NULL,NULL 17156,328195,594453,Scholar Not a Robot,NULL,NULL,0,NULL,NULL 17157,21157,841920,NULL,NULL,NULL,0,NULL,NULL 17158,1003973,906041,NULL,NULL,NULL,0,NULL,NULL 17159,211491,1346492,Student Scholar,NULL,NULL,0,NULL,NULL 17160,365255,1173328,NULL,NULL,NULL,0,NULL,NULL 17161,27646,1458318,Yearling Nice Answer Nice Answer Enlightened laravel Yearling php Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 17162,61097,1458318,Yearling Nice Answer Nice Answer Enlightened laravel Yearling php Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 17163,82323,444285,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17164,168156,241770,Nice Answer Enlightened Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 17165,82193,1003348,NULL,NULL,NULL,0,NULL,NULL 17166,189400,1305768,Nice Answer Scholar Student,NULL,NULL,0,NULL,NULL 17167,874501,1519088,NULL,NULL,NULL,0,NULL,NULL 17168,1326552,1011937,NULL,NULL,NULL,0,NULL,NULL 17169,219985,1038433,Tumbleweed Peer Pressure Announcer Student Scholar Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 17170,11255,630195,NULL,NULL,NULL,0,NULL,NULL 17171,27541,845567,Yearling Documentation Pioneer Informed Caucus Constituent Yearling Caucus Documentation User,NULL,NULL,0,NULL,NULL 17172,531681,1443706,NULL,NULL,NULL,0,NULL,NULL 17173,322483,277855,NULL,NULL,NULL,0,NULL,NULL 17174,399166,893868,NULL,NULL,NULL,0,NULL,NULL 17175,182032,115890,Famous Question Popular Question Nice Question Notable Question Notable Question Yearling Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Great Answer Notable Question Notable Question Popular Question Stellar Question Popular Question Yearling Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 17176,97643,575090,Yearling Custodian Famous Question Popular Question Famous Question Yearling Famous Question Notable Question Popular Question Popular Question Nice Answer Popular Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 17177,417334,302419,NULL,NULL,NULL,0,NULL,NULL 17178,846781,234682,NULL,NULL,NULL,0,NULL,NULL 17179,41873,1138097,NULL,NULL,NULL,0,NULL,NULL 17180,44442,470376,NULL,NULL,NULL,0,NULL,NULL 17181,92251,152676,Tumbleweed,NULL,NULL,0,NULL,NULL 17182,519865,952156,NULL,NULL,NULL,0,NULL,NULL 17183,478735,28350,NULL,NULL,NULL,0,NULL,NULL 17184,624931,1203334,NULL,NULL,NULL,0,NULL,NULL 17185,83320,699300,Necromancer Yearling Popular Question Notable Question Revival Commentator Revival Yearling,NULL,NULL,0,NULL,NULL 17186,460360,17916,Necromancer Popular Question Famous Question Famous Question Yearling Favorite Question Popular Question Notable Question Nice Answer Yearling Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 17187,265764,1343862,Informed,NULL,NULL,0,NULL,NULL 17188,86627,1264891,NULL,NULL,NULL,0,NULL,NULL 17189,21272,1147540,NULL,NULL,NULL,0,NULL,NULL 17190,1606160,794421,NULL,NULL,NULL,0,NULL,NULL 17191,47620,131105,Good Question Nice Answer,NULL,NULL,0,NULL,NULL 17192,3101064,344154,NULL,NULL,NULL,0,NULL,NULL 17193,356217,184131,Popular Question Nice Answer Enlightened Nice Answer Notable Question Yearling c# Yearling Good Answer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 17194,461307,1032722,NULL,NULL,NULL,0,NULL,NULL 17195,3770835,1304087,NULL,NULL,NULL,0,NULL,NULL 17196,171249,59249,Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Great Question Notable Question Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Favorite Question Popular Question Yearling Good Answer Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 17197,172327,59249,Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Great Question Notable Question Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Favorite Question Popular Question Yearling Good Answer Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 17198,155790,435247,NULL,NULL,NULL,0,NULL,NULL 17199,192177,980904,NULL,NULL,NULL,0,NULL,NULL 17200,319902,1050054,Nice Answer Notable Question Yearling Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 17201,20491,72118,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17202,1150184,1250455,NULL,NULL,NULL,0,NULL,NULL 17203,307612,68701,NULL,NULL,NULL,0,NULL,NULL 17204,22816,409065,NULL,NULL,NULL,0,NULL,NULL 17205,73131,870813,NULL,NULL,NULL,0,NULL,NULL 17206,976355,1498869,NULL,NULL,NULL,0,NULL,NULL 17207,330418,2386,Popular Question Famous Question Popular Question Nice Answer Enlightened Notable Question Yearling Nice Answer Favorite Question Popular Question Notable Question Favorite Question Yearling Famous Question Favorite Question Popular Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 17208,1026581,812178,Popular Question Yearling Famous Question Nice Question Notable Question Popular Question Revival Yearling Popular Question Notable Question Nice Question Good Question Yearling Good Question,NULL,NULL,0,NULL,NULL 17209,147094,726082,Nice Answer Notable Question Yearling Popular Question Nice Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17210,244389,1215053,NULL,NULL,NULL,0,NULL,NULL 17211,1067617,756840,NULL,NULL,NULL,0,NULL,NULL 17212,360352,599984,NULL,NULL,NULL,0,NULL,NULL 17213,795668,494533,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17214,398062,112818,Revival Popular Question Yearling Notable Question Popular Question Good Question Revival Yearling Good Answer Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 17215,1436390,1418503,NULL,NULL,NULL,0,NULL,NULL 17216,114270,1418503,NULL,NULL,NULL,0,NULL,NULL 17217,67222,849161,NULL,NULL,NULL,0,NULL,NULL 17218,842454,348251,NULL,NULL,NULL,0,NULL,NULL 17219,53909,406499,Caucus,NULL,NULL,0,NULL,NULL 17220,139609,1026303,NULL,NULL,NULL,0,NULL,NULL 17221,2276856,388932,NULL,NULL,NULL,0,NULL,NULL 17222,1023453,1042993,NULL,NULL,NULL,0,NULL,NULL 17223,465494,1311640,Popular Question,NULL,NULL,0,NULL,NULL 17224,919766,815246,Notable Question Supporter,NULL,NULL,0,NULL,NULL 17225,174618,541533,Popular Question,NULL,NULL,0,NULL,NULL 17226,285181,21028,Necromancer Nice Answer Proofreader Revival Nice Answer Yearling Popular Question python Sportsmanship Announcer Good Answer Announcer Notable Question Popular Question Popular Question Yearling Popular Question Documentation User Popular Question Good Answer Good Answer Booster Yearling Necromancer,NULL,NULL,0,NULL,NULL 17227,169670,1552424,NULL,NULL,NULL,0,NULL,NULL 17228,197842,242065,Popular Question Yearling,NULL,NULL,0,NULL,NULL 17229,97951,1390572,NULL,NULL,NULL,0,NULL,NULL 17230,64067,1171897,Revival Necromancer,NULL,NULL,0,NULL,NULL 17231,67151,1541633,NULL,NULL,NULL,0,NULL,NULL 17232,116520,925734,Revival Nice Question Popular Question,NULL,NULL,0,NULL,NULL 17233,182496,619821,Notable Question,NULL,NULL,0,NULL,NULL 17234,717768,452816,Revival Good Answer Famous Question Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 17235,147578,531727,Yearling Tumbleweed Famous Question Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17236,129113,746010,Yearling Nice Answer Enlightened cakephp Yearling Notable Question php Announcer Census Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17237,41667,666465,NULL,NULL,NULL,0,NULL,NULL 17238,301372,1413081,Revival Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17239,250328,1250472,NULL,NULL,NULL,0,NULL,NULL 17240,220194,448090,NULL,NULL,NULL,0,NULL,NULL 17241,556266,226137,NULL,NULL,NULL,0,NULL,NULL 17242,559717,857497,Editor Necromancer,NULL,NULL,0,NULL,NULL 17243,642006,770297,Popular Question,NULL,NULL,0,NULL,NULL 17244,45699,236241,Yearling Critic Yearling Necromancer Yearling Great Answer Necromancer Commentator Yearling Necromancer Nice Answer,NULL,pThe second option is best it keeps everything asynchronous but you can do one better and abstract the solution into reusable pattern ppre codeimplicit class RichListenableFuture lf ListenableFuture def asScala Future val Promise Futures addCallback lf new FutureCallback def onFailure Throwable Unit failure def onSuccess result Unit success result future code prepYou can then simply call ppre codeexecutor asyncExecute query asScala code pre Can help but point out that toPromise actually returns Future Otherwise love it,0,NULL,NULL 17245,158313,822162,Nice Question Popular Question Notable Question Necromancer Disciplined Popular Question Popular Question Excavator Yearling Popular Question Popular Question Nice Answer Good Answer Yearling Popular Question Nice Question Notable Question Census Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17246,128563,558958,NULL,NULL,NULL,0,NULL,NULL 17247,236161,888624,Teacher Peer Pressure Supporter Informed Autobiographer Organizer Commentator Citizen Patrol Suffrage Scholar Critic Yearling Editor Enthusiast Civic Duty Fanatic Curious Promoter Nice Question Benefactor Caucus Electorate Census Caucus Constituent Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17248,3416353,360713,NULL,NULL,NULL,0,NULL,NULL 17249,859889,852436,Popular Question,NULL,NULL,0,NULL,NULL 17250,550714,281553,Yearling Yearling Popular Question Yearling php,NULL,NULL,0,NULL,NULL 17251,362459,881586,NULL,NULL,NULL,0,NULL,NULL 17252,365003,6260,Popular Question Custodian Custodian Popular Question Notable Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Famous Question Notable Question Yearling,NULL,pYou can do with emSimpleXMLElement self reference em ppre code firstC gt Victory hackity hack hack or firstC Victory code prepfound after looking at ppre codevar dump array reset xml gt xpath code prepThis also works with codeunset code operations as outlined in href https stackoverflow com 16062633 367456 an answer to pulli href https stackoverflow com 262351 367456 Remove child with specific attribute in SimpleXML for PHP li ul Note that the first variant using the object notation doesn seem to work anymore in PHP,0,NULL,NULL 17253,463680,990065,Popular Question,NULL,NULL,0,NULL,NULL 17254,184461,63155,Good Answer Yearling Nice Answer Popular Question Guru Famous Question Nice Answer Enlightened Yearling Guru Guru Famous Question Good Answer Yearling Nice Answer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 17255,321742,764454,NULL,NULL,NULL,0,NULL,NULL 17256,302004,1222610,Famous Question,NULL,NULL,0,NULL,NULL 17257,1521098,1135316,Enthusiast Popular Question Tumbleweed Critic Popular Question Announcer Yearling Announcer Announcer Necromancer Popular Question Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 17258,952686,648884,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17259,214776,1073026,NULL,NULL,NULL,0,NULL,NULL 17260,150944,645494,Announcer Announcer Announcer Teacher Revival Supporter Editor Critic Announcer Commentator Yearling Curious,NULL,NULL,0,NULL,NULL 17261,109882,1233868,Yearling Excavator Caucus Notable Question Constituent Yearling Caucus Constituent Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 17262,425763,534734,Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 17263,202061,1090986,Popular Question Commentator Revival,NULL,NULL,0,NULL,NULL 17264,3824687,994146,Yearling Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 17265,992600,994146,Yearling Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 17266,279657,86568,NULL,NULL,NULL,0,NULL,NULL 17267,185801,286138,NULL,NULL,NULL,0,NULL,NULL 17268,47311,886697,Guru Nice Answer Enlightened Enthusiast Yearling Necromancer Announcer Nice Answer Necromancer Good Answer Good Answer Yearling Cleanup Census Explainer Good Answer Notable Question Yearling Famous Question Great Answer java,NULL,NULL,0,NULL,NULL 17269,89561,154494,Yearling java Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17270,886890,875127,Yearling Good Answer Nice Answer Enlightened Nice Answer Yearling Announcer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 17271,385905,1232002,NULL,NULL,NULL,0,NULL,NULL 17272,63376,10322,Nice Answer Nice Answer Nice Answer Great Answer Yearling Caucus Great Answer Nice Answer Enlightened Yearling Great Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 17273,39338,372702,NULL,NULL,NULL,0,NULL,NULL 17274,200576,677798,NULL,NULL,NULL,0,NULL,NULL 17275,447324,1217163,NULL,NULL,NULL,0,NULL,NULL 17276,456788,626725,NULL,NULL,NULL,0,NULL,NULL 17277,32099,2115,Notable Question Yearling Popular Question Nice Question Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17278,686491,1170207,Editor Teacher Supporter Critic Commentator Yearling Citizen Patrol Yearling Enthusiast Yearling Custodian Informed Autobiographer Custodian Organizer Caucus Yearling Yearling Caucus Nice Answer Custodian Yearling Caucus Nice Answer Announcer Civic Duty python Student Scholar Explainer,NULL,NULL,0,NULL,NULL 17279,8172,98647,Notable Question Yearling Famous Question Notable Question Popular Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Self-Learner Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 17280,66480,23788,Yearling,NULL,NULL,0,NULL,NULL 17281,771936,1301729,NULL,NULL,NULL,0,NULL,NULL 17282,1310838,199046,Caucus Caucus,NULL,NULL,0,NULL,NULL 17283,908482,456476,NULL,NULL,NULL,0,NULL,NULL 17284,288982,1322814,NULL,NULL,NULL,0,NULL,NULL 17285,281842,541404,Notable Question Proofreader Popular Question Inquisitive Popular Question Popular Question Revival Great Answer Popular Question Necromancer Revival Revival Necromancer Famous Question Famous Question Famous Question Popular Question Notable Question Yearling Nice Question Revival Custodian Popular Question Popular Question Revival Nice Answer Taxonomist Announcer Necromancer Nice Answer Famous Question Nice Answer Yearling Nice Answer Notable Question javascript Nice Answer Nice Answer Famous Question Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 17286,502021,1546844,Popular Question Notable Question Famous Question Necromancer Notable Question Yearling Good Question Nice Question Famous Question Notable Question Electorate Revival Notable Question Caucus Constituent Popular Question Necromancer Revival Necromancer Nice Question Popular Question Good Answer Necromancer Popular Question Nice Answer Nice Question Famous Question Nice Question Necromancer Revival Yearling Caucus Constituent Notable Question Popular Question Favorite Question Nice Answer Popular Question Popular Question Announcer Census Necromancer python Popular Question Popular Question Popular Question Necromancer Popular Question Nice Question Good Answer Popular Question Necromancer Nice Answer Yearling Popular Question Necromancer Popular Question Notable Question Popular Question Great Question Popular Question,NULL,NULL,1,NULL,PyPi description markdown doesn work python restructuredtext pypi pI uploaded package to PyPi using ppre codepython setup py register pypipython setup py sdist upload pypi code prepI trying to modify the decsription wrote please don edit the formatting of the following piece of code made it in purpose to demonstrate my problem ppre code nose docstring plugin This plugin enables you to modify docstring of tests based on their attributes for example python section MySection type functional module MyModule id def test function self This is the original docstring pass code prepHowever the text appears as it is emwithout em the markdown formatting What am doing wrong pPyPI supports rst and not markdown as mentioned on other answers But you don need codepypandoc code perse just codepandoc code is fine You can generate the rst file locally first and then run setup py to upload the package pp codeupload sh code ppre code bin bashpandoc from markdown to rst output README README mdpython setup py sdist upload code prepThe generated file named codeREADME code will be automatically recognized Be sure to add it to your code gitignore code The codesetup py code doesn have to do anything special pp codesetup py code ppre codefrom distutils core import setupsetup name mypackage packages mypackage this must be the same as the name above version description short author Chiel ten Brinke author email lt email gt url lt github url gt use the URL to the github repo keywords arbitrary keywords classifiers code prepThen just run codebash upload sh code to upload the stuff to PyPI 17287,422329,154068,Supporter,NULL,NULL,0,NULL,NULL 17288,1004223,322580,NULL,NULL,NULL,0,NULL,NULL 17289,338068,778264,NULL,NULL,NULL,0,NULL,NULL 17290,803298,258641,Popular Question,NULL,NULL,0,NULL,NULL 17291,68579,314603,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 17292,47170,49732,Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17293,560381,224248,Good Answer Yearling,NULL,NULL,0,NULL,NULL 17294,218380,146949,Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 17295,1511004,634732,Yearling Necromancer Necromancer Curious Popular Question Popular Question Yearling Popular Question Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 17296,261453,188870,Yearling Yearling Tumbleweed Caucus Yearling Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 17297,135186,1141664,Popular Question Notable Question Notable Question Yearling Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 17298,1177774,51571,Popular Question Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 17299,160146,216438,NULL,NULL,NULL,0,NULL,NULL 17300,1124295,216438,NULL,NULL,NULL,0,NULL,NULL 17301,14106,1329727,NULL,NULL,NULL,0,NULL,NULL 17302,543069,793816,Curious Notable Question Revival,NULL,NULL,0,NULL,NULL 17303,805496,1441563,NULL,NULL,NULL,0,NULL,NULL 17304,187388,769843,NULL,NULL,NULL,0,NULL,NULL 17305,1151597,562077,Nice Answer,NULL,NULL,0,NULL,NULL 17306,44126,1239602,NULL,NULL,NULL,0,NULL,NULL 17307,218807,757986,NULL,NULL,NULL,0,NULL,NULL 17308,623146,101326,Notable Question Yearling Inquisitive Notable Question Nice Question,NULL,NULL,0,NULL,NULL 17309,173911,686856,NULL,NULL,NULL,0,NULL,NULL 17310,128629,1141211,NULL,NULL,NULL,0,NULL,NULL 17311,48530,1196919,NULL,NULL,NULL,0,NULL,NULL 17312,237897,1413302,Tumbleweed Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 17313,102873,420989,Nice Answer,NULL,NULL,0,NULL,NULL 17314,369473,1453706,NULL,NULL,NULL,0,NULL,NULL 17315,206890,495281,NULL,NULL,NULL,0,NULL,NULL 17316,1521035,1302379,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17317,19213,3887,Notable Question Notable Question Notable Question Inquisitive Yearling Popular Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Famous Question Popular Question Nice Question Promoter,NULL,NULL,0,NULL,NULL 17318,9562,291972,NULL,NULL,NULL,0,NULL,NULL 17319,3298323,304347,NULL,NULL,NULL,0,NULL,NULL 17320,134867,535873,NULL,NULL,NULL,0,NULL,NULL 17321,375534,825954,Editor Excavator Revival Revival Popular Question Caucus Enthusiast Critic,NULL,NULL,0,NULL,NULL 17322,1662976,1248096,NULL,NULL,NULL,0,NULL,NULL 17323,4461034,191570,NULL,NULL,NULL,0,NULL,NULL 17324,203316,1503386,NULL,NULL,NULL,0,NULL,NULL 17325,271888,668121,NULL,NULL,NULL,0,NULL,NULL 17326,236267,1007234,NULL,NULL,NULL,0,NULL,NULL 17327,38928,605232,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 17328,2751083,1357138,NULL,NULL,NULL,0,NULL,NULL 17329,669206,1357138,NULL,NULL,NULL,0,NULL,NULL 17330,43435,181489,Taxonomist Nice Answer Quorum Yearling Notable Question Favorite Question Custodian Custodian,NULL,NULL,0,NULL,NULL 17331,178126,621208,NULL,NULL,NULL,0,NULL,NULL 17332,2206134,129991,Notable Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 17333,733387,1267362,Supporter,NULL,NULL,0,NULL,NULL 17334,37517,1267362,Supporter,NULL,NULL,0,NULL,NULL 17335,422539,538754,NULL,NULL,NULL,0,NULL,NULL 17336,1402429,1244739,NULL,NULL,NULL,0,NULL,NULL 17337,220475,908684,NULL,NULL,NULL,0,NULL,NULL 17338,554524,1168269,NULL,NULL,NULL,0,NULL,NULL 17339,354591,1275191,NULL,NULL,NULL,0,NULL,NULL 17340,2410484,487785,Necromancer Necromancer Revival Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 17341,980277,1331527,Popular Question Popular Question Notable Question Census Popular Question,NULL,NULL,0,NULL,NULL 17342,954660,362494,NULL,NULL,NULL,0,NULL,NULL 17343,251665,1513211,Tumbleweed,NULL,NULL,0,NULL,NULL 17344,3406594,1513211,Tumbleweed,NULL,NULL,0,NULL,NULL 17345,22638,507146,NULL,NULL,NULL,0,NULL,NULL 17346,25217,731675,NULL,NULL,NULL,0,NULL,NULL 17347,212503,746688,NULL,NULL,NULL,0,NULL,NULL 17348,298407,244083,Nice Answer Nice Answer Yearling Civic Duty Necromancer Yearling,NULL,NULL,0,NULL,NULL 17349,34210,1322741,NULL,NULL,NULL,0,NULL,NULL 17350,305498,496694,Curious Yearling Caucus Caucus Constituent Popular Question Census Caucus Nice Answer,NULL,NULL,0,NULL,NULL 17351,365510,60851,NULL,NULL,NULL,0,NULL,NULL 17352,84426,1118649,Teacher Necromancer,NULL,NULL,0,NULL,NULL 17353,1231708,1306411,Editor,NULL,NULL,0,NULL,NULL 17354,53082,546603,NULL,NULL,NULL,0,NULL,NULL 17355,248504,1292092,Announcer,NULL,NULL,0,NULL,NULL 17356,33963,260328,Yearling,NULL,NULL,0,NULL,NULL 17357,256302,1534724,NULL,NULL,NULL,0,NULL,NULL 17358,114928,157141,Civic Duty,NULL,NULL,0,NULL,NULL 17359,733813,516779,Popular Question,NULL,NULL,0,NULL,NULL 17360,12763,981187,Caucus Yearling Necromancer Necromancer Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 17361,142347,135247,Yearling Good Answer Good Answer Yearling Good Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 17362,27421,749457,Yearling Nice Answer Enlightened Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 17363,295727,9337,NULL,NULL,NULL,0,NULL,NULL 17364,84561,1460882,Notable Question,NULL,NULL,0,NULL,NULL 17365,128589,1089775,Teacher,NULL,NULL,0,NULL,NULL 17366,413997,1410419,NULL,NULL,NULL,0,NULL,NULL 17367,252328,1183641,NULL,NULL,NULL,0,NULL,NULL 17368,160574,520784,NULL,NULL,NULL,0,NULL,NULL 17369,320776,867111,NULL,NULL,NULL,0,NULL,NULL 17370,74175,821287,Yearling Necromancer,NULL,NULL,0,NULL,NULL 17371,110372,1101982,Excavator Custodian Yearling Informed Autobiographer Citizen Patrol Caucus Yearling,NULL,NULL,0,NULL,NULL 17372,127853,224052,Teacher,NULL,NULL,0,NULL,NULL 17373,143880,1299691,NULL,NULL,NULL,0,NULL,NULL 17374,25592,376378,Necromancer Yearling Nice Answer Reviewer Caucus Constituent Yearling Caucus Curious Custodian Custodian Popular Question Yearling Popular Question Informed Civic Duty Autobiographer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17375,10097763,963806,NULL,NULL,NULL,0,NULL,NULL 17376,896358,859033,NULL,NULL,NULL,0,NULL,NULL 17377,683397,279206,NULL,NULL,NULL,0,NULL,NULL 17378,436695,1107080,NULL,NULL,NULL,0,NULL,NULL 17379,1515884,1377131,NULL,NULL,NULL,0,NULL,NULL 17380,237735,686215,Nice Answer Revival Yearling Good Answer Enlightened,NULL,NULL,0,NULL,NULL 17381,468922,5821,Good Answer Necromancer Nice Answer Nice Question Famous Question Yearling Revival Yearling Famous Question Notable Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 17382,387141,1083240,Teacher Revival Supporter Revival Yearling Commentator Editor,NULL,NULL,0,NULL,NULL 17383,42231,114410,Revival Necromancer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 17384,152413,16944,NULL,NULL,NULL,0,NULL,NULL 17385,1331016,822633,NULL,NULL,NULL,0,NULL,NULL 17386,79858,265411,NULL,NULL,NULL,0,NULL,NULL 17387,290280,7264,Notable Question Nice Answer Great Answer Yearling Guru Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer Nice Answer Enlightened Caucus Yearling Good Answer Caucus Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 17388,114380,308029,Citizen Patrol,NULL,NULL,0,NULL,NULL 17389,465641,1547157,Student Enthusiast Yearling Custodian Caucus Constituent Good Answer Yearling Documentation User Nice Answer Enlightened Great Answer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 17390,539708,1158666,Yearling Notable Question Notable Question Caucus Curious Constituent Yearling Caucus Constituent Great Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 17391,318288,1362831,NULL,NULL,NULL,0,NULL,NULL 17392,41114,416104,Civic Duty Nice Answer Yearling Enlightened Excavator,NULL,NULL,0,NULL,NULL 17393,141060,1037534,NULL,NULL,NULL,0,NULL,NULL 17394,538189,749249,Supporter,NULL,NULL,0,NULL,NULL 17395,163039,452430,Popular Question,NULL,NULL,0,NULL,NULL 17396,1471447,937278,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17397,487447,1245867,NULL,NULL,NULL,0,NULL,NULL 17398,1569252,559988,Famous Question Peer Pressure Yearling Nice Answer Notable Question Nice Question Popular Question Yearling Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 17399,33250,746745,NULL,NULL,NULL,0,NULL,NULL 17400,334943,125651,Nice Answer Yearling Guru Yearling Necromancer Great Answer Yearling Critic,NULL,NULL,0,NULL,NULL 17401,617867,16538,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17402,101557,1246514,NULL,NULL,NULL,0,NULL,NULL 17403,1567359,1337461,Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17404,218742,1081818,Informed,NULL,NULL,0,NULL,NULL 17405,95140,1081818,Informed,NULL,NULL,0,NULL,NULL 17406,89560,1081818,Informed,NULL,NULL,0,NULL,NULL 17407,1016620,1081818,Informed,NULL,NULL,0,NULL,NULL 17408,239942,471288,NULL,NULL,NULL,0,NULL,NULL 17409,710092,475188,NULL,NULL,NULL,0,NULL,NULL 17410,5595,120731,Nice Answer Necromancer Popular Question Necromancer Yearling Civic Duty Revival Good Answer Necromancer Yearling Custodian Popular Question Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17411,1437759,793063,NULL,NULL,NULL,0,NULL,NULL 17412,7721770,231680,NULL,NULL,NULL,0,NULL,NULL 17413,388487,217157,Custodian Notable Question Notable Question Yearling Informed Great Question Popular Question Popular Question Popular Question Yearling Census Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17414,1514407,1449075,Yearling,NULL,NULL,0,NULL,NULL 17415,226356,733846,Necromancer Tumbleweed Editor Commentator Informed,NULL,NULL,0,NULL,NULL 17416,49654,1449269,Census,NULL,NULL,0,NULL,NULL 17417,1173962,475012,NULL,NULL,NULL,0,NULL,NULL 17418,498226,1052300,NULL,NULL,NULL,0,NULL,NULL 17419,23852,319879,Yearling,NULL,NULL,0,NULL,NULL 17420,37818,282601,Nice Answer Necromancer Announcer Nice Answer Enlightened Yearling Good Answer Notable Question Nice Answer Necromancer Necromancer Famous Question Revival Nice Answer Enlightened Nice Answer Revival Nice Answer Nice Answer Enlightened Good Answer Revival Nice Question Inquisitive Necromancer Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Famous Question Necromancer Revival Good Answer Nice Answer Necromancer Custodian Revival Yearling Notable Question Custodian Revival Revival Copy Editor Popular Question Nice Question php Caucus Revival Constituent Nice Answer Nice Answer Enlightened Revival Documentation User Necromancer Revival Revival Necromancer Yearling Announcer Caucus Necromancer Constituent Revival Great Answer Popular Question Notable Question Revival Nice Answer Good Answer Notable Question Revival Notable Question Necromancer Announcer Notable Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Question Reviewer,NULL,NULL,0,NULL,NULL 17421,18795,596406,Popular Question,NULL,NULL,0,NULL,NULL 17422,354191,857029,Yearling Famous Question Civic Duty Good Answer Announcer Nice Question,NULL,NULL,0,NULL,NULL 17423,145379,282312,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17424,771162,185259,NULL,NULL,NULL,0,NULL,NULL 17425,745476,334773,Nice Answer Enlightened Not a Robot Tumbleweed,NULL,NULL,0,NULL,NULL 17426,95452,264677,NULL,NULL,NULL,0,NULL,NULL 17427,679578,499132,NULL,NULL,NULL,0,NULL,NULL 17428,224602,613232,NULL,NULL,NULL,0,NULL,NULL 17429,84804,162349,Good Question Notable Question Famous Question Popular Question Yearling Popular Question Yearling Peer Pressure Famous Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 17430,238635,669730,NULL,NULL,NULL,0,NULL,NULL 17431,192016,557587,NULL,NULL,NULL,0,NULL,NULL 17432,466124,1101933,NULL,NULL,NULL,0,NULL,NULL 17433,819065,18146,Nice Answer Good Answer Yearling Good Answer Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17434,251381,98933,Announcer Informed Yearling Nice Answer Yearling Popular Question Documentation User Announcer Nice Answer Enlightened Notable Question Announcer Yearling Custodian Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 17435,4673,457896,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17436,3328356,457896,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17437,166033,412020,Yearling,NULL,NULL,0,NULL,NULL 17438,228678,7001,Tumbleweed Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 17439,367148,847321,NULL,NULL,NULL,0,NULL,NULL 17440,141908,106374,NULL,NULL,NULL,0,NULL,NULL 17441,201228,672663,Informed,NULL,NULL,0,NULL,NULL 17442,429791,960001,NULL,NULL,NULL,0,NULL,NULL 17443,286144,702584,NULL,NULL,NULL,0,NULL,NULL 17444,411884,380676,Curious Critic Self-Learner Yearling Nice Question Notable Question Custodian Informed Custodian Yearling Enthusiast,NULL,NULL,0,NULL,NULL 17445,408877,330867,Notable Question Popular Question Notable Question Nice Answer Populist Notable Question Nice Answer Popular Question Good Question Necromancer Announcer Yearling Nice Answer Popular Question Popular Question Popular Question Notable Question Nice Question Nice Answer Famous Question Popular Question Popular Question Notable Question Famous Question javascript Notable Question Nice Answer Nice Question Nice Answer Popular Question Caucus Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Good Answer Notable Question Popular Question Popular Question Revival Popular Question Populist Popular Question Good Answer Notable Question Yearling Notable Question Nice Answer Popular Question Necromancer Notable Question Good Answer Notable Question Popular Question Notable Question Popular Question Great Question Popular Question Popular Question Good Question Necromancer Famous Question Famous Question Pundit Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Caucus Populist Good Question python Nice Answer Popular Question Famous Question Yearling Popular Question Notable Question Necromancer Popular Question Popular Question Popular Question Necromancer Notable Question Nice Answer Popular Question Good Answer Famous Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17446,583340,1161103,NULL,NULL,NULL,0,NULL,NULL 17447,457343,864532,Yearling Critic Yearling Tumbleweed Commentator Necromancer,NULL,NULL,0,NULL,NULL 17448,148483,611772,NULL,NULL,NULL,0,NULL,NULL 17449,1393534,1192736,NULL,NULL,NULL,0,NULL,NULL 17450,337353,222559,Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17451,457185,782184,NULL,NULL,NULL,0,NULL,NULL 17452,126828,676320,NULL,NULL,NULL,0,NULL,NULL 17453,1148116,676320,NULL,NULL,NULL,0,NULL,NULL 17454,147212,402715,Yearling Good Answer Yearling Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 17455,143663,826920,NULL,NULL,NULL,0,NULL,NULL 17456,1477234,474757,NULL,NULL,NULL,0,NULL,NULL 17457,173836,626126,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 17458,212472,1061377,Tumbleweed,NULL,NULL,0,NULL,NULL 17459,243639,936961,NULL,NULL,NULL,0,NULL,NULL 17460,259270,1261679,NULL,NULL,NULL,0,NULL,NULL 17461,30006,243922,NULL,NULL,NULL,0,NULL,NULL 17462,536952,328193,oop Popular Question Good Answer Nice Question Enlightened razor Nice Answer Great Answer Notable Question mysql Good Answer Nice Answer forms Nice Answer Good Answer Guru Nice Answer Yearling Nice Answer Popular Question Popular Question Nice Question Good Answer class Nice Answer Popular Question Good Question jquery javascript Good Answer Good Answer Notable Question Nice Answer Enlightened Good Answer Good Answer Populist Caucus Constituent Nice Answer vb.net .net Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer php list Notable Question Popular Question Good Answer Good Answer Nice Answer Popular Question Nice Answer Enlightened Yearling Nice Answer sql Famous Question Announcer Famous Question Nice Answer Enlightened Good Answer Guru Notable Question Great Answer Guru Guru Nice Answer Enlightened Announcer Good Answer Great Answer Nice Answer Enlightened Popular Question Announcer Census Guru Great Answer Nice Answer Enlightened Good Question Good Answer Yearling Notable Question Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer entity-framework Nice Answer Nice Answer Nice Answer Nice Answer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 17463,902841,966865,Reviewer Yearling Caucus Notable Question Census Custodian Quorum Notable Question Caucus Yearling Good Answer Census Caucus Yearling,NULL,NULL,0,NULL,NULL 17464,903230,1448163,Popular Question,NULL,NULL,0,NULL,NULL 17465,27551,537406,NULL,NULL,NULL,0,NULL,NULL 17466,308579,469721,Notable Question Popular Question Nice Answer Notable Question Yearling Good Question Necromancer Yearling Popular Question Popular Question Popular Question Nice Answer Famous Question Yearling Good Answer Popular Question Census Notable Question Notable Question Custodian Favorite Question Yearling Popular Question Great Question Nice Question,NULL,pYou should use strong code usr bin env bash code strong for href https en wikipedia org wiki Shebang 28Unix 29 Portability rel noreferrer portability different nixes put codebash code in different places and using code usr bin env code is workaround to run the first codebash code found on the codePATH code And strong href https mywiki wooledge org BashGuide CommandsAndArguments Scripts rel noreferrer codesh code is not codebash code strong This answer is deceptive POSIX does not say that env is at usr bin env It could be at bin env or anywhere in fact as long as it is in the path It could be at dummy env if dummy is in PATH Shebang itself is undefined under POSIX so could make stop toaster start the USB coffee machine and be POSIX compliant So usr bin env bash isn particularly better than bin bash it could be less portable depending pYou should use strong code usr bin env bash code strong for href https en wikipedia org wiki Shebang 28Unix 29 Portability rel noreferrer portability different nixes put codebash code in different places and using code usr bin env code is workaround to run the first codebash code found on the codePATH code And strong href https mywiki wooledge org BashGuide CommandsAndArguments Scripts rel noreferrer codesh code is not codebash code strong Actually portability can be absolute under POSIX Assuming of course that Bash is in the path you can use script like this https gist github com darkfeline 19a91aa9e59259bb61e4614a32091600 An executable file without shebang and not matching an binary executable format is run with sh This is fully portable under POSIX unlike this answer Sorry for double comment stupid StackOverflow comment editing,0,NULL,NULL 17467,391583,409907,Editor Revival Revival Yearling Necromancer Revival Yearling Caucus Notable Question Nice Answer Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 17468,34840,809744,Guru Yearling Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17469,259609,1132448,Caucus Teacher Caucus Census Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17470,79893,76538,Great Answer Yearling Custodian Yearling Nice Answer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 17471,203428,182395,Popular Question,NULL,NULL,0,NULL,NULL 17472,930597,77778,Popular Question,NULL,NULL,0,NULL,NULL 17473,438758,703680,NULL,NULL,NULL,0,NULL,NULL 17474,35748,606728,Commentator Yearling Informed Critic Citizen Patrol Custodian Custodian Custodian Yearling Organizer Enthusiast Reviewer Tenacious Yearling Caucus Constituent Quorum Yearling Caucus Constituent Documentation User Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 17475,569,267252,Nice Answer,NULL,NULL,0,NULL,NULL 17476,260306,1355094,NULL,NULL,NULL,0,NULL,NULL 17477,222292,94302,Popular Question Caucus Census Yearling c# Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 17478,824402,164714,Caucus,NULL,NULL,0,NULL,NULL 17479,728766,493096,Editor,NULL,NULL,0,NULL,NULL 17480,1514472,573426,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17481,294259,1209705,Necromancer,NULL,NULL,0,NULL,NULL 17482,3165546,1209705,Necromancer,NULL,NULL,0,NULL,NULL 17483,411336,293794,NULL,NULL,NULL,0,NULL,NULL 17484,827092,1550391,Student,NULL,NULL,0,NULL,NULL 17485,355023,322896,Notable Question Popular Question Critic Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17486,107522,207099,Notable Question Nice Question Popular Question Nice Question Notable Question Informed,NULL,NULL,0,NULL,NULL 17487,147408,1227764,NULL,NULL,NULL,0,NULL,NULL 17488,947179,1222602,NULL,NULL,NULL,0,NULL,NULL 17489,4539975,877285,Notable Question,NULL,NULL,0,NULL,NULL 17490,41591,306935,Popular Question Notable Question Famous Question Announcer Civic Duty Revival Caucus Notable Question Caucus,NULL,NULL,0,NULL,NULL 17491,1400866,105172,Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 17492,417742,203071,NULL,NULL,NULL,0,NULL,NULL 17493,1069761,724541,NULL,NULL,NULL,0,NULL,NULL 17494,201929,418966,Notable Question Popular Question Popular Question Notable Question Yearling Caucus Popular Question Inquisitive Enthusiast Yearling Necromancer Notable Question Notable Question Necromancer Notable Question Necromancer Popular Question Popular Question Yearling Civic Duty Nice Question Nice Question Notable Question Nice Answer Necromancer Famous Question Caucus Popular Question Famous Question Custodian Good Question Famous Question Popular Question Yearling Nice Question Popular Question Good Question Nice Question Nice Question Nice Answer Nice Answer Excavator Necromancer Custodian Famous Question Good Question,NULL,NULL,0,NULL,NULL 17495,273930,951344,NULL,NULL,NULL,0,NULL,NULL 17496,441918,1181712,NULL,NULL,NULL,0,NULL,NULL 17497,297843,1269001,NULL,NULL,NULL,0,NULL,NULL 17498,34056,122868,Nice Answer Popular Question Yearling Popular Question Revival Revival Nice Answer javascript Nice Answer Enlightened Necromancer Yearling Notable Question Nice Answer Caucus Popular Question Nice Answer Enlightened Nice Answer Enlightened Caucus Good Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 17499,3344998,1046384,NULL,NULL,NULL,0,NULL,NULL 17500,71477,93087,NULL,NULL,NULL,0,NULL,NULL 17501,171449,1200234,NULL,NULL,NULL,0,NULL,NULL 17502,388326,148962,Popular Question Custodian Citizen Patrol Nice Question Necromancer Caucus Constituent Yearling Famous Question Census Nice Question Caucus Constituent Custodian Nice Answer Excavator Popular Question Custodian Census Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17503,29679,736845,NULL,NULL,NULL,0,NULL,NULL 17504,195007,128841,Nice Question,NULL,NULL,0,NULL,NULL 17505,623736,845275,Teacher Commentator Necromancer Critic Informed Editor Nice Question,NULL,NULL,0,NULL,NULL 17506,1049557,289380,Famous Question Nice Question Notable Question Famous Question Nice Question Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17507,148432,689748,NULL,NULL,NULL,0,NULL,NULL 17508,178995,213732,NULL,NULL,NULL,0,NULL,NULL 17509,210132,559758,Popular Question Revival Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 17510,55698,442474,Good Answer Yearling Nice Question Guru Caucus Necromancer Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17511,509412,956660,Excavator python Proofreader Yearling Census Custodian Popular Question Revival Yearling Announcer Reviewer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 17512,1343627,1312566,Supporter Nice Answer Census Custodian Editor Critic Informed Scholar Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 17513,530597,463512,Caucus Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17514,65334,47461,Steward Tenacious Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 17515,768103,1125394,NULL,NULL,NULL,0,NULL,NULL 17516,3260949,1125394,NULL,NULL,NULL,0,NULL,NULL 17517,3262416,1125394,NULL,NULL,NULL,0,NULL,NULL 17518,4750383,1125394,NULL,NULL,NULL,0,NULL,NULL 17519,3726313,1125394,NULL,NULL,NULL,0,NULL,NULL 17520,806277,37592,NULL,NULL,NULL,0,NULL,NULL 17521,910550,1097682,Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17522,420949,317689,Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17523,1348114,725182,Famous Question Popular Question Good Question Yearling Nice Question Notable Question Nice Question Famous Question Notable Question Yearling Good Question Famous Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 17524,177057,951461,NULL,NULL,NULL,0,NULL,NULL 17525,1233661,1546355,Necromancer,NULL,NULL,0,NULL,NULL 17526,4620,285289,Nice Answer Yearling Notable Question Benefactor Popular Question Guru Guru Good Answer Great Answer Populist Guru Yearling Nice Answer Favorite Question Nice Answer Nice Answer Enlightened Great Answer Nice Answer git Guru Good Answer Yearling Nice Answer Enlightened Good Answer Great Question,NULL,NULL,0,NULL,NULL 17527,359612,714770,Yearling Nice Answer Nice Answer Good Answer Caucus Constituent Good Answer Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17528,280295,788060,Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 17529,394879,421366,NULL,NULL,NULL,0,NULL,NULL 17530,881748,1335687,NULL,NULL,NULL,0,NULL,NULL 17531,111954,672076,NULL,NULL,NULL,0,NULL,NULL 17532,41358,1252324,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 17533,1020483,807442,Informed Nice Answer Announcer Caucus Necromancer Yearling,NULL,NULL,1,NULL,How to make model IDs in Rails unpredictable and random ruby on rails ruby on rails plugins pI writing rails app that by its nature CANNOT require users to register and thus cannot use authentication as the usual means to protect records know know User information here is limited to email addresses So do need way to make my model IDs unpredictable so that other IDs cannot be easily guessed know know ppI have tried using plugins like uuidtools to randomize ids as records are created like so ppre coderequire uuidtools class Post lt ActiveRecord Base def before create self id OpenSSL Digest SHA1 hexdigest UUID timestamp create end end code prep This looks good at first but funny things happen ActiveRecord sometimes tries to insert value into the id and get errors such as can find Post with id etc ppI ve run out of ideas Can anyone help Thanks pBest way is to use codeSecureRandom uuid code that generates V4 UUID Universally Unique IDentifier ppIt is virtually completely random and unique collision probability is something like one over tens of trillions href https en wikipedia org wiki Universally unique identifier Version 28random 29 rel noreferrer https en wikipedia org wiki Universally unique identifier Version 28random 29 ppThis should do the job ppre codeclass Post lt ActiveRecord Base before create generate random id private def generate random id self id SecureRandom uuid end end code prepOr if you are using Rails and PostgreSQL you can have it generating them for you ppre codecreate table posts id uuid do end code pre 17534,78010,1375210,NULL,NULL,NULL,0,NULL,NULL 17535,232203,482767,Populist,NULL,NULL,0,NULL,NULL 17536,474969,1489538,Tumbleweed Yearling Nice Answer Caucus Quorum Necromancer Constituent Custodian Citizen Patrol Necromancer Nice Answer Yearling Popular Question Yearling Good Answer Civic Duty Great Answer,NULL,NULL,0,NULL,NULL 17537,403865,477168,Popular Question Yearling Good Question Nice Question Caucus Notable Question Nice Question Yearling Famous Question Nice Question Yearling Revival Announcer Famous Question Necromancer Caucus Popular Question Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17538,283417,254713,NULL,NULL,NULL,0,NULL,NULL 17539,1647493,510419,NULL,NULL,NULL,0,NULL,NULL 17540,36541,1059645,NULL,NULL,NULL,0,NULL,NULL 17541,54290,435017,NULL,NULL,NULL,0,NULL,NULL 17542,309012,579840,Self-Learner Famous Question Popular Question Yearling Custodian Custodian Citizen Patrol Popular Question Notable Question Yearling Nice Question Revival Documentation User Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 17543,45750,415579,NULL,NULL,NULL,0,NULL,NULL 17544,17109,240750,NULL,NULL,NULL,0,NULL,NULL 17545,20634,45246,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17546,543818,1328663,NULL,NULL,NULL,0,NULL,NULL 17547,305197,496533,NULL,NULL,NULL,0,NULL,NULL 17548,44435,98528,Yearling Tag Editor Notable Question Civic Duty Yearling Announcer Popular Question Announcer Announcer Documentation User Necromancer Announcer Popular Question Popular Question Popular Question Popular Question Announcer Nice Answer Announcer Yearling Announcer Popular Question Announcer Pundit Popular Question Announcer,NULL,blockquote strongIMPORTANT UPDATE strong href https groups google com msg golang nuts MdYlJbW4SAo TrAEoCjAkMwJ rel nofollow noreferrer strongThe ultimate answer strong is certainly the one you got strongfrom Russ Cox strong one of Go authors on the golang nuts mailing list That said leaving some of my earlier notes below they might help to understand some things pAlso from reading this answer linked above believe the code∕ code pseudo slash may now be translated to regular code code slash too like the middot is translated to dot in newer versions of Go compiler than the one ve tested below but don have time to verify blockquotehrpThe file is compiled by the href http golang org cmd gc rel nofollow noreferrer Go Language Suite internal compiler which originates in the Plan compilersup href http plan9 bell labs com sys doc comp html rel nofollow noreferrer href http plan9 bell labs com sys doc compiler html rel nofollow noreferrer sup and href http plan9 bell labs com sys doc comp html rel nofollow noreferrer has some differences mostly extensions AFAIK to the standard ppOne of the extensions is that it allows UTF characters in identifiers ppNow in the Go Language Suite compiler the middot character is treated in special way as it is translated to regular dot in object files which is interpreted by Go Language Suite internal linker as namespace separator character pblockquote h2Example h2 pFor the following file codeexample code note it must be saved as UTF without BOM pprevoid ·Bar1 void foo·bar2 void foo∕baz·bar3 pre pthe internal compiler produces the following symbols ppre go tool 8c example go tool nm example Bar1 foo bar2 foo∕baz bar3 pre pNow please note ve given the code·Bar1 code capital codeB code This is because that way can make it visible to regular Go code because it is translated to the exact same symbol as would result from compiling the following Go code pprepackage examplefunc Bar1 nm will show Bar1 pre blockquotepNow regarding the functions you named in the question the story goes further down the rabbit hole bit less sure if right here but ll try to explain based on what know Thus each sentence below this point should be read as if it had href http en wiktionary org wiki AFAIK rel nofollow noreferrer AFAIK written just at the end ppSo the next missing piece needed to better understand this puzzle is to know something more about the strange code code namespace and how the Go suite linker handles it The code code namespace is what we might want to call an empty because code code for programmer means an empty string namespace or maybe better placeholder namespace And when the linker sees an import going like this ppre codeimport examp path to package example func main examp Bar1 code prepthen it takes the code GOPATH pkg example code library file and during import phase substitutes on the fly each code code with codepath to package example code So now in the linked program we will see symbol like this ppre path to package example Bar1 pre ve updated the link,0,NULL,NULL 17549,206177,718601,NULL,NULL,NULL,0,NULL,NULL 17550,84883,79816,Great Answer Yearling Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 17551,140329,711906,Custodian Yearling,NULL,NULL,0,NULL,NULL 17552,321640,733748,Scholar Supporter Teacher Revival Popular Question Editor Necromancer,NULL,NULL,0,NULL,NULL 17553,233644,1563453,NULL,NULL,NULL,0,NULL,NULL 17554,1831199,639687,Notable Question Notable Question Popular Question Yearling Popular Question Necromancer Necromancer Necromancer Enthusiast Popular Question Popular Question Good Answer Nice Question Famous Question Famous Question Good Answer Notable Question Nice Answer Notable Question Tag Editor Revival Nice Answer Notable Question Good Question Inquisitive Yearling Nice Answer Announcer Popular Question Popular Question Necromancer Revival Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Custodian Popular Question Necromancer Popular Question Nice Answer Nice Answer Famous Question Notable Question Popular Question Yearling Necromancer Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Good Answer Good Question Electorate Good Question Necromancer Good Answer Popular Question,NULL,NULL,1,How can Flow be forced to cast value to another type casting flowtype pIs it possible to forcibly cast variable in href https flowtype org rel nofollow noreferrer Flow ppre class lang default prettyprint override codetype StringOrNumber string numberconst foo StringOrNumber hello look for something like const bar string string foo const bar string foo failsconst bar string foo string also fails code pre Iterable class in Flow javascript flowtype pHow to define iterable class in Flow ppFollowing code in href https flow org try 0PTAEAEDMBsHsHcBQiDG0CGBnToCCoBvRUUAbQGUBPAWwCNZoA6ASwBcBTAJ3Vdk4F0AFAEoAXKACSHbr04AeTK07MAdgHMAfIWIlQndqwCunFdt26V7AB6sRZ3QEh9Rk ZIOSAE1iXxSw w6Dg4AvjrmYe6RoGEhQA rel nofollow noreferrer try flow ppre class lang js prettyprint override code Symbol iterator Iterator lt string gt return next return done true code prepreports error ppre code4 Symbol iterator Iterator lt string gt computed property keys not supported code prepAccording to Flow issue href https github com facebook flow issues 3258 rel nofollow noreferrer Flow doesn like Symbols as object keys it looks like direct use if symbols is not possible,maven plugin plugin descriptor goal fails at the and of file maven java maven plugin default method pWhile developing maven plugin the build prints error ppre code ERROR Failed to execute goal org apache maven plugins maven plugin plugin descriptor default descriptor on project default method demo Execution default descriptor of goal org apache maven plugins maven plugin plugin descriptor failed syntax error in file full path to project default method src main java org example Iface java gt Help code prepeven though that the file codeIface java code is compilable pp codeIface java code ppre class lang java prettyprint override codepackage org example public interface Iface default String getString return string code prepfrom codepom xml code ppre class lang xml prettyprint override code lt packaging gt maven plugin lt packaging gt lt build gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt source gt lt source gt lt target gt lt target gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt dependencies gt lt dependency gt lt groupId gt org apache maven lt groupId gt lt artifactId gt maven plugin api lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt org apache maven plugin tools lt groupId gt lt artifactId gt maven plugin annotations lt artifactId gt lt version gt lt version gt lt scope gt provided lt scope gt lt dependency gt lt dependencies gt code prepWhat causes the problem How it can be fixed pThe problem is that codemaven plugin plugin code generating plugin descriptor had difficulties to parse Java interfaces with default methods ppIt can be fixed by explicitly stating newer plugin version in codepom xml code ppre class lang xml prettyprint override code lt build gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven plugin plugin lt artifactId gt lt version gt lt version gt lt plugin gt lt other plugins gt lt plugins gt lt build gt code prepOr just by avoiding default methods by moving their bodies to implementing classes ppRelated bug href https issues apache org jira browse MPLUGIN 272 rel noreferrer MPLUGIN 272 17555,541,1455497,Editor Supporter Notable Question,NULL,NULL,0,NULL,NULL 17556,206198,407744,Notable Question Popular Question Nice Answer Notable Question Yearling Caucus Commentator,NULL,NULL,0,NULL,NULL 17557,806705,240006,NULL,NULL,NULL,0,NULL,NULL 17558,234084,398748,Good Question Popular Question Good Question Yearling Self-Learner Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 17559,714438,1266005,NULL,NULL,NULL,0,NULL,NULL 17560,4039070,1266005,NULL,NULL,NULL,0,NULL,NULL 17561,235484,826136,NULL,NULL,NULL,0,NULL,NULL 17562,492760,1019366,Yearling Announcer Nice Answer Enlightened Yearling Excavator,NULL,NULL,0,NULL,NULL 17563,492776,1019366,Yearling Announcer Nice Answer Enlightened Yearling Excavator,NULL,NULL,0,NULL,NULL 17564,868670,295945,NULL,NULL,NULL,0,NULL,NULL 17565,614436,116311,Nice Answer Yearling Necromancer Good Answer Good Answer wix Yearling Popular Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 17566,5064549,333814,NULL,NULL,NULL,0,NULL,NULL 17567,1213075,333814,NULL,NULL,NULL,0,NULL,NULL 17568,416459,1236333,Yearling Citizen Patrol Excavator Popular Question Necromancer Popular Question Nice Answer Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17569,332057,1278450,NULL,NULL,NULL,0,NULL,NULL 17570,274479,1392657,NULL,NULL,NULL,0,NULL,NULL 17571,4075,266174,Teacher,NULL,NULL,0,NULL,NULL 17572,28756,132481,NULL,NULL,NULL,0,NULL,NULL 17573,558427,1079660,Notable Question,NULL,NULL,0,NULL,NULL 17574,314764,514210,Tumbleweed Popular Question Caucus Yearling Documentation User Announcer Nice Question Popular Question Popular Question,NULL,pYou don have eterm color terminfo First you try to add following exp in your configuration file and evaluate ppre code Use Emacs terminfo not system terminfo setq system uses terminfo nil code prepIf problem is not resolved previous setting you should create eterm color terminfoby using following command terminfo path may different from your system ppre code If you use Cocoa Emacs or Carbon Emacstic terminfo Applications Emacs app Contents Resources etc eterm color ti code pre There some more information about this in Emacs app Contents Resources etc README as well was able to fix the 4m problem by running tic eterm color ti from that directory,0,NULL,NULL 17575,581391,1038856,NULL,NULL,NULL,0,NULL,NULL 17576,52784,361638,NULL,NULL,NULL,0,NULL,NULL 17577,120354,1273814,NULL,NULL,NULL,0,NULL,NULL 17578,32873,253923,Yearling Yearling Announcer Notable Question Yearling,NULL,NULL,0,NULL,NULL 17579,1507851,1016026,Popular Question Notable Question Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 17580,331625,775104,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 17581,197250,133699,Popular Question,NULL,NULL,0,NULL,NULL 17582,205184,1289711,NULL,NULL,NULL,0,NULL,NULL 17583,4717687,1261527,Student Popular Question,NULL,NULL,0,NULL,NULL 17584,8246919,1217975,NULL,NULL,NULL,0,NULL,NULL 17585,150557,1217975,NULL,NULL,NULL,0,NULL,NULL 17586,201273,1207456,Yearling Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 17587,161200,706738,NULL,NULL,NULL,0,NULL,NULL 17588,1411097,1396666,Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Self-Learner Notable Question Notable Question Popular Question Popular Question Yearling Caucus Constituent Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 17589,45357,513227,Nice Answer Yearling Popular Question Popular Question Good Answer Notable Question Nice Answer Yearling Famous Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 17590,300575,401075,Popular Question Informed Popular Question Suffrage Cleanup Critic Excavator Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 17591,208191,24097,Popular Question Great Question Yearling Good Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17592,288746,311973,Yearling Excavator Good Answer Yearling Guru Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17593,2198728,744115,NULL,NULL,NULL,0,NULL,NULL 17594,706904,1382997,Cleanup Student,NULL,NULL,0,NULL,NULL 17595,2621125,324497,Enthusiast Necromancer Famous Question Nice Question Necromancer Revival Nice Answer Nice Question Popular Question Caucus Yearling Constituent Necromancer Custodian Nice Answer Necromancer Necromancer Famous Question Yearling Necromancer Nice Answer Necromancer Nice Answer Organizer Necromancer Tumbleweed Yearling,NULL,pYou can just check if the namespace is null ppre codepublic static bool IsAnonymousType this object instance if instance null return false return instance GetType Namespace null code pre not sure that is true please provide proof here is mine http rextester com BDZ64090 pYou can just check if the namespace is null ppre codepublic static bool IsAnonymousType this object instance if instance null return false return instance GetType Namespace null code pre Woops sorry was having bad day yesterday good to know So in terms of using this then guess it couple of lines for most use cases or pick more verbose solution if you need to catch all cases,0,NULL,NULL 17596,435995,1180860,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17597,85553,312910,NULL,NULL,NULL,0,NULL,NULL 17598,405450,258843,Nice Answer Yearling Caucus Good Answer Editor Excavator Yearling Documentation User,NULL,NULL,0,NULL,NULL 17599,304702,1054723,Nice Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 17600,120909,1286000,NULL,NULL,NULL,0,NULL,NULL 17601,369400,1519795,NULL,NULL,,0,, 17602,41721,71910,Good Answer Popular Question Good Question Yearling Electorate Famous Question Good Answer Good Answer Necromancer Popular Question Yearling Necromancer Good Question Nice Question Notable Question Nice Question Notable Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 17603,131964,285948,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 17604,165937,854393,NULL,NULL,NULL,0,NULL,NULL 17605,156331,522297,Guru Nice Question Notable Question Caucus Yearling Popular Question Popular Question Popular Question Custodian Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 17606,74474,1266010,Editor Tumbleweed Scholar Nice Answer,NULL,NULL,0,NULL,NULL 17607,66705,1375213,NULL,NULL,NULL,0,NULL,NULL 17608,796378,581424,NULL,NULL,NULL,0,NULL,NULL 17609,398379,538756,Self-Learner Yearling,NULL,NULL,0,NULL,NULL 17610,2328756,898577,Famous Question Informed Popular Question Good Question Yearling Civic Duty Caucus Popular Question Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17611,621893,898577,Famous Question Informed Popular Question Good Question Yearling Civic Duty Caucus Popular Question Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17612,621891,927472,NULL,NULL,NULL,0,NULL,NULL 17613,1125583,936578,Yearling Good Answer Nice Answer Yearling Good Answer Yearling Yearling Yearling Yearling Great Answer Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 17614,486438,457525,NULL,NULL,NULL,0,NULL,NULL 17615,24706,762336,Guru Yearling Good Answer Good Answer Good Answer Nice Answer Enlightened Caucus Necromancer Great Answer Great Answer Yearling Guru Caucus Nice Answer Guru Census Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17616,21610,371188,Yearling,NULL,NULL,0,NULL,NULL 17617,759696,1205067,Notable Question,NULL,NULL,0,NULL,NULL 17618,107863,715621,NULL,NULL,NULL,0,NULL,NULL 17619,346854,474484,Yearling Good Answer,NULL,NULL,0,NULL,NULL 17620,163193,1414763,NULL,NULL,NULL,0,NULL,NULL 17621,858694,640813,Informed Editor Excavator,NULL,NULL,0,NULL,NULL 17622,62056,490245,NULL,NULL,NULL,0,NULL,NULL 17623,1985659,1073388,Informed Caucus Revival,NULL,NULL,0,NULL,NULL 17624,19791,653559,Yearling Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 17625,2618,547339,Student,NULL,NULL,0,NULL,NULL 17626,1513108,1143554,NULL,NULL,NULL,0,NULL,NULL 17627,1173609,867879,NULL,NULL,NULL,0,NULL,NULL 17628,271543,819770,Popular Question Self-Learner Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Famous Question Census Notable Question Inquisitive Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 17629,316562,413093,Commentator Popular Question Yearling Curious Civic Duty Good Answer Good Question Necromancer,NULL,NULL,0,NULL,NULL 17630,679752,887424,NULL,NULL,NULL,0,NULL,NULL 17631,150286,1303068,Good Answer Yearling Guru Yearling Announcer Yearling Necromancer Necromancer Announcer,NULL,NULL,0,NULL,NULL 17632,1101157,1246146,Notable Question,NULL,NULL,0,NULL,NULL 17633,9210547,807617,NULL,NULL,NULL,0,NULL,NULL 17634,308868,807617,NULL,NULL,NULL,0,NULL,NULL 17635,7441429,1005236,Yearling Popular Question Famous Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17636,2175050,1298040,Yearling Nice Answer Enlightened Good Answer Yearling Good Answer Caucus Nice Answer Enlightened linux Guru Great Answer Yearling Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17637,1544277,1520881,NULL,NULL,NULL,0,NULL,NULL 17638,544433,488237,NULL,NULL,NULL,0,NULL,NULL 17639,88524,1078100,NULL,NULL,NULL,0,NULL,NULL 17640,786201,128998,Yearling Revival Good Answer Yearling Critic,NULL,NULL,0,NULL,NULL 17641,37135,1136499,NULL,NULL,NULL,0,NULL,NULL 17642,243114,240202,Yearling,NULL,NULL,0,NULL,NULL 17643,91313,741352,Yearling Nice Answer Revival Good Answer Custodian Nice Answer Yearling Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 17644,65408,434340,Necromancer Guru Popular Question Custodian Good Question Nice Question Yearling Popular Question Notable Question Popular Question Nice Answer Popular Question Yearling Popular Question Notable Question Notable Question Announcer Caucus Yearling,NULL,NULL,0,NULL,NULL 17645,814614,1091116,Famous Question Nice Answer Notable Question Popular Question Notable Question Famous Question Notable Question Electorate Good Question Notable Question Popular Question Announcer Announcer Good Question Good Answer Notable Question Popular Question Caucus Yearling Nice Question Famous Question Popular Question Custodian Popular Question Announcer Custodian Famous Question Announcer Announcer Revival Notable Question Notable Question Popular Question Popular Question Announcer Caucus Nice Question Popular Question Good Answer Yearling Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question Caucus Announcer Nice Answer Enlightened Notable Question Popular Question Good Question Popular Question Notable Question Popular Question Socratic Revival Announcer Famous Question,NULL,NULL,0,NULL,NULL 17646,431518,610066,NULL,NULL,NULL,0,NULL,NULL 17647,177925,771513,NULL,NULL,NULL,0,NULL,NULL 17648,137945,1464991,NULL,NULL,NULL,0,NULL,NULL 17649,2029140,1464991,NULL,NULL,NULL,0,NULL,NULL 17650,223354,1356459,NULL,NULL,NULL,0,NULL,NULL 17651,311312,1257927,NULL,NULL,NULL,0,NULL,NULL 17652,431447,1559812,Yearling Yearling,NULL,NULL,0,NULL,NULL 17653,17207,247090,Yearling Popular Question Custodian Custodian Notable Question Nice Answer Guru Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question Yearling Popular Question Nice Answer Good Question Popular Question xcode Famous Question Popular Question Popular Question Popular Question Great Question Popular Question Popular Question Necromancer Notable Question Yearling Famous Question Nice Question Popular Question Notable Question Nice Answer Nice Answer Enlightened Notable Question Notable Question,NULL,NULL,1,iOS Error when creating encryption keys in unit test ios swift security encryption pI have the following code which creates key pair in the secure enclave ppre codelet access SecAccessControlCreateWithFlags kCFAllocatorDefault kSecAttrAccessibleWhenUnlockedThisDeviceOnly privateKeyUsage nil var attributes String Any kSecAttrKeyType as String encryptionType kSecAttrKeySizeInBits as String encryptionBits kSecPrivateKeyAttrs as String kSecAttrIsPermanent as String true kSecAttrApplicationTag as String abc data using utf8 as Any kSecAttrAccessControl as String access if Device hasSecureEnclave attributes kSecAttrTokenID as String kSecAttrTokenIDSecureEnclave var error Unmanaged lt CFError gt SecKeyCreateRandomKey attributes as CFDictionary amp error code prepWhen running in simulator or on the device it works just fine But when run it in unit test an error is returned from the codeSecKeyCreateRandomKey code call ppre codeError Domain NSOSStatusErrorDomain Code 50 Key generation failed error 50 UserInfo NSDescription Key generation failed error 50 code prepAfter trying few things found that the problem was the codekSecAttrIsPermanent code key in the codeattributes code dictionary If remove it the unit tests run fine ppAll the doco ve read indicates it should be ok but it failing every time ppAnyone know why,NULL 17654,11215,1471197,NULL,NULL,NULL,0,NULL,NULL 17655,259552,1271235,NULL,NULL,NULL,0,NULL,NULL 17656,882193,700637,NULL,NULL,NULL,0,NULL,NULL 17657,376210,1162275,Notable Question Nice Answer Yearling Nice Answer,NULL,pThe minor mode codehighlight changes mode code displays text changes ppADDITION wrote some code of fringe support for codehighlight changes mode code ppre code eval after load hilit chg progn defvar highlight fringe mark filled square The fringe bitmap name marked at changed line Should be selected from fringe bitmaps defadvice hilit chg make ov after hilit chg add fringe activate mapc lambda ov if overlay get ov hilit chg let fringe anchor make string put text property display list left fringe highlight fringe mark fringe anchor overlay put ov before string fringe anchor overlays at ad get arg code prep href http gyazo com 997008bd7f400c4c01f12288ad991b24 png rel nofollow noreferrer fringed http gyazo com 997008bd7f400c4c01f12288ad991b24 png ppADDITION To remove highlights on save time try it ppre code add hook after save hook lambda when highlight changes mode save restriction widen highlight changes remove highlight point min point max code pre Add code snippet in answer check it,0,NULL,NULL 17658,115455,1425039,NULL,NULL,NULL,0,NULL,NULL 17659,268465,144838,Commentator,NULL,NULL,0,NULL,NULL 17660,92387,969818,Yearling Guru Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17661,88922,1090931,NULL,NULL,NULL,0,NULL,NULL 17662,48830,1416512,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 17663,133282,189932,NULL,NULL,NULL,0,NULL,NULL 17664,16337,531393,NULL,NULL,NULL,0,NULL,NULL 17665,859101,879751,Notable Question,NULL,NULL,0,NULL,NULL 17666,1342671,1458785,Notable Question,NULL,NULL,0,NULL,NULL 17667,144818,1300775,Necromancer Yearling Necromancer Popular Question Announcer Announcer Notable Question Nice Answer Yearling Nice Answer Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 17668,243980,49443,Revival Good Answer Popular Question Yearling Notable Question Famous Question Yearling Necromancer Custodian,NULL,NULL,0,NULL,NULL 17669,444238,866408,Editor,NULL,NULL,0,NULL,NULL 17670,2001445,732388,NULL,NULL,NULL,0,NULL,NULL 17671,714095,1316946,NULL,NULL,NULL,0,NULL,NULL 17672,462493,819668,Teacher Popular Question,NULL,NULL,0,NULL,NULL 17673,204308,201114,Yearling Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 17674,1078586,808406,NULL,NULL,NULL,0,NULL,NULL 17675,17013,481869,NULL,NULL,NULL,0,NULL,NULL 17676,408718,1132602,NULL,NULL,NULL,0,NULL,NULL 17677,347685,1523814,Nice Answer Good Answer Guru Yearling javascript Nice Answer Enlightened Caucus Good Answer Nice Answer Guru Nice Answer Yearling Caucus Constituent Custodian Excavator Nice Answer Enlightened Great Answer Caucus Great Answer Constituent Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17678,1515289,865431,Popular Question Yearling Popular Question Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17679,1539943,721996,Curious Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17680,672757,367544,Notable Question Yearling Popular Question Yearling Nice Question Revival Notable Question Popular Question Revival Famous Question Yearling Popular Question Good Question Promoter Yearling Great Question Nice Answer,NULL,NULL,0,NULL,NULL 17681,161257,339683,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 17682,428247,664324,NULL,NULL,NULL,0,NULL,NULL 17683,117287,419297,NULL,NULL,NULL,0,NULL,NULL 17684,992160,680984,NULL,NULL,NULL,0,NULL,NULL 17685,63133,968438,Teacher,NULL,NULL,0,NULL,NULL 17686,347080,726184,NULL,NULL,NULL,0,NULL,NULL 17687,25578,1517678,Caucus Custodian Citizen Patrol Commentator Informed Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 17688,123217,488854,NULL,NULL,NULL,0,NULL,NULL 17689,27971,184326,Critic Good Question Famous Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 17690,27471,197,Informed Custodian Great Answer Yearling Guru Nice Answer Yearling Yearling Nice Answer Enlightened Custodian Custodian,NULL,NULL,0,NULL,NULL 17691,1246778,1119889,NULL,NULL,NULL,0,NULL,NULL 17692,821399,1373572,Inquisitive Good Answer Nice Question Popular Question Yearling Nice Question Popular Question Notable Question Caucus Nice Question Popular Question Nice Answer Notable Question Notable Question Popular Question Notable Question Yearling Good Question Caucus Constituent Tag Editor Famous Question Census Nice Answer Enlightened Caucus Constituent Yearling Notable Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17693,817660,818780,NULL,NULL,NULL,0,NULL,NULL 17694,182039,150807,Nice Answer Great Answer Yearling Nice Answer Notable Question Yearling Guru Guru Yearling Favorite Question,NULL,NULL,0,NULL,NULL 17695,125814,168382,Curious Great Answer Yearling html Caucus Notable Question Guru Pundit javascript Popular Question Nice Answer Enlightened Caucus Nice Answer Yearling Good Answer jquery Custodian Promoter Yearling Benefactor Tumbleweed,NULL,NULL,0,NULL,NULL 17696,9167147,1474241,Famous Question,NULL,NULL,0,NULL,NULL 17697,755413,486058,Notable Question Nice Question Yearling Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 17698,451031,1077335,NULL,NULL,NULL,0,NULL,NULL 17699,433677,735143,Notable Question Yearling Unsung Hero,NULL,NULL,0,NULL,NULL 17700,257365,208710,Necromancer,NULL,NULL,0,NULL,NULL 17701,273575,944368,Yearling Famous Question,NULL,NULL,0,NULL,NULL 17702,510875,205334,Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 17703,146496,205334,Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 17704,1507857,867777,NULL,NULL,NULL,0,NULL,NULL 17705,370343,151135,Popular Question Popular Question Nice Question Popular Question Census,NULL,NULL,0,NULL,NULL 17706,205256,423730,Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 17707,244759,447758,NULL,NULL,NULL,0,NULL,NULL 17708,118655,1517290,NULL,NULL,NULL,0,NULL,NULL 17709,603184,362148,NULL,NULL,NULL,0,NULL,NULL 17710,593488,1437269,Editor Scholar Critic Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 17711,149423,832095,Yearling,NULL,NULL,0,NULL,NULL 17712,707419,806367,NULL,NULL,NULL,0,NULL,NULL 17713,47858,785891,Custodian Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 17714,164467,114780,Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 17715,741994,1359676,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 17716,64201,192599,Editor,NULL,NULL,0,NULL,NULL 17717,139530,194867,NULL,NULL,NULL,0,NULL,NULL 17718,44877,1082743,Nice Answer Popular Question Famous Question Popular Question Nice Question Caucus Yearling Great Answer Popular Question Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 17719,434405,175723,NULL,NULL,NULL,0,NULL,NULL 17720,260713,828644,NULL,NULL,NULL,0,NULL,NULL 17721,10821,19772,Guru Nice Answer Guru Yearling Caucus Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17722,10523,120513,Famous Question Good Answer Announcer Good Answer Nice Answer Good Answer Good Answer Nice Answer css Yearling java Guru Nice Answer Enlightened Announcer Good Question Nice Answer Good Answer Notable Question Great Answer Nice Answer Good Answer Good Answer Generalist Nice Answer Enlightened Nice Answer Yearling Announcer Good Answer Good Answer Famous Question Nice Question Good Answer feathersjs Good Answer node.js Famous Question Nice Answer Good Answer Guru Guru Good Answer Nice Answer Guru Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 17723,927166,1328145,NULL,NULL,NULL,0,NULL,NULL 17724,550241,224656,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Revival Yearling Necromancer Custodian Good Answer,NULL,NULL,0,NULL,NULL 17725,3766308,224656,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Revival Yearling Necromancer Custodian Good Answer,NULL,NULL,0,NULL,NULL 17726,129435,1230158,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 17727,393148,1237897,NULL,NULL,NULL,0,NULL,NULL 17728,63419,931420,Notable Question,NULL,NULL,0,NULL,NULL 17729,13274,614877,NULL,NULL,NULL,0,NULL,NULL 17730,119946,259661,Yearling Famous Question,NULL,NULL,0,NULL,NULL 17731,15272,414115,NULL,NULL,NULL,0,NULL,NULL 17732,144985,91267,Caucus Census,NULL,NULL,0,NULL,NULL 17733,3003378,596481,Self-Learner Yearling Critic Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 17734,519987,1344260,NULL,NULL,NULL,0,NULL,NULL 17735,158283,1522664,NULL,NULL,NULL,0,NULL,NULL 17736,478480,865136,NULL,NULL,NULL,0,NULL,NULL 17737,889450,1355404,NULL,NULL,NULL,0,NULL,NULL 17738,1664961,813022,NULL,NULL,NULL,0,NULL,NULL 17739,519490,921599,NULL,NULL,NULL,0,NULL,NULL 17740,70606,570006,Good Answer Yearling,NULL,NULL,0,NULL,NULL 17741,27674,5113,Yearling Nice Answer Enlightened Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 17742,115499,914191,Popular Question,NULL,NULL,0,NULL,NULL 17743,230538,415377,NULL,NULL,NULL,0,NULL,NULL 17744,239738,451007,Popular Question Notable Question Notable Question Famous Question Nice Question Popular Question Nice Question Nice Answer Popular Question Notable Question Popular Question Notable Question Yearling Famous Question Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Good Question Popular Question Popular Question Guru Notable Question Famous Question Good Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Notable Question Custodian Caucus Promoter Benefactor Notable Question Notable Question Popular Question Yearling Socratic Informed Nice Question Popular Question Famous Question Notable Question Nice Question Documentation User Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Custodian Notable Question Famous Question Notable Question Custodian Custodian Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Good Question Famous Question Good Question Nice Question Notable Question Notable Question Good Question Popular Question Popular Question Famous Question Yearling Famous Question Popular Question Nice Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,1,What is the idiomatic way in CMAKE to add the fPIC compiler option cmake pI ve come across at least ways to do this and wondering which is the idiomatic way This needs to be done almost universally to any static library surprised that the Makefile generator in CMake doesn automatically add this to static libraries unless missing something ppre codetarget compile options myLib PRIVATE fPIC add compile options fPIC set CMAKE FLAGS CMAKE FLAGS fpic set CMAKE CXX FLAGS CMAKE CXX FLAGS fpic code prepI believe there might also be other variations please edit my question if you find one ppIf you happen to know the answer to this question do you also know if there is way to cause 3rd party CMake project to be compiled with this flag without modifying its CMakeLists txt file have run across static libraries missing that flag It causes problems when compiling static library into dynamic library ppYou get ppre coderelocation X86 64 32 against rodata can not be used when making shared object recompile with fPIC code pre,NULL 17745,3235974,1455303,NULL,NULL,NULL,0,NULL,NULL 17746,1503724,247171,Editor Curious,NULL,NULL,0,NULL,NULL 17747,7302964,247171,Editor Curious,NULL,NULL,0,NULL,NULL 17748,3148,458610,Nice Question Notable Question Popular Question Favorite Question Nice Question Notable Question Good Question Favorite Question Famous Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Nice Answer Enlightened Nice Question Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Nice Question Nice Question Popular Question Nice Question Notable Question Stellar Question Famous Question Nice Question Notable Question Famous Question Yearling Nice Question Popular Question Good Answer Notable Question Famous Question Nice Question Famous Question Famous Question Famous Question Famous Question Popular Question Famous Question Notable Question Notable Question Notable Question Great Question Famous Question Popular Question Yearling Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 17749,96550,201952,Announcer Nice Answer Nice Answer Enlightened Good Answer Nice Answer http Nice Answer Good Answer windows Guru Guru Nice Answer Nice Answer Guru Guru Good Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Announcer Popular Question Guru Nice Question Guru Guru Nice Answer security Populist c# Necromancer Guru Guru Yearling Popular Question Caucus Nice Answer Constituent Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Necromancer Nice Answer Good Answer Generalist Guru Good Answer Guru Good Answer Nice Answer Announcer Guru Popular Question Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Nice Answer Nice Answer Good Answer Notable Question Announcer Announcer Caucus Guru Great Answer Notable Question Good Answer Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Yearling Good Answer Great Answer Announcer Nice Answer Announcer Good Answer Good Answer Census Nice Answer Guru Nice Answer Necromancer Caucus Nice Answer Enlightened Constituent Notable Question Nice Answer Good Answer Nice Answer Good Answer Great Answer Good Question Guru Good Question Good Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Nice Answer Good Answer Popular Question Populist Yearling Great Answer Popular Question Announcer,NULL,pAs it turns out strongwith the default OpenSSL strong which is bundled with node but if you ve built your own it is possible to href https stackoverflow com 4445695 201952 configure different engines href https github com openssl openssl blob OpenSSL 1e crypto rand md rand L334 rel nofollow noreferrer the algorithm to generate random data is exactly the same for both coderandomBytes code codeRAND bytes code and codepseudoRandomBytes code codeRAND pseudo bytes code ppThe one and only difference between the two calls depends on the version of node you re using pulliIn node v0 12 and prior coderandomBytes code returns an error if the entropy pool has not yet been seeded with enough data codepseudoRandomBytes code will always return bytes even if the entropy pool has not been properly seeded liliIn node v4 and later coderandomBytes code does not return until the entropy pool has enough data This should take only few milliseconds unless the system has just booted li ulpOnce the the entropy pool has been seeded with enough data it will never run out so there is absolutely no effective difference between coderandomBytes code and codepseudoRandomBytes code emonce the entropy pool is full em ppBecause the exact same algorithm is used to generate randrom data there is no difference in performance between the two calls one time entropy pool seeding notwithstanding it that changed in v4 Older vesions of node did throw when there was insufficient entropy https nodejs org docs latest v0 12 api crypto html crypto crypto randombytes size callback node will throw error or invoke callback with error if there is not enough accumulated entropy to generate cryptographically strong data In other words crypto randomBytes without callback will not block even if all entropy sources are drained Answer updated pRemember that while JavaScript is single threaded all of node and calls to native APIs are either asynchronous using platform specific mechanisms or run on separate thread This is all handled through libuv ppSo when there data available on socket or native API function has returned we need synchronized way to invoke the JavaScript function that is interested in the particular event that just happened ppIt not safe to just call the JS function from the thread where the native event happened for the same reasons that you encounter in regular multi threaded application ndash race conditions non atomic memory access and so forth ppSo what we do is place the event on queue in thread safe manner In oversimplified psuedocode something like ppre codelock queue queue push event code prepThen back on the main JavaScript emthread em but on the side of things we do something like ppre codewhile true this is the beginning of tick lock queue var tickEvents copy queue copy the current queue items into thread local memory queue empty and empty out the shared queue for var lt tickEvents length InvokeJSFunction tickEvents this the end of the tick code prepThe codewhile true code which doesn actually exist in node source code this is purely illustrative represents the emevent loop em The inner codefor code invokes the JS function for each event that was on the queue ppThis is tick the synchronous invocation of zero or more callback functions associated with any external events Once the queue is emptied out and the last function returns the tick is over We go back to the beginning the next tick and check for events that were added to the queue from other threads emwhile our JavaScript was running em ppWhat can add things to the queue pulli codeprocess nextTick code lili codesetTimeout code codesetInterval code liliI stuff from codefs code codenet code and so forth lili codecrypto code processor intensive functions like crypto streams pbkdf2 and the PRNG which are actually an example of liliany native modules that use the href http nikhilm github io uvbook threads html libuv work queue libuv work queue to make synchronous library calls look asynchronous li ul Phases are part of tick Put another way tick or turn is single iteration of event loop inside that iteration many things happen timers etc which are divided into phases,0,NULL,NULL 17750,9280761,603327,NULL,NULL,NULL,0,NULL,NULL 17751,2422053,982435,NULL,NULL,NULL,0,NULL,NULL 17752,521429,1209513,NULL,NULL,NULL,0,NULL,NULL 17753,158687,1010959,Notable Question Notable Question Notable Question Notable Question Good Question Popular Question Yearling Popular Question Notable Question Good Answer Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 17754,128460,1350731,NULL,NULL,NULL,0,NULL,NULL 17755,767334,1331999,NULL,NULL,NULL,0,NULL,NULL 17756,305104,703446,NULL,NULL,NULL,0,NULL,NULL 17757,3776101,703446,NULL,NULL,NULL,0,NULL,NULL 17758,2949,1331857,NULL,NULL,NULL,0,NULL,NULL 17759,227410,29002,NULL,NULL,NULL,0,NULL,NULL 17760,3035546,395846,NULL,NULL,NULL,0,NULL,NULL 17761,170606,1289883,NULL,NULL,NULL,0,NULL,NULL 17762,12691,818227,Civic Duty Nice Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 17763,162159,555550,NULL,NULL,NULL,0,NULL,NULL 17764,806580,1144844,NULL,NULL,NULL,0,NULL,NULL 17765,60425,1058971,NULL,NULL,NULL,0,NULL,NULL 17766,232019,266456,Notable Question,NULL,NULL,0,NULL,NULL 17767,186852,1019800,Informed,NULL,NULL,0,NULL,NULL 17768,237253,836033,NULL,NULL,NULL,0,NULL,NULL 17769,35214,860082,NULL,NULL,NULL,0,NULL,NULL 17770,678562,809645,Custodian,NULL,NULL,0,NULL,NULL 17771,442161,1441091,Student,NULL,NULL,0,NULL,NULL 17772,1504645,758248,Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 17773,424446,1098036,Popular Question,NULL,NULL,0,NULL,NULL 17774,120719,326193,NULL,NULL,NULL,0,NULL,NULL 17775,744809,788894,Supporter,NULL,NULL,0,NULL,NULL 17776,129042,1069569,Nice Answer Enlightened Nice Answer Nice Answer Enlightened common-lisp Good Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17777,407697,1148430,NULL,NULL,NULL,0,NULL,NULL 17778,995994,1148430,NULL,NULL,NULL,0,NULL,NULL 17779,1620754,1148430,NULL,NULL,NULL,0,NULL,NULL 17780,1568396,1215065,Popular Question,NULL,NULL,0,NULL,NULL 17781,259149,1019431,NULL,NULL,NULL,0,NULL,NULL 17782,104295,1318972,NULL,NULL,NULL,0,NULL,NULL 17783,104847,448332,Teacher Editor Revival Informed Critic Nice Answer Caucus Notable Question Yearling Caucus Scholar Caucus Constituent,NULL,NULL,0,NULL,NULL 17784,817655,860792,NULL,NULL,NULL,0,NULL,NULL 17785,6525,1067022,NULL,NULL,NULL,0,NULL,NULL 17786,1504173,1232345,Notable Question,NULL,NULL,0,NULL,NULL 17787,1044858,1227709,NULL,NULL,NULL,0,NULL,NULL 17788,14620,299541,Yearling Notable Question,NULL,NULL,0,NULL,NULL 17789,507171,1189265,Popular Question Yearling Notable Question Yearling Good Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 17790,1090448,942712,Tumbleweed,NULL,NULL,0,NULL,NULL 17791,80014,794433,Editor Teacher,NULL,NULL,0,NULL,NULL 17792,82108,955847,Necromancer,NULL,NULL,0,NULL,NULL 17793,1798682,387834,Popular Question,NULL,NULL,0,NULL,NULL 17794,206200,891636,Notable Question Great Answer Nice Question Nice Answer Civic Duty Famous Question Nice Answer Enlightened Yearling Caucus Constituent nginx Good Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Yearling Guru Nice Answer Enlightened Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 17795,238916,198872,NULL,NULL,NULL,0,NULL,NULL 17796,448504,1370400,NULL,NULL,NULL,0,NULL,NULL 17797,152082,636511,NULL,NULL,NULL,0,NULL,NULL 17798,275403,123782,Yearling,NULL,NULL,0,NULL,NULL 17799,219008,142019,NULL,NULL,NULL,0,NULL,NULL 17800,911443,60611,Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17801,631499,600379,Yearling Popular Question Yearling Nice Answer Yearling Peer Pressure,NULL,NULL,0,NULL,NULL 17802,176043,430109,NULL,NULL,NULL,0,NULL,NULL 17803,200887,1076057,Informed Yearling Yearling Popular Question Documentation Pioneer Custodian Yearling Popular Question Documentation User Yearling Necromancer Caucus Notable Question Notable Question Promoter Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17804,113168,1528437,Revival,NULL,NULL,0,NULL,NULL 17805,1505363,267455,Yearling Informed Nice Answer Civic Duty Yearling Caucus Constituent Necromancer Necromancer Yearling Custodian Caucus Constituent Yearling Necromancer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 17806,3288134,267455,Yearling Informed Nice Answer Civic Duty Yearling Caucus Constituent Necromancer Necromancer Yearling Custodian Caucus Constituent Yearling Necromancer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 17807,603058,52210,Yearling Revival Nice Answer Enlightened Good Answer Yearling Informed Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17808,1512949,256810,NULL,NULL,NULL,0,NULL,NULL 17809,1765779,1243127,NULL,NULL,NULL,0,NULL,NULL 17810,24085,1243127,NULL,NULL,NULL,0,NULL,NULL 17811,2601563,391806,Strunk & White Yearling Pundit Caucus Necromancer Caucus Nice Answer Yearling Tumbleweed Nice Answer Necromancer Necromancer Yearling Nice Answer android,NULL,NULL,0,NULL,NULL 17812,11065,144799,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17813,200767,767531,NULL,NULL,NULL,0,NULL,NULL 17814,201280,1228829,Supporter Informed Necromancer Editor Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 17815,87900,780017,Yearling Great Answer Yearling Yearling Caucus Enthusiast Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 17816,1582755,1110793,Populist Yearling Yearling Yearling Great Answer Custodian Yearling Enthusiast,NULL,NULL,0,NULL,NULL 17817,1270219,1202693,NULL,NULL,NULL,0,NULL,NULL 17818,161767,767005,NULL,NULL,NULL,0,NULL,NULL 17819,1451877,102915,Self-Learner Student Popular Question Yearling Nice Answer Caucus Necromancer,NULL,NULL,0,NULL,NULL 17820,68650,568299,NULL,NULL,NULL,0,NULL,NULL 17821,666788,561251,NULL,NULL,NULL,0,NULL,NULL 17822,63371,410309,Necromancer,NULL,NULL,0,NULL,NULL 17823,221984,875792,Popular Question Critic,NULL,NULL,0,NULL,NULL 17824,6501,385730,Self-Learner Yearling Nice Question Mortarboard Yearling Notable Question Critic Announcer Yearling Announcer Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 17825,399758,1188540,NULL,NULL,NULL,0,NULL,NULL 17826,3965,336418,Popular Question,NULL,NULL,0,NULL,NULL 17827,355545,379897,Notable Question Popular Question Nice Answer Enlightened Famous Question Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer embedded Nice Answer macros language-lawyer Popular Question Great Question Popular Question Nice Answer Enlightened c-preprocessor Popular Question Nice Answer Enlightened Popular Question Notable Question Good Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Guru Popular Question Nice Question Nice Answer Nice Answer Popular Question Nice Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer casting Yearling Nice Answer Nice Answer x86 Good Answer Guru Nice Answer Nice Question Good Question Nice Answer Nice Answer Nice Question Nice Answer Nice Answer Necromancer Notable Question Good Answer unix multithreading Nice Answer Good Answer Enlightened Good Answer Nice Answer Famous Question Guru Good Question Guru file-io Good Answer Guru Notable Question Nice Question Nice Answer Nice Answer mmap Nice Answer Nice Answer operating-system Nice Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Good Answer Notable Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened linux-kernel Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Popular Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Stellar Question Nice Answer Nice Question Great Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Question Nice Answer Announcer Nice Answer Nice Answer Necromancer Nice Answer Announcer Good Answer glibc Notable Question Yearling Nice Answer Necromancer Popular Question Announcer Nice Question Nice Answer Nice Answer Notable Question Popular Question Popular Question Nice Answer Enlightened Nice Answer Popular Question Announcer Nice Question Good Answer linker shared-libraries Nice Answer Enlightened Nice Answer Nice Answer Populist Good Answer Notable Question Good Answer Necromancer Nice Question Announcer Good Answer Popular Question Nice Answer Nice Answer Good Answer Announcer Nice Answer Famous Question Announcer Notable Question Announcer Good Answer Notable Question Nice Answer Good Question Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Good Answer Popular Question Nice Answer Guru Nice Answer Enlightened Revival system-calls Nice Answer Enlightened Nice Answer Good Answer Famous Question Good Answer Announcer Notable Question Notable Question Popular Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Notable Question Announcer Nice Answer Announcer Announcer Nice Answer Enlightened Popular Question Enlightened Guru Nice Answer Announcer Guru Nice Answer Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Yearling Announcer Great Answer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Good Answer Announcer Announcer gcc Popular Question Nice Answer Enlightened Announcer Notable Question Nice Answer Nice Answer printf Nice Answer x86-64 Popular Question windows Announcer Nice Question Announcer Famous Question Announcer Great Answer Announcer Notable Question Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Great Answer,NULL,pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol Normally this means the parent has its own fd for the write end of the pipe due to failure to close it after forking pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol Did you forget to set the close on exec flag on the fd in the child before performing exec pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol Read the documentation for fcntl That not how you use it and unfortunately the variadic API prevents the compiler from being able to tell you you re using it wrong pThe typedef would be ppre codetypedef char type24 code prepHowever this is probably very bad idea because the resulting type is an array type but users of it won see that it an array type If used as function argument it will be passed by reference not by value and the codesizeof code for it will then be wrong ppA better solution would be ppre codetypedef struct type24 char type24 code prepYou probably also want to be using codeunsigned char code instead of codechar code since the latter has implementation defined signedness Have you checked this pretty sure it on all interesting targets pThe typedef would be ppre codetypedef char type24 code prepHowever this is probably very bad idea because the resulting type is an array type but users of it won see that it an array type If used as function argument it will be passed by reference not by value and the codesizeof code for it will then be wrong ppA better solution would be ppre codetypedef struct type24 char type24 code prepYou probably also want to be using codeunsigned char code instead of codechar code since the latter has implementation defined signedness That not packing it just non insertion of gratuitous padding The alignment of the structure is just the maximum alignment of any of its members all of which have alignment pThe typedef would be ppre codetypedef char type24 code prepHowever this is probably very bad idea because the resulting type is an array type but users of it won see that it an array type If used as function argument it will be passed by reference not by value and the codesizeof code for it will then be wrong ppA better solution would be ppre codetypedef struct type24 char type24 code prepYou probably also want to be using codeunsigned char code instead of codechar code since the latter has implementation defined signedness Your test is buggy is an int and sizeof int pThe shortest answer codesnprintf code SUSv2 is ancient and irrelevant pThe shortest answer codesnprintf code The doesn come from Debian AFAIK just the Linux man pages project don think there was ever Linux libc with the wrong snprintf behavior but there may have been few ancient proprietary unices and MSVC snprintf had the bug too,0,NULL,NULL 17828,4611,354593,NULL,NULL,NULL,0,NULL,NULL 17829,182762,502735,Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 17830,159561,550967,Tumbleweed Nice Answer Caucus Yearling Census Custodian Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Custodian Constituent Proofreader,NULL,NULL,0,NULL,NULL 17831,190675,1048260,Commentator Revival Revival Critic Necromancer Informed Student Custodian Scholar Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17832,1191436,1264442,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17833,71652,407782,Revival Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 17834,38941,131931,NULL,NULL,NULL,0,NULL,NULL 17835,452098,97970,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 17836,310767,255979,NULL,NULL,NULL,0,NULL,NULL 17837,458922,816206,NULL,NULL,NULL,0,NULL,NULL 17838,119784,883146,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 17839,36775,150397,Notable Question Popular Question Necromancer Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 17840,159142,1059307,NULL,NULL,NULL,0,NULL,NULL 17841,147729,594363,NULL,NULL,NULL,0,NULL,NULL 17842,80109,652927,Popular Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 17843,67062,1186911,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17844,228131,712532,NULL,NULL,NULL,0,NULL,NULL 17845,19522,1001955,NULL,NULL,NULL,0,NULL,NULL 17846,121049,1402046,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17847,1022732,564681,NULL,NULL,NULL,0,NULL,NULL 17848,320615,16925,Popular Question Yearling Popular Question Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 17849,167830,1024190,Supporter Custodian Informed Autobiographer Commentator Citizen Patrol Critic Yearling Yearling Yearling Custodian Tenacious Enthusiast Yearling Caucus Constituent Caucus Custodian,NULL,NULL,0,NULL,NULL 17850,54124,612175,NULL,NULL,NULL,0,NULL,NULL 17851,19053,933578,NULL,NULL,NULL,0,NULL,NULL 17852,294439,140339,NULL,NULL,NULL,0,NULL,NULL 17853,189171,1557457,NULL,NULL,NULL,0,NULL,NULL 17854,6946342,1557457,NULL,NULL,NULL,0,NULL,NULL 17855,2662355,1199719,NULL,NULL,NULL,0,NULL,NULL 17856,411998,486982,NULL,NULL,NULL,0,NULL,NULL 17857,414865,1401746,NULL,NULL,NULL,0,NULL,NULL 17858,575305,1149698,NULL,NULL,NULL,0,NULL,NULL 17859,31245,854538,NULL,NULL,NULL,0,NULL,NULL 17860,66245,1192058,NULL,NULL,NULL,0,NULL,NULL 17861,6294558,1192058,NULL,NULL,NULL,0,NULL,NULL 17862,462945,1085374,NULL,NULL,NULL,0,NULL,NULL 17863,243852,668161,NULL,NULL,NULL,0,NULL,NULL 17864,2707250,1065059,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 17865,1379327,664255,NULL,NULL,NULL,0,NULL,NULL 17866,452399,345455,NULL,NULL,NULL,0,NULL,NULL 17867,46326,174445,Necromancer Nice Answer Yearling Nice Answer Good Answer Yearling Yearling Necromancer Necromancer Nice Answer Great Answer Yearling Revival Good Answer Good Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 17868,158393,2294,NULL,NULL,NULL,0,NULL,NULL 17869,1260118,85057,Good Question Nice Question Popular Question Yearling Good Question Notable Question Nice Question Nice Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling Nice Question Nice Question Notable Question Popular Question Notable Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 17870,1506938,1146511,NULL,NULL,NULL,0,NULL,NULL 17871,589869,498163,NULL,NULL,NULL,0,NULL,NULL 17872,751705,1553668,Notable Question Caucus Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 17873,54004,165995,NULL,NULL,NULL,0,NULL,NULL 17874,149595,42961,Nice Answer Revival Popular Question Nice Answer Nice Answer Yearling Revival Caucus Announcer Yearling Custodian Good Answer Good Question,NULL,NULL,0,NULL,NULL 17875,1083883,164766,Popular Question Popular Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17876,235918,697196,Good Answer Yearling,NULL,NULL,0,NULL,NULL 17877,216032,719699,NULL,NULL,NULL,0,NULL,NULL 17878,153996,424783,Supporter,NULL,NULL,0,NULL,NULL 17879,5740813,689146,NULL,NULL,NULL,0,NULL,NULL 17880,1259683,975690,NULL,NULL,NULL,0,NULL,NULL 17881,49568,64167,Popular Question Yearling Famous Question Notable Question Notable Question Popular Question Nice Question Nice Answer Popular Question Yearling Guru Good Question Nice Question Popular Question Nice Question Popular Question Caucus Notable Question Necromancer Famous Question Good Question Good Question Famous Question Census Popular Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 17882,118276,1125549,Popular Question Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 17883,9603838,1125549,Popular Question Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 17884,194574,786709,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17885,38009,930909,Scholar Citizen Patrol Critic Organizer Yearling Suffrage Commentator Yearling Enthusiast Caucus Custodian Custodian Custodian Excavator Yearling Constituent Reviewer Civic Duty Caucus Constituent Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 17886,53609,121843,Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 17887,327421,121843,Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 17888,146786,611930,Supporter Student,NULL,NULL,0,NULL,NULL 17889,238768,41634,Curious Commentator Enthusiast Necromancer Popular Question Popular Question Caucus Constituent Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 17890,48941,690970,Popular Question Yearling Popular Question Good Question Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 17891,116272,510673,NULL,NULL,NULL,0,NULL,NULL 17892,42361,92962,Supporter,NULL,NULL,0,NULL,NULL 17893,856053,996619,NULL,NULL,NULL,0,NULL,NULL 17894,352352,1070003,NULL,NULL,NULL,0,NULL,NULL 17895,357352,961453,Critic Supporter,NULL,NULL,0,NULL,NULL 17896,260949,535239,NULL,NULL,NULL,0,NULL,NULL 17897,61655,63112,Yearling Favorite Question Necromancer Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17898,119688,1045774,Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 17899,89503,103778,Revival Custodian Announcer Yearling Nice Answer Enlightened Popular Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 17900,371894,683437,NULL,NULL,NULL,0,NULL,NULL 17901,214581,1314038,NULL,NULL,NULL,0,NULL,NULL 17902,9177,934906,NULL,NULL,NULL,0,NULL,NULL 17903,28879,364316,Famous Question Notable Question Notable Question Popular Question Notable Question Caucus Constituent Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 17904,396432,451703,Revival,NULL,NULL,0,NULL,NULL 17905,222331,68637,Yearling Notable Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 17906,18443,51947,Yearling Yearling Nice Answer Good Answer Yearling,NULL,pre codechsh which zsh code prepYou ll be prompted for your password but once you update your settings any new iTerm Terminal sessions you start on that machine will default to zsh Shouldn matter chsh is part of the FreeBSD distro that MacOS is based off of This sets your default shell at system level so it ll cover iTerm the default terminal or any other terminal you have that respects the SHELL environment variable,0,NULL,NULL 17907,223713,119603,Revival Yearling Mortarboard Yearling Nice Answer,NULL,NULL,0,NULL,NULL 17908,337211,989202,NULL,NULL,NULL,0,NULL,NULL 17909,12016,1059843,Necromancer Famous Question Necromancer Good Answer Good Answer Yearling Good Answer Populist Good Answer Nice Answer Good Answer Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 17910,255823,504994,Supporter,NULL,NULL,0,NULL,NULL 17911,810786,271887,Yearling Notable Question Nice Question Yearling Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 17912,480218,823762,Popular Question Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 17913,235109,494635,Revival Popular Question Popular Question Custodian Nice Answer Popular Question Popular Question Notable Question Yearling Necromancer Nice Question Notable Question Notable Question Census Popular Question Yearling Good Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 17914,422495,202527,NULL,NULL,NULL,0,NULL,NULL 17915,405087,197913,.net Announcer Nice Answer Announcer Good Answer Nice Answer Revival Good Answer Nice Answer Enlightened Announcer Civic Duty Informed Necromancer Nice Answer Enlightened Announcer Yearling Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Revival Yearling Announcer Announcer Nice Answer Guru Announcer Necromancer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 17916,311110,1279707,Self-Learner Popular Question Yearling Good Answer Necromancer ruby Notable Question Yearling Nice Answer ruby-on-rails-3 Notable Question Nice Answer Nice Answer Enlightened Popular Question Famous Question Yearling Nice Question Popular Question Necromancer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 17917,424115,1526588,NULL,NULL,NULL,0,NULL,NULL 17918,68224,401510,Good Answer Announcer Yearling Good Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 17919,619252,545925,Popular Question Yearling Popular Question Notable Question Famous Question Caucus Yearling Census Famous Question Caucus Constituent,NULL,NULL,0,NULL,NULL 17920,372830,344744,Curious Informed Popular Question Talkative Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17921,1001736,571276,NULL,NULL,NULL,0,NULL,NULL 17922,195895,230558,Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 17923,1226530,463667,NULL,NULL,NULL,0,NULL,NULL 17924,590984,194089,Popular Question Notable Question Famous Question Popular Question Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17925,679646,432410,NULL,NULL,NULL,0,NULL,NULL 17926,19738,1219064,Nice Answer Commentator Critic Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 17927,241793,64270,NULL,NULL,NULL,0,NULL,NULL 17928,1247082,48008,Notable Question,NULL,NULL,0,NULL,NULL 17929,32916,181902,Civic Duty Popular Question Good Question Famous Question Notable Question Famous Question Popular Question Popular Question Yearling Famous Question Popular Question Nice Question Famous Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question django Good Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17930,200309,497734,NULL,NULL,NULL,0,NULL,NULL 17931,3981470,233507,Popular Question Nice Answer Notable Question Notable Question Guru Yearling Notable Question Popular Question Yearling Nice Question Good Answer Popular Question Good Answer Nice Question,NULL,NULL,0,NULL,NULL 17932,140590,203499,Popular Question Notable Question Yearling Popular Question Notable Question Nice Question Good Answer Popular Question Notable Question Yearling Popular Question Excavator Necromancer Notable Question Caucus Constituent Nice Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 17933,422270,639455,Nice Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 17934,72506,1013760,Civic Duty Student,NULL,NULL,0,NULL,NULL 17935,154234,975803,Famous Question Necromancer Caucus Good Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 17936,279795,1313214,Supporter,NULL,NULL,0,NULL,NULL 17937,106926,1136257,Popular Question Excavator Notable Question Notable Question Famous Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 17938,793788,1089568,NULL,NULL,NULL,0,NULL,NULL 17939,112926,945863,Popular Question Necromancer Notable Question Famous Question Popular Question Nice Answer Informed Popular Question Famous Question Yearling Good Answer Nice Question Necromancer Popular Question Notable Question Yearling Notable Question Famous Question Nice Answer Guru Necromancer Notable Question Nice Question Yearling Great Answer Announcer Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17940,201532,922918,NULL,NULL,NULL,0,NULL,NULL 17941,13562,285769,Yearling,NULL,NULL,0,NULL,NULL 17942,65423,183535,Yearling,NULL,NULL,0,NULL,NULL 17943,589262,142486,Famous Question Nice Question Yearling Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Good Question Yearling Famous Question Good Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17944,153718,1528974,NULL,NULL,NULL,0,NULL,NULL 17945,102726,53136,Popular Question Popular Question Popular Question Custodian Custodian,NULL,NULL,0,NULL,NULL 17946,13787,541127,NULL,NULL,NULL,0,NULL,NULL 17947,169459,1556730,NULL,NULL,NULL,0,NULL,NULL 17948,3816,866960,NULL,NULL,NULL,0,NULL,NULL 17949,159615,303811,NULL,NULL,NULL,0,NULL,NULL 17950,314858,488754,NULL,NULL,NULL,0,NULL,NULL 17951,423651,727184,Tumbleweed Popular Question Nice Answer Yearling Nice Question Popular Question Popular Question Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Notable Question,NULL,How can we conditionally load vendor css with webpack javascript css sass webpack webpack style loader pFor example if we have strongvendor strong scss file named codevendor scss code with the following content ppre code color green h1 background color color code prepHow can we write the rules to achieve to following result Or similar ppre codelet vendor true this will be configured outsideif vendor let style require style loader useable css loader vendor scss style use loads just if call use otherwise not require my other file scss loads normally without use code prepBecause codevendor scss code is vendor scss css we cannot or should not rename it to for example codevendor useable scss code And for maintaining purposes we would like to not create new one like codemy vendor wrapper scss code that could wrap it with an code code inside of it ppIn webpack for now have this rule ppre codeconst ExtractTextPlugin require extract text webpack plugin module exports test scss sass css test style loader useable sass scss css use ExtractTextPlugin extract fallback style loader use css loader postcss loader sass loader code prepI tried several things like creating additional rules If use an custom extension like lscss for lazy scss can put it to work But the expected behavior that would like is load all css scss normally but if it have codestyle loader useable code in front of it just loads if call codeuse code ppHow can we do this can you share link with me,1,How can we conditionally load vendor css with webpack javascript css sass webpack webpack style loader pFor example if we have strongvendor strong scss file named codevendor scss code with the following content ppre code color green h1 background color color code prepHow can we write the rules to achieve to following result Or similar ppre codelet vendor true this will be configured outsideif vendor let style require style loader useable css loader vendor scss style use loads just if call use otherwise not require my other file scss loads normally without use code prepBecause codevendor scss code is vendor scss css we cannot or should not rename it to for example codevendor useable scss code And for maintaining purposes we would like to not create new one like codemy vendor wrapper scss code that could wrap it with an code code inside of it ppIn webpack for now have this rule ppre codeconst ExtractTextPlugin require extract text webpack plugin module exports test scss sass css test style loader useable sass scss css use ExtractTextPlugin extract fallback style loader use css loader postcss loader sass loader code prepI tried several things like creating additional rules If use an custom extension like lscss for lazy scss can put it to work But the expected behavior that would like is load all css scss normally but if it have codestyle loader useable code in front of it just loads if call codeuse code ppHow can we do this,NULL 17952,57475,350358,Tumbleweed Editor,NULL,NULL,0,NULL,NULL 17953,126640,1443194,Revival Nice Answer Supporter,NULL,NULL,0,NULL,NULL 17954,336072,201276,Necromancer,NULL,NULL,0,NULL,NULL 17955,1438193,628363,Notable Question,NULL,NULL,0,NULL,NULL 17956,9603431,628363,Notable Question,NULL,NULL,0,NULL,NULL 17957,837452,208457,Citizen Patrol Custodian Notable Question Necromancer Yearling Caucus Popular Question Announcer Necromancer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 17958,2016177,419294,Revival Informed Scholar Yearling Necromancer Critic Commentator Student Popular Question Yearling,NULL,NULL,0,NULL,NULL 17959,86669,208063,Commentator Yearling Notable Question Yearling Great Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 17960,559419,1309975,NULL,NULL,NULL,0,NULL,NULL 17961,169569,231528,Nice Question,NULL,NULL,0,NULL,NULL 17962,366910,438826,NULL,NULL,NULL,0,NULL,NULL 17963,105645,4697,Famous Question Notable Question Revival Custodian Popular Question Yearling Good Question Nice Question Famous Question Popular Question Favorite Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 17964,106887,1502538,Popular Question Yearling Popular Question Critic Informed,NULL,NULL,0,NULL,NULL 17965,278384,608742,NULL,NULL,NULL,0,NULL,NULL 17966,6985,155270,Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 17967,154542,621964,Yearling,NULL,NULL,0,NULL,NULL 17968,11302887,621964,Yearling,NULL,NULL,0,NULL,NULL 17969,120332,778353,NULL,NULL,NULL,0,NULL,NULL 17970,138250,520929,Nice Question Notable Question Popular Question Nice Question Yearling Good Question Famous Question Famous Question Yearling Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 17971,1308288,520929,Nice Question Notable Question Popular Question Nice Question Yearling Good Question Famous Question Famous Question Yearling Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 17972,82526,962944,Nice Answer,NULL,NULL,0,NULL,NULL 17973,417573,173556,Yearling Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Caucus Yearling Census Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 17974,317160,667772,Popular Question Yearling Necromancer Popular Question Famous Question Famous Question Notable Question Good Question Necromancer Popular Question Caucus Necromancer Yearling Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Famous Question Nice Question Revival Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 17975,1231107,909422,Student,NULL,NULL,0,NULL,NULL 17976,80665,286776,Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 17977,180689,749298,NULL,NULL,NULL,0,NULL,NULL 17978,242167,1196325,NULL,NULL,NULL,0,NULL,NULL 17979,814580,727525,NULL,NULL,NULL,0,NULL,NULL 17980,70104,1058434,NULL,NULL,NULL,0,NULL,NULL 17981,301329,228152,Notable Question Nice Answer Enlightened Guru Popular Question Electorate Nice Answer Necromancer Revival Good Answer Nice Answer Enlightened Necromancer Great Answer Yearling Nice Question Nice Answer Necromancer Good Answer Notable Question Great Answer Good Answer Necromancer Nice Answer Enlightened Necromancer Popular Question Revival Yearling Census Good Answer Necromancer Revival Revival Revival Good Answer,NULL,NULL,0,NULL,NULL 17982,619713,474311,Enthusiast Student Scholar Announcer Informed Yearling Commentator Documentation User Announcer Curious Caucus Yearling,NULL,NULL,0,NULL,NULL 17983,126722,898870,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 17984,452871,127380,Informed Critic Famous Question Excavator Yearling Cleanup Custodian Necromancer Commentator Organizer,NULL,pThere are many good answers here already but wanted to share more complete example that both pullidoesn assume codeuname code exists on Windows lilialso detects the processor li ulpThe CCFLAGS defined here aren necessarily recommended or ideal they re just what the project to which was adding OS CPU auto detection happened to be using ppre codeifeq OS Windows NT CCFLAGS WIN32 ifeq PROCESSOR ARCHITEW6432 AMD64 CCFLAGS AMD64 else ifeq PROCESSOR ARCHITECTURE AMD64 CCFLAGS AMD64 endif ifeq PROCESSOR ARCHITECTURE x86 CCFLAGS IA32 endif endifelse UNAME shell uname ifeq UNAME Linux CCFLAGS LINUX endif ifeq UNAME Darwin CCFLAGS OSX endif UNAME shell uname ifeq UNAME x86 64 CCFLAGS AMD64 endif ifneq filter 86 UNAME CCFLAGS IA32 endif ifneq filter arm UNAME CCFLAGS ARM endifendif code pre can not agree with the don assume uname exists advice To the best of my knowledge there is no method to install GNU Make without also installing uname,0,NULL,NULL 17985,3429082,863796,NULL,NULL,NULL,0,NULL,NULL 17986,119199,166210,Yearling Revival Famous Question Popular Question Notable Question Notable Question Tumbleweed Census Good Question Popular Question,NULL,NULL,0,NULL,NULL 17987,230567,698102,Yearling Stellar Question Yearling Yearling Self-Learner,NULL,NULL,0,NULL,NULL 17988,48152,327453,NULL,NULL,NULL,0,NULL,NULL 17989,75273,656625,NULL,NULL,NULL,0,NULL,NULL 17990,397180,853188,NULL,NULL,NULL,0,NULL,NULL 17991,33224,1430645,NULL,NULL,NULL,0,NULL,NULL 17992,620269,187975,NULL,NULL,NULL,0,NULL,NULL 17993,321522,892307,Nice Answer Informed Custodian Yearling Documentation User Populist,NULL,NULL,0,NULL,NULL 17994,16638,1524432,NULL,NULL,NULL,0,NULL,NULL 17995,189225,722130,NULL,NULL,NULL,0,NULL,NULL 17996,7681,116892,Self-Learner Favorite Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 17997,532566,565514,Revival Critic Informed Notable Question Yearling Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 17998,84740,660896,Nice Question Necromancer Notable Question Famous Question Yearling Notable Question Notable Question Inquisitive Popular Question Popular Question Famous Question Revival Good Question Popular Question Nice Answer Peer Pressure Notable Question Civic Duty Nice Question Notable Question Informed Yearling Popular Question Notable Question Nice Question Notable Question Necromancer Nice Answer Good Question Documentation User Nice Question Quorum Revival Necromancer Notable Question Nice Question Popular Question Famous Question Nice Question Popular Question Nice Question Necromancer Self-Learner Popular Question Yearling Nice Question Good Answer Necromancer Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 17999,1272697,660896,Nice Question Necromancer Notable Question Famous Question Yearling Notable Question Notable Question Inquisitive Popular Question Popular Question Famous Question Revival Good Question Popular Question Nice Answer Peer Pressure Notable Question Civic Duty Nice Question Notable Question Informed Yearling Popular Question Notable Question Nice Question Notable Question Necromancer Nice Answer Good Question Documentation User Nice Question Quorum Revival Necromancer Notable Question Nice Question Popular Question Famous Question Nice Question Popular Question Nice Question Necromancer Self-Learner Popular Question Yearling Nice Question Good Answer Necromancer Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 18000,83117,30861,Notable Question Yearling Popular Question Famous Question Nice Answer Yearling Good Question Yearling Custodian,NULL,NULL,0,NULL,NULL 18001,15082,1102765,NULL,NULL,NULL,0,NULL,NULL 18002,263015,630588,Yearling Nice Question Necromancer Good Answer Popular Question Yearling Great Answer matlab Notable Question Nice Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 18003,141364,1013865,Notable Question Yearling Nice Question Great Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 18004,191264,305327,Yearling Good Answer Necromancer Scholar Yearling,NULL,NULL,0,NULL,NULL 18005,24807,784162,NULL,NULL,NULL,0,NULL,NULL 18006,614187,310522,NULL,NULL,NULL,0,NULL,NULL 18007,252606,484545,Yearling Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18008,204857,380085,NULL,NULL,NULL,0,NULL,NULL 18009,32601,1253565,NULL,NULL,NULL,0,NULL,NULL 18010,881498,718486,NULL,NULL,NULL,0,NULL,NULL 18011,238207,258846,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 18012,450996,348512,Yearling Good Question,NULL,NULL,0,NULL,NULL 18013,1160056,338907,NULL,NULL,NULL,0,NULL,NULL 18014,41050,194661,Student,NULL,NULL,0,NULL,NULL 18015,190133,293612,Yearling Favorite Question Nice Answer Enlightened Yearling Nice Answer Enlightened Famous Question Guru Good Question Popular Question Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 18016,7836507,836213,NULL,NULL,NULL,0,NULL,NULL 18017,72947,112171,Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 18018,222668,540029,NULL,NULL,NULL,0,NULL,NULL 18019,100513,994345,Nice Answer Not a Robot,NULL,NULL,0,NULL,NULL 18020,8731786,994345,Nice Answer Not a Robot,NULL,NULL,0,NULL,NULL 18021,662655,1461597,NULL,NULL,NULL,0,NULL,NULL 18022,825622,888920,NULL,NULL,NULL,0,NULL,NULL 18023,343024,575449,NULL,NULL,NULL,0,NULL,NULL 18024,148977,1064793,NULL,NULL,NULL,0,NULL,NULL 18025,340541,1030537,NULL,NULL,NULL,0,NULL,NULL 18026,132853,93687,NULL,NULL,NULL,0,NULL,NULL 18027,107126,23427,Yearling Enlightened Famous Question Yearling Custodian Popular Question Favorite Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 18028,167338,628334,NULL,NULL,NULL,0,NULL,NULL 18029,47924,646219,Student,NULL,NULL,0,NULL,NULL 18030,117876,1173449,NULL,NULL,NULL,0,NULL,NULL 18031,2825601,582278,Nice Question Yearling Revival Popular Question Notable Question Popular Question Good Answer Popular Question Notable Question Popular Question Good Answer Yearling Revival Nice Answer symfony Nice Answer Enlightened Nice Question Enlightened Necromancer Caucus Guru Announcer Nice Answer Documentation User Revival Guru Yearling Famous Question Nice Answer Popular Question,NULL,NULL,1,Memcache extension with PHP on CentOS fails to install memcached pecl php centos6 pI trying to upgrade fairly large PHP code base to PHP It hosted on CentOS so want to keep it on that OS currently doing it on virgin Vagrant box ve installed PHP successfully and all the modules except for Memcache ppAs root when run codepecl install memcache code it tries to install v2 but get long list of errors and warnings from emmake em At the end is ppre codemake memcache lo Error 1ERROR make failed code prepAccording to href https github com gophp7 gophp7 ext wiki extensions catalog rel noreferrer GoPHP7 it should work Memcache should work with PHP it says emphp7 port on github em There is indeed href https github com websupport sk pecl memcache rel noreferrer Memcache PHP port on GitHub When look at the href https pecl php net package memcache rel noreferrer Memcache page on Pecl page it shows that should be installing v3 but this in beta and has been since 2013 ppSo try to run codepecl install memcache code and it still fails with the same error as above ppre codemake memcache lo Error 1ERROR make failed code prepSo is it possible to get the Memcache extension working with PHP on CentOS,NULL 18032,565058,374711,NULL,NULL,NULL,0,NULL,NULL 18033,588649,1187547,NULL,NULL,NULL,0,NULL,NULL 18034,4335,664735,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 18035,1532084,498823,NULL,NULL,NULL,0,NULL,NULL 18036,135914,209028,NULL,NULL,NULL,0,NULL,NULL 18037,72150,592584,Student,NULL,NULL,0,NULL,NULL 18038,489552,56869,NULL,NULL,NULL,0,NULL,NULL 18039,377462,209371,Announcer Yearling,NULL,NULL,0,NULL,NULL 18040,148724,234201,javascript Good Answer Nice Answer Yearling Guru Yearling Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 18041,236563,1358540,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18042,398321,900303,Popular Question Informed,NULL,NULL,0,NULL,NULL 18043,291018,1017192,Necromancer Revival,NULL,NULL,0,NULL,NULL 18044,291033,1017192,Necromancer Revival,NULL,NULL,0,NULL,NULL 18045,391587,280598,Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Yearling Nice Answer Guru Generalist Good Answer Guru Good Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer database Nice Answer Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 18046,116397,1034535,NULL,NULL,NULL,0,NULL,NULL 18047,3203457,1289553,NULL,NULL,NULL,0,NULL,NULL 18048,204098,443781,NULL,NULL,NULL,0,NULL,NULL 18049,29553,29263,Caucus Constituent Civic Duty,NULL,NULL,0,NULL,NULL 18050,457667,650693,NULL,NULL,NULL,0,NULL,NULL 18051,401311,166936,NULL,NULL,NULL,0,NULL,NULL 18052,3031679,295650,NULL,NULL,NULL,0,NULL,NULL 18053,332635,295650,NULL,NULL,NULL,0,NULL,NULL 18054,26691,632259,Editor Announcer Yearling Supporter Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 18055,238327,1084468,Notable Question,NULL,NULL,0,NULL,NULL 18056,838512,551411,NULL,NULL,NULL,0,NULL,NULL 18057,12575,53777,Yearling Good Answer Informed Civic Duty Nice Answer Enlightened Good Question Yearling Nice Answer Good Answer Nice Answer Enlightened Custodian Custodian Custodian Custodian Custodian Nice Answer Enlightened Yearling Nice Answer Famous Question Caucus Nice Answer Booster,NULL,NULL,0,NULL,NULL 18058,65056,675876,NULL,NULL,NULL,0,NULL,NULL 18059,7703,1135335,NULL,NULL,NULL,0,NULL,NULL 18060,205681,417083,Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18061,19874,277367,Famous Question Nice Question Yearling Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 18062,917785,277367,Famous Question Nice Question Yearling Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 18063,517791,1009065,Revival,NULL,NULL,0,NULL,NULL 18064,55380,447665,NULL,NULL,NULL,0,NULL,NULL 18065,8313,229166,Popular Question,NULL,NULL,0,NULL,NULL 18066,1322100,310128,NULL,NULL,NULL,0,NULL,NULL 18067,37081,536585,Student Yearling Scholar,NULL,NULL,0,NULL,NULL 18068,2395572,379448,NULL,NULL,NULL,0,NULL,NULL 18069,129935,379448,NULL,NULL,NULL,0,NULL,NULL 18070,430356,638228,Informed Autobiographer,NULL,NULL,0,NULL,NULL 18071,132734,493702,Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 18072,486493,58740,Yearling php Great Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 18073,53676,324205,Yearling,NULL,NULL,0,NULL,NULL 18074,263031,104469,Popular Question,NULL,NULL,0,NULL,NULL 18075,1582181,643106,Autobiographer,NULL,NULL,0,NULL,NULL 18076,68123,268791,Yearling Excavator Notable Question,NULL,NULL,0,NULL,NULL 18077,169976,662985,NULL,NULL,NULL,0,NULL,NULL 18078,1376653,27423,Good Answer Good Answer Good Answer Guru Great Answer Good Answer Necromancer Popular Question Great Answer Good Answer Notable Question Nice Question Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Nice Question Enlightened Nice Answer Guru Good Answer Nice Answer Good Answer Yearling Popular Question Guru Caucus Nice Answer Great Answer Good Question Good Answer Nice Answer Good Answer Famous Question Good Answer Announcer Great Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Guru Guru Yearling Nice Answer Enlightened Great Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Popular Question Nice Answer Good Answer Guru Yearling Guru Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 18079,206406,1050027,NULL,NULL,NULL,0,NULL,NULL 18080,43329,54829,Yearling Favorite Question Favorite Question Popular Question Good Question Popular Question Notable Question Stellar Question Notable Question Revival Good Answer Nice Answer Nice Question Popular Question Famous Question Good Question Nice Question Popular Question Necromancer Great Answer Great Answer Popular Question Notable Question Nice Question Nice Answer Notable Question Popular Question Nice Answer Popular Question Popular Question Necromancer Necromancer Yearling Great Question Notable Question Nice Question Notable Question Good Answer Nice Answer Popular Question Famous Question Popular Question Yearling Necromancer Great Question Famous Question Notable Question Notable Question Nice Answer Nice Question Good Question Notable Question Nice Answer Popular Question Notable Question Popular Question Famous Question Nice Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18081,66396,11951,Popular Question Nice Question Yearling Notable Question Yearling Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 18082,1155158,854378,NULL,NULL,NULL,0,NULL,NULL 18083,915932,1229517,Notable Question,NULL,NULL,0,NULL,NULL 18084,211519,632035,Popular Question Yearling Revival Announcer Yearling Explainer Tenacious Announcer Announcer Yearling Unsung Hero Self-Learner Revival Nice Answer android-ndk Announcer Announcer Revival android Announcer Documentation User Announcer Announcer Good Answer Announcer Announcer Census Custodian Announcer Yearling Nice Answer Enlightened Caucus Announcer Civic Duty Announcer Revival Revival Announcer Announcer Announcer c++ Nice Question Curious Announcer,NULL,NDK builder r15 finds neither HAVE PTHREAD COND TIMEDWAIT MONOTONIC nor pthread condattr setclock for some build targets Build fails android android ndk pI have some native code in my project use pthread with monotonic time But not good in NDK development ppC code to initialise and use condition with monotonic clock ppre codeint initMonotonicCond pthread cond cond int result ifdef HAVE PTHREAD COND TIMEDWAIT MONOTONIC result pthread cond init cond NULL else pthread condattr cond1attr result pthread condattr init amp cond1attr result pthread condattr setclock amp cond1attr CLOCK MONOTONIC result pthread cond init cond amp cond1attr pthread condattr destroy amp cond1attr endif return result void monothonicWait pthread cond cond pthread mutex mutex const struct timespec ts ifdef HAVE PTHREAD COND TIMEDWAIT MONOTONIC pthread cond timedwait monotonic np cond mutex ts else pthread cond timedwait cond mutex ts endif code prepGradle builds ndk project with ppre codeandroid compileSdkVersion 25 buildToolsVersion 25 defaultConfig minSdkVersion 16 targetSdkVersion 24 buildTypes release minifyEnabled false proguardFiles getDefaultProguardFile proguard android txt proguard rules pro externalNativeBuild cmake cppFlags fexceptions frtti fPIE fPIC abiFilters armeabi v7a armeabi arm64 v8a x86 x86 64 mips mips64 debug externalNativeBuild cmake cppFlags fexceptions frtti fPIE funwind tables DDEBUG fPIC abiFilters armeabi code prepRecently ve updated Android Studio and all the SDK stuff to newer version And ndk build to r15 guess And now getting and error when building ppError 155 15 error use of undeclared identifier pthread condattr setclock did you mean pthread condattr setpshared ppAfter some research ve fount that now codeHAVE PTHREAD COND TIMEDWAIT MONOTONIC code and codepthread cond timedwait monotonic np code should be defined for non x64 targets armeabi v7a armeabi x86 mips And it was defined But it is not defined now ppSo armeabi v7a x86 mips do not have defined nither codeHAVE PTHREAD COND TIMEDWAIT MONOTONIC code nor codepthread condattr setclock code defined so my project can be built for theese targets ppSo what the reason for that and what options do have ppShould not use monothonic wait for that targets some way ppShould not build for those targets ppShould revert to older NDK ppOr should write to google groups about that Or should write to google groups about that Filing bugs is always the best way to contact us https github com android ndk ndk issues,0,NULL,NULL 18085,380973,688206,Yearling Good Answer Nice Answer Yearling Student Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18086,25786,111910,Yearling Good Answer Notable Question Good Question Yearling Notable Question Good Answer Populist Promoter Yearling,NULL,NULL,0,NULL,NULL 18087,9003123,56880,Notable Question Yearling Yearling Notable Question Announcer Yearling Tenacious Yearling Announcer,NULL,NULL,0,NULL,NULL 18088,408753,56880,Notable Question Yearling Yearling Notable Question Announcer Yearling Tenacious Yearling Announcer,NULL,NULL,0,NULL,NULL 18089,26717,468276,NULL,NULL,NULL,0,NULL,NULL 18090,625836,195596,Yearling Caucus Constituent Census Caucus Constituent Yearling Census Revival Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 18091,424520,591412,NULL,NULL,NULL,0,NULL,NULL 18092,295723,63759,Yearling,NULL,NULL,0,NULL,NULL 18093,145428,1142795,Popular Question,NULL,NULL,0,NULL,NULL 18094,1049210,147139,Good Answer,NULL,NULL,0,NULL,NULL 18095,6560211,1001484,NULL,NULL,NULL,0,NULL,NULL 18096,125600,945788,NULL,NULL,NULL,0,NULL,NULL 18097,341759,36611,Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling cxf Good Answer Yearling,NULL,NULL,0,NULL,NULL 18098,187434,375073,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18099,20305,529733,Nice Answer Caucus Notable Question Necromancer,NULL,NULL,0,NULL,NULL 18100,130225,1347993,NULL,NULL,NULL,0,NULL,NULL 18101,63929,1025037,Critic,NULL,NULL,0,NULL,NULL 18102,189048,758113,Commentator Yearling,NULL,NULL,0,NULL,NULL 18103,622371,159895,Popular Question Caucus Disciplined,NULL,NULL,0,NULL,NULL 18104,1758138,159895,Popular Question Caucus Disciplined,NULL,NULL,0,NULL,NULL 18105,130184,716360,NULL,NULL,NULL,0,NULL,NULL 18106,216302,1190904,Curious Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18107,2384561,931620,NULL,NULL,NULL,0,NULL,NULL 18108,626335,796267,NULL,NULL,NULL,0,NULL,NULL 18109,7377,532938,NULL,NULL,NULL,0,NULL,NULL 18110,463130,1290568,NULL,NULL,NULL,0,NULL,NULL 18111,13881,238322,Suffrage Custodian Citizen Patrol Custodian Informed Custodian Yearling Self-Learner Caucus Popular Question Revival Caucus Constituent Notable Question Nice Answer Civic Duty Organizer Vox Populi Yearling,NULL,NULL,0,NULL,NULL 18112,406902,62761,NULL,NULL,NULL,0,NULL,NULL 18113,793789,1016638,NULL,NULL,NULL,0,NULL,NULL 18114,9603437,1532562,NULL,NULL,NULL,0,NULL,NULL 18115,74792,4913,Nice Question Nice Answer Famous Question Yearling Famous Question Guru Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18116,148176,1063087,NULL,NULL,NULL,0,NULL,NULL 18117,5015570,1063087,NULL,NULL,NULL,0,NULL,NULL 18118,207169,937170,Student Supporter Editor Scholar Popular Question,NULL,NULL,0,NULL,NULL 18119,284538,308928,Necromancer Nice Answer Nice Answer Yearling Famous Question Caucus Excavator Revival Necromancer Good Question,NULL,NULL,0,NULL,NULL 18120,753897,270858,NULL,NULL,NULL,0,NULL,NULL 18121,328540,360760,NULL,NULL,NULL,0,NULL,NULL 18122,20014,301681,NULL,NULL,NULL,0,NULL,NULL 18123,331410,314503,Citizen Patrol Yearling Nice Answer Excavator Yearling Nice Answer Enlightened Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 18124,88197,772052,NULL,NULL,NULL,0,NULL,NULL 18125,117825,457201,Yearling,NULL,NULL,0,NULL,NULL 18126,125537,1101471,Popular Question Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 18127,11707,815682,NULL,NULL,NULL,0,NULL,NULL 18128,1197031,185221,Nice Answer Enlightened Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 18129,45211,137815,NULL,NULL,NULL,0,NULL,NULL 18130,3753129,863777,NULL,NULL,NULL,0,NULL,NULL 18131,886381,863777,NULL,NULL,NULL,0,NULL,NULL 18132,513413,419653,Necromancer Nice Answer Enlightened Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 18133,150236,1390831,Necromancer Scholar Popular Question,NULL,NULL,0,NULL,NULL 18134,1148270,248091,Student,NULL,NULL,0,NULL,NULL 18135,308250,666511,Teacher,NULL,NULL,0,NULL,NULL 18136,117272,970215,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 18137,113356,5171,Good Answer Notable Question Announcer Great Answer Good Answer Nice Answer Yearling Great Answer Popular Question Great Answer Custodian Great Answer Good Answer Popular Question ant Nice Answer Yearling Nice Answer Popular Question Caucus Good Answer Yearling Revival Good Answer Electorate Necromancer,NULL,NULL,0,NULL,NULL 18138,59571,190985,Nice Answer Enlightened Good Answer Notable Question ruby-on-rails Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 18139,3995412,190985,Nice Answer Enlightened Good Answer Notable Question ruby-on-rails Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 18140,191745,492899,NULL,NULL,NULL,0,NULL,NULL 18141,7776,1367033,NULL,NULL,NULL,0,NULL,NULL 18142,162335,224587,NULL,NULL,NULL,0,NULL,NULL 18143,149221,168619,NULL,NULL,NULL,0,NULL,NULL 18144,210989,201316,Critic Caucus Constituent,NULL,NULL,0,NULL,NULL 18145,147699,3161,Good Question Favorite Question Nice Question Yearling Necromancer Yearling Custodian Custodian Custodian Custodian Excavator Civic Duty Yearling,NULL,NULL,0,NULL,NULL 18146,404405,655650,Yearling Citizen Patrol Caucus Notable Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 18147,79812,937382,NULL,NULL,NULL,0,NULL,NULL 18148,187526,670444,Supporter,NULL,NULL,0,NULL,NULL 18149,5021092,854338,NULL,NULL,NULL,0,NULL,NULL 18150,674529,153154,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 18151,186141,81415,Famous Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 18152,314637,273409,NULL,NULL,NULL,0,NULL,NULL 18153,71996,128228,Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18154,1776666,232874,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18155,63494,689256,Critic,NULL,NULL,0,NULL,NULL 18156,183573,360798,Yearling Nice Answer Tumbleweed Popular Question Excavator Caucus,NULL,NULL,0,NULL,NULL 18157,264136,1063649,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18158,396669,128157,NULL,NULL,NULL,0,NULL,NULL 18159,256209,1055643,Nice Answer Great Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 18160,1182729,612383,NULL,NULL,NULL,0,NULL,NULL 18161,77474,612383,NULL,NULL,NULL,0,NULL,NULL 18162,608501,1472742,Custodian Famous Question Self-Learner Famous Question Yearling Revival Caucus Constituent,NULL,NULL,0,NULL,NULL 18163,444750,802204,Announcer,NULL,NULL,0,NULL,NULL 18164,571389,553121,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 18165,61473,278046,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18166,6634120,472259,Popular Question Popular Question Notable Question Nice Question Notable Question Famous Question Yearling Notable Question Notable Question Good Question Notable Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 18167,486126,661116,NULL,NULL,NULL,0,NULL,NULL 18168,2020396,356191,Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18169,7598388,356191,Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18170,415297,356191,Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18171,1152342,758389,NULL,NULL,NULL,0,NULL,NULL 18172,21243,208257,Popular Question Good Answer Popular Question Nice Answer Popular Question Good Answer Necromancer Nice Question Nice Answer Good Question Nice Question Nice Answer Famous Question Guru Good Question Yearling Nice Answer Popular Question Famous Question Good Answer Famous Question Good Answer Favorite Question Nice Question Nice Question Yearling Nice Answer Nice Answer Popular Question Famous Question Famous Question Famous Question Announcer Popular Question Great Question types Nice Answer Popular Question Nice Question list Yearling Popular Question,NULL,What is the Comonad typeclass in Haskell haskell typeclass comonad pWhat is the Comonad typeclass in Haskell As in Comonad from href http hackage haskell org packages archive comonad doc html Control Comonad html rel noreferrer Control Comonad in the comonad package explanations of any other packages that provide Comonad typeclass are also welcome ve vaguely heard about Comonad but all really know about it is that is provides codeextract gt code sort of parallel to Monad codereturn gt code ppBonus points for noting real life uses of Comonad in real code co loosely means flip the arrows Here rough visual of that Consider the monadic operations return flip bind Reverse the squiggly arrows and you get the comonadic operations extract extend extract extend,0,NULL,NULL 18173,106350,568091,Yearling Notable Question Popular Question Yearling Popular Question Yearling Necromancer Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 18174,2788,207321,Autobiographer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 18175,358492,941492,NULL,NULL,NULL,0,NULL,NULL 18176,428096,1104863,NULL,NULL,NULL,0,NULL,NULL 18177,90267,992397,NULL,NULL,NULL,0,NULL,NULL 18178,73064,136864,Informed,NULL,NULL,0,NULL,NULL 18179,80694,330386,Notable Question,NULL,NULL,0,NULL,NULL 18180,163684,124443,Notable Question Notable Question Good Question Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 18181,48596,1536138,NULL,NULL,NULL,0,NULL,NULL 18182,1288234,783788,NULL,NULL,NULL,0,NULL,NULL 18183,119953,61410,Yearling Popular Question Famous Question Nice Question Famous Question Nice Question Notable Question Nice Question Famous Question Popular Question Nice Question Notable Question Popular Question Proofreader Notable Question Caucus Popular Question Nice Question Famous Question Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Yearling Notable Question Good Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 18184,376897,261122,Guru Yearling Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Notable Question Popular Question Nice Question mysql Popular Question Yearling Census Nice Question Nice Question Popular Question Popular Question Fanatic Nice Answer Nice Answer Enlightened Notable Question Notable Question Documentation User Synonymizer Popular Question Yearling Good Answer Popular Question c Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18185,508263,652778,Popular Question,NULL,NULL,0,NULL,NULL 18186,34404,149846,NULL,NULL,NULL,0,NULL,NULL 18187,73130,583763,NULL,NULL,pWhile codegnuplot code is powerful it also really irritating when you just want to pipe in bunch of points and get graph ppThankfully someone created href http liris cnrs fr christian wolf software eplot index html eplot easy plot which handles all the nonsense for you ppIt doesn seem to have an option to force terminal graphs patched it like so ppre code eplot orig 2012 10 12 17 07 35 000000000 0700 eplot 2012 10 12 17 09 06 000000000 0700 377 377 print the options com echo getStyleString MiscOptions com com set multiplot if doMultiPlot com com set terminal dumb com com plot Range comString gnuplot persist printAndRun com convert to PDF code prepAn example of use ppre code gt git shortlog awk print eplot gt dev null 3500 tmp eplot20121012 19078 fw3txm 3000 2500 2000 1500 1000 500 10 15 20 25 30 35 40 code pre ve put fork of eplot up on github with the patch suggested in this thread and also added iTerm2 inline image display https github com dandavison eplot,0,NULL,NULL 18188,56763,53635,Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 18189,166812,910718,Popular Question Nice Answer Famous Question Great Answer Necromancer Nice Answer Yearling Good Answer Necromancer Nice Answer Necromancer Notable Question Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 18190,694309,1210793,Yearling Critic Necromancer Good Answer Yearling Announcer Autobiographer,NULL,NULL,0,NULL,NULL 18191,9571,118625,NULL,NULL,NULL,0,NULL,NULL 18192,373781,239357,NULL,NULL,NULL,0,NULL,NULL 18193,357485,238751,Popular Question Yearling Notable Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 18194,387783,243926,NULL,NULL,NULL,0,NULL,NULL 18195,15859,339277,NULL,NULL,NULL,0,NULL,NULL 18196,210664,695845,Nice Answer Editor Cleanup Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 18197,70932,550487,Census,NULL,NULL,0,NULL,NULL 18198,150417,1408316,Yearling Explainer Custodian Organizer Custodian Famous Question Yearling Civic Duty Documentation User Custodian Good Question Custodian Yearling Custodian Famous Question,NULL,NULL,0,NULL,NULL 18199,52259,245712,Popular Question Popular Question Supporter,NULL,NULL,0,NULL,NULL 18200,1326745,1200567,Autobiographer Informed Tumbleweed,NULL,NULL,0,NULL,NULL 18201,144242,992439,Teacher Notable Question Critic Yearling,NULL,NULL,0,NULL,NULL 18202,1124931,203999,Nice Answer,NULL,NULL,0,NULL,NULL 18203,318333,950011,NULL,NULL,NULL,0,NULL,NULL 18204,9877,387103,Curious Yearling android Nice Answer Enlightened Nice Answer Nice Answer Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 18205,10930,1255865,NULL,NULL,NULL,0,NULL,NULL 18206,181910,250241,Nice Answer Informed Good Answer Popular Question Yearling Revival Cleanup Notable Question Yearling Popular Question Good Answer Revival Documentation User Custodian Census Announcer Yearling,NULL,NULL,0,NULL,NULL 18207,30983,476239,Notable Question Nice Question Guru Yearling Necromancer,NULL,NULL,0,NULL,NULL 18208,588844,969764,NULL,NULL,NULL,0,NULL,NULL 18209,196839,328168,NULL,NULL,NULL,0,NULL,NULL 18210,25951,1042900,Critic Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18211,339270,1121400,NULL,NULL,NULL,0,NULL,NULL 18212,68817,497694,NULL,NULL,NULL,0,NULL,NULL 18213,1126832,598651,NULL,NULL,NULL,0,NULL,NULL 18214,139601,668929,java Notable Question Yearling Popular Question Famous Question Popular Question Notable Question Nice Question Nice Answer Necromancer Good Question Popular Question Proofreader Famous Question Yearling Notable Question Notable Question Good Question Popular Question Nice Answer Enlightened Census Revival Caucus Yearling Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18215,668305,891097,NULL,NULL,NULL,0,NULL,NULL 18216,188737,1139968,Popular Question Popular Question Peer Pressure Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 18217,52555,132856,Good Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18218,486090,969802,Student,NULL,NULL,0,NULL,NULL 18219,343828,636329,Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18220,67198,660724,NULL,NULL,NULL,0,NULL,NULL 18221,229967,681408,Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 18222,104314,505693,NULL,NULL,NULL,0,NULL,NULL 18223,191907,262531,NULL,NULL,NULL,0,NULL,NULL 18224,1131304,154491,NULL,NULL,NULL,0,NULL,NULL 18225,76371,306140,Necromancer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Yearling Nice Answer Great Answer Yearling Populist Guru,NULL,NULL,0,NULL,NULL 18226,162268,670542,Tumbleweed Yearling Revival Revival Popular Question Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 18227,30705,573769,Nice Answer Enlightened Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Good Question Enthusiast Popular Question Yearling Nice Answer Enlightened Popular Question Notable Question Famous Question Citizen Patrol Yearling Nice Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18228,106020,749310,Informed Autobiographer Enthusiast Teacher,NULL,NULL,0,NULL,NULL 18229,174054,1348596,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Nice Question Notable Question Custodian Notable Question Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Favorite Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Great Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Revival Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 18230,210915,52016,Yearling Yearling,NULL,NULL,0,NULL,NULL 18231,1056114,827027,Popular Question Commentator,NULL,NULL,0,NULL,NULL 18232,1515695,219187,Necromancer Nice Answer Revival Disciplined Necromancer Quorum c# Nice Answer Revival Notable Question Inquisitive Notable Question Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Popular Question Popular Question Caucus Nice Answer Enlightened Constituent Yearling Popular Question Popular Question Popular Question Revival Necromancer Necromancer Popular Question Revival Notable Question Nice Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Caucus Nice Answer Popular Question Announcer Notable Question Popular Question Yearling Popular Question Popular Question Necromancer Popular Question Nice Question Good Answer Taxonomist Revival architecture Good Answer Revival Popular Question Necromancer Popular Question Nice Answer Good Answer Nice Question Good Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 18233,154589,904824,NULL,NULL,NULL,0,NULL,NULL 18234,154051,1004609,Necromancer,NULL,NULL,0,NULL,NULL 18235,18912,334219,NULL,NULL,NULL,0,NULL,NULL 18236,6714,1011168,NULL,NULL,NULL,0,NULL,NULL 18237,452426,887894,Nice Question Popular Question Nice Answer Necromancer Guru Notable Question Curious Necromancer Good Question Nice Answer Nice Answer Yearling Civic Duty Necromancer Necromancer Famous Question Nice Answer Notable Question Necromancer Nice Answer Enlightened Yearling Great Answer Announcer Good Answer Documentation User Good Answer Guru Nice Answer Nice Answer Good Answer Yearling Popular Question Nice Question,NULL,pTo have the square elements in my RecyclerView provide simple wrapper for my root View element use the following codeSquareRelativeLayout code in place of codeRelativeLayout code ppre codepackage net simplyadvanced widget import android content Context import android util AttributeSet import android widget RelativeLayout RelativeLayout that will always be square same width and height where the height is based off the width public class SquareRelativeLayout extends RelativeLayout public SquareRelativeLayout Context context super context public SquareRelativeLayout Context context AttributeSet attrs super context attrs public SquareRelativeLayout Context context AttributeSet attrs int defStyleAttr super context attrs defStyleAttr VERSION CODES LOLLIPOP public SquareRelativeLayout Context context AttributeSet attrs int defStyleAttr int defStyleRes super context attrs defStyleAttr defStyleRes protected void onMeasure int widthMeasureSpec int heightMeasureSpec Set square layout super onMeasure widthMeasureSpec widthMeasureSpec code prepThen in my XML layout for the adapter ve just referenced the custom view as shown in the following Though you can do this programmatically also ppre code lt xml version encoding utf gt lt net simplyadvanced widget SquareRelativeLayout xmlns android http schemas android com apk res android android id id elementRootView android layout width wrap content android layout height wrap content gt lt More widgets here gt lt net simplyadvanced widget SquareRelativeLayout gt code prepNote Depending on which orientation your grid is then you may want to have the width based off of height codeGridLayoutManager HORIZONTAL code instead of the height being based off the width codeGridLayoutManager VERTICAL code You should be able to use any root view that you want The key is to override the onMeasure,0,NULL,NULL 18238,203104,1399549,NULL,NULL,NULL,0,NULL,NULL 18239,592448,71592,Notable Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 18240,38456,105514,Notable Question Organizer Electorate Custodian Famous Question Popular Question Popular Question Nice Answer Popular Question Popular Question Necromancer Notable Question Yearling Nice Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Necromancer Nice Answer Nice Question Notable Question Popular Question Good Answer Popular Question Popular Question Notable Question Great Question Popular Question Notable Question Yearling Nice Answer Favorite Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Good Question Custodian Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 18241,465983,506971,Popular Question Popular Question Good Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Custodian Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Socratic Notable Question Nice Answer Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question Notable Question Yearling Nice Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Notable Question Famous Question Nice Question Popular Question Popular Question Yearling,NULL,NULL,1,How to find next available file descriptor in Bash bash file descriptor subshell process substitution pHow can figure out if file descriptor is currently in use in Bash For example if have script that reads writes and closes fd ppre codeexec lt lt some command here cat lt amp 3exec gt amp code prepwhat the best way to ensure not interfering with some other purpose for the descriptor that may have been set before my script runs Do need to put my whole script in subshell,NULL 18242,696651,1291808,NULL,NULL,NULL,0,NULL,NULL 18243,213704,1302394,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 18244,6212453,1294859,NULL,NULL,NULL,0,NULL,NULL 18245,48773,1294859,NULL,NULL,NULL,0,NULL,NULL 18246,207187,381051,NULL,NULL,NULL,0,NULL,NULL 18247,207008,2997,Notable Question,NULL,NULL,0,NULL,NULL 18248,1653328,1066842,Notable Question,NULL,NULL,0,NULL,NULL 18249,895604,32778,NULL,NULL,NULL,0,NULL,NULL 18250,30981,328594,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 18251,113323,665252,Yearling Good Answer,NULL,NULL,0,NULL,NULL 18252,364779,1144632,Yearling Good Answer Announcer Good Answer Custodian Yearling Nice Answer Enlightened Nice Answer Enlightened Census Yearling Popular Question Announcer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 18253,167385,208307,NULL,NULL,NULL,0,NULL,NULL 18254,1021101,1274237,Commentator Caucus Announcer,NULL,NULL,0,NULL,NULL 18255,21085,1548971,NULL,NULL,NULL,0,NULL,NULL 18256,233235,379531,Supporter,NULL,NULL,0,NULL,NULL 18257,17426,876708,NULL,NULL,NULL,0,NULL,NULL 18258,443405,1382268,Yearling Good Answer Revival Yearling Notable Question Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 18259,18868,748746,Nice Answer Yearling Yearling Popular Question javascript Yearling,NULL,NULL,0,NULL,NULL 18260,1032882,661302,NULL,NULL,NULL,0,NULL,NULL 18261,3802298,342917,NULL,NULL,NULL,0,NULL,NULL 18262,82593,342917,NULL,NULL,NULL,0,NULL,NULL 18263,903414,1087060,NULL,NULL,NULL,0,NULL,NULL 18264,33181,18440,Yearling Nice Answer Popular Question Yearling Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18265,133390,933358,Nice Answer Enlightened Yearling Good Answer Good Answer Announcer Announcer Yearling Guru Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 18266,1946702,491385,Nice Answer Student,NULL,NULL,0,NULL,NULL 18267,300037,241135,Revival Necromancer Custodian Citizen Patrol Organizer Yearling Nice Answer Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 18268,74271,1260197,Informed Custodian,NULL,NULL,0,NULL,NULL 18269,962114,1091923,Editor,NULL,NULL,0,NULL,NULL 18270,303399,981825,NULL,NULL,NULL,0,NULL,NULL 18271,167895,164399,Enthusiast Census,NULL,NULL,0,NULL,NULL 18272,266186,223798,Nice Answer Nice Answer Enlightened Yearling Census Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18273,110145,669561,Notable Question Yearling Good Question Famous Question Famous Question Nice Question Famous Question Notable Question Nice Answer Nice Question Famous Question Yearling Good Answer angularjs Custodian Populist Notable Question Revival Notable Question Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18274,465933,1064067,Good Question Nice Answer Revival Nice Answer Notable Question core-data Caucus Yearling Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18275,771167,1357331,NULL,NULL,NULL,0,NULL,NULL 18276,177389,100262,Popular Question,NULL,NULL,0,NULL,NULL 18277,96216,799775,NULL,NULL,NULL,0,NULL,NULL 18278,65779,1234378,Nice Answer Critic Caucus,NULL,NULL,0,NULL,NULL 18279,1091399,878467,Curious Teacher Promoter Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 18280,252131,1235594,Famous Question Student,NULL,NULL,0,NULL,NULL 18281,475556,1288028,NULL,NULL,NULL,0,NULL,NULL 18282,140002,118470,NULL,NULL,NULL,0,NULL,NULL 18283,219868,963751,Popular Question,NULL,NULL,0,NULL,NULL 18284,3359163,1484099,Cleanup Yearling Notable Question Notable Question Yearling Popular Question Revival Taxonomist Yearling Popular Question,NULL,NULL,0,NULL,NULL 18285,559824,181939,NULL,NULL,NULL,0,NULL,NULL 18286,38298,834875,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18287,187790,573313,NULL,NULL,NULL,0,NULL,NULL 18288,19862,1139707,Necromancer Necromancer Yearling Commentator Caucus Announcer,NULL,NULL,0,NULL,NULL 18289,8818225,1493017,NULL,NULL,NULL,0,NULL,NULL 18290,259981,1493017,NULL,NULL,NULL,0,NULL,NULL 18291,503585,790630,NULL,NULL,NULL,0,NULL,NULL 18292,237779,1211750,NULL,NULL,NULL,0,NULL,NULL 18293,971977,757350,Popular Question Custodian Curious Tumbleweed Notable Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18294,231527,759340,Tumbleweed Scholar Revival Necromancer Student,NULL,NULL,0,NULL,NULL 18295,2160698,1062989,NULL,NULL,NULL,0,NULL,NULL 18296,83227,1062989,NULL,NULL,NULL,0,NULL,NULL 18297,32400,211960,Nice Answer Nice Answer Enlightened Organizer Guru python Mortarboard django Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Great Answer Good Answer Great Answer Yearling Nice Answer Guru Notable Question Nice Answer Notable Question Citizen Patrol django-models Nice Answer Enlightened Guru Nice Answer Enlightened Custodian Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 18298,290318,1056192,NULL,NULL,NULL,0,NULL,NULL 18299,84830,223267,Popular Question Custodian Nice Answer Enlightened Yearling Great Answer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 18300,88231,473719,NULL,NULL,NULL,0,NULL,NULL 18301,454801,632825,NULL,NULL,NULL,0,NULL,NULL 18302,282712,1003738,NULL,NULL,NULL,0,NULL,NULL 18303,1891615,232888,Necromancer Yearling Popular Question Nice Answer Enlightened Popular Question Caucus Necromancer Popular Question Yearling Nice Answer Popular Question Custodian Yearling Revival Popular Question Revival Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 18304,172409,403406,Custodian Custodian Organizer Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Caucus Notable Question Popular Question Notable Question Nice Answer Yearling Inquisitive Good Question Famous Question,NULL,NULL,0,NULL,NULL 18305,15475,1011995,Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Guru Good Answer arrays Nice Answer Nice Answer Enlightened Nice Answer Yearling Caucus Nice Answer Enlightened Constituent Good Answer linux Nice Answer Good Answer Enlightened Nice Answer Nice Answer Good Answer Guru Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Caucus algorithm Constituent Nice Answer Enlightened Nice Answer Great Answer Nice Answer Announcer Necromancer Nice Answer Announcer Yearling Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened math Nice Answer Enlightened Announcer Enlightened Good Answer Caucus Constituent Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Good Answer Announcer Nice Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru Good Answer Notable Question,NULL,pMultiplying the numbers in sequence ppre codefor in range ireturn code prepcreates large number as in tens of thousands of bits very quickly and then you have lot of multiplications of one huge number and one small number Multiplications where at least one of the factors is huge are slow ppYou can speed it up considerably by reducing the number of multiplications involving huge numbers for example ppre codedef range prod lo hi if lo lt hi mid hi lo return range prod lo mid range prod mid hi if lo hi return lo return lo hidef treefactorial if lt return return range prod code prepproduces timing the computation of code100000 100019 code first tried codelen str fun 100000 code but the conversion to string is abominably slow so that made the difference seem smaller than it is ppre code python factorial py 81430math factorial took 06193709373 seconds81430factorial took 84716391563 seconds81430treefactorial took 344486951828 seconds code prepso more than 10× speedup for code100000 code Sure don take any responsibility for errors in the code though Nor can claim any originality regarding the algorithm it old pMultiplying the numbers in sequence ppre codefor in range ireturn code prepcreates large number as in tens of thousands of bits very quickly and then you have lot of multiplications of one huge number and one small number Multiplications where at least one of the factors is huge are slow ppYou can speed it up considerably by reducing the number of multiplications involving huge numbers for example ppre codedef range prod lo hi if lo lt hi mid hi lo return range prod lo mid range prod mid hi if lo hi return lo return lo hidef treefactorial if lt return return range prod code prepproduces timing the computation of code100000 100019 code first tried codelen str fun 100000 code but the conversion to string is abominably slow so that made the difference seem smaller than it is ppre code python factorial py 81430math factorial took 06193709373 seconds81430factorial took 84716391563 seconds81430treefactorial took 344486951828 seconds code prepso more than 10× speedup for code100000 code That doesn make much difference in terms of the size of the intermediate products When tested long ago in Haskell couldn get that scheme to be faster than the above since the code becomes more complicated Do test it might buy you little but don expect too much from it pA simple trial division ppre codedef primes primfac while lt while primfac append supposing you want multiple factors repeated if gt primfac append return primfac code prepwith codeO sqrt code complexity worst case You can easily improve it by special casing and looping only over odd coded code or special casing more small primes and looping over fewer possible divisors The name of the function which comes from the OP may be misleading but its purpose is to give the prime factorisation of the argument not the list of primes up to the argument,0,NULL,NULL 18306,52628,531469,NULL,NULL,NULL,0,NULL,NULL 18307,620742,1175300,Student Notable Question,NULL,NULL,0,NULL,NULL 18308,945733,1068170,Good Answer Nice Answer Enlightened Nice Answer Enlightened Revival Revival Announcer Caucus Yearling Good Answer google-app-engine Caucus Custodian Documentation User Yearling Census Nice Answer Caucus Notable Question Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 18309,220318,95363,Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 18310,142803,657529,NULL,NULL,NULL,0,NULL,NULL 18311,1357003,692516,Informed,NULL,NULL,0,NULL,NULL 18312,161307,578930,Student,NULL,NULL,0,NULL,NULL 18313,290049,299182,NULL,NULL,NULL,0,NULL,NULL 18314,507064,42353,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer rust Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Civic Duty Pundit Nice Answer Enlightened macros Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Announcer Nice Answer Enlightened Disciplined Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Cleanup Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened traits Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Organizer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 18315,13709,600953,Yearling Great Answer Necromancer Nice Answer Necromancer Yearling Notable Question Nice Question Notable Question Nice Answer Enlightened Nice Question Inquisitive Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 18316,7539613,499820,NULL,NULL,NULL,0,NULL,NULL 18317,1602421,499820,NULL,NULL,NULL,0,NULL,NULL 18318,324119,899435,Necromancer,NULL,NULL,0,NULL,NULL 18319,24342,339701,Nice Answer Yearling Nice Answer Nice Answer Yearling Informed Custodian Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 18320,895201,617743,NULL,NULL,NULL,0,NULL,NULL 18321,455607,873526,NULL,NULL,NULL,0,NULL,NULL 18322,474351,1517818,Yearling Student Yearling Civic Duty Populist Popular Question Yearling Explainer,NULL,NULL,0,NULL,NULL 18323,10065,1356937,NULL,NULL,NULL,0,NULL,NULL 18324,3852,362110,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18325,1718203,1272771,NULL,NULL,NULL,0,NULL,NULL 18326,885230,93311,Notable Question Notable Question Informed Socratic Notable Question Notable Question Popular Question Suffrage Popular Question Famous Question Nice Question Yearling Popular Question Famous Question Popular Question Notable Question Favorite Question Famous Question Notable Question Favorite Question Famous Question Notable Question Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Great Question Nice Question Nice Question Good Question Good Question Popular Question Nice Question Notable Question Popular Question Nice Question Famous Question Vox Populi Notable Question Famous Question Nice Answer Enlightened Popular Question Notable Question Famous Question Nice Question Yearling Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Good Question Popular Question Documentation User Good Question Popular Question Popular Question Famous Question Popular Question Popular Question Revival Popular Question Favorite Question Nice Question Good Question Yearling Notable Question ruby-on-rails Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Popular Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 18327,139590,131912,Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18328,11235104,1066578,NULL,NULL,NULL,0,NULL,NULL 18329,345020,357580,Good Answer,NULL,NULL,0,NULL,NULL 18330,286681,860120,Citizen Patrol Yearling Quorum Caucus Yearling Nice Answer Nice Answer Enlightened Yearling Custodian Tenacious Yearling Enthusiast Census Custodian Good Answer Fanatic Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 18331,51397,835290,Notable Question Teacher,NULL,NULL,0,NULL,NULL 18332,2064,63678,Nice Answer Yearling Famous Question Great Answer Yearling Guru Nice Answer Necromancer Announcer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18333,71366,1386452,NULL,NULL,NULL,0,NULL,NULL 18334,254817,706806,NULL,NULL,NULL,0,NULL,NULL 18335,112253,142879,Famous Question Famous Question Good Question Notable Question Yearling Good Answer Famous Question Necromancer Famous Question Nice Question Good Question Good Question Yearling Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 18336,409378,1225758,Teacher Supporter Curious,NULL,NULL,0,NULL,NULL 18337,473343,1543422,NULL,NULL,NULL,0,NULL,NULL 18338,6990,766230,NULL,NULL,NULL,0,NULL,NULL 18339,13023,1090839,titanium Nice Answer Curious Caucus Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer reactjs celery Nice Answer Enlightened Documentation User Yearling Nice Answer Enlightened python Good Answer,NULL,NULL,0,NULL,NULL 18340,4110499,650443,Revival Nice Answer Nice Question Popular Question Revival Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 18341,1483107,592935,NULL,NULL,NULL,0,NULL,NULL 18342,14637,981189,NULL,NULL,NULL,0,NULL,NULL 18343,200828,587502,NULL,NULL,NULL,0,NULL,NULL 18344,14024,446855,NULL,NULL,NULL,0,NULL,NULL 18345,106599,114359,Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 18346,414727,1231669,NULL,NULL,NULL,0,NULL,NULL 18347,62142,659816,Yearling Popular Question Self-Learner Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 18348,96981,717587,NULL,NULL,NULL,0,NULL,NULL 18349,352075,381166,Famous Question Famous Question Nice Question Self-Learner Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 18350,666497,826532,Notable Question Nice Question Notable Question Yearling Necromancer Nice Question Nice Answer Enlightened Good Answer Good Answer Good Answer Caucus Notable Question Nice Answer Enlightened Nice Question Popular Question Nice Answer Enlightened Yearling Famous Question Popular Question Documentation User Populist Notable Question Notable Question Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18351,971778,113252,Famous Question Yearling Nice Answer Good Answer Caucus Constituent Custodian Nice Answer Enlightened Custodian Yearling Popular Question Revival Guru Popular Question Caucus Constituent Yearling Popular Question Revival Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18352,828813,921573,Critic Announcer Necromancer Good Answer Notable Question Yearling Popular Question Notable Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 18353,194550,1093095,NULL,NULL,NULL,0,NULL,NULL 18354,616413,108918,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18355,54923,576676,Commentator Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18356,1026704,1299267,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 18357,41827,110014,NULL,NULL,NULL,0,NULL,NULL 18358,10284,1560482,Teacher,NULL,NULL,0,NULL,NULL 18359,7070333,863551,NULL,NULL,NULL,0,NULL,NULL 18360,660993,349337,NULL,NULL,NULL,0,NULL,NULL 18361,267845,1141357,NULL,NULL,NULL,0,NULL,NULL 18362,635307,259256,Tumbleweed,NULL,NULL,0,NULL,NULL 18363,328067,203416,Yearling Critic Notable Question,NULL,NULL,0,NULL,NULL 18364,885357,1354981,NULL,NULL,NULL,0,NULL,NULL 18365,233093,416900,Guru Fanatic Custodian Yearling javascript Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18366,83232,2273,Good Question Nice Answer Nice Question Good Answer Yearling Great Answer Nice Question Famous Question jquery Yearling Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 18367,123964,517586,NULL,NULL,NULL,0,NULL,NULL 18368,152814,211722,Revival,NULL,NULL,0,NULL,NULL 18369,1371503,1486470,Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 18370,328780,673960,NULL,NULL,NULL,0,NULL,NULL 18371,1205233,183771,Yearling Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 18372,846840,1184401,NULL,NULL,NULL,0,NULL,NULL 18373,232134,81202,Yearling Nice Answer Caucus Custodian Census Yearling Custodian Good Answer Caucus Explainer Constituent Documentation User Custodian Custodian Excavator Census Yearling Proofreader Necromancer Necromancer Famous Question,NULL,NULL,0,NULL,NULL 18374,283159,797516,Critic Yearling,NULL,NULL,0,NULL,NULL 18375,1351791,1418831,NULL,NULL,NULL,0,NULL,NULL 18376,726481,419727,Notable Question,NULL,NULL,0,NULL,NULL 18377,629113,278708,Notable Question,NULL,NULL,0,NULL,NULL 18378,456048,1292378,Tenacious Yearling Notable Question Unsung Hero Yearling Famous Question Notable Question Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 18379,1239993,661673,NULL,NULL,NULL,0,NULL,NULL 18380,328797,505086,NULL,NULL,NULL,0,NULL,NULL 18381,13354,20321,Popular Question Good Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 18382,2316,18998,NULL,NULL,NULL,0,NULL,NULL 18383,1685224,1343197,NULL,NULL,NULL,0,NULL,NULL 18384,87054,309616,Notable Question Teacher Notable Question Famous Question Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 18385,99197,545827,NULL,NULL,NULL,0,NULL,NULL 18386,7621,272747,Popular Question Census Caucus,NULL,NULL,0,NULL,NULL 18387,43886,472150,Informed Editor Tumbleweed Critic Supporter Commentator Enthusiast Yearling Popular Question Nice Answer Yearling Good Answer Yearling Guru Yearling Caucus Yearling Yearling Popular Question Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 18388,74327,539151,NULL,NULL,NULL,0,NULL,NULL 18389,5195,5707,NULL,NULL,NULL,0,NULL,NULL 18390,2166951,1387891,Teacher,NULL,NULL,0,NULL,NULL 18391,381835,687454,NULL,NULL,NULL,0,NULL,NULL 18392,10035,252629,NULL,NULL,NULL,0,NULL,NULL 18393,317935,392793,Guru Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 18394,4614338,237117,Curious,NULL,NULL,0,NULL,NULL 18395,12688,105570,Popular Question Good Answer Nice Answer Good Answer Nice Answer collections Great Question Guru Nice Answer Nice Question Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Good Question Good Answer Great Answer Nice Question Popular Question Good Question Famous Question Nice Answer Enlightened Good Question Popular Question Popular Question Great Answer Notable Question Guru Guru Nice Answer Popular Question Popular Question Nice Answer Guru Good Answer Yearling Nice Answer Good Answer Good Question Good Answer Nice Answer Enlightened Popular Question Good Answer Guru Nice Answer Nice Answer Favorite Question Notable Question Favorite Question Guru Nice Answer Nice Question Notable Question Famous Question Good Question Notable Question Famous Question Popular Question Nice Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Guru Favorite Question Guru Enlightened Nice Answer Guru Good Answer Famous Question Good Answer Nice Answer Good Question Nice Question Guru Popular Question Good Answer Nice Answer Nice Answer Famous Question Popular Question Nice Answer Popular Question Popular Question Nice Question Great Question Generalist Famous Question Nice Answer Favorite Question Notable Question Yearling Nice Answer Notable Question Popular Question Popular Question Nice Answer Nice Answer Famous Question Nice Answer Enlightened Popular Question Nice Question Great Answer Announcer Guru Notable Question Popular Question Nice Answer Famous Question Nice Answer Popular Question Guru Good Answer regex Nice Answer Populist Popular Question Popular Question Notable Question Announcer Nice Answer Famous Question Good Answer Guru Guru Good Answer Guru Popular Question Nice Answer Nice Answer Notable Question Nice Question Famous Question Notable Question Yearling Good Answer Popular Question Good Answer Nice Answer Enlightened Good Question Nice Answer Nice Answer Notable Question Famous Question Notable Question Good Question Electorate Good Answer Guru Popular Question Notable Question javascript Famous Question Notable Question Good Answer Good Question Revival Popular Question,NULL,NULL,0,NULL,NULL 18396,1582645,850264,Yearling Popular Question Yearling Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 18397,135578,928951,NULL,NULL,NULL,0,NULL,NULL 18398,1565737,1188475,Notable Question Teacher Popular Question Tumbleweed Curious Popular Question,NULL,NULL,0,NULL,NULL 18399,1940404,1112776,NULL,NULL,NULL,0,NULL,NULL 18400,474654,803459,NULL,NULL,NULL,0,NULL,NULL 18401,60469,203174,Great Answer Yearling Caucus Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 18402,1337667,873652,Notable Question,NULL,NULL,0,NULL,NULL 18403,8889374,906533,NULL,NULL,NULL,0,NULL,NULL 18404,151945,906533,NULL,NULL,NULL,0,NULL,NULL 18405,1209574,1211372,Yearling Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Yearling Nice Answer Enlightened Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 18406,94864,175525,Yearling Famous Question Yearling Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 18407,55275,786635,Revival Revival Yearling Mortarboard Yearling Commentator Critic Custodian Necromancer,NULL,NULL,0,NULL,NULL 18408,714357,1016199,Caucus Documentation User Nice Answer Enlightened Census Yearling Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 18409,315208,212389,Necromancer Yearling Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 18410,169602,467035,NULL,NULL,NULL,0,NULL,NULL 18411,1639270,875798,Popular Question,NULL,NULL,0,NULL,NULL 18412,131927,124704,Nice Answer Notable Question Nice Answer Yearling Famous Question Good Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18413,409368,608668,Custodian,NULL,NULL,0,NULL,NULL 18414,8484109,1096526,Popular Question Scholar Editor Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 18415,441507,1096526,Popular Question Scholar Editor Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 18416,905964,61530,Yearling Popular Question Yearling Good Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 18417,14298,707394,NULL,NULL,NULL,0,NULL,NULL 18418,3029,699953,NULL,NULL,NULL,0,NULL,NULL 18419,3233,1004786,NULL,NULL,NULL,0,NULL,NULL 18420,98032,1030717,Necromancer Civic Duty Famous Question Yearling Nice Question Yearling Nice Answer Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 18421,3055761,1030717,Necromancer Civic Duty Famous Question Yearling Nice Question Yearling Nice Answer Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 18422,402270,431528,Yearling Good Question Popular Question Notable Question Custodian Yearling Announcer Investor Popular Question Announcer Notable Question Good Question Popular Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 18423,1172269,1448733,Commentator Caucus Enthusiast Critic,NULL,NULL,0,NULL,NULL 18424,1569480,1287046,NULL,NULL,NULL,0,NULL,NULL 18425,210301,1249926,NULL,NULL,NULL,0,NULL,NULL 18426,751446,847698,NULL,NULL,NULL,0,NULL,NULL 18427,200597,514801,NULL,NULL,NULL,0,NULL,NULL 18428,370621,954536,NULL,NULL,NULL,0,NULL,NULL 18429,589930,34553,Popular Question Nice Question Famous Question Revival Good Answer Popular Question Yearling Nice Answer Caucus Notable Question Inquisitive Informed Disciplined Nice Answer Nice Question Census Necromancer Pundit Nice Question Yearling Popular Question Notable Question java Notable Question Nice Question Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 18430,39190,314042,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18431,478637,229371,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18432,399595,881135,NULL,NULL,NULL,0,NULL,NULL 18433,140885,776336,Notable Question,NULL,NULL,0,NULL,NULL 18434,531081,335019,Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 18435,283200,715524,NULL,NULL,NULL,0,NULL,NULL 18436,1161614,627401,NULL,NULL,NULL,0,NULL,NULL 18437,342903,53249,NULL,NULL,NULL,0,NULL,NULL 18438,8004,621486,NULL,NULL,NULL,0,NULL,NULL 18439,12808,437346,Popular Question Notable Question Yearling Nice Answer Caucus Constituent Popular Question Popular Question Nice Answer Yearling Taxonomist Popular Question Notable Question Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 18440,19368,24684,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18441,3328262,24684,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18442,41016,747551,NULL,NULL,NULL,0,NULL,NULL 18443,255699,1190233,NULL,NULL,NULL,0,NULL,NULL 18444,17869,823500,NULL,NULL,NULL,0,NULL,NULL 18445,161279,964845,NULL,NULL,NULL,0,NULL,NULL 18446,436618,616974,Yearling Civic Duty Popular Question Yearling Notable Question Self-Learner Caucus Popular Question Necromancer Yearling Tumbleweed Necromancer Nice Answer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 18447,62413,582252,NULL,NULL,NULL,0,NULL,NULL 18448,320505,945399,NULL,NULL,NULL,0,NULL,NULL 18449,227093,285421,Notable Question,NULL,NULL,0,NULL,NULL 18450,1049304,1304881,NULL,NULL,NULL,0,NULL,NULL 18451,576608,656158,NULL,NULL,NULL,0,NULL,NULL 18452,3914805,904813,NULL,NULL,NULL,0,NULL,NULL 18453,71296,284485,Popular Question,NULL,NULL,0,NULL,NULL 18454,648004,258992,NULL,NULL,NULL,0,NULL,NULL 18455,399862,1268185,NULL,NULL,NULL,0,NULL,NULL 18456,6230251,791812,NULL,NULL,NULL,0,NULL,NULL 18457,12528,791812,NULL,NULL,NULL,0,NULL,NULL 18458,2407912,225211,Nice Answer Enlightened Nice Answer Good Answer Good Answer Notable Question Good Question Yearling Popular Question Famous Question Famous Question Good Answer Necromancer Yearling Autobiographer Good Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18459,13957,225211,Nice Answer Enlightened Nice Answer Good Answer Good Answer Notable Question Good Question Yearling Popular Question Famous Question Famous Question Good Answer Necromancer Yearling Autobiographer Good Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18460,21438,225211,Nice Answer Enlightened Nice Answer Good Answer Good Answer Notable Question Good Question Yearling Popular Question Famous Question Famous Question Good Answer Necromancer Yearling Autobiographer Good Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18461,97472,225211,Nice Answer Enlightened Nice Answer Good Answer Good Answer Notable Question Good Question Yearling Popular Question Famous Question Famous Question Good Answer Necromancer Yearling Autobiographer Good Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18462,186643,500958,Popular Question,NULL,NULL,0,NULL,NULL 18463,695549,864448,NULL,NULL,NULL,0,NULL,NULL 18464,427900,864448,NULL,NULL,NULL,0,NULL,NULL 18465,71610,1358541,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 18466,3200252,1013107,NULL,NULL,NULL,0,NULL,NULL 18467,1041822,1221890,Popular Question,NULL,NULL,0,NULL,NULL 18468,106737,519983,NULL,NULL,NULL,0,NULL,NULL 18469,122952,1317207,Popular Question Good Question Yearling Notable Question Popular Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 18470,208051,316602,Yearling Famous Question Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 18471,4927906,535502,NULL,NULL,NULL,0,NULL,NULL 18472,162762,535502,NULL,NULL,NULL,0,NULL,NULL 18473,183263,322598,NULL,NULL,NULL,0,NULL,NULL 18474,210514,534576,NULL,NULL,NULL,0,NULL,NULL 18475,222987,825325,Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 18476,254820,217858,Yearling Nice Question,NULL,NULL,0,NULL,NULL 18477,1003137,26677,Yearling,NULL,NULL,0,NULL,NULL 18478,495676,960058,NULL,NULL,NULL,0,NULL,NULL 18479,106416,622048,NULL,NULL,NULL,0,NULL,NULL 18480,465667,1091639,NULL,NULL,NULL,0,NULL,NULL 18481,1498816,1260249,NULL,NULL,NULL,0,NULL,NULL 18482,128621,515522,NULL,NULL,NULL,0,NULL,NULL 18483,325492,1365931,Popular Question,NULL,NULL,0,NULL,NULL 18484,164769,415286,Good Question Good Question Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Notable Question Notable Question Yearling Nice Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 18485,55295,69207,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18486,5659,481385,NULL,NULL,NULL,0,NULL,NULL 18487,4354,125305,Informed Announcer,NULL,NULL,0,NULL,NULL 18488,13650,266712,Caucus Constituent Announcer Yearling Great Question Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 18489,607488,615878,NULL,NULL,NULL,0,NULL,NULL 18490,1022814,1064278,NULL,NULL,NULL,0,NULL,NULL 18491,2763940,111874,Nice Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 18492,20137,93747,Revival Custodian Necromancer Nice Answer Enlightened Guru c Yearling Guru Good Answer Nice Answer Enlightened curl ssl Nice Answer Necromancer Documentation Pioneer Strunk & White c++ Good Answer Revival Nice Answer Enlightened Good Answer Necromancer Announcer cookies Announcer http Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Great Answer Announcer Announcer Yearling Announcer Populist Announcer linux Nice Answer Enlightened libcurl Announcer Announcer Announcer Good Answer Revival Announcer Nice Answer Nice Answer Good Answer Announcer Nice Answer Enlightened http2 Necromancer Guru Documentation User Announcer Nice Answer Announcer Fanatic Good Answer Nice Answer Enlightened Announcer Census Revival Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Great Answer Good Answer Announcer Nice Answer Enlightened Revival Nice Answer Enlightened Announcer Revival Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Enlightened Good Answer Announcer,NULL,NULL,0,NULL,NULL 18493,148762,1169321,NULL,NULL,NULL,0,NULL,NULL 18494,152782,266783,Notable Question,NULL,NULL,0,NULL,NULL 18495,23617,1448074,Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 18496,242993,1392963,NULL,NULL,NULL,0,NULL,NULL 18497,47212,867051,NULL,NULL,NULL,0,NULL,NULL 18498,292222,243263,Yearling Nice Answer Popular Question Nice Question Nice Answer Critic Notable Question Popular Question Yearling Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 18499,1356429,1309009,NULL,NULL,NULL,0,NULL,NULL 18500,303154,1309009,NULL,NULL,NULL,0,NULL,NULL 18501,606815,496170,NULL,NULL,NULL,0,NULL,NULL 18502,59450,135892,Civic Duty Nice Question Nice Answer Yearling Great Answer Yearling Necromancer Notable Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18503,678,125884,Notable Question Yearling Good Question Nice Answer,NULL,NULL,0,NULL,NULL 18504,416794,1237423,NULL,NULL,NULL,0,NULL,NULL 18505,1265381,1325294,NULL,NULL,NULL,0,NULL,NULL 18506,11505,1049688,Nice Question Famous Question Critic Favorite Question Yearling Good Question Caucus Great Question Yearling Popular Question Benefactor Notable Question Popular Question Favorite Question Yearling Caucus Notable Question Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 18507,4349,714009,Nice Answer Enlightened Yearling Nice Question Nice Answer Enlightened Notable Question Famous Question Nice Answer Yearling Nice Answer Enlightened Revival Good Answer Caucus Pundit Announcer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 18508,175860,936812,Critic Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 18509,413908,252252,Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 18510,72423,269872,NULL,NULL,NULL,0,NULL,NULL 18511,494136,227911,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 18512,185768,393718,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18513,1570406,1085507,NULL,NULL,NULL,0,NULL,NULL 18514,245119,545347,Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18515,1042047,833893,Notable Question Popular Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 18516,7186,269803,Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18517,115117,1518336,Yearling Notable Question Commentator Yearling Editor Citizen Patrol Custodian Yearling Yearling Yearling Tenacious Enthusiast Organizer Custodian Custodian Custodian ruby-on-rails Yearling Custodian Nice Answer,NULL,NULL,1,NULL,How to set screen size for chrome headless system test in rails ruby on rails rspec rails google chrome headless pIn order to work with and test new responsive frontend for my site trying to use Rails new system tests specs with javascript and Chrome headless cannot figure out way to set the screen size of the browser in the spec though ppHere my setup in codespec rails helper rb code ppre codeconfig before each type system js true do driven by selenium chrome headless screen size 1900 800 end code prepI then create the screenshot with ppre codepage driver save screenshot the uri code prepBut the size of the rendered screenshot still is the default which is much smaller Ideally like to see the entire rendered page but at this point be happy with just using the dimensions ve provided ppIdeas on what missing here pYou simply need to redefine the driver which passes the headless and screen size arguments ppre codeCapybara register driver selenium chrome headless do app options Selenium WebDriver Chrome Options new headless window size 1280x1280 disable gpu https developers google com web updates 2017 04 headless chrome each arg options add argument arg Capybara Selenium Driver new app browser chrome options options endRSpec configure do config config before each type system js true do driven by selenium chrome headless endend code pre 18518,490240,128397,Nice Answer Necromancer Popular Question Great Answer Nice Answer Enlightened Yearling Nice Answer Necromancer Nice Answer Enlightened Nice Answer Nice Question Excavator Guru Nice Answer Census Necromancer Good Answer java Good Answer Nice Answer Nice Answer Good Answer Generalist Nice Answer Good Answer Nice Answer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Fanatic Good Answer Nice Answer Nice Answer Nice Question Good Answer Census Good Answer Good Answer Benefactor c# Yearling Deputy Notable Question Nice Answer Good Answer Guru Great Answer Good Answer Nice Answer,NULL,pPython codedict code class is an implementation of what the Python documentation informally calls href http docs python org library stdtypes html mapping types dict rel noreferrer mapping types Internally codedict code is implemented using hashtable ppJava href http java sun com javase docs api java util HashMap html rel noreferrer codeHashMap code class is an implementation of the href http java sun com javase docs api java util Map html rel noreferrer codeMap code interface Internally codeHashMap code is implemented using hashtable ppThere are few minor differences in syntax and believe the implementations are tuned slightly differently but overall they are completely interchangeable What kind of example would you want pPython codedict code class is an implementation of what the Python documentation informally calls href http docs python org library stdtypes html mapping types dict rel noreferrer mapping types Internally codedict code is implemented using hashtable ppJava href http java sun com javase docs api java util HashMap html rel noreferrer codeHashMap code class is an implementation of the href http java sun com javase docs api java util Map html rel noreferrer codeMap code interface Internally codeHashMap code is implemented using hashtable ppThere are few minor differences in syntax and believe the implementations are tuned slightly differently but overall they are completely interchangeable don think that right The question doesn ask what is the equivalent Java code for some specific Python code In fact the question doesn contain any code at all not sure what the value would be of adding examples of using the Map API in Java this answer already links to the canonical documentation If you want to learn Java start with tutorial not Stack Overflow certainly don think this answer warrants downvote just because it lacks copy pasteable code sample pI think lot of times people get confused about the difference between emdependency injection em and dependency injection emframework em or emcontainer em as it is often called ppDependency injection is very simple concept Instead of this code ppre class lang cs prettyprint override codepublic class private public this new depends on public void DoSomeStuff Do something with here public static void Main string args new DoSomeStuff code prepyou write code like this ppre class lang cs prettyprint override codepublic class private public now takes its dependencies as arguments this look ma no new public void DoSomeStuff Do something with here public static void Main string args new is constructed here instead new DoSomeStuff code prep strongAnd that it strong Seriously This gives you ton of advantages Two important ones are the ability to control functionality from central place the codeMain code function instead of spreading it throughout your program and the ability to more easily test each class in isolation because you can pass mocks or other faked objects into its constructor instead of real value ppThe drawback of course is that you now have one mega function that knows about all the classes used by your program That what DI frameworks can help with But if you re having trouble understanding why this approach is valuable recommend starting with manual dependency injection first so you can better appreciate what the various frameworks out there can do for you Note to not going to revert your edit but specifically using syntax highlighting was not necessary for this answer The code is intentionally written to be nearly as language agnostic as possible with tiny tweak it would compile as Java as well The answer isn about it about dependency injection in general and the concepts are not specific,0,NULL,NULL 18519,796530,914003,Informed Autobiographer,NULL,NULL,0,NULL,NULL 18520,5430,1024637,Good Answer Yearling Nice Answer Nice Answer Great Answer Yearling Nice Answer Enlightened Populist Guru Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18521,140128,1249950,Guru Yearling Caucus Constituent Yearling Nice Answer Caucus Constituent Good Answer Nice Answer Enlightened Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 18522,398483,104349,Nice Answer django-admin Nice Answer Enlightened Guru Nice Answer Enlightened flask Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Enlightened filter Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru django-south static Nice Answer Enlightened Populist Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Enlightened Yearling json Good Answer Guru django-class-based-views Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Favorite Question Guru linux Nice Answer Enlightened debugging Nice Answer Nice Answer Enlightened Good Answer Reviewer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer sqlite sqlite Nice Answer pip Nice Answer models Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened modelform Nice Answer Enlightened sqlite3 Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Nice Answer Great Answer Good Answer Guru Caucus Nice Answer Nice Answer mod-wsgi dictionary get Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened google-cloud-datastore Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened import Great Answer python-3.x Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Census Good Answer Nice Answer Nice Answer Good Answer heroku Nice Answer Enlightened Custodian Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer javascript Nice Answer Enlightened http Guru Nice Answer Yearling django-rest-framework Nice Answer Enlightened Nice Answer Good Answer gunicorn Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer django-views Nice Answer Enlightened python-requests Good Answer Guru Good Answer Good Answer Great Answer Nice Answer Enlightened celery Caucus ajax Good Answer Nice Answer Enlightened django-users Nice Answer Enlightened Good Answer Notable Question Good Answer Nice Answer Guru Nice Answer Good Answer Great Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Populist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Great Answer mysql Nice Answer Enlightened Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Nice Answer Good Answer Census Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened csv Nice Answer Enlightened login Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Guru Good Answer Nice Answer caching Good Answer Nice Answer Caucus Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru nginx Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Guru Nice Answer unit-testing Guru Guru Guru Nice Answer Good Answer Nice Answer Guru templates Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Good Answer Good Answer Nice Answer Populist Good Answer Guru Nice Answer Enlightened python-import Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Guru Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer,NULL,pThe answer by Ber storing it in threadlocals is very bad idea There absolutely no reason to do it this way ppA much better way is to override the form code init code method to take an extra keyword argument coderequest code This stores the request in the emform em where it required and from where you can access it in your clean method ppre codeclass MyForm forms Form def init self args kwargs self request kwargs pop request None super MyForm self init args kwargs def clean self access the request object via self request code prepand in your view ppre codemyform MyForm request POST request request code pre you need to pass that kwarg in the view as show in the second snippet pThere is href https docs djangoproject com en dev ref templates builtins slice rel noreferrer codeslice code filter that you can use in templates This works exactly the same as slicing within the view ppre code for new in news slice 10 code pre It literally linked from my answer above,1,NULL,TypeError login takes positional argument but were given django django authentication pi have written login view using buid in auth django auth login gives above error my code with error code 500 ppre codefrom rest framework response import Responsefrom rest framework import statusfrom rest framework decorators import api viewfrom django contrib auth models import Userfrom django contrib auth import authenticate logout login POST def register request user User objects create user username request POST username email request POST email password request POST password return Response ok True status status HTTP 201 CREATED POST def login request user authenticate username request POST username password request POST password if user is not None login request user return Response ok True status status HTTP 200 OK else return Response ok False status status HTTP 401 UNAUTHORIZED code pre pYour view has the same name as the auth login function so it is hiding it Change the view name or import the function under different name eg codefrom django contrib auth import login as auth login code 18523,1139348,396186,Popular Question,NULL,NULL,0,NULL,NULL 18524,338420,188715,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18525,344384,765839,NULL,NULL,NULL,0,NULL,NULL 18526,436739,1441151,Autobiographer,NULL,NULL,0,NULL,NULL 18527,81290,233902,Commentator Announcer Announcer Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 18528,3098321,233902,Commentator Announcer Announcer Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 18529,895160,440848,Supporter,NULL,NULL,0,NULL,NULL 18530,1553932,1361881,NULL,NULL,NULL,0,NULL,NULL 18531,428014,1311883,NULL,NULL,NULL,0,NULL,NULL 18532,265938,625666,Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18533,251864,262956,Popular Question Good Question Popular Question Great Answer Popular Question Nice Answer Enlightened Yearling Popular Question Nice Question Civic Duty Nice Answer Popular Question Nice Answer Enlightened Yearling Notable Question Good Question Nice Answer Enlightened Popular Question Famous Question Custodian Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 18534,246466,791604,Nice Answer Enlightened Nice Answer Good Answer recursion Nice Answer Nice Answer Nice Answer Enlightened Popular Question Yearling Popular Question ghci monad-transformers Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Caucus Good Answer Booster Nice Answer Enlightened Revival Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Tumbleweed Nice Answer Booster Nice Answer Strunk & White Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Question Caucus Good Answer performance Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Custodian Populist Great Answer Announcer lazy-evaluation Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened types Nice Answer Guru Notable Question Necromancer Nice Answer pattern-matching Announcer Populist Nice Answer Enlightened Guru Revival Necromancer functional-programming Caucus Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Popular Question Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Announcer Announcer Nice Answer Enlightened Good Answer io Nice Question Announcer Announcer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer monads Nice Answer Guru Announcer Announcer Nice Answer,NULL,pThe answer to your question as stated is to simply move codetake code into the definition of codegeneratePrimes code thus ppre codegeneratePrimes Integral gt Int gt generatePrimes take lt isPrime code prepIf it is important that you keep the exact same type signature as in the question you may use the more polymorphic version of codetake code available in codeData List code ppre codeimport Data ListgeneratePrimes Integral gt gt generatePrimes genericTake lt isPrime code prep Indeed this implementation has the even more general type codegeneratePrimes Integral Integral gt gt code ppHowever this is href https stackoverflow com 7868790 791604 anti modular in the presence of lazy evaluation you should leave control over how much of the list is consumed to the consumer rather than the producer Ah You may use Data List genericTake instead of take or change the type signature will update my answer shortly pWhenever possible reuse library code ppre codeimport Data MapsortAndGroup assocs fromListWith lt assocs code prepTry it out in ghci ppre code Main gt sortAndGroup aa cc aa ff gg bb fromList bb cc aa aa gg ff code pre It shouldn be no converting to list is very cheap and prepending singleton lists is cheap If it turns out that this is appending singleton lists instead it easy to fix just use fromListWith flip instead of fromListWith pWhenever possible reuse library code ppre codeimport Data MapsortAndGroup assocs fromListWith lt assocs code prepTry it out in ghci ppre code Main gt sortAndGroup aa cc aa ff gg bb fromList bb cc aa aa gg ff code pre Compare the performance of fromListWith 10000 with the performance of fromListWith flip 10000 Spoilers is the right one not flip pWhenever possible reuse library code ppre codeimport Data MapsortAndGroup assocs fromListWith lt assocs code prepTry it out in ghci ppre code Main gt sortAndGroup aa cc aa ff gg bb fromList bb cc aa aa gg ff code pre Sorry can be held accountable for your feelings If you have an objective reason to dislike this solution be happy to discuss it potential mitigations and their tradeoffs pWhenever possible reuse library code ppre codeimport Data MapsortAndGroup assocs fromListWith lt assocs code prepTry it out in ghci ppre code Main gt sortAndGroup aa cc aa ff gg bb fromList bb cc aa aa gg ff code pre Read the source of course http hackage haskell org package containers 10 docs src Data Map Internal html fromListWith,1,What special about 787 haskell integer arithmetic pIn ghci using the href http hackage haskell org package arithmoi rel noreferrer arithmoi package ppre codeMath NumberTheory Powers General gt set sMath NumberTheory Powers General gt integerRoot 786 10 32 786 100000000000000000000000000000000 04 secs 227 064 bytes Math NumberTheory Powers General gt integerRoot 787 10 32 787 code prepAfter five minutes it still hasn responded Why is it taking so long pp From some ad hoc testing it appears to be slow for all choices larger than 787 and fast for all choices smaller,Generate First Primes Haskell list haskell primes lazy evaluation counting pI have this function ppre codegeneratePrimes Integral gt gt generatePrimes lt isPrime code prepI am trying to get the first emn em primes know that can call the function in codemain code by using the codetake code function and get the first emn em elements of the list but want to be able to have the function stop when it reaches emn em primes inside the function so that when it is called in codemain code such as ppre codegeneratePrimes code prepit will display list with only the first primes pThe answer to your question as stated is to simply move codetake code into the definition of codegeneratePrimes code thus ppre codegeneratePrimes Integral gt Int gt generatePrimes take lt isPrime code prepIf it is important that you keep the exact same type signature as in the question you may use the more polymorphic version of codetake code available in codeData List code ppre codeimport Data ListgeneratePrimes Integral gt gt generatePrimes genericTake lt isPrime code prep Indeed this implementation has the even more general type codegeneratePrimes Integral Integral gt gt code ppHowever this is href https stackoverflow com 7868790 791604 anti modular in the presence of lazy evaluation you should leave control over how much of the list is consumed to the consumer rather than the producer GADT Is there reason why the weakest or strongest type is not chosen haskell types type inference gadt pI reading href http www cs ox ac uk ralf hinze publications With pdf rel nofollow noreferrer Fun With Phantom Types The first exercise asks why it is necessary to provide signature to functions operating on Phantom Types While cannot come up with general reason do see problem in the following example ppre codedata Expr where Int gt Expr Int Bool gt Expr Bool Add Expr Int gt Expr Int gt Expr Int Eq Eq gt Expr gt Expr gt Expr BoolwhatIs an integer expression whatIs Add an adition operation code prepNow understand that there are two possible types for codewhatIs code above namely ppre codeExpr gt String code prepand ppre codeExpr Int gt String code prephowever the compiler instead gives an error ppre code• Couldn match expected type ‘t’ with actual type Char ‘t’ is untouchable inside the constraints t1 Int bound by pattern with constructor Int gt Expr Int in an equation for ‘whatIs’ at ti hs 11 ‘t’ is rigid type variable bound by the inferred type of whatIs Expr t1 gt at ti hs Possible fix add type signature for ‘whatIs’• In the expression someString In an equation for ‘whatIs’ whatIs someString Relevant bindings include whatIs Expr t1 gt bound at ti hs code prepI wondering why the compiler does not choose any of the two pFor your example codeExpr gt String code is strictly better type than codeExpr Int gt String code anywhere that an codeExpr Int gt String code could be used an codeExpr gt String code will certainly do But sometimes there emisn em weakest or strongest type ppLet simplify your example even further ppre codedata SoSimple where SoSimple SoSimple Inteval SoSimple Int code prepNow here are two perfectly good types to give codeeval code ppre codeeval SoSimple gt aeval SoSimple gt Int code prepThese types aren interchangeable Each is useful in different situations Compare ppre code LANGUAGE EmptyCase LANGUAGE GADTs import Data Voiddata SomeSimple where SomeSimple SoSimple gt SomeSimple typechecks if eval SoSimple gt Int but not if eval SoSimple gt aevalSome SomeSimple gt IntevalSome SomeSimple eval typechecks if eval SoSimple gt but not if eval SoSimple gt IntevalNone SoSimple Void gt VoidevalNone eval code prepSo neither of these is more general than the other and it turns out that no type is more general than both while still letting codeeval code itself typecheck Since there is no most general type for codeeval code it makes sense to refuse to pick type and force the user to decide which of the many possible types they want this time around 18535,20077,50841,Yearling Nice Answer Nice Question Popular Question Yearling Good Question Notable Question Caucus Famous Question Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 18536,363100,1342599,NULL,NULL,NULL,0,NULL,NULL 18537,65067,169388,Nice Answer Nice Answer Enlightened Good Answer Yearling Good Question Notable Question Famous Question Revival Popular Question Yearling Revival Nice Answer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 18538,54698,849548,NULL,NULL,NULL,0,NULL,NULL 18539,86995,1488108,NULL,NULL,NULL,0,NULL,NULL 18540,63119,238358,Custodian Revival Custodian Caucus Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18541,186964,215199,Nice Answer Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 18542,323906,1286043,Notable Question,NULL,NULL,0,NULL,NULL 18543,44188,22688,Good Answer Custodian Necromancer Informed Yearling Caucus Good Answer Announcer Caucus Custodian Constituent Nice Answer Enlightened Good Answer Electorate Yearling Announcer Announcer Announcer Caucus Constituent Announcer Announcer Nice Answer Enlightened Nice Answer Yearling Announcer Guru,NULL,NULL,0,NULL,NULL 18544,693630,1541739,NULL,NULL,NULL,0,NULL,NULL 18545,38755,251263,NULL,NULL,NULL,0,NULL,NULL 18546,337232,528706,Custodian Yearling Yearling Yearling Yearling Notable Question Famous Question Revival,NULL,NULL,0,NULL,NULL 18547,145402,11722,Famous Question Necromancer Good Answer Famous Question Proofreader Nice Answer Necromancer Famous Question Yearling Explainer Necromancer Nice Answer Enlightened Nice Answer Necromancer Notable Question Necromancer Strunk & White Nice Answer Announcer Necromancer Great Question Popular Question Popular Question Announcer Popular Question Necromancer Nice Answer Great Answer Announcer Revival Yearling Notable Question Documentation User Notable Question Announcer Notable Question Great Question Necromancer Nice Question Notable Question Guru Good Answer Famous Question Popular Question Famous Question Revival Notable Question Nice Answer Enlightened Yearling Necromancer Popular Question Nice Question Popular Question Good Answer,NULL,pIn Unix systems the end of line is represented with line feed LF In windows line is represented with carriage return CR and line feed LF thus CRLF when you get code from git that was uploaded from unix system they will only have an LF ppIf you want to turn this warning off type this in the git command line ppre codegit config core autocrlf true code prepIf you want to make an intelligent decision how git should handle this href http git scm com book en v2 Customizing Git Git Configuration Formatting and Whitespace rel noreferrer read the documentation ppHere is snippet pblockquote strongFormatting and Whitespace strong pFormatting and whitespace issues are some of the more frustrating and subtle problems that many developers encounter when collaborating especially cross platform It’s very easy for patches or other collaborated work to introduce subtle whitespace changes because editors silently introduce them and if your files ever touch Windows system their line endings might be replaced Git has few configuration options to help with these issues ppre codecore autocrlf code pre pIf you’re programming on Windows and working with people who are not or vice versa you’ll probably run into line ending issues at some point This is because Windows uses both carriage return character and linefeed character for newlines in its files whereas Mac and Linux systems use only the linefeed character This is subtle but incredibly annoying fact of cross platform work many editors on Windows silently replace existing LF style line endings with CRLF or insert both line ending characters when the user hits the enter key pGit can handle this by auto converting CRLF line endings into LF when you add file to the index and vice versa when it checks out code onto your filesystem You can turn on this functionality with the core autocrlf setting If you’re on Windows machine set it to true this converts LF endings into CRLF when you check out code ppre code git config global core autocrlf true code pre pIf you’re on Linux or Mac system that uses LF line endings then you don’t want Git to automatically convert them when you check out files however if file with CRLF endings accidentally gets introduced then you may want Git to fix it You can tell Git to convert CRLF to LF on commit but not the other way around by setting core autocrlf to input ppre code git config global core autocrlf input code pre pThis setup should leave you with CRLF endings in Windows checkouts but LF endings on Mac and Linux systems and in the repository pIf you’re Windows programmer doing Windows only project then you can turn off this functionality recording the carriage returns in the repository by setting the config value to false ppre code git config global core autocrlf false code pre blockquote core autocrlf true does not turn off the warning for me but core safecrlf false as mentioned by Joel do pCopy file in sane way ppre code include lt fstream gt int main std ifstream src from ogv std ios binary std ofstream dst to ogv std ios binary dst lt lt src rdbuf code prepThis is so simple and intuitive to read it is worth the extra cost If we were doing it lot better to fall back on OS calls to the file system am sure codeboost code has copy file method in its filesystem class ppThere is method for interacting with the file system ppre code include lt copyfile gt intcopyfile const char from const char to copyfile state state copyfile flags flags code pre 17 has std filesystem permissions http en cppreference com cpp experimental fs permissions,1,Disable warning about detached HEAD git warnings detach pIn git if you checkout commit directly you get big fat warning starting with ppre code You are in detached HEAD state You can look around code prepIt fine intend to be in detached HEAD state However am using this in script and don want this warning in the output logs but do want the normal output ppMy ugly workaround now is to run the same command twice first with to hide the warning and one more time to get the normal output codeHEAD is now at deadbeef Message code since the warning is only printed once ppCan the warning be disabled so can avoid workarounds or parsing the output,NULL 18548,54635,732733,NULL,NULL,NULL,0,NULL,NULL 18549,187059,359557,NULL,NULL,NULL,0,NULL,NULL 18550,119942,781811,NULL,NULL,NULL,0,NULL,NULL 18551,288729,982720,NULL,NULL,NULL,0,NULL,NULL 18552,25392,834876,NULL,NULL,NULL,0,NULL,NULL 18553,24394,1484585,NULL,NULL,NULL,0,NULL,NULL 18554,299411,763538,NULL,NULL,NULL,0,NULL,NULL 18555,176328,1433722,NULL,NULL,NULL,0,NULL,NULL 18556,199341,826486,Popular Question Revival Necromancer Necromancer Tag Editor clojure Nice Answer Enlightened Self-Learner Nice Question Proofreader Popular Question Yearling Nice Answer Notable Question Quorum Notable Question Revival Nice Answer Enlightened Good Question Nice Answer Enlightened Yearling Good Answer Necromancer Custodian Nice Question Popular Question Nice Answer Nice Answer Enlightened Necromancer Necromancer Nice Answer Good Answer Nice Answer Nice Question Famous Question Yearling Notable Question clojurescript Revival Cleanup,NULL,NULL,0,NULL,NULL 18557,122064,1510476,NULL,NULL,NULL,0,NULL,NULL 18558,296213,477280,Curious Popular Question,NULL,NULL,0,NULL,NULL 18559,70595,69749,Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer Nice Answer Promoter Guru Famous Question Nice Question Yearling uitableview Notable Question Nice Question Good Answer Good Question Nice Answer Enlightened Good Question Good Question Famous Question Yearling Popular Question,NULL,pThe following draws an HSL color wheel in UIView subclass It does this by generating bitmap by computing for each pixel the correct color value This is not exactly what you re trying to do looks like it just hue varies in the circle with constant luminance saturation but you should be able to adapt it for your needs ppNote that this may not have optimal performance but it should get you started Also you can use codegetColorWheelValue code to handle user input clicks touches at given coordinate ppre code void drawRect CGRect rect int dim self bounds size width should always be square bitmapData CFDataCreateMutable NULL CFDataSetLength bitmapData dim dim generateColorWheelBitmap CFDataGetMutableBytePtr bitmapData dim luminance UIImage image createUIImageWithRGBAData bitmapData self bounds size width self bounds size height CFRelease bitmapData image drawAtPoint CGPointZero image release void generateColorWheelBitmap UInt8 bitmap int widthHeight float think maybe you can do of the pie then do something smart to generate the other two parts but for now we ll brute force it for int lt widthHeight for int lt widthHeight float getColorWheelValue widthHeight amp amp if lt Antialias the edge of the circle if gt 99 100 else HSL2RGB amp amp amp else 0f int widthHeight bitmap 0xff bitmap 0xff bitmap 0xff bitmap 0xff void getColorWheelValue int widthHeight int int float outH float outS int widthHeight float dx float float dy float float sqrtf float dx dx dy dy outS outH acosf float dx PI 0f if dy lt outH outH UIImage createUIImageWithRGBAData CFDataRef data int width int height CGDataProviderRef dataProvider CGDataProviderCreateWithCFData data CGColorSpaceRef colorSpace CGColorSpaceCreateDeviceRGB CGImageRef imageRef CGImageCreate width height 32 width colorSpace kCGImageAlphaLast dataProvider NULL kCGRenderingIntentDefault UIImage image UIImage alloc initWithCGImage imageRef CGDataProviderRelease dataProvider CGColorSpaceRelease colorSpace CGImageRelease imageRef return image Adapted from Apple sample code See http en wikipedia org wiki HSV color space Comparison of HSL and HSVvoid HSL2RGB float float float float outR float outG float outB float temp1 temp2 float temp int Check for saturation If there isn any just return the luminance value for each which results in gray if outR outG outB return Test for luminance and compute temporary values based on luminance and saturation if lt temp2 else temp2 temp1 temp2 Compute intermediate values based on hue temp temp temp for lt Adjust the range if temp lt temp if temp gt temp if temp lt temp temp1 temp2 temp1 temp else if temp lt temp temp2 else if temp lt temp temp1 temp2 temp1 temp else temp temp1 Assign temporary values to outR temp outG temp outB temp code pre this will only get called once when the view is drawn and then subsequently only if setNeedsDisplay is called pAs others have noted Swift doesn synthesize the necessary equality operators automatically Let me propose cleaner IMHO implementation though ppre codeenum SimpleToken Equatable case Name String case Number Int public func lhs SimpleToken rhs SimpleToken gt Bool switch lhs rhs case let Name Name let Number Number return default return false code prepIt far from ideal there lot of repetition but at least you don need to do nested switches with if statements inside you should only need to define the function at the global scope its parameters can refer to the nested enum classes,0,NULL,NULL 18560,66773,962726,Editor Revival,NULL,NULL,0,NULL,NULL 18561,190107,312268,NULL,NULL,NULL,0,NULL,NULL 18562,5827207,162396,Nice Question Nice Answer Enlightened Nice Question Nice Question Nice Answer Popular Question Popular Question Good Answer Popular Question Good Question Nice Answer Notable Question Good Answer Nice Answer Enlightened Popular Question Popular Question Famous Question Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Enlightened Nice Answer Enlightened Notable Question Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Popular Question Nice Answer Enlightened Popular Question Nice Question Famous Question Nice Question Popular Question Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Question Popular Question Notable Question Nice Question Nice Answer Enlightened Popular Question Guru Nice Question Notable Question Guru Notable Question Nice Answer Enlightened Good Question Guru generics Famous Question Popular Question Nice Question Good Answer Yearling Nice Answer Nice Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 18563,373737,1129467,NULL,NULL,NULL,0,NULL,NULL 18564,447116,681409,Nice Question Famous Question Famous Question Yearling Good Answer Proofreader Caucus Constituent Enlightened Nice Question Yearling Notable Question Popular Question Famous Question Caucus Nice Answer Enlightened Census Yearling Electorate Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18565,171440,470556,Editor Tag Editor,NULL,NULL,0,NULL,NULL 18566,170825,269937,NULL,NULL,NULL,0,NULL,NULL 18567,11618,246429,Famous Question Yearling Good Answer Guru Caucus Yearling Guru Census Popular Question Nice Answer Guru Good Answer Populist Yearling Good Answer Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 18568,2169697,1063662,ios Good Answer Yearling Nice Answer Enlightened Yearling Census Yearling Excavator,NULL,NULL,0,NULL,NULL 18569,513876,1063662,ios Good Answer Yearling Nice Answer Enlightened Yearling Census Yearling Excavator,NULL,NULL,0,NULL,NULL 18570,984108,1016911,NULL,NULL,NULL,0,NULL,NULL 18571,67726,10138,Nice Answer Nice Answer Yearling postgresql Great Answer Enlightened Nice Answer Yearling Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 18572,364367,891868,NULL,NULL,NULL,0,NULL,NULL 18573,6199907,17423,Caucus Nice Answer Enlightened Caucus Constituent Census Caucus Constituent Citizen Patrol Custodian Custodian Reviewer,NULL,NULL,0,NULL,NULL 18574,54098,1138853,NULL,NULL,NULL,0,NULL,NULL 18575,112382,1446315,NULL,NULL,NULL,0,NULL,NULL 18576,315231,1437077,NULL,NULL,NULL,0,NULL,NULL 18577,170548,472470,Excavator Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 18578,252641,1084667,NULL,NULL,NULL,0,NULL,NULL 18579,50329,1473847,NULL,NULL,NULL,0,NULL,NULL 18580,223726,925578,NULL,NULL,NULL,0,NULL,NULL 18581,781089,1204496,NULL,NULL,NULL,0,NULL,NULL 18582,1802605,1204496,NULL,NULL,NULL,0,NULL,NULL 18583,211221,570760,Teacher,NULL,NULL,0,NULL,NULL 18584,6873475,621798,Commentator Supporter,NULL,NULL,0,NULL,NULL 18585,110098,621798,Commentator Supporter,NULL,NULL,0,NULL,NULL 18586,130089,313024,NULL,NULL,NULL,0,NULL,NULL 18587,120555,1330615,Popular Question Critic Yearling Good Answer,NULL,NULL,0,NULL,NULL 18588,643048,113932,NULL,NULL,NULL,0,NULL,NULL 18589,181482,813307,Nice Question Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 18590,499658,273119,Good Answer Notable Question Yearling Announcer Good Question Cleanup Popular Question Famous Question Necromancer Self-Learner Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question android Explainer Popular Question Popular Question Notable Question Revival Famous Question Famous Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Revival Revival Popular Question Notable Question Notable Question Caucus Nice Question Nice Question Nice Question Notable Question Revival Nice Answer Popular Question Yearling Promoter Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Good Answer Necromancer Popular Question Popular Question Popular Question Notable Question Nice Question Necromancer Notable Question Notable Question Notable Question Notable Question Popular Question Documentation User Popular Question Popular Question Famous Question Notable Question Nice Question Nice Question Necromancer Popular Question Notable Question Notable Question Popular Question Popular Question Good Question Good Question Revival Necromancer Yearling Good Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Announcer Famous Question Announcer Popular Question Popular Question Revival Popular Question Notable Question Popular Question Popular Question Announcer Necromancer Notable Question Nice Answer Famous Question Notable Question Nice Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 18591,75177,345093,Nice Question Famous Question Notable Question Caucus Yearling Critic Famous Question,NULL,NULL,0,NULL,NULL 18592,228770,481693,NULL,NULL,NULL,0,NULL,NULL 18593,213130,755332,Popular Question Revival Yearling Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 18594,64056,693516,NULL,NULL,NULL,0,NULL,NULL 18595,195972,652528,Teacher Scholar Supporter Necromancer Commentator Enthusiast Nice Answer Student Revival Yearling Curious Yearling Popular Question Tumbleweed Caucus Self-Learner Popular Question Critic Yearling Notable Question,NULL,NULL,0,NULL,NULL 18596,15171,1219530,NULL,NULL,NULL,0,NULL,NULL 18597,1031904,228445,NULL,NULL,NULL,0,NULL,NULL 18598,138645,474837,NULL,NULL,NULL,0,NULL,NULL 18599,903860,1162018,Teacher Informed Scholar Supporter Autobiographer Necromancer Commentator,NULL,NULL,1,NULL,How can select2 and conflicts be resolved javascript jquery jquery select2 jquery select2 pWhile not that specific issue the issue described here href https wordpress org support topic select2 conflicting with acf v5 rel nofollow https wordpress org support topic select2 conflicting with acf v5 is basically my problem as well ppA wordpress site has two wordpress plugins one uses select2 version to handle all select elements the other included in plugin wrote uses to handle some specific ones This result in an error of pblockquote pError select2 min js ver 21 Uncaught Error Option multiple is not allowed for Select2 when attached to element blockquotepIs there any possible solution to this kind of problem Should just try to detect that is loaded and try to avoid conflicting settings maybe try to have my select2 to load first and hope that since am more specific there will not be conflicts with the code that uses my knowledge of jQuery internals is lacking what does happen when different plugins try to use the same name pI am facing the exact same issue with my plugin href https wordpress org plugins popup maker rel nofollow noreferrer Popup Maker found this href https stackoverflow com questions 33962395 select2 multiple versions on same page site select2 multiple versions on same page site that may be useful the only issue forsee there is that we can always control the order plugins load their JS using wp enqueue script ppOk so what did was made my script require select2 DUH then just inside my scripts enclosure did something like this pp code fn pumSelect2 fn select2 code ppThen later instead of calling code select2 code use code pumSelect2 code ppThis works great for my situation which is that use v4 others use v3 some even bootstrap it into their own admin js file so it loads even though select2 is already loaded ppSo all in all its hack but since we are doing it the right way by loading using wp enqueue script ppI also dequeue select2 if its enqueued ppre code Deregister older versions loaded by Types Advanced Custom Fields etc if wp script is select2 registered wp deregister script select2 wp register script select2 js dir select2 full suffix array jquery code prep pp strongFinal Method For Now strong ppAfter further testing and since so many other plugins use old versions with customizations that will likely break this is what came up with ppIn my select2 full js file ppFor the opening section that loads jQuery and calls factory ppre code function factory var existingVersion jQuery fn select2 null if existingVersion delete jQuery fn select2 if typeof define function amp amp define amd undefined amp amp define amd AMD Register as an anonymous module define jquery factory else if typeof exports object Node CommonJS factory require jquery else Browser globals factory jQuery jQuery fn pumselect2 jQuery fn select2 if existingVersion delete jQuery fn select2 jQuery fn select2 existingVersion function jQuery code prepBasically bootstrap it to new name in this case pumselect2 and if there was previously loaded version restore it otherwise wipe the slate so that if another is loaded no conflict arises ppAlso modified my wp enqueue script handle to be pumselect2 so that it gets loaded even if someone else loads select2 ppHope that helps 18600,245749,387403,NULL,NULL,NULL,0,NULL,NULL 18601,2738662,299239,Necromancer Revival Necromancer Necromancer Good Answer Yearling Nice Answer Necromancer Great Answer Yearling Nice Answer Necromancer Necromancer Nice Answer Good Answer Autobiographer Yearling Necromancer Good Answer,NULL,pAdd the following CSS and JavaScript to your page and use the codeaddResizeListener code and coderemoveResizeListener code methods to listen for element size changes blog post for further details href http www backalleycoder com 2013 03 18 cross browser event based element resize detection rel nofollow noreferrer http www backalleycoder com 2013 03 18 cross browser event based element resize detection pp strongResize Sensor CSS strong ppre code resize triggers visibility hidden resize triggers resize triggers gt div contract trigger before content display block position absolute top left height 100 width 100 overflow hidden resize triggers gt div background eee overflow auto contract trigger before width 200 height 200 code prep strongResize Event Methods strong ppThe following is the JavaScript you’ll need to enable resize event listening The first two functions are prerequisites that are used in the main addResizeListener and removeResizeListener methods ppre code function var attachEvent document attachEvent if attachEvent var requestFrame function var raf window requestAnimationFrame window mozRequestAnimationFrame window webkitRequestAnimationFrame function fn return window setTimeout fn 20 return function fn return raf fn var cancelFrame function var cancel window cancelAnimationFrame window mozCancelAnimationFrame window webkitCancelAnimationFrame window clearTimeout return function id return cancel id function resetTriggers element var triggers element resizeTriggers expand triggers firstElementChild contract triggers lastElementChild expandChild expand firstElementChild contract scrollLeft contract scrollWidth contract scrollTop contract scrollHeight expandChild style width expand offsetWidth px expandChild style height expand offsetHeight px expand scrollLeft expand scrollWidth expand scrollTop expand scrollHeight function checkTriggers element return element offsetWidth element resizeLast width element offsetHeight element resizeLast height function scrollListener var element this resetTriggers this if this resizeRAF cancelFrame this resizeRAF this resizeRAF requestFrame function if checkTriggers element element resizeLast width element offsetWidth element resizeLast height element offsetHeight element resizeListeners forEach function fn fn call element window addResizeListener function element fn if attachEvent element attachEvent resize fn else if element resizeTriggers if getComputedStyle element position static element style position relative element resizeLast element resizeListeners element resizeTriggers document createElement div className resize triggers element resizeTriggers innerHTML lt div class expand trigger gt lt div gt lt div gt lt div gt lt div class contract trigger gt lt div gt element appendChild element resizeTriggers resetTriggers element element addEventListener scroll scrollListener true element resizeListeners push fn window removeResizeListener function element fn if attachEvent element detachEvent resize fn else element resizeListeners splice element resizeListeners indexOf fn if element resizeListeners length element removeEventListener scroll scrollListener element resizeTriggers element removeChild element resizeTriggers code prep strongDemo licious strong ppHere’s pseudo code usage of the method ppre codevar myElement document getElementById my element myResizeFn function do something on resize addResizeListener myElement myResizeFn removeResizeListener myElement myResizeFn code pre you re right feel bad for shamelessly stealing from guy who is obviously genius bet he was more concerned with the content being posted here to help others and simply forgot to include link to his blog looked him up to send an apology and it turns out he almost as handsome as am https github com csuwildcat Hell of guy if you ask me pAdd the following CSS and JavaScript to your page and use the codeaddResizeListener code and coderemoveResizeListener code methods to listen for element size changes blog post for further details href http www backalleycoder com 2013 03 18 cross browser event based element resize detection rel nofollow noreferrer http www backalleycoder com 2013 03 18 cross browser event based element resize detection pp strongResize Sensor CSS strong ppre code resize triggers visibility hidden resize triggers resize triggers gt div contract trigger before content display block position absolute top left height 100 width 100 overflow hidden resize triggers gt div background eee overflow auto contract trigger before width 200 height 200 code prep strongResize Event Methods strong ppThe following is the JavaScript you’ll need to enable resize event listening The first two functions are prerequisites that are used in the main addResizeListener and removeResizeListener methods ppre code function var attachEvent document attachEvent if attachEvent var requestFrame function var raf window requestAnimationFrame window mozRequestAnimationFrame window webkitRequestAnimationFrame function fn return window setTimeout fn 20 return function fn return raf fn var cancelFrame function var cancel window cancelAnimationFrame window mozCancelAnimationFrame window webkitCancelAnimationFrame window clearTimeout return function id return cancel id function resetTriggers element var triggers element resizeTriggers expand triggers firstElementChild contract triggers lastElementChild expandChild expand firstElementChild contract scrollLeft contract scrollWidth contract scrollTop contract scrollHeight expandChild style width expand offsetWidth px expandChild style height expand offsetHeight px expand scrollLeft expand scrollWidth expand scrollTop expand scrollHeight function checkTriggers element return element offsetWidth element resizeLast width element offsetHeight element resizeLast height function scrollListener var element this resetTriggers this if this resizeRAF cancelFrame this resizeRAF this resizeRAF requestFrame function if checkTriggers element element resizeLast width element offsetWidth element resizeLast height element offsetHeight element resizeListeners forEach function fn fn call element window addResizeListener function element fn if attachEvent element attachEvent resize fn else if element resizeTriggers if getComputedStyle element position static element style position relative element resizeLast element resizeListeners element resizeTriggers document createElement div className resize triggers element resizeTriggers innerHTML lt div class expand trigger gt lt div gt lt div gt lt div gt lt div class contract trigger gt lt div gt element appendChild element resizeTriggers resetTriggers element element addEventListener scroll scrollListener true element resizeListeners push fn window removeResizeListener function element fn if attachEvent element detachEvent resize fn else element resizeListeners splice element resizeListeners indexOf fn if element resizeListeners length element removeEventListener scroll scrollListener element resizeTriggers element removeChild element resizeTriggers code prep strongDemo licious strong ppHere’s pseudo code usage of the method ppre codevar myElement document getElementById my element myResizeFn function do something on resize addResizeListener myElement myResizeFn removeResizeListener myElement myResizeFn code pre added the link to my post,0,NULL,NULL 18602,71878,299239,Necromancer Revival Necromancer Necromancer Good Answer Yearling Nice Answer Necromancer Great Answer Yearling Nice Answer Necromancer Necromancer Nice Answer Good Answer Autobiographer Yearling Necromancer Good Answer,NULL,pAdd the following CSS and JavaScript to your page and use the codeaddResizeListener code and coderemoveResizeListener code methods to listen for element size changes blog post for further details href http www backalleycoder com 2013 03 18 cross browser event based element resize detection rel nofollow noreferrer http www backalleycoder com 2013 03 18 cross browser event based element resize detection pp strongResize Sensor CSS strong ppre code resize triggers visibility hidden resize triggers resize triggers gt div contract trigger before content display block position absolute top left height 100 width 100 overflow hidden resize triggers gt div background eee overflow auto contract trigger before width 200 height 200 code prep strongResize Event Methods strong ppThe following is the JavaScript you’ll need to enable resize event listening The first two functions are prerequisites that are used in the main addResizeListener and removeResizeListener methods ppre code function var attachEvent document attachEvent if attachEvent var requestFrame function var raf window requestAnimationFrame window mozRequestAnimationFrame window webkitRequestAnimationFrame function fn return window setTimeout fn 20 return function fn return raf fn var cancelFrame function var cancel window cancelAnimationFrame window mozCancelAnimationFrame window webkitCancelAnimationFrame window clearTimeout return function id return cancel id function resetTriggers element var triggers element resizeTriggers expand triggers firstElementChild contract triggers lastElementChild expandChild expand firstElementChild contract scrollLeft contract scrollWidth contract scrollTop contract scrollHeight expandChild style width expand offsetWidth px expandChild style height expand offsetHeight px expand scrollLeft expand scrollWidth expand scrollTop expand scrollHeight function checkTriggers element return element offsetWidth element resizeLast width element offsetHeight element resizeLast height function scrollListener var element this resetTriggers this if this resizeRAF cancelFrame this resizeRAF this resizeRAF requestFrame function if checkTriggers element element resizeLast width element offsetWidth element resizeLast height element offsetHeight element resizeListeners forEach function fn fn call element window addResizeListener function element fn if attachEvent element attachEvent resize fn else if element resizeTriggers if getComputedStyle element position static element style position relative element resizeLast element resizeListeners element resizeTriggers document createElement div className resize triggers element resizeTriggers innerHTML lt div class expand trigger gt lt div gt lt div gt lt div gt lt div class contract trigger gt lt div gt element appendChild element resizeTriggers resetTriggers element element addEventListener scroll scrollListener true element resizeListeners push fn window removeResizeListener function element fn if attachEvent element detachEvent resize fn else element resizeListeners splice element resizeListeners indexOf fn if element resizeListeners length element removeEventListener scroll scrollListener element resizeTriggers element removeChild element resizeTriggers code prep strongDemo licious strong ppHere’s pseudo code usage of the method ppre codevar myElement document getElementById my element myResizeFn function do something on resize addResizeListener myElement myResizeFn removeResizeListener myElement myResizeFn code pre you re right feel bad for shamelessly stealing from guy who is obviously genius bet he was more concerned with the content being posted here to help others and simply forgot to include link to his blog looked him up to send an apology and it turns out he almost as handsome as am https github com csuwildcat Hell of guy if you ask me pAdd the following CSS and JavaScript to your page and use the codeaddResizeListener code and coderemoveResizeListener code methods to listen for element size changes blog post for further details href http www backalleycoder com 2013 03 18 cross browser event based element resize detection rel nofollow noreferrer http www backalleycoder com 2013 03 18 cross browser event based element resize detection pp strongResize Sensor CSS strong ppre code resize triggers visibility hidden resize triggers resize triggers gt div contract trigger before content display block position absolute top left height 100 width 100 overflow hidden resize triggers gt div background eee overflow auto contract trigger before width 200 height 200 code prep strongResize Event Methods strong ppThe following is the JavaScript you’ll need to enable resize event listening The first two functions are prerequisites that are used in the main addResizeListener and removeResizeListener methods ppre code function var attachEvent document attachEvent if attachEvent var requestFrame function var raf window requestAnimationFrame window mozRequestAnimationFrame window webkitRequestAnimationFrame function fn return window setTimeout fn 20 return function fn return raf fn var cancelFrame function var cancel window cancelAnimationFrame window mozCancelAnimationFrame window webkitCancelAnimationFrame window clearTimeout return function id return cancel id function resetTriggers element var triggers element resizeTriggers expand triggers firstElementChild contract triggers lastElementChild expandChild expand firstElementChild contract scrollLeft contract scrollWidth contract scrollTop contract scrollHeight expandChild style width expand offsetWidth px expandChild style height expand offsetHeight px expand scrollLeft expand scrollWidth expand scrollTop expand scrollHeight function checkTriggers element return element offsetWidth element resizeLast width element offsetHeight element resizeLast height function scrollListener var element this resetTriggers this if this resizeRAF cancelFrame this resizeRAF this resizeRAF requestFrame function if checkTriggers element element resizeLast width element offsetWidth element resizeLast height element offsetHeight element resizeListeners forEach function fn fn call element window addResizeListener function element fn if attachEvent element attachEvent resize fn else if element resizeTriggers if getComputedStyle element position static element style position relative element resizeLast element resizeListeners element resizeTriggers document createElement div className resize triggers element resizeTriggers innerHTML lt div class expand trigger gt lt div gt lt div gt lt div gt lt div class contract trigger gt lt div gt element appendChild element resizeTriggers resetTriggers element element addEventListener scroll scrollListener true element resizeListeners push fn window removeResizeListener function element fn if attachEvent element detachEvent resize fn else element resizeListeners splice element resizeListeners indexOf fn if element resizeListeners length element removeEventListener scroll scrollListener element resizeTriggers element removeChild element resizeTriggers code prep strongDemo licious strong ppHere’s pseudo code usage of the method ppre codevar myElement document getElementById my element myResizeFn function do something on resize addResizeListener myElement myResizeFn removeResizeListener myElement myResizeFn code pre added the link to my post,0,NULL,NULL 18603,499784,1315933,NULL,NULL,NULL,0,NULL,NULL 18604,223401,29005,Tumbleweed Nice Answer Yearling Nice Answer Custodian Custodian Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18605,610955,163197,Announcer Notable Question Yearling Census Necromancer Nice Answer,NULL,pTested with git but possibly works in other versions in repo cloned from Github ppre code git symbolic ref refs remotes origin HEAD sed refs remotes origin master code pre That is indeed better ll update my answer,1,NULL,git how to get default branch git pMy team alternates between usage of dev and master as default branch for several repos and would like to write script that checks for the default branch when entering directory ppWhen pull requests are opened in some of these repos they either default to dev or master as the merge target ppI understand how to set this information but not retrieve it href https help github com articles setting the default branch rel noreferrer https help github com articles setting the default branch ppIs there git command available to determine default branch for remote repository pTested with git but possibly works in other versions in repo cloned from Github ppre code git symbolic ref refs remotes origin HEAD sed refs remotes origin master code pre 18606,693882,380497,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18607,388201,1340476,NULL,NULL,NULL,0,NULL,NULL 18608,15802,684376,NULL,NULL,NULL,0,NULL,NULL 18609,537249,1113740,NULL,NULL,NULL,0,NULL,NULL 18610,110815,262014,NULL,NULL,NULL,0,NULL,NULL 18611,2725605,1276273,Nice Question Yearling Good Question Famous Question Famous Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 18612,635147,1457894,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18613,291961,1031362,Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Good Question Popular Question Popular Question Notable Question Famous Question Famous Question Famous Question Favorite Question Notable Question Popular Question Notable Question Famous Question Yearling Necromancer Famous Question Famous Question Nice Question Popular Question Popular Question Favorite Question Notable Question Popular Question Popular Question Notable Question Yearling Great Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 18614,5075585,1031362,Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Good Question Popular Question Popular Question Notable Question Famous Question Famous Question Famous Question Favorite Question Notable Question Popular Question Notable Question Famous Question Yearling Necromancer Famous Question Famous Question Nice Question Popular Question Popular Question Favorite Question Notable Question Popular Question Popular Question Notable Question Yearling Great Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 18615,446173,1124748,Commentator Necromancer Documentation User Civic Duty Critic,NULL,NULL,0,NULL,NULL 18616,1046982,1373657,Yearling Documentation User,NULL,pJust extend Julian table pp href https stack imgur com qbe46 png img src https stack imgur com qbe46 png alt enter image description here ppRef href http sibevin github io posts 2014 11 11 103928 rails empty vs blank vs nil empty blank nil 傻傻分不清楚 Enumerable any is vanilla Ruby it shouldn be listed under rails only,0,NULL,NULL 18617,239142,1009916,Nice Answer Yearling Good Answer Popular Question Guru Yearling Good Answer Revival Nice Answer Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 18618,9334,566423,NULL,NULL,NULL,0,NULL,NULL 18619,71396,884626,NULL,NULL,NULL,0,NULL,NULL 18620,154819,847212,Nice Answer,NULL,NULL,0,NULL,NULL 18621,113530,224958,NULL,NULL,NULL,0,NULL,NULL 18622,434553,32638,Good Answer Nice Answer Nice Answer Good Answer Populist Yearling Nice Answer Enlightened Good Answer Nice Answer Yearling Great Answer Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 18623,67440,1339532,Teacher Autobiographer Editor Revival,NULL,NULL,0,NULL,NULL 18624,13114,992676,NULL,NULL,NULL,0,NULL,NULL 18625,36695,1150395,NULL,NULL,NULL,0,NULL,NULL 18626,363742,379547,Nice Answer,NULL,NULL,0,NULL,NULL 18627,130922,710408,Popular Question Nice Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 18628,57459,12118,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18629,63821,201137,Necromancer,NULL,NULL,0,NULL,NULL 18630,20183,413970,NULL,NULL,NULL,0,NULL,NULL 18631,527167,1178821,Scholar,NULL,NULL,0,NULL,NULL 18632,1557652,1159039,NULL,NULL,NULL,0,NULL,NULL 18633,132518,37019,Nice Answer Caucus Yearling Famous Question Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 18634,320958,1335395,Commentator Critic Caucus Census Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18635,76319,98050,Notable Question Nice Question Nice Question Famous Question Favorite Question Notable Question Popular Question Yearling Notable Question Great Question Famous Question Excavator Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Notable Question Documentation User Nice Question Nice Question Great Question Popular Question Notable Question Popular Question Good Question Yearling Nice Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 18636,2252772,1254385,NULL,NULL,NULL,0,NULL,NULL 18637,1507627,1254385,NULL,NULL,NULL,0,NULL,NULL 18638,241710,243537,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18639,360077,1558314,NULL,NULL,NULL,0,NULL,NULL 18640,743913,151418,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18641,4997133,151418,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18642,169888,852819,NULL,NULL,NULL,0,NULL,NULL 18643,222278,1071849,Yearling,NULL,NULL,0,NULL,NULL 18644,408071,780128,Famous Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 18645,62169,633214,NULL,NULL,NULL,0,NULL,NULL 18646,2285489,479624,NULL,NULL,NULL,0,NULL,NULL 18647,591249,793953,NULL,NULL,NULL,0,NULL,NULL 18648,296328,1279625,Popular Question Notable Question Curious Famous Question Yearling,NULL,NULL,0,NULL,NULL 18649,231217,465458,Nice Answer Necromancer Yearling Great Answer Yearling Revival Nice Question Yearling,NULL,NULL,0,NULL,NULL 18650,119051,1230466,NULL,NULL,NULL,0,NULL,NULL 18651,575852,1067096,Tumbleweed Teacher Custodian Popular Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 18652,11581,786642,Scholar Teacher,NULL,NULL,0,NULL,NULL 18653,341100,630538,NULL,NULL,NULL,0,NULL,NULL 18654,174689,348704,Yearling Guru,NULL,NULL,0,NULL,NULL 18655,694372,1339970,NULL,NULL,NULL,0,NULL,NULL 18656,72747,551558,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18657,238160,1171411,Yearling Caucus,NULL,NULL,0,NULL,NULL 18658,1178990,768793,Editor Student Supporter Tumbleweed Scholar Documentation User Necromancer,NULL,NULL,0,NULL,NULL 18659,4463368,696923,Good Answer Yearling,NULL,NULL,0,NULL,NULL 18660,1204323,1104505,NULL,NULL,NULL,0,NULL,NULL 18661,185619,181850,Autobiographer Student Yearling Scholar Caucus Editor,NULL,NULL,0,NULL,NULL 18662,105054,847112,NULL,NULL,NULL,0,NULL,NULL 18663,64279,1374397,NULL,NULL,NULL,0,NULL,NULL 18664,215929,285375,Popular Question Census Caucus,NULL,NULL,0,NULL,NULL 18665,844470,999458,Necromancer Critic Revival Caucus Announcer Yearling Revival Revival Nice Answer Caucus Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 18666,280628,549676,Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 18667,150678,757552,NULL,NULL,NULL,0,NULL,NULL 18668,35620,48966,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 18669,20138,449571,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18670,1815716,1001745,Popular Question Famous Question Good Question Yearling Popular Question Documentation User Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 18671,443284,1422425,Good Answer Student Scholar Critic Popular Question,NULL,NULL,1,How to convert HTML table to array with golang html go goquery pI having problem trying to convert an HTML table into Golang array ve tried to achieve it using net html and goquery without any success on both of them ppLet say we have this HTML table ppre code lt html gt lt body gt lt table gt lt tr gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt tr gt lt tr gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt td gt Row Content lt td gt lt tr gt lt table gt lt body gt lt html gt code prepAnd like to end up with this array ppre code Row Content Row Content Row Content Row Content code prepAs you guy can see just ignoring Contents and ppMy extraction code ppre codefunc extractValue content byte doc goquery NewDocumentFromReader bytes NewReader content doc Find table tr td Each func int td goquery Selection code prepI ve tried to add controller number which would be responsible for ignoring the code lt td gt code that don want to convert and calling ppre codetd NextAll code prepbut with no luck Do you guys have any idea of what should do to accomplish it ppThanks,NULL 18672,93350,318086,NULL,NULL,NULL,0,NULL,NULL 18673,229841,817435,NULL,NULL,NULL,0,NULL,NULL 18674,98913,157931,Good Answer Yearling Good Answer Yearling Promoter Yearling,NULL,NULL,0,NULL,NULL 18675,374053,1424179,Informed Teacher Editor Enthusiast Supporter Critic Commentator Yearling Tenacious Census Caucus,NULL,NULL,0,NULL,NULL 18676,777422,1541208,NULL,NULL,NULL,0,NULL,NULL 18677,2461228,794329,Popular Question Notable Question Nice Question Supporter,NULL,NULL,0,NULL,NULL 18678,3117,1042324,Yearling Nice Answer Enlightened Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 18679,463877,1357800,NULL,NULL,NULL,0,NULL,NULL 18680,606341,1289461,NULL,NULL,NULL,0,NULL,NULL 18681,42309,391617,Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18682,26174,1426748,Supporter Notable Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18683,447715,357314,Good Question Nice Question Notable Question Nice Question Nice Question Famous Question Notable Question Nice Question Good Answer Nice Question Popular Question Popular Question Nice Question Great Question Good Question Nice Answer Favorite Question Yearling Nice Question Popular Question Notable Question Necromancer Nice Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Famous Question Notable Question Nice Question Popular Question Stellar Question Popular Question Famous Question Popular Question Famous Question Yearling Popular Question Announcer Popular Question Great Question Documentation User Popular Question Famous Question Famous Question Famous Question Good Answer Popular Question Yearling Notable Question Good Question Good Question Popular Question Notable Question Notable Question Good Question Revival Notable Question Famous Question Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 18684,293070,159910,NULL,NULL,NULL,0,NULL,NULL 18685,244810,845143,NULL,NULL,NULL,0,NULL,NULL 18686,613887,813627,NULL,NULL,NULL,0,NULL,NULL 18687,82849,546098,NULL,NULL,NULL,0,NULL,NULL 18688,386288,208598,Yearling Good Answer,NULL,NULL,0,NULL,NULL 18689,30180,626302,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18690,325546,55155,Yearling Popular Question Pundit Popular Question Investor Documentation Pioneer Altruist Notable Question Popular Question Yearling Popular Question Nice Question Popular Question Nice Question Necromancer Notable Question Documentation User Notable Question Yearling Census Notable Question Good Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 18691,51140,75174,Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 18692,183449,996982,NULL,NULL,NULL,0,NULL,NULL 18693,4445486,272501,Notable Question Notable Question Good Question Good Question Famous Question Yearling Notable Question Popular Question Notable Question Famous Question Good Question Famous Question Nice Question Notable Question Nice Question Popular Question Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Famous Question Good Question Popular Question Famous Question Popular Question Yearling Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Great Question Nice Question Notable Question Famous Question Notable Question Good Question Popular Question Popular Question Good Question Nice Question Nice Question Notable Question Notable Question Popular Question Custodian Yearling Famous Question Famous Question Famous Question Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Famous Question Good Question Notable Question Nice Question Good Question Famous Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 18694,392125,1528041,NULL,NULL,NULL,0,NULL,NULL 18695,38764,843866,Teacher Commentator Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 18696,2920,325156,NULL,NULL,NULL,0,NULL,NULL 18697,27517,158000,Yearling,NULL,NULL,0,NULL,NULL 18698,1022425,1038098,NULL,NULL,NULL,0,NULL,NULL 18699,625242,148512,Notable Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 18700,377875,146786,Revival Nice Question,NULL,NULL,0,NULL,NULL 18701,168372,834728,NULL,NULL,NULL,0,NULL,NULL 18702,15899,13072,Informed Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 18703,231742,62055,Good Answer Nice Answer Enlightened Yearling Guru Great Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer Good Answer Good Answer Good Answer Guru Yearling Nice Answer Enlightened Guru Good Question Great Answer,NULL,NULL,0,NULL,NULL 18704,45557,60261,Necromancer Great Answer Great Answer Yearling Good Question Custodian Guru Nice Answer Announcer Great Answer Famous Question Nice Answer Notable Question Guru Favorite Question Good Answer Good Answer Nice Answer Enlightened Famous Question Announcer Yearling Census Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Good Answer Good Answer Guru Announcer Announcer Notable Question Nice Question Notable Question Nice Answer Enlightened Yearling Famous Question Guru Guru Good Answer Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18705,354018,607160,Nice Answer,NULL,NULL,0,NULL,NULL 18706,226944,624959,Popular Question,NULL,NULL,0,NULL,NULL 18707,69998,510913,NULL,NULL,NULL,0,NULL,NULL 18708,151024,749272,Nice Answer Custodian Yearling Good Answer Custodian Tag Editor Good Answer Nice Answer Good Answer Excavator Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 18709,86198,236621,Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 18710,332414,1170391,Informed Yearling Yearling Yearling Necromancer Nice Answer Yearling Notable Question Notable Question Notable Question Yearling Nice Answer Enlightened Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 18711,8336499,1445114,NULL,NULL,NULL,0,NULL,NULL 18712,207817,871656,NULL,NULL,NULL,0,NULL,NULL 18713,83093,71911,NULL,NULL,NULL,0,NULL,NULL 18714,268094,489916,Student Nice Answer Enlightened Enthusiast Informed Autobiographer Yearling Commentator Scholar Revival Necromancer Revival Necromancer Popular Question Yearling Nice Answer Enlightened Nice Answer Enlightened Custodian Custodian,NULL,NULL,0,NULL,NULL 18715,115888,458227,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 18716,2378897,458227,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 18717,489194,1217598,NULL,NULL,NULL,0,NULL,NULL 18718,60389,51420,Yearling Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 18719,59260,331724,NULL,NULL,NULL,0,NULL,NULL 18720,82255,733508,NULL,NULL,NULL,0,NULL,NULL 18721,492432,1264262,NULL,NULL,NULL,0,NULL,NULL 18722,296737,582010,Popular Question Necromancer Yearling Popular Question Custodian Documentation User Famous Question Notable Question Yearling Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 18723,13038,794961,NULL,NULL,NULL,0,NULL,NULL 18724,253449,1088051,NULL,NULL,NULL,0,NULL,NULL 18725,1077810,640759,Necromancer Guru Great Answer Yearling Revival Good Answer Nice Answer Good Question Announcer Nice Answer Good Answer Good Answer Popular Question Yearling Nice Answer Good Answer Revival Revival Nice Answer Enlightened Nice Question Yearling Guru Necromancer Populist Notable Question,NULL,NULL,0,NULL,NULL 18726,292703,663073,NULL,NULL,NULL,0,NULL,NULL 18727,53393,178965,NULL,NULL,NULL,0,NULL,NULL 18728,1554940,861605,NULL,NULL,NULL,0,NULL,NULL 18729,998909,784338,Nice Answer Good Answer Cleanup Notable Question Famous Question Nice Answer Enlightened Guru Nice Answer Enlightened Notable Question Yearling Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Good Answer Yearling Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Yearling Guru Favorite Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18730,812202,1091209,Commentator Curious Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 18731,18199,370318,NULL,NULL,NULL,0,NULL,NULL 18732,754755,752272,Student,NULL,NULL,0,NULL,NULL 18733,1507401,642399,Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18734,492216,74421,Yearling Good Question Nice Answer Yearling Favorite Question Great Question Good Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 18735,5025,361319,Great Answer Good Answer Popular Question Famous Question Nice Answer Guru Popular Question Yearling Nice Question Nice Answer Nice Answer Popular Question Nice Question Guru Notable Question Good Question Yearling Populist Nice Answer Notable Question Good Answer Yearling Good Answer Famous Question Guru,NULL,NULL,0,NULL,NULL 18736,1339973,1289004,NULL,NULL,NULL,0,NULL,NULL 18737,4287326,1289004,NULL,NULL,NULL,0,NULL,NULL 18738,216544,61324,Critic,NULL,NULL,0,NULL,NULL 18739,2679,5364,Nice Answer,NULL,NULL,0,NULL,NULL 18740,208268,671488,NULL,NULL,NULL,0,NULL,NULL 18741,406244,770346,Yearling Census Census,NULL,NULL,0,NULL,NULL 18742,232115,490188,Necromancer Necromancer Notable Question Announcer Popular Question Good Question Tenacious Nice Answer Popular Question Notable Question Yearling Notable Question Guru Census Custodian Nice Answer Notable Question Necromancer Nice Answer Necromancer Announcer Good Answer Documentation User Nice Question Yearling Nice Question python Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 18743,6264,477949,Popular Question Critic Popular Question Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 18744,486459,630452,Scholar Supporter,NULL,NULL,0,NULL,NULL 18745,89456,1185957,Census,NULL,NULL,0,NULL,NULL 18746,54230,626649,Famous Question Curious Yearling,NULL,NULL,0,NULL,NULL 18747,93020,385265,Popular Question Notable Question Yearling Tumbleweed Famous Question Nice Answer Nice Question Nice Answer Enlightened Popular Question Announcer Yearling Nice Question Nice Answer Good Answer Good Question php Announcer Yearling Notable Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18748,85958,321080,Self-Learner Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 18749,202191,1078122,Custodian Notable Question Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 18750,1433481,845002,Popular Question,NULL,NULL,0,NULL,NULL 18751,83151,618186,Good Answer Nice Question Good Answer Famous Question Yearling Famous Question Notable Question Notable Question Famous Question Notable Question Yearling Famous Question Guru Great Answer Announcer Announcer Census Nice Question Yearling Popular Question Popular Question Good Question Good Question,NULL,NULL,0,NULL,NULL 18752,220926,908046,NULL,NULL,NULL,0,NULL,NULL 18753,160855,112381,Popular Question Nice Question Notable Question Notable Question Famous Question Yearling django Popular Question Good Question Good Answer Famous Question Famous Question Yearling Notable Question Notable Question Favorite Question Nice Question Famous Question Announcer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 18754,132077,664127,Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18755,18040,162939,NULL,NULL,NULL,0,NULL,NULL 18756,86921,525260,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18757,98077,146674,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 18758,686239,972165,NULL,NULL,NULL,0,NULL,NULL 18759,190771,98151,Popular Question Popular Question Nice Answer Enlightened Yearling Popular Question Good Question Good Answer Nice Answer Enlightened Notable Question Yearling Notable Question Nice Answer Enlightened Guru Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 18760,424947,579249,Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18761,467394,1212705,NULL,NULL,NULL,0,NULL,NULL 18762,92806,1030302,NULL,NULL,NULL,0,NULL,NULL 18763,228652,59520,Popular Question,NULL,NULL,0,NULL,NULL 18764,14455,1408105,Student Nice Answer Critic Informed Yearling Caucus,NULL,NULL,0,NULL,NULL 18765,4415,113507,Nice Question Yearling Popular Question Excavator Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 18766,335296,956961,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 18767,1078740,188244,Popular Question Popular Question Custodian Informed,NULL,NULL,0,NULL,NULL 18768,115820,511200,Good Answer Famous Question Nice Question Popular Question Yearling Good Answer Popular Question Nice Question Popular Question Yearling Nice Answer Announcer Peer Pressure Yearling Popular Question,NULL,pThe answer to the emoriginal question em which does emnot em want to scale the video is ppre code vf pad ceil iw ceil ih code prepCommand ppre codeffmpeg 24 frame 05d jpg vcodec libx264 an video mp4 vf pad ceil iw ceil ih code prepBasically h264 needs even dimensions so this filter will polliDivide the original height and width by liliRound it up to the nearest pixel liliMultiply it by again thus making it an even number liliAdd black padding pixels up to this number li olpYou can change the color of the padding by adding filter parameter code color white code See href https ffmpeg org ffmpeg filters html pad rel noreferrer the documentation of pad Here solution that only adds pixel of padding to dimensions that are odd vf pad width ceil iw height ceil ih pThe answer to the emoriginal question em which does emnot em want to scale the video is ppre code vf pad ceil iw ceil ih code prepCommand ppre codeffmpeg 24 frame 05d jpg vcodec libx264 an video mp4 vf pad ceil iw ceil ih code prepBasically h264 needs even dimensions so this filter will polliDivide the original height and width by liliRound it up to the nearest pixel liliMultiply it by again thus making it an even number liliAdd black padding pixels up to this number li olpYou can change the color of the padding by adding filter parameter code color white code See href https ffmpeg org ffmpeg filters html pad rel noreferrer the documentation of pad Alright ve added an answer and tried to add some commentary based on my memory of the problems had here It been while ve been using my solution in large production pipeline since then and it always had great results,1,NULL,How to manage URL with or without and regex seo koa koa router pIn my Koa app ve this kind of router ppre codeapp use router app all frontRoutes home index code prepMy problem is that pullimydomain com lilimydomain com lilimydomain com li ulpAre routed by the same route It could be great but for Google it not Says that it duplicate content So would like to redirect the first and third to the second Like something to this ppre codeapp use router app redirect 301 redirect 301 all frontRoutes home index code prepHave tried some regexp without success Already opened Github issue but without answer too href https github com alexmingoia koa router issues 251 rel nofollow https github com alexmingoia koa router issues 251 ppThanks in advance for your help pThere is no issue with koa router You can accomplish this with plain old middleware ppre code Redirects hello world to hello world function removeTrailingSlash return function next if this path length gt amp amp this path endsWith this redirect this path slice this path length return yield next Redirects hello world to hello world function removeQMark return function next if this path search this redirect this path return yield next Middlewareapp use removeTrailingSlash app use removeQMark app use router app Routesapp all frontRoutes home index app listen 3000 code pre 18769,456344,1001585,NULL,NULL,NULL,0,NULL,NULL 18770,12536,9172,Notable Question Revival Taxonomist Nice Answer Yearling Notable Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 18771,157328,250407,Popular Question Nice Answer Enlightened Famous Question Yearling Popular Question Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18772,1229619,326976,NULL,NULL,NULL,0,NULL,NULL 18773,105533,507617,NULL,NULL,NULL,0,NULL,NULL 18774,773495,214935,Notable Question Famous Question Popular Question Yearling Custodian Custodian Yearling Civic Duty Caucus Necromancer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18775,51506,219083,Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 18776,1607051,271358,Notable Question Good Question Notable Question Good Question Yearling Organizer Yearling Tag Editor Yearling Yearling Tenacious,NULL,NULL,0,NULL,NULL 18777,94241,1327931,Editor Excavator,NULL,NULL,0,NULL,NULL 18778,4516845,1467613,NULL,NULL,NULL,0,NULL,NULL 18779,11788,160863,Nice Answer Yearling Announcer Yearling Popular Question Necromancer Good Answer Populist Popular Question Nice Question Yearling Notable Question Notable Question Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 18780,1141054,812994,NULL,NULL,NULL,0,NULL,NULL 18781,297961,1405520,Teacher Informed Supporter Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18782,329106,757831,NULL,NULL,NULL,0,NULL,NULL 18783,308827,13132,Yearling Nice Answer Enlightened Yearling Caucus,NULL,NULL,0,NULL,NULL 18784,3273481,246835,NULL,NULL,NULL,0,NULL,NULL 18785,103932,76492,NULL,NULL,NULL,0,NULL,NULL 18786,239907,504629,NULL,NULL,NULL,0,NULL,NULL 18787,1243537,317532,Revival Famous Question Nice Question Good Question Yearling Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 18788,31678,158599,NULL,NULL,NULL,0,NULL,NULL 18789,404197,1388632,NULL,NULL,NULL,0,NULL,NULL 18790,182500,356882,NULL,NULL,NULL,0,NULL,NULL 18791,2360497,424759,Supporter Popular Question,NULL,NULL,0,NULL,NULL 18792,1902565,424759,Supporter Popular Question,NULL,NULL,0,NULL,NULL 18793,1124853,1146780,NULL,NULL,NULL,0,NULL,NULL 18794,484641,1038278,Autobiographer,NULL,NULL,0,NULL,NULL 18795,559119,932032,NULL,NULL,NULL,0,NULL,NULL 18796,179809,564023,Supporter,NULL,NULL,0,NULL,NULL 18797,19574,388951,Good Question Necromancer Good Answer Popular Question Necromancer Popular Question Nice Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Documentation Pioneer Necromancer Necromancer Popular Question Revival Notable Question Inquisitive Explainer Nice Question Mortarboard Civic Duty Notable Question Popular Question Popular Question Popular Question Good Answer Yearling Popular Question Announcer Necromancer Popular Question Announcer Announcer Documentation User Notable Question Nice Answer Popular Question Nice Answer Enlightened Announcer Necromancer Nice Answer Popular Question Popular Question Necromancer Yearling Popular Question Necromancer Notable Question Necromancer,NULL,NULL,0,NULL,NULL 18798,153686,421834,NULL,NULL,NULL,0,NULL,NULL 18799,320787,1424723,NULL,NULL,NULL,0,NULL,NULL 18800,174655,708498,NULL,NULL,NULL,0,NULL,NULL 18801,393029,422639,NULL,NULL,NULL,0,NULL,NULL 18802,2658719,422639,NULL,NULL,NULL,0,NULL,NULL 18803,46556,374773,Yearling,NULL,NULL,0,NULL,NULL 18804,530254,146309,Pundit Civic Duty Promoter Popular Question Good Answer Custodian Informed Strunk & White Yearling Proofreader Suffrage Sportsmanship Necromancer Vox Populi Tag Editor Good Question Caucus Constituent Archaeologist Custodian Reviewer Investor Custodian Altruist Cleanup Disciplined Fanatic Electorate Guru Popular Question Caucus Yearling Constituent Nice Answer Self-Learner Popular Question Documentation User Census Benefactor Popular Question Caucus Constituent Notable Question Popular Question Popular Question Famous Question Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 18805,1173702,1459341,Informed Autobiographer,NULL,NULL,0,NULL,NULL 18806,587168,423734,Necromancer Nice Answer Notable Question Famous Question Yearling Necromancer Custodian Good Answer Census Popular Question Yearling Good Answer Custodian Yearling Necromancer Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 18807,901344,595053,NULL,NULL,NULL,0,NULL,NULL 18808,678141,255833,NULL,NULL,NULL,0,NULL,NULL 18809,534134,883592,NULL,NULL,NULL,0,NULL,NULL 18810,146945,1241802,NULL,NULL,NULL,0,NULL,NULL 18811,261269,1435411,NULL,NULL,NULL,0,NULL,NULL 18812,242819,716443,Nice Answer Enlightened Yearling Guru Informed Caucus Nice Answer Nice Answer Enlightened Announcer Nice Answer Yearling Nice Answer Good Answer Announcer Announcer Caucus Yearling,NULL,NULL,0,NULL,NULL 18813,858818,660902,Promoter Self-Learner Nice Question Popular Question,NULL,NULL,0,NULL,NULL 18814,896628,721927,NULL,NULL,NULL,0,NULL,NULL 18815,181501,1214902,Civic Duty Yearling Excavator Guru Nice Answer Revival Critic Yearling Announcer Necromancer Yearling Announcer Necromancer Citizen Patrol,NULL,NULL,0,NULL,NULL 18816,186686,751003,NULL,NULL,NULL,0,NULL,NULL 18817,21112,1396139,NULL,NULL,NULL,0,NULL,NULL 18818,108120,216597,Yearling Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 18819,14636,616693,Curious Popular Question Yearling Citizen Patrol Critic Informed Autobiographer Notable Question Nice Answer Custodian,NULL,NULL,0,NULL,NULL 18820,894508,1230647,NULL,NULL,NULL,0,NULL,NULL 18821,141860,1055001,Popular Question Nice Question Yearling Popular Question Taxonomist Notable Question Yearling Revival Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 18822,13179,1519926,NULL,NULL,NULL,0,NULL,NULL 18823,161044,709422,NULL,NULL,NULL,0,NULL,NULL 18824,84377,1287421,Notable Question,NULL,NULL,0,NULL,NULL 18825,1203927,782368,Editor Enthusiast Notable Question Famous Question,NULL,NULL,0,NULL,NULL 18826,7262,1498545,NULL,NULL,NULL,0,NULL,NULL 18827,581650,726898,NULL,NULL,NULL,0,NULL,NULL 18828,480078,604266,NULL,NULL,NULL,0,NULL,NULL 18829,5181412,604266,NULL,NULL,NULL,0,NULL,NULL 18830,543634,1516105,NULL,NULL,NULL,0,NULL,NULL 18831,442009,1340084,NULL,NULL,NULL,0,NULL,NULL 18832,160436,78053,Yearling Nice Answer Enlightened Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 18833,157389,1243898,Custodian Editor Supporter Necromancer Yearling Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 18834,1167006,740472,Yearling Good Question Famous Question Nice Question Nice Question Caucus Famous Question Custodian Yearling Suffrage Vox Populi Electorate Informed Caucus Good Answer Documentation User Good Question Popular Question Caucus Yearling Favorite Question Great Answer,NULL,NULL,0,NULL,NULL 18835,184944,811202,NULL,NULL,NULL,0,NULL,NULL 18836,610601,321678,Yearling,NULL,NULL,0,NULL,NULL 18837,19445,321678,Yearling,NULL,NULL,0,NULL,NULL 18838,99018,1006963,Scholar Yearling,NULL,NULL,0,NULL,NULL 18839,288353,988437,NULL,NULL,NULL,0,NULL,NULL 18840,946328,856305,Caucus Popular Question,NULL,NULL,0,NULL,NULL 18841,41660,553935,Necromancer,NULL,NULL,0,NULL,NULL 18842,293760,302760,Yearling Caucus Yearling Famous Question Popular Question Good Answer Famous Question Popular Question Notable Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 18843,242162,492338,NULL,NULL,NULL,0,NULL,NULL 18844,12146,425524,Notable Question Nice Answer Notable Question Yearling Notable Question Popular Question Famous Question Nice Question Popular Question Popular Question Yearling Great Question Popular Question Citizen Patrol Notable Question Popular Question Favorite Question Yearling,NULL,NULL,1,How to set common prefix for all tables in SQLAlchemy python sqlalchemy pI know there is way to instrument SQLAlchemy to prepend common codeprefix code to all strongcolumns strong is it possible to add common codeprefix code to all strongtable names strong derived from single codedeclarative base code,NULL 18845,34607,191221,Nice Answer Custodian Custodian Critic Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 18846,159075,400360,NULL,NULL,NULL,0,NULL,NULL 18847,903246,510281,NULL,NULL,NULL,0,NULL,NULL 18848,65387,93397,Teacher,NULL,NULL,0,NULL,NULL 18849,2179215,862521,Excavator Caucus,NULL,NULL,0,NULL,NULL 18850,1976923,862521,Excavator Caucus,NULL,NULL,0,NULL,NULL 18851,182175,364244,Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 18852,8850504,476838,Popular Question Critic Popular Question Caucus Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 18853,251517,756376,Notable Question,NULL,NULL,0,NULL,NULL 18854,20222,1354670,NULL,NULL,NULL,0,NULL,NULL 18855,244443,1311537,NULL,NULL,NULL,0,NULL,NULL 18856,82149,1074787,NULL,NULL,NULL,0,NULL,NULL 18857,96110,492084,Good Answer Yearling Guru Critic,NULL,NULL,0,NULL,NULL 18858,2504195,871182,NULL,NULL,NULL,0,NULL,NULL 18859,437867,871182,NULL,NULL,NULL,0,NULL,NULL 18860,346108,1226260,NULL,NULL,NULL,0,NULL,NULL 18861,1928682,773419,NULL,NULL,NULL,0,NULL,NULL 18862,127187,773419,NULL,NULL,NULL,0,NULL,NULL 18863,4160,1240484,NULL,NULL,NULL,0,NULL,NULL 18864,1770,408546,Yearling,NULL,NULL,0,NULL,NULL 18865,52405,1562732,Popular Question,NULL,NULL,0,NULL,NULL 18866,451937,1467096,NULL,NULL,NULL,0,NULL,NULL 18867,145367,555428,NULL,NULL,NULL,0,NULL,NULL 18868,872719,398899,NULL,NULL,NULL,0,NULL,NULL 18869,299640,283987,NULL,NULL,NULL,0,NULL,NULL 18870,730683,176740,Popular Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 18871,236058,702601,Good Answer Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question Great Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 18872,1113226,906284,NULL,NULL,NULL,0,NULL,NULL 18873,39475,1112095,Editor Excavator,NULL,NULL,0,NULL,NULL 18874,92625,158566,Critic Enthusiast,NULL,NULL,0,NULL,NULL 18875,432580,606158,NULL,NULL,NULL,0,NULL,NULL 18876,267270,67245,Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18877,92186,1103892,Notable Question Nice Question Self-Learner Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Favorite Question Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Good Question Popular Question Great Question Nice Answer Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 18878,217705,754366,Popular Question,NULL,NULL,0,NULL,NULL 18879,7982790,754366,Popular Question,NULL,NULL,0,NULL,NULL 18880,98108,783679,NULL,NULL,NULL,0,NULL,NULL 18881,42354,211057,NULL,NULL,NULL,0,NULL,NULL 18882,166599,1284288,NULL,NULL,NULL,0,NULL,NULL 18883,73997,1451820,Nice Answer Good Answer Yearling Popular Question Good Answer Guru Good Answer Good Answer Yearling Nice Answer Proofreader Notable Question Good Question Nice Answer Enlightened Guru Custodian Guru Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 18884,208015,1536641,NULL,NULL,NULL,0,NULL,NULL 18885,175580,1343753,NULL,NULL,NULL,0,NULL,NULL 18886,872555,1233491,NULL,NULL,NULL,0,NULL,NULL 18887,746318,679630,NULL,NULL,NULL,0,NULL,NULL 18888,15044,922760,NULL,NULL,NULL,0,NULL,NULL 18889,532099,1555340,NULL,NULL,NULL,0,NULL,NULL 18890,364591,1084368,Popular Question,NULL,NULL,0,NULL,NULL 18891,203101,987209,Caucus Civic Duty,NULL,NULL,0,NULL,NULL 18892,376191,1218919,Yearling,NULL,NULL,0,NULL,NULL 18893,5750,4657,Notable Question Nice Question Notable Question Yearling Good Question Popular Question Yearling Famous Question Famous Question Benefactor Famous Question Yearling,NULL,NULL,0,NULL,NULL 18894,707625,923720,Guru Great Answer Yearling Caucus Census Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18895,191447,539857,Popular Question,NULL,NULL,0,NULL,NULL 18896,380306,184239,NULL,NULL,NULL,0,NULL,NULL 18897,376885,109396,Yearling Caucus Civic Duty Excavator Citizen Patrol,NULL,pYou can do that in one command ppre codeopenssl req x509 newkey rsa 4096 keyout key pem out cert pem days 365 code prepYou can also add code nodes code short for codeno DES code if you don want to protect your private key with passphrase otherwise it will prompt you for at least character password The days parameter 365 you can replace with any number to affect expiration date It will then prompt you for things like Country Name but you can just hit enter and accept defaults ppAdd code subj CN localhost code to suppress questions about the contents of the certificate replace codelocalhost code with your desired domain ppSelf signed certs are not validated with any third party unless you import them to the browsers previously If you need more security you should use certificate signed by CA Remember to use sha256 to generate SHA 256 based certificate,0,NULL,NULL 18898,805996,1032997,NULL,NULL,NULL,0,NULL,NULL 18899,181138,1236417,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Census Yearling,NULL,NULL,0,NULL,NULL 18900,517959,302206,Notable Question,NULL,NULL,0,NULL,NULL 18901,159662,97672,Good Answer Yearling Census Yearling Census Yearling,NULL,NULL,0,NULL,NULL 18902,100102,641263,Revival Yearling Necromancer Nice Answer Revival Good Answer Good Answer Nice Answer Yearling Civic Duty Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 18903,63687,726969,Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 18904,631915,285636,Popular Question,NULL,NULL,0,NULL,NULL 18905,198438,636114,NULL,NULL,NULL,0,NULL,NULL 18906,431965,871737,Revival Yearling,NULL,NULL,0,NULL,NULL 18907,398231,1301014,Excavator Critic Informed Popular Question Popular Question Yearling Caucus Popular Question Peer Pressure Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 18908,157414,1140577,Nice Answer Enlightened Revival Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 18909,1076954,924138,NULL,NULL,NULL,0,NULL,NULL 18910,123289,448192,Popular Question Famous Question Famous Question java Yearling Nice Question Famous Question Popular Question Nice Question Good Answer Notable Question Yearling Documentation User Good Question Cleanup Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 18911,686057,1063733,Popular Question,NULL,NULL,0,NULL,NULL 18912,18958,333166,NULL,NULL,NULL,0,NULL,NULL 18913,1163907,119190,Tumbleweed Nice Question Yearling Caucus Constituent Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 18914,496386,549298,NULL,NULL,NULL,0,NULL,NULL 18915,137740,227477,NULL,NULL,NULL,0,NULL,NULL 18916,1359823,140510,Announcer Nice Answer Guru Nice Answer Enlightened Yearling Caucus Custodian Citizen Patrol Announcer Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18917,125357,140510,Announcer Nice Answer Guru Nice Answer Enlightened Yearling Caucus Custodian Citizen Patrol Announcer Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18918,153608,325809,Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Necromancer Good Question Good Question Good Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Good Question Notable Question Nice Question Famous Question Notable Question Nice Answer Notable Question Famous Question Yearling Popular Question Popular Question Nice Question Necromancer Notable Question Popular Question Popular Question,NULL,Rep type in GHC Generics haskell generic programming pI am trying to build codeDefault code class that automagically knows how to create default values So read the href https wiki haskell org GHC Generics rel nofollow relevan wiki page and my problem comes down to this Why does this typecheck ppre code LANGUAGE FlexibleContexts LANGUAGE DeriveGeneric LANGUAGE DefaultSignatures import GHC Generics From https wiki haskell org GHC Generics sort of class GSerialize where gput gt Int class Serialize where put gt Int default put Generic GSerialize Rep gt gt Int put gput from code prepBut this doesn ppre code LANGUAGE FlexibleContexts LANGUAGE DeriveGeneric LANGUAGE DefaultSignatures import GHC Genericsclass GDefault where gdef aclass Default where def default def Generic GDefault Rep gt def gdef from code prepThe error is ppre code• Expecting one more argument to ‘Rep a’ Expected type but ‘Rep a’ has kind gt ’• In the first argument of ‘GDefault’ namely ‘Rep a’ In the type signature def Generic GDefault Rep gt In the class declaration for ‘Default’ code pre feel quite dumb it actually what Alec suggests,1,Rep type in GHC Generics haskell generic programming pI am trying to build codeDefault code class that automagically knows how to create default values So read the href https wiki haskell org GHC Generics rel nofollow relevan wiki page and my problem comes down to this Why does this typecheck ppre code LANGUAGE FlexibleContexts LANGUAGE DeriveGeneric LANGUAGE DefaultSignatures import GHC Generics From https wiki haskell org GHC Generics sort of class GSerialize where gput gt Int class Serialize where put gt Int default put Generic GSerialize Rep gt gt Int put gput from code prepBut this doesn ppre code LANGUAGE FlexibleContexts LANGUAGE DeriveGeneric LANGUAGE DefaultSignatures import GHC Genericsclass GDefault where gdef aclass Default where def default def Generic GDefault Rep gt def gdef from code prepThe error is ppre code• Expecting one more argument to ‘Rep a’ Expected type but ‘Rep a’ has kind gt ’• In the first argument of ‘GDefault’ namely ‘Rep a’ In the type signature def Generic GDefault Rep gt In the class declaration for ‘Default’ code pre,NULL 18919,113400,11206,Famous Question Yearling Yearling Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18920,138855,767423,NULL,NULL,NULL,0,NULL,NULL 18921,1320952,9719,Nice Answer Enlightened Yearling Electorate Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18922,459457,1430309,NULL,NULL,NULL,0,NULL,NULL 18923,164332,839578,NULL,NULL,NULL,0,NULL,NULL 18924,301246,485088,Necromancer Great Answer Necromancer Populist Yearling Good Answer Pundit Nice Answer Enlightened Yearling Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 18925,208517,164114,NULL,NULL,NULL,0,NULL,NULL 18926,464297,1495509,NULL,NULL,NULL,0,NULL,NULL 18927,200195,9401,Popular Question Nice Answer Yearling Popular Question Great Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 18928,360538,259893,NULL,NULL,NULL,0,NULL,NULL 18929,75671,892290,Enthusiast Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18930,296249,858377,NULL,NULL,NULL,0,NULL,NULL 18931,249006,1311633,Famous Question Yearling,NULL,NULL,0,NULL,NULL 18932,911269,860737,Notable Question,NULL,NULL,0,NULL,NULL 18933,452853,1287404,NULL,NULL,NULL,0,NULL,NULL 18934,397182,1239636,NULL,NULL,NULL,0,NULL,NULL 18935,4277294,923839,Notable Question Curious Popular Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 18936,61979,906674,NULL,NULL,NULL,0,NULL,NULL 18937,101496,506494,NULL,NULL,NULL,0,NULL,NULL 18938,1512849,1342393,NULL,NULL,NULL,0,NULL,NULL 18939,887791,1312623,NULL,NULL,NULL,0,NULL,NULL 18940,219794,312962,Populist Necromancer Nice Answer Nice Answer Enlightened Yearling Electorate Nice Answer Enlightened Good Answer Nice Answer Nice Answer symfony Yearling Nice Answer Enlightened Pundit Good Answer Custodian Favorite Question Good Answer Necromancer Yearling Nice Answer Enlightened Strunk & White,NULL,pIn my case the select2 would open correctly if there was zero or more pills ppBut if there was one or more pills and deleted them all it would shrink to the smallest width My solution was simply ppre code myselect select2 width 100 code pre resolve didn work for me 100 did that half an hour hopelessly searching for an answer resolved thanks,0,NULL,NULL 18941,157265,450845,NULL,NULL,NULL,0,NULL,NULL 18942,14084,6819,Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Great Answer Nice Answer asp.net-web-api Good Answer Guru Nice Answer Enlightened Guru Nice Answer Guru Nice Answer Enlightened Announcer Nice Answer Great Answer Nice Answer Guru Good Answer Nice Answer Nice Answer Enlightened Populist Revival Nice Answer Enlightened Good Answer Great Answer c# Yearling Nice Answer Enlightened .net Great Answer Nice Answer Nice Answer Caucus Nice Answer Good Answer Nice Answer Nice Answer Good Answer Great Answer Generalist Good Answer Nice Answer Guru Nice Answer Good Answer Great Answer Good Answer Great Answer Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Cleanup Nice Answer Nice Answer Enlightened Good Answer hateoas Caucus Good Answer Good Answer Guru dotnet-httpclient Nice Answer Great Answer Yearling Famous Question Documentation User Great Answer Good Answer Nice Answer Good Answer Popular Question Nice Answer Nice Answer Enlightened Guru Great Answer Great Answer Nice Answer Nice Answer Enlightened Guru Caucus Nice Answer Great Answer Nice Answer Nice Answer Good Answer Nice Answer Necromancer Nice Answer Enlightened Good Answer Yearling Notable Question Announcer Nice Answer Enlightened Good Answer Guru,NULL,pYou can replace the core HttpMessageHandler with fake one Something that looks like this ppre codepublic class FakeResponseHandler DelegatingHandler private readonly Dictionary lt Uri HttpResponseMessage gt FakeResponses new Dictionary lt Uri HttpResponseMessage gt public void AddFakeResponse Uri uri HttpResponseMessage responseMessage FakeResponses Add uri responseMessage protected async override Task lt HttpResponseMessage gt SendAsync HttpRequestMessage request System Threading CancellationToken cancellationToken if FakeResponses ContainsKey request RequestUri return FakeResponses request RequestUri else return new HttpResponseMessage HttpStatusCode NotFound RequestMessage request code prepand then you can create client that will use the fake handler ppre codevar fakeResponseHandler new FakeResponseHandler fakeResponseHandler AddFakeResponse new Uri http example org test new HttpResponseMessage HttpStatusCode OK var httpClient new HttpClient fakeResponseHandler var response1 await httpClient GetAsync http example org notthere var response2 await httpClient GetAsync http example org test Assert Equal response1 StatusCode HttpStatusCode NotFound Assert Equal response2 StatusCode HttpStatusCode OK code pre Yup that makes sense,0,NULL,NULL 18943,441879,965346,Curious Popular Question,NULL,NULL,0,NULL,NULL 18944,4975646,454547,NULL,NULL,NULL,0,NULL,NULL 18945,162926,83879,Notable Question Caucus Popular Question Popular Question Yearling Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 18946,166863,12526,Notable Question Nice Answer Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 18947,103824,234706,NULL,NULL,NULL,0,NULL,NULL 18948,74249,910600,Yearling,NULL,NULL,0,NULL,NULL 18949,854702,864024,NULL,NULL,NULL,0,NULL,NULL 18950,178225,743558,NULL,NULL,NULL,0,NULL,NULL 18951,1479780,1143275,NULL,NULL,NULL,0,NULL,NULL 18952,99682,1347179,NULL,NULL,NULL,0,NULL,NULL 18953,370271,121269,Editor Excavator,NULL,NULL,0,NULL,NULL 18954,151784,1268695,NULL,NULL,NULL,0,NULL,NULL 18955,6660430,1268695,NULL,NULL,NULL,0,NULL,NULL 18956,131498,299237,NULL,NULL,NULL,0,NULL,NULL 18957,165778,1138086,NULL,NULL,NULL,0,NULL,NULL 18958,1320900,1138086,NULL,NULL,NULL,0,NULL,NULL 18959,100216,141451,Yearling,NULL,NULL,0,NULL,NULL 18960,185895,6065,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 18961,353898,1034903,NULL,NULL,NULL,0,NULL,NULL 18962,208991,357530,NULL,NULL,NULL,0,NULL,NULL 18963,233311,841830,Nice Question Notable Question r Great Answer Notable Question Popular Question Nice Answer Popular Question Popular Question Yearling Nice Answer server-sent-events Booster Popular Question Popular Question Popular Question Announcer Revival Necromancer Nice Answer Nice Question Good Question Fanatic Caucus Popular Question Constituent phantomjs Good Answer Popular Question Popular Question Popular Question Nice Answer Nice Answer Enlightened Announcer Popular Question Popular Question Pundit Notable Question phpunit Notable Question Announcer Announcer Notable Question Nice Question Yearling Caucus Popular Question Popular Question Popular Question Popular Question Investor Altruist Announcer Custodian h2o Nice Question Announcer Revival Announcer Announcer Popular Question Announcer Famous Question Popular Question Announcer Announcer Popular Question Announcer Socratic Announcer Good Question Caucus Good Answer Popular Question Notable Question Notable Question Announcer Nice Answer Enlightened Announcer Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Necromancer Announcer Notable Question Revival Nice Answer Nice Question Popular Question Announcer,NULL,pAt the top of the problem unit test function or if all functions are affected then in codesetUp code or even codepublic static function setUpBeforeClass code add this code ppre code code prepOr in long hand ppre code prev error reporting session start error reporting prev code prepIt looks like something you should never do but it is perfect here because emsuppressing an error message em was exactly what we wanted to do phrpAs noted in comment on hakre answer fiddling with ini settings never worked not even trying this combination before calling codesession start code ppre code ini set session use cookies ini set session use only cookies ini set session use trans sid code pre It was working as in no error being given when running tests all tests passed at the time wrote the post with whatever version of PHP and phpunit was using at the time What version are you using It could be something in phpunit has changed that now stops with hacky workaround working Or it could ve been some other error in your tests,0,NULL,NULL 18964,397878,851496,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 18965,121309,461660,NULL,NULL,NULL,0,NULL,NULL 18966,52913,249078,NULL,NULL,NULL,0,NULL,NULL 18967,547617,1004954,NULL,NULL,NULL,0,NULL,NULL 18968,1011104,1207056,Yearling Notable Question,NULL,NULL,0,NULL,NULL 18969,515913,1235178,Popular Question,NULL,NULL,0,NULL,NULL 18970,487107,306035,Yearling Necromancer Critic Nice Answer,NULL,NULL,0,NULL,NULL 18971,222151,77,Nice Answer Yearling Great Answer Nice Answer Caucus Guru Nice Answer Nice Answer sql Good Answer Yearling Good Answer Documentation User Nice Answer Enlightened Census Good Answer Custodian Custodian Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 18972,1230471,1229029,NULL,NULL,NULL,0,NULL,NULL 18973,420780,1135323,Notable Question,NULL,NULL,0,NULL,NULL 18974,120441,1164248,NULL,NULL,NULL,0,NULL,NULL 18975,137014,656114,Teacher Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 18976,43596,106310,Student,NULL,NULL,0,NULL,NULL 18977,351489,1417766,Notable Question Curious,NULL,NULL,0,NULL,NULL 18978,300259,963700,Student Great Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 18979,257100,424554,Custodian Popular Question Yearling Notable Question Yearling Popular Question Popular Question Popular Question Yearling Famous Question Famous Question Great Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 18980,37251,948775,NULL,NULL,NULL,0,NULL,NULL 18981,85937,53303,Good Answer Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 18982,115391,1427098,Nice Answer Enlightened Nice Answer Yearling Necromancer Nice Answer Enlightened Notable Question Guru Popular Question Caucus Constituent Nice Answer Necromancer Great Answer Revival Nice Answer Enlightened Necromancer Yearling Nice Answer Caucus Constituent Necromancer Nice Answer Census Nice Answer Good Answer Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Good Answer Great Answer Announcer Peer Pressure,NULL,What language is the Go programming language written in go pI think the title is self explanatory voting to close this question as off topic because this is not practical specific programming problem strongGradle based builds strong pp strong1 strong Create codesecure properties code file to contain your passwords ppre class lang none prettyprint override codekey store password lt your keystore password gt key alias password lt your alias password gt code prepYou probably don want it under version control which is why we re putting the passwords in separate code properties code file If you don mind having your passwords under version control you can enter your passwords directly into codebuild gradle code but that not recommended so not directly showing that pp strong2 strong Set up your codebuild gradle code as follows ppre codeProperties secureProperties new Properties secureProperties load new FileInputStream secure properties android signingConfigs release storeFile file lt path to your keystore gt storePassword secureProperties key store password keyAlias lt alias name gt keyPassword secureProperties key alias password buildTypes release signingConfig signingConfigs release code prepAnd that it code gradlew assembleRelease code now builds and signs my APK without prompting for my password pp strongAnt based builds strong pp strong1 strong Create codesecure properties code file to contain your passwords ppre class lang none prettyprint override codekey store password lt your keystore password gt key alias password lt your alias password gt code prepYou probably don want it under version control which is why we re not putting the passwords in one of the existing code properties code files If you don mind having your passwords under version control put these two lines in codeant properties code and you re done pp strong2 strong Create codecustom rules xml code file to tell the build system about your codesecure properties code file ppre code lt xml version encoding UTF gt lt project name custom rules default help gt lt property file secure properties gt lt project gt code prepI not familiar with this build system so not sure about the codeproject code element codename code or codedefault code properties but believe what chose should work for everybody pp strong2b strong Any recent version of the Android SDK tools should be good to go but if for some reason your codebuild xml code file doesn contain the following you should add it ppre code lt import file custom rules xml optional true gt code prepAnd that should be it codeant release code now builds and signs my APK without prompting for my password Funny timing just migrated BatteryBot to use Gradle based builds this very afternoon Thanks for reminding me that should update this answer with the Gradle setup just sorted out strongGradle based builds strong pp strong1 strong Create codesecure properties code file to contain your passwords ppre class lang none prettyprint override codekey store password lt your keystore password gt key alias password lt your alias password gt code prepYou probably don want it under version control which is why we re putting the passwords in separate code properties code file If you don mind having your passwords under version control you can enter your passwords directly into codebuild gradle code but that not recommended so not directly showing that pp strong2 strong Set up your codebuild gradle code as follows ppre codeProperties secureProperties new Properties secureProperties load new FileInputStream secure properties android signingConfigs release storeFile file lt path to your keystore gt storePassword secureProperties key store password keyAlias lt alias name gt keyPassword secureProperties key alias password buildTypes release signingConfig signingConfigs release code prepAnd that it code gradlew assembleRelease code now builds and signs my APK without prompting for my password pp strongAnt based builds strong pp strong1 strong Create codesecure properties code file to contain your passwords ppre class lang none prettyprint override codekey store password lt your keystore password gt key alias password lt your alias password gt code prepYou probably don want it under version control which is why we re not putting the passwords in one of the existing code properties code files If you don mind having your passwords under version control put these two lines in codeant properties code and you re done pp strong2 strong Create codecustom rules xml code file to tell the build system about your codesecure properties code file ppre code lt xml version encoding UTF gt lt project name custom rules default help gt lt property file secure properties gt lt project gt code prepI not familiar with this build system so not sure about the codeproject code element codename code or codedefault code properties but believe what chose should work for everybody pp strong2b strong Any recent version of the Android SDK tools should be good to go but if for some reason your codebuild xml code file doesn contain the following you should add it ppre code lt import file custom rules xml optional true gt code prepAnd that should be it codeant release code now builds and signs my APK without prompting for my password updated the answer right before commenting to you the part at the top for Gradle based builds is new,0,, 18983,973837,716006,NULL,NULL,NULL,0,NULL,NULL 18984,11210,381865,Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 18985,1588569,745628,NULL,NULL,NULL,0,NULL,NULL 18986,3475572,745628,NULL,NULL,NULL,0,NULL,NULL 18987,54998,601636,NULL,NULL,NULL,0,NULL,NULL 18988,306813,1441344,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 18989,458397,222364,Yearling Custodian Student Scholar Yearling Yearling Mortarboard Yearling Nice Answer java Tenacious Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 18990,52596,152879,Nice Answer Autobiographer latex Yearling Yearling Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 18991,8955,1487169,NULL,NULL,NULL,0,NULL,NULL 18992,24857,72583,Nice Question Nice Answer Popular Question Good Question Nice Question Yearling Popular Question Socratic Famous Question Popular Question Favorite Question Notable Question Nice Question Stellar Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Good Question Good Question Popular Question Popular Question Good Question Notable Question Popular Question Caucus Nice Answer Famous Question Popular Question Nice Question Nice Answer Popular Question Famous Question Yearling Famous Question Famous Question Nice Question Popular Question Popular Question Notable Question Good Question Notable Question Favorite Question Popular Question Famous Question Popular Question Good Question Great Question Announcer Great Question Nice Question Nice Question Popular Question Popular Question Good Question Announcer Famous Question Famous Question Nice Question Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Great Question Yearling Popular Question Caucus Popular Question Favorite Question Famous Question Popular Question Famous Question Popular Question Popular Question Great Question Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Popular Question Notable Question Good Question Notable Question Nice Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 18993,250947,936083,Custodian Custodian Custodian Custodian Good Answer Necromancer Nice Answer Nice Answer Yearling Necromancer Notable Question Caucus Popular Question Custodian Famous Question Caucus Good Answer Yearling Documentation User Custodian Good Answer Good Answer Popular Question Informed Pundit Announcer Census Caucus Guru Popular Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 18994,115241,1016320,NULL,NULL,NULL,0,NULL,NULL 18995,407439,444849,NULL,NULL,NULL,0,NULL,NULL 18996,582100,455536,Popular Question Nice Answer Famous Question Critic Electorate Yearling Notable Question,NULL,NULL,0,NULL,NULL 18997,4631838,455536,Popular Question Nice Answer Famous Question Critic Electorate Yearling Notable Question,NULL,NULL,0,NULL,NULL 18998,469426,482770,Good Question Popular Question Yearling Nice Question Nice Answer Famous Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 18999,191097,1040336,NULL,NULL,NULL,0,NULL,NULL 19000,1101455,916063,NULL,NULL,NULL,0,NULL,NULL 19001,2302796,244098,Famous Question Notable Question Yearling Notable Question,NULL,,0,, 19002,1021541,340537,Famous Question Popular Question Custodian Popular Question Yearling Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19003,479804,56295,Informed,NULL,NULL,0,NULL,NULL 19004,960119,1099279,NULL,NULL,NULL,0,NULL,NULL 19005,154243,415436,Popular Question,NULL,NULL,0,NULL,NULL 19006,169953,1257954,Yearling Guru Nice Answer Nice Answer Enlightened Yearling Notable Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 19007,490665,1130604,NULL,NULL,NULL,0,NULL,NULL 19008,17472,110093,Popular Question Yearling,NULL,NULL,0,NULL,NULL 19009,5071106,332386,NULL,NULL,NULL,0,NULL,NULL 19010,2088215,739634,NULL,NULL,NULL,0,NULL,NULL 19011,799393,272708,Nice Answer Yearling Good Answer Nice Answer Excavator Notable Question Necromancer Yearling Revival Caucus Nice Answer Census Yearling Custodian Tag Editor Popular Question,NULL,NULL,0,NULL,NULL 19012,155943,181279,Nice Answer Yearling Popular Question Nice Answer Yearling Documentation User Good Answer Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 19013,1088232,680075,NULL,NULL,NULL,0,NULL,NULL 19014,381501,454677,Yearling Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 19015,404567,1277067,Teacher Student,NULL,NULL,0,NULL,NULL 19016,277226,992353,NULL,NULL,NULL,0,NULL,NULL 19017,643811,204535,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19018,49072,204535,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19019,26279,1003565,Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Outspoken Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Proofreader Guru Nice Answer Enlightened Announcer Nice Answer Caucus Guru Nice Answer Enlightened Good Answer Nice Answer Yearling Good Answer Popular Question Guru Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Announcer Good Answer Necromancer Nice Answer Enlightened Guru Caucus Great Answer Good Answer Announcer Nice Answer Good Answer Announcer Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened,NULL,pre code gt foo 10 amp 832171 gt cat foo 10 amp 832171 code pre Loop over your array and cat the individual values then,0,NULL,NULL 19020,54287,89702,Yearling Popular Question Announcer Popular Question Popular Question Civic Duty Yearling Announcer Famous Question Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 19021,572521,1384980,NULL,NULL,NULL,0,NULL,NULL 19022,954663,533982,NULL,NULL,NULL,0,NULL,NULL 19023,15493,10105,Custodian Yearling Proofreader Custodian Famous Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 19024,2228745,423199,Notable Question Citizen Patrol Famous Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Yearling Notable Question Notable Question Caucus Constituent Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Promoter Popular Question Popular Question Benefactor Nice Question Yearling Notable Question Popular Question Nice Question Socratic Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Nice Question Popular Question Caucus Popular Question Nice Question Notable Question Custodian Popular Question Popular Question Popular Question Yearling Popular Question Good Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question,NULL,pOk currently extracting thousands of DOIs from free form text XML and realized that href https stackoverflow com 10300246 89771 my previous approach had few problems namely regarding encoded entities and trailing punctuation so went on reading href http www doi org doi handbook Numbering html rel noreferrer the specification and this is the best could come with phrblockquote pThe DOI prefix shall be composed of directory indicator followed by registrant code These two components shall be separated by full stop period pThe directory indicator shall be 10 The directory indicator distinguishes the entire set of character strings prefix and suffix as digital object identifiers within the resolution system blockquotepEasy enough the initial code code prevents us from matching DOI that doesn start with code10 code ppre code pattern 10 code prehrblockquote pThe second element of the DOI prefix shall be the registrant code The registrant code is unique string assigned to registrant blockquotepAlso all assigned registrant code are numeric and at least digits long so ppre code pattern 10 code prehrblockquote pThe registrant code may be further divided into sub elements for administrative convenience if desired Each sub element of the registrant code shall be preceded by full stop blockquotepre code pattern 10 code prehrblockquote pThe DOI syntax shall be made up of DOI prefix and DOI suffix separated by forward slash blockquotepHowever this isn absolutely necessary section states that uncommon suffix systems may use other conventions such as code10 1000 123456 code instead of code10 1000 123456 code but lets cut some slack ppre code pattern 10 code prehrblockquote pThe DOI name is case insensitive and can incorporate any printable characters from the legal graphic characters of Unicode The DOI suffix shall consist of character string of any length chosen by the registrant Each suffix shall be unique to the prefix element that precedes it The unique suffix can be sequential number or it might incorporate an identifier generated from or based on another system blockquotepNow this is where it gets trickier from all the DOIs have processed saw the following characters besides code 9a zA code of course in their strongsuffixes strong code code so while it doesn exist the DOI code10 1016 12 31 nature S0735 1097 98 2000 12 31 34 code is completely plausible ppThe logical choice would be to use code code or the code graph code PCRE POSIX class so lets do that ppre code pattern 10 or pattern 10 graph code prehrpNow we have difficult problem the code graph code class is super set of the code punct code class which includes characters easily found in free text or any markup language code amp lt gt code among others ppLets just filter the markup ones for now using negative lookahead ppre code pattern 10 amp lt gt or pattern 10 amp lt gt graph code prehrpThe above should cover encoded entities code amp code attribute quotes code code and open close tags code lt gt code ppUnlike markup languages free text usually doesn employ punctuation characters unless they are bounded by at least one space strong emor em strong placed at the end of sentence for instance pblockquote pThis is long DOI code10 1016 12 31 nature S0735 1097 98 2000 12 31 34 code strong strong blockquotepThe solution here is to close our capture group and assert another word boundary ppre code pattern 10 amp lt gt or pattern 10 amp lt gt graph code prepAnd emvoilá em href http regexpal com flags amp regex 5Cb 10 5B 5D 5B0 5D 7B4 2C 7D 3F 3A 5B 5D 5B0 5D 2B 2F 3F 3A 3F 5B 22 26 5C 39 3C 3E 5D 5CS 2B 5Cb amp input This 20is 20a 20short 20DOI 3A 2010 1000 2F123456 0AThis 20is 20NOT 20a 20DOI 3A 204210 1000 2F123456 0AThis 20is 20a 20long 20DOI 3A 2010 1016 12 31 2Fnature S0735 1097 98 2000 2F12 2F31 2F34 3A7 0A 0A10 1007 2F978 642 28108 19 0A10 1007 10 2F978 642 28108 19 20 fictitious 20example 2C 20see 20 40Ju9OR 20comment 0A10 1016 2FS0735 1097 98 00347 0A10 1579 2F0044 7447 2006 35 5C 5B89 3ARDUICP 5C 5D2 CO 3B2 0A 0AAlso 2C 20correctly 20discards 20some 20falsy 20 7CHT ML 20stuff 20like 3A 0A 0A 3Cgeo 20coords 3D 2210 4515260 2C51 1656910 22 3E 3C 2Fgeo 3E rel noreferrer here is demo have this question that finds many DOI patterns https stackoverflow com questions 43683957 whats the correct format of java string regex to identify doi apart from this format of DOI 10 1175 1520 0485 2002 0320870 CT2 CO does anyone have REGEX that can MATCH this format,0,NULL,NULL 19025,499224,1461008,Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Deputy Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer shader Guru Nice Answer Enlightened Good Answer Nice Answer textures Yearling Nice Answer Enlightened Good Answer Autobiographer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Caucus Nice Answer Enlightened Good Answer mesh Nice Answer Nice Answer Good Answer camera Good Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer geometry Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Refiner 3d Great Answer Announcer Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Pundit Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened material Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Announcer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Announcer Nice Answer Caucus Good Answer Announcer Good Answer Constituent Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Good Answer Good Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened canvas Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,pYou do not need to have any objects in your scene to do this ppYou already know the camera position ppUsing codevector unproject camera code you can get ray pointing in the direction you want ppYou just need to extend that ray from the camera position until the coordinate of the tip of the ray is zero ppYou can do that like so ppre codevar vec new THREE Vector3 create once and reusevar pos new THREE Vector3 create once and reusevec set event clientX window innerWidth event clientY window innerHeight vec unproject camera vec sub camera position normalize var distance camera position vec pos copy camera position add vec multiplyScalar distance code prepThe variable codepos code is the position of the point in 3D space under the mouse and in the plane codez code phrpEDIT If you need the point under the mouse and in the plane codez targetZ code replace the distance computation with ppre codevar distance targetZ camera position vec code prepthree js 98 The code is unprotecting point from Normalized Device Coordinate NDC space to world space The value is arbitrary Google NDC space if you do not understand the concept pYou do not need to have any objects in your scene to do this ppYou already know the camera position ppUsing codevector unproject camera code you can get ray pointing in the direction you want ppYou just need to extend that ray from the camera position until the coordinate of the tip of the ray is zero ppYou can do that like so ppre codevar vec new THREE Vector3 create once and reusevar pos new THREE Vector3 create once and reusevec set event clientX window innerWidth event clientY window innerHeight vec unproject camera vec sub camera position normalize var distance camera position vec pos copy camera position add vec multiplyScalar distance code prepThe variable codepos code is the position of the point in 3D space under the mouse and in the plane codez code phrpEDIT If you need the point under the mouse and in the plane codez targetZ code replace the distance computation with ppre codevar distance targetZ camera position vec code prepthree js 98 Yes But be sure not to confuse an orthographic camera frustum as discussed in your link with NDC space They are both boxes but they are different concepts and they have different units pYou do not need to have any objects in your scene to do this ppYou already know the camera position ppUsing codevector unproject camera code you can get ray pointing in the direction you want ppYou just need to extend that ray from the camera position until the coordinate of the tip of the ray is zero ppYou can do that like so ppre codevar vec new THREE Vector3 create once and reusevar pos new THREE Vector3 create once and reusevec set event clientX window innerWidth event clientY window innerHeight vec unproject camera vec sub camera position normalize var distance camera position vec pos copy camera position add vec multiplyScalar distance code prepThe variable codepos code is the position of the point in 3D space under the mouse and in the plane codez code phrpEDIT If you need the point under the mouse and in the plane codez targetZ code replace the distance computation with ppre codevar distance targetZ camera position vec code prepthree js 98 Agreed Fixed and avoided cloning altogether pYou do not need to have any objects in your scene to do this ppYou already know the camera position ppUsing codevector unproject camera code you can get ray pointing in the direction you want ppYou just need to extend that ray from the camera position until the coordinate of the tip of the ray is zero ppYou can do that like so ppre codevar vec new THREE Vector3 create once and reusevar pos new THREE Vector3 create once and reusevec set event clientX window innerWidth event clientY window innerHeight vec unproject camera vec sub camera position normalize var distance camera position vec pos copy camera position add vec multiplyScalar distance code prepThe variable codepos code is the position of the point in 3D space under the mouse and in the plane codez code phrpEDIT If you need the point under the mouse and in the plane codez targetZ code replace the distance computation with ppre codevar distance targetZ camera position vec code prepthree js 98 vec and vec in this answer must return and on the edges of the canvas in the center See this answer https stackoverflow com 13544277 1461008 for how to ensure that when the canvas is inside div pYou have to be precise here ppYou can calculate the visible rectangular region given the camera field of view codecamera fov code and given distance codedist code from the camera ppSince the object presumably has depth you have to pick one plane through the mesh and do the calculation at that distance ppHere is how to calculate the visible codeheight code and codewidth code for given distance codedist code from the camera ppre codevar vFOV THREE Math degToRad camera fov convert vertical fov to radiansvar height Math tan vFOV dist visible heightvar width height camera aspect visible width code prepthree js 87 åpplI I0llwlg Thanks Updated answer pI assume you are using codeWebGLRenderer code ppAs stated in the three js wiki article href https github com mrdoob three js wiki Updates How to Update Things you can only update the content of buffers you cannot resize buffers ppthree js 59 Windolf This http stackoverflow com questions 36426139 incrementally display three js tubegeometry 36439563 36439563 related answer and this http stackoverflow com questions 31399856 drawing line with three js dynamically 31411794 31411794 similar answer may be helpful pYou can convert 3D position to screen coordinates by using pattern like so ppre codevar vector new THREE Vector3 var canvas renderer domElement vector set map to normalized device coordinate NDC spacevector project camera map to 2D screen spacevector Math round vector canvas width vector Math round vector canvas height vector code prepthree js 69 See the math links in http stackoverflow com questions 11966779 learning webgl and three js 11970687 11970687 pYou can use the following pattern for raycasting and it will work correctly even if the camera is the child of another object It works for both perspective and orthographic cameras ppre codevar raycaster new THREE Raycaster create once and reusevar mouse new THREE Vector2 create once and reuse mouse event clientX renderer domElement clientWidth mouse event clientY renderer domElement clientHeight raycaster setFromCamera mouse camera var intersects raycaster intersectObjects objects recursiveFlag code prepthree js 84 Who knows changed the revision number just in case pIn three js an object orientation can be specified by its Euler rotation vector codeobject rotation code The three components of the rotation vector represent the rotation in radians around the object internal axis axis and axis respectively ppThe order in which the rotations are performed is specified by codeobject rotation order code The default order is XYZ rotation around the axis occurs first then the axis then the axis ppRotations are performed with respect to the object eminternal em coordinate system not the world coordinate system This is important So for example after the rotation occurs the object and axes will generally no longer be aligned with the world axes Rotations specified in this way are not unique ppSo for example if in code you specify ppre codecamera rotation radians firstcamera rotation radians secondcamera rotation code prepthe rotations are applied in the object coderotation order code not in the order you specified them ppIn your case you may find it more intuitive to set coderotation order code to YXZ which is equivalent to heading pitch and roll ppFor more information about Euler angles see the href http en wikipedia org wiki Euler angles Wikipedia article Three js follows the Tait–Bryan convention as explained in the article ppthree js 61 Now it is camera rotation order YXZ pTo render both model and its wireframe you can use pattern like this one ppre class lang js prettyprint override code meshvar material new THREE MeshPhongMaterial color 0xff0000 polygonOffset true polygonOffsetFactor positive value pushes polygon further away polygonOffsetUnits var mesh new THREE Mesh geometry material scene add mesh wireframevar geo new THREE EdgesGeometry mesh geometry or WireframeGeometryvar mat new THREE LineBasicMaterial color 0xffffff linewidth var wireframe new THREE LineSegments geo mat mesh add wireframe code prepThe use of codepolygonOffset code will help prevent fighting between the mesh material and the wireframe line Consequently the wireframe will look lot better ppfiddle href http jsfiddle net tfjvggfu 24 rel noreferrer http jsfiddle net tfjvggfu 24 ppEDIT updated to three js 82 If you are running Windows it is likely an ANGLE limitation,1,NULL,How to update colors after vertex colors are changed javascript three js pI copy and paste the whole short html file here to illustrate the problem Basically create simple triangle geometry as global variable When you click the Red button function red is called to render the triangle as red The problem is that clicking Green does not render it as green if the triangle has already been rendered as red ppre code lt html gt lt body gt lt div id container gt lt div gt lt button onclick red gt Red lt button gt lt button onclick green gt Green lt button gt lt script src http threejs org build three js gt lt script gt lt script gt Boilerplate stuff var 300 var 300 var renderer new THREE WebGLRenderer antialias true renderer setSize document getElementById container appendChild renderer domElement var scene new THREE Scene var light new THREE DirectionalLight 0xffffff light position 10 scene add light var camera new THREE PerspectiveCamera 20 1000 camera position 10 var materials new THREE MeshPhongMaterial color 0xffffff shading THREE FlatShading vertexColors THREE VertexColors shininess Make geometry var shape new THREE Shape shape moveTo shape lineTo shape lineTo var geometry new THREE ShapeGeometry shape var obj THREE SceneUtils createMultiMaterialObject geometry materials scene add obj function red change color new THREE Color 0xff0000 renderer render scene camera function green change color new THREE Color 0x00ff00 renderer render scene camera function change color color geometry colorsNeedUpdate true for var lt geometry faces length if geometry faces vertexColors undefined geometry faces vertexColors color else geometry faces vertexColors copy color if geometry faces vertexColors undefined geometry faces vertexColors color else geometry faces vertexColors copy color if geometry faces vertexColors undefined geometry faces vertexColors color else geometry faces vertexColors copy color lt script gt lt body gt lt html gt code pre pYou are changing vertex colors after the first render of mesh ppCurrently you can use the following pattern in three js once the object has been rendered at least once ppre codegeometry faces vertexColors color assigning Color object code prepYou have to use this pattern instead ppre codegeometry faces vertexColors copy color or use set code prepYou must also set the codeneedsUpdate code flag when the vertex colors are changed ppre codegeometry colorsNeedUpdate true code prepConsequently in your program you need to add vertex colors to your geometry when you create it Then just change the color values ppthree js 77 19026,340769,9094,Great Answer Yearling Custodian Custodian Census Caucus Yearling Census Caucus Yearling,NULL,NULL,0,NULL,NULL 19027,18974,417075,NULL,NULL,NULL,0,NULL,NULL 19028,319535,745696,NULL,NULL,NULL,0,NULL,NULL 19029,351705,640100,NULL,NULL,NULL,0,NULL,NULL 19030,141473,848301,Enthusiast Commentator Announcer Caucus,NULL,NULL,0,NULL,NULL 19031,12583,39648,Necromancer Popular Question Nice Question Famous Question Stellar Question Famous Question Good Answer Yearling Nice Question Popular Question Nice Question Necromancer Tumbleweed Popular Question Nice Answer Announcer Nice Answer Enlightened Nice Question Necromancer Necromancer Notable Question Booster Stellar Question Announcer Yearling Necromancer Nice Answer Popular Question Caucus Constituent Custodian Necromancer Good Answer Cleanup Publicist Yearling,NULL,Clear terminal screen for real linux ubuntu terminal gnome terminal konsole pUsing the codeclear code command on the terminal only fools the user into thinking the screen has been cleared you can still see output from the previous commands when you scroll using the mouse This makes life difficult when you are drowning in tsunami of text ppVarious solutions escape code etc which can be found on the Internet are only variations of what the clear command already does ppSo how do you clear the contents of terminal in Linux for real Good point updated the question,0,NULL,NULL 19032,117949,82159,Popular Question Good Answer Popular Question Yearling Revival Popular Question Taxonomist Nice Answer Nice Answer Nice Question Great Answer Famous Question Nice Question Famous Question Yearling Good Answer Famous Question Nice Answer Popular Question Nice Answer Tag Editor Custodian Custodian Notable Question Popular Question Nice Question Famous Question Popular Question Popular Question Citizen Patrol Nice Answer Yearling Notable Question Nice Question Notable Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19033,331938,1271772,Popular Question Notable Question Curious Nice Question Yearling Notable Question Popular Question Critic Popular Question Tumbleweed Self-Learner Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 19034,222950,351032,NULL,NULL,NULL,0,NULL,NULL 19035,1448158,354884,NULL,NULL,NULL,0,NULL,NULL 19036,90696,444149,Suffrage Vox Populi Civic Duty Custodian Custodian Citizen Patrol Yearling Popular Question Yearling Custodian Tenacious Good Question Good Question Yearling Notable Question Popular Question Nice Question Famous Question Excavator Notable Question Notable Question Famous Question Yearling Famous Question Nice Answer Notable Question Caucus Nice Question Notable Question Notable Question Popular Question Caucus Famous Question Nice Question Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 19037,38751,488695,Popular Question Good Question Popular Question Guru Popular Question Notable Question Self-Learner Yearling Custodian Announcer Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 19038,1505015,1256361,NULL,NULL,NULL,0,NULL,NULL 19039,600651,257195,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19040,1222119,879200,NULL,NULL,NULL,0,NULL,NULL 19041,91480,426608,NULL,NULL,NULL,0,NULL,NULL 19042,1080580,844372,Popular Question,NULL,NULL,0,NULL,NULL 19043,454504,120521,Yearling Announcer Favorite Question,NULL,NULL,0,NULL,NULL 19044,68905,1111289,Supporter,NULL,NULL,0,NULL,NULL 19045,636215,17234,Inquisitive Good Question Famous Question Notable Question Notable Question Yearling Good Question Popular Question Popular Question Caucus Yearling Famous Question Good Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 19046,128568,431736,Good Answer Yearling Caucus Populist Guru Great Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 19047,277311,35003,Good Answer Yearling Necromancer Autobiographer Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 19048,177261,49775,Yearling Favorite Question Custodian Caucus Constituent Cleanup Custodian Civic Duty Enlightened Curious Yearling Great Question,NULL,NULL,0,NULL,NULL 19049,80516,153919,Good Question Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 19050,14026,145318,Good Answer Yearling Notable Question Popular Question Yearling Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 19051,309379,339473,NULL,NULL,NULL,0,NULL,NULL 19052,3772,307230,NULL,NULL,NULL,0,NULL,NULL 19053,119275,522583,Notable Question,NULL,NULL,0,NULL,NULL 19054,241200,1202995,Commentator Promoter Enthusiast,NULL,NULL,0,NULL,NULL 19055,5492118,1004975,Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 19056,531587,3154,Notable Question Nice Answer Yearling Popular Question Census Yearling Famous Question Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 19057,391005,597310,Yearling Notable Question Nice Answer Good Answer sql Popular Question Nice Question Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 19058,205403,840868,NULL,NULL,NULL,0,NULL,NULL 19059,38652,668542,NULL,NULL,NULL,0,NULL,NULL 19060,15415,84732,Revival Civic Duty Critic Informed Yearling,NULL,NULL,0,NULL,NULL 19061,189254,917098,NULL,NULL,NULL,0,NULL,NULL 19062,53211,843144,NULL,NULL,NULL,0,NULL,NULL 19063,135360,1501300,Nice Answer Enlightened Supporter Necromancer,NULL,NULL,0,NULL,NULL 19064,4041,154975,Nice Answer Nice Answer Enlightened Good Answer Yearling Yearling Excavator Famous Question Custodian Necromancer Good Question Yearling,NULL,NULL,0,NULL,NULL 19065,505773,404993,Popular Question Popular Question Yearling Notable Question Popular Question Nice Question ruby-on-rails Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 19066,185595,524389,Nice Question Nice Answer Revival Notable Question Yearling Popular Question Populist Great Answer Yearling Popular Question Custodian Custodian Custodian Custodian Custodian Great Answer Guru Good Answer Yearling,NULL,Reference What does this error mean in PHP php mysql debugging warnings h3What is this h3pThis is number of answers about warnings errors and notices you might encounter while programming PHP and have no clue how to fix This is also Community Wiki so everyone is invited to participate in adding to and maintaining this list ph3Why is this h3pQuestions like href https stackoverflow com questions 12769982 reference what does this error mean in php 12770075 12770075 Headers already sent or href https stackoverflow com questions 12769982 reference what does this error mean in php 12769983 12769983 Calling member of non object pop up frequently on Stack nbsp Overflow The root cause of those questions is always the same So the answers to those questions typically repeat them and then show the OP which line to change in his her particular case These answers do not add any value to the site because they only apply to the OP particular code Other users having the same error can not easily read the solution out of it because they are too localized That is sad because once you understood the root cause fixing the error is trivial Hence this list tries to explain the solution in general way to apply ph3What should do here h3pIf your question has been marked as duplicate of this please find your error message below and apply the fix to your code The answers usually contain further links to investigate in case it shouldn be clear from the general answer alone ppIf you want to contribute please add your favorite error message warning or notice one per answer short description what it means even if it is only highlighting terms to their manual page possible solution or debugging approach and listing of existing amp that are of value Also feel free to improve any existing answers ph2The List h2ulli href https stackoverflow com questions 12769982 reference what does this error mean in php 12772851 12772851 Nothing is seen The page is empty and white also known as emWhite Page Screen Of Death em lili href https stackoverflow com 24423272 476 Code doesn run what looks like parts of my PHP code are output lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770075 12770075 Warning Cannot modify header information headers already sent lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysql fetch array expects parameter to be resource boolean given bra href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysql fetch array supplied argument is not valid MySQL result resource bra href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysqli num rows expects parameter to be mysqli result boolean given or similar variations lili href https stackoverflow com questions 12769982 reference what does this error mean in php 14067623 14067623 Warning em function em expects parameter to be resource boolean given lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12820243 12820243 Warning em function em failed to open stream em reason em lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12772244 12772244 Warning open basedir restriction in effect lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 21507314 Warning Division by zero lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 27678436 Warning Illegal string offset XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 22316776 22316776 Parse error syntax error unexpected lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 12770089 Parse error syntax error unexpected XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 13935532 13935532 Parse error syntax error unexpected ENCAPSED AND WHITESPACE lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770129 12770129 Parse error syntax error unexpected PAAMAYIM NEKUDOTAYIM lili href https stackoverflow com questions 23726288 php error unexpected require once expecting function Parse error syntax error unexpected require once REQUIRE ONCE expecting function FUNCTION lili href https stackoverflow com 15539535 1723893 Parse error syntax error unexpected VARIABLE lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770179 12770179 Fatal error Allowed memory size of XXX bytes exhausted tried to allocate XXX bytes lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12769983 12769983 Fatal error Call to member function on non object lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12784048 12784048 Fatal Error Call to Undefined function XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 13879461 13879461 Fatal Error Cannot redeclare XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770530 12770530 Fatal error Can use function return value in write context lili href https stackoverflow com questions 1885302 php what does this error mean abstract method must be compatible Fatal error Declaration of AAA BBB must be compatible with that of CCC BBB lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770317 12770317 Fatal error Using this when not in object context lili href https stackoverflow com 24507107 476 Notice Array to string conversion lili href https stackoverflow com 26572398 367456 Notice Trying to get property of non object error lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12778634 12778634 Notice Undefined variable lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770836 12770836 Notice Undefined Index lili href https stackoverflow com 21793407 3933332 Notice Undefined offset XXX Reference lili href https stackoverflow com 17630869 367456 Notice Uninitialized string offset XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12773272 12773272 Notice Use of undefined constant XXX assumed XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12771239 12771239 MySQL You have an error in your SQL syntax check the manual that corresponds to your MySQL server version for the right syntax to use near at line lili href https stackoverflow com 21942832 367456 Strict Standards Non static method em lt class lt method em should not be called statically lili href https stackoverflow com 52771226 1255289 Warning function expects parameter to be boolean string integer li ulpAlso see pulli href https stackoverflow com questions 3737139 reference what does this symbol mean in php Reference What does this symbol mean in PHP li ul Why can these all be separate questions and answers This isn very StackOverflow here,0,NULL,NULL 19067,786966,524389,Nice Question Nice Answer Revival Notable Question Yearling Popular Question Populist Great Answer Yearling Popular Question Custodian Custodian Custodian Custodian Custodian Great Answer Guru Good Answer Yearling,NULL,Reference What does this error mean in PHP php mysql debugging warnings h3What is this h3pThis is number of answers about warnings errors and notices you might encounter while programming PHP and have no clue how to fix This is also Community Wiki so everyone is invited to participate in adding to and maintaining this list ph3Why is this h3pQuestions like href https stackoverflow com questions 12769982 reference what does this error mean in php 12770075 12770075 Headers already sent or href https stackoverflow com questions 12769982 reference what does this error mean in php 12769983 12769983 Calling member of non object pop up frequently on Stack nbsp Overflow The root cause of those questions is always the same So the answers to those questions typically repeat them and then show the OP which line to change in his her particular case These answers do not add any value to the site because they only apply to the OP particular code Other users having the same error can not easily read the solution out of it because they are too localized That is sad because once you understood the root cause fixing the error is trivial Hence this list tries to explain the solution in general way to apply ph3What should do here h3pIf your question has been marked as duplicate of this please find your error message below and apply the fix to your code The answers usually contain further links to investigate in case it shouldn be clear from the general answer alone ppIf you want to contribute please add your favorite error message warning or notice one per answer short description what it means even if it is only highlighting terms to their manual page possible solution or debugging approach and listing of existing amp that are of value Also feel free to improve any existing answers ph2The List h2ulli href https stackoverflow com questions 12769982 reference what does this error mean in php 12772851 12772851 Nothing is seen The page is empty and white also known as emWhite Page Screen Of Death em lili href https stackoverflow com 24423272 476 Code doesn run what looks like parts of my PHP code are output lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770075 12770075 Warning Cannot modify header information headers already sent lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysql fetch array expects parameter to be resource boolean given bra href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysql fetch array supplied argument is not valid MySQL result resource bra href https stackoverflow com questions 12769982 reference what does this error mean in php 12770072 12770072 Warning mysqli num rows expects parameter to be mysqli result boolean given or similar variations lili href https stackoverflow com questions 12769982 reference what does this error mean in php 14067623 14067623 Warning em function em expects parameter to be resource boolean given lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12820243 12820243 Warning em function em failed to open stream em reason em lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12772244 12772244 Warning open basedir restriction in effect lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 21507314 Warning Division by zero lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 27678436 Warning Illegal string offset XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 22316776 22316776 Parse error syntax error unexpected lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770089 12770089 Parse error syntax error unexpected XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 13935532 13935532 Parse error syntax error unexpected ENCAPSED AND WHITESPACE lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770129 12770129 Parse error syntax error unexpected PAAMAYIM NEKUDOTAYIM lili href https stackoverflow com questions 23726288 php error unexpected require once expecting function Parse error syntax error unexpected require once REQUIRE ONCE expecting function FUNCTION lili href https stackoverflow com 15539535 1723893 Parse error syntax error unexpected VARIABLE lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770179 12770179 Fatal error Allowed memory size of XXX bytes exhausted tried to allocate XXX bytes lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12769983 12769983 Fatal error Call to member function on non object lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12784048 12784048 Fatal Error Call to Undefined function XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 13879461 13879461 Fatal Error Cannot redeclare XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770530 12770530 Fatal error Can use function return value in write context lili href https stackoverflow com questions 1885302 php what does this error mean abstract method must be compatible Fatal error Declaration of AAA BBB must be compatible with that of CCC BBB lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770317 12770317 Fatal error Using this when not in object context lili href https stackoverflow com 24507107 476 Notice Array to string conversion lili href https stackoverflow com 26572398 367456 Notice Trying to get property of non object error lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12778634 12778634 Notice Undefined variable lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12770836 12770836 Notice Undefined Index lili href https stackoverflow com 21793407 3933332 Notice Undefined offset XXX Reference lili href https stackoverflow com 17630869 367456 Notice Uninitialized string offset XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12773272 12773272 Notice Use of undefined constant XXX assumed XXX lili href https stackoverflow com questions 12769982 reference what does this error mean in php 12771239 12771239 MySQL You have an error in your SQL syntax check the manual that corresponds to your MySQL server version for the right syntax to use near at line lili href https stackoverflow com 21942832 367456 Strict Standards Non static method em lt class lt method em should not be called statically lili href https stackoverflow com 52771226 1255289 Warning function expects parameter to be boolean string integer li ulpAlso see pulli href https stackoverflow com questions 3737139 reference what does this symbol mean in php Reference What does this symbol mean in PHP li ul Why can these all be separate questions and answers This isn very StackOverflow here,0,NULL,NULL 19068,15572,1331694,NULL,NULL,NULL,0,NULL,NULL 19069,337515,247234,Census Yearling Census Notable Question,NULL,NULL,0,NULL,NULL 19070,654987,351264,NULL,NULL,NULL,0,NULL,NULL 19071,352639,607437,NULL,NULL,NULL,0,NULL,NULL 19072,67503,184465,Yearling Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 19073,476098,65833,NULL,NULL,NULL,0,NULL,NULL 19074,190967,654391,NULL,NULL,NULL,0,NULL,NULL 19075,993011,654391,NULL,NULL,NULL,0,NULL,NULL 19076,273290,706499,Nice Answer Necromancer Yearling Nice Answer Necromancer Yearling Electorate Student Strunk & White Yearling,NULL,NULL,0,NULL,NULL 19077,1043137,1517334,NULL,NULL,NULL,0,NULL,NULL 19078,1092965,550561,NULL,NULL,NULL,0,NULL,NULL 19079,61474,1049764,NULL,NULL,NULL,0,NULL,NULL 19080,33234,1074442,Nice Answer Announcer Yearling Yearling Caucus Constituent,NULL,pIt turns out that in only events which pass href https github com jquery jquery blob master src event js L7 this regexp have certain mouse properties like code pageX code passed through to the jQuery event object ppre code mouse contextmenu click code prepObviously codetouchstart code etc don pass this regexp So you have to mark these events as being mouse events yourself as jQuery does href https github com jquery jquery blob master src event js L1041 here You can do it this way if you want to go for conciseness ppre code add more if necessary don know much about touch events each touchstart touchmove touchend split function name jQuery event fixHooks name jQuery event mouseHooks code pre If you are using jQuery remove this code or if you need to support jQuery or as well only run it if jQuery event fixHooks is defined Check if object is jQuery object javascript jquery pIs there fast way of checking if an object is jQuery object or native JavaScript object ppexample ppre codevar var element function doStuff if selector console log object is jQuery doStuff doStuff code prepobviously the code above works but it not safe You could potentially add selector key to the codeo code object and get the same result Is there better way of making sure that the object actually is jQuery object ppSomething in line with code typeof obj jquery code As of jQuery this is definitely not correct way to check for an object being jQuery object because the selector property was deprecated long ago and removed in Even in earlier versions jQuery object can have an empty selector string for example window has no selector Use instanceof instead,0,NULL,NULL 19081,8767214,797994,NULL,NULL,NULL,0,NULL,NULL 19082,133108,312007,Announcer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19083,496,1136655,Yearling Yearling,NULL,NULL,0,NULL,NULL 19084,240382,515022,NULL,NULL,NULL,0,NULL,NULL 19085,134340,208529,Revival,NULL,NULL,0,NULL,NULL 19086,449649,605405,Popular Question,NULL,NULL,0,NULL,NULL 19087,186547,84842,Good Answer Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 19088,71675,460816,NULL,NULL,NULL,0,NULL,NULL 19089,383435,257489,Yearling javascript Custodian Self-Learner Yearling Nice Answer Documentation User Census Yearling Excavator Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 19090,406671,1335233,Editor Yearling Custodian Nice Answer Caucus Yearling Revival Revival Necromancer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 19091,694032,501011,Popular Question Notable Question Popular Question Famous Question Notable Question Informed Yearling Good Question Popular Question Nice Question Popular Question Documentation User Custodian Yearling Citizen Patrol Custodian Custodian Promoter Benefactor Quorum Organizer Reviewer Deputy Reviewer Civic Duty Explainer Census Enthusiast Yearling Steward Inquisitive Excavator Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 19092,213083,1527259,NULL,NULL,NULL,0,NULL,NULL 19093,144187,1009226,Notable Question,NULL,NULL,0,NULL,NULL 19094,191233,193601,Famous Question Notable Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Question Great Question Nice Question Nice Question Yearling Nice Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Favorite Question Famous Question Nice Question Famous Question Popular Question Notable Question Famous Question Good Answer Nice Question Famous Question Notable Question Popular Question Good Answer Notable Question Nice Question Yearling Popular Question Nice Answer Nice Answer Popular Question Notable Question Favorite Question Good Question Yearling,NULL,NULL,0,NULL,NULL 19095,192888,4496,Nice Answer Notable Question Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 19096,1773449,344578,Yearling Popular Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 19097,124748,841573,Notable Question Curious Self-Learner Organizer Yearling Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Revival Revival Custodian Revival Famous Question Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 19098,9017562,841573,Notable Question Curious Self-Learner Organizer Yearling Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Revival Revival Custodian Revival Famous Question Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 19099,6334,315435,Nice Answer Necromancer Great Answer Guru Yearling Good Question Nice Answer Nice Answer Caucus Notable Question Necromancer Good Answer Great Answer Necromancer Yearling Nice Answer Necromancer Necromancer Nice Question Yearling Nice Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 19100,159504,929095,Critic Necromancer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19101,292973,657687,Yearling,NULL,NULL,0,NULL,NULL 19102,162595,148417,Good Answer Notable Question Yearling Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 19103,663121,152534,NULL,NULL,NULL,0,NULL,NULL 19104,7295960,1536558,NULL,NULL,NULL,0,NULL,NULL 19105,217088,79697,Necromancer Yearling Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 19106,265223,846381,Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Yearling Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question Famous Question Custodian Popular Question Popular Question Notable Question Yearling,NULL,pI ve always kept this around in util file You can use it as mixin on your own classes too ppre codeclass dotdict dict dot notation access to dictionary attributes getattr dict get setattr dict setitem delattr dict delitem mydict val it works nested dict val nested works too mydict dotdict mydict mydict val it works mydict nested dotdict nested dict mydict nested val nested works too code pre Yep this does not work for complex nested structures,0,NULL,NULL 19107,83942,6449,Great Answer Yearling Nice Question Yearling Famous Question Popular Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19108,484163,1013251,NULL,NULL,NULL,0,NULL,NULL 19109,44302,131701,Nice Answer Custodian Caucus Revival Yearling Necromancer Nice Answer Commentator Census Yearling Good Answer Yearling Good Answer Necromancer Yearling,NULL,Implementing phantom types in pOcaml programmers can use so called phantom types to enforce some constraints using the type system nice example can be found at href http ocaml janestreet com node 11 rel noreferrer http ocaml janestreet com node 11 ppThe syntax codetype readonly code doesn work in It could be replaced with pseudo phantom type defined as codetype readonly ReadOnlyDummyValue code in order to implement the tricks in the above mentioned blog post ppIs there better way to define phantom types in webarchive is back the links work again Implementing phantom types in pOcaml programmers can use so called phantom types to enforce some constraints using the type system nice example can be found at href http ocaml janestreet com node 11 rel noreferrer http ocaml janestreet com node 11 ppThe syntax codetype readonly code doesn work in It could be replaced with pseudo phantom type defined as codetype readonly ReadOnlyDummyValue code in order to implement the tricks in the above mentioned blog post ppIs there better way to define phantom types in In case webarchive dies https gist github com davidglassborow c1b603679e237be6d952761fd4c8bd09,0,NULL,NULL 19110,346745,1349850,Supporter,NULL,,0,, 19111,155547,288810,Nice Answer,NULL,NULL,0,NULL,NULL 19112,179766,11177,Necromancer Nice Answer Yearling Caucus Custodian Good Answer Yearling Notable Question Guru Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 19113,613907,727568,NULL,NULL,NULL,0,NULL,NULL 19114,98878,153040,Notable Question Notable Question Good Question Necromancer Good Question Yearling Notable Question Famous Question Nice Answer Nice Question Nice Answer Notable Question Great Question Famous Question Popular Question Yearling Notable Question Nice Answer Necromancer Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 19115,568210,1064106,Nice Answer,NULL,NULL,0,NULL,NULL 19116,160220,1431222,Supporter Scholar,NULL,NULL,0,NULL,NULL 19117,123778,7231,Nice Answer Informed arrays Nice Answer Yearling mysql Nice Answer Nice Answer datetime Nice Answer Good Answer Nice Answer Strunk & White html Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Enlightened Enlightened Nice Answer Nice Answer Good Answer Yearling Good Answer Census Scholar Student Caucus cpan Yearling perl-module Great Answer,NULL,NULL,0,NULL,NULL 19118,1203875,1233679,Notable Question Critic Curious Yearling,NULL,NULL,0,NULL,NULL 19119,3889,980777,NULL,NULL,NULL,0,NULL,NULL 19120,89615,167815,Announcer Populist Necromancer Revival Yearling Announcer Nice Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 19121,42131,92148,Notable Question Notable Question Notable Question Yearling Nice Question Famous Question Promoter Popular Question Good Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 19122,479555,1545456,NULL,NULL,NULL,0,NULL,NULL 19123,220543,263607,Popular Question Popular Question Famous Question Yearling Documentation User Favorite Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 19124,122950,202738,Announcer Popular Question,NULL,NULL,0,NULL,NULL 19125,485931,99971,Famous Question Nice Question Famous Question Good Question Yearling Famous Question Good Question Notable Question Great Question Good Question Famous Question Nice Question Famous Question Favorite Question Popular Question Announcer Popular Question Yearling Famous Question Good Question Famous Question Notable Question Famous Question Famous Question Good Question Good Question Famous Question Nice Question Famous Question Good Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 19126,401503,43718,NULL,NULL,NULL,0,NULL,NULL 19127,381031,306867,Documentation User,NULL,NULL,0,NULL,NULL 19128,390797,203298,NULL,NULL,NULL,0,NULL,NULL 19129,754,1327389,NULL,NULL,NULL,0,NULL,NULL 19130,1080290,1126290,Yearling Popular Question,NULL,NULL,0,NULL,NULL 19131,32253,866505,NULL,NULL,NULL,0,NULL,NULL 19132,1331629,123140,Popular Question Good Question Notable Question Popular Question Nice Answer Yearling Nice Question Nice Question Notable Question Popular Question Famous Question Enlightened Popular Question Famous Question Famous Question Famous Question Famous Question Notable Question Yearling Good Question Good Question Notable Question Famous Question Great Answer Famous Question Notable Question Nice Answer Announcer Nice Question Notable Question Good Answer Popular Question Popular Question Favorite Question Stellar Question Notable Question Popular Question Favorite Question Yearling Good Question,NULL,NULL,0,NULL,NULL 19133,581747,812260,NULL,NULL,NULL,0,NULL,NULL 19134,199550,412571,NULL,NULL,NULL,0,NULL,NULL 19135,910203,332601,NULL,NULL,NULL,0,NULL,NULL 19136,8129,1333964,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19137,205390,1333964,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19138,57819,319309,Good Answer Yearling,NULL,NULL,0,NULL,NULL 19139,293347,60,Guru Nice Answer Nice Answer Guru asp.net-ajax Good Answer Nice Answer Good Answer Nice Answer Great Answer Yearling asmx Nice Answer Guru Nice Answer Nice Answer Guru Nice Answer Good Answer Great Answer Good Question Nice Answer Guru Good Answer Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 19140,12517,26628,Yearling Nice Answer Yearling Census Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 19141,539418,1282171,NULL,NULL,NULL,0,NULL,NULL 19142,1054139,1294855,NULL,NULL,NULL,0,NULL,NULL 19143,2184,597299,NULL,NULL,NULL,0,NULL,NULL 19144,321451,864474,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 19145,27784,1080561,NULL,NULL,NULL,0,NULL,NULL 19146,36264,829752,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19147,49327,1112660,Autobiographer Nice Answer Revival Supporter Tag Editor Critic Yearling Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 19148,916308,825551,NULL,NULL,NULL,0,NULL,NULL 19149,375167,697726,NULL,NULL,NULL,0,NULL,NULL 19150,1507111,713862,NULL,NULL,NULL,0,NULL,NULL 19151,694128,1227791,NULL,NULL,NULL,0,NULL,NULL 19152,481603,192720,Popular Question Notable Question Nice Answer Enlightened Popular Question Necromancer Yearling Good Question Nice Question Famous Question Great Question Famous Question Favorite Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 19153,1220759,63378,Yearling Nice Answer Enlightened Caucus Constituent Revival Nice Answer Yearling Nice Answer Caucus Constituent Great Answer Documentation User Custodian Yearling Caucus Necromancer c#,NULL,NULL,0,NULL,NULL 19154,540637,1260507,Yearling Notable Question Popular Question Popular Question Promoter Benefactor Teacher Notable Question,NULL,NULL,0,NULL,NULL 19155,540638,1260507,Yearling Notable Question Popular Question Popular Question Promoter Benefactor Teacher Notable Question,NULL,NULL,0,NULL,NULL 19156,459179,1363835,NULL,NULL,NULL,0,NULL,NULL 19157,436150,697778,NULL,NULL,NULL,0,NULL,NULL 19158,126179,259822,NULL,NULL,NULL,0,NULL,NULL 19159,34540,34210,NULL,NULL,NULL,0,NULL,NULL 19160,72100,449639,NULL,NULL,NULL,0,NULL,NULL 19161,411670,634576,rubymine Custodian Good Answer Reviewer Revival Suffrage Vox Populi Refiner Archaeologist Copy Editor ruby testing Research Assistant Revival Cleanup Deputy Electorate Reviewer rspec-rails Revival Yearling Marshal Revival Necromancer Guru Nice Answer capybara Fanatic ruby-on-rails ruby Reviewer Revival Revival Great Answer Nice Answer Revival Revival rspec unit-testing Nice Answer Enlightened Revival Good Answer Self-Learner Revival Tumbleweed Peer Pressure Necromancer Yearling Nice Answer Nice Answer Enlightened Curious Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Guru Announcer Necromancer Nice Answer Enlightened cucumber Guru Revival Revival Announcer Great Answer Revival Revival Documentation User Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Sportsmanship Good Answer Yearling Nice Answer Enlightened Necromancer Nice Answer Enlightened Great Answer Necromancer Nice Answer Enlightened Guru Good Answer Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened,NULL,What is reasonable code coverage for unit tests and why unit testing code coverage code metrics pIf you were to mandate minimum percentage code coverage for unit tests perhaps even as requirement for committing to repository what would it be ppPlease explain how you arrived at your answer since if all you did was pick number then could have done that all by myself Unit tests or all automated tests,0,NULL,NULL 19162,40568,1054497,Yearling Populist Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 19163,118408,1004005,NULL,NULL,NULL,0,NULL,NULL 19164,125521,77827,Yearling Nice Answer Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 19165,746489,1057407,Yearling Necromancer,NULL,NULL,0,NULL,NULL 19166,219022,1121421,Teacher,NULL,NULL,0,NULL,NULL 19167,250584,1462658,NULL,NULL,NULL,0,NULL,NULL 19168,390852,589621,Famous Question Teacher Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 19169,5060,9474,Self-Learner Nice Answer Yearling Yearling Notable Question Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 19170,8999,138733,Popular Question Popular Question Famous Question Autobiographer Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 19171,406852,255961,Yearling Good Answer Revival Famous Question Announcer Good Answer Necromancer Famous Question Necromancer Custodian Custodian Famous Question Nice Question Revival Necromancer Nice Answer Great Answer Good Answer Announcer Yearling Necromancer Necromancer Necromancer Good Answer Necromancer Announcer Nice Answer Announcer Nice Answer Announcer Popular Question Yearling Tag Editor Announcer Popular Question Necromancer Good Answer Nice Answer,NULL,pAdvisory locking has been used for ages and it can be used in bash scripts prefer simple codeflock code from codeutil linux ng code over codelockfile code from codeprocmail code And always remember about trap on exit sigspec codeEXIT code or code0 code trapping specific signals is superfluous in those scripts ppIn 2009 released my lockable script boilerplate originally available at my wiki page nowadays available as href https gist github com 571091 rel noreferrer gist Transforming that into one instance per user is trivial Using it you can also easily write scripts for other scenarios requiring some locking or synchronization ppHere is the mentioned boilerplate for your convenience ppre code bin bash SPDX License Identifier MIT Copyright 2009 Przemyslaw Pawelczyk lt przemoc com gt This script is licensed under the terms of the MIT license https opensource org licenses MIT Lockable script boilerplate HEADER LOCKFILE var lock basename LOCKFD 99 PRIVATE lock flock LOCKFD no more locking lock lock xn amp amp rm LOCKFILE prepare locking eval exec LOCKFD gt LOCKFILE trap no more locking EXIT ON START prepare locking PUBLICexlock now lock xn obtain an exclusive lock immediately or failexlock lock obtain an exclusive lockshlock lock obtain shared lockunlock lock drop lock BEGIN OF SCRIPT Simplest example is avoiding running multiple instances of script exlock now exit Remember Lock file is removed when one of the scripts exits and it is the only script holding the lock or lock is not acquired at all code pre Note the Stack Overflow contribution terms require contributed code be under MIT now and previously under creative commons So including the GPL is violation of SO terms See http meta stackexchange com 12527 153541 and http meta stackexchange com 272956 153541,0,NULL,NULL 19172,491817,1087478,NULL,NULL,NULL,0,NULL,NULL 19173,80416,203842,NULL,NULL,NULL,0,NULL,NULL 19174,766441,377852,Popular Question,NULL,NULL,0,NULL,NULL 19175,2396,986855,NULL,NULL,NULL,0,NULL,NULL 19176,1130845,815624,NULL,NULL,NULL,0,NULL,NULL 19177,291224,1060751,NULL,NULL,NULL,0,NULL,NULL 19178,662714,292924,Yearling Nice Answer Popular Question Popular Question Yearling Notable Question Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 19179,19402,1280971,Editor Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19180,32300,59196,NULL,NULL,NULL,0,NULL,NULL 19181,349745,376,Custodian Yearling Excavator Proofreader Census Custodian Custodian Yearling Civic Duty Census Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19182,6909,259602,Curious Good Answer Revival Caucus Census Informed Census Custodian Popular Question,NULL,NULL,0,NULL,NULL 19183,749404,524532,NULL,NULL,NULL,0,NULL,NULL 19184,884487,1157223,NULL,NULL,NULL,0,NULL,NULL 19185,15847,88959,Good Answer Yearling,NULL,NULL,0,NULL,NULL 19186,27680,115730,Nice Answer Enlightened Nice Answer Enlightened Populist Guru Great Answer Good Answer Guru Nice Answer Enlightened Great Answer Famous Question Great Answer Good Answer Guru Necromancer Populist Guru Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Great Answer Necromancer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Announcer Caucus Good Answer Good Answer Great Answer Guru Nice Answer Nice Answer Great Answer Enlightened Census Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Announcer Announcer Good Answer Good Answer Yearling Nice Question interface-builder Revival Good Answer Good Question Populist Announcer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Great Answer Good Answer macos macos Nice Answer Famous Question Census Notable Question Announcer Good Answer Good Answer Favorite Question Nice Answer Guru Good Answer Great Answer Yearling Good Answer Guru Good Answer Nice Answer Good Answer Nice Answer Good Answer Announcer Nice Answer Nice Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 19187,475290,637942,NULL,NULL,NULL,0,NULL,NULL 19188,387028,1049128,Autobiographer Yearling Good Answer Notable Question Nice Answer Necromancer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 19189,644317,32300,NULL,NULL,NULL,0,NULL,NULL 19190,464522,712792,Critic Popular Question Famous Question,NULL,NULL,0,NULL,NULL 19191,852129,665670,Yearling Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 19192,4529,207007,Notable Question,NULL,NULL,0,NULL,NULL 19193,961136,413786,NULL,NULL,NULL,0,NULL,NULL 19194,213266,131066,ruby-on-rails Yearling Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 19195,322593,938128,Notable Question Famous Question Census Curious Popular Question,NULL,NULL,0,NULL,NULL 19196,8455521,181089,Critic,NULL,answer is for Arch which answers the original question but on Ubuntu 13 04 so here is what had to do ppre codesudo apt get install libgnome keyring devcd usr share doc git contrib credential gnome keyringsudo makegit config global credential helper usr share doc git contrib credential gnome keyring git credential gnome keyring code pre Am the only person who can compile this on Ubuntu 16 04 git credential gnome keyring 29 18 fatal error glib No such file or directorycompilation terminated dpkg egrep libgnome keyring dev libglib2 dev ii libglib2 dev 48 0ubuntu1 amd64 Development files for the GLib libraryii libgnome keyring dev 12 1build1 amd64 Development files for GNOME keyring service answer is for Arch which answers the original question but on Ubuntu 13 04 so here is what had to do ppre codesudo apt get install libgnome keyring devcd usr share doc git contrib credential gnome keyringsudo makegit config global credential helper usr share doc git contrib credential gnome keyring git credential gnome keyring code pre Once set PKG CONFIG PATH git credential gnome keyring built,0,NULL,NULL 19197,6625904,408352,Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 19198,265365,408352,Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 19199,1069285,950535,NULL,NULL,NULL,0,NULL,NULL 19200,4395,202654,Yearling,NULL,NULL,0,NULL,NULL 19201,19256,1313185,NULL,NULL,NULL,0,NULL,NULL 19202,87665,473853,NULL,NULL,NULL,0,NULL,NULL 19203,565310,1001284,NULL,NULL,NULL,0,NULL,NULL 19204,140217,480693,Yearling Nice Answer Yearling Great Answer Yearling Yearling Great Question,NULL,NULL,0,NULL,NULL 19205,131549,1169963,NULL,NULL,NULL,0,NULL,NULL 19206,1509505,592206,Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 19207,662494,339680,NULL,NULL,NULL,0,NULL,NULL 19208,238731,438992,Peer Pressure Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Popular Question Nice Answer javascript Nice Answer Nice Answer Guru Guru ajax Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened jquery Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Guru Great Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Great Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Custodian Good Answer Yearling Custodian Popular Question Announcer Good Answer Good Answer Announcer Announcer Announcer Nice Answer Nice Answer Great Answer Announcer Good Answer Good Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Great Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Announcer Good Answer Guru reactjs Nice Answer Enlightened Enlightened Good Answer Announcer,NULL,What the advantage of Java enum versus class with public static final fields java enums pI am very familiar with but starting to work more in Java expected to learn that enums in Java were basically equivalent to those in but apparently this is not the case Initially was excited to learn that Java enums could contain multiple pieces of data which seems very advantageous href http docs oracle com javase tutorial java javaOO enum html rel noreferrer http docs oracle com javase tutorial java javaOO enum html However since then have found lot of features missing that are trivial in such as the ability to easily assign an enum element certain value and consequently the ability to convert an integer to an enum without decent amount of effort href https stackoverflow com questions 5292790 convert integer value to matching java enum Convert integer value to matching Java Enum ppSo my question is this is there any benefit to Java enums over class with bunch of public static final fields Or does it just provide more compact syntax ppEDIT Let me be more clear What is the benefit of Java enums over class with bunch of public static final fields emof the same type em For example in the planets example at the first link what is the advantage of an enum over class with these public constants ppre codepublic static final Planet MERCURY new Planet 303e 23 4397e6 public static final Planet VENUS new Planet 869e 24 0518e6 public static final Planet EARTH new Planet 976e 24 37814e6 public static final Planet MARS new Planet 421e 23 3972e6 public static final Planet JUPITER new Planet 9e 27 1492e7 public static final Planet SATURN new Planet 688e 26 0268e7 public static final Planet URANUS new Planet 686e 25 5559e7 public static final Planet NEPTUNE new Planet 024e 26 4746e7 code prepAs far as can tell casablanca answer is the only one that satisfies this Re Enums vs String constants The issue isn direct replacement but what their purpose in the code is If they re being passed to function that expects value from closed set of values then enums make more sense If they re just something say that shows up on the screen it makes less sense although argue then they should be properties I18N instead of plain old variables,0,NULL,NULL 19209,456975,1461789,Notable Question,NULL,NULL,0,NULL,NULL 19210,39216,132620,NULL,NULL,NULL,0,NULL,NULL 19211,632302,1248,Stellar Question Good Answer Yearling Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 19212,2529028,26086,Popular Question Notable Question Popular Question Famous Question Civic Duty Notable Question Notable Question Yearling Popular Question Caucus Popular Question Popular Question Popular Question Enthusiast Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Famous Question Famous Question Necromancer Good Question Famous Question Notable Question Necromancer Socratic Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19213,482782,382938,Yearling Notable Question Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 19214,71888,480794,NULL,NULL,NULL,0,NULL,NULL 19215,420933,633145,NULL,NULL,NULL,0,NULL,NULL 19216,38571,955801,NULL,NULL,NULL,0,NULL,NULL 19217,103670,867805,NULL,NULL,NULL,0,NULL,NULL 19218,485564,580760,Popular Question Yearling Necromancer Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 19219,234613,1124523,NULL,NULL,NULL,0,NULL,NULL 19220,86981,55083,NULL,NULL,NULL,0,NULL,NULL 19221,134309,31011,Good Question Notable Question,NULL,NULL,0,NULL,NULL 19222,807754,524896,NULL,NULL,NULL,0,NULL,NULL 19223,1719096,800044,Yearling Yearling Yearling Announcer Great Answer Yearling,NULL,NULL,0,NULL,NULL 19224,1177783,1467928,NULL,NULL,NULL,0,NULL,NULL 19225,50220,40310,Good Answer Nice Answer Nice Question Good Answer Popular Question Nice Answer Good Answer Popular Question Good Answer Good Answer Guru Yearling Nice Answer Enlightened Great Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 19226,236061,120673,Notable Question Yearling Custodian Custodian Yearling Caucus Popular Question Notable Question Yearling Electorate,NULL,Can prove that singleton types are singleton types while generating type class instance scala shapeless implicits singleton type pSuppose ve got type class that proves that all the types in Shapeless coproduct are singleton types ppre codeimport shapeless trait AllSingletons lt Coproduct def values List object AllSingletons implicit def cnilSingletons AllSingletons CNil new AllSingletons CNil def values Nil implicit def coproductSingletons lt lt Coproduct implicit tsc AllSingletons witness Witness Aux AllSingletons new AllSingletons def values witness value tsc values code prepWe can show that it works with simple ADT ppre codesealed trait Foocase object Bar extends Foocase object Baz extends Foo code prepAnd then ppre codescala gt implicitly AllSingletons Foo Bar type Baz type CNil valuesres0 List Foo List Bar Baz code prepNow we want to combine this with Shapeless codeGeneric code mechanism that ll give us coproduct representation of our ADT ppre codetrait EnumerableAdt def values Set object EnumerableAdt implicit def fromAllSingletons lt Coproduct implicit gen Generic Aux singletons AllSingletons EnumerableAdt new EnumerableAdt def values singletons values toSet code prepI expect codeimplicitly EnumerableAdt Foo code to work but it doesn We can use code Xlog implicits code to get some information about why ppre code lt console gt 17 shapeless this Witness apply is not valid implicit value for shapeless Witness Aux Baz type because Type argument Baz type is not singleton type implicitly EnumerableAdt Foo lt console gt 17 this AllSingletons coproductSingletons is not valid implicit value for AllSingletons Foo shapeless Baz type shapeless CNil because hasMatchingSymbol reported error could not find implicit value for parameter witness shapeless Witness Aux Baz type implicitly EnumerableAdt Foo lt console gt 17 this AllSingletons coproductSingletons is not valid implicit value for AllSingletons Foo this Repr because hasMatchingSymbol reported error could not find implicit value for parameter tsc AllSingletons Foo shapeless Baz type shapeless CNil implicitly EnumerableAdt Foo lt console gt 17 this EnumerableAdt fromAllSingletons is not valid implicit value for EnumerableAdt Foo because hasMatchingSymbol reported error could not find implicit value for parameter singletons AllSingletons Foo implicitly EnumerableAdt Foo lt console gt 17 error could not find implicit value for parameter EnumerableAdt Foo implicitly EnumerableAdt Foo code prep codeBaz type code obviously emis em singleton type though We can try putting the codeWitness code instances in scope manually just for fun ppre codeimplicit val barSingleton Witness Bar type implicit val bazSingleton Witness Baz type code prepAnd somehow now it works ppre codescala gt implicitly EnumerableAdt Foo valuesres1 Set Foo Set Bar Baz code prepI don understand why these instances would work in this context while the ones generated by the codeWitness apply code macro method which we used to create them don What going on here Is there convenient workaround that doesn require us to enumerate the constructors manually For those ending up at this question because of the behavior provided by EnumerableAdt check out sealerate https github com mrvisser sealerate HT,0,NULL,NULL 19227,754754,1168291,NULL,NULL,NULL,0,NULL,NULL 19228,1325234,733532,NULL,NULL,NULL,0,NULL,NULL 19229,563555,673664,Famous Question Necromancer Nice Answer Guru Nice Question Yearling Notable Question Notable Question Notable Question Famous Question Nice Answer Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Custodian Nice Question Good Answer Famous Question Notable Question Notable Question Caucus Nice Answer Good Answer Favorite Question Good Answer Famous Question Popular Question cakephp Good Question Yearling Nice Answer Enlightened Popular Question Notable Question Popular Question Notable Question Caucus Good Answer Famous Question Nice Answer Enlightened Popular Question Custodian Good Question Famous Question Famous Question Popular Question Caucus Yearling Nice Answer Enlightened Notable Question Notable Question Nice Answer Popular Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 19230,178327,673664,Famous Question Necromancer Nice Answer Guru Nice Question Yearling Notable Question Notable Question Notable Question Famous Question Nice Answer Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Custodian Nice Question Good Answer Famous Question Notable Question Notable Question Caucus Nice Answer Good Answer Favorite Question Good Answer Famous Question Popular Question cakephp Good Question Yearling Nice Answer Enlightened Popular Question Notable Question Popular Question Notable Question Caucus Good Answer Famous Question Nice Answer Enlightened Popular Question Custodian Good Question Famous Question Famous Question Popular Question Caucus Yearling Nice Answer Enlightened Notable Question Notable Question Nice Answer Popular Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 19231,261968,1419175,Proofreader Popular Question Popular Question Yearling Nice Answer Fanatic Caucus Constituent Nice Answer Nice Answer Enlightened Nice Answer Enlightened Strunk & White Necromancer Yearling Necromancer Caucus Constituent Popular Question Good Answer Census Nice Answer Nice Answer Caucus Constituent Yearling Nice Answer Notable Question Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 19232,440900,41747,Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer python Nice Answer Enlightened Guru c Nice Answer Good Answer Yearling Good Answer Nice Answer Generalist Custodian Good Answer Nice Answer Great Answer Nice Answer Enlightened Great Answer Yearling Populist Nice Answer Good Answer Census Good Answer Good Answer string Good Answer Good Answer Nice Answer Announcer Nice Answer Yearling,NULL,Detect Ubuntu on Windows vs native Ubuntu from bash script bash windows subsystem for linux pCan bash script detect if it running in Ubuntu on Windows vs native Ubuntu If so how ppI ran codeenv code on both machines and didn see any obvious environmental variable differences could test for the existence of the code mnt code directory but that is not foolproof because that directory could potentially also be present on native Ubuntu What does uname report,0,NULL,NULL 19233,68088,1290028,NULL,NULL,NULL,0,NULL,NULL 19234,1767845,580618,NULL,NULL,NULL,0,NULL,NULL 19235,38843,751533,Nice Question Nice Answer Yearling Popular Question Popular Question Good Question Custodian Civic Duty Notable Question Explainer Citizen Patrol Yearling Good Answer python Nice Answer Enlightened Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 19236,319274,363561,Nice Question Yearling Good Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 19237,101762,258097,NULL,NULL,NULL,0,NULL,NULL 19238,187068,1129734,Teacher,NULL,NULL,0,NULL,NULL 19239,136194,12930,Nice Answer Necromancer Good Answer Yearling Informed Famous Question Yearling Census Custodian Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 19240,1257537,930654,Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 19241,61992,930654,Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 19242,41518,3029,Populist Good Answer Guru Great Answer Yearling Nice Answer Notable Question Popular Question Good Question Enlightened Yearling Famous Question Civic Duty Popular Question Favorite Question Pundit Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 19243,238589,176506,NULL,NULL,NULL,0,NULL,NULL 19244,293512,381443,Popular Question Yearling Popular Question Nice Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 19245,242185,682010,Nice Answer,NULL,NULL,0,NULL,NULL 19246,66508,282537,NULL,NULL,NULL,0,NULL,NULL 19247,823123,781313,Yearling Nice Answer Student Yearling,NULL,NULL,0,NULL,NULL 19248,276069,1205623,NULL,NULL,NULL,0,NULL,NULL 19249,15030,62678,NULL,NULL,NULL,0,NULL,NULL 19250,184757,268669,Yearling Good Answer Caucus Yearling Revival Caucus Constituent Nice Answer Enlightened Notable Question Documentation User Yearling Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 19251,120237,783153,Yearling Critic Caucus Civic Duty Yearling,NULL,NULL,0,NULL,NULL 19252,1956174,1277182,NULL,NULL,NULL,0,NULL,NULL 19253,93806,811377,Notable Question,NULL,NULL,0,NULL,NULL 19254,4211,393146,Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 19255,149015,224959,NULL,NULL,NULL,0,NULL,NULL 19256,973120,224959,NULL,NULL,NULL,0,NULL,NULL 19257,116859,1413485,NULL,NULL,NULL,0,NULL,NULL 19258,33806,5307,NULL,NULL,NULL,0,NULL,NULL 19259,790038,26479,Good Answer Yearling Caucus .net Nice Answer Custodian Nice Answer nhibernate Yearling Custodian Custodian Civic Duty Popular Question Nice Answer Yearling Cleanup,NULL,NULL,0,NULL,NULL 19260,150489,697264,NULL,NULL,NULL,0,NULL,NULL 19261,187378,399556,Popular Question Good Question Notable Question Nice Question Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 19262,912170,1122158,NULL,NULL,NULL,0,NULL,NULL 19263,1287835,1122158,NULL,NULL,NULL,0,NULL,NULL 19264,1444452,696857,NULL,NULL,NULL,0,NULL,NULL 19265,150270,219728,Yearling Nice Answer Notable Question Popular Question Notable Question Inquisitive Revival Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Yearling Favorite Question Caucus Yearling,NULL,NULL,0,NULL,NULL 19266,496022,508220,NULL,NULL,NULL,0,NULL,NULL 19267,134559,464739,NULL,NULL,NULL,0,NULL,NULL 19268,1385456,1205281,Self-Learner Student Popular Question Notable Question Announcer Yearling Famous Question Commentator,NULL,NULL,0,NULL,NULL 19269,29141,214017,Nice Answer Nice Answer Great Question Revival Yearling Excavator Good Answer Nice Answer Great Answer Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 19270,355773,1385335,NULL,NULL,NULL,0,NULL,NULL 19271,64055,702272,Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 19272,129939,137507,Yearling Necromancer Necromancer Revival Yearling Popular Question Nice Answer Necromancer Necromancer Nice Answer Yearling Necromancer Nice Answer Necromancer Yearling Caucus Constituent Nice Answer Good Answer Yearling Custodian Yearling Caucus Populist Necromancer Caucus Necromancer Nice Answer Great Answer Good Answer Yearling Nice Answer Pundit,NULL,NULL,0,NULL,NULL 19273,129436,19370,Notable Question Nice Question Nice Answer Yearling Great Answer Famous Question Good Answer Yearling Famous Question Good Answer Popular Question Notable Question Good Answer Great Answer Famous Question Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 19274,32304,469066,Necromancer Revival Commentator Yearling Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 19275,1747554,1129907,NULL,NULL,NULL,0,NULL,NULL 19276,55621,1225410,NULL,NULL,NULL,0,NULL,NULL 19277,545974,717125,NULL,NULL,NULL,0,NULL,NULL 19278,714827,1125945,NULL,NULL,NULL,0,NULL,NULL 19279,1342330,9181,NULL,NULL,NULL,0,NULL,NULL 19280,90155,964752,Necromancer Yearling Student Commentator Necromancer,NULL,NULL,0,NULL,NULL 19281,768324,415024,NULL,NULL,NULL,0,NULL,NULL 19282,201930,961278,Notable Question,NULL,NULL,0,NULL,NULL 19283,4376207,1193940,NULL,NULL,NULL,0,NULL,NULL 19284,89900,38912,Census Critic,NULL,NULL,0,NULL,NULL 19285,469255,399304,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19286,499996,598750,Popular Question Revival,NULL,NULL,0,NULL,NULL 19287,1572621,761987,NULL,NULL,NULL,0,NULL,NULL 19288,403771,853588,Necromancer,NULL,NULL,0,NULL,NULL 19289,8169,992251,NULL,NULL,NULL,0,NULL,NULL 19290,953244,713237,NULL,NULL,NULL,0,NULL,NULL 19291,252550,1352216,NULL,NULL,NULL,0,NULL,NULL 19292,355636,741905,NULL,NULL,NULL,0,NULL,NULL 19293,1476946,1056811,NULL,NULL,NULL,0,NULL,NULL 19294,354695,1121456,Self-Learner Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 19295,91046,236192,Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Necromancer Announcer Caucus Revival Necromancer Yearling Caucus Announcer Nice Answer Enlightened Custodian Guru Great Answer Nice Answer Notable Question Announcer Announcer,NULL,NULL,0,NULL,NULL 19296,531402,344922,NULL,NULL,NULL,0,NULL,NULL 19297,234336,1136075,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 19298,62422,796195,Yearling Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 19299,353506,490129,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 19300,604716,534473,NULL,NULL,NULL,0,NULL,NULL 19301,5575,257878,Yearling Nice Question Necromancer Notable Question Notable Question Popular Question Popular Question Yearling Good Answer Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 19302,96060,467419,NULL,NULL,NULL,0,NULL,NULL 19303,208216,98012,NULL,NULL,NULL,0,NULL,NULL 19304,15878,292410,Yearling Populist Great Answer Custodian Nice Answer Caucus Good Answer Yearling Caucus Documentation User Custodian Excavator Yearling,NULL,NULL,0,NULL,NULL 19305,6894,236104,NULL,NULL,NULL,0,NULL,NULL 19306,361585,1297706,Tumbleweed,NULL,NULL,0,NULL,NULL 19307,131901,1268447,NULL,NULL,NULL,0,NULL,NULL 19308,83145,111888,Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Popular Question Famous Question azure-webjobs Custodian Good Question Nice Answer azure Popular Question Yearling Nice Answer Enlightened Nice Answer Fanatic Nice Answer Popular Question Notable Question Famous Question Necromancer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Quorum azure-functions Announcer Nice Answer Enlightened git Nice Answer Enlightened Popular Question azure-web-sites Yearling Explainer Popular Question Nice Answer Nice Answer Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Notable Question azure Announcer Taxonomist Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Announcer Good Answer Pundit Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Famous Question Announcer Good Answer Popular Question Popular Question,NULL,pApparently you need to specify the SDK version explicitly in your global json otherwise Kudu is using the latest which is now the preview3 one which is not compatible ppre code projects src test sdk version preview2 003177 code prepBe careful you global json file should live at the root of your repository ppDetails href https social msdn microsoft com Forums en US 2a301f82 6a7a 4c03 ad4a bd8714d72ba6 continious deployment of aspnet core app suddenly starts to fail today forum windowsazurewebsitespreview amp prof required https social msdn microsoft com Forums en US 2a301f82 6a7a 4c03 ad4a bd8714d72ba6 continious deployment of aspnet core app suddenly starts to fail today forum windowsazurewebsitespreview amp prof required if you have repro where global json does not work please take look through https github com projectkudu kudu issues 2230 and add to that as necessary,0,NULL,NULL 19309,341403,363667,Curious,NULL,NULL,0,NULL,NULL 19310,179450,230461,Notable Question Good Answer Nice Answer Nice Answer Notable Question Good Answer Yearling Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Notable Question Great Answer Good Answer,NULL,NULL,0,NULL,NULL 19311,1210790,185171,Nice Answer Enlightened Good Question Nice Answer Nice Question Yearling Good Answer Nice Answer Enlightened Good Answer Notable Question Famous Question Informed Nice Answer Enlightened Nice Answer Populist Yearling Nice Answer Nice Answer Census c++ Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 19312,2970883,185171,Nice Answer Enlightened Good Question Nice Answer Nice Question Yearling Good Answer Nice Answer Enlightened Good Answer Notable Question Famous Question Informed Nice Answer Enlightened Nice Answer Populist Yearling Nice Answer Nice Answer Census c++ Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 19313,363279,229823,Nice Answer Enlightened Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 19314,58181,717758,NULL,NULL,NULL,0,NULL,NULL 19315,488019,621442,Nice Answer,NULL,NULL,0,NULL,NULL 19316,133149,473232,Necromancer Nice Answer Enlightened Nice Question Popular Question Popular Question Yearling Caucus Constituent Notable Question Great Answer Notable Question Popular Question Caucus Good Answer Announcer Necromancer Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Custodian Caucus Constituent Guru Nice Question Great Answer Nice Answer Enlightened Famous Question Nice Answer Yearling Populist,NULL,NULL,0,NULL,NULL 19317,492419,28275,Announcer Necromancer Nice Answer Necromancer Favorite Question Nice Question Revival Yearling Famous Question Nice Question Nice Answer Revival Necromancer Yearling Nice Answer Enlightened Nice Question Nice Answer Yearling Necromancer Not a Robot Popular Question,NULL,NULL,0,NULL,NULL 19318,751773,803803,NULL,NULL,NULL,0,NULL,NULL 19319,1386450,27266,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19320,216802,211772,NULL,NULL,NULL,0,NULL,NULL 19321,466895,740828,NULL,NULL,NULL,0,NULL,NULL 19322,254410,593119,Informed Teacher Editor Supporter Caucus,NULL,NULL,0,NULL,NULL 19323,15638,756000,Necromancer Nice Answer Enlightened Nice Answer Yearling Yearling Good Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 19324,156184,232352,Necromancer,NULL,NULL,0,NULL,NULL 19325,365943,1018299,NULL,NULL,NULL,0,NULL,NULL 19326,398484,961710,NULL,NULL,NULL,0,NULL,NULL 19327,407724,567694,NULL,NULL,NULL,0,NULL,NULL 19328,6472,28726,NULL,NULL,NULL,0,NULL,NULL 19329,1663534,370382,NULL,NULL,NULL,0,NULL,NULL 19330,250868,347216,Custodian Announcer Yearling Popular Question Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 19331,19430,1445334,Custodian Notable Question Yearling Notable Question Mortarboard Yearling Famous Question Nice Question Yearling Nice Question,NULL,pHit the kbdEsc kbd key to enter Normal mode Then you can type code code to enter Command line mode colon code code will appear at the bottom of the screen and you can type in one of the following commands To execute command press the kbdEnter kbd key pulli code code to quit short for code quit code lili code code to quit without saving short for code quit code lili code wq code to write and quit lili code wq code to write and quit even if file has only read permission if file does not have write permission force write lili code code to write and quit similar to code wq code but only write if there are changes lili code exit code to write and exit same as code code lili code qa code to quit all short for code quitall code lili code cq code to quit without saving and make Vim return non zero error exit with error li ulpYou can also exit Vim directly from Command mode by typing codeZZ code to save and quit same as code code or codeZQ code to just quit same as code code Note that case is important here codeZZ code and codezz code do not mean the same thing ppVim has extensive help that you can access with the code help code command where you can find answers to all your questions and tutorial for beginners The use ctrl to do the same,0,NULL,NULL 19332,452531,1426728,Popular Question Popular Question Popular Question Documentation User Popular Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 19333,53896,384883,NULL,NULL,NULL,0,NULL,NULL 19334,27547,716044,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 19335,142495,194266,NULL,NULL,NULL,0,NULL,NULL 19336,187041,1313201,NULL,NULL,NULL,0,NULL,NULL 19337,1158179,808525,NULL,NULL,NULL,0,NULL,NULL 19338,757150,1105718,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 19339,24230,595419,NULL,NULL,NULL,0,NULL,NULL 19340,195582,1464181,NULL,NULL,NULL,0,NULL,NULL 19341,39168,967178,NULL,NULL,NULL,0,NULL,NULL 19342,90463,179684,Informed Nice Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 19343,83794,1467579,Student Popular Question Notable Question Citizen Patrol Editor Census,NULL,NULL,0,NULL,NULL 19344,1520905,1112045,NULL,NULL,NULL,0,NULL,NULL 19345,1034263,337,Notable Question Nice Answer Favorite Question Popular Question Notable Question Popular Question Popular Question Great Question Good Answer Nice Answer Popular Question Nice Question Famous Question Great Answer Popular Question Yearling Popular Question Notable Question Popular Question Nice Answer Famous Question Good Answer Nice Question Custodian Good Answer Great Question Popular Question Good Question Popular Question Favorite Question Famous Question Nice Answer Favorite Question Yearling Famous Question Documentation User Famous Question Famous Question Popular Question Guru Nice Question Nice Question Great Question Necromancer Notable Question Popular Question Yearling Great Answer Popular Question Notable Question Nice Answer Enlightened Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 19346,256843,55940,Popular Question Yearling,NULL,NULL,0,NULL,NULL 19347,1516259,152650,Notable Question Yearling Self-Learner Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 19348,227473,442639,Critic Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 19349,3830200,627663,Nice Answer,NULL,NULL,0,NULL,NULL 19350,126931,627663,Nice Answer,NULL,NULL,0,NULL,NULL 19351,426971,757086,Caucus,NULL,NULL,0,NULL,NULL 19352,1112462,1163275,NULL,NULL,NULL,0,NULL,NULL 19353,138459,3392,Student Scholar Informed Editor Census,NULL,NULL,0,NULL,NULL 19354,75127,973781,Commentator Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 19355,628973,969780,NULL,NULL,NULL,0,NULL,NULL 19356,319030,991586,NULL,NULL,NULL,0,NULL,NULL 19357,122060,669122,Student Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 19358,487490,1364668,Notable Question,NULL,NULL,0,NULL,NULL 19359,333390,707573,NULL,NULL,NULL,0,NULL,NULL 19360,191751,219658,Great Answer Notable Question Yearling Famous Question Nice Question Yearling Good Question Custodian Citizen Patrol Custodian Yearling Curious,NULL,NULL,0,NULL,NULL 19361,184808,730455,Nice Answer Yearling Caucus Popular Question Census Nice Answer Custodian Informed Caucus Yearling,NULL,NULL,0,NULL,NULL 19362,239315,1212339,NULL,NULL,NULL,0,NULL,NULL 19363,85871,980194,Necromancer Yearling Revival Revival,NULL,NULL,0,NULL,NULL 19364,1187603,763935,Good Question Popular Question Fanatic Nice Answer Enlightened Promoter Benefactor android rx-java Nice Question Good Answer Notable Question Yearling Nice Question Nice Answer Famous Question Favorite Question Guru retrofit Notable Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Nice Answer Popular Question Yearling Famous Question Nice Answer Caucus Popular Question Great Answer Good Answer Notable Question Popular Question Announcer Nice Answer Enlightened Yearling Good Answer Self-Learner Nice Answer Enlightened Popular Question Popular Question Nice Answer,NULL,pAfter checking back with RxJava developer Dávid Karnok like to propose full explanation of what was going on here pp codeshare code is defined as codepublish refCount code the source codeObservable code is first transformed to codeConnectableObservable code by codepublish code but instead of having to call codeconnect code manually that part is handled by coderefCount code In particular coderefCount code will call codeconnect code on the codeConnectableObservable code when it itself receives the first subscription then as long as there is at least one subscriber it will stay subscribed and finally when the number of subscribers drops to it will unsubscribe upwards With emcold em codeObservables code like the ones returned by Retrofit this will stop any running computations ppIf after one of these cycles another subscriber comes along coderefCount code will again call codeconnect code and thus trigger new subscription to the source Observable In this case it will trigger another network request ppNow this usually did not become apparent with Retrofit and indeed any version before href https github com square retrofit commit 38ce2bee70342ac1ab08115d74802d3a54d85511 this commit because these older versions of Retrofit by default moved all network requests to another thread This usually meant that all your codesubscribe code calls would happen while the first request codeObservable code was still running and therefore the new codeSubscriber codes would simply be added to the coderefCount code and therefore would not trigger additional requests codeObservables code ppNewer versions of Retrofit however do not by default move the work to another thread anymore you have to do that explicitly by calling for example codesubscribeOn Schedulers io code If you don everything will just stay on the current thread meaning that the second codesubscribe code will only happen after the first codeObservable code has called codeonCompleted code and therefore after all codeSubscribers code have unsubscribed and everything is shut down Now as we saw in the first paragraph when the second codesubscribe code is called codeshare code has no choice but to cause another codeSubscription code to the source Observable and trigger another network request pp strongSo to go back to the behavior you are used to from Retrofit just add codesubscribeOn Schedulers io code strong ppThis should result in only network request being executed most of the time In principle though you could still get multiple requests and you always could have with Retrofit but only if your network requests are extremely fast and or the codesubscribe code calls happen with considerable delay so that again the first request is finished when the second codesubscribe code happens ppTherefore Dávid suggests to either use codecache code but it has the drawbacks you mentioned or codereplay autoConnect code According to these href https github com ReactiveX RxJava releases release notes codeautoConnect code works like only the first half of coderefCount code or more precisely it is pblockquote psimilar in behavior to refCount except that it doesn disconnect when subscribers are lost blockquotepThis means the request would only be triggered when the first codesubscribe code happens but then all later codeSubscriber codes would receive all emitted items regardless of whether there were at any time in between subscribers Great just wanted to add this explanation because replay share publish etc are complicated enough and it doesn hurt to have detailed explanations of edge cases out there,1,NULL,Single Observable with Multiple Subscribers android retrofit rx java pI have an codeObservable lt lt List lt Foo gt gt getFoo code that is created from Retrofit Service and after calling thecode getFoo code method need to share it with Multiple Subscribers Calling the code share code method though it causes the Network Call to be re executed Replay Operator does not work either know that potential solution might be code cache code but do not know why this behaviour is caused ppre code Create an instance of our GitHub API interface Retrofit retrofit new Retrofit Builder baseUrl API URL addConverterFactory GsonConverterFactory create addCallAdapterFactory RxJavaCallAdapterFactory create build Create call instance for looking up Retrofit contributors Observable lt List lt Contributor gt gt testObservable retrofit create GitHub class contributors square retrofit share Subscription subscription1 testObservable subscribe new Subscriber lt List lt Contributor gt gt public void onCompleted public void onError Throwable throwable public void onNext List lt Contributor gt contributors System out println contributors Subscription subscription2 testObservable subscribe new Subscriber lt List lt Contributor gt gt public void onCompleted public void onError Throwable throwable public void onNext List lt Contributor gt contributors System out println contributors gt subscription1 unsubscribe subscription2 unsubscribe code prepThe code above can reproduce the aforementioned behaviour You can debug it and see that the Lists received belong to different MemoryAddress ppI have also looked at ConnectableObservables as potential solution but this requires me carrying the original observable around and calling code connect code each time want to add new Subscriber ppThis kind of behaviour with the code share code was working fine till Retrofit It stopped working on Retrofit beta have not yet tested it with the Retrofit Release Version that was released some hours ago ppEDIT 01 02 2017 ppFor future readers have written an article href https medium com tournaris rxjava one observable multiple subscribers 7bf497646675 rjwhxkjhp rel nofollow noreferrer here explaining more about the case pAfter checking back with RxJava developer Dávid Karnok like to propose full explanation of what was going on here pp codeshare code is defined as codepublish refCount code the source codeObservable code is first transformed to codeConnectableObservable code by codepublish code but instead of having to call codeconnect code manually that part is handled by coderefCount code In particular coderefCount code will call codeconnect code on the codeConnectableObservable code when it itself receives the first subscription then as long as there is at least one subscriber it will stay subscribed and finally when the number of subscribers drops to it will unsubscribe upwards With emcold em codeObservables code like the ones returned by Retrofit this will stop any running computations ppIf after one of these cycles another subscriber comes along coderefCount code will again call codeconnect code and thus trigger new subscription to the source Observable In this case it will trigger another network request ppNow this usually did not become apparent with Retrofit and indeed any version before href https github com square retrofit commit 38ce2bee70342ac1ab08115d74802d3a54d85511 this commit because these older versions of Retrofit by default moved all network requests to another thread This usually meant that all your codesubscribe code calls would happen while the first request codeObservable code was still running and therefore the new codeSubscriber codes would simply be added to the coderefCount code and therefore would not trigger additional requests codeObservables code ppNewer versions of Retrofit however do not by default move the work to another thread anymore you have to do that explicitly by calling for example codesubscribeOn Schedulers io code If you don everything will just stay on the current thread meaning that the second codesubscribe code will only happen after the first codeObservable code has called codeonCompleted code and therefore after all codeSubscribers code have unsubscribed and everything is shut down Now as we saw in the first paragraph when the second codesubscribe code is called codeshare code has no choice but to cause another codeSubscription code to the source Observable and trigger another network request pp strongSo to go back to the behavior you are used to from Retrofit just add codesubscribeOn Schedulers io code strong ppThis should result in only network request being executed most of the time In principle though you could still get multiple requests and you always could have with Retrofit but only if your network requests are extremely fast and or the codesubscribe code calls happen with considerable delay so that again the first request is finished when the second codesubscribe code happens ppTherefore Dávid suggests to either use codecache code but it has the drawbacks you mentioned or codereplay autoConnect code According to these href https github com ReactiveX RxJava releases release notes codeautoConnect code works like only the first half of coderefCount code or more precisely it is pblockquote psimilar in behavior to refCount except that it doesn disconnect when subscribers are lost blockquotepThis means the request would only be triggered when the first codesubscribe code happens but then all later codeSubscriber codes would receive all emitted items regardless of whether there were at any time in between subscribers 19365,13305,351149,Nice Answer Investor Yearling Necromancer Nice Answer Yearling Good Answer Documentation User Populist Good Answer Custodian Custodian Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 19366,172373,957868,NULL,NULL,NULL,0,NULL,NULL 19367,1233226,743203,Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Custodian Famous Question Notable Question Notable Question Nice Question Notable Question Popular Question Famous Question Popular Question Popular Question Good Answer Popular Question Good Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19368,35288,728528,Notable Question Notable Question Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 19369,918490,670325,NULL,NULL,NULL,0,NULL,NULL 19370,1514614,1002140,Notable Question Yearling Popular Question Notable Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19371,8634221,1002140,Notable Question Yearling Popular Question Notable Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19372,368401,779815,NULL,NULL,NULL,0,NULL,NULL 19373,37338,1554784,Informed Autobiographer Yearling Commentator Yearling Revival Critic Yearling Caucus Constituent Custodian Yearling Nice Answer Enlightened Caucus Constituent Citizen Patrol Nice Answer Enlightened Popular Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 19374,400323,582541,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 19375,80499,358708,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 19376,4786,32797,Populist Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Guru Nice Answer Enlightened Yearling Nice Answer Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 19377,210952,1310870,NULL,NULL,NULL,0,NULL,NULL 19378,255501,254313,Informed,NULL,NULL,0,NULL,NULL 19379,372078,223708,Census,NULL,NULL,0,NULL,NULL 19380,103006,193530,Documentation User,NULL,NULL,0,NULL,NULL 19381,332167,384617,Notable Question Nice Question Yearling Nice Answer javascript Caucus Census Yearling Notable Question Documentation User Necromancer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 19382,209232,1005108,Editor Popular Question Teacher,NULL,NULL,0,NULL,NULL 19383,84593,764576,Autobiographer Scholar Critic,NULL,NULL,0,NULL,NULL 19384,1005535,218399,NULL,NULL,NULL,0,NULL,NULL 19385,205294,700262,NULL,NULL,NULL,0,NULL,NULL 19386,923682,1499698,Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question Custodian Good Answer Nice Answer Announcer jsonb Nice Answer Enlightened Revival Announcer Yearling Good Answer Good Answer postgresql Good Answer Documentation User Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Guru Guru Guru,NULL,strongUpdate strong href http www postgresql org docs static functions json html rel noreferrer With PostgreSQL there are some codejsonb code manipulation functionality within PostgreSQL itself but none for codejson code casts are required to manipulate codejson code values ppMerging or more JSON objects or concatenating arrays ppre codeSELECT jsonb jsonb will yield jsonb jsonb jsonb will yield jsonb code prepSo strongsetting simple key strong can be done using ppre codeSELECT jsonb jsonb build object lt key gt lt value gt code prepWhere code lt key gt code should be string and code lt value gt code can be whatever type codeto jsonb code accepts ppFor strongsetting value deep in JSON hierarchy strong the codejsonb set code function can be used ppre codeSELECT jsonb set null jsonb will yield jsonb null code prepFull parameter list of codejsonb set code ppre codejsonb set target jsonb path text new value jsonb create missing boolean default true code prep codepath code can contain JSON array indexes too amp negative integers that appear there count from the end of JSON arrays However non existing but positive JSON array index will append the element to the end of the array ppre codeSELECT jsonb set null 1000 jsonb true will yield jsonb null code prepFor stronginserting into JSON array while preserving all of the original values strong the codejsonb insert code function can be used emin this function only in this section em ppre codeSELECT jsonb insert null jsonb will yield jsonb null andSELECT jsonb insert null jsonb true will yield jsonb null code prepFull parameter list of codejsonb insert code ppre codejsonb insert target jsonb path text new value jsonb insert after boolean default false code prepAgain negative integers that appear in codepath code count from the end of JSON arrays ppSo ex appending to an end of JSON array can be done with ppre codeSELECT jsonb insert null jsonb true will yield jsonb null and code prepHowever this function is working slightly differently than codejsonb set code when the codepath code in codetarget code is JSON object key In that case it will only add new key value pair for the JSON object when the key is not used If it used it will raise an error ppre codeSELECT jsonb insert null jsonb will yield jsonb null butSELECT jsonb insert null jsonb will raise SQLSTATE 22023 invalid parameter value cannot replace existing key code prep strongDeleting key or an index strong from JSON object or from an array can be done with the code code operator ppre codeSELECT jsonb will yield jsonb jsonb will yield jsonb code prep strongDeleting from deep in JSON hierarchy strong can be done with the code code operator ppre codeSELECT null 14 will yield jsonb null code prep strongFor strong you can use modified version of the original answer below but instead of aggregating JSON string you can aggregate into json object directly with codejson object agg code pp strongOriginal answer strong It is possible without plpython or plv8 in pure SQL too but needs will not work with ppre codeCREATE OR REPLACE FUNCTION json object set key json json key to set TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT concat string agg to json key value json FROM SELECT FROM json each json WHERE key lt gt key to set UNION ALL SELECT key to set to json value to set AS fields function code prep href http sqlfiddle com 15 d41d8 2902 rel noreferrer SQLFiddle pp strongEdit strong ppA version which sets multiple keys amp values ppre codeCREATE OR REPLACE FUNCTION json object set keys json json keys to set TEXT values to set anyarray RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT concat string agg to json key value json FROM SELECT FROM json each json WHERE key lt gt ALL keys to set UNION ALL SELECT DISTINCT ON keys to set index keys to set index CASE WHEN values to set index IS NULL THEN null json ELSE to json values to set index END FROM generate subscripts keys to set AS keys index JOIN generate subscripts values to set AS values index USING index AS fields function code prep strongEdit strong as er href https stackoverflow com questions 18209625 how do modify fields inside the new postgresql json datatype 23500670 noredirect comment39388159 23500670 noted these functions above works like so called codeUPSERT code updates field if it exists inserts if it does not exist Here is variant which only codeUPDATE code ppre codeCREATE OR REPLACE FUNCTION json object update key json json key to set TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT CASE WHEN json gt key to set IS NULL THEN json ELSE SELECT concat string agg to json key value FROM SELECT FROM json each json WHERE key lt gt key to set UNION ALL SELECT key to set to json value to set AS fields jsonEND function code prep strongEdit strong Here is recursive variant which can set codeUPSERT code leaf value and uses the first function from this answer located at key path where keys can only refer to inner objects inner arrays not supported ppre codeCREATE OR REPLACE FUNCTION json object set path json json key path TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT CASE COALESCE array length key path WHEN THEN to json value to set WHEN THEN json object set key json key path value to set ELSE json object set key json key path json object set path COALESCE NULLIF json gt key path text null json key path value to set END FROM array lower key path array upper key path function code prep strongUpdate strong functions are compacted now not that familiar with ruby but if the result will be Customer instance then maybe you should use column alias too like Customer where id 52 select metadata jsonb currency AS metadata without an alias the column will have an arbitrary name if its value is calculated strongUpdate strong href http www postgresql org docs static functions json html rel noreferrer With PostgreSQL there are some codejsonb code manipulation functionality within PostgreSQL itself but none for codejson code casts are required to manipulate codejson code values ppMerging or more JSON objects or concatenating arrays ppre codeSELECT jsonb jsonb will yield jsonb jsonb jsonb will yield jsonb code prepSo strongsetting simple key strong can be done using ppre codeSELECT jsonb jsonb build object lt key gt lt value gt code prepWhere code lt key gt code should be string and code lt value gt code can be whatever type codeto jsonb code accepts ppFor strongsetting value deep in JSON hierarchy strong the codejsonb set code function can be used ppre codeSELECT jsonb set null jsonb will yield jsonb null code prepFull parameter list of codejsonb set code ppre codejsonb set target jsonb path text new value jsonb create missing boolean default true code prep codepath code can contain JSON array indexes too amp negative integers that appear there count from the end of JSON arrays However non existing but positive JSON array index will append the element to the end of the array ppre codeSELECT jsonb set null 1000 jsonb true will yield jsonb null code prepFor stronginserting into JSON array while preserving all of the original values strong the codejsonb insert code function can be used emin this function only in this section em ppre codeSELECT jsonb insert null jsonb will yield jsonb null andSELECT jsonb insert null jsonb true will yield jsonb null code prepFull parameter list of codejsonb insert code ppre codejsonb insert target jsonb path text new value jsonb insert after boolean default false code prepAgain negative integers that appear in codepath code count from the end of JSON arrays ppSo ex appending to an end of JSON array can be done with ppre codeSELECT jsonb insert null jsonb true will yield jsonb null and code prepHowever this function is working slightly differently than codejsonb set code when the codepath code in codetarget code is JSON object key In that case it will only add new key value pair for the JSON object when the key is not used If it used it will raise an error ppre codeSELECT jsonb insert null jsonb will yield jsonb null butSELECT jsonb insert null jsonb will raise SQLSTATE 22023 invalid parameter value cannot replace existing key code prep strongDeleting key or an index strong from JSON object or from an array can be done with the code code operator ppre codeSELECT jsonb will yield jsonb jsonb will yield jsonb code prep strongDeleting from deep in JSON hierarchy strong can be done with the code code operator ppre codeSELECT null 14 will yield jsonb null code prep strongFor strong you can use modified version of the original answer below but instead of aggregating JSON string you can aggregate into json object directly with codejson object agg code pp strongOriginal answer strong It is possible without plpython or plv8 in pure SQL too but needs will not work with ppre codeCREATE OR REPLACE FUNCTION json object set key json json key to set TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT concat string agg to json key value json FROM SELECT FROM json each json WHERE key lt gt key to set UNION ALL SELECT key to set to json value to set AS fields function code prep href http sqlfiddle com 15 d41d8 2902 rel noreferrer SQLFiddle pp strongEdit strong ppA version which sets multiple keys amp values ppre codeCREATE OR REPLACE FUNCTION json object set keys json json keys to set TEXT values to set anyarray RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT concat string agg to json key value json FROM SELECT FROM json each json WHERE key lt gt ALL keys to set UNION ALL SELECT DISTINCT ON keys to set index keys to set index CASE WHEN values to set index IS NULL THEN null json ELSE to json values to set index END FROM generate subscripts keys to set AS keys index JOIN generate subscripts values to set AS values index USING index AS fields function code prep strongEdit strong as er href https stackoverflow com questions 18209625 how do modify fields inside the new postgresql json datatype 23500670 noredirect comment39388159 23500670 noted these functions above works like so called codeUPSERT code updates field if it exists inserts if it does not exist Here is variant which only codeUPDATE code ppre codeCREATE OR REPLACE FUNCTION json object update key json json key to set TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT CASE WHEN json gt key to set IS NULL THEN json ELSE SELECT concat string agg to json key value FROM SELECT FROM json each json WHERE key lt gt key to set UNION ALL SELECT key to set to json value to set AS fields jsonEND function code prep strongEdit strong Here is recursive variant which can set codeUPSERT code leaf value and uses the first function from this answer located at key path where keys can only refer to inner objects inner arrays not supported ppre codeCREATE OR REPLACE FUNCTION json object set path json json key path TEXT value to set anyelement RETURNS json LANGUAGE sql IMMUTABLE STRICTAS function SELECT CASE COALESCE array length key path WHEN THEN to json value to set WHEN THEN json object set key json key path value to set ELSE json object set key json key path json object set path COALESCE NULLIF json gt key path text null json key path value to set END FROM array lower key path array upper key path function code prep strongUpdate strong functions are compacted now paths in jsonb set can contain JSON array indexes too Also for there is dedicated jsonb insert function if you want to expand the array good question though ll update the answer soon For earlier versions it would be rather complicated to introduce array index support but in theory it possible,0,NULL,NULL 19387,1188825,222571,Teacher Popular Question,NULL,NULL,0,NULL,NULL 19388,177079,323931,Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 19389,284874,181412,Enlightened Famous Question Great Answer Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Great Question Notable Question Guru Yearling Good Answer Notable Question Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 19390,3237707,1158550,NULL,NULL,NULL,0,NULL,NULL 19391,298517,1163353,NULL,NULL,NULL,0,NULL,NULL 19392,86580,356323,Self-Learner Nice Answer Necromancer Yearling Nice Answer Nice Answer Custodian Necromancer Taxonomist Great Answer Yearling Caucus Constituent Good Answer Civic Duty Yearling Nice Answer Good Answer,NULL,pThis is typical case of the codemaven assembly code plugin breaking things ph1Why this happened to us h1pDifferent JARs codehadoop commons code for codeLocalFileSystem code codehadoop hdfs code for codeDistributedFileSystem code each contain different file called codeorg apache hadoop fs FileSystem code in their codeMETA INFO services code directory This file lists the canonical classnames of the filesystem implementations they want to declare This is called Service Provider Interface implemented via codejava util ServiceLoader code see codeorg apache hadoop FileSystem code href http grepcode com file repo1 maven org maven2 org apache hadoop hadoop common org apache hadoop fs FileSystem java 2622 rel noreferrer line 2622 ppWhen we use codemaven assembly plugin code it merges all our JARs into one and all codeMETA INFO services org apache hadoop fs FileSystem code overwrite each other Only one of these files remains the last one that was added In this case the codeFileSystem code list from codehadoop commons code overwrites the list from codehadoop hdfs code so codeDistributedFileSystem code was no longer declared ph1How we fixed it h1pAfter loading the Hadoop configuration but just before doing anything codeFileSystem code related we call this ppre code hadoopConfig set fs hdfs impl org apache hadoop hdfs DistributedFileSystem class getName hadoopConfig set fs file impl org apache hadoop fs LocalFileSystem class getName code preh1Update the correct fix h1pIt has been brought to my attention by code krookedking code that there is configuration based way to make the codemaven assembly code use merged version of all the codeFileSystem code services declarations Add the following plugin to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven shade plugin lt artifactId gt lt version gt lt version gt lt executions gt lt execution gt lt phase gt package lt phase gt lt goals gt lt goal gt shade lt goal gt lt goals gt lt configuration gt lt transformers gt lt transformer implementation org apache maven plugins shade resource ServicesResourceTransformer gt lt transformers gt lt configuration gt lt execution gt lt executions gt lt plugin gt code pre Thank you for the update Adam Arold updated my answer,0,NULL,NULL 19393,77969,1512326,Informed Unsung Hero Custodian Yearling Necromancer Scholar Yearling Announcer Explainer Custodian Nice Answer Announcer Yearling Tumbleweed Revival ckan Revival,NULL,NULL,0,NULL,NULL 19394,149205,307992,NULL,NULL,NULL,0,NULL,NULL 19395,127971,327607,Nice Answer,NULL,NULL,0,NULL,NULL 19396,301616,295828,NULL,NULL,NULL,0,NULL,NULL 19397,226891,979484,NULL,NULL,NULL,0,NULL,NULL 19398,710689,1085844,Necromancer,NULL,NULL,0,NULL,NULL 19399,202685,641260,NULL,NULL,NULL,0,NULL,NULL 19400,218458,391628,Yearling Famous Question Popular Question Good Question Notable Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 19401,1508333,604443,NULL,NULL,NULL,0,NULL,NULL 19402,1594075,324285,Commentator Revival Nice Answer,NULL,NULL,0,NULL,NULL 19403,75728,324285,Commentator Revival Nice Answer,NULL,NULL,0,NULL,NULL 19404,76713,939502,NULL,NULL,NULL,0,NULL,NULL 19405,325507,1274840,Notable Question,NULL,NULL,0,NULL,NULL 19406,70775,1384045,Famous Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Good Question Self-Learner Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 19407,177429,279533,NULL,NULL,NULL,0,NULL,NULL 19408,908011,152060,Nice Question Nice Question Tag Editor Promoter Benefactor Favorite Question Yearling Great Question Popular Question Yearling Notable Question Great Question Yearling,NULL,Why does the void detection idiom not work with gcc templates 14 sfinae pConsider the following code ppre code include lt iostream gt include lt type traits gt struct Test Test amp operator struct NoIncrement template lt typename gt using void void template lt class class void lt gt gt struct has pre increment member std false type template lt class gt struct has pre increment member lt void lt decltype std declval lt amp gt gt gt public std true type int main std cout lt lt has pre increment member lt Test gt value lt lt std cout lt lt has pre increment member lt NoIncrement gt value lt lt std endl code prepWith version and later and the std 14 flag of course this code outputs ppre code1 code prepas it should With version and the std 14 flag however it outputs ppre code1 code prepBoth claim to be using the same language standard so what the issue here to be exact Why does the void detection idiom not work with gcc templates 14 sfinae pConsider the following code ppre code include lt iostream gt include lt type traits gt struct Test Test amp operator struct NoIncrement template lt typename gt using void void template lt class class void lt gt gt struct has pre increment member std false type template lt class gt struct has pre increment member lt void lt decltype std declval lt amp gt gt gt public std true type int main std cout lt lt has pre increment member lt Test gt value lt lt std cout lt lt has pre increment member lt NoIncrement gt value lt lt std endl code prepWith version and later and the std 14 flag of course this code outputs ppre code1 code prepas it should With version and the std 14 flag however it outputs ppre code1 code prepBoth claim to be using the same language standard so what the issue here Oh wonderful It good to know not using the language incorrectly Thanks,1,Why does the void detection idiom not work with gcc templates 14 sfinae pConsider the following code ppre code include lt iostream gt include lt type traits gt struct Test Test amp operator struct NoIncrement template lt typename gt using void void template lt class class void lt gt gt struct has pre increment member std false type template lt class gt struct has pre increment member lt void lt decltype std declval lt amp gt gt gt public std true type int main std cout lt lt has pre increment member lt Test gt value lt lt std cout lt lt has pre increment member lt NoIncrement gt value lt lt std endl code prepWith version and later and the std 14 flag of course this code outputs ppre code1 code prepas it should With version and the std 14 flag however it outputs ppre code1 code prepBoth claim to be using the same language standard so what the issue here,NULL 19409,966122,807272,NULL,NULL,NULL,0,NULL,NULL 19410,258744,733251,NULL,NULL,NULL,0,NULL,NULL 19411,383085,259314,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19412,1099693,237882,Popular Question Popular Question Popular Question Popular Question Caucus Notable Question Yearling Yearling Nice Question Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19413,841479,194475,NULL,NULL,NULL,0,NULL,NULL 19414,480198,632204,Notable Question Notable Question Yearling Famous Question Notable Question Caucus Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 19415,226541,463153,NULL,NULL,NULL,0,NULL,NULL 19416,347353,664537,NULL,NULL,NULL,0,NULL,NULL 19417,329642,1219183,Informed Teacher Editor,NULL,NULL,0,NULL,NULL 19418,8605503,668163,NULL,NULL,NULL,0,NULL,NULL 19419,963779,462709,NULL,NULL,NULL,0,NULL,NULL 19420,575368,6432,Nice Answer Good Question Notable Question Popular Question Yearling Popular Question Popular Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 19421,264903,15255,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Custodian Yearling Good Answer Popular Question Good Answer Yearling Nice Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 19422,214314,465034,Notable Question Necromancer Revival,NULL,NULL,0,NULL,NULL 19423,884083,1326828,NULL,NULL,NULL,0,NULL,NULL 19424,161431,1469393,NULL,NULL,NULL,0,NULL,NULL 19425,219302,505729,Nice Answer Peer Pressure Revival Yearling Caucus,NULL,NULL,0,NULL,NULL 19426,41483,896963,NULL,NULL,NULL,0,NULL,NULL 19427,340661,159434,Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Civic Duty Nice Question Yearling Guru Nice Answer Notable Question Popular Question Popular Question Famous Question Popular Question Good Question Nice Answer Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Good Question Yearling Popular Question Nice Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 19428,1317879,159434,Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Civic Duty Nice Question Yearling Guru Nice Answer Notable Question Popular Question Popular Question Famous Question Popular Question Good Question Nice Answer Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Good Question Yearling Popular Question Nice Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 19429,77950,54499,Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 19430,110972,874530,Supporter,NULL,NULL,0,NULL,NULL 19431,1186043,1412105,NULL,NULL,NULL,0,NULL,NULL 19432,88796,1112309,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19433,615769,1017281,NULL,NULL,NULL,0,NULL,NULL 19434,501691,646452,Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19435,1332873,722624,Critic,NULL,NULL,0,NULL,NULL 19436,317470,1172062,NULL,NULL,NULL,0,NULL,NULL 19437,205447,552194,Yearling Curious Popular Question Self-Learner Announcer Tenacious Nice Answer Popular Question Yearling Notable Question Popular Question Necromancer Announcer Documentation User Nice Answer Yearling Civic Duty Caucus Custodian Organizer Notable Question Revival Good Question,NULL,NULL,0,NULL,NULL 19438,243681,2504,Yearling Yearling Commentator Yearling,NULL,How to convert java util Date to java sql Date java sql datetime date pI am trying to use href http docs oracle com javase docs api java util Date html rel noreferrer codejava util Date code as input and then creating query with it so need href http docs oracle com javase docs api java sql Date html rel noreferrer codejava sql Date code ppI was surprised to find that it couldn do the conversion implicitly or explicitly but don even know how would do this as the Java API is still fairly new to me indeed wasn aware of the nuances back in 09 and since this question is so popular ve changed the accepted answer to one that is both more modern and complete Thanks everyone for your input,0,NULL,NULL 19439,1381140,123874,NULL,NULL,NULL,0,NULL,NULL 19440,15753,123874,NULL,NULL,NULL,0,NULL,NULL 19441,1146446,515587,NULL,NULL,NULL,0,NULL,NULL 19442,1313269,18516,NULL,NULL,NULL,0,NULL,NULL 19443,4877,1035861,NULL,NULL,NULL,0,NULL,NULL 19444,35936,25517,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19445,5977523,25517,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19446,17019,1184187,NULL,NULL,NULL,0,NULL,NULL 19447,24821,96385,Yearling Favorite Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19448,349959,529326,NULL,NULL,NULL,0,NULL,NULL 19449,7052,712142,Informed,NULL,NULL,0,NULL,NULL 19450,3158691,530876,Notable Question,NULL,NULL,0,NULL,NULL 19451,288401,320026,Notable Question Yearling Favorite Question Custodian Notable Question Caucus Popular Question Yearling Custodian Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 19452,1422119,1368771,NULL,NULL,NULL,0,NULL,NULL 19453,419714,1116398,Popular Question,NULL,NULL,0,NULL,NULL 19454,2920198,1116398,Popular Question,NULL,NULL,0,NULL,NULL 19455,584181,777806,NULL,NULL,NULL,0,NULL,NULL 19456,16837,17944,Necromancer Good Answer Necromancer Nice Answer Nice Question Yearling Caucus Nice Answer Great Answer Yearling Nice Answer Nice Answer Necromancer Synonymizer Self-Learner prestodb Good Answer Nice Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 19457,67607,210578,Nice Answer Guru Great Question Notable Question Popular Question Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Good Question Good Answer Nice Answer Notable Question Great Question Nice Answer Enlightened Good Answer Good Question Nice Question Popular Question Notable Question Good Question Guru Nice Answer Enlightened Good Answer Favorite Question Notable Question Great Answer Yearling Nice Answer Enlightened Popular Question Notable Question Notable Question Guru Famous Question Nice Answer Enlightened Popular Question Popular Question Great Question Good Answer Nice Question Good Question Notable Question Good Question Populist Good Question Nice Answer Nice Answer Popular Question Great Answer Popular Question Famous Question Nice Question Popular Question Popular Question Populist Yearling Good Answer Guru Famous Question Popular Question Famous Question Favorite Question Guru Cleanup Nice Answer Enlightened Popular Question Nice Question Good Answer Nice Answer Nice Answer Stellar Question Popular Question Popular Question Good Question Good Answer Nice Answer Enlightened Great Answer Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19458,406175,629875,Critic Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 19459,198772,258953,NULL,NULL,NULL,0,NULL,NULL 19460,169579,259573,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 19461,772902,1496959,NULL,NULL,NULL,0,NULL,NULL 19462,1588535,1249453,Curious Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 19463,257405,11097,Notable Question Notable Question Critic Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 19464,151044,1154880,Popular Question,NULL,NULL,0,NULL,NULL 19465,24438,363728,Notable Question Promoter Tumbleweed,NULL,NULL,0,NULL,NULL 19466,29759,181954,NULL,NULL,NULL,0,NULL,NULL 19467,1417705,205347,Tumbleweed Popular Question Informed Popular Question Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 19468,2961910,278831,Supporter,NULL,NULL,0,NULL,NULL 19469,726239,341632,NULL,NULL,NULL,0,NULL,NULL 19470,466007,583051,NULL,NULL,NULL,0,NULL,NULL 19471,350759,261131,Yearling Good Answer Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 19472,1181347,402141,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19473,158141,1014241,Custodian Yearling,NULL,NULL,0,NULL,NULL 19474,779181,267502,NULL,NULL,NULL,0,NULL,NULL 19475,339074,907202,Teacher,NULL,NULL,0,NULL,NULL 19476,2407,576446,Yearling Nice Answer Notable Question Necromancer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 19477,518437,137340,Critic,NULL,NULL,0,NULL,NULL 19478,183462,1137662,NULL,NULL,NULL,0,NULL,NULL 19479,250302,188880,NULL,NULL,NULL,0,NULL,NULL 19480,204781,154399,Popular Question,NULL,NULL,0,NULL,NULL 19481,177890,1042577,NULL,NULL,NULL,0,NULL,NULL 19482,12711,1150057,NULL,NULL,NULL,0,NULL,NULL 19483,12865,4918,Popular Question Good Answer Notable Question Nice Question Revival Notable Question Yearling Guru Good Question Good Answer Nice Answer Famous Question Necromancer Populist Great Answer Great Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Question Necromancer Guru Great Answer Guru Electorate Good Question Yearling Great Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 19484,160100,65193,NULL,NULL,NULL,0,NULL,NULL 19485,525757,719599,NULL,NULL,NULL,0,NULL,NULL 19486,103784,7122,Notable Question Good Answer Inquisitive Guru c# Yearling Nice Answer Enlightened Good Answer Announcer Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened c#-7.0 Announcer Excavator Nice Answer Popular Question Strunk & White Good Answer Investor Announcer Nice Answer Tag Editor Yearling Documentation User Good Answer Nice Answer Nice Answer Good Answer Census Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Yearling Popular Question Favorite Question Good Answer Guru Announcer,NULL,pA way to do this is to use tuple and deconstruction to allow multiple assignments in one expression ppre codepublic class Person public string Name get public int Age get public Person string name int age gt Name Age name age code prepAs of introduced with Visual Studio 2017 Update the compiler code will now optimise away the actual construction and deconstruction of the tuple So this approach has no performance overhead when compared with longhand assignment os in what way is it evil As if ve started using this as it seems like neat solution to me,1,NULL,Expression Bodied Constructors net pIn how do write an Expression Bodied Constructor like this using parameters ppre codepublic Person string name int age Name name Age age code pre pA way to do this is to use tuple and deconstruction to allow multiple assignments in one expression ppre codepublic class Person public string Name get public int Age get public Person string name int age gt Name Age name age code prepAs of introduced with Visual Studio 2017 Update the compiler code will now optimise away the actual construction and deconstruction of the tuple So this approach has no performance overhead when compared with longhand assignment 19487,47284,1121303,NULL,NULL,NULL,0,NULL,NULL 19488,713893,1167404,Revival,NULL,NULL,0,NULL,NULL 19489,42412,198514,Nice Question ios Notable Question Revival Revival Popular Question Necromancer Popular Question Necromancer Notable Question Nice Answer Nice Answer Enlightened Yearling Notable Question Necromancer Popular Question Nice Question Notable Question Nice Answer Enlightened Popular Question Nice Question Yearling Nice Question Caucus Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 19490,101597,187237,Good Answer Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19491,66242,212635,NULL,NULL,NULL,0,NULL,NULL 19492,8160,392856,Notable Question Yearling Yearling Cleanup Custodian Yearling,NULL,NULL,0,NULL,NULL 19493,119770,1049788,Good Answer Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 19494,268028,1113788,Supporter Editor Yearling Critic Caucus Informed Commentator Autobiographer Yearling Tumbleweed Yearling Custodian Yearling Tenacious Yearling Caucus Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 19495,410197,756694,NULL,NULL,NULL,0,NULL,NULL 19496,70250,800501,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19497,314667,517963,NULL,NULL,NULL,0,NULL,NULL 19498,70484,32127,Famous Question Nice Answer Yearling Announcer Announcer Good Question,NULL,NULL,0,NULL,NULL 19499,14451,1048705,Nice Answer Enlightened Yearling Organizer Revival Nice Answer Enlightened Good Answer Necromancer Yearling Good Answer Guru Good Answer Guru Deputy Informed Caucus Necromancer nginx Documentation User Yearling Custodian Revival Great Answer Nice Answer Revival Nice Answer Great Answer Enlightened Announcer Yearling,NULL,pIt is Safari specific at least at time of writing being introduced in Safari From the What new in Safari href https developer apple com library ios releasenotes General WhatsNewInSafari Articles Safari html apple ref doc uid TP40014305 CH9 SW36 rel noreferrer documentation for Safari pblockquote h1Viewport Changes h1 pViewport meta tags using code width device width code cause the page to scale down to fit content that overflows the viewport bounds You can override this behavior by adding code shrink to fit no code to your meta tag as shown below The added value will prevent the page from scaling to fit the viewport code lt meta name viewport content width device width initial scale shrink to fit no gt code blockquotepIn short adding this to the viewport meta tag restores pre Safari behaviour ph1Example h1pHere worked visual example which shows the difference upon loading the page in the two configurations ppThe red section is the width of the viewport and the blue section is positioned outside the initial viewport eg codeleft 100vw code Note how in the first example the page is zoomed to fit when codeshrink to fit no code is omitted thus showing the out of viewport content and the blue content remains off screen in the latter example ppThe code for this example can be found at href https codepen io davidjb pen ENGqpv rel noreferrer https codepen io davidjb pen ENGqpv ph2Without shrink to fit specified h2p href https stack imgur com mSP03 png rel noreferrer img src https stack imgur com mSP03 png alt Without shrink to fit no ph2With shrink to fit no h2p href https stack imgur com a3PrY png rel noreferrer img src https stack imgur com a3PrY png alt With shrink to fit no By default Safari will zoom page out to fit any content that overflows the viewport first example shows the blue area as visible that overflowing Specifying shrink to fit no prevents this behaviour leaving the zoom level alone and leaving the overflowing content off screen Try the Codepen example on your iDevice or iOS Simulator and try changing the setting Perhaps seeing the change interactively will help pIt is Safari specific at least at time of writing being introduced in Safari From the What new in Safari href https developer apple com library ios releasenotes General WhatsNewInSafari Articles Safari html apple ref doc uid TP40014305 CH9 SW36 rel noreferrer documentation for Safari pblockquote h1Viewport Changes h1 pViewport meta tags using code width device width code cause the page to scale down to fit content that overflows the viewport bounds You can override this behavior by adding code shrink to fit no code to your meta tag as shown below The added value will prevent the page from scaling to fit the viewport code lt meta name viewport content width device width initial scale shrink to fit no gt code blockquotepIn short adding this to the viewport meta tag restores pre Safari behaviour ph1Example h1pHere worked visual example which shows the difference upon loading the page in the two configurations ppThe red section is the width of the viewport and the blue section is positioned outside the initial viewport eg codeleft 100vw code Note how in the first example the page is zoomed to fit when codeshrink to fit no code is omitted thus showing the out of viewport content and the blue content remains off screen in the latter example ppThe code for this example can be found at href https codepen io davidjb pen ENGqpv rel noreferrer https codepen io davidjb pen ENGqpv ph2Without shrink to fit specified h2p href https stack imgur com mSP03 png rel noreferrer img src https stack imgur com mSP03 png alt Without shrink to fit no ph2With shrink to fit no h2p href https stack imgur com a3PrY png rel noreferrer img src https stack imgur com a3PrY png alt With shrink to fit no Various reasons but quick examples are sliders carousels that place content outside of the viewport or otherwise large non responsive content eg images tables that would otherwise overflow and cause the rest of the page to become tiny with the default shrink to fit behaviour With shrink to fit no the page remains at the expected size letting the content overflow the viewport user can typically still scroll or zoom out to see the overflow content but the initial viewport matches the device size pYou were on the right track when you combined them to single field There should be only one scope parameter in the request with the values separated by spaces If you re putting it in form like that the browser will take care of encoding the space for you ppre code lt input type hidden name scope value https www googleapis com auth calendar https www googleapis com auth userinfo email gt code pre For the curious RFC 6749 Section https tools ietf org html rfc6749 section defines the scope parameter as The value of the scope parameter is expressed as list of space delimited case sensitive strings,0,NULL,NULL 19500,353780,11959,Popular Question Notable Question Notable Question Self-Learner Caucus Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 19501,93396,13238,Good Question Nice Answer Popular Question Popular Question Notable Question Yearling Tumbleweed Revival Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 19502,263036,752571,Nice Answer Yearling Nice Answer Enlightened css Guru Yearling Great Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 19503,223203,26401,Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 19504,479637,74173,NULL,NULL,NULL,0,NULL,NULL 19505,23377,1047806,Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 19506,205371,560429,Civic Duty Custodian Nice Question Notable Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19507,181435,578828,NULL,NULL,NULL,0,NULL,NULL 19508,220352,928881,NULL,NULL,NULL,0,NULL,NULL 19509,84398,464664,NULL,NULL,NULL,0,NULL,NULL 19510,10750,450218,Nice Question Nice Answer Enlightened Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 19511,10681,910401,NULL,NULL,NULL,0,NULL,NULL 19512,24403,160513,NULL,NULL,NULL,0,NULL,NULL 19513,389138,613364,NULL,NULL,NULL,0,NULL,NULL 19514,905781,1329521,NULL,NULL,NULL,0,NULL,NULL 19515,11673,674096,NULL,NULL,NULL,0,NULL,NULL 19516,351156,1427467,Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Necromancer Notable Question Notable Question Popular Question Notable Question Good Answer Yearling Popular Question Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 19517,172103,1297,Nice Answer Yearling Famous Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 19518,78442,553994,Popular Question Nice Question Popular Question Popular Question Famous Question Notable Question Yearling Nice Answer Enlightened Nice Question Self-Learner Necromancer Popular Question Nice Answer Good Question Revival Announcer Popular Question Yearling Necromancer Good Answer Nice Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 19519,80933,656757,NULL,NULL,NULL,0,NULL,NULL 19520,52633,173348,Yearling Good Answer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19521,306485,1248546,NULL,NULL,NULL,0,NULL,NULL 19522,274568,141898,Nice Answer Enlightened Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 19523,347758,721671,Notable Question,NULL,NULL,0,NULL,NULL 19524,26243,182183,Announcer Nice Answer Enlightened Nice Answer Yearling Announcer Nice Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 19525,373977,1241287,Popular Question Yearling Notable Question Peer Pressure Famous Question Custodian Tumbleweed Announcer,NULL,pYou can listen for strongclick strong event on codedocument code and then make sure code menucontainer code is not an ancestor or the target of the clicked element by using href http api jquery com closest rel noreferrer code closest code ppIf it is not then the clicked element is outside of the code menucontainer code and you can safely hide it ppre class lang js prettyprint override code document click function event if event target closest menucontainer length if menucontainer is visible menucontainer hide code preh3Edit 2017 06 23 h3pYou can also clean up after the event listener if you plan to dismiss the menu and want to stop listening for events This function will clean up only the newly created listener preserving any other click listeners on codedocument code With ES2015 syntax ppre class lang js prettyprint override codeexport function hideOnClickOutside selector const outsideClickListener event gt if event target closest selector length if selector is visible selector hide removeClickListener const removeClickListener gt document removeEventListener click outsideClickListener document addEventListener click outsideClickListener code preh3Edit 2018 03 11 h3pFor those who don want to use jQuery Here the above code in plain vanillaJS ECMAScript6 ppre class lang js prettyprint override codefunction hideOnClickOutside element const outsideClickListener event gt if element contains event target or use event target closest selector null if isVisible element element style display none removeClickListener const removeClickListener gt document removeEventListener click outsideClickListener document addEventListener click outsideClickListener const isVisible elem gt elem amp amp elem offsetWidth elem offsetHeight elem getClientRects length source 2018 03 11 https github com jquery jquery blob master src css hiddenVisibleSelectors js code prep strongNOTE strongThis is based on Alex comment to just use code element contains event target code instead of the jQuery part ppBut codeelement closest code is now also available in all major browsers the W3C version differs bit from the jQuery one Polyfills can be found here href https developer mozilla org en US docs Web API Element closest rel noreferrer https developer mozilla org en US docs Web API Element closest Has anyone gotten this to work on mobile devices,0,NULL,NULL 19526,114514,811624,NULL,NULL,NULL,0,NULL,NULL 19527,292904,518289,Student Notable Question,NULL,NULL,0,NULL,NULL 19528,12,337649,Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 19529,332281,1236465,NULL,NULL,NULL,0,NULL,NULL 19530,547575,794111,Popular Question Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 19531,338388,1140190,NULL,NULL,NULL,0,NULL,NULL 19532,20550,3404,Nice Answer Nice Question Yearling Nice Answer Enlightened Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 19533,210997,269073,Organizer Census Student Scholar,NULL,NULL,0,NULL,NULL 19534,113136,513536,Notable Question Nice Question Yearling Revival Custodian Necromancer Yearling Good Answer Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 19535,162470,19068,Nice Answer Enlightened Guru callback Nice Answer Enlightened node.js Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Good Answer Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer textarea Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Notable Question Good Answer Guru html-entities Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Good Answer path Good Answer Good Answer Nice Answer Enlightened ssl Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Good Answer Nice Answer Great Answer Great Answer Good Answer Nice Answer validation Good Answer Good Answer Nice Answer Enlightened Good Answer Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Question Good Answer Good Answer Nice Answer Nice Answer Great Answer Populist Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Reversal Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened post Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer undefined Guru Good Answer Nice Answer Populist Good Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer html-table Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Guru Enlightened Good Answer Guru Good Answer Guru Nice Answer Nice Answer Enlightened Great Answer Yearling codeigniter Guru Nice Answer Guru Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer encoding css-selectors Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened rest Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened angularjs Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Good Answer stylesheet Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Good Answer Good Answer oop Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru settimeout Guru Nice Answer Good Answer Guru Good Answer Nice Answer Good Answer Nice Answer express Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened api Nice Answer Enlightened Guru html-parsing Nice Answer return Nice Answer Enlightened this Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened cors character-encoding Good Answer Revival Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Good Answer asynchronous Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Revival Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Guru Good Answer Guru Great Answer Enlightened Guru Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Enlightened Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer if-statement Nice Answer ecmascript-6 Good Answer fonts Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Great Answer Guru caching mailto Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Census Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer node.js Good Answer Reviewer Nice Answer Enlightened Announcer Nice Answer Good Answer Good Answer Populist Good Answer Revival Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer class Nice Answer Nice Answer Great Answer Guru Good Answer Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer google-chrome Guru Nice Answer Enlightened Good Answer reactjs object Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer semantic-markup Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Guru Nice Answer Curious Nice Answer iframe Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer hoisting Guru Nice Answer Enlightened https Nice Answer Good Answer Guru Good Answer Good Answer encryption Guru Guru Nice Answer Good Answer Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer same-origin-policy Guru Nice Answer promise Guru Great Answer Nice Answer Guru Booster cookies Nice Answer Announcer Good Answer Great Answer Populist Guru Revival Yearling Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened cpan Nice Answer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened mime-types Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru html-table Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened for-loop Nice Answer Nice Answer Enlightened Good Answer,NULL,pWhen you make POST request you have to encode the data that forms the body of the request in some way ppHTML forms provide three methods of encoding pulli codeapplication www form urlencoded code the default lili codemultipart form data code lili codetext plain code li ulpWork was being done on adding href http www w3 org TR html json forms rel noreferrer codeapplication json code but that has been abandoned ppThe specifics of the formats don matter to most developers The important points are ppWhen you are writing client side code all you need to know is stronguse codemultipart form data code when your form includes any code lt input type file gt code elements strong ppWhen you are writing server side code strongUse prewritten form handling library strong Perl codeCGI gt param code or the one exposed by PHP code POST code superglobal and it will take care of the differences for you Don bother trying to parse the raw input received by the server pp strongNever use codetext plain code strong phrpIf you are writing or debugging library for parsing or generating the raw data then you need to start worrying about the format You might also want to know about it for interest sake pp codeapplication www form urlencoded code is more or less the same as query string on the end of the URL pp codemultipart form data code is significantly more complicated but it allows entire files to be included in the data An example of the result can be found in the href http www w3 org TR html401 interact forms html 17 13 rel noreferrer HTML specification pp codetext plain code is introduced by HTML and is useful only for debugging from href http www w3 org TR html5 forms html text plain encoding algorithm rel noreferrer the spec emThey are not reliably interpretable by computer em and argue that the others combined with tools like the Net tab in the developer tools of most browsers are better for that HTML forms provide three methods of ENC oding pA pt is 72th of an inch and is useless measure for anything that is rendered on device which doesn calculate the DPI correctly This makes it reasonable choice for printing and dreadful choice for use on screen ppA px is pixel which will map on to screen pixel in most cases ppCSS provides bunch of other units and which one you should choose depends on what you are setting the size of ppA pixel is great if you need to size something to match an image or if you want thin border ppPercentages are great for font sizes as if you use them consistently you get font sizes proportional to the user preference ppEms are great when you want an element to size itself based on the font size so paragraph might get wider if the font size is larger pp… and so on Hence in most cases pA pt is 72th of an inch and is useless measure for anything that is rendered on device which doesn calculate the DPI correctly This makes it reasonable choice for printing and dreadful choice for use on screen ppA px is pixel which will map on to screen pixel in most cases ppCSS provides bunch of other units and which one you should choose depends on what you are setting the size of ppA pixel is great if you need to size something to match an image or if you want thin border ppPercentages are great for font sizes as if you use them consistently you get font sizes proportional to the user preference ppEms are great when you want an element to size itself based on the font size so paragraph might get wider if the font size is larger pp… and so on Within the context of CSS the cases vary by display type Most are CSS pixel to screen pixel Although little less so these days given ultra high density displays ulli pIn strongHTML strong code lt foo code yes with no code gt code at all means code lt foo gt code which leads to code lt br gt code meaning code lt br gt gt code code lt br gt amp gt code and code lt title hello code meaning code lt title gt hello lt title gt code Browsers did very poor job of supporting this and href http www w3 org TR html4 appendix notes html rel noreferrer the spec advises authors to avoid the syntax lili pIn strongXHTML strong href http www w3 org TR xml d0e2480 rel noreferrer code lt foo gt code means code lt foo gt lt foo gt code This is an strongXML strong rule that applies to all XML documents That said XHTML is often served as codetext html code which historically at least gets processed by browsers using different parser than documents served as codeapplication xhtml xml code The W3C provides href http www w3 org TR xhtml media types rel noreferrer compatibility guidelines to follow for XHTML as codetext html code Essentially Only use self closing tag syntax when the element is defined as EMPTY and the end tag was forbidden in the HTML spec lili pIn strongHTML5 strong the meaning of code lt foo gt code href https www w3 org TR html5 syntax html start tags rel noreferrer depends on the type of element pulliOn HTML elements that are designated as emvoid elements em essentially An element that existed before HTML5 and which was forbidden to have any content end tags are simply forbidden The slash at the end of the start tag is allowed but has no meaning It is just syntactic sugar for people and syntax highlighters that are addicted to XML liliOn other HTML elements the slash is an error but error recovery will cause browsers to ignore it and treat the tag as regular start tag This will usually end up with missing end tag causing subsequent elements to be children instead of siblings liliForeign elements imported from XML applications such as SVG treat it as self closing syntax li ul li ul Really can see two sentences in the whole thing that have an opinionated slant and don think many people will disagree with my assessment that browser support for SGML features with limited support was poor Emacs W3 is the only browser encountered that had any support for them and even they are mostly factual codetext javascript code is obsolete and codeapplication javascript code was experimental hence the codex code prefix for transitional period until codeapplication javascript code could be standardised pp strongYou should use codeapplication javascript code strong This is documented in the href http www rfc editor org rfc rfc4329 txt RFC ppAs far browsers are concerned there is no difference at least in HTTP headers This was just change so that the codetext code and codeapplication code MIME type groups had consistent meaning where possible codetext code MIME types are intended for human readable content JavaScript is not designed to directly convey meaning to humans ppNote that using codeapplication javascript code in the codetype code attribute of script element will cause the script to be ignored as being in an unknown language in some older browsers Either continue to use codetext javascript code there or omit the attribute entirely which is permitted in HTML ppThis isn problem in HTTP headers as browsers universally as far as aware either ignore the HTTP content type of scripts entirely or are modern enough to recognise codeapplication javascript code Maddin the referenced RFC is describing the registered media type The RFC for HTTP https tools ietf org html rfc7231 section says that the value of the content type header is media type The media type RFC doesn specifically mention HTTP because lots of other things use media types SMTP and multipart MIME JavaScript programs are not intended to be read by humans they are pieces of software They are not designed to convey information directly to people pContent that is floating does not influence the height of its container The element contains no content that isn floating so nothing stops the height of the container being as if it were empty ppSetting codeoverflow hidden code on the container will avoid that by establishing new href https www w3 org TR CSS21 visuren html block formatting rel noreferrer block formatting context See href http web archive org web 20161207154227 http www ejeliot com blog 59 rel noreferrer methods for containing floats for other techniques and href http complexspiral com publications containing floats rel noreferrer containing floats for an explanation about why CSS was designed this way Yes that mentioned on the methods for containing floats page linked to As it says it is very ugly approach There is no reason to stuff empty div elements in the page just to achieve this effect,0,NULL,NULL 19536,7379,387927,Revival Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Announcer Yearling Nice Answer Enlightened Announcer Caucus Constituent Announcer Nice Answer Enlightened Necromancer Yearling Caucus Constituent Custodian Announcer Announcer Announcer Announcer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 19537,353244,945935,NULL,NULL,NULL,0,NULL,NULL 19538,7769,311280,NULL,NULL,NULL,0,NULL,NULL 19539,270191,224192,Notable Question Famous Question Good Question Yearling Notable Question Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 19540,273658,1160157,Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 19541,443359,700665,NULL,NULL,NULL,0,NULL,NULL 19542,141846,305254,Good Answer,NULL,NULL,0,NULL,NULL 19543,1358541,1067954,NULL,NULL,NULL,0,NULL,NULL 19544,18666,1349669,NULL,NULL,NULL,0,NULL,NULL 19545,585033,1176265,NULL,NULL,NULL,0,NULL,NULL 19546,1655446,231025,NULL,NULL,NULL,0,NULL,NULL 19547,1569033,686046,Necromancer,NULL,NULL,0,NULL,NULL 19548,443387,172029,Popular Question Nice Question Custodian Nice Answer Enlightened Famous Question Good Answer Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question Good Answer Notable Question Good Answer Notable Question Great Question Notable Question Yearling Famous Question Popular Question Nice Question Favorite Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Yearling Good Answer Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Stellar Question Notable Question Nice Answer Good Answer Nice Answer Notable Question Good Question Notable Question Notable Question Yearling Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 19549,36410,460244,Good Answer Good Answer Populist Necromancer Yearling Nice Answer Yearling Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 19550,4550,728126,NULL,NULL,NULL,0,NULL,NULL 19551,105299,975845,NULL,NULL,NULL,0,NULL,NULL 19552,18174,408155,Commentator Yearling,NULL,NULL,0,NULL,NULL 19553,168681,719922,NULL,NULL,NULL,0,NULL,NULL 19554,823535,40581,Good Answer Favorite Question Good Answer Good Answer Yearling Good Answer Popular Question Documentation User Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 19555,218291,521159,NULL,NULL,NULL,0,NULL,NULL 19556,285990,2384,Yearling Nice Answer Good Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 19557,192991,1192823,NULL,NULL,NULL,0,NULL,NULL 19558,456624,1132287,Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19559,376247,1036632,NULL,NULL,NULL,0,NULL,NULL 19560,271909,795641,NULL,NULL,NULL,0,NULL,NULL 19561,1117010,897738,NULL,NULL,NULL,0,NULL,NULL 19562,75021,1468326,Informed Autobiographer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 19563,74623,593170,Informed Announcer Tumbleweed Enthusiast Nice Answer,NULL,NULL,0,NULL,NULL 19564,77568,1276828,Yearling Yearling Yearling Great Answer Yearling Populist,NULL,NULL,0,NULL,NULL 19565,148937,297479,Documentation User,NULL,NULL,0,NULL,NULL 19566,20415,565110,Yearling Guru Nice Answer Caucus Yearling Revival Caucus Nice Answer Revival Popular Question Announcer Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 19567,615807,888370,NULL,NULL,NULL,0,NULL,NULL 19568,30088,1146,Popular Question Nice Answer Yearling Popular Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 19569,13914,79202,Popular Question Nice Question Yearling Famous Question Popular Question Nice Question Nice Answer Revival Announcer Caucus Necromancer Popular Question Announcer Notable Question Yearling Notable Question Popular Question Nice Answer Announcer Good Question Famous Question Popular Question Announcer Notable Question Yearling Caucus Notable Question Popular Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 19570,162403,114132,Necromancer Good Answer Yearling Popular Question Yearling Notable Question Nice Answer Yearling,NULL,pjQuery has new feature for doing this and it rules ve forgotten what it called but you use it like this ppre code directions link attr href function href return href testing code prepThat loops over all the elements too so no need for each Allowing attr to take function was added in but passing the current value as the second param was added in Here an example of it not working in jquery https jsfiddle net qz9eLr2z,0,NULL,NULL 19571,50037,191450,Nice Question Nice Answer Stellar Question tornado Nice Answer Enlightened Good Answer Yearling Good Answer Enlightened Popular Question Nice Answer Famous Question Documentation User Yearling Popular Question Census Good Answer Popular Question Custodian Popular Question Good Answer Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 19572,283387,498817,Popular Question,NULL,NULL,0,NULL,NULL 19573,167866,637792,NULL,NULL,NULL,0,NULL,NULL 19574,164885,1361794,NULL,NULL,NULL,0,NULL,NULL 19575,69152,18625,Notable Question Proofreader Nice Question Notable Question Nice Answer Famous Question Yearling Nice Answer Caucus Yearling Good Answer Custodian Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 19576,137393,977360,NULL,NULL,NULL,0,NULL,NULL 19577,73462,23370,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19578,435907,293379,Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19579,3656642,564263,NULL,NULL,NULL,0,NULL,NULL 19580,8977788,564263,NULL,NULL,NULL,0,NULL,NULL 19581,42702,462501,Nice Answer Enlightened Guru Yearling Good Answer Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 19582,6231421,277736,NULL,NULL,NULL,0,NULL,NULL 19583,17434,277736,NULL,NULL,NULL,0,NULL,NULL 19584,286405,839760,NULL,NULL,NULL,0,NULL,NULL 19585,106018,645728,NULL,NULL,NULL,0,NULL,NULL 19586,399755,823221,Teacher,NULL,NULL,0,NULL,NULL 19587,136632,1257991,Nice Answer,NULL,NULL,0,NULL,NULL 19588,367360,979655,NULL,NULL,NULL,0,NULL,NULL 19589,110332,1417579,Popular Question Critic Notable Question Good Answer Self-Learner Yearling Nice Question,NULL,NULL,0,NULL,NULL 19590,617322,122118,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19591,391590,2183,Favorite Question Nice Question Good Question Notable Question Great Question Yearling Announcer Good Question Favorite Question Good Question Great Question Nice Question Favorite Question Nice Question Yearling Nice Answer Great Question Favorite Question Booster Yearling Famous Question,NULL,NULL,0,NULL,NULL 19592,386169,545378,Notable Question Revival Revival Yearling Scholar Revival,NULL,NULL,0,NULL,NULL 19593,77813,84380,Yearling Good Answer Yearling Notable Question Good Answer Nice Question Notable Question Yearling Populist Nice Answer Favorite Question,NULL,NULL,0,NULL,NULL 19594,1733531,121977,Yearling Census Student Scholar,NULL,NULL,0,NULL,NULL 19595,459361,879091,NULL,NULL,NULL,0,NULL,NULL 19596,180243,1122851,Enthusiast Notable Question Good Question Necromancer Popular Question Yearling Nice Answer Yearling Popular Question Necromancer Census Curious Necromancer,NULL,NULL,0,NULL,NULL 19597,18376,88022,Autobiographer,NULL,NULL,0,NULL,NULL 19598,3929753,268074,Socratic Notable Question Notable Question Good Answer Yearling Nice Answer Enlightened Nice Question Good Question Announcer Popular Question Good Question Announcer Guru Popular Question jquery Notable Question Revival Nice Question Notable Question Popular Question Nice Question Good Answer Nice Answer Popular Question Notable Question Popular Question Necromancer Caucus Good Question Nice Answer Enlightened Constituent Popular Question Famous Question Popular Question Good Answer Popular Question Nice Answer Notable Question Popular Question Great Question Necromancer Good Answer Nice Question Popular Question Yearling Nice Answer Popular Question Famous Question Famous Question Guru Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question javascript Caucus Popular Question Constituent Popular Question Great Answer Nice Answer Enlightened Notable Question Popular Question Notable Question Favorite Question Guru Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Nice Question Caucus Constituent Good Answer Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Answer Nice Answer Enlightened Popular Question Notable Question Guru,NULL,NULL,0,NULL,NULL 19599,593468,1119614,Necromancer,NULL,NULL,0,NULL,NULL 19600,22694,1170912,NULL,NULL,NULL,0,NULL,NULL 19601,3315805,175417,NULL,NULL,NULL,0,NULL,NULL 19602,30353,175417,NULL,NULL,NULL,0,NULL,NULL 19603,102776,1444683,NULL,NULL,NULL,0,NULL,NULL 19604,341437,165596,Good Question,NULL,NULL,0,NULL,NULL 19605,228056,544224,NULL,NULL,NULL,0,NULL,NULL 19606,24471,99985,Popular Question Critic Popular Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 19607,1442872,449958,Good Answer Good Answer Nice Answer android Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Scholar Nice Answer Student Nice Answer Nice Answer Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Guru,NULL,NULL,0,NULL,NULL 19608,1221113,449958,Good Answer Good Answer Nice Answer android Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Scholar Nice Answer Student Nice Answer Nice Answer Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Guru,NULL,NULL,0,NULL,NULL 19609,114526,188709,Custodian Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 19610,42050,361415,NULL,NULL,NULL,0,NULL,NULL 19611,150134,606705,Necromancer Yearling Autobiographer Necromancer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 19612,1347372,28310,Curious Custodian Informed Nice Question Citizen Patrol Custodian Civic Duty Suffrage Vox Populi Caucus Constituent Popular Question Yearling Custodian Organizer Notable Question Documentation User Census Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 19613,17590,258688,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19614,195711,1001138,Notable Question,NULL,NULL,0,NULL,NULL 19615,263913,431784,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19616,170977,215217,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19617,286338,8997,Notable Question Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19618,98970,771489,Famous Question Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 19619,169944,1171356,NULL,NULL,NULL,0,NULL,NULL 19620,3011110,1171356,NULL,NULL,NULL,0,NULL,NULL 19621,10251677,957573,Teacher Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 19622,1436386,957573,Teacher Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 19623,445560,3663,Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19624,97752,497825,NULL,NULL,NULL,0,NULL,NULL 19625,13143,131112,Teacher,NULL,NULL,0,NULL,NULL 19626,109767,1139935,Yearling Revival Great Answer Necromancer Yearling Nice Answer Editor Yearling,NULL,NULL,0,NULL,NULL 19627,518315,1165290,Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 19628,184807,897807,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 19629,8064092,790007,NULL,NULL,NULL,0,NULL,NULL 19630,67992,457659,Necromancer,NULL,NULL,0,NULL,NULL 19631,7635,1170623,NULL,NULL,NULL,0,NULL,NULL 19632,4283155,1466653,Commentator Popular Question,NULL,NULL,0,NULL,NULL 19633,76908,20538,NULL,NULL,NULL,0,NULL,NULL 19634,43637,41655,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer jquery Yearling Nice Answer Enlightened Guru Nice Answer Great Answer Good Answer Nice Answer Announcer Good Answer Nice Answer Good Answer Populist Yearling Nice Answer oop python Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Inquisitive Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 19635,151988,200667,NULL,NULL,NULL,0,NULL,NULL 19636,726774,1448576,NULL,NULL,NULL,0,NULL,NULL 19637,231153,83395,NULL,NULL,NULL,0,NULL,NULL 19638,50015,607708,NULL,NULL,NULL,0,NULL,NULL 19639,916078,368630,Nice Answer Necromancer Nice Answer Nice Answer Popular Question Guru Nice Answer Nice Answer Guru Notable Question Nice Question Nice Question grep Notable Question Notable Question Popular Question scripting bash Nice Answer Good Answer Notable Question Nice Answer awk Great Answer ivy Nice Answer Nice Answer Good Answer Nice Answer Popular Question Nice Answer Nice Answer shell Nice Answer Yearling Necromancer Necromancer Nice Answer Enlightened Revival Nice Answer Nice Answer Notable Question Popular Question Good Answer Popular Question Notable Question Popular Question Popular Question arrays Nice Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer Nice Question Nice Answer Guru Popular Question Notable Question Nice Answer Good Answer Famous Question Famous Question Notable Question Notable Question Notable Question Notable Question Good Answer Necromancer windows Good Answer Good Answer Necromancer Nice Answer Good Question Popular Question Great Answer Popular Question Nice Answer Famous Question Nice Answer Revival Notable Question Popular Question Nice Answer Revival Nice Answer Nice Answer Notable Question Popular Question Popular Question Popular Question Pundit Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Nice Answer git Popular Question Famous Question Famous Question Necromancer Popular Question unix Good Answer Good Answer Good Answer Notable Question Necromancer Good Question Famous Question Good Answer macos ant Nice Answer Nice Question Guru Nice Answer Notable Question Notable Question Necromancer Notable Question Popular Question Notable Question Nice Answer Guru Good Answer Nice Question Notable Question Nice Answer Nice Answer Necromancer Necromancer Popular Question Famous Question Nice Answer Nice Answer Enlightened Notable Question Announcer Guru Popular Question Yearling branch Popular Question merge Great Answer Good Answer Nice Answer Famous Question Nice Answer Notable Question Nice Answer Notable Question Popular Question Good Answer perl-module Notable Question Good Answer sed Nice Answer Nice Answer Good Answer Guru Popular Question Good Answer Good Question,NULL,NULL,0,NULL,NULL 19640,169818,969739,NULL,NULL,NULL,0,NULL,NULL 19641,109787,847378,Editor,NULL,NULL,0,NULL,NULL 19642,123614,175689,Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 19643,86253,585095,NULL,NULL,NULL,0,NULL,NULL 19644,396623,903377,Census Teacher,NULL,NULL,0,NULL,NULL 19645,67351,280913,Yearling Good Answer Custodian Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 19646,37583,71522,Good Question Good Question Nice Answer Nice Question Nice Question Nice Answer Necromancer Popular Question Notable Question Necromancer Yearling Popular Question Popular Question Notable Question Necromancer Nice Answer Notable Question Good Answer Popular Question Necromancer Famous Question Nice Question Famous Question Nice Question Notable Question Notable Question Great Question Good Answer Famous Question Nice Answer Announcer Popular Question Nice Answer Enlightened Good Question Famous Question Nice Question Popular Question Notable Question Guru Popular Question Good Answer Notable Question Favorite Question Famous Question Notable Question Notable Question Notable Question Guru Nice Question Nice Answer Good Question Famous Question Popular Question Revival Famous Question Announcer Good Question Caucus Famous Question Nice Answer Nice Answer Enlightened Notable Question Famous Question Notable Question Popular Question Nice Question Revival Nice Question Announcer Guru Guru Popular Question Popular Question Announcer Nice Question Popular Question Notable Question Yearling Notable Question Good Question Revival Nice Question Good Question Famous Question Famous Question Announcer Nice Question Notable Question Necromancer Notable Question Nice Question Nice Answer Necromancer Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Notable Question Popular Question Famous Question Nice Answer Enlightened Good Answer Necromancer Necromancer Notable Question Revival Notable Question Good Question Nice Answer Great Answer Popular Question Famous Question Nice Answer Good Answer django Guru Popular Question Popular Question Popular Question Popular Question Announcer Good Answer Notable Question Nice Question Good Answer Famous Question Popular Question Nice Question Notable Question Good Question Famous Question Nice Answer Famous Question Announcer Famous Question Good Question Notable Question Notable Question Guru Necromancer Popular Question Nice Answer Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Good Question Nice Question Good Question Nice Answer Popular Question Great Question Popular Question Stellar Question Good Question Nice Answer Enlightened Famous Question Favorite Question Revival Notable Question Notable Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Great Answer Notable Question Notable Question Popular Question Notable Question,NULL,Python why does random randint return range inclusive of python random pIt has always seemed strange to me that coderandom randint code would return an integer in the range code code instead of code code like coderange code ppIs there any reason for this apparent inconsistency it an inconsistency because both methods range and randint accept the same logical value ie range of numbers but that value is specified in two different inconsistent ways ie one is inclusive of the endpoint the other is exclusive,1,NULL,How can use server side cursors with django and psycopg2 django postgresql transactions psycopg2 pI trying to use server side curser in psycop2 as detailed in href http thebuild com blog 2010 12 14 using server side postgresql cursors in django rel nofollow this blog post In essence this is achieved with ppre codefrom django db import connectionif connection connection is None cursor connection cursor This is required to populate the connection object properlycursor connection connection cursor name gigantic cursor code prepWhen execute the query ppre codecursor execute SELECT FROM WHERE foreign id table name id code prepI get codeProgrammingError code ppre codepsycopg2 ProgrammingError can use named cursor outside of transactions code prehrpI ve naively tried to create transaction using ppre codecursor execute BEGIN code prepbefore executing the codeSELECT code statement However that results in the same error generated from the codecursor execute BEGIN code line ppI ve also tried using ppre codecursor execute OPEN gigantic cursor FOR SELECT FROM WHERE foreign id table name id code prepbut get the same results ppHow do make transaction in django pAs you mention in your question but ll reiterate here for future readers it also possible to use explicitly named cursors without bypassing Django public API ppre codefrom django db import connection transactionwith transaction atomic connection cursor as cur cur execute DECLARE mycursor CURSOR FOR SELECT FROM giant table while True cur execute FETCH 1000 FROM mycursor chunk cur fetchall if not chunk break for row in chunk process row row code pre 19647,495048,1532408,NULL,NULL,NULL,0,NULL,NULL 19648,178467,464696,Tumbleweed Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 19649,296633,1390377,NULL,NULL,NULL,0,NULL,NULL 19650,489033,159650,Commentator Yearling Scholar,NULL,NULL,0,NULL,NULL 19651,194048,259299,Student,NULL,NULL,0,NULL,NULL 19652,243493,562034,Nice Answer,NULL,NULL,0,NULL,NULL 19653,685751,640243,Yearling Organizer Student Nice Answer Enlightened Caucus git Good Answer Yearling Guru Yearling ios,NULL,NULL,0,NULL,NULL 19654,133322,151278,Famous Question Good Question Good Question Nice Question Yearling Notable Question Good Question Notable Question Nice Question Popular Question Yearling Popular Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 19655,774903,141522,Guru Notable Question Yearling Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 19656,14216,1501893,NULL,NULL,NULL,0,NULL,NULL 19657,360963,644838,Caucus,NULL,NULL,0,NULL,NULL 19658,784482,374078,Teacher,NULL,NULL,0,NULL,NULL 19659,27533,87460,Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19660,90183,1381078,NULL,NULL,NULL,0,NULL,NULL 19661,49702,307705,Guru Notable Question Announcer Yearling Nice Answer python Announcer Nice Answer Nice Answer Nice Question Yearling Popular Question Guru Famous Question Announcer Good Answer Yearling Necromancer,NULL,pThis handles both of your cases and think will solve the general case without any for loops ppre codedef flatten if return if isinstance list return flatten flatten return flatten code pre Try it Slicing and are perfectly reasonable for single item lists and anyway slicing never raises IndexError,0,NULL,NULL 19662,22268,293602,Notable Question,NULL,NULL,0,NULL,NULL 19663,275441,348804,NULL,NULL,NULL,0,NULL,NULL 19664,42881,1400579,Yearling Census Tag Editor Custodian Quorum Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 19665,1058998,961405,Famous Question,NULL,NULL,0,NULL,NULL 19666,165166,604788,NULL,NULL,NULL,0,NULL,NULL 19667,5151962,54125,Tumbleweed,NULL,NULL,0,NULL,NULL 19668,222924,54125,Tumbleweed,NULL,NULL,0,NULL,NULL 19669,339339,1546649,NULL,NULL,NULL,0,NULL,NULL 19670,102159,385277,NULL,NULL,NULL,0,NULL,NULL 19671,82258,408239,Revival Caucus Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 19672,480003,489607,Nice Answer Nice Answer Enlightened Popular Question Good Question Nice Question Yearling Caucus Constituent Famous Question Popular Question Popular Question Notable Question Famous Question Good Answer Yearling Popular Question Good Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 19673,60683,945428,NULL,NULL,NULL,0,NULL,NULL 19674,596039,640727,Popular Question Civic Duty Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19675,1070119,664619,Supporter Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19676,3273161,1226341,NULL,NULL,NULL,0,NULL,NULL 19677,180209,484474,NULL,NULL,NULL,0,NULL,NULL 19678,171193,1548429,Critic,NULL,NULL,0,NULL,NULL 19679,9645553,1244133,Popular Question Popular Question Popular Question Tumbleweed Popular Question Critic Informed Caucus Popular Question,NULL,NULL,0,NULL,NULL 19680,663891,1244133,Popular Question Popular Question Popular Question Tumbleweed Popular Question Critic Informed Caucus Popular Question,NULL,NULL,0,NULL,NULL 19681,1505408,509476,Popular Question,NULL,NULL,0,NULL,NULL 19682,449988,920113,Nice Answer Enlightened Custodian Yearling Necromancer,NULL,NULL,0,NULL,NULL 19683,18306,1512758,NULL,NULL,NULL,0,NULL,NULL 19684,951726,396202,Yearling Good Answer,NULL,NULL,0,NULL,NULL 19685,46091,284529,Notable Question Benefactor Nice Answer Yearling Talkative Popular Question Civic Duty Socratic Popular Question Enthusiast Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Custodian Proofreader Notable Question Notable Question Popular Question Nice Question Famous Question Nice Question Notable Question Announcer Yearling Custodian Nice Question Pundit Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Custodian Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Documentation User Famous Question Popular Question Popular Question Popular Question Popular Question Necromancer Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question,NULL,Serializing std type index 11 serialization boost boost serialization pI ve been using codestd type index code to store codestd unordered map lt std type index MyProperty gt code in codeMyClass code Now would like to serialize with boost serialization codeMyClass code The compiler says codestruct std type index has no member named serialize code which indicates that boost serialization doesn support codestd type index code So the question is what to do in this case Does anyone have codeserialize code function for codestd type index code Or is there different object that can be used for the key for this codemap code that need that is already serializable that can do the same type of thing Namely when using function template do ppre codetemplate lt typename gt void MyClass func myMap find std type index typeid code prepHere is demo of the lack of support ppre code include lt boost archive text oarchive hpp gt include lt fstream gt include lt typeindex gt int main std type index myTypeIndex typeid double std ofstream outputStream test txt boost archive text oarchive outputArchive outputStream outputArchive lt lt myTypeIndex outputStream close return code pre You re saying using std unordered mapstd type index in general is bad idea Or only when it will need to be serialized Serializing std type index 11 serialization boost boost serialization pI ve been using codestd type index code to store codestd unordered map lt std type index MyProperty gt code in codeMyClass code Now would like to serialize with boost serialization codeMyClass code The compiler says codestruct std type index has no member named serialize code which indicates that boost serialization doesn support codestd type index code So the question is what to do in this case Does anyone have codeserialize code function for codestd type index code Or is there different object that can be used for the key for this codemap code that need that is already serializable that can do the same type of thing Namely when using function template do ppre codetemplate lt typename gt void MyClass func myMap find std type index typeid code prepHere is demo of the lack of support ppre code include lt boost archive text oarchive hpp gt include lt fstream gt include lt typeindex gt int main std type index myTypeIndex typeid double std ofstream outputStream test txt boost archive text oarchive outputArchive outputStream outputArchive lt lt myTypeIndex outputStream close return code pre was thinking of just switching to std unordered mapMyEnum and providing function MyEnum TypeToEnum type index any problem with that pThe href http git scm com docs git submodule rel noreferrer codegit submodule update code command actually tells Git that you want your submodules to each check out the commit already specified in the index of the superproject If you want to emupdate em your submodules to the latest commit available from their remote you will need to do this directly in the submodules ppSo in summary ppre code get the submodule initiallygit submodule add ssh bla submodule dirgit submodule init time passes submodule upstream is updated and you now want to update change to the submodule directorycd submodule dir checkout desired branchgit checkout master updategit pull get back to your project rootcd now the submodules are in the state you want sogit commit am Pulled down update to submodule dir code prepOr if you re busy person ppre codegit submodule foreach git pull origin master code pre Why do you need git submodule init after the git submodule add When git submodule add it seems to clone the submodule automatically,1,Serializing std type index 11 serialization boost boost serialization pI ve been using codestd type index code to store codestd unordered map lt std type index MyProperty gt code in codeMyClass code Now would like to serialize with boost serialization codeMyClass code The compiler says codestruct std type index has no member named serialize code which indicates that boost serialization doesn support codestd type index code So the question is what to do in this case Does anyone have codeserialize code function for codestd type index code Or is there different object that can be used for the key for this codemap code that need that is already serializable that can do the same type of thing Namely when using function template do ppre codetemplate lt typename gt void MyClass func myMap find std type index typeid code prepHere is demo of the lack of support ppre code include lt boost archive text oarchive hpp gt include lt fstream gt include lt typeindex gt int main std type index myTypeIndex typeid double std ofstream outputStream test txt boost archive text oarchive outputArchive outputStream outputArchive lt lt myTypeIndex outputStream close return code pre,NULL 19686,220309,567442,NULL,NULL,NULL,0,NULL,NULL 19687,22208,895778,NULL,NULL,NULL,0,NULL,NULL 19688,323557,1179381,NULL,NULL,NULL,0,NULL,NULL 19689,189323,195893,Notable Question Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Question Yearling Caucus Nice Answer Nice Answer Notable Question Famous Question Caucus Announcer Yearling Popular Question Caucus Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 19690,40020,483193,NULL,NULL,NULL,0,NULL,NULL 19691,135361,209727,Notable Question Popular Question Guru Nice Answer Enlightened Nice Answer Nice Answer Necromancer Necromancer Caucus Yearling Necromancer Popular Question Popular Question Popular Question Popular Question Great Answer Notable Question Caucus Announcer Constituent Nice Answer Enlightened Yearling Necromancer Nice Answer Announcer Notable Question Caucus Constituent Announcer Popular Question Good Answer Announcer Populist Great Answer Yearling,NULL,NULL,1,NULL,VS Code msCompile problemMatcher doesn work with relative file path net visual studio code dotnet cli pI need to compile NET solution using Visual Studio Code My task inside codetasks json code is declared like ppre code version tasks label build command dotnet type process group kind build isDefault true args build workspaceFolder problemMatcher msCompile code prepNow pressing kbdCtrl kbd kbdB kbd can successfully compile my entire solution Unfortunately codedotnet build code seems to output relative file path and from the href https code visualstudio com docs editor tasks processing task output with problem matchers rel nofollow noreferrer documentation the code msCompile code problem matcher works only with absolute path The effect is that when there is an error clicking on it inside the Problems panel produce the error codeUnable to open XYZ cs File not found code ppHow can correctly configure codedotnet build code or problemMatcher to work pAn easy solution is to let codedotnet build code produce absolute file path by using code property GenerateFullPaths true code argument This is working task definition ppre code version tasks label build command dotnet type process group kind build isDefault true args build workspaceFolder property GenerateFullPaths true problemMatcher msCompile code pre 19692,518717,1257886,NULL,NULL,NULL,0,NULL,NULL 19693,85735,323059,NULL,NULL,NULL,0,NULL,NULL 19694,73721,690696,Yearling Nice Answer Caucus Popular Question Announcer Critic,NULL,NULL,0,NULL,NULL 19695,265275,1102875,Yearling Custodian Excavator Citizen Patrol Census Caucus Constituent Revival Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 19696,280042,371064,Yearling Self-Learner Nice Answer Good Question,NULL,NULL,0,NULL,NULL 19697,1514797,1083004,Autobiographer,NULL,NULL,0,NULL,NULL 19698,95247,1318347,NULL,NULL,NULL,0,NULL,NULL 19699,11347426,998984,Notable Question Popular Question Civic Duty Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 19700,138242,955457,Famous Question Great Answer Yearling Good Answer Caucus Yearling Good Answer Necromancer Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19701,110308,1457647,Yearling Popular Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 19702,459068,344018,NULL,NULL,NULL,0,NULL,NULL 19703,399698,11991,NULL,NULL,NULL,0,NULL,NULL 19704,295712,120398,Necromancer Revival Yearling Necromancer Revival Popular Question Notable Question Nice Answer Nice Answer Necromancer Yearling Announcer Nice Answer Necromancer Announcer Revival Nice Answer Announcer Good Answer Yearling Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 19705,184709,812009,NULL,NULL,NULL,0,NULL,NULL 19706,123321,1451067,Popular Question,NULL,NULL,0,NULL,NULL 19707,18872,906052,Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 19708,729755,701122,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19709,167106,604063,Necromancer Yearling Nice Question Necromancer Good Answer Nice Answer Notable Question Yearling Necromancer Necromancer Revival Nice Answer Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 19710,156031,191433,NULL,NULL,NULL,0,NULL,NULL 19711,905269,621096,Yearling Popular Question,NULL,NULL,0,NULL,NULL 19712,13962,296239,Yearling Notable Question Necromancer Popular Question Yearling Notable Question Necromancer Caucus Constituent Custodian Custodian Custodian Popular Question Yearling Revival Custodian Famous Question Custodian,NULL,NULL,0,NULL,NULL 19713,426722,473486,NULL,NULL,NULL,0,NULL,NULL 19714,1960526,575087,Popular Question Scholar,NULL,NULL,0,NULL,NULL 19715,153184,1240149,Enthusiast,NULL,NULL,0,NULL,NULL 19716,421944,1215052,NULL,NULL,NULL,0,NULL,NULL 19717,220597,1049799,NULL,NULL,NULL,0,NULL,NULL 19718,293996,1516586,NULL,NULL,NULL,0,NULL,NULL 19719,95534,552671,Popular Question Good Answer Nice Answer Popular Question Necromancer Nice Question Notable Question Good Question Notable Question Caucus Quorum Yearling Nice Answer Necromancer Unsung Hero Good Answer Famous Question Revival Guru Nice Answer Good Answer Great Question Popular Question Good Question Yearling Famous Question Caucus Nice Answer Popular Question Famous Question Favorite Question,NULL,pUse codecryptography code codepycrypto code is not in active development anymore and if possible you should be using cryptography Since June it possible to generate SSH public keys as well ppre codefrom cryptography hazmat primitives import serialization as crypto serializationfrom cryptography hazmat primitives asymmetric import rsafrom cryptography hazmat backends import default backend as crypto default backendkey rsa generate private key backend crypto default backend public exponent 65537 key size 2048 private key key private bytes crypto serialization Encoding PEM crypto serialization PrivateFormat PKCS8 crypto serialization NoEncryption public key key public key public bytes crypto serialization Encoding OpenSSH crypto serialization PublicFormat OpenSSH code prepNote You need at least version code1 code Thanks Adjusted accordingly,1,NULL,How to generate SSH key pairs with Python python ssh m2crypto ssh keys pI attempting to write script to generate SSH Identity key pairs for me ppre codefrom M2Crypto import RSAkey RSA gen key 1024 65337 key save key tmp my key cipher None code prepThe file code tmp my key code looks great now ppBy running codessh keygen tmp my key gt tmp my key pub code can extract the public key ppMy question is how can extract the public key from python Using codekey save pub key tmp my key pub code saves something like ppre code BEGIN PUBLIC KEY MFwwDQYJKoZIhvcNAQEBBQADASDASDASDASDBarYRsmMazM1hd7a u3QeMP FZQ7Ic BmmeWHvvVP4Yjyu1t6vAut7mKkaDeKbT3yiGVUgAEUaWMXqECAwEAAQ END PUBLIC KEY code prepWhen looking for something like ppre codessh rsa AAAABCASDDBM 3WEAv OSDFKJSL43 DFg code pre pUse codecryptography code codepycrypto code is not in active development anymore and if possible you should be using cryptography Since June it possible to generate SSH public keys as well ppre codefrom cryptography hazmat primitives import serialization as crypto serializationfrom cryptography hazmat primitives asymmetric import rsafrom cryptography hazmat backends import default backend as crypto default backendkey rsa generate private key backend crypto default backend public exponent 65537 key size 2048 private key key private bytes crypto serialization Encoding PEM crypto serialization PrivateFormat PKCS8 crypto serialization NoEncryption public key key public key public bytes crypto serialization Encoding OpenSSH crypto serialization PublicFormat OpenSSH code prepNote You need at least version code1 code 19720,655000,1509912,Enthusiast,NULL,NULL,0,NULL,NULL 19721,246411,845171,NULL,NULL,NULL,0,NULL,NULL 19722,349335,432409,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 19723,18907,971980,NULL,NULL,NULL,0,NULL,NULL 19724,604952,1211597,Necromancer Yearling,NULL,NULL,0,NULL,NULL 19725,970924,465343,NULL,NULL,NULL,0,NULL,NULL 19726,2196602,587923,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19727,1503936,10479,Popular Question Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 19728,162599,131951,NULL,NULL,NULL,0,NULL,NULL 19729,1257,49460,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19730,320870,694161,NULL,NULL,NULL,0,NULL,NULL 19731,257690,845544,NULL,NULL,NULL,0,NULL,NULL 19732,2733548,133936,Famous Question Notable Question Notable Question Nice Question Nice Question Popular Question Popular Question Good Question Popular Question Yearling Nice Question Famous Question Popular Question Popular Question Nice Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 19733,79585,158513,Announcer Yearling Civic Duty Yearling Yearling,NULL,NULL,0,NULL,NULL 19734,185000,522624,Notable Question Popular Question Yearling Nice Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 19735,15996,81046,Necromancer Yearling Announcer Necromancer Nice Answer Nice Answer Yearling Good Answer Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19736,172120,574336,NULL,NULL,NULL,0,NULL,NULL 19737,230085,1071481,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 19738,139622,815632,Good Answer Notable Question Nice Answer Enlightened Good Answer Yearling Necromancer Taxonomist Guru Nice Answer Enlightened Caucus Good Answer Nice Answer Census Popular Question Good Answer Guru Yearling Caucus Popular Question Constituent Revival Nice Answer Enlightened Nice Answer Reviewer Census Good Answer Nice Question Caucus Constituent Guru Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 19739,645725,596924,Curious Popular Question,NULL,NULL,0,NULL,NULL 19740,295777,319980,Notable Question Popular Question Yearling Inquisitive Popular Question Popular Question Good Answer Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Revival Notable Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19741,8963,458976,NULL,NULL,NULL,0,NULL,NULL 19742,345798,949462,Popular Question,NULL,NULL,0,NULL,NULL 19743,914907,507669,Famous Question Famous Question Popular Question Notable Question Nice Question Yearling Famous Question Promoter Nice Question Famous Question Popular Question Popular Question Nice Answer Popular Question Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 19744,441740,49974,Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 19745,514143,768560,NULL,NULL,NULL,0,NULL,NULL 19746,73097,1151395,NULL,NULL,NULL,0,NULL,NULL 19747,352386,237016,Yearling Necromancer Popular Question Popular Question Stellar Question Popular Question Yearling Popular Question Nice Question Revival Yearling Notable Question Yearling Popular Question Famous Question Nice Answer Notable Question Yearling Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19748,251247,177363,NULL,NULL,NULL,0,NULL,NULL 19749,165081,670164,Nice Answer Enlightened Tumbleweed,NULL,NULL,0,NULL,NULL 19750,70214,809675,Yearling,NULL,NULL,0,NULL,NULL 19751,751652,881427,NULL,NULL,NULL,0,NULL,NULL 19752,437195,89682,Yearling Good Answer Notable Question Popular Question Nice Question Yearling Self-Learner Popular Question Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 19753,284331,1026283,NULL,NULL,NULL,0,NULL,NULL 19754,296422,351423,Yearling Revival,NULL,NULL,0,NULL,NULL 19755,108372,519144,Famous Question,NULL,NULL,0,NULL,NULL 19756,228698,188219,Popular Question Yearling Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 19757,435033,874233,NULL,NULL,NULL,0,NULL,NULL 19758,630861,198187,Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Yearling Revival Nice Answer Enlightened Famous Question Custodian Yearling Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 19759,397548,870322,NULL,NULL,NULL,0,NULL,NULL 19760,1456734,870322,NULL,NULL,NULL,0,NULL,NULL 19761,7145,216735,Yearling Supporter Yearling,NULL,NULL,0,NULL,NULL 19762,504978,1228852,NULL,NULL,NULL,0,NULL,NULL 19763,255355,354707,NULL,NULL,NULL,0,NULL,NULL 19764,392086,1491561,NULL,NULL,NULL,0,NULL,NULL 19765,643520,689129,Yearling Good Question,NULL,NULL,0,NULL,NULL 19766,9149,589362,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 19767,485928,1293843,NULL,NULL,NULL,0,NULL,NULL 19768,1487753,66131,Yearling Nice Question Good Answer Popular Question Nice Answer Enlightened Popular Question Good Answer Good Answer Yearling Custodian Good Answer Good Answer Custodian Nice Answer Popular Question Nice Answer Yearling Notable Question Notable Question,NULL,pI going to order this guide by the level of skill you have in haskell going from an absolute beginner right up to an expert Note that this process will take many months years so it is rather long pp strongAbsolute Beginner strong ppFirstly haskell is capable of anything with enough skill It is very fast behind only and in my experience and can be used for anything from simulations to servers guis and web applications ppHowever there are some problems that are easier to write for beginner in haskell than others Mathematical problems and list process programs are good candidates for this as they only require the most basic of haskell knowledge to be able to write ppFirstly some good guides to learning the very basics of haskell are the href http www happylearnhaskelltutorial com rel noreferrer happy learn haskell tutorial and the first chapters of href http learnyouahaskell com chapters rel noreferrer learn you haskell While reading these it is very good idea to also be solving simple problems with what you know ppAnother two good resources are href http haskellbook com rel noreferrer Haskell Programming from first principles and href http www cs nott ac uk pszgmh pih html rel noreferrer Programming in Haskell They both come with exercises for each chapter so you have small simple problems matching what you learned on the last few pages ppA good list of problems to try is the href http haskell org haskellwiki 99 Ninety Nine Haskell Problems rel noreferrer haskell 99 problems page These start off very basic and get more difficult as you go on It is very good practice doing lot of those as they let you practice your skills in recursion and higher order functions would recommend skipping any problems that require randomness as that is bit more difficult in haskell Check href https stackoverflow com questions 5683911 simple haskell unit testing this SO question in case you want to test your solutions with QuickCheck see emIntermediate em below ppOnce you have done few of those you could move on to doing few of the href http projecteuler net index php section problems rel noreferrer Project Euler problems These are sorted by how many people have completed them which is fairly good indication of difficulty These test your logic and haskell more than the previous problems but you should still be able to do the first few big advantage haskell has with these problems is Integers aren limited in size To complete some of these problems it will be useful to have read chapters and of learn you haskell as well pp strongBeginner strong ppAfter that you should have fairly good handle on recursion and higher order functions so it would be good time to start doing some more real world problems very good place to start is href http book realworldhaskell org rel noreferrer Real World Haskell online book you can also purchase hard copy found the first few chapters introduced too much too quickly for someone who has never done functional programming used recursion before However with the practice you would have had from doing the previous problems you should find it perfectly understandable ppWorking through the problems in the book is great way of learning how to manage abstractions and building reusable components in haskell This is vital for people used to object orientated oo programming as the normal oo abstraction methods oo classes don appear in haskell haskell has type classes but they are very different to oo classes more like oo interfaces don think it is good idea to skip chapters as each introduces lot new ideas that are used in later chapters ppAfter while you will get to chapter 14 the dreaded monads chapter dum dum dummmm Almost everyone who learns haskell has trouble understanding monads due to how abstract the concept is can think of any concept in another language that is as abstract as monads are in functional programming Monads allows many ideas such as IO operations computations that might fail parsing to be unified under one idea So don feel discouraged if after reading the monads chapter you don really understand them found it useful to read many different explanations of monads each one gives new perspective on the problem Here is very good href https wiki haskell org Tutorials Using monads rel noreferrer list of monad tutorials highly recommend the href https wiki haskell org All About Monads rel noreferrer All About Monads but the others are also good ppAlso it takes while for the concepts to truly sink in This comes through use but also through time find that sometimes sleeping on problem helps more than anything else Eventually the idea will click and you will wonder why you struggled to understand concept that in reality is incredibly simple It is awesome when this happens and when it does you might find haskell to be your favorite imperative programming language ppTo make sure that you are understanding Haskell type system perfectly you should try to solve href http blog tmorris net posts 20 intermediate haskell exercises rel noreferrer 20 intermediate haskell exercises Those exercises using fun names of functions like furry and banana and helps you to have good understanding of some basic functional programming concepts if you don have them already Nice way to spend your evening with list of paper covered with arrows unicorns sausages and furry bananas pp strongIntermediate strong ppOnce you understand Monads think you have made the transition from beginner haskell programmer to an intermediate haskeller So where to go from here The first thing would recommend if you haven already learnt them from learning monads is the various types of monads such as Reader Writer and State Again Real world haskell and All about monads gives great coverage of this To complete your monad training learning about monad transformers is must These let you combine different types of Monads such as Reader and State monad into one This may seem useless to begin with but after using them for while you will wonder how you lived without them ppNow you can finish the real world haskell book if you want Skipping chapters now though doesn really matter as long as you have monads down pat Just choose what you are interested in ppWith the knowledge you would have now you should be able to use most of the packages on cabal well the documented ones at least as well as most of the libraries that come with haskell list of interesting libraries to try would be pulli href https wiki haskell org Parsec rel noreferrer Parsec for parsing programs and text Much better than using regexps Excellent documentation also has real world haskell chapter lili href http www cse chalmers se rjmh QuickCheck rel noreferrer Quickcheck very cool testing program What you do is write predicate that should always be true eg codelength reverse lst length lst code You then pass the predicate the quickCheck and it will generate lot of random values in this case lists and test that the predicate is true for all results See also the href http www cse chalmers se rjmh QuickCheck manual html rel noreferrer online manual lili href http hunit sourceforge net rel noreferrer HUnit Unit testing in haskell lili href http projects haskell org gtk2hs rel noreferrer gtk2hs The most popular gui framework for haskell lets you write gtk applications in haskell lili href http happstack com rel noreferrer happstack web development framework for haskell Doesn use databases instead data type store Pretty good docs other popular frameworks would be href http snapframework com rel noreferrer snap and href http www yesodweb com rel noreferrer yesod li ulpAlso there are many concepts like the Monad concept that you should eventually learn This will be easier than learning Monads the first time as your brain will be used to dealing with the level of abstraction involved very good overview for learning about these high level concepts and how they fit together is the href http www haskell org haskellwiki Typeclassopedia rel noreferrer Typeclassopedia pulli pApplicative An interface like Monads but less powerful Every Monad is Applicative but not vice versa This is useful as there are some types that are Applicative but are not Monads Also code written using the Applicative functions is often more composable than writing the equivalent code using the Monad functions See href http learnyouahaskell com functors applicative functors and monoids functors redux rel noreferrer Functors Applicative Functors and Monoids from the learn you haskell guide lili href http www haskell org ghc docs latest html libraries base Data Foldable html rel noreferrer Foldable href http www haskell org ghc docs latest html libraries base Data Traversable html rel noreferrer Traversable Typeclasses that abstract many of the operations of lists so that the same functions can be applied to other container types See also the href https wiki haskell org Foldable and Traversable rel noreferrer haskell wiki explaination lili href https wiki haskell org Monoid rel noreferrer Monoid Monoid is type that has zero or mempty value and an operation notated code lt gt code that joins two Monoids together such that codex lt gt mempty mempty lt gt code and codex lt gt lt gt lt gt lt gt code These are called identity and associativity laws Many types are Monoids such as numbers with codemempty code and code lt gt code This is useful in many situations lili href http www haskell org arrows rel noreferrer Arrows Arrows are way of representing computations that take an input and return an output function is the most basic type of arrow but there are many other types The library also has many very useful functions for manipulating arrows they are very useful even if only used with plain old haskell functions lili href https wiki haskell org Modern array libraries rel noreferrer Arrays the various mutable immutable arrays in haskell lili href https wiki haskell org Monad ST rel noreferrer ST Monad lets you write code with mutable state that runs very quickly while still remaining pure outside the monad See the link for more details lili pFRP Functional Reactive Programming new experimental way of writing code that handles events triggers inputs and outputs such as gui don know much about this though href http vimeo com 96744621 rel noreferrer Paul Hudak talk about yampa is good start li ulpThere are lot of new language features you should have look at ll just list them you can find lots of info about them from google the href http en wikibooks org wiki Haskell rel noreferrer haskell wikibook the haskellwiki org site and href https wiki haskell org GHC rel noreferrer ghc documentation pulliMultiparameter type classes functional dependencies liliType families liliExistentially quantified types liliPhantom types liliGADTS liliothers li ulpA lot of haskell is based around href http en wikipedia org wiki Category theory rel noreferrer category theory so you may want to look into that good starting point is href https rads stackoverflow com amzn click 0262660717 rel noreferrer Category Theory for Computer Scientist If you don want to buy the book the author related href http repository cmu edu cgi viewcontent cgi article 2846 amp context compsci rel noreferrer article is also excellent ppFinally you will want to learn more about the various haskell tools These include pulli href https wiki haskell org GHC rel noreferrer ghc and all its features lili href http www haskell org cabal rel noreferrer cabal the haskell package system lili href http darcs net rel noreferrer darcs distributed version control system written in haskell very popular for haskell programs lili href http www haskell org haddock rel noreferrer haddock haskell automatic documentation generator li ulpWhile learning all these new libraries and concepts it is very useful to be writing moderate sized project in haskell It can be anything eg small game data analyser website href http en wikibooks org wiki Write Yourself Scheme in 48 Hours rel noreferrer compiler Working on this will allow you to apply many of the things you are now learning You stay at this level for ages this is where at pp strongExpert strong ppIt will take you years to get to this stage hello from 2009 but from here guessing you start writing phd papers new ghc extensions and coming up with new abstractions pp strongGetting Help strong ppFinally while at any stage of learning there are multiple places for getting information These are pullithe haskell irc channel lilithe href https wiki haskell org Mailing lists rel noreferrer mailing lists These are worth signing up for just to read the discussions that take place some are very interesting liliother places listed on the haskell org home page li ulp strongConclusion strong ppWell this turned out longer than expected Anyway think it is very good idea to become proficient in haskell It takes long time but that is mainly because you are learning completely new way of thinking by doing so It is not like learning ruby after learning java but like learning java after learning Also am finding that my object orientated programming skills have improved as result of learning haskell as am seeing many new ways of abstracting ideas Yes this question is significantly out of date it was written in 2009 and not chanced much since RWH very out of date as it was written before pipes lens stack were thing LYAH does have its flaws but at the time felt it was the best simple introduction to haskell freely available Unfortunately it seems the haskell learning resources have deteriorated since 2009 then as there is nothing like RHW freely available now The course recommended in the learnhaskell github link are okay but you don seem to do anything practical apart from parsing in the entire course,0,NULL,NULL 19769,529476,66131,Yearling Nice Question Good Answer Popular Question Nice Answer Enlightened Popular Question Good Answer Good Answer Yearling Custodian Good Answer Good Answer Custodian Nice Answer Popular Question Nice Answer Yearling Notable Question Notable Question,NULL,pI going to order this guide by the level of skill you have in haskell going from an absolute beginner right up to an expert Note that this process will take many months years so it is rather long pp strongAbsolute Beginner strong ppFirstly haskell is capable of anything with enough skill It is very fast behind only and in my experience and can be used for anything from simulations to servers guis and web applications ppHowever there are some problems that are easier to write for beginner in haskell than others Mathematical problems and list process programs are good candidates for this as they only require the most basic of haskell knowledge to be able to write ppFirstly some good guides to learning the very basics of haskell are the href http www happylearnhaskelltutorial com rel noreferrer happy learn haskell tutorial and the first chapters of href http learnyouahaskell com chapters rel noreferrer learn you haskell While reading these it is very good idea to also be solving simple problems with what you know ppAnother two good resources are href http haskellbook com rel noreferrer Haskell Programming from first principles and href http www cs nott ac uk pszgmh pih html rel noreferrer Programming in Haskell They both come with exercises for each chapter so you have small simple problems matching what you learned on the last few pages ppA good list of problems to try is the href http haskell org haskellwiki 99 Ninety Nine Haskell Problems rel noreferrer haskell 99 problems page These start off very basic and get more difficult as you go on It is very good practice doing lot of those as they let you practice your skills in recursion and higher order functions would recommend skipping any problems that require randomness as that is bit more difficult in haskell Check href https stackoverflow com questions 5683911 simple haskell unit testing this SO question in case you want to test your solutions with QuickCheck see emIntermediate em below ppOnce you have done few of those you could move on to doing few of the href http projecteuler net index php section problems rel noreferrer Project Euler problems These are sorted by how many people have completed them which is fairly good indication of difficulty These test your logic and haskell more than the previous problems but you should still be able to do the first few big advantage haskell has with these problems is Integers aren limited in size To complete some of these problems it will be useful to have read chapters and of learn you haskell as well pp strongBeginner strong ppAfter that you should have fairly good handle on recursion and higher order functions so it would be good time to start doing some more real world problems very good place to start is href http book realworldhaskell org rel noreferrer Real World Haskell online book you can also purchase hard copy found the first few chapters introduced too much too quickly for someone who has never done functional programming used recursion before However with the practice you would have had from doing the previous problems you should find it perfectly understandable ppWorking through the problems in the book is great way of learning how to manage abstractions and building reusable components in haskell This is vital for people used to object orientated oo programming as the normal oo abstraction methods oo classes don appear in haskell haskell has type classes but they are very different to oo classes more like oo interfaces don think it is good idea to skip chapters as each introduces lot new ideas that are used in later chapters ppAfter while you will get to chapter 14 the dreaded monads chapter dum dum dummmm Almost everyone who learns haskell has trouble understanding monads due to how abstract the concept is can think of any concept in another language that is as abstract as monads are in functional programming Monads allows many ideas such as IO operations computations that might fail parsing to be unified under one idea So don feel discouraged if after reading the monads chapter you don really understand them found it useful to read many different explanations of monads each one gives new perspective on the problem Here is very good href https wiki haskell org Tutorials Using monads rel noreferrer list of monad tutorials highly recommend the href https wiki haskell org All About Monads rel noreferrer All About Monads but the others are also good ppAlso it takes while for the concepts to truly sink in This comes through use but also through time find that sometimes sleeping on problem helps more than anything else Eventually the idea will click and you will wonder why you struggled to understand concept that in reality is incredibly simple It is awesome when this happens and when it does you might find haskell to be your favorite imperative programming language ppTo make sure that you are understanding Haskell type system perfectly you should try to solve href http blog tmorris net posts 20 intermediate haskell exercises rel noreferrer 20 intermediate haskell exercises Those exercises using fun names of functions like furry and banana and helps you to have good understanding of some basic functional programming concepts if you don have them already Nice way to spend your evening with list of paper covered with arrows unicorns sausages and furry bananas pp strongIntermediate strong ppOnce you understand Monads think you have made the transition from beginner haskell programmer to an intermediate haskeller So where to go from here The first thing would recommend if you haven already learnt them from learning monads is the various types of monads such as Reader Writer and State Again Real world haskell and All about monads gives great coverage of this To complete your monad training learning about monad transformers is must These let you combine different types of Monads such as Reader and State monad into one This may seem useless to begin with but after using them for while you will wonder how you lived without them ppNow you can finish the real world haskell book if you want Skipping chapters now though doesn really matter as long as you have monads down pat Just choose what you are interested in ppWith the knowledge you would have now you should be able to use most of the packages on cabal well the documented ones at least as well as most of the libraries that come with haskell list of interesting libraries to try would be pulli href https wiki haskell org Parsec rel noreferrer Parsec for parsing programs and text Much better than using regexps Excellent documentation also has real world haskell chapter lili href http www cse chalmers se rjmh QuickCheck rel noreferrer Quickcheck very cool testing program What you do is write predicate that should always be true eg codelength reverse lst length lst code You then pass the predicate the quickCheck and it will generate lot of random values in this case lists and test that the predicate is true for all results See also the href http www cse chalmers se rjmh QuickCheck manual html rel noreferrer online manual lili href http hunit sourceforge net rel noreferrer HUnit Unit testing in haskell lili href http projects haskell org gtk2hs rel noreferrer gtk2hs The most popular gui framework for haskell lets you write gtk applications in haskell lili href http happstack com rel noreferrer happstack web development framework for haskell Doesn use databases instead data type store Pretty good docs other popular frameworks would be href http snapframework com rel noreferrer snap and href http www yesodweb com rel noreferrer yesod li ulpAlso there are many concepts like the Monad concept that you should eventually learn This will be easier than learning Monads the first time as your brain will be used to dealing with the level of abstraction involved very good overview for learning about these high level concepts and how they fit together is the href http www haskell org haskellwiki Typeclassopedia rel noreferrer Typeclassopedia pulli pApplicative An interface like Monads but less powerful Every Monad is Applicative but not vice versa This is useful as there are some types that are Applicative but are not Monads Also code written using the Applicative functions is often more composable than writing the equivalent code using the Monad functions See href http learnyouahaskell com functors applicative functors and monoids functors redux rel noreferrer Functors Applicative Functors and Monoids from the learn you haskell guide lili href http www haskell org ghc docs latest html libraries base Data Foldable html rel noreferrer Foldable href http www haskell org ghc docs latest html libraries base Data Traversable html rel noreferrer Traversable Typeclasses that abstract many of the operations of lists so that the same functions can be applied to other container types See also the href https wiki haskell org Foldable and Traversable rel noreferrer haskell wiki explaination lili href https wiki haskell org Monoid rel noreferrer Monoid Monoid is type that has zero or mempty value and an operation notated code lt gt code that joins two Monoids together such that codex lt gt mempty mempty lt gt code and codex lt gt lt gt lt gt lt gt code These are called identity and associativity laws Many types are Monoids such as numbers with codemempty code and code lt gt code This is useful in many situations lili href http www haskell org arrows rel noreferrer Arrows Arrows are way of representing computations that take an input and return an output function is the most basic type of arrow but there are many other types The library also has many very useful functions for manipulating arrows they are very useful even if only used with plain old haskell functions lili href https wiki haskell org Modern array libraries rel noreferrer Arrays the various mutable immutable arrays in haskell lili href https wiki haskell org Monad ST rel noreferrer ST Monad lets you write code with mutable state that runs very quickly while still remaining pure outside the monad See the link for more details lili pFRP Functional Reactive Programming new experimental way of writing code that handles events triggers inputs and outputs such as gui don know much about this though href http vimeo com 96744621 rel noreferrer Paul Hudak talk about yampa is good start li ulpThere are lot of new language features you should have look at ll just list them you can find lots of info about them from google the href http en wikibooks org wiki Haskell rel noreferrer haskell wikibook the haskellwiki org site and href https wiki haskell org GHC rel noreferrer ghc documentation pulliMultiparameter type classes functional dependencies liliType families liliExistentially quantified types liliPhantom types liliGADTS liliothers li ulpA lot of haskell is based around href http en wikipedia org wiki Category theory rel noreferrer category theory so you may want to look into that good starting point is href https rads stackoverflow com amzn click 0262660717 rel noreferrer Category Theory for Computer Scientist If you don want to buy the book the author related href http repository cmu edu cgi viewcontent cgi article 2846 amp context compsci rel noreferrer article is also excellent ppFinally you will want to learn more about the various haskell tools These include pulli href https wiki haskell org GHC rel noreferrer ghc and all its features lili href http www haskell org cabal rel noreferrer cabal the haskell package system lili href http darcs net rel noreferrer darcs distributed version control system written in haskell very popular for haskell programs lili href http www haskell org haddock rel noreferrer haddock haskell automatic documentation generator li ulpWhile learning all these new libraries and concepts it is very useful to be writing moderate sized project in haskell It can be anything eg small game data analyser website href http en wikibooks org wiki Write Yourself Scheme in 48 Hours rel noreferrer compiler Working on this will allow you to apply many of the things you are now learning You stay at this level for ages this is where at pp strongExpert strong ppIt will take you years to get to this stage hello from 2009 but from here guessing you start writing phd papers new ghc extensions and coming up with new abstractions pp strongGetting Help strong ppFinally while at any stage of learning there are multiple places for getting information These are pullithe haskell irc channel lilithe href https wiki haskell org Mailing lists rel noreferrer mailing lists These are worth signing up for just to read the discussions that take place some are very interesting liliother places listed on the haskell org home page li ulp strongConclusion strong ppWell this turned out longer than expected Anyway think it is very good idea to become proficient in haskell It takes long time but that is mainly because you are learning completely new way of thinking by doing so It is not like learning ruby after learning java but like learning java after learning Also am finding that my object orientated programming skills have improved as result of learning haskell as am seeing many new ways of abstracting ideas Yes this question is significantly out of date it was written in 2009 and not chanced much since RWH very out of date as it was written before pipes lens stack were thing LYAH does have its flaws but at the time felt it was the best simple introduction to haskell freely available Unfortunately it seems the haskell learning resources have deteriorated since 2009 then as there is nothing like RHW freely available now The course recommended in the learnhaskell github link are okay but you don seem to do anything practical apart from parsing in the entire course,0,NULL,NULL 19770,69672,1559895,NULL,NULL,NULL,0,NULL,NULL 19771,258750,230134,Yearling Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 19772,1076840,508588,NULL,NULL,NULL,0,NULL,NULL 19773,188318,33740,Yearling,NULL,NULL,0,NULL,NULL 19774,242244,696037,Teacher Supporter Student Tumbleweed Commentator Revival,NULL,NULL,0,NULL,NULL 19775,477282,832080,NULL,NULL,NULL,0,NULL,NULL 19776,1521186,1342524,NULL,NULL,NULL,0,NULL,NULL 19777,1521190,1342524,NULL,NULL,NULL,0,NULL,NULL 19778,175237,1240764,Student,NULL,NULL,0,NULL,NULL 19779,297891,637191,NULL,NULL,NULL,0,NULL,NULL 19780,90475,214206,Yearling,NULL,NULL,0,NULL,NULL 19781,9208739,1262335,NULL,NULL,NULL,0,NULL,NULL 19782,62957,4040,Nice Answer Enlightened Nice Answer Yearling Guru Nice Answer Nice Answer Caucus Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 19783,50205,424374,NULL,NULL,NULL,0,NULL,NULL 19784,201173,1007711,Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 19785,2655097,1007711,Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 19786,1654552,158127,Nice Question Popular Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 19787,10767,959142,NULL,NULL,NULL,0,NULL,NULL 19788,83195,489430,NULL,NULL,NULL,0,NULL,NULL 19789,3413746,1341903,Editor,NULL,NULL,0,NULL,NULL 19790,200166,1341903,Editor,NULL,NULL,0,NULL,NULL 19791,1218758,945308,NULL,NULL,NULL,0,NULL,NULL 19792,52540,1362266,NULL,NULL,NULL,0,NULL,NULL 19793,40468,852109,Teacher Editor,NULL,NULL,0,NULL,NULL 19794,43883,231869,NULL,NULL,NULL,0,NULL,NULL 19795,327634,590593,Popular Question,NULL,NULL,0,NULL,NULL 19796,285477,222276,NULL,NULL,NULL,0,NULL,NULL 19797,210199,1045326,Informed Editor,NULL,NULL,0,NULL,NULL 19798,1196586,306537,Student Supporter,NULL,NULL,0,NULL,NULL 19799,452287,306537,Student Supporter,NULL,NULL,0,NULL,NULL 19800,1887,996056,Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question Notable Question Nice Question Yearling Popular Question Citizen Patrol Yearling Tag Editor Mortarboard Custodian Autobiographer Yearling Custodian Notable Question Popular Question Tenacious Great Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question Nice Question Nice Question Altruist Notable Question Popular Question Notable Question Famous Question Famous Question Nice Answer Yearling Popular Question Famous Question Good Question,NULL,Exporting class with Webpack and Babel not working javascript ecmascript webpack babeljs pI have very simple setup with Webpack and Babel for small library ppBefore had the following architecture to generate ES5 version of the library ppre codemodule exports lib function private part of library here return public part of library here code prepEverything is working fine this way and even had some ES6 features such as arrow functions inside my library and everything worked However decided to change my approach to ES6 class this way ppre codeexport default class Library code prepAnd now when try to do ppre codevar library new Library code prepI get that Library was not defined Even just evaluating codeLibrary code returns undefined ppSo what did was turn the file that uses the library into an ES6 file that does codeimport Library from libraryfile js code and it worked again ppHowever really like my output library to still be usable from regular ES5 with code lt script gt code tag just like before Is this possible ppHere my webpack config file ppre codemodule exports entry pentagine lib pentagine js demos demos helicopter game PlayState js output path dirname filename build name js libraryTarget umd module loaders test js loader babel loader exclude node modules query presets es2015 code pre Yes it is valid ES5 but want meant is that want it to be usable by regular ES5 code with normal script tag ll edit the question Exporting class with Webpack and Babel not working javascript ecmascript webpack babeljs pI have very simple setup with Webpack and Babel for small library ppBefore had the following architecture to generate ES5 version of the library ppre codemodule exports lib function private part of library here return public part of library here code prepEverything is working fine this way and even had some ES6 features such as arrow functions inside my library and everything worked However decided to change my approach to ES6 class this way ppre codeexport default class Library code prepAnd now when try to do ppre codevar library new Library code prepI get that Library was not defined Even just evaluating codeLibrary code returns undefined ppSo what did was turn the file that uses the library into an ES6 file that does codeimport Library from libraryfile js code and it worked again ppHowever really like my output library to still be usable from regular ES5 with code lt script gt code tag just like before Is this possible ppHere my webpack config file ppre codemodule exports entry pentagine lib pentagine js demos demos helicopter game PlayState js output path dirname filename build name js libraryTarget umd module loaders test js loader babel loader exclude node modules query presets es2015 code pre It helped as learnt quite lot but it doesn seem to be the same issue as using the add module exports plugin didn fix the problem,1,Exporting class with Webpack and Babel not working javascript ecmascript webpack babeljs pI have very simple setup with Webpack and Babel for small library ppBefore had the following architecture to generate ES5 version of the library ppre codemodule exports lib function private part of library here return public part of library here code prepEverything is working fine this way and even had some ES6 features such as arrow functions inside my library and everything worked However decided to change my approach to ES6 class this way ppre codeexport default class Library code prepAnd now when try to do ppre codevar library new Library code prepI get that Library was not defined Even just evaluating codeLibrary code returns undefined ppSo what did was turn the file that uses the library into an ES6 file that does codeimport Library from libraryfile js code and it worked again ppHowever really like my output library to still be usable from regular ES5 with code lt script gt code tag just like before Is this possible ppHere my webpack config file ppre codemodule exports entry pentagine lib pentagine js demos demos helicopter game PlayState js output path dirname filename build name js libraryTarget umd module loaders test js loader babel loader exclude node modules query presets es2015 code pre,NULL 19801,497514,23885,NULL,NULL,NULL,0,NULL,NULL 19802,23078,343644,NULL,NULL,NULL,0,NULL,NULL 19803,1510397,1162009,NULL,NULL,NULL,0,NULL,NULL 19804,1006458,696937,NULL,NULL,NULL,0,NULL,NULL 19805,49966,696937,NULL,NULL,NULL,0,NULL,NULL 19806,712555,1475819,NULL,NULL,NULL,0,NULL,NULL 19807,120089,973802,Yearling Good Answer,NULL,NULL,0,NULL,NULL 19808,194161,181061,Necromancer,NULL,NULL,0,NULL,NULL 19809,3760642,1148176,NULL,NULL,NULL,0,NULL,NULL 19810,425945,1148176,NULL,NULL,NULL,0,NULL,NULL 19811,527846,874671,Nice Question Explainer Necromancer Revival Yearling Popular Question Notable Question Necromancer Nice Answer Necromancer Popular Question Popular Question Notable Question Yearling Good Answer Necromancer Popular Question Census Necromancer Necromancer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 19812,810586,1086307,NULL,NULL,NULL,0,NULL,NULL 19813,460262,589938,NULL,NULL,NULL,0,NULL,NULL 19814,1359482,768204,NULL,NULL,NULL,0,NULL,NULL 19815,44643,204752,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 19816,165690,173848,NULL,NULL,NULL,0,NULL,NULL 19817,471479,538745,Supporter,NULL,NULL,0,NULL,NULL 19818,36768,240358,Nice Answer Nice Answer Popular Question Famous Question Nice Question Necromancer Nice Answer Popular Question Yearling Good Answer Nice Answer Nice Question Yearling Notable Question Popular Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 19819,154693,654026,Announcer Nice Answer Civic Duty Curious Announcer,NULL,NULL,0,NULL,NULL 19820,903675,1516373,Autobiographer Critic Caucus Tumbleweed Yearling Enthusiast Informed Revival Yearling Announcer Custodian Caucus Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 19821,858328,1145528,NULL,NULL,NULL,0,NULL,NULL 19822,72021,665239,NULL,NULL,NULL,0,NULL,NULL 19823,784054,696913,Citizen Patrol Yearling Excavator Custodian Custodian Good Answer Yearling Explainer Yearling Revival Nice Answer Enlightened Popular Question Revival Nice Answer Necromancer Yearling Popular Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 19824,245395,696913,Citizen Patrol Yearling Excavator Custodian Custodian Good Answer Yearling Explainer Yearling Revival Nice Answer Enlightened Popular Question Revival Nice Answer Necromancer Yearling Popular Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 19825,88806,27672,Good Answer Custodian Yearling Popular Question Guru Custodian Yearling,NULL,NULL,0,NULL,NULL 19826,61381,173308,Inquisitive Yearling Famous Question Notable Question Good Question Popular Question Yearling Necromancer Popular Question Popular Question Excavator Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19827,439644,610408,Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 19828,160753,999581,NULL,NULL,NULL,0,NULL,NULL 19829,199116,1193896,NULL,NULL,NULL,0,NULL,NULL 19830,830486,1225191,NULL,NULL,NULL,0,NULL,NULL 19831,105316,335827,NULL,NULL,NULL,0,NULL,NULL 19832,284296,707739,Yearling Editor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19833,343312,1553860,Revival,NULL,NULL,0,NULL,NULL 19834,844217,1007676,Popular Question Yearling Caucus Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 19835,199680,106566,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 19836,3786693,106566,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 19837,252994,1127694,NULL,NULL,NULL,0,NULL,NULL 19838,514573,358068,NULL,NULL,NULL,0,NULL,NULL 19839,292830,459634,NULL,NULL,NULL,0,NULL,NULL 19840,35515,462849,Yearling Enthusiast Investor Altruist,NULL,NULL,0,NULL,NULL 19841,2535360,1231000,NULL,NULL,NULL,0,NULL,NULL 19842,521064,781707,Nice Answer Enlightened Guru Reviewer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Good Answer reactjs Yearling Nice Answer Enlightened Good Answer javascript Nice Answer angularjs-scope Good Answer Quorum Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Enlightened Caucus Constituent Guru Guru Nice Answer Guru Nice Answer Enlightened Good Answer Good Answer Census Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Announcer Nice Answer Enlightened Popular Question reactjs Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Enlightened Documentation User Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Enlightened Guru Good Answer Guru Caucus Guru Constituent Guru Nice Answer Notable Question Good Answer Guru Yearling Nice Answer Enlightened redux Good Answer Guru Notable Question Nice Answer,NULL,How to stub exported function in ES6 javascript ecmascript pI have file foo js ppre codeexport function bar console log code prepAnd another file that uses foo js cap js ppre codeimport bar from foo export default gt Some logic that need to test bar code prepI have test js ppre codeimport cap from cap describe cap gt it should bar gt cap some code prepSomehow need override implementation of codebar code in test Is there any way to do this ppP use babel webpack and mocha What version of babel are you using How to stub exported function in ES6 javascript ecmascript pI have file foo js ppre codeexport function bar console log code prepAnd another file that uses foo js cap js ppre codeimport bar from foo export default gt Some logic that need to test bar code prepI have test js ppre codeimport cap from cap describe cap gt it should bar gt cap some code prepSomehow need override implementation of codebar code in test Is there any way to do this ppP use babel webpack and mocha If you use babel you can use this plugin https github com speedskater babel plugin rewire But it doesn support babel yet,0,NULL,NULL 19843,390975,113173,Necromancer Nice Question Yearling Nice Answer Good Answer Nice Question Good Question Nice Question Famous Question Yearling Famous Question Popular Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19844,169830,951493,Popular Question,NULL,NULL,0,NULL,NULL 19845,599367,461347,Nice Answer Enlightened Nice Question Good Answer Yearling Great Answer Nice Answer Nice Answer Enlightened Yearling Famous Question shell Enlightened Guru Custodian Nice Answer Nice Answer Enlightened Revival Yearling Great Answer,NULL,NULL,0,NULL,NULL 19846,161030,141140,Informed Yearling,NULL,NULL,0,NULL,NULL 19847,163812,843567,Self-Learner Notable Question Notable Question Yearling Popular Question Nice Question Nice Answer Yearling Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 19848,633964,543048,Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 19849,710518,525815,NULL,NULL,NULL,0,NULL,NULL 19850,895308,860805,NULL,NULL,NULL,0,NULL,NULL 19851,109972,1284291,Critic Scholar Commentator Caucus Student,NULL,NULL,0,NULL,NULL 19852,533152,343050,NULL,NULL,NULL,0,NULL,NULL 19853,524400,215706,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19854,363637,59631,Yearling Nice Answer Good Answer Enlightened Necromancer Necromancer Yearling Census Yearling Guru,NULL,NULL,0,NULL,NULL 19855,45984,1042416,NULL,NULL,NULL,0,NULL,NULL 19856,75329,620467,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 19857,1146196,1168715,NULL,NULL,NULL,0,NULL,NULL 19858,151491,93662,Supporter Notable Question,NULL,NULL,0,NULL,NULL 19859,65636,156372,Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Answer Enlightened Custodian Custodian Census,NULL,NULL,0,NULL,NULL 19860,290410,1173181,NULL,NULL,NULL,0,NULL,NULL 19861,354777,169626,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19862,1195195,1332321,Yearling Documentation User,NULL,NULL,0,NULL,NULL 19863,154807,229091,Revival Necromancer Nice Answer Nice Answer Caucus Yearling Nice Answer ruby-on-rails Great Question Yearling Good Question,NULL,NULL,0,NULL,NULL 19864,84507,635180,Teacher Necromancer Nice Answer Enlightened Editor,NULL,NULL,0,NULL,NULL 19865,30714,11098,Good Answer Nice Answer Nice Answer Great Answer Good Answer Yearling Informed Favorite Question Good Answer Yearling Nice Answer Great Answer Custodian Famous Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 19866,1185960,691704,NULL,NULL,NULL,0,NULL,NULL 19867,380850,1169304,NULL,NULL,NULL,0,NULL,NULL 19868,203124,274854,Necromancer Commentator Necromancer Yearling,NULL,NULL,0,NULL,NULL 19869,369849,353106,Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19870,447394,484301,Popular Question,NULL,NULL,0,NULL,NULL 19871,144055,778056,Yearling Yearling Custodian Yearling Investor Revival,NULL,NULL,0,NULL,NULL 19872,382710,225630,Teacher Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Famous Question Caucus Famous Question Notable Question Revival Good Question Yearling Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 19873,18094,1138624,NULL,NULL,NULL,0,NULL,NULL 19874,90502,1384924,NULL,NULL,NULL,0,NULL,NULL 19875,145409,956856,Yearling Popular Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 19876,87338,322585,NULL,NULL,NULL,0,NULL,NULL 19877,1387588,637596,Popular Question Yearling Popular Question Notable Question Nice Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 19878,131960,637596,Popular Question Yearling Popular Question Notable Question Nice Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 19879,179371,1197158,NULL,NULL,NULL,0,NULL,NULL 19880,659828,868808,NULL,NULL,NULL,0,NULL,NULL 19881,125196,166877,Good Answer Yearling Yearling Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 19882,489812,614654,Self-Learner Popular Question Caucus Good Question Famous Question Yearling Curious,NULL,NULL,0,NULL,NULL 19883,74032,660247,Yearling Yearling Commentator Curious Critic Yearling Necromancer Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 19884,424570,1219034,Census,NULL,NULL,0,NULL,NULL 19885,343973,639190,NULL,NULL,NULL,0,NULL,NULL 19886,600839,887860,NULL,NULL,NULL,0,NULL,NULL 19887,262696,314278,Nice Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 19888,1971604,1167336,Necromancer Caucus Constituent Yearling Nice Question Popular Question Caucus Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 19889,411118,636736,NULL,NULL,NULL,0,NULL,NULL 19890,77260,69503,NULL,NULL,NULL,0,NULL,NULL 19891,141379,618968,NULL,NULL,NULL,0,NULL,NULL 19892,114412,412486,Famous Question Notable Question Nice Question Nice Question Notable Question Guru Popular Question Famous Question Necromancer Yearling Famous Question Popular Question Necromancer Necromancer Popular Question Good Answer Announcer Notable Question Necromancer Nice Answer Yearling Nice Answer Necromancer Nice Answer Notable Question Enthusiast Revival Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,1,NULL,How can set change DNS using the command prompt at windows windows dns command prompt pHow can set my DNS settings using the command prompt or bat file at windows ppI tried this ppre codenetsh interface ip set dns name Local Area Connection source static addr none code prepbut not worked pHere is another way to change DNS by using WMIC Windows Management Instrumentation Command line ppThe commands must be run as administrator to apply ppClear DNS servers ppre codewmic nicconfig where IPEnabled TRUE call SetDNSServerSearchOrder code prepSet DNS server ppre codewmic nicconfig where IPEnabled TRUE call SetDNSServerSearchOrder code prepSet DNS servers ppre codewmic nicconfig where IPEnabled TRUE call SetDNSServerSearchOrder code prepSet DNS servers on particular network adapter ppre codewmic nicconfig where IPEnabled TRUE and Description Local Area Connection call SetDNSServerSearchOrder code prepAnother example for setting the domain search list ppre codewmic nicconfig call SetDNSSuffixSearchOrder domain tld code pre 19893,141790,605884,NULL,NULL,NULL,0,NULL,NULL 19894,59959,766869,Nice Answer,NULL,NULL,0,NULL,NULL 19895,679341,171121,Notable Question Popular Question Nice Question Nice Answer Popular Question Necromancer f# Nice Question Yearling Nice Answer Popular Question Nice Question Nice Question Nice Answer Famous Question Notable Question Yearling Custodian Famous Question Popular Question Custodian Nice Question Custodian Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 19896,75615,46395,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Caucus Constituent Yearling Guru Popular Question Nice Answer Enlightened Nice Question Caucus Nice Answer Constituent Nice Answer Nice Answer Enlightened Yearling Census Caucus Popular Question Nice Question Announcer Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 19897,335279,1284778,NULL,NULL,NULL,0,NULL,NULL 19898,278253,955159,Revival Curious Nice Answer Nice Question Revival Yearling Quorum Necromancer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 19899,496709,551858,Notable Question Notable Question Revival Popular Question Favorite Question Notable Question Great Question Yearling Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 19900,95398,1141345,NULL,NULL,NULL,0,NULL,NULL 19901,25430,1388982,NULL,NULL,NULL,0,NULL,NULL 19902,151772,1279505,NULL,NULL,NULL,0,NULL,NULL 19903,231208,681045,Notable Question Popular Question Custodian Nice Question Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Good Question Famous Question Popular Question Civic Duty Informed Popular Question Notable Question Famous Question Notable Question Nice Answer Popular Question Yearling Popular Question Popular Question Caucus Constituent Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,pFor reference and since people have asked me this through mail Here code chunk that needs to be added to timepicker js ppre code Don hide the date picker when clicking date datepicker selectDateOverload datepicker selectDate datepicker selectDate function id dateStr var target id var inst this getInst target inst inline true datepicker selectDateOverload id dateStr inst inline false this updateDatepicker inst code prepGood luck in getting it working on your site Late 2018 still works great Bra jobbat Emil,0,NULL,NULL 19904,150243,499510,NULL,NULL,NULL,0,NULL,NULL 19905,292279,457278,Custodian Popular Question Yearling Civic Duty Favorite Question Good Answer Yearling Enlightened Great Question Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 19906,92173,690590,NULL,NULL,NULL,0,NULL,NULL 19907,92466,602874,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 19908,1144147,1467472,Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 19909,49053,477307,Nice Answer,NULL,NULL,0,NULL,NULL 19910,660874,311718,NULL,NULL,NULL,0,NULL,NULL 19911,1520,109707,Citizen Patrol Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 19912,193530,449610,Popular Question Announcer,NULL,NULL,0,NULL,NULL 19913,11016,782004,Yearling Good Answer,NULL,NULL,0,NULL,NULL 19914,504599,1031404,Critic Informed Notable Question,NULL,NULL,0,NULL,NULL 19915,74640,658477,NULL,NULL,NULL,0,NULL,NULL 19916,3266,823846,Nice Answer Enlightened Yearling Nice Answer Enlightened emacs Yearling Necromancer Nice Answer Enlightened Necromancer Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 19917,73822,912045,NULL,NULL,NULL,0,NULL,NULL 19918,642390,148459,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19919,440010,1190378,NULL,NULL,NULL,0,NULL,NULL 19920,63680,869545,Popular Question,NULL,NULL,0,NULL,NULL 19921,66499,428581,NULL,NULL,NULL,0,NULL,NULL 19922,583066,868247,Good Answer Yearling Popular Question Popular Question Necromancer Custodian Custodian Custodian Custodian Yearling Caucus Census Popular Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 19923,92246,477413,NULL,NULL,NULL,0,NULL,NULL 19924,224841,940932,NULL,NULL,NULL,0,NULL,NULL 19925,906452,291609,Good Question Nice Question Yearling Notable Question Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 19926,3146828,805086,Nice Answer,NULL,NULL,0,NULL,NULL 19927,676306,588719,NULL,NULL,NULL,0,NULL,NULL 19928,97525,2469,Favorite Question Nice Answer Notable Question Nice Answer Nice Question Nice Answer Popular Question Popular Question Great Question Good Answer Yearling Nice Question Famous Question Custodian Nice Question Nice Answer Caucus Constituent Nice Answer Notable Question Good Answer Reviewer Great Answer Good Question Famous Question Caucus Constituent Favorite Question Yearling Notable Question Documentation User Census Caucus Guru Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 19929,84977,586880,Yearling Guru Guru Yearling Nice Answer Enlightened Nice Answer python Good Answer clojure Yearling Pundit java Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 19930,168860,1356149,NULL,NULL,NULL,0,NULL,NULL 19931,228396,406269,NULL,NULL,NULL,0,NULL,NULL 19932,6663272,406269,NULL,NULL,NULL,0,NULL,NULL 19933,1431478,280434,NULL,NULL,NULL,0,NULL,NULL 19934,3061446,929774,NULL,NULL,NULL,0,NULL,NULL 19935,6779116,929774,NULL,NULL,NULL,0,NULL,NULL 19936,665165,983636,NULL,NULL,NULL,0,NULL,NULL 19937,122056,120433,NULL,NULL,NULL,0,NULL,NULL 19938,1158529,755228,Informed Teacher,NULL,NULL,0,NULL,NULL 19939,7183957,1256645,Famous Question,NULL,NULL,0,NULL,NULL 19940,247542,1137791,NULL,NULL,NULL,0,NULL,NULL 19941,63149,4480,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 19942,51006,803579,Revival,NULL,NULL,0,NULL,NULL 19943,51007,803579,Revival,NULL,NULL,0,NULL,NULL 19944,486211,191524,NULL,NULL,NULL,0,NULL,NULL 19945,312954,1219618,Yearling Nice Answer Popular Question Popular Question Popular Question Nice Question Good Answer Necromancer Nice Answer Notable Question Self-Learner Yearling Explainer Necromancer Popular Question Nice Answer Enthusiast Great Answer Good Answer Guru c# Caucus Notable Question Popular Question Custodian Yearling Great Answer Announcer Guru Notable Question Popular Question Famous Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 19946,9393198,1247565,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 19947,201782,1247565,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 19948,1177352,830349,NULL,NULL,NULL,0,NULL,NULL 19949,1073173,701415,NULL,NULL,NULL,0,NULL,NULL 19950,546159,156678,Good Answer Popular Question Notable Question Popular Question Good Answer Popular Question Yearling Favorite Question Famous Question Excavator Popular Question Nice Question Yearling Nice Answer Custodian Custodian Notable Question Census Nice Question Nice Question Notable Question Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 19951,741358,182669,NULL,NULL,NULL,0,NULL,NULL 19952,802203,1510052,NULL,NULL,NULL,0,NULL,NULL 19953,194110,271454,Good Question Yearling,NULL,NULL,0,NULL,NULL 19954,7819370,271454,Good Question Yearling,NULL,NULL,0,NULL,NULL 19955,1113513,755934,Notable Question Popular Question Popular Question Self-Learner Notable Question Notable Question Electorate Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Nice Question Nice Question Yearling Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 19956,444972,1019299,NULL,NULL,NULL,0,NULL,NULL 19957,311711,1230689,NULL,NULL,NULL,0,NULL,NULL 19958,63705,455478,NULL,NULL,NULL,0,NULL,NULL 19959,229963,190816,Good Question Famous Question Yearling Good Answer Necromancer Nice Answer Yearling Good Answer Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 19960,51442,744075,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 19961,245187,655843,NULL,NULL,NULL,0,NULL,NULL 19962,332556,489287,Scholar,NULL,NULL,0,NULL,NULL 19963,1349568,797734,NULL,NULL,NULL,0,NULL,NULL 19964,34158,1096716,NULL,NULL,NULL,0,NULL,NULL 19965,3834889,993987,NULL,NULL,NULL,0,NULL,NULL 19966,402968,993987,NULL,NULL,NULL,0,NULL,NULL 19967,78791,540559,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 19968,704123,922277,NULL,NULL,NULL,0,NULL,NULL 19969,60904,745,Good Answer Good Question Notable Question Nice Answer Notable Question Guru Nice Answer Notable Question Nice Answer Famous Question Good Answer Popular Question Good Question Nice Answer Nice Answer Good Answer Necromancer Nice Question Nice Answer Good Answer Necromancer Nice Question Notable Question Nice Question Notable Question Yearling Good Answer Nice Question Nice Answer Nice Answer Good Answer Great Answer Famous Question Great Answer Notable Question Guru Nice Question Nice Answer Good Answer Announcer Famous Question Notable Question Good Answer Famous Question Good Question Notable Question Famous Question Good Question Nice Question Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Necromancer Notable Question Nice Answer Good Answer Nice Answer Necromancer Yearling Nice Answer Necromancer Notable Question Great Answer Nice Question Nice Answer Nice Answer Enlightened macos Guru Guru Great Answer Famous Question Great Question Necromancer Great Answer Yearling Good Answer Guru Good Answer Popular Question Good Answer Nice Answer Popular Question Popular Question Great Answer Great Answer Good Answer Nice Question,NULL,NULL,0,NULL,NULL 19970,238447,691362,NULL,NULL,NULL,0,NULL,NULL 19971,164740,329919,Famous Question,NULL,NULL,0,NULL,NULL 19972,2878,573487,Notable Question Teacher,NULL,NULL,0,NULL,NULL 19973,259654,100565,swing Great Answer Nice Answer Nice Answer Nice Answer Yearling Popular Question Guru Nice Answer Great Answer Guru Good Answer Good Answer Yearling Nice Answer Notable Question Notable Question findbugs Good Answer Enlightened Promoter Benefactor Yearling Proofreader Good Answer,NULL,NULL,0,NULL,NULL 19974,355627,1325178,NULL,NULL,NULL,0,NULL,NULL 19975,235431,26728,Popular Question Yearling Popular Question Nice Question Nice Question Great Question Yearling Nice Question Promoter Census Inquisitive Popular Question Yearling,NULL,NULL,0,NULL,NULL 19976,362970,1231751,Yearling Yearling Popular Question Good Answer Caucus Custodian Yearling Guru,NULL,NULL,0,NULL,NULL 19977,2763609,1073990,Yearling,NULL,NULL,0,NULL,NULL 19978,377471,411886,NULL,NULL,NULL,0,NULL,NULL 19979,167144,414192,NULL,NULL,NULL,0,NULL,NULL 19980,684632,1058796,NULL,NULL,NULL,0,NULL,NULL 19981,86163,633490,Editor Scholar,NULL,NULL,0,NULL,NULL 19982,335330,363142,Popular Question Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 19983,24690,303924,NULL,NULL,NULL,0,NULL,NULL 19984,428212,1121701,NULL,NULL,NULL,0,NULL,NULL 19985,1001397,621938,NULL,NULL,NULL,0,NULL,NULL 19986,198728,724491,Yearling Guru Yearling Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 19987,1517597,1405073,NULL,NULL,NULL,0,NULL,NULL 19988,160505,1077786,Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 19989,36219,189266,NULL,NULL,NULL,0,NULL,NULL 19990,29387,424187,Yearling Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 19991,214079,817472,NULL,NULL,NULL,0,NULL,NULL 19992,2434484,958082,NULL,NULL,NULL,0,NULL,NULL 19993,1643016,1183005,NULL,NULL,NULL,0,NULL,NULL 19994,1453820,1260118,NULL,NULL,NULL,0,NULL,NULL 19995,388155,258615,Notable Question,NULL,NULL,0,NULL,NULL 19996,720965,483955,Scholar,NULL,NULL,0,NULL,NULL 19997,234188,269584,Curious,NULL,NULL,0,NULL,NULL 19998,39199,1247126,NULL,NULL,NULL,0,NULL,NULL 19999,585613,1144463,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 20000,495023,465887,Yearling Necromancer Popular Question Announcer Popular Question Famous Question Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 20001,42028,879047,Informed Yearling Citizen Patrol Custodian Custodian Autobiographer Yearling Custodian Popular Question Notable Question Census Caucus Yearling Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20002,274727,452964,Yearling,NULL,NULL,0,NULL,NULL 20003,280370,9644,Popular Question,NULL,NULL,0,NULL,NULL 20004,669031,711854,Notable Question Good Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20005,550371,858167,NULL,NULL,NULL,0,NULL,NULL 20006,2146,293417,Good Answer Yearling Good Answer Yearling Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 20007,104813,321365,Announcer,NULL,NULL,0,NULL,NULL 20008,440061,311196,Necromancer Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 20009,465316,608926,NULL,NULL,NULL,0,NULL,NULL 20010,13158,752703,NULL,NULL,NULL,0,NULL,NULL 20011,320690,394856,Good Question Yearling,NULL,NULL,0,NULL,NULL 20012,221433,718139,Yearling Self-Learner Popular Question Nice Question Excavator Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 20013,48076,448321,NULL,NULL,NULL,0,NULL,NULL 20014,77877,824508,Yearling Good Answer Revival Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 20015,71262,194630,Necromancer Necromancer Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20016,1512506,1087879,NULL,NULL,NULL,0,NULL,NULL 20017,914999,870606,Nice Answer,NULL,NULL,0,NULL,NULL 20018,408800,672380,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 20019,169029,615407,NULL,NULL,NULL,0,NULL,NULL 20020,84725,673759,Popular Question Yearling Yearling Good Answer Great Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 20021,111568,432193,Nice Question Nice Answer Informed Famous Question Good Answer Good Answer Yearling Pundit Necromancer Notable Question Custodian Good Question Custodian Good Answer Notable Question Notable Question Nice Answer Nice Answer Notable Question Notable Question Popular Question Yearling Good Answer Cleanup Nice Answer Nice Answer Famous Question Nice Answer Guru Necromancer Yearling Notable Question Notable Question,NULL,AngularJS with Django Conflicting template tags javascript django django templates angularjs pI want to use AngularJS with Django however they both use code code as their template tags Is there an easy way to change one of the two to use some other custom templating tag that different problem not relevant to this question Please search for it and if you don find an answer ask it as new question,0,NULL,NULL 20022,50434,996288,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20023,146298,1149724,Necromancer,NULL,NULL,0,NULL,NULL 20024,7587,427708,NULL,NULL,NULL,0,NULL,NULL 20025,391917,1233508,Yearling Nice Answer Enlightened Nice Answer Announcer Caucus Constituent Census Good Answer Yearling Caucus Constituent Nice Answer Enlightened Announcer Census Nice Answer Yearling Great Answer Caucus Constituent Announcer Announcer,NULL,NULL,0,NULL,NULL 20026,98326,1003254,Yearling Editor,NULL,NULL,0,NULL,NULL 20027,87851,287279,Nice Answer Yearling Yearling Guru Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 20028,242709,860239,NULL,NULL,NULL,0,NULL,NULL 20029,69149,480815,Notable Question Famous Question Nice Question Good Answer Notable Question Yearling Inquisitive Popular Question Nice Question Nice Answer Enlightened Yearling Popular Question Great Question Notable Question Famous Question Famous Question Necromancer Revival Favorite Question Yearling,NULL,NULL,0,NULL,NULL 20030,168317,20265,Yearling Revival Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 20031,98554,1254812,Notable Question Necromancer Nice Question Electorate Yearling java Pundit Revival Famous Question Notable Question Famous Question Nice Answer Enlightened Notable Question Popular Question Good Answer Yearling Good Answer Notable Question Popular Question Notable Question Popular Question Good Question Nice Answer Enlightened Yearling Good Answer Custodian Nice Answer,NULL,pBy default the SDK Manager from the command line does not include the build tools in the list They re in the obsolete category To see all available downloads use ppre codeandroid list sdk all code prepAnd then to get one of the packages in that list from the command line use ppre codeandroid update sdk lt package no gt code prepWhere stands for no ui stands for all and stands for filter ppIf you need to install multiple packages do ppreandroid update sdk prepWhere is the package number listed with the list command above When do this get Packages available for installation or update 160 Android SDK Tools revision 24 Android SDK Tools revision 25 rc7 Number is installed number is not How can only show installed items,0,NULL,NULL 20032,1228190,1057300,NULL,NULL,NULL,0,NULL,NULL 20033,31034,1405188,Popular Question,NULL,NULL,0,NULL,NULL 20034,8363,154651,Yearling Revival Nice Answer Yearling Necromancer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20035,1505184,442899,NULL,NULL,NULL,0,NULL,NULL 20036,29471,665453,Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 20037,7546,303882,Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 20038,661858,988088,Yearling,NULL,NULL,0,NULL,NULL 20039,275382,246107,NULL,NULL,NULL,0,NULL,NULL 20040,34316,124745,Nice Answer Guru Guru Popular Question Custodian Yearling Necromancer Guru Good Answer Popular Question Guru Guru Nice Answer Nice Answer Notable Question Good Answer Promoter Nice Answer Enlightened Yearling Nice Question Notable Question Nice Question Popular Question Good Answer Nice Answer Nice Answer Enlightened Yearling Notable Question Famous Question Nice Answer Good Answer Great Question Favorite Question Nice Answer,NULL,NULL,0,NULL,NULL 20041,367588,1363606,NULL,NULL,NULL,0,NULL,NULL 20042,55332,1020740,Editor Commentator Nice Answer,NULL,NULL,0,NULL,NULL 20043,560532,568734,NULL,NULL,NULL,0,NULL,NULL 20044,17041,53013,Great Answer Yearling Popular Question Nice Answer Enlightened Good Answer Guru Guru Nice Answer Necromancer Nice Answer Necromancer Nice Answer Good Question Nice Answer Nice Answer Enlightened Great Answer Nice Answer Famous Question Nice Answer Famous Question Nice Answer Famous Question Good Question Nice Answer Guru Nice Answer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Nice Answer Nice Question Great Question Nice Answer Nice Answer Booster Populist Good Answer Nice Answer Popular Question Great Answer Popular Question Booster Notable Question Good Answer Necromancer Nice Answer Good Answer Guru Nice Answer Great Answer Revival Necromancer Good Answer Famous Question Good Answer Favorite Question Nice Answer Good Answer Good Answer Great Answer Nice Answer Nice Answer Nice Answer Famous Question Good Answer Good Answer Great Answer Good Answer Great Question Nice Answer Nice Answer Nice Answer traits Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Yearling Popular Question Nice Answer Enlightened Necromancer Nice Question Nice Answer Great Answer Enlightened Nice Answer Enlightened Popular Question Great Answer Guru Nice Answer Notable Question Guru Good Answer Necromancer Nice Answer Enlightened Enlightened Great Answer Famous Question Good Question Good Question Nice Answer Great Answer Nice Answer Enlightened Enlightened Good Answer Announcer Good Answer Publicist Announcer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Populist Popular Question Custodian Nice Answer Good Answer Documentation User Nice Answer Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Good Answer Notable Question Nice Answer Nice Answer Yearling Famous Question Good Answer Good Answer Guru Popular Question Good Answer Great Answer Popular Question Good Answer Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Guru Nice Answer Booster Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Answer Revival Nice Answer Nice Answer Great Answer Nice Answer Popular Question Good Answer Nice Question,NULL,pI think the accepted answer is great but it seems many people have failed to grasp some fundamental points ppFirst Scala codefor code comprehensions are equivalent to Haskell codedo code notation and it is nothing more than syntactic sugar for composition of multiple monadic operations As this statement will most likely not help anyone who needs help let try again… ppScala codefor code comprehensions is syntactic sugar for composition of multiple operations with map codeflatMap code and codefilter code Or codeforeach code Scala actually translates codefor code expression into calls to those methods so any class providing them or subset of them can be used with for comprehensions ppFirst let talk about the translations There are very simple rules polli pThis ppre codefor lt c1 lt c2 lt c3 code prepis translated into ppre codec1 foreach gt c2 foreach gt c3 foreach gt code pre lili pThis ppre codefor lt c1 lt c2 lt c3 yield code prepis translated into ppre codec1 flatMap gt c2 flatMap gt c3 map gt code pre lili pThis ppre codefor lt if cond yield code prepis translated on Scala into ppre codec filter gt cond map gt code prepor on Scala into ppre codec withFilter gt cond map gt code prepwith fallback into the former if method codewithFilter code is not available but codefilter code is Please see the section below for more information on this lili pThis ppre codefor lt yield code prepis translated into ppre codec map gt map gt code pre li olpWhen you look at very simple codefor code comprehensions the codemap code codeforeach code alternatives look indeed better Once you start composing them though you can easily get lost in parenthesis and nesting levels When that happens codefor code comprehensions are usually much clearer ppI ll show one simple example and intentionally omit any explanation You can decide which syntax was easier to understand ppre codel flatMap sl gt sl filter el gt el gt map el gt el toString length code prepor ppre codefor sl lt el lt sl if el gt yield el toString length code prehrh3 codewithFilter code h3pScala introduced method called codewithFilter code whose main difference is that instead of returning new filtered collection it filters on demand The codefilter code method has its behavior defined based on the strictness of the collection To understand this better let take look at some Scala with codeList code strict and codeStream code non strict ppre codescala gt var found falsefound Boolean falsescala gt List range 10 filter amp amp found foreach gt if found true else println 1379scala gt found falsefound Boolean falsescala gt Stream range 10 filter amp amp found foreach gt if found true else println 13 code prepThe difference happens because codefilter code is immediately applied with codeList code returning list of odds since codefound code is codefalse code Only then codeforeach code is executed but by this time changing codefound code is meaningless as codefilter code has already executed ppIn the case of codeStream code the condition is not immediatelly applied Instead as each element is requested by codeforeach code codefilter code tests the condition which enables codeforeach code to influence it through codefound code Just to make it clear here is the equivalent for comprehension code ppre codefor lt List range 10 if amp amp found if found true else println for lt Stream range 10 if amp amp found if found true else println code prepThis caused many problems because people expected the codeif code to be considered on demand instead of being applied to the whole collection beforehand ppScala introduced codewithFilter code which is emalways em non strict no matter the strictness of the collection The following example shows codeList code with both methods on Scala ppre codescala gt var found falsefound Boolean falsescala gt List range 10 filter amp amp found foreach gt if found true else println 1379scala gt found falsefound Boolean falsescala gt List range 10 withFilter amp amp found foreach gt if found true else println 13 code prepThis produces the result most people expect without changing how codefilter code behaves As side note codeRange code was changed from non strict to strict between Scala and Scala marshall Great edit never thought of using eight spaces to align code sections on lists You did miss double quote pI divide the operators for the purpose of teaching into strongfour categories strong pulliKeywords reserved symbols liliAutomatically imported methods liliCommon methods liliSyntactic sugars composition li ulpIt is fortunate then that most categories are represented in the question ppre code gt Automatically imported method Syntactic sugar Syntactic sugar composition or common method lt Common method Typo though it probably based on Keyword composition Common method Common method code prepThe exact meaning of most of these methods depend on the class that is defining them For example code lt code on codeInt code means em less than or equal to em The first one code gt code ll give as example below code code is probably the method defined on codeList code though it emcould em be the object of the same name and code code is probably the method defined on various codeBuffer code classes ppSo let see them ph2Keywords reserved symbols h2pThere are some symbols in Scala that are special Two of them are considered proper keywords while others are just reserved They are ppre code Keywords lt Used on for comprehensions to separate pattern from generator gt Used for function types function literals and import renaming Reserved Delimit expressions and parameters Delimit type parameters Delimit blocks Method call and path separator Comments Used in type notations Type ascription or context bounds lt gt lt Upper lower and view bounds lt lt Start token for various XML elements Strings Indicate symbols and characters Annotations and variable binding on pattern matching Denote constant or enable arbitrary identifiers Parameter separator Statement separator vararg expansion Many different meanings code prepThese are all empart of the language em and as such can be found in any text that properly describe the language such as href http www scala lang org sites default files linuxsoft archives docu files ScalaReference pdf rel noreferrer Scala Specification PDF itself ppThe last one the underscore deserve special description because it is so widely used and has so many different meanings Here sample ppre codeimport scala Wild card all of Scala is importedimport scala Predef gt Exception everything except Predefdef Higher kinded type parameterdef Existential type Anonymous function placeholder parameterm Eta expansion of method into method valuem Partial function application gt Discarded parametercase gt Wild card pattern matches anythingf xs Sequence xs is passed as multiple parameters to ys case Seq xs Identifier xs is bound to the whole matched sequence code prepI probably forgot some other meaning though ph2Automatically imported methods h2pSo if you did not find the symbol you are looking for in the list above then it must be method or part of one But often you ll see some symbol and the documentation for the class will not have that method When this happens either you are looking at composition of one or more methods with something else or the method has been imported into scope or is available through an imported implicit conversion ppThese emcan still be found em on href http www scala lang org api current index html rel noreferrer ScalaDoc you just have to know where to look for them Or failing that look at the href http www scala lang org archives downloads distrib files nightly docs library index html index index rel noreferrer index presently broken on but available on nightly ppEvery Scala code has three automatic imports ppre code Not necessarily in this orderimport root java lang root denotes an absolute pathimport root scala import root scala Predef code prepThe first two only make classes and singleton objects available The third one contains all implicit conversions and imported methods since href http www scala lang org api current index html scala Predef rel noreferrer codePredef code is an object itself ppLooking inside codePredef code quickly show some symbols ppre codeclass lt lt class object lt lt object code prepAny other symbol will be made available through an emimplicit conversion em Just look at the methods tagged with codeimplicit code that receive as parameter an object of type that is receiving the method For example ppre code gt Look for an implicit from String AnyRef Any or type parameter code prepIn the above case code gt code is defined in the class href http www scala lang org api current scala Predef ArrowAssoc html rel noreferrer codeArrowAssoc code through the method codeany2ArrowAssoc code that takes an object of type codeA code where codeA code is an unbounded type parameter to the same method ph2Common methods h2pSo many symbols are simply methods on class For instance if you do ppre codeList List code prepYou ll find the method code code right on the ScalaDoc for href http www scala lang org api current index html scala collection immutable List rel noreferrer List However there one convention that you must be aware when searching for methods Methods ending in colon code code bind emto the right em instead of the left In other words while the above method call is equivalent to ppre codeList List code prepIf had instead code1 List code that would be equivalent to ppre codeList code prepSo you need to look at the type found emon the right em when looking for methods ending in colon Consider for instance ppre code1 List code prepThe first method code code binds to the right and is found on codeList code The second method code code is just normal method and binds to the left again on codeList code ph2Syntactic sugars composition h2pSo here few syntactic sugars that may hide method ppre codeclass Example arr Array Int Array fill def apply Int arr def update Int Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def Int new Example arr map def unapply Int if arr indices contains Some arr else None val Ex new Example or var for the last exampleprintln Ex calls apply Ex calls update Ex calls This requires Ex to be val val Ex calls unapply and assigns result to This requires Ex to be var Ex substituted for Ex Ex code prepThe last one is interesting because emany em symbolic method can be combined to form an assignment like method that way ppAnd of course there various combinations that can appear in code ppre code An expression or parameter that is an anonymous function with two parameters used exactly where the underscores appear and which calls the method on the first parameter passing the second parameter as argument code pre Maybe do think tested this but who knows what Scala version was using back in 2011 Clearly it doesn work now because ex is assigned to instead of being used as an object so ve replaced everything with Ex which works pI divide the operators for the purpose of teaching into strongfour categories strong pulliKeywords reserved symbols liliAutomatically imported methods liliCommon methods liliSyntactic sugars composition li ulpIt is fortunate then that most categories are represented in the question ppre code gt Automatically imported method Syntactic sugar Syntactic sugar composition or common method lt Common method Typo though it probably based on Keyword composition Common method Common method code prepThe exact meaning of most of these methods depend on the class that is defining them For example code lt code on codeInt code means em less than or equal to em The first one code gt code ll give as example below code code is probably the method defined on codeList code though it emcould em be the object of the same name and code code is probably the method defined on various codeBuffer code classes ppSo let see them ph2Keywords reserved symbols h2pThere are some symbols in Scala that are special Two of them are considered proper keywords while others are just reserved They are ppre code Keywords lt Used on for comprehensions to separate pattern from generator gt Used for function types function literals and import renaming Reserved Delimit expressions and parameters Delimit type parameters Delimit blocks Method call and path separator Comments Used in type notations Type ascription or context bounds lt gt lt Upper lower and view bounds lt lt Start token for various XML elements Strings Indicate symbols and characters Annotations and variable binding on pattern matching Denote constant or enable arbitrary identifiers Parameter separator Statement separator vararg expansion Many different meanings code prepThese are all empart of the language em and as such can be found in any text that properly describe the language such as href http www scala lang org sites default files linuxsoft archives docu files ScalaReference pdf rel noreferrer Scala Specification PDF itself ppThe last one the underscore deserve special description because it is so widely used and has so many different meanings Here sample ppre codeimport scala Wild card all of Scala is importedimport scala Predef gt Exception everything except Predefdef Higher kinded type parameterdef Existential type Anonymous function placeholder parameterm Eta expansion of method into method valuem Partial function application gt Discarded parametercase gt Wild card pattern matches anythingf xs Sequence xs is passed as multiple parameters to ys case Seq xs Identifier xs is bound to the whole matched sequence code prepI probably forgot some other meaning though ph2Automatically imported methods h2pSo if you did not find the symbol you are looking for in the list above then it must be method or part of one But often you ll see some symbol and the documentation for the class will not have that method When this happens either you are looking at composition of one or more methods with something else or the method has been imported into scope or is available through an imported implicit conversion ppThese emcan still be found em on href http www scala lang org api current index html rel noreferrer ScalaDoc you just have to know where to look for them Or failing that look at the href http www scala lang org archives downloads distrib files nightly docs library index html index index rel noreferrer index presently broken on but available on nightly ppEvery Scala code has three automatic imports ppre code Not necessarily in this orderimport root java lang root denotes an absolute pathimport root scala import root scala Predef code prepThe first two only make classes and singleton objects available The third one contains all implicit conversions and imported methods since href http www scala lang org api current index html scala Predef rel noreferrer codePredef code is an object itself ppLooking inside codePredef code quickly show some symbols ppre codeclass lt lt class object lt lt object code prepAny other symbol will be made available through an emimplicit conversion em Just look at the methods tagged with codeimplicit code that receive as parameter an object of type that is receiving the method For example ppre code gt Look for an implicit from String AnyRef Any or type parameter code prepIn the above case code gt code is defined in the class href http www scala lang org api current scala Predef ArrowAssoc html rel noreferrer codeArrowAssoc code through the method codeany2ArrowAssoc code that takes an object of type codeA code where codeA code is an unbounded type parameter to the same method ph2Common methods h2pSo many symbols are simply methods on class For instance if you do ppre codeList List code prepYou ll find the method code code right on the ScalaDoc for href http www scala lang org api current index html scala collection immutable List rel noreferrer List However there one convention that you must be aware when searching for methods Methods ending in colon code code bind emto the right em instead of the left In other words while the above method call is equivalent to ppre codeList List code prepIf had instead code1 List code that would be equivalent to ppre codeList code prepSo you need to look at the type found emon the right em when looking for methods ending in colon Consider for instance ppre code1 List code prepThe first method code code binds to the right and is found on codeList code The second method code code is just normal method and binds to the left again on codeList code ph2Syntactic sugars composition h2pSo here few syntactic sugars that may hide method ppre codeclass Example arr Array Int Array fill def apply Int arr def update Int Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def Int new Example arr map def unapply Int if arr indices contains Some arr else None val Ex new Example or var for the last exampleprintln Ex calls apply Ex calls update Ex calls This requires Ex to be val val Ex calls unapply and assigns result to This requires Ex to be var Ex substituted for Ex Ex code prepThe last one is interesting because emany em symbolic method can be combined to form an assignment like method that way ppAnd of course there various combinations that can appear in code ppre code An expression or parameter that is an anonymous function with two parameters used exactly where the underscores appear and which calls the method on the first parameter passing the second parameter as argument code pre Just methods Because they end with the object of which they are methods is on the right side instead of the left as usual So element list is calling on the class of list and passing element as parameter pI divide the operators for the purpose of teaching into strongfour categories strong pulliKeywords reserved symbols liliAutomatically imported methods liliCommon methods liliSyntactic sugars composition li ulpIt is fortunate then that most categories are represented in the question ppre code gt Automatically imported method Syntactic sugar Syntactic sugar composition or common method lt Common method Typo though it probably based on Keyword composition Common method Common method code prepThe exact meaning of most of these methods depend on the class that is defining them For example code lt code on codeInt code means em less than or equal to em The first one code gt code ll give as example below code code is probably the method defined on codeList code though it emcould em be the object of the same name and code code is probably the method defined on various codeBuffer code classes ppSo let see them ph2Keywords reserved symbols h2pThere are some symbols in Scala that are special Two of them are considered proper keywords while others are just reserved They are ppre code Keywords lt Used on for comprehensions to separate pattern from generator gt Used for function types function literals and import renaming Reserved Delimit expressions and parameters Delimit type parameters Delimit blocks Method call and path separator Comments Used in type notations Type ascription or context bounds lt gt lt Upper lower and view bounds lt lt Start token for various XML elements Strings Indicate symbols and characters Annotations and variable binding on pattern matching Denote constant or enable arbitrary identifiers Parameter separator Statement separator vararg expansion Many different meanings code prepThese are all empart of the language em and as such can be found in any text that properly describe the language such as href http www scala lang org sites default files linuxsoft archives docu files ScalaReference pdf rel noreferrer Scala Specification PDF itself ppThe last one the underscore deserve special description because it is so widely used and has so many different meanings Here sample ppre codeimport scala Wild card all of Scala is importedimport scala Predef gt Exception everything except Predefdef Higher kinded type parameterdef Existential type Anonymous function placeholder parameterm Eta expansion of method into method valuem Partial function application gt Discarded parametercase gt Wild card pattern matches anythingf xs Sequence xs is passed as multiple parameters to ys case Seq xs Identifier xs is bound to the whole matched sequence code prepI probably forgot some other meaning though ph2Automatically imported methods h2pSo if you did not find the symbol you are looking for in the list above then it must be method or part of one But often you ll see some symbol and the documentation for the class will not have that method When this happens either you are looking at composition of one or more methods with something else or the method has been imported into scope or is available through an imported implicit conversion ppThese emcan still be found em on href http www scala lang org api current index html rel noreferrer ScalaDoc you just have to know where to look for them Or failing that look at the href http www scala lang org archives downloads distrib files nightly docs library index html index index rel noreferrer index presently broken on but available on nightly ppEvery Scala code has three automatic imports ppre code Not necessarily in this orderimport root java lang root denotes an absolute pathimport root scala import root scala Predef code prepThe first two only make classes and singleton objects available The third one contains all implicit conversions and imported methods since href http www scala lang org api current index html scala Predef rel noreferrer codePredef code is an object itself ppLooking inside codePredef code quickly show some symbols ppre codeclass lt lt class object lt lt object code prepAny other symbol will be made available through an emimplicit conversion em Just look at the methods tagged with codeimplicit code that receive as parameter an object of type that is receiving the method For example ppre code gt Look for an implicit from String AnyRef Any or type parameter code prepIn the above case code gt code is defined in the class href http www scala lang org api current scala Predef ArrowAssoc html rel noreferrer codeArrowAssoc code through the method codeany2ArrowAssoc code that takes an object of type codeA code where codeA code is an unbounded type parameter to the same method ph2Common methods h2pSo many symbols are simply methods on class For instance if you do ppre codeList List code prepYou ll find the method code code right on the ScalaDoc for href http www scala lang org api current index html scala collection immutable List rel noreferrer List However there one convention that you must be aware when searching for methods Methods ending in colon code code bind emto the right em instead of the left In other words while the above method call is equivalent to ppre codeList List code prepIf had instead code1 List code that would be equivalent to ppre codeList code prepSo you need to look at the type found emon the right em when looking for methods ending in colon Consider for instance ppre code1 List code prepThe first method code code binds to the right and is found on codeList code The second method code code is just normal method and binds to the left again on codeList code ph2Syntactic sugars composition h2pSo here few syntactic sugars that may hide method ppre codeclass Example arr Array Int Array fill def apply Int arr def update Int Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def arr def Int arr def Int new Example arr map def unapply Int if arr indices contains Some arr else None val Ex new Example or var for the last exampleprintln Ex calls apply Ex calls update Ex calls This requires Ex to be val val Ex calls unapply and assigns result to This requires Ex to be var Ex substituted for Ex Ex code prepThe last one is interesting because emany em symbolic method can be combined to form an assignment like method that way ppAnd of course there various combinations that can appear in code ppre code An expression or parameter that is an anonymous function with two parameters used exactly where the underscores appear and which calls the method on the first parameter passing the second parameter as argument code pre Ah with the exception of single is type ascription Look that up for more info pTo explain it we first have to explain nested classes in Scala Consider this simple example ppre codeclass class def println Got my code prepNow let try something with it ppre codescala gt val a1 new Aa1 gt val a2 new Aa2 gt a2 new a1 lt console gt 11 error type mismatch found a1 required a2 a2 new a1 code prepWhen you declare class inside another class in Scala you are saying that emeach instance em of that class has such subclass In other words there no codeA code class but there are codea1 code and codea2 code classes and they are emdifferent em classes as the error message is telling us above ppIf you did not understand that look up path dependent types ppNow code code makes it possible for you to refer to such nested classes without restricting it to particular instance In other words there no codeA code but there codeA code which means codeB code nested class of emany em instance of codeA code ppWe can see this in work by changing the code above ppre codeclass class def println Got my def println Got code prepAnd trying it out ppre codescala gt val a1 new Aa1 gt val a2 new Aa2 gt a2 new a1 lt console gt 11 error type mismatch found a1 required a2 a2 new a1 scala gt a2 new a1 Got code pre Their values have the same string representation and they might even be equal Class is runtime representation of Java classes and it limited even in Java For example ListString and ListInteger have the same runtime Class If Class is not rich enough to represent Java types it almost useless when representing Scala types Again res7 Class class left of the equals sign is type right of the equals type if value which is the Java runtime representation of class pI find the following easier to reason about than other proposed solutions ppre codefind build not path build external prune name js code prepThis comes from an actual use case where needed to call yui compressor on some files generated by wintersmith but leave out other files that need to be sent as is ppInside code code and code code is an expression that will match em strongexactly strong em codebuild external code it will emnot em match if you did codefind build code for example you need to change it to code build external code in that case and will on success emavoid traversing anything below em This is then grouped as single expression with the escaped parenthesis and prefixed with code not code which will make codefind code skip anything that was matched by that expression ppOne might ask if adding code not code will not make all other files hidden by code prune code reappear and the answer is no The way code prune code works is that anything that once it is reached the files below that directory are permanently ignored ppThat is also easy to expand to add additional exclusions For example ppre codefind build not path build external prune not path build blog prune name js code pre Herzkamp Comma is not on BSD,0,NULL,NULL 20045,7591,154508,Popular Question Good Answer Necromancer Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 20046,3387310,1103626,Informed,NULL,NULL,0,NULL,NULL 20047,1510727,1103626,Informed,NULL,NULL,0,NULL,NULL 20048,34068,505540,Teacher Revival Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 20049,4133786,429439,NULL,NULL,NULL,0,NULL,NULL 20050,21653,40956,Popular Question Nice Question Yearling Notable Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 20051,786875,527042,NULL,NULL,NULL,0,NULL,NULL 20052,1034879,561381,Nice Answer,NULL,NULL,0,NULL,NULL 20053,140179,208057,NULL,NULL,NULL,0,NULL,NULL 20054,252335,271545,Caucus Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 20055,148121,371130,Popular Question,NULL,NULL,0,NULL,NULL 20056,139934,151088,NULL,NULL,NULL,0,NULL,NULL 20057,171083,370565,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20058,7264224,1348192,NULL,NULL,NULL,0,NULL,NULL 20059,626079,1138580,NULL,NULL,NULL,0,NULL,NULL 20060,103244,288456,Organizer Custodian Nice Answer Enlightened Yearling Nice Answer Enlightened Mortarboard Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Explainer Nice Answer Enlightened Nice Answer Enlightened Nice Answer kotlin Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Caucus Nice Answer Enlightened Good Answer Guru Good Answer Guru Necromancer Nice Answer Good Answer Excavator Census Good Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Enlightened Caucus Guru Good Answer Nice Answer Announcer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 20061,11968,417194,Nice Answer Enlightened Announcer Nice Answer Good Answer Nice Answer Enlightened Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer sql Guru Yearling Nice Answer Enlightened Good Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Generalist Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Necromancer Good Answer plpgsql Good Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Nice Answer Great Answer Good Answer Good Answer Yearling Good Answer Good Answer,NULL,pYou re looking for group by ppre codeselect from tablegroup by field1 code prepWhich can occasionally be written with distinct on statement ppre codeselect distinct on field1 from table code prepOn most platforms however neither of the above will work because the behavior on the other columns is unspecified The first works in MySQL if that what you re using ppYou could fetch the distinct fields and stick to picking single arbitrary row each time ppOn some platforms PostgreSQL Oracle SQL this can be done directly using window functions ppre codeselect from select row number over partition by field1 order by field2 as row number from table as rowswhere row number code prepOn others MySQL SQLite you ll need to write subqueries that will make you join the entire table with itself href https stackoverflow com questions 6109894 how to efficiently determine changes between rows using sql 6110200 6110200 example so not recommended Might be today As you may notice this answer is almost years old point in time where that wasn the case insofar as can recollect from back when was active You re welcome to retag and or edit the answer if you feel it necessary,0,NULL,NULL 20062,574657,377645,Nice Answer Popular Question Yearling Revival Custodian Caucus Constituent Nice Answer Yearling Caucus Excavator Proofreader Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 20063,47488,851384,NULL,NULL,NULL,0,NULL,NULL 20064,2866720,851384,NULL,NULL,NULL,0,NULL,NULL 20065,1504127,782485,NULL,NULL,NULL,0,NULL,NULL 20066,47319,271326,Notable Question Supporter,NULL,NULL,0,NULL,NULL 20067,42813,705945,Popular Question Nice Question Notable Question Yearling Custodian Nice Answer Nice Question Necromancer Good Answer Necromancer Necromancer Necromancer Nice Answer Necromancer Nice Answer Good Answer Notable Question Nice Answer Organizer Revival Good Answer Promoter Benefactor Revival Necromancer Yearling Necromancer Necromancer Necromancer Custodian Nice Answer Nice Answer Nice Question Popular Question Nice Question Nice Answer Popular Question Good Answer Nice Answer python Custodian Yearling Necromancer Popular Question Necromancer Necromancer Necromancer Nice Answer Popular Question Nice Answer Enlightened Notable Question Necromancer,NULL,NULL,0,NULL,NULL 20068,483060,606679,Yearling Nice Answer Nice Answer Enlightened Curious Good Answer Nice Answer Enlightened Nice Answer Mortarboard Yearling Necromancer Nice Answer Enlightened Nice Answer Popular Question Necromancer java Revival Good Answer Announcer Nice Answer Nice Answer Enlightened freemarker Yearling Announcer Nice Answer Enlightened Nice Answer Enlightened Necromancer Notable Question Nice Answer Nice Answer Great Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 20069,201759,303696,Yearling Tumbleweed Vox Populi Nice Question Promoter Nice Question Famous Question Caucus Yearling Notable Question Caucus Good Question Documentation User Popular Question Popular Question Yearling Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20070,39410,603522,Yearling Commentator Caucus Civic Duty,NULL,NULL,0,NULL,NULL 20071,708260,1553018,NULL,NULL,NULL,0,NULL,NULL 20072,126614,492410,Famous Question Revival Great Answer Good Answer Notable Question Enlightened Nice Answer Nice Answer Enlightened Yearling Popular Question Notable Question Popular Question Great Answer Excavator Revival Notable Question Notable Question Good Answer Notable Question Yearling Revival Revival Nice Answer Enlightened Organizer Revival Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 20073,79642,475256,NULL,NULL,NULL,0,NULL,NULL 20074,94185,567777,NULL,NULL,NULL,0,NULL,NULL 20075,810472,4739,Yearling Popular Question,NULL,NULL,0,NULL,NULL 20076,7725452,1194015,NULL,NULL,NULL,0,NULL,NULL 20077,1366472,1454124,Notable Question,NULL,NULL,0,NULL,NULL 20078,121526,222072,Popular Question Notable Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20079,40834,749400,NULL,NULL,NULL,0,NULL,NULL 20080,4509,117630,Nice Answer Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 20081,1507786,309919,NULL,NULL,NULL,0,NULL,NULL 20082,1503902,557773,NULL,NULL,NULL,0,NULL,NULL 20083,95957,240908,NULL,NULL,NULL,0,NULL,NULL 20084,312178,1224110,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 20085,121565,570726,Yearling Notable Question,NULL,NULL,0,NULL,NULL 20086,275514,163040,NULL,NULL,NULL,0,NULL,NULL 20087,186494,881972,Necromancer,NULL,NULL,0,NULL,NULL 20088,302132,374110,Revival Enthusiast Popular Question Necromancer Yearling Caucus Critic Nice Answer Editor Yearling,NULL,NULL,0,NULL,NULL 20089,8577,20520,Good Answer Nice Answer Nice Answer Nice Question Yearling Notable Question Nice Answer Nice Answer Yearling Popular Question Notable Question Notable Question c++ Revival Necromancer Good Answer Nice Answer Enlightened Nice Answer Announcer Nice Question Yearling Necromancer Popular Question Civic Duty,NULL,NULL,1,How can process Java stream with more than the default number of threads java multithreading java stream forkjoinpool pBy default Java streams are processed by href https docs oracle com javase docs api java util concurrent ForkJoinPool html rel nofollow noreferrer common thread pool which is constructed with default parameters As has been answered in href https stackoverflow com questions 21163108 custom thread pool in java parallel stream another question one can adjust these defaults by specifying custom pool or by setting the codejava util concurrent ForkJoinPool common parallelism code system parameter ppHowever ve been unable to increase the number of threads allocated to stream processing by any of these two methods As an example consider the program below which processes list of IP addresses contained in file specified in its first argument and outputs the resolved addresses Running this on file with about 13000 unique IP addresses see using emOracle Java Mission Control em as few as 16 threads Of these only five are codeForkJoinPool code workers Yet this particular task would well benefit from many more threads because threads spend most of the time waiting for DNS responses So my question is how can actually increase the number of threads used ppI ve tried the program on three environments these are the OS reported number of threads pulliJava SE Runtime Environment build 73 b02 on an core machine running Windows 17 threads liliJava SE Runtime Environment build 66 b17 on core machine running OS Darwin 15 23 threads liliopenjdk version 72 on 24 core machine running FreeBSD 11 44 threads li ulpre codeimport java io IOException import java net InetAddress import java net UnknownHostException import java nio file Files import java nio file Files import java nio file Path import java nio file Paths import java util concurrent ForkJoinPool Resolve IP addresses in file args using 100 threads public class Resolve100 Resolve the passed IP address into name static String addressName String ipAddress try return InetAddress getByName ipAddress getHostName catch UnknownHostException return ipAddress public static void main String args Path path Paths get args ForkJoinPool fjp new ForkJoinPool 100 try fjp submit try Files lines path parallel map line addressName line forEach System out println catch IOException System err println Failed get catch Exception System err println Failed code pre,NULL 20090,201876,112161,Necromancer Famous Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 20091,694951,812530,Popular Question Curious Caucus Notable Question Caucus,NULL,NULL,0,NULL,NULL 20092,223327,1068978,NULL,NULL,NULL,0,NULL,NULL 20093,615343,1011491,NULL,NULL,NULL,0,NULL,NULL 20094,30982,1155998,Yearling,NULL,NULL,0,NULL,NULL 20095,334518,522789,NULL,NULL,NULL,0,NULL,NULL 20096,279797,22263,Self-Learner Yearling Necromancer Notable Question Nice Answer Nice Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 20097,507496,883614,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 20098,3105576,651556,Informed Notable Question Investor Altruist Census Announcer Organizer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 20099,185987,651556,Informed Notable Question Investor Altruist Census Announcer Organizer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 20100,4552408,773459,NULL,NULL,NULL,0,NULL,NULL 20101,397989,101807,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20102,24990,672906,Yearling Civic Duty Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 20103,638959,174735,Yearling Commentator Yearling Caucus Stellar Question Critic Yearling Custodian Great Answer Yearling,NULL,NULL,0,NULL,NULL 20104,400358,1254453,Editor Revival Yearling Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20105,1200482,367865,Teacher Commentator Explainer Yearling Citizen Patrol Yearling Yearling Autobiographer Yearling Yearling Yearling Tenacious Cleanup Organizer Enthusiast Custodian Excavator Proofreader Reviewer Custodian Custodian Strunk & White Caucus Custodian Custodian javascript Nice Answer Curious Custodian Revival Yearling Announcer Announcer Nice Answer Announcer Nice Answer Enlightened Enlightened Peer Pressure Yearling Good Answer css,NULL,NULL,0,NULL,NULL 20106,513123,593962,Popular Question Popular Question Critic Curious Nice Answer Notable Question Notable Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 20107,1212066,602585,Famous Question Necromancer Citizen Patrol Necromancer c# Announcer Notable Question Good Question Nice Answer Announcer Popular Question Necromancer Announcer Yearling Custodian Notable Question Necromancer Necromancer Cleanup Nice Answer Necromancer Necromancer Good Answer Revival Announcer Good Answer Popular Question Pundit Good Answer Revival Nice Answer Famous Question Notable Question Notable Question Famous Question Nice Answer Necromancer Great Answer Announcer Nice Answer Yearling Popular Question Guru Necromancer Famous Question Notable Question Necromancer Necromancer Nice Answer Necromancer Guru Inquisitive Necromancer Necromancer Announcer Announcer Necromancer Good Answer Yearling Announcer Nice Answer Popular Question Popular Question Great Answer Good Answer Necromancer Necromancer Electorate Necromancer,NULL,pI just wrote href http blog danskingdom com saving and loading objects data to an xml json or binary file rel noreferrer blog post on saving an object data to Binary XML or Json You are correct that you must decorate your classes with the Serializable attribute but only if you are using Binary serialization You may prefer to use XML or Json serialization Here are the functions to do it in the various formats See my blog post for more details ph2Binary h2pre code lt summary gt Writes the given object instance to binary file lt para gt Object type and all child types must be decorated with the Serializable attribute lt para gt lt para gt To prevent variable from being serialized decorate it with the NonSerialized attribute cannot be applied to properties lt para gt lt summary gt lt typeparam name gt The type of object being written to the binary file lt typeparam gt lt param name filePath gt The file path to write the object instance to lt param gt lt param name objectToWrite gt The object instance to write to the binary file lt param gt lt param name append gt If false the file will be overwritten if it already exists If true the contents will be appended to the file lt param gt public static void WriteToBinaryFile lt gt string filePath objectToWrite bool append false using Stream stream File Open filePath append FileMode Append FileMode Create var binaryFormatter new System Runtime Serialization Formatters Binary BinaryFormatter binaryFormatter Serialize stream objectToWrite lt summary gt Reads an object instance from binary file lt summary gt lt typeparam name gt The type of object to read from the binary file lt typeparam gt lt param name filePath gt The file path to read the object instance from lt param gt lt returns gt Returns new instance of the object read from the binary file lt returns gt public static ReadFromBinaryFile lt gt string filePath using Stream stream File Open filePath FileMode Open var binaryFormatter new System Runtime Serialization Formatters Binary BinaryFormatter return binaryFormatter Deserialize stream code preh2XML h2pRequires the System Xml assembly to be included in your project ppre code lt summary gt Writes the given object instance to an XML file lt para gt Only Public properties and variables will be written to the file These can be any type though even other classes lt para gt lt para gt If there are public properties variables that you do not want written to the file decorate them with the XmlIgnore attribute lt para gt lt para gt Object type must have parameterless constructor lt para gt lt summary gt lt typeparam name gt The type of object being written to the file lt typeparam gt lt param name filePath gt The file path to write the object instance to lt param gt lt param name objectToWrite gt The object instance to write to the file lt param gt lt param name append gt If false the file will be overwritten if it already exists If true the contents will be appended to the file lt param gt public static void WriteToXmlFile lt gt string filePath objectToWrite bool append false where new TextWriter writer null try var serializer new XmlSerializer typeof writer new StreamWriter filePath append serializer Serialize writer objectToWrite finally if writer null writer Close lt summary gt Reads an object instance from an XML file lt para gt Object type must have parameterless constructor lt para gt lt summary gt lt typeparam name gt The type of object to read from the file lt typeparam gt lt param name filePath gt The file path to read the object instance from lt param gt lt returns gt Returns new instance of the object read from the XML file lt returns gt public static ReadFromXmlFile lt gt string filePath where new TextReader reader null try var serializer new XmlSerializer typeof reader new StreamReader filePath return serializer Deserialize reader finally if reader null reader Close code preh2Json h2pYou must include reference to Newtonsoft Json assembly which can be obtained from the href http www nuget org packages Newtonsoft Json rel noreferrer Json NET NuGet Package ppre code lt summary gt Writes the given object instance to Json file lt para gt Object type must have parameterless constructor lt para gt lt para gt Only Public properties and variables will be written to the file These can be any type though even other classes lt para gt lt para gt If there are public properties variables that you do not want written to the file decorate them with the JsonIgnore attribute lt para gt lt summary gt lt typeparam name gt The type of object being written to the file lt typeparam gt lt param name filePath gt The file path to write the object instance to lt param gt lt param name objectToWrite gt The object instance to write to the file lt param gt lt param name append gt If false the file will be overwritten if it already exists If true the contents will be appended to the file lt param gt public static void WriteToJsonFile lt gt string filePath objectToWrite bool append false where new TextWriter writer null try var contentsToWriteToFile JsonConvert SerializeObject objectToWrite writer new StreamWriter filePath append writer Write contentsToWriteToFile finally if writer null writer Close lt summary gt Reads an object instance from an Json file lt para gt Object type must have parameterless constructor lt para gt lt summary gt lt typeparam name gt The type of object to read from the file lt typeparam gt lt param name filePath gt The file path to read the object instance from lt param gt lt returns gt Returns new instance of the object read from the Json file lt returns gt public static ReadFromJsonFile lt gt string filePath where new TextReader reader null try reader new StreamReader filePath var fileContents reader ReadToEnd return JsonConvert DeserializeObject lt gt fileContents finally if reader null reader Close code preh2Example h2pre code Write the contents of the variable someClass to file WriteToBinaryFile lt SomeClass gt someClass txt object1 Read the file contents back into variable SomeClass object1 ReadFromBinaryFile lt SomeClass gt someClass txt code pre Are you sure éphaneGourichon using calls Dispose which is not necessarily equivalent to Close haven tested to confirm one way or the other,0,NULL,NULL 20108,364624,193033,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 20109,412407,917293,Necromancer,NULL,NULL,0,NULL,NULL 20110,1347806,1031270,NULL,NULL,NULL,0,NULL,NULL 20111,271382,1033239,Nice Answer Enlightened Nice Answer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 20112,733181,201069,NULL,NULL,NULL,0,NULL,NULL 20113,283624,298949,Popular Question Yearling,NULL,NULL,0,NULL,NULL 20114,570306,985374,NULL,NULL,NULL,0,NULL,NULL 20115,339642,1359200,Informed,NULL,NULL,0,NULL,NULL 20116,779913,1372810,Tumbleweed Student Editor,NULL,NULL,0,NULL,NULL 20117,85210,829681,NULL,NULL,NULL,0,NULL,NULL 20118,7626,5221,Good Question Census,NULL,NULL,0,NULL,NULL 20119,187987,1482486,NULL,NULL,NULL,0,NULL,NULL 20120,263941,775007,Guru Yearling php Great Answer Yearling Popular Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 20121,8118548,134176,Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Nice Answer Good Question Popular Question Enthusiast Yearling Guru Taxonomist Notable Question Good Answer Popular Question Yearling Good Answer,NULL,pThis page href http www ecse rpi edu Homepages wrf Research Short Notes pnpoly html http www ecse rpi edu Homepages wrf Research Short Notes pnpoly html shows how to do this for any polygon ppI have Java implementation of this but it is too big to post here in its entirety However you should be able to work it out ppre codeclass Boundary private final Point points Points making up the boundary Return true if the given point is contained inside the boundary See http www ecse rpi edu Homepages wrf Research Short Notes pnpoly html test The point to check true if the point is inside the boundary false otherwise public boolean contains Point test int int boolean result false for points length lt points length if points gt test points gt test amp amp test lt points points test points points points points result result return result code prepAnd here is sketch of the Point class ppre code Two dimensional cartesian point public class Point public final double public final double code pre It making sure points and points are not on the same side of test,0,NULL,NULL 20122,244045,1381644,NULL,NULL,NULL,0,NULL,NULL 20123,473538,663226,NULL,NULL,NULL,0,NULL,NULL 20124,251756,45601,Yearling Guru Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20125,173862,144697,Good Question Popular Question Yearling Famous Question Nice Question Notable Question Popular Question Nice Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 20126,629616,119116,Popular Question Yearling Caucus Constituent Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 20127,423941,385104,scala Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 20128,36724,890314,NULL,NULL,NULL,0,NULL,NULL 20129,427629,250487,NULL,NULL,NULL,0,NULL,NULL 20130,679065,144983,Self-Learner Popular Question Popular Question Yearling Notable Question Famous Question Caucus Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Great Question Notable Question Notable Question Yearling Notable Question Nice Question Popular Question Popular Question Famous Question Notable Question Nice Question Notable Question Famous Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20131,299219,1305077,NULL,NULL,NULL,0,NULL,NULL 20132,188103,476351,Critic Yearling Caucus Good Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 20133,315862,584474,Curious Popular Question,NULL,NULL,0,NULL,NULL 20134,7282,96947,Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 20135,1389043,698826,NULL,NULL,NULL,0,NULL,NULL 20136,644729,35499,Yearling Custodian Explainer Yearling Caucus Constituent Census Caucus Constituent Announcer Census Yearling,NULL,NULL,0,NULL,NULL 20137,670000,974956,Editor Commentator,NULL,NULL,0,NULL,NULL 20138,104993,969455,NULL,NULL,NULL,0,NULL,NULL 20139,453177,60733,Yearling Notable Question Nice Question Nice Question Notable Question Popular Question Notable Question Notable Question Yearling Nice Question Custodian Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Revival Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20140,148746,335567,Yearling Good Answer Popular Question Notable Question Famous Question Popular Question Yearling Documentation User Explainer Custodian Yearling Popular Question Booster,NULL,NULL,0,NULL,NULL 20141,919664,663420,NULL,NULL,NULL,0,NULL,NULL 20142,66566,1349086,NULL,NULL,NULL,0,NULL,NULL 20143,400858,409263,Yearling Notable Question Notable Question Nice Question Good Question Notable Question Famous Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Caucus Custodian Famous Question,NULL,NULL,0,NULL,NULL 20144,954314,392581,NULL,NULL,NULL,0,NULL,NULL 20145,388204,392581,NULL,NULL,NULL,0,NULL,NULL 20146,1317606,1209197,Promoter Benefactor Yearling javascript Nice Answer Enlightened Yearling Popular Question Citizen Patrol Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20147,1946614,607102,NULL,NULL,NULL,0,NULL,NULL 20148,899763,254655,NULL,NULL,NULL,0,NULL,NULL 20149,218385,1209638,NULL,NULL,NULL,0,NULL,NULL 20150,374643,945467,NULL,NULL,NULL,0,NULL,NULL 20151,486742,888141,NULL,NULL,NULL,0,NULL,NULL 20152,377830,214655,NULL,NULL,NULL,0,NULL,NULL 20153,277327,1078703,Nice Answer,NULL,NULL,0,NULL,NULL 20154,5077,962476,NULL,NULL,NULL,0,NULL,NULL 20155,80184,1162406,Nice Answer,NULL,NULL,0,NULL,NULL 20156,176831,872397,Notable Question Critic Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 20157,193067,226619,Popular Question Nice Question Notable Question Good Question Popular Question Good Question Notable Question Nice Question Famous Question Yearling Notable Question Famous Question Notable Question Good Question Yearling Good Question Favorite Question Good Question Famous Question Famous Question Great Question Great Question,NULL,NULL,0,NULL,NULL 20158,311287,371853,NULL,NULL,NULL,0,NULL,NULL 20159,93683,225790,Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Good Question Yearling Nice Question Famous Question Notable Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Announcer Caucus Constituent Notable Question Famous Question Notable Question Nice Question Favorite Question Yearling Necromancer Notable Question Popular Question Famous Question Announcer Nice Question Popular Question Yearling Caucus Constituent Nice Answer Nice Answer Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20160,4751,115385,Custodian Famous Question Yearling Famous Question Famous Question Nice Question Popular Question Notable Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 20161,151374,625863,NULL,NULL,NULL,0,NULL,NULL 20162,282005,1380843,NULL,NULL,NULL,0,NULL,NULL 20163,481345,477802,NULL,NULL,NULL,0,NULL,NULL 20164,42268,1067321,Tumbleweed,NULL,NULL,0,NULL,NULL 20165,130807,298991,Yearling Necromancer Good Answer Yearling Nice Answer Nice Answer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 20166,740823,1181327,NULL,NULL,NULL,0,NULL,NULL 20167,3876693,970136,NULL,NULL,NULL,0,NULL,NULL 20168,427421,94363,Necromancer Necromancer Nice Answer Necromancer Good Question Good Question Good Answer Nice Answer Revival Yearling Popular Question Popular Question Nice Answer Famous Question Revival Great Answer Nice Answer Good Answer Nice Answer Notable Question Nice Answer Good Answer Notable Question Nice Question Nice Answer Enlightened Guru Good Answer Popular Question Popular Question Necromancer Yearling Nice Answer Guru Revival Famous Question Nice Answer Popular Question Announcer Popular Question Popular Question Notable Question Notable Question Announcer Documentation User Great Question Revival Announcer Famous Question Necromancer Yearling Announcer Great Answer Revival Necromancer Announcer Nice Answer Enlightened Necromancer Good Answer Inquisitive Necromancer Good Answer Nice Answer Necromancer,NULL,Using getopts in bash shell script to get long and short command line options shell unix getopt getopts pI wish to have long and short forms of command line options invoked using my shell script ppI know that codegetopts code can be used but like in Perl have not been able to do the same with shell ppAny ideas on how this can be done so that can use options like ppre code shell sh copyfile abc pl tmp shell sh abc pl tmp code prepIn the above both the commands mean the same thing to my shell but using codegetopts code have not been able to implement these Possible duplicate of How do parse command line arguments in Bash https stackoverflow com questions 192249 how do parse command line arguments in bash h1nodpi h1blockquote pThese are density independent resources The system does not scale resources tagged with this qualifier regardless of the current screen density blockquotepFor instance pullidrawable strongnodpi strong dot png li ulpThe dot will appear small on xxhdpi big on ldpi ppHowever the resource resolver will match specific qualifier if it exists ppFor instance pullidrawable stronghdpi strong eg png lilidrawable strongnodpi strong v21 eg xml li ulpOn Lollipop API 21 hdpi device the strongbitmap strong is used ppOn Lollipop API 21 xhdpi device the vector is used ph1anydpi h1blockquote pThese resources take precedence in any dpi blockquotepFor instance pullidrawable stronghdpi strong eg png lilidrawable stronganydpi strong v21 eg xml li ulpOn Lollipop API 21 hdpi device the strongvector strong is used ppOn Lollipop API 21 xhdpi device the vector is used ph1Reference h1p emNote em anydpi was added in href https android googlesource com platform frameworks base 31245b4 5E rel noreferrer change Ic3288d0236fe0bff20bb1599aba2582c25b0db32 Bottom line you should place vectors in drawable anydpi v21 If you have the support vector drawable library you can place them in drawable anydpi or simply drawable pThis question is bit old but think it is still of good interest pp codeAccountManager code codeSyncAdapter code and codeContentProvider codego together pulli href https stackoverflow com questions 5146272 sync adapter without account You cannot have codeSyncAdapter code without an codeAccount code in the codeAccountManager code lili href https stackoverflow com questions 4649808 syncadapter without contentprovider You cannot have codeSyncAdapter codewithout codeContentProvider code li ulpBut you can pulliuse the codeContentProvider code without the others liliuse the codeAccountManager code without the others but you href http code google com android issues detail id 5009 rel nofollow noreferrer cannot use an codeAccountManager code without codeSyncAdapter code before Android Froyo API li ulpWith codeAccountManager code codeSyncAdapter code codeContentProvider code pulli codeAccountManager code gives users central point Settings Accounts to define their credentials liliAndroid decides when synchronization can be done via codeSyncAdapter code This can be good to optimize battery no sync is done when network is down for instance lili codeContentProvider code is convenient way to share data across applicationsNote there are href http developer android com training articles security tips html IPC rel nofollow noreferrer other methods of inter process communication on Android lili strike codeContentProvider code schedules the database access in background thread strike The href http developer android com reference android content AsyncQueryHandler html rel nofollow noreferrer codeAsyncQueryHanlder code helps to query the codeContentProvider code in background thread preventing Application Not Responsive ANR errors while not requiring you to explicitly handle threading lili codeContentProvider code ties into codeContentResolver code observer this means it is easy to notify views when content is changed li ulp strongBottom line strong the framework codeAccountManager code codeSyncAdapter code codeContentProvider code helps if you want to synchronize data from web resource Fake href https stackoverflow com questions 5358391 how do implement an account on android without syncadapter Dumb implementations are required on API Also pulliIf you only want to store data you should consider href http developer android com guide topics data data storage html rel nofollow noreferrer simpler mechanism for data storage liliIf you only need to fetch an only resource you can use an href https developer android com reference android content AsyncTaskLoader html rel nofollow noreferrer codeAsyncTaskLoader code liliIf you want to load images asynchronously you can use specialized libraries like href http square github io picasso rel nofollow noreferrer Square Picasso liliIf you only want to execute some code at given time you can consider Service Alarm lilionly available from API this doesn matter anymore li ulpFinally if you use codeSyncAdapter code seriously consider href https firebase google com docs cloud messaging rel nofollow noreferrer Firebase Cloud Messaging previously Google Cloud Messaging aka push notifications to have fresher updates and optimized battery usage My answer was correct when wrote it and if you read the bug linked to you ll understand you can use AccountManager standalone since Android ve updated the answer,0,NULL,NULL 20169,2041213,477197,NULL,NULL,NULL,0,NULL,NULL 20170,99433,476,Great Answer character-encoding Guru curl Good Answer Nice Answer Popular Question Nice Answer Good Answer Nice Answer Nice Answer Good Answer json Nice Answer Famous Question Nice Answer Enlightened Guru Nice Answer Guru variables Popular Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Nice Answer http Nice Answer Enlightened callback Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer wordpress Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Popular Question Revival Nice Answer rest Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Enlightened Populist Guru pdo Guru redirect Yearling Nice Answer Nice Answer Good Answer Announcer Good Answer Good Answer Nice Answer Enlightened inheritance Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened composer-php Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Great Answer Famous Question Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer date Enlightened Nice Answer Caucus Good Answer Constituent Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Revival Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Guru Enlightened Great Answer Nice Answer Good Answer Census authentication Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Stellar Question Good Question Great Answer Populist Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Good Answer Famous Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Popular Question Nice Answer mod-rewrite Good Answer Nice Answer Good Answer python-3.x Nice Answer Nice Answer https Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Great Question Favorite Question Nice Answer Nice Question Nice Answer Announcer cookies Announcer Great Answer Nice Answer python Enlightened Guru Announcer Favorite Question Good Answer syntax Caucus Popular Question Nice Answer Constituent Yearling Announcer Great Answer Nice Answer Guru Good Answer Nice Answer Announcer Guru Announcer Guru Great Question Nice Answer Announcer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru angularjs Announcer Documentation User Nice Answer Enlightened Announcer Nice Answer Enlightened switch-statement Nice Answer object Good Answer Guru Nice Answer Good Answer Guru Nice Answer Enlightened Good Question Nice Answer Enlightened Good Answer Sheriff Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer multidimensional-array macos Popular Question Nice Answer Nice Answer Nice Answer Enlightened Announcer csv Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Populist Great Answer Good Answer Nice Answer Good Answer Good Answer Caucus Nice Answer Enlightened Nice Answer Constituent Great Answer Guru Good Answer namespaces Good Answer Guru Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer sql Guru Announcer Nice Answer Enlightened Good Answer Guru Announcer Guru Announcer Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer regex Nice Answer Announcer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Yearling Good Answer Nice Answer Enlightened Good Answer node.js language-agnostic Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer ecmascript-6 Nice Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Good Answer Notable Question web python Nice Answer Enlightened Guru Nice Answer Enlightened Enlightened Nice Answer Announcer Guru Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,Reference What does this symbol mean in PHP php operators symbols php h3What is this h3pThis is collection of questions that come up every now and then about syntax in PHP This is also Community Wiki so everyone is invited to participate in maintaining this list ph3Why is this h3pIt used to be hard to find questions about operators and other syntax tokens ¹brThe main idea is to have links to existing questions on Stack Overflow so it easier for us to reference them not to copy over content from the PHP Manual pp¹ Note Since January 2013 Stack Overflow href https meta stackexchange com questions 160100 new search engine for stack exchange does support special characters Just surround the search terms by quotes href https stackoverflow com search 5Bphp 5D 20 22 22 20vs 20 22 22 code php vs code ph3What should do here h3pIf you have been pointed here by someone because you have asked such question please find the particular syntax below The linked pages to the href http php net manual en index php rel noreferrer PHP manual along with the linked questions will likely answer your question then If so you are encouraged to upvote the answer This list is not meant as substitute to the help others provided ph2The List h2pIf your particular token is not listed below you might find it in the href http secure php net manual en tokens php rel noreferrer List of Parser Tokens phrp code amp code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators or href http secure php net manual en language references php rel noreferrer References pulli href https stackoverflow com questions 1676897 What does it mean to start PHP function with an ampersand lili href https stackoverflow com questions 600202 Understanding PHP amp ampersand bitwise and operator lili href https stackoverflow com questions 2209934 PHP amp operator lili href https stackoverflow com questions 2376348 Difference between amp and amp amp in PHP lili href https stackoverflow com questions 1006652 What does amp mean here in PHP lili href https stackoverflow com questions 2297592 What does amp mean in this case lili href https stackoverflow com questions 2422907 What does the amp sign mean in PHP lili href https stackoverflow com questions 2478149 What does this signature mean amp in PHP lili href https stackoverflow com questions 3957584 How does the amp operator work in PHP function lili href https stackoverflow com questions 4705262 What does amp in amp mean in PHP lili href https stackoverflow com questions 4705838 When should use bitwise operator lili href https stackoverflow com questions 21058439 Is there ever need to use ampersand in front of an object amp li ulhrp code amp code href http secure php net manual en language references php rel noreferrer References pulli href https stackoverflow com questions 1768343 Reference assignment operator in PHP amp lili href https stackoverflow com questions 1367454 What do the amp and amp operators in PHP mean lili href https stackoverflow com questions 3177342 What do the 39 amp 39 and 39 amp 39 operators do lili href https stackoverflow com questions 2081806 What does amp mean in PHP li ulhrp code amp code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 1367454 What do the amp and amp operators in PHP mean lili href https stackoverflow com questions 3177342 What do the 39 amp 39 and 39 amp 39 operators do li ulhrp code amp amp code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2803321 39 AND 39 vs 39 amp amp 39 as operator lili href https stackoverflow com questions 2376348 Difference between amp and amp amp in PHP lili href https stackoverflow com questions 4746865 Is there any difference between and and amp amp operators in PHP lili href https stackoverflow com questions 4502092 PHP and or keywords li ulhrp code code href http secure php net manual en language operators arithmetic php rel noreferrer Arithmetic Operators pulli href https stackoverflow com questions 1934173 What does the percent sign mean in PHP lili href https stackoverflow com questions 3204919 What is the PHP operator and how do use it in real world examples li ulhrp code code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2127260 Double not operator in PHP li ulhrp code code href http secure php net manual en language operators errorcontrol php rel noreferrer Error Control Operators pulli href https stackoverflow com questions 1032161 What is the use of the symbol in PHP lili href https stackoverflow com questions 3551527 39 At 39 symbol before variable name in PHP POST lili href https stackoverflow com questions 3984864 PHP functions and lili href https stackoverflow com questions 4872340 Should use in my PHP code li ulhrp code code href http php net manual en language operators comparison php language operators comparison ternary rel noreferrer Ternary Operator pulli href https stackoverflow com questions 1080247 What are the PHP operators and called and what do they do lili href https stackoverflow com questions 1993409 operator the 39 Elvis operator 39 in PHP lili href https stackoverflow com questions 4055355 Where can read about conditionals done with and colon lili href https stackoverflow com questions 4210187 Using PHP operator li ulhrp code code href http php net manual en migration70 new features php migration70 new features null coalesce op rel noreferrer Null Coalesce Operator since PHP pulli href https stackoverflow com questions 7278835 39 null coalescing operator in PHP li ulhrp code code href http secure php net manual en control structures alternative syntax php rel noreferrer Alternative syntax for control structures href http php net manual en language operators comparison php language operators comparison ternary rel noreferrer Ternary Operator pulli href https stackoverflow com questions 2908095 What is in PHP lili href https stackoverflow com questions 4747761 What does mean in PHP li ulhrp code code href http secure php net manual en language oop5 paamayim nekudotayim php rel noreferrer Scope Resolution Operator pulli href https stackoverflow com questions 2903564 What do two colons mean in PHP lili href https stackoverflow com questions 2588298 What 39 the meaning of the PHP token name PAAMAYIM NEKUDOTAYIM lili href https stackoverflow com questions 3173501 What 39 the difference between double colon and gt arrow in PHP lili href https stackoverflow com questions 1912902 What exactly are late static bindings in PHP lili href https stackoverflow com questions 4120755 static staticFunctionName lili href https stackoverflow com questions 8734823 Unexpected PAAMAYIM NEKUDOTAYIM expecting NS Separator li ulhrp code code href http php net namespaces rel noreferrer Namespaces pulli href https stackoverflow com questions 10788400 Backslash in PHP what does it mean lili href https stackoverflow com questions 4790020 What does backslash do in PHP li ulhrp code gt code href http secure php net manual en language oop5 php rel noreferrer Classes And Objects pulli href https stackoverflow com questions 2588149 What is the gt PHP operator called and how do you say it when reading code out loud lili href https stackoverflow com questions 3037526 Where do we use the object operator gt in PHP lili href https stackoverflow com questions 3173501 What 39 the difference between double colon and gt arrow in PHP lili href https stackoverflow com questions 2316370 What does the PHP syntax var1 gt var2 mean lili href https stackoverflow com questions 4502587 What does gt mean refer to in PHP li ulhrp code gt code href http secure php net manual en language types array php rel noreferrer Arrays pulli href https stackoverflow com questions 1241819 What does gt mean in PHP lili href https stackoverflow com questions 1655336 Use of gt in PHP lili href https stackoverflow com questions 4758791 What does gt in foreach ex as gt mean li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2674920 How does the bitwise operator XOR 39 39 work lili href https stackoverflow com questions 2724936 What does mean in PHP li ulhrp code gt gt code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2790329 What does gt gt mean in PHP li ulhrp code lt lt code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 9718689 strange print behaviour in php Strange print behaviour in PHP li ulhrp code lt lt lt code href http php net manual en language types string php language types string syntax heredoc rel noreferrer Heredoc or Nowdoc pulli href https stackoverflow com questions 5539669 What does lt lt lt END mean in PHP lili href https stackoverflow com questions 1048481 PHP expression lt lt lt EOB lili href https stackoverflow com questions 3700042 In PHP what does lt lt lt represent lili href https stackoverflow com questions 2090081 Using lt lt lt CON in PHP lili href https stackoverflow com questions 2333779 What 39 this kind of syntax in PHP li ulhrp code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 2063480 The different equals li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 80646 How do the PHP equality double equals and identity triple equals comparison operators differ lili href https stackoverflow com questions 1663451 PHP and operators lili href https stackoverflow com questions 2063480 The different equals lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1117967 What does mean lili href https stackoverflow com questions 80646 How do the PHP equality double equals and identity triple equals comparison operators differ lili href https stackoverflow com questions 2063480 The different equals lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1298083 What does comparison operator in PHP mean lili href https stackoverflow com questions 1139154 Is there difference between and in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1663451 PHP and operators lili href https stackoverflow com questions 1139154 Is there difference between and in PHP lili href https stackoverflow com questions 6356826 comparing versus lili href https stackoverflow com questions 9671785 what is the difference between and What is the difference between lt gt and li ulhrp code lt gt code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 249312 PHP operator lt gt lili href https stackoverflow com questions 589391 PHP 39 lt gt operator lili href https stackoverflow com questions 9671785 What is the difference between lt gt and lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code lt gt code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators since PHP pulli href https stackoverflow com 31298778 Spaceship three way comparison operator li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2233835 What is the difference between the and operators lili href https stackoverflow com questions 13811922 What Does Using Single Pipe 39 39 In Function Argument Do li ulhrp code code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2233835 What is the difference between the and operators lili href https stackoverflow com questions 4502092 PHP and or keywords lili href https stackoverflow com questions 5666741 What exactly does mean lili href https stackoverflow com questions 12213283 The behaviour of the or operator in PHP li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 1967360 What does this operator mean here li ulhrp code code href http secure php net manual en language operators arithmetic php rel noreferrer Arithmetic Operators href http secure php net manual en language operators array php rel noreferrer Array Operators pulli href https stackoverflow com questions 2140090 operator for array in PHP li ulhrp code code and code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 542995 What is used for lili href https stackoverflow com questions 7140158 What does page in my PHP document mean li ulhrp code code and code code href http secure php net manual en language operators increment php rel noreferrer Incrementing Decrementing Operators pulli href https stackoverflow com questions 1968371 Understanding Incrementing lili href https stackoverflow com 3737177 Answer below li ulhrp code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 2202331 What is the difference between and in PHP lili href https stackoverflow com questions 1241432 To understand line of PHP li ulhrp code code href http secure php net manual en language operators string php rel noreferrer String Operators pulli href https stackoverflow com questions 1466408 Difference between period and comma when concatenating with echo versus return lili href https stackoverflow com questions 6484968 What does dot do in PHP li ulhrp code code href http php net manual en functions arguments php rel noreferrer Function Arguments pulli href https stackoverflow com questions 1466408 Difference between period and comma when concatenating with echo versus return li ulp code code href http php net manual en language variables scope php rel noreferrer Variable Declarations pulli href https stackoverflow com questions 41383218 What do commas mean in variable declaration li ulhrp code code href http php net manual en language variables variable php rel noreferrer Variable Variables pulli href https stackoverflow com questions 2715654 What does dollar dollar or double dollar mean in PHP lili href https stackoverflow com questions 4169882 what is in PHP lili href https stackoverflow com questions 4891872 function and variable li ulhrp code code href http php net manual en language operators execution php rel noreferrer Execution Operator pulli href https stackoverflow com questions 6002296 What are the backticks called li ulhrp code lt code href http php net manual en ini core php ini short open tag rel noreferrer Short Open Tags pulli href https stackoverflow com questions 1963901 What does this symbol mean in PHP lt lili href https stackoverflow com questions 2020445 What does 39 lt 39 mean in PHP lili href https stackoverflow com questions 1959256 what does mean What does lt mean li ulhrp code code href http secure php net manual en language types array php rel noreferrer Arrays short syntax since PHP pulli href https stackoverflow com 20709055 2758197 PHP arrays What is are the meaning of an empty bracket lili href https stackoverflow com questions 6933345 What is the meaning of lili href https stackoverflow com questions 2431629 Php array push vs myArray lili href https stackoverflow com questions 3908576 What does mean when reading from PHP array lili href https stackoverflow com questions 4271874 Shorthand for arrays literal code var code empty array li ulhrp code lt code href http secure php net manual en language basic syntax php rel noreferrer Opening and Closing tags pulli href https stackoverflow com questions 200640 Are PHP short tags acceptable to use li ulhrp code code href http php net manual en functions arguments php functions variable arg list rel noreferrer Argument unpacking since PHP phrp code code href http secure php net manual en migration56 new features php migration56 new features exponentiation rel noreferrer Exponentiation since PHP phrp code code href http php net manual en language basic syntax comments php rel noreferrer One line shell style comment pulli href https stackoverflow com questions 9093609 can use hashes for comments in php Can use hashes for comments in PHP li ulhr ii Let stick to PHP syntax only in URL is unrelated This is community wiki edit add as needed Browser statistics on JavaScript disabled javascript statistics cross browser pI am having hard time collecting publically available statistics on the percentage of web users that browse with JavaScript disabled pp href http developer yahoo com blogs ydn posts 2010 10 how many users have javascript disabled rel noreferrer Yahoo has published data from 2010 and href http blog strictly software com 2009 09 javascript usage browser breakdown html rel noreferrer Reid published data from 2009 picked from site he had access to ppThe findings from Yahoo were rather interesting at that time pblockquote pWe took combination of access logs and beacon data previously included in the page and filtered out all of the automated requests leaving us with set of requests we could confirm were sent by actual users This data which is completely anonymous gave us good indication of traffic patterns in several countries pAfter crunching the numbers we found consistent rate of JavaScript disabled requests hovering around of the actual visitor traffic with the highest rate being roughly percent in the United States and the lowest being roughly 25 percent in Brazil All of the other countries tested showed numbers very close to percent img src https stack imgur com fpIkl jpg alt Yahoo browser percentage with JavaScript disabled 2010 blockquotepThis is about what could find so far But since this data is getting old wonder what the percentages are today ppI also looked at href http gs statcounter com rel noreferrer Statcounter which seems to be the only company left to still openly publish browser statistics But they do not publish data about JavaScript know that href http www w3schools com browsers browsers stats asp rel noreferrer W3schools also publish stats but since the target is aimed at developers this data is extremely biased and therefore not interesting for me it has to be representative for ordinary users ppI therefore ask you to provide pullilinks to any open freely available statistics which touches this area liliYour own stats preferably from larger sites with do not target developers li ul FWIW if you re looking for data sources http opendata stackexchange com would be the right site to ask now pre codefrom itertools import imap ifiltertimestamp next line for line in imap match timestamp lines if line ortimestamp next ifilter None imap match timestamp lines code prep believe that the way to do it in Python in Python you simply use codemap code pp codemap code the function over your lines so you get lazy iterator of your transformed values then lazily get the next truthy value from it using codenext code and generator expression or codeifilter code You can choose whether to let codenext code raise codeStopIteration code error if no value is found or give it second argument for the default return value But are they lazy generators as well From the documentation it didn seem so h2What is variable scope h2pVariables have limited scope or places from which they are accessible Just because you wrote code foo bar code once emsomewhere em in your application doesn mean you can refer to code foo code from emeverywhere em else inside the application The variable code foo code has certain scope within which it is valid and only code in the same scope has access to the variable ph2How is scope defined in PHP h2pVery simple PHP has emfunction scope em That the only kind of scope separator that exists in PHP Variables inside function are only available inside that function Variables outside of functions are available anywhere outside of functions but not inside any function This means there one special scope in PHP the emglobal em scope Any variable declared outside of any function is within this global scope ph3Example h3pre code lt php foo bar function myFunc baz 42 code prep code foo code is in the emglobal em scope code baz code is in emlocal em scope inside codemyFunc code Only code inside codemyFunc code has access to code baz code Only code emoutside em codemyFunc code has access to code foo code Neither has access to the other ppre code lt php foo bar function myFunc baz 42 echo foo doesn work echo baz works echo foo worksecho baz doesn work code preh2Scope and included files h2pFile boundaries do emnot separate em scope pp ema php em ppre code lt php foo bar code prep emb php em ppre code lt phpinclude php echo foo works code prepThe same rules apply to codeinclude coded code as applies to any other code only codefunction codes separate scope For the purpose of scope you may think of including files like copy and pasting code pp emc php em ppre code lt phpfunction myFunc include php echo foo works myFunc echo foo doesn work code prepIn the above example codea php code was included inside codemyFunc code any variables inside codea php code only have local function scope Just because they emappear em to be in the global scope in codea php code doesn necessarily mean they are it actually depends on which context that code is included executed in ph2What about functions inside functions and classes h2pEvery new codefunction code declaration introduces new scope it that simple ph3 anonymous functions inside functions h3pre codefunction foo foo bar bar function no access to foo baz baz no access to baz code preh3classes h3pre code foo foo class Bar public function baz no access to foo baz baz no access to baz code preh2What is scope good for h2pDealing with scoping issues may seem annoying but stronglimited variable scope is essential to writing complex applications strong If every variable you declare would be available from everywhere else inside your application you be stepping all over your variables with no real way to track what changes what There are only so many sensible names you can give to your variables you probably want to use the variable code name code in more than one place If you could only have this unique variable name once in your app you have to resort to really complicated naming schemes to make sure your variables are unique and that you re not changing the wrong variable from the wrong piece of code ppObserve ppre codefunction foo echo bar code prepIf there was no scope what would the above function do Where does code bar code come from What state does it have Is it even initialized Do you have to check every time This is not maintainable Which brings us to ph2Crossing scope boundaries h2h3The right way passing variables in and out h3pre codefunction foo bar echo bar return 42 code prepThe variable code bar code is explicitly coming into this scope as function argument Just looking at this function it clear where the values it works with originate from It then explicitly emreturns em value The caller has the confidence to know what variables the function will work with and where its return values come from ppre code baz baz blarg foo baz code preh3Extending the scope of variables into anonymous functions h3pre code foo bar baz function use foo echo foo baz code prepThe anonymous function explicitly includes code foo code from its surrounding scope Note that this is not the same as emglobal em scope ph3The wrong way codeglobal code h3pAs said before the global scope is somewhat special and functions can explicitly import variables from it ppre code foo bar function baz global foo echo foo foo baz code prepThis function uses and modifies the global variable code foo code strongDo not do this strong sub Unless you really really really really know what you re doing and even then don sub ppAll the caller of this function sees is this ppre codebaz outputs bar unset foo baz no output WTF baz outputs baz WTF code prepThere no indication that this function has any emside effects em yet it does This very easily becomes tangled mess as some functions keep modifying emand requiring em some global state You want functions to be emstateless em acting only on their inputs and returning defined output however many times you call them ppYou should avoid using the global scope in any way as much as possible most certainly you should not be pulling variables out of the global scope into local scope There is so much to unpack there… This is most certainly not an approach would endorse h2What is variable scope h2pVariables have limited scope or places from which they are accessible Just because you wrote code foo bar code once emsomewhere em in your application doesn mean you can refer to code foo code from emeverywhere em else inside the application The variable code foo code has certain scope within which it is valid and only code in the same scope has access to the variable ph2How is scope defined in PHP h2pVery simple PHP has emfunction scope em That the only kind of scope separator that exists in PHP Variables inside function are only available inside that function Variables outside of functions are available anywhere outside of functions but not inside any function This means there one special scope in PHP the emglobal em scope Any variable declared outside of any function is within this global scope ph3Example h3pre code lt php foo bar function myFunc baz 42 code prep code foo code is in the emglobal em scope code baz code is in emlocal em scope inside codemyFunc code Only code inside codemyFunc code has access to code baz code Only code emoutside em codemyFunc code has access to code foo code Neither has access to the other ppre code lt php foo bar function myFunc baz 42 echo foo doesn work echo baz works echo foo worksecho baz doesn work code preh2Scope and included files h2pFile boundaries do emnot separate em scope pp ema php em ppre code lt php foo bar code prep emb php em ppre code lt phpinclude php echo foo works code prepThe same rules apply to codeinclude coded code as applies to any other code only codefunction codes separate scope For the purpose of scope you may think of including files like copy and pasting code pp emc php em ppre code lt phpfunction myFunc include php echo foo works myFunc echo foo doesn work code prepIn the above example codea php code was included inside codemyFunc code any variables inside codea php code only have local function scope Just because they emappear em to be in the global scope in codea php code doesn necessarily mean they are it actually depends on which context that code is included executed in ph2What about functions inside functions and classes h2pEvery new codefunction code declaration introduces new scope it that simple ph3 anonymous functions inside functions h3pre codefunction foo foo bar bar function no access to foo baz baz no access to baz code preh3classes h3pre code foo foo class Bar public function baz no access to foo baz baz no access to baz code preh2What is scope good for h2pDealing with scoping issues may seem annoying but stronglimited variable scope is essential to writing complex applications strong If every variable you declare would be available from everywhere else inside your application you be stepping all over your variables with no real way to track what changes what There are only so many sensible names you can give to your variables you probably want to use the variable code name code in more than one place If you could only have this unique variable name once in your app you have to resort to really complicated naming schemes to make sure your variables are unique and that you re not changing the wrong variable from the wrong piece of code ppObserve ppre codefunction foo echo bar code prepIf there was no scope what would the above function do Where does code bar code come from What state does it have Is it even initialized Do you have to check every time This is not maintainable Which brings us to ph2Crossing scope boundaries h2h3The right way passing variables in and out h3pre codefunction foo bar echo bar return 42 code prepThe variable code bar code is explicitly coming into this scope as function argument Just looking at this function it clear where the values it works with originate from It then explicitly emreturns em value The caller has the confidence to know what variables the function will work with and where its return values come from ppre code baz baz blarg foo baz code preh3Extending the scope of variables into anonymous functions h3pre code foo bar baz function use foo echo foo baz code prepThe anonymous function explicitly includes code foo code from its surrounding scope Note that this is not the same as emglobal em scope ph3The wrong way codeglobal code h3pAs said before the global scope is somewhat special and functions can explicitly import variables from it ppre code foo bar function baz global foo echo foo foo baz code prepThis function uses and modifies the global variable code foo code strongDo not do this strong sub Unless you really really really really know what you re doing and even then don sub ppAll the caller of this function sees is this ppre codebaz outputs bar unset foo baz no output WTF baz outputs baz WTF code prepThere no indication that this function has any emside effects em yet it does This very easily becomes tangled mess as some functions keep modifying emand requiring em some global state You want functions to be emstateless em acting only on their inputs and returning defined output however many times you call them ppYou should avoid using the global scope in any way as much as possible most certainly you should not be pulling variables out of the global scope into local scope Nah the behaviour of once has nothing to do with scope so is not apropos here IMO pA long liner that works with any number of items ppre codeecho join and array filter array merge array join array slice array array slice array strlen code prepOr if you emreally em prefer the verboseness ppre code last array slice array first join array slice array both array filter array merge array first last strlen echo join and both code prepThe point is that this slicing merging filtering and joining handles emall em cases including and items correctly without extra codeif else code statements And it happens to be collapsible into one liner Five years later and do have to admit that would probably downvote my own answer still proud of the fact that it single expression but hum yeah pre codevar longest arr sort function return length length code prepProbably more efficient but only available since href https developer mozilla org en JavaScript Reference Global Objects Array Reduce rel noreferrer Javascript ECMAScript and not available by default in older browsers ppre codevar longest arr reduce function return length gt length code pre That’s different question and you could still use reduce with callback function that returns an array pre codevar longest arr sort function return length length code prepProbably more efficient but only available since href https developer mozilla org en JavaScript Reference Global Objects Array Reduce rel noreferrer Javascript ECMAScript and not available by default in older browsers ppre codevar longest arr reduce function return length gt length code pre It very different requirement to find the longest string any of the longest strings singular or the longest strings plural For the latter you can use redu,,, "e and reduce to an array concatenating to the array if the current string length equals the accumulated strings length new array if it longer or the existing array if it shorter the implementation is bit long for comment Works without an external library and single iteration Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this The OP clearly states that this is suboptimal situation that currently not much can be done about totally agree that it can be absolutely unrealistic to reimplement and thereby possibly completely redesign an entire API when there currently no problem besides few extra log messages management point of view obviously This is legitimate question no need to be so harsh Silence Declaration should be compatible warnings in PHP php pAfter upgrade to PHP the logs almost choked on this kind of errors pp codePHP Warning Declaration of Example do should be compatible with ParentOfExample do null in Example php on line 22548 code ppHow do silence these and only these errors in PHP pulli pBefore PHP they were codeE STRICT code type of warnings href https stackoverflow com questions 1248952 php disable strict standards error which could be easily dealt with Now they re just plain old warnings Since strongdo strong want to know about other warnings can just turn off all warnings altogether lili pI don have mental capacity to rewrite these legacy APIs not even mentioning all the software that uses them Guess what nobody going to pay for that too Neither develop them in the first place so not the one for blame Unit tests Not in the fashion ten years ago lili pI would like to avoid href https stackoverflow com 27329541 93540 any trickery with codefunc get args code and similar as much as possible lili pNot really want to downgrade to PHP lili pI still want to know about other errors and warnings li ulpIs there clean and nice way to accomplish this To get to an answer here custom error handler should allow you the freedom to selectively suppress anything you want though it would arguably not be as nice solution as just setting specific error reporting flag""",great answer guru curl good answer nice answer popular question nice answer good answer nice answer nice answer good answer json nice answer famous question nice answer enlighten guru nice answer guru variable popular question nice answer nice answer nice answer enlighten nice answer nice answer enlighten guru nice answer enlighten good answer nice answer nice answer good answer nice answer http nice answer enlighten callback nice answer enlighten good answer nice answer enlighten nice answer enlighten good answer nice answer nice answer necromancer nice answer enlighten nice answer great answer good answer good answer nice answer good answer nice answer nice answer enlighten good answer wordpress nice answer enlighten nice answer nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer enlighten nice answer good answer popular question revival nice answer rest nice answer enlighten nice answer nice answer nice answer enlighten nice answer great answer nice answer enlighten nice answer enlighten nice answer nice answer good answer enlighten populist guru pdo guru redirect yearle nice answer nice answer good answer announcer good answer good answer nice answer enlighten inheritance nice answer enlighten nice answer enlighten good answer good answer nice answer nice answer enlighten nice answer nice answer enlighten nice answer nice answer enlighten nice answer nice answer enlighten good answer guru great answer famous question nice answer guru nice answer enlighten nice answer nice answer date enlighten nice answer caucus good answer constituent good answer nice answer nice answer enlighten nice answer nice answer enlighten good answer nice answer enlighten nice answer nice answer good answer good answer revival nice answer enlighten nice answer enlighten guru nice answer enlighten nice answer guru enlighten great answer nice answer good answer census authentication nice answer nice answer enlighten nice answer good answer good answer good answer nice answer enlighten nice answer nice answer stellar question good question great answer populist nice answer enlighten great answer nice answer enlighten nice answer good answer famous question nice answer nice answer enlighten nice answer enlighten announcer popular question nice answer good answer nice answer good answer nice answer nice answer https good answer guru nice answer nice answer nice answer enlighten nice answer enlighten nice answer nice answer nice answer nice answer enlighten good answer guru nice answer great question favorite question nice answer nice question nice answer announcer cookie announcer great answer nice answer python enlighten guru announcer favorite question good answer syntax caucus popular question nice answer constituent yearle announcer great answer nice answer guru good answer nice answer announcer guru announcer guru great question nice answer announcer good answer nice answer nice answer enlighten good answer nice answer nice answer guru nice answer enlighten great answer nice answer enlighten nice answer guru angularjs announcer documentation user nice answer enlighten announcer nice answer enlighten nice answer object good answer guru nice answer good answer guru nice answer enlighten good question nice answer enlighten good answer sheriff nice answer good answer good answer nice answer enlighten good answer good answer good answer macos popular question nice answer nice answer nice answer enlighten announcer csv good answer nice answer enlighten good answer guru nice answer enlighten nice answer enlighten nice answer enlighten good answer nice answer good answer good answer nice answer nice answer nice answer good answer populist great answer good answer nice answer good answer good answer caucus nice answer enlighten nice answer constituent great answer guru good answer namespace good answer guru nice answer nice answer good answer nice answer nice answer good answer sql guru announcer nice answer enlighten good answer guru announcer guru announcer nice answer enlighten nice answer nice answer guru good answer nice answer enlighten good answer nice answer nice answer enlighten guru nice answer enlighten good answer regex nice answer announcer announcer nice answer nice answer nice answer enlighten nice answer nice answer enlighten good answer nice answer enlighten guru yearle good answer nice answer enlighten good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer good answer nice answer nice answer good answer nice answer enlighten announcer good answer notable question web python nice answer enlighten guru nice answer enlighten enlighten nice answer announcer guru nice answer enlighten great answer nice answer nice answer nice answer enlighten nice answer nice answer enlighten return predicate sequence python python python itertool surface duplicate ofa href https stackoverflow question element sequence match predicate element sequence match predicate abut ppi predicate function function argument someprocesse argument return theprocesse succeed list iterable toiterate element list iterable return theemreturn -PRON- predicate function stop execute predicate subsequent element ppi hope ina href https docs python org library itertool html nofollow noreferrer itertool thatwould hardwire return element ofthe original item pass predicate thereturne ppi solution show overly heavy code wise mwanting elegant require codefirstof codeutility function code ppnote read entire file list line content memory otherprocesse ppi python switch python thistime avoid syntax deprecate missingin python codeimport redef match timestamp line timestamp search timestamp timestamp line return group return nonedef firstof pre item result pre item continue evaluate item short circuit item item tmp pre item tmp return tmp return nonelog file tmp myfile open log file line readline line line print line line rstrip timestamp firstof match timestamp line print timestamp timestamp code prepsuppose code tmp myfile code codesome number line heresome number line heresome number line heretimestamp number line heresome number line heresome number line code preprunne program yeild codeline number line hereline number line hereline number line hereline timestamp number line hereline number line hereline number line timestamp code codefrom itertool import imap line line imap match timestamp line line ortimestamp ifilter imap match timestamp line code prep python python simply codemap code codemap code function line lazy iterator transform value lazily truthy codenext code generator expression codeifilter code choose codenext code raise code error argument default return isinstance undefined class python isinstance passume class codemyclass code define function codefoo code argument codea code codenone code string object codemyclass code ppmy question codemyclass code define python session check type argument codea code fashion similar codeisinstance code codenameerror code ppnote duck type deliberately limit function ppi python update option forward compatible solution highly appreciate pi suggest approach polyfill class code refer simply codetry foo import bar load native classexcept importerror class bar pass implement part code prepyou module codefrom mymodule import bar code need code codebar code define natively ppeven redefine class prefer handle handle codeimporterror code handle situation codeimport code class error occur define class set codeclass exist false code flag reference symbol php php operator symbol php collection question syntax php community wiki invite participate maintain list hard question operator syntax token main idea link exist question stack overflow easy reference copy content php manual note january stack overflow href https meta stackexchange question search engine stack exchange support special character surround search term quote href https stackoverflow search code php code point ask question syntax link page href http php net manual index php noreferrer php manual link question answer question encourage upvote answer list mean substitute provide list token list href http secure php net manual token php noreferrer list parser token phrp code amp code href http secure php net manual language operator bitwise php noreferrer bitwise operator href http secure php net manual language reference php noreferrer reference pulli href https stackoverflow question start php function ampersand lili href https stackoverflow question understanding php amp ampersand bitwise operator lili href https stackoverflow question php amp operator lili href https stackoverflow question difference amp amp amp php lili href https stackoverflow question amp php lili href https stackoverflow question amp case lili href https stackoverflow question amp sign php lili href https stackoverflow question signature amp php lili href https stackoverflow question amp operator work php function lili href https stackoverflow question amp amp php lili href https stackoverflow question bitwise operator lili href https stackoverflow question ampersand object amp li ulhrp code amp code href http secure php net manual language reference php noreferrer reference pulli href https stackoverflow question reference assignment operator php amp lili href https stackoverflow question amp amp operator php lili href https stackoverflow question amp amp operator lili href https stackoverflow question amp php li ulhrp code amp code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question amp amp operator php lili href https stackoverflow question amp amp operator li ulhrp code amp amp code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question amp amp operator lili href https stackoverflow question difference amp amp amp php lili href https stackoverflow question difference amp amp operator php lili href https stackoverflow question php keyword li ulhrp code code href http secure php net manual language operator arithmetic php noreferrer arithmetic operator pulli href https stackoverflow question percent sign php lili href https stackoverflow question php operator real world example li ulhrp code code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question double operator php li ulhrp code code href http secure php net manual language operator errorcontrol php noreferrer error control operator pulli href https stackoverflow question symbol php lili href https stackoverflow question symbol variable php post lili href https stackoverflow question php function lili href https stackoverflow question php code li ulhrp code code href http php net manual language operator comparison php language operator comparison ternary noreferrer ternary operator pulli href https stackoverflow question php operator call lili href https stackoverflow question operator elvi operator php lili href https stackoverflow question read conditional colon lili href https stackoverflow question php operator li ulhrp code code href http php net manual feature php feature null coalesce noreferrer null coalesce operator php pulli href https stackoverflow question null coalesce operator php li ulhrp code code href http secure php net manual control structure alternative syntax php noreferrer alternative syntax control structure href http php net manual language operator comparison php language operator comparison ternary noreferrer ternary operator pulli href https stackoverflow question php lili href https stackoverflow question php li ulhrp code code href http secure php net manual language paamayim nekudotayim php noreferrer scope resolution operator pulli href https stackoverflow question colon php lili href https stackoverflow question meaning php token paamayim nekudotayim lili href https stackoverflow question difference double colon arrow php lili href https stackoverflow question late static binding php lili href https stackoverflow question static lili href https stackoverflow question unexpected paamayim nekudotayim expect separator li ulhrp code code href http php net namespace noreferrer namespace pulli href https stackoverflow question backslash php lili href https stackoverflow question backslash php li ulhrp code code href http secure php net manual language php noreferrer class object pulli href https stackoverflow question php operator call read code loud lili href https stackoverflow question object operator php lili href https stackoverflow question difference double colon arrow php lili href https stackoverflow question php syntax lili href https stackoverflow question refer php li ulhrp code code href http secure php net manual language type array php noreferrer arrays pulli href https stackoverflow question php lili href https stackoverflow question php lili href https stackoverflow question foreach li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question bitwise operator xor work lili href https stackoverflow question php li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question php li ulhrp code lt lt code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question strange print behaviour php strange print behaviour php li ulhrp code lt lt lt code href http php net manual language type string php language type string syntax heredoc noreferrer heredoc nowdoc pulli href https stackoverflow question lt lt lt end php lili href https stackoverflow question php expression lt lt lt eob lili href https stackoverflow question php lt lt lt represent lili href https stackoverflow question lt lt lt php lili href https stackoverflow question kind syntax php li ulhrp code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question equal li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php equality double equal identity triple equal comparison operator differ lili href https stackoverflow question php operator lili href https stackoverflow question equal lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question lili href https stackoverflow question php equality double equal identity triple equal comparison operator differ lili href https stackoverflow question equal lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question comparison operator php lili href https stackoverflow question difference php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php operator lili href https stackoverflow question difference php lili href https stackoverflow question compare lili href https stackoverflow question difference difference lt li ulhrp code lt code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php operator lt lili href https stackoverflow question php lt operator lili href https stackoverflow question difference lt lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code lt code href http secure php net manual language operator comparison php noreferrer comparison operator php pulli href https stackoverflow spaceship comparison operator li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question difference operator lili href https stackoverflow question single pipe function argument li ulhrp code code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question difference operator lili href https stackoverflow question php keyword lili href https stackoverflow question lili href https stackoverflow question behaviour operator php li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question operator li ulhrp code code href http secure php net manual language operator arithmetic php noreferrer arithmetic operator href http secure php net manual language operator array php noreferrer array operator pulli href https stackoverflow question operator array php li ulhrp code code code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question lili href https stackoverflow question page php document li ulhrp code code code code href http secure php net manual language operator increment php noreferrer incremente decremente operator pulli href https stackoverflow question understanding incremente lili href https stackoverflow answer li ulhrp code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question difference php lili href https stackoverflow question understand line php li ulhrp code code href http secure php net manual language operator string php noreferrer string operator pulli href https stackoverflow question difference period comma concatenate echo return lili href https stackoverflow question dot php li ulhrp code code href http php net manual function argument php noreferrer function argument pulli href https stackoverflow question difference period comma concatenate echo return li ulp code code href http php net manual language variable scope php noreferrer variable declaration pulli href https stackoverflow question commas variable declaration li ulhrp code code href http php net manual language variable variable php noreferrer variable variable pulli href https stackoverflow question dollar dollar double dollar php lili href https stackoverflow question php lili href https stackoverflow question function variable li ulhrp code code href http php net manual language operator execution php noreferrer execution operator pulli href https stackoverflow question backtick call li ulhrp code lt code href http php net manual core php short open tag noreferrer short open tag pulli href https stackoverflow question symbol php lt lili href https stackoverflow question lt php lili href https stackoverflow question lt li ulhrp code code href http secure php net manual language type array php noreferrer arrays short syntax php pulli href https stackoverflow php arrays meaning bracket lili href https stackoverflow question meaning lili href https stackoverflow question php array push myarray lili href https stackoverflow question read php array lili href https stackoverflow question shorthand arrays literal code var code array li ulhrp code lt code href http secure php net manual language basic syntax php noreferrer opening closing tag pulli href https stackoverflow question php short tag acceptable li ulhrp code code href http php net manual function argument php function variable arg list noreferrer argument unpack php phrp code code href http secure php net manual feature php feature exponentiation noreferrer exponentiation php phrp code code href http php net manual language basic syntax comment php noreferrer line shell style comment pulli href https stackoverflow question hash comment php hash comment php li ulhr stick php syntax url unrelated community wiki edit add need browser statistic javascript disable javascript statistic cross browser pi hard time collect publically statistic percentage web user browse javascript disable href http developer yahoo blog ydn post user javascript disable noreferrer yahoo publish datum href http blog strictly software javascript usage browser breakdown html noreferrer reid publish datum pick site access ppthe finding yahoo interesting time pblockquote pwe combination access log beacon datum previously include page filter automate request leave set request confirm actual user datum completely anonymous give good indication traffic pattern country pafter crunch number consistent rate javascript disable request hover actual visitor traffic high rate roughly percent unite state low roughly percent brazil country test show number close percent img src https stack imgur fpikl jpg alt yahoo browser percentage javascript disable blockquotepthis datum percentage today ppi look href http statcounter noreferrer statcounter company leave openly publish browser statistic publish datum javascript href http browser browser stat asp noreferrer publish stat target aim developer datum extremely bias interesting representative ordinary user ppi provide pullilink open freely statistic touch area stat preferably large site target developer li fwiw datum source http opendata stackexchange site codefrom itertool import imap line line imap match timestamp line line ortimestamp ifilter imap match timestamp line code prep python python simply codemap code codemap code function line lazy iterator transform value lazily truthy codenext code generator expression codeifilter code choose codenext code raise code error argument default return lazy generator documentation variable scope limit scope place accessible write code foo bar code emsomewhere -PRON- application refer code foo code emeverywhere -PRON- application variable code foo code scope valid code scope access variable scope define php simple php emfunction scope -PRON- kind scope separator exist php variable function function variable function function function mean special scope php emglobal -PRON- scope variable declare function global scope code lt php foo bar function myfunc baz code prep code foo code emglobal -PRON- scope code baz code emlocal -PRON- scope codemyfunc code code codemyfunc code access code baz code code emoutside -PRON- codemyfunc code access code foo code access code lt php foo bar function myfunc baz echo foo work echo baz work echo foo worksecho baz work code include file boundary emnot separate -PRON- scope ema php -PRON- code lt php foo bar code prep emb php -PRON- code lt phpinclude php echo foo work code prepthe rule apply codeinclude code code apply code codefunction code separate scope purpose scope include file copy paste code php -PRON- code lt phpfunction myfunc include php echo foo work myfunc echo foo work code prepin codea php code include codemyfunc code variable codea php code local function scope emappear -PRON- global scope codea php code necessarily depend context code include execute function function class codefunction code declaration introduce scope simple anonymous function function codefunction foo foo bar bar function access foo baz baz access baz code code foo foo class bar public function baz access foo baz baz access baz code scope good scope issue annoying stronglimite variable scope essential write complex application strong variable declare application step variable real track name variable variable code code place unique variable app resort complicate name scheme make variable unique change wrong variable wrong piece code ppobserve codefunction foo echo bar code prepif scope function code bar code state initialize check time maintainable bring scope boundary pass variable codefunction foo bar echo bar return code prepthe variable code bar code explicitly come scope function argument function clear value work originate explicitly emreturn -PRON- caller confidence variable function work return value code baz baz blarg foo baz code scope variable anonymous function code foo bar baz function foo echo foo baz code prepthe anonymous function explicitly include code foo code surround scope note emglobal -PRON- scope wrong codeglobal code global scope special function explicitly import variable code foo bar function baz global foo echo foo foo baz code prepthis function modifie global variable code foo code strongdo strong ppall caller function see codebaz output bar unset foo baz output wtf baz output baz wtf code prepthere indication function emside effect -PRON- easily tangle mess function modify emand require -PRON- global state function emstateless -PRON- act input return define output time ppyou avoid global scope pull variable global scope local scope unpack approach endorse variable scope limit scope place accessible write code foo bar code emsomewhere -PRON- application refer code foo code emeverywhere -PRON- application variable code foo code scope valid code scope access variable scope define php simple php emfunction scope -PRON- kind scope separator exist php variable function function variable function function function mean special scope php emglobal -PRON- scope variable declare function global scope code lt php foo bar function myfunc baz code prep code foo code emglobal -PRON- scope code baz code emlocal -PRON- scope codemyfunc code code codemyfunc code access code baz code code emoutside -PRON- codemyfunc code access code foo code access code lt php foo bar function myfunc baz echo foo work echo baz work echo foo worksecho baz work code include file boundary emnot separate -PRON- scope ema php -PRON- code lt php foo bar code prep emb php -PRON- code lt phpinclude php echo foo work code prepthe rule apply codeinclude code code apply code codefunction code separate scope purpose scope include file copy paste code php -PRON- code lt phpfunction myfunc include php echo foo work myfunc echo foo work code prepin codea php code include codemyfunc code variable codea php code local function scope emappear -PRON- global scope codea php code necessarily depend context code include execute function function class codefunction code declaration introduce scope simple anonymous function function codefunction foo foo bar bar function access foo baz baz access baz code code foo foo class bar public function baz access foo baz baz access baz code scope good scope issue annoying stronglimite variable scope essential write complex application strong variable declare application step variable real track name variable variable code code place unique variable app resort complicate name scheme make variable unique change wrong variable wrong piece code ppobserve codefunction foo echo bar code prepif scope function code bar code state initialize check time maintainable bring scope boundary pass variable codefunction foo bar echo bar return code prepthe variable code bar code explicitly come scope function argument function clear value work originate explicitly emreturn -PRON- caller confidence variable function work return value code baz baz blarg foo baz code scope variable anonymous function code foo bar baz function foo echo foo baz code prepthe anonymous function explicitly include code foo code surround scope note emglobal -PRON- scope wrong codeglobal code global scope special function explicitly import variable code foo bar function baz global foo echo foo foo baz code prepthis function modifie global variable code foo code strongdo strong ppall caller function see codebaz output bar unset foo baz output wtf baz output baz wtf code prepthere indication function emside effect -PRON- easily tangle mess function modify emand require -PRON- global state function emstateless -PRON- act input return define output time ppyou avoid global scope pull variable global scope local scope nah behaviour scope apropos pa long liner work number item codeecho join array filter array merge array join array slice array array slice array strlen code prepor emreally -PRON- prefer verboseness code array slice array join array slice array array filter array merge array strlen echo join code prepthe point slice merge filter join handle emall -PRON- case include item correctly extra codeif code statement collapsible liner year admit downvote answer proud fact single expression hum yeah codevar long arr sort function return length length code prepprobably efficient href https developer mozilla org javascript reference global object array reduce noreferrer javascript ecmascript default old browser codevar long arr reduce function return length length code question reduce callback function return array codevar long arr sort function return length length code prepprobably efficient href https developer mozilla org javascript reference global object array reduce noreferrer javascript ecmascript default old browser codevar long arr reduce function return length length code requirement long string long string singular long string plural reduce reduce array concatenate array current string length equal accumulate string length array longer exist array short implementation bit long comment work external library single iteration silence declaration compatible warning php php pafter upgrade php log choke kind error codephp warning declaration compatible parentofexample null php line code pphow silence error php pulli pbefore php strict code type warning href https stackoverflow question php disable strict standard error easily deal plain warning strongdo strong warning turn warning altogether lili pi mental capacity rewrite legacy api mention software guess pay develop place blame unit test fashion year ago lili pi avoid href https stackoverflow trickery codefunc arg code similar lili pnot downgrade php lili pi error warning li ulpis clean nice accomplish state suboptimal situation totally agree absolutely unrealistic reimplement possibly completely redesign entire api problem extra log message management point view legitimate question harsh silence declaration compatible warning php php pafter upgrade php log choke kind error codephp warning declaration compatible parentofexample null php line code pphow silence error php pulli pbefore php strict code type warning href https stackoverflow question php disable strict standard error easily deal plain warning strongdo strong warning turn warning altogether lili pi mental capacity rewrite legacy api mention software guess pay develop place blame unit test fashion year ago lili pi avoid href https stackoverflow trickery codefunc arg code similar lili pnot downgrade php lili pi error warning li ulpis clean nice accomplish answer custom error handler freedom selectively suppress arguably nice solution set specific error report flag,1,NULL,Find first non None returned value from predicate over sequence in Python python python itertools pOn the surface this might seem to be duplicate ofa href https stackoverflow com questions 8534256 find first element in sequence that matches predicate find first element in sequence that matches predicate abut it is not ppI have predicate function function of one argument that does someprocessing on the argument and returns non None value when theprocessing is said to succeed want to use that functionefficiently on list or even some iterable but do not want toiterate over all elements of the list or iterable but just return theemreturn value em of the predicate function when that value is not None and then stop executing the predicate on subsequent elements ppI was hoping there was something ina href https docs python org library itertools html rel nofollow noreferrer itertools thatwould do this but they all seem hardwired to return the element ofthe original items passed to the predicate and instead want thereturned value ppI have solution shown below but is overly heavy code wise mwanting something more elegant and that does not require the codefirstof codeutility function coded there ppNote Reading the entire file into list of lines is actuallynecessary here since need the full contents in memory for otherprocessing ppI using Python here do not want to switch to Python at thistime but will want to avoid using syntax that is deprecated or missingin Python ppre codeimport redef match timestamp line timestamp re re search TIMESTAMP timestamp re line if return group return Nonedef firstof pred items Find result from the first call to pred of items Do not continue to evaluate items short circuiting for item in items tmp pred item if tmp return tmp return Nonelog file tmp myfile with open log file as lines readlines for line in lines print line line rstrip timestamp firstof match timestamp lines print FOUND TIMESTAMP timestamp code prepSuppose have code tmp myfile code contain ppre codesome number of lines heresome number of lines heresome number of lines hereTIMESTAMP 2017 05 09 21 24 52some number of lines heresome number of lines heresome number of lines here code prepRunning the above program on it yeilds ppre codeline some number of lines hereline some number of lines hereline some number of lines hereline TIMESTAMP 2017 05 09 21 24 52line some number of lines hereline some number of lines hereline some number of lines here FOUND TIMESTAMP 2017 05 09 21 24 52 code pre pre codefrom itertools import imap ifiltertimestamp next line for line in imap match timestamp lines if line ortimestamp next ifilter None imap match timestamp lines code prep believe that the way to do it in Python in Python you simply use codemap code pp codemap code the function over your lines so you get lazy iterator of your transformed values then lazily get the next truthy value from it using codenext code and generator expression or codeifilter code You can choose whether to let codenext code raise codeStopIteration code error if no value is found or give it second argument for the default return value Use isinstance with an undefined class python isinstance pAssume that class codeMyClass code is sometimes but not always defined have function codefoo None code in which argument codea code can be codeNone code string or an object of codeMyClass code ppMy question is If codeMyClass code is not defined in my Python session how can check the type of argument codea code in fashion similar to codeisinstance code without getting codeNameError code ppNote on duck typing am deliberately limiting the function ppI using Python and Updating is not an option forward compatible solution especially for is highly appreciated pI would suggest different approach polyfill the class so all code that wants to refer to it can simply do so ppre codetry from foo import Bar load the native classexcept ImportError class Bar pass implement necessary parts here code prepYou can put this into your own module and then codefrom mymodule import Bar code everywhere it needed That allows all your code to use codeBar code regardless of whether it defined natively or not ppEven if redefining the class isn your preferred way to handle this handling the codeImportError code is still the way to handle this situation since you will have to codeimport code the class either way and that where the error will occur Instead of defining the class you may instead want to set codeclass exists False code flag or something,,,, 20171,129061,1153912,NULL,NULL,NULL,0,NULL,NULL 20172,59875,49561,Custodian Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Explainer Popular Question Popular Question Popular Question Good Question Nice Question Documentation User Yearling Benefactor Nice Question Famous Question Enthusiast Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 20173,427318,289735,Popular Question,NULL,NULL,0,NULL,NULL 20174,8014,663843,Good Question Nice Answer Enlightened Necromancer Yearling Nice Answer Necromancer Nice Answer Yearling Necromancer Nice Question Good Answer Popular Question Necromancer Nice Answer Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 20175,244024,522210,Popular Question,NULL,NULL,0,NULL,NULL 20176,224721,1291127,NULL,NULL,NULL,0,NULL,NULL 20177,33480,824414,NULL,NULL,NULL,0,NULL,NULL 20178,163506,735152,Nice Answer Enlightened html Popular Question Notable Question Yearling Nice Answer Enlightened Popular Question Caucus Guru Yearling Popular Question Tumbleweed Nice Answer Enlightened Caucus Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 20179,82541,545891,NULL,NULL,NULL,0,NULL,NULL 20180,1026316,1250587,NULL,NULL,NULL,0,NULL,NULL 20181,222955,604903,Quorum,NULL,NULL,0,NULL,NULL 20182,55782,411236,NULL,NULL,NULL,0,NULL,NULL 20183,52980,926746,NULL,NULL,NULL,0,NULL,NULL 20184,200213,512580,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20185,516797,924761,NULL,NULL,NULL,0,NULL,NULL 20186,130760,110349,NULL,NULL,NULL,0,NULL,NULL 20187,288626,1042525,Yearling Necromancer Good Question,NULL,NULL,0,NULL,NULL 20188,219499,1507020,NULL,NULL,NULL,0,NULL,NULL 20189,3682786,274794,NULL,NULL,NULL,0,NULL,NULL 20190,422833,274794,NULL,NULL,NULL,0,NULL,NULL 20191,163392,45436,NULL,NULL,NULL,0,NULL,NULL 20192,1200485,206552,Popular Question,NULL,NULL,0,NULL,NULL 20193,37954,206552,Popular Question,NULL,NULL,0,NULL,NULL 20194,368999,159583,Revival,NULL,NULL,0,NULL,NULL 20195,95516,485218,Popular Question Yearling Nice Answer Promoter Benefactor,NULL,NULL,0,NULL,NULL 20196,601061,1278316,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 20197,398457,1153454,NULL,NULL,NULL,0,NULL,NULL 20198,27384,114160,NULL,NULL,NULL,0,NULL,NULL 20199,546886,1282793,NULL,NULL,NULL,0,NULL,NULL 20200,598397,1040575,NULL,NULL,NULL,0,NULL,NULL 20201,1246057,750372,NULL,NULL,NULL,0,NULL,NULL 20202,206716,883781,NULL,NULL,NULL,0,NULL,NULL 20203,195024,777368,Notable Question Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 20204,128339,31979,Yearling Caucus,NULL,NULL,0,NULL,NULL 20205,1164301,994879,NULL,NULL,NULL,0,NULL,NULL 20206,302357,919583,NULL,NULL,NULL,0,NULL,NULL 20207,722617,1478754,Popular Question,NULL,NULL,0,NULL,NULL 20208,24066,1346588,NULL,NULL,NULL,0,NULL,NULL 20209,14183,1400050,NULL,NULL,NULL,0,NULL,NULL 20210,522163,517117,NULL,NULL,NULL,0,NULL,NULL 20211,85195,357986,Nice Answer Enlightened Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 20212,741476,1326957,NULL,NULL,NULL,0,NULL,NULL 20213,626756,154586,Good Question Famous Question Notable Question Notable Question Notable Question Famous Question Notable Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 20214,7801880,122935,Yearling Good Question Good Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20215,167687,122935,Yearling Good Question Good Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20216,122293,216334,Yearling Nice Question Popular Question Nice Answer Custodian Nice Question Yearling Notable Question Good Answer Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 20217,329300,886265,NULL,NULL,NULL,0,NULL,NULL 20218,241485,446135,NULL,NULL,NULL,0,NULL,NULL 20219,180905,452902,Good Question Revival Famous Question Nice Answer Yearling Famous Question Nice Question Guru Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 20220,114929,1312625,NULL,NULL,NULL,0,NULL,NULL 20221,1493857,1172629,NULL,NULL,NULL,0,NULL,NULL 20222,269035,146429,NULL,NULL,NULL,0,NULL,NULL 20223,2209171,475709,Necromancer Notable Question Good Question Famous Question Nice Answer Necromancer Notable Question Famous Question Nice Answer Necromancer Excavator Yearling Popular Question Nice Answer Caucus Constituent Nice Answer Notable Question Nice Question Popular Question Necromancer Caucus Nice Answer Yearling Popular Question Announcer Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 20224,396980,413736,Popular Question Popular Question Caucus Documentation User Popular Question,NULL,NULL,0,NULL,NULL 20225,1718475,496455,Teacher,NULL,NULL,0,NULL,NULL 20226,351510,1148755,Yearling Famous Question Necromancer Good Answer Custodian Yearling Good Answer Nice Question Nice Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 20227,617013,119561,Popular Question Popular Question Guru Good Answer Necromancer Yearling Guru Famous Question Popular Question Pundit Notable Question .net Notable Question Yearling Necromancer Popular Question Nice Question Good Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 20228,886160,459159,Yearling Enlightened Good Answer Yearling Necromancer Necromancer Popular Question Yearling Nice Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 20229,192606,1527717,NULL,NULL,NULL,0,NULL,NULL 20230,22147,1436345,NULL,NULL,NULL,0,NULL,NULL 20231,1508303,1137369,Notable Question,NULL,NULL,0,NULL,NULL 20232,37947,59044,Nice Question Yearling Famous Question Nice Answer Necromancer Good Question Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 20233,86123,384932,Notable Question Nice Question Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 20234,170497,148664,Revival Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 20235,7663,16997,Popular Question Census Nice Answer,NULL,NULL,0,NULL,NULL 20236,290827,60442,NULL,NULL,NULL,0,NULL,NULL 20237,91826,906091,NULL,NULL,NULL,0,NULL,NULL 20238,3343198,807382,Popular Question,NULL,NULL,0,NULL,NULL 20239,343301,578886,NULL,NULL,NULL,0,NULL,NULL 20240,256013,1481096,NULL,NULL,NULL,0,NULL,NULL 20241,114288,152309,NULL,NULL,NULL,0,NULL,NULL 20242,789631,1563599,Scholar Supporter,NULL,NULL,0,NULL,NULL 20243,186416,845624,NULL,NULL,NULL,0,NULL,NULL 20244,133095,237260,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 20245,352997,306809,Good Question,NULL,NULL,0,NULL,NULL 20246,1509637,383698,Popular Question,NULL,NULL,0,NULL,NULL 20247,69186,801114,NULL,NULL,NULL,0,NULL,NULL 20248,624337,284947,Nice Answer Yearling Nice Answer Notable Question Nice Answer Nice Answer Enlightened Good Answer Guru Yearling Good Answer Nice Answer Tag Editor Good Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 20249,203961,293515,Commentator,NULL,NULL,0,NULL,NULL 20250,431166,577334,Yearling java Nice Answer Notable Question Nice Question Nice Answer Enlightened Popular Question Yearling Guru Popular Question Famous Question Notable Question Nice Answer Yearling Notable Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 20251,34270,1406361,NULL,NULL,NULL,0,NULL,NULL 20252,101954,1413258,NULL,NULL,NULL,0,NULL,NULL 20253,232512,1345058,Yearling Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 20254,192382,720133,Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Caucus Nice Answer Enlightened Popular Question Popular Question ios Necromancer Nice Answer Enlightened Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Notable Question Nice Answer Nice Answer Caucus Popular Question Notable Question Nice Answer Enlightened swift Nice Answer Custodian Good Answer Census Notable Question Popular Question Caucus Inquisitive Popular Question Yearling Notable Question Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20255,1559351,873279,Commentator Informed Autobiographer Student Yearling Excavator Caucus Necromancer Civic Duty Nice Answer Critic Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 20256,383779,1037328,Supporter,NULL,NULL,0,NULL,NULL 20257,361185,901355,Yearling,NULL,NULL,0,NULL,NULL 20258,8675075,512786,NULL,NULL,NULL,0,NULL,NULL 20259,11257,493032,NULL,NULL,NULL,0,NULL,NULL 20260,51884,424004,html Good Answer Nice Answer Enlightened regex Guru Yearling Caucus php Yearling Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 20261,138964,158320,Custodian Student Census Census,NULL,NULL,0,NULL,NULL 20262,470592,331281,Popular Question Revival Yearling Revival Popular Question Inquisitive Nice Question Announcer Popular Question Notable Question Custodian Popular Question Necromancer Popular Question Necromancer Civic Duty Popular Question Yearling Necromancer Excavator Announcer Revival Notable Question Caucus Popular Question Revival Custodian Citizen Patrol Custodian Custodian Custodian Custodian Notable Question Popular Question Organizer Announcer Necromancer Popular Question Popular Question Yearling Necromancer Nice Question Necromancer Popular Question Notable Question Nice Answer c# Necromancer,NULL,NULL,0,NULL,NULL 20263,1265713,1334653,NULL,NULL,NULL,0,NULL,NULL 20264,46816,55773,NULL,NULL,NULL,0,NULL,NULL 20265,21273,585649,NULL,NULL,NULL,0,NULL,NULL 20266,112121,224400,NULL,NULL,NULL,0,NULL,NULL 20267,271819,111948,Good Answer Yearling Necromancer Good Answer Yearling Yearling Necromancer Yearling Yearling Critic Yearling Announcer Necromancer,NULL,pPer href https stackoverflow com 21757258 zanco answer you re not providing remote command to codessh code given how the shell parses the command line To solve this problem change the syntax of your codessh code command invocation so that the remote command is comprised of syntactically correct multi line string ppThere are variety of syntaxes that can be used For example since commands can be piped into codebash code and codesh code and probably other shells too the simplest solution is to just combine codessh code shell invocation with heredocs ppre codessh user bin bash lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepNote that executing the above emwithout em code bin bash code will result in the warning codePseudo terminal will not be allocated because stdin is not terminal code Also note that codeEOT code is surrounded by single quotes so that codebash code recognizes the heredoc as emnowdoc em turning off local variable interpolation so that the command text will be passed as is to codessh code ppIf you are fan of pipes you can rewrite the above as follows ppre codecat lt lt EOT ssh user bin bashecho These commands will be run on uname echo They are executed by whoami EOT code prepThe same caveat about code bin bash code applies to the above ppAnother valid approach is to pass the multi line remote command as single string using multiple layers of codebash code variable interpolation as follows ppre codessh user cat lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepThe solution above fixes this problem in the following manner polli codessh user code is parsed by bash and is interpreted to be the codessh code command followed by an argument codeuser code to be passed to the codessh code command lili code code begins an interpolated string which when completed will comprise an argument to be passed to the codessh code command which in this case will be interpreted by codessh code to be the remote command to execute as codeuser code lili code code begins command to be executed with the output being captured by the surrounding interpolated string lili codecat code is command to output the contents of whatever file follows The output of codecat code will be passed back into the capturing interpolated string lili code lt lt code begins bash emheredoc em lili code EOT code specifies that the name of the heredoc is EOT The single quotes code code surrounding EOT specifies that the heredoc should be parsed as emnowdoc em which is special form of heredoc in which the contents do not get interpolated by bash but rather passed on in literal format lili pAny content that is encountered between code lt lt EOT code and code lt newline gt EOT lt newline gt code will be appended to the nowdoc output lili codeEOT code terminates the nowdoc resulting in nowdoc temporary file being created and passed back to the calling codecat code command codecat code outputs the nowdoc and passes the output back to the capturing interpolated string lili code code concludes the command to be executed lili code code concludes the capturing interpolated string The contents of the interpolated string will be passed back to codessh code as single command line argument which codessh code will interpret as the remote command to execute as codeuser code li olpIf you need to avoid using external tools like codecat code and don mind having two statements instead of one use the coderead code built in with heredoc to generate the SSH command ppre codeIFS read SSH COMMAND lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOTssh user SSH COMMAND code pre sAmbæk maybe you can demonstrate an example of what you are trying to accomplish pPer href https stackoverflow com 21757258 zanco answer you re not providing remote command to codessh code given how the shell parses the command line To solve this problem change the syntax of your codessh code command invocation so that the remote command is comprised of syntactically correct multi line string ppThere are variety of syntaxes that can be used For example since commands can be piped into codebash code and codesh code and probably other shells too the simplest solution is to just combine codessh code shell invocation with heredocs ppre codessh user bin bash lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepNote that executing the above emwithout em code bin bash code will result in the warning codePseudo terminal will not be allocated because stdin is not terminal code Also note that codeEOT code is surrounded by single quotes so that codebash code recognizes the heredoc as emnowdoc em turning off local variable interpolation so that the command text will be passed as is to codessh code ppIf you are fan of pipes you can rewrite the above as follows ppre codecat lt lt EOT ssh user bin bashecho These commands will be run on uname echo They are executed by whoami EOT code prepThe same caveat about code bin bash code applies to the above ppAnother valid approach is to pass the multi line remote command as single string using multiple layers of codebash code variable interpolation as follows ppre codessh user cat lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepThe solution above fixes this problem in the following manner polli codessh user code is parsed by bash and is interpreted to be the codessh code command followed by an argument codeuser code to be passed to the codessh code command lili code code begins an interpolated string which when completed will comprise an argument to be passed to the codessh code command which in this case will be interpreted by codessh code to be the remote command to execute as codeuser code lili code code begins command to be executed with the output being captured by the surrounding interpolated string lili codecat code is command to output the contents of whatever file follows The output of codecat code will be passed back into the capturing interpolated string lili code lt lt code begins bash emheredoc em lili code EOT code specifies that the name of the heredoc is EOT The single quotes code code surrounding EOT specifies that the heredoc should be parsed as emnowdoc em which is special form of heredoc in which the contents do not get interpolated by bash but rather passed on in literal format lili pAny content that is encountered between code lt lt EOT code and code lt newline gt EOT lt newline gt code will be appended to the nowdoc output lili codeEOT code terminates the nowdoc resulting in nowdoc temporary file being created and passed back to the calling codecat code command codecat code outputs the nowdoc and passes the output back to the capturing interpolated string lili code code concludes the command to be executed lili code code concludes the capturing interpolated string The contents of the interpolated string will be passed back to codessh code as single command line argument which codessh code will interpret as the remote command to execute as codeuser code li olpIf you need to avoid using external tools like codecat code and don mind having two statements instead of one use the coderead code built in with heredoc to generate the SSH command ppre codeIFS read SSH COMMAND lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOTssh user SSH COMMAND code pre What if your multi line string has single quotes That entire solution then breaks pPer href https stackoverflow com 21757258 zanco answer you re not providing remote command to codessh code given how the shell parses the command line To solve this problem change the syntax of your codessh code command invocation so that the remote command is comprised of syntactically correct multi line string ppThere are variety of syntaxes that can be used For example since commands can be piped into codebash code and codesh code and probably other shells too the simplest solution is to just combine codessh code shell invocation with heredocs ppre codessh user bin bash lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepNote that executing the above emwithout em code bin bash code will result in the warning codePseudo terminal will not be allocated because stdin is not terminal code Also note that codeEOT code is surrounded by single quotes so that codebash code recognizes the heredoc as emnowdoc em turning off local variable interpolation so that the command text will be passed as is to codessh code ppIf you are fan of pipes you can rewrite the above as follows ppre codecat lt lt EOT ssh user bin bashecho These commands will be run on uname echo They are executed by whoami EOT code prepThe same caveat about code bin bash code applies to the above ppAnother valid approach is to pass the multi line remote command as single string using multiple layers of codebash code variable interpolation as follows ppre codessh user cat lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOT code prepThe solution above fixes this problem in the following manner polli codessh user code is parsed by bash and is interpreted to be the codessh code command followed by an argument codeuser code to be passed to the codessh code command lili code code begins an interpolated string which when completed will comprise an argument to be passed to the codessh code command which in this case will be interpreted by codessh code to be the remote command to execute as codeuser code lili code code begins command to be executed with the output being captured by the surrounding interpolated string lili codecat code is command to output the contents of whatever file follows The output of codecat code will be passed back into the capturing interpolated string lili code lt lt code begins bash emheredoc em lili code EOT code specifies that the name of the heredoc is EOT The single quotes code code surrounding EOT specifies that the heredoc should be parsed as emnowdoc em which is special form of heredoc in which the contents do not get interpolated by bash but rather passed on in literal format lili pAny content that is encountered between code lt lt EOT code and code lt newline gt EOT lt newline gt code will be appended to the nowdoc output lili codeEOT code terminates the nowdoc resulting in nowdoc temporary file being created and passed back to the calling codecat code command codecat code outputs the nowdoc and passes the output back to the capturing interpolated string lili code code concludes the command to be executed lili code code concludes the capturing interpolated string The contents of the interpolated string will be passed back to codessh code as single command line argument which codessh code will interpret as the remote command to execute as codeuser code li olpIf you need to avoid using external tools like codecat code and don mind having two statements instead of one use the coderead code built in with heredoc to generate the SSH command ppre codeIFS read SSH COMMAND lt lt EOT echo These commands will be run on uname echo They are executed by whoami EOTssh user SSH COMMAND code pre Sure you can escape strings as needed but who wants the hassle of having to modify script statements that you might just be copying and pasting from another shell script or stackoverflow for that matter Also the elegance of cat solution is that it is accomplished in single albeit compound statement and doesn result in temporary variables polluting the shell environment pPut the white space chars you want to match inside character class For example ppre code code prepmatches or more spaces or tabs ppYou could also do ppre code code prepwhich matches any white space char except code code and code code at least twice note that the capital codeS code in code code is short for code code in regular expressions for escaped sequences such as it often convention that the uppercase escape sequence is the inverse character set of the lowercase escape sequences is inverse of is inverse of is inverse of etc And also within character class set delimited by such as abc it possible to specify an inverse using abc Thus is equivalent to which would also be equivalent to the not allowed notation if it were allowed is not valid way of representing an inverse of an inverse,0,NULL,NULL 20268,899121,274893,Enthusiast,NULL,NULL,0,NULL,NULL 20269,590046,560309,NULL,NULL,NULL,0,NULL,NULL 20270,106756,642523,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 20271,103060,1307204,NULL,NULL,NULL,0,NULL,NULL 20272,332884,978492,NULL,NULL,NULL,0,NULL,NULL 20273,289336,1352682,NULL,NULL,NULL,0,NULL,NULL 20274,342743,446095,NULL,NULL,NULL,0,NULL,NULL 20275,627919,1313753,NULL,NULL,NULL,0,NULL,NULL 20276,13776,1344672,NULL,NULL,NULL,0,NULL,NULL 20277,288678,1098402,NULL,NULL,NULL,0,NULL,NULL 20278,496998,875686,NULL,NULL,NULL,0,NULL,NULL 20279,198907,633357,NULL,NULL,NULL,0,NULL,NULL 20280,914940,606278,NULL,NULL,NULL,0,NULL,NULL 20281,97746,935947,NULL,NULL,NULL,0,NULL,NULL 20282,72094,540727,NULL,NULL,NULL,0,NULL,NULL 20283,272865,330644,Famous Question Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Question Popular Question Famous Question Populist Yearling Good Answer Good Answer Good Answer Good Answer mysql Good Answer Good Answer Famous Question Nice Question Notable Question Good Answer Popular Question Great Answer Good Answer Nice Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Good Answer Nice Answer Great Answer Good Question Guru css Yearling Nice Answer Enlightened Popular Question Great Answer Nice Answer Enlightened Guru Famous Question Good Answer Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Yearling Good Answer Nice Question Guru Guru Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 20284,626339,1001768,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 20285,923734,427451,NULL,NULL,NULL,0,NULL,NULL 20286,190313,635367,Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20287,179714,1052686,NULL,NULL,NULL,0,NULL,NULL 20288,268084,11559,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20289,10101750,11559,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20290,111511,81779,Autobiographer Informed,NULL,NULL,0,NULL,NULL 20291,230453,955697,Guru Nice Answer Great Answer Nice Answer Popular Question Notable Question Yearling Taxonomist Good Answer Popular Question Yearling Peer Pressure Popular Question Yearling,NULL,NULL,0,NULL,NULL 20292,32752,1276371,NULL,NULL,NULL,0,NULL,NULL 20293,173052,346532,NULL,NULL,NULL,0,NULL,NULL 20294,604694,1026169,Famous Question Favorite Question Yearling Popular Question Notable Question Yearling Notable Question Great Question Yearling Notable Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 20295,6937,1023403,Student Necromancer,NULL,NULL,0,NULL,NULL 20296,313508,1154966,Necromancer Notable Question Critic Commentator,NULL,pyparsing recursion of values list ibm rhapsody python recursion pyparsing rhapsody pIm building parser for the IBM Rhapsody codesbs code file format But unfortunately the recursion part won work as expected The rule codepp Word pp printables code is probably the problem as it matches also code code and code code But at least code code can also be part of the values ppre codeimport pyparsing as ppimport pprintTEST foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla boing key bla def flat loc toks if len toks return toks assignment pp Suppress pp Word pp alphanums pp Suppress value pp OneOrMore pp Group assignment pp Group pp OneOrMore pp QuotedString escChar multiline True pp Suppress setParseAction flat pp Word pp alphas pp Suppress pp Word pp printables expr pp Forward expr pp Suppress pp Word pp alphas value assignment expr expr pp Suppress expr expr ignore pp pythonStyleComment print TESTpprint pprint expr parseString TEST asList code prepOutput ppre code python prase py foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla boing key bla foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla code pre Sadly the format is right real example https github com mansam exploring rhapsody blob master LightSwitch LightSwitch rpy,1,pyparsing recursion of values list ibm rhapsody python recursion pyparsing rhapsody pIm building parser for the IBM Rhapsody codesbs code file format But unfortunately the recursion part won work as expected The rule codepp Word pp printables code is probably the problem as it matches also code code and code code But at least code code can also be part of the values ppre codeimport pyparsing as ppimport pprintTEST foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla boing key bla def flat loc toks if len toks return toks assignment pp Suppress pp Word pp alphanums pp Suppress value pp OneOrMore pp Group assignment pp Group pp OneOrMore pp QuotedString escChar multiline True pp Suppress setParseAction flat pp Word pp alphas pp Suppress pp Word pp printables expr pp Forward expr pp Suppress pp Word pp alphas value assignment expr expr pp Suppress expr expr ignore pp pythonStyleComment print TESTpprint pprint expr parseString TEST asList code prepOutput ppre code python prase py foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla boing key bla foo key bla value 1243 1233 1235 hans hammer time HaMer 765 786 890 value pragma LINK INFO DERIVATIVE mc9s12xs256 mText 12 11 2015 13 20 value war fist obacht fish car button id gibml c0d8 4535 898f 968362779e07 bam boing key bla code pre,NULL 20297,448037,1438098,Famous Question Popular Question Popular Question Popular Question Yearling Good Question Yearling Favorite Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 20298,9273745,655779,NULL,NULL,NULL,0,NULL,NULL 20299,4926856,655779,NULL,NULL,NULL,0,NULL,NULL 20300,2711,266647,NULL,NULL,NULL,0,NULL,NULL 20301,331333,1343096,Nice Answer Enlightened java Yearling Popular Question Popular Question Popular Question Good Question Nice Question Famous Question Notable Question Good Answer Yearling Famous Question Popular Question Famous Question Caucus Constituent Good Answer Good Answer Notable Question Census Tumbleweed Caucus Yearling Notable Question Custodian Civic Duty,NULL,NULL,0,NULL,NULL 20302,1872945,1078812,Tumbleweed,NULL,NULL,0,NULL,NULL 20303,157322,1458314,NULL,NULL,NULL,0,NULL,NULL 20304,299289,1027208,NULL,NULL,NULL,0,NULL,NULL 20305,126071,905211,Revival Nice Question Popular Question Yearling Enthusiast,NULL,NULL,0,NULL,NULL 20306,87113,257752,NULL,NULL,NULL,0,NULL,NULL 20307,39103,743464,Notable Question Nice Question Revival Popular Question Famous Question Nice Answer Popular Question Necromancer Nice Question Yearling Good Question Explainer Announcer Popular Question Necromancer Civic Duty Announcer Notable Question Notable Question Popular Question Notable Question Necromancer Caucus Notable Question Nice Question Nice Answer Enlightened Notable Question Popular Question Popular Question Notable Question Disciplined Revival Nice Answer Nice Answer Nice Answer Mortarboard Enlightened Notable Question Necromancer Announcer Peer Pressure Yearling Necromancer Nice Answer Nice Question Popular Question Nice Question Famous Question Popular Question reactjs Nice Answer Notable Question Revival Good Question Enlightened Good Question javascript Necromancer Famous Question Popular Question Nice Answer Enlightened Good Answer Good Answer Caucus Necromancer Good Question Nice Answer Enlightened Nice Answer Enlightened Yearling Famous Question Popular Question Notable Question Good Answer Nice Answer Good Answer Nice Answer Enlightened node.js Nice Question Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Revival,NULL,h2What Vim Claims h2pFor codesyntax on code vs codesyntax enable code the help files emclaim em ppre codeThe syntax enable command will keep your current color settings Thisallows using highlight commands to set your preferred colors before orafter using this command If you want Vim to overrule your settings with thedefaults use gt syntax on code preh2I Can Verify These Claims h2pThe behavior see in Vim does not appear to match the above help statement ppAfter testing locally with some empty code vimrc codes and experimenting with codeon code codeenable code and placement of highlight commands can figure out what Vim is actually doing tested with codehighlight ColorColumn guibg 331111 code and codeset colorcolumn 80 code Highlighting is sometimes overwritten and sometimes not ph2Only Let Vim Set Syntax Once h2pI no longer trust Vim so only let syntax get set once ever Here what have in my code vimrc code ppre codeif exists syntax on syntax enableendif code prepI use codeenable code because of the above emclaim em that it won overwrite your settings however it doesn seem to make any difference when starting Vim ph1More details h1pYou can see that codeh syntax on code shows that codeon code and codeenable code source the same file ppre codeDetails The syntax commands are implemented by sourcing file To see exactly howthis works look in the file command file syntax enable VIMRUNTIME syntax syntax vim syntax on VIMRUNTIME syntax syntax vim code prepIf you re curious codeg syntax on code gets set in code VIMRUNTIME syntax synload vim code ppAlso running Vim with no plugins settings codevim NONE code does NOT load any of the syntax files you re right the answer is confusing will update it,0,NULL,NULL 20308,7856864,1504552,Notable Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 20309,125166,1504552,Notable Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 20310,916293,282398,android Yearling Favorite Question Famous Question Guru Good Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 20311,131701,1314193,NULL,NULL,NULL,0,NULL,NULL 20312,256382,1035294,NULL,NULL,NULL,0,NULL,NULL 20313,156363,619891,Yearling Popular Question Favorite Question Notable Question Great Question Famous Question Yearling Self-Learner Popular Question Good Answer Yearling Popular Question,NULL,,0,, 20314,520932,341574,Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 20315,204833,810049,NULL,NULL,NULL,0,NULL,NULL 20316,52133,567967,Popular Question Famous Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 20317,1347786,576804,Popular Question,NULL,NULL,0,NULL,NULL 20318,522213,289283,NULL,NULL,NULL,0,NULL,NULL 20319,20760,196162,Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 20320,45201,407003,Nice Answer Nice Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Yearling Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 20321,42466,557296,Yearling Popular Question Nice Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 20322,44945,732458,Notable Question Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 20323,67706,267798,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 20324,74422,516800,NULL,NULL,NULL,0,NULL,NULL 20325,1203529,534476,javascript Nice Question Popular Question Notable Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 20326,14434,534476,javascript Nice Question Popular Question Notable Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 20327,287366,979265,NULL,NULL,NULL,0,NULL,NULL 20328,47685,1058197,Necromancer,NULL,NULL,0,NULL,NULL 20329,12855,85785,Guru Nice Answer Announcer Guru Nice Answer Enlightened Announcer Necromancer Good Answer Announcer Yearling api Good Question Famous Question Announcer Nice Answer Enlightened Good Answer Announcer Necromancer Announcer Announcer Announcer Nice Answer Generalist Announcer Nice Question Announcer Nice Answer asp.net Favorite Question Announcer Notable Question Announcer Guru Announcer Announcer Announcer Popular Question Popular Question Nice Answer Enlightened Announcer Announcer Caucus Announcer Enlightened Necromancer Great Question Good Answer Nice Answer Enlightened Announcer Yearling Announcer Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer sql-server redis Nice Answer Great Answer Good Answer Announcer Good Answer Announcer Guru Necromancer Popular Question Caucus Pundit Announcer servicestack-text Announcer servicestack.redis Documentation User Nice Answer Nice Answer Enlightened Nice Answer Revival Good Answer Nice Answer angularjs Announcer Announcer Necromancer Announcer Announcer Caucus Great Answer Announcer Announcer Yearling Announcer Popular Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Announcer Announcer Announcer Famous Question javascript Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Question,NULL,h2Software biggest enemy h2pFirstly want to iterate that href http steve yegge blogspot com 2007 12 codes worst enemy html rel noreferrer Complexity and Large Code bases ais the single worst enemy of software development and that along with meeting the project requirements deriving value from our software managing complexity and maintaining minimal and low friction evolvable code base should be at the forefront of our minds as we re continually enhancing our software with new features and requirements Any guidelines rules or processes we add to increase software quality should be directly focused on managing its essential complexity One of the best things we can do to reduce complexity is to reduce code base size DRYing repeatable code and eliminating any unnecessary abstractions indirection concepts types and friction that isn absolutely essential to the software function ppIn this light href https en wikipedia org wiki You aren 27t gonna need it rel noreferrer YAGNI is one of the best principles to follow to ensure simple and lean code base by focusing on what essential to delivering value ph3Avoid blanket rules h3pI avoid blanket rules which consider one of the primary causes of unnecessary complexity in Software where it often liberally and thoughtlessly applied infecting code base without justification Every time you impose an artificial limitation you re creating friction and inertia to develop within its bounds in order to satisfy it which is why any rule you enforce should be thoughtfully and carefully applied and limited to places where it adds value ph3Be wary of invalid Rules and Patterns h3pEven Software Design Patterns are in many cases href http c2 com cgi wiki AreDesignPatternsMissingLanguageFeatures rel noreferrer programming language deficiencies where what useful in one language is unnecessary and more elegantly solved in more expressive and powerful languages Likewise with rules what cautionary guideline in one domain may not be applicable in others Therefore what more important than the rule itself is the value it actually provides and what concrete side effect it trying to prevent Once we understand its true value we can optimize to derive maximum value from it and together with YAGNI know when to selectively apply it ph2The Simple POCO Life h2pAs you ve noticed ServiceStack achieves lot of its simplicity and reuse by being able to reuse the same POCOs indiscriminately anywhere to interface and freely communicate between its different libraries and components This enables maximum value and reuse of your Models and reduces the friction in mapping between different domains which typically require having purpose specific types each with its own unique configuration limiting its applicability and potential re use ph3Heavy ORM models are poor DTOs h3pNot reusing data models as DTOs applies to Heavy ORM which encourage Data Models with cyclical dependencies and proxied objects with tight coupling and embedded logic that can trigger unintended data access making these models poor candidates for use as DTOs and why you should always copy them into purpose specificDTOs that your Services can return so they re serializable without issue ph3Clean POCOs h3pThe complex Data Models stored in href https github com ServiceStack ServiceStack OrmLite rel noreferrer OrmLite or href https github com ServiceStack ServiceStack Redis rel noreferrer Redis doesn suffer from any of these issues which are able to use clean disconnected POCOs They re loosely coupled where only the Shape of the POCO is significant moving projects and changing namespaces won impact serialization how it stored in RDBMS tables Redis data structures Caching providers etc You re also not coupled to specific types you can use different type to insert data in OrmLite than what youuse to read from it nor does it need to be the exact Shape as OrmLite can populate DTO with only asubset of the fields available in the underlying table There also no distinction between Table View or Stored procedure OrmLite will happily map any result set into any matching fields on the specified POCO ignoring others ppEffectively this means POCOs in ServiceStack are extremely resilient and interoperable so you can happilyre use the same DTOs in OrmLite and vice versa without issue If the DTO and Data models only deviate slightly you can href https stackoverflow com 14859968 85785 hide them from being serialized or stored in OrmLite with the attributes below ppre codepublic class Poco Ignore public int IgnoreInOrmLite get set IgnoreDataMember public int IgnoreInSerialization get set code prepOtherwise when you need to separate them more fields were added to the RDBMS table than you want to return the DTO includes additional fields populated from alternative sources or you just want your Servicesto project them differently At that point YAGNI you can take copy of the DTO and add it to your Services Implementation so they can grow separately unimpeded by their different concerns You can then effortlessly convert between them usingbra href https github com ServiceStack ServiceStack wiki Auto mapping rel noreferrer ServiceStack built in Auto Mapping ppre codevar dto dbPoco ConvertTo lt Poco gt code preblockquote pThe built in Auto Mapping is also very tolerant and can co erce properties with different types to from strings different collection types etc blockquoteh2Data Transfer Objects DTOs h2pSo if you re using clean serializable POCOs without external dependencies from OrmLite Redis or alt ServiceStack sources you can happily re use them as DTOs and freely refactor them out into different models as and when you need to But when you are re using Data Models as DTOs they should still be maintained in the strongServiceModel strong project aka DTO dll which should contain strongall the types strong that your Service returns DTOs should be logic and dependency free so the only dependency the ServiceModel project references is the impl free codeServiceStack Interfaces dll code which as it PCL dll can be freely referenced from all href https github com ServiceStackApps HelloMobile rel noreferrer NET Mobile and Desktop platforms ppYou want to ensure all types your Services return are in the DTO dll since this along with the base url of where your Services are hosted is strongall that required strong for your Service Consumers to know in order to consume your Services Which they can use with any of the href https github com ServiceStack ServiceStack wiki 23 client rel noreferrer NET Service Clients ato get an end to end Typed API without code gen tooling or any other artificial machinery If clients prefer source code instead they can use href https github com ServiceStack ServiceStack wiki Add ServiceStack Reference rel noreferrer Add ServiceStack Reference to access the Servers typed DTOs in their preferred platform and language of choice ph2Services h2pServices are the ultimate form of encapsulating complexity and offers the highest level of software reuse They package its capabilities and makes them available remotely to your consumers with never any more complexity than the cost of Service call pp href https stack imgur com RHzCr png rel noreferrer img src https stack imgur com RHzCr png alt DTO Interface vs Service Implementation ppThe DTOs are what defines your Services contract keeping them isolated from any Server implementation is how your Service is able to encapsulate its capabilities which can be of unbounded complexity and make themavailable behind remote facade It separates what your Service provides from the complexity in how it realizes it It defines the API for your Service and tells Service Consumers the minimum info they need to know to discover what functionality your Services provide and how to consume them maintaining similar role to Header files in source code Well defined Service contracts decoupled from implementation enforces interoperability ensuring that your Services don mandate specific client implementations ensuring they can be consumed by any HTTP Client on any platform DTOs also define the shape and structure of your Services wire format ensuring they canbe cleanly deserialized into native data structures eliminating the effort in manually parsing Service Responses ph3Parallel Client development h3pSince they capture the entire contract it also enables clients to develop their applications before the Services are implemented as they re able to bind their application to its concrete DTO models and can easily mock their Service client to return test data until the back end Services are implemented ppAs far as rules go ensuring well defined Service Contract DTOs decoupled from its implementation goes to very essence of what Service is and the value it provides ph3Request and Response DTOs h3pAs for which DTOs make good candidates for re use as Data Models you don want to use strongRequest DTOs strongfor anything other than defining your external Services API which is typically strongVerb strong that ideally href https stackoverflow com 15941229 85785 grouped by Call Semantics and Response Types ppre codepublic class SearchProducts IReturn lt SearchProductsResponse gt public string Category get set public decimal PriceGreaterThan get set code prepYour RDBMS tables are normally entities defined as strongNouns strong what your Service returns ppre codepublic class SearchProductsResponse public List lt Product gt Results get set public ResponseStatus ResponseStatus get set code prepEven the containing strongResponse DTO strong which defines what your Service returns isn good candidate for re use as Data Model typically use discrete DTOs for Service Responses as it allows freely extending existing Services to return extra data or metadata without breaking existing clients ppOther than the Request and Response DTOs all other the strongTypes strong that your Service returns would be candidates for re use as Data Models which frequently do keeping them in the strongServiceModel strong project for the reasons above Response DTOs when not returning naked Types or collections is typically specific to single Service so they re not reusable but the DTO Types they contain are reusable h2Software biggest enemy h2pFirstly want to iterate that href http steve yegge blogspot com 2007 12 codes worst enemy html rel noreferrer Complexity and Large Code bases ais the single worst enemy of software development and that along with meeting the project requirements deriving value from our software managing complexity and maintaining minimal and low friction evolvable code base should be at the forefront of our minds as we re continually enhancing our software with new features and requirements Any guidelines rules or processes we add to increase software quality should be directly focused on managing its essential complexity One of the best things we can do to reduce complexity is to reduce code base size DRYing repeatable code and eliminating any unnecessary abstractions indirection concepts types and friction that isn absolutely essential to the software function ppIn this light href https en wikipedia org wiki You aren 27t gonna need it rel noreferrer YAGNI is one of the best principles to follow to ensure simple and lean code base by focusing on what essential to delivering value ph3Avoid blanket rules h3pI avoid blanket rules which consider one of the primary causes of unnecessary complexity in Software where it often liberally and thoughtlessly applied infecting code base without justification Every time you impose an artificial limitation you re creating friction and inertia to develop within its bounds in order to satisfy it which is why any rule you enforce should be thoughtfully and carefully applied and limited to places where it adds value ph3Be wary of invalid Rules and Patterns h3pEven Software Design Patterns are in many cases href http c2 com cgi wiki AreDesignPatternsMissingLanguageFeatures rel noreferrer programming language deficiencies where what useful in one language is unnecessary and more elegantly solved in more expressive and powerful languages Likewise with rules what cautionary guideline in one domain may not be applicable in others Therefore what more important than the rule itself is the value it actually provides and what concrete side effect it trying to prevent Once we understand its true value we can optimize to derive maximum value from it and together with YAGNI know when to selectively apply it ph2The Simple POCO Life h2pAs you ve noticed ServiceStack achieves lot of its simplicity and reuse by being able to reuse the same POCOs indiscriminately anywhere to interface and freely communicate between its different libraries and components This enables maximum value and reuse of your Models and reduces the friction in mapping between different domains which typically require having purpose specific types each with its own unique configuration limiting its applicability and potential re use ph3Heavy ORM models are poor DTOs h3pNot reusing data models as DTOs applies to Heavy ORM which encourage Data Models with cyclical dependencies and proxied objects with tight coupling and embedded logic that can trigger unintended data access making these models poor candidates for use as DTOs and why you should always copy them into purpose specificDTOs that your Services can return so they re serializable without issue ph3Clean POCOs h3pThe complex Data Models stored in href https github com ServiceStack ServiceStack OrmLite rel noreferrer OrmLite or href https github com ServiceStack ServiceStack Redis rel noreferrer Redis doesn suffer from any of these issues which are able to use clean disconnected POCOs They re loosely coupled where only the Shape of the POCO is significant moving projects and changing namespaces won impact serialization how it stored in RDBMS tables Redis data structures Caching providers etc You re also not coupled to specific types you can use different type to insert data in OrmLite than what youuse to read from it nor does it need to be the exact Shape as OrmLite can populate DTO with only asubset of the fields available in the underlying table There also no distinction between Table View or Stored procedure OrmLite will happily map any result set into any matching fields on the specified POCO ignoring others ppEffectively this means POCOs in ServiceStack are extremely resilient and interoperable so you can happilyre use the same DTOs in OrmLite and vice versa without issue If the DTO and Data models only deviate slightly you can href https stackoverflow com 14859968 85785 hide them from being serialized or stored in OrmLite with the attributes below ppre codepublic class Poco Ignore public int IgnoreInOrmLite get set IgnoreDataMember public int IgnoreInSerialization get set code prepOtherwise when you need to separate them more fields were added to the RDBMS table than you want to return the DTO includes additional fields populated from alternative sources or you just want your Servicesto project them differently At that point YAGNI you can take copy of the DTO and add it to your Services Implementation so they can grow separately unimpeded by their different concerns You can then effortlessly convert between them usingbra href https github com ServiceStack ServiceStack wiki Auto mapping rel noreferrer ServiceStack built in Auto Mapping ppre codevar dto dbPoco ConvertTo lt Poco gt code preblockquote pThe built in Auto Mapping is also very tolerant and can co erce properties with different types to from strings different collection types etc blockquoteh2Data Transfer Objects DTOs h2pSo if you re using clean serializable POCOs without external dependencies from OrmLite Redis or alt ServiceStack sources you can happily re use them as DTOs and freely refactor them out into different models as and when you need to But when you are re using Data Models as DTOs they should still be maintained in the strongServiceModel strong project aka DTO dll which should contain strongall the types strong that your Service returns DTOs should be logic and dependency free so the only dependency the ServiceModel project references is the impl free codeServiceStack Interfaces dll code which as it PCL dll can be freely referenced from all href https github com ServiceStackApps HelloMobile rel noreferrer NET Mobile and Desktop platforms ppYou want to ensure all types your Services return are in the DTO dll since this along with the base url of where your Services are hosted is strongall that required strong for your Service Consumers to know in order to consume your Services Which they can use with any of the href https github com ServiceStack ServiceStack wiki 23 client rel noreferrer NET Service Clients ato get an end to end Typed API without code gen tooling or any other artificial machinery If clients prefer source code instead they can use href https github com ServiceStack ServiceStack wiki Add ServiceStack Reference rel noreferrer Add ServiceStack Reference to access the Servers typed DTOs in their preferred platform and language of choice ph2Services h2pServices are the ultimate form of encapsulating complexity and offers the highest level of software reuse They package its capabilities and makes them available remotely to your consumers with never any more complexity than the cost of Service call pp href https stack imgur com RHzCr png rel noreferrer img src https stack imgur com RHzCr png alt DTO Interface vs Service Implementation ppThe DTOs are what defines your Services contract keeping them isolated from any Server implementation is how your Service is able to encapsulate its capabilities which can be of unbounded complexity and make themavailable behind remote facade It separates what your Service provides from the complexity in how it realizes it It defines the API for your Service and tells Service Consumers the minimum info they need to know to discover what functionality your Services provide and how to consume them maintaining similar role to Header files in source code Well defined Service contracts decoupled from implementation enforces interoperability ensuring that your Services don mandate specific client implementations ensuring they can be consumed by any HTTP Client on any platform DTOs also define the shape and structure of your Services wire format ensuring they canbe cleanly deserialized into native data structures eliminating the effort in manually parsing Service Responses ph3Parallel Client development h3pSince they capture the entire contract it also enables clients to develop their applications before the Services are implemented as they re able to bind their application to its concrete DTO models and can easily mock their Service client to return test data until the back end Services are implemented ppAs far as rules go ensuring well defined Service Contract DTOs decoupled from its implementation goes to very essence of what Service is and the value it provides ph3Request and Response DTOs h3pAs for which DTOs make good candidates for re use as Data Models you don want to use strongRequest DTOs strongfor anything other than defining your external Services API which is typically strongVerb strong that ideally href https stackoverflow com 15941229 85785 grouped by Call Semantics and Response Types ppre codepublic class SearchProducts IReturn lt SearchProductsResponse gt public string Category get set public decimal PriceGreaterThan get set code prepYour RDBMS tables are normally entities defined as strongNouns strong what your Service returns ppre codepublic class SearchProductsResponse public List lt Product gt Results get set public ResponseStatus ResponseStatus get set code prepEven the containing strongResponse DTO strong which defines what your Service returns isn good candidate for re use as Data Model typically use discrete DTOs for Service Responses as it allows freely extending existing Services to return extra data or metadata without breaking existing clients ppOther than the Request and Response DTOs all other the strongTypes strong that your Service returns would be candidates for re use as Data Models which frequently do keeping them in the strongServiceModel strong project for the reasons above generic Response DTO defeats the purpose of even having one where you can evolve each service contract independently without breaking existing clients see docs on Message based APIs http docs servicestack net design message based apis returning coarse grained response dtos for more info The goal shouldn be to reuse Response DTOs whose purpose is to define the Services Response you can reuse all other DTO Types pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre You can add an expression in the Join and use WhereT1 T2 t1 t2 later pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre No you can change what it returns it just JOIN condition that maps to normal SQL INNER JOIN condition pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre See this SqlExpression for Where example https github com ServiceStack ServiceStack OrmLite blob cf17ebc03d574d517a49fe3e4727ec877c88c950 tests ServiceStack OrmLite Tests Expression ComplexJoinTests cs L185 pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre Not sure what you mean the only way to select which fields are returned is with Select APIs But yeah you can use Select to return an anonymous type from multiple tables https github com ServiceStack ServiceStack OrmLite blob cf17ebc03d574d517a49fe3e4727ec877c88c950 tests ServiceStack OrmLite Tests Expression ComplexJoinTests cs L263 you can also select an array of columns from multiple tables https github com ServiceStack ServiceStack OrmLite blob master tests ServiceStack OrmLite Tests AutoQueryTests cs L259 pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt,,, "Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre It better if you open new question as comments isn the right place for code but you can fetch it with db Columnstring db FromDeptEmployee JoinDepartment2 Select new Name or db Columnstring db FromDeptEmployee JoinDepartment2 SelectDeptEmployee Department2 new Name you can also fetch dynamic results https github com ServiceStack ServiceStack OrmLite dynamic result sets by selecting Listobject or Dictionarystring object Types pAn important thing to note in OrmLite is how the query is constructed and executed is independent to how the results are mapped It doesn matter whether the query is raw custom SQL or Typed SQL Expression OrmLite only looks at the dataset returned to workout how the results should be mapped ppSo when use the codeSelect lt gt SqlExpression lt gt code API OrmLite will always try to map the results into the primary SqlExpression Type in codedb From lt DeptEmployee gt code which isn what you want since the custom columns you ve selected don match the shape of codeDeptEmployee code POCO ppThere are few different ways to read custom schema which all work off the same query as it independent to how you chose to map the results ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de FirstName de LastName d2 Name code prepOur recommendation esp for typed code first ORM like OrmLite is to create Typed Custom POCO and select that ppre codeclass Custom public string FirstName get set public string LastName get set public string Name get set db Select lt Custom gt PrintDump code prepWhich will print out nice ppre code FirstName First LastName Last Name Dept code prepThe primary benefit is that you get Typed access to your custom results in codeList lt Custom gt code ppIf you don want to create custom Type you can Select OrmLite href https github com ServiceStack ServiceStack OrmLite dynamic result sets Dynamic Result APIs ppIf you re happy knowing the positions of the different fields you can select codeList lt object gt code which will return the selected fields in the order they were selected ppre codedb Select lt List lt object gt gt PrintDump code prepPrints ppre code First Last Dept code prepOtherwise if you also want the names returned you can select string object dictionary ppre codedb Select lt Dictionary lt string object gt gt PrintDump code prepWhich prints results similar to the Custom POCO but the names and corresponding values are maintained in loose typed object Dictionary ppre code FirstName First LastName Last Name Dept code prepIf you were instead only selecting columns ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de LastName d2 Name code prepYou can make of OrmLite href https github com ServiceStack ServiceStack OrmLite convenient common usage data access patterns convenient data access APIs which will let you select columns into codeDictionary lt string string gt code ppre codedb Dictionary lt string string gt PrintDump code prepWhich prints ppre code Last Dept Last Dept Last Dept code prepNotice this is very different to the string object dictionary above as it returns results in single codeDictionary lt string string gt code strongfor all rows strong instead of codeList lt Dictionary lt string object gt gt code which has Dictionary strongfor each row strong ppLikewise if you were only selecting field ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select gt LastName code prepThen you can select singular column of results in codeList lt string gt code ppre codedb Column lt string gt PrintDump code prepWhich prints ppre code Last Last Last code prepIf you instead wanted distinct results you can return them in codeHashSet lt string gt code with ppre codedb ColumnDistinct lt string gt PrintDump code prepTo return to the original important point it doesn matter how the query was constructed which just controls the SQL that generated OrmLite strongonly looks at the returned resultset strong to Map the results which it tries to strongmap to the target API strong that you ve specified you want the results mapped into so executing custom SQL ppre codedb Column lt string gt SELECT LastName FROM DeptEmployee PrintDump code prepOr if you executed Stored Procedure ppre codedb Column lt string gt EXEC GetLastNamesFromDeptEmployees PrintDump code prepIs mapped exactly the same way if you used typed SQL Expression OrmLite only looks at the resultset which it maps to how you want the results returned generally opposed to using dynamic anywhere But ve added support for dynamic in this commit https github com ServiceStack ServiceStack OrmLite commit 57b7ac67c1d5d44a247c1783d8ba7b9d70cdb093 which will let you fetch list dynamic objects with db Selectdynamic You ll need to clear your MyGet cache https github com ServiceStack ServiceStack wiki MyGet redownloading myget packages to pull down the latest version pAn important thing to note in OrmLite is how the query is constructed and executed is independent to how the results are mapped It doesn matter whether the query is raw custom SQL or Typed SQL Expression OrmLite only looks at the dataset returned to workout how the results should be mapped ppSo when use the codeSelect lt gt SqlExpression lt gt code API OrmLite will always try to map the results into the primary SqlExpression Type in codedb From lt DeptEmployee gt code which isn what you want since the custom columns you ve selected don match the shape of codeDeptEmployee code POCO ppThere are few different ways to read custom schema which all work off the same query as it independent to how you chose to map the results ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de FirstName de LastName d2 Name code prepOur recommendation esp for typed code first ORM like OrmLite is to create Typed Custom POCO and select that ppre codeclass Custom public string FirstName get set public string LastName get set public string Name get set db Select lt Custom gt PrintDump code prepWhich will print out nice ppre code FirstName First LastName Last Name Dept code prepThe primary benefit is that you get Typed access to your custom results in codeList lt Custom gt code ppIf you don want to create custom Type you can Select OrmLite href https github com ServiceStack ServiceStack OrmLite dynamic result sets Dynamic Result APIs ppIf you re happy knowing the positions of the different fields you can select codeList lt object gt code which will return the selected fields in the order they were selected ppre codedb Select lt List lt object gt gt PrintDump code prepPrints ppre code First Last Dept code prepOtherwise if you also want the names returned you can select string object dictionary ppre codedb Select lt Dictionary lt string object gt gt PrintDump code prepWhich prints results similar to the Custom POCO but the names and corresponding values are maintained in loose typed object Dictionary ppre code FirstName First LastName Last Name Dept code prepIf you were instead only selecting columns ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de LastName d2 Name code prepYou can make of OrmLite href https github com ServiceStack ServiceStack OrmLite convenient common usage data access patterns convenient data access APIs which will let you select columns into codeDictionary lt string string gt code ppre codedb Dictionary lt string string gt PrintDump code prepWhich prints ppre code Last Dept Last Dept Last Dept code prepNotice this is very different to the string object dictionary above as it returns results in single codeDictionary lt string string gt code strongfor all rows strong instead of codeList lt Dictionary lt string object gt gt code which has Dictionary strongfor each row strong ppLikewise if you were only selecting field ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select gt LastName code prepThen you can select singular column of results in codeList lt string gt code ppre codedb Column lt string gt PrintDump code prepWhich prints ppre code Last Last Last code prepIf you instead wanted distinct results you can return them in codeHashSet lt string gt code with ppre codedb ColumnDistinct lt string gt PrintDump code prepTo return to the original important point it doesn matter how the query was constructed which just controls the SQL that generated OrmLite strongonly looks at the returned resultset strong to Map the results which it tries to strongmap to the target API strong that you ve specified you want the results mapped into so executing custom SQL ppre codedb Column lt string gt SELECT LastName FROM DeptEmployee PrintDump code prepOr if you executed Stored Procedure ppre codedb Column lt string gt EXEC GetLastNamesFromDeptEmployees PrintDump code prepIs mapped exactly the same way if you used typed SQL Expression OrmLite only looks at the resultset which it maps to how you want the results returned An anonymous type is just an object anyway exactly what you re isn possible as the generic type isn accessible outside the SqlExpression But there are several options available to access the data if you want typed access use custom type""",guru nice answer announcer guru nice answer enlighten announcer necromancer good answer announcer yearle api good question famous question announcer nice answer enlighten good answer announcer necromancer announcer announcer announcer nice answer generalist announcer nice question announcer nice answer favorite question announcer notable question announcer guru announcer announcer announcer popular question popular question nice answer enlighten announcer announcer caucus announcer enlighten necromancer great question good answer nice answer enlighten announcer yearle announcer nice answer announcer nice answer nice answer enlighten nice answer enlighten announcer nice answer redis nice answer great answer good answer announcer good answer announcer guru necromancer popular question caucus announcer announcer documentation user nice answer nice answer enlighten nice answer revival good answer nice answer angularjs announcer announcer necromancer announcer announcer caucus great answer announcer announcer yearle announcer popular question nice answer enlighten nice answer enlighten notable question announcer announcer announcer famous question javascript announcer nice answer enlighten announcer announcer announcer announcer announcer announcer good answer announcer announcer announcer nice answer enlighten announcer nice question join table servicestack ormlite select class ormlite servicestack pi simple sql join servicestack ormlite table net object ppin linq entity codeclaim join policy policyid claim policy code prepthis anonymous type codeclaim code codepolicy code property ppi look ormlite href https github servicestack servicestack ormlite advanced noreferrer advanced join select property type type object code repeat property object exist object ppin reality query complex codeclaim join policy policyid claim policy policy claim select claim somethingelse code prep ormlite join sql rest memory good start ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code ormlite query select column join table ormlite servicestack pfollowe href https stackoverflow question join table servicestack ormlite select class noredirect comment servicestack ormlite query join table return column ppuse ormlite codedoe populate select field wildcard code unit test codepublic class deptemployee primarykey public int set public string firstname set public string lastname set reference typeof public int departmentid set reference public department set public class primarykey public int set public string set var db lt deptemployee join lt select lt deptemployee firstname lastname var result db select code prepthe return list anonymous type firstname lastname expect return list code object firstname lastname populate important thing note ormlite query construct execute independent result map matter query raw custom sql type sql expression ormlite dataset return workout result map ppso codeselect lt sqlexpression lt code api ormlite map result primary sqlexpression type codedb lt deptemployee code custom column select match shape code poco ppthere way read custom schema work query independent choose map result codevar db lt deptemployee join lt select lt deptemployee firstname lastname code prepour recommendation esp type code orm ormlite create type custom poco select codeclass custom public string firstname set public string lastname set public string set db select lt custom printdump code prepwhich print nice code firstname lastname dept code prepthe primary benefit type access custom result codelist lt custom code ppif create custom type select ormlite href https github servicestack servicestack ormlite dynamic result set dynamic result api ppif happy know position field select codelist lt object code return select field order select codedb select lt list lt object printdump code prepprint code dept code prepotherwise name return select string object dictionary codedb select lt dictionary lt string object printdump code prepwhich print result similar custom poco name value maintain loose type object dictionary code firstname lastname dept code prepif select column codevar db lt deptemployee join lt select lt deptemployee lastname code prepyou make ormlite href https github servicestack servicestack ormlite convenient common usage datum access pattern convenient datum access api select column codedictionary lt string string code codedb dictionary lt string string printdump code prepwhich print code dept dept dept code prepnotice string object dictionary return result single codedictionary lt string string code strongfor row strong codelist lt dictionary lt string object code dictionary strongfor row strong pplikewise select field codevar db lt deptemployee join lt select lastname code prepthen select singular column result codelist lt string code codedb column lt string printdump code prepwhich print code code prepif want distinct result return codehashset lt string code codedb columndistinct lt string printdump code prepto return original important point matter query construct control sql generate ormlite strongonly return resultset strong map result strongmap target api strong result map execute custom sql codedb column lt string select lastname deptemployee printdump code prepor execute store procedure codedb column lt string exec printdump code prepi map type sql expression ormlite resultset map result return big enemy iterate href http steve yegge blogspot code bad enemy html noreferrer complexity large code basis ais single bad enemy software development meeting project requirement derive software manage complexity maintain minimal low friction evolvable code base forefront mind continually enhance software feature requirement guideline rule process add increase software quality directly focus manage essential complexity thing reduce complexity reduce code base size dry repeatable code eliminate unnecessary abstraction indirection concept type friction absolutely essential software function ppin light href https wikipedia org wiki gon noreferrer yagni principle follow ensure simple lean code base focus essential deliver blanket rule avoid blanket rule primary unnecessary complexity software liberally thoughtlessly apply infect code base justification time impose artificial limitation create friction inertia develop bound order satisfy rule enforce thoughtfully carefully apply limit place add wary invalid rule pattern software design pattern case href http cgi wiki noreferrer programming language deficiency language unnecessary elegantly solve expressive powerful language likewise rule cautionary guideline domain applicable important rule concrete effect prevent understand true optimize derive maximum yagni selectively apply simple poco life notice servicestack achieve lot simplicity reuse reuse pocos interface freely communicate library component enable maximum reuse model reduce friction mapping domain typically require purpose specific type unique configuration limit applicability potential orm model poor dto reuse datum model dto apply heavy orm encourage datum model cyclical dependency proxie object tight couple embed logic trigger unintende datum access make model poor candidate dto copy purpose specificdto service return serializable issue pocos complex datum model store href https github servicestack servicestack ormlite noreferrer ormlite href https github servicestack servicestack redis noreferrer redis suffer issue clean disconnect pocos loosely couple shape poco significant move project change namespace impact serialization store rdbms table redis datum structure cache provider couple specific type type insert datum ormlite youuse read exact shape ormlite populate dto asubset field underlie table distinction table view store procedure ormlite happily map result set match field poco ignore ppeffectively mean pocos servicestack extremely resilient interoperable happilyre dto ormlite vice versa issue dto datum model deviate slightly href https stackoverflow hide serialize store ormlite attribute codepublic class poco ignore public int ignoreinormlite set public int set code prepotherwise separate field add rdbms table return dto include additional field populate alternative source servicesto project differently point yagni copy dto add service implementation grow separately unimpeded concern effortlessly convert usingbra href https github servicestack servicestack wiki auto mapping noreferrer servicestack build auto mapping codevar dto dbpoco convertto lt poco code preblockquote pthe build auto mapping tolerant erce property type string collection type transfer object dto clean serializable pocos external dependency ormlite redis alt servicestack source happily dto freely refactor model datum model dto maintain strong project aka dto strongall type strong service return dto logic dependency free dependency project reference impl free interface code pcl freely reference href https github hellomobile noreferrer net mobile desktop platform ppyou ensure type service return dto base url service host strongall require strong service consumer order consume service href https github servicestack servicestack wiki client noreferrer net service client ato end end type api code gen tooling artificial machinery client prefer source code href https github servicestack servicestack wiki add servicestack reference noreferrer add servicestack reference access server type dto prefer platform language choice ultimate form encapsulating complexity offer high level software reuse package capability make remotely consumer complexity cost service href https stack imgur rhzcr png noreferrer img src https stack imgur rhzcr png alt dto interface service implementation ppthe dto define service contract keep isolate server implementation service encapsulate capability unbounde complexity make themavailable remote facade separate service complexity realize define api service tell service consumer minimum info discover functionality service provide consume maintain similar role header file source code define service contract decouple implementation enforce ensure service mandate specific client implementation ensure consume http client platform dto define shape structure service wire format ensure canbe cleanly deserialize native datum structure eliminate effort manually parse service response client development capture entire contract enable client develop application service implement bind application concrete dto model easily mock service client return test datum end service implement ppas rule ensure define service contract dto decouple implementation essence service response dto dto make good candidate datum model strongrequ dto strongfor define external service api typically strongverb strong ideally href https stackoverflow group semantic response type codepublic class searchproduct ireturn lt public string category set public decimal set code prepyour rdbms table entity define strongnoun strong service return codepublic class public list lt product result set public responsestatus responsestatus set code prepeven strongresponse dto strong define service return good candidate datum model typically discrete dto service response freely extend exist service return extra datum metadata break exist client ppother request response dto strongtype strong service return candidate datum model frequently keep strong project reason response dto return naked type collection typically specific single service reusable dto type reusable big enemy iterate href http steve yegge blogspot code bad enemy html noreferrer complexity large code basis ais single bad enemy software development meeting project requirement derive software manage complexity maintain minimal low friction evolvable code base forefront mind continually enhance software feature requirement guideline rule process add increase software quality directly focus manage essential complexity thing reduce complexity reduce code base size dry repeatable code eliminate unnecessary abstraction indirection concept type friction absolutely essential software function ppin light href https wikipedia org wiki gon noreferrer yagni principle follow ensure simple lean code base focus essential deliver blanket rule avoid blanket rule primary unnecessary complexity software liberally thoughtlessly apply infect code base justification time impose artificial limitation create friction inertia develop bound order satisfy rule enforce thoughtfully carefully apply limit place add wary invalid rule pattern software design pattern case href http cgi wiki noreferrer programming language deficiency language unnecessary elegantly solve expressive powerful language likewise rule cautionary guideline domain applicable important rule concrete effect prevent understand true optimize derive maximum yagni selectively apply simple poco life notice servicestack achieve lot simplicity reuse reuse pocos interface freely communicate library component enable maximum reuse model reduce friction mapping domain typically require purpose specific type unique configuration limit applicability potential orm model poor dto reuse datum model dto apply heavy orm encourage datum model cyclical dependency proxie object tight couple embed logic trigger unintende datum access make model poor candidate dto copy purpose specificdto service return serializable issue pocos complex datum model store href https github servicestack servicestack ormlite noreferrer ormlite href https github servicestack servicestack redis noreferrer redis suffer issue clean disconnect pocos loosely couple shape poco significant move project change namespace impact serialization store rdbms table redis datum structure cache provider couple specific type type insert datum ormlite youuse read exact shape ormlite populate dto asubset field underlie table distinction table view store procedure ormlite happily map result set match field poco ignore ppeffectively mean pocos servicestack extremely resilient interoperable happilyre dto ormlite vice versa issue dto datum model deviate slightly href https stackoverflow hide serialize store ormlite attribute codepublic class poco ignore public int ignoreinormlite set public int set code prepotherwise separate field add rdbms table return dto include additional field populate alternative source servicesto project differently point yagni copy dto add service implementation grow separately unimpeded concern effortlessly convert usingbra href https github servicestack servicestack wiki auto mapping noreferrer servicestack build auto mapping codevar dto dbpoco convertto lt poco code preblockquote pthe build auto mapping tolerant erce property type string collection type transfer object dto clean serializable pocos external dependency ormlite redis alt servicestack source happily dto freely refactor model datum model dto maintain strong project aka dto strongall type strong service return dto logic dependency free dependency project reference impl free interface code pcl freely reference href https github hellomobile noreferrer net mobile desktop platform ppyou ensure type service return dto base url service host strongall require strong service consumer order consume service href https github servicestack servicestack wiki client noreferrer net service client ato end end type api code gen tooling artificial machinery client prefer source code href https github servicestack servicestack wiki add servicestack reference noreferrer add servicestack reference access server type dto prefer platform language choice ultimate form encapsulating complexity offer high level software reuse package capability make remotely consumer complexity cost service href https stack imgur rhzcr png noreferrer img src https stack imgur rhzcr png alt dto interface service implementation ppthe dto define service contract keep isolate server implementation service encapsulate capability unbounde complexity make themavailable remote facade separate service complexity realize define api service tell service consumer minimum info discover functionality service provide consume maintain similar role header file source code define service contract decouple implementation enforce ensure service mandate specific client implementation ensure consume http client platform dto define shape structure service wire format ensure canbe cleanly deserialize native datum structure eliminate effort manually parse service response client development capture entire contract enable client develop application service implement bind application concrete dto model easily mock service client return test datum end service implement ppas rule ensure define service contract dto decouple implementation essence service response dto dto make good candidate datum model strongrequ dto strongfor define external service api typically strongverb strong ideally href https stackoverflow group semantic response type codepublic class searchproduct ireturn lt public string category set public decimal set code prepyour rdbms table entity define strongnoun strong service return codepublic class public list lt product result set public responsestatus responsestatus set code prepeven strongresponse dto strong define service return good candidate datum model typically discrete dto service response freely extend exist service return extra datum metadata break exist client ppother request response dto strongtype strong service return candidate datum model frequently keep strong project reason generic response dto defeat purpose evolve service contract independently break exist client docs message base api http docs servicestack net design message base api return coarse grain response dto info goal reuse response dto purpose define service response reuse dto type ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code add expression join ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code change return join condition map normal sql join condition ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code sqlexpression https github servicestack servicestack ormlite blob test servicestack ormlite test expression cs ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code select field return select api yeah select return anonymous type multiple table https github servicestack servicestack ormlite blob test servicestack ormlite test expression cs select array column multiple table https github servicestack servicestack ormlite blob master test servicestack ormlite test autoquerytest cs ormlite previously nice feature add support codeselectmulti lt code code href https github servicestack servicestack ormlite commit nofollow noreferrer commit let read join table single query ppso ormlite advanced join construct type join query codevar db lt customer join lt customer customeraddress join lt customer order code prepthen codeselectmulti code api populate table interested codevar result db selectmulti lt customer customeraddress order code prepwhich return codelist lt tuple lt code give type access populate pocos table join query ppif prefer async version codevar result await db lt customer customeraddress order code prepthe codeselectmulti code api href https github servicestack servicestack wiki myget nofollow noreferrer myget type query ormlite execute dapper alternative combination ormlite create type query build href https github servicestack servicestack ormlite reference convention nofollow noreferrer reference convention ormlite embed version dapper query multiple result set exist poco type ppto start create type query expression return field table codevar db lt customer join lt customer customeraddress join lt customer order select code prepthen pass generate sql type sql expression dapper query multiple feature read result list tuple join table codeuse var multi db querymultiple var result multi read lt customer customeraddress order tuple lt customer customeraddress order tuple create tolist foreach var tuple result customer print tuple printdump customer address print tuple printdump order print tuple printdump code prepwhich print codecustomer customer customer address customerid australia street order customerid lineitem line qty cost customer customer customer address customerid australia street order customerid lineitem line qty cost code open question comment place code fetch db columnstre db select db columnstre db fetch dynamic result https github servicestack servicestack ormlite dynamic result set select listobject object type important thing note ormlite query construct execute independent result map matter query raw custom sql type sql expression ormlite dataset return workout result map ppso codeselect lt sqlexpression lt code api ormlite map result primary sqlexpression type codedb lt deptemployee code custom column select match shape code poco ppthere way read custom schema work query independent choose map result codevar db lt deptemployee join lt select lt deptemployee firstname lastname code prepour recommendation esp type code orm ormlite create type custom poco select codeclass custom public string firstname set public string lastname set public string set db select lt custom printdump code prepwhich print nice code firstname lastname dept code prepthe primary benefit type access custom result codelist lt custom code ppif create custom type select ormlite href https github servicestack servicestack ormlite dynamic result set dynamic result api ppif happy know position field select codelist lt object code return select field order select codedb select lt list lt object printdump code prepprint code dept code prepotherwise name return select string object dictionary codedb select lt dictionary lt string object printdump code prepwhich print result similar custom poco name value maintain loose type object dictionary code firstname lastname dept code prepif select column codevar db lt deptemployee join lt select lt deptemployee lastname code prepyou make ormlite href https github servicestack servicestack ormlite convenient common usage datum access pattern convenient datum access api select column codedictionary lt string string code codedb dictionary lt string string printdump code prepwhich print code dept dept dept code prepnotice string object dictionary return result single codedictionary lt string string code strongfor row strong codelist lt dictionary lt string object code dictionary strongfor row strong pplikewise select field codevar db lt deptemployee join lt select lastname code prepthen select singular column result codelist lt string code codedb column lt string printdump code prepwhich print code code prepif want distinct result return codehashset lt string code codedb columndistinct lt string printdump code prepto return original important point matter query construct control sql generate ormlite strongonly return resultset strong map result strongmap target api strong result map execute custom sql codedb column lt string select lastname deptemployee printdump code prepor execute store procedure codedb column lt string exec printdump code prepi map type sql expression ormlite resultset map result return generally oppose dynamic add support dynamic commit https github servicestack servicestack ormlite commit fetch list dynamic object db selectdynamic clear myget cache https github servicestack servicestack wiki myget redownloade myget package pull late version important thing note ormlite query construct execute independent result map matter query raw custom sql type sql expression ormlite dataset return workout result map ppso codeselect lt sqlexpression lt code api ormlite map result primary sqlexpression type codedb lt deptemployee code custom column select match shape code poco ppthere way read custom schema work query independent choose map result codevar db lt deptemployee join lt select lt deptemployee firstname lastname code prepour recommendation esp type code orm ormlite create type custom poco select codeclass custom public string firstn,,,,,,, "me set public string lastname set public string set db select lt custom printdump code prepwhich print nice code firstname lastname dept code prepthe primary benefit type access custom result codelist lt custom code ppif create custom type select ormlite href https github servicestack servicestack ormlite dynamic result set dynamic result api ppif happy know position field select codelist lt object code return select field order select codedb select lt list lt object printdump code prepprint code dept code prepotherwise name return select string object dictionary codedb select lt dictionary lt string object printdump code prepwhich print result similar custom poco name value maintain loose type object dictionary code firstname lastname dept code prepif select column codevar db lt deptemployee join lt select lt deptemployee lastname code prepyou make ormlite href https github servicestack servicestack ormlite convenient common usage datum access pattern convenient datum access api select column codedictionary lt string string code codedb dictionary lt string string printdump code prepwhich print code dept dept dept code prepnotice string object dictionary return result single codedictionary lt string string code strongfor row strong codelist lt dictionary lt string object code dictionary strongfor row strong pplikewise select field codevar db lt deptemployee join lt select lastname code prepthen select singular column result codelist lt string code codedb column lt string printdump code prepwhich print code code prepif want distinct result return codehashset lt string code codedb columndistinct lt string printdump code prepto return original important point matter query construct control sql generate ormlite strongonly return resultset strong map result strongmap target api strong result map execute custom sql codedb column lt string select lastname deptemployee printdump code prepor execute store procedure codedb column lt string exec printdump code prepi map type sql expression ormlite resultset map result return anonymous type object generic type accessible sqlexpression option access datum type access custom type""",1,NULL,How do join tables in ServiceStack OrmLite and select both classes ormlite servicestack pI like to do simple SQL join in ServiceStack OrmLite and get both tables as the corresponding NET objects ppIn LINQ to Entities it would be something like this ppre codeClaim Join Policy gt PolicyId gt Id gt new Claim Policy code prepThis would give me an anonymous type with codeClaim code and codePolicy code properties ppI ve looked at the OrmLite href https github com ServiceStack ServiceStack OrmLite advanced example rel noreferrer Advanced Join Example but that only selects some of the properties of each type into 3rd type of object codeFullCustomerInfo code don want to repeat all my properties in another object just want to use the existing objects ppIn reality the query can be much more complex ppre codeClaim Join Policy gt PolicyId gt Id gt new Claim Policy Where gt Policy Something gt Claim Something Select gt Claim SomethingElse code prep etc but even if OrmLite could just do the join in SQL and had to do the rest in memory it would be good start pThis wasn available in OrmLite previously but as it nice feature to have ve just added support for codeSelectMulti lt T2 gt code and codeSelectMultiAsync code href https github com ServiceStack ServiceStack OrmLite commit b8b26326ce46ac04191eedba4589d59fd4afaafd rel nofollow noreferrer in this commit which now lets you read up to of your joined tables from single query ppSo to use OrmLite Advanced Join Example you can construct typed Join Query with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt code prepThen use the codeSelectMulti code APIs to populate the tables you re interested in ppre codevar results db SelectMulti lt Customer CustomerAddress Order gt code prepWhich will return codeList lt Tuple lt T2 T3 gt gt code giving you typed access to your populated POCOs from tables in your joined query ppIf preferred there also an async version ppre codevar results await db SelectMultiAsync lt Customer CustomerAddress Order gt code prepThe new codeSelectMulti code APIs are available from v4 57 that now href https github com ServiceStack ServiceStack wiki MyGet rel nofollow noreferrer available on MyGet ph2Create Typed Queries in OrmLite and Execute them in Dapper h2pAn alternative is to use combination of OrmLite to create the typed query using its built in href https github com ServiceStack ServiceStack OrmLite reference conventions rel nofollow noreferrer Reference Conventions and then use OrmLite embedded version of Dapper to Query Multiple result sets into your existing POCO Types ppTo start with create your Typed Query Expression and have it return all fields from all tables with ppre codevar db From lt Customer gt Join lt Customer CustomerAddress gt Join lt Customer Order gt Select code prepThen pass the generated SQL from the above typed SQL Expression into Dapper Query Multiple feature to read the results into List of Tuples of the different joined tables ppre codeusing var multi db QueryMultiple ToSelectStatement var results multi Read lt Customer CustomerAddress Order Tuple lt Customer CustomerAddress Order gt gt Tuple Create ToList foreach var tuple in results Customer Print tuple Item1 PrintDump Customer Address Print tuple Item2 PrintDump Order Print tuple Item3 PrintDump code prepWhich prints out something like ppre codeCustomer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 Customer Id Name Customer Customer Address Id CustomerId AddressLine1 Australia Street Order Id CustomerId LineItem Line Qty Cost 99 code pre OrmLite query to select some of the columns from each of joined tables ormlite servicestack pFollowing on from href https stackoverflow com questions 37416424 how do join tables in servicestack ormlite and select both classes 37420341 noredirect comment62383922 37420341 this comment how can do ServiceStack OrmLite query that joins two or more tables and returns some of the columns from each of them ppUsing the OrmLite codeDoes only populate Select fields wildcard code unit test as example like to do something like this ppre codepublic class DeptEmployee PrimaryKey public int Id get set public string FirstName get set public string LastName get set References typeof Department2 public int DepartmentId get set Reference public Department2 Department get set public class Department2 PrimaryKey public int Id get set public string Name get set var db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de FirstName de LastName d2 Name var results db Select code prepThe above does not return list of anonymous types containing FirstName LastName and Name as expect It still returns list of codeDeptEmployee code objects but with only FirstName and LastName populated pAn important thing to note in OrmLite is how the query is constructed and executed is independent to how the results are mapped It doesn matter whether the query is raw custom SQL or Typed SQL Expression OrmLite only looks at the dataset returned to workout how the results should be mapped ppSo when use the codeSelect lt gt SqlExpression lt gt code API OrmLite will always try to map the results into the primary SqlExpression Type in codedb From lt DeptEmployee gt code which isn what you want since the custom columns you ve selected don match the shape of codeDeptEmployee code POCO ppThere are few different ways to read custom schema which all work off the same query as it independent to how you chose to map the results ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de FirstName de LastName d2 Name code prepOur recommendation esp for typed code first ORM like OrmLite is to create Typed Custom POCO and select that ppre codeclass Custom public string FirstName get set public string LastName get set public string Name get set db Select lt Custom gt PrintDump code prepWhich will print out nice ppre code FirstName First LastName Last Name Dept code prepThe primary benefit is that you get Typed access to your custom results in codeList lt Custom gt code ppIf you don want to create custom Type you can Select OrmLite href https github com ServiceStack ServiceStack OrmLite dynamic result sets Dynamic Result APIs ppIf you re happy knowing the positions of the different fields you can select codeList lt object gt code which will return the selected fields in the order they were selected ppre codedb Select lt List lt object gt gt PrintDump code prepPrints ppre code First Last Dept code prepOtherwise if you also want the names returned you can select string object dictionary ppre codedb Select lt Dictionary lt string object gt gt PrintDump code prepWhich prints results similar to the Custom POCO but the names and corresponding values are maintained in loose typed object Dictionary ppre code FirstName First LastName Last Name Dept code prepIf you were instead only selecting columns ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select lt DeptEmployee Department2 gt de d2 gt new de LastName d2 Name code prepYou can make of OrmLite href https github com ServiceStack ServiceStack OrmLite convenient common usage data access patterns convenient data access APIs which will let you select columns into codeDictionary lt string string gt code ppre codedb Dictionary lt string string gt PrintDump code prepWhich prints ppre code Last Dept Last Dept Last Dept code prepNotice this is very different to the string object dictionary above as it returns results in single codeDictionary lt string string gt code strongfor all rows strong instead of codeList lt Dictionary lt string object gt gt code which has Dictionary strongfor each row strong ppLikewise if you were only selecting field ppre codevar db From lt DeptEmployee gt Join lt Department2 gt Select gt LastName code prepThen you can select singular column of results in codeList lt string gt code ppre codedb Column lt string gt PrintDump code prepWhich prints ppre code Last Last Last code prepIf you instead wanted distinct results you can return them in codeHashSet lt string gt code with ppre codedb ColumnDistinct lt string gt PrintDump code prepTo return to the original important point it doesn matter how the query was constructed which just controls the SQL that generated OrmLite strongonly looks at the returned resultset strong to Map the results which it tries to strongmap to the target API strong that you ve specified you want the results mapped into so executing custom SQL ppre codedb Column lt string gt SELECT LastName FROM DeptEmployee PrintDump code prepOr if you executed Stored Procedure ppre codedb Column lt string gt EXEC GetLastNamesFromDeptEmployees PrintDump code prepIs mapped exactly the same way if you used typed SQL Expression OrmLite only looks at the resultset which it maps to how you want the results returned,,,,, 20330,254611,1325798,Student Supporter,NULL,NULL,0,NULL,NULL 20331,375023,815239,Popular Question,NULL,NULL,0,NULL,NULL 20332,1365392,805362,Caucus Caucus Pundit,NULL,NULL,0,NULL,NULL 20333,1015943,805362,Caucus Caucus Pundit,NULL,NULL,0,NULL,NULL 20334,230052,548807,Popular Question Teacher Yearling Notable Question,NULL,NULL,0,NULL,NULL 20335,193482,1100767,NULL,NULL,NULL,0,NULL,NULL 20336,105426,821467,NULL,NULL,NULL,0,NULL,NULL 20337,334439,1283962,NULL,NULL,NULL,0,NULL,NULL 20338,1720202,1442047,NULL,NULL,NULL,0,NULL,NULL 20339,406038,1442047,NULL,NULL,NULL,0,NULL,NULL 20340,242183,407973,NULL,NULL,NULL,0,NULL,NULL 20341,73183,812573,Editor Informed Autobiographer Caucus Constituent Critic Yearling Caucus Necromancer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 20342,34475,334734,NULL,NULL,NULL,0,NULL,NULL 20343,853,267839,Yearling Caucus,NULL,NULL,0,NULL,NULL 20344,1291808,1378482,NULL,NULL,NULL,0,NULL,NULL 20345,425047,1061632,NULL,NULL,NULL,0,NULL,NULL 20346,291731,882097,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20347,648344,1564446,NULL,NULL,NULL,0,NULL,NULL 20348,108654,554761,Yearling,NULL,NULL,0,NULL,NULL 20349,89478,778487,NULL,NULL,NULL,0,NULL,NULL 20350,1024113,778487,NULL,NULL,NULL,0,NULL,NULL 20351,541453,1087181,NULL,NULL,NULL,0,NULL,NULL 20352,434298,874395,NULL,NULL,NULL,0,NULL,NULL 20353,43385,708218,NULL,NULL,NULL,0,NULL,NULL 20354,211643,502505,NULL,NULL,NULL,0,NULL,NULL 20355,232278,124946,Nice Answer Good Answer Inquisitive Good Question Famous Question Notable Question Notable Question Necromancer Popular Question Nice Answer Yearling Popular Question Favorite Question Good Question Great Answer Nice Answer Necromancer Nice Answer Great Answer Archaeologist Necromancer Nice Answer Famous Question Good Answer Notable Question Great Answer Necromancer Tumbleweed Popular Question Notable Question Necromancer Nice Answer Nice Question Yearling Good Question Guru Revival Nice Question Favorite Question Good Answer Favorite Question Nice Answer Nice Question Great Question Popular Question Good Answer Necromancer Famous Question Popular Question Taxonomist Nice Question Favorite Question Yearling Popular Question Famous Question Announcer Good Question,NULL,NULL,0,NULL,NULL 20356,142253,1513802,NULL,NULL,NULL,0,NULL,NULL 20357,414228,1513802,NULL,NULL,NULL,0,NULL,NULL 20358,471392,956242,Popular Question Editor,NULL,NULL,0,NULL,NULL 20359,38771,452574,NULL,NULL,NULL,0,NULL,NULL 20360,73980,197910,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20361,533109,365252,Nice Answer Guru php Yearling Caucus Great Answer Necromancer Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 20362,177058,1194456,Yearling Nice Answer Enlightened Good Answer django-rest-framework Caucus Nice Answer Enlightened django Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 20363,14865,108369,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20364,103285,883919,NULL,NULL,NULL,0,NULL,NULL 20365,75747,483566,Revival Announcer Revival Yearling,NULL,NULL,0,NULL,NULL 20366,36457,255240,Yearling Good Question Popular Question Popular Question Good Question Good Answer Famous Question Popular Question Popular Question Good Answer Yearling Famous Question Notable Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 20367,411759,1440324,NULL,NULL,NULL,0,NULL,NULL 20368,278699,590938,NULL,NULL,NULL,0,NULL,NULL 20369,2781320,911397,NULL,NULL,NULL,0,NULL,NULL 20370,7347326,911397,NULL,NULL,NULL,0,NULL,NULL 20371,279633,1301017,Supporter,NULL,NULL,0,NULL,NULL 20372,191708,749836,Revival Student Yearling Tumbleweed Popular Question Necromancer Necromancer Yearling Scholar Nice Answer Curious Commentator Yearling Popular Question Nice Answer Notable Question Yearling Notable Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20373,14642,787935,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 20374,264051,1318727,NULL,NULL,NULL,0,NULL,NULL 20375,55188,52472,Necromancer Yearling,NULL,NULL,0,NULL,NULL 20376,659017,168352,Nice Answer Enlightened Good Answer Pundit Good Answer Guru Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Yearling Good Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Populist Great Answer Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 20377,423206,291287,Popular Question Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 20378,65107,1173020,Favorite Question Necromancer Yearling Necromancer Great Question Revival Revival Nice Answer Necromancer Necromancer Necromancer Yearling Necromancer Good Answer Necromancer Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Explainer Necromancer Nice Answer Nice Answer Necromancer Announcer Necromancer Necromancer Yearling Necromancer ruby elixir,NULL,NULL,0,NULL,NULL 20379,349306,653568,NULL,NULL,NULL,0,NULL,NULL 20380,63607,817871,Notable Question Yearling Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 20381,142605,1067107,Nice Answer,NULL,NULL,0,NULL,NULL 20382,45167,1548052,Notable Question Critic Caucus Yearling Promoter Necromancer Revival Necromancer Yearling Nice Answer Autobiographer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20383,992837,880663,NULL,NULL,NULL,0,NULL,NULL 20384,845423,229672,Nice Answer Enlightened Good Answer Caucus Yearling java Good Answer Good Answer Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 20385,457480,422267,Popular Question,NULL,NULL,0,NULL,NULL 20386,46589,537866,NULL,NULL,NULL,0,NULL,NULL 20387,400892,507842,NULL,NULL,NULL,0,NULL,NULL 20388,621576,944332,NULL,NULL,NULL,0,NULL,NULL 20389,551944,798497,NULL,NULL,NULL,0,NULL,NULL 20390,709995,504325,Popular Question Favorite Question Notable Question Popular Question Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Custodian Custodian Famous Question Popular Question Nice Question Popular Question Notable Question Popular Question Caucus Famous Question Socratic Notable Question Famous Question Notable Question Yearling Notable Question Popular Question Popular Question Notable Question Revival Popular Question Popular Question Popular Question Nice Question Popular Question Good Question Popular Question Popular Question Popular Question Famous Question Famous Question Yearling Nice Question,NULL,How to enable debugging for CLion clion pI using out of the box CLion installation on my Apple MacBook creating new project selecting proper build configuration putting breakpoint on first line of hello world application in other words doing everything necessary to start debug build BUT after pressing debug button nothing happens ppMessages Build shows the following list of messages ppre code usr local bin cmake build Users Lu4 Projects CppDebug1 cmake build debug target CppDebug1 100 Built target CppDebug1 code prepAnd thats it ve tried everything changing CMake version changing debugger version changing version from 14 to 11 pp href https imgur com VPfuL4i png rel nofollow noreferrer img src https imgur com VPfuL4i png alt Preferences ppIt looks like debug build is not starting an application at all ppAny advice on this matter Thank you in advance CMakeLists txt contains SET CMAKE FLAGS DEBUG DEBUG if understood you correctly It looks as the executable doesn start at all no program messages are displayed How to enable debugging for CLion clion pI using out of the box CLion installation on my Apple MacBook creating new project selecting proper build configuration putting breakpoint on first line of hello world application in other words doing everything necessary to start debug build BUT after pressing debug button nothing happens ppMessages Build shows the following list of messages ppre code usr local bin cmake build Users Lu4 Projects CppDebug1 cmake build debug target CppDebug1 100 Built target CppDebug1 code prepAnd thats it ve tried everything changing CMake version changing debugger version changing version from 14 to 11 pp href https imgur com VPfuL4i png rel nofollow noreferrer img src https imgur com VPfuL4i png alt Preferences ppIt looks like debug build is not starting an application at all ppAny advice on this matter Thank you in advance http imgur com FVOGJEj png How to enable debugging for CLion clion pI using out of the box CLion installation on my Apple MacBook creating new project selecting proper build configuration putting breakpoint on first line of hello world application in other words doing everything necessary to start debug build BUT after pressing debug button nothing happens ppMessages Build shows the following list of messages ppre code usr local bin cmake build Users Lu4 Projects CppDebug1 cmake build debug target CppDebug1 100 Built target CppDebug1 code prepAnd thats it ve tried everything changing CMake version changing debugger version changing version from 14 to 11 pp href https imgur com VPfuL4i png rel nofollow noreferrer img src https imgur com VPfuL4i png alt Preferences ppIt looks like debug build is not starting an application at all ppAny advice on this matter Thank you in advance http imgur com jA8pkhe png How to enable debugging for CLion clion pI using out of the box CLion installation on my Apple MacBook creating new project selecting proper build configuration putting breakpoint on first line of hello world application in other words doing everything necessary to start debug build BUT after pressing debug button nothing happens ppMessages Build shows the following list of messages ppre code usr local bin cmake build Users Lu4 Projects CppDebug1 cmake build debug target CppDebug1 100 Built target CppDebug1 code prepAnd thats it ve tried everything changing CMake version changing debugger version changing version from 14 to 11 pp href https imgur com VPfuL4i png rel nofollow noreferrer img src https imgur com VPfuL4i png alt Preferences ppIt looks like debug build is not starting an application at all ppAny advice on this matter Thank you in advance Yes the build is working the application runs when you pick just Run but it doesn when you pick Debug,1,How to enable debugging for CLion clion pI using out of the box CLion installation on my Apple MacBook creating new project selecting proper build configuration putting breakpoint on first line of hello world application in other words doing everything necessary to start debug build BUT after pressing debug button nothing happens ppMessages Build shows the following list of messages ppre code usr local bin cmake build Users Lu4 Projects CppDebug1 cmake build debug target CppDebug1 100 Built target CppDebug1 code prepAnd thats it ve tried everything changing CMake version changing debugger version changing version from 14 to 11 pp href https imgur com VPfuL4i png rel nofollow noreferrer img src https imgur com VPfuL4i png alt Preferences ppIt looks like debug build is not starting an application at all ppAny advice on this matter Thank you in advance,NULL 20391,222778,1139639,Teacher Supporter Editor Commentator Yearling Caucus Yearling Yearling Announcer Critic Announcer,NULL,NULL,0,NULL,NULL 20392,360306,243901,NULL,NULL,NULL,0,NULL,NULL 20393,176656,450810,NULL,NULL,NULL,0,NULL,NULL 20394,187847,347569,NULL,NULL,NULL,0,NULL,NULL 20395,27503,1295576,NULL,NULL,NULL,0,NULL,NULL 20396,210786,980715,NULL,NULL,NULL,0,NULL,NULL 20397,409600,563168,NULL,NULL,NULL,0,NULL,NULL 20398,1959610,93827,Notable Question,NULL,NULL,0,NULL,NULL 20399,41060,622302,NULL,NULL,NULL,0,NULL,NULL 20400,45558,1192693,Nice Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 20401,354075,1246554,Teacher Supporter,NULL,NULL,0,NULL,NULL 20402,1045214,1060148,NULL,NULL,NULL,0,NULL,NULL 20403,913322,293502,Notable Question,NULL,NULL,0,NULL,NULL 20404,144753,326745,Announcer Revival Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 20405,580654,1119454,Popular Question Popular Question Popular Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 20406,407320,874317,Popular Question,NULL,NULL,0,NULL,NULL 20407,107380,662716,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20408,1511321,1373617,Popular Question Popular Question Critic Popular Question Notable Question Popular Question Notable Question Self-Learner Popular Question Popular Question Popular Question,NULL,jQuery pass more parameters into callback javascript jquery function callback arguments pIs there way to pass more data into callback function in jQuery ppI have two functions and want the callback to the code post code for example to pass in both the resulting data of the AJAX call as well as few custom arguments ppre codefunction clicked var myDiv my div ERROR Says data not defined post someurl php someData doSomething data myDiv json ERROR Would pass in myDiv as curData wrong post someurl php someData doSomething data myDiv json function doSomething curData curDiv code prepI want to be able to pass in my own parameters to callback as well as the result returned from the AJAX call soved my problem returning the data after AJAX is completed and then doSomething,0,NULL,NULL 20409,825553,1152484,Popular Question Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 20410,68692,1538924,NULL,NULL,NULL,0,NULL,NULL 20411,58060,690316,Census,NULL,NULL,0,NULL,NULL 20412,616644,895612,NULL,NULL,NULL,0,NULL,NULL 20413,14462,136305,Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 20414,591251,1295719,NULL,NULL,NULL,0,NULL,NULL 20415,10602,293356,Popular Question Famous Question Popular Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 20416,471554,382669,NULL,NULL,NULL,0,NULL,NULL 20417,1025052,582726,Teacher Curious Popular Question Informed Autobiographer,NULL,NULL,0,NULL,NULL 20418,365655,937213,NULL,NULL,NULL,0,NULL,NULL 20419,1755690,937213,NULL,NULL,NULL,0,NULL,NULL 20420,7567,456196,Notable Question Yearling,NULL,NULL,0,NULL,NULL 20421,290672,923614,NULL,NULL,NULL,0,NULL,NULL 20422,652419,500975,Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20423,147330,737866,NULL,NULL,NULL,0,NULL,NULL 20424,115108,168720,Famous Question Yearling Nice Answer Enlightened Yearling Famous Question Nice Question Yearling,NULL,,0,, 20425,122484,629176,Documentation User,NULL,NULL,0,NULL,NULL 20426,307217,1122655,Informed,NULL,NULL,0,NULL,NULL 20427,136787,464549,Student Yearling Civic Duty Enthusiast Caucus Announcer Necromancer,NULL,NULL,0,NULL,NULL 20428,1154895,336237,NULL,NULL,NULL,0,NULL,NULL 20429,13383,1270321,Yearling,NULL,NULL,0,NULL,NULL 20430,11102,314688,NULL,NULL,NULL,0,NULL,NULL 20431,6703719,850833,Nice Answer jquery-selectors Good Answer Good Answer Sportsmanship Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer jquery Guru Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Good Answer Good Answer Good Answer Guru Guru Yearling Great Answer,NULL,NULL,0,NULL,NULL 20432,209103,850833,Nice Answer jquery-selectors Good Answer Good Answer Sportsmanship Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer jquery Guru Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Good Answer Good Answer Good Answer Guru Guru Yearling Great Answer,NULL,NULL,0,NULL,NULL 20433,535348,184302,Necromancer,NULL,NULL,0,NULL,NULL 20434,18960,1299603,Popular Question Tumbleweed Enthusiast Yearling Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 20435,1220338,1160911,Popular Question,NULL,NULL,0,NULL,NULL 20436,373706,158581,NULL,NULL,NULL,0,NULL,NULL 20437,251459,364253,Notable Question Notable Question Nice Question Yearling Civic Duty Famous Question Notable Question Notable Question Famous Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Yearling Notable Question Nice Question Nice Question Good Question Notable Question Famous Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 20438,88621,796971,NULL,NULL,NULL,0,NULL,NULL 20439,358661,158668,Good Answer Nice Answer Enlightened Good Answer Great Question Favorite Question c# Good Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Yearling Revival Good Answer Great Answer Nice Answer Guru Guru Guru Good Answer html Guru Yearling,NULL,NULL,0,NULL,NULL 20440,238948,491092,Custodian Informed Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 20441,373,134403,Notable Question,NULL,NULL,0,NULL,NULL 20442,742283,895588,NULL,NULL,NULL,0,NULL,NULL 20443,79387,1172086,Student Teacher Supporter Notable Question,NULL,NULL,0,NULL,NULL 20444,283848,846249,Critic Yearling Nice Answer Caucus Commentator Yearling Revival Necromancer Caucus Caucus Nice Answer Enlightened,NULL,pUse the href http www ruby doc org stdlib libdoc uri rdoc rel noreferrer URI library ppre codedef uri string uri URI parse string http https include uri scheme rescue URI BadURIError falserescue URI InvalidURIError falseend code prepThis is very simple example The advantage of using the codeURI code library over regular expression is that you can perform complex checks Using exceptions in this matter is overkill Please use this answer http stackoverflow com questions 1805761 check if url is valid ruby url URI regexp,0,NULL,NULL 20445,235500,1383043,NULL,NULL,NULL,0,NULL,NULL 20446,199409,236092,Custodian Citizen Patrol Nice Answer Popular Question Caucus Yearling Famous Question Good Question Notable Question Nice Question Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 20447,52073,1052220,Self-Learner Yearling Critic,NULL,NULL,0,NULL,NULL 20448,399729,1123331,Popular Question,NULL,NULL,0,NULL,NULL 20449,893514,577875,Popular Question Notable Question Yearling Famous Question Critic Disciplined Popular Question Famous Question Census Custodian Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20450,193611,1505043,NULL,NULL,NULL,0,NULL,NULL 20451,501667,72656,Fanatic Custodian Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 20452,306086,413899,NULL,NULL,NULL,0,NULL,NULL 20453,1054738,594587,NULL,NULL,NULL,0,NULL,NULL 20454,453595,764072,NULL,NULL,NULL,0,NULL,NULL 20455,218337,230908,NULL,NULL,NULL,0,NULL,NULL 20456,357119,282343,Notable Question Notable Question Notable Question Necromancer Notable Question Yearling Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Good Question Popular Question Good Question Popular Question Popular Question Citizen Patrol Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Necromancer Nice Question Famous Question Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Great Question Popular Question Popular Question Announcer Notable Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Census Popular Question Notable Question Yearling Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20457,247870,1083888,Yearling Good Question Popular Question Nice Answer Popular Question Revival Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 20458,69500,569061,Famous Question Nice Answer Good Question Nice Question Good Question Yearling Famous Question Good Answer Yearling Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 20459,537519,324307,Yearling Notable Question Nice Answer Enlightened Quorum Notable Question Notable Question Notable Question Nice Question Yearling Custodian Popular Question Nice Question Nice Answer Enlightened Census Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 20460,1295004,324307,Yearling Notable Question Nice Answer Enlightened Quorum Notable Question Notable Question Notable Question Nice Question Yearling Custodian Popular Question Nice Question Nice Answer Enlightened Census Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 20461,634985,718031,NULL,NULL,NULL,0,NULL,NULL 20462,272514,434986,Popular Question Caucus,NULL,NULL,0,NULL,NULL 20463,506360,904767,Popular Question Yearling Nice Answer Self-Learner Popular Question Nice Answer Notable Question Nice Question Necromancer Notable Question Good Answer Yearling Famous Question Nice Question Good Answer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 20464,828581,1134416,NULL,NULL,NULL,0,NULL,NULL 20465,20752,1395173,Teacher Tumbleweed,NULL,NULL,0,NULL,NULL 20466,1029047,299999,NULL,NULL,NULL,0,NULL,NULL 20467,1351571,502828,NULL,NULL,NULL,0,NULL,NULL 20468,35345,1058998,NULL,NULL,NULL,0,NULL,NULL 20469,127101,1068518,NULL,NULL,NULL,0,NULL,NULL 20470,136379,1032489,Commentator,NULL,NULL,0,NULL,NULL 20471,827210,584847,NULL,NULL,NULL,0,NULL,NULL 20472,314942,1316360,NULL,NULL,NULL,0,NULL,NULL 20473,753560,752462,Popular Question Yearling Good Question Famous Question Notable Question Notable Question Notable Question Famous Question Nice Answer Enlightened Notable Question Yearling Good Question Notable Question Notable Question Yearling Good Question Good Question,NULL,NULL,0,NULL,NULL 20474,81907,690385,NULL,NULL,NULL,0,NULL,NULL 20475,62229,1411124,Necromancer Yearling Necromancer Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 20476,45612,191426,Nice Answer Good Answer Notable Question Nice Answer Yearling Notable Question Nice Answer Enlightened Yearling Popular Question Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 20477,182404,606907,Popular Question Yearling Popular Question Notable Question Yearling Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20478,618917,1339611,NULL,NULL,NULL,0,NULL,NULL 20479,142550,1229125,NULL,NULL,NULL,0,NULL,NULL 20480,897643,406920,Revival Popular Question Popular Question Popular Question Revival Famous Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 20481,224829,688452,Good Answer Yearling Nice Answer Good Answer Guru Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20482,252907,80168,NULL,NULL,NULL,0,NULL,NULL 20483,1171981,1200802,NULL,NULL,NULL,0,NULL,NULL 20484,252011,1184709,Supporter,NULL,NULL,0,NULL,NULL 20485,340394,723764,NULL,NULL,NULL,0,NULL,NULL 20486,287249,1245095,Census,NULL,NULL,0,NULL,NULL 20487,138366,1343063,NULL,NULL,NULL,0,NULL,NULL 20488,50904,396793,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 20489,836351,725958,NULL,NULL,NULL,0,NULL,NULL 20490,1177748,743504,NULL,NULL,NULL,0,NULL,NULL 20491,437189,214998,Tag Editor Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Question Guru Yearling Electorate Good Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 20492,7191643,1026597,NULL,NULL,NULL,0,NULL,NULL 20493,147692,437181,NULL,NULL,NULL,0,NULL,NULL 20494,187425,276354,Autobiographer Supporter,NULL,NULL,0,NULL,NULL 20495,45005,403664,ruby-on-rails Excavator Nice Answer Enlightened Yearling Nice Answer Good Answer Popular Question Yearling Announcer Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 20496,16242,36780,Popular Question Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 20497,69496,489003,Popular Question Popular Question Revival Nice Answer Notable Question Popular Question Yearling Nice Question Notable Question Famous Question Popular Question Notable Question Good Question Famous Question Great Question Popular Question Yearling Popular Question Custodian Popular Question Custodian Good Answer Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 20498,638249,1207100,NULL,NULL,NULL,0,NULL,NULL 20499,887376,1015523,Famous Question Yearling Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20500,255189,854385,NULL,NULL,NULL,0,NULL,NULL 20501,1905,437665,NULL,NULL,NULL,0,NULL,NULL 20502,3997907,855757,Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 20503,773953,83236,Custodian Famous Question,NULL,NULL,0,NULL,NULL 20504,222849,232684,Good Answer Yearling Editor Yearling Custodian Yearling Yearling Great Answer Yearling Yearling,NULL,pI ve always kept this around in util file You can use it as mixin on your own classes too ppre codeclass dotdict dict dot notation access to dictionary attributes getattr dict get setattr dict setitem delattr dict delitem mydict val it works nested dict val nested works too mydict dotdict mydict mydict val it works mydict nested dotdict nested dict mydict nested val nested works too code pre it does not auto dotdict its members so you have to do foo dotdict bar baz dotdict and foo bar works,0,NULL,NULL 20505,226116,111052,Popular Question Notable Question Notable Question Yearling Good Answer Popular Question Good Question Famous Question Favorite Question Famous Question Popular Question Good Question Popular Question Yearling Good Question Nice Question Good Question Good Question Guru Famous Question Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 20506,268168,174299,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 20507,1203392,462078,NULL,NULL,NULL,0,NULL,NULL 20508,252034,462078,NULL,NULL,NULL,0,NULL,NULL 20509,295016,881089,NULL,NULL,NULL,0,NULL,NULL 20510,19401,1025842,NULL,NULL,NULL,0,NULL,NULL 20511,98607,247763,Yearling Custodian Guru Good Answer Reviewer Notable Question Good Answer Caucus Constituent Yearling Census Guru Famous Question Popular Question Notable Question Announcer Popular Question Caucus Constituent Nice Question Announcer Documentation User Announcer Census Yearling Notable Question Caucus Announcer Great Answer Notable Question,NULL,NULL,0,NULL,NULL 20512,36464,45615,Yearling,NULL,NULL,0,NULL,NULL 20513,983580,834652,Notable Question,NULL,NULL,0,NULL,NULL 20514,97906,230401,Popular Question Nice Answer Enlightened Yearling Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 20515,987963,477466,NULL,NULL,NULL,0,NULL,NULL 20516,91929,833757,NULL,NULL,NULL,0,NULL,NULL 20517,825325,22070,Yearling,NULL,NULL,0,NULL,NULL 20518,108023,866595,NULL,NULL,NULL,0,NULL,NULL 20519,100150,1301748,NULL,NULL,NULL,0,NULL,NULL 20520,19727,137681,Yearling Yearling,NULL,NULL,0,NULL,NULL 20521,58182,98078,Nice Answer Enlightened Nice Answer Good Question Necromancer Nice Answer Popular Question Yearling Necromancer Popular Question Guru Famous Question Good Answer Nice Question Notable Question Popular Question Notable Question Famous Question Nice Answer Enlightened Notable Question Yearling Enlightened Nice Question Popular Question Popular Question Autobiographer Nice Question Caucus Great Answer Yearling Popular Question Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 20522,631632,346287,NULL,NULL,NULL,0,NULL,NULL 20523,200584,298036,Nice Answer Yearling Nice Question Great Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 20524,71927,399985,NULL,NULL,NULL,0,NULL,NULL 20525,163191,754175,Nice Question Popular Question Notable Question Yearling Caucus Citizen Patrol Custodian Custodian Custodian Notable Question Popular Question Nice Question Excavator Documentation User Popular Question Necromancer Yearling,NULL,h2Tmux pane PWD at the prompt h2pThere are several ways that you can do this do it myself The easiest and most customisable way is to set global variable that tmux can access ppFirst add this to your code bashrc code or code zshrc code file to set the PWD variable after every prompt ppre code create global per pane variable that holds the pane PWDexport PS1 PS1 TMUX amp amp tmux setenv TMUX PWD tmux display tr PWD code prepNow make script that displays this variable such as code bin display tmux pane pwd sh code ppre code bin bashtmux showenv TMUX PWD tmux display tr sed code prepAll that is left is to add this to the satis bar in code tmux conf code ppre codeset status left bin display tmux pane pwd sh code prepIt may take awhile to update after switching panes so you can change that with this command By default it updates every 15 seconds this will make it seconds Change it as you like ppre codeset status interval code prehrh2Tmux pane PWD in other programs h2pSometimes it is useful to open up pane or window and immediately execute program instead of booting up another shell codetmux new window vim code This way when you close that program you also close the window Unfortunately the way describe above requires prompt in order to broadcast the status of PWD However in many programs you can work around this fairly easily Here an example of what is in my code vimrc code file so that vim updates the PWD status whenever it changes buffers ppre codeif exists TMUX Get the environment variable let tmux pane name cmd tmux display let tmux pane name substitute system tmux pane name cmd let tmux env var TMUX PWD substitute tmux pane name unlet tmux pane name tmux pane name cmd function BroadcastTmuxCwd let filename substitute expand HOME let output system tmux setenv tmux env var filename endfunction autocmd BufEnter call BroadcastTmuxCwd endif code pre yes in principle this is possible have previously gotten this to work using tmux v1 long time ago Recently have not been using my code base for tmux modification but If my memory serves me think it was through sneaky tmux inside tmux Perhaps this question may help you http stackoverflow com questions 7004700 adding informative statusbar to fullscreen terminal window Good luck h2Tmux pane PWD at the prompt h2pThere are several ways that you can do this do it myself The easiest and most customisable way is to set global variable that tmux can access ppFirst add this to your code bashrc code or code zshrc code file to set the PWD variable after every prompt ppre code create global per pane variable that holds the pane PWDexport PS1 PS1 TMUX amp amp tmux setenv TMUX PWD tmux display tr PWD code prepNow make script that displays this variable such as code bin display tmux pane pwd sh code ppre code bin bashtmux showenv TMUX PWD tmux display tr sed code prepAll that is left is to add this to the satis bar in code tmux conf code ppre codeset status left bin display tmux pane pwd sh code prepIt may take awhile to update after switching panes so you can change that with this command By default it updates every 15 seconds this will make it seconds Change it as you like ppre codeset status interval code prehrh2Tmux pane PWD in other programs h2pSometimes it is useful to open up pane or window and immediately execute program instead of booting up another shell codetmux new window vim code This way when you close that program you also close the window Unfortunately the way describe above requires prompt in order to broadcast the status of PWD However in many programs you can work around this fairly easily Here an example of what is in my code vimrc code file so that vim updates the PWD status whenever it changes buffers ppre codeif exists TMUX Get the environment variable let tmux pane name cmd tmux display let tmux pane name substitute system tmux pane name cmd let tmux env var TMUX PWD substitute tmux pane name unlet tmux pane name tmux pane name cmd function BroadcastTmuxCwd let filename substitute expand HOME let output system tmux setenv tmux env var filename endfunction autocmd BufEnter call BroadcastTmuxCwd endif code pre this may help more http superuser com questions 322896 tmux sharing current window title from within nested tmux sessions 323319 323319,0,NULL,NULL 20526,1914933,1147313,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 20527,313959,668030,NULL,NULL,NULL,0,NULL,NULL 20528,18112,86024,Yearling Good Question Nice Answer Yearling Civic Duty Notable Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 20529,450997,1294070,NULL,NULL,NULL,0,NULL,NULL 20530,83112,406467,NULL,NULL,NULL,0,NULL,NULL 20531,364775,535504,Caucus Constituent,NULL,NULL,0,NULL,NULL 20532,642325,258109,Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 20533,159605,1143549,Informed Yearling Autobiographer Yearling Citizen Patrol Yearling Yearling Explainer Tenacious,NULL,NULL,0,NULL,NULL 20534,213087,907682,NULL,NULL,NULL,0,NULL,NULL 20535,1879482,430792,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 20536,9345,301059,Unsung Hero Yearling Curious Guru Yearling Self-Learner Popular Question Census Informed Notable Question Yearling,NULL,NULL,0,NULL,NULL 20537,23322,186101,Notable Question Notable Question Popular Question Yearling Good Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 20538,68824,437414,android Yearling Good Answer Popular Question Great Answer Notable Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 20539,201481,943085,Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 20540,1425710,36453,Notable Question,NULL,NULL,0,NULL,NULL 20541,19379,212470,NULL,NULL,NULL,0,NULL,NULL 20542,124747,937255,NULL,NULL,NULL,0,NULL,NULL 20543,677308,897413,Critic,NULL,NULL,0,NULL,NULL 20544,1055021,702064,NULL,NULL,NULL,0,NULL,NULL 20545,27828,1065013,Autobiographer,NULL,NULL,0,NULL,NULL 20546,42134,1069331,NULL,NULL,NULL,0,NULL,NULL 20547,226941,898846,Teacher,NULL,NULL,0,NULL,NULL 20548,49323,522516,NULL,NULL,NULL,0,NULL,NULL 20549,3730,93448,Good Answer Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Favorite Question Good Answer rabbitmq Nice Answer Enlightened Good Answer Famous Question Yearling Nice Question Nice Answer Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Question Nice Answer Enlightened Nice Question Nice Answer node.js Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Good Question Great Question Good Answer Guru Yearling Notable Question Good Answer Good Answer Popular Question Notable Question Popular Question Good Answer Guru Good Answer rabbitmq amqp Yearling Nice Answer Enlightened Stellar Question Nice Answer Nice Answer Enlightened Nice Answer Famous Question Guru,NULL,NULL,0,NULL,NULL 20550,310407,1123437,NULL,NULL,NULL,0,NULL,NULL 20551,623546,1275778,Necromancer Yearling Nice Answer Good Answer Yearling Guru Notable Question Self-Learner Yearling Announcer,NULL,NULL,0,NULL,NULL 20552,558937,755957,Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 20553,979788,1171206,NULL,NULL,NULL,0,NULL,NULL 20554,590455,987397,Famous Question Curious Teacher Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Custodian Popular Question Notable Question Popular Question Popular Question Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 20555,220118,669462,Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 20556,219846,747834,Yearling Famous Question,NULL,NULL,0,NULL,NULL 20557,451898,338415,Teacher Supporter,NULL,NULL,0,NULL,NULL 20558,537984,526967,Custodian Critic Informed Yearling Great Answer Yearling Student Yearling Yearling,NULL,NULL,0,NULL,NULL 20559,1474923,1402113,NULL,NULL,NULL,0,NULL,NULL 20560,352234,888559,NULL,NULL,NULL,0,NULL,NULL 20561,594013,520695,NULL,NULL,NULL,0,NULL,NULL 20562,195186,1161684,NULL,NULL,NULL,0,NULL,NULL 20563,148352,130367,Popular Question,NULL,NULL,0,NULL,NULL 20564,67735,685288,Yearling Self-Learner Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 20565,185018,369320,Nice Question Critic,NULL,NULL,0,NULL,NULL 20566,189070,705588,Popular Question Good Answer Yearling Enthusiast Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 20567,4448063,1303782,NULL,NULL,NULL,0,NULL,NULL 20568,473545,307656,NULL,NULL,NULL,0,NULL,NULL 20569,3247,584552,Yearling Popular Question Nice Answer Good Question Notable Question Popular Question Caucus Popular Question Popular Question Yearling Custodian Good Answer Nice Answer Enlightened Popular Question Popular Question Self-Learner Yearling Notable Question Caucus Nice Answer Enlightened Nice Answer Popular Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 20570,2933943,584552,Yearling Popular Question Nice Answer Good Question Notable Question Popular Question Caucus Popular Question Popular Question Yearling Custodian Good Answer Nice Answer Enlightened Popular Question Popular Question Self-Learner Yearling Notable Question Caucus Nice Answer Enlightened Nice Answer Popular Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 20571,425789,1408330,NULL,NULL,NULL,0,NULL,NULL 20572,250601,1239298,NULL,NULL,NULL,0,NULL,NULL 20573,18108,267394,Editor Commentator Tumbleweed Curious,NULL,NULL,0,NULL,NULL 20574,1122593,517477,Good Question Famous Question Notable Question Revival Self-Learner Nice Question Notable Question Popular Question Nice Question Popular Question Taxonomist Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Good Question Nice Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Excavator,NULL,NULL,0,NULL,NULL 20575,69158,716189,NULL,NULL,NULL,0,NULL,NULL 20576,324160,1454230,NULL,NULL,NULL,0,NULL,NULL 20577,194581,504630,NULL,NULL,NULL,0,NULL,NULL 20578,75092,79731,NULL,NULL,NULL,0,NULL,NULL 20579,133477,458263,NULL,NULL,NULL,0,NULL,NULL 20580,26277,960370,Yearling Nice Answer Yearling Yearling Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 20581,54463,416580,Scholar Student,NULL,NULL,0,NULL,NULL 20582,713103,322280,Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20583,49289,1138012,NULL,NULL,NULL,0,NULL,NULL 20584,932938,1245276,Critic Good Answer Revival Yearling Tumbleweed Necromancer Promoter Commentator Curious Benefactor Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 20585,949061,1245276,Critic Good Answer Revival Yearling Tumbleweed Necromancer Promoter Commentator Curious Benefactor Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 20586,53437,1524448,Supporter Informed,NULL,NULL,0,NULL,NULL 20587,6924715,746912,Popular Question,NULL,NULL,0,NULL,NULL 20588,370672,587927,NULL,NULL,NULL,0,NULL,NULL 20589,75269,32720,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20590,17662,744276,Yearling Revival Necromancer Revival Yearling Nice Answer Announcer Necromancer Yearling Popular Question Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 20591,23167,733677,Yearling Critic Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 20592,442629,81485,Yearling Notable Question,NULL,NULL,0,NULL,NULL 20593,896072,458187,Yearling,NULL,NULL,0,NULL,NULL 20594,1188386,1182923,NULL,NULL,NULL,0,NULL,NULL 20595,664880,1383731,Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20596,243221,1106531,NULL,NULL,NULL,0,NULL,NULL 20597,278077,169132,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20598,139783,535818,NULL,NULL,NULL,0,NULL,NULL 20599,399632,909144,NULL,NULL,NULL,0,NULL,NULL 20600,260544,87197,Good Answer Good Answer Yearling Nice Answer Guru Necromancer Popular Question Nice Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Nice Question java Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Guru Great Answer Caucus Yearling Nice Answer Benefactor Popular Question,NULL,NULL,0,NULL,NULL 20601,245584,884443,NULL,NULL,NULL,0,NULL,NULL 20602,559014,878361,Popular Question Nice Answer Notable Question Necromancer Popular Question Popular Question Nice Answer Critic Yearling Popular Question Tag Editor Revival Custodian Organizer Caucus Constituent Popular Question Enthusiast Custodian Good Answer Announcer Good Answer Notable Question Announcer Notable Question Yearling Guru Custodian Popular Question Announcer Nice Question Caucus Constituent Explainer Yearling,NULL,NULL,0,NULL,NULL 20603,574547,845239,Critic Student Commentator Scholar Editor Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 20604,181968,732327,NULL,NULL,NULL,0,NULL,NULL 20605,1852273,367781,NULL,NULL,NULL,0,NULL,NULL 20606,901944,1089425,NULL,NULL,NULL,0,NULL,NULL 20607,85445,348155,NULL,NULL,NULL,0,NULL,NULL 20608,79846,1457000,d d2 Yearling Nice Answer Enlightened Custodian Pundit Nice Answer Enlightened Yearling Taxonomist Nice Answer Nice Answer Documentation User Nice Answer Enlightened Announcer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Enlightened Enlightened Enlightened Enlightened Enlightened Enlightened,NULL,NULL,1,NULL,win api readConsole windows winapi pI am trying to use Win API codeReadConsole code and want to pass in delimiter char to halt the input from the console The below code works but it only stops reading the input on code code would like it to stop reading the console input on code code for instance ppre codevoid read char cIn char delim HANDLE hFile DWORD charsRead DWORD charsToRead MAX PATH CONSOLE READCONSOLE CONTROL cReadControl cReadControl nLength sizeof CONSOLE READCONSOLE CONTROL cReadControl nInitialChars cReadControl dwCtrlWakeupMask delim cReadControl dwControlKeyState NULL DWORD lpMode char cIn MAX PATH buffer to hold data from the console hFile CreateFile CONIN GENERIC READ GENERIC WRITE FILE SHARE WRITE FILE SHARE READ NULL OPEN EXISTING NULL GetConsoleMode hFile amp lpMode lpMode amp ENABLE LINE INPUT turns off this flag SetConsoleMode hFile lpMode set the mode with the new flag off bool read ReadConsole hFile cIn charsToRead sizeof TCHAR amp charsRead amp cReadControl cIn charsRead code prepI know there are other easy ways to do this but am just trying to understand some of the win api functions and how to use them ppThank you pI saw this question and assumed it would be trivial but spent the last 30 minutes trying to figure it out and finally have something ppThat codedwCtrlWakeupMask code is pretty poorly documented in codeCONSOLE READCONSOLE CONTROL code MSDN says user defined control character used to signal that the read is complete but why is it called codemask code Why is it codeULONG code instead of codeTCHAR code or something like that tried feeding it chars and wchars and nothing happened so there must be more to the story ppI took to the web searching for that particular variable and found this link href https groups google com forum topic golang codereviews KSp37ITmcUg rel noreferrer https groups google com forum topic golang codereviews KSp37ITmcUg It is random Go library coder asking for help and the answer is that tab is code1 lt lt code tried it and it works ppSo for future web searchers codedwCtrlWakeupMask code is bitmask of ASCII control characters that will cause codeReadConsole code to return You can code code together as many code1 lt lt ctrl char codes as you like but it cannot be arbitrary characters since it is bitmask in 32 bit value only the chars 31 inclusive are possible this group btw is called control characters it includes things like tab backspace bell things that do not represent printable characters per se ppThus this mask ppre codecReadControl dwCtrlWakeupMask lt lt lt lt 0x08 code prepWill cause codeReadConsole code to return when tab code code OR when backspace code0x08 code is pressed ppThe characters represented by codectrl some ascii value code are the number of that letter in the english alphabet starting at So codectrl code is code4 code and codectrl code is code26 code ppTherefore this will return when the user hits codectrl code or codectrl code ppre codecReadControl dwCtrlWakeupMask lt lt lt lt 26 code prepNote that the Linux terminal driver also returns on coderead code when the user hits codectrl code so this might be nice compatibility thing ppI believe the point of this argument is to allow easier tab completion in processed input mode otherwise you have to turn processed input off and process keys one by one to do that Now you don have to though tbh still prefer taking my input with codeReadConsoleInput code for interactive programs since you get much better control over it all ppBut while there are lot of other ways to do what you want and using code code as delimiter is impossible here since it has value 32 so you need to do it yourself understanding what this does is interesting to me anyway and there scarce resources on the web so writing this up just for future reference ppNote that this does not appear to work in codewineconsole code so be sure you are on real Windows box to test it out ppNow codedwControlKeyState code is actually set BY the function Your value passed in is ignored at least as far as can tell but you can inspect it for the given flags when the function returns So for example after calling codeReadConsole code and hitting the key it will be 32 if your numlock was on It will be 48 is numlock was on and you pressed shift tab and had numlock on So you test it after the function returns ppI typically like MSDN docs but IMO they completely dropped the ball on explaining this parameter 20609,746833,202076,Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 20610,98668,581216,NULL,NULL,NULL,0,NULL,NULL 20611,193690,346115,Notable Question Notable Question Yearling Popular Question Guru Nice Answer Custodian Enthusiast Good Answer Fanatic Yearling,NULL,NULL,0,NULL,NULL 20612,92516,1345527,NULL,NULL,NULL,0,NULL,NULL 20613,21358,742763,NULL,NULL,NULL,0,NULL,NULL 20614,36902,560158,NULL,NULL,NULL,0,NULL,NULL 20615,368866,1211733,NULL,NULL,NULL,0,NULL,NULL 20616,461430,647644,Excavator Yearling Yearling Revival Yearling Electorate,NULL,NULL,0,NULL,NULL 20617,185417,1430581,Necromancer,NULL,NULL,0,NULL,NULL 20618,537964,704371,Nice Question Notable Question Yearling Necromancer Yearling Yearling Guru Necromancer Notable Question,NULL,NULL,0,NULL,NULL 20619,246699,1125266,NULL,NULL,NULL,0,NULL,NULL 20620,101120,449250,Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 20621,6377529,449250,Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 20622,168340,641851,NULL,NULL,NULL,0,NULL,NULL 20623,279166,901050,Popular Question,NULL,NULL,0,NULL,NULL 20624,25451,645233,Explainer Necromancer Enthusiast Nice Answer Caucus Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 20625,327764,392249,NULL,NULL,NULL,0,NULL,NULL 20626,266787,1332175,NULL,NULL,NULL,0,NULL,NULL 20627,1279924,350381,Notable Question,NULL,NULL,0,NULL,NULL 20628,1348597,1420032,Informed,NULL,NULL,0,NULL,NULL 20629,627483,456634,Yearling Necromancer Nice Question Famous Question Necromancer Necromancer Yearling Good Question Tumbleweed Revival Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 20630,570803,1493118,NULL,NULL,NULL,0,NULL,NULL 20631,431121,1124588,NULL,NULL,NULL,0,NULL,NULL 20632,739723,1266847,Notable Question Yearling Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 20633,8806953,1266847,Notable Question Yearling Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 20634,284866,771650,Yearling Nice Answer Student Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 20635,6748603,968244,Organizer Popular Question Popular Question Popular Question Custodian Enthusiast Yearling Famous Question Necromancer Popular Question Nice Answer Popular Question Popular Question Necromancer Nice Answer Inquisitive Necromancer Necromancer Electorate Popular Question Good Answer Popular Question Popular Question Notable Question Informed Nice Answer Necromancer Popular Question Yearling Good Answer Necromancer Notable Question Notable Question Nice Answer Necromancer Explainer Nice Answer Popular Question Notable Question Notable Question Necromancer Necromancer Notable Question java Necromancer Popular Question Announcer Popular Question Necromancer Famous Question Nice Answer Populist Nice Answer Nice Answer javascript Nice Question Nice Answer Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 20636,209247,968244,Organizer Popular Question Popular Question Popular Question Custodian Enthusiast Yearling Famous Question Necromancer Popular Question Nice Answer Popular Question Popular Question Necromancer Nice Answer Inquisitive Necromancer Necromancer Electorate Popular Question Good Answer Popular Question Popular Question Notable Question Informed Nice Answer Necromancer Popular Question Yearling Good Answer Necromancer Notable Question Notable Question Nice Answer Necromancer Explainer Nice Answer Popular Question Notable Question Notable Question Necromancer Necromancer Notable Question java Necromancer Popular Question Announcer Popular Question Necromancer Famous Question Nice Answer Populist Nice Answer Nice Answer javascript Nice Question Nice Answer Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 20637,203108,1518225,Announcer Informed Popular Question,NULL,NULL,0,NULL,NULL 20638,103150,613023,Nice Answer,NULL,NULL,0,NULL,NULL 20639,165209,1066423,NULL,NULL,NULL,0,NULL,NULL 20640,489369,388412,Necromancer Necromancer Great Answer Nice Answer Yearling Popular Question Necromancer Good Answer Necromancer Nice Answer Nice Answer Good Answer Nice Answer Necromancer Good Answer Good Answer Yearling Announcer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 20641,1621,590247,Good Answer Yearling Necromancer Necromancer Curious Notable Question Yearling Revival Nice Answer Caucus Constituent Custodian Custodian Custodian Civic Duty Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 20642,7576,13989,Nice Question Famous Question Great Answer Stellar Question Great Answer Favorite Question Yearling Great Question Revival Great Question Good Question Famous Question Nice Question Guru Favorite Question Good Question Yearling Popular Question Great Question Favorite Question Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 20643,165325,937722,NULL,NULL,NULL,0,NULL,NULL 20644,151250,718249,Yearling Popular Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 20645,3585685,1093259,NULL,NULL,NULL,0,NULL,NULL 20646,63325,874324,NULL,NULL,NULL,0,NULL,NULL 20647,698069,101434,Yearling Revival Nice Answer Enlightened Revival Good Answer Revival Yearling Revival Excavator Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 20648,102740,566149,Good Answer Yearling,NULL,NULL,0,NULL,NULL 20649,437880,284168,Revival Yearling Notable Question Nice Answer Good Answer Notable Question Necromancer Caucus Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20650,502407,665013,Yearling Revival Famous Question,NULL,NULL,0,NULL,NULL 20651,849681,665013,Yearling Revival Famous Question,NULL,NULL,0,NULL,NULL 20652,568828,850548,Nice Question Famous Question Good Answer Nice Question Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 20653,576987,493011,Popular Question,NULL,NULL,0,NULL,NULL 20654,73385,576472,Yearling Popular Question Favorite Question Yearling Good Answer Great Question Caucus Yearling Enthusiast Caucus,NULL,NULL,0,NULL,NULL 20655,120216,655420,Necromancer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20656,3306,82233,Good Answer,NULL,NULL,0,NULL,NULL 20657,2894646,807892,NULL,NULL,NULL,0,NULL,NULL 20658,1845922,736826,NULL,NULL,NULL,0,NULL,NULL 20659,518543,595006,NULL,NULL,NULL,0,NULL,NULL 20660,384946,1558190,NULL,NULL,NULL,0,NULL,NULL 20661,4987,1214450,NULL,NULL,NULL,0,NULL,NULL 20662,101456,428443,NULL,NULL,NULL,0,NULL,NULL 20663,279723,171744,Yearling Yearling Great Answer Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 20664,317756,738820,NULL,NULL,NULL,0,NULL,NULL 20665,628937,1267639,Guru Popular Question Good Answer Yearling Good Answer Revival Announcer Yearling Announcer Popular Question Guru Necromancer Great Answer Good Answer Yearling Necromancer,NULL,pThe suggestion to use code split code is good but with natural sentences sooner or later you ll end up getting empty elements in the array code foo bar code ppWhich is fine if that okay for your use case But if you want to get rid of the empty elements you can do ppre codevar str whatever your text is str split filter Boolean code pre It explained by When the Boolean constructor is called on any value it casts that value to boolean true or false Thus any falsy values will be filtered from the array including empty strings pThe suggestion to use code split code is good but with natural sentences sooner or later you ll end up getting empty elements in the array code foo bar code ppWhich is fine if that okay for your use case But if you want to get rid of the empty elements you can do ppre codevar str whatever your text is str split filter Boolean code pre btw you can use implicit constructors for other similar fun stuff like map String,0,NULL,NULL 20666,274636,1277227,NULL,NULL,NULL,0,NULL,NULL 20667,3336057,1277227,NULL,NULL,NULL,0,NULL,NULL 20668,792839,236872,Yearling Critic Necromancer Popular Question Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 20669,2167587,1048498,NULL,NULL,NULL,0,NULL,NULL 20670,350833,1048498,NULL,NULL,NULL,0,NULL,NULL 20671,5549,1193713,Informed Autobiographer,NULL,NULL,0,NULL,NULL 20672,211129,841079,Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20673,1022750,952537,NULL,NULL,NULL,0,NULL,NULL 20674,293431,952537,NULL,NULL,NULL,0,NULL,NULL 20675,19999,296906,Yearling Yearling,NULL,NULL,0,NULL,NULL 20676,1522372,869369,NULL,NULL,NULL,0,NULL,NULL 20677,94996,776640,Popular Question Critic Notable Question,NULL,NULL,0,NULL,NULL 20678,1437854,28469,Famous Question,NULL,NULL,0,NULL,NULL 20679,727743,712476,Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 20680,675118,1427514,NULL,NULL,NULL,0,NULL,NULL 20681,199136,995929,NULL,NULL,NULL,0,NULL,NULL 20682,2170046,1512743,Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Yearling Guru Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20683,420959,1523170,Editor Teacher Notable Question Supporter Commentator Yearling,NULL,NULL,0,NULL,NULL 20684,360164,229486,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 20685,305275,291141,NULL,NULL,NULL,0,NULL,NULL 20686,623414,1441017,NULL,NULL,NULL,0,NULL,NULL 20687,108125,1146599,NULL,NULL,NULL,0,NULL,NULL 20688,443360,1347558,NULL,NULL,NULL,0,NULL,NULL 20689,169865,170747,Yearling Good Answer,NULL,NULL,0,NULL,NULL 20690,9009,116957,Popular Question Yearling Popular Question Nice Question Documentation User Good Question Famous Question,NULL,NULL,0,NULL,NULL 20691,483765,87971,Nice Answer Yearling Nice Question Caucus Constituent Yearling Caucus Famous Question Documentation User Nice Answer Popular Question Census Popular Question Caucus Yearling Benefactor Popular Question,NULL,NULL,0,NULL,NULL 20692,161856,15961,Announcer Census,NULL,NULL,0,NULL,NULL 20693,9188,434316,NULL,NULL,NULL,0,NULL,NULL 20694,308816,1146001,Popular Question Notable Question Popular Question Popular Question Self-Learner Popular Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 20695,1435841,1067707,NULL,NULL,NULL,0,NULL,NULL 20696,351203,481594,Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Good Question Notable Question Famous Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 20697,28889,899841,NULL,NULL,NULL,0,NULL,NULL 20698,583460,551041,Revival Teacher Nice Answer Editor Yearling,NULL,NULL,0,NULL,NULL 20699,1510527,499350,Organizer Explainer Yearling Popular Question Caucus Popular Question Caucus Tenacious Yearling Census Announcer Yearling,NULL,NULL,0,NULL,NULL 20700,25611,462610,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 20701,307010,593724,NULL,NULL,NULL,0,NULL,NULL 20702,681844,653012,Notable Question Notable Question Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 20703,342981,896249,Notable Question Notable Question Yearling Custodian Custodian Caucus Constituent Popular Question Caucus Yearling Self-Learner Popular Question Famous Question Popular Question Census Necromancer Notable Question Notable Question Famous Question Good Answer Yearling Announcer Steward Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 20704,441674,241633,NULL,NULL,NULL,0,NULL,NULL 20705,276089,133986,Revival Favorite Question Great Question Custodian Yearling Excavator Famous Question Notable Question Yearling Popular Question Stellar Question Favorite Question Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 20706,510809,602099,NULL,NULL,NULL,0,NULL,NULL 20707,1040272,64690,Yearling Popular Question Notable Question Nice Answer Enlightened Nice Answer Yearling Popular Question Popular Question Notable Question Good Answer Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Guru Popular Question Popular Question Announcer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20708,270204,529397,Notable Question Yearling Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 20709,257750,972261,NULL,NULL,NULL,0,NULL,NULL 20710,132719,780998,Announcer Caucus Revival Custodian Custodian Organizer Yearling Notable Question Notable Question Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20711,419286,186544,NULL,NULL,NULL,0,NULL,NULL 20712,8064046,965869,Popular Question Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 20713,6668,965869,Popular Question Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 20714,68361,777255,Popular Question,NULL,NULL,0,NULL,NULL 20715,434238,725955,NULL,NULL,NULL,0,NULL,NULL 20716,838635,1168259,NULL,NULL,NULL,0,NULL,NULL 20717,218440,123033,Popular Question Popular Question Necromancer Popular Question Necromancer Yearling Documentation Pioneer Popular Question Nice Answer Nice Answer Nice Answer Notable Question Necromancer Notable Question Nice Question Nice Answer Necromancer Necromancer Good Question Revival Popular Question Necromancer Yearling Announcer Good Answer Great Answer Caucus Constituent Great Answer Good Answer Popular Question Documentation User Nice Answer Popular Question Nice Answer Nice Answer Necromancer Popular Question Nice Answer Civic Duty Caucus Announcer Necromancer Nice Question Yearling Good Answer Notable Question Necromancer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 20718,218200,222622,Informed,NULL,NULL,0,NULL,NULL 20719,177578,906525,NULL,NULL,NULL,0,NULL,NULL 20720,115655,306272,Yearling Notable Question,NULL,NULL,0,NULL,NULL 20721,1490641,183441,Good Question Yearling,NULL,NULL,0,NULL,NULL 20722,294015,602153,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20723,340985,779388,Revival Yearling Civic Duty Informed Necromancer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 20724,4940,1216615,NULL,NULL,NULL,0,NULL,NULL 20725,49438,560532,NULL,NULL,NULL,0,NULL,NULL 20726,433886,268088,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 20727,776861,676577,Popular Question,NULL,NULL,0,NULL,NULL 20728,160049,58207,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 20729,157521,465164,Famous Question Famous Question Yearling Favorite Question Popular Question Excavator Peer Pressure Yearling,NULL,pI was unable to get Mystic answer to work with POSIX regular expressions so wrote one that works with POSIX regular expressions and PERL regular expressions ppIt should match pulliIPv6 addresses lilizero compressed IPv6 addresses href https tools ietf org html rfc5952 section rel noreferrer section of rfc5952 lililink local IPv6 addresses with zone index href https tools ietf org html rfc4007 section 11 rel noreferrer section 11 of rfc4007 liliIPv4 Embedded IPv6 Address href https tools ietf org html rfc6052 section rel noreferrer section of rfc6052 liliIPv4 mapped IPv6 addresses href https tools ietf org html rfc2765 section rel noreferrer section of rfc2765 liliIPv4 translated addresses href https tools ietf org html rfc2765 section rel noreferrer section of rfc2765 li ulpIPv6 Regular Expression ppre code 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA fe80 9a fA 9a zA ffff 25 25 9a fA 25 25 code prepFor ease of reading the following is the above regular expression split at major OR points into separate lines ppre code IPv6 RegEx 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA fe80 9a fA 9a zA fe80 eth0 fe80 link local IPv6 addresses with zone index ffff 25 25 255 255 255 255 ffff 255 255 255 255 ffff 255 255 255 255 IPv4 mapped IPv6 addresses and IPv4 translated addresses 9a fA 25 25 2001 db8 192 33 64 ff9b 192 33 IPv4 Embedded IPv6 Address IPv4 RegEx 25 25 code prepTo make the above easier to understand the following pseudo code replicates the above ppre codeIPV4SEG 25 IPV4ADDR IPV4SEG IPV4SEGIPV6SEG 9a fA IPV6ADDR IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG fe80 IPV6SEG 9a zA fe80 eth0 fe80 link local IPv6 addresses with zone index ffff IPV4ADDR 255 255 255 255 ffff 255 255 255 255 ffff 255 255 255 255 IPv4 mapped IPv6 addresses and IPv4 translated addresses IPV6SEG IPV4ADDR 2001 db8 192 33 64 ff9b 192 33 IPv4 Embedded IPv6 Address code prepI posted script on GitHub which tests the regular expression href https gist github com syzdek 6086792 rel noreferrer https gist github com syzdek 6086792 ve put this into Python RE form https gist github com dfee 6ed3a4b05cfe7a6faf40a2102408d5d8 pFor your usecase having docstring in the class function should work that will show up in help okay and can be set programmatically func doc stuff ppI can see any way of setting the actual signature would have thought the href http docs python org library functools html rel noreferrer functools module would have done it if it was doable but it doesn at least in py2 and py2 ppYou can also raise TypeError exception if you get bad input ppHmm if you don mind being truly vile you can use compile eval to do it If your desired signature is specified by arglist foo bar baz and your actual function is args kwargs you can manage ppre codeargstr join arglist fakefunc def func return real func argstr argstr fakefunc code compile fakefunc fakesource exec fakeglobals eval fakefunc code real func fakeglobals with good sig fakeglobals func help args kwargs help with good sig func foo bar baz code prepChanging the docstring and func name should get you complete solution But uh eww You should not use eval unless you can help it Consider using the python forge package suggest in my answer https stackoverflow com 50533832 465164,0,NULL,NULL 20730,1126476,1402085,Revival Nice Answer Popular Question Yearling Nice Answer Good Answer Yearling Revival Necromancer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 20731,41862,74967,Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 20732,111406,297726,NULL,NULL,NULL,0,NULL,NULL 20733,1625560,16248,Custodian Yearling,NULL,NULL,0,NULL,NULL 20734,553869,195530,Popular Question Popular Question Promoter Benefactor Revival Popular Question,NULL,NULL,0,NULL,NULL 20735,36929,620271,NULL,NULL,NULL,0,NULL,NULL 20736,74740,1350656,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20737,1521306,701581,NULL,NULL,NULL,0,NULL,NULL 20738,3405955,701581,NULL,NULL,NULL,0,NULL,NULL 20739,173879,590177,Good Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Yearling Nice Answer Announcer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 20740,3515868,456227,Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20741,51980,565877,Yearling Nice Answer Necromancer Popular Question Famous Question Nice Question Notable Question Yearling javascript Nice Answer Enlightened Necromancer Nice Question Famous Question Notable Question Nice Answer Popular Question Yearling Necromancer Great Answer Good Answer Popular Question,NULL,pIf you have href http mxcl github io homebrew Homebrew installed you can do this ppre code check the zsh infobrew info zsh install zshbrew install without etcdir zsh add shell pathsudo vim etc shells add the following line into the very end of the file etc shells usr local bin zsh change default shellchsh usr local bin zsh code prepHope it helps thanks also love to know why this brew install zsh should be done without etcdir pIf you have href http mxcl github io homebrew Homebrew installed you can do this ppre code check the zsh infobrew info zsh install zshbrew install without etcdir zsh add shell pathsudo vim etc shells add the following line into the very end of the file etc shells usr local bin zsh change default shellchsh usr local bin zsh code prepHope it helps thanks guessing the without etcdir has something to do with manually installing this editing etc shells to add the path to the brew installed zsh anyway this option is no longer available pIf you have href http mxcl github io homebrew Homebrew installed you can do this ppre code check the zsh infobrew info zsh install zshbrew install without etcdir zsh add shell pathsudo vim etc shells add the following line into the very end of the file etc shells usr local bin zsh change default shellchsh usr local bin zsh code prepHope it helps thanks that option no longer seems to be necessary My dotfiles repo zshrc file with zgen is working just fine following these commands Although the option is no longer available think it ok to attempt to use the option It just ignores it,0,NULL,NULL 20742,331058,1261635,NULL,NULL,NULL,0,NULL,NULL 20743,423605,683235,Popular Question Civic Duty Tumbleweed Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 20744,24086,153233,Critic Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 20745,270157,993867,NULL,NULL,NULL,0,NULL,NULL 20746,261126,433671,NULL,NULL,NULL,0,NULL,NULL 20747,361,423277,Notable Question Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 20748,7842,975163,NULL,NULL,NULL,0,NULL,NULL 20749,313112,1051787,NULL,NULL,NULL,0,NULL,NULL 20750,153891,194216,NULL,NULL,NULL,0,NULL,NULL 20751,199542,211048,Nice Question Nice Answer Notable Question Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 20752,137908,999481,NULL,NULL,NULL,0,NULL,NULL 20753,562215,757082,Enthusiast Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 20754,1170750,1102415,NULL,NULL,NULL,0,NULL,NULL 20755,125706,684900,NULL,NULL,NULL,0,NULL,NULL 20756,442836,254253,Tumbleweed,NULL,NULL,0,NULL,NULL 20757,241425,1374061,Nice Answer Editor,NULL,NULL,0,NULL,NULL 20758,909971,1374061,Nice Answer Editor,NULL,NULL,0,NULL,NULL 20759,374728,1263186,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 20760,339667,469106,Nice Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Pundit Popular Question Popular Question Famous Question Yearling Notable Question Nice Question Nice Answer Notable Question Nice Question Notable Question Notable Question Popular Question Yearling Great Question Popular Question Notable Question Notable Question Popular Question Popular Question Good Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 20761,165006,925941,NULL,NULL,NULL,0,NULL,NULL 20762,36493,140951,Popular Question Revival Yearling Good Answer Notable Question Guru Announcer Yearling Popular Question Revival Notable Question Yearling,NULL,NULL,0,NULL,NULL 20763,289425,472064,NULL,NULL,NULL,0,NULL,NULL 20764,103486,582928,Census,NULL,NULL,0,NULL,NULL 20765,164738,1057112,NULL,NULL,NULL,0,NULL,NULL 20766,429629,814740,NULL,NULL,NULL,0,NULL,NULL 20767,181700,451662,Good Question Nice Question Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 20768,178030,558774,NULL,NULL,NULL,0,NULL,NULL 20769,109990,834665,NULL,NULL,NULL,0,NULL,NULL 20770,199144,418697,NULL,NULL,NULL,0,NULL,NULL 20771,1350227,1216931,Nice Question Yearling Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Socratic Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Famous Question Notable Question Great Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Famous Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question,NULL,NULL,1,Android search bar with mic mic events Android searchview with mic android android layout searchview android search pI am using searchview in my application want to get the text typed in the searchview textbox and display it on another textview ppI can do that using searchviewListener ppre codesearchView setOnQueryTextListener new android support v7 widget SearchView OnQueryTextListener public boolean onQueryTextSubmit String query adapter filterData query display text where ever want return false public boolean onQueryTextChange String query adapter filterData query display text where ever want return false return true code prepNow made the serachView with Mic using ppre codeandroid voiceSearchMode showVoiceSearchButton launchRecognizer code prepMic is displaying and clickable Perfect ppNow My question is how to capture this MIC data and display text where ever want,NULL 20772,174202,955134,Popular Question Necromancer Popular Question Yearling Nice Answer Nice Answer Organizer Yearling Good Answer,NULL,NULL,0,NULL,NULL 20773,254604,761924,NULL,NULL,NULL,0,NULL,NULL 20774,524000,1546672,NULL,NULL,NULL,0,NULL,NULL 20775,250739,1305423,Yearling Student Good Answer Yearling Yearling Nice Answer Caucus Autobiographer Yearling,NULL,NULL,0,NULL,NULL 20776,40041,371407,Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 20777,501791,42865,Tumbleweed Yearling Yearling,NULL,NULL,0,NULL,NULL 20778,709435,1082661,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 20779,5913371,1082661,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 20780,529616,1026559,NULL,NULL,NULL,0,NULL,NULL 20781,76564,583867,Supporter Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20782,97748,1560416,NULL,NULL,NULL,0,NULL,NULL 20783,174378,907044,Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Nice Answer Popular Question Nice Question Popular Question Popular Question Yearling Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Citizen Patrol Caucus Popular Question Famous Question Famous Question Notable Question Notable Question Caucus Popular Question Constituent Great Question Informed Yearling Great Answer Popular Question Popular Question Notable Question Notable Question Good Question Great Question Good Question Famous Question Caucus Constituent Popular Question Notable Question Popular Question Famous Question Famous Question Famous Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20784,369374,978515,Nice Answer Popular Question Popular Question Guru Yearling Popular Question Notable Question Famous Question Nice Answer Popular Question Yearling Popular Question Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 20785,12213,805956,NULL,NULL,NULL,0,NULL,NULL 20786,234455,644136,Supporter Necromancer Nice Answer Yearling Necromancer Yearling Necromancer Enthusiast Nice Answer Critic Caucus,NULL,NULL,0,NULL,NULL 20787,367578,450392,NULL,NULL,NULL,0,NULL,NULL 20788,318512,323929,Good Question Yearling Famous Question Notable Question Notable Question Good Question Yearling Notable Question Popular Question Yearling Informed Good Answer Necromancer Custodian Nice Question,NULL,NULL,0,NULL,NULL 20789,38613,121429,NULL,NULL,NULL,0,NULL,NULL 20790,604575,1062534,NULL,NULL,NULL,0,NULL,NULL 20791,10829,1495034,NULL,NULL,NULL,0,NULL,NULL 20792,1031165,653676,NULL,NULL,NULL,0,NULL,NULL 20793,201778,1367571,Popular Question Announcer Nice Answer Necromancer Yearling Announcer Self-Learner android Nice Answer Popular Question Nice Question Nice Question Nice Answer Notable Question Good Answer Nice Question Famous Question Good Question Good Answer Popular Question Necromancer Nice Answer Enlightened Great Answer Good Answer Caucus Famous Question Announcer Notable Question Nice Answer Nice Question Yearling Great Answer Nice Answer Enlightened Revival Caucus Taxonomist Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Yearling Announcer Announcer Popular Question Good Question Announcer,NULL,NULL,0,NULL,NULL 20794,101280,439657,NULL,NULL,NULL,0,NULL,NULL 20795,80590,18950,Popular Question Popular Question Favorite Question Famous Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Nice Question Famous Question Nice Answer Enlightened Census Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Good Question Popular Question Famous Question Famous Question Civic Duty Yearling Popular Question Nice Answer python Nice Question Notable Question Famous Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20796,381923,1264414,NULL,NULL,NULL,0,NULL,NULL 20797,161593,1308689,NULL,NULL,NULL,0,NULL,NULL 20798,67201,1374698,NULL,NULL,NULL,0,NULL,NULL 20799,10063276,1250767,NULL,NULL,NULL,0,NULL,NULL 20800,222149,160419,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 20801,647633,1175843,NULL,NULL,NULL,0,NULL,NULL 20802,8967,722677,Editor Student,NULL,NULL,0,NULL,NULL 20803,178245,361467,Good Answer Census Informed Yearling,NULL,NULL,0,NULL,NULL 20804,70047,123450,NULL,NULL,NULL,0,NULL,NULL 20805,54298,169854,Necromancer Good Question Popular Question Yearling Custodian,NULL,pThe history limit is pane attribute that is strongfixed at the time of pane creation and cannot be changed for existing panes strong The value is taken from the codehistory limit code session option the default value is 2000 ppTo create pane with different value you will need to set the appropriate codehistory limit code option before creating the pane ppTo establish different default you can put line like the following in your code tmux conf code file ppre codeset option history limit 3000 code prepNote Be careful setting very large default value it can easily consume lots of RAM if you create many panes ppFor new pane or the initial pane in new window in an existing session you can set that session’s codehistory limit code You might use command like this from shell ppre codetmux set option history limit 5000 new window code prepFor the initial pane of the initial window in new session you will need to set the “global” codehistory limit code before creating the session ppre codetmux set option history limit 5000 new session code prepNote If you do not re set the codehistory limit code value then the new value will be also used for other panes windows sessions created in the future there is currently no direct way to create single new pane window session with its own specific limit without at least temporarily changing codehistory limit code though codeshow option code especially in and later can help with retrieving the current value so that you restore it later you tried that out,0,NULL,NULL 20806,1461883,427978,Yearling Notable Question Necromancer Popular Question Nice Answer Caucus Yearling Popular Question Nice Answer Enlightened Yearling Caucus Good Answer Self-Learner Necromancer Nice Question Popular Question Yearling Nice Answer Yearling Populist,NULL,NULL,0,NULL,NULL 20807,1123724,427978,Yearling Notable Question Necromancer Popular Question Nice Answer Caucus Yearling Popular Question Nice Answer Enlightened Yearling Caucus Good Answer Self-Learner Necromancer Nice Question Popular Question Yearling Nice Answer Yearling Populist,NULL,NULL,0,NULL,NULL 20808,213113,1016019,Scholar,NULL,NULL,0,NULL,NULL 20809,465247,1147333,Tumbleweed Famous Question Popular Question Popular Question Revival Necromancer,NULL,NULL,0,NULL,NULL 20810,335245,1147333,Tumbleweed Famous Question Popular Question Popular Question Revival Necromancer,NULL,NULL,0,NULL,NULL 20811,95525,1011749,Yearling Good Answer Yearling Notable Question Yearling Civic Duty Popular Question Nice Question Yearling Nice Answer Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 20812,1394975,187509,NULL,NULL,NULL,0,NULL,NULL 20813,45703,502193,Citizen Patrol,NULL,NULL,0,NULL,NULL 20814,34086,915268,Yearling Nice Answer Enlightened Explainer,NULL,NULL,0,NULL,NULL 20815,450507,865440,NULL,NULL,NULL,0,NULL,NULL 20816,466948,1236018,Excavator Necromancer Popular Question Popular Question Nice Question Popular Question Popular Question Nice Answer Notable Question Yearling Popular Question Disciplined Notable Question,NULL,NULL,0,NULL,NULL 20817,43917,1072612,NULL,NULL,NULL,0,NULL,NULL 20818,1371338,619773,NULL,NULL,NULL,0,NULL,NULL 20819,7382,1198735,NULL,NULL,NULL,0,NULL,NULL 20820,1514985,609633,NULL,NULL,NULL,0,NULL,NULL 20821,72780,667374,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 20822,895254,1317997,NULL,NULL,NULL,0,NULL,NULL 20823,4297,690202,Yearling Promoter Student Scholar,NULL,NULL,0,NULL,NULL 20824,653262,981341,Census,NULL,NULL,0,NULL,NULL 20825,2245061,1307401,NULL,NULL,NULL,0,NULL,NULL 20826,506350,1024986,Informed,NULL,NULL,0,NULL,NULL 20827,516561,1305314,NULL,NULL,NULL,0,NULL,NULL 20828,89716,666630,NULL,NULL,NULL,0,NULL,NULL 20829,427578,1539263,NULL,NULL,NULL,0,NULL,NULL 20830,338001,520720,Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 20831,4091615,1015730,NULL,NULL,NULL,0,NULL,NULL 20832,507557,705915,NULL,NULL,NULL,0,NULL,NULL 20833,232846,780188,Teacher Necromancer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 20834,563520,34935,Nice Question Nice Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Nice Question Populist Electorate Yearling Famous Question Great Answer Popular Question Good Question Announcer Good Answer Popular Question Popular Question Good Question Popular Question Nice Question Nice Question Necromancer Popular Question Popular Question Nice Question Favorite Question Nice Question Necromancer Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Notable Question Socratic Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Necromancer Popular Question Notable Question Great Answer Popular Question Caucus Popular Question Nice Answer Popular Question Revival Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Answer Revival Notable Question Famous Question Yearling Notable Question,NULL,pThere lot of conflicting info about rJava on SO My concern with lot of these answers was that once you start monkeying with the codeJAVA HOME code variables you run the risk of borking your Java install completely the solution can be worse than the disease Here quick rundown of do no harm things you can do if you are having rJava problems pp1 in the terminal run codeR CMD javareconf code This is script written by Core that will Detect current Java setup and update the corresponding configuration in Take look at the internals href https svn project org trunk src scripts javareconf in rel noreferrer here pp2 re install rJava from source codeinstall packages rJava type source code pp3 Open from the command line Load rJava Open emRStudio em from the command line href http jeromyanglim tumblr com post 34221143729 how to run rstudio from the command line on osx rel noreferrer directions Load rJava Do you get the same error If not great you re getting warmer You ve isolated your problem to an issue with emRStudio em not itself pp4 There some sort of issue with RStudio and rJava that relates to actually you know what not even going to try to finish that sentence because frankly it above my pay grade Dynamic libraries something something ppThere are bunch of writeups href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer here href http paulklemm com zenf blog 2015 02 20 run rjava with rstudio under osx 10 dot 10 rel noreferrer here href http andrewgoldstone com blog 2015 02 03 rjava rel noreferrer here href http conjugateprior org 2014 12 java8 osx rel noreferrer and here on the web about this My favorite title was href http spartanideas msu edu 2015 06 27 the rjava nightmare rel noreferrer the rJava nightmare pp strongYour mileage may vary strong but href https stackoverflow com 31039105 this SO answer was all needed to get RStudio to play nice one line of code on the terminal and all it does is creates symbolic link No changes to permissions no modification of environment variables just simple symlink ppIf that doesn do it for you suggest reading the linked blog posts above before you start copy pasting the multitude of emthis worked for me em answers littered across SO wish could upvote this ten times,0,NULL,NULL 20835,8755,715714,NULL,NULL,NULL,0,NULL,NULL 20836,492215,39917,NULL,NULL,NULL,0,NULL,NULL 20837,266594,949476,angularjs-scope Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru twitter-bootstrap Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Announcer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Guru Nice Answer Enlightened dom Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Good Answer image Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Caucus Guru Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Good Answer Generalist Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Great Answer angular Nice Answer Enlightened Guru Enlightened Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened hover Nice Answer Nice Answer Enlightened angular Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer typescript Guru Great Answer Caucus Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened object Nice Answer Guru promise Guru Nice Answer Enlightened Good Answer Nice Answer Yearling forms Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Nice Answer Announcer Peer Pressure reactjs Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Caucus Good Answer Great Answer Nice Answer Enlightened Constituent Nice Answer function Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Guru Yearling Good Answer Nice Answer Enlightened Guru Announcer Nice Answer Nice Answer Enlightened Announcer,NULL,pI think the best javascript approach would be to use HTMLImageElement object with deferred object ppre codefunction isImage src var deferred defer var image new Image image onerror function deferred resolve false image onload function deferred resolve true image src src return deferred promise code prepUsage ppre codeisImage http asd com asd asd jpg then function test console log test code prepUsing codeHTMLImageElement code gives you some benefits not only it tests that the file is downloadable but also it is valid image resource that can be displayed by codeimg code tag ppI wrapped this code in simple service to make test and it seems to work ppre codeapp controller MainCtrl function scope Utils scope test function Utils isImage scope source then function result scope result result app factory Utils function return isImage function src above code for isImage function code preh3Demo href http plnkr co edit u5F6FfO3dEkNSMYV1amo preview rel noreferrer http plnkr co edit u5F6FfO3dEkNSMYV1amo preview h3 don think so just made some tests and looks like memory is not leaking strongMethod strong Here is the simple function to test if the string contains HTML data ppre codefunction isHTML str var document createElement div innerHTML str for var childNodes length if nodeType return true return false code prepThe idea is to allow browser DOM parser to decide if provided string looks like an HTML or not As you can see it simply checks for codeELEMENT NODE code codenodeType code of ppI made couple of tests and looks like it works ppre codeisHTML lt gt this is string lt gt trueisHTML this is string falseisHTML this is lt gt string lt gt true code prepThis solution will properly detect HTML string however it has side effect that img vide etc tags will start downloading resource once parsed in innerHTML pp strongMethod strong Another method uses href https developer mozilla org en US docs Web API DOMParser rel noreferrer DOMParser and doesn have loading resources side effects ppre codefunction isHTML str var doc new DOMParser parseFromString str text html return Array from doc body childNodes some node gt node nodeType code prep subNotes br1 codeArray from code is ES2015 method can be replaced with code slice call doc body childNodes code br2 Arrow function in codesome code call can be replaced with usual anonymous function pp sub Yes even if not appending Use DOMParser solution,0,NULL,NULL 20838,2564298,1004071,NULL,NULL,NULL,0,NULL,NULL 20839,1520971,427560,NULL,NULL,NULL,0,NULL,NULL 20840,164744,884954,Teacher,NULL,NULL,0,NULL,NULL 20841,162164,713455,NULL,NULL,NULL,0,NULL,NULL 20842,1955608,176818,Nice Answer Good Question Notable Question Popular Question Civic Duty Nice Answer Enlightened Yearling Notable Question Caucus Constituent Famous Question Yearling Documentation User Notable Question Yearling,NULL,NULL,0,NULL,NULL 20843,238638,846180,Good Question Popular Question Popular Question Famous Question Notable Question Necromancer Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Necromancer Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Stellar Question,NULL,NULL,0,NULL,NULL 20844,166719,736551,NULL,NULL,NULL,0,NULL,NULL 20845,2499051,217341,NULL,NULL,NULL,0,NULL,NULL 20846,37076,217341,NULL,NULL,NULL,0,NULL,NULL 20847,254310,1366713,NULL,NULL,NULL,0,NULL,NULL 20848,3476,51058,NULL,NULL,NULL,0,NULL,NULL 20849,531188,200438,Tumbleweed,NULL,NULL,0,NULL,NULL 20850,284342,440856,NULL,NULL,pYes There are several ways phrp stronga strong Use code code or ppre code echo hi gt hi echo hi gt amp gt prints hi to stderr echo hi gt hi echo hi gt amp gt prints hi to stderr code prepThese methods will return the stdout and redirect stderr to the program phrp strongb strong Use codesystem code ppre codesystem echo hi gt true prints hi system echo hi gt amp gt true prints hi to stderr system exit gt nil code prepThis method returns codetrue code if the command was successful It redirects all output to the program phrp strongc strong Use codeexec code ppre codefork exec sleep 60 you see new process in top sleep but no extra ruby process exec echo hi prints hi the code will never get here code prepThat replaces the current process with the one created by the command phrp strongd strong ruby use codespawn code ppre codespawn sleep echo one gt 430spawn echo two gt 431sleep This program will print two none code prepThis method does not wait for the process to exit and returns the PID phrp stronge strong Use codeIO popen code ppre codeio IO popen cat stdout ioputs hi stdout IO new 0p io read io close prints code prepThis method will return an codeIO code object that reperesents the new processes input output It is also currently the only way know of to give the program input phrp strongf strong Use href http ruby doc org stdlib libdoc open3 rdoc index html rel noreferrer codeOpen3 code on and later ppre coderequire open3 stdout stderr status Open3 capture3 some command STDERR puts stderrif status successful puts stdoutelse STDERR puts OH NO end code prep codeOpen3 code has several other functions for getting explicit access to the two output streams It similar to popen but gives you access to stderr status successful is no longer working for me on ruby it changed to status success,0,NULL,NULL 20851,846566,1268337,NULL,NULL,NULL,0,NULL,NULL 20852,7666,402870,Notable Question Necromancer Good Answer Yearling Popular Question Popular Question Necromancer Nice Answer Nice Answer Nice Answer Necromancer Good Answer Notable Question Necromancer Good Answer Yearling Famous Question Nice Answer Custodian Necromancer Necromancer ruby Necromancer Good Answer Good Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 20853,17722,156826,Necromancer Popular Question Good Question Custodian Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 20854,498502,811450,Popular Question,NULL,NULL,0,NULL,NULL 20855,246924,441859,Critic,NULL,NULL,0,NULL,NULL 20856,6992802,1432700,NULL,NULL,NULL,0,NULL,NULL 20857,730864,681166,Yearling Good Answer Good Answer Yearling jquery Yearling Announcer Guru,NULL,NULL,0,NULL,NULL 20858,167495,488195,Necromancer Nice Question Notable Question Good Answer Documentation Pioneer Synonymizer Famous Question Notable Question Yearling Caucus Constituent Notable Question Nice Answer Notable Question Popular Question Popular Question Revival Caucus Constituent Necromancer Good Answer Nice Question Documentation User Nice Answer Enlightened Yearling Great Answer Good Answer Nice Question Caucus Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 20859,24540,393238,Yearling Revival,NULL,NULL,0,NULL,NULL 20860,319550,138063,Necromancer,NULL,NULL,0,NULL,NULL 20861,309,469965,NULL,NULL,NULL,0,NULL,NULL 20862,22881,659528,NULL,NULL,NULL,0,NULL,NULL 20863,8729,212493,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20864,372343,916117,Notable Question Popular Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 20865,2523196,1035431,Yearling Famous Question,NULL,NULL,0,NULL,NULL 20866,2268227,284881,Yearling Caucus Good Answer Yearling Yearling Guru c++,NULL,NULL,0,NULL,NULL 20867,1697384,393064,NULL,NULL,NULL,0,NULL,NULL 20868,82877,536639,Yearling Necromancer Caucus Popular Question Explainer Nice Answer Yearling Nice Answer Caucus Necromancer Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 20869,270254,722334,NULL,NULL,NULL,0,NULL,NULL 20870,2723899,494572,Notable Question Good Question python Nice Answer Good Answer Nice Answer Yearling Necromancer Nice Answer Promoter Benefactor Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 20871,102767,494572,Notable Question Good Question python Nice Answer Good Answer Nice Answer Yearling Necromancer Nice Answer Promoter Benefactor Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 20872,268552,494572,Notable Question Good Question python Nice Answer Good Answer Nice Answer Yearling Necromancer Nice Answer Promoter Benefactor Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 20873,419834,719707,NULL,NULL,NULL,0,NULL,NULL 20874,234281,584777,NULL,NULL,NULL,0,NULL,NULL 20875,543050,657362,NULL,NULL,NULL,0,NULL,NULL 20876,370284,519012,Notable Question Popular Question Yearling Necromancer Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 20877,41646,801657,Yearling,NULL,NULL,0,NULL,NULL 20878,14406,627827,Necromancer,NULL,NULL,0,NULL,NULL 20879,34415,596050,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 20880,1102133,211125,Supporter,NULL,NULL,0,NULL,NULL 20881,83655,528742,Nice Question,NULL,NULL,0,NULL,NULL 20882,1061692,1103033,Teacher,NULL,NULL,0,NULL,NULL 20883,328283,121493,Good Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Yearling Great Answer Custodian Good Answer Caucus Guru Nice Answer Good Answer Census Good Answer Great Answer Guru Great Answer silverlight Good Answer Notable Question Promoter Yearling Benefactor Good Answer Famous Question Good Answer Guru Guru Good Answer Good Answer javascript Nice Answer Good Answer Populist Guru Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Notable Question Great Answer Yearling Pundit,NULL,NULL,0,NULL,NULL 20884,329371,34450,Nice Answer Yearling Great Answer Yearling Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 20885,89914,164602,Guru Nice Answer Enlightened Good Question Good Question Good Answer Yearling google-cloud-datastore Nice Answer Enlightened Nice Answer Yearling Guru Great Answer Favorite Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20886,206241,1136400,Nice Answer Yearling Good Answer Yearling Custodian Citizen Patrol Custodian Custodian Guru Yearling Census Caucus,NULL,NULL,0,NULL,NULL 20887,159120,1294479,NULL,NULL,NULL,0,NULL,NULL 20888,31401,615245,Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer Populist Caucus Constituent Revival Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20889,126770,626369,Commentator Scholar Revival Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 20890,791049,617313,Autobiographer,NULL,NULL,0,NULL,NULL 20891,76605,649591,NULL,NULL,NULL,0,NULL,NULL 20892,281515,1073077,NULL,NULL,NULL,0,NULL,NULL 20893,166715,365490,Caucus Caucus,NULL,NULL,0,NULL,NULL 20894,59612,439871,NULL,NULL,NULL,0,NULL,NULL 20895,319977,379192,Popular Question,NULL,NULL,0,NULL,NULL 20896,69013,633796,Good Question Critic,NULL,NULL,0,NULL,NULL 20897,1127917,42136,Yearling Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 20898,233359,12754,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 20899,305004,1497722,Nice Answer,NULL,NULL,0,NULL,NULL 20900,184274,1465857,NULL,NULL,NULL,0,NULL,NULL 20901,9164,240039,NULL,NULL,NULL,0,NULL,NULL 20902,1563589,1173892,NULL,NULL,NULL,0,NULL,NULL 20903,500550,1326687,Editor Commentator,NULL,NULL,0,NULL,NULL 20904,901614,229071,Famous Question,NULL,NULL,0,NULL,NULL 20905,1084525,1122326,Notable Question Supporter,NULL,NULL,0,NULL,NULL 20906,261108,285873,Guru Necromancer Necromancer Nice Answer Yearling Nice Answer Nice Answer Popular Question Nice Answer Enlightened phpunit Nice Answer Famous Question php Necromancer Guru Good Answer Nice Answer Enlightened Nice Answer Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer java Sportsmanship Nice Answer Enlightened Nice Answer Good Answer Guru Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Good Answer Popular Question Nice Answer Necromancer Notable Question Announcer Announcer Census Good Question Good Answer Nice Answer Enlightened Yearling Good Question Guru Guru Nice Answer Enlightened Popular Question Nice Answer Enlightened Guru Great Answer Good Answer Great Answer,NULL,pYou just need to have module that exports codehistory code object Then you would import that object throughout your project ppre class lang js prettyprint override code history jsimport createBrowserHistory from history export default createBrowserHistory pass configuration object here if needed code prepThen instead of using one of the built in routers you would use the code lt Router gt code component ppre class lang js prettyprint override code index jsimport Router from react router dom import history from history import App from App ReactDOM render lt Router history history gt lt App gt lt Router gt holder code prepre class lang js prettyprint override code some other file jsimport history from history history push go here code pre Import createHashHistory if you were using HashRouter,0,NULL,NULL 20907,1352087,653420,Nice Question,NULL,NULL,0,NULL,NULL 20908,1374588,540189,Yearling Civic Duty Notable Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 20909,128059,404076,Famous Question,NULL,NULL,0,NULL,NULL 20910,410760,757252,NULL,NULL,NULL,0,NULL,NULL 20911,2762632,1007863,NULL,NULL,NULL,0,NULL,NULL 20912,398740,1070177,NULL,NULL,NULL,0,NULL,NULL 20913,34952,311381,Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20914,297940,224844,Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Popular Question Yearling Great Answer Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 20915,151657,267310,NULL,NULL,NULL,0,NULL,NULL 20916,340407,1168654,Disciplined Nice Answer Nice Question Yearling Electorate Announcer Announcer Nice Answer Announcer Guru Famous Question Good Answer Good Answer Notable Question Famous Question Popular Question Announcer Nice Answer Enlightened Good Answer Caucus Nice Answer Enlightened Announcer android Announcer Yearling Famous Question Nice Answer Nice Answer Census Announcer Notable Question Enthusiast Nice Answer Announcer Notable Question Announcer Nice Answer Announcer Announcer Caucus Good Answer Constituent Notable Question Announcer Announcer Popular Question Announcer Announcer Announcer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Census Nice Answer Enlightened Yearling Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Necromancer Caucus Announcer Popular Question Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Good Answer,NULL,NULL,0,NULL,NULL 20917,84978,530363,NULL,NULL,NULL,0,NULL,NULL 20918,378631,969551,Commentator Editor Scholar Student Supporter Tumbleweed Teacher Self-Learner Curious,NULL,NULL,0,NULL,NULL 20919,10400380,969551,Commentator Editor Scholar Student Supporter Tumbleweed Teacher Self-Learner Curious,NULL,NULL,0,NULL,NULL 20920,29685,832142,Scholar Student,NULL,NULL,0,NULL,NULL 20921,47656,1049205,NULL,NULL,NULL,0,NULL,NULL 20922,180792,1503485,Informed,NULL,NULL,0,NULL,NULL 20923,51467,564406,Yearling Notable Question Nice Question Good Answer Necromancer Nice Answer Popular Question Yearling Announcer Good Answer Yearling Notable Question Necromancer Popular Question Announcer,NULL,NULL,0,NULL,NULL 20924,372301,1269296,Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 20925,547068,885163,Notable Question Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 20926,921196,1263178,NULL,NULL,NULL,0,NULL,NULL 20927,60903,232417,Popular Question Popular Question Popular Question Famous Question Nice Question Great Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Nice Question Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Notable Question Notable Question Popular Question Famous Question Good Question Popular Question Popular Question Famous Question Famous Question Popular Question Necromancer Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Good Question Good Question Famous Question Notable Question Good Question Great Question Good Question Notable Question Nice Question Popular Question Nice Question Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Famous Question Nice Question Yearling Famous Question Nice Question Favorite Question Famous Question Nice Question Popular Question Famous Question Popular Question Notable Question Nice Question Famous Question Good Question Nice Question Notable Question Popular Question Famous Question Notable Question Notable Question Favorite Question Good Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 20928,223248,1252699,NULL,NULL,NULL,0,NULL,NULL 20929,236183,283094,Famous Question,NULL,NULL,0,NULL,NULL 20930,1111773,165674,Nice Answer Enlightened Popular Question Nice Answer Nice Answer Necromancer Necromancer Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Good Question Nice Answer Enlightened Necromancer Custodian Nice Answer Famous Question Good Answer Good Answer Nice Answer Mortarboard Announcer Good Answer Announcer Guru Announcer Caucus Announcer Good Answer Famous Question Yearling Documentation User Announcer Nice Answer Popular Question Great Answer Announcer Guru Nice Answer Announcer Booster Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 20931,692677,165674,Nice Answer Enlightened Popular Question Nice Answer Nice Answer Necromancer Necromancer Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Good Question Nice Answer Enlightened Necromancer Custodian Nice Answer Famous Question Good Answer Good Answer Nice Answer Mortarboard Announcer Good Answer Announcer Guru Announcer Caucus Announcer Good Answer Famous Question Yearling Documentation User Announcer Nice Answer Popular Question Great Answer Announcer Guru Nice Answer Announcer Booster Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 20932,146975,56488,Yearling Popular Question Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 20933,633298,673738,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20934,6613574,673738,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 20935,30367,679388,NULL,NULL,NULL,0,NULL,NULL 20936,99140,247985,Nice Answer Yearling Nice Answer Enlightened Popular Question Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened list Good Answer Good Answer Excavator Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Answer Yearling Famous Question Guru Good Answer Great Answer Good Answer Guru Nice Answer Good Answer Nice Answer Enlightened Popular Question Good Answer Good Answer Nice Answer Enlightened Notable Question Yearling Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Popular Question Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 20937,63541,181452,Popular Question Popular Question Nice Question Yearling Popular Question Nice Answer Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 20938,5431,910385,NULL,NULL,NULL,0,NULL,NULL 20939,848790,1074867,NULL,NULL,NULL,0,NULL,NULL 20940,99708,1010,NULL,NULL,NULL,0,NULL,NULL 20941,8734179,1235072,Guru Yearling Civic Duty Custodian Notable Question Yearling Nice Answer Caucus Yearling Announcer Good Answer,NULL,em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html Never used Paste before Not sure If will be having enough time to go through docs If ever manage to go through the docs will definitely come back and update this answer em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html By community mean number of Contributors Stars Forks Commits on GitHub am aware that this does not reflect the size of community as whole But IMHO think these things roughly translates to size and activity of community approx am not aware of any other source that can be more accurate Please correct me if am wrong em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html Sorry for the late reply some how missed your last comment am just reading this In that case the order that mentioned above reflects my perception But might be wrong The first one has bigger community than the next But there is one change though Its been long time since wrote the answer Seems like flask is growing at faster pace than Django in terms in community size Just looking at the stars forks metrics here em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html But celery is not Web Framework Yes its built around web frameworks Its more of task scheduler manager em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html You can always use Python inbuilt socket library,0,NULL,NULL 20942,8311,1235072,Guru Yearling Civic Duty Custodian Notable Question Yearling Nice Answer Caucus Yearling Announcer Good Answer,NULL,em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html Never used Paste before Not sure If will be having enough time to go through docs If ever manage to go through the docs will definitely come back and update this answer em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html By community mean number of Contributors Stars Forks Commits on GitHub am aware that this does not reflect the size of community as whole But IMHO think these things roughly translates to size and activity of community approx am not aware of any other source that can be more accurate Please correct me if am wrong em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html Sorry for the late reply some how missed your last comment am just reading this In that case the order that mentioned above reflects my perception But might be wrong The first one has bigger community than the next But there is one change though Its been long time since wrote the answer Seems like flask is growing at faster pace than Django in terms in community size Just looking at the stars forks metrics here em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html But celery is not Web Framework Yes its built around web frameworks Its more of task scheduler manager em strong href https www djangoproject com rel noreferrer Django strong is high level Python Web framework that encourages rapid development and clean pragmatic design em If you are building something that is similar to commerce site then you should probably go with Django It will get your work done quick You dont have to worry about too many technology choices It provides everything thing you need from template engine to ORM It will be slightly opinionated about the way you structure your app which is good If you ask me And it has the strongest community of all the other libraries which means easy help is available pp em strong href http flask pocoo org rel noreferrer Flask strong is microframework for Python based on Werkzeug Jinja and good intentions em Beware microframework may be misleading This does not mean that Flask is half baked library This mean the core of flask is very very simple Unlike Django It will not make any Technology decisions for you You are free to choose any template engine or ORM that pleases you Even though it comes with Jinja template engine by default you are always free to choose our own As far as know Flask comes in handy for writing APIs endpoints RESTful services pp em strong href https twistedmatrix com rel noreferrer Twisted strong is an event driven networking engine written in python em This is high performance engine The main reason for its speed is something called as deferred Twisted is built on top of deferreds For those of you who dont know about defereds it is the mechanism through with asynchronous architecture is achieved Twisted is very fast But is not suitable for writing conventional webapps If you want to do something low level networking stuff twisted is your friend pp em strong href http www tornadoweb org en stable rel noreferrer Tornado strong is Python web framework and asynchronous networking library originally developed at FriendFeed By using non blocking network Tornado can scale to tens of thousands of open connections making it ideal for long polling WebSockets and other applications that require long lived connection to each user em Tornado stands some where between Django and Flask If you want to write something with Django or Flask but if you need better performance you can opt for Tornado it can handle C10k problem very well if it is architected right pp em strong href http cyclone io rel noreferrer Cyclone strong is web server framework for Python that implements the Tornado API as Twisted protocol em Now what if you want something that is nearly as performant as Twisted but easy to write conventional webapps Say hello to cyclone would prefer Cyclone over Tornado It has an API that is very similar to Tornado As matter of fact this is fork of Tornado But the problem is it has relativly small community Alexandre Fiori is the only main commiter to the repo pp em strong href http docs pylonsproject org en latest docs pyramid html rel noreferrer Pyramid strong is general open source Python web application development framework Its primary goal is to make it easier for Python developer to create web applications em haven really used Pyramid but went through the documentation From what understand Pyramid is very similar to emFlask em and think you can use Pyramid wherever emFlask em seems appropriate and vice versa pp strong emEDIT em strong Request to review any other frameworks are welcomed ppSource href http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html rel noreferrer http dhilipsiva com 2013 05 19 python libraries django twisted tornado flask cyclone and pyramid html You can always use Python inbuilt socket library,0,NULL,NULL 20943,904845,479540,Yearling Nice Question Necromancer Notable Question Popular Question Popular Question Revival Popular Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 20944,101462,631666,Commentator Yearling Custodian Tenacious Custodian Yearling,NULL,NULL,0,NULL,NULL 20945,2016647,870161,NULL,NULL,NULL,0,NULL,NULL 20946,454346,597441,reactjs Great Answer Yearling Guru javascript Notable Question Good Answer Good Answer Nice Answer Enlightened Good Answer Popular Question Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Caucus Nice Answer Enlightened Popular Question html Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Good Answer Caucus Nice Answer Enlightened twitter-bootstrap Good Answer Census Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Nice Answer Good Answer javascript Good Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 20947,512979,449987,Popular Question Promoter Benefactor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20948,763012,267680,Yearling Notable Question Necromancer Self-Learner Popular Question Critic Custodian Popular Question Necromancer Caucus Yearling Necromancer Nice Answer Necromancer Yearling Enthusiast Civic Duty Nice Answer Good Answer Yearling Populist Necromancer Necromancer Yearling Nice Answer Popular Question Notable Question Necromancer Necromancer Popular Question Nice Answer Yearling Announcer Revival Caucus Constituent Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 20949,208232,722262,NULL,NULL,NULL,0,NULL,NULL 20950,1344735,375365,NULL,NULL,NULL,0,NULL,NULL 20951,451402,1496125,NULL,NULL,NULL,0,NULL,NULL 20952,760129,1556683,Autobiographer,NULL,NULL,0,NULL,NULL 20953,71915,572635,Yearling Good Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Great Answer Nice Answer Caucus Yearling Famous Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 20954,39394,96716,NULL,NULL,NULL,0,NULL,NULL 20955,471188,722427,Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 20956,35062,36330,Nice Question Good Answer Popular Question Good Answer Notable Question Custodian Notable Question Nice Question Nice Answer Good Answer Famous Question Favorite Question Popular Question Popular Question Notable Question Notable Question Famous Question Favorite Question Famous Question Popular Question Notable Question Nice Question Nice Answer Notable Question Yearling Caucus Famous Question Nice Question Nice Answer Notable Question Notable Question Notable Question Notable Question Favorite Question Famous Question Famous Question Nice Question Notable Question Necromancer Nice Answer Great Question Famous Question Notable Question Caucus Nice Question Famous Question Great Answer Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Great Question Popular Question Famous Question Popular Question Good Answer Nice Question Nice Answer Enlightened Good Answer Nice Question Popular Question Popular Question Popular Question Popular Question Good Question Favorite Question Nice Question Famous Question Popular Question Yearling Revival Popular Question Nice Question,NULL,How can listen for usb device inserted events in Linux in Python python linux usb pI like to write Python script for Amarok in Linux to automatically copy the stackoverflow podcast to my player When plug in the player it would mount the drive copy any pending podcasts and eject the player How can listen for the plugged in event have looked through hald but couldn find good example Wow can you believe we used to listen to podcasts on devices that did not have an always on broadband connection to the internet href http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis rel noreferrer http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis provides an overview of this issue from PostgreSQL perspective ppIs DDL transactional according to this document pulliPostgreSQL yes liliMySQL no DDL causes an implicit commit liliOracle Database 11g Release and above by default no but an alternative called edition based redefinition exists liliOlder versions of Oracle no DDL causes an implicit commit liliSQL Server yes liliSybase Adaptive Server yes liliDB2 yes liliInformix yes liliFirebird Interbase yes li ulpSQLite also appears to have transactional DDL as well was able to codeROLLBACK code codeCREATE TABLE code statement in SQLite Its codeCREATE TABLE code documentation does not mention any special transactional gotchas Is SQL Server the same thing as Microsoft SQL,0,NULL,NULL 20957,1362481,945493,NULL,NULL,NULL,0,NULL,NULL 20958,191220,1398522,NULL,NULL,NULL,0,NULL,NULL 20959,229726,149128,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 20960,13998,303334,NULL,NULL,NULL,0,NULL,NULL 20961,463064,1103112,Famous Question Good Question Peer Pressure Citizen Patrol Yearling Caucus Commentator Scholar,NULL,NULL,0,NULL,NULL 20962,227807,424474,NULL,NULL,NULL,0,NULL,NULL 20963,1566790,958260,Supporter Necromancer Popular Question Revival Autobiographer Revival,NULL,NULL,0,NULL,NULL 20964,1157489,935836,Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 20965,625569,1495164,NULL,NULL,NULL,0,NULL,NULL 20966,634100,945552,NULL,NULL,NULL,0,NULL,NULL 20967,395079,966152,NULL,NULL,NULL,0,NULL,NULL 20968,629,352531,NULL,NULL,NULL,0,NULL,NULL 20969,28494,145525,Guru vim Good Answer Yearling Revival Nice Answer Custodian Explainer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 20970,182673,81264,Yearling,NULL,NULL,0,NULL,NULL 20971,178065,340932,Popular Question Revival Yearling Custodian,NULL,NULL,0,NULL,NULL 20972,53067,972283,NULL,NULL,NULL,0,NULL,NULL 20973,117878,155951,Popular Question Good Answer Popular Question Necromancer Notable Question Yearling Notable Question Favorite Question Yearling Popular Question Famous Question Populist Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 20974,122141,590933,Notable Question Popular Question Critic Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 20975,176794,861105,Popular Question,NULL,NULL,0,NULL,NULL 20976,299817,1049088,NULL,NULL,NULL,0,NULL,NULL 20977,2797138,261439,Yearling Nice Answer Nice Answer Necromancer Nice Answer Yearling Yearling Organizer,NULL,NULL,0,NULL,NULL 20978,3677976,261439,Yearling Nice Answer Nice Answer Necromancer Nice Answer Yearling Yearling Organizer,NULL,NULL,0,NULL,NULL 20979,387641,1270406,NULL,NULL,NULL,0,NULL,NULL 20980,53837,1481415,Curious Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 20981,673173,792906,NULL,NULL,NULL,0,NULL,NULL 20982,58040,1173062,NULL,NULL,NULL,0,NULL,NULL 20983,441699,748272,NULL,NULL,NULL,0,NULL,NULL 20984,2416268,890016,Curious Caucus Constituent Popular Question Caucus Documentation User Notable Question Caucus Popular Question Yearling Custodian,NULL,pAnother way to implement Pair with pulliPublic immutable fields simple data structure liliComparable liliSimple hash and equals lili pSimple factory so you don have to provide the types Pair of hello ppre codepublic class Pair lt FIRST SECOND gt implements Comparable lt Pair lt FIRST SECOND gt gt public final FIRST first public final SECOND second private Pair FIRST first SECOND second this first first this second second public static lt FIRST SECOND gt Pair lt FIRST SECOND gt of FIRST first SECOND second return new Pair lt FIRST SECOND gt first second public int compareTo Pair lt FIRST SECOND gt int cmp compare first first return cmp compare second second cmp todo move this to helper class private static int compare Object o1 Object o2 return o1 null o2 null o2 null Comparable o1 compareTo o2 public int hashCode return 31 hashcode first hashcode second todo move this to helper class private static int hashcode Object return null hashCode public boolean equals Object obj if obj instanceof Pair return false if this obj return true return equal first Pair obj first amp amp equal second Pair obj second todo move this to helper class private boolean equal Object o1 Object o2 return o1 null o2 null o1 o2 o1 equals o2 public String toString return first second code pre li ul łZieliński think the 31 is there because 31 is Eclipse favorite prime number appears when you use generate hashCode and equals Computing power would be too expensive for general use class like this though,0,NULL,NULL 20985,1512134,1015799,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 20986,376591,353535,Famous Question,NULL,NULL,0,NULL,NULL 20987,424632,687157,Citizen Patrol,NULL,NULL,0,NULL,NULL 20988,513100,1545889,Notable Question Scholar Supporter Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 20989,238188,650414,NULL,NULL,NULL,0,NULL,NULL 20990,357402,166765,Enthusiast Yearling Nice Question Critic Notable Question Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 20991,1272582,469771,Popular Question,NULL,NULL,0,NULL,NULL 20992,430834,459056,Popular Question,NULL,NULL,0,NULL,NULL 20993,317932,1227232,NULL,NULL,NULL,0,NULL,NULL 20994,148103,667627,Yearling,NULL,NULL,0,NULL,NULL 20995,542990,620835,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 20996,97877,523007,NULL,NULL,NULL,0,NULL,NULL 20997,84381,909748,Notable Question,NULL,NULL,0,NULL,NULL 20998,62518,830848,NULL,NULL,NULL,0,NULL,NULL 20999,1827790,554743,NULL,NULL,NULL,0,NULL,NULL 21000,435475,554743,NULL,NULL,NULL,0,NULL,NULL 21001,143244,1067481,NULL,NULL,NULL,0,NULL,NULL 21002,335433,200006,Popular Question Nice Question Famous Question Teacher,NULL,NULL,0,NULL,NULL 21003,87033,200006,Popular Question Nice Question Famous Question Teacher,NULL,NULL,0,NULL,NULL 21004,74584,1276696,Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Famous Question Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Announcer Necromancer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 21005,108335,1002512,NULL,NULL,NULL,0,NULL,NULL 21006,211924,1364288,Nice Answer Enlightened Notable Question Nice Question Yearling Nice Answer Enlightened Nice Question Nice Answer Civic Duty Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Self-Learner Populist Nice Answer Explainer Announcer Nice Answer Yearling Nice Answer Enlightened haskell Nice Answer Necromancer Documentation User Nice Answer Caucus Yearling Nice Answer Enlightened Custodian Nice Answer Nice Answer Good Answer Nice Answer Enlightened monad-transformers,NULL,Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers see two possible problems you are using Data Aeson decode instead of the stricter Data Aeson decode which builds less thunks You seem to be getting the response to the http request as String String is very wasteful representation in Haskell It would be more efficient to get the response as ByteString and pipe it into decode without the need for fromString What http library are you using pThis is partial answer as it doesn handle file truncation by codelogrotate code It avoids lazy and uses the href http hackage haskell org package bytestring 10 docs Data ByteString html hGetSome rel nofollow noreferrer bytestring href http hackage haskell org package streaming rel nofollow noreferrer streaming href http hackage haskell org package streaming bytestring rel nofollow noreferrer streaming bytestring and href http hackage haskell org package hinotify rel nofollow noreferrer hinotify packages ppSome preliminary imports ppre code language OverloadedStrings module Main whereimport qualified Data ByteStringimport Data ByteString Lazy Internal defaultChunkSize import qualified Data ByteString Streaming as Bimport Streamingimport qualified Streaming Prelude as Simport Control Concurrent QSemimport System INotifyimport System IO withFile IOMode ReadMode import System Environment getArgs code prepHere the tailing function ppre codetailing FilePath gt ByteString IO gt IO gt IO rtailing filepath continuation withINotify gt do sem lt newQSem addWatch Modify filepath gt signalQSem sem withFile filepath ReadMode gt continuation handleToStream sem where handleToStream sem concat Streaming repeats do lift waitQSem sem readWithoutClosing Can use fromHandle here because annoyingly it closes handle on EOF instead of just returning and this causes problems on new appends readWithoutClosing do lt lift Data ByteString hGetSome defaultChunkSize if Data ByteString null then return else do chunk readWithoutClosing code prepIt takes file path an callback that consumes streaming bytestring ppThe idea is that each time before reading from the handle until EOF we decrement semaphore which is only increased by the callback that is invoked when the file is modified ppWe can test the function like this ppre codemain IO main do filepath lt getArgs tailing filepath stdout code pre Some useful related links http unix stackexchange com questions 41668 what happens when you read file while it is overwritten http unix stackexchange com 39509 59909,1,NULL,How to efficiently follow tail file with Haskell including detecting file rotation tail haskell pIn essence wish to know how to approach implementing codetail code Linux command functionality in Haskell My goal is to follow log file such as web server log file and compute various real time statistics by parsing the input as it comes in Ideally with no interruptions if the log file is rotated with codelogrotate code or similar service ppI somewhat at loss on how to even approach the problem and what should take into consideration in terms of performance in presence of lazy Would any of the streaming libraries be relevant here pThis is partial answer as it doesn handle file truncation by codelogrotate code It avoids lazy and uses the href http hackage haskell org package bytestring 10 docs Data ByteString html hGetSome rel nofollow noreferrer bytestring href http hackage haskell org package streaming rel nofollow noreferrer streaming href http hackage haskell org package streaming bytestring rel nofollow noreferrer streaming bytestring and href http hackage haskell org package hinotify rel nofollow noreferrer hinotify packages ppSome preliminary imports ppre code language OverloadedStrings module Main whereimport qualified Data ByteStringimport Data ByteString Lazy Internal defaultChunkSize import qualified Data ByteString Streaming as Bimport Streamingimport qualified Streaming Prelude as Simport Control Concurrent QSemimport System INotifyimport System IO withFile IOMode ReadMode import System Environment getArgs code prepHere the tailing function ppre codetailing FilePath gt ByteString IO gt IO gt IO rtailing filepath continuation withINotify gt do sem lt newQSem addWatch Modify filepath gt signalQSem sem withFile filepath ReadMode gt continuation handleToStream sem where handleToStream sem concat Streaming repeats do lift waitQSem sem readWithoutClosing Can use fromHandle here because annoyingly it closes handle on EOF instead of just returning and this causes problems on new appends readWithoutClosing do lt lift Data ByteString hGetSome defaultChunkSize if Data ByteString null then return else do chunk readWithoutClosing code prepIt takes file path an callback that consumes streaming bytestring ppThe idea is that each time before reading from the handle until EOF we decrement semaphore which is only increased by the callback that is invoked when the file is modified ppWe can test the function like this ppre codemain IO main do filepath lt getArgs tailing filepath stdout code pre 21007,172466,700740,NULL,NULL,NULL,0,NULL,NULL 21008,773529,56541,Great Answer Nice Answer Guru Yearling Good Answer Nice Answer Good Answer Nice Answer Notable Question Good Answer Good Answer list Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Question Good Answer Good Answer Good Answer Necromancer Announcer Necromancer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Guru Custodian Guru Popular Question Yearling Great Answer Custodian Guru Nice Answer Guru Generalist Nice Answer Announcer Nice Question Nice Answer Guru Nice Answer Enlightened Nice Answer Excavator Great Answer Guru Guru Guru Nice Answer Guru Nice Answer Guru Nice Answer Good Question Great Answer Great Answer Great Answer Nice Answer Census Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Question Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Great Answer Nice Answer Guru html Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Guru Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Announcer,NULL,pAre you talking about href https docs python org tutorial controlflow html lambda expressions rel noreferrer lambda functions Like ppre codelambda code prepThose things are actually quite useful Python supports style of programming called emfunctional programming em where you can pass functions to other functions to do stuff Example ppre codemult3 filter lambda code prepsets codemult3 code to code code those elements of the original list that are multiples of This is shorter and one could argue clearer than ppre codedef filterfunc return 0mult3 filter filterfunc code prepOf course in this particular case you could do the same thing as list comprehension ppre codemult3 for in if code prep or even as coderange 10 code but there are many other more sophisticated use cases where you can use list comprehension and lambda function may be the shortest way to write something out pulli pReturning function from another function ppre code gt gt gt def transform return lambda gt gt gt transform gt gt gt code prepThis is often used to create function wrappers such as Python decorators lili pCombining elements of an iterable sequence with codereduce code ppre code gt gt gt reduce lambda format code pre lili pSorting by an alternate key ppre code gt gt gt sorted key lambda abs code pre li ulpI use lambda functions on regular basis It took me while to get used to them but eventually came to understand that they re very valuable part of the language It not definition it just statement about something that functional programming allows you to do pOn systems that have codepgrep code available the code code option returns count of the number of processes that match the given name ppre codepgrep command name code prepNote that this is codegrep code style match not an exact match so codepgrep sh code will also match codebash code processes If you want an exact match also use the code code option ppIf codepgrep code is not available you can use codeps code and codewc code ppre codeps command name no headers wc code prepThe code code option to codeps code takes codecommand name code as an argument and the program prints table of information about processes whose executable name matches the given command name This is an exact match not codegrep code style The code no headers code option suppresses the headers of the table which are normally printed as the first line With code no headers code you get one line per process matched Then codewc code counts and prints the number of lines in its input hard to say without seeing what the processes are pFirst the function for those who just want some copy and paste code ppre codedef truncate Truncates pads float to decimal places without rounding format if in or in return format partition return join code prepThis is valid in Python and For older versions it not possible to get the same intelligent rounding effect at least not without lot of complicated code but rounding to 12 decimal places before truncation will work much of the time ppre codedef truncate Truncates pads float to decimal places without rounding 12f partition return join code preh1Explanation h1pThe core of the underlying method is to convert the value to string at full precision and then just chop off everything beyond the desired number of characters The latter step is easy it can be done either with string manipulation ppre codei partition join code prepor the codedecimal code module ppre codestr Decimal quantize Decimal rounding ROUND DOWN code prepThe first step converting to string is quite difficult because there are some pairs of floating point literals what you write in the source code which both produce the same binary representation and yet should be truncated differently For example consider and 29999999999999998 If you write code0 code in Python program the compiler encodes it using the IEEE floating point format into the sequence of bits assuming 64 bit float ppre code0011111111010011001100110011001100110011001100110011001100110011 code prepThis is the closest value to that can accurately be represented as an IEEE float But if you write code0 29999999999999998 code in Python program the compiler translates it into emexactly the same value em In one case you meant it to be truncated to one digit as code0 code whereas in the other case you meant it to be truncated as code0 code but Python can only give one answer This is fundamental limitation of Python or indeed any programming language without lazy evaluation The truncation function only has access to the binary value stored in the computer memory not the string you actually typed into the source code sup1 sup ppIf you decode the sequence of bits back into decimal number again using the IEEE 64 bit floating point format you get ppre code0 2999999999999999888977697537484345957637 code prepso naive implementation would come up with code0 code even though that probably not what you want For more on floating point representation error href https docs python org tutorial floatingpoint html rel noreferrer see the Python tutorial ppIt very rare to be working with floating point value that is so close to round number and yet is emintentionally em not equal to that round number So when truncating it probably makes sense to choose the nicest decimal representation out of all that could correspond to the value in memory Python and up but not includes href https bugs python org issue1580 rel noreferrer sophisticated algorithm to do just that which we can access through the default string formatting operation ppre code format code prepThe only caveat is that this acts like codeg code format specification in the sense that it uses exponential notation code1 23e code if the number is large or small enough So the method has to catch this case and handle it differently There are few cases where using an codef code format specification instead causes problem such as trying to truncate code3e 10 code to 28 digits of precision it produces code0 0000000002999999999999999980 code and not yet sure how best to handle those ppIf you actually emare em working with codefloat codes that are very close to round numbers but intentionally not equal to them like 29999999999999998 or 99 959999999999994 this will produce some false positives it ll round numbers that you didn want rounded In that case the solution is to specify fixed precision ppre code format sys float info dig code prepThe number of digits of precision to use here doesn really matter it only needs to be large enough to ensure that any rounding performed in the string conversion doesn bump up the value to its nice decimal representation think codesys float info dig code may be enough in all cases but if not that code2 code might have to be increased and it doesn hurt to do so ppIn earlier versions of Python up to or the floating point number formatting was lot more crude and would regularly produce things like ppre code gt gt gt 11 1000000000000001 code prepIf this is your situation if you emdo em want to use nice decimal representations for truncation all you can do as far as know is pick some number of digits less than the full precision representable by codefloat code and round the number to that many digits before truncating it typical choice is 12 ppre code 12f code prepbut you can adjust this to suit the numbers you re using phrp sup1 supWell lied Technically you emcan em instruct Python to re parse its own source code and extract the part corresponding to the first argument you pass to the truncation function If that argument is floating point literal you can just cut it off certain number of places after the decimal point and return that However this strategy doesn work if the argument is variable which makes it fairly useless The following is presented for entertainment value only ppre codedef trunc introspect Truncates pads the float to decimal places by looking at the caller source code current frame None caller frame None inspect stack try current frame caller frame gen tokenize tokenize io BytesIO caller frame caller frame encode utf readline for token type token string in gen if token type tokenize NAME and token string current frame next gen left parenthesis token type token string next gen float literal if token type tokenize NUMBER try cut point token string index except ValueError no decimal in string return token string else if len token string lt cut point token string cut point len token string return token string cut point else raise ValueError Unable to find floating point literal this probably means you called with variable format current frame break finally del current frame caller frame code prepGeneralizing this to handle the case where you pass in variable seems like lost cause since you have to trace backwards through the program execution until you find the floating point literal which gave the variable its value If there even is one Most variables will be initialized from user input or mathematical expressions in which case the binary representation is all there is Off the top of my head the same way you apply any other function that operates on individual elements applymap Maybe there way to make the whole operation more efficient but that would be matter for separate question pFirst the function for those who just want some copy and paste code ppre codedef truncate Truncates pads float to decimal places without rounding format if in or in return format partition return join code prepThis is valid in Python and For older versions it not possible to get the same intelligent rounding effect at least not without lot of complicated code but rounding to 12 decimal places before truncation will work much of the time ppre codedef truncate Truncates pads float to decimal places without rounding 12f partition return join code preh1Explanation h1pThe core of the underlying method is to convert the value to string at full precision and then just chop off everything beyond the desired number of characters The latter step is easy it can be done either with string manipulation ppre codei partition join code prepor the codedecimal code module ppre codestr Decimal quantize Decimal rounding ROUND DOWN code prepThe first step converting to string is quite difficult because there are some pairs of floating point literals what you write in the source code which both produce the same binary representation and yet should be truncated differently For example consider and 29999999999999998 If you write code0 code in Python program the compiler encodes it using the IEEE floating point format into the sequence of bits assuming 64 bit float ppre code0011111111010011001100110011001100110011001100110011001100110011 code prepThis is the closest value to that can accurately be represented as an IEEE float But if you write code0 29999999999999998 code in Python program the compiler translates it into emexactly the same value em In one case you meant it to be truncated to one digit as code0 code whereas in the other case you meant it to be truncated as code0 code but Python can only give one answer This is fundamental limitation of Python or indeed any programming language without lazy evaluation The truncation function only has access to the binary value stored in the computer memory not the string you actually typed into the source code sup1 sup ppIf you decode the sequence of bits back into decimal number again using the IEEE 64 bit floating point format you get ppre code0 2999999999999999888977697537484345957637 code prepso naive implementation would come up with code0 code even though that probably not what you want For more on floating point representation error href https docs python org tutorial floatingpoint html rel noreferrer see the Python tutorial ppIt very rare to be working with floating point value that is so close to round number and yet is emintentionally em not equal to that round number So when truncating it probably makes sense to choose the nicest decimal representation out of all that could correspond to the value in memory Python and up but not includes href https bugs python org issue1580 rel noreferrer sophisticated algorithm to do just that which we can access through the default string formatting operation ppre code format code prepThe only caveat is that this acts like codeg code format specification in the sense that it uses exponential notation code1 23e code if the number is large or small enough So the method has to catch this case and handle it differently There are few cases where using an codef code format specification instead causes problem such as trying to truncate code3e 10 code to 28 digits of precision it produces code0 0000000002999999999999999980 code and not yet sure how best to handle those ppIf you actually emare em working with codefloat codes that are very close to round numbers but intentionally not equal to them like 29999999999999998 or 99 959999999999994 this will produce some false positives it ll round numbers that you didn want rounded In that case the solution is to specify fixed precision ppre code format sys float info dig code prepThe number of digits of precision to use here doesn really matter it only needs to be large enough to ensure that any rounding performed in the string conversion doesn bump up the value to its nice decimal representation think codesys float info dig code may be enough in all cases but if not that code2 code might have to be increased and it doesn hurt to do so ppIn earlier versions of Python up to or the floating point number formatting was lot more crude and would regularly produce things like ppre code gt gt gt 11 1000000000000001 code prepIf this is your situation if you emdo em want to use nice decimal representations for truncation all you can do as far as know is pick some number of digits less than the full precision representable by codefloat code and round the number to that many digits before truncating it typical choice is 12 ppre code 12f code prepbut you can adjust this to suit the numbers you re using phrp sup1 supWell lied Technically you emcan em instruct Python to re parse its own source code and extract the part corresponding to the first argument you pass to the truncation function If that argument is floating point literal you can just cut it off certain number of places after the decimal point and return that However this strategy doesn work if the argument is variable which makes it fairly useless The following is presented for entertainment value only ppre codedef trunc introspect Truncates pads the float to decimal places by looking at the caller source code current frame None caller frame None inspect stack try current frame caller frame gen tokenize tokenize io BytesIO caller frame caller frame encode utf readline for token type token string in gen if token type tokenize NAME and token string current frame next gen left parenthesis token type token string next gen float literal if token type tokenize NUMBER try cut point token string index except ValueError no decimal in string return token string else if len token string lt cut point token string cut point len token string return token string cut point else raise ValueError Unable to find floating point literal this probably means you called with variable format current frame break finally del current frame caller frame code prepGeneralizing this to handle the case where you pass in variable seems like lost cause since you have to trace backwards through the program execution until you find the floating point literal which gave the variable its value If there even is one Most variables will be initialized from user input or mathematical expressions in which case the binary representation is all there is Ah well if you re trying to compare two dataframes for differences ask about that instead Truncating the values which is what this question is about is not the best way to do it pFirst the function for those who just want some copy and paste code ppre codedef truncate Truncates pads float to decimal places without rounding format if in or in return format partition return join code prepThis is valid in Python and For older versions it not possible to get the same intelligent rounding effect at least not without lot of complicated code but rounding to 12 decimal places before truncation will work much of the time ppre codedef truncate Truncates pads float to decimal places without rounding 12f partition return join code preh1Explanation h1pThe core of the underlying method is to convert the value to string at full precision and then just chop off everything beyond the desired number of characters The latter step is easy it can be done either with string manipulation ppre codei partition join code prepor the codedecimal code module ppre codestr Decimal quantize Decimal rounding ROUND DOWN code prepThe first step converting to string is quite difficult because there are some pairs of floating point literals what you write in the source code which both produce the same binary representation and yet should be truncated differently For example consider and 29999999999999998 If you write code0 code in Python program the compiler encodes it using the IEEE floating point format into the sequence of bits assuming 64 bit float ppre code0011111111010011001100110011001100110011001100110011001100110011 code prepThis is the closest value to that can accurately be represented as an IEEE float But if you write code0 29999999999999998 code in Python program the compiler translates it into emexactly the same value em In one case you meant it to be truncated to one digit as code0 code whereas in the other case you meant it to be truncated as code0 code but Python can only give one answer This is fundamental limitation of Python or indeed any programming language without lazy evaluation The truncation function only has access to the binary value stored in the computer memory not the string you actually typed into the source code sup1 sup ppIf you decode the sequence of bits back into decimal number again using the IEEE 64 bit floating point format you get ppre code0 2999999999999999888977697537484345957637 code prepso naive implementation would come up with code0 code even though that probably not what you want For more on floating point representation error href https docs python org tutorial floatingpoint html rel noreferrer see the Python tutorial ppIt very rare to be working with floating point value that is so close to round number and yet is emintentionally em not equal to that round number So when truncating it probably makes sense to choose the nicest decimal representation out of all that could correspond to the value in memory Python and up but not includes href https bugs python org issue1580 rel noreferrer sophisticated algorithm to do just that which we can access through the default string formatting operation ppre code format code prepThe only caveat is that this acts like codeg code format specification in the sense that it uses exponential notation code1 23e code if the number is large or small enough So the method has to catch this case and handle it differently There are few cases where using an codef code format specification instead causes problem such as trying to truncate code3e 10 code to 28 digits of precision it produces code0 0000000002999999999999999980 code and not yet sure how best to handle those ppIf you actually emare em working with codefloat codes that are very close to round numbers but intentionally not equal to them like 29999999999999998 or 99 959999999999994 this will produce some false positives it ll round numbers that you didn want rounded In that case the solution is to specify fixed precision ppre code format sys float info dig code prepThe number of digits of precision to use here doesn really matter it only needs to be large enough to ensure that any rounding performed in the string conversion doesn bump up the value to its nice decimal representation think codesys float info dig code may be enough in all cases but if not that code2 code might have to be increased and it doesn hurt to do so ppIn earlier versions of Python up to or the floating point number formatting was lot more crude and would regularly produce things like ppre code gt gt gt 11 1000000000000001 code prepIf this is your situation if you emdo em want to use nice decimal representations for truncation all you can do as far as know is pick some number of digits less than the full precision representable by codefloat code and round the number to that many digits before truncating it typical choice is 12 ppre code 12f code prepbut you can adjust this to suit the numbers you re using phrp sup1 supWell lied Technically you emcan em instruct Python to re parse its own source code and extract the part corresponding to the first argument you pass to the truncation function If that argument is floating point literal you can just cut it off certain number of places after the decimal point and return that However this strategy doesn work if the argument is variable which makes it fairly useless The following is presented for entertainment value only ppre codedef trunc introspect Truncates pads the float to decimal places by looking at the caller source code current frame None caller frame None inspect stack try current frame caller frame gen tokenize tokenize io BytesIO caller frame caller frame encode utf readline for token type token string in gen if token type tokenize NAME and token string current frame next gen left parenthesis token type token string next gen float literal if token type tokenize NUMBER try cut point token string index except ValueError no decimal in string return token string else if len token string lt cut point token string cut point len token string return token string cut point else raise ValueError Unable to find floating point literal this probably means you called with variable format current frame break finally del current frame caller frame code prepGeneralizing this to handle the case where you pass in variable seems like lost cause since you have to trace backwards through the program execution until you find the floating point literal which gave the variable its value If there even is one Most variables will be initialized from user input or mathematical expressions in which case the binary representation is all there is just tested on Python and and not seeing that The function works properly for all the negative numbers tried pFirst the function for those who just want some copy and paste code ppre codedef truncate Truncates pads float to decimal places without rounding format if in or in return format partition return join code prepThis is valid in Python and For older versions it not possible to get the same intelligent rounding effect at least not without lot of complicated code but rounding to 12 decimal places before truncation will work much of the time ppre codedef truncate Truncates pads float to decimal places without rounding 12f partition return join code preh1Explanation h1pThe core of the underlying method is to convert the value to string at full precision and then just chop off everything beyond the desired number of characters The latter step is easy it can be done either with string manipulation ppre codei partition join code prepor the codedecimal code module ppre codestr Decimal quantize Decimal rounding ROUND DOWN code prepThe first step converting to string is quite difficult because there are some pairs of floating point literals what you write in the source code which both produce the same binary representation and yet should be truncated differently For example consider and 29999999999999998 If you write code0 code in Python program the compiler encodes it using the IEEE floating point format into the sequence of bits assuming 64 bit float ppre code0011111111010011001100110011001100110011001100110011001100110011 code prepThis is the closest value to that can accurately be represented as an IEEE float But if you write code0 29999999999999998 code in Python program the compiler translates it into emexactly the same value em In one case you meant it to be truncated to one digit as code0 code whereas in the other case you meant it to be truncated as code0 code but Python can only give one answer This is fundamental limitation of Python or indeed any programming language without lazy evaluation The truncation function only has access to the binary value stored in the computer memory not the string you actually typed into the source code sup1 sup ppIf you decode the sequence of bits back into decimal number again using the IEEE 64 bit floating point format you get ppre code0 2999999999999999888977697537484345957637 code prepso naive implementation would come up with code0 code even though that probably not what you want For more on floating point representation error href https docs python org tutorial floatingpoint html rel noreferrer see the Python tutorial ppIt very rare to be working with floating point value that is so close to round number and yet is emintentionally em not equal to that round number So when truncating it probably makes sense to choose the nicest decimal representation out of all that could correspond to the value in memory Python and up but not includes href https bugs python org issue1580 rel noreferrer sophisticated algorithm to do just that which we can access through the default string formatting operation ppre code format code prepThe only caveat is that this acts like codeg code format specification in the sense that it uses exponential notation code1 23e code if the number is large or small enough So the method has to catch this case and handle it differently There are few cases where using an codef code format specification instead causes problem such as trying to truncate code3e 10 code to 28 digits of precision it produces code0 0000000002999999999999999980 code and not yet sure how best to handle those ppIf you actually emare em working with codefloat codes that are very close to round numbers but intentionally not equal to them like 29999999999999998 or 99 959999999999994 this will produce some false positives it ll round numbers that you didn want rounded In that case the solution is to specify fixed precision ppre code format sys float info dig code prepThe number of digits of precision to use here doesn really matter it only needs to be large enough to ensure that any rounding performed in the string conversion doesn bump up the value to its nice decimal representation think codesys float info dig code may be enough in all cases but if not that code2 code might have to be increased and it doesn hurt to do so ppIn earlier versions of Python up to or the floating point number formatting was lot more crude and would regularly produce things like ppre code gt gt gt 11 1000000000000001 code prepIf this is your situation if you emdo em want to use nice decimal representations for truncation all you can do as far as know is pick some number of digits less than the full precision representable by codefloat code and round the number to that many digits before truncating it typical choice is 12 ppre code 12f code prepbut you can adjust this to suit the numbers you re using phrp sup1 supWell lied Technically you emcan em instruct Python to re parse its own source code and extract the part corresponding to the first argument you pass to the truncation function If that argument is floating point literal you can just cut it off certain number of places after the decimal point and return that However this strategy doesn work if the argument is variable which makes it fairly useless The following is presented for entertainment value only ppre codedef trunc introspect Truncates pads the float to decimal places by looking at the caller source code current frame None caller frame None inspect stack try current frame caller frame gen tokenize tokenize io BytesIO caller frame caller frame encode utf readline for token type token string in gen if token type tokenize NAME and token string current frame next gen left parenthesis token type token string next gen float literal if token type tokenize NUMBER try cut point token string index except ValueError no decimal in string return token string else if len token string lt cut point token string cut point len token string return token string cut point else raise ValueError Unable to find floating point literal this probably means you called with variable format current frame break finally del current frame caller frame code prepGeneralizing this to handle the case where you pass in variable seems like lost cause since you have to trace backwards through the program execution until you find the floating point literal which gave the variable its value If there even is one Most variables will be initialized from user input or mathematical expressions in which case the binary representation is all there is get which believe is the correct result isn it pFirst the function for those who just want some copy and paste code ppre codedef truncate Truncates pads float to decimal places without rounding format if in or in return format partition return join code prepThis is valid in Python and For older versions it not possible to get the same intelligent rounding effect at least not without lot of complicated code but rounding to 12 decimal places before truncation will work much of the time ppre codedef truncate Truncates pads float to decimal places without rounding 12f partition return join code preh1Explanation h1pThe core of the underlying method is to convert the value to string at full precision and then just chop off everything beyond the desired number of characters The latter step is easy it can be done either with string manipulation ppre codei partition join code prepor the codedecimal code module ppre codestr Decimal quantize Decimal rounding ROUND DOWN code prepThe first step converting to string is quite difficult because there are some pairs of floating point literals what you write in the source code which both produce the same binary representation and yet should be truncated differently For example consider and 29999999999999998 If you write code0 code in Python program the compiler encodes it using the IEEE floating point format into the sequence of bits assuming 64 bit float ppre code0011111111010011001100110011001100110011001100110011001100110011 code prepThis is the closest value to that can accurately be represented as an IEEE float But if you write code0 29999999999999998 code in Python program the compiler translates it into emexactly the same value em In one case you meant it to be truncated to one digit as code0 code whereas in the other case you meant it to be truncated as code0 code but Python can only give one answer This is fundamental limitation of Python or indeed any programming language without lazy evaluation The truncation function only has access to the binary value stored in the computer memory not the string you actually typed into the source code sup1 sup ppIf you decode the sequence of bits back into decimal number again using the IEEE 64 bit floating point format you get ppre code0 2999999999999999888977697537484345957637 code prepso naive implementation would come up with code0 code even though that probably not what you want For more on floating point representation error href https docs python org tutorial floatingpoint html rel noreferrer see the Python tutorial ppIt very rare to be working with floating point value that is so close to round number and yet is emintentionally em not equal to that round number So when truncating it probably makes sense to choose the nicest decimal representation out of all that could correspond to the value in memory Python and up but not includes href https bugs python org issue1580 rel noreferrer sophisticated algorithm to do just that which we can access through the default string formatting operation ppre code format code prepThe only caveat is that this acts like codeg code format specification in the sense that it uses exponential notation code1 23e code if the number is large or small enough So the method has to catch this case and handle it differently There are few cases where using an codef code format specification instead causes problem such as trying to truncate code3e 10 code to 28 digits of precision it produces code0 0000000002999999999999999980 code and not yet sure how best to handle those ppIf you actually emare em working with codefloat codes that are very close to round numbers but intentionally not equal to them like 29999999999999998 or 99 959999999999994 this will produce some false positiv,,, "s it ll round numbers that you didn want rounded In that case the solution is to specify fixed precision ppre code format sys float info dig code prepThe number of digits of precision to use here doesn really matter it only needs to be large enough to ensure that any rounding performed in the string conversion doesn bump up the value to its nice decimal representation think codesys float info dig code may be enough in all cases but if not that code2 code might have to be increased and it doesn hurt to do so ppIn earlier versions of Python up to or the floating point number formatting was lot more crude and would regularly produce things like ppre code gt gt gt 11 1000000000000001 code prepIf this is your situation if you emdo em want to use nice decimal representations for truncation all you can do as far as know is pick some number of digits less than the full precision representable by codefloat code and round the number to that many digits before truncating it typical choice is 12 ppre code 12f code prepbut you can adjust this to suit the numbers you re using phrp sup1 supWell lied Technically you emcan em instruct Python to re parse its own source code and extract the part corresponding to the first argument you pass to the truncation function If that argument is floating point literal you can just cut it off certain number of places after the decimal point and return that However this strategy doesn work if the argument is variable which makes it fairly useless The following is presented for entertainment value only ppre codedef trunc introspect Truncates pads the float to decimal places by looking at the caller source code current frame None caller frame None inspect stack try current frame caller frame gen tokenize tokenize io BytesIO caller frame caller frame encode utf readline for token type token string in gen if token type tokenize NAME and token string current frame next gen left parenthesis token type token string next gen float literal if token type tokenize NUMBER try cut point token string index except ValueError no decimal in string return token string else if len token string lt cut point token string cut point len token string return token string cut point else raise ValueError Unable to find floating point literal this probably means you called with variable format current frame break finally del current frame caller frame code prepGeneralizing this to handle the case where you pass in variable seems like lost cause since you have to trace backwards through the program execution until you find the floating point literal which gave the variable its value If there even is one Most variables will be initialized from user input or mathematical expressions in which case the binary representation is all there is Oh misunderstood thought you were saying that all negative numbers regardless of their magnitude get truncated to some variant of zero Anyway can see why person might want to omit the negative sign from the result in some cases but because floating point zeros are generally signed think sensible default is to leave the sign there For comparison format produces basically maintaining that behavior If you want variant of this that strips the sign when the result is zero it shouldn be hard to develop one""",great answer nice answer guru yearle good answer nice answer good answer nice answer notable question good answer good answer list nice answer enlighten good answer nice answer enlighten good answer nice answer nice answer enlighten good answer good question good answer good answer good answer necromancer announcer necromancer nice answer nice answer guru nice answer enlighten nice answer enlighten good answer nice answer nice answer nice answer enlighten guru good answer good answer good answer guru custodian guru popular question yearle great answer custodian guru nice answer guru generalist nice answer announcer nice question nice answer guru nice answer enlighten nice answer excavator great answer guru guru guru nice answer guru nice answer guru nice answer good question great answer great answer great answer nice answer census nice answer enlighten yearle nice answer enlighten nice answer nice answer nice answer good answer nice answer enlighten good answer nice answer nice question nice answer enlighten caucus nice answer enlighten nice answer great answer nice answer guru html nice answer enlighten nice answer enlighten nice answer guru guru good answer great answer nice answer enlighten nice answer nice answer nice answer nice answer nice answer good answer announcer pare talk href https docs python org tutorial controlflow html lambda expression noreferrer lambda function codelambda code prepthose thing python support style programming call emfunctional programming -PRON- pass function function stuff filter lambda code prepset code code code element original list multiple short argue clear codedef filterfunc return filter filterfunc code prepof case thing list comprehension code prep coderange code sophisticated case list comprehension lambda function short write pulli preturne function function code def transform return lambda transform code prepthis create function wrapper python decorator lili pcombining element iterable sequence codereduce code code reduce lambda format code lili psorte alternate key code sort key lambda code li ulpi lambda function regular basis eventually understand valuable language definition statement functional programming system codepgrep code code code option return count number process match codepgrep command code prepnote codegrep code style match exact match codepgrep code match codebash code process exact match code code option ppif codepgrep code codep code codewc code codep command header wc code prepthe code code option codep code take codecommand code argument program print table information process executable match command exact match codegrep code style code header code option suppress header table print line code header code line process match codewc code count print number line input hard process pfirst function copy code codedef truncate truncate pad float decimal place round format return format partition return join code prepthis valid python old version intelligent round effect lot complicate code round decimal place truncation work time codedef truncate truncate pad float decimal place round partition return join code core underlie method convert string precision chop desire number character step easy string manipulation codei partition join code prepor codedecimal code module codestr decimal quantize decimal round code prepthe step convert string difficult pair float point literal write source code produce binary representation truncate differently write code python program compiler encode ieee float point format sequence bit assume bit float code prepthis close accurately represent ieee float write code python program compiler translate emexactly -PRON- case mean truncate digit code case mean truncate code python answer fundamental limitation python programming language lazy evaluation truncation function access binary store memory string type source code ppif decode sequence bit decimal number ieee bit float point format code prepso naive implementation code float point representation error href https docs python org tutorial floatingpoint html noreferrer python tutorial ppit rare work float point close number emintentionally -PRON- equal number truncate make sense choose nice decimal representation correspond memory python include href https bug python org noreferrer sophisticated algorithm access default string format operation code format code prepthe caveat act codeg code format specification sense exponential notation code number large small method catch case handle differently case codef code format specification problem truncate code digit precision produce code handle ppif emare -PRON- work codefloat code close number intentionally equal produce false positive number round case solution fix precision code format sys float info code prepthe number digit precision matter large ensure round perform string conversion bump nice decimal representation codesys float info code case code increase hurt ppin earlier version python float point number format lot crude regularly produce thing code code prepif situation emdo -PRON- nice decimal representation truncation pick number digit precision representable codefloat code number digit truncate typical choice code code prepbut adjust suit number phrp supwell lie technically emcan -PRON- instruct python parse source code extract argument pass truncation function argument float point literal cut number place decimal point return strategy work argument variable make fairly useless present entertainment codedef trunc introspect truncate pad float decimal place caller source code current frame caller frame inspect stack current frame caller frame gen tokenize tokenize bytesio caller frame caller frame encode utf readline token type token string gen token type tokenize token string current frame gen leave parenthesis token type token string gen float literal token type tokenize number cut point token string index valueerror decimal string return token string len token string lt cut point token string cut point len token string return token string cut point raise valueerror unable float point literal mean call variable format current frame break finally current frame caller frame code handle case pass variable lose trace backwards program execution float point literal give variable variable initialize user input mathematical expression case binary representation head apply function operate individual element applymap make operation efficient matter separate question pfirst function copy code codedef truncate truncate pad float decimal place round format return format partition return join code prepthis valid python old version intelligent round effect lot complicate code round decimal place truncation work time codedef truncate truncate pad float decimal place round partition return join code core underlie method convert string precision chop desire number character step easy string manipulation codei partition join code prepor codedecimal code module codestr decimal quantize decimal round code prepthe step convert string difficult pair float point literal write source code produce binary representation truncate differently write code python program compiler encode ieee float point format sequence bit assume bit float code prepthis close accurately represent ieee float write code python program compiler translate emexactly -PRON- case mean truncate digit code case mean truncate code python answer fundamental limitation python programming language lazy evaluation truncation function access binary store memory string type source code ppif decode sequence bit decimal number ieee bit float point format code prepso naive implementation code float point representation error href https docs python org tutorial floatingpoint html noreferrer python tutorial ppit rare work float point close number emintentionally -PRON- equal number truncate make sense choose nice decimal representation correspond memory python include href https bug python org noreferrer sophisticated algorithm access default string format operation code format code prepthe caveat act codeg code format specification sense exponential notation code number large small method catch case handle differently case codef code format specification problem truncate code digit precision produce code handle ppif emare -PRON- work codefloat code close number intentionally equal produce false positive number round case solution fix precision code format sys float info code prepthe number digit precision matter large ensure round perform string conversion bump nice decimal representation codesys float info code case code increase hurt ppin earlier version python float point number format lot crude regularly produce thing code code prepif situation emdo -PRON- nice decimal representation truncation pick number digit precision representable codefloat code number digit truncate typical choice code code prepbut adjust suit number phrp supwell lie technically emcan -PRON- instruct python parse source code extract argument pass truncation function argument float point literal cut number place decimal point return strategy work argument variable make fairly useless present entertainment codedef trunc introspect truncate pad float decimal place caller source code current frame caller frame inspect stack current frame caller frame gen tokenize tokenize bytesio caller frame caller frame encode utf readline token type token string gen token type tokenize token string current frame gen leave parenthesis token type token string gen float literal token type tokenize number cut point token string index valueerror decimal string return token string len token string lt cut point token string cut point len token string return token string cut point raise valueerror unable float point literal mean call variable format current frame break finally current frame caller frame code handle case pass variable lose trace backwards program execution float point literal give variable variable initialize user input mathematical expression case binary representation ah compare dataframe difference truncate value question pfirst function copy code codedef truncate truncate pad float decimal place round format return format partition return join code prepthis valid python old version intelligent round effect lot complicate code round decimal place truncation work time codedef truncate truncate pad float decimal place round partition return join code core underlie method convert string precision chop desire number character step easy string manipulation codei partition join code prepor codedecimal code module codestr decimal quantize decimal round code prepthe step convert string difficult pair float point literal write source code produce binary representation truncate differently write code python program compiler encode ieee float point format sequence bit assume bit float code prepthis close accurately represent ieee float write code python program compiler translate emexactly -PRON- case mean truncate digit code case mean truncate code python answer fundamental limitation python programming language lazy evaluation truncation function access binary store memory string type source code ppif decode sequence bit decimal number ieee bit float point format code prepso naive implementation code float point representation error href https docs python org tutorial floatingpoint html noreferrer python tutorial ppit rare work float point close number emintentionally -PRON- equal number truncate make sense choose nice decimal representation correspond memory python include href https bug python org noreferrer sophisticated algorithm access default string format operation code format code prepthe caveat act codeg code format specification sense exponential notation code number large small method catch case handle differently case codef code format specification problem truncate code digit precision produce code handle ppif emare -PRON- work codefloat code close number intentionally equal produce false positive number round case solution fix precision code format sys float info code prepthe number digit precision matter large ensure round perform string conversion bump nice decimal representation codesys float info code case code increase hurt ppin earlier version python float point number format lot crude regularly produce thing code code prepif situation emdo -PRON- nice decimal representation truncation pick number digit precision representable codefloat code number digit truncate typical choice code code prepbut adjust suit number phrp supwell lie technically emcan -PRON- instruct python parse source code extract argument pass truncation function argument float point literal cut number place decimal point return strategy work argument variable make fairly useless present entertainment codedef trunc introspect truncate pad float decimal place caller source code current frame caller frame inspect stack current frame caller frame gen tokenize tokenize bytesio caller frame caller frame encode utf readline token type token string gen token type tokenize token string current frame gen leave parenthesis token type token string gen float literal token type tokenize number cut point token string index valueerror decimal string return token string len token string lt cut point token string cut point len token string return token string cut point raise valueerror unable float point literal mean call variable format current frame break finally current frame caller frame code handle case pass variable lose trace backwards program execution float point literal give variable variable initialize user input mathematical expression case binary representation test python function work properly negative number pfirst function copy code codedef truncate truncate pad float decimal place round format return format partition return join code prepthis valid python old version intelligent round effect lot complicate code round decimal place truncation work time codedef truncate truncate pad float decimal place round partition return join code core underlie method convert string precision chop desire number character step easy string manipulation codei partition join code prepor codedecimal code module codestr decimal quantize decimal round code prepthe step convert string difficult pair float point literal write source code produce binary representation truncate differently write code python program compiler encode ieee float point format sequence bit assume bit float code prepthis close accurately represent ieee float write code python program compiler translate emexactly -PRON- case mean truncate digit code case mean truncate code python answer fundamental limitation python programming language lazy evaluation truncation function access binary store memory string type source code ppif decode sequence bit decimal number ieee bit float point format code prepso naive implementation code float point representation error href https docs python org tutorial floatingpoint html noreferrer python tutorial ppit rare work float point close number emintentionally -PRON- equal number truncate make sense choose nice decimal representation correspond memory python include href https bug python org noreferrer sophisticated algorithm access default string format operation code format code prepthe caveat act codeg code format specification sense exponential notation code number large small method catch case handle differently case codef code format specification problem truncate code digit precision produce code handle ppif emare -PRON- work codefloat code close number intentionally equal produce false positive number round case solution fix precision code format sys float info code prepthe number digit precision matter large ensure round perform string conversion bump nice decimal representation codesys float info code case code increase hurt ppin earlier version python float point number format lot crude regularly produce thing code code prepif situation emdo -PRON- nice decimal representation truncation pick number digit precision representable codefloat code number digit truncate typical choice code code prepbut adjust suit number phrp supwell lie technically emcan -PRON- instruct python parse source code extract argument pass truncation function argument float point literal cut number place decimal point return strategy work argument variable make fairly useless present entertainment codedef trunc introspect truncate pad float decimal place caller source code current frame caller frame inspect stack current frame caller frame gen tokenize tokenize bytesio caller frame caller frame encode utf readline token type token string gen token type tokenize token string current frame gen leave parenthesis token type token string gen float literal token type tokenize number cut point token string index valueerror decimal string return token string len token string lt cut point token string cut point len token string return token string cut point raise valueerror unable float point literal mean call variable format current frame break finally current frame caller frame code handle case pass variable lose trace backwards program execution float point literal give variable variable initialize user input mathematical expression case binary representation correct result pfirst function copy code codedef truncate truncate pad float decimal place round format return format partition return join code prepthis valid python old version intelligent round effect lot complicate code round decimal place truncation work time codedef truncate truncate pad float decimal place round partition return join code core underlie method convert string precision chop desire number character step easy string manipulation codei partition join code prepor codedecimal code module codestr decimal quantize decimal round code prepthe step convert string difficult pair float point literal write source code produce binary representation truncate differently write code python program compiler encode ieee float point format sequence bit assume bit float code prepthis close accurately represent ieee float write code python program compiler translate emexactly -PRON- case mean truncate digit code case mean truncate code python answer fundamental limitation python programming language lazy evaluation truncation function access binary store memory string type source code ppif decode sequence bit decimal number ieee bit float point format code prepso naive implementation code float point representation error href https docs python org tutorial floatingpoint html noreferrer python tutorial ppit rare work float point close number emintentionally -PRON- equal number truncate make sense choose nice decimal representation correspond memory python include href https bug python org noreferrer sophisticated algorithm access default string format operation code format code prepthe caveat act codeg code format specification sense exponential notation code number large small method catch case handle differently case codef code format specification problem truncate code digit precision produce code handle ppif emare -PRON- work codefloat code close number intentionally equal produce false positive number round case solution fix precision code format sys float info code prepthe number digit precision matter large ensure round perform string conversion bump nice decimal representation codesys float info code case code increase hurt ppin earlier version python float point number format lot crude regularly produce thing code code prepif situation emdo -PRON- nice decimal representation truncation pick number digit precision representable codefloat code number digit truncate typical choice code code prepbut adjust suit number phrp supwell lie technically emcan -PRON- instruct python parse source code extract argument pass truncation function argument float point literal cut number place decimal point return strategy work argument variable make fairly useless present entertainment codedef trunc introspect truncate pad float decimal place caller source code current frame caller frame inspect stack current frame caller frame gen tokenize tokenize bytesio caller frame caller frame encode utf readline token type token string gen token type tokenize token string current frame gen leave parenthesis token type token string gen float literal token type tokenize number cut point token string index valueerror decimal string return token string len token string lt cut point token string cut point len token string return token string cut point raise valueerror unable float point literal mean call variable format current frame break finally current frame caller frame code handle case pass variable lose trace backwards program execution float point literal give variable variable initialize user input mathematical expression case binary representation misunderstood think negative number magnitude truncate variant person omit negative sign result case float point zero generally sign default leave sign comparison format produce basically maintain behavior variant strip sign result hard develop,0,NULL,NULL,,,, 21009,52357,302246,Popular Question Custodian Yearling Popular Question Popular Question Good Answer Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 21010,63160,272719,NULL,NULL,NULL,0,NULL,NULL 21011,1351544,1115168,NULL,NULL,NULL,0,NULL,NULL 21012,3205,766774,NULL,NULL,NULL,0,NULL,NULL 21013,632596,1206227,NULL,NULL,NULL,0,NULL,NULL 21014,199765,545778,NULL,NULL,NULL,0,NULL,NULL 21015,1062906,570034,NULL,NULL,NULL,0,NULL,NULL 21016,59968,892716,NULL,NULL,NULL,0,NULL,NULL 21017,7131643,354195,Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21018,43040,354195,Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21019,2561540,1342565,Yearling Yearling Great Question Favorite Question,NULL,NULL,0,NULL,NULL 21020,24993,1342565,Yearling Yearling Great Question Favorite Question,NULL,NULL,0,NULL,NULL 21021,126781,788550,Nice Answer Yearling Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 21022,1074930,496796,NULL,NULL,NULL,0,NULL,NULL 21023,1385712,1342478,NULL,NULL,NULL,0,NULL,NULL 21024,9933,794281,Yearling Student,NULL,NULL,0,NULL,NULL 21025,130940,592920,Nice Answer Yearling Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Caucus Constituent Yearling r Popular Question Nice Answer Great Answer Caucus Documentation User Census Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21026,18392,32678,Good Answer Yearling Guru Yearling Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21027,1511394,1282281,NULL,NULL,NULL,0,NULL,NULL 21028,777586,229112,NULL,NULL,NULL,0,NULL,NULL 21029,250198,319794,Supporter Revival,NULL,NULL,0,NULL,NULL 21030,531390,1525673,NULL,NULL,NULL,0,NULL,NULL 21031,21247,1114486,Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Great Answer Good Answer Guru Good Answer Nice Answer Enlightened mysql Good Answer Good Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer Good Answer Caucus Constituent Guru Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Generalist Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Guru Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Guru Yearling Nice Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Good Answer Nice Answer Great Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Guru,NULL,NULL,0,NULL,NULL 21032,597063,1566703,Popular Question Commentator Student Tumbleweed Supporter Editor Notable Question Popular Question Popular Question Notable Question Notable Question Curious Famous Question Popular Question,NULL,NULL,0,NULL,NULL 21033,814389,784695,Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 21034,59159,92666,NULL,NULL,NULL,0,NULL,NULL 21035,1371902,1005726,NULL,NULL,NULL,0,NULL,NULL 21036,54160,248914,Yearling Self-Learner Stellar Question Popular Question Nice Answer Notable Question Yearling Nice Question Good Answer Good Question Famous Question Yearling Famous Question Excavator,NULL,NULL,0,NULL,NULL 21037,834912,1090166,Custodian Popular Question Nice Question Popular Question Nice Answer Nice Answer Enlightened Nice Question Nice Question Popular Question Notable Question Revival Caucus Yearling Notable Question Notable Question Nice Question Census Good Question Notable Question Caucus Constituent Popular Question Good Question Nice Answer Famous Question Necromancer Announcer Good Answer Yearling Popular Question Census Caucus Popular Question Famous Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21038,156686,231010,Famous Question Notable Question Nice Question Good Answer Favorite Question Yearling Famous Question Favorite Question Guru Documentation User Notable Question Yearling java Caucus Popular Question Popular Question Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 21039,145404,435237,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21040,47841,797798,NULL,NULL,NULL,0,NULL,NULL 21041,132841,356918,Popular Question Popular Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 21042,1514442,1346473,Nice Answer,NULL,NULL,0,NULL,NULL 21043,616376,118908,Nice Answer Enlightened Yearling Nice Answer Investor Altruist Yearling Caucus Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 21044,597541,1510566,NULL,NULL,NULL,0,NULL,NULL 21045,199635,234261,Nice Answer ruby Notable Question Good Answer Caucus Yearling Notable Question Popular Question Yearling Disciplined Popular Question,NULL,NULL,0,NULL,NULL 21046,270044,429747,Yearling Caucus Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 21047,153754,1160935,Popular Question Census Informed,NULL,NULL,0,NULL,NULL 21048,97259,369747,Commentator,NULL,NULL,0,NULL,NULL 21049,13272,1073758,Popular Question Nice Answer Enlightened Necromancer Nice Answer Good Answer Good Answer Caucus Yearling Nice Answer Nice Answer symfony Enlightened Taxonomist Announcer Nice Answer Yearling Guru Good Answer javascript Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21050,806692,1049995,Famous Question Curious Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 21051,915793,377651,Organizer Custodian Notable Question Popular Question Enthusiast Yearling Census Custodian Revival Notable Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 21052,164999,312078,Famous Question Yearling Famous Question Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 21053,221052,1338214,Favorite Question Good Question Yearling,NULL,NULL,0,NULL,NULL 21054,247724,790836,NULL,NULL,NULL,0,NULL,NULL 21055,835397,790836,NULL,NULL,NULL,0,NULL,NULL 21056,83200,214601,NULL,NULL,NULL,0,NULL,NULL 21057,900839,627155,Commentator Critic Caucus Revival Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21058,448775,1305091,Editor,NULL,NULL,0,NULL,NULL 21059,1073434,1305091,Editor,NULL,NULL,0,NULL,NULL 21060,468232,393387,NULL,NULL,NULL,0,NULL,NULL 21061,118812,803468,Scholar Revival,NULL,NULL,0,NULL,NULL 21062,87047,717508,Revival Yearling Editor Yearling Caucus Critic Commentator Yearling Yearling Caucus Yearling Yearling Organizer Yearling Tenacious,NULL,NULL,0,NULL,NULL 21063,49391,278214,NULL,NULL,NULL,0,NULL,NULL 21064,561683,1086724,NULL,NULL,NULL,0,NULL,NULL 21065,70547,772159,NULL,NULL,NULL,0,NULL,NULL 21066,242825,528581,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21067,17721,152541,Popular Question Popular Question Good Question Good Question Notable Question Yearling Popular Question Necromancer Notable Question Yearling Notable Question Famous Question Announcer Yearling,NULL,NULL,0,NULL,NULL 21068,63462,216707,NULL,NULL,NULL,0,NULL,NULL 21069,857026,71577,Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21070,5022502,71577,Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21071,43676,387304,NULL,NULL,NULL,0,NULL,NULL 21072,228186,1500527,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 21073,219,309896,Yearling Tumbleweed Yearling Yearling,NULL,NULL,0,NULL,NULL 21074,910810,156746,Self-Learner Good Question Popular Question Civic Duty Guru Yearling Good Answer Nice Answer Nice Answer Famous Question Caucus ruby-on-rails Yearling Notable Question Popular Question Nice Answer Enlightened Census Caucus Yearling,NULL,NULL,0,NULL,NULL 21075,3780507,156746,Self-Learner Good Question Popular Question Civic Duty Guru Yearling Good Answer Nice Answer Nice Answer Famous Question Caucus ruby-on-rails Yearling Notable Question Popular Question Nice Answer Enlightened Census Caucus Yearling,NULL,NULL,0,NULL,NULL 21076,600674,62024,Popular Question Nice Answer Enlightened Yearling Popular Question Notable Question Good Answer Popular Question Notable Question Notable Question Nice Answer Enlightened Necromancer Famous Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Census Yearling Popular Question Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Nice Answer Popular Question .net Nice Question Nice Question Nice Answer Good Answer Documentation User Revival Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Notable Question Notable Question Notable Question Famous Question Nice Answer Enlightened c# Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21077,99879,841803,Yearling Nice Answer Yearling Inquisitive Yearling Custodian Notable Question Yearling Good Answer Popular Question Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21078,37214,159544,Student,NULL,NULL,0,NULL,NULL 21079,1941,406174,Revival Popular Question Necromancer Nice Answer Revival Yearling Popular Question Necromancer Curious Promoter Nice Answer Benefactor Caucus Necromancer Necromancer Popular Question Nice Answer Yearling Notable Question Nice Answer Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 21080,2183010,1086469,Yearling Good Answer Revival Custodian Custodian Organizer Suffrage Vox Populi Caucus Informed Autobiographer Electorate Custodian Yearling,NULL,NULL,0,NULL,NULL 21081,194682,912565,Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 21082,366314,1276950,Yearling Custodian Caucus Yearling Nice Answer Enlightened Yearling,NULL,pYou can do that in one command ppre codeopenssl req x509 newkey rsa 4096 keyout key pem out cert pem days 365 code prepYou can also add code nodes code short for codeno DES code if you don want to protect your private key with passphrase otherwise it will prompt you for at least character password The days parameter 365 you can replace with any number to affect expiration date It will then prompt you for things like Country Name but you can just hit enter and accept defaults ppAdd code subj CN localhost code to suppress questions about the contents of the certificate replace codelocalhost code with your desired domain ppSelf signed certs are not validated with any third party unless you import them to the browsers previously If you need more security you should use certificate signed by CA Not ignoring but simple question need simple answer For more complete description you have the documentation,0,NULL,NULL 21083,190601,637315,Revival,NULL,NULL,0,NULL,NULL 21084,123529,5562,Critic Nice Answer,NULL,NULL,0,NULL,NULL 21085,117957,957737,Good Answer Critic,NULL,NULL,0,NULL,NULL 21086,1731972,852763,NULL,NULL,NULL,0,NULL,NULL 21087,171573,187284,NULL,NULL,NULL,0,NULL,NULL 21088,185777,549988,NULL,NULL,NULL,0,NULL,NULL 21089,84772,754266,NULL,NULL,NULL,0,NULL,NULL 21090,181323,610530,NULL,NULL,NULL,0,NULL,NULL 21091,75306,1278979,Critic Popular Question,NULL,NULL,0,NULL,NULL 21092,658167,681216,NULL,NULL,NULL,0,NULL,NULL 21093,7383,346169,Necromancer Yearling Necromancer Caucus Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 21094,70716,613115,Editor Critic Organizer Yearling Yearling Commentator Citizen Patrol Custodian Yearling Custodian Yearling Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened firebase-cloud-messaging firebase Custodian android Good Answer Revival google-cloud-messaging Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Custodian Nice Answer Enlightened Informed Nice Answer Good Answer Announcer Announcer Great Answer firebase-cloud-messaging Tenacious Caucus push-notification Good Answer Revival firebase Explainer Revival Nice Answer Enlightened Yearling Guru Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21095,231404,929237,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21096,873311,422236,Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Critic Self-Learner Caucus Custodian Constituent Notable Question,NULL,NULL,0,NULL,NULL 21097,517167,773650,NULL,NULL,NULL,0,NULL,NULL 21098,277971,1059892,NULL,NULL,NULL,0,NULL,NULL 21099,178739,1438250,NULL,NULL,NULL,0,NULL,NULL 21100,267452,823824,Notable Question,NULL,NULL,0,NULL,NULL 21101,1366899,1521897,NULL,NULL,NULL,0,NULL,NULL 21102,1512529,878820,NULL,NULL,NULL,0,NULL,NULL 21103,146990,1209762,NULL,NULL,NULL,0,NULL,NULL 21104,1036802,828126,Nice Question,NULL,NULL,0,NULL,NULL 21105,349167,1061954,NULL,NULL,NULL,0,NULL,NULL 21106,1192316,1320730,NULL,NULL,NULL,0,NULL,NULL 21107,235351,821123,NULL,NULL,NULL,0,NULL,NULL 21108,155904,1036619,NULL,NULL,NULL,0,NULL,NULL 21109,323443,214562,Popular Question,NULL,NULL,0,NULL,NULL 21110,91300,150647,Good Question Good Question Famous Question Nice Answer Enlightened Yearling Nice Question Nice Answer Enlightened Notable Question Notable Question Caucus Constituent Notable Question Good Answer Popular Question Guru Guru Yearling Popular Question Famous Question Favorite Question Custodian Great Answer Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 21111,56445,127046,NULL,NULL,NULL,0,NULL,NULL 21112,36047,425838,Yearling Necromancer Citizen Patrol Custodian Nice Answer Yearling Enthusiast Good Answer Autobiographer Custodian Revival Yearling Necromancer Nice Answer Caucus Constituent Nice Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 21113,530449,221765,Teacher Revival,NULL,NULL,0,NULL,NULL 21114,105343,356663,Informed,NULL,NULL,0,NULL,NULL 21115,49048,825144,NULL,NULL,NULL,0,NULL,NULL 21116,1056275,283217,Popular Question Caucus Popular Question Commentator,NULL,NULL,0,NULL,NULL 21117,443522,1446469,Yearling Good Answer Yearling Good Answer Custodian Custodian Critic Great Answer Caucus Constituent Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 21118,294513,341021,NULL,NULL,NULL,0,NULL,NULL 21119,477904,95359,Notable Question,NULL,NULL,0,NULL,NULL 21120,136998,1450411,Popular Question Teacher Notable Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 21121,1492472,451492,Notable Question Citizen Patrol Peer Pressure Enthusiast Yearling Tenacious Revival Nice Question Popular Question Custodian Popular Question Caucus Yearling Popular Question Popular Question Notable Question Notable Question Inquisitive Popular Question Popular Question Notable Question Yearling Notable Question Nice Question Popular Question Nice Question Suffrage Vox Populi Caucus Informed Civic Duty Autobiographer Famous Question Popular Question Popular Question Yearling Self-Learner Popular Question Documentation User Popular Question Popular Question Notable Question Caucus Constituent Famous Question Good Question Popular Question Popular Question Popular Question Yearling Popular Question Custodian Notable Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 21122,3856,227168,Popular Question Curious,NULL,NULL,0,NULL,NULL 21123,236021,951513,NULL,NULL,NULL,0,NULL,NULL 21124,34508,291736,Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 21125,206712,566840,Yearling,NULL,NULL,0,NULL,NULL 21126,58001,707968,Notable Question Popular Question Popular Question Good Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 21127,1385601,1120273,Nice Answer Popular Question Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened Notable Question Good Question Nice Answer Enlightened Nice Answer Enlightened exception const Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Good Answer c Good Answer Nice Answer Nice Answer Good Answer Good Answer Guru Nice Answer Enlightened lambda Good Answer Nice Answer Caucus Good Answer Guru Nice Question Nice Answer Enlightened Popular Question Nice Answer Nice Question Yearling Nice Answer Nice Answer Nice Answer Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Good Question Nice Answer Enlightened memory-management Nice Answer Enlightened Nice Question Good Answer Famous Question Popular Question Nice Answer Enlightened Good Answer Popular Question Good Answer Nice Answer Nice Answer Enlightened Popular Question Caucus Good Answer Good Answer Popular Question sorting Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Nice Answer Notable Question Nice Answer Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Guru Yearling Outspoken Nice Answer file-io ostream Nice Answer Enlightened Nice Answer Good Answer Caucus Nice Answer Popular Question Nice Answer Constituent Nice Answer Enlightened Good Answer Guru Guru Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened templates string cout Nice Answer Good Answer istream Nice Answer Nice Answer Announcer Good Answer Nice Answer Good Answer Nice Answer Great Answer Populist Guru,NULL,pThe way to do this is to create suitable stream buffer This can be done like this ppre code include lt streambuf gt include lt istream gt struct membuf std streambuf membuf char const base size size char const cast lt char gt base this gt setg size struct imemstream virtual membuf std istream imemstream char const base size size membuf base size std istream static cast lt std streambuf gt this code prepThe only somewhat awkward thing is the codeconst cast lt char gt code in the stream buffer the stream buffer won change the data but the interface still requires codechar code to be used mainly to make it easier to change the buffer in normal stream buffers With this you can use codeimemstream code as normal input stream ppre codeimemstream in data size in gt gt value code pre the code doesn allocate any memory hence it doesn deallocate any The change is specifically wrong when data happens to point to string literal pThe way to do this is to create suitable stream buffer This can be done like this ppre code include lt streambuf gt include lt istream gt struct membuf std streambuf membuf char const base size size char const cast lt char gt base this gt setg size struct imemstream virtual membuf std istream imemstream char const base size size membuf base size std istream static cast lt std streambuf gt this code prepThe only somewhat awkward thing is the codeconst cast lt char gt code in the stream buffer the stream buffer won change the data but the interface still requires codechar code to be used mainly to make it easier to change the buffer in normal stream buffers With this you can use codeimemstream code as normal input stream ppre codeimemstream in data size in gt gt value code pre whoever allocates data if it is allocated is responsible for deallocating it Since the code snippet doesn show where the data comes from it shall not assume and do something The code is clearly incomplete as there is no declaration of data or size For the question and the answer the source of these doesn matter nor does it matter what happens to them after they have been used pThe way to do this is to create suitable stream buffer This can be done like this ppre code include lt streambuf gt include lt istream gt struct membuf std streambuf membuf char const base size size char const cast lt char gt base this gt setg size struct imemstream virtual membuf std istream imemstream char const base size size membuf base size std istream static cast lt std streambuf gt this code prepThe only somewhat awkward thing is the codeconst cast lt char gt code in the stream buffer the stream buffer won change the data but the interface still requires codechar code to be used mainly to make it easier to change the buffer in normal stream buffers With this you can use codeimemstream code as normal input stream ppre codeimemstream in data size in gt gt value code pre confused what class is unfamiliar std streambuf is the only base class here which is clearly standard class hence the std prefix How is that unfamiliar For the purpose of looking at memory to read from the class is exactly as it is meant to be as is the example If you don like the answer feel free to downvote and or create your own answer pThe way to do this is to create suitable stream buffer This can be done like this ppre code include lt streambuf gt include lt istream gt struct membuf std streambuf membuf char const base size size char const cast lt char gt base this gt setg size struct imemstream virtual membuf std istream imemstream char const base size size membuf base size std istream static cast lt std streambuf gt this code prepThe only somewhat awkward thing is the codeconst cast lt char gt code in the stream buffer the stream buffer won change the data but the interface still requires codechar code to be used mainly to make it easier to change the buffer in normal stream buffers With this you can use codeimemstream code as normal input stream ppre codeimemstream in data size in gt gt value code pre does it defeat the purpose The short snippet showed all the relevant bits needed to implement production ready version of the class Surely the production ready version of the code comes with documentation test cases etc don think an answer needs to cover everything it using pIt isn fixed size and it doesn support timeouts but here is simple implementation of queue had posted recently using 2011 constructs ppre code include lt mutex gt include lt condition variable gt include lt deque gt template lt typename gt class queue private std mutex mutex std condition variable condition std deque lt gt queue public void push const amp value std unique lock lt std mutex gt lock this gt mutex queue push front value this gt condition notify one pop std unique lock lt std mutex gt lock this gt mutex this gt condition wait lock return this gt queue empty rc std move this gt queue back this gt queue pop back return rc code prepIt should be trivial to extend and use timed wait for popping The main reason haven done it is that not happy with the interface choices have thought of so far It is matter of style In different organizations different indicators for member variables are used In different organizations have used nothing prefix prefix suffix and an ill advised prefix Currently working in an organization where prefix is used pThe loop ppre codefor auto AVLTree code preptries to make copy of each element of the range in codeAVLTree begin code and codeAVLTree end code Of course codestd unique ptr lt gt code can be copied there is only one codestd unique ptr lt gt code to each pointer It wouldn really copy anything but rather emsteal em it That would be bad ppYou want to use references instead ppre codefor auto amp AVLTree code prep or if you don modify them ppre codefor auto const amp AVLTree code pre using forwarding references would work too It would wotk for all three cases non const range const range and range returning temporary objects although the latter should be rather uncommon The qualification would depend upon the provided range rather than the intended use though,0,NULL,NULL 21128,156775,610990,Yearling Notable Question,NULL,NULL,0,NULL,NULL 21129,107710,782841,NULL,NULL,NULL,0,NULL,NULL 21130,465703,850245,Yearling Yearling,NULL,NULL,0,NULL,NULL 21131,414385,1142154,Popular Question Critic Yearling Popular Question Popular Question Caucus Custodian Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21132,102242,1420399,Revival Nice Answer Popular Question Civic Duty Yearling Popular Question Notable Question Announcer Popular Question Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 21133,96329,856372,NULL,NULL,NULL,0,NULL,NULL 21134,329508,1317578,NULL,NULL,NULL,0,NULL,NULL 21135,441908,883860,NULL,NULL,NULL,0,NULL,NULL 21136,4269889,382936,Necromancer Necromancer Autobiographer Citizen Patrol Custodian Nice Answer Custodian Enthusiast Yearling Civic Duty Caucus Constituent Fanatic Good Answer Yearling Caucus Constituent Explainer Documentation User Announcer Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 21137,138090,519778,Nice Question,NULL,NULL,0,NULL,NULL 21138,439124,764952,Commentator,NULL,NULL,0,NULL,NULL 21139,1135142,941062,Popular Question Nice Question Yearling Census Nice Question Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 21140,303764,756688,Editor Teacher,NULL,NULL,0,NULL,NULL 21141,8486,61368,Yearling Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 21142,111779,180742,Documentation User,NULL,NULL,0,NULL,NULL 21143,1389638,864050,NULL,NULL,NULL,0,NULL,NULL 21144,163368,162852,NULL,NULL,NULL,0,NULL,NULL 21145,703934,1350657,Revival Necromancer Caucus Autobiographer,NULL,NULL,0,NULL,NULL 21146,475023,314345,Popular Question Nice Question Notable Question Yearling Popular Question Self-Learner Necromancer Yearling Popular Question Notable Question Notable Question Notable Question Famous Question Good Answer Popular Question Notable Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 21147,6988,892313,Nice Answer Enlightened Nice Answer Nice Answer Populist Good Answer Good Answer Good Answer plyr Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Great Answer Populist Nice Answer Enlightened dataframe Announcer Nice Answer Nice Answer Nice Answer Revival Notable Question Popular Question Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Booster Good Answer Great Answer Guru Announcer Good Question Good Answer Good Answer Great Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Good Answer Good Answer Good Answer Nice Answer Popular Question Nice Answer Yearling Good Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Nice Answer Announcer Nice Answer Announcer Announcer Good Answer Nice Answer Census Guru Announcer Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Announcer Good Answer Good Answer Good Answer Yearling Announcer plot Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 21148,8451394,1016693,Popular Question Custodian Caucus Caucus Constituent Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 21149,5594551,1016693,Popular Question Custodian Caucus Caucus Constituent Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 21150,153009,1016693,Popular Question Custodian Caucus Caucus Constituent Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 21151,278624,12042,Excavator Yearling Caucus Nice Answer Nice Question Yearling delphi Yearling,NULL,NULL,0,NULL,NULL 21152,3452472,30563,Popular Question Notable Question Popular Question Notable Question Popular Question Favorite Question Nice Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Yearling Notable Question Nice Question Notable Question Nice Question Good Question Good Question Great Question Famous Question Popular Question Great Question Notable Question Famous Question Nice Question Notable Question Popular Question Yearling Famous Question Famous Question Popular Question Famous Question Notable Question Great Question Nice Question Caucus Nice Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 21153,402812,426911,Popular Question Notable Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 21154,1548365,1070580,NULL,NULL,NULL,0,NULL,NULL 21155,720204,5055,Popular Question Nice Answer Great Answer Notable Question Yearling Famous Question Good Question Nice Answer Notable Question Yearling Nice Question Documentation User Famous Question Good Question Notable Question Popular Question Nice Answer Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 21156,89453,419141,Critic Informed,NULL,NULL,0,NULL,NULL 21157,505164,608811,Necromancer Necromancer Caucus Constituent Yearling Nice Answer Tumbleweed Revival Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 21158,818783,1255465,NULL,NULL,NULL,0,NULL,NULL 21159,40860,722106,Necromancer Teacher Nice Answer,NULL,NULL,0,NULL,NULL 21160,131026,350242,NULL,NULL,NULL,0,NULL,NULL 21161,4023416,350242,NULL,NULL,NULL,0,NULL,NULL 21162,483810,659679,NULL,NULL,NULL,0,NULL,NULL 21163,76217,659679,NULL,NULL,NULL,0,NULL,NULL 21164,4111,1230012,NULL,NULL,NULL,0,NULL,NULL 21165,82574,119318,NULL,NULL,NULL,0,NULL,NULL 21166,625121,1274305,Critic Yearling Announcer Custodian Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 21167,237350,45838,Popular Question Great Question Promoter Custodian Custodian Organizer Custodian Benefactor Proofreader Investor Altruist Good Answer Yearling Self-Learner Favorite Question Notable Question Documentation User Revival Custodian Yearling Census Popular Question Caucus Great Answer Nice Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 21168,418481,1441787,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 21169,672376,658660,Notable Question Nice Answer Popular Question Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21170,12623,1295835,NULL,NULL,NULL,0,NULL,NULL 21171,155242,1054736,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21172,24108,571911,NULL,NULL,NULL,0,NULL,NULL 21173,1239867,129234,NULL,NULL,NULL,0,NULL,NULL 21174,646372,129234,NULL,NULL,NULL,0,NULL,NULL 21175,243457,1163075,NULL,NULL,NULL,0,NULL,NULL 21176,27369,234672,Nice Question Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 21177,3382,473471,Supporter Nice Answer,NULL,NULL,0,NULL,NULL 21178,43923,929080,Caucus Constituent Caucus Yearling Custodian Custodian Custodian Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 21179,139207,998439,NULL,NULL,NULL,0,NULL,NULL 21180,895527,628445,Yearling Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Yearling Good Question Good Question,NULL,NULL,0,NULL,NULL 21181,133541,151401,Yearling Yearling Teacher Editor Yearling Stellar Question Tag Editor Yearling,NULL,NULL,0,NULL,NULL 21182,791324,587083,Revival Necromancer Enthusiast Caucus Yearling Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 21183,1637263,244460,NULL,NULL,NULL,0,NULL,NULL 21184,753496,794771,NULL,NULL,NULL,0,NULL,NULL 21185,9705237,1150708,Caucus Critic Yearling Caucus Commentator,NULL,NULL,0,NULL,NULL 21186,753526,1492278,Necromancer,NULL,NULL,0,NULL,NULL 21187,254485,635754,Supporter,NULL,NULL,0,NULL,NULL 21188,275479,245676,Nice Answer Yearling Enlightened Famous Question,NULL,NULL,0,NULL,NULL 21189,517937,1248769,NULL,NULL,NULL,0,NULL,NULL 21190,393881,71,Nice Answer Populist Good Answer Good Answer Nice Answer Enlightened c# Notable Question Great Answer Yearling Popular Question Custodian Great Answer Nice Answer Nice Question Caucus Constituent Great Answer Notable Question Notable Question Nice Question Notable Question Good Question Guru Caucus Constituent Yearling Documentation User Nice Answer Popular Question Good Question Notable Question Census Caucus Constituent Notable Question Custodian Notable Question Yearling Good Answer,NULL,pIn version em1 em pulli strong1 strong Major revision new UI lots of new features conceptual change etc lili strong9 strong Minor revision maybe change to search box feature added collection of bug fixes lili strong0 strong Bug fix release lili strong1 strong Build number if used —that why you see the NET framework using something like 2709 li ulpYou won find lot of apps going down to four levels is usually sufficient would consider that minor change since it was related to navigation change Not incremental like bug fix or code refactor but little more significant,0,NULL,NULL 21191,488170,1553588,NULL,NULL,NULL,0,NULL,NULL 21192,247678,680959,NULL,NULL,NULL,0,NULL,NULL 21193,1578576,862680,Yearling Civic Duty Popular Question Yearling Documentation User Good Question Great Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 21194,295694,862680,Yearling Civic Duty Popular Question Yearling Documentation User Good Question Great Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 21195,339736,679433,NULL,NULL,NULL,0,NULL,NULL 21196,2740959,1282572,NULL,NULL,NULL,0,NULL,NULL 21197,921940,1282572,NULL,NULL,NULL,0,NULL,NULL 21198,244265,1484669,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21199,245482,872129,Popular Question,NULL,NULL,0,NULL,NULL 21200,453706,701702,Popular Question,NULL,NULL,0,NULL,NULL 21201,27078,600290,Yearling,NULL,NULL,0,NULL,NULL 21202,497638,1032741,Scholar,NULL,NULL,0,NULL,NULL 21203,359908,817154,NULL,NULL,NULL,0,NULL,NULL 21204,2220745,734777,NULL,NULL,NULL,0,NULL,NULL 21205,250738,1046525,NULL,NULL,NULL,0,NULL,NULL 21206,68240,226225,NULL,NULL,NULL,0,NULL,NULL 21207,427618,1014454,NULL,NULL,NULL,0,NULL,NULL 21208,90707,234537,NULL,NULL,NULL,0,NULL,NULL 21209,352701,1157033,Student Supporter,NULL,NULL,0,NULL,NULL 21210,1190441,821804,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 21211,2302950,1309866,Informed Student,NULL,NULL,0,NULL,NULL 21212,11119612,1309866,Informed Student,NULL,NULL,0,NULL,NULL 21213,894146,1068065,NULL,NULL,NULL,0,NULL,NULL 21214,167063,245867,Editor Yearling Notable Question,NULL,NULL,0,NULL,NULL 21215,103880,703860,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21216,435453,726117,Popular Question Famous Question Nice Question Famous Question Yearling Investor Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21217,69504,17581,Notable Question,NULL,NULL,0,NULL,NULL 21218,61725,1138356,Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 21219,617526,1312045,NULL,NULL,NULL,0,NULL,NULL 21220,90562,409094,Necromancer Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21221,275677,198415,Good Question Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 21222,103282,260386,Popular Question Supporter Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 21223,1119152,979232,Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 21224,1547836,679245,NULL,NULL,NULL,0,NULL,NULL 21225,174653,835040,NULL,NULL,NULL,0,NULL,NULL 21226,657061,1199582,Popular Question Popular Question Notable Question Critic,NULL,NULL,0,NULL,NULL 21227,35761,788900,NULL,NULL,NULL,0,NULL,NULL 21228,262554,320345,Yearling Nice Answer Popular Question Yearling Tumbleweed Promoter Nice Question Good Answer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21229,15853,23731,Explainer Census Caucus Census,NULL,NULL,0,NULL,NULL 21230,323309,466178,Notable Question,NULL,NULL,0,NULL,NULL 21231,790182,375068,NULL,NULL,NULL,0,NULL,NULL 21232,118403,879295,Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Question Yearling Good Answer Good Answer Guru Enlightened Necromancer Notable Question Nice Answer Enlightened Nice Answer Nice Question Great Answer Nice Answer Enlightened Nice Answer Enlightened Guru Necromancer Caucus Yearling Nice Answer Necromancer Good Answer Good Answer Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 21233,82547,656450,NULL,NULL,NULL,0,NULL,NULL 21234,165168,295552,NULL,NULL,NULL,0,NULL,NULL 21235,333654,887687,Yearling Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 21236,95482,83168,Commentator,NULL,NULL,0,NULL,NULL 21237,1406161,412222,NULL,NULL,NULL,0,NULL,NULL 21238,252320,244029,NULL,NULL,NULL,0,NULL,NULL 21239,144506,36499,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 21240,29504,621240,NULL,NULL,NULL,0,NULL,NULL 21241,100953,996243,NULL,NULL,NULL,0,NULL,NULL 21242,41353,1263062,NULL,NULL,NULL,0,NULL,NULL 21243,1510388,981652,NULL,NULL,NULL,0,NULL,NULL 21244,36081,348322,NULL,NULL,NULL,0,NULL,NULL 21245,4446187,348322,NULL,NULL,NULL,0,NULL,NULL 21246,126868,318490,Popular Question,NULL,NULL,0,NULL,NULL 21247,8823533,1082168,Notable Question,NULL,NULL,0,NULL,NULL 21248,884949,1162885,NULL,NULL,NULL,0,NULL,NULL 21249,836590,1068207,Necromancer,NULL,NULL,0,NULL,NULL 21250,115932,681259,Good Question,NULL,NULL,0,NULL,NULL 21251,467708,456713,NULL,NULL,NULL,0,NULL,NULL 21252,45846,848128,Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21253,413780,1222559,NULL,NULL,NULL,0,NULL,NULL 21254,199245,1565236,Yearling Necromancer Revival Custodian,NULL,NULL,0,NULL,NULL 21255,188398,1270716,Popular Question,NULL,NULL,0,NULL,NULL 21256,37601,794711,NULL,NULL,NULL,0,NULL,NULL 21257,53220,794711,NULL,NULL,NULL,0,NULL,NULL 21258,749290,829909,Notable Question,NULL,NULL,0,NULL,NULL 21259,4998696,1545757,NULL,NULL,NULL,0,NULL,NULL 21260,842467,1170080,Yearling Yearling Yearling Custodian Informed javascript Scholar Custodian,NULL,NULL,0,NULL,NULL 21261,76513,1422459,NULL,NULL,NULL,0,NULL,NULL 21262,1551067,811824,NULL,NULL,NULL,0,NULL,NULL 21263,146774,1090066,Critic Tumbleweed,NULL,NULL,0,NULL,NULL 21264,351,185723,Fanatic Nice Answer Enlightened java Notable Question Nice Answer Enlightened Documentation Pioneer scala Yearling Necromancer Famous Question Necromancer Nice Answer Nice Answer Favorite Question Nice Answer Enlightened spring-mvc Notable Question Good Answer Great Answer Civic Duty Autobiographer Good Answer Great Answer Necromancer Yearling Documentation User Popular Question Notable Question Census Caucus Guru Populist spring Nice Answer Nice Answer Notable Question Great Answer Cleanup Yearling,NULL,NULL,0,NULL,NULL 21265,236848,8911,Nice Answer Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 21266,275507,424154,NULL,NULL,NULL,0,NULL,NULL 21267,161986,1285416,NULL,NULL,NULL,0,NULL,NULL 21268,907332,995943,NULL,NULL,NULL,0,NULL,NULL 21269,226693,205606,Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21270,3786447,205606,Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21271,523230,601040,Critic Popular Question Revival Yearling Enthusiast Necromancer Popular Question Caucus,NULL,pIn pure javascript this would not be an easy task but jQuery makes it very easy to do ppre code myform input change function myform data changed true code prepThen before saving you can check if it was changed ppre codeif myform data changed submit the form code prepIn the example above the form has an id equal to myform ppIf you need this in many forms you can easily turn it into plugin ppre code fn extend trackChanges function input this change function this form data changed true isChanged function return this data changed code prepThen you can simply say ppre code myform trackChanges code prepand check if form has changed ppre codeif myform isChanged code pre for live inputs need some changes trackChanges function document on change this find input function var el target el closest form data changed true,0,NULL,NULL 21272,13992,1123663,NULL,NULL,NULL,0,NULL,NULL 21273,884167,1214547,Teacher Popular Question Popular Question Enthusiast Yearling Popular Question,NULL,NULL,0,NULL,NULL 21274,115929,824711,NULL,NULL,NULL,0,NULL,NULL 21275,493029,1012554,Student,NULL,NULL,0,NULL,NULL 21276,154430,745489,Caucus Announcer Yearling Caucus,NULL,NULL,0,NULL,NULL 21277,5409053,512114,Popular Question Scholar,NULL,NULL,0,NULL,NULL 21278,343985,267000,Famous Question Popular Question Notable Question Popular Question Caucus Nice Question Yearling Nice Question Popular Question Popular Question Yearling Self-Learner Custodian,NULL,NULL,0,NULL,NULL 21279,449641,1113661,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 21280,12025,639773,Notable Question Yearling Caucus Good Answer Nice Question Revival Revival Famous Question Popular Question Tumbleweed Announcer Announcer Necromancer,NULL,NULL,0,NULL,NULL 21281,271126,1322998,NULL,NULL,NULL,0,NULL,NULL 21282,119796,1546369,NULL,NULL,NULL,0,NULL,NULL 21283,113788,258848,Nice Question Yearling Self-Learner Nice Question Popular Question Popular Question Famous Question Notable Question Necromancer Nice Question Nice Answer Nice Question Notable Question Notable Question Nice Question Nice Question android Nice Answer Popular Question Caucus Notable Question Famous Question Yearling Census Custodian Excavator Custodian Popular Question Nice Question Good Answer Good Answer Good Answer Popular Question Announcer Popular Question Documentation User Nice Answer Enlightened Good Question Yearling Notable Question Good Question Custodian Nice Question Popular Question Popular Question Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21284,61304,899620,Nice Answer Supporter Good Answer Yearling Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 21285,284559,308750,Necromancer Student Revival Informed Yearling Organizer Editor Critic,NULL,NULL,0,NULL,NULL 21286,311542,190173,NULL,NULL,NULL,0,NULL,NULL 21287,724220,92312,Popular Question Critic Enthusiast Popular Question Yearling Caucus Yearling Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 21288,8827,581062,Yearling Popular Question Good Answer Necromancer Necromancer Necromancer Nice Answer Civic Duty Yearling Necromancer Necromancer Yearling Custodian Necromancer Custodian Good Answer,NULL,NULL,0,NULL,NULL 21289,35836,1367002,NULL,NULL,NULL,0,NULL,NULL 21290,111742,512883,Popular Question,NULL,NULL,0,NULL,NULL 21291,171361,239094,Teacher Critic Yearling Caucus Announcer Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 21292,370059,797241,Yearling Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21293,1510324,1172194,Popular Question Custodian Yearling Popular Question Popular Question Famous Question Notable Question Necromancer Informed Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 21294,49646,564379,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 21295,62493,287740,Yearling Revival sonarqube Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 21296,1053446,1066654,Student,NULL,NULL,0,NULL,NULL 21297,756325,401690,Custodian Popular Question,NULL,NULL,0,NULL,NULL 21298,897493,691422,Popular Question,NULL,NULL,0,NULL,NULL 21299,679786,1100094,NULL,NULL,NULL,0,NULL,NULL 21300,547987,1285719,NULL,NULL,NULL,0,NULL,NULL 21301,93237,651656,NULL,NULL,NULL,0,NULL,NULL 21302,101263,350580,Necromancer Popular Question Necromancer Nice Answer Yearling Necromancer Caucus Constituent Necromancer Nice Answer Nice Answer Yearling Revival Nice Answer Announcer Necromancer Yearling Notable Question Autobiographer Yearling,NULL,pFollowing function may be what you want ppre codeFUNCTION PREPEND var prefix SET listVar FOREACH ARGN LIST APPEND listVar prefix ENDFOREACH SET var listVar PARENT SCOPE ENDFUNCTION PREPEND code prepTo use it ppre codePREPEND FILES TO TRANSLATE CMAKE CURRENT SOURCE DIR SRC FILES code pre It is true that it requires the third parameter However you need to add the third argument to the front of the FOREACH list pFollowing function may be what you want ppre codeFUNCTION PREPEND var prefix SET listVar FOREACH ARGN LIST APPEND listVar prefix ENDFOREACH SET var listVar PARENT SCOPE ENDFUNCTION PREPEND code prepTo use it ppre codePREPEND FILES TO TRANSLATE CMAKE CURRENT SOURCE DIR SRC FILES code pre FILES TO TRANSLATE is just CMake variable that stores the list of the file same with what OP used,0,NULL,NULL 21303,80117,220277,Good Answer Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21304,45847,1205933,NULL,NULL,NULL,0,NULL,NULL 21305,52439,892218,NULL,NULL,NULL,0,NULL,NULL 21306,121101,681303,NULL,NULL,NULL,0,NULL,NULL 21307,1810726,1413672,NULL,NULL,NULL,0,NULL,NULL 21308,186875,1413672,NULL,NULL,NULL,0,NULL,NULL 21309,132861,1257892,NULL,NULL,NULL,0,NULL,NULL 21310,778750,812451,Good Answer Yearling Curious Self-Learner Nice Question Popular Question Custodian Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 21311,447280,414116,Yearling Yearling,NULL,NULL,0,NULL,NULL 21312,221202,1506966,Good Answer Yearling Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 21313,62174,1771,Yearling Necromancer Caucus Constituent Favorite Question Yearling Famous Question Custodian,NULL,nodeJS child process spawn does not work when one of the args has space in it javascript node js pI am trying to use the codechild process spawn code function The syntax is ppre codechild process spawn command args options code prepWhenever include space in any of the elements of the args array the command simply emits the argument Here is some code used to test it ppre codevar spawn require child process spawnconsole log This works var watcher spawn ls watcher stdout on data function data process stdout write data toString console log This does not work watcher spawn ls path with space in it watcher stdout on data function data process stdout write data toString code prepIs this bug in node Do need to escape the space ppEdit The above code is just an example Here is the real code Maybe is has to do with the pipes ppre codewatcher spawn supervisor extensions coffee js css coffeekup src app coffee code pre The question should be edited spawn ls path with space in it works as expected spawn supervisor extensions coffee js css coffeekup src app coffee wasn working as OP expected,0,NULL,NULL 21314,564824,1009755,NULL,NULL,NULL,0,NULL,NULL 21315,385148,1134750,NULL,NULL,NULL,0,NULL,NULL 21316,12826,626474,NULL,NULL,NULL,0,NULL,NULL 21317,81942,872588,NULL,NULL,NULL,0,NULL,NULL 21318,315722,979166,NULL,NULL,NULL,0,NULL,NULL 21319,4060,231925,Caucus Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21320,38808,289657,Notable Question Necromancer Critic Nice Answer Yearling Commentator,NULL,NULL,0,NULL,NULL 21321,171566,742463,Supporter Scholar,NULL,NULL,0,NULL,NULL 21322,186282,915911,Critic Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 21323,177797,1057015,NULL,NULL,NULL,0,NULL,NULL 21324,127420,857807,moq Popular Question Good Answer Nice Answer Enlightened Good Answer Notable Question Popular Question Nice Answer Yearling asynchronous Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Nice Answer Good Answer Revival Nice Answer Good Answer Good Answer Good Question Enlightened Revival Great Answer Announcer Guru Good Answer Nice Answer Enlightened Guru Famous Question Good Answer Great Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Question Nice Answer Inquisitive Nice Answer Enlightened Famous Question java Good Answer Popular Question Yearling Good Answer Good Question Famous Question Nice Question Popular Question Good Question Necromancer Guru Nice Answer Famous Question Documentation User Nice Answer Enlightened unit-testing Notable Question Guru Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Necromancer Guru Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Popular Question Yearling Popular Question Popular Question Nice Answer Enlightened Notable Question list Necromancer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 21325,3204,1488995,NULL,NULL,NULL,0,NULL,NULL 21326,195715,971332,NULL,NULL,NULL,0,NULL,NULL 21327,241750,236967,NULL,NULL,NULL,0,NULL,NULL 21328,61224,258817,Revival Revival Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Custodian Caucus Nice Question,NULL,NULL,0,NULL,NULL 21329,698548,514635,Popular Question,NULL,NULL,0,NULL,NULL 21330,158994,1469735,NULL,NULL,NULL,0,NULL,NULL 21331,432061,556343,NULL,NULL,NULL,0,NULL,NULL 21332,371318,1382935,NULL,NULL,NULL,0,NULL,NULL 21333,333295,1020263,Nice Answer Yearling Caucus Revival Commentator Nice Answer Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 21334,2228578,1409246,Supporter Teacher Commentator,NULL,NULL,0,NULL,NULL 21335,98792,601730,Editor Yearling Commentator Tumbleweed Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21336,208165,979582,Nice Question,NULL,NULL,0,NULL,NULL 21337,80696,53094,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21338,8817739,508479,Popular Question Self-Learner Nice Question Popular Question Yearling Nice Answer Nice Answer Famous Question Popular Question Famous Question Yearling android Yearling,NULL,NULL,0,NULL,NULL 21339,526430,765009,Yearling Notable Question Proofreader Curious Revival Notable Question Yearling Popular Question Necromancer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,1,NULL,TensorFlow Non repeatable results python random tensorflow h1The Problem h1pI have Python script that uses TensorFlow to create multilayer perceptron net with dropout in order to do binary classification Even though ve been careful to set both the Python and TensorFlow seeds get non repeatable results If run once and then run again get different results can even run once quit Python restart Python run again and get different results ph1What ve Tried h1pI know some people posted questions about getting non repeatable results in TensorFlow href https stackoverflow com questions 36288235 how to get stable results with tensorflow setting random seed How to get stable results href https stackoverflow com questions 36096386 tensorflow set random seed not working set random seed not working href https stackoverflow com questions 38293895 how to get reproducible result in tensorflow How to get reproducible result in TensorFlow and the answers usually turn out to be an incorrect use understanding of codetf set random seed code ve made sure to implement the solutions given but that has not solved my problem ppA common mistake is not realizing that codetf set random seed code is only graph level seed and that running the script multiple times will alter the graph explaining the non repeatable results used the following statement to print out the entire graph and verified via diff that the graph is the same even when the results are different ppre codeprint name for in tf get default graph as graph def node code prepI ve also used function calls like codetf reset default graph code and codetf get default graph finalize code to avoid any changes to the graph even though this is probably overkill ph1The Relevant Code h1pMy script is 360 lines long so here are the relevant lines with snipped code indicated Any items that are in ALL CAPS are constants that are defined in my codeParameters code block below ppre codeimport numpy as npimport tensorflow as tffrom copy import deepcopyfrom tqdm import tqdm Progress bar Parameters snip Functions snip Obtain Train Data snip Obtain Test Data snip random seed 12345 tf set random seed 12345 snip Build the TensorFlow Graph tf reset default graph with tf Graph as default tf placeholder float shape None INPUT tf placeholder float shape None CLASSES Store layers weight amp bias weights h1 tf Variable tf random normal INPUT HIDDEN h2 tf Variable tf random normal HIDDEN HIDDEN h3 tf Variable tf random normal HIDDEN HIDDEN out tf Variable tf random normal HIDDEN CLASSES biases b1 tf Variable tf random normal HIDDEN b2 tf Variable tf random normal HIDDEN b3 tf Variable tf random normal HIDDEN out tf Variable tf random normal CLASSES Construct model pred multilayer perceptron weights biases USE DROP LAYERS DROP KEEP PROB mean1 tf reduce mean weights h1 mean2 tf reduce mean weights h2 mean3 tf reduce mean weights h3 cost tf reduce mean tf nn softmax cross entropy with logits pred regularizers tf nn l2 loss weights h1 tf nn l2 loss biases b1 tf nn l2 loss weights h2 tf nn l2 loss biases b2 tf nn l2 loss weights h3 tf nn l2 loss biases b3 cost COEFF REGULAR regularizers optimizer tf train GradientDescentOptimizer LEARNING RATE minimize cost out labels tf nn softmax pred sess tf InteractiveSession sess run tf initialize all variables tf get default graph finalize Lock the graph as read only Print the default graph in text form print name for in tf get default graph as graph def node Training print Start Training pbar tqdm total TRAINING EPOCHS for epoch in range TRAINING EPOCHS avg cost batch iter train outfile write str epoch while batch iter lt BATCH SIZE train features train labels batch segments random sample train segments 20 for segment in batch segments train features append segment train labels append segment sess run optimizer feed dict train features train labels line out str batch iter train outfile write line out line out str sess run mean1 feed dict train features train labels line out str sess run mean2 feed dict train features train labels line out str sess run mean3 feed dict train features train labels train outfile write line out avg cost sess run cost feed dict train features train labels BATCH SIZE batch iter line out str avg cost train outfile write line out pbar update Increment the progress bar by one train outfile close print Completed training Testing amp Output keep prob Do not use dropout when testingprint now reducing mean print sess run mean1 feed dict test features test labels print TRUE LABELS print test labels print PREDICTED LABELS pred labels sess run out labels feed dict test features print pred labels output accuracy results pred labels test labels sess close code preh1What not repeatable h1pAs you can see outputting results during each epoch to file and also printing out accuracy numbers at the end None of these match from run to run even though believe ve set the seed correctly ve used both coderandom seed 12345 code and codetf set random seed 12345 code ppPlease let me know if need to provide more information And thanks in advance for any help pp DG ph1Set up details h1pTensorFlow version CPU only brEnthought Canopy version Python not brMac OS version 10 11 pSee this tensorflow href https github com tensorflow tensorflow issues 2732 rel noreferrer github issue Some operations on the GPU are not fully deterministic speed vs precision ppI also observed that for the seed to have any effect codetf set random seed code must be called embefore em the codeSession code is created And also you should either completely restart the python interpreter every time you run your code or call codetf reset default graph code at the start 21340,928533,990252,NULL,NULL,NULL,0,NULL,NULL 21341,234053,67520,Good Answer Yearling python Notable Question Yearling Popular Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21342,420567,1125059,Teacher Supporter Census Census,NULL,NULL,0,NULL,NULL 21343,32204,1125059,Teacher Supporter Census Census,NULL,NULL,0,NULL,NULL 21344,1530431,870613,NULL,NULL,NULL,0,NULL,NULL 21345,714879,1173284,Custodian Yearling Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 21346,4617117,126342,Popular Question Good Answer Yearling Guru Yearling Pundit Yearling,NULL,NULL,0,NULL,NULL 21347,253125,919942,Student Popular Question Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 21348,194487,630579,Revival,NULL,NULL,0,NULL,NULL 21349,1111717,1124177,NULL,NULL,NULL,0,NULL,NULL 21350,56561,1528618,NULL,NULL,NULL,0,NULL,NULL 21351,704,668199,NULL,NULL,NULL,0,NULL,NULL 21352,64322,97538,NULL,NULL,NULL,0,NULL,NULL 21353,52945,1072569,NULL,NULL,NULL,0,NULL,NULL 21354,315785,755964,Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21355,314090,1225994,Famous Question Popular Question Custodian Critic Informed Popular Question Enthusiast Yearling Necromancer Organizer Caucus Constituent Custodian Self-Learner Nice Question Popular Question Popular Question Nice Question Revival,NULL,NULL,0,NULL,NULL 21356,835182,357364,NULL,NULL,NULL,0,NULL,NULL 21357,491247,1485734,NULL,NULL,NULL,0,NULL,NULL 21358,328793,347411,NULL,NULL,NULL,0,NULL,NULL 21359,81635,1463657,Student Tumbleweed,NULL,NULL,0,NULL,NULL 21360,15214,122557,Nice Question Good Question Notable Question Favorite Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 21361,274877,1507364,Popular Question Curious Famous Question Nice Question,NULL,NULL,0,NULL,NULL 21362,581781,286757,Curious Yearling Editor Promoter Benefactor,NULL,NULL,0,NULL,NULL 21363,264380,167516,Popular Question Popular Question Popular Question Popular Question Great Question Favorite Question Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Good Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Favorite Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Popular Question Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 21364,2306721,886163,NULL,NULL,NULL,0,NULL,NULL 21365,285860,708708,Yearling Commentator Curious Popular Question,NULL,NULL,0,NULL,NULL 21366,40232,719815,NULL,NULL,NULL,0,NULL,NULL 21367,1363044,1037844,Popular Question Popular Question Popular Question Curious Critic Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21368,26261,140927,Notable Question Caucus Custodian Notable Question Citizen Patrol Announcer,NULL,NULL,0,NULL,NULL 21369,45616,929727,Necromancer,NULL,NULL,0,NULL,NULL 21370,517663,440772,Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Famous Question Notable Question Favorite Question Nice Question Popular Question Popular Question Yearling Inquisitive,NULL,NULL,0,NULL,NULL 21371,548180,376093,NULL,NULL,NULL,0,NULL,NULL 21372,88364,981739,Yearling,NULL,NULL,0,NULL,NULL 21373,674657,1073960,NULL,NULL,NULL,0,NULL,NULL 21374,110989,492172,Popular Question,NULL,NULL,0,NULL,NULL 21375,1382280,1371198,NULL,NULL,NULL,0,NULL,NULL 21376,2135841,793359,Popular Question,NULL,NULL,0,NULL,NULL 21377,231846,451093,Good Answer Yearling Nice Answer Enlightened Custodian Caucus Constituent Census Guru Custodian Proofreader Reviewer Yearling Caucus Constituent Popular Question Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 21378,156999,204619,NULL,NULL,NULL,0,NULL,NULL 21379,1511423,1009010,NULL,NULL,NULL,0,NULL,NULL 21380,269226,573216,Necromancer Nice Answer Yearling Notable Question Necromancer Critic Caucus Yearling Good Answer Custodian Popular Question Caucus Yearling Nice Answer Announcer Announcer Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 21381,43794,559275,Good Answer Good Answer Necromancer Critic Caucus Constituent Scholar Revival Yearling Guru Yearling Caucus Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 21382,227317,1111132,Popular Question,NULL,NULL,0,NULL,NULL 21383,1092184,291417,Good Answer Popular Question Nice Answer Enlightened Yearling Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Caucus Popular Question Famous Question Guru Nice Answer Nice Answer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21384,313094,189211,Necromancer Yearling Curious Popular Question Nice Answer Notable Question Popular Question Caucus Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 21385,136659,436101,Yearling Popular Question Nice Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 21386,7219,978961,Proofreader Custodian Reviewer Excavator Good Answer Strunk & White Explainer Nice Answer Enlightened Nice Answer Steward Nice Answer Enlightened Nice Answer Enlightened Yearling flask Caucus Nice Answer python Nice Answer Enlightened Caucus Nice Answer Yearling Good Answer Announcer Nice Answer Census flask-sqlalchemy Good Answer Caucus Constituent Nice Answer Good Answer Good Answer Good Answer sqlalchemy Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21387,1730551,109474,Revival Yearling,NULL,NULL,0,NULL,NULL 21388,2217906,47724,Enthusiast,NULL,NULL,0,NULL,NULL 21389,890175,1020838,Popular Question Notable Question Popular Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 21390,6706318,1020838,Popular Question Notable Question Popular Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 21391,111723,256981,NULL,NULL,NULL,0,NULL,NULL 21392,222014,7834,Necromancer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21393,243584,219494,NULL,NULL,NULL,0,NULL,NULL 21394,405062,1083733,NULL,NULL,NULL,0,NULL,NULL 21395,482709,1502943,NULL,NULL,NULL,0,NULL,NULL 21396,53406,489553,Favorite Question Nice Answer Famous Question Famous Question Famous Question Great Question Populist Yearling Nice Answer Yearling Notable Question Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 21397,2217096,822334,NULL,NULL,NULL,0,NULL,NULL 21398,122841,527573,NULL,NULL,NULL,0,NULL,NULL 21399,4738498,175773,NULL,NULL,NULL,0,NULL,NULL 21400,63287,175773,NULL,NULL,NULL,0,NULL,NULL 21401,38763,492790,Necromancer,NULL,NULL,0,NULL,NULL 21402,43251,383421,Popular Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 21403,109697,1317796,Popular Question Notable Question Curious Popular Question Famous Question Scholar,NULL,NULL,0,NULL,NULL 21404,187317,341206,Notable Question,NULL,NULL,0,NULL,NULL 21405,6095494,341206,Notable Question,NULL,NULL,0,NULL,NULL 21406,14683,902551,Caucus Necromancer Popular Question Nice Answer Yearling Nice Answer Civic Duty Revival Yearling Necromancer Nice Answer Custodian,NULL,NULL,0,NULL,NULL 21407,423429,944047,Autobiographer Census,NULL,NULL,0,NULL,NULL 21408,903953,472513,NULL,NULL,NULL,0,NULL,NULL 21409,1380605,777140,NULL,NULL,NULL,0,NULL,NULL 21410,139083,834526,Popular Question,NULL,NULL,0,NULL,NULL 21411,206994,872208,NULL,NULL,NULL,0,NULL,NULL 21412,217960,849936,NULL,NULL,NULL,0,NULL,NULL 21413,19171,404145,Notable Question Announcer Caucus Yearling Announcer Self-Learner Necromancer Caucus Nice Answer Famous Question Popular Question Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 21414,110470,1405898,Critic Commentator Revival Caucus Constituent,NULL,NULL,0,NULL,NULL 21415,979710,1016515,Nice Answer Revival Good Answer Notable Question Yearling Announcer Announcer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 21416,72028,401346,Citizen Patrol,NULL,NULL,0,NULL,NULL 21417,558753,761662,Popular Question Yearling,NULL,NULL,0,NULL,NULL 21418,242046,977117,Autobiographer,NULL,NULL,0,NULL,NULL 21419,466865,1336685,NULL,NULL,NULL,0,NULL,NULL 21420,14876,637644,NULL,NULL,NULL,0,NULL,NULL 21421,123824,543597,NULL,NULL,NULL,0,NULL,NULL 21422,1039,175988,Yearling Yearling,NULL,NULL,0,NULL,NULL 21423,64059,161297,Scholar Student Commentator,NULL,NULL,0,NULL,NULL 21424,1518843,486850,NULL,NULL,NULL,0,NULL,NULL 21425,351953,736474,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21426,8527,544504,Nice Answer Popular Question Nice Question Yearling Popular Question Inquisitive Necromancer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 21427,745909,1109093,NULL,NULL,NULL,0,NULL,NULL 21428,840585,1544837,NULL,NULL,NULL,0,NULL,NULL 21429,165463,736521,NULL,NULL,NULL,0,NULL,NULL 21430,212376,139333,Good Question Famous Question,NULL,NULL,0,NULL,NULL 21431,230631,1318059,Editor Student Commentator,NULL,NULL,0,NULL,NULL 21432,1424151,213725,Good Answer Notable Question Nice Question Nice Question Famous Question Caucus Yearling Guru Necromancer Nice Answer Enlightened Announcer Announcer Revival Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 21433,42387,1137026,Yearling Custodian Custodian Yearling Yearling Organizer Custodian Yearling,NULL,NULL,0,NULL,NULL 21434,318770,947687,Nice Answer Revival Yearling Self-Learner Good Answer Announcer Necromancer Popular Question javascript Announcer Caucus Necromancer Nice Answer Yearling Documentation User jquery Announcer Yearling,NULL,NULL,0,NULL,NULL 21435,285042,965852,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21436,1523170,227043,NULL,NULL,NULL,0,NULL,NULL 21437,778278,1417038,Yearling Critic Excavator Student Scholar Commentator,NULL,NULL,0,NULL,NULL 21438,116289,386892,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 21439,87886,23850,Guru Nice Answer Peer Pressure Yearling Revival Caucus Stellar Question Caucus Yearling Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 21440,262325,141837,Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 21441,75422,262071,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21442,158803,210923,Yearling Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 21443,1557844,1217267,Popular Question,NULL,NULL,0,NULL,NULL 21444,596966,863446,NULL,NULL,NULL,0,NULL,NULL 21445,439464,255090,Popular Question,NULL,NULL,0,NULL,NULL 21446,590691,1261952,NULL,NULL,NULL,0,NULL,NULL 21447,623355,475564,Critic Informed Notable Question Autobiographer Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21448,1648,1041506,Popular Question,NULL,NULL,0,NULL,NULL 21449,128625,1041803,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 21450,1659730,1157277,NULL,NULL,NULL,0,NULL,NULL 21451,376564,590288,NULL,NULL,NULL,0,NULL,NULL 21452,80507,1139357,NULL,NULL,NULL,0,NULL,NULL 21453,344991,175932,Nice Answer Yearling Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21454,96821,120202,Yearling Civic Duty Popular Question Yearling,NULL,NULL,0,NULL,NULL 21455,442973,510280,NULL,NULL,NULL,0,NULL,NULL 21456,71074,266150,Yearling,NULL,NULL,0,NULL,NULL 21457,602517,519426,NULL,NULL,NULL,0,NULL,NULL 21458,165051,359603,Notable Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21459,479281,646334,Curious Popular Question Popular Question Notable Question Promoter Citizen Patrol Nice Question Notable Question Organizer Yearling Popular Question,NULL,NULL,0,NULL,NULL 21460,79847,902421,NULL,NULL,NULL,0,NULL,NULL 21461,1986103,1344597,Editor Famous Question,NULL,NULL,0,NULL,NULL 21462,205160,398421,Yearling,NULL,NULL,0,NULL,NULL 21463,98881,617636,NULL,NULL,NULL,0,NULL,NULL 21464,10653,281358,Yearling Critic Custodian Citizen Patrol Nice Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21465,252209,523226,NULL,NULL,NULL,0,NULL,NULL 21466,222872,208996,NULL,NULL,NULL,0,NULL,NULL 21467,207483,458481,NULL,NULL,NULL,0,NULL,NULL 21468,215762,313275,Supporter,NULL,NULL,0,NULL,NULL 21469,194192,203939,Informed Editor Scholar,NULL,NULL,0,NULL,NULL 21470,2079728,203939,Informed Editor Scholar,NULL,NULL,0,NULL,NULL 21471,124940,868598,Necromancer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 21472,62167,199278,Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 21473,168281,1121827,Popular Question Yearling Custodian Great Answer Yearling,NULL,NULL,0,NULL,NULL 21474,862126,823888,NULL,NULL,NULL,0,NULL,NULL 21475,569378,1072770,NULL,NULL,NULL,0,NULL,NULL 21476,310111,228580,Supporter Notable Question,NULL,NULL,0,NULL,NULL 21477,211411,1252583,NULL,NULL,NULL,0,NULL,NULL 21478,471597,480483,Caucus Necromancer Revival Yearling Announcer Good Answer Notable Question Pundit,NULL,NULL,0,NULL,NULL 21479,2169666,1367300,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 21480,632456,646011,NULL,NULL,NULL,0,NULL,NULL 21481,38826,94428,Yearling Good Answer Nice Answer Caucus Yearling Good Answer html Yearling,NULL,NULL,0,NULL,NULL 21482,125900,688356,NULL,NULL,NULL,0,NULL,NULL 21483,238895,371740,NULL,NULL,NULL,0,NULL,NULL 21484,125859,473920,NULL,NULL,NULL,0,NULL,NULL 21485,366269,212104,Yearling Yearling Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 21486,278962,331910,Great Answer Yearling,NULL,NULL,0,NULL,NULL 21487,27872,1085087,Yearling Civic Duty Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 21488,612888,453647,Yearling Yearling,NULL,NULL,0,NULL,NULL 21489,97070,35311,Yearling Nice Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 21490,76871,1507174,NULL,NULL,NULL,0,NULL,NULL 21491,230881,564755,Curious Announcer Announcer Popular Question Yearling Announcer Caucus Announcer Custodian Census Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 21492,435472,1387765,Editor Teacher Necromancer Supporter Nice Answer Critic,NULL,NULL,0,NULL,NULL 21493,2297018,453261,Good Question Notable Question Popular Question Civic Duty Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer Famous Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Famous Question Famous Question Popular Question Yearling Guru Notable Question Nice Question Notable Question Notable Question Popular Question Yearling Good Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 21494,11811,453261,Good Question Notable Question Popular Question Civic Duty Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer Famous Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Famous Question Famous Question Popular Question Yearling Guru Notable Question Nice Question Notable Question Notable Question Popular Question Yearling Good Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 21495,439722,1365518,NULL,NULL,NULL,0,NULL,NULL 21496,463289,676227,NULL,NULL,NULL,0,NULL,NULL 21497,64426,1226811,Notable Question,NULL,NULL,0,NULL,NULL 21498,70897,75825,Nice Question Notable Question Caucus Constituent Custodian Yearling Documentation User,NULL,NULL,0,NULL,NULL 21499,71656,547801,NULL,NULL,NULL,0,NULL,NULL 21500,332736,474321,Popular Question Necromancer Popular Question Popular Question Nice Question Popular Question Notable Question Nice Answer Enlightened Yearling Notable Question Notable Question Famous Question Nice Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21501,2799,206529,NULL,NULL,NULL,0,NULL,NULL 21502,32941,656767,Good Answer Yearling,NULL,NULL,0,NULL,NULL 21503,170924,799411,Self-Learner,NULL,NULL,0,NULL,NULL 21504,45194,184010,Popular Question Famous Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 21505,199115,1174763,Investor Altruist,NULL,NULL,0,NULL,NULL 21506,114974,159607,Good Answer Yearling Custodian Informed Self-Learner Guru Nice Question Nice Answer Enlightened Yearling Famous Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 21507,604376,356873,NULL,NULL,NULL,0,NULL,NULL 21508,134596,238845,Custodian Informed Custodian Popular Question Yearling Guru Announcer Documentation User Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 21509,284401,601003,NULL,NULL,NULL,0,NULL,NULL 21510,7151644,1435771,Autobiographer Caucus,NULL,NULL,0,NULL,NULL 21511,410785,1435771,Autobiographer Caucus,NULL,NULL,0,NULL,NULL 21512,20990,372047,Curious Critic Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 21513,334195,138415,Commentator Enthusiast Necromancer Critic,NULL,NULL,0,NULL,NULL 21514,62750,9815,Good Answer Guru Nice Answer Nice Answer Nice Answer Guru Enlightened Great Answer Good Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Good Answer Guru Nice Answer Nice Answer Good Answer Guru Yearling Popular Question Nice Answer Good Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 21515,31046,535666,Nice Answer Enlightened Notable Question Great Answer Nice Answer Good Answer Caucus Constituent Yearling Census symfony Good Answer Enlightened Caucus Great Answer Guru Documentation User Yearling Census Famous Question Good Answer Good Answer Notable Question Nice Question Great Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21516,281287,249492,Informed Yearling Necromancer Necromancer Nice Answer Caucus Civic Duty Caucus,NULL,NULL,0,NULL,NULL 21517,213296,1401454,Informed,NULL,NULL,0,NULL,NULL 21518,545318,175163,Scholar Good Answer Caucus,NULL,NULL,0,NULL,NULL 21519,2504469,105842,Good Question Popular Question,NULL,NULL,0,NULL,NULL 21520,1406057,333291,Notable Question Yearling Stellar Question Notable Question Documentation Pioneer Caucus Popular Question Excavator Yearling Documentation User Census Custodian Yearling,NULL,NULL,0,NULL,NULL 21521,165157,249394,Critic,NULL,NULL,0,NULL,NULL 21522,246178,303040,NULL,NULL,NULL,0,NULL,NULL 21523,5970,542468,NULL,NULL,NULL,0,NULL,NULL 21524,634988,1024962,NULL,NULL,NULL,0,NULL,NULL 21525,872120,280719,Census Informed,NULL,NULL,0,NULL,NULL 21526,888009,396882,NULL,NULL,NULL,0,NULL,NULL 21527,4925550,1172652,NULL,NULL,NULL,0,NULL,NULL 21528,161274,837939,NULL,NULL,NULL,0,NULL,NULL 21529,137028,165198,Nice Question Famous Question Famous Question Popular Question Notable Question Popular Question Yearling Nice Question Custodian Popular Question Popular Question Self-Learner Nice Question Popular Question Popular Question Yearling Notable Question Famous Question Notable Question Good Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21530,83086,75946,Announcer Yearling Revival Notable Question Great Question Popular Question Nice Question Great Question Yearling Famous Question Popular Question Notable Question Yearling Notable Question Revival Good Question,NULL,NULL,0,NULL,NULL 21531,294187,859,Yearling Good Answer Nice Answer Nice Answer Custodian,NULL,NULL,0,NULL,NULL 21532,21763,549998,Yearling,NULL,NULL,0,NULL,NULL 21533,234539,87601,Yearling Good Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 21534,21510,888130,NULL,NULL,NULL,0,NULL,NULL 21535,322533,771885,Good Answer Necromancer,NULL,NULL,0,NULL,NULL 21536,269713,404148,Notable Question,NULL,NULL,0,NULL,NULL 21537,408320,111112,NULL,NULL,NULL,0,NULL,NULL 21538,508661,854239,Popular Question Popular Question Notable Question Critic Yearling Notable Question,NULL,NULL,0,NULL,NULL 21539,1654573,801767,NULL,NULL,NULL,0,NULL,NULL 21540,98397,786902,Yearling Necromancer Revival Popular Question Nice Answer Nice Answer Nice Question Revival Yearling Necromancer Yearling Good Answer Caucus Revival Yearling Announcer Documentation User Necromancer Famous Question Yearling Yearling Nice Answer Custodian Enlightened,NULL,NULL,0,NULL,NULL 21541,471337,120930,Necromancer Good Question Custodian Good Answer Announcer Nice Answer Yearling Necromancer Nice Answer Necromancer Civic Duty Autobiographer Notable Question Custodian Nice Answer Nice Question Good Answer Notable Question Yearling Guru Famous Question Nice Answer Yearling Nice Question Good Answer,NULL,NULL,0,NULL,NULL 21542,1221808,786245,NULL,NULL,NULL,0,NULL,NULL 21543,7175669,786245,NULL,NULL,NULL,0,NULL,NULL 21544,59467,421661,NULL,NULL,NULL,0,NULL,NULL 21545,2399094,196343,Necromancer Good Answer Yearling Nice Question Popular Question Favorite Question Famous Question Popular Question Nice Question Popular Question Nice Answer Popular Question Yearling Good Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 21546,89687,196343,Necromancer Good Answer Yearling Nice Question Popular Question Favorite Question Famous Question Popular Question Nice Question Popular Question Nice Answer Popular Question Yearling Good Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 21547,889162,196343,Necromancer Good Answer Yearling Nice Question Popular Question Favorite Question Famous Question Popular Question Nice Question Popular Question Nice Answer Popular Question Yearling Good Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 21548,149892,522519,NULL,NULL,NULL,0,NULL,NULL 21549,243780,1445264,Supporter Teacher,NULL,NULL,0,NULL,NULL 21550,2413290,1144396,Tumbleweed Teacher Revival Commentator Popular Question,NULL,NULL,0,NULL,NULL 21551,340119,899670,Yearling Student,NULL,NULL,0,NULL,NULL 21552,678702,585013,NULL,NULL,NULL,0,NULL,NULL 21553,281410,611749,NULL,NULL,NULL,0,NULL,NULL 21554,29779,977044,NULL,NULL,NULL,0,NULL,NULL 21555,428856,128792,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21556,276872,610826,NULL,NULL,NULL,0,NULL,NULL 21557,28211,446463,NULL,NULL,NULL,0,NULL,NULL 21558,43391,282400,NULL,NULL,NULL,0,NULL,NULL 21559,2674,796514,Civic Duty Commentator,NULL,NULL,0,NULL,NULL 21560,772143,1211849,NULL,NULL,NULL,0,NULL,NULL 21561,672394,705626,Student Critic Nice Answer Enlightened,NULL,Android Studio Instant Run causes DexFile to not load all classes android android multidex android studio pI had some code to get list of all the classes in package that looked something like this ppre code try DexFile df new DexFile context getPackageCodePath for Enumeration lt String gt iter df entries iter hasMoreElements String iter nextElement catch IOException printStackTrace code prepHowever this code has stopped working since upgraded my Android Studio to version ve found that the culprit is Instant Run If debug the app can see that without instance run the DexFile variable df contains list of class names over 000 of them When Instant Run is turned on only get like 30 or so class names and the classes that looking for aren there have feeling it has something to do with multi dex but not sure how Instant Run is working under the covers my app does not use multidex ppDoes anyone know how can get list of classes like this with Instant Run turned on Or does anyone know exactly why Im seeing this behaviour would be great to understand it Please take look at this answer http stackoverflow com questions 36572515 dexfile in versions of android studio and gradle InstantRun broke DexFile logic,0,NULL,NULL 21562,113371,106516,Popular Question Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 21563,122728,663505,Critic Student Yearling Enthusiast Yearling Promoter Nice Answer Custodian Citizen Patrol Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,1,NULL,How to alter the headers of Request javascript service worker pIs it possible to alter the headers of the href https developer mozilla org en US docs Web API Request rel nofollow noreferrer codeRequest code object that is received by the href https developer mozilla org en US docs Web API FetchEvent rel nofollow noreferrer codefetch code event ppTwo attempts polli strongModify existing headers strong ppre class lang js prettyprint override codeself addEventListener fetch function event event request headers set foo bar event respondWith fetch event request code prepFails with codeFailed to execute set on Headers Headers are immutable code lili strongCreate new codeRequest code object strong ppre class lang js prettyprint override codeself addEventListener fetch function event var req new Request event request headers foo bar event respondWith fetch req code prepFails with codeFailed to construct Request Cannot construct Request with Request whose mode is navigate and non empty RequestInit code li olp See also href https stackoverflow com questions 35421179 how to alter the headers of response How to alter the headers of Response pCreating new request object works as long as you set all the options ppre code request is event request sent by browser here var req new Request request url method request method headers request headers mode same origin need to set this properly credentials request credentials redirect manual let browser handle redirects code prepYou cannot use the original codemode code if it is codenavigate code that why you were getting an exception and you probably want to pass redirection back to browser to let it change its URL instead of letting codefetch code handle it ppMake sure you don set body on GET requests fetch does not like it but browsers sometimes generate GET requests with the body when responding to redirects from POST requests codefetch code does not like it 21564,562087,758708,Good Answer Good Answer Notable Question Popular Question Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Good Answer jquery Good Answer java Popular Question Guru Nice Answer Guru Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 21565,424298,390898,NULL,NULL,NULL,0,NULL,NULL 21566,547229,207751,NULL,NULL,NULL,0,NULL,NULL 21567,27888,341584,Autobiographer,NULL,NULL,0,NULL,NULL 21568,118774,605165,Necromancer Yearling Nice Answer Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 21569,82780,449652,Notable Question Popular Question Notable Question Yearling Popular Question Great Answer Good Question Good Answer Famous Question Popular Question Yearling Documentation User Custodian Nice Answer Enlightened Popular Question Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 21570,125072,195025,NULL,NULL,NULL,0,NULL,NULL 21571,135189,644131,NULL,NULL,NULL,0,NULL,NULL 21572,255832,1417270,Scholar Editor,NULL,NULL,0,NULL,NULL 21573,8022561,104320,NULL,NULL,NULL,0,NULL,NULL 21574,2232998,1362953,NULL,NULL,NULL,0,NULL,NULL 21575,616141,519651,NULL,NULL,NULL,0,NULL,NULL 21576,172993,1392564,NULL,NULL,NULL,0,NULL,NULL 21577,314780,228434,NULL,NULL,NULL,0,NULL,NULL 21578,49018,1251299,NULL,NULL,NULL,0,NULL,NULL 21579,153995,1385058,NULL,NULL,NULL,0,NULL,NULL 21580,1388361,223283,NULL,NULL,NULL,0,NULL,NULL 21581,9986,892437,NULL,NULL,NULL,0,NULL,NULL 21582,13470,852878,NULL,NULL,NULL,0,NULL,NULL 21583,48881,1298144,Nice Answer Enlightened Revival Yearling Necromancer Good Answer Yearling Necromancer Nice Answer Nice Answer Yearling Guru Commentator,NULL,NULL,0,NULL,NULL 21584,375308,1454012,Informed,NULL,NULL,0,NULL,NULL 21585,14945,1055573,Good Answer,NULL,NULL,0,NULL,NULL 21586,1262919,744106,Notable Question,NULL,NULL,0,NULL,NULL 21587,343364,286406,Excavator Good Answer Yearling Nice Question Notable Question Good Answer Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 21588,48495,141552,Nice Answer Yearling Notable Question Nice Answer Notable Question Famous Question Yearling Popular Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 21589,192242,175690,NULL,NULL,NULL,0,NULL,NULL 21590,529863,730346,Necromancer Popular Question Notable Question Famous Question Famous Question Custodian Yearling Good Question Notable Question Notable Question Popular Question Popular Question Necromancer Nice Question Popular Question Nice Question Good Question Nice Question Popular Question Popular Question Popular Question Famous Question Good Question Yearling Good Answer Popular Question Great Question Favorite Question Notable Question Popular Question Famous Question Popular Question Favorite Question Yearling Popular Question Popular Question Notable Question Great Question Revival Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21591,8481,198,Yearling Custodian Stellar Question Custodian Yearling Custodian Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 21592,72394,253367,Yearling Yearling Great Answer Good Answer Populist Yearling Nice Answer,NULL,NULL,0,NULL,NULL 21593,435038,88709,Nice Answer Revival Yearling Necromancer Famous Question Guru Revival Nice Answer Good Answer Yearling Announcer Announcer Good Answer Yearling Revival Necromancer Nice Answer Guru Great Question,NULL,NULL,0,NULL,NULL 21594,1640037,893480,Notable Question,NULL,NULL,0,NULL,NULL 21595,3313757,893480,Notable Question,NULL,NULL,0,NULL,NULL 21596,413,39155,Good Question Notable Question Revival Great Answer Nice Answer Announcer python Notable Question Nice Question Yearling Popular Question Notable Question Tag Editor Necromancer Custodian Revival Good Answer Necromancer Revival Nice Answer Electorate Caucus Popular Question Necromancer Popular Question Strunk & White Yearling Custodian Nice Answer Popular Question Necromancer Nice Answer Notable Question Good Answer Popular Question Necromancer Guru Nice Answer Yearling,NULL,pPreprocessor macros will not work you need to check the environment at runtime ppre codestatic BOOL isRunningTests void NSDictionary environment NSProcessInfo processInfo environment return environment XCInjectBundleInto nil code prep em Updated for Xcode em This does not appear to work on Xcode codeZipFile code writes its data as bytes not strings This means you ll have to use codeBytesIO code instead of codeStringIO code on Python ppThe distinction between bytes and strings is new in Python The href https pythonhosted org six six compatibility library has codeBytesIO code class for Python if you want your program to be compatible with both This is confusing because the error message from the OP implies the exact opposite problem He providing string value since that what the error message states is the expected argument type,1,NULL,Swift how to use PREPROCESSOR Flags like if DEBUG to implement API keys swift xcode macros preprocessor pIn codeObjective code it was sometimes useful to use static string constants to define alternate API keys for example to differentiate between RELEASE and DEBUG keys for analytics packages like MixPanel Flurry or Crashlytics ppre code if DEBUGstatic NSString const API KEY KEY elsestatic NSString const API KEY KEY endif code prepand then ppre code Analytics startSession API KEY code prepHow does this translate to Swift since the Swift compiler no longer uses preprocessor pApple included full support for Swift preprocessor flags as of href https miqu me blog 2016 07 31 xcode new build settings and analyzer improvements rel noreferrer Xcode so it no longer necessary to set these values in Other Swift Flags ppThe new setting is called Active Compilation Conditions which provides top level support for the Swift equivalent of preprocessor flags You use it in exactly the same way as you would Other Swift Flags except there no need to prepend the value with so it just little cleaner ppFrom the href https developer apple com library content releasenotes DeveloperTools RN Xcode Chapters Introduction html rel noreferrer Xcode release notes pblockquote codeActive Compilation Conditions code is new build setting for passing conditional compilation flags to the Swift compiler Each element of the value of this setting passes to swiftc prefixed with code codeD in the same way that elements of codePreprocessor Macros code pass to clang with the same prefix 22457329 blockquotep href https stack imgur com GKizw png rel noreferrer img src https stack imgur com GKizw png alt enter image description here ppYou use the above setting like so ppre code if DEBUG let accessToken DebugAccessToken else let accessToken ProductionAccessToken endif code pre 21597,517707,473872,Good Question Nice Question Famous Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 21598,50721,399274,Revival Nice Answer Nice Answer Yearling Yearling javascript Yearling Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 21599,46779,131267,NULL,NULL,NULL,0,NULL,NULL 21600,133180,489635,NULL,NULL,NULL,0,NULL,NULL 21601,429573,1559177,NULL,NULL,NULL,0,NULL,NULL 21602,94870,130715,Popular Question Yearling Notable Question Self-Learner Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 21603,494525,283819,Census Revival,NULL,NULL,0,NULL,NULL 21604,686925,535558,Editor Tumbleweed Student,NULL,NULL,0,NULL,NULL 21605,330732,1281788,NULL,NULL,NULL,0,NULL,NULL 21606,655624,511717,NULL,NULL,NULL,0,NULL,NULL 21607,175721,922727,Popular Question Yearling Notable Question Custodian Great Answer Notable Question Yearling Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 21608,406334,990900,NULL,NULL,NULL,0,NULL,NULL 21609,1442864,237316,Notable Question Notable Question Necromancer Yearling Popular Question Popular Question Custodian Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21610,1104683,1167557,Yearling Necromancer Custodian Custodian Excavator Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 21611,227159,1035539,NULL,NULL,NULL,0,NULL,NULL 21612,591603,1053438,NULL,NULL,NULL,0,NULL,NULL 21613,61989,587698,Caucus,NULL,NULL,0,NULL,NULL 21614,945034,724368,Yearling Popular Question Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 21615,184057,571914,Yearling Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 21616,880940,571914,Yearling Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 21617,161432,594589,Nice Question Yearling Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Good Answer unit-testing Guru Yearling Good Answer Nice Answer Enlightened Good Answer Nice Question Guru Nice Answer Good Answer Famous Question Nice Answer Caucus Popular Question Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Electorate Nice Answer Nice Answer json Nice Answer Enlightened Guru Good Answer Yearling Nice Answer Popular Question Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened go Guru Popular Question Nice Answer Nice Answer Enlightened Nice Question Nice Answer Announcer Announcer Famous Question Nice Answer Populist Notable Question Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 21618,259885,718652,Self-Learner Critic,NULL,NULL,0,NULL,NULL 21619,80570,202240,Nice Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 21620,74674,107586,Famous Question,NULL,NULL,0,NULL,NULL 21621,3212254,107586,Famous Question,NULL,NULL,0,NULL,NULL 21622,1955296,396956,Notable Question Custodian Yearling Nice Question Nice Answer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21623,478591,1347023,NULL,NULL,NULL,0,NULL,NULL 21624,22669,897623,Notable Question,NULL,NULL,0,NULL,NULL 21625,139548,322309,NULL,NULL,NULL,0,NULL,NULL 21626,191720,141343,Great Answer Necromancer Yearling Nice Answer Yearling Good Answer Yearling Necromancer,NULL,pThe recommended way for Python and and later is to use href http docs python org library importlib html importlib import module rel noreferrer codeimportlib code module pblockquote pimportlib import module name package None pImport module The name argument specifies what module to import in absolute or relative terms either pkg mod or mod If the name is specified in relative terms then the package argument must be set to the name of the package which is to act as the anchor for resolving the package name import module mod pkg subpkg will import pkg mod blockquotepe ppre codemy module importlib import module os path code pre this is dangerous method since it polluting your globals and can override any identifiers with the same names The link you ve posted has better improved version of this code,0,NULL,NULL 21627,90514,1096699,NULL,NULL,NULL,0,NULL,NULL 21628,15068,120052,Yearling Guru Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 21629,5432,731615,NULL,NULL,NULL,0,NULL,NULL 21630,328106,514228,Yearling Citizen Patrol Custodian Guru Organizer Excavator Explainer Tag Editor Enthusiast Revival Fanatic Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 21631,165064,994279,NULL,NULL,NULL,0,NULL,NULL 21632,1582212,359190,NULL,NULL,NULL,0,NULL,NULL 21633,437681,271650,Yearling Supporter Yearling Yearling,NULL,pThis is bad idea Trusting any certificate is only very slightly better than using no SSL at all When you say want my client to accept any certificate because only ever pointing to one server you are assuming this means that somehow pointing to one server is safe which it not on public network ppYou are completely open to man in the middle attack by trusting any certificate Anyone can proxy your connection by establishing separate SSL connection with you and with the end server The MITM then has access to your entire request and response Unless you didn really need SSL in the first place your message has nothing sensitive and doesn do authentication you shouldn trust all certificates blindly ppYou should consider adding the public cert to jks using keytool and using that to build your socket factory such as this ppre code KeyStore ks KeyStore getInstance JKS get user password and file input stream char password mykspassword toCharArray ClassLoader cl this getClass getClassLoader InputStream stream cl getResourceAsStream myjks jks ks load stream password stream close SSLContext sc SSLContext getInstance TLS KeyManagerFactory kmf KeyManagerFactory getInstance SunX509 TrustManagerFactory tmf TrustManagerFactory getInstance SunX509 kmf init ks password tmf init ks sc init kmf getKeyManagers tmf getTrustManagers null return sc getSocketFactory code prepThis has one caveat to watch out for The certificate will expire eventually and the code will stop working at that time You can easily determine when this will happen by looking at the cert Generated using Java keytool,0,NULL,NULL 21634,278056,527706,Famous Question Inquisitive Citizen Patrol Custodian Famous Question Popular Question Famous Question Necromancer Revival Yearling Nice Question,NULL,NULL,0,NULL,NULL 21635,10649940,429506,Census Nice Question,NULL,NULL,0,NULL,NULL 21636,165855,429506,Census Nice Question,NULL,NULL,0,NULL,NULL 21637,137251,143050,NULL,NULL,NULL,0,NULL,NULL 21638,113986,570725,NULL,NULL,NULL,0,NULL,NULL 21639,1565812,1530233,Supporter,NULL,NULL,0,NULL,NULL 21640,229528,708658,NULL,NULL,NULL,0,NULL,NULL 21641,164695,410963,Popular Question Teacher Commentator Citizen Patrol Editor,NULL,NULL,0,NULL,NULL 21642,3309897,1503973,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21643,61377,482149,Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 21644,1179214,1184396,NULL,NULL,NULL,0,NULL,NULL 21645,395214,1492481,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21646,476630,237867,Nice Answer xquery Caucus Reviewer Suffrage Yearling Enthusiast marklogic Caucus Investor Altruist Yearling Caucus,NULL,NULL,0,NULL,NULL 21647,554099,495351,NULL,NULL,NULL,0,NULL,NULL 21648,930996,411773,NULL,NULL,NULL,0,NULL,NULL 21649,293379,66005,Critic,NULL,NULL,0,NULL,NULL 21650,8516475,1058064,Announcer,NULL,NULL,0,NULL,NULL 21651,1505502,1058064,Announcer,NULL,NULL,0,NULL,NULL 21652,193587,248317,NULL,NULL,NULL,0,NULL,NULL 21653,704110,579115,Yearling Popular Question Self-Learner Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21654,1105606,901616,NULL,NULL,NULL,0,NULL,NULL 21655,556170,207814,Good Answer Tumbleweed Curious Yearling Commentator Critic,NULL,NULL,0,NULL,NULL 21656,17918,1311049,Popular Question Popular Question Curious Notable Question Nice Question Yearling Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21657,177165,30014,Popular Question Favorite Question Yearling Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21658,151028,377335,Yearling,NULL,NULL,0,NULL,NULL 21659,713201,469781,NULL,NULL,NULL,0,NULL,NULL 21660,3837,273075,Nice Answer Yearling Guru Good Answer Guru Yearling Good Answer Great Answer Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 21661,5841,645623,Popular Question,NULL,NULL,0,NULL,NULL 21662,789005,307514,NULL,NULL,NULL,0,NULL,NULL 21663,1226599,236326,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21664,180912,408195,Yearling Popular Question Revival Yearling Popular Question Popular Question Necromancer Notable Question Critic Nice Question Notable Question Famous Question Famous Question Popular Question Yearling Nice Answer,NULL,Error compiling OpenCV fatal error stdlib No such file or directory opencv gcc cmake pI trying to compile OpenCV ve tried the master branch which is currently on commit dc9602e and version tag using Fedora 24 first tried using gcc that comes with Fedora gcc GCC 20160916 Red Hat have also tried with GCC compiled on my machine ppI using cmake with the following parameters ppre codecmake DCMAKE BUILD TYPE RELEASE DCMAKE INSTALL PREFIX usr local DBUILD NEW PYTHON SUPPORT ON DINSTALL PYTHON EXAMPLES ON DWITH TBB ON DWITH V4L ON DINSTALL EXAMPLES ON DBUILD EXAMPLES ON DWITH QT ON DWITH OPENGL ON DWITH OPENCL ON DWITH EIGEN ON DWITH OPENEXR ON code prep codecmake code runs fine and then run codemake code Doesn matter the commbination of OpenCV version and gcc version the result is the same ppre codeIn file included from usr local include bits stl algo 59 from usr local include algorithm 62 from home dmelo proj2 opencv modules core include opencv2 core base hpp 55 from home dmelo proj2 opencv modules core include opencv2 core hpp 54 from home dmelo proj2 opencv modules highgui include opencv2 highgui hpp 46 from home dmelo proj2 opencv build modules highgui precomp hpp 45 usr local include cstdlib 75 25 fatal error stdlib No such file or directory include next lt stdlib gt compilation terminated code prepIs anyone else experiencing this How can solve this problem It worked Add DENABLE PRECOMPILED HEADERS OFF as parameter for cmake did the job Would you please post it as an answare so that can mark it as correct,1,Error compiling OpenCV fatal error stdlib No such file or directory opencv gcc cmake pI trying to compile OpenCV ve tried the master branch which is currently on commit dc9602e and version tag using Fedora 24 first tried using gcc that comes with Fedora gcc GCC 20160916 Red Hat have also tried with GCC compiled on my machine ppI using cmake with the following parameters ppre codecmake DCMAKE BUILD TYPE RELEASE DCMAKE INSTALL PREFIX usr local DBUILD NEW PYTHON SUPPORT ON DINSTALL PYTHON EXAMPLES ON DWITH TBB ON DWITH V4L ON DINSTALL EXAMPLES ON DBUILD EXAMPLES ON DWITH QT ON DWITH OPENGL ON DWITH OPENCL ON DWITH EIGEN ON DWITH OPENEXR ON code prep codecmake code runs fine and then run codemake code Doesn matter the commbination of OpenCV version and gcc version the result is the same ppre codeIn file included from usr local include bits stl algo 59 from usr local include algorithm 62 from home dmelo proj2 opencv modules core include opencv2 core base hpp 55 from home dmelo proj2 opencv modules core include opencv2 core hpp 54 from home dmelo proj2 opencv modules highgui include opencv2 highgui hpp 46 from home dmelo proj2 opencv build modules highgui precomp hpp 45 usr local include cstdlib 75 25 fatal error stdlib No such file or directory include next lt stdlib gt compilation terminated code prepIs anyone else experiencing this How can solve this problem,NULL 21665,153893,359364,Popular Question Critic Famous Question Popular Question Announcer Nice Question,NULL,,0,, 21666,236853,466918,Yearling Good Answer,NULL,NULL,0,NULL,NULL 21667,415487,481807,NULL,NULL,NULL,0,NULL,NULL 21668,946258,1135506,Popular Question Revival Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21669,214801,1558684,NULL,NULL,NULL,0,NULL,NULL 21670,584528,120028,Nice Answer,NULL,NULL,0,NULL,NULL 21671,1694631,977339,NULL,NULL,NULL,0,NULL,NULL 21672,19170,850196,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21673,949397,654965,NULL,NULL,NULL,0,NULL,NULL 21674,469373,447505,NULL,NULL,NULL,0,NULL,NULL 21675,283667,1172325,NULL,NULL,NULL,0,NULL,NULL 21676,164479,1252708,Good Question Yearling Revival Famous Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 21677,45077,7437,Notable Question Guru Nice Answer Great Answer Nice Question Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Populist Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Good Answer Revival Good Answer Yearling Great Answer Great Answer Popular Question,NULL,NULL,0,NULL,NULL 21678,330569,1298706,NULL,NULL,NULL,0,NULL,NULL 21679,492285,967775,Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 21680,458042,784467,NULL,NULL,NULL,0,NULL,NULL 21681,215396,991044,Supporter Tumbleweed Editor Commentator Notable Question,NULL,NULL,0,NULL,NULL 21682,195853,478095,NULL,NULL,NULL,0,NULL,NULL 21683,573182,768772,Popular Question Yearling Good Answer Yearling Caucus Constituent Yearling Caucus Census Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 21684,94127,1384136,Nice Answer Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 21685,37046,817412,NULL,NULL,NULL,0,NULL,NULL 21686,583228,1057240,NULL,NULL,NULL,0,NULL,NULL 21687,162642,504069,NULL,NULL,NULL,0,NULL,NULL 21688,301092,236660,Guru jquery Nice Answer Enlightened Tag Editor Popular Question Nice Answer Quorum Custodian Caucus Strunk & White Constituent Yearling Revival Good Answer Notable Question Good Answer Notable Question Caucus Populist Nice Answer Enlightened Guru Yearling Nice Answer Nice Answer Enlightened Announcer Nice Answer Necromancer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 21689,48214,342621,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 21690,1367659,808938,NULL,NULL,NULL,0,NULL,NULL 21691,131478,9476,Popular Question Popular Question Nice Question Popular Question Great Question Great Question Nice Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Favorite Question Necromancer Famous Question Revival Notable Question Notable Question Notable Question Popular Question Good Question Necromancer Famous Question Yearling Documentation User Notable Question Notable Question Notable Question Nice Question Caucus Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21692,25671,1015626,NULL,NULL,NULL,0,NULL,NULL 21693,1780852,1038781,Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21694,18796,863803,Yearling,NULL,NULL,0,NULL,NULL 21695,201089,1025306,NULL,NULL,NULL,0,NULL,NULL 21696,437915,256727,Yearling Caucus Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 21697,149381,1273811,NULL,NULL,NULL,0,NULL,NULL 21698,128118,934186,NULL,NULL,NULL,0,NULL,NULL 21699,1538389,1110807,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 21700,26330,752049,Teacher,NULL,NULL,0,NULL,NULL 21701,110538,1039300,NULL,NULL,NULL,0,NULL,NULL 21702,298561,865102,NULL,NULL,NULL,0,NULL,NULL 21703,72515,1337031,NULL,NULL,NULL,0,NULL,NULL 21704,1081428,923750,NULL,NULL,NULL,0,NULL,NULL 21705,138353,194487,NULL,NULL,NULL,0,NULL,NULL 21706,505749,1092062,NULL,NULL,NULL,0,NULL,NULL 21707,297275,519177,NULL,NULL,NULL,0,NULL,NULL 21708,1521765,1550985,NULL,NULL,NULL,0,NULL,NULL 21709,200894,1016821,NULL,NULL,NULL,0,NULL,NULL 21710,604560,1322354,NULL,NULL,NULL,0,NULL,NULL 21711,429682,38867,Revival Famous Question Informed Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 21712,187377,163627,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21713,1645852,585316,Nice Answer Nice Answer Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 21714,244329,327827,Popular Question,NULL,NULL,0,NULL,NULL 21715,19476,1113161,NULL,NULL,NULL,0,NULL,NULL 21716,64047,873058,NULL,NULL,NULL,0,NULL,NULL 21717,303556,1396336,NULL,NULL,NULL,0,NULL,NULL 21718,83397,775779,Revival Nice Answer Enlightened Disciplined Yearling Famous Question Popular Question Popular Question Great Question Favorite Question c# Famous Question Guru Yearling Popular Question Notable Question Popular Question Necromancer Famous Question Announcer Nice Question Nice Answer Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 21719,2151208,775779,Revival Nice Answer Enlightened Disciplined Yearling Famous Question Popular Question Popular Question Great Question Favorite Question c# Famous Question Guru Yearling Popular Question Notable Question Popular Question Necromancer Famous Question Announcer Nice Question Nice Answer Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 21720,171128,322700,NULL,NULL,NULL,0,NULL,NULL 21721,16216,374356,Yearling Nice Answer Yearling Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 21722,3768310,974026,NULL,NULL,NULL,0,NULL,NULL 21723,123699,974026,NULL,NULL,NULL,0,NULL,NULL 21724,1372627,736314,NULL,NULL,NULL,0,NULL,NULL 21725,4228,497462,Caucus,NULL,NULL,0,NULL,NULL 21726,7974,409016,Nice Answer Necromancer Revival Informed Yearling Populist Necromancer Yearling Nice Answer Notable Question Custodian Autobiographer Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 21727,66072,811064,NULL,NULL,NULL,0,NULL,NULL 21728,277650,319731,NULL,NULL,NULL,0,NULL,NULL 21729,547100,1229430,NULL,NULL,NULL,0,NULL,NULL 21730,311191,658317,NULL,NULL,NULL,0,NULL,NULL 21731,256414,1070881,NULL,NULL,NULL,0,NULL,NULL 21732,161905,409013,Commentator,NULL,NULL,0,NULL,NULL 21733,1232558,647019,NULL,NULL,NULL,0,NULL,NULL 21734,1963773,1069739,NULL,NULL,NULL,0,NULL,NULL 21735,1505529,422501,NULL,NULL,NULL,0,NULL,NULL 21736,396463,416127,Popular Question Notable Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 21737,303756,1551091,NULL,NULL,NULL,0,NULL,NULL 21738,430236,1185993,Announcer,NULL,NULL,0,NULL,NULL 21739,56437,1296878,NULL,NULL,NULL,0,NULL,NULL 21740,1530598,279923,NULL,NULL,NULL,0,NULL,NULL 21741,186491,279923,NULL,NULL,NULL,0,NULL,NULL 21742,2168570,279923,NULL,NULL,NULL,0,NULL,NULL 21743,6241554,279923,NULL,NULL,NULL,0,NULL,NULL 21744,6697761,896161,NULL,NULL,NULL,0,NULL,NULL 21745,500736,818634,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21746,116705,564096,Census Yearling,NULL,NULL,0,NULL,NULL 21747,3932204,564096,Census Yearling,NULL,NULL,0,NULL,NULL 21748,1152322,935050,NULL,NULL,NULL,0,NULL,NULL 21749,729940,1401639,Commentator Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21750,19868,978972,Revival Yearling Revival Necromancer Yearling Nice Answer Commentator Enthusiast Critic Informed Yearling Custodian,NULL,pI feel that it been while and boto3 has few different ways of accomplishing this goal This assumes you want to delete the strongtest strong folder and all of its objects Here is one way ppre codes3 boto3 resource s3 objects to delete s3 meta client list objects Bucket MyBucket Prefix myfolder test delete keys Objects delete keys Objects Key for in obj Key for obj in objects to delete get Contents s3 meta client delete objects Bucket MyBucket Delete delete keys code prepThis should make two requests one to fetch the objects in the folder the second to delete all objects in said folder pp href https boto3 readthedocs org en latest reference services s3 html S3 Client delete objects https boto3 readthedocs org en latest reference services s3 html S3 Client delete objects You can use paginator if you have more than 1k objects see my answer below,0,NULL,NULL 21751,1204053,1556935,Notable Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21752,134345,939407,Scholar,NULL,NULL,0,NULL,NULL 21753,3391920,872622,Documentation User,NULL,NULL,0,NULL,NULL 21754,8061100,872622,Documentation User,NULL,NULL,0,NULL,NULL 21755,5013464,872622,Documentation User,NULL,NULL,0,NULL,NULL 21756,42557,872622,Documentation User,NULL,NULL,0,NULL,NULL 21757,138390,1192447,NULL,NULL,NULL,0,NULL,NULL 21758,35752,283256,Caucus Constituent Necromancer Caucus Constituent Yearling Necromancer Notable Question Good Answer Commentator,NULL,NULL,0,NULL,NULL 21759,244170,43833,Yearling Yearling,NULL,NULL,0,NULL,NULL 21760,86161,781720,Nice Answer,NULL,NULL,0,NULL,NULL 21761,97358,539962,NULL,NULL,NULL,0,NULL,NULL 21762,43531,1489532,NULL,NULL,NULL,0,NULL,NULL 21763,185693,849057,NULL,NULL,NULL,0,NULL,NULL 21764,464856,851290,Nice Answer Yearling Good Answer Caucus Constituent Yearling Custodian Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 21765,400609,787954,NULL,NULL,NULL,0,NULL,NULL 21766,892927,376718,Announcer Teacher Popular Question Popular Question Fanatic,NULL,NULL,0,NULL,NULL 21767,184856,3829,Tumbleweed Announcer Yearling Notable Question Yearling Necromancer Good Answer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 21768,249347,73886,NULL,NULL,NULL,0,NULL,NULL 21769,49413,347543,NULL,NULL,NULL,0,NULL,NULL 21770,21712,812808,Notable Question Critic Nice Question,NULL,NULL,0,NULL,NULL 21771,929323,235229,NULL,NULL,NULL,0,NULL,NULL 21772,1924275,687500,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21773,53178,645909,NULL,NULL,NULL,0,NULL,NULL 21774,3886737,645909,NULL,NULL,NULL,0,NULL,NULL 21775,119178,1137535,NULL,NULL,NULL,0,NULL,NULL 21776,532746,937936,Yearling Excavator Critic Caucus Constituent,NULL,,0,, 21777,174457,442630,NULL,NULL,NULL,0,NULL,NULL 21778,32858,23080,Popular Question Good Question Nice Answer Yearling Excavator Popular Question Yearling Civic Duty Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 21779,1079685,433194,NULL,NULL,NULL,0,NULL,NULL 21780,277954,290093,Necromancer,NULL,NULL,0,NULL,NULL 21781,116645,385993,NULL,NULL,NULL,0,NULL,NULL 21782,138997,395220,Nice Question,NULL,NULL,0,NULL,NULL 21783,107166,1390660,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 21784,83235,246102,Yearling Good Answer Critic Necromancer,NULL,NULL,0,NULL,NULL 21785,1315551,246102,Yearling Good Answer Critic Necromancer,NULL,NULL,0,NULL,NULL 21786,2161041,541470,NULL,NULL,NULL,0,NULL,NULL 21787,144295,580730,Notable Question Yearling Necromancer Guru Yearling Guru Nice Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 21788,178978,342130,NULL,NULL,NULL,0,NULL,NULL 21789,316431,854322,NULL,NULL,NULL,0,NULL,NULL 21790,321542,364206,Yearling Famous Question Caucus Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 21791,158915,133517,Nice Question Yearling Notable Question Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21792,645143,1348763,Student,NULL,NULL,0,NULL,NULL 21793,112561,8728,Curious Yearling Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21794,125422,50526,NULL,NULL,NULL,0,NULL,NULL 21795,299309,1115546,NULL,NULL,NULL,0,NULL,NULL 21796,1091533,1150503,Notable Question Popular Question Popular Question Famous Question Notable Question Yearling Nice Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Inquisitive Famous Question Popular Question Caucus Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Nice Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 21797,85838,493344,Popular Question Famous Question Notable Question Notable Question Yearling Popular Question Nice Question Nice Question Popular Question Popular Question Yearling Favorite Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 21798,723935,746529,Revival Necromancer Announcer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 21799,256139,621719,Yearling Caucus Yearling Good Answer Nice Answer Necromancer Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 21800,181448,950670,Nice Answer Enlightened Revival Yearling Nice Answer Yearling Necromancer Good Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21801,35314,926295,Commentator Revival,NULL,NULL,0,NULL,NULL 21802,1647106,1298747,NULL,NULL,NULL,0,NULL,NULL 21803,239480,156425,Yearling Necromancer Nice Answer Enlightened Yearling python Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21804,888447,1098721,NULL,NULL,NULL,0,NULL,NULL 21805,259831,1056263,Guru Enlightened Good Answer Nice Answer Enlightened Great Answer Great Answer Good Question Good Answer Revival Guru Popular Question Notable Question Yearling Good Question Revival Guru Good Answer Announcer Announcer Guru Yearling Necromancer Populist Nice Answer Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 21806,29069,148473,Stellar Question Good Question Popular Question Notable Question Good Question Yearling Good Answer Nice Answer Enlightened Popular Question Good Answer Famous Question Great Answer Notable Question Famous Question Famous Question Popular Question Nice Answer Notable Question Popular Question Yearling Popular Question Popular Question Nice Answer Notable Question Necromancer Great Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 21807,1090495,562544,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 21808,709294,1282393,NULL,NULL,NULL,0,NULL,NULL 21809,911587,33662,c# Famous Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 21810,365457,618372,NULL,NULL,NULL,0,NULL,NULL 21811,883746,1063597,Popular Question Supporter,NULL,NULL,0,NULL,NULL 21812,4538366,1063597,Popular Question Supporter,NULL,NULL,0,NULL,NULL 21813,112893,848199,Revival Necromancer Tumbleweed Necromancer Yearling Caucus Nice Answer Nice Answer Yearling Necromancer Announcer Custodian Popular Question Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 21814,926893,650705,NULL,NULL,NULL,0,NULL,NULL 21815,128676,444646,docker docker-compose Nice Answer Nice Answer Enlightened Yearling Good Answer Revival Enthusiast Nice Answer Enlightened Nice Answer Enlightened Necromancer Guru Good Answer Nice Answer Good Answer docker Nice Answer docker-compose Yearling Documentation User Custodian Good Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Great Answer Guru Nice Answer Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened dockerfile Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21816,10660,868443,NULL,NULL,NULL,0,NULL,NULL 21817,70224,1015871,Notable Question Popular Question Yearling Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 21818,22218,416308,Commentator Nice Answer Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 21819,161950,471221,NULL,NULL,NULL,0,NULL,NULL 21820,104088,1022825,NULL,NULL,NULL,0,NULL,NULL 21821,283560,1245419,NULL,NULL,NULL,0,NULL,NULL 21822,97118,1374401,NULL,NULL,NULL,0,NULL,NULL 21823,3425,539783,Civic Duty Revival Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 21824,45047,116769,NULL,NULL,NULL,0,NULL,NULL 21825,1696008,566586,NULL,NULL,NULL,0,NULL,NULL 21826,408239,254638,Yearling Notable Question Great Question Nice Answer Favorite Question Popular Question Popular Question Popular Question android Inquisitive Yearling Notable Question Notable Question Nice Question Nice Question Nice Answer Enlightened Notable Question Popular Question Guru Necromancer Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21827,1872973,853451,Notable Question,NULL,NULL,0,NULL,NULL 21828,1201307,933059,Good Answer Yearling Popular Question Guru Good Answer Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 21829,386321,529114,NULL,NULL,NULL,0,NULL,NULL 21830,21523,996191,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 21831,287,167206,NULL,NULL,NULL,0,NULL,NULL 21832,187074,1167628,Yearling Explainer Yearling,NULL,NULL,0,NULL,NULL 21833,16749,51025,Yearling Nice Answer Nice Answer Enlightened Notable Question Good Answer Nice Question Popular Question Self-Learner Nice Question Yearling Famous Question Nice Question Favorite Question Famous Question Nice Answer Enlightened Notable Question Good Answer Notable Question Famous Question Yearling Nice Answer Favorite Question Good Answer Notable Question Good Question Nice Question Nice Answer Notable Question Nice Answer Famous Question Good Answer Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 21834,464603,198293,Custodian Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 21835,70713,1058736,NULL,NULL,NULL,0,NULL,NULL 21836,22142,145079,Popular Question Nice Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 21837,1139982,481183,Student,NULL,NULL,0,NULL,NULL 21838,458705,1081996,NULL,NULL,NULL,0,NULL,NULL 21839,1503415,837112,NULL,NULL,NULL,0,NULL,NULL 21840,1470732,1276546,Popular Question Commentator,NULL,NULL,0,NULL,NULL 21841,333819,681815,Yearling Good Answer,NULL,NULL,0,NULL,NULL 21842,28291,1177337,NULL,NULL,NULL,0,NULL,NULL 21843,396798,873530,Custodian cassandra Tenacious Nice Answer Organizer Yearling cassandra Yearling Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21844,86819,399738,Nice Answer Notable Question Revival Guru Popular Question Necromancer Yearling Nice Answer Revival Necromancer Popular Question Popular Question Great Answer Nice Answer Enlightened Notable Question Nice Question Revival Yearling Necromancer Announcer Good Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 21845,432281,364483,Yearling Good Answer Great Answer Yearling Guru Yearling Necromancer,NULL,NULL,0,NULL,NULL 21846,289246,684727,Notable Question,NULL,NULL,0,NULL,NULL 21847,230153,601095,Nice Question Yearling Popular Question Notable Question Nice Question Caucus Yearling Good Answer Notable Question Famous Question Famous Question Popular Question Great Question Yearling python Nice Question Popular Question Great Question Nice Answer Enlightened Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21848,777153,601095,Nice Question Yearling Popular Question Notable Question Nice Question Caucus Yearling Good Answer Notable Question Famous Question Famous Question Popular Question Great Question Yearling python Nice Question Popular Question Great Question Nice Answer Enlightened Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21849,44242,1195060,NULL,NULL,NULL,0,NULL,NULL 21850,48573,443373,Popular Question Announcer,NULL,NULL,0,NULL,NULL 21851,634005,443373,Popular Question Announcer,NULL,NULL,0,NULL,NULL 21852,67933,1056160,Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21853,1133859,1056160,Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21854,153625,12683,NULL,NULL,NULL,0,NULL,NULL 21855,1510851,246969,NULL,NULL,NULL,0,NULL,NULL 21856,556814,515811,Notable Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 21857,162955,1439478,NULL,NULL,NULL,0,NULL,NULL 21858,891661,792657,Tumbleweed,NULL,NULL,0,NULL,NULL 21859,326218,1470505,NULL,NULL,NULL,0,NULL,NULL 21860,187662,647556,NULL,NULL,NULL,0,NULL,NULL 21861,389687,10738,Guru Notable Question Yearling Great Question Favorite Question Good Question Yearling Popular Question Good Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 21862,286274,972627,NULL,NULL,NULL,0,NULL,NULL 21863,1060156,155083,NULL,NULL,NULL,0,NULL,NULL 21864,156973,1422684,NULL,NULL,NULL,0,NULL,NULL 21865,393700,929361,Notable Question,NULL,NULL,0,NULL,NULL 21866,1395689,1142181,NULL,NULL,NULL,0,NULL,NULL 21867,302936,376306,Popular Question,NULL,NULL,0,NULL,NULL 21868,1054291,1334331,Enthusiast,NULL,NULL,0,NULL,NULL 21869,26122,108857,Nice Answer Enlightened Nice Question Nice Answer Famous Question Yearling Necromancer Necromancer Notable Question Good Answer Nice Answer Good Answer Yearling Revival Pundit Caucus Good Answer Good Answer Yearling Nice Answer Announcer Great Answer Notable Question,NULL,pAs the compiler mentions you can extend existing types in another package You can define your own alias or sub package as follows ppre codetype MyRouter mux Routerfunc MyRouter code prepor by embedding the original router ppre codetype MyRouter struct mux Router func MyRouter amp MyRouter router code pre If you do the first part then how do you coerce the mux Router instances to MyRouter if you have library that returns mux Router but you want to use your new methods,0,NULL,NULL 21870,6114,204708,Critic Commentator Yearling Yearling Informed,NULL,NULL,0,NULL,NULL 21871,332536,1368603,Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Notable Question Yearling Notable Question Popular Question Famous Question Caucus Popular Question Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 21872,280259,851638,NULL,NULL,NULL,0,NULL,NULL 21873,270317,811040,Popular Question Nice Answer Nice Question Popular Question Yearling Famous Question Nice Question Documentation User Popular Question Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 21874,103407,431793,Supporter,NULL,NULL,0,NULL,NULL 21875,49233,1419931,Necromancer Yearling Necromancer Yearling Student Necromancer Necromancer,NULL,NULL,0,NULL,NULL 21876,167390,1459954,Informed Supporter Autobiographer Enthusiast Teacher Revival,NULL,NULL,0,NULL,NULL 21877,2787,364062,NULL,NULL,NULL,0,NULL,NULL 21878,1329237,56,Revival Notable Question Necromancer Good Question Nice Answer Necromancer Nice Answer Yearling Nice Answer Nice Question Notable Question Census Inquisitive Favorite Question Popular Question Yearling Famous Question Notable Question Good Answer Cleanup Nice Question Yearling Popular Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 21879,436578,487033,Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Constituent Census Good Answer Good Answer Announcer Caucus Fanatic Constituent Documentation User Yearling Nice Answer Enlightened Nice Answer Census Enlightened Nice Answer Caucus Constituent Guru Popular Question Taxonomist Yearling Good Answer,NULL,NULL,0,NULL,NULL 21880,427642,649500,Notable Question,NULL,NULL,0,NULL,NULL 21881,206844,438134,Autobiographer Critic,NULL,NULL,0,NULL,NULL 21882,385313,438134,Autobiographer Critic,NULL,NULL,0,NULL,NULL 21883,419773,616165,NULL,NULL,NULL,0,NULL,NULL 21884,108180,221456,Popular Question Necromancer Yearling Popular Question Popular Question Notable Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21885,1437444,1394758,NULL,NULL,NULL,0,NULL,NULL 21886,3328145,1394758,NULL,NULL,NULL,0,NULL,NULL 21887,3001245,1365426,NULL,NULL,NULL,0,NULL,NULL 21888,20239,710058,Yearling Popular Question Great Answer Nice Answer Enlightened Yearling Nice Answer Autobiographer Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 21889,434306,64203,Yearling Good Answer Famous Question Guru Popular Question Notable Question Notable Question Revival c# Nice Question Citizen Patrol Necromancer Popular Question Yearling Great Answer Nice Answer Announcer Popular Question Revival Popular Question Nice Answer Nice Answer Enlightened Notable Question Nice Answer Yearling Guru Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 21890,130880,680044,NULL,NULL,NULL,0,NULL,NULL 21891,41517,191140,Popular Question Reviewer Custodian Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 21892,334894,424052,Popular Question Popular Question Nice Answer Enlightened Yearling Civic Duty Excavator Caucus Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 21893,623376,230189,NULL,NULL,NULL,0,NULL,NULL 21894,1647963,194211,Popular Question,NULL,NULL,0,NULL,NULL 21895,65236,952879,Teacher Tumbleweed Supporter Editor,NULL,NULL,0,NULL,NULL 21896,5229207,937444,NULL,NULL,NULL,0,NULL,NULL 21897,579068,925135,Necromancer Yearling Civic Duty Caucus Peer Pressure Nice Answer Necromancer Necromancer Yearling Popular Question Custodian Necromancer Informed Necromancer Nice Answer Necromancer Yearling Excavator Popular Question,NULL,NULL,0,NULL,NULL 21898,418490,628577,Popular Question,NULL,NULL,0,NULL,NULL 21899,111262,705904,Good Question,NULL,NULL,0,NULL,NULL 21900,268051,913835,Famous Question Popular Question Curious,NULL,NULL,0,NULL,NULL 21901,32477,892079,NULL,NULL,NULL,0,NULL,NULL 21902,405902,435719,Yearling Popular Question Notable Question Popular Question Critic,NULL,NULL,0,NULL,NULL 21903,591922,357146,NULL,NULL,NULL,0,NULL,NULL 21904,2228519,536816,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 21905,532924,788744,NULL,NULL,NULL,0,NULL,NULL 21906,79427,853395,NULL,NULL,NULL,0,NULL,NULL 21907,276653,307442,NULL,NULL,NULL,0,NULL,NULL 21908,170863,1088411,NULL,NULL,NULL,0,NULL,NULL 21909,6484153,711536,NULL,NULL,NULL,0,NULL,NULL 21910,36682,711536,NULL,NULL,NULL,0,NULL,NULL 21911,194437,1341422,Informed Editor Scholar,NULL,NULL,0,NULL,NULL 21912,240674,823963,Civic Duty Yearling Caucus Nice Answer Curious Famous Question Informed Nice Answer Yearling Custodian Yearling Famous Question,NULL,NULL,0,NULL,NULL 21913,7293,911823,NULL,NULL,NULL,0,NULL,NULL 21914,197032,648927,Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Nice Question Famous Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Famous Question Nice Question Good Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 21915,191740,1059377,NULL,NULL,NULL,0,NULL,NULL 21916,255977,86112,Popular Question Good Question Notable Question Yearling Notable Question Good Question Famous Question Notable Question Notable Question Good Question Popular Question Nice Question Famous Question Good Question Popular Question Famous Question Yearling Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Great Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 21917,814766,1030599,NULL,NULL,NULL,0,NULL,NULL 21918,475427,867162,Promoter Autobiographer Informed Benefactor Good Answer Self-Learner Custodian Custodian Yearling Census Popular Question Excavator Custodian Notable Question Documentation User Necromancer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21919,352403,115986,Good Answer Yearling Yearling Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 21920,473751,232039,NULL,NULL,NULL,0,NULL,NULL 21921,15034,134030,Excavator,NULL,NULL,0,NULL,NULL 21922,6073853,1020901,NULL,NULL,NULL,0,NULL,NULL 21923,175362,1020901,NULL,NULL,NULL,0,NULL,NULL 21924,95993,422389,Nice Answer Editor Scholar Student Caucus Tumbleweed Custodian Commentator Yearling,NULL,NULL,0,NULL,NULL 21925,1155711,1067370,NULL,NULL,NULL,0,NULL,NULL 21926,251769,1272445,Yearling Editor Caucus,NULL,NULL,0,NULL,NULL 21927,664031,529793,Custodian Informed Notable Question Popular Question Nice Answer Yearling Popular Question Autobiographer Notable Question Popular Question Nice Answer Notable Question Famous Question Popular Question Yearling Notable Question,NULL,Java equivalent of NET RSACryptoServiceProvider SignData java encryption rsa digital signature pI am currently creating sign hash by encrypting data by public key and then signing it using RSACryptoServiceProvider SignData method ppre codeString data some string here Step encrypt data with public key Byte encryptedData publicKeyRsa Encrypt System Text Encoding UTF8 GetBytes data false Step sign the encrypted data with private key Byte sign privateKeyRsa SignData encryptedData new SHA1CryptoServiceProvider Step get hash for sign String signHash System Web HttpServerUtility UrlTokenEncode sign code prepI am unable to successfully implement the same algorithm in Java This is what currently have ppre code Base64 base64Encoder new Base64 initialize cipher to encrypt Cipher cipher Cipher getInstance RSA cipher init Cipher ENCRYPT MODE pubKey Step encrypt data with public key byte encBytes cipher doFinal VALUE getBytes UTF byte encryptedData base64Encoder encode encBytes String encryptedDataString bytes2String encryptedData System out println data encrypted encryptedData Step sign the encrypted data with private key Signature sig Signature getInstance SHA1WithRSA sig initSign privKey sig update encryptedData byte signData sig sign Step get hash for sign byte signDataEncrypted base64Encoder encode signData String signDataString bytes2String signDataEncrypted System out println hash signDataString code prepmy implementation of bytes2String is from here pp href https stackoverflow com questions 521101 using sha1 and rsa with java security signature vs messagedigest and cipher Using SHA1 and RSA with java security Signature vs MessageDigest and Cipher ppre codeprivate static String bytes2String byte bytes StringBuilder string new StringBuilder for byte bytes String hexString Integer toHexString 0x00FF amp string append hexString length hexString hexString return string toString code prepThe code works perfectly but the java code does not provide the right values as per the server Does the Java code look correct Is there something am doing wrong as compared to the code ppThanks the hash and encrypted data is different everytime for the same values in NET and Java implementations so there is no way to confirm that Do you suspect anything done wrong on the Java side as compared to the NET version of the code,1,Java equivalent of NET RSACryptoServiceProvider SignData java encryption rsa digital signature pI am currently creating sign hash by encrypting data by public key and then signing it using RSACryptoServiceProvider SignData method ppre codeString data some string here Step encrypt data with public key Byte encryptedData publicKeyRsa Encrypt System Text Encoding UTF8 GetBytes data false Step sign the encrypted data with private key Byte sign privateKeyRsa SignData encryptedData new SHA1CryptoServiceProvider Step get hash for sign String signHash System Web HttpServerUtility UrlTokenEncode sign code prepI am unable to successfully implement the same algorithm in Java This is what currently have ppre code Base64 base64Encoder new Base64 initialize cipher to encrypt Cipher cipher Cipher getInstance RSA cipher init Cipher ENCRYPT MODE pubKey Step encrypt data with public key byte encBytes cipher doFinal VALUE getBytes UTF byte encryptedData base64Encoder encode encBytes String encryptedDataString bytes2String encryptedData System out println data encrypted encryptedData Step sign the encrypted data with private key Signature sig Signature getInstance SHA1WithRSA sig initSign privKey sig update encryptedData byte signData sig sign Step get hash for sign byte signDataEncrypted base64Encoder encode signData String signDataString bytes2String signDataEncrypted System out println hash signDataString code prepmy implementation of bytes2String is from here pp href https stackoverflow com questions 521101 using sha1 and rsa with java security signature vs messagedigest and cipher Using SHA1 and RSA with java security Signature vs MessageDigest and Cipher ppre codeprivate static String bytes2String byte bytes StringBuilder string new StringBuilder for byte bytes String hexString Integer toHexString 0x00FF amp string append hexString length hexString hexString return string toString code prepThe code works perfectly but the java code does not provide the right values as per the server Does the Java code look correct Is there something am doing wrong as compared to the code ppThanks,NULL 21928,571379,1311744,NULL,NULL,NULL,0,NULL,NULL 21929,184178,54247,Yearling Great Answer Tumbleweed Nice Answer Necromancer Yearling Necromancer Famous Question Great Answer Nice Answer Yearling Pundit Necromancer,NULL,NULL,0,NULL,NULL 21930,974712,900356,NULL,NULL,NULL,0,NULL,NULL 21931,338278,702072,Revival Yearling Popular Question Necromancer Popular Question Popular Question Famous Question Yearling Self-Learner Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 21932,318440,380096,Yearling Great Answer Custodian Nice Question Census Notable Question Yearling Caucus Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21933,124343,965098,NULL,NULL,NULL,0,NULL,NULL 21934,409240,1442218,Yearling Good Answer,NULL,NULL,0,NULL,NULL 21935,132981,108441,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 21936,87177,776440,Notable Question Caucus,NULL,NULL,0,NULL,NULL 21937,196912,139591,Revival Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 21938,597501,1352359,NULL,NULL,NULL,0,NULL,NULL 21939,93480,1352359,NULL,NULL,NULL,0,NULL,NULL 21940,402983,1258150,NULL,NULL,NULL,0,NULL,NULL 21941,351221,674980,NULL,NULL,NULL,0,NULL,NULL 21942,210526,1106843,NULL,NULL,NULL,0,NULL,NULL 21943,25362,133235,Yearling Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 21944,7495242,133235,Yearling Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 21945,9779,3191,Nice Answer Popular Question Nice Answer Enlightened Notable Question Guru Good Answer Good Answer Great Answer Guru Guru Good Answer Good Question Guru Nice Question Notable Question Nice Question Great Answer Announcer Favorite Question Announcer Famous Question Good Answer Documentation Pioneer Sportsmanship Nice Answer Nice Question Guru Guru Yearling Nice Answer Enlightened Necromancer Announcer Good Answer Guru Great Answer Guru Popular Question Guru Nice Answer Good Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Notable Question Nice Question Good Question Good Answer Guru Revival Notable Question Yearling Announcer Nice Answer Good Answer Documentation User Necromancer Good Answer Announcer Revival Necromancer Nice Answer Good Answer Guru Nice Answer Famous Question Great Answer Good Answer Stellar Question Nice Answer Nice Answer Enlightened Nice Answer Stellar Question Popular Question Great Answer Guru Popular Question Great Answer Yearling Announcer Announcer Good Question,NULL,h12016 Update h1h2 codequeryAll code was removed from the DOM spec h2pCurrently the most important difference between codequeryAll code and codequerySelectorAll code is that codequeryAll code as well as codequery code was strongremoved from the DOM specification strong ppThe current version of the DOM specification is available at pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulpNote href https www w3 org TR dom rel noreferrer https www w3 org TR dom is an outdated fork of the DOM Standard see href https wiki whatwg org wiki Fork tracking rel noreferrer Fork tracking on the href https wiki whatwg org wiki Main Page rel noreferrer WHATWG Wiki and href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 38245620 noredirect comment63923286 38245620 the comment by Domenic for more info ph2Last mention h2pThe last version that included codequery code and codequeryAll code was published on 15 March 2016 pulli href http web archive org web 20160315085447 https dom spec whatwg org rel noreferrer http web archive org web 20160315085447 https dom spec whatwg org aulliSee sectionsa href http web archive org web 20160315085447 https dom spec whatwg org interface parentnode rel noreferrer Interface ParentNode anda href http web archive org web 20160315085447 https dom spec whatwg org element collections rel noreferrer Collections Elements li ul li ulh2Removal h2pThe next version doesn mention codequery code or codequeryAll code anywhere pulli href http web archive org web 20160329233515 https dom spec whatwg org rel noreferrer http web archive org web 20160329233515 https dom spec whatwg org aulliSee sectiona href http web archive org web 20160329233515 https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode li ul li ulh2Current specification h2pAll occurances of codequery code or codequeryAll code in the DOM standard href https github com whatwg dom commit 10b6cf1ba02806220d5461a3bdb7939728b73635 rel noreferrer were commented out by Anne van Kesteren on March 29 2016 ppThe current DOM specification as of July 2016 doesn mention codequery code or codequeryAll code at all pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulp codequerySelector code and codequerySelectorAll code are in sectiona href https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode ppIt seems that currently the only reliable API is codequerySelector code and codequerySelectorAll code see href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more details and according to href https github com whatwg dom issues 39 issuecomment 231056316 rel noreferrer this discussion on GitHub codequery code and codequeryAll code will not be available until the JavaScript subclassing of built ins is implemented in the browsers and even then it will be unlikely to return live Elements array as described in href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 23270016 23270016 the answer by BoltClock ph2Browser support h2pAs of June 2016 there is no mention of codequery code and codequeryAll code on MDN pulli href https developer mozilla org en US search queryall rel noreferrer https developer mozilla org en US search queryall li ulpOn the other hand codequerySelector code and codequerySelectorAll code are well documented and widely supported pulli href https developer mozilla org en US docs Web API Document querySelector rel noreferrer https developer mozilla org en US docs Web API Document querySelector aa href https developer mozilla org en US docs Web API Document querySelectorAll rel noreferrer https developer mozilla org en US docs Web API Document querySelectorAll li ulpBrowser support of codequerySelector code codequerySelectorAll code according to href http caniuse com queryselector rel noreferrer Can use as of June 2016 pp href https stack imgur com cIQXF png rel noreferrer img src https stack imgur com cIQXF png alt caniuse com queryselector See href http caniuse com queryselector rel noreferrer http caniuse com queryselector for up to date info ppThere is no info available on the support of codequery code and codequeryAll code ph2More info h2pSee also href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more info on the usage and browser support of codequerySelector code and codequerySelectorAll code Your links are all to an outdated fork of the up to date DOM Standard at http dom spec whatwg org For more information see https wiki whatwg org wiki Fork tracking We have repeatedly asked the W3C to stop copying and rebranding our specifications but they have not h12016 Update h1h2 codequeryAll code was removed from the DOM spec h2pCurrently the most important difference between codequeryAll code and codequerySelectorAll code is that codequeryAll code as well as codequery code was strongremoved from the DOM specification strong ppThe current version of the DOM specification is available at pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulpNote href https www w3 org TR dom rel noreferrer https www w3 org TR dom is an outdated fork of the DOM Standard see href https wiki whatwg org wiki Fork tracking rel noreferrer Fork tracking on the href https wiki whatwg org wiki Main Page rel noreferrer WHATWG Wiki and href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 38245620 noredirect comment63923286 38245620 the comment by Domenic for more info ph2Last mention h2pThe last version that included codequery code and codequeryAll code was published on 15 March 2016 pulli href http web archive org web 20160315085447 https dom spec whatwg org rel noreferrer http web archive org web 20160315085447 https dom spec whatwg org aulliSee sectionsa href http web archive org web 20160315085447 https dom spec whatwg org interface parentnode rel noreferrer Interface ParentNode anda href http web archive org web 20160315085447 https dom spec whatwg org element collections rel noreferrer Collections Elements li ul li ulh2Removal h2pThe next version doesn mention codequery code or codequeryAll code anywhere pulli href http web archive org web 20160329233515 https dom spec whatwg org rel noreferrer http web archive org web 20160329233515 https dom spec whatwg org aulliSee sectiona href http web archive org web 20160329233515 https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode li ul li ulh2Current specification h2pAll occurances of codequery code or codequeryAll code in the DOM standard href https github com whatwg dom commit 10b6cf1ba02806220d5461a3bdb7939728b73635 rel noreferrer were commented out by Anne van Kesteren on March 29 2016 ppThe current DOM specification as of July 2016 doesn mention codequery code or codequeryAll code at all pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulp codequerySelector code and codequerySelectorAll code are in sectiona href https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode ppIt seems that currently the only reliable API is codequerySelector code and codequerySelectorAll code see href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more details and according to href https github com whatwg dom issues 39 issuecomment 231056316 rel noreferrer this discussion on GitHub codequery code and codequeryAll code will not be available until the JavaScript subclassing of built ins is implemented in the browsers and even then it will be unlikely to return live Elements array as described in href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 23270016 23270016 the answer by BoltClock ph2Browser support h2pAs of June 2016 there is no mention of codequery code and codequeryAll code on MDN pulli href https developer mozilla org en US search queryall rel noreferrer https developer mozilla org en US search queryall li ulpOn the other hand codequerySelector code and codequerySelectorAll code are well documented and widely supported pulli href https developer mozilla org en US docs Web API Document querySelector rel noreferrer https developer mozilla org en US docs Web API Document querySelector aa href https developer mozilla org en US docs Web API Document querySelectorAll rel noreferrer https developer mozilla org en US docs Web API Document querySelectorAll li ulpBrowser support of codequerySelector code codequerySelectorAll code according to href http caniuse com queryselector rel noreferrer Can use as of June 2016 pp href https stack imgur com cIQXF png rel noreferrer img src https stack imgur com cIQXF png alt caniuse com queryselector See href http caniuse com queryselector rel noreferrer http caniuse com queryselector for up to date info ppThere is no info available on the support of codequery code and codequeryAll code ph2More info h2pSee also href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more info on the usage and browser support of codequerySelector code and codequerySelectorAll code Awesome thank you for the updates,0,NULL,NULL 21946,426341,538167,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 21947,8932640,538167,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 21948,1511753,455096,Notable Question Popular Question Famous Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 21949,757154,1283817,NULL,NULL,NULL,0,NULL,NULL 21950,54776,187950,Announcer Necromancer Popular Question Popular Question Yearling Nice Answer Notable Question Self-Learner Popular Question Popular Question Popular Question Yearling Popular Question Announcer Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 21951,7846,475417,NULL,NULL,NULL,0,NULL,NULL 21952,275905,401171,Popular Question Notable Question Organizer Yearling Caucus Constituent Notable Question Nice Answer Yearling Caucus Constituent Notable Question Notable Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 21953,213408,1294243,Commentator Notable Question Critic Teacher,NULL,NULL,0,NULL,NULL 21954,672448,440684,NULL,NULL,NULL,0,NULL,NULL 21955,92522,721531,NULL,NULL,NULL,0,NULL,NULL 21956,61585,145567,Popular Question Nice Question Famous Question Popular Question Popular Question Famous Question Nice Question Nice Answer Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Great Answer Guru Famous Question Good Question Notable Question Popular Question Nice Question Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Notable Question Popular Question Popular Question Nice Question Yearling Notable Question Famous Question Taxonomist Nice Question Famous Question Good Question Notable Question Census Popular Question Notable Question Notable Question Caucus Popular Question Famous Question Notable Question Good Question Famous Question Yearling Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 21957,2597,878,Revival Yearling Good Answer Nice Question Good Question Nice Answer Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 21958,360771,995737,Good Answer Nice Answer Editor Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 21959,165163,452792,tsql Yearling Notable Question Famous Question sql-server Good Answer Yearling Popular Question Nice Question Necromancer Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 21960,180527,552329,Notable Question,NULL,NULL,0,NULL,NULL 21961,814635,661181,NULL,NULL,NULL,0,NULL,NULL 21962,1831,122875,Nice Answer,NULL,NULL,0,NULL,NULL 21963,49579,399308,Nice Answer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 21964,410034,519240,Famous Question Commentator,NULL,NULL,0,NULL,NULL 21965,210490,63349,Citizen Patrol Custodian Necromancer Yearling Nice Answer Caucus Necromancer,NULL,pAn email address must not exceed strong254 strong characters ppThis was accepted by the IETF following href http www rfc editor org errata search php rfc 3696 amp eid 1690 rel noreferrer submitted erratum full diagnosis of any given address is available href http isemail info rel noreferrer online The original version of RFC 3696 described 320 as the maximum length but John Klensin subsequently accepted an incorrect value since Path is defined as ppre codePath lt Mailbox gt code prepSo the Mailbox element the email address has angle brackets around it to form Path which maximum length of 254 characters to restrict the Path length to 256 characters or fewer ppThe maximum length specified in href http tools ietf org html rfc5321 section rel noreferrer RFC 5321 states pblockquote pThe maximum total length of reverse path or forward path is 256 characters blockquotepRFC 3696 was corrected href http www rfc editor org errata search php rfc 3696 rel noreferrer here ppI ve now collated test cases from Cal Henderson Dave Child Phil Haack Doug Lovell and RFC 3696 158 test addresses in all ppI ran all these tests against all the validators could find The comparison is here href http www dominicsayers com isemail rel noreferrer http www dominicsayers com isemail ppI ll try to keep this page up to date as people enhance their validators Thanks to Cal Dave and Phil for their help and co operation in compiling these tests and constructive criticism of my own validator ppPeople should be aware of the href http www rfc editor org errata search php rfc 3696 rel noreferrer errata against RFC 3696 in particular Three of the canonical examples are in fact invalid addresses yes it does pAn email address must not exceed strong254 strong characters ppThis was accepted by the IETF following href http www rfc editor org errata search php rfc 3696 amp eid 1690 rel noreferrer submitted erratum full diagnosis of any given address is available href http isemail info rel noreferrer online The original version of RFC 3696 described 320 as the maximum length but John Klensin subsequently accepted an incorrect value since Path is defined as ppre codePath lt Mailbox gt code prepSo the Mailbox element the email address has angle brackets around it to form Path which maximum length of 254 characters to restrict the Path length to 256 characters or fewer ppThe maximum length specified in href http tools ietf org html rfc5321 section rel noreferrer RFC 5321 states pblockquote pThe maximum total length of reverse path or forward path is 256 characters blockquotepRFC 3696 was corrected href http www rfc editor org errata search php rfc 3696 rel noreferrer here ppI ve now collated test cases from Cal Henderson Dave Child Phil Haack Doug Lovell and RFC 3696 158 test addresses in all ppI ran all these tests against all the validators could find The comparison is here href http www dominicsayers com isemail rel noreferrer http www dominicsayers com isemail ppI ll try to keep this page up to date as people enhance their validators Thanks to Cal Dave and Phil for their help and co operation in compiling these tests and constructive criticism of my own validator ppPeople should be aware of the href http www rfc editor org errata search php rfc 3696 rel noreferrer errata against RFC 3696 in particular Three of the canonical examples are in fact invalid addresses because domains are used for other purposes besides emails and are defined by different RFCs sure Jon Postel wished he could make it more consistent but at the time most domains were very short and it would have been overkill to break the envelope addresses in to two or more packets simply to take account of the potential for very long domain names,0,NULL,NULL 21966,363166,352054,Good Question Yearling Revival Notable Question Nice Answer Notable Question Famous Question Famous Question Nice Question Nice Answer Enlightened Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 21967,142664,174572,NULL,NULL,NULL,0,NULL,NULL 21968,64189,570752,Notable Question Notable Question Popular Question Caucus Constituent Caucus Famous Question Yearling Famous Question Census Caucus Teacher Notable Question,NULL,NULL,0,NULL,NULL 21969,1285294,1239685,Yearling Good Answer Student Yearling Census Guru,NULL,NULL,0,NULL,NULL 21970,473778,1032358,NULL,NULL,NULL,0,NULL,NULL 21971,190154,380600,Nice Answer Yearling Notable Question Popular Question Nice Answer Famous Question Nice Question Caucus Constituent Custodian Yearling Good Question,NULL,NULL,0,NULL,NULL 21972,635840,677089,NULL,NULL,NULL,0,NULL,NULL 21973,52889,984787,NULL,NULL,NULL,0,NULL,NULL 21974,1091740,585697,NULL,NULL,NULL,0,NULL,NULL 21975,123430,389447,Famous Question Notable Question Quorum Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 21976,825112,169773,Critic,NULL,NULL,0,NULL,NULL 21977,629239,727454,Teacher Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 21978,201011,243758,Cleanup Famous Question,NULL,NULL,0,NULL,NULL 21979,247956,225833,Informed Citizen Patrol Notable Question Popular Question Nice Answer Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21980,18246,320145,Notable Question,NULL,NULL,0,NULL,NULL 21981,1390073,1195583,NULL,NULL,NULL,0,NULL,NULL 21982,110225,1348352,Self-Learner,NULL,NULL,0,NULL,NULL 21983,169615,894750,Notable Question Notable Question Popular Question Self-Learner Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 21984,461091,411846,Good Answer Explainer Popular Question Announcer Announcer Nice Answer apache-poi Announcer Popular Question Revival Yearling Revival Notable Question Great Answer Popular Question Inquisitive Caucus Notable Question Constituent Necromancer Mortarboard Revival Revival Revival Revival Revival Popular Question Popular Question Notable Question Announcer Nice Question Revival Caucus Research Assistant Constituent Yearling Popular Question Popular Question Announcer Revival Popular Question Nice Question Revival Notable Question Necromancer Announcer Caucus Constituent excel Necromancer Revival Announcer Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 21985,888874,703609,NULL,NULL,NULL,0,NULL,NULL 21986,1161641,760866,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 21987,757308,1227355,NULL,NULL,NULL,0,NULL,NULL 21988,118272,61855,Nice Answer Nice Question Notable Question Yearling Popular Question Notable Question Notable Question Nice Question Good Question Guru Nice Question Great Question Popular Question Famous Question Stellar Question Yearling Nice Answer Enlightened Popular Question Famous Question Notable Question Good Answer Popular Question Popular Question Nice Question Good Answer Popular Question Popular Question Yearling Nice Question Announcer Nice Question Famous Question Famous Question Good Question Guru Famous Question Notable Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 21989,238488,267260,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 21990,46653,455659,NULL,NULL,NULL,0,NULL,NULL 21991,227685,799155,Excavator Nice Question Nice Answer Enlightened Custodian Famous Question Proofreader Nice Answer Enlightened Great Question Yearling Famous Question Good Answer Good Question Nice Answer Enlightened Good Answer Famous Question Yearling Nice Answer Enlightened Guru Yearling Cleanup Good Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 21992,85118,17403,Popular Question,NULL,NULL,0,NULL,NULL 21993,29068,581409,NULL,NULL,NULL,0,NULL,NULL 21994,6847,492186,Autobiographer Commentator Yearling Critic Yearling Announcer Census Announcer Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 21995,306182,7029,Popular Question Notable Question Yearling Caucus Famous Question Good Question Informed,NULL,NULL,0,NULL,NULL 21996,437385,559851,NULL,NULL,NULL,0,NULL,NULL 21997,621453,191142,Famous Question Popular Question Yearling Notable Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 21998,475281,156448,Yearling Good Answer Popular Question Yearling Nice Question Caucus Good Question Yearling,NULL,NULL,0,NULL,NULL 21999,100155,485871,NULL,NULL,NULL,0,NULL,NULL 22000,174172,67097,Yearling Good Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 22001,324640,451455,Curious Popular Question Notable Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 22002,1566190,1369376,NULL,NULL,NULL,0,NULL,NULL 22003,1378154,1369376,NULL,NULL,NULL,0,NULL,NULL 22004,138321,818846,Teacher Revival Yearling,NULL,NULL,0,NULL,NULL 22005,32088,214950,Custodian Excavator Famous Question Yearling Custodian Great Question Popular Question Notable Question Nice Answer Tag Editor Revival Nice Question Notable Question Announcer Popular Question Yearling Famous Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 22006,76587,1079444,NULL,NULL,NULL,0,NULL,NULL 22007,258809,286738,NULL,NULL,NULL,0,NULL,NULL 22008,267485,1462227,Notable Question,NULL,NULL,0,NULL,NULL 22009,371430,56076,Yearling Electorate Popular Question Popular Question Good Answer Nice Question Custodian Nice Question Notable Question Guru Popular Question Good Answer Nice Answer Popular Question Good Answer Popular Question Popular Question Strunk & White Popular Question Guru Popular Question Yearling Popular Question Popular Question Popular Question Custodian Popular Question Popular Question Famous Question Nice Answer Good Answer git Popular Question Yearling Popular Question Popular Question Notable Question Great Answer Famous Question Notable Question Nice Answer Enlightened Notable Question Famous Question Good Answer,NULL,How to register Receiver with Kryo scala apache spark pIn the process of porting Spark app to Spark there this complaint in the log ppre codecom esotericsoftware kryo KryoException java lang IllegalArgumentException Class is not registered org apache spark streaming receiver Receiver Note To register this class use kryo register org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver class code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf registerKryoClasses Array classOf org apache spark streaming receiver Receiver code prepHow can get this class registered ve been able to register other classes with Kryo but not this one ppEdit ppIn all these cases this setup is done ppre codesparkConf set spark kryo registrationRequired true sparkConf set spark serializer classOf KryoSerializer getName GraphXUtils registerKryoClasses sparkConf code pre ve tried it set to true and to false Set to false get an error about object 13994 but with no object name How to register Receiver with Kryo scala apache spark pIn the process of porting Spark app to Spark there this complaint in the log ppre codecom esotericsoftware kryo KryoException java lang IllegalArgumentException Class is not registered org apache spark streaming receiver Receiver Note To register this class use kryo register org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver class code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf registerKryoClasses Array classOf org apache spark streaming receiver Receiver code prepHow can get this class registered ve been able to register other classes with Kryo but not this one ppEdit ppIn all these cases this setup is done ppre codesparkConf set spark kryo registrationRequired true sparkConf set spark serializer classOf KryoSerializer getName GraphXUtils registerKryoClasses sparkConf code pre http stackoverflow com questions 42699278 how can the kryo complaint under spark about object 13994 be fixed How to register Receiver with Kryo scala apache spark pIn the process of porting Spark app to Spark there this complaint in the log ppre codecom esotericsoftware kryo KryoException java lang IllegalArgumentException Class is not registered org apache spark streaming receiver Receiver Note To register this class use kryo register org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver class code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf registerKryoClasses Array classOf org apache spark streaming receiver Receiver code prepHow can get this class registered ve been able to register other classes with Kryo but not this one ppEdit ppIn all these cases this setup is done ppre codesparkConf set spark kryo registrationRequired true sparkConf set spark serializer classOf KryoSerializer getName GraphXUtils registerKryoClasses sparkConf code pre This is really in the hopes of fixing http stackoverflow com questions 42684098 how to fix spark losing some messages sent to dstream,1,How to register Receiver with Kryo scala apache spark pIn the process of porting Spark app to Spark there this complaint in the log ppre codecom esotericsoftware kryo KryoException java lang IllegalArgumentException Class is not registered org apache spark streaming receiver Receiver Note To register this class use kryo register org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver class code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver class code prepThis fails with codeCaused by java lang ClassNotFoundException org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf set spark kryo classesToRegister org apache spark streaming receiver Receiver code prepThis fails with codeClass is not registered org apache spark streaming receiver Receiver code ppre codesparkConf registerKryoClasses Array classOf org apache spark streaming receiver Receiver code prepHow can get this class registered ve been able to register other classes with Kryo but not this one ppEdit ppIn all these cases this setup is done ppre codesparkConf set spark kryo registrationRequired true sparkConf set spark serializer classOf KryoSerializer getName GraphXUtils registerKryoClasses sparkConf code pre,NULL 22010,532404,1122362,Scholar Popular Question,NULL,NULL,0,NULL,NULL 22011,490016,13097,Good Answer Good Question Good Answer Good Answer Yearling Good Answer Great Answer Populist c Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 22012,72919,13097,Good Answer Good Question Good Answer Good Answer Yearling Good Answer Great Answer Populist c Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 22013,409690,157324,Popular Question Taxonomist Yearling Notable Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 22014,86595,369605,NULL,NULL,NULL,0,NULL,NULL 22015,36384,1115865,NULL,NULL,NULL,0,NULL,NULL 22016,460626,757245,NULL,NULL,NULL,0,NULL,NULL 22017,1538865,1071977,NULL,NULL,NULL,0,NULL,NULL 22018,436979,85287,Nice Answer Yearling Famous Question Popular Question Yearling Popular Question Guru Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 22019,598858,805763,Notable Question,NULL,NULL,0,NULL,NULL 22020,130569,824903,Nice Answer Enlightened Popular Question Revival Popular Question Yearling Nice Answer android Nice Question Good Question Nice Answer Necromancer Notable Question Necromancer Yearling Popular Question Caucus Notable Question Nice Answer Necromancer Nice Answer Famous Question Good Answer Nice Question Necromancer Nice Question Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 22021,443547,382500,NULL,NULL,NULL,0,NULL,NULL 22022,169120,417264,NULL,NULL,NULL,0,NULL,NULL 22023,651730,585987,NULL,NULL,NULL,0,NULL,NULL 22024,2260485,585987,NULL,NULL,NULL,0,NULL,NULL 22025,336002,23120,Favorite Question Favorite Question Yearling Good Question Great Question Good Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 22026,36796,1178681,NULL,NULL,NULL,0,NULL,NULL 22027,477102,383946,NULL,NULL,NULL,0,NULL,NULL 22028,224825,105604,Yearling Popular Question Caucus Popular Question Yearling Nice Question Nice Answer Famous Question Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 22029,18017,508458,Curious Announcer Nice Question,NULL,NULL,0,NULL,NULL 22030,900837,832299,Popular Question,NULL,NULL,0,NULL,NULL 22031,410535,1373990,NULL,NULL,NULL,0,NULL,NULL 22032,267021,677467,NULL,NULL,NULL,0,NULL,NULL 22033,1413476,211350,Guru Popular Question Yearling Nice Answer Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 22034,204656,211350,Guru Popular Question Yearling Nice Answer Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 22035,692325,519508,NULL,NULL,NULL,0,NULL,NULL 22036,29140,676096,NULL,NULL,NULL,0,NULL,NULL 22037,29153,676096,NULL,NULL,NULL,0,NULL,NULL 22038,31363,823467,Yearling,NULL,NULL,0,NULL,NULL 22039,446427,563061,NULL,NULL,NULL,0,NULL,NULL 22040,25842,397019,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 22041,179898,70011,Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 22042,956952,695166,NULL,NULL,NULL,0,NULL,NULL 22043,199447,279713,NULL,NULL,NULL,0,NULL,NULL 22044,762396,914901,Necromancer Yearling Good Answer Nice Answer Notable Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22045,561465,303861,Notable Question Custodian Informed Autobiographer Caucus Constituent Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 22046,1355236,615074,NULL,NULL,NULL,0,NULL,NULL 22047,584945,909266,Revival,NULL,NULL,0,NULL,NULL 22048,282893,645939,Famous Question,NULL,NULL,0,NULL,NULL 22049,416257,984221,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 22050,222784,345350,Popular Question Popular Question Notable Question Popular Question Yearling Nice Answer Good Question Custodian Revival Nice Question Popular Question Revival Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22051,753140,1351672,NULL,NULL,NULL,0,NULL,NULL 22052,1974005,1090410,NULL,NULL,NULL,0,NULL,NULL 22053,61795,682712,Necromancer,NULL,NULL,0,NULL,NULL 22054,318169,964491,Tumbleweed Supporter Curious Teacher Self-Learner Yearling Popular Question Popular Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 22055,1419048,1413620,NULL,NULL,NULL,0,NULL,NULL 22056,1327346,1318515,NULL,NULL,NULL,0,NULL,NULL 22057,150708,657384,Editor,NULL,NULL,0,NULL,NULL 22058,3011491,657384,Editor,NULL,NULL,0,NULL,NULL 22059,111014,1081077,Good Answer Yearling Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 22060,2442,1084701,NULL,NULL,NULL,0,NULL,NULL 22061,453815,699763,Popular Question Documentation User,NULL,NULL,0,NULL,NULL 22062,200981,485979,NULL,NULL,NULL,0,NULL,NULL 22063,378282,1163501,Yearling Popular Question Guru Nice Answer Enlightened Custodian Notable Question Tumbleweed Great Answer Yearling Nice Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 22064,128088,689818,NULL,NULL,NULL,0,NULL,NULL 22065,589708,689818,NULL,NULL,NULL,0,NULL,NULL 22066,324629,1235548,Notable Question,NULL,NULL,0,NULL,NULL 22067,1516314,614397,NULL,NULL,NULL,0,NULL,NULL 22068,202363,554097,Popular Question,NULL,NULL,0,NULL,NULL 22069,524878,92568,Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Famous Question Nice Question Popular Question Yearling Nice Question Notable Question Popular Question Favorite Question Notable Question Notable Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Taxonomist Famous Question Nice Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Custodian Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Famous Question Popular Question Good Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Good Question Famous Question Notable Question Nice Question Nice Question Popular Question Popular Question Notable Question Famous Question Stellar Question Popular Question Yearling Popular Question Great Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22070,143201,1376501,NULL,NULL,NULL,0,NULL,NULL 22071,1875259,1376501,NULL,NULL,NULL,0,NULL,NULL 22072,181119,1317745,Yearling Caucus Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 22073,899978,1373427,NULL,NULL,NULL,0,NULL,NULL 22074,350337,1299725,NULL,NULL,NULL,0,NULL,NULL 22075,1097023,1076969,Notable Question,NULL,NULL,0,NULL,NULL 22076,72946,1554130,NULL,NULL,NULL,0,NULL,NULL 22077,108513,676463,NULL,NULL,NULL,0,NULL,NULL 22078,168674,1323049,NULL,NULL,NULL,0,NULL,NULL 22079,571983,1272762,Notable Question,NULL,NULL,0,NULL,NULL 22080,126979,410112,Yearling Popular Question Critic Revival Enthusiast Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22081,603958,265725,Necromancer,NULL,NULL,0,NULL,NULL 22082,595184,717932,Nice Answer Yearling Civic Duty Popular Question Notable Question Notable Question Nice Question Nice Answer Enlightened Popular Question Famous Question Notable Question Yearling Popular Question Announcer Good Answer Popular Question Custodian Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22083,46549,223697,Nice Answer,NULL,NULL,0,NULL,NULL 22084,312868,1123958,NULL,NULL,NULL,0,NULL,NULL 22085,3685078,5210,Nice Question Notable Question Popular Question Announcer Nice Question Announcer Great Answer Revival Yearling Popular Question Famous Question Notable Question Necromancer Revival Revival Yearling Documentation User Good Question Popular Question Announcer Announcer Populist Benefactor Yearling Notable Question,NULL,NULL,0,NULL,NULL 22086,126508,5210,Nice Question Notable Question Popular Question Announcer Nice Question Announcer Great Answer Revival Yearling Popular Question Famous Question Notable Question Necromancer Revival Revival Yearling Documentation User Good Question Popular Question Announcer Announcer Populist Benefactor Yearling Notable Question,NULL,NULL,0,NULL,NULL 22087,256670,1094226,Caucus Curious Yearling,NULL,NULL,0,NULL,NULL 22088,50228,857491,Informed Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 22089,413292,32728,Popular Question Famous Question Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 22090,101816,337555,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 22091,411220,586940,NULL,NULL,NULL,0,NULL,NULL 22092,104510,207405,NULL,NULL,NULL,0,NULL,NULL 22093,218962,923451,NULL,NULL,NULL,0,NULL,NULL 22094,158327,686073,NULL,NULL,NULL,0,NULL,NULL 22095,7818,141177,Guru Famous Question Good Question Yearling Famous Question Notable Question Yearling Caucus Announcer Announcer Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 22096,421144,1522128,Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Custodian Nice Answer Notable Question Guru Custodian Yearling Civic Duty Nice Answer,NULL,NULL,0,NULL,NULL 22097,194952,823648,Yearling Yearling Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 22098,102309,287082,Yearling Famous Question Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22099,52182,274826,Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22100,1327,406313,Teacher,NULL,NULL,0,NULL,NULL 22101,2977246,406313,Teacher,NULL,NULL,0,NULL,NULL 22102,237566,451685,NULL,NULL,NULL,0,NULL,NULL 22103,530861,351847,Popular Question Notable Question Curious Commentator Yearling,NULL,NULL,0,NULL,NULL 22104,171568,147534,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22105,123397,372700,NULL,NULL,NULL,0,NULL,NULL 22106,1611875,373300,NULL,NULL,NULL,0,NULL,NULL 22107,522331,373300,NULL,NULL,NULL,0,NULL,NULL 22108,6218241,373300,NULL,NULL,NULL,0,NULL,NULL 22109,2595117,1544910,NULL,NULL,NULL,0,NULL,NULL 22110,6096497,1544910,NULL,NULL,NULL,0,NULL,NULL 22111,6096499,1544910,NULL,NULL,NULL,0,NULL,NULL 22112,163161,37422,Popular Question Stellar Question Notable Question Nice Question Yearling Self-Learner Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 22113,85419,361413,Nice Answer Yearling Nice Answer Good Answer Good Answer Guru Yearling Necromancer Necromancer Necromancer Necromancer Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 22114,37268,760176,NULL,NULL,NULL,0,NULL,NULL 22115,352859,1562053,NULL,NULL,NULL,0,NULL,NULL 22116,498082,455347,Notable Question,NULL,NULL,0,NULL,NULL 22117,375609,1004232,Yearling Notable Question,NULL,NULL,0,NULL,NULL 22118,244194,988841,Yearling Necromancer Necromancer Student Necromancer Nice Answer Excavator Yearling Nice Answer Civic Duty Revival Nice Answer,NULL,NULL,0,NULL,NULL 22119,11367865,471931,NULL,NULL,NULL,0,NULL,NULL 22120,1096553,365580,Revival Yearling Necromancer Nice Answer Yearling Popular Question Announcer Caucus Yearling Necromancer Critic Nice Answer,NULL,NULL,0,NULL,NULL 22121,5648,1253362,Commentator,NULL,NULL,0,NULL,NULL 22122,416268,1539690,Notable Question Popular Question Popular Question Notable Question Favorite Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22123,1185560,830522,Caucus Commentator Yearling Notable Question,NULL,NULL,0,NULL,NULL 22124,216500,807229,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22125,200035,429318,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 22126,398519,302103,Necromancer Taxonomist Yearling Good Answer Populist Electorate Nice Answer Yearling Popular Question Necromancer Announcer Nice Answer Yearling,NULL,pI have created href http jsfiddle net VQu3S rel noreferrer jsFiddle with working code to solve this problem am including the code here as well just in case jsFiddle goes belly up in the distant future ppre code lt ol class ingredientList gt lt li class ingredient gt Apples lt li gt lt li class ingredient gt Carrots lt li gt lt li class ingredient gt Clams lt li gt lt li class ingredient gt Oysters lt li gt lt li class ingredient gt Wheat lt li gt lt ol gt lt ol class ingredientList gt lt li class ingredient gt Barley lt li gt lt li class ingredient gt Eggs lt li gt lt li class ingredient gt Millet lt li gt lt li class ingredient gt Oranges lt li gt lt li class ingredient gt Olives lt li gt lt ol gt code prepand the jQuery ppre code ingredient click function var element this var added false var targetList this parent siblings ingredientList this fadeOut fast function ingredient targetList each function if this text gt element text element insertBefore this fadeIn fast added true return false if added element appendTo targetList fadeIn fast code prepI stripped your HTML down for the sake of brevity so you will want to modify my code to match yours Also if you are going to use user defined attributes which are not valid HTML and not officially supported by any browser though it also won hurt anything probably recommend prefixing them with data to conform with the href http dev w3 org html5 spec Overview html custom data attribute rel noreferrer HTML5 Custom Data Attribute specification So ingredient id would become data ingredient id While this is not yet supported on any current browser as HTML5 has not been finalized it is safer and more robust than just defining your own attributes And once HTML5 is finalized your attributes will be fully supported pp strongEdit strong As John pointed out in the comments this will not work if you need to support UTF characters In this case you need to use href https developer mozilla org en US docs Web JavaScript Reference Global Objects String localeCompare rel noreferrer String prototype localeCompare make sure you check that the browser supports it as per the documentation So that code would look something like this ppre code ingredient click function var element this var added false var targetList this parent siblings ingredientList this fadeOut fast function ingredient targetList each function if this text localeCompare element text gt element insertBefore this fadeIn fast added true return false if added element appendTo targetList fadeIn fast code prep href https jsfiddle net shwbnefe rel noreferrer Here is an updated Fiddle implementing localeCompare Thanks for pointing that out In that case you need to use the localeCompare function ll update with additional info pI have created href http jsfiddle net VQu3S rel noreferrer jsFiddle with working code to solve this problem am including the code here as well just in case jsFiddle goes belly up in the distant future ppre code lt ol class ingredientList gt lt li class ingredient gt Apples lt li gt lt li class ingredient gt Carrots lt li gt lt li class ingredient gt Clams lt li gt lt li class ingredient gt Oysters lt li gt lt li class ingredient gt Wheat lt li gt lt ol gt lt ol class ingredientList gt lt li class ingredient gt Barley lt li gt lt li class ingredient gt Eggs lt li gt lt li class ingredient gt Millet lt li gt lt li class ingredient gt Oranges lt li gt lt li class ingredient gt Olives lt li gt lt ol gt code prepand the jQuery ppre code ingredient click function var element this var added false var targetList this parent siblings ingredientList this fadeOut fast function ingredient targetList each function if this text gt element text element insertBefore this fadeIn fast added true return false if added element appendTo targetList fadeIn fast code prepI stripped your HTML down for the sake of brevity so you will want to modify my code to match yours Also if you are going to use user defined attributes which are not valid HTML and not officially supported by any browser though it also won hurt anything probably recommend prefixing them with data to conform with the href http dev w3 org html5 spec Overview html custom data attribute rel noreferrer HTML5 Custom Data Attribute specification So ingredient id would become data ingredient id While this is not yet supported on any current browser as HTML5 has not been finalized it is safer and more robust than just defining your own attributes And once HTML5 is finalized your attributes will be fully supported pp strongEdit strong As John pointed out in the comments this will not work if you need to support UTF characters In this case you need to use href https developer mozilla org en US docs Web JavaScript Reference Global Objects String localeCompare rel noreferrer String prototype localeCompare make sure you check that the browser supports it as per the documentation So that code would look something like this ppre code ingredient click function var element this var added false var targetList this parent siblings ingredientList this fadeOut fast function ingredient targetList each function if this text localeCompare element text gt element insertBefore this fadeIn fast added true return false if added element appendTo targetList fadeIn fast code prep href https jsfiddle net shwbnefe rel noreferrer Here is an updated Fiddle implementing localeCompare If jsFiddle dissappeared there would definitely be great disturbance in the force as if millions of developers suddenly cried out in terror and were suddenly silenced,0,NULL,NULL 22127,3446,1216431,NULL,NULL,NULL,0,NULL,NULL 22128,1072641,1397636,NULL,NULL,NULL,0,NULL,NULL 22129,130881,1450196,Necromancer,NULL,NULL,0,NULL,NULL 22130,171409,154487,NULL,NULL,NULL,0,NULL,NULL 22131,72080,188729,Nice Answer Enlightened Guru node.js Nice Answer Enlightened Nice Answer Yearling Nice Answer Notable Question Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 22132,126077,830127,NULL,NULL,NULL,0,NULL,NULL 22133,252440,1421075,Yearling Documentation User Announcer Caucus,NULL,NULL,0,NULL,NULL 22134,25665,599515,NULL,NULL,NULL,0,NULL,NULL 22135,165219,1166241,NULL,NULL,NULL,0,NULL,NULL 22136,528954,1540551,NULL,NULL,NULL,0,NULL,NULL 22137,814405,394277,Popular Question,NULL,NULL,0,NULL,NULL 22138,1520383,1218447,NULL,NULL,,0,, 22139,108873,484348,NULL,NULL,NULL,0,NULL,NULL 22140,446837,597082,Yearling Popular Question Good Answer Nice Answer Nice Answer Yearling Notable Question Popular Question Tag Editor Popular Question Yearling Nice Question Necromancer,NULL,NULL,0,NULL,NULL 22141,331787,525364,Editor,NULL,NULL,0,NULL,NULL 22142,106794,577191,NULL,NULL,NULL,0,NULL,NULL 22143,385366,230782,NULL,NULL,NULL,0,NULL,NULL 22144,2711805,1079213,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22145,223922,962859,NULL,NULL,NULL,0,NULL,NULL 22146,1520409,445786,Nice Answer Enlightened Yearling Good Answer,NULL,pThere is no quick function access to getting setting cookies so came up with the following hack ppre codevar http require http function parseCookies request var list rc request headers cookie rc amp amp rc split forEach function cookie var parts cookie split list parts shift trim decodeURI parts join return list http createServer function request response To Read Cookie var cookies parseCookies request To Write Cookie response writeHead 200 Set Cookie mycookie test Content Type text plain response end Hello World listen 8124 console log Server running at http 127 8124 code prepThis will store all cookies into the cookies object and you need to set cookies when you write the head no unfortunately the issues noticed by Eye et all are still there found replacing list parts shift trim decodeURI parts join with list parts trim decodeURI parts slice join as per aron duby suggestion to work for me,0,NULL,NULL 22147,102371,669111,Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Yearling Caucus Famous Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 22148,60865,988838,NULL,NULL,NULL,0,NULL,NULL 22149,406808,676762,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22150,252663,657124,Supporter,NULL,NULL,0,NULL,NULL 22151,700820,81938,Yearling Famous Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 22152,64427,163845,Nice Question Great Question Yearling Favorite Question Notable Question Popular Question Popular Question Good Question Nice Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 22153,1325721,910046,Yearling,NULL,NULL,0,NULL,NULL 22154,176601,636045,NULL,NULL,NULL,0,NULL,NULL 22155,98633,396976,NULL,NULL,NULL,0,NULL,NULL 22156,436612,853178,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 22157,575600,910415,NULL,NULL,NULL,0,NULL,NULL 22158,1736110,272197,Nice Answer,NULL,NULL,0,NULL,NULL 22159,379912,849217,NULL,NULL,NULL,0,NULL,NULL 22160,394210,83173,NULL,NULL,NULL,0,NULL,NULL 22161,289388,727747,NULL,NULL,NULL,0,NULL,NULL 22162,446878,393927,NULL,NULL,NULL,0,NULL,NULL 22163,448148,1054163,Yearling,NULL,NULL,0,NULL,NULL 22164,162443,512686,Yearling Good Answer Revival Enthusiast Citizen Patrol Custodian Custodian Custodian Organizer Informed Civic Duty Yearling Suffrage Yearling Guru Explainer Yearling,NULL,NULL,0,NULL,NULL 22165,107103,1470005,NULL,NULL,NULL,0,NULL,NULL 22166,971208,795096,Popular Question,NULL,NULL,0,NULL,NULL 22167,5983991,216566,NULL,NULL,NULL,0,NULL,NULL 22168,289110,61496,NULL,NULL,NULL,0,NULL,NULL 22169,641739,1191283,NULL,NULL,NULL,0,NULL,NULL 22170,472165,571054,NULL,NULL,NULL,0,NULL,NULL 22171,34613,888668,Editor Necromancer Revival Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22172,1421830,1003033,Self-Learner Nice Question Curious Critic Nice Question Popular Question Yearling Popular Question Notable Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 22173,89895,854624,Notable Question Good Question Notable Question Nice Question Nice Question Notable Question Yearling Notable Question Famous Question Notable Question Caucus Notable Question Notable Question Great Answer Good Answer Famous Question Yearling Notable Question Guru Yearling Good Question,NULL,pI assume that you have some sort of codeList code component and some sort of codeItem code component The way did it href https github com BinaryMuse chrome fast tab switcher rel noreferrer in one project was to let the item know if it was active or not the item would ask the list to scroll it into view if necessary Consider the following pseudocode ppre class lang javascript prettyprint override codeclass List extends React Component render return lt div gt this props items map this renderItem lt div gt renderItem item return lt Item key item id item item active item id this props activeId scrollIntoView this scrollElementIntoViewIfNeeded gt scrollElementIntoViewIfNeeded domNode var containerDomNode React findDOMNode this Determine if domNode fully fits inside containerDomNode If not set the container scrollTop appropriately class Item extends React Component render return lt div gt something lt div gt componentDidMount this ensureVisible componentDidUpdate this ensureVisible ensureVisible if this props active this props scrollIntoView React findDOMNode this code prepA better solution is probably to make the list responsible for scrolling the item into view without the item being aware that it even in list To do so you could add coderef code attribute to certain item and find it with that ppre class lang javascript prettyprint override codeclass List extends React Component render return lt div gt this props items map this renderItem lt div gt renderItem item var active item id this props activeId var props key item id item item active active if active props ref activeItem return lt Item props gt componentDidUpdate prevProps only scroll into view if the active item changed last render if this props activeId prevProps activeId this ensureActiveItemVisible ensureActiveItemVisible var itemComponent this refs activeItem if itemComponent var domNode React findDOMNode itemComponent this scrollElementIntoViewIfNeeded domNode scrollElementIntoViewIfNeeded domNode var containerDomNode React findDOMNode this Determine if domNode fully fits inside containerDomNode If not set the container scrollTop appropriately code prepIf you don want to do the math to determine if the item is visible inside the list node you could use the href https developer mozilla org en US docs Web API Element scrollIntoView rel noreferrer DOM method codescrollIntoView code or the Webkit specific codescrollIntoViewIfNeeded code which href https gist github com hsablonniere 2581101 rel noreferrer has polyfill available so you can use it in non Webkit browsers Wow Element scrollIntoView is super awesome,0,NULL,NULL 22174,178481,288522,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 22175,127938,326526,NULL,NULL,NULL,0,NULL,NULL 22176,736931,1372178,Notable Question,NULL,NULL,0,NULL,NULL 22177,211317,1166457,Curious Custodian Necromancer Editor Commentator Yearling Caucus Constituent Self-Learner Critic Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 22178,68463,1537495,Supporter Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22179,30920,1554,Good Answer Nice Answer Enlightened Revival Great Answer Nice Answer Notable Question Yearling Great Answer Good Answer Nice Answer Nice Answer Good Answer Popular Question Guru Yearling Nice Answer Enlightened Guru Excavator Great Answer Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 22180,106421,366864,Good Answer requirejs Nice Answer Yearling Good Answer Nice Answer Good Answer Autobiographer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 22181,1161486,642050,NULL,NULL,NULL,0,NULL,NULL 22182,265171,53658,Nice Answer Yearling Popular Question Nice Question Necromancer Notable Question Nice Question Popular Question Popular Question Revival Nice Answer Notable Question Notable Question Yearling Custodian Necromancer Popular Question Notable Question Nice Question Excavator Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 22183,120685,211219,Nice Answer Yearling Caucus Census Caucus,NULL,NULL,0,NULL,NULL 22184,155492,192223,Nice Question Popular Question Famous Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Yearling Popular Question Great Question Notable Question Caucus Popular Question Popular Question Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22185,933835,787747,Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 22186,462681,1108100,NULL,NULL,NULL,0,NULL,NULL 22187,3505,1276237,NULL,NULL,NULL,0,NULL,NULL 22188,135926,576223,Yearling Popular Question Good Question Notable Question Caucus Constituent Notable Question Nice Question Famous Question Yearling Caucus Constituent Custodian Citizen Patrol Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 22189,553783,824132,Notable Question Revival Caucus Constituent Famous Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 22190,499466,404535,Nice Answer,NULL,NULL,0,NULL,NULL 22191,113784,471713,Nice Question Investor,NULL,NULL,0,NULL,NULL 22192,365784,1476779,NULL,NULL,NULL,0,NULL,NULL 22193,1036806,288001,Notable Question Popular Question Informed Custodian Custodian Citizen Patrol Famous Question,NULL,NULL,0,NULL,NULL 22194,570731,26129,Notable Question Critic Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22195,2244738,929553,NULL,NULL,NULL,0,NULL,NULL 22196,878004,802780,Good Answer,NULL,NULL,0,NULL,NULL 22197,838245,1267553,Critic Enthusiast Student Caucus Caucus,NULL,NULL,0,NULL,NULL 22198,1479,398811,Famous Question Good Question,NULL,NULL,0,NULL,NULL 22199,2459049,398811,Famous Question Good Question,NULL,NULL,0,NULL,NULL 22200,73777,846894,NULL,NULL,NULL,0,NULL,NULL 22201,68739,589313,NULL,NULL,NULL,0,NULL,NULL 22202,158852,153291,Yearling,NULL,NULL,0,NULL,NULL 22203,409734,410037,NULL,NULL,NULL,0,NULL,NULL 22204,2236858,941065,NULL,NULL,NULL,0,NULL,NULL 22205,315954,941065,NULL,NULL,NULL,0,NULL,NULL 22206,777987,1274689,Teacher Informed Editor,NULL,NULL,0,NULL,NULL 22207,308375,76513,NULL,NULL,NULL,0,NULL,NULL 22208,276151,1238815,Famous Question,NULL,NULL,0,NULL,NULL 22209,867308,1238815,Famous Question,NULL,NULL,0,NULL,NULL 22210,43263,1032912,NULL,NULL,NULL,0,NULL,NULL 22211,108275,1154377,NULL,NULL,NULL,0,NULL,NULL 22212,3307338,1154377,NULL,NULL,NULL,0,NULL,NULL 22213,167253,847018,NULL,NULL,NULL,0,NULL,NULL 22214,96610,377600,NULL,NULL,NULL,0,NULL,NULL 22215,52865,152083,Good Answer Nice Answer Guru Nice Answer Good Answer Necromancer Guru Nice Answer Yearling Good Answer Great Answer Good Answer Great Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Popular Question Good Answer Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 22216,180193,877628,NULL,NULL,NULL,0,NULL,NULL 22217,180783,877628,NULL,NULL,NULL,0,NULL,NULL 22218,874258,782833,NULL,NULL,NULL,0,NULL,NULL 22219,504245,202150,Nice Answer,NULL,NULL,0,NULL,NULL 22220,660326,787286,NULL,NULL,NULL,0,NULL,NULL 22221,334774,608359,Nice Answer Yearling Popular Question Good Answer Caucus Constituent Custodian Custodian Custodian Caucus Constituent Yearling Notable Question,NULL,NULL,0,NULL,NULL 22222,20633,13831,Yearling Nice Answer Good Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 22223,54637,344821,Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Nice Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Necromancer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Popular Question Good Answer Necromancer Nice Answer Census Good Answer Announcer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Good Answer Yearling algorithm machine-learning Caucus Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Census Guru Necromancer Announcer Guru Guru Yearling Good Answer Nice Answer Enlightened Popular Question Good Answer,NULL,pYou can see href http hg python org releasing file 7bb96963d067 Modules datetimemodule l59 rel noreferrer from the source that datetime objects don support anything more fine than microseconds As pointed out by Mike Pennington in the comments this is because href https stackoverflow com questions 2394485 get posix unix time in seconds and nanoseconds in python actual hardware clocks aren nearly that precise Wikipedia says that href http en wikipedia org wiki High Precision Event Timer rel noreferrer HPET has frequency at least 10 MHz which means one tick per 100 nanoseconds ppIf you can live with throwing out the last three digits which probably aren too meaningful anyway you could parse this by just slicing the input string to have only six digits after the decimal point and parsing with code code Otherwise it looks like you ll have to implement the subtraction yourself just note that numpy datetime64 dtype http docs scipy org doc numpy reference arrays datetime html supports down to attoseconds sort of pYou can see href http hg python org releasing file 7bb96963d067 Modules datetimemodule l59 rel noreferrer from the source that datetime objects don support anything more fine than microseconds As pointed out by Mike Pennington in the comments this is because href https stackoverflow com questions 2394485 get posix unix time in seconds and nanoseconds in python actual hardware clocks aren nearly that precise Wikipedia says that href http en wikipedia org wiki High Precision Event Timer rel noreferrer HPET has frequency at least 10 MHz which means one tick per 100 nanoseconds ppIf you can live with throwing out the last three digits which probably aren too meaningful anyway you could parse this by just slicing the input string to have only six digits after the decimal point and parsing with code code Otherwise it looks like you ll have to implement the subtraction yourself Pandas should have functions that do that pIf you are not in control of LaTeX compilation options you can use the same table used by the inputenc package so that the behavior will be the same as if you had used inputenc pp href http www tug org texmf dist doc latex base utf8ienc pdf rel noreferrer This document explains how inputenc does the mapping it is sequence of ppre code 194 hall t1 ly1i DeclareUnicodeCharacter 00C2 195 hall t1 ly1i DeclareUnicodeCharacter 00C3 196 hall t1 ly1i DeclareUnicodeCharacter 00C4 197 hall t1 ot1 ly1i DeclareUnicodeCharacter 00C5 198 hall t1 ot1 ly1 lcyi DeclareUnicodeCharacter 00C6 AE 199 hall t1 ly1i DeclareUnicodeCharacter 00C7 200 hall t1 ly1i DeclareUnicodeCharacter 00C8 code prepYou could parse the file looking for all the codeDeclareUnicodeCharacter code lines and extract with regexp the mapping ppEDIT ve written some code that does the trick ppre code coding utf import retranslation table for line in open utf8ienc dtx re match DeclareUnicodeCharacter line if codepoint latex groups latex latex replace remove useless translation table int codepoint 16 unicode latex print été eau translate translation table outputs et eau code prepYou should find codeutf8ienc dtx code in your latex installation or you can google it It seems like utf8enc dfu is more widely available than utf8ienc dtx it also doesn have the comment character at the start of the line so you ll want to remove that from the re match or change to Doing that and changing to open subprocess check output kpsewhich utf8enc dfu strip after adding import subprocess should work on most unixy systems with LaTeX install without copying the file around,0,NULL,NULL 22224,18523,1241159,NULL,NULL,NULL,0,NULL,NULL 22225,400544,1436023,Informed,NULL,NULL,0,NULL,NULL 22226,1071085,259017,Popular Question,NULL,NULL,0,NULL,NULL 22227,48538,174441,NULL,NULL,NULL,0,NULL,NULL 22228,415987,1069754,NULL,NULL,NULL,0,NULL,NULL 22229,497129,1234327,NULL,NULL,NULL,0,NULL,NULL 22230,180769,598882,Yearling Notable Question Popular Question Yearling Popular Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22231,82165,105146,Census,NULL,NULL,0,NULL,NULL 22232,195552,716379,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 22233,410408,845434,NULL,NULL,NULL,0,NULL,NULL 22234,783538,196964,Necromancer Popular Question Yearling Electorate Caucus Good Question Famous Question Nice Answer Necromancer Necromancer Nice Question Necromancer Popular Question Caucus Yearling Popular Question Tenacious Notable Question Nice Question Revival Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 22235,188579,32558,Famous Question Favorite Question Yearling Popular Question Good Answer Yearling Nice Question Census Custodian Famous Question Yearling,NULL,NULL,0,NULL,NULL 22236,117322,348528,Good Answer Notable Question Nice Question Notable Question Famous Question Caucus Yearling Notable Question Popular Question Good Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 22237,155220,1238733,NULL,NULL,NULL,0,NULL,NULL 22238,86928,1000842,Self-Learner Notable Question Popular Question Caucus Notable Question Yearling Popular Question Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 22239,209362,263376,NULL,NULL,NULL,0,NULL,NULL 22240,65224,142098,Famous Question Nice Question Popular Question Yearling Popular Question Custodian Revival Famous Question Popular Question Announcer Notable Question Necromancer Famous Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Nice Answer Enlightened Nice Question Favorite Question Famous Question Nice Answer Nice Question Nice Question Popular Question Popular Question Caucus Nice Question Famous Question Popular Question Yearling Necromancer Popular Question Good Question Revival Nice Question,NULL,codebabel polyfill code is required You must also install it in order to get async await working ppre codenpm babel core babel polyfill babel preset es2015 babel preset stage babel loader code preppackage json ppre code devDependencies babel core 20 babel polyfill 16 babel preset es2015 15 babel preset stage 15 code prep babelrc ppre code presets es2015 stage code prep js with async await sample code ppre code use strict export default async function foo var await bar console log function bar return bar code prepIn the startup file ppre coderequire babel core register require babel polyfill code prepIf you are using strongwebpack strong you need to put it as the first entry as per comment ppre codemodule exports entry babel polyfill test js output filename bundle js module loaders test jsx loader babel code prepIf you want to run tests with babel then use ppre codemocha compilers js babel core register require babel polyfill code pre If you use multiple entry points in webpack you can also put babel polyfill into one of them as long as it loaded first In my case have one called vendor so my webpack config js looks like this entry app src app js vendor babel polyfill react,0,NULL,NULL 22241,38534,1447034,Notable Question Announcer,NULL,NULL,0,NULL,NULL 22242,263726,8458,Great Answer Guru Guru Yearling Favorite Question Yearling Great Question Populist Nice Answer Good Answer Benefactor Yearling,NULL,NULL,0,NULL,NULL 22243,270517,223501,Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 22244,51359,100929,NULL,NULL,NULL,0,NULL,NULL 22245,3102172,1132848,Nice Question Teacher Popular Question Yearling Famous Question Popular Question Famous Question Civic Duty,NULL,NULL,0,NULL,NULL 22246,60152,964836,Popular Question Popular Question Yearling Popular Question Civic Duty Organizer Citizen Patrol Custodian Yearling Popular Question Popular Question Promoter Benefactor Notable Question Caucus Popular Question Necromancer Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Inquisitive Notable Question Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Caucus Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Caucus Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 22247,309240,749891,Popular Question,NULL,NULL,0,NULL,NULL 22248,232007,103516,Popular Question,NULL,NULL,0,NULL,NULL 22249,336623,1424797,NULL,NULL,NULL,0,NULL,NULL 22250,162007,13838,NULL,NULL,NULL,0,NULL,NULL 22251,382895,298004,Excavator Custodian Popular Question Announcer Caucus Popular Question Popular Question Yearling Popular Question Caucus Census Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 22252,165047,1250456,NULL,NULL,NULL,0,NULL,NULL 22253,367063,1387322,Popular Question,NULL,NULL,0,NULL,NULL 22254,177231,116169,Notable Question Notable Question Notable Question Famous Question Famous Question Favorite Question Yearling Popular Question Nice Question Caucus Peer Pressure Nice Question Popular Question Famous Question Good Question Nice Question Yearling Famous Question Notable Question Popular Question Nice Question Notable Question Great Question Popular Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22255,186002,262942,Necromancer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 22256,12553,197439,NULL,NULL,NULL,0,NULL,NULL 22257,183424,3147,NULL,NULL,NULL,0,NULL,NULL 22258,136655,1291634,NULL,NULL,NULL,0,NULL,NULL 22259,1557954,28392,Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 22260,1162110,1181308,NULL,NULL,NULL,0,NULL,NULL 22261,520735,1181308,NULL,NULL,NULL,0,NULL,NULL 22262,356561,115749,Popular Question Taxonomist Popular Question Notable Question Revival Nice Answer Yearling Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Popular Question Notable Question Necromancer Popular Question Notable Question Yearling Necromancer Necromancer Notable Question Popular Question Nice Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 22263,237898,1464700,NULL,NULL,NULL,0,NULL,NULL 22264,82358,132918,NULL,NULL,NULL,0,NULL,NULL 22265,241834,460274,Nice Question Great Question Notable Question Yearling Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22266,1167945,981039,NULL,NULL,NULL,0,NULL,NULL 22267,316846,299645,Popular Question,NULL,NULL,0,NULL,NULL 22268,41987,418307,NULL,NULL,NULL,0,NULL,NULL 22269,248246,1291014,NULL,NULL,NULL,0,NULL,NULL 22270,107395,851344,Curious Custodian Yearling Citizen Patrol Announcer Yearling Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 22271,527911,1066843,Informed Census,NULL,NULL,0,NULL,NULL 22272,504316,449215,Nice Question Nice Answer Popular Question Popular Question Yearling Caucus Notable Question Notable Question Nice Question Yearling Popular Question Revival Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 22273,367094,884,Necromancer Organizer Taxonomist Yearling Good Answer Notable Question Yearling Nice Answer Documentation User Nice Answer Necromancer Custodian Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 22274,249122,627657,Editor,NULL,NULL,0,NULL,NULL 22275,796605,486738,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 22276,195350,147333,Notable Question Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 22277,89657,262631,Notable Question Popular Question Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 22278,63644,709621,NULL,NULL,NULL,0,NULL,NULL 22279,156982,389082,NULL,NULL,NULL,0,NULL,NULL 22280,104846,1531720,NULL,NULL,NULL,0,NULL,NULL 22281,284207,1084930,NULL,NULL,NULL,0,NULL,NULL 22282,551659,175911,Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 22283,114375,154644,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 22284,327827,707450,NULL,NULL,NULL,0,NULL,NULL 22285,2652827,399457,Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question Great Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Good Question Popular Question Famous Question Informed Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question java Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Famous Question Nice Question Nice Answer Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Socratic Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Custodian Notable Question Caucus Constituent Popular Question Famous Question Popular Question Custodian Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Good Question Popular Question Notable Question Nice Question Great Answer Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question,NULL,How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre have an external library which don want to change It gives me byte typed values with negative numbers in them How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre need the actual numerical value because in another third party library that numerical value is used as an index in an array How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre Thanks If you submit your comment as an answer ll accept it See also my update,1,How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre,NULL 22286,3637,730963,Famous Question Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 22287,2032792,215817,NULL,NULL,NULL,0,NULL,NULL 22288,55400,1264275,Yearling,NULL,NULL,0,NULL,NULL 22289,60895,834953,NULL,NULL,NULL,0,NULL,NULL 22290,157595,1466286,NULL,NULL,NULL,0,NULL,NULL 22291,211565,87316,Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 22292,298218,202085,Famous Question Nice Question Self-Learner Nice Answer Favorite Question Notable Question Popular Question Yearling Caucus Popular Question Good Answer Nice Question Tumbleweed Popular Question Documentation User Notable Question Great Question Yearling Good Answer Famous Question Good Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22293,693468,1507238,NULL,NULL,NULL,0,NULL,NULL 22294,437135,1148233,NULL,NULL,NULL,0,NULL,NULL 22295,210709,597714,Teacher Editor Informed Enthusiast Fanatic Critic Autobiographer Yearling Commentator,NULL,NULL,0,NULL,NULL 22296,11691,1081,Famous Question,NULL,NULL,0,NULL,NULL 22297,172655,596320,NULL,NULL,NULL,0,NULL,NULL 22298,91400,134409,Yearling Curious Yearling Caucus Documentation User Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22299,119768,207062,Yearling,NULL,NULL,0,NULL,NULL 22300,351382,1324632,Revival Yearling Tumbleweed Popular Question Nice Answer Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 22301,68014,146082,Good Answer Nice Answer Good Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 22302,128590,442007,Popular Question,NULL,NULL,0,NULL,NULL 22303,94201,1302489,NULL,NULL,NULL,0,NULL,NULL 22304,201946,1353091,Informed,NULL,NULL,0,NULL,NULL 22305,1159814,1353091,Informed,NULL,NULL,0,NULL,NULL 22306,534338,562816,Announcer Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 22307,179759,859731,Yearling Nice Answer Revival Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 22308,587722,338623,NULL,NULL,NULL,0,NULL,NULL 22309,334181,481546,NULL,NULL,NULL,0,NULL,NULL 22310,59606,106487,Revival Supporter,NULL,NULL,0,NULL,NULL 22311,82401,559463,NULL,NULL,NULL,0,NULL,NULL 22312,9035837,347298,Yearling,NULL,NULL,0,NULL,NULL 22313,230383,207220,Yearling,NULL,NULL,0,NULL,NULL 22314,7900,905115,NULL,NULL,NULL,0,NULL,NULL 22315,1024737,156410,Popular Question Notable Question Notable Question Nice Question Yearling Nice Question Nice Answer Notable Question Notable Question Nice Answer Enlightened Notable Question Announcer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 22316,639438,207442,Caucus Yearling Disciplined Caucus Nice Answer Announcer Yearling Custodian Caucus Populist Yearling,NULL,NULL,0,NULL,NULL 22317,230790,291543,NULL,NULL,NULL,0,NULL,NULL 22318,89338,53600,Yearling Guru Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22319,2921306,1193434,NULL,NULL,NULL,0,NULL,NULL 22320,4532840,153275,NULL,NULL,NULL,0,NULL,NULL 22321,521788,153275,NULL,NULL,NULL,0,NULL,NULL 22322,240898,548163,NULL,NULL,NULL,0,NULL,NULL 22323,3256537,1336633,NULL,NULL,NULL,0,NULL,NULL 22324,782732,1336633,NULL,NULL,NULL,0,NULL,NULL 22325,164517,50924,Yearling Great Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 22326,428510,1172488,NULL,NULL,NULL,0,NULL,NULL 22327,345689,1553054,NULL,NULL,NULL,0,NULL,NULL 22328,556605,210161,NULL,NULL,NULL,0,NULL,NULL 22329,421433,475938,Necromancer,NULL,NULL,0,NULL,NULL 22330,844684,839924,Popular Question,NULL,NULL,0,NULL,NULL 22331,622631,21943,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22332,118175,970929,Popular Question,NULL,NULL,0,NULL,NULL 22333,220257,434062,Nice Question,NULL,NULL,0,NULL,NULL 22334,128652,1087595,Supporter Teacher,NULL,NULL,0,NULL,NULL 22335,481359,418111,Necromancer Revival Revival Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 22336,31921,502334,Nice Answer Proofreader Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling javascript mathjax Caucus Yearling Explainer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22337,83343,345552,NULL,NULL,NULL,0,NULL,NULL 22338,216505,875854,Yearling,NULL,NULL,0,NULL,NULL 22339,443637,788207,Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Nice Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened Popular Question Notable Question Guru Good Answer Yearling Good Answer Nice Answer Good Answer Nice Answer Nice Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Disciplined Nice Answer Enlightened Good Answer Nice Answer Populist Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Electorate Popular Question Yearling Nice Answer Enlightened akka java Nice Answer Enlightened Good Answer Caucus Good Answer Nice Answer Enlightened Great Answer Populist Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened akka-stream Nice Answer Enlightened Nice Answer Popular Question Nice Question Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Popular Question Notable Question Great Answer Nice Answer Enlightened Guru Popular Question Good Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Notable Question Nice Answer Nice Answer Enlightened Great Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,pThe best way to work with strings in Rust is to use structures from the href http doc rust lang org std ffi rel nofollow noreferrer codestd ffi code module namely href http doc rust lang org std ffi struct CStr html rel nofollow noreferrer codeCStr code and href http doc rust lang org std ffi struct CString html rel nofollow noreferrer codeCString code pp codeCStr code is dynamically sized type and so it can only be used through pointer This makes it very similar to the regular codestr code type You can construct code amp CStr code from code const char code using an unsafe href http doc rust lang org std ffi struct CStr html method from ptr rel nofollow noreferrer codeCStr from ptr code static method This method is unsafe because there is no guarantee that the raw pointer you pass to it is valid that it really does point to valid string and that the string lifetime is correct ppYou can get code amp str code from code amp CStr code using its href http doc rust lang org std ffi struct CStr html method to str rel nofollow noreferrer codeto str code method ppHere is an example ppre codeextern crate libc use libc char use std ffi CStr use std str extern fn hello gt const char fn main let buf const char unsafe hello let str amp CStr unsafe CStr from ptr buf let str slice amp str str to str unwrap let str buf String str slice to owned if necessary code prepYou need to take into account the lifetime of your code const char code pointers and who owns them Depending on the API you may need to call special deallocation function on the string You need to carefully arrange conversions so the slices won outlive the pointer The fact that codeCStr from ptr code returns code amp CStr code with arbitrary lifetime helps here though it is dangerous by itself for example you can encapsulate your string into structure and provide codeDeref code conversion so you can use your struct as if it was string slice ppre codeextern crate libc use libc char use std ops Deref use std ffi CStr extern fn hello gt const char fn goodbye const char struct Greeting message const char impl Drop for Greeting fn drop amp mut self unsafe goodbye self message impl Greeting fn new gt Greeting Greeting message unsafe hello impl Deref for Greeting type Target str fn deref lt gt amp self gt amp str let str unsafe CStr from ptr self message str to str unwrap code prepThere is also another type in this module called href http doc rust lang org std ffi struct CString html rel nofollow noreferrer codeCString code It has the same relationship with codeCStr code as codeString code with codestr code codeCString code is an owned version of codeCStr code This means that it holds the handle to the allocation of the byte data and dropping codeCString code would free the memory it provides essentially codeCString code wraps codeVec lt u8 gt code and it the latter that will be dropped Consequently it is useful when you want to expose the data allocated in Rust as string ppUnfortunately strings always end with the zero byte and can contain one inside them while Rust code amp u8 code codeVec lt u8 gt code are exactly the opposite thing they do not end with zero byte and can contain arbitrary numbers of them inside This means that going from codeVec lt u8 gt code to codeCString code is neither error free nor allocation free the codeCString code constructor both checks for zeros inside the data you provide returning an error if it finds some and appends zero byte to the end of the byte vector which may require its reallocation ppLike codeString code which implements codeDeref lt Target str gt code codeCString code implements codeDeref lt Target CStr gt code so you can call methods defined on codeCStr code directly on codeCString code This is important because the href http doc rust lang org std ffi struct CString html method as ptr rel nofollow noreferrer codeas ptr code method that returns the code const char code necessary for interoperation is defined on codeCStr code You can call this method directly on codeCString code values which is convenient pp codeCString code can be created from everything which can be converted to codeVec lt u8 gt code codeString code code amp str code codeVec lt u8 gt code and code amp u8 code are valid arguments for the constructor function href http doc rust lang org std ffi struct CString html method new rel nofollow noreferrer codeCString new code Naturally if you pass byte slice or string slice new allocation will be created while codeVec lt u8 gt code or codeString code will be consumed ppre codeextern crate libc use libc char use std ffi CString fn main let str CString new hello unwrap from amp str creates new allocation let str CString new world as amp u8 unwrap from amp u8 creates new allocation let data Vec lt u8 gt 12345678 to vec from Vec lt u8 gt consumes it let str CString new data unwrap and now you can obtain pointer to valid zero terminated string make sure you don use it after str is dropped let ptr const char str as ptr the following will print an error message because the source data contains zero bytes let data Vec lt u8 gt vec match CString new data Ok str gt println Got string str as ptr Err gt println Error getting string code prepIf you need to transfer ownership of the codeCString code to code you can call href https doc rust lang org std ffi struct CString html method into raw rel nofollow noreferrer codeCString into raw code You are then required to get the pointer back and free it in Rust the Rust allocator is unlikely to be the same as the allocator used by codemalloc code and codefree code All you need to do is call href https doc rust lang org std ffi struct CString html method from raw rel nofollow noreferrer codeCString from raw code and then allow the string to be dropped normally yes of course it does say it is even more important there because garbage collection may run at any time especially if it is concurrent If you do not take care to keep the string on the GC side rooted somewhere you may suddenly access freed piece of memory on the Rust side,0,NULL,NULL 22340,1034082,266798,NULL,NULL,NULL,0,NULL,NULL 22341,232117,1177126,NULL,NULL,NULL,0,NULL,NULL 22342,151705,1177126,NULL,NULL,NULL,0,NULL,NULL 22343,185254,302687,NULL,NULL,NULL,0,NULL,NULL 22344,156576,108841,Yearling Popular Question,NULL,NULL,0,NULL,NULL 22345,839981,925714,Popular Question Popular Question Popular Question Famous Question Notable Question Inquisitive Popular Question Notable Question Good Question Notable Question Yearling Caucus Popular Question Notable Question Nice Answer Enlightened Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22346,267660,1383086,Student Yearling,NULL,NULL,0,NULL,NULL 22347,394626,882541,NULL,NULL,NULL,0,NULL,NULL 22348,101293,297938,Famous Question Popular Question Yearling Notable Question Famous Question Good Answer Notable Question Necromancer Yearling Caucus Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22349,1156168,436763,NULL,NULL,NULL,0,NULL,NULL 22350,910549,946591,NULL,NULL,NULL,0,NULL,NULL 22351,882647,1292563,NULL,NULL,NULL,0,NULL,NULL 22352,262073,266949,Guru Yearling Popular Question Tumbleweed Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 22353,715071,646871,Notable Question Custodian Custodian Popular Question Citizen Patrol Yearling Custodian Notable Question Reviewer Critic Caucus Constituent Notable Question Yearling Nice Answer Caucus Constituent Yearling Custodian Promoter Caucus Constituent Informed Famous Question,NULL,NULL,0,NULL,NULL 22354,1300299,900765,Yearling Nice Answer Necromancer Critic Yearling,NULL,NULL,0,NULL,NULL 22355,134489,1266756,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Tag Editor Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened go Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Citizen Patrol Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Suffrage,NULL,NULL,0,NULL,NULL 22356,514359,13627,Stellar Question Notable Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Famous Question Nice Answer Enlightened Famous Question multithreading Notable Question Good Answer Nice Answer Enlightened Popular Question Nice Question Good Answer Nice Question Stellar Question Notable Question Great Answer Notable Question Nice Question Nice Answer Nice Answer Popular Question Popular Question Popular Question Nice Question Good Answer Notable Question reflection Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Notable Question Good Question Yearling Popular Question Nice Answer Enlightened Notable Question Nice Answer Good Question Nice Answer Enlightened Popular Question Popular Question Notable Question Notable Question Good Answer Nice Answer Good Answer Nice Question Guru Nice Question Nice Answer Nice Answer Notable Question Guru Popular Question Nice Answer Enlightened Famous Question Popular Question Notable Question Favorite Question Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Great Answer Popular Question Nice Answer Famous Question Nice Answer Famous Question Popular Question Great Answer Nice Answer Nice Answer Enlightened Popular Question Great Answer Good Answer Yearling Good Answer Nice Answer Enlightened Notable Question Famous Question Nice Answer Nice Answer Good Answer Nice Answer Enlightened Custodian Popular Question Census Nice Answer Famous Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Popular Question Nice Answer Nice Answer Good Question Good Answer Good Answer Good Answer Popular Question Yearling Great Answer Great Answer Good Answer Good Answer Nice Question Nice Answer Guru Enlightened Good Answer Great Answer Nice Question Great Answer,NULL,NULL,0,NULL,NULL 22357,70388,73946,Yearling Custodian Civic Duty Suffrage Vox Populi Informed Good Answer Caucus Constituent Commentator Citizen Patrol Explainer Yearling Documentation User,NULL,NULL,0,NULL,NULL 22358,266382,1011414,Nice Question Popular Question Yearling Popular Question Good Answer Guru Yearling Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 22359,853811,1176169,NULL,NULL,NULL,0,NULL,NULL 22360,377043,1451334,Teacher,NULL,NULL,0,NULL,NULL 22361,16794,1305306,Famous Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 22362,351541,800646,NULL,NULL,NULL,0,NULL,NULL 22363,165010,458924,NULL,NULL,NULL,0,NULL,NULL 22364,156546,613420,NULL,NULL,NULL,0,NULL,NULL 22365,4024,613420,NULL,NULL,NULL,0,NULL,NULL 22366,707377,1078735,NULL,NULL,NULL,0,NULL,NULL 22367,69961,12195,Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Great Answer Yearling Census Good Answer Outspoken Nice Answer Nice Answer Nice Answer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 22368,133579,564632,Famous Question Yearling Good Question Favorite Question,NULL,NULL,0,NULL,NULL 22369,61314,230483,Popular Question,NULL,NULL,0,NULL,NULL 22370,43341,1077961,NULL,NULL,NULL,0,NULL,NULL 22371,309354,996533,NULL,NULL,NULL,0,NULL,NULL 22372,42471,728051,NULL,NULL,NULL,0,NULL,NULL 22373,232074,1333866,Famous Question Yearling Nice Question Notable Question Famous Question Notable Question Notable Question Great Question Yearling Good Question,NULL,NULL,0,NULL,NULL 22374,257472,13549,Notable Question Notable Question Yearling Revival Notable Question Necromancer,NULL,NULL,0,NULL,NULL 22375,3631893,1504627,NULL,NULL,NULL,0,NULL,NULL 22376,4387702,801319,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22377,554364,801319,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22378,118574,1253090,NULL,NULL,NULL,0,NULL,NULL 22379,1514607,937265,NULL,NULL,NULL,0,NULL,NULL 22380,7726455,1315671,NULL,NULL,NULL,0,NULL,NULL 22381,364998,1369096,NULL,NULL,NULL,0,NULL,NULL 22382,319937,92694,Yearling Notable Question Famous Question Notable Question Yearling Favorite Question Nice Answer Necromancer Great Question Yearling Notable Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 22383,72234,882478,Popular Question Popular Question Yearling Necromancer Notable Question Caucus Constituent Nice Question Popular Question Good Answer Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Nice Question Popular Question Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 22384,91632,1020296,NULL,NULL,NULL,0,NULL,NULL 22385,1773032,1044061,Informed Notable Question Editor Census Curious Commentator,NULL,NULL,0,NULL,NULL 22386,381549,1106046,NULL,NULL,NULL,0,NULL,NULL 22387,477865,1240404,NULL,NULL,NULL,0,NULL,NULL 22388,547922,138064,NULL,NULL,NULL,0,NULL,NULL 22389,733803,856255,NULL,NULL,NULL,0,NULL,NULL 22390,253484,827380,NULL,NULL,NULL,0,NULL,NULL 22391,367478,933075,NULL,NULL,NULL,0,NULL,NULL 22392,400874,976720,Teacher,NULL,NULL,0,NULL,NULL 22393,28719,395485,NULL,NULL,NULL,0,NULL,NULL 22394,139294,257493,Famous Question Yearling Favorite Question Famous Question Nice Answer Enlightened Nice Question Good Answer Popular Question Nice Question Famous Question Popular Question Notable Question Notable Question Nice Question Notable Question Yearling Good Answer Nice Question Notable Question Popular Question Popular Question Popular Question Good Question Great Question Notable Question Yearling Famous Question Caucus Notable Question Famous Question Guru,NULL,NULL,0,NULL,NULL 22395,72837,261718,Nice Answer Yearling Revival Self-Learner Necromancer Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Announcer Notable Question Popular Question python Excavator Nice Question Notable Question Popular Question Popular Question Yearling Nice Answer Popular Question Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Notable Question Nice Question Good Question Yearling Famous Question Famous Question Popular Question Notable Question Good Answer Popular Question Announcer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 22396,1480255,348580,NULL,NULL,NULL,0,NULL,NULL 22397,498535,416150,Famous Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22398,36518,707381,Popular Question Popular Question Great Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Famous Question Popular Question Famous Question Nice Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Famous Question Nice Question Yearling Notable Question Notable Question Socratic Nice Question Popular Question Nice Answer Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Famous Question Popular Question Nice Question Great Question Nice Answer Good Question Notable Question Good Question Nice Question Good Question Famous Question Notable Question Famous Question Good Question Nice Question Popular Question Favorite Question Famous Question Nice Question Popular Question Good Question Famous Question Popular Question Favorite Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Nice Question Nice Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Great Question Popular Question Famous Question Famous Question Popular Question Nice Question Notable Question Good Question Popular Question Famous Question Famous Question Nice Question Notable Question Great Question Pundit Good Question Favorite Question Favorite Question Notable Question Notable Question Great Question Popular Question Nice Question Famous Question Nice Question Popular Question Nice Question Famous Question Popular Question Stellar Question Notable Question Good Question Famous Question Famous Question Notable Question Good Question Famous Question Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Great Question Notable Question Good Question Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Nice Question Notable Question Good Question Popular Question Popular Question Good Question Notable Question Notable Question Great Question Nice Question Notable Question Famous Question Popular Question Popular Question Good Question Nice Question Popular Question Nice Question Favorite Question Popular Question Nice Question Nice Question Popular Question Nice Question Favorite Question Popular Question Good Question Nice Question Famous Question Notable Question Notable Question Popular Question Great Question Nice Question Nice Question Notable Question Famous Question Popular Question Famous Question Famous Question Notable Question Announcer Announcer Popular Question Great Question Good Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Favorite Question Popular Question Famous Question Stellar Question Notable Question Famous Question Notable Question Notable Question Famous Question Great Question Yearling Nice Question Nice Question Popular Question Great Question Famous Question Good Question Famous Question Nice Question Famous Question Nice Question Famous Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Famous Question Famous Question Nice Question Famous Question Good Question Notable Question Notable Question Favorite Question Popular Question Good Question Nice Question Favorite Question Nice Question Notable Question Popular Question Stellar Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 22399,360032,148412,Nice Answer Popular Question Nice Answer Nice Answer Curious Yearling Necromancer Notable Question Nice Answer Nice Answer Nice Answer Notable Question Announcer Deputy Yearling Announcer Documentation User Announcer Nice Question Necromancer Custodian Necromancer Caucus Nice Answer Popular Question Yearling Necromancer,NULL,Internet Explorer incorrectly calculates percentage height for generated content in td css internet explorer pIE11 is calculating the height of table cell as the height of its content 20px and not as the height of its background 100px brOther browsers work as expected ppHow can fix that in IE brOr what am doing wrong brOr how can work around that phrpI need this so can draw vertical line behind table cell ph11 Restrictions h1pSome work arounds are not possible due to the details of my particular problem ph21 Height is not constant h2pThe height is not constant it depends on the amount of text on another cell ppSo cannot use fixed line height either If could could also just put that fixed size as before height ph21 Cannot use background image h2pI cannot work around that by using repeating background image because the line is supposed to strongnot strong be drawn behind an icon that is centred so am drawing it by using generated content code before code and code after code with codeheight calc 50 20px code ph12 Online sample h1pTry opening the href http jsfiddle net mzp01tvu rel nofollow online sample in IE11 and in Firefox or Chrome ppNote that JavaScript shows the first cell to strongbe strong 100px tall and the background fills the 100px But the generated content is only 20px tall ppre code lt DOCTYPE html gt lt html gt lt head gt lt style type text css gt borked background yellow position relative height 100 borked height 100px borked before content position absolute top width 100 height 100 background color rgba 255 lt style gt lt head gt lt body gt lt table gt lt tr gt lt td id borked gt abc lt td gt lt td gt def lt td gt lt tr gt lt table gt lt body gt lt script type text javascript gt use strict var borked document getElementById borked var document createElement td textContent 1st cell seems to be borked clientHeight px tall borked parentElement appendChild lt script gt lt html gt code pre yes you can add HTML as hack But this is simplified example of the issue found «minimum working sample» hope your proposed alternatives are practical for my particular case Internet Explorer incorrectly calculates percentage height for generated content in td css internet explorer pIE11 is calculating the height of table cell as the height of its content 20px and not as the height of its background 100px brOther browsers work as expected ppHow can fix that in IE brOr what am doing wrong brOr how can work around that phrpI need this so can draw vertical line behind table cell ph11 Restrictions h1pSome work arounds are not possible due to the details of my particular problem ph21 Height is not constant h2pThe height is not constant it depends on the amount of text on another cell ppSo cannot use fixed line height either If could could also just put that fixed size as before height ph21 Cannot use background image h2pI cannot work around that by using repeating background image because the line is supposed to strongnot strong be drawn behind an icon that is centred so am drawing it by using generated content code before code and code after code with codeheight calc 50 20px code ph12 Online sample h1pTry opening the href http jsfiddle net mzp01tvu rel nofollow online sample in IE11 and in Firefox or Chrome ppNote that JavaScript shows the first cell to strongbe strong 100px tall and the background fills the 100px But the generated content is only 20px tall ppre code lt DOCTYPE html gt lt html gt lt head gt lt style type text css gt borked background yellow position relative height 100 borked height 100px borked before content position absolute top width 100 height 100 background color rgba 255 lt style gt lt head gt lt body gt lt table gt lt tr gt lt td id borked gt abc lt td gt lt td gt def lt td gt lt tr gt lt table gt lt body gt lt script type text javascript gt use strict var borked document getElementById borked var document createElement td textContent 1st cell seems to be borked clientHeight px tall borked parentElement appendChild lt script gt lt html gt code pre am looking for CSS solution But if you offer JS solution in an answer that could work too But it would be less than ideal what would take one or two lines in CSS in JS would need to have hook on loaded and one on resize and one on,0,NULL,NULL 22400,594465,979469,Famous Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22401,630693,509666,Good Question Yearling Nice Answer Notable Question Nice Answer Popular Question Yearling Civic Duty Popular Question Revival,NULL,NULL,0,NULL,NULL 22402,382266,951579,Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Answer Nice Answer Popular Question Notable Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 22403,9460,984383,NULL,NULL,NULL,0,NULL,NULL 22404,48273,417618,NULL,NULL,NULL,0,NULL,NULL 22405,453203,588403,NULL,NULL,NULL,0,NULL,NULL 22406,134862,1266117,NULL,NULL,NULL,0,NULL,NULL 22407,1098210,650574,Yearling Famous Question Necromancer Notable Question Nice Question Good Question Yearling Popular Question Popular Question Popular Question Custodian Popular Question Notable Question Caucus Popular Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 22408,500271,442645,NULL,NULL,NULL,0,NULL,NULL 22409,7890175,430188,Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 22410,203470,301740,Nice Question Nice Answer Caucus Constituent Yearling Popular Question Famous Question Caucus Constituent Popular Question Necromancer Critic Revival Caucus Constituent,NULL,NULL,0,NULL,NULL 22411,667159,831893,Student Critic,NULL,NULL,0,NULL,NULL 22412,154493,327361,Necromancer,NULL,NULL,0,NULL,NULL 22413,282809,1462790,NULL,NULL,NULL,0,NULL,NULL 22414,1240049,1153283,NULL,NULL,NULL,0,NULL,NULL 22415,417690,231332,Yearling Autobiographer Citizen Patrol Guru,NULL,NULL,0,NULL,NULL 22416,50633,613510,Citizen Patrol,NULL,NULL,0,NULL,NULL 22417,418536,845497,NULL,NULL,NULL,0,NULL,NULL 22418,1362096,199820,Notable Question Yearling,NULL,NULL,0,NULL,NULL 22419,2320898,605116,NULL,NULL,NULL,0,NULL,NULL 22420,70124,1054839,Revival Yearling Supporter Necromancer Critic Custodian Informed Custodian Yearling Nice Answer Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 22421,6771264,1054839,Revival Yearling Supporter Necromancer Critic Custodian Informed Custodian Yearling Nice Answer Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 22422,254448,330710,NULL,NULL,NULL,0,NULL,NULL 22423,66572,428093,NULL,NULL,NULL,0,NULL,NULL 22424,1776295,841608,Famous Question,NULL,NULL,0,NULL,NULL 22425,423149,1020123,Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 22426,1438494,1150441,Yearling Notable Question Popular Question Popular Question Popular Question Famous Question Inquisitive Yearling Popular Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22427,287764,614714,NULL,NULL,NULL,0,NULL,NULL 22428,324462,128977,Necromancer ruby-on-rails Yearling Nice Answer Enlightened Revival python Yearling Caucus Constituent Necromancer Necromancer Nice Answer Good Answer Necromancer Yearling Revival Revival,NULL,NULL,0,NULL,NULL 22429,390200,866655,NULL,NULL,NULL,0,NULL,NULL 22430,268440,755194,Yearling Notable Question,NULL,NULL,0,NULL,NULL 22431,122906,1447464,NULL,NULL,NULL,0,NULL,NULL 22432,318,70211,Favorite Question Notable Question Yearling Necromancer Announcer Custodian Popular Question,NULL,NULL,0,NULL,NULL 22433,46884,287510,Critic Commentator Announcer Famous Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 22434,111233,579332,NULL,NULL,NULL,0,NULL,NULL 22435,251947,562076,NULL,NULL,NULL,0,NULL,NULL 22436,440390,1275647,NULL,NULL,NULL,0,NULL,NULL 22437,1928013,1295799,Teacher,NULL,NULL,0,NULL,NULL 22438,400522,783605,NULL,NULL,NULL,0,NULL,NULL 22439,106138,908022,NULL,NULL,NULL,0,NULL,NULL 22440,777022,115655,Yearling Necromancer Civic Duty Editor Excavator Nice Answer Necromancer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 22441,634119,469898,Yearling Necromancer Supporter Curious Popular Question Scholar Autobiographer Notable Question Yearling Excavator Famous Question Caucus Constituent Nice Question Nice Answer Custodian,NULL,NULL,0,NULL,NULL 22442,279201,805743,NULL,NULL,NULL,0,NULL,NULL 22443,1101,432606,NULL,NULL,NULL,0,NULL,NULL 22444,125951,264750,Caucus Organizer Commentator Tumbleweed Caucus Yearling Student Scholar Census Caucus Nice Question Popular Question,NULL,NULL,0,NULL,NULL 22445,3981504,167626,Popular Question Yearling Nice Answer Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22446,252806,678944,Editor Nice Answer,NULL,NULL,0,NULL,NULL 22447,141319,1143227,NULL,NULL,NULL,0,NULL,NULL 22448,53666,1122242,Populist Announcer,NULL,NULL,0,NULL,NULL 22449,178223,487892,Proofreader Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Yearling Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened Announcer Caucus Constituent Announcer Documentation User Yearling Deputy Reviewer Announcer Nice Answer cmake Caucus Constituent c++ Yearling,NULL,NULL,0,NULL,NULL 22450,503931,1240777,Informed,NULL,NULL,0,NULL,NULL 22451,53422,676749,NULL,NULL,NULL,0,NULL,NULL 22452,755788,273354,NULL,NULL,NULL,0,NULL,NULL 22453,503452,595605,Citizen Patrol Yearling Notable Question Popular Question Notable Question Popular Question Good Question Notable Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Documentation User Notable Question Popular Question Yearling Nice Question Notable Question Nice Question Popular Question Popular Question Nice Question Nice Question Notable Question Famous Question Good Question Popular Question Good Question Notable Question Notable Question Notable Question Custodian Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Good Question,NULL,NULL,1,What does the is keyword do in typescript typescript pI came across some code that looks like this ppre codeexport function foo arg string arg is MyType return code prepI haven bee able to search for codeis code in either the docs or google it pretty common word and shows up on basically every page ppWhat does the keyword do in that context,NULL 22454,6931627,1502642,NULL,NULL,NULL,0,NULL,NULL 22455,918544,110458,Notable Question Yearling,NULL,NULL,0,NULL,NULL 22456,103648,87429,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 22457,210561,1011781,Yearling,NULL,NULL,0,NULL,NULL 22458,416463,125899,NULL,NULL,NULL,0,NULL,NULL 22459,215390,348513,NULL,NULL,NULL,0,NULL,NULL 22460,1040120,544425,NULL,NULL,NULL,0,NULL,NULL 22461,515036,226037,Popular Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22462,457446,1112527,NULL,NULL,NULL,0,NULL,NULL 22463,77873,783493,NULL,NULL,NULL,0,NULL,NULL 22464,646213,57643,Yearling Commentator Nice Question Yearling Famous Question Autobiographer Yearling Good Answer,NULL,NULL,0,NULL,NULL 22465,304681,220738,Revival Revival Nice Question Yearling Notable Question Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 22466,143806,880056,Yearling Yearling Critic Revival Custodian Organizer Yearling Custodian Nice Answer Enlightened Caucus Constituent Yearling Peer Pressure Custodian Caucus Yearling Documentation User Caucus Constituent Tumbleweed,NULL,NULL,0,NULL,NULL 22467,186409,340648,Nice Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Autobiographer Popular Question Famous Question Self-Learner Good Question Popular Question Notable Question Notable Question Yearling Inquisitive Good Question Popular Question Custodian Custodian Popular Question Notable Question Yearling Popular Question Notable Question,NULL,Python deduplicate list of Dictionaries by Value of Key python list dictionary duplicates pI have pretty basic but not quite working function to dedupe list of dictionaries from key values by adding the key value to list for keeping track ppre codedef dedupe rs delist for in rs if key not in delist delist append key else rs remove return rs code prepWhich gets used in the script just below on two lists of dictionaries ppre codefrom pprint import pprintrecords key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 records2 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 def dedupe rs delist for in rs if key not in delist delist append key else rs remove return rsif name main res dedupe records res2 dedupe records2 pprint res pprint res2 code prepFor either coderecords code or coderecords2 code would expect to get ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 code prepBut instead get for each of the two inputs ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 code prepI keep staring at and tweaking this but it not clear to me why it is not deleting the third instance if they are in sequence coderecords code or works for the one with three but fails on the one with two if the one with three instances are broken up coderecords2 code it in there but have to scroll down ll edit so it more clear Python deduplicate list of Dictionaries by Value of Key python list dictionary duplicates pI have pretty basic but not quite working function to dedupe list of dictionaries from key values by adding the key value to list for keeping track ppre codedef dedupe rs delist for in rs if key not in delist delist append key else rs remove return rs code prepWhich gets used in the script just below on two lists of dictionaries ppre codefrom pprint import pprintrecords key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 records2 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 def dedupe rs delist for in rs if key not in delist delist append key else rs remove return rsif name main res dedupe records res2 dedupe records2 pprint res pprint res2 code prepFor either coderecords code or coderecords2 code would expect to get ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 code prepBut instead get for each of the two inputs ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 code prepI keep staring at and tweaking this but it not clear to me why it is not deleting the third instance if they are in sequence coderecords code or works for the one with three but fails on the one with two if the one with three instances are broken up coderecords2 code sorry keep editing things probably shouldn rs is just the list fixed Python deduplicate list of Dictionaries by Value of Key python list dictionary duplicates pI have pretty basic but not quite working function to dedupe list of dictionaries from key values by adding the key value to list for keeping track ppre codedef dedupe rs delist for in rs if key not in delist delist append key else rs remove return rs code prepWhich gets used in the script just below on two lists of dictionaries ppre codefrom pprint import pprintrecords key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 records2 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 def dedupe rs delist for in rs if key not in delist delist append key else rs remove return rsif name main res dedupe records res2 dedupe records2 pprint res pprint res2 code prepFor either coderecords code or coderecords2 code would expect to get ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 code prepBut instead get for each of the two inputs ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 code prepI keep staring at and tweaking this but it not clear to me why it is not deleting the third instance if they are in sequence coderecords code or works for the one with three but fails on the one with two if the one with three instances are broken up coderecords2 code am extremefacepalm gah yeah sheesh knew it was something obvious Feel free to offer that as an answer if you want the points,1,Python deduplicate list of Dictionaries by Value of Key python list dictionary duplicates pI have pretty basic but not quite working function to dedupe list of dictionaries from key values by adding the key value to list for keeping track ppre codedef dedupe rs delist for in rs if key not in delist delist append key else rs remove return rs code prepWhich gets used in the script just below on two lists of dictionaries ppre codefrom pprint import pprintrecords key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 records2 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 05 55 00 07 54 00 00 00 00 05 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 def dedupe rs delist for in rs if key not in delist delist append key else rs remove return rsif name main res dedupe records res2 dedupe records2 pprint res pprint res2 code prepFor either coderecords code or coderecords2 code would expect to get ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 code prepBut instead get for each of the two inputs ppre code key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 16 47 00 20 04 00 00 00 00 05 54 00 05 55 00 07 54 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 20 05 00 25 56 key Item name Item positions 00 00 00 00 05 54 00 05 55 00 07 54 00 16 47 00 20 04 key Item name Item positions 00 07 55 00 11 23 00 11 24 00 16 46 key Item name Item positions 00 11 24 00 16 46 00 07 55 00 11 23 key Item name Item positions 00 20 05 00 25 56 code prepI keep staring at and tweaking this but it not clear to me why it is not deleting the third instance if they are in sequence coderecords code or works for the one with three but fails on the one with two if the one with three instances are broken up coderecords2 code,NULL 22468,142031,111559,NULL,NULL,NULL,0,NULL,NULL 22469,62022,217965,Custodian Nice Answer Notable Question Popular Question Notable Question Yearling Nice Question Famous Question Good Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 22470,6242762,217965,Custodian Nice Answer Notable Question Popular Question Notable Question Yearling Nice Question Famous Question Good Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 22471,3515,47604,Necromancer Necromancer Nice Answer Great Answer Yearling Notable Question Excavator Populist Electorate Nice Answer Good Answer Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 22472,1216912,1221321,NULL,NULL,NULL,0,NULL,NULL 22473,158139,17339,Famous Question Popular Question Good Question Nice Question Announcer Famous Question Nice Question Revival Yearling Nice Answer Popular Question Popular Question Nice Question Nice Question Notable Question Announcer Great Question Good Answer Famous Question Announcer Announcer Caucus Notable Question Popular Question Necromancer Yearling Nice Question Documentation User Notable Question Good Answer Yearling Good Answer Notable Question,NULL,pThere are few ways pulli href http perldoc perl org perlvar html rel noreferrer code code is the currently executing script as provided by POSIX relative to the current working directory if the script is at or below the CWD liliAdditionally codecwd code codegetcwd code and codeabs path code are provided by the href http perldoc perl org Cwd html rel noreferrer codeCwd code module and tell you where the script is being run from liliThe module href http perldoc perl org FindBin html rel noreferrer codeFindBin code provides the code Bin code amp code RealBin code variables that emusually em are the path to the executing script this module also provides code Script code amp code RealScript code that are the name of the script lili href http perldoc perl org perldata html Special Literals rel noreferrer code FILE code is the actual file that the Perl interpreter deals with during compilation including its full path li ulpI ve seen the first three href http perldoc perl org perlvar html rel noreferrer code code the href http perldoc perl org Cwd html rel noreferrer codeCwd code module and the href http perldoc perl org FindBin html rel noreferrer codeFindBin code module fail under codemod perl code spectacularly producing worthless output such as code code or an empty string In such environments use href http perldoc perl org perldata html Special Literals rel noreferrer code FILE code and get the path from that using the href http perldoc perl org File Basename html rel noreferrer codeFile Basename code module ppre codeuse File Basename my dirname dirname FILE code pre You can find when module was first included in the standard modules with this incantation perl use Module CoreList print Module CoreList first release File Basename echo For File Basename that was Perl which was released in the late 90s—I think it save to use by now pI wrote custom href http fasterxml github io jackson databind javadoc com fasterxml jackson databind JsonDeserializer html deserializer to handle timestamps in seconds Groovy syntax ppre codeclass UnixTimestampDeserializer extends JsonDeserializer lt DateTime gt Logger logger LoggerFactory getLogger UnixTimestampDeserializer class DateTime deserialize JsonParser jp DeserializationContext ctxt throws IOException JsonProcessingException String timestamp jp getText trim try return new DateTime Long valueOf timestamp 000 catch NumberFormatException logger warn Unable to deserialize timestamp timestamp return null code prepAnd then annotated my POGO to use that for the timestamp ppre codeclass TimestampThing using UnixTimestampDeserializer class DateTime timestamp public TimestampThing timestamp DateTime timestamp this timestamp timestamp code pre Groovy,0,NULL,NULL 22474,3372725,1419628,NULL,NULL,NULL,0,NULL,NULL 22475,5618114,1419628,NULL,NULL,NULL,0,NULL,NULL 22476,90705,892493,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Custodian Custodian Custodian Custodian Good Answer Revival Revival Nice Answer Enlightened Notable Question Yearling Nice Answer Enlightened Guru Caucus Constituent Good Answer Nice Answer linux Announcer Great Answer Guru Guru Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Announcer Yearling Nice Answer Enlightened Guru Famous Question Documentation User Great Answer Nice Answer Enlightened Good Answer Notable Question Caucus Constituent curl Great Answer Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Self-Learner Nice Answer tor Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 22477,413679,1179222,Notable Question Yearling Nice Answer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 22478,35487,677413,Editor Critic,NULL,NULL,0,NULL,NULL 22479,49201,552709,Yearling,NULL,NULL,0,NULL,NULL 22480,1562481,743635,NULL,NULL,NULL,0,NULL,NULL 22481,274073,94128,Yearling Revival Necromancer Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22482,78096,95642,Revival Notable Question Good Question Yearling Famous Question Nice Question Notable Question Great Question Famous Question Popular Question Famous Question Notable Question Nice Answer Nice Answer Popular Question Favorite Question Popular Question Good Question Yearling Popular Question Great Question Good Question Necromancer Notable Question Good Question Great Question Notable Question Notable Question Nice Question Nice Question Popular Question Necromancer Notable Question Census Nice Answer Popular Question Good Question Notable Question Yearling Nice Answer Famous Question Popular Question Notable Question Benefactor Great Question Favorite Question Famous Question Famous Question Necromancer Nice Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 22483,10216,410240,Yearling Notable Question,NULL,NULL,0,NULL,NULL 22484,243496,169336,NULL,NULL,NULL,0,NULL,NULL 22485,97178,270764,NULL,NULL,NULL,0,NULL,NULL 22486,452432,1330529,NULL,NULL,NULL,0,NULL,NULL 22487,333328,541373,Yearling,NULL,NULL,0,NULL,NULL 22488,3435655,986575,Tumbleweed Documentation User,NULL,NULL,0,NULL,NULL 22489,254304,986575,Tumbleweed Documentation User,NULL,NULL,0,NULL,NULL 22490,45064,203673,Nice Question Pundit Popular Question Famous Question Good Question Good Answer Populist Yearling Electorate Good Answer Custodian Custodian Tumbleweed Notable Question Popular Question Notable Question Yearling Famous Question Revival Nice Question Proofreader Yearling,NULL,pAs others have pointed out setInterval and setTimeout will do the trick wanted to highlight bit more advanced technique that learned from this excellent video by Paul Irish href http paulirish com 2010 10 things learned from the jquery source rel noreferrer http paulirish com 2010 10 things learned from the jquery source ppFor periodic tasks that might end up taking longer than the repeat interval like an HTTP request on slow connection it best not to use codesetInterval code If the first request hasn completed and you start another one you could end up in situation where you have multiple requests that consume shared resources and starve each other You can avoid this problem by waiting to schedule the next request until the last one has completed ppre code Use named immediately invoked function expression function worker get ajax test html function data Now that we ve completed the request schedule the next one result html data setTimeout worker 5000 code prepFor simplicity used the success callback for scheduling The down side of this is one failed request will stop updates To avoid this you could use the complete callback instead ppre code function worker ajax url ajax test html success function data result html data complete function Schedule the next request when the current one complete setTimeout worker 5000 code pre qbal open new question with more of your sample code so people can see exactly what you re trying to do based on that tiny sample it should be fine suspect your scheduling multiple timers someplace,0,NULL,NULL 22491,1489571,1015660,NULL,NULL,NULL,0,NULL,NULL 22492,13727,229967,Good Answer Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 22493,431663,275741,NULL,NULL,NULL,0,NULL,NULL 22494,1379094,551909,NULL,NULL,NULL,0,NULL,NULL 22495,832536,284775,Necromancer,NULL,NULL,0,NULL,NULL 22496,991483,139802,Good Question Popular Question Good Question Famous Question Notable Question Notable Question Nice Question Civic Duty Good Question Popular Question Famous Question Popular Question Notable Question Nice Question Nice Answer Yearling Famous Question Popular Question Popular Question Famous Question Popular Question Good Answer Necromancer Good Question Nice Question Nice Question Necromancer Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Good Question Yearling Popular Question Famous Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Good Question Popular Question Popular Question Necromancer Notable Question Great Question Necromancer Good Question Yearling Notable Question Nice Question Popular Question Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 22497,2222782,1134867,NULL,NULL,NULL,0,NULL,NULL 22498,11780,152526,Notable Question Good Question Popular Question Nice Question Yearling Custodian Necromancer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 22499,692953,461541,NULL,NULL,NULL,0,NULL,NULL 22500,1379852,1468204,Yearling,NULL,NULL,0,NULL,NULL 22501,1565819,1468204,Yearling,NULL,NULL,0,NULL,NULL 22502,390917,191289,Enthusiast Popular Question Organizer Yearling Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 22503,248398,304842,Famous Question Yearling,NULL,NULL,0,NULL,NULL 22504,13402,1031171,NULL,NULL,NULL,0,NULL,NULL 22505,184710,237744,Critic Notable Question,NULL,NULL,0,NULL,NULL 22506,153344,599317,NULL,NULL,NULL,0,NULL,NULL 22507,138877,343495,Yearling Famous Question Popular Question Nice Question Explainer Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Announcer Popular Question Notable Question Yearling Inquisitive,NULL,NULL,0,NULL,NULL 22508,402712,836737,NULL,NULL,NULL,0,NULL,NULL 22509,2021337,1344808,NULL,NULL,NULL,0,NULL,NULL 22510,96219,1344808,NULL,NULL,NULL,0,NULL,NULL 22511,182323,440238,NULL,NULL,NULL,0,NULL,NULL 22512,40636,417642,Popular Question Popular Question Famous Question Notable Question Yearling Popular Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 22513,214797,1116903,NULL,NULL,NULL,0,NULL,NULL 22514,894720,1290227,javascript Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer webpack Good Answer Nice Answer Good Answer Guru reactjs Nice Answer Enlightened Good Answer Yearling Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened html Good Answer Good Answer Great Answer Good Answer,NULL,NULL,1,NULL,Webpack umd library return Object default javascript module webpack umd pI writing lib with webpack with these settings ppre codeoutput path path join build filename my lib js library MyLib libraryTarget umd code prepMyLib ppre codeexport default function console log MyLib code prepThe problem is when try to load the build my lib js in browser the only way to access MyLib is through MyLib default ppAny idea strongIf you are asking about any idea of why strong ppIf you are using Babel to enable ES6 features then you are probably facing one of the changes between Babel5 and Babel6 ppWith Babel5 your code is transpiled to this ppre code use strict Object defineProperty exports esModule value true exports default function console log MyLib module exports exports default code prepBut with Babel6 you get ppre code use strict Object defineProperty exports esModule value true exports default function console log MyLib code prepDo you spot the difference ppre codemodule exports exports default code prepThis line was href https phabricator babeljs io T2212 rel nofollow killed in Babel6 Here it was decided pblockquote pTo always export default to codeexports default code blockquotep strongIf you are asking about any idea to workaround it strong ppYou can add this line yourself or use some kind of href https www npmjs com package babel plugin add module exports rel nofollow babel plugin that adds it for you ppre codeconst myLib function console log MyLib export default myLib module exports myLib code pre 22515,134585,379955,Notable Question,NULL,NULL,0,NULL,NULL 22516,5518127,66871,Popular Question,NULL,NULL,0,NULL,NULL 22517,321062,1559645,NULL,NULL,NULL,0,NULL,NULL 22518,7039706,983150,Student Supporter,NULL,NULL,0,NULL,NULL 22519,739198,983150,Student Supporter,NULL,NULL,0,NULL,NULL 22520,28188,59607,Nice Answer,NULL,NULL,0,NULL,NULL 22521,70229,807239,Good Question Guru Necromancer Good Answer Inquisitive Popular Question Yearling Nice Answer Stellar Question Nice Question Notable Question Custodian Popular Question Notable Question Popular Question Yearling Nice Answer Nice Question Documentation User Famous Question Custodian Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Good Answer Proofreader Custodian Necromancer,NULL,NULL,0,NULL,NULL 22522,1437680,374160,NULL,NULL,NULL,0,NULL,NULL 22523,238976,350382,Civic Duty Yearling,NULL,pCheckout this benchmark href http jsben ch bWfk9 rel noreferrer http jsben ch bWfk9 ppIn my previous tests where speed was main concern found ppre codeJSON parse JSON stringify obj code prepto be the fastest way to deep clone an object it beats out href https api jquery com jQuery extend rel noreferrer jQuery extend with deep flag set true by 10 20 ppjQuery extend is pretty fast when the deep flag is set to false shallow clone It is good option because it includes some extra logic for type validation and doesn copy over undefined properties etc but this will also slow you down little ppIf you know the structure of the objects you are trying to clone or can avoid deep nested arrays you can write simple codefor var in obj code loop to clone your object while checking hasOwnProperty and it will be much much faster than jQuery ppLastly if you are attempting to clone known object structure in hot loop you can get MUCH MUCH MORE PERFORMANCE by simply in lining the clone procedure and manually constructing the object ppJavaScript trace engines suck at optimizing codefor in code loops and checking hasOwnProperty will slow you down as well Manual clone when speed is an absolute must ppre codevar clonedObject knownProp obj knownProp code prepBeware using the codeJSON parse JSON stringify obj code method on codeDate code objects codeJSON stringify new Date code returns string representation of the date in ISO format which codeJSON parse code strongdoesn strong convert back to codeDate code object href https stackoverflow com questions 11491938 issues with date when using json stringify and json parse 11491993 11491993 See this answer for more details ppAdditionally please note that in Chrome 65 at least native cloning is not the way to go According to href https jsperf com efficient deep cloning teqniques rel noreferrer this JSPerf performing native cloning by creating new function is nearly strong800x strong slower than using JSON stringify which is incredibly fast all the way across the board Just came by to add comment that this throws away values that are Symbol objects as well,0,NULL,NULL 22524,407821,631359,NULL,NULL,NULL,0,NULL,NULL 22525,84921,636113,NULL,NULL,NULL,0,NULL,NULL 22526,252714,1543507,NULL,NULL,NULL,0,NULL,NULL 22527,6522,1560982,Yearling Popular Question Investor,NULL,NULL,0,NULL,NULL 22528,6662535,1560982,Yearling Popular Question Investor,NULL,NULL,0,NULL,NULL 22529,353224,1494111,NULL,NULL,NULL,0,NULL,NULL 22530,2506789,1171587,NULL,NULL,NULL,0,NULL,NULL 22531,406714,1171587,NULL,NULL,NULL,0,NULL,NULL 22532,153967,1256153,NULL,NULL,NULL,0,NULL,NULL 22533,166492,1282674,Nice Answer Good Answer Nice Answer Guru Yearling Investor Altruist Necromancer Popular Question Good Answer Nice Question Great Answer Good Answer Notable Question Caucus Constituent node.js Yearling Good Answer Custodian Notable Question Nice Answer Enlightened Caucus Constituent mongodb Mortarboard Nice Answer Enlightened Nice Answer Documentation User Nice Answer Enlightened Popular Question Census Popular Question Caucus Guru Yearling Good Answer Enlightened Nice Answer mongoose,NULL,NULL,0,NULL,NULL 22534,52014,632566,NULL,NULL,NULL,0,NULL,NULL 22535,159044,356964,NULL,NULL,NULL,0,NULL,NULL 22536,99270,1278134,NULL,NULL,NULL,0,NULL,NULL 22537,1351726,1507295,NULL,NULL,NULL,0,NULL,NULL 22538,225944,405150,Popular Question,NULL,NULL,0,NULL,NULL 22539,66717,719279,Yearling Guru Yearling Yearling Yearling Great Answer Student,NULL,NULL,0,NULL,NULL 22540,122431,242457,Yearling Necromancer Custodian Citizen Patrol Custodian Nice Answer Yearling Caucus Constituent Custodian Necromancer Announcer Student Custodian Scholar Necromancer Yearling Organizer Nice Answer Good Answer Revival Caucus Constituent Yearling Yearling Caucus Constituent Revival Popular Question Yearling Necromancer Yearling,NULL,NULL,1,NULL,ERROR must be member of role When creating schema in PostgreSQL postgresql pI logged in with superuser account and this is the process doing ppre code1 gt CREATE ROLE test WITH IN ROLE testroles PASSWORD testpasswd gt CREATE SCHEMA AUTHORIZATION test code prepThe role is correctly created but getting this error when trying to create the Schema ppre codeERROR must be member of role test code prepThanks in advance pI ran into this issue when using codeCREATE DATABASE code on Amazon RDS think it essentially the same as using codeCREATE SCHEMA code ppWhen using Amazon RDS the user issuing the codeCREATE DATABASE code must be member of the role that will be the owner of the database In my case the superuser account using is called coderoot code and going to create role codeo code which is going to own database coded code ppre codepostgres gt CREATE ROLE CREATE ROLEpostgres gt CREATE DATABASE OWNER ERROR must be member of role postgres gt GRANT TO root GRANT ROLEpostgres gt CREATE DATABASE OWNER CREATE DATABASE code pre 22541,5049076,27308,Good Answer Great Answer Yearling Nice Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 22542,1459790,1260205,NULL,NULL,NULL,0,NULL,NULL 22543,160089,358668,Good Answer Yearling,NULL,NULL,0,NULL,NULL 22544,160075,528131,Excavator Notable Question Custodian Notable Question Popular Question Self-Learner Popular Question Popular Question Popular Question Yearling Nice Answer Nice Answer Notable Question Documentation User Yearling Popular Question Popular Question Popular Question Notable Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 22545,565234,1487005,NULL,NULL,NULL,0,NULL,NULL 22546,200827,222875,Good Question,NULL,NULL,0,NULL,NULL 22547,774595,535071,Editor Necromancer Commentator Scholar Autobiographer Critic,NULL,NULL,0,NULL,NULL 22548,231628,1754,Populist Yearling Caucus Constituent Yearling Custodian Census Caucus Constituent Populist Yearling,NULL,NULL,0,NULL,NULL 22549,241423,783601,Nice Answer Yearling Yearling Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 22550,350151,689905,NULL,NULL,NULL,0,NULL,NULL 22551,7304810,1187448,Necromancer,NULL,NULL,0,NULL,NULL 22552,177073,257858,NULL,NULL,NULL,0,NULL,NULL 22553,495747,1355223,NULL,NULL,NULL,0,NULL,NULL 22554,5995,36170,Announcer Revival Yearling,NULL,NULL,0,NULL,NULL 22555,372641,354844,Revival Popular Question Nice Question,NULL,NULL,0,NULL,NULL 22556,384584,1513338,Self-Learner Popular Question Yearling Famous Question Good Question Nice Question Custodian Census Popular Question Good Question Yearling Informed Caucus,NULL,NULL,0,NULL,NULL 22557,7687222,1278993,NULL,NULL,NULL,0,NULL,NULL 22558,407726,1278993,NULL,NULL,NULL,0,NULL,NULL 22559,48099,527729,NULL,NULL,NULL,0,NULL,NULL 22560,2053657,527729,NULL,NULL,NULL,0,NULL,NULL 22561,1120422,97227,Informed Editor,NULL,NULL,0,NULL,NULL 22562,14672,661200,NULL,NULL,NULL,0,NULL,NULL 22563,181413,938183,Great Answer Commentator Famous Question Yearling Notable Question Nice Answer Enlightened Guru Custodian Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 22564,6591408,1501792,NULL,NULL,NULL,0,NULL,NULL 22565,735243,1501792,NULL,NULL,NULL,0,NULL,NULL 22566,1509909,1019466,NULL,NULL,NULL,0,NULL,NULL 22567,18508,532062,NULL,NULL,NULL,0,NULL,NULL 22568,464219,363576,NULL,NULL,NULL,0,NULL,NULL 22569,703535,306203,NULL,NULL,NULL,0,NULL,NULL 22570,103980,306203,NULL,NULL,NULL,0,NULL,NULL 22571,254891,887197,NULL,NULL,NULL,0,NULL,NULL 22572,506228,229726,Popular Question Notable Question Nice Question Yearling Notable Question Nice Question Revival,NULL,NULL,0,NULL,NULL 22573,327565,1460669,Scholar,NULL,NULL,0,NULL,NULL 22574,706098,697639,NULL,NULL,NULL,0,NULL,NULL 22575,504371,1052261,Necromancer Revival Necromancer Good Answer Good Answer Organizer Necromancer Necromancer Necromancer Nice Answer Popular Question Necromancer Yearling Nice Answer Popular Question Guru Good Answer Nice Answer Necromancer Notable Question Electorate Announcer Announcer Announcer Custodian Announcer Nice Answer Yearling Necromancer Great Answer Revival Promoter Disciplined Proofreader Suffrage Vox Populi Necromancer Self-Learner Yearling Custodian,NULL,NULL,0,NULL,NULL 22576,10920050,74865,Nice Answer Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Popular Question Notable Question Notable Question Popular Question Documentation Pioneer Famous Question python Nice Question Good Answer Nice Question Nice Question Good Answer Notable Question Popular Question Popular Question Great Answer Nice Question Popular Question Great Question Caucus Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Good Answer Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Famous Question Guru Popular Question Notable Question Notable Question Notable Question Documentation User Favorite Question Popular Question Necromancer Notable Question Popular Question Famous Question Popular Question Famous Question Notable Question Yearling Famous Question Good Question Notable Question Nice Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Favorite Question Popular Question Socratic Notable Question Famous Question Great Question Nice Question,NULL,NULL,1,rebar3 generate edoc for multiple apps erlang rebar3 pIf have an OTP layout like this ppre codefoo apps bar1 src bar2 src code prepHow can generate edoc for emboth em codebar1 code and codebar2 code ppIf run ppre coderebar3 edoc code prepwhat get is separate code html code files in codebar1 doc code and codebar2 doc code and none of the links between them work export types are not linked correctly ppThank you,NULL 22577,38000,74865,Nice Answer Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Popular Question Notable Question Notable Question Popular Question Documentation Pioneer Famous Question python Nice Question Good Answer Nice Question Nice Question Good Answer Notable Question Popular Question Popular Question Great Answer Nice Question Popular Question Great Question Caucus Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Good Answer Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Famous Question Guru Popular Question Notable Question Notable Question Notable Question Documentation User Favorite Question Popular Question Necromancer Notable Question Popular Question Famous Question Popular Question Famous Question Notable Question Yearling Famous Question Good Question Notable Question Nice Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Favorite Question Popular Question Socratic Notable Question Famous Question Great Question Nice Question,NULL,NULL,1,rebar3 generate edoc for multiple apps erlang rebar3 pIf have an OTP layout like this ppre codefoo apps bar1 src bar2 src code prepHow can generate edoc for emboth em codebar1 code and codebar2 code ppIf run ppre coderebar3 edoc code prepwhat get is separate code html code files in codebar1 doc code and codebar2 doc code and none of the links between them work export types are not linked correctly ppThank you,NULL 22578,1254195,326391,NULL,NULL,NULL,0,NULL,NULL 22579,106058,2131,Yearling Good Answer Nice Answer Yearling Nice Answer Custodian Announcer Curious Yearling,NULL,NULL,0,NULL,NULL 22580,47830,536967,NULL,NULL,NULL,0,NULL,NULL 22581,48494,1218280,Self-Learner Popular Question Yearling Tumbleweed Popular Question Caucus Popular Question Nice Answer Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 22582,163686,1530118,NULL,NULL,NULL,0,NULL,NULL 22583,276784,8243,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22584,10971472,507410,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22585,230977,507410,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22586,885982,1092148,NULL,NULL,NULL,0,NULL,NULL 22587,249557,403105,Great Answer Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Popular Question Yearling Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Great Answer Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 22588,73680,392558,Informed Autobiographer Documentation User,NULL,NULL,0,NULL,NULL 22589,16490,185859,Nice Answer Nice Answer wpf Notable Question Nice Question Custodian Nice Answer Enlightened multithreading Good Answer Nice Answer Enlightened .net Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Revival Census asynchronous Great Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 22590,95982,134020,Yearling Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 22591,137125,63439,Famous Question Great Question Yearling Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 22592,208907,1287181,Tumbleweed,NULL,NULL,0,NULL,NULL 22593,43799,126972,NULL,NULL,NULL,0,NULL,NULL 22594,53535,588169,NULL,NULL,NULL,0,NULL,NULL 22595,72330,1146276,NULL,NULL,NULL,0,NULL,NULL 22596,134257,955822,NULL,NULL,NULL,0,NULL,NULL 22597,110797,304089,NULL,NULL,NULL,0,NULL,NULL 22598,14249,86886,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 22599,428390,252225,Necromancer,NULL,NULL,0,NULL,NULL 22600,113449,403844,Good Answer Necromancer Necromancer Custodian Yearling Guru Caucus Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 22601,551884,572426,NULL,NULL,NULL,0,NULL,NULL 22602,451538,1391680,Supporter Editor,NULL,NULL,0,NULL,NULL 22603,767213,1391680,Supporter Editor,NULL,NULL,0,NULL,NULL 22604,1764526,1391680,Supporter Editor,NULL,NULL,0,NULL,NULL 22605,433111,1148117,Popular Question Yearling Popular Question Nice Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 22606,913464,726398,NULL,NULL,NULL,0,NULL,NULL 22607,649548,312648,Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 22608,1555143,1251452,Popular Question,NULL,NULL,0,NULL,NULL 22609,105130,1164771,NULL,NULL,NULL,0,NULL,NULL 22610,1533685,415349,Yearling Popular Question Caucus Nice Answer Custodian Popular Question Yearling Notable Question Popular Question Custodian Yearling Stellar Question Popular Question,NULL,NULL,0,NULL,NULL 22611,292358,1252368,Good Answer Good Answer Notable Question Notable Question Notable Question Custodian Yearling Custodian Custodian Popular Question Yearling Reviewer Popular Question Nice Question Great Answer Yearling,NULL,pYou might also find this useful non Windows only ppre codemysql gt pager less SFXmysql gt SELECT FROM sometable code prepThis will pipe the outut through the codeless code command line tool which with these parameters will give you tabular output that can be scrolled horizontally and vertically with the cursor keys ppLeave this view by hitting the codeq code key which will quit the codeless code tool will quit less immediately if the output already fits the screen is to prevent less from trying to clear the screen on exit See the less man page pYou might also find this useful non Windows only ppre codemysql gt pager less SFXmysql gt SELECT FROM sometable code prepThis will pipe the outut through the codeless code command line tool which with these parameters will give you tabular output that can be scrolled horizontally and vertically with the cursor keys ppLeave this view by hitting the codeq code key which will quit the codeless code tool See also http stackoverflow com questions 5611974 how do you set default pager for the mysql client on how to set default pager for MySQL client on the command line or config file pYou might also find this useful non Windows only ppre codemysql gt pager less SFXmysql gt SELECT FROM sometable code prepThis will pipe the outut through the codeless code command line tool which with these parameters will give you tabular output that can be scrolled horizontally and vertically with the cursor keys ppLeave this view by hitting the codeq code key which will quit the codeless code tool AFAIK it is my cnf without the,0,NULL,NULL 22612,257098,85188,Notable Question Excavator Self-Learner Census Popular Question,NULL,NULL,0,NULL,NULL 22613,605073,557430,Informed,NULL,NULL,0,NULL,NULL 22614,270237,932738,Yearling Guru,NULL,NULL,0,NULL,NULL 22615,470061,939228,NULL,NULL,NULL,0,NULL,NULL 22616,46544,955717,NULL,NULL,NULL,0,NULL,NULL 22617,101064,145023,Enthusiast,NULL,NULL,0,NULL,NULL 22618,614242,305310,NULL,NULL,NULL,0,NULL,NULL 22619,632710,290844,Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22620,810431,809331,Revival Nice Question,NULL,NULL,0,NULL,NULL 22621,161569,349071,NULL,NULL,NULL,0,NULL,NULL 22622,799371,1380442,Enthusiast Yearling,NULL,NULL,0,NULL,NULL 22623,1365591,736276,NULL,NULL,NULL,0,NULL,NULL 22624,193897,101648,Good Question,NULL,NULL,0,NULL,NULL 22625,143331,1467398,Popular Question Popular Question Caucus Promoter Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 22626,708946,1050304,NULL,NULL,NULL,0,NULL,NULL 22627,481488,330493,NULL,NULL,NULL,0,NULL,NULL 22628,139386,155300,NULL,NULL,NULL,0,NULL,NULL 22629,409675,121737,Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 22630,352415,433149,NULL,NULL,NULL,0,NULL,NULL 22631,396609,814642,NULL,NULL,NULL,0,NULL,NULL 22632,1045859,1289720,Revival Critic Custodian Student Informed Citizen Patrol Custodian Yearling Revival Documentation User Popular Question,NULL,NULL,0,NULL,NULL 22633,1319140,959211,NULL,NULL,NULL,0,NULL,NULL 22634,30998,443404,NULL,NULL,NULL,0,NULL,NULL 22635,93921,62365,Great Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Caucus Nice Answer Good Answer shell Nice Answer Enlightened Yearling Announcer Guru linux Nice Answer boost Yearling Nice Answer Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 22636,316398,526035,NULL,NULL,NULL,0,NULL,NULL 22637,367593,937784,NULL,NULL,NULL,0,NULL,NULL 22638,232828,832083,NULL,NULL,NULL,0,NULL,NULL 22639,458965,942517,Scholar Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 22640,100701,502048,NULL,NULL,NULL,0,NULL,NULL 22641,746843,776763,NULL,NULL,NULL,0,NULL,NULL 22642,87661,593053,Yearling Good Answer,NULL,NULL,0,NULL,NULL 22643,152745,372892,NULL,NULL,NULL,0,NULL,NULL 22644,867171,565626,Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22645,287301,208126,Nice Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22646,200680,1124618,Custodian Scholar Student Promoter Tumbleweed Self-Learner,NULL,NULL,0,NULL,NULL 22647,195601,1330261,Nice Answer Popular Question Good Question Caucus Constituent Yearling Custodian Citizen Patrol Notable Question Custodian Documentation User Custodian Census Caucus,NULL,NULL,0,NULL,NULL 22648,350136,364763,NULL,NULL,NULL,0,NULL,NULL 22649,3078774,980997,NULL,NULL,NULL,0,NULL,NULL 22650,378394,402949,Nice Answer Enlightened Yearling Promoter Nice Question Benefactor Proofreader Caucus Caucus Yearling Tumbleweed Nice Answer Enlightened Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 22651,542860,954588,NULL,NULL,NULL,0,NULL,NULL 22652,1167834,1052695,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22653,102926,335834,Revival,NULL,NULL,0,NULL,NULL 22654,184884,246676,Yearling Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 22655,1515566,1199419,NULL,NULL,NULL,0,NULL,NULL 22656,64711,269101,NULL,NULL,NULL,0,NULL,NULL 22657,224697,806962,NULL,NULL,NULL,0,NULL,NULL 22658,209356,206457,NULL,NULL,NULL,0,NULL,NULL 22659,887446,532936,NULL,NULL,NULL,0,NULL,NULL 22660,720532,747810,Notable Question,NULL,NULL,0,NULL,NULL 22661,620157,360815,Popular Question,NULL,NULL,0,NULL,NULL 22662,422843,1048959,Yearling Announcer Notable Question Curious Census Enthusiast Yearling,NULL,NULL,0,NULL,NULL 22663,76360,45080,Popular Question,NULL,NULL,0,NULL,NULL 22664,42462,877078,Guru,NULL,NULL,0,NULL,NULL 22665,230674,988942,Curious Yearling Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 22666,199074,138883,Nice Question Popular Question Popular Question Popular Question Custodian Popular Question Yearling Famous Question Custodian Popular Question Proofreader Good Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22667,141449,190159,Popular Question Yearling Popular Question Popular Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 22668,13555,38967,Nice Question Yearling Nice Answer Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 22669,342399,1019231,NULL,NULL,NULL,0,NULL,NULL 22670,619934,241541,Nice Question,NULL,NULL,0,NULL,NULL 22671,457520,1001695,Supporter Commentator Explainer Nice Question,NULL,NULL,0,NULL,NULL 22672,472821,546741,Guru Popular Question Enthusiast Yearling Yearling,NULL,NULL,0,NULL,NULL 22673,752660,574038,Teacher Editor,NULL,NULL,0,NULL,NULL 22674,448086,466891,NULL,NULL,NULL,0,NULL,NULL 22675,559581,464504,Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 22676,382363,814114,NULL,NULL,NULL,0,NULL,NULL 22677,24443,1144147,NULL,NULL,NULL,0,NULL,NULL 22678,15296,214890,Notable Question Guru Necromancer Nice Answer Good Answer Popular Question Yearling Nice Answer Enlightened Good Answer Notable Question Necromancer Caucus Nice Answer Documentation User Good Answer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 22679,296383,1496274,Supporter Informed Revival Revival Autobiographer Editor Citizen Patrol Commentator Student Scholar,NULL,NULL,0,NULL,NULL 22680,344265,5962,Popular Question Yearling Popular Question Curious Nice Question,NULL,NULL,0,NULL,NULL 22681,306100,981330,Commentator Informed Nice Question Yearling Announcer Caucus,NULL,NULL,0,NULL,NULL 22682,352205,643603,NULL,NULL,NULL,0,NULL,NULL 22683,926553,881882,Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Notable Question Custodian Promoter Nice Question Benefactor Notable Question Popular Question Popular Question Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22684,473182,912563,Popular Question Quorum Great Answer Famous Question Yearling Popular Question Caucus Popular Question Announcer Nice Question Necromancer Popular Question Caucus Notable Question Yearling Good Answer Popular Question Good Answer Guru Announcer Census Caucus Necromancer Nice Answer Yearling Altruist,NULL,pFor strongBootstrap strong if you want strongfull width strong and are using codeLESS code codeSASS code or something similar all you have to do is make use of href http getbootstrap com css grid less Bootstrap mixin functions codemake md column code codemake sm column code etc ppLESS ppre code col lg make lg column col md make md column col sm make sm column code prepSASS ppre code col lg make lg column col md make md column col sm make sm column code prepNot only can you build strongtrue full width bootstrap column classes strong using these mixins but you can also build all the strongrelated helper classes strong like code col md push code code col md pull code and code col md offset code ppLESS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepSASS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepOther answers talk about setting code code which is perfectly valid but that changes the core column width for all of bootstrap Using the above mixin functions will add column layout on top of the default bootstrap columns so it will not break any 3rd party tools or existing styling yes this can go right into your scss file if you are already correctly importing bootstrap scss pFor strongBootstrap strong if you want strongfull width strong and are using codeLESS code codeSASS code or something similar all you have to do is make use of href http getbootstrap com css grid less Bootstrap mixin functions codemake md column code codemake sm column code etc ppLESS ppre code col lg make lg column col md make md column col sm make sm column code prepSASS ppre code col lg make lg column col md make md column col sm make sm column code prepNot only can you build strongtrue full width bootstrap column classes strong using these mixins but you can also build all the strongrelated helper classes strong like code col md push code code col md pull code and code col md offset code ppLESS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepSASS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepOther answers talk about setting code code which is perfectly valid but that changes the core column width for all of bootstrap Using the above mixin functions will add column layout on top of the default bootstrap columns so it will not break any 3rd party tools or existing styling nothing extra is required for column layout in bootstrap See Fizzix answer https stackoverflow com 22799354 912563 for an example for bootstrap pFor strongBootstrap strong if you want strongfull width strong and are using codeLESS code codeSASS code or something similar all you have to do is make use of href http getbootstrap com css grid less Bootstrap mixin functions codemake md column code codemake sm column code etc ppLESS ppre code col lg make lg column col md make md column col sm make sm column code prepSASS ppre code col lg make lg column col md make md column col sm make sm column code prepNot only can you build strongtrue full width bootstrap column classes strong using these mixins but you can also build all the strongrelated helper classes strong like code col md push code code col md pull code and code col md offset code ppLESS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepSASS ppre code col md push make md column push col md pull make md column pull col md offset make md column offset code prepOther answers talk about setting code code which is perfectly valid but that changes the core column width for all of bootstrap Using the above mixin functions will add column layout on top of the default bootstrap columns so it will not break any 3rd party tools or existing styling please do just make it clear its for boostrap Hibernate on Strange delete insert behavior java hibernate orm jpa jpa pre code class Person on name PERSON LOCATIONS joinColumns name PERSON ID private List lt Location gt locations class Location code prepGiven the following class structure when try to add new location to the list of Person Locations it always results in the following SQL queries ppre codeDELETE FROM PERSON LOCATIONS WHERE PERSON ID idOfPerson code prepAnd ppre codeA lotsa inserts into the PERSON LOCATIONS table code prepHibernate JPA deletes all associated records for the given Person and re inserts all previous records plus the new one ppI had the idea that the equals hashcode method on Location would solve the problem but it didn change anything ppAny hints are appreciated ve found this happens with fetch FetchType EAGER on simple list operations as well not update or delete seems to have no effect,0,NULL,NULL 22685,398737,696159,NULL,NULL,NULL,0,NULL,NULL 22686,380238,798481,Popular Question,NULL,NULL,0,NULL,NULL 22687,463250,1316428,NULL,NULL,NULL,0,NULL,NULL 22688,83918,1527967,Yearling,NULL,NULL,0,NULL,NULL 22689,91191,282666,Yearling Nice Answer Famous Question django Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 22690,531134,1519535,Nice Answer,NULL,NULL,0,NULL,NULL 22691,398160,241408,NULL,NULL,NULL,0,NULL,NULL 22692,1480,181037,NULL,NULL,pI solved this issue on Yosemite by both installing and linking codelibxml2 code and codelibxslt code through brew ppre codebrew install libxml2brew install libxsltbrew link libxml2 forcebrew link libxslt force code prepIf you have solved the problem using this method but it pops up again at later time you might need to run this strongbefore strong the four lines above ppre codebrew unlink libxml2brew unlink libxslt code prepIf you are having permission errors with Homebrew especially on El Capitan href https github com Homebrew homebrew blob master share doc homebrew El Capitan and Homebrew md rel noreferrer this is helpful document In essence regardless of OS version try running ppre codesudo chown whoami admin usr local code pre This worked on Sierra XCode where the xcode upgrade from to ruined things,0,NULL,NULL 22693,606238,376679,NULL,NULL,NULL,0,NULL,NULL 22694,456654,1296175,Yearling Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 22695,169073,382617,Necromancer,NULL,NULL,0,NULL,NULL 22696,582099,224951,NULL,NULL,NULL,0,NULL,NULL 22697,153329,261693,NULL,NULL,NULL,0,NULL,NULL 22698,354272,1148832,NULL,NULL,NULL,0,NULL,NULL 22699,103311,39167,Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 22700,26503,873121,Revival,NULL,NULL,0,NULL,NULL 22701,239761,830125,Guru Guru Good Question Yearling Nice Answer Enlightened Populist Caucus Constituent Yearling Documentation User Great Answer Census Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22702,887954,282222,NULL,NULL,NULL,0,NULL,NULL 22703,69816,990313,NULL,NULL,NULL,0,NULL,NULL 22704,745150,619155,NULL,NULL,NULL,0,NULL,NULL 22705,25318,679378,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 22706,424226,401740,NULL,NULL,NULL,0,NULL,NULL 22707,584405,1478873,NULL,NULL,NULL,0,NULL,NULL 22708,193694,546786,Necromancer,NULL,NULL,0,NULL,NULL 22709,78747,256854,Yearling Notable Question Popular Question Nice Answer Necromancer Good Answer Caucus Nice Answer Necromancer Yearling Favorite Question Necromancer Caucus Constituent Necromancer Good Question Nice Answer Good Answer Necromancer Yearling Caucus Popular Question Necromancer Nice Answer Popular Question Revival Good Answer Notable Question Necromancer,NULL,NULL,0,NULL,NULL 22710,194683,429795,Famous Question Famous Question Good Answer Yearling Notable Question Yearling Enlightened Guru Yearling Good Question,NULL,NULL,0,NULL,NULL 22711,37798,697346,NULL,NULL,NULL,0,NULL,NULL 22712,420501,236465,Nice Answer Nice Answer Enlightened Nice Answer Nice Answer shell Good Answer Good Answer Nice Answer unit-testing Nice Answer testing Great Answer Cleanup Nice Answer Necromancer Nice Answer Custodian Nice Answer Enlightened Guru Caucus Nice Answer Yearling Necromancer Nice Answer Enlightened Nice Answer java Great Answer Nice Answer Nice Answer Nice Answer Caucus Announcer linux Necromancer Documentation User Nice Answer Nice Answer Enlightened Yearling eclipse Guru bash Good Answer Caucus emulation xml Nice Answer Enlightened Good Answer Good Answer macos Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 22713,464176,604666,NULL,NULL,NULL,0,NULL,NULL 22714,259183,302786,NULL,NULL,NULL,0,NULL,NULL 22715,90489,475051,Student,NULL,NULL,0,NULL,NULL 22716,767,196844,Nice Answer Popular Question Nice Answer Revival Notable Question Nice Question Popular Question Famous Question Popular Question Necromancer Announcer Nice Answer Announcer Nice Answer Popular Question Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question Necromancer Famous Question Nice Answer Necromancer Custodian Popular Question Announcer Announcer Popular Question Announcer Nice Answer Enlightened Caucus Announcer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Popular Question Announcer Yearling Popular Question Popular Question Nice Answer Announcer Nice Answer Socratic Necromancer Caucus Popular Question Announcer Nice Question Good Answer Famous Question Popular Question Popular Question Peer Pressure Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Nice Question Popular Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Good Answer Good Answer Necromancer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 22717,3388517,1532903,NULL,NULL,NULL,0,NULL,NULL 22718,11096930,1172617,NULL,NULL,NULL,0,NULL,NULL 22719,7049071,1566615,NULL,NULL,NULL,0,NULL,NULL 22720,3170566,1123985,Nice Answer Yearling Popular Question Good Answer Necromancer Populist Yearling,NULL,NULL,0,NULL,NULL 22721,32076,1123985,Nice Answer Yearling Popular Question Good Answer Necromancer Populist Yearling,NULL,NULL,0,NULL,NULL 22722,52826,184354,Nice Answer Good Answer Good Answer Yearling Census Caucus Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 22723,12983,574190,Yearling Famous Question Notable Question Notable Question Nice Question Nice Question Revival Nice Question Popular Question Notable Question Good Question Popular Question Popular Question Pundit Notable Question Popular Question Notable Question Good Answer Nice Question Popular Question Necromancer Notable Question Nice Answer Notable Question Popular Question Yearling Great Answer Famous Question Nice Question Popular Question Announcer Nice Question Nice Answer Notable Question Nice Answer Popular Question Famous Question Popular Question Good Question Necromancer Popular Question Good Question Popular Question Good Question Popular Question Popular Question Notable Question Announcer Yearling Popular Question Announcer Nice Question Famous Question Notable Question Nice Question Favorite Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22724,16416,979425,NULL,NULL,NULL,0,NULL,NULL 22725,1054890,843822,Guru Nice Answer Enlightened Nice Answer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Yearling pyqt4 Nice Answer Enlightened pyside Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 22726,210509,1460654,NULL,NULL,NULL,0,NULL,NULL 22727,132818,1259478,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22728,1077880,40736,Student Yearling Revival Yearling Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 22729,861423,450947,NULL,NULL,NULL,0,NULL,NULL 22730,155406,545567,NULL,NULL,NULL,0,NULL,NULL 22731,427531,365126,NULL,NULL,NULL,0,NULL,NULL 22732,1304115,1216959,Necromancer,NULL,NULL,0,NULL,NULL 22733,2317,278106,Yearling Necromancer Nice Answer Editor Custodian,NULL,NULL,0,NULL,NULL 22734,2307433,511769,NULL,NULL,NULL,0,NULL,NULL 22735,1984271,511769,NULL,NULL,NULL,0,NULL,NULL 22736,690629,511769,NULL,NULL,NULL,0,NULL,NULL 22737,171180,971070,Announcer Tenacious Necromancer Yearling Necromancer Self-Learner Caucus Constituent Nice Answer Nice Answer Yearling Popular Question Documentation User Caucus Nice Answer Notable Question Custodian Custodian android Excavator Popular Question Yearling,NULL,NULL,0,NULL,NULL 22738,241094,1404037,Populist Yearling Great Answer Yearling Student Yearling,NULL,NULL,0,NULL,NULL 22739,43330,477278,NULL,NULL,NULL,0,NULL,NULL 22740,190147,178749,NULL,NULL,NULL,0,NULL,NULL 22741,476491,192509,Notable Question,NULL,NULL,0,NULL,NULL 22742,231025,670095,NULL,NULL,NULL,0,NULL,NULL 22743,96331,203681,NULL,NULL,NULL,0,NULL,NULL 22744,265165,150062,Famous Question Famous Question Popular Question Popular Question Nice Question Nice Question Notable Question Socratic Popular Question Popular Question Nice Question Famous Question Famous Question Famous Question Nice Question Popular Question Popular Question Notable Question Yearling Good Question Popular Question Nice Question Popular Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question Popular Question Famous Question Good Question Popular Question Nice Question Famous Question Popular Question Nice Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Great Question Favorite Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 22745,1218545,1046097,Autobiographer,NULL,NULL,0,NULL,NULL 22746,252715,278970,NULL,NULL,NULL,0,NULL,NULL 22747,5450318,1032513,Autobiographer Student Scholar Teacher,NULL,NULL,0,NULL,NULL 22748,1277986,1241297,Yearling Yearling Nice Answer Enlightened Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 22749,2650924,1241297,Yearling Yearling Nice Answer Enlightened Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 22750,345129,31118,Nice Answer Yearling Popular Question Notable Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 22751,934765,1282135,NULL,NULL,NULL,0,NULL,NULL 22752,82990,776994,NULL,NULL,NULL,0,NULL,NULL 22753,239989,869937,NULL,NULL,NULL,0,NULL,NULL 22754,20235,122803,Editor,NULL,NULL,0,NULL,NULL 22755,1557132,304849,Yearling Nice Question Nice Answer Enlightened Yearling Notable Question Great Answer Yearling Cleanup,NULL,NULL,0,NULL,NULL 22756,569800,205528,Notable Question Good Question Yearling Good Answer Yearling Good Answer Nice Answer Enlightened Good Answer Yearling Revival Announcer,NULL,NULL,0,NULL,NULL 22757,71153,664245,Announcer,NULL,NULL,0,NULL,NULL 22758,91007,128580,Popular Question Good Answer Favorite Question Nice Answer Notable Question Nice Answer Famous Question Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Famous Question Nice Question Popular Question Great Question Notable Question Good Question Good Answer Good Question Famous Question Yearling Popular Question Famous Question Popular Question Nice Answer Famous Question Notable Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 22759,627672,490830,NULL,NULL,NULL,0,NULL,NULL 22760,1169505,1250342,NULL,NULL,NULL,0,NULL,NULL 22761,322250,1305978,Famous Question Curious Nice Question Popular Question,NULL,NULL,0,NULL,NULL 22762,7550282,670111,Popular Question Guru Yearling Yearling javascript Good Answer Yearling,NULL,NULL,0,NULL,NULL 22763,260770,670111,Popular Question Guru Yearling Yearling javascript Good Answer Yearling,NULL,NULL,0,NULL,NULL 22764,622127,1219318,Yearling Enthusiast Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 22765,15151,1078179,Necromancer Caucus Yearling Critic Nice Answer Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 22766,134785,765120,NULL,NULL,NULL,0,NULL,NULL 22767,1456073,985654,NULL,NULL,NULL,0,NULL,NULL 22768,356967,985654,NULL,NULL,NULL,0,NULL,NULL 22769,103442,244916,Yearling Nice Question Caucus Constituent Notable Question Famous Question Yearling Nice Answer Famous Question Caucus Constituent Announcer Nice Answer Curious Good Answer Yearling Good Question Caucus Constituent,NULL,NULL,0,NULL,NULL 22770,348098,693308,Popular Question,NULL,NULL,0,NULL,NULL 22771,5411,280650,Yearling Revival Good Answer Revival Custodian Enthusiast Necromancer Necromancer php Necromancer Necromancer Revival Great Answer Nice Answer Yearling Necromancer Necromancer Good Answer Guru Nice Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 22772,47879,1415833,NULL,NULL,NULL,0,NULL,NULL 22773,536331,935476,Critic Popular Question Good Question Popular Question Yearling Notable Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 22774,20159,38939,Enthusiast,NULL,NULL,0,NULL,NULL 22775,1506776,929387,NULL,NULL,NULL,0,NULL,NULL 22776,535111,1331256,NULL,NULL,NULL,0,NULL,NULL 22777,104693,117989,NULL,NULL,NULL,0,NULL,NULL 22778,4249,191103,Revival Guru Yearling Revival,NULL,NULL,0,NULL,NULL 22779,772777,1019228,Nice Answer Census Yearling,NULL,NULL,0,NULL,NULL 22780,88320,529204,NULL,NULL,NULL,0,NULL,NULL 22781,271062,528859,Commentator Tumbleweed Popular Question Curious Notable Question Teacher Citizen Patrol Yearling Necromancer Critic Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22782,69032,439266,NULL,NULL,NULL,0,NULL,NULL 22783,475236,91619,Notable Question Yearling Good Answer Yearling Census Yearling Announcer,NULL,NULL,0,NULL,NULL 22784,161469,2696,Yearling Good Answer Great Answer Nice Answer Enlightened Yearling Census Yearling,NULL,NULL,0,NULL,NULL 22785,242209,979584,Informed Autobiographer Teacher Necromancer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 22786,247044,1335334,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22787,424720,339942,NULL,NULL,NULL,0,NULL,NULL 22788,103568,128569,Yearling Notable Question Nice Answer Critic,NULL,NULL,0,NULL,NULL 22789,844717,248960,NULL,NULL,NULL,0,NULL,NULL 22790,218623,736289,NULL,NULL,NULL,0,NULL,NULL 22791,497558,352364,Nice Question,NULL,NULL,0,NULL,NULL 22792,155792,515275,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 22793,73325,1335272,Tumbleweed Student,NULL,NULL,0,NULL,NULL 22794,219317,867489,Editor Custodian Informed,NULL,NULL,0,NULL,NULL 22795,359820,1085070,NULL,NULL,NULL,0,NULL,NULL 22796,760416,538431,Notable Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22797,195643,538431,Notable Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22798,564276,1455225,NULL,NULL,NULL,0,NULL,NULL 22799,540919,1455225,NULL,NULL,NULL,0,NULL,NULL 22800,170346,409889,Teacher,NULL,NULL,0,NULL,NULL 22801,600288,1034223,Custodian Commentator Yearling Caucus Yearling Yearling Revival Yearling Custodian Great Answer Yearling,NULL,NULL,0,NULL,NULL 22802,24688,1034223,Custodian Commentator Yearling Caucus Yearling Yearling Revival Yearling Custodian Great Answer Yearling,NULL,NULL,0,NULL,NULL 22803,360166,1184849,NULL,NULL,NULL,0,NULL,NULL 22804,80936,356729,Popular Question Popular Question Revival Notable Question Yearling Nice Question Popular Question Notable Question Good Question Notable Question Enthusiast Taxonomist Popular Question Nice Answer Enlightened Custodian Notable Question Famous Question Yearling Documentation User Custodian Popular Question Yearling Nice Question Notable Question Popular Question Announcer Announcer python,NULL,NULL,0,NULL,NULL 22805,168165,783288,Nice Answer Enlightened Custodian Yearling Custodian Custodian Custodian Proofreader Nice Answer Enlightened Popular Question Necromancer Tag Editor Yearling Revival Notable Question Nice Answer Documentation User Necromancer Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 22806,402889,533306,NULL,NULL,NULL,0,NULL,NULL 22807,227322,605599,NULL,NULL,NULL,0,NULL,NULL 22808,1155889,1179986,NULL,NULL,NULL,0,NULL,NULL 22809,272065,539632,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 22810,724911,1232656,Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Yearling Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 22811,886059,149224,Popular Question,NULL,NULL,0,NULL,NULL 22812,104587,1517655,NULL,NULL,NULL,0,NULL,NULL 22813,719925,514730,Critic,NULL,NULL,0,NULL,NULL 22814,103348,613154,NULL,NULL,NULL,0,NULL,NULL 22815,7129,208,Good Answer Nice Question Nice Answer Yearling Favorite Question Famous Question Nice Answer Great Question Popular Question Yearling Taxonomist Famous Question Good Answer Famous Question Popular Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 22816,208636,1356400,Critic Informed Yearling Caucus,NULL,NULL,0,NULL,NULL 22817,772872,1058554,NULL,NULL,NULL,0,NULL,NULL 22818,469224,908101,NULL,NULL,NULL,0,NULL,NULL 22819,689266,782147,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 22820,366954,217141,NULL,NULL,NULL,0,NULL,NULL 22821,9412,1278,Good Answer Good Answer Revival Guru Good Answer Cleanup Yearling Nice Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Revival Good Answer Nice Answer Popular Question Caucus Yearling .net Nice Answer Good Answer Good Answer Yearling Good Answer Great Answer Necromancer,NULL,pIf you have JSON string and want to prettify it but don want to serialise it to and from known type then the following does the trick using JSON NET ppre codeusing System using System IO using Newtonsoft Json class JsonUtil public static string JsonPrettify string json using var stringReader new StringReader json using var stringWriter new StringWriter var jsonReader new JsonTextReader stringReader var jsonWriter new JsonTextWriter stringWriter Formatting Formatting Indented jsonWriter WriteToken jsonReader return stringWriter ToString code pre Thanks ve rolled it back to my previous version,0,NULL,NULL 22822,102661,925371,NULL,NULL,NULL,0,NULL,NULL 22823,17942,492242,NULL,NULL,NULL,0,NULL,NULL 22824,34095,234525,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22825,160362,425076,NULL,NULL,NULL,0,NULL,NULL 22826,335301,751089,Yearling Popular Question Nice Question Popular Question Good Question Announcer Popular Question Promoter Good Question Yearling Nice Answer Nice Answer Enlightened Notable Question Notable Question Census Good Answer Famous Question Popular Question Famous Question Yearling Nice Question Nice Question Popular Question Guru Good Answer Popular Question,NULL,NULL,0,NULL,NULL 22827,96315,847400,NULL,NULL,NULL,0,NULL,NULL 22828,12281,494990,Student Scholar,NULL,NULL,0,NULL,NULL 22829,1081652,742678,NULL,NULL,NULL,0,NULL,NULL 22830,1045384,918233,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 22831,122251,1468870,NULL,NULL,NULL,0,NULL,NULL 22832,1650508,812962,NULL,NULL,NULL,0,NULL,NULL 22833,138332,1243758,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22834,178719,1352334,Yearling Announcer Tenacious Commentator Revival Caucus Yearling Announcer Mortarboard Yearling Student Yearling Announcer Revival Announcer Tag Editor Organizer Necromancer Yearling Excavator Unsung Hero Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 22835,344993,230415,Nice Question Yearling Famous Question Nice Answer Good Answer Popular Question Yearling Nice Question Citizen Patrol Good Question Yearling Good Question Editor Yearling Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 22836,164933,604122,Popular Question Curious,NULL,NULL,0,NULL,NULL 22837,1711889,80833,Citizen Patrol,NULL,NULL,0,NULL,NULL 22838,3802543,1194934,NULL,NULL,NULL,0,NULL,NULL 22839,534941,1139339,Popular Question Custodian Teacher Self-Learner,NULL,NULL,0,NULL,NULL 22840,1906821,1094096,NULL,NULL,NULL,0,NULL,NULL 22841,312815,672118,NULL,NULL,NULL,0,NULL,NULL 22842,15937,793193,Yearling Nice Answer Enlightened Yearling Guru Great Answer Yearling,NULL,NULL,0,NULL,NULL 22843,123955,647290,NULL,NULL,NULL,0,NULL,NULL 22844,8790266,1212917,NULL,NULL,NULL,0,NULL,NULL 22845,343118,1127412,NULL,NULL,NULL,0,NULL,NULL 22846,181371,259609,Yearling Nice Answer Enlightened Notable Question Custodian Famous Question Good Answer Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 22847,86572,647662,NULL,NULL,NULL,0,NULL,NULL 22848,147564,974505,NULL,NULL,NULL,0,NULL,NULL 22849,497943,1027542,NULL,NULL,NULL,0,NULL,NULL 22850,1285196,253513,Yearling Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 22851,569796,1189427,NULL,NULL,NULL,0,NULL,NULL 22852,176852,647451,NULL,NULL,NULL,0,NULL,NULL 22853,120030,896410,NULL,NULL,NULL,0,NULL,NULL 22854,243743,1114328,Editor Student Announcer Yearling Commentator Announcer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 22855,54235,875528,NULL,NULL,NULL,0,NULL,NULL 22856,61254,875528,NULL,NULL,NULL,0,NULL,NULL 22857,1148311,932520,NULL,NULL,NULL,0,NULL,NULL 22858,205992,541306,Autobiographer,NULL,NULL,0,NULL,NULL 22859,100336,553554,Teacher Revival,NULL,NULL,0,NULL,NULL 22860,843384,529863,Citizen Patrol Editor Teacher Supporter Custodian Student,NULL,NULL,0,NULL,NULL 22861,198945,104337,Yearling Popular Question Excavator Popular Question Popular Question Popular Question Nice Answer Popular Question Yearling Famous Question Great Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22862,1038894,1535293,Teacher,NULL,NULL,0,NULL,NULL 22863,718848,562350,NULL,NULL,NULL,0,NULL,NULL 22864,4208648,258115,Necromancer,NULL,NULL,0,NULL,NULL 22865,218312,467573,Popular Question Notable Question Notable Question Notable Question Custodian Famous Question Great Answer Yearling Nice Question Yearling Announcer Notable Question Nice Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22866,3446490,1213112,Yearling Revival,NULL,NULL,0,NULL,NULL 22867,273351,1213112,Yearling Revival,NULL,NULL,0,NULL,NULL 22868,301934,149341,Nice Answer Nice Answer Enlightened Nice Answer bash Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened gcc Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Guru Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Populist Guru Nice Answer Enlightened mysql Great Answer Nice Answer Yearling Revival Nice Answer Enlightened Good Answer Nice Answer javascript hash Good Answer perl Nice Answer Guru jquery Guru Notable Question Good Answer Marshal Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Revival Nice Answer Enlightened Nice Answer terminal Nice Answer Nice Answer Enlightened multithreading Nice Answer python Caucus Nice Answer Synonymizer Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Documentation User browser Yearling html Necromancer linux Guru arrays macos macos Nice Answer Nice Answer Enlightened Good Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Notable Question Good Answer java Guru Nice Answer Enlightened Nice Answer c++ Nice Answer Enlightened http Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer kernel Nice Answer Enlightened Nice Answer Announcer database Nice Answer Enlightened Guru Guru Nice Answer Guru Enlightened amazon-web-services amazon-s3 Yearling memory-management Nice Answer sql memory Nice Answer Enlightened,NULL,Where can find list of Mac virtual key codes macos keyboard quartz graphics keycode cgkeycode pI using codeCGEventCreateKeyboardEvent code and need to know what codeCGKeyCode code values to use ppSpecifically am after the key code for the kbdCommand kbd key The docs give examples for other keys kbdz kbd is code6 code kbdshift kbd is code56 code ppThere must be list of Mac virtual keycodes somewhere The key codes used by Javascript are unrelated They re entirely different from the virtual key codes used by macOS pFrom page speed standpoint code code from CSS file should almost never be used as it can prevent stylesheets from being downloaded concurrently For instance if stylesheet contains the text ppre code url stylesheetB css code prepthen the download of the second stylesheet may not start until the first stylesheet has been downloaded If on the other hand both stylesheets are referenced in code lt link gt code elements in the main HTML page both can be downloaded at the same time If both stylesheets are always loaded together it can also be helpful to simply combine them into single file ppThere are occasionally situations where code code is appropriate but they are generally the exception not the rule There is no reason why would be faster You re probably looking at some sort of measurement artifact,0,NULL,NULL 22869,221283,1458909,Autobiographer Informed Organizer Suffrage Vox Populi Tag Editor Citizen Patrol Enthusiast Caucus Constituent Investor Altruist Documentation User,NULL,NULL,0,NULL,NULL 22870,497132,1260344,Supporter,NULL,NULL,0,NULL,NULL 22871,1204714,1060623,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22872,94665,78279,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 22873,1668751,914478,NULL,NULL,NULL,0,NULL,NULL 22874,224074,373199,NULL,NULL,NULL,0,NULL,NULL 22875,19298,20003,Famous Question Nice Answer Necromancer Nice Answer Popular Question Popular Question Famous Question Popular Question Nice Answer Popular Question Famous Question Notable Question Yearling Nice Answer Notable Question Necromancer Nice Answer Popular Question Notable Question Popular Question Necromancer Yearling python Stellar Question Notable Question Good Question Notable Question Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 22876,448668,668987,NULL,NULL,NULL,0,NULL,NULL 22877,172113,153352,Popular Question,NULL,NULL,0,NULL,NULL 22878,952541,328036,Popular Question Teacher Yearling Explainer Informed Autobiographer Yearling Yearling Organizer Yearling Custodian Custodian Custodian Citizen Patrol Yearling Enthusiast Suffrage Vox Populi Yearling Yearling Yearling Tenacious Nice Answer Enlightened Custodian Custodian,NULL,NULL,0,NULL,NULL 22879,158412,328036,Popular Question Teacher Yearling Explainer Informed Autobiographer Yearling Yearling Organizer Yearling Custodian Custodian Custodian Citizen Patrol Yearling Enthusiast Suffrage Vox Populi Yearling Yearling Yearling Tenacious Nice Answer Enlightened Custodian Custodian,NULL,NULL,0,NULL,NULL 22880,178150,1281744,NULL,NULL,NULL,0,NULL,NULL 22881,247475,61570,Informed Excavator Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22882,29930,1264716,NULL,NULL,NULL,0,NULL,NULL 22883,14842,450152,Teacher Caucus Editor Supporter Tag Editor Commentator Yearling Yearling Yearling Critic Tenacious Yearling Yearling Mortarboard Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 22884,265078,1144328,NULL,NULL,NULL,0,NULL,NULL 22885,317390,1337409,NULL,NULL,NULL,0,NULL,NULL 22886,7141,603284,NULL,NULL,NULL,0,NULL,NULL 22887,41751,929575,Notable Question,NULL,NULL,0,NULL,NULL 22888,179533,466554,Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 22889,130104,1422663,Necromancer Popular Question Good Answer Yearling Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 22890,415275,953422,NULL,NULL,NULL,0,NULL,NULL 22891,37934,245299,Yearling Yearling Census,NULL,NULL,0,NULL,NULL 22892,170989,1181104,Popular Question Suffrage Commentator Civic Duty Caucus Constituent Yearling Revival Electorate Vox Populi Necromancer,NULL,NULL,0,NULL,NULL 22893,1357208,1098472,NULL,NULL,NULL,0,NULL,NULL 22894,39313,562164,Nice Answer Yearling Commentator Good Answer,NULL,NULL,0,NULL,NULL 22895,2561777,1397732,NULL,NULL,NULL,0,NULL,NULL 22896,270632,1397732,NULL,NULL,NULL,0,NULL,NULL 22897,33016,39975,Nice Answer Good Answer Populist Notable Question Good Answer Good Answer Guru Guru Good Answer Populist Notable Question Notable Question Nice Answer Enlightened Necromancer Yearling Populist Guru Good Answer Nice Answer Guru Nice Answer Nice Answer Great Answer Nice Question Nice Answer Enlightened Great Answer Nice Answer Popular Question Yearling Great Answer Nice Answer Nice Answer Guru Good Answer Guru Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22898,7051128,600438,NULL,NULL,NULL,0,NULL,NULL 22899,278145,56959,Yearling Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 22900,222118,400,NULL,NULL,NULL,0,NULL,NULL 22901,391708,1446954,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 22902,389237,1646,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22903,295361,749787,Necromancer Supporter Nice Answer Autobiographer Yearling,NULL,NULL,0,NULL,NULL 22904,356660,800692,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 22905,1893650,1426511,NULL,NULL,NULL,0,NULL,NULL 22906,1016351,731220,Popular Question,NULL,NULL,0,NULL,NULL 22907,220582,530860,NULL,NULL,NULL,0,NULL,NULL 22908,207334,227736,Yearling,NULL,NULL,0,NULL,NULL 22909,514396,985631,Notable Question Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Yearling Caucus Favorite Question Good Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 22910,7162,1042997,Good Answer,NULL,NULL,0,NULL,NULL 22911,243618,233145,NULL,NULL,NULL,0,NULL,NULL 22912,821697,746418,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22913,293411,825734,Caucus Constituent,NULL,NULL,0,NULL,NULL 22914,414851,322777,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 22915,46792,1443511,NULL,NULL,NULL,0,NULL,NULL 22916,171313,279746,NULL,NULL,NULL,0,NULL,NULL 22917,27205,1219933,NULL,NULL,NULL,0,NULL,NULL 22918,885792,1236426,NULL,NULL,NULL,0,NULL,NULL 22919,2487996,1236426,NULL,NULL,NULL,0,NULL,NULL 22920,1027112,1507624,NULL,NULL,NULL,0,NULL,NULL 22921,487124,1442417,NULL,NULL,NULL,0,NULL,NULL 22922,888120,209980,NULL,NULL,NULL,0,NULL,NULL 22923,437516,812338,NULL,NULL,NULL,0,NULL,NULL 22924,915317,800795,NULL,NULL,NULL,0,NULL,NULL 22925,114236,1448200,NULL,NULL,NULL,0,NULL,NULL 22926,2449770,957589,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22927,564024,227169,Popular Question,NULL,NULL,0,NULL,NULL 22928,11878,1075108,Necromancer,NULL,NULL,0,NULL,NULL 22929,223320,721574,NULL,NULL,NULL,0,NULL,NULL 22930,164912,469642,NULL,NULL,NULL,0,NULL,NULL 22931,271372,560774,Popular Question Nice Answer Yearling Editor Commentator Tumbleweed Curious,NULL,NULL,0,NULL,NULL 22932,871873,910597,NULL,NULL,NULL,0,NULL,NULL 22933,178136,484625,NULL,NULL,NULL,0,NULL,NULL 22934,1035922,633071,Critic,NULL,NULL,0,NULL,NULL 22935,207168,718168,NULL,NULL,NULL,0,NULL,NULL 22936,55925,356789,Notable Question Notable Question Popular Question Guru Good Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Nice Question Famous Question Notable Question Notable Question Notable Question Notable Question Nice Question Nice Question Popular Question Guru Yearling Guru Famous Question Nice Question Yearling Notable Question Popular Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 22937,1986208,356789,Notable Question Notable Question Popular Question Guru Good Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Nice Question Famous Question Notable Question Notable Question Notable Question Notable Question Nice Question Nice Question Popular Question Guru Yearling Guru Famous Question Nice Question Yearling Notable Question Popular Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 22938,9127046,427294,NULL,NULL,NULL,0,NULL,NULL 22939,550594,269130,NULL,NULL,NULL,0,NULL,NULL 22940,542842,1406865,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 22941,244712,155734,Yearling Student Scholar Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 22942,155709,94778,Revival Custodian Citizen Patrol Revival Yearling,NULL,NULL,0,NULL,NULL 22943,62495,1052498,Famous Question Revival Critic Caucus Constituent Necromancer Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22944,397861,777604,Necromancer Nice Answer Yearling Good Answer Yearling Critic Populist Yearling Custodian Yearling Supporter,NULL,NULL,0,NULL,NULL 22945,7281073,481635,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22946,76394,481635,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 22947,1099927,705143,NULL,NULL,NULL,0,NULL,NULL 22948,1479146,1167386,NULL,NULL,NULL,0,NULL,NULL 22949,116609,1029953,Census Announcer,NULL,NULL,0,NULL,NULL 22950,105604,1357793,Custodian Yearling Critic Informed Caucus Constituent Enthusiast Yearling Great Answer Caucus Constituent Citizen Patrol Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 22951,248805,1162811,Commentator Popular Question Famous Question Curious Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 22952,2847863,1216142,Teacher Excavator Supporter Revival Necromancer Critic Commentator Peer Pressure Popular Question Nice Answer Yearling Notable Question Scholar Nice Question,NULL,NULL,0,NULL,NULL 22953,765287,3074,Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 22954,208989,384820,NULL,NULL,NULL,0,NULL,NULL 22955,67533,1219870,NULL,NULL,NULL,0,NULL,NULL 22956,250283,1513896,Supporter,NULL,NULL,0,NULL,NULL 22957,487274,223468,NULL,NULL,NULL,0,NULL,NULL 22958,312257,597799,Nice Answer,NULL,NULL,0,NULL,NULL 22959,347561,1116960,NULL,NULL,NULL,0,NULL,NULL 22960,499340,568342,Yearling Self-Learner Taxonomist Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22961,1038604,1256896,Famous Question Famous Question Famous Question Nice Question Famous Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 22962,98042,1251467,NULL,NULL,NULL,0,NULL,NULL 22963,38735,860803,NULL,NULL,NULL,0,NULL,NULL 22964,596255,255311,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 22965,431998,1278420,Informed Student Autobiographer Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 22966,115552,15962,Nice Answer Yearling Nice Answer Yearling Guru Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22967,264355,1093567,NULL,NULL,NULL,0,NULL,NULL 22968,377051,439533,Yearling Critic Good Question Scholar Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22969,342962,1074709,Custodian Informed Curious Caucus Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 22970,124225,1350593,Yearling Caucus Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 22971,54227,231245,Revival Good Answer Good Answer Enlightened Good Answer Good Answer Yearling Census Guru Guru Nice Answer Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 22972,428926,231245,Revival Good Answer Good Answer Enlightened Good Answer Good Answer Yearling Census Guru Guru Nice Answer Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 22973,295525,570490,NULL,NULL,NULL,0,NULL,NULL 22974,440690,53846,Necromancer Revival Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 22975,211947,178675,Tumbleweed Curious Citizen Patrol,NULL,NULL,0,NULL,NULL 22976,634269,1026157,NULL,NULL,NULL,0,NULL,NULL 22977,44943,490551,NULL,NULL,NULL,0,NULL,NULL 22978,70178,926081,NULL,NULL,NULL,0,NULL,NULL 22979,355652,49656,NULL,NULL,NULL,0,NULL,NULL 22980,75458,515228,NULL,NULL,NULL,0,NULL,NULL 22981,283604,495593,Revival Yearling Nice Answer Revival Yearling Good Answer Necromancer Nice Answer Nice Answer Yearling Nice Answer Documentation User Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 22982,47241,89063,Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22983,3231,781175,Curious Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 22984,1518359,1518731,NULL,NULL,NULL,0,NULL,NULL 22985,70905,16007,Necromancer Nice Answer Nice Answer Custodian Custodian Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Popular Question arm Nice Answer Yearling hardware Guru Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer mips Caucus Nice Answer Constituent cortex-m3 Nice Answer Good Answer Famous Question Yearling Custodian Nice Answer Documentation User Nice Answer Nice Answer Enlightened Enlightened Nice Question Nice Answer Guru Good Answer Nice Answer Good Answer Caucus Populist Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer,NULL,NULL,1,NULL,How do make an ARM source file into kernel that the Raspberry Pi will run assembly operating system arm kernel raspberry pi3 pI was inspired by href https github com ICTeam28 PiFox rel nofollow noreferrer this Starfox fan game to create game using ARM assembly on the Raspberry Pi have also looked at href http www cl cam ac uk projects raspberrypi tutorials os screen01 html rel nofollow noreferrer this tutorial series to get better understanding of the mailbox and frame buffer systems No matter which Make CMake use cannot get anything from either of those places to run on startup because they were expected to run on the original Raspberry Pi have looked at Valver bare metal programming tutorial the raspberrypi org bare metal forums and countless output source files from my own code just to understand how to print graphics on the screen and have gotten nowhere have used the X11 library in my code only to find that the output ARM source file simply calls the functions as is codebl XOpenDisplay code If try to execute the code given at the second link making sure to change the base peripheral address to code0x3F000000 code and the video core access to code0xC0000000 code while Raspbian is running get segmentation faults pp strongI want to have an assembly source file say codemain code and make it into binary say codekernel7 img code or similar that will run as soon as turn on my Raspberry Pi strong ppYes know making GUIs in high level languages is easier but am determined to make the game operate in ARM assembly Here are some answers that would be most helpful in my personal project polliPorting the code from the first two links to successfully run on my Pi upon startup bearing in mind that they produce the wrong binaries for my model liliTools for building custom OS that can inject assembly code as needed though not sure how plausible that is liliResources to learn how to make GUIs in ARM assembly that can run on the latest Raspbian without creating segmentation faults or similar errors li olpThank you pbaremetal is probably the right way to go here the baking pi series is fine lots of folks have started there it has issues that will probably get in your way The baremetal forum at raspberrypi org is very very good there is pinned thread with lots of baremetal information and examples ppvectors ppre code globl start start mov sp 0x8000 bl notmainhang hang globl PUT32PUT32 str r1 r0 bx lr globl GET32GET32 ldr r0 r0 bx lr globl dummydummy bx lr code prepnotmain ppre codeextern void PUT32 unsigned int unsigned int extern unsigned int GET32 unsigned int extern void dummy unsigned int define SYSTIMERCLO 0x20003004 define GPFSEL3 0x2020000C define GPFSEL4 0x20200010 define GPSET1 0x20200020 define GPCLR1 0x2020002C 0x01000000 17 seconds 0x00400000 seconds define TIMER BIT 0x01000000 define TIMER BIT 0x00400000int notmain void unsigned int ra ra GET32 GPFSEL4 ra amp lt lt 21 ra lt lt 21 PUT32 GPFSEL4 ra while PUT32 GPSET1 lt lt 47 32 while ra GET32 SYSTIMERCLO if ra amp TIMER BIT TIMER BIT break PUT32 GPCLR1 lt lt 47 32 while ra GET32 SYSTIMERCLO if ra amp TIMER BIT break return code prepmemmap ppre codeMEMORY ram ORIGIN 0x8000 LENGTH 0x1000 SECTIONS text text gt ram bss bss gt ram code prepbuild ppre codearm none eabi as warn fatal warnings vectors vectors oarm none eabi gcc Wall Werror O2 nostdlib nostartfiles ffreestanding notmain notmain oarm none eabi ld vectors notmain memmap notmain elfarm none eabi objdump notmain elf gt notmain listarm none eabi objcopy notmain elf binary kernel img code prepon pi zero remove any config txt save or rename any kernel img and copy this kernel img and the leds will blink ppremove the code and branch into your main add that to the project and there you go ppthe framebuffer for video is super easy one mailbox handshake and you have base address to shove pixels into ppstart with pi zero for pi3 you will want to be in aarch32 mode which you may need config txt to do it for the most part works the same if you are not doing any interrupts if you are then there are plenty of baremetal examples to show you the modifications 22986,75400,635981,Good Answer Favorite Question Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened meteorite Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Guru spacebars Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened javascript Good Answer Revival pug Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Good Answer Good Answer Nice Question Notable Question Good Answer Nice Answer Enlightened Good Question Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Famous Question Notable Question Good Answer Nice Answer Yearling Good Answer Nice Answer Good Answer Good Question Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Question Popular Question,NULL,h2meteor h2pSpacebars gained lot of functionality in including native code code Helpers are no longer needed to solve this problem you can simply do this ppre code each getArray lt div class item data value gt this lt div gt each code prepor if you want to use the index inside helper ppre code each getArray lt div class item data value someHelper gt this lt div gt each code preh2meteor lt h2pSometime in the future spacebars may offer the ability to determine the index directly in the template However as of this writing the only way to get the index is to modify the result returned by the helper For example you could have codegetArray code return an array of objects which contain codevalue code and an codeindex code like this ppre codegetArray function var self this self myArray self myArray return map self myArray function value index return value value index index code prepAnd the template could use the index like this ppre code lt template name someObject gt each getArray lt div class item data value index gt value lt div gt each lt template gt code prepAlso see href https stackoverflow com questions 21815713 in meteor is there way to access array index in spacebars this answer for similar example with cursors ppIt worth mentioning that you probably don need to store the index in the DOM itself via codedata value code unless it needed by an external plugin As you can see in the example below each codeitem code has context with an index value For more information see href https www discovermeteor com blog guide to meteor templates data contexts rel noreferrer this blog post ppre codeTemplate someObject events click item function console log this index code pre You ll need to use helper In the example above someHelper could be implemented to return the value of its argument,0,NULL,NULL 22987,125435,13850,Guru Popular Question Good Answer Yearling Necromancer Notable Question Necromancer Nice Answer Famous Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 22988,926515,746133,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 22989,366679,372319,Critic,NULL,NULL,0,NULL,NULL 22990,418125,23528,Popular Question Popular Question sql Good Answer Nice Answer Nice Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Question Nice Answer Notable Question Nice Answer Enlightened Popular Question Nice Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Notable Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Documentation Beta Notable Question Nice Answer Enlightened Documentation Pioneer Good Answer knockout.js Great Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Question Yearling Nice Question Guru Nice Answer Enlightened Good Answer Popular Question Popular Question Guru Caucus Nice Question Nice Answer Guru Census Good Answer Nice Answer Enlightened Good Answer Notable Question Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Notable Question Good Answer Good Answer Good Question Nice Answer Enlightened Nice Answer regex Notable Question Guru Popular Question Popular Question Notable Question Guru Good Answer Nice Answer Guru Popular Question Nice Answer Nice Answer Enlightened Good Answer angularjs Nice Answer Enlightened Guru Caucus visual-studio Guru Guru Nice Answer Good Answer Great Answer Nice Answer Enlightened Yearling Famous Question Documentation User Great Answer Famous Question Great Question .net Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Census Notable Question Good Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Guru Caucus Famous Question Nice Answer Popular Question Nice Answer Nice Answer Notable Question Good Answer Good Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Good Answer Nice Answer Notable Question Nice Answer Enlightened Notable Question Famous Question Yearling Great Answer Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 22991,265259,616677,Autobiographer,NULL,NULL,0,NULL,NULL 22992,95101,1142267,Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 22993,43741,265283,NULL,NULL,NULL,0,NULL,NULL 22994,1437888,1127020,NULL,NULL,NULL,0,NULL,NULL 22995,7836298,1127020,NULL,NULL,NULL,0,NULL,NULL 22996,670020,1513076,Critic Popular Question,NULL,NULL,0,NULL,NULL 22997,220289,710416,Popular Question Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 22998,369331,897612,Yearling Yearling Student Scholar Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 22999,1123769,566325,NULL,NULL,NULL,0,NULL,NULL 23000,57929,164255,Yearling Good Answer mongodb Yearling,NULL,NULL,0,NULL,NULL 23001,620256,1007455,NULL,NULL,NULL,0,NULL,NULL 23002,147076,1125910,Yearling Guru Good Answer Nice Answer Enlightened Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Good Question Yearling Census Custodian Unsung Hero Notable Question Good Answer Famous Question Notable Question Good Question Necromancer Popular Question Documentation User Yearling Census Guru Enlightened Nice Answer Custodian Custodian Guru Organizer Popular Question Custodian Reviewer laravel,NULL,NULL,0,NULL,NULL 23003,11625,1470045,NULL,NULL,NULL,0,NULL,NULL 23004,106542,201546,NULL,NULL,NULL,0,NULL,NULL 23005,759706,52485,NULL,NULL,NULL,0,NULL,NULL 23006,37222,447770,NULL,NULL,NULL,0,NULL,NULL 23007,519752,918758,NULL,NULL,NULL,0,NULL,NULL 23008,43992,491983,NULL,NULL,NULL,0,NULL,NULL 23009,874240,410097,NULL,NULL,NULL,0,NULL,NULL 23010,2915352,1194055,Editor Popular Question,NULL,NULL,0,NULL,NULL 23011,1324007,1440379,NULL,NULL,NULL,0,NULL,NULL 23012,6168544,1544510,NULL,NULL,NULL,0,NULL,NULL 23013,415123,866284,NULL,NULL,NULL,0,NULL,NULL 23014,283324,877637,Autobiographer,NULL,NULL,0,NULL,NULL 23015,59475,25560,Organizer Yearling Nice Question,NULL,NULL,0,NULL,NULL 23016,413743,1010177,NULL,NULL,NULL,0,NULL,NULL 23017,386966,221261,Necromancer Tumbleweed Yearling Notable Question Commentator,NULL,NULL,0,NULL,NULL 23018,32779,1239400,NULL,NULL,NULL,0,NULL,NULL 23019,2624246,230149,NULL,NULL,NULL,0,NULL,NULL 23020,2846938,230149,NULL,NULL,NULL,0,NULL,NULL 23021,110883,963347,NULL,NULL,NULL,0,NULL,NULL 23022,1448140,189533,Yearling Popular Question,NULL,NULL,0,NULL,NULL 23023,46008,1273272,NULL,NULL,NULL,0,NULL,NULL 23024,137623,797292,Tumbleweed Yearling Favorite Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 23025,3222021,797292,Tumbleweed Yearling Favorite Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 23026,181232,592815,Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 23027,1890872,592815,Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 23028,113780,45777,Nice Question Popular Question Yearling Notable Question Famous Question Popular Question Good Question Taxonomist Great Question Nice Question Notable Question Good Question Great Question Yearling Famous Question Favorite Question Nice Answer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 23029,296691,361969,Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 23030,252922,1179380,Yearling,NULL,NULL,0,NULL,NULL 23031,626660,796830,NULL,NULL,NULL,0,NULL,NULL 23032,184145,471073,Yearling Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 23033,1382258,459146,Popular Question Yearling Nice Answer Yearling Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 23034,137558,778901,NULL,NULL,NULL,0,NULL,NULL 23035,812438,755542,NULL,NULL,NULL,0,NULL,NULL 23036,26764,1073526,NULL,NULL,NULL,0,NULL,NULL 23037,131858,496605,NULL,NULL,NULL,0,NULL,NULL 23038,22070,320392,Nice Answer Necromancer Yearling Critic Popular Question Nice Answer Popular Question Yearling,NULL,NULL,1,NULL,Referencing current branch in github readme md github markdown travis ci pIn my github repo readme md file have Travis CI badge use the following link ppre codehttps travis ci org joegattnet joegattnet v3 png branch staging code prepThe obvious problem is that the branch is hardcoded Is it possible to use some sort of variable so that the branch is the one currently being viewed pI worked around this issue with git pre commit hook that re writes the Travis line in the README md with the current branch An example of usage and pre commit Python code for the question as asked are below ph2Usage h2pre class lang sh prettyprint override codedandye git checkout feature123 origin masterBranch feature123 set up to track remote branch master from origin Switched to new branch feature123 dandye echo Feature123 gt gt README md dandye git add README md dandye git commit Added Feature123 Starting pre commit hook Replacing Build Status https travis ci org joegattnet joegattnet v3 png branch master travis with Build Status https travis ci org joegattnet joegattnet v3 png branch feature123 travis pre commit hook complete feature123 54897ee Added Feature123 file changed insertions deletion dandye cat README md grep Build Status Build Status https travis ci org joegattnet joegattnet v3 png branch feature123 travis dandye code preh2 href https gist github com dandye dfe0870a6a1151c89ed9 rel nofollow noreferrer Python code for the pre commit code h2pre class lang sh prettyprint override codedandye cat git hooks pre commit code prepre class lang py prettyprint override code usr bin python Referencing current branch in github readme md This pre commit hook updates the README md file sTravis badge with the current branch Gist at http stackoverflow com questions 18673694 referencing current branch in github readme md http www git scm com book en v2 Customizing Git Git Hooks https docs travis ci com user status images https gist github com dandye dfe0870a6a1151c89ed9 import subprocess Hard Coded for your repo ToDo get from remote GITHUB USER joegattnet REPO joegattnet v3 print Starting pre commit hook BRANCH subprocess check output git rev parse abbrev ref HEAD strip String with hard coded values See Embedding Status Images for alternate formats private repos svg etc Build Status https travis ci org joegattnet joegattnet v3 png branch staging travis Output String with Variable substitutiontravis Build Status https travis ci org GITHUB USER REPO png branch BRANCH travis format BRANCH BRANCH GITHUB USER GITHUB USER REPO REPO sentinel str Build Status readmelines open README md readlines with open README md as fh for aline in readmelines if sentinel str in aline and travis aline print Replacing aline nwith travis format aline aline travis travis fh write travis else fh write aline subprocess check output git add README md print pre commit hook complete code pre 23039,301373,968445,NULL,NULL,NULL,0,NULL,NULL 23040,94167,1249851,Scholar Necromancer Yearling Nice Answer Nice Answer Yearling Custodian Necromancer Yearling Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 23041,94215,1249851,Scholar Necromancer Yearling Nice Answer Nice Answer Yearling Custodian Necromancer Yearling Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 23042,2342163,1249851,Scholar Necromancer Yearling Nice Answer Nice Answer Yearling Custodian Necromancer Yearling Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 23043,1028021,1164608,NULL,NULL,NULL,0,NULL,NULL 23044,258007,1272149,Informed Autobiographer Organizer Popular Question,NULL,NULL,0,NULL,NULL 23045,128609,444609,Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23046,87531,1070325,Peer Pressure Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 23047,1561924,1247069,NULL,NULL,NULL,0,NULL,NULL 23048,204184,787296,Nice Answer Enlightened Guru Good Answer Good Answer Yearling Popular Question Caucus Nice Answer Good Answer Constituent Census Notable Question Popular Question Guru Yearling Guru Popular Question Self-Learner Popular Question Great Answer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 23049,2261462,1486719,Nice Question Caucus Editor Necromancer Necromancer Popular Question Scholar Student Supporter Teacher Yearling Revival Self-Learner Commentator Announcer,NULL,NULL,0,NULL,NULL 23050,1318475,38795,Great Question Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 23051,336802,1082093,Critic Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23052,1210575,155546,NULL,NULL,NULL,0,NULL,NULL 23053,91973,620178,Critic Nice Question Popular Question Commentator Yearling Famous Question,NULL,NULL,0,NULL,NULL 23054,6499064,1153206,Nice Question Notable Question Editor Commentator Curious,NULL,NULL,0,NULL,NULL 23055,354464,1153206,Nice Question Notable Question Editor Commentator Curious,NULL,NULL,0,NULL,NULL 23056,150471,816422,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 23057,6571,117831,Necromancer Yearling Necromancer Excavator Necromancer Yearling Nice Answer Announcer Nice Answer Yearling Notable Question,NULL,pYou may find this mixin useful it overrides the get serializer class method and allows you to declare dict that maps action and serializer class or fallback to the usual behavior ppre codeclass MultiSerializerViewSetMixin object def get serializer class self Look for serializer class in self serializer action classes which should be dict mapping action name key to serializer class value class MyViewSet MultiSerializerViewSetMixin ViewSet serializer class MyDefaultSerializer serializer action classes list MyListSerializer my action MyActionSerializer def my action If there no entry for that action then just fallback to the regular get serializer class lookup self serializer class DefaultSerializer try return self serializer action classes self action except KeyError AttributeError return super MultiSerializerViewSetMixin self get serializer class code pre This should be pull request for django rest framework,0,NULL,NULL 23058,15216,981233,NULL,NULL,NULL,0,NULL,NULL 23059,292562,495501,Enthusiast Good Answer Yearling,NULL,NULL,0,NULL,NULL 23060,29402,643613,Informed,NULL,NULL,0,NULL,NULL 23061,1059128,1229711,NULL,NULL,NULL,0,NULL,NULL 23062,180074,5017,Great Question Good Question Favorite Question Good Answer Notable Question Good Question Popular Question Nice Question Popular Question Popular Question Good Answer Popular Question Notable Question Yearling Great Answer Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Custodian Nice Question Census Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Notable Question Caucus Notable Question Popular Question Yearling Nice Question Great Question Notable Question Popular Question Popular Question Notable Question Enlightened Great Question Great Answer Nice Question Guru Nice Answer Popular Question Necromancer Yearling Famous Question Popular Question Guru Popular Question,NULL,NULL,0,NULL,NULL 23063,232012,1162841,Tumbleweed,NULL,NULL,0,NULL,NULL 23064,65237,447186,Popular Question Famous Question Notable Question Tumbleweed Nice Question Yearling Notable Question Popular Question Famous Question Famous Question Notable Question Good Question Notable Question Yearling Good Question Good Answer Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 23065,172137,364956,NULL,NULL,NULL,0,NULL,NULL 23066,163888,1296496,NULL,NULL,NULL,0,NULL,NULL 23067,325083,1186582,Popular Question Curious,NULL,NULL,0,NULL,NULL 23068,464614,838679,Popular Question,NULL,NULL,0,NULL,NULL 23069,25622,872150,Notable Question Nice Question Notable Question Famous Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Notable Question Great Answer Popular Question Good Question Notable Question Nice Answer Enlightened Nice Question Famous Question Popular Question Popular Question Yearling Famous Question Guru Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 23070,12792,249597,Revival Custodian Informed Autobiographer Yearling Good Answer Student Nice Answer Necromancer Yearling Revival Necromancer Custodian Citizen Patrol Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 23071,539637,1269987,Popular Question Popular Question Notable Question Caucus Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 23072,9224659,762450,Popular Question,NULL,NULL,0,NULL,NULL 23073,725109,762450,Popular Question,NULL,NULL,0,NULL,NULL 23074,47007,793933,NULL,NULL,NULL,0,NULL,NULL 23075,783148,341654,Nice Answer Custodian Custodian Custodian Yearling Nice Answer Self-Learner Popular Question Revival Popular Question Notable Question Yearling Popular Question Popular Question Caucus Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 23076,35527,66937,Critic,NULL,NULL,0,NULL,NULL 23077,12769,1483593,NULL,NULL,NULL,0,NULL,NULL 23078,838784,1368170,NULL,NULL,NULL,0,NULL,NULL 23079,223033,779792,Revival Necromancer,NULL,NULL,0,NULL,NULL 23080,13474,638452,Nice Answer Yearling Nice Answer Nice Answer Caucus Good Question Yearling Necromancer Famous Question Documentation User Nice Answer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 23081,360019,293776,Good Answer Yearling,NULL,NULL,0,NULL,NULL 23082,81301,458344,NULL,NULL,NULL,0,NULL,NULL 23083,2216899,884638,Teacher,NULL,NULL,0,NULL,NULL 23084,302514,211883,NULL,NULL,NULL,0,NULL,NULL 23085,275081,427829,NULL,NULL,NULL,0,NULL,NULL 23086,62620,408949,NULL,NULL,NULL,0,NULL,NULL 23087,613696,1506920,Teacher Editor Self-Learner,NULL,NULL,0,NULL,NULL 23088,3454436,1506920,Teacher Editor Self-Learner,NULL,NULL,0,NULL,NULL 23089,378194,221794,Necromancer Good Answer Good Answer Famous Question Good Question Necromancer Caucus Yearling Nice Answer Custodian Notable Question Notable Question Caucus Good Answer Documentation User Guru Yearling Caucus Custodian Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 23090,1859468,1207036,NULL,NULL,NULL,0,NULL,NULL 23091,381838,374506,Nice Question Notable Question Good Answer Nice Question,NULL,NULL,0,NULL,NULL 23092,97995,324626,NULL,NULL,NULL,0,NULL,NULL 23093,76408,822294,NULL,NULL,NULL,0,NULL,NULL 23094,3227055,236924,Famous Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Good Question Notable Question Notable Question Famous Question Nice Question Good Question Yearling Nice Question Popular Question Famous Question Nice Question Famous Question Yearling Popular Question Good Question Famous Question Popular Question Popular Question Nice Question Nice Question Good Question Favorite Question Nice Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 23095,100619,1382854,Autobiographer,NULL,NULL,0,NULL,NULL 23096,61927,525338,Necromancer Revival Curious Promoter Benefactor Yearling,NULL,NULL,0,NULL,NULL 23097,839279,835670,Popular Question,NULL,NULL,0,NULL,NULL 23098,397135,1032486,NULL,NULL,NULL,0,NULL,NULL 23099,306131,464978,NULL,NULL,NULL,0,NULL,NULL 23100,95037,70489,Yearling Notable Question Popular Question Notable Question Self-Learner Yearling Popular Question Notable Question Nice Answer Popular Question Notable Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23101,404952,654073,NULL,NULL,NULL,0,NULL,NULL 23102,680649,1418365,NULL,NULL,NULL,0,NULL,NULL 23103,291493,1502368,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 23104,69729,384137,Popular Question Notable Question Notable Question Nice Question Yearling Nice Question Popular Question Nice Question Popular Question Nice Question Popular Question Yearling Popular Question Notable Question Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 23105,3683608,1116638,NULL,NULL,NULL,0,NULL,NULL 23106,123843,1116638,NULL,NULL,NULL,0,NULL,NULL 23107,123818,219931,Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Revival Nice Question Popular Question Famous Question Nice Question Notable Question Yearling Nice Question Notable Question Favorite Question Necromancer Revival Notable Question Famous Question Notable Question Popular Question Nice Question Popular Question Popular Question Good Answer Yearling Popular Question Great Question Popular Question Popular Question Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 23108,264192,806641,NULL,NULL,NULL,0,NULL,NULL 23109,195922,1189949,NULL,NULL,NULL,0,NULL,NULL 23110,215798,1093779,NULL,NULL,NULL,0,NULL,NULL 23111,359551,1114667,Popular Question Teacher Supporter Organizer Informed Autobiographer Critic Commentator Yearling Excavator Yearling Suffrage Vox Populi Custodian Custodian Custodian Citizen Patrol Yearling Explainer Enthusiast Civic Duty Yearling Tenacious Yearling Unsung Hero Fanatic Caucus Documentation User Yearling Caucus Electorate,NULL,NULL,0,NULL,NULL 23112,399059,264584,Yearling,NULL,NULL,0,NULL,NULL 23113,641394,789326,NULL,NULL,NULL,0,NULL,NULL 23114,1476305,936930,Revival Notable Question Notable Question Necromancer Yearling Famous Question Necromancer Yearling Popular Question Caucus Famous Question Notable Question Good Question Nice Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23115,444385,681569,Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 23116,308393,465074,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 23117,226342,1320920,NULL,NULL,NULL,0,NULL,NULL 23118,269265,1129236,Popular Question,NULL,NULL,0,NULL,NULL 23119,306757,1139036,Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23120,905600,253811,Yearling Nice Answer powershell Nice Answer Notable Question Nice Answer Yearling Notable Question Notable Question Guru Great Answer Nice Answer Good Answer Good Answer Yearling Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Popular Question xslt-1.0 Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 23121,155782,363003,NULL,NULL,NULL,0,NULL,NULL 23122,134003,354531,Nice Question Famous Question Famous Question Good Question Yearling Popular Question Popular Question Yearling Good Question Yearling Favorite Question Inquisitive Custodian,NULL,NULL,0,NULL,NULL 23123,68715,1469049,Notable Question,NULL,NULL,0,NULL,NULL 23124,73540,647807,NULL,NULL,NULL,0,NULL,NULL 23125,6808283,144530,Informed Nice Answer Yearling Yearling Good Answer Nice Answer Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 23126,78131,660102,NULL,NULL,NULL,0,NULL,NULL 23127,262814,1347137,NULL,NULL,NULL,0,NULL,NULL 23128,2387536,1349974,Popular Question Popular Question Informed Autobiographer Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 23129,3777788,1349974,Popular Question Popular Question Informed Autobiographer Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 23130,999649,1349974,Popular Question Popular Question Informed Autobiographer Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 23131,735505,975923,Popular Question Notable Question Editor Promoter Curious Autobiographer Self-Learner,NULL,NULL,0,NULL,NULL 23132,566363,1353610,Editor Supporter,NULL,NULL,0,NULL,NULL 23133,91434,714011,Commentator Curious Teacher Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23134,389298,603473,Notable Question,NULL,NULL,0,NULL,NULL 23135,2917181,555344,NULL,NULL,NULL,0,NULL,NULL 23136,21972,858385,NULL,NULL,NULL,0,NULL,NULL 23137,258479,1074847,Nice Answer Enlightened Caucus Constituent Yearling Good Answer Revival Caucus Constituent Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 23138,401847,151843,Critic Nice Answer Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 23139,2603652,1458374,Civic Duty Nice Answer Yearling Famous Question Caucus Popular Question Yearling Electorate Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 23140,307106,1402745,Popular Question Self-Learner Popular Question Yearling Notable Question Caucus Notable Question Nice Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 23141,3107886,1402745,Popular Question Self-Learner Popular Question Yearling Notable Question Caucus Notable Question Nice Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 23142,563010,197714,Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 23143,551362,491522,NULL,NULL,NULL,0,NULL,NULL 23144,299379,606826,Nice Answer Yearling Census,NULL,NULL,0,NULL,NULL 23145,909595,701274,Critic Notable Question Yearling Custodian Popular Question Commentator,NULL,NULL,0,NULL,NULL 23146,198923,179579,NULL,NULL,NULL,0,NULL,NULL 23147,144746,635283,NULL,NULL,NULL,0,NULL,NULL 23148,200163,739984,Custodian Editor Tumbleweed Student,NULL,NULL,0,NULL,NULL 23149,106207,1413801,Yearling Caucus,NULL,NULL,0,NULL,NULL 23150,62295,130627,Yearling Nice Answer Yearling Nice Answer Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 23151,1149384,592669,NULL,NULL,NULL,0,NULL,NULL 23152,2728814,1084146,Popular Question,NULL,NULL,0,NULL,NULL 23153,490141,1262728,Excavator Yearling Necromancer Necromancer Scholar Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 23154,11207565,1304377,NULL,NULL,NULL,0,NULL,NULL 23155,126381,443594,Yearling Student Custodian Organizer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 23156,915179,1243804,NULL,NULL,NULL,0,NULL,NULL 23157,40415,1105744,NULL,NULL,NULL,0,NULL,NULL 23158,197505,1333832,Tumbleweed,NULL,NULL,0,NULL,NULL 23159,73196,1196205,Yearling,NULL,NULL,0,NULL,NULL 23160,74092,613487,NULL,NULL,NULL,0,NULL,NULL 23161,76388,562692,Yearling Popular Question Popular Question Notable Question Popular Question Yearling Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 23162,162301,588678,NULL,NULL,NULL,0,NULL,NULL 23163,290752,475061,Tumbleweed Yearling Self-Learner Nice Answer Enlightened Promoter,NULL,NULL,0,NULL,NULL 23164,90419,141253,Nice Answer Enlightened Popular Question Yearling Necromancer Caucus Popular Question Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 23165,694647,709223,Popular Question Notable Question Good Question Famous Question Popular Question Yearling Custodian Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Good Question Yearling Popular Question Socratic Notable Question Famous Question Cleanup Popular Question Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,pTo get the result in your code you would do ppre codefunction extend for var key in if hasOwnProperty key key key return code prepKeep in mind that the way you used extend there will modify the default object If you don want that use ppre code extend default config code prepA more robust solution that mimics jQuery functionality would be as follows ppre codefunction extend for var lt arguments length for var key in arguments if arguments hasOwnProperty key arguments key arguments key return arguments code pre this doesn recurse like extend does,0,NULL,NULL 23166,49548,232811,NULL,NULL,NULL,0,NULL,NULL 23167,11217,238983,Yearling Informed Scholar Caucus Constituent Notable Question Caucus,NULL,NULL,0,NULL,NULL 23168,77570,198891,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23169,181007,952503,Revival Revival,NULL,NULL,0,NULL,NULL 23170,107361,432782,Famous Question Popular Question Favorite Question Famous Question Famous Question Yearling Nice Answer Good Question Yearling Nice Question Good Question Notable Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 23171,553595,147320,Great Answer Good Answer Famous Question Nice Answer Nice Answer Enlightened Popular Question Good Answer Popular Question Yearling Notable Question Notable Question Nice Question Popular Question Nice Question Notable Question Yearling Great Question Nice Answer Caucus Favorite Question Notable Question Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 23172,33614,219527,Teacher Informed Autobiographer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 23173,806011,335245,NULL,NULL,NULL,0,NULL,NULL 23174,604776,893121,Commentator Autobiographer,NULL,NULL,0,NULL,NULL 23175,23219,441643,NULL,NULL,NULL,0,NULL,NULL 23176,1165180,1112627,NULL,NULL,NULL,0,NULL,NULL 23177,48567,1316298,NULL,NULL,NULL,0,NULL,NULL 23178,5916,237401,Civic Duty Necromancer Documentation User,NULL,NULL,0,NULL,NULL 23179,163391,806783,Editor Informed Supporter,NULL,NULL,0,NULL,NULL 23180,47444,152008,NULL,NULL,NULL,0,NULL,NULL 23181,400209,321911,NULL,NULL,NULL,0,NULL,NULL 23182,135132,1034248,Announcer Notable Question Yearling Caucus Yearling Caucus Notable Question Famous Question Unsung Hero Announcer Yearling,NULL,NULL,0,NULL,NULL 23183,830365,1543255,NULL,NULL,,0,, 23184,89027,1019225,NULL,NULL,NULL,0,NULL,NULL 23185,1519978,805018,NULL,NULL,NULL,0,NULL,NULL 23186,24551,190373,NULL,NULL,NULL,0,NULL,NULL 23187,84795,1374518,Necromancer,NULL,NULL,0,NULL,NULL 23188,52012,466714,Editor,NULL,NULL,0,NULL,NULL 23189,24022,368144,Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 23190,289462,529187,Favorite Question Favorite Question Yearling Nice Answer Notable Question Popular Question Good Answer Necromancer Caucus Necromancer Yearling Necromancer Notable Question Popular Question Great Question Nice Answer Caucus Popular Question Great Question Popular Question Necromancer Yearling Necromancer Necromancer Excavator Caucus Necromancer Nice Answer Famous Question Necromancer Nice Question Nice Answer Announcer Popular Question Nice Answer Notable Question Announcer,NULL,strongNO strong It is correct and accurate It is NOT talking about your files currently with codeCRLF code It is instead talking about files with codeLF code ppIt should read pblockquote pwarning strongIf you check it out or clone to another folder with your current core autocrlf configuration strong LF will be replaced by CRLF pThe file will have its original line endings in your strongcurrent strong working directory blockquotepThis picture should explain what it means href https stack imgur com ZXee5 jpg rel noreferrer img src https stack imgur com ZXee5 jpg alt enter image description here What works well for me is core autocrlf false in Intellij set Line separator use Intellij Idea on both Mac and Windows,1,NULL,Windows git warning LF will be replaced by CRLF is that warning tail backward git penv pulliWindows lilimsysgit li ulpWheng codegit commit code it says ppre codewarning LF will be replaced by CRLF code prepIs this warning tail backward brI edit file in Windows the end of line is codeCRLF code just like this pic brimg src https stack imgur com IMh60 jpg alt enter image description here brAnd git changes it to codeLF code for committing to repo brSo think the correct warning is ppre codewarning CRLF will be replaced by LF code pre strongNO strong It is correct and accurate It is NOT talking about your files currently with codeCRLF code It is instead talking about files with codeLF code ppIt should read pblockquote pwarning strongIf you check it out or clone to another folder with your current core autocrlf configuration strong LF will be replaced by CRLF pThe file will have its original line endings in your strongcurrent strong working directory blockquotepThis picture should explain what it means href https stack imgur com ZXee5 jpg rel noreferrer img src https stack imgur com ZXee5 jpg alt enter image description here 23191,48891,952528,NULL,NULL,NULL,0,NULL,NULL 23192,165842,1329107,NULL,NULL,NULL,0,NULL,NULL 23193,33762,1558781,Nice Answer Supporter Scholar,NULL,NULL,0,NULL,NULL 23194,370461,218049,NULL,NULL,NULL,0,NULL,NULL 23195,182299,1347131,NULL,NULL,NULL,0,NULL,NULL 23196,737431,1541037,NULL,NULL,NULL,0,NULL,NULL 23197,664621,587324,Supporter,NULL,NULL,0,NULL,NULL 23198,221056,1291009,Supporter,NULL,NULL,0,NULL,NULL 23199,181126,1391737,Informed,NULL,NULL,0,NULL,NULL 23200,10422035,571231,NULL,NULL,NULL,0,NULL,NULL 23201,127188,247623,Yearling Nice Answer Enlightened Popular Question Nice Question Famous Question Good Question Guru Nice Answer Enlightened Revival Necromancer Nice Question Nice Answer Nice Question Necromancer Nice Answer Enlightened Necromancer Nice Answer Enlightened python-2.7 Guru Notable Question Necromancer Guru Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Famous Question Popular Question Nice Answer Necromancer Notable Question Popular Question Necromancer Nice Question Announcer Nice Answer Enlightened Popular Question Nice Answer Enlightened Revival Revival Nice Answer Necromancer Yearling Necromancer Necromancer python Necromancer Good Answer Necromancer Nice Answer Necromancer Necromancer Necromancer Good Question Nice Answer Enlightened Nice Question,NULL,Comparing object graph representation to adjacency list and matrix representations algorithm graph graph algorithm pI currently following Steve Yegge advice on preparing for technical programming interview href http steve yegge blogspot com 2008 03 get that job at google html rel noreferrer http steve yegge blogspot com 2008 03 get that job at google html ppIn his section on Graphs he states pblockquote pThere are three basic ways to represent graph in memory objects and pointers matrix and adjacency list and you should familiarize yourself with each representation and its pros and cons blockquotepThe pros and cons of matrix and adjacency list representations are described in CLRS but haven been able to find resource that compares these to an object representation ppJust by thinking about it can infer some of this myself but like to make sure haven missed something important If someone could describe this comprehensively or point me to resource which does so would greatly appreciate it how about inductive graphs https web engr oregonstate edu erwig papers InductiveGraphs JFP01 pdf which of the categories do these fall under,0,NULL,NULL 23202,557749,1073151,Commentator Notable Question Revival Necromancer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 23203,141468,1014,Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 23204,419928,1007845,Popular Question Nice Question Popular Question Notable Question Nice Question Good Answer Nice Question Popular Question Popular Question Yearling Notable Question Notable Question Caucus Notable Question Popular Question Popular Question Peer Pressure Popular Question Caucus Popular Question Nice Question Good Answer Nice Question Notable Question Yearling Notable Question Caucus Popular Question Popular Question Popular Question Taxonomist java Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 23205,99696,98284,Yearling Nice Question,NULL,NULL,0,NULL,NULL 23206,287441,47429,Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 23207,72667,718033,Yearling Necromancer Necromancer Nice Question Famous Question Yearling Nice Answer Notable Question Announcer Nice Answer Announcer Yearling Good Question,NULL,NULL,0,NULL,NULL 23208,240454,762557,Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 23209,110962,1244945,Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 23210,90892,342783,Custodian Yearling Necromancer Yearling Necromancer Scholar Nice Answer Enlightened Necromancer Good Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 23211,1410354,145564,Good Answer Yearling Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 23212,194381,227734,Good Answer,NULL,NULL,0,NULL,NULL 23213,702687,258795,Popular Question,NULL,NULL,0,NULL,NULL 23214,19817,122309,Nice Answer Popular Question Famous Question Yearling Popular Question Yearling Necromancer Custodian Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 23215,1747079,707200,NULL,NULL,NULL,0,NULL,NULL 23216,307955,573057,Yearling Nice Answer Popular Question Caucus Yearling Announcer Pundit Announcer Caucus Good Answer Necromancer Announcer Good Answer Yearling Nice Answer Enlightened Caucus Popular Question Nice Answer Nice Answer Electorate,NULL,NULL,0,NULL,NULL 23217,352170,45403,Yearling Yearling Not a Robot Notable Question,NULL,NULL,0,NULL,NULL 23218,801412,1563614,NULL,NULL,NULL,0,NULL,NULL 23219,78191,1052717,NULL,NULL,NULL,0,NULL,NULL 23220,519922,702920,NULL,NULL,NULL,0,NULL,NULL 23221,69220,532887,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23222,162872,773927,NULL,NULL,NULL,0,NULL,NULL 23223,12564,69742,Notable Question Notable Question Notable Question Necromancer Popular Question Famous Question Popular Question Nice Question Good Answer Nice Question Nice Answer Popular Question Good Question Nice Question Notable Question Popular Question Famous Question Nice Question Yearling Popular Question Nice Answer Notable Question Nice Question Nice Question Notable Question Nice Question Popular Question Good Answer Nice Question Good Question Popular Question Nice Question Popular Question Nice Question Notable Question Notable Question Popular Question Famous Question Notable Question Good Question Good Question Popular Question Nice Question Nice Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Notable Question Notable Question Good Question Notable Question Notable Question Great Question Famous Question Good Question Notable Question Famous Question Nice Question Popular Question Nice Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Good Question Popular Question Great Question Popular Question Good Question Famous Question Nice Question Nice Question Favorite Question Popular Question Nice Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question Good Question Good Question Popular Question Popular Question Nice Answer Famous Question Popular Question Famous Question Famous Question Famous Question Nice Question Favorite Question Popular Question Popular Question Popular Question Popular Question Popular Question Great Answer Famous Question Good Question Famous Question Nice Question Popular Question Popular Question Good Question Famous Question Nice Question Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Good Question Popular Question Notable Question Nice Answer Good Answer Notable Question Popular Question Nice Question Nice Answer Good Question Nice Question Yearling Notable Question Popular Question Famous Question Notable Question Famous Question Popular Question Necromancer Announcer Famous Question Good Answer Nice Question Famous Question Good Question Notable Question Popular Question Announcer Notable Question Popular Question Good Question Notable Question Nice Question Famous Question Popular Question Famous Question Nice Answer Popular Question Guru Popular Question Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 23224,396182,784192,NULL,NULL,NULL,0,NULL,NULL 23225,374455,1087161,Yearling Great Question Favorite Question Tumbleweed Popular Question Notable Question Yearling Custodian Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 23226,55101,919312,Notable Question Notable Question Necromancer Nice Question Yearling Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23227,400573,675333,Popular Question Nice Question Notable Question Famous Question Critic Tumbleweed,NULL,NULL,0,NULL,NULL 23228,30915,242135,Great Question Popular Question Favorite Question Yearling Yearling Notable Question Notable Question Curious Nice Answer Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 23229,458232,850215,NULL,NULL,NULL,0,NULL,NULL 23230,183860,416646,Popular Question Announcer Notable Question Notable Question Pundit Caucus Yearling,NULL,NULL,0,NULL,NULL 23231,257466,415303,Autobiographer Custodian Nice Answer Enlightened Good Answer Organizer ios Tenacious Guru Revival Nice Answer swift Yearling Good Answer Nice Answer Unsung Hero Necromancer Yearling Good Answer Enlightened Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 23232,155167,1505536,Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Inquisitive Notable Question Custodian Citizen Patrol Critic Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 23233,140625,562947,Self-Learner Yearling Necromancer Popular Question Revival Yearling Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23234,4574241,562947,Self-Learner Yearling Necromancer Popular Question Revival Yearling Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23235,6997,811799,Popular Question Yearling,NULL,NULL,0,NULL,NULL 23236,874504,46706,Famous Question Yearling Good Answer Good Answer Nice Answer Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 23237,1509917,791686,Yearling Census Yearling Good Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 23238,616585,417803,Famous Question Self-Learner Popular Question Notable Question Famous Question Yearling Popular Question Caucus Good Question Notable Question Popular Question Nice Question Good Question Yearling Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 23239,7041938,368061,NULL,NULL,NULL,0,NULL,NULL 23240,295414,435683,NULL,NULL,NULL,0,NULL,NULL 23241,324561,492754,NULL,NULL,NULL,0,NULL,NULL 23242,337204,238937,Revival Nice Answer Necromancer Popular Question Popular Question Good Question Inquisitive Necromancer Good Question Nice Answer Great Question Good Answer Revival Popular Question Deputy Good Answer Good Answer Vox Populi Necromancer Necromancer Explainer Revival Necromancer Notable Question Revival Nice Answer android Nice Answer Revival Necromancer Stellar Question Revival Necromancer Notable Question Nice Question Notable Question Caucus Necromancer Revival Popular Question Populist Necromancer Good Answer Necromancer Popular Question Necromancer Yearling Revival Popular Question Nice Answer Popular Question Good Answer Notable Question Popular Question Revival Good Question Necromancer Nice Question Necromancer Popular Question Necromancer Popular Question Notable Question Nice Answer Necromancer Revival Nice Answer android-studio Revival Popular Question Popular Question Notable Question Nice Answer Caucus Nice Answer Enlightened Nice Answer Nice Answer Great Answer java Nice Answer Necromancer Strunk & White Revival Necromancer Good Answer Famous Question Necromancer Popular Question Good Answer Nice Answer Nice Answer Nice Answer Yearling Revival Famous Question Revival Necromancer Famous Question Caucus Nice Answer Good Answer Notable Question Necromancer Nice Answer Notable Question Nice Answer Nice Answer Nice Question Revival,NULL,pHere is how defined my activity in my AndroidManifest xml to get this to work ppre code lt activity android name com keepassdroid PasswordActivity gt lt intent filter gt lt action android name android intent action VIEW gt lt category android name android intent category DEFAULT gt lt category android name android intent category BROWSABLE gt lt data android scheme file gt lt data android mimeType gt lt data android pathPattern kdb gt lt data android host gt lt intent filter gt lt activity gt code prepThe codescheme code of codefile code indicates that this should happen when local file is opened rather than protocol like HTTP pp codemimeType code can be set to code code to match any mime type pp codepathPattern code is where you specify what extension you want to match in this example code kdb code The code code at the beginning matches any squence of characters These strings require double escaping so code code matches literal period Then you end with your file extension One caveat with pathPattern is that code code is not greedy match like you would expect if this was regular expression This pattern will fail to match paths that contain code code before the code kdb code For more detailed discussion of this issue and workaround see href https stackoverflow com questions 3400072 pathpattern to match file extension does not work if period exists elsewhere 8599921 8599921 here ppFinally according to the Android documentation both codehost code and codescheme code attributes are required for the codepathPattern code attribute to work so just set that to the wildcard to match anything ppNow if you select code kdb code file in an app like Linda File Manager my app shows up as an option should note that this alone does not allow you to download this filetype in browser since this only registers with the file scheme Having an app like Linda File Manager on your phone resisters itself generically allowing you to download any file type This approach DOES NOT work for opening gmail attachments pThis is what worked for me in your project build gradle ppre codeallprojects gradle projectsEvaluated tasks withType JavaCompile options compilerArgs lt lt Xlint unchecked lt lt Xlint deprecation code pre Is this supposed to make difference on Lint runs For some reason my Lint is displaying the exact same warning message regardless of Xlint unchecked setting pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public This yields an error error commit d85f9b88d is merge but no option was given fatal revert failed pYou can do that in this way ppre codeProperties properties new Properties properties load project rootProject file local properties newDataInputStream def sdkDir properties getProperty sdk dir def ndkDir properties getProperty ndk dir code prepUse codeproject rootProject code if you are reading the properties file in sub project codebuild gradle code ppre code ├── app│ ├── build gradle lt You are reading the local properties in this gradle build file│ └── src├── build gradle├── gradle├── gradlew├── gradlew bat├── settings gradle└── local properties code prepIn case the properties file is in the same sub project directory you can use just codeproject code What if don know the latest version of sdkdir build tools and want gradle to handle it for me For example finding sdk ri build tools 24 pPut this in your codeCMakeLists txt code file change any options from OFF to ON if you want ppre codeset Boost USE STATIC LIBS OFF set Boost USE MULTITHREADED ON set Boost USE STATIC RUNTIME OFF find package Boost 45 COMPONENTS boost libraries here if Boost FOUND include directories Boost INCLUDE DIRS add executable progname file1 cxx file2 cxx target link libraries progname Boost LIBRARIES endif code prepObviously you need to put the libraries you want where put code boost libraries here code For example if you re using the codefilesystem code and coderegex code library you write ppre codefind package Boost 45 COMPONENTS filesystem regex code pre What does boost libraries here mean,0,NULL,NULL 23243,6624396,238937,Revival Nice Answer Necromancer Popular Question Popular Question Good Question Inquisitive Necromancer Good Question Nice Answer Great Question Good Answer Revival Popular Question Deputy Good Answer Good Answer Vox Populi Necromancer Necromancer Explainer Revival Necromancer Notable Question Revival Nice Answer android Nice Answer Revival Necromancer Stellar Question Revival Necromancer Notable Question Nice Question Notable Question Caucus Necromancer Revival Popular Question Populist Necromancer Good Answer Necromancer Popular Question Necromancer Yearling Revival Popular Question Nice Answer Popular Question Good Answer Notable Question Popular Question Revival Good Question Necromancer Nice Question Necromancer Popular Question Necromancer Popular Question Notable Question Nice Answer Necromancer Revival Nice Answer android-studio Revival Popular Question Popular Question Notable Question Nice Answer Caucus Nice Answer Enlightened Nice Answer Nice Answer Great Answer java Nice Answer Necromancer Strunk & White Revival Necromancer Good Answer Famous Question Necromancer Popular Question Good Answer Nice Answer Nice Answer Nice Answer Yearling Revival Famous Question Revival Necromancer Famous Question Caucus Nice Answer Good Answer Notable Question Necromancer Nice Answer Notable Question Nice Answer Nice Answer Nice Question Revival,NULL,pHere is how defined my activity in my AndroidManifest xml to get this to work ppre code lt activity android name com keepassdroid PasswordActivity gt lt intent filter gt lt action android name android intent action VIEW gt lt category android name android intent category DEFAULT gt lt category android name android intent category BROWSABLE gt lt data android scheme file gt lt data android mimeType gt lt data android pathPattern kdb gt lt data android host gt lt intent filter gt lt activity gt code prepThe codescheme code of codefile code indicates that this should happen when local file is opened rather than protocol like HTTP pp codemimeType code can be set to code code to match any mime type pp codepathPattern code is where you specify what extension you want to match in this example code kdb code The code code at the beginning matches any squence of characters These strings require double escaping so code code matches literal period Then you end with your file extension One caveat with pathPattern is that code code is not greedy match like you would expect if this was regular expression This pattern will fail to match paths that contain code code before the code kdb code For more detailed discussion of this issue and workaround see href https stackoverflow com questions 3400072 pathpattern to match file extension does not work if period exists elsewhere 8599921 8599921 here ppFinally according to the Android documentation both codehost code and codescheme code attributes are required for the codepathPattern code attribute to work so just set that to the wildcard to match anything ppNow if you select code kdb code file in an app like Linda File Manager my app shows up as an option should note that this alone does not allow you to download this filetype in browser since this only registers with the file scheme Having an app like Linda File Manager on your phone resisters itself generically allowing you to download any file type This approach DOES NOT work for opening gmail attachments pThis is what worked for me in your project build gradle ppre codeallprojects gradle projectsEvaluated tasks withType JavaCompile options compilerArgs lt lt Xlint unchecked lt lt Xlint deprecation code pre Is this supposed to make difference on Lint runs For some reason my Lint is displaying the exact same warning message regardless of Xlint unchecked setting pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public This yields an error error commit d85f9b88d is merge but no option was given fatal revert failed pYou can do that in this way ppre codeProperties properties new Properties properties load project rootProject file local properties newDataInputStream def sdkDir properties getProperty sdk dir def ndkDir properties getProperty ndk dir code prepUse codeproject rootProject code if you are reading the properties file in sub project codebuild gradle code ppre code ├── app│ ├── build gradle lt You are reading the local properties in this gradle build file│ └── src├── build gradle├── gradle├── gradlew├── gradlew bat├── settings gradle└── local properties code prepIn case the properties file is in the same sub project directory you can use just codeproject code What if don know the latest version of sdkdir build tools and want gradle to handle it for me For example finding sdk ri build tools 24 pPut this in your codeCMakeLists txt code file change any options from OFF to ON if you want ppre codeset Boost USE STATIC LIBS OFF set Boost USE MULTITHREADED ON set Boost USE STATIC RUNTIME OFF find package Boost 45 COMPONENTS boost libraries here if Boost FOUND include directories Boost INCLUDE DIRS add executable progname file1 cxx file2 cxx target link libraries progname Boost LIBRARIES endif code prepObviously you need to put the libraries you want where put code boost libraries here code For example if you re using the codefilesystem code and coderegex code library you write ppre codefind package Boost 45 COMPONENTS filesystem regex code pre What does boost libraries here mean,0,NULL,NULL 23244,37521,427643,Autobiographer,NULL,NULL,0,NULL,NULL 23245,430850,1156768,Supporter Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23246,36997,414601,Famous Question,NULL,NULL,0,NULL,NULL 23247,572706,1515711,NULL,NULL,NULL,0,NULL,NULL 23248,122707,657180,Yearling Tumbleweed Favorite Question Yearling Notable Question Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 23249,75086,1224520,Informed,NULL,NULL,0,NULL,NULL 23250,1511390,1001452,NULL,NULL,NULL,0,NULL,NULL 23251,1172647,1020316,NULL,NULL,NULL,0,NULL,NULL 23252,1098540,825357,NULL,NULL,NULL,0,NULL,NULL 23253,169958,825357,NULL,NULL,NULL,0,NULL,NULL 23254,114281,397991,Popular Question Popular Question Notable Question Nice Question Good Question Famous Question Famous Question Popular Question Notable Question Popular Question Nice Question Nice Answer Good Question Favorite Question Notable Question Good Question Nice Question Stellar Question Revival Nice Question Popular Question Notable Question Notable Question Popular Question Good Question Nice Question Notable Question Popular Question Good Question Nice Question Popular Question Famous Question Famous Question Famous Question Famous Question Yearling Good Question Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Nice Question Great Question Notable Question Famous Question Popular Question Famous Question Popular Question Famous Question Notable Question Good Question Good Answer Nice Question Notable Question Notable Question Notable Question Notable Question Good Question Notable Question Notable Question Popular Question Famous Question Popular Question Good Question Good Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Favorite Question Nice Question Nice Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question Nice Question Yearling Notable Question Nice Question Famous Question Great Question Good Question Notable Question Notable Question Stellar Question Great Question Popular Question Famous Question Notable Question Great Question Notable Question Famous Question Notable Question Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Answer Famous Question Notable Question Good Question Nice Question Yearling Nice Question Popular Question Famous Question Favorite Question Great Question Good Question Nice Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23255,1422380,668427,Notable Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 23256,35060,930005,Yearling Yearling Notable Question Great Question Tumbleweed Yearling Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 23257,132127,381947,NULL,NULL,NULL,0,NULL,NULL 23258,201225,576139,Yearling Great Answer Nice Question Notable Question Revival Guru Good Answer Caucus Nice Answer Good Answer Yearling linux Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Caucus Constituent Good Answer mysql Popular Question Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Yearling Announcer Caucus Constituent Popular Question Announcer Announcer Nice Answer Nice Answer Notable Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 23259,63694,196114,NULL,NULL,NULL,0,NULL,NULL 23260,254704,652866,NULL,NULL,NULL,0,NULL,NULL 23261,1557743,652866,NULL,NULL,NULL,0,NULL,NULL 23262,346593,512460,NULL,NULL,NULL,0,NULL,NULL 23263,52868,361863,Necromancer Commentator,NULL,pSame as other answers in jQuery fashion ppre code each selectValues function key value mySelect append lt option gt lt option gt attr value key text value code pre It is good solution but it not so performative The DOM is called many times depending on the size of your list of objects IMHO you should avoid this if you really cares about performance,0,NULL,NULL 23264,208837,614269,NULL,NULL,NULL,0,NULL,NULL 23265,15262,274673,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer shadow-dom Announcer Enlightened Self-Learner Yearling fileapi Announcer Popular Question,NULL,NULL,0,NULL,NULL 23266,326075,1265305,Revival Notable Question,NULL,NULL,0,NULL,NULL 23267,871605,538100,Popular Question,NULL,NULL,0,NULL,NULL 23268,1120390,979258,Good Answer,NULL,NULL,0,NULL,NULL 23269,15635,3695,javascript Guru Popular Question Yearling Good Answer Great Answer Guru Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23270,272991,660670,NULL,NULL,NULL,0,NULL,NULL 23271,539967,483876,Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Self-Learner Popular Question Good Question Notable Question Enthusiast Yearling Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Nice Question Necromancer Popular Question Socratic Yearling,NULL,NULL,0,NULL,NULL 23272,494625,522861,Yearling Popular Question,NULL,NULL,0,NULL,NULL 23273,60773,492225,Autobiographer Notable Question Editor Teacher,NULL,NULL,0,NULL,NULL 23274,59424,386517,Documentation User,NULL,NULL,0,NULL,NULL 23275,426176,525725,Enlightened Nice Answer Enlightened Necromancer Good Answer Nice Answer Revival Yearling Popular Question Electorate Good Answer Revival Famous Question Nice Answer Self-Learner Nice Answer Revival Yearling Good Answer Guru Necromancer Pundit Yearling,NULL,pI don think it possible to make usable Javadoc with MarkDown The best solution is probably to commit the Javadoc you generated on the codegh pages code branch or in the codedocs code directory depending on the settings of your project It will be available at pp href http username github io projectname rel noreferrer http username github io projectname ppHere is an example from one of my projects pp href http ebourg github io jsign apidocs rel noreferrer http ebourg github io jsign apidocs you can probably do that with Git submodule pI don think it possible to make usable Javadoc with MarkDown The best solution is probably to commit the Javadoc you generated on the codegh pages code branch or in the codedocs code directory depending on the settings of your project It will be available at pp href http username github io projectname rel noreferrer http username github io projectname ppHere is an example from one of my projects pp href http ebourg github io jsign apidocs rel noreferrer http ebourg github io jsign apidocs It now possible to host the pages of the project site on the same branch as the code under the docs directory This can be enabled from the project settings pI don think it possible to make usable Javadoc with MarkDown The best solution is probably to commit the Javadoc you generated on the codegh pages code branch or in the codedocs code directory depending on the settings of your project It will be available at pp href http username github io projectname rel noreferrer http username github io projectname ppHere is an example from one of my projects pp href http ebourg github io jsign apidocs rel noreferrer http ebourg github io jsign apidocs Isn your code on the master branch pI don think it possible to make usable Javadoc with MarkDown The best solution is probably to commit the Javadoc you generated on the codegh pages code branch or in the codedocs code directory depending on the settings of your project It will be available at pp href http username github io projectname rel noreferrer http username github io projectname ppHere is an example from one of my projects pp href http ebourg github io jsign apidocs rel noreferrer http ebourg github io jsign apidocs generate and commit the javadoc manually every time publish new release pYou can use git rebase for example if you want to modify back to commit codebbc643cd code run ppre code git rebase interactive bbc643cd code prepIn the default editor modify codepick code to codeedit code in the line whose commit you want to modify Make your changes and then commit them with the same message you had before ppre code git commit all amend no edit code prepto modify the commit and after that ppre code git rebase continue code prepto return back to the previous head commit pp strongWARNING strong Note that this will change the SHA of that commit strongas well as all children strong in other words this rewrites the history from that point forward href https stackoverflow com 3926832 1269037 You can break repos doing this if you push using the command codegit push force code suggest adding the preserve merges option when rebasing this will preserve the merge commits,0,NULL,NULL 23276,1355372,527395,Informed Editor Supporter Documentation User,NULL,NULL,0,NULL,NULL 23277,7408032,911173,NULL,NULL,NULL,0,NULL,NULL 23278,161753,911173,NULL,NULL,NULL,0,NULL,NULL 23279,11380490,911173,NULL,NULL,NULL,0,NULL,NULL 23280,129620,382583,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 23281,2503252,382583,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 23282,204647,456355,NULL,NULL,NULL,0,NULL,NULL 23283,77372,1395555,Yearling Commentator Yearling Caucus Yearling Caucus Necromancer Constituent Revival Caucus Revival Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23284,31288,373243,Scholar Tumbleweed Student,NULL,NULL,0,NULL,NULL 23285,256864,195294,Nice Question Notable Question Popular Question Nice Question Yearling Famous Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23286,257982,1413739,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23287,165997,689257,NULL,NULL,NULL,0,NULL,NULL 23288,1556385,693362,NULL,NULL,NULL,0,NULL,NULL 23289,12727,389960,NULL,NULL,NULL,0,NULL,NULL 23290,433228,203613,Nice Question,NULL,NULL,0,NULL,NULL 23291,449063,1179040,NULL,NULL,NULL,0,NULL,NULL 23292,249179,527194,Yearling Notable Question Caucus Enthusiast Census Documentation User Census Nice Question,NULL,NULL,0,NULL,NULL 23293,457101,859236,NULL,NULL,NULL,0,NULL,NULL 23294,655490,252323,NULL,NULL,NULL,0,NULL,NULL 23295,165117,1057426,NULL,NULL,NULL,0,NULL,NULL 23296,66944,1296033,NULL,NULL,NULL,0,NULL,NULL 23297,352846,512591,NULL,NULL,NULL,0,NULL,NULL 23298,191044,686831,NULL,NULL,NULL,0,NULL,NULL 23299,172240,656927,Yearling Necromancer Nice Answer Custodian Yearling Caucus Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 23300,9588,1051308,NULL,NULL,NULL,0,NULL,NULL 23301,325159,1271993,Self-Learner,NULL,NULL,0,NULL,NULL 23302,18493,129627,Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23303,206795,1086337,Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 23304,1233112,1487471,NULL,NULL,NULL,0,NULL,NULL 23305,1353617,898790,NULL,NULL,NULL,0,NULL,NULL 23306,7554096,1068467,NULL,NULL,NULL,0,NULL,NULL 23307,89650,367960,javascript Guru Yearling Great Answer Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 23308,81443,275930,Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 23309,953518,550605,Notable Question Yearling Custodian Census Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23310,2632,42705,NULL,NULL,NULL,0,NULL,NULL 23311,14878,627213,Popular Question Yearling Promoter,NULL,NULL,0,NULL,NULL 23312,4390149,1303221,NULL,NULL,NULL,0,NULL,NULL 23313,146510,332348,Good Answer Caucus Student Yearling Commentator,NULL,NULL,0,NULL,NULL 23314,181085,1177509,NULL,NULL,NULL,0,NULL,NULL 23315,1975887,1177509,NULL,NULL,NULL,0,NULL,NULL 23316,235933,1364726,Nice Answer Yearling Nice Answer Guru Yearling Good Answer Great Answer Curious Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 23317,131759,79061,Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Good Answer Guru c Nice Answer Enlightened Good Answer Nice Answer Great Answer Good Answer Great Answer Good Answer Good Question Good Answer Yearling Good Answer Nice Answer Guru Famous Question Good Answer Nice Answer Documentation User Guru Guru Great Answer Popular Question Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 23318,336967,1550158,NULL,NULL,NULL,0,NULL,NULL 23319,749349,20711,Famous Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 23320,1231259,579644,NULL,NULL,NULL,0,NULL,NULL 23321,728038,1355525,NULL,NULL,NULL,0,NULL,NULL 23322,86704,1303625,Student Yearling,NULL,NULL,0,NULL,NULL 23323,236534,999608,Revival Tumbleweed,NULL,NULL,0,NULL,NULL 23324,149770,1026898,Notable Question Nice Answer Enlightened Notable Question Notable Question Popular Question Notable Question Popular Question ruby-on-rails Famous Question Notable Question Popular Question Yearling Caucus Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Nice Answer Caucus Announcer Yearling Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 23325,25164,216300,Nice Answer Enlightened Announcer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 23326,322765,37838,Popular Question Yearling Famous Question Good Question Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 23327,232781,34253,Critic Commentator Curious Famous Question Mortarboard Yearling,NULL,NULL,0,NULL,NULL 23328,1235930,778174,NULL,NULL,NULL,0,NULL,NULL 23329,34742,1005418,NULL,NULL,NULL,0,NULL,NULL 23330,1565629,675241,NULL,NULL,NULL,0,NULL,NULL 23331,1231267,1002109,NULL,NULL,NULL,0,NULL,NULL 23332,71279,1274125,NULL,NULL,NULL,0,NULL,NULL 23333,316619,97535,NULL,NULL,NULL,0,NULL,NULL 23334,26965,1208122,NULL,NULL,NULL,0,NULL,NULL 23335,182916,559885,Notable Question Nice Answer Enlightened Yearling Favorite Question Great Question Caucus Constituent Yearling Census Popular Question Caucus Custodian Constituent Documentation User Nice Answer Notable Question Yearling Census Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23336,100330,815206,NULL,NULL,NULL,0,NULL,NULL 23337,65762,1190225,NULL,NULL,NULL,0,NULL,NULL 23338,1521336,1238942,NULL,NULL,NULL,0,NULL,NULL 23339,25966,5100,Yearling Yearling Documentation User Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 23340,390440,757937,zurb-foundation Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 23341,117948,1107134,Notable Question,NULL,NULL,0,NULL,NULL 23342,35568,119886,Tenacious Yearling Famous Question Famous Question Notable Question Popular Question Yearling Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 23343,356170,16924,Notable Question,NULL,NULL,0,NULL,NULL 23344,50894,503111,NULL,NULL,NULL,0,NULL,NULL 23345,38082,408197,Self-Learner Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 23346,482957,189127,NULL,NULL,NULL,0,NULL,NULL 23347,572805,747068,NULL,NULL,NULL,0,NULL,NULL 23348,24337,912244,Revival Yearling,NULL,NULL,0,NULL,NULL 23349,119742,1114749,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 23350,402416,512683,Scholar Supporter,NULL,NULL,0,NULL,NULL 23351,1293,275016,Yearling Necromancer Yearling Nice Question Yearling Good Answer Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 23352,83053,578244,Yearling Nice Answer Caucus Nice Answer Enlightened Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 23353,192159,1175304,NULL,NULL,NULL,0,NULL,NULL 23354,381343,1206453,NULL,NULL,NULL,0,NULL,NULL 23355,24656,185194,NULL,NULL,NULL,0,NULL,NULL 23356,1236953,567292,Nice Answer Enlightened Yearling Good Answer Good Answer Good Answer vector Popular Question Revival Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened algorithm python-2.7 Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened clang Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Famous Question Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened gcc Nice Answer Nice Answer Enlightened Great Answer Nice Answer Revival Nice Answer Enlightened Popular Question Good Answer Good Answer Great Answer Caucus Good Answer constexpr Guru Good Answer multithreading Notable Question Good Answer iterator Nice Answer Enlightened Yearling Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Popular Question Guru Good Question Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Great Answer c g++ Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer shared-ptr Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Guru Guru Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Good Answer Popular Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Announcer Yearling Nice Answer Nice Answer Good Question Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Nice Answer Enlightened linux Nice Answer Revival Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Guru,NULL,pThe confusion is that explicitly permits type punning through union whereas href questions tagged 2b 2b11 class post tag title show questions tagged 11 rel tag 11 has no such permission pblockquote href questions tagged c11 class post tag title show questions tagged c11 rel tag c11 h36 Structure and union members h3 p95 If the member used to read the contents of union object is not the same as the member last used to store value in the object the appropriate part of the object representation of the value is reinterpreted as an object representation in the new type as described in process sometimes called ‘‘type punning’’ This might be trap representation blockquotepThe situation with pblockquote href questions tagged 2b 2b11 class post tag title show questions tagged 11 rel tag 11 h39 Unions class union h3 pIn union at most one of the non static data members can be active at any time that is the value of at most one of the non static data members can be stored in union at any time blockquotepC later has language permitting the use of unions containing codestruct codes with common initial sequences this doesn however permit type punning ppTo determine whether union type punning emis em allowed in we have to search further Recall that href questions tagged c99 class post tag title show questions tagged c99 rel tag c99 is normative reference for 11 and C99 has similar language to C11 permitting union type punning pblockquote h33 Types basic types h3 p4 The object representation of an object of type is the sequence of unsigned char objects taken up by the object of type where equals sizeof The value representation of an object is the set of bits that hold the value of type For trivially copyable types the value representation is set of bits in the object representation that determines value which is one discrete element of an implementation defined set of values sup42 sup br 42 The intent is that the memory model of is compatible with that of ISO IEC 9899 Programming Language blockquotepIt gets particularly interesting when we read pblockquote h33 Object lifetime basic life h3 pThe lifetime of an object of type begins when storage with the proper alignment and size for type is obtained and if the object has non trivial initialization its initialization is complete blockquotepSo for primitive type which emipso facto em has trivial initialization contained in union the lifetime of the object encompasses at least the lifetime of the union itself This allows us to invoke pblockquote h33 Compound types basic compound h3 pIf an object of type is located at an address pointer of type cv whose value is the address is said to point to that object regardless of how the value was obtained blockquotepAssuming that the operation we are interested in is type punning taking the value of non active union member and given per the above that we have valid reference to the object referred to by that member that operation is lvalue to rvalue conversion pblockquote h34 Lvalue to rvalue conversion conv lval h3 pA glvalue of non function non array type codeT code can be converted to prvalue If codeT code is an incomplete type program that necessitates this conversion is ill formed strongIf the object to which the glvalue refers is not an object of type codeT code and is not an object of type derived from codeT code or if the object is uninitialized program that necessitates this conversion has undefined behavior strong blockquotepThe question then is whether an object that is non active union member is initialized by storage to the active union member As far as can tell this is not the case and so although if pullia union is copied into codechar code array storage and back or lilia union is bytewise copied to another union of the same type or lilia union is accessed across language boundaries by program element conforming to ISO IEC 9899 so far as that is defined note 42 then li ulpthe access to union by non active member emis defined em and is defined to follow the object and value representation access without one of the above interpositions is undefined behaviour This has implications for the optimisations allowed to be performed on such program as the implementation may of course assume that undefined behaviour does not occur ppThat is although we can legitimately form an lvalue to non active union member which is why assigning to non active member without construction is ok it is considered to be uninitialized yes but basic types footnote 42 says The intent is that the memory model of is compatible with that of ISO IEC 9899 Programming Language It bit tenuous admittedly Determining duplicate values in an array python numpy duplicates unique pSuppose have an array ppre codea np array code prepHow can efficiently Pythonically find which elements of codea code are duplicates non unique values In this case the result would be codearray code or possibly codearray code if efficient ppI ve come up with few methods that appear to work ph3Masking h3pre codem np zeros like dtype bool np unique return index True Truea code preh3Set operations h3pre codea np in1d np arange len np unique return index True assume unique True code prepThis one is cute but probably illegal as codea code isn actually unique ppre codenp setxor1d np unique assume unique True code preh3Histograms h3pre codeu np unique return inverse True np bincount gt code preh3Sorting h3pre codes np sort axis None code preh3Pandas h3pre codes pd Series duplicated code prepIs there anything ve missed not necessarily looking for numpy only solution but it has to work with numpy data types and be efficient on medium sized data sets up to 10 million in size phr h2Conclusions h2pTesting with 10 million size data set on 8GHz Xeon ppre codea np random randint 10 size 10 code prepThe fastest is sorting at 1s The dubious codexor1d code is second at 6s followed by masking and Pandas codeSeries duplicated code at 1s codebincount code at 6s and codein1d code and senderle codesetdiff1d code both at 3s Steven codeCounter code is only little slower at 10 5s trailing behind are Burhan codeCounter most common code at 110s and DSM codeCounter code subtraction at 360s ppI going to use sorting for performance but accepting Steven answer because the performance is acceptable and it emfeels em clearer and more Pythonic ppEdit discovered the Pandas solution If Pandas is available it clear and performs well think earlier versions of numpy were more forgiving in this regard ll fix it thanks pThe problem is in mapping from the codomain of codestd mt19937 code codestd uint fast32 code to codefloat code the algorithm described by the standard gives incorrect results inconsistent with its description of the output of the algorithm when loss of precision occurs if the current IEEE754 rounding mode is anything other than round to negative infinity note that the default is round to nearest ppThe 7549723rd output of mt19937 with your seed is 4294967257 code0xffffffd9u code which when rounded to 32 bit float gives code0x1p 32 code which is equal to the max value of mt19937 4294967295 code0xffffffffu code when that is also rounded to 32 bit float ppThe standard could ensure correct behavior if it were to specify that when converting from the output of the URNG to the codeRealType code of codegenerate canonical code rounding is to be performed towards negative infinity this would give correct result in this case As QOI it would be good for libstdc to make this change ppWith this change code1 code will no longer be generated instead the boundary values code0x1 fffffep code for code0 lt lt code will be generated more often approximately code2 32 code per codeN code depending on the actual distribution of MT19937 ppI would recommend to not use codefloat code with codestd generate canonical code directly rather generate the number in codedouble code and then round towards negative infinity ppre code double rd std generate canonical lt double std numeric limits lt float gt digits gt rng float rf rd if rf gt rd rf std nextafter rf std numeric limits lt float gt infinity code prepThis problem can also occur with codestd uniform real distribution lt float gt code the solution is the same to specialize the distribution on codedouble code and round the result towards negative infinity in codefloat code yes you re right and the final division by 0x1p 32 is also exact the space that becomes is stolen from the boundary values 0x1 fffffep for 24 32 ll correct my answer pYou can do reasonably well using codeunique code and codebincount code ppre code gt gt gt np unique a2 return inverse True gt gt gt np cumsum np bincount array code prepOr for the minimum rank ppre code gt gt gt np cumsum np concatenate np bincount array code prepThere minor speedup by giving codebincount code the number of bins to provide ppre code np cumsum np bincount minlength size code pre sure using scipy stats rankdata it just ordinal min My code will also work if you can use scipy for some reason Answered on your question pYou can do reasonably well using codeunique code and codebincount code ppre code gt gt gt np unique a2 return inverse True gt gt gt np cumsum np bincount array code prepOr for the minimum rank ppre code gt gt gt np cumsum np concatenate np bincount array code prepThere minor speedup by giving codebincount code the number of bins to provide ppre code np cumsum np bincount minlength size code pre sure just use my second solution to replace rankdata min and the argsort argsort technique for rankdata ordinal Updated my answer,1,NULL,How to write constexpr swap function to change endianess of an integer 14 endianness constexpr 17 pHow to write codeconstexpr code function to swap endianess of an integer without relying on compiler extensions and can you give an example on how to do it pYes it pretty easy here recursive 11 compatible implementation unsigned integral types only ppre code include lt climits gt include lt cstdint gt include lt type traits gt template lt class gt constexpr typename std enable if lt std is unsigned lt gt value gt typebswap 0u std size 0u return sizeof bswap lt gt gt gt CHAR BIT lt lt CHAR BIT amp unsigned char code prep href http gcc godbolt org compilers compiler g530 options 39 O3 std 3Dc 2B 2B14 Wall Wextra Werror 39 source 39 23include 3Cclimits 3E 0A 23include 3Ccstdint 3E 0A 23include 3Ctype traits 3E 0A 0Atemplate 3Cclass 3E 0Aconstexpr typename std enable if 3Cstd is unsigned 3CT 3E value 3E type 0Abswap 3D 0u std size 3D 0u 7B 0A return 3D 3D sizeof 3F 0A bswap 3CT 3E 3E 3E CHAR BIT 3C 3C CHAR BIT 7C 26 unsigned char 2B 3B 0A 7D 0A 0Astatic assert bswap 3Cstd uint8 3E 0x7fu 3D 3D 0x7fu 22 22 3B 0Astatic assert bswap 3Cstd uint16 3E 0x1234u 3D 3D 0x3412u 22 22 3B 0Astatic assert bswap 3Cstd uint32 3E 0x00112233u 3D 3D 0x33221100u 22 22 3B 0Astatic assert bswap 3Cstd uint64 3E 0x0123456789abcdefull 3D 3D 0xefcdab8967452301ull 22 22 3B 0A 0Aint main 7B 0A return std integral constant 3Cstd uint32 bswap 0x0df0ad0bu 3E 7B 7D 3B 0A 7D 39 filterAsm commentOnly directives labels version Example ppHere using codej code as the accumulator and coden code as the loop counter indexing bytes ppIf you have compiler supporting href http en cppreference com cpp language fold 17 fold expressions it possible to write something that expands out into exactly what you write by hand ppre codetemplate lt class std size gt constexpr bswap impl std index sequence lt gt return gt gt CHAR BIT amp unsigned char lt lt sizeof CHAR BIT fold expressiontemplate lt class class typename std make unsigned lt gt type gt constexpr bswap return bswap impl lt gt std make index sequence lt sizeof gt code prepThe advantage of this form is that because it doesn use loops or recursion you re pretty much guaranteed to get optimal assembly output on x86 64 clang even manages to href http gcc godbolt org compilers compiler clang380 options 39 O3 std 3Dc 2B 2B1z Wall Wextra Werror 39 source 39 23include 3Cclimits 3E 0A 23include 3Ccstdint 3E 0A 23include 3Ctype traits 3E 0A 23include 3Cutility 3E 0A 0Atemplate 3Cclass std size 3E 0Aconstexpr bswap impl std index sequence 3CN 3E 7B 0A return 3E 3E CHAR BIT 26 unsigned char 3C 3C 0A sizeof CHAR BIT 7C 3B 0A 7D 3B 0Atemplate 3Cclass class 3D typename std make unsigned 3CT 3E type 3E 0Aconstexpr bswap 7B 0A return bswap impl 3CU 3E std make index sequence 3Csizeof 3E 7B 7D 3B 0A 7D 0A 0Astatic assert bswap 3Cstd uint8 3E 0x7fu 3D 3D 0x7fu 22 22 3B 0Astatic assert bswap 3Cstd uint16 3E 0x1234u 3D 3D 0x3412u 22 22 3B 0Astatic assert bswap 3Cstd uint32 3E 0x00112233u 3D 3D 0x33221100u 22 22 3B 0Astatic assert bswap 3Cstd uint64 3E 0x0123456789abcdefull 3D 3D 0xefcdab8967452301ull 22 22 3B 0A 0Astd int32 bswapl std int32 7B return bswap 3B 7D 0A 0Aint main 7B 0A return bswap 0x0df0ad0bu 3B 0A 7D 39 filterAsm commentOnly directives labels version work out to use the codebswap code instruction 23357,352037,509607,Popular Question Famous Question Caucus Informed Announcer Caucus Autobiographer,NULL,NULL,0,NULL,NULL 23358,269742,27962,Popular Question,NULL,NULL,0,NULL,NULL 23359,1438309,653882,Good Answer Yearling Necromancer jquery Revival Necromancer Nice Answer Yearling Nice Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23360,94013,113181,NULL,NULL,NULL,0,NULL,NULL 23361,328410,1122072,NULL,NULL,NULL,0,NULL,NULL 23362,149841,134009,NULL,NULL,NULL,0,NULL,NULL 23363,106141,7223,Notable Question Custodian Civic Duty Informed Notable Question Popular Question Popular Question Popular Question Notable Question Nice Answer Caucus Constituent Self-Learner Yearling Famous Question Notable Question Caucus Popular Question Custodian Custodian Custodian Reviewer Yearling Popular Question Popular Question Nice Question Revival Famous Question,NULL,NULL,0,NULL,NULL 23364,198478,1073552,NULL,NULL,NULL,0,NULL,NULL 23365,220341,524141,NULL,NULL,NULL,0,NULL,NULL 23366,10514,532590,NULL,NULL,NULL,0,NULL,NULL 23367,55709,926134,NULL,NULL,NULL,0,NULL,NULL 23368,392503,915926,NULL,NULL,NULL,0,NULL,NULL 23369,1517849,391391,NULL,NULL,NULL,0,NULL,NULL 23370,504297,1472856,NULL,NULL,NULL,0,NULL,NULL 23371,2989952,800869,Editor,NULL,NULL,0,NULL,NULL 23372,71476,844638,NULL,NULL,NULL,0,NULL,NULL 23373,190453,183,Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23374,28238,183,Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23375,97222,1436521,Supporter,NULL,NULL,0,NULL,NULL 23376,6788,1362000,Popular Question Yearling Notable Question Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23377,643528,1415488,Student Popular Question,NULL,NULL,0,NULL,NULL 23378,728965,488111,NULL,NULL,NULL,0,NULL,NULL 23379,615512,385588,NULL,NULL,NULL,0,NULL,NULL 23380,319968,143305,Good Answer Nice Answer Enlightened Nice Answer Enlightened performance Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Guru Guru Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Revival Good Answer Nice Answer Good Answer Nice Answer Populist Great Answer Great Answer Nice Answer Enlightened dataframe Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened package install Guru Nice Answer Enlightened Good Answer Nice Answer installation Good Answer Nice Answer Enlightened Good Answer r-package Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened posixct Nice Answer Enlightened Good Answer Good Answer Good Answer Announcer Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Necromancer Nice Answer Nice Answer Enlightened Good Answer Guru Announcer Announcer Guru Nice Answer Enlightened ubuntu Guru Nice Answer Announcer Nice Answer Announcer Great Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer makefile Nice Answer Enlightened Nice Answer Necromancer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Necromancer Announcer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer random Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened lubridate Good Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Guru Custodian Custodian Guru Nice Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Documentation User Good Answer Nice Answer Enlightened Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Nice Answer Census Good Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Caucus Good Answer Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Populist Great Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Announcer Guru Nice Answer Announcer Good Answer Good Answer Guru Yearling Good Answer Good Answer Announcer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru r-markdown Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23381,50772,602154,Nice Answer Yearling Good Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 23382,275092,88821,Announcer Notable Question Yearling Popular Question Famous Question Famous Question Famous Question Famous Question Popular Question Nice Question Good Question Yearling Excavator Popular Question,NULL,NULL,0,NULL,NULL 23383,1438207,822368,Teacher,NULL,NULL,0,NULL,NULL 23384,1133492,1436436,Notable Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 23385,163098,1436436,Notable Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 23386,181078,504059,NULL,NULL,NULL,0,NULL,NULL 23387,1295469,1070688,NULL,NULL,NULL,0,NULL,NULL 23388,106317,111836,Yearling Caucus Yearling Organizer Custodian Yearling Favorite Question,NULL,NULL,0,NULL,NULL 23389,4045104,784554,Enthusiast,NULL,NULL,0,NULL,NULL 23390,16568,784554,Enthusiast,NULL,NULL,0,NULL,NULL 23391,25655,699294,Yearling Yearling Good Question Yearling Custodian,NULL,NULL,0,NULL,NULL 23392,14648,118398,Yearling Enthusiast Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 23393,1421924,560529,NULL,NULL,NULL,0,NULL,NULL 23394,11609,838484,NULL,NULL,NULL,0,NULL,NULL 23395,2517212,1563312,NULL,NULL,NULL,0,NULL,NULL 23396,17468,815168,Investor Altruist Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23397,100827,5769,Nice Answer Nice Answer Necromancer Favorite Question Announcer Favorite Question Yearling Good Question Nice Answer Yearling Great Question Good Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 23398,436268,663522,NULL,NULL,NULL,0,NULL,NULL 23399,693065,697758,NULL,NULL,NULL,0,NULL,NULL 23400,84506,959953,Announcer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 23401,650293,231294,NULL,NULL,NULL,0,NULL,NULL 23402,1360622,1264997,NULL,NULL,NULL,0,NULL,NULL 23403,200025,332542,NULL,NULL,NULL,0,NULL,NULL 23404,61052,402585,Excavator Yearling Announcer Curious,NULL,NULL,0,NULL,NULL 23405,1130782,1146413,NULL,NULL,NULL,0,NULL,NULL 23406,1192024,705126,NULL,NULL,NULL,0,NULL,NULL 23407,293864,458520,NULL,NULL,NULL,0,NULL,NULL 23408,394632,475266,NULL,NULL,NULL,0,NULL,NULL 23409,127908,622139,Nice Answer Enlightened Revival Necromancer Civic Duty Yearling,NULL,NULL,0,NULL,NULL 23410,911976,550978,NULL,NULL,NULL,0,NULL,NULL 23411,410887,1118657,NULL,NULL,NULL,0,NULL,NULL 23412,376232,339453,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23413,49422,7556,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 23414,749835,1260497,NULL,NULL,NULL,0,NULL,NULL 23415,68630,52691,Yearling Custodian Informed Autobiographer Guru Yearling Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 23416,574477,370920,NULL,NULL,NULL,0,NULL,NULL 23417,51601,536435,Editor Yearling Documentation User Revival,NULL,NULL,0,NULL,NULL 23418,165077,286840,NULL,NULL,NULL,0,NULL,NULL 23419,5063,1050132,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23420,287605,955108,Autobiographer Supporter Informed Editor Critic,NULL,NULL,0,NULL,NULL 23421,578461,451639,NULL,NULL,NULL,0,NULL,NULL 23422,163975,912277,NULL,NULL,NULL,0,NULL,NULL 23423,116961,1123052,NULL,NULL,NULL,0,NULL,NULL 23424,98141,606842,Notable Question Notable Question Custodian Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23425,151364,194768,Autobiographer Student Yearling Caucus Commentator,NULL,NULL,0,NULL,NULL 23426,119267,427364,NULL,NULL,NULL,0,NULL,NULL 23427,2085128,1353897,Caucus Constituent,NULL,NULL,0,NULL,NULL 23428,214063,1015745,NULL,NULL,NULL,0,NULL,NULL 23429,32832,506108,Yearling Editor Autobiographer,NULL,NULL,0,NULL,NULL 23430,158885,282104,NULL,NULL,NULL,0,NULL,NULL 23431,119790,1408218,Popular Question Supporter,NULL,NULL,0,NULL,NULL 23432,901171,555986,NULL,NULL,NULL,0,NULL,NULL 23433,1349294,216217,Popular Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 23434,210090,355807,NULL,NULL,NULL,0,NULL,NULL 23435,13007,533538,Notable Question,NULL,NULL,0,NULL,NULL 23436,603293,406970,Yearling Populist Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 23437,2652320,115593,Yearling Nice Question Popular Question Famous Question Yearling Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 23438,392824,115593,Yearling Nice Question Popular Question Famous Question Yearling Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 23439,200583,566353,Yearling,NULL,NULL,0,NULL,NULL 23440,847879,566353,Yearling,NULL,NULL,0,NULL,NULL 23441,426272,1201235,Yearling Custodian Reviewer Popular Question Informed Custodian Unsung Hero Custodian Self-Learner Yearling Nice Answer Popular Question Good Answer Nice Question Nice Question Notable Question Notable Question Yearling Popular Question Good Question Custodian,NULL,NULL,0,NULL,NULL 23442,123049,156300,Popular Question Yearling Autobiographer Nice Answer Curious,NULL,NULL,0,NULL,NULL 23443,244567,3245,Supporter Famous Question,NULL,NULL,0,NULL,NULL 23444,1307,531946,NULL,NULL,NULL,0,NULL,NULL 23445,6021,507384,Civic Duty Popular Question Nice Answer Popular Question Yearling Informed Notable Question,NULL,NULL,0,NULL,NULL 23446,2550565,1091707,NULL,NULL,NULL,0,NULL,NULL 23447,2870115,877821,NULL,NULL,NULL,0,NULL,NULL 23448,638037,1508994,NULL,NULL,NULL,0,NULL,NULL 23449,319111,428691,Inquisitive Notable Question Yearling Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Necromancer Yearling,NULL,clojure protobuf Cannot run program path protoc in directory resources proto error No such file or directory clojure protocol buffers pI am trying use clojure protobuf but when run lein protobuf get this error ppre code gt Users elf lein cache lein protobuf protobuf src protoc google protobuf descriptor proto java out Users elf lein cache lein protobuf protobuf java src main java Users elf workspace tmp protobuf target proto Users elf workspace tmp protobuf resources protojava io IOException Cannot run program Users elf lein cache lein protobuf protobuf src protoc in directory resources proto error No such file or directory at java lang ProcessBuilder start ProcessBuilder java 1048 at java lang Runtime exec Runtime java 620 at sun reflect NativeMethodAccessorImpl invoke0 Native Method at sun reflect NativeMethodAccessorImpl invoke NativeMethodAccessorImpl java 62 at sun reflect DelegatingMethodAccessorImpl invoke DelegatingMethodAccessorImpl java 43 at java lang reflect Method invoke Method java 497 at clojure lang Reflector invokeMatchingMethod Reflector java 93 at clojure lang Reflector invokeInstanceMethod Reflector java 28 at conch core proc doInvoke core clj 27 at clojure lang RestFn applyTo RestFn java 137 at clojure core apply invoke core clj 617 at leiningen protobuf compile protobuf invoke protobuf clj 127 at leiningen protobuf compile google protobuf invoke protobuf clj 145 at leiningen protobuf compile doInvoke protobuf clj 154 at clojure lang RestFn applyTo RestFn java 139 at clojure core apply invoke core clj 619 at leiningen protobuf compile invoke protobuf clj 150 at clojure lang AFn applyToHelper AFn java 161 at clojure lang RestFn applyTo RestFn java 132 at clojure core apply invoke core clj 619 at leiningen protobuf protobuf doInvoke protobuf clj 166 at clojure lang RestFn invoke RestFn java 410 at clojure lang Var invoke Var java 415 at clojure lang AFn applyToHelper AFn java 161 at clojure lang Var applyTo Var java 532 at clojure core apply invoke core clj 619 at leiningen core main resolve task fn 3029 doInvoke main clj 189 at clojure lang RestFn invoke RestFn java 410 at clojure lang AFn applyToHelper AFn java 161 at clojure lang RestFn applyTo RestFn java 132 at clojure lang AFunction doInvoke AFunction java 29 at clojure lang RestFn applyTo RestFn java 137 at clojure core apply invoke core clj 619 at leiningen core main apply task invoke main clj 230 at leiningen core main resolve and apply invoke main clj 234 at leiningen core main main fn 3092 invoke main clj 303 at leiningen core main main doInvoke main clj 290 at clojure lang RestFn invoke RestFn java 408 at clojure lang Var invoke Var java 415 at clojure lang AFn applyToHelper AFn java 161 at clojure lang Var applyTo Var java 532 at clojure core apply invoke core clj 617 at clojure main main opt invoke main clj 335 at clojure main main doInvoke main clj 440 at clojure lang RestFn invoke RestFn java 436 at clojure lang Var invoke Var java 423 at clojure lang AFn applyToHelper AFn java 167 at clojure lang Var applyTo Var java 532 at clojure main main main java 37 Caused by java io IOException error No such file or directory at java lang UNIXProcess forkAndExec Native Method at java lang UNIXProcess lt init gt UNIXProcess java 248 at java lang ProcessImpl start ProcessImpl java 134 at java lang ProcessBuilder start ProcessBuilder java 1029 48 morein Users elf workspace tmp protobuf code prepMy codeproject clj code ppre code defproject protocolbuf test SNAPSHOT description FIXME write description url http example com FIXME license name Eclipse Public License url http www eclipse org legal epl v10 html dependencies org clojure clojure org flatland protobuf aleph beta3 lamina gloss plugins lein protobuf code prepand my proto file ppre codemessage Log required int32 id required string event code prepThanks for any kind of help Hi unfortunately never come back to this problem It was just some tests nothing real,0,NULL,NULL 23450,33678,467856,NULL,NULL,NULL,0,NULL,NULL 23451,711133,1161930,NULL,NULL,NULL,0,NULL,NULL 23452,1798086,184383,Popular Question Yearling,NULL,NULL,0,NULL,NULL 23453,269090,1349008,NULL,NULL,NULL,0,NULL,NULL 23454,47447,31399,Favorite Question Notable Question Popular Question Favorite Question Famous Question Popular Question Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Great Question Notable Question Nice Question Notable Question Yearling Famous Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 23455,59223,1050523,NULL,NULL,NULL,0,NULL,NULL 23456,316375,1014850,Yearling Yearling Caucus Constituent Caucus Necromancer Tumbleweed Yearling Custodian Nice Answer Caucus Tenacious Yearling,NULL,NULL,0,NULL,NULL 23457,63885,895484,NULL,NULL,NULL,0,NULL,NULL 23458,163288,1112270,NULL,NULL,NULL,0,NULL,NULL 23459,458995,522,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23460,886225,1485577,Scholar,NULL,NULL,0,NULL,NULL 23461,1210821,700243,NULL,NULL,NULL,0,NULL,NULL 23462,239921,1505190,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23463,2687555,1505190,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23464,15259,97734,Revival Supporter,NULL,NULL,0,NULL,NULL 23465,725057,917473,NULL,NULL,NULL,0,NULL,NULL 23466,102407,528713,NULL,NULL,NULL,0,NULL,NULL 23467,1623498,1222283,NULL,NULL,NULL,0,NULL,NULL 23468,253930,873572,NULL,NULL,NULL,0,NULL,NULL 23469,767126,1287765,NULL,NULL,NULL,0,NULL,NULL 23470,206257,715002,Yearling Necromancer Informed,NULL,NULL,0,NULL,NULL 23471,5077971,1512622,NULL,NULL,NULL,0,NULL,NULL 23472,353086,1204193,Popular Question,NULL,NULL,0,NULL,NULL 23473,1169958,619605,Teacher Supporter Census Informed Autobiographer,NULL,NULL,0,NULL,NULL 23474,1358640,501617,NULL,NULL,NULL,0,NULL,NULL 23475,52086,376941,Popular Question Popular Question Notable Question Popular Question Popular Question Census Teacher Popular Question,NULL,NULL,1,Which library should use to obtain access token python google signin pI have web page with Google Sign In and want to access user data on behalf of the user even if he is offline ppI am looking for suggestion for library that can use to obtain codeaccess token code and coderefresh token code using the codeauthorization code code that the client sent to the server ppI followed the official guide href https developers google com identity sign in web server side flow rel nofollow noreferrer here brIn emStep Exchange the authorization code for an access token em the author uses href https github com google oauth2client rel nofollow noreferrer oauth2client library which appears to be deprecated pblockquote pNote oauth2client is now deprecated No more features will be added to the libraries and the core team is turning down support We recommend you use google auth and oauthlib For more details on the deprecation see oauth2client deprecation blockquotepSo looked at href https google auth readthedocs io en latest rel nofollow noreferrer google auth pblockquote pThis library provides no support for obtaining user credentials but does provide limited support for using user credentials blockquotepI also took look at href http oauthlib readthedocs io en latest oauth2 clients client html rel nofollow noreferrer oauthlib but there are many pages undocumented ppI am using Python with Flask,NULL 23476,2612683,1148193,NULL,NULL,NULL,0,NULL,NULL 23477,63296,159897,Nice Answer Custodian Nice Answer Enlightened Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 23478,441310,1129782,NULL,NULL,NULL,0,NULL,NULL 23479,1210717,229414,Notable Question Famous Question Famous Question Peer Pressure Popular Question Caucus Famous Question Yearling Nice Question Famous Question Autobiographer Popular Question Good Question,NULL,NULL,0,NULL,NULL 23480,404253,1156668,Necromancer Yearling Necromancer Nice Answer Good Answer Yearling Civic Duty Famous Question Yearling,NULL,NULL,0,NULL,NULL 23481,306625,722997,Nice Answer Revival Yearling Revival Popular Question Necromancer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 23482,2303067,1244147,NULL,NULL,NULL,0,NULL,NULL 23483,780769,522356,NULL,NULL,NULL,0,NULL,NULL 23484,51865,742991,Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 23485,48344,1463957,NULL,NULL,NULL,0,NULL,NULL 23486,456057,779862,Supporter,NULL,NULL,0,NULL,NULL 23487,395532,673717,NULL,NULL,NULL,0,NULL,NULL 23488,2939798,182677,Yearling Civic Duty,NULL,pI think codesetState code doesn do recursive merge ppYou can use the value of the current state codethis state selected code to construct new state and then call codesetState code on that ppre codevar newSelected extend this state selected newSelected name Barfoo this setState selected newSelected code prepI ve used function code extend code function from underscore js library here to prevent modification to the existing codeselected code part of the state by creating shallow copy of it ppAnother solution would be to write codesetStateRecursively code which does recursive merge on new state and then calls codereplaceState code with it ppre codesetStateRecursively function stateUpdate callback var newState mergeStateRecursively this state stateUpdate this replaceState newState callback code pre what is extends in your example Doesn look like JS builtin,0,NULL,NULL 23489,357499,182677,Yearling Civic Duty,NULL,pI think codesetState code doesn do recursive merge ppYou can use the value of the current state codethis state selected code to construct new state and then call codesetState code on that ppre codevar newSelected extend this state selected newSelected name Barfoo this setState selected newSelected code prepI ve used function code extend code function from underscore js library here to prevent modification to the existing codeselected code part of the state by creating shallow copy of it ppAnother solution would be to write codesetStateRecursively code which does recursive merge on new state and then calls codereplaceState code with it ppre codesetStateRecursively function stateUpdate callback var newState mergeStateRecursively this state stateUpdate this replaceState newState callback code pre what is extends in your example Doesn look like JS builtin,0,NULL,NULL 23490,121915,510,Nice Answer Enlightened Necromancer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Pundit Great Answer Guru Yearling Good Answer Nice Answer Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Yearling Notable Question Good Answer Nice Answer Guru Announcer Nice Answer Enlightened Nice Answer Guru Great Answer Guru Yearling Good Answer Announcer Good Answer,NULL,NULL,0,NULL,NULL 23491,188346,32242,Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question Good Question Nice Question Notable Question Yearling Caucus Notable Question Notable Question Notable Question Famous Question Nice Question Nice Question Notable Question Notable Question Notable Question Popular Question Famous Question Yearling Notable Question Famous Question Notable Question Nice Question Famous Question Good Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 23492,72208,291209,Nice Answer Notable Question Notable Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 23493,169789,27507,Good Answer Popular Question Nice Answer Nice Answer Enlightened Yearling Caucus Good Answer Good Answer Popular Question Nice Answer Caucus Yearling Necromancer Caucus Excavator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23494,323915,532395,NULL,NULL,NULL,0,NULL,NULL 23495,374252,1536404,NULL,NULL,NULL,0,NULL,NULL 23496,144395,394253,Nice Answer Nice Answer Nice Answer Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 23497,1679443,783207,NULL,NULL,NULL,0,NULL,NULL 23498,122722,783207,NULL,NULL,NULL,0,NULL,NULL 23499,166969,221532,Popular Question,NULL,NULL,0,NULL,NULL 23500,68627,982521,Commentator Yearling Necromancer,NULL,NULL,0,NULL,NULL 23501,417646,1534367,Autobiographer,NULL,NULL,0,NULL,NULL 23502,104422,153011,NULL,NULL,NULL,0,NULL,NULL 23503,117060,357025,NULL,NULL,NULL,0,NULL,NULL 23504,621814,608693,Good Question Yearling Famous Question Good Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 23505,516396,1240751,NULL,NULL,NULL,0,NULL,NULL 23506,186198,708712,NULL,NULL,NULL,0,NULL,NULL 23507,468996,1001249,NULL,NULL,NULL,0,NULL,NULL 23508,223964,1301615,NULL,NULL,NULL,0,NULL,NULL 23509,194660,533543,NULL,NULL,NULL,0,NULL,NULL 23510,284859,730754,Popular Question Mortarboard Yearling Curious Unsung Hero Notable Question Caucus Constituent Nice Answer Enlightened Custodian Census Excavator Custodian Yearling Nice Question Caucus Constituent Documentation User Civic Duty Nice Answer Enlightened Census Caucus Proofreader Tag Editor Yearling Popular Question Reviewer Good Answer,NULL,NULL,0,NULL,NULL 23511,266682,94144,Nice Answer Enlightened angularjs Nice Answer Yearling Great Answer Good Answer Good Answer Nice Answer Nice Answer Guru Guru Nice Answer Enlightened symfony Guru Yearling Good Answer Caucus Nice Answer Nice Answer Enlightened Announcer Announcer Nice Answer Popular Question Yearling Nice Answer Enlightened Disciplined Popular Question Great Answer Good Answer,NULL,pYou can replace the insertBefore method before the Google script invokes it pp href http jsfiddle net coma 7st6d9p2 rel noreferrer http jsfiddle net coma 7st6d9p2 ppre codevar head document getElementsByTagName head Save the original methodvar insertBefore head insertBefore Replace it head insertBefore function newElement referenceElement if newElement href amp amp newElement href indexOf fonts googleapis com css family Roboto gt console info Prevented Roboto from loading return insertBefore call head newElement referenceElement Check it new google maps Map document getElementById map center new google maps LatLng 51 508742 120850 zoom 16 mapTypeId google maps MapTypeId ROADMAP streetViewControl false zoomControl false panControl false mapTypeControl false code pre hey yes the idea is monkey patching the insertBefore method only for the head DOM node http me dt in th page JavaScript override pYou can replace the insertBefore method before the Google script invokes it pp href http jsfiddle net coma 7st6d9p2 rel noreferrer http jsfiddle net coma 7st6d9p2 ppre codevar head document getElementsByTagName head Save the original methodvar insertBefore head insertBefore Replace it head insertBefore function newElement referenceElement if newElement href amp amp newElement href indexOf fonts googleapis com css family Roboto gt console info Prevented Roboto from loading return insertBefore call head newElement referenceElement Check it new google maps Map document getElementById map center new google maps LatLng 51 508742 120850 zoom 16 mapTypeId google maps MapTypeId ROADMAP streetViewControl false zoomControl false panControl false mapTypeControl false code pre You are right ll update my answer,0,NULL,NULL 23512,363882,468026,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 23513,287675,1286912,Teacher Supporter,NULL,NULL,0,NULL,NULL 23514,46934,1445144,NULL,NULL,NULL,0,NULL,NULL 23515,36530,272031,Great Answer Guru Nice Answer Enlightened Popular Question Yearling Popular Question Nice Answer Custodian Reviewer Revival Necromancer Famous Question Caucus Revival Constituent Nice Answer Good Question Nice Answer Enlightened Yearling Good Answer Populist Good Answer Necromancer Caucus Nice Answer Revival Documentation User Census Yearling Great Answer Caucus Constituent Electorate Nice Answer Nice Answer Enlightened,NULL,pThe apps UI only works for panels ppThe best you can do is to draw button yourself and put that into your spreadsheet Than you can add macro to it ppGo into Insert Drawing Draw button and add it to the spreadsheet Than click it and click assign Macro then insert the name of the function you wish to execute there The function must be defined in script in the spreadsheet ppAlternatively you can also draw the button somewhere else and insert it as an image ppMore info href https developers google com apps script guides menus rel noreferrer https developers google com apps script guides menus pp img src https stack imgur com KyzxE png alt enter image description here img src https stack imgur com IbnTB png alt enter image description here img src https stack imgur com GEnAo png alt enter image description here This was always like this The element is not bound to cell it kinda floats in the air above the spreadsheet,0,NULL,NULL 23516,291424,90756,Good Answer Yearling Popular Question Announcer Great Answer Yearling Necromancer Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 23517,156107,654285,NULL,NULL,NULL,0,NULL,NULL 23518,75722,1558995,NULL,NULL,NULL,0,NULL,NULL 23519,495358,1261707,Tumbleweed Editor Student,NULL,NULL,0,NULL,NULL 23520,809416,1449659,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23521,25995,466088,Scholar Editor Teacher Supporter Commentator Yearling Yearling Caucus Constituent Critic Popular Question Student Notable Question Caucus,NULL,NULL,0,NULL,NULL 23522,213419,615643,Informed Editor Custodian Student Scholar Critic,NULL,NULL,0,NULL,NULL 23523,41897,78101,Nice Answer Yearling xamarin.ios Good Answer Pundit Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 23524,902485,1332487,Supporter Editor Tumbleweed Necromancer Commentator Informed Necromancer Nice Answer Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23525,57571,1058510,Popular Question,NULL,NULL,0,NULL,NULL 23526,10078430,633033,NULL,NULL,NULL,0,NULL,NULL 23527,931593,633033,NULL,NULL,NULL,0,NULL,NULL 23528,193898,268418,Popular Question Caucus Critic Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 23529,305504,75840,Yearling Civic Duty Nice Answer Popular Question Yearling Caucus Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 23530,169573,43734,Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 23531,113527,21648,Famous Question Notable Question Notable Question Great Question Yearling Notable Question Notable Question Great Question Stellar Question Famous Question Guru Yearling Popular Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 23532,124777,737796,Notable Question Scholar,NULL,NULL,0,NULL,NULL 23533,156741,628108,NULL,NULL,NULL,0,NULL,NULL 23534,30330,140697,NULL,NULL,NULL,0,NULL,NULL 23535,554415,1436721,NULL,NULL,NULL,0,NULL,NULL 23536,206781,1253351,NULL,NULL,NULL,0,NULL,NULL 23537,308461,289420,Yearling Yearling Necromancer Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 23538,64461,1286371,Popular Question,NULL,NULL,0,NULL,NULL 23539,159421,68556,Yearling Notable Question Notable Question Revival Yearling Documentation User Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23540,1121489,405754,Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 23541,181844,452751,NULL,NULL,NULL,0,NULL,NULL 23542,1057906,686742,NULL,NULL,NULL,0,NULL,NULL 23543,332969,104360,NULL,NULL,NULL,0,NULL,NULL 23544,134690,842,Famous Question Nice Answer Enlightened Yearling Good Answer Populist Nice Answer Notable Question Caucus Constituent Yearling macos Caucus Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 23545,71987,364984,Famous Question Revival Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 23546,246040,587717,Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 23547,915441,70847,Famous Question Popular Question Nice Answer Enlightened Yearling Good Answer Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Famous Question Notable Question Famous Question Yearling Nice Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 23548,204962,794457,Yearling Custodian Excavator Cleanup Popular Question Yearling Notable Question Nice Answer Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 23549,251862,658479,NULL,NULL,NULL,0,NULL,NULL 23550,656955,1010582,Excavator Notable Question Notable Question Yearling Caucus Notable Question Nice Question Good Answer Notable Question Notable Question Famous Question Popular Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 23551,3243791,1204042,NULL,NULL,NULL,0,NULL,NULL 23552,244863,186079,Good Answer Nice Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 23553,126405,666943,Popular Question Yearling Necromancer Yearling Popular Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 23554,13410,638966,Yearling Civic Duty Notable Question Caucus Constituent Critic Notable Question Revival Necromancer Yearling Caucus Documentation User Census Caucus Nice Answer Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 23555,7127,95705,Yearling Popular Question Good Question Popular Question Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 23556,241715,638606,Student Scholar Yearling Commentator Necromancer Enthusiast Yearling Popular Question Curious,NULL,NULL,0,NULL,NULL 23557,353997,55334,Yearling Autobiographer Notable Question Notable Question Tumbleweed Necromancer Caucus Yearling Census Custodian Caucus Constituent Custodian Custodian Yearling Census Good Answer,NULL,NULL,0,NULL,NULL 23558,8103,872227,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 23559,220503,1020188,NULL,NULL,NULL,0,NULL,NULL 23560,2951250,542382,NULL,NULL,NULL,0,NULL,NULL 23561,13538,84250,Critic Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23562,217041,372472,NULL,NULL,NULL,0,NULL,NULL 23563,247341,1313283,NULL,NULL,NULL,0,NULL,NULL 23564,71230,1248475,NULL,NULL,NULL,0,NULL,NULL 23565,57477,1248475,NULL,NULL,NULL,0,NULL,NULL 23566,784693,1026458,NULL,NULL,NULL,0,NULL,NULL 23567,585417,1222361,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23568,7654,824077,NULL,NULL,NULL,0,NULL,NULL 23569,30789,1231127,Scholar Self-Learner Popular Question Critic Announcer,NULL,NULL,0,NULL,NULL 23570,1035709,748788,NULL,NULL,NULL,0,NULL,NULL 23571,173457,997039,Popular Question Notable Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 23572,168073,1133439,NULL,NULL,NULL,0,NULL,NULL 23573,90633,1125109,Yearling idris Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 23574,95193,1012042,NULL,NULL,NULL,0,NULL,NULL 23575,1076432,1353326,Custodian Editor Scholar Informed,NULL,NULL,0,NULL,NULL 23576,291219,845306,Notable Question Custodian Custodian Yearling Popular Question Notable Question Notable Question Nice Answer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 23577,250095,543550,NULL,NULL,NULL,0,NULL,NULL 23578,87308,211422,Yearling Yearling,NULL,NULL,0,NULL,NULL 23579,48522,118568,NULL,NULL,NULL,0,NULL,NULL 23580,482790,167094,Yearling,NULL,NULL,0,NULL,NULL 23581,1350551,294078,NULL,NULL,NULL,0,NULL,NULL 23582,98639,1545461,Necromancer,NULL,NULL,0,NULL,NULL 23583,914728,773858,Famous Question,NULL,NULL,0,NULL,NULL 23584,7460232,473962,Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 23585,1444732,473962,Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 23586,1059956,641230,NULL,NULL,NULL,0,NULL,NULL 23587,675704,1414022,NULL,NULL,NULL,0,NULL,NULL 23588,163296,1390270,NULL,NULL,NULL,0,NULL,NULL 23589,4577,3827,Revival Revival Revival Revival Great Answer Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened Revival Nice Answer Enlightened Notable Question Necromancer Nice Answer Nice Answer Revival Revival Good Answer Revival Famous Question Nice Answer Enlightened Good Answer Strunk & White Great Answer Nice Answer Good Answer Favorite Question Good Answer Yearling Notable Question Stellar Question Announcer Guru Notable Question Nice Answer Enlightened Nice Answer Announcer Nice Answer Caucus Announcer Revival Constituent Nice Answer Enlightened Necromancer sbt delphi Guru Announcer Nice Answer Enlightened Stellar Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Populist Nice Answer Enlightened Nice Answer Enlightened Necromancer Yearling Good Answer Stellar Question Nice Answer Enlightened Documentation User Necromancer Announcer Good Answer Guru Good Answer Nice Answer Announcer Revival Announcer Announcer Necromancer Favorite Question Nice Answer Necromancer Revival Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Announcer Revival Announcer Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Announcer Good Answer Announcer Nice Answer Necromancer Announcer,NULL,pCheck this href https github com Microsoft VSSDK Extensibility Samples blob 8d2b8fdbb6f2ba1c83f403eefab49cad3710b650 Code Sweep 23 VsPackage ProjectUtilities cs L129 L150 rel nofollow noreferrer code by Microsoft ppre code static public IEnumerable lt IVsProject gt LoadedProjects get var solution serviceProvider GetService typeof SVsSolution as IVsSolution if solution null Debug Fail Failed to get SVsSolution service yield break IEnumHierarchies enumerator null Guid guid Guid Empty solution GetProjectEnum uint VSENUMPROJFLAGS EPF LOADEDINSOLUTION ref guid out enumerator IVsHierarchy hierarchy new IVsHierarchy null uint fetched for enumerator Reset enumerator Next hierarchy out fetched VSConstants OK amp amp fetched nothing yield return IVsProject hierarchy code pre Changed to Github link,1,NULL,SBT How to make one task depend on another in multi project builds and not run in the root project scala sbt pFor my multi project build trying to create verify task that just results in scct test and then scalastyle being executed in order would like scct test to execute for all the subprojects but not the top level project If it executes for the top level project get timed out waiting for coverage report from scct since there no source and no tests in that project What had thought to do was to create verify as task with dependencies on scct test and scalastyle This has turned out to be fairly baroque Here is my Build scala from my top level project directory ppre codeobject MyBuild extends Build val verifyTask TaskKey Unit verify Compiles runs tests via scct test and then runs scalastyle val scctTestTask test in ScctPlugin Scct scopedKey val scalastyleTask PluginKeys scalastyleTarget scopedKey lazy val root Project rootProject file settings Defaults defaultSettings ScalastylePlugin Settings ScctPlugin instrumentSettings ScctPlugin mergeReportSettings Seq verifyTask in Global verifyTask lt lt verifyTask dependsOn scctTestTask scalastyleTask aggregate lift webapp selenium tests lazy val subproject Project id subproject base file subproject lazy val subproject Project id subproject base file subproject code prepHowever the verify task only seems to exist for the root project when run it don see the same task being run in the subprojects This is exactly the opposite of what want like to issue codesbt verify code and have scct test and scalastyle run in each of the subprojects but not in the top level project How might go about doing that h3solution define verifyTask in subprojects h3pFirst thing to note is that if you want some task codeverify code codetest code etc to run in some projects you need to define them scoped to the subprojects So in your case the most straightforward thing to do this is to define codeverifyTask code in codesubproject code and codesubproject code ppre class lang scala prettyprint override codelazy val scalaTest org scalatest scalatest lazy val verify taskKey Unit verify def verifySettings Seq skip in verify false verify Def taskDyn val sk skip in verify value if sk Def task println skipping verify else test in Test value lazy val root project in file aggregate sub1 sub2 settings verifySettings scalaVersion in ThisBuild 12 skip in verify true lazy val sub1 project in file sub1 settings verifySettings libraryDependencies scalaTest Test lazy val sub2 project in file sub2 settings verifySettings libraryDependencies scalaTest Test code preh3solution ScopeFilter h3pThere was recent href https www reddit com scala comments 7uq4ql sbt task dependency rel noreferrer Reddit thread that mentioned this question so ll post what ve done there If you want to manually aggregate on some subprojects there also technique called href http www scala sbt org docs Tasks html Getting values from multiple scopes rel noreferrer ScopeFilter ppNote that am using sbt here but it should work with sbt 13 some minor change ppre class lang scala prettyprint override codelazy val packageAll taskKey Unit package all the projects lazy val myTask inputKey Unit foo lazy val root project in file aggregate sub1 sub2 settings scalaVersion in ThisBuild 12 packageAll packageBin in Compile all nonRootsFilter value myTask packageAll value lazy val sub1 project in file sub1 lazy val sub2 project in file sub2 def nonRootsFilter import sbt internal inc ReflectUtilities def nonRoots List ProjectReference allProjects filter case LocalProject gt root case gt false def allProjects List ProjectReference ReflectUtilities allVals Project this values toList map gt ProjectReference ScopeFilter inProjects nonRoots inAnyConfiguration code prepIn the above codemyTask code depends on codepackageAll code which aggregates code packageBin in Compile code for all non root subprojects ppre codesbt root gt myTask info Packaging Users xxx packageall sub1 target scala 12 sub1 12 SNAPSHOT jar info Done packaging info Packaging Users xxx packageall sub2 target scala 12 sub2 12 SNAPSHOT jar info Done packaging success Total time completed Feb 2018 23 23 PM code pre Intertwined dependencies between sbt plugin and projects within multi project build that uses the plugin itself scala plugins sbt pI developing library that includes an sbt plugin Naturally using sbt to build this multi project library My simplified project looks as follows ppre codemyProject Top level of library gt models One project in the multi project sbt build gt src main scala Defines common models for both sbt plugin and framework gt sbt plugin The sbt plugin build gt src main scala gt framework The framework Ideally the sbt plugin is run as part of gt src main scala compiling this directory gt project Multi project build configuration code prepIs there way to have the sbt plugin defined in myProject sbt plugin be hooked into the build for myProject framework all in unified build ppNote similar but simpler question href https stackoverflow com questions 24228553 How to develop sbt plugin in multi project build with projects that use it blockquote pIs there way to have the sbt plugin defined in myProject sbt plugin be hooked into the build for myProject framework all in unified build blockquotepI have working example on Github href https github com eed3si9n plugin bootstrap rel noreferrer eed3si9n plugin bootstrap It not super pretty but it kind of works We can take advantage of the fact that href http www scala sbt org 13 docs Organizing Build html sbt is recursive rel noreferrer sbt is recursive pblockquote pThe codeproject code directory is emanother build inside your build em which knows how to build your build To distinguish the builds we sometimes use the term strongproper build strong to refer to your build and strongmeta build strong to refer to the build in codeproject code The projects inside the metabuild can do anything any other project can do emYour build definition is an sbt project em blockquotepBy extension we can think of the sbt plugins to be library or inter project dependencies to the root project of your metabuild ph2meta build definition codeproject plugins sbt code h2pIn this example think of the metabuild as parallel universe or shadow world that has parallel multi build structure as the proper build coderoot code codemodel code codesbt plugin code ppTo reuse the source code from codemodel code and codesbt plugin code subprojects in the proper build we can re create the multi project build in the metabuild This way we don need to get into the circular dependency ppre codeaddSbtPlugin com eed3si9n sbt doge lazy val metaroot project in file dependsOn metaSbtSomething lazy val metaModel project in file model settings sbtPlugin true scalaVersion 10 unmanagedSourceDirectories in Compile mirrorScalaSource baseDirectory in ThisBuild value getParentFile model lazy val metaSbtSomething project in file sbt plugin dependsOn metaModel settings sbtPlugin true scalaVersion 10 unmanagedSourceDirectories in Compile mirrorScalaSource baseDirectory in ThisBuild value getParentFile sbt plugin def mirrorScalaSource baseDirectory File Seq File val scalaSourceDir baseDirectory src main scala if scalaSourceDir exists scalaSourceDir Nil else sys error Missing source directory scalaSourceDir code prepWhen sbt loads up it will build codemetaModel code and codemetaSbtSomething code first and use codemetaSbtSomething code as plugin to your proper build ppIf you have any other plugins you need you can just add it to codeproject plugins sbt code normally as ve added codesbt doge code ph2proper build build sbt h2pThe proper build looks like normal multi project build As you can see codeframework code subproject uses codeSomethingPlugin code Important thing is that they share the source code but the codetarget code directory is completely separated so there are no interference once the proper build is loaded and you are changing code around ppre codeimport Dependencies lazy val root project in file aggregate model framework sbtSomething settings inThisBuild List scalaVersion scala210 organization com example name Something Root Defines common models for both sbt plugin and frameworklazy val model project in file model settings name Something Model crossScalaVersions Seq scala211 scala210 The framework Ideally the sbt plugin is run as part of building this lazy val framework project in file framework enablePlugins SomethingPlugin dependsOn model settings name Something Framework crossScalaVersions Seq scala211 scala210 using sbt something somethingX lazy val sbtSomething project in file sbt plugin dependsOn model settings sbtPlugin true name sbt something crossScalaVersions Seq scala210 code preh2demo h2pIn the codeSomethingPlugin code example defining codesomething code task that uses codefoo Model code ppre codepackage fooimport sbt object SomethingPlugin extends AutoPlugin def requries sbt plugins JvmPlugin object autoImport lazy val something taskKey Unit lazy val somethingX settingKey String import autoImport override def projectSettings Seq something println something Model code prepHere how we can invoke codesomething code task from the build ppre codeSomething Root gt framework somethingsomething success Total time completed May 29 2016 01 07 PM code prep code1 code comes from codefoo Model code so this demonstrates that we are using the sbt something plugin in codeframework code subproject and that the plugin is using codemetaModel code 23590,372648,102852,Yearling Nice Answer Enlightened Nice Answer Yearling Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 23591,4513,126353,Nice Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Nice Question Good Question Famous Question Favorite Question Good Question Nice Question Nice Answer Enlightened Favorite Question Popular Question Famous Question Notable Question Nice Question Popular Question Famous Question Nice Question Notable Question Notable Question Good Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Great Question Notable Question Famous Question Famous Question Yearling Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Good Question Notable Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23592,156901,1131177,NULL,NULL,NULL,0,NULL,NULL 23593,222086,51264,Necromancer Necromancer Yearling Necromancer Nice Answer Yearling Commentator Good Answer,NULL,NULL,0,NULL,NULL 23594,427207,750803,NULL,NULL,NULL,0,NULL,NULL 23595,138808,445367,Yearling Guru Necromancer Census Pundit,NULL,NULL,0,NULL,NULL 23596,234519,403018,Nice Answer Popular Question Famous Question Notable Question Yearling Notable Question Caucus Constituent Yearling Nice Question Popular Question Documentation User Census Caucus Nice Answer Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 23597,1084205,337480,Yearling Good Answer Yearling Tumbleweed Famous Question Nice Question Yearling Autobiographer Nice Answer Enlightened Caucus Guru Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 23598,1680428,349708,Nice Answer Necromancer Yearling Nice Answer Caucus vim Notable Question Yearling Informed Caucus Notable Question Good Answer Explainer Census Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 23599,901894,590505,NULL,NULL,NULL,0,NULL,NULL 23600,1242326,812020,Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 23601,749583,512305,Famous Question Notable Question Caucus Popular Question Notable Question Custodian Famous Question Popular Question Caucus Constituent Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23602,200520,723339,NULL,NULL,NULL,0,NULL,NULL 23603,754058,1237397,NULL,NULL,NULL,0,NULL,NULL 23604,451079,772625,NULL,NULL,NULL,0,NULL,NULL 23605,133159,1047154,NULL,NULL,NULL,0,NULL,NULL 23606,240584,1505492,Good Answer Yearling Necromancer Nice Answer Yearling Enlightened Enthusiast,NULL,NULL,0,NULL,NULL 23607,108798,678809,NULL,NULL,NULL,0,NULL,NULL 23608,130846,357566,Yearling Nice Answer Yearling Census Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 23609,332463,101720,Notable Question,NULL,NULL,0,NULL,NULL 23610,53859,1201381,Custodian Announcer Teacher,NULL,NULL,0,NULL,NULL 23611,1520942,1518761,NULL,NULL,NULL,0,NULL,NULL 23612,733,126344,NULL,NULL,NULL,0,NULL,NULL 23613,1115655,619118,NULL,NULL,NULL,0,NULL,NULL 23614,33685,9683,Nice Answer Yearling Great Answer Caucus Great Answer Good Answer Custodian Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23615,10456,1224694,Notable Question,NULL,NULL,0,NULL,NULL 23616,389961,87731,NULL,NULL,NULL,0,NULL,NULL 23617,8961,505844,NULL,NULL,NULL,0,NULL,NULL 23618,411092,462052,Nice Question,NULL,NULL,0,NULL,NULL 23619,1233138,870917,NULL,NULL,NULL,0,NULL,NULL 23620,486609,319993,Necromancer Custodian Informed Popular Question,NULL,NULL,0,NULL,NULL 23621,14748,184166,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 23622,1510762,1173248,NULL,NULL,NULL,0,NULL,NULL 23623,386849,1397218,Notable Question Good Question Yearling Popular Question Guru Famous Question Popular Question Notable Question Yearling Famous Question Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 23624,894249,984285,Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 23625,417916,1001278,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 23626,145854,1297507,Enthusiast Caucus Constituent Census Critic,NULL,NULL,0,NULL,NULL 23627,181004,1146343,NULL,NULL,NULL,0,NULL,NULL 23628,627019,1044747,NULL,NULL,NULL,0,NULL,NULL 23629,72621,584871,Nice Answer Citizen Patrol Critic Editor Excavator Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 23630,10458062,708174,NULL,NULL,NULL,0,NULL,NULL 23631,312990,377927,Notable Question Great Answer Yearling Necromancer Necromancer Nice Question Caucus Proofreader Custodian Yearling Nice Answer Revival Caucus Famous Question Popular Question Yearling Good Question Nice Question,NULL,NULL,0,NULL,NULL 23632,12068,1486689,NULL,NULL,NULL,0,NULL,NULL 23633,90103,358696,Citizen Patrol Proofreader Critic Excavator Reviewer Strunk & White Yearling Necromancer Steward Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 23634,349081,805926,NULL,NULL,NULL,0,NULL,NULL 23635,234733,581576,NULL,NULL,NULL,0,NULL,NULL 23636,625855,1352898,Editor,NULL,NULL,0,NULL,NULL 23637,524211,771585,NULL,NULL,NULL,0,NULL,NULL 23638,664631,228282,Yearling Popular Question Nice Answer Yearling Nice Question Census Necromancer,NULL,NULL,0,NULL,NULL 23639,141861,1200873,NULL,NULL,NULL,0,NULL,NULL 23640,119575,749205,NULL,NULL,NULL,0,NULL,NULL 23641,51696,155371,Famous Question,NULL,NULL,0,NULL,NULL 23642,5240025,827452,Good Question Yearling Nice Answer Enlightened Necromancer Popular Question Popular Question Yearling Nice Answer Notable Question Popular Question Popular Question Nice Question Custodian Custodian Popular Question Notable Question Popular Question Promoter Self-Learner Nice Question Famous Question Nice Question Popular Question Popular Question Notable Question Yearling Good Question Nice Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 23643,2411201,827452,Good Question Yearling Nice Answer Enlightened Necromancer Popular Question Popular Question Yearling Nice Answer Notable Question Popular Question Popular Question Nice Question Custodian Custodian Popular Question Notable Question Popular Question Promoter Self-Learner Nice Question Famous Question Nice Question Popular Question Popular Question Notable Question Yearling Good Question Nice Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 23644,1388,300011,Yearling Good Answer Caucus Yearling Custodian Caucus Announcer Yearling Caucus Constituent Popular Question,NULL,pYou can also create dynamic sort function that sorts objects by their value that you pass ppre codefunction dynamicSort property var sortOrder if property sortOrder property property substr return function var result property lt property property gt property return result sortOrder code prepSo you can have an array of objects like this ppre codevar People Name Name Surname Surname Name AAA Surname ZZZ Name Name Surname AAA code prep and it will work when you do ppre codePeople sort dynamicSort Name People sort dynamicSort Surname People sort dynamicSort Surname code prepActually this already answers the question Below part is written because many people contacted me complaining that href https stackoverflow com questions 11379361 it doesn work with multiple parameters ph2Multiple Parameters h2pYou can use the function below to generate sort functions with multiple sort parameters ppre codefunction dynamicSortMultiple save the arguments object as it will be overwritten note that arguments object is an array like object consisting of the names of the properties to sort by var props arguments return function obj1 obj2 var result numberOfProperties props length try getting different result from equal as long as we have extra properties to compare while result amp amp lt numberOfProperties result dynamicSort props obj1 obj2 return result code prepWhich would enable you to do something like this ppre codePeople sort dynamicSortMultiple Name Surname code preh2Adding It To The Prototype h2p em Implementation which is just below is inspired from href https stackoverflow com users 2312161 mike Mike href https stackoverflow com 16174180 300011 answer em pp strongI wouldn recommend changing native object prototype but just to give an example so you can implement it on your own objects strong For the environments that support it you can also use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty as shown in the next section which at least doesn have the negative side effect of being enumerable as described at the last part ppPrototype implementation would be something like the following href http jsfiddle net M2ESb rel noreferrer Here working example ppre code Don just copy paste this code You will break the for in loops function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Array prototype sortBy function return this sort dynamicSortMultiple apply null arguments code preh3The OK Way Of Adding It To The Prototype h3pIf you re targeting IE v9 and up then as previously mentioned use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty like this href http jsfiddle net K7Lt8 rel noreferrer working example ppre code Won work below IE9 but totally safe otherwise function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Object defineProperty Array prototype sortBy enumerable false writable true value function return this sort dynamicSortMultiple apply null arguments code prepThis can be an acceptable compromise until the href https github com zenparsing es function bind rel noreferrer title bind operator proposal bind operator arrives ppAll those prototype fun enables this ppre codePeople sortBy Name Surname code preh3You Should Read This h3pIf you use the direct prototype access method Object defineProperty is fine and other code does not check href https developer mozilla org en US docs JavaScript Reference Global Objects Object hasOwnProperty rel noreferrer hasOwnProperty kittens die Ok to be honest no harm comes to any kitten really but probably things will break and every other developer in your team will hate you pp img src https stack imgur com kL8So png alt evil ppSee that last SortBy Yeah Not cool Use Object defineProperty where you can and leave the Array prototype alone otherwise if you are using this strictly for strings then you can use var result property localeCompare property instead of var result property property property property pYou can also create dynamic sort function that sorts objects by their value that you pass ppre codefunction dynamicSort property var sortOrder if property sortOrder property property substr return function var result property lt property property gt property return result sortOrder code prepSo you can have an array of objects like this ppre codevar People Name Name Surname Surname Name AAA Surname ZZZ Name Name Surname AAA code prep and it will work when you do ppre codePeople sort dynamicSort Name People sort dynamicSort Surname People sort dynamicSort Surname code prepActually this already answers the question Below part is written because many people contacted me complaining that href https stackoverflow com questions 11379361 it doesn work with multiple parameters ph2Multiple Parameters h2pYou can use the function below to generate sort functions with multiple sort parameters ppre codefunction dynamicSortMultiple save the arguments object as it will be overwritten note that arguments object is an array like object consisting of the names of the properties to sort by var props arguments return function obj1 obj2 var result numberOfProperties props length try getting different result from equal as long as we have extra properties to compare while result amp amp lt numberOfProperties result dynamicSort props obj1 obj2 return result code prepWhich would enable you to do something like this ppre codePeople sort dynamicSortMultiple Name Surname code preh2Adding It To The Prototype h2p em Implementation which is just below is inspired from href https stackoverflow com users 2312161 mike Mike href https stackoverflow com 16174180 300011 answer em pp strongI wouldn recommend changing native object prototype but just to give an example so you can implement it on your own objects strong For the environments that support it you can also use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty as shown in the next section which at least doesn have the negative side effect of being enumerable as described at the last part ppPrototype implementation would be something like the following href http jsfiddle net M2ESb rel noreferrer Here working example ppre code Don just copy paste this code You will break the for in loops function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Array prototype sortBy function return this sort dynamicSortMultiple apply null arguments code preh3The OK Way Of Adding It To The Prototype h3pIf you re targeting IE v9 and up then as previously mentioned use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty like this href http jsfiddle net K7Lt8 rel noreferrer working example ppre code Won work below IE9 but totally safe otherwise function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Object defineProperty Array prototype sortBy enumerable false writable true value function return this sort dynamicSortMultiple apply null arguments code prepThis can be an acceptable compromise until the href https github com zenparsing es function bind rel noreferrer title bind operator proposal bind operator arrives ppAll those prototype fun enables this ppre codePeople sortBy Name Surname code preh3You Should Read This h3pIf you use the direct prototype access method Object defineProperty is fine and other code does not check href https developer mozilla org en US docs JavaScript Reference Global Objects Object hasOwnProperty rel noreferrer hasOwnProperty kittens die Ok to be honest no harm comes to any kitten really but probably things will break and every other developer in your team will hate you pp img src https stack imgur com kL8So png alt evil ppSee that last SortBy Yeah Not cool Use Object defineProperty where you can and leave the Array prototype alone otherwise um how should the undefined key be handled There are different things you can do to make that work Get default value and use it in comparison like property defaultVal Always return or maybe if property is null This is Turing complete language you can possibly handle all the cases What happens when is getter which throws There could be unlimited number of cases pYou can also create dynamic sort function that sorts objects by their value that you pass ppre codefunction dynamicSort property var sortOrder if property sortOrder property property substr return function var result property lt property property gt property return result sortOrder code prepSo you can have an array of objects like this ppre codevar People Name Name Surname Surname Name AAA Surname ZZZ Name Name Surname AAA code prep and it will work when you do ppre codePeople sort dynamicSort Name People sort dynamicSort Surname People sort dynamicSort Surname code prepActually this already answers the question Below part is written because many people contacted me complaining that href https stackoverflow com questions 11379361 it doesn work with multiple parameters ph2Multiple Parameters h2pYou can use the function below to generate sort functions with multiple sort parameters ppre codefunction dynamicSortMultiple save the arguments object as it will be overwritten note that arguments object is an array like object consisting of the names of the properties to sort by var props arguments return function obj1 obj2 var result numberOfProperties props length try getting different result from equal as long as we have extra properties to compare while result amp amp lt numberOfProperties result dynamicSort props obj1 obj2 return result code prepWhich would enable you to do something like this ppre codePeople sort dynamicSortMultiple Name Surname code preh2Adding It To The Prototype h2p em Implementation which is just below is inspired from href https stackoverflow com users 2312161 mike Mike href https stackoverflow com 16174180 300011 answer em pp strongI wouldn recommend changing native object prototype but just to give an example so you can implement it on your own objects strong For the environments that support it you can also use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty as shown in the next section which at least doesn have the negative side effect of being enumerable as described at the last part ppPrototype implementation would be something like the following href http jsfiddle net M2ESb rel noreferrer Here working example ppre code Don just copy paste this code You will break the for in loops function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Array prototype sortBy function return this sort dynamicSortMultiple apply null arguments code preh3The OK Way Of Adding It To The Prototype h3pIf you re targeting IE v9 and up then as previously mentioned use href https developer mozilla org en US docs JavaScript Reference Global Objects Object defineProperty rel noreferrer Object defineProperty like this href http jsfiddle net K7Lt8 rel noreferrer working example ppre code Won work below IE9 but totally safe otherwise function function dynamicSortMultiple attr dynamicSortMultiple function body comes here function dynamicSort property dynamicSort function body comes here Object defineProperty Array prototype sortBy enumerable false writable true value function return this sort dynamicSortMultiple apply null arguments code prepThis can be an acceptable compromise until the href https github com zenparsing es function bind rel noreferrer title bind operator proposal bind operator arrives ppAll those prototype fun enables this ppre codePeople sortBy Name Surname code preh3You Should Read This h3pIf you use the direct prototype access method Object defineProperty is fine and other code does not check href https developer mozilla org en US docs JavaScript Reference Global Objects Object hasOwnProperty rel noreferrer hasOwnProperty kittens die Ok to be honest no harm comes to any kitten really but probably things will break and every other developer in your team will hate you pp img src https stack imgur com kL8So png alt evil ppSee that last SortBy Yeah Not cool Use Object defineProperty where you can and leave the Array prototype alone otherwise you can add the same escape above as well and it would work the same There is no one size fits all solution when it comes to sorting objects,0,NULL,NULL 23645,390090,956958,NULL,NULL,NULL,0,NULL,NULL 23646,68959,675986,Supporter Necromancer,NULL,NULL,0,NULL,NULL 23647,170451,1224487,Popular Question Notable Question Good Question Yearling Revival Famous Question Nice Question Yearling Civic Duty Commentator,NULL,NULL,0,NULL,NULL 23648,1685574,1293659,Popular Question Excavator Popular Question Custodian Yearling Popular Question Nice Answer Enlightened Nice Answer Notable Question Yearling c# Nice Answer Good Answer Notable Question Nice Answer Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23649,113338,304926,Yearling Necromancer Popular Question Yearling Civic Duty Nice Answer Enlightened Custodian Yearling Revival Custodian,NULL,pI just now wrote log handler of my own that just feeds everything to the parent process via pipe ve only been testing it for ten minutes but it seems to work pretty well pp strongNote strong This is hardcoded to codeRotatingFileHandler code which is my own use case phrh2Update now maintains this approach as package available on Pypi see href https pypi python org pypi multiprocessing logging rel noreferrer multiprocessing logging on Pypi github at href https github com jruere multiprocessing logging rel noreferrer https github com jruere multiprocessing logging h2hrh2Update Implementation h2pThis now uses queue for correct handling of concurrency and also recovers from errors correctly ve now been using this in production for several months and the current version below works without issue ppre codefrom logging handlers import RotatingFileHandlerimport multiprocessing threading logging sys tracebackclass MultiProcessingLog logging Handler def init self name mode maxsize rotate logging Handler init self self handler RotatingFileHandler name mode maxsize rotate self queue multiprocessing Queue threading Thread target self receive daemon True start def setFormatter self fmt logging Handler setFormatter self fmt self handler setFormatter fmt def receive self while True try record self queue get self handler emit record except KeyboardInterrupt SystemExit raise except EOFError break except traceback print exc file sys stderr def send self self queue put nowait def format record self record ensure that exc info and args have been stringified Removes any chance of unpickleable things inside and possibly reduces message size sent over the pipe if record args record msg record msg record args record args None if record exc info dummy self format record record exc info None return record def emit self record try self format record record self send except KeyboardInterrupt SystemExit raise except self handleError record def close self self handler close logging Handler close self code pre Just added this into my process based pipeline works great logger logging getLogger my logger logger setLevel logging DEBUG handler MultiProcessingLog pipeline logs job csv logger addHandler handler,0,NULL,NULL 23650,168437,298560,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23651,2491,804266,NULL,NULL,NULL,0,NULL,NULL 23652,49182,32809,Yearling Famous Question Popular Question Good Question Civic Duty Popular Question Yearling Guru Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 23653,237073,637593,NULL,NULL,NULL,0,NULL,NULL 23654,228883,64773,NULL,NULL,NULL,0,NULL,NULL 23655,97399,944035,NULL,NULL,NULL,0,NULL,NULL 23656,220900,462761,Enthusiast,NULL,NULL,0,NULL,NULL 23657,199484,755175,Tumbleweed,NULL,NULL,0,NULL,NULL 23658,18961,202168,Nice Question Nice Answer Famous Question Revival Necromancer Announcer Necromancer Necromancer Good Answer Good Question Necromancer Revival Necromancer python Nice Answer Popular Question Notable Question Popular Question Announcer Nice Answer Announcer Nice Answer Nice Answer Enlightened Yearling Revival Necromancer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Populist Popular Question Revival Good Answer Notable Question Nice Answer Announcer Enlightened Nice Answer Necromancer Notable Question Necromancer Yearling Necromancer Notable Question Nice Answer Announcer Necromancer Revival Good Answer Announcer Announcer Popular Question Announcer Nice Answer Popular Question Announcer Announcer Nice Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Nice Answer Announcer Yearling Revival,NULL,pThe jQuery trick doesn encode quote marks and in IE it will strip your whitespace ppBased on the strongescape strong templatetag in Django which guess is heavily used tested already made this function which does what needed ppIt arguably simpler and possibly faster than any of the workarounds for the whitespace stripping issue and it encodes quote marks which is essential if you re going to use the result inside an attribute value for example ppre codefunction htmlEscape str return str replace amp amp amp replace amp quot replace amp 39 replace lt amp lt replace gt amp gt needed the opposite function today so adding here too function htmlUnescape str return str replace amp quot replace amp 39 replace amp lt lt replace amp gt gt replace amp amp amp code prep strongUpdate 2013 06 17 strong brIn the search for the fastest escaping have found this implementation of codereplaceAll code method bra href http dumpsite com forum index php topic msg29 msg29 rel noreferrer http dumpsite com forum index php topic msg29 msg29 br also referenced here href https stackoverflow com questions 2116558 fastest method to replace all instances of character in string 6714233 6714233 Fastest method to replace all instances of character in string brSome performance results here bra href http jsperf com htmlencoderegex 25 rel noreferrer http jsperf com htmlencoderegex 25 ppIt gives identical result string to the builtin codereplace code chains above be very happy if someone could explain why it faster pp strongUpdate 2015 03 04 strong brI just noticed that AngularJS are using exactly the method above bra href https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 rel noreferrer https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 ppThey add couple of refinements they appear to be handling an href http en wikipedia org wiki UTF Invalid code points rel noreferrer obscure Unicode issue as well as converting all non alphanumeric characters to entities was under the impression the latter was not necessary as long as you have an UTF8 charset specified for your document ppI will note that years later Django still does not do either of these things so not sure how important they are bra href https github com django django blob 8b1 django utils html py L44 rel noreferrer https github com django django blob 8b1 django utils html py L44 pp strongUpdate 2016 04 06 strong brYou may also wish to escape forward slash code code This is not required for correct HTML encoding however it is href https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 231 HTML Escape Before Inserting Untrusted Data into HTML Element Content rel noreferrer recommended by OWASP as an anti XSS safety measure thanks to for suggesting this in comments ppre code replace amp x2F code pre don agree if the function receives invalid input it should throw an error If in specific use case you want to handle invalid input in that way then either check the value before calling the function or wrap the function call in try catch pThe jQuery trick doesn encode quote marks and in IE it will strip your whitespace ppBased on the strongescape strong templatetag in Django which guess is heavily used tested already made this function which does what needed ppIt arguably simpler and possibly faster than any of the workarounds for the whitespace stripping issue and it encodes quote marks which is essential if you re going to use the result inside an attribute value for example ppre codefunction htmlEscape str return str replace amp amp amp replace amp quot replace amp 39 replace lt amp lt replace gt amp gt needed the opposite function today so adding here too function htmlUnescape str return str replace amp quot replace amp 39 replace amp lt lt replace amp gt gt replace amp amp amp code prep strongUpdate 2013 06 17 strong brIn the search for the fastest escaping have found this implementation of codereplaceAll code method bra href http dumpsite com forum index php topic msg29 msg29 rel noreferrer http dumpsite com forum index php topic msg29 msg29 br also referenced here href https stackoverflow com questions 2116558 fastest method to replace all instances of character in string 6714233 6714233 Fastest method to replace all instances of character in string brSome performance results here bra href http jsperf com htmlencoderegex 25 rel noreferrer http jsperf com htmlencoderegex 25 ppIt gives identical result string to the builtin codereplace code chains above be very happy if someone could explain why it faster pp strongUpdate 2015 03 04 strong brI just noticed that AngularJS are using exactly the method above bra href https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 rel noreferrer https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 ppThey add couple of refinements they appear to be handling an href http en wikipedia org wiki UTF Invalid code points rel noreferrer obscure Unicode issue as well as converting all non alphanumeric characters to entities was under the impression the latter was not necessary as long as you have an UTF8 charset specified for your document ppI will note that years later Django still does not do either of these things so not sure how important they are bra href https github com django django blob 8b1 django utils html py L44 rel noreferrer https github com django django blob 8b1 django utils html py L44 pp strongUpdate 2016 04 06 strong brYou may also wish to escape forward slash code code This is not required for correct HTML encoding however it is href https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 231 HTML Escape Before Inserting Untrusted Data into HTML Element Content rel noreferrer recommended by OWASP as an anti XSS safety measure thanks to for suggesting this in comments ppre code replace amp x2F code pre thanks for identifying this problem have modified the script to not cast the arg to String and thus it will raise an error if wrong type of object is passed in Validation or casting should happen outside of this function since the definition of correct behaviour for those cases will depend on context pThe jQuery trick doesn encode quote marks and in IE it will strip your whitespace ppBased on the strongescape strong templatetag in Django which guess is heavily used tested already made this function which does what needed ppIt arguably simpler and possibly faster than any of the workarounds for the whitespace stripping issue and it encodes quote marks which is essential if you re going to use the result inside an attribute value for example ppre codefunction htmlEscape str return str replace amp amp amp replace amp quot replace amp 39 replace lt amp lt replace gt amp gt needed the opposite function today so adding here too function htmlUnescape str return str replace amp quot replace amp 39 replace amp lt lt replace amp gt gt replace amp amp amp code prep strongUpdate 2013 06 17 strong brIn the search for the fastest escaping have found this implementation of codereplaceAll code method bra href http dumpsite com forum index php topic msg29 msg29 rel noreferrer http dumpsite com forum index php topic msg29 msg29 br also referenced here href https stackoverflow com questions 2116558 fastest method to replace all instances of character in string 6714233 6714233 Fastest method to replace all instances of character in string brSome performance results here bra href http jsperf com htmlencoderegex 25 rel noreferrer http jsperf com htmlencoderegex 25 ppIt gives identical result string to the builtin codereplace code chains above be very happy if someone could explain why it faster pp strongUpdate 2015 03 04 strong brI just noticed that AngularJS are using exactly the method above bra href https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 rel noreferrer https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 ppThey add couple of refinements they appear to be handling an href http en wikipedia org wiki UTF Invalid code points rel noreferrer obscure Unicode issue as well as converting all non alphanumeric characters to entities was under the impression the latter was not necessary as long as you have an UTF8 charset specified for your document ppI will note that years later Django still does not do either of these things so not sure how important they are bra href https github com django django blob 8b1 django utils html py L44 rel noreferrer https github com django django blob 8b1 django utils html py L44 pp strongUpdate 2016 04 06 strong brYou may also wish to escape forward slash code code This is not required for correct HTML encoding however it is href https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 231 HTML Escape Before Inserting Untrusted Data into HTML Element Content rel noreferrer recommended by OWASP as an anti XSS safety measure thanks to for suggesting this in comments ppre code replace amp x2F code pre no don think so do you have reason to believe it is pThe jQuery trick doesn encode quote marks and in IE it will strip your whitespace ppBased on the strongescape strong templatetag in Django which guess is heavily used tested already made this function which does what needed ppIt arguably simpler and possibly faster than any of the workarounds for the whitespace stripping issue and it encodes quote marks which is essential if you re going to use the result inside an attribute value for example ppre codefunction htmlEscape str return str replace amp amp amp replace amp quot replace amp 39 replace lt amp lt replace gt amp gt needed the opposite function today so adding here too function htmlUnescape str return str replace amp quot replace amp 39 replace amp lt lt replace amp gt gt replace amp amp amp code prep strongUpdate 2013 06 17 strong brIn the search for the fastest escaping have found this implementation of codereplaceAll code method bra href http dumpsite com forum index php topic msg29 msg29 rel noreferrer http dumpsite com forum index php topic msg29 msg29 br also referenced here href https stackoverflow com questions 2116558 fastest method to replace all instances of character in string 6714233 6714233 Fastest method to replace all instances of character in string brSome performance results here bra href http jsperf com htmlencoderegex 25 rel noreferrer http jsperf com htmlencoderegex 25 ppIt gives identical result string to the builtin codereplace code chains above be very happy if someone could explain why it faster pp strongUpdate 2015 03 04 strong brI just noticed that AngularJS are using exactly the method above bra href https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 rel noreferrer https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 ppThey add couple of refinements they appear to be handling an href http en wikipedia org wiki UTF Invalid code points rel noreferrer obscure Unicode issue as well as converting all non alphanumeric characters to entities was under the impression the latter was not necessary as long as you have an UTF8 charset specified for your document ppI will note that years later Django still does not do either of these things so not sure how important they are bra href https github com django django blob 8b1 django utils html py L44 rel noreferrer https github com django django blob 8b1 django utils html py L44 pp strongUpdate 2016 04 06 strong brYou may also wish to escape forward slash code code This is not required for correct HTML encoding however it is href https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 231 HTML Escape Before Inserting Untrusted Data into HTML Element Content rel noreferrer recommended by OWASP as an anti XSS safety measure thanks to for suggesting this in comments ppre code replace amp x2F code pre yes that is correct pThe jQuery trick doesn encode quote marks and in IE it will strip your whitespace ppBased on the strongescape strong templatetag in Django which guess is heavily used tested already made this function which does what needed ppIt arguably simpler and possibly faster than any of the workarounds for the whitespace stripping issue and it encodes quote marks which is essential if you re going to use the result inside an attribute value for example ppre codefunction htmlEscape str return str replace amp amp amp replace amp quot replace amp 39 replace lt amp lt replace gt amp gt needed the opposite function today so adding here too function htmlUnescape str return str replace amp quot replace amp 39 replace amp lt lt replace amp gt gt replace amp amp amp code prep strongUpdate 2013 06 17 strong brIn the search for the fastest escaping have found this implementation of codereplaceAll code method bra href http dumpsite com forum index php topic msg29 msg29 rel noreferrer http dumpsite com forum index php topic msg29 msg29 br also referenced here href https stackoverflow com questions 2116558 fastest method to replace all instances of character in string 6714233 6714233 Fastest method to replace all instances of character in string brSome performance results here bra href http jsperf com htmlencoderegex 25 rel noreferrer http jsperf com htmlencoderegex 25 ppIt gives identical result string to the builtin codereplace code chains above be very happy if someone could explain why it faster pp strongUpdate 2015 03 04 strong brI just noticed that AngularJS are using exactly the method above bra href https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 rel noreferrer https github com angular angular js blob v1 14 src ngSanitize sanitize js L435 ppThey add couple of refinements they appear to be handling an href http en wikipedia org wiki UTF Invalid code points rel noreferrer obscure Unicode issue as well as converting all non alphanumeric characters to entities was under the impression the latter was not necessary as long as you have an UTF8 charset specified for your document ppI will note that years later Django still does not do either of these things so not sure how important they are bra href https github com django django blob 8b1 django utils html py L44 rel noreferrer https github com django django blob 8b1 django utils html py L44 pp strongUpdate 2016 04 06 strong brYou may also wish to escape forward slash code code This is not required for correct HTML encoding however it is href https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 231 HTML Escape Before Inserting Untrusted Data into HTML Element Content rel noreferrer recommended by OWASP as an anti XSS safety measure thanks to for suggesting this in comments ppre code replace amp x2F code pre it is not necessary to escape unicode characters such as it is only needed to escape characters which have special meaning in HTML such as and,0,NULL,NULL 23659,1042543,807125,NULL,NULL,NULL,0,NULL,NULL 23660,60571,190381,Tumbleweed Yearling Great Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 23661,1261690,659544,NULL,NULL,NULL,0,NULL,NULL 23662,398819,514071,Good Answer Custodian Caucus Yearling Caucus Documentation User Yearling Reviewer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 23663,163785,192220,Notable Question Popular Question Yearling Self-Learner Caucus,NULL,NULL,0,NULL,NULL 23664,1558205,1002637,Popular Question,NULL,NULL,0,NULL,NULL 23665,770564,957118,NULL,NULL,NULL,0,NULL,NULL 23666,399126,1422812,NULL,NULL,NULL,0,NULL,NULL 23667,921564,1445316,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23668,240239,699477,NULL,NULL,NULL,0,NULL,NULL 23669,141820,118520,Nice Question Excavator Revival Custodian Nice Answer Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 23670,2988367,834108,Commentator Supporter Documentation User,NULL,NULL,0,NULL,NULL 23671,349994,619851,Popular Question,NULL,NULL,0,NULL,NULL 23672,60041,619851,Popular Question,NULL,NULL,0,NULL,NULL 23673,99622,616359,NULL,NULL,NULL,0,NULL,NULL 23674,37721,957206,NULL,NULL,NULL,0,NULL,NULL 23675,1014,901230,Custodian Custodian Explainer Nice Answer Yearling Caucus Constituent lldb Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 23676,847300,591252,NULL,NULL,NULL,0,NULL,NULL 23677,3147405,638216,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23678,1236991,783367,NULL,NULL,NULL,0,NULL,NULL 23679,775114,1527176,Citizen Patrol Custodian Necromancer Yearling Custodian Yearling Caucus Curious Revival Tenacious Nice Answer Yearling Caucus Custodian Nice Answer Explainer Caucus Popular Question Necromancer Yearling Enthusiast Necromancer python,NULL,pThis was exactly the sort of problem href http lucumr pocoo org 2014 27 python on wheels rel nofollow strongthe Python wheels format strong href https www python org dev peps pep 0427 rel nofollow described in PEP 427 was developed to address ppWheels are replacement for Python eggs which were are problematic for bunch of reasons href https packaging python org installing rel nofollow they are supported by codepip code can contain architecture specific private binaries here is href https github com lepture python wheels blob master travis yml rel nofollow one example of such an arrangement and are accepted generally by the Python communities who have stakes in these kind of things ppHere is one codesetup py code snippet from the href http lucumr pocoo org 2014 27 python on wheels rel nofollow aforelinked emPython on Wheels em article showing how one sets up binary distribution ppre codeimport osfrom setuptools import setupfrom setuptools dist import Distributionclass BinaryDistribution Distribution def is pure self return Falsesetup include package data True distclass BinaryDistribution code prep… in leu of the older but probably somehow still canonically supported codesetuptools code classes you are using It’s very straightforward to make Wheels for your distribution purposes as outlined as recall from experience either the codewheel code modules’ build process is somewhat cognizant of codevirtualenv code or it’s very easy to use one within the other ppIn any case trading in the codesetuptools code egg based APIs for wheel based tooling should save you some serious pain should think Thank you so much for your answer still can make it work Followed your advice but the py and pyc files are still included in the wheel And can find either how to remove files subclassing or whatever is needed the Distribution class read all the links and noting About the example you quote don know how to translate that yaml configuration file to python setup py script ¿Could you provide more specifics Thanks pThis was exactly the sort of problem href http lucumr pocoo org 2014 27 python on wheels rel nofollow strongthe Python wheels format strong href https www python org dev peps pep 0427 rel nofollow described in PEP 427 was developed to address ppWheels are replacement for Python eggs which were are problematic for bunch of reasons href https packaging python org installing rel nofollow they are supported by codepip code can contain architecture specific private binaries here is href https github com lepture python wheels blob master travis yml rel nofollow one example of such an arrangement and are accepted generally by the Python communities who have stakes in these kind of things ppHere is one codesetup py code snippet from the href http lucumr pocoo org 2014 27 python on wheels rel nofollow aforelinked emPython on Wheels em article showing how one sets up binary distribution ppre codeimport osfrom setuptools import setupfrom setuptools dist import Distributionclass BinaryDistribution Distribution def is pure self return Falsesetup include package data True distclass BinaryDistribution code prep… in leu of the older but probably somehow still canonically supported codesetuptools code classes you are using It’s very straightforward to make Wheels for your distribution purposes as outlined as recall from experience either the codewheel code modules’ build process is somewhat cognizant of codevirtualenv code or it’s very easy to use one within the other ppIn any case trading in the codesetuptools code egg based APIs for wheel based tooling should save you some serious pain should think searched in the indicated links and still can find solution In those links lot of tunning is done over the Distribution run setup setup etc classes functions and modules tried to navigated the source files of many of the libraries with the bdist wheel command and the source is still distributed pThis was exactly the sort of problem href http lucumr pocoo org 2014 27 python on wheels rel nofollow strongthe Python wheels format strong href https www python org dev peps pep 0427 rel nofollow described in PEP 427 was developed to address ppWheels are replacement for Python eggs which were are problematic for bunch of reasons href https packaging python org installing rel nofollow they are supported by codepip code can contain architecture specific private binaries here is href https github com lepture python wheels blob master travis yml rel nofollow one example of such an arrangement and are accepted generally by the Python communities who have stakes in these kind of things ppHere is one codesetup py code snippet from the href http lucumr pocoo org 2014 27 python on wheels rel nofollow aforelinked emPython on Wheels em article showing how one sets up binary distribution ppre codeimport osfrom setuptools import setupfrom setuptools dist import Distributionclass BinaryDistribution Distribution def is pure self return Falsesetup include package data True distclass BinaryDistribution code prep… in leu of the older but probably somehow still canonically supported codesetuptools code classes you are using It’s very straightforward to make Wheels for your distribution purposes as outlined as recall from experience either the codewheel code modules’ build process is somewhat cognizant of codevirtualenv code or it’s very easy to use one within the other ppIn any case trading in the codesetuptools code egg based APIs for wheel based tooling should save you some serious pain should think really appreciate your help but afraid you only provided pointers to solution but we are still lacking complete self contained solution to the small simple case posted was not able to use your pointers to get solution and that is why didn mark your answer as correct,0,NULL,NULL 23680,273591,247625,NULL,NULL,NULL,0,NULL,NULL 23681,841425,321336,Notable Question Yearling,NULL,NULL,0,NULL,NULL 23682,34199,60624,Yearling,NULL,NULL,0,NULL,NULL 23683,374742,369671,NULL,NULL,NULL,0,NULL,NULL 23684,70591,459877,Popular Question Yearling Custodian Census Documentation User Custodian Citizen Patrol Yearling Civic Duty Popular Question Inquisitive Tumbleweed,NULL,Reading global JavaScript variable from Elm javascript elm pI currently building small component of web app in Elm The elm component is compiled to JavaScript file loaded and then mounted on DOM node It should then read config object from codewindow config code This is not something can change ppHow can read string from codewindow config title code to use in my Elm component ve looked at ports but it seems to require me to modify the generated JavaScript or wrap something around it Is that the only option If so how would simply read the value of variable It doesn That probably what want ll play around with that tomorrow Thanks,1,Reading global JavaScript variable from Elm javascript elm pI currently building small component of web app in Elm The elm component is compiled to JavaScript file loaded and then mounted on DOM node It should then read config object from codewindow config code This is not something can change ppHow can read string from codewindow config title code to use in my Elm component ve looked at ports but it seems to require me to modify the generated JavaScript or wrap something around it Is that the only option If so how would simply read the value of variable,NULL 23685,12812,1144283,Necromancer,NULL,NULL,0,NULL,NULL 23686,1063119,551811,Necromancer Necromancer Popular Question Popular Question Nice Answer Good Answer Notable Question Revival Nice Answer Yearling Nice Answer Self-Learner Popular Question Nice Question Necromancer Necromancer Nice Question Nice Answer Good Answer Great Answer Yearling Necromancer Good Answer Good Answer Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23687,585926,223261,Famous Question Good Question,NULL,NULL,0,NULL,NULL 23688,314933,662565,Yearling Custodian Custodian Census Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 23689,1094806,824510,NULL,NULL,NULL,0,NULL,NULL 23690,226662,910039,NULL,NULL,NULL,0,NULL,NULL 23691,14443,239168,Famous Question Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question Favorite Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Nice Question Popular Question Great Question Nice Answer Enlightened Famous Question Notable Question Favorite Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Favorite Question Nice Question Nice Answer Popular Question Notable Question Popular Question Nice Question Popular Question Good Question Popular Question Nice Answer Enlightened Famous Question Famous Question Necromancer Yearling Necromancer Popular Question Nice Question Popular Question Good Question Famous Question Notable Question Famous Question Announcer Good Question Popular Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Famous Question Famous Question Popular Question Favorite Question Popular Question Nice Question Good Question Favorite Question Notable Question Popular Question Popular Question Nice Answer Famous Question Popular Question Good Question Notable Question Good Question Popular Question Nice Question Notable Question Great Question Nice Question Yearling Necromancer Favorite Question Famous Question Popular Question Notable Question Necromancer Popular Question Favorite Question Popular Question Famous Question Famous Question Great Answer Good Question Custodian Notable Question Nice Answer Popular Question Nice Question Famous Question Notable Question Nice Question Nice Question Nice Question Nice Question Notable Question Nice Question Famous Question Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 23692,575060,464008,Nice Answer,NULL,NULL,0,NULL,NULL 23693,222882,387165,NULL,NULL,NULL,0,NULL,NULL 23694,188695,886046,Teacher,NULL,NULL,0,NULL,NULL 23695,244537,556352,Popular Question,NULL,NULL,0,NULL,NULL 23696,244540,556352,Popular Question,NULL,NULL,0,NULL,NULL 23697,51183,336019,Nice Question Notable Question Yearling Yearling Nice Question Good Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 23698,12939,324921,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 23699,3014,729533,NULL,NULL,NULL,0,NULL,NULL 23700,4925479,598404,Yearling Popular Question Yearling Famous Question Necromancer Nice Question Famous Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 23701,23169,598404,Yearling Popular Question Yearling Famous Question Necromancer Nice Question Famous Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 23702,1513096,817130,NULL,NULL,NULL,0,NULL,NULL 23703,2131035,983204,NULL,NULL,NULL,0,NULL,NULL 23704,85196,252563,Curious,NULL,NULL,0,NULL,NULL 23705,20654,851305,NULL,NULL,NULL,0,NULL,NULL 23706,98118,1313644,NULL,NULL,NULL,0,NULL,NULL 23707,37476,504710,Popular Question,NULL,NULL,0,NULL,NULL 23708,727962,922547,NULL,NULL,NULL,0,NULL,NULL 23709,838806,570983,Yearling Nice Answer Enlightened Yearling Caucus Great Answer Custodian Custodian Citizen Patrol Commentator Custodian Yearling Informed Revival Reviewer,NULL,NULL,0,NULL,NULL 23710,104599,1276598,Editor Announcer,NULL,NULL,0,NULL,NULL 23711,60015,976247,Editor Excavator Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 23712,618048,654626,NULL,NULL,NULL,0,NULL,NULL 23713,23405,291538,Good Answer Yearling Notable Question Caucus Constituent Popular Question Good Question Yearling Necromancer Good Question Caucus Constituent Census Custodian Yearling Caucus Famous Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 23714,6143,359730,Yearling Famous Question Notable Question Good Question Notable Question Notable Question Popular Question Nice Question Notable Question Documentation User Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 23715,15312,1154668,NULL,NULL,NULL,0,NULL,NULL 23716,231981,8302,NULL,NULL,NULL,0,NULL,NULL 23717,13029,334314,Necromancer Yearling Good Question Necromancer Necromancer Nice Answer Yearling Necromancer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 23718,162783,476991,NULL,NULL,NULL,0,NULL,NULL 23719,278448,393143,NULL,NULL,NULL,0,NULL,NULL 23720,97307,1000527,NULL,NULL,NULL,0,NULL,NULL 23721,210937,1223242,Editor Teacher Critic Supporter Yearling Caucus Informed Commentator,NULL,NULL,0,NULL,NULL 23722,193542,41761,objective-c Guru Nice Answer Enlightened Nice Answer mysql Notable Question ruby-on-rails Nice Answer Notable Question Popular Question Nice Answer Caucus Yearling Notable Question Announcer Nice Answer Enlightened Good Answer Famous Question Nice Answer Caucus Popular Question Guru Documentation User Notable Question Yearling macos Good Answer Great Answer Census Nice Answer Caucus Constituent Nice Answer Great Answer Disciplined Nice Answer Enlightened Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 23723,131899,1116753,NULL,NULL,NULL,0,NULL,NULL 23724,185314,26049,Curious Editor Commentator Popular Question Teacher Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 23725,124245,35716,Notable Question Nice Question Necromancer Nice Question Popular Question Notable Question Good Question Yearling Mortarboard Famous Question Great Question Yearling Popular Question Famous Question Good Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 23726,442537,1460561,Popular Question,NULL,NULL,0,NULL,NULL 23727,111444,1200170,Supporter,NULL,NULL,0,NULL,NULL 23728,17716,188406,NULL,NULL,NULL,0,NULL,NULL 23729,5146,301055,Yearling,NULL,NULL,0,NULL,NULL 23730,2342800,357549,Notable Question Yearling Popular Question Caucus Autobiographer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 23731,1230201,786621,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 23732,1503646,1132252,Notable Question Teacher,NULL,NULL,0,NULL,NULL 23733,210612,287749,Yearling Good Answer Student Commentator Scholar,NULL,NULL,0,NULL,NULL 23734,74711,289927,NULL,NULL,NULL,0,NULL,NULL 23735,496284,327941,NULL,NULL,NULL,0,NULL,NULL 23736,746651,862615,NULL,NULL,NULL,0,NULL,NULL 23737,396496,517623,NULL,NULL,NULL,0,NULL,NULL 23738,325281,655296,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 23739,1896135,655296,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 23740,167758,623123,NULL,NULL,NULL,0,NULL,NULL 23741,190696,561191,NULL,NULL,NULL,0,NULL,NULL 23742,277651,365237,Good Answer Good Answer Nice Answer Nice Answer Notable Question Nice Question Nice Answer Guru Necromancer Good Answer Good Answer Nice Answer Nice Answer Yearling Revival Necromancer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Necromancer Good Question Good Answer Caucus Nice Answer Good Answer git Nice Answer Populist Nice Answer Enlightened Custodian Necromancer Talkative Revival Announcer Good Answer Necromancer Necromancer Guru Taxonomist Revival Yearling Famous Question Nice Answer Great Answer Caucus Announcer Constituent Necromancer Nice Answer Enlightened Necromancer Nice Answer Good Answer Necromancer Necromancer Good Answer Announcer Announcer Great Answer Good Answer Necromancer Revival Popular Question jboss7.x Announcer php Nice Answer spring Necromancer Nice Answer Announcer Announcer Popular Question Caucus Constituent Announcer Nice Answer Nice Answer Nice Answer Good Answer Necromancer Nice Answer Nice Answer Revival Yearling java Announcer Announcer Good Answer Revival Necromancer Nice Answer Nice Answer Popular Question Nice Answer Popular Question Great Answer Good Answer Popular Question Revival Nice Answer Enlightened,NULL,strongFrom Bloch Effective Java 2nd ed Item 48 strong pblockquote pThe codefloat code and codedouble code types are particularly ill suited for monetary calculations because it is impossible to represent or any other negative power of ten as codefloat code or codedouble code exactly pFor example suppose you have 03 and you spend 42c How much money do you have left ppre codeSystem out println 03 42 code pre pprints out code0 6100000000000001 code pThe right way to solve this problem is to use codeBigDecimal code codeint code or codelong code for monetary calculations blockquote and you don think using double for such things is error prone ve seen the float rounding issue hit real systems hard Even in banking Please don recommend it or if you do provide that as separate answer so we can downvote it pAs an addition to the answer of if you want to trust all certificates instead of just self signed you do in the style of your code ppre codebuilder loadTrustMaterial null new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true code prepor direct copy paste from my own code ppre codeimport javax net ssl SSLContext import org apache http ssl TrustStrategy import org apache http ssl SSLContexts SSLContext sslContext SSLContexts custom FIXME to contain real trust store loadTrustMaterial new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true build code prepAnd if you want to skip hostname verification as well you need to set ppre code CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf setSSLHostnameVerifier NoopHostnameVerifier INSTANCE build code prepas well ALLOW ALL HOSTNAME VERIFIER is deprecated ppObligatory warning you shouldn really do this accepting all certificates is bad thing However there are some rare use cases where you want to do this ppAs note to code previously given you ll want to close response even if httpclient execute throws an exception ppre codeCloseableHttpResponse response null try response httpclient execute httpGet System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally if response null response close code prepCode above was tested using ppre code lt dependency gt lt groupId gt org apache httpcomponents lt groupId gt lt artifactId gt httpclient lt artifactId gt lt version gt lt version gt lt dependency gt code prepAnd for the interested here my full test set ppre codeimport org apache http HttpEntity import org apache http client methods CloseableHttpResponse import org apache http client methods HttpGet import org apache http conn ssl NoopHostnameVerifier import org apache http conn ssl SSLConnectionSocketFactory import org apache http conn ssl TrustSelfSignedStrategy import org apache http impl client CloseableHttpClient import org apache http impl client HttpClients import org apache http ssl SSLContextBuilder import org apache http ssl TrustStrategy import org apache http util EntityUtils import org junit Test import javax net ssl HostnameVerifier import javax net ssl SSLHandshakeException import javax net ssl SSLPeerUnverifiedException import java security cert CertificateException import java security cert X509Certificate public class TrustAllCertificatesTest final String expiredCertSite https expired badssl com final String selfSignedCertSite https self signed badssl com final String wrongHostCertSite https wrong host badssl com static final TrustStrategy trustSelfSignedStrategy new TrustSelfSignedStrategy static final TrustStrategy trustAllStrategy new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true public void testSelfSignedOnSelfSignedUsingCode throws Exception doGet selfSignedCertSite trustSelfSignedStrategy expected SSLHandshakeException class public void testExpiredOnSelfSignedUsingCode throws Exception doGet expiredCertSite trustSelfSignedStrategy expected SSLPeerUnverifiedException class public void testWrongHostOnSelfSignedUsingCode throws Exception doGet wrongHostCertSite trustSelfSignedStrategy public void testSelfSignedOnTrustAllUsingCode throws Exception doGet selfSignedCertSite trustAllStrategy public void testExpiredOnTrustAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy expected SSLPeerUnverifiedException class public void testWrongHostOnTrustAllUsingCode throws Exception doGet wrongHostCertSite trustAllStrategy public void testSelfSignedOnAllowAllUsingCode throws Exception doGet selfSignedCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void testExpiredOnAllowAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void testWrongHostOnAllowAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void doGet String url TrustStrategy trustStrategy HostnameVerifier hostnameVerifier throws Exception SSLContextBuilder builder new SSLContextBuilder builder loadTrustMaterial trustStrategy SSLConnectionSocketFactory sslsf new SSLConnectionSocketFactory builder build CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf setSSLHostnameVerifier hostnameVerifier build HttpGet httpGet new HttpGet url CloseableHttpResponse response httpclient execute httpGet try System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally response close public void doGet String url TrustStrategy trustStrategy throws Exception SSLContextBuilder builder new SSLContextBuilder builder loadTrustMaterial trustStrategy SSLConnectionSocketFactory sslsf new SSLConnectionSocketFactory builder build CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf build HttpGet httpGet new HttpGet url CloseableHttpResponse response httpclient execute httpGet try System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally response close code prep working test project href https github com eis httpclienttests blob master src test java fi eis httptests truststore TrustAllCertificatesTest java rel noreferrer in github tus just confirmed that code works on both and with or without the first null parameter pAs an addition to the answer of if you want to trust all certificates instead of just self signed you do in the style of your code ppre codebuilder loadTrustMaterial null new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true code prepor direct copy paste from my own code ppre codeimport javax net ssl SSLContext import org apache http ssl TrustStrategy import org apache http ssl SSLContexts SSLContext sslContext SSLContexts custom FIXME to contain real trust store loadTrustMaterial new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true build code prepAnd if you want to skip hostname verification as well you need to set ppre code CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf setSSLHostnameVerifier NoopHostnameVerifier INSTANCE build code prepas well ALLOW ALL HOSTNAME VERIFIER is deprecated ppObligatory warning you shouldn really do this accepting all certificates is bad thing However there are some rare use cases where you want to do this ppAs note to code previously given you ll want to close response even if httpclient execute throws an exception ppre codeCloseableHttpResponse response null try response httpclient execute httpGet System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally if response null response close code prepCode above was tested using ppre code lt dependency gt lt groupId gt org apache httpcomponents lt groupId gt lt artifactId gt httpclient lt artifactId gt lt version gt lt version gt lt dependency gt code prepAnd for the interested here my full test set ppre codeimport org apache http HttpEntity import org apache http client methods CloseableHttpResponse import org apache http client methods HttpGet import org apache http conn ssl NoopHostnameVerifier import org apache http conn ssl SSLConnectionSocketFactory import org apache http conn ssl TrustSelfSignedStrategy import org apache http impl client CloseableHttpClient import org apache http impl client HttpClients import org apache http ssl SSLContextBuilder import org apache http ssl TrustStrategy import org apache http util EntityUtils import org junit Test import javax net ssl HostnameVerifier import javax net ssl SSLHandshakeException import javax net ssl SSLPeerUnverifiedException import java security cert CertificateException import java security cert X509Certificate public class TrustAllCertificatesTest final String expiredCertSite https expired badssl com final String selfSignedCertSite https self signed badssl com final String wrongHostCertSite https wrong host badssl com static final TrustStrategy trustSelfSignedStrategy new TrustSelfSignedStrategy static final TrustStrategy trustAllStrategy new TrustStrategy public boolean isTrusted X509Certificate chain String authType throws CertificateException return true public void testSelfSignedOnSelfSignedUsingCode throws Exception doGet selfSignedCertSite trustSelfSignedStrategy expected SSLHandshakeException class public void testExpiredOnSelfSignedUsingCode throws Exception doGet expiredCertSite trustSelfSignedStrategy expected SSLPeerUnverifiedException class public void testWrongHostOnSelfSignedUsingCode throws Exception doGet wrongHostCertSite trustSelfSignedStrategy public void testSelfSignedOnTrustAllUsingCode throws Exception doGet selfSignedCertSite trustAllStrategy public void testExpiredOnTrustAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy expected SSLPeerUnverifiedException class public void testWrongHostOnTrustAllUsingCode throws Exception doGet wrongHostCertSite trustAllStrategy public void testSelfSignedOnAllowAllUsingCode throws Exception doGet selfSignedCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void testExpiredOnAllowAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void testWrongHostOnAllowAllUsingCode throws Exception doGet expiredCertSite trustAllStrategy NoopHostnameVerifier INSTANCE public void doGet String url TrustStrategy trustStrategy HostnameVerifier hostnameVerifier throws Exception SSLContextBuilder builder new SSLContextBuilder builder loadTrustMaterial trustStrategy SSLConnectionSocketFactory sslsf new SSLConnectionSocketFactory builder build CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf setSSLHostnameVerifier hostnameVerifier build HttpGet httpGet new HttpGet url CloseableHttpResponse response httpclient execute httpGet try System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally response close public void doGet String url TrustStrategy trustStrategy throws Exception SSLContextBuilder builder new SSLContextBuilder builder loadTrustMaterial trustStrategy SSLConnectionSocketFactory sslsf new SSLConnectionSocketFactory builder build CloseableHttpClient httpclient HttpClients custom setSSLSocketFactory sslsf build HttpGet httpGet new HttpGet url CloseableHttpResponse response httpclient execute httpGet try System out println response getStatusLine HttpEntity entity response getEntity EntityUtils consume entity finally response close code prep working test project href https github com eis httpclienttests blob master src test java fi eis httptests truststore TrustAllCertificatesTest java rel noreferrer in github tus but you re correct on hostname verifier it ll fail if hostname is wrong without that ll update on that part ALLOW ALL HOSTNAME VERIFIER is deprecated though use NoopHostnameVerifier INSTANCE pre codegit clone https username password com username repository git code prepThis way worked for me from github repository pp strongEdit based on Michael Scharf comment strong ppYou can leave out the password so that it won be logged your bash history file ppre codegit clone https username com username repository git code prepIt will prompt you for your password don get how this answers the question Apparently other people don agree with me,0,NULL,NULL 23743,99211,81698,Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 23744,627967,455774,Notable Question,NULL,NULL,0,NULL,NULL 23745,20164,976416,NULL,NULL,NULL,0,NULL,NULL 23746,5034,31470,Popular Question Notable Question Popular Question Yearling Caucus Popular Question Yearling Announcer Popular Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 23747,135641,540422,Popular Question Popular Question Good Answer Notable Question Yearling Nice Question Caucus Constituent Famous Question Yearling Guru,NULL,NULL,0,NULL,NULL 23748,441195,283240,Great Answer Popular Question Popular Question Yearling Caucus Yearling Nice Answer Yearling Custodian Custodian Necromancer Nice Answer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 23749,203162,947453,NULL,NULL,NULL,0,NULL,NULL 23750,13798,96584,NULL,NULL,NULL,0,NULL,NULL 23751,185566,109264,NULL,NULL,NULL,0,NULL,NULL 23752,62885,562492,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 23753,1896483,1255721,NULL,NULL,NULL,0,NULL,NULL 23754,4135,291861,NULL,NULL,NULL,0,NULL,NULL 23755,67807,613256,Notable Question Caucus Organizer Popular Question Supporter Teacher Custodian Custodian Custodian Nice Answer Yearling Enlightened Commentator Yearling Yearling Yearling Yearling Yearling Tenacious Critic Custodian Custodian Custodian Excavator Enthusiast Yearling ruby-on-rails Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 23756,98110,801479,NULL,NULL,NULL,0,NULL,NULL 23757,116415,1370065,NULL,NULL,NULL,0,NULL,NULL 23758,85905,1028892,Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23759,45044,164643,Notable Question Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 23760,255290,1032550,NULL,NULL,NULL,0,NULL,NULL 23761,81761,943457,NULL,NULL,NULL,0,NULL,NULL 23762,402,808953,NULL,NULL,NULL,0,NULL,NULL 23763,320225,752819,NULL,NULL,NULL,0,NULL,NULL 23764,239260,854822,NULL,NULL,NULL,0,NULL,NULL 23765,903872,666611,Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 23766,1084093,1549422,Popular Question,NULL,NULL,0,NULL,NULL 23767,1121848,1106717,NULL,NULL,NULL,0,NULL,NULL 23768,689440,684809,NULL,NULL,NULL,0,NULL,NULL 23769,1752121,684809,NULL,NULL,NULL,0,NULL,NULL 23770,141480,371797,Census Tumbleweed,NULL,NULL,0,NULL,NULL 23771,137402,442636,Census Census,NULL,NULL,0,NULL,NULL 23772,466654,252604,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 23773,1513742,1177191,Unsung Hero Yearling Notable Question Custodian Custodian Civic Duty Informed Autobiographer Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Explainer Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23774,74575,1040298,Necromancer,NULL,NULL,0,NULL,NULL 23775,327219,1056433,Yearling Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 23776,55083,471293,Nice Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 23777,65704,1045895,NULL,NULL,NULL,0,NULL,NULL 23778,3685666,1045895,NULL,NULL,NULL,0,NULL,NULL 23779,263414,623553,NULL,NULL,NULL,0,NULL,NULL 23780,601223,800215,NULL,NULL,NULL,0,NULL,NULL 23781,367594,820810,Yearling,NULL,NULL,0,NULL,NULL 23782,314443,1355624,NULL,NULL,NULL,0,NULL,NULL 23783,244741,433904,Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 23784,97190,1175321,Scholar Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 23785,2068970,1175321,Scholar Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 23786,103263,196668,NULL,NULL,NULL,0,NULL,NULL 23787,343403,618550,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 23788,52416,1032514,NULL,NULL,NULL,0,NULL,NULL 23789,55521,387739,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 23790,106436,257925,Yearling Guru Custodian Yearling Notable Question Promoter Caucus Nice Question Good Answer Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 23791,23992,436826,Critic Necromancer Caucus,NULL,NULL,0,NULL,NULL 23792,304125,1078587,NULL,NULL,NULL,0,NULL,NULL 23793,854213,1423597,NULL,NULL,NULL,0,NULL,NULL 23794,63556,228646,NULL,NULL,NULL,0,NULL,NULL 23795,1124371,638652,NULL,NULL,NULL,0,NULL,NULL 23796,25892,135559,Supporter Good Answer,NULL,NULL,0,NULL,NULL 23797,97243,361937,NULL,NULL,NULL,0,NULL,NULL 23798,3808,34707,Good Answer Nice Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Yearling Guru Announcer Nice Answer Populist Good Answer Guru Yearling Announcer Great Answer Good Answer Yearling Nice Answer,NULL,pHere is set of parser combinators put together for Parsec that can be used for Haskell style layout that might be of use to you The key considerations are that codelaidout code starts and runs layout rule and that you should use the codespace code and codespaced code combinators provided rather than the stock codeParsec code combinators for the same purpose Due to the interaction of layout and comments had to merge the comment parsing into the tokenizer ppre code LANGUAGE FlexibleContexts FlexibleInstances MultiParamTypeClasses module Text Parsec Layout laidout repeat parser in layout separated by virtual semicolons space consumes one or more spaces comments and onside newlines in layout rule maybeFollowedBy spaced maybeFollowedBy space LayoutEnv type needed to describe parsers defaultLayoutEnv fresh layout semi semicolon or virtual semicolon whereimport Control Applicative lt gt import Control Monad guard import Data Char isSpace import Text Parsec Combinatorimport Text Parsec Posimport Text Parsec Prim hiding State import Text Parsec Char hiding space data LayoutContext NoLayout Layout Int deriving Eq Ord Show data LayoutEnv Env envLayout LayoutContext envBol Bool if true must run offside calculation defaultLayoutEnv LayoutEnvdefaultLayoutEnv Env TruepushContext Stream gt LayoutContext gt ParsecT LayoutEnv pushContext ctx modifyState env gt env envLayout ctx envLayout env popContext Stream gt String gt ParsecT LayoutEnv popContext loc do xs lt envLayout lt gt getState modifyState env gt env envLayout xs lt gt unexpected empty context for loc getIndentation Stream gt ParsecT LayoutEnv IntgetIndentation depth envLayout lt gt getState where depth LayoutContext gt Int depth Layout depth 0pushCurrentContext Stream gt ParsecT LayoutEnv pushCurrentContext do indent lt getIndentation col lt sourceColumn lt gt getPosition pushContext Layout max indent colmaybeFollowedBy Stream gt ParsecT gt ParsecT gt ParsecT at maybeFollowedBy do lt optional return spaced Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv aspaced maybeFollowedBy spacedata Layout VSemi VBrace Other Char deriving Eq Ord Show TODO Parse style line pragmas out herelayout Stream Char gt ParsecT LayoutEnv Layoutlayout try do bol lt envBol lt gt getState whitespace False cont bol where cont Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout cont True offside cont False onside TODO Parse nestable LINE pragmas in here whitespace Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Layout whitespace try string gt gt nested gt gt whitespace True lt gt try comment lt gt do newline whitespace True offside lt gt do tab whitespace True lt gt do satisfy isSpace lt gt space whitespace True lt gt comment Stream Char gt ParsecT LayoutEnv Layout comment do string many satisfy newline whitespace True offside nested Stream Char gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Bool gt ParsecT LayoutEnv Layout nested try do string return lt gt try do string lt nested nested lt gt do newline nested offside lt gt do anyChar nested offside Stream Char gt Bool gt ParsecT LayoutEnv Layout offside do lt getPosition pos lt compare sourceColumn lt gt getIndentation case pos of LT gt do popContext the offside rule modifyState env gt env envBol True return VBrace EQ gt return VSemi GT gt onside we remained onside If we skipped any comments or moved to new line and stayed onside we return single otherwise we provide the next char onside Stream Char gt Bool gt ParsecT LayoutEnv Layout onside True return Other onside False do modifyState env gt env envBol False Other lt gt anyCharlayoutSatisfies Stream Char gt Layout gt Bool gt ParsecT LayoutEnv layoutSatisfies guard lt lt layoutvirtual lbrace Stream Char gt ParsecT LayoutEnv virtual lbrace pushCurrentContextvirtual rbrace Stream Char gt ParsecT LayoutEnv virtual rbrace try layoutSatisfies VBrace lt gt outdent recognize run of one or more spaces including onside carriage returns in layoutspace Stream Char gt ParsecT LayoutEnv Stringspace do try layoutSatisfies Other return lt gt space recognize semicolon including virtual semicolon in layoutsemi Stream Char gt ParsecT LayoutEnv Stringsemi do try layoutSatisfies return lt gt semi colon where VSemi True Other True Falselbrace Stream Char gt ParsecT LayoutEnv Stringlbrace do char pushContext NoLayout return rbrace Stream Char gt ParsecT LayoutEnv Stringrbrace do char popContext right brace return laidout Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv laidout try braced statements lt gt vbraced statements where braced between spaced lbrace spaced rbrace vbraced between spaced virtual lbrace spaced virtual rbrace statements sepBy spaced semi code pre currently think the above source is broken but haven had chance to revisit it pWe can do this very efficiently by making structure that we can index in sub linear time ppBut first ppre code LANGUAGE BangPatterns import Data Function fix code prepLet define codef code but make it use open recursion rather than call itself directly ppre codef Int gt Int gt Int gt Intf mf 0f mf max mf div mf div mf div code prepYou can get an unmemoized codef code by using codefix code ppThis will let you test that codef code does what you mean for small values of codef code by calling for example codefix 123 144 code ppWe could memoize this by defining ppre codef list Int list map faster faster Int gt Intfaster list code prepThat performs passably well and replaces what was going to take emO em time with something that memoizes the intermediate results ppBut it still takes linear time just to index to find the memoized answer for codemf code This means that results like ppre code Main Data List gt faster 123801248604 code prepare tolerable but the result doesn scale much better than that We can do better ppFirst let define an infinite tree ppre codedata Tree Tree Tree Tree instance Functor Tree where fmap Tree Tree fmap fmap code prepAnd then we ll define way to index into it so we can find node with index coden code in emO log em time instead ppre codeindex Tree gt Int gt aindex Tree mindex Tree case divMod of gt index gt index code prep and we may find tree full of natural numbers to be convenient so we don have to fiddle around with those indices ppre codenats Tree Intnats go where go Tree go go where code prepSince we can index you can just convert tree into list ppre codetoList Tree gt toList as map index as code prepYou can check the work so far by verifying that codetoList nats code gives you code code ppNow ppre codef tree Tree Intf tree fmap fastest natsfastest Int gt Intfastest index tree code prepworks just like with list above but instead of taking linear time to find each node can chase it down in logarithmic time ppThe result is considerably faster ppre code Main gt fastest 1238019230067652175206 Main gt fastest 12793129379123120695231674999 code prepIn fact it is so much faster that you can go through and replace codeInt code with codeInteger code above and get ridiculously large answers almost instantaneously ppre code Main gt fastest 123089182309182301820312393721573993600178112200489 Main gt fastest 1230891823091823018203123123129381092311097012733777002208302545289166620866358 code pre artin made it up on the spot In retrospect it is related to the usual based implicit heap folks use where the children are at positions 2k and 2k but modified to start from base so they wind up at 2k and 2k,0,NULL,NULL 23799,1143260,34707,Good Answer Nice Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Yearling Guru Announcer Nice Answer Populist Good Answer Guru Yearling Announcer Great Answer Good Answer Yearling Nice Answer,NULL,pHere is set of parser combinators put together for Parsec that can be used for Haskell style layout that might be of use to you The key considerations are that codelaidout code starts and runs layout rule and that you should use the codespace code and codespaced code combinators provided rather than the stock codeParsec code combinators for the same purpose Due to the interaction of layout and comments had to merge the comment parsing into the tokenizer ppre code LANGUAGE FlexibleContexts FlexibleInstances MultiParamTypeClasses module Text Parsec Layout laidout repeat parser in layout separated by virtual semicolons space consumes one or more spaces comments and onside newlines in layout rule maybeFollowedBy spaced maybeFollowedBy space LayoutEnv type needed to describe parsers defaultLayoutEnv fresh layout semi semicolon or virtual semicolon whereimport Control Applicative lt gt import Control Monad guard import Data Char isSpace import Text Parsec Combinatorimport Text Parsec Posimport Text Parsec Prim hiding State import Text Parsec Char hiding space data LayoutContext NoLayout Layout Int deriving Eq Ord Show data LayoutEnv Env envLayout LayoutContext envBol Bool if true must run offside calculation defaultLayoutEnv LayoutEnvdefaultLayoutEnv Env TruepushContext Stream gt LayoutContext gt ParsecT LayoutEnv pushContext ctx modifyState env gt env envLayout ctx envLayout env popContext Stream gt String gt ParsecT LayoutEnv popContext loc do xs lt envLayout lt gt getState modifyState env gt env envLayout xs lt gt unexpected empty context for loc getIndentation Stream gt ParsecT LayoutEnv IntgetIndentation depth envLayout lt gt getState where depth LayoutContext gt Int depth Layout depth 0pushCurrentContext Stream gt ParsecT LayoutEnv pushCurrentContext do indent lt getIndentation col lt sourceColumn lt gt getPosition pushContext Layout max indent colmaybeFollowedBy Stream gt ParsecT gt ParsecT gt ParsecT at maybeFollowedBy do lt optional return spaced Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv aspaced maybeFollowedBy spacedata Layout VSemi VBrace Other Char deriving Eq Ord Show TODO Parse style line pragmas out herelayout Stream Char gt ParsecT LayoutEnv Layoutlayout try do bol lt envBol lt gt getState whitespace False cont bol where cont Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout cont True offside cont False onside TODO Parse nestable LINE pragmas in here whitespace Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Layout whitespace try string gt gt nested gt gt whitespace True lt gt try comment lt gt do newline whitespace True offside lt gt do tab whitespace True lt gt do satisfy isSpace lt gt space whitespace True lt gt comment Stream Char gt ParsecT LayoutEnv Layout comment do string many satisfy newline whitespace True offside nested Stream Char gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Bool gt ParsecT LayoutEnv Layout nested try do string return lt gt try do string lt nested nested lt gt do newline nested offside lt gt do anyChar nested offside Stream Char gt Bool gt ParsecT LayoutEnv Layout offside do lt getPosition pos lt compare sourceColumn lt gt getIndentation case pos of LT gt do popContext the offside rule modifyState env gt env envBol True return VBrace EQ gt return VSemi GT gt onside we remained onside If we skipped any comments or moved to new line and stayed onside we return single otherwise we provide the next char onside Stream Char gt Bool gt ParsecT LayoutEnv Layout onside True return Other onside False do modifyState env gt env envBol False Other lt gt anyCharlayoutSatisfies Stream Char gt Layout gt Bool gt ParsecT LayoutEnv layoutSatisfies guard lt lt layoutvirtual lbrace Stream Char gt ParsecT LayoutEnv virtual lbrace pushCurrentContextvirtual rbrace Stream Char gt ParsecT LayoutEnv virtual rbrace try layoutSatisfies VBrace lt gt outdent recognize run of one or more spaces including onside carriage returns in layoutspace Stream Char gt ParsecT LayoutEnv Stringspace do try layoutSatisfies Other return lt gt space recognize semicolon including virtual semicolon in layoutsemi Stream Char gt ParsecT LayoutEnv Stringsemi do try layoutSatisfies return lt gt semi colon where VSemi True Other True Falselbrace Stream Char gt ParsecT LayoutEnv Stringlbrace do char pushContext NoLayout return rbrace Stream Char gt ParsecT LayoutEnv Stringrbrace do char popContext right brace return laidout Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv laidout try braced statements lt gt vbraced statements where braced between spaced lbrace spaced rbrace vbraced between spaced virtual lbrace spaced virtual rbrace statements sepBy spaced semi code pre currently think the above source is broken but haven had chance to revisit it pWe can do this very efficiently by making structure that we can index in sub linear time ppBut first ppre code LANGUAGE BangPatterns import Data Function fix code prepLet define codef code but make it use open recursion rather than call itself directly ppre codef Int gt Int gt Int gt Intf mf 0f mf max mf div mf div mf div code prepYou can get an unmemoized codef code by using codefix code ppThis will let you test that codef code does what you mean for small values of codef code by calling for example codefix 123 144 code ppWe could memoize this by defining ppre codef list Int list map faster faster Int gt Intfaster list code prepThat performs passably well and replaces what was going to take emO em time with something that memoizes the intermediate results ppBut it still takes linear time just to index to find the memoized answer for codemf code This means that results like ppre code Main Data List gt faster 123801248604 code prepare tolerable but the result doesn scale much better than that We can do better ppFirst let define an infinite tree ppre codedata Tree Tree Tree Tree instance Functor Tree where fmap Tree Tree fmap fmap code prepAnd then we ll define way to index into it so we can find node with index coden code in emO log em time instead ppre codeindex Tree gt Int gt aindex Tree mindex Tree case divMod of gt index gt index code prep and we may find tree full of natural numbers to be convenient so we don have to fiddle around with those indices ppre codenats Tree Intnats go where go Tree go go where code prepSince we can index you can just convert tree into list ppre codetoList Tree gt toList as map index as code prepYou can check the work so far by verifying that codetoList nats code gives you code code ppNow ppre codef tree Tree Intf tree fmap fastest natsfastest Int gt Intfastest index tree code prepworks just like with list above but instead of taking linear time to find each node can chase it down in logarithmic time ppThe result is considerably faster ppre code Main gt fastest 1238019230067652175206 Main gt fastest 12793129379123120695231674999 code prepIn fact it is so much faster that you can go through and replace codeInt code with codeInteger code above and get ridiculously large answers almost instantaneously ppre code Main gt fastest 123089182309182301820312393721573993600178112200489 Main gt fastest 1230891823091823018203123123129381092311097012733777002208302545289166620866358 code pre artin made it up on the spot In retrospect it is related to the usual based implicit heap folks use where the children are at positions 2k and 2k but modified to start from base so they wind up at 2k and 2k,0,NULL,NULL 23800,2255547,34707,Good Answer Nice Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Yearling Guru Announcer Nice Answer Populist Good Answer Guru Yearling Announcer Great Answer Good Answer Yearling Nice Answer,NULL,pHere is set of parser combinators put together for Parsec that can be used for Haskell style layout that might be of use to you The key considerations are that codelaidout code starts and runs layout rule and that you should use the codespace code and codespaced code combinators provided rather than the stock codeParsec code combinators for the same purpose Due to the interaction of layout and comments had to merge the comment parsing into the tokenizer ppre code LANGUAGE FlexibleContexts FlexibleInstances MultiParamTypeClasses module Text Parsec Layout laidout repeat parser in layout separated by virtual semicolons space consumes one or more spaces comments and onside newlines in layout rule maybeFollowedBy spaced maybeFollowedBy space LayoutEnv type needed to describe parsers defaultLayoutEnv fresh layout semi semicolon or virtual semicolon whereimport Control Applicative lt gt import Control Monad guard import Data Char isSpace import Text Parsec Combinatorimport Text Parsec Posimport Text Parsec Prim hiding State import Text Parsec Char hiding space data LayoutContext NoLayout Layout Int deriving Eq Ord Show data LayoutEnv Env envLayout LayoutContext envBol Bool if true must run offside calculation defaultLayoutEnv LayoutEnvdefaultLayoutEnv Env TruepushContext Stream gt LayoutContext gt ParsecT LayoutEnv pushContext ctx modifyState env gt env envLayout ctx envLayout env popContext Stream gt String gt ParsecT LayoutEnv popContext loc do xs lt envLayout lt gt getState modifyState env gt env envLayout xs lt gt unexpected empty context for loc getIndentation Stream gt ParsecT LayoutEnv IntgetIndentation depth envLayout lt gt getState where depth LayoutContext gt Int depth Layout depth 0pushCurrentContext Stream gt ParsecT LayoutEnv pushCurrentContext do indent lt getIndentation col lt sourceColumn lt gt getPosition pushContext Layout max indent colmaybeFollowedBy Stream gt ParsecT gt ParsecT gt ParsecT at maybeFollowedBy do lt optional return spaced Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv aspaced maybeFollowedBy spacedata Layout VSemi VBrace Other Char deriving Eq Ord Show TODO Parse style line pragmas out herelayout Stream Char gt ParsecT LayoutEnv Layoutlayout try do bol lt envBol lt gt getState whitespace False cont bol where cont Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout cont True offside cont False onside TODO Parse nestable LINE pragmas in here whitespace Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Layout whitespace try string gt gt nested gt gt whitespace True lt gt try comment lt gt do newline whitespace True offside lt gt do tab whitespace True lt gt do satisfy isSpace lt gt space whitespace True lt gt comment Stream Char gt ParsecT LayoutEnv Layout comment do string many satisfy newline whitespace True offside nested Stream Char gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Bool gt ParsecT LayoutEnv Layout nested try do string return lt gt try do string lt nested nested lt gt do newline nested offside lt gt do anyChar nested offside Stream Char gt Bool gt ParsecT LayoutEnv Layout offside do lt getPosition pos lt compare sourceColumn lt gt getIndentation case pos of LT gt do popContext the offside rule modifyState env gt env envBol True return VBrace EQ gt return VSemi GT gt onside we remained onside If we skipped any comments or moved to new line and stayed onside we return single otherwise we provide the next char onside Stream Char gt Bool gt ParsecT LayoutEnv Layout onside True return Other onside False do modifyState env gt env envBol False Other lt gt anyCharlayoutSatisfies Stream Char gt Layout gt Bool gt ParsecT LayoutEnv layoutSatisfies guard lt lt layoutvirtual lbrace Stream Char gt ParsecT LayoutEnv virtual lbrace pushCurrentContextvirtual rbrace Stream Char gt ParsecT LayoutEnv virtual rbrace try layoutSatisfies VBrace lt gt outdent recognize run of one or more spaces including onside carriage returns in layoutspace Stream Char gt ParsecT LayoutEnv Stringspace do try layoutSatisfies Other return lt gt space recognize semicolon including virtual semicolon in layoutsemi Stream Char gt ParsecT LayoutEnv Stringsemi do try layoutSatisfies return lt gt semi colon where VSemi True Other True Falselbrace Stream Char gt ParsecT LayoutEnv Stringlbrace do char pushContext NoLayout return rbrace Stream Char gt ParsecT LayoutEnv Stringrbrace do char popContext right brace return laidout Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv laidout try braced statements lt gt vbraced statements where braced between spaced lbrace spaced rbrace vbraced between spaced virtual lbrace spaced virtual rbrace statements sepBy spaced semi code pre currently think the above source is broken but haven had chance to revisit it pWe can do this very efficiently by making structure that we can index in sub linear time ppBut first ppre code LANGUAGE BangPatterns import Data Function fix code prepLet define codef code but make it use open recursion rather than call itself directly ppre codef Int gt Int gt Int gt Intf mf 0f mf max mf div mf div mf div code prepYou can get an unmemoized codef code by using codefix code ppThis will let you test that codef code does what you mean for small values of codef code by calling for example codefix 123 144 code ppWe could memoize this by defining ppre codef list Int list map faster faster Int gt Intfaster list code prepThat performs passably well and replaces what was going to take emO em time with something that memoizes the intermediate results ppBut it still takes linear time just to index to find the memoized answer for codemf code This means that results like ppre code Main Data List gt faster 123801248604 code prepare tolerable but the result doesn scale much better than that We can do better ppFirst let define an infinite tree ppre codedata Tree Tree Tree Tree instance Functor Tree where fmap Tree Tree fmap fmap code prepAnd then we ll define way to index into it so we can find node with index coden code in emO log em time instead ppre codeindex Tree gt Int gt aindex Tree mindex Tree case divMod of gt index gt index code prep and we may find tree full of natural numbers to be convenient so we don have to fiddle around with those indices ppre codenats Tree Intnats go where go Tree go go where code prepSince we can index you can just convert tree into list ppre codetoList Tree gt toList as map index as code prepYou can check the work so far by verifying that codetoList nats code gives you code code ppNow ppre codef tree Tree Intf tree fmap fastest natsfastest Int gt Intfastest index tree code prepworks just like with list above but instead of taking linear time to find each node can chase it down in logarithmic time ppThe result is considerably faster ppre code Main gt fastest 1238019230067652175206 Main gt fastest 12793129379123120695231674999 code prepIn fact it is so much faster that you can go through and replace codeInt code with codeInteger code above and get ridiculously large answers almost instantaneously ppre code Main gt fastest 123089182309182301820312393721573993600178112200489 Main gt fastest 1230891823091823018203123123129381092311097012733777002208302545289166620866358 code pre artin made it up on the spot In retrospect it is related to the usual based implicit heap folks use where the children are at positions 2k and 2k but modified to start from base so they wind up at 2k and 2k,0,NULL,NULL 23801,549458,142192,NULL,NULL,NULL,0,NULL,NULL 23802,113607,1157299,NULL,NULL,NULL,0,NULL,NULL 23803,1099113,833638,NULL,NULL,NULL,0,NULL,NULL 23804,1416518,1507394,NULL,NULL,NULL,0,NULL,NULL 23805,7828,127629,Popular Question Famous Question Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 23806,559445,1182699,Notable Question,NULL,NULL,0,NULL,NULL 23807,102992,1121539,NULL,NULL,NULL,0,NULL,NULL 23808,417291,1193477,Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23809,196921,446456,Famous Question Yearling Custodian,NULL,NULL,0,NULL,NULL 23810,72724,1155869,NULL,NULL,NULL,0,NULL,NULL 23811,99834,17524,Good Answer Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23812,103662,1330674,Yearling Nice Question Good Answer Yearling Good Question Caucus Yearling Necromancer Custodian Custodian Custodian Custodian Great Answer Documentation User Census Necromancer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23813,1275055,544901,Informed Editor Autobiographer,NULL,NULL,0,NULL,NULL 23814,325087,884213,Nice Answer,NULL,NULL,0,NULL,NULL 23815,6083,737957,Supporter Yearling,NULL,NULL,0,NULL,NULL 23816,216361,201339,NULL,NULL,NULL,0,NULL,NULL 23817,190808,134544,Notable Question,NULL,NULL,0,NULL,NULL 23818,243659,117261,Yearling Popular Question Critic Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23819,522860,247220,NULL,NULL,NULL,0,NULL,NULL 23820,476422,323530,Notable Question Notable Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 23821,1139253,1230333,Student Editor Scholar,NULL,NULL,0,NULL,NULL 23822,85333,1376350,Necromancer,NULL,NULL,0,NULL,NULL 23823,21319,103302,Necromancer Notable Question Custodian Custodian Good Answer Self-Learner Yearling Necromancer Cleanup Caucus Constituent Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 23824,372583,1369237,NULL,NULL,NULL,0,NULL,NULL 23825,136840,1436947,Popular Question,NULL,NULL,0,NULL,NULL 23826,588964,474797,NULL,NULL,NULL,0,NULL,NULL 23827,312373,790641,NULL,NULL,NULL,0,NULL,NULL 23828,444682,814551,NULL,NULL,NULL,0,NULL,NULL 23829,735268,811989,NULL,NULL,NULL,0,NULL,NULL 23830,281595,55094,Good Question Good Answer Famous Question Nice Answer Enlightened Good Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Great Question Famous Question Notable Question Notable Question Popular Question Great Question Notable Question Popular Question Nice Question Nice Answer Yearling Favorite Question Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Favorite Question Nice Question Notable Question Notable Question Custodian Nice Question Notable Question Nice Question Yearling Notable Question Good Question Nice Answer Enlightened Notable Question Notable Question Good Question Famous Question Nice Answer Popular Question Favorite Question Notable Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 23831,1533289,1314584,Nice Answer Yearling Good Answer Yearling Critic,NULL,NULL,0,NULL,NULL 23832,214118,100472,Yearling Notable Question Great Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23833,3351605,100472,Yearling Notable Question Great Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23834,223528,1086286,Supporter,NULL,NULL,0,NULL,NULL 23835,11858,670396,Great Answer Good Answer Nice Answer arrays Nice Answer Good Answer Yearling Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Notable Question Nice Answer Enlightened Guru Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened css Good Answer Nice Answer Great Answer Custodian Nice Answer Enlightened Yearling function Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Famous Question Nice Answer Popular Question Nice Answer Census Nice Answer Enlightened Nice Answer Yearling Famous Question Famous Question Great Answer Guru Good Answer Notable Question Nice Answer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 23836,321771,910730,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 23837,149084,1436842,NULL,NULL,NULL,0,NULL,NULL 23838,239657,390989,Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Enlightened Good Answer Announcer Caucus Constituent Census Good Answer Populist Announcer Yearling Caucus Constituent Nice Answer Good Answer Great Answer Nice Answer Census Nice Answer Caucus Constituent Yearling Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 23839,158695,1117771,Tumbleweed,NULL,NULL,0,NULL,NULL 23840,395016,567637,NULL,NULL,NULL,0,NULL,NULL 23841,2510,557959,Popular Question Caucus Caucus Popular Question Caucus Good Answer Informed,NULL,NULL,0,NULL,NULL 23842,383031,197581,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 23843,325449,1106107,NULL,NULL,NULL,0,NULL,NULL 23844,391532,926296,NULL,NULL,NULL,0,NULL,NULL 23845,778909,525103,Yearling Caucus,NULL,NULL,0,NULL,NULL 23846,16024,21932,Yearling Notable Question Popular Question Notable Question Famous Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 23847,319152,863489,Popular Question Nice Answer Yearling Caucus Constituent Critic Revival Caucus Announcer Notable Question,NULL,NULL,0,NULL,NULL 23848,2499409,253608,Yearling Custodian Custodian Custodian Good Answer Necromancer Yearling Civic Duty Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23849,111100,253608,Yearling Custodian Custodian Custodian Good Answer Necromancer Yearling Civic Duty Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 23850,21385,471720,Yearling,NULL,NULL,0,NULL,NULL 23851,1507895,1231386,NULL,NULL,NULL,0,NULL,NULL 23852,209112,1040707,Autobiographer Editor,NULL,NULL,0,NULL,NULL 23853,932874,1345383,NULL,NULL,NULL,0,NULL,NULL 23854,32806,529690,Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23855,190056,1276323,NULL,NULL,NULL,0,NULL,NULL 23856,1657519,994527,NULL,NULL,NULL,0,NULL,NULL 23857,62715,717524,Notable Question,NULL,NULL,0,NULL,NULL 23858,205284,659783,NULL,NULL,NULL,0,NULL,NULL 23859,201188,632295,NULL,NULL,NULL,0,NULL,NULL 23860,509631,1089914,NULL,NULL,NULL,0,NULL,NULL 23861,62714,451391,javascript Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 23862,167380,734949,NULL,NULL,NULL,0,NULL,NULL 23863,831301,738605,NULL,NULL,NULL,0,NULL,NULL 23864,753598,738605,NULL,NULL,NULL,0,NULL,NULL 23865,41613,377535,Informed,NULL,NULL,0,NULL,NULL 23866,27681,179328,Great Answer Civic Duty Good Answer Yearling Great Answer Good Answer Pundit Yearling Yearling,NULL,NULL,0,NULL,NULL 23867,2966764,1437708,NULL,NULL,NULL,0,NULL,NULL 23868,220674,614215,NULL,NULL,NULL,0,NULL,NULL 23869,576926,802795,NULL,NULL,NULL,0,NULL,NULL 23870,719174,473904,Popular Question,NULL,NULL,0,NULL,NULL 23871,364234,1349125,NULL,NULL,NULL,0,NULL,NULL 23872,206519,1029709,Popular Question,NULL,NULL,0,NULL,NULL 23873,23736,728333,Citizen Patrol Commentator Informed Critic Yearling Explainer Caucus Yearling Yearling Popular Question Caucus Constituent Revival Caucus,NULL,NULL,0,NULL,NULL 23874,778998,728169,NULL,NULL,NULL,0,NULL,NULL 23875,137576,166838,Great Question Guru Nice Answer Enlightened Good Answer Yearling Guru Notable Question Nice Answer Enlightened Famous Question Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 23876,181839,763836,NULL,NULL,NULL,0,NULL,NULL 23877,385560,1160353,NULL,NULL,NULL,0,NULL,NULL 23878,87903,326145,NULL,NULL,NULL,0,NULL,NULL 23879,3374491,326145,NULL,NULL,NULL,0,NULL,NULL 23880,218461,1274163,NULL,NULL,NULL,0,NULL,NULL 23881,177371,355166,NULL,NULL,NULL,0,NULL,NULL 23882,45132,890860,NULL,NULL,NULL,0,NULL,NULL 23883,164582,511069,protractor Good Answer Nice Answer Nice Answer Enlightened Revival Popular Question Nice Answer Good Answer Nice Answer Enlightened Famous Question Revival Notable Question Good Answer Good Answer Populist Nice Answer Enlightened Popular Question Announcer Notable Question Nice Answer Enlightened Self-Learner Nice Answer Enlightened Caucus Popular Question Yearling Good Answer Announcer Good Answer Good Question Nice Answer Announcer Great Answer Announcer Booster Nice Answer Popular Question Guru Good Answer Nice Answer Caucus Popular Question Nice Question Nice Question Nice Answer Enlightened Cleanup Notable Question Nice Answer Nice Answer Yearling Notable Question Good Answer Nice Answer Enlightened Revival Revival Good Answer Nice Question Publicist Guru Notable Question Nice Question Nice Question Famous Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 23884,207159,1000836,NULL,NULL,NULL,0,NULL,NULL 23885,422349,1175237,NULL,NULL,NULL,0,NULL,NULL 23886,188395,1557148,NULL,NULL,NULL,0,NULL,NULL 23887,182104,1302178,Informed Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 23888,11812,1345720,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 23889,678292,1246201,NULL,NULL,NULL,0,NULL,NULL 23890,623779,678780,Caucus Constituent Peer Pressure Necromancer Necromancer Announcer Announcer Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 23891,71062,259374,Nice Question Popular Question Famous Question Nice Question Yearling Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 23892,35841,128595,Great Answer Yearling Guru Nice Answer Custodian Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Good Answer Caucus Self-Learner Caucus Nice Answer Yearling Good Question Necromancer Nice Answer,NULL,pYou don really need all that much code ppre codeIFS sorted sort lt lt lt array unset IFS code prepSupports whitespace in elements as long as it not newline emand em works in Bash ppe ppre code array IFS sorted sort lt lt lt array printf sorted code prep strongNote strong has href https stackoverflow com questions 7442417 how to sort an array in bash 11789688 noredirect comment67720230 11789688 pointed out that care is required if elements contain wildcards such as code code or code code pblockquote pThe sorted part is using the split and glob operator You should turn glob off codeset code or codeset noglob code or codeshopt op noglob code or an element of the array like code code will be expanded to list of files blockquoteh2What happening h2pThe result is culmination six things that happen in this order polli codeIFS code lili code array code lili code lt lt lt code lili codesort code lili codesorted code lili codeunset IFS code li olh3First the codeIFS code h3pThis is an important part of our operation that affects the outcome of and in the following way ppGiven pulli code array code expands to every element delimited by the first character of codeIFS code lili codesorted code creates elements by splitting on every character of codeIFS code li ulp codeIFS code href https unix stackexchange com questions 184863 what is the meaning of ifs in bash scripting sets things up so that elements are expanded using ema new line em as the delimiter and then later created in way that each line becomes an element Splitting on new line ppDelimiting by new line is important because that how codesort code operates sorting per line Splitting by emonly em new line is not as important but is needed preserve elements that contain spaces or tabs ppThe default value of codeIFS code is ema space em ema tab em followed by ema new line em and would be unfit for our operation ph3Next the codesort lt lt lt array code part h3p code lt lt lt code called href https unix stackexchange com questions 80362 what does mean emhere strings em takes the expansion of code array code as explained above and feeds it into the standard input of codesort code ppWith our example codesort code is fed this following string ppre codea cbf3 code prepSince codesort code emsorts em it produces ppre code3 5a cbf code preh3Next the codesorted code part h3pThe code code part called href http www tldp org LDP abs html commandsub html rel noreferrer emcommand substitution em causes its content codesort lt lt lt array code to run as normal command while taking the resulting emstandard output em as the literal that goes where ever code code was ppIn our example this produces something similar to simply writing ppre codesorted 5a cbf code prep codesorted code then becomes an array that created by splitting this literal on every new line ph3Finally the codeunset IFS code h3pThis resets the value of codeIFS code to the default value and is just good practice ppIt to ensure we don cause trouble with anything that relies on codeIFS code later in our script Otherwise we need to remember that we ve switched things around something that might be impractical for complex scripts Cute answer but you re already showing printf use which can be used for an easier solution that doesn depend on IFS for generating output IFS sorted printf array sort pYou don really need all that much code ppre codeIFS sorted sort lt lt lt array unset IFS code prepSupports whitespace in elements as long as it not newline emand em works in Bash ppe ppre code array IFS sorted sort lt lt lt array printf sorted code prep strongNote strong has href https stackoverflow com questions 7442417 how to sort an array in bash 11789688 noredirect comment67720230 11789688 pointed out that care is required if elements contain wildcards such as code code or code code pblockquote pThe sorted part is using the split and glob operator You should turn glob off codeset code or codeset noglob code or codeshopt op noglob code or an element of the array like code code will be expanded to list of files blockquoteh2What happening h2pThe result is culmination six things that happen in this order polli codeIFS code lili code array code lili code lt lt lt code lili codesort code lili codesorted code lili codeunset IFS code li olh3First the codeIFS code h3pThis is an important part of our operation that affects the outcome of and in the following way ppGiven pulli code array code expands to every element delimited by the first character of codeIFS code lili codesorted code creates elements by splitting on every character of codeIFS code li ulp codeIFS code href https unix stackexchange com questions 184863 what is the meaning of ifs in bash scripting sets things up so that elements are expanded using ema new line em as the delimiter and then later created in way that each line becomes an element Splitting on new line ppDelimiting by new line is important because that how codesort code operates sorting per line Splitting by emonly em new line is not as important but is needed preserve elements that contain spaces or tabs ppThe default value of codeIFS code is ema space em ema tab em followed by ema new line em and would be unfit for our operation ph3Next the codesort lt lt lt array code part h3p code lt lt lt code called href https unix stackexchange com questions 80362 what does mean emhere strings em takes the expansion of code array code as explained above and feeds it into the standard input of codesort code ppWith our example codesort code is fed this following string ppre codea cbf3 code prepSince codesort code emsorts em it produces ppre code3 5a cbf code preh3Next the codesorted code part h3pThe code code part called href http www tldp org LDP abs html commandsub html rel noreferrer emcommand substitution em causes its content codesort lt lt lt array code to run as normal command while taking the resulting emstandard output em as the literal that goes where ever code code was ppIn our example this produces something similar to simply writing ppre codesorted 5a cbf code prep codesorted code then becomes an array that created by splitting this literal on every new line ph3Finally the codeunset IFS code h3pThis resets the value of codeIFS code to the default value and is just good practice ppIt to ensure we don cause trouble with anything that relies on codeIFS code later in our script Otherwise we need to remember that we ve switched things around something that might be impractical for complex scripts Sorry think that actually meant to say that it doesn depend on and how that interacts with IFS,0,NULL,NULL 23893,364491,1694,Guru Nice Answer Nice Question Great Answer Popular Question Good Answer Notable Question Notable Question Nice Answer Great Answer Yearling Famous Question Nice Question Guru Great Answer Nice Answer Enlightened Popular Question Guru Favorite Question Famous Question Guru Famous Question Nice Answer Nice Answer Enlightened Famous Question Generalist Great Question Great Answer Great Question Notable Question Great Answer Nice Answer Announcer Nice Answer Enlightened Great Answer Nice Question Yearling Good Answer Good Answer Guru Famous Question Favorite Question Census Nice Answer Enlightened Good Answer Nice Answer Great Answer Favorite Question Popular Question Notable Question Famous Question Popular Question Notable Question Good Question Popular Question Yearling Nice Answer,NULL,pHere is very simplified explanation polli pYour web browser downloads the web server certificate which contains the public key of the web server This certificate is signed with the private key of trusted certificate authority lili pYour web browser comes installed with the public keys of all of the major certificate authorities It uses this public key to verify that the web server certificate was indeed signed by the trusted certificate authority lili pThe certificate contains the domain name and or ip address of the web server Your web browser confirms with the certificate authority that the address listed in the certificate is the one to which it has an open connection lili pYour web browser generates shared symmetric key which will be used to encrypt the HTTP traffic on this connection this is much more efficient than using public private key encryption for everything Your browser encrypts the symmetric key with the public key of the web server then sends it back thus ensuring that only the web server can decrypt it since only the web server has its private key li olpNote that the certificate authority CA is essential to preventing man in the middle attacks However even an unsigned certificate will prevent someone from passively listening in on your encrypted traffic since they have no way to gain access to your shared symmetric key Great question Historically there have been few approaches such as send an email from webmaster being verified or Place this file on your domain to prove you own it However there have indeed been problems with people getting CAs to issue certificates for domains they don own famously someone managed to get shady CA to issue them certificate for gmail com,0,NULL,NULL 23894,367507,5958,Nice Answer Enlightened Nice Answer Yearling Yearling Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 23895,42128,518161,Great Answer Popular Question Good Answer Yearling Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 23896,33666,635282,NULL,NULL,NULL,0,NULL,NULL 23897,311873,850958,NULL,NULL,NULL,0,NULL,NULL 23898,136065,214420,Yearling Informed Custodian Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 23899,657252,643721,Yearling Popular Question,NULL,NULL,0,NULL,NULL 23900,212172,987589,NULL,NULL,NULL,0,NULL,NULL 23901,124918,1032608,Revival Commentator Enthusiast Yearling Revival Critic Self-Learner Revival Yearling Revival,NULL,NULL,0,NULL,NULL 23902,367403,1342338,NULL,NULL,NULL,0,NULL,NULL 23903,243132,334423,NULL,NULL,NULL,0,NULL,NULL 23904,505925,542930,NULL,NULL,NULL,0,NULL,NULL 23905,745303,625860,NULL,NULL,NULL,0,NULL,NULL 23906,238870,962150,Yearling,NULL,NULL,0,NULL,NULL 23907,181105,637912,Yearling Citizen Patrol Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 23908,281724,133918,NULL,NULL,NULL,0,NULL,NULL 23909,1029655,396673,NULL,NULL,NULL,0,NULL,NULL 23910,53311,292955,NULL,NULL,NULL,0,NULL,NULL 23911,418525,149872,Famous Question Revival Good Answer Nice Answer Revival Notable Question Popular Question Notable Question Yearling Notable Question Nice Answer Caucus Necromancer Constituent Popular Question Notable Question Notable Question Inquisitive scrapy Notable Question java Nice Question grails Necromancer Good Answer Caucus Constituent Yearling Notable Question Nice Answer Popular Question Documentation User Nice Answer Enlightened Revival Good Answer Census Good Answer Nice Answer Caucus Announcer Revival Nice Answer Nice Answer Enlightened Necromancer Great Question Nice Answer Great Answer Yearling Popular Question Nice Answer Enlightened Nice Question Popular Question Famous Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 23912,1631501,444527,Popular Question,NULL,NULL,0,NULL,NULL 23913,897028,1081651,NULL,NULL,NULL,0,NULL,NULL 23914,136105,1170462,NULL,NULL,NULL,0,NULL,NULL 23915,1614007,1283866,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23916,61844,8206,Nice Answer Nice Answer Nice Answer Guru Notable Question Famous Question Nice Answer Famous Question Favorite Question Nice Answer Enlightened Great Question Great Answer Popular Question Great Question Guru Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Great Question Enlightened Nice Answer Nice Answer Great Answer Nice Answer Nice Question Good Answer Good Answer compiler-construction Nice Answer Yearling Nice Answer Nice Answer Guru Notable Question Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Question Good Answer Guru Guru Nice Answer Enlightened Nice Answer Good Answer Guru Nice Question Good Answer Great Answer Good Answer Famous Question Custodian Good Answer Good Answer Necromancer Notable Question Guru Stellar Question Nice Answer Nice Answer Enlightened Good Answer Good Question Famous Question Nice Answer Great Answer Nice Answer Enlightened Good Answer Notable Question Great Answer Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Revival assembly Good Answer Guru Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Populist Nice Answer Enlightened Nice Answer Great Answer Nice Question Good Answer Notable Question Great Answer Nice Answer Good Answer Nice Question Great Answer llvm-ir Good Answer Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Guru Nice Answer Nice Answer Enlightened Popular Question Good Question Good Question Nice Answer Yearling Nice Answer c++ Great Question Nice Answer Enlightened Stellar Question Nice Answer Nice Question,NULL,pThere are some problems pulliWhy do you print out count when it didn divide by It doesn mean it prime it means only that this particular doesn divide it lili codecontinue code moves to the next loop iteration but you really want to stop it using codebreak code li ulpHere your code with few fixes it prints out only primes ppre codeimport mathdef main count while True isprime True for in range int math sqrt count if count isprime False break if isprime print count count code prepFor much more efficient prime generation see the Sieve of Erastothenes as others have suggested Here nice optimized implementation with many comments ppre code Sieve of Eratosthenes Code by David Eppstein UC Irvine 28 Feb 2002 http code activestate com recipes 117119 def gen primes Generate an infinite sequence of prime numbers Maps composites to primes witnessing their compositeness This is memory efficient as the sieve is not run forward indefinitely but only as long as required by the current number being tested The running integer that checked for primeness while True if not in is new prime Yield it and mark its first multiple that isn already marked in previous iterations yield else is composite is the list of primes that divide it Since we ve reached we no longer need it in the map but we ll mark the next multiples of its witnesses to prepare for larger numbers for in setdefault append del code prepNote that it returns generator si it returns generator,0,NULL,NULL 23917,642975,1369249,NULL,NULL,NULL,0,NULL,NULL 23918,245464,112851,Famous Question,NULL,NULL,0,NULL,NULL 23919,681198,6872,NULL,NULL,NULL,0,NULL,NULL 23920,219551,67094,Yearling Favorite Question Yearling Necromancer Organizer Caucus Census Famous Question Yearling Caucus Constituent Documentation User Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 23921,118091,467757,NULL,NULL,NULL,0,NULL,NULL 23922,121971,471292,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23923,116253,387333,NULL,NULL,NULL,0,NULL,NULL 23924,7660802,1295181,Census,NULL,NULL,0,NULL,NULL 23925,18104,1295181,Census,NULL,NULL,0,NULL,NULL 23926,33238,4481,Famous Question Famous Question Yearling Notable Question Yearling Announcer Popular Question Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 23927,9023,454265,Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 23928,280832,420971,NULL,NULL,NULL,0,NULL,NULL 23929,3600931,1280744,Famous Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 23930,371110,235212,NULL,NULL,NULL,0,NULL,NULL 23931,142807,1098688,NULL,NULL,NULL,0,NULL,NULL 23932,517560,409294,NULL,NULL,NULL,0,NULL,NULL 23933,4733,197160,Announcer Yearling Good Answer Necromancer Yearling Nice Answer Revival Yearling Necromancer,NULL,pYou probably want the href http docs djangoproject com en dev ref templates builtins with rel noreferrer with template tag ppre code with World as name lt html gt lt div gt Hello name lt div gt lt html gt endwith code prep strongEDIT strong ppThe proper way to use href https docs djangoproject com en stable ref templates builtins with rel noreferrer the with tag is now older format is still supported ppre code with name World greeting Hello lt html gt lt div gt greeting name lt div gt lt html gt endwith code pre Because Django doesn use Jinja https docs djangoproject com en topics templates,0,NULL,NULL 23934,589335,1075304,Teacher Supporter Informed Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 23935,548780,492368,NULL,NULL,NULL,0,NULL,NULL 23936,1074904,831796,NULL,NULL,NULL,0,NULL,NULL 23937,95554,648550,NULL,NULL,NULL,0,NULL,NULL 23938,22685,536682,NULL,NULL,NULL,0,NULL,NULL 23939,148504,617087,NULL,NULL,NULL,0,NULL,NULL 23940,2801348,554181,Notable Question Yearling,NULL,NULL,0,NULL,NULL 23941,223161,547020,Popular Question Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Necromancer Necromancer Documentation Pioneer Good Answer Nice Answer Enlightened Caucus Guru Constituent Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Refiner Necromancer Announcer Necromancer Caucus Announcer Constituent Nice Question Documentation User Nice Answer Guru Yearling javascript Announcer Announcer Announcer Nice Answer Enlightened Revival Peer Pressure,NULL,NULL,0,NULL,NULL 23942,173329,690808,NULL,NULL,NULL,0,NULL,NULL 23943,631393,631408,Revival Popular Question Necromancer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 23944,122359,915914,NULL,NULL,NULL,0,NULL,NULL 23945,30060,427232,Commentator Famous Question Nice Question Notable Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 23946,202396,1499576,Informed,NULL,NULL,0,NULL,NULL 23947,1576802,1499576,Informed,NULL,NULL,0,NULL,NULL 23948,88642,881295,NULL,NULL,NULL,0,NULL,NULL 23949,208758,696930,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 23950,82096,465475,NULL,NULL,NULL,0,NULL,NULL 23951,259308,502652,NULL,NULL,NULL,0,NULL,NULL 23952,112373,592454,Popular Question Yearling Popular Question Nice Question Popular Question Nice Answer Good Question Famous Question Popular Question Caucus Constituent Famous Question Yearling Taxonomist Announcer Famous Question Caucus Constituent Popular Question Popular Question Yearling Caucus Favorite Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 23953,888601,1261741,NULL,NULL,NULL,0,NULL,NULL 23954,254397,1261741,NULL,NULL,NULL,0,NULL,NULL 23955,145616,360124,Commentator,NULL,NULL,0,NULL,NULL 23956,320772,662804,NULL,NULL,NULL,0,NULL,NULL 23957,495976,1050711,NULL,NULL,NULL,0,NULL,NULL 23958,48017,915572,NULL,NULL,NULL,0,NULL,NULL 23959,308125,1467859,NULL,NULL,NULL,0,NULL,NULL 23960,405043,1051598,Teacher Editor Supporter Student Self-Learner Yearling Yearling Commentator Necromancer Yearling Nice Answer Custodian Organizer Yearling Autobiographer Nice Question Nice Answer Mortarboard Yearling Nice Answer Nice Question Good Answer Scholar Good Question kotlin Critic Popular Question Enthusiast Revival Nice Answer Enlightened Nice Answer Custodian Nice Answer Enlightened Necromancer Yearling Good Answer coroutine Revival Good Question Good Answer Custodian Populist Popular Question Notable Question Nice Question Good Answer Necromancer Announcer Nice Answer Enlightened Nice Answer kotlinx.coroutines Good Answer Notable Question Fanatic Nice Answer Nice Question Good Answer Nice Answer Popular Question Nice Answer Yearling Guru,NULL,NULL,1,How to use code that relies on ThreadLocal with Kotlin coroutines kotlin coroutine kotlinx coroutines pSome JVM frameworks use codeThreadLocal code to store the call context of application like the href https logback qos ch manual mdc html rel noreferrer SLF4j MDC transaction managers security managers and others ppHowever Kotlin coroutines are dispatched on different threads so how it can be made to work pp The question is inspired by href https github com Kotlin kotlinx coroutines issues 119 rel noreferrer GitHub issue,NULL 23961,300355,866310,NULL,NULL,NULL,0,NULL,NULL 23962,837953,1048411,NULL,NULL,NULL,0,NULL,NULL 23963,76025,409799,Guru c# Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23964,2919484,955845,NULL,NULL,NULL,0,NULL,NULL 23965,394894,922073,NULL,NULL,NULL,0,NULL,NULL 23966,319239,371739,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Pundit Necromancer Nice Answer Notable Question Good Answer Nice Answer Good Answer Good Answer Yearling Popular Question Popular Question Good Answer Populist Good Answer Nice Answer Good Answer Nice Answer Famous Question Electorate Nice Question Nice Answer Nice Answer Enlightened Nice Question Nice Question Guru Popular Question Good Answer Nice Answer Enlightened Good Question Great Answer Nice Answer Enlightened Popular Question Yearling Good Answer Guru Good Answer Notable Question Nice Question Famous Question Notable Question Nice Answer Yearling Nice Question Notable Question Popular Question Nice Answer Popular Question Good Answer Good Question,NULL,pThe ones can think of are ph3Existential types h3pre codedef foo List Option code preh3Higher kinded type parameters h3pre codecase class code preh3Ignored variables h3pre codeval code preh3Ignored parameters h3pre codeList foreach gt println Hi code preh3Ignored names of self types h3pre codetrait MySeq Seq gt code preh3Wildcard patterns h3pre codeSome match case Some gt println Yes code preh3Wildcard imports h3pre codeimport java util code preh3Hiding imports h3pre codeimport java util ArrayList gt code preh3Joining letters to punctuation h3pre codedef bang Int code preh3Assignment operators h3pre codedef foo Int code preh3Placeholder syntax h3pre codeList map code preh3Partially applied functions h3pre codeList foreach println code preh3Converting call by name parameters to functions h3pre codedef toFunction callByName gt Int gt Int callByName code prepThere may be others have forgotten phrpExample showing why codefoo code and codefoo code are different ppThis example href https stackoverflow com questions 9610736 strange type mismatch when using member access instead of extractor 9610961 comes from ppre codetrait PlaceholderExample def process gt Unit val set Set gt Unit set foreach process Error set foreach process No Error code prepIn the first case codeprocess code represents method Scala takes the polymorphic method and attempts to make it monomorphic by filling in the type parameter but realizes that there is no emtype em that can be filled in for codeA code that will give the type code gt Unit gt code Existential code code is not type ppIn the second case codeprocess code is lambda when writing lambda with no explicit argument type Scala infers the type from the argument that codeforeach code expects and code gt Unit code emis em type whereas just plain code code isn so it can be substituted and inferred ppThis may well be the trickiest gotcha in Scala have ever encountered It like wildcard that stands for many different kinds of wildness wild wildcard if you will,0,NULL,NULL 23967,158948,1471763,NULL,NULL,NULL,0,NULL,NULL 23968,293792,827831,NULL,NULL,NULL,0,NULL,NULL 23969,1356389,827831,NULL,NULL,NULL,0,NULL,NULL 23970,18057,163178,Nice Answer,NULL,NULL,0,NULL,NULL 23971,315031,1491410,Teacher Supporter Yearling Yearling Commentator Yearling Critic,NULL,NULL,0,NULL,NULL 23972,190157,336777,NULL,NULL,NULL,0,NULL,NULL 23973,294382,1355165,NULL,NULL,NULL,0,NULL,NULL 23974,483925,906930,Guru Custodian Yearling Nice Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 23975,166131,260771,Yearling Good Answer Good Answer Yearling Student Yearling Self-Learner,NULL,NULL,0,NULL,NULL 23976,141336,503377,Popular Question Popular Question Popular Question Nice Question Nice Question Yearling Nice Answer Nice Answer Notable Question Pundit Necromancer Documentation User Necromancer Yearling Famous Question Popular Question Nice Answer Yearling,NULL,pFollowing is complete solution It should perform better as it implementation is based on bitwise rather than arithmetic operations which is much more effective approach The solution also does its best to generalize things ppre code LANGUAGE DefaultSignatures import Data Bitsimport Control Monaddata Permission IsAllowedToLogin IsModerator IsAdmin deriving Bounded Enum Eq Show class ToBitMask where toBitMask gt Int Using DefaultSignatures extension to declare default signature with an Enum constraint without affecting the constraints of the class itself default toBitMask Enum gt gt Int toBitMask shiftL fromEnuminstance ToBitMask Permissioninstance ToBitMask gt ToBitMask where toBitMask foldr map toBitMask Not making this typeclass since it already generalizes over all imaginable instances with help of MonadPlus fromBitMask MonadPlus Enum Bounded ToBitMask gt Int gt afromBitMask bm msum map asInBM enumFrom minBound where asInBM if isInBitMask bm then return else mzeroisInBitMask ToBitMask gt Int gt gt BoolisInBitMask bm let aBM toBitMask in aBM aBM amp bm code prepRunning it with the following ppre codemain do print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Permission print fromBitMask Maybe Permission print fromBitMask Maybe Permission print fromBitMask Maybe Permission print fromBitMask Maybe Permission code prepoutputs ppre code IsAllowedToLogin IsModerator IsAllowedToLogin IsModerator IsAdmin IsAllowedToLogin IsAdmin IsModerator IsAdmin IsAllowedToLogin IsModerator IsAdmin NothingJust IsAllowedToLoginJust IsModeratorJust IsAdmin code pre This could be library of its own It perfect pre codefrom itertools import islicedef split every iterable iter iterable piece list islice while piece yield piece piece list islice code prepSome tests ppre code gt gt gt list split every range gt gt gt list split every for in range 20 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 gt gt gt join for in split every Hello world Hello world gt gt gt list split every 100 code pre Good point Edited pHere quick one liner version Like Haskell it is lazy ppre codefrom itertools import islice takewhile repeatsplit every lambda it takewhile bool list islice it for in repeat None code prepThis requires that you use codeiter code strongbefore strong calling codesplit every code ppExample ppre codelist split every iter xrange code prepAlthough not one liner the version below doesn require that you call codeiter code which can be common pitfall ppre codefrom itertools import islice takewhile repeatdef split every iterable Slice an iterable into chunks of elements type int type iterable Iterable rtype Iterator iterator iter iterable return takewhile bool list islice iterator for in repeat None code prep Thanks to korvigo for improvements The goal was to be one liner but ended up putting it on two on SO to prevent scrolling pHere quick one liner version Like Haskell it is lazy ppre codefrom itertools import islice takewhile repeatsplit every lambda it takewhile bool list islice it for in repeat None code prepThis requires that you use codeiter code strongbefore strong calling codesplit every code ppExample ppre codelist split every iter xrange code prepAlthough not one liner the version below doesn require that you call codeiter code which can be common pitfall ppre codefrom itertools import islice takewhile repeatdef split every iterable Slice an iterable into chunks of elements type int type iterable Iterable rtype Iterator iterator iter iterable return takewhile bool list islice iterator for in repeat None code prep Thanks to korvigo for improvements You need to call iter on the range first However updated version doesn have this pitfall which like pHere quick one liner version Like Haskell it is lazy ppre codefrom itertools import islice takewhile repeatsplit every lambda it takewhile bool list islice it for in repeat None code prepThis requires that you use codeiter code strongbefore strong calling codesplit every code ppExample ppre codelist split every iter xrange code prepAlthough not one liner the version below doesn require that you call codeiter code which can be common pitfall ppre codefrom itertools import islice takewhile repeatdef split every iterable Slice an iterable into chunks of elements type int type iterable Iterable rtype Iterator iterator iter iterable return takewhile bool list islice iterator for in repeat None code prep Thanks to korvigo for improvements like your version better so ve updated mine pHit the kbdEsc kbd key to enter Normal mode Then you can type code code to enter Command line mode colon code code will appear at the bottom of the screen and you can type in one of the following commands To execute command press the kbdEnter kbd key pulli code code to quit short for code quit code lili code code to quit without saving short for code quit code lili code wq code to write and quit lili code wq code to write and quit even if file has only read permission if file does not have write permission force write lili code code to write and quit similar to code wq code but only write if there are changes lili code exit code to write and exit same as code code lili code qa code to quit all short for code quitall code lili code cq code to quit without saving and make Vim return non zero error exit with error li ulpYou can also exit Vim directly from Command mode by typing codeZZ code to save and quit same as code code or codeZQ code to just quit same as code code Note that case is important here codeZZ code and codezz code do not mean the same thing ppVim has extensive help that you can access with the code help code command where you can find answers to all your questions and tutorial for beginners What if there is no escape key,0,NULL,NULL 23977,180170,1029949,Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Teacher Popular Question Notable Question Yearling Popular Question Custodian Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 23978,63906,1195051,NULL,NULL,NULL,0,NULL,NULL 23979,88890,1068870,Notable Question Necromancer Nice Answer Good Answer Necromancer Yearling Necromancer Notable Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 23980,64159,1253696,NULL,NULL,NULL,0,NULL,NULL 23981,21602,1030533,NULL,NULL,NULL,0,NULL,NULL 23982,3305288,1447503,NULL,NULL,NULL,0,NULL,NULL 23983,124366,642970,Popular Question Yearling Necromancer Nice Answer Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 23984,1156762,458828,NULL,NULL,NULL,0,NULL,NULL 23985,18368,564879,Commentator Announcer Necromancer Nice Answer Yearling Critic Yearling Good Answer Yearling Yearling,NULL,pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method Typically you re correct However in the context of React componentDidMount method if you attach requestAnimationFrame before that stack is finished the DOM may not actually be fully updated have code that consistently reproduces this behavior within the context of React callbacks The only way to be sure your code is executing once again in this specific React use case after the DOM has updated is letting the call stack clear first with setTimeout pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method You ll notice other comments above which mention needing the same workaround http stackoverflow com questions 26556436 react after render code 34999925 comment54662760 28748160This is the only 100 reliable method for this React use case If had to venture guess it may be due to React batching updates themselves which potentially don get applied within the current stack hence deferring the requestAnimationFrame to the next frame to ensure the batch is applied pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method think you might need to brush up on your JS internals http altitudelabs com blog what is the javascript event loop http stackoverflow com questions 8058612 does calling settimeout clear the callstack pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method Waiting for the current call stack to clear is obviously not nonsensical way to talk about the event loop but to each his own guess,1,NULL,React after render code javascript reactjs pI have an app where need to set the height of an element lets say app content dynamically It takes the height of the chrome of the app and subtracts it and then sets the height of the app content to fit 100 within those constraints This is super simple with vanilla JS jQuery or Backbone views but struggling to figure out what the right process would be for doing this in React ppBelow is an example component want to be able to set codeapp content code height to be 100 of the window minus the size of the codeActionBar code and codeBalanceBar code but how do know when everything is rendered and where would put the calculation stuff in this React Class ppre code React DOM var List require list var ActionBar require action bar var BalanceBar require balance bar var Sidebar require sidebar var AppBase React createClass render function return lt div className wrapper gt lt Sidebar gt lt div className inner wrapper gt lt ActionBar title Title Here gt lt BalanceBar balance balance gt lt div className app content gt lt List items items gt lt div gt lt div gt lt div gt module exports AppBase code pre pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method 23986,2378846,564879,Commentator Announcer Necromancer Nice Answer Yearling Critic Yearling Good Answer Yearling Yearling,NULL,pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method Typically you re correct However in the context of React componentDidMount method if you attach requestAnimationFrame before that stack is finished the DOM may not actually be fully updated have code that consistently reproduces this behavior within the context of React callbacks The only way to be sure your code is executing once again in this specific React use case after the DOM has updated is letting the call stack clear first with setTimeout pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method You ll notice other comments above which mention needing the same workaround http stackoverflow com questions 26556436 react after render code 34999925 comment54662760 28748160This is the only 100 reliable method for this React use case If had to venture guess it may be due to React batching updates themselves which potentially don get applied within the current stack hence deferring the requestAnimationFrame to the next frame to ensure the batch is applied pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method think you might need to brush up on your JS internals http altitudelabs com blog what is the javascript event loop http stackoverflow com questions 8058612 does calling settimeout clear the callstack pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method Waiting for the current call stack to clear is obviously not nonsensical way to talk about the event loop but to each his own guess,1,NULL,React after render code javascript reactjs pI have an app where need to set the height of an element lets say app content dynamically It takes the height of the chrome of the app and subtracts it and then sets the height of the app content to fit 100 within those constraints This is super simple with vanilla JS jQuery or Backbone views but struggling to figure out what the right process would be for doing this in React ppBelow is an example component want to be able to set codeapp content code height to be 100 of the window minus the size of the codeActionBar code and codeBalanceBar code but how do know when everything is rendered and where would put the calculation stuff in this React Class ppre code React DOM var List require list var ActionBar require action bar var BalanceBar require balance bar var Sidebar require sidebar var AppBase React createClass render function return lt div className wrapper gt lt Sidebar gt lt div className inner wrapper gt lt ActionBar title Title Here gt lt BalanceBar balance balance gt lt div className app content gt lt List items items gt lt div gt lt div gt lt div gt module exports AppBase code pre pIn my experience codewindow requestAnimationFrame code wasn enough to ensure that the DOM had been fully rendered reflow complete from codecomponentDidMount code have code running that accesses the DOM immediately after codecomponentDidMount code call and using solely codewindow requestAnimationFrame code would result in the element being present in the DOM however updates to the element dimensions aren reflected yet since reflow hasn yet occurred ppThe only truly reliable way for this to work was to wrap my method in codesetTimeout code and codewindow requestAnimationFrame code to ensure React current call stack gets cleared before registering for the next frame render ppre codefunction onNextFrame callback setTimeout function window requestAnimationFrame callback code prepIf had to speculate on why this is occurring necessary could see React batching DOM updates and not actually applying the changes to the DOM until after the current stack is complete ppUltimately if you re using DOM measurements in the code you re firing after the React callbacks you ll probably want to use this method 23987,98612,1115585,NULL,NULL,NULL,0,NULL,NULL 23988,9547,550332,NULL,NULL,NULL,0,NULL,NULL 23989,214222,1211790,NULL,NULL,NULL,0,NULL,NULL 23990,291840,265345,NULL,NULL,NULL,0,NULL,NULL 23991,368258,1217302,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 23992,2042534,977590,Tumbleweed,NULL,NULL,0,NULL,NULL 23993,2077088,337995,Yearling Yearling,NULL,NULL,0,NULL,NULL 23994,70465,1216643,NULL,NULL,NULL,0,NULL,NULL 23995,4136,751266,NULL,NULL,NULL,0,NULL,NULL 23996,286053,707915,NULL,NULL,NULL,0,NULL,NULL 23997,447583,1352828,NULL,NULL,NULL,0,NULL,NULL 23998,2024,188046,Notable Question Notable Question Necromancer Notable Question Commentator Popular Question Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 23999,213242,719723,Famous Question Good Question,NULL,NULL,0,NULL,NULL 24000,77797,287503,NULL,NULL,NULL,0,NULL,NULL 24001,72757,899332,NULL,NULL,NULL,0,NULL,NULL 24002,105145,868743,NULL,NULL,NULL,0,NULL,NULL 24003,121733,885376,Teacher,NULL,NULL,0,NULL,NULL 24004,1815322,1271008,Informed,NULL,NULL,0,NULL,NULL 24005,397275,1271008,Informed,NULL,NULL,0,NULL,NULL 24006,197360,1199508,Student Teacher Editor Commentator Supporter Critic,NULL,NULL,0,NULL,NULL 24007,13573,836708,Explainer Custodian Custodian Nice Answer Enlightened Proofreader cesium Yearling Excavator Scholar Revival Caucus Reviewer Constituent Nice Answer Fanatic javascript Revival Necromancer Yearling Electorate Caucus Nice Answer Documentation User Nice Answer Enlightened Announcer Taxonomist Caucus Revival Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 24008,22280,1489031,NULL,NULL,NULL,0,NULL,NULL 24009,516558,205082,NULL,NULL,NULL,0,NULL,NULL 24010,294812,429555,Yearling Explainer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 24011,203861,1148443,NULL,NULL,NULL,0,NULL,NULL 24012,60719,787755,Commentator Yearling,NULL,NULL,0,NULL,NULL 24013,130467,584276,NULL,NULL,NULL,0,NULL,NULL 24014,164119,173109,Necromancer Necromancer Yearling Nice Answer Nice Answer Revival Necromancer Excavator Nice Answer Necromancer Good Answer Yearling Cleanup Necromancer Nice Answer Caucus Nice Answer Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 24015,7538,142275,Revival Yearling Revival Disciplined Nice Answer Census,NULL,NULL,0,NULL,NULL 24016,233365,1271912,Yearling Famous Question Citizen Patrol Custodian Popular Question Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24017,412481,169135,Nice Question Famous Question Yearling ruby-on-rails Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 24018,437194,763167,Popular Question,NULL,NULL,0,NULL,NULL 24019,214136,658011,Nice Answer Enthusiast Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24020,10108175,658011,Nice Answer Enthusiast Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24021,86964,1421847,Popular Question Yearling Announcer Notable Question Necromancer Announcer Nice Question Self-Learner Yearling Popular Question Nice Answer Caucus Excavator Yearling Famous Question Popular Question Yearling Caucus Notable Question Documentation User Revival Good Answer Nice Answer Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 24022,245218,828834,NULL,NULL,NULL,0,NULL,NULL 24023,49796,195336,Popular Question Notable Question Nice Question Famous Question Famous Question Famous Question Famous Question Good Question Custodian Custodian Yearling Nice Question,NULL,pHere an implementation that also little more generic ppre codeimport scala language experimental macrosobject WithIdExample import scala reflect macros Context def withId entity id macro withIdImpl def withIdImpl WeakTypeTag WeakTypeTag Context entity Expr id Expr Expr import universe val tree reify entity splice tree val copy entity actualType member newTermName copy val params copy match case MethodSymbol if paramss nonEmpty gt paramss head case gt abort enclosingPosition No eligible copy method Expr Apply Select tree copy params map case if name decoded id gt reify id splice tree case gt Select tree name code prepIt ll work on any case class with member named codeid code no matter what its type is ppre codescala gt case class Bar arg0 String id Option Int defined class Barscala gt case class Foo Double String id Int defined class Fooscala gt WithIdExample withId Bar bar None Some res0 Bar Bar bar Some scala gt WithIdExample withId Foo foo res1 Foo Foo foo code prepIf the case class doesn have an codeid code member codewithId code will compile—it just won do anything If you want compile error in that case you can add an extra condition to the match on codecopy code phrpEdit As Eugene Burmako just pointed out href https twitter com xeno by status 270495257152593920 rel noreferrer on Twitter you can write this little more naturally using codeAssignOrNamedArg code at the end ppre codec Expr Apply Select tree copy AssignOrNamedArg Ident id reify id splice tree Nil code prepThis version won compile if the case class doesn have an codeid code member but that more likely to be the desired behavior anyway That very helpful But is there way to expose withId to trait shared by several case class In all the examples here we already have an instance of the case class so copy could have been used as well suppose,0,NULL,NULL 24024,41612,337644,NULL,NULL,NULL,0,NULL,NULL 24025,46013,1090911,NULL,NULL,NULL,0,NULL,NULL 24026,175425,1034258,Promoter Student Custodian,NULL,NULL,0,NULL,NULL 24027,458849,481534,Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 24028,26255,778224,Nice Answer Popular Question Popular Question Yearling Nice Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 24029,296330,979198,NULL,NULL,NULL,0,NULL,NULL 24030,84781,992995,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 24031,98618,337772,Quorum Notable Question Revival Good Answer Yearling Caucus Nice Answer Autobiographer Nice Question Good Question Organizer Yearling Nice Answer Popular Question Tumbleweed Promoter Yearling Revival,NULL,NULL,0,NULL,NULL 24032,1434998,889909,Critic Census,NULL,NULL,0,NULL,NULL 24033,621019,889909,Critic Census,NULL,NULL,0,NULL,NULL 24034,467600,1112030,NULL,NULL,NULL,0,NULL,NULL 24035,532940,381721,Revival Yearling Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 24036,188382,770353,NULL,NULL,NULL,0,NULL,NULL 24037,438786,1027793,NULL,NULL,NULL,0,NULL,NULL 24038,156712,516065,NULL,NULL,NULL,0,NULL,NULL 24039,11370,1384890,Commentator Curious Self-Learner Popular Question Famous Question Nice Question Supporter,NULL,NULL,0,NULL,NULL 24040,106438,656236,Revival,NULL,NULL,0,NULL,NULL 24041,259638,644282,NULL,NULL,NULL,0,NULL,NULL 24042,136653,727588,NULL,NULL,NULL,0,NULL,NULL 24043,886348,668796,NULL,NULL,NULL,0,NULL,NULL 24044,200315,384413,NULL,NULL,NULL,0,NULL,NULL 24045,90221,642059,NULL,NULL,NULL,0,NULL,NULL 24046,263535,849245,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24047,1523198,503255,Yearling,NULL,NULL,0,NULL,NULL 24048,30676,448631,NULL,NULL,NULL,0,NULL,NULL 24049,29997,955070,NULL,NULL,NULL,0,NULL,NULL 24050,3431994,1044824,Popular Question,NULL,NULL,0,NULL,NULL 24051,601046,1044824,Popular Question,NULL,NULL,0,NULL,NULL 24052,243690,767865,Yearling Notable Question Popular Question Popular Question Nice Question Famous Question Famous Question Necromancer Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 24053,193614,189783,Popular Question Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 24054,734667,30488,Notable Question Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 24055,212254,1359929,Revival Necromancer Necromancer Caucus Constituent Famous Question Caucus Constituent Yearling,NULL,emRSS em is the href http en wikipedia org wiki Resident set size rel noreferrer resident set size the portion of the process memory held in RAM as opposed to the swap space or the part held in the filesystem ppThe emheap em is the portion of memory from which newly allocated objects will come from think of codemalloc code in or codenew code in JavaScript ppYou can read more about the heap at href http en wikipedia org wiki Memory management rel noreferrer Wikipedia An image that visualises the different memory spaces http apmblog dynatrace com wp content uploads 2015 11 DK png,0,NULL,NULL 24056,1966,917830,NULL,NULL,NULL,0,NULL,NULL 24057,93467,583887,Nice Question Notable Question Popular Question Popular Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 24058,533110,1010174,NULL,NULL,NULL,0,NULL,NULL 24059,238930,418082,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 24060,265499,117268,Nice Answer Announcer Nice Answer Nice Answer Necromancer Yearling Necromancer Revival Good Answer Necromancer Necromancer Necromancer python jquery Nice Answer Good Answer Announcer Yearling Nice Answer Announcer Announcer Nice Answer Necromancer Good Answer Famous Question Custodian Nice Answer Populist Revival Tumbleweed Yearling Curious Nice Answer Disciplined Good Answer Revival Good Answer Revival,NULL,NULL,0,NULL,NULL 24061,407703,135117,Excavator Yearling Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 24062,105762,65624,Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 24063,308535,275712,Nice Question Popular Question Popular Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 24064,266392,1106436,NULL,NULL,NULL,0,NULL,NULL 24065,333218,507272,Yearling,NULL,NULL,0,NULL,NULL 24066,5975,767138,NULL,NULL,NULL,0,NULL,NULL 24067,403963,1028022,NULL,NULL,NULL,0,NULL,NULL 24068,185167,373051,Yearling Notable Question Enthusiast Custodian Notable Question Custodian Yearling Nice Question Popular Question Census Civic Duty Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 24069,161068,915394,NULL,NULL,NULL,0,NULL,NULL 24070,680102,208465,Yearling Necromancer Tenacious Yearling Revival Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 24071,153308,837456,NULL,NULL,NULL,0,NULL,NULL 24072,154163,104250,Popular Question Yearling Good Answer Popular Question Necromancer Yearling Custodian Popular Question Yearling Nice Question Custodian Excavator,NULL,NULL,0,NULL,NULL 24073,98816,124999,NULL,NULL,NULL,0,NULL,NULL 24074,10004321,636503,Nice Answer Caucus Tumbleweed Yearling Caucus Custodian Custodian Caucus Constituent,NULL,NULL,0,NULL,NULL 24075,84865,636503,Nice Answer Caucus Tumbleweed Yearling Caucus Custodian Custodian Caucus Constituent,NULL,NULL,0,NULL,NULL 24076,1327090,136339,Yearling,NULL,NULL,0,NULL,NULL 24077,689948,210323,NULL,NULL,NULL,0,NULL,NULL 24078,350261,1317588,NULL,NULL,NULL,0,NULL,NULL 24079,5748812,1317588,NULL,NULL,NULL,0,NULL,NULL 24080,415716,773084,NULL,NULL,NULL,0,NULL,NULL 24081,380237,786190,NULL,NULL,NULL,0,NULL,NULL 24082,713409,308533,Yearling Critic Good Answer Yearling Enthusiast Caucus Yearling,NULL,NULL,0,NULL,NULL 24083,257456,188451,Popular Question,NULL,NULL,0,NULL,NULL 24084,1246194,1233524,NULL,NULL,NULL,0,NULL,NULL 24085,166778,271464,NULL,NULL,NULL,0,NULL,NULL 24086,3862545,271464,NULL,NULL,NULL,0,NULL,NULL 24087,1368863,207280,NULL,NULL,NULL,0,NULL,NULL 24088,110036,216609,Popular Question Self-Learner Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24089,660028,355405,NULL,NULL,NULL,0,NULL,NULL 24090,33792,139407,NULL,NULL,NULL,0,NULL,NULL 24091,128389,138657,NULL,NULL,NULL,0,NULL,NULL 24092,1574766,1434239,Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Yearling Inquisitive Famous Question Popular Question Nice Question Nice Question Nice Question Investor Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24093,157539,695343,xpath openpgp Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru pgp Great Answer Nice Answer Enlightened Autobiographer xml Caucus gnupg Nice Answer Enlightened Yearling Famous Question php Nice Answer Enlightened basex Necromancer Caucus Constituent Announcer Documentation User Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Constituent Yearling Nice Answer Announcer Announcer Good Answer Great Answer Good Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 24094,1286207,1004741,Good Question Yearling Famous Question Good Question Curious Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24095,287482,124908,NULL,NULL,NULL,0,NULL,NULL 24096,1198436,1346945,NULL,NULL,NULL,0,NULL,NULL 24097,7915,330433,Suffrage Vox Populi Editor Necromancer Documentation User,NULL,NULL,0,NULL,NULL 24098,283613,345429,Notable Question Popular Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 24099,897638,439279,Nice Answer Nice Answer Nice Answer javascript Guru Notable Question Custodian Yearling Good Question Nice Answer Popular Question Yearling Good Answer Famous Question Self-Learner Necromancer Tenacious Notable Question Yearling,NULL,NULL,0,NULL,NULL 24100,239855,384647,NULL,NULL,NULL,0,NULL,NULL 24101,897000,875466,NULL,NULL,NULL,0,NULL,NULL 24102,252864,1529215,NULL,NULL,NULL,0,NULL,NULL 24103,186822,1503777,NULL,NULL,NULL,0,NULL,NULL 24104,100825,2214,Great Answer Good Answer Great Answer Good Answer Documentation Pioneer Good Answer Yearling Guru Nice Answer Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Census Guru Good Answer Caucus Constituent Yearling Announcer Strunk & White Good Answer Documentation User Nice Answer Necromancer Nice Answer Census Reviewer Great Answer Caucus Good Question Good Answer Good Answer Yearling,NULL,strongNote strong This only works if the image is from the same domain as the page or has the codecrossOrigin anonymous code attribute and the server supports CORS It also not going to give you the original file but re encoded version If you need the result to be identical to the original see href https stackoverflow com 42916772 2214 Kaiido answer phrpYou will need to create canvas element with the correct dimensions and copy the image data with the codedrawImage code function Then you can use the codetoDataURL code function to get data url that has the base 64 encoded image Note that the image must be fully loaded or you ll just get back an empty black transparent image ppIt would be something like this ve never written Greasemonkey script so you might need to adjust the code to run in that environment ppre codefunction getBase64Image img Create an empty canvas element var canvas document createElement canvas canvas width img width canvas height img height Copy the image contents to the canvas var ctx canvas getContext 2d ctx drawImage img Get the data URL formatted image Firefox supports PNG and JPEG You could check img src to guess the original format but be aware the using image jpg will re encode the image var dataURL canvas toDataURL image png return dataURL replace data image png jpg base64 code prepGetting JPEG formatted image doesn work on older versions around of Firefox so if you want to support that you ll need to check the compatibility If the encoding is not supported it will default to image png That only because the OP wanted the content not URL You would need to skip the replace call if you want to use it as an image source strongNote strong This only works if the image is from the same domain as the page or has the codecrossOrigin anonymous code attribute and the server supports CORS It also not going to give you the original file but re encoded version If you need the result to be identical to the original see href https stackoverflow com 42916772 2214 Kaiido answer phrpYou will need to create canvas element with the correct dimensions and copy the image data with the codedrawImage code function Then you can use the codetoDataURL code function to get data url that has the base 64 encoded image Note that the image must be fully loaded or you ll just get back an empty black transparent image ppIt would be something like this ve never written Greasemonkey script so you might need to adjust the code to run in that environment ppre codefunction getBase64Image img Create an empty canvas element var canvas document createElement canvas canvas width img width canvas height img height Copy the image contents to the canvas var ctx canvas getContext 2d ctx drawImage img Get the data URL formatted image Firefox supports PNG and JPEG You could check img src to guess the original format but be aware the using image jpg will re encode the image var dataURL canvas toDataURL image png return dataURL replace data image png jpg base64 code prepGetting JPEG formatted image doesn work on older versions around of Firefox so if you want to support that you ll need to check the compatibility If the encoding is not supported it will default to image png That good point not sure why didn mention that but ll add note strongNote Don use this in real code strong ppAs an alternative to regular expressions for simple literal string you could use ppre codestr Test abc test test abc test split abc join code prepThe general pattern is ppre codestr split search join replacement code prepThis used to be faster in some cases than using codereplaceAll code and regular expression but that doesn seem to be the case anymore in modern browsers So this should really only be used as quick hack to avoid needing to escape the regular expression not in real code definitely agree with that The relative performance probably doesn matter in 99 of cases and probably varies depending on browser environment and the specific strings you re dealing with anyway In practice almost always use replace with global regular expression since that what it made for The split join trick is really only useful if the pattern can be hard coded and shouldn be interpreted as regular expression and using new RegExp after escaping special characters is arguably better more clear at the cost of some complexity strongNote Don use this in real code strong ppAs an alternative to regular expressions for simple literal string you could use ppre codestr Test abc test test abc test split abc join code prepThe general pattern is ppre codestr split search join replacement code prepThis used to be faster in some cases than using codereplaceAll code and regular expression but that doesn seem to be the case anymore in modern browsers So this should really only be used as quick hack to avoid needing to escape the regular expression not in real code As far as hacks go it not the worst in my opinion but it still hack In real code would use the built in replace method because it more clear and faster in most cases pIn addition to href https stackoverflow com questions 812961 javascript getters and setters for dummies meaning me 812985 812985 answer setters can also be used to update other values ppre codefunction Name first last this first first this last last Name prototype get fullName return this first this last set fullName name var names name split this first names this last names code prepNow you can set codefullName code and codefirst code and codelast code will be updated and vice versa Yes although it was actually introduced in ES5 pIf you need to keep the original array because you have other references to it that should be updated too you can clear it without creating new array by setting its length to zero ppre codeA length code pre Popping elements off the array is likely to have the same effect in terms of memory There nothing in the spec that requires implementations to adjust the amount of space allocated to the array but as far as know they will all reduce the size once the length gets below some threshold pIf you need to keep the original array because you have other references to it that should be updated too you can clear it without creating new array by setting its length to zero ppre codeA length code pre continued If you want to guarantee the array is as compact as possible at the end you would need to create new array and leave the old one to be garbage collected assuming you re not sharing the array in which case that not an option Whether that beneficial or not depends on the exact use case For example if you re going to be filling in the array again then reusing the old allocated space would be more efficient and reduce GC pressure pIf you need to keep the original array because you have other references to it that should be updated too you can clear it without creating new array by setting its length to zero ppre codeA length code pre That what setting the length already does Each reference is pointing to the same object in memory so setting the length on one reference will affect all of them pIf you need to keep the original array because you have other references to it that should be updated too you can clear it without creating new array by setting its length to zero ppre codeA length code pre not sure what you mean It shouldn care what type of values are in the array strongEdit strong There appears to be better LZW solution that handles Unicode strings correctly at href http pieroxy net blog pages lz string index html rel noreferrer http pieroxy net blog pages lz string index html Thanks to pieroxy in the comments phrpI don know of any gzip implementations but the href http jsolait net rel noreferrer jsolait library the site seems to have gone away has functions for LZW compression decompression The code is covered under the href http www gnu org licenses lgpl txt rel noreferrer LGPL ppre code LZW compress stringfunction lzw encode var dict var data split var out var currChar var phrase data var code 256 for var lt data length currChar data if dict phrase currChar null phrase currChar else out push phrase length gt dict phrase phrase charCodeAt dict phrase currChar code code phrase currChar out push phrase length gt dict phrase phrase charCodeAt for var lt out length out String fromCharCode out return out join Decompress an LZW encoded stringfunction lzw decode var dict var data split var currChar data var oldPhrase currChar var out currChar var code 256 var phrase for var lt data length var currCode data charCodeAt if currCode lt 256 phrase data else phrase dict currCode dict currCode oldPhrase currChar out push phrase currChar phrase charAt dict code oldPhrase currChar code oldPhrase phrase return out join code pre It looks like you re running into the Unicode issue with the second that not regular hyphen character would try pieroxy code which should be able to handle non ASCII characters,0,NULL,NULL 24105,149367,933002,Informed Editor Scholar Student Teacher Supporter Organizer Commentator,NULL,NULL,0,NULL,NULL 24106,243485,1223854,Teacher,NULL,NULL,0,NULL,NULL 24107,918083,193376,Popular Question Nice Question Famous Question Popular Question Famous Question Good Answer Famous Question Nice Answer Enlightened Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Necromancer Nice Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Good Question Nice Answer Nice Question Great Answer Popular Question Yearling Notable Question Popular Question Famous Question Favorite Question Popular Question Nice Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 24108,4852587,124378,Notable Question Great Answer Good Answer Nice Answer Enlightened Notable Question Yearling php Nice Answer Good Answer Yearling Nice Answer Nice Answer Good Answer Nice Question rest Custodian Revival Nice Answer Necromancer Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 24109,159693,190701,Good Question Notable Question Popular Question Promoter Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Caucus Custodian Popular Question Popular Question Census Famous Question Popular Question Notable Question Popular Question Census Popular Question Custodian Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24110,1531523,219838,Popular Question Yearling Popular Question Notable Question Custodian Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24111,292807,762842,NULL,NULL,NULL,0,NULL,NULL 24112,156637,153256,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 24113,318406,542484,NULL,NULL,NULL,0,NULL,NULL 24114,449745,793961,Good Answer Nice Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Answer Enlightened Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Guru Popular Question Civic Duty Good Answer Popular Question Nice Answer Enlightened Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24115,1142788,207286,NULL,NULL,NULL,0,NULL,NULL 24116,6935232,207286,NULL,NULL,NULL,0,NULL,NULL 24117,1710206,1072021,NULL,NULL,NULL,0,NULL,NULL 24118,719505,8689,Yearling Good Question,NULL,NULL,0,NULL,NULL 24119,427339,888165,Announcer Nice Answer Enlightened Custodian Necromancer Nice Answer Yearling Announcer Announcer Custodian angularjs Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 24120,1114357,1126653,NULL,NULL,NULL,0,NULL,NULL 24121,1131563,559455,NULL,NULL,NULL,0,NULL,NULL 24122,241252,835762,Popular Question Caucus Yearling Tumbleweed Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24123,196650,369024,Popular Question,NULL,NULL,0,NULL,NULL 24124,315383,184184,Nice Answer Nice Answer Notable Question Announcer Nice Answer Enlightened Revival Nice Answer Enlightened Popular Question Popular Question Nice Answer Necromancer Nice Answer Popular Question Popular Question Notable Question Good Answer Famous Question Great Question Popular Question Good Answer Good Answer Yearling Popular Question Popular Question Caucus Revival Necromancer ruby Good Question Favorite Question Nice Answer Enlightened Popular Question Guru Census Popular Question Famous Question Nice Answer Enlightened Popular Question Notable Question Popular Question Guru Nice Answer Popular Question Caucus Popular Question Nice Answer Enlightened Popular Question Notable Question Favorite Question Yearling Popular Question Good Answer Census Popular Question Nice Answer Popular Question Notable Question Necromancer Notable Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24125,2691545,1253606,NULL,NULL,NULL,0,NULL,NULL 24126,14835,1544648,NULL,NULL,NULL,0,NULL,NULL 24127,615179,230167,Nice Answer Nice Question Yearling Good Question Census Announcer Announcer Notable Question Pundit Yearling Census Announcer Notable Question Nice Question Popular Question Popular Question Revival,NULL,h1Break the chain h1pWhen you need to access the intermediate values in your chain you should split your chain apart in those single pieces that you need Instead of attaching one callback and somehow trying to use its parameter multiple times attach multiple callbacks to the same promise wherever you need the result value Don forget href https stackoverflow com 22540276 1048572 promise just represents proxies future value Next to deriving one promise from the other in linear chain use the promise combinators that are given to you by your library to build the result value ppThis will result in very straightforward control flow clear composition of functionalities and therefore easy modularisation ppre codefunction getExample var promiseA var then function resultA some processing return promiseB return Promise all then function resultA resultB more processing return something using both resultA and resultB code prepInstead of the parameter destructuring in the callback after codePromise all code that only became avail shy able with ES6 in ES5 the codethen code call would be replaced by nifty helper method that was provided by many promise libraries href https github com kriskowal wiki API Reference promisespreadonfulfilled onrejected rel noreferrer href http bluebirdjs com docs api spread html rel noreferrer Bluebird href https github com cujojs when blob master docs api md promisespread rel noreferrer when code spread function resultA resultB code ppBluebird also features dedicated href http bluebirdjs com docs api promise join html rel noreferrer codejoin code function to replace that codePromise all code codespread code combination with simpler and more efficient construct ppre code…return Promise join function resultA resultB code pre The key for me was to actually return data from my Promise all then callback Previously was returning the Promise all callback but only had console log in my then callback This caused the data passed to any future promise callbacks to be undefined,0,NULL,NULL 24128,5976562,1121546,Yearling,NULL,NULL,0,NULL,NULL 24129,2998712,1121546,Yearling,NULL,NULL,0,NULL,NULL 24130,1306296,330356,NULL,NULL,NULL,0,NULL,NULL 24131,649749,682044,NULL,NULL,NULL,0,NULL,NULL 24132,2424067,1124999,NULL,NULL,NULL,0,NULL,NULL 24133,23406,724959,NULL,NULL,NULL,0,NULL,NULL 24134,392716,1395737,Peer Pressure Citizen Patrol Announcer Popular Question Teacher Supporter Excavator,NULL,NULL,0,NULL,NULL 24135,1746864,493684,NULL,NULL,NULL,0,NULL,NULL 24136,236538,1143444,Yearling Custodian Excavator Necromancer Nice Answer Necromancer Yearling Good Answer Civic Duty Necromancer Revival Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 24137,897937,1344888,NULL,NULL,NULL,0,NULL,NULL 24138,144831,68165,NULL,NULL,NULL,0,NULL,NULL 24139,361615,424883,Notable Question Good Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 24140,317599,294505,Yearling Guru Guru Good Answer Yearling Necromancer Caucus Nice Answer Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 24141,277328,539666,Electorate Notable Question Popular Question Necromancer Popular Question Famous Question Popular Question Good Answer Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 24142,348869,222015,Good Answer Caucus Constituent Yearling Notable Question Nice Question Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 24143,268369,704442,NULL,NULL,NULL,0,NULL,NULL 24144,243913,536235,Revival,NULL,NULL,0,NULL,NULL 24145,2209647,1356267,NULL,NULL,NULL,0,NULL,NULL 24146,219848,595724,Good Question Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 24147,137452,997359,NULL,NULL,NULL,0,NULL,NULL 24148,661582,381201,Revival Caucus Revival Yearling Necromancer Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 24149,913058,1106608,NULL,NULL,NULL,0,NULL,NULL 24150,539863,41572,Notable Question Caucus Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 24151,134590,299726,Informed Necromancer Student,NULL,NULL,0,NULL,NULL 24152,462687,1027736,NULL,NULL,NULL,0,NULL,NULL 24153,1723203,959398,Popular Question Nice Answer Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 24154,4261109,959398,Popular Question Nice Answer Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 24155,275061,1283503,NULL,NULL,NULL,0,NULL,NULL 24156,63850,1213485,Yearling Nice Answer Caucus Yearling Nice Answer Enlightened realm Custodian Yearling android,NULL,NULL,0,NULL,NULL 24157,75310,1154882,Editor Necromancer Popular Question,NULL,NULL,0,NULL,NULL 24158,608808,461215,Necromancer Nice Answer Custodian Commentator Informed Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 24159,222300,649168,Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 24160,165162,1206463,Yearling Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 24161,44787,269211,Yearling Nice Answer Nice Answer Caucus Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus c# Notable Question Census Yearling Good Answer Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24162,481983,242155,Popular Question Critic,NULL,NULL,0,NULL,NULL 24163,4341920,1126113,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24164,523179,1139742,Tumbleweed,NULL,NULL,0,NULL,NULL 24165,603878,1241820,NULL,NULL,NULL,0,NULL,NULL 24166,514188,906746,NULL,NULL,NULL,0,NULL,NULL 24167,191228,423486,NULL,NULL,NULL,0,NULL,NULL 24168,150486,303290,Nice Answer Popular Question Nice Answer Yearling Revival Announcer c# Announcer Notable Question Good Question Famous Question Caucus Census Notable Question Custodian Nice Question Yearling Nice Answer Caucus Constituent Notable Question Necromancer Documentation User Custodian Revival Census Good Question Custodian Caucus Constituent Yearling Proofreader Good Answer Announcer Necromancer Revival,NULL,NULL,0,NULL,NULL 24169,28131,1360437,Notable Question Notable Question Yearling Nice Answer Enlightened Popular Question Yearling Nice Question Good Question Nice Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 24170,940455,568536,Great Question Yearling,NULL,NULL,0,NULL,NULL 24171,195556,1287376,Nice Answer Announcer Civic Duty Announcer Citizen Patrol Critic Organizer Informed Yearling Caucus Suffrage Vox Populi Electorate Explainer,NULL,NULL,0,NULL,NULL 24172,316300,938363,Famous Question Popular Question Notable Question Famous Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Notable Question Good Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Favorite Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Nice Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24173,22179,82169,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 24174,171647,111327,Famous Question Good Question Famous Question Popular Question Good Question Notable Question Notable Question Famous Question Famous Question Notable Question Notable Question Famous Question Nice Question Popular Question Nice Question Yearling Good Answer Notable Question Notable Question Great Question Popular Question Good Question Popular Question Famous Question Great Answer Popular Question Famous Question Popular Question Popular Question Nice Answer Notable Question Popular Question Caucus Notable Question Favorite Question Popular Question Notable Question Popular Question Popular Question Good Question Famous Question Popular Question Notable Question Good Question Popular Question Popular Question Notable Question Nice Answer Enlightened Yearling Popular Question Popular Question Nice Question Notable Question Caucus Notable Question Popular Question Good Question Announcer Good Question Census Caucus Necromancer Guru Notable Question Yearling Nice Question Good Answer Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 24175,1025379,794635,NULL,NULL,NULL,0,NULL,NULL 24176,2711028,794635,NULL,NULL,NULL,0,NULL,NULL 24177,3137,618677,Yearling Great Question Custodian Nice Question Yearling Popular Question Yearling Critic Famous Question,NULL,How to convert string to integer in string atoi pI am trying to find out if there is an alternative way of converting string to integer in ppI regularly pattern the following in my code ppre codechar 45 int num atoi code prepSo is there better way or another way Just to improve myself,0,NULL,NULL 24178,814361,1275499,Nice Question Popular Question Critic Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 24179,709608,268206,NULL,NULL,NULL,0,NULL,NULL 24180,3272,1470205,Necromancer,NULL,NULL,0,NULL,NULL 24181,6071476,1470205,Necromancer,NULL,NULL,0,NULL,NULL 24182,31783,335418,Necromancer Nice Answer Enlightened Great Answer Favorite Question Popular Question Good Answer Guru Nice Answer Guru Necromancer Yearling Nice Answer Enlightened Popular Question Guru Great Answer Guru Great Answer Good Answer Notable Question Announcer Great Answer Caucus Guru Constituent Nice Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Pundit Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Guru Good Answer Yearling Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Notable Question Announcer Good Answer Great Answer Popular Question Nice Answer Enlightened Famous Question Good Answer Announcer Great Answer Good Answer Nice Answer Enlightened Yearling Good Answer Great Answer Good Question,NULL,NULL,0,NULL,NULL 24183,27644,625682,NULL,NULL,NULL,0,NULL,NULL 24184,562246,1110828,NULL,NULL,NULL,0,NULL,NULL 24185,17992,208039,Civic Duty Editor,NULL,NULL,0,NULL,NULL 24186,833276,814836,Informed Scholar,NULL,NULL,0,NULL,NULL 24187,63835,1425187,NULL,NULL,NULL,0,NULL,NULL 24188,157323,345268,Necromancer Autobiographer,NULL,NULL,0,NULL,NULL 24189,270826,1313508,NULL,NULL,NULL,0,NULL,NULL 24190,111846,355811,NULL,NULL,NULL,0,NULL,NULL 24191,65240,1349146,NULL,NULL,NULL,0,NULL,NULL 24192,188958,500060,Custodian Yearling Yearling Commentator Yearling Excavator Revival,NULL,NULL,0,NULL,NULL 24193,147303,1454146,NULL,NULL,NULL,0,NULL,NULL 24194,1343519,350564,NULL,NULL,NULL,0,NULL,NULL 24195,1438694,1018752,NULL,NULL,NULL,0,NULL,NULL 24196,219280,1048239,NULL,NULL,NULL,0,NULL,NULL 24197,482920,1217486,Critic Good Answer,NULL,NULL,0,NULL,NULL 24198,7886,892885,NULL,NULL,NULL,0,NULL,NULL 24199,1383784,899688,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24200,1517273,783273,NULL,NULL,NULL,0,NULL,NULL 24201,199543,76422,NULL,NULL,NULL,0,NULL,NULL 24202,721725,1385188,Curious Notable Question Popular Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24203,439440,393608,NULL,NULL,NULL,0,NULL,NULL 24204,298513,827828,Yearling Caucus Constituent Nice Answer Enlightened Necromancer Yearling Census Necromancer Popular Question,NULL,pWe didn end up finding an ideal solution and ended up doing things bit more manually than preferred polli pWe added custom command we run after the build is complete but before it is packaged see CMake codeadd custom command code lili pThe custom command does the following pullicreates Frameworks directory under our app bundle folder make sure it somewhere where it will get copied in your packaging process liliwe use codecp aH code to copy all frameworks into this Frameworks directory liliwe then re sign each framework in this directory using codecodesign force verbose Computers framework sign code li ul lili pAdd the Frameworks directory to your search paths codeset target properties EXE NAME PROPERTIES XCODE ATTRIBUTE LD RUNPATH SEARCH PATHS Frameworks code li ol Thanks This is very similar to what ended up doing but also had to re sign the bundle itself since subsequent builds seem to skip bundle signing but still run the custom command Not sure if this is problem with CMake or XCode,1,NULL,Linking libstdc statically any gotchas linux gcc static libraries libstdc pI need to deploy application built on Ubuntu 12 10 with GCC libstdc to systems running Ubuntu 10 04 which comes with considerably older version of libstdc ppCurrently compiling with code static libstdc static libgcc code as suggested by this blog post href http www trilithium com johan 2005 06 static libstdc Linking libstdc statically The author warns against using any dynamically loaded code when compiling libstdc statically which is something haven yet checked Still everything seems to be going smoothly so far can make use of 11 features on Ubuntu 10 04 which is what was after ppI note that this article is from 2005 and perhaps much has changed since then Is its advice still current Are there any lurking issues should be aware of pOne addition to Jonathan Wakely excellent answer why dlopen is problematic ppDue to the new exception handling pool in GCC see href https gcc gnu org bugzilla show bug cgi id 64535 rel noreferrer PR 64535 and href https gcc gnu org bugzilla show bug cgi id 65434 rel noreferrer PR 65434 if you dlopen and dlclose library that is statically linked to libstdc you will get memory leak of the pool object each time So if there any chance that you ll ever use dlopen it seems like really bad idea to statically link libstdc Note that this is real leak as opposed to the benign one mentioned in href https gcc gnu org bugzilla show bug cgi id 65434 rel noreferrer PR 65434 24205,693088,390457,Teacher,NULL,NULL,0,NULL,NULL 24206,103522,132778,Tumbleweed Census Critic,NULL,NULL,0,NULL,NULL 24207,153825,1146473,Yearling Caucus Citizen Patrol Custodian Yearling Revival Custodian Caucus Custodian Census Caucus Constituent Revival Yearling Revival Tenacious Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 24208,306206,1055255,Supporter Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 24209,15925,113225,Stellar Question Yearling Notable Question Popular Question Great Question Good Question Famous Question Good Answer Yearling Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 24210,713873,691985,NULL,NULL,NULL,0,NULL,NULL 24211,1141119,919291,NULL,NULL,NULL,0,NULL,NULL 24212,373927,28169,Nice Answer gcc Good Answer Nice Answer Good Answer Nice Answer Guru Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Electorate debugging Guru Nice Answer Good Answer Good Answer Guru Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Good Answer Notable Question Nice Answer struct Guru Yearling Great Answer Good Answer Nice Answer Enlightened syntax Guru Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Reversal Good Answer Populist Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Custodian parsing Custodian Nice Answer Guru Good Answer Good Answer Custodian arrays Populist Nice Answer Enlightened Great Answer Custodian Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Good Answer stack Good Answer Guru multithreading Necromancer Great Answer function-pointers Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Guru scanf Good Answer printf Nice Answer Great Answer Great Answer Nice Answer Documentation User Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Good Answer linked-list Nice Answer Sportsmanship Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Great Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer if-statement Guru Nice Answer Enlightened Good Answer Enlightened Announcer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Benefactor Nice Answer Nice Answer Guru Nice Answer Enlightened Great Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened,NULL,pThe sizeof trick is the best way know with one small but to me this being major pet peeve important change in the use of parenthesis ppAs the Wikipedia entry makes clear codesizeof code is not function it an strongoperator strong Thus it does not require parenthesis around its argument unless the argument is type name This is easy to remember since it makes the argument look like cast expression which also uses parenthesis ppSo If you have the following ppre codeint myArray 10 code prepYou can find the number of elements with code like this ppre codesize sizeof myArray sizeof myArray code prepThat to me reads lot easier than the alternative with parenthesis also favor use of the asterisk in the right hand part of the division since it more concise than indexing ppOf course this is all compile time too so there no need to worry about the division affecting the performance of the program So use this form wherever you can ppIt is always best to use sizeof on an actual object when you have one rather than on type since then you don need to worry about making an error and stating the wrong type ppFor instance say you have function that outputs some data as stream of bytes for instance across network Let call the function codesend code and make it take as arguments pointer to the object to send and the number of bytes in the object So the prototype becomes ppre codevoid send const void object size size code prepAnd then you need to send an integer so you code it up like this ppre codeint foo 4711 send amp foo sizeof int code prepNow you ve introduced subtle way of shooting yourself in the foot by specifying the type of codefoo code in two places If one changes but the other doesn the code breaks Thus always do it like this ppre codesend amp foo sizeof foo code prepNow you re protected Sure you duplicate the name of the variable but that has high probability of breaking in way the compiler can detect if you change it That not true consider C99 VLAs strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code It perhaps too obscure without the include return type of int will be assumed which might be smaller than void so the assignment might generate warning which would be suppressed by the cast See this question http stackoverflow com questions 11796909 how to resolve cast to pointer from integer of different size warning in co for instance strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code What do you mean by no longer What changed strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code Ok think it bad to assume that anyone reading here has particular compiler Also since C11 the entire implicit function concept is gone didn know that Still don see the point in adding pointless cast Do you also do int int 12 just to make things clear strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code No promotion has nothing to do with the type of the left hand side of an assignment This is common misconception double is since it an integer division strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code Obviously quite hard to answer without your code but probably because you re failing to include stdlib for malloc prototype thus making the compiler assume it returns int which you can assign to pointer without cast The cast is not enough in that case strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code Yes of course The extern is for the compiler it just tells it not to name mangle when looking for the function The function is built by compiler and is written in strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code Pre C11 functions without prototype were assumed to return int But int is often smaller than void 32 vs 64 bits so doing foo foo malloc sizeof might have hidden warning caused by making the undeclared assumed int return value from malloc be treated as pointer when it in fact is not large enough and thus won work,0,NULL,NULL 24213,444456,613530,NULL,NULL,NULL,0,NULL,NULL 24214,47436,376600,Popular Question,NULL,NULL,0,NULL,NULL 24215,2427090,1388026,NULL,NULL,NULL,0,NULL,NULL 24216,209296,852551,NULL,NULL,NULL,0,NULL,NULL 24217,166022,1202547,NULL,NULL,NULL,0,NULL,NULL 24218,174923,776334,NULL,NULL,NULL,0,NULL,NULL 24219,210688,833439,NULL,NULL,NULL,0,NULL,NULL 24220,34766,944567,NULL,NULL,NULL,0,NULL,NULL 24221,12874,979241,NULL,NULL,NULL,0,NULL,NULL 24222,255423,715365,Autobiographer,NULL,NULL,0,NULL,NULL 24223,1322174,988185,Nice Answer,NULL,NULL,0,NULL,NULL 24224,200605,474454,NULL,NULL,NULL,0,NULL,NULL 24225,28639,1335731,NULL,NULL,NULL,0,NULL,NULL 24226,7367,952828,NULL,NULL,NULL,0,NULL,NULL 24227,128660,1071500,NULL,NULL,NULL,0,NULL,NULL 24228,138383,252420,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 24229,546290,615930,Editor Revival Commentator Yearling,NULL,NULL,0,NULL,NULL 24230,130654,39796,Notable Question Popular Question Yearling Good Question Notable Question Famous Question Notable Question Popular Question Notable Question Nice Question Nice Question Yearling Famous Question Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24231,104788,1557885,NULL,NULL,NULL,0,NULL,NULL 24232,169122,880483,NULL,NULL,NULL,0,NULL,NULL 24233,197328,318098,Yearling Good Answer,NULL,NULL,0,NULL,NULL 24234,497261,582156,NULL,NULL,NULL,0,NULL,NULL 24235,326345,976682,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24236,125869,1529251,NULL,NULL,NULL,0,NULL,NULL 24237,277618,1522133,NULL,NULL,NULL,0,NULL,NULL 24238,2965521,514757,Famous Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 24239,12047,812374,Popular Question,NULL,NULL,0,NULL,NULL 24240,45642,798552,Popular Question,NULL,NULL,0,NULL,NULL 24241,209834,40619,Popular Question Favorite Question Nice Question Custodian Proofreader Notable Question Popular Question Notable Question Caucus Yearling Popular Question Great Answer Famous Question Nice Question Popular Question Popular Question Yearling Good Answer Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 24242,467617,78512,Yearling Yearling,NULL,NULL,0,NULL,NULL 24243,757952,893712,NULL,NULL,NULL,0,NULL,NULL 24244,569245,1283600,Nice Question,NULL,NULL,0,NULL,NULL 24245,355272,108533,Notable Question Notable Question Popular Question Good Answer Notable Question Yearling Popular Question Popular Question Good Answer Nice Answer Popular Question Guru Inquisitive Yearling Notable Question Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 24246,323383,832465,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24247,276156,811653,Necromancer Yearling Nice Answer Famous Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 24248,926309,609085,Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 24249,230490,522653,Yearling,NULL,NULL,0,NULL,NULL 24250,72896,551891,NULL,NULL,NULL,0,NULL,NULL 24251,263915,453865,Yearling Great Question Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 24252,692938,1048602,NULL,NULL,NULL,0,NULL,NULL 24253,53810,665776,Yearling Caucus Constituent Documentation User Caucus Nice Answer,NULL,NULL,0,NULL,NULL 24254,407643,442504,NULL,NULL,NULL,0,NULL,NULL 24255,133965,1122448,Popular Question Nice Question Famous Question Nice Question Yearling Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 24256,200701,690003,Autobiographer Revival,NULL,NULL,0,NULL,NULL 24257,67168,599328,NULL,NULL,NULL,0,NULL,NULL 24258,628010,79564,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24259,130172,1224276,Student Editor Scholar Supporter Informed,NULL,NULL,0,NULL,NULL 24260,54893,1398228,Yearling Yearling Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 24261,610867,1307721,Announcer Yearling Revival Famous Question Good Answer Necromancer Popular Question Yearling Nice Answer Good Question Nice Question Guru Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 24262,570216,1418427,NULL,NULL,NULL,0,NULL,NULL 24263,200911,59223,Revival,NULL,NULL,0,NULL,NULL 24264,8367919,414878,NULL,NULL,NULL,0,NULL,NULL 24265,43770,924930,NULL,NULL,NULL,0,NULL,NULL 24266,2073072,1429614,Scholar,NULL,NULL,0,NULL,NULL 24267,548204,204143,Custodian Custodian Custodian c Custodian Custodian Nice Question Nice Answer Notable Question Good Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Good Answer Popular Question Yearling Nice Question Yearling Inquisitive,NULL,NULL,0,NULL,NULL 24268,77878,612455,NULL,NULL,NULL,0,NULL,NULL 24269,67060,251188,NULL,NULL,NULL,0,NULL,NULL 24270,26549,348955,Yearling Necromancer,NULL,NULL,0,NULL,NULL 24271,548831,1512986,NULL,NULL,NULL,0,NULL,NULL 24272,243766,173323,NULL,NULL,NULL,0,NULL,NULL 24273,672412,1431622,NULL,NULL,NULL,0,NULL,NULL 24274,34413,365714,Famous Question Popular Question Yearling Nice Answer Popular Question Nice Question Nice Answer Necromancer Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 24275,103176,374399,Civic Duty Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24276,8714298,374399,Civic Duty Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24277,1069629,348975,Nice Question Good Answer Yearling Tumbleweed Curious Caucus Nice Answer Excavator Yearling Nice Answer Caucus Announcer Popular Question Custodian Custodian Custodian Nice Answer Yearling Notable Question Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 24278,385165,665505,NULL,NULL,NULL,0,NULL,NULL 24279,70480,1170110,NULL,NULL,NULL,0,NULL,NULL 24280,157301,795735,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24281,88184,918067,Popular Question,NULL,NULL,0,NULL,NULL 24282,23277,110167,NULL,NULL,NULL,0,NULL,NULL 24283,474790,870041,NULL,NULL,NULL,0,NULL,NULL 24284,2025237,970141,Notable Question,NULL,NULL,0,NULL,NULL 24285,396784,1383560,NULL,NULL,NULL,0,NULL,NULL 24286,898881,217444,NULL,NULL,NULL,0,NULL,NULL 24287,537367,1278994,Supporter Necromancer Nice Answer Census Critic Editor,NULL,NULL,0,NULL,NULL 24288,2219547,557335,Notable Question Critic Notable Question Yearling Famous Question Necromancer Notable Question Famous Question Nice Answer Yearling Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 24289,43079,689695,Yearling,NULL,NULL,0,NULL,NULL 24290,373638,109797,Revival Necromancer Yearling Nice Answer Yearling Critic Good Answer Yearling Custodian Necromancer Yearling Caucus Constituent Custodian Notable Question Documentation User Necromancer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 24291,68558,236007,Revival Nice Question Famous Question Notable Question Popular Question Nice Question Notable Question Caucus Necromancer Yearling Organizer Custodian Popular Question Tag Editor Famous Question Explainer Custodian Famous Question Good Answer Nice Answer Caucus Popular Question Documentation User Yearling Notable Question Notable Question Census Famous Question Popular Question Announcer Caucus Notable Question Booster Nice Question Good Question Popular Question Publicist Nice Answer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24292,178398,1476790,NULL,NULL,NULL,0,NULL,NULL 24293,230808,705871,NULL,NULL,NULL,0,NULL,NULL 24294,72072,1068117,NULL,NULL,NULL,0,NULL,NULL 24295,44497,689144,Notable Question Custodian Popular Question Caucus Yearling Popular Question Popular Question Popular Question Talkative Popular Question Popular Question Popular Question Caucus Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24296,27301,82041,Announcer Notable Question,NULL,NULL,0,NULL,NULL 24297,734391,1323059,Editor Teacher Popular Question,NULL,NULL,0,NULL,NULL 24298,628949,844786,Yearling Critic,NULL,NULL,0,NULL,NULL 24299,395255,1198584,NULL,NULL,NULL,0,NULL,NULL 24300,1091141,641234,Good Answer Yearling Informed Caucus Constituent Yearling Necromancer Custodian Guru Caucus Constituent Custodian Custodian Excavator python Yearling Caucus,NULL,NULL,0,NULL,NULL 24301,109381,736156,Curious Necromancer Nice Answer Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 24302,2069,25066,Notable Question Famous Question Yearling Nice Answer Nice Answer Enlightened Revival Yearling Documentation User Nice Question Necromancer Nice Answer Enlightened Good Answer Announcer Notable Question Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24303,138185,333761,Notable Question Notable Question Nice Answer Popular Question Nice Question Yearling Custodian Excavator Famous Question Revival,NULL,NULL,0,NULL,NULL 24304,718180,1469193,Notable Question,NULL,NULL,0,NULL,NULL 24305,202540,1068328,NULL,NULL,NULL,0,NULL,NULL 24306,574284,676623,Yearling Commentator,NULL,NULL,0,NULL,NULL 24307,1535205,676623,Yearling Commentator,NULL,NULL,0,NULL,NULL 24308,604074,715502,NULL,NULL,NULL,0,NULL,NULL 24309,641263,693642,Popular Question Nice Question Notable Question Nice Question Famous Question Yearling Nice Question Famous Question Popular Question Popular Question Famous Question Good Question Famous Question Nice Question Nice Question Good Question Notable Question Popular Question Famous Question Famous Question Notable Question Civic Duty Yearling Good Answer Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Popular Question Stellar Question Popular Question Notable Question Nice Question Notable Question Stellar Question Yearling Famous Question Popular Question Famous Question Popular Question Popular Question Famous Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 24310,903619,192648,Nice Question Good Question Popular Question Famous Question Famous Question Popular Question Caucus Popular Question Self-Learner Notable Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24311,60442,528258,Popular Question Popular Question Yearling Notable Question Revival Census,NULL,NULL,0,NULL,NULL 24312,220575,854528,Editor Commentator Supporter,NULL,NULL,0,NULL,NULL 24313,426443,1325083,NULL,NULL,NULL,0,NULL,NULL 24314,626047,1265203,NULL,NULL,NULL,0,NULL,NULL 24315,8130705,1265203,NULL,NULL,NULL,0,NULL,NULL 24316,350189,472056,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 24317,226399,1063710,Popular Question,NULL,NULL,0,NULL,NULL 24318,1170896,1421398,NULL,NULL,NULL,0,NULL,NULL 24319,82290,69362,Yearling Popular Question Custodian Nice Answer Enlightened Announcer Yearling Notable Question Caucus Constituent Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24320,11867,438057,NULL,NULL,NULL,0,NULL,NULL 24321,195739,1139600,Notable Question Custodian Citizen Patrol Popular Question Caucus Constituent Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24322,231237,1045614,NULL,NULL,NULL,0,NULL,NULL 24323,6726432,1452464,Caucus,NULL,NULL,0,NULL,NULL 24324,53667,1452464,Caucus,NULL,NULL,0,NULL,NULL 24325,337835,633684,Yearling Unsung Hero Good Answer Yearling Autobiographer Nice Answer Caucus Caucus Organizer Custodian Tenacious Good Answer Civic Duty Documentation User java Custodian Custodian Nice Answer Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 24326,194999,665123,Popular Question Yearling Necromancer Caucus Constituent Citizen Patrol Custodian Custodian Caucus Constituent Popular Question Documentation User Notable Question Census Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 24327,578222,429013,NULL,NULL,NULL,0,NULL,NULL 24328,226304,1484674,NULL,NULL,NULL,0,NULL,NULL 24329,26538,125507,Investor Altruist Nice Answer Nice Answer Guru Popular Question Famous Question Yearling Famous Question Announcer Announcer Good Question Notable Question Good Question Nice Answer Announcer Announcer Announcer Nice Question Nice Question Nice Question Nice Question Nice Question Popular Question Famous Question Caucus Announcer Famous Question Announcer Good Answer Yearling Announcer Popular Question Announcer Good Question Booster Announcer Popular Question Popular Question Announcer Announcer Announcer Famous Question Announcer Announcer Nice Answer Caucus Famous Question Revival Announcer Popular Question Announcer Announcer Announcer Nice Question Announcer Announcer Nice Question Announcer Census Notable Question Revival Notable Question Booster Popular Question Yearling Caucus Great Answer Announcer Necromancer Popular Question Announcer Booster Booster Nice Answer Nice Answer Great Answer Booster Announcer Favorite Question Notable Question Necromancer Announcer Announcer Announcer Announcer Great Question Publicist Booster Announcer Popular Question Good Answer Popular Question Nice Answer,NULL,pMultiplying the numbers in sequence ppre codefor in range ireturn code prepcreates large number as in tens of thousands of bits very quickly and then you have lot of multiplications of one huge number and one small number Multiplications where at least one of the factors is huge are slow ppYou can speed it up considerably by reducing the number of multiplications involving huge numbers for example ppre codedef range prod lo hi if lo lt hi mid hi lo return range prod lo mid range prod mid hi if lo hi return lo return lo hidef treefactorial if lt return return range prod code prepproduces timing the computation of code100000 100019 code first tried codelen str fun 100000 code but the conversion to string is abominably slow so that made the difference seem smaller than it is ppre code python factorial py 81430math factorial took 06193709373 seconds81430factorial took 84716391563 seconds81430treefactorial took 344486951828 seconds code prepso more than 10× speedup for code100000 code Are you ok with this being used in BSD licensed SciPy https github com scipy scipy pull 6020 pMultiplying the numbers in sequence ppre codefor in range ireturn code prepcreates large number as in tens of thousands of bits very quickly and then you have lot of multiplications of one huge number and one small number Multiplications where at least one of the factors is huge are slow ppYou can speed it up considerably by reducing the number of multiplications involving huge numbers for example ppre codedef range prod lo hi if lo lt hi mid hi lo return range prod lo mid range prod mid hi if lo hi return lo return lo hidef treefactorial if lt return return range prod code prepproduces timing the computation of code100000 100019 code first tried codelen str fun 100000 code but the conversion to string is abominably slow so that made the difference seem smaller than it is ppre code python factorial py 81430math factorial took 06193709373 seconds81430factorial took 84716391563 seconds81430treefactorial took 344486951828 seconds code prepso more than 10× speedup for code100000 code So this calculates as It might be better to use to keep them smaller for longer Invertible STFT and ISTFT in Python python scipy fft signal processing pIs there any general purpose form of href https en wikipedia org wiki Short time Fourier transform rel noreferrer short time Fourier transform with corresponding inverse transform built into SciPy or NumPy or whatever ppThere the pyplot codespecgram code function in matplotlib which calls codeax specgram code which calls codemlab specgram code which calls href https github com matplotlib matplotlib blob master lib matplotlib mlab py L206 rel noreferrer code spectral helper code pblockquotepre code The checks for if is are so that we can use the same function to implement the core of psd csd and spectrogram without doing extra calculations We return the unaveraged Pxy freqs and code pre blockquotepbut pblockquote pThis is helper function that implements the commonality between the 204 psd csd and spectrogram It is emNOT em meant to be used outside of mlab blockquotepI not sure if this can be used to do an STFT and ISTFT though Is there anything else or should translate something like href http labrosa ee columbia edu matlab pvoc rel noreferrer these MATLAB functions ppI know how to write my own ad hoc implementation just looking for something full featured which can handle different windowing functions but has sane default is fully invertible with COLA windows codeistft stft code tested by multiple people no off by one errors handles the ends and zero padding well fast RFFT implementation for real input etc SciPy has this now http scipy github io devdocs generated scipy signal stft html pIf you exclude codeapplication code then everything under it will always be excluded even if some later negative exclusion pattern “unignore” might match something under codeapplication code ppTo do what you want you have to “unignore” every parent directory of anything that you want to “unignore” Usually you end up writing rules for this situation in pairs ignore everything in directory but not some certain subdirectory ppre code you can skip this first one if it is not already excluded by prior patterns application application application language application language application language gr code prep strongNote strong brThe trailing code code is significant pulliThe pattern codedir code excludes directory named codedir code and implicitly everything under it brWith codedir code Git will never look at anything under codedir code and thus will never apply any of the “un exclude” patterns to anything under codedir code liliThe pattern codedir code says nothing about codedir code itself it just excludes everything under codedir code With codedir code Git will process the direct contents of codedir code giving other patterns chance to “un exclude” some bit of the content code dir sub code li ul So the non asterisk is recursive but doesn allow exclusions while the asterisk version is non recursive but does allow exclusions,0,NULL,NULL 24330,1512847,1529642,NULL,NULL,NULL,0,NULL,NULL 24331,67893,1192420,Notable Question,NULL,NULL,0,NULL,NULL 24332,440594,196451,Notable Question Notable Question Famous Question Popular Question Famous Question Good Question Famous Question Popular Question Populist Nice Answer Notable Question Good Answer Popular Question Yearling Popular Question Popular Question Caucus Necromancer Nice Question Good Answer Great Answer Famous Question Pundit Notable Question Caucus Popular Question Famous Question Famous Question Popular Question Nice Answer Good Question Yearling Popular Question Popular Question Nice Question Census Popular Question Notable Question Caucus Popular Question Notable Question Notable Question Good Question Nice Answer Yearling Good Answer,NULL,pI haven had the time to test it myself but the following code should work for all codeEnum code types ppre codepublic class JsonConvertEnum JavaScriptPrimitiveConverter public override IEnumerable lt Type gt SupportedTypes get yield return typeof Enum public override object Deserialize object primitiveValue Type type JavaScriptSerializer serializer if type IsEnum return null return Enum Parse type string primitiveValue public override object Serialize object obj JavaScriptSerializer serializer if obj GetType IsEnum return null return obj ToString code prepBasically it uses the codeType code metadata to determine if it is an codeEnum code or not and then makes use of codeEnum Parse code to convert it from the primitive value back to the correct enum To convert from codeEnum code to codestring code all you have to do is to cast the value to codestring code ppIt can be made more terse by using the ternary operator but left the more verbose version for clarity ppHope this helps Looks very promising ll try it as soon as can Super duper happy path indeed pI haven had the time to test it myself but the following code should work for all codeEnum code types ppre codepublic class JsonConvertEnum JavaScriptPrimitiveConverter public override IEnumerable lt Type gt SupportedTypes get yield return typeof Enum public override object Deserialize object primitiveValue Type type JavaScriptSerializer serializer if type IsEnum return null return Enum Parse type string primitiveValue public override object Serialize object obj JavaScriptSerializer serializer if obj GetType IsEnum return null return obj ToString code prepBasically it uses the codeType code metadata to determine if it is an codeEnum code or not and then makes use of codeEnum Parse code to convert it from the primitive value back to the correct enum To convert from codeEnum code to codestring code all you have to do is to cast the value to codestring code ppIt can be made more terse by using the ternary operator but left the more verbose version for clarity ppHope this helps It worked used ternary so it becomes one line return obj GetType IsEnum obj ToString null,0,NULL,NULL 24333,86038,163640,ruby Nice Answer Enlightened Explainer Nice Answer Enlightened Yearling Caucus Necromancer Constituent Census Custodian Quorum Caucus Constituent Yearling Documentation User Census Caucus Constituent Nice Answer Cleanup Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 24334,80119,422288,Necromancer Announcer Announcer Nice Answer Good Answer Great Answer Yearling Popular Question Revival Famous Question Necromancer Great Answer Necromancer Good Answer Nice Answer Caucus Curious Yearling Explainer Documentation User Self-Learner Announcer Necromancer Nice Answer Enlightened Good Answer Nice Answer Announcer Cleanup Necromancer Popular Question Popular Question Citizen Patrol Yearling Good Answer ios,NULL,NULL,0,NULL,NULL 24335,182213,899342,Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24336,1214390,1141513,NULL,NULL,NULL,0,NULL,NULL 24337,168992,841139,NULL,NULL,NULL,0,NULL,NULL 24338,327530,465806,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24339,323641,631872,NULL,NULL,NULL,0,NULL,NULL 24340,1597837,312452,Popular Question Popular Question Teacher Popular Question Custodian,NULL,NULL,0,NULL,NULL 24341,372730,581981,NULL,NULL,NULL,0,NULL,NULL 24342,470887,829845,NULL,NULL,NULL,0,NULL,NULL 24343,598298,1290580,NULL,NULL,NULL,0,NULL,NULL 24344,1670186,1290580,NULL,NULL,NULL,0,NULL,NULL 24345,67895,155626,Yearling Yearling Self-Learner Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 24346,1382846,679064,NULL,NULL,NULL,0,NULL,NULL 24347,239412,37198,Enthusiast Famous Question Favorite Question Favorite Question Good Question Good Question Famous Question Famous Question Popular Question Famous Question Yearling Popular Question Great Question Yearling Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 24348,6001991,1027794,NULL,NULL,NULL,0,NULL,NULL 24349,749357,1535136,Caucus,NULL,NULL,0,NULL,NULL 24350,167429,345483,NULL,NULL,NULL,0,NULL,NULL 24351,28621,375686,Yearling Autobiographer Supporter,NULL,NULL,0,NULL,NULL 24352,1267170,1179509,NULL,NULL,NULL,0,NULL,NULL 24353,3644942,549281,NULL,NULL,NULL,0,NULL,NULL 24354,429809,1123732,NULL,NULL,NULL,0,NULL,NULL 24355,809517,264152,NULL,NULL,NULL,0,NULL,NULL 24356,884820,1145330,NULL,NULL,NULL,0,NULL,NULL 24357,160942,367553,Good Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24358,274021,1091041,NULL,NULL,NULL,0,NULL,NULL 24359,105404,1253124,NULL,NULL,NULL,0,NULL,NULL 24360,217603,893951,NULL,NULL,NULL,0,NULL,NULL 24361,222997,1327072,NULL,NULL,NULL,0,NULL,NULL 24362,245351,437405,NULL,NULL,NULL,0,NULL,NULL 24363,47862,603370,NULL,NULL,NULL,0,NULL,NULL 24364,102659,739998,NULL,NULL,NULL,0,NULL,NULL 24365,69887,450085,NULL,NULL,NULL,0,NULL,NULL 24366,3714964,1364707,Necromancer Yearling Necromancer Yearling Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 24367,446096,1364707,Necromancer Yearling Necromancer Yearling Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 24368,218335,577298,Popular Question Notable Question Revival Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 24369,1288185,394195,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24370,891268,1230227,Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 24371,115195,1230227,Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 24372,674339,489601,NULL,NULL,NULL,0,NULL,NULL 24373,101939,1036776,NULL,NULL,NULL,0,NULL,NULL 24374,8687200,30404,Yearling Custodian Custodian Informed Popular Question Census Caucus Constituent,NULL,NULL,0,NULL,NULL 24375,108517,30404,Yearling Custodian Custodian Informed Popular Question Census Caucus Constituent,NULL,NULL,0,NULL,NULL 24376,1296653,831393,NULL,NULL,NULL,0,NULL,NULL 24377,582377,1381638,Good Answer Yearling Curious Nice Answer Enlightened Nice Answer Popular Question Nice Answer Custodian Guru Yearling Popular Question Custodian Notable Question Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 24378,110955,927514,Caucus Constituent Popular Question Necromancer Yearling Good Question Civic Duty Census Commentator Revival,NULL,NULL,0,NULL,NULL 24379,1207592,927514,Caucus Constituent Popular Question Necromancer Yearling Good Question Civic Duty Census Commentator Revival,NULL,NULL,0,NULL,NULL 24380,212707,413772,NULL,NULL,,0,, 24381,36533,207152,Editor Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 24382,1015738,1123573,NULL,NULL,NULL,0,NULL,NULL 24383,911346,552283,NULL,NULL,NULL,0,NULL,NULL 24384,2247454,237348,NULL,NULL,NULL,0,NULL,NULL 24385,166826,618502,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 24386,490464,126188,Yearling Populist Caucus Yearling Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 24387,1192480,330980,NULL,NULL,NULL,0,NULL,NULL 24388,2061474,330980,NULL,NULL,NULL,0,NULL,NULL 24389,131174,1405582,NULL,NULL,NULL,0,NULL,NULL 24390,132047,1003123,Popular Question python Nice Answer Enlightened Nice Question Popular Question Notable Question Nice Answer Enlightened Nice Answer Nice Answer Documentation Pioneer Good Question Famous Question Favorite Question Famous Question Yearling Caucus Constituent Revival Nice Answer Enlightened Good Answer Good Answer Nice Answer Popular Question Popular Question Good Answer Good Answer Nice Answer Nice Answer Enlightened Documentation User Popular Question Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Census Necromancer Popular Question Popular Question Great Question Revival Guru Caucus Good Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer python-3.x python-2.7 Notable Question Nice Answer Enlightened Necromancer Nice Answer Notable Question Nice Answer Enlightened Notable Question regex Nice Answer Enlightened Good Answer Yearling Popular Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24391,51381,26396,git Fanatic Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Announcer Guru Nice Answer Announcer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Yearling Documentation User Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Announcer Great Answer Good Answer Good Answer Good Answer Announcer Announcer Good Answer Notable Question Nice Answer Enlightened Good Answer Announcer git Enlightened Guru Great Answer Notable Question Guru Yearling Announcer Great Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 24392,1400123,98437,NULL,NULL,NULL,0,NULL,NULL 24393,732840,923955,Caucus Constituent Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 24394,141464,252414,Yearling Popular Question Yearling Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 24395,1136844,780146,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24396,276195,1304251,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24397,126124,863091,Yearling,NULL,NULL,0,NULL,NULL 24398,312875,201065,Popular Question Yearling Nice Question Yearling Yearling Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 24399,121532,302005,Nice Question Popular Question Notable Question Yearling Nice Question Notable Question Nice Question Necromancer Caucus Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Census Caucus Yearling Revival Notable Question Necromancer Necromancer Nice Answer Taxonomist,NULL,NULL,0,NULL,NULL 24400,365346,1529174,NULL,NULL,NULL,0,NULL,NULL 24401,20440,1035608,Custodian,NULL,NULL,0,NULL,NULL 24402,49651,473297,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 24403,12602,289797,Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24404,768257,1430258,NULL,NULL,NULL,0,NULL,NULL 24405,448499,321844,NULL,NULL,NULL,0,NULL,NULL 24406,156133,442951,NULL,NULL,NULL,0,NULL,NULL 24407,192381,88868,Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24408,395239,392684,Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Reviewer Notable Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Good Question Popular Question Caucus Good Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Nice Question Favorite Question Popular Question Popular Question Famous Question Notable Question Great Question Popular Question Yearling Caucus Popular Question Notable Question Informed Civic Duty Nice Question Popular Question Nice Question Notable Question Peer Pressure Notable Question Nice Question Popular Question Notable Question Notable Question Custodian Custodian Caucus Great Question Famous Question Notable Question Popular Question Notable Question Notable Question Famous Question Nice Question Benefactor Nice Question Yearling Popular Question Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24409,54209,683546,Supporter Editor Student,NULL,NULL,0,NULL,NULL 24410,257740,434171,Necromancer Popular Question Announcer Yearling Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Famous Question Yearling Custodian Famous Question Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 24411,1511416,713791,NULL,NULL,NULL,0,NULL,NULL 24412,100935,1387227,NULL,NULL,NULL,0,NULL,NULL 24413,2400,366705,NULL,NULL,NULL,0,NULL,NULL 24414,488130,1467504,NULL,NULL,NULL,0,NULL,NULL 24415,5596935,1184097,NULL,NULL,NULL,0,NULL,NULL 24416,160752,1184097,NULL,NULL,NULL,0,NULL,NULL 24417,136474,1511299,NULL,NULL,NULL,0,NULL,NULL 24418,87107,20226,Nice Answer Famous Question Nice Answer Enlightened Announcer Good Answer Yearling Revival Popular Question Guru Nice Answer Enlightened Census Announcer Yearling Census Popular Question Necromancer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 24419,648601,1490024,NULL,NULL,NULL,0,NULL,NULL 24420,1545301,1182,NULL,NULL,NULL,0,NULL,NULL 24421,20462,512485,Custodian Popular Question Yearling Popular Question Popular Question,NULL,pBased on href http api jquery com serializeArray codejQuery serializeArray code returns key value pairs ppre codevar data form serializeArray reduce function obj item obj item name item value return obj code pre Sadly this doesn work with multiselects,0,NULL,NULL 24422,1466956,512485,Custodian Popular Question Yearling Popular Question Popular Question,NULL,pBased on href http api jquery com serializeArray codejQuery serializeArray code returns key value pairs ppre codevar data form serializeArray reduce function obj item obj item name item value return obj code pre Sadly this doesn work with multiselects,0,NULL,NULL 24423,889509,1302988,NULL,NULL,NULL,0,NULL,NULL 24424,1362408,90092,NULL,NULL,NULL,0,NULL,NULL 24425,1036398,564551,NULL,NULL,NULL,0,NULL,NULL 24426,173990,689006,NULL,NULL,NULL,0,NULL,NULL 24427,6580961,997356,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24428,990561,997356,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24429,161623,931360,NULL,NULL,NULL,0,NULL,NULL 24430,534587,978525,Necromancer Revival Yearling Caucus Popular Question Revival Yearling Good Answer Populist Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 24431,843,246459,NULL,NULL,NULL,0,NULL,NULL 24432,471635,1290654,Supporter,NULL,NULL,0,NULL,NULL 24433,124977,1063819,Civic Duty Yearling Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 24434,730454,909396,NULL,NULL,NULL,0,NULL,NULL 24435,364098,1375824,NULL,NULL,NULL,0,NULL,NULL 24436,818985,1317694,Notable Question,NULL,NULL,0,NULL,NULL 24437,10015,506951,Notable Question,NULL,NULL,0,NULL,NULL 24438,422217,1541244,NULL,NULL,NULL,0,NULL,NULL 24439,910907,1267893,NULL,NULL,NULL,0,NULL,NULL 24440,626237,1455700,NULL,NULL,NULL,0,NULL,NULL 24441,948369,1044864,Commentator Informed Yearling Necromancer Revival Yearling Nice Answer Revival Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 24442,938872,392601,Notable Question,NULL,NULL,0,NULL,NULL 24443,494105,1449263,NULL,NULL,NULL,0,NULL,NULL 24444,270925,1086731,NULL,NULL,NULL,0,NULL,NULL 24445,54602,1048373,Yearling Critic Investor Altruist,NULL,NULL,0,NULL,NULL 24446,171196,1032958,Nice Answer Supporter,NULL,NULL,0,NULL,NULL 24447,430370,264789,Popular Question,NULL,NULL,0,NULL,NULL 24448,151743,1019912,NULL,NULL,NULL,0,NULL,NULL 24449,698543,677915,Informed Editor Critic Organizer Explainer Yearling Commentator Yearling Mortarboard Autobiographer Yearling Custodian Citizen Patrol Custodian Yearling Caucus Popular Question Caucus Nice Answer Enlightened Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 24450,147998,434989,Necromancer Self-Learner Yearling Nice Answer Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24451,169061,539874,NULL,NULL,NULL,0,NULL,NULL 24452,1898,689383,NULL,NULL,NULL,0,NULL,NULL 24453,569729,831385,NULL,NULL,NULL,0,NULL,NULL 24454,173409,957453,Commentator Student Supporter,NULL,Clojure calling Bytes from hbase utils returns non type matching result java hadoop clojure hbase byte pThere is functioncode defn gt bytes Bytes toBytes code ppwhere codeBytes code comes from the Apache Hbase Client Utils code org apache hadoop hbase util Bytes code from code org apache hbase hbase shaded client code ppcalling code seq gt bytes long 10 gt 10 codebut calling code seq Bytes toBytes long 10 gt 10 code ppI tried to print the type of codex code inside code gt bytes code and saw it was still java lang long ppTotally confused could not figure out what wrong phrpUpdate ppThis seems to be problem that is probabilty triggered everything worked fine as restarted the REPL but worked weird again when restarted the REPL again phrpUpdate pp code seq gt bytes Long MAX VALUE gt code org apache hadoop hbase util Bytes is from org apache hbase hbase shaded client Clojure calling Bytes from hbase utils returns non type matching result java hadoop clojure hbase byte pThere is functioncode defn gt bytes Bytes toBytes code ppwhere codeBytes code comes from the Apache Hbase Client Utils code org apache hadoop hbase util Bytes code from code org apache hbase hbase shaded client code ppcalling code seq gt bytes long 10 gt 10 codebut calling code seq Bytes toBytes long 10 gt 10 code ppI tried to print the type of codex code inside code gt bytes code and saw it was still java lang long ppTotally confused could not figure out what wrong phrpUpdate ppThis seems to be problem that is probabilty triggered everything worked fine as restarted the REPL but worked weird again when restarted the REPL again phrpUpdate pp code seq gt bytes Long MAX VALUE gt code Try using long 10 instead of Long 10,1,Clojure calling Bytes from hbase utils returns non type matching result java hadoop clojure hbase byte pThere is functioncode defn gt bytes Bytes toBytes code ppwhere codeBytes code comes from the Apache Hbase Client Utils code org apache hadoop hbase util Bytes code from code org apache hbase hbase shaded client code ppcalling code seq gt bytes long 10 gt 10 codebut calling code seq Bytes toBytes long 10 gt 10 code ppI tried to print the type of codex code inside code gt bytes code and saw it was still java lang long ppTotally confused could not figure out what wrong phrpUpdate ppThis seems to be problem that is probabilty triggered everything worked fine as restarted the REPL but worked weird again when restarted the REPL again phrpUpdate pp code seq gt bytes Long MAX VALUE gt code,NULL 24455,4850003,636013,Editor Commentator Census Popular Question,NULL,NULL,0,NULL,NULL 24456,136896,287699,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 24457,503988,1174032,NULL,NULL,NULL,0,NULL,NULL 24458,23292,269178,NULL,NULL,NULL,0,NULL,NULL 24459,16138,176611,Yearling Popular Question Notable Question Yearling Great Answer Stellar Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 24460,654665,1239739,NULL,NULL,NULL,0,NULL,NULL 24461,4138342,1239739,NULL,NULL,NULL,0,NULL,NULL 24462,3535,581845,Yearling Nice Answer Curious Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Caucus Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Caucus Guru Great Answer Guru Yearling Good Answer Good Answer Nice Answer Enlightened Guru Good Answer,NULL,NULL,0,NULL,NULL 24463,593262,974148,Notable Question Student,NULL,NULL,0,NULL,NULL 24464,83662,1165709,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24465,46049,466014,Nice Answer Yearling Student Announcer Revival,NULL,NULL,0,NULL,NULL 24466,1361576,385395,NULL,NULL,NULL,0,NULL,NULL 24467,187592,1059568,NULL,NULL,NULL,0,NULL,NULL 24468,1503665,710798,NULL,NULL,NULL,0,NULL,NULL 24469,1478368,1270822,Popular Question,NULL,NULL,0,NULL,NULL 24470,2928888,1270822,Popular Question,NULL,NULL,0,NULL,NULL 24471,356552,16204,Famous Question Good Question Good Question Famous Question Notable Question Yearling Notable Question Nice Question Famous Question Famous Question Famous Question Favorite Question Notable Question Yearling Popular Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 24472,177187,800811,NULL,NULL,NULL,0,NULL,NULL 24473,485897,708686,Nice Answer,NULL,NULL,0,NULL,NULL 24474,103746,205982,Tumbleweed Informed Popular Question Documentation User,NULL,NULL,0,NULL,NULL 24475,6406,1073260,NULL,NULL,NULL,0,NULL,NULL 24476,102714,900263,NULL,NULL,NULL,0,NULL,NULL 24477,219237,1396130,NULL,NULL,NULL,0,NULL,NULL 24478,925534,1477280,Yearling Enthusiast Editor Yearling Commentator Fanatic Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 24479,211939,187584,Notable Question Great Answer Yearling Nice Answer Popular Question Nice Answer Enlightened Notable Question Yearling Notable Question Custodian Custodian Civic Duty Nice Answer Custodian Yearling Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 24480,270400,630155,NULL,NULL,NULL,0,NULL,NULL 24481,193127,1016064,NULL,NULL,NULL,0,NULL,NULL 24482,1144993,148638,Famous Question Good Question Famous Question Notable Question Yearling Notable Question Yearling Good Question Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 24483,87147,911963,Nice Answer Custodian Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Custodian Popular Question Notable Question Yearling Revival Notable Question Popular Question Census Popular Question Inquisitive Notable Question Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24484,266591,1490587,NULL,NULL,NULL,0,NULL,NULL 24485,274356,911498,Notable Question,NULL,NULL,0,NULL,NULL 24486,446336,851333,NULL,NULL,NULL,0,NULL,NULL 24487,1165080,1313263,Editor Nice Answer Enlightened Peer Pressure Yearling Commentator Tumbleweed Critic Curious Necromancer,NULL,NULL,0,NULL,NULL 24488,1378886,750972,NULL,NULL,NULL,0,NULL,NULL 24489,655450,560360,NULL,NULL,NULL,0,NULL,NULL 24490,151664,560360,NULL,NULL,NULL,0,NULL,NULL 24491,185780,1228206,Notable Question Nice Answer Yearling Custodian Favorite Question Yearling Notable Question Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 24492,51565,807187,Yearling Good Answer Yearling Guru Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 24493,32838,1180582,Revival Yearling,NULL,NULL,0,NULL,NULL 24494,124025,989659,Revival Necromancer Yearling Caucus Constituent Revival Caucus Constituent Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 24495,1160124,552120,NULL,NULL,NULL,0,NULL,NULL 24496,1318718,1023419,NULL,NULL,NULL,0,NULL,NULL 24497,103167,1183663,Popular Question Necromancer Caucus Constituent Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 24498,249327,1013400,Popular Question,NULL,NULL,0,NULL,NULL 24499,225884,122765,Popular Question Excavator Custodian Popular Question Yearling Nice Question Custodian Proofreader Caucus Constituent Popular Question Yearling Documentation User Nice Answer Enlightened Famous Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 24500,330774,1335474,NULL,NULL,NULL,0,NULL,NULL 24501,415366,392103,NULL,NULL,NULL,0,NULL,NULL 24502,236901,901765,NULL,NULL,NULL,0,NULL,NULL 24503,173452,817142,Critic Popular Question Popular Question Caucus Yearling Yearling Informed Popular Question,NULL,NULL,0,NULL,NULL 24504,532578,394129,Student,NULL,NULL,0,NULL,NULL 24505,143640,1077033,NULL,NULL,NULL,0,NULL,NULL 24506,84672,747919,Commentator Curious Tumbleweed Excavator Census Self-Learner,NULL,NULL,0,NULL,NULL 24507,1438213,224265,NULL,NULL,NULL,0,NULL,NULL 24508,493517,602127,NULL,NULL,NULL,0,NULL,NULL 24509,681691,1278218,Announcer Yearling,NULL,NULL,0,NULL,NULL 24510,15715,216838,NULL,NULL,NULL,0,NULL,NULL 24511,430504,793171,NULL,NULL,NULL,0,NULL,NULL 24512,570819,35012,Necromancer Nice Answer Notable Question Yearling Good Answer Yearling Notable Question Yearling Yearling Good Question Great Answer Yearling,NULL,,0,, 24513,2272137,242406,Yearling Yearling Commentator,NULL,NULL,0,NULL,NULL 24514,367131,242406,Yearling Yearling Commentator,NULL,NULL,0,NULL,NULL 24515,95911,1337136,Nice Answer Scholar Yearling Necromancer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 24516,267102,751136,Yearling Curious Necromancer Yearling Nice Question Popular Question Necromancer Nice Answer Caucus Yearling Revival Popular Question Popular Question Notable Question Custodian Custodian Nice Question Self-Learner Yearling Pundit Necromancer Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 24517,122573,553157,NULL,NULL,NULL,0,NULL,NULL 24518,183542,763507,Yearling Popular Question Yearling Caucus Constituent Custodian Custodian Autobiographer Custodian Custodian,NULL,NULL,0,NULL,NULL 24519,3640841,1098091,NULL,NULL,NULL,0,NULL,NULL 24520,792202,1098091,NULL,NULL,NULL,0,NULL,NULL 24521,264662,701260,Nice Answer Yearling Popular Question Necromancer Yearling Caucus Constituent Necromancer Yearling Curious Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 24522,4405009,1491061,NULL,NULL,NULL,0,NULL,NULL 24523,305784,116273,php Nice Question Good Answer Yearling Caucus Constituent Yearling Nice Answer Popular Question Great Question Caucus Constituent Custodian arrays Nice Answer Notable Question Good Answer Nice Answer Census Caucus Constituent Nice Answer Nice Answer Yearling Nice Answer Nice Answer Guru,NULL,NULL,0,NULL,NULL 24524,28953,1028716,NULL,NULL,NULL,0,NULL,NULL 24525,130053,1113064,NULL,NULL,NULL,0,NULL,NULL 24526,285372,1319892,NULL,NULL,NULL,0,NULL,NULL 24527,439468,152034,NULL,NULL,NULL,0,NULL,NULL 24528,303299,534610,NULL,NULL,NULL,0,NULL,NULL 24529,3130533,534610,NULL,NULL,NULL,0,NULL,NULL 24530,1302425,153723,Necromancer Notable Question Notable Question Yearling Excavator Nice Answer Enlightened Nice Question Popular Question Necromancer Notable Question Announcer Popular Question Yearling Custodian Inquisitive Census Favorite Question Caucus Nice Answer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 24531,826439,1222865,Editor Supporter Tumbleweed Revival Necromancer Nice Answer Yearling Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 24532,6859956,240633,Nice Answer Enlightened Notable Question Yearling Necromancer Nice Answer Good Answer Announcer Nice Answer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 24533,168891,956701,Necromancer Commentator Yearling Necromancer Critic Suffrage Yearling Nice Answer Caucus Necromancer Yearling Promoter Student Good Answer Necromancer Yearling Revival Revival Documentation User Electorate Yearling Nice Question Necromancer Yearling Caucus Revival Organizer Necromancer Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 24534,2487,1085214,NULL,NULL,NULL,0,NULL,NULL 24535,448327,199771,Good Answer,NULL,NULL,0,NULL,NULL 24536,244189,314287,NULL,NULL,NULL,0,NULL,NULL 24537,54090,1439211,NULL,NULL,NULL,0,NULL,NULL 24538,307527,734625,NULL,NULL,NULL,0,NULL,NULL 24539,31293,924148,NULL,NULL,NULL,0,NULL,NULL 24540,204713,1104036,Revival Commentator Critic Popular Question Necromancer Popular Question Yearling Popular Question Curious Enthusiast Nice Answer Yearling Notable Question Tumbleweed Custodian,NULL,NULL,0,NULL,NULL 24541,142353,723362,NULL,NULL,NULL,0,NULL,NULL 24542,68590,1565866,Scholar Popular Question Nice Question Notable Question Informed Good Question,NULL,NULL,0,NULL,NULL 24543,392264,273999,NULL,NULL,NULL,0,NULL,NULL 24544,49188,1179011,NULL,NULL,NULL,0,NULL,NULL 24545,235171,1186307,Supporter,NULL,NULL,0,NULL,NULL 24546,7389381,1186307,Supporter,NULL,NULL,0,NULL,NULL 24547,192474,288959,Yearling Good Question Custodian Good Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 24548,5348143,154616,Notable Question Yearling Notable Question Yearling Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 24549,462011,154616,Notable Question Yearling Notable Question Yearling Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 24550,607802,260584,Guru Yearling Guru Nice Answer Enlightened Documentation Pioneer Nice Answer Populist Yearling Good Answer Guru Caucus Constituent haskell Documentation User Yearling Nice Answer Good Answer Necromancer Great Answer,NULL,NULL,0,NULL,NULL 24551,154323,234969,Popular Question Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 24552,18400,261272,Autobiographer Yearling Critic,NULL,NULL,0,NULL,NULL 24553,7947,890466,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 24554,3579799,455503,NULL,NULL,NULL,0,NULL,NULL 24555,589191,455503,NULL,NULL,NULL,0,NULL,NULL 24556,171941,625044,Supporter Informed Scholar Student,NULL,NULL,0,NULL,NULL 24557,261520,213947,NULL,NULL,NULL,0,NULL,NULL 24558,774864,525420,NULL,NULL,NULL,0,NULL,NULL 24559,16827,131192,Good Answer,NULL,NULL,0,NULL,NULL 24560,76838,47350,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 24561,1387380,1445307,NULL,NULL,NULL,0,NULL,NULL 24562,100781,895294,NULL,NULL,NULL,0,NULL,NULL 24563,1510340,224206,Nice Answer Nice Answer Nice Answer Enlightened Yearling Necromancer Nice Answer Good Answer Popular Question Good Answer Yearling Guru Guru,NULL,NULL,0,NULL,NULL 24564,391249,75479,Famous Question Yearling Nice Answer Citizen Patrol Yearling Good Answer,NULL,NULL,0,NULL,NULL 24565,445172,374385,Nice Answer Enlightened Popular Question Yearling Caucus Custodian php Nice Answer Enlightened Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 24566,165515,1253630,NULL,NULL,NULL,0,NULL,NULL 24567,1022421,850846,NULL,NULL,NULL,0,NULL,NULL 24568,7132431,770257,NULL,NULL,NULL,0,NULL,NULL 24569,80420,20146,Peer Pressure Good Question Reviewer Yearling Civic Duty Custodian Custodian Custodian Guru Popular Question Popular Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 24570,116364,786078,NULL,NULL,NULL,0,NULL,NULL 24571,10983,94665,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24572,2078,89645,Critic,NULL,NULL,0,NULL,NULL 24573,338719,799912,NULL,NULL,NULL,0,NULL,NULL 24574,120833,1144085,Yearling Nice Answer Necromancer Notable Question Nice Question Popular Question Popular Question Notable Question Revival Notable Question Nice Answer Enlightened Notable Question Yearling Necromancer Popular Question Famous Question Nice Question Yearling Nice Answer Nice Answer Good Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24575,1354126,693044,NULL,NULL,NULL,0,NULL,NULL 24576,1520981,650988,NULL,NULL,NULL,0,NULL,NULL 24577,252932,446326,Yearling Popular Question,NULL,NULL,0,NULL,NULL 24578,223084,145758,Supporter Editor,NULL,NULL,0,NULL,NULL 24579,1514870,926269,NULL,NULL,NULL,0,NULL,NULL 24580,59630,359536,Good Answer Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 24581,417128,985431,NULL,NULL,NULL,0,NULL,NULL 24582,517900,42973,Great Question Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Question Famous Question Nice Question Nice Answer Popular Question Nice Question Notable Question Notable Question Guru Nice Answer Nice Question Popular Question Popular Question Good Answer Nice Answer Enlightened Peer Pressure Guru Nice Answer Enlightened Popular Question Guru Nice Answer Enlightened Famous Question Revival Nice Answer Famous Question Announcer Nice Answer Guru Nice Question Popular Question Notable Question Good Answer Notable Question Nice Answer Guru Good Question Guru Nice Answer Enlightened Necromancer Famous Question Nice Answer Caucus Nice Answer Popular Question Constituent Great Answer Yearling Populist Famous Question Nice Answer Good Answer Nice Answer Good Question Good Question Famous Question Famous Question Nice Answer Notable Question Great Answer Necromancer Good Answer Notable Question Nice Answer Good Answer Nice Answer Nice Answer Great Answer Good Answer Favorite Question Favorite Question Popular Question Guru Guru Nice Answer Great Answer Popular Question Notable Question Popular Question Caucus Constituent Great Answer Nice Answer Copy Editor Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Notable Question Yearling Necromancer Favorite Question Nice Answer Announcer Popular Question Custodian Necromancer Necromancer Good Answer Caucus Popular Question Constituent Great Question Nice Answer Necromancer Good Question Great Answer Good Answer Good Answer Nice Question Custodian Nice Question Nice Question Popular Question Good Answer Notable Question Popular Question Great Question Good Question Good Answer Good Answer Nice Answer Revival Guru,NULL,pThe key to reliably “scripting” Git is to use the ‘plumbing’ commands ppThe developers take care when changing the plumbing commands to make sure they provide very stable interfaces given combination of repository state stdin command line options arguments etc will produce the same output in all versions of Git where the command option exists New output variations in plumbing commands can be introduced via new options but that can not introduce any problems for programs that have already been written against older versions they would not be using the new options since they did not exist or at least were not used at the time the script was written ppUnfortunately the ‘everyday’ Git commands are the ‘porcelain’ commands so most Git users may not be familiar with with the plumbing commands The distinction between porcelain and plumbing command is made in the main href http schacon github com git git html rel noreferrer git manpage see subsections titled href http schacon github com git git html high level commands porcelain rel noreferrer High level commands porcelain and href http schacon github com git git html low level commands plumbing rel noreferrer Low level commands plumbing phrpTo find out about uncomitted changes you will likely need href http schacon github com git git diff index html rel noreferrer codegit diff index code compare index and maybe tracked bits of working tree against some other treeish codeHEAD code maybe href http schacon github com git git diff files html rel noreferrer codegit diff files code compare working tree against index and possibly href http schacon github com git git ls files html rel noreferrer codegit ls files code list files list untracked unignored files pp Note that in the below commands codeHEAD code is used instead of codeHEAD code because otherwise the command href https stackoverflow com 41646552 fails if there is file named codeHEAD code ppTo check whether repository has staged changes not yet committed use this ppre codegit diff index quiet cached HEAD code preulliIf it exits with code0 code then there were no differences code1 code means there were differences li ulpTo check whether working tree has changes that could be staged ppre codegit diff files quiet code preulliThe exit code is the same as for codegit diff index code code0 code no differences code1 code differences li ulpTo check whether the combination of the index and the tracked files in the working tree have changes with respect to codeHEAD code ppre codegit diff index quiet HEAD code preulliThis is like combination of the previous two One prime difference is that it will still report “no differences” if you have staged change that you have “undone” in the working tree gone back to the contents that are in codeHEAD code In this same situation the two separate commands would both return reports of “differences present” li ulpYou also mentioned untracked files You might mean “untracked and unignored” or you might mean just plain “untracked” including ignored files Either way codegit ls files code is the tool for the job ppFor “untracked” will include ignored files if present ppre codegit ls files others code prepFor “untracked and unignored” ppre codegit ls files exclude standard others code prepMy first thought is to just check whether these commands have output ppre codetest git ls files others code preulliIf it exits with code0 code then there are no untracked files If it exits with code1 code then there are untracked files li ulpThere is small chance that this will translate abnormal exits from codegit ls files code into “no untracked files” reports both result in non zero exits of the above command bit more robust version might look like this ppre codeu git ls files others amp amp test code preulliThe idea is the same as the previous command but it allows unexpected errors from codegit ls files code to propagate out In this case non zero exit could mean “there are untracked files” or it could mean an error occurred If you want the “error” results combined with the “no untracked files” result instead use codetest code where exit of code0 code means “some untracked files” and non zero means error or “no untracked files” li ulpAnother idea is to use code error unmatch code to cause non zero exit when there are no untracked files This also runs the risk of conflating “no untracked files” exit code1 code with “an error occurred” exit non zero but probably code128 code But checking for code0 code vs code1 code vs non zero exit codes is probably fairly robust ppre codegit ls files others error unmatch gt dev null gt amp ec if test ec then echo some untracked fileselif test ec then echo no untracked fileselse echo error from ls filesfi code prepAny of the above codegit ls files code examples can take code exclude standard code if you want to consider only untracked and unignored files By local meant the files under your current directory which might be below its main git repository The porcelain solution lists all the untracked files found in the whole git repository minus git ignored files even if you are inside one of its subdirectories pThe key to reliably “scripting” Git is to use the ‘plumbing’ commands ppThe developers take care when changing the plumbing commands to make sure they provide very stable interfaces given combination of repository state stdin command line options arguments etc will produce the same output in all versions of Git where the command option exists New output variations in plumbing commands can be introduced via new options but that can not introduce any problems for programs that have already been written against older versions they would not be using the new options since they did not exist or at least were not used at the time the script was written ppUnfortunately the ‘everyday’ Git commands are the ‘porcelain’ commands so most Git users may not be familiar with with the plumbing commands The distinction between porcelain and plumbing command is made in the main href http schacon github com git git html rel noreferrer git manpage see subsections titled href http schacon github com git git html high level commands porcelain rel noreferrer High level commands porcelain and href http schacon github com git git html low level commands plumbing rel noreferrer Low level commands plumbing phrpTo find out about uncomitted changes you will likely need href http schacon github com git git diff index html rel noreferrer codegit diff index code compare index and maybe tracked bits of working tree against some other treeish codeHEAD code maybe href http schacon github com git git diff files html rel noreferrer codegit diff files code compare working tree against index and possibly href http schacon github com git git ls files html rel noreferrer codegit ls files code list files list untracked unignored files pp Note that in the below commands codeHEAD code is used instead of codeHEAD code because otherwise the command href https stackoverflow com 41646552 fails if there is file named codeHEAD code ppTo check whether repository has staged changes not yet committed use this ppre codegit diff index quiet cached HEAD code preulliIf it exits with code0 code then there were no differences code1 code means there were differences li ulpTo check whether working tree has changes that could be staged ppre codegit diff files quiet code preulliThe exit code is the same as for codegit diff index code code0 code no differences code1 code differences li ulpTo check whether the combination of the index and the tracked files in the working tree have changes with respect to codeHEAD code ppre codegit diff index quiet HEAD code preulliThis is like combination of the previous two One prime difference is that it will still report “no differences” if you have staged change that you have “undone” in the working tree gone back to the contents that are in codeHEAD code In this same situation the two separate commands would both return reports of “differences present” li ulpYou also mentioned untracked files You might mean “untracked and unignored” or you might mean just plain “untracked” including ignored files Either way codegit ls files code is the tool for the job ppFor “untracked” will include ignored files if present ppre codegit ls files others code prepFor “untracked and unignored” ppre codegit ls files exclude standard others code prepMy first thought is to just check whether these commands have output ppre codetest git ls files others code preulliIf it exits with code0 code then there are no untracked files If it exits with code1 code then there are untracked files li ulpThere is small chance that this will translate abnormal exits from codegit ls files code into “no untracked files” reports both result in non zero exits of the above command bit more robust version might look like this ppre codeu git ls files others amp amp test code preulliThe idea is the same as the previous command but it allows unexpected errors from codegit ls files code to propagate out In this case non zero exit could mean “there are untracked files” or it could mean an error occurred If you want the “error” results combined with the “no untracked files” result instead use codetest code where exit of code0 code means “some untracked files” and non zero means error or “no untracked files” li ulpAnother idea is to use code error unmatch code to cause non zero exit when there are no untracked files This also runs the risk of conflating “no untracked files” exit code1 code with “an error occurred” exit non zero but probably code128 code But checking for code0 code vs code1 code vs non zero exit codes is probably fairly robust ppre codegit ls files others error unmatch gt dev null gt amp ec if test ec then echo some untracked fileselif test ec then echo no untracked fileselse echo error from ls filesfi code prepAny of the above codegit ls files code examples can take code exclude standard code if you want to consider only untracked and unignored files That would be more explicit but comments cannot be edited anymore after few minutes think that the comment is still useful so prefer to not change its position in the list of comments and therefore to not edit it pHere is simpler method hack that gives you back the codesetdefaultencoding code function that was deleted from codesys code ppre codeimport sys sys setdefaultencoding does not exist here reload sys Reload does the trick sys setdefaultencoding UTF8 code prep strongThis is not safe thing to do strong though this is obviously hack since codesys setdefaultencoding code is purposely removed from codesys code when Python starts Reenabling it and changing the default encoding href https anonbadger wordpress com 2015 06 16 why sys setdefaultencoding will break code rel noreferrer can break code that relies on ASCII being the default this code can be third party which would generally make fixing it impossible or dangerous and print still does not work when setting back the default encoding to ascii This smells like some magic done by the notebook… In any case this solution is only hack and can thus break pSo many answers yet can find any solution that does efficiently what the emtitle em of the questions literally asks for splitting on multiple possible separators—instead many answers remove anything that is not word which is different So here is an answer to the question in the title that relies on Python standard and efficient codere code module ppre code gt gt gt import re Will be splitting on lt space gt gt gt gt filter None re split Hey you what are you doing here Hey you what are you doing here code prepwhere pullithe code code matches emone em of the separators listed inside lilithe code code in the regular expression is here to prevent the special interpretation of code code as character range indicator as in codeA code lilithe code code skips one emor more em delimiters it could be omitted thanks to the codefilter code but this would unnecessarily produce empty strings between matched separators and lili codefilter None code removes the empty strings possibly created by leading and trailing separators since empty strings have false boolean value li ulpThis codere split code precisely splits with multiple separators as asked for in the question title ppThis solution also does not suffer from problems with non ASCII characters in words as well see the first comment to href https stackoverflow com 1157498 42973 ghostdog74 answer ppThe codere code module is much more efficient than doing Python loops and tests by hand You must be using Python where filter constructs an iterator and not list You can reproduce Python behavior by wrapping the expression with list pHow about the following short manual calculation ppre codedef weighted avg and std values weights Return the weighted average and standard deviation values weights Numpy ndarrays with the same shape average numpy average values weights weights Fast and numerically precise variance numpy average values average weights weights return average math sqrt variance code pre np sqrt would work but because variance is simple Numpy float and not NumPy array math sqrt is more explicit and appropriate and therefore in general faster if this matters pThe whole key to such encoding problems is to understand that there are in principle strongtwo distinct concepts of string strong string of emcharacters em and string array of embytes em This distinction has been mostly ignored for long time because of the historic ubiquity of encodings with no more than 256 characters ASCII Latin Windows 1252 Mac OS Roman these encodings map set of common characters to numbers between and 255 bytes the relatively limited exchange of files before the advent of the web made this situation of incompatible encodings tolerable as most programs could ignore the fact that there were multiple encodings as long as they produced text that remained on the same operating system such programs would simply treat text as bytes through the encoding used by the operating system The correct modern view properly separates these two string concepts based on the following two points polli strongCharacters strong are mostly emunrelated to computers em one can draw them on chalk board etc like for instance بايثون 中蟒 and Characters for machines also include drawing instructions like for example spaces carriage return instructions to set the writing direction for Arabic etc accents etc href http en wikipedia org wiki List of unicode characters rel noreferrer very large character list is included in the href http en wikipedia org wiki Unicode rel noreferrer Unicode standard it covers most of the known characters lili pOn the other hand computers do need to represent abstract characters in some way for this they use strongarrays of bytes strong numbers between and 255 included because their memory comes in byte chunks The necessary process that converts characters to bytes is called emencoding em Thus computer emrequires em an encoding in order to represent characters Any text present on your computer is encoded until it is displayed whether it be sent to terminal which expects characters encoded in specific way or saved in file In order to be displayed or properly understood by say the Python interpreter streams of bytes are emdecoded em into characters href http en wikipedia org wiki Unicode Mapping and encodings rel noreferrer few encodings UTF UTF 16 are defined by Unicode for its list of characters Unicode thus defines both list of characters and encodings for these characters—there are still places where one sees the expression Unicode encoding as way to refer to the ubiquitous UTF but this is incorrect terminology as Unicode provides emmultiple em encodings li olpIn summary strongcomputers need to internally represent characters with bytes strong and they do so through two operations pblockquote strongEncoding strong characters bytes strongDecoding strong bytes characters blockquotepSome encodings cannot encode all characters ASCII while some Unicode encodings allow you to encode all Unicode characters emThe encoding is also not necessarily unique em because some characters can be represented either directly or as emcombination em of base character and of accents ppNote that the concept of strongnewline strong href https en wikipedia org wiki Newline rel noreferrer adds layer of complication since it can be represented by different control characters that depend on the operating system this is the reason for Python href https docs python org library functions html open rel noreferrer universal newline file reading mode ppNow what have called character above is what Unicode calls stronguser perceived character strong single user perceived character can sometimes be represented in Unicode by combining character parts base character accents found at different href http en wikipedia org wiki List of unicode characters rel noreferrer indexes in the Unicode list which are called strong href http unicode org glossary rel noreferrer code points strong —these codes points can be combined together to form grapheme cluster Unicode thus leads to third concept of string made of sequence of Unicode code points that sits between byte and character strings and which is closer to the latter will call them strongUnicode strings strong like in Python ppWhile Python can emprint em strings of user perceived characters strongPython non byte strings are essentially sequences of Unicode code points strong not of user perceived characters The code point values are the ones used in Python code code and code code Unicode string syntax They should not be confused with the encoding of character and do not have to bear any relationship with it Unicode code points can be encoded in various ways ppThis has an important consequence strongthe length of Python Unicode string is its number of code points which is emnot em always its number of user perceived characters strong thus codes u1100 u1161 u11a8 print len len code Python gives code각 len code despite codes code having single user perceived Korean character because it is represented with code points—even if it does not have to as codeprint uac01 code shows However in many practical circumstances the length of string is its number of user perceived characters because many characters are typically stored by Python as single Unicode code point ppIn strongPython strong Unicode strings are called… Unicode strings codeunicode code type literal form codeu code while byte arrays are strings codestr code type where the array of bytes can for instance be constructed with string literals code code In strongPython strong Unicode strings are simply called strings codestr code type literal form code code while byte arrays are bytes codebytes code type literal form codeb code ppWith these few key points you should be able to understand most encoding related questions phrpNormally when you strongprint strong codeu code strongto terminal strong you should not get garbage Python knows the encoding of your terminal In fact you can check what encoding the terminal expects ppre code pythonPython default Nov 15 2013 15 20 37 GCC Compatible Apple LLVM clang 500 79 on darwinType help copyright credits or license for more information gt gt gt import sys gt gt gt print sys stdout encodingUTF code prepIf your input characters can be encoded with the terminal encoding Python will do so and will send the corresponding bytes to your terminal without complaining The terminal will then do its best to display the characters after decoding the input bytes at worst the terminal font does not have some of the characters and will print some kind of blank instead ppIf your input characters cannot be encoded with the terminal encoding then it means that the terminal is not configured for displaying these characters Python will complain in Python with codeUnicodeEncodeError code since the character string cannot be encoded in way that suits your terminal The only possible solution is to use terminal that can display the characters either by configuring the terminal so that it accepts an encoding that can represent your characters or by using different terminal program This is important when you distribute programs that can be used in different environments messages that you print should be representable in the user terminal Sometimes it is thus best to stick to strings that only contain ASCII characters ppHowever when you strongredirect or pipe the output strong of your program then it is generally not possible to know what the input encoding of the receiving program is and the above code returns some default encoding None Python or UTF Python ppre code python2 import sys print sys stdout encoding catNone python3 import sys print sys stdout encoding catUTF code prepThe encoding of stdin stdout and stderr can however be href https docs python org using cmdline html envvar PYTHONIOENCODING rel noreferrer set through the codePYTHONIOENCODING code environment variable if needed ppre code PYTHONIOENCODING UTF python2 import sys print sys stdout encoding catUTF code prehrpIf the printing to terminal does not produce what you expect you can check the UTF encoding that you put manually in is correct for instance your first character code u001A code is not printable href http www tamasoft co jp en general info unicode html rel noreferrer if not mistaken ppAt href http wiki python org moin PrintFails rel noreferrer http wiki python org moin PrintFails you can find solution like the following for Python ppre codeimport codecsimport localeimport sys Wrap sys stdout into StreamWriter to allow writing unicode sys stdout codecs getwriter locale getpreferredencoding sys stdout uni u001A u0BC3 u1451 U0001D10C print uni code prepFor Python you can check href https stackoverflow com questions 4374455 how to set sys stdout encoding in python one of the questions asked previously on StackOverflow Sebastian Good points will include the distinction between user perceived characters and Unicode codepoints pThe whole key to such encoding problems is to understand that there are in principle strongtwo distinct concepts of string strong string of emcharacters em and string array of embytes em This distinction has been mostly ignored for long time because of the historic ubiquity of encodings with no more than 256 characters ASCII Latin Windows 1252 Mac OS Roman these encodings map set of common characters to numbers between and 255 bytes the relatively limited exchange of files before the advent of the web made this situation of incompatible encodings tolerable as most programs could ignore the fact that there were multiple encodings as long as they produced text that remained on the same operating system such programs would simply treat text as bytes through the encoding used by the operating system The correct modern view properly separates these two string concepts based on the following two points polli strongCharacters strong are mostly emunrelated to computers em one can draw them on chalk board etc like for instance بايثون 中蟒 and Characters for machines also include drawing instructions like for example spaces carriage return instructions to set the writing direction for Arabic etc accents etc href http en wikipedia org wiki List of unicode characters rel noreferrer very large character list is included in the href http en wikipedia org wiki Unicode rel noreferrer Unicode standard it covers most of the known characters lili pOn the other hand computers do need to represent abstract characters in some way for this they use strongarrays of bytes strong numbers between and 255 included because their memory comes in byte chunks The necessary process that converts characters to bytes is called emencoding em Thus computer emrequires em an encoding in order to represent characters Any text present on your computer is encoded until it is displayed whether it be sent to terminal which expects characters encoded in specific way or saved in file In order to be displayed or properly understood by say the Python interpreter streams of bytes are emdecoded em into characters href http en wikipedia org wiki Unicode Mapping and encodings rel noreferrer few encodings UTF UTF 16 are defined by Unicode for its list of characters Unicode thus defines both list of characters and encodings for these characters—there are still places where one sees the expression Unicode encoding as way to refer to the ubiquitous UTF but this is incorrect terminology as Unicode provides emmultiple em encodings li olpIn summary strongcomputers need to internally represent characters with bytes strong and they do so through two operations pblockquote strongEncoding strong characters bytes strongDecoding strong bytes characters blockquotepSome encodings cannot encode all characters ASCII while some Unicode encodings allow you to encode all Unicode characters emThe encoding is also not necessarily unique em because some characters can be represented either directly or as emcombination em of base character and of accents ppNote that the concept of strongnewline strong href https en wikipedia org wiki Newline rel noreferrer adds layer of complication since it can be represented by different control characters that depend on the operating system this is the reason for Python href https docs python org library functions html open rel noreferrer universal newline file reading mode ppNow what have called character above is what Unicode calls stronguser perceived character strong single user perceived character can sometimes be represented in Unicode by combining character parts base character accents found at different href http en wikipedia org wiki List of unicode characters rel noreferrer indexes in the Unicode list which are called strong href http unicode org glossary rel noreferrer code points strong —these codes points can be combined together to form grapheme cluster Unicode thus leads to third concept of string made of sequence of Unicode code points that sits between byte and character strings and which is closer to the latter will call them strongUnicode strings strong like in Python ppWhile Python can emprint em strings of user perceived characters strongPython non byte strings are essentially sequences of Unicode code points strong not of user perceived characters The code point values are the ones used in Python code code and code code Unicode string syntax They should not be confused with the encoding of character and do not have to bear any relationship with it Unicode code points can be encoded in various ways ppThis has an important consequence strongthe length of Python Unicode string is its number of code points which is emnot em always its number of user perceived characters strong thus codes u1100 u1161 u11a8 print len len code Python gives code각 len code despite codes code having single user perceived Korean character because it is represented with code points—even if it does not have to as codeprint uac01 code shows However in many practical circumstances the length of string is its number of user perceived characters because many characters are typically stored by Python as single Unicode code point ppIn strongPython strong Unicode strings are called… Unicode strings codeunicode code type literal form codeu code while byte arrays are strings codestr code type where the array of bytes can for instance be constructed with string literals code code In strongPython strong Unicode strings are simply called strings codestr code type literal form code code while byte arrays are bytes codebytes code type literal form codeb code ppWith these few key points you should be able to understand most encoding related questions phrpNormally when you strongprint strong codeu code strongto terminal strong you should not get garbage Python knows the encoding of your terminal In fact you can check what encoding the terminal expects ppre code pythonPython default Nov 15 2013 15 20 37 GCC Compatible Apple LLVM clang 500 79 on darwinType help copyright credits or license for more information gt gt gt import sys gt gt gt print sys stdout encodingUTF code prepIf your input characters can be encoded with the terminal encoding Python will do so and will send the corresponding bytes to your terminal without complaining The terminal will then do its best to display the characters after decoding the input bytes at worst the terminal font does not have some of the characters and will print some kind of blank instead ppIf your input characters cannot be encoded with the terminal encoding then it means that the terminal is not configured for displaying these characters Python will complain in Python with codeUnicodeEncodeError code since the character string cannot be encoded in way that suits your terminal The only possible solution is to use terminal that can display the characters either by configuring the terminal so that it accepts an encoding that can represent your characters or by using different terminal program This is important when you distribute programs that can be used in different environments messages that you print should be representable in the user terminal Sometimes it is thus best to stick to strings that only contain ASCII characters ppHowever when you strongredirect or pipe the output strong of your program then it is generally not possible to know what the input encoding of the receiving program is and the above code returns some default encoding None Python or UTF Python ppre code python2 import sys print sys stdout encoding catNone python3 import sys print sys stdout encoding catUTF code prepThe encoding of stdin stdout and stderr can however be href https docs python org using cmdline html envvar PYTHONIOENCODING rel noreferrer set through the codePYTHONIOENCODING code environment variable if needed ppre code PYTHONIOENCODING UTF python2 import sys print sys stdout encoding catUTF code prehrpIf the printing to terminal does not produce what you expect you can check the UTF encoding that you put manually in is correct for instance your first character code u001A code is not printable href http www tamasoft co jp en general info unicode html rel noreferrer if not mistaken ppAt href http wiki python org moin PrintFails rel noreferrer http wiki python org moin PrintFails you can find solution like the following for Python ppre codeimport codecsimport localeimport sys Wrap sys stdout into StreamWriter to allow writing unicode sys stdout codecs getwriter locale getpreferredencoding sys stdout uni u001A u0BC3 u1451 U0001D10C print uni code prepFor Python you can check href https stackoverflow com questions 4374455 how to set sys stdout encoding in python one of the questions asked previously on StackOverflow Except for the surrogateescape option this is precisely illustrated at the end of the second part right href http docs python org library functions html type rel noreferrer codetype code is the function that creates classes and in particular sub classes ppre codedef set self value self valueSubClass type SubClass BaseClass set set More methods can be put in SubClass including init obj SubClass obj set 42 print obj Prints 42print isinstance obj BaseClass True code pre This is normal since SubClass is sub class of BaseClass in the question and BaseClass takes parameter classtype which is foo in your example pDictionary views are essentially what their name says strongviews are simply like window strong on the keys and values or items of dictionary Here is an excerpt from the href http docs python org py3k library stdtypes html dictionary view objects rel noreferrer official documentation for Python ppre code gt gt gt dishes eggs sausage bacon spam 500 gt gt gt keys dishes keys gt gt gt values dishes values gt gt gt view objects are dynamic and reflect dict changes gt gt gt del dishes eggs gt gt gt keys No eggs anymore dict keys sausage bacon spam gt gt gt values No eggs value anymore dict values 500 code prep The Python equivalent uses codedishes viewkeys code and codedishes viewvalues code ppThis example shows the strongdynamic character of views strong the keys view is emnot em copy of the keys at given point in time but rather simple window that shows you the keys if they are changed then what you see through the window does change as well This feature can be useful in some circumstances for instance one can work with view on the keys in multiple parts of program in,,, "tead of recalculating the current list of keys each time they are needed —note that if the dictionary keys are modified while iterating over the view how the iterator should behave is not well defined which can href http docs python org release library stdtypes html dict views rel noreferrer lead to errors ppOne advantage is that emlooking em at say the keys uses only stronga small and fixed amount of memory strong and requires stronga small and fixed amount of processor time strong as there is no creation of list of keys Python on the other hand often unnecessarily creates new list as quoted by Rajendran which takes memory and time in an amount proportional to the length of the list To continue the window analogy if you want to see landscape behind wall you simply make an opening in it you build window copying the keys into list would correspond to instead painting copy of the landscape on your wall—the copy takes time space and does not update itself ppTo summarize views are simply… views windows on your dictionary which show the contents of the dictionary even after it changes They offer features that differ from those of lists list of keys contain emcopy em of the dictionary keys at given point in time while view is dynamic and is much faster to obtain as it does not have to copy any data keys or values in order to be created That good question There is clear use case iterating over the values of dictionary in fact it is more efficiently done when the values are not copied This is what every single dict values provides in Python where it returns view Now as for the dynamic aspect of the view must say that indeed don recall the need for it be curious to see use case Maybe that cheap side effect that was deemed potentially useful pDictionary views are essentially what their name says strongviews are simply like window strong on the keys and values or items of dictionary Here is an excerpt from the href http docs python org py3k library stdtypes html dictionary view objects rel noreferrer official documentation for Python ppre code gt gt gt dishes eggs sausage bacon spam 500 gt gt gt keys dishes keys gt gt gt values dishes values gt gt gt view objects are dynamic and reflect dict changes gt gt gt del dishes eggs gt gt gt keys No eggs anymore dict keys sausage bacon spam gt gt gt values No eggs value anymore dict values 500 code prep The Python equivalent uses codedishes viewkeys code and codedishes viewvalues code ppThis example shows the strongdynamic character of views strong the keys view is emnot em copy of the keys at given point in time but rather simple window that shows you the keys if they are changed then what you see through the window does change as well This feature can be useful in some circumstances for instance one can work with view on the keys in multiple parts of program instead of recalculating the current list of keys each time they are needed —note that if the dictionary keys are modified while iterating over the view how the iterator should behave is not well defined which can href http docs python org release library stdtypes html dict views rel noreferrer lead to errors ppOne advantage is that emlooking em at say the keys uses only stronga small and fixed amount of memory strong and requires stronga small and fixed amount of processor time strong as there is no creation of list of keys Python on the other hand often unnecessarily creates new list as quoted by Rajendran which takes memory and time in an amount proportional to the length of the list To continue the window analogy if you want to see landscape behind wall you simply make an opening in it you build window copying the keys into list would correspond to instead painting copy of the landscape on your wall—the copy takes time space and does not update itself ppTo summarize views are simply… views windows on your dictionary which show the contents of the dictionary even after it changes They offer features that differ from those of lists list of keys contain emcopy em of the dictionary keys at given point in time while view is dynamic and is much faster to obtain as it does not have to copy any data keys or values in order to be created Thanks Iterating over view and modifying its dictionary keys during the iteration cannot be well defined operation try to define what keys the iteration should return so using the automatic update of views in this circumstances is not something anybody should want to do Now to elaborate on the usage was delineating you can imagine dictionary with keys as student IDs you could store the set of IDs as view on this dictionary Thus the current list of IDs after any dictionary update can be printed at any time by iterating over this view Does this make more sense""",great question nice answer nice answer nice answer enlighten popular question nice question famous question nice question nice answer popular question nice question notable question notable question guru nice answer nice question popular question popular question good answer nice answer enlighten peer pressure guru nice answer enlighten popular question guru nice answer enlighten famous question revival nice answer famous question announcer nice answer guru nice question popular question notable question good answer notable question nice answer guru good question guru nice answer enlighten necromancer famous question nice answer caucus nice answer popular question constituent great answer yearle populist famous question nice answer good answer nice answer good question good question famous question famous question nice answer notable question great answer necromancer good answer notable question nice answer good answer nice answer nice answer great answer good answer favorite question favorite question popular question guru guru nice answer great answer popular question notable question popular question caucus constituent great answer nice answer copy editor nice answer good answer nice answer enlighten announcer nice answer notable question yearle necromancer favorite question nice answer announcer popular question custodian necromancer necromancer good answer caucus popular question constituent great question nice answer necromancer good question great answer good answer good answer nice question custodian nice question nice question popular question good answer notable question popular question great question good question good answer good answer nice answer revival guru pthe key reliably script git plumbing command ppthe developer care change plumbing command make provide stable interface combination repository state stdin command line option argument produce output version git command option exist output variation plumbing command introduce option introduce problem program write old version option exist time script write ppunfortunately everyday git command porcelain command git user familiar plumbing command distinction porcelain plumbing command main href http schacon github git git html noreferrer git manpage subsection title href http schacon github git git html high level command porcelain noreferrer high level command porcelain href http schacon github git git html low level command plumbing noreferrer low level command plumbing phrpto uncomitted href http schacon github git git diff index html noreferrer codegit diff index code compare index track bit work tree treeish codehead code href http schacon github git git diff file html noreferrer codegit diff file code compare work tree index possibly href http schacon github git git ls file html noreferrer codegit ls file code list file list untracked unignore file note command codehead code codehead code command href https stackoverflow fail file name codehead code ppto check repository stage commit codegit diff index quiet cache head code preulliif exit code difference code mean difference li ulpto check work tree stage codegit diff file quiet code preullithe exit code codegit diff index code code difference code difference li ulpto check combination index track file work tree respect codehead code codegit diff index quiet head code combination previous prime difference report difference stage change undo work tree content codehead code situation separate command return report difference present li ulpyou mention untracked file untracked unignore plain untracked include file codegit ls file code tool job ppfor untracked include file present codegit ls file code prepfor untracked unignore codegit ls file exclude standard code prepmy think check command output codet git ls file code preulliif exit code untracked file exit code untracked file li ulpthere small chance translate abnormal exit codegit ls file code untracked file report result exit command bit robust version codeu git ls file amp amp test code preullithe idea previous command unexpected error codegit ls file code propagate case exit untracked file error occur error result combine untracked file result codet code exit code mean untracked file mean error untracked file li ulpanother idea code error unmatch code exit untracked file run risk conflating untracked file exit code error occur exit code check code code exit code fairly robust codegit ls file error unmatch dev null amp test echo untracked fileselif test echo untracked fileselse echo error ls filesfi code prepany codegit ls file code example code exclude standard code untracked unignore file local mean file current directory main git repository porcelain solution list untracked file git repository git file subdirectory pthe key reliably script git plumbing command ppthe developer care change plumbing command make provide stable interface combination repository state stdin command line option argument produce output version git command option exist output variation plumbing command introduce option introduce problem program write old version option exist time script write ppunfortunately everyday git command porcelain command git user familiar plumbing command distinction porcelain plumbing command main href http schacon github git git html noreferrer git manpage subsection title href http schacon github git git html high level command porcelain noreferrer high level command porcelain href http schacon github git git html low level command plumbing noreferrer low level command plumbing phrpto uncomitted href http schacon github git git diff index html noreferrer codegit diff index code compare index track bit work tree treeish codehead code href http schacon github git git diff file html noreferrer codegit diff file code compare work tree index possibly href http schacon github git git ls file html noreferrer codegit ls file code list file list untracked unignore file note command codehead code codehead code command href https stackoverflow fail file name codehead code ppto check repository stage commit codegit diff index quiet cache head code preulliif exit code difference code mean difference li ulpto check work tree stage codegit diff file quiet code preullithe exit code codegit diff index code code difference code difference li ulpto check combination index track file work tree respect codehead code codegit diff index quiet head code combination previous prime difference report difference stage change undo work tree content codehead code situation separate command return report difference present li ulpyou mention untracked file untracked unignore plain untracked include file codegit ls file code tool job ppfor untracked include file present codegit ls file code prepfor untracked unignore codegit ls file exclude standard code prepmy think check command output codet git ls file code preulliif exit code untracked file exit code untracked file li ulpthere small chance translate abnormal exit codegit ls file code untracked file report result exit command bit robust version codeu git ls file amp amp test code preullithe idea previous command unexpected error codegit ls file code propagate case exit untracked file error occur error result combine untracked file result codet code exit code mean untracked file mean error untracked file li ulpanother idea code error unmatch code exit untracked file run risk conflating untracked file exit code error occur exit code check code code exit code fairly robust codegit ls file error unmatch dev null amp test echo untracked fileselif test echo untracked fileselse echo error ls filesfi code prepany codegit ls file code example code exclude standard code untracked unignore file explicit comment edit anymore minute comment prefer change position list comment edit phere simple method hack code function delete codesys code codeimport sys sys exist reload sys reload trick sys code prep strongthis safe thing strong hack codesys code purposely remove codesys code python start reenable change default encode href https anonbadger wordpress sys break code noreferrer break code rely ascii default code party generally make fix impossible dangerous print work set default encode ascii smell magic case solution hack break pso answer solution efficiently emtitle -PRON- question literally ask splitting multiple answer remove word answer question title rely python standard efficient codere code module code import splitting lt space filter split hey hey code prepwhere pullithe code code match emone -PRON- separator list lilithe code code regular expression prevent special interpretation code code character range indicator codea code lilithe code code skip emor -PRON- delimiter omit codefilter code unnecessarily produce string match separator lili codefilter code remove string possibly create lead trail separator string false boolean li ulpthis codere split code precisely split multiple separator ask question title ppthis solution suffer problem ascii character word comment href https stackoverflow answer ppthe codere code module efficient python loop test hand python filter construct iterator list reproduce python behavior wrap expression list phow short manual calculation codedef weight avg std value weight return weight average standard deviation value weight numpy ndarray shape average numpy average value weight weight fast numerically precise variance numpy average value average weight weight return average math sqrt variance code np sqrt work variance simple numpy float numpy array math sqrt explicit general faster matter pthe key encode problem understand principle strongtwo distinct concept string strong string emcharacter -PRON- string array embyte -PRON- distinction long time historic ubiquity encoding character ascii latin window mac roman encoding map set common character number byte limit exchange file advent web situation incompatible encoding tolerable program ignore fact multiple encoding long produce text remain operate program simply treat text byte encode operate correct modern view properly separate string concept base point polli strong emunrelate computer -PRON- draw chalk board instance character machine include draw instruction space carriage return instruction set write direction arabic accent href http wikipedia org wiki list unicode character noreferrer large character list include href http wikipedia org wiki unicode noreferrer unicode standard cover character lili hand computer represent abstract character strongarray byte strong number include memory byte chunk process convert character byte call emencode -PRON- emrequire -PRON- encode order represent character text present encode display terminal expect character encode specific save file order display properly understand python interpreter stream byte emdecode -PRON- character href http wikipedia org wiki unicode mapping encoding noreferrer encoding utf utf define unicode list character unicode define list character encoding place see expression unicode encode refer ubiquitous utf incorrect terminology unicode emmultiple -PRON- encoding li olpin summary strongcomputer internally represent character byte strong operation pblockquote strongencode strong character byte strongdecode strong byte character blockquotepsome encoding encode character ascii unicode encoding encode unicode character emthe encode necessarily unique -PRON- character represent directly emcombination -PRON- base character accent ppnote concept strongnewline strong href https wikipedia org wiki newline noreferrer add layer complication represent control character depend operate reason python href https docs python org library function html open noreferrer universal newline file read mode ppnow call character unicode call stronguser perceive character strong single user perceive character represent unicode combine character part base character accent href http wikipedia org wiki list unicode character noreferrer index unicode list call strong href http unicode org glossary noreferrer code point strong code point combine form grapheme cluster unicode lead concept string sequence unicode code point sit byte character string close strongunicode string strong python ppwhile python emprint -PRON- string user perceive character strongpython byte string essentially sequence unicode code point strong user perceive character code point value python code code code code unicode string syntax confuse encode character bear relationship unicode code point encode way ppthis important consequence strongthe length python unicode string number code point emnot -PRON- number user perceive character strong code print len len code python len code code code single user perceive korean character represent code codeprint code show practical circumstance length string number user perceive character character typically store python single unicode code point ppin strongpython strong unicode string unicode string codeunicode code type literal form codeu code byte arrays string codestr code type array byte instance construct string literal code code strongpython strong unicode string simply call string codestr code type literal form code code byte arrays byte codebyte code type literal form codeb code ppwith key point understand encode relate question phrpnormally strongprint strong codeu code strongto terminal strong garbage python encode terminal fact check encode terminal expect code pythonpython default nov gcc compatible apple llvm clang darwintype copyright credit license information import sys print sys stdout encodingutf code prepif input character encode terminal encode python send byte terminal complain terminal display character decode input byte bad terminal font character print kind blank ppif input character encode terminal encode mean terminal configure display character python complain python code character string encode suit terminal solution terminal display character configure terminal accept encode represent character terminal program important distribute program environment message print representable user terminal stick string ascii character pphowever strongredirect pipe output strong program generally input encode receive program code return default encode python utf python code import sys print sys stdout encode catnone import sys print sys stdout encode catutf code prepthe encode stdin stdout stderr href https docs python org cmdline html envvar noreferrer set code environment variable need code utf import sys print sys stdout encode catutf code prehrpif printing terminal produce expect check utf encode manually correct instance character code code printable href http tamasoft jp general info unicode html noreferrer mistake ppat href http wiki python org moin printfail noreferrer http wiki python org moin printfail solution python codeimport codecsimport localeimport sys wrap sys stdout write unicode sys stdout codecs getwriter locale sys stdout uni print uni code prepfor python check href https stackoverflow question set sys stdout encode python question ask previously stackoverflow sebastian good point include distinction user perceive character unicode codepoint pthe key encode problem understand principle strongtwo distinct concept string strong string emcharacter -PRON- string array embyte -PRON- distinction long time historic ubiquity encoding character ascii latin window mac roman encoding map set common character number byte limit exchange file advent web situation incompatible encoding tolerable program ignore fact multiple encoding long produce text remain operate program simply treat text byte encode operate correct modern view properly separate string concept base point polli strong emunrelate computer -PRON- draw chalk board instance character machine include draw instruction space carriage return instruction set write direction arabic accent href http wikipedia org wiki list unicode character noreferrer large character list include href http wikipedia org wiki unicode noreferrer unicode standard cover character lili hand computer represent abstract character strongarray byte strong number include memory byte chunk process convert character byte call emencode -PRON- emrequire -PRON- encode order represent character text present encode display terminal expect character encode specific save file order display properly understand python interpreter stream byte emdecode -PRON- character href http wikipedia org wiki unicode mapping encoding noreferrer encoding utf utf define unicode list character unicode define list character encoding place see expression unicode encode refer ubiquitous utf incorrect terminology unicode emmultiple -PRON- encoding li olpin summary strongcomputer internally represent character byte strong operation pblockquote strongencode strong character byte strongdecode strong byte character blockquotepsome encoding encode character ascii unicode encoding encode unicode character emthe encode necessarily unique -PRON- character represent directly emcombination -PRON- base character accent ppnote concept strongnewline strong href https wikipedia org wiki newline noreferrer add layer complication represent control character depend operate reason python href https docs python org library function html open noreferrer universal newline file read mode ppnow call character unicode call stronguser perceive character strong single user perceive character represent unicode combine character part base character accent href http wikipedia org wiki list unicode character noreferrer index unicode list call strong href http unicode org glossary noreferrer code point strong code point combine form grapheme cluster unicode lead concept string sequence unicode code point sit byte character string close strongunicode string strong python ppwhile python emprint -PRON- string user perceive character strongpython byte string essentially sequence unicode code point strong user perceive character code point value python code code code code unicode string syntax confuse encode character bear relationship unicode code point encode way ppthis important consequence strongthe length python unicode string number code point emnot -PRON- number user perceive character strong code print len len code python len code code code single user perceive korean character represent code codeprint code show practical circumstance length string number user perceive character character typically store python single unicode code point ppin strongpython strong unicode string unicode string codeunicode code type literal form codeu code byte arrays string codestr code type array byte instance construct string literal code code strongpython strong unicode string simply call string codestr code type literal form code code byte arrays byte codebyte code type literal form codeb code ppwith key point understand encode relate question phrpnormally strongprint strong codeu code strongto terminal strong garbage python encode terminal fact check encode terminal expect code pythonpython default nov gcc compatible apple llvm clang darwintype copyright credit license information import sys print sys stdout encodingutf code prepif input character encode terminal encode python send byte terminal complain terminal display character decode input byte bad terminal font character print kind blank ppif input character encode terminal encode mean terminal configure display character python complain python code character string encode suit terminal solution terminal display character configure terminal accept encode represent character terminal program important distribute program environment message print representable user terminal stick string ascii character pphowever strongredirect pipe output strong program generally input encode receive program code return default encode python utf python code import sys print sys stdout encode catnone import sys print sys stdout encode catutf code prepthe encode stdin stdout stderr href https docs python org cmdline html envvar noreferrer set code environment variable need code utf import sys print sys stdout encode catutf code prehrpif printing terminal produce expect check utf encode manually correct instance character code code printable href http tamasoft jp general info unicode html noreferrer mistake ppat href http wiki python org moin printfail noreferrer http wiki python org moin printfail solution python codeimport codecsimport localeimport sys wrap sys stdout write unicode sys stdout codecs getwriter locale sys stdout uni print uni code prepfor python check href https stackoverflow question set sys stdout encode python question ask previously stackoverflow surrogateescape option precisely illustrate end href http docs python org library function html type noreferrer codetype code function create class class codedef set valuesubclass type subclass baseclass set set method subclass include init subclass set print print isinstance baseclass true code normal subclass class baseclass question baseclass take parameter classtype foo pdictionary view essentially strongview simply window strong key value item dictionary excerpt href http docs python org library stdtype html dictionary view object noreferrer official documentation python code dish egg sausage bacon spam key dish key value dish value view object dynamic reflect dict dish egg key egg anymore dict key sausage bacon spam value egg anymore dict value code prep python equivalent codedishe viewkey code codedishe viewvalue code ppthis show strongdynamic character view strong key view emnot -PRON- copy key point time simple window show key change window change feature circumstance instance work view key multiple part program recalculate current list key time need dictionary key modify iterate view iterator behave define href http docs python org release library stdtype html dict view noreferrer lead error ppone advantage emlooke -PRON- key stronga small fix memory strong require stronga small fix processor time strong creation list key python hand unnecessarily create list quote rajendran take memory time proportional length list continue window analogy landscape wall simply make opening build window copying key list correspond painting copy landscape copy take time space update ppto summarize view view window dictionary content dictionary offer feature differ list list key emcopy -PRON- dictionary key point time view dynamic faster obtain copy datum key value order create good question clear case iterate value dictionary fact efficiently value copy single dict value python return view dynamic aspect view recall curious case cheap effect deem potentially pdictionary view essentially strongview simply window strong key value item dictionary excerpt href http docs python org library stdtype html dictionary view object noreferrer official documentation python code dish egg sausage bacon spam key dish key value dish value view object dynamic reflect dict dish egg key egg anymore dict key sausage bacon spam value egg anymore dict value code prep python equivalent codedishe viewkey code codedishe viewvalue code ppthis show strongdynamic character view strong key view emnot -PRON- copy key point time simple window show key change window change feature circumstance instance work view key multiple part program recalculate current list key time need dictionary key modify iterate view iterator behave define href http docs python org release library stdtype html dict view noreferrer lead error ppone advantage emlooke -PRON- key stronga small fix memory strong require stronga small fix processor time strong creation list key python hand unnecessarily create list quote rajendran take memory time proportional length list continue window analogy landscape wall simply make opening build window copying key list correspond painting copy landscape copy take time space update ppto summarize view view window dictionary content dictionary offer feature differ list list key emcopy -PRON- dictionary key point time view dynamic faster obtain copy datum key value order create iterate view modify dictionary key iteration define operation define key iteration return automatic update view circumstance elaborate usage delineate imagine dictionary key student id store set id view dictionary current list id dictionary update print time iterate view make sense,0,NULL,NULL,,,, 24583,285478,144082,NULL,NULL,NULL,0,NULL,NULL 24584,112767,267302,NULL,NULL,NULL,0,NULL,NULL 24585,162034,1512520,NULL,NULL,NULL,0,NULL,NULL 24586,8621,514232,Nice Answer Enlightened Good Answer Notable Question Nice Question Popular Question Yearling Nice Question Popular Question Yearling Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 24587,1912223,1382259,Autobiographer,NULL,NULL,0,NULL,NULL 24588,165245,296010,NULL,NULL,NULL,0,NULL,NULL 24589,259217,43215,Excavator Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 24590,255352,1515487,Supporter Editor,NULL,NULL,0,NULL,NULL 24591,107622,576160,NULL,NULL,NULL,0,NULL,NULL 24592,269151,826542,Notable Question Tumbleweed Critic,NULL,NULL,0,NULL,NULL 24593,806686,587959,Yearling Civic Duty Popular Question Famous Question Necromancer Good Question Nice Question Yearling Good Question Popular Question Caucus Notable Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24594,91187,1110421,NULL,NULL,NULL,0,NULL,NULL 24595,884368,396163,Editor Excavator Informed,NULL,NULL,0,NULL,NULL 24596,1506665,822729,NULL,NULL,NULL,0,NULL,NULL 24597,180091,1538571,NULL,NULL,NULL,0,NULL,NULL 24598,165025,1261553,NULL,NULL,NULL,0,NULL,NULL 24599,7474579,165082,Popular Question Yearling Popular Question Necromancer Popular Question Nice Answer Notable Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24600,302503,165082,Popular Question Yearling Popular Question Necromancer Popular Question Nice Answer Notable Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24601,7573985,490514,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 24602,841057,490514,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 24603,234934,1062662,NULL,NULL,NULL,0,NULL,NULL 24604,168153,337239,NULL,NULL,NULL,0,NULL,NULL 24605,217626,570738,Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 24606,439601,1359346,NULL,NULL,NULL,0,NULL,NULL 24607,21244,1002047,Citizen Patrol Nice Answer Yearling Announcer Custodian Popular Question,NULL,NULL,0,NULL,NULL 24608,486691,1301476,NULL,NULL,NULL,0,NULL,NULL 24609,232184,347953,NULL,NULL,NULL,0,NULL,NULL 24610,3470885,158002,Notable Question Famous Question Popular Question Notable Question Yearling Nice Question Notable Question Famous Question Notable Question Notable Question Famous Question Yearling Nice Question Popular Question Good Question Notable Question Notable Question Nice Answer Notable Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24611,323312,117674,Famous Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 24612,238625,463853,Good Question,NULL,NULL,0,NULL,NULL 24613,612899,142467,Popular Question,NULL,NULL,0,NULL,NULL 24614,280837,482755,NULL,NULL,NULL,0,NULL,NULL 24615,574222,321648,NULL,NULL,NULL,0,NULL,NULL 24616,71332,799116,Yearling Yearling,NULL,NULL,0,NULL,NULL 24617,897708,618264,Informed,NULL,NULL,0,NULL,NULL 24618,2845882,618264,Informed,NULL,NULL,0,NULL,NULL 24619,92223,1153230,NULL,NULL,NULL,0,NULL,NULL 24620,318705,297052,NULL,NULL,NULL,0,NULL,NULL 24621,338136,5277,NULL,NULL,NULL,0,NULL,NULL 24622,381089,448693,NULL,NULL,NULL,0,NULL,NULL 24623,901578,5798,Famous Question Notable Question Nice Question Good Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 24624,1512714,1139784,android Yearling Announcer Guru Enlightened Custodian Good Answer Necromancer Good Answer Enlightened Nice Answer Yearling Necromancer Necromancer Nice Answer Guru Revival Yearling Announcer Revival Nice Answer Guru,NULL,NULL,0,NULL,NULL 24625,91119,151385,Yearling Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24626,1771778,151385,Yearling Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24627,1033698,447502,Announcer Nice Question Caucus Curious,NULL,NULL,0,NULL,NULL 24628,1194704,1260675,NULL,NULL,NULL,0,NULL,NULL 24629,18343,1320291,Teacher,NULL,NULL,0,NULL,NULL 24630,193375,44512,Famous Question Nice Question Popular Question Yearling Necromancer Popular Question Notable Question Popular Question Nice Answer Yearling Benefactor Famous Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24631,889537,893469,NULL,NULL,NULL,0,NULL,NULL 24632,1520859,1503358,NULL,NULL,NULL,0,NULL,NULL 24633,11957,312322,NULL,NULL,NULL,0,NULL,NULL 24634,249247,1371302,NULL,NULL,NULL,0,NULL,NULL 24635,117614,195873,Nice Answer boost Yearling Yearling Nice Question Nice Question Revival Nice Answer Enlightened Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24636,45722,983071,NULL,NULL,NULL,0,NULL,NULL 24637,462174,983071,NULL,NULL,NULL,0,NULL,NULL 24638,40059,55890,Popular Question Nice Question Announcer Popular Question Notable Question Census Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24639,27273,1174344,NULL,NULL,NULL,0,NULL,NULL 24640,112971,229675,Yearling,NULL,NULL,0,NULL,NULL 24641,145822,1151995,Notable Question Popular Question Curious,NULL,NULL,0,NULL,NULL 24642,286560,580587,Yearling Good Answer Good Answer codeigniter Guru Announcer Good Answer Yearling Guru Nice Answer Explainer Announcer Nice Answer Enlightened Yearling Custodian php laravel Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 24643,36277,492288,NULL,NULL,NULL,0,NULL,NULL 24644,1020318,1074208,Editor Excavator Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 24645,188365,326224,Self-Learner Yearling Popular Question Notable Question Civic Duty Announcer Yearling Announcer Famous Question Census Caucus Yearling Notable Question Good Answer Good Question Popular Question,NULL,NULL,0,NULL,NULL 24646,13358,1133693,NULL,NULL,NULL,0,NULL,NULL 24647,14972,218993,Popular Question Popular Question Yearling Popular Question Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 24648,172032,575963,Yearling Civic Duty Nice Answer Critic Good Question,NULL,NULL,0,NULL,NULL 24649,47426,1144068,NULL,NULL,NULL,0,NULL,NULL 24650,165000,1188921,Scholar Student,NULL,NULL,0,NULL,NULL 24651,119600,4169,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24652,98680,1086192,NULL,NULL,NULL,0,NULL,NULL 24653,450058,18392,NULL,NULL,NULL,0,NULL,NULL 24654,37443,184472,Announcer Yearling Mortarboard Nice Answer Yearling Custodian Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24655,9224,97437,Necromancer Popular Question Revival,NULL,NULL,0,NULL,NULL 24656,93259,40749,Yearling Yearling Enthusiast Citizen Patrol Student Yearling,NULL,NULL,0,NULL,NULL 24657,604706,319860,NULL,NULL,NULL,0,NULL,NULL 24658,176932,319860,NULL,NULL,NULL,0,NULL,NULL 24659,176969,319860,NULL,NULL,NULL,0,NULL,NULL 24660,764801,884734,Yearling Excavator Explainer Necromancer Good Question Yearling Revival Popular Question Nice Answer Necromancer Popular Question Announcer Yearling Revival Nice Answer Curious Popular Question Tumbleweed Census Nice Answer Custodian Necromancer Yearling Announcer Revival Custodian Notable Question,NULL,NULL,0,NULL,NULL 24661,417424,91393,Curious,NULL,NULL,0,NULL,NULL 24662,605658,602312,Yearling Necromancer Necromancer Necromancer Nice Answer Yearling Nice Answer Popular Question Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 24663,12847,707891,Famous Question,NULL,NULL,0,NULL,NULL 24664,801485,147109,NULL,NULL,NULL,0,NULL,NULL 24665,219127,590775,Yearling Good Answer,NULL,NULL,0,NULL,NULL 24666,65541,1107197,NULL,NULL,NULL,0,NULL,NULL 24667,8741,442492,Tumbleweed Self-Learner Nice Answer Yearling Nice Answer Popular Question Nice Answer Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 24668,848170,5434,Yearling Scholar Necromancer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24669,52399,227644,Nice Question Yearling Notable Question Nice Question Popular Question Famous Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 24670,146888,876879,Popular Question,NULL,NULL,0,NULL,NULL 24671,216278,1439585,NULL,NULL,NULL,0,NULL,NULL 24672,8231,108625,NULL,NULL,NULL,0,NULL,NULL 24673,96583,672269,NULL,NULL,NULL,0,NULL,NULL 24674,72568,161552,Popular Question,NULL,NULL,0,NULL,NULL 24675,21760,120067,Popular Question Necromancer Necromancer Yearling Notable Question Nice Question Yearling Self-Learner Nice Question Yearling Nice Answer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 24676,349303,51695,Yearling Popular Question Nice Question Popular Question Good Question Organizer Custodian Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Popular Question Nice Answer Enlightened Documentation User Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24677,475150,947281,NULL,NULL,NULL,0,NULL,NULL 24678,5434,1006442,NULL,NULL,NULL,0,NULL,NULL 24679,82296,717279,NULL,NULL,NULL,0,NULL,NULL 24680,623644,913138,NULL,NULL,NULL,0,NULL,NULL 24681,186398,516536,NULL,NULL,NULL,0,NULL,NULL 24682,464392,861747,Notable Question,NULL,NULL,0,NULL,NULL 24683,83753,135372,NULL,NULL,NULL,0,NULL,NULL 24684,106266,194290,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24685,2568299,194290,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24686,89139,830401,Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 24687,221943,1216428,Nice Answer,NULL,NULL,0,NULL,NULL 24688,10256,519390,NULL,NULL,NULL,0,NULL,NULL 24689,485843,222356,Good Question Necromancer Nice Answer Nice Question Good Question Nice Answer Popular Question Necromancer Famous Question Popular Question Nice Answer Famous Question Custodian Notable Question Nice Answer Good Question Announcer Notable Question Good Question Nice Question Good Question Popular Question Necromancer Nice Answer Popular Question Popular Question Famous Question Nice Answer Popular Question Necromancer Good Question Notable Question Yearling Popular Question Famous Question Nice Question Good Answer Nice Answer Nice Question Notable Question javascript Good Answer Popular Question Popular Question Necromancer Electorate Nice Question Popular Question Popular Question Necromancer Necromancer Necromancer Good Question Famous Question Necromancer Nice Answer Famous Question Revival Good Answer Necromancer Nice Question Revival Yearling Good Question Popular Question Nice Answer Nice Answer Famous Question Notable Question Notable Question Nice Question Announcer Necromancer Famous Question Nice Question Popular Question Good Question Necromancer Nice Answer Popular Question Notable Question Necromancer Popular Question Great Question Good Answer Popular Question Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 24690,752859,1043436,NULL,NULL,NULL,0,NULL,NULL 24691,93934,366755,Critic Informed,NULL,NULL,0,NULL,NULL 24692,6914,544248,Yearling,NULL,NULL,0,NULL,NULL 24693,238702,203686,Good Question Notable Question Popular Question Autobiographer Popular Question Yearling,NULL,NULL,0,NULL,NULL 24694,167729,1170197,NULL,NULL,NULL,0,NULL,NULL 24695,283023,82944,Favorite Question Popular Question Yearling Investor Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 24696,1143118,787902,Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 24697,911553,1308014,Announcer,NULL,NULL,0,NULL,NULL 24698,244462,370705,NULL,NULL,NULL,0,NULL,NULL 24699,1516309,982897,NULL,NULL,NULL,0,NULL,NULL 24700,1063192,381812,NULL,NULL,NULL,0,NULL,NULL 24701,20565,158658,Nice Answer Popular Question Nice Answer Nice Answer Good Answer Good Answer Guru Nice Answer Nice Answer Yearling Nice Answer Enlightened Popular Question Great Answer Nice Answer Nice Question Curious Notable Question Nice Answer Enlightened Guru Yearling Nice Answer Guru Good Answer Necromancer Necromancer Good Answer Great Answer Necromancer Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24702,63993,705146,Notable Question,NULL,NULL,0,NULL,NULL 24703,63657,181557,Popular Question Notable Question Nice Question Nice Question Notable Question Notable Question Good Question Yearling Nice Question Notable Question Favorite Question Popular Question Notable Question Popular Question Notable Question Taxonomist Notable Question Famous Question Popular Question Favorite Question Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 24704,565151,226498,NULL,NULL,NULL,0,NULL,NULL 24705,347920,833146,Excavator Nice Answer Nice Answer Guru Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer css3 Good Answer Good Answer Yearling Nice Answer Pundit Great Answer Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 24706,25455,70863,Nice Answer Enlightened Nice Answer Necromancer Civic Duty Good Question Yearling Famous Question Census,NULL,NULL,0,NULL,NULL 24707,16612,282720,Nice Answer Good Answer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 24708,259556,1265440,NULL,NULL,NULL,0,NULL,NULL 24709,180937,102022,Yearling Famous Question Custodian Custodian Custodian Custodian Informed Citizen Patrol Caucus Constituent Explainer Good Question Yearling Guru Announcer Yearling,NULL,NULL,0,NULL,NULL 24710,199606,962880,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 24711,1160235,654143,NULL,NULL,NULL,0,NULL,NULL 24712,146387,154703,Famous Question Nice Question Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 24713,68547,271121,NULL,NULL,NULL,0,NULL,NULL 24714,722756,407071,Good Answer Documentation Pioneer Yearling Guru Caucus Guru Good Answer Curious Caucus Yearling Documentation User Nice Answer Popular Question Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 24715,6868,263195,Yearling Custodian Custodian Custodian Guru Proofreader Yearling Great Answer Documentation User Yearling Custodian,NULL,NULL,0,NULL,NULL 24716,72693,435679,NULL,NULL,NULL,0,NULL,NULL 24717,223333,268977,Yearling,NULL,pIt an ancient question now but unfortunately perennial ppI thought this code may be of use to others looking for solutions It designed to be run from the command line via cscript so no need to import code into your Access project Similar to and inspired by the code from href https stackoverflow com users 28828 oliver Oliver in href https stackoverflow com questions 187506 how do you use version control with access development How do you use version control with Access development ppre class lang vba prettyprint override code Usage CScript Nologo ddl vbs lt input mdb file gt gt lt output gt Outputs DDL statements for tables indexes and relations from Access file mdb accdb lt input file gt to stdout Requires Microsoft Access NOTE Adapted from code from polite person Kevin Chambers see http www mombu com microsoft comp databases ms access exporting jet table metadata as text 119667 html Option ExplicitDim stdout fsoDim strFileDim appAccess db tbl idx relSet stdout WScript StdOutSet fso CreateObject Scripting FileSystemObject Parse argsIf WScript Arguments Count then MsgBox Usage cscript Nologo ddl vbs access file vbExclamation Error Wscript Quit End ifstrFile fso GetAbsolutePathName WScript Arguments Open mdb fileSet appAccess CreateObject Access Application appAccess OpenCurrentDatabase strFileSet db appAccess DBEngine Iterate over tables create table statementsFor Each tbl In db TableDefs If Not isSystemTable tbl And Not isHiddenTable tbl Then stdout WriteLine getTableDDL tbl stdout WriteBlankLines Iterate over indexes create index statements For Each idx In tbl Indexes stdout WriteLine getIndexDDL tbl idx Next stdout WriteBlankLines End IfNext Iterate over relations alter table add constraint statementsFor Each rel In db Relations Set tbl db TableDefs rel Table If Not isSystemTable tbl And Not isHiddenTable tbl Then stdout WriteLine getRelationDDL rel stdout WriteBlankLines End IfNextFunction getTableDDL tdef Const dbBoolean 1Const dbByte 2Const dbCurrency 5Const dbDate 8Const dbDouble 7Const dbInteger 3Const dbLong 4Const dbDecimal 20Const dbFloat 17Const dbMemo 12Const dbSingle 6Const dbText 10Const dbGUID 15Const dbAutoIncrField 16Dim fldDim sqlDim ln sql CREATE TABLE amp QuoteObjectName tdef name amp ln vbCrLf For Each fld In tdef fields sql sql amp ln amp amp QuoteObjectName fld name amp Select Case fld Type Case dbBoolean Boolean BIT Case dbByte Byte BYTE Case dbCurrency Currency MONEY Case dbDate Date Time DATETIME Case dbDouble Double DOUBLE Case dbInteger Integer INTEGER Case dbLong Long test if counter doesn detect random property if set If fld Attributes And dbAutoIncrField Then COUNTER Else LONG End If Case dbDecimal Decimal DECIMAL Case dbFloat Float FLOAT Case dbMemo Memo MEMO Case dbSingle Single SINGLE Case dbText Text VARCHAR amp fld Size amp Case dbGUID Text GUID Case Else gt gt gt raise error MsgBox Field amp tdef name amp amp fld name amp of type amp fld Type amp has been ignored End Select sql sql amp If fld Required Then sql sql amp NOT NULL If Len fld DefaultValue gt Then sql sql amp DEFAULT amp fld DefaultValue ln amp vbCrLf Next sql sql amp vbCrLf amp getTableDDL sqlEnd FunctionFunction getIndexDDL tdef idx Dim sql ln myfld If Left idx name Then ignore GUID type indexes bugger them ElseIf idx Foreign Then this index was created by relation recreating the relation will create this for us so no need to do it here Else ln sql CREATE If idx Unique Then sql sql amp UNIQUE End If sql sql amp INDEX amp QuoteObjectName idx name amp ON amp QuoteObjectName tdef name amp For Each myfld In idx fields sql sql amp ln amp QuoteObjectName myfld name ln Next sql sql amp If idx Primary Then sql sql amp WITH PRIMARY ElseIf idx IgnoreNulls Then sql sql amp WITH IGNORE NULL ElseIf idx Required Then sql sql amp WITH DISALLOW NULL End If sql sql amp End If getIndexDDL sqlEnd Function Returns the SQL DDL to add relation between two tables Oddly DAO will not accept the ON DELETE or ON UPDATE clauses so the resulting sql must be executed through ADOFunction getRelationDDL myrel Const dbRelationUpdateCascade 256Const dbRelationDeleteCascade 4096Dim mytdefDim myfldDim sql ln With myrel sql ALTER TABLE amp QuoteObjectName ForeignTable amp ADD CONSTRAINT amp QuoteObjectName name amp FOREIGN KEY ln For Each myfld In fields ie fields of the relation sql sql amp ln amp QuoteObjectName myfld ForeignName ln Next sql sql amp amp REFERENCES amp QuoteObjectName table amp ln For Each myfld In fields sql sql amp ln amp QuoteObjectName myfld name ln Next sql sql amp If myrel Attributes And dbRelationUpdateCascade Then sql sql amp ON UPDATE CASCADE If myrel Attributes And dbRelationDeleteCascade Then sql sql amp ON DELETE CASCADE sql sql amp End With getRelationDDL sqlEnd FunctionFunction isSystemTable tbl Dim nAttribConst dbSystemObject 2147483646 isSystemTable False nAttrib tbl Attributes isSystemTable nAttrib lt gt And nAttrib And dbSystemObject lt gt End FunctionFunction isHiddenTable tbl Dim nAttribConst dbHiddenObject isHiddenTable False nAttrib tbl Attributes isHiddenTable nAttrib lt gt And nAttrib And dbHiddenObject lt gt End FunctionFunction QuoteObjectName str QuoteObjectName amp str amp End Function code prepIf you are looking to export query definitions as well href https stackoverflow com questions 1275502 using vba to export all ms access sql queries to text files this question should help It little different because you don usually create querydefs with plain DDL codeCREATE VIEW foo AS code syntax in fact not sure you can ppBut here little piece of script wrote for backing up queries to separate sql files which is part of larger script for backing up all front end db code see Oliver answer for href http stackoverflow com questions 187506 how do you use version control with access development this question ppre class lang vba prettyprint override codeDim oApplicationSet oApplication CreateObject Access Application oApplication OpenCurrentDatabase sMyAccessFilePathoApplication Visible FalseFor Each myObj In oApplication DBEngine QueryDefs writeToFile sExportpath amp queries amp myObj Name amp sql myObj SQL NextFunction writeToFile path text Dim fso st Set fso CreateObject Scripting FileSystemObject Set st fso CreateTextFile path True st Write text st CloseEnd Function code pre added,0,NULL,NULL 24718,1112292,198301,Nice Answer Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Guru Yearling Popular Question Popular Question Popular Question cocoa Notable Question Nice Answer Famous Question Famous Question Famous Question Yearling Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 24719,135268,210719,Good Answer Nice Answer Yearling Great Answer Guru Great Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24720,397201,1273951,NULL,NULL,NULL,0,NULL,NULL 24721,24364,567746,NULL,NULL,NULL,0,NULL,NULL 24722,105210,1013922,Notable Question,NULL,NULL,0,NULL,NULL 24723,60868,436328,NULL,NULL,NULL,0,NULL,NULL 24724,280372,445309,NULL,NULL,NULL,0,NULL,NULL 24725,2707120,1077679,NULL,NULL,NULL,0,NULL,NULL 24726,142938,1552338,NULL,NULL,NULL,0,NULL,NULL 24727,1358375,724355,Popular Question,NULL,NULL,0,NULL,NULL 24728,128419,388954,NULL,NULL,NULL,0,NULL,NULL 24729,22505,561624,Yearling Notable Question Notable Question Popular Question Popular Question Good Answer Yearling Popular Question Revival Notable Question Notable Question Great Question Announcer Notable Question Yearling Famous Question Popular Question Notable Question Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 24730,1101922,768134,Yearling Necromancer,NULL,NULL,0,NULL,NULL 24731,1025745,1432084,NULL,NULL,NULL,0,NULL,NULL 24732,4224167,1432084,NULL,NULL,NULL,0,NULL,NULL 24733,143390,488517,Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 24734,726857,596554,NULL,NULL,NULL,0,NULL,NULL 24735,1029545,666424,NULL,NULL,NULL,0,NULL,NULL 24736,210930,253287,Revival Tumbleweed Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 24737,810848,443927,Nice Question Nice Question Custodian Famous Question Nice Answer Notable Question Revival Yearling Popular Question Revival Notable Question Notable Question Notable Question Revival Popular Question Nice Question Notable Question Popular Question Yearling Popular Question Good Question Peer Pressure Popular Question Popular Question Notable Question Nice Question Nice Question Famous Question Popular Question Good Question Nice Question Popular Question Popular Question Notable Question Yearling Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 24738,1980,524568,NULL,NULL,NULL,0,NULL,NULL 24739,85489,721141,Nice Answer Enlightened Nice Answer Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 24740,20103,757527,Yearling,NULL,NULL,0,NULL,NULL 24741,19224,1307464,NULL,NULL,NULL,0,NULL,NULL 24742,89858,36081,Popular Question Yearling,NULL,NULL,0,NULL,NULL 24743,102944,619762,NULL,NULL,NULL,0,NULL,NULL 24744,762213,1457459,Yearling Commentator Good Answer,NULL,NULL,0,NULL,NULL 24745,281771,454231,NULL,NULL,NULL,0,NULL,NULL 24746,636620,1055783,NULL,NULL,NULL,0,NULL,NULL 24747,331024,1357615,NULL,NULL,NULL,0,NULL,NULL 24748,266430,243165,Yearling Announcer Civic Duty Popular Question Notable Question Famous Question Caucus Nice Question Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 24749,8460691,1541650,NULL,NULL,NULL,0,NULL,NULL 24750,134018,1366860,Yearling Yearling Yearling Editor Revival,NULL,NULL,0,NULL,NULL 24751,26224,1455120,Informed Autobiographer Teacher,NULL,NULL,0,NULL,NULL 24752,648825,856939,NULL,NULL,NULL,0,NULL,NULL 24753,395763,1075189,Yearling Popular Question Yearling Populist Great Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 24754,604,433282,Nice Answer Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 24755,168744,1243554,NULL,NULL,NULL,0,NULL,NULL 24756,86116,114386,Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Nice Answer Famous Question Nice Question Nice Question Popular Question Famous Question Good Question Popular Question Nice Question Yearling Nice Question Famous Question Notable Question Notable Question Good Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 24757,10713878,1115351,NULL,NULL,NULL,0,NULL,NULL 24758,498165,1115351,NULL,NULL,NULL,0,NULL,NULL 24759,981075,1434242,Notable Question,NULL,NULL,0,NULL,NULL 24760,157519,836891,Yearling,NULL,NULL,0,NULL,NULL 24761,55827,7717,Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24762,357071,828413,Necromancer Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 24763,907652,650109,Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Caucus Notable Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Yearling Good Question Notable Question jquery,NULL,NULL,0,NULL,NULL 24764,149361,688514,Notable Question Nice Answer Popular Question Excavator Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24765,481,265858,NULL,NULL,NULL,0,NULL,NULL 24766,434516,918752,NULL,NULL,NULL,0,NULL,NULL 24767,649832,164254,NULL,NULL,NULL,0,NULL,NULL 24768,433473,476305,Supporter Enthusiast,NULL,NULL,0,NULL,NULL 24769,1570903,314132,Curious,NULL,NULL,0,NULL,NULL 24770,506689,506145,Necromancer,NULL,NULL,0,NULL,NULL 24771,885869,624255,NULL,NULL,NULL,0,NULL,NULL 24772,261373,72448,Yearling Self-Learner Notable Question Notable Question Custodian Custodian Yearling Popular Question Nice Question Good Question Nice Answer Notable Question Yearling Great Question Good Answer,NULL,NULL,0,NULL,NULL 24773,22051,1332624,Teacher Tumbleweed,NULL,NULL,0,NULL,NULL 24774,9358293,655701,NULL,NULL,NULL,0,NULL,NULL 24775,6508926,655701,NULL,NULL,NULL,0,NULL,NULL 24776,10690,655701,NULL,NULL,NULL,0,NULL,NULL 24777,1521890,1241158,Popular Question Notable Question Curious Popular Question,NULL,NULL,0,NULL,NULL 24778,532246,286459,Yearling Good Answer Necromancer Curious Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24779,1327549,145069,Informed Autobiographer,NULL,NULL,0,NULL,NULL 24780,211262,686279,NULL,NULL,NULL,0,NULL,NULL 24781,71255,698960,NULL,NULL,NULL,0,NULL,NULL 24782,103230,149191,Necromancer,NULL,NULL,0,NULL,NULL 24783,97560,377956,Popular Question Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Investor Altruist Nice Question Nice Question Nice Question Famous Question Nice Question Famous Question Favorite Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 24784,918482,1101682,Documentation User,NULL,NULL,0,NULL,NULL 24785,433944,392870,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24786,20707,147921,Notable Question Yearling Great Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 24787,449740,1458499,Nice Answer Yearling Critic Good Answer,NULL,NULL,0,NULL,NULL 24788,429882,900103,NULL,NULL,NULL,0,NULL,NULL 24789,167426,390510,Yearling Notable Question Yearling Good Answer Nice Answer Enlightened Nice Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24790,307613,1229818,NULL,NULL,NULL,0,NULL,NULL 24791,3512,404536,Nice Question Revival Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 24792,119490,131120,Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Notable Question Notable Question Yearling Popular Question Great Question Favorite Question Notable Question Caucus Constituent Good Question Popular Question Popular Question Nice Question Announcer Notable Question Yearling Announcer Famous Question Announcer Famous Question Good Question Announcer Great Question Notable Question Favorite Question Famous Question Popular Question Caucus Constituent Popular Question Notable Question Popular Question Nice Question Announcer Yearling Famous Question Popular Question Nice Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 24793,734084,329385,NULL,NULL,NULL,0,NULL,NULL 24794,36375,3572,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 24795,721094,1259625,NULL,NULL,NULL,0,NULL,NULL 24796,377433,346719,NULL,NULL,NULL,0,NULL,NULL 24797,169808,202884,Popular Question Popular Question Census Tumbleweed Census,NULL,NULL,0,NULL,NULL 24798,327545,583447,Yearling Nice Question Good Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24799,84771,382374,Notable Question Popular Question Nice Question Necromancer Famous Question Popular Question Popular Question Nice Question Popular Question Guru Yearling Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Answer Enlightened Notable Question Nice Question Nice Question Nice Question Notable Question Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Notable Question Famous Question Nice Question Popular Question Booster Famous Question Nice Question Popular Question Yearling Notable Question Good Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24800,122481,1269250,Popular Question,NULL,NULL,0,NULL,NULL 24801,693052,18973,Popular Question Yearling Nice Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 24802,16428,648757,NULL,NULL,NULL,0,NULL,NULL 24803,38279,162181,Critic Revival Custodian,NULL,NULL,0,NULL,NULL 24804,23513,239340,NULL,NULL,NULL,0,NULL,NULL 24805,127789,401437,NULL,NULL,NULL,0,NULL,NULL 24806,1437485,1018473,Custodian Custodian Revival Nice Answer Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 24807,69340,218118,Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 24808,29671,132087,Popular Question Popular Question Famous Question Yearling Notable Question Nice Answer Notable Question Yearling Popular Question Popular Question Documentation User Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 24809,450975,440182,NULL,NULL,NULL,0,NULL,NULL 24810,41113,16706,Nice Answer Necromancer Yearling Enthusiast Nice Answer Caucus Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24811,112466,130868,Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24812,116575,389772,NULL,NULL,NULL,0,NULL,NULL 24813,1022787,543849,NULL,NULL,NULL,0,NULL,NULL 24814,2377332,982257,Necromancer Nice Answer Enlightened Necromancer Nice Answer Good Answer Curious Custodian Yearling Good Answer Nice Answer Necromancer Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Enthusiast Census Revival Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24815,128550,640301,NULL,NULL,NULL,0,NULL,NULL 24816,316998,972487,NULL,NULL,NULL,0,NULL,NULL 24817,133912,1085938,Good Answer Nice Answer Good Answer Student Yearling Explainer Popular Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 24818,343360,1211389,NULL,NULL,NULL,0,NULL,NULL 24819,560923,276,Notable Question Notable Question Yearling Nice Answer Notable Question Notable Question Yearling Notable Question Nice Answer Enlightened Revival Nice Answer Enlightened Great Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24820,481539,1271496,NULL,NULL,NULL,0,NULL,NULL 24821,456260,323221,Revival Notable Question Steward Nice Question Yearling Nice Answer Enlightened Nice Answer Notable Question Electorate Enthusiast Good Answer Famous Question Popular Question Notable Question Good Question Nice Question Good Answer Nice Answer Good Answer Nice Answer Yearling Good Answer Notable Question Famous Question Popular Question Nice Question Popular Question Good Answer Popular Question Yearling java Custodian Great Answer Necromancer Nice Question Taxonomist,NULL,NULL,0,NULL,NULL 24822,456258,323221,Revival Notable Question Steward Nice Question Yearling Nice Answer Enlightened Nice Answer Notable Question Electorate Enthusiast Good Answer Famous Question Popular Question Notable Question Good Question Nice Question Good Answer Nice Answer Good Answer Nice Answer Yearling Good Answer Notable Question Famous Question Popular Question Nice Question Popular Question Good Answer Popular Question Yearling java Custodian Great Answer Necromancer Nice Question Taxonomist,NULL,NULL,0,NULL,NULL 24823,86602,224732,Notable Question Famous Question Inquisitive Nice Question Notable Question Civic Duty Famous Question Yearling Good Question Popular Question Notable Question Caucus Good Question Notable Question Notable Question Yearling Census Popular Question Notable Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 24824,573778,1102020,NULL,NULL,NULL,0,NULL,NULL 24825,189107,1257778,Yearling Great Answer Necromancer Yearling Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 24826,35646,527651,Informed,NULL,NULL,0,NULL,NULL 24827,5023256,987390,NULL,NULL,NULL,0,NULL,NULL 24828,250631,1030835,Popular Question,NULL,NULL,0,NULL,NULL 24829,102751,1045161,NULL,NULL,NULL,0,NULL,NULL 24830,390381,143340,NULL,NULL,NULL,0,NULL,NULL 24831,811756,606303,Popular Question,NULL,NULL,0,NULL,NULL 24832,3784549,606303,Popular Question,NULL,NULL,0,NULL,NULL 24833,286619,255849,Yearling Guru Necromancer Civic Duty Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 24834,57730,265508,Necromancer Revival Custodian Nice Answer Enlightened,NULL,NULL,1,NULL,django rest framework create user with password python django django rest framework pUsing django rest framework and django ppI am trying to create user using django rest framework ModelViewSerializer problem is that the default objects create method used by DRF leave the password as plain text ppThe problem is that DRF serialzer create method is using codeobjects create code href https docs djangoproject com en ref models querysets create rel noreferrer querysets create method instead of using codeobjects create user code method ppcode from href https github com tomchristie django rest framework blob master rest framework serializers py rel noreferrer serializers py line 775 ppre codeinstance ModelClass objects create validated data code prepWhat is the best solution for this can override the serializer create method to use objects user create instead of objects create but it does not feel like the right solution pprest of code ppre codefrom django contrib auth models import Userfrom rest framework import viewsetsclass UserSerializer serializers ModelSerializer class Meta model User fields username email password write only fields password class UserViewSet viewsets ModelViewSet queryset User objects all serializer UserSerializer code pre pIn addition to answer where you miss out on the functionalities in codeserializers Modelserializer create code which could be quite nice to preserve for example handling of many to many relations there is way to keep this ppBy using the codeuser set password code method the password can also be correctly set like ppre codeclass UserSerializer serializers ModelSerializer def create self validated data user super create validated data user set password validated data password user save return user code prepThis has the benefit of keeping the super class functionality but the downside of an additional write to the database Decide which trade off is more important to you 24835,220676,1278741,NULL,NULL,NULL,0,NULL,NULL 24836,1125732,122308,NULL,NULL,NULL,0,NULL,NULL 24837,27463,749954,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24838,216106,275857,Excavator Yearling Commentator Good Answer Student Census Yearling,NULL,NULL,0,NULL,NULL 24839,713717,219640,Good Question Yearling Good Answer Revival Yearling Necromancer Yearling Popular Question Yearling Caucus python Custodian Custodian Yearling Revival Notable Question Nice Answer Enlightened Tenacious Citizen Patrol Custodian Excavator Explainer Unsung Hero Caucus Constituent Proofreader Custodian Organizer Suffrage Vox Populi Reviewer Civic Duty Custodian Autobiographer Promoter Benefactor Yearling,NULL,pI know this is an old thread but ppIf you re using Exchange 2007 or newer or Office365 take look at Exchange Web Services It pretty comprehensive SOAP based interface for Exchange and you can do pretty much anything Outlook is able to do including delegate or impersonation access to other user accounts pp href http msdn microsoft com en us library bb204119 aspx rel noreferrer http msdn microsoft com en us library bb204119 aspx ppUPDATE have released href https pypi python org pypi exchangelib rel noreferrer Python EWS client on PyPI that supports autodiscover calendars inbox tasks contacts and more ppre class lang py prettyprint override codefrom exchangelib import DELEGATE Account Credentialscredentials Credentials username MYWINDOMAIN myusername Or myusername com for O365 password topsecret account Account primary smtp address john com credentials credentials autodiscover True access type DELEGATE Print first 100 inbox messages in reverse orderfor item in account inbox all order by datetime received 100 print item subject item body item attachments code pre Yes it supports both Python and pI know this is an old thread but ppIf you re using Exchange 2007 or newer or Office365 take look at Exchange Web Services It pretty comprehensive SOAP based interface for Exchange and you can do pretty much anything Outlook is able to do including delegate or impersonation access to other user accounts pp href http msdn microsoft com en us library bb204119 aspx rel noreferrer http msdn microsoft com en us library bb204119 aspx ppUPDATE have released href https pypi python org pypi exchangelib rel noreferrer Python EWS client on PyPI that supports autodiscover calendars inbox tasks contacts and more ppre class lang py prettyprint override codefrom exchangelib import DELEGATE Account Credentialscredentials Credentials username MYWINDOMAIN myusername Or myusername com for O365 password topsecret account Account primary smtp address john com credentials credentials autodiscover True access type DELEGATE Print first 100 inbox messages in reverse orderfor item in account inbox all order by datetime received 100 print item subject item body item attachments code pre must admit have very little understanding of proxies in an EWS context Usually your autodiscover server will just hand out URL to an EWS endpoint for the account to use That URL will hide whatever complexity you have internally pI know this is an old thread but ppIf you re using Exchange 2007 or newer or Office365 take look at Exchange Web Services It pretty comprehensive SOAP based interface for Exchange and you can do pretty much anything Outlook is able to do including delegate or impersonation access to other user accounts pp href http msdn microsoft com en us library bb204119 aspx rel noreferrer http msdn microsoft com en us library bb204119 aspx ppUPDATE have released href https pypi python org pypi exchangelib rel noreferrer Python EWS client on PyPI that supports autodiscover calendars inbox tasks contacts and more ppre class lang py prettyprint override codefrom exchangelib import DELEGATE Account Credentialscredentials Credentials username MYWINDOMAIN myusername Or myusername com for O365 password topsecret account Account primary smtp address john com credentials credentials autodiscover True access type DELEGATE Print first 100 inbox messages in reverse orderfor item in account inbox all order by datetime received 100 print item subject item body item attachments code pre For Office365 the username is always the primary SMTP address AFAIK So no WINDOMAIN Re ServiceAccount it the same as Credentials except it implements some automatic backoff policies when the server is failing,0,NULL,NULL 24840,567326,108662,Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 24841,235107,910452,Promoter Nice Question Yearling wpf Famous Question Yearling Great Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 24842,162393,1389002,NULL,NULL,NULL,0,NULL,NULL 24843,3895975,1389002,NULL,NULL,NULL,0,NULL,NULL 24844,67262,409663,ocmock Necromancer Custodian Custodian Citizen Patrol Custodian Yearling Organizer Yearling Nice Answer ios Enlightened Nice Answer Yearling objective-c,NULL,NULL,0,NULL,NULL 24845,388875,365473,Autobiographer,NULL,NULL,0,NULL,NULL 24846,68052,124116,NULL,NULL,NULL,0,NULL,NULL 24847,640707,1088890,NULL,NULL,NULL,0,NULL,NULL 24848,440245,415568,Revival Caucus Revival Caucus Student Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 24849,277974,188041,NULL,NULL,NULL,0,NULL,NULL 24850,18542,616387,NULL,NULL,NULL,0,NULL,NULL 24851,207178,126617,Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Famous Question Good Question Famous Question Favorite Question Nice Question Popular Question Notable Question Notable Question Guru Famous Question Nice Question Popular Question Notable Question Good Question Famous Question Yearling Famous Question Famous Question Favorite Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 24852,616271,1050646,Revival,NULL,NULL,0,NULL,NULL 24853,135538,1176572,NULL,NULL,NULL,0,NULL,NULL 24854,47046,1430442,Informed,NULL,NULL,0,NULL,NULL 24855,389745,894702,Yearling Guru Good Answer Good Answer Good Answer Good Answer Yearling Guru Guru Yearling,NULL,NULL,0,NULL,NULL 24856,553387,858740,Informed Autobiographer Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 24857,170487,1302291,NULL,NULL,NULL,0,NULL,NULL 24858,52273,183555,Notable Question,NULL,NULL,0,NULL,NULL 24859,682770,573988,Yearling Yearling Revival Yearling Curious Notable Question Necromancer Nice Question Nice Question Nice Answer Yearling Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 24860,213596,337079,Civic Duty Yearling Necromancer Nice Answer Nice Answer Yearling Good Answer Announcer Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 24861,147421,164165,Notable Question Popular Question Good Question Popular Question Notable Question Famous Question Great Question Necromancer Nice Question Notable Question Nice Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Yearling Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 24862,500228,1430475,NULL,NULL,NULL,0,NULL,NULL 24863,209546,198953,Popular Question Nice Answer Good Answer Popular Question Yearling Caucus Constituent c# Necromancer Necromancer Notable Question Popular Question Necromancer Nice Question Famous Question Yearling Popular Question Caucus Constituent Self-Learner Nice Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 24864,176711,33888,Guru Yearling Great Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24865,5632985,33888,Guru Yearling Great Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24866,469890,214656,Teacher,NULL,NULL,0,NULL,NULL 24867,313099,367737,NULL,NULL,NULL,0,NULL,NULL 24868,137049,45047,Supporter,NULL,NULL,0,NULL,NULL 24869,1387287,378969,Famous Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 24870,264009,94088,NULL,NULL,NULL,0,NULL,NULL 24871,1109222,394561,Yearling Good Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 24872,38110,1352553,NULL,NULL,NULL,0,NULL,NULL 24873,79904,539615,NULL,NULL,NULL,0,NULL,NULL 24874,2132291,1266782,NULL,NULL,NULL,0,NULL,NULL 24875,143483,191006,Popular Question Popular Question Nice Question Yearling Favorite Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 24876,227059,686282,Notable Question,NULL,NULL,0,NULL,NULL 24877,16114,1382805,NULL,NULL,NULL,0,NULL,NULL 24878,1598681,631165,Notable Question Popular Question Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 24879,48059,929610,Notable Question,NULL,NULL,0,NULL,NULL 24880,1884488,710701,NULL,NULL,NULL,0,NULL,NULL 24881,459240,1449423,Yearling Caucus Popular Question Fanatic Civic Duty Nice Answer Revival,NULL,NULL,0,NULL,NULL 24882,902341,1540538,Popular Question,NULL,NULL,0,NULL,NULL 24883,892322,310121,cocoa-touch Famous Question Famous Question Nice Answer Popular Question Popular Question Yearling Nice Question Announcer Popular Question Guru Nice Answer Nice Answer Notable Question Yearling Famous Question Great Question Famous Question Stellar Question Nice Question Announcer Census xcode Nice Question Nice Answer Yearling Enlightened Popular Question Famous Question Necromancer Popular Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 24884,682847,699104,NULL,NULL,NULL,0,NULL,NULL 24885,106437,990414,NULL,NULL,NULL,0,NULL,NULL 24886,449803,465915,Necromancer Nice Question Good Answer Necromancer Nice Answer Necromancer Good Answer Populist Yearling Caucus Constituent Great Answer Necromancer Nice Answer ruby Caucus Nice Answer Nice Answer Enlightened Constituent Custodian Custodian Custodian Custodian Reviewer Necromancer Custodian Yearling Popular Question Good Answer Census Caucus Constituent Popular Question Nice Answer Good Answer Good Answer Yearling,NULL,pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre Thanks but the question is tagged Rails3 happy to just help out pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre Glad to hear that pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre the column always goes on the belong to part of the relation hope this answers your question pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre Hi guys thank you for the correction updating this right now can remember where got that from it been few years Thank you,0,NULL,NULL 24887,216115,814680,NULL,NULL,NULL,0,NULL,NULL 24888,53719,1133427,NULL,NULL,NULL,0,NULL,NULL 24889,5718,250070,NULL,NULL,NULL,0,NULL,NULL 24890,57775,1531916,NULL,NULL,NULL,0,NULL,NULL 24891,22814,1417783,NULL,NULL,NULL,0,NULL,NULL 24892,897106,18772,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 24893,55193,516077,NULL,NULL,NULL,0,NULL,NULL 24894,487034,10455,NULL,NULL,NULL,0,NULL,NULL 24895,156466,1129581,NULL,NULL,NULL,0,NULL,NULL 24896,42785,448345,NULL,NULL,NULL,0,NULL,NULL 24897,91506,829120,Yearling Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 24898,232367,1122126,NULL,NULL,NULL,0,NULL,NULL 24899,106003,717028,NULL,NULL,NULL,0,NULL,NULL 24900,413595,1091515,Famous Question,NULL,NULL,0,NULL,NULL 24901,1161,219166,Revival Famous Question Great Question Notable Question Famous Question Popular Question Guru Notable Question Yearling Notable Question Nice Answer Popular Question Notable Question Good Question Revival Notable Question Famous Question Notable Question Electorate Notable Question Popular Question Revival Yearling Favorite Question Popular Question Nice Question Revival Nice Answer Enlightened Notable Question Notable Question Popular Question Nice Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 24902,88799,368467,Yearling Yearling,NULL,NULL,0,NULL,NULL 24903,396013,937887,Notable Question,NULL,NULL,0,NULL,NULL 24904,1505319,1036850,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 24905,511935,652945,Yearling jquery Good Answer Popular Question Yearling Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 24906,22521,1521555,NULL,NULL,NULL,0,NULL,NULL 24907,1240921,233455,NULL,NULL,NULL,0,NULL,NULL 24908,243508,1291491,NULL,NULL,NULL,0,NULL,NULL 24909,1048233,1291491,NULL,NULL,NULL,0,NULL,NULL 24910,110726,266670,NULL,NULL,NULL,0,NULL,NULL 24911,96307,1299409,NULL,NULL,NULL,0,NULL,NULL 24912,1508113,1162836,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 24913,5550905,804209,NULL,NULL,NULL,0,NULL,NULL 24914,869504,1346782,NULL,NULL,NULL,0,NULL,NULL 24915,81855,684858,NULL,NULL,NULL,0,NULL,NULL 24916,8181536,684858,NULL,NULL,NULL,0,NULL,NULL 24917,418167,1367399,NULL,NULL,NULL,0,NULL,NULL 24918,97208,140827,Notable Question Necromancer Necromancer Notable Question Nice Question Popular Question Notable Question Yearling Nice Answer Guru Popular Question Famous Question Caucus Revival Popular Question Nice Question Good Answer Nice Question Great Question Necromancer Yearling Famous Question Nice Question Favorite Question Nice Answer Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 24919,162183,610169,NULL,NULL,NULL,0,NULL,NULL 24920,4558565,1083753,NULL,NULL,NULL,0,NULL,NULL 24921,201168,388142,Yearling Popular Question Famous Question Nice Question Yearling Caucus Constituent Good Answer Census Good Question Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 24922,1545,350138,Necromancer,NULL,NULL,0,NULL,NULL 24923,1148400,1004805,Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 24924,107546,365627,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 24925,178806,607185,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 24926,300073,936310,Yearling Custodian Critic Nice Answer z3 Nice Answer Popular Question Yearling Necromancer Nice Answer Mortarboard Good Answer haskell Caucus Explainer Organizer Fanatic Excavator Cleanup Yearling Announcer smt,NULL,NULL,0,NULL,NULL 24927,507975,692552,NULL,NULL,NULL,0,NULL,NULL 24928,182873,36154,Revival,NULL,NULL,0,NULL,NULL 24929,127530,135001,NULL,NULL,NULL,0,NULL,NULL 24930,203066,1920,Student,NULL,NULL,0,NULL,NULL 24931,53099,1112608,Notable Question,NULL,NULL,0,NULL,NULL 24932,643302,378589,NULL,NULL,NULL,0,NULL,NULL 24933,379968,566459,Yearling Nice Answer Necromancer Caucus Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24934,224437,228478,Popular Question,NULL,NULL,0,NULL,NULL 24935,219697,429509,Famous Question,NULL,NULL,0,NULL,NULL 24936,399387,679892,Great Answer Necromancer Yearling Yearling Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 24937,3352908,478747,Yearling Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 24938,641,478747,Yearling Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 24939,171478,1087304,Yearling Yearling,NULL,NULL,0,NULL,NULL 24940,84486,250253,Critic,NULL,NULL,0,NULL,NULL 24941,1314,456964,Self-Learner Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24942,178681,383403,Custodian Famous Question Yearling Good Question Favorite Question Notable Question Good Question Nice Question Yearling Good Question Yearling Notable Question Popular Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 24943,163139,51115,Good Answer Yearling Investor Organizer Notable Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 24944,292768,573642,Notable Question Nice Answer Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 24945,68894,615138,Announcer Revival Announcer,NULL,NULL,0,NULL,NULL 24946,251630,1496751,Yearling Nice Answer Caucus Critic Good Answer Yearling Popular Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 24947,38825,1504432,NULL,NULL,NULL,0,NULL,NULL 24948,2922504,478440,Notable Question Yearling Revival Yearling Caucus Good Question Necromancer Documentation User Census Caucus Critic,NULL,NULL,0,NULL,NULL 24949,189122,478440,Notable Question Yearling Revival Yearling Caucus Good Question Necromancer Documentation User Census Caucus Critic,NULL,NULL,0,NULL,NULL 24950,915306,565758,NULL,NULL,NULL,0,NULL,NULL 24951,654389,336235,Nice Question Nice Question Yearling Notable Question Revival Popular Question Announcer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 24952,18063,863599,NULL,NULL,NULL,0,NULL,NULL 24953,254182,806003,Famous Question Announcer Nice Answer Yearling Good Question Yearling Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 24954,190248,569926,Tumbleweed Informed Autobiographer Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24955,29097,466910,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 24956,240408,545256,NULL,NULL,NULL,0,NULL,NULL 24957,281388,823506,NULL,NULL,NULL,0,NULL,NULL 24958,92920,616368,NULL,NULL,NULL,0,NULL,NULL 24959,340681,1161743,Yearling Popular Question Good Answer Nice Answer Good Question Nice Answer Good Answer Necromancer Notable Question Necromancer Nice Answer Yearling Custodian Necromancer Necromancer Nice Answer Announcer Good Question Necromancer Announcer Custodian Necromancer Yearling Nice Answer Necromancer Good Answer Revival Necromancer Guru Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 24960,632089,671639,Reviewer Notable Question Populist Nice Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Favorite Question Popular Question Notable Question Electorate Popular Question Nice Answer Enlightened Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Custodian Famous Question Famous Question Popular Question Custodian Famous Question Notable Question Notable Question Nice Question Popular Question Reviewer Yearling Revival Nice Question Announcer Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Famous Question Famous Question Famous Question Notable Question Good Question Nice Question Nice Question Nice Answer Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Announcer Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 24961,166511,351288,NULL,NULL,NULL,0,NULL,NULL 24962,3980438,612841,NULL,NULL,NULL,0,NULL,NULL 24963,3159331,202619,NULL,NULL,NULL,0,NULL,NULL 24964,75271,202619,NULL,NULL,NULL,0,NULL,NULL 24965,1110395,1372513,Teacher,NULL,NULL,0,NULL,NULL 24966,21484,263962,Caucus Caucus,NULL,NULL,0,NULL,NULL 24967,53063,193589,Nice Answer,NULL,NULL,0,NULL,NULL 24968,4723466,1201637,Supporter Peer Pressure Scholar Popular Question Teacher Editor Tumbleweed Enthusiast Commentator Popular Question,NULL,NULL,0,NULL,NULL 24969,1329238,46449,Popular Question Yearling Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 24970,339076,359405,NULL,NULL,NULL,0,NULL,NULL 24971,383090,432827,Nice Answer Documentation User Good Answer Yearling,NULL,NULL,0,NULL,NULL 24972,70794,821938,Scholar Critic Student Popular Question,NULL,NULL,0,NULL,NULL 24973,19177,947917,Necromancer Good Answer Nice Answer Yearling Necromancer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 24974,3665,167485,Yearling Necromancer Popular Question Notable Question Necromancer Revival Popular Question Yearling Self-Learner Nice Answer Yearling,NULL,NULL,0,NULL,NULL 24975,1471979,267757,Announcer,NULL,NULL,0,NULL,NULL 24976,195447,1346257,Custodian Guru Yearling Announcer Commentator Yearling,NULL,NULL,0,NULL,NULL 24977,1000655,494211,Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 24978,69272,634136,Supporter,NULL,NULL,0,NULL,NULL 24979,69479,114305,Popular Question Yearling Caucus Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 24980,711857,340672,NULL,NULL,NULL,0,NULL,NULL 24981,259331,298410,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 24982,129133,308115,Necromancer Informed Popular Question Nice Answer Popular Question Census Yearling Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 24983,353530,183605,Famous Question Notable Question Good Question Famous Question Nice Question Popular Question Yearling Notable Question Notable Question Promoter Benefactor Yearling Inquisitive Yearling,NULL,NULL,0,NULL,NULL 24984,209104,102432,NULL,NULL,NULL,0,NULL,NULL 24985,133313,421249,NULL,NULL,NULL,0,NULL,NULL 24986,452633,246444,Yearling,NULL,NULL,0,NULL,NULL 24987,269936,1520056,NULL,NULL,NULL,0,NULL,NULL 24988,81664,1191377,NULL,NULL,NULL,0,NULL,NULL 24989,2332260,1106316,NULL,NULL,NULL,0,NULL,NULL 24990,194224,624322,NULL,NULL,NULL,0,NULL,NULL 24991,432107,1552803,NULL,NULL,NULL,0,NULL,NULL 24992,430227,876842,NULL,NULL,NULL,0,NULL,NULL 24993,2464,176040,NULL,NULL,NULL,0,NULL,NULL 24994,917993,425152,NULL,NULL,NULL,0,NULL,NULL 24995,778058,1554013,NULL,NULL,NULL,0,NULL,NULL 24996,65260,1213990,NULL,NULL,NULL,0,NULL,NULL 24997,3580204,295157,Yearling Revival Yearling Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 24998,90005,295157,Yearling Revival Yearling Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 24999,134121,491708,Revival Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Notable Question Inquisitive Yearling Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 25000,463301,1345881,NULL,NULL,NULL,0,NULL,NULL 25001,325899,596602,Yearling Reviewer Census Yearling Custodian Tumbleweed Census Yearling,NULL,NULL,0,NULL,NULL 25002,136612,532580,NULL,NULL,NULL,0,NULL,NULL 25003,349013,666311,NULL,NULL,NULL,0,NULL,NULL 25004,38786,1231496,NULL,NULL,NULL,0,NULL,NULL 25005,2456991,684687,NULL,NULL,NULL,0,NULL,NULL 25006,48311,699845,Critic Yearling Good Answer,NULL,NULL,0,NULL,NULL 25007,1327294,770265,NULL,NULL,NULL,0,NULL,NULL 25008,33851,1174185,Yearling Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25009,336161,112877,Good Answer Yearling Good Answer Caucus Guru Yearling Caucus Nice Answer Custodian Documentation User Good Answer Census Good Answer Caucus Nice Answer Yearling java Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25010,8234,686803,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 25011,796768,784559,NULL,NULL,NULL,0,NULL,NULL 25012,665631,244594,Necromancer Yearling Promoter Nice Question Famous Question Nice Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25013,17489,153718,Nice Answer Enlightened Nice Question Populist Great Answer Famous Question Popular Question Electorate Nice Answer Nice Answer Great Answer Good Question Yearling Nice Question Popular Question Nice Answer Enlightened Nice Answer Famous Question Good Question Necromancer Yearling Nice Answer Necromancer Revival Nice Answer Announcer Yearling Tumbleweed,NULL,h1Using Signals h1pAre you using codeStartApp code or do you have your own codefoldp code If you are using codeStartApp code it best to look up the code for the codestart code function and inline it so you have access to the codefoldp code pp codeSignal foldp code doesn do anything with the initial value of signal So if you use the codeTime every second code signal you only get your update after second and only after day if you use the date conversion and codeSignal dropRepeats code You can use href http package elm lang org packages Apanatshka elm signal extra Signal Extra foldp 39 rel nofollow codeSignal Extra foldp code from the 3rd party href http package elm lang org packages Apanatshka elm signal extra rel nofollow signal extra library to fix that It takes function to create the initial state of the codefoldp code from the initial value of the input pp Full disclosure the author of the library ph1Using Tasks h1pThere is very useful task in the href http package elm lang org packages evancz task tutorial rel nofollow task tutorial library called href http package elm lang org packages evancz task tutorial TaskTutorial getCurrentTime rel nofollow codegetCurrentTime code think that can serve your needs without needing signal that updates every second Along with href http package elm lang org packages elm lang core Task sleep rel nofollow codeTask sleep code you can probably get something that only checks the time once or twice day ended up using the getCurrentTime from the tutorial too as it works nicely with the Elm StartApp really would like to see something similar in the Elm stdlib Took me quite while to figure this out,0,NULL,NULL 25014,608700,4224,Notable Question Good Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25015,903981,751883,NULL,NULL,NULL,0,NULL,NULL 25016,211802,966508,Yearling Popular Question Nice Question Notable Question Good Question Yearling Necromancer Notable Question Notable Question Popular Question Yearling Famous Question Nice Question Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25017,151640,96090,Yearling Good Answer Populist Curious Yearling Yearling,NULL,pHere the cleaned up ARC version based on code ppre code id fetchSSIDInfo NSArray ifs bridge transfer NSArray CNCopySupportedInterfaces NSLog Supported interfaces ifs NSDictionary info for NSString ifnam in ifs info bridge transfer NSDictionary CNCopyCurrentNetworkInfo bridge CFStringRef ifnam NSLog gt ifnam info if info amp amp info count break return info code pre Note that this only works on device on Simulator an empty is returned,0,NULL,NULL 25018,6143821,308323,NULL,NULL,NULL,0,NULL,NULL 25019,276004,433230,Yearling Explainer Citizen Patrol Organizer Yearling Census Good Answer,NULL,NULL,0,NULL,NULL 25020,201166,413137,NULL,NULL,NULL,0,NULL,NULL 25021,183570,969325,Nice Question Famous Question Nice Answer Popular Question Good Question Populist Good Question Revival Notable Question Popular Question Inquisitive Favorite Question Necromancer Yearling Good Answer Announcer Announcer Popular Question Caucus Constituent Great Answer Good Answer Census Necromancer Nice Question Nice Question Necromancer Nice Answer Necromancer Nice Answer Caucus Nice Answer Nice Answer Announcer Announcer Yearling Announcer Popular Question Notable Question Revival Necromancer Great Answer Disciplined Announcer Popular Question Nice Question Popular Question Great Answer Booster Good Answer Peer Pressure Notable Question Guru Nice Answer Enlightened Yearling Nice Answer Announcer Famous Question,NULL,NULL,0,NULL,NULL 25022,3635610,278232,Census Census,NULL,NULL,0,NULL,NULL 25023,833475,473475,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25024,7779664,943507,NULL,NULL,NULL,0,NULL,NULL 25025,14985,1121014,NULL,NULL,NULL,0,NULL,NULL 25026,200863,597371,Civic Duty,NULL,NULL,0,NULL,NULL 25027,82955,61224,Yearling,NULL,NULL,0,NULL,NULL 25028,977927,1054460,NULL,NULL,NULL,0,NULL,NULL 25029,48357,273808,Yearling Caucus Yearling Organizer Critic Investor Yearling Caucus Constituent Great Answer,NULL,NULL,0,NULL,NULL 25030,66928,1034410,NULL,NULL,NULL,0,NULL,NULL 25031,390553,1104116,NULL,NULL,NULL,0,NULL,NULL 25032,1711361,629090,Caucus,NULL,NULL,0,NULL,NULL 25033,850115,397217,NULL,NULL,NULL,0,NULL,NULL 25034,296717,1060509,Yearling,NULL,NULL,0,NULL,NULL 25035,175409,916185,NULL,NULL,NULL,0,NULL,NULL 25036,64080,1001528,Popular Question,NULL,NULL,0,NULL,NULL 25037,305128,588540,NULL,NULL,NULL,0,NULL,NULL 25038,80245,381402,Nice Answer Yearling Caucus Constituent Yearling Caucus Constituent Nice Answer Census Yearling,NULL,NULL,0,NULL,NULL 25039,606597,857759,NULL,NULL,NULL,0,NULL,NULL 25040,123226,1150670,NULL,NULL,NULL,0,NULL,NULL 25041,187181,916928,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25042,136128,235466,NULL,NULL,NULL,0,NULL,NULL 25043,366474,11502,NULL,NULL,NULL,0,NULL,NULL 25044,1503707,1217401,NULL,NULL,NULL,0,NULL,NULL 25045,421197,1204730,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25046,67378,536174,Good Answer Yearling Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 25047,168234,942795,NULL,NULL,NULL,0,NULL,NULL 25048,46120,200576,dc.js javascript d3.js Yearling Caucus Caucus Yearling Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 25049,29392,404933,NULL,NULL,NULL,0,NULL,NULL 25050,231410,1116374,Necromancer Yearling Nice Answer Revival Editor Excavator Yearling Necromancer Good Answer Announcer Caucus Custodian Citizen Patrol Custodian Commentator Informed Yearling,NULL,NULL,0,NULL,NULL 25051,88516,613940,Famous Question Popular Question Promoter Nice Question Critic,NULL,NULL,0,NULL,NULL 25052,944560,1306815,NULL,NULL,NULL,0,NULL,NULL 25053,78711,1306815,NULL,NULL,NULL,0,NULL,NULL 25054,996495,1220627,Popular Question Yearling Popular Question Popular Question Nice Answer Popular Question Nice Answer Popular Question Popular Question Civic Duty Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Nice Question Good Answer Popular Question Notable Question Popular Question Nice Question Popular Question Nice Answer Yearling Famous Question Popular Question Nice Question Notable Question Notable Question Notable Question Popular Question Nice Answer Enlightened Popular Question Popular Question Popular Question Famous Question Good Question,NULL,OData complains about missing id property when enabling camelcasing asp net web api odata asp net web api odata pI want to enable camel casing of my odata results So added codeEnableLowerCamelCase code But after enabled that get the following error message when call ppre codehttp localhost odata Users code preblockquote pThe EDM instance of type Core DomainModel User Nullable True is missing the property id blockquotepEverything worked before codeEnableLowerCamelCase code and it works again if remove it Also the error message is rather confusing It says that User is missing the id property Which cannot be true Because have Id defined as the key ppre codevar builder new ODataConventionModelBuilder builder EnableLowerCamelCase var users builder EntitySet lt User gt nameof UsersController Replace Controller string Empty users EntityType HasKey gt Id lt id propertybuilder GetEdmModel code prepWhat am doing wrong The POCO class User has Id defined with Pascal Casing as it should be in But the whole point of EnableLowerCamelCase is to convert these PascalCased properties to camelCased so the json result is formatted correctly,1,OData complains about missing id property when enabling camelcasing asp net web api odata asp net web api odata pI want to enable camel casing of my odata results So added codeEnableLowerCamelCase code But after enabled that get the following error message when call ppre codehttp localhost odata Users code preblockquote pThe EDM instance of type Core DomainModel User Nullable True is missing the property id blockquotepEverything worked before codeEnableLowerCamelCase code and it works again if remove it Also the error message is rather confusing It says that User is missing the id property Which cannot be true Because have Id defined as the key ppre codevar builder new ODataConventionModelBuilder builder EnableLowerCamelCase var users builder EntitySet lt User gt nameof UsersController Replace Controller string Empty users EntityType HasKey gt Id lt id propertybuilder GetEdmModel code prepWhat am doing wrong,NULL 25055,198995,479040,Excavator Tumbleweed,NULL,NULL,0,NULL,NULL 25056,20497,62130,Necromancer Yearling Notable Question Guru Favorite Question Nice Answer Nice Answer Enlightened Good Answer Great Answer Necromancer Good Answer Nice Answer Nice Answer Great Answer Yearling Good Answer Guru Necromancer Necromancer Great Answer Nice Answer Nice Answer Guru Great Question Guru Guru Good Answer Necromancer Nice Answer Announcer Famous Question Famous Question Yearling Nice Answer Famous Question Nice Answer Announcer Necromancer,NULL,NULL,0,NULL,NULL 25057,1472814,253632,Yearling Critic,NULL,NULL,0,NULL,NULL 25058,28151,359410,NULL,NULL,NULL,0,NULL,NULL 25059,49948,547378,NULL,NULL,NULL,0,NULL,NULL 25060,27757,144143,objective-c Yearling Caucus Yearling Tag Editor Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25061,105398,1386109,Tumbleweed Editor Curious Commentator Nice Question Critic,NULL,NULL,0,NULL,NULL 25062,3851673,1386109,Tumbleweed Editor Curious Commentator Nice Question Critic,NULL,NULL,0,NULL,NULL 25063,542259,351003,NULL,NULL,NULL,0,NULL,NULL 25064,356426,683247,Scholar Revival Yearling Necromancer Caucus Constituent Popular Question Necromancer Caucus Necromancer Yearling Nice Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 25065,176661,641883,NULL,NULL,NULL,0,NULL,NULL 25066,36598,724124,Critic Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 25067,1078375,724124,Critic Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 25068,782712,1363445,Famous Question,NULL,NULL,0,NULL,NULL 25069,14276,316790,NULL,NULL,NULL,0,NULL,NULL 25070,364409,486385,NULL,NULL,NULL,0,NULL,NULL 25071,1169820,118201,Great Answer Yearling Nice Answer Popular Question Caucus Yearling Nice Answer Notable Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 25072,329262,347055,NULL,NULL,NULL,0,NULL,NULL 25073,11018,1535961,NULL,NULL,NULL,0,NULL,NULL 25074,258523,497049,NULL,NULL,NULL,0,NULL,NULL 25075,227133,42546,Nice Question Famous Question Yearling Popular Question Notable Question Famous Question Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 25076,332170,50718,Yearling,NULL,NULL,0,NULL,NULL 25077,273753,1327549,Notable Question,NULL,NULL,0,NULL,NULL 25078,497063,1031093,Yearling Revival Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 25079,461039,1542,Popular Question Great Question Yearling Notable Question Notable Question Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 25080,281889,1056047,Teacher Scholar Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 25081,50774,294283,Yearling Great Question,NULL,NULL,0,NULL,NULL 25082,377514,798838,NULL,NULL,NULL,0,NULL,NULL 25083,360227,499184,Famous Question,NULL,NULL,0,NULL,NULL 25084,1233888,1299339,NULL,NULL,NULL,0,NULL,NULL 25085,3963385,524371,Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 25086,1064311,609611,NULL,NULL,NULL,0,NULL,NULL 25087,348146,261783,Nice Answer Yearling Nice Answer Enlightened Popular Question Famous Question Popular Question Popular Question Tenacious Caucus Constituent Good Answer Nice Answer Yearling Revival Popular Question Notable Question Nice Answer Popular Question Good Answer Famous Question node.js Caucus Constituent Popular Question Documentation User Nice Question Guru Notable Question Yearling Famous Question Favorite Question Caucus Constituent Guru Popular Question Notable Question Great Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25088,204425,1257888,Scholar Supporter Teacher,NULL,NULL,0,NULL,NULL 25089,127863,186548,Nice Answer Enlightened Yearling Documentation User Critic,NULL,NULL,0,NULL,NULL 25090,1392759,410887,Custodian Yearling Informed Caucus Caucus Excavator Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25091,812834,1166594,Popular Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 25092,3104860,435482,NULL,NULL,NULL,0,NULL,NULL 25093,45043,1168802,Enthusiast Yearling Fanatic Caucus Yearling Caucus Good Answer Custodian Custodian Yearling Taxonomist Caucus Constituent,NULL,NULL,0,NULL,NULL 25094,370703,879284,Editor Excavator Supporter,NULL,NULL,0,NULL,NULL 25095,2255865,781757,NULL,NULL,NULL,0,NULL,NULL 25096,86476,1296731,Editor Informed Supporter Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 25097,86608,34813,Nice Answer Nice Answer Great Answer Nice Answer Nice Question Guru Guru Nice Question Guru Yearling Nice Answer Good Answer Popular Question Census Nice Answer Popular Question Famous Question Nice Answer Yearling Necromancer Census Nice Answer Enlightened Yearling Famous Question Nice Answer Populist,NULL,NULL,0,NULL,NULL 25098,184872,8393,NULL,NULL,NULL,0,NULL,NULL 25099,87161,451717,Yearling Good Question Good Answer Favorite Question,NULL,NULL,0,NULL,NULL 25100,562602,105748,Yearling Revival Nice Answer Popular Question Notable Question Yearling Necromancer Nice Question Famous Question Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 25101,213969,579019,Yearling Custodian Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 25102,1322401,1031462,NULL,NULL,NULL,0,NULL,NULL 25103,8763,135550,NULL,NULL,NULL,0,NULL,NULL 25104,1514890,832590,NULL,NULL,NULL,0,NULL,NULL 25105,16550,825888,NULL,NULL,NULL,0,NULL,NULL 25106,207441,1136433,Yearling Notable Question Custodian Necromancer Nice Answer Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Good Answer Populist Popular Question Nice Answer Popular Question ios Yearling Inquisitive Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25107,29706,864410,NULL,NULL,NULL,0,NULL,NULL 25108,180989,819202,NULL,NULL,NULL,0,NULL,NULL 25109,226841,470581,NULL,NULL,NULL,0,NULL,NULL 25110,1092237,866149,Fanatic Yearling Explainer Excavator Documentation Beta Yearling Nice Answer Enlightened Yearling Nice Question Caucus Census Caucus Yearling Constituent Documentation User Census Reviewer Caucus Yearling,NULL,NULL,0,NULL,NULL 25111,127849,1479693,NULL,NULL,NULL,0,NULL,NULL 25112,21901,1221489,NULL,NULL,NULL,0,NULL,NULL 25113,70837,1401203,NULL,NULL,NULL,0,NULL,NULL 25114,886713,541712,NULL,NULL,NULL,0,NULL,NULL 25115,881010,502682,NULL,NULL,NULL,0,NULL,NULL 25116,168489,502682,NULL,NULL,NULL,0,NULL,NULL 25117,838830,685698,NULL,NULL,NULL,0,NULL,NULL 25118,394607,1072691,NULL,NULL,NULL,0,NULL,NULL 25119,31150,1200100,Yearling,NULL,NULL,0,NULL,NULL 25120,1513573,1168134,Necromancer Enthusiast,NULL,NULL,0,NULL,NULL 25121,412930,371037,Nice Answer Notable Question Good Answer Yearling Good Answer Great Answer Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 25122,243611,1148553,NULL,NULL,NULL,0,NULL,NULL 25123,134486,1344825,Yearling android Nice Answer Great Answer Guru Nice Answer Revival Yearling android-camera2 Necromancer Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Nice Answer Enlightened android-camera Revival Nice Answer Nice Answer Enlightened Yearling Revival Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 25124,326930,864130,NULL,NULL,NULL,0,NULL,NULL 25125,404278,682065,NULL,NULL,NULL,0,NULL,NULL 25126,856019,1464834,NULL,NULL,NULL,0,NULL,NULL 25127,126568,1459558,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 25128,1361158,747556,NULL,NULL,NULL,0,NULL,NULL 25129,193184,1275214,Editor Supporter,NULL,NULL,0,NULL,NULL 25130,99329,1078474,NULL,NULL,NULL,0,NULL,NULL 25131,21664,189303,Good Question Popular Question,NULL,NULL,0,NULL,NULL 25132,1521501,868403,Student Scholar,NULL,NULL,0,NULL,NULL 25133,1145870,1175455,Yearling Excavator Notable Question Custodian Custodian Yearling Civic Duty,NULL,NULL,0,NULL,NULL 25134,315746,99103,NULL,NULL,NULL,0,NULL,NULL 25135,186737,344688,Nice Question Yearling Popular Question Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 25136,474796,731813,Self-Learner Curious Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 25137,216983,486604,Nice Answer Enlightened Necromancer Yearling Popular Question Nice Question Revival Good Answer Yearling Announcer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 25138,181087,381592,NULL,NULL,NULL,0,NULL,NULL 25139,340305,1162506,Revival Announcer Commentator Citizen Patrol,NULL,NULL,0,NULL,NULL 25140,187288,477642,NULL,NULL,NULL,0,NULL,NULL 25141,407372,87793,Famous Question Famous Question Yearling Notable Question Announcer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 25142,526946,1377859,Teacher,NULL,NULL,0,NULL,NULL 25143,431354,406009,Good Answer Self-Learner Yearling Popular Question Notable Question Popular Question Caucus Nice Answer Informed Custodian Yearling Nice Answer Famous Question Custodian Favorite Question Custodian Caucus Popular Question Great Question Disciplined Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25144,7868,334837,Popular Question,NULL,NULL,0,NULL,NULL 25145,158454,744037,Student,NULL,NULL,0,NULL,NULL 25146,611838,634479,NULL,NULL,NULL,0,NULL,NULL 25147,23296,862289,Notable Question,NULL,NULL,0,NULL,NULL 25148,171557,2066,Yearling Stellar Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 25149,352811,1079253,NULL,NULL,NULL,0,NULL,NULL 25150,911749,1297345,NULL,NULL,NULL,0,NULL,NULL 25151,676669,933782,Revival Announcer Yearling Notable Question Popular Question Good Answer Popular Question Good Answer Popular Question Yearling Nice Question Popular Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 25152,239920,133513,Nice Question Popular Question,NULL,ZipFile testzip returning different results on Python and Python python python python unzip zipfile pUsing the codezipfile code module to unzip large data file in Python works correctly on Python but produces the following error on Python pp codeBadZipFile Bad CRC 32 for file myfile csv code ppI traced this to error handling code checking the CRC values ppUsing codeZipFile testzip code on Python returns nothing all files are fine Running it on Python returns code myfile csv code indicating problem with that file ppCode to reproduce on both Python and Python involves 300 MB download sorry ppre codeimport zipfileimport urllibimport sysurl https de iplantcollaborative org anon files iplant home shared commons repo curated Vertnet Amphibia Sep2016 VertNet Amphibia Sept2016 zip if sys version info gt urllib request urlretrieve url vertnet latest amphibians zip else urllib urlretrieve url vertnet latest amphibians zip archive zipfile ZipFile vertnet latest amphibians zip archive testzip code prepDoes anyone understand why this difference exists and if there way to get Python to properly extract the file using ppre codearchive extract vertnet latest amphibians csv code pre Looks like had some local state creep into the example Sorry It should run smoothly now ZipFile testzip returning different results on Python and Python python python python unzip zipfile pUsing the codezipfile code module to unzip large data file in Python works correctly on Python but produces the following error on Python pp codeBadZipFile Bad CRC 32 for file myfile csv code ppI traced this to error handling code checking the CRC values ppUsing codeZipFile testzip code on Python returns nothing all files are fine Running it on Python returns code myfile csv code indicating problem with that file ppCode to reproduce on both Python and Python involves 300 MB download sorry ppre codeimport zipfileimport urllibimport sysurl https de iplantcollaborative org anon files iplant home shared commons repo curated Vertnet Amphibia Sep2016 VertNet Amphibia Sept2016 zip if sys version info gt urllib request urlretrieve url vertnet latest amphibians zip else urllib urlretrieve url vertnet latest amphibians zip archive zipfile ZipFile vertnet latest amphibians zip archive testzip code prepDoes anyone understand why this difference exists and if there way to get Python to properly extract the file using ppre codearchive extract vertnet latest amphibians csv code pre It just added it to the question ZipFile testzip returning different results on Python and Python python python python unzip zipfile pUsing the codezipfile code module to unzip large data file in Python works correctly on Python but produces the following error on Python pp codeBadZipFile Bad CRC 32 for file myfile csv code ppI traced this to error handling code checking the CRC values ppUsing codeZipFile testzip code on Python returns nothing all files are fine Running it on Python returns code myfile csv code indicating problem with that file ppCode to reproduce on both Python and Python involves 300 MB download sorry ppre codeimport zipfileimport urllibimport sysurl https de iplantcollaborative org anon files iplant home shared commons repo curated Vertnet Amphibia Sep2016 VertNet Amphibia Sept2016 zip if sys version info gt urllib request urlretrieve url vertnet latest amphibians zip else urllib urlretrieve url vertnet latest amphibians zip archive zipfile ZipFile vertnet latest amphibians zip archive testzip code prepDoes anyone understand why this difference exists and if there way to get Python to properly extract the file using ppre codearchive extract vertnet latest amphibians csv code pre Here Dropbox link in case that works better https www dropbox com 7kjg7sm0jgx9e7w VertNet Amphibia Sept2016 zip dl,1,ZipFile testzip returning different results on Python and Python python python python unzip zipfile pUsing the codezipfile code module to unzip large data file in Python works correctly on Python but produces the following error on Python pp codeBadZipFile Bad CRC 32 for file myfile csv code ppI traced this to error handling code checking the CRC values ppUsing codeZipFile testzip code on Python returns nothing all files are fine Running it on Python returns code myfile csv code indicating problem with that file ppCode to reproduce on both Python and Python involves 300 MB download sorry ppre codeimport zipfileimport urllibimport sysurl https de iplantcollaborative org anon files iplant home shared commons repo curated Vertnet Amphibia Sep2016 VertNet Amphibia Sept2016 zip if sys version info gt urllib request urlretrieve url vertnet latest amphibians zip else urllib urlretrieve url vertnet latest amphibians zip archive zipfile ZipFile vertnet latest amphibians zip archive testzip code prepDoes anyone understand why this difference exists and if there way to get Python to properly extract the file using ppre codearchive extract vertnet latest amphibians csv code pre,NULL 25153,837182,964193,NULL,NULL,NULL,0,NULL,NULL 25154,353189,347117,Popular Question,NULL,NULL,0,NULL,NULL 25155,296080,200567,Famous Question Popular Question Popular Question Pundit Popular Question Excavator Notable Question Popular Question Nice Question Yearling Nice Question Notable Question Notable Question Good Question Notable Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 25156,1356186,781913,Popular Question,NULL,NULL,0,NULL,NULL 25157,168187,1190586,Notable Question Popular Question Self-Learner Yearling Popular Question Nice Answer Popular Question Notable Question Yearling Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Custodian Good Question Nice Question Popular Question Custodian Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Notable Question Caucus Popular Question Civic Duty Popular Question Notable Question Notable Question Enthusiast Nice Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25158,338042,509010,Popular Question Yearling,NULL,NULL,0,NULL,NULL 25159,122855,1151590,NULL,NULL,NULL,0,NULL,NULL 25160,8416403,1151590,NULL,NULL,NULL,0,NULL,NULL 25161,415112,924100,Yearling Caucus Constituent Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25162,183530,913907,NULL,NULL,NULL,0,NULL,NULL 25163,631909,729881,Nice Answer Enlightened Necromancer Good Answer Guru Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer java Great Answer Nice Answer Enlightened git Nice Answer Enlightened Nice Answer eclipse Necromancer Good Answer Nice Answer Enlightened Guru Nice Answer Revival Good Answer Nice Answer Nice Answer Enlightened Census Good Answer Nice Answer Nice Answer Enlightened Yearling Guru Not a Robot Announcer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Census Announcer Revival Nice Answer Good Answer Good Answer Nice Answer Enlightened Necromancer Announcer Yearling Nice Answer Popular Question Good Answer Necromancer Nice Answer Nice Answer Great Answer azure-devops Good Answer,NULL,pBeginning with href https github com git git blob master Documentation RelNotes txt L289 Git the server will send the actual branch name that codeHEAD code points to in the symref capability If you have both client and server newer than Git it will update codeHEAD code emcorrectly em ppPrior to that the client will guess what HEAD may have pointed to by comparing the object ID that HEAD ultimately points to with all the object IDs of all the branches It prefers branch named coderefs heads master code if both codeHEAD code and codemaster code point to the same object ID then clone will set the default branch in the new repository to codemaster code ppOtherwise the first branch with matching OID when the branches are sorted alphanumerically will be the default branch If no branches have matching OIDs then codeHEAD code will be set directly to the object ID ie detached HEAD HEAD is actually not pointer to commit it pointer to branch That what determine what the currently checked out branch actually is So to determine the last commit you first look at HEAD which points to for instance master and master is actually pointing to commit pBeginning with href https github com git git blob master Documentation RelNotes txt L289 Git the server will send the actual branch name that codeHEAD code points to in the symref capability If you have both client and server newer than Git it will update codeHEAD code emcorrectly em ppPrior to that the client will guess what HEAD may have pointed to by comparing the object ID that HEAD ultimately points to with all the object IDs of all the branches It prefers branch named coderefs heads master code if both codeHEAD code and codemaster code point to the same object ID then clone will set the default branch in the new repository to codemaster code ppOtherwise the first branch with matching OID when the branches are sorted alphanumerically will be the default branch If no branches have matching OIDs then codeHEAD code will be set directly to the object ID ie detached HEAD Note that should say to be technically correct that HEAD is not usually pointer to commit If you get into detached HEAD state where you check out commit directly and not branch then HEAD will actually point to commit,0,NULL,NULL 25164,512260,1125112,NULL,NULL,NULL,0,NULL,NULL 25165,269115,1473353,NULL,NULL,NULL,0,NULL,NULL 25166,38537,902847,Notable Question,NULL,NULL,0,NULL,NULL 25167,264058,327093,Editor Teacher,NULL,NULL,0,NULL,NULL 25168,8169738,771469,Famous Question Good Question Critic Popular Question Investor Altruist Yearling java Tumbleweed Popular Question Notable Question Revival Popular Question Yearling Necromancer Nice Answer php Popular Question Census Nice Answer Notable Question Notable Question Famous Question Popular Question Good Answer Yearling Electorate,NULL,NULL,0,NULL,NULL 25169,3724206,155144,Census,NULL,,0,, 25170,61650,155144,Census,NULL,NULL,0,NULL,NULL 25171,206702,1472669,Popular Question,NULL,NULL,0,NULL,NULL 25172,901000,742447,Notable Question Nice Question Nice Question Popular Question Announcer Famous Question Yearling Popular Question Famous Question Great Answer Famous Question Popular Question Popular Question Nice Question Notable Question Famous Question Good Question Good Answer Good Question Notable Question Favorite Question Announcer Popular Question Popular Question Yearling Famous Question Famous Question Notable Question Notable Question Famous Question Nice Answer Nice Question Famous Question Notable Question Favorite Question Yearling Good Question Notable Question Popular Question Famous Question Favorite Question Good Question Nice Question Notable Question Great Question Favorite Question,NULL,NULL,0,NULL,NULL 25173,187104,742447,Notable Question Nice Question Nice Question Popular Question Announcer Famous Question Yearling Popular Question Famous Question Great Answer Famous Question Popular Question Popular Question Nice Question Notable Question Famous Question Good Question Good Answer Good Question Notable Question Favorite Question Announcer Popular Question Popular Question Yearling Famous Question Famous Question Notable Question Notable Question Famous Question Nice Answer Nice Question Famous Question Notable Question Favorite Question Yearling Good Question Notable Question Popular Question Famous Question Favorite Question Good Question Nice Question Notable Question Great Question Favorite Question,NULL,NULL,0,NULL,NULL 25174,1135017,211975,NULL,NULL,NULL,0,NULL,NULL 25175,118645,109696,Nice Answer Nice Answer Famous Question Popular Question Good Question Nice Answer Yearling Popular Question Nice Question Nice Question Popular Question Famous Question Popular Question Yearling Notable Question Custodian Nice Answer Enlightened Famous Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 25176,81644,1052141,Notable Question Caucus Revival Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 25177,5736,1354357,NULL,NULL,NULL,0,NULL,NULL 25178,2671242,951620,NULL,NULL,NULL,0,NULL,NULL 25179,418708,1445851,NULL,NULL,NULL,0,NULL,NULL 25180,155269,158849,Excavator Yearling Census Nice Question,NULL,NULL,0,NULL,NULL 25181,81668,437666,NULL,NULL,NULL,0,NULL,NULL 25182,73079,157075,Critic Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25183,20190,91522,Nice Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Critic Yearling Nice Answer Nice Question sbt Caucus Good Answer Yearling Popular Question Nice Answer Notable Question Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 25184,97407,428621,Caucus,NULL,NULL,0,NULL,NULL 25185,72322,855995,NULL,NULL,NULL,0,NULL,NULL 25186,7577,223467,Scholar Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25187,499468,988876,NULL,NULL,NULL,0,NULL,NULL 25188,673610,1482722,NULL,NULL,NULL,0,NULL,NULL 25189,1599084,458310,Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25190,708910,459618,NULL,NULL,NULL,0,NULL,NULL 25191,924360,1508144,Supporter Informed Tumbleweed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25192,874426,206284,NULL,NULL,NULL,0,NULL,NULL 25193,2526956,460404,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 25194,567952,644579,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 25195,130328,317399,NULL,NULL,NULL,0,NULL,NULL 25196,29463,132913,Editor Scholar Yearling Student Yearling Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 25197,59205,815875,NULL,NULL,NULL,0,NULL,NULL 25198,23970,421171,NULL,NULL,NULL,0,NULL,NULL 25199,223465,708359,Editor Popular Question Census Notable Question Informed,NULL,NULL,0,NULL,NULL 25200,171724,529828,Supporter,NULL,NULL,0,NULL,NULL 25201,35474,511570,Informed,NULL,NULL,0,NULL,NULL 25202,35456,1516363,NULL,NULL,NULL,0,NULL,NULL 25203,205690,1134952,Critic Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 25204,589575,853548,NULL,NULL,NULL,0,NULL,NULL 25205,39483,951577,Good Question Yearling Nice Question Popular Question Famous Question Good Question Self-Learner Census Yearling Custodian,NULL,NULL,0,NULL,NULL 25206,404492,654172,NULL,NULL,NULL,0,NULL,NULL 25207,117458,949449,Editor Teacher Autobiographer Scholar,NULL,NULL,0,NULL,NULL 25208,167869,232282,Informed Autobiographer Caucus Yearling,NULL,NULL,0,NULL,NULL 25209,782923,548486,NULL,NULL,NULL,0,NULL,NULL 25210,279727,1298154,Student Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25211,1353522,1298154,Student Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25212,1003355,1086737,NULL,NULL,NULL,0,NULL,NULL 25213,115429,548493,NULL,NULL,NULL,0,NULL,NULL 25214,1892,604145,Revival,NULL,NULL,0,NULL,NULL 25215,3326,283607,Notable Question Announcer Notable Question Nice Question Popular Question Popular Question Self-Learner Civic Duty Notable Question Yearling Favorite Question Nice Answer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 25216,567200,4017,NULL,NULL,NULL,0,NULL,NULL 25217,1554070,1196603,Announcer Yearling java Nice Answer Nice Answer Good Answer Caucus Constituent Nice Answer Yearling Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Yearling Caucus Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25218,118536,1196603,Announcer Yearling java Nice Answer Nice Answer Good Answer Caucus Constituent Nice Answer Yearling Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Yearling Caucus Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25219,399066,1018014,NULL,NULL,NULL,0,NULL,NULL 25220,72979,243083,Yearling Necromancer Yearling Revival Guru Necromancer Yearling,NULL,NULL,0,NULL,NULL 25221,637533,1497649,NULL,NULL,NULL,0,NULL,NULL 25222,152547,648227,NULL,NULL,NULL,0,NULL,NULL 25223,636091,1323714,NULL,NULL,NULL,0,NULL,NULL 25224,7766870,937292,NULL,NULL,NULL,0,NULL,NULL 25225,301569,771674,NULL,NULL,NULL,0,NULL,NULL 25226,411453,970863,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25227,2384976,1112137,NULL,NULL,NULL,0,NULL,NULL 25228,489577,1494118,NULL,NULL,NULL,0,NULL,NULL 25229,152272,308761,NULL,NULL,NULL,0,NULL,NULL 25230,459858,971644,NULL,NULL,NULL,0,NULL,NULL 25231,10893975,971644,NULL,NULL,NULL,0,NULL,NULL 25232,654955,868732,Necromancer,NULL,NULL,0,NULL,NULL 25233,2071525,868732,Necromancer,NULL,NULL,0,NULL,NULL 25234,125952,49811,Yearling Excavator Nice Answer Enlightened Student Yearling,NULL,NULL,0,NULL,NULL 25235,41951,80601,Yearling Nice Answer Good Answer Guru Guru Good Answer Yearling Guru Good Answer Good Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25236,307842,492027,NULL,NULL,NULL,0,NULL,NULL 25237,150789,371948,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25238,313807,1013011,NULL,NULL,NULL,0,NULL,NULL 25239,1344858,1109590,Notable Question,NULL,NULL,0,NULL,NULL 25240,286000,1369363,Popular Question Supporter Commentator Yearling Yearling Nice Answer Enlightened Mortarboard Yearling Yearling Yearling Caucus Custodian Critic Census Caucus Yearling Informed Tumbleweed,NULL,NULL,0,NULL,NULL 25241,201248,188462,Yearling Great Answer,NULL,NULL,0,NULL,NULL 25242,7444,600313,Nice Answer Caucus Popular Question Notable Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 25243,491,438499,Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 25244,375642,256785,Yearling Guru Popular Question Nice Question Yearling Popular Question Notable Question Nice Answer Popular Question Popular Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 25245,294959,167457,NULL,NULL,NULL,0,NULL,NULL 25246,105805,510841,NULL,NULL,NULL,0,NULL,NULL 25247,464443,395797,NULL,NULL,NULL,0,NULL,NULL 25248,318698,716064,NULL,NULL,NULL,0,NULL,NULL 25249,924206,1432711,NULL,NULL,NULL,0,NULL,NULL 25250,279858,389356,Popular Question,NULL,NULL,0,NULL,NULL 25251,196966,1288729,NULL,NULL,NULL,0,NULL,NULL 25252,356693,180824,Necromancer Yearling Notable Question Good Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 25253,101844,849006,NULL,NULL,NULL,0,NULL,NULL 25254,3502656,1202500,Good Answer Popular Question Revival Yearling Nice Answer Popular Question Notable Question Notable Question Notable Question Famous Question Yearling Nice Answer Notable Question Popular Question Announcer Popular Question Announcer Yearling Necromancer Notable Question,NULL,pThe following will work on Linux but not OSX ppThis doesn rely on DNS at all and it works even if code etc hosts code is not set correctly code1 code is shorthand for code1 code ppre codeip route get awk print NF exit code prepor avoiding codeawk code and using Google public DNS at code8 code for obviousness ppre codeip route get head cut f8 code prepA less reliable way see comment below ppre codehostname cut f1 code pre Note that ip route get head cut f8 doesn work for local network IPs only for remote ones as the output of ip route get is different then the via 192 168 part is missing You need to change f8 to f6 then Or simply use the awk solution which works reliable in all of those cases for me strong TL DR at the bottom strong ppI would use the codeQFileInfo code class href http qt project org doc qt qfileinfo html rel noreferrer docs this is exactly what it is made for pblockquote pThe QFileInfo class provides system independent file information pQFileInfo provides information about file name and position path in the file system its access rights and whether it is directory or symbolic link etc The file size and last modified read times are also available QFileInfo can also be used to obtain information about Qt resource blockquotepThis is the source code to check whether file exists ppre code include lt QFileInfo gt code prep em don forget to add the corresponding code include code statement em ppre codebool fileExists QString path QFileInfo check file path check if file exists and if yes Is it really file and no directory if check file exists amp amp check file isFile return true else return false code prepAlso consider Do you only want to check if the path exists codeexists code or do you want to also make sure that this is file and not directory codeisFile code pp strongBe careful strong The documentation of the codeexists code function says pblockquote pReturns true if the file exists otherwise returns false pNote If file is symlink that points to non existing file false is returned blockquotep strongThis is not precise strong It should be pblockquote pReturns true if the path file or directory exists otherwise returns false blockquotehrp strongTL DR strong pp em with shorter version of the function above saving few lines of code em ppre code include lt QFileInfo gt bool fileExists QString path QFileInfo check file path check if path exists and if yes Is it really file and no directory return check file exists amp amp check file isFile code prep strongTL DR for Qt strong pp em using codeexists code as codestatic code which was introduce in Qt the docs say the static function is faster though not sure this is still the case when also using the codeisFile code method at least this is one liner then em ppre code include lt QFileInfo gt check if path exists and if yes Is it file and no directory bool fileExists QFileInfo exists path amp amp QFileInfo path isFile code pre Thanks for your comment Of course you are right although it is also matter of taste ve added your version too will leave the longer version here as it might be easier to follow for beginners strong TL DR at the bottom strong ppI would use the codeQFileInfo code class href http qt project org doc qt qfileinfo html rel noreferrer docs this is exactly what it is made for pblockquote pThe QFileInfo class provides system independent file information pQFileInfo provides information about file name and position path in the file system its access rights and whether it is directory or symbolic link etc The file size and last modified read times are also available QFileInfo can also be used to obtain information about Qt resource blockquotepThis is the source code to check whether file exists ppre code include lt QFileInfo gt code prep em don forget to add the corresponding code include code statement em ppre codebool fileExists QString path QFileInfo check file path check if file exists and if yes Is it really file and no directory if check file exists amp amp check file isFile return true else return false code prepAlso consider Do you only want to check if the path exists codeexists code or do you want to also make sure that this is file and not directory codeisFile code pp strongBe careful strong The documentation of the codeexists code function says pblockquote pReturns true if the file exists otherwise returns false pNote If file is symlink that points to non existing file false is returned blockquotep strongThis is not precise strong It should be pblockquote pReturns true if the path file or directory exists otherwise returns false blockquotehrp strongTL DR strong pp em with shorter version of the function above saving few lines of code em ppre code include lt QFileInfo gt bool fileExists QString path QFileInfo check file path check if path exists and if yes Is it really file and no directory return check file exists amp amp check file isFile code prep strongTL DR for Qt strong pp em using codeexists code as codestatic code which was introduce in Qt the docs say the static function is faster though not sure this is still the case when also using the codeisFile code method at least this is one liner then em ppre code include lt QFileInfo gt check if path exists and if yes Is it file and no directory bool fileExists QFileInfo exists path amp amp QFileInfo path isFile code pre Thanks for the hint it fixed now strong TL DR at the bottom strong ppI would use the codeQFileInfo code class href http qt project org doc qt qfileinfo html rel noreferrer docs this is exactly what it is made for pblockquote pThe QFileInfo class provides system independent file information pQFileInfo provides information about file name and position path in the file system its access rights and whether it is directory or symbolic link etc The file size and last modified read times are also available QFileInfo can also be used to obtain information about Qt resource blockquotepThis is the source code to check whether file exists ppre code include lt QFileInfo gt code prep em don forget to add the corresponding code include code statement em ppre codebool fileExists QString path QFileInfo check file path check if file exists and if yes Is it really file and no directory if check file exists amp amp check file isFile return true else return false code prepAlso consider Do you only want to check if the path exists codeexists code or do you want to also make sure that this is file and not directory codeisFile code pp strongBe careful strong The documentation of the codeexists code function says pblockquote pReturns true if the file exists otherwise returns false pNote If file is symlink that points to non existing file false is returned blockquotep strongThis is not precise strong It should be pblockquote pReturns true if the path file or directory exists otherwise returns false blockquotehrp strongTL DR strong pp em with shorter version of the function above saving few lines of code em ppre code include lt QFileInfo gt bool fileExists QString path QFileInfo check file path check if path exists and if yes Is it really file and no directory return check file exists amp amp check file isFile code prep strongTL DR for Qt strong pp em using codeexists code as codestatic code which was introduce in Qt the docs say the static function is faster though not sure this is still the case when also using the codeisFile code method at least this is one liner then em ppre code include lt QFileInfo gt check if path exists and if yes Is it file and no directory bool fileExists QFileInfo exists path amp amp QFileInfo path isFile code pre ck Be careful your edit is not really correct It is right that the docs say that the static function is faster However the docs are quite unprecise about what the function really does The exists function static or not only checks if the path exists not if there is file So if there is directory with the given path then your suggestion will also return true just tested it on my system with Qt 10 strong TL DR at the bottom strong ppI would use the codeQFileInfo code class href http qt project org doc qt qfileinfo html rel noreferrer docs this is exactly what it is made for pblockquote pThe QFileInfo class provides system independent file information pQFileInfo provides information about file name and position path in the file system its access rights and whether it is directory or symbolic link etc The file size and last modified read times are also available QFileInfo can also be used to obtain information about Qt resource blockquotepThis is the source code to check whether file exists ppre code include lt QFileInfo gt code prep em don forget to add the corresponding code include code statement em ppre codebool fileExists QString path QFileInfo check file path check if file exists and if yes Is it really file and no directory if check file exists amp amp check file isFile return true else return false code prepAlso consider Do you only want to check if the path exists codeexists code or do you want to also make sure that this is file and not directory codeisFile code pp strongBe careful strong The documentation of the codeexists code function says pblockquote pReturns true if the file exists otherwise returns false pNote If file is symlink that points to non existing file false is returned blockquotep strongThis is not precise strong It should be pblockquote pReturns true if the path file or directory exists otherwise returns false blockquotehrp strongTL DR strong pp em with shorter version of the function above saving few lines of code em ppre code include lt QFileInfo gt bool fileExists QString path QFileInfo check file path check if path exists and if yes Is it really file and no directory return check file exists amp amp check file isFile code prep strongTL DR for Qt strong pp em using codeexists code as codestatic code which was introduce in Qt the docs say the static function is faster though not sure this is still the case when also using the codeisFile code method at least this is one liner then em ppre code include lt QFileInfo gt check if path exists and if yes Is it file and no directory bool fileExists QFileInfo exists path amp amp QFileInfo path isFile code pre ck Sure tested with Qt under Windows https gist github com mozzbozz 2e83d7e3452a07fa817980403c42eade Yes think this is misunderstanding meant the exists function static or not returns true if the given path is directory However the question was How do check whether file exists and not directory Take look at the linked code snippet hope that explains what mean,0,NULL,NULL 25255,241102,1236962,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 25256,120416,962187,NULL,NULL,NULL,0,NULL,NULL 25257,329636,133970,NULL,NULL,NULL,0,NULL,NULL 25258,155842,289316,Autobiographer Popular Question Scholar,NULL,NULL,0,NULL,NULL 25259,252348,406155,NULL,NULL,NULL,0,NULL,NULL 25260,338391,1104405,Necromancer,NULL,NULL,0,NULL,NULL 25261,43510,1343801,NULL,NULL,NULL,0,NULL,NULL 25262,1133131,612579,NULL,NULL,NULL,0,NULL,NULL 25263,1098391,1496204,NULL,NULL,NULL,0,NULL,NULL 25264,787240,1320569,NULL,NULL,NULL,0,NULL,NULL 25265,530404,321833,NULL,NULL,NULL,0,NULL,NULL 25266,1022265,275629,Yearling,NULL,NULL,0,NULL,NULL 25267,1124513,1038376,NULL,NULL,NULL,0,NULL,NULL 25268,1507675,1049733,Supporter,NULL,NULL,0,NULL,NULL 25269,1492832,1374105,NULL,NULL,NULL,0,NULL,NULL 25270,90619,99127,Informed Custodian Citizen Patrol Yearling Popular Question Announcer Necromancer Popular Question Nice Answer Enlightened Custodian Popular Question Yearling Nice Answer Custodian Announcer Good Answer Custodian Census Civic Duty Announcer Good Answer Enthusiast Good Answer Yearling Organizer Self-Learner Promoter Benefactor Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 25271,84253,1364735,NULL,NULL,NULL,0,NULL,NULL 25272,322062,357716,Necromancer,NULL,NULL,0,NULL,NULL 25273,491650,680373,Critic,NULL,NULL,0,NULL,NULL 25274,156644,325068,Notable Question Notable Question Enthusiast Necromancer Popular Question Popular Question Documentation User Nice Question Popular Question,NULL,NULL,0,NULL,NULL 25275,62425,491833,Notable Question Yearling Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25276,158860,669433,NULL,NULL,NULL,0,NULL,NULL 25277,457473,1513565,NULL,NULL,NULL,0,NULL,NULL 25278,426579,908496,Yearling,NULL,NULL,0,NULL,NULL 25279,2973,875930,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25280,423042,995182,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 25281,418904,759499,NULL,NULL,NULL,0,NULL,NULL 25282,6832,1542722,NULL,NULL,NULL,0,NULL,NULL 25283,120609,91257,Popular Question Popular Question Caucus Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 25284,498329,1210165,Yearling Necromancer Yearling Nice Answer Notable Question Enlightened Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 25285,25317,36715,NULL,NULL,NULL,0,NULL,NULL 25286,1062108,981337,Yearling Census,NULL,NULL,0,NULL,NULL 25287,61365,47875,Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 25288,592711,67035,NULL,NULL,NULL,0,NULL,NULL 25289,3340,450746,NULL,NULL,NULL,0,NULL,NULL 25290,505316,975627,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25291,53448,753202,Notable Question Popular Question Peer Pressure Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25292,552055,753202,Notable Question Popular Question Peer Pressure Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25293,349099,386004,NULL,NULL,NULL,0,NULL,NULL 25294,416951,544160,Revival,NULL,NULL,0,NULL,NULL 25295,168771,764945,Informed,NULL,NULL,0,NULL,NULL 25296,251052,1345347,NULL,NULL,NULL,0,NULL,NULL 25297,74478,167410,Yearling,NULL,NULL,0,NULL,NULL 25298,71937,267581,NULL,NULL,NULL,0,NULL,NULL 25299,55716,30098,Self-Learner Famous Question Good Question Popular Question Yearling Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 25300,677975,625969,NULL,NULL,NULL,0,NULL,NULL 25301,122023,877024,Famous Question Nice Question Enthusiast Revival,NULL,NULL,0,NULL,NULL 25302,313481,877024,Famous Question Nice Question Enthusiast Revival,NULL,NULL,0,NULL,NULL 25303,37097,175858,NULL,NULL,NULL,0,NULL,NULL 25304,28184,1415886,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 25305,108861,163612,Nice Answer Good Answer Yearling Good Answer Yearling Revival Guru Great Answer Yearling,NULL,NULL,0,NULL,NULL 25306,64066,412534,Yearling Notable Question Census,NULL,NULL,0,NULL,NULL 25307,464816,629,NULL,NULL,NULL,0,NULL,NULL 25308,52402,1335022,NULL,NULL,NULL,0,NULL,NULL 25309,37215,54404,NULL,NULL,NULL,0,NULL,NULL 25310,248264,125323,Notable Question Yearling Nice Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 25311,14130,819299,NULL,NULL,NULL,0,NULL,NULL 25312,1184412,554538,NULL,NULL,NULL,0,NULL,NULL 25313,1465804,929921,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 25314,118998,1008230,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 25315,455599,1320981,Revival,NULL,NULL,0,NULL,NULL 25316,309663,1028094,NULL,NULL,NULL,0,NULL,NULL 25317,110134,969698,Yearling Revival Promoter Benefactor Custodian Nice Answer Census Revival,NULL,NULL,0,NULL,NULL 25318,3294,177728,Strunk & White Good Answer Yearling Curious Yearling Necromancer Popular Question Archaeologist Necromancer Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 25319,149797,177728,Strunk & White Good Answer Yearling Curious Yearling Necromancer Popular Question Archaeologist Necromancer Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 25320,677748,825492,NULL,NULL,NULL,0,NULL,NULL 25321,74534,959266,NULL,NULL,NULL,0,NULL,NULL 25322,156685,1422367,Student Commentator Popular Question Supporter,NULL,NULL,0,NULL,NULL 25323,372147,967926,NULL,NULL,NULL,0,NULL,NULL 25324,7388,1515566,NULL,NULL,NULL,0,NULL,NULL 25325,7880335,1535994,NULL,NULL,NULL,0,NULL,NULL 25326,133354,1535994,NULL,NULL,NULL,0,NULL,NULL 25327,619863,280765,NULL,NULL,NULL,0,NULL,NULL 25328,10522,454804,NULL,NULL,NULL,0,NULL,NULL 25329,198010,1049703,Excavator Caucus Constituent Suffrage Vox Populi Civic Duty Citizen Patrol,NULL,NULL,0,NULL,NULL 25330,167808,1016061,NULL,NULL,NULL,0,NULL,NULL 25331,211092,494015,NULL,NULL,NULL,0,NULL,NULL 25332,1131944,1033782,Teacher Necromancer,NULL,NULL,0,NULL,NULL 25333,453972,504967,Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 25334,1332664,848268,NULL,NULL,NULL,0,NULL,NULL 25335,168790,47593,Yearling Civic Duty Nice Answer Nice Answer Good Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25336,26608,979056,Supporter,NULL,NULL,0,NULL,NULL 25337,277613,101223,Census,NULL,NULL,0,NULL,NULL 25338,75300,475204,NULL,NULL,NULL,0,NULL,NULL 25339,66161,543872,Yearling Caucus Documentation User Census Good Question,NULL,NULL,0,NULL,NULL 25340,17474,563041,Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 25341,14980,344917,NULL,NULL,NULL,0,NULL,NULL 25342,11874,99629,NULL,NULL,NULL,0,NULL,NULL 25343,24763,931082,NULL,NULL,NULL,0,NULL,NULL 25344,158034,68781,Critic,NULL,NULL,0,NULL,NULL 25345,122086,1464935,Yearling Nice Question Nice Answer Enlightened Revival Yearling,NULL,NULL,0,NULL,NULL 25346,231275,1229296,NULL,NULL,NULL,0,NULL,NULL 25347,529629,1034895,NULL,NULL,NULL,0,NULL,NULL 25348,73382,350406,Curious Yearling Nice Answer Popular Question Favorite Question Yearling Good Question Good Answer Notable Question Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 25349,139411,872003,NULL,NULL,NULL,0,NULL,NULL 25350,137604,31248,Popular Question,NULL,NULL,0,NULL,NULL 25351,2512880,1472788,NULL,NULL,NULL,0,NULL,NULL 25352,440163,1171179,NULL,NULL,NULL,0,NULL,NULL 25353,183721,1133169,Nice Question Yearling Notable Question Promoter Organizer Custodian Citizen Patrol Popular Question Caucus Notable Question Popular Question Excavator Yearling Popular Question Famous Question Notable Question Notable Question Caucus Cleanup Popular Question Popular Question Documentation User Caucus Famous Question Nice Question Popular Question Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 25354,455139,312778,NULL,NULL,NULL,0,NULL,NULL 25355,104164,1448899,Supporter,NULL,NULL,0,NULL,NULL 25356,794794,702348,NULL,NULL,NULL,0,NULL,NULL 25357,1021446,1370128,NULL,NULL,NULL,0,NULL,NULL 25358,12946,1199118,NULL,NULL,NULL,0,NULL,NULL 25359,167705,12015,NULL,NULL,NULL,0,NULL,NULL 25360,151590,539194,Student Scholar Yearling,NULL,NULL,0,NULL,NULL 25361,18429,246017,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 25362,2749881,1190632,NULL,NULL,NULL,0,NULL,NULL 25363,648716,1190632,NULL,NULL,NULL,0,NULL,NULL 25364,18602,236913,Yearling Caucus Good Answer Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 25365,449889,555631,Necromancer Notable Question Nice Answer Yearling Famous Question Popular Question Popular Question Nice Answer Yearling Good Answer Notable Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25366,695198,274030,Yearling Nice Answer Notable Question Good Answer Yearling Caucus Editor Revival Custodian Revival Famous Question Yearling Revival Commentator Necromancer,NULL,NULL,0,NULL,NULL 25367,372897,447483,NULL,NULL,NULL,0,NULL,NULL 25368,367230,897465,Yearling Custodian Caucus Excavator Popular Question Popular Question Popular Question Famous Question Nice Answer Popular Question Famous Question Yearling Documentation User Custodian Notable Question Inquisitive Notable Question Announcer Popular Question Famous Question Nice Question Good Answer Yearling Good Question Notable Question Popular Question,NULL,pEDIT My original answer will not print from an arbitrary thread ve since written proper implementation in my crash handler project href https github com kstenerud KSCrash rel noreferrer https github com kstenerud KSCrash ppSpecifically these files pulli href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace lili href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace li ulpWith some help from pulli href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach lili href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach li ulpWhat you do is pulliMake new machine context structure STRUCT MCONTEXT liliFill in its stack state using thread get state liliGet the program counter first stack trace entry and frame pointer all the rest liliStep through the stack frame pointed to by the frame pointer and store all instruction addresses in buffer for later use li ulpNote that you should pause the thread before doing this or else you can get unpredictable results ppThe stack frame is filled with structures containing two pointers pulliPointer to the next level up on the stack liliinstruction address li ulpSo you need to take that into account when walking the frame to fill out your stack trace There also the possibility of corrupted stack leading to bad pointer which will crash your program You can get around this by copying memory using vm read overwrite which first asks the kernel if it has access to the memory so it doesn crash ppOnce you have the stack trace you can just call backtrace on it like normal The crash handler has to be async safe so it implements its own backtrace method but in normal cases backtrace is fine Links doesnt work pEDIT My original answer will not print from an arbitrary thread ve since written proper implementation in my crash handler project href https github com kstenerud KSCrash rel noreferrer https github com kstenerud KSCrash ppSpecifically these files pulli href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace lili href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSBacktrace li ulpWith some help from pulli href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach lili href https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach rel noreferrer https github com kstenerud KSCrash blob master KSCrash KSCrash Reporting Tools KSMach li ulpWhat you do is pulliMake new machine context structure STRUCT MCONTEXT liliFill in its stack state using thread get state liliGet the program counter first stack trace entry and frame pointer all the rest liliStep through the stack frame pointed to by the frame pointer and store all instruction addresses in buffer for later use li ulpNote that you should pause the thread before doing this or else you can get unpredictable results ppThe stack frame is filled with structures containing two pointers pulliPointer to the next level up on the stack liliinstruction address li ulpSo you need to take that into account when walking the frame to fill out your stack trace There also the possibility of corrupted stack leading to bad pointer which will crash your program You can get around this by copying memory using vm read overwrite which first asks the kernel if it has access to the memory so it doesn crash ppOnce you have the stack trace you can just call backtrace on it like normal The crash handler has to be async safe so it implements its own backtrace method but in normal cases backtrace is fine The files doesnt seem to exist in later versions of the repo Im trying to achieve something similar http stackoverflow com questions 41298259 warning when blocking main thread Can use your framework as is for that,0,NULL,NULL 25369,125191,573991,Notable Question Commentator Critic Yearling Necromancer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 25370,102693,350403,Nice Answer Popular Question Popular Question Popular Question Custodian Notable Question Caucus Popular Question Notable Question Notable Question Notable Question Custodian Popular Question Custodian Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25371,14823,1114909,Teacher Revival,NULL,NULL,0,NULL,NULL 25372,4709649,342692,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 25373,101342,342692,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 25374,381088,707650,NULL,NULL,NULL,0,NULL,NULL 25375,219923,1087536,Informed Teacher,NULL,NULL,0,NULL,NULL 25376,22725,80911,Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Necromancer Yearling Nice Answer Enlightened Notable Question Popular Question Popular Question Nice Answer Notable Question Nice Answer Good Answer Necromancer Notable Question Famous Question Good Answer Mortarboard Explainer Nice Answer php Yearling Notable Question Popular Question Caucus rest Nice Answer Enlightened Revival Census http Good Question Nice Answer Necromancer Yearling Popular Question Great Answer Popular Question Popular Question Nice Answer post Strunk & White Necromancer Necromancer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 25377,8494840,1114606,NULL,NULL,NULL,0,NULL,NULL 25378,30528,423058,Teacher Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 25379,1930629,1524562,Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 25380,989822,518730,NULL,NULL,NULL,0,NULL,NULL 25381,891491,1284935,Tumbleweed Editor Supporter Student,NULL,NULL,0,NULL,NULL 25382,889831,1334665,NULL,NULL,NULL,0,NULL,NULL 25383,980933,616717,Custodian Citizen Patrol Yearling Caucus Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 25384,59622,867310,Necromancer,NULL,NULL,0,NULL,NULL 25385,343931,173190,Necromancer Nice Answer Yearling Caucus Critic Notable Question Notable Question Good Answer Popular Question Yearling Custodian Caucus,NULL,NULL,0,NULL,NULL 25386,308210,1375723,Student Popular Question,NULL,NULL,0,NULL,NULL 25387,256409,778830,NULL,NULL,NULL,0,NULL,NULL 25388,783342,995404,NULL,NULL,NULL,0,NULL,NULL 25389,1124201,338701,Civic Duty Caucus Constituent Custodian Popular Question Popular Question Popular Question Notable Question Custodian Yearling Nice Question Famous Question Popular Question Good Question Caucus Constituent Popular Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 25390,264233,1348564,NULL,NULL,NULL,0,NULL,NULL 25391,113080,1433693,NULL,NULL,NULL,0,NULL,NULL 25392,1202099,229151,Notable Question Notable Question Nice Question Yearling Notable Question Famous Question Nice Question Good Question Favorite Question Yearling Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 25393,334817,824760,NULL,NULL,NULL,0,NULL,NULL 25394,1665388,899898,NULL,NULL,NULL,0,NULL,NULL 25395,108988,110274,Nice Question Nice Question Necromancer Notable Question Notable Question Yearling Nice Answer Notable Question Nice Answer Good Answer Announcer Nice Answer Popular Question Popular Question Yearling Famous Question Nice Answer Electorate Disciplined Yearling,NULL,NULL,0,NULL,NULL 25396,17779,408593,Famous Question Yearling Good Answer Nice Question,NULL,NULL,0,NULL,NULL 25397,103288,1344648,Good Answer Yearling,NULL,NULL,0,NULL,NULL 25398,178186,18327,NULL,NULL,NULL,0,NULL,NULL 25399,124442,219977,Good Answer Great Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25400,138749,1177991,scala Yearling apache-spark Nice Answer Enlightened Nice Answer Organizer Tag Editor Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Famous Question Yearling Popular Question Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 25401,143948,11414,Nice Answer Popular Question Necromancer Yearling Necromancer Nice Answer Necromancer Census Nice Answer Enlightened Popular Question Revival Popular Question Good Answer Necromancer Yearling Nice Answer Good Answer Popular Question Nice Answer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25402,10054937,472153,Revival Yearling Yearling Nice Answer Enlightened Yearling Announcer,NULL,NULL,0,NULL,NULL 25403,53402,472153,Revival Yearling Yearling Nice Answer Enlightened Yearling Announcer,NULL,NULL,0,NULL,NULL 25404,432976,297131,Notable Question Nice Question Popular Question Notable Question Necromancer Popular Question Good Answer Popular Question Nice Answer Popular Question Nice Question Revival Notable Question Yearling Notable Question Autobiographer Nice Answer Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Nice Question Notable Question Nice Question Nice Answer Enlightened Popular Question Nice Answer Popular Question Nice Question Popular Question Notable Question Good Answer Notable Question Notable Question Notable Question Announcer Popular Question Popular Question Notable Question Nice Question Necromancer Nice Question Famous Question Notable Question Good Question Necromancer Popular Question Good Answer Favorite Question Good Answer Notable Question Famous Question Nice Answer Nice Answer Popular Question Notable Question Necromancer Nice Question Revival Notable Question Famous Question Notable Question Nice Question Notable Question Popular Question Good Question Popular Question Nice Question Notable Question Nice Answer Notable Question Popular Question Yearling Notable Question Good Question Good Question Notable Question Popular Question Good Question Famous Question Nice Answer Good Answer Necromancer Nice Answer Announcer Popular Question Necromancer Necromancer Nice Question Notable Question Famous Question Great Answer Popular Question Good Question Famous Question Famous Question Good Question Notable Question Popular Question Necromancer Great Question Famous Question Good Answer Popular Question Necromancer Notable Question Popular Question Good Answer Favorite Question Popular Question Yearling Caucus Good Question Famous Question Good Question Famous Question Necromancer Popular Question Nice Question Popular Question Notable Question Popular Question Nice Question Great Question Guru Nice Answer Notable Question Great Question,NULL,NULL,1,SecItemAdd always returns error 34018 in Xcode in iOS 10 simulator ios xcode ios10 xcode8 strongUpdate strong This issue has been fixed in Xcode Keychain works in the simulator without enabling keychain sharing ppWhy am emalways em receiving error 34018 when calling codeSecItemAdd code function emin Xcode iOS 10 simulator em ph2Steps to Reproduce h2pCreate new Single page iOS app project in Xcode Run the following code in codeviewDidLoad code or open href https dl dropboxusercontent com 11143285 2016 07 KeychainBugDemo zip rel noreferrer this Xcode project ppre codelet itemKey My key let itemValue My secretive bee Remove from Keychain let queryDelete String AnyObject kSecClass as String kSecClassGenericPassword kSecAttrAccount as String itemKey as AnyObject let resultCodeDelete SecItemDelete queryDelete as CFDictionary if resultCodeDelete noErr print Error deleting from Keychain resultCodeDelete Add to keychain guard let valueData itemValue data using String Encoding utf8 else print Error saving text to Keychain return let queryAdd String AnyObject kSecClass as String kSecClassGenericPassword kSecAttrAccount as String itemKey as AnyObject kSecValueData as String valueData as AnyObject kSecAttrAccessible as String kSecAttrAccessibleWhenUnlocked let resultCode SecItemAdd queryAdd as CFDictionary nil if resultCode noErr print Error saving to Keychain resultCode else print Saved to keychain successfully code preh2Expected Results h2pItem is added to Keychain ph2Actual Results h2pFunction SecItemAdd returns the following error code code 34018 code ph2Version h2pXcode version 8B62 macOS Sierra 10 12 ph2Configuration h2pAlways occurs in Xcode since Beta when testing in an iOS 10 simulator ppDoes NOT occur in Xcode when testing in an iOS simulator ph2Demo h2p href https dl dropboxusercontent com 11143285 2016 07 KeychainBugDemo zip rel noreferrer https dl dropboxusercontent com 11143285 2016 07 KeychainBugDemo zip ph2References h2pRadar href https openradar appspot com 27422249 rel noreferrer https openradar appspot com 27422249 ppApple Developer Forums href https forums developer apple com message 179846 rel noreferrer https forums developer apple com message 179846 ppThis issue is different from the following post because it occurs strongconsistently strong in Xcode href https stackoverflow com questions 20344255 secitemadd and secitemcopymatching returns error code 34018 errsecmissingentit SecItemAdd and SecItemCopyMatching returns error code 34018 errSecMissingEntitlement,Drop marker slowly from top of screen to location on android map V2 android google maps markers android maps v2 pI am using android maps v2works fine can add and remove markers onLong Touch on locations pp strongProblem strongI would like to drop the marker slowly into the touched location want the user to see the marker floating from the top of the screen to the point where it is dropped touched location ppCurrently the marker just appears on the touched location such that you have to lift you finger to see that it has been dropped It would be nice to see it coming from the top of the screen ppThanks pI have combined the MaciejGórski approach with the code from href https gist github com broady 6314689 rel noreferrer this gist In addition added bounce effect ppre codepublic class MyBounceInterpolator implements android view animation Interpolator double mAmplitude double mFrequency 10 public MyBounceInterpolator double amplitude double frequency mAmplitude amplitude mFrequency frequency public float getInterpolation float time double amplitude mAmplitude if amplitude amplitude 05 The interpolation curve equation time amplitude cos frequency time View the graph live https www desmos com calculator 6gbvrm5i0s return float Math pow Math time mAmplitude Math cos mFrequency time void dropMarker final Marker marker GoogleMap map final LatLng finalPosition new LatLng marker getPosition latitude marker getPosition longitude Projection projection map getProjection Point startPoint projection toScreenLocation finalPosition startPoint final LatLng startLatLng projection fromScreenLocation startPoint final Interpolator interpolator new MyBounceInterpolator 11 TypeEvaluator lt LatLng gt typeEvaluator new TypeEvaluator lt LatLng gt public LatLng evaluate float fraction LatLng startValue LatLng endValue float interpolator getInterpolation fraction double lng finalPosition longitude startLatLng longitude double lat finalPosition latitude startLatLng latitude return new LatLng lat lng Property lt Marker LatLng gt property Property of Marker class LatLng class position ObjectAnimator animator ObjectAnimator ofObject marker property typeEvaluator finalPosition animator setDuration 400 animator start code prep href https stack imgur com cuk6f gif rel noreferrer img src https stack imgur com cuk6f gif alt enter image description here 25405,857732,882758,Caucus Yearling,NULL,NULL,0,NULL,NULL 25406,258536,1015995,NULL,NULL,NULL,0,NULL,NULL 25407,1196162,530674,NULL,NULL,NULL,0,NULL,NULL 25408,2657051,530674,NULL,NULL,NULL,0,NULL,NULL 25409,274171,1321233,Census,NULL,NULL,0,NULL,NULL 25410,2821814,351153,NULL,NULL,NULL,0,NULL,NULL 25411,17805,351153,NULL,NULL,NULL,0,NULL,NULL 25412,2100989,732383,NULL,NULL,NULL,0,NULL,NULL 25413,99419,111026,Custodian,NULL,NULL,0,NULL,NULL 25414,268736,1192640,Supporter,NULL,NULL,0,NULL,NULL 25415,2471609,583263,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25416,417963,1286713,Supporter Teacher,NULL,NULL,0,NULL,NULL 25417,151377,977461,NULL,NULL,NULL,0,NULL,NULL 25418,151302,743296,Teacher,NULL,NULL,0,NULL,NULL 25419,159784,1169597,Yearling,NULL,NULL,0,NULL,NULL 25420,562451,1199373,NULL,NULL,NULL,0,NULL,NULL 25421,530074,1337770,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25422,178015,300881,Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Nice Question Notable Question Popular Question Nice Question Good Question Famous Question Nice Question Yearling Famous Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25423,492233,960726,NULL,NULL,NULL,0,NULL,NULL 25424,444916,127639,NULL,NULL,NULL,0,NULL,NULL 25425,82324,246886,Nice Answer Good Answer Nice Answer Good Answer Yearling Favorite Question Nice Answer Enlightened Good Answer c++ c++11 haskell Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Popular Question Nice Answer Guru Great Answer Nice Answer Nice Answer Good Answer Guru Nice Answer Popular Question Yearling Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Popular Question Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Documentation User Nice Answer Nice Answer Enlightened Nice Answer Census Yearling Good Answer Good Answer Notable Question Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Question Nice Answer haskell Good Answer Good Answer Nice Answer,NULL,pHindley Milner is strongtype system strong discovered independently by Roger Hindley who was looking at logic and later by Robin Milner who was looking at programming languages The advantages of Hindley Milner are pulli pIt supports strongpolymorphic strong functions for example function that can give you the length of the list independent of the type of the elements or function does binary tree lookup independent of the type of keys stored in the tree lili pSometimes function or value can have strongmore than one type strong as in the example of the length function it can be list of integers to integer list of strings to integer list of pairs to integer and so on In this case signal advantage of the Hindley Milner system is that strongeach well typed term has unique best type strong which is called the emprincipal type em The principal type of the list length function is for any codea code function from list of codea code to integer Here codea code is so called type parameter which is strongexplicit in lambda calculus strong but strongimplicit in most programming languages strong The use of type parameters explains why Hindley Milner is system that implements strong emparametric em polymorphism strong If you write definition of the length function in ML you can see the type parameter thus ppre code fun length length xs length xs code pre lili emIf em term has Hindley Milner type then strongthe principal type can be inferred without requiring any type declarations strong or other annotations by the programmer This is mixed blessing as anyone can attest who has ever been handled large chunk of ML code with no annotations li ulpHindley Milner is the basis for the type system of almost every statically typed functional language Such languages in common use include pulliThe ML family href http en wikipedia org wiki Standard ML rel noreferrer Standard ML and href http caml inria fr rel noreferrer Objective Caml lili href http www haskell org rel noreferrer Haskell lili href http clean cs ru nl rel noreferrer Clean li ulpAll these languages have extended Hindley Milner Haskell Clean and Objective Caml do so in ambitious and unusual ways Extensions are required to deal with mutable variables since basic Hindley Milner can be subverted using for example mutable cell holding list of values of unspecified type Such problems are dealt with by an extension called the href http users cs fiu edu smithg cop4555 valrestr html rel noreferrer emvalue restriction em ppMany other minor languages and tools based on typed functional languages use Hindley Milner ppHindley Milner is restriction of href http en wikipedia org wiki System rel noreferrer System which allows more types but which strongrequires annotations by the programmer strong few years late but for the benefit of future readers it’s called parametric polymorphism due to the property of parametricity https en wikipedia org wiki Parametricity which means for any type you plug in all instances of function like length forall Int must behave the same regardless of —it’s opaque you know nothing about it There’s no instanceof Java generics nor “duck typing” templates unless you add extra type constraints Haskell typeclasses With parametricity you can get some nice proofs about precisely what function can can’t do,0,NULL,NULL 25426,4274948,879053,NULL,NULL,NULL,0,NULL,NULL 25427,746372,993005,NULL,NULL,NULL,0,NULL,NULL 25428,6622179,993005,NULL,NULL,NULL,0,NULL,NULL 25429,55977,813632,Nice Answer Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 25430,893059,1477623,NULL,NULL,NULL,0,NULL,NULL 25431,171501,172651,Yearling Nice Question Great Question Famous Question Yearling Good Question Favorite Question Necromancer Famous Question Yearling Nice Answer Popular Question Nice Question,NULL,Change Rails application to production ruby on rails development environment production environment pHow can change my Rails application to run in production mode Is there config file environment rb for example to do that It seems that the second answer has lots more votes would you be willing to give this quick review and accept the second answer unless you have any issue with it Will just help future visitors Thx pThought add another solution as it does things little differently and includes more colour codes ppFirst some examples ppUsing method chaining ppre codeString include AnsiTextStyles puts How are you blue bold am good red boldputs How are you blue bold am good red bold code prepUsing the codestyle code method and applying multiple attributes ppre codeputs How are you style red puts am good style blue underline puts Good to hear style bg magenta blink code prepThis can be used to store style attributes in some manner to apply later ppre codetext styles red bold red bold blue underline blue underline pretty bg magenta blink text styles each do name style styled text Text styled multiple ways style style puts name styled text end code prepI ve given few more examples on href https gist github com br3nt 762f232cb37cd1b4834288d4a1c4d243 rel nofollow this gist created and expanded the code to include refinements so that modifications to String are scoped ppThis is the basic code ppre codemodule AnsiTextStyles TEXT ATTRIBUTES text properties none turn off all attributes bold bright these do the same thing really italic underline blink reverse swap foreground and background colours hide foreground color same as background foreground colours black 30 grey 90 lt grey 37 white gt 97 red 31 lt red 91 green 32 lt green 92 dk yellow 33 brown 33 yellow 93 blue 34 lt blue 94 magenta 35 pink 95 lt magenta 95 cyan 36 lt cyan 96 default 39 background colours bg black 40 bg grey 100 bg lt grey 47 bg white 107 bg red 41 bg lt red 101 bg green 42 bg lt green 102 bg dk yellow 43 bg brown 43 bg yellow 103 bg blue 44 bg lt blue 104 bg magenta 45 bg pink 105 bg lt magenta 105 bg cyan 46 bg lt cyan 106 def self text attributes TEXT ATTRIBUTES keys end applies the text attributes to the current string def style text attributes codes TEXT ATTRIBUTES values at text attributes flatten compact sm codes join self to endend code pre Nice one Thanks for the addition sure few peeps will find this useful love the clever use of method chaining,0,NULL,NULL 25432,123476,225610,NULL,NULL,NULL,0,NULL,NULL 25433,72431,595304,Yearling Guru Good Answer Nice Answer Custodian Popular Question Custodian Proofreader Caucus Yearling Custodian Nice Question Good Answer Yearling Notable Question Great Answer,NULL,NULL,0,NULL,NULL 25434,886891,1004621,NULL,NULL,NULL,0,NULL,NULL 25435,54985,1538695,Yearling Editor,NULL,NULL,0,NULL,NULL 25436,1206172,5102,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 25437,982294,408513,NULL,NULL,NULL,0,NULL,NULL 25438,33688,1153110,NULL,NULL,NULL,0,NULL,NULL 25439,186110,1362889,NULL,NULL,NULL,0,NULL,NULL 25440,682332,1309700,NULL,NULL,NULL,0,NULL,NULL 25441,122166,799178,NULL,NULL,NULL,0,NULL,NULL 25442,190744,227970,Nice Question Popular Question Notable Question Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 25443,10736154,1180472,NULL,NULL,NULL,0,NULL,NULL 25444,575573,1180472,NULL,NULL,NULL,0,NULL,NULL 25445,1180113,991479,Yearling Nice Answer Guru Custodian Custodian Good Answer Caucus Custodian Yearling Good Answer Census Caucus Yearling Guru,NULL,NULL,0,NULL,NULL 25446,265313,724188,Nice Question Popular Question Notable Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 25447,373834,251715,Popular Question Yearling Popular Question Custodian Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25448,53540,205821,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 25449,288100,1095742,Necromancer Nice Answer Yearling Yearling Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 25450,92314,1107268,NULL,NULL,NULL,0,NULL,NULL 25451,577504,218269,Yearling Yearling,NULL,NULL,0,NULL,NULL 25452,34816,1324858,NULL,NULL,NULL,0,NULL,NULL 25453,898051,396193,Nice Answer Informed,NULL,NULL,0,NULL,NULL 25454,640952,102825,NULL,NULL,NULL,0,NULL,NULL 25455,6108,197319,Nice Answer Notable Question Yearling Famous Question Guru Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 25456,299106,1484286,Supporter Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25457,64478,817010,NULL,NULL,NULL,0,NULL,NULL 25458,251556,169335,Popular Question Notable Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 25459,47491,801987,NULL,NULL,NULL,0,NULL,NULL 25460,178021,431161,NULL,NULL,NULL,0,NULL,NULL 25461,104251,359362,Critic Popular Question Necromancer Promoter Benefactor Nice Answer,NULL,NULL,0,NULL,NULL 25462,374709,234353,Teacher Documentation User,NULL,NULL,0,NULL,NULL 25463,299012,859805,Nice Question Curious Famous Question,NULL,NULL,0,NULL,NULL 25464,242067,1136244,NULL,NULL,NULL,0,NULL,NULL 25465,665,148693,NULL,NULL,NULL,0,NULL,NULL 25466,289540,699204,Popular Question Self-Learner Necromancer Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 25467,417826,1174819,NULL,NULL,NULL,0,NULL,NULL 25468,511206,204434,NULL,NULL,NULL,0,NULL,NULL 25469,347784,328916,NULL,NULL,NULL,0,NULL,NULL 25470,492494,833683,NULL,NULL,NULL,0,NULL,NULL 25471,517960,775128,NULL,NULL,NULL,0,NULL,NULL 25472,287402,775128,NULL,NULL,NULL,0,NULL,NULL 25473,187561,18243,Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer Enlightened Revival Great Answer sockets Nice Answer Custodian Nice Answer Cleanup Nice Answer Enlightened Caucus Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Good Answer Good Answer Caucus Good Answer Guru Nice Answer Popular Question Yearling Nice Answer Nice Answer Enlightened,NULL,pYou can use the WSGI support in Twisted Web codetwistd code plugin to shorten this and make it more easily configurable Create module like this ppre codefrom pyramid paster import get appconfig path to app production ini myApp get app config main code prepThen run codetwistd code like this ppre code twistd web port tcp 8888 wsgi foo myApp code prepWhere codefoo code is the name of the module you create thanks edited answer,0,NULL,NULL 25474,8962,1116295,Editor Commentator Census,NULL,NULL,0,NULL,NULL 25475,1274385,928544,Necromancer Supporter,NULL,NULL,0,NULL,NULL 25476,197587,928544,Necromancer Supporter,NULL,NULL,0,NULL,NULL 25477,18294,277994,Announcer Custodian Informed Custodian Popular Question Yearling Yearling Nice Answer Enlightened Announcer Announcer Announcer Yearling Announcer Popular Question Announcer Announcer,NULL,pA temporary fix is to set the version of Thor in your gemfile to the last release ppre codegem thor 19 code prepIt seems the latest gem release broke it Once that gets fixed then this error should go away ppFor anyone having trouble creating new Ruby on Rails application or anything else like middleman you can uninstall Thor and install the older version specifically ppre codegem uninstall thorgem install thor 19 code pre know right just created brand new Rails app and was like wait what Turns out that gem got updated about an hour ago so looks like anyone making new Rails app in the past hour will have run into this Hopefully they fix the gem soon,1,NULL,Error Validate default type An option default must match its type ArgumentError when running Ruby on Rails generate on Windows ruby on rails ruby pI am following href http guides rubyonrails org getting started html rel nofollow noreferrer this tutorial and have just started have installed Ruby on Rails with codegem install rails code and have created blog with coderails new blog code ppThe tutorial now says that need to run coderails generate controller Welcome index code however when do get this error ppre codeC Ruby22 lib ruby gems gems thor 19 lib thor parser option rb 130 in validate default type An option default must match its type ArgumentError from Ruby22 lib ruby gems gems thor 19 lib thor parser option rb 113 in validate from Ruby22 lib ruby gems gems thor 19 lib thor parser argument rb 24 in initialize from Ruby22 lib ruby gems gems thor 19 lib thor parser option rb in initialize from Ruby22 lib ruby gems gems thor 19 lib thor base rb 544 in new from Ruby22 lib ruby gems gems thor 19 lib thor base rb 544 in build option from Ruby22 lib ruby gems gems thor 19 lib thor base rb 278 in class option from Ruby22 lib ruby gems gems railties lib rails generators base rb 202 in class option from Ruby22 lib ruby gems gems railties lib rails generators base rb 178 in block in hook for from Ruby22 lib ruby gems gems railties lib rails generators base rb 168 in each from Ruby22 lib ruby gems gems railties lib rails generators base rb 168 in hook for from Ruby22 lib ruby gems gems jbuilder lib generators rails scaffold controller generator rb in lt class ScaffoldControllerGenerator gt from Ruby22 lib ruby gems gems jbuilder lib generators rails scaffold controller generator rb in lt module Generators gt from Ruby22 lib ruby gems gems jbuilder lib generators rails scaffold controller generator rb in lt module Rails gt from Ruby22 lib ruby gems gems jbuilder lib generators rails scaffold controller generator rb in lt top required gt from Ruby22 lib ruby gems gems activesupport lib active support dependencies rb 293 in require from Ruby22 lib ruby gems gems activesupport lib active support dependencies rb 293 in block in require from Ruby22 lib ruby gems gems activesupport lib active support dependencies rb 259 in load dependency from Ruby22 lib ruby gems gems activesupport lib active support dependencies rb 293 in require from Ruby22 lib ruby gems gems jbuilder lib jbuilder railtie rb 32 in block in lt class Railtie gt from Ruby22 lib ruby gems gems railties lib rails railtie rb 230 in call from Ruby22 lib ruby gems gems railties lib rails railtie rb 230 in block in run generators blocks from Ruby22 lib ruby gems gems railties lib rails railtie rb 247 in each from Ruby22 lib ruby gems gems railties lib rails railtie rb 247 in each registered block from Ruby22 lib ruby gems gems railties lib rails railtie rb 230 in run generators blocks from Ruby22 lib ruby gems gems railties lib rails application rb 453 in block in run generators blocks from Ruby22 lib ruby gems gems railties lib rails engine railties rb 13 in each from Ruby22 lib ruby gems gems railties lib rails engine railties rb 13 in each from Ruby22 lib ruby gems gems railties lib rails application rb 453 in run generators blocks from Ruby22 lib ruby gems gems railties lib rails engine rb 465 in load generators from Ruby22 lib ruby gems gems railties lib rails commands commands tasks rb 144 in generate or destroy from Ruby22 lib ruby gems gems railties lib rails commands commands tasks rb 60 in generate from Ruby22 lib ruby gems gems railties lib rails commands commands tasks rb 49 in run command from Ruby22 lib ruby gems gems railties lib rails commands rb 18 in lt top required gt from bin rails in require from bin rails in lt main gt code prepI have found similar question on Stack Overflow asking the same question href https stackoverflow com questions 32552782 thor argument error when trying to create new rails app here but the poster never responded when asked to show his codegem list code So here mine ppre codeactioncable actionmailer actionpack actionview activejob activemodel activerecord activesupport arel bigdecimal default builder bundler 13 coffee rails coffee script coffee script source 11 concurrent ruby debug inspector erubis execjs globalid i18n io console default jbuilder jquery rails json default loofah mail method source mime types mime types data 2016 0521 mini portile2 minitest multi json 12 nio4r nokogiri x86 mingw32 power assert psych default puma rack rack protection rack test rails rails dom testing rails html sanitizer railties rake 11 default 10 rdoc default sass 22 sass rails sinatra sprockets sprockets rails sqlite3 12 x86 mingw32 test unit thor 19 19 thread safe tilt turbolinks turbolinks source tzinfo tzinfo data 2016 10 uglifier web console websocket driver websocket extensions code prepHas anybody encountered this error before If so how did you resolve it pA temporary fix is to set the version of Thor in your gemfile to the last release ppre codegem thor 19 code prepIt seems the latest gem release broke it Once that gets fixed then this error should go away ppFor anyone having trouble creating new Ruby on Rails application or anything else like middleman you can uninstall Thor and install the older version specifically ppre codegem uninstall thorgem install thor 19 code pre 25478,490481,187010,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25479,75883,189814,Notable Question Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 25480,598406,1027323,NULL,NULL,NULL,0,NULL,NULL 25481,65123,99361,NULL,NULL,NULL,0,NULL,NULL 25482,407551,268350,NULL,NULL,NULL,0,NULL,NULL 25483,8005,247619,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25484,315454,468675,NULL,NULL,NULL,0,NULL,NULL 25485,117398,313213,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25486,201771,667713,Yearling,NULL,NULL,0,NULL,NULL 25487,63948,550852,Popular Question Popular Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25488,1092959,1021558,NULL,NULL,NULL,0,NULL,NULL 25489,514938,1109555,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25490,261335,1376482,NULL,NULL,NULL,0,NULL,NULL 25491,202996,844206,Nice Question Nice Answer Yearling Good Answer Famous Question Populist Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 25492,192815,1245816,NULL,NULL,NULL,0,NULL,NULL 25493,675389,1386149,NULL,NULL,NULL,0,NULL,NULL 25494,241900,507043,Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Autobiographer Nice Question Excavator Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Caucus Constituent Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Notable Question Nice Question Custodian Custodian Custodian Popular Question Nice Question Notable Question Popular Question Nice Answer Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Yearling Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Notable Question Cleanup Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25495,100177,698295,NULL,NULL,NULL,0,NULL,NULL 25496,1026421,1418886,Caucus Student Yearling Necromancer Caucus Self-Learner Yearling Nice Answer Caucus Constituent Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 25497,1504730,184850,NULL,NULL,NULL,0,NULL,NULL 25498,1110204,290010,Yearling Nice Question,NULL,NULL,0,NULL,NULL 25499,55220,506954,Curious Critic Self-Learner Announcer Caucus Constituent Necromancer Yearling Announcer Yearling Announcer Documentation User Popular Question Nice Answer Popular Question Nice Question Custodian Custodian Announcer Necromancer Yearling Organizer Explainer Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 25500,350885,721861,Self-Learner Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25501,79413,418675,Popular Question,NULL,NULL,0,NULL,NULL 25502,335973,1010770,Supporter Popular Question,NULL,NULL,0,NULL,NULL 25503,478982,943460,NULL,NULL,NULL,0,NULL,NULL 25504,196334,781968,Student Popular Question,NULL,NULL,0,NULL,NULL 25505,525973,543554,Yearling Documentation User,NULL,NULL,0,NULL,NULL 25506,429358,470548,NULL,NULL,NULL,0,NULL,NULL 25507,168825,657852,Yearling Famous Question Popular Question Yearling Yearling Nice Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 25508,1728252,657155,NULL,NULL,NULL,0,NULL,NULL 25509,94394,657155,NULL,NULL,NULL,0,NULL,NULL 25510,818396,527505,Famous Question Notable Question Good Question Good Question Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25511,990694,125555,Nice Answer,NULL,NULL,0,NULL,NULL 25512,1252995,820775,NULL,NULL,NULL,0,NULL,NULL 25513,1017443,1101710,Nice Answer Critic Yearling Civic Duty Announcer Necromancer,NULL,NULL,0,NULL,NULL 25514,313494,451710,Yearling Necromancer Critic Necromancer Necromancer Necromancer Yearling Nice Answer Nice Answer Announcer Nice Answer Necromancer Yearling Electorate Custodian Necromancer Yearling Revival Necromancer Nice Answer Yearling Nice Answer Caucus Yearling Necromancer Necromancer Necromancer Custodian Good Answer Necromancer python Good Answer Necromancer Good Answer Guru Necromancer Nice Answer Nice Question Necromancer Popular Question Popular Question Announcer Nice Answer Nice Answer Nice Answer Necromancer Organizer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 25515,97173,624466,Necromancer Yearling Necromancer Nice Answer Necromancer Nice Answer Nice Answer Guru Yearling Announcer Revival Good Answer Yearling Custodian Announcer Notable Question Good Answer Guru Nice Answer,NULL,pThe RPC API was never meant for public use and Google changed authentication in order to prevent abuse Thus the code that you posted does not work any longer However found much simpler solution pp strongUpdate 23 01 2013 strong Google blocked this URL in december 2012 so this method doesn work any longer brstrongUpdate 15 05 2013 strong The method works again ppre code lt php Get the numeric total count of 1s from Google users for given URL Stephan Schmitz lt eyecatchup com gt Copyright 2013 Stephan Schmitz http eyecatchup mit license org MIT License lt href https gist github com eyecatchup 8495140 gt Source lt gt url string The URL to check the count for intval The total count of 1s function getGplusShares url url sprintf https plusone google com fastbutton url urlencode url preg match all file get contents url match PREG SET ORDER return sizeof match amp amp sizeof match intval match code prehrp strongUpdate 18 01 2014 strong Here an improved version that uses curl fallback host and does some error handling the latest version can be found here href https gist github com eyecatchup 8495140 rel nofollow noreferrer https gist github com eyecatchup 8495140 ppre code lt php GetPlusOnesByURL Get the numeric total count of 1s from Google users for given URL Example usage lt code gt url http www facebook com printf The URL received 1s from Google users url GetPlusOnesByURL url lt code gt Stephan Schmitz lt eyecatchup com gt Copyright 2014 Stephan Schmitz http eyecatchup mit license org MIT License lt href https gist github com eyecatchup 8495140 gt Source lt gt lt href http stackoverflow com 13385591 624466 gt Read more lt gt url string The URL to check the count for intval The total count of 1s function GetPlusOnesByURL url url amp amp die No URL no results filter var url FILTER VALIDATE URL amp amp die sprintf PHP said is not valid URL url foreach array apis plusone as host ch curl init sprintf https google com fastbutton url host urlencode url curl setopt array ch array CURLOPT FOLLOWLOCATION gt CURLOPT RETURNTRANSFER gt CURLOPT SSL VERIFYPEER gt CURLOPT USERAGENT gt Mozilla Windows NT WOW64 AppleWebKit 537 36 KHTML like Gecko Chrome 32 1700 72 Safari 537 36 response curl exec ch curlinfo curl getinfo ch curl close ch if 200 curlinfo http code amp amp lt strlen response break response response amp amp die Requests to Google server fail preg match all window SSR response match PREG SET ORDER return sizeof match amp amp sizeof match intval match code prehrp strongUpdate 02 11 2017 strong The count is officially dead As announced in href https plus google com 110610523830483756510 posts Z1FfzduveUo rel nofollow noreferrer this Google Post by Product Manager John Nack Google recently removed the share count aka Count from their web Sharing buttons em They claim that the purpose of this move is for making the button and share box load more quickly em As announced in this Google Post https plus google com 110610523830483756510 posts Z1FfzduveUo by Product Manager John Nack Google recently removed the share count aka Count from their web Sharing buttons They claim that the purpose of this move is for making the button and share box load more quickly,0,NULL,NULL 25516,802863,266578,Yearling Popular Question Famous Question Self-Learner Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 25517,18191,47635,NULL,NULL,NULL,0,NULL,NULL 25518,50912,794968,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 25519,606776,566279,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 25520,846483,945753,Notable Question,NULL,NULL,0,NULL,NULL 25521,2339947,430863,Yearling,NULL,NULL,0,NULL,NULL 25522,7479376,168775,Reviewer Popular Question Notable Question Necromancer Nice Question Popular Question Popular Question Talkative Good Answer Yearling Announcer Good Answer Nice Answer Enlightened Notable Question Caucus Notable Question Constituent Great Question Great Question Nice Answer Announcer Popular Question Necromancer Popular Question Popular Question Caucus Constituent Guru Yearling Favorite Question Documentation User Great Answer Popular Question Announcer Announcer Announcer Necromancer Caucus Popular Question Constituent Notable Question Great Answer Popular Question Yearling Nice Answer regex Favorite Question,NULL,NULL,0,NULL,NULL 25523,39441,173661,Commentator Necromancer Critic,NULL,NULL,0,NULL,NULL 25524,151610,668493,Popular Question Popular Question Revival Custodian,NULL,NULL,0,NULL,NULL 25525,401900,591731,NULL,NULL,NULL,0,NULL,NULL 25526,684949,1440642,NULL,NULL,NULL,0,NULL,NULL 25527,74069,753604,Yearling Popular Question Nice Answer Necromancer Yearling Necromancer Nice Answer Good Answer Yearling Enthusiast Great Answer,NULL,NULL,0,NULL,NULL 25528,1640524,826841,NULL,NULL,NULL,0,NULL,NULL 25529,1227533,25746,Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25530,149936,366908,mysql Nice Question Popular Question Yearling Custodian Notable Question Excavator Notable Question Yearling Caucus Custodian Announcer Popular Question Notable Question Popular Question Famous Question Yearling Populist,NULL,NULL,0,NULL,NULL 25531,1512027,772002,Citizen Patrol Custodian Custodian Yearling Notable Question Notable Question Good Answer Nice Answer Curious Tenacious Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 25532,1263192,497142,Self-Learner Inquisitive Yearling Notable Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 25533,641986,1313238,NULL,NULL,NULL,0,NULL,NULL 25534,142674,1516712,Revival Supporter Informed Editor Scholar Custodian Commentator Excavator,NULL,NULL,0,NULL,NULL 25535,1151367,497343,Excavator Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25536,213522,1241805,Custodian Yearling Self-Learner Caucus Nice Answer Enlightened Yearling Necromancer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25537,221106,458813,Necromancer Taxonomist Yearling Necromancer Notable Question Notable Question Necromancer Yearling Documentation User Popular Question Benefactor Great Answer Yearling,NULL,NULL,0,NULL,NULL 25538,76177,760273,NULL,NULL,NULL,0,NULL,NULL 25539,438912,792950,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 25540,788127,1472861,NULL,NULL,NULL,0,NULL,NULL 25541,4072956,786523,Yearling,NULL,NULL,0,NULL,NULL 25542,246425,986787,NULL,NULL,NULL,0,NULL,NULL 25543,1198447,978953,Popular Question Popular Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25544,630506,760620,Editor Supporter Scholar Teacher Curious Commentator Tumbleweed Critic,NULL,NULL,0,NULL,NULL 25545,163655,62120,Nice Question Yearling Nice Question Notable Question Popular Question Notable Question Notable Question Documentation User Caucus,NULL,NULL,0,NULL,NULL 25546,738919,826567,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 25547,1135676,777882,NULL,NULL,NULL,0,NULL,NULL 25548,155651,611331,Revival Yearling Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 25549,315266,479891,Supporter Editor Student Scholar Nice Answer,NULL,NULL,0,NULL,NULL 25550,1520201,687206,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 25551,168163,16182,Census,NULL,NULL,0,NULL,NULL 25552,418321,690243,NULL,NULL,NULL,0,NULL,NULL 25553,4028,23845,Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling Tumbleweed Nice Answer Enlightened Nice Answer Enlightened Good Question Good Question Great Answer Notable Question Announcer Nice Answer Enlightened Nice Answer Necromancer Necromancer Notable Question Nice Question Popular Question Great Question Yearling Announcer Good Answer Great Answer Announcer Notable Question Announcer Notable Question Yearling,NULL,NULL,0,NULL,NULL 25554,5640383,733268,NULL,NULL,NULL,0,NULL,NULL 25555,2531600,155818,NULL,NULL,NULL,0,NULL,NULL 25556,167352,1435850,NULL,NULL,NULL,0,NULL,NULL 25557,2388008,1461595,NULL,NULL,NULL,0,NULL,NULL 25558,3948524,1461595,NULL,NULL,NULL,0,NULL,NULL 25559,132895,1074592,Nice Answer Enlightened Notable Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Popular Question Guru Nice Answer Good Answer Good Answer Great Answer Good Answer Guru Nice Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Famous Question Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Guru Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Guru Announcer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Great Answer Guru Guru Nice Answer Nice Answer Nice Answer Notable Question Nice Answer Good Answer Nice Question Announcer Good Answer Guru Nice Answer Popular Question Guru Guru Good Answer Yearling Great Answer Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Populist Nice Answer python Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Great Answer Yearling,NULL,NULL,0,NULL,NULL 25560,562323,1251768,NULL,NULL,NULL,0,NULL,NULL 25561,611791,516435,Supporter Necromancer,NULL,NULL,0,NULL,NULL 25562,80130,1171889,NULL,NULL,NULL,0,NULL,NULL 25563,157249,581094,Announcer Popular Question Notable Question Nice Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 25564,118000,40056,NULL,NULL,NULL,0,NULL,NULL 25565,461770,1043294,NULL,NULL,NULL,0,NULL,NULL 25566,36498,440604,Nice Answer Famous Question Yearling Good Question Yearling Favorite Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 25567,365422,1223509,Supporter,NULL,NULL,0,NULL,NULL 25568,25823,104976,Great Answer Yearling Nice Answer Announcer Necromancer Yearling Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25569,594878,502256,Popular Question Proofreader Popular Question Popular Question Populist Notable Question Nice Answer Enlightened Popular Question Necromancer Popular Question Yearling Caucus Nice Answer Notable Question Popular Question Nice Answer Popular Question Yearling Notable Question Caucus Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 25570,70233,1031203,Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25571,84053,1402195,Yearling Caucus Caucus,NULL,strongTL DR strong Use absolute paths to your assets including your complete hostname by setting your codeoutput publicPath code to href http example com assets http example com assets ph2The problem h2pThe problem is the way that URLs are resolved by Chrome when they re parsed from dynamically loaded CSS blob ppWhen you load the page the browser loads your Webpack bundle entry JavaScript file which when you re using the codestyle loader code also contains Base64 encoded copy of your CSS which gets loaded into the page pblockquote href https stack imgur com mrHzt png img src https stack imgur com mrHzt png alt Screenshot of embedded CSS in Chrome DevTools This is what it looks like in Chrome DevTools blockquotepThat fine for all the images or fonts which are encoded into the CSS as data URIs the content of the file is embedded in the CSS but for assets referenced by emURL em the browser has to find and fetch the file ppNow by default the codefile loader code which codeurl loader code delegates to for large files will use emrelative em URLs to reference assets and emthat the problem em pblockquote href https stack imgur com 2UgxT png img src https stack imgur com 2UgxT png alt Relative URLs generated by Webpack emThese are the URLs generated by codefile loader code by default relative URLs em blockquotepWhen you use relative URLs Chrome will resolve them relative to the containing CSS file Ordinarily that fine but in this case the containing file is at codeblob code and any relative URLs are referenced the same way The end result is that Chrome attempts to load them from the parent HTML file and ends up trying to parse the HTML file as the content of the font which obviously won work ph2The Solution h2pForce the codefile loader code to use absolute paths including the protocol http or https ppChange your webpack config to include something equivalent to ppre code output publicPath http localhost 8080 Development Server publicPath http example com Production Server code prepNow the URLs that it generates will look like this pblockquote href https stack imgur com nSlPA png img src https stack imgur com nSlPA png alt enter image description here emAbsolute URLs em blockquotepThese URLs will be correctly parsed by Chrome and every other browser ph2Using codeextract text webpack plugin code h2pIt worth noting that if you re extracting your CSS to separate file you won have this problem because your CSS will be in proper file and URLs will be correctly resolved Its also possible to dynamically set your webpack publicPath making your config more flexible As demonstrated by this commithttps github com coryhouse react slingshot pull 207 files,0,NULL,NULL 25572,335900,822105,NULL,NULL,NULL,0,NULL,NULL 25573,1062281,831851,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 25574,161984,311621,NULL,NULL,NULL,0,NULL,NULL 25575,787127,289064,Necromancer Yearling Revival Necromancer Necromancer Nice Answer Nice Answer Nice Answer Yearling Yearling Nice Answer Notable Question Nice Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 25576,417965,1145978,Yearling Curious Nice Question Caucus Popular Question Notable Question Caucus Popular Question Yearling Popular Question Popular Question Notable Question Yearling Tumbleweed,NULL,How to systematically change knitr label behavior to add hyperlink anchors latex knitr pdflatex hyperref pI want to change codeknitr code behavior when it creates codefigure code environment in codeLaTeX code to call different codeLaTeX code command than code label code code alabel code where define code alabel code to run code label foo code as well as code hypertarget foo code using the codehyperref code codeLaTeX code package doing this so that can construct URL in web browser to get to specific place in the code pdf code document built with codepdflatex code codehttp my pdf nameddest foo code ppHow can either override code label code or emit an additional code hypertarget same label used by label code in the figures ppThis is in the context of code Rnw code file like the anchor to appear inside the codefigure code environmentcodefor optimal positioning of the cursor when jumping into the code pdf document pp strongUPDATE strong ppIn rethinking this think it best not to generate codehypertarget code anchors but to write an codeR code function that parses the codeLaTeX code codeaux code file to retrieve the page number of the reference code newlabel code lines to generate the needed URL to the codepdf code file In the code Rnw code or code Rmd code file can call this function from within sentence to insert the computed URL pp strongUPDATE strong ppI ve decided after all to go with excellent method which works flawlessly For anyone interested in the codeR code based approach that doesn require the use of codehypertarget code here is the codeLaTeX code code needed to set up for it this handles the case where physical page numbers do not match logical page numbers using logical numbers such as chapter number page within chapter ppre code Creates pag file mapping absolute page numbers to logical page numbers works with function latexRef newwrite pgfile immediate openout pgfile jobname pag newcounter abspage setcounter abspage useackage everypage AddEverypageHook addtocounter abspage immediate write pgfile thepage theabspage AtEndDocument clearpage immediate closeout pgfile code prepHere the codeR code function that does the lookups in the code aux pag code files ppre code Create hyperlink to appropriate physical page in pdf document created by pdflatex given the aux and pag file Absolute and named page numbers are store in the pag file created by hslide stylatexRef lt function label base name path doc blogpath home harrelfe blog blogdown static doc lang markdown latex lang lt match arg lang aux lt paste0 blogpath base aux if file exists aux stop paste no file named aux path lt paste0 path base pdf pag lt paste0 blogpath base pag pagemap lt NULL if file exists pag lt read table pag sep pagemap lt trimws names pagemap lt trimws lt readLines aux lt paste0 newlabel label lt grepl if any stop paste no label label lt lt gsub lt gsub lt scan text sep what character quiet TRUE section lt if section section lt paste0 Section section page lt trimws if length pagemap page lt pagemap page url lt paste0 http fharrell com path page page switch lang markdown paste0 name section url latex paste0 href url name section code pre clarified the Rnw context and wish to be inside figure environment not clear on votes to close tried to be honest in my tags LaTeX users may wish to find this someday,1,How to systematically change knitr label behavior to add hyperlink anchors latex knitr pdflatex hyperref pI want to change codeknitr code behavior when it creates codefigure code environment in codeLaTeX code to call different codeLaTeX code command than code label code code alabel code where define code alabel code to run code label foo code as well as code hypertarget foo code using the codehyperref code codeLaTeX code package doing this so that can construct URL in web browser to get to specific place in the code pdf code document built with codepdflatex code codehttp my pdf nameddest foo code ppHow can either override code label code or emit an additional code hypertarget same label used by label code in the figures ppThis is in the context of code Rnw code file like the anchor to appear inside the codefigure code environmentcodefor optimal positioning of the cursor when jumping into the code pdf document pp strongUPDATE strong ppIn rethinking this think it best not to generate codehypertarget code anchors but to write an codeR code function that parses the codeLaTeX code codeaux code file to retrieve the page number of the reference code newlabel code lines to generate the needed URL to the codepdf code file In the code Rnw code or code Rmd code file can call this function from within sentence to insert the computed URL pp strongUPDATE strong ppI ve decided after all to go with excellent method which works flawlessly For anyone interested in the codeR code based approach that doesn require the use of codehypertarget code here is the codeLaTeX code code needed to set up for it this handles the case where physical page numbers do not match logical page numbers using logical numbers such as chapter number page within chapter ppre code Creates pag file mapping absolute page numbers to logical page numbers works with function latexRef newwrite pgfile immediate openout pgfile jobname pag newcounter abspage setcounter abspage useackage everypage AddEverypageHook addtocounter abspage immediate write pgfile thepage theabspage AtEndDocument clearpage immediate closeout pgfile code prepHere the codeR code function that does the lookups in the code aux pag code files ppre code Create hyperlink to appropriate physical page in pdf document created by pdflatex given the aux and pag file Absolute and named page numbers are store in the pag file created by hslide stylatexRef lt function label base name path doc blogpath home harrelfe blog blogdown static doc lang markdown latex lang lt match arg lang aux lt paste0 blogpath base aux if file exists aux stop paste no file named aux path lt paste0 path base pdf pag lt paste0 blogpath base pag pagemap lt NULL if file exists pag lt read table pag sep pagemap lt trimws names pagemap lt trimws lt readLines aux lt paste0 newlabel label lt grepl if any stop paste no label label lt lt gsub lt gsub lt scan text sep what character quiet TRUE section lt if section section lt paste0 Section section page lt trimws if length pagemap page lt pagemap page url lt paste0 http fharrell com path page page switch lang markdown paste0 name section url latex paste0 href url name section code pre Uncertain about blogdown workflow rstudio blogdown pWhen use the RStudio add in to create new post in my case an Rmarkdown file not certain of when to knit vs serve the site to get the needed output And sometimes see Preview button and at other times don trying test now with the codeyaml code header below and getting file not found error when attempting to render preview html the error message doesn say which file wasn found also uncertain on whether you need to codeoutput code line in the header ppre code title How Can Machine Learning be Reliable When the Sample is Adequate for Only One Feature author Frank Harrelldate 2018 01 11 slug ml sample sizeoutput blogdown html pagecategories tags prediction machine learning sample size validation precisioncsl american medical association cslbibliography harrelfe bib code pre,NULL 25577,655298,1074116,Custodian Popular Question Famous Question Popular Question Notable Question Famous Question Nice Question Yearling Popular Question Popular Question Nice Question Nice Question Notable Question Notable Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 25578,189268,241942,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25579,8698675,870615,Popular Question Supporter Editor Teacher Notable Question Necromancer Autobiographer Nice Answer Yearling Yearling Necromancer Good Answer,NULL,NULL,1,NULL,node js fs readdir recursive directory search node js readdir pAny ideas on an async directory search using fs readdir realise that we could introduce recursion and call the read directory function with the next directory to read but am little worried about it not being async ppAny ideas ve looked at href https github com coolaj86 node walk rel noreferrer node walk which is great but doesn give me just the files in an array like readdir does Although ppLooking for output like ppre code file1 txt file2 txt dir file3 txt code pre pThis one uses the maximum amount of new buzzwordy features available in node including Promises util promisify destructuring async await map reduce and more making your co workers scratch their heads as they try to figure out what is going on ppNo external dependencies node ppre class lang js prettyprint override codeconst promisify require util const resolve require path const fs require fs const readdir promisify fs readdir const stat promisify fs stat async function getFiles dir const subdirs await readdir dir const files await Promise all subdirs map async subdir gt const res resolve dir subdir return await stat res isDirectory getFiles res res return files reduce gt concat code prepUsage ppre class lang js prettyprint override codegetFiles dirname then files gt console log files catch gt console error code pre 25580,348971,870615,Popular Question Supporter Editor Teacher Notable Question Necromancer Autobiographer Nice Answer Yearling Yearling Necromancer Good Answer,NULL,NULL,1,NULL,node js fs readdir recursive directory search node js readdir pAny ideas on an async directory search using fs readdir realise that we could introduce recursion and call the read directory function with the next directory to read but am little worried about it not being async ppAny ideas ve looked at href https github com coolaj86 node walk rel noreferrer node walk which is great but doesn give me just the files in an array like readdir does Although ppLooking for output like ppre code file1 txt file2 txt dir file3 txt code pre pThis one uses the maximum amount of new buzzwordy features available in node including Promises util promisify destructuring async await map reduce and more making your co workers scratch their heads as they try to figure out what is going on ppNo external dependencies node ppre class lang js prettyprint override codeconst promisify require util const resolve require path const fs require fs const readdir promisify fs readdir const stat promisify fs stat async function getFiles dir const subdirs await readdir dir const files await Promise all subdirs map async subdir gt const res resolve dir subdir return await stat res isDirectory getFiles res res return files reduce gt concat code prepUsage ppre class lang js prettyprint override codegetFiles dirname then files gt console log files catch gt console error code pre 25581,470321,470759,NULL,NULL,NULL,0,NULL,NULL 25582,7334518,498226,Enlightened Guru Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Caucus Yearling Census Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25583,312274,483035,NULL,NULL,NULL,0,NULL,NULL 25584,151627,1148736,Student,NULL,NULL,0,NULL,NULL 25585,3686169,593581,Yearling,NULL,NULL,0,NULL,NULL 25586,150246,480069,objective-c ios Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25587,11915,218264,NULL,NULL,NULL,0,NULL,NULL 25588,23024,811417,NULL,NULL,NULL,0,NULL,NULL 25589,27462,518204,Good Answer Notable Question Guru Nice Question Popular Question Guru Announcer Good Answer Nice Question Popular Question Good Answer Nice Question Famous Question Yearling Nice Question Guru Guru Revival Revival Popular Question Notable Question Nice Question Notable Question Notable Question Yearling Famous Question Notable Question Good Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25590,285287,393758,Nice Answer Great Answer Disciplined Necromancer Nice Question Yearling Nice Question Caucus Constituent Famous Question Famous Question Nice Answer Popular Question Necromancer Good Answer Yearling Great Question Custodian Custodian Good Question Custodian Famous Question Famous Question Popular Question Yearling Inquisitive,NULL,NULL,0,NULL,NULL 25591,213104,898591,NULL,NULL,NULL,0,NULL,NULL 25592,1022129,497123,Notable Question Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 25593,1031809,1146552,Popular Question,NULL,NULL,0,NULL,NULL 25594,1105528,800263,NULL,NULL,NULL,0,NULL,NULL 25595,48216,778862,NULL,NULL,NULL,0,NULL,NULL 25596,168280,651440,Yearling Yearling,NULL,NULL,0,NULL,NULL 25597,259641,897025,NULL,NULL,NULL,0,NULL,NULL 25598,59827,667212,Notable Question,NULL,NULL,0,NULL,NULL 25599,475046,1146848,NULL,NULL,NULL,0,NULL,NULL 25600,4833,1163461,NULL,NULL,NULL,0,NULL,NULL 25601,1282296,986288,NULL,NULL,NULL,0,NULL,NULL 25602,274524,1407406,Notable Question,NULL,NULL,0,NULL,NULL 25603,179733,14838,Famous Question Good Question Yearling Nice Answer Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 25604,477371,1249773,NULL,NULL,NULL,0,NULL,NULL 25605,105871,1373648,Teacher Revival,NULL,NULL,0,NULL,NULL 25606,928775,544915,Nice Answer Enlightened Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25607,1468531,764144,NULL,NULL,NULL,0,NULL,NULL 25608,3371883,79909,Notable Question,NULL,NULL,0,NULL,NULL 25609,103887,79909,Notable Question,NULL,NULL,0,NULL,NULL 25610,146437,262666,Nice Question Popular Question Popular Question Famous Question Notable Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 25611,1481193,1052651,Famous Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25612,134022,1071432,Yearling Revival Necromancer Revival Necromancer Caucus Yearling Necromancer Custodian Nice Answer Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 25613,1627634,867084,NULL,NULL,NULL,0,NULL,NULL 25614,2028722,1557052,NULL,NULL,NULL,0,NULL,NULL 25615,201334,407835,Notable Question,NULL,NULL,0,NULL,NULL 25616,6194,142671,Yearling Popular Question Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 25617,1145639,1174571,NULL,NULL,NULL,0,NULL,NULL 25618,563635,63741,Curious Commentator Revival Popular Question,NULL,NULL,0,NULL,NULL 25619,269980,323857,NULL,NULL,NULL,0,NULL,NULL 25620,26297,1494700,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25621,318686,1555417,NULL,NULL,NULL,0,NULL,NULL 25622,279562,1234097,NULL,NULL,NULL,0,NULL,NULL 25623,1109776,1234097,NULL,NULL,NULL,0,NULL,NULL 25624,460104,1247580,Editor Custodian Curious Critic Informed Autobiographer Citizen Patrol Suffrage Vox Populi Tag Editor Excavator Organizer,NULL,NULL,0,NULL,NULL 25625,4489172,409761,Curious Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 25626,196042,1053500,NULL,NULL,NULL,0,NULL,NULL 25627,777157,1016197,Student Teacher Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25628,380917,879129,NULL,NULL,NULL,0,NULL,NULL 25629,256030,1226112,NULL,NULL,NULL,0,NULL,NULL 25630,41785,891458,Guru Popular Question Yearling Yearling Custodian Yearling Great Answer,NULL,NULL,0,NULL,NULL 25631,556361,776800,Notable Question Promoter Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 25632,219715,291418,Supporter Popular Question,NULL,NULL,0,NULL,NULL 25633,419504,74184,Popular Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25634,156797,342947,Popular Question Good Question Yearling Custodian Notable Question Peer Pressure Custodian Investor Nice Question Announcer Notable Question Necromancer Popular Question Custodian Organizer Custodian Necromancer Announcer Notable Question Popular Question Announcer Popular Question Notable Question Yearling Nice Answer Notable Question Notable Question Popular Question Notable Question Necromancer Nice Question Caucus Constituent Nice Question Popular Question Nice Answer Notable Question Announcer Nice Answer Popular Question Popular Question Notable Question Notable Question Good Answer Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 25635,636979,996592,Popular Question Good Question Nice Answer Enlightened Yearling Popular Question Famous Question Popular Question Notable Question Documentation User Yearling Revival Popular Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25636,320502,539209,Popular Question Yearling Announcer Documentation User,NULL,NULL,0,NULL,NULL 25637,1716816,482601,Benefactor Famous Question Nice Question Nice Question Revival Popular Question Favorite Question Yearling Caucus Popular Question Announcer Popular Question Great Answer Caucus Notable Question Yearling Popular Question Notable Question Popular Question Nice Answer Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 25638,161580,1561419,Teacher Supporter Enthusiast,NULL,NULL,0,NULL,NULL 25639,24338,1094238,NULL,NULL,NULL,0,NULL,NULL 25640,124367,250019,Good Answer Necromancer Yearling Popular Question Nice Question Famous Question Famous Question Necromancer Necromancer Good Answer Nice Answer Yearling Nice Answer Good Answer Notable Question Popular Question Yearling Good Answer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 25641,6736375,878951,Yearling Self-Learner Popular Question Nice Question,NULL,NULL,0,NULL,NULL 25642,2033064,842931,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 25643,343315,144012,Guru Favorite Question Nice Answer Notable Question Popular Question Famous Question Good Answer Famous Question Notable Question Good Question Yearling Notable Question Notable Question Famous Question Notable Question Good Answer Popular Question Famous Question Famous Question Popular Question Famous Question Notable Question Good Answer Yearling Popular Question Good Question Famous Question Notable Question Notable Question Popular Question Great Question Famous Question Nice Answer Popular Question Yearling Notable Question Famous Question Nice Answer Good Question,NULL,NULL,0,NULL,NULL 25644,45233,135010,Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25645,2116990,21132,Famous Question Great Question Revival Cleanup Yearling Good Answer Good Question Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25646,291944,92315,Good Answer Yearling Nice Question Good Answer dompdf Yearling Caucus Good Answer Custodian Custodian Custodian Custodian Civic Duty Notable Question Nice Answer Nice Answer Yearling Curious,NULL,NULL,0,NULL,NULL 25647,36411,963715,NULL,NULL,NULL,0,NULL,NULL 25648,173556,541679,NULL,NULL,NULL,0,NULL,NULL 25649,3752,327916,Necromancer,NULL,NULL,0,NULL,NULL 25650,486860,1441706,Nice Answer Necromancer Yearling Caucus Constituent Citizen Patrol Custodian Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 25651,265328,1268414,Popular Question Citizen Patrol Tumbleweed Commentator Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25652,111206,1435187,Nice Answer Yearling Notable Question Great Answer Popular Question Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 25653,386731,1192944,NULL,NULL,NULL,0,NULL,NULL 25654,186743,1278378,NULL,NULL,NULL,0,NULL,NULL 25655,27653,1168213,NULL,NULL,NULL,0,NULL,NULL 25656,298214,1358925,Informed Yearling,NULL,NULL,0,NULL,NULL 25657,1068748,939608,NULL,NULL,NULL,0,NULL,NULL 25658,850536,926992,NULL,NULL,NULL,0,NULL,NULL 25659,551097,114227,Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 25660,463544,596920,NULL,NULL,NULL,0,NULL,NULL 25661,136307,607134,Informed Peer Pressure Nice Question Revival Nice Answer Popular Question Caucus Good Question Yearling Necromancer Caucus Famous Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25662,186100,435785,NULL,NULL,NULL,0,NULL,NULL 25663,1277794,558290,NULL,NULL,NULL,0,NULL,NULL 25664,50206,1224060,NULL,NULL,NULL,0,NULL,NULL 25665,398953,1128377,NULL,NULL,NULL,0,NULL,NULL 25666,1178254,1128377,NULL,NULL,NULL,0,NULL,NULL 25667,806268,212272,Nice Answer Necromancer Yearling Necromancer Yearling Good Answer Curious Census Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 25668,17836,423335,Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25669,88257,1415639,Necromancer Commentator Yearling Caucus Custodian Informed Autobiographer Nice Answer Necromancer Good Answer Yearling Student Tumbleweed Necromancer Necromancer,NULL,NULL,0,NULL,NULL 25670,180983,1295663,NULL,NULL,NULL,0,NULL,NULL 25671,181880,1190660,Necromancer Student,NULL,NULL,0,NULL,NULL 25672,663477,697528,NULL,NULL,NULL,0,NULL,NULL 25673,108132,939727,Excavator Yearling Critic Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 25674,129302,403098,Notable Question Yearling Caucus Yearling Caucus c# Curious Tumbleweed Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 25675,441719,213642,Commentator,NULL,NULL,0,NULL,NULL 25676,53545,492169,Self-Learner Critic Curious Yearling Commentator Popular Question Necromancer Caucus Nice Answer Citizen Patrol Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 25677,717303,567545,NULL,NULL,NULL,0,NULL,NULL 25678,682180,1512744,NULL,NULL,NULL,0,NULL,NULL 25679,215459,1162963,NULL,NULL,NULL,0,NULL,NULL 25680,2262,507809,Teacher,NULL,NULL,0,NULL,NULL 25681,498200,1106087,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25682,278975,1103395,NULL,NULL,NULL,0,NULL,NULL 25683,157527,1210917,Popular Question,NULL,NULL,0,NULL,NULL 25684,161554,1343907,Excavator Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 25685,128080,87648,Yearling Yearling Good Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 25686,756656,1537597,Editor Necromancer Caucus Critic Nice Answer Yearling Revival Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 25687,6753,110451,Organizer Explainer Revival Nice Answer Nice Answer Enlightened Good Answer pydev Yearling Nice Answer Nice Answer Enlightened Custodian Revival Good Answer Nice Answer Enlightened Revival Nice Answer Necromancer Good Answer Citizen Patrol Yearling Revival Nice Answer Announcer Necromancer Nice Answer Revival Guru Good Answer Revival Announcer Yearling Nice Answer Nice Answer Guru Necromancer Nice Answer Enlightened,NULL,NULL,1,NULL,Python dereferencing weakproxy python weak references pIs there any way to get the original object from weakproxy pointed to it eg is there the inverse to codeweakref proxy code pA simplified example python2 ppre codeimport weakrefclass object def init self other self other weakref proxy other class Other object passothers Other for in xrange my list others len others for in xrange 10 code prepI need to get the list of unique codeother code members from codemy list code The way prefer for such tasksis to use codeset code ppre codeunique others other for in my list code prepUnfortunately this throws codeTypeError unhashable type weakproxy code pI have managed to solve the specific problem in an imperative way slow and dirty ppre codeunique others for in my list if other in unique others continue unique others append other code prepbut the general problem noted in the caption is still active What if have only codemy list code under control and codeothers code are burried in some lib and someone may delete them at any time and want to prevent the deletion by collecting strongnonweak strong refs in list pOr may want to get the coderepr code of the object itself not code lt weakproxy at xx to Other at xx gt code guess there should be something like codeweakref unproxy code not aware about pI know that this is an old question but ve been bitten by it so there no real unproxy in the standard library and wanted to share my solution ppThe way solved it to get the real instance was just creating property which returned it although suggest using codeweakref ref code instead of codeweakref proxy code as code should really check if it still alive before accessing it instead of having to remember to catch an exception whenever any attribute is accessed ppAnyways if you still strongmust strong use proxy the code to get the real instance is ppre codeimport weakrefclass MyClass object def real self self return selfinstance MyClass proxied weakref proxy instance assert proxied real self is instance code pre 25688,1381429,250329,Yearling Popular Question Reviewer Famous Question Caucus Constituent Yearling Revival Census Popular Question Popular Question Caucus Constituent Good Question Custodian Census Yearling Caucus Constituent Tumbleweed Necromancer Proofreader,NULL,NULL,0,NULL,NULL 25689,41458,188008,Notable Question Critic,NULL,NULL,0,NULL,NULL 25690,51737,541842,Nice Answer Nice Answer Nice Answer Enlightened Great Answer Yearling Great Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Custodian Guru,NULL,NULL,0,NULL,NULL 25691,576563,360080,Student,NULL,NULL,0,NULL,NULL 25692,374054,1306005,NULL,NULL,NULL,0,NULL,NULL 25693,22909,486411,NULL,NULL,NULL,0,NULL,NULL 25694,113706,968144,Popular Question Documentation User Custodian Custodian Peer Pressure Yearling Revival Caucus Investor Civic Duty,NULL,NULL,0,NULL,NULL 25695,19423,329925,Yearling Great Answer Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 25696,196634,983325,Supporter Informed,NULL,NULL,0,NULL,NULL 25697,809451,980852,Informed Yearling Commentator Caucus Caucus,NULL,NULL,0,NULL,NULL 25698,654846,103880,Favorite Question,NULL,NULL,0,NULL,NULL 25699,5932739,103880,Favorite Question,NULL,NULL,0,NULL,NULL 25700,966844,783327,NULL,NULL,NULL,0,NULL,NULL 25701,1496983,1262960,Informed Commentator Autobiographer Critic Yearling Yearling Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 25702,152587,1240720,Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 25703,35461,1045638,NULL,NULL,NULL,0,NULL,NULL 25704,1324446,1160588,Teacher Popular Question,NULL,NULL,0,NULL,NULL 25705,208324,1174625,Civic Duty,NULL,NULL,0,NULL,NULL 25706,99762,359588,NULL,NULL,NULL,0,NULL,NULL 25707,167730,1088999,NULL,NULL,NULL,0,NULL,NULL 25708,231803,1098851,Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Enlightened Great Answer css-selectors Nice Answer Enlightened Nice Answer Good Question Guru Caucus Good Answer Nice Answer Enlightened Yearling Nice Question Populist Great Answer Nice Answer Census Nice Answer Nice Answer Nice Answer Great Answer Good Answer Famous Question Guru Guru Good Answer Great Answer Nice Answer Enlightened Guru Caucus Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Custodian Nice Answer Documentation User dom Yearling Nice Answer Famous Question Census Quorum Nice Answer Good Answer Caucus Constituent Guru Good Answer Great Answer Guru Nice Answer Enlightened html5 Good Answer,NULL,NULL,0,NULL,NULL 25709,83301,517154,Nice Answer Popular Question Popular Question Yearling Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 25710,779935,1540220,NULL,NULL,NULL,0,NULL,NULL 25711,79203,960642,Informed,NULL,NULL,0,NULL,NULL 25712,329765,449913,NULL,NULL,NULL,0,NULL,NULL 25713,18074,415031,NULL,NULL,NULL,0,NULL,NULL 25714,82569,424960,NULL,NULL,NULL,0,NULL,NULL 25715,409223,1354266,NULL,NULL,NULL,0,NULL,NULL 25716,454638,530017,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 25717,156762,1569,Announcer Nice Answer Popular Question Favorite Question Notable Question Nice Answer Yearling Popular Question Caucus Good Answer Constituent Nice Answer Great Answer Census Popular Question Caucus Populist Constituent Yearling Custodian Documentation User Booster Announcer Census Caucus Constituent Booster Good Answer Announcer Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 25718,743732,993769,Nice Answer Necromancer Notable Question Popular Question Revival Civic Duty Nice Question Necromancer Necromancer Yearling Notable Question Nice Answer Necromancer Announcer Nice Answer Yearling Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 25719,356758,1184215,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25720,80224,294248,Guru Nice Answer Enlightened Good Answer Nice Answer textureview Yearling Nice Answer glsurfaceview Nice Answer Taxonomist android-camera Revival Electorate Nice Answer Revival Revival Revival video Necromancer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Populist Good Answer Nice Answer Enlightened surfaceview Nice Answer Enlightened Caucus Revival Nice Answer Nice Answer mediacodec Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Necromancer performance Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Caucus Nice Answer Nice Answer Enlightened Revival Nice Answer Revival Announcer Guru Necromancer Nice Answer Caucus Yearling Nice Answer java Great Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened h.264 Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25721,550690,568838,Informed Critic Announcer,NULL,NULL,0,NULL,NULL 25722,44296,409934,NULL,NULL,NULL,0,NULL,NULL 25723,895742,486765,NULL,NULL,NULL,0,NULL,NULL 25724,1644379,994627,NULL,NULL,NULL,0,NULL,NULL 25725,172919,732470,Nice Answer Enlightened Yearling Nice Question Guru Good Answer Good Question Caucus Constituent Popular Question Census Nice Question Yearling Nice Answer Enlightened Caucus Nice Answer Constituent Nice Answer Enlightened Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 25726,459249,1029466,Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 25727,2021049,880128,Necromancer Nice Answer Announcer Caucus Yearling Announcer Caucus Good Answer Caucus Yearling Populist,NULL,No submodule mapping found in gitmodule for path that not submodule git git submodules pI have project that has submodule at codelib three20 code ppMy code gitmodule code file looks like this ppre code submodule lib three20 path lib three20 url git github com facebook three20 git code prepI have cloned this in the past without errors codegit submodule init code followed by codegit submodule update code and it been working for while ppI tried to clone this to new machine and now getting this error on codegit submodule init code ppre codeNo submodule mapping found in gitmodules for path Classes Support Three20 code prepThat path is just an empty folder in Xcode that use to house the projects from the other directory It not part of the code gitmodules code file so don see where it getting this path from ppAny ideas for future visitors in case your issue is linked to removed submodule and heroku throwing the error install heroku repo from https github com heroku heroku repo and heroku repo reset appname,0,NULL,NULL 25728,898399,880128,Necromancer Nice Answer Announcer Caucus Yearling Announcer Caucus Good Answer Caucus Yearling Populist,NULL,No submodule mapping found in gitmodule for path that not submodule git git submodules pI have project that has submodule at codelib three20 code ppMy code gitmodule code file looks like this ppre code submodule lib three20 path lib three20 url git github com facebook three20 git code prepI have cloned this in the past without errors codegit submodule init code followed by codegit submodule update code and it been working for while ppI tried to clone this to new machine and now getting this error on codegit submodule init code ppre codeNo submodule mapping found in gitmodules for path Classes Support Three20 code prepThat path is just an empty folder in Xcode that use to house the projects from the other directory It not part of the code gitmodules code file so don see where it getting this path from ppAny ideas for future visitors in case your issue is linked to removed submodule and heroku throwing the error install heroku repo from https github com heroku heroku repo and heroku repo reset appname,0,NULL,NULL 25729,2516,350761,Announcer Revival Yearling Necromancer Nice Answer Enlightened Great Answer Nice Answer Good Question Electorate Good Answer Popular Question Yearling Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 25730,167992,900539,NULL,NULL,NULL,0,NULL,NULL 25731,20557,1164419,NULL,NULL,NULL,0,NULL,NULL 25732,163495,235122,NULL,NULL,NULL,0,NULL,NULL 25733,17078,404655,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25734,12585,270375,NULL,NULL,NULL,0,NULL,NULL 25735,706385,959577,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 25736,732552,450649,Census,NULL,NULL,0,NULL,NULL 25737,77263,1069779,NULL,NULL,NULL,0,NULL,NULL 25738,34950,232183,NULL,NULL,NULL,0,NULL,NULL 25739,50320,798810,Notable Question Famous Question Necromancer Yearling Nice Question Popular Question Curious Necromancer,NULL,NULL,0,NULL,NULL 25740,41821,139825,NULL,NULL,NULL,0,NULL,NULL 25741,136347,126416,Famous Question Famous Question Good Question Yearling Popular Question Custodian Custodian Yearling Organizer Custodian Civic Duty Yearling Good Question,NULL,NULL,0,NULL,NULL 25742,559068,768080,Yearling Necromancer Yearling Custodian Nice Answer Caucus,NULL,NULL,0,NULL,NULL 25743,561021,7412,Good Answer Great Answer Good Answer Good Answer Good Answer Guru Nice Answer Taxonomist Nice Question Nice Answer Guru Nice Answer Nice Answer Popular Question Nice Answer Enlightened Famous Question Good Answer Nice Answer Good Answer Nice Answer Guru Great Question Guru Nice Answer Nice Answer Enlightened Guru Pundit Good Answer Good Answer Guru Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Great Answer html Nice Answer Enlightened Notable Question Famous Question Guru Good Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Guru Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Great Answer Nice Answer Nice Answer Guru unix Nice Answer Good Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Question Nice Answer Enlightened Good Answer Nice Answer regex Guru Nice Answer Good Answer Populist Good Answer Good Question Good Question Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Guru Good Answer Good Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Necromancer Guru Good Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Necromancer Good Answer Good Answer Good Question Good Answer Good Question Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Good Answer Good Answer Favorite Question Guru Great Question Nice Answer Enlightened Nice Question Great Question Guru Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Good Question Nice Answer Enlightened Guru Great Answer Nice Answer Nice Answer Popular Question Popular Question Great Answer Great Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Famous Question Nice Answer Nice Answer Nice Answer Great Answer Famous Question Great Answer Guru Nice Answer Good Answer Nice Answer Enlightened Guru Famous Question Nice Answer Good Question Yearling Good Answer Nice Answer Stellar Question Good Answer Guru Nice Answer Famous Question Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 25744,255948,999801,Supporter,NULL,NULL,0,NULL,NULL 25745,129650,365064,Critic Yearling Good Answer,NULL,NULL,0,NULL,NULL 25746,172485,1449351,NULL,NULL,NULL,0,NULL,NULL 25747,4046,1375334,NULL,NULL,NULL,0,NULL,NULL 25748,9612,581351,Yearling Excavator Civic Duty Caucus Constituent Necromancer Yearling Caucus Constituent Custodian Caucus Yearling,NULL,pThe href http expressjs com api html app listen rel noreferrer Express API doc spells this out pretty clearly ppAdditionally href https stackoverflow com 35053638 635134 this answer gives the steps to create self signed certificate ppI have added some comments and snippet from the href http nodejs org api https html https https createserver options requestlistener rel noreferrer Node js HTTPS documentation ppre codevar express require express var https require https var http require http var fs require fs This line is from the Node js HTTPS documentation var options key fs readFileSync test fixtures keys agent2 key pem cert fs readFileSync test fixtures keys agent2 cert cert Create service the app object is just callback var app express Create an HTTP service http createServer app listen 80 Create an HTTPS service identical to the HTTP service https createServer options app listen 443 code pre You can disable the password Check this guide https docs nodejitsu com articles HTTP servers how to create HTTPS server but if you are using macOS make sure that the generated key length is at least 2048 openssl genrsa out key pem 2048,0,NULL,NULL 25749,252695,1065991,NULL,NULL,NULL,0,NULL,NULL 25750,389270,490803,Tumbleweed Notable Question Informed,NULL,NULL,0,NULL,NULL 25751,68145,117691,Famous Question Nice Question Good Question Yearling Famous Question Famous Question Famous Question Yearling Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25752,1380263,1524661,NULL,NULL,NULL,0,NULL,NULL 25753,162330,177420,Nice Answer Yearling Popular Question Cleanup Custodian Yearling Notable Question Great Answer Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 25754,625950,1064150,NULL,NULL,NULL,0,NULL,NULL 25755,149716,358209,NULL,NULL,NULL,0,NULL,NULL 25756,88446,463412,Good Answer Yearling Announcer Good Answer Caucus Guru Yearling Announcer Nice Answer Yearling Organizer,NULL,NULL,0,NULL,NULL 25757,329015,463412,Good Answer Yearling Announcer Good Answer Caucus Guru Yearling Announcer Nice Answer Yearling Organizer,NULL,NULL,0,NULL,NULL 25758,1337672,779012,NULL,NULL,NULL,0,NULL,NULL 25759,28672,104158,Nice Question Famous Question Tumbleweed Promoter,NULL,NULL,0,NULL,NULL 25760,1171667,892741,Notable Question Yearling Good Answer Popular Question Yearling Notable Question Good Question Census Caucus Nice Question,NULL,NULL,0,NULL,NULL 25761,372246,1526019,NULL,NULL,NULL,0,NULL,NULL 25762,1198957,1526019,NULL,NULL,NULL,0,NULL,NULL 25763,641676,672504,Excavator Nice Answer Enlightened Notable Question Famous Question Caucus Constituent Census Popular Question Popular Question Self-Learner Caucus Constituent Yearling Curious Nice Question Caucus Critic,NULL,NULL,0,NULL,NULL 25764,404572,973703,NULL,NULL,NULL,0,NULL,NULL 25765,6767527,1397290,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 25766,1035881,1397290,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 25767,358038,1410583,NULL,NULL,NULL,0,NULL,NULL 25768,1904197,809663,NULL,NULL,NULL,0,NULL,NULL 25769,184851,668,NULL,NULL,NULL,0,NULL,NULL 25770,96375,273183,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 25771,434565,122093,Yearling Necromancer,NULL,NULL,0,NULL,NULL 25772,236320,1303049,Enthusiast Organizer Excavator,NULL,NULL,0,NULL,NULL 25773,21002,338,Popular Question Good Question Famous Question Yearling Revival Famous Question Nice Question Good Answer Nice Answer Famous Question Favorite Question Nice Question Famous Question Good Answer Good Answer Famous Question Popular Question Nice Answer Famous Question Famous Question Good Question Nice Answer Popular Question Nice Question Nice Answer Guru Nice Question Good Answer Enlightened Good Question Yearling Great Answer Popular Question Famous Question Good Answer Necromancer Guru Notable Question Nice Answer Good Answer Stellar Question Yearling Nice Question Announcer Guru Popular Question,NULL,NULL,0,NULL,NULL 25774,1035941,659831,Famous Question,NULL,NULL,0,NULL,NULL 25775,499783,659831,Famous Question,NULL,NULL,0,NULL,NULL 25776,1499503,659831,Famous Question,NULL,NULL,0,NULL,NULL 25777,1464572,187328,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25778,5075212,187328,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25779,1505548,1377235,Revival,NULL,NULL,0,NULL,NULL 25780,53056,397365,NULL,NULL,NULL,0,NULL,NULL 25781,19128,26819,Nice Answer Yearling Good Question Popular Question Yearling Popular Question Good Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 25782,145809,436937,NULL,NULL,NULL,0,NULL,NULL 25783,7260540,913192,NULL,NULL,NULL,0,NULL,NULL 25784,54214,542694,NULL,NULL,NULL,0,NULL,NULL 25785,586726,742249,Good Answer Yearling Yearling Nice Answer Civic Duty Popular Question Yearling Nice Answer,NULL,pI use always pulliquality in 85 liliprogressive comprobed compression lilia very tiny gausssian blur to optimize the size 05 or of radius depends on the quality and size of the picture this notably optimizes the size of the jpeg liliStrip any comment or exif tag li ulpin imagemagick should be ppre codeconvert strip interlace Plane gaussian blur 05 quality 85 source jpg result jpg code prephope this be useful ppSource link href http www yuiblog com blog 2008 12 05 imageopt rel noreferrer http www yuiblog com blog 2008 12 05 imageopt ppFrom in the comments don forget to thumbs up his comment if you like If you dislike blurring use code sampling factor code instead What this does is reduce the chroma channel resolution to half without messing with the luminance resolution that your eyes latch onto If you want better fidelity in the conversion you can get slight improvement without an increase in filesize by specifying code define jpeg dct method float code that is use the more accurate floating point discrete cosine transform rather than the default fast integer version You can find in internet billions of articles with the advantages of progressive JPEG,0,NULL,NULL 25786,299454,866157,NULL,NULL,NULL,0,NULL,NULL 25787,895703,188501,Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 25788,76379,1175959,NULL,NULL,NULL,0,NULL,NULL 25789,177752,1373674,NULL,NULL,NULL,0,NULL,NULL 25790,1421878,705084,NULL,NULL,NULL,0,NULL,NULL 25791,213576,532963,Popular Question,NULL,NULL,0,NULL,NULL 25792,44329,479314,NULL,NULL,NULL,0,NULL,NULL 25793,1113809,826983,Revival Popular Question Popular Question Popular Question Benefactor Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Socratic Popular Question Popular Question Nice Question Notable Question Nice Question Notable Question Notable Question Notable Question Electorate Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Taxonomist Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Caucus Constituent Nice Question Notable Question Popular Question Famous Question Good Question Famous Question Popular Question Tenacious Popular Question Good Question Custodian Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Disciplined Popular Question Popular Question Popular Question Custodian Popular Question Nice Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Notable Question Caucus Notable Question Nice Question Popular Question Popular Question Popular Question Constituent Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Favorite Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Necromancer Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Reviewer Popular Question Notable Question Popular Question Popular Question Popular Question Favorite Question Announcer Popular Question Notable Question Archaeologist Caucus Famous Question Popular Question Notable Question Notable Question Constituent Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Pundit Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Good Question Nice Answer Popular Question Popular Question Notable Question Announcer,NULL,pFirstly think about emwhy em you re doing this If you re trying to stop users from editing certain elements just set codecontenteditable code to false on those elements ppHowever it is possible to do what you ask The code below works in Safari and will return the node the selection is anchored in where the user emstarted to select em selecting backwards will return the end instead of the start if you want the element type as string just get the codenodeName code property of the returned node This works for zero length selections as well just caret position ppre codefunction getSelectionStart var node document getSelection anchorNode return node nodeType node parentNode node code pre This seems not to work on Firefox,1,The reference to entity useLegacyDatetimecode must end with the delimiter spring pIt one of those days where emnothing em works as it should ppre code lt bean id dataSource class org springframework jdbc datasource DriverManagerDataSource gt lt property name driverClassName value com mysql cj jdbc Driver gt lt property name url value jdbc mysql localhost 3306 mz db useSSL false amp useLegacyDatetimecode false gt lt property name username value root gt lt property name password value gt lt bean gt code prepThe above giving me this error message pblockquote pThe reference to entity useLegacyDatetimecode must end with the delimiter blockquotepBut the thing is that it is wrong ppre codejdbc mysql host1 port1 host2 port2 database propertyName1 propertyValue1 amp propertyName2 propertyValue2 code prepes explained href https dev mysql com doc connector en connector reference configuration properties html rel nofollow noreferrer here ppre codeCaused by org xml sax SAXParseException lineNumber 32 columnNumber 105 The reference to entity useLegacyDatetimecode must end with the delimiter at com sun org apache xerces internal util ErrorHandlerWrapper createSAXParseException ErrorHandlerWrapper java 203 at com sun org apache xerces internal util ErrorHandlerWrapper fatalError ErrorHandlerWrapper java 177 at com sun org apache xerces internal impl XMLErrorReporter reportError XMLErrorReporter java 441 at com sun org apache xerces internal impl XMLErrorReporter reportError XMLErrorReporter java 368 code prepSo what this all about,NULL 25794,1235088,872891,NULL,NULL,NULL,0,NULL,NULL 25795,1115647,920616,Popular Question,NULL,NULL,0,NULL,NULL 25796,3090156,920616,Popular Question,NULL,NULL,0,NULL,NULL 25797,1844107,920616,Popular Question,NULL,NULL,0,NULL,NULL 25798,150581,1088206,NULL,NULL,NULL,0,NULL,NULL 25799,790690,1115366,Necromancer Yearling,NULL,NULL,0,NULL,NULL 25800,1174205,425219,Popular Question Yearling Popular Question Popular Question Yearling Custodian Notable Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25801,132121,425219,Popular Question Yearling Popular Question Popular Question Yearling Custodian Notable Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25802,93991,408476,NULL,NULL,NULL,0,NULL,NULL 25803,701079,302707,Notable Question Notable Question Popular Question Famous Question Notable Question Good Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Good Question Good Question Good Question Announcer Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Favorite Question Popular Question Great Question Popular Question Famous Question Yearling Nice Question Popular Question Notable Question Notable Question Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25804,775454,1305042,NULL,NULL,NULL,0,NULL,NULL 25805,230315,184207,Favorite Question Notable Question Yearling Nice Answer Tumbleweed Necromancer Yearling Popular Question Nice Answer Notable Question Caucus Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 25806,458471,628171,NULL,NULL,NULL,0,NULL,NULL 25807,49593,503603,NULL,NULL,NULL,0,NULL,NULL 25808,42369,170403,Custodian Yearling Popular Question php Good Answer Yearling Citizen Patrol Announcer Custodian Yearling Curious Announcer,NULL,NULL,0,NULL,NULL 25809,250491,550132,NULL,NULL,NULL,0,NULL,NULL 25810,78252,990852,NULL,NULL,NULL,0,NULL,NULL 25811,27268,477659,NULL,NULL,NULL,0,NULL,NULL 25812,31845,133934,Necromancer,NULL,NULL,0,NULL,NULL 25813,886330,811536,NULL,NULL,NULL,0,NULL,NULL 25814,245317,573589,NULL,NULL,NULL,0,NULL,NULL 25815,232195,110487,Yearling,NULL,NULL,0,NULL,NULL 25816,399138,622769,NULL,NULL,NULL,0,NULL,NULL 25817,28843,436331,Popular Question Revival Popular Question Critic Announcer Yearling,NULL,NULL,0,NULL,NULL 25818,1087,308887,NULL,NULL,NULL,0,NULL,NULL 25819,179965,1019418,NULL,NULL,NULL,0,NULL,NULL 25820,97170,1504810,NULL,NULL,NULL,0,NULL,NULL 25821,84504,1497829,NULL,NULL,NULL,0,NULL,NULL 25822,10393079,173566,NULL,NULL,NULL,0,NULL,NULL 25823,64064,1147214,Revival,NULL,NULL,0,NULL,NULL 25824,71669,520306,NULL,NULL,NULL,0,NULL,NULL 25825,31416,380774,Famous Question Announcer Inquisitive Famous Question Nice Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Answer Notable Question Caucus Announcer Custodian Notable Question Notable Question Yearling Caucus Great Answer Constituent Popular Question Popular Question xcode Documentation User Nice Question Popular Question Caucus Populist Yearling Popular Question Good Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25826,492248,937320,Notable Question,NULL,NULL,0,NULL,NULL 25827,426790,1130546,NULL,NULL,NULL,0,NULL,NULL 25828,202426,457047,NULL,NULL,NULL,0,NULL,NULL 25829,42376,1114804,NULL,NULL,NULL,0,NULL,NULL 25830,84021,242325,Yearling Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 25831,82855,604044,Critic,NULL,NULL,0,NULL,NULL 25832,1465084,604044,Critic,NULL,NULL,0,NULL,NULL 25833,1785873,1021307,Notable Question Notable Question Notable Question Critic,NULL,NULL,0,NULL,NULL 25834,181737,219065,Favorite Question Yearling Popular Question Necromancer Nice Answer Yearling Caucus Announcer,NULL,NULL,0,NULL,NULL 25835,7687030,865606,NULL,NULL,NULL,0,NULL,NULL 25836,5831203,865606,NULL,NULL,NULL,0,NULL,NULL 25837,94975,793672,NULL,NULL,NULL,0,NULL,NULL 25838,167209,1434639,NULL,NULL,NULL,0,NULL,NULL 25839,1344507,1450141,NULL,NULL,NULL,0,NULL,NULL 25840,6931,694963,Yearling Good Question Yearling Nice Question Caucus Nice Question Teacher Yearling Notable Question Famous Question,NULL,Compile error error trying to exec cc1plus execvp No such file or directory php linux gcc pWhen compile program with codepopen code in codephp code got this error ppre codeg error trying to exec cc1plus execvp No such file or directory code prepbut if run php code in shell it works fine ppin Arch Linux ppPHP Code ppre class lang php prettyprint override code lt php function rfile fp out while feof fp out fgets fp 1024000 return out popen Wall aplusb cc aplusb gt amp result rfile pclose echo result gt code prepthanks Sorry for the confusion but remember when asked this question both and programs can not be compiled,0,NULL,NULL 25841,101770,418418,Yearling Announcer Notable Question Good Answer Yearling Nice Question Caucus Yearling,NULL,NULL,0,NULL,NULL 25842,88941,1263123,NULL,NULL,NULL,0,NULL,NULL 25843,1122326,868575,NULL,NULL,NULL,0,NULL,NULL 25844,867389,1091465,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25845,101017,859829,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 25846,1163585,836943,Tumbleweed,NULL,NULL,0,NULL,NULL 25847,67675,601488,NULL,NULL,NULL,0,NULL,NULL 25848,123075,390897,Guru Notable Question Inquisitive Good Answer Nice Answer Good Answer Custodian Yearling Great Answer Necromancer Mortarboard Revival Caucus Notable Question Notable Question Nice Answer Enlightened Popular Question Good Answer Custodian Organizer Suffrage Vox Populi Revival Good Answer Good Answer Civic Duty Revival Nice Question Yearling Popular Question Caucus Constituent Guru Nice Question Nice Answer Documentation User Investor Altruist Necromancer Popular Question Quorum Peer Pressure Census Nice Answer Enlightened Nice Question Caucus Enlightened Popular Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Yearling Popular Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 25849,1351841,1054821,NULL,NULL,NULL,0,NULL,NULL 25850,573857,1181234,Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 25851,108068,151652,Nice Answer Enlightened Custodian Yearling Nice Question Yearling Documentation User Popular Question Tumbleweed Excavator Revival Yearling,NULL,NULL,0,NULL,NULL 25852,624232,1336234,Critic Yearling Commentator Enthusiast Yearling Citizen Patrol Curious Yearling Custodian Yearling clojure Custodian Custodian Caucus Yearling Civic Duty Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 25853,1509350,1076070,NULL,NULL,NULL,0,NULL,NULL 25854,379994,1142528,NULL,NULL,NULL,0,NULL,NULL 25855,384730,512811,Editor Peer Pressure,NULL,NULL,0,NULL,NULL 25856,331615,117399,Popular Question,NULL,NULL,0,NULL,NULL 25857,163787,768300,Popular Question Critic Caucus Popular Question,NULL,NULL,0,NULL,NULL 25858,31208,1189907,NULL,NULL,NULL,0,NULL,NULL 25859,77686,255536,NULL,NULL,NULL,0,NULL,NULL 25860,1504917,229609,Promoter Yearling Caucus Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25861,413644,143733,Custodian Popular Question Revival Notable Question Yearling Notable Question Notable Question Announcer Good Question Notable Question Famous Question Popular Question Popular Question Yearling Nice Question Famous Question Popular Question Famous Question Good Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25862,1518756,1187441,NULL,NULL,NULL,0,NULL,NULL 25863,1268750,1074126,NULL,NULL,NULL,0,NULL,NULL 25864,149287,624651,NULL,NULL,NULL,0,NULL,NULL 25865,797017,1170402,NULL,NULL,NULL,0,NULL,NULL 25866,1393477,264179,NULL,NULL,NULL,0,NULL,NULL 25867,312665,1054458,Famous Question,NULL,NULL,0,NULL,NULL 25868,67352,900486,Popular Question,NULL,NULL,0,NULL,NULL 25869,624566,247555,Nice Answer Enlightened Yearling Good Answer Yearling Custodian Guru Popular Question Caucus Great Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 25870,297768,47535,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25871,26445,382906,Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Famous Question Good Question Taxonomist Notable Question Popular Question Good Question Notable Question Good Question Famous Question Popular Question Nice Question Notable Question Popular Question Famous Question Nice Question Notable Question Famous Question Notable Question Yearling Notable Question Popular Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Notable Question Famous Question Popular Question Famous Question Popular Question Good Question Notable Question Notable Question Notable Question Notable Question Famous Question Famous Question Notable Question Notable Question Popular Question Notable Question Nice Answer Notable Question Favorite Question Popular Question Good Question Popular Question Notable Question Good Question Popular Question Nice Question Notable Question Yearling Good Question Nice Question Popular Question Nice Question Famous Question Good Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Notable Question Nice Question Nice Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 25872,110072,1150606,Yearling Guru Good Question Necromancer Nice Answer Yearling Necromancer Famous Question Popular Question Good Answer Yearling Great Answer Great Question,NULL,NULL,0,NULL,NULL 25873,152844,208328,NULL,NULL,NULL,0,NULL,NULL 25874,695128,630590,NULL,NULL,NULL,0,NULL,NULL 25875,1365257,251078,NULL,NULL,NULL,0,NULL,NULL 25876,1570503,1507704,Self-Learner Popular Question Notable Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 25877,682650,1377908,Popular Question Yearling,NULL,NULL,0,NULL,NULL 25878,2654338,1377908,Popular Question Yearling,NULL,NULL,0,NULL,NULL 25879,83715,1394891,NULL,NULL,NULL,0,NULL,NULL 25880,2690980,735113,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 25881,444497,754369,NULL,NULL,NULL,0,NULL,NULL 25882,33706,679539,NULL,NULL,NULL,0,NULL,NULL 25883,91081,762630,Critic Notable Question Promoter Benefactor Enthusiast Tumbleweed Autobiographer Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 25884,1823212,1189595,NULL,NULL,NULL,0,NULL,NULL 25885,726977,931980,NULL,NULL,NULL,0,NULL,NULL 25886,525120,557970,NULL,NULL,NULL,0,NULL,NULL 25887,98173,1061177,Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Notable Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 25888,225198,948318,Notable Question Nice Answer Notable Question Notable Question Yearling Nice Answer Nice Answer Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25889,195295,1092487,NULL,NULL,NULL,0,NULL,NULL 25890,308968,45530,Notable Question Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 25891,508460,945310,Yearling Yearling,NULL,NULL,0,NULL,NULL 25892,178114,1214462,NULL,NULL,NULL,0,NULL,NULL 25893,708372,1496019,NULL,NULL,NULL,0,NULL,NULL 25894,635774,945660,Popular Question Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25895,117796,825780,Nice Answer Enlightened Nice Answer Guru Notable Question Nice Answer Popular Question Popular Question Nice Answer Guru Popular Question Yearling javascript Nice Answer Enlightened Nice Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Notable Question Great Answer Nice Question Nice Answer Yearling Popular Question Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 25896,2334841,825780,Nice Answer Enlightened Nice Answer Guru Notable Question Nice Answer Popular Question Popular Question Nice Answer Guru Popular Question Yearling javascript Nice Answer Enlightened Nice Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Notable Question Great Answer Nice Question Nice Answer Yearling Popular Question Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 25897,64521,429322,Curious Yearling Popular Question Nice Answer Enlightened Critic Revival Good Question Famous Question,NULL,NULL,0,NULL,NULL 25898,890097,1429342,Popular Question Nice Question Documentation User,NULL,NULL,0,NULL,NULL 25899,336437,1136239,NULL,NULL,NULL,0,NULL,NULL 25900,336567,1136239,NULL,NULL,NULL,0,NULL,NULL 25901,140,1267735,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 25902,248559,250153,Teacher,NULL,NULL,0,NULL,NULL 25903,28281,250153,Teacher,NULL,NULL,0,NULL,NULL 25904,28778,396578,Announcer Popular Question Famous Question Custodian Yearling Nice Question Revival Nice Answer Enlightened Necromancer Popular Question Yearling ios Good Question Popular Question Good Answer Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 25905,690991,1060823,Student Scholar Supporter Editor Commentator,NULL,NULL,0,NULL,NULL 25906,23504,1361949,NULL,NULL,NULL,0,NULL,NULL 25907,127574,1203747,NULL,NULL,NULL,0,NULL,NULL 25908,9753701,209623,Nice Answer Notable Question Popular Question Yearling Necromancer Popular Question Necromancer Citizen Patrol Custodian Caucus Popular Question Yearling Notable Question Popular Question Caucus Custodian Yearling Census Nice Answer Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 25909,29873,209623,Nice Answer Notable Question Popular Question Yearling Necromancer Popular Question Necromancer Citizen Patrol Custodian Caucus Popular Question Yearling Notable Question Popular Question Caucus Custodian Yearling Census Nice Answer Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 25910,3414,498402,Nice Answer Yearling Nice Answer Yearling Good Answer Populist Yearling Custodian Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 25911,9966,434024,Commentator Civic Duty Popular Question Yearling,NULL,NULL,0,NULL,NULL 25912,1371815,314803,Necromancer Nice Answer Yearling Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 25913,350610,1249894,Promoter Benefactor Yearling Nice Answer Yearling Popular Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 25914,286326,482152,Notable Question Nice Question Yearling Caucus Famous Question Investor Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 25915,193548,251964,Enthusiast Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 25916,187605,1258110,Popular Question,NULL,NULL,0,NULL,NULL 25917,3904051,1258110,Popular Question,NULL,NULL,0,NULL,NULL 25918,1336659,647075,NULL,NULL,NULL,0,NULL,NULL 25919,1479502,711765,NULL,NULL,NULL,0,NULL,NULL 25920,467582,928805,NULL,NULL,NULL,0,NULL,NULL 25921,43688,926763,NULL,NULL,NULL,0,NULL,NULL 25922,1205055,366909,Student,NULL,NULL,0,NULL,NULL 25923,169987,1172000,Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 25924,232656,1339354,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 25925,51318,807693,Autobiographer Nice Answer Yearling Citizen Patrol Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25926,544537,807693,Autobiographer Nice Answer Yearling Citizen Patrol Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 25927,553233,1369457,NULL,NULL,NULL,0,NULL,NULL 25928,181258,779533,NULL,NULL,NULL,0,NULL,NULL 25929,3967,808728,NULL,NULL,NULL,0,NULL,NULL 25930,656626,1423720,NULL,NULL,NULL,0,NULL,NULL 25931,356765,892737,Notable Question,NULL,NULL,0,NULL,NULL 25932,29506,811288,NULL,NULL,NULL,0,NULL,NULL 25933,185599,353971,Yearling Caucus Enthusiast Caucus Custodian,NULL,NULL,0,NULL,NULL 25934,121261,985527,NULL,NULL,NULL,0,NULL,NULL 25935,203894,1070354,Good Answer Guru Good Answer Caucus Yearling Nice Answer Enlightened Citizen Patrol Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Documentation User Popular Question Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Enlightened Caucus Good Answer Self-Learner Nice Answer Enlightened Curious Yearling,NULL,NULL,0,NULL,NULL 25936,552418,260175,NULL,NULL,NULL,0,NULL,NULL 25937,53166,4727,Nice Answer Yearling Nice Answer Caucus Nice Answer Yearling Documentation User Census Guru Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 25938,139209,33743,Guru,NULL,NULL,0,NULL,NULL 25939,545,439330,Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 25940,577295,735798,Autobiographer Editor,NULL,NULL,0,NULL,NULL 25941,577296,735798,Autobiographer Editor,NULL,NULL,0,NULL,NULL 25942,528522,902117,NULL,NULL,NULL,0,NULL,NULL 25943,2819420,902117,NULL,NULL,NULL,0,NULL,NULL 25944,594532,865235,NULL,NULL,NULL,0,NULL,NULL 25945,8152546,751077,Yearling Revival Guru Popular Question Yearling java Yearling,NULL,NULL,0,NULL,NULL 25946,14682,55276,NULL,NULL,NULL,0,NULL,NULL 25947,689449,829458,NULL,NULL,NULL,0,NULL,NULL 25948,764359,548698,Informed,NULL,NULL,0,NULL,NULL 25949,2975542,821953,NULL,NULL,NULL,0,NULL,NULL 25950,275886,207234,NULL,NULL,NULL,0,NULL,NULL 25951,362554,573536,Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 25952,608091,375324,Informed Census Census Autobiographer,NULL,NULL,0,NULL,NULL 25953,163837,361532,NULL,NULL,NULL,0,NULL,NULL 25954,589928,1481232,Autobiographer Enthusiast Commentator Critic,NULL,NULL,0,NULL,NULL 25955,1438458,626375,NULL,NULL,NULL,0,NULL,NULL 25956,106608,143543,Nice Question Yearling Good Answer Custodian Yearling Nice Answer Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 25957,16129,478427,Critic Necromancer,NULL,NULL,0,NULL,NULL 25958,152786,707876,Necromancer Yearling Nice Answer Yearling Good Answer Commentator Curious Yearling Yearling Yearling Yearling Great Answer Documentation User Popular Question Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 25959,50306,1235601,NULL,NULL,NULL,0,NULL,NULL 25960,270295,240917,NULL,NULL,NULL,0,NULL,NULL 25961,77589,204697,NULL,NULL,NULL,0,NULL,NULL 25962,498065,223361,Popular Question,NULL,NULL,0,NULL,NULL 25963,283489,544430,NULL,NULL,NULL,0,NULL,NULL 25964,190119,602243,NULL,NULL,NULL,0,NULL,NULL 25965,355495,957249,Nice Answer Critic Informed,NULL,NULL,0,NULL,NULL 25966,4734,1144274,NULL,NULL,NULL,0,NULL,NULL 25967,189147,1133405,Yearling Popular Question Good Question Favorite Question Nice Answer Yearling Civic Duty Notable Question Custodian Yearling Caucus Constituent Nice Question Good Answer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 25968,118641,753170,Nice Answer Enlightened Nice Answer Enlightened eclipse Yearling Nice Answer Enlightened Great Answer Caucus Yearling Good Answer Revival Yearling Announcer Necromancer Revival Necromancer,NULL,NULL,0,NULL,NULL 25969,154169,72601,NULL,NULL,NULL,0,NULL,NULL 25970,195054,483519,NULL,NULL,NULL,0,NULL,NULL 25971,13223,113936,Famous Question Good Answer Yearling Critic Yearling Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 25972,362034,1084571,NULL,NULL,NULL,0,NULL,NULL 25973,108927,503406,Nice Question,NULL,NULL,0,NULL,NULL 25974,58052,476345,Famous Question Critic Nice Question Curious Yearling Nice Answer Revival Yearling,NULL,pUsing levelFilter solved the problem ppExample ppre code lt appender name infoFile class ch qos logback core rolling RollingFileAppender gt lt File gt LOGS FOLDER info log lt File gt lt filter class ch qos logback classic filter LevelFilter gt lt level gt INFO lt level gt lt onMatch gt ACCEPT lt onMatch gt lt onMismatch gt DENY lt onMismatch gt lt filter gt lt encoder gt lt pattern gt HH mm ss SSS thread 5level logger 36 msg lt pattern gt lt encoder gt lt appender gt lt appender name debugFile class ch qos logback core rolling RollingFileAppender gt lt File gt LOGS FOLDER debug log lt File gt lt encoder gt lt pattern gt HH mm ss SSS thread 5level logger 36 msg lt pattern gt lt encoder gt lt appender gt lt root level DEBUG gt lt Using the lowest level here gt lt appender ref ref debugFile gt lt appender ref ref infoFile gt lt root gt code pre Sure forgot to update the answer now it done,0,NULL,NULL 25975,486398,532626,NULL,NULL,NULL,0,NULL,NULL 25976,185733,100620,NULL,NULL,NULL,0,NULL,NULL 25977,754722,346352,NULL,NULL,NULL,0,NULL,NULL 25978,8294063,1370168,NULL,NULL,NULL,0,NULL,NULL 25979,5708,34747,Popular Question Popular Question Popular Question Notable Question Custodian Popular Question Popular Question Nice Answer Notable Question Nice Answer Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Populist Good Answer Inquisitive Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 25980,23656,1006288,Notable Question,NULL,NULL,0,NULL,NULL 25981,184219,760596,NULL,NULL,NULL,0,NULL,NULL 25982,70983,382684,NULL,NULL,NULL,0,NULL,NULL 25983,500534,985661,Nice Answer Critic Necromancer Student Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 25984,47928,481719,NULL,NULL,NULL,0,NULL,NULL 25985,131292,1202840,Census Caucus Critic Census,NULL,NULL,0,NULL,NULL 25986,1107156,945913,NULL,NULL,NULL,0,NULL,NULL 25987,400626,1318986,NULL,NULL,NULL,0,NULL,NULL 25988,206723,684253,Popular Question Yearling Good Answer Famous Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Nice Question Popular Question Announcer Popular Question Announcer Good Question Inquisitive Yearling Popular Question Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 25989,459823,928042,NULL,NULL,NULL,0,NULL,NULL 25990,160828,1086351,Caucus Excavator,NULL,NULL,0,NULL,NULL 25991,668766,1105045,Caucus,NULL,NULL,0,NULL,NULL 25992,1218763,356925,Student Enthusiast Supporter Popular Question,NULL,NULL,0,NULL,NULL 25993,3394630,87837,Teacher,NULL,NULL,0,NULL,NULL 25994,134802,497477,Yearling Yearling Great Question Favorite Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 25995,959090,264802,Notable Question Notable Question Necromancer Notable Question Yearling Popular Question Famous Question Necromancer Popular Question Nice Answer Enlightened Famous Question Good Question Nice Question Popular Question Necromancer Popular Question Popular Question Notable Question Nice Answer swift Revival Good Question Popular Question Popular Question Proofreader Informed Notable Question Cleanup Notable Question Nice Answer Popular Question Good Answer Necromancer Popular Question c# Good Question Necromancer Popular Question Popular Question Notable Question Good Answer Popular Question Revival Caucus Notable Question Favorite Question Popular Question Yearling Nice Answer Nice Answer Nice Question Famous Question Nice Question Notable Question Nice Question Good Question Notable Question Nice Answer Notable Question Popular Question Popular Question Good Answer Popular Question Caucus Good Answer Notable Question Notable Question Guru Guru Famous Question Notable Question Popular Question Nice Answer Enlightened Popular Question Census Famous Question Yearling Nice Question Notable Question Popular Question Great Answer javascript Notable Question Nice Question Good Answer,NULL,pI had to do this in Swift using an codeextension code ppI thought share how did it ppre codeextension UIImage func imageWithColor color1 UIColor gt UIImage UIGraphicsBeginImageContextWithOptions self size false self scale color1 setFill let context UIGraphicsGetCurrentContext as CGContextRef CGContextTranslateCTM context self size height CGContextScaleCTM context CGContextSetBlendMode context CGBlendMode Normal let rect CGRectMake self size width self size height as CGRect CGContextClipToMask context rect self CGImage CGContextFillRect context rect let newImage UIGraphicsGetImageFromCurrentImageContext as UIImage UIGraphicsEndImageContext return newImage code prepUsage pp codetheImageView image theImageView image imageWithColor UIColor redColor code pp strongSwift strong ppre codeextension UIImage func imageWithColor color1 UIColor gt UIImage UIGraphicsBeginImageContextWithOptions self size false self scale color1 setFill let context UIGraphicsGetCurrentContext context translateBy self size height context scaleBy context setBlendMode CGBlendMode normal let rect CGRect origin zero size CGSize width self size width height self size height context clip to rect mask self cgImage context fill rect let newImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return newImage code prepUsage pp codetheImageView image theImageView image imageWithColor color1 UIColor red code Provided Swift instead pIn three js an object orientation can be specified by its Euler rotation vector codeobject rotation code The three components of the rotation vector represent the rotation in radians around the object internal axis axis and axis respectively ppThe order in which the rotations are performed is specified by codeobject rotation order code The default order is XYZ rotation around the axis occurs first then the axis then the axis ppRotations are performed with respect to the object eminternal em coordinate system not the world coordinate system This is important So for example after the rotation occurs the object and axes will generally no longer be aligned with the world axes Rotations specified in this way are not unique ppSo for example if in code you specify ppre codecamera rotation radians firstcamera rotation radians secondcamera rotation code prepthe rotations are applied in the object coderotation order code not in the order you specified them ppIn your case you may find it more intuitive to set coderotation order code to YXZ which is equivalent to heading pitch and roll ppFor more information about Euler angles see the href http en wikipedia org wiki Euler angles Wikipedia article Three js follows the Tait–Bryan convention as explained in the article ppthree js 61 Don you mean yaw pitch and roll,0,NULL,NULL 25996,441983,264802,Notable Question Notable Question Necromancer Notable Question Yearling Popular Question Famous Question Necromancer Popular Question Nice Answer Enlightened Famous Question Good Question Nice Question Popular Question Necromancer Popular Question Popular Question Notable Question Nice Answer swift Revival Good Question Popular Question Popular Question Proofreader Informed Notable Question Cleanup Notable Question Nice Answer Popular Question Good Answer Necromancer Popular Question c# Good Question Necromancer Popular Question Popular Question Notable Question Good Answer Popular Question Revival Caucus Notable Question Favorite Question Popular Question Yearling Nice Answer Nice Answer Nice Question Famous Question Nice Question Notable Question Nice Question Good Question Notable Question Nice Answer Notable Question Popular Question Popular Question Good Answer Popular Question Caucus Good Answer Notable Question Notable Question Guru Guru Famous Question Notable Question Popular Question Nice Answer Enlightened Popular Question Census Famous Question Yearling Nice Question Notable Question Popular Question Great Answer javascript Notable Question Nice Question Good Answer,NULL,pI had to do this in Swift using an codeextension code ppI thought share how did it ppre codeextension UIImage func imageWithColor color1 UIColor gt UIImage UIGraphicsBeginImageContextWithOptions self size false self scale color1 setFill let context UIGraphicsGetCurrentContext as CGContextRef CGContextTranslateCTM context self size height CGContextScaleCTM context CGContextSetBlendMode context CGBlendMode Normal let rect CGRectMake self size width self size height as CGRect CGContextClipToMask context rect self CGImage CGContextFillRect context rect let newImage UIGraphicsGetImageFromCurrentImageContext as UIImage UIGraphicsEndImageContext return newImage code prepUsage pp codetheImageView image theImageView image imageWithColor UIColor redColor code pp strongSwift strong ppre codeextension UIImage func imageWithColor color1 UIColor gt UIImage UIGraphicsBeginImageContextWithOptions self size false self scale color1 setFill let context UIGraphicsGetCurrentContext context translateBy self size height context scaleBy context setBlendMode CGBlendMode normal let rect CGRect origin zero size CGSize width self size width height self size height context clip to rect mask self cgImage context fill rect let newImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return newImage code prepUsage pp codetheImageView image theImageView image imageWithColor color1 UIColor red code Provided Swift instead pIn three js an object orientation can be specified by its Euler rotation vector codeobject rotation code The three components of the rotation vector represent the rotation in radians around the object internal axis axis and axis respectively ppThe order in which the rotations are performed is specified by codeobject rotation order code The default order is XYZ rotation around the axis occurs first then the axis then the axis ppRotations are performed with respect to the object eminternal em coordinate system not the world coordinate system This is important So for example after the rotation occurs the object and axes will generally no longer be aligned with the world axes Rotations specified in this way are not unique ppSo for example if in code you specify ppre codecamera rotation radians firstcamera rotation radians secondcamera rotation code prepthe rotations are applied in the object coderotation order code not in the order you specified them ppIn your case you may find it more intuitive to set coderotation order code to YXZ which is equivalent to heading pitch and roll ppFor more information about Euler angles see the href http en wikipedia org wiki Euler angles Wikipedia article Three js follows the Tait–Bryan convention as explained in the article ppthree js 61 Don you mean yaw pitch and roll,0,NULL,NULL 25997,206750,1522344,NULL,NULL,NULL,0,NULL,NULL 25998,69413,549862,NULL,NULL,NULL,0,NULL,NULL 25999,396747,33244,Necromancer Yearling Nice Answer Good Answer Yearling Yearling Necromancer Yearling Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26000,123229,777291,NULL,NULL,NULL,0,NULL,NULL 26001,143730,404238,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26002,127190,652457,Nice Answer Yearling Necromancer Famous Question Self-Learner Nice Answer Yearling Good Answer Caucus Autobiographer Populist Enthusiast Yearling Electorate Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 26003,703729,577300,Yearling Nice Answer Enlightened Nice Answer Guru Nice Answer Yearling Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Yearling html Great Answer Guru Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 26004,134167,1338826,NULL,NULL,NULL,0,NULL,NULL 26005,782532,682335,NULL,NULL,NULL,0,NULL,NULL 26006,199178,614251,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 26007,9204,836836,NULL,NULL,NULL,0,NULL,NULL 26008,214225,246051,Yearling Good Answer Guru Popular Question Reviewer Guru Caucus Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 26009,8405,830907,NULL,NULL,NULL,0,NULL,NULL 26010,144828,764575,Custodian Revival Yearling Announcer Notable Question Revival Necromancer Announcer,NULL,NULL,0,NULL,NULL 26011,331000,369961,Popular Question,NULL,NULL,0,NULL,NULL 26012,22141,1032870,Excavator Commentator Informed Critic,NULL,NULL,0,NULL,NULL 26013,39486,718793,NULL,NULL,NULL,0,NULL,NULL 26014,3622712,1197441,NULL,NULL,NULL,0,NULL,NULL 26015,635355,1174102,Editor Popular Question Informed Citizen Patrol Autobiographer Supporter,NULL,NULL,0,NULL,NULL 26016,245103,499377,Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Custodian Critic,NULL,NULL,0,NULL,NULL 26017,203331,1475474,Citizen Patrol Revival,NULL,NULL,0,NULL,NULL 26018,155761,252027,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 26019,419289,1017590,Enthusiast Popular Question Popular Question Teacher Curious Notable Question,NULL,NULL,0,NULL,NULL 26020,542480,1080670,Yearling Citizen Patrol Yearling Mortarboard Yearling Custodian Scholar Caucus Constituent Custodian Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 26021,7609,460768,NULL,NULL,NULL,0,NULL,NULL 26022,523181,227927,Popular Question Critic Notable Question Nice Answer Custodian Yearling Yearling Famous Question Tenacious Tumbleweed Famous Question Yearling,NULL,NULL,0,NULL,NULL 26023,611561,1347348,Critic Notable Question Curious,NULL,NULL,0,NULL,NULL 26024,144204,504596,Nice Answer Enlightened Curious Nice Answer Nice Question Popular Question Yearling Nice Question Good Answer Notable Question Popular Question Yearling Nice Answer Enlightened Cleanup Caucus Nice Answer Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 26025,271358,1188303,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26026,649510,1369413,NULL,NULL,NULL,0,NULL,NULL 26027,25932,1544713,Self-Learner Announcer,NULL,NULL,0,NULL,NULL 26028,53245,462707,Notable Question Popular Question Popular Question Organizer Popular Question Custodian Custodian Custodian Popular Question Famous Question Notable Question Notable Question Nice Question Revival Custodian Nice Question Yearling Caucus Constituent Revival Famous Question Nice Question Good Question Popular Question Nice Question Yearling Famous Question Notable Question Notable Question Famous Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26029,894,65975,Civic Duty Necromancer Yearling Nice Answer Census Necromancer Caucus,NULL,NULL,0,NULL,NULL 26030,1352346,1186483,Supporter Teacher Necromancer Nice Answer Caucus Yearling Good Answer Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 26031,449285,738714,Student,NULL,NULL,0,NULL,NULL 26032,136433,352191,Notable Question Nice Question Popular Question Yearling Notable Question Notable Question Caucus Great Question Custodian Custodian Citizen Patrol Yearling Good Question Popular Question Favorite Question Popular Question Notable Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 26033,8052,1516080,Informed Autobiographer Editor Supporter Commentator Critic Yearling Enthusiast Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26034,69595,505162,Yearling Tumbleweed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26035,4425320,769293,Nice Answer Yearling Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 26036,232389,423795,Yearling Caucus Notable Question Nice Answer Caucus Yearling linux Caucus Constituent linux-kernel Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26037,458894,70584,Necromancer,NULL,NULL,0,NULL,NULL 26038,373417,1063988,NULL,NULL,NULL,0,NULL,NULL 26039,167094,1229787,NULL,NULL,NULL,0,NULL,NULL 26040,579866,698545,NULL,NULL,NULL,0,NULL,NULL 26041,411925,980733,Critic,NULL,NULL,0,NULL,NULL 26042,1146584,227618,Popular Question Necromancer Necromancer Revival Necromancer Notable Question Caucus Constituent Yearling Proofreader Nice Answer Custodian Famous Question Nice Question Necromancer Nice Answer Enlightened Documentation User Yearling Necromancer Nice Answer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 26043,179889,1390817,Editor Scholar Tumbleweed Curious,NULL,NULL,0,NULL,NULL 26044,7956,771505,NULL,NULL,NULL,0,NULL,NULL 26045,99223,246544,Yearling Necromancer Notable Question ruby-on-rails-3 Nice Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Revival Notable Question Yearling Popular Question Nice Answer Enlightened Good Answer Good Answer Popular Question Notable Question Good Answer php Notable Question Popular Question Famous Question Good Answer Popular Question Yearling Custodian Popular Question Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 26046,905252,954072,Scholar Autobiographer,NULL,NULL,0,NULL,NULL 26047,102745,155033,Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer node.js Nice Answer Caucus Good Answer Guru Nice Answer Enlightened Census Generalist Populist Custodian Announcer Caucus Constituent Yearling Nice Answer Enlightened facebook-graph-api Nice Answer Enlightened Nice Answer Caucus Good Answer Nice Answer Good Answer Good Answer jquery Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 26048,4368,146868,Great Question Populist Popular Question Nice Answer Yearling Notable Question Popular Question Excavator Yearling Census Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 26049,541477,531888,NULL,NULL,NULL,0,NULL,NULL 26050,248642,1503913,NULL,NULL,NULL,0,NULL,NULL 26051,284844,1185500,NULL,NULL,NULL,0,NULL,NULL 26052,1030776,349630,NULL,NULL,NULL,0,NULL,NULL 26053,333894,1176156,Nice Answer Yearling Notable Question Civic Duty Popular Question Nice Answer Enlightened objective-c Nice Answer Announcer Notable Question Yearling Enlightened Announcer Good Answer Popular Question Popular Question Nice Answer Nice Answer Enlightened Famous Question Good Answer Yearling Custodian Announcer Guru Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 26054,9183882,243300,Yearling Yearling Tumbleweed Yearling,NULL,,0,, 26055,45592,243300,Yearling Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 26056,23550,243300,Yearling Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 26057,991894,776270,Commentator,NULL,NULL,0,NULL,NULL 26058,1343577,683970,NULL,NULL,NULL,0,NULL,NULL 26059,1045780,1286651,NULL,NULL,NULL,0,NULL,NULL 26060,158711,610767,Civic Duty Nice Answer Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26061,76813,225072,Notable Question,NULL,NULL,0,NULL,NULL 26062,1816044,729128,NULL,NULL,NULL,0,NULL,NULL 26063,258360,729128,NULL,NULL,NULL,0,NULL,NULL 26064,1081888,539453,NULL,NULL,NULL,0,NULL,NULL 26065,1263573,1331156,Informed Teacher,NULL,NULL,0,NULL,NULL 26066,2955901,1331156,Informed Teacher,NULL,NULL,0,NULL,NULL 26067,225269,504256,NULL,NULL,NULL,0,NULL,NULL 26068,76865,144916,Famous Question,NULL,NULL,0,NULL,NULL 26069,42002,420797,Tenacious Custodian Critic Yearling Nice Answer Nice Answer Enlightened Revival Revival Yearling Necromancer rest Yearling,NULL,NULL,0,NULL,NULL 26070,310955,1519374,Yearling Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 26071,63333,163977,Yearling Enthusiast Caucus Civic Duty Caucus Constituent Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 26072,191035,795404,NULL,NULL,NULL,0,NULL,NULL 26073,177375,300783,Yearling Announcer Yearling Yearling Popular Question Necromancer Notable Question Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 26074,245117,566608,Nice Answer Yearling Nice Answer Self-Learner Nice Answer Good Answer Nice Answer Enlightened Notable Question Necromancer Nice Answer Nice Answer Popular Question Popular Question Notable Question Yearling Electorate Good Answer Popular Question Nice Answer Enlightened Good Answer Notable Question Notable Question Good Answer Nice Question Caucus Great Question Popular Question Custodian Custodian Nice Answer Popular Question Popular Question Popular Question Yearling Census Notable Question Nice Answer Popular Question Nice Question Nice Answer Enlightened Caucus Notable Question Famous Question Nice Answer Popular Question Good Answer Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 26075,40485,427023,NULL,NULL,NULL,0,NULL,NULL 26076,864951,725003,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26077,542793,1148245,NULL,NULL,NULL,0,NULL,NULL 26078,508992,1069701,Popular Question Popular Question Popular Question Critic Yearling Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26079,123635,10474,Nice Answer Great Answer Populist Necromancer Yearling Good Answer Populist Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Nice Answer Necromancer Famous Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26080,36645,14540,Popular Question Notable Question Good Answer Yearling Good Question Famous Question Notable Question Popular Question Famous Question Good Question Nice Answer Notable Question Notable Question Popular Question Caucus Yearling Popular Question Nice Answer Famous Question Nice Question Nice Answer Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 26081,38409,606463,NULL,NULL,NULL,0,NULL,NULL 26082,83362,287145,Yearling Famous Question Nice Question Yearling Yearling Caucus Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 26083,17118,51500,Yearling Notable Question Good Answer Good Answer Nice Answer Great Answer Stellar Question Yearling Necromancer Necromancer Excavator Tumbleweed Informed Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 26084,20675,769939,NULL,NULL,NULL,0,NULL,NULL 26085,121236,335974,Nice Answer Yearling Citizen Patrol Custodian Custodian Yearling Caucus Popular Question Documentation User Custodian Custodian Census Custodian Yearling,NULL,NULL,0,NULL,NULL 26086,1818272,335974,Nice Answer Yearling Citizen Patrol Custodian Custodian Yearling Caucus Popular Question Documentation User Custodian Custodian Census Custodian Yearling,NULL,NULL,0,NULL,NULL 26087,164533,181232,NULL,NULL,NULL,0,NULL,NULL 26088,2391,429521,Necromancer Popular Question Popular Question Revival Yearling Guru Nice Answer Notable Question Nice Answer Notable Question Revival Announcer Nice Question Caucus Revival Announcer Good Answer Yearling Announcer Announcer Necromancer Census Good Answer Caucus Announcer Nice Answer Enlightened Nice Answer Yearling Popular Question Popular Question Notable Question,NULL,pIf your running this on machine with mac os you can use the following ppre code usr libexec PlistBuddy Print Entitlements application identifier dev stdin lt lt lt security cms path to mobileprovision code pre Oh thanks for the security cms path to mobileprovision tip was getting lot of Unexpected character at line errors before,0,NULL,NULL 26089,201629,708517,NULL,NULL,NULL,0,NULL,NULL 26090,1592874,950548,Scholar Supporter Autobiographer Editor Informed,NULL,NULL,0,NULL,NULL 26091,96355,1090745,Nice Answer Enlightened Yearling Nice Answer Enlightened Informed Necromancer Yearling,NULL,NULL,0,NULL,NULL 26092,9123,802158,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26093,842139,475524,NULL,NULL,NULL,0,NULL,NULL 26094,139231,624922,Notable Question,NULL,NULL,0,NULL,NULL 26095,49469,1303382,NULL,NULL,NULL,0,NULL,NULL 26096,46047,40876,Popular Question Popular Question Taxonomist Nice Question Yearling Good Answer Yearling Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 26097,194991,846944,NULL,NULL,NULL,0,NULL,NULL 26098,76675,136402,Yearling,NULL,NULL,0,NULL,NULL 26099,35391,707094,Necromancer Yearling Census Self-Learner Enthusiast Popular Question Yearling,NULL,NULL,0,NULL,NULL 26100,441116,1026336,NULL,NULL,NULL,0,NULL,NULL 26101,523499,847419,NULL,NULL,NULL,0,NULL,NULL 26102,357468,1118532,NULL,NULL,NULL,0,NULL,NULL 26103,1645649,337866,NULL,NULL,NULL,0,NULL,NULL 26104,307012,425783,NULL,NULL,NULL,0,NULL,NULL 26105,223973,316799,Nice Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Popular Question asp.net-mvc-4 Notable Question Nice Answer Popular Question Copy Editor Famous Question Yearling Good Answer Guru Popular Question Popular Question Popular Question Nice Answer Nice Answer Documentation Beta Documentation Pioneer Popular Question jquery Good Question Nice Question asp.net-mvc Good Answer c# Good Answer Famous Question Necromancer Caucus Constituent Taxonomist Famous Question Notable Question Nice Answer Enlightened Good Answer razor Census Nice Answer Nice Answer Enlightened Notable Question Popular Question Notable Question Nice Answer Nice Answer Notable Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Notable Question Popular Question Popular Question Caucus Notable Question Constituent Nice Answer Reviewer Popular Question Popular Question Notable Question Guru Documentation User Nice Answer Enlightened Good Question Good Answer Popular Question Nice Answer Enlightened Caucus Good Answer Constituent Good Answer Popular Question Yearling Nice Answer Notable Question Good Answer Popular Question Announcer Nice Answer Enlightened Good Answer Great Answer Famous Question Famous Question,NULL,,0,, 26106,1085548,83122,Yearling Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 26107,174833,97082,Good Question Nice Question Popular Question Famous Question Nice Question Yearling Nice Question Popular Question Nice Answer Notable Question Popular Question Famous Question Famous Question Good Question c# Popular Question Good Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26108,34166,258489,Civic Duty Critic Documentation User Necromancer,NULL,NULL,0,NULL,NULL 26109,137928,194914,Popular Question,NULL,NULL,0,NULL,NULL 26110,1438783,639139,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 26111,460166,785239,NULL,NULL,NULL,0,NULL,NULL 26112,191663,946726,NULL,NULL,NULL,0,NULL,NULL 26113,998364,92756,Nice Answer Suffrage Necromancer Electorate Yearling Necromancer Announcer Nice Answer Yearling Popular Question Announcer Good Answer Caucus Yearling Yearling Yearling,NULL,NULL,1,NULL,How do install NuGet package nupkg file locally visual studio nuget pI have some nupkg files from book How can install them pp img src https stack imgur com RMgIm jpg alt Can 39 see my packages pFor nupkg files like to use ppre codeInstall Package Path To Some File nupkg code pre 26114,348120,873106,Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26115,3001,410881,NULL,NULL,NULL,0,NULL,NULL 26116,52051,399403,Nice Question Enthusiast Census Caucus Famous Question Census,NULL,NULL,0,NULL,NULL 26117,177410,889389,Guru Yearling,NULL,NULL,0,NULL,NULL 26118,595858,1506717,Yearling,NULL,NULL,0,NULL,NULL 26119,252746,555423,NULL,NULL,NULL,0,NULL,NULL 26120,1024838,1049939,NULL,NULL,NULL,0,NULL,NULL 26121,19087,282729,Notable Question Yearling Notable Question Notable Question Nice Answer Famous Question Cleanup Famous Question Popular Question Good Question Good Question Yearling Nice Answer Popular Question Popular Question Nice Question Popular Question Announcer Nice Question Nice Answer Announcer Good Question Good Answer Announcer Popular Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 26122,62915,814460,Notable Question,NULL,NULL,0,NULL,NULL 26123,263624,60617,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Question Great Answer Nice Answer Popular Question Good Answer Revival Notable Question Yearling Nice Answer Necromancer Nice Answer Enlightened Notable Question Good Answer Enlightened Great Answer Good Answer Yearling Good Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26124,1115,545443,Teacher,NULL,NULL,0,NULL,NULL 26125,861384,1077677,Notable Question Nice Answer Critic Yearling Popular Question Commentator Nice Question Famous Question,NULL,NULL,0,NULL,NULL 26126,267207,138526,Famous Question Custodian Citizen Patrol Popular Question Revival Yearling Self-Learner Nice Question Autobiographer Popular Question Notable Question Necromancer Yearling Caucus Notable Question Excavator,NULL,NULL,0,NULL,NULL 26127,281892,250289,NULL,NULL,NULL,0,NULL,NULL 26128,73601,225200,Yearling Nice Question Notable Question Notable Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 26129,134728,639895,Yearling Yearling Caucus Necromancer Popular Question Caucus Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 26130,135511,88898,Nice Question Famous Question Yearling Nice Answer Enlightened Nice Question Famous Question Notable Question Notable Question Popular Question Yearling Famous Question Guru Great Question Nice Question Announcer Nice Answer Enlightened Yearling Nice Question Popular Question Popular Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 26131,54824,1302113,NULL,NULL,NULL,0,NULL,NULL 26132,510831,30727,Famous Question Notable Question Revival Enthusiast Caucus Census,NULL,NULL,0,NULL,NULL 26133,17715,62383,Notable Question Yearling Promoter Nice Question Announcer Benefactor Favorite Question Favorite Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 26134,13813,9371,Guru Nice Answer Yearling Nice Answer Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 26135,199356,859788,NULL,NULL,NULL,0,NULL,NULL 26136,429657,773852,NULL,NULL,NULL,0,NULL,NULL 26137,441120,724445,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26138,16945,1019816,NULL,NULL,NULL,0,NULL,NULL 26139,382194,195186,Notable Question iphone Good Answer Nice Answer Enlightened Yearling Caucus Nice Answer Yearling Informed Guru Yearling,NULL,NULL,0,NULL,NULL 26140,31806,28668,Favorite Question Good Question,NULL,NULL,0,NULL,NULL 26141,164867,130901,NULL,NULL,NULL,0,NULL,NULL 26142,186936,202244,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26143,434562,145019,Popular Question Yearling Notable Question Peer Pressure Yearling Yearling,NULL,NULL,0,NULL,NULL 26144,192947,548767,Nice Answer,NULL,NULL,0,NULL,NULL 26145,163262,607220,NULL,NULL,NULL,0,NULL,NULL 26146,636845,1410736,NULL,NULL,NULL,0,NULL,NULL 26147,311755,688673,NULL,NULL,NULL,0,NULL,NULL 26148,35222,493645,NULL,NULL,NULL,0,NULL,NULL 26149,18515,819474,Supporter Commentator Curious Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Nice Question Nice Question Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 26150,720571,1066910,NULL,NULL,NULL,0,NULL,NULL 26151,206055,902582,Commentator,NULL,NULL,0,NULL,NULL 26152,221363,232572,NULL,NULL,NULL,0,NULL,NULL 26153,281347,831465,Popular Question Necromancer Student Commentator Necromancer Yearling Caucus Necromancer Critic Tumbleweed Revival Caucus Constituent Popular Question Yearling Nice Answer Necromancer Custodian Popular Question,NULL,NULL,0,NULL,NULL 26154,1504840,1144494,NULL,NULL,NULL,0,NULL,NULL 26155,550865,611609,Scholar,NULL,NULL,0,NULL,NULL 26156,2885857,1391600,NULL,NULL,NULL,0,NULL,NULL 26157,29453,383572,NULL,NULL,NULL,0,NULL,NULL 26158,188340,32283,NULL,NULL,NULL,0,NULL,NULL 26159,10096,690328,Notable Question Caucus Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 26160,94363,646735,Great Answer Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Yearling Nice Answer Enlightened Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26161,4048,1320635,NULL,NULL,NULL,0,NULL,NULL 26162,576560,1302333,NULL,NULL,NULL,0,NULL,NULL 26163,383147,1384298,Informed,NULL,NULL,0,NULL,NULL 26164,202918,905686,Nice Question Notable Question Necromancer Notable Question Nice Question Notable Question Popular Question Organizer Yearling Notable Question Famous Question Caucus Announcer Yearling Announcer Necromancer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 26165,888113,1302800,NULL,NULL,NULL,0,NULL,NULL 26166,57189,41455,Good Answer Popular Question Talkative Nice Answer Enlightened Nice Answer Notable Question Caucus Constituent Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Census Guru Nice Answer Enlightened Caucus Nice Answer Enlightened Documentation User Notable Question Yearling Census Good Answer Caucus Constituent Good Answer Excavator Yearling,NULL,NULL,0,NULL,NULL 26167,1424,970490,NULL,NULL,NULL,0,NULL,NULL 26168,903648,796790,Necromancer Nice Answer Yearling Caucus Necromancer Yearling Good Answer Nice Answer Editor,NULL,NULL,0,NULL,NULL 26169,1166092,347945,Popular Question Popular Question Enthusiast Notable Question Popular Question Popular Question Notable Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 26170,7366643,347945,Popular Question Popular Question Enthusiast Notable Question Popular Question Popular Question Notable Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 26171,25893,127059,Nice Answer Nice Answer mysql Good Answer Good Answer Popular Question Nice Answer Enlightened Yearling Guru lambda vb.net Popular Question Good Answer Nice Answer Enlightened Famous Question Good Answer Good Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Populist Nice Answer Populist Nice Answer c Nice Answer Announcer Guru Nice Answer Good Answer Nice Answer Disciplined Nice Answer winforms Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Yearling c++ Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 26172,68886,1290424,Informed Teacher,NULL,NULL,0,NULL,NULL 26173,297862,195957,NULL,NULL,NULL,0,NULL,NULL 26174,148378,620935,Nice Answer Custodian Caucus Good Answer Student Scholar Yearling Caucus Self-Learner,NULL,NULL,0,NULL,NULL 26175,891346,1533612,Nice Question Yearling Popular Question Critic Nice Answer Caucus Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26176,28943,822688,NULL,NULL,NULL,0,NULL,NULL 26177,170386,909970,NULL,NULL,NULL,0,NULL,NULL 26178,385472,1217926,NULL,NULL,NULL,0,NULL,NULL 26179,152250,243602,Notable Question Notable Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 26180,3151137,1424145,NULL,NULL,NULL,0,NULL,NULL 26181,261628,1424145,NULL,NULL,NULL,0,NULL,NULL 26182,3490979,1424145,NULL,NULL,NULL,0,NULL,NULL 26183,704915,792416,Nice Answer Yearling Good Answer Nice Answer Enlightened Yearling Necromancer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 26184,4571,972454,NULL,NULL,NULL,0,NULL,NULL 26185,524187,1030940,NULL,NULL,NULL,0,NULL,NULL 26186,580629,1347805,Notable Question,NULL,NULL,0,NULL,NULL 26187,273967,1212852,NULL,NULL,NULL,0,NULL,NULL 26188,417560,653067,NULL,NULL,NULL,0,NULL,NULL 26189,262291,1049935,NULL,NULL,NULL,0,NULL,NULL 26190,119836,864821,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 26191,1345887,795353,NULL,NULL,NULL,0,NULL,NULL 26192,67465,14664,Nice Answer Caucus Constituent Census Nice Question Yearling Nice Answer Caucus Constituent Popular Question Famous Question,NULL,NULL,0,NULL,NULL 26193,121457,228515,Self-Learner Nice Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26194,1896194,1215474,Popular Question Yearling Yearling Notable Question Great Question,NULL,NULL,0,NULL,NULL 26195,350163,541301,NULL,NULL,NULL,0,NULL,NULL 26196,10536,1156890,NULL,NULL,NULL,0,NULL,NULL 26197,60557,1420934,NULL,NULL,NULL,0,NULL,NULL 26198,288862,573200,NULL,NULL,NULL,0,NULL,NULL 26199,326837,626078,NULL,NULL,NULL,0,NULL,NULL 26200,543523,408489,Notable Question Nice Question Popular Question Good Question Notable Question Popular Question Yearling Notable Question Notable Question Nice Question Necromancer Famous Question Guru Notable Question Nice Question Yearling Popular Question Notable Question Notable Question Notable Question Good Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26201,450124,1134183,NULL,NULL,NULL,0,NULL,NULL 26202,750837,923926,NULL,NULL,NULL,0,NULL,NULL 26203,86087,1514841,Popular Question,NULL,NULL,0,NULL,NULL 26204,328600,868401,Tumbleweed Promoter Organizer Caucus Caucus Favorite Question Yearling,NULL,NULL,0,NULL,NULL 26205,22684,499428,Critic Editor Yearling Caucus Commentator Informed Autobiographer Organizer Nice Answer,NULL,NULL,0,NULL,NULL 26206,2948,1325882,NULL,NULL,NULL,0,NULL,NULL 26207,1001915,835294,NULL,NULL,NULL,0,NULL,NULL 26208,606033,598200,Yearling Necromancer Curious Nice Question Yearling Famous Question Custodian Revival Excavator Custodian Yearling,NULL,pYou re correct if the user can tap button in your alert the alert will be dismissed So you want to prevent the user from tapping the button It all just matter of disabling your UIAlertAction buttons If an alert action is disabled the user can tap it to dismiss ppTo combine this with text field validation use text field delegate method or action method configured in the text field configuration handler when you create it to enable disable the UIAlertActions appropriately depending on what text has or hasn been entered ppHere an example We created the text field like this ppre codealert addTextFieldWithConfigurationHandler tf UITextField in tf addTarget self action textChanged forControlEvents EditingChanged code prepWe have Cancel action and an OK action and we brought the OK action into the world disabled ppre code alert actions as UIAlertAction enabled false code prepSubsequently the user can tap OK unless there is some actual text in the text field ppre codefunc textChanged sender AnyObject let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp nextResponder let alert resp as UIAlertController alert actions as UIAlertAction enabled tf text code prep strongEDIT strong Here the current Swift and later version of the above code ppre codealert addTextField tf in tf addTarget self action selector self textChanged for editingChanged code prepand ppre codealert actions isEnabled false code prepand ppre code func textChanged sender Any let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp next let alert resp as UIAlertController alert actions isEnabled tf text code pre Current Dec 2016 version of the code it would be nice for such good answer to see directly here in StackOverflow the updated version of the code,0,NULL,NULL 26209,1845632,1235422,Self-Learner Necromancer Caucus Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 26210,837126,987627,NULL,NULL,NULL,0,NULL,NULL 26211,545218,1113829,Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26212,1714889,1133540,NULL,NULL,NULL,0,NULL,NULL 26213,346090,297979,Teacher,NULL,NULL,0,NULL,NULL 26214,766789,245526,Supporter,NULL,NULL,0,NULL,NULL 26215,487886,1476819,Popular Question Revival Popular Question Necromancer Caucus Scholar Yearling Caucus Necromancer Critic,NULL,NULL,0,NULL,NULL 26216,2304468,117433,Civic Duty Popular Question Yearling Guru Yearling Good Answer Good Question Peer Pressure Yearling Nice Question Famous Question Notable Question Tag Editor Excavator Nice Question,NULL,NULL,0,NULL,NULL 26217,2836529,46407,Commentator,NULL,NULL,0,NULL,NULL 26218,349606,395124,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26219,535065,1502406,Teacher,NULL,NULL,0,NULL,NULL 26220,326555,472006,Famous Question Famous Question Famous Question Famous Question Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 26221,42236,369813,NULL,NULL,NULL,0,NULL,NULL 26222,768668,180524,Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Promoter Benefactor Yearling Popular Question Nice Question Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26223,39123,1320202,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 26224,93022,434793,NULL,NULL,NULL,0,NULL,NULL 26225,7067,988178,NULL,NULL,NULL,0,NULL,NULL 26226,131634,1491762,NULL,NULL,NULL,0,NULL,NULL 26227,246349,189702,Caucus Nice Answer,NULL,,0,, 26228,13816,1527698,NULL,NULL,NULL,0,NULL,NULL 26229,135017,547491,Yearling Revival Promoter Benefactor Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 26230,292118,1151683,Popular Question Documentation User Famous Question Announcer,NULL,NULL,0,NULL,NULL 26231,448666,1105158,NULL,NULL,NULL,0,NULL,NULL 26232,69269,560441,Yearling Nice Answer Yearling Popular Question Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26233,30373,7595,Favorite Question Good Answer Nice Answer Good Question Nice Answer Famous Question Good Question Good Answer Famous Question Good Answer Nice Answer Favorite Question Nice Answer Enlightened Popular Question Favorite Question Nice Question Great Question Notable Question Nice Answer Popular Question Guru Guru Yearling Popular Question Nice Answer Enlightened Favorite Question Popular Question Famous Question Famous Question Good Question Guru Popular Question Notable Question Notable Question Famous Question Nice Answer Enlightened Popular Question Good Question Guru Notable Question Good Answer Good Question Notable Question Favorite Question Popular Question Good Question Notable Question Nice Answer Nice Answer Popular Question Nice Answer Yearling Notable Question Documentation User Popular Question Popular Question Guru Famous Question Nice Answer Enlightened Great Question Good Answer Popular Question Revival Great Answer Popular Question Stellar Question Announcer Famous Question Good Answer Great Question Famous Question Yearling Guru Famous Question Famous Question,NULL,NULL,0,NULL,NULL 26234,136785,1330741,Necromancer Guru Yearling Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer ruby Yearling Good Answer,NULL,NULL,0,NULL,NULL 26235,323885,1024425,NULL,NULL,NULL,0,NULL,NULL 26236,143903,1174161,NULL,NULL,NULL,0,NULL,NULL 26237,566134,1191904,NULL,NULL,NULL,0,NULL,NULL 26238,93509,708891,NULL,NULL,NULL,0,NULL,NULL 26239,177408,371644,NULL,NULL,NULL,0,NULL,NULL 26240,169906,301889,NULL,NULL,NULL,0,NULL,NULL 26241,86786,757850,Necromancer Great Answer Yearling Good Answer Revival Caucus Constituent Nice Answer Yearling Announcer Enthusiast Caucus Constituent Custodian Caucus Constituent Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 26242,390552,282793,Teacher Popular Question,NULL,NULL,0,NULL,NULL 26243,431261,1243916,NULL,NULL,NULL,0,NULL,NULL 26244,160606,290740,NULL,NULL,NULL,0,NULL,NULL 26245,60598,1135227,NULL,NULL,NULL,0,NULL,NULL 26246,150437,1135227,NULL,NULL,NULL,0,NULL,NULL 26247,132833,226142,Enthusiast Popular Question Yearling,NULL,NULL,0,NULL,NULL 26248,590628,134410,NULL,NULL,NULL,0,NULL,NULL 26249,31940,756704,Nice Answer Revival Good Answer Yearling Popular Question Yearling Populist Popular Question Necromancer Custodian Nice Question Yearling,NULL,NULL,0,NULL,NULL 26250,146399,1492,Popular Question Yearling Caucus Constituent Nice Question Popular Question Nice Question Famous Question Good Question Yearling Popular Question Yearling Great Question,NULL,Is there an Eclipse plugin to run system shell in the Console shell eclipse plugin pDo you know of any Eclipse plugin to run system shell in the included console It would be awesome Dolphin KDE file navigator has this feature you can press F4 and console shows located on the directory you are standing ppIt would be awesome to have similar feature on Eclipse with the shell located on the directory of the project file you are working on ppDoes this plugin exist ppIf not would it be too complicated to code such plugin have no idea about eclipse plugin development yet Yeah don use Eclipse anymore but it Yes here one of them kind of question It doesn ask which one is the best or if it good practice Also the accepted answer is pretty specific,0,NULL,NULL 26251,393260,376366,Notable Question Notable Question Nice Answer Great Question Nice Answer Enlightened Popular Question Guru Nice Answer Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Announcer Notable Question Notable Question Notable Question Notable Question Good Answer Revival Popular Question Taxonomist Notable Question Nice Answer Enlightened Necromancer Famous Question Nice Answer Good Answer Popular Question Nice Answer Popular Question Guru Nice Answer Announcer Yearling Nice Question Notable Question Announcer Good Answer Popular Question Popular Question Notable Question Guru Announcer Nice Question Notable Question Nice Answer Enlightened Announcer Stellar Question Yearling Notable Question Notable Question Nice Answer Enlightened Necromancer,NULL,pHere bash snippet use to perform exponential back off ppre code Retries command configurable number of times with backoff The retry count is given by ATTEMPTS default the initial backoff timeout is given by TIMEOUT in seconds default Successive backoffs double the timeout function with backoff local max attempts ATTEMPTS local timeout TIMEOUT local attempt local exitCode while attempt lt max attempts do if then return else exitCode fi echo Failure Retrying in timeout gt amp sleep timeout attempt attempt timeout timeout done if exitCode then echo You ve failed me for the last time gt amp fi return exitCode code prepThen use it in conjunction with any command that properly sets failing exit code ppre codewith backoff curl http monkeyfeathers example com code pre The message ends with dots This fixes that and adds the unit echo Failure Retrying in timeout pHere bash snippet use to perform exponential back off ppre code Retries command configurable number of times with backoff The retry count is given by ATTEMPTS default the initial backoff timeout is given by TIMEOUT in seconds default Successive backoffs double the timeout function with backoff local max attempts ATTEMPTS local timeout TIMEOUT local attempt local exitCode while attempt lt max attempts do if then return else exitCode fi echo Failure Retrying in timeout gt amp sleep timeout attempt attempt timeout timeout done if exitCode then echo You ve failed me for the last time gt amp fi return exitCode code prepThen use it in conjunction with any command that properly sets failing exit code ppre codewith backoff curl http monkeyfeathers example com code pre Use attempt to perform exactly the number of attempts defined by ATTEMPTS With attempts it does one extra See https gist github com fernandoacorreia b4fa9ae88c67fa6759d271b743e96063,0,NULL,NULL 26252,159739,1428809,NULL,NULL,NULL,0,NULL,NULL 26253,363088,1543263,Commentator Yearling Necromancer Yearling Citizen Patrol Promoter Self-Learner Caucus Popular Question Popular Question Notable Question Popular Question Caucus Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 26254,451396,1193798,Notable Question Teacher Supporter Nice Question Famous Question,NULL,NULL,0,NULL,NULL 26255,153871,575734,Popular Question Yearling Popular Question Necromancer Notable Question Organizer Yearling Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26256,35505,646118,NULL,NULL,NULL,0,NULL,NULL 26257,337452,407608,NULL,NULL,NULL,0,NULL,NULL 26258,1341826,899751,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26259,255445,1297251,NULL,NULL,NULL,0,NULL,NULL 26260,129599,1284458,javascript Yearling Tumbleweed Custodian Great Answer Caucus Popular Question Custodian Citizen Patrol Proofreader Good Question Custodian Reviewer Census Strunk & White Yearling Famous Question Populist Yearling Notable Question Custodian,NULL,strongAnswer strong ppre codefunction dec2bin dec return dec gt gt gt toString dec2bin 1dec2bin 11111111111111111111111111111111dec2bin 256 100000000dec2bin 256 11111111111111111111111100000000 code prehrpYou can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number toString rel noreferrer codeNumber toString code function but it has some problems when representing negative numbers For example code toString code output is code code ppTo fix this issue you can use the unsigned right shift bitwise operator href https developer mozilla org en docs Web JavaScript Reference Operators Bitwise Operators Unsigned right shift rel noreferrer code gt gt gt code to coerce your number to an unsigned integer ppIf you run code gt gt gt toString code you will shift your number bits to the right which doesn change the number itself but it will be represented as an unsigned integer The code above will output code 11111111111111111111111111111111 code correctly pp href https stackoverflow com questions 16155592 negative numbers to binary string This question has further explanation pblockquote code gt gt gt code right logical shift coerces its arguments to unsigned integers which is why you get the 32 bit two complement representation of blockquotehrp strongNote strong this answer expects Number as argument so convert it accordingly pp strongNote strong the result is the string strongwithout strong leading zeros so apply padding as you need 11111111111111111111111111111101 on Firefox and Chrome Why strongAnswer strong ppre codefunction dec2bin dec return dec gt gt gt toString dec2bin 1dec2bin 11111111111111111111111111111111dec2bin 256 100000000dec2bin 256 11111111111111111111111100000000 code prehrpYou can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number toString rel noreferrer codeNumber toString code function but it has some problems when representing negative numbers For example code toString code output is code code ppTo fix this issue you can use the unsigned right shift bitwise operator href https developer mozilla org en docs Web JavaScript Reference Operators Bitwise Operators Unsigned right shift rel noreferrer code gt gt gt code to coerce your number to an unsigned integer ppIf you run code gt gt gt toString code you will shift your number bits to the right which doesn change the number itself but it will be represented as an unsigned integer The code above will output code 11111111111111111111111111111111 code correctly pp href https stackoverflow com questions 16155592 negative numbers to binary string This question has further explanation pblockquote code gt gt gt code right logical shift coerces its arguments to unsigned integers which is why you get the 32 bit two complement representation of blockquotehrp strongNote strong this answer expects Number as argument so convert it accordingly pp strongNote strong the result is the string strongwithout strong leading zeros so apply padding as you need Yeah know it is the correct answer just didn get why test the answer now ve tested when posted strongAnswer strong ppre codefunction dec2bin dec return dec gt gt gt toString dec2bin 1dec2bin 11111111111111111111111111111111dec2bin 256 100000000dec2bin 256 11111111111111111111111100000000 code prehrpYou can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number toString rel noreferrer codeNumber toString code function but it has some problems when representing negative numbers For example code toString code output is code code ppTo fix this issue you can use the unsigned right shift bitwise operator href https developer mozilla org en docs Web JavaScript Reference Operators Bitwise Operators Unsigned right shift rel noreferrer code gt gt gt code to coerce your number to an unsigned integer ppIf you run code gt gt gt toString code you will shift your number bits to the right which doesn change the number itself but it will be represented as an unsigned integer The code above will output code 11111111111111111111111111111111 code correctly pp href https stackoverflow com questions 16155592 negative numbers to binary string This question has further explanation pblockquote code gt gt gt code right logical shift coerces its arguments to unsigned integers which is why you get the 32 bit two complement representation of blockquotehrp strongNote strong this answer expects Number as argument so convert it accordingly pp strongNote strong the result is the string strongwithout strong leading zeros so apply padding as you need ve edited the question think it is much better now Fell free to improve it if you want strongAnswer strong ppre codefunction dec2bin dec return dec gt gt gt toString dec2bin 1dec2bin 11111111111111111111111111111111dec2bin 256 100000000dec2bin 256 11111111111111111111111100000000 code prehrpYou can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number toString rel noreferrer codeNumber toString code function but it has some problems when representing negative numbers For example code toString code output is code code ppTo fix this issue you can use the unsigned right shift bitwise operator href https developer mozilla org en docs Web JavaScript Reference Operators Bitwise Operators Unsigned right shift rel noreferrer code gt gt gt code to coerce your number to an unsigned integer ppIf you run code gt gt gt toString code you will shift your number bits to the right which doesn change the number itself but it will be represented as an unsigned integer The code above will output code 11111111111111111111111111111111 code correctly pp href https stackoverflow com questions 16155592 negative numbers to binary string This question has further explanation pblockquote code gt gt gt code right logical shift coerces its arguments to unsigned integers which is why you get the 32 bit two complement representation of blockquotehrp strongNote strong this answer expects Number as argument so convert it accordingly pp strongNote strong the result is the string strongwithout strong leading zeros so apply padding as you need OK do as you wish strongAnswer strong ppre codefunction dec2bin dec return dec gt gt gt toString dec2bin 1dec2bin 11111111111111111111111111111111dec2bin 256 100000000dec2bin 256 11111111111111111111111100000000 code prehrpYou can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number toString rel noreferrer codeNumber toString code function but it has some problems when representing negative numbers For example code toString code output is code code ppTo fix this issue you can use the unsigned right shift bitwise operator href https developer mozilla org en docs Web JavaScript Reference Operators Bitwise Operators Unsigned right shift rel noreferrer code gt gt gt code to coerce your number to an unsigned integer ppIf you run code gt gt gt toString code you will shift your number bits to the right which doesn change the number itself but it will be represented as an unsigned integer The code above will output code 11111111111111111111111111111111 code correctly pp href https stackoverflow com questions 16155592 negative numbers to binary string This question has further explanation pblockquote code gt gt gt code right logical shift coerces its arguments to unsigned integers which is why you get the 32 bit two complement representation of blockquotehrp strongNote strong this answer expects Number as argument so convert it accordingly pp strongNote strong the result is the string strongwithout strong leading zeros so apply padding as you need Nope is binary not is bitshift operator which shift bits to right In this case it will just coerce the number to unsigned 32 bit integer,0,NULL,NULL 26261,161987,1001133,Nice Answer,NULL,NULL,0,NULL,NULL 26262,360508,277673,NULL,NULL,NULL,0,NULL,NULL 26263,169146,1566806,Popular Question Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26264,23090,335705,Notable Question Caucus Constituent Enthusiast Caucus,NULL,NULL,0,NULL,NULL 26265,375890,938853,NULL,NULL,NULL,0,NULL,NULL 26266,36531,661280,NULL,NULL,NULL,0,NULL,NULL 26267,7886869,661280,NULL,NULL,NULL,0,NULL,NULL 26268,389844,1554723,Revival,NULL,NULL,0,NULL,NULL 26269,389851,168839,Popular Question Notable Question Yearling Critic Yearling Necromancer Yearling Caucus Nice Answer Enthusiast Civic Duty Popular Question Custodian Good Answer Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Census javascript Enlightened Necromancer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 26270,1221472,963492,Popular Question,NULL,NULL,0,NULL,NULL 26271,87458,833904,NULL,NULL,NULL,0,NULL,NULL 26272,38745,1280219,Teacher Popular Question Supporter Informed Autobiographer Documentation User,NULL,NULL,0,NULL,NULL 26273,277234,1073728,NULL,NULL,NULL,0,NULL,NULL 26274,181369,588379,Quorum Critic Informed Revival,NULL,NULL,0,NULL,NULL 26275,351782,701528,NULL,NULL,NULL,0,NULL,NULL 26276,187408,731254,NULL,NULL,NULL,0,NULL,NULL 26277,668393,797437,Notable Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 26278,48413,179199,NULL,NULL,NULL,0,NULL,NULL 26279,856489,938554,NULL,NULL,NULL,0,NULL,NULL 26280,4076552,1232131,Notable Question Popular Question Popular Question Yearling Popular Question Good Answer Necromancer Custodian Notable Question Caucus Constituent Nice Question Famous Question Yearling Inquisitive Popular Question Nice Answer Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question android Notable Question Nice Answer Census Yearling Popular Question Caucus Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 26281,96040,1492865,NULL,NULL,NULL,0,NULL,NULL 26282,115818,1161184,NULL,NULL,NULL,0,NULL,NULL 26283,229124,569562,NULL,NULL,NULL,0,NULL,NULL 26284,598177,649701,NULL,NULL,NULL,0,NULL,NULL 26285,68762,4086,Good Answer Good Answer Notable Question Good Answer Famous Question Nice Answer Great Answer Nice Answer Nice Answer Enlightened Generalist Good Question Good Question Famous Question Nice Answer Notable Question Guru Good Question Guru Yearling Nice Answer Good Question Necromancer Nice Answer Caucus Constituent Revival Guru Good Answer Nice Answer Nice Answer Nice Answer Famous Question Nice Answer Famous Question Notable Question Good Answer Nice Answer Nice Question Good Answer Nice Answer Guru Nice Answer Enlightened Favorite Question Guru Good Answer Great Answer Famous Question Good Answer Nice Answer Popular Question Nice Answer Good Answer stl Caucus Nice Answer Enlightened Famous Question Constituent Yearling Nice Answer Nice Question Documentation User Good Question Census Necromancer Necromancer Good Answer Caucus Constituent Announcer Popular Question Nice Answer Nice Question Nice Answer Good Answer Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 26286,16917,985549,Nice Answer,NULL,NULL,0,NULL,NULL 26287,74703,1150192,Notable Question,NULL,NULL,0,NULL,NULL 26288,15612,18475,Announcer Good Answer Announcer Popular Question Announcer Famous Question Necromancer Yearling Announcer Nice Answer Enlightened Good Answer Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Yearling Announcer Announcer Announcer Announcer Notable Question Guru Announcer Announcer Nice Answer Enlightened Announcer Popular Question Announcer Yearling Announcer Guru Nice Answer Enlightened,NULL,pYou can find the symlinks by looking for files that have mode of code120000 code possibly with this command ppre codegit ls files awk 120000 print code prepOnce you replace the links would recommend marking them as unchanged with codegit update index assume unchanged code rather than listing them in code git info exclude code that is correct Also this was over years ago Read the comments on my particular use case it probably doesn apply to you,0,NULL,NULL 26289,81730,881743,Announcer Revival Yearling Good Answer Caucus Commentator Announcer Yearling Scholar Announcer,NULL,pI had the same problem as you then tried adding this code ppre code bin bash eval ssh agent ssh add ssh rsa code prepinto file code bashrc code in my home directory And it works Thanks,0,NULL,NULL 26290,467913,1430618,NULL,NULL,NULL,0,NULL,NULL 26291,194277,611678,Yearling Famous Question Yearling Notable Question Promoter Benefactor Nice Question Excavator Critic Notable Question Good Question,NULL,NULL,0,NULL,NULL 26292,286352,702758,Informed Documentation User,NULL,NULL,0,NULL,NULL 26293,180031,642616,Yearling Commentator Good Answer Caucus Announcer Necromancer Yearling Necromancer Caucus Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 26294,186854,1112106,Yearling Famous Question Popular Question Nice Question Popular Question Nice Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26295,1839184,1285501,NULL,NULL,NULL,0,NULL,NULL 26296,414542,1414326,NULL,NULL,NULL,0,NULL,NULL 26297,8668,1097747,NULL,NULL,NULL,0,NULL,NULL 26298,14973,932945,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 26299,386918,1200089,Supporter,NULL,NULL,0,NULL,NULL 26300,18928,947390,Yearling,NULL,NULL,0,NULL,NULL 26301,158174,244694,NULL,NULL,NULL,0,NULL,NULL 26302,96784,1210641,NULL,NULL,NULL,0,NULL,NULL 26303,64525,986879,NULL,NULL,NULL,0,NULL,NULL 26304,152835,59855,NULL,NULL,NULL,0,NULL,NULL 26305,51266,275615,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26306,280303,596537,NULL,NULL,NULL,0,NULL,NULL 26307,1557179,1217592,Necromancer,NULL,NULL,0,NULL,NULL 26308,398118,877234,NULL,NULL,NULL,0,NULL,NULL 26309,768623,183602,NULL,NULL,NULL,0,NULL,NULL 26310,7842732,183602,NULL,NULL,NULL,0,NULL,NULL 26311,290842,60381,Yearling Good Answer Nice Answer Yearling Yearling Great Answer Good Answer,NULL,NULL,0,NULL,NULL 26312,50303,1550221,Autobiographer Informed,NULL,NULL,0,NULL,NULL 26313,631701,553016,NULL,NULL,NULL,0,NULL,NULL 26314,354833,677697,Yearling,NULL,NULL,0,NULL,NULL 26315,6486169,681878,Notable Question Enthusiast Notable Question Yearling Famous Question Caucus Popular Question Popular Question Notable Question Caucus Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26316,367654,151326,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 26317,33305,515799,NULL,NULL,NULL,0,NULL,NULL 26318,102203,1093528,Nice Question Nice Answer Enlightened Guru Popular Question Good Answer Famous Question Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Socratic Nice Answer Enlightened Notable Question Nice Answer Nice Answer Enlightened Good Answer Popular Question Revival Necromancer jackson Nice Answer Popular Question Notable Question Nice Answer Notable Question Popular Question Announcer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Guru mockito Popular Question Good Answer Nice Answer Nice Answer Nice Question Popular Question Guru Nice Question Enlightened Nice Answer Popular Question Notable Question Popular Question Popular Question Announcer Nice Answer Enlightened Nice Answer Notable Question Notable Question Popular Question nio Notable Question Nice Answer Enlightened Notable Question Nice Answer Popular Question Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened guava Nice Answer Enlightened Popular Question Favorite Question Great Answer Guru Great Answer Nice Answer Enlightened Guru Good Answer Generalist Popular Question Notable Question Great Answer Announcer Announcer Nice Question Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Popular Question Nice Question Nice Answer Enlightened Nice Answer Good Answer Popular Question Good Answer Nice Answer Good Answer Good Answer Popular Question Nice Answer Notable Question Good Answer Notable Question Notable Question unit-testing Popular Question Nice Answer arraylist Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Notable Question Good Answer Nice Answer Nice Answer Good Question Nice Answer Famous Question Nice Answer Nice Answer Enlightened Notable Question regex Nice Answer javascript Good Answer Good Answer Nice Answer Yearling Notable Question Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Guru Popular Question Nice Answer Great Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Popular Question Good Question Nice Answer Announcer Nice Answer Great Answer Good Answer Nice Question Nice Answer Enlightened Guru Good Answer Notable Question json Notable Question Nice Answer Enlightened Notable Question Guru Guru Popular Question Popular Question Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Nice Answer Guru Nice Answer Announcer Notable Question Good Question Famous Question Good Answer Nice Answer Enlightened Guru Guru Popular Question,NULL,How to make gradle generate valid pom xml file at the root of project for maven users java maven gradle compatibility pWhile only for two days now am definitely sold on using gradle for all of my Java projects and drop pom xml from the root of all my projects ppHowever would like to remain maven compatible in the sense that would like for gradle task to be able to generate suitable pom xml at the root of the project should the user want it ppAt this moment the only reference to pom xml have is in this section of the build gradle file this is with very few modifications what is found href http jedicoder blogspot fr 2011 11 automated gradle project deployment to html here ppre codeuploadArchives repositories mavenDeployer beforeDeployment MavenDeployment deployment gt signing signPom deployment repository url sonatypeRepoURI authentication userName sonatypeUsername password sonatypePassword pom project name name packaging bundle description description url projectURL scm url gitroscm connection gitroscm developerConnection gitrwscm licenses license name Lesser General Public License version or greater url http www gnu org licenses lgpl html distribution repo developers developer id whocares name whocares email whocares code prepHow would extract the codepom project code out of this very deeply nested construct into task which could generate pom xml by default the generated pom xml is in codebuild poms pom default xml code and looks quite good ppMore importantly is it possible to extract that codepom project code out of codeuploadArchives code while still being able to refer to it ppFull link to the build gradle file href https github com fge json schema core raw master build gradle here maven manages them automatically the dependency engines in maven and gradle are pretty similar in that regard What case did you encounter where dependencies were missing How can process Java stream with more than the default number of threads java multithreading java stream forkjoinpool pBy default Java streams are processed by href https docs oracle com javase docs api java util concurrent ForkJoinPool html rel nofollow noreferrer common thread pool which is constructed with default parameters As has been answered in href https stackoverflow com questions 21163108 custom thread pool in java parallel stream another question one can adjust these defaults by specifying custom pool or by setting the codejava util concurrent ForkJoinPool common parallelism code system parameter ppHowever ve been unable to increase the number of threads allocated to stream processing by any of these two methods As an example consider the program below which processes list of IP addresses contained in file specified in its first argument and outputs the resolved addresses Running this on file with about 13000 unique IP addresses see using emOracle Java Mission Control em as few as 16 threads Of these only five are codeForkJoinPool code workers Yet this particular task would well benefit from many more threads because threads spend most of the time waiting for DNS responses So my question is how can actually increase the number of threads used ppI ve tried the program on three environments these are the OS reported number of threads pulliJava SE Runtime Environment build 73 b02 on an core machine running Windows 17 threads liliJava SE Runtime Environment build 66 b17 on core machine running OS Darwin 15 23 threads liliopenjdk version 72 on 24 core machine running FreeBSD 11 44 threads li ulpre codeimport java io IOException import java net InetAddress import java net UnknownHostException import java nio file Files import java nio file Files import java nio file Path import java nio file Paths import java util concurrent ForkJoinPool Resolve IP addresses in file args using 100 threads public class Resolve100 Resolve the passed IP address into name static String addressName String ipAddress try return InetAddress getByName ipAddress getHostName catch UnknownHostException return ipAddress public static void main String args Path path Paths get args ForkJoinPool fjp new ForkJoinPool 100 try fjp submit try Files lines path parallel map line addressName line forEach System out println catch IOException System err println Failed get catch Exception System err println Failed code pre You should enclose Files lines in try with resources statement,0,NULL,NULL 26319,607038,1100443,NULL,NULL,NULL,0,NULL,NULL 26320,445111,939662,NULL,NULL,NULL,0,NULL,NULL 26321,107531,750284,Yearling,NULL,NULL,0,NULL,NULL 26322,886136,1330585,NULL,NULL,NULL,0,NULL,NULL 26323,108103,546593,Popular Question Self-Learner Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 26324,117728,1085017,NULL,NULL,NULL,0,NULL,NULL 26325,722814,727323,NULL,NULL,NULL,0,NULL,NULL 26326,159719,585592,Yearling Student Custodian Good Answer Good Answer Caucus Announcer Yearling Guru Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 26327,5920,1242282,NULL,NULL,NULL,0,NULL,NULL 26328,75817,1348934,NULL,NULL,NULL,0,NULL,NULL 26329,49965,77066,NULL,NULL,NULL,0,NULL,NULL 26330,354363,334939,Commentator Popular Question,NULL,NULL,0,NULL,NULL 26331,134111,316700,Nice Question Necromancer Good Answer Popular Question Notable Question Nice Answer Notable Question Popular Question Yearling Notable Question Nice Answer jquery Nice Answer Enlightened Nice Question Strunk & White Popular Question Good Question Popular Question Necromancer Famous Question Good Answer Announcer Popular Question Revival Necromancer ruby-on-rails-3 Necromancer Guru Good Answer Popular Question Caucus Popular Question Nice Question Famous Question Announcer Good Answer Necromancer Necromancer Notable Question javascript Popular Question Good Answer Nice Question Famous Question Notable Question Investor Nice Question Yearling Famous Question Nice Answer Famous Question Popular Question Announcer Populist Good Question Popular Question Announcer Popular Question Necromancer Good Question Announcer Nice Question Popular Question Popular Question Nice Answer Announcer Announcer Famous Question Necromancer Necromancer Popular Question Yearling Popular Question Great Answer Nice Answer Popular Question Announcer Notable Question Popular Question Popular Question Nice Question Nice Answer Nice Answer Great Answer Popular Question Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 26332,202355,522234,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26333,14924,566299,NULL,NULL,NULL,0,NULL,NULL 26334,321071,1049876,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26335,136678,223400,Popular Question Yearling,NULL,NULL,0,NULL,NULL 26336,64963,368405,Popular Question Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 26337,129960,372591,NULL,NULL,NULL,0,NULL,NULL 26338,614798,1123907,NULL,NULL,NULL,0,NULL,NULL 26339,565190,243225,Yearling Famous Question Famous Question Popular Question Popular Question Nice Answer Nice Question Notable Question Good Question Famous Question Notable Question Popular Question Popular Question Famous Question Good Question Popular Question Nice Answer Enlightened Nice Question Nice Question Yearling Popular Question Nice Answer Notable Question Famous Question Famous Question Good Question Good Question Popular Question Good Answer Good Question Good Question Notable Question Great Question Popular Question Popular Question Notable Question Nice Question Good Answer Yearling Notable Question Nice Question Caucus Popular Question Notable Question Famous Question Famous Question Good Question Nice Question Good Question Great Question Famous Question Famous Question Famous Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 26340,169616,709967,Tumbleweed Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 26341,430956,812321,Yearling Good Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 26342,8783730,812321,Yearling Good Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 26343,42660,1327727,Commentator Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 26344,78218,1257910,NULL,NULL,NULL,0,NULL,NULL 26345,491260,613468,Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 26346,403114,792412,NULL,NULL,NULL,0,NULL,NULL 26347,95145,1261777,Yearling Nice Answer Enlightened Good Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Yearling Popular Question Nice Answer Good Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26348,136013,1412984,Nice Answer Announcer Yearling Student Nice Answer Nice Answer Census Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 26349,128795,519510,Editor Scholar Student,NULL,NULL,0,NULL,NULL 26350,164753,628498,NULL,NULL,NULL,0,NULL,NULL 26351,839412,463230,Popular Question,NULL,NULL,0,NULL,NULL 26352,317456,1332183,NULL,NULL,NULL,0,NULL,NULL 26353,460010,353501,NULL,NULL,NULL,0,NULL,NULL 26354,916075,4144,Notable Question Good Question Good Question Popular Question Popular Question Popular Question Yearling Notable Question Caucus Constituent Popular Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 26355,472625,1267681,Informed Autobiographer,NULL,NULL,0,NULL,NULL 26356,184672,1322152,Famous Question,NULL,NULL,0,NULL,NULL 26357,262862,1261709,NULL,NULL,NULL,0,NULL,NULL 26358,212482,970524,NULL,NULL,NULL,0,NULL,NULL 26359,1520514,470919,NULL,NULL,NULL,0,NULL,NULL 26360,3104892,1266710,Nice Answer Nice Answer Enlightened Yearling Popular Question Notable Question Popular Question Caucus Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 26361,1581398,350721,Supporter,NULL,NULL,0,NULL,NULL 26362,824186,351444,NULL,NULL,NULL,0,NULL,NULL 26363,180060,1019488,NULL,NULL,NULL,0,NULL,NULL 26364,2620157,1019488,NULL,NULL,NULL,0,NULL,NULL 26365,165601,1019488,NULL,NULL,NULL,0,NULL,NULL 26366,263464,1078555,NULL,NULL,NULL,0,NULL,NULL 26367,86188,947280,Commentator Notable Question Curious Famous Question,NULL,NULL,0,NULL,NULL 26368,184788,195434,Nice Answer,NULL,NULL,0,NULL,NULL 26369,89081,1074573,NULL,NULL,NULL,0,NULL,NULL 26370,44538,775171,NULL,NULL,NULL,0,NULL,NULL 26371,922842,607596,NULL,NULL,NULL,0,NULL,NULL 26372,427273,656680,NULL,NULL,NULL,0,NULL,NULL 26373,783877,529753,NULL,NULL,NULL,0,NULL,NULL 26374,63039,455383,NULL,NULL,NULL,0,NULL,NULL 26375,898432,1220468,NULL,NULL,NULL,0,NULL,NULL 26376,128483,215373,Good Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26377,184894,215462,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26378,657217,1409057,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26379,77450,1257021,Nice Answer,NULL,NULL,0,NULL,NULL 26380,919249,459154,NULL,NULL,NULL,0,NULL,NULL 26381,394717,102436,NULL,NULL,NULL,0,NULL,NULL 26382,11276,325341,NULL,NULL,NULL,0,NULL,NULL 26383,2297701,44041,Quorum Great Question Necromancer Tumbleweed Nice Answer Nice Answer Talkative Outspoken Notable Question Caucus Good Answer Constituent Good Answer Yearling Popular Question Good Answer javascript Nice Question Census Electorate Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Caucus Guru Nice Answer Documentation User Guru python Popular Question Yearling Stellar Question Popular Question Nice Answer Good Answer Revival webpack Good Answer Nice Answer reactjs Notable Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 26384,54086,44041,Quorum Great Question Necromancer Tumbleweed Nice Answer Nice Answer Talkative Outspoken Notable Question Caucus Good Answer Constituent Good Answer Yearling Popular Question Good Answer javascript Nice Question Census Electorate Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Caucus Guru Nice Answer Documentation User Guru python Popular Question Yearling Stellar Question Popular Question Nice Answer Good Answer Revival webpack Good Answer Nice Answer reactjs Notable Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 26385,282053,687708,NULL,NULL,NULL,0,NULL,NULL 26386,1491710,160624,NULL,NULL,NULL,0,NULL,NULL 26387,16173,841092,NULL,NULL,NULL,0,NULL,NULL 26388,208611,706329,Popular Question,NULL,NULL,0,NULL,NULL 26389,441571,1256578,Tumbleweed Teacher Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26390,718450,25731,Promoter Popular Question Revival Necromancer Necromancer Nice Answer Yearling Census Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 26391,105164,77160,Popular Question Nice Answer Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 26392,754378,877465,Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Nice Answer Enlightened Caucus Constituent Census Good Answer Guru Guru Caucus Yearling Documentation User Nice Answer Census Caucus Constituent Yearling,NULL,pIt not possible to check if app is installed from web page You could do it inside an other app by checking if your url scheme can be opened using UIApplication canOpenURL method but there is no javascript equivalent to this ppHowever you can use the following workaround ppre code lt script language javascript gt function open appstore window location http itunes com function try to open app setTimeout open appstore 300 lt script gt lt onClick javascript try to open app href yourappurl gt App name lt gt code prepThis code will set timeout on the link that will call the open appstore function if this timeout ends Since your link is pointed at the app custom url Safari will try to open that link and if it can it will open the app and stop the timer so AppStore link will not be opened ppIf the app link can be opened when timer runs out it will display an error popup saying it can open the page can get rid of that but it will immediately go to AppStore and dismiss that error phrp strongiOS strong adds really nice feature that lets your app open http url href https developer apple com library prerelease ios releasenotes General WhatsNewIniOS Articles iOS9 html apple ref doc uid TP40016198 DontLinkElementID rel noreferrer Universal Links phrpIn strongiOS 10 strong there is popup saying emOpen in App Name em when you tap the link and the app is installed If the user does not tap on emOpen em in the given codetimeout code this solution will use the fallback As 300ms is too short to tap anything strongthis solution always fails on iOS 10 strong dent you are right feel free to edit the answer,0,NULL,NULL 26393,68109,1134515,NULL,NULL,NULL,0,NULL,NULL 26394,3102670,1134515,NULL,NULL,NULL,0,NULL,NULL 26395,76430,865797,NULL,NULL,NULL,0,NULL,NULL 26396,537272,647306,NULL,NULL,NULL,0,NULL,NULL 26397,895430,488438,Necromancer Custodian Custodian Custodian Proofreader Scholar Civic Duty Informed Reviewer Great Answer Yearling Organizer Caucus Constituent Populist Caucus Nice Answer Documentation User Yearling Nice Answer Caucus Constituent Yearling,NULL,pThe href https developer mozilla org en US docs Web JavaScript Reference Global Objects Date rel noreferrer Date object will do what you want construct one for each date then compare them using the code gt code code lt code code lt code or code gt code ppThe code code code code code code and code code operators require you to use codedate getTime code as in ppre codevar d1 new Date var d2 new Date d1 var same d1 getTime d2 getTime var notSame d1 getTime d2 getTime code prepto be clear just checking for equality directly with the data objects won work ppre codevar d1 new Date var d2 new Date d1 console log d1 d2 prints false wrong console log d1 d2 prints false wrong console log d1 d2 prints true wrong console log d1 d2 prints true wrong console log d1 getTime d2 getTime prints true correct code prepI suggest you use drop downs or some similar constrained form of date entry rather than text boxes though lest you find yourself in input validation hell if you use setHours you also eliminate the need for getTime eg console log d1 setHours d2 setHours prints true correct,0,NULL,NULL 26398,55048,324238,Notable Question Caucus Announcer Nice Question Nice Answer Caucus Yearling Popular Question Custodian Caucus,NULL,NULL,0,NULL,NULL 26399,135619,1561853,Informed Teacher Editor Supporter Scholar,NULL,NULL,0,NULL,NULL 26400,136654,594972,Autobiographer,NULL,NULL,0,NULL,NULL 26401,246186,1133307,Notable Question Editor Yearling,NULL,NULL,0,NULL,NULL 26402,24655,1296318,NULL,NULL,NULL,0,NULL,NULL 26403,50354,1451455,Informed Supporter,NULL,NULL,0,NULL,NULL 26404,165738,206534,Custodian Guru Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 26405,50461,1231880,Teacher Autobiographer Supporter Commentator Critic Editor Yearling Caucus Citizen Patrol Student Scholar Yearling Revival Documentation User Necromancer,NULL,NULL,0,NULL,NULL 26406,86151,57032,Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26407,104303,888149,Notable Question Yearling Nice Question Popular Question Popular Question Nice Question Yearling Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 26408,183535,1132990,Yearling Student Yearling Good Answer,NULL,NULL,0,NULL,NULL 26409,217371,984382,Student,NULL,NULL,0,NULL,NULL 26410,370449,1498590,Popular Question Self-Learner Yearling Critic,NULL,NULL,0,NULL,NULL 26411,209978,121424,Famous Question,NULL,NULL,0,NULL,NULL 26412,103695,998171,Popular Question,NULL,NULL,0,NULL,NULL 26413,137543,121199,Nice Answer Yearling Nice Answer Yearling Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 26414,159795,716464,NULL,NULL,NULL,0,NULL,NULL 26415,383891,1014349,NULL,NULL,NULL,0,NULL,NULL 26416,8952,305288,Yearling Revival,NULL,NULL,0,NULL,NULL 26417,4562,1396757,NULL,NULL,NULL,0,NULL,NULL 26418,134545,147664,Yearling Good Answer,NULL,NULL,0,NULL,NULL 26419,272787,98245,NULL,NULL,NULL,0,NULL,NULL 26420,198723,133221,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26421,25227,542190,Revival Pundit Good Answer Nice Answer Caucus Nice Answer Enlightened Steward Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Guru Documentation User Reviewer Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 26422,74200,1157697,NULL,NULL,NULL,0,NULL,NULL 26423,151458,967013,Teacher Necromancer Nice Answer Yearling Good Answer Yearling Yearling Populist Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 26424,116681,1384689,NULL,NULL,NULL,0,NULL,NULL 26425,315748,856778,NULL,NULL,NULL,0,NULL,NULL 26426,1883812,390779,NULL,NULL,NULL,0,NULL,NULL 26427,3328346,390779,NULL,NULL,NULL,0,NULL,NULL 26428,4618714,390779,NULL,NULL,NULL,0,NULL,NULL 26429,623959,1052691,Student,NULL,NULL,0,NULL,NULL 26430,1552017,298929,NULL,NULL,NULL,0,NULL,NULL 26431,1515688,192351,Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Nice Question Famous Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26432,40930,242117,NULL,NULL,NULL,0,NULL,NULL 26433,47777,597264,Notable Question Yearling Notable Question Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question Good Question Nice Question Yearling Good Question Famous Question Nice Question Promoter Benefactor Famous Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,1,Enzyme integration testing testing with react router testing components update with links javascript reactjs testing react router enzyme pI would like to test that clicking on link updates the components in my app ppHere my app when you click on about it renders the About component ppre codeimport React Component from react import App css import MemoryRouter as Router Route Link from react router dom const Home gt lt h1 gt home lt h1 gt const About gt lt h1 gt about lt h1 gt class App extends Component render return lt Router gt lt ul gt lt li gt lt Link to about gt About lt Link gt lt li gt lt li gt lt Link to gt Home lt Link gt lt li gt lt ul gt lt Route exact path component Home gt lt Route path about component About gt lt Router gt export default App code prepAnd here my test ppre codeimport React from react import Adapter from enzyme adapter react 16 import Enzyme from enzyme import mount from enzyme import MemoryRouter from react router dom import App from App Enzyme configure adapter new Adapter this test passes as expectedit renders intitial heading as home gt const wrapper mount lt App gt const pageHeading wrapper find h1 first text expect pageHeading toEqual home it renders about heading when we navigate to about gt const wrapper mount lt App gt const link wrapper find Link first link simulate click const pageHeading wrapper find h1 first text expect pageHeading toEqual about code prepThe second test fails ppre codeFAIL src App test js renders about heading when we navigate to about expect received toEqual expected Expected value to equal about Received home code prepI using react router v4 react 16 and enzyme ppIs it possible to test in this way using React Router and enzyme,NULL 26434,643,282706,Nice Answer Notable Question Yearling Nice Question Famous Question Nice Question Popular Question Popular Question Good Answer Yearling Guru Notable Question Nice Question Notable Question Yearling Nice Answer Enlightened Notable Question Popular Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 26435,162088,419075,Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Good Answer Popular Question Popular Question Yearling Nice Answer Enlightened Necromancer Nice Question Necromancer Necromancer Popular Question Nice Answer Great Answer Nice Answer Good Answer Nice Answer Caucus Nice Answer Enlightened Yearling Tumbleweed Nice Answer Custodian java Notable Question Nice Answer Good Answer Good Answer Famous Question Popular Question Good Answer Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26436,74904,1337203,Informed,NULL,NULL,0,NULL,NULL 26437,535063,950558,Yearling Commentator,NULL,NULL,0,NULL,NULL 26438,18169,347492,NULL,NULL,NULL,0,NULL,NULL 26439,231975,937897,Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Teacher Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26440,795305,960280,NULL,NULL,NULL,0,NULL,NULL 26441,504943,409110,Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Self-Learner Famous Question Nice Question Famous Question Nice Answer Yearling Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Notable Question Taxonomist Nice Question,NULL,NULL,0,NULL,NULL 26442,593388,522012,NULL,NULL,NULL,0,NULL,NULL 26443,329573,294808,NULL,NULL,NULL,0,NULL,NULL 26444,107669,336323,Autobiographer Informed,NULL,NULL,0,NULL,NULL 26445,373319,787722,NULL,NULL,NULL,0,NULL,NULL 26446,353221,362911,NULL,NULL,NULL,0,NULL,NULL 26447,2509658,362911,NULL,NULL,NULL,0,NULL,NULL 26448,236587,219735,Notable Question,NULL,NULL,0,NULL,NULL 26449,34767,1260961,NULL,NULL,NULL,0,NULL,NULL 26450,455321,1404867,NULL,NULL,NULL,0,NULL,NULL 26451,47667,244435,Yearling Yearling Nice Answer Enlightened Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 26452,278530,175956,Nice Question Excavator Famous Question Populist Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Revival Yearling Notable Question Necromancer Notable Question Popular Question Favorite Question Popular Question Notable Question Great Question Yearling Famous Question Nice Answer Popular Question Nice Question Nice Question Notable Question Custodian Popular Question Necromancer Yearling Custodian,NULL,turning off CLANG ENABLE MODULE DEBUGGING consequences ios xcode debugging clang llvm clang pIn order to work around an apple bug in xcode where xcode blows up when hitting some breakpoints we need to either turn off CLANG ENABLE MODULE DEBUGGING or stay with xcode Turning off CLANG ENABLE MODULE DEBUGGING sounds great ppWhat does it really mean to not be able to debug CLang modules in typical iOS developer work environment How can one know what CLang modules are being depended on either directly or transitively ppHere is discussion around that blow up issue href https forums developer apple com message 126468 126468 rel noreferrer https forums developer apple com message 126468 126468 pp strongUnderstanding CLang Modules and Debugging Them strong ppHere is an href https stoneofarc wordpress com 2013 06 25 introduction to objective modules rel noreferrer Introduction to Objective Modules ppFrom another source titled href http fortheloveoftech com 2015 06 08 apple releases xcode beta rel noreferrer Apple Releases Xcode Beta pblockquote pClang modules and precompiled headers for Objective and Objective contain debug information for the types they define When building with the Xcode setting CLANG ENABLE MODULE DEBUGGING YES enabled by default clang stores references to the types blockquotepI see couple of our Cocoa Pods use which seems related ppWhat is typical example of debug information that we would not see with this off don recall how through xcode However the line is in WHATEVER YOUR PROJECT xcodeproj project pbxproj XCBuildConfiguration section Debug build settings For whatever reason don see it through xcode,1,turning off CLANG ENABLE MODULE DEBUGGING consequences ios xcode debugging clang llvm clang pIn order to work around an apple bug in xcode where xcode blows up when hitting some breakpoints we need to either turn off CLANG ENABLE MODULE DEBUGGING or stay with xcode Turning off CLANG ENABLE MODULE DEBUGGING sounds great ppWhat does it really mean to not be able to debug CLang modules in typical iOS developer work environment How can one know what CLang modules are being depended on either directly or transitively ppHere is discussion around that blow up issue href https forums developer apple com message 126468 126468 rel noreferrer https forums developer apple com message 126468 126468 pp strongUnderstanding CLang Modules and Debugging Them strong ppHere is an href https stoneofarc wordpress com 2013 06 25 introduction to objective modules rel noreferrer Introduction to Objective Modules ppFrom another source titled href http fortheloveoftech com 2015 06 08 apple releases xcode beta rel noreferrer Apple Releases Xcode Beta pblockquote pClang modules and precompiled headers for Objective and Objective contain debug information for the types they define When building with the Xcode setting CLANG ENABLE MODULE DEBUGGING YES enabled by default clang stores references to the types blockquotepI see couple of our Cocoa Pods use which seems related ppWhat is typical example of debug information that we would not see with this off,NULL 26453,145705,221648,Explainer Census Famous Question,NULL,NULL,0,NULL,NULL 26454,278629,819007,Teacher Supporter Commentator Yearling Critic Informed Autobiographer Citizen Patrol Yearling Explainer Organizer Yearling Custodian Custodian Scholar Yearling Yearling Tumbleweed Promoter Custodian Excavator Tenacious Reviewer Nice Answer Enlightened Yearling Caucus Custodian Documentation User Deputy Unsung Hero Custodian Proofreader Reviewer Announcer Reviewer Census Caucus Steward Yearling php Good Answer Cleanup,NULL,NULL,0,NULL,NULL 26455,5963646,918201,Census,NULL,NULL,0,NULL,NULL 26456,504136,918201,Census,NULL,NULL,0,NULL,NULL 26457,236561,102150,NULL,NULL,NULL,0,NULL,NULL 26458,21040,599248,NULL,NULL,NULL,0,NULL,NULL 26459,210266,578893,NULL,NULL,NULL,0,NULL,NULL 26460,36588,354771,Informed,NULL,NULL,0,NULL,NULL 26461,63789,332770,Yearling Revival Yearling Populist Great Answer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 26462,80658,71748,Popular Question,NULL,NULL,0,NULL,NULL 26463,261022,1548853,Popular Question Yearling Notable Question Notable Question Nice Answer Nice Answer Yearling Caucus Popular Question Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 26464,912203,285436,Famous Question Popular Question Popular Question Notable Question Famous Question Nice Question Yearling Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 26465,28888,1471064,NULL,NULL,NULL,0,NULL,NULL 26466,770972,874165,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 26467,248594,1127753,Revival Nice Answer Yearling Good Answer Necromancer Citizen Patrol Yearling Popular Question Nice Answer Popular Question Necromancer Popular Question Yearling Famous Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 26468,274192,183528,Nice Answer cookies Popular Question Notable Question Nice Answer Guru Notable Question Famous Question Nice Answer Notable Question Nice Question Good Question Popular Question Notable Question Favorite Question Great Question Famous Question Stellar Question c Popular Question Notable Question Popular Question Revival Popular Question Favorite Question Nice Question Guru Famous Question Nice Answer Nice Answer Yearling Famous Question Popular Question Guru Notable Question Guru Notable Question Caucus Famous Question Famous Question Nice Answer Nice Answer Nice Answer encryption Popular Question Nice Answer Yearling Popular Question Good Answer Nice Question Popular Question Nice Answer Nice Answer Notable Question Famous Question Good Answer Popular Question Nice Question Good Answer Nice Answer Notable Question Guru Nice Question Famous Question Nice Answer Guru Popular Question Yearling Popular Question Guru,NULL,strongHere is shorter cleaner way to get the IP address strong ppre codefunction get ip address foreach array HTTP CLIENT IP HTTP FORWARDED FOR HTTP FORWARDED HTTP CLUSTER CLIENT IP HTTP FORWARDED FOR HTTP FORWARDED REMOTE ADDR as key if array key exists key SERVER true foreach explode SERVER key as ip ip trim ip just to be safe if filter var ip FILTER VALIDATE IP FILTER FLAG NO PRIV RANGE FILTER FLAG NO RES RANGE false return ip code prepI hope it helps phrpYour code seems to be pretty complete already cannot see any possible bugs in it aside from the usual IP caveats would change the codevalidate ip code function to rely on the filter extension though ppre codepublic function validate ip ip if filter var ip FILTER VALIDATE IP FILTER FLAG NO PRIV RANGE FILTER FLAG NO RES RANGE false return false self ip sprintf ip2long ip you seem to want this return true code prepAlso your codeHTTP FORWARDED FOR code snippet can be simplified from this ppre code check for IPs passing through proxiesif empty SERVER HTTP FORWARDED FOR check if multiple ips exist in var if strpos SERVER HTTP FORWARDED FOR false iplist explode SERVER HTTP FORWARDED FOR foreach iplist as ip if this gt validate ip ip return ip else if this gt validate ip SERVER HTTP FORWARDED FOR return SERVER HTTP FORWARDED FOR code prepTo this ppre code check for IPs passing through proxiesif empty SERVER HTTP FORWARDED FOR iplist explode SERVER HTTP FORWARDED FOR foreach iplist as ip if this gt validate ip ip return ip code prepYou may also want to validate IPv6 addresses The TCP socket handler is the only canonical source everything else is attacker controlled The code above is an attacker dream Compiling an application for use in highly radioactive environments gcc embedded fault tolerance pWe are compiling an embedded application that is deployed in shielded device in an environment bombarded with href https en wikipedia org wiki Ionizing radiation rel noreferrer ionizing radiation We are using GCC and cross compiling for ARM When deployed our application generates some erroneous data and crashes more often than we would like The hardware is designed for this environment and our application has run on this platform for several years ppAre there changes we can make to our code or compile time improvements that can be made to identify correct href https en wikipedia org wiki Soft error rel noreferrer soft errors and memory corruption caused by href https en wikipedia org wiki Single event upset rel noreferrer single event upsets Have any other developers had success in reducing the harmful effects of soft errors on long running application Matthews All memory has FIT error rate and hardware manufactures make lots of promises Most of the issues are likely caused by SEUs modifying ram at runtime pHTTPS is strongabsolutely vital strong in maintaining secure connection between website and browser href http lifehacker com 5853483 guide to sniffing out passwords and cookies and how to protect yourself against it rel noreferrer Public wifi networks put users at risk and when used correctly strongHTTPS is the only tool strong that can protect user accounts from href http readwrite com 2011 01 26 zuckerbergs facebook page hacked and now facebook rel noreferrer this vulnerability ppIf your host doesn support HTTPS then service like href http blog cloudflare com introducing universal ssl rel noreferrer Cloudflare Universal SSL can be used to ensure all browsers connect to your site using HTTPS emeven if your server doesn support SSL TLS em The connection between Cloudflare and your website will still be unprotected but this Cloudflare service is intended to protect users against threats found on public wifi networks From the perspective of penetration tester not providing HTTPS is highly suspect if you aren providing basic security requirement as delivering traffic then what other security requirements are you missing HTTPS certificates can be obtained for free using href https letsencrypt org rel noreferrer Let Encrypt or href https www startssl com rel noreferrer Start SSL there is no legitimate reason not to support HTTPS ppHTTPS vital because it does lot more than just encrypt passwords Another important role is that it should prevent the user from giving logging into malicious server that is impersonating real server Using system to protect the password alone is still violation of href https www owasp org index php Top 10 2010 A9 Insufficient Transport Layer Protection rel noreferrer OWASP A9 Insufficient Transport Layer Protection because you would still be transmitting session credentials in plain text which is all the attacker needs href http codebutler com firesheep rel noreferrer Firesheep polli href http matasano com articles javascript cryptography rel noreferrer JavaScript based cryptography cannot be used to construct secure transport layer lili Tokenize logins If an attacker is sniffingthe traffic they ll have the plain text username password and thenthey can just login with these new credentials Replay attack lili Somehow encrypt the transmitted password After the person has logged inan attacker can sniff the traffic to get the valid strongsession id strong cookie and then just use this instead of logging in If theentire session was protected with SSL TLS then this is not problem li olpThere are other more complex attacks that affect both this system and our current SSL infrastructure The href http www thoughtcrime org software sslstrip rel noreferrer SSLStrip attack goes into greater detail highly recommend href https www youtube com watch MFol6IMbZ7Y rel noreferrer watching Moxie Marlinspike Blackhat 2009 talk which lead to the href http en wikipedia org wiki HTTP Strict Transport Security rel noreferrer HTTP Strict Transport Security standard costa then you don have legs to stand on http i3 kym cdn com entries icons original 000 013 970 motherfucking game png pHTTPS is strongabsolutely vital strong in maintaining secure connection between website and browser href http lifehacker com 5853483 guide to sniffing out passwords and cookies and how to protect yourself against it rel noreferrer Public wifi networks put users at risk and when used correctly strongHTTPS is the only tool strong that can protect user accounts from href http readwrite com 2011 01 26 zuckerbergs facebook page hacked and now facebook rel noreferrer this vulnerability ppIf your host doesn support HTTPS then service like href http blog cloudflare com introducing universal ssl rel noreferrer Cloudflare Universal SSL can be used to ensure all browsers connect to your site using HTTPS emeven if your server doesn support SSL TLS em The connection between Cloudflare and your website will still be unprotected but this Cloudflare service is intended to protect users against threats found on public wifi networks From the perspective of penetration tester not providing HTTPS is highly suspect if you aren providing basic security requirement as delivering traffic then what other security requirements are you missing HTTPS certificates can be obtained for free using href https letsencrypt org rel noreferrer Let Encrypt or href https www startssl com rel noreferrer Start SSL there is no legitimate reason not to support HTTPS ppHTTPS vital because it does lot more than just encrypt passwords Another important role is that it should prevent the user from giving logging into malicious server that is impersonating real server Using system to protect the password alone is still violation of href https www owasp org index php Top 10 2010 A9 Insufficient Transport Layer Protection rel noreferrer OWASP A9 Insufficient Transport Layer Protection because you would still be transmitting session credentials in plain text which is all the attacker needs href http codebutler com firesheep rel noreferrer Firesheep polli href http matasano com articles javascript cryptography rel noreferrer JavaScript based cryptography cannot be used to construct secure transport layer lili Tokenize logins If an attacker is sniffingthe traffic they ll have the plain text username password and thenthey can just login with these new credentials Replay attack lili Somehow encrypt the transmitted password After the person has logged inan attacker can sniff the traffic to get the valid strongsession id strong cookie and then just use this instead of logging in If theentire session was protected with SSL TLS then this is not problem li olpThere are other more complex attacks that affect both this system and our current SSL infrastructure The href http www thoughtcrime org software sslstrip rel noreferrer SSLStrip attack goes into greater detail highly recommend href https www youtube com watch MFol6IMbZ7Y rel noreferrer watching Moxie Marlinspike Blackhat 2009 talk which lead to the href http en wikipedia org wiki HTTP Strict Transport Security rel noreferrer HTTP Strict Transport Security standard Bodewes But there is great answer just tunnel out over HTTPS This isn plane crash no one has to be stuck here,1,Compiling an application for use in highly radioactive environments gcc embedded fault tolerance pWe are compiling an embedded application that is deployed in shielded device in an environment bombarded with href https en wikipedia org wiki Ionizing radiation rel noreferrer ionizing radiation We are using GCC and cross compiling for ARM When deployed our application generates some erroneous data and crashes more often than we would like The hardware is designed for this environment and our application has run on this platform for several years ppAre there changes we can make to our code or compile time improvements that can be made to identify correct href https en wikipedia org wiki Soft error rel noreferrer soft errors and memory corruption caused by href https en wikipedia org wiki Single event upset rel noreferrer single event upsets Have any other developers had success in reducing the harmful effects of soft errors on long running application,NULL 26469,397138,408864,Tenacious Enthusiast Custodian Explainer Unsung Hero Organizer Excavator Proofreader Tag Editor Suffrage Vox Populi Mortarboard Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Custodian Yearling python,NULL,NULL,0,NULL,NULL 26470,907225,629662,Popular Question Caucus Census Nice Answer,NULL,NULL,0,NULL,NULL 26471,388614,1260229,Citizen Patrol Custodian Yearling Popular Question Popular Question Popular Question Popular Question Informed Inquisitive Revival Popular Question Nice Question Yearling Notable Question Famous Question Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 26472,71029,854874,Announcer Popular Question Notable Question Popular Question Curious Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 26473,4742,1267058,Necromancer,NULL,NULL,0,NULL,NULL 26474,463982,736641,NULL,NULL,NULL,0,NULL,NULL 26475,1521430,773517,Popular Question,NULL,NULL,0,NULL,NULL 26476,97071,548273,Teacher Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 26477,915213,777420,Popular Question Notable Question Yearling Popular Question Notable Question Caucus Popular Question Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26478,213151,623680,Yearling,NULL,NULL,0,NULL,NULL 26479,129886,679390,Notable Question Custodian Critic Announcer Popular Question,NULL,NULL,0,NULL,NULL 26480,350832,195562,Yearling Nice Question Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26481,5868,543111,NULL,NULL,NULL,0,NULL,NULL 26482,1135964,1153601,NULL,NULL,NULL,0,NULL,NULL 26483,110185,1353195,NULL,NULL,NULL,0,NULL,NULL 26484,40455,1025001,Yearling Civic Duty Critic Caucus Popular Question Constituent Revival Caucus Revival Caucus Nice Answer Popular Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 26485,490331,412364,NULL,NULL,NULL,0,NULL,NULL 26486,341573,850217,NULL,NULL,NULL,0,NULL,NULL 26487,6252186,1242446,Nice Question Popular Question Good Answer Yearling Good Answer Necromancer Notable Question Notable Question xcode Good Question Revival Nice Answer Necromancer Great Answer Nice Answer Yearling Popular Question Notable Question ios Famous Question Caucus Constituent Great Question Favorite Question Yearling Nice Answer Popular Question Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26488,208883,1242446,Nice Question Popular Question Good Answer Yearling Good Answer Necromancer Notable Question Notable Question xcode Good Question Revival Nice Answer Necromancer Great Answer Nice Answer Yearling Popular Question Notable Question ios Famous Question Caucus Constituent Great Question Favorite Question Yearling Nice Answer Popular Question Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26489,3780385,1242446,Nice Question Popular Question Good Answer Yearling Good Answer Necromancer Notable Question Notable Question xcode Good Question Revival Nice Answer Necromancer Great Answer Nice Answer Yearling Popular Question Notable Question ios Famous Question Caucus Constituent Great Question Favorite Question Yearling Nice Answer Popular Question Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26490,160250,1242446,Nice Question Popular Question Good Answer Yearling Good Answer Necromancer Notable Question Notable Question xcode Good Question Revival Nice Answer Necromancer Great Answer Nice Answer Yearling Popular Question Notable Question ios Famous Question Caucus Constituent Great Question Favorite Question Yearling Nice Answer Popular Question Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26491,75354,1242446,Nice Question Popular Question Good Answer Yearling Good Answer Necromancer Notable Question Notable Question xcode Good Question Revival Nice Answer Necromancer Great Answer Nice Answer Yearling Popular Question Notable Question ios Famous Question Caucus Constituent Great Question Favorite Question Yearling Nice Answer Popular Question Popular Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 26492,19407,301559,NULL,NULL,NULL,0,NULL,NULL 26493,60633,399351,NULL,NULL,NULL,0,NULL,NULL 26494,139516,442501,NULL,NULL,NULL,0,NULL,NULL 26495,232614,784650,NULL,NULL,NULL,0,NULL,NULL 26496,114646,968531,Excavator Yearling Necromancer Custodian Custodian Necromancer Yearling Nice Answer Nice Answer Yearling Necromancer Good Answer Revival Nice Answer Yearling Nice Answer Announcer Self-Learner Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 26497,77391,298171,Nice Answer Enlightened Custodian Custodian Custodian Nice Answer Yearling Notable Question Notable Question Nice Question Benefactor Notable Question Caucus Constituent Census Peer Pressure Yearling Nice Question Caucus Constituent Documentation User Inquisitive Popular Question Taxonomist Census Good Question Caucus Yearling Constituent Notable Question Notable Question Revival,NULL,pThis was exactly the sort of problem href http lucumr pocoo org 2014 27 python on wheels rel nofollow strongthe Python wheels format strong href https www python org dev peps pep 0427 rel nofollow described in PEP 427 was developed to address ppWheels are replacement for Python eggs which were are problematic for bunch of reasons href https packaging python org installing rel nofollow they are supported by codepip code can contain architecture specific private binaries here is href https github com lepture python wheels blob master travis yml rel nofollow one example of such an arrangement and are accepted generally by the Python communities who have stakes in these kind of things ppHere is one codesetup py code snippet from the href http lucumr pocoo org 2014 27 python on wheels rel nofollow aforelinked emPython on Wheels em article showing how one sets up binary distribution ppre codeimport osfrom setuptools import setupfrom setuptools dist import Distributionclass BinaryDistribution Distribution def is pure self return Falsesetup include package data True distclass BinaryDistribution code prep… in leu of the older but probably somehow still canonically supported codesetuptools code classes you are using It’s very straightforward to make Wheels for your distribution purposes as outlined as recall from experience either the codewheel code modules’ build process is somewhat cognizant of codevirtualenv code or it’s very easy to use one within the other ppIn any case trading in the codesetuptools code egg based APIs for wheel based tooling should save you some serious pain should think you should have look at Delocate https github com matthew brett delocate the source of which has great many useful functions for manipulating wheels and shared object files That will likely get you going… as for the yaml thing would predict that that’s going to be the hard irritating part of the project where you’ll just have to dive in and write your own configuration file reader code hewn closely to the intrinsic form taken by the data you work with Indeed,1,Using std unique ptr… to manage CoreFoundation CFType resources unique ptr core foundation cftypes pI am using codestd unique ptr code to manage opaque types from the CoreFoundation framework CoreFoundation types aka codeCFTypes code must be manually released so my recipe for the codestd unique ptr code type looks like this ppre class lang prettyprint override codenamespace detail template lt typename CoreFoundationType gt struct cfreleaser constexpr cfreleaser noexcept default template lt typename gt cfreleaser cfreleaser lt gt const amp noexcept void operator CoreFoundationType attribute cf consumed cfp if cfp CFRelease cfp cfp nullptr template lt typename CoreFoundationType gt using cfp std unique ptr lt typename std decay lt std remove pointer lt CoreFoundationType gt gt cfreleaser lt CoreFoundationType gt gt code prep… this arrangement lets me go from manually releasing codeCFType code resources ppre class lang prettyprint override codeCGColorSpaceRef deviceRGB CGColorSpaceCreateDeviceRGB make use of deviceRGB CGColorSpaceRelease deviceRGB release deviceRGB code prep… to an automatic release scheme like so ppre class lang prettyprint override codedetail cfp lt CGColorSpaceRef gt deviceRGB CGColorSpaceCreateDeviceRGB make use of deviceRGB deviceRGB releases automatically on scope exit code prep… this means that end up releasing every one of the codeCFType code instances create with codeCFRelease code never using whatever specialized release function may exist for that codeCFType code codeCGColorSpaceRelease code in the above example snippet ppIn my perusal of href https developer apple com reference coregraphics language objc rel nofollow noreferrer the CoreFoundation docs as well as the docs for codeCFType code based frameworks href https developer apple com reference coregraphics language objc rel nofollow noreferrer like CoreGraphics every custom releaser function have seen has been written up as “the equivalent of codeCFRelease code” href https developer apple com reference coregraphics 1586509 cgcontextrelease language objc rel nofollow noreferrer for example my question is are there any exceptions to this generality In other words is it safe to use codeCFRelease code on any and all codeCFType code instances as am doing in this case with codestd unique ptr code,Package only binary compiled so files of python library compiled with Cython python cython setuptools distutils setup py pI have package named codemypack code which inside has module codemymod py code and the code init py code For some reason that is not in debate need to package this module compiled nor py or pyc files are allowed That is the code init py code is the onlysource file allowed in the distributed compressed file ppThe folder structure is ppre code ├── mypack│ ├── init py│ └── mymod py├── setup py code prepI find that Cython is able to do this by converting each py file in so librarythat can be directly imported with python ppThe question is how the codesetup py code file must be in order to allow an easy packaging and installation ppThe target system has virtualenv where the package must be installed with whatever method that allows easy install and uninstall easy install pip etc are allwelcome ppI tried all that was at my reach read codesetuptools code and codedistutils code documentation all stackoverflow related questions and tried with all kind of commands sdist bdist bdist egg etc with lots of combinations of setup cfg and MANIFEST in file entries ppThe closest got was with the below setup file that would subclass the bdist egg command in order to remove also pyc files but that is breaking the installation ppA solution that installs manually the files in the venv is also good provided that all ancillary files that are included in properinstallation are covered need to run codepip freeze code in the venv and seecodemymod code ppRun it with ppre codepython setup py bdist egg exclude source files code prepand try to install it with ppre codeeasy install mymod py2 linux x86 64 egg code prepAs you may notice the target is linux 64 bits with python ppre codefrom Cython Distutils import build extfrom setuptools import setup find packagesfrom setuptools extension import Extensionfrom setuptools command import bdist eggfrom setuptools command bdist egg import walk egg log import osclass my bdist egg bdist egg bdist egg def zap pyfiles self log info Removing py files from temporary directory for base dirs files in walk egg self bdist dir for name in files if not name endswith init py if name endswith py or name endswith pyc original if only has name endswith py path os path join base name log info Deleting path os unlink path ext modules Extension mypack mymod mypack mymod py setup name mypack cmdclass build ext build ext bdist egg my bdist egg ext modules ext modules version description This is mypack compiled lib author Myself packages mypack code prepUPDATE Following answer it was possible to build wheel as requested in the answer The codesetup py code file contents are ppre codeimport osimport shutilfrom setuptools extension import Extensionfrom setuptools import setupfrom Cython Build import cythonizefrom Cython Distutils import build extclass MyBuildExt build ext def run self build ext run self build dir os path realpath self build lib root dir os path dirname os path realpath file target dir build dir if not self inplace else root dir self copy file mypack init py root dir target dir def copy file self path source dir destination dir if os path exists os path join source dir path shutil copyfile os path join source dir path os path join destination dir path setup name mypack cmdclass build ext MyBuildExt ext modules cythonize Extension mypack mypack py version description This is mypack compiled lib author Myself packages include package data True code prepThe key point was to set codepackages code The overwriting of the codebuild ext code class coderun code method was needed to get the code init py code file inside the wheel pThis was exactly the sort of problem href http lucumr pocoo org 2014 27 python on wheels rel nofollow strongthe Python wheels format strong href https www python org dev peps pep 0427 rel nofollow described in PEP 427 was developed to address ppWheels are replacement for Python eggs which were are problematic for bunch of reasons href https packaging python org installing rel nofollow they are supported by codepip code can contain architecture specific private binaries here is href https github com lepture python wheels blob master travis yml rel nofollow one example of such an arrangement and are accepted generally by the Python communities who have stakes in these kind of things ppHere is one codesetup py code snippet from the href http lucumr pocoo org 2014 27 python on wheels rel nofollow aforelinked emPython on Wheels em article showing how one sets up binary distribution ppre codeimport osfrom setuptools import setupfrom setuptools dist import Distributionclass BinaryDistribution Distribution def is pure self return Falsesetup include package data True distclass BinaryDistribution code prep… in leu of the older but probably somehow still canonically supported codesetuptools code classes you are using It’s very straightforward to make Wheels for your distribution purposes as outlined as recall from experience either the codewheel code modules’ build process is somewhat cognizant of codevirtualenv code or it’s very easy to use one within the other ppIn any case trading in the codesetuptools code egg based APIs for wheel based tooling should save you some serious pain should think 26498,500710,558858,NULL,NULL,NULL,0,NULL,NULL 26499,299367,145041,NULL,NULL,NULL,0,NULL,NULL 26500,331018,1557412,NULL,NULL,NULL,0,NULL,NULL 26501,422146,716440,Popular Question Citizen Patrol Yearling Announcer Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 26502,6260867,1260804,NULL,NULL,NULL,0,NULL,NULL 26503,235871,1260804,NULL,NULL,NULL,0,NULL,NULL 26504,10579047,289798,Announcer,NULL,NULL,0,NULL,NULL 26505,202689,289798,Announcer,NULL,NULL,0,NULL,NULL 26506,62115,395379,Great Answer Good Answer Good Answer Yearling Nice Answer Enlightened Yearling Yearling Student,NULL,pIn Flux app there should only be one Dispatcher All data flows through this central hub Having singleton Dispatcher allows it to manage all Stores This becomes important when you need Store update itself and then have Store update itself based on both the Action and on the state of Store Flux assumes this situation is an eventuality in large application Ideally this situation would not need to happen and developers should strive to avoid this complexity if possible But the singleton Dispatcher is ready to handle it when the time comes ppStores are singletons as well They should remain as independent and decoupled as possible self contained universe that one can query from Controller View The only road into the Store is through the callback it registers with the Dispatcher The only road out is through getter functions Stores also publish an event when their state has changed so Controller Views can know when to query for the new state using the getters ppIn your example app there would be single codePostStore code This same store could manage the posts on page pseudo page that is more like FB Newsfeed where posts appear from different users Its logical domain is the list of posts and it can handle any list of posts When we move from pseudo page to pseudo page we want to reinitialize the state of the store to reflect the new state We might also want to cache the previous state in localStorage as an optimization for moving back and forth between pseudo pages but my inclination would be to set up codePageStore code that waits for all other stores manages the relationship with localStorage for all the stores on the pseudo page and then updates its own state Note that this codePageStore code would store nothing about the posts that the domain of the codePostStore code It would simply know whether particular pseudo page has been cached or not because pseudo pages are its domain ppThe codePostStore code would have an codeinitialize code method This method would always clear the old state even if this is the first initialization and then create the state based on the data it received through the Action via the Dispatcher Moving from one pseudo page to another would probably involve codePAGE UPDATE code action which would trigger the invocation of codeinitialize code There are details to work out around retrieving data from the local cache retrieving data from the server optimistic rendering and XHR error states but this is the general idea ppIf particular pseudo page does not need all the Stores in the application not entirely sure there is any reason to destroy the unused ones other than memory constraints But stores don typically consume great deal of memory You just need to make sure to remove the event listeners in the Controller Views you are destroying This is done in React codecomponentWillUnmount code method The benefits are not seen until the app reaches point where there is lot of state being managed agree that for simple widget Flux is probably overkill But for large app with great deal of client side state Flux keeps the application very nicely organized New team members pick it up very quickly and know where to make changes New features are easy to develop and do not require extensive refactoring If you have ever tried to create an ad on Facebook then you know the kind of app talking about All of our ads interfaces are built with Flux,0,NULL,NULL 26507,146550,661892,NULL,NULL,NULL,0,NULL,NULL 26508,9409,913895,Commentator Notable Question,NULL,NULL,0,NULL,NULL 26509,106016,1279026,Supporter Documentation User,NULL,NULL,0,NULL,NULL 26510,20224,1197307,NULL,NULL,NULL,0,NULL,NULL 26511,932426,578730,Famous Question,NULL,NULL,0,NULL,NULL 26512,51748,1189799,Commentator Autobiographer Necromancer Tumbleweed Critic,NULL,NULL,0,NULL,NULL 26513,370371,787965,NULL,NULL,NULL,0,NULL,NULL 26514,90695,1067730,Documentation User,NULL,NULL,0,NULL,NULL 26515,561286,896794,Yearling,NULL,NULL,0,NULL,NULL 26516,252582,217336,NULL,NULL,NULL,0,NULL,NULL 26517,15740,130594,Popular Question Yearling,NULL,NULL,0,NULL,NULL 26518,68811,945754,NULL,NULL,NULL,0,NULL,NULL 26519,552456,1139848,Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 26520,282681,597802,NULL,NULL,NULL,0,NULL,NULL 26521,262460,1097406,NULL,NULL,NULL,0,NULL,NULL 26522,14863,1154350,Popular Question Yearling Popular Question Good Question Popular Question Nice Answer Necromancer Good Answer Famous Question Necromancer Nice Answer Nice Answer Necromancer Good Answer Popular Question Nice Answer Nice Question Popular Question Good Answer Revival Revival Necromancer Good Answer Famous Question Good Answer Necromancer Revival Good Answer Nice Answer Nice Answer Popular Question Popular Question Nice Answer Necromancer Nice Answer Necromancer Nice Answer Famous Question Necromancer Necromancer Caucus Popular Question Necromancer Nice Question Nice Answer Revival Revival Necromancer Yearling Good Answer Notable Question Famous Question Popular Question Promoter Benefactor Good Question Notable Question Great Question Good Question Nice Answer Nice Answer javascript Popular Question Notable Question Necromancer Notable Question Populist Good Answer Nice Answer Nice Question node.js Good Answer Popular Question Great Answer Guru Great Answer html Popular Question Nice Answer Enlightened Famous Question Nice Answer Famous Question Nice Answer Famous Question Famous Question Nice Answer Yearling Good Answer Necromancer Good Answer Notable Question Good Answer Popular Question Popular Question Great Answer Good Answer Famous Question Popular Question Favorite Question Good Answer Necromancer Nice Answer Nice Question Nice Answer Popular Question Popular Question Favorite Question Nice Answer Nice Answer Nice Question Popular Question Necromancer,NULL,NULL,1,What is the difference between yarn lock and npm shrinkwrap node js npm yarnpkg pRecently tried installing my Node packages with Yarn It works great and it lot faster than NPM Yarn automatically generates codeyarn lock code We already have NPM shrinkwrap codenpm shrinkwrap json code ppIs there any difference between them Does codeyarn lock code has any advantage over npm shrinkwrap json,NULL 26523,76566,1171775,Curious Revival Yearling Nice Answer Nice Answer Self-Learner Necromancer Custodian Nice Answer Necromancer Nice Answer Good Question Necromancer Revival Necromancer Announcer Necromancer Nice Answer Enlightened Necromancer Yearling Notable Question Good Answer Nice Answer Revival Custodian Necromancer Necromancer Necromancer Nice Answer Popular Question Good Answer Yearling Popular Question Nice Answer Famous Question Nice Answer Notable Question,NULL,strongUpdate 2016 03 26 strong ppThe method described no longer works if you are using npm3 since npm3 fetches all modules described in codepackage json code before running the codepreinstall code script This href https github com npm npm issues 10379 has been confirmed as bug ppThe official node js Heroku buildpack now includes codeheroku prebuild code and codeheroku postbuild code which will be run before and after codenpm install code respectively You should use these scripts instead of codepreinstall code and codepostinstall code in all cases to support both npm2 and npm3 ppIn other words your codepackage json code should resemble ppre code scripts heroku prebuild bash preinstall sh heroku postbuild bash postinstall sh code prehrpI ve come up with an alternative to Michael answer retaining the IMO favourable requirement of keeping your credentials out of source control whilst not requiring custom buildpack This was borne out of frustration that the href https github com thirdiron heroku buildpack nodejs buildpack linked by Michael is rather out of date ppThe solution is to setup and tear down the SSH environment in npm codepreinstall code and codepostinstall code scripts instead of in the buildpack ppFollow these instructions pulliCreate two scripts in your repo let call them codepreinstall sh code and codepostinstall sh code liliMake them executable codechmod sh code liliAdd the following to codepreinstall sh code li ulpre class lang bash prettyprint override code bin bash Generates an SSH config file for connections if config var exists if GIT SSH KEY then echo Detected SSH key for git Adding SSH config gt amp echo gt amp Ensure we have an ssh folder if ssh then mkdir ssh chmod 700 ssh fi Load the private key into file echo GIT SSH KEY base64 decode gt ssh deploy key Change the permissions on the file to be read only for this user chmod 400 ssh deploy key Setup the ssh config file echo Host github com IdentityFile ssh deploy key IdentitiesOnly yes UserKnownHostsFile dev null StrictHostKeyChecking no gt ssh config fi code preulliAdd the following to codepostinstall sh code li ulpre class lang bash prettyprint override code bin bash if GIT SSH KEY then echo Cleaning up SSH config gt amp echo gt amp Now that npm has finished running we shouldn need the ssh key config anymore Remove the files that we created rm ssh config rm ssh deploy key Clear that sensitive key data from the environment export GIT SSH KEY fi code preulli pAdd the following to your codepackage json code ppre code scripts preinstall bash preinstall sh postinstall bash postinstall sh code pre lili pGenerate private public key pair using codessh agent code liliAdd the public key as deploy key on Github liliCreate base64 encoded version of your private key and set it as the Heroku config var codeGIT SSH KEY code liliCommit and push your app to Github li ulpWhen Heroku builds your app before npm installs your dependencies the codepreinstall sh code script is run This creates private key file from the decoded contents of the codeGIT SSH KEY code environment variable and creates an SSH config file to tell SSH to use this file when connecting to codegithub com code If you are connecting to Bitbucket instead then update the codeHost code entry in codepreinstall sh code to codebitbucket org code npm then installs the modules using this SSH config After installation the private key is removed and the config is wiped ppThis allows Heroku to pull down your private modules via SSH while keeping the private key out of the codebase If your private key becomes compromised since it is just one half of deploy key you can revoke the public key in GitHub and regenerate the keypair ppAs an aside since GitHub deploy keys have read write permissions if you are hosting the module in GitHub organization you can instead create read only team and assign deploy user to it The deploy user can then be configured with the public half of the keypair This adds an extra layer of security to your module Thanks have changed the names as suggested Base64 is to remove the line feeds that correct strongUpdate 2016 03 26 strong ppThe method described no longer works if you are using npm3 since npm3 fetches all modules described in codepackage json code before running the codepreinstall code script This href https github com npm npm issues 10379 has been confirmed as bug ppThe official node js Heroku buildpack now includes codeheroku prebuild code and codeheroku postbuild code which will be run before and after codenpm install code respectively You should use these scripts instead of codepreinstall code and codepostinstall code in all cases to support both npm2 and npm3 ppIn other words your codepackage json code should resemble ppre code scripts heroku prebuild bash preinstall sh heroku postbuild bash postinstall sh code prehrpI ve come up with an alternative to Michael answer retaining the IMO favourable requirement of keeping your credentials out of source control whilst not requiring custom buildpack This was borne out of frustration that the href https github com thirdiron heroku buildpack nodejs buildpack linked by Michael is rather out of date ppThe solution is to setup and tear down the SSH environment in npm codepreinstall code and codepostinstall code scripts instead of in the buildpack ppFollow these instructions pulliCreate two scripts in your repo let call them codepreinstall sh code and codepostinstall sh code liliMake them executable codechmod sh code liliAdd the following to codepreinstall sh code li ulpre class lang bash prettyprint override code bin bash Generates an SSH config file for connections if config var exists if GIT SSH KEY then echo Detected SSH key for git Adding SSH config gt amp echo gt amp Ensure we have an ssh folder if ssh then mkdir ssh chmod 700 ssh fi Load the private key into file echo GIT SSH KEY base64 decode gt ssh deploy key Change the permissions on the file to be read only for this user chmod 400 ssh deploy key Setup the ssh config file echo Host github com IdentityFile ssh deploy key IdentitiesOnly yes UserKnownHostsFile dev null StrictHostKeyChecking no gt ssh config fi code preulliAdd the following to codepostinstall sh code li ulpre class lang bash prettyprint override code bin bash if GIT SSH KEY then echo Cleaning up SSH config gt amp echo gt amp Now that npm has finished running we shouldn need the ssh key config anymore Remove the files that we created rm ssh config rm ssh deploy key Clear that sensitive key data from the environment export GIT SSH KEY fi code preulli pAdd the following to your codepackage json code ppre code scripts preinstall bash preinstall sh postinstall bash postinstall sh code pre lili pGenerate private public key pair using codessh agent code liliAdd the public key as deploy key on Github liliCreate base64 encoded version of your private key and set it as the Heroku config var codeGIT SSH KEY code liliCommit and push your app to Github li ulpWhen Heroku builds your app before npm installs your dependencies the codepreinstall sh code script is run This creates private key file from the decoded contents of the codeGIT SSH KEY code environment variable and creates an SSH config file to tell SSH to use this file when connecting to codegithub com code If you are connecting to Bitbucket instead then update the codeHost code entry in codepreinstall sh code to codebitbucket org code npm then installs the modules using this SSH config After installation the private key is removed and the config is wiped ppThis allows Heroku to pull down your private modules via SSH while keeping the private key out of the codebase If your private key becomes compromised since it is just one half of deploy key you can revoke the public key in GitHub and regenerate the keypair ppAs an aside since GitHub deploy keys have read write permissions if you are hosting the module in GitHub organization you can instead create read only team and assign deploy user to it The deploy user can then be configured with the public half of the keypair This adds an extra layer of security to your module The latest Heroku buildpack now has the scripts heroku prebuild and heroku postbuild You should replace preinstall with heroku prebuild and postinstall with heroku postbuild to achieve what you want Amongst other things this will support npm3 which runs the scripts in different order to npm2 https github com npm npm issues 10379 strongUpdate 2016 03 26 strong ppThe method described no longer works if you are using npm3 since npm3 fetches all modules described in codepackage json code before running the codepreinstall code script This href https github com npm npm issues 10379 has been confirmed as bug ppThe official node js Heroku buildpack now includes codeheroku prebuild code and codeheroku postbuild code which will be run before and after codenpm install code respectively You should use these scripts instead of codepreinstall code and codepostinstall code in all cases to support both npm2 and npm3 ppIn other words your codepackage json code should resemble ppre code scripts heroku prebuild bash preinstall sh heroku postbuild bash postinstall sh code prehrpI ve come up with an alternative to Michael answer retaining the IMO favourable requirement of keeping your credentials out of source control whilst not requiring custom buildpack This was borne out of frustration that the href https github com thirdiron heroku buildpack nodejs buildpack linked by Michael is rather out of date ppThe solution is to setup and tear down the SSH environment in npm codepreinstall code and codepostinstall code scripts instead of in the buildpack ppFollow these instructions pulliCreate two scripts in your repo let call them codepreinstall sh code and codepostinstall sh code liliMake them executable codechmod sh code liliAdd the following to codepreinstall sh code li ulpre class lang bash prettyprint override code bin bash Generates an SSH config file for connections if config var exists if GIT SSH KEY then echo Detected SSH key for git Adding SSH config gt amp echo gt amp Ensure we have an ssh folder if ssh then mkdir ssh chmod 700 ssh fi Load the private key into file echo GIT SSH KEY base64 decode gt ssh deploy key Change the permissions on the file to be read only for this user chmod 400 ssh deploy key Setup the ssh config file echo Host github com IdentityFile ssh deploy key IdentitiesOnly yes UserKnownHostsFile dev null StrictHostKeyChecking no gt ssh config fi code preulliAdd the following to codepostinstall sh code li ulpre class lang bash prettyprint override code bin bash if GIT SSH KEY then echo Cleaning up SSH config gt amp echo gt amp Now that npm has finished running we shouldn need the ssh key config anymore Remove the files that we created rm ssh config rm ssh deploy key Clear that sensitive key data from the environment export GIT SSH KEY fi code preulli pAdd the following to your codepackage json code ppre code scripts preinstall bash preinstall sh postinstall bash postinstall sh code pre lili pGenerate private public key pair using codessh agent code liliAdd the public key as deploy key on Github liliCreate base64 encoded version of your private key and set it as the Heroku config var codeGIT SSH KEY code liliCommit and push your app to Github li ulpWhen Heroku builds your app before npm installs your dependencies the codepreinstall sh code script is run This creates private key file from the decoded contents of the codeGIT SSH KEY code environment variable and creates an SSH config file to tell SSH to use this file when connecting to codegithub com code If you are connecting to Bitbucket instead then update the codeHost code entry in codepreinstall sh code to codebitbucket org code npm then installs the modules using this SSH config After installation the private key is removed and the config is wiped ppThis allows Heroku to pull down your private modules via SSH while keeping the private key out of the codebase If your private key becomes compromised since it is just one half of deploy key you can revoke the public key in GitHub and regenerate the keypair ppAs an aside since GitHub deploy keys have read write permissions if you are hosting the module in GitHub organization you can instead create read only team and assign deploy user to it The deploy user can then be configured with the public half of the keypair This adds an extra layer of security to your module yes this technique will only work without passphrase since it is unattended advocate creating separate SSH key for just this operation which would make it easy to revoke if compromised at later date strongUpdate 2016 03 26 strong ppThe method described no longer works if you are using npm3 since npm3 fetches all modules described in codepackage json code before running the codepreinstall code script This href https github com npm npm issues 10379 has been confirmed as bug ppThe official node js Heroku buildpack now includes codeheroku prebuild code and codeheroku postbuild code which will be run before and after codenpm install code respectively You should use these scripts instead of codepreinstall code and codepostinstall code in all cases to support both npm2 and npm3 ppIn other words your codepackage json code should resemble ppre code scripts heroku prebuild bash preinstall sh heroku postbuild bash postinstall sh code prehrpI ve come up with an alternative to Michael answer retaining the IMO favourable requirement of keeping your credentials out of source control whilst not requiring custom buildpack This was borne out of frustration that the href https github com thirdiron heroku buildpack nodejs buildpack linked by Michael is rather out of date ppThe solution is to setup and tear down the SSH environment in npm codepreinstall code and codepostinstall code scripts instead of in the buildpack ppFollow these instructions pulliCreate two scripts in your repo let call them codepreinstall sh code and codepostinstall sh code liliMake them executable codechmod sh code liliAdd the following to codepreinstall sh code li ulpre class lang bash prettyprint override code bin bash Generates an SSH config file for connections if config var exists if GIT SSH KEY then echo Detected SSH key for git Adding SSH config gt amp echo gt amp Ensure we have an ssh folder if ssh then mkdir ssh chmod 700 ssh fi Load the private key into file echo GIT SSH KEY base64 decode gt ssh deploy key Change the permissions on the file to be read only for this user chmod 400 ssh deploy key Setup the ssh config file echo Host github com IdentityFile ssh deploy key IdentitiesOnly yes UserKnownHostsFile dev null StrictHostKeyChecking no gt ssh config fi code preulliAdd the following to codepostinstall sh code li ulpre class lang bash prettyprint override code bin bash if GIT SSH KEY then echo Cleaning up SSH config gt amp echo gt amp Now that npm has finished running we shouldn need the ssh key config anymore Remove the files that we created rm ssh config rm ssh deploy key Clear that sensitive key data from the environment export GIT SSH KEY fi code preulli pAdd the following to your codepackage json code ppre code scripts preinstall bash preinstall sh postinstall bash postinstall sh code pre lili pGenerate private public key pair using codessh agent code liliAdd the public key as deploy key on Github liliCreate base64 encoded version of your private key and set it as the Heroku config var codeGIT SSH KEY code liliCommit and push your app to Github li ulpWhen Heroku builds your app before npm installs your dependencies the codepreinstall sh code script is run This creates private key file from the decoded contents of the codeGIT SSH KEY code environment variable and creates an SSH config file to tell SSH to use this file when connecting to codegithub com code If you are connecting to Bitbucket instead then update the codeHost code entry in codepreinstall sh code to codebitbucket org code npm then installs the modules using this SSH config After installation the private key is removed and the config is wiped ppThis allows Heroku to pull down your private modules via SSH while keeping the private key out of the codebase If your private key becomes compromised since it is just one half of deploy key you can revoke the public key in GitHub and regenerate the keypair ppAs an aside since GitHub deploy keys have read write permissions if you are hosting the module in GitHub organization you can instead create read only team and assign deploy user to it The deploy user can then be configured with the public half of the keypair This adds an extra layer of security to your module the name doesn matter at all you could easily use GIT SSH 01 GIT SSH 02 etc just remember to modify the script accordingly to use the correct environment variables,0,NULL,NULL 26524,79988,574117,NULL,NULL,NULL,0,NULL,NULL 26525,396052,638163,NULL,NULL,NULL,0,NULL,NULL 26526,35822,1369114,NULL,NULL,NULL,0,NULL,NULL 26527,231495,317610,Teacher Student,NULL,NULL,0,NULL,NULL 26528,209949,437012,Famous Question Revival,NULL,NULL,0,NULL,NULL 26529,422290,1356311,Tumbleweed Scholar Student Popular Question,NULL,NULL,0,NULL,NULL 26530,250450,554698,Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 26531,178091,1180547,Student Scholar Commentator Tumbleweed Popular Question Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 26532,637818,258177,Nice Answer Yearling Popular Question Custodian Yearling Notable Question Nice Question Yearling Custodian,NULL,NULL,0,NULL,NULL 26533,193361,56087,Necromancer Commentator Caucus Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 26534,579844,1045528,NULL,NULL,NULL,0,NULL,NULL 26535,489221,211447,Student Caucus Yearling,NULL,NULL,0,NULL,NULL 26536,758693,961909,NULL,NULL,NULL,0,NULL,NULL 26537,313994,253956,Yearling Favorite Question Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 26538,121787,1253216,NULL,NULL,NULL,0,NULL,NULL 26539,688,860442,NULL,NULL,NULL,0,NULL,NULL 26540,175384,556036,NULL,NULL,NULL,0,NULL,NULL 26541,1218747,1023431,NULL,NULL,NULL,0,NULL,NULL 26542,52401,298415,Yearling Nice Answer Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 26543,376875,1273077,Popular Question Good Answer Yearling Popular Question Popular Question Custodian Popular Question Good Answer Explainer Guru Proofreader Popular Question Notable Question Necromancer Good Answer Caucus Constituent Nice Question Popular Question Famous Question Nice Question symfony Yearling Notable Question Popular Question Necromancer Nice Answer Notable Question Popular Question Caucus Nice Question Revival Constituent Good Question Notable Question Nice Question Notable Question Caucus Yearling Constituent Notable Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 26544,756601,471550,Necromancer Popular Question Revival Revival Announcer,NULL,NULL,0,NULL,NULL 26545,13303,1030457,NULL,NULL,NULL,0,NULL,NULL 26546,22548,887475,NULL,NULL,NULL,0,NULL,NULL 26547,6432573,993574,NULL,NULL,NULL,0,NULL,NULL 26548,885254,993574,NULL,NULL,NULL,0,NULL,NULL 26549,205492,878067,NULL,NULL,NULL,0,NULL,NULL 26550,148058,1081575,Tumbleweed,NULL,NULL,0,NULL,NULL 26551,672471,134486,Stellar Question Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 26552,1387049,1250696,NULL,NULL,NULL,0,NULL,NULL 26553,1321499,393853,Famous Question,NULL,NULL,0,NULL,NULL 26554,145264,1390944,NULL,NULL,NULL,0,NULL,NULL 26555,208986,477902,Popular Question Notable Question Caucus Constituent Informed Autobiographer Yearling Popular Question Yearling Popular Question Custodian Popular Question Self-Learner Notable Question Notable Question Caucus Notable Question Custodian Documentation User Popular Question Custodian Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 26556,521835,167996,Nice Answer Enlightened ruby-on-rails Notable Question Popular Question Great Answer Promoter Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer php Announcer Announcer Nice Answer Yearling Documentation User Announcer Self-Learner Yearling,NULL,NULL,0,NULL,NULL 26557,59277,1181782,Suffrage Caucus Constituent Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 26558,60014,1304312,Commentator Yearling Organizer Yearling Tenacious Excavator Citizen Patrol Yearling Yearling,NULL,NULL,0,NULL,NULL 26559,276435,1110319,NULL,NULL,NULL,0,NULL,NULL 26560,1601074,341633,Critic Informed Documentation User,NULL,NULL,0,NULL,NULL 26561,253634,72810,Nice Question Organizer Yearling Nice Answer Explainer Nice Question Citizen Patrol Notable Question Popular Question Popular Question Nice Question Yearling Taxonomist Famous Question Yearling Popular Question Good Answer Revival Nice Answer,NULL,NULL,0,NULL,NULL 26562,161008,352085,Commentator Yearling Announcer Peer Pressure Necromancer,NULL,NULL,0,NULL,NULL 26563,7214,66229,Nice Answer Enlightened Yearling Good Answer Tumbleweed Popular Question Nice Answer Enlightened Popular Question Nice Answer Good Answer Good Answer Nice Answer Great Answer Yearling Good Answer Nice Question Guru Great Answer Good Answer Nice Answer Enlightened Yearling Great Answer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 26564,92618,154273,Supporter,NULL,NULL,0,NULL,NULL 26565,826627,708350,Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26566,1879440,390594,NULL,NULL,NULL,0,NULL,NULL 26567,184843,390594,NULL,NULL,NULL,0,NULL,NULL 26568,357944,1341043,Teacher Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26569,721684,432276,NULL,NULL,NULL,0,NULL,NULL 26570,18081,63272,NULL,NULL,NULL,0,NULL,NULL 26571,282198,784143,NULL,NULL,NULL,0,NULL,NULL 26572,38836,1210979,NULL,NULL,NULL,0,NULL,NULL 26573,47509,429828,Good Answer Student Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 26574,597105,1476354,NULL,NULL,NULL,0,NULL,NULL 26575,581631,1292456,Teacher Student Supporter Organizer Editor Critic Yearling,NULL,NULL,0,NULL,NULL 26576,519934,490153,Nice Question Yearling Guru Custodian Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 26577,24291,666406,NULL,NULL,NULL,0,NULL,NULL 26578,13723,525050,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 26579,1565117,1288474,Teacher,NULL,NULL,0,NULL,NULL 26580,19057,3914,Yearling Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 26581,2934542,1233692,NULL,NULL,NULL,0,NULL,NULL 26582,114234,320549,NULL,NULL,NULL,0,NULL,NULL 26583,166556,334931,Supporter Editor Commentator Student,NULL,NULL,0,NULL,NULL 26584,338108,1276307,NULL,NULL,NULL,0,NULL,NULL 26585,93074,145349,Announcer Popular Question Popular Question Famous Question Nice Answer Yearling Notable Question Good Question Notable Question Famous Question Announcer Announcer Yearling Popular Question Announcer Necromancer Announcer Nice Answer Custodian Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 26586,38813,478228,NULL,NULL,NULL,0,NULL,NULL 26587,106166,625850,NULL,NULL,NULL,0,NULL,NULL 26588,1055212,151586,NULL,NULL,NULL,0,NULL,NULL 26589,203703,1488669,Critic Informed Yearling Nice Answer Yearling Mortarboard Organizer Yearling Citizen Patrol Custodian Custodian Caucus Popular Question Popular Question Caucus Documentation User,NULL,NULL,0,NULL,NULL 26590,786468,108168,Nice Answer Yearling Custodian Yearling Documentation User Yearling Guru,NULL,NULL,0,NULL,NULL 26591,786475,108168,Nice Answer Yearling Custodian Yearling Documentation User Yearling Guru,NULL,NULL,0,NULL,NULL 26592,1506308,552698,Supporter Good Answer Yearling,NULL,NULL,0,NULL,NULL 26593,3742,198720,Good Question Yearling Nice Answer Custodian Organizer Explainer Yearling Good Answer Necromancer Great Answer Necromancer Documentation User Yearling Announcer Necromancer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26594,6097872,461887,Notable Question Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Announcer Good Question Notable Question Nice Answer Yearling Notable Question Popular Question Nice Question Famous Question Good Answer Notable Question Famous Question Announcer Yearling Popular Question Custodian Notable Question Popular Question Nice Question Popular Question Popular Question Announcer Great Question Famous Question Favorite Question Yearling Popular Question Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26595,907375,461887,Notable Question Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Announcer Good Question Notable Question Nice Answer Yearling Notable Question Popular Question Nice Question Famous Question Good Answer Notable Question Famous Question Announcer Yearling Popular Question Custodian Notable Question Popular Question Nice Question Popular Question Popular Question Announcer Great Question Famous Question Favorite Question Yearling Popular Question Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26596,80943,1165839,NULL,NULL,NULL,0,NULL,NULL 26597,108502,814398,Popular Question,NULL,NULL,0,NULL,NULL 26598,7924528,1298184,NULL,NULL,NULL,0,NULL,NULL 26599,630935,1237974,Notable Question Yearling Popular Question Curious Necromancer Yearling Necromancer Notable Question Revival Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 26600,253532,172392,NULL,NULL,NULL,0,NULL,NULL 26601,238759,1296295,NULL,NULL,NULL,0,NULL,NULL 26602,47289,66249,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 26603,222920,400503,Supporter Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 26604,250763,773635,Nice Question Yearling Nice Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 26605,322824,582627,NULL,NULL,NULL,0,NULL,NULL 26606,112083,53827,Necromancer Custodian Custodian,NULL,NULL,0,NULL,NULL 26607,94351,1400908,Student Scholar Commentator Editor,NULL,NULL,0,NULL,NULL 26608,32732,179805,Nice Answer Enlightened Good Answer Yearling Informed Yearling,NULL,pIf you just want direct subclasses then code subclasses code works fine If you want all subclasses subclasses of subclasses and so on you ll need function to do that for you ppHere simple readable function that recursively finds all subclasses of given class ppre codedef get all subclasses cls all subclasses for subclass in cls subclasses all subclasses append subclass all subclasses extend get all subclasses subclass return all subclasses code pre You mean if you re using multiple inheritance think otherwise you shouldn end up with duplicates,0,NULL,NULL 26609,1325634,179805,Nice Answer Enlightened Good Answer Yearling Informed Yearling,NULL,pIf you just want direct subclasses then code subclasses code works fine If you want all subclasses subclasses of subclasses and so on you ll need function to do that for you ppHere simple readable function that recursively finds all subclasses of given class ppre codedef get all subclasses cls all subclasses for subclass in cls subclasses all subclasses append subclass all subclasses extend get all subclasses subclass return all subclasses code pre You mean if you re using multiple inheritance think otherwise you shouldn end up with duplicates,0,NULL,NULL 26610,140477,1380520,Popular Question Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 26611,501771,955172,Autobiographer,NULL,NULL,0,NULL,NULL 26612,72117,986282,Nice Answer Nice Answer Necromancer Yearling Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 26613,218055,329990,Popular Question Curious Census Notable Question,NULL,NULL,0,NULL,NULL 26614,416051,486038,Caucus,NULL,NULL,0,NULL,NULL 26615,220200,425382,Supporter Necromancer Notable Question,NULL,NULL,0,NULL,NULL 26616,61267,616823,NULL,NULL,NULL,0,NULL,NULL 26617,267565,1064424,NULL,NULL,NULL,0,NULL,NULL 26618,13024,798777,NULL,NULL,NULL,0,NULL,NULL 26619,1348138,1440810,NULL,NULL,NULL,0,NULL,NULL 26620,1017308,848807,NULL,NULL,NULL,0,NULL,NULL 26621,603835,381410,NULL,NULL,NULL,0,NULL,NULL 26622,389092,193298,Necromancer,NULL,NULL,0,NULL,NULL 26623,1568981,478799,NULL,NULL,NULL,0,NULL,NULL 26624,4633379,130785,Notable Question Informed Autobiographer Citizen Patrol Critic Popular Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 26625,471813,130785,Notable Question Informed Autobiographer Citizen Patrol Critic Popular Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 26626,480820,705416,NULL,NULL,NULL,0,NULL,NULL 26627,121842,1278353,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 26628,154486,1250174,NULL,NULL,NULL,0,NULL,NULL 26629,6982,781502,Editor Excavator Civic Duty Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26630,16281,1372546,NULL,NULL,NULL,0,NULL,NULL 26631,154319,354652,Critic Announcer,NULL,NULL,0,NULL,NULL 26632,110816,1152894,Yearling Nice Answer Enlightened Curious Caucus Yearling Caucus Custodian Census Caucus,NULL,NULL,0,NULL,NULL 26633,2276,239140,Census,NULL,NULL,0,NULL,NULL 26634,870875,825926,Yearling Revival Notable Question Critic Caucus Nice Answer,NULL,NULL,0,NULL,NULL 26635,35224,1038275,Informed Editor,NULL,NULL,0,NULL,NULL 26636,524199,661589,Reviewer Autobiographer Mortarboard Suffrage Peer Pressure Explainer javascript android Electorate Informed Nice Question Custodian Custodian Custodian jquery Talkative Quorum Popular Question Yearling Popular Question Revival Notable Question Notable Question Popular Question Popular Question Popular Question Necromancer Cleanup Popular Question Nice Answer Notable Question Yearling Notable Question Famous Question Popular Question Nice Answer Famous Question Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Nice Question Nice Question Revival java Yearling Notable Question Good Answer Good Answer Necromancer Guru Popular Question Popular Question,NULL,pUse an enum ppre codepublic enum Foo INSTANCE code prepJoshua Bloch explained this approach in his href http sites google com site io effective java reloaded rel noreferrer Effective Java Reloaded talk at Google 2008 href http www youtube com watch pi I7oD uGI 28m50s rel noreferrer link to video Also see slides 30 32 of his presentation href https 14b1424d 62cb3a1a sites googlegroups com site io effective java reloaded effective java reloaded pdf attachauth ANoY7crKCOet2NEUGW7RV1XfM Jn4z8YJhs0qJM11OhLRnFW JbExkJtvJ3UJvTE40dhAciyWcRIeGJ n3FLGnMOapHShHINh8IY05YViOJoZWzaohMtM s4HCi5kjREagi8awWtcYD0 6G7GhKr2BndToeqLk5sBhZcQfcYIyAE5A4lGNosDCjODcBAkJn8EuO6572t2wU1LMSEUgjvqcf4I Fp6VDhDvih XUEmL9nuVJQynd2DRpxyuNH1SpJspEIdbLw WWZ amp attredirects rel noreferrer effective java reloaded pdf pblockquote h3The Right Way to Implement Serializable Singleton h3pre codepublic enum Elvis INSTANCE private final String favoriteSongs Hound Dog Heartbreak Hotel public void printFavorites System out println Arrays toString favoriteSongs code pre blockquotep strongEdit strong An href http www ddj com java 208403883 pgno rel noreferrer online portion of Effective Java says pblockquote This approach is functionally equivalent to the public field approach except that it is more concise provides the serialization machinery for free and provides an ironclad guarantee against multiple instantiation even in the face of sophisticated serialization or reflection attacks While this approach has yet to be widely adopted stronga single element enum type is the best way to implement singleton strong blockquote Is there way to implement this also when need to pass some parameters to the constructor Let say values from the config or dependency injection,1,NULL,Add array of elements to dom javascript pI have codediv code created in HTML and want to add all of them into codediv code wrapper created in JavaScript tried looping through the codediv code via codefor in code loop then append the codediv code as child of the codewrapper code ppFor some reason the codefor code loop changes the codediv code order and doesn append all of them in codewrapper code How can add all codediv code to codewrapper code keeping the HTML order using JavaScript pp Please don post JQuery answers because that isn the question want JavaScript answers strongonly strong pp href https jsfiddle net byd9fer3 rel nofollow h3JSFiddle h3 pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar wrapper document createElement div xD myClass document getElementsByClassName myClass xD xD myClass parentElement appendChild wrapper xD wrapper id wrapper xD xD for var key in myClass xD if myClass hasOwnProperty key continue xD xD wrapper appendChild myClass key xD code pre xD pre class snippet code css lang css prettyprint override code wrapper xD border 2px solid green xD color brown xD code pre xD pre class snippet code html lang html prettyprint override code lt div class myClass gt First lt div gt xD lt div class myClass gt Second lt div gt xD lt div class myClass gt Third lt div gt xD lt div class myClass gt Fourth lt div gt xD lt div class myClass gt Fifth lt div gt code pre xD div xD div xD pLook at your for loop step by step ppre code1 myClass First Second Third Fourth Fifth wrapper key 02 myClass Second Third Fourth Fifth wrapper First key code prepNow instead of Second you ll take Third because key is but you ll need to take the item at index This also gives the fix always take the item at position pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar wrapper document createElement div xD myClass document getElementsByClassName myClass xD xD myClass parentElement appendChild wrapper xD wrapper id wrapper xD xD for var lt myClass length xD wrapper appendChild myClass xD code pre xD pre class snippet code css lang css prettyprint override code wrapper xD border 2px solid green xD color brown xD code pre xD pre class snippet code html lang html prettyprint override code lt div class myClass gt First lt div gt xD lt div class myClass gt Second lt div gt xD lt div class myClass gt Third lt div gt xD lt div class myClass gt Fourth lt div gt xD lt div class myClass gt Fifth lt div gt code pre xD div xD div xD 26637,2007,838719,Yearling Caucus Notable Question Curious Popular Question Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 26638,28117,11490,Good Answer,NULL,NULL,0,NULL,NULL 26639,897104,968272,Famous Question Critic,NULL,NULL,0,NULL,NULL 26640,41463,330721,NULL,NULL,NULL,0,NULL,NULL 26641,74588,1108237,Informed,NULL,NULL,0,NULL,NULL 26642,365136,820821,NULL,NULL,NULL,0,NULL,NULL 26643,178952,695215,NULL,NULL,NULL,0,NULL,NULL 26644,154556,990200,NULL,NULL,NULL,0,NULL,NULL 26645,106842,1050730,Teacher Supporter Editor Informed Excavator Necromancer,NULL,NULL,0,NULL,NULL 26646,100535,291078,NULL,NULL,NULL,0,NULL,NULL 26647,34815,1395856,NULL,NULL,NULL,0,NULL,NULL 26648,1332640,946487,Yearling Popular Question Caucus Good Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 26649,189179,1460905,Popular Question Announcer Notable Question Yearling Popular Question Nice Answer Enlightened Civic Duty Custodian Nice Answer Enlightened Custodian Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Answer Enlightened Notable Question Citizen Patrol Documentation User Census Necromancer Popular Question Self-Learner Necromancer Yearling,NULL,NULL,0,NULL,NULL 26650,130575,117704,Popular Question Nice Answer Yearling Nice Question Famous Question Good Question Yearling Nice Answer Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26651,133535,981852,Autobiographer Informed Editor Revival Necromancer Nice Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 26652,93733,1077581,Necromancer Nice Answer Supporter,NULL,NULL,0,NULL,NULL 26653,547026,1135077,NULL,NULL,NULL,0,NULL,NULL 26654,315686,900811,NULL,NULL,NULL,0,NULL,NULL 26655,278103,851313,Informed Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26656,365531,277454,NULL,NULL,NULL,0,NULL,NULL 26657,587152,287518,Supporter,NULL,NULL,0,NULL,NULL 26658,1027823,534032,Notable Question,NULL,NULL,0,NULL,NULL 26659,165240,897815,NULL,NULL,NULL,0,NULL,NULL 26660,49872,687109,Teacher,NULL,NULL,0,NULL,NULL 26661,340510,921135,Teacher,NULL,NULL,0,NULL,NULL 26662,380345,274483,Nice Answer Scholar Necromancer Popular Question Announcer Revival Necromancer Notable Question Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 26663,165312,326840,Custodian Popular Question Caucus,NULL,NULL,0,NULL,NULL 26664,73023,417563,NULL,NULL,NULL,0,NULL,NULL 26665,1456674,1237597,Popular Question,NULL,NULL,0,NULL,NULL 26666,35331,1086471,Tumbleweed Scholar Student,NULL,NULL,0,NULL,NULL 26667,533806,343262,NULL,NULL,NULL,0,NULL,NULL 26668,1944906,437879,Popular Question Revival Popular Question Yearling Notable Question Caucus Yearling Yearling Popular Question Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Mortarboard Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26669,8427,244058,Yearling Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Yearling symfony Necromancer Announcer Good Answer Nice Answer Yearling Caucus Guru,NULL,NULL,0,NULL,NULL 26670,2036,171209,Nice Answer Enlightened cakephp-3.0 Nice Answer Enlightened Popular Question Nice Answer Custodian Popular Question Disciplined cakephp Notable Question Excavator Nice Answer Great Question Yearling Popular Question Cleanup Nice Answer Informed Popular Question Nice Question Popular Question Good Answer Notable Question Popular Question Nice Question Notable Question Yearling Documentation User Popular Question Notable Question Good Answer Revival Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 26671,181717,688131,NULL,NULL,NULL,0,NULL,NULL 26672,3036,438462,NULL,NULL,NULL,0,NULL,NULL 26673,823352,619753,Nice Question,NULL,NULL,0,NULL,NULL 26674,393797,1466505,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26675,242600,1168848,Popular Question Yearling Popular Question Popular Question Popular Question Yearling Favorite Question Great Question Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Good Question Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 26676,847329,1339548,NULL,NULL,NULL,0,NULL,NULL 26677,858217,895627,NULL,NULL,NULL,0,NULL,NULL 26678,77518,1454011,Investor Altruist Revival Scholar,NULL,NULL,0,NULL,NULL 26679,13097,62528,NULL,NULL,NULL,0,NULL,NULL 26680,191190,611175,Yearling Revival Necromancer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 26681,923444,856237,NULL,NULL,NULL,0,NULL,NULL 26682,433263,1317055,Notable Question Critic,NULL,NULL,0,NULL,NULL 26683,7181,432641,Informed,NULL,NULL,0,NULL,NULL 26684,423712,1130064,NULL,NULL,NULL,0,NULL,NULL 26685,105161,1542513,NULL,NULL,NULL,0,NULL,NULL 26686,45872,806520,NULL,NULL,NULL,0,NULL,NULL 26687,211966,851498,Nice Answer Populist Good Question Guru Notable Question Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Popular Question Guru Popular Question Guru Yearling Great Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Enlightened Guru Notable Question Notable Question Nice Answer Yearling Caucus Announcer Guru Nice Answer Great Answer Census Nice Question Notable Question Announcer Nice Answer Good Answer Popular Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26688,216367,395122,Revival Yearling Notable Question Necromancer Popular Question Nice Answer Famous Question Nice Question,NULL,NULL,0,NULL,NULL 26689,60485,776654,Yearling Notable Question Curious Yearling Notable Question,NULL,NULL,0,NULL,NULL 26690,854023,98596,Yearling Commentator Good Answer Yearling Caucus Constituent Civic Duty Census Notable Question Caucus Constituent Great Answer Yearling,NULL,NULL,0,NULL,NULL 26691,23336,432696,Necromancer Nice Answer Enlightened Tag Editor Nice Answer Yearling Necromancer Caucus Constituent Census Nice Answer Necromancer Caucus Constituent Yearling Documentation User Nice Answer Enlightened Census Nice Answer Good Answer Caucus Constituent Civic Duty Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 26692,905082,118841,NULL,NULL,NULL,0,NULL,NULL 26693,136193,1139912,NULL,NULL,NULL,0,NULL,NULL 26694,280980,716403,NULL,NULL,NULL,0,NULL,NULL 26695,421859,318442,Good Question Popular Question Popular Question Famous Question Yearling Nice Question Critic Nice Question Yearling Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 26696,27309,212479,Popular Question,NULL,NULL,0,NULL,NULL 26697,539023,323433,Nice Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 26698,421047,199112,Popular Question,NULL,NULL,0,NULL,NULL 26699,886178,601625,NULL,NULL,NULL,0,NULL,NULL 26700,23233,951414,Organizer Yearling Revival Announcer Revival Revival Announcer Yearling Necromancer Yearling Tenacious Necromancer Citizen Patrol Caucus Yearling Unsung Hero Custodian go Taxonomist Yearling Announcer,NULL,NULL,0,NULL,NULL 26701,220035,563615,Teacher,NULL,NULL,0,NULL,NULL 26702,433930,655643,NULL,NULL,NULL,0,NULL,NULL 26703,155294,1318983,NULL,NULL,NULL,0,NULL,NULL 26704,26192,152985,Necromancer Critic Caucus Yearling Nice Answer Census Nice Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 26705,2304167,559552,Good Question Famous Question Guru Enlightened Yearling Caucus Yearling Caucus Good Answer Great Answer,NULL,NULL,0,NULL,NULL 26706,18690,797376,Announcer Yearling Yearling Nice Answer Popular Question Organizer,NULL,NULL,0,NULL,NULL 26707,395492,170407,Self-Learner Popular Question Nice Question Good Answer Popular Question Popular Question Announcer Yearling Notable Question Popular Question Yearling Popular Question Popular Question Nice Answer Yearling,NULL,pHere much more simplified example including binding convention so that codePasswordBox code binding in Caliburn Micro Just Works trade ppre codepublic static class PasswordBoxHelper public static readonly DependencyProperty BoundPasswordProperty DependencyProperty RegisterAttached BoundPassword typeof string typeof PasswordBoxHelper new FrameworkPropertyMetadata string Empty OnBoundPasswordChanged public static string GetBoundPassword DependencyObject var box as PasswordBox if box null this funny little dance here ensures that we ve hooked the PasswordChanged event once and only once box PasswordChanged PasswordChanged box PasswordChanged PasswordChanged return string GetValue BoundPasswordProperty public static void SetBoundPassword DependencyObject string value if string Equals value GetBoundPassword return and this is how we prevent infinite recursion SetValue BoundPasswordProperty value private static void OnBoundPasswordChanged DependencyObject DependencyPropertyChangedEventArgs var box as PasswordBox if box null return box Password GetBoundPassword private static void PasswordChanged object sender RoutedEventArgs PasswordBox password sender as PasswordBox SetBoundPassword password password Password set cursor past the last character in the password box password GetType GetMethod Select BindingFlags Instance BindingFlags NonPublic Invoke password new object password Password Length code prepThen in your bootstrapper ppre codepublic sealed class Bootstrapper BootstrapperBase public Bootstrapper Initialize ConventionManager AddElementConvention lt PasswordBox gt PasswordBoxHelper BoundPasswordProperty Password PasswordChanged other bootstrapper stuff here code pre Only for unfortunate definitions of awesome suppose thanks,0,NULL,NULL 26708,350296,401944,NULL,NULL,NULL,0,NULL,NULL 26709,130666,796189,Popular Question,NULL,NULL,0,NULL,NULL 26710,36020,179838,Popular Question Critic,NULL,NULL,0,NULL,NULL 26711,141252,793136,NULL,NULL,NULL,0,NULL,NULL 26712,464465,951801,Popular Question Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 26713,374463,193606,Commentator Caucus Popular Question Critic Announcer,NULL,NULL,0,NULL,NULL 26714,68599,981986,NULL,NULL,NULL,0,NULL,NULL 26715,860420,485209,Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26716,574633,1347930,Scholar,NULL,NULL,0,NULL,NULL 26717,286203,1185244,NULL,NULL,NULL,0,NULL,NULL 26718,665486,1126126,Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 26719,237065,987031,Excavator Commentator Informed Autobiographer,NULL,NULL,0,NULL,NULL 26720,53088,1223012,NULL,NULL,NULL,0,NULL,NULL 26721,332628,1494695,Tumbleweed Curious Yearling Informed Promoter Benefactor Nice Answer Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 26722,512863,357728,NULL,NULL,NULL,0,NULL,NULL 26723,1104821,407256,Notable Question Yearling,NULL,NULL,0,NULL,NULL 26724,68187,734652,NULL,NULL,NULL,0,NULL,NULL 26725,507073,409921,NULL,NULL,NULL,0,NULL,NULL 26726,779979,51917,NULL,NULL,NULL,0,NULL,NULL 26727,52310,962552,NULL,NULL,NULL,0,NULL,NULL 26728,301063,1094549,NULL,NULL,NULL,0,NULL,NULL 26729,6245990,890984,NULL,NULL,NULL,0,NULL,NULL 26730,309351,1215116,NULL,NULL,NULL,0,NULL,NULL 26731,1197884,280924,Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Good Answer Nice Question Famous Question Famous Question Nice Answer Notable Question Famous Question Famous Question Notable Question Nice Question Popular Question Good Question Notable Question Notable Question Famous Question Stellar Question Yearling Popular Question Notable Question Famous Question Great Question Popular Question Popular Question Notable Question Announcer Nice Question Notable Question Good Question Good Question Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Announcer Nice Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 26732,919989,1481963,Famous Question,NULL,NULL,0,NULL,NULL 26733,206160,730490,NULL,NULL,NULL,0,NULL,NULL 26734,20294,280850,NULL,NULL,NULL,0,NULL,NULL 26735,224131,1030043,NULL,NULL,NULL,0,NULL,NULL 26736,92228,882862,Great Question Good Question Notable Question Nice Answer Enlightened Notable Question Famous Question Self-Learner Popular Question Yearling Famous Question Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Caucus Yearling Inquisitive Popular Question Documentation User Popular Question Necromancer Favorite Question Notable Question Nice Answer Popular Question Popular Question Popular Question Notable Question Good Answer Yearling Necromancer Popular Question Good Question,NULL,NULL,0,NULL,NULL 26737,16223,357621,Notable Question,NULL,NULL,0,NULL,NULL 26738,201570,1194291,Informed,NULL,NULL,0,NULL,NULL 26739,68830,1148603,NULL,NULL,NULL,0,NULL,NULL 26740,37962,247482,Yearling Nice Question Famous Question Necromancer Necromancer Famous Question Necromancer Popular Question Yearling Inquisitive Good Answer Necromancer Nice Answer Necromancer Announcer Nice Question Necromancer Nice Answer Famous Question Popular Question Yearling Revival python Revival Popular Question Guru Good Question Good Answer,NULL,pYour ssh command will test for more than if the server is reachable for it to work the ssh server must be running and everything must be right with authentication ppTo just see if the servers are up how about just simple ping ppre codeping c1 W1 ip addr amp amp echo server is up echo server is down code pre your ping will also test for more than if the server is reachable you could use netcat like detailed in my answer,0,NULL,NULL 26741,149125,1263161,NULL,NULL,NULL,0,NULL,NULL 26742,59161,716029,Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 26743,163157,1042214,Editor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26744,180578,1122512,NULL,NULL,NULL,0,NULL,NULL 26745,165109,534776,Commentator Yearling Popular Question Nice Question Notable Question Yearling Good Question Famous Question Famous Question Necromancer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 26746,53568,30275,NULL,NULL,NULL,0,NULL,NULL 26747,938555,1492115,Notable Question Curious Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26748,72379,481985,NULL,NULL,NULL,0,NULL,NULL 26749,62382,309083,Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26750,210689,334862,Proofreader Custodian Announcer Reviewer Announcer Nice Question Yearling Popular Question Announcer Informed Quorum Inquisitive Strunk & White Notable Question Steward Notable Question Benefactor Popular Question Caucus Popular Question Popular Question Nice Answer Good Question Yearling Announcer Nice Question Popular Question Popular Question Announcer Notable Question Popular Question Yearling Notable Question Deputy Peer Pressure Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26751,417058,640795,NULL,NULL,NULL,0,NULL,NULL 26752,161191,1308305,NULL,NULL,NULL,0,NULL,NULL 26753,111302,471840,Reviewer Student Yearling Popular Question Custodian Nice Answer Citizen Patrol Steward Necromancer Good Answer Caucus Constituent Nice Answer Documentation User Yearling Explainer Caucus Constituent Tag Editor Taxonomist Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 26754,672329,611104,NULL,NULL,NULL,0,NULL,NULL 26755,202668,373838,NULL,NULL,NULL,0,NULL,NULL 26756,910042,90263,Nice Answer Popular Question Yearling Good Answer Self-Learner Custodian Tag Editor Nice Question Famous Question Yearling Taxonomist Announcer Good Question Nice Answer Nice Answer Necromancer Yearling Famous Question Benefactor Great Answer,NULL,NULL,0,NULL,NULL 26757,178593,955015,NULL,NULL,NULL,0,NULL,NULL 26758,384953,1392323,Caucus Constituent Famous Question Yearling Census Nice Answer Caucus,NULL,NULL,0,NULL,NULL 26759,254525,103225,Popular Question Notable Question Popular Question Popular Question Nice Question Nice Answer Stellar Question Yearling Good Answer Good Question Nice Answer Nice Answer Nice Answer Good Question Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Yearling Nice Answer Good Answer Favorite Question Nice Question Nice Answer Enlightened Notable Question Nice Answer Great Answer Yearling Stellar Question Popular Question Nice Answer Nice Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 26760,141328,162444,NULL,NULL,NULL,0,NULL,NULL 26761,748164,444343,NULL,NULL,NULL,0,NULL,NULL 26762,1005786,444343,NULL,NULL,NULL,0,NULL,NULL 26763,430393,449909,Popular Question,NULL,NULL,0,NULL,NULL 26764,387538,816435,NULL,NULL,NULL,0,NULL,NULL 26765,1003971,388675,NULL,NULL,NULL,0,NULL,NULL 26766,1539673,226874,NULL,NULL,NULL,0,NULL,NULL 26767,43078,287216,NULL,NULL,NULL,0,NULL,NULL 26768,183464,42671,NULL,NULL,NULL,0,NULL,NULL 26769,911347,392670,NULL,NULL,NULL,0,NULL,NULL 26770,150419,328781,Popular Question,NULL,NULL,0,NULL,NULL 26771,355164,387279,Nice Answer,NULL,NULL,0,NULL,NULL 26772,1352114,1111613,NULL,NULL,NULL,0,NULL,NULL 26773,308858,491696,NULL,NULL,NULL,0,NULL,NULL 26774,9941,1127022,NULL,NULL,NULL,0,NULL,NULL 26775,1023335,980450,NULL,NULL,NULL,0,NULL,NULL 26776,872683,725344,NULL,NULL,NULL,0,NULL,NULL 26777,1362109,1383464,NULL,NULL,NULL,0,NULL,NULL 26778,877,112300,Popular Question Announcer,NULL,NULL,0,NULL,NULL 26779,169840,1176177,NULL,NULL,NULL,0,NULL,NULL 26780,19945,1045760,Promoter Revival Popular Question Excavator,NULL,NULL,0,NULL,NULL 26781,779180,451469,NULL,NULL,NULL,0,NULL,NULL 26782,1052342,808102,Commentator,NULL,NULL,0,NULL,NULL 26783,1514127,365245,Autobiographer,NULL,NULL,0,NULL,NULL 26784,374070,1214495,Teacher,NULL,NULL,0,NULL,NULL 26785,176450,1160530,Popular Question,NULL,NULL,0,NULL,NULL 26786,202917,1053851,NULL,NULL,NULL,0,NULL,NULL 26787,835523,1523413,NULL,NULL,NULL,0,NULL,NULL 26788,1511947,555780,NULL,NULL,NULL,0,NULL,NULL 26789,176764,1033215,Caucus Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 26790,665325,445450,Revival Yearling Great Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 26791,6967002,997314,NULL,NULL,NULL,0,NULL,NULL 26792,435603,1415644,Necromancer,NULL,NULL,0,NULL,NULL 26793,1400762,183936,NULL,NULL,NULL,0,NULL,NULL 26794,19550,560575,NULL,NULL,NULL,0,NULL,NULL 26795,79582,133981,NULL,NULL,NULL,0,NULL,NULL 26796,576583,453176,Yearling Notable Question Popular Question Custodian Informed Autobiographer Yearling c# Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26797,12619,57334,Yearling Notable Question Custodian Custodian Autobiographer Revival Nice Answer Enlightened Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 26798,208722,1291469,Announcer Announcer,NULL,NULL,0,NULL,NULL 26799,540664,1044984,Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Custodian Organizer Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Documentation User Yearling Popular Question Popular Question Popular Question Famous Question Popular Question Good Question Nice Question Notable Question Notable Question Notable Question,NULL,NULL,1,Using Py BuildValue to create list of tuples in python pyobject pI am trying to use codePy BuildValue code to create list of tuples in ppWhat am trying to build would look like this ppre code code prepI don know the amount of tuples to create at compilation so can use some static amount here ppEssentially using codePy BuildValue code with one tuple here is what it would look like for the code ppre codePyObject Py BuildValue siis name num1 num2 summary code prepBut that would only be for one tuple need to have multiple tuples in the list that could add via for loop How can accomplish this,NULL 26800,8586,652940,NULL,NULL,NULL,0,NULL,NULL 26801,169835,165448,Revival Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Good Question Popular Question Notable Question Yearling Famous Question Notable Question Nice Question Popular Question Notable Question Notable Question Caucus Notable Question Constituent Notable Question Famous Question Necromancer Famous Question Famous Question Famous Question Famous Question Good Question Popular Question Popular Question Popular Question Good Question Necromancer Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Good Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Custodian Popular Question Necromancer Nice Question Custodian Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Taxonomist Famous Question Notable Question Notable Question Notable Question Nice Question Yearling Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 26802,50419,1515063,NULL,NULL,NULL,0,NULL,NULL 26803,746867,612785,Editor,NULL,NULL,0,NULL,NULL 26804,919180,622037,NULL,NULL,NULL,0,NULL,NULL 26805,1183963,1492746,NULL,NULL,NULL,0,NULL,NULL 26806,68597,86949,Yearling Popular Question Caucus Constituent Yearling Great Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 26807,1080773,216248,Nice Answer Yearling Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 26808,202676,1142043,Good Answer Yearling,NULL,NULL,0,NULL,NULL 26809,1518663,1419083,NULL,NULL,NULL,0,NULL,NULL 26810,109545,128501,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 26811,529077,479099,NULL,NULL,NULL,0,NULL,NULL 26812,191743,993082,NULL,NULL,NULL,0,NULL,NULL 26813,35514,793200,NULL,NULL,NULL,0,NULL,NULL 26814,17654,512782,NULL,NULL,NULL,0,NULL,NULL 26815,579424,162617,NULL,NULL,NULL,0,NULL,NULL 26816,786553,544115,NULL,NULL,NULL,0,NULL,NULL 26817,47399,1089026,Good Question Custodian Guru Yearling Popular Question Nice Answer Necromancer Popular Question Yearling Announcer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 26818,107364,525401,Necromancer Necromancer Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 26819,42650,1350311,NULL,NULL,NULL,0,NULL,NULL 26820,475722,439764,NULL,NULL,NULL,0,NULL,NULL 26821,619563,284884,NULL,NULL,NULL,0,NULL,NULL 26822,728522,294814,Popular Question Popular Question Popular Question Nice Question Yearling Inquisitive Informed Popular Question Popular Question Notable Question Popular Question Enthusiast Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26823,128965,927009,NULL,NULL,NULL,0,NULL,NULL 26824,139995,613124,NULL,NULL,NULL,0,NULL,NULL 26825,264962,1085312,NULL,NULL,NULL,0,NULL,NULL 26826,204774,741722,Necromancer,NULL,NULL,0,NULL,NULL 26827,334734,1270219,Notable Question Yearling Good Answer Good Answer Yearling Yearling Guru Good Answer Popular Question,NULL,NULL,0,NULL,NULL 26828,6554220,214256,NULL,NULL,NULL,0,NULL,NULL 26829,355053,214256,NULL,NULL,NULL,0,NULL,NULL 26830,1140,520462,NULL,NULL,NULL,0,NULL,NULL 26831,1373465,842130,Teacher Popular Question,NULL,NULL,0,NULL,NULL 26832,778469,173934,Nice Answer Nice Answer Yearling Good Answer Notable Question Guru Popular Question Yearling php Yearling,NULL,NULL,0,NULL,NULL 26833,100789,776483,NULL,NULL,NULL,0,NULL,NULL 26834,253339,1288649,NULL,NULL,NULL,0,NULL,NULL 26835,332542,66503,NULL,NULL,NULL,0,NULL,NULL 26836,99210,762270,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26837,186489,474788,NULL,NULL,NULL,0,NULL,NULL 26838,515225,1434062,NULL,NULL,NULL,0,NULL,NULL 26839,1505348,100009,Yearling,NULL,NULL,0,NULL,NULL 26840,1349210,1371915,Popular Question,NULL,NULL,0,NULL,NULL 26841,1074008,831614,Famous Question Notable Question Favorite Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 26842,894596,1460991,Notable Question Popular Question Curious Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26843,121910,177467,Yearling Popular Question Announcer Yearling Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 26844,13524,272958,Yearling Popular Question Quorum Nice Answer Popular Question Notable Question Good Answer Necromancer Notable Question Yearling Nice Answer Popular Question Nice Answer Nice Question Nice Answer Revival Notable Question Necromancer Yearling Great Answer Synonymizer,NULL,pThere are number of cases you re not handling here The best bet is to start by building the promise as state machine ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers code prepNow lets define simple helper to use through the rest of our implementation ppre code function that returns then if value is promise otherwise null function getThen value if result amp amp typeof result object typeof result function var then value then if typeof then function return then return null code prepNext we need to consider each of the transformations that can occur ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error code prepNote how coderesolve code can receive Promise as its argument but Promise can never be fulfilled with another Promise So we have to handle this special case ppNote also that Promise can only ever be fulfilled rejected once We also have the problem that third party Promise may misbehave and we should guard our code against that For this reason haven just called coderesult then resolve reject code from within coderesolve code Instead split that into separate function ppre code Take potentially misbehaving resolver function and make sure onFulfilled and onRejected are only called once Makes no guarantees about asynchrony function doResolve fn onFulfilled onRejected var done false try fn function value if done return done true onFulfilled value function reason if done return done true onRejected reason catch ex if done return done true onRejected ex code prepSo now we have completed state machine but no way to observe or trigger the changes in state Lets start by adding way to trigger the state changes by passing in resolver function ppre codefunction Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error doResolve fn resolve reject code prepAs you can see we re use codedoResolve code because we have another un trusted resolver The codefn code might call coderesolve code or codereject code multiple times and it might throw an error We need to handle all of these cases and that what codedoResolve code does ppWe now have the completed state machine but we haven exposed any information about what state it is in Lets try adding code done onFulfilled onRejected code method that is just like code then code except that it does not return Promise and does not handle errors thrown by codeonFulfilled code and codeonRejected code ppre codevar PENDING var FULFILLED var REJECTED function Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result handlers forEach handle handlers null catch reject function reject error state REJECTED value error handlers forEach handle handlers null function handle handler if state PENDING handlers push handler else if state FULFILLED amp amp typeof handler onFulfilled function handler onFulfilled value if state REJECTED amp amp typeof handler onRejected function handler onRejected value this done function onFulfilled onRejected setTimeout function ensure we are always asynchronous handle onFulfilled onFulfilled onRejected onRejected doResolve fn resolve reject code prepNote how we must handle the case of code done code being called both before and after the Promise becomes fulfilled rejected ppWe almost have complete promise implementation but as you already noticed when building your own implementation we need code then code method that returns Promise ppWe can build this easilly out of code done code ppre codethis then function onFulfilled onRejected var self this return new Promise function resolve reject return self done function result if typeof onFulfilled function try return resolve onFulfilled result catch ex return reject ex else return resolve result function error if typeof onRejected function try return resolve onRejected error catch ex return reject ex else return reject error code prepNote here how we get the thing you were struggling with for free now because coderesolve code accepts Promise and waits for it to be resolved pp strongN strong haven tested this Promise implementation although it is correct to the best of my knowledge You should test any implementation you build against the Promises test suite href https github com promises aplus promises tests rel noreferrer https github com promises aplus promises tests and may also find the Promises spec href https github com promises aplus promises spec rel noreferrer https github com promises aplus promises spec useful in figuring out what the correct behavior is for any specific part of the algorithm As final resource href https github com then promise blob master core js rel noreferrer promise is very minimal implementation of the Promise spec then is method on promise instances It used to extract the value of the promise by registering handlers and to transform the promise by returning new promise It very similar to Array prototype map except for promises pThere are number of cases you re not handling here The best bet is to start by building the promise as state machine ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers code prepNow lets define simple helper to use through the rest of our implementation ppre code function that returns then if value is promise otherwise null function getThen value if result amp amp typeof result object typeof result function var then value then if typeof then function return then return null code prepNext we need to consider each of the transformations that can occur ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error code prepNote how coderesolve code can receive Promise as its argument but Promise can never be fulfilled with another Promise So we have to handle this special case ppNote also that Promise can only ever be fulfilled rejected once We also have the problem that third party Promise may misbehave and we should guard our code against that For this reason haven just called coderesult then resolve reject code from within coderesolve code Instead split that into separate function ppre code Take potentially misbehaving resolver function and make sure onFulfilled and onRejected are only called once Makes no guarantees about asynchrony function doResolve fn onFulfilled onRejected var done false try fn function value if done return done true onFulfilled value function reason if done return done true onRejected reason catch ex if done return done true onRejected ex code prepSo now we have completed state machine but no way to observe or trigger the changes in state Lets start by adding way to trigger the state changes by passing in resolver function ppre codefunction Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error doResolve fn resolve reject code prepAs you can see we re use codedoResolve code because we have another un trusted resolver The codefn code might call coderesolve code or codereject code multiple times and it might throw an error We need to handle all of these cases and that what codedoResolve code does ppWe now have the completed state machine but we haven exposed any information about what state it is in Lets try adding code done onFulfilled onRejected code method that is just like code then code except that it does not return Promise and does not handle errors thrown by codeonFulfilled code and codeonRejected code ppre codevar PENDING var FULFILLED var REJECTED function Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result handlers forEach handle handlers null catch reject function reject error state REJECTED value error handlers forEach handle handlers null function handle handler if state PENDING handlers push handler else if state FULFILLED amp amp typeof handler onFulfilled function handler onFulfilled value if state REJECTED amp amp typeof handler onRejected function handler onRejected value this done function onFulfilled onRejected setTimeout function ensure we are always asynchronous handle onFulfilled onFulfilled onRejected onRejected doResolve fn resolve reject code prepNote how we must handle the case of code done code being called both before and after the Promise becomes fulfilled rejected ppWe almost have complete promise implementation but as you already noticed when building your own implementation we need code then code method that returns Promise ppWe can build this easilly out of code done code ppre codethis then function onFulfilled onRejected var self this return new Promise function resolve reject return self done function result if typeof onFulfilled function try return resolve onFulfilled result catch ex return reject ex else return resolve result function error if typeof onRejected function try return resolve onRejected error catch ex return reject ex else return reject error code prepNote here how we get the thing you were struggling with for free now because coderesolve code accepts Promise and waits for it to be resolved pp strongN strong haven tested this Promise implementation although it is correct to the best of my knowledge You should test any implementation you build against the Promises test suite href https github com promises aplus promises tests rel noreferrer https github com promises aplus promises tests and may also find the Promises spec href https github com promises aplus promises spec rel noreferrer https github com promises aplus promises spec useful in figuring out what the correct behavior is for any specific part of the algorithm As final resource href https github com then promise blob master core js rel noreferrer promise is very minimal implementation of the Promise spec It up to the underlying asynchronous operation to call resolve or reject at the appropriate time once the operation has completed doResolve is the user supplied function in which the actual work is done hence it is passed the resolve and reject fns Promises are typically used as an abstraction over callbacks or event emitters etc so it would depend on the underlying operation as to exactly what this is https www promisejs org guides you through how you would use this as an abstraction over fs readFile from node js pThere are number of cases you re not handling here The best bet is to start by building the promise as state machine ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers code prepNow lets define simple helper to use through the rest of our implementation ppre code function that returns then if value is promise otherwise null function getThen value if result amp amp typeof result object typeof result function var then value then if typeof then function return then return null code prepNext we need to consider each of the transformations that can occur ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error code prepNote how coderesolve code can receive Promise as its argument but Promise can never be fulfilled with another Promise So we have to handle this special case ppNote also that Promise can only ever be fulfilled rejected once We also have the problem that third party Promise may misbehave and we should guard our code against that For this reason haven just called coderesult then resolve reject code from within coderesolve code Instead split that into separate function ppre code Take potentially misbehaving resolver function and make sure onFulfilled and onRejected are only called once Makes no guarantees about asynchrony function doResolve fn onFulfilled onRejected var done false try fn function value if done return done true onFulfilled value function reason if done return done true onRejected reason catch ex if done return done true onRejected ex code prepSo now we have completed state machine but no way to observe or trigger the changes in state Lets start by adding way to trigger the state changes by passing in resolver function ppre codefunction Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error doResolve fn resolve reject code prepAs you can see we re use codedoResolve code because we have another un trusted resolver The codefn code might call coderesolve code or codereject code multiple times and it might throw an error We need to handle all of these cases and that what codedoResolve code does ppWe now have the completed state machine but we haven exposed any information about what state it is in Lets try adding code done onFulfilled onRejected code method that is just like code then code except that it does not return Promise and does not handle errors thrown by codeonFulfilled code and codeonRejected code ppre codevar PENDING var FULFILLED var REJECTED function Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result handlers forEach handle handlers null catch reject function reject error state REJECTED value error handlers forEach handle handlers null function handle handler if state PENDING handlers push handler else if state FULFILLED amp amp typeof handler onFulfilled function handler onFulfilled value if state REJECTED amp amp typeof handler onRejected function handler onRejected value this done function onFulfilled onRejected setTimeout function ensure we are always asynchronous handle onFulfilled onFulfilled onRejected onRejected doResolve fn resolve reject code prepNote how we must handle the case of code done code being called both before and after the Promise becomes fulfilled rejected ppWe almost have complete promise implementation but as you already noticed when building your own implementation we need code then code method that returns Promise ppWe can build this easilly out of code done code ppre codethis then function onFulfilled onRejected var self this return new Promise function resolve reject return self done function result if typeof onFulfilled function try return resolve onFulfilled result catch ex return reject ex else return resolve result function error if typeof onRejected function try return resolve onRejected error catch ex return reject ex else return reject error code prepNote here how we get the thing you were struggling with for free now because coderesolve code accepts Promise and waits for it to be resolved pp strongN strong haven tested this Promise implementation although it is correct to the best of my knowledge You should test any implementation you build against the Promises test suite href https github com promises aplus promises tests rel noreferrer https github com promises aplus promises tests and may also find the Promises spec href https github com promises aplus promises spec rel noreferrer https github com promises aplus promises spec useful in figuring out what the correct behavior is for any specific part of the algorithm As final resource href https github com then promise blob master core js rel noreferrer promise is very minimal implementation of the Promise spec The value passed to resolve could be misbehaving promise get then throw new Error this is thrown when getting the then property pThere are number of cases you re not handling here The best bet is to start by building the promise as state machine ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers code prepNow lets define simple helper to use through the rest of our implementation ppre code function that returns then if value is promise otherwise null function getThen value if result amp amp typeof result object typeof result function var then value then if typeof then function return then return null code prepNext we need to consider each of the transformations that can occur ppre codevar PENDING var FULFILLED var REJECTED function Promise store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error code prepNote how coderesolve code can receive Promise as its argument but Promise can never be fulfilled with another Promise So we have to handle this special case ppNote also that Promise can only ever be fulfilled rejected once We also have the problem that third party Promise may misbehave and we should guard our code against that For this reason haven just called coderesult then resolve reject code from within coderesolve code Instead split that into separate function ppre code Take potentially misbehaving resolver function and make sure onFulfilled and onRejected are only called once Makes no guarantees about asynchrony function doResolve fn onFulfilled onRejected var done false try fn function value if done return done true onFulfilled value function reason if done return done true onRejected reason catch ex if done return done true onRejected ex code prepSo now we have completed state machine but no way to observe or trigger the changes in state Lets start by adding way to trigger the state changes by passing in resolver function ppre codefunction Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result catch reject function reject error state REJECTED value error doResolve fn resolve reject code prepAs you can see we re use codedoResolve code because we have another un trusted resolver The codefn code might call coderesolve code or codereject code multiple times and it might throw an error We need to handle all of these cases and that what codedoResolve code does ppWe now have the completed state machine but we haven exposed any information about what state it is in Lets try adding code done onFulfilled onRejected code method that is just like code then code except that it does not return Promise and does not handle errors thrown by codeonFulfilled code and codeonRejected code ppre codevar PENDING var FULFILLED var REJECTED function Promise fn if typeof this object throw new TypeError Promises must be constructed via new if typeof fn function throw new TypeError fn must be function store state which can be PENDING FULFILLED or REJECTED var state PENDING store value once FULFILLED or REJECTED var value null store sucess amp failure handlers var handlers function resolve result try var then getThen result if then doResolve then bind result resolve reject return state FULFILLED value result handlers forEach handle handlers null catch reject function reject error state REJECTED value error handlers forEach handle handlers null function handle handler if state PENDING handlers push handler else if state FULFILLED amp amp typeof handler onFulfilled function handler onFulfilled value if state REJECTED amp amp typeof handler onRejected function handler onRejected value this done function onFulfilled onRejected setTimeout function ensure we are always asynchronous handle onFulfilled onFulfilled onRejected onRejected doResolve fn resolve reject code prepNote how we must handle the case of code done code being called both before and after the Promise becomes fulfilled rejected ppWe almost have complete promise implementation but as you already noticed when building your own implementation we need code then code method that returns Promise ppWe can build this easilly out of code done code ppre codethis then function onFulfilled onRejected var self this return new Promise function resolve reject return self done function result if typeof onFulfilled function try return resolve onFulfilled result catch ex return reject ex else return resolve result function error if typeof onRejected function try return resolve onRejected error catch ex return reject ex else return reject error code prepNote here how we get the thing you were struggling with for free now because coderesolve code accepts Promise and waits for it to be resolved pp strongN strong haven tested this Promise implementation although it is correct to the best of my knowledge You should test any implementation you build against the Promises test suite href https github com promises aplus promises tests rel noreferrer https github com promises aplus promises tests and may also find the Promises spec href https github com promises aplus promises spec rel noreferrer https github com promises aplus promises spec useful in figuring out what the correct behavior is for any specific part of the algorithm As final resource href https github com then promise blob master core js rel noreferrer promise is very minimal implementation of the Promise spec You may be right about the handlers though this isn well tested implementation,0,NULL,NULL 26845,456815,1281722,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 26846,42417,1422786,Yearling Good Answer,NULL,NULL,0,NULL,NULL 26847,389201,682485,Popular Question Popular Question Notable Question Notable Question Teacher Yearling Citizen Patrol Suffrage Critic Informed Autobiographer Vox Populi Yearling Custodian Custodian Custodian Enthusiast Popular Question Yearling Census Tenacious Yearling Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 26848,1353255,397723,Teacher,NULL,NULL,0,NULL,NULL 26849,261261,341421,NULL,NULL,NULL,0,NULL,NULL 26850,407047,893349,NULL,NULL,NULL,0,NULL,NULL 26851,155863,219617,NULL,NULL,NULL,0,NULL,NULL 26852,14365,753659,NULL,NULL,NULL,0,NULL,NULL 26853,1036439,778408,NULL,NULL,NULL,0,NULL,NULL 26854,687617,843015,NULL,NULL,NULL,0,NULL,NULL 26855,609647,479491,Yearling Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 26856,276543,537364,NULL,NULL,NULL,0,NULL,NULL 26857,474485,758354,NULL,NULL,NULL,0,NULL,NULL 26858,237187,1515117,Famous Question Popular Question Tumbleweed Informed Yearling Custodian Tenacious Caucus Yearling Explainer Yearling Revival Caucus Famous Question Custodian Yearling Caucus Popular Question Good Question,NULL,NULL,0,NULL,NULL 26859,843270,497096,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 26860,263709,265547,Informed,NULL,NULL,0,NULL,NULL 26861,38720,468165,NULL,NULL,NULL,0,NULL,NULL 26862,203589,214198,NULL,NULL,NULL,0,NULL,NULL 26863,267852,147058,Necromancer Tumbleweed Popular Question Revival Yearling Civic Duty Yearling Nice Question Necromancer Popular Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 26864,68933,986576,Teacher Revival,NULL,NULL,0,NULL,NULL 26865,1705559,1122580,NULL,NULL,NULL,0,NULL,NULL 26866,122929,320941,Necromancer,NULL,NULL,0,NULL,NULL 26867,23532,1087970,Student Citizen Patrol,NULL,NULL,0,NULL,NULL 26868,484341,967753,NULL,NULL,NULL,0,NULL,NULL 26869,811713,1406986,Critic Yearling Curious Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 26870,172273,565929,Notable Question,NULL,NULL,0,NULL,NULL 26871,499527,477122,NULL,NULL,NULL,0,NULL,NULL 26872,46493,8675,Necromancer Necromancer Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Populist Curious Good Answer Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 26873,104042,936869,Great Answer Good Answer Nice Answer Famous Question Nice Answer Enlightened Yearling Great Answer Nice Answer Popular Question Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Good Answer Famous Question Good Question Notable Question Good Answer Necromancer Notable Question Nice Question Caucus Popular Question Yearling Custodian Notable Question Good Answer Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 26874,3978001,888698,NULL,NULL,NULL,0,NULL,NULL 26875,1062394,1181798,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 26876,308554,754581,Yearling Necromancer Nice Question Caucus Custodian Nice Answer Yearling Documentation User Good Answer Yearling,NULL,NULL,0,NULL,NULL 26877,83574,1134255,NULL,NULL,NULL,0,NULL,NULL 26878,434939,37532,Necromancer Notable Question Good Answer Nice Question codeigniter Nice Answer Enlightened Nice Question Good Answer Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question php Popular Question Popular Question Good Question Yearling Notable Question Great Answer Notable Question Guru Popular Question Nice Question Great Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 26879,614046,126280,Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Good Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Popular Question Favorite Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Famous Question Favorite Question Nice Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Revival Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Good Answer Necromancer Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Yearling Good Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 26880,1507862,839733,Yearling Necromancer Nice Answer Nice Question Popular Question Citizen Patrol Popular Question Necromancer Yearling Autobiographer Good Answer Popular Question Popular Question Notable Question Famous Question Revival Famous Question Notable Question Necromancer Enthusiast Notable Question Popular Question Custodian Popular Question Announcer Nice Answer Custodian Popular Question Notable Question Necromancer Popular Question Popular Question Revival Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Explainer Popular Question spring Organizer Yearling Tenacious Popular Question Notable Question Popular Question spring-boot Nice Answer Unsung Hero Peer Pressure Revival spring-mvc Necromancer Civic Duty Excavator Popular Question Famous Question Popular Question Fanatic Nice Question Popular Question Necromancer Notable Question Popular Question Notable Question Nice Answer Announcer Notable Question java Announcer Popular Question Announcer Revival Popular Question Cleanup Nice Answer Enlightened Great Answer Announcer Necromancer Nice Answer Notable Question Popular Question Announcer Revival Revival Yearling Necromancer Necromancer Notable Question Revival Popular Question Popular Question Nice Answer Popular Question Popular Question Necromancer Socratic Announcer Popular Question Popular Question Popular Question Popular Question Revival Popular Question Necromancer,NULL,Spring Boot not serving static content spring spring mvc spring boot pI banging my head against the wall for couple of hours now My project is almost finished but can get it to serve static content ppI ve placed folder named codestatic code under codesrc main resources code Inside it have folder named codeimages code When package the app and run it it can find the images have put on that folder ppI ve tried to put the static files in codepublic code coderesources code and codeMETA INF resources code but nothing works ppIf jar tvf app jar can see that the files are inside the jar on the right folder code static images head png code for example but calling codehttp localhost 8080 images head png code all get is code404 code ppAny ideas why spring boot is not finding this using BTW OP my answer is clearly the most popular It be nice if you accepted it that way you show some appreciation for the effort and the question would be rated higher in SO search results think thus allowing people to find it more easily,1,Scala Ordering Int lt invocation fails for reflective method call scala reflection order scalatest mirror pI playing with Scala reflection and ScalaTest ve method defined as follows in an object codeCh2 code codedef isSorted as Array ordered gt Boolean Boolean code ppThe following test fails as described in the comment ppre code Method isSorted should return true for sorted array in val methods Table method isSorted val ru runtimeMirror getClass getClassLoader val mod ru typeOf Ch2 type termSymbol asModule val mm reflectModule mod val obj mm instance val im reflect obj forAll methods String gt val isSortedMethod ru typeOf Ch2 type decl ru TermName asMethod val isSorted im reflectMethod isSortedMethod Fails at runtime with missing parameter type for expanded function isSorted Array Ordering Int lt code prepOf course could replace codeOrdering Int lt code with code Int Int gt lt code and it work but rather use what already provided instead of rolling my own Scala Implicit conversion of Any to Numeric scala sum tuples implicit conversion implicit pI working examples from the book href http rads stackoverflow com amzn click 1449367933 rel nofollow noreferrer Learning Scala and one of the questions asks pblockquote pHow would you add “sum” method on all tuples which returns the sum of all numeric values in tuple For example hi true sum should return blockquotepMy code ppre codeimplicit class PimpedProduct val Product def sum productIterator filter isInstanceOf Number sum code prepThe problem running into is how to convert codeAny code to codeNumeric Double code could do codematch code on each codeNumeric code type but that sucks read href https stackoverflow com questions 13670636 where are the implicit conversions between numeric and double defined in scala this which seemed helpful but not quite enough,NULL 26881,1932106,924605,NULL,NULL,NULL,0,NULL,NULL 26882,1096931,599657,Teacher Supporter,NULL,NULL,0,NULL,NULL 26883,28566,1248422,Necromancer,NULL,NULL,0,NULL,NULL 26884,543939,157460,Yearling Peer Pressure,NULL,NULL,0,NULL,NULL 26885,215586,1149483,NULL,NULL,NULL,0,NULL,NULL 26886,251718,834765,NULL,NULL,NULL,0,NULL,NULL 26887,95947,413494,Notable Question Popular Question Popular Question Notable Question Good Answer Popular Question Necromancer Nice Answer Enlightened Necromancer Famous Question Great Answer Yearling Taxonomist Good Answer Nice Question Notable Question Nice Answer Enlightened Caucus Nice Question Disciplined Constituent Nice Answer Nice Answer Popular Question Famous Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Caucus Famous Question Yearling Necromancer Pundit Notable Question Good Answer Good Question Popular Question Caucus Constituent Popular Question Guru Nice Answer Yearling Good Question Popular Question Popular Question,NULL,pSorry for the late reply on this but think this deservers better answer ppThere are three ways to look at this question polliStrict check if the URL exist liliCheck if you are requesting the URL correclty liliCheck if you can request it correctly and the server can answer it correctly li olh11 Strict check if the URL exist h1pWhile code200 code means that the server answers to that URL thus the URL exists answering other status code doesn means that the URL does not exist For example answering code302 redirected code means that the URL exists and is redirecting to another one While browsing code302 code many times behaves the same than code200 code to the final user Other status code that can be returned if URL exists is code500 internal server error code After all if the URL does not exists how it comes the application server processed your request instead return simply code404 not found code ppSo there is actually only one two cases when URL does not exists When the server does not exists or when the server exists but can find the given URL path does not exists strongThus the only way to check if the URL exists is checking if the server answers and the return code is not 404 strong The following code does just that ppre coderequire net http def url exist url string url URI parse url string req Net HTTP new url host url port req use ssl url scheme https path url path if url path present res req request head path res code 404 false if returns 404 not foundrescue Errno ENOENT false false if can find the serverend code preh12 Check if you are requesting the URL correclty h1pHowever strongmost of the times we are not interested in see if URL exists but if we can access it strong Fortunately looking to the href http en wikipedia org wiki List of HTTP status codes rel noreferrer HTTP status codes families that is the code4xx code family which states for client error thus an error in your side which means you are not requesting the page correctly don have permission or whatsoever This is good of errors to check if you can access this page From wiki pblockquote pThe 4xx class of status code is intended for cases in which the client seems to have erred Except when responding to HEAD request the server should include an entity containing an explanation of the error situation and whether it is temporary or permanent condition These status codes are applicable to any request method User agents should display any included entity to the user blockquotepSo the following code strongmake sure the URL exists and you can access it strong ppre coderequire net http def url exist url string url URI parse url string req Net HTTP new url host url port req use ssl url scheme https path url path if url path present res req request head path if res kind of Net HTTPRedirection url exist res location Go after any redirect and make sure you can access the redirected URL else res code false if http code starts with error on your side endrescue Errno ENOENT false false if can find the serverend code preh13 Check if you can request it correctly and the server can answer it correctly h1pJust like the code4xx code family checks if you can access the URL the code5xx code family checks if the server had any problem answering your request An error on this family most of the times are due problems on the server itself and hopefully they are working on solve it If strongYou need to be able to access the page and get correct answer now strong you should make sure the answer is not from code4xx code or code5xx code family and if you was redirected the redirected page answers correctly So much similar to you can simply use the following code ppre coderequire net http def url exist url string url URI parse url string req Net HTTP new url host url port req use ssl url scheme https path url path if url path present res req request head path if res kind of Net HTTPRedirection url exist res location Go after any redirect and make sure you can access the redirected URL else include res code Not from 4xx or 5xx families endrescue Errno ENOENT false false if can find the serverend code pre it will only be unsafe if malicious user can explot URI parse which has no knwon vulnerabilities as far as know,0,NULL,NULL 26888,658169,1227082,NULL,NULL,NULL,0,NULL,NULL 26889,38207,309514,Announcer Yearling Good Answer Good Answer Curious Notable Question Popular Question Self-Learner Popular Question Yearling Notable Question Nice Answer Announcer Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 26890,3686849,309514,Announcer Yearling Good Answer Good Answer Curious Notable Question Popular Question Self-Learner Popular Question Yearling Notable Question Nice Answer Announcer Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 26891,78653,1177620,Yearling,NULL,NULL,0,NULL,NULL 26892,82307,785155,NULL,NULL,NULL,0,NULL,NULL 26893,1516523,393213,NULL,NULL,NULL,0,NULL,NULL 26894,104569,1025404,Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 26895,448384,1238919,NULL,NULL,NULL,0,NULL,NULL 26896,110907,149530,Nice Answer Custodian vim linux-kernel Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Caucus Constituent Nice Answer Guru Guru Census Nice Answer Enlightened pointers Good Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Caucus Necromancer Yearling Custodian Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Caucus Nice Answer Guru Yearling,NULL,pAs far as know there no standard function to do so but it simple to achieve in the following manner ppre code include lt stdio gt int main int argc char argv const char hexstring DEadbeef10203040b00b1e50 pos hexstring unsigned char val 12 WARNING no sanitization or error checking whatsoever for size count count lt sizeof val sizeof val count sscanf pos 2hhx amp val count pos printf 0x for size count count lt sizeof val sizeof val count printf 02x val count printf return code prehrh3Edit h3pAs Al pointed out in case of an odd number of hex digits in the string you have to make sure you prefix it with starting For example the string code f00f5 code will be evaluated as code 0xf0 0x0f 0x05 code erroneously by the above example instead of the proper code 0x0f 0x00 0xf5 code ppAmended the example little bit to address the comment from yes because the conversion specifier for scanf works on strings like strtoul which expects input as defined in C11,0,NULL,NULL 26897,99129,544039,NULL,NULL,NULL,0,NULL,NULL 26898,544441,1124123,Supporter,NULL,NULL,0,NULL,NULL 26899,158350,901025,Editor Scholar Student Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 26900,357989,1025822,Popular Question Caucus Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 26901,108701,1245839,NULL,NULL,NULL,0,NULL,NULL 26902,476983,809278,Notable Question Nice Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26903,359288,709770,NULL,NULL,NULL,0,NULL,NULL 26904,156321,846182,NULL,NULL,NULL,0,NULL,NULL 26905,119004,563263,NULL,NULL,NULL,0,NULL,NULL 26906,869360,475838,NULL,NULL,NULL,0,NULL,NULL 26907,165112,57973,Nice Answer Yearling Nice Question Popular Question Caucus Constituent Yearling Nice Answer Good Answer Good Answer Caucus Excavator Constituent Citizen Patrol Custodian Custodian Yearling Custodian Yearling Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 26908,237097,665990,Necromancer,NULL,NULL,0,NULL,NULL 26909,96426,858344,Notable Question,NULL,NULL,0,NULL,NULL 26910,1257090,699159,Nice Answer Yearling Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 26911,2065066,699159,Nice Answer Yearling Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 26912,135997,216768,NULL,NULL,NULL,0,NULL,NULL 26913,160507,10369,Yearling Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 26914,426359,336074,Popular Question Notable Question Investor Altruist Excavator,NULL,NULL,0,NULL,NULL 26915,10775,962085,Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26916,171754,1114631,Popular Question,NULL,NULL,0,NULL,NULL 26917,4007061,1096180,NULL,NULL,NULL,0,NULL,NULL 26918,271322,1066417,NULL,NULL,NULL,0,NULL,NULL 26919,48532,805453,NULL,NULL,NULL,0,NULL,NULL 26920,188839,1095723,Supporter Commentator,NULL,NULL,0,NULL,NULL 26921,15976,473649,Popular Question Yearling Popular Question Guru Yearling Guru Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26922,1528160,473649,Popular Question Yearling Popular Question Guru Yearling Guru Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 26923,888931,708047,NULL,NULL,NULL,0,NULL,NULL 26924,2364855,708047,NULL,NULL,NULL,0,NULL,NULL 26925,124227,280698,Famous Question Notable Question Yearling Nice Question Nice Question Popular Question Notable Question Popular Question Nice Question Revival Popular Question Good Question Yearling Popular Question Notable Question Caucus Popular Question Documentation User Popular Question Notable Question Yearling Caucus Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 26926,600830,1006264,Yearling Announcer Caucus Necromancer Necromancer,NULL,pYou can check if string is palindrome by comparing it to the reverse of itself ppre codepublic static boolean isPalindrome String str return str equals new StringBuilder str reverse toString code prepor for versions of Java earlier than ppre codepublic static boolean isPalindrome String str return str equals new StringBuffer append str reverse toString code prep strongEDIT strong ioni provided href http componentsprogramming com palindromes rel noreferrer very thorough analysis of the efficiency or lack thereof of this solution both in terms of time and space If you re interested in the computational complexity of this and other possible solutions to this question please read it Here my analysis http componentsprogramming com palindromes,0,NULL,NULL 26927,1784496,616371,NULL,NULL,NULL,0,NULL,NULL 26928,115070,425735,Popular Question,NULL,NULL,0,NULL,NULL 26929,137399,357618,Yearling Notable Question Popular Question Popular Question Notable Question Good Question Nice Question Nice Question Yearling Custodian Nice Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26930,255356,61548,Student,NULL,NULL,0,NULL,NULL 26931,431524,1361255,NULL,NULL,NULL,0,NULL,NULL 26932,49581,354589,NULL,NULL,NULL,0,NULL,NULL 26933,304777,256843,Yearling Nice Question Popular Question Yearling Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 26934,10086,791183,NULL,NULL,NULL,0,NULL,NULL 26935,109368,744257,NULL,NULL,NULL,0,NULL,NULL 26936,133096,1268217,NULL,NULL,NULL,0,NULL,NULL 26937,273885,1050047,NULL,NULL,NULL,0,NULL,NULL 26938,271580,51428,Nice Answer Yearling Guru Nice Answer Enlightened Good Answer Good Answer Investor Custodian Altruist Yearling Nice Answer Necromancer Popular Question linq Nice Question Documentation User Yearling Announcer Benefactor .net Guru,NULL,NULL,1,How do evaluate this recursive function in Idris interactive haskell recursion idris pDabbling into Idris was trying to port href https stackoverflow com 16762033 51428 this Haskell function to Idris think succeeded with this code ppre codewindowl Nat gt List gt List List windowl size loop where loop xs case List splitAt size xs of ys gt if length ys size then ys else ys gt ys loop drop xs code prepHowever when call it in interactive idris it appears that only the first call into the function is evaluated the next step in the recursion is not This is what get on the console ppre code hello gt windowl Main windowl loop Integer List List Integer code prepCan someone enlighten me as to what is happening and how can get the function evaluated completely Idris Vect fromList usage with generated list dependent type idris pI am trying to feel my way into dependent types Based on the logic of the strongwindowl strong function below want to return list of vectors whose length depend on the strongsize strong provided ppre codewindow Nat gt List gt List Vect window size map fromList loop where loop xs case splitAt size xs of ys gt if length ys size then ys else ys gt ys loop drop xs windowl Nat gt List gt List List windowl size loop where loop xs case List splitAt size xs of ys gt if length ys size then ys else ys gt ys loop drop xs code prepWhen attempt to load the function into Idris get the following ppre codeWhen checking argument func to function Prelude Functor map Type mismatch between List elem gt Vect length elem Type of fromList and a1 gt List Vect size Expected type Specifically Type mismatch between Vect length v0 elem and List Vect size code prepWhen reading the documentation on href https www idris lang org docs current base doc docs Data Vect html fromList rel nofollow noreferrer fromList notice that it says pblockquote pThe length of the list should be statically known blockquotepSo assume that the type error has to do with Idris not knowing that the length of the list is corresponding to the size specified ppI am stuck because don even know if it is something impossible want to do or whether can specify that the length of the list corresponds to the length of the vector that want to produce ppIs there way to do that,NULL 26939,672020,1378531,NULL,NULL,NULL,0,NULL,NULL 26940,176973,106980,NULL,NULL,NULL,0,NULL,NULL 26941,839662,1552013,NULL,NULL,NULL,0,NULL,NULL 26942,561600,1158542,NULL,NULL,NULL,0,NULL,NULL 26943,192464,1020980,NULL,NULL,NULL,0,NULL,NULL 26944,133803,528871,Yearling,NULL,NULL,0,NULL,NULL 26945,306303,19105,Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 26946,85669,932811,Informed,NULL,NULL,0,NULL,NULL 26947,42290,542580,NULL,NULL,NULL,0,NULL,NULL 26948,1221487,941989,NULL,NULL,NULL,0,NULL,NULL 26949,277,283998,Popular Question Yearling Popular Question scala Nice Answer Enlightened Civic Duty Yearling Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 26950,26097,217404,Necromancer,NULL,NULL,0,NULL,NULL 26951,725566,1489271,NULL,NULL,NULL,0,NULL,NULL 26952,870943,168680,NULL,NULL,NULL,0,NULL,NULL 26953,2970,304411,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26954,2874909,74676,NULL,NULL,NULL,0,NULL,NULL 26955,1273650,1286485,Notable Question,NULL,NULL,0,NULL,NULL 26956,122937,1331873,Popular Question Census Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 26957,1544251,1353852,NULL,NULL,NULL,0,NULL,NULL 26958,1674111,234590,Informed Nice Answer Enlightened Organizer Mortarboard Revival Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Excavator Nice Answer Enlightened rust Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Electorate Necromancer Nice Answer Enlightened Caucus Nice Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Enlightened lifetime Nice Answer Enlightened Good Answer traits Nice Answer Enlightened Nice Answer Nice Answer Necromancer Announcer Nice Answer Enlightened Announcer Talkative Caucus Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Announcer Yearling Strunk & White Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Pundit Nice Answer Enlightened iterator Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26959,1316908,1530594,Notable Question Popular Question Popular Question Caucus Revival Critic Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26960,292401,206546,Notable Question Necromancer Custodian Custodian Caucus Popular Question Nice Question Necromancer Yearling Self-Learner Custodian Notable Question,NULL,NULL,0,NULL,NULL 26961,267067,915302,NULL,NULL,NULL,0,NULL,NULL 26962,44409,237975,NULL,NULL,NULL,0,NULL,NULL 26963,459410,260401,Necromancer Custodian Nice Answer Census Revival Popular Question,NULL,NULL,0,NULL,NULL 26964,4427738,780636,Scholar Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 26965,158094,253440,NULL,NULL,NULL,0,NULL,NULL 26966,38278,797325,NULL,NULL,NULL,0,NULL,NULL 26967,165811,1322218,Editor Scholar,NULL,NULL,0,NULL,NULL 26968,236845,1192233,NULL,NULL,NULL,0,NULL,NULL 26969,36271,724098,Editor Scholar Student,NULL,NULL,0,NULL,NULL 26970,1724898,270993,NULL,NULL,NULL,0,NULL,NULL 26971,188344,270993,NULL,NULL,NULL,0,NULL,NULL 26972,1550031,270993,NULL,NULL,NULL,0,NULL,NULL 26973,275788,1244033,Nice Answer Revival Announcer Caucus Custodian Custodian Custodian Yearling Revival Civic Duty Suffrage Vox Populi Nice Answer Enlightened Fanatic Caucus Constituent Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 26974,904231,1055118,Nice Answer Nice Answer Enlightened Caucus Yearling Constituent python Popular Question Custodian Custodian Caucus Constituent Nice Answer Strunk & White Nice Answer Nice Answer Yearling Census Nice Answer Good Answer Caucus Constituent Nice Answer Proofreader Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26975,280505,1025748,Popular Question,NULL,NULL,0,NULL,NULL 26976,498054,1266094,NULL,NULL,NULL,0,NULL,NULL 26977,421147,616388,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 26978,1073832,1415321,Popular Question,NULL,NULL,0,NULL,NULL 26979,164609,605244,NULL,NULL,NULL,0,NULL,NULL 26980,6458178,1223136,Revival Yearling Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 26981,28571,27826,Notable Question Guru Curious Custodian Revival Yearling Nice Answer Nice Question Revival Organizer Nice Answer Custodian Custodian Self-Learner Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 26982,168236,1372584,Popular Question,NULL,NULL,0,NULL,NULL 26983,682181,374430,Yearling Revival Necromancer Revival Nice Answer Enlightened Yearling Popular Question Nice Answer Popular Question Necromancer Yearling Nice Answer Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 26984,1387113,556194,NULL,NULL,NULL,0,NULL,NULL 26985,84385,1548744,Autobiographer,NULL,NULL,0,NULL,NULL 26986,128190,730652,NULL,NULL,NULL,0,NULL,NULL 26987,53439,537183,NULL,NULL,NULL,0,NULL,NULL 26988,419231,392753,Editor Commentator Informed Revival Documentation User Caucus Enthusiast Critic Yearling,NULL,NULL,0,NULL,NULL 26989,202344,1351075,Student Notable Question,NULL,NULL,0,NULL,NULL 26990,28710,337172,Nice Answer Yearling Good Answer Yearling Good Answer Revival Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26991,240556,495705,NULL,NULL,NULL,0,NULL,NULL 26992,368728,1458605,Yearling Good Answer Yearling Editor Guru Yearling Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 26993,608136,974809,Commentator Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 26994,1504139,933576,NULL,NULL,NULL,0,NULL,NULL 26995,50976,158815,Popular Question Necromancer Nice Answer Yearling Popular Question Notable Question Self-Learner Popular Question Yearling Custodian Citizen Patrol Good Answer Yearling Necromancer Necromancer Notable Question Yearling Necromancer Notable Question Necromancer Popular Question Yearling,NULL,pAll package managers have many downsides You just have to pick which you can live with ph2History h2p href https www npmjs org rel noreferrer npm started out managing node js modules that why packages go into codenode modules code by default but it works for the front end too when combined with href http browserify org rel noreferrer Browserify or WebPack pp href http bower io rel noreferrer Bower is created solely for the front end and is optimized with that in mind ph2Size of repo h2pnpm is much much larger than bower including general purpose JavaScript like codecountry data code for country information or codesorts code for sorting functions that is usable on the front end or the back end ppBower has much smaller amount of packages ph2Handling of styles etc h2pBower includes styles etc ppnpm is focused on JavaScript Styles are either downloaded seperately or required by something like codenpm sass code or codesass npm code ph2Dependency handling h2pThe biggest difference is that npm does nested dependencies but is flat by default while Bower requires flat dependency tree em puts the burden of dependency resolution on the user em ppA nested dependency tree means that your dependencies can have their own dependencies which can have their own and so on This allows for two modules to require different versions of the same depndency and still work Note since npm v3 the dependency tree will by flat by default saving space and only nest where needed eg if two dependencies need their own version of Underscore ppSome projects use both is that they use Bower for front end packages and npm for developer tools like Yeoman Grunt Gulp JSHint CoffeeScript etc phrh2Resources h2ulli href http maxogden com nested dependencies html rel noreferrer Nested Dependencies Insight into why node modules works the way it does li ul Nobody actually answered öm question even though it was in the original answer nested dependency tree means that your dependencies can have its own dependencies which can have their own magine site having to download three copies of jQuery library depends on jQuery library depends library 01 which depends on jQuery library depends on jQuery Fine for development but not good if user has to load all of three versions of jQuery in their browser,0,NULL,NULL 26996,120160,80906,Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Good Answer c Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26997,165644,853493,Popular Question,NULL,NULL,0,NULL,NULL 26998,231958,78944,Enlightened Nice Answer Yearling Popular Question Yearling Good Answer Notable Question Yearling c# Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 26999,198721,811330,NULL,NULL,NULL,0,NULL,NULL 27000,498129,54947,Yearling Yearling Nice Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27001,41115,437188,Popular Question Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 27002,91309,303792,Yearling Nice Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 27003,524709,856310,NULL,NULL,NULL,0,NULL,NULL 27004,79229,1485764,NULL,NULL,NULL,0,NULL,NULL 27005,270240,209320,Great Question Notable Question Notable Question Notable Question Yearling Popular Question Favorite Question Yearling Popular Question Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27006,107545,26004,Notable Question Great Question Famous Question Favorite Question Nice Question Good Question Famous Question Famous Question Great Question Famous Question Famous Question Famous Question Nice Question Yearling Popular Question Nice Question Famous Question node.js Popular Question Popular Question Nice Answer Famous Question Custodian Good Question Nice Question Notable Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Yearling Famous Question Nice Answer Enlightened Good Question Favorite Question Notable Question Nice Question Nice Answer Good Question Nice Answer Enlightened Great Question Necromancer Notable Question Yearling Nice Answer Favorite Question,NULL,Parsing YAML file in Python and accessing the data python xml parsing yaml pI am new to YAML and have been searching for ways to parse YAML file and use access the data from the parsed YAML ppI have come across explanations on how to parse the YAML file for example the PyYAML href http pyyaml org wiki PyYAMLDocumentation Tutorial rel noreferrer tutorial href https stackoverflow com questions 1773805 best way to parse yaml file How can parse YAML file in Python href https stackoverflow com questions 1305532 convert python dict to object Convert Python dict to object but what haven found is simple example on how to access the data from the parsed YAML file ppAssume have YAML file such as ppre code treeroot branch1 branch1 text branch2 branch2 text code prepHow do access the text branch1 text pp href https stackoverflow com questions 6866600 yaml parsing and python YAML parsing and Python provides solution but had problems accessing the data from more complex YAML file And wondering if there is some standard way of accessing the data from parsed YAML file possibly something similar to href http lxml de tutorial html tree iteration rel noreferrer tree iteration or href http lxml de tutorial html elementpath rel noreferrer elementpath notation or something which would be used when parsing an XML file Possible duplicate of How can parse YAML file in Python https stackoverflow com questions 1773805 how can parse yaml file in python,0,NULL,NULL 27007,480839,560443,Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 27008,75975,1341884,NULL,NULL,NULL,0,NULL,NULL 27009,894630,159267,Notable Question,NULL,NULL,0,NULL,NULL 27010,1058191,1035590,NULL,NULL,NULL,0,NULL,NULL 27011,338310,1209694,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27012,111290,246097,Revival Excavator Yearling Critic Revival Civic Duty Yearling Revival Necromancer,NULL,NULL,1,NULL,Failure saving state target not in fragment manager setTargetFragment android android fragments pI ve got monkey crash whereby ppre codejava lang IllegalStateException Failure saving state FragmentB has target not in fragment manager FragmentAat android support v4 app FragmentManagerImpl saveAllState FragmentManager java 1561 at android support v4 app FragmentActivity onSaveInstanceState FragmentActivity java 475 at com acme ParentActivity onSaveInstanceState Unknown Source code prepBasically FragmentA loads up FragmentB and codesetTargetFragment code is called to set FragmentB target fragment ppFragmentB then simply calls codegetTargetFragment codein its codeonCreate code method and hangs on to the target for when needed ppNow not doing anything in any of the codeonSaveInstanceState code calls with the target fragment in terms of setting it null making any codesaveFragmentInstanceState code codeputFragment code etc calls The question is should be doing something with it ppThanks in advance ppPeter pp Edit am using an old version of the support library and have feeling that this may be fixed in the latest version will test further and provide further update if that is the case However still interested to know whether should be doing anything with the target fragment that not currently doing pp Edit Fixed with version of the support library haven tried others pI just faced this problem and this is what think is happening and how fixed it ppYour FragmentA instance is being destroyed and another one is being created when there is device rotation for example When this happens your FragmentB keeps holding reference to FragmentA which doesn exist anymore ppIn this case you have to reset FragmentB target to be the new FragmentA instance ppI did that with the following code in FragmentA ppre code public void onAttach Context context super onAttach context FragmentB fragment FragmentB getFragmentManager findFragmentByTag FragmentBtag if fragment null fragment setTargetFragment this code prepThis way whenever the FragmentA is attached to the Context ie device rotation happens FragmentB target is reset if FragmentB was created at first hand if so it would be on FragmentManager ppI hope it helps 27013,351116,1397032,Nice Answer Yearling Popular Question Critic Caucus,NULL,NULL,0,NULL,NULL 27014,124348,1256657,NULL,NULL,NULL,0,NULL,NULL 27015,853915,407324,NULL,NULL,NULL,0,NULL,NULL 27016,25468,859837,Good Answer Famous Question Necromancer Yearling Caucus Revival Notable Question Caucus Yearling Necromancer Citizen Patrol Custodian Popular Question,NULL,NULL,0,NULL,NULL 27017,47994,555999,NULL,NULL,NULL,0,NULL,NULL 27018,197476,776792,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27019,28637,42198,Revival Nice Answer Enlightened Nice Answer Popular Question Yearling Self-Learner Necromancer Notable Question Announcer Necromancer Necromancer Popular Question Yearling Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 27020,335438,182510,NULL,NULL,NULL,0,NULL,NULL 27021,131903,39476,Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 27022,359684,41953,Enthusiast Nice Answer Necromancer Commentator Yearling Informed Caucus Excavator Caucus Constituent Documentation User Announcer Nice Answer,NULL,NULL,0,NULL,NULL 27023,659916,911301,NULL,NULL,NULL,0,NULL,NULL 27024,324647,530349,NULL,NULL,NULL,0,NULL,NULL 27025,415920,797217,NULL,NULL,NULL,0,NULL,NULL 27026,3541653,797217,NULL,NULL,NULL,0,NULL,NULL 27027,255268,1086670,NULL,NULL,NULL,0,NULL,NULL 27028,103302,1189538,Yearling Caucus,NULL,NULL,0,NULL,NULL 27029,3158765,1076198,NULL,NULL,NULL,0,NULL,NULL 27030,267801,1282966,Popular Question,NULL,NULL,0,NULL,NULL 27031,129835,559060,Popular Question Notable Question Curious Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27032,438381,303083,Revival Yearling,NULL,NULL,0,NULL,NULL 27033,7639,303083,Revival Yearling,NULL,NULL,0,NULL,NULL 27034,29687,752803,NULL,NULL,NULL,0,NULL,NULL 27035,7311575,886421,NULL,NULL,NULL,0,NULL,NULL 27036,1164890,886421,NULL,NULL,NULL,0,NULL,NULL 27037,8408,165571,Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 27038,199042,412160,NULL,NULL,NULL,0,NULL,NULL 27039,1046004,911726,NULL,NULL,NULL,0,NULL,NULL 27040,141631,692771,Census,NULL,NULL,0,NULL,NULL 27041,75977,271927,NULL,NULL,NULL,0,NULL,NULL 27042,894514,259988,Student Scholar Custodian Commentator Caucus Yearling Caucus Announcer Tumbleweed Popular Question Yearling Organizer,NULL,NULL,0,NULL,NULL 27043,21757,526684,Notable Question,NULL,NULL,0,NULL,NULL 27044,299961,93887,Yearling Necromancer,NULL,NULL,0,NULL,NULL 27045,232903,758913,NULL,NULL,NULL,0,NULL,NULL 27046,55037,790411,NULL,NULL,NULL,0,NULL,NULL 27047,347693,615903,Civic Duty Revival Custodian Yearling Revival Announcer Revival Yearling Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 27048,1312592,460549,Notable Question Yearling,NULL,NULL,0,NULL,NULL 27049,390,469389,NULL,NULL,NULL,0,NULL,NULL 27050,499962,580691,Popular Question Nice Question Custodian Popular Question Organizer Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 27051,36071,384577,NULL,NULL,,0,, 27052,52007,1235824,Yearling,NULL,NULL,0,NULL,NULL 27053,168648,1235824,Yearling,NULL,NULL,0,NULL,NULL 27054,28557,482223,Commentator,NULL,NULL,0,NULL,NULL 27055,169025,162743,NULL,NULL,NULL,0,NULL,NULL 27056,368082,403617,Notable Question Popular Question Famous Question Notable Question Notable Question Yearling Popular Question Custodian Popular Question Notable Question Inquisitive Popular Question Benefactor Nice Question Popular Question,NULL,NULL,0,NULL,NULL 27057,36656,773194,NULL,NULL,NULL,0,NULL,NULL 27058,21442,243670,Necromancer,NULL,NULL,0,NULL,NULL 27059,24562,7355,Good Question Custodian Nice Answer Enlightened Notable Question Great Question Popular Question Revival Notable Question Yearling Announcer Necromancer Nice Question Proofreader Guru Popular Question Popular Question Census Guru Notable Question Custodian Nice Question Famous Question Yearling Documentation User Good Question Good Question Necromancer Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 27060,280382,477423,Popular Question,NULL,NULL,0,NULL,NULL 27061,764767,477423,Popular Question,NULL,NULL,0,NULL,NULL 27062,281862,753867,NULL,NULL,NULL,0,NULL,NULL 27063,899015,719344,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27064,145670,1054152,Editor Caucus Popular Question Caucus,NULL,NULL,0,NULL,NULL 27065,368104,839876,Necromancer Caucus Good Answer Nice Answer Yearling Announcer Census Caucus Constituent,NULL,NULL,0,NULL,NULL 27066,1024274,149250,Supporter,NULL,NULL,0,NULL,NULL 27067,435908,667959,Critic Commentator Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 27068,858392,1068422,NULL,NULL,NULL,0,NULL,NULL 27069,515647,640202,Yearling Favorite Question Famous Question Good Answer Notable Question Nice Question Yearling Nice Answer Enlightened Tag Editor Caucus Notable Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27070,711831,1206121,NULL,NULL,NULL,0,NULL,NULL 27071,888215,82305,Yearling Popular Question,NULL,NULL,0,NULL,NULL 27072,25497,133309,Necromancer Good Question Yearling Civic Duty Nice Question Necromancer Disciplined Popular Question Popular Question Yearling Nice Answer Notable Question Notable Question Revival,NULL,NULL,0,NULL,NULL 27073,591066,895434,NULL,NULL,NULL,0,NULL,NULL 27074,42601,41404,Critic Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 27075,154117,167222,Necromancer Nice Answer Revival,NULL,NULL,0,NULL,NULL 27076,933845,1056944,Notable Question Popular Question Nice Answer Enlightened Popular Question Yearling Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 27077,229531,108478,Good Question Yearling,NULL,NULL,0,NULL,NULL 27078,3912801,821265,Notable Question Popular Question Critic Yearling Necromancer Nice Answer Yearling Good Answer,NULL,,0,, 27079,230392,821265,Notable Question Popular Question Critic Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 27080,198906,479475,NULL,NULL,NULL,0,NULL,NULL 27081,18717,437468,Notable Question Curious,NULL,NULL,0,NULL,NULL 27082,186740,437468,Notable Question Curious,NULL,NULL,0,NULL,NULL 27083,244050,950537,NULL,NULL,NULL,0,NULL,NULL 27084,237610,1256386,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 27085,425912,183938,NULL,NULL,NULL,0,NULL,NULL 27086,73438,171364,Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 27087,107120,734532,NULL,NULL,NULL,0,NULL,NULL 27088,1025774,1146915,NULL,NULL,NULL,0,NULL,NULL 27089,253977,1278675,NULL,NULL,NULL,0,NULL,NULL 27090,3904540,824482,NULL,NULL,NULL,0,NULL,NULL 27091,433989,336848,Popular Question,NULL,NULL,0,NULL,NULL 27092,426935,501792,NULL,NULL,NULL,0,NULL,NULL 27093,7555182,1236919,NULL,NULL,NULL,0,NULL,NULL 27094,9103,235491,Yearling Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27095,1376702,815134,NULL,NULL,NULL,0,NULL,NULL 27096,311098,1201979,NULL,NULL,NULL,0,NULL,NULL 27097,234604,992154,Student Informed,NULL,NULL,0,NULL,NULL 27098,2304504,696732,Teacher,NULL,NULL,0,NULL,NULL 27099,222870,696732,Teacher,NULL,NULL,0,NULL,NULL 27100,575738,777812,NULL,NULL,NULL,0,NULL,NULL 27101,200663,364554,NULL,NULL,NULL,0,NULL,NULL 27102,33338,2048,NULL,NULL,NULL,0,NULL,NULL 27103,61032,1311039,NULL,NULL,NULL,0,NULL,NULL 27104,162331,921301,Yearling Yearling,NULL,NULL,0,NULL,NULL 27105,333578,256610,Yearling Notable Question Famous Question Tenacious Yearling Custodian Tumbleweed Yearling Informed Popular Question Yearling,NULL,NULL,0,NULL,NULL 27106,23817,12568,Nice Answer Enlightened Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 27107,1047435,8964,Great Answer Nice Answer Custodian Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27108,68108,521928,Necromancer,NULL,NULL,0,NULL,NULL 27109,689190,153772,Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27110,721753,878183,NULL,NULL,NULL,0,NULL,NULL 27111,199101,65124,Yearling Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 27112,505587,1036098,NULL,NULL,NULL,0,NULL,NULL 27113,266809,1120443,NULL,NULL,NULL,0,NULL,NULL 27114,357813,1137390,Student,NULL,NULL,0,NULL,NULL 27115,228488,202658,NULL,NULL,NULL,0,NULL,NULL 27116,1351262,155814,NULL,NULL,NULL,0,NULL,NULL 27117,51086,143480,Caucus Informed Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 27118,187574,93804,NULL,NULL,NULL,0,NULL,NULL 27119,3721205,999827,NULL,NULL,NULL,0,NULL,NULL 27120,274959,191161,Yearling Favorite Question Notable Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 27121,102360,170217,Yearling Announcer Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 27122,88678,678387,Tumbleweed Commentator Scholar Critic Civic Duty,NULL,NULL,0,NULL,NULL 27123,145906,550226,Notable Question Good Question,NULL,NULL,0,NULL,NULL 27124,4879572,257949,Notable Question,NULL,NULL,0,NULL,NULL 27125,65246,257949,Notable Question,NULL,NULL,0,NULL,NULL 27126,588,1143728,NULL,NULL,NULL,0,NULL,NULL 27127,192429,1198440,Excavator Critic Yearling Self-Learner Curious Autobiographer Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 27128,176924,779675,NULL,NULL,NULL,0,NULL,NULL 27129,900511,1207583,Supporter Scholar Student Commentator,NULL,NULL,1,NULL,Get SW NE point on MKMapView after rotation ios swift mkmapview pI writing an application in Swift and using Parse as the back end ppIn order to setup query to Parse want to get the southwest most point and northeast most point displayed on the current MKMapView ppI currently get these values as displayed here ppre code To calculate the search bounds first we need to calculate the corners of the map let nePoint CGPointMake self myMap bounds origin myMap bounds size width myMap bounds origin let swPoint CGPointMake self myMap bounds origin myMap bounds origin myMap bounds size height Then transform those point into lat lng values let neCoord myMap convertPoint nePoint toCoordinateFromView myMap let swCoord myMap convertPoint swPoint toCoordinateFromView myMap let neGP PFGeoPoint latitude neCoord latitude longitude neCoord longitude let swGP PFGeoPoint latitude swCoord latitude longitude swCoord longitude var query PFQuery className locations Limit what could be lot of points query limit 25 query whereKey location withinGeoBoxFromSouthwest swGP toNortheast neGP code prepThis works perfectly until the map is rotated ppHowever once the user rotates the map the top right and bottom left points no longer represent the northeast most and southwest most points ppHow can always calculate the true southwestern most and northeastern most points displayed on the map ppThanks pFor my application had to get the NE SW corners of box that totally enclosed the visible map region ppThe important thing to realize is that you cannot figure out the bounding coordinates of rotated map by sampling just two corners ppIf you picked just the upper right and lower left corners of this map and convert to lat lon you ll get the red rectangle which is probably not what you want pp href https stack imgur com S1uNj png rel nofollow noreferrer img src https stack imgur com S1uNj png alt Getting bounds of rotated map ppAs you can see from the picture the NE and SW bounding points don lie anywhere on the map view ppInstead you need to sample all four corners and then convert them to lat lon before comparing them because the map may be upside down rotated meaning you have no idea which corner is more Northerly Southerly etc ppre code Using http stackoverflow com 28683812 1207583 code extension nametypealias Edges ne CLLocationCoordinate2D sw CLLocationCoordinate2D extension MKMapView func edgePoints gt Edges let corners CGPoint self bounds minX self bounds minY CGPoint self bounds minX self bounds maxY CGPoint self bounds maxX self bounds maxY CGPoint self bounds maxX self bounds minY let coords corners map corner in self convertPoint corner toCoordinateFromView self let startBounds coords latitude coords latitude coords longitude coords longitude let bounds coords reduce startBounds in let max latitude let min latitude let max longitude let min longitude return return ne CLLocationCoordinate2D latitude bounds longitude bounds sw CLLocationCoordinate2D latitude bounds longitude bounds code prepNow you should be happy when you run ppre codelet edges mapView edgePoints debugPrint Edges edges code pre 27130,365600,764248,NULL,NULL,NULL,0,NULL,NULL 27131,29085,77608,Yearling Populist Good Answer Necromancer,NULL,NULL,0,NULL,NULL 27132,77293,674988,NULL,NULL,NULL,0,NULL,NULL 27133,9759,232442,Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27134,96405,1264667,NULL,NULL,NULL,0,NULL,NULL 27135,855737,1473524,NULL,NULL,NULL,0,NULL,NULL 27136,114282,366629,NULL,NULL,NULL,0,NULL,NULL 27137,343155,1010481,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 27138,22625,308894,Good Question Notable Question,NULL,NULL,0,NULL,NULL 27139,237001,1211247,Yearling Good Answer Scholar,NULL,NULL,0,NULL,NULL 27140,128566,1550111,Great Answer Notable Question Yearling Revival Notable Question Yearling Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27141,915053,1041062,Supporter,NULL,NULL,0,NULL,NULL 27142,146907,1138384,Teacher,NULL,NULL,0,NULL,NULL 27143,143139,585155,NULL,NULL,NULL,0,NULL,NULL 27144,180788,844166,Popular Question,NULL,NULL,0,NULL,NULL 27145,103444,330537,NULL,NULL,NULL,0,NULL,NULL 27146,182937,595445,NULL,NULL,NULL,0,NULL,NULL 27147,65278,909541,Announcer,NULL,NULL,0,NULL,NULL 27148,89509,1156616,Supporter Necromancer,NULL,NULL,0,NULL,NULL 27149,135761,623650,NULL,NULL,NULL,0,NULL,NULL 27150,42182,383148,Notable Question Notable Question Good Question Nice Question Good Question Popular Question Notable Question Popular Question Good Question Favorite Question Notable Question Good Question Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Great Question Good Question Popular Question Popular Question Yearling Great Question Famous Question Famous Question Notable Question Notable Question Notable Question Notable Question Nice Question Necromancer Notable Question Notable Question Good Question Notable Question Popular Question Famous Question Great Question Popular Question Popular Question Popular Question Popular Question Nice Answer Favorite Question Favorite Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Custodian Yearling Popular Question Nice Question Notable Question Good Question Notable Question Notable Question Good Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,pre codefunction randomIntFromInterval min max min and max included return Math floor Math random max min min code prepWhat it does extra is it allows random intervals that do not start with So you can get random number from 10 to 15 for example Flexibility You can imagine min and max or use the language numeric limits,0,NULL,NULL 27151,147894,1343428,Inquisitive Notable Question Popular Question Notable Question Yearling Notable Question Nice Question Good Answer Notable Question Popular Question Yearling Guru Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27152,89,319315,Yearling,NULL,NULL,0,NULL,NULL 27153,28809,192741,Nice Answer Guru Guru Nice Question Nice Answer Notable Question php Yearling Famous Question Caucus Nice Question Caucus Custodian Yearling Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 27154,675868,917154,NULL,NULL,NULL,0,NULL,NULL 27155,216968,696519,NULL,NULL,NULL,0,NULL,NULL 27156,581797,762585,Notable Question Notable Question Nice Answer Enlightened Yearling Popular Question Notable Question Custodian Nice Answer Enlightened Yearling Good Answer Caucus Revival Proofreader Civic Duty Caucus Constituent Necromancer Guru Yearling Excavator Nice Question Popular Question,NULL,NULL,0,NULL,NULL 27157,77265,1395045,NULL,NULL,NULL,0,NULL,NULL 27158,41686,485886,Popular Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 27159,422854,191442,Necromancer Nice Answer Yearling Nice Answer Good Answer Yearling Curious Announcer Self-Learner Popular Question Yearling Good Answer Yearling,NULL,pAlthough it is not possible to directly catch an exception thrown in different thread here code to quite transparently obtain something very close to this functionality Your child thread must subclass the codeExThread code class instead of codethreading Thread code and the parent thread must call the codechild thread join with exception code method instead of codechild thread join code when waiting for the thread to finish its job ppTechnical details of this implementation when the child thread throws an exception it is passed to the parent through codeQueue code and thrown again in the parent thread Notice that there no busy waiting in this approach ppre code usr bin env pythonimport sysimport threadingimport Queueclass ExThread threading Thread def init self threading Thread init self self status queue Queue Queue def run with exception self This method should be overriden raise NotImplementedError def run self This method should NOT be overriden try self run with exception except BaseException self status queue put sys exc info self status queue put None def wait for exc info self return self status queue get def join with exception self ex info self wait for exc info if ex info is None return else raise ex info class MyException Exception passclass MyThread ExThread def init self ExThread init self def run with exception self thread name threading current thread name raise MyException An error in thread format thread name def main MyThread start try join with exception except MyException as ex thread name threading current thread name print Caught MyException in thread format thread name ex if name main main code pre join with exception hangs indefinitely if called second time on dead thread Fix https github com fraserharris threading extensions blob master threading extensions py L28,0,NULL,NULL 27160,91281,424459,NULL,NULL,NULL,0,NULL,NULL 27161,722946,1537560,Necromancer,NULL,NULL,0,NULL,NULL 27162,762237,536499,Yearling,NULL,NULL,0,NULL,NULL 27163,372282,906196,Revival,NULL,NULL,0,NULL,NULL 27164,1025621,1319146,Tumbleweed Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 27165,205,912216,NULL,NULL,NULL,0,NULL,NULL 27166,924455,677981,NULL,NULL,NULL,0,NULL,NULL 27167,167553,1337612,NULL,NULL,NULL,0,NULL,NULL 27168,44505,1023020,Yearling,NULL,NULL,0,NULL,NULL 27169,301216,1051933,Tumbleweed Nice Question Famous Question Curious Critic,NULL,NULL,0,NULL,NULL 27170,338476,17637,Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 27171,68671,433446,NULL,NULL,NULL,0,NULL,NULL 27172,638411,800794,NULL,NULL,NULL,0,NULL,NULL 27173,6279351,1486932,NULL,NULL,NULL,0,NULL,NULL 27174,305970,1486932,NULL,NULL,NULL,0,NULL,NULL 27175,688260,224751,Guru Yearling Curious Good Answer Yearling Notable Question Nice Answer Enlightened Caucus Guru Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 27176,164088,1130957,NULL,NULL,NULL,0,NULL,NULL 27177,123597,229573,Critic Yearling Informed,NULL,NULL,0,NULL,NULL 27178,729192,1359141,NULL,NULL,NULL,0,NULL,NULL 27179,391472,446372,NULL,NULL,NULL,0,NULL,NULL 27180,2152235,446372,NULL,NULL,NULL,0,NULL,NULL 27181,9760542,454645,NULL,NULL,NULL,0,NULL,NULL 27182,172642,454645,NULL,NULL,NULL,0,NULL,NULL 27183,20386,1049531,NULL,NULL,NULL,0,NULL,NULL 27184,705624,1218264,Critic Caucus,NULL,NULL,0,NULL,NULL 27185,71185,140760,Guru Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27186,52517,237740,Yearling Caucus Constituent Good Answer Yearling Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 27187,449261,537247,Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Caucus Yearling Popular Question Organizer Explainer Census Custodian Custodian Custodian Custodian Tenacious Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 27188,45684,202031,NULL,NULL,NULL,0,NULL,NULL 27189,5594009,851022,Notable Question Scholar Revival,NULL,NULL,0,NULL,NULL 27190,132082,851022,Notable Question Scholar Revival,NULL,NULL,0,NULL,NULL 27191,210111,761483,NULL,NULL,NULL,0,NULL,NULL 27192,1192345,731685,NULL,NULL,NULL,0,NULL,NULL 27193,158006,488752,NULL,NULL,NULL,0,NULL,NULL 27194,1039776,529924,Yearling Good Answer,NULL,NULL,0,NULL,NULL 27195,996041,592898,Yearling Popular Question Famous Question Nice Answer Nice Answer Enlightened spring Notable Question Nice Question Notable Question Nice Answer Good Answer Good Answer Good Answer Yearling Census Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Census Yearling Nice Answer Enlightened Good Answer Good Answer Guru Popular Question Guru,NULL,NULL,0,NULL,NULL 27196,2486152,592898,Yearling Popular Question Famous Question Nice Answer Nice Answer Enlightened spring Notable Question Nice Question Notable Question Nice Answer Good Answer Good Answer Good Answer Yearling Census Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Census Yearling Nice Answer Enlightened Good Answer Good Answer Guru Popular Question Guru,NULL,NULL,0,NULL,NULL 27197,216333,142928,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 27198,15329,412338,NULL,NULL,NULL,0,NULL,NULL 27199,3654629,1535811,NULL,NULL,NULL,0,NULL,NULL 27200,101432,1535811,NULL,NULL,NULL,0,NULL,NULL 27201,98846,21412,Revival,NULL,NULL,0,NULL,NULL 27202,45911,450705,Necromancer Yearling Informed,NULL,NULL,0,NULL,NULL 27203,159049,18092,Popular Question Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27204,404782,1414669,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 27205,160558,412497,NULL,NULL,NULL,0,NULL,NULL 27206,137428,293401,Supporter,NULL,NULL,0,NULL,NULL 27207,243661,1546773,NULL,NULL,NULL,0,NULL,NULL 27208,59737,724561,Nice Question Yearling Civic Duty Good Question Famous Question Caucus Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 27209,21095,1458979,NULL,NULL,NULL,0,NULL,NULL 27210,156385,698595,NULL,NULL,NULL,0,NULL,NULL 27211,62488,417065,sonarqube Nice Answer Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 27212,754709,565648,Supporter Famous Question Popular Question,NULL,NULL,0,NULL,NULL 27213,436440,1100115,Popular Question,NULL,NULL,0,NULL,NULL 27214,18585,1525278,NULL,NULL,NULL,0,NULL,NULL 27215,363230,429766,Notable Question Notable Question Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27216,4991598,419473,Nice Answer,NULL,NULL,0,NULL,NULL 27217,204275,419473,Nice Answer,NULL,NULL,0,NULL,NULL 27218,633596,1532175,Supporter Enthusiast,NULL,NULL,0,NULL,NULL 27219,166331,657700,Yearling Civic Duty Nice Answer Enlightened Excavator Nice Answer Necromancer Yearling algorithm Custodian Yearling Nice Answer Enlightened Disciplined Necromancer Nice Answer Nice Answer,NULL,Find overlapping circles algorithm data structures computational geometry pI have rectangular area where there are circles with equal radius want to find which circles overlap with other circles the output is list of element sets of overlapping circles ppI know how to check if two of the circles overlap the distance between their centers is less than the diameter can perform this check for every pair of circles but was wondering if there is better algorithm faster than codeO code ppEDIT ppThe number of circles is usually about 100 and overlappings won happen very often ppHere is some context The rectangle is battlefield in game The movement of the units is done on small steps and trying to detect collisions between units Your question is not precise enough What is the expected output circles can form chain where anyone of them overlaps with exactly and only two others What would be the output in this case,0,NULL,NULL 27220,182067,235204,Nice Answer,NULL,NULL,0,NULL,NULL 27221,928324,556989,Nice Question Editor Supporter Notable Question,NULL,NULL,0,NULL,NULL 27222,1047457,556989,Nice Question Editor Supporter Notable Question,NULL,NULL,0,NULL,NULL 27223,733129,1005805,Yearling Caucus Constituent Nice Answer Enlightened Popular Question Yearling Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27224,321147,427237,Revival Necromancer Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 27225,1477467,995591,NULL,NULL,NULL,0,NULL,NULL 27226,1070391,969210,Popular Question Yearling Caucus Constituent Popular Question Caucus Constituent Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27227,35838,877317,NULL,NULL,NULL,0,NULL,NULL 27228,190180,745918,Scholar,NULL,NULL,0,NULL,NULL 27229,265779,32688,Nice Answer Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Nice Question Great Answer Famous Question Famous Question Nice Question Yearling Caucus Good Answer Popular Question Notable Question Popular Question Necromancer Nice Question Notable Question Good Question Yearling Guru Famous Question Notable Question Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 27230,522211,1000936,NULL,NULL,NULL,0,NULL,NULL 27231,187675,344487,Self-Learner Yearling Caucus Popular Question Nice Answer Enlightened Custodian Yearling Nice Answer Notable Question Caucus Good Answer android Popular Question Good Answer Nice Question Popular Question Nice Answer Enlightened Notable Question Nice Question Caucus Guru Yearling Nice Answer Enlightened Good Question retrofit2 Notable Question Notable Question Nice Answer Enlightened retrofit,NULL,NULL,0,NULL,NULL 27232,241101,1036580,NULL,NULL,NULL,0,NULL,NULL 27233,229811,451641,Organizer Enthusiast Yearling Civic Duty Explainer Fanatic Investor Caucus Yearling Nice Answer Enlightened Documentation User Nice Answer Custodian Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 27234,934872,883303,Necromancer Revival Popular Question Yearling Necromancer Necromancer Caucus Constituent Citizen Patrol Custodian Custodian Custodian Yearling Mortarboard Revival Custodian Tag Editor Announcer Necromancer Caucus Yearling Good Answer,NULL,href http peter sh experiments chromium command line switches rel noreferrer http peter sh experiments chromium command line switches says window position is what you re looking for ppUpdating this years later to include small shell script wrote years ago but after answering this question that provides an example of how to start chrome with custom window sizes position and has the ability to create fake user data directories by name ppIt may or may not still work and has some dangerous options set but you get the idea Do not use this verbatim some of the flags may have been renamed or been removed entirely like the socks proxy commands did ppre code bin bash xFAKEUSER fake chrome user CHROMEROOT HOME chromeroot mkdir CHROMEROOT export PROFILE CHROMEROOT FAKEUSER chromium profile export DISK CACHEDIR CHROMEROOT FAKEUSER chromium profile cache export DISK CACHESIZE 4096export MEDIA CACHESIZE 4096PARANOID OPTIONS no displaying insecure content no referrers disable zero suggest disable sync cipher suite blacklist 0x0004 0x0005 0xc011 0xc007 enable sandbox logging gt dev null gt amp Applications Google Chrome app Contents MacOS Google Chrome remember cert error decisions ignore certificate errors ignore urlfetcher cert requests allow running insecure content window position 2400 400 window size 1500 1000 no pings user data dir PROFILE disk cache dir DISK CACHEDIR disk cache size DISK CACHESIZE media cache size MEDIA CACHESIZE gt amp proxy server socks4 localhost 30604 host resolver rules MAP EXCLUDE localhost code pre It does work but you need to set the user data dir flag too,0,NULL,NULL 27235,209262,787342,NULL,NULL,NULL,0,NULL,NULL 27236,355524,473435,NULL,NULL,NULL,0,NULL,NULL 27237,908786,212750,Notable Question,NULL,NULL,0,NULL,NULL 27238,131879,231298,Notable Question Favorite Question Enlightened Famous Question Great Question Popular Question Nice Answer Yearling Good Answer Popular Question Documentation User Yearling Favorite Question Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27239,241828,934282,NULL,NULL,NULL,0,NULL,NULL 27240,371703,154142,Necromancer Popular Question Nice Answer Yearling Revival Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 27241,325306,266541,Famous Question Yearling Nice Answer Nice Answer Excavator Guru Caucus Yearling Necromancer Nice Answer Famous Question Custodian Nice Answer Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 27242,608954,554283,Notable Question Electorate Yearling Necromancer Nice Answer Necromancer Good Answer Announcer Census Yearling Nice Answer Announcer,NULL,pAdding to SimonHawesome href https stackoverflow com 35779871 554283 excellent answer ve made an succinct version which utilizes some of the new typescript features realize that SimonHawesome version is intentionally verbose as to explain the underlying details ve also added an early out check so that the pipe works for href https developer mozilla org en US docs Glossary Falsy rel nofollow noreferrer falsy values if the map is codenull code ppNote that using iterator transform as done here can be more efficient since we do not need to allocate memory for temporary array as done in some of the other answers ppre codeimport Pipe PipeTransform from core name mapToIterable export class MapToIterable implements PipeTransform transform map key string any parameters any if map return undefined return Object keys map map key gt key key value map key code pre Good point ve updated my answer also return undefined instead of null,1,NULL,Iterate over object in Angular angular pI am trying to do some things in Angular Alpha 28 and am having an issue with dictionaries and NgFor ppI have an interface in TypeScript looking like this ppre codeinterface Dictionary index string string code prepIn JavaScript this will translate to an object that with data might look like this ppre codemyDict key1 value1 key2 value2 code prepI want to iterate over this and tried this ppre code lt div ngFor key value of myDict gt key value lt div gt code prepBut to no avail none of the below worked either ppre code lt div ngFor value of myDict gt value lt div gt lt div ngFor value of myDict key index gt key value lt div gt code prepIn all cases get errors like Unexpected token or Cannot find iterableDiff pipe supporting object ppWhat am missing here Is this not possible anymore The first syntax works in Angular or is the syntax different for iterating over an object pAdding to SimonHawesome href https stackoverflow com 35779871 554283 excellent answer ve made an succinct version which utilizes some of the new typescript features realize that SimonHawesome version is intentionally verbose as to explain the underlying details ve also added an early out check so that the pipe works for href https developer mozilla org en US docs Glossary Falsy rel nofollow noreferrer falsy values if the map is codenull code ppNote that using iterator transform as done here can be more efficient since we do not need to allocate memory for temporary array as done in some of the other answers ppre codeimport Pipe PipeTransform from core name mapToIterable export class MapToIterable implements PipeTransform transform map key string any parameters any if map return undefined return Object keys map map key gt key key value map key code pre 27243,6686667,1283703,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27244,107712,414489,Nice Question,NULL,NULL,0,NULL,NULL 27245,190628,945459,Popular Question,NULL,NULL,0,NULL,NULL 27246,856188,1023475,NULL,NULL,NULL,0,NULL,NULL 27247,60045,783951,Student,NULL,NULL,0,NULL,NULL 27248,85604,1010061,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27249,54499,206377,NULL,NULL,NULL,0,NULL,NULL 27250,160619,898184,NULL,NULL,NULL,0,NULL,NULL 27251,725187,319618,Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Notable Question Nice Answer Yearling Notable Question Notable Question Nice Answer Disciplined Famous Question Popular Question Famous Question Notable Question Popular Question Nice Answer Documentation Beta Documentation Pioneer Popular Question Favorite Question Good Question Famous Question Popular Question Famous Question Popular Question Favorite Question Nice Answer Popular Question Good Question Famous Question Famous Question Popular Question Caucus Good Answer Famous Question Notable Question Notable Question Favorite Question Famous Question Popular Question Popular Question Famous Question Notable Question Good Question Good Question Nice Answer Enlightened Notable Question Nice Question Yearling Good Answer Popular Question Popular Question Nice Question Caucus Popular Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Nice Question Famous Question Documentation User Notable Question Popular Question Great Question Good Question Popular Question Good Question Famous Question Census Nice Question Popular Question Notable Question Popular Question Caucus Popular Question Yearling Popular Question Popular Question Famous Question java Popular Question Famous Question Popular Question Announcer Notable Question Good Question,NULL,NULL,0,NULL,NULL 27252,14475,338373,NULL,NULL,NULL,0,NULL,NULL 27253,313894,843982,Notable Question,NULL,NULL,0,NULL,NULL 27254,606798,1003618,NULL,NULL,NULL,0,NULL,NULL 27255,15181,40294,Yearling,NULL,NULL,0,NULL,NULL 27256,588529,816977,Nice Answer Enlightened Yearling Caucus,NULL,NULL,0,NULL,NULL 27257,7570,1062658,NULL,NULL,NULL,0,NULL,NULL 27258,416450,62800,Informed,NULL,NULL,0,NULL,NULL 27259,510343,487512,Yearling Good Answer,NULL,NULL,0,NULL,NULL 27260,6421026,1039351,Scholar Student Teacher,NULL,NULL,0,NULL,NULL 27261,294614,606081,Census,NULL,NULL,0,NULL,NULL 27262,302528,630524,NULL,NULL,NULL,0,NULL,NULL 27263,305779,517128,NULL,NULL,NULL,0,NULL,NULL 27264,105810,452521,Good Question Popular Question Notable Question Favorite Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Answer Yearling Popular Question Famous Question Notable Question Popular Question Great Question Nice Question Favorite Question Famous Question Yearling Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Nice Question Famous Question Yearling Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 27265,67921,102684,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 27266,290628,442459,Curious Promoter Benefactor Self-Learner Census Popular Question Nice Question,NULL,NULL,0,NULL,NULL 27267,2891571,1360551,Informed,NULL,NULL,0,NULL,NULL 27268,1136439,320355,NULL,NULL,NULL,0,NULL,NULL 27269,292959,932348,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27270,1519163,737875,NULL,NULL,NULL,0,NULL,NULL 27271,165420,308889,Scholar Supporter,NULL,NULL,0,NULL,NULL 27272,126023,733585,NULL,NULL,NULL,0,NULL,NULL 27273,102408,3999,Notable Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 27274,1872201,138849,Famous Question Teacher,NULL,NULL,0,NULL,NULL 27275,127885,135673,Notable Question Explainer Announcer Notable Question Nice Question Yearling ruby Nice Question Caucus Constituent Census Popular Question Famous Question Yearling Caucus Constituent Popular Question Documentation User Good Question Notable Question Census Caucus Yearling,NULL,NULL,0,NULL,NULL 27276,493077,300710,Yearling Popular Question Famous Question android Popular Question Necromancer Yearling Popular Question Notable Question Yearling Popular Question Nice Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 27277,480633,89851,Custodian Custodian Informed Popular Question Notable Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 27278,7644952,568413,Yearling Great Answer Good Question Caucus Yearling Popular Question Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 27279,839135,568413,Yearling Great Answer Good Question Caucus Yearling Popular Question Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 27280,74716,369331,NULL,NULL,NULL,0,NULL,NULL 27281,2767,1442289,Yearling,NULL,NULL,0,NULL,NULL 27282,1210131,1442289,Yearling,NULL,NULL,0,NULL,NULL 27283,222579,153117,Yearling Popular Question Notable Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 27284,534677,676380,NULL,NULL,NULL,0,NULL,NULL 27285,271645,73951,Nice Answer Popular Question Yearling Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 27286,242030,743285,NULL,NULL,NULL,0,NULL,NULL 27287,185934,829676,Yearling Good Answer Nice Answer Nice Answer Yearling Good Answer Necromancer Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 27288,47856,557279,Famous Question,NULL,NULL,0,NULL,NULL 27289,178088,560399,NULL,NULL,NULL,0,NULL,NULL 27290,186001,282756,NULL,NULL,NULL,0,NULL,NULL 27291,799269,948341,Tumbleweed Commentator Editor Great Answer Revival Yearling Enlightened Necromancer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27292,35488,1244257,NULL,NULL,NULL,0,NULL,NULL 27293,894545,1537129,NULL,NULL,NULL,0,NULL,NULL 27294,1189317,1555307,NULL,NULL,NULL,0,NULL,NULL 27295,210219,644306,NULL,NULL,NULL,0,NULL,NULL 27296,123580,297899,NULL,NULL,NULL,0,NULL,NULL 27297,725528,297899,NULL,NULL,NULL,0,NULL,NULL 27298,205325,215024,Citizen Patrol,NULL,NULL,0,NULL,NULL 27299,142343,1553286,Student Supporter Popular Question Notable Question Editor Custodian,NULL,NULL,0,NULL,NULL 27300,204681,1218441,NULL,NULL,NULL,0,NULL,NULL 27301,429848,740557,Popular Question Revival,NULL,NULL,0,NULL,NULL 27302,12117,1102090,NULL,NULL,NULL,0,NULL,NULL 27303,188215,1015876,NULL,NULL,NULL,0,NULL,NULL 27304,1519260,1190669,NULL,NULL,NULL,0,NULL,NULL 27305,215395,475129,NULL,NULL,NULL,0,NULL,NULL 27306,123999,1297909,Good Answer Yearling Necromancer Popular Question Nice Answer Notable Question Nice Answer Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 27307,187581,892879,Notable Question Student,NULL,NULL,0,NULL,NULL 27308,946310,892879,Notable Question Student,NULL,NULL,0,NULL,NULL 27309,347695,892879,Notable Question Student,NULL,NULL,0,NULL,NULL 27310,200370,1399979,Good Answer Nice Answer Yearling Guru Yearling Good Answer Nice Answer Announcer Caucus Guru Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 27311,307934,1144065,Teacher,NULL,NULL,0,NULL,NULL 27312,257475,353463,Populist Yearling Tumbleweed Notable Question Yearling Popular Question Notable Question Custodian Nice Question Citizen Patrol Yearling Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 27313,85640,1286325,NULL,NULL,NULL,0,NULL,NULL 27314,992176,1328573,NULL,NULL,NULL,0,NULL,NULL 27315,275745,474121,NULL,NULL,NULL,0,NULL,NULL 27316,8510,458205,Revival Suffrage Electorate iphone Necromancer Custodian Good Answer Custodian Yearling Census Announcer Nice Answer Popular Question Yearling Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 27317,1007882,1437561,NULL,NULL,NULL,0,NULL,NULL 27318,201439,1409239,NULL,NULL,NULL,0,NULL,NULL 27319,439293,1340589,NULL,NULL,NULL,0,NULL,NULL 27320,191198,319468,Popular Question,NULL,NULL,0,NULL,NULL 27321,8626,118824,Popular Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 27322,325117,1110515,NULL,NULL,NULL,0,NULL,NULL 27323,1717729,235578,Popular Question,NULL,NULL,0,NULL,NULL 27324,205186,1120620,NULL,NULL,NULL,0,NULL,NULL 27325,73497,68544,Yearling Famous Question Guru Yearling Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 27326,1236983,784713,Informed,NULL,NULL,0,NULL,NULL 27327,394144,916128,Supporter Popular Question,NULL,NULL,0,NULL,NULL 27328,728741,89112,Yearling Good Question Popular Question Nice Answer Nice Question Notable Question Yearling Nice Answer Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27329,91142,672711,Popular Question Favorite Question Good Answer Yearling Famous Question Yearling Necromancer Great Question Popular Question,NULL,NULL,0,NULL,NULL 27330,131749,749036,NULL,NULL,NULL,0,NULL,NULL 27331,68898,891706,Necromancer Nice Answer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 27332,235164,197275,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 27333,600973,1273059,NULL,NULL,NULL,0,NULL,NULL 27334,346901,367610,NULL,NULL,NULL,0,NULL,NULL 27335,1196161,982825,NULL,NULL,NULL,0,NULL,NULL 27336,1200426,199154,Revival Nice Answer Necromancer Necromancer Nice Answer Notable Question Notable Question Yearling Necromancer Announcer Self-Learner,NULL,NULL,0,NULL,NULL 27337,20822,562401,Yearling Good Answer Yearling Nice Answer Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 27338,71292,262961,Custodian Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 27339,2559,94357,Nice Question,NULL,NULL,0,NULL,NULL 27340,189987,1093255,NULL,NULL,NULL,0,NULL,NULL 27341,204279,451945,Necromancer Yearling Notable Question Notable Question Yearling Nice Answer Nice Answer Notable Question Popular Question Favorite Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 27342,461469,221533,Yearling Popular Question Promoter Popular Question Nice Question Yearling Notable Question Popular Question Yearling Documentation User Popular Question Nice Answer Great Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27343,1532597,190744,Nice Question Famous Question Popular Question Yearling Nice Answer Necromancer Notable Question Yearling Notable Question Nice Answer Nice Answer Good Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 27344,407467,900806,NULL,NULL,NULL,0,NULL,NULL 27345,652817,406171,Caucus Notable Question Census Announcer,NULL,NULL,0,NULL,NULL 27346,63396,1139985,NULL,NULL,NULL,0,NULL,NULL 27347,7880491,1139985,NULL,NULL,NULL,0,NULL,NULL 27348,194178,595926,Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 27349,194333,595926,Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 27350,421815,1176615,Famous Question Enthusiast,NULL,NULL,0,NULL,NULL 27351,7474459,132204,Necromancer,NULL,NULL,0,NULL,NULL 27352,48776,132204,Necromancer,NULL,NULL,0,NULL,NULL 27353,10067910,1387957,NULL,NULL,NULL,0,NULL,NULL 27354,117404,1302671,NULL,NULL,NULL,0,NULL,NULL 27355,436648,381620,Popular Question Revival Critic Necromancer,NULL,NULL,0,NULL,NULL 27356,236752,1492124,Commentator Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27357,276742,20745,Nice Answer Nice Question Good Answer Nice Answer Nice Question Popular Question Nice Answer Nice Answer Nice Answer Enlightened Popular Question Yearling Good Question Famous Question Nice Answer Popular Question Nice Answer Good Question Yearling Good Answer Great Answer Great Answer Good Answer Good Answer Nice Answer Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 27358,237974,1091754,NULL,NULL,NULL,0,NULL,NULL 27359,77981,61306,NULL,NULL,NULL,0,NULL,NULL 27360,281349,458232,NULL,NULL,NULL,0,NULL,NULL 27361,541881,513080,Popular Question,NULL,NULL,0,NULL,NULL 27362,11339763,1180881,NULL,NULL,NULL,0,NULL,NULL 27363,247089,1392663,NULL,NULL,NULL,0,NULL,NULL 27364,1465301,663388,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 27365,506173,478904,NULL,NULL,NULL,0,NULL,NULL 27366,5235,2942,Nice Question Nice Answer Enlightened Nice Question Notable Question Yearling Announcer Nice Answer Famous Question Revival appharbor Notable Question Famous Question Announcer Good Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Announcer Nice Answer Announcer Good Question Yearling Notable Question Revival Nice Answer Good Question Announcer Announcer Nice Answer Enlightened Announcer Announcer docker windows Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 27367,69934,12448,Necromancer Good Question Custodian Popular Question Announcer Yearling Nice Answer Popular Question Good Question Notable Question Necromancer Yearling Nice Question Popular Question Popular Question Notable Question Yearling Necromancer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 27368,25491,454332,Notable Question Yearling Yearling Nice Answer Custodian Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 27369,1353565,804983,NULL,NULL,NULL,0,NULL,NULL 27370,109251,1054808,Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 27371,560580,476884,Good Question Informed Custodian Custodian Revival Explainer Proofreader Custodian Reviewer Necromancer Yearling Famous Question Famous Question Popular Question Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 27372,474842,476884,Good Question Informed Custodian Custodian Revival Explainer Proofreader Custodian Reviewer Necromancer Yearling Famous Question Famous Question Popular Question Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 27373,37498,1224437,Excavator Enthusiast Tumbleweed Commentator Organizer Teacher Popular Question,NULL,NULL,0,NULL,NULL 27374,9438657,720346,Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 27375,77259,345007,Notable Question Yearling Nice Answer Enlightened Notable Question Good Answer Popular Question Yearling javascript Necromancer Caucus Constituent Good Question Custodian Good Answer Custodian Census Excavator Popular Question Caucus Constituent Necromancer Yearling Cleanup,NULL,NULL,0,NULL,NULL 27376,20399,616411,Commentator Yearling,NULL,NULL,0,NULL,NULL 27377,47860,896180,NULL,NULL,NULL,0,NULL,NULL 27378,624920,1042986,NULL,NULL,NULL,0,NULL,NULL 27379,555324,530316,Notable Question Yearling Good Answer Yearling Nice Answer Excavator Guru Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 27380,432656,464473,Supporter,NULL,NULL,0,NULL,NULL 27381,100339,1405173,Student,NULL,NULL,0,NULL,NULL 27382,180108,1496974,NULL,NULL,NULL,0,NULL,NULL 27383,298369,347795,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 27384,4313649,496390,NULL,NULL,NULL,0,NULL,NULL 27385,214248,777411,NULL,NULL,NULL,0,NULL,NULL 27386,379377,1412159,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 27387,178064,991846,NULL,NULL,NULL,0,NULL,NULL 27388,35874,309563,NULL,NULL,NULL,0,NULL,NULL 27389,179868,267799,Nice Answer Editor Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 27390,23069,621627,NULL,NULL,NULL,0,NULL,NULL 27391,4882,211200,Popular Question Yearling Nice Question Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 27392,2173246,566195,NULL,NULL,NULL,0,NULL,NULL 27393,332518,566195,NULL,NULL,NULL,0,NULL,NULL 27394,141143,1178806,Custodian Custodian Commentator Civic Duty Informed Student Nice Answer Yearling Good Answer Good Answer Yearling Suffrage Vox Populi Investor Citizen Patrol Revival Announcer Yearling Great Answer Necromancer Announcer Documentation User Announcer Yearling Excavator Announcer Nice Answer Enlightened Guru Electorate Scholar Nice Answer Necromancer Announcer Custodian Revival,NULL,NULL,0,NULL,NULL 27395,409403,799454,NULL,NULL,NULL,0,NULL,NULL 27396,2526552,974929,Teacher,NULL,NULL,0,NULL,NULL 27397,122709,590803,Popular Question,NULL,NULL,0,NULL,NULL 27398,685001,459421,NULL,NULL,NULL,0,NULL,NULL 27399,927673,966036,Popular Question,NULL,NULL,0,NULL,NULL 27400,125078,1510077,NULL,NULL,NULL,0,NULL,NULL 27401,89727,862210,Notable Question,NULL,NULL,0,NULL,NULL 27402,167514,1544355,NULL,NULL,NULL,0,NULL,NULL 27403,90415,325063,Commentator,NULL,NULL,0,NULL,NULL 27404,109338,1069833,Tumbleweed,NULL,NULL,0,NULL,NULL 27405,845889,908881,NULL,NULL,NULL,0,NULL,NULL 27406,222966,1409928,NULL,NULL,NULL,0,NULL,NULL 27407,934998,539385,Famous Question Announcer,NULL,NULL,0,NULL,NULL 27408,335440,995097,NULL,NULL,NULL,0,NULL,NULL 27409,87278,660765,NULL,NULL,NULL,0,NULL,NULL 27410,25913,1036642,Supporter,NULL,NULL,0,NULL,NULL 27411,229925,1035796,Critic Informed Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27412,414181,1127724,Yearling Popular Question android Notable Question Good Answer Nice Answer Enlightened Guru Caucus Constituent Yearling Great Answer Documentation User Yearling Popular Question Custodian Custodian Popular Question Nice Answer Enlightened Populist,NULL,NULL,0,NULL,NULL 27413,414182,1127724,Yearling Popular Question android Notable Question Good Answer Nice Answer Enlightened Guru Caucus Constituent Yearling Great Answer Documentation User Yearling Popular Question Custodian Custodian Popular Question Nice Answer Enlightened Populist,NULL,NULL,0,NULL,NULL 27414,124753,747033,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27415,155042,264346,NULL,NULL,NULL,0,NULL,NULL 27416,20692,1035216,NULL,NULL,NULL,0,NULL,NULL 27417,177845,1288429,Yearling Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 27418,699981,600700,Nice Answer,NULL,NULL,0,NULL,NULL 27419,2448,255131,Yearling Good Question Popular Question Critic,NULL,NULL,0,NULL,NULL 27420,1525791,411464,Student,NULL,NULL,0,NULL,NULL 27421,455918,729274,Caucus Famous Question Self-Learner Yearling Good Question,NULL,NULL,0,NULL,NULL 27422,481351,1419937,NULL,NULL,NULL,0,NULL,NULL 27423,329321,499154,NULL,NULL,NULL,0,NULL,NULL 27424,1514967,117926,NULL,NULL,NULL,0,NULL,NULL 27425,224269,645535,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 27426,355971,1117815,Necromancer Yearling Citizen Patrol Tumbleweed Nice Answer,NULL,NULL,0,NULL,NULL 27427,12140,213154,NULL,NULL,NULL,0,NULL,NULL 27428,63544,32203,Nice Question Popular Question Good Answer Popular Question Nice Question Guru Popular Question Popular Question Nice Answer Nice Answer Notable Question Necromancer Notable Question Popular Question Good Question Popular Question Nice Question Nice Answer Nice Answer Yearling Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Good Answer Famous Question Famous Question Notable Question Good Question Yearling Great Answer Notable Question Nice Question Necromancer Necromancer Famous Question Notable Question Announcer Yearling Nice Answer Enlightened .net,NULL,NULL,0,NULL,NULL 27429,484613,1160140,NULL,NULL,NULL,0,NULL,NULL 27430,305344,1296745,Editor,NULL,NULL,0,NULL,NULL 27431,146224,1183239,Revival,NULL,NULL,0,NULL,NULL 27432,826768,624132,NULL,NULL,NULL,0,NULL,NULL 27433,168894,766232,Good Answer Yearling,NULL,NULL,0,NULL,NULL 27434,74039,645362,Custodian Custodian Custodian Popular Question Caucus Documentation User,NULL,NULL,0,NULL,NULL 27435,420692,349121,Nice Answer,NULL,NULL,0,NULL,NULL 27436,307018,1431564,NULL,NULL,NULL,0,NULL,NULL 27437,428261,575527,Good Answer Notable Question Nice Question Yearling Nice Answer Guru Great Answer Good Answer Nice Answer Good Answer Good Answer forms Good Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Guru Announcer Great Answer Nice Answer Enlightened Nice Answer Popular Question Popular Question Documentation Pioneer Nice Answer Enlightened Good Answer Notable Question Guru Nice Answer Guru Great Question Popular Question Famous Question Caucus Enlightened Announcer Nice Answer Guru Nice Answer Enlightened Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Good Question Great Answer Nice Answer Popular Question Great Answer Popular Question Good Answer Nice Answer Enlightened Generalist Nice Answer Announcer Announcer Notable Question Famous Question Announcer Popular Question Good Question Popular Question Nice Answer Announcer Tag Editor Caucus Great Answer Good Answer Announcer Announcer Announcer Guru Nice Answer Enlightened Nice Answer Announcer Great Answer Favorite Question Popular Question Nice Answer Enlightened Documentation User Nice Answer Enlightened Great Answer Guru Notable Question Good Answer Announcer Census Nice Answer Enlightened Yearling Popular Question Notable Question Notable Question Famous Question Great Answer Enlightened Populist Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Question Guru Announcer Good Question Good Answer Announcer Good Answer Nice Answer Nice Answer Announcer Good Answer Guru Famous Question,NULL,h1Synchronous vs Asynchronous h1pSynchronous execution usually refers to code executing in sequence Asynchronous execution refers to execution that doesn run in the sequence it appears in the code In the following example the synchronous operation causes the alerts to fire in sequence In the async operation while codealert code appears to execute second it doesn pp strongSynchronous strong pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codealert xD alert xD alert code pre xD div xD div xD pp strongAsynchronous strong pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codealert xD setTimeout gt alert xD alert code pre xD div xD div xD ph1Blocking vs Non blocking h1pBlocking refers to operations that block further execution until that operation finishes Non blocking refers to code that doesn block execution In the given example codelocalStorage code is blocking operation as it stalls execution to read On the other hand codefetch code is non blocking operation as it does not stall codealert code from execution ppre code Blocking 2alert var value localStorage getItem foo alert Non blocking 2alert fetch example com then gt alert alert code preh1Advantages h1pOne advantage of non blocking asynchronous operations is that you can maximize the usage of single CPU as well as memory ph2Synchronous blocking example h2pAn example of synchronous blocking operations is how some web servers like ones in Java or PHP handle IO or network requests If your code reads from file or the database your code blocks everything after it from executing In that period your machine is holding onto memory and processing time for thread emthat isn doing anything em ppIn order to cater other requests while that thread has stalled depends on your software What most server software do is spawn more threads to cater the additional requests This requires more memory consumed and more processing ph2Asynchronous non blocking example h2pAsynchronous non blocking servers like ones made in Node only use one thread to service all requests This means an instance of Node makes the most out of single thread The creators designed it with the premise that the and network operations are the bottleneck ppWhen requests arrive at the server they are serviced one at time However when the code serviced needs to query the DB for example it sends the callback to second queue emand the main thread will continue running em it doesn wait Now when the DB operation completes and returns the corresponding callback pulled out of the second queue and queued in third queue where they are pending execution When the engine gets chance to execute something else like when the execution stack is emptied it picks up callback from the third queue and executes it You can search the internet for JS event loop or watch this video https www youtube com watch 8aGhZQkoFbQ h1Synchronous vs Asynchronous h1pSynchronous execution usually refers to code executing in sequence Asynchronous execution refers to execution that doesn run in the sequence it appears in the code In the following example the synchronous operation causes the alerts to fire in sequence In the async operation while codealert code appears to execute second it doesn pp strongSynchronous strong pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codealert xD alert xD alert code pre xD div xD div xD pp strongAsynchronous strong pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codealert xD setTimeout gt alert xD alert code pre xD div xD div xD ph1Blocking vs Non blocking h1pBlocking refers to operations that block further execution until that operation finishes Non blocking refers to code that doesn block execution In the given example codelocalStorage code is blocking operation as it stalls execution to read On the other hand codefetch code is non blocking operation as it does not stall codealert code from execution ppre code Blocking 2alert var value localStorage getItem foo alert Non blocking 2alert fetch example com then gt alert alert code preh1Advantages h1pOne advantage of non blocking asynchronous operations is that you can maximize the usage of single CPU as well as memory ph2Synchronous blocking example h2pAn example of synchronous blocking operations is how some web servers like ones in Java or PHP handle IO or network requests If your code reads from file or the database your code blocks everything after it from executing In that period your machine is holding onto memory and processing time for thread emthat isn doing anything em ppIn order to cater other requests while that thread has stalled depends on your software What most server software do is spawn more threads to cater the additional requests This requires more memory consumed and more processing ph2Asynchronous non blocking example h2pAsynchronous non blocking servers like ones made in Node only use one thread to service all requests This means an instance of Node makes the most out of single thread The creators designed it with the premise that the and network operations are the bottleneck ppWhen requests arrive at the server they are serviced one at time However when the code serviced needs to query the DB for example it sends the callback to second queue emand the main thread will continue running em it doesn wait Now when the DB operation completes and returns the corresponding callback pulled out of the second queue and queued in third queue where they are pending execution When the engine gets chance to execute something else like when the execution stack is emptied it picks up callback from the third queue and executes it That engine implementation beyond the scope of this question You can always post question specifically asking for just that,0,NULL,NULL 27438,29666,263989,Organizer Explainer Proofreader Excavator Yearling Investor Altruist Popular Question Yearling django Popular Question Announcer Caucus Announcer Announcer Documentation User Popular Question Yearling Reviewer Nice Answer Enlightened python Nice Question Famous Question Popular Question Announcer Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27439,7863389,263989,Organizer Explainer Proofreader Excavator Yearling Investor Altruist Popular Question Yearling django Popular Question Announcer Caucus Announcer Announcer Documentation User Popular Question Yearling Reviewer Nice Answer Enlightened python Nice Question Famous Question Popular Question Announcer Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27440,1041685,486811,NULL,NULL,NULL,0,NULL,NULL 27441,8435516,486811,NULL,NULL,NULL,0,NULL,NULL 27442,29441,408772,NULL,NULL,NULL,0,NULL,NULL 27443,607422,1076228,Critic Commentator Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 27444,57113,18154,Good Answer Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Good Answer Good Answer Nice Answer Nice Answer Nice Answer Caucus Yearling Guru Great Answer Nice Answer Guru Notable Question Nice Answer Good Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27445,314527,1022527,NULL,NULL,NULL,0,NULL,NULL 27446,848313,1050381,NULL,NULL,NULL,0,NULL,NULL 27447,86565,1260436,NULL,NULL,NULL,0,NULL,NULL 27448,168089,1426791,NULL,NULL,NULL,0,NULL,NULL 27449,327853,1171445,Scholar,NULL,NULL,0,NULL,NULL 27450,1041280,1134948,NULL,NULL,NULL,0,NULL,NULL 27451,1193863,462233,Good Answer Nice Answer Notable Question Great Answer Guru Nice Answer Notable Question Yearling Good Answer Famous Question Good Question Necromancer Nice Question Necromancer Notable Question Popular Question Great Answer Yearling Good Answer Popular Question Nice Answer Nice Answer Guru Notable Question Famous Question Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 27452,773732,1229354,Good Question Famous Question,NULL,NULL,0,NULL,NULL 27453,176862,1311673,NULL,NULL,NULL,0,NULL,NULL 27454,75421,520246,NULL,NULL,NULL,0,NULL,NULL 27455,222938,1097920,Notable Question Good Answer Yearling Nice Question Notable Question Yearling Nice Question Yearling Good Question Popular Question Famous Question Popular Question Revival,NULL,NULL,0,NULL,NULL 27456,811806,1028871,Nice Answer Critic Caucus Commentator Revival Yearling Necromancer Caucus Constituent Yearling Autobiographer Suffrage Informed Civic Duty Vox Populi Custodian Custodian,NULL,NULL,0,NULL,NULL 27457,2607990,1028871,Nice Answer Critic Caucus Commentator Revival Yearling Necromancer Caucus Constituent Yearling Autobiographer Suffrage Informed Civic Duty Vox Populi Custodian Custodian,NULL,NULL,0,NULL,NULL 27458,917926,314349,NULL,NULL,NULL,0,NULL,NULL 27459,6119,259662,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 27460,593009,792678,NULL,NULL,NULL,0,NULL,NULL 27461,67820,277811,Yearling Notable Question Yearling Nice Answer Enlightened Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 27462,1295249,831771,Critic Yearling,NULL,NULL,0,NULL,NULL 27463,63442,1219039,Teacher,NULL,NULL,0,NULL,NULL 27464,8345331,1153051,NULL,NULL,NULL,0,NULL,NULL 27465,666414,1153051,NULL,NULL,NULL,0,NULL,NULL 27466,227543,362664,Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 27467,635825,598612,NULL,NULL,NULL,0,NULL,NULL 27468,1091688,489413,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 27469,34667,10708,Stellar Question Stellar Question Necromancer Famous Question Notable Question Yearling Great Question Popular Question Great Answer Yearling Nice Answer Enlightened Good Question Great Question Good Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27470,133632,976544,NULL,NULL,NULL,0,NULL,NULL 27471,130875,897061,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27472,18189,497905,NULL,NULL,NULL,0,NULL,NULL 27473,1118534,655436,Yearling Custodian Custodian Nice Answer Caucus Constituent Census Yearling Caucus Constituent Civic Duty Excavator Custodian Yearling Custodian Caucus Constituent,NULL,NULL,0,NULL,NULL 27474,180240,241660,Editor Commentator Curious Tumbleweed Custodian Documentation User Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27475,270889,812385,Editor Enthusiast Critic Nice Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 27476,1947494,689490,NULL,NULL,NULL,0,NULL,NULL 27477,5456699,689490,NULL,NULL,NULL,0,NULL,NULL 27478,369423,849633,Notable Question Curious,NULL,NULL,0,NULL,NULL 27479,1030456,1367663,Caucus Constituent Caucus Constituent Citizen Patrol,NULL,NULL,0,NULL,NULL 27480,1719404,1461206,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 27481,141388,1461206,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 27482,105084,335675,Yearling Good Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 27483,2425776,894937,NULL,NULL,NULL,0,NULL,NULL 27484,5017,284087,Popular Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27485,6373,1016746,Great Answer Yearling Mortarboard Necromancer Autobiographer Proofreader Guru Custodian Caucus Popular Question Necromancer Necromancer Necromancer Documentation User Custodian Custodian Yearling Census Nice Answer Custodian Necromancer Nice Answer Caucus Constituent Revival Popular Question Good Answer Necromancer Nice Answer Popular Question Pundit Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 27486,574562,456809,Necromancer Nice Answer Custodian Good Question Popular Question Necromancer Nice Answer Inquisitive Notable Question Popular Question Popular Question Enthusiast Yearling Nice Answer Caucus Good Question Popular Question Nice Question Famous Question Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Excavator Notable Question Popular Question Announcer Necromancer Yearling Notable Question Notable Question Necromancer Popular Question Popular Question Necromancer Popular Question Popular Question Nice Question Popular Question Nice Question Nice Answer Popular Question Nice Question Popular Question Tag Editor Explainer Famous Question Famous Question Popular Question Notable Question Yearling Nice Answer Notable Question Good Question Notable Question,NULL,NULL,1,No handler found for uri index type and method PUT elasticsearch pI trying to make raw NodeJS http request to my elasticsearch index using the insert document api auto increment id feature ppSo this works with codecurl code pp codecurl XPOST http host 3333 catalog products hello world code ppBut when try the same in nodejs via this ppre codevar http require http var options protocol http mehtod PUT hostname host port 3333 path catalog products http request options code prepIt returns this error pp codeNo handler found for uri catalog products and method PUT code ppHowever if add an codeid code to the end of that path it will work What wrong here,NULL 27487,744013,744393,NULL,NULL,NULL,0,NULL,NULL 27488,6603328,744393,NULL,NULL,NULL,0,NULL,NULL 27489,77266,747729,Nice Answer Yearling Popular Question Announcer Self-Learner Critic Revival,NULL,NULL,0,NULL,NULL 27490,188817,1123795,NULL,NULL,NULL,0,NULL,NULL 27491,2621529,1123795,NULL,NULL,NULL,0,NULL,NULL 27492,1379805,393781,Enthusiast Teacher Informed Autobiographer Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 27493,294594,1367638,NULL,NULL,NULL,0,NULL,NULL 27494,2539319,352358,NULL,NULL,NULL,0,NULL,NULL 27495,3139197,1275303,Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 27496,278437,1275303,Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 27497,6124428,1275303,Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 27498,227156,45793,Critic Commentator,NULL,NULL,0,NULL,NULL 27499,248028,971731,NULL,NULL,NULL,0,NULL,NULL 27500,46461,145645,Popular Question Popular Question Notable Question Good Question Nice Answer Enlightened Nice Question Famous Question Nice Question Yearling Good Question Popular Question Famous Question Good Answer Yearling Notable Question Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 27501,344294,556258,Notable Question Teacher Revival,NULL,NULL,0,NULL,NULL 27502,255140,881559,Famous Question Good Answer Citizen Patrol Famous Question Popular Question Nice Answer Famous Question Notable Question Great Answer Necromancer Popular Question Popular Question Necromancer Nice Question Popular Question Nice Question Popular Question Nice Answer Popular Question Popular Question Good Answer Necromancer Notable Question Notable Question Notable Question Good Answer Favorite Question Popular Question Popular Question Socratic Informed Great Answer Notable Question Popular Question Yearling Necromancer Necromancer Notable Question Necromancer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Caucus Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Nice Question Nice Answer Popular Question Notable Question Notable Question Popular Question Great Question Necromancer Famous Question Notable Question Popular Question Necromancer Nice Question Notable Question Popular Question Necromancer Notable Question Good Question ruby-on-rails Famous Question Popular Question Yearling Popular Question Great Answer Necromancer Nice Answer Nice Answer Popular Question Popular Question ruby-on-rails-3 Populist Popular Question Popular Question Nice Answer Good Answer Revival Necromancer Nice Answer Favorite Question Notable Question Notable Question Good Question Notable Question Notable Question Nice Answer Notable Question Yearling Necromancer Notable Question Great Answer Notable Question Popular Question Notable Question Notable Question Popular Question Great Answer,NULL,Converting camel case to underscore case in ruby ruby on rails ruby formatting camelcasing underscores pIs there any ready function which converts camel case Strings into underscore separated string ppI want something like this ppre code CamelCaseString to underscore code prepto return camel case string pp For some reason see snakecase method missing Rails,0,NULL,NULL 27503,8351894,881559,Famous Question Good Answer Citizen Patrol Famous Question Popular Question Nice Answer Famous Question Notable Question Great Answer Necromancer Popular Question Popular Question Necromancer Nice Question Popular Question Nice Question Popular Question Nice Answer Popular Question Popular Question Good Answer Necromancer Notable Question Notable Question Notable Question Good Answer Favorite Question Popular Question Popular Question Socratic Informed Great Answer Notable Question Popular Question Yearling Necromancer Necromancer Notable Question Necromancer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Caucus Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Nice Question Nice Answer Popular Question Notable Question Notable Question Popular Question Great Question Necromancer Famous Question Notable Question Popular Question Necromancer Nice Question Notable Question Popular Question Necromancer Notable Question Good Question ruby-on-rails Famous Question Popular Question Yearling Popular Question Great Answer Necromancer Nice Answer Nice Answer Popular Question Popular Question ruby-on-rails-3 Populist Popular Question Popular Question Nice Answer Good Answer Revival Necromancer Nice Answer Favorite Question Notable Question Notable Question Good Question Notable Question Notable Question Nice Answer Notable Question Yearling Necromancer Notable Question Great Answer Notable Question Popular Question Notable Question Notable Question Popular Question Great Answer,NULL,Converting camel case to underscore case in ruby ruby on rails ruby formatting camelcasing underscores pIs there any ready function which converts camel case Strings into underscore separated string ppI want something like this ppre code CamelCaseString to underscore code prepto return camel case string pp For some reason see snakecase method missing Rails,0,NULL,NULL 27504,89258,37509,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 27505,788822,294225,Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27506,587311,1025500,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27507,6555048,26111,Promoter Famous Question Notable Question Popular Question Documentation User Custodian Famous Question Famous Question,NULL,NULL,0,NULL,NULL 27508,312322,1378348,NULL,NULL,NULL,0,NULL,NULL 27509,645519,226717,Critic Famous Question Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 27510,102101,373498,Caucus Constituent Yearling Caucus Constituent Civic Duty Revival Custodian Custodian Custodian Informed,NULL,NULL,0,NULL,NULL 27511,80046,179040,Nice Question Scholar Civic Duty,NULL,NULL,0,NULL,NULL 27512,2474,730373,NULL,NULL,NULL,0,NULL,NULL 27513,496780,1249947,Yearling,NULL,NULL,0,NULL,NULL 27514,418680,808470,Announcer,NULL,NULL,0,NULL,NULL 27515,369665,198201,Good Answer Nice Answer Yearling Great Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 27516,18073,970409,Good Answer Necromancer Yearling Yearling Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 27517,197253,783667,Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 27518,375066,452384,NULL,NULL,NULL,0,NULL,NULL 27519,578572,986343,NULL,NULL,NULL,0,NULL,NULL 27520,586584,1127825,Tumbleweed Popular Question Nice Question Notable Question Caucus Constituent Yearling Yearling Necromancer,NULL,NULL,1,What is branch in code coverage for javascript unit testing javascript unit testing code coverage istanbul pI use href https gotwarlost github io istanbul rel noreferrer istanbul for code coverage of unit tests in an angularjs project There are types of coverage and they are statement branch function and line coverage Statement function and line are allright but don understand what branch is Could anyone explain what branch is Thanks,NULL 27521,27185,952912,NULL,NULL,NULL,0,NULL,NULL 27522,139272,1158719,Popular Question Custodian Commentator Documentation User Notable Question,NULL,NULL,0,NULL,NULL 27523,383857,1516484,Nice Question Yearling Notable Question Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27524,503267,457876,Excavator,NULL,NULL,0,NULL,NULL 27525,143339,520817,NULL,NULL,NULL,0,NULL,NULL 27526,135155,922292,NULL,NULL,NULL,0,NULL,NULL 27527,124768,776729,NULL,NULL,NULL,0,NULL,NULL 27528,167116,590767,Yearling Nice Answer Popular Question Pundit Popular Question Investor Popular Question Popular Question Popular Question Announcer Popular Question Popular Question Announcer Announcer Notable Question Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Announcer Revival Famous Question Revival Announcer Popular Question Announcer Nice Answer Yearling Notable Question Announcer Notable Question Popular Question Announcer Nice Answer Good Question Popular Question Nice Question Notable Question Nice Question Notable Question,NULL,pThe only way ve managed to get this to work is to use storage provider specifically for testing that doesn actually save read files ppIn your codeconfig initializers carrier wave rb code Add NullStorage class that implements the minimum interface for storage provider ppre code NullStorage provider for CarrierWave for use in tests Doesn actually upload or store files but allows test to pass as if files were stored and the use of fixtures class NullStorage attr reader uploader def initialize uploader uploader end def identifier uploader filename end def store file true end def retrieve identifier true endend code prepThen when initializing CarrierWave add clause for the test environment ppre codeif Rails env test config storage NullStorageend code prepHere is href https gist github com gshaw 378172448fc50dec4841 gist of my complete carrier wave rb for reference It also includes how to setup S3 for uploads in staging production and local storage for development so you can see how to configure CarrierWave in context ppOnce CarrierWave is configured you can simply put any string in the fixtures column to simulate an uploaded file have set up with fog get an error bucket name is required,0,NULL,NULL 27529,320891,285586,NULL,NULL,NULL,0,NULL,NULL 27530,254630,1042078,Caucus Popular Question,NULL,NULL,0,NULL,NULL 27531,49292,545904,NULL,NULL,NULL,0,NULL,NULL 27532,2372407,545904,NULL,NULL,NULL,0,NULL,NULL 27533,120163,1325908,NULL,NULL,NULL,0,NULL,NULL 27534,7652886,709022,NULL,NULL,NULL,0,NULL,NULL 27535,203773,709022,NULL,NULL,NULL,0,NULL,NULL 27536,512470,130066,Nice Answer Nice Answer Yearling Enthusiast Popular Question Nice Question Notable Question Nice Question Necromancer Yearling Popular Question Revival Notable Question Nice Answer Notable Question Yearling Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 27537,888315,848234,Popular Question Commentator Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27538,918459,1315019,Scholar,NULL,NULL,0,NULL,NULL 27539,331034,983987,NULL,NULL,NULL,0,NULL,NULL 27540,1272064,1488573,NULL,NULL,NULL,0,NULL,NULL 27541,535777,1267395,NULL,NULL,NULL,0,NULL,NULL 27542,1512894,943552,Good Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 27543,38314,417501,Notable Question Nice Answer Good Answer Announcer Booster Great Answer Announcer Announcer assembly Socratic Popular Question Nice Answer Enlightened c Good Answer Guru types Popular Question Announcer Popular Question Announcer Nice Answer Enlightened Nice Answer Announcer Nice Answer Booster Notable Question Revival gcc Good Question Nice Answer Announcer Announcer Nice Answer Taxonomist Announcer Enlightened Guru Nice Answer Enlightened Announcer Nice Question Announcer Booster Popular Question Nice Answer Enlightened Yearling Famous Question Good Answer Announcer Announcer Popular Question Good Answer Nice Answer Enlightened Nice Question Notable Question Nice Answer Necromancer Caucus Popular Question Popular Question Notable Question Nice Question Notable Question Census Announcer Nice Question linux Notable Question Good Question Nice Question Nice Question assembly Nice Answer Enlightened Notable Question Popular Question Notable Question Popular Question Nice Question x86 Nice Answer Caucus Constituent Announcer Booster Popular Question Yearling Synonymizer Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Question Good Question Revival Notable Question Good Answer x86-64 Popular Question Nice Question Popular Question Notable Question Nice Question Nice Answer Nice Question Notable Question Caucus Constituent Nice Answer Nice Answer Enlightened Good Answer c++ Announcer Nice Answer Enlightened Nice Question Populist Nice Answer Nice Question Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Good Question Popular Question nasm Announcer Popular Question Popular Question pointers Good Answer assembly Announcer Nice Answer Enlightened Nice Answer Enlightened,NULL,pHere is how pronounce them ppre bind then then to ia to lt bind as it desugars to lt map lt map replace by i0 lt map replace by lt ap ply as it is the same as Control Monad ap none just as whitespace pipe to ia pipe to index index strict ia index foo foo strict lt or alternative iexpr lt term expr or term concat plus append empty list cons of type as if Int of type Int lambda as igo ll ls go ll as cons ls lazy igo go lazy pair pre have never encountered this operator Where did you find it pAccording to the ISO standard when you convert an integer to signed type and the value is outside the range of the target type the result is implementation defined Or an implementation defined signal can be raised but don know of any compilers that do this ppIn practice the most common behavior is that the high order bits are discarded So assuming codeint code is 32 bits and codeshort code is 16 bits converting the value code0x1248642 code will probably yield bit pattern that looks like code0x8642 code And assuming two complement representation for signed types which is used on almost all systems the high order bit is the sign bit so the numeric value of the result will be code 31166 code ppre codeint sx code prepThis also involves an implicit conversion from codeshort code to codeint code Since the range of codeint code is guaranteed to cover at least the entire range of codeshort code the value is unchanged Since in your example the value of codesx code happens to be negative this change of representation is likely to involve emsign extension em propagating the code1 code sign bit to all 16 high order bits of the result ppAs indicated none of these details are required by the language standard If you really want to truncate values to narrower type it probably best to use unsigned types which have language specified wraparound behavior and perhaps explicit masking operations like this ppre codeunsigned int 0x1248642 unsigned short sx amp 0xFFFF code prepIf you have 32 bit quantity that you want to shove into 16 bit variable the first thing you should do is decide how you want your code to behave if the value doesn fit Once you ve decided that you can figure out how to write code that does what you want Sometimes truncation happens to be what you want in which case your task is going to be easy especially if you re using unsigned types Sometimes an out of range value is an error in which case you need to check for it and decide how to handle the error Sometimes you might want the value to saturate rather than truncate so you ll need to write code to do that ppKnowing how conversions work in is important but if you emstart em with that question you just might be approaching your problem from the wrong direction Unless you are programming for very esoteric platform and then you probably know you can safely assume that the truncating behaviour takes place,0,NULL,NULL 27544,234619,129151,Notable Question Custodian Notable Question Yearling Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 27545,111063,1392544,NULL,NULL,NULL,0,NULL,NULL 27546,1391282,1100726,NULL,NULL,NULL,0,NULL,NULL 27547,247620,590403,Yearling Nice Answer Yearling Notable Question Good Answer Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 27548,390327,409644,Revival Yearling Editor Supporter Necromancer Yearling Necromancer Commentator Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27549,30876,305975,Informed Editor Critic Announcer,NULL,pThis seems to work thanks Evan putting it here so the line is in context ppre codebuffer path filename zip zip filename to write or file like object name folder data txt name of file inside zip bytes blah blah blah contents of file inside zipzip zipfile ZipFile buffer zipfile ZIP DEFLATED info zipfile ZipInfo name info external attr 0777 lt lt 16L give full access to included filezip writestr info bytes zip close code prepI still like to see something that documents this An additional resource found was note on the Zip file format href http www pkware com documents casestudies APPNOTE TXT rel noreferrer http www pkware com documents casestudies APPNOTE TXT see newer answer for more correct solution https stackoverflow com 48435482 305975,0,NULL,NULL 27550,1994154,305975,Informed Editor Critic Announcer,NULL,pThis seems to work thanks Evan putting it here so the line is in context ppre codebuffer path filename zip zip filename to write or file like object name folder data txt name of file inside zip bytes blah blah blah contents of file inside zipzip zipfile ZipFile buffer zipfile ZIP DEFLATED info zipfile ZipInfo name info external attr 0777 lt lt 16L give full access to included filezip writestr info bytes zip close code prepI still like to see something that documents this An additional resource found was note on the Zip file format href http www pkware com documents casestudies APPNOTE TXT rel noreferrer http www pkware com documents casestudies APPNOTE TXT see newer answer for more correct solution https stackoverflow com 48435482 305975,0,NULL,NULL 27551,332586,938865,Yearling Famous Question Popular Question Popular Question Revival Nice Question Yearling Popular Question Announcer Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Great Question Revival Good Question Yearling,NULL,NULL,0,NULL,NULL 27552,4091171,347240,Citizen Patrol Custodian Custodian Custodian Caucus Necromancer,NULL,NULL,0,NULL,NULL 27553,2168565,714102,NULL,NULL,NULL,0,NULL,NULL 27554,876291,714102,NULL,NULL,NULL,0,NULL,NULL 27555,2333453,440687,NULL,NULL,NULL,0,NULL,NULL 27556,823688,440687,NULL,NULL,NULL,0,NULL,NULL 27557,1022445,81444,Necromancer Yearling Nice Question Citizen Patrol Good Answer Popular Question Caucus Constituent Popular Question Necromancer Popular Question Yearling Necromancer Caucus Constituent Nice Answer Famous Question Nice Answer Documentation User Census Caucus Yearling Constituent scala Custodian Nice Question Necromancer Nice Answer Notable Question Necromancer,NULL,pIf you mean flipping low with high half bits of codeByte code ppre code Byte gt gt gt gt lt lt code prepIf you want to flip every half byte on codehex string code would codegrouped code by code2 code characters then codeflip code the pairs before creating the codestring code back again ppre codeval input 44 5e405f replaceAll 9a val expected 44 e504f5 replaceAll 9a as suggested by in the commentsinput grouped map reverse mkString expected or the verbose val ab rinput grouped map case ab gt mkString expected code prepIf your input is codeList Byte code ppre codeval inputBytes input grouped map Integer parseInt 16 toByte val expectedBytes expected grouped map Integer parseInt 16 toByte inputBytes map Byte gt gt gt gt lt lt map toByte toSeq expectedBytes toSeq code pre knew there was something to flip characters Cheers,1,NULL,Easiest way to flip the endianness of byte in Scala scala pThe title says it all what is the easiest way to flip the endianness of byte in Scala ppEdit Here is an example of hex string that can be converted to codeList Byte code for what am talking about ppre code 44 5e405f7b46d912b50ea59d0f0962ed9e251042a4b31208315c406a4aa962 ff was not equal to 44 e504f5b7649d215be05ad9f09026dee95201244a3b218013c504a6a49a26 ff code pre pIf you mean flipping low with high half bits of codeByte code ppre code Byte gt gt gt gt lt lt code prepIf you want to flip every half byte on codehex string code would codegrouped code by code2 code characters then codeflip code the pairs before creating the codestring code back again ppre codeval input 44 5e405f replaceAll 9a val expected 44 e504f5 replaceAll 9a as suggested by in the commentsinput grouped map reverse mkString expected or the verbose val ab rinput grouped map case ab gt mkString expected code prepIf your input is codeList Byte code ppre codeval inputBytes input grouped map Integer parseInt 16 toByte val expectedBytes expected grouped map Integer parseInt 16 toByte inputBytes map Byte gt gt gt gt lt lt map toByte toSeq expectedBytes toSeq code pre 27558,862052,990089,Popular Question Self-Learner Documentation User Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 27559,551604,708553,NULL,NULL,NULL,0,NULL,NULL 27560,18755,1108121,Popular Question Yearling,NULL,NULL,0,NULL,NULL 27561,328395,34014,Nice Question,NULL,NULL,0,NULL,NULL 27562,9025,1237816,NULL,NULL,NULL,0,NULL,NULL 27563,280540,790122,NULL,NULL,NULL,0,NULL,NULL 27564,1032,1123378,NULL,NULL,NULL,0,NULL,NULL 27565,273890,1451442,NULL,NULL,NULL,0,NULL,NULL 27566,780048,464626,NULL,NULL,NULL,0,NULL,NULL 27567,144224,821995,Popular Question Yearling Revival Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Revival Census Announcer Popular Question Revival Popular Question Necromancer Nice Question Civic Duty Yearling Nice Answer Notable Question Notable Question Necromancer Popular Question Census Necromancer Nice Answer Yearling Famous Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27568,77894,398237,Yearling Custodian Popular Question Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 27569,472052,611908,NULL,NULL,NULL,0,NULL,NULL 27570,522530,263595,NULL,NULL,NULL,0,NULL,NULL 27571,233293,676101,NULL,NULL,NULL,0,NULL,NULL 27572,143528,1551271,NULL,NULL,NULL,0,NULL,NULL 27573,65384,1521879,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 27574,8174,802132,NULL,NULL,NULL,0,NULL,NULL 27575,17457,818220,NULL,NULL,NULL,0,NULL,NULL 27576,50568,1159694,NULL,NULL,NULL,0,NULL,NULL 27577,132728,525608,Revival Yearling Citizen Patrol Notable Question Commentator Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 27578,469686,825436,Necromancer,NULL,NULL,0,NULL,NULL 27579,285841,1019675,Enthusiast,NULL,NULL,0,NULL,NULL 27580,62719,1193104,NULL,NULL,NULL,0,NULL,NULL 27581,1113642,15908,Yearling Caucus Constituent Census Popular Question Custodian Caucus Yearling Notable Question Custodian Caucus Constituent Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 27582,67519,283489,NULL,NULL,NULL,0,NULL,NULL 27583,341481,46754,Yearling Good Answer,NULL,NULL,0,NULL,NULL 27584,567971,365815,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27585,91278,560561,Yearling Editor Notable Question Necromancer Yearling Documentation User Popular Question Popular Question Notable Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 27586,12862,578203,NULL,NULL,NULL,0,NULL,NULL 27587,361898,245037,NULL,NULL,NULL,0,NULL,NULL 27588,498333,1269435,NULL,NULL,NULL,0,NULL,NULL 27589,125110,225019,NULL,NULL,NULL,0,NULL,NULL 27590,300058,1220914,NULL,NULL,NULL,0,NULL,NULL 27591,245635,847702,NULL,NULL,NULL,0,NULL,NULL 27592,25184,268853,Notable Question Critic,NULL,NULL,0,NULL,NULL 27593,218899,110455,NULL,NULL,NULL,0,NULL,NULL 27594,38710,269892,Yearling Notable Question,NULL,NULL,0,NULL,NULL 27595,548745,1203952,NULL,NULL,NULL,0,NULL,NULL 27596,81910,243873,Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27597,1054332,1565144,NULL,NULL,NULL,0,NULL,NULL 27598,68645,449953,NULL,NULL,NULL,0,NULL,NULL 27599,168723,1037981,NULL,NULL,NULL,0,NULL,NULL 27600,150719,1261069,Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 27601,888542,1430604,Tumbleweed Student Teacher Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 27602,580516,1029144,Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27603,1125585,1100674,Famous Question Nice Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 27604,397082,1093309,NULL,NULL,NULL,0,NULL,NULL 27605,105953,489734,Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Caucus Excavator Popular Question Necromancer Popular Question Nice Answer Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 27606,1365370,825152,Necromancer Census,NULL,NULL,0,NULL,NULL 27607,85002,870431,Good Answer Yearling,NULL,NULL,0,NULL,NULL 27608,250138,488835,Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27609,430915,1129851,Yearling Yearling Popular Question Yearling Nice Answer Enlightened Popular Question Announcer,NULL,NULL,0,NULL,NULL 27610,718838,433623,Supporter Teacher,NULL,NULL,0,NULL,NULL 27611,486121,1556586,Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 27612,8111,346885,NULL,NULL,NULL,0,NULL,NULL 27613,435861,45484,Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 27614,361052,1512255,Notable Question Teacher,NULL,NULL,0,NULL,NULL 27615,361054,1512255,Notable Question Teacher,NULL,NULL,0,NULL,NULL 27616,248976,887078,Yearling,NULL,NULL,0,NULL,NULL 27617,1232598,690826,Custodian Popular Question Great Answer Yearling Good Question Necromancer Great Answer Custodian Custodian Yearling Census Custodian Cleanup Organizer Talkative Necromancer Popular Question Explainer,NULL,NULL,0,NULL,NULL 27618,160832,1294423,Nice Question Quorum Promoter Cleanup Nice Question Enthusiast Good Question Investor Altruist Necromancer Revival Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 27619,301361,376587,Necromancer Guru Yearling Populist Necromancer Nice Answer Guru Necromancer Tag Editor Nice Answer Great Answer Nice Answer Yearling Necromancer Nice Answer Nice Answer Announcer Popular Question Announcer Announcer Popular Question Famous Question Yearling Nice Answer python Notable Question Revival Necromancer,NULL,pmluebke code is not 100 correct kill can also raise EPERM access denied in which case that obviously means process exists This is supposed to work pp edited as per Jason Coombs comments ppre codeimport errnoimport osimport sysdef pid exists pid Check whether pid exists in the current process table UNIX only if pid lt return False if pid According to man kill PID refers to every process in the process group of the calling process On certain systems is valid PID but we have no way to know that in portable fashion raise ValueError invalid PID try os kill pid except OSError as err if err errno errno ESRCH ESRCH No such process return False elif err errno errno EPERM EPERM clearly means there process to deny access to return True else According to man kill possible error values are EINVAL EPERM ESRCH raise else return True code prepYou can do this on Windows unless you use pywin32 ctypes or extension module If you re OK with depending from an external lib you can use href https github com giampaolo psutil rel noreferrer psutil ppre code gt gt gt import psutil gt gt gt psutil pid exists 2353 True code pre Right but the code above will work with both Python and anyway,0,NULL,NULL 27620,892827,770243,NULL,NULL,NULL,0,NULL,NULL 27621,152019,396747,Good Answer Good Answer Revival Revival Popular Question Necromancer Populist Necromancer Yearling Nice Answer Guru Announcer Announcer Yearling Custodian Notable Question Nice Answer Announcer Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 27622,541265,988061,Custodian Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27623,105209,169944,Yearling,NULL,NULL,0,NULL,NULL 27624,19701,284437,NULL,NULL,NULL,0,NULL,NULL 27625,145874,737105,Good Answer Yearling Organizer Custodian Proofreader Investor Altruist Enthusiast Yearling Nice Answer Guru Self-Learner Student Yearling,NULL,NULL,0,NULL,NULL 27626,293665,905992,NULL,NULL,NULL,0,NULL,NULL 27627,59226,197942,NULL,NULL,NULL,0,NULL,NULL 27628,13182,50214,Good Answer css Notable Question Nice Answer Enlightened Famous Question Nice Answer Good Answer Notable Question Good Answer Yearling Nice Answer Popular Question Good Answer Inquisitive Nice Answer Good Answer Generalist Stellar Question Nice Question Nice Answer Notable Question Nice Answer Enlightened Notable Question Yearling Famous Question Nice Answer Good Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27629,540620,1007211,Civic Duty Nice Answer Popular Question Famous Question Good Question Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 27630,501084,519024,NULL,NULL,NULL,0,NULL,NULL 27631,18497,285020,Yearling Good Question Great Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 27632,275014,231174,Popular Question Famous Question Nice Question Yearling Self-Learner Favorite Question Great Question Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 27633,294999,1278259,Student Scholar,NULL,NULL,0,NULL,NULL 27634,80711,551847,NULL,NULL,NULL,0,NULL,NULL 27635,17015,613301,NULL,NULL,NULL,0,NULL,NULL 27636,178791,590976,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27637,1786769,590976,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27638,3286010,1240308,NULL,NULL,NULL,0,NULL,NULL 27639,169843,1240308,NULL,NULL,NULL,0,NULL,NULL 27640,45745,1327374,Popular Question Yearling Nice Answer Enlightened Caucus Yearling Caucus Good Answer Caucus java Yearling,NULL,NULL,0,NULL,NULL 27641,1634227,590345,Famous Question,NULL,NULL,0,NULL,NULL 27642,20929,260491,Yearling Good Answer Necromancer Yearling Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Enlightened Announcer Yearling Popular Question Announcer Popular Question Popular Question,NULL,pYou were close Here it is href http jsfiddle net 82fJh rel nofollow http jsfiddle net 82fJh It works under Chrome on OS at least ppYou had some shader uniforms formatting errors and you needed to pass the uv as varying ppre codevar sobelShader uniforms texture type value videoTexture width type value 320 height type value 240 vertexShader varying vec2 vUv void main vUv uv gl Position projectionMatrix modelViewMatrix vec4 position join fragmentShader uniform sampler2D texture uniform float width uniform float height varying vec2 vUv void main void float width float height vec2 texCoord vUv vec4 texture2D texture texCoord vec2 texture2D texture texCoord vec2 texture2D texture texCoord vec2 texture2D texture texCoord vec2 texture2D texture texCoord texture2D texture texCoord vec2 texture2D texture texCoord vec2 texture2D texture texCoord vec2 texture2D texture texCoord vec2 vec4 sobel horizEdge vec4 sobel vertEdge vec3 sobel sqrt sobel horizEdge rgb sobel horizEdge rgb sobel vertEdge rgb sobel vertEdge rgb gl FragColor vec4 sobel join code prepthree js 53 Updated to work with current version of three js and current standard getUserMedia API http jsfiddle net 82fJh 45 tested with Firefox 55,0,NULL,NULL 27643,94612,189734,Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27644,330676,346101,NULL,NULL,NULL,0,NULL,NULL 27645,207731,822769,NULL,NULL,NULL,0,NULL,NULL 27646,13567,589391,Yearling Necromancer Critic Nice Answer Necromancer Nice Answer Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 27647,82690,838347,NULL,NULL,NULL,0,NULL,NULL 27648,177892,802376,NULL,NULL,NULL,0,NULL,NULL 27649,72242,633947,NULL,NULL,NULL,0,NULL,NULL 27650,4617,304990,Notable Question Yearling Nice Question Necromancer Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 27651,282175,686280,Popular Question,NULL,NULL,0,NULL,NULL 27652,227015,823059,NULL,NULL,NULL,0,NULL,NULL 27653,1363989,534447,NULL,NULL,NULL,0,NULL,NULL 27654,663255,1214877,NULL,NULL,NULL,0,NULL,NULL 27655,2995346,1267331,NULL,NULL,NULL,0,NULL,NULL 27656,2656742,454884,Yearling Self-Learner Famous Question Guru Yearling,NULL,NULL,0,NULL,NULL 27657,143916,982804,Notable Question Nice Question Editor Tumbleweed,NULL,NULL,0,NULL,NULL 27658,27661,839997,NULL,NULL,NULL,0,NULL,NULL 27659,995579,963828,NULL,NULL,NULL,0,NULL,NULL 27660,803988,126912,Notable Question Popular Question Great Answer Nice Answer Yearling Famous Question Popular Question Famous Question Yearling Good Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27661,8690790,1060179,Popular Question,NULL,NULL,0,NULL,NULL 27662,1892107,1060179,Popular Question,NULL,NULL,0,NULL,NULL 27663,176686,1268810,NULL,NULL,NULL,0,NULL,NULL 27664,85314,284701,Nice Question Famous Question Yearling Custodian Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 27665,338166,1354227,NULL,NULL,NULL,0,NULL,NULL 27666,53363,1000021,Good Answer Yearling,NULL,NULL,0,NULL,NULL 27667,260367,193385,Popular Question Popular Question Yearling Revival Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 27668,192511,976815,NULL,NULL,NULL,0,NULL,NULL 27669,7794,264130,NULL,NULL,NULL,0,NULL,NULL 27670,17839,30632,Notable Question Custodian Autobiographer Good Question Yearling Guru Yearling Famous Question Yearling Custodian,NULL,NULL,0,NULL,NULL 27671,260322,858754,NULL,NULL,NULL,0,NULL,NULL 27672,301922,1214501,Popular Question Nice Question Good Question Popular Question Yearling Good Answer Famous Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 27673,30873,646700,NULL,NULL,NULL,0,NULL,NULL 27674,162343,710109,NULL,NULL,NULL,0,NULL,NULL 27675,1100851,329984,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 27676,24548,8376,Revival Notable Question Nice Answer Yearling Guru Necromancer Caucus Populist Necromancer Necromancer Yearling Good Answer Popular Question Necromancer Famous Question Nice Answer Necromancer Great Answer Notable Question Announcer Nice Answer Yearling Populist Good Answer Popular Question,NULL,NULL,0,NULL,NULL 27677,483658,8376,Revival Notable Question Nice Answer Yearling Guru Necromancer Caucus Populist Necromancer Necromancer Yearling Good Answer Popular Question Necromancer Famous Question Nice Answer Necromancer Great Answer Notable Question Announcer Nice Answer Yearling Populist Good Answer Popular Question,NULL,NULL,0,NULL,NULL 27678,241215,346620,Famous Question Yearling Revival,NULL,NULL,0,NULL,NULL 27679,900554,1220278,Nice Answer,NULL,NULL,0,NULL,NULL 27680,26847,1446659,Scholar Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 27681,762399,627641,Good Answer Yearling Good Answer Necromancer Yearling Critic Commentator Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 27682,22502,325640,NULL,NULL,NULL,0,NULL,NULL 27683,1466220,594406,Yearling Nice Answer Necromancer Necromancer Tumbleweed Announcer Nice Answer Yearling Enthusiast Necromancer Nice Answer Good Answer Good Answer Announcer Yearling Guru,NULL,NULL,0,NULL,NULL 27684,262132,258566,Good Answer Nice Question Yearling Famous Question Popular Question Famous Question Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 27685,290522,408628,Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27686,48312,454103,Nice Question Good Answer Notable Question Nice Answer Famous Question Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Good Question Good Question Popular Question Strunk & White Nice Answer Taxonomist Good Question Yearling Popular Question Notable Question Popular Question Popular Question Announcer Guru Popular Question Popular Question Notable Question Nice Question Notable Question Populist Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Good Answer Announcer Popular Question Electorate Notable Question Nice Answer Popular Question Caucus Famous Question Notable Question Nice Answer Popular Question Notable Question Yearling Great Question Popular Question Good Answer Famous Question Notable Question Popular Question Great Question Popular Question Popular Question Nice Question Notable Question Custodian Nice Question Popular Question Guru Favorite Question Popular Question Notable Question Necromancer Notable Question Popular Question Notable Question Necromancer Revival Yearling Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 27687,307369,906172,NULL,NULL,NULL,0,NULL,NULL 27688,2410,712060,NULL,NULL,NULL,0,NULL,NULL 27689,531585,1269021,Editor Supporter Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 27690,477391,779231,NULL,NULL,NULL,0,NULL,NULL 27691,337983,1482083,NULL,NULL,NULL,0,NULL,NULL 27692,126177,73603,Good Answer Notable Question Good Answer Yearling Nice Answer Notable Question Nice Question Nice Answer Enlightened Good Answer Notable Question Guru Nice Answer Yearling Nice Answer Nice Answer Nice Answer Notable Question Yearling Nice Answer Good Question Great Question Disciplined Popular Question,NULL,NULL,0,NULL,NULL 27693,153160,1332827,NULL,NULL,NULL,0,NULL,NULL 27694,1280072,1189889,NULL,NULL,NULL,0,NULL,NULL 27695,108929,223615,Yearling Good Answer,NULL,NULL,0,NULL,NULL 27696,350745,98867,Revival Yearling Nice Answer Revival Nice Answer Necromancer Yearling Nice Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 27697,277519,293198,Yearling Nice Answer Yearling Good Answer Yearling Guru Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 27698,1325,931322,NULL,NULL,NULL,0,NULL,NULL 27699,25501,883104,Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 27700,88297,1001673,NULL,NULL,NULL,0,NULL,NULL 27701,721433,447625,NULL,NULL,NULL,0,NULL,NULL 27702,126430,451858,NULL,NULL,NULL,0,NULL,NULL 27703,234010,146517,Necromancer,NULL,NULL,0,NULL,NULL 27704,4895688,458505,Nice Answer,NULL,NULL,0,NULL,NULL 27705,3235777,458505,Nice Answer,NULL,NULL,0,NULL,NULL 27706,173601,458505,Nice Answer,NULL,NULL,0,NULL,NULL 27707,1088199,390868,NULL,NULL,NULL,0,NULL,NULL 27708,163610,1461016,NULL,NULL,NULL,0,NULL,NULL 27709,50983,1209937,Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer Tenacious Yearling Unsung Hero Enthusiast,NULL,NULL,0,NULL,NULL 27710,456969,220790,Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 27711,6639496,968610,Popular Question,NULL,NULL,0,NULL,NULL 27712,233469,711535,NULL,NULL,NULL,0,NULL,NULL 27713,41303,1197663,Yearling Great Answer Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 27714,8918,433836,NULL,NULL,NULL,0,NULL,NULL 27715,103159,1454793,NULL,NULL,NULL,0,NULL,NULL 27716,10764653,115293,NULL,NULL,NULL,0,NULL,NULL 27717,380,115293,NULL,NULL,NULL,0,NULL,NULL 27718,926044,861409,NULL,NULL,NULL,0,NULL,NULL 27719,185665,735899,Necromancer Yearling Necromancer Yearling Yearling Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 27720,203054,918911,NULL,NULL,NULL,0,NULL,NULL 27721,127234,428488,NULL,NULL,NULL,0,NULL,NULL 27722,73047,304920,Revival,NULL,NULL,0,NULL,NULL 27723,1393948,937833,NULL,NULL,NULL,0,NULL,NULL 27724,48109,937833,NULL,NULL,NULL,0,NULL,NULL 27725,159398,145319,Popular Question Notable Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 27726,910209,1117685,Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 27727,223028,1382292,Yearling Caucus Organizer Yearling Caucus Custodian Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 27728,259185,1000309,Nice Answer Enlightened Nice Question Custodian Yearling Custodian Excavator Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 27729,2272,460989,Famous Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 27730,61771,1224443,Yearling Nice Answer Enlightened Populist Good Answer Good Answer Popular Question Taxonomist Yearling Popular Question Nice Question Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 27731,181585,646675,NULL,NULL,NULL,0,NULL,NULL 27732,445170,977619,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 27733,81765,600458,NULL,NULL,NULL,0,NULL,NULL 27734,23419,114672,Nice Answer Nice Answer Enlightened Nice Answer Great Answer Guru Famous Question Nice Answer Yearling Great Answer Nice Answer Yearling Good Answer Nice Answer Guru Notable Question Nice Answer Great Answer Yearling Benefactor,NULL,NULL,0,NULL,NULL 27735,1089935,949406,Nice Question Notable Question Yearling Popular Question Popular Question Necromancer Popular Question Popular Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27736,1678502,949406,Nice Question Notable Question Yearling Popular Question Popular Question Necromancer Popular Question Popular Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 27737,335617,500270,Nice Answer Popular Question Populist Yearling Popular Question Good Question Popular Question Famous Question Popular Question Notable Question Good Question Notable Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 27738,32387,1086300,NULL,NULL,NULL,0,NULL,NULL 27739,165439,761702,NULL,NULL,NULL,0,NULL,NULL 27740,503829,1507867,Yearling Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 27741,166094,1344758,NULL,NULL,NULL,0,NULL,NULL 27742,706444,1321956,NULL,NULL,NULL,0,NULL,NULL 27743,29704,745622,NULL,NULL,NULL,0,NULL,NULL 27744,168911,1338657,Student,NULL,NULL,0,NULL,NULL 27745,1031089,1338657,Student,NULL,NULL,0,NULL,NULL 27746,50854,166844,Popular Question Good Question Yearling Popular Question Guru Notable Question Popular Question Necromancer Notable Question Nice Answer Yearling Nice Answer Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27747,969238,846273,Good Answer Nice Answer Guru Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Question Nice Question scala Nice Answer Enlightened Nice Answer Caucus Guru Famous Question Constituent Good Answer Popular Question Good Answer Nice Answer Guru Good Answer Census Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Great Answer Popular Question Nice Answer Enlightened Popular Question Good Question Yearling Caucus Good Answer Good Answer Announcer Guru Good Answer Documentation User Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened cocoa Necromancer Good Answer Announcer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Announcer Good Answer Nice Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Question,NULL,pThe main inconvenience of codejava util concurrent Future code is the fact that you can get the value without blocking ppIn fact the only way to retrieve value is the codeget code method that href http docs oracle com javase docs api java util concurrent Future html rel noreferrer quoting from the docs pblockquote pWaits if necessary for the computation to complete and then retrieves its result blockquotepWith codescala concurrent Future code you get instead real non blocking computation as you can attach callbacks for completion success failure or simply map over it and chain multiple Futures together in monadic fashion ppLong story short scala Future allows for asynchronous computation without blocking more threads than necessary Yep CompletableFuture is nicer strictly talking about java concurrent Future in my answer pAutomatic codeUnit code inference href https github com scala scala pull 3260 rel noreferrer has been deprecated in scala 11 and the reason behind this is that it can lead to confusing behavior especially for people learning the language ppHere an example ppre codeclass Foo value val new Foo code prepThis should not compile right You are calling the constructor with no arguments where one is required Surprisingly until scala 10 this compiles just fine with no errors or warnings ppAnd that because the compiler inferred codeUnit code argument so it actually replaced your code with ppre codeval new Foo Unit Foo Unit code prepAs the newly introduced warning message says emthis is unlikely to be what you want em ppAnother famous example is this ppre codescala gt List toSet res1 Boolean false code prepcalling codetoSet code should be compile time error since codetoSet code does not take arguments but the compiler desperately tries to make it compile ultimately interpreting the code as ppre codescala gt List toSet apply code prepwhich means test whether code code belongs to the set Since it not the case you get codefalse code ppSo starting from scala 11 you have to be explicit if you want to pass code code aka codeUnit code as an argument That why you have to write ppre codeRight code prepinstead of ppre codeRight code prehrp emexamples taken from href https www youtube com watch umUIkMQlzNk rel noreferrer Simplifying Scala The Past Present and Future by Simon Ochsenreither em added link to the PR that introduced the deprecation Simon video seems lost pAutomatic codeUnit code inference href https github com scala scala pull 3260 rel noreferrer has been deprecated in scala 11 and the reason behind this is that it can lead to confusing behavior especially for people learning the language ppHere an example ppre codeclass Foo value val new Foo code prepThis should not compile right You are calling the constructor with no arguments where one is required Surprisingly until scala 10 this compiles just fine with no errors or warnings ppAnd that because the compiler inferred codeUnit code argument so it actually replaced your code with ppre codeval new Foo Unit Foo Unit code prepAs the newly introduced warning message says emthis is unlikely to be what you want em ppAnother famous example is this ppre codescala gt List toSet res1 Boolean false code prepcalling codetoSet code should be compile time error since codetoSet code does not take arguments but the compiler desperately tries to make it compile ultimately interpreting the code as ppre codescala gt List toSet apply code prepwhich means test whether code code belongs to the set Since it not the case you get codefalse code ppSo starting from scala 11 you have to be explicit if you want to pass code code aka codeUnit code as an argument That why you have to write ppre codeRight code prepinstead of ppre codeRight code prehrp emexamples taken from href https www youtube com watch umUIkMQlzNk rel noreferrer Simplifying Scala The Past Present and Future by Simon Ochsenreither em ah no found Edited the link h1Update 14 09 17 h1pWhile this answer may work the recommended solution for static check as clarified by several Apple engineers is to define custom compiler flag targeting iOS Simulators For detailed instructions on how do to it see href https stackoverflow com 37124071 846273 answer ph3Original answer h3pIf you need static check not runtime if else you can detect the simulator directly but you can detect iOS on desktop architecture like follows ppre code if arch i386 arch x86 64 amp amp os iOS endif code prepClearly this is false on device but it returns true for the iOS Simulator as specified in the href https developer apple com library prerelease ios documentation Swift Conceptual BuildingCocoaApps InteractingWithCAPIs html apple ref doc uid TP40014216 CH8 XID 21 rel noreferrer documentation pblockquote pThe arch i386 build configuration returns true when code is compiled for the 32–bit iOS simulator blockquotepIf you are developing for simulator other than iOS you can simply vary the codeos code parameter ppDetect the strongwatchOS strong simulator ppre code if arch i386 arch x86 64 amp amp os watchOS endif code prepDetect the strongtvOS strong simulator ppre code if arch i386 arch x86 64 amp amp os tvOS endif code prepOr even detect strongany strong simulator ppre code if arch i386 arch x86 64 amp amp os iOS os watchOS os tvOS endif code prehrpIf you instead are ok with runtime check you can inspect the codeTARGET OS SIMULATOR code variable or codeTARGET IPHONE SIMULATOR code in iOS and below which is truthy on simulator ppPlease notice that this is different and slightly more limited than using preprocessor flag For instance you won be able to use it in place where codeif else code is syntactically invalid outside of functions scopes ppSay for example that you want to have different imports on the device and on the simulator This is impossible with dynamic check whereas it trivial with static check ppre code if arch i386 arch x86 64 amp amp os iOS import Foo else import Bar endif code prepAlso since the flag is replaced with code0 code or code1 code by the swift preprocessor if you directly use it in codeif else code expression the compiler will raise warning about unreachable code ppIn order to work around this warning see one of the other answers aware this is not super reliable What macro are you talking about Apple may have added after my answer and be happy to change it to more reliable solution h1Update 14 09 17 h1pWhile this answer may work the recommended solution for static check as clarified by several Apple engineers is to define custom compiler flag targeting iOS Simulators For detailed instructions on how do to it see href https stackoverflow com 37124071 846273 answer ph3Original answer h3pIf you need static check not runtime if else you can detect the simulator directly but you can detect iOS on desktop architecture like follows ppre code if arch i386 arch x86 64 amp amp os iOS endif code prepClearly this is false on device but it returns true for the iOS Simulator as specified in the href https developer apple com library prerelease ios documentation Swift Conceptual BuildingCocoaApps InteractingWithCAPIs html apple ref doc uid TP40014216 CH8 XID 21 rel noreferrer documentation pblockquote pThe arch i386 build configuration returns true when code is compiled for the 32–bit iOS simulator blockquotepIf you are developing for simulator other than iOS you can simply vary the codeos code parameter ppDetect the strongwatchOS strong simulator ppre code if arch i386 arch x86 64 amp amp os watchOS endif code prepDetect the strongtvOS strong simulator ppre code if arch i386 arch x86 64 amp amp os tvOS endif code prepOr even detect strongany strong simulator ppre code if arch i386 arch x86 64 amp amp os iOS os watchOS os tvOS endif code prehrpIf you instead are ok with runtime check you can inspect the codeTARGET OS SIMULATOR code variable or codeTARGET IPHONE SIMULATOR code in iOS and below which is truthy on simulator ppPlease notice that this is different and slightly more limited than using preprocessor flag For instance you won be able to use it in place where codeif else code is syntactically invalid outside of functions scopes ppSay for example that you want to have different imports on the device and on the simulator This is impossible with dynamic check whereas it trivial with static check ppre code if arch i386 arch x86 64 amp amp os iOS import Foo else import Bar endif code prepAlso since the flag is replaced with code0 code or code1 code by the swift preprocessor if you directly use it in codeif else code expression the compiler will raise warning about unreachable code ppIn order to work around this warning see one of the other answers just saw the comment It has couple of benefits that ve just highlighted in my edit first you don need to work around warning not big deal but still and most importantly your solution would be dynamic check which is different than pre compiler step More in the answer above h1Update 14 09 17 h1pWhile this answer may work the recommended solution for static check as clarified by several Apple engineers is to define custom compiler flag targeting iOS Simulators For detailed instructions on how do to it see href https stackoverflow com 37124071 846273 answer ph3Original answer h3pIf you need static check not runtime if else you can detect the simulator directly but you can detect iOS on desktop architecture like follows ppre code if arch i386 arch x86 64 amp amp os iOS endif code prepClearly this is false on device but it returns true for the iOS Simulator as specified in the href https developer apple com library prerelease ios documentation Swift Conceptual BuildingCocoaApps InteractingWithCAPIs html apple ref doc uid TP40014216 CH8 XID 21 rel noreferrer documentation pblockquote pThe arch i386 build configuration returns true when code is compiled for the 32–bit iOS simulator blockquotepIf you are developing for simulator other than iOS you can simply vary the codeos code parameter ppDetect the strongwatchOS strong simulator ppre code if arch i386 arch x86 64 amp amp os watchOS endif code prepDetect the strongtvOS strong simulator ppre code if arch i386 arch x86 64 amp amp os tvOS endif code prepOr even detect strongany strong simulator ppre code if arch i386 arch x86 64 amp amp os iOS os watchOS os tvOS endif code prehrpIf you instead are ok with runtime check you can inspect the codeTARGET OS SIMULATOR code variable or codeTARGET IPHONE SIMULATOR code in iOS and below which is truthy on simulator ppPlease notice that this is different and slightly more limited than using preprocessor flag For instance you won be able to use it in place where codeif else code is syntactically invalid outside of functions scopes ppSay for example that you want to have different imports on the device and on the simulator This is impossible with dynamic check whereas it trivial with static check ppre code if arch i386 arch x86 64 amp amp os iOS import Foo else import Bar endif code prepAlso since the flag is replaced with code0 code or code1 code by the swift preprocessor if you directly use it in codeif else code expression the compiler will raise warning about unreachable code ppIn order to work around this warning see one of the other answers see my latest edit not sure whether this is what you re referring to but checking the value of TARGET OS SIMULATOR at runtime is different than preprocessor step h1Update 14 09 17 h1pWhile this answer may work the recommended solution for static check as clarified by several Apple engineers is to define custom compiler flag targeting iOS Simulators For detailed instructions on how do to it see href https stackoverflow com 37124071 846273 answer ph3Original answer h3pIf you need static check not runtime if else you can detect the simulator directly but you can detect iOS on desktop architecture like follows ppre code if arch i386 arch x86 64 amp amp os iOS endif code prepClearly this is false on device but it returns true for the iOS Simulator as specified in the href https developer apple com library prerelease ios documentation Swift Conceptual BuildingCocoaApps InteractingWithCAPIs html apple ref doc uid TP40014216 CH8 XID 21 rel noreferrer documentation pblockquote pThe arch i386 build configuration returns true when code is compiled for the 32–bit iOS simulator blockquotepIf you are developing for simulator other than iOS you can simply vary the codeos code parameter ppDetect the strongwatchOS strong simulator ppre code if arch i386 arch x86 64 amp amp os watchOS endif code prepDetect the strongtvOS strong simulator ppre code if arch i386 arch x86 64 amp amp os tvOS endif code prepOr even detect strongany strong simulator ppre code if arch i386 arch x86 64 amp amp os iOS os watchOS os tvOS endif code prehrpIf you instead are ok with runtime check you can inspect the codeTARGET OS SIMULATOR code variable or codeTARGET IPHONE SIMULATOR code in iOS and below which is truthy on simulator ppPlease notice that this is different and slightly more limited than using preprocessor flag For instance you won be able to use it in place where codeif else code is syntactically invalid outside of functions scopes ppSay for example that you want to have different imports on the device and on the simulator This is impossible with dynamic check whereas it trivial with static check ppre code if arch i386 arch x86 64 amp amp os iOS import Foo else import Bar endif code prepAlso since the flag is replaced with code0 code or code1 code by the swift preprocessor if you directly use it in codeif else code expression the compiler will raise warning about unreachable code ppIn order to work around this warning see one of the other answers afraid swift doesn allow such flexibility h1Update 14 09 17 h1pWhile this answer may work the recommended solution for static check as clarified by several Apple engineers is to define custom compiler flag targeting iOS Simulators For detailed instructions on how do to it see href https stackoverflow com 37124071 846273 answer ph3Original answer h3pIf you need static check not runtime if else you can detect the simulator directly but you can detect iOS on desktop architecture like follows ppre code if arch i386 arch x86 64 amp amp os iOS endif code prepClearly this is false on device but it returns true for the iOS Simulator as specified in the href https developer apple com library prerelease ios documentation Swift Conceptual BuildingCocoaApps InteractingWithCAPIs html apple ref doc uid TP40014216 CH8 XID 21 rel noreferrer documentation pblockquote pThe arch i386 build configuration returns true when code is compiled for the 32–bit iOS simulator blockquotepIf you are developing for simulator other than iOS you can simply vary the codeos code parameter ppDetect the strongwatchOS strong simulator ppre code if arch i386 arch x86 64 amp amp os watchOS endif code prepDetect the strongtvOS strong simulator ppre code if arch i386 arch x86 64 amp amp os tvOS endif code prepOr even detect strongany strong simulator ppre code if arch i386 arch x86 64 amp amp os iOS os watchOS os tvOS endif code prehrpIf you instead are ok with runtime check you can inspect the codeTARGET OS SIMULATOR code variable or codeTARGET IPHONE SIMULATOR code in iOS and below which is truthy on simulator ppPlease notice that this is different and slightly more limited than using preprocessor flag For instance you won be able to use it in place where codeif else code is syntactically invalid outside of functions scopes ppSay for example that you want to have different imports on the device and on the simulator This is impossible with dynamic check whereas it trivial with static check ppre code if arch i386 arch x86 64 amp amp os iOS import Foo else import Bar endif code prepAlso since the flag is replaced with code0 code or code1 code by the swift preprocessor if you directly use it in codeif else code expression the compiler will raise warning about unreachable code ppIn order to work around this warning see one of the other answers this proved to be helpful advice to hundreds of people so far compensating for missing API Instead of hijacking the answer by signing comment on top just communicate updated the answer to clarify this is no longer an up to date solution and ve provided link to the one that looks more correct,0,NULL,NULL 27748,993,1471380,NULL,NULL,NULL,0,NULL,NULL 27749,231885,484389,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27750,772191,802922,NULL,NULL,NULL,0,NULL,NULL 27751,465138,556730,Notable Question Popular Question Notable Question Good Answer Popular Question Yearling Revival Custodian Notable Question Nice Answer Popular Question Yearling Popular Question Notable Question Nice Answer Pundit Excavator Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27752,78308,385803,NULL,NULL,NULL,0,NULL,NULL 27753,181951,25853,NULL,NULL,NULL,0,NULL,NULL 27754,51501,55696,NULL,NULL,NULL,0,NULL,NULL 27755,1365318,1155142,Yearling Good Answer ruby-on-rails ruby-on-rails-3 ruby Guru Nice Question Caucus Yearling Revival Notable Question Popular Question Nice Answer Caucus Constituent Nice Answer Enlightened Good Answer Census Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27756,72049,774742,NULL,NULL,NULL,0,NULL,NULL 27757,8442,1164249,Yearling Popular Question Nice Answer Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 27758,298976,460593,Curious Cleanup,NULL,NULL,0,NULL,NULL 27759,22438,64250,Yearling Great Question Proofreader Caucus Constituent Yearling Custodian Favorite Question Caucus Tumbleweed Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27760,3813022,64250,Yearling Great Question Proofreader Caucus Constituent Yearling Custodian Favorite Question Caucus Tumbleweed Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27761,453374,499240,NULL,NULL,NULL,0,NULL,NULL 27762,353964,1226509,Nice Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 27763,1344558,820836,NULL,NULL,NULL,0,NULL,NULL 27764,1357217,1320179,NULL,NULL,NULL,0,NULL,NULL 27765,23399,1141793,NULL,NULL,NULL,0,NULL,NULL 27766,314753,1463630,Editor Teacher Informed Supporter Commentator Autobiographer Critic Yearling Enthusiast Yearling Nice Answer Enlightened Yearling Good Answer Yearling Guru Student Scholar Custodian Yearling Documentation User Great Answer Curious Census Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 27767,1822804,779569,NULL,NULL,NULL,0,NULL,NULL 27768,91301,1165774,Necromancer Critic,NULL,NULL,0,NULL,NULL 27769,1580832,151377,Notable Question Popular Question Announcer Notable Question Yearling Notable Question Notable Question Famous Question Nice Answer Enlightened Nice Question Popular Question Famous Question Nice Question Good Question Notable Question Favorite Question Yearling Popular Question Favorite Question Notable Question Notable Question Notable Question Popular Question Great Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27770,797916,1146745,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27771,520809,1066102,Student,NULL,NULL,0,NULL,NULL 27772,164773,1068126,Commentator Caucus Constituent Census,NULL,NULL,0,NULL,NULL 27773,5639,998971,NULL,NULL,NULL,0,NULL,NULL 27774,930948,757067,NULL,NULL,NULL,0,NULL,NULL 27775,27838,413856,Commentator Yearling Necromancer Necromancer Critic Nice Answer Nice Answer Yearling Necromancer Yearling Revival Good Answer Good Answer,NULL,NULL,0,NULL,NULL 27776,66342,162732,Student Nice Answer Yearling Nice Answer Enlightened Revival Yearling Good Answer Yearling python,NULL,NULL,0,NULL,NULL 27777,13697,74435,Yearling Tag Editor Yearling Nice Answer Enlightened Peer Pressure Popular Question Yearling Announcer Great Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 27778,117976,51458,NULL,NULL,NULL,0,NULL,NULL 27779,37701,1304926,Informed Revival,NULL,NULL,0,NULL,NULL 27780,44995,609650,NULL,NULL,NULL,0,NULL,NULL 27781,3885049,609650,NULL,NULL,NULL,0,NULL,NULL 27782,182212,543644,NULL,NULL,NULL,0,NULL,NULL 27783,24332,582254,NULL,NULL,NULL,0,NULL,NULL 27784,676638,290901,Nice Answer,NULL,NULL,0,NULL,NULL 27785,443459,55935,Famous Question Yearling Notable Question Popular Question Custodian Civic Duty Nice Question Popular Question Nice Question Popular Question Yearling Notable Question Revival Revival Nice Question Popular Question Popular Question Nice Question Nice Question Revival Famous Question Yearling Nice Question Good Answer Popular Question Famous Question Necromancer Famous Question Popular Question,NULL,pInstead of just replacing in the original string you can do copying with on the fly replacement which avoids having to move characters in the string This will have much better complexity and cache behavior so expect huge improvement Or you can use href http www tena sda org doc boost d3 df1 namespaceboost 1spirit 1xml html boost spirit xml encode or href http code google com pugixml http code google com pugixml ppre codevoid encode std string amp data std string buffer buffer reserve data size for size pos pos data size pos switch data pos case amp buffer append amp amp break case buffer append amp quot break case buffer append amp apos break case lt buffer append amp lt break case gt buffer append amp gt break default buffer append amp data pos break data swap buffer code prep strongEDIT strong small improvement can be achieved by using an heuristic to determine the size of the buffer Replace the codebuffer reserve code line with codedata size code 10 or something similar depending of how much replacements are expected if your objective is escaping as per the original question then believe this related question answers it https stackoverflow com questions 1091945 what characters do need to escape in xml documents,0,NULL,NULL 27786,2644942,973024,Yearling,NULL,NULL,0,NULL,NULL 27787,55446,562631,Yearling Nice Answer Enlightened Popular Question Notable Question Nice Answer Notable Question Famous Question Caucus Constituent Revival Favorite Question Yearling Popular Question Guru Custodian Famous Question Popular Question Caucus Necromancer Notable Question Nice Answer Yearling Nice Answer Enlightened Good Answer Notable Question,NULL,NULL,0,NULL,NULL 27788,138092,572581,Necromancer,NULL,NULL,0,NULL,NULL 27789,136770,394317,Famous Question Caucus Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27790,3670392,1093031,NULL,NULL,NULL,0,NULL,NULL 27791,685398,1267935,NULL,NULL,NULL,0,NULL,NULL 27792,1752617,717485,Popular Question,NULL,NULL,0,NULL,NULL 27793,103184,1388965,NULL,NULL,NULL,0,NULL,NULL 27794,11307,982428,NULL,NULL,pExpanding on Madara answer had to make some changes to make it work on Chrome 47 2526 80 not tested on anything else Hopefully this can save someone some time ppThis snippet is modification of that answer with the following changes pullifilter code el disabled code lilicheck type of input before excluding code checked code liliRequest type to codex www form urlencoded code li ulpWith the following result ppre codefunction ajaxSubmit form callback var xhr new XMLHttpRequest var params filter call form elements function el return el type in checkbox radio el checked filter function el return el name Nameless elements die filter function el return el disabled Disabled elements die map function el return encodeURIComponent el name encodeURIComponent el value join amp Then join all the strings by amp xhr open POST form action xhr setRequestHeader Content type application www form urlencoded xhr onload callback bind xhr xhr send params code pre Thanks this worked found the www problem but not the other two There strange character at the end of this line by the way xhr onload callback bind xhr,0,NULL,NULL 27795,403173,1082657,Popular Question Tumbleweed Nice Question Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 27796,781591,1296274,Necromancer,NULL,NULL,0,NULL,NULL 27797,233760,35416,Famous Question Stellar Question Famous Question Notable Question Famous Question Famous Question Popular Question Nice Question Yearling Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Custodian Custodian Yearling Popular Question Notable Question Popular Question Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 27798,284262,1337467,Editor,NULL,NULL,0,NULL,NULL 27799,222379,29139,NULL,NULL,NULL,0,NULL,NULL 27800,100325,1242183,Announcer,NULL,NULL,0,NULL,NULL 27801,113328,403872,Nice Answer Enlightened Good Answer Necromancer Revival Yearling Caucus Necromancer Necromancer Necromancer Yearling Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 27802,1285581,1427604,Good Answer Yearling Tumbleweed Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 27803,88285,811740,Announcer,NULL,NULL,0,NULL,NULL 27804,960939,811740,Announcer,NULL,NULL,0,NULL,NULL 27805,127333,561167,NULL,NULL,NULL,0,NULL,NULL 27806,78562,68621,NULL,NULL,NULL,0,NULL,NULL 27807,518967,935740,Good Answer,NULL,NULL,0,NULL,NULL 27808,887387,603566,NULL,NULL,NULL,0,NULL,NULL 27809,15382,103076,Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 27810,1304121,500372,NULL,NULL,NULL,0,NULL,NULL 27811,195051,500372,NULL,NULL,NULL,0,NULL,NULL 27812,377768,724325,NULL,NULL,NULL,0,NULL,NULL 27813,93310,1237531,Notable Question Informed Famous Question Citizen Patrol Excavator Critic Notable Question Yearling Revival Popular Question Electorate Documentation User Necromancer Yearling Popular Question Popular Question Nice Answer Custodian,NULL,NULL,0,NULL,NULL 27814,1371326,1341353,NULL,NULL,NULL,0,NULL,NULL 27815,51868,430205,NULL,NULL,NULL,0,NULL,NULL 27816,829607,824406,NULL,NULL,NULL,0,NULL,NULL 27817,3330,1076885,NULL,NULL,NULL,0,NULL,NULL 27818,719071,398851,NULL,NULL,NULL,0,NULL,NULL 27819,34239,159695,Popular Question Popular Question Good Question Notable Question Caucus Popular Question Yearling,NULL,NULL,1,In How to point to different members with offset at run time pointers struct member pI want to use single pointer codept code and offset codesize offp code to update the value of either codemyNFO valueA code or codemyNFO valueB code depends on run time conditions ppI can set codept code to code amp myNFO code but do not know the proper type of codept code and how should calculate codeoffp code ppEdited pulli pI forget to mention the structures used are allocated at runtime lili pI am using href https github com attractivechaos klib blob master khash rel nofollow khash which need to distinguish whether key exists If use codept amp pNFO gt valueA code have to write similar codes twice Thus want to determine which member first and then turn to the hash li ulhrpre codetypedef struct uint16 valueA uint16 valueB const char fileName attribute packed Info Info myNFO pNFO pNFO calloc sizeof Info size offp amp myNFO valueB amp myNFO valueA if ret pt pNFO else pt pNFO offp pt 100 code pre,NULL 27820,316757,1405260,Editor Scholar,NULL,NULL,0,NULL,NULL 27821,208598,395804,Necromancer Good Answer Good Answer Yearling Popular Question Necromancer Notable Question Caucus Constituent Nice Answer Necromancer Necromancer Necromancer Custodian Nice Answer Nice Answer Nice Answer Famous Question Good Answer Good Answer Yearling Nice Answer Necromancer Necromancer Documentation User Necromancer Nice Answer Popular Question Great Answer Caucus Necromancer Nice Question Notable Question Popular Question Nice Question Yearling Nice Answer Necromancer Famous Question Good Answer Good Question,NULL,NULL,0,NULL,NULL 27822,307615,1305027,Necromancer,NULL,NULL,0,NULL,NULL 27823,554778,635928,NULL,NULL,NULL,0,NULL,NULL 27824,10233,186429,Good Question Nice Answer Organizer Famous Question Popular Question Yearling Nice Question Nice Question Yearling Notable Question Popular Question Good Answer Civic Duty Popular Question infinispan Yearling Good Question,NULL,NULL,0,NULL,NULL 27825,565669,284588,Excavator Yearling Nice Answer Guru Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 27826,9716,576195,Critic Nice Answer,NULL,pTaken from the href http manpages ubuntu com manpages precise en man1 cp html rel noreferrer man page ppre code no clobber do not overwrite an existing file overrides previous option code prepExample ppre codecp myoldfile txt mycopiedfile txt code pre Note this will exit with an error if the file exists To exit with success try cp source txt destination txt true,0,NULL,NULL 27827,25781,659820,Nice Answer Popular Question Popular Question Curious Notable Question Notable Question,NULL,NULL,0,NULL,NULL 27828,250670,7894,Good Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Good Answer Yearling Great Question Guru jquery Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 27829,34791,714803,NULL,NULL,NULL,0,NULL,NULL 27830,271416,1073639,NULL,NULL,NULL,0,NULL,NULL 27831,183112,348183,Electorate Popular Question Necromancer Famous Question Nice Question Good Question Yearling Popular Question Great Question Popular Question Revival Popular Question Nice Question Popular Question Stellar Question Notable Question Notable Question Famous Question Famous Question Popular Question Notable Question Famous Question Yearling Nice Answer Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 27832,1310339,1079717,NULL,NULL,NULL,0,NULL,NULL 27833,122854,1511462,NULL,NULL,NULL,0,NULL,NULL 27834,1345640,1200839,NULL,NULL,NULL,0,NULL,NULL 27835,2517241,517460,Popular Question Famous Question Notable Question Nice Question Yearling Popular Question Inquisitive Notable Question Popular Question Yearling Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27836,82863,382880,Critic Tag Editor Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 27837,18382,6329,Guru Guru Necromancer Great Answer Yearling Famous Question Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 27838,664838,749152,Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 27839,268547,1255892,NULL,NULL,NULL,0,NULL,NULL 27840,648705,542632,NULL,NULL,NULL,0,NULL,NULL 27841,856413,702342,Supporter,NULL,NULL,0,NULL,NULL 27842,50289,1009032,NULL,NULL,NULL,0,NULL,NULL 27843,1503566,737449,NULL,NULL,NULL,0,NULL,NULL 27844,638550,1388145,NULL,NULL,NULL,0,NULL,NULL 27845,551469,485836,Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 27846,585393,161281,Announcer Popular Question Commentator Caucus,NULL,NULL,0,NULL,NULL 27847,212963,261572,NULL,NULL,NULL,0,NULL,NULL 27848,181544,1466073,NULL,NULL,NULL,0,NULL,NULL 27849,166540,325575,NULL,NULL,NULL,0,NULL,NULL 27850,7137759,1405826,Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 27851,254979,1536618,NULL,NULL,NULL,0,NULL,NULL 27852,421035,434107,NULL,NULL,NULL,0,NULL,NULL 27853,277471,1521565,Informed Autobiographer Supporter,NULL,NULL,0,NULL,NULL 27854,228641,414997,NULL,NULL,NULL,0,NULL,NULL 27855,927228,994072,NULL,NULL,NULL,0,NULL,NULL 27856,337731,1212305,NULL,NULL,NULL,0,NULL,NULL 27857,1687342,1382682,NULL,NULL,NULL,0,NULL,NULL 27858,40853,1382682,NULL,NULL,NULL,0,NULL,NULL 27859,7944045,1382682,NULL,NULL,NULL,0,NULL,NULL 27860,54793,26659,Famous Question Self-Learner Famous Question Notable Question Good Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 27861,1361192,1137497,NULL,NULL,NULL,0,NULL,NULL 27862,170378,726428,Informed,NULL,NULL,0,NULL,NULL 27863,135310,1161491,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 27864,67159,326438,NULL,NULL,NULL,0,NULL,NULL 27865,1023956,703197,NULL,NULL,NULL,0,NULL,NULL 27866,82583,27563,Popular Question Necromancer Organizer Explainer Revival Proofreader Yearling Nice Answer Revival Caucus Announcer Announcer Nice Answer Yearling Announcer Civic Duty Custodian Yearling,NULL,NULL,0,NULL,NULL 27867,73669,1057639,Excavator Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 27868,203013,1121405,Popular Question,NULL,NULL,0,NULL,NULL 27869,253108,536048,NULL,NULL,NULL,0,NULL,NULL 27870,162916,141200,Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Investor Altruist Proofreader Nice Answer Enlightened Custodian Yearling Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 27871,395726,960295,Teacher Yearling Revival Famous Question Popular Question,NULL,NULL,0,NULL,NULL 27872,241217,1270420,NULL,NULL,NULL,0,NULL,NULL 27873,160634,440103,NULL,NULL,NULL,0,NULL,NULL 27874,885377,1196782,NULL,NULL,NULL,0,NULL,NULL 27875,50285,1276443,NULL,NULL,NULL,0,NULL,NULL 27876,162963,361203,NULL,NULL,NULL,0,NULL,NULL 27877,1895027,1375071,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27878,111047,1147203,NULL,NULL,NULL,0,NULL,NULL 27879,529825,534592,NULL,NULL,NULL,0,NULL,NULL 27880,10179454,534592,NULL,NULL,NULL,0,NULL,NULL 27881,525067,43502,Yearling Famous Question Famous Question Yearling Great Question,NULL,NULL,0,NULL,NULL 27882,1511898,982371,NULL,NULL,NULL,0,NULL,NULL 27883,420276,96982,Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Question Caucus Constituent Reviewer Taxonomist Census Nice Answer Yearling Nice Answer Guru Caucus Constituent Documentation User Good Answer Census Popular Question Enlightened Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 27884,284692,273246,Yearling Good Question Popular Question Popular Question Notable Question Yearling Notable Question Nice Answer Favorite Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 27885,1205998,691366,Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 27886,453243,1335390,Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27887,924367,804623,Notable Question,NULL,NULL,0,NULL,NULL 27888,1189503,1267818,Editor Tumbleweed Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 27889,280117,405418,Nice Answer Excavator Yearling,NULL,NULL,0,NULL,NULL 27890,2915908,742508,Nice Question,NULL,NULL,0,NULL,NULL 27891,142900,1136651,NULL,NULL,NULL,0,NULL,NULL 27892,1845917,439167,Teacher Notable Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 27893,36561,910344,NULL,NULL,NULL,0,NULL,NULL 27894,14849,1289608,NULL,NULL,NULL,0,NULL,NULL 27895,509822,389255,Notable Question Nice Question Great Answer Notable Question Nice Question Yearling Caucus Good Answer Notable Question Yearling Great Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 27896,1055024,1125700,NULL,NULL,NULL,0,NULL,NULL 27897,410347,1244086,NULL,NULL,NULL,0,NULL,NULL 27898,210470,910321,NULL,NULL,NULL,0,NULL,NULL 27899,214046,1528895,Necromancer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 27900,45962,1072494,NULL,NULL,NULL,0,NULL,NULL 27901,161218,842171,NULL,NULL,NULL,0,NULL,NULL 27902,1387071,1367788,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Good Question Nice Question Notable Question Yearling Nice Question Famous Question Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 27903,268,988888,NULL,NULL,NULL,0,NULL,NULL 27904,91876,605625,NULL,NULL,NULL,0,NULL,NULL 27905,167207,241646,Popular Question Custodian Yearling Notable Question Good Answer Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 27906,22244,338620,Revival,NULL,NULL,0,NULL,NULL 27907,348849,102536,Guru Good Answer Nice Answer Yearling Enlightened Good Answer Popular Question Good Answer Nice Answer Enlightened Autobiographer Nice Answer Yearling Nice Answer Caucus Civic Duty Guru Documentation User Necromancer Guru Yearling,NULL,pRepost and expansion on my answer to href https stackoverflow com questions 4625604 akima interpolation algorithm another SO question that was closed as duplicate of this question as suggested by comment on that question ppAkima original paper new method of interpolation and smooth curve fitting based on local procedures Journal of ACM 17 1970 589 602 pp href http student ndhu edu tw u9111023 akima pdf rel nofollow noreferrer http www leg ufpr br lib exe fetch php wiki internas biblioteca akima pdf ppC implementation pp href http packages debian org source squeeze spline rel nofollow noreferrer https github com ampl gsl blob master interpolation akima ppC implementation pp href https github com mathnet mathnet numerics blob master src Numerics Interpolation Algorithms AkimaSplineInterpolation cs rel nofollow noreferrer https gist github com dreikanter 3526685 ppDelphi implementation see procedure BuildAkimaSpline in delphi src spline3 pas pp href http www alglib net translator re alglib delphi zip rel nofollow noreferrer http www alglib net translator re alglib delphi zip ppAkima Fortran 66 implementation pp href http cran project org web packages akima rel nofollow noreferrer http cran project org web packages akima ppFortran 90 implementation pp href http miyoshi googlecode com svn history r72 trunk common common f90 rel nofollow noreferrer http miyoshi googlecode com svn history r72 trunk common common f90 ppJava implementation pp href http code google com msnlab4 source browse trunk src br edu ufcg msn interpolacao spline AkimaCubicSplineInterpolator java spec svn83 amp 83 rel nofollow noreferrer https commons apache org proper commons math jacoco org apache commons math3 analysis interpolation AkimaSplineInterpolator java html ppLisp implementation for AutoCAD 2d Polylines pp href http autocad xarch at code candido akima lsp rel nofollow noreferrer http autocad xarch at code candido akima lsp ppMatlab implementation pp href http www mathworks se matlabcentral fileexchange 1814 akima interpolation rel nofollow noreferrer http www mathworks se matlabcentral fileexchange 1814 akima interpolation ppPascal implementation href http jean pierre moreau pagesperso orange fr Cplus akima txt rel nofollow noreferrer program description pp href http jean pierre moreau pagesperso orange fr Pascal akima pas txt rel nofollow noreferrer http jean pierre moreau pagesperso orange fr Pascal akima pas txt ppPython implementation pp href http www lfd uci edu gohlke code akima py html rel nofollow noreferrer http www lfd uci edu gohlke code akima py html ppVB6 implementation see subroutine BuildAkimaSpline in vb6 src spline3 bas pp href http www alglib net translator re alglib vb6 zip rel nofollow noreferrer http www alglib net translator re alglib vb6 zip pp href http www koders com cpp fid1393B9D668316C1700966643DE0609660B9CB13A aspx 22Brian Smith 22 rel nofollow noreferrer http www koders com cpp fid1393B9D668316C1700966643DE0609660B9CB13A aspx 22Brian Smith 22 found replacements for the broken links where possible,0,NULL,NULL 27908,348394,1140412,NULL,NULL,NULL,0,NULL,NULL 27909,115928,369194,Revival Yearling Revival Tumbleweed Yearling Revival Announcer Revival Curious Yearling Nice Question Census Civic Duty Informed Yearling Necromancer,NULL,NULL,0,NULL,NULL 27910,151987,659689,NULL,NULL,NULL,0,NULL,NULL 27911,92099,68667,NULL,NULL,NULL,0,NULL,NULL 27912,252755,991961,Popular Question,NULL,NULL,0,NULL,NULL 27913,159209,730555,NULL,NULL,NULL,0,NULL,NULL 27914,133505,4735,Notable Question,NULL,NULL,0,NULL,NULL 27915,14195,1131118,NULL,NULL,NULL,0,NULL,NULL 27916,568228,617884,NULL,NULL,NULL,0,NULL,NULL 27917,917264,265766,Notable Question,NULL,NULL,0,NULL,NULL 27918,47689,614258,NULL,NULL,NULL,0,NULL,NULL 27919,252010,1224861,NULL,NULL,NULL,0,NULL,NULL 27920,70295,759784,Census,NULL,NULL,0,NULL,NULL 27921,1218248,1523821,NULL,NULL,NULL,0,NULL,NULL 27922,70333,1139244,NULL,NULL,NULL,0,NULL,NULL 27923,208556,576732,Yearling Announcer Yearling Census Yearling,NULL,NULL,0,NULL,NULL 27924,154893,1451089,NULL,NULL,NULL,0,NULL,NULL 27925,456818,426213,Popular Question Nice Question Excavator Yearling Caucus Famous Question Necromancer Yearling Custodian Popular Question Notable Question Custodian Nice Question Nice Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27926,189226,574526,NULL,NULL,NULL,0,NULL,NULL 27927,313591,280503,Famous Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27928,221629,310549,Popular Question,NULL,NULL,0,NULL,NULL 27929,385652,81657,Popular Question,NULL,NULL,0,NULL,NULL 27930,287944,473895,Yearling Autobiographer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 27931,17349,170546,NULL,NULL,NULL,0,NULL,NULL 27932,693970,1408927,Commentator,NULL,NULL,0,NULL,NULL 27933,239019,1408927,Commentator,NULL,NULL,0,NULL,NULL 27934,401768,571496,Popular Question,NULL,NULL,0,NULL,NULL 27935,468943,1096810,NULL,NULL,NULL,0,NULL,NULL 27936,122087,383716,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 27937,15852,31480,Populist Popular Question Nice Answer Enlightened Notable Question Informed Popular Question Nice Answer Nice Answer Good Answer Nice Question Announcer Great Answer Yearling Good Answer Caucus Guru Great Answer Guru Famous Question Popular Question Yearling Census Good Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27938,4689288,31480,Populist Popular Question Nice Answer Enlightened Notable Question Informed Popular Question Nice Answer Nice Answer Good Answer Nice Question Announcer Great Answer Yearling Good Answer Caucus Guru Great Answer Guru Famous Question Popular Question Yearling Census Good Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27939,124358,970059,Tumbleweed,NULL,NULL,0,NULL,NULL 27940,22992,387558,Popular Question Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 27941,1084846,387127,NULL,NULL,NULL,0,NULL,NULL 27942,87882,578971,NULL,NULL,NULL,0,NULL,NULL 27943,621593,1427300,NULL,NULL,NULL,0,NULL,NULL 27944,275480,440753,Nice Question Yearling Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27945,177020,256642,NULL,NULL,NULL,0,NULL,NULL 27946,1108550,366786,Famous Question Good Question Nice Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 27947,1824124,366786,Famous Question Good Question Nice Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 27948,296761,81742,NULL,NULL,NULL,0,NULL,NULL 27949,450271,1033460,NULL,NULL,NULL,0,NULL,NULL 27950,450545,389829,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27951,177310,697081,Popular Question Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 27952,458708,722121,Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Yearling Nice Answer Great Answer Good Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Guru Census Reversal Good Answer Nice Answer Nice Answer Populist Good Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Documentation User Nice Answer Enlightened Guru Great Answer Guru Good Answer Census Good Answer Popular Question Good Answer Guru Caucus Good Answer Guru Nice Answer Enlightened Yearling Good Answer Guru Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Great Answer Good Answer Announcer,NULL,pUnder Python you can do this nicely ppre code gt gt gt head tail 13 21 34 55 gt gt gt head1 gt gt gt tail 13 21 34 55 code prepA new feature in is to use the code code operator in unpacking to mean any extra values It is described in href http www python org dev peps pep 3132 rel noreferrer PEP 3132 Extended Iterable Unpacking This also has the advantage of working on any iterable not just sequences ppIt also emreally em readable ppAs described in the PEP if you want to do the equivalent under without potentially making temporary list you have to do this ppre codeit iter iterable head it next tail list it code prepNaturally if you are working on list the easiest way without the syntax is ppre codehead tail seq seq code pre They are both the same they both take the head element and construct new list containing the tail elements No difference in complexity Another class could implement getitem setitem to do the tail operation lazily but the built in list does not pUnder Python you can do this nicely ppre code gt gt gt head tail 13 21 34 55 gt gt gt head1 gt gt gt tail 13 21 34 55 code prepA new feature in is to use the code code operator in unpacking to mean any extra values It is described in href http www python org dev peps pep 3132 rel noreferrer PEP 3132 Extended Iterable Unpacking This also has the advantage of working on any iterable not just sequences ppIt also emreally em readable ppAs described in the PEP if you want to do the equivalent under without potentially making temporary list you have to do this ppre codeit iter iterable head it next tail list it code prepNaturally if you are working on list the easiest way without the syntax is ppre codehead tail seq seq code pre No Python main list class is an array list This would be as it involves copying the tail to new list with one get for the head,0,NULL,NULL 27953,77572,84565,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 27954,399243,605016,NULL,NULL,NULL,0,NULL,NULL 27955,883625,1322772,Yearling Revival Nice Answer Enlightened Yearling Nice Answer Caucus Necromancer Excavator Caucus Yearling,NULL,NULL,0,NULL,NULL 27956,292350,1313,Revival Yearling Notable Question Nice Question Notable Question Nice Answer Famous Question Nice Question Notable Question Good Answer Nice Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 27957,1037368,444005,NULL,NULL,NULL,0,NULL,NULL 27958,179234,241587,Popular Question Nice Answer Popular Question Great Question Popular Question Famous Question Favorite Question Yearling Favorite Question Nice Answer Popular Question Yearling Great Question Popular Question,NULL,NULL,0,NULL,NULL 27959,277413,1321141,Famous Question Yearling Popular Question Nice Answer Caucus Constituent Popular Question Yearling Popular Question Autobiographer Informed Popular Question,NULL,NULL,0,NULL,NULL 27960,5081157,1321141,Famous Question Yearling Popular Question Nice Answer Caucus Constituent Popular Question Yearling Popular Question Autobiographer Informed Popular Question,NULL,NULL,0,NULL,NULL 27961,655433,1168994,Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 27962,87876,1319570,NULL,NULL,NULL,0,NULL,NULL 27963,488491,933607,Notable Question,NULL,NULL,0,NULL,NULL 27964,360232,692871,Yearling,NULL,NULL,0,NULL,NULL 27965,52658,471689,NULL,NULL,NULL,0,NULL,NULL 27966,96088,1203161,Popular Question,NULL,NULL,0,NULL,NULL 27967,979815,909532,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 27968,314341,809092,Popular Question Yearling Revival Necromancer Self-Learner Popular Question Popular Question Citizen Patrol Custodian Caucus,NULL,NULL,0,NULL,NULL 27969,49891,80504,NULL,NULL,NULL,0,NULL,NULL 27970,797015,480390,NULL,NULL,NULL,0,NULL,NULL 27971,5903,589983,Popular Question Yearling Guru Revival Nice Answer Enlightened Curious Yearling Necromancer Popular Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 27972,891200,1150741,NULL,NULL,NULL,0,NULL,NULL 27973,41511,1530350,NULL,NULL,NULL,0,NULL,NULL 27974,113741,223193,NULL,NULL,NULL,0,NULL,NULL 27975,339142,846422,Critic Yearling Popular Question Necromancer Notable Question Nice Answer Yearling Notable Question Great Answer Good Answer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 27976,1507584,1093000,NULL,NULL,,0,, 27977,448996,1093000,NULL,NULL,NULL,0,NULL,NULL 27978,709439,337695,Necromancer Supporter,NULL,NULL,0,NULL,NULL 27979,637965,203816,Necromancer Nice Answer Caucus Critic Census,NULL,NULL,0,NULL,NULL 27980,121057,639334,NULL,NULL,NULL,0,NULL,NULL 27981,31015,711813,NULL,NULL,NULL,0,NULL,NULL 27982,78182,315533,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 27983,94230,1360295,NULL,NULL,NULL,0,NULL,NULL 27984,811400,883307,NULL,NULL,NULL,0,NULL,NULL 27985,1236150,677792,NULL,NULL,NULL,0,NULL,NULL 27986,177497,451607,NULL,NULL,NULL,0,NULL,NULL 27987,543816,115004,Editor Popular Question,NULL,NULL,0,NULL,NULL 27988,2399,202064,Necromancer Nice Answer Yearling Custodian Great Question Famous Question Yearling Famous Question Popular Question Good Answer Announcer Famous Question Yearling,NULL,NULL,0,NULL,NULL 27989,106460,631730,Yearling Populist,NULL,NULL,0,NULL,NULL 27990,538125,1413416,NULL,NULL,NULL,0,NULL,NULL 27991,2999,792388,Critic,NULL,NULL,0,NULL,NULL 27992,667243,589805,NULL,NULL,NULL,0,NULL,NULL 27993,1809003,294061,NULL,NULL,NULL,0,NULL,NULL 27994,49699,872779,NULL,NULL,NULL,0,NULL,NULL 27995,11873,6369,Good Answer Good Answer Notable Question Yearling Taxonomist Nice Question Nice Answer Nice Answer Good Answer Good Answer Favorite Question Great Answer Good Answer Nice Question Yearling Famous Question Nice Question Good Answer Tag Editor Yearling Notable Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 27996,136093,189440,Yearling Necromancer Caucus Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 27997,332777,5700,Famous Question Good Answer Yearling Custodian Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 27998,17466,190403,Popular Question Popular Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 27999,46278,25504,NULL,NULL,NULL,0,NULL,NULL 28000,85994,295648,Commentator Popular Question,NULL,NULL,0,NULL,NULL 28001,75789,1020295,Popular Question Supporter,NULL,NULL,0,NULL,NULL 28002,34822,169175,Stellar Question Good Question Nice Question Necromancer Famous Question Yearling Notable Question Self-Learner Great Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 28003,2145868,478524,NULL,NULL,NULL,0,NULL,NULL 28004,1506008,635914,NULL,NULL,NULL,0,NULL,NULL 28005,320995,965648,Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28006,459817,139614,Autobiographer Yearling Informed Custodian Enthusiast Yearling Yearling Organizer Yearling purescript Tag Editor Custodian Custodian Fanatic Critic Yearling Caucus Census Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28007,17738,403477,Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28008,11074,351116,Nice Answer,NULL,NULL,0,NULL,NULL 28009,1656942,509796,NULL,NULL,NULL,0,NULL,NULL 28010,67903,203573,Yearling Popular Question Popular Question Custodian Yearling Custodian Custodian Good Answer Excavator Great Question Yearling,NULL,NULL,0,NULL,NULL 28011,71170,1316225,mongoid Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 28012,253435,607587,NULL,NULL,NULL,0,NULL,NULL 28013,79626,244235,NULL,NULL,NULL,0,NULL,NULL 28014,522466,47749,Editor Good Answer,NULL,NULL,0,NULL,NULL 28015,275187,157477,Good Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 28016,123204,1507438,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28017,380444,90613,Yearling Good Answer Good Answer Nice Answer Good Answer Good Answer Yearling Famous Question Notable Question Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28018,10018802,90613,Yearling Good Answer Good Answer Nice Answer Good Answer Good Answer Yearling Famous Question Notable Question Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28019,5436,1090181,NULL,NULL,NULL,0,NULL,NULL 28020,7921,1458367,Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 28021,111914,221981,NULL,NULL,NULL,0,NULL,NULL 28022,1252580,27522,Famous Question Yearling,NULL,NULL,0,NULL,NULL 28023,14776,1038136,NULL,NULL,NULL,0,NULL,NULL 28024,336395,252381,Notable Question,NULL,NULL,0,NULL,NULL 28025,1439937,1349003,Popular Question,NULL,NULL,0,NULL,NULL 28026,209489,700604,NULL,NULL,NULL,0,NULL,NULL 28027,60649,700214,NULL,NULL,NULL,0,NULL,NULL 28028,89017,1267666,NULL,NULL,NULL,0,NULL,NULL 28029,332127,1105476,NULL,NULL,NULL,0,NULL,NULL 28030,185025,2720,Yearling Popular Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 28031,701285,694048,NULL,NULL,NULL,0,NULL,NULL 28032,639827,626160,NULL,NULL,NULL,0,NULL,NULL 28033,23519,178651,Announcer Yearling Tenacious Popular Question Necromancer Necromancer Necromancer Nice Question Necromancer Necromancer Yearling Famous Question Popular Question Nice Answer Good Answer Nice Answer Nice Answer Necromancer Caucus Popular Question Notable Question Necromancer Yearling,NULL,NULL,1,NULL,How to check if program is run in Bash on Ubuntu on Windows and not just plain Ubuntu linux windows bash ubuntu windows subsystem for linux pPretty straightforward the usual places to figure out the OS you re on seem to be identical to plain Ubuntu on Ubuntu for Windows For example codeuname code is identical to native GNU Linux install and code etc os version code is identical to Ubuntu Trusty Tahr install ppThe only thing can think of is to check if code mnt Windows code exists but not sure if that foolproof idea pThe following works in bash on Windows 10 macOS and Linux ppre code bin bashset eif grep qE Microsoft WSL proc version amp gt dev null then echo Windows 10 Bash else echo Anything else fi code prepYou need to check for both Microsoft and WSL per href https github com Microsoft BashOnWindows issues 423 issuecomment 221627364 rel noreferrer this comment by Ben Hillis WSL Developer pblockquote pFor the time being this is probably the best way to do it can promise that we ll never change the content of these ProcFs files but think it unlikely we ll change it to something that doesn contain Microsoft or WSL ppre code proc sys kernel osrelease proc version code pre blockquote 28034,1147659,381651,Notable Question Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 28035,438077,1213865,NULL,NULL,NULL,0,NULL,NULL 28036,144899,72911,Popular Question Revival Notable Question Yearling Nice Question Necromancer Nice Answer Enlightened Civic Duty Nice Answer Revival Yearling Necromancer Nice Question Famous Question Inquisitive Nice Answer Necromancer Popular Question Necromancer Yearling Popular Question Informed Tag Editor Nice Answer Custodian,NULL,pThe following is context manager that attaches signal handler for codeSIGINT code If the context manager signal handler is called the signal is delayed by only passing the signal to the original handler when the context manager exits ppre codeimport signalimport loggingclass DelayedKeyboardInterrupt object def enter self self signal received False self old handler signal signal signal SIGINT self handler def handler self sig frame self signal received sig frame logging debug SIGINT received Delaying KeyboardInterrupt def exit self type value traceback signal signal signal SIGINT self old handler if self signal received self old handler self signal received with DelayedKeyboardInterrupt stuff here will not be interrupted by SIGINT critical code code pre that is because signal handlers can only occur between the “atomic” instructions of the Python interpreter 3rd point from https docs python org library signal html pThe following is context manager that attaches signal handler for codeSIGINT code If the context manager signal handler is called the signal is delayed by only passing the signal to the original handler when the context manager exits ppre codeimport signalimport loggingclass DelayedKeyboardInterrupt object def enter self self signal received False self old handler signal signal signal SIGINT self handler def handler self sig frame self signal received sig frame logging debug SIGINT received Delaying KeyboardInterrupt def exit self type value traceback signal signal signal SIGINT self old handler if self signal received self old handler self signal received with DelayedKeyboardInterrupt stuff here will not be interrupted by SIGINT critical code code pre But that will shadow something from the global namespace If this is an issue for you because you have global called signal then the best solution is to put this code in it own module pThe following is context manager that attaches signal handler for codeSIGINT code If the context manager signal handler is called the signal is delayed by only passing the signal to the original handler when the context manager exits ppre codeimport signalimport loggingclass DelayedKeyboardInterrupt object def enter self self signal received False self old handler signal signal signal SIGINT self handler def handler self sig frame self signal received sig frame logging debug SIGINT received Delaying KeyboardInterrupt def exit self type value traceback signal signal signal SIGINT self old handler if self signal received self old handler self signal received with DelayedKeyboardInterrupt stuff here will not be interrupted by SIGINT critical code code pre for the unittests pThe following is context manager that attaches signal handler for codeSIGINT code If the context manager signal handler is called the signal is delayed by only passing the signal to the original handler when the context manager exits ppre codeimport signalimport loggingclass DelayedKeyboardInterrupt object def enter self self signal received False self old handler signal signal signal SIGINT self handler def handler self sig frame self signal received sig frame logging debug SIGINT received Delaying KeyboardInterrupt def exit self type value traceback signal signal signal SIGINT self old handler if self signal received self old handler self signal received with DelayedKeyboardInterrupt stuff here will not be interrupted by SIGINT critical code code pre Wow that pretty defeatist attitude The bugs that you describe would only be encounter in very obscure situations that can easily be avoided Just because this might not be suitable for all situations dose not mean it is not suitable for none really think your comment is nonconstructive pre codeimport yamlclass folded unicode unicode passclass literal unicode unicode passdef folded unicode representer dumper data return dumper represent scalar tag yaml org 2002 str data style gt def literal unicode representer dumper data return dumper represent scalar tag yaml org 2002 str data style yaml add representer folded unicode folded unicode representer yaml add representer literal unicode literal unicode representer data literal literal unicode by hjw folded folded unicode It removes all ordinary curses from all equipped items Heavy or permanent curses are unaffected print yaml dump data code prepThe result ppre codefolded gt It removes all ordinary curses from all equipped items Heavy or permanent curses are unaffected literal by hjw code prepFor completeness one should also have str implementations but going to be lazy It paper scroll copied and pasted from the pyyaml documentation,0,NULL,NULL 28037,388951,717743,NULL,NULL,NULL,0,NULL,NULL 28038,65157,298143,Nice Answer Announcer Yearling Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Yearling Good Answer Scholar Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Guru Nice Answer Nice Question,NULL,NULL,1,JAL what is the alternate link register x5 for riscv pThe RISC specification v2 JAL instruction page 15 says of the standard calling convention pblockquote pThe standard software calling convention uses x1 as the return address register and x5 as an alternate link register blockquotepwith the following design comment pblockquote pThe alternate link register supports calling millicode routines those to save and restore registers in compressed code while preserving the regular return address register blockquotepWhat is an alternative link register for ppI understand that link register is register to store the pc to jump to on return and that millicode microcode are lower level instruction format below the ISA level Is the idea that codex5 code is used eminstead of codex1 code em for certain microcode millicode instructions that surround normal calls to avoid register shuffling or spill Would you have typical usage example ppIt could be helpful to add an explanation of alternate link registers to the Wikipedia article on href https en wikipedia org wiki Link register rel nofollow noreferrer link registers which is where went looking for extra information,NULL 28039,1472838,3317,NULL,NULL,NULL,0,NULL,NULL 28040,246472,1041945,Student Commentator Yearling Revival Necromancer Nice Answer Necromancer Yearling Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 28041,232898,1049190,Supporter Editor Revival,NULL,NULL,0,NULL,NULL 28042,1424451,741161,NULL,NULL,NULL,0,NULL,NULL 28043,473070,515118,NULL,NULL,NULL,0,NULL,NULL 28044,16654,866235,Teacher Popular Question Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 28045,83835,895333,NULL,NULL,NULL,0,NULL,NULL 28046,241564,252124,Yearling Notable Question Nice Question Famous Question Notable Question Notable Question Yearling Notable Question Notable Question Nice Answer Nice Answer Popular Question Nice Question Popular Question Yearling Necromancer Notable Question Nice Question Good Question Inquisitive,NULL,NULL,0,NULL,NULL 28047,108028,76705,Good Question Yearling Custodian Popular Question Tumbleweed Excavator Famous Question Yearling Popular Question Popular Question Good Answer Announcer Custodian Yearling Guru Nice Answer Good Question,NULL,NULL,0,NULL,NULL 28048,406423,1170765,Critic,NULL,NULL,0,NULL,NULL 28049,2193655,267532,NULL,NULL,NULL,0,NULL,NULL 28050,166269,261278,NULL,NULL,NULL,0,NULL,NULL 28051,460658,1489664,NULL,NULL,NULL,0,NULL,NULL 28052,140464,1312472,NULL,NULL,NULL,0,NULL,NULL 28053,437163,261188,Good Answer Great Answer Yearling Pundit Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Great Answer Nice Answer Enlightened Good Answer Nice Answer Custodian Announcer Yearling Guru Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Enlightened Nice Answer Populist nosql database Good Answer Nice Answer Yearling Guru Great Answer Nice Answer Good Answer Nice Answer Custodian,NULL,NULL,0,NULL,NULL 28054,1314242,1147340,Popular Question,NULL,NULL,0,NULL,NULL 28055,69057,281996,Critic Caucus Editor Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 28056,870287,412733,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28057,201837,81636,Nice Question Necromancer Yearling Notable Question Notable Question Popular Question Taxonomist Necromancer Famous Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Good Question Nice Question Nice Answer Popular Question Popular Question Pundit Popular Question Nice Question Popular Question Nice Question Famous Question Necromancer Nice Question Notable Question Notable Question Notable Question Nice Answer Notable Question Good Question Yearling Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Good Answer Notable Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 28058,141145,199335,Yearling Good Question Favorite Question Famous Question Yearling Great Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28059,255559,714906,NULL,NULL,NULL,0,NULL,NULL 28060,271599,851523,Good Question Yearling Popular Question Caucus Constituent Famous Question Popular Question Nice Question Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 28061,608397,851523,Good Question Yearling Popular Question Caucus Constituent Famous Question Popular Question Nice Question Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 28062,62490,460273,NULL,NULL,NULL,0,NULL,NULL 28063,1333281,282152,Yearling Caucus Constituent Promoter Nice Question Benefactor Popular Question Caucus Documentation User Self-Learner Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 28064,181236,439470,Tumbleweed Popular Question Promoter Census Popular Question,NULL,NULL,0,NULL,NULL 28065,198847,487875,NULL,NULL,NULL,0,NULL,NULL 28066,266074,986191,NULL,NULL,NULL,0,NULL,NULL 28067,722594,788252,Favorite Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Yearling Nice Question Popular Question Benefactor Great Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 28068,230031,635824,Caucus Notable Question,NULL,NULL,0,NULL,NULL 28069,355996,811811,NULL,NULL,NULL,0,NULL,NULL 28070,284261,1082861,Necromancer Nice Answer Enlightened Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 28071,24535,27310,Caucus Announcer Excavator Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 28072,68349,1268651,Necromancer Yearling Popular Question Caucus Nice Question Good Answer Yearling Notable Question Notable Question Popular Question Caucus Custodian Civic Duty Census Nice Answer Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 28073,196228,896315,Popular Question Notable Question Popular Question Yearling Popular Question Self-Learner Popular Question Popular Question Popular Question Notable Question Caucus Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 28074,274089,279680,Necromancer Guru Yearling Peer Pressure Necromancer Nice Answer Notable Question Necromancer Yearling Good Answer php Curious Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 28075,39540,113664,Critic,NULL,NULL,0,NULL,NULL 28076,412747,1455975,NULL,NULL,NULL,0,NULL,NULL 28077,324045,567607,NULL,NULL,NULL,0,NULL,NULL 28078,239490,78310,Popular Question Nice Question Yearling Notable Question Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 28079,842694,365374,Famous Question Yearling Necromancer Popular Question Yearling Nice Answer Great Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 28080,4942979,441481,Notable Question,NULL,NULL,0,NULL,NULL 28081,310,131829,NULL,NULL,NULL,0,NULL,NULL 28082,51652,569667,NULL,NULL,NULL,0,NULL,NULL 28083,81811,73494,Student,NULL,NULL,0,NULL,NULL 28084,232260,472808,NULL,NULL,NULL,0,NULL,NULL 28085,96609,1364180,Popular Question,NULL,NULL,0,NULL,NULL 28086,85367,776765,Popular Question Popular Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 28087,795226,1234129,NULL,NULL,NULL,0,NULL,NULL 28088,59258,192981,Popular Question,NULL,NULL,0,NULL,NULL 28089,6994197,1242364,NULL,NULL,NULL,0,NULL,NULL 28090,2390457,1242364,NULL,NULL,NULL,0,NULL,NULL 28091,990493,886468,Nice Answer Enlightened Guru Necromancer Good Question Yearling Popular Question Nice Answer Civic Duty Popular Question Yearling Nice Answer Custodian Yearling Announcer Great Question,NULL,NULL,0,NULL,NULL 28092,192502,227051,Nice Answer Yearling Enlightened Caucus Census,NULL,NULL,0,NULL,NULL 28093,1050875,470022,Yearling Caucus Famous Question Popular Question Yearling Necromancer Notable Question Necromancer Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28094,633087,1155254,NULL,NULL,NULL,0,NULL,NULL 28095,541298,187393,Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 28096,307412,284624,Custodian Yearling Favorite Question Nice Answer Good Question Notable Question Yearling android Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 28097,633392,1075949,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28098,3869859,1075949,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28099,42051,651230,NULL,NULL,NULL,0,NULL,NULL 28100,400890,1085578,Informed Scholar Student,NULL,NULL,0,NULL,NULL 28101,873704,364911,Critic Necromancer Great Answer Yearling Custodian Custodian Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 28102,337723,240954,Necromancer,NULL,NULL,0,NULL,NULL 28103,419006,1118887,NULL,NULL,NULL,0,NULL,NULL 28104,234674,66058,Notable Question Nice Question Popular Question Yearling Favorite Question Famous Question Nice Question Popular Question Notable Question Famous Question Famous Question Necromancer Notable Question Famous Question Famous Question Yearling Popular Question Good Question Popular Question Notable Question Great Question Notable Question Popular Question Yearling Good Question Good Answer,NULL,NULL,0,NULL,NULL 28105,1066723,173149,Famous Question Popular Question Famous Question Necromancer Nice Answer Notable Question Popular Question Nice Question Revival Notable Question Notable Question Good Answer Popular Question Popular Question Necromancer Popular Question Announcer Good Question Good Answer Announcer Revival Revival Nice Question Nice Answer Popular Question Popular Question Good Answer Nice Question Necromancer Necromancer Popular Question Nice Answer Necromancer Necromancer Good Question Good Question Notable Question Popular Question Notable Question Yearling Good Answer Necromancer Necromancer Notable Question Revival Notable Question Popular Question Notable Question Necromancer Nice Answer Nice Answer Necromancer Necromancer Necromancer Revival Popular Question Nice Answer Custodian Custodian Custodian Custodian Popular Question Popular Question Notable Question Necromancer Good Question Necromancer Notable Question Good Answer Popular Question Announcer Popular Question Popular Question Announcer Notable Question Revival Popular Question Nice Answer Nice Answer Announcer Announcer Notable Question Pundit Notable Question Necromancer Necromancer Necromancer Notable Question Guru Popular Question Yearling Popular Question Good Answer Announcer Popular Question Revival Revival Documentation User Necromancer Popular Question Popular Question Notable Question Announcer Popular Question Nice Answer Necromancer Popular Question Necromancer Notable Question Notable Question Notable Question Nice Answer Popular Question Popular Question Popular Question Good Answer Necromancer Nice Answer Announcer Necromancer Necromancer Nice Question Notable Question Nice Answer Popular Question Nice Answer Notable Question Good Answer Popular Question Necromancer Popular Question Popular Question Popular Question Nice Question Taxonomist Notable Question Good Answer Good Answer Notable Question Nice Answer Good Answer Revival Yearling Nice Answer Popular Question Nice Question Necromancer Revival Notable Question Nice Answer Nice Answer Famous Question Popular Question Necromancer Nice Answer Necromancer Necromancer Good Answer,NULL,How do you search for files containing dos line endings CRLF with grep on Linux linux bash grep newline pI want to search for files containing dos line endings with grep on Linux Something like this ppre class lang sh prettyprint override codegrep IUr color code prepThe above seems to match for literal codern code which is not what is desired ppThe output of this will be piped through xargs into todos to convert crlf to lf like this ppre codegrep IUrl color xargs ifile fromdos file code pre Easiest way is to use modern dos2unix with ic switch For LF files you may search with unix2dos ic It doesn modify files Only report,0,NULL,NULL 28106,63872,173162,Nice Answer Famous Question Favorite Question Great Question Yearling Notable Question Popular Question Notable Question Nice Question Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 28107,16318,577420,Popular Question Yearling Electorate,NULL,NULL,0,NULL,NULL 28108,54861,394478,Nice Question Notable Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 28109,447533,69084,NULL,NULL,NULL,0,NULL,NULL 28110,65357,114771,NULL,NULL,NULL,0,NULL,NULL 28111,351820,87604,NULL,NULL,NULL,0,NULL,NULL 28112,179511,67646,Enthusiast Yearling Critic Unsung Hero Yearling Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 28113,117392,625710,Popular Question Yearling Nice Answer Popular Question Caucus,NULL,NULL,0,NULL,NULL 28114,79607,126893,Great Answer Good Answer Nice Answer Yearling Guru Great Answer Yearling Good Answer Guru Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 28115,1690318,1157080,NULL,NULL,NULL,0,NULL,NULL 28116,5558,64785,Great Question Yearling Popular Question Revival Famous Question Yearling Nice Question Popular Question Popular Question Famous Question Necromancer Favorite Question Explainer Yearling,NULL,NULL,0,NULL,NULL 28117,66825,850873,NULL,NULL,NULL,0,NULL,NULL 28118,155383,1122958,NULL,NULL,NULL,0,NULL,NULL 28119,304247,235855,Nice Question Popular Question Popular Question Yearling Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 28120,203189,203065,NULL,NULL,NULL,0,NULL,NULL 28121,262609,532921,NULL,NULL,NULL,0,NULL,NULL 28122,804808,532921,NULL,NULL,NULL,0,NULL,NULL 28123,346489,55859,Yearling Custodian Nice Question Guru Popular Question Nice Answer Yearling Famous Question Excavator Notable Question Good Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 28124,432140,641127,Good Answer Revival Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 28125,142999,443297,Notable Question Popular Question Notable Question Popular Question Necromancer Good Question Yearling Famous Question Popular Question Civic Duty Revival Disciplined Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28126,216597,357795,Yearling Guru Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 28127,9367,465814,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28128,422037,465814,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28129,250089,370100,NULL,NULL,NULL,0,NULL,NULL 28130,420338,405017,Yearling Good Answer Guru Good Answer Nice Question Good Answer Good Answer Guru Great Answer Good Question Good Question Great Answer Popular Question Nice Answer Good Answer Guru Nice Question Good Answer Favorite Question Good Answer Populist Notable Question Nice Answer Enlightened Good Answer Famous Question Nice Answer Guru Famous Question Good Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Great Answer Good Answer Guru Nice Answer Enlightened Guru Notable Question Popular Question Famous Question Guru Popular Question Good Answer Good Answer Booster Popular Question Guru Nice Answer Popular Question Good Answer Good Answer Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Populist Popular Question Popular Question Great Answer Popular Question Populist Nice Answer Enlightened Nice Answer xpath Guru Guru Custodian Custodian Documentation Pioneer Nice Answer Good Answer Notable Question Notable Question Good Answer Necromancer Popular Question Famous Question Notable Question Nice Answer Revival Revival Nice Answer Good Answer Popular Question Nice Answer Nice Answer Good Question Populist Favorite Question Popular Question Nice Answer Enlightened Necromancer Nice Answer Nice Answer Popular Question Popular Question Nice Answer Good Answer Nice Answer Good Answer Nice Answer Caucus Good Answer Great Answer Constituent Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Great Answer Necromancer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Yearling Guru Guru Popular Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Good Question Popular Question Notable Question Nice Answer Enlightened Guru Good Question Good Answer Guru Nice Answer Enlightened Famous Question Nice Answer Enlightened Good Answer Great Question Popular Question Guru Nice Answer Enlightened Great Answer Popular Question Notable Question Announcer Nice Answer Nice Answer Notable Question Announcer Popular Question Nice Answer Enlightened Notable Question Popular Question Announcer Necromancer Notable Question Nice Answer Caucus Notable Question Announcer Nice Answer Notable Question Good Answer Nice Answer Guru Enlightened Popular Question Guru Nice Answer Enlightened Nice Question Guru Announcer Popular Question Notable Question Popular Question Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Notable Question Nice Answer Enlightened Popular Question Nice Answer Documentation User Good Answer Good Question Good Question Nice Answer Good Answer Great Answer Nice Answer Nice Answer Popular Question Great Answer Yearling Nice Answer Notable Question Notable Question Announcer xml Nice Answer image Great Answer Popular Question Notable Question Nice Answer Enlightened Announcer Nice Answer Announcer Notable Question Good Answer Nice Answer Enlightened Nice Answer Caucus Popular Question Great Answer Notable Question Good Answer Good Answer Announcer Nice Question Good Answer Good Answer Great Answer Popular Question Nice Answer Enlightened Notable Question Good Answer Great Answer Popular Question Popular Question Good Answer Custodian Famous Question Nice Answer Guru Good Answer Popular Question Nice Question Good Answer Nice Answer Enlightened Good Answer Popular Question Notable Question Good Answer Good Answer Guru Announcer Necromancer Nice Answer Enlightened Notable Question Nice Answer Enlightened Announcer Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Question Popular Question Nice Answer Guru Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Good Question Notable Question Great Answer Great Answer Great Answer Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Nice Question Announcer Great Answer Nice Question Popular Question Popular Question Socratic Good Question Popular Question Good Answer Nice Answer Good Answer Announcer,NULL,pGiven data URL you can create an image either on the page or purely in JS by setting the codesrc code of the image to your data URL For example ppre codevar img new Image img src strDataURI code prepThe href http www whatwg org specs web apps current work multipage the canvas element html dom context 2d drawimage rel noreferrer codedrawImage code method of HTML5 Canvas Context lets you copy all or portion of an image or canvas or video onto canvas ppYou might use it like so ppre codevar myCanvas document getElementById my canvas id var ctx myCanvas getContext 2d var img new Image img onload function ctx drawImage img Or at whatever offset you like img src strDataURI code prep strongEdit strong previously suggested in this space that it might not be necessary to use the codeonload code handler when data URI is involved Based on experimental tests from href https stackoverflow com questions 4776670 should setting an image src to dataurl be available immediately this question it is not safe to do so The above sequence—create the image set the codeonload code to use the new image and emthen em set the codesrc code—is necessary for some browsers to surely use the results You are drawing to canvas that you create and never show so we would never see it working in that fiddle When you load an image from another domain and draw it to your canvas it taints the canvas such that you can no longer access the data either via data URL of imageData pre codeirb main 001 gt text link me up http www example com irb main 002 gt text gsub lt href gt lt gt gt lt href http www example com gt link me up lt gt code prepWe can use the ecodex codetended option for Ruby regex to make it not look like cat jumped on the keyboard ppre codedef linkup str str gsub Literal opening bracket Capture what we find in here One or more characters other than close bracket Stop capturing Literal closing bracket Literal opening parenthesis Capture what we find in here One or more characters other than close parenthesis Stop capturing Literal closing parenthesis lt href gt lt gt endtext link me up http www example com puts linkup text gt lt href http www example com gt link me up lt gt code prepNote that the above will fail for URLs that have right parenthesis in them ppre codelinkup http msdn microsoft com en us library ms533050 vs 85 aspx lt href http msdn microsoft com en us library ms533050 vs 85 gt lt gt aspx code prepIf this is important to you you replace the code code with code code which means em find as many non whitespace characters as you can but ensure that there is code code afterwards em phrpTo answer your question em what am doing wrong em here what your regex said ppre code Literal opening bracket good Start capturing good literal plus character OOPS Stop capturing good Literal closing bracket good Literal opening paren good Start capturing good literal plus character OOPS Stop capturing good Literal closing paren good code pre Incorrect The regex prevents closed bracket within the link text but not within the URL See http rubular com kG7s9bHlOl for example pre codeirb main 001 gt text link me up http www example com irb main 002 gt text gsub lt href gt lt gt gt lt href http www example com gt link me up lt gt code prepWe can use the ecodex codetended option for Ruby regex to make it not look like cat jumped on the keyboard ppre codedef linkup str str gsub Literal opening bracket Capture what we find in here One or more characters other than close bracket Stop capturing Literal closing bracket Literal opening parenthesis Capture what we find in here One or more characters other than close parenthesis Stop capturing Literal closing parenthesis lt href gt lt gt endtext link me up http www example com puts linkup text gt lt href http www example com gt link me up lt gt code prepNote that the above will fail for URLs that have right parenthesis in them ppre codelinkup http msdn microsoft com en us library ms533050 vs 85 aspx lt href http msdn microsoft com en us library ms533050 vs 85 gt lt gt aspx code prepIf this is important to you you replace the code code with code code which means em find as many non whitespace characters as you can but ensure that there is code code afterwards em phrpTo answer your question em what am doing wrong em here what your regex said ppre code Literal opening bracket good Start capturing good literal plus character OOPS Stop capturing good Literal closing bracket good Literal opening paren good Start capturing good literal plus character OOPS Stop capturing good Literal closing paren good code pre étale cohomology Did you read the part of my answer that says Note that the above will fail for URLs that have right parenthesis in them And did you then read the part of the answer that starts with If this is important to you… pre codeirb main 001 gt text link me up http www example com irb main 002 gt text gsub lt href gt lt gt gt lt href http www example com gt link me up lt gt code prepWe can use the ecodex codetended option for Ruby regex to make it not look like cat jumped on the keyboard ppre codedef linkup str str gsub Literal opening bracket Capture what we find in here One or more characters other than close bracket Stop capturing Literal closing bracket Literal opening parenthesis Capture what we find in here One or more characters other than close parenthesis Stop capturing Literal closing parenthesis lt href gt lt gt endtext link me up http www example com puts linkup text gt lt href http www example com gt link me up lt gt code prepNote that the above will fail for URLs that have right parenthesis in them ppre codelinkup http msdn microsoft com en us library ms533050 vs 85 aspx lt href http msdn microsoft com en us library ms533050 vs 85 gt lt gt aspx code prepIf this is important to you you replace the code code with code code which means em find as many non whitespace characters as you can but ensure that there is code code afterwards em phrpTo answer your question em what am doing wrong em here what your regex said ppre code Literal opening bracket good Start capturing good literal plus character OOPS Stop capturing good Literal closing bracket good Literal opening paren good Start capturing good literal plus character OOPS Stop capturing good Literal closing paren good code pre étale cohomology See http rubular com NJfEkXVDNL pSee this code which not only shows how to transform from screen space to global SVG space but also how to transform point from SVG space into the transformed space of an element bra href http phrogz net svg drag under transformation xhtml rel noreferrer http phrogz net svg drag under transformation xhtml ppIn short ppre code Find your root SVG elementvar svg document querySelector svg Create an SVGPoint for future mathvar pt svg createSVGPoint Get point in global SVG spacefunction cursorPoint evt pt evt clientX pt evt clientY return pt matrixTransform svg getScreenCTM inverse svg addEventListener mousemove function evt var loc cursorPoint evt Use loc and loc here false code prep strongEdit strong ve created sample tailored to your needs albeit only in global SVG space bra href http phrogz net svg rotate to point at cursor svg rel noreferrer http phrogz net svg rotate to point at cursor svg ppIt adds the following method to the above ppre codefunction rotateElement el originX originY towardsX towardsY var angle Math atan2 towardsY originY towardsX originX var degrees angle 180 Math PI 90 el setAttribute transform translate originX originY rotate degrees translate originX originY code pre That is true when the document is an SVG file but not when the document is an HTML that may include an SVG file Note that if you need an SVG element just for createSVGPoint you can also svg document createElementNS http www w3 org 2000 svg svg pIn short you want to codetranslate code the canvas context by your offset codescale code it to zoom in or out and then codetranslate code back by the opposite of the mouse offset Note that you need to transform the cursor position from screen space into the transformed canvas context ppre class lang js prettyprint override codectx translate pt pt ctx scale factor factor ctx translate pt pt code preh2Demo href http phrogz net tmp canvas zoom to cursor html rel noreferrer http phrogz net tmp canvas zoom to cursor html h2pI ve put up href http phrogz net tmp canvas zoom to cursor html rel noreferrer full working example on my website for you to examine supporting dragging click to zoom in shift click to out or scroll wheel up down pp emThe only current issue is that href https stackoverflow com questions 5527601 normalizing mousewheel speed across browsers Safari zooms too fast compared to Chrome or Firefox em ctx setTransform rsub with sublime and ssh connection refusual macos ubuntu ssh sublimetext2 port pI am trying to use rsub to create tunnel in ssh to sublime text run the command rmate profile but get the following response am using wateroof to open the ports 52968 on 1p4 and ip6 followed the insturctions href http danieldemmel me blog 2012 09 02 setting up rmate with sublime text for remote file editing over ssh rel noreferrer here and its just not working ppI am running osx on my local machine and ubuntu 12 04 on my remote machine am ssh into on digitalocean ppre coderoot rmate profile usr local bin rmate connect Connection refused usr local bin rmate line 186 dev tcp localhost 52698 Connection refusedUnable to connect to TextMate on localhost 52698 code pre In my case had valid Host audio line in my ssh config file but was using ssh music local to connect to it bypassing my ssh alias and its necessary RemoteForward emBased on answer slightly tighter implementation of the same logic em ppre codefunction textNodesUnder node var all for node node firstChild node node node nextSibling if node nodeType all push node else all all concat textNodesUnder node return all code prep emHowever far faster tighter and more elegant is using href https developer mozilla org en DOM document createTreeWalker codecreateTreeWalker code so that the browser filters out everything but the text nodes for you em ppre codefunction textNodesUnder el var walk document createTreeWalker el NodeFilter SHOW TEXT null false while walk nextNode push return code pre On my computer looking for all text nodes on this page using Chrome v50 it takes 1900μs using the first technique but 220μs using the TreeWalker technique So or times faster pIf you want custom formatting for your date offer href http phrogz net JS FormatDateTime JS txt rel noreferrer simple function for it ppre codevar now new Date console log now customFormat DD MM YYYY hh mm ss code prepHere are the tokens supported ppre codetoken description example YYYY digit year 1999 YY digit year 99 MMMM full month name February MMM letter month name Feb MM digit month number 02 month number DDDD full weekday name Wednesday DDD letter weekday name Wed DD digit day number 09 day number th day ordinal suffix nd hhhh digit 24 based hour 17 hhh military 24 based hour 17 hh digit hour 05 hour mm digit minute 07 minute ss digit second 09 second ampm am or pm pm AMPM AM or PM PM code prepAnd here the code ppre code This code is copyright 2002 2016 by Gavin Kistner net It is covered under the license viewable at http phrogz net JS ReuseLicense txtDate prototype customFormat function formatString var YYYY YY MMMM MMM MM DDDD DDD DD hhhh hhh hh mm ss ampm AMPM dMod th YY YYYY this getFullYear slice MM this getMonth lt 10 MMM MMMM January February March April May June July August September October November December substring DD this getDate lt 10 DDD DDDD Sunday Monday Tuesday Wednesday Thursday Friday Saturday this getDay substring th gt 10 amp amp lt 20 th dMod 10 st dMod nd dMod rd th formatString formatString replace YYYY YYYY replace YY YY replace MMMM MMMM replace MMM MMM replace MM MM replace replace DDDD DDDD replace DDD DDD replace DD DD replace replace th th hhh this getHours if 24 if gt 12 12 hh lt 10 hhhh hhh lt 10 hhh hhh AMPM ampm hhh lt 12 am pm toUpperCase mm this getMinutes lt 10 ss this getSeconds lt 10 return formatString replace hhhh hhhh replace hhh hhh replace hh hh replace replace mm mm replace replace ss ss replace replace ampm ampm replace AMPM AMPM code pre 黄雨伞 Click the link http phrogz net JS FormatDateTime JS txt and read the top of the file for the license It quite permissive pTime always has zone it has no meaning without one You can choose to ignore it when printing by using href http www ruby doc org stdlib libdoc date rdoc DateTime html method strftime rel noreferrer codeDateTime strftime code ppre codenow DateTime nowputs now gt 2012 02 03T10 01 24 07 00puts now strftime gt Fri 03 Feb 2012 10 01 24 code prepSee href http www ruby doc org core Time html method strftime rel noreferrer codeTime strftime code for the arcane codes used to construct particular format pp emAlternatively you may wish to href https stackoverflow com questions 755669 how do convert datetime now to utc in ruby convert your DateTime to UTC for more general representation em think you may be mistaking the Date http ruby doc org stdlib libdoc date rdoc Date html class with the DateTime http ruby doc org stdlib libdoc date rdoc DateTime html class The former has calendar information only the latter includes time which must be associated with time zone Consider the output of DateTime new 2016 to 2016 05 05T00 00 00 00 00 where the 00 00 at the end indicates that this is midnight in GMT London not midnight in Denver CO pSimple example ppre code 11 code prepWays to turn string into number pulli codeparseInt str code lili codeparseInt str 10 code lili codeparseFloat str code lili code str code lili codestr code lili codestr code lili codestr lt lt code lili codeNumber str code li ulpAnd here are some of the consequences href http phrogz net JS string to number png rel noreferrer Results of converting various strings using the above techniques http phrogz net JS string to number png pp em codeNumber str code has the same behavior as codestr code but requires function call em ppI personally use code code as it is short to type but still stands out unlike the unary and either gives me what the user typed or fails completely only use codeparseInt code when emknow em that there will be non numeric content at the end to ignore or when need to parse non base 10 string ppYou can test the performance of these in your browser href http phrogz net JS string to number html rel noreferrer at my example page find that claim improbable and would need to see simple example proof before including such information,1,NULL,Closest point on cubic Bezier curve graphics geometry bezier spline curve pHow can find the point along cubic Bezier curve that is closest to an arbitrary point in the plane pI ve written some quick and dirty code that estimates this for Bézier curves of any degree em Note this is pseudo brute force not closed form solution em ph2Demo href http phrogz net svg closest point on bezier html rel noreferrer http phrogz net svg closest point on bezier html h2pre class lang javascript prettyprint override code Find the closest point on Bézier curve to point you supply out vector to modify to be the point on the curve curve Array of vectors representing control points for Bézier curve pt The point vector you want to find out to be near tmps Array of temporary vectors reduces memory allocations returns The parameter representing the location of out function closestPoint out curve pt tmps let mindex scans 25 More scans gt better chance of being correct const vec vmath in curve vec4 in curve vec3 vec2 for let min Infinity scans let d2 vec squaredDistance pt bézierPoint out curve scans tmps if d2 lt min min d2 mindex let t0 Math max mindex scans let t1 Math min mindex scans let d2ForT gt vec squaredDistance pt bézierPoint out curve tmps return localMinimum t0 t1 d2ForT 1e Find minimum point for bounded function May be local minimum minX the smallest input value maxX the largest input value function that returns value given an how close in the bounds must be before returning returns the value that produces the smallest function localMinimum minX maxX if undefined 1e 10 let minX maxX while gt if lt else return Calculate point along Bézier segment for given parameter out vector to modify to be the point on the curve curve Array of vectors representing control points for Bézier curve Parameter for how far along the curve the point should be tmps Array of temporary vectors reduces memory allocations returns out the vector that was modified function bézierPoint out curve tmps if curve length lt console error At least control points are required const vec vmath in curve vec4 in curve vec3 vec2 if tmps tmps curve map pt gt vec clone pt else tmps forEach pt gt vec copy pt curve for var degree curve length degree for var lt degree vec lerp tmps tmps tmps return vec copy out tmps code prepThe code above uses the href https github com gamedev js vmath rel noreferrer vmath library to efficiently lerp between vectors in 2D 3D or 4D but it would be trivial to replace the codelerp code call in codebézierPoint code with your own code ph2Tuning the Algorithm h2pThe codeclosestPoint code function works in two phases pulliFirst calculate points all along the curve uniformly spaced values of the emt em parameter Record which value of emt em has the smallest distance to the point liliThen use the codelocalMinimum code function to hunt the region around the smallest distance using binary search to find the emt em and point that produces the true smallest distance li ulpThe value of codescans code in codeclosestPoint code determines how many samples to use in the first pass Fewer scans is faster but increases the chances of missing the true minimum point ppThe codeε code limit passed to the codelocalMinimum code function controls how long it continues to hunt for the best value value of code1e code quantizes the curve into 100 points and thus you can see the points returned from codeclosestPoint code popping along the line Each additional decimal point of precision—code1e code code1e code …—costs about additional calls to codebézierPoint code 28131,5556,58359,Famous Question,NULL,NULL,0,NULL,NULL 28132,25550,172642,Nice Answer Nice Answer Nice Answer Yearling Good Answer Guru Nice Answer Great Answer Nice Answer Announcer Yearling Documentation User Good Answer Census Guru Custodian Necromancer Necromancer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28133,62478,261268,Documentation User,NULL,NULL,0,NULL,NULL 28134,151349,613126,Notable Question,NULL,NULL,0,NULL,NULL 28135,867495,1068613,Popular Question,NULL,NULL,0,NULL,NULL 28136,334296,610742,NULL,NULL,NULL,0,NULL,NULL 28137,46785,189208,NULL,NULL,NULL,0,NULL,NULL 28138,150143,135722,Nice Question Favorite Question Good Answer Yearling Nice Answer Custodian Census Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 28139,271578,307827,NULL,NULL,NULL,0,NULL,NULL 28140,472539,70924,Yearling Notable Question,NULL,NULL,0,NULL,NULL 28141,621750,390911,NULL,NULL,NULL,0,NULL,NULL 28142,1672674,791697,Necromancer,NULL,NULL,0,NULL,NULL 28143,150607,65040,Yearling Popular Question Great Question Popular Question Yearling Favorite Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28144,258364,789255,Curious Popular Question Yearling Notable Question Caucus Constituent Nice Answer Enlightened Popular Question Caucus Constituent Notable Question Necromancer,NULL,NULL,0,NULL,NULL 28145,6441,168659,Notable Question Famous Question Yearling Famous Question Benefactor Notable Question,NULL,NULL,0,NULL,NULL 28146,501621,1329668,Nice Question Yearling Famous Question Good Question Notable Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 28147,270269,2794,Student Scholar,NULL,NULL,0,NULL,NULL 28148,414460,2794,Student Scholar,NULL,NULL,0,NULL,NULL 28149,796654,606391,NULL,NULL,NULL,0,NULL,NULL 28150,270370,1052889,NULL,NULL,NULL,0,NULL,NULL 28151,2103233,861617,NULL,NULL,NULL,0,NULL,NULL 28152,6619613,1191917,Notable Question,NULL,NULL,0,NULL,NULL 28153,24536,393634,Necromancer Yearling Disciplined Civic Duty,NULL,NULL,0,NULL,NULL 28154,137613,995676,NULL,NULL,NULL,0,NULL,NULL 28155,315265,1364787,NULL,NULL,NULL,0,NULL,NULL 28156,229283,146642,Yearling Famous Question Informed Proofreader Great Answer Custodian Necromancer Yearling Popular Question Documentation User Custodian Necromancer Revival Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28157,583965,141995,Inquisitive Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Caucus Constituent Popular Question Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 28158,245773,995547,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 28159,138812,809346,NULL,NULL,NULL,0,NULL,NULL 28160,31948,615704,NULL,NULL,NULL,0,NULL,NULL 28161,402017,679553,Scholar Populist Yearling Curious Yearling Documentation User Announcer Enthusiast Yearling,NULL,NULL,0,NULL,NULL 28162,321866,1115662,Popular Question Popular Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28163,768051,459362,NULL,NULL,NULL,0,NULL,NULL 28164,1340763,257441,NULL,NULL,NULL,0,NULL,NULL 28165,251269,768683,NULL,NULL,NULL,0,NULL,NULL 28166,1567000,613076,NULL,NULL,NULL,0,NULL,NULL 28167,78027,1406704,NULL,NULL,NULL,0,NULL,NULL 28168,23388,943040,NULL,NULL,NULL,0,NULL,NULL 28169,86528,276548,Notable Question,NULL,NULL,0,NULL,NULL 28170,227034,1127664,NULL,NULL,NULL,0,NULL,NULL 28171,138473,1212166,Notable Question Revival Yearling Popular Question Famous Question Announcer Revival Notable Question Notable Question Popular Question Nice Answer Caucus Nice Answer Constituent Popular Question Popular Question Popular Question Nice Answer Enlightened Necromancer Yearling Popular Question Custodian Notable Question Nice Answer Inquisitive Notable Question Notable Question Popular Question Caucus Constituent Popular Question Nice Answer Notable Question Custodian Nice Question Nice Answer Announcer Good Answer Notable Question slickgrid Popular Question Yearling Caucus Constituent Notable Question Good Answer Popular Question Famous Question Nice Question Revival Popular Question javascript,NULL,NULL,0,NULL,NULL 28172,266990,592664,Necromancer,NULL,NULL,0,NULL,NULL 28173,80650,1157237,Yearling Popular Question Nice Answer Popular Question Nice Answer Enlightened Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Nice Question Revival Popular Question Popular Question Notable Question Necromancer Good Answer Popular Question Notable Question Yearling Popular Question Nice Question Nice Answer Popular Question Necromancer Notable Question sql Popular Question,NULL,NULL,0,NULL,NULL 28174,146349,1377755,Supporter Notable Question,NULL,NULL,0,NULL,NULL 28175,4275753,972186,NULL,NULL,NULL,0,NULL,NULL 28176,157686,783797,Tag Editor Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28177,902470,541570,NULL,NULL,NULL,0,NULL,NULL 28178,1476970,541570,NULL,NULL,NULL,0,NULL,NULL 28179,34650,885209,NULL,NULL,NULL,0,NULL,NULL 28180,206594,1009828,Popular Question,NULL,NULL,0,NULL,NULL 28181,889192,1263866,NULL,NULL,NULL,0,NULL,NULL 28182,154094,554955,Informed Famous Question Good Question Critic,NULL,NULL,0,NULL,NULL 28183,321272,382494,NULL,NULL,NULL,0,NULL,NULL 28184,16203,1040425,Promoter Nice Answer Popular Question Yearling Caucus Notable Question Nice Question Caucus Yearling Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 28185,95026,142458,Revival Yearling Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 28186,171579,290715,Popular Question,NULL,NULL,0,NULL,NULL 28187,296828,1030005,Popular Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 28188,74323,583175,Yearling Yearling Populist Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 28189,448669,407676,Famous Question,NULL,NULL,0,NULL,NULL 28190,352124,1558193,NULL,NULL,NULL,0,NULL,NULL 28191,178016,415143,Nice Question Famous Question Caucus Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28192,118156,816866,NULL,NULL,NULL,0,NULL,NULL 28193,1503842,683517,NULL,NULL,NULL,0,NULL,NULL 28194,415690,1274815,Nice Answer Yearling Nice Answer Yearling Good Answer Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28195,2220128,1203317,Yearling Necromancer Caucus Constituent Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28196,1652051,1234402,Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28197,581847,1136576,Caucus,NULL,NULL,0,NULL,NULL 28198,290580,120151,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28199,6308,1057800,Supporter,NULL,NULL,0,NULL,NULL 28200,165231,727808,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 28201,354951,1518167,Popular Question,NULL,NULL,0,NULL,NULL 28202,1134168,464359,NULL,NULL,NULL,0,NULL,NULL 28203,878628,40538,Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 28204,123767,1122527,NULL,NULL,NULL,0,NULL,NULL 28205,471204,174505,NULL,NULL,NULL,0,NULL,NULL 28206,264026,272342,Yearling Good Answer Guru Guru Popular Question Yearling Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Revival Good Answer Famous Question Good Answer,NULL,NULL,0,NULL,NULL 28207,33522,365643,NULL,NULL,NULL,0,NULL,NULL 28208,3695152,365643,NULL,NULL,NULL,0,NULL,NULL 28209,6079603,1529996,NULL,NULL,NULL,0,NULL,NULL 28210,137688,1529996,NULL,NULL,NULL,0,NULL,NULL 28211,497570,1192908,Autobiographer,NULL,NULL,0,NULL,NULL 28212,242196,7037,NULL,NULL,NULL,0,NULL,NULL 28213,167123,458836,Autobiographer Custodian Nice Answer Enlightened Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 28214,1248146,833190,NULL,NULL,NULL,0,NULL,NULL 28215,317584,745253,Yearling Civic Duty,NULL,NULL,0,NULL,NULL 28216,317974,624146,Tumbleweed Student,NULL,NULL,0,NULL,NULL 28217,223054,184825,Commentator Yearling,NULL,NULL,0,NULL,NULL 28218,153544,662711,Notable Question,NULL,NULL,0,NULL,NULL 28219,440438,807914,Yearling Notable Question Guru Notable Question Nice Question Stellar Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 28220,97295,910534,NULL,NULL,NULL,0,NULL,NULL 28221,49575,182591,Yearling Popular Question Announcer Nice Answer Caucus Popular Question Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 28222,72102,995529,NULL,NULL,NULL,0,NULL,NULL 28223,109648,768961,Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 28224,127034,729836,NULL,NULL,NULL,0,NULL,NULL 28225,827138,635723,NULL,NULL,NULL,0,NULL,NULL 28226,65665,315888,NULL,NULL,NULL,0,NULL,NULL 28227,258587,230917,Popular Question Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 28228,320727,1043748,NULL,NULL,NULL,0,NULL,NULL 28229,125263,589254,Notable Question Nice Question Famous Question Notable Question Popular Question Yearling Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 28230,1065369,168716,NULL,NULL,NULL,0,NULL,NULL 28231,186132,229510,Favorite Question Good Answer Custodian Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 28232,237404,1018012,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28233,7010643,1018012,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28234,646574,625455,NULL,NULL,NULL,0,NULL,NULL 28235,701344,675904,NULL,NULL,NULL,0,NULL,NULL 28236,226870,499602,NULL,NULL,NULL,0,NULL,NULL 28237,2687656,663711,NULL,NULL,NULL,0,NULL,NULL 28238,1971780,663711,NULL,NULL,NULL,0,NULL,NULL 28239,1512439,396430,NULL,NULL,NULL,0,NULL,NULL 28240,100328,538097,NULL,NULL,NULL,0,NULL,NULL 28241,405492,799,Revival Necromancer Nice Question Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28242,264928,88094,Revival Caucus Yearling Census Census,NULL,NULL,0,NULL,NULL 28243,179027,1281575,NULL,NULL,NULL,0,NULL,NULL 28244,435216,1450775,NULL,NULL,NULL,0,NULL,NULL 28245,1214079,389340,NULL,NULL,NULL,0,NULL,NULL 28246,10565800,726095,Self-Learner,NULL,NULL,0,NULL,NULL 28247,240573,726095,Self-Learner,NULL,NULL,0,NULL,NULL 28248,62204,427427,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28249,181288,236353,Yearling Notable Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 28250,162485,321423,Caucus Popular Question Caucus Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28251,576702,1260716,NULL,NULL,NULL,0,NULL,NULL 28252,208876,68063,Guru Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Booster Great Answer Good Answer Notable Question Announcer Guru Necromancer Nice Answer Pundit Yearling Necromancer Nice Answer Enlightened Great Answer Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Good Answer Guru Yearling Announcer Good Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Announcer,NULL,pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines The dot product of two vectors returns scalar pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines engr That not complete solution How are you representing the line segments and how are you determining whether the intersection lies on both of the segments And how are you handling the collinear and parallel cases when m1 m2 pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines engr When you write it out in detail you ll find that your version of the computation amounts to the same thing as mine this is not surprising since it computing the same result in the same way My approach has the advantage of working with vectors rather than and coordinates this means that each step has one operation on vector rather than two operations on and values pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines is anti parallel to −1 −1 not perpendicular pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines like the names the way they are pYou might think that because your walls are aligned with the coordinate axes that it makes sense to write special case code for vertical wall negate the coordinate of the velocity for horizontal wall negate the coordinate of the velocity However once you ve got the game working well with vertical and horizontal walls probably the next thing you ll think is what about walls at arbitrary angles So it worth thinking about the general case from the beginning ppIn the general case suppose your missile has velocity strongv strong and hits wall with surface normal strongn strong pp img src https stack imgur com c7WTq png alt Missile with vector about to obliquely hit wall with surface normal ppSplit strongv strong into components strongu strong perpendicular to the wall and strongw strong parallel to it pp img src https stack imgur com e6K3L png alt Right angled triangle with hypotenuse for short side parallel to wall and long side parallel to wall ppWhere pp strongu strong strongv strong strongn strong strongn strong strongn strong strongn strong brstrongw strong strongv strong strongu strong ppHere strongv strong strongn strong is the href http en wikipedia org wiki Dot product rel noreferrer dot product of the vectors strongv strong and strongn strong See the link for an explanation of how to compute it The dot product strongn strong strongn strong evaluates to the square of the length of the normal vector if you always keep your normals in the form of href http en wikipedia org wiki Unit vector rel noreferrer unit vectors then strongn strong strongn strong and you can omit the division ppAfter bouncing the component of motion parallel to the wall is affected by friction emf em and the component perpendicular to the wall is affected by elasticity which can be given in the form of href http en wikipedia org wiki Coefficient of restitution rel noreferrer coefficient of restitution emr em ppSo the velocity after the collision is strongv′ strong emf em strongw strong emr em strongu strong In a perfectly elastic frictionless collision strongv′ strong strongw strong strongu strong that is the motion is reflected about the normal at the point of collision as in the diagram given in Bill answer ppThis approach works just the same in three dimensions too pp Obviously this is very simplified notion of bouncing it takes no account of angular momentum or deformation But for many kinds of video games this kind of simplification is perfectly adequate If you can tell that an object hit wall then you can also tell which side of the wall it hit pDespite the title to your question think you’re actually looking for the minimum emdissection em into rectangles of rectilinear polygon Jason’s links are about minimum emcovers em by rectangles which is quite different problem pp href http www ics uci edu eppstein rel nofollow noreferrer David Eppstein discusses this problem in section of his 2010 survey article href http arxiv org pdf 0908 3916v1 rel nofollow noreferrer Graph Theoretic Solutions to Computational Geometry Problems and he gives nice summary in href https mathoverflow net questions 28303 split polygon into minimum amount of rectangles and triangles 28350 28350 this answer on mathoverflow net pblockquote pThe idea is to find the maximum number of disjoint axis parallel diagonals that have two concave vertices as endpoints split along those and then form one more split for each remaining concave vertex To find the maximum number of disjoint axis parallel diagonals form the intersection graph of the diagonals this graph is bipartite so its maximum independent set can be found in polynomial time by graph matching techniques blockquotepHere’s my gloss on this admirably terse description using figure from Eppstein’s article Suppose we have rectilinear polygon possibly with holes pp img src https stack imgur com fCyRM png alt ppWhen the polygon is dissected into rectangles each of the concave vertices must be met by at least one edge of the dissection So we get the emminimum em dissection if as many of these edges as possible do double duty that is they connect two of the concave vertices ppSo let’s draw the axis parallel diagonals between two concave vertices that are contained entirely within the polygon ‘Axis parallel’ means ‘horizontal or vertical’ here and href http en wikipedia org wiki Diagonal Polygons rel nofollow noreferrer diagonal of polygon is line connecting two non adjacent vertices We want to use as many of these lines as possible in the dissection as long as they don’t intersect pp img src https stack imgur com EzPPP png alt pp If there are no axis parallel diagonals the dissection is trivial—just make cut from each concave vertex Or if there are no intersections between the axis parallel diagonals then we use them all plus cut from each remaining concave vertex Otherwise read on ppThe href http en wikipedia org wiki Intersection graph rel nofollow noreferrer intersection graph of set of line segments has node for every line segment and an edge joins two nodes if the lines cross Here’s the intersection graph for the axis parallel diagonals pp img src https stack imgur com 4SWYk png alt ppIt’s href http en wikipedia org wiki Bipartite graph rel nofollow noreferrer bipartite with the vertical diagonals in one part and the horizontal diagonals in the other part Now we want to pick as many of the diagonals as possible as long as they don’t intersect This corresponds to finding the href http en wikipedia org wiki Independent set 28graph theory 29 rel nofollow noreferrer maximum independent set in the intersection graph ppFinding the maximum independent set in general graph is an NP hard problem but in the special case of bipartite graph href http en wikipedia org wiki C3 B6nig 27s theorem 28graph theory 29 rel nofollow noreferrer König’s theorem shows that it’s equivalent to the problem of finding maximum matching which can be solved in polynomial time for example by the href http en wikipedia org wiki Hopcroft E2 80 93Karp algorithm rel nofollow noreferrer Hopcroft–Karp algorithm given graph can have several maximum matchings but any of them will do as they all have the same size In the example all the maximum matchings have three pairs of vertices for example pp img src https stack imgur com q5MD5 png alt pp Other maximum matchings in this graph include and ppTo get from maximum matching to the corresponding href http en wikipedia org wiki Vertex cover rel nofollow noreferrer minimum vertex cover apply the href https en wikipedia org wiki C5 91nig 27s theorem graph theory Proof rel nofollow noreferrer proof of König’s theorem In the matching shown above the left set is emL em the right set is emR em and the set of unmatched vertices in emL em is emU em There is only one alternating path starting in emU em namely 1–3–6 so the set of vertices in alternating paths is emZ em and the minimum vertex cover is thus emK em emL em emZ em emR em emZ em shown in red below with the maximum independent set in green pp img src https stack imgur com Im3Nd png alt ppTranslating this back into the dissection problem this means that we can use five axis parallel diagonals in the dissection pp img src https stack imgur com d6lLD png alt ppFinally make cut from each remaining concave vertex to complete the dissection pp img src https stack imgur com 4hJaS png alt Yes if there are no axis parallel diagonals the dissection is trivial pDespite the title to your question think you’re actually looking for the minimum emdissection em into rectangles of rectilinear polygon Jason’s links are about minimum emcovers em by rectangles which is quite different problem pp href http www ics uci edu eppstein rel nofollow noreferrer David Eppstein discusses this problem in section of his 2010 survey article href http arxiv org pdf 0908 3916v1 rel nofollow noreferrer Graph Theoretic Solutions to Computational Geometry Problems and he gives nice summary in href https mathoverflow net questions 28303 split polygon into minimum amount of rectangles and triangles 28350 28350 this answer on mathoverflow net pblockquote pThe idea is to find the maximum number of disjoint axis parallel diagonals that have two concave vertices as endpoints split along those and then form one more split for each remaining concave vertex To find the maximum number of disjoint axis parallel diagonals form the intersection graph of the diagonals this graph is bipartite so its maximum independent set can be found in polynomial time by graph matching techniques blockquotepHere’s my gloss on this admirably terse description using figure from Eppstein’s article Suppose we have rectilinear polygon possibly with holes pp img src https stack imgur com fCyRM png alt ppWhen the polygon is dissected into rectangles each of the concave vertices must be met by at least one edge of the dissection So we get the emminimum em dissection if as many of these edges as possible do double duty that is they connect two of the concave vertices ppSo let’s draw the axis parallel diagonals between two concave vertices that are contained entirely within the polygon ‘Axis parallel’ means ‘horizontal or vertical’ here and href http en wikipedia org wiki Diagonal Polygons rel nofollow noreferrer diagonal of polygon is line connecting two non adjacent vertices We want to use as many of these lines as possible in the dissection as long as they don’t intersect pp img src https stack imgur com EzPPP png alt pp If there are no axis parallel diagonals the dissection is trivial—just make cut from each concave vertex Or if there are no intersections between the axis parallel diagonals then we use them all plus cut from each remaining concave vertex Otherwise read on ppThe href http en wikipedia org wiki Intersection graph rel nofollow noreferrer intersection graph of set of line segments has node for every line segment and an edge joins two nodes if the lines cross Here’s the intersection graph for the axis parallel diagonals pp img src https stack imgur com 4SWYk png alt ppIt’s href http en wikipedia org wiki Bipartite graph rel nofollow noreferrer bipartite with the vertical diagonals in one part and the horizontal diagonals in the other part Now we want to pick as many of the diagonals as possible as long as they don’t intersect This corresponds to finding the href http en wikipedia org wiki Independent set 28graph theory 29 rel nofollow noreferrer maximum independent set in the intersection graph ppFinding the maximum independent set in general graph is an NP hard problem but in the special case of bipartite graph href http en wikipedia org wiki C3 B6nig 27s theorem 28graph theory 29 rel nofollow noreferrer König’s theorem shows that it’s equivalent to the problem of finding maximum matching which can be solved in polynomial time for example by the href http en wikipedia org wiki Hopcroft E2 80 93Karp algorithm rel nofollow noreferrer Hopcroft–Karp algorithm given graph can have several maximum matchings but any of them will do as they all have the same size In the example all the maximum matchings have three pairs of vertices for example pp img src https stack imgur com q5MD5 png alt pp Other maximum matchings in this graph include and ppTo get from maximum matching to the corresponding href http en wikipedia org wiki Vertex cover rel nofollow noreferrer minimum vertex cover apply the href https en wikipedia org wiki C5 91nig 27s theorem graph theory Proof rel nofollow noreferrer proof of König’s theorem In the matching shown above the left set is emL em the right set is emR em and the set of unmatched vertices in emL em is emU em There is only one alternating path starting in emU em namely 1–3–6 so the set of vertices in alternating paths is emZ em and the minimum vertex cover is thus emK em emL em emZ em emR em emZ em shown in red below with the maximum independent set in green pp img src https stack imgur com Im3Nd png alt ppTranslating this back into the dissection problem this means that we can use five axis parallel diagonals in the dissection pp img src https stack imgur com d6lLD png alt ppFinally make cut from each remaining concave vertex to complete the dissection pp img src https stack imgur com 4hJaS png alt The maximum matching is not necessarily unique in this case there are several The one you found is but there are also and and and maybe others didn spot Any of them will do for the purpose of finding the maximum independent set pDespite the title to your question think you’re actually looking for the minimum emdissection em into rectangles of rectilinear polygon Jason’s links are about minimum emcovers em by rectangles which is quite different problem pp href http www ics uci edu eppstein rel nofollow noreferrer Da,,, "id Eppstein discusses this problem in section of his 2010 survey article href http arxiv org pdf 0908 3916v1 rel nofollow noreferrer Graph Theoretic Solutions to Computational Geometry Problems and he gives nice summary in href https mathoverflow net questions 28303 split polygon into minimum amount of rectangles and triangles 28350 28350 this answer on mathoverflow net pblockquote pThe idea is to find the maximum number of disjoint axis parallel diagonals that have two concave vertices as endpoints split along those and then form one more split for each remaining concave vertex To find the maximum number of disjoint axis parallel diagonals form the intersection graph of the diagonals this graph is bipartite so its maximum independent set can be found in polynomial time by graph matching techniques blockquotepHere’s my gloss on this admirably terse description using figure from Eppstein’s article Suppose we have rectilinear polygon possibly with holes pp img src https stack imgur com fCyRM png alt ppWhen the polygon is dissected into rectangles each of the concave vertices must be met by at least one edge of the dissection So we get the emminimum em dissection if as many of these edges as possible do double duty that is they connect two of the concave vertices ppSo let’s draw the axis parallel diagonals between two concave vertices that are contained entirely within the polygon ‘Axis parallel’ means ‘horizontal or vertical’ here and href http en wikipedia org wiki Diagonal Polygons rel nofollow noreferrer diagonal of polygon is line connecting two non adjacent vertices We want to use as many of these lines as possible in the dissection as long as they don’t intersect pp img src https stack imgur com EzPPP png alt pp If there are no axis parallel diagonals the dissection is trivial—just make cut from each concave vertex Or if there are no intersections between the axis parallel diagonals then we use them all plus cut from each remaining concave vertex Otherwise read on ppThe href http en wikipedia org wiki Intersection graph rel nofollow noreferrer intersection graph of set of line segments has node for every line segment and an edge joins two nodes if the lines cross Here’s the intersection graph for the axis parallel diagonals pp img src https stack imgur com 4SWYk png alt ppIt’s href http en wikipedia org wiki Bipartite graph rel nofollow noreferrer bipartite with the vertical diagonals in one part and the horizontal diagonals in the other part Now we want to pick as many of the diagonals as possible as long as they don’t intersect This corresponds to finding the href http en wikipedia org wiki Independent set 28graph theory 29 rel nofollow noreferrer maximum independent set in the intersection graph ppFinding the maximum independent set in general graph is an NP hard problem but in the special case of bipartite graph href http en wikipedia org wiki C3 B6nig 27s theorem 28graph theory 29 rel nofollow noreferrer König’s theorem shows that it’s equivalent to the problem of finding maximum matching which can be solved in polynomial time for example by the href http en wikipedia org wiki Hopcroft E2 80 93Karp algorithm rel nofollow noreferrer Hopcroft–Karp algorithm given graph can have several maximum matchings but any of them will do as they all have the same size In the example all the maximum matchings have three pairs of vertices for example pp img src https stack imgur com q5MD5 png alt pp Other maximum matchings in this graph include and ppTo get from maximum matching to the corresponding href http en wikipedia org wiki Vertex cover rel nofollow noreferrer minimum vertex cover apply the href https en wikipedia org wiki C5 91nig 27s theorem graph theory Proof rel nofollow noreferrer proof of König’s theorem In the matching shown above the left set is emL em the right set is emR em and the set of unmatched vertices in emL em is emU em There is only one alternating path starting in emU em namely 1–3–6 so the set of vertices in alternating paths is emZ em and the minimum vertex cover is thus emK em emL em emZ em emR em emZ em shown in red below with the maximum independent set in green pp img src https stack imgur com Im3Nd png alt ppTranslating this back into the dissection problem this means that we can use five axis parallel diagonals in the dissection pp img src https stack imgur com d6lLD png alt ppFinally make cut from each remaining concave vertex to complete the dissection pp img src https stack imgur com 4hJaS png alt Using the example in the post let be and be Then and the only alternating path starting from is 1–3–6 So and which is the minimum vertex cover Alternatively let be and be This way round we have and there are two alternating paths 5–2–4 and 5–7–8 So and pDespite the title to your question think you’re actually looking for the minimum emdissection em into rectangles of rectilinear polygon Jason’s links are about minimum emcovers em by rectangles which is quite different problem pp href http www ics uci edu eppstein rel nofollow noreferrer David Eppstein discusses this problem in section of his 2010 survey article href http arxiv org pdf 0908 3916v1 rel nofollow noreferrer Graph Theoretic Solutions to Computational Geometry Problems and he gives nice summary in href https mathoverflow net questions 28303 split polygon into minimum amount of rectangles and triangles 28350 28350 this answer on mathoverflow net pblockquote pThe idea is to find the maximum number of disjoint axis parallel diagonals that have two concave vertices as endpoints split along those and then form one more split for each remaining concave vertex To find the maximum number of disjoint axis parallel diagonals form the intersection graph of the diagonals this graph is bipartite so its maximum independent set can be found in polynomial time by graph matching techniques blockquotepHere’s my gloss on this admirably terse description using figure from Eppstein’s article Suppose we have rectilinear polygon possibly with holes pp img src https stack imgur com fCyRM png alt ppWhen the polygon is dissected into rectangles each of the concave vertices must be met by at least one edge of the dissection So we get the emminimum em dissection if as many of these edges as possible do double duty that is they connect two of the concave vertices ppSo let’s draw the axis parallel diagonals between two concave vertices that are contained entirely within the polygon ‘Axis parallel’ means ‘horizontal or vertical’ here and href http en wikipedia org wiki Diagonal Polygons rel nofollow noreferrer diagonal of polygon is line connecting two non adjacent vertices We want to use as many of these lines as possible in the dissection as long as they don’t intersect pp img src https stack imgur com EzPPP png alt pp If there are no axis parallel diagonals the dissection is trivial—just make cut from each concave vertex Or if there are no intersections between the axis parallel diagonals then we use them all plus cut from each remaining concave vertex Otherwise read on ppThe href http en wikipedia org wiki Intersection graph rel nofollow noreferrer intersection graph of set of line segments has node for every line segment and an edge joins two nodes if the lines cross Here’s the intersection graph for the axis parallel diagonals pp img src https stack imgur com 4SWYk png alt ppIt’s href http en wikipedia org wiki Bipartite graph rel nofollow noreferrer bipartite with the vertical diagonals in one part and the horizontal diagonals in the other part Now we want to pick as many of the diagonals as possible as long as they don’t intersect This corresponds to finding the href http en wikipedia org wiki Independent set 28graph theory 29 rel nofollow noreferrer maximum independent set in the intersection graph ppFinding the maximum independent set in general graph is an NP hard problem but in the special case of bipartite graph href http en wikipedia org wiki C3 B6nig 27s theorem 28graph theory 29 rel nofollow noreferrer König’s theorem shows that it’s equivalent to the problem of finding maximum matching which can be solved in polynomial time for example by the href http en wikipedia org wiki Hopcroft E2 80 93Karp algorithm rel nofollow noreferrer Hopcroft–Karp algorithm given graph can have several maximum matchings but any of them will do as they all have the same size In the example all the maximum matchings have three pairs of vertices for example pp img src https stack imgur com q5MD5 png alt pp Other maximum matchings in this graph include and ppTo get from maximum matching to the corresponding href http en wikipedia org wiki Vertex cover rel nofollow noreferrer minimum vertex cover apply the href https en wikipedia org wiki C5 91nig 27s theorem graph theory Proof rel nofollow noreferrer proof of König’s theorem In the matching shown above the left set is emL em the right set is emR em and the set of unmatched vertices in emL em is emU em There is only one alternating path starting in emU em namely 1–3–6 so the set of vertices in alternating paths is emZ em and the minimum vertex cover is thus emK em emL em emZ em emR em emZ em shown in red below with the maximum independent set in green pp img src https stack imgur com Im3Nd png alt ppTranslating this back into the dissection problem this means that we can use five axis parallel diagonals in the dissection pp img src https stack imgur com d6lLD png alt ppFinally make cut from each remaining concave vertex to complete the dissection pp img src https stack imgur com 4hJaS png alt The only hard bit is the matching step and for that you could use the hopcroftkarp https pypi python org pypi hopcroftkarp package pDespite the title to your question think you’re actually looking for the minimum emdissection em into rectangles of rectilinear polygon Jason’s links are about minimum emcovers em by rectangles which is quite different problem pp href http www ics uci edu eppstein rel nofollow noreferrer David Eppstein discusses this problem in section of his 2010 survey article href http arxiv org pdf 0908 3916v1 rel nofollow noreferrer Graph Theoretic Solutions to Computational Geometry Problems and he gives nice summary in href https mathoverflow net questions 28303 split polygon into minimum amount of rectangles and triangles 28350 28350 this answer on mathoverflow net pblockquote pThe idea is to find the maximum number of disjoint axis parallel diagonals that have two concave vertices as endpoints split along those and then form one more split for each remaining concave vertex To find the maximum number of disjoint axis parallel diagonals form the intersection graph of the diagonals this graph is bipartite so its maximum independent set can be found in polynomial time by graph matching techniques blockquotepHere’s my gloss on this admirably terse description using figure from Eppstein’s article Suppose we have rectilinear polygon possibly with holes pp img src https stack imgur com fCyRM png alt ppWhen the polygon is dissected into rectangles each of the concave vertices must be met by at least one edge of the dissection So we get the emminimum em dissection if as many of these edges as possible do double duty that is they connect two of the concave vertices ppSo let’s draw the axis parallel diagonals between two concave vertices that are contained entirely within the polygon ‘Axis parallel’ means ‘horizontal or vertical’ here and href http en wikipedia org wiki Diagonal Polygons rel nofollow noreferrer diagonal of polygon is line connecting two non adjacent vertices We want to use as many of these lines as possible in the dissection as long as they don’t intersect pp img src https stack imgur com EzPPP png alt pp If there are no axis parallel diagonals the dissection is trivial—just make cut from each concave vertex Or if there are no intersections between the axis parallel diagonals then we use them all plus cut from each remaining concave vertex Otherwise read on ppThe href http en wikipedia org wiki Intersection graph rel nofollow noreferrer intersection graph of set of line segments has node for every line segment and an edge joins two nodes if the lines cross Here’s the intersection graph for the axis parallel diagonals pp img src https stack imgur com 4SWYk png alt ppIt’s href http en wikipedia org wiki Bipartite graph rel nofollow noreferrer bipartite with the vertical diagonals in one part and the horizontal diagonals in the other part Now we want to pick as many of the diagonals as possible as long as they don’t intersect This corresponds to finding the href http en wikipedia org wiki Independent set 28graph theory 29 rel nofollow noreferrer maximum independent set in the intersection graph ppFinding the maximum independent set in general graph is an NP hard problem but in the special case of bipartite graph href http en wikipedia org wiki C3 B6nig 27s theorem 28graph theory 29 rel nofollow noreferrer König’s theorem shows that it’s equivalent to the problem of finding maximum matching which can be solved in polynomial time for example by the href http en wikipedia org wiki Hopcroft E2 80 93Karp algorithm rel nofollow noreferrer Hopcroft–Karp algorithm given graph can have several maximum matchings but any of them will do as they all have the same size In the example all the maximum matchings have three pairs of vertices for example pp img src https stack imgur com q5MD5 png alt pp Other maximum matchings in this graph include and ppTo get from maximum matching to the corresponding href http en wikipedia org wiki Vertex cover rel nofollow noreferrer minimum vertex cover apply the href https en wikipedia org wiki C5 91nig 27s theorem graph theory Proof rel nofollow noreferrer proof of König’s theorem In the matching shown above the left set is emL em the right set is emR em and the set of unmatched vertices in emL em is emU em There is only one alternating path starting in emU em namely 1–3–6 so the set of vertices in alternating paths is emZ em and the minimum vertex cover is thus emK em emL em emZ em emR em emZ em shown in red below with the maximum independent set in green pp img src https stack imgur com Im3Nd png alt ppTranslating this back into the dissection problem this means that we can use five axis parallel diagonals in the dissection pp img src https stack imgur com d6lLD png alt ppFinally make cut from each remaining concave vertex to complete the dissection pp img src https stack imgur com 4hJaS png alt When there are no more free vertices there are no more augmenting paths so the Hopcroft–Karp algorithm terminates ii If none of the axis parallel diagonals intersect then the maximum matching in the intersection graph is empty and so the maximum independent set contains all the diagonals and so you can use them all in the dissection pIf you re writing debugger you ll want to make heavy use of the href http docs python org library inspect html rel noreferrer codeinspect code module ppre codedef show callers locals Print the local variables in the caller frame import inspect frame inspect currentframe try print frame back locals finally del frame code pre The inspect documentation https docs python org library inspect html the interpreter stack explains the del frame""",guru nice answer enlighten nice answer yearle good answer good answer good answer nice answer good answer nice answer good answer nice answer nice answer nice answer enlighten great answer good answer notable question announcer guru necromancer nice answer yearle necromancer nice answer enlighten great answer nice answer guru guru nice answer enlighten nice answer nice answer guru nice answer enlighten nice answer good answer nice answer nice answer nice answer enlighten nice answer nice answer great answer nice answer good answer guru yearle announcer good answer nice answer announcer nice answer nice answer enlighten nice answer announcer pthere nice approach problem vector cross product define dimensional vector cross product strongv strong strongw strong strongv strong subx strongw strong suby strongv strong suby strongw strong subx ppsuppose line segment run strongp strong strongp strong strongr strong strongq strong strongq strong strong strong point line representable strongp strong emt -PRON- strongr strong scalar parameter emt -PRON- point line strongq strong emu -PRON- strong strong scalar parameter emu -PRON- img src https stack imgur png alt line segment intersect ppthe line intersect emt -PRON- emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong blockquotep img src https stack imgur eqrwj png alt formulae point intersection ppcross side strong strong pblockquote strongp strong emt -PRON- strongr strong strong strong strongq strong emu -PRON- strong strong strong strong blockquotepand strong strong strong strong mean pblockquote emt -PRON- strongr strong strong strong strongq strong strongp strong strong strong blockquotepand solve emt -PRON- pblockquote emt -PRON- strongq strong strongp strong strong strong strongr strong strong strong blockquotepin solve emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongr strong strongq strong emu -PRON- strong strong strongr strong emu -PRON- strong strong strongr strong strongp strong strongq strong strongr strong emu -PRON- strongp strong strongq strong strongr strong strong strong strongr strong blockquotepto reduce number computation step convenient rewrite remember strong strong strongr strong strongr strong strong strong pblockquote emu -PRON- strongq strong strongp strong strongr strong strongr strong strong strong blockquotepnow case polli pif strongr strong strong strong strongq strong strongp strong strongr strong line collinear ppin case express endpoint segment strongq strong strongq strong strong strong term equation line segment strongp strong emt -PRON- strongr strong pblockquote emt -PRON- strongq strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strongq strong strong strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strong strong strongr strong strongr strong strongr strong blockquotepif interval emt -PRON- emt -PRON- intersect interval line segment collinear overlap collinear disjoint ppnote strong strong strongr strong point opposite direction strong strong strongr strong lt interval check emt -PRON- emt -PRON- emt -PRON- emt -PRON- lili pif strongr strong strong strong strongq strong strongp strong strongr strong line parallel intersect lili pif strongr strong strong strong emt -PRON- emu -PRON- line segment meet point strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong lili potherwise line segment parallel intersect li olpcredit method dimensional specialization line intersection algorithm article intersection line space ronald goldman publish emgraphic gem -PRON- page dimension usual case line skew parallel intersect case method point close approach line dot product vector return scalar pthere nice approach problem vector cross product define dimensional vector cross product strongv strong strongw strong strongv strong subx strongw strong suby strongv strong suby strongw strong subx ppsuppose line segment run strongp strong strongp strong strongr strong strongq strong strongq strong strong strong point line representable strongp strong emt -PRON- strongr strong scalar parameter emt -PRON- point line strongq strong emu -PRON- strong strong scalar parameter emu -PRON- img src https stack imgur png alt line segment intersect ppthe line intersect emt -PRON- emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong blockquotep img src https stack imgur eqrwj png alt formulae point intersection ppcross side strong strong pblockquote strongp strong emt -PRON- strongr strong strong strong strongq strong emu -PRON- strong strong strong strong blockquotepand strong strong strong strong mean pblockquote emt -PRON- strongr strong strong strong strongq strong strongp strong strong strong blockquotepand solve emt -PRON- pblockquote emt -PRON- strongq strong strongp strong strong strong strongr strong strong strong blockquotepin solve emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongr strong strongq strong emu -PRON- strong strong strongr strong emu -PRON- strong strong strongr strong strongp strong strongq strong strongr strong emu -PRON- strongp strong strongq strong strongr strong strong strong strongr strong blockquotepto reduce number computation step convenient rewrite remember strong strong strongr strong strongr strong strong strong pblockquote emu -PRON- strongq strong strongp strong strongr strong strongr strong strong strong blockquotepnow case polli pif strongr strong strong strong strongq strong strongp strong strongr strong line collinear ppin case express endpoint segment strongq strong strongq strong strong strong term equation line segment strongp strong emt -PRON- strongr strong pblockquote emt -PRON- strongq strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strongq strong strong strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strong strong strongr strong strongr strong strongr strong blockquotepif interval emt -PRON- emt -PRON- intersect interval line segment collinear overlap collinear disjoint ppnote strong strong strongr strong point opposite direction strong strong strongr strong lt interval check emt -PRON- emt -PRON- emt -PRON- emt -PRON- lili pif strongr strong strong strong strongq strong strongp strong strongr strong line parallel intersect lili pif strongr strong strong strong emt -PRON- emu -PRON- line segment meet point strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong lili potherwise line segment parallel intersect li olpcredit method dimensional specialization line intersection algorithm article intersection line space ronald goldman publish emgraphic gem -PRON- page dimension usual case line skew parallel intersect case method point close approach line engr complete solution represent line segment determine intersection lie segment handle collinear parallel case pthere nice approach problem vector cross product define dimensional vector cross product strongv strong strongw strong strongv strong subx strongw strong suby strongv strong suby strongw strong subx ppsuppose line segment run strongp strong strongp strong strongr strong strongq strong strongq strong strong strong point line representable strongp strong emt -PRON- strongr strong scalar parameter emt -PRON- point line strongq strong emu -PRON- strong strong scalar parameter emu -PRON- img src https stack imgur png alt line segment intersect ppthe line intersect emt -PRON- emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong blockquotep img src https stack imgur eqrwj png alt formulae point intersection ppcross side strong strong pblockquote strongp strong emt -PRON- strongr strong strong strong strongq strong emu -PRON- strong strong strong strong blockquotepand strong strong strong strong mean pblockquote emt -PRON- strongr strong strong strong strongq strong strongp strong strong strong blockquotepand solve emt -PRON- pblockquote emt -PRON- strongq strong strongp strong strong strong strongr strong strong strong blockquotepin solve emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongr strong strongq strong emu -PRON- strong strong strongr strong emu -PRON- strong strong strongr strong strongp strong strongq strong strongr strong emu -PRON- strongp strong strongq strong strongr strong strong strong strongr strong blockquotepto reduce number computation step convenient rewrite remember strong strong strongr strong strongr strong strong strong pblockquote emu -PRON- strongq strong strongp strong strongr strong strongr strong strong strong blockquotepnow case polli pif strongr strong strong strong strongq strong strongp strong strongr strong line collinear ppin case express endpoint segment strongq strong strongq strong strong strong term equation line segment strongp strong emt -PRON- strongr strong pblockquote emt -PRON- strongq strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strongq strong strong strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strong strong strongr strong strongr strong strongr strong blockquotepif interval emt -PRON- emt -PRON- intersect interval line segment collinear overlap collinear disjoint ppnote strong strong strongr strong point opposite direction strong strong strongr strong lt interval check emt -PRON- emt -PRON- emt -PRON- emt -PRON- lili pif strongr strong strong strong strongq strong strongp strong strongr strong line parallel intersect lili pif strongr strong strong strong emt -PRON- emu -PRON- line segment meet point strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong lili potherwise line segment parallel intersect li olpcredit method dimensional specialization line intersection algorithm article intersection line space ronald goldman publish emgraphic gem -PRON- page dimension usual case line skew parallel intersect case method point close approach line engr write version computation amount thing surprising compute result approach advantage work vector coordinate mean step operation vector operation value pthere nice approach problem vector cross product define dimensional vector cross product strongv strong strongw strong strongv strong subx strongw strong suby strongv strong suby strongw strong subx ppsuppose line segment run strongp strong strongp strong strongr strong strongq strong strongq strong strong strong point line representable strongp strong emt -PRON- strongr strong scalar parameter emt -PRON- point line strongq strong emu -PRON- strong strong scalar parameter emu -PRON- img src https stack imgur png alt line segment intersect ppthe line intersect emt -PRON- emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong blockquotep img src https stack imgur eqrwj png alt formulae point intersection ppcross side strong strong pblockquote strongp strong emt -PRON- strongr strong strong strong strongq strong emu -PRON- strong strong strong strong blockquotepand strong strong strong strong mean pblockquote emt -PRON- strongr strong strong strong strongq strong strongp strong strong strong blockquotepand solve emt -PRON- pblockquote emt -PRON- strongq strong strongp strong strong strong strongr strong strong strong blockquotepin solve emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongr strong strongq strong emu -PRON- strong strong strongr strong emu -PRON- strong strong strongr strong strongp strong strongq strong strongr strong emu -PRON- strongp strong strongq strong strongr strong strong strong strongr strong blockquotepto reduce number computation step convenient rewrite remember strong strong strongr strong strongr strong strong strong pblockquote emu -PRON- strongq strong strongp strong strongr strong strongr strong strong strong blockquotepnow case polli pif strongr strong strong strong strongq strong strongp strong strongr strong line collinear ppin case express endpoint segment strongq strong strongq strong strong strong term equation line segment strongp strong emt -PRON- strongr strong pblockquote emt -PRON- strongq strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strongq strong strong strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strong strong strongr strong strongr strong strongr strong blockquotepif interval emt -PRON- emt -PRON- intersect interval line segment collinear overlap collinear disjoint ppnote strong strong strongr strong point opposite direction strong strong strongr strong lt interval check emt -PRON- emt -PRON- emt -PRON- emt -PRON- lili pif strongr strong strong strong strongq strong strongp strong strongr strong line parallel intersect lili pif strongr strong strong strong emt -PRON- emu -PRON- line segment meet point strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong lili potherwise line segment parallel intersect li olpcredit method dimensional specialization line intersection algorithm article intersection line space ronald goldman publish emgraphic gem -PRON- page dimension usual case line skew parallel intersect case method point close approach line parallel perpendicular pthere nice approach problem vector cross product define dimensional vector cross product strongv strong strongw strong strongv strong subx strongw strong suby strongv strong suby strongw strong subx ppsuppose line segment run strongp strong strongp strong strongr strong strongq strong strongq strong strong strong point line representable strongp strong emt -PRON- strongr strong scalar parameter emt -PRON- point line strongq strong emu -PRON- strong strong scalar parameter emu -PRON- img src https stack imgur png alt line segment intersect ppthe line intersect emt -PRON- emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong blockquotep img src https stack imgur eqrwj png alt formulae point intersection ppcross side strong strong pblockquote strongp strong emt -PRON- strongr strong strong strong strongq strong emu -PRON- strong strong strong strong blockquotepand strong strong strong strong mean pblockquote emt -PRON- strongr strong strong strong strongq strong strongp strong strong strong blockquotepand solve emt -PRON- pblockquote emt -PRON- strongq strong strongp strong strong strong strongr strong strong strong blockquotepin solve emu -PRON- pblockquote strongp strong emt -PRON- strongr strong strongr strong strongq strong emu -PRON- strong strong strongr strong emu -PRON- strong strong strongr strong strongp strong strongq strong strongr strong emu -PRON- strongp strong strongq strong strongr strong strong strong strongr strong blockquotepto reduce number computation step convenient rewrite remember strong strong strongr strong strongr strong strong strong pblockquote emu -PRON- strongq strong strongp strong strongr strong strongr strong strong strong blockquotepnow case polli pif strongr strong strong strong strongq strong strongp strong strongr strong line collinear ppin case express endpoint segment strongq strong strongq strong strong strong term equation line segment strongp strong emt -PRON- strongr strong pblockquote emt -PRON- strongq strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strongq strong strong strong strongp strong strongr strong strongr strong strongr strong emt -PRON- strong strong strongr strong strongr strong strongr strong blockquotepif interval emt -PRON- emt -PRON- intersect interval line segment collinear overlap collinear disjoint ppnote strong strong strongr strong point opposite direction strong strong strongr strong lt interval check emt -PRON- emt -PRON- emt -PRON- emt -PRON- lili pif strongr strong strong strong strongq strong strongp strong strongr strong line parallel intersect lili pif strongr strong strong strong emt -PRON- emu -PRON- line segment meet point strongp strong emt -PRON- strongr strong strongq strong emu -PRON- strong strong lili potherwise line segment parallel intersect li olpcredit method dimensional specialization line intersection algorithm article intersection line space ronald goldman publish emgraphic gem -PRON- page dimension usual case line skew parallel intersect case method point close approach line name pyou wall align coordinate axis make sense write special case code vertical wall negate coordinate velocity horizontal wall negate coordinate velocity game work vertical horizontal wall thing wall arbitrary angle worth think general case begin ppin general case suppose missile velocity strongv strong hit wall surface normal strongn strong img src https stack imgur png alt missile vector obliquely hit wall surface normal ppsplit strongv strong component strongu strong perpendicular wall strongw strong parallel img src https stack imgur png alt angle triangle hypotenuse short parallel wall long parallel wall ppwhere strongu strong strongv strong strongn strong strongn strong strongn strong strongn strong brstrongw strong strongv strong strongu strong pphere strongv strong strongn strong href http wikipedia org wiki dot product noreferrer dot product vector strongv strong strongn strong link explanation compute dot product strongn strong strongn strong evaluate square length normal vector normal form href http wikipedia org wiki unit vector noreferrer unit vector strongn strong strongn strong omit division ppafter bounce component motion parallel wall affect friction emf -PRON- component perpendicular wall affect elasticity form href http wikipedia org wiki coefficient restitution noreferrer coefficient restitution emr -PRON- ppso velocity collision strong emf -PRON- strongw strong emr -PRON- strongu strong perfectly elastic frictionless collision strong strongw strong strongu strong motion reflect normal point collision diagram answer ppthis approach work dimension simplify notion bounce take account angular momentum deformation kind video game kind simplification perfectly adequate object hit wall wall hit pdespite title question minimum emdissection -PRON- rectangle rectilinear polygon jason link minimum emcover -PRON- rectangle problem href http ics eppstein nofollow noreferrer david eppstein discuss problem section survey article href http arxiv org pdf nofollow noreferrer graph theoretic solution computational geometry problem nice summary href https mathoverflow net question split polygon minimum rectangle triangle answer mathoverflow net pblockquote pthe idea maximum number disjoint axis parallel diagonal concave vertex endpoint split form split remain concave vertex maximum number disjoint axis parallel diagonal form intersection graph diagonal graph bipartite maximum independent set polynomial time graph match technique blockquotephere gloss admirably terse description figure eppstein article suppose rectilinear polygon possibly hole img src https stack imgur fcyrm png alt ppwhen polygon dissect rectangle concave vertex meet edge dissection emminimum -PRON- dissection edge double duty connect concave vertex ppso draw axis parallel diagonal concave vertex contain polygon axis parallel mean horizontal vertical href http wikipedia org wiki diagonal polygon nofollow noreferrer diagonal polygon line connect adjacent vertex line dissection long intersect img src https stack imgur ezppp png alt axis parallel diagonal dissection make cut concave vertex intersection axis parallel diagonal cut remain concave vertex read ppthe href http wikipedia org wiki intersection graph nofollow noreferrer intersection graph set line segment node line segment edge join node line cross intersection graph axis parallel diagonal img src https stack imgur png alt ppit href http wikipedia org wiki bipartite graph nofollow noreferrer bipartite vertical diagonal horizontal diagonal pick diagonal long intersect correspond find href http wikipedia org wiki independent set theory nofollow noreferrer maximum independent set intersection graph ppfinding maximum independent set general graph np hard problem special case bipartite graph href http wikipedia org wiki theorem theory nofollow noreferrer theorem show equivalent problem find maximum match solve polynomial time href http wikipedia org wiki hopcroft algorithm nofollow noreferrer algorithm graph maximum matching size maximum matching pair vertex img src https stack imgur png alt maximum matching graph include ppto maximum match href http wikipedia org wiki vertex cover nofollow noreferrer minimum vertex cover apply href https wikipedia org wiki theorem graph theory proof nofollow noreferrer proof theorem match show leave set eml -PRON- set emr -PRON- set unmatched vertex eml -PRON- emu -PRON- alternate path start emu -PRON- set vertex alternate path emz -PRON- minimum vertex cover emk -PRON- eml -PRON- emz -PRON- emr -PRON- emz -PRON- show red maximum independent set green img src https stack imgur png alt pptranslate dissection problem mean axis parallel diagonal dissection img src https stack imgur png alt ppfinally make cut remain concave vertex complete dissection img src https stack imgur png alt axis parallel diagonal dissection trivial pdespite title question minimum emdissection -PRON- rectangle rectilinear polygon jason link minimum emcover -PRON- rectangle problem href http ics eppstein nofollow noreferrer david eppstein discuss problem section survey article href http arxiv org pdf nofollow noreferrer graph theoretic solution computational geometry problem nice summary href https mathoverflow net question split polygon minimum rectangle triangle answer mathoverflow net pblockquote pthe idea maximum number disjoint axis parallel diagonal concave vertex endpoint split form split remain concave vertex maximum number disjoint axis parallel diagonal form intersection graph diagonal graph bipartite maximum independent set polynomial time graph match technique blockquotephere gloss admirably terse description figure eppstein article suppose rectilinear polygon possibly hole img src https stack imgur fcyrm png alt ppwhen polygon dissect rectangle concave vertex meet edge dissection emminimum -PRON- dissection edge double duty connect concave vertex ppso draw axis parallel diagonal concave vertex contain polygon axis parallel mean horizontal vertical href http wikipedia org wiki diagonal polygon nofollow noreferrer diagonal polygon line connect adjacent vertex line dissection long intersect img src https stack imgur ezppp png alt axis parallel diagonal dissection make cut concave vertex intersection axis parallel diagonal cut remain concave vertex read ppthe href http wikipedia org wiki intersection graph nofollow noreferrer intersection graph set line segment node line segment edge join node line cross intersection graph axis parallel diagonal img src https stack imgur png alt ppit href http wikipedia org wiki bipartite graph nofollow noreferrer bipartite vertical diagonal horizontal diagonal pick diagonal long intersect correspond find href http wikipedia org wiki independent set theory nofollow noreferrer maximum independent set intersection graph ppfinding maximum independent set general graph np hard problem special case bipartite graph href http wikipedia org wiki theorem theory nofollow noreferrer theorem show equivalent problem find maximum match solve polynomial time href http wikipedia org wiki hopcroft algorithm nofollow noreferrer algorithm graph maximum matching size maximum matching pair vertex img src https stack imgur png alt maximum matching graph include ppto maximum match href http wikipedia org wiki vertex cover nofollow noreferrer minimum vertex cover apply href https wikipedia org wiki theorem graph theory proof nofollow noreferrer proof theorem match show leave set eml -PRON- set emr -PRON- set unmatched vertex eml -PRON- emu -PRON- alternate path start emu -PRON- set vertex alternate path emz -PRON- minimum vertex cover emk -PRON- eml -PRON- emz -PRON- emr -PRON- emz -PRON- show red maximum independent set green img src https stack imgur png alt pptranslate dissection problem mean axis parallel diagonal dissection img src https stack imgur png alt ppfinally make cut remain concave vertex complete dissection img src https stack imgur png alt maximum match necessarily unique case spot purpose find maximum independent set pdespite title question minimum emdissection -PRON- rectangle rectilinear polygon jason link minimum emcover -PRON- rectangle problem href http ics eppstein nofollow noreferrer david eppstein discuss problem section survey article href http arxiv org pdf nofollow noreferrer graph theoretic solution computational geometry problem nice summary href https mathoverflow net question split polygon minimum rectangle triangle answer mathoverflow net pblockquote pthe idea maximum number disjoint axis parallel diagonal concave vertex endpoint split form split remain concave vertex maximum number disjoint axis parallel diagonal form intersection graph diagonal graph bipartite maximum independent set polynomial time graph match technique blockquotephere gloss admirably terse description figure eppstein article suppose rectilinear polygon possibly hole img src https stack imgur fcyrm png alt ppwhen polygon dissect rectangle concave vertex meet edge dissection emminimum -PRON- dissection edge double duty connect concave vertex ppso draw axis parallel diagonal concave vertex contain polygon axis parallel mean horizontal vertical href http wikipedia org wiki diagonal polygon nofollow noreferrer diagonal polygon line connect adjacent vertex line dissection long intersect img src https stack imgur ezppp png alt axis parallel diagonal dissection make cut concave vertex intersection axis parallel diagonal cut remain concave vertex read ppthe href http wikipedia org wiki intersection graph nofollow noreferrer intersection graph set line segment node line segment edge join node line cross intersection graph axis parallel diagonal img src https stack imgur png alt ppit href http wikipedia org wiki bipartite graph nofollow noreferrer bipartite vertical diagonal horizontal diagonal pick diagonal long intersect correspond find href http wikipedia org wiki independent set theory nofollow noreferrer maximum independent set intersection graph ppfinding maximum independent set general graph np hard problem special case bipartite graph href http wikipedia org wiki theorem theory nofollow noreferrer theorem show equivalent problem find maximum match solve polynomial time href http wikipedia org wiki hopcroft algorithm nofollow noreferrer algorithm graph maximum matching size maximum matching pair vertex img src https stack imgur png alt maximum matching graph include ppto maximum match href http wikipedia org wiki vertex cover nofollow noreferrer minimum vertex cover apply href https wikipedia org wiki theorem graph theory proof nofollow noreferrer proof theorem match show leave set eml -PRON- set emr -PRON- set unmatched vertex eml -PRON- emu -PRON- alternate path start emu -PRON- set vertex alternate path emz -PRON- minimum vertex cover emk -PRON- eml -PRON- emz -PRON- emr -PRON- emz -PRON- show red maximum independent set green img src https stack imgur png alt pptranslate dissection problem mean axis parallel diagonal dissection img src https stack imgur png alt ppfinally make cut remain concave vertex complete dissection img src https stack imgur png alt post alternate path start minimum vertex cover alternatively alternate path pdespite title question minimum emdissection -PRON- rectangle rectilinear polygon jason link minimum emcover -PRON- rectangle problem href http ics eppstein nofollow noreferrer david eppstein discuss problem section survey article href http arxiv org pdf nofollow noreferrer graph theoretic solution computational geometry problem nice summary href https mathoverflow net question split polygon minimum rectangle triangle answer mathoverflow net pblockquote pthe idea maximum number disjoint axis parallel diagonal concave vertex endpoint split form split remain concave vertex maximum number disjoint axis parallel diagonal form intersection graph diagonal graph bipartite maximum independent set polynomial time graph match technique blockquotephere gloss admirably terse description figure eppstein article suppose rectilinear polygon possibly hole img src https stack imgur fcyrm png alt ppwhen polygon dissect rectangle concave vertex meet edge dissection emminimum -PRON- dissection edge double duty connect concave vertex ppso draw axis parallel diagonal concave vertex contain polygon axis parallel mean horizontal vertical href http wikipedia org wiki diagonal polygon nofollow noreferrer diagonal polygon line connect adjacent vertex line dissection long intersect img src https stack imgur ezppp png alt axis parallel diagonal dissection make cut concave vertex intersection axis parallel diagonal cut remain concave vertex read ppthe href http wikipedia org wiki intersection graph nofollow noreferrer intersection graph set line segment node line segment edge join node line cross intersection graph axis parallel diagonal img src https stack imgur png alt ppit href http wikipedia org wiki bipartite graph nofollow noreferrer bipartite vertical diagonal horizontal diagonal pick diagonal long intersect correspond find href http wikipedia org wiki independent set theory nofollow noreferrer maximum independent set intersection graph ppfinding maximum independent set general graph np hard problem special case bipartite graph href http wikipedia org wiki theorem theory nofollow noreferrer theorem show equivalent problem find maximum match solve polynomial time href http wikipedia org wiki hopcroft algorithm nofollow noreferrer algorithm graph maximum matching size maximum matching pair vertex img src https stack imgur png alt maximum matching graph include ppto maximum match href http wikipedia org wiki vertex cover nofollow noreferrer minimum vertex cover apply href https wikipedia org wiki theorem graph theory proof nofollow noreferrer proof theorem match show leave set eml -PRON- set emr -PRON- set unmatched vertex eml -PRON- emu -PRON- alternate path start emu -PRON- set vertex alternate path emz -PRON- minimum vertex cover emk -PRON- eml -PRON- emz -PRON- emr -PRON- emz -PRON- show red maximum independent set green img src https stack imgur png alt pptranslate dissection problem mean axis parallel diagonal dissection img src https stack imgur png alt ppfinally make cut remain concave vertex complete dissection img src https stack imgur png alt hard bit match step hopcroftkarp https pypi python org pypi hopcroftkarp package pdespite title question minimum emdissection -PRON- rectangle rectilinear polygon jason link minimum emcover -PRON- rectangle problem href http ics eppstein nofollow noreferrer david eppstein discuss problem section survey article href http arxiv org pdf nofollow noreferrer graph theoretic solution computational geometry problem nice summary href https mathoverflow net question split polygon minimum rectangle triangle answer mathoverflow net pblockquote pthe idea maximum number disjoint axis parallel diagonal concave vertex endpoint split form split remain concave vertex maximum number disjoint axis parallel diagonal form intersection graph diagonal graph bipartite maximum independent set polynomial time graph match technique blockquotephere gloss admirably terse description figure eppstein article suppose rectilinear polygon possibly hole img src https stack imgur fcyrm png alt ppwhen polygon dissect rectangle concave vertex meet edge dissection emminimum -PRON- dissection edge double duty connect concave vertex ppso draw axis parallel diagonal concave vertex contain polygon axis parallel mean horizontal vertical href http wikipedia org wiki diagonal polygon nofollow noreferrer diagonal polygon line connect adjacent vertex line dissection long intersect img src https stack imgur ezppp png alt axis parallel diagonal dissection make cut concave vertex intersection axis parallel diagonal cut remain concave vertex read ppthe href http wikipedia org wiki intersection graph nofollow noreferrer intersection graph set line segment node line segment edge join node line cross intersection graph axis parallel diagonal img src https stack imgur png alt ppit href http wikipedia org wiki bipartite graph nofollow noreferrer bipartite vertical diagonal horizontal diagonal pick diagonal long intersect correspond find href http wikipedia org wiki independent set theory nofollow noreferrer maximum independent set intersection ,,,,,,, "raph ppfinding maximum independent set general graph np hard problem special case bipartite graph href http wikipedia org wiki theorem theory nofollow noreferrer theorem show equivalent problem find maximum match solve polynomial time href http wikipedia org wiki hopcroft algorithm nofollow noreferrer algorithm graph maximum matching size maximum matching pair vertex img src https stack imgur png alt maximum matching graph include ppto maximum match href http wikipedia org wiki vertex cover nofollow noreferrer minimum vertex cover apply href https wikipedia org wiki theorem graph theory proof nofollow noreferrer proof theorem match show leave set eml -PRON- set emr -PRON- set unmatched vertex eml -PRON- emu -PRON- alternate path start emu -PRON- set vertex alternate path emz -PRON- minimum vertex cover emk -PRON- eml -PRON- emz -PRON- emr -PRON- emz -PRON- show red maximum independent set green img src https stack imgur png alt pptranslate dissection problem mean axis parallel diagonal dissection img src https stack imgur png alt ppfinally make cut remain concave vertex complete dissection img src https stack imgur png alt free vertex augment path algorithm terminate axis parallel diagonal intersect maximum match intersection graph maximum independent set diagonal dissection pif write debugger make heavy href http docs python org library inspect html noreferrer codeinspect code module codedef caller local print local variable caller frame import inspect frame inspect currentframe print frame local finally frame code inspect documentation https docs python org library inspect html interpreter stack explain frame""",0,NULL,NULL,,,,, 28253,139267,170970,Nice Answer Yearling Nice Question Popular Question Popular Question Yearling Good Answer Nice Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 28254,52282,472109,Nice Answer Enlightened Popular Question Citizen Patrol Nice Answer Enlightened Nice Answer Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Nice Question Nice Answer Famous Question Yearling Popular Question Popular Question Revival Nice Question Popular Question Notable Question Quorum Popular Question Revival Good Question Popular Question Nice Question Nice Question Famous Question Popular Question Yearling Good Question Popular Question Popular Question Necromancer Popular Question Notable Question Famous Question Caucus Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 28255,80316,218347,NULL,NULL,NULL,0,NULL,NULL 28256,230279,500130,NULL,NULL,NULL,0,NULL,NULL 28257,84468,319030,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 28258,1117,408983,NULL,NULL,NULL,0,NULL,NULL 28259,806445,244330,Yearling Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Popular Question Notable Question Critic Famous Question Famous Question Popular Question Excavator Great Question Yearling Revival Popular Question Popular Question Popular Question Popular Question,NULL,pThe Script error happens in Firefox Safari and Chrome when an exception violates the browser href http en wikipedia org wiki Same origin policy rel noreferrer same origin policy when the error occurs in script that hosted on domain other than the domain of the current page ppThis behavior is intentional to prevent scripts from leaking information to external domains For an example of why this is necessary imagine accidentally visiting codeevilsite com code that serves up page with code lt script src yourbank com index html gt code yes we re pointing that script tag at html not JS This will result in script error but the error is interesting because it can tell us if you re logged in or not If you re logged in the error might be code Welcome Fred is undefined code whereas if you re not it might be code Please Login is undefined code Something along those lines ppIf evilsite com does this for the top 20 or so bank institutions they have pretty good idea of which banking sites you visit and could provide much more targeted phishing page This is just one example of course But it illustrates why browsers shouldn allow emany em data to cross domain boundaries ppI ve tested this in the latest versions of Safari Chrome and Firefox they all do this IE9 does not it treats origin exceptions the same as same origin ones And Opera doesn support onerror ppFrom the horses mouth href http trac webkit org browser branches chromium 648 Source WebCore dom ScriptExecutionContext cpp rev 77122 L301 rel noreferrer WebKit source that checks origin when passing exceptions to onerror And the href https dxr mozilla org mozilla beta source dom base nsJSEnvironment cpp 464 rel noreferrer Firefox source that checks pp strongUPDATE 10 21 11 strong The href https bugzilla mozilla org show bug cgi id 363897 rel noreferrer Firefox bug that tracks this issue includes link to the blog post that inspired this behavior pp strongUPDATE 12 14 strong You can now enable full cross domain error reporting on some browsers by specifying href https developer mozilla org en US docs Web HTML Element script attr crossorigin rel noreferrer codecrossorigin code attribute on script tags and having the server send the appropriate href https developer mozilla org en US docs Web HTTP Access control CORS rel noreferrer CORS HTTP response headers What if don want to show the errors in browser but want to send the errors details to an external server The crossorigin attribute will display every error on the browser right h1Misconceptions h1pThere are few common misconceptions regarding WebSocket and Socket IO polli pThe first misconception is that using Socket IO is significantly easier than using WebSocket which doesn seem to be the case See examples below lili pThe second misconception is that WebSocket is not widely supported in the browsers See below for more info lili pThe third misconception is that Socket IO downgrades the connection as fallback on older browsers It actually assumes that the browser is old and starts an AJAX connection to the server that gets later upgraded on browsers supporting WebSocket after some traffic is exchanged See below for details li olh1My experiment h1pI wrote an npm module to demonstrate the difference between WebSocket and Socket IO pulli href https www npmjs com package websocket vs socket io https www npmjs com package websocket vs socket io lili href https github com rsp node websocket vs socket io https github com rsp node websocket vs socket io li ulpIt is simple example of server side and client side code the client connects to the server using either WebSocket or Socket IO and the server sends three messages in 1s intervals which are added to the DOM by the client ph1Server side h1pCompare the server side example of using WebSocket and Socket IO to do the same in an Express js app ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js https github com rsp node websocket vs socket io blob master ws js ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js https github com rsp node websocket vs socket io blob master si js ph1Client side h1pCompare the client side example of using WebSocket and Socket IO to do the same in the browser ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html https github com rsp node websocket vs socket io blob master ws html ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html https github com rsp node websocket vs socket io blob master si html ph1Network traffic h1pTo see the difference in network traffic you can href https github com rsp node websocket vs socket io readme run my test Here are the results that got ph2WebSocket Results h2h32 requests 50 KB 05 h3pFrom those requests polliHTML page itself liliconnection upgrade to WebSocket li olp The connection upgrade request is visible on the developer tools with 101 Switching Protocols response ph2Socket IO Results h2h36 requests 181 56 KB 25 h3pFrom those requests pollithe HTML page itself liliSocket IO JavaScript 180 kilobytes lilifirst long polling AJAX request lilisecond long polling AJAX request lilithird long polling AJAX request liliconnection upgrade to WebSocket li olh2Screenshots h2pWebSocket results that got on localhost pp href https stack imgur com e2yY5 png img src https stack imgur com e2yY5 png alt WebSocket results websocket vs socket io module ppSocket IO results that got on localhost pp href https stack imgur com RHymm png img src https stack imgur com RHymm png alt Socket IO results websocket vs socket io module ph2Test yourself h2pQuick start ppre code Install npm websocket vs socket io Run the server websocket vs socket io code prepOpen href http localhost 3001 http localhost 3001 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the WebSocket version ppOpen href http localhost 3002 http localhost 3002 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the Socket IO version ppTo uninstall ppre code Uninstall npm rm websocket vs socket io code preh1Browser compatibility h1pAs of June 2016 WebSocket works on everything except Opera Mini including IE higher than ppThis is the browser compatibility of WebSocket on href http caniuse com feat websockets Can Use as of June 2016 pp href https stack imgur com igTKM png img src https stack imgur com igTKM png alt enter image description here ppSee href http caniuse com websockets http caniuse com websockets for up to date info This is an awesome test and should be the answer if the question was asked in 2016 Do all socket io request start with AJAX connection before upgrading to websocket or just at the connection request am using socket io for my browser game and realize that socket io comes with some overhead But still wonder how much more overhead does socket io put in every message sent can do the test myself but am not familiar with websocket library If in general socket io message has bigger overhead think may switch to websocket,0,NULL,NULL 28260,270223,46063,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 28261,420984,469616,NULL,NULL,NULL,0,NULL,NULL 28262,43153,450896,Nice Answer Enlightened Yearling Yearling Nice Answer Nice Answer Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 28263,804518,794940,NULL,NULL,NULL,0,NULL,NULL 28264,125755,975416,NULL,NULL,NULL,0,NULL,NULL 28265,273786,497051,Commentator,NULL,NULL,0,NULL,NULL 28266,937920,1488497,NULL,NULL,NULL,0,NULL,NULL 28267,122178,815708,Popular Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 28268,119751,879716,NULL,NULL,NULL,0,NULL,NULL 28269,118814,502161,NULL,NULL,NULL,0,NULL,NULL 28270,61182,191846,Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28271,1848621,454122,NULL,NULL,NULL,0,NULL,NULL 28272,107067,442433,Guru Yearling Good Answer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 28273,8451,186355,Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 28274,53847,369330,Tumbleweed Promoter Benefactor Yearling Notable Question Civic Duty Nice Answer Yearling Informed Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 28275,233394,1127934,NULL,NULL,NULL,0,NULL,NULL 28276,3498573,549530,Popular Question Investor,NULL,NULL,0,NULL,NULL 28277,84538,382716,Good Answer Yearling Curious Nice Answer,NULL,NULL,0,NULL,NULL 28278,172218,1115272,NULL,NULL,NULL,0,NULL,NULL 28279,4423519,510663,Notable Question,NULL,NULL,0,NULL,NULL 28280,1170901,799788,NULL,NULL,NULL,0,NULL,NULL 28281,893904,960214,Yearling,NULL,NULL,0,NULL,NULL 28282,152123,830050,NULL,NULL,NULL,0,NULL,NULL 28283,207806,214871,Student,NULL,NULL,0,NULL,NULL 28284,813289,1532482,Informed Peer Pressure,NULL,NULL,0,NULL,NULL 28285,313034,177526,Notable Question Great Question Nice Question Nice Answer Great Answer Nice Answer Yearling Notable Question Famous Question Inquisitive Popular Question Popular Question Necromancer Nice Question Famous Question Yearling Excavator Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28286,641070,925612,NULL,NULL,NULL,0,NULL,NULL 28287,93975,779093,NULL,NULL,NULL,0,NULL,NULL 28288,7483,967276,Yearling Nice Answer Yearling Taxonomist Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28289,403439,459406,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28290,207358,16447,NULL,NULL,NULL,0,NULL,NULL 28291,79987,100134,Famous Question Popular Question Good Question Announcer Necromancer Notable Question Announcer Yearling Nice Answer Enlightened Necromancer Popular Question Announcer Good Answer Guru Announcer Excavator Civic Duty Announcer Announcer Necromancer Nice Answer Yearling Announcer Good Question Necromancer Revival Good Answer Announcer Announcer Announcer Announcer Yearling Announcer Revival Announcer Popular Question Announcer Announcer Revival,NULL,NULL,0,NULL,NULL 28292,574191,474365,Notable Question Nice Question Popular Question Yearling Nice Answer Yearling Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 28293,11704,130169,Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 28294,150957,735550,NULL,NULL,NULL,0,NULL,NULL 28295,201200,396232,Necromancer,NULL,NULL,0,NULL,NULL 28296,470678,637423,Yearling Student Nice Answer Good Answer Yearling Necromancer Yearling Nice Answer Revival Nice Answer Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 28297,122701,1014065,NULL,NULL,NULL,0,NULL,NULL 28298,19695,686867,NULL,NULL,NULL,0,NULL,NULL 28299,200374,1286649,Notable Question Popular Question Famous Question Good Question Famous Question Yearling Popular Question Inquisitive Famous Question Caucus Constituent Nice Question Nice Question Nice Question Notable Question,NULL,Directory file size calculation how to make it faster windows winforms winapi filesystemobject pUsing am finding the total size of directory The logic is this way Get the files inside the folder Sum up the total size Find if there are sub directories Then do recursive search ppI tried one another way to do this too Using FSO codeobj GetFolder path Size code There not much of difference in time in both these approaches ppNow the problem is have tens of thousands of files in particular folder and its taking like atleast minute to find the folder size Also if run the program again it happens very quickly secs think the windows is caching the file sizes ppIs there any way can bring down the time taken when run the program first time can you do that in your machine and let me know if it works,0,NULL,NULL 28300,64856,866452,NULL,NULL,NULL,0,NULL,NULL 28301,193721,329279,NULL,NULL,NULL,0,NULL,NULL 28302,10359,1315278,NULL,NULL,NULL,0,NULL,NULL 28303,437839,265876,Popular Question,NULL,NULL,0,NULL,NULL 28304,360051,509139,NULL,NULL,NULL,0,NULL,NULL 28305,26387,862119,Yearling Nice Answer Commentator Popular Question,NULL,NULL,0,NULL,NULL 28306,241734,667844,NULL,NULL,NULL,0,NULL,NULL 28307,161869,736531,NULL,NULL,NULL,0,NULL,NULL 28308,174704,759378,NULL,NULL,NULL,0,NULL,NULL 28309,1347913,902418,Student,NULL,NULL,0,NULL,NULL 28310,453748,80031,Yearling,NULL,NULL,0,NULL,NULL 28311,91644,447269,Autobiographer Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 28312,3551,1071615,NULL,NULL,NULL,0,NULL,NULL 28313,535118,574060,NULL,NULL,NULL,0,NULL,NULL 28314,67385,241286,NULL,NULL,NULL,0,NULL,NULL 28315,1058751,671057,Nice Answer Enlightened Yearling Enthusiast Necromancer Yearling Good Answer Nice Answer Caucus Constituent Yearling Nice Question Commentator Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 28316,157951,168072,NULL,NULL,NULL,0,NULL,NULL 28317,94955,381227,NULL,NULL,NULL,0,NULL,NULL 28318,16920,919104,NULL,NULL,NULL,0,NULL,NULL 28319,257267,1358661,Revival Yearling Yearling Critic Curious Yearling Popular Question Yearling Custodian Mortarboard Custodian Tenacious Unsung Hero,NULL,NULL,0,NULL,NULL 28320,28736,486478,Nice Answer Yearling Caucus Popular Question symfony Necromancer Nice Answer Yearling Notable Question Nice Answer Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 28321,206217,365080,Yearling Caucus,NULL,NULL,0,NULL,NULL 28322,25679,578444,NULL,NULL,NULL,0,NULL,NULL 28323,476349,1227196,NULL,NULL,NULL,0,NULL,NULL 28324,523873,1407067,Yearling Good Answer Nice Answer Yearling Custodian Popular Question Nice Answer Enlightened Nice Answer Excavator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 28325,814280,189711,Editor Commentator Yearling Guru Custodian Informed Autobiographer Organizer Tag Editor Investor Altruist Caucus Constituent Revival Documentation User,NULL,NULL,0,NULL,NULL 28326,549930,1523619,NULL,NULL,NULL,0,NULL,NULL 28327,464986,965922,Informed,NULL,NULL,0,NULL,NULL 28328,1347302,562514,NULL,NULL,NULL,0,NULL,NULL 28329,921388,750283,NULL,NULL,NULL,0,NULL,NULL 28330,208929,809978,Informed Nice Answer,NULL,NULL,0,NULL,NULL 28331,320045,305682,Notable Question,NULL,NULL,0,NULL,NULL 28332,9041116,413049,Nice Answer Yearling Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 28333,66092,1052331,NULL,NULL,NULL,0,NULL,NULL 28334,420283,1135222,NULL,NULL,NULL,0,NULL,NULL 28335,335327,605841,Popular Question Self-Learner Popular Question Yearling Notable Question Popular Question Nice Answer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28336,9928,553920,NULL,NULL,NULL,0,NULL,NULL 28337,3512613,553920,NULL,NULL,NULL,0,NULL,NULL 28338,3248245,553920,NULL,NULL,NULL,0,NULL,NULL 28339,208046,33329,NULL,NULL,NULL,0,NULL,NULL 28340,97876,39933,Popular Question Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 28341,1367383,219866,Editor Notable Question Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 28342,1109227,1034514,Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 28343,15360,658023,Popular Question Popular Question Announcer Nice Question Cleanup Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 28344,110359,1153783,Yearling Notable Question Critic Guru Caucus Constituent Good Answer Notable Question Caucus Constituent Yearling Caucus Constituent Necromancer Revival,NULL,NULL,0,NULL,NULL 28345,277476,657908,Necromancer,NULL,NULL,0,NULL,NULL 28346,6724749,269589,Editor Informed Autobiographer Commentator Census Documentation User,NULL,NULL,0,NULL,NULL 28347,99237,112736,Yearling Student Promoter Scholar Self-Learner Caucus Yearling,NULL,NULL,0,NULL,NULL 28348,652212,745417,NULL,NULL,NULL,0,NULL,NULL 28349,328238,444564,NULL,NULL,NULL,0,NULL,NULL 28350,28964,204030,NULL,NULL,NULL,0,NULL,NULL 28351,616895,1101445,Informed,NULL,NULL,0,NULL,NULL 28352,899005,1119120,NULL,NULL,NULL,0,NULL,NULL 28353,51921,689161,Yearling Announcer Necromancer Yearling Announcer Necromancer Announcer Booster Publicist Yearling Enthusiast Custodian Announcer Announcer,NULL,pFacebook has ton of developers working internally on lot of projects and it is very common for someone to make minor mistake whether it be something as simple and serious as failing to escape data inserted into an HTML or SQL template or something as intricate and subtle as using codeeval code sometimes inefficient and arguably insecure or codeJSON parse code compliant but not universally implemented extension instead of known good JSON decoder it is important to figure out ways to easily enforce best practices on this developer population ppTo face this challenge Facebook has recently been going all out with internal projects designed to gracefully enforce these best practices and to be honest the only explanation that truly makes sense for this specific case is just that someone internally decided that all JSON parsing should go through single implementation in their core library and the best way to enforce that is for every single API response to get codefor code automatically tacked on the front ppIn so doing developer can be lazy they will notice strongimmediately strong if they use codeeval code wonder what is up and then realize their mistake and use the approved JSON API ppThe other answers being provided seem to all fall into one of two categories pollimisunderstanding JSONP or lilimisunderstanding JSON hijacking li olpThose in the first category rely on the idea that an attacker can somehow make request using JSONP to an API that doesn support it JSONP is protocol that must be supported on both the server and the client it requires the server to return something akin to codemyFunction continue code such that the result is passed to local function You can just use JSONP by accident ppThose in the second category are citing very real vulnerability that has been described allowing cross site request forgery via tags to APIs that strongdo not strong use JSONP such as this one allowing form of JSON hijacking This is done by changing the Array Object constructor which allows one to access the information being returned from the server without wrapping function ppHowever that is simply not possible in this case the reason it works at all is that bare array one possible result of many JSON APIs such as the famous Gmail example is valid expression statement which is not true of bare object ppIn fact the syntax for objects defined by JSON which includes quotation marks around the field names as seen in this example conflicts with the syntax for blocks and therefore cannot be used at the top level of script ppre codejs gt continue typein SyntaxError invalid label typein continue typein code prepFor this example to be exploitable by way of Object constructor remapping it would require the API to have instead returned the object inside of set of parentheses making it valid JavaScript but then not valid JSON ppre codejs gt continue object Object code prepNow it strongcould strong be that this codefor code prefix trick is only accidentally showing up in this example and is in fact being returned by other internal Facebook APIs that are returning arrays but in this case that should really be noted as that would then be the real cause for why codefor code is appearing in this specific snippet It makes no sense that for would be used to prohibit eval There are much better ways for Facebook to control its own code And for breaks all JSON parsers including eval equally Developers must remove it manually in any case but that hardly prevents eval The answer is JSON hijacking attempts Yes object literals alone are invalid but it much easier and less error prone to just insert and later remove for in front of all JSON than to use conditional statements,0,NULL,NULL 28354,1484934,1060910,NULL,NULL,NULL,0,NULL,NULL 28355,340496,1205946,NULL,NULL,NULL,0,NULL,NULL 28356,466154,431126,NULL,NULL,NULL,0,NULL,NULL 28357,366456,1058825,NULL,NULL,NULL,0,NULL,NULL 28358,167563,709191,NULL,NULL,NULL,0,NULL,NULL 28359,3638650,574301,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28360,918110,1463338,NULL,NULL,NULL,0,NULL,NULL 28361,715756,889795,NULL,NULL,NULL,0,NULL,NULL 28362,46731,1006521,Yearling Good Answer Yearling Guru Popular Question Nice Question Yearling Popular Question Popular Question Nice Answer Popular Question Yearling Notable Question Custodian Investor Nice Question Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 28363,6685171,636231,NULL,NULL,NULL,0,NULL,NULL 28364,63305,1133798,NULL,NULL,NULL,0,NULL,NULL 28365,179716,738473,NULL,NULL,NULL,0,NULL,NULL 28366,141957,423585,Famous Question Good Question Yearling Notable Question Good Question Nice Question Famous Question Yearling Notable Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 28367,676762,384263,Popular Question,NULL,NULL,0,NULL,NULL 28368,476339,1476605,NULL,NULL,NULL,0,NULL,NULL 28369,304225,482864,Guru Revival Necromancer Necromancer Yearling Nice Answer Enlightened Necromancer Necromancer Nice Answer Good Answer Caucus Constituent Notable Question Yearling Necromancer Nice Answer Caucus Constituent Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 28370,492191,705721,NULL,NULL,NULL,0,NULL,NULL 28371,359482,533873,Notable Question,NULL,NULL,0,NULL,NULL 28372,89796,44729,Nice Answer Enlightened Announcer Nice Question c++ Documentation Pioneer Nice Answer Enlightened Steward Caucus Constituent Revival Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Revival Announcer Caucus Pundit Constituent Custodian Documentation User Good Answer Nice Answer Enlightened android Revival java Yearling Census Nice Answer Enlightened shader Disciplined Caucus Announcer Constituent Announcer glfw Announcer Nice Answer sdl-2 Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 28373,733207,463098,Revival,NULL,NULL,0,NULL,NULL 28374,1108405,1145327,NULL,NULL,NULL,0,NULL,NULL 28375,551887,277106,Popular Question Yearling Citizen Patrol Yearling Custodian Explainer Nice Answer Organizer Yearling Popular Question Excavator Disciplined Popular Question Civic Duty Caucus Yearling Notable Question Announcer Notable Question Caucus Popular Question Yearling Caucus Famous Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 28376,1434773,1236878,Great Question Favorite Question Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28377,3841658,822774,Autobiographer,NULL,NULL,0,NULL,NULL 28378,146566,822774,Autobiographer,NULL,NULL,0,NULL,NULL 28379,2235326,822774,Autobiographer,NULL,NULL,0,NULL,NULL 28380,2367,235297,Nice Question Famous Question Promoter Popular Question Popular Question Revival Necromancer Popular Question Nice Answer Nice Answer Populist Popular Question Popular Question Necromancer Nice Question Good Question Notable Question Documentation Pioneer Quorum Good Answer Necromancer Announcer Good Question Notable Question Necromancer Caucus Constituent Yearling Famous Question Announcer Nice Question Great Question Nice Answer Notable Question Good Answer Announcer Nice Question Nice Question Announcer Nice Question Caucus Constituent Announcer Popular Question Documentation User Nice Answer Popular Question Nice Answer Popular Question Yearling Notable Question Announcer Announcer uikit Caucus Constituent Necromancer Famous Question Announcer ios uiwebview cocoa-touch Necromancer Popular Question Investor,NULL,How to grep Git commit diffs or contents for certain word git search grep pIn Git code repository want to list all commits that contain certain word tried this ppre class lang sh prettyprint override codegit log grep context word code prepbut it does not necessarily give me back the filename unless it less that 5lines away from the word searched for also tried ppre class lang sh prettyprint override codegit grep word code prepbut it gives me only present files and not the history ppHow do search the entire history so can follow changes on particular word mean to search my codebase for occurrences of word to track down changes search in files history Possible duplicate of How to grep search committed code in the git history https stackoverflow com questions 2928584 how to grep search committed code in the git history,0,NULL,NULL 28381,412271,1098814,Popular Question Yearling Notable Question Popular Question Caucus Announcer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 28382,1552887,1421369,NULL,NULL,NULL,0,NULL,NULL 28383,171750,1421369,NULL,NULL,NULL,0,NULL,NULL 28384,362944,1018166,Teacher Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28385,1135168,494224,Supporter,NULL,NULL,0,NULL,NULL 28386,78817,203955,Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 28387,1006962,1458808,NULL,NULL,NULL,0,NULL,NULL 28388,472071,1377765,NULL,NULL,NULL,0,NULL,NULL 28389,258446,1390062,Yearling,NULL,NULL,0,NULL,NULL 28390,10845591,781841,Necromancer Yearling Nice Answer Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 28391,478052,332371,NULL,NULL,NULL,0,NULL,NULL 28392,472070,446630,Enthusiast,NULL,NULL,0,NULL,NULL 28393,25725,1260070,NULL,NULL,NULL,0,NULL,NULL 28394,162929,598900,NULL,NULL,NULL,0,NULL,NULL 28395,207752,131896,Census,NULL,NULL,0,NULL,NULL 28396,575664,367801,NULL,NULL,NULL,0,NULL,NULL 28397,154974,8960,Good Answer,NULL,NULL,0,NULL,NULL 28398,594369,744244,NULL,NULL,NULL,0,NULL,NULL 28399,239591,130095,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28400,583473,501102,Civic Duty Yearling ext.net Announcer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28401,419754,678369,NULL,NULL,NULL,0,NULL,NULL 28402,425534,678369,NULL,NULL,NULL,0,NULL,NULL 28403,280409,563025,NULL,NULL,NULL,0,NULL,NULL 28404,190889,1189873,NULL,NULL,NULL,0,NULL,NULL 28405,129772,1301580,NULL,NULL,NULL,0,NULL,NULL 28406,3600,1258281,NULL,NULL,NULL,0,NULL,NULL 28407,22636,1327915,NULL,NULL,NULL,0,NULL,NULL 28408,1822749,1327915,NULL,NULL,NULL,0,NULL,NULL 28409,33334,620531,NULL,NULL,NULL,0,NULL,NULL 28410,255202,386210,Yearling Self-Learner Popular Question Yearling Notable Question Famous Question Necromancer Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 28411,46067,50260,Student Custodian Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 28412,710811,1284872,NULL,NULL,NULL,0,NULL,NULL 28413,173955,582648,NULL,NULL,NULL,0,NULL,NULL 28414,528659,478176,Custodian Custodian Yearling Necromancer Good Answer Guru Yearling Popular Question Nice Answer Populist Necromancer Yearling,NULL,pIn short font face is very old but only recently has been supported by more than IE pulli codeeot code is needed for Internet Explorers that are older than IE9 they invented the spec but eot is horrible format that strips out much of the font features lili codettf code and codeotf code are normal old fonts but some people got annoyed that this meant anyone could download and use them lili pAt about the same time iOS on the iPhone and iPad implemented codesvg code fonts lili pThen codewoff code was invented which has mode that stops people pirating the font This is the preferred format li ulpIf you don want to support IE and lower and iOS and lower and android or earlier then you can just use WOFF and WOFF2 more highly compressed WOFF for the newest browsers that support it ppre code face font family MyWebFont src url myfont woff2 format woff2 url myfont woff format woff code prepSupport for codewoff code can be checked at href http caniuse com woff rel noreferrer http caniuse com woff brSupport for codewoff2 code can be checked at href http caniuse com woff2 rel noreferrer http caniuse com woff2 first supported format is used so this will use WOFF2 if supported,0,NULL,NULL 28415,21013,1319866,NULL,NULL,NULL,0,NULL,NULL 28416,513252,481086,NULL,NULL,NULL,0,NULL,NULL 28417,91546,1514210,Critic Caucus,NULL,NULL,0,NULL,NULL 28418,479977,144642,Notable Question Popular Question Nice Answer Notable Question Popular Question Yearling Famous Question Nice Question Good Answer Nice Question Popular Question Yearling Nice Answer Good Answer Guru Popular Question Good Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 28419,155823,624761,Popular Question,NULL,NULL,0,NULL,NULL 28420,162327,372694,Popular Question Yearling Good Answer Good Answer Yearling ruby-on-rails Yearling Notable Question,NULL,NULL,0,NULL,NULL 28421,236506,618670,NULL,NULL,NULL,0,NULL,NULL 28422,63156,535200,Student Scholar Editor Yearling Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 28423,137032,455314,NULL,NULL,NULL,0,NULL,NULL 28424,356982,203118,Necromancer Yearling Nice Answer Good Answer Notable Question Yearling Announcer Yearling Announcer Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 28425,199307,141042,Custodian Custodian Organizer Custodian Custodian Curious Informed Custodian Citizen Patrol Proofreader Explainer Civic Duty Yearling Nice Answer Nice Answer Enlightened Good Answer Revival Nice Answer Yearling Custodian Strunk & White Tumbleweed Revival Populist Census Necromancer Self-Learner Popular Question Benefactor Yearling Notable Question,NULL,pThe actuality of this answer is July 2015 It is most likely that things will change pp strongTLDR strong ppCurrently Xcode does not have tools for automatic export of universal fat framework so developer must resort to manual usage of codelipo code tool Also according to href http www openradar me radar id 6409498411401216 rel noreferrer this radar before submission to AppStore developer who is framework consumer also must use codelipo code to strip off simulator slices from framework ppLonger answer follows phrpI did similar research in the topic the link at the bottom of the answer ppI had not found any official documentation about distribution of so my research was based on exploration of Apple Developer Forums Carthage and Realm projects and my own experiments with codexcodebuild code codelipo code codecodesign code tools ppHere long quote with bit of markup from me from Apple Developer Forums thread href https devforums apple com message 1085069 1085069 rel noreferrer Exporting app with embedded framework pblockquote strongWhat is the proper way to export framework from framework project strong pCurrently the only way is exactly what you have done ul liBuild the target for both simulator and iOS device li li pNavigate to Xcode DerivedData folder for that project and lipo the two binaries together into one single framework However when you build the framework target in Xcode make sure to adjust the target setting Build Active Architecture Only to NO This will allow Xcode to build the target for multiple binarty types arm64 armv7 etc This would be why it works from Xcode but not as standalone binary li li pAlso you ll want to make sure the scheme is set to Release build and build the framework target against release If you are still getting library not loaded error check the code slices in the framework li liUse codelipo info MyFramworkBinary code and examine the result li ul codelipo info MyFrameworkBinary code pResult is codei386 x86 64 armv7 arm64 code ul liModern universal frameworks will include slices but could include more codei386 x86 64 armv7 arm64 code If you don see at least this it coud be because of the Build Active Architecture setting li ul blockquotepThis describes process pretty much the same as did it in his answer ppThis is how href https github com Carthage Carthage blob c97b0af8ddb717931ceafd7679800e088991b44f Source CarthageKit Xcode swift L598 rel noreferrer Carthage uses lipo and href https github com realm realm cocoa blob d59c86f11525f346c8e8db277fdbf2d9ff990d98 build sh L108 rel noreferrer Realm uses lipo phrp strongIMPORTANT DETAIL strong ppThere is radar href http www openradar me radar id 6409498411401216 rel noreferrer Xcode amp iOS frameworks containing simulator slices can be submitted to the App Store and long discussion around it on href https github com realm realm cocoa issues 1163 rel noreferrer Realm 1163 and href https github com Carthage Carthage issues 188 rel noreferrer Carthage 188 which ended in special workaround pp strongbefore submission to AppStore iOS framework binaries must be stripped off back from simulator slices strong ppCarthage has special code href https github com Carthage Carthage blob 130bade9c1e25ae7149412461a9c4625eaec031a Source carthage CopyFrameworks swift rel noreferrer CopyFrameworks and corresponding piece of documentation pblockquote pThis script works around an href http www openradar me radar id 6409498411401216 rel noreferrer App Store submission bug triggered by universal binaries blockquotepRealm has special script href https github com realm realm cocoa blob d59c86f11525f346c8e8db277fdbf2d9ff990d98 scripts strip frameworks sh rel noreferrer strip frameworks sh and corresponding piece of documentation pblockquote pThis step is required to work around an href http www openradar me radar id 6409498411401216 rel noreferrer App Store submission bug when archiving universal binaries blockquotepAlso there is good article href http ikennd ac blog 2015 02 stripping unwanted architectures from dynamic libraries in xcode rel noreferrer Stripping Unwanted Architectures From Dynamic Libraries In Xcode ppI myself used Realm codestrip frameworks sh code which worked for me perfectly without any modifications though of course anyone is free to write one from scratch phrpThe link to my topic which recommend to read because it contains another aspect of this question code signing href https stackoverflow com questions 30963294 creating ios osx frameworks is it necessary to codesign them before distributin Creating iOS OSX Frameworks is it necessary to codesign them before distributing to other developers haven found any evidence this has changed by Xcode in December 2016 pThe actuality of this answer is July 2015 It is most likely that things will change pp strongTLDR strong ppCurrently Xcode does not have tools for automatic export of universal fat framework so developer must resort to manual usage of codelipo code tool Also according to href http www openradar me radar id 6409498411401216 rel noreferrer this radar before submission to AppStore developer who is framework consumer also must use codelipo code to strip off simulator slices from framework ppLonger answer follows phrpI did similar research in the topic the link at the bottom of the answer ppI had not found any official documentation about distribution of so my research was based on exploration of Apple Developer Forums Carthage and Realm projects and my own experiments with codexcodebuild code codelipo code codecodesign code tools ppHere long quote with bit of markup from me from Apple Developer Forums thread href https devforums apple com message 1085069 1085069 rel noreferrer Exporting app with embedded framework pblockquote strongWhat is the proper way to export framework from framework project strong pCurrently the only way is exactly what you have done ul liBuild the target for both simulator and iOS device li li pNavigate to Xcode DerivedData folder for that project and lipo the two binaries together into one single framework However when you build the framework target in Xcode make sure to adjust the target setting Build Active Architecture Only to NO This will allow Xcode to build the target for multiple binarty types arm64 armv7 etc This would be why it works from Xcode but not as standalone binary li li pAlso you ll want to make sure the scheme is set to Release build and build the framework target against release If you are still getting library not loaded error check the code slices in the framework li liUse codelipo info MyFramworkBinary code and examine the result li ul codelipo info MyFrameworkBinary code pResult is codei386 x86 64 armv7 arm64 code ul liModern universal frameworks will include slices but could include more codei386 x86 64 armv7 arm64 code If you don see at least this it coud be because of the Build Active Architecture setting li ul blockquotepThis describes process pretty much the same as did it in his answer ppThis is how href https github com Carthage Carthage blob c97b0af8ddb717931ceafd7679800e088991b44f Source CarthageKit Xcode swift L598 rel noreferrer Carthage uses lipo and href https github com realm realm cocoa blob d59c86f11525f346c8e8db277fdbf2d9ff990d98 build sh L108 rel noreferrer Realm uses lipo phrp strongIMPORTANT DETAIL strong ppThere is radar href http www openradar me radar id 6409498411401216 rel noreferrer Xcode amp iOS frameworks containing simulator slices can be submitted to the App Store and long discussion around it on href https github com realm realm cocoa issues 1163 rel noreferrer Realm 1163 and href https github com Carthage Carthage issues 188 rel noreferrer Carthage 188 which ended in special workaround pp strongbefore submission to AppStore iOS framework binaries must be stripped off back from simulator slices strong ppCarthage has special code href https github com Carthage Carthage blob 130bade9c1e25ae7149412461a9c4625eaec031a Source carthage CopyFrameworks swift rel noreferrer CopyFrameworks and corresponding piece of documentation pblockquote pThis script works around an href http www openradar me radar id 6409498411401216 rel noreferrer App Store submission bug triggered by universal binaries blockquotepRealm has special script href https github com realm realm cocoa blob d59c86f11525f346c8e8db277fdbf2d9ff990d98 scripts strip frameworks sh rel noreferrer strip frameworks sh and corresponding piece of documentation pblockquote pThis step is required to work around an href http www openradar me radar id 6409498411401216 rel noreferrer App Store submission bug when archiving universal binaries blockquotepAlso there is good article href http ikennd ac blog 2015 02 stripping unwanted architectures from dynamic libraries in xcode rel noreferrer Stripping Unwanted Architectures From Dynamic Libraries In Xcode ppI myself used Realm codestrip frameworks sh code which worked for me perfectly without any modifications though of course anyone is free to write one from scratch phrpThe link to my topic which recommend to read because it contains another aspect of this question code signing href https stackoverflow com questions 30963294 creating ios osx frameworks is it necessary to codesign them before distributin Creating iOS OSX Frameworks is it necessary to codesign them before distributing to other developers Haven done this in bit sadly can say Good luck pUsing the template rendering mode with UIImageView in storyboard or xib is very buggy both on iOS and iOS ph3On iOS h3pThe UIImage is not properly decoded from the storyboard xib If you inspect the codeimageView image renderingMode code property in the codeviewDidLoad code method you will notice that it is always codeUIImageRenderingModeAutomatic code even if you set it to emRender As Template Image em in your xcassets file ppTo workaround you have to manually set the rendering mode ppre class lang prettyprint override codeself imageView image self imageView image imageWithRenderingMode UIImageRenderingModeAlwaysTemplate code preh3On iOS h3pThe UIImage is properly decoded and its coderenderingMode code property reflects what was chosen in the xcassets file but the image is not tinted ppTo workaround you have two options polliSet the codetintColor code property in the emUser Defined Runtime Attributes em instead of the Attributes inspector pane li olpor pol start liManually reset the tintColor li olpre class lang prettyprint override codeUIColor tintColor self imageView tintColor self imageView tintColor nil self imageView tintColor tintColor code prepYou can pick your preferred option both properly tint the image pp If you are compiling with Xcode just doing codeself imageView tintColor self imageView tintColor code is enough but this doesn’t work anymore if you are compiling with Xcode ph3Conclusion h3pIf you need to support both iOS and iOS you’ll need both workarounds If you only have to support iOS only one workaround is needed am definitely seeing the same thing on Xcode the user attribute workaround was fine Thanks,0,NULL,NULL 28426,632422,402864,NULL,NULL,NULL,0,NULL,NULL 28427,2428970,695054,Popular Question Citizen Patrol Custodian Yearling Notable Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Popular Question Famous Question Custodian Self-Learner Yearling Inquisitive Popular Question Caucus Popular Question Documentation User Notable Question Notable Question Good Question Yearling Notable Question Guru Popular Question Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 28428,85820,610351,Necromancer Yearling Nice Question Necromancer Nice Question Caucus Nice Answer Necromancer Yearling Nice Answer Nice Answer Popular Question Nice Answer Popular Question Nice Answer Popular Question Announcer Notable Question Caucus Documentation User Popular Question Yearling Nice Answer Enlightened ruby Nice Answer Enlightened Nice Answer ruby-on-rails Pundit,NULL,NULL,0,NULL,NULL 28429,328829,110707,Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Great Answer Caucus Great Answer Nice Answer Nice Answer python-3.x google-cloud-datastore Guru Yearling Announcer Caucus Nice Answer Nice Answer Nice Answer Enlightened Documentation User Announcer Announcer Good Answer Census Good Answer Necromancer Caucus Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer,NULL,code gitkeep code isn’t documented because it’s not feature of Git ppGit href https git wiki kernel org index php Git FAQ Can add empty directories 3F rel noreferrer cannot add completely empty directory People who want to track empty directories in Git have created the convention of putting files called code gitkeep code in these directories The file could be called anything Git assigns no special significance to this name ppThere is competing convention of adding code gitignore code file to the empty directories to get them tracked but some people see this as confusing since the goal is to keep the empty directories not ignore them code gitignore code is also used to list files that should be ignored by Git when looking for untracked files please read the answer carefully gitkeep does literally nothing git does not read its contents to decide what to keep it only tracks the file as regular file,0,NULL,NULL 28430,243258,179520,Revival Notable Question Yearling Nice Answer Notable Question Caucus Yearling Great Answer Notable Question Nice Answer Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 28431,421957,326394,NULL,NULL,NULL,0,NULL,NULL 28432,1443533,1224046,Popular Question Announcer Famous Question Notable Question Caucus Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28433,665036,1435938,NULL,NULL,NULL,0,NULL,NULL 28434,75395,821927,NULL,NULL,NULL,0,NULL,NULL 28435,403723,3748,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28436,46109,1061519,Revival Yearling Necromancer Nice Answer Yearling Nice Answer Caucus Yearling Autobiographer,NULL,NULL,0,NULL,NULL 28437,1504881,881472,NULL,NULL,NULL,0,NULL,NULL 28438,38323,1174288,NULL,NULL,NULL,0,NULL,NULL 28439,850551,52023,Yearling Famous Question Nice Question Tumbleweed Critic,NULL,NULL,0,NULL,NULL 28440,1120093,491085,Critic,NULL,NULL,0,NULL,NULL 28441,28090,539443,Necromancer Revival Popular Question android Good Answer Revival Nice Answer Yearling Civic Duty Documentation User Nice Answer Enlightened Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 28442,12186,631299,NULL,NULL,NULL,0,NULL,NULL 28443,156231,788811,NULL,NULL,NULL,0,NULL,NULL 28444,167303,5168,Enlightened ruby Nice Answer Nice Answer Enlightened Good Answer Yearling Guru Great Question Guru Guru Famous Question Good Answer Notable Question Favorite Question Yearling Documentation User Favorite Question Nice Answer Enlightened Nice Answer Necromancer Good Answer Revival Favorite Question Good Answer Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 28445,1810471,1128443,NULL,NULL,NULL,0,NULL,NULL 28446,1040439,128546,Yearling Nice Answer Yearling Enthusiast Proofreader Yearling Fanatic rails-activestorage Disciplined ruby-on-rails Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 28447,898859,511418,Custodian Nice Answer Necromancer Good Answer Caucus Yearling Yearling Civic Duty Populist Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 28448,73430,903727,NULL,NULL,NULL,0,NULL,NULL 28449,1103041,1074068,NULL,NULL,NULL,0,NULL,NULL 28450,79515,265455,Popular Question,NULL,NULL,0,NULL,NULL 28451,514776,1385481,NULL,NULL,NULL,0,NULL,NULL 28452,943,1188640,NULL,NULL,NULL,0,NULL,NULL 28453,244749,298690,Yearling Good Question Famous Question Popular Question Yearling Popular Question Nice Question Notable Question Announcer Yearling Notable Question Good Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 28454,354357,169713,Popular Question Announcer Yearling Custodian Revival Famous Question,NULL,NULL,0,NULL,NULL 28455,396570,1306769,Census,NULL,NULL,0,NULL,NULL 28456,62884,464956,Popular Question Notable Question Yearling Notable Question Notable Question Nice Question Nice Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 28457,111528,349412,Revival Revival,NULL,NULL,0,NULL,NULL 28458,171769,56309,Nice Question Custodian Custodian Caucus,NULL,NULL,0,NULL,NULL 28459,11042,1553683,NULL,NULL,,0,, 28460,4063,483851,NULL,NULL,NULL,0,NULL,NULL 28461,158865,242636,NULL,NULL,NULL,0,NULL,NULL 28462,125341,1351503,NULL,NULL,NULL,0,NULL,NULL 28463,1353013,1351503,NULL,NULL,NULL,0,NULL,NULL 28464,561568,1145890,Yearling Good Answer Famous Question Good Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28465,65430,481633,NULL,NULL,NULL,0,NULL,NULL 28466,4004007,367418,Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 28467,8016,986902,Informed Revival Revival,NULL,NULL,0,NULL,NULL 28468,223514,467956,NULL,NULL,NULL,0,NULL,NULL 28469,30018,1100380,NULL,NULL,NULL,0,NULL,NULL 28470,97154,1051168,NULL,NULL,NULL,0,NULL,NULL 28471,50917,47292,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28472,312832,318520,NULL,NULL,NULL,0,NULL,NULL 28473,110337,1122965,NULL,NULL,NULL,0,NULL,NULL 28474,8508196,1304898,NULL,NULL,NULL,0,NULL,NULL 28475,162641,510707,NULL,NULL,NULL,0,NULL,NULL 28476,23319,939432,NULL,NULL,NULL,0,NULL,NULL 28477,8337,158304,Famous Question Good Answer Good Question Yearling Good Question Nice Question Electorate Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28478,452733,1062129,Nice Answer Good Answer Yearling Necromancer Announcer Announcer Custodian Yearling Nice Answer Custodian Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 28479,231555,166124,NULL,NULL,NULL,0,NULL,NULL 28480,382250,274227,Yearling Custodian Custodian Informed Autobiographer Editor Excavator Custodian Yearling Custodian Caucus Constituent Custodian Populist Yearling,NULL,NULL,0,NULL,NULL 28481,113389,338196,Investor Nice Answer Revival,NULL,,0,, 28482,406871,429546,Notable Question Popular Question Notable Question Popular Question Notable Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28483,228744,442952,Popular Question Curious Caucus Notable Question Popular Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 28484,307200,117628,Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 28485,181607,6364,Announcer Good Question Nice Answer Nice Answer Good Answer Yearling Good Answer Great Answer Nice Answer Excavator Curious Yearling Good Answer Great Answer Yearling,NULL,pThis simple polynomial works surprisingly well got it from Paul Larson of Microsoft Research who studied wide variety of hash functions and hash multipliers ppre codeunsigned hash const char unsigned salt unsigned salt while 101 unsigned return code prep codesalt code should be initialized to some emrandomly em chosen value before the hashtable is created to defend against href http www georgevreilly com blog 2009 03 02 HashTableAttacks html rel nofollow noreferrer hash table attacks If this isn an issue for you just use ppThe size of the table is important too to minimize collisions Sounds like yours is fine Typically the value of is much greater than the size of the hash table For example with the shown hash function and four character string 1E8 100 Regardless of rehashing the usual strategy is to calculate bucket count to compute the bucket index,0,NULL,NULL 28486,4315,1043764,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 28487,1038396,982878,Favorite Question Notable Question Notable Question Yearling Nice Question Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 28488,27455,89724,Necromancer Enthusiast Caucus,NULL,NULL,0,NULL,NULL 28489,395689,380481,NULL,NULL,NULL,0,NULL,NULL 28490,374771,402605,Popular Question Guru Yearling Great Question Good Answer Notable Question Popular Question Good Question Good Answer Guru Tumbleweed Guru Famous Question Yearling Good Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 28491,1139139,1121675,Guru Notable Question Nice Question Good Answer Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 28492,124014,590191,NULL,NULL,NULL,0,NULL,NULL 28493,96045,1033023,NULL,NULL,NULL,0,NULL,NULL 28494,981337,651725,Necromancer,NULL,NULL,0,NULL,NULL 28495,2405233,941960,NULL,NULL,NULL,0,NULL,NULL 28496,390246,941960,NULL,NULL,NULL,0,NULL,NULL 28497,119932,304511,NULL,NULL,NULL,0,NULL,NULL 28498,1385006,1426590,Yearling,NULL,NULL,0,NULL,NULL 28499,79076,641785,Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 28500,80032,415533,Yearling Yearling,NULL,NULL,0,NULL,NULL 28501,452737,165108,Nice Answer Great Question Custodian Yearling Popular Question Nice Answer Enlightened Good Answer Good Question Investor Popular Question Yearling Good Answer Good Answer Documentation User Popular Question Caucus Organizer Nice Answer Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 28502,5914,160032,Popular Question Notable Question Nice Question Good Question Yearling Popular Question Famous Question Nice Question Yearling Famous Question Notable Question Custodian Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 28503,126873,113944,NULL,NULL,NULL,0,NULL,NULL 28504,8174806,872731,NULL,NULL,NULL,0,NULL,NULL 28505,157358,872731,NULL,NULL,NULL,0,NULL,NULL 28506,1385276,281672,NULL,NULL,NULL,0,NULL,NULL 28507,164110,1140130,NULL,NULL,NULL,0,NULL,NULL 28508,532614,734909,NULL,NULL,NULL,0,NULL,NULL 28509,396374,605980,NULL,NULL,NULL,0,NULL,NULL 28510,1937822,1509278,Notable Question Popular Question Popular Question Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28511,373259,685052,NULL,NULL,NULL,0,NULL,NULL 28512,289168,1404992,Yearling Necromancer Necromancer python Necromancer Custodian Yearling Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 28513,29745,415503,NULL,NULL,NULL,0,NULL,NULL 28514,134866,571086,NULL,NULL,NULL,0,NULL,NULL 28515,45599,1126014,Editor Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 28516,541162,193776,Famous Question Popular Question Critic Caucus Self-Learner Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28517,1119717,42130,NULL,NULL,NULL,0,NULL,NULL 28518,113295,557600,Notable Question Self-Learner Popular Question Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 28519,286953,1156245,Yearling Popular Question Popular Question Popular Question Popular Question Great Question Nice Question Notable Question Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Good Question Notable Question Popular Question Revival Popular Question Famous Question Notable Question Famous Question Great Question Popular Question Notable Question Popular Question Favorite Question Socratic Popular Question Notable Question Popular Question Good Question Popular Question Famous Question Notable Question Good Answer Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Peer Pressure Great Question Nice Question Popular Question Notable Question Notable Question Pundit Notable Question Popular Question Good Answer Popular Question Notable Question Announcer Popular Question Nice Question Popular Question Necromancer Notable Question Popular Question Popular Question Nice Question Revival Famous Question Notable Question Necromancer Nice Answer Popular Question Notable Question Announcer Popular Question Notable Question Announcer Popular Question Good Answer Popular Question Explainer Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Answer Popular Question Nice Answer Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Guru Popular Question Nice Question Popular Question Popular Question,NULL,pre codefrom flask import request route data def data here we want to get the value of user user some value user request args get user code pre it not useful if like OP you need the actual string,0,NULL,NULL 28520,316682,886802,NULL,NULL,NULL,0,NULL,NULL 28521,307051,819876,NULL,NULL,NULL,0,NULL,NULL 28522,36477,7501,NULL,NULL,NULL,0,NULL,NULL 28523,557374,1539376,NULL,NULL,NULL,0,NULL,NULL 28524,154149,802727,Yearling,NULL,NULL,0,NULL,NULL 28525,226248,588570,NULL,NULL,NULL,0,NULL,NULL 28526,242010,963046,NULL,NULL,NULL,0,NULL,NULL 28527,181753,102647,NULL,NULL,NULL,0,NULL,NULL 28528,597645,705125,Commentator,NULL,NULL,0,NULL,NULL 28529,434492,82195,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28530,939241,1216257,Tumbleweed,NULL,NULL,0,NULL,NULL 28531,1102481,148678,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28532,2980616,1010964,Yearling Custodian Citizen Patrol Custodian Reviewer Deputy Mortarboard Organizer Steward Revival Yearling Caucus Constituent Popular Question Famous Question Notable Question Nice Question Necromancer Explainer Nice Answer android Caucus Nice Answer Yearling Notable Question Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28533,330567,1010964,Yearling Custodian Citizen Patrol Custodian Reviewer Deputy Mortarboard Organizer Steward Revival Yearling Caucus Constituent Popular Question Famous Question Notable Question Nice Question Necromancer Explainer Nice Answer android Caucus Nice Answer Yearling Notable Question Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28534,280533,1120486,Nice Answer Critic,NULL,NULL,0,NULL,NULL 28535,164777,132587,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28536,1782031,1027686,Yearling Critic Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 28537,1517435,1007273,Nice Answer Nice Answer Enlightened Good Answer Popular Question Yearling Caucus Constituent Good Answer Nice Answer Census Nice Answer Announcer Announcer Caucus Announcer Nice Answer Enlightened Yearling Census Nice Answer Enlightened Caucus Informed Revival Revival Excavator Good Answer Necromancer Yearling Announcer Announcer Great Answer,NULL,NULL,0,NULL,NULL 28538,395639,269851,Supporter Informed,NULL,NULL,0,NULL,NULL 28539,204549,1228193,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 28540,1352739,305269,NULL,NULL,NULL,0,NULL,NULL 28541,234717,782807,NULL,NULL,NULL,0,NULL,NULL 28542,734035,852683,NULL,NULL,NULL,0,NULL,NULL 28543,1342213,1408232,Student Editor,NULL,NULL,0,NULL,NULL 28544,818355,1380997,NULL,NULL,NULL,0,NULL,NULL 28545,82691,1074326,NULL,NULL,NULL,0,NULL,NULL 28546,1379154,430491,Nice Answer,NULL,NULL,0,NULL,NULL 28547,81880,635946,NULL,NULL,NULL,0,NULL,NULL 28548,240458,1519035,Yearling,NULL,NULL,0,NULL,NULL 28549,1070851,628462,Critic,NULL,NULL,0,NULL,NULL 28550,172965,502769,Editor Excavator Informed Autobiographer Documentation User Census,NULL,NULL,0,NULL,NULL 28551,153259,499788,NULL,NULL,NULL,0,NULL,NULL 28552,20952,1176708,NULL,NULL,NULL,0,NULL,NULL 28553,69942,1304127,NULL,NULL,NULL,0,NULL,NULL 28554,108883,1235088,NULL,NULL,NULL,0,NULL,NULL 28555,211672,578610,NULL,NULL,NULL,0,NULL,NULL 28556,6453,485547,Scholar Popular Question Necromancer Yearling Caucus Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 28557,1506673,1354342,NULL,NULL,NULL,0,NULL,NULL 28558,331907,1295073,Teacher Autobiographer Editor,NULL,NULL,0,NULL,NULL 28559,166418,692831,Notable Question,NULL,NULL,0,NULL,NULL 28560,418553,1320478,Tumbleweed,NULL,NULL,0,NULL,NULL 28561,69616,564164,Yearling Necromancer Nice Answer Nice Answer Revival Announcer Good Answer Great Answer Necromancer Nice Answer Good Answer Nice Answer Nice Answer Caucus Nice Answer Enlightened Guru pandoc Yearling Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened pander Good Answer Revival Caucus Announcer Nice Answer Enlightened r-markdown Nice Answer Enlightened Guru Announcer Popular Question Announcer Yearling Nice Answer Revival Nice Answer Good Question Caucus Announcer Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Necromancer Popular Question Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28562,306302,477476,Tag Editor Announcer Enlightened monads Refiner Revival Announcer Nice Answer Mortarboard Copy Editor Announcer Archaeologist Announcer Revival Announcer Reviewer Announcer Nice Answer Nice Answer Revival Documentation Pioneer Announcer Revival Revival Popular Question Yearling Nice Answer Announcer Reviewer Marshal Nice Answer Enlightened Necromancer Announcer Nice Question Announcer Revival idris Nice Question Announcer Nice Answer Enlightened Popular Question Promoter Benefactor functional-programming Reviewer Caucus Pundit Nice Question Revival Documentation User Yearling Popular Question Announcer Nice Answer Enlightened Announcer Revival Caucus Revival Nice Answer Enlightened Revival Socratic Notable Question Announcer Popular Question Nice Answer Quorum Good Answer ghc Yearling Announcer Nice Question,NULL,pHere is set of parser combinators put together for Parsec that can be used for Haskell style layout that might be of use to you The key considerations are that codelaidout code starts and runs layout rule and that you should use the codespace code and codespaced code combinators provided rather than the stock codeParsec code combinators for the same purpose Due to the interaction of layout and comments had to merge the comment parsing into the tokenizer ppre code LANGUAGE FlexibleContexts FlexibleInstances MultiParamTypeClasses module Text Parsec Layout laidout repeat parser in layout separated by virtual semicolons space consumes one or more spaces comments and onside newlines in layout rule maybeFollowedBy spaced maybeFollowedBy space LayoutEnv type needed to describe parsers defaultLayoutEnv fresh layout semi semicolon or virtual semicolon whereimport Control Applicative lt gt import Control Monad guard import Data Char isSpace import Text Parsec Combinatorimport Text Parsec Posimport Text Parsec Prim hiding State import Text Parsec Char hiding space data LayoutContext NoLayout Layout Int deriving Eq Ord Show data LayoutEnv Env envLayout LayoutContext envBol Bool if true must run offside calculation defaultLayoutEnv LayoutEnvdefaultLayoutEnv Env TruepushContext Stream gt LayoutContext gt ParsecT LayoutEnv pushContext ctx modifyState env gt env envLayout ctx envLayout env popContext Stream gt String gt ParsecT LayoutEnv popContext loc do xs lt envLayout lt gt getState modifyState env gt env envLayout xs lt gt unexpected empty context for loc getIndentation Stream gt ParsecT LayoutEnv IntgetIndentation depth envLayout lt gt getState where depth LayoutContext gt Int depth Layout depth 0pushCurrentContext Stream gt ParsecT LayoutEnv pushCurrentContext do indent lt getIndentation col lt sourceColumn lt gt getPosition pushContext Layout max indent colmaybeFollowedBy Stream gt ParsecT gt ParsecT gt ParsecT at maybeFollowedBy do lt optional return spaced Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv aspaced maybeFollowedBy spacedata Layout VSemi VBrace Other Char deriving Eq Ord Show TODO Parse style line pragmas out herelayout Stream Char gt ParsecT LayoutEnv Layoutlayout try do bol lt envBol lt gt getState whitespace False cont bol where cont Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout cont True offside cont False onside TODO Parse nestable LINE pragmas in here whitespace Stream Char gt Bool gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Layout whitespace try string gt gt nested gt gt whitespace True lt gt try comment lt gt do newline whitespace True offside lt gt do tab whitespace True lt gt do satisfy isSpace lt gt space whitespace True lt gt comment Stream Char gt ParsecT LayoutEnv Layout comment do string many satisfy newline whitespace True offside nested Stream Char gt Bool gt ParsecT LayoutEnv Layout gt ParsecT LayoutEnv Bool gt ParsecT LayoutEnv Layout nested try do string return lt gt try do string lt nested nested lt gt do newline nested offside lt gt do anyChar nested offside Stream Char gt Bool gt ParsecT LayoutEnv Layout offside do lt getPosition pos lt compare sourceColumn lt gt getIndentation case pos of LT gt do popContext the offside rule modifyState env gt env envBol True return VBrace EQ gt return VSemi GT gt onside we remained onside If we skipped any comments or moved to new line and stayed onside we return single otherwise we provide the next char onside Stream Char gt Bool gt ParsecT LayoutEnv Layout onside True return Other onside False do modifyState env gt env envBol False Other lt gt anyCharlayoutSatisfies Stream Char gt Layout gt Bool gt ParsecT LayoutEnv layoutSatisfies guard lt lt layoutvirtual lbrace Stream Char gt ParsecT LayoutEnv virtual lbrace pushCurrentContextvirtual rbrace Stream Char gt ParsecT LayoutEnv virtual rbrace try layoutSatisfies VBrace lt gt outdent recognize run of one or more spaces including onside carriage returns in layoutspace Stream Char gt ParsecT LayoutEnv Stringspace do try layoutSatisfies Other return lt gt space recognize semicolon including virtual semicolon in layoutsemi Stream Char gt ParsecT LayoutEnv Stringsemi do try layoutSatisfies return lt gt semi colon where VSemi True Other True Falselbrace Stream Char gt ParsecT LayoutEnv Stringlbrace do char pushContext NoLayout return rbrace Stream Char gt ParsecT LayoutEnv Stringrbrace do char popContext right brace return laidout Stream Char gt ParsecT LayoutEnv gt ParsecT LayoutEnv laidout try braced statements lt gt vbraced statements where braced between spaced lbrace spaced rbrace vbraced between spaced virtual lbrace spaced virtual rbrace statements sepBy spaced semi code pre Can you give an example of using this tried it like this https gist github com gergoerdi af1829b18ea80e21ba79728a5d271cd9 but can get bindings to accept something even as simple as unlines,1,How do deconstruct uncons Symbol haskell ghc type level computation pGiven type codes Symbol code is there way to define type family by recursing over its characters one by one as one would define recursive function over term level string,NULL 28563,113279,804730,NULL,NULL,NULL,0,NULL,NULL 28564,48164,237834,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 28565,194358,1284388,NULL,NULL,NULL,0,NULL,NULL 28566,29966,255237,NULL,NULL,NULL,0,NULL,NULL 28567,121961,1201963,Promoter Benefactor Commentator Revival Informed Necromancer Caucus Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 28568,671186,1343409,NULL,NULL,NULL,0,NULL,NULL 28569,201834,210833,NULL,NULL,NULL,0,NULL,NULL 28570,594397,210833,NULL,NULL,NULL,0,NULL,NULL 28571,223738,484071,NULL,NULL,NULL,0,NULL,NULL 28572,140733,308819,Yearling Yearling,NULL,NULL,0,NULL,NULL 28573,143853,272065,Nice Answer,NULL,NULL,0,NULL,NULL 28574,362537,1052730,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28575,889794,1217081,Self-Learner Popular Question Autobiographer Critic Curious Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 28576,167477,1362046,NULL,NULL,NULL,0,NULL,NULL 28577,485323,313416,Yearling Guru mysql Yearling Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 28578,199718,56748,Yearling Yearling Documentation User Yearling Custodian,NULL,NULL,0,NULL,NULL 28579,247518,1156325,Yearling Nice Answer Yearling Necromancer Caucus Scholar Custodian Yearling Nice Answer Curious,NULL,NULL,0,NULL,NULL 28580,26782,1436328,Nice Answer Yearling Good Answer Revival Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 28581,158205,424977,NULL,NULL,NULL,0,NULL,NULL 28582,1064395,720131,NULL,NULL,NULL,0,NULL,NULL 28583,220661,670267,NULL,NULL,NULL,0,NULL,NULL 28584,342456,1076118,NULL,NULL,NULL,0,NULL,NULL 28585,110425,959092,NULL,NULL,NULL,0,NULL,NULL 28586,342578,25277,Yearling,NULL,NULL,0,NULL,NULL 28587,1231782,1361088,Informed Tumbleweed Editor,NULL,NULL,0,NULL,NULL 28588,17044,303780,Supporter,NULL,NULL,0,NULL,NULL 28589,390289,831875,Scholar,NULL,NULL,0,NULL,NULL 28590,436662,963546,Nice Question Popular Question Nice Question Famous Question Notable Question Famous Question Popular Question Notable Question Yearling Notable Question Nice Question Good Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Nice Question Famous Question Benefactor Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Good Question Famous Question Popular Question Notable Question Notable Question Yearling Nice Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Excavator Nice Question Notable Question Notable Question Popular Question Favorite Question Good Question Popular Question Popular Question Good Question Favorite Question Nice Answer Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 28591,1445334,479918,NULL,NULL,NULL,0,NULL,NULL 28592,374543,370985,NULL,NULL,NULL,0,NULL,NULL 28593,807048,667845,NULL,NULL,NULL,0,NULL,NULL 28594,432730,667845,NULL,NULL,NULL,0,NULL,NULL 28595,385485,682179,Popular Question Critic Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 28596,629712,312815,Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 28597,59339,919594,NULL,NULL,NULL,0,NULL,NULL 28598,10975,44198,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28599,391373,825853,NULL,NULL,NULL,0,NULL,NULL 28600,845372,1348854,NULL,NULL,NULL,0,NULL,NULL 28601,1372953,316957,Notable Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 28602,49577,153678,Notable Question Revival Notable Question Popular Question Yearling Custodian Citizen Patrol Custodian Revival Notable Question Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28603,269810,161815,Guru Revival Great Answer Guru Necromancer Great Answer Yearling Great Answer Nice Answer Announcer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28604,930261,265940,Nice Answer Yearling Necromancer Necromancer Caucus Nice Answer Necromancer Yearling Popular Question Nice Answer Custodian Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Caucus Constituent Custodian Good Answer Yearling Notable Question Good Answer,NULL,pThe only way ve managed to get this to work is to use storage provider specifically for testing that doesn actually save read files ppIn your codeconfig initializers carrier wave rb code Add NullStorage class that implements the minimum interface for storage provider ppre code NullStorage provider for CarrierWave for use in tests Doesn actually upload or store files but allows test to pass as if files were stored and the use of fixtures class NullStorage attr reader uploader def initialize uploader uploader end def identifier uploader filename end def store file true end def retrieve identifier true endend code prepThen when initializing CarrierWave add clause for the test environment ppre codeif Rails env test config storage NullStorageend code prepHere is href https gist github com gshaw 378172448fc50dec4841 gist of my complete carrier wave rb for reference It also includes how to setup S3 for uploads in staging production and local storage for development so you can see how to configure CarrierWave in context ppOnce CarrierWave is configured you can simply put any string in the fixtures column to simulate an uploaded file If your tests have to actually work with uploaded files this isn going to work for you It used when your tests can just assume uploading works Note that ve since moved to Shrine for uploading in Rails projects so take this answer with grain of salt now,0,NULL,NULL 28605,351244,1219687,NULL,NULL,NULL,0,NULL,NULL 28606,222971,926030,Good Question Revival Commentator,NULL,NULL,0,NULL,NULL 28607,469122,603319,Yearling Nice Answer Enlightened Custodian Caucus Yearling Good Answer symfony Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 28608,317359,70926,Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 28609,100524,1011353,Nice Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 28610,814289,1464261,Editor Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 28611,79730,882371,Necromancer Necromancer Necromancer Necromancer Necromancer Suffrage Vox Populi Yearling Necromancer Nice Answer Nice Answer Nice Answer Revival Nice Answer Revival Nice Answer Yearling Documentation User Announcer Necromancer Nice Answer Custodian Necromancer Yearling Necromancer,NULL,pThis example uses Bash built in href http pubs opengroup org onlinepubs 9699919799 utilities getopts html rel noreferrer codegetopts code command and is from the href https google github io styleguide shell xml showone Case statement Case statement rel noreferrer Google Shell Style Guide ppre codea flag flag files verbose false print usage printf Usage while getopts abf flag do case flag in flag true flag true files OPTARG verbose true print usage exit esacdone code prep emNote If character is followed by colon codef code that option is expected to have an argument em ppExample usage code script filename code ppUsing getopts has several advantages over the accepted answer pullithe while condition is lot more readable and shows what the accepted options are lilicleaner code no counting the number of parameters and shifting liliyou can join options code code code abc code li ulpHowever big disadvantage is that it doesn support long options only single character options had to change the error line to this printf nUsage aflag bflag exit,0,NULL,NULL 28612,26057,1168750,Necromancer,NULL,NULL,0,NULL,NULL 28613,122776,172754,Popular Question Notable Question Nice Question Revival Popular Question Yearling Popular Question Popular Question Famous Question Nice Question Caucus Popular Question Nice Answer Popular Question Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Yearling Popular Question Caucus Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Good Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 28614,201769,283595,Yearling Necromancer Revival Popular Question Yearling Nice Answer Necromancer Famous Question Good Answer Popular Question Good Answer Yearling Favorite Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 28615,1207206,813977,NULL,NULL,NULL,0,NULL,NULL 28616,9599,439481,NULL,NULL,NULL,0,NULL,NULL 28617,432089,730388,Yearling Caucus Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 28618,150452,414826,Popular Question Curious Yearling Citizen Patrol Nice Answer Yearling Disciplined Yearling Notable Question,NULL,NULL,0,NULL,NULL 28619,42024,84628,Yearling Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 28620,870607,1254292,Guru Yearling Necromancer Civic Duty Necromancer Nice Answer Announcer Nice Answer Good Question Announcer Good Answer Good Answer Popular Question Yearling Announcer Announcer Announcer Announcer Necromancer Yearling Booster Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 28621,135601,604501,Editor,NULL,NULL,0,NULL,NULL 28622,1505731,1509248,Scholar Supporter Editor Popular Question,NULL,NULL,0,NULL,NULL 28623,608583,607010,NULL,NULL,NULL,0,NULL,NULL 28624,109937,965766,NULL,NULL,NULL,0,NULL,NULL 28625,359534,639009,Yearling Good Question Notable Question Popular Question Notable Question Yearling Caucus Nice Answer Enlightened Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28626,8155085,639009,Yearling Good Question Notable Question Popular Question Notable Question Yearling Caucus Nice Answer Enlightened Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28627,262417,1501844,Teacher,NULL,NULL,0,NULL,NULL 28628,216346,618713,NULL,NULL,NULL,0,NULL,NULL 28629,1870153,1116709,Scholar,NULL,NULL,0,NULL,NULL 28630,9631,581625,Yearling Supporter Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 28631,433570,420564,NULL,NULL,NULL,0,NULL,NULL 28632,95893,228578,Documentation User,NULL,NULL,0,NULL,NULL 28633,106789,622239,NULL,NULL,NULL,0,NULL,NULL 28634,17898,33997,Favorite Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28635,17717,228852,Guru Notable Question Nice Answer Announcer Suffrage Revival Revival Revival Necromancer Nice Answer Yearling Revival Necromancer Revival Great Answer Announcer Yearling Necromancer Nice Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 28636,238427,1313160,NULL,NULL,NULL,0,NULL,NULL 28637,1022015,920657,Yearling Great Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28638,83158,1020746,NULL,NULL,NULL,0,NULL,NULL 28639,398236,108464,Yearling Census Caucus,NULL,NULL,0,NULL,NULL 28640,853381,1499803,Enthusiast Necromancer Good Answer Yearling Custodian Nice Answer Caucus Constituent Census Organizer Peer Pressure Explainer Unsung Hero Nice Answer Yearling Caucus Nice Answer Documentation User Custodian Popular Question Census Custodian Curious Caucus Yearling Nice Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28641,397376,947749,NULL,NULL,NULL,0,NULL,NULL 28642,147741,68788,Yearling Famous Question Good Question Famous Question Favorite Question Popular Question Popular Question Popular Question Cleanup Nice Question Famous Question Good Answer Famous Question Great Answer Necromancer Famous Question Nice Question Great Question Popular Question Notable Question Popular Question Great Question Notable Question Favorite Question Nice Answer Yearling javascript Nice Answer Popular Question Popular Question Enthusiast Popular Question Nice Question Nice Answer Favorite Question Nice Question Popular Question Notable Question Popular Question Favorite Question Announcer Popular Question Popular Question Famous Question Nice Question Notable Question Notable Question Popular Question Popular Question Good Answer Popular Question Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Notable Question Yearling Custodian Popular Question Notable Question Famous Question Populist Notable Question Nice Question Popular Question Nice Answer Notable Question Explainer Notable Question Revival Organizer Popular Question Popular Question Good Question Nice Question Nice Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question,NULL,NULL,1,Webpack babel config for both server and client javascript javascript webpack babeljs pI trying to figure out how to have single webpack config file that works for transforming both server node js js and client js with the es2015 preset Currently have to specifically set target node for it to correctly process node based files If don then webpack does the transformation based on the default target web It then reports errors because the mysql module being imported clearly won work for web ppHow can unify both into the same config file so that server and client js will be transformed separately Or do need separate configs entirely ppSample webpack config js ppre code use strict var path require path var webpack require webpack module exports target node resolve root path resolve dirname extensions js entry babel polyfill index js output filename bundle js module loaders test js exclude node modules loader babel query presets es2015 code prepSample js code ppre codeimport babel polyfill import mysql from mysql class Test constructor get read code pre,NULL 28643,255934,972240,Autobiographer Supporter Editor Citizen Patrol Commentator Suffrage Vox Populi Informed Cleanup Enthusiast Critic Quorum Yearling Student Scholar Disciplined Yearling Civic Duty Organizer Explainer Custodian Custodian Custodian Yearling Electorate Promoter Benefactor Mortarboard Yearling Strunk & White Investor Excavator Altruist Archaeologist Tag Editor Deputy Tenacious Copy Editor Custodian Custodian Custodian Marshal Proofreader Research Assistant Taxonomist Convention Fanatic Revival Self-Learner Yearling Caucus Constituent Caucus Constituent Yearling Documentation User Nice Answer Enlightened Popular Question Popular Question Caucus Constituent Sportsmanship Popular Question Notable Question Nice Answer Enlightened Yearling Necromancer,NULL,Node js Connect Auth VS EveryAuth node js pCan anyone give good comparison between href https github com ciaranj connect auth https github com ciaranj connect auth aand href https github com bnoguchi everyauth https github com bnoguchi everyauth ppWhich seem to be the only options for href https github com visionmedia express express href https github com senchalabs connect connect If you just need HTTP Basic Digest authentication http auth should do just fine,0,NULL,NULL 28644,175246,807231,Popular Question Notable Question Nice Answer Good Question Nice Answer Notable Question Nice Answer Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Notable Question Famous Question Excavator Popular Question Popular Question Caucus Famous Question Popular Question Popular Question Popular Question Good Answer Nice Question Nice Question Notable Question Popular Question Famous Question Famous Question Popular Question Yearling Notable Question Caucus Necromancer Popular Question Necromancer Necromancer Revival Popular Question Popular Question Notable Question Popular Question Good Question Good Question Nice Answer Explainer Nice Answer Tag Editor Census Notable Question Good Question Popular Question Necromancer Popular Question Popular Question Popular Question Caucus Notable Question Nice Answer Good Question Yearling Notable Question Nice Question Famous Question Notable Question Popular Question Nice Answer Necromancer Self-Learner Notable Question Popular Question Famous Question Nice Question Necromancer Notable Question Notable Question Famous Question Popular Question,NULL,pI realize that this is an old question with an established answer The reason posting is that is the accepted answer has many elements of NN emk em nearest neighbors different algorithm ppBoth NN and NaiveBayes are classification algorithms Conceptually NN uses the idea of nearness to classify new entities In NN nearness is modeled with ideas such as Euclidean Distance or Cosine Distance By contrast in NaiveBayes the concept of probability is used to classify new entities ppSince the question is about Naive Bayes here how describe the ideas and steps to someone ll try to do it with as few equations and in plain English as much as possible ph3First Conditional Probability amp Bayes Rule h3pBefore someone can understand and appreciate the nuances of Naive Bayes they need to know couple of related concepts first namely the idea of Conditional Probability and Bayes Rule If you are familiar with these concepts skip to the section titled strongGetting to Naive Bayes strong pp strongConditional Probability strong in plain English What is the probability that something will happen emgiven that something else em has already happened ppLet say that there is some Outcome And some Evidence From the way these probabilities are defined The Probability of having emboth em the Outcome and Evidence is Probability of occurring multiplied by the Prob of given that happened pp emOne Example to understand Conditional Probability em ppLet say we have collection of US Senators Senators could be Democrats or Republicans They are also either male or female ppIf we select one senator completely randomly what is the probability that this person is female Democrat Conditional Probability can help us answer that ppProbability of Democrat and Female Senator Prob Senator is Democrat multiplied by Conditional Probability of Being Female given that they are Democrat ppre code Democrat amp Female Democrat Female Democrat code prepWe could compute the exact same thing the reverse way ppre code Democrat amp Female Female Democrat Female code preh3Understanding Bayes Rule h3pConceptually this is way to go from Evidence Known Outcome to Outcome Known Evidence Often we know how frequently some particular evidence is observed emgiven known outcome em We have to use this known fact to compute the reverse to compute the chance of that emoutcome happening em given the evidence ppP Outcome given that we know some Evidence Evidence given that we know the Outcome times Prob Outcome scaled by the Evidence ppThe classic example to understand Bayes Rule ppre codeProbability of Disease given Test positive Prob Test is positive Disease Disease scaled by Prob Testing Positive with or without the disease code prepNow all this was just preamble to get to Naive Bayes ph2Getting to Naive Bayes h2pSo far we have talked only about one piece of evidence In reality we have to predict an outcome given strongmultiple evidence strong In that case the math gets very complicated To get around that complication one approach is to uncouple multiple pieces of evidence and to treat each of piece of evidence as independent This approach is why this is called emnaive em Bayes ppre codeP Outcome Multiple Evidence Evidence1 Outcome Evidence2 outcome EvidenceN outcome Outcome scaled by Multiple Evidence code prepMany people choose to remember this as ppre code Likelihood of Evidence Prior prob of outcomeP outcome evidence Evidence code prepNotice few things about this equation pulliIf the Prob evidence outcome is then we are just multiplying by liliIf the Prob some particular evidence outcome is then the whole prob becomes If you see contradicting evidence we can rule out that outcome liliSince we divide everything by Evidence we can even get away without calculating it liliThe intuition behind multiplying by the emprior em is so that we give high probability to more common outcomes and low probabilities to unlikely outcomes These are also called codebase rates code and they are way to scale our predicted probabilities li ulh3How to Apply NaiveBayes to Predict an Outcome h3pJust run the formula above for each possible outcome Since we are trying to emclassify em each outcome is called codeclass code and it has codeclass label code Our job is to look at the evidence to consider how likely it is to be this class or that class and assign label to each entity Again we take very simple approach The class that has the highest probability is declared the winner and that class label gets assigned to that combination of evidences ph3Fruit Example h3pLet try it out on an example to increase our understanding The OP asked for fruit identification example ppLet say that we have data on 1000 pieces of fruit They happen to be strongBanana strong strongOrange strong or some strongOther Fruit strong We know characteristics about each fruit polliWhether it is Long liliWhether it is Sweet and liliIf its color is Yellow li olpThis is our training set We will use this to predict the type of any emnew em fruit we encounter ppre codeType Long Not Long Sweet Not Sweet Yellow Not Yellow Total Banana 400 100 350 150 450 50 500Orange 300 150 150 300 300Other Fruit 100 100 150 50 50 150 200 Total 500 500 650 350 800 200 1000 code prepWe can pre compute lot of things about our fruit collection ppThe so called Prior probabilities If we didn know any of the fruit attributes this would be our guess These are our codebase rates code ppre code Banana 500 1000 Orange Other Fruit code prepProbability of Evidence ppre codep Long 5P Sweet 65P Yellow code prepProbability of Likelihood ppre codeP Long Banana 8P Long Orange Oranges are never long in all the fruit we have seen Yellow Other Fruit 50 200 25P Not Yellow Other Fruit 75 code preh3Given Fruit how to classify it h3pLet say that we are given the properties of an unknown fruit and asked to classify it We are told that the fruit is Long Sweet and Yellow Is it Banana Is it an Orange Or Is it some Other Fruit ppWe can simply run the numbers for each of the outcomes one by one Then we choose the highest probability and classify our unknown fruit as belonging to the class that had the highest probability based on our prior evidence our 1000 fruit training set ppre codeP Banana Long Sweet and Yellow Long Banana Sweet Banana Yellow Banana banana Long Sweet Yellow evidence 252 evidence Orange Long Sweet and Yellow 0P Other Fruit Long Sweet and Yellow Long Other fruit Sweet Other fruit Yellow Other fruit Other Fruit evidence 100 200 150 200 50 200 200 1000 evidence 01875 evidence code prepBy an overwhelming margin code0 252 gt gt 01875 code we classify this Sweet Long Yellow fruit as likely to be Banana ph3Why is Bayes Classifier so popular h3pLook at what it eventually comes down to Just some counting and multiplication We can pre compute all these terms and so classifying becomes easy quick and efficient pp codeLet evidence code Now we quickly compute the following three quantities ppre codeP Banana evidence Prob Banana Prob Evidence1 Banana Prob Evidence2 Banana Orange Evidence Prob Orange Prob Evidence1 Orange Prob Evidence2 Orange Other Evidence Prob Other Prob Evidence1 Other Prob Evidence2 Other code prepAssign the class label of whichever is the highest number and you are done ppDespite the name Naive Bayes turns out to be excellent in certain applications Text classification is one area where it really shines ppHope that helps in understanding the concepts behind the Naive Bayes algorithm possiblystupidquestion Imagine that we want to calculate Banana Sweet could use Bayes and calculate Sweet Banana Banana Sweet That 350 500 500 1000 650 1000 65 538 Ok good Why can just calculate the original question Banana Sweet by simply looking at the Sweet column in the training table There are 650 Sweet fruits and 350 of them are Banana 350 650 538,1,How do create Keras Embedding layer from pre trained word embedding dataset python tensorflow keras word2vec word embedding pHow do load pre trained word embedding into Keras codeEmbedding code layer ppI downloaded the codeglove 6B 50d txt code glove 6B zip file from href https nlp stanford edu projects glove rel nofollow noreferrer https nlp stanford edu projects glove and not sure how to add it to Keras Embedding layer See href https keras io layers embeddings rel nofollow noreferrer https keras io layers embeddings,NULL 28645,1100553,284318,Yearling Necromancer Nice Answer Famous Question Good Answer Revival Revival Famous Question Popular Question Popular Question Nice Answer Good Answer Good Question Popular Question Announcer Popular Question Great Answer Nice Answer Announcer Enthusiast Famous Question Good Answer Famous Question Yearling Popular Question Revival Popular Question Necromancer Favorite Question Nice Question Popular Question Announcer Notable Question Favorite Question Necromancer Necromancer Nice Answer Necromancer Popular Question Popular Question Nice Answer Nice Answer Yearling Announcer Necromancer Nice Question Nice Answer Notable Question Popular Question Popular Question Necromancer Notable Question Favorite Question Notable Question Necromancer Announcer Notable Question,NULL,NULL,0,NULL,NULL 28646,120915,284318,Yearling Necromancer Nice Answer Famous Question Good Answer Revival Revival Famous Question Popular Question Popular Question Nice Answer Good Answer Good Question Popular Question Announcer Popular Question Great Answer Nice Answer Announcer Enthusiast Famous Question Good Answer Famous Question Yearling Popular Question Revival Popular Question Necromancer Favorite Question Nice Question Popular Question Announcer Notable Question Favorite Question Necromancer Necromancer Nice Answer Necromancer Popular Question Popular Question Nice Answer Nice Answer Yearling Announcer Necromancer Nice Question Nice Answer Notable Question Popular Question Popular Question Necromancer Notable Question Favorite Question Notable Question Necromancer Announcer Notable Question,NULL,NULL,0,NULL,NULL 28647,181324,558881,NULL,NULL,NULL,0,NULL,NULL 28648,1069499,744142,NULL,NULL,NULL,0,NULL,NULL 28649,1492815,744142,NULL,NULL,NULL,0,NULL,NULL 28650,1640748,744142,NULL,NULL,NULL,0,NULL,NULL 28651,392498,342977,Curious Yearling Caucus Caucus Nice Answer Enlightened Custodian Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 28652,114460,994281,NULL,NULL,NULL,0,NULL,NULL 28653,3856833,625802,Good Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 28654,887830,287993,Yearling,NULL,NULL,0,NULL,NULL 28655,87488,198285,NULL,NULL,NULL,0,NULL,NULL 28656,48367,882385,NULL,NULL,NULL,0,NULL,NULL 28657,98455,353988,Nice Answer Enlightened Revival Revival Revival Nice Answer Enlightened Necromancer Nice Answer Enlightened Guru Yearling Generalist Nice Answer html Great Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Guru Guru Documentation User Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 28658,78479,1412177,Notable Question,NULL,NULL,0,NULL,NULL 28659,52356,1172750,Yearling Guru Yearling Nice Answer jquery Yearling,NULL,NULL,0,NULL,NULL 28660,111576,742729,NULL,NULL,NULL,0,NULL,NULL 28661,414591,1435356,NULL,NULL,NULL,0,NULL,NULL 28662,49787,1415900,NULL,NULL,NULL,0,NULL,NULL 28663,20608,351545,Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Famous Question Famous Question Good Question Nice Question Notable Question Yearling Popular Question Nice Question Notable Question Notable Question Nice Question Popular Question Famous Question Yearling Notable Question Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 28664,536192,1335407,NULL,NULL,,0,, 28665,230993,819804,Yearling Populist Yearling Great Answer Yearling Civic Duty Critic Yearling,NULL,NULL,0,NULL,NULL 28666,749606,567171,Excavator Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 28667,1377724,523637,NULL,NULL,NULL,0,NULL,NULL 28668,244819,324224,Caucus Yearling Tenacious Yearling Yearling Organizer Caucus Unsung Hero Yearling Announcer Caucus,NULL,NULL,0,NULL,NULL 28669,15921,250852,NULL,NULL,NULL,0,NULL,NULL 28670,315669,2759,Good Answer Yearling Popular Question Taxonomist Revival Informed,NULL,NULL,0,NULL,NULL 28671,308170,2334,NULL,NULL,NULL,0,NULL,NULL 28672,145028,1357000,NULL,NULL,NULL,0,NULL,NULL 28673,2183115,650340,NULL,NULL,NULL,0,NULL,NULL 28674,251,1465449,NULL,NULL,NULL,0,NULL,NULL 28675,435743,704161,Civic Duty Popular Question Caucus,NULL,NULL,0,NULL,NULL 28676,14482,45097,Documentation User,NULL,NULL,0,NULL,NULL 28677,359562,928466,NULL,NULL,NULL,0,NULL,NULL 28678,4641,1074722,Teacher,NULL,NULL,0,NULL,NULL 28679,148878,787798,Student,NULL,NULL,0,NULL,NULL 28680,181664,859198,NULL,NULL,NULL,0,NULL,NULL 28681,42239,1152375,Revival Announcer Popular Question Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 28682,1565518,1233235,Curious Commentator Nice Question Teacher Critic Revival,NULL,NULL,0,NULL,NULL 28683,166271,1394226,Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 28684,190454,391688,Yearling Notable Question Yearling Critic Commentator Yearling,NULL,pSo Warpzit was on the right track he just didn address your specific issue too well came across the exact same issue and here is how solved it ppFirst created static boolean variable for simplicity sake lets put it in the FragmentUtils class ppre codepublic class FragmentUtils public static boolean sDisableFragmentAnimations false code prepThen in EVERY fragment you have you need to override the onCreateAnimation method ppre code Animation onCreateAnimation int transit boolean enter int nextAnim if FragmentUtils sDisableFragmentAnimations Animation new Animation setDuration return return super onCreateAnimation transit enter nextAnim code prepThen when you need to clear the backstack from your activity simply do the following ppre codepublic void clearBackStack FragmentUtils sDisableFragmentAnimations true getSupportFragmentManager popBackStackImmediate null FragmentManager POP BACK STACK INCLUSIVE FragmentUtils sDisableFragmentAnimations false code prepAnd voila call to clearBackStack will drop you back into the root fragment without any transition animations ppHopefully the big will add less stupid way of doing this in the future Because you re not allowed to return null animation from it Instead return an empty animation with 0ms duration like the sample above,0,NULL,NULL 28685,1778308,776847,Civic Duty Citizen Patrol Yearling Notable Question Curious Yearling Promoter Self-Learner Nice Question Famous Question Necromancer Organizer Investor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28686,1019223,536307,Critic Teacher Citizen Patrol Commentator,NULL,NULL,0,NULL,NULL 28687,1194483,44226,Popular Question Caucus,NULL,NULL,0,NULL,NULL 28688,480537,522010,NULL,NULL,NULL,0,NULL,NULL 28689,1097415,1220172,Nice Answer Enlightened Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28690,467557,109534,Notable Question Peer Pressure Popular Question Popular Question Notable Question Famous Question Popular Question Citizen Patrol Popular Question Famous Question Nice Question Yearling Notable Question Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28691,3096313,215891,NULL,NULL,NULL,0,NULL,NULL 28692,188819,1078575,NULL,NULL,NULL,0,NULL,NULL 28693,87034,848316,NULL,NULL,NULL,0,NULL,NULL 28694,20779,56545,NULL,NULL,NULL,0,NULL,NULL 28695,262057,97976,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 28696,73069,334987,NULL,NULL,NULL,0,NULL,NULL 28697,274187,1088564,Necromancer Informed,NULL,NULL,0,NULL,NULL 28698,536451,680024,NULL,NULL,NULL,0,NULL,NULL 28699,3909,11183,NULL,NULL,NULL,0,NULL,NULL 28700,1002575,413766,Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling Notable Question Good Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Self-Learner Nice Question Popular Question Popular Question Popular Question Famous Question Nice Answer Notable Question Good Question Popular Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 28701,80057,992067,Notable Question,NULL,NULL,0,NULL,NULL 28702,1120,1130082,NULL,NULL,NULL,0,NULL,NULL 28703,294814,1516599,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 28704,1455196,458817,NULL,NULL,NULL,0,NULL,NULL 28705,723113,108044,Popular Question Yearling Good Answer Nice Answer Enlightened Good Answer Good Answer Notable Question Yearling Populist Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 28706,131287,201103,Notable Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28707,642165,861319,NULL,NULL,NULL,0,NULL,NULL 28708,346599,448500,NULL,NULL,NULL,0,NULL,NULL 28709,84607,224797,Notable Question Famous Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28710,194050,559612,NULL,NULL,NULL,0,NULL,NULL 28711,216326,696011,Popular Question,NULL,NULL,0,NULL,NULL 28712,1183007,366638,NULL,NULL,NULL,0,NULL,NULL 28713,1330056,1515913,NULL,NULL,NULL,0,NULL,NULL 28714,132593,571689,Revival Revival Yearling Custodian Informed Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 28715,46992,152696,Nice Answer Good Answer Yearling Yearling Guru Good Answer html Yearling,NULL,NULL,0,NULL,NULL 28716,152743,643932,NULL,NULL,NULL,0,NULL,NULL 28717,122795,699975,NULL,NULL,NULL,0,NULL,NULL 28718,472872,785752,NULL,NULL,NULL,0,NULL,NULL 28719,176033,264961,Popular Question Critic Caucus Popular Question Popular Question Promoter Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28720,79160,974296,Popular Question Notable Question Notable Question Yearling Nice Question Popular Question Popular Question Good Question Popular Question Famous Question Notable Question Famous Question Yearling Nice Answer Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28721,902534,1230113,Tumbleweed Census,NULL,NULL,0,NULL,NULL 28722,2940080,935634,Popular Question,NULL,NULL,0,NULL,NULL 28723,128169,260593,Yearling Yearling Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28724,3247336,1283113,NULL,NULL,NULL,0,NULL,NULL 28725,587010,1342795,NULL,NULL,NULL,0,NULL,NULL 28726,1282173,329948,Autobiographer Student,NULL,NULL,0,NULL,NULL 28727,321459,105361,NULL,NULL,NULL,0,NULL,NULL 28728,1002304,323793,NULL,NULL,NULL,0,NULL,NULL 28729,480224,1158027,Nice Answer Notable Question Yearling Notable Question Popular Question Caucus Nice Question,NULL,NULL,0,NULL,NULL 28730,9171596,1443358,Nice Answer Yearling jquery Promoter Tumbleweed Caucus php Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28731,136146,945263,NULL,NULL,NULL,0,NULL,NULL 28732,20909,685931,NULL,NULL,NULL,0,NULL,NULL 28733,682692,1167003,NULL,NULL,NULL,0,NULL,NULL 28734,901175,255155,Popular Question Self-Learner Yearling Necromancer Curious Caucus Constituent Nice Answer Enlightened Notable Question Caucus Constituent Yearling Nice Answer Necromancer Caucus Constituent,NULL,NULL,0,NULL,NULL 28735,55302,49739,Nice Question Popular Question Notable Question Great Answer Nice Question Popular Question Notable Question Notable Question Good Answer Popular Question Necromancer Popular Question Notable Question Famous Question Good Question Good Question Caucus Notable Question Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Famous Question Revival Popular Question Good Question Famous Question Famous Question Popular Question Popular Question Necromancer Popular Question Popular Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28736,326107,88638,Famous Question,NULL,NULL,0,NULL,NULL 28737,6607819,496857,Announcer Autobiographer Yearling Critic Commentator Nice Answer Caucus Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 28738,26679,496857,Announcer Autobiographer Yearling Critic Commentator Nice Answer Caucus Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 28739,437353,517653,NULL,NULL,NULL,0,NULL,NULL 28740,12390,319128,NULL,NULL,NULL,0,NULL,NULL 28741,105111,602823,Good Answer Yearling,NULL,NULL,0,NULL,NULL 28742,996231,1371152,NULL,NULL,NULL,0,NULL,NULL 28743,555475,1218376,Popular Question,NULL,Generate random string characters in JavaScript javascript random pI want character string composed of characters picked randomly from the set code zA Z0 code ppWhat the best way to do this with JavaScript ve tested solution on Node js v6 on Fedora and observed that it may produce strings shorter than characters did not study how the trick works but to generalize the solution one can rather do new Array fill map Math random toString 36 replace substr join that works with arbitrarily long target strings,0,NULL,NULL 28744,30951,608408,NULL,NULL,NULL,0,NULL,NULL 28745,14037,662653,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28746,82011,217169,Yearling Self-Learner Yearling Critic Popular Question Notable Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 28747,12571,412808,Self-Learner Nice Answer Notable Question Tumbleweed Yearling Popular Question Nice Question Famous Question Notable Question Nice Answer Enlightened Yearling Custodian Popular Question Necromancer Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 28748,1259213,1290356,Curious Informed Notable Question,NULL,NULL,0,NULL,NULL 28749,1159678,394589,Popular Question Popular Question Good Answer php Notable Question Yearling Notable Question Notable Question Notable Question Announcer Yearling Notable Question Civic Duty Excavator Yearling,NULL,NULL,0,NULL,NULL 28750,181590,388718,Good Question Famous Question Nice Question Nice Answer Enlightened Custodian Yearling Custodian Documentation User Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 28751,160221,178382,Guru Nice Answer Enlightened Yearling Revival Good Answer Guru Yearling Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 28752,555454,1374997,Commentator Yearling Yearling Critic Peer Pressure Citizen Patrol Custodian Custodian Caucus Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 28753,287825,767160,Notable Question Notable Question Yearling Notable Question Famous Question Caucus Good Question Quorum Census Famous Question Popular Question Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 28754,113668,122850,NULL,NULL,NULL,0,NULL,NULL 28755,164883,134265,Nice Answer Yearling Civic Duty Proofreader Caucus Yearling Caucus Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 28756,682685,473384,Autobiographer,NULL,NULL,0,NULL,NULL 28757,2510244,1248269,NULL,NULL,NULL,0,NULL,NULL 28758,356028,1248269,NULL,NULL,NULL,0,NULL,NULL 28759,491761,603152,NULL,NULL,NULL,0,NULL,NULL 28760,3448717,1310475,Curious,NULL,NULL,0,NULL,NULL 28761,202991,1310475,Curious,NULL,NULL,0,NULL,NULL 28762,9732790,1310475,Curious,NULL,NULL,0,NULL,NULL 28763,951780,848396,Famous Question Notable Question Popular Question Curious Popular Question Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 28764,9854,1380303,NULL,NULL,NULL,0,NULL,NULL 28765,312622,436080,NULL,NULL,NULL,0,NULL,NULL 28766,142057,34613,Critic,NULL,NULL,0,NULL,NULL 28767,652166,1335353,Informed,NULL,NULL,0,NULL,NULL 28768,456956,1308467,NULL,NULL,NULL,0,NULL,NULL 28769,374056,1386838,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28770,51323,603130,NULL,NULL,NULL,0,NULL,NULL 28771,24511,66629,Yearling Nice Answer Enlightened Good Answer Good Answer Necromancer Nice Answer Yearling Nice Answer Necromancer Necromancer Populist Custodian Nice Answer Custodian Yearling Autobiographer Nice Answer Necromancer Necromancer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 28772,122186,1503831,Informed,NULL,NULL,0,NULL,NULL 28773,20020,887084,Student Commentator Scholar Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 28774,273426,386935,Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 28775,76127,1005961,NULL,NULL,NULL,0,NULL,NULL 28776,184584,507328,NULL,NULL,NULL,0,NULL,NULL 28777,1143983,507328,NULL,NULL,NULL,0,NULL,NULL 28778,713698,995780,NULL,NULL,NULL,0,NULL,NULL 28779,599527,523075,Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Organizer Yearling Popular Question Caucus Notable Question Revival Notable Question Popular Question Popular Question Nice Question Notable Question Civic Duty Notable Question Necromancer Necromancer Notable Question Caucus Yearling Famous Question Popular Question Popular Question Nice Answer Inquisitive Notable Question Custodian Caucus Notable Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28780,7594162,523075,Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Organizer Yearling Popular Question Caucus Notable Question Revival Notable Question Popular Question Popular Question Nice Question Notable Question Civic Duty Notable Question Necromancer Necromancer Notable Question Caucus Yearling Famous Question Popular Question Popular Question Nice Answer Inquisitive Notable Question Custodian Caucus Notable Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28781,1024282,1036203,NULL,NULL,NULL,0,NULL,NULL 28782,137872,1242497,Student Yearling,NULL,NULL,0,NULL,NULL 28783,366167,791414,Good Question Famous Question Critic Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 28784,387104,298426,Yearling Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Yearling Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28785,376755,264654,NULL,NULL,NULL,0,NULL,NULL 28786,613409,1404627,NULL,NULL,NULL,0,NULL,NULL 28787,523540,341959,Popular Question Yearling Notable Question Informed Caucus Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 28788,201386,209005,Nice Answer Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 28789,184098,368070,Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Custodian Yearling Inquisitive Good Answer Investor Census Altruist Necromancer Nice Answer Caucus Constituent Good Answer Documentation User Populist Nice Answer Nice Answer Announcer Yearling Census Nice Answer Enlightened Nice Answer Announcer Great Answer Populist Popular Question,NULL,NULL,0,NULL,NULL 28790,1269291,368070,Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Custodian Yearling Inquisitive Good Answer Investor Census Altruist Necromancer Nice Answer Caucus Constituent Good Answer Documentation User Populist Nice Answer Nice Answer Announcer Yearling Census Nice Answer Enlightened Nice Answer Announcer Great Answer Populist Popular Question,NULL,NULL,0,NULL,NULL 28791,5992084,1248763,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 28792,1674041,1248763,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 28793,282869,212121,Notable Question Favorite Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Famous Question Popular Question Nice Answer Popular Question Nice Question Popular Question Caucus Constituent Announcer Popular Question Nice Answer Documentation User Popular Question Yearling Census Nice Answer Enlightened Popular Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 28794,1089412,854603,Commentator Curious Teacher Popular Question Popular Question Notable Question Nice Question Nice Question Yearling Popular Question Good Question Yearling Notable Question Yearling Caucus Critic Great Question Yearling Self-Learner Famous Question Popular Question Census Popular Question Notable Question Good Question Electorate Yearling,NULL,NULL,0,NULL,NULL 28795,9453912,12031,Announcer Yearling Nice Answer Enlightened Popular Question Custodian Census Custodian Custodian Caucus Nice Question,NULL,NULL,0,NULL,NULL 28796,1399840,1087006,NULL,NULL,NULL,0,NULL,NULL 28797,31225,1495626,NULL,NULL,NULL,0,NULL,NULL 28798,1218373,453856,Yearling Nice Question Notable Question Yearling Great Answer Good Answer Custodian Citizen Patrol Custodian Notable Question Curious Revival Yearling,NULL,pThe algorithms with can runs awfully long ppThis one performs much better ppre codedef gcd while return code pre yes you re right should ve used temporary variable like this,0,NULL,NULL 28799,395077,962265,Caucus Yearling Caucus Citizen Patrol Yearling Caucus,NULL,NULL,1,NULL,Crystal lang Accessing Serial port python serial port pyserial crystal lang pI want to access the serial port using Crystal lang ppI have following code in python want to write the equivalent Crystal lang code for pet project ppre codeimport serialdef readSerData ser readline if print result something do other stuff return resultif name main ser serial Serial dev ttyUSB0 9600 while True data readSerData do something with data code prepI couldn find any library for accessing the serial port ppWhat is the proper way for accessing serial port in crystal lang ppThanks in advance pIt is easier to answer this question in multiple parts to really cover it all pp strongQ How do access serial port on linux bsd strong pp strongA Open it as file strong On linux bsd serial connection is established the moment device is plugged in and is then listed somewhere under code dev code these days usually as dev ttyUSB0 In order to access this connection you simply open it like you would regular file Sometimes this is actually good enough to start communicating with the device as modern hardware typically works with all baud rates and default flags pp strongQ How do configure serial tty device on linux bsd strong pp strongA Set href https linux die net man termios rel noreferrer termios flags on the file strong If you do need to configure your connection to set things like baud rate IXON IXOFF etc you can do it before even running your program using href https linux die net man stty rel noreferrer stty if it is available Eg to set the baud rate you could run codestty dev ttyUSB0 9600 code And after this is set up you can just open it as file and start using it ppYou can spawn codestty code from crystal using href https crystal lang org api master Process html run 28command 3AString 2Cargs 3Dnil 2Cenv 3AEnv 3Dnil 2Cclear env 3ABool 3Dfalse 2Cshell 3ABool 3Dfalse 2Cinput 3AStdio 3DRedirect 3A 3AClose 2Coutput 3AStdio 3DRedirect 3A 3AClose 2Cerror 3AStdio 3DRedirect 3A 3AClose 2Cchdir 3AString 3F 3Dnil 29 3AProcess 3A 3AStatus class method rel noreferrer codeProcess run code if you wanted an easy way to configure the device from your app would probably recommend this approach over the next solution pp strongQ How do set termios flags from crystal without using stty strong pp strongA Use the termios posix functions directly strongCrystal actually provides FileDescriptor handles with few common termios settings such as href https crystal lang org api 25 IO FileDescriptor html cooked 28 26block 29 instance method rel noreferrer codecooked code which means it has minimal href https github com crystal lang crystal blob b782738fffb1b9fba98f7aa44f9da11c3da259a1 src termios cr rel noreferrer termios bindings already We can start by using the existing code for our inspiration ppre coderequire termios See above link for contents Open the fileserial file File open dev ttyACM0 raise Oh no not TTY unless serial file tty Fetch the unix FD It just number fd serial file fd Fetch the file existing TTY flagsraise Can access TTY unless LibC tcgetattr fd out mode mode now contains termios struct Let enable umm ISTRIP and IXONmode iflag Termios InputMode ISTRIP Termios InputMode IXON value Let turn off IXOFF too mode iflag amp Termios InputMode IXOFF value Unfun discovery Termios doesn have cfset io speed available Let add them so changing baud isn so difficult lib LibC fun cfsetispeed termios Termios speed SpeedT Int fun cfsetospeed termios Termios speed SpeedT Intend Use the above funcs to set the ispeed and ospeed to your nominated baud rate LibC cfsetispeed pointerof mode Termios BaudRate B9600 LibC cfsetospeed pointerof mode Termios BaudRate B9600 Write your changes to the FD LibC tcsetattr fd Termios LineControl TCSANOW pointerof mode Done Your serial file handle is ready to use code prepTo set any other flags refer to the href https linux die net man termios rel noreferrer termios manual or this nice href https en wikibooks org wiki Serial Programming termios rel noreferrer serial guide just found pp strongQ Is there library to do all this for me strong pp strongA No strong Not that can see but it would be great if someone made it It probably not much work for someone to make one if they had vested interest 28800,224073,986935,Yearling,NULL,NULL,0,NULL,NULL 28801,785019,403165,Nice Question Investor Altruist Popular Question Nice Question,NULL,NULL,0,NULL,NULL 28802,88358,348801,Nice Answer Nice Question Famous Question Yearling Good Question Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 28803,92264,1413977,Necromancer Revival Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 28804,3603141,576310,NULL,NULL,NULL,0,NULL,NULL 28805,4485342,625144,Yearling Good Question Popular Question Favorite Question Famous Question Popular Question Revival Popular Question Yearling Nice Question Autobiographer Announcer Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 28806,176985,625144,Yearling Good Question Popular Question Favorite Question Famous Question Popular Question Revival Popular Question Yearling Nice Question Autobiographer Announcer Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 28807,1067961,684736,NULL,NULL,NULL,0,NULL,NULL 28808,139727,422743,NULL,NULL,NULL,0,NULL,NULL 28809,228473,1096437,Yearling Teacher Revival Popular Question Revival Necromancer Popular Question Announcer Yearling Popular Question Notable Question Good Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28810,994674,389222,Nice Question Famous Question Notable Question Custodian Notable Question Notable Question Custodian Custodian Custodian Yearling Proofreader Popular Question Nice Question Notable Question Famous Question Nice Question Notable Question Notable Question Popular Question Yearling Famous Question Documentation User Nice Question Nice Question Good Question Nice Answer Popular Question Popular Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 28811,30242,690045,Nice Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 28812,71210,60232,Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Yearling Nice Answer linux-device-driver Nice Answer Nice Answer Census Nice Answer Yearling Good Answer Nice Answer Nice Answer,NULL,pYes there is In fact there are two separate ways to do it ppRight now the best way to accomplish what you want is to do the following polli pAdd the parameter isolcpus cpu number to the Linux kernel command line from the boot loader during boot This will instruct the Linux scheduler not to run any regular tasks on that CPU unless specifically requested using cpu affinity lili pUse IRQ affinity to set other CPUs to handle all interrupts so that your isolated CPU will not receive any interrupts lili pUse CPU affinity to fix your specific task to the isolated CPU li olpThis will give you the best that Linux can provide with regard to CPU isolation without out of tree and in development patches ppYour task will still get interrupted from time to time by Linux code including other tasks such as the timer tick interrupt and the scheduler code IPIs from other CPUs and stuff like work queue kernel threads although the interruption should be quite minimal ppFor an almost complete list of interruption sources check out my page at href https github com gby linux wiki rel noreferrer https github com gby linux wiki ppThe alternative method is to use cpusets which is way more elegant and dynamic but suffers from some weaknesses at this point in time no migration of timers for example which makes me recommend the old crude but effective isolcpus parameter ppNote that work is currently being done by the Linux community to address all these issues and more to give even better isolation the kernel has good doc on it https www kernel org doc Documentation IRQ affinity txt,0,NULL,NULL 28813,343345,896557,Popular Question Yearling Nice Question Notable Question Caucus Constituent Popular Question Popular Question Caucus Constituent Yearling Documentation User Popular Question Popular Question Caucus Constituent Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 28814,47889,964906,NULL,NULL,NULL,0,NULL,NULL 28815,711441,1112718,NULL,NULL,NULL,0,NULL,NULL 28816,5568483,1045098,NULL,NULL,NULL,0,NULL,NULL 28817,516850,716135,NULL,NULL,NULL,0,NULL,NULL 28818,131386,96789,Notable Question,NULL,NULL,0,NULL,NULL 28819,9990,1072132,NULL,NULL,NULL,0,NULL,NULL 28820,48929,738091,Curious Nice Answer Notable Question Custodian Citizen Patrol Caucus Custodian Informed Yearling Necromancer Announcer Good Answer Custodian Autobiographer Popular Question Yearling Populist Popular Question,NULL,NULL,0,NULL,NULL 28821,580495,766120,Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus symfony Yearling Good Answer Nice Answer Census Announcer Yearling Nice Answer Enlightened Necromancer Good Answer,NULL,NULL,0,NULL,NULL 28822,483218,1124610,NULL,NULL,NULL,0,NULL,NULL 28823,180901,1091551,Caucus Custodian Census Announcer Announcer Yearling Notable Question Popular Question Popular Question Yearling Caucus Constituent Popular Question Fanatic Notable Question Documentation User Yearling Census Tenacious Caucus Constituent,NULL,NULL,0,NULL,NULL 28824,177265,599269,NULL,NULL,NULL,0,NULL,NULL 28825,150591,971747,Scholar Editor Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28826,115302,464154,Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 28827,136,32846,Good Answer Necromancer python Explainer Nice Answer Enlightened Yearling Announcer Custodian Nice Answer Enlightened Announcer Announcer pythonanywhere Yearling Announcer Announcer Nice Answer Enlightened Organizer Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 28828,283638,1366810,NULL,NULL,NULL,0,NULL,NULL 28829,14184,250151,Popular Question,NULL,NULL,0,NULL,NULL 28830,309392,678706,Yearling Student Scholar Yearling Commentator,NULL,NULL,0,NULL,NULL 28831,244571,912727,Tumbleweed,NULL,NULL,0,NULL,NULL 28832,6228310,110202,Nice Answer Yearling Nice Answer Popular Question Yearling Notable Question css Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28833,119089,415384,Yearling Caucus Caucus Announcer Documentation User Excavator Custodian Custodian Custodian Citizen Patrol Reviewer Deputy Announcer Steward,NULL,NULL,0,NULL,NULL 28834,126897,992007,NULL,NULL,NULL,0,NULL,NULL 28835,11431,53338,Yearling Nice Answer Enlightened Nice Answer Caucus Popular Question Custodian Custodian Scholar,NULL,NULL,0,NULL,NULL 28836,454369,1183484,Yearling Nice Answer Scholar Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 28837,1638182,153797,Informed Custodian Custodian Suffrage Vox Populi Proofreader Popular Question Notable Question Announcer Notable Question Yearling Popular Question Caucus Constituent Notable Question Revival Census Good Answer Custodian Custodian Tenacious Yearling Electorate Nice Question Announcer Custodian Fanatic Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 28838,220376,499139,Famous Question,NULL,NULL,0,NULL,NULL 28839,270626,50114,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 28840,409908,465183,Good Answer Nice Answer Good Answer Good Answer python Good Answer Pundit Nice Answer Great Answer Guru Great Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened curl Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Great Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Guru Necromancer regex Nice Answer Enlightened Good Answer terminal Nice Answer Enlightened Yearling Nice Answer ubuntu Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Nice Answer Good Answer Guru Popular Question Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Notable Question Guru Nice Answer Great Answer Nice Answer Enlightened Popular Question scripting Yearling Good Answer Good Answer unix json Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru Electorate Epic Proofreader git Guru Nice Answer Enlightened Nice Answer Caucus Announcer Nice Answer Nice Question xml Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Guru Good Answer Guru Promoter Yearling Guru javascript Good Answer,NULL,NULL,0,NULL,NULL 28841,1052942,255660,Famous Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 28842,185014,353592,NULL,NULL,NULL,0,NULL,NULL 28843,26613,58254,Yearling Guru,NULL,NULL,0,NULL,NULL 28844,97197,946545,Notable Question,NULL,NULL,0,NULL,NULL 28845,204782,596760,NULL,NULL,NULL,0,NULL,NULL 28846,325773,179270,Nice Answer,NULL,NULL,0,NULL,NULL 28847,1343260,1081576,NULL,NULL,NULL,0,NULL,NULL 28848,7781017,98105,Notable Question,NULL,NULL,0,NULL,NULL 28849,148933,424820,Guru Yearling Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 28850,11635,636347,NULL,NULL,NULL,0,NULL,NULL 28851,685754,294963,Nice Answer,NULL,NULL,0,NULL,NULL 28852,7865962,1080600,NULL,NULL,NULL,0,NULL,NULL 28853,14478,97186,Necromancer Yearling Nice Answer Nice Answer Enlightened Yearling Revival Necromancer Nice Answer Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 28854,52881,37297,NULL,NULL,NULL,0,NULL,NULL 28855,4341,1161161,NULL,NULL,NULL,0,NULL,NULL 28856,1859359,861347,NULL,NULL,NULL,0,NULL,NULL 28857,1384354,861347,NULL,NULL,NULL,0,NULL,NULL 28858,382668,282360,Notable Question Notable Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 28859,186396,541026,Popular Question Famous Question Editor,NULL,NULL,0,NULL,NULL 28860,209430,894839,NULL,NULL,NULL,0,NULL,NULL 28861,94072,638002,NULL,NULL,NULL,0,NULL,NULL 28862,148544,502509,Nice Question,NULL,NULL,0,NULL,NULL 28863,111456,186019,Nice Answer Yearling Nice Answer Guru Yearling Good Answer Guru Populist Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 28864,164943,824063,NULL,NULL,NULL,0,NULL,NULL 28865,841712,375847,Popular Question Famous Question Famous Question Yearling Notable Question Enthusiast Custodian Famous Question Caucus Notable Question Custodian Notable Question Popular Question Famous Question Favorite Question Nice Question Yearling Documentation User Good Answer Good Question Popular Question Notable Question Nice Question Caucus Famous Question Yearling Promoter Benefactor Custodian Famous Question Notable Question,NULL,NULL,0,NULL,NULL 28866,33100,449288,Strunk & White Announcer Revival Revival Necromancer Yearling Popular Question Necromancer Caucus Necromancer Popular Question Popular Question Good Answer Caucus Constituent Announcer Yearling Good Answer Notable Question Census Nice Answer Nice Answer Announcer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 28867,553410,1424173,Civic Duty,NULL,NULL,0,NULL,NULL 28868,45213,434850,Critic Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28869,198846,142575,Popular Question,NULL,NULL,0,NULL,NULL 28870,329629,1359509,NULL,NULL,NULL,0,NULL,NULL 28871,66197,736291,Tumbleweed Notable Question Good Question Yearling Good Question Famous Question Yearling Caucus Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 28872,558918,288379,Yearling Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Revival Caucus Census Custodian Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 28873,476448,335748,NULL,NULL,NULL,0,NULL,NULL 28874,430206,156370,NULL,NULL,NULL,0,NULL,NULL 28875,147948,212398,Custodian Student Yearling Necromancer Yearling Revival Caucus Autobiographer Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 28876,192003,557618,NULL,NULL,NULL,0,NULL,NULL 28877,347086,1102546,NULL,NULL,NULL,0,NULL,NULL 28878,390133,928323,NULL,NULL,NULL,0,NULL,NULL 28879,237044,621761,Yearling,NULL,NULL,0,NULL,NULL 28880,570926,549569,Tumbleweed Editor Student,NULL,NULL,0,NULL,NULL 28881,1081422,813945,NULL,NULL,NULL,0,NULL,NULL 28882,884961,970988,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 28883,3637820,970988,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 28884,114291,1440637,NULL,NULL,NULL,0,NULL,NULL 28885,689392,216950,Famous Question,NULL,NULL,0,NULL,NULL 28886,894225,585889,NULL,NULL,NULL,0,NULL,NULL 28887,4473,1311500,Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question Favorite Question Great Question Great Question Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Famous Question Notable Question Popular Question Famous Question Yearling Good Question Favorite Question Caucus Good Answer Good Question Notable Question Famous Question Good Question Nice Question Notable Question Good Question Famous Question Notable Question Nice Answer Good Answer Good Question Popular Question Good Answer Good Answer Notable Question Popular Question Yearling Popular Question Good Question Notable Question Notable Question Nice Question Famous Question Famous Question Nice Question Custodian Notable Question Populist Famous Question Popular Question Good Question Favorite Question Nice Question Famous Question Yearling Stellar Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 28888,2097267,1311500,Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question Favorite Question Great Question Great Question Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Famous Question Notable Question Popular Question Famous Question Yearling Good Question Favorite Question Caucus Good Answer Good Question Notable Question Famous Question Good Question Nice Question Notable Question Good Question Famous Question Notable Question Nice Answer Good Answer Good Question Popular Question Good Answer Good Answer Notable Question Popular Question Yearling Popular Question Good Question Notable Question Notable Question Nice Question Famous Question Famous Question Nice Question Custodian Notable Question Populist Famous Question Popular Question Good Question Favorite Question Nice Question Famous Question Yearling Stellar Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 28889,275981,772101,NULL,NULL,NULL,0,NULL,NULL 28890,1034069,1049952,Self-Learner,NULL,NULL,0,NULL,NULL 28891,861237,695771,NULL,NULL,NULL,0,NULL,NULL 28892,512653,1192157,NULL,NULL,NULL,0,NULL,NULL 28893,77895,787213,Necromancer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 28894,1145702,1228377,NULL,NULL,NULL,0,NULL,NULL 28895,1195791,643441,NULL,NULL,NULL,0,NULL,NULL 28896,201723,1307896,NULL,NULL,NULL,0,NULL,NULL 28897,19736,736037,Necromancer Notable Question Notable Question Notable Question Nice Question Notable Question Yearling Nice Answer Nice Question Nice Answer Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Notable Question Caucus Constituent Nice Question Notable Question Nice Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Caucus Good Answer Notable Question Good Answer Popular Question Popular Question Famous Question Popular Question Caucus Constituent Popular Question Notable Question Yearling Investor Altruist,NULL,NULL,0,NULL,NULL 28898,361299,1104023,NULL,NULL,NULL,0,NULL,NULL 28899,158907,313806,NULL,NULL,NULL,0,NULL,NULL 28900,159196,450636,NULL,NULL,NULL,0,NULL,NULL 28901,3464498,1432080,Good Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 28902,1412517,912927,Popular Question,NULL,NULL,0,NULL,NULL 28903,306723,328965,NULL,NULL,NULL,0,NULL,NULL 28904,100125,552940,NULL,NULL,NULL,0,NULL,NULL 28905,769735,239185,Nice Answer Nice Answer Enlightened Nice Answer Popular Question Yearling Good Answer Yearling Guru c#,NULL,NULL,0,NULL,NULL 28906,234398,1505468,NULL,NULL,NULL,0,NULL,NULL 28907,21881,444060,Announcer Census,NULL,NULL,0,NULL,NULL 28908,1812248,659060,Famous Question,NULL,NULL,0,NULL,NULL 28909,254449,659060,Famous Question,NULL,NULL,0,NULL,NULL 28910,509579,1528225,Teacher Nice Question Custodian Yearling Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 28911,638750,1332946,NULL,NULL,NULL,0,NULL,NULL 28912,1226662,712072,NULL,NULL,NULL,0,NULL,NULL 28913,38134,1295494,NULL,NULL,NULL,0,NULL,NULL 28914,84606,363869,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28915,156515,1370963,Yearling,NULL,NULL,0,NULL,NULL 28916,1490057,1370963,Yearling,NULL,NULL,0,NULL,NULL 28917,78107,471795,Guru Nice Answer Enlightened Good Question Nice Answer Great Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened html5 Guru Guru Good Answer Great Answer Guru Necromancer Yearling Nice Answer Popular Question Vox Populi Census Nice Answer Great Answer Good Answer Great Answer Good Answer sockets Pundit Announcer Good Question Electorate Nice Answer Necromancer Documentation User Yearling Guru Good Answer Great Answer Census Guru Great Answer Notable Question Guru Good Answer Nice Answer Good Answer Revival Great Answer Yearling Good Answer Good Answer Good Answer Famous Question,NULL,pIf your data may contain multi byte sequences not plain ASCII sequence and your browser has href https developer mozilla org en US docs Web API TextDecoder rel nofollow noreferrer TextDecoder then you should use that to decode your data specify the required encoding for the TextDecoder ppre codevar u8 new Uint8Array 65 66 67 68 var decoder new TextDecoder utf8 var b64encoded btoa decoder decode u8 code prepIf you need to support href http caniuse com search TextDecoder rel nofollow noreferrer browsers that do not have TextDecoder currently just IE and Edge then the best option is to use href https github com inexorabletash text encoding rel nofollow noreferrer TextDecoder polyfill ppIf your data contains plain ASCII not multibyte Unicode UTF then there is simple alternative using codeString fromCharCode code that should be fairly universally supported ppre codevar ascii new Uint8Array 65 66 67 68 var b64encoded btoa String fromCharCode apply null ascii code prepAnd to decode the base64 string back to Uint8Array ppre codevar u8 new Uint8Array atob b64encoded split map function return charCodeAt code prepIf you have very large array buffers then the apply may fail and you may need to chunk the buffer based on the one posted by Again note that this is only correct if your buffer only contains non multibyte ASCII characters ppre codefunction Uint8ToString u8a var CHUNK SZ 0x8000 var for var lt u8a length CHUNK SZ push String fromCharCode apply null u8a subarray CHUNK SZ return join Usagevar u8 new Uint8Array 65 66 67 68 var b64encoded btoa Uint8ToString u8 code pre very true ve update the answer to reflect that TextDecoder is currently the best option and noted that the other options only apply to strings that do not contain multibyte Unicode pIf you have coreutils in Ubuntu Karmic but not Jaunty then your codesort code command should have code code option version sort which you could use to do the comparison ppre codeverlte echo sort head n1 verlt amp amp return verlte verlte amp amp echo yes echo no noverlt 10 amp amp echo yes echo no noverlt 10 amp amp echo yes echo no yesverlte amp amp echo yes echo no yesverlt amp amp echo yes echo no no code pre seems to work for me with coreutils 25 is consistently sorted before which seems reasonable Since and are the same there are three options stable sort incoming order pick an arbitrary one to always be first the behavior see or random every time The first two seem reasonable and predictable choices the last one would be unexpected and probably not good choice for tool that might be used in scripting What behavior are you expecting pIf your Web server has support for WebSockets or WebSocket handler module then you can use the same host and port and just change the scheme like you are showing There are many options for running Web server and Websocket server module together ppI would suggest that you look at the individual pieces of the window location global and join them back together instead of doing blind string substitution ppre codevar loc window location new uri if loc protocol https new uri wss else new uri ws new uri loc host new uri loc pathname to ws code prepNote that some web servers Jetty based ones currently use the path rather than the upgrade header to determine whether specific request should be passed on to the WebSocket handler So you may be limited in whether you can transform the path in the way you want that the GET request path the HTTP GET path used when the initial WebSocket connection is established Whether it is used or not depends on your setup If you have single purpose websocket server that may happen to also serve static web files then it is probably ignored If you have multiple websocket servers behind dedicated web server then the path is probably being used to route to the right websocket server The path can also be used for other purposes by the websocket server such as passing tokens via query params etc,0,NULL,NULL 28918,4296060,148029,Necromancer Nice Answer Disciplined Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 28919,165280,1334191,NULL,NULL,NULL,0,NULL,NULL 28920,71267,1160597,NULL,NULL,NULL,0,NULL,NULL 28921,1195490,1165866,Popular Question Revival Yearling Notable Question Caucus Nice Question Nice Question,NULL,NULL,0,NULL,NULL 28922,641895,118275,Yearling Great Answer Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 28923,191331,310802,NULL,NULL,NULL,0,NULL,NULL 28924,1095647,835033,Yearling Popular Question,NULL,NULL,0,NULL,NULL 28925,127263,502717,NULL,NULL,NULL,0,NULL,NULL 28926,164896,185829,Critic Notable Question,NULL,NULL,0,NULL,NULL 28927,1653293,952408,Informed Autobiographer,NULL,NULL,0,NULL,NULL 28928,479452,1055164,NULL,NULL,NULL,0,NULL,NULL 28929,78329,696639,NULL,NULL,NULL,0,NULL,NULL 28930,227011,1019050,Popular Question Yearling,NULL,NULL,0,NULL,NULL 28931,200553,554527,Good Answer Famous Question Great Answer Popular Question Yearling Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 28932,270276,599692,NULL,NULL,NULL,0,NULL,NULL 28933,165533,854811,Yearling,NULL,NULL,0,NULL,NULL 28934,135313,319585,Yearling,NULL,NULL,0,NULL,NULL 28935,757155,1199395,NULL,NULL,NULL,0,NULL,NULL 28936,3157198,278659,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28937,242207,318937,Notable Question Excavator Popular Question Yearling Great Question Favorite Question Yearling Famous Question Custodian,NULL,NULL,0,NULL,NULL 28938,77594,855039,NULL,NULL,NULL,0,NULL,NULL 28939,1110739,920374,Yearling Necromancer Yearling Good Answer Announcer Custodian Yearling Announcer,NULL,NULL,0,NULL,NULL 28940,22667,396586,NULL,NULL,NULL,0,NULL,NULL 28941,159222,380876,NULL,NULL,NULL,0,NULL,NULL 28942,19860,237528,Yearling Electorate Caucus Constituent Caucus Constituent Announcer Caucus Constituent,NULL,NULL,0,NULL,NULL 28943,889890,1245024,Yearling Nice Answer Nice Answer Nice Answer Enlightened Critic Notable Question Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 28944,39708,747199,NULL,NULL,NULL,0,NULL,NULL 28945,245677,670150,NULL,NULL,NULL,0,NULL,NULL 28946,195791,665855,Necromancer,NULL,NULL,0,NULL,NULL 28947,96802,115945,Nice Answer Necromancer Yearling Custodian Good Answer Census Caucus,NULL,NULL,0,NULL,NULL 28948,703379,721257,NULL,NULL,NULL,0,NULL,NULL 28949,52637,1201513,Critic Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 28950,26041,142492,NULL,NULL,NULL,0,NULL,NULL 28951,179763,813277,NULL,NULL,NULL,0,NULL,NULL 28952,417142,854404,NULL,NULL,NULL,0,NULL,NULL 28953,7943,96737,Nice Question Yearling Custodian Yearling Suffrage Vox Populi Yearling Documentation User Famous Question,NULL,NULL,0,NULL,NULL 28954,87311,357641,Famous Question Nice Answer Notable Question Nice Answer Popular Question Nice Question Popular Question Nice Question Popular Question Populist Great Question Great Answer Yearling Nice Question Great Answer Good Answer Popular Question Nice Answer Nice Answer Enlightened Nice Question Notable Question Popular Question Guru Nice Answer Great Answer Yearling Notable Question Famous Question Nice Question Nice Answer Nice Answer Enlightened Yearling,NULL,pYou can check if string is palindrome by comparing it to the reverse of itself ppre codepublic static boolean isPalindrome String str return str equals new StringBuilder str reverse toString code prepor for versions of Java earlier than ppre codepublic static boolean isPalindrome String str return str equals new StringBuffer append str reverse toString code prep strongEDIT strong ioni provided href http componentsprogramming com palindromes rel noreferrer very thorough analysis of the efficiency or lack thereof of this solution both in terms of time and space If you re interested in the computational complexity of this and other possible solutions to this question please read it ioni thanks for the excellent analysis,0,NULL,NULL 28955,13691,213345,Notable Question Notable Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28956,1170167,379398,NULL,NULL,NULL,0,NULL,NULL 28957,106880,1182651,Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 28958,460375,783010,Self-Learner Citizen Patrol Custodian Custodian Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 28959,261440,1216245,Editor Citizen Patrol Supporter,NULL,NULL,0,NULL,NULL 28960,29073,1113357,NULL,NULL,NULL,0,NULL,NULL 28961,182790,1118852,NULL,NULL,NULL,0,NULL,NULL 28962,396215,1416922,Good Answer Yearling,NULL,NULL,0,NULL,NULL 28963,148723,1237460,Student Commentator Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 28964,229428,490824,NULL,NULL,NULL,0,NULL,NULL 28965,563031,895889,Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28966,216242,218725,Popular Question Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question Favorite Question Nice Question Nice Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Answer Good Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Good Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Good Question Notable Question Popular Question Good Question Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Good Question Famous Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Famous Question Popular Question Favorite Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Famous Question Famous Question Notable Question Famous Question Notable Question Nice Answer Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 28967,92408,1330464,NULL,NULL,NULL,0,NULL,NULL 28968,153519,566114,Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 28969,248501,506152,NULL,NULL,NULL,0,NULL,NULL 28970,238786,564845,NULL,NULL,NULL,0,NULL,NULL 28971,28079,133077,NULL,NULL,NULL,0,NULL,NULL 28972,120166,341866,Popular Question Nice Answer Nice Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28973,404761,770895,Yearling Popular Question Caucus Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 28974,114727,593425,Yearling Notable Question Popular Question Famous Question Popular Question Famous Question Nice Question Nice Question Nice Question Famous Question Notable Question Popular Question Nice Question Notable Question Yearling Good Question Notable Question Investor Famous Question Necromancer Popular Question Popular Question Caucus Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Civic Duty Good Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 28975,849684,929975,NULL,NULL,NULL,0,NULL,NULL 28976,134193,1549372,Custodian Custodian Nice Answer Necromancer Proofreader Nice Answer Enlightened Notable Question Yearling Popular Question Yearling Nice Answer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 28977,162757,209336,Famous Question Nice Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 28978,12591,836237,Guru Yearling Caucus Notable Question Electorate Yearling Nice Answer Enlightened Nice Question Yearling,NULL,NULL,0,NULL,NULL 28979,288986,725607,NULL,NULL,NULL,0,NULL,NULL 28980,187535,233844,Revival Supporter Enthusiast Excavator,NULL,NULL,0,NULL,NULL 28981,1049294,535779,Promoter Popular Question Notable Question Necromancer Notable Question Notable Question Famous Question Yearling Good Answer Notable Question Good Question Inquisitive Yearling,NULL,NULL,0,NULL,NULL 28982,35426,1118736,NULL,NULL,NULL,0,NULL,NULL 28983,53382,58814,Yearling Critic,NULL,NULL,0,NULL,NULL 28984,317053,222519,Documentation User,NULL,NULL,0,NULL,NULL 28985,60044,547237,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 28986,796897,1327618,NULL,NULL,NULL,0,NULL,NULL 28987,127027,948369,Nice Answer Great Answer Custodian Citizen Patrol Yearling Revival Announcer Promoter Caucus Yearling Good Answer Custodian Census Revival Yearling Curious Custodian Custodian,NULL,NULL,0,NULL,NULL 28988,8709209,948369,Nice Answer Great Answer Custodian Citizen Patrol Yearling Revival Announcer Promoter Caucus Yearling Good Answer Custodian Census Revival Yearling Curious Custodian Custodian,NULL,NULL,0,NULL,NULL 28989,383533,124019,Popular Question Yearling Popular Question Notable Question Guru Famous Question Notable Question Nice Question Yearling Caucus Famous Question Famous Question Nice Question Self-Learner Yearling Revival Famous Question,NULL,NULL,0,NULL,NULL 28990,475893,1532954,Nice Answer Yearling Yearling Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 28991,159208,347566,NULL,NULL,NULL,0,NULL,NULL 28992,103618,644239,NULL,NULL,NULL,0,NULL,NULL 28993,34751,565955,NULL,NULL,NULL,0,NULL,NULL 28994,3672,683728,Yearling Tenacious Good Answer Civic Duty Revival Yearling Necromancer Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 28995,274079,392767,Self-Learner Critic Caucus Yearling Commentator Curious Caucus,NULL,NULL,0,NULL,NULL 28996,187298,715494,NULL,NULL,NULL,0,NULL,NULL 28997,1575120,715494,NULL,NULL,NULL,0,NULL,NULL 28998,867304,888588,NULL,NULL,NULL,0,NULL,NULL 28999,2089447,925207,Student Tumbleweed Supporter Popular Question,NULL,NULL,0,NULL,NULL 29000,163604,502261,Popular Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29001,32781,715863,Critic Caucus Necromancer Yearling Autobiographer Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 29002,597199,300696,Critic Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29003,6261115,18076,NULL,NULL,NULL,0,NULL,NULL 29004,2283,10154,Necromancer Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 29005,127338,62425,Yearling Populist Yearling Good Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29006,209438,234159,Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 29007,37673,646454,NULL,NULL,NULL,0,NULL,NULL 29008,128094,1054469,Good Question Necromancer,NULL,NULL,0,NULL,NULL 29009,274845,664711,NULL,NULL,NULL,0,NULL,NULL 29010,373688,32429,Popular Question Notable Question Enthusiast Revival Notable Question Notable Question Popular Question Popular Question Famous Question Self-Learner Necromancer Revival Yearling Inquisitive Notable Question Popular Question Custodian Announcer Announcer Great Answer Popular Question Yearling Announcer Popular Question Popular Question Popular Question Revival Popular Question Promoter Yearling Civic Duty Notable Question,NULL,pIf your data may contain multi byte sequences not plain ASCII sequence and your browser has href https developer mozilla org en US docs Web API TextDecoder rel nofollow noreferrer TextDecoder then you should use that to decode your data specify the required encoding for the TextDecoder ppre codevar u8 new Uint8Array 65 66 67 68 var decoder new TextDecoder utf8 var b64encoded btoa decoder decode u8 code prepIf you need to support href http caniuse com search TextDecoder rel nofollow noreferrer browsers that do not have TextDecoder currently just IE and Edge then the best option is to use href https github com inexorabletash text encoding rel nofollow noreferrer TextDecoder polyfill ppIf your data contains plain ASCII not multibyte Unicode UTF then there is simple alternative using codeString fromCharCode code that should be fairly universally supported ppre codevar ascii new Uint8Array 65 66 67 68 var b64encoded btoa String fromCharCode apply null ascii code prepAnd to decode the base64 string back to Uint8Array ppre codevar u8 new Uint8Array atob b64encoded split map function return charCodeAt code prepIf you have very large array buffers then the apply may fail and you may need to chunk the buffer based on the one posted by Again note that this is only correct if your buffer only contains non multibyte ASCII characters ppre codefunction Uint8ToString u8a var CHUNK SZ 0x8000 var for var lt u8a length CHUNK SZ push String fromCharCode apply null u8a subarray CHUNK SZ return join Usagevar u8 new Uint8Array 65 66 67 68 var b64encoded btoa Uint8ToString u8 code pre Thanks All needed was btoa String fromCharCode apply null myArray,0,NULL,NULL 29011,873877,60910,Yearling Necromancer Guru Revival Necromancer Revival Yearling Necromancer Popular Question Popular Question Notable Question Nice Answer Yearling Popular Question Necromancer Nice Answer Good Question,NULL,NULL,0,NULL,NULL 29012,541852,1207540,Editor Critic Tag Editor Yearling Caucus Popular Question Notable Question Popular Question Announcer Tenacious Popular Question,NULL,GitHub make fork an own project git github pI have found nice GitHub project which extended lot believe my changes are good because they are working But it seems the original author hasn got the time to review these changes and include them In fact it is even possible that the features need and implemented are not in the vision of the original author and we simply aim at different goals don know as never got responses from him ppThat said saw my contributions are not counted in my commit map This is the case as long as the original repository doesn accept my contributions Furthermore my work is only recognized as work and doesn attract any other people with the same vision as have This is the bigger problem for me because see lot of people asking for these features ppI am still offering my contributions to the original project but see it is unlikely they are ever accepted Now would like to make my fork real project While plan to sync with the original project at some points of time want to rename it and motivate people to contribute to my project as well In addition would love if GitHub would show that this project is actively maintained speaking of the commit map And finally would love to make proper releases of it ppHow can get this done and well make my fork full fledged project confused maybe things have changed since 2014 but my TightBlog project is listed as fork of Apache Roller in the upper left corner https github com gmazza tightblog yet getting full credit for all my issues PR etc even though none of work is applied to the Apache Roller main project but just to my fork https github com gmazza tab overview period monthly not sure what one gains by making fork standalone project anymore,1,Efficient way to have Jackson serialize Java Instant as epoch milliseconds angularjs json spring jackson java time pUsing Spring RestControllers with Jackson JSON parsing backend with AngularJS on front end looking for an efficient way to have Jackson serialize an Instant as the epoch milliseconds for subsequent convenient usage with JavaScript code On the browser side wish to feed the epoch ms through Angular href https docs angularjs org api ng filter date rel noreferrer Date Filter code myInstantVal date short code for my desired date format ppOn the Java side the getter that Jackson would use is simply ppre codepublic Instant getMyInstantVal return myInstantVal code prepSerialization wouldn work as is because the href https github com FasterXML jackson datatype jsr310 rel noreferrer jackson datatype jsr310 doesn return Epoch milliseconds by default for an Instant looked at adding href http fasterxml github io jackson annotations javadoc com fasterxml jackson annotation JsonFormat html rel noreferrer to the above getter to morph the Instant into something the front end can use but it suffers from two problems the pattern can supply it is apparently limited to SimpleDateFormat which doesn provide an epoch milliseconds option and when tried to send the Instant as formatted date to the browser instead Jackson throws an exception because the annotation requires TimeZone attribute for Instants something don wish to hardcode as it would vary from user to user ppMy solution so far and it working fine is to create replacement getter using href http www baeldung com jackson annotations rel noreferrer which causes Jackson to use this method instead to serialize codemyInstantVal code ppre code myInstantVal public long getMyInstantValEpoch return myInstantVal toEpochMilli code prepIs this the proper way of doing this Or is there nice annotation missing that can put on getMyInstantVal so won have to create these additional methods,NULL 29013,772560,1428937,Yearling,NULL,NULL,0,NULL,NULL 29014,280230,463380,Popular Question Yearling,NULL,NULL,0,NULL,NULL 29015,449114,522756,Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 29016,586568,923181,Teacher,NULL,NULL,0,NULL,NULL 29017,64470,161727,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 29018,373329,1034844,NULL,NULL,NULL,0,NULL,NULL 29019,324472,288502,Yearling Popular Question Good Answer Yearling Good Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 29020,289460,809046,NULL,NULL,NULL,0,NULL,NULL 29021,1089134,132178,Popular Question Yearling Good Question Nice Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 29022,6212715,173062,Famous Question Popular Question Notable Question Yearling Nice Answer Excavator Announcer Yearling Stellar Question Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 29023,1565773,1289084,Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29024,1378316,210482,NULL,NULL,NULL,0,NULL,NULL 29025,15830,299958,Commentator,NULL,NULL,0,NULL,NULL 29026,452899,397716,Yearling Notable Question,NULL,NULL,0,NULL,NULL 29027,29711,1417629,Custodian Custodian Yearling Civic Duty Enthusiast Nice Answer Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 29028,657721,278403,Revival Notable Question Nice Answer Yearling Popular Question Good Question Popular Question Notable Question Famous Question Revival Notable Question Excavator,NULL,NULL,0,NULL,NULL 29029,11997,1137085,Popular Question Nice Answer Yearling Self-Learner Suffrage Commentator Yearling Census Electorate Necromancer,NULL,NULL,0,NULL,NULL 29030,204666,200690,NULL,NULL,NULL,0,NULL,NULL 29031,74074,372743,Popular Question Notable Question Famous Question Yearling Famous Question Caucus Famous Question Favorite Question Yearling Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 29032,164908,866412,NULL,NULL,NULL,0,NULL,NULL 29033,16372,1289393,Yearling,NULL,NULL,0,NULL,NULL 29034,572979,1457361,NULL,NULL,NULL,0,NULL,NULL 29035,32426,136829,Necromancer Good Answer Good Answer Nice Answer Good Answer Nice Answer Guru Guru Revival Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Yearling Guru Nice Answer Good Answer Guru Good Answer Good Answer Great Answer Guru Nice Answer Nice Answer Good Answer Necromancer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Excavator Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Guru Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Guru Yearling Good Answer Nice Answer Guru Guru Nice Answer Enlightened Guru Guru,NULL,pActually codepywin32 code and codectypes code seem to be an overkill for this simple task codeTkinter code is cross platform GUI framework which ships with Python by default and has clipboard accessing methods along with other cool stuff ppIf all you need is to put some text to system clipboard this will do it ppre codefrom Tkinter import Tkr Tk withdraw clipboard clear clipboard append can has clipboardz update now it stays on the clipboard after the window is closedr destroy code prepAnd that all no need to mess around with platform specific third party libraries ppIf you are using Python replace codeTKinter code with codetkinter code ctypes minimalist wrapper around the low level Win32 API is overkill so people should use TK This answer is very very confused href http mail python org pipermail python win32 2008 January 006642 html rel noreferrer This python win32 thread has an answer that doesn require third party packages or walking the tree ppre codeimport ctypesdef getLongPathName path buf ctypes create unicode buffer 260 GetLongPathName ctypes windll kernel32 GetLongPathNameW rv GetLongPathName path buf 260 if rv or rv gt 260 return path else return buf value code pre This doesn work GetLongPathName only expands short filenames so if you give it Progra you ll get Program Files but if you give it PROGRAM FILES it already long pathname so it won change it pToday just say object fit contain Support is everything but IE href http caniuse com feat object fit rel noreferrer http caniuse com feat object fit Don edit other people answers to fix things other than typos or broken links wouldn say something childish like There is polyfill for crap browsers in an SO answer and don appreciate my answer being edited to make it look like said that if you want to use your words put them in your own answer,0,NULL,NULL 29036,23126,903862,NULL,NULL,NULL,0,NULL,NULL 29037,141757,901790,Popular Question,NULL,NULL,0,NULL,NULL 29038,169727,977421,NULL,NULL,NULL,0,NULL,NULL 29039,276404,1260656,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29040,38526,89761,Good Answer Popular Question Famous Question Famous Question Notable Question Notable Question Good Question Popular Question Popular Question Notable Question Popular Question Good Answer Yearling Famous Question Nice Question Famous Question Popular Question Nice Answer Notable Question Famous Question Famous Question Self-Learner Notable Question Good Question Notable Question Notable Question Famous Question Good Question Famous Question Popular Question Great Question Notable Question Good Answer Popular Question Guru Popular Question Notable Question Nice Question Great Question Popular Question Nice Question Yearling Popular Question Famous Question Famous Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Good Answer Guru Popular Question Notable Question Yearling Great Answer Notable Question Notable Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 29041,911115,173728,Popular Question Yearling Notable Question Notable Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 29042,160391,125121,Yearling Famous Question,NULL,NULL,0,NULL,NULL 29043,2221990,125121,Yearling Famous Question,NULL,NULL,0,NULL,NULL 29044,76733,181228,Nice Answer Notable Question Guru Nice Answer Popular Question Yearling Nice Answer Great Answer Nice Question Good Question Announcer Quorum Popular Question Nice Answer Necromancer Yearling Nice Answer Nice Question Nice Answer Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 29045,722944,408923,NULL,NULL,NULL,0,NULL,NULL 29046,1038643,573778,Quorum Nice Answer Yearling Popular Question Good Question Good Question Caucus Famous Question Yearling Necromancer Civic Duty Notable Question Famous Question Notable Question Nice Question Famous Question Good Question Yearling Pundit Caucus Popular Question Popular Question,NULL,pre codeframe files lt lapply sys frames function ofile frame files lt Filter Negate is null frame files PATH lt dirname frame files length frame files code prepDon ask me how it works though because ve forgotten This worked for me in windows in linux but then it failed when called it from crontab SAD pTry codegit mergetool code ppIt opens GUI that steps you through each conflict and you get to choose how to merge Sometimes it requires bit of hand editing afterwards but usually it enough by itself It is much better than doing the whole thing by hand certainly ppAs per comment ppThe command doesn necessarily open GUI unless you install one Running codegit mergetool code for me resulted in codevimdiff code being used You can install one of the following tools to use it instead codemeld code codeopendiff code codekdiff3 code codetkdiff code codexxdiff code codetortoisemerge code codegvimdiff code codediffuse code codeecmerge code codep4merge code codearaxis code codevimdiff code codeemerge code ppBelow is the sample procedure to use codevimdiff code for resolve merge conflicts Based on href http www rosipov com blog use vimdiff as git mergetool fromHistor rel noreferrer this link pp strongStep strong Run following commands in your terminal ppre codegit config merge tool vimdiffgit config merge conflictstyle diff3git config mergetool prompt false code prepThis will set vimdiff as the default merge tool pp strongStep strong Run following command in terminal ppre codegit mergetool code prep strongStep strong You will see vimdiff display in following format ppre code LOCAL BASE REMOTE MERGED code prepThese views are pblockquote pLOCAL this is file from the current branch pBASE common ancestor how file looked before both changes pREMOTE file you are merging into your branch pMERGED merge result this is what gets saved in the repo blockquotepYou can navigate among these views using codectrl code You can directly reach MERGED view using codectrl code followed by codej code ppMore info about vimdiff navigation href https stackoverflow com questions 4556184 vim move window left right here and href https stackoverflow com questions 27151456 how do jump to the next prev diff in git difftool here pp strongStep strong You could edit the MERGED view the following way ppIf you want to get changes from REMOTE ppre code diffg RE code prepIf you want to get changes from BASE ppre code diffg BA code prepIf you want to get changes from LOCAL ppre code diffg LO code prep strongStep strong Save Exit Commit and Clean up pp code wqa code save and exit from vi pp codegit commit message code pp codegit clean code Remove extra files orig created by diff tool IMO This answer could be improved by adding detail about setting the tools https git scm com book en v2 Customizing Git Git Configuration External Merge and Diff Tools and if you describe what happens if you start using the wrong gui and need to switch does that ruin the merge,0,NULL,NULL 29047,2192773,1033898,NULL,NULL,NULL,0,NULL,NULL 29048,4203848,711326,NULL,NULL,NULL,0,NULL,NULL 29049,90352,1434992,NULL,NULL,NULL,0,NULL,NULL 29050,629219,523672,NULL,NULL,NULL,0,NULL,NULL 29051,419092,320493,Editor Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29052,340759,27314,Notable Question Good Answer Nice Answer Famous Question Great Answer Guru Popular Question Nice Answer Popular Question Yearling Nice Answer Enlightened Good Answer Popular Question Nice Question Famous Question Popular Question Popular Question Yearling Great Question Good Answer Nice Answer Famous Question Popular Question Nice Answer Notable Question Guru Yearling Favorite Question Nice Question,NULL,NULL,0,NULL,NULL 29053,127285,285986,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 29054,257366,304690,Necromancer Good Question Yearling Revival Popular Question Notable Question Revival Popular Question Caucus Civic Duty Yearling Caucus Custodian Custodian Good Answer Nice Answer Revival Caucus Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 29055,686806,950471,NULL,NULL,NULL,0,NULL,NULL 29056,51372,1053286,NULL,NULL,NULL,0,NULL,NULL 29057,34328,153968,Yearling Popular Question,NULL,NULL,0,NULL,NULL 29058,559295,1484771,Famous Question Notable Question Tumbleweed Popular Question Popular Question Caucus Yearling Caucus Constituent Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29059,800722,1144154,NULL,NULL,NULL,0,NULL,NULL 29060,421873,664365,NULL,NULL,NULL,0,NULL,NULL 29061,185901,408947,Popular Question Favorite Question Great Question Yearling Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 29062,99361,683986,Yearling,NULL,NULL,0,NULL,NULL 29063,843531,1190956,Yearling Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29064,18421,425989,Popular Question Not a Robot Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29065,134893,447719,NULL,NULL,NULL,0,NULL,NULL 29066,210118,189355,NULL,NULL,h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre What happens with simple actions do you need to create sagas for them too h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre thanks for your answer It would be great to see this as blog post indeed,0,NULL,NULL 29067,210127,189355,NULL,NULL,h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre What happens with simple actions do you need to create sagas for them too h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre thanks for your answer It would be great to see this as blog post indeed,0,NULL,NULL 29068,980037,209536,Tumbleweed Notable Question Yearling Nice Question Famous Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 29069,1745966,209536,Tumbleweed Notable Question Yearling Nice Question Famous Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 29070,392385,765206,NULL,NULL,NULL,0,NULL,NULL 29071,75930,1272245,NULL,NULL,NULL,0,NULL,NULL 29072,343573,1263044,NULL,NULL,NULL,0,NULL,NULL 29073,430897,571030,Guru Informed Autobiographer Yearling Caucus Constituent Investor Custodian Custodian Caucus Constituent Yearling Yearling Organizer Excavator Yearling Great Answer,NULL,NULL,0,NULL,NULL 29074,308388,352837,Nice Answer Popular Question Nice Question Yearling Great Answer Nice Question Nice Answer Nice Answer Guru Nice Answer Yearling Nice Answer Popular Question Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 29075,1553871,829981,NULL,NULL,NULL,0,NULL,NULL 29076,9138,446634,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29077,10784940,892947,NULL,NULL,NULL,0,NULL,NULL 29078,779757,892947,NULL,NULL,NULL,0,NULL,NULL 29079,7243,27028,NULL,NULL,NULL,0,NULL,NULL 29080,59426,98605,Notable Question Good Question,NULL,pI using the following regular expression for online remote repositories pblockquote code git ssh http git git code blockquotep href https www debuggex com H4kRw1G0YPyBFjfm rel noreferrer View on Debuggex pp img src https www debuggex com H4kRw1G0YPyBFjfm png alt Regular expression visualization agree about Debuggex Unfortunately group in the above expression doesn cope with users other than git,0,NULL,NULL 29081,53970,1279186,Notable Question,NULL,NULL,0,NULL,NULL 29082,861230,969251,Yearling Necromancer Popular Question Notable Question Nice Question Popular Question Notable Question Nice Question Yearling Notable Question Famous Question Good Question Notable Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 29083,1090724,650160,NULL,NULL,NULL,0,NULL,NULL 29084,52496,1194341,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29085,1030126,1187018,Student,NULL,NULL,0,NULL,NULL 29086,822210,379425,Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 29087,9145,915005,Enthusiast,NULL,NULL,0,NULL,NULL 29088,261674,1504554,NULL,NULL,NULL,0,NULL,NULL 29089,1510632,682766,NULL,NULL,NULL,0,NULL,NULL 29090,156972,929772,Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 29091,131345,288457,Notable Question Yearling Caucus Yearling Notable Question Announcer Census Yearling Custodian Notable Question Popular Question Electorate Popular Question,NULL,NULL,0,NULL,NULL 29092,8935,928095,Tumbleweed Editor Scholar,NULL,NULL,0,NULL,NULL 29093,158552,979587,Notable Question,NULL,NULL,0,NULL,NULL 29094,987012,1316366,NULL,NULL,NULL,0,NULL,NULL 29095,125883,778673,NULL,NULL,NULL,0,NULL,NULL 29096,473066,194998,Editor Supporter Custodian,NULL,NULL,0,NULL,NULL 29097,1386785,336929,Nice Question Popular Question Taxonomist Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Great Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Revival Popular Question Notable Question Yearling Good Question Great Question Custodian Socratic Popular Question Announcer,NULL,h2Bitwise OR operator h2pA bitwise or operator can be used to truncate floating point figures and it works for positives as well as negatives ppre codefunction float2int value return value code prepResults ppre codefloat2int 3float2int 3float2int 3float2int code preh2Performance comparison h2pI ve created href http jsperf com float to int conversion comparison rel noreferrer JSPerf test that compares performance between pulli codeMath floor val code lili codeval code supbitwise strongOR strong sup lili code val code supbitwise strongNOT strong sup lili codeparseInt val code li ulpthat only works with positive numbers In this case you re safe to use bitwise operations well as codeMath floor code function ppBut if you need your code to strongwork with positives as well as negatives strong then bitwise operation is the fastest OR being the preferred one href http jsperf com truncating decimals rel noreferrer This other JSPerf test compares the same where it pretty obvious that because of the additional sign checking strongMath is now the slowest strong of the four ph2Note h2pAs stated in comments BITWISE operators operate on signed 32bit integers therefore large numbers will be converted example ppre code1234567890 gt 123456789012345678901 gt 539222987 code pre Thanks for the complete answer with testing However even if bitwise or runs hair faster than Math floor think the math function is less cryptic even to seasoned JavaScript programmers so would suggest using Math floor pI needed to do it without the interpolation that putImageData causes so did it by scaling the image data into new resized ImageData object can think of any other time ve thought that using nested for loops was good idea ppre codefunction scaleImageData imageData scale var scaled createImageData imageData width scale imageData height scale for var row row lt imageData height row for var col col lt imageData width col var sourcePixel imageData data row imageData width col imageData data row imageData width col imageData data row imageData width col imageData data row imageData width col for var lt scale var destRow row scale for var lt scale var destCol col scale for var lt scaled data destRow scaled width destCol sourcePixel return scaled code prepI hope that at least one other programmer can copy and paste this into their editor while muttering There but for the grace of god go There now an imageSmoothingEnabled https developer mozilla org en US docs Web API CanvasRenderingContext2D imageSmoothingEnabled property that can be set to false in order to achieve nearest neighbour interpolation on scaled context,0,NULL,NULL 29098,290169,5056,Notable Question Notable Question Notable Question Notable Question Good Question Popular Question Notable Question Nice Question Popular Question Good Answer Famous Question Good Question Nice Question Popular Question Nice Question Good Question Nice Answer Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Favorite Question Popular Question Good Question Popular Question Popular Question Nice Question Favorite Question Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Notable Question Famous Question Famous Question Notable Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Great Question Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Famous Question Nice Question Famous Question Nice Question Notable Question Good Answer Notable Question Notable Question Great Question Notable Question Notable Question Popular Question Good Question Notable Question Good Question Good Question Nice Question Yearling Nice Answer Nice Answer Good Question Guru Nice Question Famous Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Nice Answer Popular Question Popular Question Great Question Nice Question Socratic Great Answer Famous Question Notable Question Popular Question Nice Question Necromancer Notable Question Nice Question Famous Question Notable Question Notable Question Nice Question Notable Question Good Question Nice Question Nice Question Notable Question Popular Question Notable Question Stellar Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Good Question Famous Question Notable Question Notable Question Notable Question Popular Question Famous Question Notable Question Good Question Good Question Notable Question Notable Question Famous Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Good Question Nice Question Nice Question Yearling Necromancer Notable Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Necromancer Notable Question Nice Question Notable Question Good Question Nice Answer Famous Question Notable Question Good Question Popular Question c# Nice Question Popular Question Famous Question Popular Question Announcer Famous Question Census Popular Question Great Answer Notable Question Nice Answer Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Good Question Popular Question Notable Question Good Question Good Question Popular Question Famous Question Popular Question Nice Question Yearling Nice Question Famous Question Nice Question Popular Question Notable Question Booster Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,How do get the path of the assembly the code is in net reflection pIs there way to get the path for the assembly in which the current code resides do not want the path of the calling assembly just the one containing the code ppBasically my unit test needs to read some xml test files which are located relative to the dll want the path to always resolve correctly regardless of whether the testing dll is run from TestDriven NET the MbUnit GUI or something else pp strongEdit strong People seem to be misunderstanding what asking ppMy test library is located in say pblockquote pC projects myapplication daotests bin Debug daotests dll blockquotepand would like to get this path pblockquote pC projects myapplication daotests bin Debug blockquotepThe three suggestions so far fail me when run from the MbUnit Gui pulli codeEnvironment CurrentDirectory codegives emc Program Files MbUnit em lili codeSystem Reflection Assembly GetAssembly typeof DaoTests Location codegives emC Documents andSettings george LocalSettings Temp DaoTests dll em lili codeSystem Reflection Assembly GetExecutingAssembly Location codegives the same as the previous li ul no it wouldn because that not what this question was about in fact when it was asked nuget didn exist feel free to start new question and ping me in there but can tell you right now that its impossible in most cases For most projects the nuget directory is packages next to the sln file BUT when you compile and distribute things there is no sln file and no packages directory During compilation things that are needed but not everything is copied into the bin directory Your best bet is to use postbuild script to copy the file you want How to add commands to VisualStudio console visual studio powershell console pEntity Framework and Nuget both do this They add powershell commandlets that can be launched from the visual studio package manager console pp img src https content screencast com users togakangaroo folders Jing media 5d6e3387 47b9 4401 a10f ded8854a3281 2015 01 06 1515 png alt Comands in the Visual Studio Console ppIt would be really great if could write some project centric utilities that could be committed to my source control and be available for all developers from that console ppHow do do this ppNote that not looking for 3rd party solution eg StudioShell and that aware that can just write normal powershell scripts to do many things interested specifically in how to write functions that are first class citizens in the Visual Studio package manager console like codeGet Package code and codeUpdate Database code See the accepted answer That what ended up doing for my PackageManager Drop Db package https github com togakangaroo Drop Db blob master tools init ps1 It has to be done via nuget though no way to do it in the project itself afaik Programmatically navigate using react router reactjs react router pWith codereact router code can use the codeLink code element to create links that are natively handled by react router ppI see internally it calls codethis context transitionTo code ppI want to do navigation but not from link from dropdown selection for example How can do this in code What is codethis context code ppI saw the codeNavigation code mixin but can do this without mixins keep in mind that this question straddles major release of react router major release of React AND major release of javascript Programmatically navigate using react router reactjs react router pWith codereact router code can use the codeLink code element to create links that are natively handled by react router ppI see internally it calls codethis context transitionTo code ppI want to do navigation but not from link from dropdown selection for example How can do this in code What is codethis context code ppI saw the codeNavigation code mixin but can do this without mixins As of v4 it really could not be simpler plus react router is not part of react but there party component please don leave comments like this you can imagine the insanity that stackoverflow would become if people started doing that on every question,0,NULL,NULL 29099,61383,239603,NULL,NULL,NULL,0,NULL,NULL 29100,1530703,1058571,NULL,NULL,NULL,0,NULL,NULL 29101,47541,379403,NULL,NULL,NULL,0,NULL,NULL 29102,413014,157943,Yearling Nice Answer Yearling Yearling Revival Yearling Caucus Revival Revival Enlightened Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 29103,282498,812848,NULL,NULL,NULL,0,NULL,NULL 29104,214195,63493,NULL,NULL,NULL,0,NULL,NULL 29105,1177267,774184,NULL,NULL,NULL,0,NULL,NULL 29106,311399,774184,NULL,NULL,NULL,0,NULL,NULL 29107,984830,774184,NULL,NULL,NULL,0,NULL,NULL 29108,1611329,963081,NULL,NULL,NULL,0,NULL,NULL 29109,72673,232947,Self-Learner Yearling Popular Question Notable Question Civic Duty Yearling Nice Answer Caucus Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29110,90462,666333,NULL,NULL,NULL,0,NULL,NULL 29111,523174,648375,NULL,NULL,NULL,0,NULL,NULL 29112,524650,1176662,NULL,NULL,NULL,0,NULL,NULL 29113,140509,48968,Critic Scholar Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 29114,1344801,1442972,Informed,NULL,NULL,0,NULL,NULL 29115,85372,1377297,NULL,NULL,NULL,0,NULL,NULL 29116,4462791,1377297,NULL,NULL,NULL,0,NULL,NULL 29117,228203,435350,NULL,NULL,NULL,0,NULL,NULL 29118,234681,1430159,NULL,NULL,NULL,0,NULL,NULL 29119,666945,1051696,Popular Question,NULL,NULL,0,NULL,NULL 29120,950298,1246320,NULL,NULL,NULL,0,NULL,NULL 29121,35586,462157,Yearling Yearling,NULL,NULL,0,NULL,NULL 29122,84790,1211023,Informed Announcer,NULL,NULL,0,NULL,NULL 29123,372284,559838,NULL,NULL,NULL,0,NULL,NULL 29124,14567,13356,Notable Question Popular Question Nice Question Good Question Good Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Good Question Census Famous Question Good Answer Notable Question Popular Question Famous Question Yearling Necromancer Nice Answer Great Answer Famous Question Nice Question Inquisitive Notable Question Good Question Yearling Popular Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 29125,410174,617533,NULL,NULL,NULL,0,NULL,NULL 29126,363316,1052798,NULL,NULL,NULL,0,NULL,NULL 29127,659209,1327311,NULL,NULL,NULL,0,NULL,NULL 29128,914,16645,Famous Question Notable Question Notable Question Revival Yearling Nice Answer Enlightened Good Answer Famous Question Nice Answer Census Favorite Question Notable Question Yearling Great Question Good Answer Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 29129,2110333,1235833,NULL,NULL,NULL,0,NULL,NULL 29130,43539,287255,Yearling,NULL,NULL,0,NULL,NULL 29131,101874,625525,Informed Autobiographer,NULL,NULL,0,NULL,NULL 29132,176653,219853,Nice Answer,NULL,NULL,0,NULL,NULL 29133,1504461,1308474,NULL,NULL,NULL,0,NULL,NULL 29134,1083362,321984,Yearling Enthusiast Guru Yearling Popular Question Necromancer Yearling Great Answer Notable Question,NULL,Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul compositingFilter and backgroundFilters are nil and empty for both the CAMetalLayer and its superlayer Setting framebufferOnly NO on the CAMetalLayer has no effect Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul That was good idea It does not composite correctly and shows the same symptoms Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul …and it does composite correctly when using layer hosting view with non opaque layer whose contents are NSImage with transparent triangle Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul 2015 imac imac pro and 2016 macbook pro all give the same result Time for radar Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul Apple responded and said that should have used premultiplied alpha and the proper fragment function would be return float4 01 01 for red Taking that approach with yellow still shows funny blending This image has layer with backgroundColor on top and MTKView with on the bottom https imgur com jiv5qAs Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul think ve got it now It also has to be converted to linear color space by the fragment function after premultiplying alpha,1,Transparent MTKView not blending properly with windows behind it macos cocoa metal pI have trivial macOS app that has an MTKView it is just an MTKView inside window The fragment shader always does ppre codereturn float4 01 code prepThat red with alpha ppThe CAMetalLayer belonging to the MTKView is non opaque as is the window ppre code mtkView layer opaque NO mtkView window opaque NO mtkView window backgroundColor NSColor clearColor mtkView window hasShadow NO code prepWhen put this window over another app window would expect the other app pixels to show through unchanged Instead see that black pixels turn red and white pixels are mostly unchanged ppIn the screenshot below the triangle has color float4 01 and there half black half white image in another window showing through it pp href https stack imgur com 1pvsn png rel nofollow noreferrer img src https stack imgur com 1pvsn png alt Screenshot showing the problem ppI would have expected black ever so slightly tinged with red not bright red in the left half of the triangle ppIf my fragment shader is changed to do this ppre codereturn float4 001 code prepThen it is completely transparent pixels from other windows show through completely unchanged This makes me think hitting not well tested code path in the window server but hoping there something can do to make it work ph2What tried h2ulliChanging the appearance of the NSThemeFrame had no effect liliTurning on presentsWithTransaction no effect liliThe GPU debugger confirms the drawable has the expected value li ul,NULL 29135,20828,844996,Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29136,431579,62534,Yearling Notable Question Notable Question Yearling Custodian Notable Question Nice Question Great Question Yearling Custodian Necromancer Guru Famous Question,NULL,NULL,0,NULL,NULL 29137,128575,494456,NULL,NULL,NULL,0,NULL,NULL 29138,204867,687704,Yearling Guru Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 29139,420997,238033,NULL,NULL,NULL,0,NULL,NULL 29140,477928,1347634,Supporter,NULL,NULL,0,NULL,NULL 29141,213555,785483,NULL,NULL,NULL,0,NULL,NULL 29142,164953,376294,NULL,NULL,NULL,0,NULL,NULL 29143,55713,1104493,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 29144,7898746,1104493,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 29145,9092100,1104493,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 29146,142617,1298277,Yearling Necromancer,NULL,NULL,0,NULL,NULL 29147,470706,175804,Yearling Nice Answer Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Revival Caucus Popular Question Nice Question Popular Question Nice Answer Yearling Notable Question Good Question Good Answer Famous Question Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 29148,792024,175804,Yearling Nice Answer Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Revival Caucus Popular Question Nice Question Popular Question Nice Answer Yearling Notable Question Good Question Good Answer Famous Question Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 29149,914804,1180337,NULL,NULL,NULL,0,NULL,NULL 29150,86543,552565,NULL,NULL,NULL,0,NULL,NULL 29151,406442,637874,Yearling Custodian Yearling php Necromancer Nice Answer Caucus Constituent Popular Question Good Answer Famous Question Custodian Cleanup Yearling Caucus Constituent Good Answer Great Answer,NULL,NULL,0,NULL,NULL 29152,96083,1175307,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 29153,90640,646281,Custodian,NULL,NULL,0,NULL,NULL 29154,164850,1513798,NULL,NULL,NULL,0,NULL,NULL 29155,207532,1191653,NULL,NULL,NULL,0,NULL,NULL 29156,53945,150382,Necromancer,NULL,NULL,0,NULL,NULL 29157,129261,1284459,NULL,NULL,NULL,0,NULL,NULL 29158,64316,476015,Tumbleweed Critic,NULL,NULL,0,NULL,NULL 29159,401707,1304042,NULL,NULL,NULL,0,NULL,NULL 29160,1124297,1560738,Nice Answer Yearling Supporter Yearling Good Answer Necromancer Yearling Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 29161,641833,877785,NULL,NULL,NULL,0,NULL,NULL 29162,483047,914124,NULL,NULL,NULL,0,NULL,NULL 29163,166239,366457,NULL,NULL,NULL,0,NULL,NULL 29164,7071237,668103,NULL,NULL,NULL,0,NULL,NULL 29165,179473,293195,Notable Question Nice Answer Yearling Popular Question Notable Question Famous Question Nice Question Notable Question Popular Question Nice Question Custodian Famous Question Necromancer Notable Question Notable Question Necromancer Notable Question Yearling Nice Question Good Question Notable Question Caucus Constituent Documentation User Announcer Nice Answer Popular Question Notable Question Yearling Notable Question Favorite Question Explainer Popular Question Nice Question Popular Question Popular Question Custodian Popular Question Announcer Nice Question Socratic Popular Question Revival Famous Question Popular Question,NULL,strongHere is my solution with python script strong ppI took the hint from in his comment href http fgiesen wordpress com 2009 12 13 decoding morton codes rel nofollow noreferrer Fabian “ryg” Giesen brRead the long comment below We need to keep track which bits need to go how far brThen in each step we select these bits and move them and apply bitmask see comment last lines to mask them pp strongBit mask builder output of python script see below for 10bit number and interleaving bits for 32 bit strong ppre codeBit Distances 10 12 14 16 18 Shifting bits by for bits idx Shifting bits by for bits idx Shifting bits by for bits idx Shifting bits by for bits idx Shifting bits by 16 for bits idx BitPositions Current Mask 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1111Which bits to shift 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 hex 0x300Shifted part lt lt 16 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 0000 0000 hex 0x3000000NonShifted Part 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1111 1111 hex 0xffBitmask is now 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 1111 1111 hex 0x30000ff this is bitMask shifted nonshifted Current Mask 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 1111 1111Which bits to shift 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1111 0000 hex 0xf0Shifted part lt lt 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1111 0000 0000 0000 hex 0xf000NonShifted Part 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 0000 1111 hex 0x300000fBitmask is now 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 1111 0000 0000 1111 hex 0x300f00f this is bitMask shifted nonshifted Current Mask 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 1111 0000 0000 1111Which bits to shift 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1100 0000 0000 1100 hex 0xc00cShifted part lt lt 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1100 0000 0000 1100 0000 hex 0xc00c0NonShifted Part 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 0000 0011 0000 0000 0011 hex 0x3003003Bitmask is now 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 1100 0011 0000 1100 0011 hex 0x30c30c3 this is bitMask shifted nonshifted Current Mask 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 1100 0011 0000 1100 0011Which bits to shift 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 0000 1000 0010 0000 1000 0010 hex 0x2082082Shifted part lt lt 0000 0000 0000 0000 0000 0000 0000 0000 0000 1000 0010 0000 1000 0010 0000 1000 hex 0x8208208NonShifted Part 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0100 0001 0000 0100 0001 hex 0x1041041Bitmask is now 0000 0000 0000 0000 0000 0000 0000 0000 0000 1001 0010 0100 1001 0010 0100 1001 hex 0x9249249 this is bitMask shifted nonshifted amp 0x3ffx lt lt 16 amp 0x30000ffx lt lt amp 0x300f00fx lt lt amp 0x30c30c3x lt lt amp 0x9249249 code prep strongSo for 10bit number and interleaving bits for 32 bit you need to do the following strong ppre class lang python prettyprint override codex amp 0x3ffx lt lt 16 amp 0x30000ff lt lt lt THIS IS THE MASK for shifting 16 for bit and lt lt amp 0x300f00fx lt lt amp 0x30c30c3x lt lt amp 0x9249249 code prep strongAnd for 21bit number and interleaving bits for 64bit you need to do the following strong ppre class lang python prettyprint override codex amp 0x1fffffx lt lt 32 amp 0x1f00000000ffffx lt lt 16 amp 0x1f0000ff0000ffx lt lt amp 0x100f00f00f00f00fx lt lt amp 0x10c30c30c30c30c3x lt lt amp 0x1249249249249249 code prep strongAnd for 42bit number and interleaving bits for 128bit you need to do the following in case you need it strong ppre class lang python prettyprint override codex amp 0x3ffffffffffx lt lt 64 amp 0x3ff0000000000000000ffffffffLx lt lt 32 amp 0x3ff00000000ffff00000000ffffLx lt lt 16 amp 0x30000ff0000ff0000ff0000ff0000ffLx lt lt amp 0x300f00f00f00f00f00f00f00f00f00fLx lt lt amp 0x30c30c30c30c30c30c30c30c30c30c3Lx lt lt amp 0x9249249249249249249249249249249L code prep strongPython Script to produce and check the Interleaving Patterns strong ppre class lang python prettyprint override codeimport random def prettyBinString 32 steps sep emptyChar bin zeros len if zeros lt zeros steps len steps else steps steps print zeros zeros print for in range zeros print if steps and sep emptyChar for in range len if steps and and zeros or steps and zeros sep return def binStr return prettyBinString 64 def computeBitMaskPatternAndCode numberOfBits numberOfEmptyBits bitDistances numberOfEmptyBits for in range numberOfBits print Bit Distances str bitDistances bitDistancesB bin dist for dist in bitDistances print Bit Distances binary str bitDistancesB moveBits Liste mit allen Bits welche aufsteigend um 16 32 64 128 stellen geschoben werden müssen maxLength len max bitDistancesB key len abort False for in range maxLength moveBits append for idx bits in enumerate bitDistancesB if not len bits lt if bits len bits moveBits append idx for in range len moveBits print Shifting bits by str for bits idx str moveBits bitPositions list range numberOfBits print BitPositions str bitPositions maskOld lt lt numberOfBits codeString amp hex maskOld for idx in range len moveBits if len moveBits idx shifted for bitIdxToMove in moveBits idx shifted lt lt bitPositions bitIdxToMove bitPositions bitIdxToMove idx keep track where the actual bit stands might get moved several times Get the non shifted part nonshifted shifted amp maskOld print nCurrent Mask binStr maskOld print Which bits to shift binStr shifted hex hex shifted shifted shifted lt lt idx print Shifted part lt lt str idx binStr shifted hex hex shifted print NonShifted Part binStr nonshifted hex hex nonshifted maskNew shifted nonshifted print Bitmask is now binStr maskNew hex hex maskNew this is bitMask shifted nonshifted print Code lt lt str idx amp hex maskNew codeString lt lt str idx amp hex maskNew maskOld maskNew return codeStringnumberOfBits 10 numberOfEmptyBits codeString computeBitMaskPatternAndCode numberOfBits numberOfEmptyBits print codeString def partitionBy2 locals exec codeString None return def checkPartition print Check partition for binStr part partitionBy2 print Partition is binStr part make the pattern manualy partC int for bitIdx in range numberOfBits partC partC amp lt lt bitIdx lt lt numberOfEmptyBits bitIdx print Partition check is binStr partC if partC part return True else return FalsecheckError False for in range 20 random getrandbits numberOfBits if checkPartition False checkError True breakif not checkError print CHECK PARTITION SUCCESSFUL else print checkPartition has ERROR code pre Hm think somebody should write this and add it to this postI think we should make gist out of it,0,NULL,NULL 29166,236725,269486,NULL,NULL,NULL,0,NULL,NULL 29167,1571418,818312,NULL,NULL,NULL,0,NULL,NULL 29168,89367,1141509,Teacher,NULL,NULL,0,NULL,NULL 29169,922018,1105793,Famous Question Yearling Nice Answer Famous Question Yearling Famous Question Nice Answer Notable Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 29170,259567,45247,Necromancer,NULL,NULL,0,NULL,NULL 29171,3707398,45247,Necromancer,NULL,NULL,0,NULL,NULL 29172,892470,1332478,Scholar Popular Question,NULL,NULL,0,NULL,NULL 29173,1522613,686090,Popular Question,NULL,NULL,0,NULL,NULL 29174,237098,251248,Yearling Custodian Custodian Nice Answer Necromancer Yearling Popular Question Mortarboard Stellar Question Nice Answer Nice Answer Yearling linux-kernel Good Answer Popular Question Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 29175,158086,759765,NULL,NULL,NULL,0,NULL,NULL 29176,34857,385042,Yearling Good Answer,NULL,,0,, 29177,8270862,546011,NULL,NULL,NULL,0,NULL,NULL 29178,314327,715324,NULL,NULL,NULL,0,NULL,NULL 29179,891394,1149731,Nice Answer Nice Question Benefactor Caucus Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Promoter Self-Learner Custodian Notable Question Notable Question Notable Question Notable Question Yearling Yearling Yearling Yearling Famous Question Critic Notable Question,NULL,NULL,0,NULL,NULL 29180,929757,952241,NULL,NULL,NULL,0,NULL,NULL 29181,657,340290,Good Answer Nice Answer Yearling Good Answer Famous Question Nice Answer Populist Good Answer Popular Question Nice Answer Nice Answer Nice Question Popular Question Yearling Announcer Popular Question Good Question Popular Question Yearling Famous Question Notable Question Announcer Necromancer,NULL,NULL,0,NULL,NULL 29182,2406079,1086659,NULL,NULL,NULL,0,NULL,NULL 29183,499026,1130796,NULL,NULL,NULL,0,NULL,NULL 29184,45208,755319,Notable Question Popular Question Yearling Popular Question Revival Great Question Popular Question Nice Answer Yearling Nice Question Notable Question Caucus Constituent Popular Question Popular Question Nice Answer Caucus Constituent Popular Question Popular Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 29185,62935,751628,Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Yearling Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 29186,284661,1043711,NULL,NULL,NULL,0,NULL,NULL 29187,44713,422023,NULL,NULL,NULL,0,NULL,NULL 29188,37228,51133,Yearling Good Question Great Question Notable Question Nice Answer Caucus Yearling Popular Question Guru Good Question Famous Question Good Question Caucus Nice Answer Enlightened Yearling Caucus Popular Question Favorite Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 29189,1550609,1219240,NULL,NULL,NULL,0,NULL,NULL 29190,27193,283504,NULL,NULL,NULL,0,NULL,NULL 29191,62420,625335,NULL,NULL,NULL,0,NULL,NULL 29192,225109,423868,Necromancer Necromancer Necromancer android Popular Question Good Answer Nice Answer Great Question Yearling Nice Answer Enlightened Popular Question Popular Question Revival Good Answer Famous Question java Good Answer Popular Question Necromancer Necromancer Caucus Notable Question Yearling Great Answer Guru Announcer Nice Answer Nice Answer Nice Answer Nice Question Nice Answer Necromancer Guru Necromancer Nice Answer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 29193,388595,1103855,Informed Supporter Teacher Commentator Autobiographer Editor Caucus Yearling Yearling Excavator Documentation User Caucus Critic,NULL,NULL,0,NULL,NULL 29194,520758,1360445,Nice Answer,NULL,NULL,0,NULL,NULL 29195,472275,603129,Popular Question,NULL,NULL,0,NULL,NULL 29196,1041095,373138,Yearling Good Question Popular Question Announcer Famous Question Yearling Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 29197,62570,198669,NULL,NULL,NULL,0,NULL,NULL 29198,228861,6756,Notable Question Yearling Famous Question Self-Learner Popular Question Yearling Notable Question Good Question Nice Answer Popular Question Yearling Custodian Good Question,NULL,NULL,0,NULL,NULL 29199,572173,256685,NULL,NULL,NULL,0,NULL,NULL 29200,394487,575759,NULL,NULL,NULL,0,NULL,NULL 29201,306236,1080052,NULL,NULL,NULL,0,NULL,NULL 29202,596627,712560,Popular Question Famous Question Popular Question Notable Question Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 29203,89455,1280261,NULL,NULL,NULL,0,NULL,NULL 29204,2958133,719695,NULL,NULL,NULL,0,NULL,NULL 29205,173642,719695,NULL,NULL,NULL,0,NULL,NULL 29206,2406834,719695,NULL,NULL,NULL,0,NULL,NULL 29207,222385,375416,Announcer,NULL,NULL,0,NULL,NULL 29208,13534,995766,Revival,NULL,NULL,0,NULL,NULL 29209,50300,503277,NULL,NULL,NULL,0,NULL,NULL 29210,20563,228753,Yearling,NULL,NULL,0,NULL,NULL 29211,209314,636186,NULL,NULL,NULL,0,NULL,NULL 29212,85297,1337732,Teacher Editor Student Scholar Supporter,NULL,NULL,0,NULL,NULL 29213,235064,472466,Editor,NULL,NULL,0,NULL,NULL 29214,131793,842248,NULL,NULL,NULL,0,NULL,NULL 29215,559566,833110,Critic Yearling Yearling Autobiographer,NULL,NULL,0,NULL,NULL 29216,515599,1262310,NULL,NULL,NULL,0,NULL,NULL 29217,14476,1020799,NULL,NULL,NULL,0,NULL,NULL 29218,317038,152544,Favorite Question Yearling Custodian Caucus Constituent Informed Self-Learner Yearling Popular Question Caucus Yearling Custodian Custodian Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 29219,303988,1400257,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 29220,873976,302956,Yearling,NULL,NULL,0,NULL,NULL 29221,14664,1085610,NULL,NULL,NULL,0,NULL,NULL 29222,32808,181801,Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 29223,222874,244355,Yearling Good Question Good Question Famous Question Famous Question Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 29224,603554,1075985,NULL,NULL,NULL,0,NULL,NULL 29225,345697,434481,NULL,NULL,NULL,0,NULL,NULL 29226,193326,628873,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29227,1509712,1113916,NULL,NULL,NULL,0,NULL,NULL 29228,140812,1254925,NULL,NULL,NULL,0,NULL,NULL 29229,46030,177646,Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling javascript Nice Answer Enlightened Yearling Good Answer Autobiographer Good Answer Scholar Revival Nice Answer Enlightened Yearling Announcer,NULL,NULL,0,NULL,NULL 29230,48465,1073310,Nice Question Good Answer Civic Duty Nice Answer Caucus Yearling python Guru Yearling Custodian Popular Question Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 29231,444501,418543,Caucus Popular Question Custodian Custodian Census Notable Question Caucus Organizer Citizen Patrol,NULL,NULL,0,NULL,NULL 29232,337017,1094340,NULL,NULL,NULL,0,NULL,NULL 29233,478493,1292108,Census,NULL,NULL,0,NULL,NULL 29234,153921,1083506,NULL,NULL,NULL,0,NULL,NULL 29235,631344,289494,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29236,219346,16084,Good Answer Yearling Custodian Custodian Yearling Documentation User Disciplined Yearling,NULL,NULL,0,NULL,NULL 29237,282042,440140,Yearling Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 29238,16270,7751,Critic,NULL,NULL,0,NULL,NULL 29239,194838,765758,NULL,NULL,NULL,0,NULL,NULL 29240,480235,1124935,Yearling Yearling,NULL,NULL,0,NULL,NULL 29241,239287,1370271,NULL,NULL,NULL,0,NULL,NULL 29242,121279,676033,NULL,NULL,NULL,0,NULL,NULL 29243,504964,1489580,Editor Student Documentation User,NULL,NULL,0,NULL,NULL 29244,156362,297858,NULL,NULL,NULL,0,NULL,NULL 29245,824844,1238782,NULL,NULL,NULL,0,NULL,NULL 29246,255563,424429,NULL,NULL,NULL,0,NULL,NULL 29247,883095,1169948,Yearling Nice Answer Necromancer Yearling Nice Question Curious Announcer Popular Question Revival,NULL,NULL,0,NULL,NULL 29248,717783,501280,Popular Question,NULL,NULL,0,NULL,NULL 29249,1686373,850228,NULL,NULL,NULL,0,NULL,NULL 29250,1378532,1385232,NULL,NULL,NULL,0,NULL,NULL 29251,18011,1501941,NULL,NULL,NULL,0,NULL,NULL 29252,2078781,1246646,Necromancer Critic Yearling Nice Answer Nice Answer Student Excavator Yearling,NULL,NULL,0,NULL,NULL 29253,310053,912709,NULL,NULL,NULL,0,NULL,NULL 29254,23916,145077,Good Question Nice Question Yearling Famous Question Popular Question Notable Question Famous Question Famous Question Notable Question Nice Question Notable Question Famous Question Popular Question Good Question Notable Question Notable Question Notable Question Good Question Yearling Notable Question Notable Question Famous Question Famous Question Popular Question Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 29255,356297,930045,NULL,NULL,NULL,0,NULL,NULL 29256,49472,955404,NULL,NULL,NULL,0,NULL,NULL 29257,10012626,955404,NULL,NULL,NULL,0,NULL,NULL 29258,336947,1083633,NULL,NULL,NULL,0,NULL,NULL 29259,289983,551001,Informed,NULL,NULL,0,NULL,NULL 29260,259450,1417704,NULL,NULL,NULL,0,NULL,NULL 29261,256353,1091661,Tumbleweed,NULL,NULL,0,NULL,NULL 29262,255310,696792,Popular Question Notable Question Yearling Famous Question Famous Question Notable Question Yearling Good Answer Famous Question Notable Question Nice Answer Notable Question Famous Question Yearling Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 29263,1179291,1363886,Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 29264,276752,551853,NULL,NULL,NULL,0,NULL,NULL 29265,453560,603097,Popular Question,NULL,NULL,0,NULL,NULL 29266,896341,535094,Notable Question,NULL,NULL,0,NULL,NULL 29267,155034,555808,NULL,NULL,NULL,0,NULL,NULL 29268,2881390,400625,Famous Question,NULL,NULL,0,NULL,NULL 29269,80613,79497,Custodian Custodian Yearling Caucus Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 29270,1189421,138680,Famous Question Announcer Notable Question Notable Question Notable Question Nice Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29271,336147,1017510,NULL,NULL,NULL,0,NULL,NULL 29272,39005,622528,NULL,NULL,NULL,0,NULL,NULL 29273,236594,523164,NULL,NULL,NULL,0,NULL,NULL 29274,2980770,1091536,Custodian Custodian Tumbleweed Student Caucus Yearling Civic Duty Announcer Yearling Caucus,NULL,NULL,0,NULL,NULL 29275,205097,525489,NULL,NULL,NULL,0,NULL,NULL 29276,14923,244087,Notable Question Caucus Notable Question Notable Question Popular Question Notable Question Custodian Yearling Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 29277,128119,868164,Tumbleweed,NULL,NULL,0,NULL,NULL 29278,752678,261082,Popular Question Popular Question Famous Question Caucus Necromancer Famous Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29279,1020355,1512138,Student Autobiographer Popular Question Supporter Editor Tumbleweed Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 29280,34464,446831,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29281,73140,579108,NULL,NULL,NULL,0,NULL,NULL 29282,147899,849221,NULL,NULL,NULL,0,NULL,NULL 29283,385133,844821,NULL,NULL,NULL,0,NULL,NULL 29284,5834486,844821,NULL,NULL,NULL,0,NULL,NULL 29285,871632,1043100,NULL,NULL,NULL,0,NULL,NULL 29286,21912,198458,NULL,NULL,NULL,0,NULL,NULL 29287,221348,766862,NULL,NULL,NULL,0,NULL,NULL 29288,320233,1263281,NULL,NULL,NULL,0,NULL,NULL 29289,24858,870369,NULL,NULL,NULL,0,NULL,NULL 29290,27411,324326,Teacher Nice Answer Yearling Good Answer Yearling Yearling Guru Yearling Yearling Great Answer Caucus,NULL,NULL,0,NULL,NULL 29291,271588,507637,NULL,NULL,NULL,0,NULL,NULL 29292,29180,1257510,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 29293,106316,629224,Citizen Patrol Scholar Informed Critic Tumbleweed Popular Question Autobiographer Commentator Yearling,NULL,NULL,0,NULL,NULL 29294,202528,647991,Popular Question Popular Question Promoter Famous Question Nice Answer Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Announcer Notable Question Popular Question Nice Question Announcer Notable Question Yearling Popular Question Good Question Announcer Notable Question Booster Popular Question Nice Question Good Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Question Favorite Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Answer Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Famous Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Announcer Popular Question Famous Question Good Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Great Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Announcer Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Favorite Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Famous Question Booster Popular Question Good Question Yearling Popular Question Famous Question Notable Question Socratic Popular Question Famous Question Nice Question Notable Question Popular Question Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Good Question Notable Question Famous Question Notable Question Nice Question Famous Question Favorite Question Popular Question Notable Question Popular Question Popular Question Favorite Question Popular Question Good Question Good Question Nice Question Notable Question Popular Question Announcer Popular Question Popular Question Notable Question Nice Question Notable Question,NULL,pRevisiting this with codeListField code type you can use But it makes few of assumptions such as the fact that you re not storing complex types in your list For this reason used codeast literal eval code to enforce that only simple built in types can be stored as members in codeListField code ppre codefrom django db import modelsimport astclass ListField models TextField metaclass models SubfieldBase description Stores python list def init self args kwargs super ListField self init args kwargs def to python self value if not value value if isinstance value list return value return ast literal eval value def get prep value self value if value is None return value return unicode value def value to string self obj value self get val from obj obj return self get db prep value value class Dummy models Model mylist ListField code prepTaking it for spin ppre code gt gt gt from foo models import Dummy ListField gt gt gt Dummy gt gt gt mylist gt gt gt mylist gt gt gt mylist gt gt gt ListField gt gt gt get prep value numbers code prepThere you have it that list is stored in the database as unicode string and when pulled back out it is run through href http docs python org library ast html ast literal eval rel noreferrer codeast literal eval code ppPreviously suggested this solution from this blog post about href http justcramer com 2008 08 08 custom fields in django rel noreferrer Custom Fields in Django pblockquote pAn alternative to the CommaSeparatedIntegerField it allows you to store any separated values You can also optionally specify token parameter blockquotepre codefrom django db import modelsclass SeparatedValuesField models TextField metaclass models SubfieldBase def init self args kwargs self token kwargs pop token super SeparatedValuesField self init args kwargs def to python self value if not value return if isinstance value list return value return value split self token def get db prep value self value if not value return assert isinstance value list or isinstance value tuple return self token join unicode for in value def value to string self obj value self get val from obj obj return self get db prep value value code pre What about using get prep value instead of get db prep value to avoid the connection issue,0,NULL,NULL 29295,1659496,638653,Popular Question,NULL,NULL,0,NULL,NULL 29296,1845326,638653,Popular Question,NULL,NULL,0,NULL,NULL 29297,119297,638036,NULL,NULL,NULL,0,NULL,NULL 29298,679119,1222923,Yearling Necromancer Necromancer Nice Answer Yearling Nice Answer Critic Yearling Favorite Question,NULL,NULL,0,NULL,NULL 29299,159028,1501610,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29300,1504046,1123813,NULL,NULL,NULL,0,NULL,NULL 29301,49011,532318,NULL,NULL,NULL,0,NULL,NULL 29302,853929,679514,NULL,NULL,NULL,0,NULL,NULL 29303,2283217,1312850,Scholar Student Supporter Teacher Commentator Popular Question,NULL,NULL,0,NULL,NULL 29304,1113454,1422197,Citizen Patrol Cleanup Necromancer Good Question Yearling Nice Question Popular Question Revival Nice Question Popular Question Popular Question Famous Question Necromancer Nice Answer Announcer Notable Question Necromancer Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Announcer Yearling Notable Question Notable Question Popular Question Nice Answer Popular Question Caucus Notable Question Popular Question Good Question Notable Question Popular Question Nice Question Census Peer Pressure Notable Question Popular Question Nice Question Investor Popular Question Popular Question Nice Question Yearling Nice Question Notable Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,How do test the version of libstdc not GCC at compile time gcc clang libstdc pI am trying to test the version of codelibstdc code because href https stackoverflow com 12665408 codestd regex code is implemented but largely broken in the versions of codelibstdc code distributed with GCC before version ppNote that pulli pI need to test the version of strong codelibstdc code not GCC strong because Clang also supports using codelibstdc code as the standard library This rules out href https stackoverflow com 21398203 111426 testing the code GNUC PATCHLEVEL code code GNUC code and code GNUC MINOR code macros lili pThe code GLIBCXX code macro strongis date not version number strong and href https stackoverflow com questions 21622561 how to detect the libstdc version in clang comment41077776 21622871 does not increase monotonically For example GCC ships with code define GLIBCXX 20150426 code which is newer than the release date of GCC li ulpIs there any portable way to test the version of codelibstdc code that does not depend on using GCC my compiler Did you find solution was thinking about testing the date of all versions for which libstdc is broken but cannot find table of dates for each version anywhere How to suppress GCC variadic macro argument warning for zero arguments for particular macro definition within source file gcc macros pI want to suppress GCC variadic macro argument warning for zero arguments produced for example by ppre code for illustration purposes only int foo int return define FOO foo VA ARGS FOO warning ISO 11 requires at least one argument for the in variadic macro code prepfor particular macro definition within source file when using GCC ppIn clang this is done as follows ppre code large file pragma clang diagnostic push pragma clang diagnostic ignored Wgnu zero variadic macro arguments define FOO foo VA ARGS pragma clang diagnostic pop large file not necessary on the same fileFOO doesnt trigger the warning code prepIn gcc it looks like code pedantic code is magical kind of warning type so the following just doesn work ppre code large file pragma GCC diagnostic push pragma GCC diagnostic ignored Wpedantic define FOO foo VA ARGS pragma GCC diagnostic pop large file code prepJust to be clear the warning should be enabled in the whole program except in this particular snippet of code This is about fine grained control Disabling the warning in GCC for the whole program can be achieved by just not passing code pedantic code to the compiler that question asks for the name of the warning flag that enables disables this warning This question asks for how exactly use that warning flag to disable this warning in macro definition within source file your answer fits better here How to suppress GCC variadic macro argument warning for zero arguments for particular macro definition within source file gcc macros pI want to suppress GCC variadic macro argument warning for zero arguments produced for example by ppre code for illustration purposes only int foo int return define FOO foo VA ARGS FOO warning ISO 11 requires at least one argument for the in variadic macro code prepfor particular macro definition within source file when using GCC ppIn clang this is done as follows ppre code large file pragma clang diagnostic push pragma clang diagnostic ignored Wgnu zero variadic macro arguments define FOO foo VA ARGS pragma clang diagnostic pop large file not necessary on the same fileFOO doesnt trigger the warning code prepIn gcc it looks like code pedantic code is magical kind of warning type so the following just doesn work ppre code large file pragma GCC diagnostic push pragma GCC diagnostic ignored Wpedantic define FOO foo VA ARGS pragma GCC diagnostic pop large file code prepJust to be clear the warning should be enabled in the whole program except in this particular snippet of code This is about fine grained control Disabling the warning in GCC for the whole program can be achieved by just not passing code pedantic code to the compiler could do that but then basically don make much sense to me anymore feels like changing the question too much For somebody interested in turning of the warning for the whole program just knowing the flag is enough This one is bit more about fine grained control since Wpedantic looks more magical than other warnings in GCC but not in clang,1,How to suppress GCC variadic macro argument warning for zero arguments for particular macro definition within source file gcc macros pI want to suppress GCC variadic macro argument warning for zero arguments produced for example by ppre code for illustration purposes only int foo int return define FOO foo VA ARGS FOO warning ISO 11 requires at least one argument for the in variadic macro code prepfor particular macro definition within source file when using GCC ppIn clang this is done as follows ppre code large file pragma clang diagnostic push pragma clang diagnostic ignored Wgnu zero variadic macro arguments define FOO foo VA ARGS pragma clang diagnostic pop large file not necessary on the same fileFOO doesnt trigger the warning code prepIn gcc it looks like code pedantic code is magical kind of warning type so the following just doesn work ppre code large file pragma GCC diagnostic push pragma GCC diagnostic ignored Wpedantic define FOO foo VA ARGS pragma GCC diagnostic pop large file code prepJust to be clear the warning should be enabled in the whole program except in this particular snippet of code This is about fine grained control Disabling the warning in GCC for the whole program can be achieved by just not passing code pedantic code to the compiler,NULL 29305,428429,225589,Popular Question Excavator Caucus Constituent Yearling Nice Answer Custodian Nice Answer Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 29306,844702,520275,Necromancer Student Critic Yearling Citizen Patrol Commentator Necromancer Scholar Civic Duty Suffrage Enthusiast Yearling Caucus Constituent Nice Answer Custodian Custodian Custodian Yearling Custodian Good Answer Revival Yearling Caucus Constituent Explainer Yearling Fanatic Documentation User Nice Answer Yearling Tenacious Yearling Organizer Census Electorate Custodian Caucus Constituent Tag Editor Tumbleweed Promoter Proofreader Unsung Hero Necromancer Yearling,NULL,NULL,0,NULL,NULL 29307,94847,587518,Caucus Civic Duty,NULL,NULL,0,NULL,NULL 29308,47755,323751,Notable Question Civic Duty Yearling Proofreader Custodian Custodian Custodian Custodian Vox Populi Reviewer Good Answer Steward Notable Question Necromancer Caucus Constituent Necromancer Census Electorate Nice Answer Yearling Caucus Constituent Documentation User Good Answer Custodian Caucus Constituent Yearling Necromancer Custodian Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 29309,124829,54299,NULL,NULL,NULL,0,NULL,NULL 29310,69856,341054,Critic Editor Caucus Nice Answer,NULL,NULL,0,NULL,NULL 29311,307844,1219423,Custodian Tumbleweed Student,NULL,NULL,0,NULL,NULL 29312,195689,374591,NULL,NULL,NULL,0,NULL,NULL 29313,54134,378469,Yearling Nice Question Famous Question Yearling Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Yearling Popular Question Yearling Organizer,NULL,NULL,0,NULL,NULL 29314,113058,411522,Announcer Notable Question Excavator,NULL,NULL,0,NULL,NULL 29315,141858,708026,NULL,NULL,NULL,0,NULL,NULL 29316,1383720,1219971,Necromancer Citizen Patrol Custodian Necromancer Nice Answer Yearling Nice Answer Necromancer Revival Yearling Announcer Nice Answer Necromancer Nice Answer Yearling Necromancer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 29317,961037,311446,Editor,NULL,NULL,0,NULL,NULL 29318,26307,1229407,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29319,146053,20178,Nice Question Favorite Question Popular Question Nice Answer Famous Question Yearling Good Answer Notable Question Good Question Nice Answer Famous Question Popular Question Great Question Yearling Census Electorate Tumbleweed Self-Learner Popular Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 29320,84872,561059,NULL,NULL,NULL,0,NULL,NULL 29321,1775758,1002760,Revival Notable Question Popular Question Excavator Popular Question Notable Question Notable Question Yearling Notable Question Nice Answer Enlightened Popular Question Popular Question Caucus Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 29322,243783,1002760,Revival Notable Question Popular Question Excavator Popular Question Notable Question Notable Question Yearling Notable Question Nice Answer Enlightened Popular Question Popular Question Caucus Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 29323,1389337,1516012,Yearling Good Answer,NULL,NULL,0,NULL,NULL 29324,165115,1079182,Popular Question,NULL,NULL,0,NULL,NULL 29325,1170309,1317902,NULL,NULL,NULL,0,NULL,NULL 29326,1158823,449336,NULL,NULL,NULL,0,NULL,NULL 29327,1157053,875222,Notable Question,NULL,NULL,0,NULL,NULL 29328,470455,1455957,Nice Answer Enlightened Notable Question Yearling Famous Question Citizen Patrol Famous Question,NULL,NULL,0,NULL,NULL 29329,500598,966215,Yearling Notable Question,NULL,NULL,0,NULL,NULL 29330,239725,931173,NULL,NULL,NULL,0,NULL,NULL 29331,214111,759747,Supporter Notable Question,NULL,NULL,0,NULL,NULL 29332,822354,319433,Popular Question Yearling,NULL,NULL,0,NULL,NULL 29333,15291,972160,NULL,NULL,NULL,0,NULL,NULL 29334,183084,1431121,NULL,NULL,NULL,0,NULL,NULL 29335,1163962,988891,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29336,68460,389062,Notable Question,NULL,NULL,0,NULL,NULL 29337,920251,1488477,Editor,NULL,NULL,0,NULL,NULL 29338,174917,1135703,Yearling Nice Question Popular Question Good Question Popular Question Caucus Constituent Guru Yearling javascript Popular Question Popular Question Notable Question Popular Question Caucus Constituent Popular Question Good Question Good Question Yearling Custodian Custodian html Caucus Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 29339,596364,744181,NULL,NULL,NULL,0,NULL,NULL 29340,113812,676756,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29341,114001,676756,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29342,1284,422589,Yearling Yearling,NULL,NULL,0,NULL,NULL 29343,883817,466754,Good Question Popular Question Yearling Caucus Constituent Popular Question Caucus Constituent Popular Question Popular Question Caucus Yearling Constituent Notable Question,NULL,NULL,0,NULL,NULL 29344,1310214,799102,NULL,NULL,NULL,0,NULL,NULL 29345,311398,520229,Necromancer Nice Answer Popular Question Caucus Constituent Yearling Famous Question Caucus Constituent Civic Duty Nice Answer Enlightened Yearling Nice Answer Caucus Constituent Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 29346,181193,408643,Guru Enlightened Famous Question Popular Question Popular Question Good Answer Good Question Guru Nice Question Yearling Popular Question Nice Question Notable Question Famous Question Necromancer Notable Question Popular Question Nice Answer Announcer Yearling Popular Question Documentation User Good Question Nice Answer jquery Nice Answer Announcer Taxonomist Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 29347,193701,504833,NULL,NULL,NULL,0,NULL,NULL 29348,2438940,666305,NULL,NULL,NULL,0,NULL,NULL 29349,680864,1220469,NULL,NULL,NULL,0,NULL,NULL 29350,238992,918413,NULL,NULL,NULL,0,NULL,NULL 29351,889173,506721,Nice Answer Enlightened Nice Answer Pundit Popular Question Nice Answer Enlightened Nice Question Yearling Popular Question Nice Answer Announcer Guru Nice Answer Enlightened Documentation User Yearling Good Answer Nice Answer Popular Question Census Yearling,NULL,NULL,0,NULL,NULL 29352,60418,496825,Guru Guru Great Answer Good Answer Yearling Popular Question Yearling Good Answer .net Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29353,201634,1501838,NULL,NULL,NULL,0,NULL,NULL 29354,168952,168033,NULL,NULL,NULL,0,NULL,NULL 29355,78100,614661,Popular Question,NULL,NULL,0,NULL,NULL 29356,267819,255196,Yearling Favorite Question Good Question Yearling Nice Question Announcer Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29357,299929,109367,Good Question Famous Question Yearling Notable Question Famous Question Popular Question Good Question Yearling Caucus Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 29358,176720,1039452,NULL,NULL,NULL,0,NULL,NULL 29359,223082,545532,NULL,NULL,NULL,0,NULL,NULL 29360,4843,270472,Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29361,273601,452814,NULL,NULL,NULL,0,NULL,NULL 29362,174467,1321679,NULL,NULL,NULL,0,NULL,NULL 29363,1327473,332041,NULL,NULL,NULL,0,NULL,NULL 29364,112262,477127,Famous Question Nice Answer php Nice Question Nice Answer Popular Question Nice Answer Notable Question Nice Answer Guru Popular Question Nice Answer Yearling Good Question Popular Question Nice Question Nice Answer Enlightened Popular Question Nice Answer Nice Question Famous Question Famous Question Popular Question Popular Question Nice Answer Necromancer Famous Question Notable Question Excavator Popular Question Nice Answer Enlightened Popular Question Famous Question Necromancer Good Question Good Question Popular Question Custodian Documentation User Yearling Taxonomist Notable Question Nice Question Popular Question Famous Question Famous Question Popular Question Nice Answer Necromancer Notable Question html Nice Answer Popular Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 29365,3217566,1257620,NULL,NULL,NULL,0,NULL,NULL 29366,203201,1084754,Good Answer Excavator Necromancer Yearling Tumbleweed Announcer Notable Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29367,1701265,1001749,NULL,NULL,NULL,0,NULL,NULL 29368,301348,1001749,NULL,NULL,NULL,0,NULL,NULL 29369,833954,1001749,NULL,NULL,NULL,0,NULL,NULL 29370,207703,1291482,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 29371,3184169,763568,NULL,NULL,NULL,0,NULL,NULL 29372,628502,345722,Nice Answer Popular Question Yearling Popular Question Popular Question Yearling Nice Answer Excavator,NULL,NULL,0,NULL,NULL 29373,131802,401538,NULL,NULL,NULL,0,NULL,NULL 29374,8526696,195388,NULL,NULL,NULL,0,NULL,NULL 29375,49983,292045,Nice Answer Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 29376,190047,124518,Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 29377,1883557,1332072,NULL,NULL,NULL,0,NULL,NULL 29378,436819,1086981,NULL,NULL,NULL,0,NULL,NULL 29379,15506,376855,Student Popular Question,NULL,NULL,0,NULL,NULL 29380,300079,266618,NULL,NULL,NULL,0,NULL,NULL 29381,172294,540292,Autobiographer,NULL,NULL,0,NULL,NULL 29382,370105,1381662,Popular Question Popular Question Popular Question Revival Popular Question Notable Question Nice Question Custodian Custodian Excavator Yearling Explainer Revival Census Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29383,1004952,4242,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29384,97464,1030433,NULL,NULL,NULL,0,NULL,NULL 29385,752794,1424900,NULL,NULL,NULL,0,NULL,NULL 29386,28063,110271,Necromancer Announcer Yearling Necromancer Nice Answer Caucus Necromancer Notable Question Self-Learner Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 29387,209129,1001064,NULL,NULL,NULL,0,NULL,NULL 29388,1214744,1353837,Yearling Famous Question Popular Question Nice Answer Yearling Enlightened Nice Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 29389,5083030,1353837,Yearling Famous Question Popular Question Nice Answer Yearling Enlightened Nice Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 29390,183874,1145191,NULL,NULL,NULL,0,NULL,NULL 29391,427980,1113438,NULL,NULL,NULL,0,NULL,NULL 29392,1069922,1113438,NULL,NULL,NULL,0,NULL,NULL 29393,35578,816199,NULL,NULL,NULL,0,NULL,NULL 29394,43089,3196,Famous Question,NULL,NULL,0,NULL,NULL 29395,119326,3196,Famous Question,NULL,NULL,0,NULL,NULL 29396,102907,1455424,NULL,NULL,NULL,0,NULL,NULL 29397,80524,1354187,Teacher Supporter,NULL,NULL,0,NULL,NULL 29398,444548,1361918,Good Answer Yearling Famous Question Yearling Popular Question Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 29399,234035,91444,Notable Question Good Answer Good Answer Nice Answer Yearling Notable Question Citizen Patrol Caucus Constituent Yearling Explainer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 29400,241872,109546,NULL,NULL,NULL,0,NULL,NULL 29401,3436424,467145,NULL,NULL,NULL,0,NULL,NULL 29402,208345,1360609,NULL,NULL,NULL,0,NULL,NULL 29403,3369822,1360609,NULL,NULL,NULL,0,NULL,NULL 29404,66080,634141,NULL,NULL,NULL,0,NULL,NULL 29405,29344,740516,Autobiographer,NULL,NULL,0,NULL,NULL 29406,189954,1073773,Necromancer Notable Question Yearling Nice Answer Popular Question Notable Question Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 29407,19202,964692,Critic Popular Question Caucus,NULL,NULL,0,NULL,NULL 29408,502569,1144700,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29409,7446121,1363597,NULL,NULL,NULL,0,NULL,NULL 29410,104121,1363597,NULL,NULL,NULL,0,NULL,NULL 29411,79275,1065194,NULL,NULL,NULL,0,NULL,NULL 29412,159445,979963,NULL,NULL,NULL,0,NULL,NULL 29413,171626,228480,Yearling,NULL,NULL,0,NULL,NULL 29414,357976,876180,Self-Learner Popular Question Popular Question Popular Question Popular Question Custodian Critic Curious Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 29415,8680427,876180,Self-Learner Popular Question Popular Question Popular Question Popular Question Custodian Critic Curious Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 29416,8752,598733,Custodian Tumbleweed Revival,NULL,NULL,0,NULL,NULL 29417,824083,1243580,NULL,NULL,NULL,0,NULL,NULL 29418,426516,1041954,NULL,NULL,NULL,0,NULL,NULL 29419,408490,675112,NULL,NULL,NULL,0,NULL,NULL 29420,3327198,723635,NULL,NULL,NULL,0,NULL,NULL 29421,42877,178533,NULL,NULL,NULL,0,NULL,NULL 29422,104833,704089,NULL,NULL,NULL,0,NULL,NULL 29423,380880,387185,Famous Question Notable Question Notable Question Popular Question Famous Question Nice Question Necromancer Yearling Popular Question Popular Question Nice Answer Famous Question Notable Question Good Question Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 29424,610784,974647,Nice Answer,NULL,NULL,0,NULL,NULL 29425,573747,1499886,Informed Scholar,NULL,NULL,0,NULL,NULL 29426,241891,458157,Announcer Necromancer Custodian Announcer Notable Question Civic Duty Yearling Caucus Constituent Popular Question Necromancer Custodian Revival Caucus Constituent Announcer Announcer Curious Yearling Announcer Announcer Census Announcer Caucus Constituent Popular Question Nice Answer java Announcer Necromancer Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 29427,4470219,994664,NULL,NULL,NULL,0,NULL,NULL 29428,324281,1081917,NULL,NULL,NULL,0,NULL,NULL 29429,177465,766301,Nice Answer Excavator Informed Documentation User Revival Student,NULL,NULL,0,NULL,NULL 29430,183996,765644,Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 29431,62576,466742,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 29432,356677,653385,NULL,NULL,NULL,0,NULL,NULL 29433,388776,540618,Critic,NULL,NULL,0,NULL,NULL 29434,427475,193712,NULL,NULL,NULL,0,NULL,NULL 29435,8389,51681,Nice Question Yearling Necromancer Notable Question Nice Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29436,1658012,993768,NULL,NULL,NULL,0,NULL,NULL 29437,17476,227770,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29438,433872,147770,NULL,NULL,NULL,0,NULL,NULL 29439,292826,582173,NULL,NULL,NULL,0,NULL,NULL 29440,440688,328961,NULL,NULL,NULL,0,NULL,NULL 29441,781234,775696,NULL,NULL,NULL,0,NULL,NULL 29442,648650,1289454,Nice Answer Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 29443,53811,581852,NULL,NULL,NULL,0,NULL,NULL 29444,686430,12174,NULL,NULL,NULL,0,NULL,NULL 29445,133092,782361,Custodian Nice Answer Enlightened Yearling Informed Scholar Popular Question Caucus Constituent Census,NULL,NULL,0,NULL,NULL 29446,1040768,1188088,NULL,NULL,NULL,0,NULL,NULL 29447,2076840,252489,Enlightened Enthusiast Nice Question Announcer Notable Question Necromancer Announcer Yearling Booster,NULL,NULL,0,NULL,NULL 29448,516759,847535,Teacher Supporter Autobiographer,NULL,NULL,0,NULL,NULL 29449,107504,208946,Good Question Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 29450,2235609,208946,Good Question Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 29451,20812,159983,NULL,NULL,NULL,0,NULL,NULL 29452,1159390,818772,NULL,NULL,NULL,0,NULL,NULL 29453,1350310,1161026,NULL,NULL,NULL,0,NULL,NULL 29454,11277,244473,Yearling Good Answer Populist Good Answer Nice Answer Yearling Yearling Caucus Constituent Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 29455,2422831,151314,Yearling Guru,NULL,NULL,0,NULL,NULL 29456,302585,151314,Yearling Guru,NULL,NULL,0,NULL,NULL 29457,190244,230856,NULL,NULL,NULL,0,NULL,NULL 29458,922991,1320847,Popular Question Notable Question Notable Question Notable Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 29459,185552,527070,Tumbleweed Scholar Teacher,NULL,NULL,0,NULL,NULL 29460,448554,715633,Good Answer Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 29461,6919,595196,Scholar,NULL,NULL,0,NULL,NULL 29462,333642,92798,Nice Answer,NULL,NULL,0,NULL,NULL 29463,922925,1034763,NULL,NULL,NULL,0,NULL,NULL 29464,658778,1251574,NULL,NULL,NULL,0,NULL,NULL 29465,146475,366742,NULL,NULL,NULL,0,NULL,NULL 29466,1566841,154980,Great Answer Good Answer Nice Answer qt linux Notable Question Nice Answer Yearling x86-64 Guru Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Yearling Popular Question Nice Answer Enlightened Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 29467,1324531,853617,NULL,NULL,NULL,0,NULL,NULL 29468,533460,853617,NULL,NULL,NULL,0,NULL,NULL 29469,120428,1490138,NULL,NULL,NULL,0,NULL,NULL 29470,1041286,850424,NULL,NULL,NULL,0,NULL,NULL 29471,17985,434127,NULL,NULL,NULL,0,NULL,NULL 29472,242021,930107,Caucus Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29473,1362240,171758,Populist Yearling Good Answer Custodian Guru Yearling Curious Nice Question Guru Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 29474,169827,664379,NULL,NULL,NULL,0,NULL,NULL 29475,49607,855169,NULL,NULL,NULL,0,NULL,NULL 29476,104100,223656,Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Good Answer Notable Question Notable Question Nice Answer Notable Question Yearling Popular Question Notable Question Nice Question Necromancer Good Question Popular Question Yearling Famous Question Popular Question c# Necromancer,NULL,NULL,0,NULL,NULL 29477,134318,209192,NULL,NULL,NULL,0,NULL,NULL 29478,947001,858444,Famous Question,NULL,NULL,0,NULL,NULL 29479,502780,755646,NULL,NULL,NULL,0,NULL,NULL 29480,1051036,1421824,Informed,NULL,NULL,0,NULL,NULL 29481,89217,250517,Yearling Good Answer Notable Question Popular Question Revival Nice Answer Enlightened Yearling Necromancer Guru Announcer Announcer Announcer Fanatic Yearling Announcer,NULL,NULL,0,NULL,NULL 29482,108583,691010,NULL,NULL,NULL,0,NULL,NULL 29483,1191408,1029503,NULL,NULL,NULL,0,NULL,NULL 29484,195902,989602,NULL,NULL,NULL,0,NULL,NULL 29485,581803,353442,Yearling Notable Question Notable Question Yearling Nice Question Popular Question Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 29486,2201,525656,Organizer Tenacious Announcer Explainer Citizen Patrol Custodian Custodian Custodian Nice Answer Yearling Peer Pressure Excavator Popular Question Tag Editor Revival Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 29487,129202,1242862,NULL,NULL,NULL,0,NULL,NULL 29488,106235,497129,Yearling,NULL,NULL,0,NULL,NULL 29489,6992556,497129,Yearling,NULL,NULL,0,NULL,NULL 29490,1692232,1507137,Popular Question Yearling Notable Question Notable Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 29491,2512801,951231,NULL,NULL,NULL,0,NULL,NULL 29492,263622,951231,NULL,NULL,NULL,0,NULL,NULL 29493,397958,313954,NULL,NULL,NULL,0,NULL,NULL 29494,792040,262406,Peer Pressure Tumbleweed Student Yearling Necromancer Caucus Self-Learner Revival Yearling Nice Answer Necromancer Necromancer Popular Question Popular Question Nice Answer Yearling Documentation User Custodian Notable Question Nice Answer Caucus Yearling Nice Question Excavator Custodian,NULL,NULL,0,NULL,NULL 29495,222886,17919,Popular Question Nice Question Good Answer Nice Question Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 29496,84338,820635,NULL,NULL,NULL,0,NULL,NULL 29497,105692,245753,NULL,NULL,NULL,0,NULL,NULL 29498,244737,763313,Notable Question Critic Notable Question Famous Question,NULL,NULL,0,NULL,NULL 29499,53290,123862,Good Answer Nice Answer Custodian Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 29500,54696,943840,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29501,6212,259167,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Citizen Patrol Critic Yearling grails Announcer Nice Answer Enlightened Documentation User Revival Revival Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29502,164971,528549,Yearling Commentator Critic,NULL,NULL,0,NULL,NULL 29503,373286,1185514,NULL,NULL,NULL,0,NULL,NULL 29504,145964,538071,NULL,NULL,NULL,0,NULL,NULL 29505,532000,5889,Yearling Nice Answer Enlightened c# Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 29506,27825,584653,Popular Question Yearling Popular Question Custodian Yearling Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 29507,17119,65107,Famous Question Yearling Notable Question Popular Question Notable Question Nice Question Notable Question Good Answer Nice Answer Enlightened Yearling .net Nice Answer Famous Question Good Answer Favorite Question Guru Nice Answer Enlightened Yearling Notable Question Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29508,1379419,74483,Popular Question,NULL,NULL,0,NULL,NULL 29509,279292,183317,Necromancer Commentator Yearling Nice Question Caucus Nice Answer,NULL,NULL,0,NULL,NULL 29510,63700,706154,NULL,NULL,NULL,0,NULL,NULL 29511,60330,260409,Popular Question Census,NULL,NULL,0,NULL,NULL 29512,161435,89281,Yearling,NULL,NULL,0,NULL,NULL 29513,85157,1067652,NULL,NULL,NULL,0,NULL,NULL 29514,213803,1064492,Student Popular Question Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 29515,1419931,318688,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 29516,617796,493685,Teacher,NULL,NULL,0,NULL,NULL 29517,309574,83810,Good Question,NULL,NULL,0,NULL,NULL 29518,642108,623757,NULL,NULL,NULL,0,NULL,NULL 29519,278653,1377536,NULL,NULL,NULL,0,NULL,NULL 29520,330923,336880,NULL,NULL,NULL,0,NULL,NULL 29521,141894,1039643,NULL,NULL,NULL,0,NULL,NULL 29522,415783,243516,Yearling Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29523,1353775,651483,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29524,12599,806666,Popular Question Popular Question Notable Question Editor,NULL,NULL,0,NULL,NULL 29525,1402090,233300,NULL,NULL,NULL,0,NULL,NULL 29526,247004,600170,Yearling Great Answer Notable Question Notable Question Nice Question Notable Question Nice Answer Yearling Good Answer Nice Question Notable Question Yearling Revival Popular Question Good Question,NULL,NULL,0,NULL,NULL 29527,140302,413097,NULL,NULL,NULL,0,NULL,NULL 29528,598729,1021711,NULL,NULL,NULL,0,NULL,NULL 29529,5521203,303601,Popular Question,NULL,NULL,0,NULL,NULL 29530,2204864,583749,NULL,NULL,NULL,0,NULL,NULL 29531,76035,158841,Nice Answer,NULL,NULL,0,NULL,NULL 29532,112855,1232404,Popular Question,NULL,NULL,0,NULL,NULL 29533,54834,146620,Revival Yearling Necromancer Nice Answer Custodian Custodian Yearling Necromancer Popular Question Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,1,NULL,Convert image from image YCbCr to image RGBA go pI am loading jpeg from the disk and would like to do some RGBA operations on it ppHowever since the jpeg is not RGBA get an error when try to use it as such ppre codethumbnail err jpeg Decode imageAsReader return thumbnail image RGBA code prepyeileds the error ppre codeinterface conversion image Image is image YCbCr not image RGBA code prepIs there an easy way to convert the image to RGBA once have loaded it in memory Other operations are in RGBA later on so that is the color model want to use in memory pAs the comments suggest you have to create new image and draw into it codeb thumbnail Bounds image NewRGBA image Rect Dx Dy draw Draw Bounds thumbnail Min draw Src code ppYCbCr is sub sampled image so it doesn map directly to the bytes per pixel of RGBA 29534,1238972,1432013,NULL,NULL,NULL,0,NULL,NULL 29535,32733,372570,NULL,NULL,NULL,0,NULL,NULL 29536,439345,59724,Yearling Nice Answer Nice Question Yearling Notable Question Great Question Popular Question Yearling Popular Question Popular Question Custodian Yearling Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 29537,420291,243104,Yearling Nice Answer Popular Question Yearling Notable Question Nice Question Popular Question Yearling Necromancer Notable Question Great Question,NULL,NULL,0,NULL,NULL 29538,249232,736221,Student Scholar Popular Question Caucus Commentator Critic Yearling Notable Question Informed Autobiographer Yearling,NULL,NULL,0,NULL,NULL 29539,2113,450781,Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29540,63487,727442,NULL,NULL,NULL,0,NULL,NULL 29541,682940,1173913,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29542,154280,1015907,Informed,NULL,NULL,0,NULL,NULL 29543,885116,1091579,NULL,NULL,NULL,0,NULL,NULL 29544,298156,496062,Popular Question,NULL,NULL,0,NULL,NULL 29545,1652866,496062,Popular Question,NULL,NULL,0,NULL,NULL 29546,3353,15755,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29547,93197,974960,NULL,NULL,NULL,0,NULL,NULL 29548,80093,613617,Yearling Popular Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 29549,1677607,363634,NULL,NULL,NULL,0,NULL,NULL 29550,3080428,1390161,Yearling,NULL,NULL,0,NULL,NULL 29551,162103,276152,Popular Question Yearling Tag Editor Yearling Enthusiast Popular Question Announcer,NULL,NULL,0,NULL,NULL 29552,585833,376566,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29553,584298,684665,Nice Answer Yearling Good Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 29554,71876,32679,Yearling Nice Question Popular Question Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 29555,132429,1091787,Notable Question,NULL,NULL,0,NULL,NULL 29556,108772,166627,Informed Teacher,NULL,NULL,0,NULL,NULL 29557,658441,145117,Notable Question Good Question Famous Question Notable Question Good Answer Nice Question Guru Notable Question Popular Question Popular Question Notable Question Great Answer Nice Answer Enlightened Popular Question Nice Question Notable Question Good Answer Popular Question Notable Question Yearling Popular Question Notable Question Good Answer Popular Question Guru Nice Answer Enlightened Favorite Question Nice Question Notable Question Good Answer Famous Question Notable Question Popular Question Great Question Great Answer Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Nice Answer Enlightened Notable Question Notable Question Nice Question Notable Question Good Answer Nice Question Great Answer Popular Question Nice Answer Enlightened Good Question Popular Question Famous Question Notable Question Nice Question Popular Question Yearling Benefactor Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29558,392553,766970,NULL,NULL,NULL,0,NULL,NULL 29559,3040300,362413,Necromancer Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 29560,114678,362413,Necromancer Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 29561,205001,455610,Favorite Question Caucus Constituent Yearling Necromancer Nice Answer Caucus Necromancer Necromancer,NULL,NULL,0,NULL,NULL 29562,488162,1110890,NULL,NULL,NULL,0,NULL,NULL 29563,333453,11845,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29564,54278,652237,Curious Informed Yearling Nice Question Nice Answer Popular Question Necromancer Yearling Nice Answer Caucus Constituent Famous Question Caucus Yearling Custodian Revival,NULL,NULL,0,NULL,NULL 29565,496303,190648,Nice Question Curious,NULL,NULL,0,NULL,NULL 29566,50173,1566047,NULL,NULL,NULL,0,NULL,NULL 29567,1229072,884176,NULL,NULL,NULL,0,NULL,NULL 29568,124306,1121414,NULL,NULL,NULL,0,NULL,NULL 29569,451939,1105972,NULL,NULL,NULL,0,NULL,NULL 29570,283185,580683,Yearling Nice Answer Notable Question Popular Question Necromancer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 29571,257194,468361,Nice Answer Documentation User Editor Citizen Patrol Census Commentator Enthusiast Critic Caucus Constituent Fanatic,NULL,NULL,0,NULL,NULL 29572,97863,293652,Explainer Yearling Enthusiast Good Answer Informed Caucus Nice Answer Yearling Caucus Caucus Yearling Necromancer Nice Answer perl Nice Question,NULL,NULL,0,NULL,NULL 29573,482395,326899,NULL,NULL,NULL,0,NULL,NULL 29574,164810,485236,Famous Question Yearling Nice Question Notable Question Yearling Enthusiast Critic Caucus Constituent Yearling Custodian Informed Autobiographer Citizen Patrol Yearling Fanatic Custodian,NULL,NULL,0,NULL,NULL 29575,22415,1047778,Popular Question Caucus Yearling Informed Caucus,NULL,pThere are few ways pulli href http perldoc perl org perlvar html rel noreferrer code code is the currently executing script as provided by POSIX relative to the current working directory if the script is at or below the CWD liliAdditionally codecwd code codegetcwd code and codeabs path code are provided by the href http perldoc perl org Cwd html rel noreferrer codeCwd code module and tell you where the script is being run from liliThe module href http perldoc perl org FindBin html rel noreferrer codeFindBin code provides the code Bin code amp code RealBin code variables that emusually em are the path to the executing script this module also provides code Script code amp code RealScript code that are the name of the script lili href http perldoc perl org perldata html Special Literals rel noreferrer code FILE code is the actual file that the Perl interpreter deals with during compilation including its full path li ulpI ve seen the first three href http perldoc perl org perlvar html rel noreferrer code code the href http perldoc perl org Cwd html rel noreferrer codeCwd code module and the href http perldoc perl org FindBin html rel noreferrer codeFindBin code module fail under codemod perl code spectacularly producing worthless output such as code code or an empty string In such environments use href http perldoc perl org perldata html Special Literals rel noreferrer code FILE code and get the path from that using the href http perldoc perl org File Basename html rel noreferrer codeFile Basename code module ppre codeuse File Basename my dirname dirname FILE code pre So here is what worked for me putting it all together with thanks to answer the original question use Cwd abs path use File Basename my start if FILE start dirname readlink FILE else start dirname FILE my fullpath abs path start my filename basename start print fullpath filename,0,NULL,NULL 29576,167853,1312070,Supporter,NULL,NULL,0,NULL,NULL 29577,43445,461363,NULL,NULL,NULL,0,NULL,NULL 29578,7868206,461363,NULL,NULL,NULL,0,NULL,NULL 29579,333792,438481,Enthusiast Curious Notable Question,NULL,NULL,0,NULL,NULL 29580,6534630,1489761,NULL,NULL,NULL,0,NULL,NULL 29581,1037550,268344,Notable Question Good Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29582,175771,184063,NULL,NULL,NULL,0,NULL,NULL 29583,325183,503090,Student Scholar,NULL,NULL,0,NULL,NULL 29584,165985,373778,NULL,NULL,NULL,0,NULL,NULL 29585,236950,957726,NULL,NULL,NULL,0,NULL,NULL 29586,475439,75059,NULL,NULL,NULL,0,NULL,NULL 29587,209619,1194322,Yearling,NULL,NULL,0,NULL,NULL 29588,328942,1481941,Notable Question,NULL,NULL,0,NULL,NULL 29589,248258,1486188,Informed Student Tumbleweed,NULL,NULL,0,NULL,NULL 29590,1321029,404730,Popular Question Nice Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 29591,633426,342840,Nice Question Critic Famous Question Famous Question Good Question Yearling Suffrage Vox Populi Civic Duty Autobiographer Caucus Enthusiast,NULL,NULL,0,NULL,NULL 29592,305673,192093,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 29593,298233,401257,Good Question Necromancer,NULL,NULL,0,NULL,NULL 29594,570578,12719,Nice Answer Nice Answer Nice Answer Nice Answer Notable Question Yearling Great Answer Good Answer Yearling Good Answer Nice Answer Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 29595,238362,486337,NULL,NULL,NULL,0,NULL,NULL 29596,1207514,1403627,NULL,NULL,NULL,0,NULL,NULL 29597,1151836,596552,NULL,NULL,NULL,0,NULL,NULL 29598,63822,106653,Good Answer Yearling Popular Question Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 29599,198892,493614,Student Popular Question Scholar,NULL,NULL,0,NULL,NULL 29600,605650,493614,Student Popular Question Scholar,NULL,NULL,0,NULL,NULL 29601,29512,493614,Student Popular Question Scholar,NULL,NULL,0,NULL,NULL 29602,417096,850567,NULL,NULL,NULL,0,NULL,NULL 29603,535776,1308250,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 29604,16249,49849,Revival Peer Pressure Nice Answer Enlightened Good Answer Yearling Guru Guru Nice Answer Nice Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29605,154022,137034,NULL,NULL,NULL,0,NULL,NULL 29606,44568,627370,NULL,NULL,NULL,0,NULL,NULL 29607,14358,452993,Custodian Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 29608,908257,75010,NULL,NULL,NULL,0,NULL,NULL 29609,3337754,1339786,Yearling Popular Question Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 29610,216972,1339786,Yearling Popular Question Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 29611,634559,5192,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 29612,368490,38408,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29613,64868,681198,NULL,NULL,NULL,0,NULL,NULL 29614,130850,18038,Good Answer Yearling Necromancer Necromancer Custodian Necromancer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 29615,297029,869696,NULL,NULL,NULL,0,NULL,NULL 29616,1040206,553682,Census Custodian Student Yearling Popular Question,NULL,NULL,0,NULL,NULL 29617,188058,650956,NULL,NULL,NULL,0,NULL,NULL 29618,297851,25286,Popular Question Caucus Necromancer Announcer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 29619,140004,409498,Custodian Yearling Good Answer Informed Good Answer Yearling Good Answer Yearling Disciplined Custodian,NULL,NULL,0,NULL,NULL 29620,37669,912960,NULL,NULL,NULL,0,NULL,NULL 29621,34892,260793,Yearling Nice Question Documentation User Announcer Yearling,NULL,NULL,0,NULL,NULL 29622,1655738,242288,NULL,NULL,NULL,0,NULL,NULL 29623,270232,273891,NULL,NULL,NULL,0,NULL,NULL 29624,9994,733715,NULL,NULL,NULL,0,NULL,NULL 29625,301977,1486308,Necromancer Yearling Necromancer Yearling Nice Answer Scholar Popular Question Caucus Nice Answer Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 29626,64658,340127,NULL,NULL,NULL,0,NULL,NULL 29627,650454,98401,Yearling Guru Notable Question Excavator Nice Answer Guru Generalist Popular Question Yearling Nice Answer Nice Answer Good Answer Booster Nice Question Good Answer Good Answer Yearling Nice Question Famous Question Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 29628,156374,870442,Popular Question,NULL,NULL,0,NULL,NULL 29629,2681,546791,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 29630,178113,1424245,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29631,49025,890278,NULL,NULL,NULL,0,NULL,NULL 29632,144435,810735,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 29633,145024,228436,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29634,403769,400551,Student Scholar,NULL,NULL,0,NULL,NULL 29635,1351825,785667,Supporter Editor Commentator Popular Question Teacher Self-Learner Curious Notable Question,NULL,NULL,0,NULL,NULL 29636,117462,1314339,NULL,NULL,NULL,0,NULL,NULL 29637,110195,921284,NULL,NULL,NULL,0,NULL,NULL 29638,3316916,549056,Popular Question,NULL,NULL,0,NULL,NULL 29639,66772,549056,Popular Question,NULL,NULL,0,NULL,NULL 29640,2304,100135,Necromancer Yearling Necromancer Yearling Popular Question Disciplined,NULL,NULL,0,NULL,NULL 29641,2264624,298366,Necromancer Student Nice Answer,NULL,NULL,0,NULL,NULL 29642,86240,391227,Popular Question Notable Question Popular Question Famous Question Notable Question Famous Question Notable Question Notable Question Popular Question Famous Question Famous Question Great Question Yearling Notable Question Famous Question Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Yearling Favorite Question Notable Question Notable Question Famous Question Popular Question Notable Question Autobiographer Notable Question Great Question Necromancer Caucus Good Question Good Answer Nice Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question,NULL,Java File does not exists but File getAbsoluteFile exists java java pDoes anyone encountered the case when codejava io File code doesn exist but the calling codegetAbsoluteFile code method on the file instance returns file that does exist And why this happen pp href https stack imgur com NGqY9 png rel nofollow noreferrer img src https stack imgur com NGqY9 png alt enter image description here ppNote polliI am on Linux plus Oracle Java runtime with version code1 95 b00 code liliI ve passed in JVM option code Duser dir path to somewhere code when launching the tomcat instance li ol It happens in both program and the debugger watches Java File does not exists but File getAbsoluteFile exists java java pDoes anyone encountered the case when codejava io File code doesn exist but the calling codegetAbsoluteFile code method on the file instance returns file that does exist And why this happen pp href https stack imgur com NGqY9 png rel nofollow noreferrer img src https stack imgur com NGqY9 png alt enter image description here ppNote polliI am on Linux plus Oracle Java runtime with version code1 95 b00 code liliI ve passed in JVM option code Duser dir path to somewhere code when launching the tomcat instance li ol At the moment reproduce it in tomcat process will check if can verify it with minimal example when got some time For now have to workaround that https github com greenlaw110 java tool commit f36e7f0ee09d4e01c3e7515c2c5ea7ae624a59f7 to catch up the project schedule jline2 print when it should print on telnet console java telnet jline stty jline2 pI am using href https github com jline jline2 rel nofollow noreferrer JLine v2 13 in conjunction with Socket IO to create an admin console for my app which can be accessed via an ordinary telnet client However found it prints out strange symbols when it should print out line break ppre codeact app restart restart app Jact job list List jobs code prepThe correct output should be ppre codeact app restart restart appact job list List jobs code prepI traced into the code and found the following line of code that caused the trouble pp href https stack imgur com vSMp6 png rel nofollow noreferrer img src https stack imgur com vSMp6 png alt enter image description here ppAnother weird thing is when press the up arrow to get the history the console prints out code code and nothing else happens ppDoes anyone have any idea pp strongUpdate strong added relevant source code polliThe code accepting the incoming telnet connection li olp href https stack imgur com PbwWl png rel nofollow noreferrer img src https stack imgur com PbwWl png alt enter image description here pol start liThe code that creates the codeConsoleReader code and dispatches the command li olp href https stack imgur com VjThf png rel nofollow noreferrer img src https stack imgur com VjThf png alt enter image description here pp strongUpdate strong ppSorry ve disappeared for while Just come back as my project gives me breath of fresh air So here is what happened ve created codePrintWriter code and use it as workaround for the code code issue pp href https stack imgur com C8V6D png rel nofollow noreferrer img src https stack imgur com C8V6D png alt enter image description here ppHowever there are many other issues when codejline2 code is used along with telnet session polliType code lt TAB gt code displays tab instead of activate complete list However after hit enter key it gives me complete list plus an error message href https stack imgur com f7KmN png rel nofollow noreferrer img src https stack imgur com f7KmN png alt enter image description here liliType code lt UP gt code arrow displays code code hit enter key it will execute my last command However lost the command line editing li olpThe issue is still there and believe there should be way to solve it just need some guide thanks how can set the terminal type with 24 option mean which API should use Undertow XNIO thread consistently eat CPU java performance network programming undertow pI observed my application based on undertow constantly eat CPU percentage after running while pp href https stack imgur com WWflA png rel nofollow noreferrer img src https stack imgur com WWflA png alt enter image description here ppIn the end found if suspend one of the XNIO thread the CPU percentage will be released pp strongThe stack frame after suspended the thread strong pp href https stack imgur com 2eoih png rel nofollow noreferrer img src https stack imgur com 2eoih png alt enter image description here pp strongThe CPU consumption after suspended and resumed that thread strong pp href https stack imgur com iHyvB png rel nofollow noreferrer img src https stack imgur com iHyvB png alt enter image description here ppAny idea what triggered this issue pp strongUpdates strong ppThe suspended place of normal thread pp href https stack imgur com yRCRV png rel nofollow noreferrer img src https stack imgur com yRCRV png alt enter image description here ppThe suspended place of error thread pp href https stack imgur com PFvx3 png rel nofollow noreferrer img src https stack imgur com PFvx3 png alt enter image description here pp strongUpdate More findings strong ppThere are dead loop found in the logic polli pWorkerThread call codeselect code href https stack imgur com l45a2 png rel nofollow noreferrer img src https stack imgur com l45a2 png alt enter image description here lili pThread interupted href https stack imgur com ILr6o png rel nofollow noreferrer img src https stack imgur com ILr6o png alt enter image description here lili pSelected key is codenull code and it breaks out the loop href https stack imgur com dh4Gq png rel nofollow noreferrer img src https stack imgur com dh4Gq png alt enter image description here lili pIt repeats the infinit loop again href https stack imgur com BC25F png rel nofollow noreferrer img src https stack imgur com BC25F png alt enter image description here lili pAnd back to the codeselect code call href https stack imgur com RNZxn png rel nofollow noreferrer img src https stack imgur com RNZxn png alt enter image description here li ol Similar issue found on Netty https github com netty netty issues 4460 and https github com netty netty pull 2868,1,Java File does not exists but File getAbsoluteFile exists java java pDoes anyone encountered the case when codejava io File code doesn exist but the calling codegetAbsoluteFile code method on the file instance returns file that does exist And why this happen pp href https stack imgur com NGqY9 png rel nofollow noreferrer img src https stack imgur com NGqY9 png alt enter image description here ppNote polliI am on Linux plus Oracle Java runtime with version code1 95 b00 code liliI ve passed in JVM option code Duser dir path to somewhere code when launching the tomcat instance li ol Best practice to track websocket connections in Java java data structures websocket synchronized pSuppose my game server can host 1M users meaning need to keep track of 1M websocket connections what is the suitable data structure or collection for doing that And what is the strategy to handle synchronization issue polli psynchronize on the collection when adding removing iterating the collection It might hit bad performance issue lili pno synchronization It might have trouble with iterating the sockets sending out broadcast messages when new connection is added or existing connection is removed because user go offline lili puse codeCopyOnWriteArrayList code it increases the GC load when user online offline frequently li ol Undertow XNIO thread consistently eat CPU java performance network programming undertow pI observed my application based on undertow constantly eat CPU percentage after running while pp href https stack imgur com WWflA png rel nofollow noreferrer img src https stack imgur com WWflA png alt enter image description here ppIn the end found if suspend one of the XNIO thread the CPU percentage will be released pp strongThe stack frame after suspended the thread strong pp href https stack imgur com 2eoih png rel nofollow noreferrer img src https stack imgur com 2eoih png alt enter image description here pp strongThe CPU consumption after suspended and resumed that thread strong pp href https stack imgur com iHyvB png rel nofollow noreferrer img src https stack imgur com iHyvB png alt enter image description here ppAny idea what triggered this issue pp strongUpdates strong ppThe suspended place of normal thread pp href https stack imgur com yRCRV png rel nofollow noreferrer img src https stack imgur com yRCRV png alt enter image description here ppThe suspended place of error thread pp href https stack imgur com PFvx3 png rel nofollow noreferrer img src https stack imgur com PFvx3 png alt enter image description here pp strongUpdate More findings strong ppThere are dead loop found in the logic polli pWorkerThread call codeselect code href https stack imgur com l45a2 png rel nofollow noreferrer img src https stack imgur com l45a2 png alt enter image description here lili pThread interupted href https stack imgur com ILr6o png rel nofollow noreferrer img src https stack imgur com ILr6o png alt enter image description here lili pSelected key is codenull code and it breaks out the loop href https stack imgur com dh4Gq png rel nofollow noreferrer img src https stack imgur com dh4Gq png alt enter image description here lili pIt repeats the infinit loop again href https stack imgur com BC25F png rel nofollow noreferrer img src https stack imgur com BC25F png alt enter image description here lili pAnd back to the codeselect code call href https stack imgur com RNZxn png rel nofollow noreferrer img src https stack imgur com RNZxn png alt enter image description here li ol,NULL 29643,181611,996058,NULL,NULL,NULL,0,NULL,NULL 29644,402499,1066668,NULL,NULL,NULL,0,NULL,NULL 29645,45364,495796,Nice Answer Popular Question Good Answer Nice Answer Nice Question Announcer Revival Popular Question Notable Question Popular Question Good Answer linux sbt Notable Question Popular Question Notable Question Revival Notable Question Popular Question Yearling Nice Question Nice Question bash Revival Good Answer Notable Question Nice Question Popular Question Necromancer Revival haskell Nice Answer java Good Question Popular Question Popular Question Necromancer Necromancer Nice Answer Enlightened Popular Question Popular Question Popular Question Revival Yearling Popular Question Announcer Guru Famous Question Popular Question Nice Question Good Question Famous Question Nice Answer Enlightened Announcer Nice Answer Necromancer Good Answer Necromancer Nice Answer Popular Question Custodian Steward Proofreader Necromancer Famous Question Socratic Nice Answer Custodian Notable Question Popular Question Notable Question Nice Answer Good Answer Notable Question Popular Question Nice Answer Enlightened Revival Good Answer Nice Answer Popular Question Nice Answer Enlightened Necromancer Yearling Archaeologist Reviewer Popular Question Reviewer Popular Question,NULL,How do you Programmatically Download Webpage in Java java http compression pI would like to be able to fetch web page html and save it to codeString code so can do some processing on it Also how could handle various types of compression ppHow would go about doing that using Java This is basically special case of https stackoverflow com questions 921262 how to download and save file from internet using java,0,NULL,NULL 29646,70940,227739,Investor Proofreader Informed Organizer Caucus Yearling Yearling Caucus Revival,NULL,NULL,0,NULL,NULL 29647,372146,993094,NULL,NULL,NULL,0,NULL,NULL 29648,302499,823776,NULL,NULL,NULL,0,NULL,NULL 29649,388652,1560270,NULL,NULL,NULL,0,NULL,NULL 29650,144219,586172,Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 29651,3715,212675,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29652,888997,1535087,Yearling,NULL,NULL,0,NULL,NULL 29653,222628,537111,Commentator Curious Self-Learner Announcer Popular Question,NULL,NULL,0,NULL,NULL 29654,276006,453316,Commentator Curious Enthusiast Editor Popular Question Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29655,891450,1245713,NULL,NULL,NULL,0,NULL,NULL 29656,909132,947450,NULL,NULL,NULL,0,NULL,NULL 29657,1041915,359394,Nice Answer Yearling Popular Question Good Answer Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 29658,844652,458364,NULL,NULL,NULL,0,NULL,NULL 29659,241408,305681,NULL,NULL,NULL,0,NULL,NULL 29660,27057,1025046,Commentator Yearling Critic,NULL,NULL,0,NULL,NULL 29661,43679,472700,Nice Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Great Answer Famous Question Good Question Custodian Yearling Notable Question Caucus Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Favorite Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 29662,537085,1228490,NULL,NULL,,0,, 29663,1230903,1916,Yearling magento Yearling Yearling,NULL,NULL,0,NULL,NULL 29664,62919,302789,Scholar Student Nice Answer Yearling Necromancer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29665,65544,992184,Nice Answer Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29666,1451132,468648,Popular Question Excavator,NULL,NULL,0,NULL,NULL 29667,180800,56289,NULL,NULL,NULL,0,NULL,NULL 29668,170730,346548,NULL,NULL,NULL,0,NULL,NULL 29669,104965,312449,NULL,NULL,NULL,0,NULL,NULL 29670,352903,760352,Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29671,920418,1071781,NULL,NULL,NULL,0,NULL,NULL 29672,833939,837775,NULL,NULL,NULL,0,NULL,NULL 29673,147,835634,NULL,NULL,NULL,0,NULL,NULL 29674,15257,666481,Announcer Necromancer Yearling Editor Excavator Announcer,NULL,NULL,0,NULL,NULL 29675,47413,601798,Necromancer Popular Question Nice Answer Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 29676,894951,1459841,NULL,NULL,NULL,0,NULL,NULL 29677,1095121,1132347,NULL,NULL,NULL,0,NULL,NULL 29678,67099,1169468,Yearling Good Answer Necromancer Custodian Nice Answer Necromancer Caucus Yearling Nice Answer Enthusiast Civic Duty Good Answer Necromancer Revival Necromancer Yearling Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 29679,1068140,1169468,Yearling Good Answer Necromancer Custodian Nice Answer Necromancer Caucus Yearling Nice Answer Enthusiast Civic Duty Good Answer Necromancer Revival Necromancer Yearling Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 29680,22022,275992,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29681,1094816,10505,Nice Answer Notable Question Nice Answer Necromancer Yearling Revival Notable Question Nice Question Nice Answer Popular Question Yearling Notable Question Good Question Nice Answer Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 29682,57933,1070280,NULL,NULL,NULL,0,NULL,NULL 29683,57090,1328252,NULL,NULL,NULL,0,NULL,NULL 29684,702935,289872,Famous Question Notable Question Yearling Notable Question Famous Question Revival Notable Question Favorite Question Yearling Notable Question Nice Answer Nice Question Famous Question Famous Question Good Question Popular Question Favorite Question Popular Question Popular Question Popular Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 29685,200961,1101048,Editor,NULL,NULL,0,NULL,NULL 29686,137439,1418051,NULL,NULL,NULL,0,NULL,NULL 29687,3777756,1418051,NULL,NULL,NULL,0,NULL,NULL 29688,177486,1209961,NULL,NULL,NULL,0,NULL,NULL 29689,1742,313561,Revival Yearling Necromancer Student,NULL,NULL,0,NULL,NULL 29690,194895,18064,Famous Question Popular Question Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 29691,84413,466482,NULL,NULL,NULL,0,NULL,NULL 29692,503162,487066,NULL,NULL,NULL,0,NULL,NULL 29693,103775,174871,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 29694,199384,463002,NULL,NULL,NULL,0,NULL,NULL 29695,175689,87420,Commentator Nice Question,NULL,NULL,0,NULL,NULL 29696,163949,1548706,NULL,NULL,NULL,0,NULL,NULL 29697,21114,115827,NULL,NULL,NULL,0,NULL,NULL 29698,317710,230523,Yearling,NULL,NULL,0,NULL,NULL 29699,25242,18933,Popular Question Notable Question Good Answer Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 29700,283871,277718,Nice Answer Yearling Promoter Benefactor Revival Notable Question Nice Answer Good Answer Necromancer Yearling Necromancer Revival Census Notable Question Yearling Caucus Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 29701,101329,1339742,NULL,NULL,NULL,0,NULL,NULL 29702,482549,35,Nice Answer Nice Answer Nice Answer Good Answer Yearling Nice Answer Famous Question Good Question Caucus Nice Answer Nice Answer Enlightened Yearling Nice Answer Notable Question Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 29703,2241196,242192,Student Scholar Popular Question Notable Question Nice Question Yearling Revival Necromancer Census Nice Answer Yearling,NULL,NULL,1,Ramda js lens for deeply nested objects with nested arrays of objects javascript lens ramda js pUsing Ramda js and lenses want to modify the JavaScript object below to change NAME VERSION1 to NAME VERSION2 for the object that has ID ppI want to use lens because want to just change one deeply nested value but otherwise retain the entire structure unchanged ppI don want to use lensIndex because never know what order the arrays will be in so instead want to find the object in an array by looking for its id fields ppCan do this with lenses or should do it different way ppre code id groups id apps id more nested data skipped to simplify the example id apps id container id container docker image NAME VERSION1 otherStuff code pre,NULL 29704,89385,242192,Student Scholar Popular Question Notable Question Nice Question Yearling Revival Necromancer Census Nice Answer Yearling,NULL,NULL,1,Ramda js lens for deeply nested objects with nested arrays of objects javascript lens ramda js pUsing Ramda js and lenses want to modify the JavaScript object below to change NAME VERSION1 to NAME VERSION2 for the object that has ID ppI want to use lens because want to just change one deeply nested value but otherwise retain the entire structure unchanged ppI don want to use lensIndex because never know what order the arrays will be in so instead want to find the object in an array by looking for its id fields ppCan do this with lenses or should do it different way ppre code id groups id apps id more nested data skipped to simplify the example id apps id container id container docker image NAME VERSION1 otherStuff code pre,NULL 29705,39463,80050,Announcer Popular Question Popular Question Notable Question Notable Question Good Question Notable Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 29706,41045,666292,NULL,NULL,NULL,0,NULL,NULL 29707,204514,1436058,NULL,NULL,NULL,0,NULL,NULL 29708,627966,1212823,Informed,NULL,NULL,0,NULL,NULL 29709,444737,1497384,Teacher,NULL,NULL,0,NULL,NULL 29710,29597,655862,Good Answer Yearling Good Answer Necromancer Yearling Populist Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 29711,901948,1318763,NULL,NULL,NULL,0,NULL,NULL 29712,64295,893,Good Answer Nice Answer Enlightened Famous Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Popular Question Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Populist Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Good Answer Good Answer Enlightened Good Answer Guru Guru Good Answer Populist Guru Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Guru Guru Great Answer Good Answer Good Answer Guru Nice Answer Enlightened Guru Guru Nice Answer makefile Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Enlightened Good Answer Nice Answer Good Answer Good Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Notable Question Nice Question Good Answer Guru Good Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Great Answer file-io Good Answer Nice Answer Nice Answer Guru Good Answer Nice Question Great Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Census Nice Answer Nice Answer Good Answer Good Answer Favorite Question Good Answer Nice Answer Good Answer Good Answer Good Question Guru Nice Answer Enlightened Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Stellar Question Stellar Question Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Great Answer Guru Nice Answer Popular Question Nice Answer Notable Question Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Booster Good Answer Guru Notable Question Great Answer Popular Question Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Guru Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Question Yearling scripting Good Answer Announcer Booster Nice Answer Nice Answer Good Answer Nice Answer Good Question Great Answer Guru Nice Answer Great Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Great Answer Great Answer Good Answer Guru Guru Nice Answer Enlightened Good Answer Nice Answer Guru Publicist Great Answer Guru Nice Answer Good Answer Famous Question Good Answer macos Nice Answer Nice Answer Guru Great Answer Notable Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Census Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Guru Good Answer Nice Answer Nice Question Good Answer Nice Answer Good Question Nice Answer Guru Good Answer Notable Question Nice Answer Nice Answer Nice Answer Good Answer Populist Nice Answer Nice Answer Nice Answer Great Answer Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Great Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Guru Great Answer if-statement Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Popular Question Great Answer Nice Answer Nice Answer Enlightened Favorite Question Nice Answer Good Answer Good Answer Guru Great Answer,NULL,pThere simple trick for this problem ppre codebool IsPowerOfTwo ulong return amp code prepNote this function will report codetrue code for code0 code which is not power of code2 code If you want to exclude that here how ppre codebool IsPowerOfTwo ulong return amp amp amp code preh3Explanation h3pFirst and foremost the bitwise binary amp operator from MSDN definition pblockquote pBinary amp operators are predefined for the integral types and bool For integral types amp computes the logical bitwise AND of its operands For bool operands amp computes the logical AND of its operands that is the result is true if and only if both its operands are true blockquotepNow let take look at how this all plays out ppThe function returns boolean true false and accepts one incoming parameter of type unsigned long in this case Let us for the sake of simplicity assume that someone has passed the value and called the function like so ppre codebool IsPowerOfTwo code prepNow we replace each occurrence of with ppre codereturn amp amp amp code prepWell we already know that evals to true so far so good But what about ppre code amp code prepThis translates to this of course ppre code amp code prepBut what exactly is code4 amp code ppThe binary representation of is 100 and the binary representation of is 011 remember the amp takes the binary representation of these numbers So we have ppre code100 4011 code prepImagine these values being stacked up much like elementary addition The code amp code operator says that if both values are equal to then the result is otherwise it is So code1 amp code code1 amp code code0 amp code and code0 amp code So we do the math ppre code100011 000 code prepThe result is simply So we go back and look at what our return statement now translates to ppre codereturn amp amp amp code prepWhich translates now to ppre codereturn true amp amp code prepre codereturn true amp amp true code prepWe all know that codetrue amp amp true code is simply codetrue code and this shows that for our example is power of No because the parameter type is ulong which is unsigned pIt pretty simple really ppre codea start end items start through end 1a start items start through the rest of the arraya end items from the beginning through end 1a copy of the whole array code prepThere is also the codestep code value which can be used with any of the above ppre codea start end step start through not past end by step code prepThe key point to remember is that the code end code value represents the first value that is emnot em in the selected slice So the difference beween codeend code and codestart code is the number of elements selected if codestep code is the default ppThe other feature is that codestart code or codeend code may be emnegative em number which means it counts from the end of the array instead of the beginning So ppre codea last item in the arraya last two items in the arraya everything except the last two items code prepSimilarly codestep code may be negative number ppre codea all items in the array reverseda the first two items reverseda the last two items reverseda everything except the last two items reversed code prepPython is kind to the programmer if there are fewer items than you ask for For example if you ask for codea code and codea code only contains one element you get an empty list instead of an error Sometimes you would prefer the error so you have to be aware that this may happen Strings are immutable lists are not must be different object from but and can be the same pTry ppre codegit config core fileMode false code prepFrom href https www kernel org pub software scm git docs git config html rel nofollow noreferrer git config pblockquotepre codecore fileMode Tells Git if the executable bit of files in the working tree is to be honored Some filesystems lose the executable bit when file that is marked as executable is checked out or checks out non executable file with executable bit on git clone or git init probe the filesystem to see if it handles the executable bit correctly and this variable is automatically set as necessary repository however may be on filesystem that handles the filemode correctly and this variable is set to true when created but later may be made accessible from another environment that loses the filemode exporting ext4 via CIFS mount visiting Cygwin created repository with Git for Windows or Eclipse In such case it may be necessary to set this variable to false See git update index The default is true when core filemode is not specified in the config file code pre blockquotepThe code code flag can be used to set this option for one off commands ppre codegit core fileMode false diff code prepAnd the code global code flag will make it be the default behavior for the logged in user ppre codegit config global core fileMode false code preh2Warning h2p codecore fileMode code is not the best practice and should be used carefully This setting only covers the executable bit of mode and never the read write bits In many cases you think you need this setting because you did something like codechmod 777 code making all your files executable But in most projects strongmost files don need and should not be executable for security reasons strong ppThe proper way to solve this kind of situation is to handle folder and file permission separately with something like ppre class lang sh prettyprint override codefind type exec chmod rwx Make folders traversable and read writefind type exec chmod rw Make files read write code prepIf you do that you ll never need to use codecore fileMode code except in very rare environment Like all other git settings the local setting only overrides the global if it is present If not present the global setting is used See man git config pUse the kbd kbd command To indent lines kbd5 kbd kbd kbd kbd kbd To mark block of lines and indent it kbdV kbd kbdj kbd kbdj kbd kbd kbd to indent lines vim only To indent curly braces block put your cursor on one of the curly braces and use kbd kbd kbd kbd ppIf you’re copying blocks of text around and need to align the indent of block in its new location use kbd kbd kbdp kbd instead of just kbdp kbd This aligns the pasted block with the surrounding text ppAlso the href http vimdoc sourceforge net htmldoc options html 39 shiftwidth 39 rel noreferrer codeshiftwidth code setting allows you to control how many spaces to indent Which version of vim are you using The command indents lines for me Be sure you aren pressing Enter after the pBoth processes and threads are independent sequences of execution The typical difference is that threads of the same process run in shared memory space while processes run in separate memory spaces ppI not sure what hardware vs software threads you might be referring to Threads are an operating environment feature rather than CPU feature though the CPU typically has operations that make threads efficient ppErlang uses the term process because it does not expose shared memory multiprogramming model Calling them threads would imply that they have shared memory To use terrible analogy if one sequence of execution is spider crawling from one instruction to another following what your source code says loops if statements function calls etc then two sequences of execution is two spiders each doing their own thing In terms of CPUs each sequence of execution has its own set of registers which includes both data registers as well as instruction pointer pIt the only construct in that you can use to code define code multistatement operation put semicolon after and still use within an codeif code statement An example might help ppre code define FOO foo bar if condition FOO else syntax error here code prepEven using braces doesn help ppre code define FOO foo bar code prepUsing this in an codeif code statement would require that you omit the semicolon which is counterintuitive ppre codeif condition FOO else code prepIf you define FOO like this ppre code define FOO do foo bar while code prepthen the following is syntactically correct ppre codeif condition FOO else code pre Are you using your macro in an if statement with no braces like in my first example In most other situations the semicolon doesn matter as much pIt the only construct in that you can use to code define code multistatement operation put semicolon after and still use within an codeif code statement An example might help ppre code define FOO foo bar if condition FOO else syntax error here code prepEven using braces doesn help ppre code define FOO foo bar code prepUsing this in an codeif code statement would require that you omit the semicolon which is counterintuitive ppre codeif condition FOO else code prepIf you define FOO like this ppre code define FOO do foo bar while code prepthen the following is syntactically correct ppre codeif condition FOO else code pre Like my example you need to not use braces and use an else clause pIt the only construct in that you can use to code define code multistatement operation put semicolon after and still use within an codeif code statement An example might help ppre code define FOO foo bar if condition FOO else syntax error here code prepEven using braces doesn help ppre code define FOO foo bar code prepUsing this in an codeif code statement would require that you omit the semicolon which is counterintuitive ppre codeif condition FOO else code prepIf you define FOO like this ppre code define FOO do foo bar while code prepthen the following is syntactically correct ppre codeif condition FOO else code pre ok if you still have questions about what is going on for you please ask new question instead of using comments Thanks,0,NULL,NULL 29713,308648,325751,NULL,NULL,NULL,0,NULL,NULL 29714,12344,1094650,NULL,NULL,NULL,0,NULL,NULL 29715,2954704,1094650,NULL,NULL,NULL,0,NULL,NULL 29716,61892,1163142,Yearling Nice Answer Nice Answer Yearling Necromancer,NULL,h2Python h2pUse the emdefaults em parameter ppre code gt gt gt from collections import namedtuple gt gt gt fields val left right gt gt gt Node namedtuple Node fields defaults None len fields gt gt gt Node Node val None left None right None code preh2Before Python h2pSet codeNode new defaults code to the default values ppre code gt gt gt from collections import namedtuple gt gt gt Node namedtuple Node val left right gt gt gt Node new defaults None len Node fields gt gt gt Node Node val None left None right None code preh2Before Python h2pSet codeNode new func defaults code to the default values ppre code gt gt gt from collections import namedtuple gt gt gt Node namedtuple Node val left right gt gt gt Node new func defaults None len Node fields gt gt gt Node Node val None left None right None code preh2Order h2pIn all versions of Python if you set fewer default values than exist in the namedtuple the defaults are applied to the rightmost parameters This allows you to keep some arguments as required arguments ppre code gt gt gt Node new defaults gt gt gt Node Traceback most recent call last TypeError new missing required positional argument val gt gt gt Node Node val left right code preh2Wrapper for Python to h2pHere wrapper for you which even lets you optionally set the default values to something other than codeNone code This does not support required arguments ppre codeimport collectionsdef namedtuple with defaults typename field names default values collections namedtuple typename field names new defaults None len fields if isinstance default values collections Mapping prototype default values else prototype default values new defaults tuple prototype return code prepExample ppre code gt gt gt Node namedtuple with defaults Node val left right gt gt gt Node Node val None left None right None gt gt gt Node namedtuple with defaults Node val left right gt gt gt Node Node val left right gt gt gt Node namedtuple with defaults Node val left right right gt gt gt Node Node val None left None right gt gt gt Node Node val left None right code pre Please never write code that assigns to defaults That is obscure and unintelligible,0,NULL,NULL 29717,138217,163956,Yearling Nice Answer Enlightened Nice Answer mpi Nice Answer Yearling Good Answer Announcer Custodian Announcer Yearling Custodian,NULL,NULL,0,NULL,NULL 29718,1239068,686201,NULL,NULL,NULL,0,NULL,NULL 29719,216162,707027,NULL,NULL,NULL,0,NULL,NULL 29720,126131,616617,NULL,NULL,NULL,0,NULL,NULL 29721,264469,914379,Popular Question,NULL,NULL,0,NULL,NULL 29722,1331190,1071406,NULL,NULL,NULL,0,NULL,NULL 29723,166866,196783,NULL,NULL,NULL,0,NULL,NULL 29724,1581495,596979,Famous Question Yearling Famous Question Notable Question Nice Answer Famous Question Popular Question Popular Question Nice Question Promoter Nice Question Popular Question Good Question Notable Question Notable Question Popular Question Yearling Revival Notable Question Famous Question Popular Question Revival Notable Question Popular Question Famous Question Popular Question Notable Question Necromancer Taxonomist Proofreader Notable Question Custodian Popular Question Popular Question Yearling Notable Question Popular Question Caucus Popular Question Notable Question Nice Question Notable Question Popular Question Necromancer Popular Question Nice Answer Necromancer Nice Answer Famous Question Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29725,113797,759611,NULL,NULL,NULL,0,NULL,NULL 29726,209871,1125441,NULL,NULL,NULL,0,NULL,NULL 29727,4415849,381517,Custodian Informed Notable Question Yearling Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 29728,274748,141983,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 29729,67808,811672,NULL,NULL,NULL,0,NULL,NULL 29730,573650,1040667,NULL,NULL,NULL,0,NULL,NULL 29731,129457,981552,Popular Question Popular Question Commentator Popular Question,NULL,NULL,0,NULL,NULL 29732,662805,407977,Notable Question Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29733,2929846,123691,NULL,NULL,NULL,0,NULL,NULL 29734,3467550,1371061,NULL,NULL,NULL,0,NULL,NULL 29735,164181,1371061,NULL,NULL,NULL,0,NULL,NULL 29736,455634,477559,Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29737,262431,1125248,Supporter,NULL,NULL,0,NULL,NULL 29738,16193,1025713,NULL,NULL,NULL,0,NULL,NULL 29739,46395,821573,NULL,NULL,NULL,0,NULL,NULL 29740,205232,200312,NULL,NULL,NULL,0,NULL,NULL 29741,313056,807601,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29742,2251324,885100,NULL,NULL,NULL,0,NULL,NULL 29743,65415,7097,NULL,NULL,NULL,0,NULL,NULL 29744,1082607,789579,NULL,NULL,NULL,0,NULL,NULL 29745,251656,15842,Popular Question Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Yearling Good Question Tumbleweed Good Question Nice Answer Nice Question Nice Answer Stellar Question Famous Question Good Answer Famous Question Yearling Popular Question Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29746,67562,557940,NULL,NULL,NULL,0,NULL,NULL 29747,636419,1070054,NULL,NULL,NULL,0,NULL,NULL 29748,135623,830293,Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 29749,79253,316750,NULL,NULL,NULL,0,NULL,NULL 29750,151884,397442,Yearling Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 29751,185658,192745,NULL,NULL,NULL,0,NULL,NULL 29752,332608,1164426,Teacher Popular Question,NULL,NULL,0,NULL,NULL 29753,149514,459950,Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Documentation Pioneer Yearling Notable Question Custodian Excavator Caucus Yearling Documentation User Caucus Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 29754,2792537,459950,Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Documentation Pioneer Yearling Notable Question Custodian Excavator Caucus Yearling Documentation User Caucus Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 29755,36380,884740,Nice Answer,NULL,NULL,0,NULL,NULL 29756,80446,343414,Famous Question Good Question Nice Question Favorite Question Nice Answer Yearling Nice Answer Enlightened Notable Question Nice Question Nice Answer Notable Question Nice Answer Yearling Announcer Custodian Yearling,NULL,NULL,0,NULL,NULL 29757,334887,878716,Popular Question Self-Learner Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29758,607521,1160883,Notable Question,NULL,NULL,0,NULL,NULL 29759,573997,51090,Yearling Tumbleweed Yearling Good Answer Notable Question Yearling,NULL,NULL,1,NULL,Key issue with installing RVM Ruby Version Manager ruby on rails ruby rvm centos6 pgp pI am trying to install the Ruby Version Manager RVM on my CentOS machine ppI followed the instructions on the home page at href https rvm io rvm install https rvm io rvm install ppWhen run this command ppre codegpg keyserver hkp keys gnupg net recv keys 409B6B1796C275462A1703113804BB82D39DC0E3 code prepI keep getting the error ppre codegpg requesting key D39DC0E3 from hkp server keys gnupg netgpgkeys HTTP fetch error Couldn resolve host keys gnupg net gpg no valid OpenPGP data found gpg Total number processed code prepDoes anyone know how to resolve this ppThanksIS pI recently came across this issue while trying to upgrade from docker to docker for Mac on one of our Ubuntu images for ruby ppHere is my workaround ppre class lang none prettyprint override codegpg keyserver getent hosts keys gnupg net awk print head recv keys 409B6B1796C275462A1703113804BB82D39DC0E3 code prepThis resolved the issue and seemed to be the least hacky solution 29760,1034663,920349,NULL,NULL,NULL,0,NULL,NULL 29761,1504134,1137090,NULL,NULL,NULL,0,NULL,NULL 29762,205008,717881,Yearling,NULL,NULL,0,NULL,NULL 29763,902203,273774,Teacher Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 29764,230559,418277,Good Answer Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 29765,1641349,1333926,NULL,NULL,NULL,0,NULL,NULL 29766,185939,41891,NULL,NULL,NULL,0,NULL,NULL 29767,406340,741994,NULL,NULL,NULL,0,NULL,NULL 29768,1013,574002,Supporter Notable Question,NULL,NULL,0,NULL,NULL 29769,306060,865161,NULL,NULL,NULL,0,NULL,NULL 29770,387282,672108,Notable Question,NULL,NULL,0,NULL,NULL 29771,1225634,1395525,NULL,NULL,NULL,0,NULL,NULL 29772,19167,206879,Notable Question Critic Yearling Yearling Organizer Good Question,NULL,NULL,0,NULL,NULL 29773,98763,199848,Yearling Good Answer Revival Popular Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 29774,181329,1466985,Popular Question,NULL,NULL,0,NULL,NULL 29775,267373,992096,NULL,NULL,NULL,0,NULL,NULL 29776,350153,817159,NULL,NULL,NULL,0,NULL,NULL 29777,365648,294709,Popular Question Famous Question Popular Question Popular Question Yearling Notable Question Announcer Popular Question Nice Question Critic Popular Question Popular Question Yearling Notable Question Popular Question Famous Question Popular Question Notable Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 29778,3728,329401,NULL,NULL,NULL,0,NULL,NULL 29779,87848,749798,Famous Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Question Famous Question Notable Question Popular Question Famous Question Nice Question Nice Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Great Question Favorite Question Yearling Nice Question Popular Question Benefactor Notable Question,NULL,NULL,0,NULL,NULL 29780,264074,910674,Popular Question Tumbleweed Supporter Teacher Curious Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 29781,51752,202952,NULL,NULL,NULL,0,NULL,NULL 29782,891177,1405773,NULL,NULL,NULL,0,NULL,NULL 29783,425264,1349856,NULL,NULL,NULL,0,NULL,NULL 29784,222969,805840,NULL,NULL,NULL,0,NULL,NULL 29785,165369,738609,Supporter Necromancer,NULL,NULL,0,NULL,NULL 29786,314395,1378845,NULL,NULL,NULL,0,NULL,NULL 29787,144361,1229676,NULL,NULL,NULL,0,NULL,NULL 29788,814436,1143499,NULL,NULL,NULL,0,NULL,NULL 29789,8197360,1143499,NULL,NULL,NULL,0,NULL,NULL 29790,1507828,1535481,NULL,NULL,NULL,0,NULL,NULL 29791,34696,138561,Good Answer Yearling Nice Question Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 29792,69132,833555,Revival Popular Question Caucus Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 29793,3087,128892,Teacher Editor,NULL,NULL,0,NULL,NULL 29794,306309,305220,NULL,NULL,NULL,0,NULL,NULL 29795,75740,502665,Popular Question,NULL,NULL,0,NULL,NULL 29796,13687,289274,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 29797,3412,775686,Editor Excavator Informed Scholar Supporter Teacher Revival Necromancer Critic Nice Answer Yearling Popular Question Census Announcer Caucus Constituent Yearling Good Answer Commentator,NULL,NULL,0,NULL,NULL 29798,2484878,514686,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 29799,340487,580816,Popular Question,NULL,NULL,0,NULL,NULL 29800,8158048,754191,NULL,NULL,NULL,0,NULL,NULL 29801,341824,617455,Yearling,NULL,NULL,0,NULL,NULL 29802,54128,108495,Great Question Notable Question Investor Yearling Notable Question Notable Question Nice Answer Nice Question Notable Question Notable Question Popular Question Yearling Nice Question Nice Question Nice Question speech-recognition Necromancer Guru Yearling Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 29803,9238,1103939,Popular Question Yearling Necromancer Good Answer Nice Answer Famous Question Yearling Custodian Yearling Good Answer Popular Question Good Question Popular Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 29804,13385,1122037,Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 29805,542439,580087,NULL,NULL,NULL,0,NULL,NULL 29806,642035,1139503,Yearling Investor Altruist Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 29807,98005,58396,Yearling Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 29808,432143,13009,Notable Question Popular Question Nice Question Notable Question Notable Question Nice Question Popular Question Notable Question Famous Question Nice Question Famous Question Famous Question Nice Question Famous Question Notable Question Necromancer Popular Question Good Question Nice Question Famous Question Notable Question Good Question Notable Question Nice Answer Popular Question Nice Question Notable Question Popular Question Popular Question Good Question Good Question Popular Question Favorite Question Nice Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Good Answer Announcer Notable Question Nice Question Popular Question Famous Question Famous Question Notable Question Good Question Popular Question Famous Question Notable Question Nice Question Notable Question Notable Question Guru Favorite Question Good Question Popular Question Notable Question Notable Question Famous Question Famous Question Popular Question Popular Question Popular Question Good Question Famous Question Notable Question Notable Question Famous Question Great Question Famous Question Famous Question Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Popular Question Good Question Notable Question Famous Question Notable Question Popular Question Nice Question Stellar Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Good Question Nice Answer Notable Question Good Question Notable Question Notable Question Popular Question Yearling Famous Question Popular Question Nice Question Nice Question Good Question Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 29809,319499,946043,NULL,NULL,NULL,0,NULL,NULL 29810,139347,127040,Nice Answer Enlightened Popular Question Revival Yearling Great Answer Custodian Organizer Necromancer Yearling Excavator Good Answer Enlightened Favorite Question Guru Custodian Yearling Great Question Notable Question Custodian Self-Learner,NULL,NULL,0,NULL,NULL 29811,295197,951760,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29812,204705,226210,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29813,107641,197825,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 29814,210645,124375,Revival,NULL,NULL,0,NULL,NULL 29815,54770,20388,Famous Question Yearling Nice Question Nice Answer Famous Question Great Answer Yearling Popular Question Popular Question Nice Answer Self-Learner Yearling,NULL,NULL,0,NULL,NULL 29816,1504700,391922,Nice Question,NULL,NULL,0,NULL,NULL 29817,884322,799105,Nice Question,NULL,NULL,0,NULL,NULL 29818,53776,1159653,NULL,NULL,NULL,0,NULL,NULL 29819,360865,720889,Notable Question Popular Question Popular Question Caucus Notable Question Notable Question Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 29820,72856,1155093,NULL,NULL,NULL,0,NULL,NULL 29821,277984,1253929,Yearling Famous Question Critic Yearling,NULL,NULL,0,NULL,NULL 29822,553028,691018,NULL,NULL,NULL,0,NULL,NULL 29823,914946,247314,NULL,NULL,NULL,0,NULL,NULL 29824,639475,1566842,NULL,NULL,NULL,0,NULL,NULL 29825,12306,171396,Yearling Good Answer Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 29826,45915,948823,NULL,NULL,NULL,0,NULL,NULL 29827,468847,1517693,NULL,NULL,NULL,0,NULL,NULL 29828,1815818,586519,NULL,NULL,NULL,0,NULL,NULL 29829,426903,1201163,Popular Question,NULL,NULL,0,NULL,NULL 29830,42948,372559,NULL,NULL,NULL,0,NULL,NULL 29831,893521,1527434,Critic,NULL,NULL,0,NULL,NULL 29832,827113,877618,Editor,NULL,NULL,0,NULL,NULL 29833,615892,964265,Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29834,727227,807727,NULL,NULL,NULL,0,NULL,NULL 29835,546862,1452148,Yearling Great Answer Notable Question Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 29836,107687,286827,Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 29837,559999,228136,Nice Answer Enlightened Yearling Student Scholar Yearling Good Answer,NULL,NULL,0,NULL,NULL 29838,1074763,430100,Student Citizen Patrol Civic Duty,NULL,NULL,0,NULL,NULL 29839,1518901,272449,Popular Question,NULL,NULL,0,NULL,NULL 29840,7770,1549818,Yearling Caucus Constituent Census Copy Editor Custodian Custodian Custodian Cleanup Deputy Proofreader Caucus Yearling Nice Answer Documentation User Announcer Census Caucus Constituent Reviewer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29841,428375,1038346,NULL,NULL,NULL,0,NULL,NULL 29842,754827,1194907,Informed Editor,NULL,NULL,0,NULL,NULL 29843,622597,334068,Editor Supporter,NULL,NULL,0,NULL,NULL 29844,445737,765743,NULL,NULL,NULL,0,NULL,NULL 29845,118230,765743,NULL,NULL,NULL,0,NULL,NULL 29846,3546,586750,Yearling Yearling Famous Question Great Question,NULL,NULL,0,NULL,NULL 29847,208245,399799,NULL,NULL,NULL,0,NULL,NULL 29848,214285,805092,NULL,NULL,NULL,0,NULL,NULL 29849,165529,648212,NULL,NULL,NULL,0,NULL,NULL 29850,105282,589471,NULL,NULL,NULL,0,NULL,NULL 29851,5859653,581143,NULL,NULL,NULL,0,NULL,NULL 29852,302011,625053,Notable Question Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 29853,261119,120715,NULL,NULL,NULL,0,NULL,NULL 29854,386454,474867,Notable Question Yearling,NULL,NULL,0,NULL,NULL 29855,323135,471225,NULL,NULL,NULL,0,NULL,NULL 29856,40088,908191,NULL,NULL,NULL,0,NULL,NULL 29857,211422,703339,NULL,NULL,NULL,0,NULL,NULL 29858,664628,1145415,NULL,NULL,NULL,0,NULL,NULL 29859,365477,498534,Teacher,NULL,NULL,0,NULL,NULL 29860,288757,500944,NULL,NULL,NULL,0,NULL,NULL 29861,268356,808125,Popular Question Popular Question Announcer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 29862,578628,538374,Teacher Popular Question,NULL,NULL,0,NULL,NULL 29863,39788,69882,Nice Question Popular Question Famous Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Popular Question Good Question Notable Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Nice Question Notable Question Nice Question Good Answer Notable Question Famous Question Good Question Notable Question Nice Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Not a Robot Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Nice Question Yearling Popular Question Good Question Good Question Popular Question Nice Question Famous Question Good Question Famous Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Nice Question Popular Question Nice Question Great Question Notable Question Notable Question Favorite Question Popular Question Notable Question Nice Question Popular Question Famous Question Nice Question Yearling Popular Question Notable Question Great Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Stellar Question Nice Question Favorite Question Popular Question Nice Question Favorite Question Famous Question Nice Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29864,7588720,69882,Nice Question Popular Question Famous Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Popular Question Good Question Notable Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Nice Question Notable Question Nice Question Good Answer Notable Question Famous Question Good Question Notable Question Nice Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Not a Robot Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Nice Question Yearling Popular Question Good Question Good Question Popular Question Nice Question Famous Question Good Question Famous Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Nice Question Popular Question Nice Question Great Question Notable Question Notable Question Favorite Question Popular Question Notable Question Nice Question Popular Question Famous Question Nice Question Yearling Popular Question Notable Question Great Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Stellar Question Nice Question Favorite Question Popular Question Nice Question Favorite Question Famous Question Nice Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 29865,201256,1335898,NULL,NULL,NULL,0,NULL,NULL 29866,555155,996744,NULL,NULL,NULL,0,NULL,NULL 29867,309679,29228,NULL,NULL,NULL,0,NULL,NULL 29868,988061,668843,NULL,NULL,NULL,0,NULL,NULL 29869,480438,1436440,NULL,NULL,NULL,0,NULL,NULL 29870,8954,187096,NULL,NULL,NULL,0,NULL,NULL 29871,1508959,255588,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 29872,7200272,318928,Nice Answer Enlightened Nice Question Yearling Caucus Custodian Popular Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29873,249365,661452,Yearling Good Answer Yearling Yearling Critic,NULL,NULL,0,NULL,NULL 29874,226780,1130556,NULL,NULL,NULL,0,NULL,NULL 29875,84784,1241070,Nice Question Nice Question Famous Question Notable Question Popular Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 29876,178579,971219,NULL,NULL,NULL,0,NULL,NULL 29877,427237,264775,Yearling Guru Notable Question Notable Question Notable Question android Guru Caucus Popular Question Census Yearling Nice Answer Caucus Guru Announcer Popular Question Nice Answer Census Electorate Yearling Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 29878,1831904,252428,Yearling Nice Question Stellar Question Good Question Famous Question Famous Question Popular Question Yearling Good Question Popular Question Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 29879,95468,675962,Teacher Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 29880,746499,1517128,NULL,NULL,NULL,0,NULL,NULL 29881,43119,608656,NULL,NULL,NULL,0,NULL,NULL 29882,282930,809387,Popular Question Good Answer Yearling Popular Question Nice Answer Enlightened Caucus Notable Question Census Nice Answer Enlightened c++ Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Census Good Answer Popular Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 29883,46498,873185,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29884,1531505,873185,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29885,1329353,487500,Necromancer,NULL,NULL,0,NULL,NULL 29886,164106,296901,Notable Question Popular Question Documentation User Census,NULL,NULL,0,NULL,NULL 29887,57417,550350,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29888,1346130,550350,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29889,1250227,97423,NULL,NULL,NULL,0,NULL,NULL 29890,237812,225919,Popular Question Yearling,NULL,NULL,0,NULL,NULL 29891,446714,500419,Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29892,3281829,500419,Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 29893,62888,690771,Yearling Nice Answer Good Answer Yearling Organizer Necromancer Good Answer Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 29894,4361755,13562,Favorite Question Popular Question Popular Question Custodian Civic Duty Necromancer Yearling,NULL,NULL,0,NULL,NULL 29895,300687,13562,Favorite Question Popular Question Popular Question Custodian Civic Duty Necromancer Yearling,NULL,NULL,0,NULL,NULL 29896,494962,431985,NULL,NULL,NULL,0,NULL,NULL 29897,328040,672042,NULL,NULL,NULL,0,NULL,NULL 29898,529242,228972,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 29899,42094,613688,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29900,36520,1092494,NULL,NULL,NULL,0,NULL,NULL 29901,450308,81121,Yearling Good Answer Populist Yearling Popular Question,NULL,NULL,0,NULL,NULL 29902,1568672,1337137,Documentation User,NULL,NULL,0,NULL,NULL 29903,585558,1155728,NULL,NULL,NULL,0,NULL,NULL 29904,110939,72985,Yearling Popular Question Good Answer Yearling Popular Question Guru Custodian Yearling,NULL,NULL,0,NULL,NULL 29905,59564,250695,Popular Question Notable Question Yearling Notable Question Notable Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 29906,1427816,321897,Popular Question,NULL,NULL,0,NULL,NULL 29907,454867,701907,NULL,NULL,NULL,0,NULL,NULL 29908,4105453,1181615,Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29909,1396158,1181615,Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29910,1570456,1180551,Informed Autobiographer Yearling Census Editor Critic Commentator Caucus Constituent Student Scholar,NULL,NULL,0,NULL,NULL 29911,368482,277767,Popular Question Yearling Inquisitive Pundit Popular Question Necromancer Famous Question Yearling Necromancer Nice Question Good Answer Notable Question Notable Question Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 29912,26289,1049232,Commentator Nice Answer Yearling Revival Revival Caucus,NULL,NULL,0,NULL,NULL 29913,108060,577081,Yearling Nice Answer Good Answer Yearling Enlightened Great Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29914,3313647,577081,Yearling Nice Answer Good Answer Yearling Enlightened Great Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 29915,296875,1123974,Supporter,NULL,NULL,0,NULL,NULL 29916,205018,1228962,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 29917,851756,353612,Nice Question Good Answer Famous Question Good Question Good Question Yearling Famous Question Famous Question Nice Question Famous Question Nice Answer Notable Question Pundit Electorate Caucus Good Answer Popular Question symfony symfony Great Question Guru twig Popular Question Notable Question Notable Question Yearling Good Question Favorite Question Nice Answer Nice Answer Enlightened Necromancer Revival Popular Question Great Answer Yearling Notable Question Favorite Question Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 29918,946849,1146562,Custodian Custodian Reviewer Notable Question Yearling Announcer Announcer Caucus Constituent Custodian Announcer Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 29919,233686,595322,NULL,NULL,NULL,0,NULL,NULL 29920,1517696,786505,NULL,NULL,NULL,0,NULL,NULL 29921,543784,751774,NULL,NULL,NULL,0,NULL,NULL 29922,185181,757461,Yearling Nice Answer Yearling Excavator Necromancer Popular Question Yearling Popular Question Custodian Self-Learner Notable Question Nice Question Nice Answer,NULL,h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre completely agree with feel like the redux thunk example is more understandable than the redux saga one as you can easily see from the UI component trigering the action what is happening and that something external to this component is called Whereas like often with events you have no idea where in your app things are reacting to the event you just triggered h1Let get definitive about AngularJS and SEO h1pGoogle Yahoo Bing and other search engines crawl the web in traditional ways using traditional crawlers They run emrobots em that crawl the HTML on web pages collecting information along the way They keep interesting words and look for other links to other pages these links the amount of them and the number of them come into play with SEO ph2So why don search engines deal with javascript sites h2pThe answer has to do with the fact that the search engine robots work through headless browsers and they most often do emnot em have javascript rendering engine to render the javascript of page This works for most pages as most static pages don care about JavaScript rendering their page as their content is already available ph2What can be done about it h2pLuckily crawlers of the larger sites have started to implement mechanism that allows us to make our JavaScript sites crawlable but it strongrequires us to implement change to our site strong ppIf we change our codehashPrefix code to be code code instead of simply code code then modern search engines will change the request to use code escaped fragment code instead of code code With HTML5 mode where we have links without the hash prefix we can implement this same feature by looking at the codeUser Agent code header in our backend ppThat is to say instead of request from normal browser that looks like pp codehttp www ng newsletter com signup page code ppA search engine will search the page with pp codehttp www ng newsletter com escaped fragment signup page code ppWe can set the hash prefix of our Angular apps using built in method from codengRoute code ppre codeangular module myApp config location function location location hashPrefix code prepAnd if we re using codehtml5Mode code we will need to implement this using the meta tag ppre code lt meta name fragment content gt code prepReminder we can set the codehtml5Mode code with the code location code service ppre codeangular module myApp config location function location location html5Mode true code preh2Handling the search engine h2pWe have lot of opportunities to determine how we ll deal with actually delivering content to search engines as static HTML We can host backend ourselves we can use service to host back end for us we can use proxy to deliver the content etc Let look at few options ph3Self hosted h3pWe can write service to handle dealing with crawling our own site using headless browser like phantomjs or zombiejs taking snapshot of the page with rendered data and storing it as HTML Whenever we see the query string code escaped fragment code in search request we can deliver the static HTML snapshot we took of the page instead of the pre rendered page through only JS This requires us to have backend that delivers our pages with conditional logic in the middle We can use something like href https prerender io prerender io backend as starting point to run this ourselves Of course we still need to handle the proxying and the snippet handling but it good start ph3With paid service h3pThe easiest and the fastest way to get content into search engine is to use service href http www brombone com Brombone href http getseojs com seo js href http www seo4ajax com seo4ajax and href https prerender io prerender io are good examples of these that will host the above content rendering for you This is good option for the times when we don want to deal with running server proxy Also it usually super quick ppFor more information about Angular and SEO we wrote an extensive tutorial on it at href http www ng newsletter com posts serious angular seo html http www ng newsletter com posts serious angular seo html strongand strong we detailed it even more in our book strongng book The Complete Book on AngularJS strong Check it out at href https www ng book com ng book com this is still needed for let say open graph tags that need to be in the page when robots are crawling it For example Facebook or Twitter cards need it But this answer should be updated to focus on HTML5 pushstate instead of hashbang that is deprecated now,0,NULL,NULL 29923,911558,1559667,NULL,NULL,NULL,0,NULL,NULL 29924,346166,1562189,Supporter,NULL,NULL,0,NULL,NULL 29925,51705,4541,Nice Question Great Question Yearling Famous Question Famous Question Famous Question Famous Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 29926,82027,308930,Nice Answer Yearling Nice Answer Necromancer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 29927,97986,920800,NULL,NULL,NULL,0,NULL,NULL 29928,94475,296559,Notable Question Yearling Notable Question Necromancer Nice Answer Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 29929,148091,1232700,NULL,NULL,NULL,0,NULL,NULL 29930,430253,201920,Popular Question Popular Question Popular Question Critic Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 29931,210108,984456,Supporter,NULL,NULL,0,NULL,NULL 29932,67693,463825,Nice Question Yearling Organizer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 29933,337975,1543210,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 29934,377966,182976,NULL,NULL,NULL,0,NULL,NULL 29935,230157,523592,Popular Question,NULL,NULL,0,NULL,NULL 29936,585453,1216718,Enthusiast Caucus Critic Yearling Necromancer,NULL,NULL,0,NULL,NULL 29937,866,1240763,spring-rabbit Civic Duty spring-integration Yearling spring-xd Taxonomist Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened spring Nice Answer Enlightened Self-Learner Nice Answer Enlightened spring-amqp Caucus Constituent Nice Answer Enlightened spring-boot Nice Answer Refiner Yearling rabbitmq spring-rabbitmq java Nice Answer Enlightened activemq Caucus Documentation User spring-kafka apache-kafka Nice Answer Enlightened Census Nice Answer Nice Answer Enlightened spring-cloud-stream Nice Answer Enlightened Yearling Copy Editor Mortarboard Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer tcp spring-boot Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,1,NULL,Spring Kafka Testing with Embedded Kafka spring spring boot apache kafka spring kafka pWe are observing strange behavior with our Servicetest and embedded Kafka ppThe Test is Spock Test we use the JUnit Rule KafkaEmbedded and propagate brokersAsString as follows ppre codedded embeddedKafka new KafkaEmbedded istenerEndpointRegistry endpointRegistrydef setupSpec System setProperty kafka bootstrapServers embeddedKafka getBrokersAsString code prepFrom inspecting the Code of KafkaEmbedded constructing an Instance with codeKafkaEmbedded int count code leads to one Kafka Server with two partitions per topic ppIn order to tackle issues with partition assignment and server client synchronization in the test we follow the strategy as seen in ContainerTestUtils class from spring kafka ppre codepublic static void waitForAssignment KafkaMessageListenerContainer lt String String gt container int partitions throws Exception log info Waiting for container getContainerProperties getTopics to connect to partitions partitions int int count while lt 600 amp amp count lt partitions count container getAssignedPartitions each TopicPartition it gt log info it topic it partition if container getAssignedPartitions null count container getAssignedPartitions size if count lt partitions Thread sleep 100 code prepWhen we observe the logs we notice the following pattern ppre code2016 07 29 11 24 02 600 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id deliveryZipCode v1 LEADER NOT AVAILABLE 2016 07 29 11 24 02 600 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id staggering LEADER NOT AVAILABLE 2016 07 29 11 24 02 600 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id moa LEADER NOT AVAILABLE 2016 07 29 11 24 02 696 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id staggering LEADER NOT AVAILABLE 2016 07 29 11 24 02 699 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id moa LEADER NOT AVAILABLE 2016 07 29 11 24 02 699 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id deliveryZipCode v1 LEADER NOT AVAILABLE 2016 07 29 11 24 02 807 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id deliveryZipCode v1 LEADER NOT AVAILABLE 2016 07 29 11 24 02 811 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id staggering LEADER NOT AVAILABLE 2016 07 29 11 24 02 812 WARN 1160 afka consumer org apache kafka clients NetworkClient Error while fetching metadata with correlation id moa LEADER NOT AVAILABLE 2016 07 29 11 24 03 544 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked 2016 07 29 11 24 03 544 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked 2016 07 29 11 24 03 544 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked 2016 07 29 11 24 03 602 INFO 1160 afka consumer internals AbstractCoordinator SyncGroup for group timeslot service group 06x failed due to coordinator rebalance rejoining the group2016 07 29 11 24 03 637 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned 2016 07 29 11 24 03 637 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned 2016 07 29 11 24 04 065 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned staggering 2016 07 29 11 24 04 066 INFO 1160 main TomcatEmbeddedServletContainer Tomcat started on port 50810 http 2016 07 29 11 24 04 073 INFO 1160 main AllocationsDeliveryZonesServiceSpec Started AllocationsDeliveryZonesServiceSpec in 20 616 seconds JVM running for 25 456 2016 07 29 11 24 04 237 INFO 1160 main org eclipse jetty server Server jetty 17 v201605172016 07 29 11 24 04 265 INFO 1160 main jetty server handler ContextHandler Started ServletContextHandler admin null AVAILABLE 2016 07 29 11 24 04 270 INFO 1160 main jetty server handler ContextHandler Started ServletContextHandler null AVAILABLE 2016 07 29 11 24 04 279 INFO 1160 main eclipse jetty server ServerConnector Started ServerConnector HTTP 50811 2016 07 29 11 24 04 430 INFO 1160 main eclipse jetty server ServerConnector Started ServerConnector SSL http 50812 2016 07 29 11 24 04 430 INFO 1160 main org eclipse jetty server Server Started 07 29 11 24 04 632 INFO 1160 main AllocationsDeliveryZonesServiceSpec waiting 2016 07 29 11 24 04 662 INFO 1160 main AllocationsDeliveryZonesServiceSpec Waiting for moa to connect to partitions 2016 07 29 11 24 13 644 INFO 1160 afka consumer internals AbstractCoordinator Attempt to heart beat failed since the group is rebalancing try to re join group 2016 07 29 11 24 13 644 INFO 1160 afka consumer internals AbstractCoordinator Attempt to heart beat failed since the group is rebalancing try to re join group 2016 07 29 11 24 13 644 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked 2016 07 29 11 24 13 644 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked 2016 07 29 11 24 13 655 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned staggering 2016 07 29 11 24 13 655 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned moa 2016 07 29 11 24 13 655 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned deliveryZipCode v1 2016 07 29 11 24 13 740 INFO 1160 main AllocationsDeliveryZonesServiceSpec moa 2016 07 29 11 24 16 644 INFO 1160 main AllocationsDeliveryZonesServiceSpec moa 2016 07 29 11 24 16 666 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked staggering 2016 07 29 11 24 16 750 INFO 1160 main AllocationsDeliveryZonesServiceSpec moa 2016 07 29 11 24 23 559 INFO 1160 main AllocationsDeliveryZonesServiceSpec moa 2016 07 29 11 24 23 660 INFO 1160 afka consumer internals AbstractCoordinator Attempt to heart beat failed since the group is rebalancing try to re join group 2016 07 29 11 24 23 660 INFO 1160 afka consumer internals AbstractCoordinator Attempt to heart beat failed since the group is rebalancing try to re join group 2016 07 29 11 24 23 662 INFO 1160 main AllocationsDeliveryZonesServiceSpec moa 2016 07 29 11 24 23 686 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked moa 2016 07 29 11 24 23 686 INFO 1160 afka consumer KafkaMessageListenerContainer partitions revoked deliveryZipCode v1 2016 07 29 11 24 23 695 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned moa 2016 07 29 11 24 23 695 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned staggering 2016 07 29 11 24 23 695 INFO 1160 afka consumer KafkaMessageListenerContainer partitions assigned deliveryZipCode v1 code prepPlease note the indication omitted lines ppWe set codemetadata max age ms code to 3000 msAs result it tries to refresh the metadata information frequently ppWhat puzzles us now is that if we wait for two partitions to connect the wait will time out Only if we wait for one partition to connect after while everything runs successfully ppDid we understand the code wrong that there are two partitions per topic in the embedded Kafka Is it normal that only one is assigned to our Listeners pI can explain the flakiness you re seeing yes each topic gets partitions by default just ran one of the framework container tests and see this ppre code09 24 06 139 INFO testSlow3 kafka consumer org springframework kafka listener KafkaMessageListenerContainer partitions revoked 09 24 06 611 INFO testSlow3 kafka consumer org springframework kafka listener KafkaMessageListenerContainer partitions assigned testTopic3 testTopic3 code pre 29938,1168624,1334810,Enthusiast,NULL,NULL,0,NULL,NULL 29939,110158,711107,NULL,NULL,NULL,0,NULL,NULL 29940,1813112,581900,NULL,NULL,NULL,0,NULL,NULL 29941,925993,1338731,NULL,NULL,NULL,0,NULL,NULL 29942,375434,846262,Informed Editor Critic Student Scholar Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 29943,404580,118587,Popular Question Notable Question Peer Pressure Favorite Question Popular Question Nice Answer Yearling Popular Question Custodian Notable Question Guru Guru Great Answer Popular Question Famous Question Yearling Nice Question Nice Question Documentation User Popular Question Famous Question python Census Nice Answer Enlightened Popular Question Good Answer Caucus Sportsmanship Great Question Yearling Notable Question Popular Question Nice Answer Good Question,NULL,Remote System Explorer Operation causing freeze for couple of seconds eclipse pI observe Remote System Explorer Operation in Progress view of Eclipse after each save of Java file so it might be related to compiling It makes the Eclipse unusable for to 10 seconds In some projects of about the same size it quicker in some it slower ppI have no idea which plugin might be the cause for it have codeBuild id 20090920 1017 code have quite few href http so pastebin com f3120dfe2 rel noreferrer plugins installed ppI have tried turning all the remote systems to codeenabled false code under Preferences Remote Systems whatever it means didn help ppAny idea how to solve it ppEDIT polliIt doesn happen when codeProject Build automatically code is turned off So it some part of the building process li ol Oh Let have yearly event for this,0,NULL,NULL 29944,526478,406489,Editor,NULL,NULL,0,NULL,NULL 29945,1152274,498325,Notable Question Popular Question Nice Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 29946,139830,498325,Notable Question Popular Question Nice Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 29947,639651,390498,Student,NULL,NULL,0,NULL,NULL 29948,646411,160710,Yearling,NULL,NULL,0,NULL,NULL 29949,2112045,160710,Yearling,NULL,NULL,0,NULL,NULL 29950,14868,91887,NULL,NULL,NULL,0,NULL,NULL 29951,36100,261124,NULL,NULL,NULL,0,NULL,NULL 29952,494970,343096,Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Civic Duty Caucus Popular Question,NULL,NULL,0,NULL,NULL 29953,24171,1015412,NULL,NULL,NULL,0,NULL,NULL 29954,891678,1203941,Curious,NULL,NULL,0,NULL,NULL 29955,2542528,915552,Citizen Patrol Student Informed,NULL,NULL,0,NULL,NULL 29956,222804,425091,Editor,NULL,NULL,0,NULL,NULL 29957,167305,177376,NULL,NULL,NULL,0,NULL,NULL 29958,361614,344530,Nice Question Notable Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 29959,18846,924921,NULL,NULL,NULL,0,NULL,NULL 29960,137898,984400,Nice Answer,NULL,NULL,0,NULL,NULL 29961,3220824,984400,Nice Answer,NULL,NULL,0,NULL,NULL 29962,487215,98510,Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 29963,335919,1439362,Teacher Supporter Informed Editor Scholar Student Autobiographer,NULL,NULL,0,NULL,NULL 29964,314369,1050369,Citizen Patrol Custodian Custodian Custodian Commentator,NULL,NULL,0,NULL,NULL 29965,322003,19716,Yearling Good Question Self-Learner,NULL,NULL,0,NULL,NULL 29966,487651,932708,Notable Question,NULL,NULL,0,NULL,NULL 29967,3101145,389198,NULL,NULL,NULL,0,NULL,NULL 29968,243802,705047,NULL,NULL,NULL,0,NULL,NULL 29969,136206,1422711,NULL,NULL,NULL,0,NULL,NULL 29970,10180,751501,NULL,NULL,NULL,0,NULL,NULL 29971,62127,446253,Civic Duty Commentator Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 29972,276161,519305,Notable Question Popular Question Notable Question Popular Question Famous Question Self-Learner Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Notable Question Caucus Notable Question Popular Question Yearling,NULL,How to trigger the window resize event in JavaScript javascript jquery events pI have registered trigger on window resize want to know how can trigger the event to be called For example when hide div want my trigger function to be called ppI found codewindow resizeTo code can trigger the function but is there any other solution have documented few of the approaches as well http thewebjuice com 309 preview true,0,NULL,NULL 29973,339577,772183,NULL,NULL,NULL,0,NULL,NULL 29974,190840,386662,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 29975,94888,10825,Notable Question,NULL,NULL,0,NULL,NULL 29976,141586,459282,NULL,NULL,NULL,0,NULL,NULL 29977,873994,1237730,NULL,NULL,NULL,0,NULL,NULL 29978,208698,976985,NULL,NULL,NULL,0,NULL,NULL 29979,1227882,745933,Critic Yearling,NULL,NULL,0,NULL,NULL 29980,335304,1239947,NULL,NULL,NULL,0,NULL,NULL 29981,304084,365358,Nice Answer Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 29982,123025,65925,Famous Question Nice Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 29983,126230,118240,Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Yearling Guru Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 29984,538569,299478,NULL,NULL,NULL,0,NULL,NULL 29985,377842,1172232,Yearling Nice Answer Enlightened Yearling firebase Yearling,NULL,NULL,0,NULL,NULL 29986,720128,606109,Famous Question Nice Question Popular Question Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 29987,86009,1035792,Good Answer Nice Question Popular Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 29988,89643,175416,Guru Notable Question Good Answer Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 29989,52285,269171,Famous Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 29990,47525,691561,NULL,NULL,NULL,0,NULL,NULL 29991,128626,290336,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 29992,6330941,1399760,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 29993,1172013,1399760,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 29994,183538,1218098,NULL,NULL,NULL,0,NULL,NULL 29995,189942,1243579,Popular Question,NULL,NULL,0,NULL,NULL 29996,200766,1083844,NULL,NULL,NULL,0,NULL,NULL 29997,132059,41071,Nice Answer Nice Answer Nice Answer Enlightened Good Answer windows-8 Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer mediawiki-api Nice Answer Announcer task-parallel-library Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Great Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer Nice Answer Good Question vb.net Nice Question Nice Answer Enlightened Good Answer Nice Answer Guru Announcer Announcer Guru Nice Answer Good Answer Popular Question Nice Answer Guru Good Question Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Famous Question Good Answer .net-core Disciplined Good Answer Tumbleweed Nice Answer Enlightened Nice Answer c#-6.0 Nice Answer Good Answer Good Question Nice Answer asp.net Nice Answer Good Question Necromancer Nice Answer Caucus Good Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Famous Question Nice Answer concurrency Nice Answer Guru Enlightened Nice Answer Enlightened Nice Answer Enlightened string Necromancer Nice Answer Nice Answer Enlightened Census Nice Answer Announcer Notable Question arrays Guru Announcer Nice Answer Enlightened Nice Answer Enlightened multithreading Good Answer Famous Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Guru Great Answer Nice Answer Enlightened task Announcer Great Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer visual-studio Nice Answer Good Answer Announcer Nice Answer Nice Answer Announcer Good Question Good Answer Great Answer Populist Caucus Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Announcer Nice Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Necromancer Documentation User Great Answer Guru Nice Answer Nice Answer Great Answer .net-core Guru Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Good Answer Announcer Nice Answer Enlightened Yearling Good Answer Necromancer Nice Answer Census Popular Question Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Question Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Great Answer Caucus Announcer linq-to-xml Good Answer Popular Question Good Answer c#-7.0 Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Necromancer Nice Question Announcer Nice Answer Booster asp.net-core Famous Question Announcer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Good Answer Famous Question Nice Answer Enlightened Nice Answer Announcer Nice Answer Guru Good Answer Announcer Nice Answer Enlightened Good Answer Notable Question Nice Answer Yearling Announcer,NULL,NULL,1,NULL,Setting IOCP thread count int NET Core net core pIn classic NET use IOCP for high performance sockets as follows ppre codeThreadPool GetMinThreads out int minWorkerThreads out int minCompletionPortThreads ThreadPool SetMinThreads minWorkerThreads Math Max 16 minCompletionPortThreads code prep NET Core does not expose these methods and it has significant impact on my socket performance ppIs there workaround or is this being addressed in future release of NET core href https apisof net catalog System Threading ThreadPool GetMinThreads Int32 Int32 rel nofollow noreferrer codeGetMinThreads code and href https apisof net catalog System Threading ThreadPool SetMinThreads Int32 Int32 rel nofollow noreferrer codeSetMinThreads code are coming back in the upcoming Net Core and Net Standard ppIn the meantime the methods exist on Net Core but are not exposed This means you can use reflection to call them ppre class lang cs prettyprint override codedelegate void GetMinThreadsDelegate out int workerThreads out int completionPortThreads delegate bool SetMinThreadsDelegate int workerThreads int completionPortThreads …var getMinThreads GetMinThreadsDelegate typeof ThreadPool GetMethod GetMinThreads CreateDelegate typeof GetMinThreadsDelegate var setMinThreads SetMinThreadsDelegate typeof ThreadPool GetMethod SetMinThreads CreateDelegate typeof SetMinThreadsDelegate getMinThreads out int minWorkerThreads out int minCompletionPortThreads setMinThreads minWorkerThreads Math Max 16 minCompletionPortThreads code prepThis code seems to work fine for me on Net Core on Windows 10 and Ubuntu 16 04 You ll have to verify yourself if it actually improves performance especially considering that Unix operating systems do not have IOCPs 29998,2262652,1530223,Notable Question,NULL,NULL,0,NULL,NULL 29999,223043,1066443,NULL,NULL,NULL,0,NULL,NULL 30000,54103,1299422,NULL,NULL,NULL,0,NULL,NULL 30001,88868,1322743,NULL,NULL,NULL,0,NULL,NULL 30002,26831,522090,NULL,NULL,NULL,0,NULL,NULL 30003,16639,12560,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30004,505006,1136755,Student Scholar Supporter,NULL,NULL,0,NULL,NULL 30005,12543,546420,NULL,NULL,NULL,0,NULL,NULL 30006,448420,671728,Guru Yearling Caucus Yearling Notable Question Caucus Yearling Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 30007,396768,263407,Yearling Nice Question Good Question Popular Question Mortarboard Great Question Notable Question Favorite Question Popular Question Yearling Nice Question Custodian Nice Question Notable Question Yearling Popular Question Good Question Stellar Question,NULL,NULL,0,NULL,NULL 30008,451990,804905,NULL,NULL,NULL,0,NULL,NULL 30009,319376,1019673,Critic Commentator Caucus Yearling Caucus Constituent,NULL,pYou can do this using the href https developer apple com documentation foundation processinfo 1415622 processorcount rel nofollow noreferrer sysctl utility pp codesysctl hw ncpu code Doesnt work on Early 2015 Mac running El Capitan get error hw ncpu is an unknown key There is no cpu related entry in etc sysctl conf as well Frozen Flame answer worked,0,NULL,NULL 30010,954500,910109,Census,NULL,NULL,0,NULL,NULL 30011,820327,369668,Tumbleweed Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 30012,314001,1055501,Enthusiast Announcer Announcer Caucus Editor,NULL,NULL,0,NULL,NULL 30013,122788,1134791,Popular Question,NULL,NULL,0,NULL,NULL 30014,291899,503914,NULL,NULL,NULL,0,NULL,NULL 30015,230641,391146,Notable Question Inquisitive Popular Question Popular Question Famous Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Necromancer Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30016,204802,1312849,NULL,NULL,NULL,0,NULL,NULL 30017,145330,656586,NULL,NULL,NULL,0,NULL,NULL 30018,326174,976036,NULL,NULL,NULL,0,NULL,NULL 30019,140597,408296,NULL,NULL,NULL,0,NULL,NULL 30020,33895,535912,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30021,848681,774888,NULL,NULL,NULL,0,NULL,NULL 30022,18999,1258871,NULL,NULL,NULL,0,NULL,NULL 30023,264728,573034,Yearling Notable Question Famous Question Popular Question Popular Question Notable Question Famous Question Revival Good Answer Notable Question Good Question Notable Question Good Question Popular Question Caucus Constituent Good Question Yearling Nice Question Popular Question Announcer Caucus Announcer Constituent Necromancer Steward Pundit Documentation User Nice Answer Nice Answer Announcer Nice Answer Reviewer Census Yearling Popular Question Nice Answer Archaeologist Caucus Announcer Good Answer Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30024,110975,1379366,NULL,NULL,NULL,0,NULL,NULL 30025,13206,934354,NULL,NULL,NULL,0,NULL,NULL 30026,95028,612458,NULL,NULL,NULL,0,NULL,NULL 30027,2365389,530261,NULL,NULL,NULL,0,NULL,NULL 30028,84470,1282876,NULL,NULL,NULL,0,NULL,NULL 30029,30792,853075,Popular Question Nice Answer Notable Question Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30030,20070,1029738,NULL,NULL,NULL,0,NULL,NULL 30031,49464,762694,Commentator,NULL,NULL,0,NULL,NULL 30032,294387,746501,NULL,NULL,NULL,0,NULL,NULL 30033,728720,1122441,Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 30034,543936,954071,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30035,430042,1538343,Necromancer,NULL,NULL,0,NULL,NULL 30036,212835,188622,Nice Answer Good Answer Notable Question Nice Answer Yearling Necromancer Nice Answer Revival Good Answer Nice Answer Yearling Necromancer Tumbleweed java Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 30037,173732,1241547,Nice Answer Yearling Good Answer Great Answer Guru Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 30038,134176,291939,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30039,169660,27349,Necromancer Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 30040,1346272,755537,Notable Question,NULL,NULL,0,NULL,NULL 30041,99676,1209457,NULL,NULL,NULL,0,NULL,NULL 30042,30552,681076,Yearling Caucus Constituent Commentator Custodian Good Answer Caucus Constituent Custodian Editor Citizen Patrol Organizer Critic Yearling Caucus Guru,NULL,How do recompile an Elixir project and reload it from within iex elixir mix pI currently learning Elixir by going through the OTP and mix tutorial on the elixir lang website and having trouble finding out how to recompile and reload the project from within the shell ppIn Erlang would do codemake all load code and it would compile and load any changes that occurred However in codeiex code that always says code up to date code which does make sense as Elixir uses mix for it compiling needs ppI can find any equivalent from within iex Did you try in iex Note that you can invoke help in iex by calling See around if some of that can help you How do recompile an Elixir project and reload it from within iex elixir mix pI currently learning Elixir by going through the OTP and mix tutorial on the elixir lang website and having trouble finding out how to recompile and reload the project from within the shell ppIn Erlang would do codemake all load code and it would compile and load any changes that occurred However in codeiex code that always says code up to date code which does make sense as Elixir uses mix for it compiling needs ppI can find any equivalent from within iex Maybe you are looking for something related to http stackoverflow com questions 32540703 make elixir app recompile and reload on source code change and https groups google com forum topic elixir lang talk uU8K2NJAE70 It seems that this is duplicated with those one,0,NULL,NULL 30043,450747,1544218,NULL,NULL,NULL,0,NULL,NULL 30044,218507,567193,Announcer Revival Necromancer Scholar Yearling Revival Tumbleweed Civic Duty Announcer Self-Learner Curious,NULL,NULL,0,NULL,NULL 30045,301715,420377,Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 30046,83131,219296,NULL,NULL,NULL,0,NULL,NULL 30047,164343,422055,NULL,NULL,NULL,0,NULL,NULL 30048,45019,891514,NULL,NULL,NULL,0,NULL,NULL 30049,731175,592524,NULL,NULL,NULL,0,NULL,NULL 30050,568131,617594,NULL,NULL,NULL,0,NULL,NULL 30051,199604,645430,Good Answer Yearling,NULL,NULL,0,NULL,NULL 30052,136596,383085,NULL,NULL,NULL,0,NULL,NULL 30053,52983,61337,Enlightened Yearling Nice Answer Enlightened Popular Question Famous Question Good Answer Popular Question Revival Nice Answer Enlightened Yearling symfony Nice Answer Nice Question Notable Question Notable Question Yearling Benefactor Nice Answer,NULL,NULL,0,NULL,NULL 30054,333802,618369,Yearling Good Answer Necromancer Nice Answer Nice Answer Yearling Notable Question Nice Question Revival Yearling Guru,NULL,NULL,0,NULL,NULL 30055,22167,1507446,NULL,NULL,NULL,0,NULL,NULL 30056,25224,663956,Tumbleweed Yearling Popular Question Popular Question Good Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30057,9108,56565,NULL,NULL,NULL,0,NULL,NULL 30058,154923,875850,Necromancer Nice Answer Yearling Popular Question Caucus Popular Question Caucus Good Answer Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 30059,92777,545111,NULL,NULL,NULL,0,NULL,NULL 30060,479233,207782,Caucus Constituent Documentation User,NULL,NULL,0,NULL,NULL 30061,35059,730723,NULL,NULL,NULL,0,NULL,NULL 30062,62101,301725,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 30063,161529,331120,NULL,NULL,NULL,0,NULL,NULL 30064,193124,437311,NULL,NULL,NULL,0,NULL,NULL 30065,183806,1057997,NULL,NULL,NULL,0,NULL,NULL 30066,392178,353920,Yearling,NULL,NULL,0,NULL,NULL 30067,80949,1352421,NULL,NULL,NULL,0,NULL,NULL 30068,421538,279104,Nice Question Popular Question Yearling Nice Question Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Nice Question Nice Question Notable Question Favorite Question Nice Question Custodian Excavator Yearling Caucus Informed Famous Question Notable Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 30069,43437,752111,NULL,NULL,NULL,0,NULL,NULL 30070,117931,142476,Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 30071,85138,486698,Supporter Revival,NULL,NULL,0,NULL,NULL 30072,329605,894396,NULL,NULL,NULL,0,NULL,NULL 30073,29633,164469,Yearling,NULL,NULL,0,NULL,NULL 30074,359521,1043777,Editor Scholar,NULL,NULL,0,NULL,NULL 30075,187029,679655,NULL,NULL,NULL,0,NULL,NULL 30076,41488,1378,NULL,NULL,NULL,0,NULL,NULL 30077,112082,307819,Informed Autobiographer Teacher Necromancer Nice Answer Caucus Yearling Notable Question Good Answer Yearling Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 30078,307221,113622,NULL,NULL,NULL,0,NULL,NULL 30079,192187,297990,Necromancer Nice Answer Nice Answer Good Question,NULL,NULL,0,NULL,NULL 30080,145414,823533,Critic Yearling Necromancer Census Yearling Necromancer Caucus Necromancer Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 30081,181459,1115300,NULL,NULL,NULL,0,NULL,NULL 30082,27017,221467,Notable Question Notable Question Popular Question Editor,NULL,NULL,0,NULL,NULL 30083,54628,1107651,Nice Answer Popular Question Taxonomist Notable Question Revival Talkative Good Answer Popular Question Nice Question Altruist Inquisitive Announcer Custodian Documentation Pioneer Nice Answer Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Caucus Nice Answer Enlightened Popular Question Yearling Notable Question Notable Question Popular Question Custodian Famous Question Good Answer Announcer Notable Question Nice Answer Popular Question Notable Question Documentation User Nice Question Popular Question Yearling Good Answer Notable Question Notable Question Nice Answer Enlightened Nice Question Popular Question Famous Question Famous Question Good Question Popular Question Good Answer Popular Question Notable Question Nice Question Announcer,NULL,NULL,1,CocoaPods and Swift ios swift swift3 cocoapods xcode8 pI just want to try Swift in one of my projects Xcode open the migration window to update my project to use Swift ppThe problem is just want to to update my project and leave the Pods project untouched because any changes will be discard after run the codepod install code again ppAnyone already have solution for that Android databinding alpha4 not working for include tags android data binding pI have the following layout ppre code lt layout xmlns android http schemas android com apk res android xmlns app http schemas android com apk res auto xmlns tools http schemas android com tools gt lt data gt lt variable name foo type Bar gt lt data gt lt layout gt code prepAnd used the include layout as the follow ppre code lt include android id id id layout foo app foo foo gt code prepWhen using android databinding codekapt com android databinding compiler code everything works fine but when update to the currently version codekapt com android databinding compiler alpha4 code got the following error ppre code kapt An exception occurred org jetbrains kotlin kapt3 diagnostic KaptError Exception while annotation processing at org jetbrains kotlin kapt3 AnnotationProcessingKt doAnnotationProcessing annotationProcessing kt 75 at org jetbrains kotlin kapt3 AnnotationProcessingKt doAnnotationProcessing default annotationProcessing kt 42 at org jetbrains kotlin kapt3 AbstractKapt3Extension analysisCompleted Kapt3Extension kt 149 at org jetbrains kotlin kapt3 ClasspathBasedKapt3Extension analysisCompleted Kapt3Extension kt 76 at org jetbrains kotlin resolve jvm TopDownAnalyzerFacadeForJVM analyzeFilesWithJavaIntegration invoke TopDownAnalyzerFacadeForJVM kt 89 at org jetbrains kotlin resolve jvm TopDownAnalyzerFacadeForJVM analyzeFilesWithJavaIntegration TopDownAnalyzerFacadeForJVM kt 99 at org jetbrains kotlin resolve jvm TopDownAnalyzerFacadeForJVM analyzeFilesWithJavaIntegration default TopDownAnalyzerFacadeForJVM kt 76 at org jetbrains kotlin cli jvm compiler KotlinToJVMBytecodeCompiler analyze analyze KotlinToJVMBytecodeCompiler kt 347 at org jetbrains kotlin cli common messages AnalyzerWithCompilerReport analyzeAndReport AnalyzerWithCompilerReport kt 104 at org jetbrains kotlin cli jvm compiler KotlinToJVMBytecodeCompiler analyze KotlinToJVMBytecodeCompiler kt 336 at org jetbrains kotlin cli jvm compiler KotlinToJVMBytecodeCompiler compileModules KotlinToJVMBytecodeCompiler kt 131 at org jetbrains kotlin cli jvm K2JVMCompiler doExecute K2JVMCompiler kt 165 at org jetbrains kotlin cli jvm K2JVMCompiler doExecute K2JVMCompiler kt 54 at org jetbrains kotlin cli common CLICompiler exec CLICompiler java 178 at org jetbrains kotlin daemon CompileServiceImpl execCompiler CompileServiceImpl kt 387 at org jetbrains kotlin daemon CompileServiceImpl access execCompiler CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl compile invoke CompileServiceImpl kt 355 at org jetbrains kotlin daemon CompileServiceImpl compile invoke CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl doCompile special inlined withValidClientOrSessionProxy lambda invoke CompileServiceImpl kt 784 at org jetbrains kotlin daemon CompileServiceImpl doCompile special inlined withValidClientOrSessionProxy lambda invoke CompileServiceImpl kt 93 at org jetbrains kotlin daemon common DummyProfiler withMeasure PerfUtils kt 137 at org jetbrains kotlin daemon CompileServiceImpl checkedCompile CompileServiceImpl kt 811 at org jetbrains kotlin daemon CompileServiceImpl access checkedCompile CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl doCompile invoke CompileServiceImpl kt 783 at org jetbrains kotlin daemon CompileServiceImpl doCompile invoke CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl ifAlive CompileServiceImpl kt 971 at org jetbrains kotlin daemon CompileServiceImpl ifAlive default CompileServiceImpl kt 851 at org jetbrains kotlin daemon CompileServiceImpl doCompile CompileServiceImpl kt 777 at org jetbrains kotlin daemon CompileServiceImpl access doCompile CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl compile invoke CompileServiceImpl kt 354 at org jetbrains kotlin daemon CompileServiceImpl compile invoke CompileServiceImpl kt 93 at org jetbrains kotlin daemon CompileServiceImpl ifAlive CompileServiceImpl kt 971 at org jetbrains kotlin daemon CompileServiceImpl ifAlive default CompileServiceImpl kt 851 at org jetbrains kotlin daemon CompileServiceImpl compile CompileServiceImpl kt 327 at sun reflect NativeMethodAccessorImpl invoke0 Native Method at sun reflect NativeMethodAccessorImpl invoke NativeMethodAccessorImpl java 62 at sun reflect DelegatingMethodAccessorImpl invoke DelegatingMethodAccessorImpl java 43 at java lang reflect Method invoke Method java 498 at sun rmi server UnicastServerRef dispatch UnicastServerRef java 324 at sun rmi transport Transport run Transport java 200 at sun rmi transport Transport run Transport java 197 at java security AccessController doPrivileged Native Method at sun rmi transport Transport serviceCall Transport java 196 at sun rmi transport tcp TCPTransport handleMessages TCPTransport java 568 at sun rmi transport tcp TCPTransport ConnectionHandler run0 TCPTransport java 826 at sun rmi transport tcp TCPTransport ConnectionHandler lambda run TCPTransport java 683 at java security AccessController doPrivileged Native Method at sun rmi transport tcp TCPTransport ConnectionHandler run TCPTransport java 682 at java util concurrent ThreadPoolExecutor runWorker ThreadPoolExecutor java 1142 at java util concurrent ThreadPoolExecutor Worker run ThreadPoolExecutor java 617 at java lang Thread run Thread java 745 Caused by android databinding tool util LoggedErrorException Found data binding errors data binding error msg Cannot find the setter for attribute app viewModel with parameter type com ebanx go modules statement DepositItemViewModel on com ebanx go databinding StatementItemBinding file Users guilherme Documents ego android app src main res layout item group deposit xml loc 22 29 22 37 data binding error code prepIt seems to be bug in the databinding library but was hoping if someone already has workaround for it,NULL 30084,16195,696978,Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 30085,38437,845972,Census Autobiographer Documentation User Notable Question Census,NULL,NULL,0,NULL,NULL 30086,224000,396119,c# Informed Nice Question Yearling Caucus Census Excavator Famous Question Guru Yearling Documentation User Caucus Nice Answer Enlightened Nice Answer asp.net-mvc Good Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30087,110160,655791,NULL,NULL,NULL,0,NULL,NULL 30088,28721,655791,NULL,NULL,NULL,0,NULL,NULL 30089,61658,57218,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30090,24683,789699,Popular Question,NULL,NULL,0,NULL,NULL 30091,415778,1174688,NULL,NULL,NULL,0,NULL,NULL 30092,2066620,1174688,NULL,NULL,NULL,0,NULL,NULL 30093,2714146,1189767,Informed,NULL,NULL,0,NULL,NULL 30094,84313,1189767,Informed,NULL,NULL,0,NULL,NULL 30095,199376,618397,NULL,NULL,NULL,0,NULL,NULL 30096,112259,613508,NULL,NULL,NULL,0,NULL,NULL 30097,732964,1037555,NULL,NULL,NULL,0,NULL,NULL 30098,6133688,1037555,NULL,NULL,NULL,0,NULL,NULL 30099,469607,404321,Notable Question Notable Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Electorate Good Answer Nice Question Nice Answer Enlightened Good Answer Enlightened Guru xcode Yearling Famous Question Nice Question Popular Question Nice Answer Enlightened Announcer Nice Answer Announcer Great Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 30100,3286,226224,Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 30101,845868,1197788,NULL,NULL,NULL,0,NULL,NULL 30102,6079498,1197788,NULL,NULL,NULL,0,NULL,NULL 30103,285307,993008,NULL,NULL,NULL,0,NULL,NULL 30104,1056002,1178959,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 30105,44379,504940,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30106,1386975,1295077,NULL,NULL,NULL,0,NULL,NULL 30107,44166,111783,Necromancer Popular Question Popular Question Nice Answer Good Answer Popular Question Yearling Revival Famous Question Guru Yearling Nice Question Yearling Benefactor Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 30108,472068,720288,NULL,NULL,NULL,0,NULL,NULL 30109,988871,274272,NULL,NULL,NULL,0,NULL,NULL 30110,1056755,1190651,Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 30111,1411355,25888,Notable Question Popular Question Custodian Notable Question Notable Question Nice Question Inquisitive Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Yearling Popular Question Good Question Popular Question,NULL,,0,, 30112,68719,498089,Popular Question Yearling,NULL,NULL,0,NULL,NULL 30113,441360,886151,Notable Question,NULL,NULL,0,NULL,NULL 30114,177416,332389,Nice Answer Custodian Yearling Proofreader Yearling Citizen Patrol Custodian Documentation User Informed Yearling,NULL,NULL,0,NULL,NULL 30115,79220,1248687,Nice Answer Yearling Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 30116,192214,1195038,Census Critic,NULL,NULL,0,NULL,NULL 30117,532671,1211498,NULL,NULL,NULL,0,NULL,NULL 30118,49118,652669,Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Custodian Strunk & White Custodian Custodian Custodian Custodian Proofreader Unsung Hero Popular Question Famous Question Great Answer Notable Question Caucus Constituent Nice Answer Reviewer Nice Answer jquery html Refiner Reviewer Notable Question Nice Answer Yearling Nice Answer Nice Answer Announcer Famous Question javascript Caucus Constituent css Nice Question Announcer Necromancer Popular Question Nice Answer Census Nice Answer Tag Editor Yearling Good Answer Caucus Constituent Copy Editor reactjs php Nice Answer Good Answer Nice Answer Enlightened Popular Question Notable Question Good Question Announcer,NULL,NULL,0,NULL,NULL 30119,160010,869764,Popular Question Curious Popular Question Autobiographer Custodian Citizen Patrol Custodian Informed Suffrage Vox Populi Critic Editor Explainer Yearling Tag Editor Custodian Mortarboard Yearling Tenacious,NULL,NULL,0,NULL,NULL 30120,1387782,23704,Necromancer Nice Answer Enlightened Popular Question Guru Notable Question Excavator Yearling Famous Question Guru Nice Answer Notable Question Yearling Popular Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30121,18296,1281540,NULL,NULL,NULL,0,NULL,NULL 30122,912690,1214077,Curious,NULL,NULL,0,NULL,NULL 30123,35553,449071,Popular Question Benefactor Announcer Yearling Necromancer Good Answer Great Answer Necromancer Good Answer Necromancer Good Answer Popular Question Nice Answer Enlightened Notable Question Yearling Documentation User Notable Question Good Question Famous Question Nice Question Good Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30124,1167325,792823,NULL,NULL,NULL,0,NULL,NULL 30125,409180,490364,Curious Promoter Famous Question Revival,NULL,pI just now wrote log handler of my own that just feeds everything to the parent process via pipe ve only been testing it for ten minutes but it seems to work pretty well pp strongNote strong This is hardcoded to codeRotatingFileHandler code which is my own use case phrh2Update now maintains this approach as package available on Pypi see href https pypi python org pypi multiprocessing logging rel noreferrer multiprocessing logging on Pypi github at href https github com jruere multiprocessing logging rel noreferrer https github com jruere multiprocessing logging h2hrh2Update Implementation h2pThis now uses queue for correct handling of concurrency and also recovers from errors correctly ve now been using this in production for several months and the current version below works without issue ppre codefrom logging handlers import RotatingFileHandlerimport multiprocessing threading logging sys tracebackclass MultiProcessingLog logging Handler def init self name mode maxsize rotate logging Handler init self self handler RotatingFileHandler name mode maxsize rotate self queue multiprocessing Queue threading Thread target self receive daemon True start def setFormatter self fmt logging Handler setFormatter self fmt self handler setFormatter fmt def receive self while True try record self queue get self handler emit record except KeyboardInterrupt SystemExit raise except EOFError break except traceback print exc file sys stderr def send self self queue put nowait def format record self record ensure that exc info and args have been stringified Removes any chance of unpickleable things inside and possibly reduces message size sent over the pipe if record args record msg record msg record args record args None if record exc info dummy self format record record exc info None return record def emit self record try self format record record self send except KeyboardInterrupt SystemExit raise except self handleError record def close self self handler close logging Handler close self code pre Thanks for this post and for Javier package to help understand the usage,0,NULL,NULL 30126,34059,951426,Yearling Announcer Scholar Caucus Census Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 30127,319543,483111,NULL,NULL,NULL,0,NULL,NULL 30128,110985,746869,NULL,NULL,NULL,0,NULL,NULL 30129,230336,491118,NULL,NULL,NULL,0,NULL,NULL 30130,465993,1448969,Necromancer Excavator Yearling Commentator Caucus Good Question,NULL,NULL,0,NULL,NULL 30131,214342,47090,Popular Question,NULL,NULL,0,NULL,NULL 30132,907111,1158892,NULL,NULL,NULL,0,NULL,NULL 30133,509364,455254,Popular Question Popular Question Notable Question Yearling Yearling Yearling Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30134,20601,331385,NULL,NULL,NULL,0,NULL,NULL 30135,1024510,386413,Notable Question Necromancer Notable Question Nice Answer Notable Question Popular Question Yearling Informed Civic Duty Good Answer Yearling Yearling Autobiographer Necromancer Nice Answer Yearling Nice Question Yearling Popular Question Necromancer Nice Question,NULL,NULL,0,NULL,NULL 30136,1178446,857728,Notable Question Excavator android Good Question Yearling Documentation Pioneer Famous Question Caucus Notable Question Nice Question Guru Nice Answer Enlightened Famous Question Notable Question Yearling Caucus Constituent Documentation User Fanatic Great Question Nice Question Census Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 30137,44222,172074,Pundit Guru Necromancer Popular Question Good Answer Yearling Nice Answer c# Necromancer Nice Answer Nice Answer Good Answer Nice Question Caucus Great Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 30138,55406,509574,NULL,NULL,NULL,0,NULL,NULL 30139,332501,502079,NULL,NULL,NULL,0,NULL,NULL 30140,108806,614595,NULL,NULL,NULL,0,NULL,NULL 30141,33436,865569,NULL,NULL,NULL,0,NULL,NULL 30142,618314,700612,NULL,NULL,NULL,0,NULL,NULL 30143,30652,968616,NULL,NULL,NULL,0,NULL,NULL 30144,242191,981981,Good Answer Yearling Good Answer Necromancer Yearling Good Answer Nice Answer Student Scholar Yearling Custodian,NULL,NULL,0,NULL,NULL 30145,746724,10687,Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30146,224880,1565353,Student,NULL,NULL,0,NULL,NULL 30147,4603372,936691,NULL,NULL,NULL,0,NULL,NULL 30148,27109,786478,NULL,NULL,NULL,0,NULL,NULL 30149,233004,545693,NULL,NULL,NULL,0,NULL,NULL 30150,1867448,806975,Explainer Famous Question Popular Question Necromancer Notable Question Good Question Popular Question Pundit Yearling Necromancer Nice Question Popular Question Notable Question Nice Question Notable Question Nice Answer Necromancer Nice Answer Notable Question Caucus Popular Question Constituent Popular Question Famous Question Nice Question Popular Question Notable Question Notable Question Necromancer Good Answer Good Answer Good Answer Nice Question Nice Answer Yearling Guru Caucus Constituent Famous Question Great Question Good Question Announcer Documentation User Popular Question Great Answer Promoter Census Populist Caucus Constituent Popular Question Popular Question Popular Question Yearling Notable Question Announcer Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 30151,473939,485005,NULL,NULL,NULL,0,NULL,NULL 30152,1174605,351975,Critic Scholar Yearling Caucus Constituent Informed Autobiographer Yearling Necromancer Custodian Custodian Caucus Yearling Necromancer Nice Answer Necromancer Popular Question Revival Necromancer,NULL,NULL,0,NULL,NULL 30153,6917,85495,Tumbleweed Popular Question Curious Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 30154,235165,788375,Yearling Nice Answer Enlightened Popular Question Caucus Popular Question Popular Question Popular Question Notable Question Famous Question Census Popular Question,NULL,NULL,0,NULL,NULL 30155,265505,412528,Necromancer Revival Notable Question Yearling Notable Question Notable Question Yearling Nice Answer Famous Question Revival Nice Answer Custodian Popular Question Yearling Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30156,365568,1355988,NULL,NULL,NULL,0,NULL,NULL 30157,145784,193447,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 30158,165631,216873,Good Question Popular Question,NULL,NULL,0,NULL,NULL 30159,178120,346655,NULL,NULL,NULL,0,NULL,NULL 30160,892394,1156089,Notable Question Notable Question Informed Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30161,145719,871018,Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 30162,644325,1141779,Yearling Nice Answer Revival Yearling Caucus Good Answer Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 30163,1363638,927748,NULL,NULL,NULL,0,NULL,NULL 30164,162767,27225,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30165,18698,1194652,NULL,NULL,NULL,0,NULL,NULL 30166,417325,1118038,Nice Answer Popular Question Popular Question ruby Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Notable Question Nice Answer Notable Question Nice Answer Enlightened Popular Question Enlightened Nice Question Popular Question Yearling Popular Question Caucus Notable Question Civic Duty Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30167,469859,762461,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30168,996527,1561291,NULL,NULL,NULL,0,NULL,NULL 30169,1511868,1239238,Popular Question Popular Question Popular Question Notable Question Notable Question Excavator,NULL,NULL,0,NULL,NULL 30170,1055115,691991,NULL,NULL,NULL,0,NULL,NULL 30171,3043554,887751,NULL,NULL,NULL,0,NULL,NULL 30172,570192,117024,Famous Question Promoter Nice Question Commentator,NULL,NULL,0,NULL,NULL 30173,1177077,949388,Nice Answer Popular Question Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30174,158837,529,Critic,NULL,NULL,0,NULL,NULL 30175,507021,842262,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 30176,236922,517879,NULL,NULL,NULL,0,NULL,NULL 30177,194750,645698,Supporter,NULL,NULL,0,NULL,NULL 30178,1372943,1263736,NULL,NULL,NULL,0,NULL,NULL 30179,637286,518917,NULL,NULL,NULL,0,NULL,NULL 30180,614251,1323807,NULL,NULL,NULL,0,NULL,NULL 30181,567473,778028,NULL,NULL,NULL,0,NULL,NULL 30182,8185339,3730,Nice Answer Yearling Nice Answer Nice Answer Great Answer Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 30183,1520610,819072,Notable Question,NULL,NULL,0,NULL,NULL 30184,46939,786852,NULL,NULL,NULL,0,NULL,NULL 30185,187045,1435453,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30186,3776796,1435453,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30187,97741,260665,Yearling Investor Excavator Announcer Yearling Nice Question Popular Question Popular Question Great Answer Announcer Announcer Yearling Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30188,55490,825428,Critic,NULL,NULL,0,NULL,NULL 30189,2661339,930169,Popular Question Teacher Curious Tumbleweed Inquisitive Nice Question Yearling Nice Question Popular Question Enthusiast Notable Question Popular Question Popular Question Popular Question Nice Question Peer Pressure Yearling Notable Question Notable Question Famous Question Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 30190,3715086,930169,Popular Question Teacher Curious Tumbleweed Inquisitive Nice Question Yearling Nice Question Popular Question Enthusiast Notable Question Popular Question Popular Question Popular Question Nice Question Peer Pressure Yearling Notable Question Notable Question Famous Question Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 30191,668183,4105,Good Question Popular Question Favorite Question Notable Question Stellar Question Yearling Nice Question Great Question Peer Pressure Notable Question Favorite Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 30192,2520627,4105,Good Question Popular Question Favorite Question Notable Question Stellar Question Yearling Nice Question Great Question Peer Pressure Notable Question Favorite Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 30193,209114,1323895,NULL,NULL,NULL,0,NULL,NULL 30194,175676,898375,Necromancer Nice Answer Great Answer Nice Answer Good Answer Guru Guru Necromancer Good Answer Yearling Famous Question Nice Answer Nice Answer Good Answer Necromancer Good Answer Yearling Nice Answer Guru Nice Answer Caucus Constituent Nice Answer Yearling,NULL,pIf photo is taken with digital camera or smartphone rotation is often stored in the photo href http en wikipedia org wiki Exchangeable image file format rel nofollow noreferrer Exif data as part of the image file You can read an image Exif meta data using the Android href http developer android com reference android media ExifInterface html rel nofollow noreferrer codeExifInterface code ppFirst create the codeExifInterface code ppre codeExifInterface exif new ExifInterface uri getPath code prepNext find the current rotation ppre codeint rotation exif getAttributeInt ExifInterface TAG ORIENTATION ExifInterface ORIENTATION NORMAL code prepConvert exif rotation to degrees ppre codeint rotationInDegrees exifToDegrees rotation code prepwhere ppre codeprivate static int exifToDegrees int exifOrientation if exifOrientation ExifInterface ORIENTATION ROTATE 90 return 90 else if exifOrientation ExifInterface ORIENTATION ROTATE 180 return 180 else if exifOrientation ExifInterface ORIENTATION ROTATE 270 return 270 return code prepThen use the image actual rotation as reference point to rotate the image using href http developer android com reference android graphics Matrix html rel nofollow noreferrer codeMatrix code ppre codeMatrix matrix new Matrix if rotation matrix preRotate rotationInDegrees code prepYou create the new rotated image with the codeBitmap createBitmap code method that take codeMatrix code as parameter ppre codeBitmap createBitmap Bitmap source int int int width int height Matrix boolean filter code prepwhere codeMatrix code holds the new rotation ppre codeBitmap adjustedBitmap Bitmap createBitmap sourceBitmap width height matrix true code prepSee these tutorials for useful source code examples pulli href http mobisocial stanford edu news 2011 08 rotating images in android rel nofollow noreferrer Rotating Images in Android lili href http android er blogspot se 2009 12 read exif information in jpeg file html rel nofollow noreferrer Read Exif information in JPEG file li ul Kalyuzhnyu thanks removed the It would work in this case try it but it doesn make any sense so removed it,0,NULL,NULL 30195,607892,98544,Good Answer Yearling Enthusiast Editor Excavator,NULL,NULL,0,NULL,NULL 30196,67798,569220,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30197,22515,849374,Commentator Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 30198,113915,614384,NULL,NULL,NULL,0,NULL,NULL 30199,835577,275347,osgi Custodian Informed Yearling Excavator Caucus Yearling Tumbleweed Nice Answer Enlightened Mortarboard Scholar Yearling Student,NULL,NULL,0,NULL,NULL 30200,150959,275347,osgi Custodian Informed Yearling Excavator Caucus Yearling Tumbleweed Nice Answer Enlightened Mortarboard Scholar Yearling Student,NULL,NULL,0,NULL,NULL 30201,463793,1177391,Revival,NULL,NULL,0,NULL,NULL 30202,115198,74683,Nice Question Yearling Famous Question Yearling Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30203,1209287,461472,NULL,NULL,NULL,0,NULL,NULL 30204,744788,624791,Nice Answer,NULL,NULL,0,NULL,NULL 30205,4886459,1159604,Yearling Nice Answer Enlightened Yearling Good Answer Caucus Notable Question Constituent Nice Answer Yearling Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 30206,121050,1162609,Yearling Nice Answer Caucus Constituent Nice Answer Enlightened Announcer Yearling Notable Question Nice Answer Nice Answer Caucus Nice Question Constituent Curious Census Yearling Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 30207,127668,663887,Supporter,NULL,NULL,0,NULL,NULL 30208,99759,161515,Popular Question Nice Question Great Answer Necromancer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 30209,95410,1059087,Caucus,NULL,NULL,0,NULL,NULL 30210,96833,261666,NULL,NULL,NULL,0,NULL,NULL 30211,281061,702138,NULL,NULL,NULL,0,NULL,NULL 30212,329589,671879,NULL,NULL,NULL,0,NULL,NULL 30213,110240,553850,Revival Necromancer,NULL,NULL,0,NULL,NULL 30214,185797,1109302,NULL,NULL,NULL,0,NULL,NULL 30215,681794,1104083,Critic,NULL,NULL,0,NULL,NULL 30216,306145,501411,NULL,NULL,NULL,0,NULL,NULL 30217,1503711,1227350,NULL,NULL,NULL,0,NULL,NULL 30218,48142,1095281,Guru Yearling Yearling Editor,NULL,NULL,0,NULL,NULL 30219,776167,1022124,NULL,NULL,NULL,0,NULL,NULL 30220,259425,641529,NULL,NULL,NULL,0,NULL,NULL 30221,638886,744414,Popular Question Populist Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 30222,170625,791203,Editor,NULL,NULL,0,NULL,NULL 30223,296689,546721,NULL,NULL,NULL,0,NULL,NULL 30224,3151589,1348441,NULL,NULL,NULL,0,NULL,NULL 30225,135579,849492,NULL,NULL,NULL,0,NULL,NULL 30226,301858,1323671,NULL,NULL,NULL,0,NULL,NULL 30227,460369,605010,NULL,NULL,NULL,0,NULL,NULL 30228,356564,92335,NULL,NULL,NULL,0,NULL,NULL 30229,127248,700223,Nice Answer,NULL,NULL,0,NULL,NULL 30230,466012,1015882,Popular Question Famous Question Revival Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30231,387888,227167,Editor Yearling Necromancer Popular Question Caucus Notable Question Nice Question,NULL,NULL,0,NULL,NULL 30232,278802,427300,Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 30233,81440,251929,NULL,NULL,NULL,0,NULL,NULL 30234,756140,276307,NULL,NULL,NULL,0,NULL,NULL 30235,6071371,339875,NULL,NULL,NULL,0,NULL,NULL 30236,559021,339875,NULL,NULL,NULL,0,NULL,NULL 30237,95758,339875,NULL,NULL,NULL,0,NULL,NULL 30238,227129,230034,NULL,NULL,NULL,0,NULL,NULL 30239,216911,465968,NULL,NULL,NULL,0,NULL,NULL 30240,420550,1478655,Necromancer Popular Question Commentator Editor Enthusiast Yearling Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 30241,694455,115817,Yearling Nice Question Caucus Constituent Famous Question Nice Question Yearling Famous Question Nice Answer Caucus Constituent Popular Question Custodian Caucus Constituent,NULL,NULL,0,NULL,NULL 30242,231431,898519,NULL,NULL,NULL,0,NULL,NULL 30243,116791,1033448,Yearling Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 30244,296458,631078,NULL,NULL,NULL,0,NULL,NULL 30245,92419,151870,NULL,NULL,NULL,0,NULL,NULL 30246,207107,1109971,NULL,NULL,NULL,0,NULL,NULL 30247,8471053,1109971,NULL,NULL,NULL,0,NULL,NULL 30248,31060,23326,Nice Answer Enlightened Good Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30249,969515,912583,Autobiographer,NULL,NULL,0,NULL,NULL 30250,150746,912583,Autobiographer,NULL,NULL,0,NULL,NULL 30251,287910,1006619,Nice Answer,NULL,NULL,1,NULL,Code signing with osslsigncode Publisher Unknown openssl nsis code signing signtool pI encountered bit peculiar behavior when trying to automate compilation and signing of particular NSIS based binary Namely codemakensis code is run under codewine code to compile the executable and afterwards the codeosslsigncode code is used to sign the binary ppExecutable seems to be built fine as it works on Windows systems however there an issue in the lack of better word with the signing As the code signing certificate is in PKCS 12 format the command used is as suggested href http sourceforge net projects osslsigncode files osslsigncode rel nofollow here pp codeosslsigncode sign pkcs12 lt pkcs12 file gt pass lt pkcs12 password gt Your Application http www yourwebsite com in yourapp exe out yourapp signed exe code ppI get Succeeded message from osslsigncode as if the signing went OK however when the binary is run on Windows Win in this case UAC says ppPublisher strongUnknown strong ppThe strange thing is that when opened the extracted cert from original code p12 code file to view it info Windows was afterwards able to recognize the publisher and the digital signature as if it somehow became aware of the certification path ppAny advice would be appreciated pp strongEDIT strong brosslsigncode versions used and pp strongEDIT strong brFor the sake of comparison tried signing with codeSignTool code and apparently it works without any problem So this looks like cert codeosslsigncode code issue but can tell what is it exactly ppI also tried codeosslsigncode code on the exact same EXE with another cert and to make matters more interesting it worked noticed certification paths differ for the certs ppSome cert details pp1 emnon working cert em brversion V3brpublic key RSA 2048 bitsbrsignature hash algorithm sha1brsignature algorithm sha1RSAbrcertification path USERTrust Comodo Code Signing CA NonWorkingCert pp2 emworking cert em brversion V3brpublic key RSA 2048 bitsbrsignature hash algorithm sha1brsignature algorithm sha1RSAbrcertification path USERTrust UTN UserFirst Object Comodo Code Signing CA WorkingCert pThis cost me several hours of head scratching but think understand now pulliWindows has its internal database of trusted certificates These include root certificates installed amp updated by Windows and additional intermediate CA certs which it has seen at various times signed by root cert or some other trusted cert liliWhen Windows UAC checks an executable signature at launch it looks in the local database for trusted certificate which has signed the root of the certificates embedded in the executable signature liliIf Windows can find trusted signing certificate maybe because the embedded cert is signed with an intermediate cert not root cert and the intermediate cert is not in the local database it leads to Unknown Publisher liliIf you view the Digital Signatures tab of the executable Properties Windows goes one step further and tries automatically to download and install any valid intermediate certs which are trusted by one of its local certs Once this intermediate cert has been added to Windows local certificate storage the signature check at executable launch will also start passing ie correct Publisher is shown href https social msdn microsoft com Forums windowsdesktop en US 8fc866f9 7c56 4895 85d5 f63d09a73b6f dpinstexe does not recognize signature immediately forum wdk rel nofollow noreferrer This MSDN answer explains the logic although the root cause they describe root cert not yet updated is different li ulpThe solution is to pass the intermediate cert to codeosslsigncode code along with the main cert href https trac torproject org projects tor ticket 17870 comment rel nofollow noreferrer to Tor Project for confirming this pulli pFind the correct intermediate CA cert Can be done via codeopenssl x509 text in cert pem code and then look for Authority Information Access CA Issuers URI Certificate identifiers serial numbers etc can also be found in Windows under the Digital Certificates tab View Certificate Certification Path pp Tip Don always trust the CA support pages to have correct info for which intermediate cert to download wasted lot of time after downloading the wrong intermediate certs from CA web page liliConvert all certs to PEM format if necessary with codeopenssl x509 in my intermediate ca crt inform der outform pem out my intermediate ca pem code or similar lili pPut the full CA chain into one PEM file with the code signing cert first codecat mycert pem my intermediate ca pem gt certchain pem code pp If code signing cert is not first in the chain Windows sees an invalid signature which is signed by the intermediate cert lili pRun codeosslsigncode certs certchain pem code pp Note also passed code sha256 code amp code ts http timestamp digicert com code although think everything will work with other combinations of options also li ul 30252,348687,1329295,NULL,NULL,NULL,0,NULL,NULL 30253,425908,1061350,NULL,NULL,NULL,0,NULL,NULL 30254,3485121,1120528,Popular Question,NULL,NULL,0,NULL,NULL 30255,440983,1179926,NULL,NULL,NULL,0,NULL,NULL 30256,157452,943758,Informed,NULL,NULL,0,NULL,NULL 30257,894264,1297972,Revival Yearling Notable Question Good Question Tumbleweed Yearling Popular Question Nice Answer Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 30258,82209,448700,Nice Answer,NULL,NULL,0,NULL,NULL 30259,493051,1148145,NULL,NULL,NULL,0,NULL,NULL 30260,247524,873517,NULL,NULL,NULL,0,NULL,NULL 30261,825837,940731,Notable Question Yearling Enthusiast Quorum Documentation User,NULL,NULL,0,NULL,NULL 30262,844725,940731,Notable Question Yearling Enthusiast Quorum Documentation User,NULL,NULL,0,NULL,NULL 30263,292822,108104,Popular Question,NULL,NULL,0,NULL,NULL 30264,524882,957533,Supporter Commentator,NULL,NULL,0,NULL,NULL 30265,10925436,957533,Supporter Commentator,NULL,NULL,0,NULL,NULL 30266,155262,682907,Yearling Notable Question Nice Answer Enlightened Good Answer Good Question Nice Answer Caucus Nice Answer Yearling Nice Answer Favorite Question Guru Nice Answer Yearling Notable Question Notable Question Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 30267,238225,1243336,Student Critic Caucus,NULL,NULL,0,NULL,NULL 30268,660848,1540656,NULL,NULL,NULL,0,NULL,NULL 30269,1065182,1417551,Supporter Curious Commentator,NULL,NULL,0,NULL,NULL 30270,344121,415404,Notable Question Yearling Nice Answer Popular Question Popular Question Notable Question Yearling Informed Nice Question Announcer Yearling Famous Question Good Answer Custodian Custodian Custodian Announcer Famous Question Enthusiast Notable Question Yearling Good Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30271,1362556,1484232,Popular Question Popular Question Self-Learner Critic Yearling Notable Question Popular Question Popular Question Notable Question Nice Answer Popular Question Yearling Announcer Notable Question Notable Question Notable Question Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 30272,1201487,465123,NULL,NULL,NULL,0,NULL,NULL 30273,3290093,814467,Teacher Popular Question,NULL,NULL,0,NULL,NULL 30274,1518631,1036136,Good Answer,NULL,NULL,0,NULL,NULL 30275,52813,165633,Nice Question Popular Question Popular Question Yearling Nice Answer Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30276,136356,114983,Announcer,NULL,NULL,0,NULL,NULL 30277,6380,754013,Autobiographer,NULL,NULL,0,NULL,NULL 30278,232398,805647,Civic Duty Nice Question Yearling Caucus Necromancer Nice Answer Nice Question Caucus Constituent Documentation User Custodian Yearling Famous Question Necromancer,NULL,NULL,0,NULL,NULL 30279,296528,535308,Yearling Nice Answer Yearling Yearling Caucus Good Answer Custodian Necromancer Great Answer,NULL,NULL,0,NULL,NULL 30280,903378,1139847,Yearling Caucus Yearling Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 30281,149888,1330118,Yearling Enlightened Nice Answer Organizer Revival Autobiographer Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 30282,515214,1280802,NULL,NULL,NULL,0,NULL,NULL 30283,333649,569172,Yearling Autobiographer,NULL,NULL,0,NULL,NULL 30284,338976,541435,NULL,NULL,NULL,0,NULL,NULL 30285,35403,1060126,NULL,NULL,NULL,0,NULL,NULL 30286,679996,228821,Good Answer Yearling,NULL,NULL,0,NULL,NULL 30287,375254,955558,Popular Question Teacher Popular Question Caucus Constituent Notable Question Popular Question Yearling Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 30288,99406,1003780,Yearling Nice Answer Announcer Caucus Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 30289,229083,264003,Famous Question Notable Question Famous Question Nice Question Famous Question Popular Question Popular Question Yearling Good Question Popular Question Popular Question Famous Question Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 30290,733577,1294506,NULL,NULL,NULL,0,NULL,NULL 30291,1130792,553565,NULL,NULL,NULL,0,NULL,NULL 30292,318911,279039,NULL,NULL,NULL,0,NULL,NULL 30293,116658,1117041,NULL,NULL,NULL,0,NULL,NULL 30294,161564,131290,Notable Question Commentator Critic Yearling,NULL,pIf you re doing complex layered drawing you can use globalCompositeOperation to emulate clipping in second scratch canvas You can then use drawImage to copy the scratch canvas back into the original canvas can guarantee the performance of this approach but it the only way know to get what you want ppre code set up probably only needs to be done oncevar scratchCanvas document createElement canvas scratchCanvas width 100 scratchCanvas height 100 var scratchCtx scratchCanvas getContext 2d drawing codescratchCtx clearRect scratchCanvas width scratchCanvas height scratchCtx globalCompositeOperation source over default Do whatever drawing you want In your case draw your image scratchCtx drawImage imageToCrop As long as we can represent our clipping region as single path we can perform our clipping by using non default composite operation You can think of destination in as write alpha It will not touch the color channel of the canvas but will replace the alpha channel Actually it will multiply the already drawn alpha with the alpha currently being drawn meaning that things look good where two anti aliased pixels overlap If you can represent the clipping region as single path you can always draw your clip shape into yet another scratch canvas scratchCtx fillStyle fff color doesn matter but we want full opacityscratchCtx globalCompositeOperation destination in scratchCtx beginPath scratchCtx arc 50 50 50 Math PI true scratchCtx closePath scratchCtx fill Now that we have nice cropped image we can draw it in our actual canvas We can even draw it over top existing pixels and everything will look great ctx drawImage scratchCanvas code prepThe reason that we do this in scratch canvas is that destination in is pretty destructive operation If you had already drawn some things into the main canvas perhaps you put down nice gradient in the background and then wanted to draw clipped image the clipping circle would also clip out everything you had already drawn Of course if your particular situation is simpler maybe ALL you want to draw is clipped image then you can forego the scratch canvas ppYou can play around with the different clipping modes on href http balefrost org programming CanvasComposite index html rel noreferrer my demo page The bottom row with the gradients is not too useful to you but the top row with the circle and square is much more relevant pp strongedit strong ppWhoops accidentally href http jsfiddle net balefrost ZRA76 82 rel noreferrer forked your JSFiddle to demonstrate the technique thanks man It works,0,NULL,NULL 30295,541267,198087,Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Custodian Caucus Popular Question Famous Question Notable Question Famous Question Famous Question Taxonomist Popular Question Popular Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 30296,497675,198087,Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Custodian Caucus Popular Question Famous Question Notable Question Famous Question Famous Question Taxonomist Popular Question Popular Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 30297,455546,602151,Yearling Necromancer Yearling Notable Question Quorum Yearling Popular Question Promoter Curious Popular Question,NULL,NULL,0,NULL,NULL 30298,434880,668346,NULL,NULL,NULL,0,NULL,NULL 30299,930834,870011,Good Answer Popular Question Yearling Caucus Popular Question Famous Question Yearling Nice Answer Electorate Custodian Organizer Critic Yearling,NULL,NULL,0,NULL,NULL 30300,594170,722948,Notable Question Popular Question Suffrage Popular Question,NULL,NULL,0,NULL,NULL 30301,914524,471006,Notable Question,NULL,NULL,0,NULL,NULL 30302,107901,833271,NULL,NULL,NULL,0,NULL,NULL 30303,664417,289935,Notable Question Commentator,NULL,NULL,0,NULL,NULL 30304,301098,214841,Notable Question Nice Question Nice Question Notable Question Good Question Nice Question Notable Question Nice Answer Yearling Nice Answer Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Nice Answer Nice Answer Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 30305,7874,972789,Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Necromancer Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Popular Question Nice Question Yearling Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question ruby Popular Question Famous Question Popular Question Notable Question Notable Question Good Question Custodian Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Great Question Popular Question Famous Question Revival Good Question Popular Question Popular Question Famous Question Popular Question Popular Question Favorite Question Nice Question Popular Question Yearling Nice Answer Popular Question Famous Question Popular Question Nice Answer Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Nice Question Socratic Notable Question Popular Question Notable Question Popular Question Famous Question Nice Answer Popular Question Popular Question Popular Question Popular Question Revival Popular Question Good Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Good Question Notable Question,NULL,Reflecting Heroku push version within the app git ruby on rails heroku pEvery time push my app to heroku see the line ppre code gt Launching done v43 code prepIs there way to make that version number apear within the app so other people can see that number as this question was asked years ago will leave it as is since don have way to check what is the better solution for me will bump you up for good measures,0,NULL,NULL 30306,859139,1068746,Popular Question Nice Question Revival Necromancer Popular Question Popular Question Famous Question Necromancer Necromancer Nice Answer Enlightened Necromancer Revival Popular Question Notable Question Nice Question Nice Question Famous Question Necromancer Notable Question Nice Answer Popular Question Necromancer Popular Question Taxonomist Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Necromancer Notable Question Popular Question Yearling Nice Answer Popular Question Good Answer Nice Question Good Answer Stellar Question Popular Question Necromancer Revival Nice Answer Nice Answer Popular Question Notable Question Notable Question Announcer Nice Question Guru Notable Question Good Question Notable Question Necromancer Notable Question Announcer Necromancer Nice Question Notable Question Popular Question Popular Question Necromancer Custodian Popular Question Yearling Popular Question Nice Question Popular Question Custodian Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Nice Question Popular Question Nice Answer Necromancer Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30307,317008,1074010,Popular Question,NULL,NULL,0,NULL,NULL 30308,2984438,620439,NULL,NULL,NULL,0,NULL,NULL 30309,7300083,620439,NULL,NULL,NULL,0,NULL,NULL 30310,55253,862787,NULL,NULL,NULL,0,NULL,NULL 30311,394204,686994,Commentator Necromancer,NULL,NULL,0,NULL,NULL 30312,365017,1008223,NULL,NULL,NULL,0,NULL,NULL 30313,185918,513710,Supporter,NULL,NULL,0,NULL,NULL 30314,178814,19856,node.js Notable Question Popular Question Good Question Peer Pressure Good Question Popular Question Notable Question Notable Question Famous Question javascript Notable Question Notable Question Popular Question Good Answer Famous Question Popular Question Popular Question Custodian Popular Question Notable Question Popular Question jquery c# Yearling Popular Question Nice Question Notable Question Popular Question Nice Answer Notable Question Caucus Good Question Notable Question Nice Answer Enlightened Popular Question Popular Question Popular Question Nice Question Explainer Popular Question Popular Question Notable Question Good Answer Notable Question Favorite Question Notable Question Notable Question Famous Question Caucus Constituent Custodian Yearling Popular Question Documentation User Popular Question Nice Question Popular Question Popular Question Famous Question Nice Answer Good Answer Notable Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Good Question Notable Question Popular Question Benefactor Famous Question Guru Popular Question Yearling Popular Question Nice Question Notable Question Stellar Question,NULL,NULL,0,NULL,NULL 30315,2730056,1122573,NULL,NULL,NULL,0,NULL,NULL 30316,318732,322152,Nice Question Excavator Popular Question Yearling Popular Question Good Question Notable Question Self-Learner Yearling Announcer Famous Question Necromancer,NULL,NULL,0,NULL,NULL 30317,473268,1032006,Notable Question Good Answer Yearling Popular Question Nice Answer Popular Question Notable Question Nice Question Guru Good Answer Yearling Famous Question Nice Question Famous Question python Yearling,NULL,NULL,0,NULL,NULL 30318,818919,1124321,Necromancer,NULL,NULL,0,NULL,NULL 30319,6084,327751,Yearling Yearling,NULL,NULL,0,NULL,NULL 30320,242821,1315889,NULL,NULL,NULL,0,NULL,NULL 30321,201650,235374,Editor Commentator Critic Census Yearling Caucus,NULL,NULL,0,NULL,NULL 30322,683251,742950,NULL,NULL,NULL,0,NULL,NULL 30323,96053,321633,Student,NULL,NULL,0,NULL,NULL 30324,389944,1143415,NULL,NULL,NULL,0,NULL,NULL 30325,277164,55564,Notable Question,NULL,NULL,0,NULL,NULL 30326,992464,588117,Notable Question,NULL,NULL,0,NULL,NULL 30327,146374,690841,NULL,NULL,NULL,0,NULL,NULL 30328,115925,619923,Supporter,NULL,NULL,0,NULL,NULL 30329,534648,1540037,Good Answer Yearling Popular Question Notable Question Yearling Nice Answer Revival Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 30330,137042,311268,Popular Question Nice Answer Nice Answer Yearling Necromancer Announcer Nice Answer Yearling Announcer Notable Question Caucus Custodian Necromancer,NULL,NULL,0,NULL,NULL 30331,30229,705095,NULL,NULL,NULL,0,NULL,NULL 30332,161060,425186,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30333,971976,692419,NULL,NULL,NULL,0,NULL,NULL 30334,458387,97204,Curious Yearling,NULL,NULL,0,NULL,NULL 30335,65057,197507,Guru Civic Duty Yearling Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 30336,1341600,1011588,NULL,NULL,NULL,0,NULL,NULL 30337,539510,588817,Necromancer Yearling,NULL,NULL,0,NULL,NULL 30338,443126,595120,Curious Announcer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 30339,25907,499289,NULL,NULL,NULL,0,NULL,NULL 30340,1515297,1309321,Notable Question,NULL,NULL,0,NULL,NULL 30341,399851,951833,NULL,NULL,NULL,0,NULL,NULL 30342,1636833,1463456,NULL,NULL,NULL,0,NULL,NULL 30343,1004640,535834,NULL,NULL,NULL,0,NULL,NULL 30344,262285,161650,NULL,NULL,NULL,0,NULL,NULL 30345,751917,1008239,NULL,NULL,NULL,0,NULL,NULL 30346,40822,1142298,NULL,NULL,NULL,0,NULL,NULL 30347,661756,973021,NULL,NULL,NULL,0,NULL,NULL 30348,112638,647372,NULL,NULL,NULL,0,NULL,NULL 30349,37799,647372,NULL,NULL,NULL,0,NULL,NULL 30350,334171,1403470,Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 30351,23268,204221,Scholar,NULL,NULL,0,NULL,NULL 30352,31786,497955,Nice Answer,NULL,NULL,0,NULL,NULL 30353,14404,1304626,Revival Civic Duty Yearling Popular Question Yearling Popular Question Popular Question Notable Question Good Answer Notable Question Yearling Cleanup,NULL,NULL,0,NULL,NULL 30354,21165,428779,Caucus Famous Question Announcer,NULL,NULL,0,NULL,NULL 30355,73494,1366591,Nice Question Popular Question Popular Question Caucus Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 30356,48735,314917,NULL,NULL,NULL,0,NULL,NULL 30357,1177888,498902,Famous Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30358,4679377,498902,Famous Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30359,723065,506305,Popular Question Notable Question Notable Question Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 30360,68434,144263,NULL,NULL,NULL,0,NULL,NULL 30361,138517,212145,NULL,NULL,NULL,0,NULL,NULL 30362,46948,1236144,NULL,NULL,NULL,0,NULL,NULL 30363,18582,594416,NULL,NULL,NULL,0,NULL,NULL 30364,393518,461632,Nice Answer Nice Answer Good Answer Yearling Nice Question Nice Answer Good Answer Yearling Good Question Nice Answer Caucus Guru Yearling Revival,NULL,NULL,0,NULL,NULL 30365,77291,108205,Good Answer python-imaging-library class Great Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Populist Guru Nice Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer Populist Necromancer list Good Answer python-2.7 Nice Answer Notable Question Nice Answer Guru Nice Answer Enlightened Good Answer tkinter Informed Sportsmanship Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Census Nice Answer image Guru Announcer inheritance Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Revival Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Documentation User Nice Answer Revival Revival Peer Pressure Nice Answer Nice Answer Nice Answer Census Good Answer Nice Answer Enlightened Nice Answer metaclass python-3.x Nice Question Nice Answer pygame Nice Answer Enlightened Yearling Good Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Announcer decorator Good Answer Good Answer,NULL,NULL,1,NULL,How to monkey patch python list setitem method python ctypes introspection pI like to monkey patch Python lists in particular replacing the code setitem code method with custom code Note that am not trying to emextend em but to emoverwrite em the builtin types For example ppre class lang py prettyprint override code gt gt gt Monkey Patch Replace list setitem with Noop gt gt gt myList gt gt gt myList Nope gt gt gt myList code prepYes know that is downright emperverted em thing to do to python code No my usecase doesn really make sense Nonetheless strongcan it be done strong ph2Possible avenues h2ulli href https stackoverflow com 24498525 140264 Setting read only attribute on builtins using ctypes liliThe href http clarete li forbiddenfruit rel nofollow noreferrer codeforbiddenfruit code module allows patching of builtins but does not work when trying to override the list methods lili href https gist github com mahmoudimus 295200 rel nofollow noreferrer This Gist also manages monkey patching of builtin by manipulating the object dictionary ve updated it to Python3 href https gist github com bricef 1b0389ee89bd5b55113c7f3f3d6394ae rel nofollow noreferrer here but it still doesn allow overriding of the methods liliThe href https github com tobgu pyrthon rel nofollow noreferrer Pyrthon library overrides the list type in module to make it immutable by using AST transformation This could be worth investigating li ulh2Demonstrative example h2pI actually manage to override the methods themselves as shown below ppre class lang py prettyprint override codeimport ctypesdef magic get dict find address of dict whose offset is stored in the type dict addr id type dictoffset retrieve the dict object itself dict ptr ctypes cast dict addr ctypes POINTER ctypes py object return dict ptr contents valuedef magic flush mro cache ctypes PyDLL None PyType Modified ctypes cast id object ctypes py object print list setitem dct magic get dict list dct setitem lambda smagic flush mro cache print list setitem print setitem setitem 10 20print code prepWhich outputs the following ppre code➤ python3 override py lt slot wrapper setitem of list objects gt lt function lt lambda gt at 0x10de43f28 gt lt bound method lt lambda gt of gt 20 code prepBut as shown in the output this doesn seem to affect the normal syntax for setting an item codex code ph2Alternative Monkey patching an individual list instance h2pAs lesser alternative if was able to monkey patch an individual list instance this could work too Perhaps by changing the class pointer of the list to custom class pCan be done If you do force that using CTypes you will just crash the Python runtime faster than anything else as many things itnernally just make use of Python data types 30366,157239,937794,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30367,315675,1169592,Yearling Notable Question,NULL,NULL,0,NULL,NULL 30368,487972,319342,Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30369,430279,969070,Popular Question Excavator Yearling Electorate Nice Question Nice Question Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30370,18812,782043,NULL,NULL,NULL,0,NULL,NULL 30371,178249,1424524,Student Scholar Popular Question Critic,NULL,NULL,0,NULL,NULL 30372,298140,822268,NULL,NULL,NULL,0,NULL,NULL 30373,1374196,726954,Nice Question Favorite Question Revival Good Answer Notable Question Nice Question Good Answer Famous Question Popular Question Good Question Yearling Favorite Question Famous Question Popular Question Popular Question Popular Question Famous Question Necromancer Notable Question Good Question Popular Question Caucus Famous Question Necromancer Announcer Necromancer Famous Question Necromancer Necromancer Popular Question Good Answer Nice Answer Notable Question Yearling Famous Question Notable Question Popular Question android Nice Answer Caucus Nice Answer Constituent Good Answer Famous Question Nice Answer Notable Question Great Question Nice Answer Nice Answer Famous Question Notable Question Custodian Revival Census Good Question Revival Caucus Nice Answer Announcer Notable Question Yearling Necromancer Nice Question Nice Answer Good Question Nice Question Popular Question Notable Question Famous Question Famous Question Good Answer Custodian,NULL,NULL,0,NULL,NULL 30374,383555,344199,Yearling Popular Question Nice Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 30375,728240,561037,NULL,NULL,NULL,0,NULL,NULL 30376,118531,500504,NULL,NULL,NULL,0,NULL,NULL 30377,44173,883189,NULL,NULL,NULL,0,NULL,NULL 30378,337836,707143,NULL,NULL,NULL,0,NULL,NULL 30379,75526,427178,Great Answer Popular Question Notable Question Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 30380,55800,383863,NULL,NULL,NULL,0,NULL,NULL 30381,1894976,1395927,NULL,NULL,NULL,0,NULL,NULL 30382,395015,754534,Revival Popular Question Necromancer Notable Question Yearling Popular Question Self-Learner Announcer Yearling Critic Notable Question Nice Answer Enlightened Custodian Custodian Notable Question Civic Duty Popular Question Caucus Fanatic Yearling Documentation User Nice Question Popular Question Famous Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 30383,232662,107109,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 30384,417488,1254021,NULL,NULL,NULL,0,NULL,NULL 30385,989963,263053,Caucus Constituent Caucus Yearling Civic Duty Nice Answer Enlightened,NULL,pIn Git and later you can checkout new branch ppre codegit checkout lt branch gt code prepEdit files add and commit Then href https git scm com docs git push rel noreferrer push with the code code short for code set upstream code option ppre codegit push origin lt branch gt code prepGit will set up the tracking information during the push Is git push origin branch the same as git push origin HEAD assuming you have the branch you want to push checked out,0,NULL,NULL 30386,103155,352431,Good Question,NULL,NULL,0,NULL,NULL 30387,750605,259526,Yearling Revival Caucus Constituent Popular Question Popular Question Necromancer Popular Question Yearling Custodian Custodian Notable Question Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 30388,827601,1116125,NULL,NULL,NULL,0,NULL,NULL 30389,47033,1150133,Announcer Popular Question Announcer Informed Supporter Teacher Curious Self-Learner Announcer Critic,NULL,NULL,0,NULL,NULL 30390,675910,1345979,NULL,NULL,NULL,0,NULL,NULL 30391,1389355,949194,Notable Question,NULL,NULL,0,NULL,NULL 30392,802854,147778,Enthusiast Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 30393,566037,431757,Necromancer Autobiographer Nice Answer Enlightened Yearling Revival Yearling Student Nice Answer Revival Nice Answer Necromancer Necromancer Revival Yearling Quorum,NULL,NULL,0,NULL,NULL 30394,70514,260,Popular Question Notable Question Popular Question Popular Question Good Question Good Question Notable Question Notable Question Famous Question Yearling Nice Question Favorite Question Famous Question Notable Question Electorate Popular Question Custodian Popular Question Popular Question Notable Question Yearling Documentation User Revival Census Notable Question Good Question Necromancer Popular Question Notable Question Notable Question Informed Good Question Yearling Popular Question Famous Question Popular Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 30395,137888,573255,Yearling Popular Question Nice Answer Popular Question Notable Question Nice Question Caucus Yearling Nice Answer Good Answer Documentation User Yearling Nice Answer Enlightened Famous Question Custodian Custodian,NULL,NULL,0,NULL,NULL 30396,808391,700975,Revival Necromancer,NULL,NULL,0,NULL,NULL 30397,343870,833345,NULL,NULL,NULL,0,NULL,NULL 30398,836087,148086,Census Yearling,NULL,NULL,0,NULL,NULL 30399,25615,526872,NULL,NULL,NULL,0,NULL,NULL 30400,115228,461620,NULL,NULL,NULL,0,NULL,NULL 30401,150408,1520843,NULL,NULL,NULL,0,NULL,NULL 30402,68958,914774,Popular Question,NULL,NULL,0,NULL,NULL 30403,558789,484450,NULL,NULL,NULL,0,NULL,NULL 30404,35077,675066,Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Famous Question Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Famous Question Yearling Nice Question Popular Question Notable Question Famous Question Famous Question Good Question Good Question Notable Question Notable Question Notable Question Nice Question Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30405,287265,1472327,NULL,NULL,NULL,0,NULL,NULL 30406,394857,681949,NULL,NULL,NULL,0,NULL,NULL 30407,3638,360921,Notable Question,NULL,NULL,0,NULL,NULL 30408,808049,576135,Nice Answer,NULL,NULL,0,NULL,NULL 30409,379368,446857,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30410,1226505,790052,NULL,NULL,NULL,0,NULL,NULL 30411,166023,1173351,Self-Learner Yearling Custodian Nice Question Popular Question Critic Popular Question Caucus Notable Question Popular Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question Nice Question Documentation User Popular Question Inquisitive Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 30412,1521099,872581,NULL,NULL,NULL,0,NULL,NULL 30413,336732,1079285,NULL,NULL,NULL,0,NULL,NULL 30414,5483952,1168148,NULL,NULL,NULL,0,NULL,NULL 30415,437749,1168148,NULL,NULL,NULL,0,NULL,NULL 30416,3527925,1080641,Yearling Necromancer,NULL,NULL,0,NULL,NULL 30417,5437,820261,NULL,NULL,NULL,0,NULL,NULL 30418,543889,328183,Popular Question Editor Enthusiast Commentator,NULL,NULL,0,NULL,NULL 30419,720855,129011,NULL,NULL,NULL,0,NULL,NULL 30420,654869,1225326,Teacher Popular Question,NULL,NULL,0,NULL,NULL 30421,62456,277927,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 30422,53513,683262,Nice Answer Yearling Great Answer Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 30423,22795,345930,Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 30424,1371816,867251,NULL,NULL,NULL,0,NULL,NULL 30425,126917,550562,NULL,NULL,NULL,0,NULL,NULL 30426,4752671,1098922,NULL,NULL,NULL,0,NULL,NULL 30427,2017414,1098922,NULL,NULL,NULL,0,NULL,NULL 30428,133570,483931,Notable Question Popular Question Notable Question Notable Question Necromancer Popular Question Popular Question Caucus Nice Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30429,226239,1253317,NULL,NULL,NULL,0,NULL,NULL 30430,143606,1364186,NULL,NULL,NULL,0,NULL,NULL 30431,60748,1400087,NULL,NULL,NULL,0,NULL,NULL 30432,297256,844169,NULL,NULL,NULL,0,NULL,NULL 30433,27507,16632,Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Necromancer Cleanup Necromancer Good Answer dataframe Nice Answer Good Answer Guru Nice Answer Good Question Revival Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Necromancer Nice Answer Guru Yearling Nice Answer Great Answer Necromancer Popular Question Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Nice Answer Nice Answer Good Answer Populist Good Answer Good Answer Guru Great Answer Nice Answer Enlightened Nice Answer Good Answer Revival Nice Question Nice Answer Enlightened Good Answer Necromancer Nice Answer Nice Answer Nice Question Guru Nice Answer Nice Answer Good Answer Good Answer Caucus Nice Answer Nice Answer Nice Answer Guru Good Question Guru Nice Answer Yearling Good Answer Necromancer Announcer Nice Answer Good Answer Guru Outspoken Great Answer Notable Question Famous Question Nice Answer Favorite Question Nice Answer Popular Question Good Answer Nice Answer Good Answer Not a Robot Nice Answer Enlightened Guru Great Answer Notable Question Great Answer Great Question Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Good Answer Great Answer Guru Good Answer Necromancer Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 30434,166899,788800,Popular Question,NULL,NULL,0,NULL,NULL 30435,624110,1431828,NULL,NULL,NULL,0,NULL,NULL 30436,231670,869998,NULL,NULL,NULL,0,NULL,NULL 30437,238598,627964,NULL,NULL,NULL,0,NULL,NULL 30438,154789,21048,NULL,NULL,NULL,0,NULL,NULL 30439,619494,1203689,Popular Question,NULL,NULL,0,NULL,NULL 30440,3300583,180723,Census,NULL,NULL,0,NULL,NULL 30441,352676,180723,Census,NULL,NULL,0,NULL,NULL 30442,1539042,180723,Census,NULL,NULL,0,NULL,NULL 30443,3310169,912058,NULL,NULL,NULL,0,NULL,NULL 30444,1095038,1020016,NULL,NULL,NULL,0,NULL,NULL 30445,895835,1091804,NULL,NULL,NULL,0,NULL,NULL 30446,49730,251679,Commentator Enthusiast,NULL,NULL,0,NULL,NULL 30447,180741,1288541,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30448,252086,813179,NULL,NULL,NULL,0,NULL,NULL 30449,1075272,462420,NULL,NULL,NULL,0,NULL,NULL 30450,267678,463768,NULL,NULL,NULL,0,NULL,NULL 30451,11970,1508507,Autobiographer,NULL,NULL,0,NULL,NULL 30452,16507,598,Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Guru Guru Nice Answer Great Answer Yearling Nice Answer Enlightened Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 30453,349897,278773,NULL,NULL,NULL,0,NULL,NULL 30454,849371,155774,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 30455,292954,839505,NULL,NULL,NULL,0,NULL,NULL 30456,186921,40066,Nice Answer Civic Duty Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30457,750166,930546,Popular Question Census Caucus Popular Question Documentation User Census,NULL,NULL,0,NULL,NULL 30458,3290746,320616,Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened regex Student Informed Promoter Nice Question Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Good Answer Good Answer Caucus Documentation User Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 30459,249378,320616,Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened regex Student Informed Promoter Nice Question Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Good Answer Good Answer Caucus Documentation User Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 30460,231129,1226370,Great Answer Yearling Nice Answer Custodian Popular Question Popular Question Caucus Yearling Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 30461,349992,86634,Nice Answer Enlightened Yearling Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 30462,36793,427607,NULL,NULL,NULL,0,NULL,NULL 30463,74692,550367,Popular Question Nice Answer Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 30464,49083,822855,NULL,NULL,NULL,0,NULL,NULL 30465,6192462,1177575,Yearling Yearling Necromancer Popular Question Announcer Nice Answer Caucus Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 30466,201968,1019719,Necromancer,NULL,NULL,0,NULL,NULL 30467,136125,545743,NULL,NULL,NULL,0,NULL,NULL 30468,788191,77881,Popular Question Notable Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30469,139509,320594,Pundit java Necromancer Guru Yearling Nice Answer Nice Answer Enlightened Popular Question Great Answer Necromancer Notable Question Popular Question Nice Question Good Answer Nice Answer Yearling Popular Question Announcer Excavator Announcer Yearling Electorate Notable Question Announcer Announcer Nice Question,NULL,How do you set your Cocoa application as the default web browser objective cocoa pHow do you set your Cocoa application as the default web browser ppI want to create an application that is launched by default when the user clicks on an HTTP or HTTPS link in other applications Mail iChat etc https github com Lord Kamina SwiftDefaultApps usage notes could help you as it allows to reassociate URI scheme handlers to different applications from its GUI,0,NULL,NULL 30470,3486283,320594,Pundit java Necromancer Guru Yearling Nice Answer Nice Answer Enlightened Popular Question Great Answer Necromancer Notable Question Popular Question Nice Question Good Answer Nice Answer Yearling Popular Question Announcer Excavator Announcer Yearling Electorate Notable Question Announcer Announcer Nice Question,NULL,How do you set your Cocoa application as the default web browser objective cocoa pHow do you set your Cocoa application as the default web browser ppI want to create an application that is launched by default when the user clicks on an HTTP or HTTPS link in other applications Mail iChat etc https github com Lord Kamina SwiftDefaultApps usage notes could help you as it allows to reassociate URI scheme handlers to different applications from its GUI,0,NULL,NULL 30471,247002,10999,Guru Yearling Nice Answer Enlightened Guru Yearling Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 30472,201151,10999,Guru Yearling Nice Answer Enlightened Guru Yearling Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 30473,199530,1215765,NULL,NULL,NULL,0,NULL,NULL 30474,884879,1105213,NULL,NULL,NULL,0,NULL,NULL 30475,8269883,721642,NULL,NULL,NULL,0,NULL,NULL 30476,5859746,1146936,NULL,NULL,NULL,0,NULL,NULL 30477,297538,1133641,Yearling Critic Scholar,NULL,NULL,0,NULL,NULL 30478,547771,95382,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Yearling Guru Great Answer Nice Answer Guru Good Answer Great Answer Good Answer Good Answer Guru Good Answer Guru Nice Answer Enlightened Guru Good Answer Great Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Great Answer Good Answer Good Answer Good Answer Good Answer Necromancer Good Answer Nice Answer Good Answer Great Answer Great Answer Yearling Nice Answer Nice Answer Enlightened Guru Good Answer Guru Nice Answer Guru Nice Answer Good Answer Guru Custodian mysql php Guru Good Answer Good Answer Great Answer Yearling Good Answer Guru Great Answer Good Answer Guru Nice Answer Guru Nice Answer Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 30479,99995,851202,NULL,NULL,NULL,0,NULL,NULL 30480,412736,341458,Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 30481,357,1063917,NULL,NULL,NULL,0,NULL,NULL 30482,397762,1196894,Enthusiast Necromancer Caucus Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 30483,80425,541098,Nice Answer Yearling Nice Answer Guru Nice Answer Enlightened Notable Question jquery Yearling,NULL,NULL,0,NULL,NULL 30484,3521,806120,NULL,NULL,NULL,0,NULL,NULL 30485,1148404,1218423,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 30486,174696,888131,NULL,NULL,NULL,0,NULL,NULL 30487,9644,775490,Investor,NULL,NULL,0,NULL,NULL 30488,372290,548039,Popular Question Yearling Famous Question Notable Question Necromancer Good Question Notable Question Popular Question Yearling Nice Answer Custodian Custodian Popular Question Popular Question Announcer Famous Question Popular Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30489,531808,111785,Notable Question Good Answer Yearling Great Answer Yearling Nice Answer Custodian Custodian Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 30490,176259,1412772,NULL,NULL,NULL,0,NULL,NULL 30491,648958,797207,NULL,NULL,NULL,0,NULL,NULL 30492,175615,685031,NULL,NULL,NULL,0,NULL,NULL 30493,226435,1293852,Necromancer Popular Question Popular Question Revival Popular Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 30494,266161,884379,NULL,NULL,NULL,0,NULL,NULL 30495,9672,860199,Popular Question,NULL,NULL,0,NULL,NULL 30496,128159,281618,NULL,NULL,NULL,0,NULL,NULL 30497,5191,411944,Popular Question Nice Question Good Question Notable Question Popular Question Nice Question Notable Question Notable Question Good Question scala Notable Question Yearling Nice Answer Nice Question Nice Question Nice Question Custodian Caucus Popular Question Popular Question Nice Answer Enlightened Famous Question Notable Question Good Question Notable Question Custodian Nice Question Notable Question Nice Answer Enlightened Popular Question Caucus Yearling Favorite Question Socratic Custodian Nice Question Documentation User Famous Question Nice Answer Enlightened Nice Answer Pundit Nice Answer Popular Question Nice Answer Enlightened Popular Question Popular Question Taxonomist Popular Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Good Question Yearling Notable Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 30498,2388567,411944,Popular Question Nice Question Good Question Notable Question Popular Question Nice Question Notable Question Notable Question Good Question scala Notable Question Yearling Nice Answer Nice Question Nice Question Nice Question Custodian Caucus Popular Question Popular Question Nice Answer Enlightened Famous Question Notable Question Good Question Notable Question Custodian Nice Question Notable Question Nice Answer Enlightened Popular Question Caucus Yearling Favorite Question Socratic Custodian Nice Question Documentation User Famous Question Nice Answer Enlightened Nice Answer Pundit Nice Answer Popular Question Nice Answer Enlightened Popular Question Popular Question Taxonomist Popular Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Good Question Yearling Notable Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 30499,105148,1240844,Yearling Custodian Great Answer Popular Question Necromancer Yearling Popular Question Good Answer Yearling Caucus Popular Question Proofreader,NULL,NULL,0,NULL,NULL 30500,679440,1014506,NULL,NULL,NULL,0,NULL,NULL 30501,1169783,977890,Popular Question Yearling Necromancer Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Nice Answer Self-Learner Yearling Popular Question Inquisitive Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30502,202293,1372540,NULL,NULL,NULL,0,NULL,NULL 30503,1387751,351914,NULL,NULL,NULL,0,NULL,NULL 30504,246532,824850,Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 30505,408983,1475037,NULL,NULL,NULL,0,NULL,NULL 30506,158244,1262688,NULL,NULL,NULL,0,NULL,NULL 30507,548214,1326042,Yearling Famous Question Nice Question Nice Question Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 30508,172307,568319,NULL,NULL,NULL,0,NULL,NULL 30509,121833,46192,Notable Question Tenacious Yearling Revival Custodian Custodian Yearling Popular Question Census Taxonomist Necromancer,NULL,NULL,0,NULL,NULL 30510,12176,1379037,Commentator Nice Question Curious Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 30511,27956,216761,NULL,NULL,NULL,0,NULL,NULL 30512,376879,1522885,NULL,NULL,NULL,0,NULL,NULL 30513,118010,12203,NULL,NULL,NULL,0,NULL,NULL 30514,216729,582164,Popular Question Revival,NULL,NULL,0,NULL,NULL 30515,1516866,1221845,NULL,NULL,NULL,0,NULL,NULL 30516,1333611,305517,Popular Question Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 30517,155653,50147,Yearling Self-Learner Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 30518,322151,1552173,Nice Answer Yearling Caucus Popular Question Documentation User Enlightened Yearling Student Good Answer,NULL,NULL,0,NULL,NULL 30519,316241,677989,Organizer Tag Editor Notable Question Critic,NULL,NULL,0,NULL,NULL 30520,106850,436503,Yearling Populist,NULL,NULL,0,NULL,NULL 30521,245974,383759,Good Question Popular Question Notable Question php Nice Answer Enlightened Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Good Answer Great Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Favorite Question Notable Question Popular Question Popular Question Great Question Notable Question Notable Question Popular Question Famous Question Nice Question Notable Question Good Question Good Question Custodian Great Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Caucus Good Question Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Nice Question Famous Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Famous Question Popular Question Notable Question Great Question Notable Question Good Question Favorite Question Famous Question Nice Question Popular Question Famous Question Nice Question Popular Question Good Question Popular Question Nice Question Notable Question Nice Question Famous Question Good Question Nice Question Famous Question Yearling Famous Question Nice Question Nice Question Famous Question Famous Question Famous Question Famous Question Famous Question Notable Question Nice Question Good Question Nice Question Famous Question Notable Question Documentation User Famous Question Notable Question Nice Question Nice Question Popular Question Good Question Notable Question Popular Question Notable Question Favorite Question Famous Question Popular Question Good Question Good Question Nice Question Popular Question Favorite Question Yearling Good Question Notable Question Popular Question Notable Question Great Question Notable Question Notable Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30522,375928,472761,NULL,NULL,NULL,0,NULL,NULL 30523,168378,1227334,NULL,NULL,NULL,0,NULL,NULL 30524,150693,105905,Famous Question Yearling Nice Answer Favorite Question Good Question Great Question Notable Question Nice Question Notable Question Yearling Nice Answer Yearling Notable Question Stellar Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 30525,259602,697349,NULL,NULL,NULL,0,NULL,NULL 30526,46669,156060,Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Favorite Question Yearling Good Answer Informed Notable Question Popular Question Nice Question Notable Question Popular Question Revival Popular Question Popular Question Famous Question Great Answer Popular Question Yearling Good Question Revival Nice Question Notable Question Popular Question Yearling Popular Question Guru Great Question,NULL,NULL,0,NULL,NULL 30527,1503733,687754,NULL,NULL,NULL,0,NULL,NULL 30528,2959,293115,Organizer Autobiographer Custodian Custodian Citizen Patrol Yearling Nice Answer Enlightened Nice Question Famous Question Announcer,NULL,NULL,0,NULL,NULL 30529,369762,1273599,NULL,NULL,NULL,0,NULL,NULL 30530,46485,1448468,NULL,NULL,NULL,0,NULL,NULL 30531,647955,1361218,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30532,926261,1488065,Notable Question,NULL,NULL,0,NULL,NULL 30533,243421,1053370,NULL,NULL,NULL,0,NULL,NULL 30534,618507,1342021,Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 30535,251826,341692,Nice Answer Enlightened Notable Question Nice Answer Enlightened Citizen Patrol Announcer Nice Question Yearling Necromancer Good Answer Caucus Nice Answer Good Answer Yearling Caucus Notable Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer css Caucus Nice Question Yearling,NULL,NULL,0,NULL,NULL 30536,870007,11434,NULL,NULL,NULL,0,NULL,NULL 30537,12215,185245,Nice Question Autobiographer Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30538,1044486,948956,NULL,NULL,NULL,0,NULL,NULL 30539,352670,793493,Tumbleweed Great Answer Yearling Custodian Curious Nice Answer Civic Duty Informed Yearling Popular Question Good Answer Popular Question Notable Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 30540,261383,430718,Yearling Caucus Guru Custodian Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 30541,317409,984759,Autobiographer Teacher,NULL,NULL,0,NULL,NULL 30542,1262957,461191,Popular Question,NULL,NULL,0,NULL,NULL 30543,188302,817672,NULL,NULL,NULL,0,NULL,NULL 30544,97003,948735,NULL,NULL,NULL,0,NULL,NULL 30545,190251,948891,NULL,NULL,NULL,0,NULL,NULL 30546,597320,45323,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 30547,157268,198505,NULL,NULL,NULL,0,NULL,NULL 30548,23815,693728,Yearling Famous Question,NULL,NULL,0,NULL,NULL 30549,207347,452022,Nice Answer Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 30550,1092710,813174,NULL,NULL,NULL,0,NULL,NULL 30551,472354,358187,NULL,NULL,NULL,0,NULL,NULL 30552,35508,481215,NULL,NULL,NULL,0,NULL,NULL 30553,65525,191788,Guru,NULL,NULL,0,NULL,NULL 30554,69412,976386,NULL,NULL,NULL,0,NULL,NULL 30555,470718,762571,Critic Yearling Custodian Popular Question Popular Question Notable Question Nice Answer Yearling Popular Question Necromancer Popular Question Good Answer Yearling,NULL,pThis looks like permissions issue in your home directory To reclaim ownership of the strong npm strong directory execute ppre codesudo chown whoami npm code pre please add something to your answer to note that installing node with nvm is the only way to get reliable install of node,0,NULL,NULL 30556,168269,437460,NULL,NULL,,0,, 30557,98928,5369,Nice Answer Great Question Nice Question Favorite Question Famous Question Notable Question Nice Answer Nice Question Taxonomist Yearling Notable Question Famous Question Yearling Nice Answer Nice Answer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30558,1415804,1049982,Nice Answer Enlightened Yearling Informed,NULL,NULL,0,NULL,NULL 30559,203792,846325,Necromancer Caucus,NULL,NULL,0,NULL,NULL 30560,182652,232124,NULL,NULL,NULL,0,NULL,NULL 30561,429507,549459,Revival Yearling Necromancer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 30562,69270,372654,Good Answer Necromancer Student Enlightened Nice Answer Informed Yearling Nice Answer Necromancer Good Answer Revival Caucus Great Answer Necromancer Revival Nice Answer Announcer Necromancer Revival Necromancer Good Answer Yearling Caucus Custodian Custodian Custodian Custodian Announcer Announcer Revival Census Announcer Necromancer Necromancer Caucus Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 30563,2707692,334527,NULL,NULL,NULL,0,NULL,NULL 30564,59308,358037,Organizer Nice Answer Yearling Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 30565,558368,98152,Necromancer Notable Question Necromancer,NULL,NULL,0,NULL,NULL 30566,1515765,231572,Popular Question,NULL,NULL,0,NULL,NULL 30567,83638,279348,NULL,NULL,NULL,0,NULL,NULL 30568,81124,103017,Necromancer Announcer Nice Answer Yearling Citizen Patrol Custodian Revival Announcer Yearling Revival,NULL,NULL,0,NULL,NULL 30569,362595,131943,Nice Question Popular Question Nice Question Popular Question Popular Question Notable Question Nice Answer Yearling Notable Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 30570,436355,15661,Yearling Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 30571,269423,521116,NULL,NULL,NULL,0,NULL,NULL 30572,20283,505917,Good Answer Yearling,NULL,NULL,0,NULL,NULL 30573,1043413,151094,Supporter Revival,NULL,NULL,0,NULL,NULL 30574,55191,1068486,NULL,NULL,NULL,0,NULL,NULL 30575,271096,259234,Popular Question Yearling Critic Popular Question Good Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 30576,127381,298195,Good Question Yearling Notable Question Nice Question Popular Question Good Answer Famous Question Yearling Nice Question Nice Question Good Answer Famous Question Famous Question Documentation User Custodian Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 30577,123590,945292,NULL,NULL,NULL,0,NULL,NULL 30578,506040,719967,Nice Answer Enlightened Nice Answer asp.net-mvc Good Answer Yearling Announcer Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Good Answer Good Answer Announcer Announcer signalr.client Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Guru Announcer Announcer Yearling signalr Announcer Guru Enlightened Nice Answer javascript Good Answer,NULL,NULL,0,NULL,NULL 30579,908443,174559,Notable Question Investor Altruist Popular Question Yearling Revival Revival Good Question Yearling Necromancer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 30580,8184734,701980,Enthusiast Student,NULL,NULL,0,NULL,NULL 30581,208064,701980,Enthusiast Student,NULL,NULL,0,NULL,NULL 30582,2933612,701980,Enthusiast Student,NULL,NULL,0,NULL,NULL 30583,665542,1162665,NULL,NULL,NULL,0,NULL,NULL 30584,165803,93988,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Great Answer Good Answer Electorate Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Documentation User Nice Answer Caucus Good Answer Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 30585,460645,354098,NULL,NULL,NULL,0,NULL,NULL 30586,3943434,777095,NULL,NULL,NULL,0,NULL,NULL 30587,317270,645680,NULL,NULL,NULL,0,NULL,NULL 30588,71360,1259426,Yearling,NULL,NULL,0,NULL,NULL 30589,174206,12785,Great Answer Yearling Good Question Notable Question Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 30590,280254,836392,NULL,NULL,NULL,0,NULL,NULL 30591,158258,241912,NULL,NULL,NULL,0,NULL,NULL 30592,42106,837989,NULL,NULL,NULL,0,NULL,NULL 30593,65015,59991,Notable Question Yearling Custodian Organizer Explainer Custodian Citizen Patrol Proofreader Notable Question Notable Question Famous Question Nice Answer Famous Question Caucus Good Answer Good Question Yearling Revival Nice Answer Documentation User Nice Question Yearling Nice Answer Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 30594,194957,1067484,NULL,NULL,NULL,0,NULL,NULL 30595,3483,459749,NULL,NULL,NULL,0,NULL,NULL 30596,1177489,1004867,Caucus Popular Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 30597,5115560,1004867,Caucus Popular Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 30598,88394,602165,Yearling Custodian Nice Answer Nice Answer Necromancer Nice Answer Caucus Yearling Good Answer Good Answer Yearling Caucus Necromancer Custodian,NULL,pI created an ExecutionTime class out of phihag answer that you can use out of box ppre codeclass ExecutionTime private startTime private endTime public function Start this gt startTime getrusage public function End this gt endTime getrusage private function runTime ru rus index return ru ru index tv sec 1000 intval ru ru index tv usec 1000 rus ru index tv sec 1000 intval rus ru index tv usec 1000 public function toString return This process used this gt runTime this gt endTime this gt startTime utime ms for its computations nIt spent this gt runTime this gt endTime this gt startTime stime ms in system calls code prepusage ppre code executionTime new ExecutionTime executionTime gt Start code executionTime gt End echo executionTime code preblockquote pNote getrusage function only works in unixoid systems and in php on Windows blockquote appended the note Thanks,0,NULL,NULL 30599,860175,461043,NULL,NULL,NULL,0,NULL,NULL 30600,284563,144601,Yearling Good Question Notable Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 30601,200427,801420,Yearling Notable Question Notable Question Nice Question Curious Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 30602,2285940,119592,Great Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Answer Necromancer Good Answer Popular Question Great Answer Nice Question Good Question Nice Answer Notable Question Guru Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Good Answer Notable Question Good Answer Notable Question Popular Question Yearling Announcer Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30603,91963,119592,Great Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Answer Necromancer Good Answer Popular Question Great Answer Nice Question Good Question Nice Answer Notable Question Guru Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Good Answer Notable Question Good Answer Notable Question Popular Question Yearling Announcer Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30604,204965,200873,NULL,NULL,NULL,0,NULL,NULL 30605,80079,180254,NULL,NULL,NULL,0,NULL,NULL 30606,349749,1455730,NULL,NULL,NULL,0,NULL,NULL 30607,657201,363045,Yearling Critic Excavator,NULL,NULL,0,NULL,NULL 30608,626639,107392,Yearling Necromancer Nice Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 30609,206423,302023,Student,NULL,NULL,0,NULL,NULL 30610,8717,1439041,NULL,NULL,NULL,0,NULL,NULL 30611,4356170,23401,Yearling Popular Question Popular Question Popular Question Yearling Popular Question Caucus Self-Learner Custodian Citizen Patrol Popular Question Popular Question Inquisitive Custodian Yearling Popular Question Popular Question Caucus Constituent Popular Question Documentation User Notable Question Custodian Popular Question Yearling Popular Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30612,347091,23401,Yearling Popular Question Popular Question Popular Question Yearling Popular Question Caucus Self-Learner Custodian Citizen Patrol Popular Question Popular Question Inquisitive Custodian Yearling Popular Question Popular Question Caucus Constituent Popular Question Documentation User Notable Question Custodian Popular Question Yearling Popular Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30613,524006,918993,NULL,NULL,NULL,0,NULL,NULL 30614,259739,28946,Nice Question Nice Answer Popular Question Popular Question Necromancer Yearling Notable Question Yearling Popular Question Good Answer Notable Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 30615,185141,239982,NULL,NULL,NULL,0,NULL,NULL 30616,124114,1057624,Curious Nice Question Teacher Popular Question Notable Question Critic,NULL,NULL,0,NULL,NULL 30617,332949,667156,NULL,NULL,NULL,0,NULL,NULL 30618,436794,1069232,Curious Critic Yearling Popular Question Yearling Caucus Popular Question Self-Learner Caucus Constituent Popular Question Census Caucus Notable Question Necromancer Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 30619,1550354,347053,NULL,NULL,NULL,0,NULL,NULL 30620,50368,1206940,Scholar,NULL,NULL,0,NULL,NULL 30621,158684,850301,Critic,NULL,NULL,0,NULL,NULL 30622,199299,107183,Guru Good Answer Yearling Nice Question Popular Question Popular Question Good Answer Yearling Great Question Favorite Question Famous Question Nice Answer Yearling Benefactor,NULL,NULL,0,NULL,NULL 30623,28030,347687,Popular Question Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 30624,271971,334975,Yearling Notable Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 30625,281925,607361,Yearling Guru Organizer,NULL,NULL,0,NULL,NULL 30626,282822,807227,Citizen Patrol Excavator Yearling Nice Answer Caucus Custodian Custodian Good Answer Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 30627,298481,1493737,NULL,NULL,NULL,0,NULL,NULL 30628,1517096,930906,Famous Question,NULL,NULL,0,NULL,NULL 30629,642592,728814,NULL,NULL,NULL,0,NULL,NULL 30630,495473,26933,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 30631,21420,166252,Critic,NULL,NULL,0,NULL,NULL 30632,1231469,1385496,NULL,NULL,NULL,0,NULL,NULL 30633,1222478,813332,NULL,NULL,NULL,0,NULL,NULL 30634,1191745,968350,NULL,NULL,NULL,0,NULL,NULL 30635,1015305,1035893,Good Answer Nice Answer Enlightened Guru Popular Question Investor Altruist Necromancer Nice Answer css Necromancer Necromancer Nice Answer Enlightened Caucus Yearling Constituent Nice Answer Good Answer Good Answer Great Answer Notable Question Announcer Necromancer Caucus Constituent Popular Question Revival Necromancer Necromancer Yearling Nice Answer Enlightened Popular Question Caucus Custodian Popular Question Notable Question Nice Answer Nice Answer Good Answer Notable Question Necromancer Yearling Custodian,NULL,pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD Yepp thats because it is blocked by the server via CORS http www html5rocks com en tutorials cors pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD If someone wants to use ES6 try this gist https gist github com HaNdTriX bdffd11761701fbeba27f23e9a69515f pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD Thanks for letting me know have updated the answer pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD Good catch Thanks improved the answer pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD This makes sure that the load event also fires for cached images https gist github com HaNdTriX 7704632 pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD If the complete api is not supported it will be undefined pThere are multiple approaches you can choose from ph31 Approach FileReader h3pLoad the image as blob via href https developer mozilla org de docs Web API XMLHttpRequest rel noreferrer XMLHttpRequest and use the href https developer mozilla org de docs Web API FileReader rel noreferrer FileReader API to convert it to href https developer mozilla org en US docs Web HTTP Basics of HTTP Data URIs rel noreferrer dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL url callback xD var xhr new XMLHttpRequest xD xhr onload function xD var reader new FileReader xD reader onloadend function xD callback reader result xD xD reader readAsDataURL xhr response xD xD xhr open GET url xD xhr responseType blob xD xhr send xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 function dataUrl xD console log RESULT dataUrl xD code pre xD div xD div xD ppThis code example could also be implemented using the WHATWG href https developer mozilla org en US docs Web API Fetch API Using Fetch rel noreferrer fetch api pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst toDataURL url gt fetch url xD then response gt response blob xD then blob gt new Promise resolve reject gt xD const reader new FileReader xD reader onloadend gt resolve reader result xD reader onerror reject xD reader readAsDataURL blob xD xD xD xD toDataURL https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD then dataUrl gt xD console log RESULT dataUrl xD code pre xD div xD div xD pp strongThese approaches strong pullilack in browser support lilihave better compression liliwork for other file types as well li ulp strongBrowser Support strong pulli href http caniuse com feat filereader rel noreferrer http caniuse com feat filereader lili href http caniuse com feat fetch rel noreferrer http caniuse com feat fetch li ulhrh32 Approach Canvas h3pLoad the image into an Image Object paint it to non tainted canvas and convert the canvas back to dataURL pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction toDataURL src callback outputFormat xD var img new Image xD img crossOrigin Anonymous xD img onload function xD var canvas document createElement CANVAS xD var ctx canvas getContext 2d xD var dataURL xD canvas height this naturalHeight xD canvas width this naturalWidth xD ctx drawImage this xD dataURL canvas toDataURL outputFormat xD callback dataURL xD xD img src src xD if img complete img complete undefined xD img src data image gif base64 R0lGODlhAQABAIAAAAAAAP ywAAAAAAQABAAACAUwAOw xD img src src xD xD xD xD toDataURL xD https www gravatar com avatar d50c83cc0c6523b4d3f6085295c953e0 xD function dataUrl xD console log RESULT dataUrl xD xD code pre xD div xD div xD pp href https gist github com HaNdTriX 7704632 rel noreferrer in detail pp strongSupported input formats strong pp codeimage png code codeimage jpeg code codeimage jpg code codeimage gif code codeimage bmp code codeimage tiff code codeimage icon code codeimage svg xml code codeimage webp code codeimage xxx code pp strongSupported output formats strong pp codeimage png code codeimage jpeg code codeimage webp code chrome pp strongBrowser Support strong pulli href http caniuse com feat canvas rel noreferrer http caniuse com feat canvas lili blockquote pIE10 IE10 just works with same origin images blockquote li ulhrh33 Approach Images from the local file system h3pIf you want to convert images from the users file system you need to take different approach Use the href https developer mozilla org docs Web API FileReader rel noreferrer FileReader API pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction encodeImageFileAsURL element xD var file element files xD var reader new FileReader xD reader onloadend function xD console log RESULT reader result xD xD reader readAsDataURL file xD code pre xD pre class snippet code html lang html prettyprint override code lt input type file onchange encodeImageFileAsURL this gt code pre xD div xD div xD No but here is hint to point you in the right direction Use axios responseType prop Why does npm install rewrite package lock json node js npm npm install package lock json pI just recently upgraded to npm now have package lock json file with everything from package json would expect that when run codenpm install code that the dependency versions would be pulled from the lock file to determine what should be installed in my node modules directory What strange is that it actually ends up modifying and rewriting my package lock json file ppFor example the lock file had typescript specified to be at version Then after the codenpm install code command the version was changed to That seems to defeat the whole purpose of lock file ppWhat am missing How do get npm to actually respect my lock file am having the same issue My package lock json gets regenerated when run npm install This smells like npm bug Do you use your own registry,0,NULL,NULL 30636,11960,886271,NULL,NULL,NULL,0,NULL,NULL 30637,5753669,552239,Notable Question,NULL,NULL,0,NULL,NULL 30638,1289585,495055,NULL,NULL,NULL,0,NULL,NULL 30639,129053,495055,NULL,NULL,NULL,0,NULL,NULL 30640,812,891037,NULL,NULL,NULL,0,NULL,NULL 30641,656770,823873,Popular Question Yearling Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 30642,3270217,823873,Popular Question Yearling Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 30643,108809,1057509,Informed Commentator,NULL,NULL,0,NULL,NULL 30644,194740,382278,NULL,NULL,NULL,0,NULL,NULL 30645,159148,1135844,NULL,NULL,NULL,0,NULL,NULL 30646,483070,823394,Yearling Popular Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 30647,441183,71302,Famous Question Famous Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 30648,211417,443138,NULL,NULL,NULL,0,NULL,NULL 30649,14469,850720,NULL,NULL,NULL,0,NULL,NULL 30650,784198,1145067,Supporter,NULL,NULL,0,NULL,NULL 30651,683500,534815,NULL,NULL,NULL,0,NULL,NULL 30652,1070828,100730,NULL,NULL,NULL,0,NULL,NULL 30653,169775,1510746,NULL,NULL,NULL,0,NULL,NULL 30654,392886,1086938,Notable Question Popular Question Popular Question Famous Question Tenacious Popular Question Nice Question Yearling Notable Question Inquisitive Notable Question Nice Question Caucus Popular Question Famous Question Popular Question Yearling Nice Question Popular Question Nice Question Great Answer,NULL,NULL,0,NULL,NULL 30655,488431,687512,NULL,NULL,NULL,0,NULL,NULL 30656,3818357,138659,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30657,335170,755651,NULL,NULL,NULL,0,NULL,NULL 30658,235596,982394,Civic Duty Yearling,NULL,NULL,0,NULL,NULL 30659,50207,1202395,Autobiographer Popular Question Teacher,NULL,NULL,0,NULL,NULL 30660,26374,876318,NULL,NULL,NULL,0,NULL,NULL 30661,162046,909261,NULL,NULL,NULL,0,NULL,NULL 30662,8009006,909261,NULL,NULL,NULL,0,NULL,NULL 30663,220182,275458,NULL,NULL,NULL,0,NULL,NULL 30664,1508772,29442,Yearling Famous Question Popular Question Necromancer Necromancer Citizen Patrol Custodian Custodian Yearling Caucus Constituent Documentation User Self-Learner Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 30665,185546,1356352,NULL,NULL,NULL,0,NULL,NULL 30666,13017,466618,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30667,175563,284542,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 30668,80951,639612,NULL,NULL,NULL,0,NULL,NULL 30669,143250,115102,Popular Question Yearling Popular Question Popular Question Famous Question Caucus Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Nice Question Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30670,8753,624310,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30671,259040,659526,Nice Answer Enlightened Yearling Nice Answer Famous Question Yearling Good Question Census Yearling Notable Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 30672,1394810,401658,Nice Question Notable Question Yearling Notable Question Nice Question Famous Question Good Question Nice Question Yearling Popular Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30673,413027,401658,Nice Question Notable Question Yearling Notable Question Nice Question Famous Question Good Question Nice Question Yearling Popular Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30674,540399,881074,NULL,NULL,NULL,0,NULL,NULL 30675,23728,370481,Announcer Nice Question spring Nice Answer Nice Answer Good Answer Nice Answer Guru Popular Question Notable Question Notable Question Good Question Civic Duty Yearling Notable Question Famous Question Inquisitive Announcer Notable Question Nice Question Guru Good Answer Yearling Nice Answer Nice Answer Notable Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30676,631675,624760,NULL,NULL,NULL,0,NULL,NULL 30677,63762,173679,Yearling Critic Caucus Constituent Documentation User,NULL,NULL,0,NULL,NULL 30678,86931,928528,NULL,NULL,NULL,0,NULL,NULL 30679,91037,485602,Nice Answer,NULL,NULL,0,NULL,NULL 30680,266198,1283584,Scholar Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 30681,296137,674703,Notable Question,NULL,NULL,0,NULL,NULL 30682,132747,340145,Yearling Notable Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 30683,8397,157420,Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 30684,103629,8683,Famous Question Good Question Popular Question Popular Question Famous Question Nice Question Favorite Question Yearling Nice Question Great Answer Good Answer Notable Question Yearling Documentation User Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 30685,210849,810142,Popular Question,NULL,NULL,0,NULL,NULL 30686,373233,308670,Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30687,1172358,1058860,Famous Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30688,493229,201660,Nice Answer,NULL,NULL,0,NULL,NULL 30689,415892,307552,Good Answer Yearling,NULL,NULL,0,NULL,NULL 30690,1021,264180,Yearling Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30691,216573,1539977,NULL,NULL,NULL,0,NULL,NULL 30692,490553,1001385,NULL,NULL,NULL,0,NULL,NULL 30693,8663,988306,NULL,NULL,NULL,0,NULL,NULL 30694,2320,859210,NULL,NULL,NULL,0,NULL,NULL 30695,288102,1235227,Student Necromancer Yearling Necromancer Scholar Nice Answer Nice Answer Yearling Revival Necromancer Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30696,99800,801083,NULL,NULL,NULL,0,NULL,NULL 30697,307011,639295,Notable Question Yearling Nice Answer Popular Question Nice Answer Enlightened Organizer Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Caucus Constituent Nice Answer Enlightened Popular Question Yearling Famous Question Nice Answer Nice Answer Enlightened Notable Question Good Answer Revival Caucus Constituent Popular Question Good Answer Guru Custodian Tumbleweed Good Question Popular Question Census Notable Question Guru Yearling Good Answer Nice Answer Nice Answer Enlightened python Popular Question Good Answer Nice Question Notable Question Nice Answer Nice Answer Enlightened Cleanup Nice Answer Nice Answer Enlightened,NULL,pA technique that is handy on Linux system is using domain sockets ppre codeimport socketimport sysimport timedef get lock process name Without holding reference to our socket somewhere it gets garbage collected when the function exits get lock lock socket socket socket socket AF UNIX socket SOCK DGRAM try get lock lock socket bind process name print got the lock except socket error print lock exists sys exit get lock running test while True time sleep code prepIt is atomic and avoids the problem of having lock files lying around if your process gets sent SIGKILL ppYou can href https docs python org library socket html socket socket close rel noreferrer read in the documentation for codesocket close code that sockets are automatically closed when garbage collected Have you actually tested this code There reason for the use of global Has the Python runtime changed recently Is this Python pA technique that is handy on Linux system is using domain sockets ppre codeimport socketimport sysimport timedef get lock process name Without holding reference to our socket somewhere it gets garbage collected when the function exits get lock lock socket socket socket socket AF UNIX socket SOCK DGRAM try get lock lock socket bind process name print got the lock except socket error print lock exists sys exit get lock running test while True time sleep code prepIt is atomic and avoids the problem of having lock files lying around if your process gets sent SIGKILL ppYou can href https docs python org library socket html socket socket close rel noreferrer read in the documentation for codesocket close code that sockets are automatically closed when garbage collected The null byte means the the socket is created in the abstract namespace instead of being created on the file system itself pA technique that is handy on Linux system is using domain sockets ppre codeimport socketimport sysimport timedef get lock process name Without holding reference to our socket somewhere it gets garbage collected when the function exits get lock lock socket socket socket socket AF UNIX socket SOCK DGRAM try get lock lock socket bind process name print got the lock except socket error print lock exists sys exit get lock running test while True time sleep code prepIt is atomic and avoids the problem of having lock files lying around if your process gets sent SIGKILL ppYou can href https docs python org library socket html socket socket close rel noreferrer read in the documentation for codesocket close code that sockets are automatically closed when garbage collected Oh right see what he was getting at now and yes we could anchor it to the function itself And ve tested that and it definitely works pA technique that is handy on Linux system is using domain sockets ppre codeimport socketimport sysimport timedef get lock process name Without holding reference to our socket somewhere it gets garbage collected when the function exits get lock lock socket socket socket socket AF UNIX socket SOCK DGRAM try get lock lock socket bind process name print got the lock except socket error print lock exists sys exit get lock running test while True time sleep code prepIt is atomic and avoids the problem of having lock files lying around if your process gets sent SIGKILL ppYou can href https docs python org library socket html socket socket close rel noreferrer read in the documentation for codesocket close code that sockets are automatically closed when garbage collected You could do that but what if you wanted to change the name of your script Or more importantly what if two copies of the script were started at the same time pretty certain if managed the timing right could start both of them without either realising the other had also started This lock file mechanism is atomic Meaning it can be grabbed by two different processes pA technique that is handy on Linux system is using domain sockets ppre codeimport socketimport sysimport timedef get lock process name Without holding reference to our socket somewhere it gets garbage collected when the function exits get lock lock socket socket socket socket AF UNIX socket SOCK DGRAM try get lock lock socket bind process name print got the lock except socket error print lock exists sys exit get lock running test while True time sleep code prepIt is atomic and avoids the problem of having lock files lying around if your process gets sent SIGKILL ppYou can href https docs python org library socket html socket socket close rel noreferrer read in the documentation for codesocket close code that sockets are automatically closed when garbage collected https unix stackexchange com questions 216784 does linux automatically clean up abstract domain sockets It works for me must assume that something is actually reference to the socket around My abstract socket disappears instantly when script finishes or it catches SIGKILL Has the Python process actually exited That would be where would investigate,0,NULL,NULL 30698,525894,1489225,Notable Question,NULL,NULL,0,NULL,NULL 30699,244118,1255508,Yearling Yearling Good Answer Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 30700,62078,513383,Nice Question,NULL,NULL,0,NULL,NULL 30701,564120,1027592,NULL,NULL,NULL,0,NULL,NULL 30702,51043,367456,Good Answer Announcer Good Answer Announcer Great Answer regex Nice Answer Great Answer Good Answer Good Answer unit-testing Enlightened pdo Necromancer Guru Announcer xml-parsing csv Great Answer Nice Answer Good Answer Good Answer Announcer Announcer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Popular Question Good Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Guru curl Good Answer Nice Answer Necromancer Necromancer Yearling Necromancer Nice Answer Notable Question Nice Answer Famous Question Nice Answer Notable Question Necromancer Popular Question Popular Question Good Answer Announcer Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Announcer Nice Answer Nice Question Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Guru Nice Answer Necromancer Good Answer Nice Answer Enlightened Revival Notable Question Nice Answer Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Announcer url Revival Good Answer Nice Answer Enlightened Caucus Constituent Announcer Announcer Good Question Necromancer Nice Answer Enlightened Nice Answer domdocument .htaccess Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Necromancer Announcer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Nice Answer Guru Nice Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer Nice Answer Nice Question symfony Announcer Nice Answer Nice Answer Enlightened Announcer Necromancer Revival Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Generalist Necromancer Announcer Notable Question Famous Question Notable Question Nice Answer Announcer Guru Announcer Announcer Announcer Good Answer Announcer Announcer Announcer Announcer class Announcer Nice Answer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Yearling Enlightened Announcer Good Answer Announcer Announcer Announcer Guru Announcer Announcer Nice Answer Good Answer Announcer Announcer Announcer Nice Answer Announcer Necromancer Announcer Nice Answer Good Answer Announcer Notable Question Announcer Caucus Booster Announcer linux Good Answer Announcer Announcer Announcer Announcer Constituent Announcer Announcer Announcer Announcer Announcer Announcer character-encoding oop Announcer Announcer Announcer Announcer serialization Announcer Good Answer Notable Question Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Revival Announcer Nice Answer Enlightened Documentation User Announcer Nice Answer Synonymizer Announcer Popular Question Announcer Nice Answer Guru Announcer Good Answer Announcer Good Answer Announcer Good Answer Nice Answer Enlightened Announcer datetime Announcer Good Answer Announcer Nice Answer Announcer Guru Good Answer Booster Popular Question Announcer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Announcer Booster Announcer Popular Question Announcer Announcer Announcer Announcer Announcer Nice Answer Nice Answer Nice Answer Enlightened Booster Necromancer Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Caucus Publicist Announcer Announcer Announcer Nice Answer Constituent Announcer Guru Announcer Announcer Announcer Announcer Revival Announcer Popular Question Nice Answer Announcer Announcer Announcer Announcer Announcer Good Question Nice Answer Yearling Nice Answer Necromancer Announcer Nice Answer Enlightened Announcer Necromancer Announcer Nice Answer Announcer Nice Answer Nice Answer Announcer Announcer Announcer xml Nice Answer Enlightened Announcer Good Answer Necromancer Announcer Announcer Necromancer Announcer Announcer Nice Answer Enlightened Popular Question Announcer Announcer Announcer Announcer Nice Answer Good Answer Famous Question Nice Answer Enlightened Nice Answer arrays model-view-controller Booster Announcer Announcer Announcer Announcer Nice Answer Booster Announcer Nice Answer Enlightened Announcer Booster Nice Answer Booster Announcer Announcer,NULL,How to Test if Git Repository is Shallow git pWhen make local clone from repository the clone fails if the origin repository is shallow ppre codegit clone target dir code prepAs that is not always the case like to find out prior clone but don know how to do that ppWhat tried so far is very little basically creating error messages on clone At the moment just fetch to unshallow and if that fails do plain fetch because if the repo would be shallow it should be unshallow afterwards ppre codeif git fetch unshallow then git fetchfi code prepHowever there is no guarantee for being unshallow afterwards remote to fetch from can be shallow too so test for the un shallowness of git repository would be much better How to Test if Git Repository is Shallow just edited was using the title for the built in search first pIf you access list of one or more element nodes in SimpleXML as single element it will return the first element That is by default and outlined as well in the href http php net simplexml examples basic rel nofollow noreferrer SimpleXML Basic Usage ppre code first element gt first name code prepIf there are more than one element you can specify which one you mean by using the zero based index of it either in square array access or curly property access brackets ppre code first element gt first name first element gt first name code prepThis also allows you to create so called SimpleXML self reference to access the element itself to remove it ppre codeunset first removes the element node from the document unset first unsets the variable first code prepYou might think your Xpath would be overkill But it not that expensive in SimpleXML Sometimes the only way to access an element is emwith em Xpath even Therefore it might be useful for you to know that you can easily access the first element as well per an xpath For example the parent element in SimpleXML ppre codelist parent element gt xpath PHP lt parent element gt xpath PHP gt code prepAs you can see it is worth to actually understand how things work to make more use of SimpleXML If you already know all from the emSimpleXML Basic Usage em page you might want to learn bit more with the pulli href http hakre wordpress com 2013 02 12 simplexml type cheatsheet rel nofollow noreferrer emSimpleXML Type Cheatsheet em lili href https stackoverflow com 14829309 367456 emHow to tell apart SimpleXML objects representing element and attribute em lili href https stackoverflow com 16093864 367456 emSimpleXMLElement implements JsonSerializable em li ul Yeah it is confusing to answer your question That is xml parent count counts the child elements named parent of the xml element while xml parent count counts all child elements of the first child element named parent from the xml element xml parent and xml parent never point to the same object thefirst is list of child elements named parent and the second is the firstchild element named parent pComparing two arrays to have equal values duplicated or not type juggling taking into account can be done by using href http php net array diff rel noreferrer codearray diff code into both directions ppre code array diff amp amp array diff code prepThis gives codeTRUE code if both arrays have the same values after type juggling codeFALSE code otherwise Examples ppre codefunction array equal values array array return array diff amp amp array diff array equal values FALSEarray equal values FALSEarray equal values TRUEarray equal values TRUE code prepAs this example shows codearray diff code leaves array keys out of the equation and does not care about the order of values either and neither about if values are duplicated or not phrpIf duplication has to make difference this becomes more tricky As far as simple values are concerned only string and integer values work href http php net array count values rel noreferrer codearray count values code comes into play to gather information about which value is how often inside an array This information can be easily compared with code code ppre codearray count values array count values code prepThis gives codeTRUE code if both arrays have the same values after type juggling for the same amount of time codeFALSE code otherwise Examples ppre codefunction array equal values array array return array count values array count values array equal values TRUEarray equal values TRUEarray equal values FALSEarray equal values TRUE code prepThis can be further optimized by comparing the count of the two arrays first which is relatively cheap and quick test to tell most arrays apart when counting value duplication makes difference phrpThese examples so far are partially limited to string and integer values and no strict comparison is possible with codearray diff code either More dedicated for strict comparison is href http php net array search rel noreferrer codearray search code So values need to be counted and indexed so that they can be compared as just turning them into key as codearray search code does won make it ppThis is bit more work However in the end the comparison is the same as earlier ppre code count count code prepIt just code count code that makes the difference ppre code table count function array array use amp table exit bool table result foreach array as value key array search value table true if FALSE key if isset result key result key else result key continue if exit break key count table table key value result key return result code prepThis keeps table of values so that both arrays can use the same index Also it possible to exit early the first time in the second array new value is experienced ppThis function can also add the emstrict em context by having an additional parameter And by adding another additional parameter would then allow to enable looking for duplicates or not The full example ppre codefunction array equal values array array strict FALSE allow duplicate values TRUE add int allow duplicate values if add and count count return FALSE table count function array array use amp table add strict exit bool table result foreach array as value key array search value table strict if FALSE key if isset result key result key else result key add continue if exit break key count table table key value result key return result return count count code prepUsage Examples ppre codearray equal values TRUE TRUEarray equal values TRUE TRUEarray equal values TRUE FALSE FALSEarray equal values TRUE FALSE TRUEarray equal values TRUEarray equal values FALSE TRUEarray equal values FALSE TRUE FALSE code pre That indeed is an interesting scenario not covered The answer is most likely short to duplicate value comparison as the question is not covering those too There is also another differentiation possible duplicate time values need to match times as well or times pA shorter solution Similar to the emeditor em one with simplified regular expression and fixing the trailing underscore problem ppre code output strtolower preg replace lt input code prep href https 3v4l org J1eMO PHP Demo href https regex101 com Ft57oO Regex Demo phrpNote that cases like codeSimpleXML code will be converted to codesimple code using the above solution That can also be considered wrong usage of camel case notation correct would be codeSimpleXml code rather than bug of the algorithm since such cases are always ambiguous even by grouping uppercase characters to one string codesimple xml code such algorithm will always fail in other edge cases like codeXMLHTMLConverter code or one letter words near abbreviations etc If you don mind about the rather rare edge cases and want to handle codeSimpleXML code correctly you can use little more complex solution ppre code output ltrim strtolower preg replace input code prep href https 3v4l org dIo6c PHP Demo href https regex101 com vRuLSr Regex Demo Found this suggestion liked it and took care of to not convert on start and to keep groups of uppercase letters together So no worries about SimpleXML simple xml then any longer pA shorter solution Similar to the emeditor em one with simplified regular expression and fixing the trailing underscore problem ppre code output strtolower preg replace lt input code prep href https 3v4l org J1eMO PHP Demo href https regex101 com Ft57oO Regex Demo phrpNote that cases like codeSimpleXML code will be converted to codesimple code using the above solution That can also be considered wrong usage of camel case notation correct would be codeSimpleXml code rather than bug of the algorithm since such cases are always ambiguous even by grouping uppercase characters to one string codesimple xml code such algorithm will always fail in other edge cases like codeXMLHTMLConverter code or one letter words near abbreviations etc If you don mind about the rather rare edge cases and want to handle codeSimpleXML code correctly you can use little more complex solution ppre code output ltrim strtolower preg replace input code prep href https 3v4l org dIo6c PHP Demo href https regex101 com vRuLSr Regex Demo Thanks for the notification you re right all these pesky bugs Doing this right is harder than thought,1,How to Test if Git Repository is Shallow git pWhen make local clone from repository the clone fails if the origin repository is shallow ppre codegit clone target dir code prepAs that is not always the case like to find out prior clone but don know how to do that ppWhat tried so far is very little basically creating error messages on clone At the moment just fetch to unshallow and if that fails do plain fetch because if the repo would be shallow it should be unshallow afterwards ppre codeif git fetch unshallow then git fetchfi code prepHowever there is no guarantee for being unshallow afterwards remote to fetch from can be shallow too so test for the un shallowness of git repository would be much better,NULL 30703,6316002,955381,NULL,NULL,NULL,0,NULL,NULL 30704,167599,955381,NULL,NULL,NULL,0,NULL,NULL 30705,206048,598755,Nice Answer,NULL,NULL,0,NULL,NULL 30706,90848,633251,Yearling Popular Question Unsung Hero Nice Answer Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Nice Question Notable Question Popular Question Nice Answer Caucus Popular Question Constituent Yearling Popular Question Popular Question Caucus Constituent Popular Question Popular Question Announcer Popular Question Yearling Notable Question Caucus Announcer Nice Question Constituent Announcer Notable Question Quorum Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30707,30655,1208444,NULL,NULL,NULL,0,NULL,NULL 30708,771093,1429355,NULL,NULL,NULL,0,NULL,NULL 30709,287286,11548,NULL,NULL,NULL,0,NULL,NULL 30710,1063928,790555,NULL,NULL,NULL,0,NULL,NULL 30711,206287,893898,Commentator Supporter Popular Question Famous Question Popular Question Caucus Yearling Notable Question Popular Question Caucus Popular Question Yearling Custodian Peer Pressure Popular Question Critic Citizen Patrol Revival Yearling Caucus Popular Question Revival Yearling Popular Question Popular Question Inquisitive Popular Question,NULL,pI found much easier way to do this following directions read here href http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext rel noreferrer http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext This solution is specific to testing code code with code oauth2 hasScope code but sure it could be adapted for other situations as well ppI create an annotation which can be applied to code codes pp strongWithMockOAuth2Scope strong ppre class lang java prettyprint override codeimport org springframework security test context support WithSecurityContext import java lang annotation Retention import java lang annotation RetentionPolicy RetentionPolicy RUNTIME text factory WithMockOAuth2ScopeSecurityContextFactory class public WithMockOAuth2Scope String scope default code prep strongWithMockOAuth2ScopeSecurityContextFactory strong ppre class lang java prettyprint override codeimport org springframework security core Authentication import org springframework security core context SecurityContext import org springframework security core context SecurityContextHolder import org springframework security oauth2 provider OAuth2Authentication import org springframework security oauth2 provider OAuth2Request import org springframework security test context support WithSecurityContextFactory import java util HashSet import java util Set public class WithMockOAuth2ScopeSecurityContextFactory implements WithSecurityContextFactory lt WithMockOAuth2Scope gt public SecurityContext createSecurityContext WithMockOAuth2Scope mockOAuth2Scope SecurityContext context SecurityContextHolder createEmptyContext Set lt String gt scope new HashSet lt gt scope add mockOAuth2Scope scope OAuth2Request request new OAuth2Request null null null true scope null null null null Authentication auth new OAuth2Authentication request null context setAuthentication auth return context code prepExample test using codeMockMvc code ppre class lang java prettyprint override code SpringJUnit4ClassRunner class ublic class LoadScheduleControllerTest private MockMvc mockMvc LoadScheduleController loadScheduleController public void setup mockMvc MockMvcBuilders standaloneSetup loadScheduleController build cope scope dataLicense public void testSchedule throws Exception mockMvc perform post schedule contentType MediaType APPLICATION JSON UTF8 content json andDo print code prepAnd this is the controller under test ppre class lang java prettyprint override code value schedule method RequestMethod POST oauth2 hasScope dataLicense public int schedule return code pre used access oauth2 hasScope backend in my resource server config but it threw exceptions org springframework security access AccessDeniedException Insufficient scope for this resource,1,How to activate Spring Security in webflux war application spring security spring webflux pHow to activate codewebflux code security in strongwar packaging strong application am using the Spring built in codeAbstractAnnotationConfigDispatcherHandlerInitializer code but it does not work ppre codepublic class AppIntializer extends AbstractAnnotationConfigDispatcherHandlerInitializer protected Class lt gt getConfigClasses return new Class WebConfig class SecurityConfig class code prepBut it seems the Spring Security WebFilter is not enabled Spring Security does not include Reactor specific codeWebApplicationInitializer code to activate Spring security filter chain ppStack Spring Security M4 ppSource codes href https github com hantsy spring reactive sample blob master war src main java com example demo AppIntializer java rel nofollow noreferrer https github com hantsy spring reactive sample blob master war src main java com example demo AppIntializer java,NULL 30712,893933,760468,NULL,NULL,NULL,0,NULL,NULL 30713,567366,444241,NULL,NULL,NULL,0,NULL,NULL 30714,31075,623255,NULL,NULL,NULL,0,NULL,NULL 30715,303684,1327806,NULL,NULL,NULL,0,NULL,NULL 30716,106347,1419915,NULL,NULL,NULL,0,NULL,NULL 30717,745984,1058894,NULL,NULL,NULL,0,NULL,NULL 30718,69319,431413,Popular Question,NULL,NULL,0,NULL,NULL 30719,209395,699609,NULL,NULL,NULL,0,NULL,NULL 30720,1108680,1042133,NULL,NULL,NULL,0,NULL,NULL 30721,370079,500268,Revival Necromancer Nice Answer Caucus Yearling Caucus Commentator Scholar Critic Yearling,NULL,NULL,0,NULL,NULL 30722,134129,643406,Nice Answer Enlightened Yearling Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 30723,298130,981288,Teacher,NULL,NULL,0,NULL,NULL 30724,425846,10088,Good Question Notable Question Popular Question Self-Learner Good Question Popular Question Popular Question Favorite Question Popular Question Yearling Popular Question Famous Question Notable Question Notable Question Favorite Question Famous Question Notable Question Nice Question Famous Question Nice Question Favorite Question Notable Question Famous Question Yearling Stellar Question Popular Question Great Question Great Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30725,163871,516859,Yearling Guru Yearling Nice Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 30726,827541,1067710,NULL,NULL,NULL,0,NULL,NULL 30727,514976,1081408,NULL,NULL,NULL,0,NULL,NULL 30728,715715,1391070,NULL,NULL,NULL,0,NULL,NULL 30729,1925743,1035526,NULL,NULL,NULL,0,NULL,NULL 30730,55409,891145,Popular Question Explainer Notable Question Caucus Famous Question Necromancer Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30731,291838,1035037,NULL,NULL,NULL,0,NULL,NULL 30732,149515,845251,NULL,NULL,NULL,0,NULL,NULL 30733,987880,1345445,NULL,NULL,NULL,0,NULL,NULL 30734,124920,1253373,Necromancer Yearling Supporter Nice Answer,NULL,NULL,0,NULL,NULL 30735,898081,1142811,NULL,NULL,NULL,0,NULL,NULL 30736,21624,1209515,NULL,NULL,NULL,0,NULL,NULL 30737,13501,882209,Yearling Nice Question Nice Answer Notable Question Yearling Good Answer Populist Peer Pressure Popular Question Yearling Promoter Nice Question Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30738,998226,786380,NULL,NULL,NULL,0,NULL,NULL 30739,2685059,856153,Caucus Yearling Populist,NULL,NULL,0,NULL,NULL 30740,683264,189172,NULL,NULL,NULL,0,NULL,NULL 30741,2470330,894466,NULL,NULL,NULL,0,NULL,NULL 30742,82395,794060,NULL,NULL,NULL,0,NULL,NULL 30743,301873,794060,NULL,NULL,NULL,0,NULL,NULL 30744,380001,609037,NULL,NULL,NULL,0,NULL,NULL 30745,243240,1403352,NULL,NULL,NULL,0,NULL,NULL 30746,566107,611253,NULL,NULL,NULL,0,NULL,NULL 30747,16130,937215,NULL,NULL,NULL,0,NULL,NULL 30748,3686743,497963,NULL,NULL,NULL,0,NULL,NULL 30749,649218,497963,NULL,NULL,NULL,0,NULL,NULL 30750,3959510,497963,NULL,NULL,NULL,0,NULL,NULL 30751,452623,470017,Yearling Yearling Famous Question Great Question Custodian Citizen Patrol Custodian Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 30752,295244,1113655,Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30753,946825,1113655,Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30754,257109,807759,NULL,NULL,NULL,0,NULL,NULL 30755,164702,561917,Good Answer Yearling,NULL,NULL,0,NULL,NULL 30756,208239,1428606,Guru Yearling Popular Question Necromancer Necromancer java Nice Answer Announcer Nice Answer Caucus Nice Question jpeg Nice Answer Enlightened Announcer Custodian Popular Question Popular Question image-processing Yearling Announcer Announcer Popular Question Nice Answer Announcer Popular Question Famous Question Announcer Nice Answer Nice Answer Enlightened Announcer Caucus Announcer Nice Question Popular Question Yearling Nice Answer Nice Answer Necromancer Announcer Announcer Notable Question javax.imageio Necromancer Announcer,NULL,NULL,0,NULL,NULL 30757,41294,377647,NULL,NULL,NULL,0,NULL,NULL 30758,86932,577108,Yearling Nice Answer Enlightened Documentation Pioneer Nice Answer Notable Question Caucus Yearling Announcer Caucus Documentation User Announcer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 30759,776249,750858,Popular Question,NULL,NULL,0,NULL,NULL 30760,8942,22346,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 30761,457125,1157539,NULL,NULL,NULL,0,NULL,NULL 30762,400242,1258368,NULL,NULL,NULL,0,NULL,NULL 30763,2129860,246923,Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30764,2164635,1013947,Populist Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 30765,441242,1121280,NULL,NULL,NULL,0,NULL,NULL 30766,18375,441667,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30767,66108,454347,Documentation User,NULL,NULL,0,NULL,NULL 30768,1343990,1188978,Announcer Nice Answer Enlightened Notable Question Necromancer Popular Question Announcer Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30769,182831,1188978,Announcer Nice Answer Enlightened Notable Question Necromancer Popular Question Announcer Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 30770,446222,811459,Custodian Popular Question Notable Question Yearling Nice Question Nice Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 30771,6992222,1129266,NULL,NULL,NULL,0,NULL,NULL 30772,4469265,1129266,NULL,NULL,NULL,0,NULL,NULL 30773,4636384,1301951,NULL,NULL,NULL,0,NULL,NULL 30774,5947273,525190,NULL,NULL,NULL,0,NULL,NULL 30775,687087,1342719,Supporter,NULL,NULL,0,NULL,NULL 30776,29840,1031361,Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 30777,38210,115835,Necromancer Strunk & White Enthusiast Good Answer Yearling Benefactor Nice Answer Enlightened Caucus Constituent Necromancer validation Nice Answer Enlightened Yearling Nice Answer Enlightened Necromancer Nice Answer Enlightened Guru Famous Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer java,NULL,NULL,0,NULL,NULL 30778,205358,985763,NULL,NULL,NULL,0,NULL,NULL 30779,34646,157441,Famous Question Nice Question Good Question Good Question Popular Question Nice Question Notable Question Famous Question Yearling Good Answer Favorite Question Custodian Notable Question Famous Question Yearling Popular Question Good Question Yearling Good Question,NULL,NULL,0,NULL,NULL 30780,492807,84370,Famous Question Nice Question Notable Question Yearling Notable Question Popular Question Nice Question Nice Question Nice Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30781,227046,382683,Organizer Notable Question Yearling Yearling Nice Answer Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 30782,823744,52954,Yearling Nice Answer Enlightened Notable Question Custodian Favorite Question Good Answer Nice Question Nice Answer Enlightened Nice Answer Caucus Nice Answer Yearling Great Question Great Answer Notable Question Popular Question Documentation User Great Question java Yearling Nice Answer Notable Question Great Answer Popular Question Necromancer Great Question,NULL,NULL,0,NULL,NULL 30783,377061,325308,Critic Nice Answer Enthusiast Yearling,NULL,NULL,0,NULL,NULL 30784,390193,1405348,Commentator Critic Informed Yearling Enthusiast Fanatic Yearling Good Answer,NULL,NULL,0,NULL,NULL 30785,79746,95750,Yearling Nice Answer Necromancer Necromancer Famous Question Nice Answer Popular Question Nice Answer Necromancer Revival Nice Answer Yearling Announcer Necromancer Nice Answer Pundit Announcer Revival Good Answer Good Answer Yearling Necromancer Good Question Cleanup Organizer Necromancer Tumbleweed Populist Necromancer,NULL,pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy And in Python just replace from unittest import mock with import mock and the rest works as is You do need to install the mock package separately pThe href http lxml de rel noreferrer lxml library includes very convenient syntax for XML generation called the href http lxml de tutorial html the factory rel noreferrer title the factory factory Here how make the example you give ppre code usr bin pythonimport lxml etreeimport lxml builder lxml builder ElementMaker ROOT rootDOC docFIELD1 field1FIELD2 field2the doc ROOT DOC FIELD1 some value1 name blah FIELD2 some value2 name asdfasd print lxml etree tostring the doc pretty print True code prepOutput ppre code lt root gt lt doc gt lt field1 name blah gt some value1 lt field1 gt lt field2 name asdfasd gt some value2 lt field2 gt lt doc gt lt root gt code prepIt also supports adding to an already made node after the above you could say ppre codethe doc append FIELD2 another value again name hithere code pre If the name of the tag doesn conform to the Python identifier rules then you could use getattr getattr some tag olli pChecking for code iter code works on sequence types but it would fail on strings strongin Python strong would like to know the right answer too until then here is one possibility which would work on strings too ppre codetry some object iterator iter some object except TypeError as te print some object is not iterable code prepThe codeiter code built in checks for the code iter code method or in the case of strings the code getitem code method lili pAnother general pythonic approach is to assume an iterable then fail gracefully if it does not work on the given object The Python glossary pblockquote pPythonic programming style that determines an object type by inspection of its method or attribute signature rather than by explicit relationship to some type object If it looks like strongduck strong and quacks like strongduck strong it must be strongduck strong By emphasizing interfaces rather than specific types well designed code improves its flexibility by allowing polymorphic substitution Duck typing avoids tests using type or isinstance strongInstead it typically employs the EAFP Easier to Ask Forgiveness than Permission style of programming strong ppre codetry for in my object except TypeError print my object is not iterable code pre blockquote lili pThe href http docs python org library collections html abcs abstract base classes rel noreferrer codecollections code module provides some abstract base classes which allow to ask classes or instances if they provide particular functionality for example ppre codeimport collectionsif isinstance collections Iterable is iterable code prepHowever this does not check for classes that are iterable through code getitem code li ol xrange is one object which has no iter method and is not sequence yet it is iterable,0,NULL,NULL 30786,124725,555996,NULL,NULL,NULL,0,NULL,NULL 30787,115668,1425158,Yearling Commentator Critic,NULL,NULL,0,NULL,NULL 30788,251027,65424,Popular Question Notable Question Great Question Notable Question Popular Question Inquisitive Yearling Popular Question Caucus Constituent Famous Question Yearling Yearling Famous Question Nice Question Famous Question Popular Question Yearling Popular Question Popular Question Good Question Famous Question Nice Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30789,136337,494642,Popular Question Popular Question Notable Question Nice Question Nice Answer Great Answer Nice Question Yearling Nice Question Good Answer Notable Question Yearling Good Question Popular Question Necromancer Famous Question Necromancer Pundit Revival Notable Question Inquisitive Yearling,NULL,pAccording to the jQuery Plugin Authoring page href http docs jquery com Plugins Authoring rel noreferrer http docs jquery com Plugins Authoring it best not to muddy up the jQuery and jQuery fn namespaces They suggest this method ppre code function var methods init function options show function IS hide function GOOD update function content fn tooltip function methodOrOptions if methods methodOrOptions return methods methodOrOptions apply this Array prototype slice call arguments else if typeof methodOrOptions object methodOrOptions Default to init return methods init apply this arguments else error Method methodOrOptions does not exist on jQuery tooltip jQuery code prepBasically you store your functions in an array scoped to the wrapping function and check for an entry if the parameter passed is string reverting to default method init here if the parameter is an object or null ppThen you can call the methods like so ppre code div tooltip calls the init method div tooltip calls the init method foo bar div tooltip hide calls the hide method div tooltip update This is the new tooltip content calls the update method code prepJavascripts arguments variable is an array of all the arguments passed so it works with arbitrary lengths of function parameters That code is from jQuery site It been while though h12D case h1pJust like the href https en wikipedia org wiki Dot product rel noreferrer dot product is proportional to the cosine of the angle the href https en wikipedia org wiki Determinant rel noreferrer determinant is proprortional to its sine So you can compute the angle like this ppre codedot x1 x2 y1 y2 dot product between x1 y1 and x2 y2 det x1 y2 y1 x2 determinantangle atan2 det dot atan2 or atan2 sin cos code prepThe orientation of this angle matches that of the coordinate system In href https en wikipedia org wiki Cartesian coordinate system In two dimensions rel noreferrer left handed coordinate system emx em pointing right and emy em down as is common for computer graphics this will mean you get positive sign for clockwise angles If the orientation of the coordinate system is mathematical with emy em up you get counter clockwise angles as is the convention in mathematics Changing the order of the inputs will change the sign so if you are unhappy with the signs just swap the inputs ph13D case h1pIn 3D two arbitrarily placed vectors define their own axis of rotation perpendicular to both That axis of rotation does not come with fixed orientation which means that you cannot uniquely fix the direction of the angle of rotation either One common convention is to let angles be always positive and to orient the axis in such way that it fits positive angle In this case the dot product of the normalized vectors is enough to compute angles ppre codedot x1 x2 y1 y2 z1 z2 between x1 y1 z1 and x2 y2 z2 lenSq1 x1 x1 y1 y1 z1 z1lenSq2 x2 x2 y2 y2 z2 z2angle acos dot sqrt lenSq1 lenSq2 code preh1Plane embedded in 3D h1pOne special case is the case where your vectors are not placed arbitrarily but lie within plane with known normal vector emn em Then the axis of rotation will be in direction emn em as well and the orientation of emn em will fix an orientation for that axis In this case you can adapt the 2D computation above including emn em into the href https en wikipedia org wiki Determinant rel noreferrer determinant to make its size 3×3 ppre codedot x1 x2 y1 y2 z1 z2det x1 y2 zn x2 yn z1 xn y1 z2 z1 y2 xn z2 yn x1 zn y1 x2angle atan2 det dot code prepOne condition for this to work is that the normal vector emn em has unit length If not you ll have to normalize it ph2As triple product h2pThis determinant could also be expressed as the href https en wikipedia org wiki Triple product Scalar triple product rel noreferrer triple product as href https stackoverflow com users 1133479 excrubulent pointed out in suggested edit ppre codedet v1 v2 code prepThis might be easier to implement in some APIs and gives different perspective on what going on here The cross product is proportional to the sine of the angle and will lie perpendicular to the plane hence be multiple of emn em The dot product will therefore basically measure the length of that vector but with the correct sign attached to it Are there derivations anywhere Just curious,0,NULL,NULL 30790,131957,444252,NULL,NULL,NULL,0,NULL,NULL 30791,1877241,684638,NULL,NULL,NULL,0,NULL,NULL 30792,1518518,1161760,NULL,NULL,NULL,0,NULL,NULL 30793,347419,454378,Notable Question Notable Question Inquisitive Popular Question Notable Question Popular Question Yearling Notable Question Nice Question Famous Question Favorite Question Notable Question Famous Question Yearling Nice Question Custodian Popular Question Yearling Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling,NULL,Faye vs Socket IO and Juggernaut websocket publish subscribe juggernaut bayeux socket io href http socket io rel noreferrer Socket IO seems to be the most popular and active WebSocket emulation library href https github com maccman juggernaut rel noreferrer Juggernaut uses it to create complete pub sub system pp href http faye jcoglan com rel noreferrer Faye is also popular and active and has its own javascript library making its complete functionality comparable to Juggernaut Juggernaut uses node for its server and Faye can use either node or rack Juggernaut uses Redis for persistence strongcorrection strong it uses Redis for pub sub and Faye only keeps state in memory polliIs everything above accurate liliFaye says it implements href http svn cometd com trunk bayeux bayeux html rel noreferrer Bayeux think Juggernaut does not do this is that because Juggernaut is lower level IE can implement Bayeux using Juggernaut liliCould Faye switch to using the Socket IO browser javascript library if it wanted to Or do their javascript libraries do fundamentally different things liliAre there any other architectural design philosophy differences between the projects li ol HTML Server Sent events seem to be the recommended alternative according to the Juggernaut author,0,NULL,NULL 30794,1148906,859583,NULL,NULL,NULL,0,NULL,NULL 30795,185491,24837,Popular Question Yearling,NULL,NULL,0,NULL,NULL 30796,324395,721949,NULL,NULL,NULL,0,NULL,NULL 30797,1610768,752247,NULL,NULL,NULL,0,NULL,NULL 30798,1144540,828870,NULL,NULL,NULL,0,NULL,NULL 30799,7926681,527576,NULL,NULL,NULL,0,NULL,NULL 30800,1145227,266699,Popular Question,NULL,NULL,0,NULL,NULL 30801,626517,426013,NULL,NULL,NULL,0,NULL,NULL 30802,94495,680519,Yearling Nice Answer Enlightened Necromancer Guru Notable Question Yearling Announcer Nice Answer Enlightened Announcer Announcer Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 30803,1433,379235,Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Great Answer Famous Question Good Question Popular Question Favorite Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Great Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Nice Answer Famous Question Notable Question Great Question Nice Question Yearling Good Question Popular Question Popular Question Nice Answer Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Notable Question Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Good Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Popular Question Favorite Question Nice Question Popular Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Popular Question Famous Question Great Question Nice Question Popular Question Notable Question Popular Question Good Question Popular Question Famous Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Great Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Question Notable Question Famous Question Famous Question Popular Question Nice Answer Nice Question Popular Question Notable Question Popular Question Popular Question Great Question Notable Question python Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Announcer Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Nice Answer Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Great Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Nice Question Notable Question Notable Question Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Famous Question Nice Question Favorite Question Popular Question Famous Question Popular Question Popular Question Popular Question Good Answer Popular Question Famous Question Popular Question Nice Answer Popular Question Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Great Question Famous Question Nice Question Nice Question Popular Question Famous Question Popular Question Famous Question Notable Question Good Question Popular Question Famous Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Good Question Nice Question Popular Question Announcer Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Good Question Popular Question Favorite Question Popular Question Good Question Famous Question Good Question Popular Question Notable Question Notable Question Favorite Question Popular Question Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Answer Notable Question Famous Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Great Question Famous Question Notable Question Yearling Popular Question Notable Question Notable Question Famous Question Famous Question Notable Question Famous Question Nice Question Nice Question Popular Question Popular Question Popular Question Nice Question Nice Answer Good Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Nice Question Famous Question Notable Question Good Answer Famous Question Nice Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Necromancer Nice Answer Popular Question Notable Question Nice Question Notable Question Notable Question Famous Question,NULL,pThis is synthesis of some of the other answers that have been provided The Java system properties provide enough information to come up with the path to the java command and the classpath in what think is platform independent way ppre codepublic final class JavaProcess private JavaProcess public static int exec Class klass throws IOException InterruptedException String javaHome System getProperty java home String javaBin javaHome File separator bin File separator java String classpath System getProperty java class path String className klass getName ProcessBuilder builder new ProcessBuilder javaBin cp classpath className Process process builder inheritIO start process waitFor return process exitValue code prepYou would run this method like so ppre codeint status JavaProcess exec MyClass class code prepI thought it made sense to pass in the actual class rather than the String representation of the name since the class has to be in the classpath anyways for this to work How to run the new process in detached mode so that the outer process can continue its work pIt not possible to query emjust em for the tasks you want however you can query for all the tasks and then just filter out the ones by their codecreated at code value So codeGET projects 1234 tasks opt fields name completed at code then iterate over and just select the ones you want Not very efficient but the best that is currently possible sure yeah thanks wanted to make sure am not missing anything obvious,1,Too many elements for Tuple 27 allowed 22 scala slick slick pI am new to Slick and using codeSlick code My table looks like ppre codeimport java sql Blob Timestamp import slick collection heterogeneous HNilimport slick driver MySQLDriver api case class AnomalyC id Int serviceName String serviceId String timeUpdated Timestamp timestamp Timestamp anomalyCategoryId Int userGroup Int riskValue Float activityTypeId Int destinationHost String userName String tenantId Int information Blob timeCreated Timestamp userId Int anomalyType Int anomalyValue String measure Int userAction Int uniqueIdentifier Int similarCount Int trainingValue String state Int riskLevel Int userRiskLevel Int userRiskScore Float response Int class Anomaly tag Tag extends Table AnomalyC tag Anomaly def id column Int id def serviceName column String ServiceName def serviceId column Int ServiceId def timeUpdated column Timestamp TimeUpdated def timestamp column Timestamp Timestamp def anomalyCategoryId column Int AnomalyCategoryId def userGroup column Int UserGroup def riskValue column Float RiskValue def activityTypeId column Int ActivityTypeId def destinationHost column String DestinationHost def userName column String UserName def tenantId column Int TenantId def information column Blob Information def timeCreated column Timestamp TimeCreated def userId column Int UserId def anomalyType column Int AnomalyType def anomalyValue column String AnomalyValue def measure column Int Measure def userAction column Int UserAction def uniqueIdentifier column String UniqueIdentifier def similarCount column Int SimilarCount def trainingValue column String TrainingValue def state column Int State def riskLevel column Int RiskLevel def userRiskLevel column Int UserRiskLevel def userRiskScore column Float UserRiskScore def response column Int Response def id serviceName serviceId timeUpdated timestamp anomalyCategoryId userGroup riskValue activityTypeId destinationHost userName tenantId information timeCreated userId anomalyType anomalyValue measure userAction uniqueIdentifier similarCount trainingValue state riskLevel userRiskLevel userRiskScore response code prepWhen run this get error as ppre codeError 57 11 too many elements for tuple 27 allowed 22 def id serviceName serviceId timeUpdated timestamp anomalyCategoryId userGroup code prepWhat do do,NULL 30804,419715,504318,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 30805,365109,159771,Notable Question,NULL,NULL,0,NULL,NULL 30806,449913,1422255,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 30807,203177,1019198,NULL,NULL,NULL,0,NULL,NULL 30808,885426,1099203,NULL,NULL,NULL,0,NULL,NULL 30809,481322,683192,NULL,NULL,NULL,0,NULL,NULL 30810,104525,591073,NULL,NULL,NULL,0,NULL,NULL 30811,81083,771793,NULL,NULL,NULL,0,NULL,NULL 30812,660111,328384,Necromancer Necromancer Yearling Good Answer Caucus Constituent Nice Answer Necromancer Necromancer Yearling Necromancer Nice Answer Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 30813,42524,1073410,Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 30814,127365,71444,Great Question Yearling Necromancer Notable Question Famous Question Nice Answer Enlightened Yearling Notable Question Excavator Popular Question Popular Question Yearling Great Question Stellar Question Revival Necromancer Favorite Question,NULL,NULL,0,NULL,NULL 30815,495463,521259,Popular Question Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 30816,949944,428485,NULL,NULL,NULL,0,NULL,NULL 30817,65112,12713,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30818,1339178,814846,Popular Question Popular Question Nice Question Yearling Notable Question Excavator Popular Question Caucus Good Question Popular Question Necromancer Yearling Notable Question,NULL,Histomorphisms Zygomorphisms and Futumorphisms specialised to lists haskell recursion pI ended up figuring it out See the video and slides of talk gave pulli href https github com haroldcarr presentations blob master 2017 05 27 lambdaconf recursion schemes pdf rel nofollow noreferrer slides pdf lili href https www youtube com watch TEvDaKg4XXA rel nofollow noreferrer video li ulpOriginal question ppIn my effort to understand generic recursion schemes that use codeFix code have found it useful to write list only versions of the various schemes It makes it much easier to understand the actual schemes without the additional overhead of the codeFix code stuff ppHowever have not yet figured out how to define list only versions of codezygo code and codefutu code ppHere are my specialised definitions so far ppre codecataL gt gt gt gt gt bcataL as cataL as cataL bparaL gt gt gt gt gt gt bparaL as as paraL as paraL TODO histo DONE zygo see below anaL gt gt gt anaL let in anaL anaL gt Maybe gt gt anaL case of Just gt anaL Nothing gt apoL gt Maybe Either gt gt apoL case of Nothing gt Just Left gt apoL Just Right gt DONE futu see below hyloL gt gt gt gt gt Maybe gt gt chyloL cataL anaL ghyloL gt gt gt gt gt Maybe gt chyloL case of Nothing gt Just gt hyloL code prepHow do you define codehisto code codezygo code and codefutu code for lists zygo Fix version zygo Functor Fix Histomorphisms Zygomorphisms and Futumorphisms specialised to lists haskell recursion pI ended up figuring it out See the video and slides of talk gave pulli href https github com haroldcarr presentations blob master 2017 05 27 lambdaconf recursion schemes pdf rel nofollow noreferrer slides pdf lili href https www youtube com watch TEvDaKg4XXA rel nofollow noreferrer video li ulpOriginal question ppIn my effort to understand generic recursion schemes that use codeFix code have found it useful to write list only versions of the various schemes It makes it much easier to understand the actual schemes without the additional overhead of the codeFix code stuff ppHowever have not yet figured out how to define list only versions of codezygo code and codefutu code ppHere are my specialised definitions so far ppre codecataL gt gt gt gt gt bcataL as cataL as cataL bparaL gt gt gt gt gt gt bparaL as as paraL as paraL TODO histo DONE zygo see below anaL gt gt gt anaL let in anaL anaL gt Maybe gt gt anaL case of Just gt anaL Nothing gt apoL gt Maybe Either gt gt apoL case of Nothing gt Just Left gt apoL Just Right gt DONE futu see below hyloL gt gt gt gt gt Maybe gt gt chyloL cataL anaL ghyloL gt gt gt gt gt Maybe gt chyloL case of Nothing gt Just gt hyloL code prepHow do you define codehisto code codezygo code and codefutu code for lists futu Mu version futu Mu Functor PF Ann Futu see see https hackage haskell org package pointless haskell docs Generics Pointless RecursionPatterns html Histomorphisms Zygomorphisms and Futumorphisms specialised to lists haskell recursion pI ended up figuring it out See the video and slides of talk gave pulli href https github com haroldcarr presentations blob master 2017 05 27 lambdaconf recursion schemes pdf rel nofollow noreferrer slides pdf lili href https www youtube com watch TEvDaKg4XXA rel nofollow noreferrer video li ulpOriginal question ppIn my effort to understand generic recursion schemes that use codeFix code have found it useful to write list only versions of the various schemes It makes it much easier to understand the actual schemes without the additional overhead of the codeFix code stuff ppHowever have not yet figured out how to define list only versions of codezygo code and codefutu code ppHere are my specialised definitions so far ppre codecataL gt gt gt gt gt bcataL as cataL as cataL bparaL gt gt gt gt gt gt bparaL as as paraL as paraL TODO histo DONE zygo see below anaL gt gt gt anaL let in anaL anaL gt Maybe gt gt anaL case of Just gt anaL Nothing gt apoL gt Maybe Either gt gt apoL case of Nothing gt Just Left gt apoL Just Right gt DONE futu see below hyloL gt gt gt gt gt Maybe gt gt chyloL cataL anaL ghyloL gt gt gt gt gt Maybe gt chyloL case of Nothing gt Just gt hyloL code prepHow do you define codehisto code codezygo code and codefutu code for lists do not know the list only type signature still trying to figure it out,1,Histomorphisms Zygomorphisms and Futumorphisms specialised to lists haskell recursion pI ended up figuring it out See the video and slides of talk gave pulli href https github com haroldcarr presentations blob master 2017 05 27 lambdaconf recursion schemes pdf rel nofollow noreferrer slides pdf lili href https www youtube com watch TEvDaKg4XXA rel nofollow noreferrer video li ulpOriginal question ppIn my effort to understand generic recursion schemes that use codeFix code have found it useful to write list only versions of the various schemes It makes it much easier to understand the actual schemes without the additional overhead of the codeFix code stuff ppHowever have not yet figured out how to define list only versions of codezygo code and codefutu code ppHere are my specialised definitions so far ppre codecataL gt gt gt gt gt bcataL as cataL as cataL bparaL gt gt gt gt gt gt bparaL as as paraL as paraL TODO histo DONE zygo see below anaL gt gt gt anaL let in anaL anaL gt Maybe gt gt anaL case of Just gt anaL Nothing gt apoL gt Maybe Either gt gt apoL case of Nothing gt Just Left gt apoL Just Right gt DONE futu see below hyloL gt gt gt gt gt Maybe gt gt chyloL cataL anaL ghyloL gt gt gt gt gt Maybe gt chyloL case of Nothing gt Just gt hyloL code prepHow do you define codehisto code codezygo code and codefutu code for lists,NULL 30819,137490,256513,Supporter Announcer Informed,NULL,NULL,0,NULL,NULL 30820,1506159,1273345,NULL,NULL,NULL,0,NULL,NULL 30821,33771,120044,Yearling Nice Answer Enlightened Good Answer Proofreader Yearling Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 30822,91418,679240,Nice Answer Yearling Necromancer Excavator Nice Answer Caucus Necromancer Custodian Organizer Necromancer Nice Question Yearling Revival Announcer Tenacious Custodian Custodian Custodian Custodian Tag Editor Popular Question Caucus Custodian Announcer Good Answer Promoter Famous Question Popular Question Caucus Yearling Revival java Self-Learner Necromancer,NULL,NULL,0,NULL,NULL 30823,1074392,480048,Popular Question,NULL,NULL,0,NULL,NULL 30824,1288571,475607,Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Announcer Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 30825,25912,475607,Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Announcer Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 30826,151502,1309955,NULL,NULL,NULL,0,NULL,NULL 30827,106150,272461,Nice Answer,NULL,NULL,0,NULL,NULL 30828,551496,1218585,Editor Commentator Student Supporter Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30829,171334,12599,NULL,NULL,NULL,0,NULL,NULL 30830,9474,910722,NULL,NULL,NULL,0,NULL,NULL 30831,245373,701779,Citizen Patrol Necromancer Informed,NULL,NULL,0,NULL,NULL 30832,50169,313068,Famous Question Yearling Nice Answer Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 30833,65200,143788,Yearling Good Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 30834,377067,929320,NULL,NULL,NULL,0,NULL,NULL 30835,142897,1317681,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 30836,261868,749748,Pundit Guru gpgpu Scholar Revival Yearling Good Answer Guru cuda Good Answer Nice Answer Enlightened Great Answer Nice Answer Yearling Nice Answer Enlightened Guru Nice Answer Documentation User Custodian Necromancer Yearling Revival Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 30837,68324,1522345,NULL,NULL,NULL,0,NULL,NULL 30838,2205974,557755,NULL,NULL,NULL,0,NULL,NULL 30839,669038,1330406,NULL,NULL,NULL,0,NULL,NULL 30840,884282,1171957,Famous Question,NULL,NULL,0,NULL,NULL 30841,1761343,731233,NULL,NULL,NULL,0,NULL,NULL 30842,617557,869723,NULL,NULL,NULL,0,NULL,NULL 30843,880755,869723,NULL,NULL,NULL,0,NULL,NULL 30844,477098,429292,NULL,NULL,NULL,0,NULL,NULL 30845,1772,93943,Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30846,3593761,93943,Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 30847,585820,408761,NULL,NULL,NULL,0,NULL,NULL 30848,23542,1454492,Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 30849,1051489,429000,NULL,NULL,NULL,0,NULL,NULL 30850,56477,934405,Commentator Yearling Revival Caucus,NULL,NULL,0,NULL,NULL 30851,72170,161962,Caucus Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 30852,185347,191176,Cleanup,NULL,NULL,0,NULL,NULL 30853,675250,1481045,NULL,NULL,NULL,0,NULL,NULL 30854,394294,1182984,NULL,NULL,NULL,0,NULL,NULL 30855,369510,997774,NULL,NULL,NULL,0,NULL,NULL 30856,12225,196279,Yearling,NULL,NULL,0,NULL,NULL 30857,103277,77534,NULL,NULL,NULL,0,NULL,NULL 30858,177233,538858,Yearling Caucus,NULL,NULL,0,NULL,NULL 30859,584851,511903,Critic Nice Answer Enlightened Caucus Yearling Good Answer Caucus Popular Question Yearling Caucus Guru,NULL,NULL,0,NULL,NULL 30860,199489,109017,NULL,NULL,NULL,0,NULL,NULL 30861,213827,166101,Nice Answer Good Answer Yearling Revival Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30862,656440,450227,NULL,NULL,NULL,0,NULL,NULL 30863,2804725,450227,NULL,NULL,NULL,0,NULL,NULL 30864,10411,157811,Informed,NULL,NULL,0,NULL,NULL 30865,307441,630170,Good Question Nice Answer Nice Answer Notable Question Announcer Yearling Necromancer Nice Answer Notable Question Nice Answer Great Question Good Answer Custodian Yearling Necromancer Nice Answer Nice Answer Caucus Stellar Question Announcer Popular Question Good Answer Good Answer Nice Answer jquery Yearling Good Answer Nice Answer Nice Answer Necromancer html Nice Answer Nice Answer Enlightened Necromancer Announcer Nice Answer Revival,NULL,pThere is no built in operator to do it in Go You need to iterate over the array You can write your own function to do it like this ppre codefunc stringInSlice string list string bool for range list if return true return false code prepIf you want to be able to check for membership without iterating over the whole list you need to use map instead of an array or slice like this ppre codevisitedURL map string bool http www google com true https paypal com true if visitedURL thisSite fmt Println Already been here code pre you can sort maps objects in Javascript also It v8 bug that objects return values in alphabetically sorted order,0,NULL,NULL 30866,420958,722863,Yearling,NULL,NULL,0,NULL,NULL 30867,240583,996800,Necromancer Informed Yearling Enthusiast,NULL,NULL,0,NULL,NULL 30868,697234,1143104,Student,NULL,NULL,0,NULL,NULL 30869,35293,830719,Teacher Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30870,687810,1057545,NULL,NULL,NULL,0,NULL,NULL 30871,329402,998020,NULL,NULL,NULL,0,NULL,NULL 30872,450043,1431838,Yearling Nice Answer Yearling Good Answer Critic Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 30873,380538,781020,Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 30874,377786,1361008,NULL,NULL,NULL,0,NULL,NULL 30875,196711,980483,NULL,NULL,NULL,0,NULL,NULL 30876,405198,233608,Popular Question Nice Answer Necromancer Nice Question Good Question Notable Question Popular Question Yearling Nice Answer Enlightened Necromancer Notable Question Custodian python Custodian Notable Question Yearling Census Good Answer Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 30877,481578,233608,Popular Question Nice Answer Necromancer Nice Question Good Question Notable Question Popular Question Yearling Nice Answer Enlightened Necromancer Notable Question Custodian python Custodian Notable Question Yearling Census Good Answer Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 30878,93978,735779,Nice Question Notable Question Revival Nice Question Yearling Notable Question Notable Question Necromancer Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Good Question Yearling Famous Question Popular Question Popular Question Notable Question Custodian Revival Custodian Nice Answer Revival Caucus Excavator Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 30879,446267,333990,Notable Question,NULL,NULL,0,NULL,NULL 30880,26193,43668,Popular Question,NULL,NULL,0,NULL,NULL 30881,1028723,395687,Editor Excavator Necromancer,NULL,NULL,0,NULL,NULL 30882,240388,49619,Nice Answer Enlightened Guru Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 30883,93245,437229,NULL,NULL,NULL,0,NULL,NULL 30884,357042,625840,Necromancer Yearling Announcer Nice Answer Nice Question Famous Question Famous Question Good Question Popular Question Nice Answer Enlightened Yearling Great Question Announcer Popular Question Popular Question Notable Question Good Question Good Question Great Answer Yearling Good Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 30885,160614,1194155,NULL,NULL,NULL,0,NULL,NULL 30886,803194,632416,NULL,NULL,NULL,0,NULL,NULL 30887,276740,168355,NULL,NULL,NULL,0,NULL,NULL 30888,66609,269943,Yearling Nice Answer Enlightened Taxonomist Good Answer boost Good Answer Yearling Nice Answer Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 30889,30096,215838,Yearling Necromancer Notable Question Good Question Yearling Caucus Famous Question Nice Answer Yearling Necromancer Good Answer Yearling Necromancer Good Answer Necromancer Necromancer Yearling Revival Necromancer Autobiographer Yearling Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 30890,500015,182739,Yearling Popular Question Curious Good Answer Popular Question,NULL,NULL,0,NULL,NULL 30891,32612,1194589,Popular Question,NULL,NULL,0,NULL,NULL 30892,200020,995011,Notable Question,NULL,NULL,0,NULL,NULL 30893,159694,285207,NULL,NULL,NULL,0,NULL,NULL 30894,352137,621821,NULL,NULL,NULL,0,NULL,NULL 30895,55518,1470983,NULL,NULL,NULL,0,NULL,NULL 30896,344849,408003,Yearling Yearling Guru Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 30897,63116,551528,NULL,NULL,NULL,0,NULL,NULL 30898,5664,138352,Custodian Custodian Custodian Custodian Proofreader Informed Nice Question Reviewer Notable Question Yearling Necromancer Popular Question Famous Question Good Question Disciplined Yearling Custodian Notable Question Famous Question Documentation User Caucus Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 30899,11149,693925,Necromancer,NULL,NULL,0,NULL,NULL 30900,487616,832573,Necromancer Yearling Caucus Tag Editor Yearling Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 30901,6049227,1033553,NULL,NULL,NULL,0,NULL,NULL 30902,625377,783412,Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Announcer Great Answer Guru Guru r Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Generalist Necromancer Nice Answer Enlightened Caucus Good Answer Good Answer Guru Necromancer Good Answer Yearling Tumbleweed Nice Answer Revival Good Answer java Caucus Good Answer Good Answer Curious Nice Answer Good Answer Good Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 30903,38565,1009993,Popular Question Good Answer Yearling Necromancer Popular Question Curious,NULL,NULL,0,NULL,NULL 30904,14596,146898,Good Answer Yearling Yearling Yearling Yearling Notable Question Yearling Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 30905,37005,495712,Notable Question,NULL,NULL,0,NULL,NULL 30906,196642,1359232,NULL,NULL,NULL,0,NULL,NULL 30907,3646095,1424611,Supporter Informed,NULL,NULL,0,NULL,NULL 30908,141111,332652,Guru Yearling Guru Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 30909,338753,1265762,Yearling Yearling,NULL,NULL,0,NULL,NULL 30910,543103,1014499,NULL,NULL,NULL,0,NULL,NULL 30911,492270,151540,Nice Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 30912,8736162,544779,Announcer Announcer Caucus Popular Question Yearling Great Answer Disciplined Nice Answer Enlightened Caucus Announcer Favorite Question javascript Yearling Announcer Announcer Caucus,NULL,Is there max number of arguments JavaScript functions can accept javascript pI know that JavaScript functions can accept any number of arguments ppre codefunction code prepBut wondering if there is actually limit to how many any can be ppE let say hand million arguments to codef code Would that work Or would the interpreter keel over ppI guessing the maximum is either implementation specific or code 32 code since the codearguments code object is array like ppI don see this mentioned in the language specification but might not be connecting some dots ürk This is not theoretical question Even if you never explicitly write such function if you use the ES 2015 spread operator and functions like Math max or Array prototype concat arrayOfArrays to flatten an array of arrays you can get to that limit dynamically without having written monster function The overhead mentioned by jfriend00 does not always matter clarity of code is more important than few bytes of memory or CPU cycles and the spread syntax may sometimes be the best choice in that regard Look at alternatives for flatten array to my short code Is there max number of arguments JavaScript functions can accept javascript pI know that JavaScript functions can accept any number of arguments ppre codefunction code prepBut wondering if there is actually limit to how many any can be ppE let say hand million arguments to codef code Would that work Or would the interpreter keel over ppI guessing the maximum is either implementation specific or code 32 code since the codearguments code object is array like ppI don see this mentioned in the language specification but might not be connecting some dots ürk understand that and made the comment now because it is relevant now SO answers and comments are not just for those people who posted,0,NULL,NULL 30913,1040113,544779,Announcer Announcer Caucus Popular Question Yearling Great Answer Disciplined Nice Answer Enlightened Caucus Announcer Favorite Question javascript Yearling Announcer Announcer Caucus,NULL,Is there max number of arguments JavaScript functions can accept javascript pI know that JavaScript functions can accept any number of arguments ppre codefunction code prepBut wondering if there is actually limit to how many any can be ppE let say hand million arguments to codef code Would that work Or would the interpreter keel over ppI guessing the maximum is either implementation specific or code 32 code since the codearguments code object is array like ppI don see this mentioned in the language specification but might not be connecting some dots ürk This is not theoretical question Even if you never explicitly write such function if you use the ES 2015 spread operator and functions like Math max or Array prototype concat arrayOfArrays to flatten an array of arrays you can get to that limit dynamically without having written monster function The overhead mentioned by jfriend00 does not always matter clarity of code is more important than few bytes of memory or CPU cycles and the spread syntax may sometimes be the best choice in that regard Look at alternatives for flatten array to my short code Is there max number of arguments JavaScript functions can accept javascript pI know that JavaScript functions can accept any number of arguments ppre codefunction code prepBut wondering if there is actually limit to how many any can be ppE let say hand million arguments to codef code Would that work Or would the interpreter keel over ppI guessing the maximum is either implementation specific or code 32 code since the codearguments code object is array like ppI don see this mentioned in the language specification but might not be connecting some dots ürk understand that and made the comment now because it is relevant now SO answers and comments are not just for those people who posted,0,NULL,NULL 30914,158935,705577,NULL,NULL,NULL,0,NULL,NULL 30915,143014,639804,Custodian Citizen Patrol Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30916,320056,759365,NULL,NULL,NULL,0,NULL,NULL 30917,210,1157182,NULL,NULL,NULL,0,NULL,NULL 30918,72493,1157182,NULL,NULL,NULL,0,NULL,NULL 30919,1237516,206603,NULL,NULL,NULL,0,NULL,NULL 30920,562272,760868,Good Question,NULL,NULL,0,NULL,NULL 30921,111507,224154,Notable Question Yearling Popular Question Documentation User Custodian Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 30922,154223,756714,Yearling Popular Question haskell Popular Question Yearling Promoter Benefactor,NULL,NULL,0,NULL,NULL 30923,55086,115887,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 30924,360112,627709,Popular Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 30925,509184,845480,NULL,NULL,NULL,0,NULL,NULL 30926,2396280,1233814,NULL,NULL,NULL,0,NULL,NULL 30927,1044609,257309,NULL,NULL,NULL,0,NULL,NULL 30928,261556,982186,Popular Question,NULL,NULL,0,NULL,NULL 30929,164497,520376,Caucus,NULL,NULL,0,NULL,NULL 30930,234799,417388,NULL,NULL,NULL,0,NULL,NULL 30931,78949,707822,NULL,NULL,NULL,0,NULL,NULL 30932,679269,1197539,Yearling Popular Question Yearling Nice Answer Enlightened Documentation User Custodian Good Answer Yearling Self-Learner Yearling Guru,NULL,NULL,0,NULL,NULL 30933,1168207,1108599,NULL,NULL,NULL,0,NULL,NULL 30934,452854,20270,Nice Answer Good Answer Nice Answer c++ Nice Answer Great Answer Yearling Nice Answer Caucus Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Caucus Nice Answer Good Answer Yearling Documentation User Census Good Answer Nice Answer Good Answer Caucus Great Answer Good Answer Guru Announcer Announcer Nice Answer Enlightened Yearling,NULL,pFrom href http graphics stanford edu seander bithacks html IntegerAbs rel noreferrer Bit Twiddling Hacks ppre codeint we want to find the absolute value of vunsigned int the result goes here int const mask gt gt sizeof int CHAR BIT mask mask code pre This is done without any branching It helpful where branching may be expensive or the compiler doesn use specialized instructions for the purpose conditional move negate As per Bit Twiddling Hacks On machines where branching is expensive the above expression can be faster than the obvious approach unsigned even though the number of operations is the same See also here https godbolt org 16bBTA for what some variants compile to pFrom href http graphics stanford edu seander bithacks html IntegerAbs rel noreferrer Bit Twiddling Hacks ppre codeint we want to find the absolute value of vunsigned int the result goes here int const mask gt gt sizeof int CHAR BIT mask mask code pre There no advantage over doing other than this being NOP when As shown by my link the compiler might make this branchless anyway as seen on x86 64 gcc where the compiler clearly knows this trick but is using mask mask instead The hack is useful where you want to force this but is ultimately just hack You usually would have no reason to use this,0,NULL,NULL 30935,3668,882555,NULL,NULL,NULL,0,NULL,NULL 30936,902546,316690,Popular Question Yearling,NULL,NULL,0,NULL,NULL 30937,158257,316690,Popular Question Yearling,NULL,NULL,0,NULL,NULL 30938,918238,440565,Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 30939,983219,815549,NULL,NULL,NULL,0,NULL,NULL 30940,42915,455609,NULL,NULL,NULL,0,NULL,NULL 30941,497917,624742,Curious Caucus Famous Question Teacher Yearling Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 30942,934147,865506,Supporter,NULL,NULL,0,NULL,NULL 30943,77539,865506,Supporter,NULL,NULL,0,NULL,NULL 30944,599913,734383,Excavator Caucus Yearling,NULL,NULL,0,NULL,NULL 30945,640030,509312,NULL,NULL,NULL,0,NULL,NULL 30946,686078,314687,Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 30947,1618520,1241551,NULL,NULL,NULL,0,NULL,NULL 30948,236847,94237,Good Answer Yearling Guru Nice Answer Guru Caucus Constituent Nice Answer Generalist Yearling Good Answer Guru Caucus Notable Question Guru Good Answer Caucus Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 30949,154435,1063921,NULL,NULL,NULL,0,NULL,NULL 30950,4434850,921455,NULL,NULL,NULL,0,NULL,NULL 30951,32321,156811,Good Answer Nice Answer Enlightened Yearling Great Answer mysql Caucus Guru Good Answer Yearling Custodian Nice Answer Guru php Yearling c++,NULL,NULL,0,NULL,NULL 30952,3669665,701773,NULL,NULL,NULL,0,NULL,NULL 30953,380129,853351,Notable Question Caucus Nice Question,NULL,NULL,0,NULL,NULL 30954,1485500,597761,NULL,NULL,NULL,0,NULL,NULL 30955,329344,597761,NULL,NULL,NULL,0,NULL,NULL 30956,10530,502330,NULL,NULL,NULL,0,NULL,NULL 30957,343324,827522,Popular Question,NULL,NULL,0,NULL,NULL 30958,173582,179205,Notable Question Yearling Popular Question Revival Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 30959,3684134,99380,Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 30960,423553,198616,Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 30961,590044,188185,Necromancer Nice Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 30962,80704,1067263,NULL,NULL,NULL,0,NULL,NULL 30963,168291,681835,Critic,NULL,NULL,0,NULL,NULL 30964,687852,580607,NULL,NULL,NULL,0,NULL,NULL 30965,162750,464467,Yearling Revival Nice Answer Yearling Peer Pressure Necromancer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 30966,445140,1231551,NULL,NULL,NULL,0,NULL,NULL 30967,449701,390080,NULL,NULL,NULL,0,NULL,NULL 30968,155382,1068220,NULL,NULL,NULL,0,NULL,NULL 30969,340686,94689,Nice Answer,NULL,NULL,0,NULL,NULL 30970,154879,1543023,NULL,NULL,NULL,0,NULL,NULL 30971,36948,851479,Popular Question,NULL,NULL,0,NULL,NULL 30972,863662,576615,NULL,NULL,NULL,0,NULL,NULL 30973,7760036,576615,NULL,NULL,NULL,0,NULL,NULL 30974,158703,1334531,NULL,NULL,NULL,0,NULL,NULL 30975,85667,1447973,Popular Question Popular Question Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 30976,1514770,1521866,NULL,NULL,NULL,0,NULL,NULL 30977,341801,947839,Notable Question Notable Question Revival Nice Question Yearling Popular Question Popular Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 30978,426358,802386,NULL,NULL,NULL,0,NULL,NULL 30979,20474,259946,Yearling Electorate Steward nhibernate Good Answer Disciplined Revival Announcer Good Answer Caucus Favorite Question Yearling Yearling Nice Question Popular Question Nice Answer Necromancer Announcer Taxonomist Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 30980,586162,844602,NULL,NULL,NULL,0,NULL,NULL 30981,245178,1263441,NULL,NULL,NULL,0,NULL,NULL 30982,33093,515954,Commentator,NULL,NULL,0,NULL,NULL 30983,254091,378638,Yearling Notable Question Nice Answer Nice Answer Good Answer Popular Question Yearling Announcer Popular Question Civic Duty Popular Question Good Answer Yearling Excavator Announcer Nice Question Yearling,NULL,NULL,0,NULL,NULL 30984,296883,1135102,NULL,NULL,NULL,0,NULL,NULL 30985,243477,582989,NULL,NULL,NULL,0,NULL,NULL 30986,577165,485414,NULL,NULL,NULL,0,NULL,NULL 30987,218065,1132140,Yearling Necromancer Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 30988,370689,1082299,NULL,NULL,NULL,0,NULL,NULL 30989,1031820,233045,NULL,NULL,NULL,0,NULL,NULL 30990,19187,1466954,NULL,NULL,NULL,0,NULL,NULL 30991,368252,615962,Commentator Student Critic Necromancer Yearling Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 30992,38131,326694,Caucus,NULL,NULL,0,NULL,NULL 30993,377780,1500285,NULL,NULL,NULL,0,NULL,NULL 30994,107613,767036,NULL,NULL,NULL,0,NULL,NULL 30995,1505835,1415563,Editor,NULL,NULL,0,NULL,NULL 30996,430858,1470426,NULL,NULL,NULL,0,NULL,NULL 30997,701781,1214569,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 30998,2017598,450994,NULL,NULL,NULL,0,NULL,NULL 30999,146458,585687,NULL,NULL,NULL,0,NULL,NULL 31000,113612,1000485,NULL,NULL,NULL,0,NULL,NULL 31001,197034,956822,NULL,NULL,NULL,0,NULL,NULL 31002,410988,1043736,NULL,NULL,NULL,0,NULL,NULL 31003,36989,216402,NULL,NULL,NULL,0,NULL,NULL 31004,16137,128942,Yearling Nice Answer Good Answer Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 31005,153818,837602,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 31006,16081,190069,NULL,NULL,NULL,0,NULL,NULL 31007,7404760,778049,NULL,NULL,NULL,0,NULL,NULL 31008,893295,778049,NULL,NULL,NULL,0,NULL,NULL 31009,34589,692212,NULL,NULL,NULL,0,NULL,NULL 31010,862225,1446748,NULL,NULL,NULL,0,NULL,NULL 31011,6837888,902061,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31012,1508255,902061,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31013,163398,485757,NULL,NULL,NULL,0,NULL,NULL 31014,130244,1004712,Yearling Nice Answer Caucus Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 31015,603547,704459,NULL,NULL,NULL,0,NULL,NULL 31016,1623933,895673,NULL,NULL,NULL,0,NULL,NULL 31017,336551,895524,NULL,NULL,NULL,0,NULL,NULL 31018,376968,699070,NULL,NULL,NULL,0,NULL,NULL 31019,720795,483084,Excavator Necromancer Yearling Caucus Constituent Guru Nice Answer Nice Answer Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 31020,893718,881059,NULL,NULL,NULL,0,NULL,NULL 31021,357938,1219980,NULL,NULL,NULL,0,NULL,NULL 31022,7749833,109655,NULL,NULL,NULL,0,NULL,NULL 31023,177552,109655,NULL,NULL,NULL,0,NULL,NULL 31024,309963,1434220,Civic Duty Nice Answer Enlightened Yearling Yearling Nice Question Nice Answer Enlightened Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 31025,15930,411029,Good Answer,NULL,NULL,0,NULL,NULL 31026,420172,714058,NULL,NULL,NULL,0,NULL,NULL 31027,60153,1358561,Critic Yearling Revival Editor Good Answer Yearling,NULL,NULL,0,NULL,NULL 31028,264614,164518,NULL,NULL,NULL,0,NULL,NULL 31029,124798,1036258,NULL,NULL,NULL,0,NULL,NULL 31030,46570,91053,Nice Question,NULL,NULL,0,NULL,NULL 31031,825353,725380,NULL,NULL,NULL,0,NULL,NULL 31032,510873,1397664,Teacher Revival,NULL,NULL,0,NULL,NULL 31033,1338648,1237541,Yearling Excavator Caucus Constituent Necromancer Yearling Notable Question Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 31034,13134,152946,Yearling,NULL,NULL,0,NULL,NULL 31035,73791,665273,Student Supporter,NULL,NULL,0,NULL,NULL 31036,164429,541853,NULL,NULL,NULL,0,NULL,NULL 31037,6785,938234,NULL,NULL,NULL,0,NULL,NULL 31038,273207,870086,NULL,NULL,NULL,0,NULL,NULL 31039,115831,821847,NULL,NULL,NULL,0,NULL,NULL 31040,17840,94962,Notable Question Yearling Nice Question Popular Question Notable Question Notable Question Good Question Yearling Famous Question Famous Question Caucus Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31041,211149,182327,Good Answer Good Answer Nice Answer Popular Question Nice Question Guru Yearling Nice Answer Guru git Nice Answer Good Answer Yearling Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 31042,1126474,201940,NULL,NULL,NULL,0,NULL,NULL 31043,178867,810749,NULL,NULL,NULL,0,NULL,NULL 31044,168386,808942,Yearling Autobiographer,NULL,NULL,0,NULL,NULL 31045,52887,545247,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 31046,1373807,1357373,Critic,NULL,NULL,0,NULL,NULL 31047,1787730,607768,NULL,NULL,NULL,0,NULL,NULL 31048,532749,340265,NULL,NULL,NULL,0,NULL,NULL 31049,198827,104527,Yearling Necromancer Custodian Popular Question Notable Question Yearling Revival Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 31050,1737147,830055,Popular Question,NULL,NULL,0,NULL,NULL 31051,37811,825469,Good Answer Yearling Nice Answer Good Answer Yearling Scholar Guru Documentation User Self-Learner Student Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 31052,5455358,1261676,NULL,NULL,NULL,0,NULL,NULL 31053,364373,847036,NULL,NULL,NULL,0,NULL,NULL 31054,6728,264229,Editor Yearling Scholar Revival Popular Question,NULL,NULL,0,NULL,NULL 31055,32689,282682,NULL,NULL,NULL,0,NULL,NULL 31056,7062110,552424,NULL,NULL,NULL,0,NULL,NULL 31057,1188525,89590,Famous Question Notable Question Necromancer Curious Yearling Necromancer Necromancer Notable Question Populist Nice Answer Nice Answer Necromancer Notable Question Necromancer Yearling Nice Answer Nice Answer Necromancer Necromancer Announcer Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 31058,250008,808898,Revival Revival,NULL,NULL,0,NULL,NULL 31059,335453,1467028,Commentator,NULL,NULL,0,NULL,NULL 31060,1079086,555409,NULL,NULL,NULL,0,NULL,NULL 31061,205439,517707,Critic Necromancer Necromancer Yearling Nice Answer Yearling Commentator Custodian Custodian Custodian Yearling Caucus Constituent Nice Answer Good Answer Yearling Announcer Caucus Constituent Necromancer Documentation User Announcer Necromancer Announcer Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31062,1782909,1069837,NULL,NULL,NULL,0,NULL,NULL 31063,500309,469996,Popular Question,NULL,NULL,0,NULL,NULL 31064,70498,1236372,Informed Tumbleweed,NULL,NULL,0,NULL,NULL 31065,103719,817066,NULL,NULL,NULL,0,NULL,NULL 31066,16422,19477,Custodian Guru Yearling Custodian Quorum Steward Good Answer Caucus Good Question python Yearling Documentation User Good Answer Census Custodian Caucus Constituent Famous Question Yearling,NULL,NULL,0,NULL,NULL 31067,153287,1094847,Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31068,1873577,1094847,Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31069,998434,1094847,Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31070,42649,167797,NULL,NULL,NULL,0,NULL,NULL 31071,280704,432280,NULL,NULL,NULL,0,NULL,NULL 31072,449656,695467,NULL,NULL,NULL,0,NULL,NULL 31073,1163456,782830,Student,NULL,NULL,0,NULL,NULL 31074,320765,14755,Favorite Question Popular Question Famous Question Famous Question Yearling Good Question Revival Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 31075,74127,644075,Explainer Inquisitive Custodian Yearling Revival Popular Question Yearling Announcer Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 31076,684086,835402,NULL,NULL,NULL,0,NULL,NULL 31077,673064,835402,NULL,NULL,NULL,0,NULL,NULL 31078,369407,980279,NULL,NULL,NULL,0,NULL,NULL 31079,356528,306546,NULL,NULL,NULL,0,NULL,NULL 31080,322157,1237943,NULL,NULL,NULL,0,NULL,NULL 31081,200371,1055842,NULL,NULL,NULL,0,NULL,NULL 31082,2687242,991007,NULL,NULL,NULL,0,NULL,NULL 31083,171373,625574,NULL,NULL,NULL,0,NULL,NULL 31084,185703,496321,Nice Answer Yearling Yearling Good Answer Nice Question Commentator Famous Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31085,1062667,368899,NULL,NULL,NULL,0,NULL,NULL 31086,2793254,1387568,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31087,164972,285954,Nice Answer Enlightened Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 31088,45734,312873,Nice Answer Yearling Popular Question Notable Question Inquisitive Notable Question Yearling Autobiographer Popular Question Notable Question Popular Question Notable Question Famous Question Good Answer Notable Question Yearling Excavator,NULL,NULL,0,NULL,NULL 31089,17776,152860,Popular Question Yearling Popular Question Good Question Caucus Yearling Census Caucus Custodian Civic Duty Excavator Yearling Notable Question Great Answer,NULL,NULL,0,NULL,NULL 31090,234100,72174,Popular Question Notable Question Nice Question Yearling Famous Question Popular Question Famous Question Informed Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Popular Question Good Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Good Question Popular Question Yearling Famous Question Nice Question Popular Question Notable Question Famous Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 31091,240261,368115,Custodian Yearling Famous Question Curious Famous Question Cleanup Popular Question,NULL,NULL,0,NULL,NULL 31092,121369,870746,Scholar Revival,NULL,NULL,0,NULL,NULL 31093,243490,246136,Curious Teacher,NULL,NULL,0,NULL,NULL 31094,1387360,1066879,Revival Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 31095,389279,1546684,NULL,NULL,NULL,0,NULL,NULL 31096,890383,706603,NULL,NULL,NULL,0,NULL,NULL 31097,344668,579423,Notable Question Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 31098,185338,741747,Nice Answer Enlightened Guru Nice Answer Copy Editor Good Answer Guru Nice Answer Nice Answer Enlightened laravel-5 Notable Question Guru Revival Nice Answer Good Answer Good Answer Yearling Nice Answer Pundit Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer twitter-bootstrap Great Answer Nice Answer Nice Answer Nice Answer Guru Great Answer eloquent Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Favorite Question Caucus Good Answer Great Answer Enlightened Nice Answer Constituent Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened html Popular Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Good Answer Notable Question Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened html5 Nice Answer Enlightened Necromancer Caucus Good Answer jquery-ui Constituent Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Enlightened Good Answer Custodian Custodian Good Answer Guru Nice Answer Good Answer Documentation User Guru Nice Answer sql Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Question Good Answer Guru Nice Answer Census Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Nice Answer Enlightened Constituent Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Famous Question Yearling Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Great Answer validation database Guru Announcer Populist Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Populist Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 31099,180192,211707,NULL,NULL,NULL,0,NULL,NULL 31100,1289859,1357622,NULL,NULL,NULL,0,NULL,NULL 31101,1782513,1061525,NULL,NULL,NULL,0,NULL,NULL 31102,249853,603737,NULL,NULL,NULL,0,NULL,NULL 31103,298360,173536,NULL,NULL,NULL,0,NULL,NULL 31104,152020,48011,Good Answer Yearling Caucus Constituent Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 31105,223180,730422,NULL,NULL,NULL,0,NULL,NULL 31106,408274,695480,Excavator Nice Question Popular Question Civic Duty Famous Question Custodian Custodian Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 31107,263311,1118878,Nice Answer Nice Question Notable Question Custodian Yearling Notable Question Self-Learner Notable Question Popular Question Census Popular Question Yearling Notable Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 31108,1508089,840979,NULL,NULL,NULL,0,NULL,NULL 31109,28668,529996,Yearling Custodian,NULL,NULL,0,NULL,NULL 31110,1022866,826498,NULL,NULL,NULL,0,NULL,NULL 31111,36136,188004,NULL,NULL,NULL,0,NULL,NULL 31112,260729,700610,NULL,NULL,NULL,0,NULL,NULL 31113,79837,332520,NULL,NULL,NULL,0,NULL,NULL 31114,400113,516256,Nice Answer node.js Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Yearling Good Answer Good Answer Good Answer Great Answer Yearling Good Answer Tag Editor Taxonomist Nice Answer Great Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31115,3778349,487421,Notable Question Autobiographer Census,NULL,NULL,0,NULL,NULL 31116,8981,229499,Nice Answer Enlightened Nice Answer Enlightened Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 31117,904739,1246024,NULL,NULL,NULL,0,NULL,NULL 31118,168442,508355,Necromancer Necromancer Nice Answer Necromancer javascript Yearling Nice Answer Enlightened Necromancer Necromancer Necromancer Announcer Necromancer Good Answer Announcer Nice Answer Good Answer Announcer Caucus Announcer Nice Answer Announcer Yearling Nice Answer Cleanup Custodian Nice Answer Nice Answer Guru Yearling,NULL,pThe codeattributes code property contains them all ppre code this each function each this attributes function this attributes is not plain object but an array of attribute nodes which contain both the name and value if this specified console log this name this value code prehrpWhat you can also do is extending code attr code so that you can call it like code attr code to get plain object of all attributes ppre code function old fn attr function if arguments length if this length return null var obj each this attributes function if this specified obj this name this value return obj return old apply this arguments fn attr code prepUsage ppre codevar div lt div data id gt div attr data id code pre For the record while ancient IE versions did list all possible attributes IE7 was the last version affected by that issue These days there is no need to filter the attributes list with the specified property strongTldr strong ppIf you just want to query the window height cross browser and be done with it use href https github com hashchange jquery documentsize rel noreferrer jQuery documentSize and call href https github com hashchange jquery documentsize window size rel noreferrer code windowHeight code For implementing your own solution read on pp strongWhen to use jQuery or the codeclientHeight code of the document strong ppjQuery code window height code is wrapper for codedocument documentElement clientHeight code It gives you the height of the viewport excluding the space covered by browser scroll bars Generally it works fine and enjoys near universal browser support But there are href https github com hashchange jquery documentsize window size rel noreferrer quirks on mobile and in iOS in particular pulli pIn iOS the return value pretends that the URL and tab bars are visible even if they are not They get hidden as soon as the user scrolls and the browser switches to minimal UI Window height is increased by roughly 60px in the process and that is strongnot strong reflected in the codeclientHeight code or in jQuery lili pThe codeclientHeight code returns the size of the href http www quirksmode org mobile viewports2 html rel noreferrer layout viewport not the visual viewport and therefore does not reflect the zoom state li ulpSo not quite so great on mobile pp strongWhen to use codewindow innerHeight code strong ppThere is another property you can query codewindow innerHeight code It pullireturns the window height liliis based on the visual viewport ie reflects the zoom state liliis updated when the browser enters minimal UI mobile Safari lili strongbut strong it includes the area covered by scroll bars li ulpThe last point means that you can just drop it in as replacement Also it is not supported in IE8 and broken in Firefox href https developer mozilla org en US docs Web API Window innerWidth Standards information rel noreferrer prior to FF25 October 2013 ppBut it can be used as replacement on mobile because mobile browsers present scroll bars as temporary overlay which does not consume space in the viewport codewindow innerHeight code and coded dE clientHeight code return the same value in that regard pp strongCross browser solution strong ppSo cross browser solution for finding out the real window height works like this pseudo code ppre codeIF the size of browser scroll bars is overlay RETURN window innerHeightELSE RETURN document documentElement clientHeight code prepThe catch here is how to determine the size width of the scroll bars for given browser You need to run test for it It not particularly difficult have look at href https github com hashchange jquery documentsize blob f6572e4c9f2d54e3d6139d4798f05d7c63fa909a src jquery documentsize js L74 98 rel noreferrer my implementation here or the href http benalman com projects jquery misc plugins scrollbarwidth rel noreferrer original one by Ben Alman if you wish ppIf you don want to roll your own you can also use component of mine href https github com hashchange jquery documentsize rel noreferrer jQuery documentSize and be done with href https github com hashchange jquery documentsize window size rel noreferrer code windowHeight code call Thank you,1,NULL,Get all attributes of an element using jQuery javascript jquery attributes pI am trying to go through an element and get all the attributes of that element to output them for example an tag may have or more attributes unknown to me and need to get the names and values of these attributes was thinking something along the lines of ppre class lang js prettyprint override code this attr each function index element var name this name var value this value Do something with name and value code prepCould anyone tell me if this is even possible and if so what the correct syntax would be pHere is an overview of the many ways that can be done for my own reference as well as yours The functions return hash of attribute names and their values pp strongVanilla JS strong ppre codefunction getAttributes node var attributeNodes node attributes length attributeNodes length attrs for lt length attrs attributeNodes name attributeNodes value return attrs code prep strongVanilla JS with Array reduce strong ppWorks for browsers supporting ES 2011 Requires IE9 does not work in IE8 ppre codefunction getAttributes node var attributeNodeArray Array prototype slice call node attributes return attributeNodeArray reduce function attrs attribute attrs attribute name attribute value return attrs code prep strongjQuery strong ppThis function expects jQuery object not DOM element ppre codefunction getAttributes node var attrs each node attributes function index attribute attrs attribute name attribute value return attrs code prep strongUnderscore strong ppAlso works for lodash ppre codefunction getAttributes node return reduce node attributes function attrs attribute attrs attribute name attribute value return attrs code prep stronglodash strong ppIs even more concise than the Underscore version but only works for lodash not for Underscore Requires IE9 is buggy in IE8 Kudos to href https stackoverflow com 25946982 508355 for that one ppre codefunction getAttributes node return transform node attributes function attrs attribute attrs attribute name attribute value code prep strongTest page strong ppAt JS Bin there is href http jsbin com vefiku rel noreferrer live test page covering all these functions The test includes boolean attributes codehidden code and enumerated attributes codecontenteditable code 31119,2189576,508355,Necromancer Necromancer Nice Answer Necromancer javascript Yearling Nice Answer Enlightened Necromancer Necromancer Necromancer Announcer Necromancer Good Answer Announcer Nice Answer Good Answer Announcer Caucus Announcer Nice Answer Announcer Yearling Nice Answer Cleanup Custodian Nice Answer Nice Answer Guru Yearling,NULL,pThe codeattributes code property contains them all ppre code this each function each this attributes function this attributes is not plain object but an array of attribute nodes which contain both the name and value if this specified console log this name this value code prehrpWhat you can also do is extending code attr code so that you can call it like code attr code to get plain object of all attributes ppre code function old fn attr function if arguments length if this length return null var obj each this attributes function if this specified obj this name this value return obj return old apply this arguments fn attr code prepUsage ppre codevar div lt div data id gt div attr data id code pre For the record while ancient IE versions did list all possible attributes IE7 was the last version affected by that issue These days there is no need to filter the attributes list with the specified property strongTldr strong ppIf you just want to query the window height cross browser and be done with it use href https github com hashchange jquery documentsize rel noreferrer jQuery documentSize and call href https github com hashchange jquery documentsize window size rel noreferrer code windowHeight code For implementing your own solution read on pp strongWhen to use jQuery or the codeclientHeight code of the document strong ppjQuery code window height code is wrapper for codedocument documentElement clientHeight code It gives you the height of the viewport excluding the space covered by browser scroll bars Generally it works fine and enjoys near universal browser support But there are href https github com hashchange jquery documentsize window size rel noreferrer quirks on mobile and in iOS in particular pulli pIn iOS the return value pretends that the URL and tab bars are visible even if they are not They get hidden as soon as the user scrolls and the browser switches to minimal UI Window height is increased by roughly 60px in the process and that is strongnot strong reflected in the codeclientHeight code or in jQuery lili pThe codeclientHeight code returns the size of the href http www quirksmode org mobile viewports2 html rel noreferrer layout viewport not the visual viewport and therefore does not reflect the zoom state li ulpSo not quite so great on mobile pp strongWhen to use codewindow innerHeight code strong ppThere is another property you can query codewindow innerHeight code It pullireturns the window height liliis based on the visual viewport ie reflects the zoom state liliis updated when the browser enters minimal UI mobile Safari lili strongbut strong it includes the area covered by scroll bars li ulpThe last point means that you can just drop it in as replacement Also it is not supported in IE8 and broken in Firefox href https developer mozilla org en US docs Web API Window innerWidth Standards information rel noreferrer prior to FF25 October 2013 ppBut it can be used as replacement on mobile because mobile browsers present scroll bars as temporary overlay which does not consume space in the viewport codewindow innerHeight code and coded dE clientHeight code return the same value in that regard pp strongCross browser solution strong ppSo cross browser solution for finding out the real window height works like this pseudo code ppre codeIF the size of browser scroll bars is overlay RETURN window innerHeightELSE RETURN document documentElement clientHeight code prepThe catch here is how to determine the size width of the scroll bars for given browser You need to run test for it It not particularly difficult have look at href https github com hashchange jquery documentsize blob f6572e4c9f2d54e3d6139d4798f05d7c63fa909a src jquery documentsize js L74 98 rel noreferrer my implementation here or the href http benalman com projects jquery misc plugins scrollbarwidth rel noreferrer original one by Ben Alman if you wish ppIf you don want to roll your own you can also use component of mine href https github com hashchange jquery documentsize rel noreferrer jQuery documentSize and be done with href https github com hashchange jquery documentsize window size rel noreferrer code windowHeight code call Thank you,1,NULL,Get all attributes of an element using jQuery javascript jquery attributes pI am trying to go through an element and get all the attributes of that element to output them for example an tag may have or more attributes unknown to me and need to get the names and values of these attributes was thinking something along the lines of ppre class lang js prettyprint override code this attr each function index element var name this name var value this value Do something with name and value code prepCould anyone tell me if this is even possible and if so what the correct syntax would be pHere is an overview of the many ways that can be done for my own reference as well as yours The functions return hash of attribute names and their values pp strongVanilla JS strong ppre codefunction getAttributes node var attributeNodes node attributes length attributeNodes length attrs for lt length attrs attributeNodes name attributeNodes value return attrs code prep strongVanilla JS with Array reduce strong ppWorks for browsers supporting ES 2011 Requires IE9 does not work in IE8 ppre codefunction getAttributes node var attributeNodeArray Array prototype slice call node attributes return attributeNodeArray reduce function attrs attribute attrs attribute name attribute value return attrs code prep strongjQuery strong ppThis function expects jQuery object not DOM element ppre codefunction getAttributes node var attrs each node attributes function index attribute attrs attribute name attribute value return attrs code prep strongUnderscore strong ppAlso works for lodash ppre codefunction getAttributes node return reduce node attributes function attrs attribute attrs attribute name attribute value return attrs code prep stronglodash strong ppIs even more concise than the Underscore version but only works for lodash not for Underscore Requires IE9 is buggy in IE8 Kudos to href https stackoverflow com 25946982 508355 for that one ppre codefunction getAttributes node return transform node attributes function attrs attribute attrs attribute name attribute value code prep strongTest page strong ppAt JS Bin there is href http jsbin com vefiku rel noreferrer live test page covering all these functions The test includes boolean attributes codehidden code and enumerated attributes codecontenteditable code 31120,635959,657312,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31121,883847,776425,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31122,536418,368968,NULL,NULL,NULL,0,NULL,NULL 31123,118547,993175,Popular Question,NULL,NULL,0,NULL,NULL 31124,92126,901057,NULL,NULL,NULL,0,NULL,NULL 31125,248292,870079,Necromancer Yearling Nice Answer Necromancer Yearling Good Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31126,416960,1247321,Good Answer,NULL,,0,, 31127,1944549,284634,NULL,NULL,NULL,0,NULL,NULL 31128,1162661,800750,NULL,NULL,NULL,0,NULL,NULL 31129,4925,1560204,NULL,NULL,NULL,0,NULL,NULL 31130,124838,946329,NULL,NULL,NULL,0,NULL,NULL 31131,468300,488822,NULL,NULL,NULL,0,NULL,NULL 31132,613965,660399,NULL,NULL,NULL,0,NULL,NULL 31133,445250,303748,Nice Answer Popular Question Yearling Explainer Caucus Yearling Famous Question Famous Question Nice Answer Favorite Question Custodian Popular Question Yearling Popular Question Nice Answer,NULL,pI ran into the same issue and believe the cleanest way of issuing the DDL is something like this ppre codefrom sqlalchemy import eventfrom sqlalchemy schema import CreateSchemaevent listen Base metadata before create CreateSchema my schema code prepThis will ensure that before anything contained in the metadata of your base is created you have the schema for it This does however not check if the schema already exists ppYou can do codeCreateSchema my schema execute if callback check schema code if you can be bothered to write the codecheck schema code callback href http docs sqlalchemy org en rel core ddl html controlling ddl sequences rel noreferrer Controlling DDL Sequences on codeshould create code in docs Or as an easy way out just use codeDDL CREATE SCHEMA IF NOT EXISTS my schema code instead for Postgres ppre codefrom sqlalchemy import DDLevent listen Base metadata before create DDL CREATE SCHEMA IF NOT EXISTS my schema code pre You may want to ask that as separate question But you would probably have to check if the schema does not exist if it does not create it and run whatever migration you want to This isn strictly covered by my answer You may want to look into full migrations library SQLAlchemy Migrate or alembic,0,NULL,NULL 31134,99353,1045703,NULL,NULL,NULL,0,NULL,NULL 31135,301074,1317612,NULL,NULL,NULL,0,NULL,NULL 31136,608964,122904,Good Question Notable Question Famous Question Yearling Notable Question Nice Question Famous Question Notable Question Popular Question Caucus Constituent Nice Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 31137,300249,84952,Notable Question Notable Question Yearling Nice Question Nice Question Famous Question Famous Question Famous Question Popular Question Famous Question Notable Question Favorite Question Popular Question Famous Question Good Question Good Question Famous Question Famous Question Nice Question Notable Question Good Question Good Question Notable Question Yearling Famous Question Popular Question Custodian Popular Question Popular Question Popular Question Nice Question Nice Question Famous Question Good Question Notable Question Popular Question Famous Question Great Question Yearling Good Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 31138,1650331,1289359,NULL,NULL,NULL,0,NULL,NULL 31139,5476394,940540,NULL,NULL,NULL,0,NULL,NULL 31140,745622,940540,NULL,NULL,NULL,0,NULL,NULL 31141,114997,80711,Yearling Guru Nice Answer Great Answer Yearling Nice Answer Yearling Self-Learner Good Answer Great Answer,NULL,NULL,0,NULL,NULL 31142,123634,912114,Caucus,NULL,NULL,0,NULL,NULL 31143,387053,998341,Revival Popular Question Necromancer Commentator Custodian Peer Pressure Critic Revival Explainer,NULL,NULL,0,NULL,NULL 31144,111955,1255564,NULL,NULL,NULL,0,NULL,NULL 31145,338112,612901,Notable Question Good Answer Yearling Guru Notable Question Famous Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31146,165035,844427,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31147,1575289,284693,Popular Question Good Question Popular Question Notable Question Yearling Popular Question Great Question Custodian Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Favorite Question Nice Question Notable Question Yearling Popular Question Popular Question Nice Answer Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 31148,202545,284693,Popular Question Good Question Popular Question Notable Question Yearling Popular Question Great Question Custodian Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Favorite Question Nice Question Notable Question Yearling Popular Question Popular Question Nice Answer Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 31149,1109517,967654,NULL,NULL,NULL,0,NULL,NULL 31150,308826,13028,Yearling Necromancer Good Answer Famous Question Notable Question Notable Question Yearling Famous Question Necromancer Notable Question Benefactor Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 31151,312246,1275940,NULL,NULL,NULL,0,NULL,NULL 31152,3981085,1275940,NULL,NULL,NULL,0,NULL,NULL 31153,367187,1296035,NULL,NULL,NULL,0,NULL,NULL 31154,1562214,1363233,NULL,NULL,NULL,0,NULL,NULL 31155,1103593,1207910,NULL,NULL,NULL,0,NULL,NULL 31156,19748,383847,Fanatic Guru Revival Necromancer Nice Answer Popular Question Yearling woocommerce Strunk & White Popular Question Nice Answer Notable Question Nice Answer wordpress Popular Question Good Question Necromancer Announcer Nice Answer Good Answer Custodian Revival Announcer Notable Question Nice Answer Guru Nice Answer Announcer Revival Nice Answer Announcer Yearling Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Good Question Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Announcer Revival Nice Answer Announcer Popular Question Nice Answer wordpress-plugin Announcer Announcer Announcer Notable Question php Nice Answer Nice Answer Enlightened Yearling Necromancer Announcer Good Answer woocommerce product Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31157,117651,6848,Nice Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 31158,533924,50872,Teacher Curious Critic Commentator Popular Question,NULL,NULL,0,NULL,NULL 31159,653498,1405641,NULL,NULL,NULL,0,NULL,NULL 31160,192378,723215,NULL,NULL,NULL,0,NULL,NULL 31161,1218312,336694,Popular Question Caucus Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31162,19814,648021,Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 31163,1002873,9686,Nice Answer Nice Answer Nice Answer Yearling Revival Good Answer Yearling Good Answer Necromancer Guru Nice Answer Electorate Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31164,146835,323094,Yearling Caucus Notable Question Revival Yearling Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 31165,1290220,526008,Yearling Popular Question,NULL,NULL,0,NULL,NULL 31166,394062,175153,Nice Answer Enlightened Guru Civic Duty Yearling,NULL,NULL,0,NULL,NULL 31167,236717,433251,Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 31168,94262,919901,NULL,NULL,NULL,0,NULL,NULL 31169,2807359,163109,Good Answer Yearling Custodian Caucus Constituent Notable Question Popular Question Census Notable Question Caucus Constituent Census Yearling Caucus Constituent Guru,NULL,NULL,0,NULL,NULL 31170,301599,462430,NULL,NULL,NULL,0,NULL,NULL 31171,360603,1100839,NULL,NULL,NULL,0,NULL,NULL 31172,898941,1480896,NULL,NULL,NULL,0,NULL,NULL 31173,234266,1236954,Editor Popular Question Student,NULL,NULL,0,NULL,NULL 31174,39498,2457,Guru Good Answer Notable Question Nice Question Guru Popular Question Nice Answer Enlightened Excavator Yearling Notable Question Nice Answer Caucus Nice Answer Nice Answer Enlightened Nice Answer Yearling Custodian Notable Question Good Question Custodian Notable Question Caucus Custodian Famous Question Nice Answer Enlightened Good Answer Great Answer Yearling Revival,NULL,NULL,0,NULL,NULL 31175,419927,50,Proofreader Nice Answer Great Answer Nice Answer Yearling Popular Question php Custodian Nice Answer Yearling Good Answer Good Answer Great Question Notable Question javascript Yearling,NULL,NULL,0,NULL,NULL 31176,721958,1217094,NULL,NULL,NULL,0,NULL,NULL 31177,595844,900033,Notable Question Nice Answer Notable Question Yearling Necromancer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 31178,238576,354667,NULL,NULL,NULL,0,NULL,NULL 31179,482633,623519,Necromancer Yearling Pundit Custodian Revival Popular Question Notable Question Necromancer Popular Question Nice Answer Yearling Nice Answer Announcer Electorate Popular Question Nice Answer Nice Question Famous Question Inquisitive Notable Question Custodian Peer Pressure Nice Question Yearling Popular Question Custodian Announcer Notable Question Popular Question Nice Answer Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 31180,297952,1150942,Notable Question Informed,NULL,NULL,0,NULL,NULL 31181,293856,375144,Editor,NULL,NULL,0,NULL,NULL 31182,171550,1110361,NULL,NULL,NULL,0,NULL,NULL 31183,216006,80111,Famous Question Yearling Nice Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Question Nice Answer Enlightened Nice Answer Investor Notable Question Popular Question Proofreader Popular Question Enlightened Yearling Famous Question Nice Question Guru Notable Question Nice Question Famous Question Notable Question Good Answer Caucus Yearling Notable Question Great Answer,NULL,Github Mirroring gh pages to master git github github pages git tower pI developing jQuery plugin that being hosting on GitHub It has demo included of which manually copying and pushing to the branch codegh pages code what like to do is have it so when push change to codemaster code it is automatically pushed to codegh pages code or at least setup where they are mirrored ppI ve already seen this href https stackoverflow com questions 1705224 github how to include files from master in new git branch gh pages 1708339 1708339 question but not sure if it really answers my question with regard to these requirements polliI use href http www git tower com rel nofollow noreferrer Tower don mind using the terminal Mac to make changes to config so long as the solution works with this GUI liliI only want this mirroring on certain repos not on all of them on my machine li olpCheers Github now allows pages to be driven from the master branch or docs within the master branch https github com blog 2228 simpler github pages publishing,0,NULL,NULL 31184,4503967,435316,Famous Question Popular Question Popular Question Notable Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31185,1403145,1171276,Yearling Popular Question Yearling Census Yearling Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 31186,3985336,1171276,Yearling Popular Question Yearling Census Yearling Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 31187,360472,1079574,NULL,NULL,NULL,0,NULL,NULL 31188,261532,524814,NULL,NULL,NULL,0,NULL,NULL 31189,210389,1331656,NULL,NULL,NULL,0,NULL,NULL 31190,502559,883777,Nice Question Yearling Notable Question Famous Question Popular Question Nice Question Editor Nice Question Commentator Tumbleweed Popular Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 31191,299339,1158168,NULL,NULL,NULL,0,NULL,NULL 31192,1092945,1158168,NULL,NULL,NULL,0,NULL,NULL 31193,163591,413454,NULL,NULL,NULL,0,NULL,NULL 31194,873799,1020786,NULL,NULL,NULL,0,NULL,NULL 31195,299286,997150,Supporter,NULL,NULL,0,NULL,NULL 31196,4590672,1496168,Yearling Popular Question Notable Question Notable Question Good Answer Notable Question Nice Question Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 31197,195581,1496168,Yearling Popular Question Notable Question Notable Question Good Answer Notable Question Nice Question Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 31198,429921,1058140,Popular Question Famous Question Nice Answer Enlightened Announcer Nice Answer Notable Question Nice Answer Good Question Yearling Popular Question Nice Answer Enlightened Popular Question Notable Question Necromancer Inquisitive Popular Question Great Answer Announcer Announcer Nice Question Yearling Nice Question Caucus Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 31199,6075753,339336,NULL,NULL,NULL,0,NULL,NULL 31200,335684,339336,NULL,NULL,NULL,0,NULL,NULL 31201,124483,914771,NULL,NULL,NULL,0,NULL,NULL 31202,178790,738891,NULL,NULL,NULL,0,NULL,NULL 31203,707003,738891,NULL,NULL,NULL,0,NULL,NULL 31204,9963,209729,Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 31205,1520017,423870,NULL,NULL,NULL,0,NULL,NULL 31206,870958,438807,Good Answer Necromancer Excavator Yearling Notable Question Good Answer Nice Answer Guru Yearling Nice Answer Enlightened Famous Question Caucus Constituent Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 31207,35538,500792,NULL,NULL,NULL,0,NULL,NULL 31208,744594,923785,Good Question Yearling Notable Question Announcer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31209,70363,1037953,Nice Answer Yearling Tumbleweed Revival Nice Answer Enlightened Yearling Good Answer Necromancer Promoter Benefactor,NULL,NULL,0,NULL,NULL 31210,290467,848487,NULL,NULL,NULL,0,NULL,NULL 31211,297184,1221150,Teacher,NULL,NULL,0,NULL,NULL 31212,619919,727492,NULL,NULL,NULL,0,NULL,NULL 31213,1555088,1135481,Nice Question,NULL,NULL,0,NULL,NULL 31214,119401,334376,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31215,126481,465005,Investor,NULL,NULL,0,NULL,NULL 31216,10015373,1195459,Editor,NULL,NULL,0,NULL,NULL 31217,373242,1195459,Editor,NULL,NULL,0,NULL,NULL 31218,218050,907871,Popular Question,NULL,NULL,0,NULL,NULL 31219,1652838,907871,Popular Question,NULL,NULL,0,NULL,NULL 31220,393627,257803,Notable Question,NULL,NULL,0,NULL,NULL 31221,166727,166386,NULL,NULL,NULL,0,NULL,NULL 31222,185609,528398,NULL,NULL,NULL,0,NULL,NULL 31223,991614,1191002,NULL,NULL,NULL,0,NULL,NULL 31224,367182,973482,NULL,NULL,NULL,0,NULL,NULL 31225,786560,154250,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31226,70226,603700,NULL,NULL,NULL,0,NULL,NULL 31227,352278,180757,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 31228,68438,1002867,NULL,NULL,NULL,0,NULL,NULL 31229,408818,1002867,NULL,NULL,NULL,0,NULL,NULL 31230,163633,847689,Autobiographer Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 31231,221210,684195,Yearling Nice Answer Enlightened Popular Question Popular Question Popular Question Yearling Popular Question Census Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 31232,107835,1203057,NULL,NULL,NULL,0,NULL,NULL 31233,307358,941524,NULL,NULL,NULL,0,NULL,NULL 31234,252742,46682,Citizen Patrol Custodian Informed Yearling Notable Question Great Question Caucus Constituent Revival Yearling Popular Question Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 31235,363628,825276,NULL,NULL,NULL,0,NULL,NULL 31236,300466,598034,NULL,NULL,NULL,0,NULL,NULL 31237,56004,130515,Necromancer Good Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Good Answer Good Answer Guru Guru Guru Good Answer Nice Answer Necromancer Yearling Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Guru Great Answer Great Answer Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 31238,260307,1016801,NULL,NULL,NULL,0,NULL,NULL 31239,9402,98763,Nice Question,NULL,NULL,0,NULL,NULL 31240,206559,316006,Popular Question Notable Question Commentator,NULL,NULL,0,NULL,NULL 31241,36258,1137752,Popular Question Teacher Yearling Famous Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 31242,61810,1036537,NULL,NULL,NULL,0,NULL,NULL 31243,83937,574316,Good Answer Yearling Student,NULL,NULL,0,NULL,NULL 31244,205055,847124,NULL,NULL,NULL,0,NULL,NULL 31245,72868,1128821,Census,NULL,NULL,0,NULL,NULL 31246,717729,1128821,Census,NULL,NULL,0,NULL,NULL 31247,22155,319169,Yearling Notable Question,NULL,NULL,0,NULL,NULL 31248,91307,413141,Yearling,NULL,NULL,0,NULL,NULL 31249,1076727,1342566,Teacher Supporter Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31250,3530516,446315,NULL,NULL,NULL,0,NULL,NULL 31251,153662,446315,NULL,NULL,NULL,0,NULL,NULL 31252,1127636,1180018,NULL,NULL,NULL,0,NULL,NULL 31253,297532,1367538,NULL,NULL,NULL,0,NULL,NULL 31254,28248,830270,NULL,NULL,NULL,0,NULL,NULL 31255,398400,227187,Notable Question Popular Question Notable Question Critic Great Question Yearling Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 31256,205474,219287,NULL,NULL,NULL,0,NULL,NULL 31257,84029,63428,Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Good Answer Yearling Great Answer Populist Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 31258,497207,1244884,Tumbleweed Informed Yearling Commentator Critic Yearling Organizer Custodian Custodian Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 31259,14771,543150,NULL,NULL,NULL,0,NULL,NULL 31260,199313,867307,NULL,NULL,NULL,0,NULL,NULL 31261,1564610,376632,Famous Question Yearling Good Question Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 31262,50141,762598,Popular Question Popular Question Critic Caucus Constituent Yearling Necromancer,NULL,NULL,0,NULL,NULL 31263,409834,762598,Popular Question Popular Question Critic Caucus Constituent Yearling Necromancer,NULL,NULL,0,NULL,NULL 31264,128478,89443,Popular Question Good Answer Popular Question Yearling Announcer Custodian Informed,NULL,NULL,0,NULL,NULL 31265,4539603,1500278,NULL,NULL,NULL,0,NULL,NULL 31266,171034,1500278,NULL,NULL,NULL,0,NULL,NULL 31267,1814416,1500278,NULL,NULL,NULL,0,NULL,NULL 31268,3328402,1500278,NULL,NULL,NULL,0,NULL,NULL 31269,966501,1500278,NULL,NULL,NULL,0,NULL,NULL 31270,164074,790524,NULL,NULL,NULL,0,NULL,NULL 31271,28686,561435,NULL,NULL,NULL,0,NULL,NULL 31272,41030,1089808,NULL,NULL,NULL,0,NULL,NULL 31273,778782,803744,NULL,NULL,NULL,0,NULL,NULL 31274,284324,1163063,NULL,NULL,NULL,0,NULL,NULL 31275,32090,866489,Teacher,NULL,NULL,0,NULL,NULL 31276,45924,455214,Nice Answer,NULL,NULL,0,NULL,NULL 31277,154120,452318,NULL,NULL,NULL,0,NULL,NULL 31278,385889,780894,Supporter,NULL,NULL,0,NULL,NULL 31279,44710,720412,NULL,NULL,NULL,0,NULL,NULL 31280,230768,285886,NULL,NULL,NULL,0,NULL,NULL 31281,348108,421323,Popular Question Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 31282,155405,528747,NULL,NULL,NULL,0,NULL,NULL 31283,875377,880209,NULL,NULL,NULL,0,NULL,NULL 31284,214300,449865,NULL,NULL,NULL,0,NULL,NULL 31285,3415,837190,NULL,NULL,NULL,0,NULL,NULL 31286,1514537,1165888,Necromancer Yearling Nice Answer Nice Answer Yearling Popular Question Good Answer Yearling Curious Good Answer Popular Question,NULL,NULL,0,NULL,NULL 31287,3117421,865716,NULL,NULL,NULL,0,NULL,NULL 31288,76727,1222046,NULL,NULL,NULL,0,NULL,NULL 31289,621997,407804,NULL,NULL,NULL,0,NULL,NULL 31290,9823,136267,Yearling Guru Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 31291,395525,1055653,NULL,NULL,NULL,0,NULL,NULL 31292,13253,496340,NULL,NULL,NULL,0,NULL,NULL 31293,147427,49879,Nice Answer Nice Answer php Yearling Nice Question Good Answer Yearling Census Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 31294,218195,1060391,NULL,NULL,NULL,0,NULL,NULL 31295,73165,418065,Notable Question,NULL,NULL,0,NULL,NULL 31296,874789,1338740,NULL,NULL,NULL,0,NULL,NULL 31297,225847,240364,Popular Question Citizen Patrol Famous Question Nice Question Nice Question Famous Question Famous Question Famous Question Yearling Famous Question Custodian Custodian Good Answer Notable Question Caucus Famous Question Guru Good Question Yearling Custodian Custodian Custodian Notable Question Caucus Popular Question Benefactor Good Question Favorite Question Good Question,NULL,NULL,0,NULL,NULL 31298,145840,194274,Yearling Yearling Critic Great Answer Yearling Yearling Editor Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 31299,96039,413611,NULL,NULL,NULL,0,NULL,NULL 31300,1347760,1247758,Student Popular Question,NULL,NULL,0,NULL,NULL 31301,1126411,737959,NULL,NULL,NULL,0,NULL,NULL 31302,397799,1562175,NULL,NULL,NULL,0,NULL,NULL 31303,79426,824624,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Nice Question Yearling Promoter Nice Question Nice Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Custodian Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question,NULL,Converting Pixels to LatLng Coordinates from google static image python google maps google maps api geolocation pI am loading image from href https developers google com maps documentation static maps intro rel nofollow noreferrer google static Map API the loaded satellite image is place with hundreds of meters wide and length ppre codehttps maps googleapis com maps api staticmap center 53 4055429 9976502 amp zoom 16 amp size 400x400 amp maptype satellite amp key YOUR API KEY code prepAdditionally the image resolution shows to be 10 meters as shown below pp href https stack imgur com TPQNj png rel nofollow noreferrer img src https stack imgur com TPQNj png alt enter image description here pp href https stack imgur com zncZi png rel nofollow noreferrer img src https stack imgur com zncZi png alt enter image description here ppMy question is ppas have known the centered geolocation 53 4055429 9976502 and resolution of this static image how would be able to extend it to calculate the geolocation of left up or right bottom in the image and finally calculate each pixel of the image just to confirm it how would get the coordinate of each pixel would it be possible,1,Converting Pixels to LatLng Coordinates from google static image python google maps google maps api geolocation pI am loading image from href https developers google com maps documentation static maps intro rel nofollow noreferrer google static Map API the loaded satellite image is place with hundreds of meters wide and length ppre codehttps maps googleapis com maps api staticmap center 53 4055429 9976502 amp zoom 16 amp size 400x400 amp maptype satellite amp key YOUR API KEY code prepAdditionally the image resolution shows to be 10 meters as shown below pp href https stack imgur com TPQNj png rel nofollow noreferrer img src https stack imgur com TPQNj png alt enter image description here pp href https stack imgur com zncZi png rel nofollow noreferrer img src https stack imgur com zncZi png alt enter image description here ppMy question is ppas have known the centered geolocation 53 4055429 9976502 and resolution of this static image how would be able to extend it to calculate the geolocation of left up or right bottom in the image and finally calculate each pixel of the image How to detect lines in opencv python opencv image processing pI am trying to detect lines in parking as shown below pp href https stack imgur com sDQLM png rel noreferrer img src https stack imgur com sDQLM png alt Empty parking lot ppWhat hope to get is the clear lines and position in the crossed line however the result is not very promising pp href https stack imgur com IcDQ6 png rel noreferrer img src https stack imgur com IcDQ6 png alt Parking lot with Hough Lines drawn ppI guess it is due to two main reasons polli psome lines are very broken or missing even human eyes can clearlyidentify them Even HoughLine can help to connect some missinglines since HoughLine sometimes would connect unnecessary linestogether so rather to do it manually lili pthere are some repeated lines li olpThe general pipeline for the work is shown as below ph21 select the some specific colors white or yellow h2pre codeimport cv2import numpy as npimport matplotlibfrom matplotlib pyplot import imshowfrom matplotlib import pyplot as plt white color maskimg cv2 imread filein converted convert hls img image cv2 cvtColor img cv2 COLOR BGR2HLS lower np uint8 200 upper np uint8 255 255 255 white mask cv2 inRange image lower upper yellow color masklower np uint8 10 100 upper np uint8 40 255 255 yellow mask cv2 inRange image lower upper combine the maskmask cv2 bitwise or white mask yellow mask result img copy cv2 imshow mask mask code prep href https stack imgur com befJN png rel noreferrer img src https stack imgur com befJN png alt Binary image ph22 repeat the dilation and erosion until the image can not be changed href http felix abecassis me 2011 09 opencv morphological skeleton rel noreferrer reference h2pre codeheight width mask shapeskel np zeros height width dtype np uint8 height width kernel cv2 getStructuringElement cv2 MORPH CROSS temp nonzero np count nonzero mask while np count nonzero mask eroded cv2 erode mask kernel cv2 imshow eroded eroded temp cv2 dilate eroded kernel cv2 imshow dilate temp temp cv2 subtract mask temp skel cv2 bitwise or skel temp mask eroded copy cv2 imshow skel skel cv2 waitKey code prep href https stack imgur com mtkZb png rel noreferrer img src https stack imgur com mtkZb png alt After the erosion and dialation ph23 apply the canny to filter the lines and use HoughLinesP to get the lines h2pre codeedges cv2 Canny skel 50 150 cv2 imshow edges edges lines cv2 HoughLinesP edges np pi 180 40 minLineLength 30 maxLineGap 30 0for x1 y1 x2 y2 in lines cv2 line result x1 y1 x2 y2 255 print icv2 imshow res result cv2 waitKey code prep href https stack imgur com P2DmC png rel noreferrer img src https stack imgur com P2DmC png alt After Canny ppI wonder after the first step of selecting certain color the lines are with broken and noises would think in this step we should do something to make the broken line complete less noisy line and then try to apply something to do the Canny and Hough lines any ideas,NULL 31304,1027206,403331,NULL,NULL,NULL,0,NULL,NULL 31305,267944,270606,NULL,NULL,NULL,0,NULL,NULL 31306,172934,914137,Editor Commentator Popular Question,NULL,NULL,0,NULL,NULL 31307,23402,150483,Yearling Not a Robot Not a Robot Great Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31308,848200,842563,Notable Question,NULL,NULL,0,NULL,NULL 31309,288585,878145,NULL,NULL,NULL,0,NULL,NULL 31310,32238,1300173,Necromancer,NULL,NULL,0,NULL,NULL 31311,1236241,1284541,NULL,NULL,NULL,0,NULL,NULL 31312,909047,963318,Popular Question Popular Question Notable Question Nice Answer Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 31313,67723,741049,NULL,NULL,NULL,0,NULL,NULL 31314,214447,593108,NULL,NULL,NULL,0,NULL,NULL 31315,37806,142951,Popular Question Editor Commentator Critic Informed Yearling,NULL,NULL,0,NULL,NULL 31316,45450,268858,NULL,NULL,NULL,0,NULL,NULL 31317,1057196,1008662,NULL,NULL,NULL,0,NULL,NULL 31318,9062698,210693,Notable Question Popular Question Tumbleweed Custodian Popular Question,NULL,NULL,0,NULL,NULL 31319,265252,155640,Nice Question Custodian Popular Question Good Question Yearling Nice Answer Peer Pressure Popular Question Good Answer Yearling Nice Answer Revival Announcer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31320,169180,76045,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 31321,90843,804312,NULL,NULL,NULL,0,NULL,NULL 31322,842750,1139874,Curious,NULL,NULL,0,NULL,NULL 31323,332785,507214,Organizer Tag Editor Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31324,7646077,562359,NULL,NULL,NULL,0,NULL,NULL 31325,1178617,562359,NULL,NULL,NULL,0,NULL,NULL 31326,4107096,1124182,NULL,NULL,NULL,0,NULL,NULL 31327,1109527,1124182,NULL,NULL,NULL,0,NULL,NULL 31328,275495,1315127,NULL,NULL,NULL,0,NULL,NULL 31329,7884,431522,Announcer Curious Revival Yearling Census Popular Question Announcer Necromancer Popular Question Nice Answer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 31330,132505,1047642,Tumbleweed Informed Editor Scholar Commentator Yearling Critic Yearling Student Caucus Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 31331,37522,205789,Announcer,NULL,NULL,0,NULL,NULL 31332,440562,626572,NULL,NULL,NULL,0,NULL,NULL 31333,210095,469326,NULL,NULL,NULL,0,NULL,NULL 31334,4143,4534,Announcer Announcer Nice Question Nice Question Nice Question Announcer Announcer Nice Question Popular Question Nice Question Yearling Good Question Popular Question Famous Question Enthusiast Popular Question Notable Question Popular Question Announcer Great Question Notable Question Notable Question Popular Question Favorite Question Popular Question Quorum Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Announcer Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 31335,254512,146009,Nice Question,NULL,NULL,0,NULL,NULL 31336,37227,122441,Notable Question Revival Great Answer Good Answer Custodian Necromancer Nice Answer Necromancer Popular Question Popular Question Notable Question Notable Question Guru Yearling Famous Question Nice Answer Announcer Great Answer Nice Question Strunk & White Announcer Nice Answer Informed Popular Question Necromancer Investor Good Answer Altruist Revival Great Answer Nice Question Necromancer Famous Question Announcer Revival Nice Answer Yearling Necromancer Nice Answer Necromancer Good Question Nice Answer Nice Answer Announcer Nice Question Famous Question Revival Announcer Necromancer Announcer Announcer Announcer Nice Answer Announcer Necromancer Necromancer Promoter Nice Answer Nice Question Good Answer Yearling Notable Question Necromancer Necromancer Necromancer Nice Answer Necromancer Necromancer Notable Question Revival Announcer Announcer Good Question,NULL,NULL,0,NULL,NULL 31337,107837,63661,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 31338,467445,709852,Good Answer Self-Learner Yearling Pundit Revival numpy Good Answer Organizer Yearling Popular Question Nice Answer Announcer Famous Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31339,180021,703135,Popular Question Notable Question Revival Notable Question,NULL,NULL,0,NULL,NULL 31340,887015,1240036,Commentator,NULL,NULL,0,NULL,NULL 31341,250366,809827,Popular Question Nice Question Notable Question Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 31342,141867,1184459,NULL,NULL,NULL,0,NULL,NULL 31343,433635,903798,NULL,NULL,NULL,0,NULL,NULL 31344,144715,584254,NULL,NULL,NULL,0,NULL,NULL 31345,5772876,38615,NULL,NULL,NULL,0,NULL,NULL 31346,274522,1383061,Notable Question,NULL,NULL,0,NULL,NULL 31347,13380,1049590,Enlightened Great Answer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 31348,245990,1049590,Enlightened Great Answer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 31349,105428,44427,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 31350,221525,41664,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31351,20257,41664,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31352,306519,789902,NULL,NULL,NULL,0,NULL,NULL 31353,961823,490285,NULL,NULL,NULL,0,NULL,NULL 31354,235105,636807,NULL,NULL,NULL,0,NULL,NULL 31355,1200864,331416,NULL,NULL,NULL,0,NULL,NULL 31356,544887,227978,NULL,NULL,NULL,0,NULL,NULL 31357,537087,661624,Nice Question Nice Question Good Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Great Question Popular Question Necromancer Yearling Popular Question Famous Question Popular Question Famous Question Famous Question Notable Question Nice Question Notable Question Nice Question Good Question Popular Question Popular Question Popular Question Popular Question Good Question Excavator Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Famous Question Notable Question Stellar Question Notable Question Popular Question Good Question Good Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question Popular Question Nice Question Nice Question Notable Question Popular Question Necromancer Notable Question Nice Question Yearling Nice Question Nice Question Good Answer Popular Question Good Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31358,14623,242679,Yearling Explainer Guru Tenacious Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 31359,46486,298608,NULL,NULL,NULL,0,NULL,NULL 31360,205437,250780,Notable Question Yearling Nice Question,NULL,,0,, 31361,1074080,1162292,Editor Scholar Student Supporter Teacher Popular Question,NULL,NULL,0,NULL,NULL 31362,681285,77418,NULL,NULL,NULL,0,NULL,NULL 31363,203163,5795,Critic Curious Commentator Tumbleweed Popular Question Yearling Yearling Self-Learner Popular Question Popular Question Notable Question Yearling Popular Question Caucus Popular Question Popular Question Census Caucus Constituent Nice Answer Enlightened Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31364,597419,1215989,NULL,NULL,NULL,0,NULL,NULL 31365,64156,911912,Popular Question Necromancer Curious Yearling Notable Question Tag Editor Necromancer Nice Answer Popular Question Yearling Good Answer Deputy Popular Question Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 31366,342186,1164976,NULL,NULL,NULL,0,NULL,NULL 31367,392563,871793,NULL,NULL,NULL,0,NULL,NULL 31368,19641,263570,Yearling Census Tenacious,NULL,NULL,0,NULL,NULL 31369,170009,1409625,Yearling Caucus Enthusiast,NULL,NULL,0,NULL,NULL 31370,71328,97001,NULL,NULL,NULL,0,NULL,NULL 31371,336158,283077,Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 31372,532025,609719,NULL,NULL,NULL,0,NULL,NULL 31373,98894,108511,Famous Question,NULL,NULL,0,NULL,NULL 31374,211412,985195,Informed,NULL,NULL,0,NULL,NULL 31375,190035,913940,NULL,NULL,NULL,0,NULL,NULL 31376,823526,1192040,NULL,NULL,NULL,0,NULL,NULL 31377,248483,404241,Student Popular Question,NULL,NULL,0,NULL,NULL 31378,240532,892228,NULL,NULL,NULL,0,NULL,NULL 31379,1562626,1204576,Supporter,NULL,NULL,0,NULL,NULL 31380,360826,471422,NULL,NULL,NULL,0,NULL,NULL 31381,1382079,635973,NULL,NULL,NULL,0,NULL,NULL 31382,13585,327930,Yearling,NULL,NULL,0,NULL,NULL 31383,98915,2238,Nice Answer Favorite Question Famous Question Nice Answer Famous Question Good Answer Popular Question Yearling Stellar Question Stellar Question Nice Question Notable Question Good Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 31384,1795192,1114496,NULL,NULL,NULL,0,NULL,NULL 31385,914984,13075,Reviewer Reviewer Nice Answer Enlightened Yearling Nice Answer java Census Announcer Necromancer Necromancer Announcer Yearling Steward Announcer Documentation User Custodian Custodian Nice Answer Nice Answer Mortarboard Good Answer Census Announcer Nice Answer Caucus Announcer Booster Yearling Nice Answer Enlightened Autobiographer,NULL,NULL,0,NULL,NULL 31386,613915,889373,NULL,NULL,NULL,0,NULL,NULL 31387,879130,1395888,NULL,NULL,NULL,0,NULL,NULL 31388,350294,133585,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 31389,44150,1508691,NULL,NULL,NULL,0,NULL,NULL 31390,258550,1508691,NULL,NULL,NULL,0,NULL,NULL 31391,29194,63621,Notable Question Yearling Notable Question Notable Question Nice Question Popular Question Nice Question Notable Question Nice Answer Famous Question Famous Question Pundit Famous Question Nice Question Popular Question Popular Question Yearling Necromancer Peer Pressure Good Answer Inquisitive Custodian Popular Question Notable Question Custodian Nice Answer Enlightened Yearling Popular Question Popular Question Necromancer Good Question Revival Custodian Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 31392,2759999,1265998,NULL,NULL,NULL,0,NULL,NULL 31393,230218,296017,NULL,NULL,NULL,0,NULL,NULL 31394,367447,539887,NULL,NULL,NULL,0,NULL,NULL 31395,105554,206376,Yearling Famous Question,NULL,NULL,0,NULL,NULL 31396,454582,280237,NULL,NULL,NULL,0,NULL,NULL 31397,8912,6962,Necromancer Nice Answer Notable Question Necromancer Nice Answer Revival Announcer Nice Answer Enlightened Good Answer Revival Necromancer Necromancer Yearling Nice Answer Popular Question Nice Question Popular Question Popular Question Necromancer Nice Question Popular Question Good Answer Revival Nice Answer Revival Announcer Nice Answer Announcer Popular Question Nice Answer Announcer Nice Answer Mortarboard Nice Question Good Answer Necromancer Yearling Nice Answer Popular Question Necromancer Nice Answer Enlightened Inquisitive Popular Question Necromancer Good Answer Announcer Necromancer Announcer Nice Question Nice Answer Nice Question Famous Question Popular Question Popular Question Nice Answer Notable Question Yearling Good Answer Notable Question Announcer,NULL,pThe appearance of the scroll bars can be controlled with WebKit code webkit scrollbar code pseudo elements sup href http www webkit org blog 363 styling scrollbars rel noreferrer blog sup You can disable the default appearance and behaviour by setting code webkit appearance code sup href http developer apple com library safari documentation AppleApplications Reference SafariCSSRef Articles StandardCSSProperties html apple ref doc uid TP30001266 webkit appearance rel noreferrer docs sup to codenone code ppBecause you re removing the default style you ll also need to specify the style yourself or the scroll bar will never show up The following CSS recreates the appearance of the hiding scroll bars ph3Example href http jsfiddle net jeremy Eh7xT 342 rel noreferrer jsfiddle h3CSSpre code frame webkit scrollbar webkit appearance none frame webkit scrollbar vertical width 11px frame webkit scrollbar horizontal height 11px frame webkit scrollbar thumb border radius 8px border 2px solid white should match background can be transparent background color rgba frame webkit scrollbar track background color fff border radius 8px code preWebKit Chrome Screenshotp img src https stack imgur com nhRcB png alt screenshot showing webkit 39 scrollbar without needing to hover img src https stack imgur com NJbgJ png alt Haven verified this lately but found this note in our CSS that referenced this solution Note that this will show OS style scrollbars in Chrome on Windows Setting up Time zone in Padrino ruby timezone padrino pI am having trouble setting the default ActiveSupport TimeZone in my padrino project ppIn my boot rb have ppre codePadrino after load do Time zone UTC ActiveRecord Base default timezone utcend code prepMy controller file has ppre codeMyApp App controllers post do get index do puts Time zone this returns nil render index endend code prepWhen hit the index action get nil for Time zone It seems as though something might be overwriting Time zone or it isn loaded properly pulliI am able to print out the Timezone after setting it in boot rb So know it was set li ul Same for me Works in tests but not when run the actual web app in dev,0,NULL,NULL 31398,459329,1064491,Nice Answer,NULL,NULL,0,NULL,NULL 31399,146791,732243,NULL,NULL,NULL,0,NULL,NULL 31400,36822,786939,NULL,NULL,NULL,0,NULL,NULL 31401,455557,185475,Notable Question Famous Question Good Question Yearling Caucus Popular Question Yearling Notable Question Famous Question Great Answer Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 31402,79235,149875,NULL,NULL,NULL,0,NULL,NULL 31403,134276,1215507,Yearling Informed Organizer Tag Editor Revival Nice Answer Yearling Guru Yearling Taxonomist,NULL,NULL,0,NULL,NULL 31404,89801,200405,Yearling Supporter Critic Nice Answer,NULL,NULL,0,NULL,NULL 31405,4222626,200405,Yearling Supporter Critic Nice Answer,NULL,NULL,0,NULL,NULL 31406,2220484,1246732,NULL,NULL,NULL,0,NULL,NULL 31407,191171,825373,Citizen Patrol Commentator,NULL,NULL,0,NULL,NULL 31408,239153,699449,NULL,NULL,NULL,0,NULL,NULL 31409,318647,741897,NULL,NULL,NULL,0,NULL,NULL 31410,164718,373748,Notable Question,NULL,NULL,0,NULL,NULL 31411,17679,443564,Announcer,NULL,NULL,0,NULL,NULL 31412,559420,1253306,Revival Popular Question Critic Notable Question Scholar Yearling Nice Question Famous Question Caucus Constituent Commentator Famous Question Necromancer Caucus Yearling Informed,NULL,NULL,0,NULL,NULL 31413,10355237,1253306,Revival Popular Question Critic Notable Question Scholar Yearling Nice Question Famous Question Caucus Constituent Commentator Famous Question Necromancer Caucus Yearling Informed,NULL,NULL,0,NULL,NULL 31414,291205,1347831,Editor Student Scholar Commentator Supporter,NULL,NULL,0,NULL,NULL 31415,54239,1419363,Teacher Announcer,NULL,NULL,0,NULL,NULL 31416,508714,246644,Editor Student Scholar Supporter,NULL,NULL,0,NULL,NULL 31417,35504,190805,Critic,NULL,NULL,0,NULL,NULL 31418,4632620,1129725,NULL,NULL,NULL,0,NULL,NULL 31419,248566,448089,Caucus,NULL,NULL,0,NULL,NULL 31420,341813,135289,Popular Question,NULL,NULL,0,NULL,NULL 31421,65055,424851,Notable Question Nice Question Popular Question Nice Question Nice Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Answer Famous Question Notable Question Popular Question Popular Question Yearling Famous Question Notable Question Nice Answer Nice Question Notable Question Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 31422,46372,396079,Popular Question Popular Question Nice Question Cleanup Popular Question Yearling Notable Question Nice Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 31423,159476,1214292,Nice Question,NULL,NULL,0,NULL,NULL 31424,222338,445678,NULL,NULL,NULL,0,NULL,NULL 31425,346704,1141709,Nice Answer Yearling Necromancer Yearling Nice Answer Popular Question Citizen Patrol Yearling Organizer Notable Question Good Answer Curious,NULL,NULL,0,NULL,NULL 31426,341558,1126829,NULL,NULL,NULL,0,NULL,NULL 31427,4680215,688408,NULL,NULL,NULL,0,NULL,NULL 31428,4330911,688408,NULL,NULL,NULL,0,NULL,NULL 31429,578818,1259391,Notable Question Yearling Necromancer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 31430,545333,1543548,NULL,NULL,NULL,0,NULL,NULL 31431,668425,683042,Yearling Custodian Popular Question Excavator Yearling Yearling,NULL,NULL,0,NULL,NULL 31432,425825,35634,cfc Popular Question Notable Question Favorite Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Popular Question Notable Question Guru Good Question Electorate Popular Question Popular Question Popular Question Notable Question Good Answer Notable Question Nice Question Popular Question Yearling Caucus Popular Question Popular Question Popular Question Guru Notable Question Nice Answer cfml Notable Question Notable Question Nice Question Popular Question Necromancer Caucus Popular Question Nice Question Popular Question Documentation User Popular Question Yearling Famous Question Popular Question Good Answer Nice Question Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question Nice Answer Nice Answer Popular Question Popular Question Nice Answer Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 31433,82567,534773,sonarqube Custodian Yearling Nice Answer Necromancer Student Yearling Census Announcer,NULL,NULL,0,NULL,NULL 31434,457499,899574,Editor Teacher,NULL,NULL,0,NULL,NULL 31435,33817,1363166,Informed,NULL,NULL,0,NULL,NULL 31436,533920,1376028,NULL,NULL,NULL,0,NULL,NULL 31437,20346,702557,NULL,NULL,NULL,0,NULL,NULL 31438,277467,836618,NULL,NULL,NULL,0,NULL,NULL 31439,454381,576269,NULL,NULL,NULL,0,NULL,NULL 31440,120595,816041,Popular Question,NULL,NULL,0,NULL,NULL 31441,181396,148536,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 31442,110132,403540,Popular Question,NULL,NULL,0,NULL,NULL 31443,171911,727598,NULL,NULL,NULL,0,NULL,NULL 31444,403542,78300,NULL,NULL,NULL,0,NULL,NULL 31445,408827,354459,Famous Question Popular Question Nice Answer Famous Question Yearling Famous Question Famous Question Notable Question Great Question Revival Nice Question Caucus Nice Answer Yearling Popular Question Good Answer Great Question Popular Question Popular Question Good Answer Popular Question Great Answer Popular Question Notable Question Yearling Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 31446,1514290,643260,NULL,NULL,NULL,0,NULL,NULL 31447,32803,255258,Yearling Necromancer Notable Question Guru Good Question Yearling Nice Question Good Answer Yearling Popular Question Necromancer Custodian Famous Question Popular Question,NULL,NULL,0,NULL,NULL 31448,126752,814890,Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 31449,254229,791615,NULL,NULL,NULL,0,NULL,NULL 31450,16097,314834,Popular Question Revival Caucus Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 31451,155555,9232,Good Answer Favorite Question Famous Question Yearling Great Question Favorite Question Good Answer Favorite Question Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 31452,492166,427416,NULL,NULL,NULL,0,NULL,NULL 31453,209459,427416,NULL,NULL,NULL,0,NULL,NULL 31454,357930,1283273,Yearling Promoter Curious Nice Answer Famous Question Nice Question Caucus Yearling Nice Answer Caucus Documentation User Popular Question Popular Question Caucus Yearling Popular Question Popular Question Popular Question Good Question Good Answer,NULL,NULL,0,NULL,NULL 31455,71297,734320,Editor Teacher Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31456,246210,586653,NULL,NULL,NULL,0,NULL,NULL 31457,1053,314942,Civic Duty,NULL,NULL,0,NULL,NULL 31458,132859,180108,NULL,NULL,NULL,0,NULL,NULL 31459,1136957,503866,Notable Question Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 31460,317443,503866,Notable Question Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 31461,421935,1391234,NULL,NULL,NULL,0,NULL,NULL 31462,191748,847505,NULL,NULL,NULL,0,NULL,NULL 31463,55466,552203,Yearling Yearling Nice Answer Nice Answer Enlightened Announcer Revival Yearling Nice Answer,NULL,Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre did you try with using withLatestFrom only According to the docs and the behaviour observing the withLatestFrom method actually does wait for every source to produce Your full set of requirements is met by only using withLatestFrom Looking at it from another perspective the publish nesting is an interesting way to handle operator switching problems,0,NULL,NULL 31464,247593,946279,Notable Question Caucus Good Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 31465,257137,571464,NULL,NULL,NULL,0,NULL,NULL 31466,291257,231093,Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31467,226302,270325,Yearling Nice Question Notable Question Critic,NULL,NULL,0,NULL,NULL 31468,411837,1054428,NULL,NULL,NULL,0,NULL,NULL 31469,32573,775246,Revival Excavator Yearling Announcer Notable Question Announcer Census,NULL,NULL,0,NULL,NULL 31470,1179189,775246,Revival Excavator Yearling Announcer Notable Question Announcer Census,NULL,NULL,0,NULL,NULL 31471,919618,263983,Caucus,NULL,NULL,0,NULL,NULL 31472,22826,143378,Good Answer Favorite Question Notable Question Popular Question Favorite Question Nice Answer Enlightened Nice Question Good Question Popular Question Favorite Question Popular Question Notable Question Famous Question Popular Question Stellar Question Popular Question Popular Question Nice Answer Favorite Question Great Question Famous Question Popular Question Famous Question Good Answer Popular Question Nice Question Good Answer Good Question Nice Question Nice Question Famous Question Notable Question Great Question Great Answer Nice Question Nice Question Notable Question Nice Question Notable Question Favorite Question Notable Question Good Question Notable Question Popular Question Great Question Famous Question Yearling Great Question Favorite Question Notable Question Popular Question Notable Question Popular Question Nice Answer Great Question Nice Answer Enlightened Popular Question Good Question Favorite Question Notable Question Famous Question Notable Question Favorite Question Nice Answer Notable Question Popular Question Nice Answer Nice Question Famous Question Notable Question Popular Question Notable Question Nice Answer Popular Question Popular Question Popular Question Revival Stellar Question Popular Question Necromancer Good Question Nice Question Notable Question Nice Question Favorite Question Notable Question Nice Answer Enlightened Necromancer Stellar Question Popular Question Famous Question Good Question Good Question Popular Question Famous Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Notable Question Good Question Popular Question Great Question Famous Question Nice Question Good Question Notable Question Good Question Popular Question Popular Question Good Answer objective-c Popular Question Nice Question Nice Question Nice Question Stellar Question Nice Question Good Question Famous Question Yearling Nice Answer Good Question Popular Question Nice Question macos Nice Question Good Question Good Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 31473,147786,1175249,NULL,NULL,NULL,0,NULL,NULL 31474,158912,1175249,NULL,NULL,NULL,0,NULL,NULL 31475,175162,1329541,NULL,NULL,NULL,0,NULL,NULL 31476,855798,662858,NULL,NULL,NULL,0,NULL,NULL 31477,656950,375619,NULL,NULL,NULL,0,NULL,NULL 31478,415507,1485179,NULL,NULL,NULL,0,NULL,NULL 31479,8643990,1485179,NULL,NULL,NULL,0,NULL,NULL 31480,75697,898957,Good Answer Good Answer Populist Yearling Caucus Yearling Custodian Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 31481,26813,1039831,NULL,NULL,NULL,0,NULL,NULL 31482,1101332,1501768,NULL,NULL,NULL,0,NULL,NULL 31483,107013,1501768,NULL,NULL,NULL,0,NULL,NULL 31484,139623,518918,Popular Question Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 31485,180041,628448,NULL,NULL,NULL,0,NULL,NULL 31486,41938,721982,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31487,50522,1239902,NULL,NULL,NULL,0,NULL,NULL 31488,4478,1008566,NULL,NULL,NULL,0,NULL,NULL 31489,415621,974273,Notable Question Notable Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 31490,63435,1202135,NULL,NULL,NULL,0,NULL,NULL 31491,827810,831145,Good Answer Yearling Necromancer Nice Answer Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 31492,25193,1526957,Popular Question Commentator,NULL,NULL,0,NULL,NULL 31493,792876,285721,Yearling Notable Question,NULL,NULL,0,NULL,NULL 31494,463798,339749,NULL,NULL,NULL,0,NULL,NULL 31495,142861,1041593,NULL,NULL,NULL,0,NULL,NULL 31496,1281854,1041593,NULL,NULL,NULL,0,NULL,NULL 31497,201789,1016123,Notable Question,NULL,NULL,0,NULL,NULL 31498,588062,763848,NULL,NULL,NULL,0,NULL,NULL 31499,185311,396830,Caucus Critic Yearling Popular Question Notable Question,NULL,NULL,1,Iterate over deeply nested hiera hash in puppet manifest puppet hiera pI working on building structure for my webservers have my setup in hiera but can seem to get puppet to give back the correct types ppIn common yaml ppre codevhosts hostname sitename app url value app type value code prepI have multiple sites per vhost and multiple vhosts In my manifest going to be creating the folder structure and other setup tasks but for for now can even get it to iterate over the sites ppCurrent manifest ppre codedefine application app name app url notice App Type app type notice App Url app url vhosts hiera vhosts vhosts each vhost create resources application vhost code prepThe error get is that codecreate resources code requires Hash However if type cast code vhost code get that it not Hash but Tuple ppHow did get Tuple out of my yaml hash Is there better way to iterate over this data set to get what need,NULL 31500,205784,646800,NULL,NULL,NULL,0,NULL,NULL 31501,1403731,530463,Critic,NULL,NULL,0,NULL,NULL 31502,375861,1210512,NULL,NULL,NULL,0,NULL,NULL 31503,143134,587171,Popular Question,NULL,NULL,0,NULL,NULL 31504,1975108,475488,Nice Question Caucus Critic Informed,NULL,NULL,0,NULL,NULL 31505,480640,1006669,Teacher Yearling Critic Citizen Patrol Popular Question Yearling Popular Question Custodian Popular Question Self-Learner Popular Question Caucus Inquisitive Yearling Popular Question Custodian Notable Question Popular Question Autobiographer Caucus Constituent Popular Question Popular Question Custodian Popular Question Notable Question Yearling,NULL,NULL,1,How an Aurelia binding behavior could enhance an innerHTML content javascript html innerhtml aurelia aurelia binding pIn my web app using Markdown value converter to render HTML from Markdown string ppre code lt div innerhtml bind string markdown gt lt div gt code prepThis works nice and inside the codediv code get an HTML rendering of the Markdown content in codestring code ppThe value converter is able to render an Aurelia custom element in the output but being that element inside the value converter output as string it not enhanced by the Aurelia templating engine ppWould binding behavior be able to use the codeTemplatingEngine code to enhance the output of the value converter once rendered in the DOM every time the source value changes Something like ppre code lt div innerhtml bind string markdown amp enhance gt lt div gt code prepI ve tried this but it doesn work it being evaluated before codetarget code gets its children ppre codeexport class EnhanceBindingBehavior private templatingEngine TemplatingEngine public constructor templatingEngine TemplatingEngine this templatingEngine templatingEngine public bind binding Binding scope Scope void let target HTMLElement binding target for let lt target children length console log enhancing element this enhance target children public unbind binding Binding scope Scope void private enhance element Element void this templatingEngine enhance element element code prepWould it be possibile at all,NULL 31506,78972,910627,NULL,NULL,NULL,0,NULL,NULL 31507,41017,406365,NULL,NULL,NULL,0,NULL,NULL 31508,473973,1062649,NULL,NULL,NULL,0,NULL,NULL 31509,158556,1315435,Teacher Popular Question,NULL,NULL,0,NULL,NULL 31510,82319,429365,NULL,NULL,NULL,0,NULL,NULL 31511,466078,1054378,Notable Question Good Question Famous Question Necromancer Popular Question Nice Answer Enlightened Notable Question Nice Question Famous Question Favorite Question Great Answer Popular Question Good Answer Yearling Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Yearling Nice Question Popular Question Announcer Great Question Necromancer Nice Question objective-c Notable Question Yearling,NULL,NULL,0,NULL,NULL 31512,927241,679059,Announcer Nice Question Popular Question Good Answer Yearling ios Notable Question Popular Question Good Question Excavator Notable Question objective-c Famous Question Nice Question Great Answer Yearling Necromancer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31513,194825,599348,NULL,NULL,NULL,0,NULL,NULL 31514,394544,1302252,Famous Question,NULL,NULL,0,NULL,NULL 31515,8548,501766,Necromancer Yearling Notable Question Nice Answer Critic,NULL,NULL,0,NULL,NULL 31516,1089470,959810,NULL,NULL,NULL,0,NULL,NULL 31517,31731,8071,Yearling Nice Answer Yearling Custodian Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 31518,1055512,1132158,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 31519,70593,783483,NULL,NULL,NULL,0,NULL,NULL 31520,1145677,1146751,NULL,NULL,NULL,0,NULL,NULL 31521,198812,921832,NULL,NULL,,0,, 31522,66419,1491378,Popular Question Nice Question Famous Question Popular Question Civic Duty Necromancer Popular Question Yearling Notable Question Caucus Necromancer Necromancer Yearling Nice Answer Citizen Patrol Nice Answer Necromancer Revival Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 31523,868955,975314,Student Excavator Popular Question Supporter Commentator Teacher Informed Autobiographer Citizen Patrol Census,NULL,NULL,0,NULL,NULL 31524,232969,604802,Yearling Census Informed Autobiographer,NULL,NULL,0,NULL,NULL 31525,424560,594383,NULL,NULL,NULL,0,NULL,NULL 31526,111069,182657,NULL,NULL,NULL,0,NULL,NULL 31527,62430,717872,NULL,NULL,NULL,0,NULL,NULL 31528,3026356,1018405,NULL,NULL,NULL,0,NULL,NULL 31529,61544,411431,Yearling Necromancer Revival Custodian Good Answer Informed Custodian,NULL,NULL,0,NULL,NULL 31530,9725113,871349,NULL,NULL,NULL,0,NULL,NULL 31531,127538,871349,NULL,NULL,NULL,0,NULL,NULL 31532,584707,610472,NULL,NULL,NULL,0,NULL,NULL 31533,2422776,481715,NULL,NULL,NULL,0,NULL,NULL 31534,98153,243782,Yearling Notable Question Popular Question Popular Question Good Answer Nice Question Notable Question Nice Answer Enlightened Popular Question Popular Question Good Question Notable Question Great Question Nice Answer Famous Question Notable Question Good Question Notable Question Good Answer Nice Answer Nice Question Famous Question Nice Question Famous Question Popular Question Good Answer Nice Answer Notable Question Great Question Popular Question Favorite Question Famous Question Popular Question Notable Question Notable Question Famous Question Good Answer Nice Answer Popular Question Notable Question Stellar Question Revival Nice Answer Enlightened google-bigquery Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Good Question Popular Question Guru Caucus Good Question Notable Question Notable Question Famous Question Guru Famous Question Notable Question Guru Yearling Popular Question Good Question Popular Question Famous Question Notable Question Good Question Nice Answer Enlightened Notable Question Notable Question Popular Question Great Question Great Question Notable Question Great Question Popular Question Caucus Famous Question Guru Popular Question Guru Great Question Notable Question Nice Answer Enlightened Popular Question Favorite Question Famous Question Notable Question Famous Question Nice Answer Popular Question Good Answer Good Answer mysql android-activity Popular Question Yearling Good Question Popular Question Famous Question php Necromancer Good Question Notable Question Notable Question Famous Question Necromancer Nice Answer Enlightened Notable Question Popular Question Guru Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Question Nice Answer google-cloud-platform Nice Question Popular Question Great Answer Popular Question,NULL,NULL,0,NULL,NULL 31535,105435,128194,Revival Necromancer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31536,270103,90428,Great Question Favorite Question,NULL,NULL,0,NULL,NULL 31537,78458,277687,NULL,NULL,NULL,0,NULL,NULL 31538,50639,345798,NULL,NULL,NULL,0,NULL,NULL 31539,196556,894053,NULL,NULL,NULL,0,NULL,NULL 31540,445818,953604,NULL,NULL,NULL,0,NULL,NULL 31541,11267,485216,Good Question Famous Question Yearling Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 31542,24196,57774,Yearling,NULL,NULL,0,NULL,NULL 31543,149997,799471,Popular Question,NULL,NULL,0,NULL,NULL 31544,250535,757040,NULL,NULL,NULL,0,NULL,NULL 31545,243641,209825,NULL,NULL,NULL,0,NULL,NULL 31546,118461,946388,NULL,NULL,NULL,0,NULL,NULL 31547,493732,1273153,Nice Answer Popular Question Yearling Nice Question Necromancer,NULL,NULL,0,NULL,NULL 31548,11074121,907111,NULL,NULL,NULL,0,NULL,NULL 31549,187623,1184964,Popular Question,NULL,NULL,0,NULL,NULL 31550,2153237,1091328,NULL,NULL,NULL,0,NULL,NULL 31551,373509,211300,NULL,NULL,NULL,0,NULL,NULL 31552,796911,1492664,NULL,NULL,NULL,0,NULL,NULL 31553,689171,1037593,NULL,NULL,NULL,0,NULL,NULL 31554,55815,453151,Yearling Yearling ocaml Yearling Revival,NULL,NULL,0,NULL,NULL 31555,146488,522708,NULL,NULL,NULL,0,NULL,NULL 31556,2356,175048,Yearling Self-Learner Nice Question Caucus Revival Enthusiast,NULL,NULL,0,NULL,NULL 31557,1556588,1559916,NULL,NULL,NULL,0,NULL,NULL 31558,4454429,1559916,NULL,NULL,NULL,0,NULL,NULL 31559,4004423,847938,Nice Answer,NULL,NULL,0,NULL,NULL 31560,173600,840012,NULL,NULL,NULL,0,NULL,NULL 31561,1407,1063122,NULL,NULL,NULL,0,NULL,NULL 31562,31448,645190,NULL,NULL,NULL,0,NULL,NULL 31563,1856973,645190,NULL,NULL,NULL,0,NULL,NULL 31564,248124,75573,Popular Question Yearling Famous Question Popular Question Notable Question Informed Favorite Question Good Answer,NULL,NULL,0,NULL,NULL 31565,153563,1122402,NULL,NULL,NULL,0,NULL,NULL 31566,2916745,1122402,NULL,NULL,NULL,0,NULL,NULL 31567,236971,500134,Nice Answer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 31568,597728,202451,Popular Question Necromancer Nice Answer Famous Question Popular Question Nice Question Notable Question Necromancer Nice Answer Necromancer Good Answer Guru Popular Question Good Answer Nice Answer Yearling Caucus Populist Popular Question Popular Question Taxonomist Notable Question Notable Question Popular Question Notable Question Necromancer Nice Answer Necromancer Good Answer Notable Question Notable Question Announcer Announcer Nice Answer Nice Answer Popular Question Good Answer Nice Answer Yearling Popular Question Necromancer Necromancer Popular Question Favorite Question Revival Pundit Popular Question Nice Answer Nice Answer Good Answer Great Answer Good Question Popular Question Popular Question Yearling Necromancer,NULL,pI ve slightly modified Jaymon answer for people who want really simple validation in the form of ppanystring anystring ppThe regular expression ppre code code prepExample JavaScript function ppre codefunction validateEmail email var re return re test email code pre Doesn this also allow,0,NULL,NULL 31569,792396,327786,Necromancer Enthusiast Yearling Famous Question Revival Cleanup Caucus Curious Nice Answer Good Answer Yearling Announcer Custodian Custodian Promoter Benefactor Popular Question Announcer Yearling Necromancer Announcer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 31570,85769,950204,NULL,NULL,NULL,0,NULL,NULL 31571,242848,807694,NULL,NULL,NULL,0,NULL,NULL 31572,300015,709395,NULL,NULL,NULL,0,NULL,NULL 31573,140620,636363,Yearling Custodian Critic Custodian Caucus Yearling Caucus Constituent Documentation User Reviewer Caucus Constituent Announcer Custodian Yearling Autobiographer Custodian Tenacious,NULL,NULL,0,NULL,NULL 31574,74355,830231,Yearling Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 31575,2862391,827282,NULL,NULL,NULL,0,NULL,NULL 31576,1398847,870525,NULL,NULL,NULL,0,NULL,NULL 31577,727022,430204,NULL,NULL,NULL,0,NULL,NULL 31578,1537143,609197,Tumbleweed Student,NULL,NULL,0,NULL,NULL 31579,447153,404745,NULL,NULL,NULL,0,NULL,NULL 31580,921624,763053,Nice Question Popular Question Nice Question Popular Question Famous Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Notable Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Notable Question Favorite Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 31581,97123,1145262,NULL,NULL,NULL,0,NULL,NULL 31582,252930,1011493,NULL,NULL,NULL,0,NULL,NULL 31583,1114466,608841,NULL,NULL,NULL,0,NULL,NULL 31584,247731,790602,Autobiographer Excavator Citizen Patrol,NULL,NULL,0,NULL,NULL 31585,425215,1235414,Supporter,NULL,NULL,0,NULL,NULL 31586,132060,374813,Popular Question Self-Learner Popular Question Necromancer Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 31587,1961351,1031205,Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 31588,35423,630534,NULL,NULL,NULL,0,NULL,NULL 31589,6824,573110,Popular Question Popular Question Popular Question Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31590,89327,998412,NULL,NULL,NULL,0,NULL,NULL 31591,1058707,107004,Nice Question Pundit Notable Question Nice Question Yearling Notable Question Famous Question Popular Question Notable Question Caucus Guru Famous Question Yearling Popular Question Notable Question Good Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 31592,922948,751452,Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 31593,984914,708138,NULL,NULL,NULL,0,NULL,NULL 31594,507385,187534,Necromancer Documentation User Critic,NULL,NULL,0,NULL,NULL 31595,187578,792640,NULL,NULL,NULL,0,NULL,NULL 31596,10890483,792640,NULL,NULL,NULL,0,NULL,NULL 31597,68589,278651,Caucus,NULL,NULL,0,NULL,NULL 31598,901082,163679,Revival Necromancer Nice Answer Census Necromancer Yearling Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 31599,2326222,1126263,NULL,NULL,NULL,0,NULL,NULL 31600,750222,643697,NULL,NULL,NULL,0,NULL,NULL 31601,126406,882543,Popular Question Tumbleweed Yearling Enthusiast Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31602,70184,828895,NULL,NULL,NULL,0,NULL,NULL 31603,363701,817604,NULL,NULL,NULL,0,NULL,NULL 31604,267960,284804,NULL,NULL,NULL,0,NULL,NULL 31605,495087,1303856,NULL,NULL,NULL,0,NULL,NULL 31606,176629,786120,NULL,NULL,NULL,0,NULL,NULL 31607,83991,101116,Notable Question Yearling Famous Question Notable Question Nice Answer Guru Yearling Great Question Tumbleweed Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 31608,207628,859192,NULL,NULL,NULL,0,NULL,NULL 31609,12394,278272,Notable Question,NULL,NULL,0,NULL,NULL 31610,101434,363508,NULL,NULL,NULL,0,NULL,NULL 31611,576657,671051,Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31612,47219,415363,Self-Learner Nice Question Popular Question Notable Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31613,180055,1206776,NULL,NULL,NULL,0,NULL,NULL 31614,11253,226791,Informed,NULL,NULL,0,NULL,NULL 31615,2441696,591455,NULL,NULL,NULL,0,NULL,NULL 31616,156080,287861,NULL,NULL,NULL,0,NULL,NULL 31617,192100,466153,Notable Question Notable Question Popular Question Notable Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 31618,35044,589358,NULL,NULL,NULL,0,NULL,NULL 31619,213082,949328,Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Nice Question Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 31620,50818,671104,Popular Question Self-Learner Nice Question Popular Question Yearling Good Question Popular Question Commentator Notable Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 31621,573229,130526,NULL,NULL,NULL,0,NULL,NULL 31622,78627,15946,NULL,NULL,NULL,0,NULL,NULL 31623,916611,1215701,NULL,NULL,NULL,0,NULL,NULL 31624,845595,688092,NULL,NULL,NULL,0,NULL,NULL 31625,616606,1108811,Popular Question Yearling Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 31626,1505996,1080239,NULL,NULL,NULL,0,NULL,NULL 31627,3548134,1373100,NULL,NULL,NULL,0,NULL,NULL 31628,298104,1373100,NULL,NULL,NULL,0,NULL,NULL 31629,286229,935669,NULL,NULL,NULL,0,NULL,NULL 31630,23350,785092,NULL,NULL,NULL,0,NULL,NULL 31631,863148,229192,Notable Question,NULL,NULL,0,NULL,NULL 31632,698070,352382,Yearling Favorite Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 31633,13098,1073505,NULL,NULL,NULL,0,NULL,NULL 31634,24116,1048604,NULL,NULL,NULL,0,NULL,NULL 31635,164114,1191441,NULL,NULL,NULL,0,NULL,NULL 31636,139692,1359107,NULL,NULL,NULL,0,NULL,NULL 31637,646689,1139671,NULL,NULL,NULL,0,NULL,NULL 31638,35242,809016,NULL,NULL,NULL,0,NULL,NULL 31639,85744,440754,Yearling Guru Yearling Caucus Custodian Informed Autobiographer Yearling Documentation User Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31640,101378,992937,NULL,NULL,NULL,0,NULL,NULL 31641,1371310,1443537,NULL,NULL,NULL,0,NULL,NULL 31642,187066,1199712,Nice Question Notable Question Good Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Good Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Self-Learner Nice Question Popular Question Nice Question Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Nice Question Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Yearling Notable Question Famous Question Notable Question Good Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 31643,130077,508015,Yearling Popular Question,NULL,NULL,0,NULL,NULL 31644,116438,501274,Enthusiast Autobiographer Necromancer Yearling Nice Answer Good Answer Yearling Caucus Constituent Student Editor Yearling Nice Answer Enlightened Critic,NULL,NULL,0,NULL,NULL 31645,337279,632999,NULL,NULL,NULL,0,NULL,NULL 31646,187854,400078,Critic Popular Question,NULL,NULL,0,NULL,NULL 31647,514333,1265489,NULL,NULL,NULL,0,NULL,NULL 31648,503291,1505551,Editor Student Informed Scholar,NULL,NULL,0,NULL,NULL 31649,611551,987446,NULL,NULL,NULL,0,NULL,NULL 31650,464084,1237179,Teacher,NULL,NULL,0,NULL,NULL 31651,1521439,440292,Popular Question,NULL,NULL,0,NULL,NULL 31652,383731,1041873,Civic Duty Peer Pressure Yearling Caucus Yearling Revival Great Answer Yearling,NULL,NULL,0,NULL,NULL 31653,679460,497815,Notable Question Yearling Yearling Custodian Peer Pressure Yearling,NULL,NULL,0,NULL,NULL 31654,441816,463038,Famous Question Famous Question Yearling Favorite Question Nice Answer Good Question Guru Revival jquery Guru Yearling Good Answer Nice Answer Notable Question Popular Question Popular Question Necromancer Popular Question Necromancer Nice Answer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31655,84732,406900,NULL,NULL,NULL,0,NULL,NULL 31656,3200946,1136397,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 31657,1350817,1349020,Famous Question,NULL,NULL,0,NULL,NULL 31658,273892,724579,NULL,NULL,NULL,0,NULL,NULL 31659,170971,816799,Popular Question Yearling Great Question Notable Question Favorite Question Yearling Caucus Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31660,647778,593195,NULL,NULL,NULL,0,NULL,NULL 31661,181209,1385800,NULL,NULL,NULL,0,NULL,NULL 31662,103713,204606,Famous Question Nice Question Yearling Popular Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 31663,313741,1141041,NULL,NULL,NULL,0,NULL,NULL 31664,269816,833650,NULL,NULL,NULL,0,NULL,NULL 31665,214350,411,Guru Populist Nice Answer Enlightened Yearling Revival Notable Question Necromancer Yearling Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 31666,18541,792406,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 31667,292189,399237,Yearling,NULL,NULL,0,NULL,NULL 31668,329418,50175,Famous Question Notable Question Notable Question Revival Popular Question Yearling Nice Answer Good Answer Nice Answer Necromancer Nice Answer Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Guru Guru Announcer,NULL,NULL,0,NULL,NULL 31669,510745,401052,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 31670,62366,813341,NULL,NULL,NULL,0,NULL,NULL 31671,900469,233166,NULL,NULL,NULL,0,NULL,NULL 31672,940158,471068,NULL,NULL,NULL,0,NULL,NULL 31673,377763,951960,NULL,NULL,NULL,0,NULL,NULL 31674,197574,1089985,NULL,NULL,NULL,0,NULL,NULL 31675,64811,23247,Revival,NULL,NULL,0,NULL,NULL 31676,1350431,571655,NULL,NULL,NULL,0,NULL,NULL 31677,5424392,1009732,Notable Question,NULL,NULL,0,NULL,NULL 31678,125886,84974,Popular Question Commentator Informed Yearling Guru Disciplined,NULL,NULL,0,NULL,NULL 31679,806105,1163026,NULL,NULL,NULL,0,NULL,NULL 31680,36818,982837,NULL,NULL,NULL,0,NULL,NULL 31681,525624,849284,NULL,NULL,NULL,0,NULL,NULL 31682,13107,1225290,NULL,NULL,NULL,0,NULL,NULL 31683,136664,1433741,Editor,NULL,NULL,0,NULL,NULL 31684,476204,694070,NULL,NULL,NULL,0,NULL,NULL 31685,232187,62620,NULL,NULL,NULL,0,NULL,NULL 31686,38655,1426274,Revival Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 31687,2504203,236454,NULL,NULL,NULL,0,NULL,NULL 31688,3875389,236454,NULL,NULL,NULL,0,NULL,NULL 31689,63469,236454,NULL,NULL,NULL,0,NULL,NULL 31690,224996,1296636,NULL,NULL,NULL,0,NULL,NULL 31691,35121,701531,NULL,NULL,NULL,0,NULL,NULL 31692,72091,1315641,NULL,NULL,NULL,0,NULL,NULL 31693,36634,668226,NULL,NULL,NULL,0,NULL,NULL 31694,33186,396077,Great Question Autobiographer Nice Answer Nice Answer Good Answer Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Benefactor Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Good Question Good Question Good Question Good Question Famous Question Famous Question Famous Question Famous Question Famous Question Famous Question Famous Question Famous Question Famous Question Favorite Question Favorite Question Notable Question Notable Question Good Question Notable Question Popular Question Good Question Popular Question Popular Question Good Question Yearling Notable Question Nice Question Famous Question Famous Question Notable Question Notable Question Great Question Good Question Great Answer Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Favorite Question Good Question Yearling Good Question Popular Question Popular Question Notable Question Great Question Famous Question Famous Question Popular Question Favorite Question Nice Question Popular Question Socratic Great Question Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 31695,109278,965386,NULL,NULL,NULL,0,NULL,NULL 31696,2360,267697,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 31697,368383,1019491,Popular Question Nice Question Notable Question Yearling Nice Answer Good Answer Notable Question Caucus Announcer Nice Question Yearling Census Nice Answer Enlightened Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 31698,336452,646364,NULL,NULL,NULL,0,NULL,NULL 31699,673386,37491,Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 31700,712905,248745,NULL,NULL,NULL,0,NULL,NULL 31701,27224,10689,Necromancer Census,NULL,NULL,0,NULL,NULL 31702,37602,658059,NULL,NULL,NULL,0,NULL,NULL 31703,280433,264079,Notable Question Scholar Civic Duty Informed Famous Question Critic Nice Question Excavator,NULL,NULL,0,NULL,NULL 31704,1350842,1475619,Popular Question Yearling Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Caucus Constituent Popular Question Custodian Famous Question Famous Question Famous Question Popular Question Organizer Excavator Civic Duty Famous Question Notable Question,NULL,NULL,0,NULL,NULL 31705,158317,476982,Yearling,NULL,NULL,0,NULL,NULL 31706,248424,1446115,NULL,NULL,NULL,0,NULL,NULL 31707,849148,1289432,NULL,NULL,NULL,0,NULL,NULL 31708,288900,237819,NULL,NULL,NULL,0,NULL,NULL 31709,27477,247200,Necromancer Yearling Necromancer Guru Yearling Good Answer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 31710,92153,518257,Notable Question,NULL,NULL,0,NULL,NULL 31711,347964,1105716,NULL,NULL,NULL,0,NULL,NULL 31712,352044,1311103,Yearling,NULL,NULL,0,NULL,NULL 31713,1152482,1084655,NULL,NULL,NULL,0,NULL,NULL 31714,516741,855342,NULL,NULL,NULL,0,NULL,NULL 31715,322894,130353,Yearling Student Popular Question Commentator,NULL,NULL,0,NULL,NULL 31716,458084,1025869,Tumbleweed,NULL,NULL,0,NULL,NULL 31717,25157,305364,Yearling Yearling Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 31718,301806,1372737,NULL,NULL,NULL,0,NULL,NULL 31719,738453,334979,NULL,NULL,NULL,0,NULL,NULL 31720,35824,1280463,Editor Tumbleweed Scholar Popular Question,NULL,NULL,0,NULL,NULL 31721,98363,1531178,NULL,NULL,NULL,0,NULL,NULL 31722,98852,551138,NULL,NULL,NULL,0,NULL,NULL 31723,35992,1016938,NULL,NULL,NULL,0,NULL,NULL 31724,84211,965079,Popular Question,NULL,NULL,0,NULL,NULL 31725,10131,309735,NULL,NULL,NULL,0,NULL,NULL 31726,47588,338986,Good Answer Revival Yearling Revival Nice Answer Notable Question Necromancer Announcer Popular Question Yearling Great Answer Notable Question Announcer Popular Question Popular Question Nice Answer Popular Question Necromancer Necromancer Yearling Necromancer Nice Answer Nice Answer Notable Question Announcer,NULL,NULL,1,Is it way to add arbitrary record to kube dns kubernetes google container engine pI ll use very specific way to explain the problem but think this is better to be specific than abstract problem ppSay there is mongo db replica set outside of kubernetes cluster but in network The ip addresses of all members of the replica set were resolved by etc hosts in app servers and db servers ppIn an experiment transition phase need to access those mongo db servers from kubernetes pods However kubernetes doesn seem to allow adding custom entry to etc hosts in pods containers ppThe mongo db replica sets are already working with large data set creating new replica set in the cluster is not option ppBecaseu use GKE changing any of resources in kube dns namespace should be avoided suppose Configuring or replace kube dns to be suitable for my need are last thing to try ppIs is way to resolve ip address of custom hostnames in kubernetes cluster ppIt is just an idea but if kube2sky can read some entries of configmap and use them as dns records it colud be great coderepl1 mongo local 192 168 10 100 code ppEDIT referenced this question from href https github com kubernetes kubernetes issues 12337 rel noreferrer https github com kubernetes kubernetes issues 12337,NULL 31727,159455,474156,Notable Question,NULL,NULL,0,NULL,NULL 31728,31866,1263191,NULL,NULL,NULL,0,NULL,NULL 31729,570651,1169110,NULL,NULL,NULL,0,NULL,NULL 31730,68390,583116,Notable Question,NULL,NULL,0,NULL,NULL 31731,255825,719365,NULL,NULL,NULL,0,NULL,NULL 31732,266178,161472,Yearling Notable Question,NULL,NULL,0,NULL,NULL 31733,60078,594784,Commentator Popular Question Yearling Critic Nice Answer Notable Question Popular Question Notable Question Excavator,NULL,NULL,0,NULL,NULL 31734,314449,1051295,Teacher,NULL,NULL,0,NULL,NULL 31735,884574,366202,NULL,NULL,NULL,0,NULL,NULL 31736,299073,26603,NULL,NULL,NULL,0,NULL,NULL 31737,187898,1225457,NULL,NULL,NULL,0,NULL,NULL 31738,157181,3694,Yearling Caucus Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Caucus Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 31739,915657,107852,Editor,NULL,NULL,0,NULL,NULL 31740,49963,533854,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31741,1336940,672060,NULL,NULL,NULL,0,NULL,NULL 31742,183580,938012,Peer Pressure,NULL,NULL,0,NULL,NULL 31743,178515,717928,Necromancer Critic Nice Answer Yearling Popular Question Famous Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 31744,206099,1059500,NULL,NULL,NULL,0,NULL,NULL 31745,133048,1303725,NULL,NULL,NULL,0,NULL,NULL 31746,48294,500536,NULL,NULL,NULL,0,NULL,NULL 31747,1093712,154931,Nice Answer Yearling Caucus Census Popular Question Caucus Yearling Nice Answer Enlightened Census,NULL,NULL,0,NULL,NULL 31748,194279,1314201,NULL,NULL,NULL,0,NULL,NULL 31749,54280,318462,Nice Question Necromancer Popular Question Famous Question Yearling Nice Answer Enlightened Nice Question Notable Question Notable Question Notable Question Nice Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 31750,31098,1049711,NULL,NULL,NULL,0,NULL,NULL 31751,342285,484820,Civic Duty Self-Learner,NULL,NULL,0,NULL,NULL 31752,360153,720126,NULL,NULL,NULL,0,NULL,NULL 31753,1347333,789514,Nice Answer,NULL,NULL,0,NULL,NULL 31754,322378,1156455,NULL,NULL,NULL,0,NULL,NULL 31755,48132,1155706,Informed,NULL,NULL,0,NULL,NULL 31756,17110,1473185,Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 31757,266078,820669,NULL,NULL,NULL,0,NULL,NULL 31758,748524,665030,Student Notable Question,NULL,NULL,0,NULL,NULL 31759,1762484,222847,NULL,NULL,NULL,0,NULL,NULL 31760,893799,768028,Curious Yearling,NULL,NULL,0,NULL,NULL 31761,1039957,1358151,NULL,NULL,NULL,0,NULL,NULL 31762,430696,816798,NULL,NULL,NULL,0,NULL,NULL 31763,2304624,1310916,NULL,NULL,NULL,0,NULL,NULL 31764,343976,1310916,NULL,NULL,NULL,0,NULL,NULL 31765,277526,1498233,NULL,NULL,NULL,0,NULL,NULL 31766,18188,107722,Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 31767,163585,239208,NULL,NULL,NULL,0,NULL,NULL 31768,47712,506452,NULL,NULL,NULL,0,NULL,NULL 31769,1352175,480701,NULL,NULL,NULL,0,NULL,NULL 31770,1839901,1295656,NULL,NULL,NULL,0,NULL,NULL 31771,1081357,502126,Great Answer Notable Question Nice Question Yearling Popular Question Documentation User Yearling Caucus Nice Answer Announcer Popular Question Famous Question Yearling,NULL,pData dismiss completely removes the element Use jQuery hide method instead pp strongThe fix it quick method strong ppUsing inline javascript to hide the element onclick like this ppre code lt div class alert style display none gt lt class close onclick alert hide gt lt gt lt strong gt Warning lt strong gt Best check yo self you re not looking too good lt div gt lt href onclick alert show gt show lt gt code prep href http jsfiddle net cQNFL rel nofollow noreferrer http jsfiddle net cQNFL pp emThis should however only be used if you are lazy which is no good thing if you want an maintainable app em pp strongThe do it right method strong ppCreate new data attribute for hiding an element ppJavascript ppre code function data hide on click function this attr data hide hide or see below this closest this attr data hide hide code prepand then change data dismiss to data hide in the markup href http jsfiddle net cQNFL 21 rel nofollow noreferrer Example at jsfiddle ppre code this attr data hide hide code prepThis will hide all elements with the class specified in data hide codedata hide alert code will hide all elements with the alert class pp href https stackoverflow com users 104999 xeon06 Xeon06 provided an alternative solution ppre code this closest this attr data hide hide code prepThis will only hide the closest parent element This is very useful if you don want to give each alert unique class Please note that however you need to place the close button within the alert ppDefinition of closest from href http api jquery com closest rel nofollow noreferrer jquery doc pblockquote pFor each element in the set get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree blockquote think that would depend on the use case Adding the event listener will force jQuery to check every click on the page which isn optimal It probably won matter but if you aren creating the dialogs dynamically there no reason for that,0,NULL,NULL 31772,179846,286642,NULL,NULL,NULL,0,NULL,NULL 31773,521434,1030979,NULL,NULL,NULL,0,NULL,NULL 31774,6070,679227,Enlightened Guru Popular Question Necromancer Nice Answer Enlightened Necromancer Yearling Nice Answer Enlightened Nice Answer Good Answer Necromancer Revival Nice Answer git Nice Answer Nice Answer Yearling Revival Custodian Popular Question Good Answer Pundit Tag Editor Yearling Revival Necromancer Necromancer Announcer,NULL,NULL,0,NULL,NULL 31775,424739,383932,Popular Question,NULL,NULL,0,NULL,NULL 31776,826255,1041458,NULL,NULL,NULL,0,NULL,NULL 31777,167801,619901,NULL,NULL,NULL,0,NULL,NULL 31778,1281673,943602,NULL,NULL,NULL,0,NULL,NULL 31779,5575913,791565,NULL,NULL,NULL,0,NULL,NULL 31780,1568334,965715,Yearling Self-Learner Caucus Famous Question Critic Civic Duty Yearling Good Answer Caucus,NULL,pYou have to instantiate Sequelize with special flag called codeomitNull code ppre codevar sequelize new Sequelize db user pw omitNull true code prepThis will codedisable inserting undefined values as NULL code href http sequelizejs com usage options rel noreferrer http sequelizejs com usage options ppYou might need to update to v1 or betaX Bullseye Thanks,0,NULL,NULL 31781,7060810,593307,NULL,NULL,NULL,0,NULL,NULL 31782,3540993,1313026,NULL,NULL,NULL,0,NULL,NULL 31783,360982,1081066,NULL,NULL,NULL,0,NULL,NULL 31784,925504,1158859,Popular Question,NULL,NULL,0,NULL,NULL 31785,2268756,1425946,NULL,NULL,NULL,0,NULL,NULL 31786,48572,1087443,Famous Question,NULL,NULL,0,NULL,NULL 31787,403352,1024513,NULL,NULL,NULL,0,NULL,NULL 31788,575569,281004,Yearling Notable Question Custodian Informed Autobiographer Custodian Organizer Custodian Citizen Patrol Yearling Popular Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31789,53485,83047,Yearling Nice Question Notable Question Nice Question Popular Question Good Answer Nice Answer Enlightened Famous Question java Caucus Famous Question Yearling Nice Answer Enlightened Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 31790,1531901,1454594,Teacher,NULL,NULL,0,NULL,NULL 31791,14879,345471,NULL,NULL,NULL,0,NULL,NULL 31792,197655,657178,Teacher,NULL,NULL,0,NULL,NULL 31793,217924,221566,NULL,NULL,NULL,0,NULL,NULL 31794,136003,530100,Student Popular Question,NULL,NULL,0,NULL,NULL 31795,318001,565999,Yearling Informed Scholar Announcer Good Answer Necromancer Guru Notable Question Nice Answer Great Answer Great Answer Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Nice Answer Announcer Announcer Nice Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 31796,43338,565999,Yearling Informed Scholar Announcer Good Answer Necromancer Guru Notable Question Nice Answer Great Answer Great Answer Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Nice Answer Announcer Announcer Nice Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 31797,37483,749191,NULL,NULL,NULL,0,NULL,NULL 31798,4366733,749191,NULL,NULL,NULL,0,NULL,NULL 31799,325946,454171,Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 31800,1384150,1120745,NULL,NULL,NULL,0,NULL,NULL 31801,164742,796937,NULL,NULL,NULL,0,NULL,NULL 31802,460716,1203658,NULL,NULL,NULL,0,NULL,NULL 31803,306027,1203658,NULL,NULL,NULL,0,NULL,NULL 31804,173346,755063,NULL,NULL,NULL,0,NULL,NULL 31805,295674,689663,NULL,NULL,NULL,0,NULL,NULL 31806,164909,153409,NULL,NULL,NULL,0,NULL,NULL 31807,189,7341,Yearling,NULL,NULL,0,NULL,NULL 31808,222453,434142,NULL,NULL,NULL,0,NULL,NULL 31809,871771,786362,NULL,NULL,NULL,0,NULL,NULL 31810,1532623,795743,Necromancer,NULL,NULL,0,NULL,NULL 31811,62344,8205,Guru Great Answer Nice Answer Enlightened Guru Necromancer Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Good Answer Yearling Good Answer Guru Good Answer Nice Answer Guru Enlightened Informed Census Nice Answer Announcer Announcer Nice Answer Caucus Yearling Nice Answer Enlightened Good Question Nice Answer Nice Answer Nice Answer Enlightened Announcer Good Question Nice Answer Guru Nice Answer Nice Answer Enlightened Yearling Notable Question Good Answer Great Answer,NULL,NULL,0,NULL,NULL 31812,220060,169181,Nice Answer Yearling Caucus Custodian Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 31813,147974,177394,Custodian Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31814,140845,261244,Popular Question Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 31815,411854,589814,NULL,NULL,NULL,0,NULL,NULL 31816,756203,1463496,NULL,NULL,NULL,0,NULL,NULL 31817,206751,528027,Famous Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 31818,1740769,528027,Famous Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 31819,151267,1160337,Yearling Nice Answer Famous Question Yearling Good Answer Yearling Necromancer Popular Question Popular Question Yearling Popular Question Good Question Notable Question Yearling Popular Question Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 31820,146029,471800,Nice Question Good Answer Notable Question Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Custodian Popular Question Guru Nice Answer Nice Answer Good Answer Yearling Good Answer Great Answer Famous Question Nice Answer Enlightened Guru Nice Answer Good Answer Yearling javascript,NULL,pThere are lots of ways to do it but regular expression is useful one line method ppre code this is longish string of text replace 11 this is longish code prepThis expressions returns the first 11 any characters plus any subsequent non space characters ppExample script ppre code lt pre gt lt script gt var this is longish string of text document write replace document write replace document write replace document write 11 replace 11 document write 20 replace 20 document write 100 replace 100 lt script gt code prepOutput ppre code1 this2 this5 this is11 this is longish20 this is longish string100 this is longish string of text code pre Mothafar right well the question does ask without cutting words and do say plus any subsequent non space characters so it working exactly as described If you ve got different needs you ll need to modify accordingly,0,NULL,NULL 31821,27553,1391518,Nice Answer Editor Informed Tumbleweed Scholar Caucus Student Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 31822,118627,469480,NULL,NULL,NULL,0,NULL,NULL 31823,131550,784810,Necromancer Notable Question Popular Question Famous Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 31824,890405,1244261,NULL,NULL,NULL,0,NULL,NULL 31825,1173140,531289,Popular Question,NULL,NULL,0,NULL,NULL 31826,1054314,829814,Nice Question,NULL,NULL,0,NULL,NULL 31827,263924,1047488,NULL,NULL,NULL,0,NULL,NULL 31828,376507,656383,NULL,NULL,NULL,0,NULL,NULL 31829,4944328,219712,NULL,NULL,NULL,0,NULL,NULL 31830,145454,1070794,NULL,NULL,NULL,0,NULL,NULL 31831,424297,384184,NULL,NULL,NULL,0,NULL,NULL 31832,248178,617232,Good Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 31833,71331,775838,Tumbleweed Revival,NULL,NULL,0,NULL,NULL 31834,1177519,799161,Popular Question Self-Learner Revival Famous Question Yearling Nice Question Announcer Autobiographer Caucus Yearling,NULL,pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre This works for me thank you,0,NULL,NULL 31835,310332,394035,Yearling,NULL,NULL,0,NULL,NULL 31836,474989,678072,NULL,NULL,NULL,0,NULL,NULL 31837,868310,1098081,Yearling,NULL,NULL,0,NULL,NULL 31838,28055,242960,NULL,NULL,NULL,0,NULL,NULL 31839,141287,889108,NULL,NULL,NULL,0,NULL,NULL 31840,3567961,359776,Nice Question Necromancer,NULL,NULL,0,NULL,NULL 31841,248429,1471256,Informed Teacher,NULL,NULL,0,NULL,NULL 31842,711364,730226,NULL,NULL,NULL,0,NULL,NULL 31843,883887,710443,Nice Answer,NULL,NULL,0,NULL,NULL 31844,102824,1122198,Teacher Supporter,NULL,NULL,0,NULL,NULL 31845,659023,543394,NULL,NULL,NULL,0,NULL,NULL 31846,93793,656265,NULL,NULL,NULL,0,NULL,NULL 31847,328062,1172017,NULL,NULL,NULL,0,NULL,NULL 31848,191741,829695,NULL,NULL,NULL,0,NULL,NULL 31849,6078,1337060,NULL,NULL,NULL,0,NULL,NULL 31850,63808,623735,Good Answer Pundit Nice Answer Nice Answer Yearling Necromancer Necromancer Nice Answer Organizer Popular Question Necromancer Popular Question python Notable Question Notable Question Good Answer Good Answer Caucus Constituent Necromancer Popular Question Revival Necromancer Nice Answer Necromancer Yearling Announcer Nice Answer Necromancer Nice Answer Necromancer Good Question Famous Question Necromancer Necromancer Good Answer Necromancer Nice Answer Announcer Caucus Necromancer Revival Notable Question Necromancer Nice Answer Good Answer Nice Question Yearling Nice Answer Necromancer Popular Question Great Answer Announcer Necromancer Announcer Announcer Necromancer Good Answer Good Answer Necromancer Cleanup Necromancer Nice Answer,NULL,pThere better support for this now through codeconda env code You can for example now do ppre codename sample envchannels dependencies requests bokeh gt 10 pip editable git https github com pythonforfacebook facebook sdk git00e02eaa71cc2a242790a0fcc egg facebook sdk master code prepIt still calling pip under the covers but you can now unify your conda and pip package specifications in single codeenvironment yml code file ppIf you wanted to update your root environment with this file you would need to save this to file for example codeenvironment yml code then run the command codeconda env update environment yml code ppIt more likely that you would want to create new environment pp codeconda env create environment yml code changed as supposed in the comments How do you install the requirements from that environment in your root environment pThere better support for this now through codeconda env code You can for example now do ppre codename sample envchannels dependencies requests bokeh gt 10 pip editable git https github com pythonforfacebook facebook sdk git00e02eaa71cc2a242790a0fcc egg facebook sdk master code prepIt still calling pip under the covers but you can now unify your conda and pip package specifications in single codeenvironment yml code file ppIf you wanted to update your root environment with this file you would need to save this to file for example codeenvironment yml code then run the command codeconda env update environment yml code ppIt more likely that you would want to create new environment pp codeconda env create environment yml code changed as supposed in the comments thanks That worked for me on Linux,0,NULL,NULL 31851,347354,1149786,NULL,NULL,NULL,0,NULL,NULL 31852,2401572,703572,NULL,NULL,NULL,0,NULL,NULL 31853,469521,1501739,NULL,NULL,NULL,0,NULL,NULL 31854,37218,1168307,NULL,NULL,NULL,0,NULL,NULL 31855,170033,107821,Necromancer Notable Question Popular Question Yearling Popular Question Yearling Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 31856,424508,1247671,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31857,127628,994207,Revival,NULL,NULL,0,NULL,NULL 31858,1519832,881149,NULL,NULL,NULL,0,NULL,NULL 31859,214675,330090,Guru Necromancer Yearling Popular Question Good Answer Nice Answer Yearling Revival Custodian Tumbleweed Yearling Necromancer Notable Question Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 31860,267148,293491,Popular Question,NULL,NULL,0,NULL,NULL 31861,2215760,476600,NULL,NULL,,0,, 31862,1582813,97876,Nice Question,NULL,NULL,0,NULL,NULL 31863,336053,433492,NULL,NULL,NULL,0,NULL,NULL 31864,217994,215752,Nice Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Guru Copy Editor Caucus Yearling Census Great Answer sql-server Nice Answer Announcer Good Answer Caucus Nice Answer Taxonomist Nice Question Announcer Announcer c++ Documentation User Good Answer Yearling Nice Answer Good Answer Nice Answer database Census Good Answer Nice Answer Guru Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 31865,565171,1009251,NULL,NULL,NULL,0,NULL,NULL 31866,10995046,1009251,NULL,NULL,NULL,0,NULL,NULL 31867,78183,970326,Yearling Tumbleweed Revival Popular Question,NULL,NULL,0,NULL,NULL 31868,329906,1283053,Famous Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 31869,10851774,738627,Necromancer,NULL,NULL,0,NULL,NULL 31870,579168,264382,Self-Learner Yearling Popular Question Notable Question Civic Duty Caucus,NULL,pSwift ppre codepublic extension Array where Element Hashable func uniqued gt Element var seen Set lt Element gt return filter seen insert inserted code prehrpevery attempt to codeinsert code will also return tuple code inserted Bool memberAfterInsert Set Element code See href https developer apple com documentation swift set 1541375 insert rel noreferrer documentation ppUsing the returned value helps us to avoid looping or doing any other operation After simple profiling this method is really fast Its hundreds times faster then using reduce or even reduce into,0,NULL,NULL 31871,30902,61008,Yearling Famous Question Notable Question Popular Question Notable Question Popular Question Yearling Famous Question Nice Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 31872,197209,865615,NULL,NULL,NULL,0,NULL,NULL 31873,54796,9535,Notable Question Notable Question Nice Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 31874,412062,236114,NULL,NULL,NULL,0,NULL,NULL 31875,2123600,236114,NULL,NULL,NULL,0,NULL,NULL 31876,204933,614300,Yearling Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31877,25174,1156062,NULL,NULL,NULL,0,NULL,NULL 31878,21703,424380,Popular Question Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 31879,44149,1485044,NULL,NULL,NULL,0,NULL,NULL 31880,170819,1308446,NULL,NULL,NULL,0,NULL,NULL 31881,128842,498408,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 31882,692401,504913,Yearling Great Answer Popular Question Yearling Notable Question Caucus Custodian Excavator Custodian Critic Custodian Custodian Citizen Patrol Custodian Custodian Caucus Constituent Yearling Proofreader Organizer Necromancer Reviewer Census Custodian Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 31883,193485,116522,Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Good Question Nice Question Famous Question Favorite Question Notable Question Popular Question Notable Question Popular Question Good Question Nice Question Good Question Famous Question Yearling Notable Question Notable Question Famous Question Popular Question Famous Question Famous Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 31884,311762,647627,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31885,2003553,647627,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 31886,84424,355760,Necromancer,NULL,NULL,0,NULL,NULL 31887,26986,943451,Popular Question Caucus,NULL,NULL,0,NULL,NULL 31888,11889,299781,Caucus Revival Necromancer Yearling Citizen Patrol Custodian Yearling Caucus Constituent Tenacious Custodian Yearling Civic Duty Informed Nice Answer,NULL,NULL,0,NULL,NULL 31889,203899,606984,NULL,NULL,NULL,0,NULL,NULL 31890,112998,784031,NULL,NULL,NULL,0,NULL,NULL 31891,344868,855576,NULL,NULL,NULL,0,NULL,NULL 31892,636928,1005396,Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Famous Question Popular Question Good Question Nice Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 31893,147238,235849,NULL,NULL,NULL,0,NULL,NULL 31894,118109,172111,Informed Autobiographer,NULL,NULL,0,NULL,NULL 31895,459702,964473,NULL,NULL,NULL,0,NULL,NULL 31896,2076853,523874,Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Nice Question Yearling Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 31897,4258295,523874,Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Nice Question Yearling Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 31898,146928,1558236,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 31899,1570091,262103,Yearling Famous Question,NULL,NULL,0,NULL,NULL 31900,249626,1351839,NULL,NULL,NULL,0,NULL,NULL 31901,487341,1275730,Informed Autobiographer,NULL,NULL,0,NULL,NULL 31902,1065933,1095031,NULL,NULL,NULL,0,NULL,NULL 31903,396600,562335,Revival Yearling Revival Curious Commentator Critic Yearling,NULL,NULL,0,NULL,NULL 31904,183225,725125,NULL,NULL,NULL,0,NULL,NULL 31905,1377644,434696,Good Answer Popular Question Notable Question Good Answer Nice Question Popular Question Yearling c# Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 31906,409565,150327,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 31907,52981,1404395,NULL,NULL,NULL,0,NULL,NULL 31908,404666,357811,Popular Question,NULL,NULL,0,NULL,NULL 31909,553225,239186,Popular Question Nice Answer Enlightened Guru Taxonomist Nice Answer Enlightened Revival Good Answer Caucus Nice Answer Good Answer Yearling Popular Question Caucus phasset Yearling alasset Guru,NULL,NULL,0,NULL,NULL 31910,49719,821010,Necromancer Curious Necromancer Self-Learner Yearling Nice Question,NULL,NULL,0,NULL,NULL 31911,1163524,1252680,NULL,NULL,NULL,0,NULL,NULL 31912,325155,898680,Notable Question Commentator Civic Duty,NULL,NULL,0,NULL,NULL 31913,264878,1244694,Student Teacher,NULL,NULL,0,NULL,NULL 31914,893509,883382,Popular Question,NULL,NULL,0,NULL,NULL 31915,202021,955947,Revival Commentator,NULL,NULL,0,NULL,NULL 31916,427866,793454,Popular Question Autobiographer Popular Question Popular Question Good Answer Populist Good Answer Custodian Necromancer Good Question Famous Question Famous Question Yearling Popular Question Nice Question Popular Question Nice Question Nice Answer Popular Question Necromancer Nice Answer Popular Question Popular Question Popular Question Notable Question Necromancer ruby-on-rails Famous Question Excavator Yearling Famous Question Necromancer Famous Question Famous Question Notable Question Good Answer Notable Question Popular Question Stellar Question Popular Question Yearling Good Answer Great Answer Stellar Question Good Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 31917,480137,905131,NULL,NULL,NULL,0,NULL,NULL 31918,139297,886513,NULL,NULL,NULL,0,NULL,NULL 31919,6970,516586,Teacher Informed Editor Autobiographer Revival Necromancer,NULL,NULL,0,NULL,NULL 31920,99032,97907,NULL,NULL,NULL,0,NULL,NULL 31921,53902,720792,Yearling Popular Question Caucus Nice Question,NULL,NULL,0,NULL,NULL 31922,352385,253146,Popular Question Announcer Notable Question Yearling Announcer Nice Question Nice Question Popular Question Announcer Announcer Yearling Notable Question Nice Answer Good Question Notable Question Announcer Yearling Popular Question Famous Question Revival,NULL,NULL,0,NULL,NULL 31923,19338,447515,NULL,NULL,NULL,0,NULL,NULL 31924,1526371,1034142,NULL,NULL,NULL,0,NULL,NULL 31925,8241872,1034142,NULL,NULL,NULL,0,NULL,NULL 31926,7488,507451,Nice Answer Yearling Necromancer Citizen Patrol Revival Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31927,545861,1328764,NULL,NULL,NULL,0,NULL,NULL 31928,6153,657952,NULL,NULL,NULL,0,NULL,NULL 31929,4507,35852,NULL,NULL,NULL,0,NULL,NULL 31930,61308,721265,NULL,NULL,NULL,0,NULL,NULL 31931,2048350,1395808,NULL,NULL,NULL,0,NULL,NULL 31932,39177,1297178,NULL,NULL,NULL,0,NULL,NULL 31933,241642,279660,NULL,NULL,NULL,0,NULL,NULL 31934,277652,58542,Autobiographer,NULL,NULL,0,NULL,NULL 31935,6645395,1194066,NULL,NULL,NULL,0,NULL,NULL 31936,237080,967217,NULL,NULL,NULL,0,NULL,NULL 31937,16766,20816,Revival Popular Question Revival Nice Question Yearling Good Answer Famous Question Good Question Nice Question Nice Answer Custodian Nice Answer Famous Question Notable Question Nice Question Announcer Yearling Notable Question Good Question Famous Question Announcer Popular Question Nice Answer Famous Question Good Answer Notable Question Popular Question Yearling ruby-on-rails Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 31938,1352184,1256442,NULL,NULL,NULL,0,NULL,NULL 31939,621956,450104,NULL,NULL,NULL,0,NULL,NULL 31940,202682,877859,Yearling Good Answer,NULL,NULL,0,NULL,NULL 31941,833958,622678,Yearling Caucus Autobiographer Necromancer,NULL,NULL,0,NULL,NULL 31942,75818,548242,NULL,NULL,NULL,0,NULL,NULL 31943,375047,802699,NULL,NULL,NULL,0,NULL,NULL 31944,2304169,891450,NULL,NULL,NULL,0,NULL,NULL 31945,812133,1097692,NULL,NULL,NULL,0,NULL,NULL 31946,915538,1502956,Custodian Yearling Necromancer Necromancer Caucus Nice Answer Necromancer Nice Answer Good Answer Yearling Custodian Nice Answer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 31947,91645,333786,Nice Question Good Answer Yearling Guru Popular Question Documentation Pioneer Notable Question Good Answer Nice Answer html Nice Answer Enlightened Great Answer Yearling Proofreader Good Answer Nice Answer Nice Answer Documentation User Census Popular Question Nice Answer Popular Question Yearling javascript Great Answer Good Answer,NULL,NULL,0,NULL,NULL 31948,129232,512721,NULL,NULL,NULL,0,NULL,NULL 31949,540817,746431,Great Answer Nice Answer Yearling Popular Question Necromancer Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Census Nice Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 31950,331840,747650,NULL,NULL,NULL,0,NULL,NULL 31951,342010,1537755,NULL,NULL,NULL,0,NULL,NULL 31952,6543405,653660,NULL,NULL,NULL,0,NULL,NULL 31953,344097,653660,NULL,NULL,NULL,0,NULL,NULL 31954,78597,963870,Student,NULL,NULL,0,NULL,NULL 31955,500193,1553746,NULL,NULL,NULL,0,NULL,NULL 31956,78142,369481,NULL,NULL,NULL,0,NULL,NULL 31957,180075,999048,Investor Altruist Revival Necromancer Yearling Nice Answer Yearling Good Answer Yearling Announcer Necromancer Yearling Critic Nice Answer,NULL,NULL,0,NULL,NULL 31958,60164,1143628,NULL,NULL,NULL,0,NULL,NULL 31959,521073,1017165,Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 31960,1112105,1017165,Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 31961,322820,197116,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 31962,159037,407275,Teacher Revival,NULL,NULL,0,NULL,NULL 31963,161192,965002,Yearling,NULL,NULL,0,NULL,NULL 31964,86877,3850,NULL,NULL,NULL,0,NULL,NULL 31965,1080508,937447,NULL,NULL,NULL,0,NULL,NULL 31966,140366,819379,NULL,NULL,NULL,0,NULL,NULL 31967,5981254,819379,NULL,NULL,NULL,0,NULL,NULL 31968,171424,283742,NULL,NULL,NULL,0,NULL,NULL 31969,1066341,1175642,Commentator Notable Question Documentation User,NULL,NULL,0,NULL,NULL 31970,734367,1175642,Commentator Notable Question Documentation User,NULL,NULL,0,NULL,NULL 31971,15764,1509384,NULL,NULL,NULL,0,NULL,NULL 31972,456804,1178388,Nice Answer Yearling Nice Answer Great Answer Yearling Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 31973,66710,1124297,Yearling Nice Answer Enlightened Yearling Good Answer Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 31974,234088,775546,NULL,NULL,NULL,0,NULL,NULL 31975,54688,369890,Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 31976,37418,928387,Famous Question Announcer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 31977,33854,799025,NULL,NULL,NULL,0,NULL,NULL 31978,284625,376076,NULL,NULL,NULL,0,NULL,NULL 31979,123353,307338,Nice Answer Custodian javascript Popular Question Explainer Popular Question Favorite Question Great Answer Yearling Census Famous Question Nice Answer jquery Nice Answer Documentation User Yearling Notable Question Yearling Announcer,NULL,h1Update for 2017 h1pMy original answer was written in 2009 While it still works like to update it for 2017 Browsers can still behave differently trust the jQuery team to do great job at maintaining cross browser consistency However it not necessary to include the entire library In the jQuery source the relevant portion is found on href https github com jquery jquery blob master src dimensions js L37 rel noreferrer line 37 of dimensions js Here it is extracted and modified to work standalone pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction getWidth xD return Math max xD document body scrollWidth xD document documentElement scrollWidth xD document body offsetWidth xD document documentElement offsetWidth xD document documentElement clientWidth xD xD xD xD function getHeight xD return Math max xD document body scrollHeight xD document documentElement scrollHeight xD document body offsetHeight xD document documentElement offsetHeight xD document documentElement clientHeight xD xD xD xD console log Width getWidth xD console log Height getHeight code pre xD div xD div xD phrh1Original Answer h1pSince all browsers behave differently you ll need to test for values first and then use the correct one Here function that does this for you ppre codefunction getWidth if self innerWidth return self innerWidth if document documentElement amp amp document documentElement clientWidth return document documentElement clientWidth if document body return document body clientWidth code prepand similarly for height ppre codefunction getHeight if self innerHeight return self innerHeight if document documentElement amp amp document documentElement clientHeight return document documentElement clientHeight if document body return document body clientHeight code prepCall both of these in your scripts using codegetWidth code or codegetHeight code If none of the browser native properties are defined it will return codeundefined code Thanks for catching this typo after years h1Update for 2017 h1pMy original answer was written in 2009 While it still works like to update it for 2017 Browsers can still behave differently trust the jQuery team to do great job at maintaining cross browser consistency However it not necessary to include the entire library In the jQuery source the relevant portion is found on href https github com jquery jquery blob master src dimensions js L37 rel noreferrer line 37 of dimensions js Here it is extracted and modified to work standalone pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction getWidth xD return Math max xD document body scrollWidth xD document documentElement scrollWidth xD document body offsetWidth xD document documentElement offsetWidth xD document documentElement clientWidth xD xD xD xD function getHeight xD return Math max xD document body scrollHeight xD document documentElement scrollHeight xD document body offsetHeight xD document documentElement offsetHeight xD document documentElement clientHeight xD xD xD xD console log Width getWidth xD console log Height getHeight code pre xD div xD div xD phrh1Original Answer h1pSince all browsers behave differently you ll need to test for values first and then use the correct one Here function that does this for you ppre codefunction getWidth if self innerWidth return self innerWidth if document documentElement amp amp document documentElement clientWidth return document documentElement clientWidth if document body return document body clientWidth code prepand similarly for height ppre codefunction getHeight if self innerHeight return self innerHeight if document documentElement amp amp document documentElement clientHeight return document documentElement clientHeight if document body return document body clientHeight code prepCall both of these in your scripts using codegetWidth code or codegetHeight code If none of the browser native properties are defined it will return codeundefined code ve updated my answer looked at the jQuery source to see how they do it now in 2017 While window innerWidth will probably work in most cases trust the jQuery team and their ability to maintain cross browser consistency For that reason use their code only modified to run without the full jQuery library,0,NULL,NULL 31980,14388,612162,Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 31981,383935,511079,Popular Question Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 31982,17821,381974,NULL,NULL,NULL,0,NULL,NULL 31983,26470,1378820,NULL,NULL,NULL,0,NULL,NULL 31984,1559561,1125040,Popular Question Nice Answer Notable Question Yearling Revival Caucus Popular Question Necromancer Yearling Good Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 31985,7553513,1125040,Popular Question Nice Answer Notable Question Yearling Revival Caucus Popular Question Necromancer Yearling Good Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 31986,137539,405777,NULL,NULL,NULL,0,NULL,NULL 31987,918930,349349,NULL,NULL,NULL,0,NULL,NULL 31988,239813,507844,NULL,NULL,NULL,0,NULL,NULL 31989,330640,447782,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 31990,267792,813946,Caucus Yearling Revival Announcer Census Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 31991,1565551,1504885,NULL,NULL,NULL,0,NULL,NULL 31992,1391952,778304,NULL,NULL,NULL,0,NULL,NULL 31993,735005,1478675,NULL,NULL,NULL,0,NULL,NULL 31994,930008,1478675,NULL,NULL,NULL,0,NULL,NULL 31995,8918208,1278435,NULL,NULL,NULL,0,NULL,NULL 31996,15558,313193,Necromancer Yearling Nice Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 31997,537837,193009,NULL,NULL,NULL,0,NULL,NULL 31998,18643,438128,Popular Question Tumbleweed Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 31999,30277,1028196,NULL,NULL,NULL,0,NULL,NULL 32000,326818,709665,Scholar Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 32001,2135625,74192,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 32002,109203,893166,NULL,NULL,NULL,0,NULL,NULL 32003,181092,224987,Tumbleweed,NULL,NULL,0,NULL,NULL 32004,73854,211160,Nice Answer Announcer Nice Question Announcer Popular Question Great Answer Good Question Popular Question Guru Notable Question Good Answer Necromancer Good Question Nice Answer Enlightened Good Answer Nice Answer Notable Question Popular Question Popular Question Yearling Announcer Census Popular Question Popular Question Revival Good Answer Nice Question Necromancer Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Popular Question Popular Question Refiner Documentation User Popular Question Popular Question Nice Answer Yearling Nice Answer Notable Question qt Notable Question Necromancer Popular Question Revival Notable Question Nice Question Nice Answer Popular Question Revival Nice Answer Good Answer Notable Question Nice Answer Enlightened Nice Question Good Answer c++ Nice Question Popular Question Notable Question Good Question Yearling,NULL,strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code very firmly believe in and as separate languages You shouldn be firm about things that fly in the face of both history and present practice didn inherit syntax because of its intrinsic beauty it was so that codebases can incrementally adopt features Plus there lot of value in being able to compile codebase with compiler whether that how you ultimately ship your binary or not see the core guidelines http isocpp github io CppCoreGuidelines CppCoreGuidelines cpl One can write lot of neat type traits based static checks for MSVC warning 4611 regarding setjmp POD struct visual studio 2017 compiler warnings longjmp setjmp pTrying to turn up some warning levels on codebase that also builds as giving Visual Studio shot for some reason ppGot warning about setjmp interactions despite not seeing any relevant destructors so did test ppre code include lt setjmp gt struct int int main struct jmp buf buf if setjmp buf longjmp buf else whatever code prepEnabling the warning on the command line ppre codeC wherever gt cl we4611 test cpp code preblockquote ptest cpp test cpp error C4611 interaction between setjmp and object destruction is non portable blockquotepThis seems like an extremely useful warning if it was warning me about crossing destructor code But that POD type There shouldn be any destructor code ppAm missing something here or did they botch this warning to the point of making it basically you used setjmp in program With full optimization cl we4611 Ox test cpp it still gives the warning MSVC warning 4611 regarding setjmp POD struct visual studio 2017 compiler warnings longjmp setjmp pTrying to turn up some warning levels on codebase that also builds as giving Visual Studio shot for some reason ppGot warning about setjmp interactions despite not seeing any relevant destructors so did test ppre code include lt setjmp gt struct int int main struct jmp buf buf if setjmp buf longjmp buf else whatever code prepEnabling the warning on the command line ppre codeC wherever gt cl we4611 test cpp code preblockquote ptest cpp test cpp error C4611 interaction between setjmp and object destruction is non portable blockquotepThis seems like an extremely useful warning if it was warning me about crossing destructor code But that POD type There shouldn be any destructor code ppAm missing something here or did they botch this warning to the point of making it basically you used setjmp in program Oh well thanks anyway added suggestion https visualstudio uservoice com forums 121579 visual studio ide suggestions 20354494 on the MS site Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach ve not seen the trio But for variable declarations using the EXTERN if it left out the extern in the build you have to say EXTERN extern int which expands to illegal though note extern extern int is actually legal guess am just wondering why someone who controls their header sources wouldn switch to an all EXTERN even if it meant touching each declaration which raises questions of if there any value to being explicit about function declarations being extern Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach extern and extern are different things that happen to share keyword Perhaps but there really only one intention in usage of this macro writing definitions that can compile under or this declaration is external and it should have linkage If the nuances of the language can be collapsed into helpful macro that does the right thing that seems like worthwhile goal If it can be done the understanding of why not is illustrative Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach Fair enough definitely feel that when there large body of code using EXTERN out there that does not decay to extern for the case or includes the brace or doesn that there enough variance in practice to be skeptical Would you mind forming this as an answer It seems if anything EXTERN BEGIN and EXTERN END can at least not really mean much of anything else Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach Cppreference special rules for linkage http en cppreference com cpp language language linkage seems to imply that name mangling for variables comes into play when you re dealing with namespaces and that variables and functions are considered in their own dedicated namespace Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach It looks like people say that to be standard you need it on global variables https stackoverflow com 27939238 211160 which feel echoes cppreference technical details But can find way to say extern as well as extern on the same definition unless the extern extern form is used If correct that suggests one might lean to favoring the BEGIN and END form solely for regularity vs having broken member of the trio Workaround for Spectre warning MSVC C5040 visual visual studio 2017 spectre pMSVC just released an update which has added new warning about some code the compiler will inject to mitigate apparently some small bit of Spectre pp href https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc rel nofollow noreferrer https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc ppHere little MCVE derived from their example of problematic code ppre code include lt stdio gt int main int argc char argv unsigned char array1 int array1 length unsigned char array2 99 int untrusted index in this MCVE trust it compiler doesn for untrusted index lt array1 length untrusted index unsigned char value array1 untrusted index unsigned char value2 array2 value 64 printf Picked value value2 return code prep em In the above example the code performs an array bounds check to ensure that untrusted index is less than the length of array1 This is needed to ensure that the program does not read beyond the bounds of the array While this appears to be sound as written it does not take into account microarchitectural behaviors of the CPU involving speculative execution em ppSo you now get warning pblockquote strongWarning C5045 strong Compiler will insert Spectre mitigation for memory load if Qspectre switch specified blockquotepWhich is its way of telling you that this code could end up being slower than you might like it to be if compiled Qspectre because it going to put in some extra protections ppSince it doesn seem you can take anything for granted suspicious of making changes that em just make the warning go away em For instance changing codeuntrusted index lt array1 length code to codeuntrusted index array1 length code seems to do it emfor the specific instance of the MCVE code give here em But is that viable patch or is their warning just incomplete and in the next update it will complain about that too pp strongI know can disable the warning with wd5040 or otherwise But interested in making sure that if the code is compiled with Qspectre that there are not slowdowns and that there are no warnings if it is not compiled with Qspectre don want to go around touching files changing code lt code to code code in loop conditions or whatever if that just churn strong ppSo bigger question would be if there are legitimate workaround patterns that are this basic why aren there some mentions of them For instance the case describe is an iteration where control the index and don have to worry about it coming from an untrusted source Yet got warning and switching from code lt code to code code made it go away Why Should it have No what are you talking about there is bounds check If stuck with the example in the cited article it wouldn be MCVE could not be copied and pasted and compiled to show the warning then modified as given to show it go away Workaround for Spectre warning MSVC C5040 visual visual studio 2017 spectre pMSVC just released an update which has added new warning about some code the compiler will inject to mitigate apparently some small bit of Spectre pp href https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc rel nofollow noreferrer https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc ppHere little MCVE derived from their example of problematic code ppre code include lt stdio gt int main int argc char argv unsigned char array1 int array1 length unsigned char array2 99 int untrusted index in this MCVE trust it compiler doesn for untrusted index lt array1 length untrusted index unsigned char value array1 untrusted index unsigned char value2 array2 value 64 printf Picked value value2 return code prep em In the above example the code performs an array bounds check to ensure that untrusted index is less than the length of array1 This is needed to ensure that the program does not read beyond the bounds of the array While this appears to be sound as written it does not take into account microarchitectural behaviors of the CPU involving speculative execution em ppSo you now get warning pblockquote strongWarning C5045 strong Compiler will insert Spectre mitigation for memory load if Qspectre switch specified blockquotepWhich is its way of telling you that this code could end up being slower than you might like it to be if compiled Qspectre because it going to put in some extra protections ppSince it doesn seem you can take anything for granted suspicious of making changes that em just make the warning go away em For instance changing codeuntrusted index lt array1 length code to codeuntrusted index array1 length code seems to do it emfor the specific instance of the MCVE code give here em But is that viable patch or is their warning just incomplete and in the next update it will complain about that too pp strongI know can disable the warning with wd5040 or otherwise But interested in making sure that if the code is compiled with Qspectre that there are not slowdowns and that there are no warnings if it is not compiled with Qspectre don want to go around touching files changing code lt code to code code in loop conditions or whatever if that just churn strong ppSo bigger question would be if there are legitimate workaround patterns that are this basic why aren there some mentions of them For instance the case describe is an iteration where control the index and don have to worry about it coming from an untrusted source Yet got warning and switching from code lt code to code code made it go away Why Should it have The question is not is Qspectre good or should use Qspectre Does access through pointer change strict aliasing semantics language lawyer strict aliasing pWith these definitions ppre codestruct My Header uintptr bits struct Foo Type struct My Header header int struct Foo Type foo struct Bar Type struct My Header header float struct Bar Type bar code prepIs it correct to say that this code strong case one strong ppre codefoo gt header bits 1020 code prep is actually different emsemantically em from this code strong case two strong ppre codestruct My Header alias amp foo gt header alias gt bits 1020 code prepMy understanding is that they should be different pulli pCase One considers the assignment unable to affect the header in Bar Type It only is seen as being able to influence the header in other Foo Type instances lili pCase Two by forcing access through generic aliasing pointer will cause the optimizer to realize all bets are off for any type which might contain codestruct My Header code It would be synchronized with access through any pointer type em if you had codeFoo Type code which was pointing to what was actually codeBar Type code it could access through the header and reliably find out which it had assuming that something the header bits could tell you em li ulpThis relies on the optimizer not getting smart and making case two back into case one The aliasing is implied Writing headers through foo reading them through bar not seeing updates Does access through pointer change strict aliasing semantics language lawyer strict aliasing pWith these definitions ppre codestruct My Header uintptr bits struct Foo Type struct My Header header int struct Foo Type foo struct Bar Type struct My Header header float struct Bar Type bar code prepIs it correct to say that this code strong case one strong ppre codefoo gt header bits 1020 code prep is actually different emsemantically em from this code strong case two strong ppre codestruct My Header alias amp foo gt header alias gt bits 1020 code prepMy understanding is that they should be different pulli pCase One considers the assignment unable to affect the header in Bar Type It only is seen as being able to influence the header in other Foo Type instances lili pCase Two by forcing access through generic aliasing pointer will cause the optimizer to realize all bets are off for any type which might contain codestruct My Header code It would be synchronized with access through any pointer type em if you had codeFoo Type code which was pointing to what was actually codeBar Type code it could access through the header and reliably find out which it had assuming that something the header bits could tell you em li ulpThis relies on the optimizer not getting smart and making case two back into case one ve fleshed out the example though honestly feel it just distraction over the core yes or no question which remains at the end and it sounding like people are saying no but wondering how it is that passing pointer to datatype that can appear in multiple structures would ever work otherwise Does access through pointer change strict aliasing semantics language lawyer strict aliasing pWith these definitions ppre codestruct My Header uintptr bits struct Foo Type struct My Header header int struct Foo Type foo struct Bar Type struct My Header header float struct Bar Type bar code prepIs it correct to say that this code strong case one strong ppre codefoo gt header bits 1020 code prep is actually different emsemantically em from this code strong case two strong ppre codestruct My Header alias amp foo gt header alias gt bits 1020 code prepMy understanding is that they should be different pulli pCase One considers the assignment unable to affect the header in Bar Type It only is seen as being able to influence the header in other Foo Type instances lili pCase Two by forcing access through generic aliasing pointer will cause the optimizer to realize all bets are off for any type which might contain codestruct My Header code It would be synchronized with access through any pointer type em if you had codeFoo Type code which was pointing to what was actually codeBar Type code it could access through the header and reliably find out which it had assuming that something the header bits could tell you em li ulpThis relies on the optimizer not getting smart and making case two back into case one Okay but the question is can you beat the passing pointer to one type where pointer to another type is expected by extracting pointer to contained common type and does whether that common type is written or read through pointer matter found case where it made difference optimized build wrote to bar header bits registers didn sync on reading foo header bits at the same address Used alternative assignment method above and it did sync in that optimized build Quirk glitch or emergent guarantee of pointer based access Does access through pointer change strict aliasing semantics language lawyer strict aliasing pWith these definitions ppre codestruct My Header uintptr bits struct Foo Type struct My Header header int struct Foo Type foo struct Bar Type struct My Header header float struct Bar Type bar code prepIs it correct to say that this code strong case one strong ppre codefoo gt header bits 1020 code prep is actually different emsemantically em from this code strong case two strong ppre codestruct My Header alias amp foo gt header alias gt bits 1020 code prepMy understanding is that they should be different pulli pCase One considers the assignment unable to affect the header in Bar Type It only is seen as being able to influence the header in other Foo Type instances lili pCase Two by forcing access through generic aliasing pointer will cause the optimizer to realize all bets are off for any type which might contain codestruct My Header code It would be synchronized with access through any pointer type em if you had codeFoo Type code which was pointing to what was actually codeBar Type code it could access through the header and reliably find out which it had assuming that something the header bits could tell you em li ulpThis relies on the optimizer not getting smart and making case two back into case one Perhaps supercat answer https stackoverflow com 51849327 211160 is sufficient explanation,1,MSVC warning 4611 regarding setjmp POD struct visual studio 2017 compiler warnings longjmp setjmp pTrying to turn up some warning levels on codebase that also builds as giving Visual Studio shot for some reason ppGot warning about setjmp interactions despite not seeing any relevant destructors so did test ppre code include lt setjmp gt struct int int main struct jmp buf buf if setjmp buf longjmp buf else whatever code prepEnabling the warning on the command line ppre codeC wherever gt cl we4611 test cpp code preblockquote ptest cpp test cpp error C4611 interaction between setjmp and object destruction is non portable blockquotepThis seems like an extremely useful warning if it was warning me about crossing destructor code But that POD type There shouldn be any destructor code ppAm missing something here or did they botch this warning to the point of making it basically you used setjmp in program Why do EXTERN macros leave out extern on their form extern name mangling pIn file have this macro ppre code if defined cplusplus define EXTERN extern else define EXTERN extern endif code prepBut searching on the web it doesn seem typical for such macros to have an codeextern code on the path href https github com tpn winsdk 10 blob ab507ba07037c452c4ca2eb2f99dd21370a8aa54 Include 10 10240 shared basetyps L18 rel nofollow noreferrer though some examples exist They href https stackoverflow com 9499107 211160 generally come in pairs more akin to codeEXTERN BEGIN code and codeEXTERN END code to wrap up group of declarations and are no op in builds ppBut this means in header file you wind up having to write ppre codeEXTERN BEGINextern int but already said extern void doSomething int EXTERN END code prepThis happens because codeextern int code is equivalent to codeextern extern int code not codeextern int code The latter form only gives linkage but not the historical meaning of extern Then if you try to make the single line form decay in to extern you can say codeEXTERN extern int code the compiler will complain in the build at the two externs on one declaration ppSince there no begin end form it often going to mean more typing But prefer the em announcement of intent em to the compiler even in the case ppre codeEXTERN int EXTERN void doSomething int does extern help the case code prepI cannot offhand seem to create good scenario where having the extern on the function declarations helps catch mistake in But intuitively it seems there might be value in the redundancy and as say having to do codeextern code and then later still put codeextern code on things feels awkward ppWhat is the reasoning to prefer or avoid either approach Workaround for Spectre warning MSVC C5040 visual visual studio 2017 spectre pMSVC just released an update which has added new warning about some code the compiler will inject to mitigate apparently some small bit of Spectre pp href https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc rel nofollow noreferrer https blogs msdn microsoft com vcblog 2018 01 15 spectre mitigations in msvc ppHere little MCVE derived from their example of problematic code ppre code include lt stdio gt int main int argc char argv unsigned char array1 int array1 length unsigned char array2 99 int untrusted index in this MCVE trust it compiler doesn for untrusted index lt array1 length untrusted index unsigned char value array1 untrusted index unsigned char value2 array2 value 64 printf Picked value value2 return code prep em In the above example the code performs an array bounds check to ensure that untrusted index is less than the length of array1 This is needed to ensure that the program does not read beyond the bounds of the array While this appears to be sound as written it does not take into account microarchitectural behaviors of the CPU involving speculative execution em ppSo you now get warning pblockquote strongWarning C5045 strong Compiler will insert Spectre mitigation for memory load if Qspectre switch specified blockquotepWhich is its way of telling you that this code could end up being slower than you might like it to be if compiled Qspectre because it going to put in some extra protections ppSince it doesn seem you can take anything for granted suspicious of making changes that em just make the warning go away em For instance changing codeuntrusted index lt array1 length code to codeuntrusted index array1 length code seems to do it emfor the specific instance of the MCVE code give here em But is that viable patch or is their warning just incomplete and in the next update it will complain about that too pp strongI know can disable the warning with wd5040 or otherwise But interested in making sure that if the code is compiled with Qspectre that there are not slowdowns and that there are no warnings if it is not compiled with Qspectre don want to go around touching files changing code lt code to code code in loop conditions or whatever if that just churn strong ppSo bigger question would be if there are legitimate workaround patterns that are this basic why aren there some mentions of them For instance the case describe is an iteration where control the index and don have to worry about it coming from an untrusted source Yet got warning and switching from code lt code to code code made it go away Why Should it have Does access through pointer change strict aliasing semantics language lawyer strict aliasing pWith these definitions ppre codestruct My Header uintptr bits struct Foo Type struct My Header header int struct Foo Type foo struct Bar Type struct My Header header float struct Bar Type bar code prepIs it correct to say that this code strong case one strong ppre codefoo gt header bits 1020 code prep is actually different emsemantically em from this code strong case two strong ppre codestruct My Header alias amp foo gt header alias gt bits 1020 code prepMy understanding is that they should be different pulli pCase One considers the assignment unable to affect the header in Bar Type It only is seen as being able to influence the header in other Foo Type instances lili pCase Two by forcing access through generic aliasing pointer will cause the optimizer to realize all bets are off for any type which might contain codestruct My Header code It would be synchronized with access through any pointer type em if you had codeFoo Type code which was pointing to what was actually codeBar Type code it could access through the header and reliably find out which it had assuming that something the header bits could tell you em li ulpThis relies on the optimizer not getting smart and making case two back into case one,Find which commit is currently checked out in Git git pI in the middle of codegit bisect code session ppWhat the command to find out which commit SHA1 hash am currently on codegit status code does not provide this ppEdit guess calling codegit log code and looking at first entry works pIf you want to extract just simple piece of information you can get that using codegit show code with the code format lt string gt code option and ask it not to give you the diff with code no patch code This means you can get printf style output of whatever you want which might often be single field ppFor instance to get just the shortened hash code code you could say ppre code git show format no patch4b703eb code prepIf you re looking to save that into an environment variable in bash likely thing for people to want to do you can use the href https stackoverflow com 4651495 211160 code code syntax ppre code GIT COMMIT git show format no patch echo GIT COMMIT4b703eb code prepThe full href https git scm com docs git show rel nofollow noreferrer list of what you can do is in codegit show help code But here an abbreviated list of properties that might be useful pulli code code commit hash lili code code abbreviated commit hash lili code code tree hash lili code code abbreviated tree hash lili code code parent hashes lili code code abbreviated parent hashes lili code an code author name lili code ae code author email lili code at code author date UNIX timestamp lili code aI code author date strict ISO 8601 format lili code cn code committer name lili code ce code committer email lili code ct code committer date UNIX timestamp lili code cI code committer date strict ISO 8601 format lili code code subject lili code code sanitized subject line suitable for filename lili code gD code reflog selector refs stash lili code gd code shortened reflog selector stash li ul 32005,50826,414669,NULL,NULL,NULL,0,NULL,NULL 32006,22622,1288107,Supporter Teacher Enthusiast,NULL,NULL,0,NULL,NULL 32007,338679,706955,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32008,112166,1248719,NULL,NULL,NULL,0,NULL,NULL 32009,97819,805077,NULL,NULL,NULL,0,NULL,NULL 32010,1924716,355743,Necromancer Necromancer Yearling Nice Answer Good Answer Yearling Revival Yearling Necromancer Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32011,794950,355743,Necromancer Necromancer Yearling Nice Answer Good Answer Yearling Revival Yearling Necromancer Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32012,1170347,1067635,NULL,NULL,NULL,0,NULL,NULL 32013,8392979,1067635,NULL,NULL,NULL,0,NULL,NULL 32014,1072800,1228516,Supporter Citizen Patrol Documentation User,NULL,NULL,0,NULL,NULL 32015,4726630,1228516,Supporter Citizen Patrol Documentation User,NULL,NULL,0,NULL,NULL 32016,2850723,233110,Custodian Popular Question Tumbleweed Self-Learner Notable Question Yearling Autobiographer Famous Question Yearling,NULL,NULL,0,NULL,NULL 32017,495752,233110,Custodian Popular Question Tumbleweed Self-Learner Notable Question Yearling Autobiographer Famous Question Yearling,NULL,NULL,0,NULL,NULL 32018,744459,815775,NULL,NULL,NULL,0,NULL,NULL 32019,1691780,664385,NULL,NULL,NULL,0,NULL,NULL 32020,514986,664385,NULL,NULL,NULL,0,NULL,NULL 32021,2896516,664385,NULL,NULL,NULL,0,NULL,NULL 32022,336554,97964,Famous Question Notable Question Good Question Popular Question Nice Question Popular Question Yearling Nice Question Good Question Notable Question Nice Answer Populist Good Answer Announcer Popular Question Popular Question Notable Question Notable Question Necromancer Good Answer Popular Question Popular Question Necromancer Famous Question Popular Question Yearling Notable Question Popular Question Nice Answer Necromancer Necromancer Nice Answer Nice Question Good Question Popular Question Revival Announcer Popular Question c# Good Question Popular Question Famous Question Nice Question Stellar Question Necromancer Notable Question Popular Question Announcer Good Question Yearling Famous Question Nice Question Revival Notable Question Announcer Necromancer Revival Notable Question Necromancer Popular Question,NULL,Check synchronously if file directory exists in Node js node js pHow can synchronously check using strongnode js strong if file or directory exists Synchronous operations are great for performing one time file directory operations before returning module For example bootstrapping configuration file pYou can use href http php net reset rel noreferrer codereset code and href http php net key rel noreferrer codekey code ppre codereset array first key key array code prepIt essentially the same as your initial code but with little less overhead and it more obvious what is happening ppJust remember to call codereset code or you may get any of the keys in the array You can also use href http php net end rel noreferrer codeend code instead of codereset code to get the last key ppIf you wanted the key to get the first value codereset code actually returns it ppre code first value reset array code prepThere is one special case to watch out for though so check the length of the array first ppre code arr1 array false arr2 array var dump reset arr1 reset arr2 bool true code pre Does reset mutate the source array as well,0,NULL,NULL 32023,767215,1176271,NULL,NULL,NULL,0,NULL,NULL 32024,203315,1008433,NULL,NULL,NULL,0,NULL,NULL 32025,103287,822296,NULL,NULL,NULL,0,NULL,NULL 32026,63934,949,Custodian Yearling Nice Answer Caucus Constituent Proofreader Census Mortarboard Great Answer Caucus Yearling Yearling Taxonomist,NULL,NULL,0,NULL,NULL 32027,318548,612325,NULL,NULL,NULL,0,NULL,NULL 32028,210749,924222,NULL,NULL,NULL,0,NULL,NULL 32029,888127,416678,NULL,NULL,NULL,0,NULL,NULL 32030,44633,514099,NULL,NULL,NULL,0,NULL,NULL 32031,1115406,2170,Nice Answer Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 32032,384885,62821,Yearling Nice Question Custodian Yearling Notable Question Documentation User Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32033,156863,665826,Yearling Good Answer Yearling Civic Duty Great Answer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 32034,1211515,889238,NULL,NULL,NULL,0,NULL,NULL 32035,73252,713457,NULL,NULL,NULL,0,NULL,NULL 32036,4280,1556078,NULL,NULL,NULL,0,NULL,NULL 32037,434391,1003469,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 32038,213906,85521,Popular Question,NULL,NULL,0,NULL,NULL 32039,175611,1225170,NULL,NULL,NULL,0,NULL,NULL 32040,928447,469355,NULL,NULL,NULL,0,NULL,NULL 32041,134676,843837,NULL,NULL,NULL,0,NULL,NULL 32042,378997,1260312,NULL,NULL,NULL,0,NULL,NULL 32043,145492,467455,Notable Question Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 32044,378537,1144587,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32045,10153,904228,Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 32046,138924,671975,NULL,NULL,NULL,0,NULL,NULL 32047,181079,323556,NULL,NULL,NULL,0,NULL,NULL 32048,74511,920801,NULL,NULL,NULL,0,NULL,NULL 32049,35296,277156,Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Notable Question xlib Nice Answer Enlightened Nice Answer Enlightened Good Question Yearling Nice Answer Enlightened Popular Question Announcer Nice Answer Famous Question Yearling Custodian Good Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32050,541584,702532,NULL,NULL,NULL,0,NULL,NULL 32051,1040857,484671,NULL,NULL,NULL,0,NULL,NULL 32052,354394,1148282,NULL,NULL,NULL,0,NULL,NULL 32053,81946,1275428,NULL,NULL,NULL,0,NULL,NULL 32054,562687,7961,Notable Question Good Question Notable Question Notable Question Yearling Good Question Popular Question Great Question Famous Question Yearling Popular Question Great Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 32055,2512609,1269263,NULL,NULL,NULL,0,NULL,NULL 32056,14021,596939,NULL,NULL,NULL,0,NULL,NULL 32057,6307,528840,NULL,NULL,NULL,0,NULL,NULL 32058,100858,639829,Custodian Yearling Notable Question Notable Question Nice Answer Popular Question Popular Question Yearling Necromancer Inquisitive Custodian Notable Question Popular Question Documentation User Census Yearling Caucus Revival,NULL,NULL,0,NULL,NULL 32059,365892,1054485,NULL,NULL,NULL,0,NULL,NULL 32060,368906,478238,NULL,NULL,NULL,0,NULL,NULL 32061,1296116,209774,NULL,NULL,NULL,0,NULL,NULL 32062,301086,485601,NULL,NULL,NULL,0,NULL,NULL 32063,155038,1093318,NULL,NULL,NULL,0,NULL,NULL 32064,811479,1299682,NULL,NULL,NULL,0,NULL,NULL 32065,54997,543034,NULL,NULL,NULL,0,NULL,NULL 32066,399434,178376,Yearling,NULL,NULL,0,NULL,NULL 32067,471497,942796,NULL,NULL,NULL,0,NULL,NULL 32068,460954,304954,Nice Answer,NULL,NULL,0,NULL,NULL 32069,367494,464042,Nice Answer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 32070,90473,194864,NULL,NULL,NULL,0,NULL,NULL 32071,543231,716521,NULL,NULL,NULL,0,NULL,NULL 32072,142166,903363,NULL,NULL,NULL,0,NULL,NULL 32073,655001,1035824,Good Question Necromancer Critic Yearling Peer Pressure Famous Question Revival Favorite Question Nice Answer Famous Question Necromancer Yearling Nice Question Good Answer Popular Question Popular Question Popular Question Revival Nice Question Notable Question Excavator Tumbleweed Popular Question Good Answer Necromancer Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,1,Vue js if for attributes javascript vue js pLet say have this code ppre codetable my attr value complex component Jade code prepand would like render that codemy attr code base on property delivered into component Since if works on whole element cannot do something like ppre codetable my attr value if myProp table else code prepbecause would have to duplicate all the code inside table ppHow can achieve that,NULL 32074,282155,876786,Self-Learner Excavator Famous Question Commentator Notable Question Revival,NULL,pHow about using Python codedistutils version StrictVersion code ppre code gt gt gt from distutils version import StrictVersion gt gt gt StrictVersion 10 10 gt StrictVersion 10 True code prepSo for your codecmp code function ppre code gt gt gt cmp lambda StrictVersion cmp gt gt gt cmp 10 10 10 11 code prepIf you want to compare version numbers that are more complex codedistutils version LooseVersion code will be more useful however be sure to only compare the same types ppre code gt gt gt from distutils version import LooseVersion StrictVersion gt gt gt LooseVersion 4c3 gt LooseVersion True gt gt gt LooseVersion 4c3 gt StrictVersion different typesFalse code prep codeLooseVersion code isn the most intelligent tool and can easily be tricked ppre code gt gt gt LooseVersion gt LooseVersion rc1 False code prepTo have success with this breed you ll need to step outside the standard library and use href http packages python org distribute distribute parsing utility href http packages python org distribute pkg resources html parsing utilities codeparse version code ppre code gt gt gt from pkg resources import parse version gt gt gt parse version gt parse version rc2 True code prepSo depending on your specific use case you ll need to decide whether the builtin codedistutils code tools are enough or if it warranted to add as dependency codedistribute code All variants fail with the xorg server versioning 19 13 gd0d1a694f 19,0,NULL,NULL 32075,450734,1531135,NULL,NULL,NULL,0,NULL,NULL 32076,86431,1446643,NULL,NULL,NULL,0,NULL,NULL 32077,430969,908704,NULL,NULL,NULL,0,NULL,NULL 32078,22039,226549,NULL,NULL,NULL,0,NULL,NULL 32079,104309,1163891,Notable Question Popular Question Informed Tag Editor Caucus Citizen Patrol Yearling Suffrage,NULL,NULL,0,NULL,NULL 32080,180995,929701,Popular Question Notable Question Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Famous Question Notable Question Nice Question Famous Question Popular Question Famous Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Favorite Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Custodian Nice Question Caucus Good Question Famous Question Famous Question Necromancer Good Answer Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 32081,1159590,1564796,NULL,NULL,NULL,0,NULL,NULL 32082,1002851,17977,Yearling,NULL,NULL,0,NULL,NULL 32083,139535,1363231,Yearling Autobiographer Revival Populist Custodian Good Answer Necromancer Necromancer Yearling Critic Revival Commentator Yearling Revival Necromancer Documentation User Revival Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 32084,1177811,1299540,NULL,NULL,NULL,0,NULL,NULL 32085,200458,516638,NULL,NULL,NULL,0,NULL,NULL 32086,272798,285571,Announcer Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 32087,133633,625563,NULL,NULL,NULL,0,NULL,NULL 32088,13103,107073,Necromancer Necromancer Yearling Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 32089,65471,199315,Yearling,NULL,NULL,0,NULL,NULL 32090,110859,67476,Famous Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Good Question Popular Question Famous Question Notable Question Popular Question Famous Question Yearling Famous Question Popular Question Popular Question Notable Question Famous Question Great Question Good Question Popular Question Yearling Nice Question Notable Question Famous Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 32091,1351669,1275035,Scholar Editor Tumbleweed,NULL,NULL,0,NULL,NULL 32092,291919,346975,Popular Question,NULL,NULL,0,NULL,NULL 32093,238777,1516275,NULL,NULL,NULL,0,NULL,NULL 32094,165422,1367979,NULL,NULL,NULL,0,NULL,NULL 32095,61907,476759,Yearling Yearling Yearling Organizer Tag Editor Yearling,NULL,NULL,0,NULL,NULL 32096,173564,212559,Favorite Question Popular Question Popular Question Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 32097,35668,1225939,NULL,NULL,NULL,0,NULL,NULL 32098,190319,254119,Self-Learner Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 32099,32734,631575,NULL,NULL,NULL,0,NULL,NULL 32100,79065,978993,NULL,NULL,NULL,0,NULL,NULL 32101,1505416,703064,NULL,NULL,NULL,0,NULL,NULL 32102,271509,571471,Scholar Supporter Famous Question,NULL,NULL,0,NULL,NULL 32103,328353,1217633,Popular Question,NULL,NULL,0,NULL,NULL 32104,1897755,1217633,Popular Question,NULL,NULL,0,NULL,NULL 32105,472672,1148689,NULL,NULL,NULL,0,NULL,NULL 32106,169666,974669,NULL,NULL,NULL,0,NULL,NULL 32107,12589,48740,Yearling Nice Question Caucus Constituent Yearling Caucus Constituent Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 32108,122024,638990,Popular Question Self-Learner Popular Question Citizen Patrol Necromancer Nice Answer Revival Popular Question Yearling Famous Question Custodian Custodian Popular Question Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 32109,1282114,809671,Yearling Popular Question Great Answer Necromancer Yearling Caucus Enthusiast Caucus Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 32110,1273715,872921,Tumbleweed,NULL,NULL,0,NULL,NULL 32111,32676,719845,NULL,NULL,NULL,0,NULL,NULL 32112,334634,1001988,NULL,NULL,NULL,0,NULL,NULL 32113,104549,965596,NULL,NULL,NULL,0,NULL,NULL 32114,163597,775429,NULL,NULL,NULL,0,NULL,NULL 32115,1211500,1142269,NULL,NULL,NULL,0,NULL,NULL 32116,142759,18721,Yearling Peer Pressure Yearling Yearling,NULL,NULL,0,NULL,NULL 32117,68054,794732,NULL,NULL,NULL,0,NULL,NULL 32118,32474,924140,Yearling,NULL,NULL,0,NULL,NULL 32119,1124432,1354355,NULL,NULL,NULL,0,NULL,NULL 32120,177602,1287697,NULL,NULL,NULL,0,NULL,NULL 32121,76359,1021238,NULL,NULL,NULL,0,NULL,NULL 32122,889539,476387,NULL,NULL,NULL,0,NULL,NULL 32123,804522,1445155,NULL,NULL,NULL,0,NULL,NULL 32124,420342,832720,NULL,NULL,NULL,0,NULL,NULL 32125,36737,1484318,NULL,NULL,NULL,0,NULL,NULL 32126,60476,261965,Editor Supporter,NULL,NULL,0,NULL,NULL 32127,1108337,1474587,NULL,NULL,NULL,0,NULL,NULL 32128,615980,507487,NULL,NULL,NULL,0,NULL,NULL 32129,12407,4353,Enlightened Guru Custodian Yearling Great Answer Nice Answer Announcer Good Answer Yearling Great Answer Nice Answer Documentation User Custodian Nice Answer Great Answer Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 32130,448581,325115,Informed,NULL,NULL,0,NULL,NULL 32131,1335273,294430,Yearling Commentator Scholar Critic,NULL,NULL,0,NULL,NULL 32132,902017,286647,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 32133,5583913,770327,NULL,NULL,NULL,0,NULL,NULL 32134,246159,1293612,NULL,NULL,NULL,0,NULL,NULL 32135,96016,491845,Nice Answer Nice Answer Good Answer Good Answer Yearling Caucus Constituent Nice Answer Enlightened Guru Documentation User socket.io Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened jquery Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32136,50401,227994,Popular Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32137,915940,720827,Nice Answer,NULL,NULL,0,NULL,NULL 32138,190990,1142632,NULL,NULL,NULL,0,NULL,NULL 32139,232859,710735,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 32140,37155,461445,NULL,NULL,NULL,0,NULL,NULL 32141,1242164,726667,Nice Question Citizen Patrol Custodian Necromancer Yearling Caucus Notable Question Caucus Revival Tenacious Caucus Yearling,NULL,NULL,0,NULL,NULL 32142,649322,898378,Custodian Nice Question Nice Question Revival Popular Question Notable Question Revival Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Yearling Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32143,13511,83558,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 32144,60628,83558,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 32145,113022,877868,NULL,NULL,NULL,0,NULL,NULL 32146,138261,1329642,Teacher Editor Supporter Autobiographer Cleanup Custodian,NULL,NULL,0,NULL,NULL 32147,1129639,1142128,NULL,NULL,NULL,0,NULL,NULL 32148,323949,1363661,NULL,NULL,NULL,0,NULL,NULL 32149,176728,1221033,NULL,NULL,NULL,0,NULL,NULL 32150,142480,1120416,NULL,NULL,NULL,0,NULL,NULL 32151,547138,302199,Popular Question Popular Question Notable Question Caucus Popular Question Yearling Popular Question Notable Question Good Question Nice Question Caucus Famous Question Caucus Good Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 32152,202728,744492,NULL,NULL,NULL,0,NULL,NULL 32153,4563,616365,NULL,NULL,NULL,0,NULL,NULL 32154,23421,1454025,NULL,NULL,NULL,0,NULL,NULL 32155,117180,725867,NULL,NULL,NULL,0,NULL,NULL 32156,489657,707967,NULL,NULL,NULL,0,NULL,NULL 32157,141086,1133704,NULL,NULL,NULL,0,NULL,NULL 32158,117177,524711,Critic Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 32159,248110,535989,NULL,NULL,NULL,0,NULL,NULL 32160,2889228,650983,NULL,NULL,NULL,0,NULL,NULL 32161,99899,781727,Commentator Student,NULL,NULL,0,NULL,NULL 32162,263436,189594,Notable Question,NULL,NULL,0,NULL,NULL 32163,250800,544419,Announcer,NULL,NULL,0,NULL,NULL 32164,278858,445236,NULL,NULL,NULL,0,NULL,NULL 32165,6038,592114,NULL,NULL,NULL,0,NULL,NULL 32166,553941,1049235,Enthusiast,NULL,NULL,0,NULL,NULL 32167,428171,604171,NULL,NULL,NULL,0,NULL,NULL 32168,560522,1189127,NULL,NULL,NULL,0,NULL,NULL 32169,68585,394868,Popular Question Self-Learner Necromancer Popular Question Good Question Popular Question Nice Answer Enlightened Notable Question Yearling Popular Question Nice Answer Enlightened Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Nice Answer Enlightened Notable Question Nice Question Notable Question Popular Question Nice Answer Enlightened Favorite Question Notable Question Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Popular Question Good Question Caucus Popular Question Favorite Question Popular Question Popular Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 32170,5702,939561,NULL,NULL,NULL,0,NULL,NULL 32171,896385,1206071,Popular Question,NULL,NULL,0,NULL,NULL 32172,192597,1058921,Popular Question Student,NULL,NULL,0,NULL,NULL 32173,5499345,371611,NULL,NULL,NULL,0,NULL,NULL 32174,107403,371611,NULL,NULL,NULL,0,NULL,NULL 32175,118299,1240316,NULL,NULL,NULL,0,NULL,NULL 32176,210274,196898,Nice Answer Popular Question Popular Question Popular Question Yearling Necromancer Census Notable Question Necromancer Yearling Nice Answer Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 32177,157008,851861,Popular Question,NULL,NULL,0,NULL,NULL 32178,773373,197255,Popular Question Popular Question Caucus Popular Question Popular Question Famous Question Census Caucus Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 32179,718430,577002,Yearling Nice Answer Yearling Notable Question Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 32180,106213,782136,NULL,NULL,NULL,0,NULL,NULL 32181,503956,531966,Nice Answer Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 32182,185012,477610,Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 32183,1347359,900555,Nice Answer,NULL,NULL,0,NULL,NULL 32184,69782,917078,NULL,NULL,NULL,0,NULL,NULL 32185,3297702,864015,Supporter Informed Scholar Editor Critic Yearling Nice Answer Caucus Yearling Commentator Necromancer,NULL,NULL,0,NULL,NULL 32186,201418,864015,Supporter Informed Scholar Editor Critic Yearling Nice Answer Caucus Yearling Commentator Necromancer,NULL,NULL,0,NULL,NULL 32187,355591,1256102,Teacher,NULL,NULL,0,NULL,NULL 32188,36780,1015100,NULL,NULL,NULL,0,NULL,NULL 32189,1114242,120191,Yearling Custodian Tumbleweed Promoter Critic Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 32190,412641,169035,Teacher,NULL,NULL,0,NULL,NULL 32191,2891424,1537436,NULL,NULL,NULL,0,NULL,NULL 32192,18839,1135870,NULL,NULL,NULL,0,NULL,NULL 32193,76561,637698,NULL,NULL,NULL,0,NULL,NULL 32194,554570,300113,NULL,NULL,NULL,0,NULL,NULL 32195,1118973,889189,NULL,NULL,NULL,0,NULL,NULL 32196,327753,214325,Notable Question Famous Question Civic Duty Necromancer Yearling Nice Answer Nice Question Notable Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,1,What is the modern equivalent of Ruby’s deprecated Date day fraction to time ruby ulliruby 3p222 2016 11 21 revision 56859 x86 64 darwin16 li ulpTrying to run href http www techotopia com index php Working with Dates and Times in Ruby Calculating the Difference Between Dates rel nofollow noreferrer this example modified to debug using codeputs code and use an upcoming birthday date ppre code http www techotopia com index php Working with Dates and Times in Ruby Calculating the Difference Between Datesrequire date today DateTime now gt lt DateTime 441799066630193 180000000 301 1440 2299161 gt puts Today today to birthday Date new 2008 10 birthday Date new 2017 11 gt lt Date 4909133 2299161 gt puts Birthday birthday to days to go birthday today puts days to gotime until birthday today gt Rational 22903369807 180000000 puts Time Until time until to stime until to get the number of days until my birthday gt 127puts Time Until integer time until to to shours minutes seconds frac Date day fraction to time time until 3053 46 57 Rational 1057 180000000 puts It is my birthday in hours hours minutes minutes and seconds seconds not that am counting It is my birthday in 3053 hours 46 minutes and 57 seconds not that am counting code prepBut when try to run it it breaks at codeday fration to time code because that method is href https apidock com ruby Date day fraction to time class rel nofollow noreferrer deprecated ppre code ruby birthday rbToday 2017 10 12T15 46 15 04 00Birthday 2017 11 08Time Until 150774970751 5760000000Time Until integer 26birthday rb 24 in lt main gt undefined method day fraction to time for Date Class NoMethodError code prepI see there is another method called href https apidock com ruby v1 392 Date day fraction rel nofollow noreferrer codeday fraction code but I’m not sure how if to use it to achieve the same result as before,NULL 32197,1448385,1443466,Popular Question,NULL,NULL,0,NULL,NULL 32198,34385,1103760,Necromancer Yearling Suffrage Custodian,NULL,Use isystem instead of with CMake gcc build cmake pIs there any way in CMake to force path specified via include directories or perhaps through different function to use the isystem flag instead of the flag when building with gcc ppSee href http gcc gnu org onlinedocs gcc Directory Options html Directory Options rel noreferrer http gcc gnu org onlinedocs gcc Directory Options html Directory Options for details on and isystem Hi here from years in the future The use of isystem by cmake has now strangely enough with the addition of include next broken good number of builds especially cross builds,0,NULL,NULL 32199,499806,914467,Popular Question,NULL,NULL,0,NULL,NULL 32200,194144,1484256,NULL,NULL,NULL,0,NULL,NULL 32201,607443,523866,Nice Question Notable Question Announcer Famous Question Yearling Revival Nice Question Good Answer,NULL,NULL,0,NULL,NULL 32202,274675,1102509,Editor,NULL,NULL,0,NULL,NULL 32203,211514,1545911,NULL,NULL,NULL,0,NULL,NULL 32204,986660,1332168,NULL,NULL,NULL,0,NULL,NULL 32205,1213115,719362,NULL,NULL,NULL,0,NULL,NULL 32206,74782,346529,NULL,NULL,NULL,0,NULL,NULL 32207,1554892,1078628,Student Cleanup Enthusiast Scholar,NULL,NULL,0,NULL,NULL 32208,73029,567864,Yearling Guru Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Guru Generalist Announcer Caucus Nice Answer Great Answer Yearling Good Answer Great Answer Good Answer Good Answer Nice Answer Great Answer Announcer,NULL,NULL,0,NULL,NULL 32209,78926,886296,Popular Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 32210,2309535,618360,Critic Scholar Custodian Student Yearling Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 32211,309594,618360,Critic Scholar Custodian Student Yearling Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 32212,1245574,138988,Popular Question,NULL,NULL,0,NULL,NULL 32213,72325,796554,Self-Learner Popular Question Notable Question Necromancer Yearling Nice Question Nice Answer Nice Question Pundit Caucus Nice Answer Notable Question Nice Question Notable Question Yearling Necromancer Popular Question Custodian Good Answer Good Question Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 32214,229639,1222288,Self-Learner Popular Question Scholar Yearling Commentator Notable Question,NULL,NULL,0,NULL,NULL 32215,67864,985958,Yearling Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 32216,770473,918601,NULL,NULL,NULL,0,NULL,NULL 32217,372908,148630,Nice Answer Enlightened Commentator,NULL,NULL,0,NULL,NULL 32218,53414,202835,Editor,NULL,NULL,0,NULL,NULL 32219,2653042,1045537,Notable Question Popular Question Yearling Popular Question Caucus Constituent Custodian Editor Notable Question Popular Question Promoter Benefactor Caucus Good Answer Custodian Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 32220,322771,902838,NULL,NULL,NULL,0,NULL,NULL 32221,124697,929109,Enthusiast Teacher Editor Necromancer Nice Answer Yearling Commentator,NULL,NULL,0,NULL,NULL 32222,260064,1314634,NULL,NULL,NULL,0,NULL,NULL 32223,45215,1345948,NULL,NULL,NULL,0,NULL,NULL 32224,309099,71591,Yearling Nice Answer Enlightened Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32225,1936205,1166581,Yearling,NULL,NULL,0,NULL,NULL 32226,125274,708385,Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 32227,206710,332260,Famous Question,NULL,NULL,0,NULL,NULL 32228,165500,1266562,NULL,NULL,NULL,0,NULL,NULL 32229,393130,251080,NULL,NULL,NULL,0,NULL,NULL 32230,372833,606231,NULL,NULL,NULL,0,NULL,NULL 32231,2822,178716,NULL,NULL,NULL,0,NULL,NULL 32232,124139,96301,Suffrage Census,NULL,NULL,0,NULL,NULL 32233,333385,107510,Good Answer Yearling Necromancer Necromancer Nice Answer Nice Answer Notable Question Good Question Notable Question Necromancer Popular Question jquery Necromancer Yearling Revival Nice Answer Enlightened Necromancer Caucus Popular Question Necromancer Good Answer Populist Yearling Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 32234,119628,45698,Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Nice Question Famous Question Popular Question Nice Question Favorite Question Popular Question Great Question Famous Question Popular Question Notable Question Good Question Yearling Popular Question Guru Nice Question Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 32235,1011003,697884,Yearling Popular Question Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Custodian Proofreader Explainer Curious Nice Answer Enlightened Reviewer Custodian Custodian Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 32236,218454,1398555,NULL,NULL,NULL,0,NULL,NULL 32237,703080,1313550,NULL,NULL,NULL,0,NULL,NULL 32238,163556,1470937,Yearling,NULL,NULL,0,NULL,NULL 32239,241723,416267,NULL,NULL,NULL,0,NULL,NULL 32240,463986,667390,Famous Question Notable Question Caucus Popular Question Popular Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 32241,120895,1542649,Revival,NULL,NULL,0,NULL,NULL 32242,50411,633014,NULL,NULL,NULL,0,NULL,NULL 32243,35953,529418,NULL,NULL,NULL,0,NULL,NULL 32244,172706,839009,NULL,NULL,NULL,0,NULL,NULL 32245,2334194,848755,Popular Question Investor Autobiographer Informed Commentator Notable Question,NULL,NULL,0,NULL,NULL 32246,67647,920436,NULL,NULL,NULL,0,NULL,NULL 32247,253041,686887,NULL,NULL,NULL,0,NULL,NULL 32248,1224439,836307,NULL,NULL,NULL,0,NULL,NULL 32249,158874,97980,NULL,NULL,NULL,0,NULL,NULL 32250,88377,1048896,Teacher Revival Necromancer Editor Supporter Enthusiast Necromancer Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 32251,78432,1295697,NULL,NULL,NULL,0,NULL,NULL 32252,110945,1279503,Teacher,NULL,NULL,0,NULL,NULL 32253,1063347,1043951,NULL,NULL,NULL,0,NULL,NULL 32254,617460,246041,Yearling Great Answer Good Answer Notable Question Popular Question Nice Answer Guru Nice Answer Enlightened Nice Answer Custodian Caucus Good Answer Yearling Popular Question Famous Question Good Answer Yearling Great Answer Good Answer ios,NULL,NULL,0,NULL,NULL 32255,6797,319031,NULL,NULL,NULL,0,NULL,NULL 32256,6230988,319031,NULL,NULL,NULL,0,NULL,NULL 32257,196856,48025,Notable Question Tenacious Popular Question Yearling Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 32258,48362,205785,Popular Question Caucus Good Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 32259,510462,552443,Revival Notable Question,NULL,NULL,0,NULL,NULL 32260,103807,396682,Notable Question Curious Yearling Popular Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 32261,432208,1165018,NULL,NULL,NULL,0,NULL,NULL 32262,18426,335995,Supporter,NULL,NULL,0,NULL,NULL 32263,171954,1170457,NULL,NULL,NULL,0,NULL,NULL 32264,236508,948055,NULL,NULL,NULL,0,NULL,NULL 32265,19599,1179468,NULL,NULL,NULL,0,NULL,NULL 32266,234618,1182008,NULL,NULL,NULL,0,NULL,NULL 32267,258968,1099096,NULL,NULL,NULL,0,NULL,NULL 32268,1566658,851103,NULL,NULL,NULL,0,NULL,NULL 32269,1717,84346,Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32270,1037113,311975,NULL,NULL,NULL,0,NULL,NULL 32271,76307,884141,NULL,NULL,NULL,0,NULL,NULL 32272,232317,1373282,Yearling Nice Answer Enlightened Caucus Critic,NULL,NULL,0,NULL,NULL 32273,311359,804672,Popular Question,NULL,NULL,0,NULL,NULL 32274,1632615,1244649,Yearling Necromancer Nice Answer Nice Answer Revival Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 32275,463206,1111620,NULL,NULL,NULL,0,NULL,NULL 32276,1289312,1048775,NULL,NULL,NULL,0,NULL,NULL 32277,173962,544138,NULL,NULL,NULL,0,NULL,NULL 32278,31261,56640,Popular Question Commentator Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32279,218307,363863,NULL,NULL,NULL,0,NULL,NULL 32280,1148051,1163023,NULL,NULL,NULL,0,NULL,NULL 32281,264444,569135,NULL,NULL,NULL,0,NULL,NULL 32282,312667,116183,Notable Question Yearling Popular Question Self-Learner Documentation User Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 32283,155075,358088,Tumbleweed,NULL,NULL,0,NULL,NULL 32284,400086,564055,Yearling Nice Question Popular Question Famous Question Popular Question Yearling Good Question Nice Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32285,3976248,564055,Yearling Nice Question Popular Question Famous Question Popular Question Yearling Good Question Nice Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32286,316449,1162294,NULL,NULL,NULL,0,NULL,NULL 32287,280462,824378,NULL,NULL,NULL,0,NULL,NULL 32288,397083,1105159,Yearling Popular Question Yearling Citizen Patrol Custodian Notable Question Notable Question Popular Question Popular Question Yearling Great Question Self-Learner Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32289,8618154,738233,NULL,NULL,NULL,0,NULL,NULL 32290,162148,288588,NULL,NULL,NULL,0,NULL,NULL 32291,957402,795894,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32292,6938458,281334,Critic,NULL,NULL,0,NULL,NULL 32293,25687,1339166,NULL,NULL,NULL,0,NULL,NULL 32294,18082,152588,Yearling Popular Question Good Question Notable Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 32295,1382754,237107,Notable Question Notable Question Notable Question Popular Question Notable Question Self-Learner Famous Question Notable Question Caucus Nice Question Yearling Nice Question Popular Question Good Question Yearling Caucus Constituent Popular Question Nice Question Famous Question Nice Answer Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 32296,1330242,20434,NULL,NULL,NULL,0,NULL,NULL 32297,131367,258684,Popular Question Supporter,NULL,NULL,0,NULL,NULL 32298,182834,1077086,NULL,NULL,NULL,0,NULL,NULL 32299,4981982,364772,Popular Question Commentator Teacher Yearling Critic Yearling Citizen Patrol Enthusiast Explainer Custodian Custodian Yearling Necromancer Yearling Notable Question Yearling Autobiographer Nice Answer Yearling Revival Good Answer Yearling Popular Question tensorflow Nice Question Guru Nice Answer Necromancer Nice Answer Notable Question python Famous Question Good Answer Nice Answer Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Revival Good Answer Popular Question Good Question Popular Question Revival Famous Question Great Answer Yearling Favorite Question Great Answer Notable Question Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 32300,427411,1373833,NULL,NULL,NULL,0,NULL,NULL 32301,227347,912865,NULL,NULL,NULL,0,NULL,NULL 32302,63923,66323,NULL,NULL,NULL,0,NULL,NULL 32303,35573,495999,Civic Duty Yearling Necromancer,NULL,NULL,0,NULL,NULL 32304,155471,347765,Teacher,NULL,NULL,0,NULL,NULL 32305,89747,1185944,NULL,NULL,NULL,0,NULL,NULL 32306,7862,414122,Famous Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32307,44923,174601,NULL,NULL,NULL,0,NULL,NULL 32308,480927,1536807,NULL,NULL,NULL,0,NULL,NULL 32309,83668,555,Famous Question Yearling Yearling core-data Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 32310,148050,704197,NULL,NULL,NULL,0,NULL,NULL 32311,14827,620362,Necromancer Critic Yearling Necromancer Nice Answer Yearling Nice Answer Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 32312,42743,400699,Critic Notable Question Editor,NULL,NULL,0,NULL,NULL 32313,391560,970015,NULL,NULL,NULL,0,NULL,NULL 32314,135991,297775,Teacher Yearling Necromancer Curious Popular Question,NULL,NULL,0,NULL,NULL 32315,1023950,1349041,NULL,NULL,NULL,0,NULL,NULL 32316,309584,420259,Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Good Answer Popular Question Popular Question Popular Question Notable Question Good Question Yearling Famous Question Popular Question Great Question Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 32317,250211,848036,NULL,NULL,NULL,0,NULL,NULL 32318,85771,937283,NULL,NULL,NULL,0,NULL,NULL 32319,19512,825779,NULL,NULL,NULL,0,NULL,NULL 32320,50410,1307801,NULL,NULL,NULL,0,NULL,NULL 32321,910667,1184351,NULL,NULL,NULL,0,NULL,NULL 32322,1333196,1282982,Notable Question Popular Question Popular Question Notable Question Announcer Yearling Nice Question Famous Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32323,203475,375230,Yearling Yearling Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32324,177814,831036,Yearling,NULL,NULL,0,NULL,NULL 32325,181114,1523829,NULL,NULL,NULL,0,NULL,NULL 32326,1328185,738430,NULL,NULL,NULL,0,NULL,NULL 32327,409806,1310051,Popular Question Notable Question Necromancer Nice Answer Yearling Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32328,1166462,1284833,NULL,NULL,NULL,0,NULL,NULL 32329,84291,143466,Self-Learner Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 32330,540,553964,Teacher Revival,NULL,NULL,0,NULL,NULL 32331,115960,152809,Civic Duty Nice Question Famous Question Announcer Necromancer Yearling Necromancer Nice Answer Caucus Popular Question Caucus Pundit Yearling Good Answer Good Answer Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 32332,73107,795899,NULL,NULL,NULL,0,NULL,NULL 32333,154191,825453,NULL,NULL,NULL,0,NULL,NULL 32334,1030962,825453,NULL,NULL,NULL,0,NULL,NULL 32335,83783,276959,Nice Answer Famous Question Popular Question Popular Question Popular Question Necromancer Necromancer Popular Question Strunk & White ruby-on-rails activerecord Popular Question Yearling Popular Question Notable Question Revival Nice Answer Guru Notable Question Popular Question Popular Question Nice Question Famous Question Good Question Famous Question Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Question Notable Question Notable Question Nice Question Notable Question Popular Question Necromancer Popular Question Caucus Popular Question Notable Question Great Answer Nice Answer Notable Question Famous Question Notable Question Famous Question Nice Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Famous Question Great Answer Great Answer Famous Question Nice Question Notable Question Necromancer Caucus Notable Question Constituent Famous Question Good Answer Popular Question Famous Question Notable Question Revival Notable Question Popular Question Notable Question Pundit Yearling Nice Answer Caucus ruby-on-rails-4 Famous Question Constituent Famous Question Famous Question Nice Question Popular Question Good Question Popular Question Great Answer Notable Question Popular Question Announcer Popular Question Nice Answer Good Question Revival,NULL,NULL,1,NULL,How to update status value in table on each button click ruby on rails ruby on rails activerecord pI want to update the codestatus code value in the codeproperties code table as or or or when click on each button ppThese are my buttons in my view file ppre code lt td gt lt link to Waiting for Response rms property approve property path property status gt Waiting for Response method patch class btn btn success data no turbolink gt true gt lt td gt lt td gt lt link to No Response rms property approve property path property status gt No Response method patch class btn btn danger data no turbolink gt true gt lt td gt lt td gt lt link to Registered rms property approve property path property status gt Registered method patch class btn btn success data no turbolink gt true gt lt td gt lt td gt lt link to Not Interested rms property approve property path property status gt Not Interested method patch class btn btn danger data no turbolink gt true gt lt td gt code prepMy codeproperties controller rb code ppre code def approve Property find params property id if params status Registered update attributes status gt redirect to back flash notice Property has been Registered elsif params status Not Interested update attributes status gt redirect to back flash notice Not Interested elsif params status Waiting for Response update attributes status gt redirect to back flash notice Waiting for Response elsif params status No Response update attributes status gt redirect to back flash notice No Response end end code prepMy migration file for status column in codeproperties code table ppre codeclass AddColumnStatusInProperties lt ActiveRecord Migration def change add column properties status string endend code prepWhen click on the codeNo response code button get an ArgumentError ppre code is not valid status code prep href https stack imgur com ptnps png rel nofollow noreferrer img src https stack imgur com ptnps png alt enter image description here pJudging by the error message it seems that you are using an href http edgeapi rubyonrails org classes ActiveRecord Enum html rel nofollow codeenum code on the codestatus code column You can use strongraw values strong the integer part of the enum value with enums unless you skip object instantiation using href http apidock com rails v4 ActiveRecord Relation update all rel nofollow codeupdate all code or href http apidock com rails ActiveRecord Persistence update columns rel nofollow codeupdate columns code for example ppIf you instantiate the object you must use the enum value value is code registered code while raw value is code1 code ppIn codeapprove code you need to update the object as such ppre code registered should be the enum value not the number update attributes status registered code prepAnd not ppre code update attributes status code prepThis assumes you have declared your enum as such ppre codeclass Property lt ActiveRecord Base enum status registered not interested waiting for response consider renaming to awaiting response registered end code prepYou should change the column type in the migration to codeinteger code Using string can lead to strange bugs ppre coderails migration change status column type in propertiesclass ChangeStatusColumnTypeInProperties lt ActiveRecord Migration def change change column properties status integer endend code prepYou can also automate the link generation in your view ppre code lt Property statuses each key do name gt lt link to name rms property approve property path property status name method patch class btn btn danger data no turbolink gt true gt lt end gt code prepAnd simplify the controller code ppre codedef approve Property find params property id update status params status redirect to back notice params status end code prepAnd add the flash messages to your locale file For example ppre codeen rms properties approve registered Property registered waiting for response code prepFinally consider using default value to your column ppre codechange column properties status integer null false default code pre 32336,133380,1520825,Yearling Supporter Caucus Yearling,NULL,NULL,0,NULL,NULL 32337,524533,887501,Revival Famous Question Necromancer Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 32338,146539,1081422,NULL,NULL,NULL,0,NULL,NULL 32339,34509,818466,NULL,NULL,NULL,0,NULL,NULL 32340,1726815,873995,NULL,NULL,NULL,0,NULL,NULL 32341,594175,772497,NULL,NULL,NULL,0,NULL,NULL 32342,378453,508572,NULL,NULL,NULL,0,NULL,NULL 32343,118360,513785,NULL,NULL,NULL,0,NULL,NULL 32344,493211,1090725,Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 32345,502212,659446,Necromancer,NULL,NULL,0,NULL,NULL 32346,9022,495642,NULL,NULL,NULL,0,NULL,NULL 32347,82612,241959,Custodian Popular Question,NULL,NULL,0,NULL,NULL 32348,735747,510311,NULL,NULL,NULL,0,NULL,NULL 32349,112610,1343383,NULL,NULL,NULL,0,NULL,NULL 32350,33372,1196177,NULL,NULL,NULL,0,NULL,NULL 32351,176457,1010071,NULL,NULL,NULL,0,NULL,NULL 32352,133576,1194418,Scholar,NULL,NULL,0,NULL,NULL 32353,500849,1407104,NULL,NULL,NULL,0,NULL,NULL 32354,26820,958639,NULL,NULL,NULL,0,NULL,NULL 32355,98930,689474,NULL,NULL,NULL,0,NULL,NULL 32356,329971,1079763,NULL,NULL,NULL,0,NULL,NULL 32357,893351,245211,Notable Question Popular Question Popular Question Disciplined Notable Question,NULL,NULL,0,NULL,NULL 32358,165308,525346,Nice Question,NULL,,0,, 32359,481410,481373,NULL,NULL,NULL,0,NULL,NULL 32360,5716633,960479,Custodian Informed Autobiographer Teacher Popular Question Popular Question Tumbleweed Revival Notable Question Curious Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32361,48531,1122976,Popular Question Teacher Autobiographer Editor Commentator Notable Question Necromancer Enthusiast Critic Nice Answer,NULL,NULL,0,NULL,NULL 32362,1326783,243243,Self-Learner Nice Question Yearling,NULL,NULL,0,NULL,NULL 32363,342134,232518,Informed Editor Supporter Commentator Student Scholar Critic,NULL,Can construct bounding volume hierarchy efficiently using WebGL shaders algorithm glsl shader gpgpu webgl2 pIs it feasible to adapt the approach in href http devblogs nvidia com parallelforall wp content uploads 2012 11 karras2012hpg paper pdf rel nofollow noreferrer this paper from CUDA to WebGL shaders and still be efficient pulli Assign Morton code for each primitive according to its centroid ulliShould be easy as bitwise operations AND OR etc are available in WebGL shaders li ul lili Sort the Morton codes ulliDo you think bucket radix sort based on href http pubman mpdl mpg de pubman item escidoc 1819167 component escidoc 1840866 MPI 2006 002 pdf rel nofollow noreferrer Histopyramids would do the trick most significant bit first This would replace the parallel radix sort from the paper Are there are any other applicable sorting methods for WebGL Bitonic merge sort it seems more complicated to implement li ul lili Construct binary radix tree ulliWould the Histopyramid bucket radix sort in step be able to also implicitly construct the tree Or is another step required for traversal pointers children parent hit and miss pointers li ul lili Assign bounding box for each internal node ulliHaven thought too much about this one yet hope doing it bottom up with one shader invocation per level is fast enough li ul li ulpHas it been done before could not find it Any relevant links are appreciated The closest ve found is href http thomasdiewald com blog 1825 rel nofollow noreferrer Space Partitioning Kd tree Using WebGL It constructs the tree in JavaScript but it does show how to do stackless tree traversal in WebGL Shader If it turns out to be too difficult to construct BVH using shaders might get away with constructing it in JavaScript as the KD tree demo uses only 2ms on 4096 elements on my machine It would be cool to scale higher though ppMy goal is to do collision detection on the GPU for an RTS game scaling to as many units and projectiles as possible All elements are assumed to be spherical The BVH will be reconstructed real time each frame which leaves 16ms at 60FPS not accounting for other tasks There are three tasks can think of currently pulliUnit overlap dispersion liliTarget selection nearest neighbour as units with long attack range might have too many matches liliProjectile damage application li ulpPerhaps there are more clever tricks or simplifications than using BVH Suggestions welcome went with much simpler grid based collision approach since my units are basically staying mostly on 2D surface The code can be found at https github com emnh rts blob master src client game client engine2 physics cljs used https developer nvidia com gpugems GPUGems3 gpugems3 ch29 html for inspiration,1,Can construct bounding volume hierarchy efficiently using WebGL shaders algorithm glsl shader gpgpu webgl2 pIs it feasible to adapt the approach in href http devblogs nvidia com parallelforall wp content uploads 2012 11 karras2012hpg paper pdf rel nofollow noreferrer this paper from CUDA to WebGL shaders and still be efficient pulli Assign Morton code for each primitive according to its centroid ulliShould be easy as bitwise operations AND OR etc are available in WebGL shaders li ul lili Sort the Morton codes ulliDo you think bucket radix sort based on href http pubman mpdl mpg de pubman item escidoc 1819167 component escidoc 1840866 MPI 2006 002 pdf rel nofollow noreferrer Histopyramids would do the trick most significant bit first This would replace the parallel radix sort from the paper Are there are any other applicable sorting methods for WebGL Bitonic merge sort it seems more complicated to implement li ul lili Construct binary radix tree ulliWould the Histopyramid bucket radix sort in step be able to also implicitly construct the tree Or is another step required for traversal pointers children parent hit and miss pointers li ul lili Assign bounding box for each internal node ulliHaven thought too much about this one yet hope doing it bottom up with one shader invocation per level is fast enough li ul li ulpHas it been done before could not find it Any relevant links are appreciated The closest ve found is href http thomasdiewald com blog 1825 rel nofollow noreferrer Space Partitioning Kd tree Using WebGL It constructs the tree in JavaScript but it does show how to do stackless tree traversal in WebGL Shader If it turns out to be too difficult to construct BVH using shaders might get away with constructing it in JavaScript as the KD tree demo uses only 2ms on 4096 elements on my machine It would be cool to scale higher though ppMy goal is to do collision detection on the GPU for an RTS game scaling to as many units and projectiles as possible All elements are assumed to be spherical The BVH will be reconstructed real time each frame which leaves 16ms at 60FPS not accounting for other tasks There are three tasks can think of currently pulliUnit overlap dispersion liliTarget selection nearest neighbour as units with long attack range might have too many matches liliProjectile damage application li ulpPerhaps there are more clever tricks or simplifications than using BVH Suggestions welcome,NULL 32364,2484928,329738,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 32365,10869554,1359970,NULL,NULL,NULL,0,NULL,NULL 32366,430382,1359970,NULL,NULL,NULL,0,NULL,NULL 32367,186654,962580,NULL,NULL,NULL,0,NULL,NULL 32368,81096,480398,Popular Question Popular Question Good Answer Popular Question Yearling Famous Question Notable Question Yearling Good Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 32369,385172,1448537,Notable Question,NULL,NULL,0,NULL,NULL 32370,804,517701,NULL,NULL,NULL,0,NULL,NULL 32371,339168,529881,NULL,NULL,NULL,0,NULL,NULL 32372,390743,1405762,Popular Question Popular Question Promoter Commentator Nice Question Benefactor Enthusiast Curious Critic Notable Question,NULL,NULL,0,NULL,NULL 32373,291125,426925,NULL,NULL,NULL,0,NULL,NULL 32374,122384,5883,Notable Question Popular Question Yearling Good Answer Popular Question Good Answer Necromancer Populist Yearling Self-Learner Good Question Great Answer Yearling Popular Question Necromancer Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 32375,30890,100957,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Yearling Stellar Question Notable Question Nice Question Revival Popular Question Nice Question Nice Answer Great Answer Notable Question Nice Answer Caucus Constituent Good Answer Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Nice Question Good Answer Caucus Constituent Guru Enlightened Nice Answer Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Caucus Constituent Notable Question Notable Question Yearling Notable Question Nice Answer Enlightened Good Answer Good Question Popular Question,NULL,NULL,0,NULL,NULL 32376,290297,1067260,Revival Nice Answer Enlightened Custodian Civic Duty Popular Question Explainer Yearling Necromancer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 32377,95589,873792,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 32378,92220,423857,Teacher Notable Question,NULL,NULL,0,NULL,NULL 32379,106260,1089587,NULL,NULL,NULL,0,NULL,NULL 32380,728642,1078629,NULL,NULL,NULL,0,NULL,NULL 32381,2600538,827096,Good Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 32382,90784,1106791,NULL,NULL,NULL,0,NULL,NULL 32383,1070833,636276,Yearling Good Question Caucus Constituent Critic Popular Question,NULL,NULL,0,NULL,NULL 32384,422034,1162279,NULL,NULL,NULL,0,NULL,NULL 32385,515538,894520,Yearling Caucus Revival Revival Yearling Caucus Necromancer Announcer Revival Announcer,NULL,NULL,0,NULL,NULL 32386,730952,544554,NULL,NULL,NULL,0,NULL,NULL 32387,70638,722860,Notable Question,NULL,NULL,0,NULL,NULL 32388,273683,1391505,NULL,NULL,NULL,0,NULL,NULL 32389,258024,610273,Notable Question,NULL,NULL,0,NULL,NULL 32390,304763,465501,NULL,NULL,NULL,0,NULL,NULL 32391,210787,514915,Yearling,NULL,NULL,0,NULL,NULL 32392,619461,1346399,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 32393,64908,737916,NULL,NULL,NULL,0,NULL,NULL 32394,171496,1334579,NULL,NULL,NULL,0,NULL,NULL 32395,42454,383278,NULL,NULL,NULL,0,NULL,NULL 32396,484551,892842,NULL,NULL,NULL,0,NULL,NULL 32397,900079,607455,Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32398,103989,1350206,NULL,NULL,NULL,0,NULL,NULL 32399,462638,896921,Supporter,NULL,NULL,0,NULL,NULL 32400,3328147,896921,Supporter,NULL,NULL,0,NULL,NULL 32401,4594818,805925,NULL,NULL,NULL,0,NULL,NULL 32402,296353,778094,Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Famous Question Notable Question Popular Question Nice Question Yearling Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Famous Question Famous Question Famous Question Yearling Popular Question Popular Question Notable Question Good Answer Notable Question Good Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32403,84302,357937,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Caucus Constituent Famous Question Nice Question Yearling Enthusiast Nice Question Inquisitive Popular Question Notable Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 32404,630793,400562,Necromancer,NULL,NULL,0,NULL,NULL 32405,462364,249669,Nice Question Yearling Necromancer Popular Question Caucus Nice Answer Enlightened Yearling Popular Question Documentation User Good Answer Yearling Notable Question Guru Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 32406,4425775,249669,Nice Question Yearling Necromancer Popular Question Caucus Nice Answer Enlightened Yearling Popular Question Documentation User Good Answer Yearling Notable Question Guru Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 32407,815974,1193599,NULL,NULL,NULL,0,NULL,NULL 32408,165250,868226,NULL,NULL,NULL,0,NULL,NULL 32409,1113599,720919,NULL,NULL,NULL,0,NULL,NULL 32410,2828328,992291,Critic Caucus Documentation User,NULL,NULL,0,NULL,NULL 32411,212862,1404745,NULL,NULL,NULL,0,NULL,NULL 32412,4537,413634,NULL,NULL,NULL,0,NULL,NULL 32413,526327,1050071,Good Answer Yearling Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32414,200970,970591,NULL,NULL,NULL,0,NULL,NULL 32415,1520137,1149805,NULL,NULL,NULL,0,NULL,NULL 32416,1071266,596269,NULL,NULL,NULL,0,NULL,NULL 32417,189989,1324730,Popular Question Yearling Popular Question Notable Question Nice Question Nice Answer Civic Duty Caucus Popular Question Famous Question Notable Question Caucus Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 32418,104708,992917,Supporter,NULL,NULL,0,NULL,NULL 32419,680272,457489,NULL,NULL,NULL,0,NULL,NULL 32420,346943,967898,NULL,NULL,NULL,0,NULL,NULL 32421,459458,1539054,Necromancer Supporter,NULL,NULL,0,NULL,NULL 32422,174401,868580,NULL,NULL,NULL,0,NULL,NULL 32423,277608,1466498,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32424,160337,1393181,NULL,NULL,NULL,0,NULL,NULL 32425,947193,930715,Yearling Necromancer Nice Answer Notable Question Yearling Good Answer Curious Popular Question Good Answer,NULL,NULL,0,NULL,NULL 32426,3328325,930715,Yearling Necromancer Nice Answer Notable Question Yearling Good Answer Curious Popular Question Good Answer,NULL,NULL,0,NULL,NULL 32427,230045,1446833,NULL,NULL,NULL,0,NULL,NULL 32428,537939,873484,NULL,NULL,NULL,0,NULL,NULL 32429,747997,1221628,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32430,168669,1196930,NULL,NULL,NULL,0,NULL,NULL 32431,249492,420049,NULL,NULL,NULL,0,NULL,NULL 32432,1174828,571806,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 32433,120708,850138,Necromancer Yearling Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Curious Popular Question Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 32434,619283,21182,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 32435,18709,1142122,Famous Question Good Question,NULL,NULL,0,NULL,NULL 32436,936729,9743,NULL,NULL,NULL,0,NULL,NULL 32437,227569,458256,NULL,NULL,NULL,0,NULL,NULL 32438,90749,433653,Great Answer Nice Answer Revival Yearling Census Necromancer Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 32439,7121976,985537,Popular Question,NULL,NULL,0,NULL,NULL 32440,203116,985537,Popular Question,NULL,NULL,0,NULL,NULL 32441,181817,1454661,NULL,NULL,NULL,0,NULL,NULL 32442,211489,228604,NULL,NULL,NULL,0,NULL,NULL 32443,17151,114140,Nice Answer Notable Question Nice Answer Favorite Question Great Question Necromancer Nice Answer Yearling Nice Answer Notable Question Yearling Good Answer Yearling Stellar Question,NULL,NULL,0,NULL,NULL 32444,805863,700698,NULL,NULL,NULL,0,NULL,NULL 32445,222905,1376623,NULL,NULL,NULL,0,NULL,NULL 32446,27781,964721,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32447,673380,225986,Critic,NULL,NULL,0,NULL,NULL 32448,515819,866553,NULL,NULL,NULL,0,NULL,NULL 32449,92274,866553,NULL,NULL,NULL,0,NULL,NULL 32450,6035875,6716,Nice Answer Famous Question Popular Question Famous Question Yearling Nice Answer Famous Question owl Good Question Caucus Civic Duty Yearling Notable Question Census Inquisitive Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 32451,473087,6716,Nice Answer Famous Question Popular Question Famous Question Yearling Nice Answer Famous Question owl Good Question Caucus Civic Duty Yearling Notable Question Census Inquisitive Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 32452,1035116,1003313,NULL,NULL,NULL,0,NULL,NULL 32453,122672,106658,Nice Answer Popular Question Notable Question Notable Question Yearling Great Answer Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Good Question Yearling Popular Question Popular Question Good Answer Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 32454,400594,1051163,NULL,NULL,NULL,0,NULL,NULL 32455,614108,761148,NULL,NULL,NULL,0,NULL,NULL 32456,262147,349007,NULL,NULL,NULL,0,NULL,NULL 32457,80535,1075426,NULL,NULL,NULL,0,NULL,NULL 32458,87106,881633,Popular Question,NULL,NULL,0,NULL,NULL 32459,974416,1060581,Popular Question,NULL,NULL,0,NULL,NULL 32460,300174,620664,NULL,NULL,NULL,0,NULL,NULL 32461,387802,511181,NULL,NULL,NULL,0,NULL,NULL 32462,1036421,1412599,Notable Question Popular Question Tumbleweed Curious Commentator Custodian,NULL,NULL,0,NULL,NULL 32463,13768,692283,Documentation User,NULL,NULL,0,NULL,NULL 32464,383602,857929,NULL,NULL,NULL,0,NULL,NULL 32465,88471,305885,Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32466,673543,462811,NULL,NULL,NULL,0,NULL,NULL 32467,1241276,810828,NULL,NULL,NULL,0,NULL,NULL 32468,178609,467630,NULL,NULL,NULL,0,NULL,NULL 32469,480364,224693,Revival Notable Question Civic Duty Famous Question Yearling Necromancer Nice Question,NULL,NULL,0,NULL,NULL 32470,422272,618991,NULL,NULL,NULL,0,NULL,NULL 32471,45831,820510,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 32472,286096,534701,Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 32473,960070,522065,Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 32474,1563112,957932,NULL,NULL,NULL,0,NULL,NULL 32475,752170,1555504,NULL,NULL,NULL,0,NULL,NULL 32476,369556,779924,Yearling Popular Question,NULL,NULL,0,NULL,NULL 32477,3010,299320,Necromancer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 32478,16505,504528,Notable Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 32479,234126,22972,Nice Question Custodian Citizen Patrol Popular Question Notable Question Notable Question Informed Peer Pressure Caucus Constituent,NULL,NULL,0,NULL,NULL 32480,349166,1273172,Teacher,NULL,NULL,0,NULL,NULL 32481,96284,433762,NULL,NULL,NULL,0,NULL,NULL 32482,291156,149069,Informed Teacher Organizer Revival Revival Enthusiast Yearling Supporter Fanatic Necromancer Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32483,2517389,75799,Necromancer Famous Question Nice Question Notable Question Yearling Nice Question Stellar Question Popular Question Popular Question Necromancer Notable Question Popular Question Great Question Notable Question Popular Question Popular Question Announcer Socratic Nice Question Notable Question Popular Question Popular Question Notable Question Famous Question Organizer Caucus Popular Question Notable Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question Nice Answer Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Famous Question Notable Question Famous Question Great Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Announcer Necromancer Notable Question Famous Question Popular Question Popular Question Stellar Question Nice Question Popular Question Nice Question Good Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 32484,9395,75799,Necromancer Famous Question Nice Question Notable Question Yearling Nice Question Stellar Question Popular Question Popular Question Necromancer Notable Question Popular Question Great Question Notable Question Popular Question Popular Question Announcer Socratic Nice Question Notable Question Popular Question Popular Question Notable Question Famous Question Organizer Caucus Popular Question Notable Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question Nice Answer Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Famous Question Notable Question Famous Question Great Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Announcer Necromancer Notable Question Famous Question Popular Question Popular Question Stellar Question Nice Question Popular Question Nice Question Good Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 32485,540450,187171,Critic,NULL,NULL,0,NULL,NULL 32486,16362,1350989,NULL,NULL,NULL,0,NULL,NULL 32487,79312,189467,Announcer Yearling Nice Answer Famous Question Autobiographer,NULL,NULL,0,NULL,NULL 32488,105495,864646,NULL,NULL,NULL,0,NULL,NULL 32489,79854,1021912,Editor,NULL,NULL,0,NULL,NULL 32490,262212,909777,Nice Answer Good Answer Necromancer Good Answer Announcer Famous Question Yearling Necromancer Popular Question Popular Question Necromancer Popular Question Nice Answer Necromancer Nice Question css Nice Answer Yearling Popular Question Necromancer Enlightened Guru Good Answer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32491,4533804,1303499,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32492,3152593,313057,NULL,NULL,NULL,0,NULL,NULL 32493,306755,5475,Favorite Question Popular Question Great Question Notable Question Notable Question Famous Question Yearling Notable Question Popular Question Notable Question Famous Question Good Question Necromancer Popular Question Yearling Famous Question Popular Question Notable Question Famous Question Nice Question Famous Question Yearling Pundit,NULL,NULL,0,NULL,NULL 32494,69562,511328,Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 32495,212989,1000212,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 32496,16937,1063090,Popular Question Nice Question Notable Question Caucus Yearling Good Answer Good Answer Caucus Custodian Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 32497,688117,855160,Enthusiast Curious Editor Commentator Announcer,NULL,NULL,0,NULL,NULL 32498,402251,595613,NULL,NULL,NULL,0,NULL,NULL 32499,995,352493,Nice Answer Enlightened Yearling Guru Nice Question Good Answer Good Answer Yearling Great Answer Populist Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 32500,832788,352493,Nice Answer Enlightened Yearling Guru Nice Question Good Answer Good Answer Yearling Great Answer Populist Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 32501,202960,983791,NULL,NULL,NULL,0,NULL,NULL 32502,983887,885320,NULL,NULL,NULL,0,NULL,NULL 32503,185482,27946,Notable Question Nice Question Yearling Caucus Popular Question Famous Question Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 32504,914892,1084240,NULL,NULL,NULL,0,NULL,NULL 32505,184154,900999,Revival Popular Question,NULL,NULL,0,NULL,NULL 32506,406074,942369,NULL,NULL,NULL,0,NULL,NULL 32507,514927,161278,Notable Question Popular Question Popular Question Populist Yearling Nice Question Necromancer Necromancer Announcer Great Answer Citizen Patrol Yearling Popular Question Nice Answer Announcer Benefactor Yearling,NULL,NULL,0,NULL,NULL 32508,1300327,219984,Critic Popular Question,NULL,NULL,0,NULL,NULL 32509,520150,843919,Popular Question,NULL,NULL,0,NULL,NULL 32510,146193,843919,Popular Question,NULL,NULL,0,NULL,NULL 32511,1991623,516862,Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 32512,984741,516862,Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 32513,1079497,1419964,NULL,NULL,NULL,0,NULL,NULL 32514,407392,462039,NULL,NULL,NULL,0,NULL,NULL 32515,200948,187429,NULL,NULL,NULL,0,NULL,NULL 32516,120613,301093,Announcer Revival Notable Question,NULL,NULL,0,NULL,NULL 32517,39157,1126145,NULL,NULL,NULL,0,NULL,NULL 32518,134456,985423,Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 32519,356849,783653,Nice Answer Revival Yearling Popular Question Nice Answer Notable Question Yearling Good Answer Good Answer Necromancer Caucus Notable Question Nice Question Yearling Great Answer Necromancer Notable Question Custodian Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32520,342553,895973,Nice Answer,NULL,NULL,0,NULL,NULL 32521,658667,870760,NULL,NULL,NULL,0,NULL,NULL 32522,5096,495644,Critic,NULL,NULL,0,NULL,NULL 32523,163315,718235,NULL,NULL,NULL,0,NULL,NULL 32524,104119,1539113,NULL,NULL,NULL,0,NULL,NULL 32525,139669,1507381,NULL,NULL,NULL,0,NULL,NULL 32526,169642,592849,Notable Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 32527,6812480,532551,Student,NULL,NULL,0,NULL,NULL 32528,1568052,532551,Student,NULL,NULL,0,NULL,NULL 32529,193055,434543,NULL,NULL,NULL,0,NULL,NULL 32530,81879,656150,NULL,NULL,NULL,0,NULL,NULL 32531,9366,824673,Editor Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 32532,16119,1406486,Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32533,76704,511339,NULL,NULL,NULL,0,NULL,NULL 32534,167432,1031697,NULL,NULL,NULL,0,NULL,NULL 32535,89736,186234,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 32536,2204745,349620,Custodian Yearling Popular Question Popular Question Census Yearling Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 32537,697161,1439989,NULL,NULL,NULL,0,NULL,NULL 32538,775087,1530561,NULL,NULL,NULL,0,NULL,NULL 32539,210948,323700,NULL,NULL,NULL,0,NULL,NULL 32540,202675,165039,NULL,NULL,NULL,0,NULL,NULL 32541,238610,395092,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32542,263927,125933,Notable Question,NULL,NULL,0,NULL,NULL 32543,134347,1113873,Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32544,268265,745984,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32545,23643,525636,Nice Answer Yearling Good Answer Yearling Populist Great Answer Yearling,NULL,pI ve updated this answer to match current best practices ppBundler supports gem development perfectly If you are creating gem the strongonly strong thing you need to have in your Gemfile is the following ppre codesource https rubygems org gemspec code prepThis tells Bundler to look inside your gemspec file for the dependencies when you run codebundle install code ppNext up make sure that RSpec is development dependency of your gem Edit the gemspec so it reads ppre codespec add development dependency rspec code prepNext create codespec spec helper rb code and add something like ppre coderequire bundler setup Bundler setuprequire your gem name and any other gems you needRSpec configure do config some optional config hereend code prepThe first two lines tell Bundler to load only the gems inside your gemspec When you install your own gem on your own machine this will force your specs to use your current code not the version you have installed separately ppCreate spec for example codespec foobar spec rb code ppre coderequire spec helper describe Foobar do pending write it end code prepOptional add code rspec code file for default options and put it in your gem root path ppre code color format documentation code prepFinally run the specs ppre code rspec spec foobar spec rb code pre The lines from will require all gems in the development and test groups while my approach is to require every gem manually Since you need to require every gem yourself when making gems think it the better clearer approach even though it might be bit more work,0,NULL,NULL 32546,640322,711248,Good Question Famous Question Yearling Critic,NULL,NULL,0,NULL,NULL 32547,523258,201259,NULL,NULL,NULL,0,NULL,NULL 32548,1368123,1442190,Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 32549,310158,512060,Yearling,NULL,NULL,0,NULL,NULL 32550,45824,24068,Yearling Custodian Yearling Revival Nice Answer Tag Editor Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 32551,314820,765255,Necromancer Yearling Student Caucus Popular Question,NULL,ActiveRecord OR query ruby on rails ruby on rails rails activerecord pHow do you do an OR query in Rails ActiveRecord All the examples find just have AND queries pblockquote pEdit strongOR strong method is available since Rails See href http api rubyonrails org classes ActiveRecord QueryMethods html method or rel noreferrer ActiveRecord QueryMethods blockquote This question has tag of ruby on rails Why would the accepted answer relate only to Rails,0,NULL,NULL 32552,17447,335847,Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Announcer Notable Question Popular Question Popular Question Notable Question Custodian Notable Question Nice Answer Famous Question Yearling Announcer Nice Question Famous Question Nice Answer Enlightened Nice Question Popular Question Caucus Popular Question Famous Question Yearling Nice Answer Popular Question Announcer Famous Question Nice Answer Popular Question Nice Answer Enlightened Popular Question,NULL,pMy solution was to add codeprint code method onto the actual codeNokogiri code objects After you run the code in the snippet below you should just be able to write codenode print code and it ll pretty print the contents No xslt required ppre codeNokogiri XML Node class eval do Print every Node by default will be overridden by CharacterData define method should print do true end Duplicate this node replace the contents of the duplicated node with newline With this content substitution the to method conveniently returns string with the opening tag lt href foo gt on the first line and the closing tag on the second lt gt provided that the current node is not self closing tag Now print the open tag preceded by the correct amount of indentation then recursively print this node children with extra indentation and then print the close tag if there is closing tag define method print do indent duplicate self dup duplicate content open tag close tag duplicate to split puts indent open tag self children select amp should print each child child print indent puts indent close tag if close tag endendNokogiri XML CharacterData class eval do Only print CharacterData if there non whitespace content define method should print do content end Replace all consecutive whitespace characters by single space precede the outut by certain amount of indentation print this text define method print do indent puts indent to strip sub endend code pre Do you have an example of it being used try this and get TypeError no implicit conversion of nil into String so perhaps calling it on the wrong object pMy solution was to add codeprint code method onto the actual codeNokogiri code objects After you run the code in the snippet below you should just be able to write codenode print code and it ll pretty print the contents No xslt required ppre codeNokogiri XML Node class eval do Print every Node by default will be overridden by CharacterData define method should print do true end Duplicate this node replace the contents of the duplicated node with newline With this content substitution the to method conveniently returns string with the opening tag lt href foo gt on the first line and the closing tag on the second lt gt provided that the current node is not self closing tag Now print the open tag preceded by the correct amount of indentation then recursively print this node children with extra indentation and then print the close tag if there is closing tag define method print do indent duplicate self dup duplicate content open tag close tag duplicate to split puts indent open tag self children select amp should print each child child print indent puts indent close tag if close tag endendNokogiri XML CharacterData class eval do Only print CharacterData if there non whitespace content define method should print do content end Replace all consecutive whitespace characters by single space precede the outut by certain amount of indentation print this text define method print do indent puts indent to strip sub endend code pre few more experiments and got this to work doc Nokogiri HTML html source doc elements each elem elem print Thanks,0,NULL,NULL 32553,410459,140731,Famous Question Notable Question Famous Question Civic Duty Popular Question Excavator Nice Question Yearling Notable Question Good Question Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Good Question Nice Answer Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32554,194194,630636,NULL,NULL,NULL,0,NULL,NULL 32555,221966,284273,NULL,NULL,NULL,0,NULL,NULL 32556,50184,997887,Necromancer,NULL,NULL,0,NULL,NULL 32557,83317,171766,NULL,NULL,NULL,0,NULL,NULL 32558,131969,240239,Popular Question Notable Question Notable Question Notable Question Good Question Yearling Nice Question Famous Question Nice Answer Enlightened Yearling Nice Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 32559,12372,495649,NULL,NULL,NULL,0,NULL,NULL 32560,435933,1408432,NULL,NULL,NULL,0,NULL,NULL 32561,195616,1408432,NULL,NULL,NULL,0,NULL,NULL 32562,625979,802025,NULL,NULL,NULL,0,NULL,NULL 32563,81775,1263102,NULL,NULL,NULL,0,NULL,NULL 32564,1431806,993751,Popular Question,NULL,NULL,0,NULL,NULL 32565,205643,435541,Nice Answer,NULL,NULL,0,NULL,NULL 32566,1049353,1393633,NULL,NULL,NULL,0,NULL,NULL 32567,36547,341620,Popular Question Yearling Good Answer Revival Yearling Popular Question Popular Question Notable Question Yearling Nice Answer Notable Question,NULL,pFirst of all make sure an codeOrigin code header with every request If no codeOrigin code header is sent S3 won send codeaccess control code headers as S3 deems them irrelevant and typically they are browser for which the CORS mechanism is meant will automatically send an codeOrigin code header when doing cross origin HTTP requests through XMLHTTPRequest ppIn case of loading images with codeimg code you need to add codecrossorigin anonymous code attribute See href https developer mozilla org en US docs Web HTML Element img attr crossorigin rel noreferrer title MDN documentation MDN Documentation on crossorigin attribute This will cause the browser to send an codeOrigin code request header like it does with XMLHTTPRequest ppGoing by the answer of Sam Selikoff you may need to change ppre code lt AllowedOrigin gt http lt AllowedOrigin gt code prepto ppre code lt AllowedOrigin gt http lt AllowedOrigin gt lt AllowedOrigin gt https lt AllowedOrigin gt code prepI haven tested this ppGoing by Paul Draper comment on this answer Watch out for caching issues browser may use cached response that did not include the appropriate codeAccess Control code response headers During development you can clear your cache In production you must switch to new URL for the resource if it was used in static manner before You may need to add HEAD to the AllowedMethod,0,NULL,NULL 32568,111611,860789,Popular Question Yearling Excavator Documentation User,NULL,NULL,0,NULL,NULL 32569,342980,781883,Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Caucus Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 32570,29489,475739,NULL,NULL,NULL,0,NULL,NULL 32571,37013,388517,Necromancer Yearling Critic Nice Answer Good Answer Yearling Commentator Populist Yearling,NULL,NULL,0,NULL,NULL 32572,216166,196054,NULL,NULL,NULL,0,NULL,NULL 32573,151774,374211,Yearling,NULL,NULL,0,NULL,NULL 32574,41752,648693,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32575,905671,648693,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32576,156171,621846,Popular Question Popular Question Teacher Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32577,338604,631613,Popular Question Famous Question Yearling Popular Question Necromancer Nice Question Caucus Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 32578,1363251,755082,Yearling Nice Answer Enlightened Civic Duty Caucus Constituent Documentation User Custodian Custodian,NULL,NULL,0,NULL,NULL 32579,2372,447950,Editor Informed Notable Question,NULL,NULL,0,NULL,NULL 32580,979185,463506,NULL,NULL,NULL,0,NULL,NULL 32581,185386,907783,NULL,NULL,NULL,0,NULL,NULL 32582,11471,421333,Custodian Yearling Revival Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 32583,36663,382892,Nice Answer Enlightened Investor Nice Answer Enlightened Popular Question Notable Question Caucus Self-Learner Nice Question Necromancer Notable Question Popular Question Nice Answer Yearling Good Answer,NULL,pYou might also find this useful non Windows only ppre codemysql gt pager less SFXmysql gt SELECT FROM sometable code prepThis will pipe the outut through the codeless code command line tool which with these parameters will give you tabular output that can be scrolled horizontally and vertically with the cursor keys ppLeave this view by hitting the codeq code key which will quit the codeless code tool To set it persistently add pager less SFX to your my conf,0,NULL,NULL 32584,351148,1320922,Popular Question,NULL,NULL,0,NULL,NULL 32585,43088,283638,Nice Answer Yearling Favorite Question Great Question Necromancer Notable Question Yearling Popular Question Notable Question Good Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 32586,352011,1417892,NULL,NULL,NULL,0,NULL,NULL 32587,162555,90111,Yearling Good Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 32588,53357,456890,Popular Question Tumbleweed Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 32589,23454,80851,Favorite Question Nice Question Yearling Good Answer Notable Question Notable Question Notable Question Informed Guru Caucus Nice Question Yearling Popular Question Documentation User Custodian Stellar Question Census Popular Question Caucus Yearling Constituent Good Question Necromancer Popular Question Famous Question Notable Question Notable Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 32590,134678,977578,Notable Question,NULL,NULL,0,NULL,NULL 32591,300225,493941,NULL,NULL,NULL,0,NULL,NULL 32592,306687,469802,Popular Question,NULL,NULL,0,NULL,NULL 32593,146612,1191438,Revival Enthusiast,NULL,NULL,0,NULL,NULL 32594,68276,183464,Notable Question Yearling,NULL,NULL,0,NULL,NULL 32595,240662,19718,Great Question Yearling,NULL,NULL,0,NULL,NULL 32596,92617,192048,NULL,NULL,NULL,0,NULL,NULL 32597,199145,1413982,NULL,NULL,NULL,0,NULL,NULL 32598,194630,876941,Nice Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 32599,620890,333529,NULL,NULL,NULL,0,NULL,NULL 32600,524648,573421,Yearling Notable Question Nice Answer Notable Question Famous Question Yearling Nice Answer Announcer Good Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 32601,561248,1188763,Yearling Notable Question Popular Question Yearling Notable Question Yearling Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32602,299069,1181543,NULL,NULL,NULL,0,NULL,NULL 32603,650994,944903,NULL,NULL,NULL,0,NULL,NULL 32604,229504,655527,NULL,NULL,NULL,0,NULL,NULL 32605,285001,470138,NULL,NULL,NULL,0,NULL,NULL 32606,786704,530725,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32607,109212,1201088,NULL,NULL,NULL,0,NULL,NULL 32608,12988,166918,Custodian Guru Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 32609,448962,322675,NULL,NULL,NULL,0,NULL,NULL 32610,175060,1337153,NULL,NULL,NULL,0,NULL,NULL 32611,4034925,461844,Notable Question Famous Question Notable Question Nice Question Notable Question Necromancer Populist Notable Question Necromancer Famous Question Popular Question Yearling Nice Answer Notable Question Popular Question Peer Pressure Inquisitive Nice Question Nice Answer Popular Question Popular Question Yearling Custodian Popular Question Notable Question Notable Question Nice Question Good Answer Yearling Popular Question Great Answer,NULL,NULL,0,NULL,NULL 32612,393333,1097628,NULL,NULL,NULL,0,NULL,NULL 32613,1220787,1007082,Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 32614,76689,161628,Nice Question Nice Answer Enlightened Notable Question Good Question Famous Question Good Answer Popular Question Nice Answer Great Question Notable Question Notable Question Nice Question Announcer Popular Question Notable Question Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Question Famous Question Popular Question Good Answer Announcer Good Answer Announcer Stellar Question Notable Question Nice Question Popular Question Notable Question Notable Question Nice Answer Enlightened Popular Question Nice Question Announcer Good Answer Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Announcer Nice Question Documentation User Guru Famous Question Popular Question Nice Question Guru Nice Question Nice Question Notable Question elastic-beanstalk Popular Question Notable Question Popular Question Nice Answer Enlightened Nice Answer Popular Question Nice Question Famous Question Announcer Nice Question Popular Question Announcer Yearling Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32615,150122,397457,Popular Question Nice Question Notable Question Famous Question Nice Question Civic Duty Announcer,NULL,NULL,0,NULL,NULL 32616,111285,1136941,NULL,NULL,NULL,0,NULL,NULL 32617,150276,171490,Civic Duty Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 32618,522322,1368958,NULL,NULL,NULL,0,NULL,NULL 32619,139860,1439384,NULL,NULL,NULL,0,NULL,NULL 32620,145219,368525,NULL,NULL,NULL,0,NULL,NULL 32621,206513,894454,NULL,NULL,NULL,0,NULL,NULL 32622,14271,504507,Informed Autobiographer Popular Question Notable Question Nice Question Yearling Famous Question Caucus Documentation User Yearling Revival Good Answer Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32623,1221281,504507,Informed Autobiographer Popular Question Notable Question Nice Question Yearling Famous Question Caucus Documentation User Yearling Revival Good Answer Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32624,25916,1513898,NULL,NULL,NULL,0,NULL,NULL 32625,421013,1102629,NULL,NULL,NULL,0,NULL,NULL 32626,1273043,339661,NULL,NULL,NULL,0,NULL,NULL 32627,10933,430254,Famous Question Nice Answer Great Question Notable Question Good Question Famous Question Good Question Good Answer Favorite Question Nice Answer Enlightened Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Favorite Question Nice Answer Yearling Notable Question Popular Question Popular Question Nice Question Nice Question Notable Question Caucus Announcer Yearling Favorite Question Nice Answer c# Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 32628,4618878,272132,Editor Tumbleweed Commentator Cleanup Critic Yearling,NULL,NULL,0,NULL,NULL 32629,72319,272132,Editor Tumbleweed Commentator Cleanup Critic Yearling,NULL,NULL,0,NULL,NULL 32630,68078,6755,Nice Answer Guru Popular Question Yearling Nice Question Civic Duty Yearling Notable Question Favorite Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 32631,929467,1046050,NULL,NULL,NULL,0,NULL,NULL 32632,89420,1182106,NULL,NULL,NULL,0,NULL,NULL 32633,43134,1009565,NULL,NULL,NULL,0,NULL,NULL 32634,269042,326,Guru Nice Question Yearling Caucus Good Answer asp.net Nice Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 32635,61129,819314,android Mortarboard Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened firebase Great Answer Nice Answer Enlightened Revival Yearling Good Answer Nice Answer Enlightened Good Answer ios Nice Answer Enlightened Nice Answer Guru Scholar Student Nice Answer Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Nice Answer Guru Yearling android Necromancer firebase Citizen Patrol Nice Answer Enlightened Nice Answer Enlightened Necromancer Documentation User Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Tag Editor Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 32636,119718,601988,Yearling Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 32637,151046,974,Famous Question Nice Answer Popular Question Famous Question Nice Question Popular Question Good Answer Notable Question Notable Question Yearling Notable Question Favorite Question Nice Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Yearling Great Question Famous Question Good Answer Popular Question Good Question Informed Nice Question Yearling javascript Famous Question,NULL,NULL,0,NULL,NULL 32638,91263,1454935,NULL,NULL,NULL,0,NULL,NULL 32639,3256,724560,NULL,NULL,NULL,0,NULL,NULL 32640,119779,555386,NULL,NULL,NULL,0,NULL,NULL 32641,153462,16050,Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Nice Question Yearling Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Favorite Question Famous Question Notable Question Popular Question Good Question Popular Question Good Question Nice Answer Good Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question java Famous Question Nice Question Notable Question Notable Question Popular Question Favorite Question Notable Question Yearling Notable Question Notable Question Popular Question Notable Question Announcer Nice Question Famous Question Good Question Popular Question Good Question Notable Question Popular Question Famous Question Good Question Famous Question Popular Question Popular Question Nice Question Notable Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 32642,140097,72640,Yearling Notable Question,NULL,NULL,0,NULL,NULL 32643,506989,53970,Yearling Famous Question Nice Question Nice Question Notable Question Yearling Notable Question Nice Question Famous Question Favorite Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 32644,34203,73004,Notable Question Yearling Notable Question Famous Question Popular Question Famous Question Nice Question Nice Question Famous Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 32645,157295,364024,Nice Answer Enlightened Nice Answer Nice Answer Famous Question Yearling Necromancer Nice Answer Enlightened Notable Question Civic Duty Nice Question Citizen Patrol Suffrage Nice Answer Enlightened Notable Question Explainer Organizer Yearling Good Answer Necromancer Nice Question Tenacious Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 32646,418382,266471,Popular Question Famous Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 32647,7495915,953078,NULL,NULL,NULL,0,NULL,NULL 32648,46826,212130,Caucus Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 32649,89961,45224,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32650,229696,573042,Autobiographer Informed Editor Student,NULL,NULL,0,NULL,NULL 32651,79825,1058052,NULL,NULL,NULL,0,NULL,NULL 32652,952282,48348,Custodian Notable Question Custodian Custodian Organizer Civic Duty Revival Popular Question Good Answer Revival Popular Question Custodian Yearling Nice Answer Popular Question Notable Question Nice Question Notable Question Nice Question Necromancer Announcer Announcer Announcer Yearling Necromancer Notable Question Popular Question Notable Question Notable Question Announcer Good Answer Famous Question,NULL,NULL,0,NULL,NULL 32653,4153,58418,Nice Answer Revival Yearling Famous Question Famous Question Revival,NULL,NULL,0,NULL,NULL 32654,222030,1200079,NULL,NULL,NULL,0,NULL,NULL 32655,389105,985372,Editor Student Commentator Scholar,NULL,NULL,0,NULL,NULL 32656,222999,1354340,Informed Editor,NULL,NULL,0,NULL,NULL 32657,41875,206317,Nice Answer Yearling Notable Question Caucus Enthusiast Popular Question Caucus Popular Question Notable Question Caucus Notable Question Custodian,NULL,NULL,0,NULL,NULL 32658,1664764,341754,Critic,NULL,NULL,0,NULL,NULL 32659,199773,2311,NULL,NULL,NULL,0,NULL,NULL 32660,1119901,180184,Announcer Critic Enthusiast,NULL,NULL,0,NULL,NULL 32661,13595,375537,Good Question Yearling Citizen Patrol Notable Question Popular Question Notable Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 32662,183743,1431943,NULL,NULL,NULL,0,NULL,NULL 32663,147290,1028935,Informed Yearling Autobiographer,NULL,NULL,0,NULL,NULL 32664,622257,506338,Good Answer Great Answer Guru Good Answer Popular Question Popular Question Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Populist Stellar Question Popular Question Notable Question Guru Yearling Good Answer Great Question Caucus Good Answer Nice Question Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 32665,492153,506338,Good Answer Great Answer Guru Good Answer Popular Question Popular Question Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Populist Stellar Question Popular Question Notable Question Guru Yearling Good Answer Great Question Caucus Good Answer Nice Question Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 32666,1501602,1188997,NULL,NULL,NULL,0,NULL,NULL 32667,1571424,1336884,NULL,NULL,NULL,0,NULL,NULL 32668,338500,692404,NULL,NULL,NULL,0,NULL,NULL 32669,898483,1481176,NULL,NULL,NULL,0,NULL,NULL 32670,686686,632911,Notable Question,NULL,NULL,0,NULL,NULL 32671,1522355,415409,Nice Question Nice Answer Yearling Yearling Necromancer Revival Notable Question Yearling,NULL,NULL,0,NULL,NULL 32672,890766,456144,Yearling Nice Answer Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 32673,307360,1299588,Necromancer,NULL,NULL,0,NULL,NULL 32674,677084,123028,Notable Question,NULL,NULL,0,NULL,NULL 32675,6974483,1293816,Caucus Commentator Yearling,NULL,NULL,0,NULL,NULL 32676,35606,1293816,Caucus Commentator Yearling,NULL,NULL,0,NULL,NULL 32677,48227,256153,Revival Necromancer,NULL,NULL,0,NULL,NULL 32678,719156,781854,Necromancer Editor Supporter,NULL,NULL,0,NULL,NULL 32679,157764,489053,NULL,NULL,NULL,0,NULL,NULL 32680,164688,19421,Yearling Nice Question Notable Question Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 32681,6200,617236,Student Caucus Constituent Yearling Self-Learner,NULL,NULL,0,NULL,NULL 32682,54249,9269,Good Question Popular Question Nice Question Great Question Great Answer Popular Question Notable Question Notable Question Famous Question Famous Question Yearling Necromancer Tag Editor Yearling Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 32683,570890,594677,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 32684,15483,817090,NULL,NULL,NULL,0,NULL,NULL 32685,587132,376513,Popular Question Yearling Nice Answer Enlightened Good Answer Nice Question Great Answer Yearling Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 32686,22467,167810,Notable Question Notable Question Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 32687,1346624,662356,NULL,NULL,NULL,0,NULL,NULL 32688,162612,87910,NULL,NULL,NULL,0,NULL,NULL 32689,32251,1157048,NULL,NULL,NULL,0,NULL,NULL 32690,310360,176859,Yearling,NULL,NULL,0,NULL,NULL 32691,118352,675022,NULL,NULL,NULL,0,NULL,NULL 32692,192832,199806,Nice Answer Notable Question Curious Yearling Good Answer Yearling Good Question Critic Citizen Patrol Explainer Organizer Tenacious Necromancer Yearling,NULL,,0,, 32693,151260,640610,Critic Student,NULL,NULL,0,NULL,NULL 32694,83046,2213,Notable Question Yearling Self-Learner Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32695,147939,321760,Necromancer,NULL,NULL,0,NULL,NULL 32696,2611806,914509,NULL,NULL,NULL,0,NULL,NULL 32697,193465,148922,NULL,NULL,NULL,0,NULL,NULL 32698,92505,28721,Guru Yearling,NULL,NULL,0,NULL,NULL 32699,503011,166169,NULL,NULL,NULL,0,NULL,NULL 32700,1430149,157710,NULL,NULL,NULL,0,NULL,NULL 32701,41092,235356,Announcer Announcer,NULL,NULL,0,NULL,NULL 32702,222087,2084,Guru Good Question Great Answer Famous Question Great Answer Pundit Notable Question Good Answer Guru Yearling Nice Answer Enlightened Great Answer Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32703,227798,417513,Great Answer Yearling Great Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32704,161197,1018668,NULL,NULL,NULL,0,NULL,NULL 32705,437958,107574,Popular Question,NULL,NULL,0,NULL,NULL 32706,68381,437400,Critic Nice Answer,NULL,NULL,0,NULL,NULL 32707,335780,18688,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 32708,375553,1123598,NULL,NULL,NULL,0,NULL,NULL 32709,64557,1178638,Notable Question Critic Famous Question,NULL,Shared variables in PostCSS postcss pIn Sass can define my variables in separate file code variables scss code then make those variables available anywhere code variables code Actually the variables are globally available after their first import With PostCSS can use codepostcss simple vars code or codepostcss css variables code to define variables local to single file like to define all most variables in single file then code code that file wherever need to use them ppI know the PostCSS plugins can have pre defined variables configured for the plugin but then cannot calculate contrasting color for given background phrpEdit probably wasn clear about what my question was strongIs there way to define PostCSS variables in CSS file such that the variables are not global but can be imported into another CSS file strong As mentioned above can use Sass but then all variables are effectively global not ideal Otherwise in PostCSS can define the variables in each stylesheet need them what the point emor em can define them in static JavaScript structure static in that they can reference other variables Did you achieve using variables in files can find solution anywhere,0,NULL,NULL 32710,393345,335888,NULL,NULL,NULL,0,NULL,NULL 32711,196216,338148,NULL,NULL,NULL,0,NULL,NULL 32712,32184,226670,NULL,NULL,NULL,0,NULL,NULL 32713,113099,122096,Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32714,185563,128259,NULL,NULL,NULL,0,NULL,NULL 32715,400810,591483,Census,NULL,NULL,0,NULL,NULL 32716,37397,422263,Revival javascript Revival Good Answer Yearling Nice Answer Nice Answer Self-Learner Notable Question Necromancer Good Answer Nice Answer Good Answer Yearling Guru Nice Answer Enlightened Good Answer Nice Answer Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 32717,29112,13932,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 32718,83644,38666,Explainer Yearling Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 32719,468114,505298,NULL,NULL,NULL,0,NULL,NULL 32720,586867,1118258,NULL,NULL,NULL,0,NULL,NULL 32721,294072,1504177,NULL,NULL,NULL,0,NULL,NULL 32722,13371,599761,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32723,204506,229255,Nice Answer,NULL,NULL,0,NULL,NULL 32724,613357,1289388,Necromancer Yearling Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32725,9709671,882279,Good Answer Yearling,NULL,NULL,0,NULL,NULL 32726,394522,882279,Good Answer Yearling,NULL,NULL,0,NULL,NULL 32727,140707,326140,NULL,NULL,NULL,0,NULL,NULL 32728,423333,1048392,Supporter Revival,NULL,NULL,0,NULL,NULL 32729,677388,104986,Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 32730,393612,564598,NULL,NULL,NULL,0,NULL,NULL 32731,125542,450127,Popular Question Yearling Notable Question Nice Answer Necromancer Nice Answer Yearling Self-Learner Curious Good Answer Yearling Census Revival Populist Yearling Announcer Announcer,NULL,pIf may skirt your question do consider using your networking library notion of Address to parse and check for errors ppI imagine that at some point you ll want to do something with these addresses so why not just go straight to the source and make sure that your networking library will understand the address This is better than just hoping whatever regex is about to be posted here will match your implementation concept of the address ppIn Java we have codeInetAddress code In NET we have codeIPAddress code In NET you even have href http msdn microsoft com en us library system net ipaddress tryparse aspx rel nofollow noreferrer codeTryParse code on the codeIPAddress code class to do this test for you ppre codebool IsIP6 string addr IPAddress ip if IPAddress TryParse addr out ip return ip AddressFamily AddressFamily InterNetworkV6 else return false code pre Just because the answer isn what you expected doesn make it wrong Oftentimes we approach problems from the wrong angle and it helps to have another person perspective to see better way That doubly true for anything involving regex The fact that the OP chose this as the correct answer testifies to that,0,NULL,NULL 32732,289124,872480,NULL,NULL,NULL,0,NULL,NULL 32733,656342,467270,NULL,NULL,NULL,0,NULL,NULL 32734,115766,481620,Good Answer Popular Question Yearling Nice Answer Necromancer Yearling Census Notable Question Popular Question Yearling Notable Question,NULL,NULL,1,Docker as builder can install systemd header files build docker systemd pI trying to update Docker image based on the official CentOS7 image It is used as builder for Node js projects ppI need to add the codesystemd devel code package for compiling some dependencies but this fails with the following error pp codefakesystemd 17 el7 centos noarch has installed conflicts systemd fakesystemd 17 el7 centos noarch code ppThanks,NULL 32735,22398,20218,Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 32736,168828,223693,NULL,NULL,NULL,0,NULL,NULL 32737,128202,1445185,NULL,NULL,NULL,0,NULL,NULL 32738,935576,1366213,NULL,NULL,NULL,0,NULL,NULL 32739,863251,598070,Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Inquisitive Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Caucus Popular Question Documentation User Announcer Popular Question Popular Question Nice Question Notable Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Civic Duty Notable Question Popular Question Autobiographer Revival Notable Question Notable Question Notable Question Good Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32740,281296,283771,NULL,NULL,NULL,0,NULL,NULL 32741,152838,244515,Notable Question,NULL,NULL,0,NULL,NULL 32742,198938,244515,Notable Question,NULL,NULL,0,NULL,NULL 32743,78335,1062602,NULL,NULL,NULL,0,NULL,NULL 32744,641831,617477,NULL,NULL,NULL,0,NULL,NULL 32745,207828,1013221,NULL,NULL,NULL,0,NULL,NULL 32746,2494689,352374,Popular Question Notable Question Notable Question Yearling Civic Duty Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 32747,807027,518052,NULL,NULL,NULL,0,NULL,NULL 32748,168910,518052,NULL,NULL,NULL,0,NULL,NULL 32749,266344,462412,Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 32750,449847,1332707,NULL,NULL,NULL,0,NULL,NULL 32751,11096,846389,Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32752,551986,329660,Popular Question Curious Nice Answer Popular Question architecture Yearling domain-driven-design Nice Answer Caucus Constituent Census Notable Question Yearling design-patterns Nice Question Nice Answer Census Informed Yearling Promoter Tumbleweed Talkative Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 32753,82105,1212727,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 32754,254622,1538791,Popular Question,NULL,NULL,0,NULL,NULL 32755,151248,426601,NULL,NULL,NULL,0,NULL,NULL 32756,77245,288863,Nice Answer Enlightened Yearling Yearling Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32757,202356,731508,Nice Question,NULL,NULL,0,NULL,NULL 32758,207422,1369763,Yearling Yearling Necromancer Popular Question Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 32759,1334350,842216,NULL,NULL,NULL,0,NULL,NULL 32760,867360,729702,NULL,NULL,NULL,0,NULL,NULL 32761,6202,1203912,NULL,NULL,NULL,0,NULL,NULL 32762,22482,115596,Nice Question Yearling,NULL,NULL,0,NULL,NULL 32763,817898,1231340,NULL,NULL,NULL,0,NULL,NULL 32764,355640,1465173,Teacher Scholar Editor Informed Revival Self-Learner Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 32765,1998830,904278,Famous Question Famous Question Good Question Popular Question Notable Question Yearling Notable Question Popular Question Excavator Nice Question Notable Question Notable Question Yearling Notable Question Inquisitive Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 32766,54174,1125048,NULL,NULL,NULL,0,NULL,NULL 32767,295555,223274,Custodian Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened reactive-cocoa Good Answer Popular Question Yearling Nice Question Good Answer Notable Question Cleanup Guru Nice Question Necromancer Good Answer Yearling Notable Question Nice Answer Enlightened Popular Question Pundit Guru,NULL,NULL,0,NULL,NULL 32768,1995235,458966,Popular Question,NULL,NULL,0,NULL,NULL 32769,410880,458966,Popular Question,NULL,NULL,0,NULL,NULL 32770,222479,1018882,Supporter Nice Answer,NULL,NULL,0,NULL,NULL 32771,660129,1439798,NULL,NULL,NULL,0,NULL,NULL 32772,201087,470162,Nice Question,NULL,NULL,0,NULL,NULL 32773,186912,209792,Necromancer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 32774,1085867,1335274,NULL,NULL,NULL,0,NULL,NULL 32775,49241,1047786,Nice Answer Enlightened Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 32776,1127330,1476642,NULL,NULL,NULL,0,NULL,NULL 32777,307716,981020,NULL,NULL,NULL,0,NULL,NULL 32778,2523323,619331,NULL,NULL,NULL,0,NULL,NULL 32779,92221,521943,NULL,NULL,NULL,0,NULL,NULL 32780,1693532,609043,Great Answer Yearling Popular Question Self-Learner Necromancer Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Inquisitive Notable Question Yearling Popular Question Popular Question Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 32781,73008,352628,Popular Question Yearling,NULL,NULL,0,NULL,NULL 32782,15341,1044778,NULL,NULL,NULL,0,NULL,NULL 32783,251820,1135263,NULL,NULL,NULL,0,NULL,NULL 32784,1207505,911674,NULL,NULL,NULL,0,NULL,NULL 32785,508070,1407451,Notable Question Popular Question Yearling Notable Question Caucus Constituent Notable Question Popular Question Yearling Popular Question Notable Question Custodian Notable Question Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32786,432403,442023,NULL,NULL,NULL,0,NULL,NULL 32787,8696,773690,Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Revival Nice Answer Good Answer Popular Question Yearling Popular Question Famous Question Popular Question Great Question Famous Question Nice Answer Notable Question Popular Question Good Answer Notable Question Notable Question Yearling Famous Question Necromancer Nice Answer Necromancer Nice Answer Enlightened Necromancer Great Answer Popular Question Revival Good Question Popular Question Popular Question Revival Yearling Good Question Nice Question Nice Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 32788,750124,721331,Yearling Tumbleweed Student Necromancer Caucus Revival Commentator Necromancer Yearling Nice Answer Nice Answer Caucus Necromancer Good Answer Caucus Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 32789,115278,913555,Critic Yearling Editor,NULL,NULL,0,NULL,NULL 32790,1511593,249482,NULL,NULL,NULL,0,NULL,NULL 32791,149062,1320990,NULL,NULL,NULL,0,NULL,NULL 32792,3134941,1320990,NULL,NULL,NULL,0,NULL,NULL 32793,236721,866931,Nice Answer Caucus Constituent Yearling Editor Yearling,NULL,NULL,0,NULL,NULL 32794,12368,420930,NULL,NULL,NULL,0,NULL,NULL 32795,102933,771142,NULL,NULL,NULL,0,NULL,NULL 32796,237492,1371870,NULL,NULL,NULL,0,NULL,NULL 32797,237335,200779,NULL,NULL,NULL,0,NULL,NULL 32798,186703,577003,NULL,NULL,NULL,0,NULL,NULL 32799,699334,617435,Popular Question,NULL,NULL,0,NULL,NULL 32800,270722,532531,NULL,NULL,NULL,0,NULL,NULL 32801,1841362,937471,Notable Question Notable Question Self-Learner Autobiographer Informed Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Caucus Constituent Inquisitive Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 32802,263142,901262,NULL,NULL,NULL,0,NULL,NULL 32803,186156,1246265,Teacher Revival,NULL,NULL,0,NULL,NULL 32804,405686,564568,NULL,NULL,NULL,0,NULL,NULL 32805,1560633,111015,Notable Question Famous Question Yearling Notable Question Taxonomist Yearling Popular Question Popular Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 32806,202642,830220,NULL,NULL,NULL,0,NULL,NULL 32807,232308,1226964,Caucus Peer Pressure,NULL,NULL,0,NULL,NULL 32808,230568,1556902,Teacher,NULL,NULL,0,NULL,NULL 32809,337601,848581,Necromancer,NULL,NULL,0,NULL,NULL 32810,31483,965065,NULL,NULL,NULL,0,NULL,NULL 32811,12735,423561,NULL,NULL,NULL,0,NULL,NULL 32812,136776,1455811,NULL,NULL,NULL,0,NULL,NULL 32813,1516397,209181,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32814,771896,974154,NULL,NULL,NULL,0,NULL,NULL 32815,262762,235853,Custodian Popular Question Yearling Organizer Caucus Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 32816,174649,223152,Revival Documentation User Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 32817,4475621,223152,Revival Documentation User Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 32818,853226,474464,NULL,NULL,NULL,0,NULL,NULL 32819,461824,1073964,Notable Question,NULL,NULL,0,NULL,NULL 32820,116674,873559,Nice Answer Enlightened Notable Question Electorate Nice Question Nice Answer Good Answer Announcer Yearling Necromancer Nice Question Famous Question Good Answer Famous Question Good Question Good Answer Yearling Custodian Custodian Favorite Question Census Custodian Good Question Yearling,NULL,NULL,0,NULL,NULL 32821,685359,1358398,NULL,NULL,NULL,0,NULL,NULL 32822,183311,1233806,NULL,NULL,NULL,0,NULL,NULL 32823,1777284,805155,Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32824,888197,487276,NULL,NULL,NULL,0,NULL,NULL 32825,707951,1378040,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 32826,590771,634780,Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 32827,580315,1269551,Yearling Critic Commentator,NULL,NULL,0,NULL,NULL 32828,146194,1176116,NULL,NULL,NULL,0,NULL,NULL 32829,530338,370603,Student Editor Scholar,NULL,NULL,0,NULL,NULL 32830,512129,822757,Popular Question,NULL,NULL,0,NULL,NULL 32831,112062,10286,Popular Question Yearling Guru Yearling Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 32832,272923,1501924,NULL,NULL,NULL,0,NULL,NULL 32833,1184362,1462520,Commentator,NULL,NULL,0,NULL,NULL 32834,91687,1462520,Commentator,NULL,NULL,0,NULL,NULL 32835,908814,788399,NULL,NULL,NULL,0,NULL,NULL 32836,888381,571989,Census Yearling,NULL,NULL,0,NULL,NULL 32837,924236,46993,Notable Question Notable Question Revival,NULL,NULL,0,NULL,NULL 32838,120099,595860,NULL,NULL,NULL,0,NULL,NULL 32839,140903,1106862,NULL,NULL,NULL,0,NULL,NULL 32840,248119,1065072,Supporter Teacher Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 32841,246462,1318874,Popular Question Yearling Popular Question Popular Question Caucus Popular Question Popular Question Famous Question Inquisitive Notable Question Popular Question Yearling Popular Question Popular Question Critic Nice Question Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 32842,303123,1441888,NULL,NULL,NULL,0,NULL,NULL 32843,243637,855059,Popular Question Notable Question Curious Teacher Critic,NULL,NULL,0,NULL,NULL 32844,10135,834656,NULL,NULL,NULL,0,NULL,NULL 32845,452259,243579,Good Question,NULL,NULL,0,NULL,NULL 32846,465427,277659,Yearling Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32847,78137,906885,NULL,NULL,NULL,0,NULL,NULL 32848,1218,967880,NULL,NULL,NULL,0,NULL,NULL 32849,36935,331402,Autobiographer Organizer Curious Promoter Benefactor Popular Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 32850,341504,770286,NULL,NULL,NULL,0,NULL,NULL 32851,168750,462462,Yearling Popular Question Notable Question Nice Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 32852,3977164,462462,Yearling Popular Question Notable Question Nice Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 32853,1769610,1079519,NULL,NULL,NULL,0,NULL,NULL 32854,134939,1194257,NULL,NULL,NULL,0,NULL,NULL 32855,2067300,1020482,NULL,NULL,NULL,0,NULL,NULL 32856,381868,185775,NULL,NULL,NULL,0,NULL,NULL 32857,903868,490174,NULL,NULL,NULL,0,NULL,NULL 32858,1492696,1188309,NULL,NULL,NULL,0,NULL,NULL 32859,366931,493621,NULL,NULL,NULL,0,NULL,NULL 32860,106306,1278988,NULL,NULL,NULL,0,NULL,NULL 32861,891198,803050,Famous Question Popular Question Custodian Notable Question Caucus Popular Question Necromancer Notable Question Yearling Revival Notable Question Caucus Popular Question Documentation User Custodian Self-Learner Caucus Constituent Yearling Nice Question,NULL,NULL,0,NULL,NULL 32862,25693,659356,NULL,NULL,NULL,0,NULL,NULL 32863,118943,438235,Nice Answer Popular Question Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32864,10007796,309767,Teacher,NULL,NULL,0,NULL,NULL 32865,9387,309767,Teacher,NULL,NULL,0,NULL,NULL 32866,233078,617467,Notable Question,NULL,NULL,0,NULL,NULL 32867,421806,438544,Nice Answer Nice Answer Good Answer Great Answer Yearling Good Answer Necromancer Nice Answer Enlightened Good Answer Generalist Announcer Announcer Announcer Great Answer Good Answer Nice Answer Good Answer Caucus Constituent Nice Answer python Yearling Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened regex Popular Question Caucus Nice Answer Nice Answer Enlightened Yearling Guru Guru Good Answer,NULL,NULL,0,NULL,NULL 32868,464965,1178121,NULL,NULL,NULL,0,NULL,NULL 32869,228105,489092,Critic Popular Question,NULL,NULL,0,NULL,NULL 32870,543608,96569,Necromancer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 32871,844681,58565,Necromancer Yearling Revival Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 32872,144779,173196,NULL,NULL,NULL,0,NULL,NULL 32873,1104111,352216,NULL,NULL,NULL,0,NULL,NULL 32874,49218,29451,Nice Question Notable Question Yearling Nice Question Notable Question Notable Question Popular Question Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 32875,64544,581972,NULL,NULL,NULL,0,NULL,NULL 32876,1198198,577143,Popular Question Yearling Caucus Popular Question Notable Question Famous Question Custodian Civic Duty,NULL,NULL,0,NULL,NULL 32877,435094,267705,Yearling Notable Question Notable Question Announcer Popular Question Good Answer Notable Question Famous Question Notable Question Civic Duty Caucus Constituent Popular Question Popular Question Nice Answer Yearling Revival Popular Question Nice Answer Great Question Yearling Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 32878,2296235,267705,Yearling Notable Question Notable Question Announcer Popular Question Good Answer Notable Question Famous Question Notable Question Civic Duty Caucus Constituent Popular Question Popular Question Nice Answer Yearling Revival Popular Question Nice Answer Great Question Yearling Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 32879,22514,530763,Popular Question Nice Question Caucus Notable Question Popular Question Popular Question Popular Question Famous Question Self-Learner Custodian Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 32880,176446,1169517,NULL,NULL,NULL,0,NULL,NULL 32881,1284376,1140972,NULL,NULL,NULL,0,NULL,NULL 32882,90164,1551919,NULL,NULL,NULL,0,NULL,NULL 32883,18962,624431,NULL,NULL,NULL,0,NULL,NULL 32884,202464,974101,Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Famous Question Famous Question Popular Question Nice Question Critic,NULL,NULL,0,NULL,NULL 32885,42374,414191,NULL,NULL,NULL,0,NULL,NULL 32886,101257,72321,Notable Question Nice Answer Good Answer Necromancer Nice Answer Necromancer Popular Question Nice Answer Yearling Revival Great Answer Good Answer Necromancer Necromancer Nice Answer Nice Answer Necromancer Famous Question Nice Answer Revival Nice Question Necromancer Nice Answer Revival Good Answer Revival Necromancer Great Answer Notable Question Necromancer Nice Question Great Answer Nice Answer Notable Question ruby-on-rails Necromancer Good Question Nice Answer Good Answer ruby Necromancer Nice Answer Guru Nice Answer Announcer Necromancer Yearling Nice Answer Necromancer Necromancer Nice Answer Necromancer Popular Question Good Question Good Answer Necromancer Necromancer Favorite Question Announcer Nice Answer Necromancer Great Question Revival Announcer Good Answer Nice Answer Necromancer Necromancer Announcer Census Great Question Announcer Yearling Inquisitive Announcer Good Answer Notable Question Necromancer Announcer Necromancer Necromancer Announcer Good Answer Nice Answer Archaeologist Good Answer Necromancer Famous Question,NULL,pThis example uses Bash built in href http pubs opengroup org onlinepubs 9699919799 utilities getopts html rel noreferrer codegetopts code command and is from the href https google github io styleguide shell xml showone Case statement Case statement rel noreferrer Google Shell Style Guide ppre codea flag flag files verbose false print usage printf Usage while getopts abf flag do case flag in flag true flag true files OPTARG verbose true print usage exit esacdone code prep emNote If character is followed by colon codef code that option is expected to have an argument em ppExample usage code script filename code ppUsing getopts has several advantages over the accepted answer pullithe while condition is lot more readable and shows what the accepted options are lilicleaner code no counting the number of parameters and shifting liliyou can join options code code code abc code li ulpHowever big disadvantage is that it doesn support long options only single character options that would be function named error declared before its usage It could for example print the error message passed to it and then exit with non zero status Sorry for the confusion ll change the example to be more clear h2TL DR h2pre codebool trueif bool true code prehrh2Issues with Miku href https stackoverflow com revisions 2953673 original answer h2pI do strongnot strong recommend the accepted answersup1 sup Its syntax is pretty but it has some flaws ppSay we have the following condition ppre codeif var then echo Muahahaha fi code prepIn the following casessup2 sup this condition will evaluate to strongtrue strong and execute the nested command ppre code Variable var not defined beforehand Case 1var Equivalent to var Case 2var Case 3unset var Case 4var lt some valid command gt Case code prepTypically you only want your condition to evaluate to true when your boolean variable codevar code in this example is explicitly set to true All the others cases are dangerously misleading ppThe last case is especially naughty because it will execute the command contained in the variable which is why the condition evaluates to true for valid commandssup3 sup ppHere is harmless example ppre codevar echo this text will be displayed when the condition is evaluated if var then echo Muahahaha fi Outputs this text will be displayed when the condition is evaluated Muahahaha code prepQuoting your variables is safer codeif var then code In the above cases you should get warning that the command is not found But we can still do better see my recommendations at the bottom pp sup href https stackoverflow com 21768067 72321 Also see Mike Holt explanation of Miku original answer sup ph2Issues with Hbar answer h2pThis approach also has unexpected behaviour ppre codevar falseif var then echo This won print var is false fi Outputs This won print var is false code prepYou would expect the above condition to evaluate to false thus never executing the nested statement Surprise ppQuoting the value code false code quoting the variable code var code or using codetest code or code code instead of code code do not make difference ph2What DO recommend h2pHere are ways recommend you check your booleans They work as expected ppre codebool trueif bool true thenif bool true thenif bool true thenif bool true thenif bool true thenif bool true thenif test bool true thenif test bool true then code prepThey re all pretty much equivalent You ll have to type few more keystrokes than the approaches in the other answerssup5 sup but your code will be more defensive phrh3Footnotes h3olliMiku answer has since been edited and no longer contains known flaws liliNot an exhaustive list liliA valid command in this context means command that exists It doesn matter if the command is used correctly or incorrectly codeman woman code would still be considered valid command even if no such man page exists liliFor invalid non existent commands Bash will simply complain that the command wasn found liliIf you care about length the first recommendation is the shortest li ol absolutely evaluating input isn as risky when you control the input but still consider it bad practice that should be avoided if it can easily be avoided Someone who has only ever seen and used the former style may not know about its flaws which can cause unexpected behaviour,0,NULL,NULL 32887,4619627,575643,Famous Question Popular Question Yearling Nice Question Caucus Constituent Informed Announcer Notable Question Popular Question Announcer Caucus Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Revival Notable Question Caucus Famous Question Nice Question Announcer Custodian Notable Question Nice Question,NULL,NULL,0,NULL,NULL 32888,11043922,575643,Famous Question Popular Question Yearling Nice Question Caucus Constituent Informed Announcer Notable Question Popular Question Announcer Caucus Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Revival Notable Question Caucus Famous Question Nice Question Announcer Custodian Notable Question Nice Question,NULL,NULL,0,NULL,NULL 32889,257046,220935,Nice Question Notable Question Caucus Yearling Custodian Custodian Custodian Proofreader Strunk & White Tenacious Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32890,183590,1278847,NULL,NULL,NULL,0,NULL,NULL 32891,47229,968688,NULL,NULL,NULL,0,NULL,NULL 32892,140958,432715,Famous Question Notable Question Popular Question Popular Question Nice Question Nice Answer Popular Question Critic,NULL,NULL,0,NULL,NULL 32893,187404,329292,Popular Question Yearling Nice Answer Enlightened Investor Organizer Peer Pressure Good Question Notable Question Popular Question Caucus Popular Question Yearling Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 32894,63932,443096,NULL,NULL,NULL,0,NULL,NULL 32895,67259,308265,Custodian Necromancer Yearling Nice Answer Documentation User Civic Duty,NULL,NULL,0,NULL,NULL 32896,1507492,463348,NULL,NULL,NULL,0,NULL,NULL 32897,182985,313114,NULL,NULL,NULL,0,NULL,NULL 32898,446804,708572,NULL,NULL,NULL,0,NULL,NULL 32899,141251,194229,Popular Question Yearling Popular Question Yearling Popular Question Popular Question Popular Question Nice Answer Notable Question Great Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 32900,186656,355306,NULL,NULL,NULL,0,NULL,NULL 32901,4411860,574187,Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Necromancer Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,pre codeprint list sep code prepNote that you shouldn use the word codelist code as variable name since it the name of builtin type for that to work in python don forget to from future import print function as the first line in your file,0,NULL,NULL 32902,357502,355401,Nice Question Custodian Yearling Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Notable Question Revival Popular Question Nice Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Good Question Good Question Popular Question Notable Question Nice Question Famous Question Famous Question Caucus Popular Question Necromancer Popular Question Notable Question Popular Question Notable Question Notable Question Revival Popular Question Census Popular Question Yearling Socratic Nice Answer Caucus Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Answer Popular Question Popular Question Popular Question Custodian Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Taxonomist Popular Question Notable Question,NULL,NULL,0,NULL,NULL 32903,524901,874579,NULL,NULL,NULL,0,NULL,NULL 32904,904121,775568,NULL,NULL,NULL,0,NULL,NULL 32905,308181,1564145,Teacher,NULL,NULL,0,NULL,NULL 32906,6111,543850,NULL,NULL,NULL,0,NULL,NULL 32907,9718,596531,Editor,NULL,NULL,0,NULL,NULL 32908,1522205,1210331,NULL,NULL,NULL,0,NULL,NULL 32909,234318,133372,NULL,NULL,NULL,0,NULL,NULL 32910,7412501,733350,NULL,NULL,NULL,0,NULL,NULL 32911,179885,960622,Nice Answer,NULL,NULL,0,NULL,NULL 32912,186998,717636,Notable Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Famous Question Yearling Favorite Question Nice Answer Notable Question Popular Question Popular Question Favorite Question Great Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 32913,207112,617377,NULL,NULL,NULL,0,NULL,NULL 32914,404363,928239,NULL,NULL,NULL,0,NULL,NULL 32915,260889,748259,Investor Altruist Revival Notable Question Good Answer Nice Answer Guru Civic Duty Yearling Nice Answer Notable Question Popular Question Guru Good Answer Nice Answer Enlightened Nice Answer Guru Caucus Constituent Popular Question Yearling Caucus Nice Answer Nice Answer Good Answer Popular Question Notable Question Caucus Custodian Yearling Guru,NULL,NULL,0,NULL,NULL 32916,788475,209926,Popular Question,NULL,NULL,0,NULL,NULL 32917,547017,183267,Yearling Notable Question Popular Question Notable Question Caucus Caucus Constituent Notable Question Revival Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 32918,2026174,1462310,NULL,NULL,NULL,0,NULL,NULL 32919,589843,1462310,NULL,NULL,NULL,0,NULL,NULL 32920,73701,423033,Revival Necromancer Yearling Nice Answer Enlightened Custodian Tenacious Caucus Yearling Documentation User Necromancer Census Caucus Constituent Nice Answer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 32921,1355304,824719,NULL,NULL,NULL,0,NULL,NULL 32922,83211,1416312,NULL,NULL,NULL,0,NULL,NULL 32923,56291,916101,Teacher Revival,NULL,NULL,0,NULL,NULL 32924,226840,774543,Notable Question Notable Question Nice Question Caucus,NULL,NULL,0,NULL,NULL 32925,412186,1443538,NULL,NULL,NULL,0,NULL,NULL 32926,237286,1133157,Tumbleweed Commentator Caucus Critic Announcer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 32927,366854,1392306,NULL,NULL,NULL,0,NULL,NULL 32928,139094,520121,NULL,NULL,NULL,0,NULL,NULL 32929,317857,1162298,NULL,NULL,NULL,0,NULL,NULL 32930,10963362,1162298,NULL,NULL,NULL,0,NULL,NULL 32931,19583,69802,Guru Good Answer Yearling Good Answer Nice Answer Enlightened Guru Great Answer Great Answer android-activity Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Populist Good Answer Nice Answer Nice Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Great Answer Guru Nice Answer Enlightened Famous Question Good Answer Good Answer Good Answer Good Answer Good Answer Custodian Nice Answer Enlightened Yearling Nice Answer Guru Populist Nice Answer Enlightened Good Answer Nice Answer Guru Great Answer,NULL,NULL,0,NULL,NULL 32932,1140100,72846,Favorite Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 32933,750258,1007072,Supporter,NULL,NULL,0,NULL,NULL 32934,44549,1082326,Commentator Notable Question Popular Question Nice Question Yearling Teacher,NULL,NULL,0,NULL,NULL 32935,3883561,767784,NULL,NULL,NULL,0,NULL,NULL 32936,16832,1035504,NULL,NULL,NULL,0,NULL,NULL 32937,222768,268224,Good Answer Yearling Nice Answer Custodian Nice Question Yearling Nice Question Notable Question Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 32938,216,295469,NULL,NULL,NULL,0,NULL,NULL 32939,78198,309846,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 32940,3081890,1203944,NULL,NULL,NULL,0,NULL,NULL 32941,95011,529339,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 32942,930509,524858,NULL,NULL,NULL,0,NULL,NULL 32943,1520644,1270861,Notable Question Yearling Popular Question Good Question Popular Question Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 32944,163806,775308,NULL,NULL,NULL,0,NULL,NULL 32945,212525,1013031,Good Answer Good Answer Yearling Caucus Nice Answer Caucus Constituent Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 32946,182203,399819,NULL,NULL,NULL,0,NULL,NULL 32947,16246,96098,Yearling Good Answer,NULL,NULL,0,NULL,NULL 32948,48296,861648,ruby Yearling Nice Answer Enlightened Great Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 32949,172207,532264,NULL,NULL,NULL,0,NULL,NULL 32950,224244,1005503,NULL,NULL,NULL,0,NULL,NULL 32951,365254,255489,Nice Question Yearling Popular Question Pundit Good Answer Notable Question Favorite Question Caucus Announcer Nice Answer Enlightened Revival Yearling Announcer Nice Answer Popular Question Popular Question Caucus Nice Answer Nice Answer Enlightened Documentation User Popular Question Yearling Nice Question Popular Question Notable Question Caucus Announcer Announcer Custodian Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 32952,17844,29253,Nice Question Yearling Notable Question Popular Question Good Question Nice Answer Caucus Good Question Yearling Self-Learner Custodian Popular Question Notable Question Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 32953,570758,813938,NULL,NULL,NULL,0,NULL,NULL 32954,18718,401602,NULL,NULL,NULL,0,NULL,NULL 32955,561681,974862,NULL,NULL,NULL,0,NULL,NULL 32956,234261,863732,NULL,NULL,NULL,0,NULL,NULL 32957,1028907,429487,Notable Question Yearling Curious Notable Question Nice Answer Critic,NULL,NULL,0,NULL,NULL 32958,210283,416231,NULL,NULL,NULL,0,NULL,NULL 32959,220624,759573,Nice Question Popular Question Notable Question Notable Question Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 32960,20849,274400,NULL,NULL,NULL,0,NULL,NULL 32961,396041,283977,Popular Question,NULL,NULL,0,NULL,NULL 32962,54875,766296,NULL,NULL,NULL,0,NULL,NULL 32963,3411587,1169477,Scholar,NULL,NULL,0,NULL,NULL 32964,12928,44740,Caucus Yearling,NULL,NULL,0,NULL,NULL 32965,168822,798270,NULL,NULL,,0,, 32966,1961156,1183374,Teacher Editor,NULL,NULL,0,NULL,NULL 32967,481809,153569,Nice Answer Yearling Popular Question Good Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 32968,346115,1490806,Popular Question Popular Question Self-Learner Famous Question Nice Question Good Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Civic Duty Yearling Popular Question Nice Answer Nice Question Famous Question Popular Question Notable Question Notable Question Notable Question Caucus Custodian Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Custodian Organizer Good Question Famous Question,NULL,NULL,0,NULL,NULL 32969,740679,978153,NULL,NULL,NULL,0,NULL,NULL 32970,15981,775807,NULL,NULL,NULL,0,NULL,NULL 32971,38065,773750,NULL,NULL,NULL,0,NULL,NULL 32972,2066425,1449054,NULL,NULL,NULL,0,NULL,NULL 32973,13075,1449054,NULL,NULL,NULL,0,NULL,NULL 32974,959975,472179,Tumbleweed Scholar Student Yearling Yearling Custodian Citizen Patrol Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 32975,3021566,101915,Yearling Yearling,NULL,NULL,0,NULL,NULL 32976,196147,24616,NULL,NULL,NULL,0,NULL,NULL 32977,10838265,1333206,NULL,NULL,NULL,0,NULL,NULL 32978,491585,1333206,NULL,NULL,NULL,0,NULL,NULL 32979,50280,1260295,NULL,NULL,NULL,0,NULL,NULL 32980,55049,1363188,NULL,NULL,NULL,0,NULL,NULL 32981,67286,226925,NULL,NULL,NULL,0,NULL,NULL 32982,512686,499734,NULL,NULL,NULL,0,NULL,NULL 32983,127859,1344999,NULL,NULL,NULL,0,NULL,NULL 32984,874821,181845,Yearling Notable Question,NULL,NULL,0,NULL,NULL 32985,6125,575269,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 32986,521541,1061828,NULL,NULL,NULL,0,NULL,NULL 32987,41235,174644,Nice Question,NULL,NULL,0,NULL,NULL 32988,418789,423858,Yearling,NULL,NULL,0,NULL,NULL 32989,698133,213999,Yearling,NULL,NULL,0,NULL,NULL 32990,617017,610378,Yearling Nice Question Popular Question Caucus Yearling Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 32991,887149,588262,NULL,NULL,NULL,0,NULL,NULL 32992,650981,513260,Nice Answer,NULL,NULL,0,NULL,NULL 32993,54982,201654,Nice Answer Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 32994,112434,823739,NULL,NULL,NULL,0,NULL,NULL 32995,44573,37511,Yearling Notable Question Yearling Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 32996,106668,51721,Custodian Yearling Famous Question Good Question Caucus Popular Question Announcer,NULL,NULL,0,NULL,NULL 32997,396412,446839,NULL,NULL,NULL,0,NULL,NULL 32998,107881,429406,NULL,NULL,NULL,0,NULL,NULL 32999,256393,839607,NULL,NULL,NULL,0,NULL,NULL 33000,36836,458958,NULL,NULL,NULL,0,NULL,NULL 33001,346846,706123,Supporter,NULL,NULL,0,NULL,NULL 33002,9154386,706123,Supporter,NULL,NULL,0,NULL,NULL 33003,359198,1329152,NULL,NULL,NULL,0,NULL,NULL 33004,112524,718902,NULL,NULL,NULL,0,NULL,NULL 33005,1354048,360679,NULL,NULL,NULL,0,NULL,NULL 33006,41828,354009,Yearling Guru Notable Question Caucus Constituent Favorite Question Notable Question Self-Learner Yearling Good Answer Notable Question Great Question Strunk & White Necromancer Favorite Question Documentation User Nice Question Nice Question Popular Question Notable Question Notable Question Nice Answer Notable Question Yearling Guru git Announcer Announcer,NULL,NULL,0,NULL,NULL 33007,146611,1254301,Teacher,NULL,NULL,0,NULL,NULL 33008,368865,704627,NULL,NULL,NULL,0,NULL,NULL 33009,1394173,1368140,Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33010,42407,1368140,Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33011,107898,163828,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 33012,4721,410414,Yearling Good Answer,NULL,NULL,0,NULL,NULL 33013,272962,1097317,NULL,NULL,NULL,0,NULL,NULL 33014,23047,1098526,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33015,408795,974249,NULL,NULL,NULL,0,NULL,NULL 33016,3920,868950,NULL,NULL,NULL,0,NULL,NULL 33017,148095,1375997,NULL,NULL,NULL,0,NULL,NULL 33018,295226,153995,Popular Question Popular Question Notable Question Yearling Nice Question Good Question Notable Question Notable Question Yearling Nice Answer Enlightened Popular Question Notable Question Notable Question Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 33019,2278372,1254851,NULL,NULL,NULL,0,NULL,NULL 33020,2748,222467,Good Answer Good Answer Custodian Popular Question Excavator Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Question Popular Question Nice Answer Enlightened Popular Question java Good Answer Nice Answer Enlightened Nice Answer Notable Question Popular Question Popular Question Yearling Notable Question Nice Answer Notable Question Guru Popular Question Popular Question Popular Question Notable Question Taxonomist Yearling Notable Question Popular Question Nice Answer Enlightened Good Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling,NULL,gcloud preview app deploy process takes minutes is this normal google app engine google cloud platform gcloud pTrying out new flexible app engine runtime In this case custom Ruby on Rails runtime based on the google provided ruby runtime ppWhen firing of codegcloud preview app deploy code the whole process takes minutes most of which is updating service Is this normal And more importantly how can speed it up ppRegards ppWard that normal you re building uploading docker images most the time,0,NULL,NULL 33021,384226,594879,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33022,321,356110,NULL,NULL,,0,, 33023,42929,246695,NULL,NULL,NULL,0,NULL,NULL 33024,22231,783043,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Good Answer Enlightened Good Answer Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33025,23804,107107,NULL,NULL,NULL,0,NULL,NULL 33026,13839,289985,Good Answer Good Question Yearling Nice Answer Enlightened Guru Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Good Answer Yearling symfony Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Famous Question Great Answer Guru Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 33027,1140148,541001,NULL,NULL,NULL,0,NULL,NULL 33028,563385,1447824,NULL,NULL,NULL,0,NULL,NULL 33029,419739,729489,Nice Answer Good Answer Yearling Revival Yearling Electorate,NULL,NULL,0,NULL,NULL 33030,1086645,556676,NULL,NULL,NULL,0,NULL,NULL 33031,6845353,1136682,NULL,NULL,NULL,0,NULL,NULL 33032,337686,1136682,NULL,NULL,NULL,0,NULL,NULL 33033,234368,439355,NULL,NULL,NULL,0,NULL,NULL 33034,4168,929251,Editor Informed,NULL,NULL,0,NULL,NULL 33035,222893,971422,NULL,NULL,NULL,0,NULL,NULL 33036,273039,974994,NULL,NULL,NULL,0,NULL,NULL 33037,602273,1559360,Tumbleweed Teacher Student Supporter Census,NULL,NULL,0,NULL,NULL 33038,3159543,1559360,Tumbleweed Teacher Student Supporter Census,NULL,NULL,0,NULL,NULL 33039,282748,1133296,NULL,NULL,NULL,0,NULL,NULL 33040,97621,351730,Caucus Critic Tumbleweed,NULL,NULL,0,NULL,NULL 33041,4114970,813879,NULL,NULL,NULL,0,NULL,NULL 33042,38648,102960,Notable Question Yearling Necromancer Notable Question Revival Civic Duty Nice Answer Yearling Popular Question Necromancer Popular Question Yearling Nice Question Famous Question Nice Answer Popular Question Good Question Famous Question Notable Question Explainer Yearling Announcer Inquisitive Popular Question Nice Answer Popular Question Good Question Necromancer Popular Question Yearling Famous Question Good Question Nice Question Notable Question Nice Answer,NULL,pTo encode the characters you can use codeCGI escapeHTML code ppre codestring CGI escapeHTML test escaping lt characters gt code prepTo decode them there is codeCGI unescapeHTML code ppre codeCGI unescapeHTML test amp quot unescaping amp quot amp lt characters amp gt code prepOf course before that you need to include the CGI library ppre coderequire cgi code prepAnd if you re in Rails you don need to use CGI to encode the string There the codeh code method ppre code lt escaping lt html gt gt code pre It 2017 unescapeHTML still omits bunch of textual entities such as aacute nbsp etc It suited only for pure HTML related entities or hex based ones href https intellij support jetbrains com hc en us articles 206544839 How to manage projects under Version Control Systems rel noreferrer The official support page should answer your question ppSo in your gitignore you might ignore the files ending with code iws code and the codeworkspace xml code and codetasks xml code files so you can share with coworkers project wide settings like code style folder types etc,0,NULL,NULL 33043,64274,1158802,Yearling Yearling Yearling Scholar Custodian Custodian,NULL,NULL,0,NULL,NULL 33044,47038,1008157,Supporter,NULL,NULL,0,NULL,NULL 33045,232607,80849,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 33046,847828,1357842,Nice Answer Revival Nice Question Notable Question,NULL,NULL,0,NULL,NULL 33047,119265,1162504,NULL,NULL,NULL,0,NULL,NULL 33048,6603186,630972,NULL,NULL,NULL,0,NULL,NULL 33049,211891,406240,NULL,NULL,NULL,0,NULL,NULL 33050,184119,1220869,NULL,NULL,NULL,0,NULL,NULL 33051,452366,994702,NULL,NULL,NULL,0,NULL,NULL 33052,174823,978414,Informed Suffrage Excavator Commentator Citizen Patrol Critic Autobiographer Yearling Caucus Announcer Caucus Fanatic,NULL,NULL,0,NULL,NULL 33053,245267,533949,NULL,NULL,NULL,0,NULL,NULL 33054,8281872,533949,NULL,NULL,NULL,0,NULL,NULL 33055,13216,32140,Popular Question Good Answer Favorite Question Good Answer Nice Answer Yearling Popular Question Good Answer Notable Question Populist Popular Question Yearling Announcer Announcer Census Custodian Announcer Announcer Necromancer Nice Question Popular Question Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 33056,1150045,1027440,Necromancer Yearling Custodian Custodian Investor Excavator Caucus Custodian Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 33057,443820,1144203,Yearling Nice Question Nice Answer Enlightened Announcer Announcer Caucus Constituent Famous Question Nice Answer Enlightened Nice Answer Yearling Announcer Announcer Caucus Constituent Nice Answer Enlightened Booster Announcer Announcer Documentation User Good Answer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Booster Caucus Constituent Announcer Good Answer Booster Announcer Announcer Nice Answer Enlightened Publicist,NULL,NULL,0,NULL,NULL 33058,83365,986897,NULL,NULL,NULL,0,NULL,NULL 33059,539566,726581,Scholar Self-Learner,NULL,NULL,0,NULL,NULL 33060,33798,142240,Good Answer Notable Question Notable Question Guru Electorate Yearling Popular Question Good Answer Popular Question Taxonomist Nice Question Yearling Notable Question Documentation User Enlightened Guru Caucus Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 33061,42373,543280,Enthusiast Informed Autobiographer Yearling Custodian Yearling Yearling Yearling Yearling Revival Caucus Constituent Necromancer Nice Answer Yearling Necromancer Caucus Necromancer Nice Answer Nice Answer Enlightened Custodian,NULL,How to Flatten Multidimensional Array php arrays multidimensional array flatten pIs it possible in PHP to flatten bi multi dimensional array without using recursion or references ppI only interested in the values so the keys can be ignored thinking in the lines of codearray map code and codearray values code Have look at flatten https github com ihor Nspl flattensequence depth null function from Nspl https github com ihor Nspl You also can specify depth with it pHave look at href https github com ihor Nspl memoizedfunction rel nofollow memoized function implementation from href https github com ihor Nspl rel nofollow Nspl ppre codefunction memoized callable function return function use function static memory array args func get args key serialize args if isset memory key amp amp array key exists key memory memory key call user func array function args return memory key code prepOr if you looking for caching function results between server requests you can use href https github com ihor Cachalot rel nofollow Cachalot ppre code cache new Cachalot ApcCache result cache gt getCached function args code prepDifferent back ends are supported Apc Xcache Memcached Redis Couchbase Note that it builds caching key based on the function name and the arguments So for Closures or inherited functions you need to provide cache suffix to avoid cache collision,1,NULL,Caching function results in PHP php caching memoization pI making simple tool to cache function results ppIt look like ppre codeglobal function results function results array function getMembers conditions default array order gt name array abc def Help need from here make unique id from parameters value and function name ex uid to here global function results if isset function results uid return function results uid else do function logic code prep the function and its parameters are just an example ppAny suggestions pHave look at href https github com ihor Nspl memoizedfunction rel nofollow memoized function implementation from href https github com ihor Nspl rel nofollow Nspl ppre codefunction memoized callable function return function use function static memory array args func get args key serialize args if isset memory key amp amp array key exists key memory memory key call user func array function args return memory key code prepOr if you looking for caching function results between server requests you can use href https github com ihor Cachalot rel nofollow Cachalot ppre code cache new Cachalot ApcCache result cache gt getCached function args code prepDifferent back ends are supported Apc Xcache Memcached Redis Couchbase 33062,27437,889549,NULL,NULL,NULL,0,NULL,NULL 33063,191626,709778,Good Answer Nice Answer Revival Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 33064,658134,1474207,NULL,NULL,NULL,0,NULL,NULL 33065,89915,1320191,NULL,NULL,NULL,0,NULL,NULL 33066,99967,1012044,NULL,NULL,NULL,0,NULL,NULL 33067,85682,435917,NULL,NULL,NULL,0,NULL,NULL 33068,1050624,604353,NULL,NULL,NULL,0,NULL,NULL 33069,246676,980773,Yearling Nice Answer Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 33070,1173077,913120,NULL,NULL,NULL,0,NULL,NULL 33071,37537,1490261,NULL,NULL,NULL,0,NULL,NULL 33072,397718,1215168,Scholar Popular Question,NULL,NULL,0,NULL,NULL 33073,251081,711827,NULL,NULL,NULL,0,NULL,NULL 33074,652502,469153,Nice Answer Nice Answer Yearling Favorite Question Nice Question Revival Great Answer Yearling Necromancer Necromancer Necromancer Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 33075,35828,1024147,Yearling Nice Answer Yearling Student Good Answer Yearling,NULL,NULL,0,NULL,NULL 33076,38382,399489,Student Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 33077,103322,784685,NULL,NULL,NULL,0,NULL,NULL 33078,70698,913231,NULL,NULL,NULL,0,NULL,NULL 33079,1765259,1480018,Nice Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Necromancer Popular Question Popular Question Popular Question Famous Question Revival Popular Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Necromancer Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Nice Question Notable Question Famous Question Popular Question Good Answer Good Question Famous Question Popular Question Notable Question Nice Question Notable Question Yearling Popular Question Famous Question Famous Question Nice Question Popular Question Nice Question Nice Answer Popular Question Socratic Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Organizer Popular Question Notable Question Notable Question Popular Question Caucus Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Notable Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Famous Question Popular Question Famous Question Good Answer Citizen Patrol Nice Answer Popular Question Popular Question Popular Question Popular Question Yearling Caucus Peer Pressure Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Famous Question Nice Question Civic Duty Popular Question Notable Question Popular Question Notable Question Investor Altruist Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33080,1090255,1099354,NULL,NULL,NULL,0,NULL,NULL 33081,99004,982253,Citizen Patrol Custodian Nice Answer Yearling Civic Duty Caucus Custodian Revival Yearling Documentation User Good Answer,NULL,NULL,0,NULL,NULL 33082,1220493,1309631,Popular Question,NULL,NULL,0,NULL,NULL 33083,232139,54254,Notable Question,NULL,NULL,0,NULL,NULL 33084,1179128,754120,NULL,NULL,NULL,0,NULL,NULL 33085,30862,1904,html Citizen Patrol Explainer Good Answer Yearling Revival Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 33086,26253,516002,NULL,NULL,NULL,0,NULL,NULL 33087,183379,1158592,Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 33088,216170,878583,NULL,NULL,NULL,0,NULL,NULL 33089,1123521,70173,Famous Question Yearling Popular Question Good Question Nice Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 33090,1530060,216069,Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33091,43295,216069,Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33092,1070131,216069,Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33093,1213314,955422,Notable Question Custodian Custodian Tumbleweed Civic Duty Yearling Popular Question Caucus Popular Question Nice Question Nice Answer Yearling Nice Answer Necromancer Notable Question Notable Question Peer Pressure Yearling Notable Question Explainer Organizer Nice Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 33094,7722,654725,NULL,NULL,NULL,0,NULL,NULL 33095,114028,1498983,NULL,NULL,NULL,0,NULL,NULL 33096,352802,745500,NULL,NULL,NULL,0,NULL,NULL 33097,1505108,131097,Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 33098,302450,616960,NULL,NULL,NULL,0,NULL,NULL 33099,449122,589924,Nice Answer Nice Answer Nice Answer Enlightened perl-data-structures Yearling Nice Answer Nice Answer Nice Answer performance Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Nice Answer Nice Answer Nice Answer datetime Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Nice Answer Guru Documentation Pioneer Nice Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer Caucus Nice Answer Nice Answer awk Nice Answer Nice Answer Nice Answer Nice Answer sockets Good Answer utf-8 Announcer Good Answer Guru Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer split Revival linux Announcer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer c Caucus Nice Answer Nice Answer Nice Question Revival Nice Answer Nice Answer Enlightened xml-libxml Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened io Nice Answer Documentation User Famous Question Nice Answer Nice Answer Enlightened Nice Question unicode Nice Question Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Popular Question character-encoding bash Popular Question xs Nice Answer Yearling Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened perlbrew Caucus Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Illuminator Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer python Nice Answer Enlightened Good Answer Guru replace arrays Nice Answer Enlightened Nice Answer Enlightened,NULL,pFirst it not bug pblockquote pAn array variable is considered set if subscript has been assigned value The null string is valid value blockquotepNo subscript has been assigned value so the array isn set phrpThere is conditional you can use inline to achieve what you want Use code arr arr code instead of code arr code ppre code function args perl say say ARGV for ARGV set arr args arr bash arr unbound variable args arr arr arr args arr arr 10 arr args arr arr 30 a1 b2 code prepTested with bash 25 and 11 parameter word only expands word if parameter is not unset pFirst it not bug pblockquote pAn array variable is considered set if subscript has been assigned value The null string is valid value blockquotepNo subscript has been assigned value so the array isn set phrpThere is conditional you can use inline to achieve what you want Use code arr arr code instead of code arr code ppre code function args perl say say ARGV for ARGV set arr args arr bash arr unbound variable args arr arr arr args arr arr 10 arr args arr arr 30 a1 b2 code prepTested with bash 25 and 11 Cerderberg Doesn work unset arr arr args arr arr vs args arr arr,0,NULL,NULL 33100,18623,731420,NULL,NULL,NULL,0,NULL,NULL 33101,46578,774361,Notable Question,NULL,NULL,0,NULL,NULL 33102,2925658,618599,Informed Famous Question Nice Question Citizen Patrol Custodian Custodian Custodian Revival Yearling Notable Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 33103,1769,365916,NULL,NULL,NULL,0,NULL,NULL 33104,293338,2697,Necromancer Nice Question Good Answer Yearling Notable Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 33105,1030723,331321,Notable Question Notable Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 33106,335918,1166970,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 33107,42578,1371775,Good Answer Yearling Custodian Custodian Caucus Yearling Caucus Caucus Constituent Yearling Great Answer,NULL,NULL,1,NULL,Hierarchical enum in Java java enums hierarchical pLet say have structure like this pp href https stack imgur com eR7C7 png rel nofollow noreferrer img src https stack imgur com eR7C7 png alt enter image description here ppIs it possible to create an enum that will return the string value of selected cell For example ppre codeenum GROUP MAIN1 SUBGROUP1 COL1 code prepwill return value strong COL1 strong ppI was looking for nested enums but didn find the solution to this situation pYou can do this with such trick ppre codepublic interface GROUPMAIN1 enum SUBGROUP1 implements GROUPMAIN1 COL1 COL2 COL3 enum SUBGROUP2 implements GROUPMAIN1 COL3 COL4 code prepSo to get enum you will need to use codeGROUPMAIN1 SUBGROUP1 COL1 code ppIt can also be done in another way if all you need is just string constants ppre codepublic interface GROUPMAIN1 interface SUBGROUP1 String COL1 COL1 String COL2 COL2 interface SUBGROUP2 String COL3 COL3 String COL4 COL4 code pre 33108,71997,44647,Popular Question Notable Question Notable Question Caucus Custodian,NULL,NULL,0,NULL,NULL 33109,72011,54887,Scholar Necromancer Curious,NULL,NULL,0,NULL,NULL 33110,499759,1043635,NULL,NULL,NULL,0,NULL,NULL 33111,266778,660733,NULL,NULL,NULL,0,NULL,NULL 33112,340155,218236,NULL,NULL,NULL,0,NULL,NULL 33113,1566437,752223,NULL,NULL,NULL,0,NULL,NULL 33114,265584,664024,NULL,NULL,NULL,0,NULL,NULL 33115,468005,1073993,NULL,NULL,NULL,0,NULL,NULL 33116,6083670,515969,NULL,NULL,NULL,0,NULL,NULL 33117,270818,515969,NULL,NULL,NULL,0,NULL,NULL 33118,264415,932312,NULL,NULL,NULL,0,NULL,NULL 33119,814514,743211,NULL,NULL,NULL,0,NULL,NULL 33120,986395,1438124,NULL,NULL,NULL,0,NULL,NULL 33121,286597,986501,NULL,NULL,NULL,0,NULL,NULL 33122,1244130,136508,Organizer Yearling Nice Answer Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 33123,256138,663778,NULL,NULL,NULL,0,NULL,NULL 33124,118945,480998,NULL,NULL,NULL,0,NULL,NULL 33125,228287,538808,Popular Question,NULL,NULL,0,NULL,NULL 33126,293048,773502,Nice Answer Enlightened Yearling Favorite Question Custodian Yearling Famous Question Excavator Popular Question Nice Answer Yearling Quorum Notable Question,NULL,NULL,0,NULL,NULL 33127,202942,1343560,Yearling Good Answer Famous Question Nice Answer Enlightened Good Answer Good Answer Yearling Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 33128,881715,1115660,NULL,NULL,NULL,0,NULL,NULL 33129,767100,115807,Yearling Popular Question Good Answer Great Question Popular Question Yearling Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 33130,1503233,775877,NULL,NULL,NULL,0,NULL,NULL 33131,2373637,1115624,NULL,NULL,NULL,0,NULL,NULL 33132,466675,533065,NULL,NULL,NULL,0,NULL,NULL 33133,8671,638949,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33134,242542,330365,NULL,NULL,NULL,0,NULL,NULL 33135,364364,588502,NULL,NULL,NULL,0,NULL,NULL 33136,68222,1126016,NULL,NULL,NULL,0,NULL,NULL 33137,16502,503710,NULL,NULL,NULL,0,NULL,NULL 33138,32296,265621,NULL,NULL,NULL,0,NULL,NULL 33139,10654,400696,NULL,NULL,NULL,0,NULL,NULL 33140,139476,815139,Popular Question Announcer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 33141,468126,796788,NULL,NULL,NULL,0,NULL,NULL 33142,135138,423283,Yearling Popular Question Notable Question Notable Question Yearling Enthusiast Popular Question Famous Question Notable Question Yearling Favorite Question Famous Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 33143,2508,414415,Investor Necromancer Popular Question Nice Answer Custodian Necromancer Yearling Notable Question Popular Question Nice Question Nice Answer Yearling Popular Question Popular Question Popular Question Curious Nice Answer Enlightened Nice Answer Notable Question Yearling Excavator Citizen Patrol Notable Question Self-Learner Good Answer Popular Question Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 33144,10455992,414415,Investor Necromancer Popular Question Nice Answer Custodian Necromancer Yearling Notable Question Popular Question Nice Question Nice Answer Yearling Popular Question Popular Question Popular Question Curious Nice Answer Enlightened Nice Answer Notable Question Yearling Excavator Citizen Patrol Notable Question Self-Learner Good Answer Popular Question Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 33145,541557,425943,Popular Question Notable Question Yearling Famous Question Nice Question Notable Question Yearling Popular Question Great Question Necromancer Nice Answer Favorite Question Civic Duty Revival Popular Question Popular Question Famous Question Yearling Custodian,NULL,NULL,0,NULL,NULL 33146,452676,805029,NULL,NULL,NULL,0,NULL,NULL 33147,264625,1138252,Yearling Popular Question Nice Answer Popular Question Famous Question Yearling Famous Question Nice Answer Informed Custodian Nice Answer Enlightened mysql Yearling Notable Question git Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33148,121342,803576,Editor,NULL,NULL,0,NULL,NULL 33149,83181,155059,NULL,NULL,NULL,0,NULL,NULL 33150,285725,1389581,Popular Question Caucus Constituent Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33151,22716,20365,Informed Yearling Great Question Custodian Notable Question Caucus Yearling Nice Question Caucus Constituent Popular Question Yearling Custodian Favorite Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 33152,122418,15064,Nice Answer Enlightened Yearling Notable Question Announcer Caucus Yearling Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 33153,790923,255667,Necromancer Yearling Nice Answer Popular Question Good Answer Famous Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 33154,889822,1174928,Popular Question Student,NULL,NULL,0,NULL,NULL 33155,221342,772944,Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 33156,103286,245704,NULL,NULL,NULL,0,NULL,NULL 33157,69943,366565,NULL,NULL,NULL,0,NULL,NULL 33158,194196,1392559,NULL,NULL,NULL,0,NULL,NULL 33159,471708,782114,Famous Question Famous Question Yearling Popular Question Necromancer Nice Answer Popular Question Good Answer Populist Nice Answer Yearling Popular Question Great Answer Famous Question Nice Question Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 33160,20225,779561,NULL,NULL,NULL,0,NULL,NULL 33161,2495194,687207,Famous Question,NULL,NULL,0,NULL,NULL 33162,271201,146465,Teacher Famous Question Census Popular Question,NULL,NULL,0,NULL,NULL 33163,76381,260963,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 33164,63392,400335,NULL,NULL,NULL,0,NULL,NULL 33165,238001,329938,Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 33166,298145,1072544,NULL,NULL,NULL,0,NULL,NULL 33167,70639,360869,Custodian Revival Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 33168,364626,417297,Yearling Revival Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Promoter Popular Question Notable Question Yearling Caucus Constituent Popular Question Necromancer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 33169,1968911,910944,NULL,NULL,NULL,0,NULL,NULL 33170,20178,975322,Necromancer,NULL,NULL,0,NULL,NULL 33171,872979,36498,Nice Answer Taxonomist Popular Question Nice Question Good Answer Notable Question Good Answer Guru Notable Question Yearling Good Answer Custodian Census Enthusiast Good Answer Good Answer Investor Altruist Custodian Yearling Notable Question Census Informed Caucus Constituent Revival Nice Question Notable Question Synonymizer Civic Duty Revival Yearling Citizen Patrol Notable Question Guru,NULL,NULL,0,NULL,NULL 33172,266190,216028,Good Answer Yearling Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 33173,1516152,1107879,Critic Notable Question,NULL,NULL,0,NULL,NULL 33174,665836,384478,Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Yearling Caucus Nice Question Good Answer Nice Answer Notable Question Popular Question Revival Nice Answer Enlightened Popular Question Yearling Nice Answer Caucus Good Answer Popular Question Announcer Nice Answer Enlightened Famous Question Notable Question Necromancer Yearling Nice Answer Announcer Famous Question Popular Question,NULL,pLet Node itself do the work ppre codeconst path require path const relative path relative parent dir return relative amp amp relative startsWith amp amp path isAbsolute relative code prepIt does normalisation for you as well ppre codeconst path require path const tests foo foo foo bar foo foobar foo foo bar foo foo bar foo foo bar bar foo foo bar foo bar Foo Foo Bar Foo Bar Foo Foo Bar tests forEach parent dir gt const relative path relative parent dir const isSubdir relative amp amp relative startsWith amp amp path isAbsolute relative console log parent dir gt isSubdir relative code prepWorks on Windows across drives too ppre code foo foo gt false foo bar gt false bar foo foobar gt false foobar foo foo bar gt true bar foo foo bar gt false bar foo foo bar gt true bar bar foo foo bar gt true bar foo bar gt false Users kozhevnikov Desktop bar Foo Foo Bar gt true Bar Foo Bar gt false Bar Foo Foo Bar gt false Foo Bar code pre yuri don believe foo bar is valid path or at least here is part of the name not alias to parent isAbsolute is for last test case if paths are Windows paths on different driver letters which would return absolute,1,NULL,Determine if path is subdirectory of another in Node js javascript regex node js pI am working on href https github com jsdario replyer rel noreferrer MQTT handler for which want to emit an event for each parent directory where there is event listener For example ppIf there are the following MQTT paths available where there are subscriptors –there are event listeners for these paths– pulli codetest code lili codereplyer request code lili codetest replyer request code li ulpAnd someone publishes on topic codetest replyer request code there should be events emmited codetest code codetest replyer request code ppGiven than any path is possible and there is no list of available valid events we must check only if path is parent of another Can we do this with regex If so how would it look like Is there simpler more efficient solution pLet Node itself do the work ppre codeconst path require path const relative path relative parent dir return relative amp amp relative startsWith amp amp path isAbsolute relative code prepIt does normalisation for you as well ppre codeconst path require path const tests foo foo foo bar foo foobar foo foo bar foo foo bar foo foo bar bar foo foo bar foo bar Foo Foo Bar Foo Bar Foo Foo Bar tests forEach parent dir gt const relative path relative parent dir const isSubdir relative amp amp relative startsWith amp amp path isAbsolute relative console log parent dir gt isSubdir relative code prepWorks on Windows across drives too ppre code foo foo gt false foo bar gt false bar foo foobar gt false foobar foo foo bar gt true bar foo foo bar gt false bar foo foo bar gt true bar bar foo foo bar gt true bar foo bar gt false Users kozhevnikov Desktop bar Foo Foo Bar gt true Bar Foo Bar gt false Bar Foo Foo Bar gt false Foo Bar code pre 33175,808090,731024,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33176,103055,947938,NULL,NULL,NULL,0,NULL,NULL 33177,299876,940110,Yearling,NULL,NULL,0,NULL,NULL 33178,365257,1328460,Nice Answer Critic Autobiographer Revival Revival Yearling Yearling Custodian Revival,NULL,NULL,0,NULL,NULL 33179,214040,1116075,Nice Answer Popular Question Tumbleweed Critic,NULL,NULL,0,NULL,NULL 33180,52888,1181108,NULL,NULL,NULL,0,NULL,NULL 33181,72313,490874,NULL,NULL,NULL,0,NULL,NULL 33182,18766,591427,Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 33183,479429,934754,NULL,NULL,NULL,0,NULL,NULL 33184,147429,742322,NULL,NULL,NULL,0,NULL,NULL 33185,857118,546948,NULL,NULL,NULL,0,NULL,NULL 33186,325227,546948,NULL,NULL,NULL,0,NULL,NULL 33187,461625,707608,Yearling Favorite Question Caucus Yearling Nice Answer Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 33188,142868,213678,Self-Learner Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 33189,1061605,1062494,NULL,NULL,NULL,0,NULL,NULL 33190,586004,771065,NULL,NULL,NULL,0,NULL,NULL 33191,76406,483616,Popular Question Announcer Nice Answer Custodian Announcer Yearling Announcer Necromancer Good Answer Nice Answer Enlightened Announcer Great Question Necromancer Documentation User Custodian Yearling Famous Question Announcer Yearling,NULL,pThe offending culprit is codeCan find variable Symbol code which is an ES2015 ES6 feature which is why the es5 shim didn work for you ppSince babel doesn include polyfills by default you need to force ember cli babel to include the polyfills ppre code ember cli build jsconst EmberApp require ember cli lib broccoli ember app module exports function defaults const app new EmberApp defaults ember cli babel includePolyfill true return app toTree code prepFor details of the available options see href https github com babel ember cli babel options rel nofollow noreferrer https github com babel ember cli babel options ppFor more comprehensive solution give babel6 href https github com ember cli ember cli pull 6828 rel nofollow noreferrer https github com ember cli ember cli pull 6828 and targets href https github com ember cli ember cli pull 6776 rel nofollow noreferrer https github com ember cli ember cli pull 6776 try ppNote The polyfill includes core js which includes Symbols Thanks for that forgot to update this post,0,NULL,NULL 33192,2823,510112,Guru Yearling Populist Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 33193,427574,750397,Yearling Good Answer Supporter Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 33194,701843,343430,NULL,NULL,NULL,0,NULL,NULL 33195,1798837,1325782,NULL,NULL,NULL,0,NULL,NULL 33196,381870,65813,Yearling Popular Question Yearling Yearling Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 33197,90482,120779,Yearling Revival Necromancer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 33198,1207305,551178,NULL,NULL,NULL,0,NULL,NULL 33199,418829,1564713,Teacher Supporter Citizen Patrol Yearling Enthusiast Critic Excavator Curious Yearling Caucus Caucus Promoter Nice Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 33200,82773,691586,Yearling Nice Answer Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 33201,252801,1489482,NULL,NULL,NULL,0,NULL,NULL 33202,286010,736703,Popular Question,NULL,NULL,0,NULL,NULL 33203,412793,970756,NULL,NULL,NULL,0,NULL,NULL 33204,859370,195650,NULL,NULL,NULL,0,NULL,NULL 33205,218493,1435421,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 33206,27041,434224,Notable Question Nice Question Yearling Notable Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33207,150968,682095,Famous Question Yearling Revival Nice Answer Enlightened Yearling Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 33208,541677,799938,NULL,NULL,NULL,0,NULL,NULL 33209,684307,844795,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 33210,140289,1032544,NULL,NULL,NULL,0,NULL,NULL 33211,1325707,873826,NULL,NULL,NULL,0,NULL,NULL 33212,333316,609143,Yearling Popular Question Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 33213,511932,596187,NULL,NULL,NULL,0,NULL,NULL 33214,3079633,1297534,Popular Question,NULL,NULL,0,NULL,NULL 33215,133055,201665,Necromancer Necromancer Nice Answer Notable Question Promoter Fanatic Necromancer Nice Answer Necromancer Good Question Necromancer Necromancer Good Answer Favorite Question Great Answer Popular Question Yearling Notable Question Nice Answer Famous Question Necromancer Revival Good Answer Great Answer Announcer Nice Answer Yearling Great Question Notable Question Revival Popular Question Great Answer Famous Question Famous Question Necromancer Yearling Benefactor,NULL,NULL,0,NULL,NULL 33216,257977,832565,Famous Question Notable Question Yearling Famous Question Famous Question Popular Question Yearling Notable Question Notable Question Self-Learner Famous Question Nice Question Yearling Popular Question Popular Question Autobiographer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33217,485051,1068182,NULL,NULL,NULL,0,NULL,NULL 33218,233839,361033,NULL,NULL,NULL,0,NULL,NULL 33219,2266728,329189,Announcer Scholar Tumbleweed Yearling Popular Question,NULL,NULL,0,NULL,NULL 33220,1041870,975388,NULL,NULL,NULL,0,NULL,NULL 33221,1251671,586350,Yearling Popular Question Good Answer Notable Question Nice Question Caucus Popular Question Good Question Yearling Popular Question Notable Question Nice Answer Good Question Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 33222,320731,586350,Yearling Popular Question Good Answer Notable Question Nice Question Caucus Popular Question Good Question Yearling Popular Question Notable Question Nice Answer Good Question Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 33223,156195,642708,NULL,NULL,NULL,0,NULL,NULL 33224,467682,718480,Famous Question Curious Popular Question,NULL,NULL,0,NULL,NULL 33225,846929,480179,Yearling,NULL,NULL,0,NULL,NULL 33226,122809,160448,Yearling,NULL,NULL,0,NULL,NULL 33227,210226,79147,Yearling Notable Question,NULL,NULL,0,NULL,NULL 33228,4337045,908188,NULL,NULL,NULL,0,NULL,NULL 33229,79641,908188,NULL,NULL,NULL,0,NULL,NULL 33230,1702299,908188,NULL,NULL,NULL,0,NULL,NULL 33231,425540,176252,Popular Question,NULL,NULL,0,NULL,NULL 33232,97981,1431917,NULL,NULL,NULL,0,NULL,NULL 33233,8155493,997299,Editor,NULL,NULL,0,NULL,NULL 33234,52467,1142251,NULL,NULL,NULL,0,NULL,NULL 33235,2207092,1530326,NULL,NULL,NULL,0,NULL,NULL 33236,482181,763096,Notable Question Yearling Nice Answer Enlightened Famous Question Caucus Nice Answer Good Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Caucus Documentation User Nice Answer Nice Answer Enlightened Nice Answer Enlightened Census Yearling Nice Answer Enlightened Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33237,40543,268450,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33238,167920,834636,Nice Question Yearling Famous Question Tumbleweed Good Question,NULL,NULL,0,NULL,NULL 33239,689134,485637,NULL,NULL,NULL,0,NULL,NULL 33240,8633221,1318435,Revival,NULL,NULL,0,NULL,NULL 33241,216693,658108,NULL,NULL,NULL,0,NULL,NULL 33242,70858,1242689,NULL,NULL,NULL,0,NULL,NULL 33243,390612,1563374,Supporter,NULL,NULL,0,NULL,NULL 33244,1035114,415682,Peer Pressure Necromancer Revival Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 33245,1549042,1352140,NULL,NULL,NULL,0,NULL,NULL 33246,96831,16295,Yearling Revival Nice Question Popular Question Notable Question Necromancer Yearling Notable Question Caucus Popular Question,NULL,blockquote h1How can make as perfect subclass of dict as possible h1 pThe end goal is to have simple dict in which the keys are lowercase ul li pIf override code getitem code code setitem code then get set don work How do make them work Surely don need to implement them individually li li pAm preventing pickling from working and do need to implement code setstate code etc li li pDo need repr update and code init code li li pShould just use codemutablemapping code it seems one shouldn use codeUserDict code or codeDictMixin code If so how The docs aren exactly enlightening li ul blockquotepThe accepted answer would be my first approach but since it has some issues and since no one has addressed the alternative actually subclassing codedict code going to do that here ph2What wrong with the accepted answer h2pThis seems like rather simple request to me pblockquote pHow can make as perfect subclass of dict as possible The end goal is to have simple dict in which the keys are lowercase blockquotepThe accepted answer doesn actually subclass codedict code and test for this fails ppre code gt gt gt isinstance MyTransformedDict Test test dict False code prepIdeally any type checking code would be testing for the interface we expect or an abstract base class but if our data objects are being passed into functions that are testing for codedict code and we can fix those functions this code will fail ppOther quibbles one might make pulliThe accepted answer is also missing the classmethod codefromkeys code lili pThe accepted answer also has redundant code dict code therefore taking up more space in memory ppre code gt gt gt foo bar gt gt gt dict foo bar store test test code pre li ulh2Actually subclassing codedict code h2pWe can reuse the dict methods through inheritance All we need to do is create an interface layer that ensures keys are passed into the dict in lowercase form if they are strings pblockquote pIf override code getitem code code setitem code then get set don work How do make them work Surely don need to implement them individually blockquotepWell implementing them each individually is the downside to this approach and the upside to using codeMutableMapping code see the accepted answer but it really not that much more work ppFirst let factor out the difference between Python and create singleton code RaiseKeyError code to make sure we know if we actually get an argument to codedict pop code and create function to ensure our string keys are lowercase ppre codefrom itertools import chaintry Python str base basestring items iteritems except NameError Python str base str bytes bytearray items items RaiseKeyError object singleton for no default behaviordef ensure lower maybe str dict keys can be any hashable object only call lower if str return maybe str lower if isinstance maybe str str base else maybe str code prepNow we implement using codesuper code with the full arguments so that this code works for Python and ppre codeclass LowerDict dict dicts take mapping or iterable as their optional first argument slots no dict that would be redundant because this doesn make sense as global function def process args mapping kwargs if hasattr mapping items mapping getattr mapping items return ensure lower for in chain mapping getattr kwargs items def init self mapping kwargs super LowerDict self init self process args mapping kwargs def getitem self return super LowerDict self getitem ensure lower def setitem self return super LowerDict self setitem ensure lower def delitem self return super LowerDict self delitem ensure lower def get self default None return super LowerDict self get ensure lower default def setdefault self default None return super LowerDict self setdefault ensure lower default def pop self RaiseKeyError if is RaiseKeyError return super LowerDict self pop ensure lower return super LowerDict self pop ensure lower def update self mapping kwargs super LowerDict self update self process args mapping kwargs def contains self return super LowerDict self contains ensure lower def copy self don delegate super dict copy gt dict return type self self def fromkeys cls keys None return super LowerDict cls fromkeys ensure lower for in keys def repr self return format type self name super LowerDict self repr code prepWe use an almost boiler plate approach for any method or special method that references key but otherwise by inheritance we get methods codelen code codeclear code codeitems code codekeys code codepopitem code and codevalues code for free While this required some careful thought to get right it is trivial to see that this works pp Note that codehaskey code was deprecated in Python removed in Python ppHere some usage ppre code gt gt gt ld LowerDict dict foo bar gt gt gt ld FOO bar gt gt gt ld foo bar gt gt gt ld pop FoO bar gt gt gt ld setdefault Foo gt gt gt ld foo None gt gt gt ld get Bar gt gt gt ld setdefault Bar gt gt gt ld bar None foo None gt gt gt ld popitem bar None code preblockquote pAm preventing pickling from working and do need to implement code setstate code etc blockquoteh2pickling h2pAnd the dict subclass pickles just fine ppre code gt gt gt import pickle gt gt gt pickle dumps ld x80 x03c main nLowerDict nq x00 x81q x01X x03 x00 x00 x00fooq x02Ns gt gt gt pickle loads pickle dumps ld foo None gt gt gt type pickle loads pickle dumps ld lt class main LowerDict gt code preh2 code repr code h2blockquote pDo need repr update and code init code blockquotepWe defined codeupdate code and code init code but you have beautiful code repr code by default ppre code gt gt gt ld without repr defined for the class we get this foo None code prepHowever it good to write code repr code to improve the debugability of your code The ideal test is codeeval repr obj obj code If it easy to do for your code strongly recommend it ppre code gt gt gt ld LowerDict gt gt gt eval repr ld ldTrue gt gt gt ld LowerDict dict gt gt gt eval repr ld ldTrue code prepYou see it exactly what we need to recreate an equivalent object this is something that might show up in our logs or in backtraces ppre code gt gt gt ldLowerDict code preh2Conclusion h2blockquote pShould just use codemutablemapping code it seems one shouldn use codeUserDict code or codeDictMixin code If so how The docs aren exactly enlightening blockquotepYeah these are few more lines of code but they re intended to be comprehensive My first inclination would be to use the accepted answer and if there were issues with it then look at my answer as it little more complicated and there no ABC to help me get my interface right ppPremature optimization is going for greater complexity in search of performance codeMutableMapping code is simpler so it gets an immediate edge all else being equal Nevertheless to lay out all the differences let compare and contrast ppI should add that there was push to put similar dictionary into the codecollections code module but href https mail python org pipermail python dev 2015 May 140003 html rel noreferrer it was rejected You should probably just do this instead ppre codemy dict transform key code prepIt should be far more easily debugable ph3Compare and contrast h3pThere are interface functions implemented with the codeMutableMapping code which is missing codefromkeys code and 11 with the codedict code subclass don need to implement code iter code or code len code but instead have to implement codeget code codesetdefault code codepop code codeupdate code codecopy code code contains code and codefromkeys code but these are fairly trivial since can use inheritance for most of those implementations ppThe codeMutableMapping code implements some things in Python that codedict code implements in so would expect codedict code subclass to be more performant in some cases ppWe get free code eq code in both approaches both of which assume equality only if another dict is all lowercase but again think the codedict code subclass will compare more quickly ph3Summary h3ullisubclassing codeMutableMapping code is simpler with fewer opportunities for bugs but slower takes more memory see redundant dict and fails codeisinstance dict code lilisubclassing codedict code is faster uses less memory and passes codeisinstance dict code but it has greater complexity to implement li ulpWhich is more perfect That depends on your definition of perfect would strongly recommend against subclassing dict at least in Python Take your example and an instance it you ll see that it doesn call any of your methods and this is fairly common thing to do in Python In your specific example this doesn matter since it storing already lowered keys in the backing dict which is what will access but in general this isn necessarily true blockquote h1How can make as perfect subclass of dict as possible h1 pThe end goal is to have simple dict in which the keys are lowercase ul li pIf override code getitem code code setitem code then get set don work How do make them work Surely don need to implement them individually li li pAm preventing pickling from working and do need to implement code setstate code etc li li pDo need repr update and code init code li li pShould just use codemutablemapping code it seems one shouldn use codeUserDict code or codeDictMixin code If so how The docs aren exactly enlightening li ul blockquotepThe accepted answer would be my first approach but since it has some issues and since no one has addressed the alternative actually subclassing codedict code going to do that here ph2What wrong with the accepted answer h2pThis seems like rather simple request to me pblockquote pHow can make as perfect subclass of dict as possible The end goal is to have simple dict in which the keys are lowercase blockquotepThe accepted answer doesn actually subclass codedict code and test for this fails ppre code gt gt gt isinstance MyTransformedDict Test test dict False code prepIdeally any type checking code would be testing for the interface we expect or an abstract base class but if our data objects are being passed into functions that are testing for codedict code and we can fix those functions this code will fail ppOther quibbles one might make pulliThe accepted answer is also missing the classmethod codefromkeys code lili pThe accepted answer also has redundant code dict code therefore taking up more space in memory ppre code gt gt gt foo bar gt gt gt dict foo bar store test test code pre li ulh2Actually subclassing codedict code h2pWe can reuse the dict methods through inheritance All we need to do is create an interface layer that ensures keys are passed into the dict in lowercase form if they are strings pblockquote pIf override code getitem code code setitem code then get set don work How do make them work Surely don need to implement them individually blockquotepWell implementing them each individually is the downside to this approach and the upside to using codeMutableMapping code see the accepted answer but it really not that much more work ppFirst let factor out the difference between Python and create singleton code RaiseKeyError code to make sure we know if we actually get an argument to codedict pop code and create function to ensure our string keys are lowercase ppre codefrom itertools import chaintry Python str base basestring items iteritems except NameError Python str base str bytes bytearray items items RaiseKeyError object singleton for no default behaviordef ensure lower maybe str dict keys can be any hashable object only call lower if str return maybe str lower if isinstance maybe str str base else maybe str code prepNow we implement using codesuper code with the full arguments so that this code works for Python and ppre codeclass LowerDict dict dicts take mapping or iterable as their optional first argument slots no dict that would be redundant because this doesn make sense as global function def process args mapping kwargs if hasattr mapping items mapping getattr mapping items return ensure lower for in chain mapping getattr kwargs items def init self mapping kwargs super LowerDict self init self process args mapping kwargs def getitem self return super LowerDict self getitem ensure lower def setitem self return super LowerDict self setitem ensure lower def delitem self return super LowerDict self delitem ensure lower def get self default None return super LowerDict self get ensure lower default def setdefault self default None return super LowerDict self setdefault ensure lower default def pop self RaiseKeyError if is RaiseKeyError return super LowerDict self pop ensure lower return super LowerDict self pop ensure lower def update self mapping kwargs super LowerDict self update self process args mapping kwargs def contains self return super LowerDict self contains ensure lower def copy self don delegate super dict copy gt dict return type self self def fromkeys cls keys None return super LowerDict cls fromkeys ensure lower for in keys def repr self return format type self name super LowerDict self repr code prepWe use an almost boiler plate approach for any method or special method that references key but otherwise by inheritance we get methods codelen code codeclear code codeitems code codekeys code codepopitem code and codevalues code for free While this required some careful thought to get right it is trivial to see that this works pp Note that codehaskey code was deprecated in Python removed in Python ppHere some usage ppre code gt gt gt ld LowerDict dict foo bar gt gt gt ld FOO bar gt gt gt ld foo bar gt gt gt ld pop FoO bar gt gt gt ld setdefault Foo gt gt gt ld foo None gt gt gt ld get Bar gt gt gt ld setdefault Bar gt gt gt ld bar None foo None gt gt gt ld popitem bar None code preblockquote pAm preventing pickling from working and do need to implement code setstate code etc blockquoteh2pickling h2pAnd the dict subclass pickles just fine ppre code gt gt gt import pickle gt gt gt pickle dumps ld x80 x03c main nLowerDict nq x00 x81q x01X x03 x00 x00 x00fooq x02Ns gt gt gt pickle loads pickle dumps ld foo None gt gt gt type pickle loads pickle dumps ld lt class main LowerDict gt code preh2 code repr code h2blockquote pDo need repr update and code init code blockquotepWe defined codeupdate code and code init code but you have beautiful code repr code by default ppre code gt gt gt ld without repr defined for the class we get this foo None code prepHowever it good to write code repr code to improve the debugability of your code The ideal test is codeeval repr obj obj code If it easy to do for your code strongly recommend it ppre code gt gt gt ld LowerDict gt gt gt eval repr ld ldTrue gt gt gt ld LowerDict dict gt gt gt eval repr ld ldTrue code prepYou see it exactly what we need to recreate an equivalent object this is something that might show up in our logs or in backtraces ppre code gt gt gt ldLowerDict code preh2Conclusion h2blockquote pShould just use codemutablemapping code it seems one shouldn use codeUserDict code or codeDictMixin code If so how The docs aren exactly enlightening blockquotepYeah these are few more lines of code but they re intended to be comprehensive My first inclination would be to use the accepted answer and if there were issues with it then look at my answer as it little more complicated and there no ABC to help me get my interface right ppPremature optimization is going for greater complexity in search of performance codeMutableMapping code is simpler so it gets an immediate edge all else being equal Nevertheless to lay out all the differences let compare and contrast ppI should add that there was push to put similar dictionary into the codecollections code module but href https mail python org pipermail python dev 2015 May 140003 html rel noreferrer it was rejected You should probably just do this instead ppre codemy dict transform key code prepIt should be far more easily debugable ph3Compare and contrast h3pThere are interface functions implemented with the codeMutableMapping code which is missing codefromkeys code and 11 with the codedict code subclass don need to implement code iter code or code len code but instead have to implement codeget code codesetdefault code codepop code codeupdate code codecopy code code contains code and codefromkeys code but these are fairly trivial since can use inheritance for most of those implementations ppThe codeMutableMapping code implements some things in Python that codedict code implements in so would expect codedict code subclass to be more performant in some cases ppWe get free code eq code in both approaches both of which assume equality only if another dict is all lowercase but again think the codedict code subclass will compare more quickly ph3Summary h3ullisubclassing codeMutableMapping code is simpler with fewer opportunities for bugs but slower takes more memory see redundant dict and fails codeisinstance dict code lilisubclassing codedict code is faster uses less memory and passes codeisinstance dict code but it has greater complexity to implement li ulpWhich is more perfect That depends on your definition of perfect Just did https stackoverflow com 47361653 16295 and https repl it repls TraumaticToughCockatoo,0,NULL,NULL 33247,727219,380722,Nice Question Custodian Nice Answer Nice Question Tumbleweed Popular Question Famous Question Yearling Popular Question Nice Question Great Answer Custodian Yearling Popular Question Famous Question Popular Question Popular Question Caucus Popular Question Popular Question Yearling Good Answer Notable Question,NULL,Fragment back stack and isRemoving android android fragments pI came across inconsistent return values from codeFragment isRemoving code when the activity has just added the fragment to the back stack The strongfirst strong time the fragment is temporarily destroyed due to configuration change codeisRemoving code returns true If the fragment is temporarily destroyed second time codeisRemoving code returns false ppMy code ppre codepublic class MainActivityFragment extends Fragment private static final String TAG MainActivityFragment private static final String LEVEL MainActivityFragment LEVEL public MainActivityFragment public static MainActivityFragment newInstance int MainActivityFragment new MainActivityFragment setArguments new Bundle getArguments putInt LEVEL return private int getLevel return getArguments null getArguments getInt LEVEL public View onCreateView LayoutInflater inflater ViewGroup container Bundle savedInstanceState View rootView inflater inflate layout fragment main container false Button button Button rootView findViewById id button button setText String valueOf getLevel button setOnClickListener new View OnClickListener public void onClick View getActivity getSupportFragmentManager beginTransaction replace id fragment MainActivityFragment newInstance getLevel addToBackStack null commit return rootView public void onCreate Bundle savedInstanceState super onCreate savedInstanceState Log TAG String valueOf getLevel onCreate public void onDestroy super onDestroy Log TAG String valueOf getLevel onDestroy Log TAG String valueOf getLevel isChangingConfigurations getActivity isChangingConfigurations Log TAG String valueOf getLevel isRemoving isRemoving code prepThe log lines starting with are my comments ppre code Start ActivityI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 1I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Rotate the device second timeI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Correct resultI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 2I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Ok correctI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true WHY MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreateI MainActivityFragment onCreate code prepIs this bug in Android or am understanding this wrong pp strongUpdate strong added call to Fragment dump in onDestroy and got the following results ppBefore the fragment is put in the back stack ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 0mAdded true mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 336d670b in HostCallbacks 387c69e8 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 2b6916a6 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepAfter the fragment is put in the back stack and is destroyed the first time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving true mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 34638ae1 in HostCallbacks 2db8e006 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 169d66c7 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepDestroyed the second time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 23beb2bc in HostCallbacks c0f9245 mHost android support v4 app FragmentActivity HostCallbacksagmentState Bundle android view state 2131492979 android view AbsSavedState mSavedViewState 2131492979 android view AbsSavedState code prepThe differences between the first not in back stack yet and second put in back stack are pollimState codeACTIVITY CREATED code vs mState codeCREATED code lilimBackStackNesting vs mBackStackNesting lilimAdded true vs mAdded false lilimRemoving false vs mRemoving true obviously li olpThe differences between the second first time destroyed and third second time destoyed are pollimRemoving true vs mRemoving false lilimSavedFragmentState null vs mSavedFragmentState Bundle lilihas Child FragmentManager vs has no Child FragmentManager li olpHowever have no idea how to interpret these results ppI starting to think codeisRemoving code is not what need what actually need is something equivalent to codeActivity isFinishing code but for fragments need to know that this fragment will emnever em be reused again so can cancel background tasks Right now using codeisRemoving amp amp getActivity isChangingConfigurations code but not sure it the right solution updated the question with results of Fragment dump Fragment back stack and isRemoving android android fragments pI came across inconsistent return values from codeFragment isRemoving code when the activity has just added the fragment to the back stack The strongfirst strong time the fragment is temporarily destroyed due to configuration change codeisRemoving code returns true If the fragment is temporarily destroyed second time codeisRemoving code returns false ppMy code ppre codepublic class MainActivityFragment extends Fragment private static final String TAG MainActivityFragment private static final String LEVEL MainActivityFragment LEVEL public MainActivityFragment public static MainActivityFragment newInstance int MainActivityFragment new MainActivityFragment setArguments new Bundle getArguments putInt LEVEL return private int getLevel return getArguments null getArguments getInt LEVEL public View onCreateView LayoutInflater inflater ViewGroup container Bundle savedInstanceState View rootView inflater inflate layout fragment main container false Button button Button rootView findViewById id button button setText String valueOf getLevel button setOnClickListener new View OnClickListener public void onClick View getActivity getSupportFragmentManager beginTransaction replace id fragment MainActivityFragment newInstance getLevel addToBackStack null commit return rootView public void onCreate Bundle savedInstanceState super onCreate savedInstanceState Log TAG String valueOf getLevel onCreate public void onDestroy super onDestroy Log TAG String valueOf getLevel onDestroy Log TAG String valueOf getLevel isChangingConfigurations getActivity isChangingConfigurations Log TAG String valueOf getLevel isRemoving isRemoving code prepThe log lines starting with are my comments ppre code Start ActivityI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 1I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Rotate the device second timeI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Correct resultI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 2I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Ok correctI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true WHY MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreateI MainActivityFragment onCreate code prepIs this bug in Android or am understanding this wrong pp strongUpdate strong added call to Fragment dump in onDestroy and got the following results ppBefore the fragment is put in the back stack ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 0mAdded true mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 336d670b in HostCallbacks 387c69e8 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 2b6916a6 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepAfter the fragment is put in the back stack and is destroyed the first time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving true mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 34638ae1 in HostCallbacks 2db8e006 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 169d66c7 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepDestroyed the second time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 23beb2bc in HostCallbacks c0f9245 mHost android support v4 app FragmentActivity HostCallbacksagmentState Bundle android view state 2131492979 android view AbsSavedState mSavedViewState 2131492979 android view AbsSavedState code prepThe differences between the first not in back stack yet and second put in back stack are pollimState codeACTIVITY CREATED code vs mState codeCREATED code lilimBackStackNesting vs mBackStackNesting lilimAdded true vs mAdded false lilimRemoving false vs mRemoving true obviously li olpThe differences between the second first time destroyed and third second time destoyed are pollimRemoving true vs mRemoving false lilimSavedFragmentState null vs mSavedFragmentState Bundle lilihas Child FragmentManager vs has no Child FragmentManager li olpHowever have no idea how to interpret these results ppI starting to think codeisRemoving code is not what need what actually need is something equivalent to codeActivity isFinishing code but for fragments need to know that this fragment will emnever em be reused again so can cancel background tasks Right now using codeisRemoving amp amp getActivity isChangingConfigurations code but not sure it the right solution please see https github com imgx64 AndroidIsRemovingTest,1,Fragment back stack and isRemoving android android fragments pI came across inconsistent return values from codeFragment isRemoving code when the activity has just added the fragment to the back stack The strongfirst strong time the fragment is temporarily destroyed due to configuration change codeisRemoving code returns true If the fragment is temporarily destroyed second time codeisRemoving code returns false ppMy code ppre codepublic class MainActivityFragment extends Fragment private static final String TAG MainActivityFragment private static final String LEVEL MainActivityFragment LEVEL public MainActivityFragment public static MainActivityFragment newInstance int MainActivityFragment new MainActivityFragment setArguments new Bundle getArguments putInt LEVEL return private int getLevel return getArguments null getArguments getInt LEVEL public View onCreateView LayoutInflater inflater ViewGroup container Bundle savedInstanceState View rootView inflater inflate layout fragment main container false Button button Button rootView findViewById id button button setText String valueOf getLevel button setOnClickListener new View OnClickListener public void onClick View getActivity getSupportFragmentManager beginTransaction replace id fragment MainActivityFragment newInstance getLevel addToBackStack null commit return rootView public void onCreate Bundle savedInstanceState super onCreate savedInstanceState Log TAG String valueOf getLevel onCreate public void onDestroy super onDestroy Log TAG String valueOf getLevel onDestroy Log TAG String valueOf getLevel isChangingConfigurations getActivity isChangingConfigurations Log TAG String valueOf getLevel isRemoving isRemoving code prepThe log lines starting with are my comments ppre code Start ActivityI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 1I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Rotate the device second timeI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Correct resultI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 2I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Ok correctI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true WHY MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreateI MainActivityFragment onCreate code prepIs this bug in Android or am understanding this wrong pp strongUpdate strong added call to Fragment dump in onDestroy and got the following results ppBefore the fragment is put in the back stack ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 0mAdded true mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 336d670b in HostCallbacks 387c69e8 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 2b6916a6 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepAfter the fragment is put in the back stack and is destroyed the first time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving true mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 34638ae1 in HostCallbacks 2db8e006 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 169d66c7 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepDestroyed the second time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 23beb2bc in HostCallbacks c0f9245 mHost android support v4 app FragmentActivity HostCallbacksagmentState Bundle android view state 2131492979 android view AbsSavedState mSavedViewState 2131492979 android view AbsSavedState code prepThe differences between the first not in back stack yet and second put in back stack are pollimState codeACTIVITY CREATED code vs mState codeCREATED code lilimBackStackNesting vs mBackStackNesting lilimAdded true vs mAdded false lilimRemoving false vs mRemoving true obviously li olpThe differences between the second first time destroyed and third second time destoyed are pollimRemoving true vs mRemoving false lilimSavedFragmentState null vs mSavedFragmentState Bundle lilihas Child FragmentManager vs has no Child FragmentManager li olpHowever have no idea how to interpret these results ppI starting to think codeisRemoving code is not what need what actually need is something equivalent to codeActivity isFinishing code but for fragments need to know that this fragment will emnever em be reused again so can cancel background tasks Right now using codeisRemoving amp amp getActivity isChangingConfigurations code but not sure it the right solution,NULL 33248,1030257,647420,Yearling Yearling Nice Answer Census Yearling Critic,NULL,NULL,0,NULL,NULL 33249,142812,980922,Nice Answer Enlightened Curious Yearling Nice Question Popular Question Popular Question Yearling Notable Question Famous Question Yearling cryptography,NULL,NULL,0,NULL,NULL 33250,19803,229205,Nice Question Yearling,NULL,NULL,0,NULL,NULL 33251,75612,15827,NULL,NULL,NULL,0,NULL,NULL 33252,897438,616756,NULL,NULL,NULL,0,NULL,NULL 33253,847894,1302821,NULL,NULL,NULL,0,NULL,NULL 33254,10468,465378,Popular Question Nice Answer Enlightened Nice Answer Nice Answer Guru Popular Question Nice Answer Enlightened arrays Notable Question Nice Answer Enlightened Nice Answer Famous Question Notable Question Nice Question Good Question Popular Question Notable Question Popular Question Announcer Good Answer Nice Question Good Question Good Question Famous Question Nice Question Good Question Yearling racket Caucus Popular Question Nice Answer Constituent haskell Nice Answer Nice Answer Census Good Answer Notable Question Notable Question Notable Question Notable Question Good Answer Great Answer Good Answer Announcer Notable Question Notable Question Announcer Good Question Popular Question Good Answer Popular Question Popular Question Announcer Nice Answer Good Answer Guru Caucus Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Guru Guru Announcer Enlightened Nice Answer Nice Question Yearling Notable Question Nice Question Documentation User Announcer Nice Question scheme Announcer Nice Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Announcer Good Answer Refiner Notable Question php Famous Question Caucus Nice Answer Enlightened Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Popular Question Good Question Popular Question Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Popular Question Nice Answer Enlightened Nice Question Yearling Announcer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,1,Monad laws expressed in terms of join instead of bind haskell monads pThe monad laws are traditionally described in terms of code gt gt code and codepure code ppre codepure gt gt am gt gt pure mm gt gt gt gt gt gt gt gt gt code prepHowever monads can also be defined in terms of codejoin code instead of code gt gt code would like to come up with formulation of the monad laws in terms of codejoin code ppUsing codex gt gt join fmap code it’s easy to rewrite the existing monad laws to eliminate code gt gt code Simplifying the results slightly with the help of the applicative laws the first two laws are quite pleasantly expressed ppre codejoin pure idjoin fmap pure id code prepThe intuition for these laws is easy too since clearly introducing an extra “layer” with codepure code should be no op when combined with codejoin code The third law however is not nearly so nice It ends up looking like this ppre code join fmap gt join fmap join fmap join fmap code prepThis does not pleasantly reduce using the applicative laws and it’s much harder to understand without staring at it for while It certainly doesn’t have the same easy intuition ppIs there an equivalent alternative formulation of the monad laws in terms of codejoin code that is easier to understand Alternatively is there any way to simplify the above law or to make it easier to grok The version with code gt gt code is already less nice than the one expressed with Kleisli composition but the version with codejoin code is nearly unreadable,NULL 33255,1493053,465378,Popular Question Nice Answer Enlightened Nice Answer Nice Answer Guru Popular Question Nice Answer Enlightened arrays Notable Question Nice Answer Enlightened Nice Answer Famous Question Notable Question Nice Question Good Question Popular Question Notable Question Popular Question Announcer Good Answer Nice Question Good Question Good Question Famous Question Nice Question Good Question Yearling racket Caucus Popular Question Nice Answer Constituent haskell Nice Answer Nice Answer Census Good Answer Notable Question Notable Question Notable Question Notable Question Good Answer Great Answer Good Answer Announcer Notable Question Notable Question Announcer Good Question Popular Question Good Answer Popular Question Popular Question Announcer Nice Answer Good Answer Guru Caucus Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Guru Guru Announcer Enlightened Nice Answer Nice Question Yearling Notable Question Nice Question Documentation User Announcer Nice Question scheme Announcer Nice Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Announcer Good Answer Refiner Notable Question php Famous Question Caucus Nice Answer Enlightened Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Popular Question Good Question Popular Question Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Popular Question Nice Answer Enlightened Nice Question Yearling Announcer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,1,Monad laws expressed in terms of join instead of bind haskell monads pThe monad laws are traditionally described in terms of code gt gt code and codepure code ppre codepure gt gt am gt gt pure mm gt gt gt gt gt gt gt gt gt code prepHowever monads can also be defined in terms of codejoin code instead of code gt gt code would like to come up with formulation of the monad laws in terms of codejoin code ppUsing codex gt gt join fmap code it’s easy to rewrite the existing monad laws to eliminate code gt gt code Simplifying the results slightly with the help of the applicative laws the first two laws are quite pleasantly expressed ppre codejoin pure idjoin fmap pure id code prepThe intuition for these laws is easy too since clearly introducing an extra “layer” with codepure code should be no op when combined with codejoin code The third law however is not nearly so nice It ends up looking like this ppre code join fmap gt join fmap join fmap join fmap code prepThis does not pleasantly reduce using the applicative laws and it’s much harder to understand without staring at it for while It certainly doesn’t have the same easy intuition ppIs there an equivalent alternative formulation of the monad laws in terms of codejoin code that is easier to understand Alternatively is there any way to simplify the above law or to make it easier to grok The version with code gt gt code is already less nice than the one expressed with Kleisli composition but the version with codejoin code is nearly unreadable,NULL 33256,155490,1490445,NULL,NULL,NULL,0,NULL,NULL 33257,50520,1378954,NULL,NULL,NULL,0,NULL,NULL 33258,89134,1422561,Supporter,NULL,NULL,0,NULL,NULL 33259,502253,947964,Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 33260,231838,414465,NULL,NULL,NULL,0,NULL,NULL 33261,163572,1328110,NULL,NULL,NULL,0,NULL,NULL 33262,24915,944617,Yearling Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 33263,492357,974782,Announcer Documentation User,NULL,NULL,0,NULL,NULL 33264,176817,1527145,Revival Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 33265,398759,649242,NULL,NULL,NULL,0,NULL,NULL 33266,54443,489948,Popular Question,NULL,NULL,0,NULL,NULL 33267,104602,646731,NULL,NULL,NULL,0,NULL,NULL 33268,335482,595397,NULL,NULL,NULL,0,NULL,NULL 33269,36075,1229513,NULL,NULL,NULL,0,NULL,NULL 33270,431566,1126345,NULL,NULL,NULL,0,NULL,NULL 33271,960816,591836,NULL,NULL,NULL,0,NULL,NULL 33272,121033,1143217,NULL,NULL,NULL,0,NULL,NULL 33273,843633,648089,NULL,NULL,NULL,0,NULL,NULL 33274,236851,12624,Famous Question Good Answer Good Answer Yearling Popular Question Nice Answer Enlightened Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33275,239016,445404,NULL,NULL,NULL,0,NULL,NULL 33276,493434,952437,Critic Yearling Caucus Revival Necromancer Nice Answer Enlightened Yearling Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33277,134429,395832,NULL,NULL,NULL,0,NULL,NULL 33278,709795,405765,Supporter,NULL,NULL,0,NULL,NULL 33279,329225,131708,Civic Duty,NULL,NULL,0,NULL,NULL 33280,598718,1405325,Necromancer,NULL,NULL,0,NULL,NULL 33281,13193,248257,NULL,NULL,NULL,0,NULL,NULL 33282,142029,1897,Notable Question Great Answer Popular Question Good Answer Guru Nice Answer Guru Nice Answer Yearling Great Question Nice Answer Enlightened Caucus Nice Answer Enlightened Good Answer Famous Question Populist Great Answer Popular Question Popular Question Nice Answer Caucus Constituent Favorite Question Notable Question Yearling Notable Question Good Question Nice Answer Caucus Good Question Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33283,616901,1099219,NULL,NULL,NULL,0,NULL,NULL 33284,407705,383910,NULL,NULL,NULL,0,NULL,NULL 33285,480651,567695,NULL,NULL,NULL,0,NULL,NULL 33286,748857,319296,Yearling Nice Answer Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33287,7080,314006,Yearling,NULL,NULL,0,NULL,NULL 33288,321920,603786,NULL,NULL,NULL,0,NULL,NULL 33289,105225,1018074,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33290,47126,193907,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 33291,437,171237,Editor Informed Autobiographer Teacher Revival Popular Question,NULL,NULL,0,NULL,NULL 33292,24407,634744,NULL,NULL,NULL,0,NULL,NULL 33293,69629,1181172,Necromancer,NULL,NULL,0,NULL,NULL 33294,383204,876462,NULL,NULL,NULL,0,NULL,NULL 33295,11260552,876462,NULL,NULL,NULL,0,NULL,NULL 33296,1389079,882973,NULL,NULL,NULL,0,NULL,NULL 33297,53980,1120333,Necromancer Necromancer Yearling Necromancer Nice Answer Great Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 33298,522144,1124270,Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Answer Yearling Popular Question Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Promoter Famous Question,NULL,NULL,0,NULL,NULL 33299,456008,357150,Popular Question Nice Question Caucus Good Answer,NULL,NULL,0,NULL,NULL 33300,706685,1092346,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 33301,821207,1389644,Informed,NULL,NULL,0,NULL,NULL 33302,1508439,682366,Popular Question,NULL,NULL,0,NULL,NULL 33303,83400,653414,NULL,NULL,NULL,0,NULL,NULL 33304,24593,139545,Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 33305,399442,80463,NULL,NULL,NULL,0,NULL,NULL 33306,2465,666371,Autobiographer Yearling Yearling Commentator Yearling Nice Question,NULL,NULL,0,NULL,NULL 33307,378396,1396059,Good Answer Nice Answer Enlightened Yearling Guru Good Answer Yearling Critic Yearling Guru,NULL,NULL,0,NULL,NULL 33308,463070,306913,Popular Question,NULL,NULL,0,NULL,NULL 33309,1208041,815539,Civic Duty Caucus Famous Question Teacher Yearling Popular Question Popular Question Caucus Constituent Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 33310,308116,1139755,NULL,NULL,NULL,0,NULL,NULL 33311,130380,1252749,NULL,NULL,NULL,0,NULL,NULL 33312,25258,221706,Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 33313,29580,1382240,NULL,NULL,NULL,0,NULL,NULL 33314,30131,31154,Great Answer Yearling Caucus Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 33315,214714,372339,NULL,NULL,NULL,0,NULL,NULL 33316,2254,977220,mapkit Yearling Announcer Announcer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 33317,18234,240049,Notable Question Yearling Caucus Nice Question Popular Question Famous Question Popular Question Pundit Popular Question,NULL,NULL,0,NULL,NULL 33318,4613659,1051301,Popular Question Critic,NULL,NULL,0,NULL,NULL 33319,509588,11613,Good Answer,NULL,NULL,0,NULL,NULL 33320,193528,1041442,Necromancer Popular Question Revival Necromancer Nice Question Yearling Nice Answer Enlightened Popular Question Nice Answer Notable Question Famous Question Nice Answer Popular Question Documentation User Yearling Nice Question Popular Question Custodian Good Answer Caucus Custodian Popular Question Revival Nice Question Notable Question Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 33321,1510119,961935,Inquisitive Revival Popular Question Notable Question Nice Question Yearling Self-Learner Popular Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 33322,10685,123642,Nice Answer Enlightened Famous Question Documentation Pioneer Curious Yearling Nice Answer Documentation User Nice Question Necromancer Census Yearling Good Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 33323,1375903,1253609,Revival Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Inquisitive Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Caucus Constituent Custodian Autobiographer Self-Learner Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Announcer Notable Question Popular Question Yearling Caucus Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33324,29603,97378,Yearling Nice Answer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 33325,4287562,1119180,NULL,NULL,NULL,0,NULL,NULL 33326,290910,1119180,NULL,NULL,NULL,0,NULL,NULL 33327,890662,332936,Popular Question Electorate Popular Question Notable Question Nice Answer Famous Question Yearling Popular Question Cleanup Announcer Notable Question Announcer Popular Question Self-Learner Yearling Famous Question Nice Question Notable Question Nice Answer Popular Question Yearling,NULL,Global Git ignore git global gitignore pI want to set up Git to globally ignore certain files ppI have added code gitignore code file to my user root directory codeUsers me code and have added the following line to it ppre code tmproj code prepBut it is not ignoring this type of files any idea what am doing wrong Python virtual environment directories are common use case for entries in my global or local excludesfile,0,NULL,NULL 33328,315326,445670,NULL,NULL,NULL,0,NULL,NULL 33329,104398,663684,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 33330,1595782,1031635,Popular Question Nice Answer Yearling Nice Answer Enlightened Self-Learner Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 33331,219958,281176,NULL,NULL,NULL,0,NULL,NULL 33332,20434,280539,Yearling Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33333,297876,1008265,NULL,NULL,NULL,0,NULL,NULL 33334,169688,984889,Popular Question,NULL,NULL,0,NULL,NULL 33335,81519,700265,NULL,NULL,NULL,0,NULL,NULL 33336,1109236,1122169,Notable Question,NULL,NULL,0,NULL,NULL 33337,245882,1122169,Notable Question,NULL,NULL,0,NULL,NULL 33338,21434,200503,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33339,83251,384077,Commentator Popular Question Notable Question Popular Question Yearling Popular Question Critic,NULL,NULL,0,NULL,NULL 33340,2173750,1112290,NULL,NULL,NULL,0,NULL,NULL 33341,541344,315112,NULL,NULL,NULL,0,NULL,NULL 33342,4484590,1156213,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 33343,770111,732186,Necromancer Documentation User,NULL,NULL,0,NULL,NULL 33344,420142,797321,Popular Question Good Answer Popular Question Popular Question Yearling Announcer Nice Question Famous Question Popular Question Good Question Famous Question Famous Question Yearling Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 33345,1312891,797321,Popular Question Good Answer Popular Question Popular Question Yearling Announcer Nice Question Famous Question Popular Question Good Question Famous Question Famous Question Yearling Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 33346,91656,329046,NULL,NULL,NULL,0,NULL,NULL 33347,1172879,663381,Nice Answer Famous Question Census Critic Autobiographer Popular Question Popular Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 33348,1781358,490767,NULL,NULL,NULL,0,NULL,NULL 33349,127893,596655,NULL,NULL,NULL,0,NULL,NULL 33350,17672,826551,NULL,NULL,NULL,0,NULL,NULL 33351,383654,1239005,NULL,NULL,NULL,0,NULL,NULL 33352,949534,827722,Yearling Caucus Constituent Caucus Constituent Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 33353,127890,528870,NULL,NULL,NULL,0,NULL,NULL 33354,169759,1015296,Caucus Caucus Tumbleweed Caucus Constituent Student Scholar,NULL,NULL,0,NULL,NULL 33355,1140817,1135664,NULL,NULL,NULL,0,NULL,NULL 33356,1172983,686108,NULL,NULL,NULL,0,NULL,NULL 33357,500953,421094,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 33358,247650,494305,NULL,NULL,NULL,0,NULL,NULL 33359,73185,715498,NULL,NULL,NULL,0,NULL,NULL 33360,349942,1214335,Nice Answer Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 33361,1136966,1305165,NULL,NULL,NULL,0,NULL,NULL 33362,371231,518703,Custodian Nice Answer Popular Question Favorite Question Yearling Great Answer Popular Question Custodian Caucus Custodian Popular Question Yearling Great Question Custodian Popular Question Popular Question Yearling,NULL,How do copy directories recursively with gulp deployment gulp pI am trying to stage project from working directory to server same machine Using the following code ppre codegulp src index php css js src pipe gulp dest var www code prepI would expect to see all the files copied However it flattens the dir structure all directories are copied but every file is placed in the root code var www code ppGulp seems like great build tool but copying items should be simple process surely know that glob expansion does work inside gulp but be confused if that worked differently to each item as an individual line in list as glob expansion is basically just intended to expand to list before execution,0,NULL,NULL 33363,105764,846050,Self-Learner Nice Answer,NULL,NULL,0,NULL,NULL 33364,1559927,1304514,NULL,NULL,NULL,0,NULL,NULL 33365,199412,4601,Guru,NULL,NULL,0,NULL,NULL 33366,866931,382441,Famous Question,NULL,NULL,0,NULL,NULL 33367,251338,1103598,NULL,NULL,NULL,0,NULL,NULL 33368,717948,637634,Popular Question,NULL,NULL,0,NULL,NULL 33369,98684,41613,Nice Question Popular Question Great Question Great Answer Nice Question Popular Question Popular Question Guru Good Answer Nice Answer Notable Question Nice Answer Favorite Question Good Answer Nice Question Popular Question Notable Question Favorite Question Yearling Notable Question Guru Notable Question Famous Question Popular Question Nice Answer Popular Question Good Question Popular Question Great Question Popular Question Famous Question Yearling Popular Question Good Answer Popular Question Popular Question Notable Question Nice Question Nice Answer Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 33370,607770,1163057,Yearling Good Answer Good Answer Good Answer Yearling Nice Question Great Answer Custodian Custodian Census Yearling Peer Pressure Revival,NULL,pI assume you mean to load an image into the canvas and not uploading the image from the canvas ppIt probably be good idea to read through all the canvas articles they have over herea href https developer mozilla org en US docs Web Guide HTML Canvas tutorial Using images https developer mozilla org en US docs Web Guide HTML Canvas tutorial Using images ppBut basically what you want to do is create an image in javascript and set the image src to whatever the file location is In the case of loading images from the user on their end you re going to want to use the File System API ppThrew together brief example here href http jsfiddle net influenztial qy7h5 http jsfiddle net influenztial qy7h5 ppre codefunction handleImage var reader new FileReader reader onload function event var img new Image img onload function canvas width img width canvas height img height ctx drawImage img img src event target result reader readAsDataURL target files code pre the variable is the file handle event using the FileReader API you won be able to do this without using File Input or dropzone because you can just go programmatically running through the user file system as far as know pI assume you mean to load an image into the canvas and not uploading the image from the canvas ppIt probably be good idea to read through all the canvas articles they have over herea href https developer mozilla org en US docs Web Guide HTML Canvas tutorial Using images https developer mozilla org en US docs Web Guide HTML Canvas tutorial Using images ppBut basically what you want to do is create an image in javascript and set the image src to whatever the file location is In the case of loading images from the user on their end you re going to want to use the File System API ppThrew together brief example here href http jsfiddle net influenztial qy7h5 http jsfiddle net influenztial qy7h5 ppre codefunction handleImage var reader new FileReader reader onload function event var img new Image img onload function canvas width img width canvas height img height ctx drawImage img img src event target result reader readAsDataURL target files code pre should be fixed now Apparently that fiddle was using MooTools for some reason and that library stopped working,0,NULL,NULL 33371,134508,1506278,NULL,NULL,NULL,0,NULL,NULL 33372,267232,188712,NULL,NULL,NULL,0,NULL,NULL 33373,136534,434268,Self-Learner Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 33374,279993,1068292,Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33375,599363,243806,Yearling Necromancer Yearling Nice Answer Yearling Good Answer Good Answer Nice Answer Yearling Necromancer Necromancer Nice Answer Guru Caucus Nice Answer Yearling Custodian Necromancer Nice Answer Good Answer Necromancer Revival Good Answer Good Answer Nice Answer Nice Answer Yearling Necromancer Necromancer Revival Good Answer Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 33376,1181670,977260,NULL,NULL,NULL,0,NULL,NULL 33377,9930,729379,Yearling Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 33378,10549746,263540,Good Question,NULL,NULL,0,NULL,NULL 33379,1752321,377917,Nice Answer Enlightened Favorite Question Great Answer Guru Yearling Famous Question Yearling Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 33380,150331,192107,Famous Question Yearling,NULL,NULL,0,NULL,NULL 33381,494264,593464,NULL,NULL,NULL,0,NULL,NULL 33382,386785,272486,Yearling Notable Question,NULL,NULL,0,NULL,NULL 33383,642271,578677,Curious Promoter Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33384,127967,533151,NULL,NULL,NULL,0,NULL,NULL 33385,21764,1136361,Autobiographer,NULL,NULL,0,NULL,NULL 33386,165217,1556152,NULL,NULL,NULL,0,NULL,NULL 33387,142121,1087961,Editor Autobiographer Yearling Supporter Caucus Caucus,NULL,NULL,0,NULL,NULL 33388,257517,1209177,Caucus,NULL,NULL,0,NULL,NULL 33389,291560,1009739,NULL,NULL,NULL,0,NULL,NULL 33390,1642807,835174,NULL,NULL,NULL,0,NULL,NULL 33391,56302,363833,NULL,NULL,NULL,0,NULL,NULL 33392,330265,1532672,Commentator Editor Student,NULL,NULL,0,NULL,NULL 33393,138626,690939,Nice Answer,NULL,NULL,0,NULL,NULL 33394,144997,531154,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33395,438124,343035,Editor Commentator,NULL,Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre Android builds from the CLI seem to just hang on this Emulator exists detecting all running emulators and connected devices Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre Running appc ti info android does nothing just get spinning cursor in Terminal Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre now trying to Refresh Devices in Studio as the ones that appear in the CLI match those in AVD list Refresh Devices seems to just time out though Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre Reinstalled Ti Studio removed all Android SDK Installed Android SDK through Ti Studio then looked at emulators list all the emulators there are as above image but AVD has only CLI shows correct AVD Exit Ti Studio reopen it go to Android SDK to install one more and all of them are greyed out from the previous SDK folder had Restarted Mac went to Ti Studio again and to Properties Platforms Android no default emulator set click on Manage AVD Studio hangs Reopen click on Install More SDK nothing appears Painful Im out of ideas Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre left the CLI attempting to run build on an AVD built hour or so and got this error appear ERROR Unable to start Android Debug Bridge server exit code Error Failed to start ADB code 255 error protocol fault couldn read status Connection reset by peer Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre As left it last night had SDK installed in Ti Studio installed it to test if the sdk appeared in there did not shut down my macbook just shut the lid and went to bed opened it up this morning and Studio tells me No Android SDK could be found in the current location,1,Android SDK on Appcelerator android appcelerator genymotion pI used to have full working system with Genymotion and tishadow ppI have pulliReinstalled Studio numerous times liliReinstalled Appcelerator numerous times liliRemoved all SDK from Appcelerator liliInstalled Android Developer SDK numerous times li ulpI think have gone through every permutation and still no working development environment prefer to use CLI with ST2 rather than Studio as find it clunky and just bit heavy of node calls with regular MacOSX beach ball attacks on my screen ppSo my main issue still lies with the SDK managed to get full list of emulators installed and Appcelerator pointing to what would appear to be the right place See the image below pp href https stack imgur com kGAfR png rel nofollow noreferrer img src https stack imgur com kGAfR png alt Appcelerator Studio Android SDKs ppI am on the right track no more crashes or hang ups trying to point to the directory So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio this is where my confusion begins ppGenymotion installed and emulator set up and titanium config for GenyMotion set to true No crashes As did this my emulators in Studio appeared to just disappear pp href https stack imgur com inXHL png rel nofollow noreferrer img src https stack imgur com inXHL png alt Where are my emulators ppSo restart of Studio and the emulators now appear again So my next step is to do cli build and see what Android emulators are available and to see if we get the same list as on Studio We should do right as this Studio is just GUI interface to CLI Terminal opened navigate to the directory and then type ppre code appc ti build android code prepThe CLI presents me with list of emulators pp href https stack imgur com uNoig png rel nofollow noreferrer img src https stack imgur com uNoig png alt WTF Totally different set of emulators ppNow completely confused and this is where think all my problems are coming from Now if try to run Genymotion emulator Number in this list it goes through the motions but never launches the emulator ve read that you need the emulator open already but if do that then the CLI just hangs on with the build command above and does nothing ppCan anyone offer me some light ppBelow are some environment settings from the trace ppre code Operating SystemName Mac OS XVersion 10 11 2Architecture 64bit CPUs 4Memory 17179869184Node jsNode js Version 12 7npm Version 11 3Titanium CLICLI Version 5Titanium SDKSDK Version GASDK Path Users lt MY USER HERE gt Library Application Support Titanium mobilesdk osx GATarget Platform android code pre,NULL 33396,29703,99323,Yearling Popular Question Nice Answer Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 33397,131350,1020284,NULL,NULL,NULL,0,NULL,NULL 33398,343256,1228019,Notable Question,NULL,NULL,0,NULL,NULL 33399,7352,373620,NULL,NULL,NULL,0,NULL,NULL 33400,183454,959665,NULL,NULL,NULL,0,NULL,NULL 33401,194449,1232533,Popular Question Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 33402,166318,27815,NULL,NULL,NULL,0,NULL,NULL 33403,44726,411748,NULL,NULL,NULL,0,NULL,NULL 33404,115373,951163,NULL,NULL,NULL,0,NULL,NULL 33405,1484037,942274,NULL,NULL,NULL,0,NULL,NULL 33406,295728,492396,NULL,NULL,NULL,0,NULL,NULL 33407,833267,955829,NULL,NULL,NULL,0,NULL,NULL 33408,483771,1193764,Self-Learner Yearling Popular Question Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33409,6777600,1461354,Popular Question,NULL,NULL,0,NULL,NULL 33410,472287,248220,Yearling Famous Question Necromancer Popular Question Yearling Notable Question Popular Question Popular Question Nice Question Investor Altruist Excavator Popular Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 33411,167537,536832,NULL,NULL,NULL,0,NULL,NULL 33412,284609,593000,NULL,NULL,NULL,0,NULL,NULL 33413,165595,1280815,NULL,NULL,NULL,0,NULL,NULL 33414,52892,888162,Editor Popular Question Caucus Census Popular Question Census Yearling Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33415,134392,1037703,Nice Answer Notable Question Good Answer Popular Question Populist javascript Yearling Popular Question Proofreader Custodian Taxonomist Notable Question Notable Question Popular Question Notable Question Documentation User Yearling Great Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 33416,138415,938552,NULL,NULL,NULL,0,NULL,NULL 33417,389074,1436733,NULL,NULL,NULL,0,NULL,NULL 33418,256187,235064,NULL,NULL,NULL,0,NULL,NULL 33419,22968,926841,Popular Question Civic Duty Notable Question Popular Question Popular Question Necromancer Popular Question Inquisitive Popular Question Popular Question Caucus Yearling Nice Answer Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Caucus Popular Question Notable Question Documentation User Yearling Notable Question Notable Question Popular Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 33420,478456,594115,NULL,NULL,NULL,0,NULL,NULL 33421,6075774,509548,Yearling Nice Answer Custodian Notable Question Caucus Yearling Nice Question Nice Answer Census Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 33422,139104,509548,Yearling Nice Answer Custodian Notable Question Caucus Yearling Nice Question Nice Answer Census Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 33423,531861,289303,NULL,NULL,NULL,0,NULL,NULL 33424,555483,301635,Yearling Popular Question Good Question Good Answer Popular Question Yearling Notable Question Popular Question Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 33425,861063,257513,NULL,NULL,NULL,0,NULL,NULL 33426,66919,684521,Yearling Editor Student Nice Answer Enlightened Scholar Yearling Good Answer Good Answer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 33427,211159,349045,Notable Question Notable Question Popular Question Famous Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Caucus Famous Question Custodian Notable Question Popular Question Yearling Famous Question Caucus Famous Question Good Question Necromancer Popular Question Popular Question Famous Question Necromancer Famous Question Popular Question Nice Answer Yearling Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33428,109313,1391877,NULL,NULL,NULL,0,NULL,NULL 33429,29248,957025,NULL,NULL,NULL,0,NULL,NULL 33430,46357,208809,Good Answer Guru Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Favorite Question Nice Answer Enlightened Necromancer Necromancer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Revival Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Necromancer Populist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened mysql Great Question Documentation Pioneer Nice Answer Good Answer Guru Good Answer Guru Nice Answer Guru Nice Answer Good Answer Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Necromancer Good Answer Nice Answer Guru Nice Answer Enlightened Caucus Yearling Revival Constituent Announcer Nice Answer Great Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Revival Census Guru Necromancer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Guru Nice Answer Populist Nice Answer Great Answer Enlightened inheritance Populist Nice Answer Caucus Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Constituent Good Answer Announcer Nice Answer Great Answer Great Answer Great Answer Guru Nice Answer Enlightened Enlightened Guru Documentation User Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Guru Yearling Guru Nice Answer json Good Answer Guru Necromancer Nice Answer Enlightened Good Answer Nice Answer Caucus Nice Answer Nice Answer Enlightened Constituent Nice Answer Guru Reviewer Nice Answer Guru Nice Answer xml Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Populist Necromancer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Yearling Guru Good Answer Nice Answer,NULL,pOk after fiddling with this for some time withdraw the solution with codedate code and suggest to use this one instead ppre codefunction isValidTimeStamp timestamp return string int timestamp timestamp amp amp timestamp lt PHP INT MAX amp amp timestamp gt PHP INT MAX code prepThis check will only return true if the given code timestamp code is strongstring strong and consists solely of digits and an optional minus character The number also has to be within the bit range of an integer strongEDIT strong href https stackoverflow com questions 3377537 check if string holds an integer in php 3377560 3377560 actually unneeded as shown here ppre codevar dump isValidTimeStamp falsevar dump isValidTimeStamp TRUEvar dump isValidTimeStamp falsevar dump isValidTimeStamp falsevar dump isValidTimeStamp 0xFF falsevar dump isValidTimeStamp 0123 falsevar dump isValidTimeStamp 01090 falsevar dump isValidTimeStamp 1000000 TRUEvar dump isValidTimeStamp 1000000 falsevar dump isValidTimeStamp 2147483648 falsevar dump isValidTimeStamp 2147483649 false code prepThe check for PHP INT MAX is to ensure that your string can be used correctly by codedate code and the likes it ensures this doesn happen ppre codeecho date 2147483648 1901 12 13echo date 2147483649 2038 01 19 code prepOn 64bit systems the integer is of course larger than that and the function will no longer return false for 2147483648 and 2147483649 but for the corresponding larger numbers phrp sup emNote not 100 sure the bit range corresponds with what date can use though em sup no it doesn It gives true for any PHP 22 hhvm 12 https 3v4l org pr2iD on 64bit machines assume you are on 32bit machine That is expained in the answer though pOk after fiddling with this for some time withdraw the solution with codedate code and suggest to use this one instead ppre codefunction isValidTimeStamp timestamp return string int timestamp timestamp amp amp timestamp lt PHP INT MAX amp amp timestamp gt PHP INT MAX code prepThis check will only return true if the given code timestamp code is strongstring strong and consists solely of digits and an optional minus character The number also has to be within the bit range of an integer strongEDIT strong href https stackoverflow com questions 3377537 check if string holds an integer in php 3377560 3377560 actually unneeded as shown here ppre codevar dump isValidTimeStamp falsevar dump isValidTimeStamp TRUEvar dump isValidTimeStamp falsevar dump isValidTimeStamp falsevar dump isValidTimeStamp 0xFF falsevar dump isValidTimeStamp 0123 falsevar dump isValidTimeStamp 01090 falsevar dump isValidTimeStamp 1000000 TRUEvar dump isValidTimeStamp 1000000 falsevar dump isValidTimeStamp 2147483648 falsevar dump isValidTimeStamp 2147483649 false code prepThe check for PHP INT MAX is to ensure that your string can be used correctly by codedate code and the likes it ensures this doesn happen ppre codeecho date 2147483648 1901 12 13echo date 2147483649 2038 01 19 code prepOn 64bit systems the integer is of course larger than that and the function will no longer return false for 2147483648 and 2147483649 but for the corresponding larger numbers phrp sup emNote not 100 sure the bit range corresponds with what date can use though em sup re is valid timestamp However the function above will only allow as per the OPs requirement h3Singletons have very little if not to say no use in PHP h3pIn languages where objects live in shared memory Singletons can be used to keep memory usage low Instead of creating two objects you reference an existing instance from the globally shared application memory In PHP there is no such application memory Singleton created in one Request lives for exactly that request Singleton created in another Request done at the same time is still completely different instance Thus one of the two main purposes of Singleton is not applicable here ppIn addition many of the objects that can conceptually exist only once in your application do not necessarily require language mechanism to enforce this If you emneed em only one instance then href http butunclebob com ArticleS UncleBob SingletonVsJustCreateOne rel noreferrer don instantiate another It only when you emmay have no em other instance when kittens die when you create second instance that you might have valid Use Case for Singleton ppThe other purpose would be to have global access point to an instance within the same Request While this might sound desirable it really isnt because it creates coupling to the global scope like any globals and statics href http sebastian bergmann de archives 882 Testing Code That Uses Singletons html rel noreferrer This makes Unit Testing harder and your application in general less maintainable There is ways to mitigate this but in general if you need to have the same instance in many classes use href http fabien potencier org article 11 what is dependency injection rel noreferrer Dependency Injection ppSee my slides for href http www slideshare net go oh singletons in php why they are bad and how you can eliminate them from your applications rel noreferrer Singletons in PHP Why they are bad and how you can eliminate them from your applications for additional information ppEven href http en wikipedia org wiki Erich Gamma rel noreferrer Erich Gamma one of the Singleton pattern inventors doubts this pattern nowadays pblockquote em href http www informit com articles printerfriendly aspx 1404056 rel noreferrer in favor of dropping Singleton Its use is almost always design smell em blockquoteh3Further reading h3ulli href https stackoverflow com questions 5283102 how is testing registry pattern or singleton hard in php 5283151 5283151 How is testing the registry pattern or singleton hard in PHP lili href https stackoverflow com questions 3124412 what are the disadvantages of using php database class as singleton 3124428 3124428 What are the disadvantages of using PHP database class as singleton lili href https stackoverflow com questions 3272090 php pdo database abstraction class design question 3274863 3274863 Database abstraction class design using PHP PDO lili href https stackoverflow com questions 3870635 would singleton be good design pattern for microblogging site 3870710 3870710 Would singleton be good design pattern for microblogging site lili href https stackoverflow com questions 4244437 modifying class to encapsulate instead of inherit 4244824 4244824 Modifying class to encapsulate instead of inherit lili href https stackoverflow com questions 3820103 how to access an object from another class 3820286 3820286 How to access an object from another class lili href http blog gordon oheim biz 2011 01 17 Why Singletons have no use in PHP rel noreferrer Why Singletons have no use in PHP lili href http www youtube com watch FRm3VPhseI rel noreferrer The Clean Code Talks Singletons and Global State li ulh3If after the above you still need help deciding h3p img src https stack imgur com Dzdio png alt Singleton Decision Diagram http chat stackoverflow com rooms 11 php Reference What does this symbol mean in PHP php operators symbols php h3What is this h3pThis is collection of questions that come up every now and then about syntax in PHP This is also Community Wiki so everyone is invited to participate in maintaining this list ph3Why is this h3pIt used to be hard to find questions about operators and other syntax tokens ¹brThe main idea is to have links to existing questions on Stack Overflow so it easier for us to reference them not to copy over content from the PHP Manual pp¹ Note Since January 2013 Stack Overflow href https meta stackexchange com questions 160100 new search engine for stack exchange does support special characters Just surround the search terms by quotes href https stackoverflow com search 5Bphp 5D 20 22 22 20vs 20 22 22 code php vs code ph3What should do here h3pIf you have been pointed here by someone because you have asked such question please find the particular syntax below The linked pages to the href http php net manual en index php rel noreferrer PHP manual along with the linked questions will likely answer your question then If so you are encouraged to upvote the answer This list is not meant as substitute to the help others provided ph2The List h2pIf your particular token is not listed below you might find it in the href http secure php net manual en tokens php rel noreferrer List of Parser Tokens phrp code amp code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators or href http secure php net manual en language references php rel noreferrer References pulli href https stackoverflow com questions 1676897 What does it mean to start PHP function with an ampersand lili href https stackoverflow com questions 600202 Understanding PHP amp ampersand bitwise and operator lili href https stackoverflow com questions 2209934 PHP amp operator lili href https stackoverflow com questions 2376348 Difference between amp and amp amp in PHP lili href https stackoverflow com questions 1006652 What does amp mean here in PHP lili href https stackoverflow com questions 2297592 What does amp mean in this case lili href https stackoverflow com questions 2422907 What does the amp sign mean in PHP lili href https stackoverflow com questions 2478149 What does this signature mean amp in PHP lili href https stackoverflow com questions 3957584 How does the amp operator work in PHP function lili href https stackoverflow com questions 4705262 What does amp in amp mean in PHP lili href https stackoverflow com questions 4705838 When should use bitwise operator lili href https stackoverflow com questions 21058439 Is there ever need to use ampersand in front of an object amp li ulhrp code amp code href http secure php net manual en language references php rel noreferrer References pulli href https stackoverflow com questions 1768343 Reference assignment operator in PHP amp lili href https stackoverflow com questions 1367454 What do the amp and amp operators in PHP mean lili href https stackoverflow com questions 3177342 What do the 39 amp 39 and 39 amp 39 operators do lili href https stackoverflow com questions 2081806 What does amp mean in PHP li ulhrp code amp code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 1367454 What do the amp and amp operators in PHP mean lili href https stackoverflow com questions 3177342 What do the 39 amp 39 and 39 amp 39 operators do li ulhrp code amp amp code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2803321 39 AND 39 vs 39 amp amp 39 as operator lili href https stackoverflow com questions 2376348 Difference between amp and amp amp in PHP lili href https stackoverflow com questions 4746865 Is there any difference between and and amp amp operators in PHP lili href https stackoverflow com questions 4502092 PHP and or keywords li ulhrp code code href http secure php net manual en language operators arithmetic php rel noreferrer Arithmetic Operators pulli href https stackoverflow com questions 1934173 What does the percent sign mean in PHP lili href https stackoverflow com questions 3204919 What is the PHP operator and how do use it in real world examples li ulhrp code code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2127260 Double not operator in PHP li ulhrp code code href http secure php net manual en language operators errorcontrol php rel noreferrer Error Control Operators pulli href https stackoverflow com questions 1032161 What is the use of the symbol in PHP lili href https stackoverflow com questions 3551527 39 At 39 symbol before variable name in PHP POST lili href https stackoverflow com questions 3984864 PHP functions and lili href https stackoverflow com questions 4872340 Should use in my PHP code li ulhrp code code href http php net manual en language operators comparison php language operators comparison ternary rel noreferrer Ternary Operator pulli href https stackoverflow com questions 1080247 What are the PHP operators and called and what do they do lili href https stackoverflow com questions 1993409 operator the 39 Elvis operator 39 in PHP lili href https stackoverflow com questions 4055355 Where can read about conditionals done with and colon lili href https stackoverflow com questions 4210187 Using PHP operator li ulhrp code code href http php net manual en migration70 new features php migration70 new features null coalesce op rel noreferrer Null Coalesce Operator since PHP pulli href https stackoverflow com questions 7278835 39 null coalescing operator in PHP li ulhrp code code href http secure php net manual en control structures alternative syntax php rel noreferrer Alternative syntax for control structures href http php net manual en language operators comparison php language operators comparison ternary rel noreferrer Ternary Operator pulli href https stackoverflow com questions 2908095 What is in PHP lili href https stackoverflow com questions 4747761 What does mean in PHP li ulhrp code code href http secure php net manual en language oop5 paamayim nekudotayim php rel noreferrer Scope Resolution Operator pulli href https stackoverflow com questions 2903564 What do two colons mean in PHP lili href https stackoverflow com questions 2588298 What 39 the meaning of the PHP token name PAAMAYIM NEKUDOTAYIM lili href https stackoverflow com questions 3173501 What 39 the difference between double colon and gt arrow in PHP lili href https stackoverflow com questions 1912902 What exactly are late static bindings in PHP lili href https stackoverflow com questions 4120755 static staticFunctionName lili href https stackoverflow com questions 8734823 Unexpected PAAMAYIM NEKUDOTAYIM expecting NS Separator li ulhrp code code href http php net namespaces rel noreferrer Namespaces pulli href https stackoverflow com questions 10788400 Backslash in PHP what does it mean lili href https stackoverflow com questions 4790020 What does backslash do in PHP li ulhrp code gt code href http secure php net manual en language oop5 php rel noreferrer Classes And Objects pulli href https stackoverflow com questions 2588149 What is the gt PHP operator called and how do you say it when reading code out loud lili href https stackoverflow com questions 3037526 Where do we use the object operator gt in PHP lili href https stackoverflow com questions 3173501 What 39 the difference between double colon and gt arrow in PHP lili href https stackoverflow com questions 2316370 What does the PHP syntax var1 gt var2 mean lili href https stackoverflow com questions 4502587 What does gt mean refer to in PHP li ulhrp code gt code href http secure php net manual en language types array php rel noreferrer Arrays pulli href https stackoverflow com questions 1241819 What does gt mean in PHP lili href https stackoverflow com questions 1655336 Use of gt in PHP lili href https stackoverflow com questions 4758791 What does gt in foreach ex as gt mean li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2674920 How does the bitwise operator XOR 39 39 work lili href https stackoverflow com questions 2724936 What does mean in PHP li ulhrp code gt gt code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2790329 What does gt gt mean in PHP li ulhrp code lt lt code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 9718689 strange print behaviour in php Strange print behaviour in PHP li ulhrp code lt lt lt code href http php net manual en language types string php language types string syntax heredoc rel noreferrer Heredoc or Nowdoc pulli href https stackoverflow com questions 5539669 What does lt lt lt END mean in PHP lili href https stackoverflow com questions 1048481 PHP expression lt lt lt EOB lili href https stackoverflow com questions 3700042 In PHP what does lt lt lt represent lili href https stackoverflow com questions 2090081 Using lt lt lt CON in PHP lili href https stackoverflow com questions 2333779 What 39 this kind of syntax in PHP li ulhrp code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 2063480 The different equals li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 80646 How do the PHP equality double equals and identity triple equals comparison operators differ lili href https stackoverflow com questions 1663451 PHP and operators lili href https stackoverflow com questions 2063480 The different equals lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1117967 What does mean lili href https stackoverflow com questions 80646 How do the PHP equality double equals and identity triple equals comparison operators differ lili href https stackoverflow com questions 2063480 The different equals lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1298083 What does comparison operator in PHP mean lili href https stackoverflow com questions 1139154 Is there difference between and in PHP li ulhrp code code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 1663451 PHP and operators lili href https stackoverflow com questions 1139154 Is there difference between and in PHP lili href https stackoverflow com questions 6356826 comparing versus lili href https stackoverflow com questions 9671785 what is the difference between and What is the difference between lt gt and li ulhrp code lt gt code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators pulli href https stackoverflow com questions 249312 PHP operator lt gt lili href https stackoverflow com questions 589391 PHP 39 lt gt operator lili href https stackoverflow com questions 9671785 What is the difference between lt gt and lili href https stackoverflow com questions 15813490 Type juggling and strict greater lesser than comparisons in PHP li ulhrp code lt gt code href http secure php net manual en language operators comparison php rel noreferrer Comparison Operators since PHP pulli href https stackoverflow com 31298778 Spaceship three way comparison operator li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 2233835 What is the difference between the and operators lili href https stackoverflow com questions 13811922 What Does Using Single Pipe 39 39 In Function Argument Do li ulhrp code code href http secure php net manual en language operators logical php rel noreferrer Logical Operators pulli href https stackoverflow com questions 2233835 What is the difference between the and operators lili href https stackoverflow com questions 4502092 PHP and or keywords lili href https stackoverflow com questions 5666741 What exactly does mean lili href https stackoverflow com questions 12213283 The behaviour of the or operator in PHP li ulhrp code code href http secure php net manual en language operators bitwise php rel noreferrer Bitwise Operators pulli href https stackoverflow com questions 1967360 What does this operator mean here li ulhrp code code href http secure php net manual en language operators arithmetic php rel noreferrer Arithmetic Operators href http secure php net manual en language operators array php rel noreferrer Array Operators pulli href https stackoverflow com questions 2140090 operator for array in PHP li ulhrp code code and code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 542995 What is used for lili href https stackoverflow com questions 7140158 What does page in my PHP document mean li ulhrp code code and code code href http secure php net manual en language operators increment php rel noreferrer Incrementing Decrementing Operators pulli href https stackoverflow com questions 1968371 Understanding Incrementing lili href https stackoverflow com 3737177 Answer below li ulhrp code code href http secure php net manual en language operators assignment php rel noreferrer Assignment Operators pulli href https stackoverflow com questions 2202331 What is the difference between and in PHP lili href https stackoverflow com questions 1241432 To understand line of PHP li ulhrp code code href http secure php net manual en language operators string php rel noreferrer String Operators pulli href https stackoverflow com questions 1466408 Difference between period and comma when concatenating with echo versus return lili href https stackoverflow com questions 6484968 What does dot do in PHP li ulhrp code code href http php net manual en functions arguments php rel noreferrer Function Arguments pulli href https stackoverflow com questions 1466408 Difference between period and comma when concatenating with echo versus return li ulp code code href http php net manual en language variables scope php rel noreferrer Variable Declarations pulli href https stackoverflow com questions 41383218 What do commas mean in variable declaration li ulhrp code code href http php net manual en language variables variable php rel noreferrer Variable Variables pulli href https stackoverflow com questions 2715654 What does dollar dollar or double dollar mean in PHP lili href https stackoverflow com questions 4169882 what is in PHP lili href https stackoverflow com questions 4891872 function and variable li ulhrp code code href http php net manual en language operators execution php rel noreferrer Execution Operator pulli href https stackoverflow com questions 6002296 What are the backticks called li ulhrp code lt code href http php net manual en ini core php ini short open tag rel noreferrer Short Open Tags pulli href https stackoverflow com questions 1963901 What does this symbol mean in PHP lt lili href https stackoverflow com questions 2020445 What does 39 lt 39 mean in PHP lili href https stackoverflow com questions 1959256 what does mean What does lt mean li ulhrp code code href http secure php net manual en language types array php rel noreferrer Arrays short syntax since PHP pulli href https stackoverflow com 20709055 2758197 PHP arrays What is are the meaning of an empty bracket lili href https stackoverflow com questions 6933345 What is the meaning of lili href https stackoverflow com questions 2431629 Php array push vs myArray lili href https stackoverflow com questions 3908576 What does mean when reading from PHP array lili href https stackoverflow com questions 4271874 Shorthand for arrays literal code var code empty array li ulhrp code lt code href http secure php net manual en language basic syntax php rel noreferrer Opening and Closing tags pulli href https stackoverflow com questions 200640 Are PHP short tags acceptable to use li ulhrp code code href http php net manual en functions arguments php functions variable arg list rel noreferrer Argument unpacking since PHP phrp code code href http secure php net manual en migration56 new features php migration56 new features exponentiation rel noreferrer Exponentiation since PHP phrp code code href http php net manual en language basic syntax comments php rel noreferrer One line shell style comment pulli href https stackoverflow com questions 9093609 can use hashes for comments in php Can use hashes for comments in PHP li ulhr foo is the same as foo avoid the latter h1Globals are evil h1pThis is true for the codeglobal code keyword as well as everything else that reaches from local scope to the global scope statics singletons registries constants You do not want to use them function call should not have to rely on anything outside ppre codefunction fn global foo never ever use that SOME CONSTANT do not use that Foo SOME CONSTANT do not use that unless self GLOBALS foo incl any other superglobal GET Foo bar any static call incl Singletons and Registries code prepAll of these will make your code depend on the outside Which means you have to know the full global state your application is in before you can reliably call any of these The function cannot exist without that environment ppUsing the superglobals might not be an obvious flaw but if you call your code from Command Line you don have code GET code or code POST code If your code relies on input from these you are limiting yourself to web environment Just abstract the request into an object and use that instead ppIn case of coupling hardcoded classnames static constants your function also cannot exist without that class being available That less of an issue when it classes from the same namespace but when you start mix from different namespaces you are creating tangled mess ppReuse is severly hampered by all of the above href http sebastian bergmann de archives 885 Stubbing Hard Coded Dependencies html rel noreferrer So is unit testing ppAlso your function signatures are lying when you couple to the global scope ppre codefunction fn code prepis liar because it claims can call that function without passing anything to it It is only when look at the function body that learn have to set the environment into certain state ppIf your function requires arguments to run make them explicit and pass them in ppre codefunction fn arg1 arg2 do sth with arguments code prepclearly conveys from the signature what it requires to be called It is not dependent on the environment to be in specific state You dont have to do ppre code arg1 foo arg2 bar fn code prepIt matter of pulling in global keyword vs pushing in arguments When you push in inject dependencies the function does not rely on the outside anymore When you do codefn code you dont have to have variable holding somewhere outside But when you pull in global code one code inside the function you couple to the global scope and expect it to have variable of that defined somewhere The function is no longer independent then ppEven worse when you are changing globals inside your function your code will quickly be completely incomprehensible because your functions are having sideeffects all over the place ppIn lack of better example consider ppre codefunction fn global foo echo foo side effect echo ing foo bar side effect changing code prepAnd then you do ppre code foo foo fn prints foofn prints bar lt WTF code prepThere is no way to see that code foo code got changed from these three lines Why would calling the same function with the same arguments all of sudden change it output or change value in the global state function should do for defined input Always ppThis gets even more severe when using OOP because OOP is about encapsulation and by reaching out to the global scope you are breaking encapsulation All these Singletons and Registries you see in frameworks are code smells that should be removed in favor of Dependency Injection Decouple your code ppMore Resources pulli href http c2 com cgi wiki GlobalVariablesAreBad rel noreferrer http c2 com cgi wiki GlobalVariablesAreBad lili href https stackoverflow com questions 5283102 how is testing registry pattern or singleton hard in php 5283151 5283151 How is testing the registry pattern or singleton hard in PHP lili href http misko hevery com code reviewers guide flaw brittle global state singletons rel noreferrer Flaw Brittle Global State amp Singletons lili href http kore nordmann de blog 0103 static considered harmful html rel noreferrer codestatic code considered harmful lili href http blog gordon oheim biz 2011 01 17 Why Singletons have no use in PHP rel noreferrer Why Singletons have no use in PHP lili href en wikipedia org wiki SOLID object oriented design rel noreferrer SOLID object oriented design li ul yes most of what we do is trade offs and agree that userland constant is not as severe as global variable because of it immutable state But it global state nevertheless It better to encapsulate them Regarding class constants the issue is solely on efferent coupling when you consume them in code not in the same namespace package you are creating dependency on the defining code Also you are effectively making the constant part of the public API and cannot change or remove it without risking BC breaks The latter is also true for global constants h1Globals are evil h1pThis is true for the codeglobal code keyword as well as everything else that reaches from local scope to the global scope statics singletons registries constants You do not want to use them function call should not have to rely on anything outside ppre codefunction fn global foo never ever use that SOME CONSTANT do not use that Foo SOME CONSTANT do not use that unless self GLOBALS foo incl any other superglobal GET Foo bar any static call incl Singletons and Registries code prepAll of these will make your code depend on the outside Which means you have to know the full global state your application is in before you can reliably call any of these The function cannot exist without that environment ppUsing the superglobals might not be an obvious flaw but if you call your code from Command Line you don have code GET code or code POST code If your code relies on input from these you are limiting yourself to web environment Just abstract the request into an object and use that instead ppIn case of coupling hardcoded classnames static constants your function also cannot exist without that class being available That less of an issue when it classes from the same namespace but when you start mix from different namespaces you are creating tangled mess ppReuse is severly hampered by all of the above href http sebastian bergmann de archives 885 Stubbing Hard Coded Dependencies html rel noreferrer So is unit testing ppAlso your function signatures are lying when you couple to the global scope ppre codefunction fn code prepis liar because it claims can call that function without passing anything to it It is only when look at the function body that learn have to set the environment into certain state ppIf your function requires arguments to run make them explicit and pass them in ppre codefunction fn arg1 arg2 do sth with arguments code prepclearly conveys from the signature what it requires to be called It is not dependent on the environment to be in specific state You dont have to do ppre code arg1 foo arg2 bar fn code prepIt matter of pulling in global keyword vs pushing in arguments When you push in inject dependencies the function does not rely on the outside anymore When you do codefn code you dont have to have variable holding somewhere outside But when you pull in global code one code inside the function you couple to the global scope and expect it to have variable of that defined somewhere The function is no longer independent then ppEven worse when you are changing globals inside your function your code will quickly be completely incomprehensible because your functions are having sideeffects all over the place ppIn lack of better example consider ppre codefunction fn global foo echo foo side effect echo ing foo bar side effect changing code prepAnd then you do ppre code foo foo fn prints foofn prints bar lt WTF code prepThere is no way to see that code foo code got changed from these three lines Why would calling the same function with the same arguments all of sudden change it output or change value in the global state function should do for defined input Always ppThis gets even more severe when using OOP because OOP is about encapsulation and by reaching out to the global scope you are breaking encapsulation All these Singletons and Registries you see in frameworks are code smells that should be removed in favor of Dependen,,, "y Injection Decouple your code ppMore Resources pulli href http c2 com cgi wiki GlobalVariablesAreBad rel noreferrer http c2 com cgi wiki GlobalVariablesAreBad lili href https stackoverflow com questions 5283102 how is testing registry pattern or singleton hard in php 5283151 5283151 How is testing the registry pattern or singleton hard in PHP lili href http misko hevery com code reviewers guide flaw brittle global state singletons rel noreferrer Flaw Brittle Global State amp Singletons lili href http kore nordmann de blog 0103 static considered harmful html rel noreferrer codestatic code considered harmful lili href http blog gordon oheim biz 2011 01 17 Why Singletons have no use in PHP rel noreferrer Why Singletons have no use in PHP lili href en wikipedia org wiki SOLID object oriented design rel noreferrer SOLID object oriented design li ul famous doesn equal good design Some coupling will not hurt you until it hurts you so if it not hampering reuse and maintainability in your code now don bother to change it Like you said it trade off""",good answer guru nice answer great answer nice answer nice answer enlighten good answer guru nice answer favorite question nice answer enlighten necromancer necromancer good answer nice answer good answer nice answer enlighten nice answer necromancer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer nice answer good answer good answer revival good answer good answer nice answer nice answer enlighten nice answer enlighten guru nice answer good answer nice answer enlighten good answer guru guru nice answer enlighten nice answer enlighten necromancer populist nice answer enlighten nice answer enlighten nice answer nice answer good answer nice answer nice answer enlighten mysql great question documentation pioneer nice answer good answer guru good answer guru nice answer guru nice answer good answer guru nice answer good answer nice answer enlighten good answer necromancer good answer nice answer guru nice answer enlighten caucus yearle revival constituent announcer nice answer great answer nice answer enlighten good answer guru nice answer enlighten good answer good answer revival census guru necromancer nice answer good answer nice answer enlighten nice answer good answer good answer nice answer nice answer nice answer nice answer good answer nice answer enlighten guru guru nice answer populist nice answer great answer enlighten inheritance populist nice answer caucus good answer good answer nice answer enlighten nice answer enlighten great answer constituent good answer announcer nice answer great answer great answer great answer guru nice answer enlighten enlighten guru documentation user good answer nice answer nice answer nice answer good answer nice answer nice answer guru yearle guru nice answer json good answer guru necromancer nice answer enlighten good answer nice answer caucus nice answer nice answer enlighten constituent nice answer guru reviewer nice answer guru nice answer xml good answer good answer nice answer nice answer enlighten nice answer nice answer guru good answer good answer nice answer enlighten guru nice answer enlighten nice answer nice answer populist necromancer good answer good answer nice answer enlighten nice answer enlighten enlighten nice answer yearle guru good answer nice answer php strict resource type php php pdoe php support strict type resource ppfor code declare strict type curl init test function test resource code prepthe error pblockquote pfatal error uncaught typeerror argument pass test instance resource resource blockquotepa var dump code code reveal strongresource curl strong manual codecurl init code return resource ppi strictly type codet code function support code variable code pphp href https wiki php net rfc scalar type hint type hint resource pblockquote pno type hint resource add prevent move resource object exist extension gmp href http php net resource codei resource code function method body verify pass argument handle need reusable version assertion codefunction assert resource resource false resource resource throw sprintf argument valid resource type gettype resource code prepwhich code codefunction test assert resource resource code pok fiddle time withdraw solution codedate code suggest codefunction timestamp return string int timestamp timestamp amp amp timestamp lt php int amp amp timestamp php int code prepthis check return true code timestamp code strongstre strong consist solely digit optional character number bit range integer strongedit strong href https stackoverflow question check string hold integer php unneede show codevar dump falsevar dump truevar dump falsevar dump falsevar dump falsevar dump falsevar dump falsevar dump truevar dump falsevar dump falsevar dump false code prepthe check php int ensure string correctly codedate code like ensure happen codeecho date date code prepon system integer large function longer return false large number phrp emnote bit range correspond date -PRON- true php hhvm https org machine assume machine expaine answer pok fiddle time withdraw solution codedate code suggest codefunction timestamp return string int timestamp timestamp amp amp timestamp lt php int amp amp timestamp php int code prepthis check return true code timestamp code strongstre strong consist solely digit optional character number bit range integer strongedit strong href https stackoverflow question check string hold integer php unneede show codevar dump falsevar dump truevar dump falsevar dump falsevar dump falsevar dump falsevar dump falsevar dump truevar dump falsevar dump falsevar dump false code prepthe check php int ensure string correctly codedate code like ensure happen codeecho date date code prepon system integer large function longer return false large number phrp emnote bit range correspond date -PRON- valid timestamp function op requirement php language object live share memory singleton memory usage low create object reference exist instance globally share application memory php application memory singleton create request life request singleton create request time completely instance main purpose singleton applicable ppin addition object conceptually exist application necessarily require language mechanism enforce emnee -PRON- instance href http butunclebob article unclebob noreferrer instantiate -PRON- instance kitten die create instance valid case singleton ppthe purpose global access point instance request sound desirable be not create couple global scope global static href http sebastian bergmann archive testing code singleton html noreferrer make unit testing harder application general maintainable way mitigate general instance class href http fabien potenci org article dependency injection noreferrer dependency injection ppsee slide href http slideshare net singleton php bad eliminate application noreferrer singleton php bad eliminate application additional information ppeven href http wikipedia org wiki erich gamma noreferrer erich gamma singleton pattern inventor doubt pattern nowadays pblockquote -PRON- href http informit article printerfriendly aspx noreferrer favor drop singleton design smell -PRON- read href https stackoverflow question testing registry pattern singleton hard php testing registry pattern singleton hard php lili href https stackoverflow question disadvantage php database class singleton disadvantage php database class singleton lili href https stackoverflow question php pdo database abstraction class design question database abstraction class design php pdo lili href https stackoverflow question singleton good design pattern microblogge site singleton good design pattern microblogge site lili href https stackoverflow question modify class encapsulate inherit modify class encapsulate inherit lili href https stackoverflow question access object class access object class lili href http blog gordon oheim biz singleton php noreferrer singleton php lili href http youtube watch noreferrer clean code talk singleton global state li decide img src https stack imgur dzdio png alt singleton decision diagram http stackoverflow room php reference symbol php php operator symbol php collection question syntax php community wiki invite participate maintain list hard question operator syntax token main idea link exist question stack overflow easy reference copy content php manual note january stack overflow href https meta stackexchange question search engine stack exchange support special character surround search term quote href https stackoverflow search code php code point ask question syntax link page href http php net manual index php noreferrer php manual link question answer question encourage upvote answer list mean substitute provide list token list href http secure php net manual token php noreferrer list parser token phrp code amp code href http secure php net manual language operator bitwise php noreferrer bitwise operator href http secure php net manual language reference php noreferrer reference pulli href https stackoverflow question start php function ampersand lili href https stackoverflow question understanding php amp ampersand bitwise operator lili href https stackoverflow question php amp operator lili href https stackoverflow question difference amp amp amp php lili href https stackoverflow question amp php lili href https stackoverflow question amp case lili href https stackoverflow question amp sign php lili href https stackoverflow question signature amp php lili href https stackoverflow question amp operator work php function lili href https stackoverflow question amp amp php lili href https stackoverflow question bitwise operator lili href https stackoverflow question ampersand object amp li ulhrp code amp code href http secure php net manual language reference php noreferrer reference pulli href https stackoverflow question reference assignment operator php amp lili href https stackoverflow question amp amp operator php lili href https stackoverflow question amp amp operator lili href https stackoverflow question amp php li ulhrp code amp code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question amp amp operator php lili href https stackoverflow question amp amp operator li ulhrp code amp amp code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question amp amp operator lili href https stackoverflow question difference amp amp amp php lili href https stackoverflow question difference amp amp operator php lili href https stackoverflow question php keyword li ulhrp code code href http secure php net manual language operator arithmetic php noreferrer arithmetic operator pulli href https stackoverflow question percent sign php lili href https stackoverflow question php operator real world example li ulhrp code code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question double operator php li ulhrp code code href http secure php net manual language operator errorcontrol php noreferrer error control operator pulli href https stackoverflow question symbol php lili href https stackoverflow question symbol variable php post lili href https stackoverflow question php function lili href https stackoverflow question php code li ulhrp code code href http php net manual language operator comparison php language operator comparison ternary noreferrer ternary operator pulli href https stackoverflow question php operator call lili href https stackoverflow question operator elvi operator php lili href https stackoverflow question read conditional colon lili href https stackoverflow question php operator li ulhrp code code href http php net manual feature php feature null coalesce noreferrer null coalesce operator php pulli href https stackoverflow question null coalesce operator php li ulhrp code code href http secure php net manual control structure alternative syntax php noreferrer alternative syntax control structure href http php net manual language operator comparison php language operator comparison ternary noreferrer ternary operator pulli href https stackoverflow question php lili href https stackoverflow question php li ulhrp code code href http secure php net manual language paamayim nekudotayim php noreferrer scope resolution operator pulli href https stackoverflow question colon php lili href https stackoverflow question meaning php token paamayim nekudotayim lili href https stackoverflow question difference double colon arrow php lili href https stackoverflow question late static binding php lili href https stackoverflow question static lili href https stackoverflow question unexpected paamayim nekudotayim expect separator li ulhrp code code href http php net namespace noreferrer namespace pulli href https stackoverflow question backslash php lili href https stackoverflow question backslash php li ulhrp code code href http secure php net manual language php noreferrer class object pulli href https stackoverflow question php operator call read code loud lili href https stackoverflow question object operator php lili href https stackoverflow question difference double colon arrow php lili href https stackoverflow question php syntax lili href https stackoverflow question refer php li ulhrp code code href http secure php net manual language type array php noreferrer arrays pulli href https stackoverflow question php lili href https stackoverflow question php lili href https stackoverflow question foreach li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question bitwise operator xor work lili href https stackoverflow question php li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question php li ulhrp code lt lt code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question strange print behaviour php strange print behaviour php li ulhrp code lt lt lt code href http php net manual language type string php language type string syntax heredoc noreferrer heredoc nowdoc pulli href https stackoverflow question lt lt lt end php lili href https stackoverflow question php expression lt lt lt eob lili href https stackoverflow question php lt lt lt represent lili href https stackoverflow question lt lt lt php lili href https stackoverflow question kind syntax php li ulhrp code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question equal li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php equality double equal identity triple equal comparison operator differ lili href https stackoverflow question php operator lili href https stackoverflow question equal lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question lili href https stackoverflow question php equality double equal identity triple equal comparison operator differ lili href https stackoverflow question equal lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question comparison operator php lili href https stackoverflow question difference php li ulhrp code code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php operator lili href https stackoverflow question difference php lili href https stackoverflow question compare lili href https stackoverflow question difference difference lt li ulhrp code lt code href http secure php net manual language operator comparison php noreferrer comparison operator pulli href https stackoverflow question php operator lt lili href https stackoverflow question php lt operator lili href https stackoverflow question difference lt lili href https stackoverflow question type juggle strict great less comparison php li ulhrp code lt code href http secure php net manual language operator comparison php noreferrer comparison operator php pulli href https stackoverflow spaceship comparison operator li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question difference operator lili href https stackoverflow question single pipe function argument li ulhrp code code href http secure php net manual language operator logical php noreferrer logical operator pulli href https stackoverflow question difference operator lili href https stackoverflow question php keyword lili href https stackoverflow question lili href https stackoverflow question behaviour operator php li ulhrp code code href http secure php net manual language operator bitwise php noreferrer bitwise operator pulli href https stackoverflow question operator li ulhrp code code href http secure php net manual language operator arithmetic php noreferrer arithmetic operator href http secure php net manual language operator array php noreferrer array operator pulli href https stackoverflow question operator array php li ulhrp code code code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question lili href https stackoverflow question page php document li ulhrp code code code code href http secure php net manual language operator increment php noreferrer incremente decremente operator pulli href https stackoverflow question understanding incremente lili href https stackoverflow answer li ulhrp code code href http secure php net manual language operator assignment php noreferrer assignment operator pulli href https stackoverflow question difference php lili href https stackoverflow question understand line php li ulhrp code code href http secure php net manual language operator string php noreferrer string operator pulli href https stackoverflow question difference period comma concatenate echo return lili href https stackoverflow question dot php li ulhrp code code href http php net manual function argument php noreferrer function argument pulli href https stackoverflow question difference period comma concatenate echo return li ulp code code href http php net manual language variable scope php noreferrer variable declaration pulli href https stackoverflow question commas variable declaration li ulhrp code code href http php net manual language variable variable php noreferrer variable variable pulli href https stackoverflow question dollar dollar double dollar php lili href https stackoverflow question php lili href https stackoverflow question function variable li ulhrp code code href http php net manual language operator execution php noreferrer execution operator pulli href https stackoverflow question backtick call li ulhrp code lt code href http php net manual core php short open tag noreferrer short open tag pulli href https stackoverflow question symbol php lt lili href https stackoverflow question lt php lili href https stackoverflow question lt li ulhrp code code href http secure php net manual language type array php noreferrer arrays short syntax php pulli href https stackoverflow php arrays meaning bracket lili href https stackoverflow question meaning lili href https stackoverflow question php array push myarray lili href https stackoverflow question read php array lili href https stackoverflow question shorthand arrays literal code var code array li ulhrp code lt code href http secure php net manual language basic syntax php noreferrer opening closing tag pulli href https stackoverflow question php short tag acceptable li ulhrp code code href http php net manual function argument php function variable arg list noreferrer argument unpack php phrp code code href http secure php net manual feature php feature exponentiation noreferrer exponentiation php phrp code code href http php net manual language basic syntax comment php noreferrer line shell style comment pulli href https stackoverflow question hash comment php hash comment php li ulhr foo foo avoid evil true codeglobal code keyword reach local scope global scope static singleton registry constant function rely codefunction fn global foo constant foo constant global foo incl superglobal foo bar static incl singleton registry code prepall make code depend mean global state application reliably function exist environment ppuse superglobal obvious flaw code command line code code code post code code rely input limit web environment abstract request object ppin case couple hardcode classname static constant function exist class issue class namespace start mix namespace create tangle mess severly hamper href http sebastian bergmann archive stub hard code dependency html noreferrer unit testing ppalso function signature lie couple global scope codefunction fn code prepi liar claim function pass function body learn set environment state ppif function require argument run make explicit pass codefunction fn sth argument code prepclearly convey signature require call dependent environment specific state do not code foo bar fn code prepit matter pull global keyword push argument push inject dependency function rely anymore codefn code do not variable hold pull global code code function couple global scope expect variable define function longer independent ppeven bad change global function code quickly completely function sideeffect place ppin lack codefunction fn global foo echo foo effect echo e foo bar effect change code prepand code foo foo fn print foofn print bar lt wtf code prepthere code foo code change line call function argument sudden change output change global state function define input ppthis severe encapsulation reach global scope break encapsulation singleton registry framework code smell remove favor dependency injection decouple code ppmore resource pulli href http cgi wiki noreferrer http cgi wiki lili href https stackoverflow question testing registry pattern singleton hard php testing registry pattern singleton hard php lili href http misko hevery code reviewer guide flaw brittle global state singleton noreferrer flaw brittle global state amp singleton lili href http kore nordmann blog static consider harmful html noreferrer codestatic code consider harmful lili href http blog gordon oheim biz singleton php noreferrer singleton php lili href wikipedia org wiki solid object orient design noreferrer solid object orient design li trade off agree userland constant severe global variable immutable state global state encapsulate class constant issue solely efferent couple consume code namespace package create dependency define code effectively make constant public api change remove risk break true global constant evil true codeglobal code keyword reach local scope global scope static singleton registry constant function rely codefunction fn global foo constant foo constant global foo incl superglobal foo bar static incl singleton registry code prepall make code depend mean global state application reliably function exist environment ppuse superglobal obvious flaw code command line code code code post code code rely input limit web environment abstract request object ppin case couple hardcode classname static constant function exist class issue class namespace start mix namespace create tangle mess severly hamper href http sebastian bergmann archive stub hard code dependency html noreferrer unit testing ppalso function signature lie couple global scope codefunction fn code prepi liar claim function pass function body learn set environment state ppif function require argument run make explicit pass codefunction fn sth argument code prepclearly convey signature require call dependent environment specific state do not code foo bar fn code prepit matter pull global keyword push argument push inject dependency function rely anymore codefn code do not variable hold pull global code code function couple global scope expect variable define function longer independent ppeven bad change global function code quickly completely function sideeffect place ppin lack codefunction fn global foo echo foo effect echo e foo bar effect change code prepand code foo foo fn print foofn print bar lt wtf code prepthere code foo code change line call function argument sudden change output change global state function define input ppthis severe encapsulation reach global scope break encapsulation singleton registry framework code smell remove favor dependency injection decouple code ppmore resource pulli href http cgi wiki noreferrer http cgi wiki lili href https stackoverflow question testing registry pattern singleton hard php testing registry pattern singleton hard php lili href http misko hevery code reviewer guide flaw brittle global state singleton noreferrer flaw brittle global state amp singleton lili href http kore nordmann blog static consider harmful html noreferrer codestatic code consider harmful lili href http blog gordon oheim biz singleton php noreferrer singleton php lili href wikipedia org wiki solid object orient design noreferrer solid object orient design li famous equal good design couple hurt hurt hamper reuse maintainability code bother change trade,1,NULL,PHP and strict resource types php php pDoes PHP support strict typing for resources If so how ppFor example ppre code declare strict types ch curl init test ch function test resource ch code prepThe above will give the error pblockquote pFatal error Uncaught TypeError Argument passed to test must be an instance of resource resource given blockquotepA var dump on code ch code reveals it to be strongresource curl strong and the manual says codecurl init code returns resource ppIs it at all possible to strictly type the codetest code function to support the code ch variable code pPHP does not have href https wiki php net rfc scalar type hints type hint for resources because pblockquote pNo type hint for resources is added as this would prevent moving from resources to objects for existing extensions which some have already done GMP blockquotepHowever you can use href http php net is resource codeis resource code within the function method body to verify the passed argument and handle it as needed reusable version would be an assertion like this ppre codefunction assert resource resource if false is resource resource throw new InvalidArgumentException sprintf Argument must be valid resource type given gettype resource code prepwhich you could then use within your code like that ppre codefunction test ch assert resource ch do something with resource code pre,,,, 33431,492612,578843,Yearling Nice Answer Enlightened c# Guru Good Answer Good Answer Great Answer Yearling Nice Answer Caucus vb.net Announcer Yearling Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 33432,169310,379120,NULL,NULL,NULL,0,NULL,NULL 33433,1311592,818224,NULL,NULL,NULL,0,NULL,NULL 33434,50275,491504,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 33435,187829,274512,NULL,NULL,NULL,0,NULL,NULL 33436,253501,1045016,NULL,NULL,NULL,0,NULL,NULL 33437,1080000,1029476,Informed Editor Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 33438,208030,1535919,Necromancer Yearling Revival Caucus Announcer Excavator,NULL,NULL,0,NULL,NULL 33439,1208428,156645,Popular Question Popular Question Notable Question Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33440,824583,1525430,Civic Duty Curious Caucus Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 33441,106624,1088613,NULL,NULL,NULL,0,NULL,NULL 33442,6991,1162479,NULL,NULL,NULL,0,NULL,NULL 33443,1183066,1161746,Curious Investor Teacher Notable Question,NULL,NULL,0,NULL,NULL 33444,725620,653743,NULL,NULL,NULL,0,NULL,NULL 33445,209049,992144,NULL,NULL,NULL,0,NULL,NULL 33446,508138,172870,Popular Question Necromancer Necromancer Necromancer Revival Nice Answer Necromancer Necromancer Nice Answer Necromancer Yearling Nice Answer Notable Question Nice Answer Nice Answer Necromancer Nice Answer Revival Yearling Revival Necromancer Nice Answer Necromancer Necromancer javascript Custodian Revival Revival Curious Necromancer Nice Answer Necromancer Revival Self-Learner Popular Question Good Answer Yearling Nice Answer Nice Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 33447,149463,343455,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33448,278016,486581,Student,NULL,NULL,0,NULL,NULL 33449,430149,1461643,NULL,NULL,NULL,0,NULL,NULL 33450,222116,12679,Necromancer Yearling Necromancer Nice Answer Yearling Necromancer Scholar Tumbleweed Yearling Nice Answer Excavator Custodian Revival Caucus Yearling Student Nice Answer Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33451,1637363,307963,Necromancer,NULL,NULL,0,NULL,NULL 33452,574683,893545,NULL,NULL,NULL,0,NULL,NULL 33453,13053,50240,Enlightened Good Answer Custodian Yearling Enthusiast Yearling Caucus,NULL,NULL,0,NULL,NULL 33454,124744,848250,Good Answer Necromancer Taxonomist Notable Question Yearling Nice Answer Enlightened Popular Question Caucus Necromancer Guru Good Answer Yearling Caucus Constituent ruby-on-rails Census Nice Answer Enlightened Caucus Nice Answer Yearling Reviewer Popular Question,NULL,NULL,0,NULL,NULL 33455,470413,692834,NULL,NULL,NULL,0,NULL,NULL 33456,200440,435328,Nice Answer Yearling Nice Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 33457,172308,832620,Popular Question,NULL,NULL,0,NULL,NULL 33458,228919,655184,NULL,NULL,NULL,0,NULL,NULL 33459,63242,253288,Yearling Guru Popular Question Popular Question Guru Notable Question Great Answer Notable Question Caucus Custodian Yearling Custodian Nice Question Famous Question Popular Question Notable Question Good Question Notable Question Famous Question Popular Question Yearling Famous Question Guru Popular Question,NULL,NULL,0,NULL,NULL 33460,130400,1161857,NULL,NULL,NULL,0,NULL,NULL 33461,135240,1217842,Popular Question,NULL,NULL,0,NULL,NULL 33462,1396150,944822,Yearling Popular Question Notable Question Great Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 33463,207554,944822,Yearling Popular Question Notable Question Great Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 33464,1310558,171318,xpath Nice Answer bash Announcer Guru Nice Answer Enlightened awk Good Answer Popular Question Good Answer git Good Answer Good Answer Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Nice Answer Good Answer Generalist Good Answer sed Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened linux Popular Question Good Answer Guru Guru Yearling Nice Answer Enlightened Nice Question find Nice Answer Good Answer Caucus Necromancer Good Answer Guru mysql Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru string json sh Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Good Question Guru Curious Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Announcer Good Answer Nice Answer Nice Answer Enlightened Announcer Yearling Announcer Popular Question Nice Answer Enlightened Documentation User jq Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Caucus Good Answer Nice Answer Enlightened Nice Answer Nice Answer shell Nice Answer Nice Answer command-line Announcer Nice Answer Nice Answer Nice Answer c Announcer Notable Question Great Answer Nice Answer Enlightened Guru Good Answer unix Nice Answer Enlightened Yearling Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Necromancer Famous Question,NULL,pI would use the following codeawk code command ppre codestring text text text text char awk char print NF lt lt lt string code prepI splitting the string by code char code and print the number of resulting fields minus ppIf your shell does not support the code lt lt lt code operator use codeecho code ppre codeecho string awk char print NF code pre grep will only output the number of matching lines It does not count multiple matches per line,0,NULL,NULL 33465,128282,1360238,NULL,NULL,NULL,0,NULL,NULL 33466,93062,700987,NULL,NULL,NULL,0,NULL,NULL 33467,281634,451100,NULL,NULL,NULL,0,NULL,NULL 33468,14667,360359,NULL,NULL,NULL,0,NULL,NULL 33469,87253,403425,Famous Question Good Answer Yearling Notable Question Investor Altruist Nice Question Popular Question Famous Question Notable Question Census Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33470,2532,892895,NULL,NULL,NULL,0,NULL,NULL 33471,801540,258842,Caucus Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 33472,109624,1327069,Yearling Guru,NULL,NULL,0,NULL,NULL 33473,182059,963990,Benefactor Yearling Popular Question Self-Learner Popular Question Caucus Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33474,274709,1498340,Revival,NULL,NULL,0,NULL,NULL 33475,227820,1114097,NULL,NULL,NULL,0,NULL,NULL 33476,459940,993170,NULL,NULL,NULL,0,NULL,NULL 33477,16356,1509538,NULL,NULL,NULL,0,NULL,NULL 33478,112952,990877,Guru Good Answer Nice Answer Yearling Nice Answer Enlightened javascript Nice Answer Yearling Student Guru Announcer Yearling Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33479,413370,1543460,NULL,NULL,NULL,0,NULL,NULL 33480,235112,785702,NULL,NULL,NULL,0,NULL,NULL 33481,84598,128083,Editor Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 33482,459832,1169454,Yearling Nice Answer Enlightened Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 33483,73427,857507,NULL,NULL,NULL,0,NULL,NULL 33484,1312398,1205806,NULL,NULL,NULL,0,NULL,NULL 33485,43756,687764,Tumbleweed Teacher Supporter Popular Question Scholar Yearling,NULL,NULL,0,NULL,NULL 33486,144082,1201524,NULL,NULL,NULL,0,NULL,NULL 33487,308771,1356784,NULL,NULL,NULL,0,NULL,NULL 33488,49364,805664,Supporter,NULL,NULL,0,NULL,NULL 33489,200190,253,Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 33490,6835750,321042,Notable Question,NULL,NULL,0,NULL,NULL 33491,18072,321042,Notable Question,NULL,NULL,0,NULL,NULL 33492,244779,935726,Enthusiast Critic Announcer,NULL,NULL,0,NULL,NULL 33493,484630,1381553,Announcer Announcer,NULL,NULL,0,NULL,NULL 33494,2045587,1458056,NULL,NULL,NULL,0,NULL,NULL 33495,682967,1458056,NULL,NULL,NULL,0,NULL,NULL 33496,208619,990464,NULL,NULL,NULL,0,NULL,NULL 33497,14666,72743,NULL,NULL,NULL,0,NULL,NULL 33498,497998,228370,Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Yearling Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Announcer Popular Question Notable Question Popular Question Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Answer Notable Question Enlightened Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33499,570745,451712,NULL,NULL,NULL,0,NULL,NULL 33500,179315,551181,NULL,NULL,NULL,0,NULL,NULL 33501,186097,1021828,NULL,NULL,NULL,0,NULL,NULL 33502,74371,412385,Teacher Supporter Announcer,NULL,NULL,0,NULL,NULL 33503,1438020,858002,Famous Question Nice Question Popular Question Curious Yearling Good Question Good Answer,NULL,NULL,0,NULL,NULL 33504,222850,492393,Good Question Revival Nice Answer Necromancer Yearling Notable Question Notable Question Famous Question Notable Question Yearling Custodian Popular Question Nice Answer Famous Question Yearling Notable Question,NULL,IndexedDB in IE11 Edge why is objStore autoIncrement undefined html5 internet explorer 11 indexeddb saucelabs pI am trying to fix failing tests of href https github com 1999 sklad pull 15 rel nofollow sklad library in Internet Explorer by running them in SauceLabs Unfortunately found that autoIncrement property of object store is always undefined but couldn find any evidence that this property is broken in IE Or am missing smth ppre codevar sDBName ADatabase Date now var nDBVersion var req indexedDB open sDBName nDBVersion req onsuccess function evt var tr evt target result transaction MyObjectStore readwrite reaonly tr oncomplete function console log transaction completed var objStore tr objectStore MyObjectStore console log objStore objStore expect to get true but it undefined console log objStore autoIncrement objStore autoIncrement console log objStore keyPath objStore keyPath req onupgradeneeded function evt console log upgradeneeded var hDBHandle evt target result var sStoreName MyObjectStore var oDBOptions keyPath RecordID autoIncrement true var oStore hDBHandle createObjectStore sStoreName oDBOptions var oIxOptions unique false multientry false oStore createIndex SortByTitle DeckTitle oIxOptions oStore createIndex SortByDesc Description oIxOptions console log upgraded code pre just found the same issue in MS bug tracker but it closed in 2012 and bug should ve been fixed in IE10 https connect microsoft com IE Feedback Details 772726 IndexedDB in IE11 Edge why is objStore autoIncrement undefined html5 internet explorer 11 indexeddb saucelabs pI am trying to fix failing tests of href https github com 1999 sklad pull 15 rel nofollow sklad library in Internet Explorer by running them in SauceLabs Unfortunately found that autoIncrement property of object store is always undefined but couldn find any evidence that this property is broken in IE Or am missing smth ppre codevar sDBName ADatabase Date now var nDBVersion var req indexedDB open sDBName nDBVersion req onsuccess function evt var tr evt target result transaction MyObjectStore readwrite reaonly tr oncomplete function console log transaction completed var objStore tr objectStore MyObjectStore console log objStore objStore expect to get true but it undefined console log objStore autoIncrement objStore autoIncrement console log objStore keyPath objStore keyPath req onupgradeneeded function evt console log upgradeneeded var hDBHandle evt target result var sStoreName MyObjectStore var oDBOptions keyPath RecordID autoIncrement true var oStore hDBHandle createObjectStore sStoreName oDBOptions var oIxOptions unique false multientry false oStore createIndex SortByTitle DeckTitle oIxOptions oStore createIndex SortByDesc Description oIxOptions console log upgraded code pre the only sad thing is that no one reopened bug in Microsoft tracker,1,IndexedDB in IE11 Edge why is objStore autoIncrement undefined html5 internet explorer 11 indexeddb saucelabs pI am trying to fix failing tests of href https github com 1999 sklad pull 15 rel nofollow sklad library in Internet Explorer by running them in SauceLabs Unfortunately found that autoIncrement property of object store is always undefined but couldn find any evidence that this property is broken in IE Or am missing smth ppre codevar sDBName ADatabase Date now var nDBVersion var req indexedDB open sDBName nDBVersion req onsuccess function evt var tr evt target result transaction MyObjectStore readwrite reaonly tr oncomplete function console log transaction completed var objStore tr objectStore MyObjectStore console log objStore objStore expect to get true but it undefined console log objStore autoIncrement objStore autoIncrement console log objStore keyPath objStore keyPath req onupgradeneeded function evt console log upgradeneeded var hDBHandle evt target result var sStoreName MyObjectStore var oDBOptions keyPath RecordID autoIncrement true var oStore hDBHandle createObjectStore sStoreName oDBOptions var oIxOptions unique false multientry false oStore createIndex SortByTitle DeckTitle oIxOptions oStore createIndex SortByDesc Description oIxOptions console log upgraded code pre,NULL 33505,99489,621807,NULL,NULL,NULL,0,NULL,NULL 33506,238145,1060415,NULL,NULL,NULL,0,NULL,NULL 33507,516805,724346,NULL,NULL,NULL,0,NULL,NULL 33508,975119,938503,NULL,NULL,NULL,0,NULL,NULL 33509,96133,512453,Self-Learner Necromancer Popular Question Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Citizen Patrol Nice Answer Enlightened Documentation User Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 33510,216512,894338,NULL,NULL,NULL,0,NULL,NULL 33511,233667,198128,Good Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Popular Question Great Question Notable Question Notable Question Famous Question Famous Question Nice Question Famous Question Famous Question Nice Question Famous Question Favorite Question Nice Question Notable Question Famous Question Yearling Popular Question Popular Question Nice Question Famous Question Nice Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Notable Question Popular Question Famous Question Good Question Good Question Famous Question Famous Question Nice Question Notable Question Notable Question Popular Question Famous Question Nice Question Famous Question Famous Question Notable Question Good Question Nice Question Custodian Notable Question Yearling Notable Question Nice Question Good Question Notable Question Nice Question Great Question Popular Question Good Question Famous Question Notable Question Notable Question Notable Question Yearling Popular Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33512,498235,706536,NULL,NULL,NULL,0,NULL,NULL 33513,256793,491877,NULL,NULL,NULL,0,NULL,NULL 33514,148771,4747,Yearling Caucus Census Notable Question Yearling Announcer Census Nice Answer Enlightened Informed Yearling,NULL,NULL,0,NULL,NULL 33515,208569,935734,NULL,NULL,NULL,0,NULL,NULL 33516,1530562,252114,NULL,NULL,NULL,0,NULL,NULL 33517,59458,745570,Necromancer Yearling Necromancer Organizer Revival Nice Answer Announcer Nice Answer Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 33518,55916,116932,Popular Question Notable Question Explainer Popular Question Popular Question Famous Question Yearling Popular Question Notable Question Popular Question Notable Question Good Question Nice Answer Enlightened Popular Question Suffrage Vox Populi Reviewer Custodian Popular Question Popular Question Yearling Notable Question Stellar Question Caucus Constituent Taxonomist Popular Question Documentation User Popular Question Nice Answer Enlightened kubernetes Nice Answer Enlightened Notable Question Notable Question Favorite Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Popular Question Good Answer Good Question Nice Answer Enlightened Popular Question,NULL,Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes Strange would be nice to know once it works for you too Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes Sorry not sure why removed it it will be back in few minutes The Dockerfile etc is here https github com tolleiv docker misc tree master 2017 prometheus reload pAs mentioned by using codeactiveDeadlineSeconds code is an easy option but comes with the risk of loosing all pods at once To mitigate that risk use codedeployment code to manage the pods and their rollout and configure small second container along with the actual application The small helper could be configured like this href https kubernetes io docs tasks configure pod container configure liveness readiness probes rel nofollow noreferrer following the official docs ppre codeapiVersion v1kind Podmetadata name app livenessspec containers name liveness args bin sh touch tmp healthy sleep RANDOM 3600 1800 rm rf tmp healthy sleep 600 image gcr io google containers busybox livenessProbe exec command cat tmp healthy initialDelaySeconds periodSeconds name yourapplication imagePullPolicy Always image nginx alpine code prepWith this configuration every pod would break randomly within the configured timeframe here between 30 and 90mins and that would trigger the start of new pod The codeimagePullPolicy Always code would then make sure that the image is updated during that cycle ppThis of course assumes that your application versions are always available under the same name tag The Pod is always scheduled as whole so failing container will reschedule the entire pod pAs mentioned by using codeactiveDeadlineSeconds code is an easy option but comes with the risk of loosing all pods at once To mitigate that risk use codedeployment code to manage the pods and their rollout and configure small second container along with the actual application The small helper could be configured like this href https kubernetes io docs tasks configure pod container configure liveness readiness probes rel nofollow noreferrer following the official docs ppre codeapiVersion v1kind Podmetadata name app livenessspec containers name liveness args bin sh touch tmp healthy sleep RANDOM 3600 1800 rm rf tmp healthy sleep 600 image gcr io google containers busybox livenessProbe exec command cat tmp healthy initialDelaySeconds periodSeconds name yourapplication imagePullPolicy Always image nginx alpine code prepWith this configuration every pod would break randomly within the configured timeframe here between 30 and 90mins and that would trigger the start of new pod The codeimagePullPolicy Always code would then make sure that the image is updated during that cycle ppThis of course assumes that your application versions are always available under the same name tag in case the probe fails beyond the failureThreshold it should iirc still restart the Pod see https kubernetes io docs tasks configure pod container configure liveness readiness probes configure probes,1,NULL,How would run simple container the triggers Prometheus to reload its config when the underlying ConfigMap changes kubernetes prometheus pWhile running Prometheus in Kubernetes pushing out new config via codeConfigMap code ConfigMaps are exposed as files in the container ppI would love Prometheus to automatically reload its configuration when the file changes ppWould something like this work ppre codeinotifywait close write etc prometheus config yml while read filename event do curl POST http localhost 9090 reloaddone code pre Edit took some time to get this fully to work this works with small sidecar container The configuration could look like this ppre codeapiVersion extensions v1beta1kind Deploymentmetadata name prometheusspec replicas template spec containers your actual container config goes here name refresh imagePullPolicy Always args etc prometheus config yml http localhost 9090 reload image tolleiv k8s prometheus reload volumeMounts name config volume mountPath etc prometheus volumes name config volume configMap name prometheus code prepThe actual check is done with this script where the observed file and the URL are passed as parameters ppre code bin shwhile true do inotifywait readlink echo date Trigger refresh curl sSL POST gt dev nulldone code prepEverything can be found in href https hub docker com tolleiv k8s prometheus reload rel nofollow noreferrer this container on Dockerhub ppKeeping single codeinotifywait code with the code code didn work because of symlink juggling which is done by Kubernetes when the codeConfigMap code changes How to roll kubernetes updates in intervals kubernetes kubernetes health check pWe have case where we need to make sure that pods in k8s have the latest version possible emWhat is the best way to accomplish this em ppFirst idea was to kill the pod after some point knowing that the new ones will come up pulling the latest image Here is href https github com kubernetes kubernetes pull 7868 commits 82163326117f095e75b4f1f1d830eb95667e86e6 rel nofollow noreferrer what we found so far Still don know how to do it ppAnother idea is having coderolling update code executed in intervals like every hours Is there way to do this pAs mentioned by using codeactiveDeadlineSeconds code is an easy option but comes with the risk of loosing all pods at once To mitigate that risk use codedeployment code to manage the pods and their rollout and configure small second container along with the actual application The small helper could be configured like this href https kubernetes io docs tasks configure pod container configure liveness readiness probes rel nofollow noreferrer following the official docs ppre codeapiVersion v1kind Podmetadata name app livenessspec containers name liveness args bin sh touch tmp healthy sleep RANDOM 3600 1800 rm rf tmp healthy sleep 600 image gcr io google containers busybox livenessProbe exec command cat tmp healthy initialDelaySeconds periodSeconds name yourapplication imagePullPolicy Always image nginx alpine code prepWith this configuration every pod would break randomly within the configured timeframe here between 30 and 90mins and that would trigger the start of new pod The codeimagePullPolicy Always code would then make sure that the image is updated during that cycle ppThis of course assumes that your application versions are always available under the same name tag 33519,507214,863857,Good Answer Yearling Revival Custodian Informed Autobiographer Necromancer Nice Answer Enlightened Custodian Caucus Enthusiast Yearling Custodian,NULL,linked ELF file contains no symbols gcc linker avr pI compiled my AVR source code to object files These objects contain debug symbols pp code avr nm code 00000000 ClockInit32MhzXtal00000000 CopyDataToSensors00000000 FindSensors I2CInitMaster00000000 PC UsartInit00000000 ReadFromSensorSettings00000000 ResetAndAlignSampleClock00000000 SampleClockTimerInit00000000 SendDataToPC code ppWhen linking all files into single file these symbols seem to be lost although specified the option pp code usr local bin avr gcc O1 lm Wall Wstrict prototypes Wl gc sections Wl std gnu99 funsigned char funsigned bitfields fpack struct fshort enums ffunction sections fdata sections Wl search paths first Wl headerpad max install names DF CPU 32000000 mmcu atxmega128a1u file1 file2 program elf usr local opt avr binutils bin avr ld warning cannot find entry symbol arch paths first defaulting to 0000000000000000 avr nm program elfavr nm program elf no symbols code ppHow can this be Shouldn the linker create new symbol table with debug info in the linked file pp codeavr gcc gcc version GCC avr ld GNU ld GNU Binutils 25 code Solved by clawson at avrfreaks net Wl search paths first is misinterpreted as Wl se and arch paths first because the non existance of the search paths first option in avr ld This option was automatically added by misconfigured CMake config http www avrfreaks net comment 1985241 comment 1985241,1,linked ELF file contains no symbols gcc linker avr pI compiled my AVR source code to object files These objects contain debug symbols pp code avr nm code 00000000 ClockInit32MhzXtal00000000 CopyDataToSensors00000000 FindSensors I2CInitMaster00000000 PC UsartInit00000000 ReadFromSensorSettings00000000 ResetAndAlignSampleClock00000000 SampleClockTimerInit00000000 SendDataToPC code ppWhen linking all files into single file these symbols seem to be lost although specified the option pp code usr local bin avr gcc O1 lm Wall Wstrict prototypes Wl gc sections Wl std gnu99 funsigned char funsigned bitfields fpack struct fshort enums ffunction sections fdata sections Wl search paths first Wl headerpad max install names DF CPU 32000000 mmcu atxmega128a1u file1 file2 program elf usr local opt avr binutils bin avr ld warning cannot find entry symbol arch paths first defaulting to 0000000000000000 avr nm program elfavr nm program elf no symbols code ppHow can this be Shouldn the linker create new symbol table with debug info in the linked file pp codeavr gcc gcc version GCC avr ld GNU ld GNU Binutils 25 code,NULL 33520,8267085,463785,Guru Favorite Question asp.net-core Announcer Nice Question Notable Question Popular Question Nice Answer Enlightened Notable Question Good Answer Famous Question Notable Question Nice Answer Enlightened Nice Answer Good Answer Announcer Nice Question Good Question Nice Question Nice Answer Enlightened Popular Question Popular Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Nice Question Nice Answer Famous Question Nice Answer Enlightened Revival Notable Question Peer Pressure Good Question Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Nice Answer Announcer Popular Question Nice Question Yearling Popular Question Good Answer Notable Question Favorite Question Notable Question Nice Answer Enlightened Popular Question Notable Question Famous Question Popular Question Famous Question Notable Question Good Answer Announcer Popular Question Famous Question Good Answer Announcer Popular Question Popular Question Guru Notable Question Famous Question Popular Question Famous Question Necromancer Booster Notable Question Great Answer Popular Question Nice Question Caucus Constituent Notable Question Popular Question asp.net Good Question Notable Question Famous Question Announcer Nice Question Good Question Yearling Announcer Nice Question Good Question Popular Question Nice Question Popular Question Guru Famous Question Good Question Great Answer Nice Question Publicist Nice Question Famous Question Good Question Notable Question Announcer Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Famous Question Popular Question Booster Popular Question Notable Question Famous Question Famous Question Good Answer Yearling Good Answer,NULL,pBrief answer to your question No You shouldn call codeConfigureAwait false code at the application level like that ppTL DR version of the long answer If you are writing library where you don know your consumer and don need synchronization context which you shouldn in library believe you should always use codeConfigureAwait false code Otherwise the consumers of your library may face deadlocks by consuming your asynchronous methods in blocking fashion This depends on the situation ppHere is bit more detailed explanation on the importance of codeConfigureAwait code method quote from my blog post pblockquote pWhen you are awaiting on method with await keyword compiler generates bunch of code in behalf of you One of the purposes of this action is to handle synchronization with the UI or main thread The key component of this feature is the codeSynchronizationContext Current code which gets the synchronization context for the current thread codeSynchronizationContext Current code is populated depending on the environment you are in The codeGetAwaiter code method of Task looks up for codeSynchronizationContext Current code If current synchronization context is not null the continuation that gets passed to that awaiter will get posted back to that synchronization context pWhen consuming method which uses the new asynchronous language features in blocking fashion you will end up with deadlock if you have an available SynchronizationContext When you are consuming such methods in blocking fashion waiting on the Task with Wait method or taking the result directly from the Result property of the Task you will block the main thread at the same time When eventually the Task completes inside that method in the threadpool it is going to invoke the continuation to post back to the main thread because codeSynchronizationContext Current code is available and captured But there is problem here the UI thread is blocked and you have deadlock blockquotepAlso here are two great articles for you which are exactly for your question pulli href http www tugberkugurlu com archive the perfect recipe to shoot yourself in the foot ending up with deadlock using the sharp asynchronous language features rel noreferrer The Perfect Recipe to Shoot Yourself in The Foot Ending up with Deadlock Using the Asynchronous Language Features lili href http www tugberkugurlu com archive asynchronousnet client libraries for your http api and awareness of async await bad effects rel noreferrer Asynchronous NET Client Libraries for Your HTTP API and Awareness of async await Bad Effects li ulpFinally there is great short video from href https twitter com lwischik rel noreferrer Lucian Wischik exactly on this topic href https channel9 msdn com Series Three Essential Tips for Async Async library methods should consider using Task ConfigureAwait false rel noreferrer Async library methods should consider using Task ConfigureAwait false ppHope this helps you need it on every call that you awai at the library level,0,NULL,NULL 33521,596002,13144,Nice Answer Good Answer Yearling Caucus sql c# Yearling Great Answer Guru sql-server Yearling,NULL,NULL,0,NULL,NULL 33522,244962,1433395,NULL,NULL,NULL,0,NULL,NULL 33523,771583,278083,NULL,NULL,NULL,0,NULL,NULL 33524,145279,182402,Good Answer Nice Answer Enlightened Nice Question python Popular Question Nice Answer Yearling Good Answer Caucus Nice Answer Enlightened Popular Question Cleanup Guru Notable Question Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Great Answer,NULL,NULL,0,NULL,NULL 33525,11007,98740,Great Answer Necromancer Great Answer Yearling Good Answer Popular Question Nice Answer Great Question Notable Question Yearling Announcer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 33526,161406,1150619,Popular Question Socratic Custodian Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Good Answer Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Good Question Famous Question Popular Question Popular Question Good Answer Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Question Caucus Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Guru Census Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Caucus Notable Question Popular Question Nice Question Famous Question Yearling Famous Question Good Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33527,154681,121725,Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Popular Question Custodian Good Answer Notable Question Good Answer Yearling Necromancer Guru Revival Announcer Excavator Yearling,NULL,NULL,0,NULL,NULL 33528,2033408,1467431,NULL,NULL,NULL,0,NULL,NULL 33529,588411,1467431,NULL,NULL,NULL,0,NULL,NULL 33530,132890,1019876,Nice Question Yearling Notable Question Custodian Popular Question Announcer,NULL,NULL,0,NULL,NULL 33531,409820,404542,NULL,NULL,NULL,0,NULL,NULL 33532,285423,880367,Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Question Good Answer Revival Guru Yearling Electorate,NULL,NULL,0,NULL,NULL 33533,220405,213246,Self-Learner Yearling Caucus Necromancer Notable Question Commentator,NULL,NULL,0,NULL,NULL 33534,210465,650564,NULL,NULL,NULL,0,NULL,NULL 33535,103640,1148634,Yearling Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 33536,455704,83253,Yearling Census Custodian Yearling Caucus Census Yearling Guru,NULL,NULL,0,NULL,NULL 33537,6667378,83253,Yearling Census Custodian Yearling Caucus Census Yearling Guru,NULL,NULL,0,NULL,NULL 33538,366572,1086154,Student Scholar,NULL,NULL,0,NULL,NULL 33539,133849,888387,NULL,NULL,NULL,0,NULL,NULL 33540,394339,1149927,NULL,NULL,NULL,0,NULL,NULL 33541,841621,808885,NULL,NULL,NULL,0,NULL,NULL 33542,156147,505002,Necromancer Yearling Caucus Great Answer javascript Popular Question Yearling Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 33543,19966,430996,Yearling Tenacious Yearling Caucus Yearling Informed Yearling,NULL,NULL,0,NULL,NULL 33544,1565381,630654,Good Answer Yearling Nice Answer Enlightened Great Answer ruby Self-Learner Nice Answer Nice Answer Good Answer Yearling Good Answer Nice Answer Popular Question Popular Question Yearling Guru Guru Guru javascript,NULL,NULL,0,NULL,NULL 33545,149154,454384,iphone Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 33546,223056,55650,Citizen Patrol Custodian Caucus Popular Question,NULL,NULL,0,NULL,NULL 33547,6715,1309683,NULL,NULL,NULL,0,NULL,NULL 33548,425414,936832,Nice Answer Good Answer Nice Answer Self-Learner Necromancer Nice Question Necromancer Nice Answer profiling Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Necromancer intellij-idea Fanatic memory-leaks Good Answer install4j Guru Nice Answer Nice Answer kotlin Famous Question Caucus Good Answer Popular Question Yearling Revival Documentation User Necromancer Nice Answer Guru Nice Answer Good Answer Announcer Caucus java Yearling Nice Answer Guru Nice Answer,NULL,pI did not find anything for diagonal hatching on the internet either so ll share my solution here ppre code lt pattern id diagonalHatch patternUnits userSpaceOnUse width height gt lt path l2 M0 l4 M3 l2 style stroke black stroke width gt lt pattern gt code prep note the lower case in the path expression ppThe above creates hatch that with diagonal lines from the lower left to the upper right that are pixels apart Beside the diagonal line codeM0 l4 code you also have to stroke the upper left and the lower right edges of the pattern area since the line will otherwise be constricted due to clipping where it intersects the edges of the square pp img src https stack imgur com KTSDL png alt Example of pattern after applying the above steps it shows how the pattern it titled to make the end product ppTo fill rectangle with this pattern do ppre code lt rect width 100 height 100 fill url diagonalHatch gt code pre Change the path to l2 M0 10 l10 10 M9 11 l2,0,NULL,NULL 33549,4891,175020,Revival,NULL,NULL,0,NULL,NULL 33550,318619,458595,NULL,NULL,NULL,0,NULL,NULL 33551,1373861,1279237,NULL,NULL,NULL,0,NULL,NULL 33552,458384,1405371,Necromancer Enthusiast,NULL,NULL,0,NULL,NULL 33553,200381,1521382,NULL,NULL,NULL,0,NULL,NULL 33554,1430827,798073,NULL,NULL,NULL,0,NULL,NULL 33555,83451,289185,NULL,NULL,NULL,0,NULL,NULL 33556,70502,886438,Yearling Guru Yearling Autobiographer,NULL,NULL,0,NULL,NULL 33557,117062,721703,Good Answer Yearling Populist Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 33558,36964,255313,Good Answer Yearling,NULL,NULL,0,NULL,NULL 33559,237278,1545631,NULL,NULL,NULL,0,NULL,NULL 33560,187065,1098801,Yearling,NULL,NULL,0,NULL,NULL 33561,174466,1219148,Student Supporter Teacher Popular Question,NULL,NULL,0,NULL,NULL 33562,413870,1033026,Yearling Yearling,NULL,NULL,0,NULL,NULL 33563,81047,1009778,NULL,NULL,NULL,0,NULL,NULL 33564,90981,218333,Popular Question,NULL,NULL,0,NULL,NULL 33565,2771613,283420,NULL,NULL,NULL,0,NULL,NULL 33566,143607,388139,NULL,NULL,NULL,0,NULL,NULL 33567,233426,1249871,NULL,NULL,NULL,0,NULL,NULL 33568,12161,22695,Good Answer,NULL,NULL,0,NULL,NULL 33569,362894,450458,NULL,NULL,NULL,0,NULL,NULL 33570,849342,691506,Custodian Yearling Notable Question Nice Answer Popular Question Yearling Good Answer Nice Question Yearling Famous Question Popular Question Notable Question Caucus Self-Learner Yearling Notable Question Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 33571,1099563,290960,NULL,NULL,NULL,0,NULL,NULL 33572,8833,1384331,NULL,NULL,NULL,0,NULL,NULL 33573,338641,1498081,NULL,NULL,NULL,0,NULL,NULL 33574,97081,808960,NULL,NULL,NULL,0,NULL,NULL 33575,403095,982671,Good Answer Yearling Cleanup Populist,NULL,NULL,0,NULL,NULL 33576,242943,545699,NULL,NULL,NULL,0,NULL,NULL 33577,5087748,874465,Yearling Good Answer Yearling Yearling Yearling Yearling Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 33578,892965,874465,Yearling Good Answer Yearling Yearling Yearling Yearling Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 33579,48013,1088844,NULL,NULL,NULL,0,NULL,NULL 33580,102579,1176138,Popular Question Teacher,NULL,NULL,0,NULL,NULL 33581,109729,743913,NULL,NULL,NULL,0,NULL,NULL 33582,31933,925257,NULL,NULL,NULL,0,NULL,NULL 33583,172949,547242,Custodian Popular Question Great Question Notable Question Notable Question Notable Question Nice Answer Yearling Good Answer Popular Question Famous Question Notable Question Nice Answer Notable Question Announcer Notable Question Caucus Nice Question Popular Question Custodian Electorate Yearling Great Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33584,496801,331582,Yearling,NULL,NULL,0,NULL,NULL 33585,112530,523555,NULL,NULL,NULL,0,NULL,NULL 33586,3187438,816365,Nice Question Notable Question Famous Question Yearling Guru Nice Answer Enlightened symfony Good Answer Good Answer Yearling Good Answer Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 33587,17525,816365,Nice Question Notable Question Famous Question Yearling Guru Nice Answer Enlightened symfony Good Answer Good Answer Yearling Good Answer Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 33588,417035,1062113,Editor,NULL,NULL,0,NULL,NULL 33589,806223,710933,Editor,NULL,NULL,0,NULL,NULL 33590,55537,236013,NULL,NULL,NULL,0,NULL,NULL 33591,280897,1274279,NULL,NULL,NULL,0,NULL,NULL 33592,160188,686583,Popular Question Necromancer Necromancer Nice Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 33593,129646,583668,NULL,NULL,NULL,0,NULL,NULL 33594,166695,1026186,NULL,NULL,NULL,0,NULL,NULL 33595,101038,83218,Popular Question Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 33596,292624,879967,NULL,NULL,NULL,0,NULL,NULL 33597,704595,1101448,NULL,NULL,NULL,0,NULL,NULL 33598,571455,1258238,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33599,487246,104673,Yearling Notable Question Favorite Question Yearling Notable Question Great Question Popular Question Yearling Yearling Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33600,9041268,104673,Yearling Notable Question Favorite Question Yearling Notable Question Great Question Popular Question Yearling Yearling Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33601,20796,723983,NULL,NULL,NULL,0,NULL,NULL 33602,189049,494225,NULL,NULL,NULL,0,NULL,NULL 33603,77862,1123884,NULL,NULL,NULL,0,NULL,NULL 33604,900610,1388803,NULL,NULL,NULL,0,NULL,NULL 33605,1511449,1394157,Popular Question Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 33606,145842,877644,Famous Question Notable Question Famous Question Good Question Popular Question Famous Question Famous Question Yearling Nice Answer Enlightened Nice Answer Popular Question Nice Answer Nice Question node.js Yearling Notable Question Good Question Favorite Question Nice Question Good Question Great Question Caucus Notable Question Tag Editor Custodian Custodian Custodian Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 33607,29515,452841,NULL,NULL,NULL,0,NULL,NULL 33608,159514,435682,Nice Answer Yearling Great Answer Notable Question Great Answer Yearling Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 33609,1505693,641635,NULL,NULL,NULL,0,NULL,NULL 33610,579160,68150,Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 33611,130806,526918,NULL,NULL,NULL,0,NULL,NULL 33612,636295,1033365,NULL,NULL,NULL,0,NULL,NULL 33613,1400254,1033365,NULL,NULL,NULL,0,NULL,NULL 33614,55349,240947,Popular Question Yearling Favorite Question Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 33615,673802,402340,NULL,NULL,NULL,0,NULL,NULL 33616,142628,857932,Announcer Teacher Yearling Popular Question Announcer Nice Answer Enlightened Yearling Announcer Good Answer Yearling Revival Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 33617,225624,713019,Notable Question,NULL,NULL,0,NULL,NULL 33618,197642,132284,Popular Question Notable Question Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 33619,422661,603107,NULL,NULL,NULL,0,NULL,NULL 33620,353515,837107,NULL,NULL,NULL,0,NULL,NULL 33621,48800,1141333,NULL,NULL,NULL,0,NULL,NULL 33622,408171,402891,Popular Question Yearling Popular Question Popular Question Excavator Good Answer Yearling Custodian Citizen Patrol Revival Yearling,NULL,NULL,0,NULL,NULL 33623,1842155,878256,NULL,NULL,NULL,0,NULL,NULL 33624,2334217,1096740,Teacher Editor Enthusiast Fanatic Revival,NULL,NULL,0,NULL,NULL 33625,201331,452202,Popular Question Nice Answer Popular Question Notable Question Nice Question Notable Question Necromancer Caucus Yearling Custodian Informed Revival Good Question Caucus Constituent Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 33626,181320,773980,NULL,NULL,NULL,0,NULL,NULL 33627,255702,1235010,Announcer,NULL,NULL,0,NULL,NULL 33628,117481,512979,NULL,NULL,NULL,0,NULL,NULL 33629,168423,430032,Notable Question,NULL,NULL,0,NULL,NULL 33630,326638,1099461,NULL,NULL,NULL,0,NULL,NULL 33631,4473034,1099461,NULL,NULL,NULL,0,NULL,NULL 33632,93474,8482,Popular Question Good Answer Great Question Notable Question Popular Question Famous Question Great Question Famous Question Nice Answer Civic Duty Nice Question Favorite Question Popular Question Yearling Famous Question Good Question Nice Question Great Question Nice Question Famous Question Necromancer Nice Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Answer Nice Question Yearling Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Nice Question Famous Question Favorite Question Nice Question Yearling Nice Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33633,407215,743269,NULL,NULL,NULL,0,NULL,NULL 33634,310014,808682,Documentation User,NULL,NULL,0,NULL,NULL 33635,29697,1182910,NULL,NULL,NULL,0,NULL,NULL 33636,28789,148975,Popular Question Yearling Scholar Commentator Yearling Census Self-Learner Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 33637,248458,391740,Good Answer Yearling,NULL,NULL,0,NULL,NULL 33638,73071,1386341,NULL,NULL,NULL,0,NULL,NULL 33639,1510357,1083452,NULL,NULL,NULL,0,NULL,NULL 33640,322936,744506,NULL,NULL,NULL,0,NULL,NULL 33641,76669,1083705,Caucus Constituent,NULL,NULL,0,NULL,NULL 33642,561863,640618,Notable Question Yearling Yearling Informed Yearling Self-Learner,NULL,NULL,0,NULL,NULL 33643,60530,946140,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 33644,309972,1279822,NULL,NULL,NULL,0,NULL,NULL 33645,56994,633403,Necromancer Yearling Good Answer Populist Great Answer Notable Question Yearling Good Answer Announcer Yearling Revival,NULL,NULL,0,NULL,NULL 33646,259187,606885,Custodian Custodian Yearling Good Answer Excavator Popular Question Yearling Custodian Documentation User Popular Question Announcer Custodian Good Answer Nice Answer Enlightened Yearling,NULL,pIf you want to delete all local branches that are already merged into master you can use the following command ppre codegit branch merged master grep master xargs git branch code prep href http devblog springest com script to remove old git branches rel noreferrer More info Improvement git branch merged master egrep master xargs git branch Output from git v2 10 will display master when master is checked out get rid of master both with or without an asterisk,0,NULL,NULL 33647,216052,50913,Yearling Favorite Question Popular Question Famous Question Necromancer Notable Question Great Question Nice Answer Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Yearling Nice Question Census Great Answer Announcer Nice Answer Nice Answer Nice Answer Custodian Notable Question Necromancer Famous Question Yearling Announcer Great Question Nice Answer,NULL,NULL,0,NULL,NULL 33648,210533,191693,Good Answer Popular Question Announcer Nice Question Notable Question Citizen Patrol Notable Question Yearling Notable Question Caucus Constituent Famous Question Popular Question Popular Question Good Question Yearling Custodian Nice Question Notable Question Announcer Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 33649,234773,1074622,Good Answer Yearling Curious Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 33650,62041,714495,Notable Question Nice Answer Enlightened Notable Question Yearling Nice Question Civic Duty Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Nice Question Good Answer Nice Question Notable Question Nice Question Yearling Famous Question Notable Question Popular Question Notable Question Good Question Nice Question Notable Question Yearling Famous Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 33651,1533903,714495,Notable Question Nice Answer Enlightened Notable Question Yearling Nice Question Civic Duty Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Nice Question Good Answer Nice Question Notable Question Nice Question Yearling Famous Question Notable Question Popular Question Notable Question Good Question Nice Question Notable Question Yearling Famous Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 33652,61516,1557660,NULL,NULL,NULL,0,NULL,NULL 33653,606136,1382850,Self-Learner Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33654,244720,72478,Guru Nice Answer Enlightened Yearling Nice Question Good Answer Nice Answer Necromancer Revival Guru Nice Question Popular Question Yearling Tumbleweed Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Good Answer Popular Question Necromancer Popular Question Good Answer Popular Question Famous Question Yearling Great Question Necromancer Good Question Notable Question Necromancer Nice Answer Nice Answer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 33655,433641,638402,NULL,NULL,NULL,0,NULL,NULL 33656,2176988,649827,NULL,NULL,NULL,0,NULL,NULL 33657,220615,287423,Teacher,NULL,NULL,0,NULL,NULL 33658,1788591,597106,NULL,NULL,NULL,0,NULL,NULL 33659,530091,353115,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 33660,164892,691962,NULL,NULL,NULL,0,NULL,NULL 33661,6039,397079,Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33662,282852,933669,NULL,NULL,NULL,0,NULL,NULL 33663,97897,525975,NULL,NULL,NULL,0,NULL,NULL 33664,49641,501886,NULL,NULL,NULL,0,NULL,NULL 33665,2628,58808,Tag Editor Yearling Nice Answer Enlightened Popular Question Popular Question Good Answer Nice Answer Enlightened Good Question Good Answer Popular Question Popular Question Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened sml Guru Guru Revival Nice Answer Nice Question Nice Answer Good Answer Notable Question Great Answer Guru Notable Question Yearling Guru Guru Nice Answer Nice Question Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Yearling Popular Question Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Famous Question Necromancer,NULL,pThere are some examples on the href https developer mozilla org en Core JavaScript Reference Global Objects Math random rel noreferrer Mozilla Developer Network page ppre code Returns random number between min inclusive and max exclusive function getRandomArbitrary min max return Math random max min min Returns random integer between min inclusive and max inclusive The value is no lower than min or the next integer greater than min if min isn an integer and no greater than max or the next integer lower than max if max isn an integer Using Math round will give you non uniform distribution function getRandomInt min max min Math ceil min max Math floor max return Math floor Math random max min min code prehrpHere the logic behind it It simple rule of three pp codeMath random code returns codeNumber code between inclusive and exclusive So we have an interval like this ppre code code prepNow we like number between codemin code inclusive and codemax code exclusive ppre code min max code prepWe can use the codeMath random code to get the correspondent in the min max interval But first we should factor little bit the problem by subtracting codemin code from the second interval ppre code min min max min code prepThis gives ppre code max min code prepWe may now apply codeMath random code and then calculate the correspondent Let choose random number ppre code Math random max min what we need code prepSo in order to find codex code we would do ppre codex Math random max min code prepDon forget to add codemin code back so that we get number in the min max interval ppre codex Math random max min min code prepThat was the first function from MDN The second one returns an integer between codemin code and codemax code both inclusive ppNow for getting integers you could use coderound code codeceil code or codefloor code ppYou could use codeMath round Math random max min min code this however gives non even distribution Both codemin code and codemax code only have approximately half the chance to roll ppre codemin min min min max max└───┬───┘└────────┬───────┘└───── ─────┘└───┬──┘ Math round min min max code prepWith codemax code excluded from the interval it has an even less chance to roll than codemin code ppWith codeMath floor Math random max min min code you have perfectly even distribution ppre codemin min min max max max is excluded from interval └───┬───┘└───┬───┘└─── ┘└───┬───┘└───┬───┘ Math floor min min max max code prepYou can use codeceil code and code code in that equation because codemax code now had slightly less chance to roll but you can roll the unwanted codemin code result too Don forget to add min back so that we get number in the min max interval pThere are some examples on the href https developer mozilla org en Core JavaScript Reference Global Objects Math random rel noreferrer Mozilla Developer Network page ppre code Returns random number between min inclusive and max exclusive function getRandomArbitrary min max return Math random max min min Returns random integer between min inclusive and max inclusive The value is no lower than min or the next integer greater than min if min isn an integer and no greater than max or the next integer lower than max if max isn an integer Using Math round will give you non uniform distribution function getRandomInt min max min Math ceil min max Math floor max return Math floor Math random max min min code prehrpHere the logic behind it It simple rule of three pp codeMath random code returns codeNumber code between inclusive and exclusive So we have an interval like this ppre code code prepNow we like number between codemin code inclusive and codemax code exclusive ppre code min max code prepWe can use the codeMath random code to get the correspondent in the min max interval But first we should factor little bit the problem by subtracting codemin code from the second interval ppre code min min max min code prepThis gives ppre code max min code prepWe may now apply codeMath random code and then calculate the correspondent Let choose random number ppre code Math random max min what we need code prepSo in order to find codex code we would do ppre codex Math random max min code prepDon forget to add codemin code back so that we get number in the min max interval ppre codex Math random max min min code prepThat was the first function from MDN The second one returns an integer between codemin code and codemax code both inclusive ppNow for getting integers you could use coderound code codeceil code or codefloor code ppYou could use codeMath round Math random max min min code this however gives non even distribution Both codemin code and codemax code only have approximately half the chance to roll ppre codemin min min min max max└───┬───┘└────────┬───────┘└───── ─────┘└───┬──┘ Math round min min max code prepWith codemax code excluded from the interval it has an even less chance to roll than codemin code ppWith codeMath floor Math random max min min code you have perfectly even distribution ppre codemin min min max max max is excluded from interval └───┬───┘└───┬───┘└─── ┘└───┬───┘└───┬───┘ Math floor min min max max code prepYou can use codeceil code and code code in that equation because codemax code now had slightly less chance to roll but you can roll the unwanted codemin code result too yeah that right You re not dumb you re just learning pThere are some examples on the href https developer mozilla org en Core JavaScript Reference Global Objects Math random rel noreferrer Mozilla Developer Network page ppre code Returns random number between min inclusive and max exclusive function getRandomArbitrary min max return Math random max min min Returns random integer between min inclusive and max inclusive The value is no lower than min or the next integer greater than min if min isn an integer and no greater than max or the next integer lower than max if max isn an integer Using Math round will give you non uniform distribution function getRandomInt min max min Math ceil min max Math floor max return Math floor Math random max min min code prehrpHere the logic behind it It simple rule of three pp codeMath random code returns codeNumber code between inclusive and exclusive So we have an interval like this ppre code code prepNow we like number between codemin code inclusive and codemax code exclusive ppre code min max code prepWe can use the codeMath random code to get the correspondent in the min max interval But first we should factor little bit the problem by subtracting codemin code from the second interval ppre code min min max min code prepThis gives ppre code max min code prepWe may now apply codeMath random code and then calculate the correspondent Let choose random number ppre code Math random max min what we need code prepSo in order to find codex code we would do ppre codex Math random max min code prepDon forget to add codemin code back so that we get number in the min max interval ppre codex Math random max min min code prepThat was the first function from MDN The second one returns an integer between codemin code and codemax code both inclusive ppNow for getting integers you could use coderound code codeceil code or codefloor code ppYou could use codeMath round Math random max min min code this however gives non even distribution Both codemin code and codemax code only have approximately half the chance to roll ppre codemin min min min max max└───┬───┘└────────┬───────┘└───── ─────┘└───┬──┘ Math round min min max code prepWith codemax code excluded from the interval it has an even less chance to roll than codemin code ppWith codeMath floor Math random max min min code you have perfectly even distribution ppre codemin min min max max max is excluded from interval └───┬───┘└───┬───┘└─── ┘└───┬───┘└───┬───┘ Math floor min min max max code prepYou can use codeceil code and code code in that equation because codemax code now had slightly less chance to roll but you can roll the unwanted codemin code result too we re looking forward to your answer Also not sure where you ve tested these but they work fine for me pThere are some examples on the href https developer mozilla org en Core JavaScript Reference Global Objects Math random rel noreferrer Mozilla Developer Network page ppre code Returns random number between min inclusive and max exclusive function getRandomArbitrary min max return Math random max min min Returns random integer between min inclusive and max inclusive The value is no lower than min or the next integer greater than min if min isn an integer and no greater than max or the next integer lower than max if max isn an integer Using Math round will give you non uniform distribution function getRandomInt min max min Math ceil min max Math floor max return Math floor Math random max min min code prehrpHere the logic behind it It simple rule of three pp codeMath random code returns codeNumber code between inclusive and exclusive So we have an interval like this ppre code code prepNow we like number between codemin code inclusive and codemax code exclusive ppre code min max code prepWe can use the codeMath random code to get the correspondent in the min max interval But first we should factor little bit the problem by subtracting codemin code from the second interval ppre code min min max min code prepThis gives ppre code max min code prepWe may now apply codeMath random code and then calculate the correspondent Let choose random number ppre code Math random max min what we need code prepSo in order to find codex code we would do ppre codex Math random max min code prepDon forget to add codemin code back so that we get number in the min max interval ppre codex Math random max min min code prepThat was the first function from MDN The second one returns an integer between codemin code and codemax code both inclusive ppNow for getting integers you could use coderound code codeceil code or codefloor code ppYou could use codeMath round Math random max min min code this however gives non even distribution Both codemin code and codemax code only have approximately half the chance to roll ppre codemin min min min max max└───┬───┘└────────┬───────┘└───── ─────┘└───┬──┘ Math round min min max code prepWith codemax code excluded from the interval it has an even less chance to roll than codemin code ppWith codeMath floor Math random max min min code you have perfectly even distribution ppre codemin min min max max max is excluded from interval └───┬───┘└───┬───┘└─── ┘└───┬───┘└───┬───┘ Math floor min min max max code prepYou can use codeceil code and code code in that equation because codemax code now had slightly less chance to roll but you can roll the unwanted codemin code result too you re falling outside the range of safe numbers by using those values think the functions are correct given the limitations of numbers in JS https developer mozilla org en US docs Web JavaScript Reference Global Objects Number isSafeInteger,0,NULL,NULL 33666,561894,341411,NULL,NULL,NULL,0,NULL,NULL 33667,283563,386085,Yearling Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33668,121719,305829,Notable Question,NULL,NULL,0,NULL,NULL 33669,16234,268600,Notable Question Yearling,NULL,NULL,0,NULL,NULL 33670,1754774,997406,Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 33671,149532,441250,Guru Nice Answer Custodian Custodian Nice Answer Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 33672,302199,484369,NULL,NULL,NULL,0,NULL,NULL 33673,1225414,272703,Famous Question,NULL,NULL,0,NULL,NULL 33674,402048,1532784,NULL,NULL,NULL,0,NULL,NULL 33675,61649,974317,Nice Answer Enlightened Fanatic Yearling Announcer python Revival Announcer Yearling Documentation User Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33676,70201,401115,Nice Answer Yearling Notable Question Announcer Announcer Popular Question Yearling Promoter Nice Question Good Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 33677,505601,988646,Necromancer,NULL,NULL,0,NULL,NULL 33678,575140,624611,NULL,NULL,NULL,0,NULL,NULL 33679,1056660,267142,Yearling Great Answer Guru Nice Answer Enlightened Caucus Constituent Curious Yearling Nice Answer Custodian Good Answer Caucus Constituent Nice Answer Custodian Yearling Caucus Custodian Notable Question c# Notable Question,NULL,NULL,0,NULL,NULL 33680,809055,294463,Notable Question Notable Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 33681,1459152,823845,NULL,NULL,NULL,0,NULL,NULL 33682,78064,1286923,NULL,NULL,NULL,0,NULL,NULL 33683,104171,918677,NULL,NULL,NULL,0,NULL,NULL 33684,489304,1092738,NULL,NULL,NULL,0,NULL,NULL 33685,127721,120396,Census Caucus,NULL,NULL,0,NULL,NULL 33686,533069,1452355,NULL,NULL,NULL,0,NULL,NULL 33687,85756,1290053,NULL,NULL,NULL,0,NULL,NULL 33688,924937,1383815,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33689,114105,887093,Critic Editor Caucus Yearling,NULL,NULL,0,NULL,NULL 33690,51063,617937,Suffrage Yearling Good Answer Notable Question Nice Question Popular Question Custodian Caucus Notable Question Nice Answer Yearling Popular Question Famous Question Announcer Popular Question Good Answer Caucus Popular Question Announcer Guru Popular Question Notable Question Popular Question Nice Question Good Answer Popular Question Nice Question Yearling Popular Question Booster Announcer Announcer Popular Question Famous Question Notable Question Famous Question,NULL,MySQL db lib for Python python mysql python pSo looking for mysql db lib that is compatible with py3k py3 py3000 any ideas Google turned up nothing Related Python and MySQL http stackoverflow com 4960048 617937,0,NULL,NULL 33691,554081,374031,Popular Question,NULL,NULL,0,NULL,NULL 33692,1323122,1266538,Necromancer Commentator Critic Necromancer Caucus Constituent Yearling Tumbleweed Nice Answer Necromancer Necromancer Necromancer Yearling Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 33693,361908,341512,Explainer Good Answer Yearling Self-Learner Populist Curious Guru Necromancer Yearling Nice Answer Custodian Notable Question Great Answer Yearling Announcer Yearling Enthusiast,NULL,NULL,0,NULL,NULL 33694,522368,9191,Popular Question Yearling Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 33695,458640,75621,NULL,NULL,NULL,0,NULL,NULL 33696,226446,659228,NULL,NULL,NULL,0,NULL,NULL 33697,440616,149223,NULL,NULL,NULL,0,NULL,NULL 33698,298559,257758,NULL,NULL,NULL,0,NULL,NULL 33699,163298,621652,NULL,NULL,NULL,0,NULL,NULL 33700,243768,554022,Good Question Yearling,NULL,NULL,0,NULL,NULL 33701,111392,784635,Yearling,NULL,NULL,0,NULL,NULL 33702,313587,990941,NULL,NULL,NULL,0,NULL,NULL 33703,802087,858383,NULL,NULL,NULL,0,NULL,NULL 33704,83105,858383,NULL,NULL,NULL,0,NULL,NULL 33705,261851,1205686,NULL,NULL,NULL,0,NULL,NULL 33706,164360,6456,Announcer Nice Answer Yearling Citizen Patrol Custodian Custodian Custodian Necromancer Great Answer Necromancer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 33707,1048740,865998,Popular Question Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33708,1497504,1364617,NULL,NULL,NULL,0,NULL,NULL 33709,1565808,202961,NULL,NULL,NULL,0,NULL,NULL 33710,65468,653531,NULL,NULL,NULL,0,NULL,NULL 33711,204959,478777,Nice Answer Nice Answer Enlightened Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 33712,166202,1355491,NULL,NULL,NULL,0,NULL,NULL 33713,166987,916294,NULL,NULL,NULL,0,NULL,NULL 33714,470365,1383267,NULL,NULL,NULL,0,NULL,NULL 33715,445281,250418,Teacher,NULL,NULL,0,NULL,NULL 33716,860496,1329421,NULL,NULL,NULL,0,NULL,NULL 33717,201450,793312,NULL,NULL,NULL,0,NULL,NULL 33718,1209092,81749,Critic Popular Question,NULL,NULL,0,NULL,NULL 33719,188452,1500893,NULL,NULL,NULL,0,NULL,NULL 33720,343544,902682,Good Answer Yearling Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 33721,367647,899763,NULL,NULL,NULL,0,NULL,NULL 33722,338887,1342989,Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Critic,NULL,NULL,0,NULL,NULL 33723,11200198,1342989,Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Critic,NULL,NULL,0,NULL,NULL 33724,619297,822875,NULL,NULL,NULL,0,NULL,NULL 33725,396701,385360,Yearling Favorite Question Nice Answer Editor Tumbleweed Census Yearling Great Question,NULL,NULL,0,NULL,NULL 33726,20522,308469,Yearling,NULL,NULL,0,NULL,NULL 33727,21134,1187693,NULL,NULL,NULL,0,NULL,NULL 33728,316618,1038975,Popular Question,NULL,NULL,0,NULL,NULL 33729,2659646,1396036,Nice Question,NULL,NULL,0,NULL,NULL 33730,13100,916593,Notable Question Famous Question Editor,NULL,NULL,0,NULL,NULL 33731,428232,225004,Promoter Nice Question Nice Answer Good Answer Yearling Revival Nice Answer Famous Question Yearling Necromancer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 33732,336336,571123,NULL,NULL,NULL,0,NULL,NULL 33733,1366394,670362,Curious Commentator Yearling Caucus Necromancer Popular Question Popular Question Scholar Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33734,1656876,583514,NULL,NULL,NULL,0,NULL,NULL 33735,193455,267345,NULL,NULL,NULL,0,NULL,NULL 33736,165315,1022756,NULL,NULL,NULL,0,NULL,NULL 33737,889065,1410302,Popular Question,NULL,NULL,0,NULL,NULL 33738,1745112,1410302,Popular Question,NULL,NULL,0,NULL,NULL 33739,285090,1040495,Commentator,NULL,NULL,0,NULL,NULL 33740,243192,1379204,Teacher,NULL,NULL,0,NULL,NULL 33741,308316,351585,Custodian Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 33742,636422,8553,Great Answer Yearling Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 33743,3677269,1227011,Yearling Revival Necromancer Yearling Nice Answer Enlightened Caucus Constituent Self-Learner Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 33744,485830,1227011,Yearling Revival Necromancer Yearling Nice Answer Enlightened Caucus Constituent Self-Learner Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 33745,687956,1415432,Popular Question Editor,NULL,NULL,0,NULL,NULL 33746,99442,1250385,NULL,NULL,NULL,0,NULL,NULL 33747,169625,16480,Nice Question Notable Question Notable Question Popular Question Good Question Famous Question Good Answer Yearling Favorite Question Popular Question Yearling Civic Duty Great Question Great Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 33748,201199,348483,NULL,NULL,NULL,0,NULL,NULL 33749,41,351220,Yearling Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 33750,528710,141147,Great Question Yearling,NULL,NULL,0,NULL,NULL 33751,48591,1376224,Popular Question,NULL,NULL,0,NULL,NULL 33752,349801,965308,NULL,NULL,NULL,0,NULL,NULL 33753,7501103,894561,NULL,NULL,NULL,0,NULL,NULL 33754,230498,894561,NULL,NULL,NULL,0,NULL,NULL 33755,1385964,1407881,NULL,NULL,NULL,0,NULL,NULL 33756,63650,780301,Nice Answer,NULL,NULL,0,NULL,NULL 33757,291872,633189,NULL,NULL,NULL,0,NULL,NULL 33758,773729,1438036,Student Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 33759,557474,120143,NULL,NULL,NULL,0,NULL,NULL 33760,249990,350655,NULL,NULL,NULL,0,NULL,NULL 33761,10074410,1053605,NULL,NULL,NULL,0,NULL,NULL 33762,131876,1406039,NULL,NULL,NULL,0,NULL,NULL 33763,844897,342785,Enthusiast Caucus Caucus,NULL,NULL,0,NULL,NULL 33764,896021,1234753,NULL,NULL,NULL,0,NULL,NULL 33765,890570,1174961,Custodian Popular Question Quorum Cleanup Commentator,NULL,NULL,0,NULL,NULL 33766,185107,906829,NULL,NULL,NULL,0,NULL,NULL 33767,271265,233210,Tumbleweed erlang Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 33768,1414717,1001057,Nice Question Yearling Popular Question Nice Answer Famous Question Popular Question Caucus Yearling Necromancer Good Question Necromancer Nice Answer Peer Pressure Caucus Yearling Popular Question Notable Question Good Answer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 33769,1166312,1110512,NULL,NULL,NULL,0,NULL,NULL 33770,362016,197497,Good Answer Custodian Yearling Documentation User,NULL,NULL,0,NULL,NULL 33771,241707,371698,Notable Question Necromancer Yearling Necromancer Nice Answer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 33772,528807,655151,NULL,NULL,NULL,0,NULL,NULL 33773,410590,706776,Notable Question,NULL,NULL,0,NULL,NULL 33774,578949,1246876,Famous Question Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 33775,276059,1380225,Excavator,NULL,NULL,0,NULL,NULL 33776,884181,1500509,NULL,NULL,NULL,0,NULL,NULL 33777,154690,513767,NULL,NULL,NULL,0,NULL,NULL 33778,69877,281108,Nice Answer Enlightened Good Answer Guru Yearling Popular Question Nice Answer Enlightened Good Answer Good Answer Good Answer Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Yearling Good Answer Notable Question Notable Question Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Great Answer Notable Question Yearling Good Answer Nice Answer Enlightened Enlightened Guru Guru Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Guru llvm,NULL,NULL,0,NULL,NULL 33779,1177342,1046489,NULL,NULL,NULL,0,NULL,NULL 33780,412819,1232441,NULL,NULL,NULL,0,NULL,NULL 33781,162557,533711,Good Answer Necromancer Yearling Custodian Announcer Nice Answer Yearling Custodian Tumbleweed Reviewer Excavator Tenacious,NULL,NULL,0,NULL,NULL 33782,52739,1095877,Yearling Popular Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33783,31266,457227,NULL,NULL,NULL,0,NULL,NULL 33784,197780,443246,NULL,NULL,NULL,0,NULL,NULL 33785,1403382,551531,NULL,NULL,NULL,0,NULL,NULL 33786,187603,80728,Famous Question Famous Question Nice Question Notable Question Yearling Notable Question Popular Question Critic,NULL,NULL,0,NULL,NULL 33787,1147591,1502599,Yearling Popular Question Good Answer Notable Question Yearling Organizer Tag Editor Popular Question Caucus Taxonomist Yearling Custodian,NULL,NULL,0,NULL,NULL 33788,892471,493329,Popular Question Famous Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Notable Question Nice Question Popular Question Notable Question Good Question Favorite Question Inquisitive Self-Learner Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 33789,316620,321591,Famous Question Good Question,NULL,NULL,0,NULL,NULL 33790,907676,932818,Popular Question Notable Question Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 33791,4935644,951574,Popular Question Notable Question Self-Learner Notable Question Nice Question,NULL,NULL,0,NULL,NULL 33792,1448175,951574,Popular Question Notable Question Self-Learner Notable Question Nice Question,NULL,NULL,0,NULL,NULL 33793,87824,1281089,Popular Question Nice Answer Notable Question Tumbleweed Yearling Caucus Constituent Critic Commentator Organizer Yearling Revival Custodian Custodian Citizen Patrol Census Yearling Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 33794,62742,1512449,NULL,NULL,NULL,0,NULL,NULL 33795,55144,1352492,NULL,NULL,NULL,0,NULL,NULL 33796,7234772,1233685,NULL,NULL,NULL,0,NULL,NULL 33797,170846,510359,Great Answer Revival Yearling Nice Answer Yearling Announcer Yearling,NULL,pCurrently no it doesn look like it is possible to center view in the superview using emonly em VFL It is however not that difficult to do it using single VFL string and single extra constraint per axis ppVFL code gt 20 view gt 20 code ppre code NSLayoutConstraint constraintWithItem view attribute NSLayoutAttributeCenterX relatedBy NSLayoutRelationEqual toItem view superview attribute NSLayoutAttributeCenterX multiplier constant code prepOne would think that you would simply be able to do this which is what initially thought and tried when saw this question ppre code NSLayoutConstraint constraintsWithVisualFormat gt 20 view 200 gt 20 options NSLayoutFormatAlignAllCenterX NSLayoutFormatAlignAllCenterY metrics nil views view view code prepI tried many different variations of the above trying to bend it to my will but this does not appear to apply to the superview even when explicitly having two separate VFL strings for both axes codeH code then started to try and isolate exactly when the options emdo em get applied to the VFL They appear to emnot em apply to the superview in the VFL and will only apply to any explicit views that are mentioned in the VFL string which is disappointing in certain cases ppI hope in the future Apple adds some kind of new option to have the VFL options take into account the superview even if doing it only when there is only single explicit view besides the superview in the VFL Another solution could be another option passed into the VFL that says something like codeNSLayoutFormatOptionIncludeSuperview code ppNeedless to say learned lot about VFL trying to answer this question Since the padding on either side of view is an inequality it results in an ambiguous constraint set in this case since view also doesn have any defined constraints on it axis Basically there can be several different valid layouts for that VFL string so auto layout deems that ambiguous,0,NULL,NULL 33798,111413,846730,NULL,NULL,NULL,0,NULL,NULL 33799,389575,448378,NULL,NULL,NULL,0,NULL,NULL 33800,144255,1085310,Teacher,NULL,NULL,0,NULL,NULL 33801,1507754,1101346,NULL,NULL,NULL,0,NULL,NULL 33802,54368,231588,Notable Question Popular Question Popular Question Popular Question Notable Question Favorite Question Nice Question Stellar Question Popular Question Popular Question Nice Question Nice Question Famous Question Famous Question Famous Question Notable Question Yearling Great Question Nice Question Famous Question Good Question Notable Question Notable Question Popular Question Socratic Famous Question Good Question Popular Question Notable Question Nice Question Good Question Popular Question Yearling Good Question Notable Question Popular Question Famous Question Famous Question Notable Question Nice Question Popular Question Great Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 33803,566206,1334516,Teacher,NULL,NULL,0,NULL,NULL 33804,127354,235253,Documentation User,NULL,NULL,0,NULL,NULL 33805,22383,418739,Nice Answer Nice Answer Announcer Yearling Popular Question Announcer Caucus Necromancer Peer Pressure,NULL,NULL,0,NULL,NULL 33806,136392,565398,Yearling Nice Answer Caucus Yearling Good Question Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33807,18611,210800,NULL,NULL,NULL,0,NULL,NULL 33808,1519166,948425,NULL,NULL,NULL,0,NULL,NULL 33809,850775,1368783,Yearling Good Answer Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 33810,14745,628156,NULL,NULL,NULL,0,NULL,NULL 33811,1196726,970552,NULL,NULL,NULL,0,NULL,NULL 33812,258309,661199,Custodian Civic Duty Nice Question Caucus Custodian Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33813,61739,1358588,NULL,NULL,NULL,0,NULL,NULL 33814,114594,1106540,Suffrage Vox Populi Yearling Explainer Excavator Civic Duty Informed Autobiographer Nice Answer Good Answer Yearling Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 33815,4943,663147,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 33816,4318251,307708,Yearling,NULL,NULL,0,NULL,NULL 33817,2754,1403369,NULL,NULL,NULL,0,NULL,NULL 33818,373947,902251,Student Scholar,NULL,NULL,0,NULL,NULL 33819,169265,634513,Cleanup Nice Answer Enlightened Yearling Notable Question Good Answer Good Answer Tag Editor Good Answer Nice Answer Good Answer Caucus Constituent Good Answer Yearling Caucus Nice Answer Good Answer Documentation User Notable Question Yearling Caucus Constituent Guru Notable Question Good Answer Nice Answer Enlightened Guru Guru,NULL,NULL,0,NULL,NULL 33820,542326,1133469,NULL,NULL,NULL,0,NULL,NULL 33821,517535,1111926,Popular Question,NULL,NULL,0,NULL,NULL 33822,144004,35060,qt Guru Good Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Custodian Great Answer Custodian Documentation User Yearling Nice Answer Guru Nice Answer Enlightened Nice Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 33823,1023818,989161,NULL,NULL,NULL,0,NULL,NULL 33824,1522406,1276973,Popular Question,NULL,NULL,0,NULL,NULL 33825,514124,757738,NULL,NULL,NULL,0,NULL,NULL 33826,123185,644983,NULL,NULL,NULL,0,NULL,NULL 33827,1618595,1538711,NULL,NULL,NULL,0,NULL,NULL 33828,910620,1538711,NULL,NULL,NULL,0,NULL,NULL 33829,119607,696721,Informed,NULL,NULL,0,NULL,NULL 33830,695869,1537669,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 33831,281430,1134730,NULL,NULL,NULL,0,NULL,NULL 33832,522405,192217,Yearling Popular Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 33833,314214,1278359,NULL,NULL,NULL,0,NULL,NULL 33834,148682,1136156,NULL,NULL,NULL,0,NULL,NULL 33835,1265548,527858,NULL,NULL,NULL,0,NULL,NULL 33836,101159,79996,Yearling Notable Question Revival Self-Learner Good Question Nice Answer Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33837,140316,704285,NULL,NULL,NULL,0,NULL,NULL 33838,568410,1296192,NULL,NULL,NULL,0,NULL,NULL 33839,458447,594488,NULL,NULL,NULL,0,NULL,NULL 33840,3030877,823247,Notable Question Popular Question Notable Question Popular Question Announcer Necromancer Caucus Notable Question Yearling,NULL,pLet me answer to your question in three parts polli pI wondering what is cs txtCompanyID in your example Is it TextBox control If yes then you are on wrong way Generally speaking it not good idea to have any reference to UI in your ViewModel You can ask Why but this is another question to post on Stackoverflow lili pThe best way to track down issues with Focus is debugging Net source code No kidding It saved me lot of time many times To enable net source code debugging refer to href http blogs msdn com sburke archive 2008 01 16 configuring visual studio to debug net framework source code aspx rel noreferrer Shawn Bruke blog lili pFinally general approach that use to set focus from ViewModel is Attached Properties wrote very simple attached property which can be set on any UIElement And it can be bound to ViewModel property IsFocused for example Here it is ppre codepublic static class FocusExtension public static bool GetIsFocused DependencyObject obj return bool obj GetValue IsFocusedProperty public static void SetIsFocused DependencyObject obj bool value obj SetValue IsFocusedProperty value public static readonly DependencyProperty IsFocusedProperty DependencyProperty RegisterAttached IsFocused typeof bool typeof FocusExtension new UIPropertyMetadata false OnIsFocusedPropertyChanged private static void OnIsFocusedPropertyChanged DependencyObject DependencyPropertyChangedEventArgs var uie UIElement if bool NewValue uie Focus Don care about false values code prepNow in your View in XAML you can bind this property to your ViewModel ppre code lt TextBox local FocusExtension IsFocused Binding IsUserNameFocused gt code pre li olpHope this helps If it doesn refer to the answer ppCheers after you set the focus and another control gets the focus to set the focus again won work because IsFocused is still true Need to force it to false and then true public bool IsFocused get return isFocused set if isFocused value isFocused false OnPropertyChanged isFocused value OnPropertyChanged,0,NULL,NULL 33841,1160693,414848,NULL,NULL,NULL,0,NULL,NULL 33842,159854,1304738,Informed,NULL,NULL,0,NULL,NULL 33843,23577,1222710,NULL,NULL,NULL,0,NULL,NULL 33844,200842,1407522,NULL,NULL,NULL,0,NULL,NULL 33845,1208201,1407522,NULL,NULL,NULL,0,NULL,NULL 33846,488825,1426639,Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 33847,732297,1157390,Informed Autobiographer,NULL,NULL,0,NULL,NULL 33848,90038,1117031,NULL,NULL,NULL,0,NULL,NULL 33849,489444,459189,Caucus Constituent Necromancer,NULL,NULL,0,NULL,NULL 33850,181593,677709,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33851,199132,1150938,NULL,NULL,NULL,0,NULL,NULL 33852,176619,877403,NULL,NULL,NULL,0,NULL,NULL 33853,203795,484529,Popular Question Popular Question Nice Answer Notable Question Critic Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Revival Necromancer Yearling Notable Question Popular Question Nice Answer Nice Question,NULL,High resolution timers millisecond precision in Go on Windows windows go timer pI trying to use Go codetime Timer codes to schedule tasks that need to be run in the right order with precision in the order of half millisecond This works perfectly fine on OSX and on Linux but fails every time on Windows ppThe following code demonstrates the issue It sets timers the first one to ms the second to ms and the last one to ms Once timer fires its number is printed On OSX and Linux this obviously produced 12345 as output but on Windows the numbers are more or less random tested on Win and Windows Server 2012 ppre class lang go prettyprint override codepackage mainimport fmt time func main var timer1 timer2 timer3 timer4 timer5 time Timer timer1 time NewTimer time Millisecond timer2 time NewTimer time Millisecond timer3 time NewTimer time Millisecond timer4 time NewTimer time Millisecond timer5 time NewTimer time Millisecond should print 12345 for select case lt timer1 fmt Print case lt timer2 fmt Print case lt timer3 fmt Print case lt timer4 fmt Print case lt timer5 fmt Print case lt time After 200 time Millisecond return exit the program code prepI think this behavior is due to the changes made in Go href https golang org doc go1 runtime rel noreferrer https golang org doc go1 runtime 4th paragraph where the Windows timer precision was reduced from ms to 16 ms although it should also have occurred with shorter intervals of the order of 100 μs before ppIs there any way to reset the global Windows timer precision back to ms or to access high resolution timer that would make the example above work It probably good idea to add that as an answer and mark it as accepted if you re happy with it Then people looking to answer unanswered questions can skip this,0,NULL,NULL 33854,472704,952451,NULL,NULL,NULL,0,NULL,NULL 33855,63346,482757,Yearling Necromancer,NULL,NULL,0,NULL,NULL 33856,131091,996971,Popular Question Critic,NULL,NULL,0,NULL,NULL 33857,10061,272513,Commentator Editor Popular Question Scholar Self-Learner Supporter Teacher Famous Question Notable Question Critic Caucus Caucus Announcer,NULL,NULL,0,NULL,NULL 33858,104621,680525,NULL,NULL,NULL,0,NULL,NULL 33859,308966,1003587,NULL,NULL,NULL,0,NULL,NULL 33860,158619,888525,Yearling Caucus Caucus Constituent Yearling Nice Answer Enlightened Promoter Student Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33861,166896,1376206,Critic Commentator Necromancer Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 33862,92843,494309,NULL,NULL,NULL,0,NULL,NULL 33863,5545,370927,Custodian Citizen Patrol Custodian Custodian Reviewer Notable Question Tumbleweed Good Question Popular Question Good Question Popular Question Caucus Famous Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 33864,87755,169121,Yearling Nice Answer Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Nice Answer Caucus Constituent Good Answer Yearling Good Answer Documentation User Enlightened Census Caucus Constituent Good Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 33865,220563,348602,NULL,NULL,NULL,0,NULL,NULL 33866,120805,625430,NULL,NULL,NULL,0,NULL,NULL 33867,27572,365736,Famous Question Popular Question Popular Question Good Answer Self-Learner Notable Question Yearling Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 33868,40236,975538,NULL,NULL,NULL,0,NULL,NULL 33869,163857,1063626,Popular Question,NULL,NULL,0,NULL,NULL 33870,428878,238800,Yearling Popular Question Excavator,NULL,NULL,0,NULL,NULL 33871,44363,1014449,Student,NULL,NULL,0,NULL,NULL 33872,2901808,832984,NULL,NULL,NULL,0,NULL,NULL 33873,36496,264194,Nice Answer Enlightened Yearling Nice Question Notable Question Nice Answer Famous Question Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 33874,119561,472629,Critic Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33875,172341,5361,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 33876,894218,380996,NULL,NULL,NULL,0,NULL,NULL 33877,93140,169394,Yearling Good Answer Nice Answer Nice Answer Enlightened Famous Question Nice Answer Enlightened Custodian Yearling Guru Nice Answer Enlightened Caucus Pundit iphone Nice Answer ios Census Great Answer Yearling Caucus Nice Answer Nice Answer Enlightened,NULL,pIn Objective codenil code is defined as value called code DARWIN NULL code which essentially evaluates to code0 code or codefalse code in if statements Therefore writingcodeif nil code is the same as writing codeif code and writing codeif nil code is equal to codeif code since comparing to codefalse code creates negation and comparing to codetrue code keeps the condition the same phrpYou can write your code either way and it really depends on which you think is more readable find codeif code to make more sense but it depends on your style ppIt like comparing codeif someCondition true code versus codeif someCondition code brIt all depends on you and who going to be reading the code phrp strongEdit strong As Yuji correctly mentions since Objective is superset of any condition that evaluates to value other than is considered to be true and therefore if codesomeCondition code in the example above were to evaluate to an integer value of say comparing it to codetrue code would result in codefalse code and the if statement would not be evaluated Something to be aware of assuming that mutableArray should be changed to eventItemIds correct What happens if you change the code to read NSString name event name if name eventItemIds addObject name pIn Objective codenil code is defined as value called code DARWIN NULL code which essentially evaluates to code0 code or codefalse code in if statements Therefore writingcodeif nil code is the same as writing codeif code and writing codeif nil code is equal to codeif code since comparing to codefalse code creates negation and comparing to codetrue code keeps the condition the same phrpYou can write your code either way and it really depends on which you think is more readable find codeif code to make more sense but it depends on your style ppIt like comparing codeif someCondition true code versus codeif someCondition code brIt all depends on you and who going to be reading the code phrp strongEdit strong As Yuji correctly mentions since Objective is superset of any condition that evaluates to value other than is considered to be true and therefore if codesomeCondition code in the example above were to evaluate to an integer value of say comparing it to codetrue code would result in codefalse code and the if statement would not be evaluated Something to be aware of Hmm Yeah that strange What is the threading model of your application Where is this code running On which thread queue Do you have other threads queues operating and what are they doing Considering you have backgroundManagedObjectContext assume there must be more than one thread queue doing work here pIn Objective codenil code is defined as value called code DARWIN NULL code which essentially evaluates to code0 code or codefalse code in if statements Therefore writingcodeif nil code is the same as writing codeif code and writing codeif nil code is equal to codeif code since comparing to codefalse code creates negation and comparing to codetrue code keeps the condition the same phrpYou can write your code either way and it really depends on which you think is more readable find codeif code to make more sense but it depends on your style ppIt like comparing codeif someCondition true code versus codeif someCondition code brIt all depends on you and who going to be reading the code phrp strongEdit strong As Yuji correctly mentions since Objective is superset of any condition that evaluates to value other than is considered to be true and therefore if codesomeCondition code in the example above were to evaluate to an integer value of say comparing it to codetrue code would result in codefalse code and the if statement would not be evaluated Something to be aware of Additionally is this happening for the very first event you look at in the loop or some arbitrary one Is there pattern to where this is failing Does it ever succeed pIn Objective codenil code is defined as value called code DARWIN NULL code which essentially evaluates to code0 code or codefalse code in if statements Therefore writingcodeif nil code is the same as writing codeif code and writing codeif nil code is equal to codeif code since comparing to codefalse code creates negation and comparing to codetrue code keeps the condition the same phrpYou can write your code either way and it really depends on which you think is more readable find codeif code to make more sense but it depends on your style ppIt like comparing codeif someCondition true code versus codeif someCondition code brIt all depends on you and who going to be reading the code phrp strongEdit strong As Yuji correctly mentions since Objective is superset of any condition that evaluates to value other than is considered to be true and therefore if codesomeCondition code in the example above were to evaluate to an integer value of say comparing it to codetrue code would result in codefalse code and the if statement would not be evaluated Something to be aware of Yeah looks like you ve hit upon the issue though without substantial additional information won be of much help Depending on your access to Xcode recommend trying to run it with TSAN http clang llvm org docs ThreadSanitizer html it will likely be able to work out where the race condition is,0,NULL,NULL 33878,554455,604616,NULL,NULL,NULL,0,NULL,NULL 33879,1146633,900166,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 33880,97753,569068,Notable Question Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 33881,414902,1373869,Popular Question Yearling Popular Question Critic Yearling Caucus Nice Question Famous Question Popular Question Yearling Notable Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 33882,201801,764106,Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 33883,299883,610610,Good Answer Yearling Popular Question Caucus Popular Question Census Custodian Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 33884,419358,967026,NULL,NULL,NULL,0,NULL,NULL 33885,407477,729006,Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 33886,733392,1011253,Yearling Mortarboard Tenacious Fanatic Curious Tag Editor Suffrage Self-Learner Popular Question Unsung Hero Notable Question Yearling Popular Question Caucus Constituent Popular Question Electorate Explainer Custodian Notable Question Nice Answer Notable Question Popular Question Revival Caucus Popular Question Constituent Popular Question Popular Question Documentation User Yearling Notable Question Census Inquisitive Caucus Constituent Popular Question Famous Question Notable Question Popular Question Notable Question Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 33887,454734,27198,Good Answer Guru Good Answer Popular Question Nice Question Popular Question Nice Answer Yearling Good Answer Good Question Famous Question Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened generics Nice Answer Notable Question Notable Question Yearling Popular Question Popular Question Notable Question Enlightened Notable Question Nice Answer Famous Question Good Answer Good Answer Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 33888,1036687,561879,Yearling Yearling Good Answer Yearling Populist Guru,NULL,NULL,0,NULL,NULL 33889,124574,2075,Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 33890,436166,1484825,NULL,NULL,NULL,0,NULL,NULL 33891,186732,1282204,Scholar Tumbleweed Student Enthusiast Nice Answer Yearling Critic Caucus Commentator,NULL,NULL,0,NULL,NULL 33892,277059,895959,NULL,NULL,NULL,0,NULL,NULL 33893,60374,952462,Revival Necromancer,NULL,NULL,0,NULL,NULL 33894,283052,1039891,NULL,NULL,NULL,0,NULL,NULL 33895,643495,442196,NULL,NULL,NULL,0,NULL,NULL 33896,148834,267020,Notable Question,NULL,NULL,0,NULL,NULL 33897,23512,447653,NULL,NULL,NULL,0,NULL,NULL 33898,243689,992596,NULL,NULL,NULL,0,NULL,NULL 33899,79565,1176136,NULL,NULL,NULL,0,NULL,NULL 33900,340641,965870,Tumbleweed Editor Curious Popular Question Informed Famous Question Popular Question Critic Nice Question,NULL,NULL,0,NULL,NULL 33901,3086,362403,NULL,NULL,NULL,0,NULL,NULL 33902,1138050,362403,NULL,NULL,NULL,0,NULL,NULL 33903,3340249,362403,NULL,NULL,NULL,0,NULL,NULL 33904,512680,698269,NULL,NULL,NULL,0,NULL,NULL 33905,184393,1093006,Nice Answer,NULL,NULL,0,NULL,NULL 33906,215777,354063,Yearling Notable Question Popular Question Notable Question Notable Question Custodian Popular Question Yearling Documentation User Electorate Yearling,NULL,NULL,0,NULL,NULL 33907,248549,717385,Informed,NULL,NULL,0,NULL,NULL 33908,118924,61082,NULL,NULL,NULL,0,NULL,NULL 33909,3769020,61082,NULL,NULL,NULL,0,NULL,NULL 33910,542159,529739,NULL,NULL,NULL,0,NULL,NULL 33911,1516102,526287,NULL,NULL,NULL,0,NULL,NULL 33912,6085,1044982,Good Answer Populist Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33913,365726,188975,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33914,30095,349809,Autobiographer,NULL,NULL,0,NULL,NULL 33915,329407,858094,NULL,NULL,NULL,0,NULL,NULL 33916,36969,587325,NULL,NULL,NULL,0,NULL,NULL 33917,742095,665922,NULL,NULL,NULL,0,NULL,NULL 33918,5662148,554395,NULL,NULL,NULL,0,NULL,NULL 33919,68266,330914,Curious Announcer Custodian Popular Question Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 33920,29214,854950,NULL,NULL,NULL,0,NULL,NULL 33921,151498,1227831,Enthusiast,NULL,NULL,0,NULL,NULL 33922,114770,222380,Popular Question Nice Question Necromancer Yearling Popular Question Notable Question Famous Question Nice Question Good Question Yearling Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 33923,25618,7581,Popular Question Nice Answer Enlightened Good Answer Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Good Answer Popular Question Famous Question Good Question Yearling Popular Question Nice Question Necromancer Caucus Notable Question Famous Question Famous Question Notable Question Popular Question Famous Question Good Answer Nice Question Announcer Announcer Nice Answer Great Answer Yearling Favorite Question Announcer Documentation User Great Question Famous Question Pundit Good Question Good Question Favorite Question Favorite Question Notable Question Promoter Nice Question Benefactor Notable Question Yearling Good Question Notable Question,NULL,Implement touch using Python python utility codetouch code is Unix utility that sets the modification and access times of files to the current time of day If the file doesn exist it is created with default permissions ppHow would you implement it as Python function Try to be cross platform and complete pp Current Google results for python touch file are not that great but point to href http docs python org library os html os utime rel noreferrer os utime Python is unfortunately still more widely used than so think the accepted answer is still the more relevant one But your comment does good job of pointing people to the second answer pYou are just supposed to read the file and exec the code yourself 2to3 current replaces ppre codeexecfile somefile py global vars local vars code prepas ppre codewith open somefile py as code compile read somefile py exec exec code global vars local vars code prep The compile call isn strictly needed but it associates the filename with the code object making debugging little easier ppSee pulli href http docs python org release library functions html execfile rel noreferrer http docs python org release library functions html execfile lili href http docs python org release library functions html compile rel noreferrer http docs python org release library functions html compile lili href http docs python org release library functions html exec rel noreferrer http docs python org release library functions html exec li ul Another caveat in python compile will fail if the source code has trailing whitespace or uses line endings other than,0,NULL,NULL 33924,116539,840975,Nice Answer,NULL,NULL,0,NULL,NULL 33925,207739,21160,Popular Question Yearling Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 33926,91172,579167,Yearling Revival Necromancer Announcer Nice Answer Yearling Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 33927,280191,1436617,Editor Peer Pressure Commentator Yearling Caucus,NULL,NULL,0,NULL,NULL 33928,374711,439777,Caucus Critic Student,NULL,NULL,0,NULL,NULL 33929,39472,586007,Supporter Student Scholar Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 33930,103877,902987,NULL,NULL,NULL,0,NULL,NULL 33931,3714284,939159,Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33932,5985,939159,Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 33933,187562,1104992,NULL,NULL,NULL,0,NULL,NULL 33934,48491,1117851,Popular Question ruby Nice Answer Popular Question Popular Question Necromancer Necromancer Great Answer Nice Answer Popular Question Good Answer Nice Answer Good Answer Necromancer Great Answer Revival Caucus Revival Yearling Mortarboard Good Answer Popular Question Necromancer Necromancer Nice Answer Caucus Constituent Necromancer Nice Answer Nice Answer Necromancer Yearling Census Nice Answer Necromancer Caucus Nice Answer Civic Duty Nice Answer Good Answer Great Answer Notable Question,NULL,NULL,0,NULL,NULL 33935,838,25862,Famous Question,NULL,NULL,0,NULL,NULL 33936,342822,635306,Yearling,NULL,NULL,0,NULL,NULL 33937,1347030,1016204,Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 33938,29694,453456,NULL,NULL,NULL,0,NULL,NULL 33939,650980,129750,Necromancer Famous Question Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Nice Answer Notable Question Nice Question Popular Question Revival Good Question Notable Question Guru Notable Question Guru Popular Question Good Question Nice Question Nice Question Nice Question Good Question Popular Question Notable Question Popular Question Notable Question Good Answer Enlightened Popular Question Popular Question Famous Question Popular Question Good Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Answer Popular Question Nice Question Great Answer Notable Question Good Question Popular Question Nice Question Famous Question Famous Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Nice Question Nice Question Favorite Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 33940,22690,631508,Commentator Yearling Documentation User Popular Question,NULL,NULL,0,NULL,NULL 33941,485978,1491891,NULL,NULL,NULL,0,NULL,NULL 33942,263260,763744,Necromancer Popular Question Yearling Nice Answer Announcer Caucus Curious Good Answer Popular Question Caucus Self-Learner Notable Question Popular Question Nice Question Yearling Critic Disciplined Famous Question Excavator,NULL,NULL,0,NULL,NULL 33943,31619,763744,Necromancer Popular Question Yearling Nice Answer Announcer Caucus Curious Good Answer Popular Question Caucus Self-Learner Notable Question Popular Question Nice Question Yearling Critic Disciplined Famous Question Excavator,NULL,NULL,0,NULL,NULL 33944,370738,623183,NULL,NULL,NULL,0,NULL,NULL 33945,155664,184353,Custodian Caucus Yearling Caucus Constituent Documentation User Caucus,NULL,NULL,0,NULL,NULL 33946,142033,1522342,Necromancer Custodian Revival Caucus Necromancer Yearling Nice Answer Nice Answer Yearling Caucus Enlightened Organizer Yearling,NULL,NULL,0,NULL,NULL 33947,24752,617395,Yearling Reviewer Nice Answer Enlightened Civic Duty python Steward Caucus Constituent Yearling flask Caucus Constituent Yearling Nice Answer Nice Answer Enlightened Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 33948,102490,469224,Commentator Citizen Patrol Informed,NULL,NULL,0,NULL,NULL 33949,439389,444966,Populist Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 33950,207040,979978,Revival Yearling Necromancer Census Nice Answer,NULL,NULL,0,NULL,NULL 33951,727913,928943,NULL,NULL,NULL,0,NULL,NULL 33952,330814,159946,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 33953,2854530,373822,NULL,NULL,NULL,0,NULL,NULL 33954,343192,507018,Famous Question Notable Question Nice Question Necromancer Famous Question Notable Question Famous Question Popular Question Notable Question Great Question Popular Question Great Answer Nice Question Nice Question Yearling Popular Question Famous Question Notable Question Popular Question Nice Answer Famous Question Famous Question Famous Question Famous Question Popular Question Popular Question Nice Question Yearling Nice Answer Popular Question Famous Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 33955,1479147,419564,Popular Question,NULL,NULL,0,NULL,NULL 33956,1833422,1204332,Yearling Organizer Good Answer Necromancer Revival Custodian Proofreader Revival Caucus Reviewer Custodian Constituent Nice Answer Revival Necromancer Enthusiast Explainer Necromancer Tenacious Civic Duty Suffrage Vox Populi Citizen Patrol Yearling Fanatic Strunk & White Archaeologist Cleanup javascript Necromancer Caucus Constituent Announcer Nice Answer Announcer Announcer Good Answer Yearling Caucus Constituent Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 33957,3506,878134,NULL,NULL,NULL,0,NULL,NULL 33958,232290,283919,NULL,NULL,NULL,0,NULL,NULL 33959,70965,871574,Yearling Caucus Popular Question Caucus Yearling Custodian Caucus,NULL,NULL,0,NULL,NULL 33960,455536,154896,Popular Question Popular Question Yearling Popular Question Custodian Nice Answer Nice Answer Nice Question Self-Learner Popular Question Popular Question Yearling Inquisitive Popular Question Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 33961,209615,636696,Good Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Revival Nice Question Famous Question Yearling Nice Question Famous Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 33962,480199,839024,NULL,NULL,NULL,0,NULL,NULL 33963,762876,1088766,NULL,NULL,NULL,0,NULL,NULL 33964,46974,110383,NULL,NULL,NULL,0,NULL,NULL 33965,1070758,287727,python Yearling Good Answer Favorite Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 33966,222369,954480,Informed,NULL,NULL,0,NULL,NULL 33967,366790,680858,NULL,NULL,NULL,0,NULL,NULL 33968,194383,144411,Commentator Necromancer,NULL,pAs the compiler mentions you can extend existing types in another package You can define your own alias or sub package as follows ppre codetype MyRouter mux Routerfunc MyRouter code prepor by embedding the original router ppre codetype MyRouter struct mux Router func MyRouter amp MyRouter router code pre embedding seems bit more practical to use,0,NULL,NULL 33969,106675,352796,Nice Answer Populist jquery Notable Question Nice Answer Nice Answer Enlightened Famous Question Yearling Nice Question Popular Question Good Answer Famous Question Guru Popular Question Caucus Nice Question Constituent Good Answer Announcer Notable Question Popular Question Good Answer Booster Yearling Announcer Caucus Notable Question Taxonomist Famous Question Favorite Question Good Question Notable Question Announcer Announcer Popular Question Caucus Announcer Yearling Nice Answer Enlightened Great Answer Notable Question,NULL,NULL,0,NULL,NULL 33970,15665,329407,Nice Answer Enlightened Yearling Guru Great Answer Good Answer Caucus Guru Good Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer linux Yearling Good Answer Civic Duty Strunk & White Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 33971,270786,96911,Necromancer Revival,NULL,NULL,0,NULL,NULL 33972,3046037,96911,Necromancer Revival,NULL,NULL,0,NULL,NULL 33973,63476,103045,Famous Question Good Question,NULL,NULL,0,NULL,NULL 33974,87265,375597,NULL,NULL,NULL,0,NULL,NULL 33975,3946688,526496,NULL,NULL,NULL,0,NULL,NULL 33976,418761,526496,NULL,NULL,NULL,0,NULL,NULL 33977,2911628,498033,Autobiographer Notable Question Popular Question Popular Question Commentator Scholar Custodian Supporter Caucus Self-Learner Popular Question Tumbleweed Yearling Notable Question,NULL,NULL,0,NULL,NULL 33978,500709,1323829,NULL,NULL,NULL,0,NULL,NULL 33979,68744,6430,Nice Question Popular Question Notable Question Nice Answer Great Question Notable Question Yearling Revival Famous Question Announcer Electorate Taxonomist Yearling Guru Nice Answer Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 33980,645692,1497526,NULL,NULL,NULL,0,NULL,NULL 33981,265707,1020949,NULL,NULL,NULL,0,NULL,NULL 33982,271516,653231,Teacher Supporter,NULL,NULL,0,NULL,NULL 33983,8882754,1112503,Popular Question Notable Question Notable Question Yearling Inquisitive Popular Question Popular Question Nice Answer Enlightened Necromancer Census Nice Answer Notable Question Good Answer Notable Question Popular Question Notable Question Caucus Unsung Hero Yearling Revival Nice Answer Nice Question Notable Question java Nice Answer Yearling Popular Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 33984,231112,1112503,Popular Question Notable Question Notable Question Yearling Inquisitive Popular Question Popular Question Nice Answer Enlightened Necromancer Census Nice Answer Notable Question Good Answer Notable Question Popular Question Notable Question Caucus Unsung Hero Yearling Revival Nice Answer Nice Question Notable Question java Nice Answer Yearling Popular Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 33985,2410068,1112503,Popular Question Notable Question Notable Question Yearling Inquisitive Popular Question Popular Question Nice Answer Enlightened Necromancer Census Nice Answer Notable Question Good Answer Notable Question Popular Question Notable Question Caucus Unsung Hero Yearling Revival Nice Answer Nice Question Notable Question java Nice Answer Yearling Popular Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 33986,165722,1376632,NULL,NULL,NULL,0,NULL,NULL 33987,569445,752114,NULL,NULL,NULL,0,NULL,NULL 33988,48756,752114,NULL,NULL,NULL,0,NULL,NULL 33989,275149,1306597,NULL,NULL,NULL,0,NULL,NULL 33990,1418360,1043488,NULL,NULL,NULL,0,NULL,NULL 33991,120393,1051471,NULL,NULL,NULL,0,NULL,NULL 33992,426336,464502,NULL,NULL,NULL,0,NULL,NULL 33993,66900,660339,Informed Organizer Yearling Tumbleweed Promoter Popular Question Scholar,NULL,NULL,0,NULL,NULL 33994,1554341,1070013,NULL,NULL,NULL,0,NULL,NULL 33995,490822,687780,NULL,NULL,NULL,0,NULL,NULL 33996,1612645,829549,Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 33997,51037,614123,NULL,NULL,NULL,0,NULL,NULL 33998,127057,577254,NULL,NULL,NULL,0,NULL,NULL 33999,4015281,577254,NULL,NULL,NULL,0,NULL,NULL 34000,358300,855657,NULL,NULL,NULL,0,NULL,NULL 34001,417830,612700,Editor Scholar Student Popular Question Nice Question Notable Question Popular Question Supporter Commentator Tumbleweed Good Question Autobiographer,NULL,NULL,0,NULL,NULL 34002,898105,543488,Notable Question Critic,NULL,NULL,0,NULL,NULL 34003,132408,127114,Notable Question Documentation User Announcer Popular Question,NULL,NULL,0,NULL,NULL 34004,226204,40595,Yearling,NULL,NULL,0,NULL,NULL 34005,106779,617659,NULL,NULL,NULL,0,NULL,NULL 34006,1505956,703154,NULL,NULL,NULL,0,NULL,NULL 34007,1908282,421093,NULL,NULL,NULL,0,NULL,NULL 34008,5155781,596122,Notable Question,NULL,NULL,0,NULL,NULL 34009,317922,910254,NULL,NULL,NULL,0,NULL,NULL 34010,610467,596167,Notable Question Yearling Notable Question Nice Answer Yearling Cleanup Documentation User Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 34011,72658,1146438,Tumbleweed Autobiographer,NULL,NULL,0,NULL,NULL 34012,3590648,1367046,Notable Question Popular Question Custodian Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34013,259026,40846,Yearling Popular Question,NULL,NULL,0,NULL,NULL 34014,35587,230214,Notable Question Popular Question Popular Question Famous Question Favorite Question Yearling Nice Question Notable Question Great Question Popular Question Nice Question Notable Question Nice Question Nice Question Nice Question Popular Question Famous Question Favorite Question Yearling Great Question Notable Question Famous Question Popular Question Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 34015,430854,546319,NULL,NULL,NULL,0,NULL,NULL 34016,165205,971616,NULL,NULL,NULL,0,NULL,NULL 34017,1627385,971616,NULL,NULL,NULL,0,NULL,NULL 34018,86802,23418,Yearling Notable Question,NULL,NULL,0,NULL,NULL 34019,79132,1026692,Good Answer Yearling,NULL,NULL,0,NULL,NULL 34020,527474,1474497,NULL,NULL,NULL,0,NULL,NULL 34021,180812,994297,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34022,302794,144786,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 34023,504126,905318,Popular Question Good Question Yearling Enthusiast Announcer Self-Learner Yearling Popular Question Famous Question Caucus Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 34024,12309,561186,Great Question Popular Question Famous Question Excavator Famous Question Popular Question Custodian Popular Question Populist Good Question Popular Question Nice Answer Enlightened Nice Question Yearling Revival Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Famous Question Necromancer Yearling Notable Question Popular Question Nice Answer Enlightened Great Answer Popular Question Good Answer Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 34025,428732,212974,NULL,NULL,NULL,0,NULL,NULL 34026,207224,79371,NULL,NULL,NULL,0,NULL,NULL 34027,242132,79371,NULL,NULL,NULL,0,NULL,NULL 34028,2511008,79371,NULL,NULL,NULL,0,NULL,NULL 34029,891112,1275009,NULL,NULL,NULL,0,NULL,NULL 34030,135651,1025281,NULL,NULL,,0,, 34031,3775939,150068,NULL,NULL,NULL,0,NULL,NULL 34032,82359,150068,NULL,NULL,NULL,0,NULL,NULL 34033,413754,106350,Yearling Nice Answer Enlightened Caucus Nice Answer Enlightened Yearling Nice Answer Custodian Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34034,88129,39974,Nice Answer Notable Question Popular Question Famous Question Popular Question Famous Question Announcer Necromancer Yearling Nice Answer Announcer Notable Question Popular Question Documentation User Yearling Good Question Notable Question Famous Question Popular Question Revival Famous Question Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 34035,2678917,761772,NULL,NULL,NULL,0,NULL,NULL 34036,211979,715554,NULL,NULL,NULL,0,NULL,NULL 34037,682262,715554,NULL,NULL,NULL,0,NULL,NULL 34038,318194,557568,Revival,NULL,NULL,0,NULL,NULL 34039,1515882,227902,Critic Popular Question,NULL,NULL,0,NULL,NULL 34040,3112631,603546,NULL,NULL,NULL,0,NULL,NULL 34041,2838915,800817,Nice Answer Good Answer Necromancer Nice Answer Yearling Nice Answer Enlightened Guru Necromancer Necromancer Nice Answer Yearling Custodian Good Answer Student Cleanup Yearling Necromancer Good Answer Good Answer Custodian,NULL,pI use this function tested in Safari Chrome Firefox Opera IE7 IE8 IE9 ppre codefunction waitForWebfonts fonts callback var loadedFonts for var fonts length lt function font var node document createElement span Characters that vary significantly among different fonts node innerHTML giItT1WQy Visible so we can measure it but not on the screen node style position absolute node style left 10000px node style top 10000px Large font size makes even subtle changes obvious node style fontSize 300px Reset any font properties node style fontFamily sans serif node style fontVariant normal node style fontStyle normal node style fontWeight normal node style letterSpacing document body appendChild node Remember width with no applied web font var width node offsetWidth node style fontFamily font sans serif var interval function checkFont Compare current width with original width if node amp amp node offsetWidth width loadedFonts node parentNode removeChild node node null If all fonts have been loaded if loadedFonts gt fonts length if interval clearInterval interval if loadedFonts fonts length callback return true if checkFont interval setInterval checkFont 50 fonts code prepUse it like ppre codewaitForWebfonts MyFont1 MyFont2 function Will be called as soon as ALL specified fonts are available code pre found serious bug with this solution basically sometimes doesn work because as soon as you change the fontFamily for the not yet loaded font it starts using an inherited font the span due any CSS rule so it says it has changed so it executes the callback before the web font is loaded just submitted fix,0,NULL,NULL 34042,145687,800817,Nice Answer Good Answer Necromancer Nice Answer Yearling Nice Answer Enlightened Guru Necromancer Necromancer Nice Answer Yearling Custodian Good Answer Student Cleanup Yearling Necromancer Good Answer Good Answer Custodian,NULL,pI use this function tested in Safari Chrome Firefox Opera IE7 IE8 IE9 ppre codefunction waitForWebfonts fonts callback var loadedFonts for var fonts length lt function font var node document createElement span Characters that vary significantly among different fonts node innerHTML giItT1WQy Visible so we can measure it but not on the screen node style position absolute node style left 10000px node style top 10000px Large font size makes even subtle changes obvious node style fontSize 300px Reset any font properties node style fontFamily sans serif node style fontVariant normal node style fontStyle normal node style fontWeight normal node style letterSpacing document body appendChild node Remember width with no applied web font var width node offsetWidth node style fontFamily font sans serif var interval function checkFont Compare current width with original width if node amp amp node offsetWidth width loadedFonts node parentNode removeChild node node null If all fonts have been loaded if loadedFonts gt fonts length if interval clearInterval interval if loadedFonts fonts length callback return true if checkFont interval setInterval checkFont 50 fonts code prepUse it like ppre codewaitForWebfonts MyFont1 MyFont2 function Will be called as soon as ALL specified fonts are available code pre found serious bug with this solution basically sometimes doesn work because as soon as you change the fontFamily for the not yet loaded font it starts using an inherited font the span due any CSS rule so it says it has changed so it executes the callback before the web font is loaded just submitted fix,0,NULL,NULL 34043,3267776,1047000,NULL,NULL,NULL,0,NULL,NULL 34044,32017,302885,NULL,NULL,NULL,0,NULL,NULL 34045,2556605,492145,Tumbleweed Scholar Nice Answer Enlightened Necromancer Student,NULL,NULL,0,NULL,NULL 34046,1105498,879223,Revival,NULL,NULL,0,NULL,NULL 34047,445446,1110059,NULL,NULL,NULL,0,NULL,NULL 34048,857226,552369,NULL,NULL,NULL,0,NULL,NULL 34049,202633,342483,Popular Question Caucus Constituent Custodian Caucus Constituent Popular Question Caucus Constituent Yearling Notable Question,NULL,NULL,0,NULL,NULL 34050,167459,574445,NULL,NULL,NULL,0,NULL,NULL 34051,3187013,676787,NULL,NULL,NULL,0,NULL,NULL 34052,394179,1015848,Announcer Famous Question Yearling Notable Question Critic Notable Question Announcer Yearling Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 34053,1392463,974493,NULL,NULL,NULL,0,NULL,NULL 34054,947724,632419,NULL,NULL,NULL,0,NULL,NULL 34055,1183731,695006,NULL,NULL,NULL,0,NULL,NULL 34056,48652,365179,NULL,NULL,NULL,0,NULL,NULL 34057,149227,109631,Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Answer Nice Question Good Question Critic,NULL,NULL,0,NULL,NULL 34058,1355239,837498,NULL,NULL,NULL,0,NULL,NULL 34059,169156,63764,Critic Popular Question,NULL,NULL,0,NULL,NULL 34060,173263,492867,Famous Question Popular Question Notable Question Good Question Caucus Constituent Notable Question Yearling Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 34061,7622,353392,Famous Question,NULL,NULL,0,NULL,NULL 34062,2141120,1024007,NULL,NULL,NULL,0,NULL,NULL 34063,54568,1024007,NULL,NULL,NULL,0,NULL,NULL 34064,62096,1123968,NULL,NULL,NULL,0,NULL,NULL 34065,23569,957731,Good Answer Convention Good Answer Notable Question javascript Good Question Notable Question Yearling Caucus Constituent Notable Question Nice Question Census Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Caucus Announcer Constituent Nice Answer Enlightened Announcer Good Answer Nice Answer Yearling Good Answer Notable Question Documentation User Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Strunk & White Nice Answer Guru Popular Question Nice Answer Census Enlightened Notable Question reactjs Caucus Constituent Steward Popular Question Guru Good Answer Yearling,NULL,NULL,1,NULL,React js files syntax in sublime text javascript reactjs sublimetext3 jsx babel pi am using sublime text as my code editor have written basic hello world example in React but the coloring is improper on the code have tried installing Babel plugin but even after that also the coloring doesn seem to work as you can see the image below pp href https stack imgur com CWCsX png rel noreferrer img src https stack imgur com CWCsX png alt enter image description here pJust installing it isn enough you have to also tell SublimeText to use it ppEither do ppa kbdCtrl kbd kbdShift kbd kbdP kbd type Babel and select emSet Syntax Javascript Babel em ppor ppb Go to the menu and do strongView Syntax Open all with current extension as Babel Javascript Babel strong 34066,788312,576602,NULL,NULL,NULL,0,NULL,NULL 34067,62824,465283,NULL,NULL,NULL,0,NULL,NULL 34068,852846,416821,Notable Question,NULL,NULL,0,NULL,NULL 34069,705670,112019,Custodian Nice Answer Enlightened Yearling Announcer Nice Answer Enlightened Nice Question Nice Answer Yearling Yearling Enlightened Nice Answer Enlightened,NULL,pThe href https github com JuliaLang julia pull 4898 branch mentioned in the comment has now been merged and julia is more optimized for startup and doing nothing than ever ppre code gt time julia println Hello Helloreal 0m0 622suser 0m1 013ssys 0m0 624s code prepThis is now available in the nightly builds and will be included in the next release Seems like someting is wrong with your julia installation What os are you using and how did you install julia pThe href https github com JuliaLang julia pull 4898 branch mentioned in the comment has now been merged and julia is more optimized for startup and doing nothing than ever ppre code gt time julia println Hello Helloreal 0m0 622suser 0m1 013ssys 0m0 624s code prepThis is now available in the nightly builds and will be included in the next release That is really strange and can imagine what might cause startup to take one and half minute Except maybe installing it on network drive over slow connection,0,NULL,NULL 34070,29231,345309,Yearling,NULL,NULL,0,NULL,NULL 34071,321103,930840,Critic,NULL,NULL,0,NULL,NULL 34072,49276,1481355,Popular Question,NULL,NULL,0,NULL,NULL 34073,1094691,1356293,Yearling Student Citizen Patrol Necromancer,NULL,NULL,0,NULL,NULL 34074,209533,1477160,Notable Question,NULL,NULL,0,NULL,NULL 34075,1997880,930171,Popular Question Popular Question Benefactor Revival Custodian Yearling Popular Question Necromancer Necromancer Nice Answer Revival Favorite Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Answer Famous Question Popular Question Necromancer Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 34076,151188,451412,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34077,200483,708004,Caucus Critic,NULL,NULL,0,NULL,NULL 34078,17407,239960,NULL,NULL,NULL,0,NULL,NULL 34079,1342580,760318,Informed Autobiographer,NULL,NULL,0,NULL,NULL 34080,3776033,1188250,Caucus Yearling,NULL,NULL,0,NULL,NULL 34081,774485,693644,NULL,NULL,NULL,0,NULL,NULL 34082,448272,1274783,Teacher Editor Supporter Commentator Yearling,NULL,NULL,0,NULL,NULL 34083,63881,232101,NULL,NULL,NULL,0,NULL,NULL 34084,96996,541949,Nice Question Notable Question Nice Question Necromancer Notable Question Popular Question Popular Question Notable Question Yearling php Popular Question Nice Answer Notable Question Nice Answer Enlightened Popular Question Popular Question Good Question Notable Question Nice Answer Yearling Census Famous Question Nice Question Notable Question Good Answer Notable Question Notable Question Famous Question,NULL,symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre im afraid chmod is not available in ubuntu and setfacl is not working with default docker setup symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre docker compose yml is added symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre can you post an example of Dockerfile with setfacl keep getting setfacl var No such file or directory symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre why should they belong to the host when run cache clear inside the container they belong to the user inside the container if run web first on an empty cache dir they are from www data thats correct symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre the cache files would belong to the host if run cache clear on the host then RUN usermod 1000 www data would make sense guess symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre ok things get clearer creating aliases would be way even though it seems bit edgy and would bypass symfony advices symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre regarding setfacl suppose this cant be run in Dockerfile but must be run after the container is up any suggestions on how to do this automatically symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre yes saw this it means setfacl cant be run on default docker setup Its possible yes by changing the storage driver but would rather avoid this because have other docker projects that would be affected as well,1,symfony docker permission problems for cache files symfony docker docker compose pI have symfony setup for docker with docker compose which is working well except when run emcache clear em from console the webserver cant access the files ppI can circumvent the permission problem by uncommenting emumask 0000 em in console and web app dev php but would like to run symfony as recommended ppWhat do is spin up the containers codedocker compose up code brThen enter the container The container contains the apache php and the code via data volume ppre codedocker exec apache bin bash code prepApparently am logged in as root then and when run ppre codeapp console cache clear code prepall files in cache belong to user root www data as webserver user now cant access the files anymore ppI also can circumvent this by logging in as www data then the files generated by the cache clear belong to www data and the webserver can access them ppre codedocker exec www data apache bin bash code prepBut this has the downside that dont land in bash but in em usr sbin nologin em and dont have things like bash history and so on ppSearching around found this as part of the Dockerfile to solve the permission issue but it as no effect for me ppre codeRUN usermod 1000 www data code prepIf understand correct this switches the user 1000 to www data but as am root when login to the container this does not work assume ppSo why am emroot em when login to the container and how is this emusermod em suppose to work ppthe docker compose yml ppre codeproxy image jwilder nginx proxy latest volumes var run docker sock tmp docker sock ro ports 80 80 elastic build docker elasticsearch ports 9200 9200 volumes data elasticsearch usr local elasticsearch dataapache build docker apachephp environment VIRTUAL HOST myapp dev volumes code var www app dotfiles bash history bash history logs var www app app logs links elastic expose 80 code pre,NULL 34085,995437,1134390,Scholar Necromancer,NULL,NULL,0,NULL,NULL 34086,29362,170224,Nice Answer Good Answer Nice Answer Nice Answer Famous Question Great Answer Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Question Good Answer Good Answer Nice Answer Enlightened Revival Good Answer Yearling Populist Notable Question Nice Answer Enlightened Guru Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 34087,63490,16784,Notable Question Notable Question Stellar Question Yearling Good Answer Good Answer Popular Question Nice Question Favorite Question Popular Question Yearling Notable Question Notable Question Nice Answer Notable Question Popular Question Nice Answer Enlightened Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 34088,305602,101097,Famous Question Yearling Nice Answer Revival Good Answer Yearling Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 34089,287991,846868,Good Question Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34090,161482,1007083,NULL,NULL,NULL,0,NULL,NULL 34091,357903,251555,Yearling Excavator Tumbleweed Yearling Notable Question Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 34092,330689,1088081,Popular Question,NULL,NULL,0,NULL,NULL 34093,41736,1375527,NULL,NULL,NULL,0,NULL,NULL 34094,243080,285391,Yearling Great Answer Popular Question Yearling Curious Popular Question Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 34095,1212591,968897,Editor,NULL,NULL,0,NULL,NULL 34096,182188,351760,Nice Question Yearling Popular Question Caucus Civic Duty Popular Question Yearling Caucus Popular Question Census Famous Question Custodian Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 34097,173311,1259862,Popular Question,NULL,NULL,0,NULL,NULL 34098,1504170,1264674,Notable Question,NULL,NULL,0,NULL,NULL 34099,6069,1070247,Nice Answer Nice Answer Yearling Nice Question Good Answer Nice Answer Good Answer Curious Promoter Good Answer Yearling c# Populist .net linq entity-framework Good Answer Yearling,NULL,NULL,0,NULL,NULL 34100,490669,622196,Necromancer Yearling Curious Popular Question Commentator Nice Answer Yearling Popular Question Revival Notable Question Necromancer Nice Answer Yearling,NULL,NULL,1,NULL,How to differentiate between “no child rows exist” and “no parent row exists” in one SELECT query sql postgresql pSay have table that references rows from tables and pp codeid id id code ppand simple query pp codeSELECT FROM WHERE id AND id code ppI would like to differentiate between the following cases pulliNo row exists in where id liliNo row exists in where id liliBoth such rows in and exist but no rows in exist where id and id li ulpThe above query will return empty result in all those cases ppIn case of one parent table could do codeLEFT JOIN code like pp codeSELECT FROM LEFT JOIN ON id id WHERE id code ppand then check if the result is empty no row in exists has one row with NULL codec id code row in exists but no rows in exist or rows with non NULL codec id code row in exists and at least one row in exists bit messy but it works but was wondering if there is better way of doing this especially if there is more than one parent table ppFor example ppC is things owned by people is people is types of things When someone asks give me list of games owned by Bill and there are no such records in would like to return an empty list only if both Bill and games exist in their corresponding tables but an error code if either of them doesn ppSo if there are no records matching Bill and games in table would like to say don know who Bill is instead of Bill has no games if don have record about Bill in table pI think managed to get satisfactory solution using the following two features pulli pSubselect bound to column which allows me to check if row exists and importantly get NULL value otherwise codeSELECT SELECT id FROM WHERE id as id code lili href https www postgresql org docs static queries with html rel nofollow title Common Table Expressions Common Table Expressions li ulpInitial data ppre codeCREATE TABLE people id integer not null primary key name text not null CREATE TABLE thing types id integer not null primary key name text not null CREATE TABLE things id integer not null primary key person id integer not null references people id thing type id integer not null references thing types id name text not null INSERT INTO people VALUES Bill INSERT INTO thing types VALUES game INSERT INTO things VALUES Duke Nukem INSERT INTO things VALUES Warcraft code prepAnd the query ppre codeWITH AS SELECT SELECT id FROM people WHERE id lt person id param gt AS person id SELECT id FROM thing types WHERE id lt thing type param gt AS thing type id SELECT person id thing type id things name FROM LEFT JOIN things ON person id things person id AND thing type id things thing type id code prepThis query will always return at least one row and just need to check which if any of the three columns of the first row are NULLs ppIn case if both parent table ids are valid and there are some records none of them will be NULL ppre codeperson id thing type id name Duke Nukem Warcraft code prepIf either codeperson id code or codething type id code are invalid get one row where codename code is NULL and either codeperson id code or codething type id code is NULL ppre codeperson id thing type id name NULL NULL code prepIf both codeperson id code and codething type id code are valid but there are no records in codethings code get one row where both codeperson id code and codething type id code are not NULL but the codename code is NULL ppre codeperson id thing type id name NULL code prepSince have codeNOT NULL code constraint on codethings name code know that this case can only mean that there are no matching records in codethings code If NULLs were allowed in codethings name code could include codethings id code instead and check that for NULLness 34101,199381,594940,Informed Student Scholar Supporter,NULL,NULL,0,NULL,NULL 34102,409553,1010180,NULL,NULL,NULL,0,NULL,NULL 34103,317926,1254455,NULL,NULL,NULL,0,NULL,NULL 34104,726867,1254455,NULL,NULL,NULL,0,NULL,NULL 34105,166994,158997,Nice Question,NULL,NULL,0,NULL,NULL 34106,16618,581184,NULL,NULL,NULL,0,NULL,NULL 34107,1196731,961078,NULL,NULL,NULL,0,NULL,NULL 34108,372032,159170,NULL,NULL,NULL,0,NULL,NULL 34109,193816,973192,Popular Question Popular Question Popular Question Popular Question Caucus Notable Question Necromancer Yearling Custodian Caucus Constituent Popular Question,NULL,h2It already works and you don have to do anything h2pI not sure if you are already aware of that or not but to remove html extension from GitHub Pages all you have to do is remove html extension from your links ppIn other words it already works and you don have to do anything You don have to use subdirectories CNAME redirects Jekyll config yml YAML front matter or any other hack suggested in all of the answers here ph3Examples h3pFor example you can use pulli strong href https rsp github io gh pages no extension test1 rel noreferrer https rsp github io gh pages no extension test1 strong li ulpinstead of pulli strong href https rsp github io gh pages no extension test1 html rel noreferrer https rsp github io gh pages no extension test1 html strong li ulpand it displays the same file Just change the links in your links and that it ph3Tests h3pI made some tests to demonstrate how it really works where you can click links and it highlights which file is loaded with which URL including warnings about insecure redirects in certain cases ppFor eaxample the link pulli strong href https rsp github io gh pages no extension test1 rel noreferrer https rsp github io gh pages no extension test1 strong li ulpshows that it is displayed by the codetest1 code in the URL but actually displays the file codetest1 html code href https rsp github io gh pages no extension test1 rel noreferrer img src https stack imgur com pIsqL png alt enter image description here ph2Problems with other solutions h2pUsing things like index html in special subdirectories as suggested here in other answers will not do what you want which is simply serving the codeexample com name html code when asked for codeexample com name code but would instead give you 301 redirect to codeexample com name code note the trailing slash which in turn would give you the contents of codeexample com name index html code file ppThat leads to the following problems you are in different directory and you need to use code lt href name gt code instead of just code lt href name gt code for links to other pages on the same level and the same goes for all assets or you can use absolute paths as someone suggested which is not good idea on GitHub pages especially project pages because after forks and projects renaming you have to remember to update all of the links and js css assets in all of the html files ppThe other thing is that now you have useless redirect for every navigation which incidentally redirects strongfrom HTTPS to HTTP strong strongfrom secure strong URLs without the slash strongto insecure strong URLs with slash see pulli strong href https rsp github io gh pages no extension dir rel noreferrer https rsp github io gh pages no extension dir secure HTTPS strong li ulpwhich at the time of writing redirects to pulli strong href http rsp github io gh pages no extension dir rel noreferrer http rsp github io gh pages no extension dir insecure HTTP strong li ulpand strongNOT strong to pulli strong href https rsp github io gh pages no extension dir rel noreferrer https rsp github io gh pages no extension dir secure HTTPS strong li ulpas you might expect so make sure that you are aware of that See href https rsp github io gh pages no extension dir rel noreferrer img src https stack imgur com gCoJC png alt Insecure redirect Note that this image is linked to secure HTTPS URL but you end up using an insecure HTTP connection strongyou may need to use incognito mode to see that strong ppThis is how the headers look like as of June 17 2016 ppre code curl https rsp github io gh pages no extension dirHTTP 301 Moved PermanentlyServer GitHub comContent Type text htmlLocation http rsp github io gh pages no extension dir code prepHopefully GitHub will fix that in the future em discovered it when was writing this answer almost year ago and this problem is still present as of June 2016 em ppThough strangely enough as of June 17 2016 not sure if it always was the case because noticed it recently while updating this answer this URL pulli strong href https rsp github io gh pages no extension rel noreferrer https rsp github io gh pages no extension secure HTTPS strong li ulpredirects to pulli strong href https rsp github io gh pages no extension rel noreferrer https rsp github io gh pages no extension secure HTTPS strong li ulpas it should See the headers ppre code curl https rsp github io gh pages no extensionHTTP 301 Moved PermanentlyServer GitHub comContent Type text htmlLocation https rsp github io gh pages no extension code prepThe only difference is that it is project root URL and not deeper directory inside the project see href https github com rsp gh pages no extension rel noreferrer the project structure so the buggy redirect seems to be present only in deep links inside project GitHub Pages and on one browser tested only when you use incognito mode ppThe bottom line is that strongyou need to be careful strong My advice would be to strongavoid all redirects altogether strong and only use those URLs that don result in any redirects at all Is there way to stop this behaviour from happeningGoogle has indexed the same page with and without the htmlI would like them to only create the canocal format specify,0,NULL,NULL 34110,11885,135410,Necromancer Commentator Yearling,NULL,NULL,0,NULL,NULL 34111,841042,721274,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 34112,642566,495810,NULL,NULL,NULL,0,NULL,NULL 34113,8756659,495810,NULL,NULL,NULL,0,NULL,NULL 34114,217243,291244,Guru Nice Answer Necromancer Custodian Yearling Nice Answer Enlightened angularjs Nice Answer Nice Answer Good Question Necromancer Revival Famous Question Good Answer Popular Question Popular Question Nice Answer Guru Necromancer Nice Question Popular Question Yearling java Necromancer Nice Question Nice Answer Popular Question Popular Question Necromancer Good Answer Nice Answer Nice Answer Enlightened Famous Question Yearling Nice Question Popular Question Popular Question Good Answer Revival Notable Question Great Answer Great Answer,NULL,What is the difference between and in directive scope in AngularJS angularjs angularjs directive angularjs scope isolated scope pI ve read the AngularJS documentation on the topic carefully and then fiddled around with directive Here the href http jsfiddle net iweinfuld 7g3QM rel noreferrer fiddle ppAnd here are some relevant snippets pulli pFrom the HTML ppre code lt pane bi title title title title gt text lt pane gt code pre lili pFrom the pane directive ppre codescope biTitle title bar code pre li ulpThere are several things don get pulliWhy do have to use code title code with code code and code title code with code code liliCan also access the parent scope directly without decorating my element with an attribute liliThe documentation says em Often it desirable to pass data from the isolated scope via an expression and to the parent scope em but that seems to work fine with bidirectional binding too Why would the expression route be better li ulpI found another fiddle that shows the expression solution too href http jsfiddle net maxisam QrCXh rel noreferrer http jsfiddle net maxisam QrCXh it an old fiddle feel free to fork it and suggest an edit to the question,0,NULL,NULL 34115,1964968,1117177,Announcer Notable Question Teacher Civic Duty Notable Question Necromancer,NULL,NULL,0,NULL,NULL 34116,142714,169882,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34117,123126,124039,Yearling Guru Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 34118,1153481,426233,NULL,NULL,NULL,0,NULL,NULL 34119,749049,1203191,NULL,NULL,NULL,0,NULL,NULL 34120,649790,1031275,NULL,NULL,NULL,0,NULL,NULL 34121,271851,321126,Famous Question,NULL,NULL,0,NULL,NULL 34122,127269,1418225,NULL,NULL,NULL,0,NULL,NULL 34123,350268,1226657,NULL,NULL,NULL,0,NULL,NULL 34124,629141,367931,NULL,NULL,NULL,0,NULL,NULL 34125,1519254,817441,Civic Duty Nice Answer Tumbleweed Announcer Yearling,NULL,NULL,0,NULL,NULL 34126,276965,227594,Popular Question,NULL,NULL,0,NULL,NULL 34127,213443,720545,Nice Answer Yearling Announcer Yearling Caucus Custodian Good Answer,NULL,pIn short you want to codetranslate code the canvas context by your offset codescale code it to zoom in or out and then codetranslate code back by the opposite of the mouse offset Note that you need to transform the cursor position from screen space into the transformed canvas context ppre class lang js prettyprint override codectx translate pt pt ctx scale factor factor ctx translate pt pt code preh2Demo href http phrogz net tmp canvas zoom to cursor html rel noreferrer http phrogz net tmp canvas zoom to cursor html h2pI ve put up href http phrogz net tmp canvas zoom to cursor html rel noreferrer full working example on my website for you to examine supporting dragging click to zoom in shift click to out or scroll wheel up down pp emThe only current issue is that href https stackoverflow com questions 5527601 normalizing mousewheel speed across browsers Safari zooms too fast compared to Chrome or Firefox em This is awesome Thanks,0,NULL,NULL 34128,146120,851515,Yearling Revival Announcer Revival,NULL,NULL,0,NULL,NULL 34129,3026400,851515,Yearling Revival Announcer Revival,NULL,NULL,0,NULL,NULL 34130,716946,937028,Informed Autobiographer Custodian Nice Question Yearling Caucus Constituent Nice Question Popular Question Popular Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 34131,694870,1059953,Yearling Critic Informed Autobiographer Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 34132,8898,1025604,NULL,NULL,NULL,0,NULL,NULL 34133,471902,186611,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 34134,763604,1037393,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34135,12059,265989,Student Famous Question Announcer Revival,NULL,NULL,0,NULL,NULL 34136,3127637,581278,NULL,NULL,NULL,0,NULL,NULL 34137,298588,581278,NULL,NULL,NULL,0,NULL,NULL 34138,2917351,581278,NULL,NULL,NULL,0,NULL,NULL 34139,5655005,581278,NULL,NULL,NULL,0,NULL,NULL 34140,13429,748731,Yearling Good Answer Good Answer Great Question Popular Question Nice Answer Yearling Nice Answer Guru Nice Question Nice Answer Notable Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 34141,1408062,1097372,Famous Question Popular Question Custodian Announcer Notable Question Caucus Popular Question Promoter Benefactor Caucus,NULL,NULL,0,NULL,NULL 34142,196832,310673,Popular Question,NULL,NULL,0,NULL,NULL 34143,996000,809105,NULL,NULL,NULL,0,NULL,NULL 34144,7460223,809105,NULL,NULL,NULL,0,NULL,NULL 34145,283255,809105,NULL,NULL,NULL,0,NULL,NULL 34146,204584,1258590,NULL,NULL,NULL,0,NULL,NULL 34147,80000,1391775,NULL,NULL,NULL,0,NULL,NULL 34148,384725,46914,Popular Question Guru Notable Question Nice Question c# Good Question Popular Question Notable Question Nice Question Notable Question Nice Answer Socratic Good Question Notable Question Great Answer Good Answer Nice Answer Notable Question Good Answer Reviewer Notable Question Notable Question html Notable Question Famous Question Fanatic Informed javascript Nice Answer Nice Answer ajax Notable Question Yearling Popular Question Notable Question Good Question Nice Question Good Answer Nice Answer Popular Question Custodian Nice Answer Notable Question Nice Answer Enlightened Notable Question Copy Editor python Favorite Question Famous Question Refiner Popular Question Nice Answer Popular Question Archaeologist arrays Notable Question Nice Answer Famous Question html css Popular Question Popular Question Disciplined Yearling Good Question Electorate Good Answer Popular Question Nice Question Good Answer Notable Question Nice Answer Enlightened node.js Famous Question Nice Answer Nice Question Guru Famous Question Notable Question Notable Question Nice Answer Nice Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Notable Question,NULL,How do load multiple classes from module folder in Angular2 TypeScript typescript module angular pI have an Angular2 application with the following module structure ppre code app content models resource ts container ts entity type ts index ts services whatever whatever service ts code prepMy models codeindex ts code looks like ppre codeexport from resource export from container export from entity type code prepI want to be able to load all the models into codewhatever service ts code ppre codeimport Resource Container from models code prepThe barrels loading portion of my codesystem config js code files looks like ppre codeconst barrels string Angular specific barrels core common compiler http router platform browser platform browser dynamic Thirdparty barrels rxjs App specific barrels app app shared app content barrel code prepTypeScript compiles this without error however in the browser get the following errors from the System loader and Zone saying certain files can be found pblockquote pGET href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js 404 Not Found scheduleTask zone js 101ZoneDelegate scheduleTask zone js 336Zone scheduleMacroTask zone js 273 anonymous function zone js 122send VM59771 3fetchTextFromURL system src js 1154 anonymous function system src js 1735ZoneAwarePromise zone js 584 anonymous function system src js 1734 anonymous function system src js 2759 anonymous function system src js 3333 anonymous function system src js 3600 anonymous function system src js 3985 anonymous function system src js 4448 anonymous function system src js 4700 anonymous function system src js 406ZoneDelegate invoke zone js 323Zone run zone js 216 anonymous function zone js 571ZoneDelegate invokeTask zone js 356Zone runTask zone js 256drainMicroTaskQueue zone js 474ZoneTask invoke zone js 426 zone js 461 Unhandled Promise rejection Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js at XMLHttpRequest wrapFn as onreadystatechange href http localhost 4200 vendor zone js dist zone js 769 30 rel noreferrer http localhost 4200 vendor zone js dist zone js 769 30 at ZoneDelegate invokeTask href http localhost 4200 vendor zone js dist zone js 356 38 rel noreferrer http localhost 4200 vendor zone js dist zone js 356 38 at Zone runTask href http localhost 4200 vendor zone js dist zone js 256 48 rel noreferrer http localhost 4200 vendor zone js dist zone js 256 48 at XMLHttpRequest ZoneTask invoke href http localhost 4200 vendor zone js dist zone js 423 34 rel noreferrer http localhost 4200 vendor zone js dist zone js 423 34 Error loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js as models from href http localhost 4200 app content services container container service js rel noreferrer http localhost 4200 app content services container container service js Zone Task Promise then Value Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js consoleError zone js 461 loop zone js 490drainMicroTaskQueue zone js 494ZoneTask invoke zone js 426 zone js 463 Error Uncaught in promise Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js blockquotepWhen import each model directly from it code ts code file everything works ppre codeimport EntityType from models entity type import Container from models container code prepHow can import modules without causing errors in Angular2 that didn seem to make any difference getting the same errors from SystemJS in the browser saying models js can be found How do load multiple classes from module folder in Angular2 TypeScript typescript module angular pI have an Angular2 application with the following module structure ppre code app content models resource ts container ts entity type ts index ts services whatever whatever service ts code prepMy models codeindex ts code looks like ppre codeexport from resource export from container export from entity type code prepI want to be able to load all the models into codewhatever service ts code ppre codeimport Resource Container from models code prepThe barrels loading portion of my codesystem config js code files looks like ppre codeconst barrels string Angular specific barrels core common compiler http router platform browser platform browser dynamic Thirdparty barrels rxjs App specific barrels app app shared app content barrel code prepTypeScript compiles this without error however in the browser get the following errors from the System loader and Zone saying certain files can be found pblockquote pGET href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js 404 Not Found scheduleTask zone js 101ZoneDelegate scheduleTask zone js 336Zone scheduleMacroTask zone js 273 anonymous function zone js 122send VM59771 3fetchTextFromURL system src js 1154 anonymous function system src js 1735ZoneAwarePromise zone js 584 anonymous function system src js 1734 anonymous function system src js 2759 anonymous function system src js 3333 anonymous function system src js 3600 anonymous function system src js 3985 anonymous function system src js 4448 anonymous function system src js 4700 anonymous function system src js 406ZoneDelegate invoke zone js 323Zone run zone js 216 anonymous function zone js 571ZoneDelegate invokeTask zone js 356Zone runTask zone js 256drainMicroTaskQueue zone js 474ZoneTask invoke zone js 426 zone js 461 Unhandled Promise rejection Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js at XMLHttpRequest wrapFn as onreadystatechange href http localhost 4200 vendor zone js dist zone js 769 30 rel noreferrer http localhost 4200 vendor zone js dist zone js 769 30 at ZoneDelegate invokeTask href http localhost 4200 vendor zone js dist zone js 356 38 rel noreferrer http localhost 4200 vendor zone js dist zone js 356 38 at Zone runTask href http localhost 4200 vendor zone js dist zone js 256 48 rel noreferrer http localhost 4200 vendor zone js dist zone js 256 48 at XMLHttpRequest ZoneTask invoke href http localhost 4200 vendor zone js dist zone js 423 34 rel noreferrer http localhost 4200 vendor zone js dist zone js 423 34 Error loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js as models from href http localhost 4200 app content services container container service js rel noreferrer http localhost 4200 app content services container container service js Zone Task Promise then Value Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js consoleError zone js 461 loop zone js 490drainMicroTaskQueue zone js 494ZoneTask invoke zone js 426 zone js 463 Error Uncaught in promise Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js blockquotepWhen import each model directly from it code ts code file everything works ppre codeimport EntityType from models entity type import Container from models container code prepHow can import modules without causing errors in Angular2 added my barrels list from the system config js file to hopefully shed some light on why these modules aren loading,1,How do load multiple classes from module folder in Angular2 TypeScript typescript module angular pI have an Angular2 application with the following module structure ppre code app content models resource ts container ts entity type ts index ts services whatever whatever service ts code prepMy models codeindex ts code looks like ppre codeexport from resource export from container export from entity type code prepI want to be able to load all the models into codewhatever service ts code ppre codeimport Resource Container from models code prepThe barrels loading portion of my codesystem config js code files looks like ppre codeconst barrels string Angular specific barrels core common compiler http router platform browser platform browser dynamic Thirdparty barrels rxjs App specific barrels app app shared app content barrel code prepTypeScript compiles this without error however in the browser get the following errors from the System loader and Zone saying certain files can be found pblockquote pGET href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js 404 Not Found scheduleTask zone js 101ZoneDelegate scheduleTask zone js 336Zone scheduleMacroTask zone js 273 anonymous function zone js 122send VM59771 3fetchTextFromURL system src js 1154 anonymous function system src js 1735ZoneAwarePromise zone js 584 anonymous function system src js 1734 anonymous function system src js 2759 anonymous function system src js 3333 anonymous function system src js 3600 anonymous function system src js 3985 anonymous function system src js 4448 anonymous function system src js 4700 anonymous function system src js 406ZoneDelegate invoke zone js 323Zone run zone js 216 anonymous function zone js 571ZoneDelegate invokeTask zone js 356Zone runTask zone js 256drainMicroTaskQueue zone js 474ZoneTask invoke zone js 426 zone js 461 Unhandled Promise rejection Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js at XMLHttpRequest wrapFn as onreadystatechange href http localhost 4200 vendor zone js dist zone js 769 30 rel noreferrer http localhost 4200 vendor zone js dist zone js 769 30 at ZoneDelegate invokeTask href http localhost 4200 vendor zone js dist zone js 356 38 rel noreferrer http localhost 4200 vendor zone js dist zone js 356 38 at Zone runTask href http localhost 4200 vendor zone js dist zone js 256 48 rel noreferrer http localhost 4200 vendor zone js dist zone js 256 48 at XMLHttpRequest ZoneTask invoke href http localhost 4200 vendor zone js dist zone js 423 34 rel noreferrer http localhost 4200 vendor zone js dist zone js 423 34 Error loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js as models from href http localhost 4200 app content services container container service js rel noreferrer http localhost 4200 app content services container container service js Zone Task Promise then Value Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js consoleError zone js 461 loop zone js 490drainMicroTaskQueue zone js 494ZoneTask invoke zone js 426 zone js 463 Error Uncaught in promise Error Error XHR error 404 Not Found loading href http localhost 4200 app content models js rel noreferrer http localhost 4200 app content models js blockquotepWhen import each model directly from it code ts code file everything works ppre codeimport EntityType from models entity type import Container from models container code prepHow can import modules without causing errors in Angular2,NULL 34149,937137,1138229,NULL,NULL,NULL,0,NULL,NULL 34150,67639,99944,Notable Question Yearling Popular Question Revival Great Question Nice Answer Census Famous Question Nice Question Yearling Necromancer Famous Question Census Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34151,839659,99944,Notable Question Yearling Popular Question Revival Great Question Nice Answer Census Famous Question Nice Question Yearling Necromancer Famous Question Census Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34152,324308,1305457,Revival Yearling,NULL,NULL,0,NULL,NULL 34153,654314,699860,Student Yearling,NULL,NULL,0,NULL,NULL 34154,183550,437339,NULL,NULL,NULL,0,NULL,NULL 34155,1513397,437339,NULL,NULL,NULL,0,NULL,NULL 34156,374662,1071026,NULL,NULL,NULL,0,NULL,NULL 34157,340457,1537827,NULL,NULL,NULL,0,NULL,NULL 34158,61788,507347,NULL,NULL,NULL,0,NULL,NULL 34159,52884,1275700,Informed,NULL,NULL,0,NULL,NULL 34160,1056308,1398711,Necromancer,NULL,NULL,0,NULL,NULL 34161,28798,6512,Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Guru Yearling Custodian Nice Answer Enlightened Announcer Nice Answer Enlightened symfony Guru Guru Good Answer Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer Announcer Good Answer Guru Nice Answer Student Yearling Good Answer,NULL,NULL,0,NULL,NULL 34162,63939,260433,NULL,NULL,NULL,0,NULL,NULL 34163,227478,665018,NULL,NULL,NULL,0,NULL,NULL 34164,434055,558698,NULL,NULL,NULL,0,NULL,NULL 34165,215990,294521,Supporter Critic Student Popular Question,NULL,NULL,0,NULL,NULL 34166,251136,999384,NULL,NULL,NULL,0,NULL,NULL 34167,34339,57037,NULL,NULL,NULL,0,NULL,NULL 34168,1345014,614773,Nice Question,NULL,NULL,0,NULL,NULL 34169,316640,987712,NULL,NULL,NULL,0,NULL,NULL 34170,183411,809025,NULL,NULL,NULL,0,NULL,NULL 34171,217250,136345,NULL,NULL,NULL,0,NULL,NULL 34172,359365,1224169,Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 34173,812923,1085481,Nice Answer,NULL,NULL,0,NULL,NULL 34174,200030,298147,NULL,NULL,NULL,0,NULL,NULL 34175,246025,1369228,Editor,NULL,NULL,0,NULL,NULL 34176,84301,1293340,NULL,NULL,NULL,0,NULL,NULL 34177,240832,1166087,Yearling Custodian Custodian Custodian Custodian Custodian Custodian Informed Excavator Yearling Necromancer Notable Question Census Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 34178,162841,98470,Yearling Famous Question Necromancer Yearling Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 34179,932567,98470,Yearling Famous Question Necromancer Yearling Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 34180,197196,801588,Popular Question,NULL,NULL,0,NULL,NULL 34181,187359,424131,Necromancer Self-Learner Critic Famous Question Announcer Popular Question Yearling Nice Answer Announcer Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 34182,2219004,424131,Necromancer Self-Learner Critic Famous Question Announcer Popular Question Yearling Nice Answer Announcer Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 34183,259023,725091,Yearling Good Answer Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34184,5961,221275,NULL,NULL,NULL,0,NULL,NULL 34185,92636,667440,Notable Question Civic Duty Caucus Constituent Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34186,1330604,998283,Yearling Popular Question Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 34187,358301,1183727,NULL,NULL,NULL,0,NULL,NULL 34188,492715,1338834,NULL,NULL,NULL,0,NULL,NULL 34189,221364,1044315,NULL,NULL,NULL,0,NULL,NULL 34190,2570287,823447,Scholar Supporter Teacher Editor Custodian,NULL,NULL,0,NULL,NULL 34191,138543,1024209,Student,NULL,NULL,0,NULL,NULL 34192,3428,1307004,NULL,NULL,NULL,0,NULL,NULL 34193,41810,703230,NULL,NULL,NULL,0,NULL,NULL 34194,459136,38883,Notable Question c# Good Answer Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 34195,1499922,2114,Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Question Nice Answer Enlightened Good Answer Famous Question Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 34196,188167,1206410,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34197,9600255,1206410,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34198,3028772,1206410,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34199,820420,1063106,NULL,NULL,NULL,0,NULL,NULL 34200,820422,1063106,NULL,NULL,NULL,0,NULL,NULL 34201,213975,368015,NULL,NULL,NULL,0,NULL,NULL 34202,700031,1170084,Popular Question,NULL,NULL,0,NULL,NULL 34203,545125,283972,Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 34204,566325,673998,NULL,NULL,NULL,0,NULL,NULL 34205,492290,354739,Supporter Popular Question Curious Custodian Tumbleweed,NULL,NULL,0,NULL,NULL 34206,683694,1068536,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 34207,93219,226574,Notable Question Yearling Notable Question Revival Yearling Favorite Question Yearling Notable Question Great Question,NULL,NULL,0,NULL,NULL 34208,325665,1126637,Critic,NULL,NULL,0,NULL,NULL 34209,238273,1041082,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34210,1005500,1259507,Nice Question Yearling Critic Famous Question Good Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 34211,101889,79201,Nice Answer Yearling Revival Nice Answer Necromancer Notable Question Self-Learner Popular Question Yearling Notable Question Excavator Announcer,NULL,pTo jump between words and start end of lines in iTerm2 follow these steps pulliiTerm2 Preferences kbd⌘ kbd kbd kbd liliOpen the “Keys” tab liliAdd the following Global Shortcut Keys li ulp strongMove cursor one word left strong pulliKeyboard Combination kbd⌥ kbd kbd← kbd liliAction Send Hex Code liliCode code0x1b 0x62 code li ulp strongMove cursor one word right strong pulliKeyboard Combination kbd⌥ kbd kbd→ kbd liliAction Send Hex Code liliCode code0x1b 0x66 code li ulp strongMove cursor to beginning of line strong pulliKeyboard Combination kbd⌘ kbd kbd← kbd liliAction Send Hex Code liliCode code0x01 code li ulp strongMove cursor to end of line strong pulliKeyboard Combination kbd⌘ kbd kbd→ kbd liliAction Send Hex Code liliCode code0x05 code li ulp strongDelete word strong pulliKeyboard Combination kbd⌥ kbd kbd←Delete kbd liliAction Send Hex Code liliCode code0x1b 0x08 code li ulp strongDelete line strong pulliKeyboard Combination kbd⌘ kbd kbd←Delete kbd liliAction Send Hex Code liliCode code0x15 code li ulp strongUndo strong pulliKeyboard Combination kbd⌘ kbd kbdz kbd liliAction Send Hex Code liliCode code0x1f code li ulpDon forget to strongremove the previous bindings strong pulliOpen the “Profiles” tab liliClick the sub tab ”Keys” liliRemove the mappings for key combinations kbd⌥ kbd kbd← kbd and kbd⌥ kbd kbd→ kbd li ul This is assuming you are using emacs mode set emacs,0,NULL,NULL 34212,223876,571007,Yearling Yearling Nice Answer Enlightened Scholar Nice Answer Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 34213,97932,121259,Yearling Famous Question,NULL,NULL,0,NULL,NULL 34214,1068788,472166,NULL,NULL,NULL,0,NULL,NULL 34215,162488,1271512,NULL,NULL,NULL,0,NULL,NULL 34216,260604,1279241,NULL,NULL,NULL,0,NULL,NULL 34217,689321,784669,Popular Question Yearling Good Answer Famous Question Excavator Popular Question Necromancer Good Answer Yearling Necromancer Notable Question Nice Answer Promoter Necromancer Nice Question Popular Question Notable Question Popular Question Popular Question Necromancer Necromancer Yearling Necromancer Custodian Popular Question,NULL,pThe answer by swill is not how it is done properly If you want unattended scripted dpkg configuration of packages then you want to use the debconf preseeding mechanism ppIn your case this means that you have to do the following pulli pset the following environment variables to avoid that debconf tries to ask the user any questions ppre codeexport DEBIAN FRONTEND noninteractive DEBCONF NONINTERACTIVE SEEN true code pre lili pthen preseed debconf with the following preseed txt file or whatever other settings you desire ppre codetzdata tzdata Areas select Europetzdata tzdata Zones Europe select Berlin code pre lili pyou set the above preseed file by running ppre codedebconf set selections your preseed txt code pre lili pyou can now either install tzdata if it is not installed yet via codeapt code or run codedpkg reconfigure code In the end tzdata will be set up according to what you specified in your debconf preseed file li ulpRemember that you can automate lots more using debconf preseeding For example in my preseeds always set ppre codelocales locales locales to be generated multiselect en US UTF UTF 8locales locales default environment locale select en US UTF code prepYou can always inspect the debconf settings of your current system by running codedebconf get selections code The output should give you some idea of how much of the system configuration you are able to automate using debconf preseeding your usage of tmp tz is security problem By the time you read from tmp tz others could ve written different value to it or the file already existed which you didn check and you are overwriting it Use mktemp to avoid all these problems Also you are forgetting to remove your temporary file at the end Lastly your using of as argument to echo is not portable and you should use printf instead for the newlines pYou should first check the code HOME code environment variable and if that does not exist use getpwuid ppre code include lt unistd gt include lt sys types gt include lt pwd gt const char homedir if homedir getenv HOME NULL homedir getpwuid getuid gt pw dir code prepAlso note that if you want the home directory to store configuration or cache data as part of program you write and want to distribute to users you should consider following the href http standards freedesktop org basedir spec basedir spec latest html rel nofollow noreferrer XDG Base Directory Specification For example if you want to create configuration directory for your application you should first check code XDG CONFIG HOME code using codegetenv code as shown above and only fall back to the code above if the variable is not set ppIf you require multi thread safety you should use codegetpwuid code instead of codegetpwuid code like this from the codegetpwnam code man page ppre codestruct passwd pwd struct passwd result char buf size bufsize int bufsize sysconf SC GETPW SIZE MAX if bufsize bufsize 0x4000 all zeroes with the 14th bit set lt lt 14 buf malloc bufsize if buf NULL perror malloc exit EXIT FAILURE getpwuid getuid amp pwd buf bufsize amp result if result NULL if printf Not found else errno perror getpwnam exit EXIT FAILURE char homedir result pw dir code pre fear that if free buf in my answer then that might be misleading and lead to problems of too early free because according to the man page of getpwuid string fields pointed to by the members of the passwd structure are stored in the buffer buf of size buflen So buf remains useful for as long as pwd is useful pYou should first check the code HOME code environment variable and if that does not exist use getpwuid ppre code include lt unistd gt include lt sys types gt include lt pwd gt const char homedir if homedir getenv HOME NULL homedir getpwuid getuid gt pw dir code prepAlso note that if you want the home directory to store configuration or cache data as part of program you write and want to distribute to users you should consider following the href http standards freedesktop org basedir spec basedir spec latest html rel nofollow noreferrer XDG Base Directory Specification For example if you want to create configuration directory for your application you should first check code XDG CONFIG HOME code using codegetenv code as shown above and only fall back to the code above if the variable is not set ppIf you require multi thread safety you should use codegetpwuid code instead of codegetpwuid code like this from the codegetpwnam code man page ppre codestruct passwd pwd struct passwd result char buf size bufsize int bufsize sysconf SC GETPW SIZE MAX if bufsize bufsize 0x4000 all zeroes with the 14th bit set lt lt 14 buf malloc bufsize if buf NULL perror malloc exit EXIT FAILURE getpwuid getuid amp pwd buf bufsize amp result if result NULL if printf Not found else errno perror getpwnam exit EXIT FAILURE char homedir result pw dir code pre which might be equal to the home directory of the user running that program pYou should first check the code HOME code environment variable and if that does not exist use getpwuid ppre code include lt unistd gt include lt sys types gt include lt pwd gt const char homedir if homedir getenv HOME NULL homedir getpwuid getuid gt pw dir code prepAlso note that if you want the home directory to store configuration or cache data as part of program you write and want to distribute to users you should consider following the href http standards freedesktop org basedir spec basedir spec latest html rel nofollow noreferrer XDG Base Directory Specification For example if you want to create configuration directory for your application you should first check code XDG CONFIG HOME code using codegetenv code as shown above and only fall back to the code above if the variable is not set ppIf you require multi thread safety you should use codegetpwuid code instead of codegetpwuid code like this from the codegetpwnam code man page ppre codestruct passwd pwd struct passwd result char buf size bufsize int bufsize sysconf SC GETPW SIZE MAX if bufsize bufsize 0x4000 all zeroes with the 14th bit set lt lt 14 buf malloc bufsize if buf NULL perror malloc exit EXIT FAILURE getpwuid getuid amp pwd buf bufsize amp result if result NULL if printf Not found else errno perror getpwnam exit EXIT FAILURE char homedir result pw dir code pre how are you starting your application then Most daemons for example are given their own user on startup If you are starting the program from the command line you can inspect what echo HOME outputs pYou should first check the code HOME code environment variable and if that does not exist use getpwuid ppre code include lt unistd gt include lt sys types gt include lt pwd gt const char homedir if homedir getenv HOME NULL homedir getpwuid getuid gt pw dir code prepAlso note that if you want the home directory to store configuration or cache data as part of program you write and want to distribute to users you should consider following the href http standards freedesktop org basedir spec basedir spec latest html rel nofollow noreferrer XDG Base Directory Specification For example if you want to create configuration directory for your application you should first check code XDG CONFIG HOME code using codegetenv code as shown above and only fall back to the code above if the variable is not set ppIf you require multi thread safety you should use codegetpwuid code instead of codegetpwuid code like this from the codegetpwnam code man page ppre codestruct passwd pwd struct passwd result char buf size bufsize int bufsize sysconf SC GETPW SIZE MAX if bufsize bufsize 0x4000 all zeroes with the 14th bit set lt lt 14 buf malloc bufsize if buf NULL perror malloc exit EXIT FAILURE getpwuid getuid amp pwd buf bufsize amp result if result NULL if printf Not found else errno perror getpwnam exit EXIT FAILURE char homedir result pw dir code pre because the user should be able to overwrite the home directory that process is using If you just rely on getpwuid then you are making it impossible for user to run the process with different HOME,0,NULL,NULL 34218,477570,847975,NULL,NULL,NULL,0,NULL,NULL 34219,177221,1328881,NULL,NULL,NULL,0,NULL,NULL 34220,281238,400183,NULL,NULL,NULL,0,NULL,NULL 34221,353603,965294,Famous Question Notable Question Nice Question Yearling Nice Question Nice Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 34222,133893,1346170,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34223,80056,1206024,Yearling Good Answer,NULL,NULL,0,NULL,NULL 34224,127150,358059,Yearling Great Answer Nice Question Notable Question Yearling Custodian Custodian Census Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 34225,744828,315329,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34226,1131725,50173,Nice Answer Enlightened Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Popular Question Famous Question Yearling Notable Question Announcer Good Question Popular Question,NULL,NULL,0,NULL,NULL 34227,744632,723062,Nice Answer Tumbleweed Revival Yearling,NULL,NULL,0,NULL,NULL 34228,2993068,688162,NULL,NULL,NULL,0,NULL,NULL 34229,438464,348481,NULL,NULL,NULL,0,NULL,NULL 34230,42739,229140,Critic,NULL,NULL,0,NULL,NULL 34231,2423309,512224,Yearling,NULL,NULL,0,NULL,NULL 34232,103186,1248008,Nice Answer Good Answer Nice Answer Pundit Yearling Nice Question Good Answer Nice Answer Great Answer Nice Answer Enlightened Popular Question Caucus Census Yearling Electorate Reviewer Fanatic Autobiographer Disciplined Custodian Good Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Guru Nice Answer Enlightened Census Yearling Announcer Famous Question Nice Answer Revival Good Answer,NULL,NULL,0,NULL,NULL 34233,2338810,1555930,NULL,NULL,NULL,0,NULL,NULL 34234,263116,1555930,NULL,NULL,NULL,0,NULL,NULL 34235,499266,377540,NULL,NULL,NULL,0,NULL,NULL 34236,1060231,126272,Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 34237,240223,793600,NULL,NULL,NULL,0,NULL,NULL 34238,108310,924832,Civic Duty Informed Autobiographer,NULL,NULL,0,NULL,NULL 34239,23387,1409096,NULL,NULL,NULL,0,NULL,NULL 34240,203070,1094591,NULL,NULL,NULL,0,NULL,NULL 34241,81511,1411230,NULL,NULL,NULL,0,NULL,NULL 34242,374063,992109,NULL,NULL,NULL,0,NULL,NULL 34243,206113,976325,NULL,NULL,NULL,0,NULL,NULL 34244,2460582,244162,NULL,NULL,NULL,0,NULL,NULL 34245,54964,482696,Yearling Notable Question Famous Question Good Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 34246,169712,970614,Popular Question,NULL,NULL,0,NULL,NULL 34247,28533,1342637,Yearling Critic Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34248,52853,1162384,NULL,NULL,NULL,0,NULL,NULL 34249,483528,224441,NULL,NULL,NULL,0,NULL,NULL 34250,2659053,224441,NULL,NULL,NULL,0,NULL,NULL 34251,199349,918324,NULL,NULL,NULL,0,NULL,NULL 34252,18518,386079,NULL,NULL,NULL,0,NULL,NULL 34253,268635,1320247,NULL,NULL,NULL,0,NULL,NULL 34254,1303320,574519,Custodian Cleanup Popular Question Promoter Notable Question Custodian,NULL,NULL,0,NULL,NULL 34255,322723,674719,Editor Excavator,NULL,NULL,0,NULL,NULL 34256,63220,168143,Altruist Nice Question Popular Question Nice Answer Good Answer Popular Question Guru Famous Question Nice Question Notable Question Nice Question Nice Question Notable Question Good Question Nice Question Notable Question Yearling Notable Question Notable Question Favorite Question Popular Question Popular Question Notable Question Nice Question Notable Question Caucus Good Question Good Answer Nice Question Notable Question Popular Question Notable Question Notable Question Good Question Popular Question Nice Question Nice Question Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Popular Question Nice Question Good Question Notable Question Pundit Yearling Notable Question Necromancer Popular Question Notable Question Good Question Nice Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Answer Nice Question Nice Question Notable Question Socratic Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Famous Question Nice Question Popular Question Notable Question Famous Question Announcer Notable Question Popular Question,NULL,pThe attributes are SQL types hence the following are supported pulli code binary code lili code boolean code lili code date code lili code datetime code lili code decimal code lili code float code lili code integer code lili code primary key code lili code string code lili code text code lili code time code lili code timestamp code li ulpThese are documented under strongcolumn strong in the href http api rubyonrails org classes ActiveRecord ConnectionAdapters SchemaStatements html method add column rel noreferrer Active Record API and now it here http api rubyonrails org classes ActiveRecord ConnectionAdapters SchemaStatements html method add column updated the answer,0,NULL,NULL 34257,22870,1109117,NULL,NULL,NULL,0,NULL,NULL 34258,8147,1155048,Yearling Notable Question Nice Answer Enlightened Commentator Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34259,150754,178024,Famous Question Good Question,NULL,NULL,0,NULL,NULL 34260,561664,346740,Popular Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 34261,447849,16381,NULL,NULL,NULL,0,NULL,NULL 34262,31722,75192,Yearling Necromancer Yearling Guru Guru Yearling,NULL,NULL,0,NULL,NULL 34263,434021,607889,Favorite Question,NULL,NULL,0,NULL,NULL 34264,4966,645203,NULL,NULL,NULL,0,NULL,NULL 34265,85453,1113751,Tumbleweed Revival Necromancer,NULL,NULL,0,NULL,NULL 34266,253958,153433,Yearling,NULL,NULL,0,NULL,NULL 34267,707151,500204,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34268,270213,137409,NULL,NULL,NULL,0,NULL,NULL 34269,7043127,967829,NULL,NULL,NULL,0,NULL,NULL 34270,968746,403398,Teacher,NULL,NULL,0,NULL,NULL 34271,1120109,1363865,Curious Caucus Commentator,NULL,NULL,0,NULL,NULL 34272,803269,1101349,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34273,2003354,1101349,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34274,1919100,1000154,Teacher,NULL,NULL,0,NULL,NULL 34275,882382,608970,Yearling Tumbleweed Curious Enthusiast Cleanup,NULL,NULL,0,NULL,NULL 34276,243759,1022572,NULL,NULL,NULL,0,NULL,NULL 34277,120770,1138806,NULL,NULL,NULL,0,NULL,NULL 34278,385814,56725,Famous Question Yearling Good Question Popular Question Necromancer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 34279,1014452,721230,NULL,NULL,NULL,0,NULL,NULL 34280,275270,1200420,Yearling,NULL,NULL,0,NULL,NULL 34281,25656,326643,NULL,NULL,NULL,0,NULL,NULL 34282,418910,1224332,Necromancer Supporter,NULL,NULL,0,NULL,NULL 34283,761973,609799,NULL,NULL,NULL,0,NULL,NULL 34284,86946,208838,NULL,NULL,NULL,0,NULL,NULL 34285,452939,919346,NULL,NULL,NULL,0,NULL,NULL 34286,11792,576207,NULL,NULL,NULL,0,NULL,NULL 34287,127362,450436,NULL,NULL,,0,, 34288,447617,1528868,Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 34289,200789,116805,Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 34290,67867,257340,NULL,NULL,NULL,0,NULL,NULL 34291,706782,1005290,Supporter,NULL,NULL,0,NULL,NULL 34292,162440,1005290,Supporter,NULL,NULL,0,NULL,NULL 34293,1186650,695202,NULL,NULL,NULL,0,NULL,NULL 34294,422060,49951,Famous Question Nice Answer Nice Question Popular Question Yearling Great Answer Good Answer Nice Answer Popular Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 34295,421043,252441,NULL,NULL,NULL,0,NULL,NULL 34296,523898,399074,Good Question Yearling,NULL,NULL,0,NULL,NULL 34297,291549,978021,NULL,NULL,NULL,0,NULL,NULL 34298,161492,337401,Notable Question Popular Question Notable Question Notable Question Yearling Inquisitive Popular Question Popular Question Nice Answer Nice Question Autobiographer Notable Question Popular Question Yearling Good Question Nice Question Popular Question Famous Question Notable Question Yearling,NULL,How to Update Multiple Array Elements in mongodb arrays mongodb mongodb query pI have Mongo document which holds an array of elements ppI like to reset the code handled code attribute of all objects in the array where code profile code XX ppThe document is in the following form ppre code id ObjectId 4d2d8deff4e6c1d71fc29a07 user id 714638ba 2e08 2168 2b99 00002f3d43c0 events handled profile 10 data handled profile 10 data handled profile 20 data code prepso tried the following ppre code update events profile 10 set events handled false true code prepHowever it updates only the strongfirst strong matched array element in each document That the defined behaviour for href http www mongodb org display DOCS Updating Updating The 24positionaloperator rel noreferrer the positional operator ppHow can update strongall strong matched array elements Updating subset or all array items has been added to mongodb https docs mongodb com manual reference operator update positional all up How to Update Multiple Array Elements in mongodb arrays mongodb mongodb query pI have Mongo document which holds an array of elements ppI like to reset the code handled code attribute of all objects in the array where code profile code XX ppThe document is in the following form ppre code id ObjectId 4d2d8deff4e6c1d71fc29a07 user id 714638ba 2e08 2168 2b99 00002f3d43c0 events handled profile 10 data handled profile 10 data handled profile 20 data code prepso tried the following ppre code update events profile 10 set events handled false true code prepHowever it updates only the strongfirst strong matched array element in each document That the defined behaviour for href http www mongodb org display DOCS Updating Updating The 24positionaloperator rel noreferrer the positional operator ppHow can update strongall strong matched array elements be sure to check out arrayFilters and consider which query to use to make the update efficient Check out the answer by Neil Lunn https stackoverflow com 46054172 337401,0,NULL,NULL 34299,108047,281716,Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 34300,81343,511584,NULL,NULL,NULL,0,NULL,NULL 34301,96810,369769,Popular Question,NULL,NULL,0,NULL,NULL 34302,182612,845109,NULL,NULL,NULL,0,NULL,NULL 34303,417823,225142,Yearling Good Question Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 34304,227584,682298,NULL,NULL,NULL,0,NULL,NULL 34305,51203,1074750,NULL,NULL,NULL,0,NULL,NULL 34306,169911,1147342,NULL,NULL,NULL,0,NULL,NULL 34307,111066,232485,Necromancer Revival Nice Answer Necromancer Necromancer Announcer Good Answer Notable Question Necromancer Good Answer Necromancer Announcer Yearling Nice Answer Popular Question Announcer Necromancer Announcer Notable Question Good Answer Documentation User Yearling Announcer Necromancer Nice Answer Populist Pundit Necromancer,NULL,pThe error message says you re missing the codetype1cm code package It seems that href https trac macports org wiki TeXLivePackages MacPorts includes it as part of codetexlive latex extra code Under Arch Manjaro it called texlive latexextra,0,NULL,NULL 34308,90888,878792,Yearling Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 34309,193644,586800,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 34310,306717,458304,Yearling,NULL,NULL,0,NULL,NULL 34311,709303,282767,NULL,NULL,NULL,0,NULL,NULL 34312,364259,82592,Great Answer Nice Answer Nice Answer Famous Question Good Answer Nice Answer Enlightened Nice Answer Yearling Guru Nice Answer Custodian ruby-on-rails Nice Answer Enlightened Popular Question Good Answer Census Good Answer Nice Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Good Answer Popular Question Popular Question Nice Answer Notable Question Census Nice Answer Revival Necromancer Yearling Great Answer Nice Answer Guru Nice Answer Nice Answer,NULL,Parametrized join in Rails ruby on rails ruby on rails parameters left join pI am doing manual codejoin code and need to pass parameter to its codeON code clause ppre codeFoo joins LEFT OUTER JOIN bars ON foos id bars foo id AND bars baz baz code prepIs there way to pass codebaz code as parameter to avoid potential injection problems There is method codesanitize sql array code but not sure how to make use of it in this case ppNote can use codewhere code because it not the same baz is variable holding string literal or number for example It not another model it value want to pass to ON condition in outer join How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this Are you sure you should specify params to url for through param named params and not directly by passing the params at the top level as in link to name action action name order key page nil merge params How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this If you really need to pass params params try params params to,1,Parametrized join in Rails ruby on rails ruby on rails parameters left join pI am doing manual codejoin code and need to pass parameter to its codeON code clause ppre codeFoo joins LEFT OUTER JOIN bars ON foos id bars foo id AND bars baz baz code prepIs there way to pass codebaz code as parameter to avoid potential injection problems There is method codesanitize sql array code but not sure how to make use of it in this case ppNote can use codewhere code because it not the same,NULL 34313,380446,1417291,NULL,NULL,NULL,0,NULL,NULL 34314,198814,171627,NULL,NULL,NULL,0,NULL,NULL 34315,2027573,265660,NULL,NULL,NULL,0,NULL,NULL 34316,2641,161642,NULL,NULL,NULL,0,NULL,NULL 34317,15619,29676,Good Answer Nice Answer Enlightened Popular Question Yearling Guru Good Answer Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 34318,1075312,220697,NULL,NULL,NULL,0,NULL,NULL 34319,233749,172414,Yearling Notable Question Famous Question Census Nice Question,NULL,NULL,0,NULL,NULL 34320,154282,479388,NULL,NULL,NULL,0,NULL,NULL 34321,399401,1984,Curious Census Popular Question,NULL,NULL,0,NULL,NULL 34322,547808,88872,Yearling Nice Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 34323,39557,78903,Nice Answer Good Question Yearling Nice Answer Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 34324,913972,304224,Notable Question,NULL,NULL,0,NULL,NULL 34325,2660053,1270794,NULL,NULL,NULL,0,NULL,NULL 34326,107471,1270794,NULL,NULL,NULL,0,NULL,NULL 34327,82501,223120,NULL,NULL,NULL,0,NULL,NULL 34328,194901,934899,Yearling Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 34329,69210,558464,Excavator,NULL,NULL,0,NULL,NULL 34330,804340,397872,Excavator Citizen Patrol Notable Question Revival Necromancer Yearling Good Answer Announcer Revival,NULL,How to sparsely checkout only one single file from git repository git file git checkout pHow do checkout just one file from git repo Possible duplicate of Retrieve single file from repository http stackoverflow com questions 1125476 retrieve single file from repository,0,NULL,NULL 34331,4532841,1121173,Revival Yearling,NULL,NULL,0,NULL,NULL 34332,275806,1104031,Yearling Nice Answer Necromancer Nice Answer Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 34333,558091,1464908,NULL,NULL,NULL,0,NULL,NULL 34334,132787,794314,NULL,NULL,NULL,0,NULL,NULL 34335,1410719,1354167,Scholar,NULL,NULL,0,NULL,NULL 34336,578778,1361495,Self-Learner Popular Question Excavator Critic Popular Question,NULL,NULL,0,NULL,NULL 34337,110946,374924,Caucus Popular Question Caucus Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 34338,230287,418512,Yearling Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 34339,437511,286284,Nice Question Editor Tumbleweed Nice Answer Yearling Nice Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 34340,496799,1157052,NULL,NULL,NULL,0,NULL,NULL 34341,39217,1305344,Nice Answer Announcer Nice Answer Notable Question Announcer Announcer Nice Question Announcer Announcer Announcer Revival Nice Answer Popular Question Good Answer Yearling Necromancer Announcer Announcer Revival Announcer Announcer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Revival Booster Nice Answer Announcer Announcer Nice Question Good Answer Nice Answer Nice Question apache-spark Necromancer Good Answer Nice Answer Enlightened Nice Answer Revival Necromancer Revival Announcer Necromancer Caucus Constituent Revival Announcer Notable Question Announcer Nice Answer Famous Question Necromancer Famous Question Notable Question Good Answer Nice Answer Enlightened scala Nice Answer Publicist Revival Popular Question Famous Question Revival Revival Yearling Announcer Revival Announcer Announcer Necromancer Announcer Announcer Nice Answer Announcer Necromancer Popular Question Announcer Announcer Nice Answer Enlightened Cleanup apache-spark-sql Nice Answer Announcer apache-spark Revival Announcer Notable Question Announcer Announcer Announcer Revival Announcer java Nice Answer Announcer Caucus Good Answer Announcer Illuminator Guru sbt Good Question Announcer Constituent Necromancer Announcer Good Answer Nice Answer Enlightened Good Answer Announcer Necromancer Famous Question Necromancer Announcer Nice Question Announcer Popular Question Announcer Popular Question Booster Good Question Announcer Good Answer spark-dataframe Nice Answer Guru Announcer Documentation User Announcer Announcer Nice Answer Enlightened Revival Nice Answer Enlightened Announcer Revival Announcer Notable Question Necromancer Announcer Announcer Nice Answer Census Announcer Revival Good Answer Notable Question apache-spark-sql playframework Nice Answer Enlightened Nice Answer Announcer maven Notable Question Revival Necromancer Necromancer Booster Announcer Notable Question apache-spark Caucus Nice Answer Revival Constituent Revival Nice Answer Yearling Announcer Popular Question Announcer Necromancer Nice Question Announcer Nice Answer Enlightened Revival Announcer Announcer Announcer Revival Revival Announcer Revival Necromancer Booster Popular Question Nice Answer Nice Answer Enlightened Nice Answer Necromancer Announcer Revival Popular Question Necromancer Announcer Nice Answer Enlightened Famous Question Announcer Announcer Nice Answer Announcer Announcer Announcer Necromancer pyspark Famous Question Revival Necromancer Nice Answer Nice Answer Enlightened Announcer Good Answer Enlightened Nice Answer Enlightened Famous Question Good Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Necromancer Good Answer Popular Question Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened spark-structured-streaming Nice Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Revival Announcer Nice Answer Publicist,NULL,Why does single structured query run multiple SQL queries per batch apache spark spark structured streaming pWhy does the following structured query run multiple SQL queries as can be seen in web UI SQL tab ppre class lang scala prettyprint override codeimport org apache spark sql streaming OutputMode Trigger import scala concurrent duration val rates spark readStream format rate option numPartitions load writeStream format console option truncate false option numRows 10 trigger Trigger ProcessingTime 10 seconds queryName rate console start code prep href https stack imgur com bXyET png rel nofollow noreferrer img src https stack imgur com bXyET png alt enter image description here It does not matter since DAGs are after the queries SQL query can be zero or more Spark jobs and DAGs are afterwards aren they Or you think about another DAG Why does single structured query run multiple SQL queries per batch apache spark spark structured streaming pWhy does the following structured query run multiple SQL queries as can be seen in web UI SQL tab ppre class lang scala prettyprint override codeimport org apache spark sql streaming OutputMode Trigger import scala concurrent duration val rates spark readStream format rate option numPartitions load writeStream format console option truncate false option numRows 10 trigger Trigger ProcessingTime 10 seconds queryName rate console start code prep href https stack imgur com bXyET png rel nofollow noreferrer img src https stack imgur com bXyET png alt enter image description here Sorry Yuval Didn mean to bold you working on the answer as we speak and suffice to say that the answer depends on the source and the sink so it not obvious without reviewing the internals of each In this case ConsoleSink triggers two queries by design How to achieve ingestion time apache spark spark structured streaming pI found the distinction between different notions of time in the Apache Flink documentation in href https ci apache org projects flink flink docs release dev event time html event time processing time ingestion time rel nofollow noreferrer Event Time Processing Time Ingestion Time pblockquote strongEvent time strong is the time that each individual event occurred on its producing device blockquotepAnd that what datasets come with and so is available in Spark Structured Streaming out of the box pblockquote strongProcessing time strong refers to the system time of the machine that is executing the respective operation strongIngestion time strong is the time that events enter Flink blockquotepThe two processing time and ingestion time are of my concern think know how to achieve processing time but am not sure about ingestion time or perhaps wrong and it the opposite ppHow to achieve ingestion time in Spark Structured Streaming and later lVenkanna That the option that think is only available for socket streaming data source Does this mean that different data sources use different ways to give the event time It looks so,1,Why does Complete output mode require aggregation apache spark spark structured streaming pI work with the latest Structured Streaming in Apache Spark and got the following exception pblockquote porg apache spark sql AnalysisException Complete output mode not supported when there are no streaming aggregations on streaming DataFrames Datasets blockquotepWhy does Complete output mode require streaming aggregation What would happen if Spark allowed Complete output mode with no aggregations in streaming query ppre class lang scala prettyprint override codescala gt spark versionres0 String 0import org apache spark sql execution streaming MemoryStreamimport org apache spark sql SQLContextimplicit val sqlContext SQLContext spark sqlContextval source MemoryStream Int Int val ids source toDS toDF time id withColumn time time cast timestamp lt convert time column from Int to Timestamp dropDuplicates id withColumn time time cast long lt convert time column back from Timestamp to Intimport org apache spark sql streaming OutputMode Trigger import scala concurrent duration scala gt val ids writeStream format memory queryName dups outputMode OutputMode Complete lt memory sink supports checkpointing for Complete output mode only trigger Trigger ProcessingTime 30 seconds option checkpointLocation checkpoint dir lt use checkpointing to save state between restarts startorg apache spark sql AnalysisException Complete output mode not supported when there are no streaming aggregations on streaming DataFrames Datasets Project cast time 10 as bigint AS time 15L id Deduplicate id true Project cast time as timestamp AS time 10 id Project AS time AS id StreamingExecutionRelation MemoryStream at org apache spark sql catalyst analysis UnsupportedOperationChecker org apache spark sql catalyst analysis UnsupportedOperationChecker throwError UnsupportedOperationChecker scala 297 at org apache spark sql catalyst analysis UnsupportedOperationChecker checkForStreaming UnsupportedOperationChecker scala 115 at org apache spark sql streaming StreamingQueryManager createQuery StreamingQueryManager scala 232 at org apache spark sql streaming StreamingQueryManager startQuery StreamingQueryManager scala 278 at org apache spark sql streaming DataStreamWriter start DataStreamWriter scala 247 57 elided code pre Why does single structured query run multiple SQL queries per batch apache spark spark structured streaming pWhy does the following structured query run multiple SQL queries as can be seen in web UI SQL tab ppre class lang scala prettyprint override codeimport org apache spark sql streaming OutputMode Trigger import scala concurrent duration val rates spark readStream format rate option numPartitions load writeStream format console option truncate false option numRows 10 trigger Trigger ProcessingTime 10 seconds queryName rate console start code prep href https stack imgur com bXyET png rel nofollow noreferrer img src https stack imgur com bXyET png alt enter image description here How to achieve ingestion time apache spark spark structured streaming pI found the distinction between different notions of time in the Apache Flink documentation in href https ci apache org projects flink flink docs release dev event time html event time processing time ingestion time rel nofollow noreferrer Event Time Processing Time Ingestion Time pblockquote strongEvent time strong is the time that each individual event occurred on its producing device blockquotepAnd that what datasets come with and so is available in Spark Structured Streaming out of the box pblockquote strongProcessing time strong refers to the system time of the machine that is executing the respective operation strongIngestion time strong is the time that events enter Flink blockquotepThe two processing time and ingestion time are of my concern think know how to achieve processing time but am not sure about ingestion time or perhaps wrong and it the opposite ppHow to achieve ingestion time in Spark Structured Streaming and later,NULL 34342,126684,559374,NULL,NULL,NULL,0,NULL,NULL 34343,350044,891776,Notable Question Caucus Constituent Civic Duty Yearling,NULL,pHave you had look at href http pubs opengroup org onlinepubs 9699919799 functions getcwd html rel noreferrer codegetcwd code ppre code include lt unistd gt char getcwd char buf size size code prepSimple example ppre code include lt unistd gt include lt stdio gt include lt limits gt int main char cwd PATH MAX if getcwd cwd sizeof cwd NULL printf Current working dir cwd else perror getcwd error return return code pre would use PATH MAX from limits instead of magic number if 4KB on stack is not an issue,0,NULL,NULL 34344,508517,780037,Popular Question Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 34345,302922,1310487,NULL,NULL,NULL,0,NULL,NULL 34346,299915,562369,Teacher Supporter,NULL,NULL,0,NULL,NULL 34347,24451,1406711,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34348,3119,55223,Yearling Yearling Yearling Nice Question Notable Question Nice Question Famous Question Commentator Yearling,NULL,NULL,0,NULL,NULL 34349,1352528,504951,NULL,NULL,NULL,0,NULL,NULL 34350,38053,83286,NULL,NULL,NULL,0,NULL,NULL 34351,173383,475040,NULL,NULL,NULL,0,NULL,NULL 34352,734782,1294728,NULL,NULL,NULL,0,NULL,NULL 34353,436351,933210,NULL,NULL,NULL,0,NULL,NULL 34354,62362,732596,Announcer Necromancer Announcer Yearling Good Answer Good Question Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 34355,8940,264778,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 34356,1562271,1249526,NULL,NULL,NULL,0,NULL,NULL 34357,514895,1034883,NULL,NULL,NULL,0,NULL,NULL 34358,164027,70871,Notable Question Popular Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 34359,2527596,1200393,NULL,NULL,NULL,0,NULL,NULL 34360,1062098,198440,NULL,NULL,NULL,0,NULL,NULL 34361,55348,960302,NULL,NULL,NULL,0,NULL,NULL 34362,814641,289792,Editor,NULL,NULL,0,NULL,NULL 34363,505756,1530303,NULL,NULL,NULL,0,NULL,NULL 34364,153702,219721,Yearling,NULL,NULL,0,NULL,NULL 34365,141250,1448170,NULL,NULL,NULL,0,NULL,NULL 34366,192459,1448170,NULL,NULL,NULL,0,NULL,NULL 34367,281462,1288880,Notable Question Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 34368,21724,1007773,NULL,NULL,NULL,0,NULL,NULL 34369,409535,223520,Notable Question Popular Question Yearling Nice Question Famous Question Notable Question Notable Question Famous Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Yearling Notable Question Custodian Custodian Informed Custodian Famous Question Good Question Popular Question Nice Question Good Question Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 34370,952744,429596,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34371,145401,1433288,NULL,NULL,NULL,0,NULL,NULL 34372,206385,1259082,NULL,NULL,NULL,0,NULL,NULL 34373,545438,1085636,NULL,NULL,NULL,0,NULL,NULL 34374,123003,863243,NULL,NULL,NULL,0,NULL,NULL 34375,888640,1409111,NULL,NULL,NULL,0,NULL,NULL 34376,88176,1502541,Informed Teacher Autobiographer Commentator Citizen Patrol Suffrage Vox Populi Critic Civic Duty Famous Question Popular Question,NULL,NULL,0,NULL,NULL 34377,1447424,1502541,Informed Teacher Autobiographer Commentator Citizen Patrol Suffrage Vox Populi Critic Civic Duty Famous Question Popular Question,NULL,NULL,0,NULL,NULL 34378,7628,417351,Famous Question,NULL,NULL,0,NULL,NULL 34379,330861,277668,Yearling Notable Question Notable Question Nice Answer Enlightened Yearling Popular Question Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34380,43237,1075083,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34381,284049,1187895,NULL,NULL,NULL,0,NULL,NULL 34382,628257,1056634,Notable Question Popular Question Famous Question Nice Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 34383,692405,209817,NULL,NULL,NULL,0,NULL,NULL 34384,9097,409473,Good Answer Yearling Guru Great Answer Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 34385,349246,1018023,Necromancer,NULL,NULL,0,NULL,NULL 34386,776378,151160,Commentator Yearling,NULL,NULL,0,NULL,NULL 34387,142911,881629,Editor Student Teacher Scholar Necromancer Supporter,NULL,NULL,0,NULL,NULL 34388,2206463,1245485,NULL,NULL,NULL,0,NULL,NULL 34389,46870,68255,Yearling Nice Answer Nice Question Yearling Good Answer Necromancer Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 34390,1857162,535588,NULL,NULL,NULL,0,NULL,NULL 34391,11925,177414,Popular Question Famous Question Notable Question Yearling Notable Question Nice Answer Good Question Notable Question Good Question Yearling Nice Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 34392,121377,715680,Editor Nice Answer Yearling Popular Question Critic Announcer,NULL,NULL,0,NULL,NULL 34393,8590776,1137777,NULL,NULL,NULL,0,NULL,NULL 34394,277778,410416,NULL,NULL,NULL,0,NULL,NULL 34395,194321,29833,Civic Duty Popular Question Necromancer Notable Question Good Answer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 34396,475601,1010970,NULL,NULL,NULL,0,NULL,NULL 34397,216099,257796,Popular Question Yearling Notable Question Famous Question Good Question Famous Question Popular Question Popular Question Notable Question Civic Duty Notable Question Popular Question Notable Question Nice Answer Good Answer Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Notable Question Popular Question Notable Question Yearling Nice Question Nice Question,NULL,NULL,0,NULL,NULL 34398,209300,901889,Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34399,410613,1274714,Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 34400,34043,478784,NULL,NULL,,0,, 34401,1741,308349,Nice Answer,NULL,NULL,0,NULL,NULL 34402,290592,1089471,NULL,NULL,NULL,0,NULL,NULL 34403,6506,58347,Yearling Nice Answer Necromancer Nice Answer Necromancer Yearling Good Answer Nice Answer Yearling Nice Answer Good Answer Organizer html Custodian Custodian Custodian,NULL,pThe solution to this is actually very easy but not at emall em obvious You have to trigger something called block formatting context BFC which interacts with floats in specific way ppJust take that second div remove the float and give it codeoverflow hidden code instead Any overflow value other than visible makes the block it set on become BFC BFCs don allow descendant floats to escape them nor do they allow sibling ancestor floats to intrude into them The net effect here is that the floated div will do it thing then the second div will be an ordinary block taking up all available width emexcept that occupied by the float em ppThis should work across all current browsers though you may have to trigger hasLayout in IE6 and can recall pp strongDemos strong pulliFixed Left href http jsfiddle net A8zLY rel noreferrer http jsfiddle net A8zLY liliFixed Right href http jsfiddle net A8zLY rel noreferrer http jsfiddle net A8zLY li ul Yes use Flexbox Floats were never meant for this sort of layout they were just required hack before Flexbox and now Grid existed to do it correctly,0,NULL,NULL 34404,1403638,700382,NULL,NULL,NULL,0,NULL,NULL 34405,4600473,700382,NULL,NULL,NULL,0,NULL,NULL 34406,939595,1082662,Nice Question Notable Question Supporter Teacher,NULL,NULL,0,NULL,NULL 34407,135504,708929,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34408,70074,1196479,NULL,NULL,NULL,0,NULL,NULL 34409,1306478,1563850,Nice Answer Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 34410,85388,188810,Nice Answer Caucus Yearling Constituent Custodian Popular Question Critic,NULL,NULL,0,NULL,NULL 34411,145766,650834,NULL,NULL,NULL,0,NULL,NULL 34412,555647,955583,NULL,NULL,NULL,0,NULL,NULL 34413,961357,1102357,NULL,NULL,NULL,0,NULL,NULL 34414,129670,1102357,NULL,NULL,NULL,0,NULL,NULL 34415,74104,1247306,NULL,NULL,NULL,0,NULL,NULL 34416,313936,1279201,NULL,NULL,NULL,0,NULL,NULL 34417,284356,714179,Yearling Stellar Question Yearling Notable Question Explainer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 34418,944534,1109969,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 34419,867983,1106646,NULL,NULL,NULL,0,NULL,NULL 34420,319765,1106646,NULL,NULL,NULL,0,NULL,NULL 34421,47708,215708,Caucus Yearling Good Answer Excavator Nice Answer Nice Answer Yearling Popular Question Yearling,NULL,pMy list of changes after moving to Rails polliPlace codelib code dir into codeapp code because all code inside app is emautoloaded em in dev and emeager loaded em in prod and most importantly is emautoreloaded em in development so you don have to restart server each time you make changes liliRemove any coderequire code statements pointing to your own classes inside codelib code because they all are autoloaded anyway if their file dir naming are correct and if you leave coderequire code statements it can break autoreloading More info href http guides rubyonrails org autoloading and reloading constants html rel noreferrer here liliSet codeconfig eager load true code in all environments to see code loading problems eagerly in dev liliUse codeRails application eager load code before playing with threads to avoid circular dependency errors lili pIf you have any ruby rails extensions then leave that code inside old codelib code directory and load them manually from initializer This will ensure that extensions are loaded before your further logic that can depend on it ppre code config initializers extensions rbDir Rails root lib ruby ext rb each file require file Dir Rails root lib rails ext rb each file require file code pre li ol It worth noting that you need to stop spring moved everything to app lib and then wasted little time wondering why still couldn use my classes from the console spring stop ftw,0,NULL,NULL 34422,547986,1355383,NULL,NULL,NULL,0,NULL,NULL 34423,54900,956286,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34424,7225,371237,Good Answer Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 34425,66137,217866,Quorum Necromancer Popular Question Nice Answer Necromancer Great Answer Nice Answer Great Answer Necromancer Nice Answer Nice Answer Announcer Self-Learner Yearling Good Answer Good Answer Announcer Announcer Necromancer Yearling Yearling,NULL,pIf you want to delete all local branches that are already merged into master you can use the following command ppre codegit branch merged master grep master xargs git branch code prep href http devblog springest com script to remove old git branches rel noreferrer More info seeing as you asked so nicely git branch merged master lists branches that are merged into master then the middle grep part excludes master itself we don want to delete master and the last xargs part executes git branch delete branch on each of the results Or you could just read the More info link provided in the answer,0,NULL,NULL 34426,3673541,1457463,NULL,NULL,NULL,0,NULL,NULL 34427,153727,1111010,Revival,NULL,NULL,0,NULL,NULL 34428,177599,983133,NULL,NULL,NULL,0,NULL,NULL 34429,2115860,983133,NULL,NULL,NULL,0,NULL,NULL 34430,1020,1133390,NULL,NULL,NULL,0,NULL,NULL 34431,8438814,1500959,Good Answer Yearling Notable Question Necromancer Populist Yearling Good Question Yearling Nice Answer Great Answer,NULL,pSee href https developer chrome com multidevice user agent chrome for ios user agent rel noreferrer https developer chrome com multidevice user agent chrome for ios user agent the user agent strings for Safari on iOS and for Chrome on iOS are inconveniently similar pp emChrome em pp codeMozilla iPhone CPU iPhone OS like Mac OS en AppleWebKit 534 46 KHTML like Gecko CriOS 19 1084 60 Mobile 9B206 Safari 7534 48 code pp emSafari em pp codeMozilla iPhone CPU like Mac OS en AppleWebKit 420 KHTML like Gecko Version Mobile 1A543 Safari 419 code ppLooks like the best approach here is to first of all check for iOS as other answers have suggested and then filter on the stuff that makes the Safari UA unique which would suggest is best accomplished with is AppleWebKit and is not CriOS ppre codevar ua window navigator userAgent var iOS ua match iPad ua match iPhone var webkit ua match WebKit var iOSSafari iOS amp amp webkit amp amp ua match CriOS code pre no reason Just an arbitrary choice for an example where performance isn really consideration,0,NULL,NULL 34432,781980,1500959,Good Answer Yearling Notable Question Necromancer Populist Yearling Good Question Yearling Nice Answer Great Answer,NULL,pSee href https developer chrome com multidevice user agent chrome for ios user agent rel noreferrer https developer chrome com multidevice user agent chrome for ios user agent the user agent strings for Safari on iOS and for Chrome on iOS are inconveniently similar pp emChrome em pp codeMozilla iPhone CPU iPhone OS like Mac OS en AppleWebKit 534 46 KHTML like Gecko CriOS 19 1084 60 Mobile 9B206 Safari 7534 48 code pp emSafari em pp codeMozilla iPhone CPU like Mac OS en AppleWebKit 420 KHTML like Gecko Version Mobile 1A543 Safari 419 code ppLooks like the best approach here is to first of all check for iOS as other answers have suggested and then filter on the stuff that makes the Safari UA unique which would suggest is best accomplished with is AppleWebKit and is not CriOS ppre codevar ua window navigator userAgent var iOS ua match iPad ua match iPhone var webkit ua match WebKit var iOSSafari iOS amp amp webkit amp amp ua match CriOS code pre no reason Just an arbitrary choice for an example where performance isn really consideration,0,NULL,NULL 34433,352230,1305232,NULL,NULL,NULL,0,NULL,NULL 34434,2316533,500058,NULL,NULL,NULL,0,NULL,NULL 34435,471845,744562,Yearling Popular Question Revival Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34436,429713,1457440,NULL,NULL,NULL,0,NULL,NULL 34437,268061,592644,NULL,NULL,NULL,0,NULL,NULL 34438,11106,940901,Popular Question Supporter,NULL,NULL,0,NULL,NULL 34439,94692,506430,Nice Question Nice Question,NULL,NULL,0,NULL,NULL 34440,1396419,506430,Nice Question Nice Question,NULL,NULL,0,NULL,NULL 34441,81344,670188,Revival,NULL,NULL,0,NULL,NULL 34442,899170,1325043,NULL,NULL,NULL,0,NULL,NULL 34443,2433039,1009781,Notable Question Nice Question Caucus Notable Question Notable Question Notable Question Famous Question Caucus Nice Question,NULL,NULL,0,NULL,NULL 34444,102574,1436545,NULL,NULL,NULL,0,NULL,NULL 34445,93143,877430,NULL,NULL,NULL,0,NULL,NULL 34446,81567,24998,Electorate python Nice Answer Enlightened javascript Yearling Good Answer Caucus Constituent Guru Announcer Custodian Custodian Good Question Announcer Necromancer Nice Answer reactjs Yearling Documentation User Census Caucus Constituent Great Answer Nice Answer Enlightened Nice Answer Great Answer Yearling,NULL,NULL,1,NULL,What is the short cut key to jump to declaration in Emacs emacs pIn visual studio it easier to push F12 button to jump to declaration of function or variable when editing code ppIs there short cut key in emacs to do that pAs others have said there is no built in universal solution for this in emacs That said after having this functionality in IntelliJ wanted it in emacs too so made href https github com jacktasia dumb jump rel noreferrer Dumb Jump ppRight now href https github com jacktasia dumb jump rel noreferrer Dumb Jump has basic support for pulliJavaScript liliEmacs Lisp liliPython liliGo liliPHP liliRuby liliFaust liliand more over 20 now li ulpIt available via href http melpa org dumb jump rel noreferrer MELPA and is actively being developed 34447,582787,645663,Critic Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34448,105869,761802,NULL,NULL,NULL,0,NULL,NULL 34449,64304,894381,Yearling Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 34450,968089,794253,Critic Informed Caucus Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 34451,750959,1152874,NULL,NULL,NULL,0,NULL,NULL 34452,94924,86601,Popular Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 34453,3596501,1077246,NULL,NULL,NULL,0,NULL,NULL 34454,952268,870185,NULL,NULL,NULL,0,NULL,NULL 34455,1149845,513812,NULL,NULL,NULL,0,NULL,NULL 34456,54366,602588,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 34457,234834,47646,Good Answer Popular Question Yearling Notable Question Popular Question Inquisitive Notable Question Guru,NULL,NULL,0,NULL,NULL 34458,1791177,532134,Popular Question,NULL,NULL,0,NULL,NULL 34459,188213,952095,NULL,NULL,NULL,0,NULL,NULL 34460,98096,407737,NULL,NULL,NULL,0,NULL,NULL 34461,126269,1228060,Popular Question,NULL,NULL,0,NULL,NULL 34462,2413725,457538,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 34463,34479,457538,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 34464,861344,859434,Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Good Question Good Question Altruist Famous Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Nice Question Promoter Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Notable Question Notable Question Custodian Good Question Yearling Popular Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 34465,54163,1248530,NULL,NULL,NULL,0,NULL,NULL 34466,12557,204305,Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 34467,211354,1353903,NULL,NULL,NULL,0,NULL,NULL 34468,200954,949376,Supporter Teacher Informed Editor Commentator Yearling Critic Yearling Enthusiast Revival Yearling,NULL,NULL,0,NULL,NULL 34469,615042,904763,NULL,NULL,NULL,0,NULL,NULL 34470,430645,152953,NULL,NULL,NULL,0,NULL,NULL 34471,463635,8659,Civic Duty Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 34472,78532,936101,NULL,NULL,NULL,0,NULL,NULL 34473,1558504,1523950,Popular Question,NULL,NULL,0,NULL,NULL 34474,26978,133701,Notable Question Popular Question Yearling Nice Question Yearling Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34475,311706,617082,Custodian Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 34476,126158,144433,Caucus Custodian Custodian Custodian Commentator Civic Duty Guru,NULL,NULL,0,NULL,NULL 34477,1242591,403508,NULL,NULL,NULL,0,NULL,NULL 34478,2557440,847454,NULL,NULL,NULL,0,NULL,NULL 34479,512337,847454,NULL,NULL,NULL,0,NULL,NULL 34480,1031974,1420318,NULL,NULL,NULL,0,NULL,NULL 34481,1210669,573502,NULL,NULL,NULL,0,NULL,NULL 34482,32758,84359,Famous Question Notable Question Yearling Nice Question Popular Question Great Question Yearling Yearling Famous Question Favorite Question Stellar Question,NULL,NULL,0,NULL,NULL 34483,893498,1239057,NULL,NULL,NULL,0,NULL,NULL 34484,126602,339203,NULL,NULL,NULL,0,NULL,NULL 34485,10526683,1330346,Necromancer,NULL,NULL,0,NULL,NULL 34486,162232,102493,Popular Question Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34487,130452,740597,Favorite Question Nice Answer Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 34488,432833,1341342,NULL,NULL,NULL,0,NULL,NULL 34489,46672,393075,Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34490,43055,370791,NULL,NULL,NULL,0,NULL,NULL 34491,41011,3340,Notable Question Notable Question Notable Question Famous Question Yearling Nice Answer Good Answer Famous Question Popular Question Nice Question Notable Question Notable Question Famous Question Yearling Nice Answer Nice Answer Enlightened Famous Question Good Answer Census Nice Answer Enlightened Announcer Yearling Great Answer Nice Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 34492,458317,1076894,NULL,NULL,NULL,0,NULL,NULL 34493,365357,1058611,NULL,NULL,NULL,0,NULL,NULL 34494,33704,813198,Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 34495,139229,541059,Necromancer Notable Question Good Answer Great Answer Notable Question Famous Question Famous Question Revival Yearling Popular Question Nice Question Good Answer Self-Learner Yearling Famous Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 34496,3765585,282465,NULL,NULL,NULL,0,NULL,NULL 34497,91816,282465,NULL,NULL,NULL,0,NULL,NULL 34498,513470,709339,Popular Question,NULL,NULL,0,NULL,NULL 34499,784031,1562740,NULL,NULL,NULL,0,NULL,NULL 34500,185112,1172485,NULL,NULL,NULL,0,NULL,NULL 34501,212988,195610,NULL,NULL,NULL,0,NULL,NULL 34502,2085,1236543,Student Popular Question,NULL,,0,, 34503,7569,334400,NULL,NULL,NULL,0,NULL,NULL 34504,2306845,812360,Notable Question,NULL,NULL,0,NULL,NULL 34505,25790,812360,Notable Question,NULL,NULL,0,NULL,NULL 34506,411285,1277183,NULL,NULL,NULL,0,NULL,NULL 34507,6602,18184,Yearling Populist Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 34508,168953,170094,NULL,NULL,NULL,0,NULL,NULL 34509,514615,414524,Necromancer Yearling Good Answer Revival Necromancer Yearling Nice Answer Popular Question Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 34510,540121,1404018,NULL,NULL,NULL,0,NULL,NULL 34511,9088,572908,Citizen Patrol Autobiographer Informed,NULL,NULL,0,NULL,NULL 34512,6760344,572908,Citizen Patrol Autobiographer Informed,NULL,NULL,0,NULL,NULL 34513,149700,324086,Yearling,NULL,NULL,0,NULL,NULL 34514,213768,446787,Nice Question Notable Question Famous Question Not a Robot Nice Question Yearling,NULL,NULL,0,NULL,NULL 34515,573528,1302133,NULL,NULL,NULL,0,NULL,NULL 34516,36487,288672,Yearling Good Question Yearling Good Answer Nice Answer Enlightened Popular Question Popular Question python Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 34517,81283,194515,Famous Question Notable Question Popular Question Good Answer Popular Question Autobiographer Necromancer Yearling Famous Question Popular Question Famous Question Popular Question Good Question Yearling Nice Answer Revival Necromancer Favorite Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 34518,25382,336473,Notable Question,NULL,NULL,0,NULL,NULL 34519,14631,187516,Informed Good Answer,NULL,NULL,0,NULL,NULL 34520,7798033,1167378,NULL,NULL,NULL,0,NULL,NULL 34521,770834,1282000,Popular Question Informed,NULL,NULL,0,NULL,NULL 34522,466397,1344482,NULL,NULL,NULL,0,NULL,NULL 34523,21436,1367253,Supporter,NULL,NULL,0,NULL,NULL 34524,8777720,61108,Yearling,NULL,NULL,0,NULL,NULL 34525,155778,61108,Yearling,NULL,NULL,0,NULL,NULL 34526,1735749,939927,Announcer,NULL,NULL,0,NULL,NULL 34527,98484,939927,Announcer,NULL,NULL,0,NULL,NULL 34528,186236,901649,Curious Commentator,NULL,NULL,0,NULL,NULL 34529,2958143,542242,NULL,NULL,NULL,0,NULL,NULL 34530,39697,457674,Notable Question Necromancer Critic,NULL,NULL,0,NULL,NULL 34531,116283,304735,Yearling Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34532,1551635,408199,Nice Answer Good Answer Nice Answer Yearling Enlightened Nice Answer Good Answer Nice Answer Enlightened Yearling Scholar Guru Yearling Guru,NULL,NULL,0,NULL,NULL 34533,378496,110358,Notable Question Famous Question Good Question Inquisitive Famous Question Favorite Question Yearling Nice Question Notable Question Favorite Question Famous Question Nice Question Notable Question Popular Question Nice Question Good Answer Guru Civic Duty Booster Yearling Good Question Notable Question Popular Question Popular Question Famous Question Popular Question Great Question Necromancer Census Nice Answer Yearling Notable Question Nice Question Popular Question Notable Question Nice Answer Popular Question Notable Question Popular Question Famous Question,NULL,pThe href http expressjs com api html app listen rel noreferrer Express API doc spells this out pretty clearly ppAdditionally href https stackoverflow com 35053638 635134 this answer gives the steps to create self signed certificate ppI have added some comments and snippet from the href http nodejs org api https html https https createserver options requestlistener rel noreferrer Node js HTTPS documentation ppre codevar express require express var https require https var http require http var fs require fs This line is from the Node js HTTPS documentation var options key fs readFileSync test fixtures keys agent2 key pem cert fs readFileSync test fixtures keys agent2 cert cert Create service the app object is just callback var app express Create an HTTP service http createServer app listen 80 Create an HTTPS service identical to the HTTP service https createServer options app listen 443 code pre you have enough reputation to edit the answer yourself Just click the word edit to the bottom left of the answer,0,NULL,NULL 34534,328768,847677,Famous Question,NULL,NULL,0,NULL,NULL 34535,1471,996389,NULL,NULL,NULL,0,NULL,NULL 34536,540339,1526322,Notable Question Critic Popular Question Yearling Caucus Suffrage Vox Populi Constituent Revival,NULL,NULL,0,NULL,NULL 34537,1039931,1213746,Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 34538,138844,1409080,NULL,NULL,NULL,0,NULL,NULL 34539,157739,35697,Famous Question Yearling,NULL,NULL,0,NULL,NULL 34540,2882,220819,Great Answer Guru Good Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Guru Nice Answer Nice Answer Guru Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Guru Nice Answer Enlightened Great Answer Good Answer Guru Great Answer Guru Good Answer Good Answer Guru Nice Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Guru Nice Answer Enlightened Good Question Guru Nice Answer Enlightened Guru Good Answer Guru Nice Answer Enlightened Guru Guru Nice Answer Enlightened Great Answer Guru Nice Answer Nice Answer Enlightened Guru Yearling Good Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 34541,417909,616398,Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Popular Question Popular Question Custodian Yearling Notable Question Nice Answer Good Question Good Question Good Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 34542,237304,1371329,Popular Question Civic Duty Revival Fanatic Deputy Custodian Custodian Notable Question Quorum Reviewer Proofreader Explainer Yearling Excavator Steward java Marshal Suffrage Vox Populi Cleanup Nice Answer Enlightened Necromancer Self-Learner Popular Question Caucus Popular Question Custodian Custodian Yearling Good Answer Caucus Notable Question Notable Question Nice Answer design-patterns Caucus Necromancer Reviewer Electorate Yearling Steward Nice Answer Notable Question Nice Answer Enlightened Synonymizer Necromancer,NULL,Does finally block always get executed in Java java return try catch finally pConsidering this code can be emabsolutely sure em that the codefinally code block always executes no matter what codesomething code is ppre codetry something return success catch Exception return failure finally System out println don know if this will get printed out code pre finalizer finally finalizer the finalize method Differences between Abstract Factory Pattern and Factory Method factory pattern factory method design patterns abstract factory pI know there are many posts out there about the differences between these two patterns but there are few things that cannot find ppFrom what have been reading see that the factory method pattern allows you to define how to create single concrete product but hiding the implementation from the client as they will see generic product My first question is about the abstract factory Is its role to allow you to create families of concrete objects in that can depend on what specific factory you use rather than just single concrete object Does the abstract factory only return one very large object or many objects depending on what methods you call ppMy final two questions are about single quote that cannot fully understand that have seen in numerous places pblockquote pOne difference between the two is that with the Abstract Factory pattern class delegates the responsibility of object instantiation to another object via composition whereas the Factory Method pattern uses inheritance and relies on subclass to handle the desired object instantiation blockquotepMy understanding is that the factory method pattern has Creator interface that will make the ConcreteCreator be in charge of knowing which ConcreteProduct to instantiate Is this what it means by using inheritance to handle object instantiation ppNow with regards to that quote how exactly does the Abstract Factory pattern delegate the responsibility of object instantiation to another object via composition What does this mean It looks like the Abstract Factory pattern also uses inheritance to do the construction process as well in my eyes but then again am still learning about these patterns ppAny help especially with the last question would be greatly appreciated the answers in that thread are awful,0,NULL,NULL 34543,394658,212475,NULL,NULL,NULL,0,NULL,NULL 34544,213868,608362,Necromancer Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 34545,504916,1496919,NULL,NULL,NULL,0,NULL,NULL 34546,319360,1496919,NULL,NULL,NULL,0,NULL,NULL 34547,315301,1130234,Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 34548,5101,485807,NULL,NULL,NULL,0,NULL,NULL 34549,441282,1110667,Supporter Necromancer,NULL,NULL,0,NULL,NULL 34550,43318,184379,Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Nice Answer Famous Question Popular Question Notable Question Revival Famous Question Nice Answer Notable Question Yearling Famous Question Nice Question Popular Question Popular Question Necromancer Notable Question Popular Question Nice Question Guru Popular Question Good Answer Good Answer symfony Popular Question Good Answer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Popular Question Famous Question Popular Question Notable Question Guru Notable Question Popular Question Yearling Necromancer Notable Question Nice Answer Notable Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Great Question Necromancer Nice Answer Enlightened Popular Question Nice Answer Popular Question Notable Question Yearling Good Question Popular Question Favorite Question Notable Question Revival,NULL,NULL,0,NULL,NULL 34551,542607,292325,Autobiographer Editor Informed Yearling Revival Supporter,NULL,NULL,0,NULL,NULL 34552,77545,374865,Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34553,1071373,1525682,Guru Yearling Census Necromancer Curious Yearling Census Citizen Patrol Custodian Yearling Custodian Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 34554,537268,569577,NULL,NULL,NULL,0,NULL,NULL 34555,84391,245193,NULL,NULL,NULL,0,NULL,NULL 34556,394416,955861,Yearling Caucus,NULL,NULL,0,NULL,NULL 34557,23794,11544,Nice Answer Yearling Notable Question Excavator Favorite Question,NULL,NULL,0,NULL,NULL 34558,77170,299194,Notable Question Notable Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 34559,428092,599240,Revival Yearling Famous Question,NULL,NULL,0,NULL,NULL 34560,807085,225596,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 34561,1513505,1154979,Informed Autobiographer Editor Scholar Self-Learner Organizer Critic Yearling Yearling Commentator Tag Editor Popular Question Revival Notable Question Necromancer Student Yearling Nice Answer Nice Answer Famous Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34562,249097,1087346,NULL,NULL,,0,, 34563,265304,501424,NULL,NULL,NULL,0,NULL,NULL 34564,76540,835542,Editor Supporter Necromancer Revival Nice Answer Critic,NULL,NULL,0,NULL,NULL 34565,288191,577056,NULL,NULL,NULL,0,NULL,NULL 34566,592641,556048,Famous Question Good Question Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 34567,14349,401912,Nice Question Popular Question Critic,NULL,NULL,0,NULL,NULL 34568,218726,220369,NULL,NULL,NULL,0,NULL,NULL 34569,309131,1321483,NULL,NULL,NULL,0,NULL,NULL 34570,9761,100839,Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 34571,1720025,1490012,NULL,NULL,NULL,0,NULL,NULL 34572,422844,583470,NULL,NULL,NULL,0,NULL,NULL 34573,86041,1330807,NULL,NULL,NULL,0,NULL,NULL 34574,156253,203845,NULL,NULL,NULL,0,NULL,NULL 34575,181122,670567,Critic Commentator Informed Editor Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34576,235437,796219,Good Question Yearling Notable Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 34577,1353272,796219,Good Question Yearling Notable Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 34578,145301,696138,NULL,NULL,NULL,0,NULL,NULL 34579,680156,843636,NULL,NULL,NULL,0,NULL,NULL 34580,358054,656603,Supporter Necromancer,NULL,NULL,0,NULL,NULL 34581,3011538,127316,Yearling Necromancer Enthusiast Caucus Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34582,42171,127316,Yearling Necromancer Enthusiast Caucus Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34583,1003361,1265334,NULL,NULL,NULL,0,NULL,NULL 34584,763499,1212744,NULL,NULL,NULL,0,NULL,NULL 34585,309198,174583,NULL,NULL,NULL,0,NULL,NULL 34586,407934,366952,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34587,101119,487004,NULL,NULL,NULL,0,NULL,NULL 34588,861091,710954,Notable Question Famous Question Nice Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 34589,743759,1445409,NULL,NULL,NULL,0,NULL,NULL 34590,101173,27122,Nice Answer Tumbleweed Popular Question Popular Question Nice Question Favorite Question Popular Question Nice Question Yearling Notable Question Good Question Popular Question Notable Question Famous Question Great Question Notable Question Popular Question Yearling Famous Question Notable Question Nice Question Notable Question Popular Question Popular Question Good Answer Favorite Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 34591,14955,123395,Good Answer Famous Question Necromancer Yearling Nice Answer Nice Answer Yearling Caucus Revival Good Answer Announcer Announcer Revival Nice Answer Good Answer Nice Answer Yearling Announcer Great Answer javascript,NULL,NULL,0,NULL,NULL 34592,376530,1348841,NULL,NULL,NULL,0,NULL,NULL 34593,248571,1471211,NULL,NULL,NULL,0,NULL,NULL 34594,575472,420648,Teacher,NULL,NULL,0,NULL,NULL 34595,811625,251829,NULL,NULL,NULL,0,NULL,NULL 34596,187411,1122627,Teacher Supporter,NULL,NULL,0,NULL,NULL 34597,431872,250793,Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 34598,447611,1355917,NULL,NULL,NULL,0,NULL,NULL 34599,920480,404237,NULL,NULL,NULL,0,NULL,NULL 34600,25962,59018,Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 34601,7498,129912,Nice Answer Nice Answer Good Answer Yearling Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 34602,65394,631187,Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Yearling Documentation User Autobiographer Yearling Announcer ruby-on-rails-3,NULL,NULL,0,NULL,NULL 34603,39115,897396,NULL,NULL,NULL,0,NULL,NULL 34604,8465301,1512173,Informed,NULL,NULL,0,NULL,NULL 34605,32878,265463,Good Answer Popular Question Yearling Nice Answer Revival Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34606,8428,1337344,Yearling Nice Answer Yearling Good Answer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34607,297431,903895,NULL,NULL,NULL,0,NULL,NULL 34608,135037,1073053,Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 34609,3720302,1157728,Nice Answer Critic,NULL,NULL,0,NULL,NULL 34610,127576,187359,Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 34611,1032790,1173629,Populist Good Answer Yearling Yearling Enthusiast Custodian Self-Learner,NULL,NULL,0,NULL,NULL 34612,827314,1173629,Populist Good Answer Yearling Yearling Enthusiast Custodian Self-Learner,NULL,NULL,0,NULL,NULL 34613,304510,313506,NULL,NULL,NULL,0,NULL,NULL 34614,146808,161114,Tumbleweed Yearling Famous Question Popular Question Explainer Nice Question Caucus Constituent Necromancer Announcer Yearling,NULL,pThe answer by swill is not how it is done properly If you want unattended scripted dpkg configuration of packages then you want to use the debconf preseeding mechanism ppIn your case this means that you have to do the following pulli pset the following environment variables to avoid that debconf tries to ask the user any questions ppre codeexport DEBIAN FRONTEND noninteractive DEBCONF NONINTERACTIVE SEEN true code pre lili pthen preseed debconf with the following preseed txt file or whatever other settings you desire ppre codetzdata tzdata Areas select Europetzdata tzdata Zones Europe select Berlin code pre lili pyou set the above preseed file by running ppre codedebconf set selections your preseed txt code pre lili pyou can now either install tzdata if it is not installed yet via codeapt code or run codedpkg reconfigure code In the end tzdata will be set up according to what you specified in your debconf preseed file li ulpRemember that you can automate lots more using debconf preseeding For example in my preseeds always set ppre codelocales locales locales to be generated multiselect en US UTF UTF 8locales locales default environment locale select en US UTF code prepYou can always inspect the debconf settings of your current system by running codedebconf get selections code The output should give you some idea of how much of the system configuration you are able to automate using debconf preseeding Pinkus you re right it necessary to remove etc localtime timezone when tzdata is already installed See http stackoverflow com 39275359 161114,1,NULL,Non interactive method for dpkg reconfigure tzdata ubuntu automation timezone pWhen first setup an Ubuntu server make sure codeaptitude install tzdata code then codedpkg reconfigure tzdata code so that set my timezone properly ppI am trying to automate my server setup with script and noticed this piece sort of throws wrench into it being automatic as it requires an interactive session with user intervention ppIs there way to use dpkg reconfigure without it being interactive pAdvancing href https stackoverflow com 20693661 161114 josch answer set the debconf db values and strongremove code etc localtime timezone code strong before running codedpkg reconfigure code ppre code echo tzdata tzdata Areas select Europe gt some file txt echo tzdata tzdata Zones Europe select Berlin gt gt some file txt sudo debconf set selections some file txt sudo rm etc timezone sudo rm etc localtime sudo dpkg reconfigure noninteractive tzdataCurrent default time zone Europe Berlin Local time is now Thu Sep 17 13 16 CEST 2016 Universal Time is now Thu Sep 15 13 16 UTC 2016 code prepThis method is known to work on pulliUbunty Trusty 14 04 LTS li ul 34615,511137,682459,NULL,NULL,NULL,0,NULL,NULL 34616,3655414,682459,NULL,NULL,NULL,0,NULL,NULL 34617,461549,800644,NULL,NULL,NULL,0,NULL,NULL 34618,1522917,1226014,NULL,NULL,NULL,0,NULL,NULL 34619,9634993,860474,NULL,NULL,NULL,0,NULL,NULL 34620,231164,681635,Supporter,NULL,NULL,0,NULL,NULL 34621,35650,906234,NULL,NULL,NULL,0,NULL,NULL 34622,105508,433447,NULL,NULL,NULL,0,NULL,NULL 34623,262095,165215,Nice Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Yearling Popular Question Popular Question Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 34624,627821,1002498,NULL,NULL,NULL,0,NULL,NULL 34625,341682,310511,NULL,NULL,NULL,0,NULL,NULL 34626,205441,403891,Editor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34627,1292332,1161213,NULL,NULL,NULL,0,NULL,NULL 34628,1132321,1012676,NULL,NULL,NULL,0,NULL,NULL 34629,1825024,1012676,NULL,NULL,NULL,0,NULL,NULL 34630,82816,1432023,NULL,NULL,NULL,0,NULL,NULL 34631,169143,977679,NULL,NULL,NULL,0,NULL,NULL 34632,107085,1301655,NULL,NULL,NULL,0,NULL,NULL 34633,549017,123108,Yearling Famous Question Guru Notable Question Popular Question Yearling Caucus Good Answer Great Answer Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 34634,16159,33205,Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 34635,45415,522354,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 34636,249047,369003,Popular Question,NULL,NULL,0,NULL,NULL 34637,3052432,1420810,Autobiographer Student Scholar Supporter,NULL,NULL,0,NULL,NULL 34638,464238,869606,Nice Question Notable Question Caucus Caucus Curious,NULL,NULL,0,NULL,NULL 34639,505823,1367847,NULL,NULL,NULL,0,NULL,NULL 34640,505824,1367847,NULL,NULL,NULL,0,NULL,NULL 34641,28759,580095,Necromancer,NULL,NULL,0,NULL,NULL 34642,872665,1391487,Yearling Revival Custodian Citizen Patrol Custodian Custodian Critic Informed Guru Yearling Yearling Documentation User Revival Yearling,NULL,NULL,0,NULL,NULL 34643,1513830,1204173,NULL,NULL,NULL,0,NULL,NULL 34644,51613,969863,NULL,NULL,NULL,0,NULL,NULL 34645,171563,267306,NULL,NULL,NULL,0,NULL,NULL 34646,918399,1469348,NULL,NULL,NULL,0,NULL,NULL 34647,433646,668356,Critic Yearling,NULL,NULL,0,NULL,NULL 34648,373203,220565,NULL,NULL,NULL,0,NULL,NULL 34649,469385,410367,Revival Nice Question Notable Question Yearling Popular Question Necromancer Revival Nice Answer Notable Question Announcer,NULL,NULL,0,NULL,NULL 34650,37600,1559144,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 34651,123780,763049,NULL,NULL,NULL,0,NULL,NULL 34652,161063,849689,NULL,NULL,NULL,0,NULL,NULL 34653,200688,424487,NULL,NULL,NULL,0,NULL,NULL 34654,50417,1552378,NULL,NULL,NULL,0,NULL,NULL 34655,3491299,1552378,NULL,NULL,NULL,0,NULL,NULL 34656,33417,124515,Good Answer Yearling Good Answer Good Answer Guru Yearling c# Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34657,396145,570414,Famous Question,NULL,NULL,0,NULL,NULL 34658,6933758,570414,Famous Question,NULL,NULL,0,NULL,NULL 34659,233810,707055,Student Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 34660,194474,670801,Census,NULL,NULL,0,NULL,NULL 34661,24391,190178,NULL,NULL,NULL,0,NULL,NULL 34662,214772,375510,Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Caucus Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Famous Question Famous Question Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 34663,593193,1154273,NULL,NULL,NULL,0,NULL,NULL 34664,895851,1219784,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34665,200222,33612,Nice Question Notable Question Nice Question Notable Question Popular Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 34666,312393,494871,NULL,NULL,NULL,0,NULL,NULL 34667,1554105,1255371,Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Informed Popular Question Notable Question Notable Question Popular Question Famous Question Promoter Famous Question,NULL,NULL,0,NULL,NULL 34668,114035,469513,Nice Answer Critic Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34669,2459079,469513,Nice Answer Critic Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34670,493089,568021,Popular Question Popular Question Tumbleweed Popular Question Famous Question Yearling Notable Question Popular Question Excavator Popular Question Popular Question Popular Question Caucus Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 34671,189968,70430,Nice Question Notable Question Yearling Famous Question Nice Answer Popular Question Nice Answer Nice Question Famous Question Popular Question Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 34672,493806,1514476,NULL,NULL,NULL,0,NULL,NULL 34673,99249,494983,Great Answer Yearling Nice Answer Nice Answer Nice Answer Yearling Notable Question Custodian Organizer Revival Yearling Nice Question,NULL,NULL,0,NULL,NULL 34674,5034289,1247434,NULL,NULL,NULL,0,NULL,NULL 34675,1825950,1247434,NULL,NULL,NULL,0,NULL,NULL 34676,906572,236523,Popular Question,NULL,NULL,0,NULL,NULL 34677,87039,243444,Yearling Editor Revival Revival Yearling Necromancer Necromancer Nice Answer Yearling Student Critic Good Answer Nice Answer Yearling Yearling Necromancer Necromancer Necromancer Yearling Custodian Guru Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34678,33467,172350,Nice Question Good Question Popular Question Great Question Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Good Answer Favorite Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Socratic Good Question Popular Question Notable Question Notable Question Stellar Question Notable Question Famous Question javascript Good Question Popular Question Notable Question Popular Question mysql Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Yearling Notable Question Notable Question Famous Question Nice Question Nice Question Great Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Great Question Notable Question Popular Question Nice Question Notable Question Nice Answer Popular Question Notable Question Good Answer Famous Question Popular Question Famous Question Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Great Answer Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Famous Question Notable Question Popular Question Nice Question Nice Question Good Question Famous Question Great Answer Notable Question Popular Question php Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Great Question Documentation User Popular Question Nice Question Good Question Nice Question Popular Question Necromancer Notable Question Popular Question Popular Question Necromancer Census Notable Question Notable Question Favorite Question Popular Question Good Question Nice Answer Nice Answer Nice Question Notable Question Popular Question Popular Question Guru Notable Question Notable Question Nice Answer Popular Question Revival Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Great Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Nice Answer Popular Question Popular Question Nice Question,NULL,h2Device Pixel Ratio CSS Pixel Ratio h2pIn the world of web development the device pixel ratio also called CSS Pixel Ratio is what determines how device screen resolution is interpreted by the CSS ppA browser CSS calculates device logical or interpreted resolution by the formula pp img src https chart googleapis com chart cht tx amp chl 5Ctext 7Blogical 20resolution 7D 3D 5Cfrac 7B 5Ctext 7Bphysical 20resolution 7D 7D 7B 5Ctext 7Bdevice 20pixel 20ratio 7D 7D alt formula ppFor example pp strongApple iPhone 6s strong pulliActual Resolution 750 1334 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B750 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1334 7D 7B2 7D 20 3D 20375 20 5Ctext 7B 20x 20 7D 20667 alt formula ppWhen viewing web page the emCSS will think the device has 375x667 resolution em screen and emMedia Queries will respond as if the screen is 375x667 em But the rendered elements on the screen will be twice as sharp as an actual 375x667 screen because there are twice as many physical pixels in the physical screen ppSome other examples pp strongSamsung Galaxy S4 strong pulliActual Resolution 1080 1920 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B1080 7D 7B3 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1920 7D 7B3 7D 20 3D 20360 20 5Ctext 7B 20x 20 7D 20640 alt formula pp strongiPhone 5s strong pulliActual Resolution 640 1136 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B640 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1136 7D 7B2 7D 20 3D 20320 20 5Ctext 7B 20x 20 7D 20568 alt formula ph1Why does the Device Pixel Ratio exist h1pThe reason that CSS pixel ratio was created is because as phones screens get higher resolutions if every device still had CSS pixel ratio of then webpages would render too small to see ppA typical full screen desktop monitor is roughly 24 at 1920x1080 resolution Imagine if that monitor was shrunk down to about but had the same resolution Viewing things on the screen would be impossible because they would be so small But manufactures are coming out with 1920x1080 resolution phone screens consistently now ppSo the device pixel ratio was invented by phone makers so that they could continue to push the resolution sharpness and quality of phone screens without making elements on the screen too small to see or read ppHere is tool that also tells you your current device pixel density pp href http bjango com articles min device pixel ratio rel noreferrer http bjango com articles min device pixel ratio In your example 300px image with width 100 will be the full width of the display It will not be stretched The screen thinks it 300px display Images are displayed according to the logical css resolution Now in your example you could also instead serve 600px image It will be the full width of the logical 300px display but since your display is native 600px the image will look twice as sharp as your original 300px image Bigger image but it looks better since the display has all those extra pixels This is the idea behind Retina Displays h2Device Pixel Ratio CSS Pixel Ratio h2pIn the world of web development the device pixel ratio also called CSS Pixel Ratio is what determines how device screen resolution is interpreted by the CSS ppA browser CSS calculates device logical or interpreted resolution by the formula pp img src https chart googleapis com chart cht tx amp chl 5Ctext 7Blogical 20resolution 7D 3D 5Cfrac 7B 5Ctext 7Bphysical 20resolution 7D 7D 7B 5Ctext 7Bdevice 20pixel 20ratio 7D 7D alt formula ppFor example pp strongApple iPhone 6s strong pulliActual Resolution 750 1334 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B750 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1334 7D 7B2 7D 20 3D 20375 20 5Ctext 7B 20x 20 7D 20667 alt formula ppWhen viewing web page the emCSS will think the device has 375x667 resolution em screen and emMedia Queries will respond as if the screen is 375x667 em But the rendered elements on the screen will be twice as sharp as an actual 375x667 screen because there are twice as many physical pixels in the physical screen ppSome other examples pp strongSamsung Galaxy S4 strong pulliActual Resolution 1080 1920 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B1080 7D 7B3 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1920 7D 7B3 7D 20 3D 20360 20 5Ctext 7B 20x 20 7D 20640 alt formula pp strongiPhone 5s strong pulliActual Resolution 640 1136 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B640 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1136 7D 7B2 7D 20 3D 20320 20 5Ctext 7B 20x 20 7D 20568 alt formula ph1Why does the Device Pixel Ratio exist h1pThe reason that CSS pixel ratio was created is because as phones screens get higher resolutions if every device still had CSS pixel ratio of then webpages would render too small to see ppA typical full screen desktop monitor is roughly 24 at 1920x1080 resolution Imagine if that monitor was shrunk down to about but had the same resolution Viewing things on the screen would be impossible because they would be so small But manufactures are coming out with 1920x1080 resolution phone screens consistently now ppSo the device pixel ratio was invented by phone makers so that they could continue to push the resolution sharpness and quality of phone screens without making elements on the screen too small to see or read ppHere is tool that also tells you your current device pixel density pp href http bjango com articles min device pixel ratio rel noreferrer http bjango com articles min device pixel ratio If device is 600 physical pixels wide with CSS pixel ratio then your CSS thinks the screen is only 300px wide For example if you set an image to 150px wide it will take up the screen Regarding quality if you provide 600px wide image the image will be twice as sharp as 300px wide image since there are 600 physical pixels h2Device Pixel Ratio CSS Pixel Ratio h2pIn the world of web development the device pixel ratio also called CSS Pixel Ratio is what determines how device screen resolution is interpreted by the CSS ppA browser CSS calculates device logical or interpreted resolution by the formula pp img src https chart googleapis com chart cht tx amp chl 5Ctext 7Blogical 20resolution 7D 3D 5Cfrac 7B 5Ctext 7Bphysical 20resolution 7D 7D 7B 5Ctext 7Bdevice 20pixel 20ratio 7D 7D alt formula ppFor example pp strongApple iPhone 6s strong pulliActual Resolution 750 1334 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B750 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1334 7D 7B2 7D 20 3D 20375 20 5Ctext 7B 20x 20 7D 20667 alt formula ppWhen viewing web page the emCSS will think the device has 375x667 resolution em screen and emMedia Queries will respond as if the screen is 375x667 em But the rendered elements on the screen will be twice as sharp as an actual 375x667 screen because there are twice as many physical pixels in the physical screen ppSome other examples pp strongSamsung Galaxy S4 strong pulliActual Resolution 1080 1920 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B1080 7D 7B3 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1920 7D 7B3 7D 20 3D 20360 20 5Ctext 7B 20x 20 7D 20640 alt formula pp strongiPhone 5s strong pulliActual Resolution 640 1136 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B640 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1136 7D 7B2 7D 20 3D 20320 20 5Ctext 7B 20x 20 7D 20568 alt formula ph1Why does the Device Pixel Ratio exist h1pThe reason that CSS pixel ratio was created is because as phones screens get higher resolutions if every device still had CSS pixel ratio of then webpages would render too small to see ppA typical full screen desktop monitor is roughly 24 at 1920x1080 resolution Imagine if that monitor was shrunk down to about but had the same resolution Viewing things on the screen would be impossible because they would be so small But manufactures are coming out with 1920x1080 resolution phone screens consistently now ppSo the device pixel ratio was invented by phone makers so that they could continue to push the resolution sharpness and quality of phone screens without making elements on the screen too small to see or read ppHere is tool that also tells you your current device pixel density pp href http bjango com articles min device pixel ratio rel noreferrer http bjango com articles min device pixel ratio Just set it to 100 width and you ll be fine h2Device Pixel Ratio CSS Pixel Ratio h2pIn the world of web development the device pixel ratio also called CSS Pixel Ratio is what determines how device screen resolution is interpreted by the CSS ppA browser CSS calculates device logical or interpreted resolution by the formula pp img src https chart googleapis com chart cht tx amp chl 5Ctext 7Blogical 20resolution 7D 3D 5Cfrac 7B 5Ctext 7Bphysical 20resolution 7D 7D 7B 5Ctext 7Bdevice 20pixel 20ratio 7D 7D alt formula ppFor example pp strongApple iPhone 6s strong pulliActual Resolution 750 1334 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B750 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1334 7D 7B2 7D 20 3D 20375 20 5Ctext 7B 20x 20 7D 20667 alt formula ppWhen viewing web page the emCSS will think the device has 375x667 resolution em screen and emMedia Queries will respond as if the screen is 375x667 em But the rendered elements on the screen will be twice as sharp as an actual 375x667 screen because there are twice as many physical pixels in the physical screen ppSome other examples pp strongSamsung Galaxy S4 strong pulliActual Resolution 1080 1920 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B1080 7D 7B3 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1920 7D 7B3 7D 20 3D 20360 20 5Ctext 7B 20x 20 7D 20640 alt formula pp strongiPhone 5s strong pulliActual Resolution 640 1136 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B640 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1136 7D 7B2 7D 20 3D 20320 20 5Ctext 7B 20x 20 7D 20568 alt formula ph1Why does the Device Pixel Ratio exist h1pThe reason that CSS pixel ratio was created is because as phones screens get higher resolutions if every device still had CSS pixel ratio of then webpages would render too small to see ppA typical full screen desktop monitor is roughly 24 at 1920x1080 resolution Imagine if that monitor was shrunk down to about but had the same resolution Viewing things on the screen would be impossible because they would be so small But manufactures are coming out with 1920x1080 resolution phone screens consistently now ppSo the device pixel ratio was invented by phone makers so that they could continue to push the resolution sharpness and quality of phone screens without making elements on the screen too small to see or read ppHere is tool that also tells you your current device pixel density pp href http bjango com articles min device pixel ratio rel noreferrer http bjango com articles min device pixel ratio don know and it doesn really matter how it defined in the hardware software One is calculated from the other either way you cut it h2Device Pixel Ratio CSS Pixel Ratio h2pIn the world of web development the device pixel ratio also called CSS Pixel Ratio is what determines how device screen resolution is interpreted by the CSS ppA browser CSS calculates device logical or interpreted resolution by the formula pp img src https chart googleapis com chart cht tx amp chl 5Ctext 7Blogical 20resolution 7D 3D 5Cfrac 7B 5Ctext 7Bphysical 20resolution 7D 7D 7B 5Ctext 7Bdevice 20pixel 20ratio 7D 7D alt formula ppFor example pp strongApple iPhone 6s strong pulliActual Resolution 750 1334 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B750 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1334 7D 7B2 7D 20 3D 20375 20 5Ctext 7B 20x 20 7D 20667 alt formula ppWhen viewing web page the emCSS will think the device has 375x667 resolution em screen and emMedia Queries will respond as if the screen is 375x667 em But the rendered elements on the screen will be twice as sharp as an actual 375x667 screen because there are twice as many physical pixels in the physical screen ppSome other examples pp strongSamsung Galaxy S4 strong pulliActual Resolution 1080 1920 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B1080 7D 7B3 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1920 7D 7B3 7D 20 3D 20360 20 5Ctext 7B 20x 20 7D 20640 alt formula pp strongiPhone 5s strong pulliActual Resolution 640 1136 liliCSS Pixel Ratio liliLogical Resolution li ulp img src https chart googleapis com chart cht tx amp chl 5Cfrac 7B640 7D 7B2 7D 20 5Ctext 7B 20x 20 7D 20 5Cfrac 7B1136 7D 7B2 7D 20 3D 20320 20 5Ctext 7B 20x 20 7D 20568 alt formula ph1Why does the Device Pixel Ratio exist h1pThe reason that CSS pixel ratio was created is because as phones screens get higher resolutions if every device still had CSS pixel ratio of then webpages would render too small to see ppA typical full screen desktop monitor is roughly 24 at 1920x1080 resolution Imagine if that monitor was shrunk down to about but had the same resolution Viewing things on the screen would be impossible because they would be so small But manufactures are coming out with 1920x1080 resolution phone screens consistently now ppSo the device pixel ratio was invented by phone makers so that they could continue to push the resolution sharpness and quality of phone screens without making elements on the screen too small to see or read ppHere is tool that also tells you your current device pixel density pp href http bjango com articles min device pixel ratio rel noreferrer http bjango com articles min device pixel ratio That great question and ve never seen an article other than this one suggest that But near the end the article also says That’s perfectly fine as long as they the browsers report the correct devicePixelRatio So that gives some conflicting information for sure honestly not sure what the correct answer is here,0,NULL,NULL 34679,101673,78448,Yearling Nice Answer Enlightened vsto Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 34680,220463,155423,Nice Answer Enlightened Good Question Announcer Good Answer Nice Answer Announcer Nice Answer Enlightened Popular Question Nice Answer iterator Nice Answer Enlightened Nice Answer Announcer Necromancer Nice Answer Enlightened rust-cargo Popular Question Popular Question Illuminator Popular Question borrow-checker Announcer Popular Question Archaeologist Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Nice Question Nice Answer Enlightened string Nice Answer Enlightened Nice Answer Enlightened Suffrage Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Booster Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened traits Nice Answer Nice Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened generics Necromancer Necromancer Revival Caucus Revival Good Answer Great Answer Good Answer Constituent Good Question Nice Answer Enlightened Announcer Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Marshal Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Nice Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Necromancer Census Guru Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Notable Question Announcer Nice Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Question Announcer Announcer Good Question Nice Answer Enlightened Nice Answer Enlightened vector Announcer Good Answer Nice Answer Popular Question lifetime Guru Necromancer Nice Answer Populist Nice Answer Enlightened Nice Answer Enlightened Revival Necromancer Nice Answer Enlightened multithreading Guru Announcer Nice Answer Enlightened ffi reference Announcer Announcer Popular Question Good Answer Good Answer Outspoken Nice Answer Enlightened Announcer Announcer Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Caucus Announcer Nice Answer Enlightened Notable Question Constituent Nice Answer Enlightened Notable Question Yearling Good Answer Good Answer Announcer Nice Answer Necromancer Good Answer Necromancer Nice Answer Good Answer Announcer Nice Answer Enlightened Taxonomist Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Necromancer Announcer Necromancer Documentation User Nice Answer Enlightened Nice Answer Enlightened Popular Question Epic Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Announcer Popular Question Revival struct Announcer Notable Question Guru Nice Question Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Popular Question Revival Disciplined Announcer Good Answer Nice Question Nice Answer Enlightened Announcer Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Census Nice Answer Nice Answer Enlightened Announcer Good Answer Announcer Announcer rust-cargo Popular Question Nice Answer Enlightened Good Answer Announcer Nice Answer Nice Answer Announcer Booster Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Good Answer Revival Great Question Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Notable Question Good Answer Announcer Announcer arrays Nice Answer Nice Question Nice Answer Enlightened Revival Necromancer Nice Answer Enlightened Caucus Constituent Announcer Nice Answer Guru Announcer Good Answer Notable Question Nice Answer Announcer Nice Answer Enlightened closures Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Revival types Announcer Nice Question Nice Answer Enlightened Guru Necromancer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Favorite Question Nice Answer Revival Good Answer Announcer Nice Answer Enlightened Announcer Good Answer Revival Necromancer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Question Nice Question Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer enums Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Revival Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Necromancer Good Question Nice Answer Enlightened Nice Answer Enlightened Announcer Revival Nice Answer Enlightened Popular Question Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Necromancer Popular Question Nice Answer Necromancer Announcer Announcer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer macros Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Announcer Announcer Good Answer Good Answer Nice Answer Enlightened traits Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Great Answer Announcer Necromancer Announcer Necromancer Announcer Announcer serde Guru Nice Answer Enlightened Announcer Nice Question Nice Answer Enlightened Announcer Good Answer Good Answer Nice Answer Nice Answer Enlightened Enlightened Announcer Nice Answer Enlightened Announcer Announcer Announcer Good Answer borrowing Guru Nice Answer Announcer Enlightened Necromancer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Popular Question Booster borrow-checker Guru Nice Answer Enlightened Announcer Nice Answer Guru Good Answer future,NULL,pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul ve never used the Intel syntax myself so not sure pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul feels like both of those need the volatile keyword to avoid the optimizer returning the same value for distinct calls no Also it looks like someone snuck in and moved all of your closing curly braces to the previous line pLet break it down line by line ppre codelet s1 foobar code prepWe ve created literal string that is encoded in href https en wikipedia org wiki UTF rel noreferrer UTF UTF allows us to encode the 114 112 href https en wikipedia org wiki Code point rel noreferrer code points of href https en wikipedia org wiki Unicode rel noreferrer Unicode in manner that pretty compact if you come from region of the world that types in mostly characters found in href https en wikipedia org wiki ASCII rel noreferrer ASCII standard created in 1963 UTF is emvariable length em encoding which means that single code point might href https stackoverflow com 9533258 155423 take from to bytes The shorter encodings are reserved for ASCII but href https stackoverflow com 3678752 155423 many Kanji take bytes in UTF ppre codelet mut Vec lt char gt s1 chars collect code prepThis creates vector of codechar codeacters character is 32 bit number that directly maps to code point If we started with ASCII only text we ve quadrupled our memory requirements If we had bunch of characters from href https en wikipedia org wiki Plane Unicode rel noreferrer the astral plane then maybe we haven used that much more ppre codev to uppercase nth unwrap code prepThis grabs the first code point and requests that it be converted to an uppercase variant Unfortunately for those of us who grew up speaking English there href https stackoverflow com questions 7491680 unicode characters having asymmetric upper lower case why not always simple one to one mapping of small letter to big letter Side note we call them upper and lower case href https en wikipedia org wiki Letter case Type cases rel noreferrer because one box of letters was above the other box of letters back in the day ppThis code will panic when code point has no corresponding uppercase variant not sure if those exist actually It could also semantically fail when code point has an uppercase variant that has multiple characters such as the German codeß code Note that may never actually be capitalized in The Real World this is the just example can always remember and search for As of 2017 06 29 in fact the official rules of German spelling have been updated so that href http www rechtschreibrat com DOX rfdr PM 2017 06 29 Aktualisierung Regelwerk pdf rel noreferrer strongboth strong and SS are valid capitalizations ppre codelet s2 String into iter collect code prepHere we convert the characters back into UTF and require new allocation to store them in as the original variable was stored in constant memory so as to not take up memory at run time ppre codelet s3 amp s2 code prepAnd now we take reference to that codeString code pblockquote pIt simple problem blockquotepUnfortunately this is not true Perhaps we should endeavor to convert the world to href https en wikipedia org wiki Esperanto rel noreferrer Esperanto pblockquote pI presume codechar to uppercase code already properly handles Unicode blockquotepYes certainly hope so Unfortunately Unicode isn enough in all cases Thanks to href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 comment64297807 38406885 huon for pointing out the href https en wikipedia org wiki Dotted and dotless rel noreferrer Turkish where both the upper strongİ strong and lower case strongi strong versions have dot That is there is no emone em proper capitalization of the letter codei code it depends on the href https en wikipedia org wiki Locale computer software rel noreferrer locale of the the source text as well pblockquote pwhy the need for all data type conversions blockquotepBecause the data types you are working with are important when you are worried about correctness and performance codechar code is 32 bits and string is UTF encoded They are different things pblockquote pindexing could return multi byte Unicode character blockquotepThere may be some mismatched terminology here codechar code emis em multi byte Unicode character pp emSlicing em string is possible if you go byte by byte but the standard library will panic if you are not on character boundary ppOne of the reasons that indexing string to get character was never implemented is because so many people misuse strings as arrays of ASCII characters Indexing string to emset em character could never be efficient you have to be able to replace bytes with value that is also bytes causing the rest of the string to bounce around quite lot pblockquote codeto uppercase code could return an upper case character blockquotepAs mentioned above codeß code is single character that when capitalized becomes strongtwo characters strong phrpIf had to write the code it look like ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase chain collect fn main println some kind of uppercase first letter joe println some kind of uppercase first letter jill println some kind of uppercase first letter von Hagen println some kind of uppercase first letter code prepBut probably search for href https crates io search uppercase rel noreferrer uppercase or href https crates io search unicode rel noreferrer unicode on crates io and let someone smarter than me handle it phrpSpeaking of someone smarter than me href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 noredirect comment65003459 38406885 Veedrac points out that it probably more efficient to convert the iterator back into slice after the first capital codepoints are accessed This allows for codememcpy code of the rest of the bytes ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase collect lt String gt as str code pre that really great to hear fear that many newcomers to Rust misunderstand the decisions that the Rust designers have made and simply write them off as being too complicated for no benefit By asking and answering questions here have gained an appreciation for the care that needs to go into such designs and hopefully become better programmer Keeping an open mind and being willing to learn more is great trait to have as programmer pLet break it down line by line ppre codelet s1 foobar code prepWe ve created literal string that is encoded in href https en wikipedia org wiki UTF rel noreferrer UTF UTF allows us to encode the 114 112 href https en wikipedia org wiki Code point rel noreferrer code points of href https en wikipedia org wiki Unicode rel noreferrer Unicode in manner that pretty compact if you come from region of the world that types in mostly characters found in href https en wikipedia org wiki ASCII rel noreferrer ASCII standard created in 1963 UTF is emvariable length em encoding which means that single code point might href https stackoverflow com 9533258 155423 take from to bytes The shorter encodings are reserved for ASCII but href https stackoverflow com 3678752 155423 many Kanji take bytes in UTF ppre codelet mut Vec lt char gt s1 chars collect code prepThis creates vector of codechar codeacters character is 32 bit number that directly maps to code point If we started with ASCII only text we ve quadrupled our memory requirements If we had bunch of characters from href https en wikipedia org wiki Plane Unicode rel noreferrer the astral plane then maybe we haven used that much more ppre codev to uppercase nth unwrap code prepThis grabs the first code point and requests that it be converted to an uppercase variant Unfortunately for those of us who grew up speaking English there href https stackoverflow com questions 7491680 unicode characters having asymmetric upper lower case why not always simple one to one mapping of small letter to big letter Side note we call them upper and lower case href https en wikipedia org wiki Letter case Type cases rel noreferrer because one box of letters was above the other box of letters back in the day ppThis code will panic when code point has no corresponding uppercase variant not sure if those exist actually It could also semantically fail when code point has an uppercase variant that has multiple characters such as the German codeß code Note that may never actually be capitalized in The Real World this is the just example can always remember and search for As of 2017 06 29 in fact the official rules of German spelling have been updated so that href http www rechtschreibrat com DOX rfdr PM 2017 06 29 Aktualisierung Regelwerk pdf rel noreferrer strongboth strong and SS are valid capitalizations ppre codelet s2 String into iter collect code prepHere we convert the characters back into UTF and require new allocation to store them in as the original variable was stored in constant memory so as to not take up memory at run time ppre codelet s3 amp s2 code prepAnd now we take reference to that codeString code pblockquote pIt simple problem blockquotepUnfortunately this is not true Perhaps we should endeavor to convert the world to href https en wikipedia org wiki Esperanto rel noreferrer Esperanto pblockquote pI presume codechar to uppercase code already properly handles Unicode blockquotepYes certainly hope so Unfortunately Unicode isn enough in all cases Thanks to href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 comment64297807 38406885 huon for pointing out the href https en wikipedia org wiki Dotted and dotless rel noreferrer Turkish where both the upper strongİ strong and lower case strongi strong versions have dot That is there is no emone em proper capitalization of the letter codei code it depends on the href https en wikipedia org wiki Locale computer software rel noreferrer locale of the the source text as well pblockquote pwhy the need for all data type conversions blockquotepBecause the data types you are working with are important when you are worried about correctness and performance codechar code is 32 bits and string is UTF encoded They are different things pblockquote pindexing could return multi byte Unicode character blockquotepThere may be some mismatched terminology here codechar code emis em multi byte Unicode character pp emSlicing em string is possible if you go byte by byte but the standard library will panic if you are not on character boundary ppOne of the reasons that indexing string to get character was never implemented is because so many people misuse strings as arrays of ASCII characters Indexing string to emset em character could never be efficient you have to be able to replace bytes with value that is also bytes causing the rest of the string to bounce around quite lot pblockquote codeto uppercase code could return an upper case character blockquotepAs mentioned above codeß code is single character that when capitalized becomes strongtwo characters strong phrpIf had to write the code it look like ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase chain collect fn main println some kind of uppercase first letter joe println some kind of uppercase first letter jill println some kind of uppercase first letter von Hagen println some kind of uppercase first letter code prepBut probably search for href https crates io search uppercase rel noreferrer uppercase or href https crates io search unicode rel noreferrer unicode on crates io and let someone smarter than me handle it phrpSpeaking of someone smarter than me href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 noredirect comment65003459 38406885 Veedrac points out that it probably more efficient to convert the iterator back into slice after the first capital codepoints are accessed This allows for codememcpy code of the rest of the bytes ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase collect lt String gt as str code pre never remember to look to see what special methods exist on iterators Why does the last platform specific dependency take precedence in Cargo rust rust cargo pI have dependency in my Cargo file that needs to be different by platform specifically the default features Here what am trying to do ppre code package name blah version blah authors blah target cfg target os macos dependencies hyper version default features false features security framework target cfg target os linux dependencies hyper version default features true code prepBut this doesn seem to do what want On my Mac it appears to be using the bottom target line as if just specified codehyper code If do codecargo build code as specified get errors with regard to openssl pblockquote pcargo warning include lt openssl ssl gt blockquotepHowever if build it like this ppre code dependencies hyper version default features false features security framework code prepThen it builds fine This indicates to me that the codecfg code for macos isn working ppHow do make this work or more specifically how do solve the problem where need my dependency to use different features by platform Why is this not duplicate of http stackoverflow com 29854912 155423 Why does the last platform specific dependency take precedence in Cargo rust rust cargo pI have dependency in my Cargo file that needs to be different by platform specifically the default features Here what am trying to do ppre code package name blah version blah authors blah target cfg target os macos dependencies hyper version default features false features security framework target cfg target os linux dependencies hyper version default features true code prepBut this doesn seem to do what want On my Mac it appears to be using the bottom target line as if just specified codehyper code If do codecargo build code as specified get errors with regard to openssl pblockquote pcargo warning include lt openssl ssl gt blockquotepHowever if build it like this ppre code dependencies hyper version default features false features security framework code prepThen it builds fine This indicates to me that the codecfg code for macos isn working ppHow do make this work or more specifically how do solve the problem where need my dependency to use different features by platform don think following The unit tests you linked to say https github com rust lang cargo blob 4f57637fbeb9a79c86808609e388a1eed9a50e2f tests cfg rs L152 target cfg windows dependencies without target os The documentation likewise does not use target os http doc crates io specifying dependencies html platform specific dependencies strongNon answer answer strong ppAvoid global state in general Instead construct the object somewhere early perhaps in codemain code then pass mutable references to that object into the places that need it This will usually make your code easier to reason about and doesn require as much bending over backwards ppLook hard at yourself in the mirror before deciding that you want global mutable variables There are rare cases where it useful so that why it worth knowing how to do ppStill want to make one ph3Using lazy static h3pThe href https github com rust lang nursery lazy static rs rel noreferrer lazy static crate can take away some of the drudgery of creating singleton below Here is global mutable vector ppre code macro use extern crate lazy static use std sync Mutex lazy static static ref ARRAY Mutex lt Vec lt u8 gt gt Mutex new vec fn do call ARRAY lock unwrap push fn main do call do call do call println called ARRAY lock unwrap len code prepIf you remove the codeMutex code then you have global singleton without any mutability ph3A special case atomics h3pIf you only need to track an integer value you can directly use an href https doc rust lang org std sync atomic rel noreferrer atomic ppre codeuse std sync atomic AtomicUsize Ordering static CALL COUNT AtomicUsize AtomicUsize new fn do call CALL COUNT fetch add Ordering SeqCst fn main do call do call do call println called CALL COUNT load Ordering SeqCst code preh3Manual dependency free implementation h3pThis is greatly cribbed from href https github com rust lang rust blob 2a8cb678e61e91c160d80794b5fdd723d0d4211c src libstd io stdio rs L217 L247 rel noreferrer the Rust implementation of codestdin code You should also look at the modern implementation of href https github com rust lang rust blob 23 src libstd io lazy rs rel noreferrer codeio Lazy code ve commented inline with what each line does ppre codeuse std sync Arc Mutex Once ONCE INIT use std time Duration use std mem thread derive Clone struct SingletonReader Since we will be used in many threads we need to protect concurrent access inner Arc lt Mutex lt u8 gt gt fn singleton gt SingletonReader Initialize it to null value static mut SINGLETON const SingletonReader as const SingletonReader static ONCE Once ONCE INIT unsafe ONCE call once Make it let singleton SingletonReader inner Arc new Mutex new Put it in the heap so it can outlive this call SINGLETON mem transmute Box new singleton Now we give out copy of the data that is safe to use concurrently SINGLETON clone fn main Let use the singleton in few threads let threads Vec lt gt 10 map thread spawn move thread sleep Duration from millis 10 let singleton let mut data inner lock unwrap data as u8 collect And let check the singleton every so often for in 0u8 20 thread sleep Duration from millis let singleton let data inner lock unwrap println It is data for thread in threads into iter thread join unwrap code prepThis prints out ppre class lang none prettyprint override codeIt is 0It is 1It is 1It is 2It is 2It is 3It is 3It is 4It is 4It is 5It is 5It is 6It is 6It is 7It is 7It is 8It is 8It is 9It is 9It is code prepThis code compiles with Rust 23 The real implementations of codeStdin code use some unstable features to attempt to free the allocated memory which this code does not ppReally you probably want to make codeSingletonReader code implement href http doc rust lang org std ops trait Deref html rel noreferrer codeDeref code and href http doc rust lang org std ops trait DerefMut html rel noreferrer codeDerefMut code so you didn have to poke into the object and lock it yourself ppAll of this work is what lazy static does for you there always going to be some reason to need singleton but it unnecessary to use it in many of the cases it is used Without knowing your code it possible that the application should allow each module to return user data void which is then passed back into each module methods This is typical extension pattern for code If the application doesn allow for this and you cannot change it then yes singleton may be good solution strongNon answer answer strong ppAvoid global state in general Instead construct the object somewhere early perhaps in codemain code then pass mutable references to that object into the places that need it This will usually make your code easier to reason about and doesn require as much bending over backwards ppLook hard at yourself in the mirror before deciding that you want global mutable variables There are rare cases where it useful so that why it worth knowing how to do ppStill want to make one ph3Using lazy static h3pThe href https github com rust lang nursery lazy static rs rel noreferrer lazy static crate can take away some of the drudgery of creating singleton below Here is global mutable vector ppre code macro use extern crate lazy static use std sync Mutex lazy static static ref ARRAY Mutex lt Vec lt u8 gt gt Mutex new vec fn do call ARRAY lock unwrap push fn main do call do call do call println called ARRAY lock unwrap len code prepIf you remove the codeMutex code then you have global singleton without any mutability ph3A special case atomics h3pIf you only need to track an integer value you can directly use an href https doc rust lang org std sync atomic rel noreferrer atomic ppre codeuse std sync atomic AtomicUsize Ordering static CALL COUNT AtomicUsize AtomicUsize new fn do call CALL COUNT fetch add Ordering SeqCst fn main do call do call do call println called CALL COUNT load Ordering SeqCst code preh3Manual dependency free implementation h3pThis is greatly cribbed from href https github com rust lang rust blob 2a8cb678e61e91c160d80794b5fdd723d0d4211c src libstd io stdio rs L217 L247 rel noreferrer the Rust implementation of codestdin code You should also look at the modern implementation of href https github com rust lang rust blob 23 src libstd io lazy rs rel noreferrer codeio Lazy code ve commented inline with what each line does ppre codeuse std sync Arc Mutex Once ONCE INIT use std time Duration use std mem thread derive Clone struct SingletonReader Since we will be used in many threads we need to protect concurrent access inner Arc lt Mutex lt u8 gt gt fn singleton gt SingletonReader Initialize it to null value static mut SINGLETON const SingletonReader as const SingletonReader static ONCE Once ONCE INIT unsafe ONCE call once Make it let singleton SingletonReader inner Arc new Mutex new Put it in the heap so it can outlive this call SINGLETON mem transmute Box new singleton Now we give out copy of the data that is safe to use concurrently SINGLETON clone fn main Let use the singleton in few threads let threads Vec lt gt 10 map thread spawn move thread sleep Duration from millis 10 let singleton let mut data inner lock unwrap data as u8 collect And let check the singleton every so often for in 0u8 20 thread sleep Duration from millis let singleton let data inner lock unwrap println It is data for thread in threads into iter thread join unwrap code prepThis prints out ppre class lang none prettyprint override codeIt is 0It is 1It is 1It is 2It is 2It is 3It is 3It is 4It is 4It is 5It is 5It is 6It is 6It is 7It is 7It is 8It is 8It is 9It is 9It is code prepThis code compiles with Rust 23 The real implementations of codeStdin code use some unstable features to attempt to free the allocated memory which this code does not ppReally you probably want to make codeSingletonReader code implement href http doc rust lang org std ops trait Deref html rel noreferrer codeDeref code and href http doc rust lang org std ops trait DerefMut html rel noreferrer codeDerefMut code so you didn have to poke into the object and lock it yourself ppAll of this work is what lazy static does for you would you care to explain why discourage people from doing something that is poor idea in most languages even the OP agreed that global was bad choice for their application That what in general means then show two solutions for how to do it anyway just tested the lazy static example in Rust 24 and it works exactly There no external static anywhere here Perhaps you need to check things on your end to make sure you ve understood the answer fully strongNon answer answer strong ppAvoid global state in general Instead construct the object somewhere early perhaps in codemain code then pass mutable references to that object into the places that need it This will usually make your code easier to reason about and doesn require as much bending over backwards ppLook hard at yourself in the mirror before deciding that you want global mutable variables There are rare cases where it useful so that why it worth knowing how to do ppStill want to make one ph3Using lazy static h3pThe href https github com rust lang nursery lazy static rs rel noreferrer lazy static crate can take away some of the drudgery of creating singleton below Here is global mutable vector ppre code macro use extern crate lazy static use std sync Mutex lazy static static ref ARRAY Mutex lt Vec lt u8 gt gt Mutex new vec fn do call ARRAY lock unwrap push fn main do call do call do call println called ARRAY lock unwrap len code prepIf you remove the codeMutex code then you have global singleton without any mutability ph3A special case atomics h3pIf you only need to track an integer value you can directly use an href https doc rust lang org std sync atomic rel noreferrer atomic ppre codeuse std sync atomic AtomicUsize Ordering static CALL COUNT AtomicUsize AtomicUsize new fn do call CALL COUNT fetch add Ordering SeqCst fn main do call do call do call println called CALL COUNT load Ordering SeqCst code preh3Manual dependency free implementation h3pThis is greatly cribbed from href https github com rust lang rust blob 2a8cb678e61e91c160d80794b5fdd723d0d4211c src libstd io stdio rs L217 L247 rel noreferrer the Rust implementation of codestdin code You should also look at the modern implementation of href https github com rust lang rust blob 23 src libstd io lazy rs rel noreferrer codeio Lazy code ve commented inline with what each line does ppre codeuse std sync Arc Mutex Once ONCE INIT use std time Duration use std mem thread derive Clone struct SingletonReader Since we will be used in many threads we need to protect concurrent access inner Arc lt Mutex lt u8 gt gt fn singleton gt SingletonReader Initialize it to null value static mut SINGLETON const SingletonReader as const SingletonReader static ONCE Once ONCE INIT unsafe ONCE call once Make it let singleton SingletonReader inner Arc new Mutex new Put it in the heap so it can outlive this call SINGLETON mem transmute Box new singleton Now we give out copy of the data that is safe to use concurrently SINGLETON clone fn main Let use the singleton in few threads let threads Vec lt gt 10 map thread spawn move thread sleep Duration from millis 10 let singleton let mut data inner lock unwrap data as u8 collect And let check the singleton every so often for in 0u8 20 thread sleep Duration from millis let singleton let data inner lock unwrap println It is data for thread in threads into iter thread join unwrap code prepThis prints out ppre class lang none prettyprint override codeIt is 0It is 1It is 1It is 2It is 2It is 3It is 3It is 4It is 4It is 5It is 5It is 6It is 6It is 7It is 7It is 8It is 8It is 9It is 9It is code prepThis code compiles with Rust 23 The real implementations of codeStdin code use some unstable features to attempt to free the allocated memory which this code does not ppReally you probably want to make codeSingletonReader code implement href http doc rust lang org std ops trait Deref html rel noreferrer codeDeref code and href http doc rust lang org std ops trait DerefMut html rel noreferrer codeDerefMut code so you didn have to poke into the object and lock it yourself ppAll of this work is what lazy static does for you if you need help with the basics of how to use crate suggest you re read The Rust Programming Language https doc rust lang org book second edition The chapter on creating guessing game https doc rust lang org book second edition ch02 00 guessing game tutorial html shows how to add dependencies,,, "rg std op trait derefmut html noreferrer codederefmut code poke object lock ppall work lazy static basic crate suggest read rust programming language https doc rust lang org book edition chapter create guess game https doc rust lang org book edition guess game tutorial html show add dependency""",1,NULL,How to copy raw pointer when implementing linked list in Rust rust pI am writing recursive type codeListNode code in Rust have to use codeBox code in the struct and am trying to write loop to add codenext code codeListNode code However would like to try using pointer except recursive method ppre code derive Debug struct ListNode val i32 next Option lt Box lt ListNode gt gt impl ListNode fn new i32 gt Self ListNode val next None fn add amp mut self amp Vec lt i32 gt let mut mut ListNode self as mut ListNode for in unsafe next Some Box new ListNode new let temp Box from raw Box into raw temp next wrap fn main let mut ListNode new add amp vec println code prepI found that codea code is changed to the last codeNodeList code with the codeval code of ppre class lang none prettyprint override codeListNode val next None code preolliIs there any way can copy pointer so can keep codea code stable liliIf there is no way can copy pointer how can implement this li ol pFirst things first using codeunsafe code here is strongcompletely unnecessary strong and would say actively malicious if saw it in any real code Don use codeunsafe code for fun ppHere completely safe implementation of the function which walks embackwards em to construct the new tail of the list to add ppre codefn add amp mut self amp i32 let mut tail None for amp val in iter rev let next tail take tail Some Box new ListNode val next self next tail code prepAnd one that goes forwards but requires an codeunwrap code ppre codefn add amp mut self amp i32 let mut head self for amp val in head next Some Box new ListNode new val head head next as mut unwrap code prepIf you stronghad strong to do it in the forwards direction and stronghad strong to avoid the codeunwrap code then emmaybe em you could use codeunsafe code Every single codeunsafe code block should contain wealth of comments explaining how the code is safe and doesn break the guarantees that you need to uphold ppre codefn add amp mut self amp i32 let mut head self for amp val in unsafe Boxing value gives it stable address let mut node Box new ListNode new val So long as this raw pointer doesn escape this block we don need to worry about its lifetime as it should outlive what we need let node raw amp mut node as amp mut ListNode as mut ListNode head next Some node Now that we ve moved the Box into its final place we throw away the reference to head to avoid mutable aliasing head amp mut node raw code prepSee also pulli href https stackoverflow com 40006219 155423 Why is it discouraged to accept reference to String amp String Vec amp Vec or Box amp Box as function argument lili href https stackoverflow com 37986640 155423 Cannot obtain mutable reference when iterating recursive structure cannot borrow as mutable more than once at time li ul How do translate x86 GCC style inline assembly to Rust inline assembly assembly rust pI have the following inline assembly in ppre class lang prettyprint override codeunsigned long long result asm volatile byte 15 byte 49 shlq 32 rdx orq rdx rax result rdx return result code prepI tried to rewrite it in Rust ppre codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax result rdx volatile result code prepIt doesn recognize the code code constraint an it gives me an invalid operand error for coderdx code and coderax code at codeshlq code and codeorq code instructions What is the proper way to rewrite the above inline assembly in Rust pRust is built on top of LLVM so lot of low level detail like this can be gleaned from what LLVM or Clang do polli pIf you want to specify specific register you use the register name as the constraint code rax result code Based on href https gcc gnu org onlinedocs gcc Machine Constraints html rel nofollow noreferrer the GCC documentation the codea code constraint is the register lili pLiterals must be prefaced with code code lili pRegisters must be prefaced with code code li olpre class lang none prettyprint override codelet result u64 unsafe asm byte 15 byte 49 shlq 32 rdx orq rdx rax rax result rdx volatile result code prepIf understanding the discussion about coderdtsc code correctly you can also do ppre codelet upper u64 let lower u64 unsafe asm rdtsc rax lower rdx upper volatile upper lt lt 32 lower code prepI advise getting emout em of inline assembly as soon as it practical phrpThe assembly of each function ppre class lang none prettyprint override codeplayground thing1 APP byte 15 byte 49 shlq 32 rdx orq rdx rax NO APP retqplayground thing2 APP rdtsc NO APP shlq 32 rdx orq rdx rax retq code prepFor completeness here is the same code using the LLVM intrinsic This requires emdifferent em unstable attribute ppre code feature link llvm intrinsics extern link name llvm x86 rdtsc fn rdtsc gt u64 fn main println unsafe rdtsc code prepSources pulliThe unstable book chapter on href https doc rust lang org unstable book language features asm html rel nofollow noreferrer codeasm code liliThe href https llvm org docs LangRef html inline assembler expressions rel nofollow noreferrer LLVM inline assembly reference liliMy libraries href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer jetscii and href https github com shepmaster jetscii blob master src lib rs rel nofollow noreferrer cupid li ul Why is capitalizing the first letter of string so convoluted in Rust string rust uppercase pI like to capitalize the first letter of code amp str code It simple problem and hope for simple solution Intuition tells me to do something like this ppre codelet mut foobar to uppercase code prepBut code amp str codes can be indexed like this The only way ve been able to do it seems overly convoluted convert the code amp str code to an iterator convert the iterator to vector upper case the first item in the vector which creates an iterator which index into creating an codeOption code which unwrap to give me the upper cased first letter Then convert the vector into an iterator which convert into codeString code which convert to code amp str code ppre codelet s1 foobar let mut Vec lt char gt s1 chars collect to uppercase nth unwrap let s2 String into iter collect let s3 amp s2 code prepIs there an easier way than this and if so what If not why is Rust designed this way pp href https stackoverflow com questions 38342805 how do collect from multiple iterator types Similar question pLet break it down line by line ppre codelet s1 foobar code prepWe ve created literal string that is encoded in href https en wikipedia org wiki UTF rel noreferrer UTF UTF allows us to encode the 114 112 href https en wikipedia org wiki Code point rel noreferrer code points of href https en wikipedia org wiki Unicode rel noreferrer Unicode in manner that pretty compact if you come from region of the world that types in mostly characters found in href https en wikipedia org wiki ASCII rel noreferrer ASCII standard created in 1963 UTF is emvariable length em encoding which means that single code point might href https stackoverflow com 9533258 155423 take from to bytes The shorter encodings are reserved for ASCII but href https stackoverflow com 3678752 155423 many Kanji take bytes in UTF ppre codelet mut Vec lt char gt s1 chars collect code prepThis creates vector of codechar codeacters character is 32 bit number that directly maps to code point If we started with ASCII only text we ve quadrupled our memory requirements If we had bunch of characters from href https en wikipedia org wiki Plane Unicode rel noreferrer the astral plane then maybe we haven used that much more ppre codev to uppercase nth unwrap code prepThis grabs the first code point and requests that it be converted to an uppercase variant Unfortunately for those of us who grew up speaking English there href https stackoverflow com questions 7491680 unicode characters having asymmetric upper lower case why not always simple one to one mapping of small letter to big letter Side note we call them upper and lower case href https en wikipedia org wiki Letter case Type cases rel noreferrer because one box of letters was above the other box of letters back in the day ppThis code will panic when code point has no corresponding uppercase variant not sure if those exist actually It could also semantically fail when code point has an uppercase variant that has multiple characters such as the German codeß code Note that may never actually be capitalized in The Real World this is the just example can always remember and search for As of 2017 06 29 in fact the official rules of German spelling have been updated so that href http www rechtschreibrat com DOX rfdr PM 2017 06 29 Aktualisierung Regelwerk pdf rel noreferrer strongboth strong and SS are valid capitalizations ppre codelet s2 String into iter collect code prepHere we convert the characters back into UTF and require new allocation to store them in as the original variable was stored in constant memory so as to not take up memory at run time ppre codelet s3 amp s2 code prepAnd now we take reference to that codeString code pblockquote pIt simple problem blockquotepUnfortunately this is not true Perhaps we should endeavor to convert the world to href https en wikipedia org wiki Esperanto rel noreferrer Esperanto pblockquote pI presume codechar to uppercase code already properly handles Unicode blockquotepYes certainly hope so Unfortunately Unicode isn enough in all cases Thanks to href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 comment64297807 38406885 huon for pointing out the href https en wikipedia org wiki Dotted and dotless rel noreferrer Turkish where both the upper strongİ strong and lower case strongi strong versions have dot That is there is no emone em proper capitalization of the letter codei code it depends on the href https en wikipedia org wiki Locale computer software rel noreferrer locale of the the source text as well pblockquote pwhy the need for all data type conversions blockquotepBecause the data types you are working with are important when you are worried about correctness and performance codechar code is 32 bits and string is UTF encoded They are different things pblockquote pindexing could return multi byte Unicode character blockquotepThere may be some mismatched terminology here codechar code emis em multi byte Unicode character pp emSlicing em string is possible if you go byte by byte but the standard library will panic if you are not on character boundary ppOne of the reasons that indexing string to get character was never implemented is because so many people misuse strings as arrays of ASCII characters Indexing string to emset em character could never be efficient you have to be able to replace bytes with value that is also bytes causing the rest of the string to bounce around quite lot pblockquote codeto uppercase code could return an upper case character blockquotepAs mentioned above codeß code is single character that when capitalized becomes strongtwo characters strong phrpIf had to write the code it look like ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase chain collect fn main println some kind of uppercase first letter joe println some kind of uppercase first letter jill println some kind of uppercase first letter von Hagen println some kind of uppercase first letter code prepBut probably search for href https crates io search uppercase rel noreferrer uppercase or href https crates io search unicode rel noreferrer unicode on crates io and let someone smarter than me handle it phrpSpeaking of someone smarter than me href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 noredirect comment65003459 38406885 Veedrac points out that it probably more efficient to convert the iterator back into slice after the first capital codepoints are accessed This allows for codememcpy code of the rest of the bytes ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase collect lt String gt as str code pre,,,,, 34681,1386060,1373395,NULL,NULL,NULL,0,NULL,NULL 34682,3650024,1373395,NULL,NULL,NULL,0,NULL,NULL 34683,333257,1286204,NULL,NULL,NULL,0,NULL,NULL 34684,2723180,1286204,NULL,NULL,NULL,0,NULL,NULL 34685,786111,599096,Editor,NULL,NULL,0,NULL,NULL 34686,528027,1414939,NULL,NULL,NULL,0,NULL,NULL 34687,333781,742974,NULL,NULL,NULL,0,NULL,NULL 34688,235265,1044281,Peer Pressure Nice Question Yearling Caucus Popular Question Good Question Yearling Caucus Popular Question Notable Question Famous Question Popular Question Promoter Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34689,232780,192845,Notable Question,NULL,NULL,0,NULL,NULL 34690,389015,961910,NULL,NULL,NULL,0,NULL,NULL 34691,114223,205191,Student,NULL,NULL,0,NULL,NULL 34692,343988,947559,Nice Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34693,566145,599281,NULL,NULL,NULL,0,NULL,NULL 34694,15374,491871,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34695,213604,995518,Yearling,NULL,NULL,0,NULL,NULL 34696,16525,1400296,NULL,NULL,NULL,0,NULL,NULL 34697,1694,28454,Good Question Yearling Famous Question Notable Question Famous Question Good Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Famous Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 34698,53993,474779,Yearling,NULL,NULL,0,NULL,NULL 34699,61444,197375,Necromancer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 34700,12429,2609,NULL,NULL,NULL,0,NULL,NULL 34701,356172,810876,Famous Question,NULL,NULL,0,NULL,NULL 34702,226659,209250,NULL,NULL,NULL,0,NULL,NULL 34703,306168,101318,Necromancer Yearling Nice Answer Nice Question Custodian Informed Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34704,148737,765987,Census Student Tumbleweed Revival Commentator,NULL,NULL,0,NULL,NULL 34705,67247,246265,Yearling Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Notable Question Nice Question Nice Question Nice Answer Notable Question Popular Question Famous Question Yearling Popular Question Famous Question Nice Question Famous Question Famous Question Good Answer Notable Question Announcer Notable Question Popular Question Notable Question Nice Question Favorite Question Good Question Good Question Yearling Popular Question Popular Question Great Question Necromancer Revival Notable Question Famous Question Popular Question Good Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 34706,5748739,855979,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34707,245806,870195,NULL,NULL,NULL,0,NULL,NULL 34708,293021,413299,NULL,NULL,NULL,0,NULL,NULL 34709,1945375,1153007,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 34710,69805,1153007,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 34711,765706,421360,Tumbleweed,NULL,NULL,0,NULL,NULL 34712,7971,586983,Yearling Nice Question Revival Popular Question Popular Question Yearling Announcer Nice Question Popular Question Nice Answer Notable Question Popular Question,NULL,pAh gahooa was so close ppre codeSELECT FROM currency codes ORDER BY CASE WHEN code USD THEN WHEN code CAD THEN WHEN code AUD THEN WHEN code BBD THEN WHEN code EUR THEN WHEN code GBP THEN ELSE END name code pre not sure why this works but figured out an alternative If you want results in order by then you order by id id id id,0,NULL,NULL 34713,1066141,477658,NULL,NULL,NULL,0,NULL,NULL 34714,180549,571141,NULL,NULL,NULL,0,NULL,NULL 34715,782555,244274,NULL,NULL,NULL,0,NULL,NULL 34716,441601,574778,Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 34717,404667,1270279,Excavator Popular Question Nice Question Yearling Electorate,NULL,NULL,0,NULL,NULL 34718,490600,1236795,Yearling Good Answer Yearling Yearling Yearling Caucus Great Answer Yearling,NULL,pA shorter solution Similar to the emeditor em one with simplified regular expression and fixing the trailing underscore problem ppre code output strtolower preg replace lt input code prep href https 3v4l org J1eMO PHP Demo href https regex101 com Ft57oO Regex Demo phrpNote that cases like codeSimpleXML code will be converted to codesimple code using the above solution That can also be considered wrong usage of camel case notation correct would be codeSimpleXml code rather than bug of the algorithm since such cases are always ambiguous even by grouping uppercase characters to one string codesimple xml code such algorithm will always fail in other edge cases like codeXMLHTMLConverter code or one letter words near abbreviations etc If you don mind about the rather rare edge cases and want to handle codeSimpleXML code correctly you can use little more complex solution ppre code output ltrim strtolower preg replace input code prep href https 3v4l org dIo6c PHP Demo href https regex101 com vRuLSr Regex Demo Thanks for the edit it an interesting approach but it brings new problems CamelCase notation is used in different ways and some like SimpleXML are ambiguous and there nothing to be done about that except machine learning or other complicated approach Your method will not handle cases like ThisIsADonkey which will result in this is adonkey IMO the simple problem is rather bad usage of CamelCase SimpleXml would be correct Imagine SimpleXMLADonkey would prefer to keep my original version and add yours below as an alternative if you agree with that pA shorter solution Similar to the emeditor em one with simplified regular expression and fixing the trailing underscore problem ppre code output strtolower preg replace lt input code prep href https 3v4l org J1eMO PHP Demo href https regex101 com Ft57oO Regex Demo phrpNote that cases like codeSimpleXML code will be converted to codesimple code using the above solution That can also be considered wrong usage of camel case notation correct would be codeSimpleXml code rather than bug of the algorithm since such cases are always ambiguous even by grouping uppercase characters to one string codesimple xml code such algorithm will always fail in other edge cases like codeXMLHTMLConverter code or one letter words near abbreviations etc If you don mind about the rather rare edge cases and want to handle codeSimpleXML code correctly you can use little more complex solution ppre code output ltrim strtolower preg replace input code prep href https 3v4l org dIo6c PHP Demo href https regex101 com vRuLSr Regex Demo Since your solution introduced new bugs see https regex101 com tIlgOF ve put back my original version preserving your nice negative lookbehind trick for the trailing underscore explained its problems and added new solution based on yours but fixing the problems,0,NULL,NULL 34719,1302046,364015,Popular Question Famous Question Yearling Notable Question Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 34720,542650,989081,NULL,NULL,NULL,0,NULL,NULL 34721,7977979,933790,Commentator,NULL,NULL,0,NULL,NULL 34722,647230,933790,Commentator,NULL,NULL,0,NULL,NULL 34723,350275,317310,NULL,NULL,NULL,0,NULL,NULL 34724,412002,68665,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 34725,118612,489790,Yearling Popular Question,NULL,NULL,0,NULL,NULL 34726,90854,573973,NULL,NULL,NULL,0,NULL,NULL 34727,185613,87839,NULL,NULL,NULL,0,NULL,NULL 34728,249385,181097,Scholar Commentator Student Editor Teacher Supporter Autobiographer Curious Popular Question,NULL,NULL,0,NULL,NULL 34729,520587,941764,Nice Answer Popular Question Notable Question Promoter Benefactor Nice Answer Yearling Nice Answer Enlightened Announcer Notable Question Nice Answer Taxonomist Announcer Popular Question Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Nice Answer Notable Question jquery Popular Question Nice Answer Popular Question Necromancer Good Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34730,246534,578522,Good Answer Notable Question Announcer Nice Answer Caucus Yearling Popular Question Famous Question Revival,NULL,When using rewire and sinon fakeTimer order matters javascript testing mocha setinterval sinon pWhile testing setup with timed interval came across this problem ppFirst of all am using href http sinonjs org docs clock rel nofollow sinon fakeTimers to create the right timed environment href https github com jhnns rewire rel nofollow rewire is used as dependency injection library ppThe problem is that sometimes applying the fake timer seems to fail when rewire is involved while in some other instances it perfectly working ppPlease check out this setup pp emtest js em ppre code use strict require should var sinon require sinon var rewire require rewire this sample will not fall under the fake timervar SampleGlobal rewire testmodule describe Sinon fake timer with rewirejs function var clock before function clock sinon useFakeTimers after function clock restore it work for locally rewired module function var spy sinon spy locally inject required module var Sample rewire testmodule new Sample on test spy spy callCount should equal clock tick 5000 spy callCount should equal it break when rewired from global scope function var spy sinon spy the module is globally inject required new SampleGlobal on test spy spy callCount should equal clock tick 5000 spy callCount should equal code prepNow to include second module with the interval pp emtestmodule js em ppre code use strict var EventEmitter require events EventEmitter var util require util function Sample this setInterval this emit bind this test 5000 util inherits Sample EventEmitter module exports Sample code prepNow as you can see the second test fails This is the test that is using the module as it required on top of the script aka on the global scope So suspect it because how rewire works and due to when the fakeTimers get installed ppCan anyone explain this in detail Is there way can use inject required modules with rewire on the global scope or do always have to rewire them at the lower levels yes that true and it acceptable for the specific test cases,1,When using rewire and sinon fakeTimer order matters javascript testing mocha setinterval sinon pWhile testing setup with timed interval came across this problem ppFirst of all am using href http sinonjs org docs clock rel nofollow sinon fakeTimers to create the right timed environment href https github com jhnns rewire rel nofollow rewire is used as dependency injection library ppThe problem is that sometimes applying the fake timer seems to fail when rewire is involved while in some other instances it perfectly working ppPlease check out this setup pp emtest js em ppre code use strict require should var sinon require sinon var rewire require rewire this sample will not fall under the fake timervar SampleGlobal rewire testmodule describe Sinon fake timer with rewirejs function var clock before function clock sinon useFakeTimers after function clock restore it work for locally rewired module function var spy sinon spy locally inject required module var Sample rewire testmodule new Sample on test spy spy callCount should equal clock tick 5000 spy callCount should equal it break when rewired from global scope function var spy sinon spy the module is globally inject required new SampleGlobal on test spy spy callCount should equal clock tick 5000 spy callCount should equal code prepNow to include second module with the interval pp emtestmodule js em ppre code use strict var EventEmitter require events EventEmitter var util require util function Sample this setInterval this emit bind this test 5000 util inherits Sample EventEmitter module exports Sample code prepNow as you can see the second test fails This is the test that is using the module as it required on top of the script aka on the global scope So suspect it because how rewire works and due to when the fakeTimers get installed ppCan anyone explain this in detail Is there way can use inject required modules with rewire on the global scope or do always have to rewire them at the lower levels,NULL 34731,835537,1315328,NULL,NULL,NULL,0,NULL,NULL 34732,896168,1043296,Popular Question,NULL,NULL,0,NULL,NULL 34733,140006,308868,Nice Answer Yearling Famous Question Popular Question Nice Question Notable Question Nice Answer Enlightened Yearling Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34734,7461741,125645,Good Question,NULL,NULL,0,NULL,NULL 34735,1995561,274695,Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Yearling Announcer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34736,506635,274695,Nice Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Yearling Announcer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34737,222363,245540,Necromancer,NULL,NULL,0,NULL,NULL 34738,719283,464092,NULL,NULL,NULL,0,NULL,NULL 34739,1649271,1098378,NULL,NULL,NULL,0,NULL,NULL 34740,73437,33245,Great Answer Good Answer Nice Answer Guru ruby ruby-on-rails Good Answer Yearling Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Enlightened Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34741,25158,247563,Yearling Nice Answer Enlightened Nice Answer Popular Question Good Answer Great Answer Yearling Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 34742,18802,127549,Guru Good Answer Yearling Nice Answer Tumbleweed Famous Question Caucus Constituent jquery Yearling Famous Question Caucus Constituent Notable Question Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 34743,148559,196567,Nice Answer Supporter,NULL,NULL,0,NULL,NULL 34744,364293,642051,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 34745,667073,642051,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 34746,71908,379336,Commentator Popular Question,NULL,NULL,0,NULL,NULL 34747,533500,185830,NULL,NULL,NULL,0,NULL,NULL 34748,175121,154553,Notable Question Popular Question Yearling Caucus Guru Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 34749,675013,1208631,NULL,NULL,NULL,0,NULL,NULL 34750,93613,388847,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34751,226784,224662,NULL,NULL,NULL,0,NULL,NULL 34752,390102,787106,Informed Autobiographer Editor Census Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 34753,20864,1163786,Necromancer Yearling Good Answer Nice Answer Necromancer Necromancer Revival Nice Answer Enlightened Necromancer Necromancer Necromancer Nice Answer Documentation Pioneer Necromancer Nice Answer Necromancer Necromancer Necromancer Nice Answer Enlightened Necromancer Necromancer Caucus Necromancer Good Answer Guru Constituent Announcer Nice Answer Nice Answer Nice Answer Good Answer Yearling Necromancer Nice Answer Enlightened Nice Answer Nice Answer Necromancer Good Answer Notable Question Necromancer Necromancer Revival Revival Revival Nice Answer windows Announcer Taxonomist Necromancer Good Answer Caucus Constituent Nice Answer Announcer Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Revival Documentation User Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Revival Yearling Good Answer composer-php Necromancer Revival Great Answer Populist Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Necromancer Announcer Nice Answer Announcer Good Answer Announcer Good Answer Good Answer Guru Nice Answer,NULL,blockquote pI wanted to to print one single line in different color blockquotepUse ANSI Escape Sequences pp strongWindows before 10 no native support for ANSI colors on the console strong ppFor Windows version below 10 the Windows command console doesn support output coloring by default You could install either href http cmder net Cmder href https conemu github io ConEmu href https github com adoxa ansicon releases ANSICON or href https mintty github io Mintty used by default in GitBash and Cygwin to add coloring support to your Windows command console pp strongWindows 10 Command Line Colors strong ppStarting from Windows 10 the Windows console support ANSI Escape Sequences and some colors by default The feature shipped with the Threshold Update in Nov 2015 pp strong href https msdn microsoft com en us library windows desktop mt638032 vs 85 aspx MSDN Documentation strong pp strongDemo strong pp href https stack imgur com gpDPE png img src https stack imgur com gpDPE png alt enter image description here pp strongBatch Command strong ppThe href https gist github com mlocati fdabcaeb8071d5c75a2d51712db24011 file win10colors cmd codewin10colors cmd code was written by href https github com mlocati Michele Locati ppre code offclsecho 101 93m STYLES 0mecho lt ESC gt 0m 0mReset 0mecho lt ESC gt 1m 1mBold 0mecho lt ESC gt 4m 4mUnderline 0mecho lt ESC gt 7m 7mInverse 0mecho echo 101 93m NORMAL FOREGROUND COLORS 0mecho lt ESC gt 30m 30mBlack 0m black echo lt ESC gt 31m 31mRed 0mecho lt ESC gt 32m 32mGreen 0mecho lt ESC gt 33m 33mYellow 0mecho lt ESC gt 34m 34mBlue 0mecho lt ESC gt 35m 35mMagenta 0mecho lt ESC gt 36m 36mCyan 0mecho lt ESC gt 37m 37mWhite 0mecho echo 101 93m NORMAL BACKGROUND COLORS 0mecho lt ESC gt 40m 40mBlack 0mecho lt ESC gt 41m 41mRed 0mecho lt ESC gt 42m 42mGreen 0mecho lt ESC gt 43m 43mYellow 0mecho lt ESC gt 44m 44mBlue 0mecho lt ESC gt 45m 45mMagenta 0mecho lt ESC gt 46m 46mCyan 0mecho lt ESC gt 47m 47mWhite 0m white echo echo 101 93m STRONG FOREGROUND COLORS 0mecho lt ESC gt 90m 90mWhite 0mecho lt ESC gt 91m 91mRed 0mecho lt ESC gt 92m 92mGreen 0mecho lt ESC gt 93m 93mYellow 0mecho lt ESC gt 94m 94mBlue 0mecho lt ESC gt 95m 95mMagenta 0mecho lt ESC gt 96m 96mCyan 0mecho lt ESC gt 97m 97mWhite 0mecho echo 101 93m STRONG BACKGROUND COLORS 0mecho lt ESC gt 100m 100mBlack 0mecho lt ESC gt 101m 101mRed 0mecho lt ESC gt 102m 102mGreen 0mecho lt ESC gt 103m 103mYellow 0mecho lt ESC gt 104m 104mBlue 0mecho lt ESC gt 105m 105mMagenta 0mecho lt ESC gt 106m 106mCyan 0mecho lt ESC gt 107m 107mWhite 0mecho echo 101 93m COMBINATIONS 0mecho lt ESC gt 31m 31mred foreground color 0mecho lt ESC gt 7m 7minverse foreground lt gt background 0mecho lt ESC gt 31m 31minverse red foreground color 0mecho lt ESC gt 7m and nested lt ESC gt 31m 7mbefore 31mnested 0mecho lt ESC gt 31m and nested lt ESC gt 7m 31mbefore 7mnested 0m code pre That odd but local problem Make sure you have Windows 10 with the Threshold update Nov 2015 It needed for color support It working Just tested with Version 10 14393 You saved the content to file colors cmd and ran that right blockquote pI wanted to to print one single line in different color blockquotepUse ANSI Escape Sequences pp strongWindows before 10 no native support for ANSI colors on the console strong ppFor Windows version below 10 the Windows command console doesn support output coloring by default You could install either href http cmder net Cmder href https conemu github io ConEmu href https github com adoxa ansicon releases ANSICON or href https mintty github io Mintty used by default in GitBash and Cygwin to add coloring support to your Windows command console pp strongWindows 10 Command Line Colors strong ppStarting from Windows 10 the Windows console support ANSI Escape Sequences and some colors by default The feature shipped with the Threshold Update in Nov 2015 pp strong href https msdn microsoft com en us library windows desktop mt638032 vs 85 aspx MSDN Documentation strong pp strongDemo strong pp href https stack imgur com gpDPE png img src https stack imgur com gpDPE png alt enter image description here pp strongBatch Command strong ppThe href https gist github com mlocati fdabcaeb8071d5c75a2d51712db24011 file win10colors cmd codewin10colors cmd code was written by href https github com mlocati Michele Locati ppre code offclsecho 101 93m STYLES 0mecho lt ESC gt 0m 0mReset 0mecho lt ESC gt 1m 1mBold 0mecho lt ESC gt 4m 4mUnderline 0mecho lt ESC gt 7m 7mInverse 0mecho echo 101 93m NORMAL FOREGROUND COLORS 0mecho lt ESC gt 30m 30mBlack 0m black echo lt ESC gt 31m 31mRed 0mecho lt ESC gt 32m 32mGreen 0mecho lt ESC gt 33m 33mYellow 0mecho lt ESC gt 34m 34mBlue 0mecho lt ESC gt 35m 35mMagenta 0mecho lt ESC gt 36m 36mCyan 0mecho lt ESC gt 37m 37mWhite 0mecho echo 101 93m NORMAL BACKGROUND COLORS 0mecho lt ESC gt 40m 40mBlack 0mecho lt ESC gt 41m 41mRed 0mecho lt ESC gt 42m 42mGreen 0mecho lt ESC gt 43m 43mYellow 0mecho lt ESC gt 44m 44mBlue 0mecho lt ESC gt 45m 45mMagenta 0mecho lt ESC gt 46m 46mCyan 0mecho lt ESC gt 47m 47mWhite 0m white echo echo 101 93m STRONG FOREGROUND COLORS 0mecho lt ESC gt 90m 90mWhite 0mecho lt ESC gt 91m 91mRed 0mecho lt ESC gt 92m 92mGreen 0mecho lt ESC gt 93m 93mYellow 0mecho lt ESC gt 94m 94mBlue 0mecho lt ESC gt 95m 95mMagenta 0mecho lt ESC gt 96m 96mCyan 0mecho lt ESC gt 97m 97mWhite 0mecho echo 101 93m STRONG BACKGROUND COLORS 0mecho lt ESC gt 100m 100mBlack 0mecho lt ESC gt 101m 101mRed 0mecho lt ESC gt 102m 102mGreen 0mecho lt ESC gt 103m 103mYellow 0mecho lt ESC gt 104m 104mBlue 0mecho lt ESC gt 105m 105mMagenta 0mecho lt ESC gt 106m 106mCyan 0mecho lt ESC gt 107m 107mWhite 0mecho echo 101 93m COMBINATIONS 0mecho lt ESC gt 31m 31mred foreground color 0mecho lt ESC gt 7m 7minverse foreground lt gt background 0mecho lt ESC gt 31m 31minverse red foreground color 0mecho lt ESC gt 7m and nested lt ESC gt 31m 7mbefore 31mnested 0mecho lt ESC gt 31m and nested lt ESC gt 7m 31mbefore 7mnested 0m code pre Ok Thanks for the feedback cmd or bat both should work But think know why it doesn work it seems the escape symbol is removed when posting to StackOverflow Please do not copy the content from my answer use the content from here instead https gist githubusercontent com mlocati fdabcaeb8071d5c75a2d51712db24011 raw b710612d6320df7e146508094e84b92b34c77d48 win10colors cmd blockquote pI wanted to to print one single line in different color blockquotepUse ANSI Escape Sequences pp strongWindows before 10 no native support for ANSI colors on the console strong ppFor Windows version below 10 the Windows command console doesn support output coloring by default You could install either href http cmder net Cmder href https conemu github io ConEmu href https github com adoxa ansicon releases ANSICON or href https mintty github io Mintty used by default in GitBash and Cygwin to add coloring support to your Windows command console pp strongWindows 10 Command Line Colors strong ppStarting from Windows 10 the Windows console support ANSI Escape Sequences and some colors by default The feature shipped with the Threshold Update in Nov 2015 pp strong href https msdn microsoft com en us library windows desktop mt638032 vs 85 aspx MSDN Documentation strong pp strongDemo strong pp href https stack imgur com gpDPE png img src https stack imgur com gpDPE png alt enter image description here pp strongBatch Command strong ppThe href https gist github com mlocati fdabcaeb8071d5c75a2d51712db24011 file win10colors cmd codewin10colors cmd code was written by href https github com mlocati Michele Locati ppre code offclsecho 101 93m STYLES 0mecho lt ESC gt 0m 0mReset 0mecho lt ESC gt 1m 1mBold 0mecho lt ESC gt 4m 4mUnderline 0mecho lt ESC gt 7m 7mInverse 0mecho echo 101 93m NORMAL FOREGROUND COLORS 0mecho lt ESC gt 30m 30mBlack 0m black echo lt ESC gt 31m 31mRed 0mecho lt ESC gt 32m 32mGreen 0mecho lt ESC gt 33m 33mYellow 0mecho lt ESC gt 34m 34mBlue 0mecho lt ESC gt 35m 35mMagenta 0mecho lt ESC gt 36m 36mCyan 0mecho lt ESC gt 37m 37mWhite 0mecho echo 101 93m NORMAL BACKGROUND COLORS 0mecho lt ESC gt 40m 40mBlack 0mecho lt ESC gt 41m 41mRed 0mecho lt ESC gt 42m 42mGreen 0mecho lt ESC gt 43m 43mYellow 0mecho lt ESC gt 44m 44mBlue 0mecho lt ESC gt 45m 45mMagenta 0mecho lt ESC gt 46m 46mCyan 0mecho lt ESC gt 47m 47mWhite 0m white echo echo 101 93m STRONG FOREGROUND COLORS 0mecho lt ESC gt 90m 90mWhite 0mecho lt ESC gt 91m 91mRed 0mecho lt ESC gt 92m 92mGreen 0mecho lt ESC gt 93m 93mYellow 0mecho lt ESC gt 94m 94mBlue 0mecho lt ESC gt 95m 95mMagenta 0mecho lt ESC gt 96m 96mCyan 0mecho lt ESC gt 97m 97mWhite 0mecho echo 101 93m STRONG BACKGROUND COLORS 0mecho lt ESC gt 100m 100mBlack 0mecho lt ESC gt 101m 101mRed 0mecho lt ESC gt 102m 102mGreen 0mecho lt ESC gt 103m 103mYellow 0mecho lt ESC gt 104m 104mBlue 0mecho lt ESC gt 105m 105mMagenta 0mecho lt ESC gt 106m 106mCyan 0mecho lt ESC gt 107m 107mWhite 0mecho echo 101 93m COMBINATIONS 0mecho lt ESC gt 31m 31mred foreground color 0mecho lt ESC gt 7m 7minverse foreground lt gt background 0mecho lt ESC gt 31m 31minverse red foreground color 0mecho lt ESC gt 7m and nested lt ESC gt 31m 7mbefore 31mnested 0mecho lt ESC gt 31m and nested lt ESC gt 7m 31mbefore 7mnested 0m code pre You re welcome,1,NULL,How to echo with different colors in the Windows command line windows command line colors pI know that the codecolor bf code command sets the colors of the whole command line window but wanted to to print one single line in different color blockquote pI wanted to to print one single line in different color blockquotepUse ANSI Escape Sequences pp strongWindows before 10 no native support for ANSI colors on the console strong ppFor Windows version below 10 the Windows command console doesn support output coloring by default You could install either href http cmder net Cmder href https conemu github io ConEmu href https github com adoxa ansicon releases ANSICON or href https mintty github io Mintty used by default in GitBash and Cygwin to add coloring support to your Windows command console pp strongWindows 10 Command Line Colors strong ppStarting from Windows 10 the Windows console support ANSI Escape Sequences and some colors by default The feature shipped with the Threshold Update in Nov 2015 pp strong href https msdn microsoft com en us library windows desktop mt638032 vs 85 aspx MSDN Documentation strong pp strongDemo strong pp href https stack imgur com gpDPE png img src https stack imgur com gpDPE png alt enter image description here pp strongBatch Command strong ppThe href https gist github com mlocati fdabcaeb8071d5c75a2d51712db24011 file win10colors cmd codewin10colors cmd code was written by href https github com mlocati Michele Locati ppre code offclsecho 101 93m STYLES 0mecho lt ESC gt 0m 0mReset 0mecho lt ESC gt 1m 1mBold 0mecho lt ESC gt 4m 4mUnderline 0mecho lt ESC gt 7m 7mInverse 0mecho echo 101 93m NORMAL FOREGROUND COLORS 0mecho lt ESC gt 30m 30mBlack 0m black echo lt ESC gt 31m 31mRed 0mecho lt ESC gt 32m 32mGreen 0mecho lt ESC gt 33m 33mYellow 0mecho lt ESC gt 34m 34mBlue 0mecho lt ESC gt 35m 35mMagenta 0mecho lt ESC gt 36m 36mCyan 0mecho lt ESC gt 37m 37mWhite 0mecho echo 101 93m NORMAL BACKGROUND COLORS 0mecho lt ESC gt 40m 40mBlack 0mecho lt ESC gt 41m 41mRed 0mecho lt ESC gt 42m 42mGreen 0mecho lt ESC gt 43m 43mYellow 0mecho lt ESC gt 44m 44mBlue 0mecho lt ESC gt 45m 45mMagenta 0mecho lt ESC gt 46m 46mCyan 0mecho lt ESC gt 47m 47mWhite 0m white echo echo 101 93m STRONG FOREGROUND COLORS 0mecho lt ESC gt 90m 90mWhite 0mecho lt ESC gt 91m 91mRed 0mecho lt ESC gt 92m 92mGreen 0mecho lt ESC gt 93m 93mYellow 0mecho lt ESC gt 94m 94mBlue 0mecho lt ESC gt 95m 95mMagenta 0mecho lt ESC gt 96m 96mCyan 0mecho lt ESC gt 97m 97mWhite 0mecho echo 101 93m STRONG BACKGROUND COLORS 0mecho lt ESC gt 100m 100mBlack 0mecho lt ESC gt 101m 101mRed 0mecho lt ESC gt 102m 102mGreen 0mecho lt ESC gt 103m 103mYellow 0mecho lt ESC gt 104m 104mBlue 0mecho lt ESC gt 105m 105mMagenta 0mecho lt ESC gt 106m 106mCyan 0mecho lt ESC gt 107m 107mWhite 0mecho echo 101 93m COMBINATIONS 0mecho lt ESC gt 31m 31mred foreground color 0mecho lt ESC gt 7m 7minverse foreground lt gt background 0mecho lt ESC gt 31m 31minverse red foreground color 0mecho lt ESC gt 7m and nested lt ESC gt 31m 7mbefore 31mnested 0mecho lt ESC gt 31m and nested lt ESC gt 7m 31mbefore 7mnested 0m code pre 34754,715697,878146,Popular Question,NULL,NULL,0,NULL,NULL 34755,125285,1100709,Good Answer Yearling,NULL,NULL,0,NULL,NULL 34756,60816,781876,NULL,NULL,NULL,0,NULL,NULL 34757,130605,1376676,NULL,NULL,NULL,0,NULL,NULL 34758,120650,158014,Guru Nice Answer Nice Answer Enlightened Yearling Notable Question Great Answer Good Answer Announcer Nice Answer Notable Question Yearling Nice Answer Enlightened Announcer Notable Question Yearling Announcer Guru Famous Question,NULL,NULL,0,NULL,NULL 34759,6053,394587,Yearling,NULL,NULL,0,NULL,NULL 34760,521774,155722,Custodian Yearling Notable Question Notable Question Revival Necromancer Revival Caucus Popular Question Necromancer Civic Duty Census Yearling Necromancer Caucus Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34761,497634,333633,Yearling,NULL,NULL,0,NULL,NULL 34762,692649,986744,Good Answer Notable Question Nice Question Yearling Good Question Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 34763,148101,321137,NULL,NULL,NULL,0,NULL,NULL 34764,908531,559884,Yearling Popular Question Custodian Notable Question Revival Nice Answer Notable Question Great Question Caucus Yearling Popular Question Necromancer Famous Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 34765,387369,263052,Yearling Nice Answer Enlightened Proofreader Necromancer Famous Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34766,142994,1011582,Announcer Nice Answer Yearling Nice Answer Enlightened Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 34767,8370519,1011582,Announcer Nice Answer Yearling Nice Answer Enlightened Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 34768,885151,1388964,Popular Question Yearling Good Question Necromancer Popular Question Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 34769,270481,576372,Caucus Critic Yearling Nice Answer,NULL,NULL,0,NULL,NULL 34770,200396,149230,Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 34771,997290,214555,NULL,NULL,NULL,0,NULL,NULL 34772,857972,1338105,NULL,NULL,NULL,0,NULL,NULL 34773,129973,591434,Popular Question,NULL,NULL,0,NULL,NULL 34774,96145,831197,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34775,168479,1281920,NULL,NULL,NULL,0,NULL,NULL 34776,163435,174259,NULL,NULL,NULL,0,NULL,NULL 34777,2293505,174259,NULL,NULL,NULL,0,NULL,NULL 34778,52393,78255,Popular Question Yearling Enthusiast Notable Question Nice Answer Yearling Famous Question Good Question Nice Question Great Question Popular Question Good Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 34779,7632763,78255,Popular Question Yearling Enthusiast Notable Question Nice Answer Yearling Famous Question Good Question Nice Question Great Question Popular Question Good Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 34780,1066744,78255,Popular Question Yearling Enthusiast Notable Question Nice Answer Yearling Famous Question Good Question Nice Question Great Question Popular Question Good Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 34781,110287,473346,NULL,NULL,NULL,0,NULL,NULL 34782,758757,532785,Enthusiast Notable Question Nice Question Nice Answer Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 34783,691830,223386,Nice Answer Enlightened Nice Answer Famous Question Notable Question Famous Question Popular Question Nice Answer Nice Answer Enlightened Good Answer Popular Question Famous Question Notable Question Popular Question Popular Question Good Answer Nice Question Popular Question Nice Answer Notable Question Notable Question Good Question Nice Question Favorite Question Guru Famous Question Popular Question Nice Answer Popular Question Nice Question Guru Notable Question Popular Question Good Answer Popular Question Nice Answer Enlightened Stellar Question Popular Question Popular Question Nice Question Caucus Constituent Popular Question Yearling Good Question Popular Question Notable Question Famous Question Notable Question Famous Question Generalist Custodian Notable Question Famous Question Guru sql Notable Question Nice Answer Enlightened Famous Question Good Question Popular Question Great Question Notable Question Good Answer Famous Question google-maps Nice Question Nice Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Caucus Constituent Notable Question Good Question Good Answer Popular Question Famous Question Popular Question Notable Question Nice Answer Enlightened Popular Question Famous Question Good Question Notable Question Good Answer Famous Question Nice Answer Great Answer Epic Electorate Guru Yearling Popular Question Guru Census Notable Question Notable Question Nice Question Popular Question Good Answer Great Answer Caucus Famous Question Nice Answer Constituent jquery Nice Answer Enlightened Popular Question Popular Question Famous Question Notable Question Guru Notable Question Nice Question Nice Question Notable Question Notable Question Good Answer javascript Good Question Nice Question Good Answer Nice Answer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 34784,94782,535193,NULL,NULL,NULL,0,NULL,NULL 34785,578773,1294999,NULL,NULL,NULL,0,NULL,NULL 34786,2728772,1195523,NULL,NULL,NULL,0,NULL,NULL 34787,359649,784743,Informed Popular Question Custodian Citizen Patrol Custodian Census Announcer,NULL,NULL,0,NULL,NULL 34788,17276,380625,Nice Answer Nice Answer Organizer Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Caucus Guru Good Answer Yearling Good Answer,NULL,href http docs python org library unittest html unittest TestCase assertRaises codeassertRaises code is context manager since Python so you can do it like this ppre codeclass testExample unittest TestCase def test generatorExample self with self assertRaises RuntimeError list Example generatorExample code prepIf you have Python lt then you can use codelambda code to exhaust the generator ppre codeself assertRaises RuntimeError lambda list Example generatorExample code pre assume you can pass multiple exception classes in tuple like you do with except SomeException SomeOtherException,0,NULL,NULL 34789,3910303,380625,Nice Answer Nice Answer Organizer Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Caucus Guru Good Answer Yearling Good Answer,NULL,href http docs python org library unittest html unittest TestCase assertRaises codeassertRaises code is context manager since Python so you can do it like this ppre codeclass testExample unittest TestCase def test generatorExample self with self assertRaises RuntimeError list Example generatorExample code prepIf you have Python lt then you can use codelambda code to exhaust the generator ppre codeself assertRaises RuntimeError lambda list Example generatorExample code pre assume you can pass multiple exception classes in tuple like you do with except SomeException SomeOtherException,0,NULL,NULL 34790,5336,783580,Student Scholar Editor Commentator Critic Excavator,NULL,NULL,0,NULL,NULL 34791,28740,330267,Guru Nice Answer Announcer phpunit Nice Answer Enlightened Guru unit-testing Revival Nice Answer Enlightened Yearling Populist Good Answer Nice Question Nice Answer Cleanup Enlightened Famous Question Caucus Nice Answer Enlightened mink Nice Answer Enlightened Nice Answer Enlightened Revival Good Answer Nice Answer Nice Answer Enlightened symfony symfony symfony Great Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened php Nice Answer Nice Answer Enlightened Great Answer Caucus Enlightened Announcer Nice Answer Announcer Documentation User Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Census Announcer Nice Answer Caucus Guru Yearling Good Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 34792,53403,362830,Popular Question,NULL,NULL,0,NULL,NULL 34793,28774,360268,Nice Answer Yearling Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 34794,71475,1062889,NULL,NULL,NULL,0,NULL,NULL 34795,478552,1314232,NULL,NULL,NULL,0,NULL,NULL 34796,19088,341025,NULL,NULL,NULL,0,NULL,NULL 34797,194705,382279,Custodian Citizen Patrol Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34798,25595,830958,Popular Question,NULL,NULL,0,NULL,NULL 34799,103798,840774,Supporter,NULL,NULL,0,NULL,NULL 34800,671380,763134,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34801,31196,1199851,Revival Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34802,306641,741817,NULL,NULL,NULL,0,NULL,NULL 34803,61409,568004,NULL,NULL,NULL,0,NULL,NULL 34804,29955,69768,Yearling Yearling Yearling Custodian,NULL,pThere is much easier solution if you take advantage of the built in codereverseObjectEnumerator code method on codeNSArray code and the codeallObjects code method of codeNSEnumerator code ppre codeNSArray reversedArray startArray reverseObjectEnumerator allObjects code prep href https developer apple com documentation foundation nsenumerator 1417755 allobjects language objc rel noreferrer codeallObjects code is documented as returning an array with the objects that have not yet been traversed with codenextObject code in order pblockquote pThis array contains all the remaining objects of the enumerator strongin enumerated order strong blockquote Hi not sure why that would cause it to fail None of the methods involved in my prescription involve mutating an object Do you mean NSEnumerator can be used at all for some reason on mutable array allObjects,0,NULL,NULL 34805,211651,388906,NULL,NULL,NULL,0,NULL,NULL 34806,648285,491713,Good Question,NULL,NULL,0,NULL,NULL 34807,86133,1116720,Supporter,NULL,NULL,0,NULL,NULL 34808,171430,9365,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34809,358705,177972,Critic Yearling Popular Question Popular Question Commentator Editor Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34810,918731,1044788,NULL,NULL,NULL,0,NULL,NULL 34811,699483,1088774,Popular Question,NULL,NULL,0,NULL,NULL 34812,218734,424765,NULL,NULL,NULL,0,NULL,NULL 34813,217744,344306,Yearling Enlightened Caucus Caucus Self-Learner Commentator Civic Duty Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 34814,1342647,576847,NULL,NULL,NULL,0,NULL,NULL 34815,507129,1458968,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34816,948097,766555,NULL,NULL,NULL,0,NULL,NULL 34817,191760,846076,Yearling Caucus Constituent Necromancer Popular Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 34818,10673,73825,NULL,NULL,NULL,0,NULL,NULL 34819,232225,373080,NULL,NULL,NULL,0,NULL,NULL 34820,50227,9748,Yearling Yearling,NULL,NULL,0,NULL,NULL 34821,901533,1109607,NULL,NULL,NULL,0,NULL,NULL 34822,352842,540997,NULL,NULL,NULL,0,NULL,NULL 34823,210350,806988,Nice Question Yearling Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 34824,2726170,1032837,Notable Question,NULL,NULL,0,NULL,NULL 34825,1233353,1119313,Revival,NULL,NULL,0,NULL,NULL 34826,7726,1278853,NULL,NULL,NULL,0,NULL,NULL 34827,497302,204209,Notable Question Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 34828,207701,108881,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 34829,85989,550075,Yearling,NULL,NULL,0,NULL,NULL 34830,12370,336242,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 34831,167736,860827,NULL,NULL,NULL,0,NULL,NULL 34832,281563,386080,NULL,NULL,NULL,0,NULL,NULL 34833,124885,29903,Nice Answer Yearling Great Answer Good Answer Yearling Pundit Good Answer Yearling,NULL,NULL,0,NULL,NULL 34834,103541,1018024,Popular Question Curious Census Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 34835,319449,392162,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 34836,26191,33682,Popular Question Famous Question Popular Question Famous Question Nice Question Notable Question Nice Question Yearling Nice Question Yearling Necromancer Custodian Nice Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 34837,2884565,1163601,NULL,NULL,NULL,0,NULL,NULL 34838,1906181,1163601,NULL,NULL,NULL,0,NULL,NULL 34839,6587827,1348198,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 34840,503502,1348198,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 34841,561831,856966,NULL,NULL,NULL,0,NULL,NULL 34842,354155,1183366,Popular Question,NULL,NULL,0,NULL,NULL 34843,46423,1591,Nice Answer Nice Answer Enlightened Nice Answer Yearling Custodian Nice Answer Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 34844,3103002,1085858,Teacher Informed Supporter,NULL,NULL,0,NULL,NULL 34845,5034840,1085858,Teacher Informed Supporter,NULL,NULL,0,NULL,NULL 34846,381495,1085858,Teacher Informed Supporter,NULL,NULL,0,NULL,NULL 34847,202197,641979,Excavator Necromancer Yearling Yearling Nice Answer Necromancer Caucus Constituent Curious Notable Question Nice Answer Caucus Documentation User,NULL,NULL,0,NULL,NULL 34848,1296178,341401,NULL,NULL,NULL,0,NULL,NULL 34849,324218,155695,Taxonomist Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question android Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Famous Question Favorite Question Good Question Notable Question Yearling Notable Question Popular Question Notable Question Necromancer Famous Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Question Great Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Good Question Notable Question Popular Question Famous Question Good Question Notable Question Nice Question Popular Question Nice Question Good Answer Popular Question Yearling Popular Question Popular Question Great Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34850,16872,1426328,Editor Yearling,NULL,NULL,0,NULL,NULL 34851,159102,357144,Teacher,NULL,NULL,0,NULL,NULL 34852,1288498,980429,NULL,NULL,NULL,0,NULL,NULL 34853,1337267,953681,NULL,NULL,NULL,0,NULL,NULL 34854,463291,463174,NULL,NULL,NULL,0,NULL,NULL 34855,1125923,104903,Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 34856,66256,1530392,Necromancer Supporter,NULL,NULL,0,NULL,NULL 34857,589762,630010,Popular Question Yearling,NULL,NULL,0,NULL,NULL 34858,274328,309270,Good Question Yearling,NULL,NULL,0,NULL,NULL 34859,510366,386700,NULL,NULL,NULL,0,NULL,NULL 34860,11901,460867,Yearling,NULL,NULL,0,NULL,NULL 34861,605457,952913,NULL,NULL,NULL,0,NULL,NULL 34862,201891,172557,Nice Answer Notable Question Popular Question Yearling Popular Question Famous Question Yearling Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 34863,756651,65781,NULL,NULL,NULL,0,NULL,NULL 34864,1503928,1186505,Yearling Popular Question Tumbleweed Great Question Yearling Popular Question Custodian Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34865,187093,694488,Yearling Popular Question Famous Question Good Question Yearling Self-Learner Caucus Yearling Popular Question Popular Question Necromancer Famous Question Notable Question Notable Question Popular Question Yearling Nice Question Nice Answer Revival,NULL,Knitr ignoring fig pos knitr markdown figure pI am trying to insert figure in RMarkdown document but am having trouble getting it to appear in the right place The figure below shows the problem when using figure caption the figure appears at the top of the page rather than below the relevant paragraph in the document pp href https stack imgur com 0FgIJ png rel noreferrer img src https stack imgur com 0FgIJ png alt enter image description here ppHere is the code for this minimum working example ppre code title Untitled author Author date 27 February 2017 output pdf document fig cap yes keep tex yes setup include FALSE knitr opts chunk set echo TRUE fig pos MarkdownThis is an Markdown document Markdown is simple formatting syntax for authoring HTML PDF and MS Word documents For more details on using Markdown see lt http rmarkdown rstudio com gt newpage Including PlotsYou can also embed plots for example pressure echo FALSE fig cap Hello plot pressure Note that the echo FALSE parameter was added to the code chunk to prevent printing of the code that generated the plot code prepAnd here is the relevant part of the LaTeX output note that the codefig pos code option is ignored ppre codeYou can also embed plots for example begin figure centering includegraphics test files figure latex pressure pdf caption Hello end figure Note that the texttt echo FALSE parameter was added to the codechunk to prevent printing of the code that generated the plot code prepMy set up is described below pretty sure this worked in previous version of knitr but don have note of which version that might have been ppre code gt sessionInfo version 2016 10 31 Platform x86 64 w64 mingw32 x64 64 bit Running under Windows gt x64 build 9200 locale LC COLLATE English United Kingdom 1252 LC CTYPE English United Kingdom 1252 LC MONETARY English United Kingdom 1252 LC NUMERIC LC TIME English United Kingdom 1252 attached base packages stats graphics grDevices utils datasets methods base loaded via namespace and not attached backports magrittr rprojroot htmltools tools yaml 14 Rcpp 12 stringi rmarkdown knitr 15 11 stringr digest 12 evaluate 10 code pre ve got 19 Might need to downgrade Knitr ignoring fig pos knitr markdown figure pI am trying to insert figure in RMarkdown document but am having trouble getting it to appear in the right place The figure below shows the problem when using figure caption the figure appears at the top of the page rather than below the relevant paragraph in the document pp href https stack imgur com 0FgIJ png rel noreferrer img src https stack imgur com 0FgIJ png alt enter image description here ppHere is the code for this minimum working example ppre code title Untitled author Author date 27 February 2017 output pdf document fig cap yes keep tex yes setup include FALSE knitr opts chunk set echo TRUE fig pos MarkdownThis is an Markdown document Markdown is simple formatting syntax for authoring HTML PDF and MS Word documents For more details on using Markdown see lt http rmarkdown rstudio com gt newpage Including PlotsYou can also embed plots for example pressure echo FALSE fig cap Hello plot pressure Note that the echo FALSE parameter was added to the code chunk to prevent printing of the code that generated the plot code prepAnd here is the relevant part of the LaTeX output note that the codefig pos code option is ignored ppre codeYou can also embed plots for example begin figure centering includegraphics test files figure latex pressure pdf caption Hello end figure Note that the texttt echo FALSE parameter was added to the codechunk to prevent printing of the code that generated the plot code prepMy set up is described below pretty sure this worked in previous version of knitr but don have note of which version that might have been ppre code gt sessionInfo version 2016 10 31 Platform x86 64 w64 mingw32 x64 64 bit Running under Windows gt x64 build 9200 locale LC COLLATE English United Kingdom 1252 LC CTYPE English United Kingdom 1252 LC MONETARY English United Kingdom 1252 LC NUMERIC LC TIME English United Kingdom 1252 attached base packages stats graphics grDevices utils datasets methods base loaded via namespace and not attached backports magrittr rprojroot htmltools tools yaml 14 Rcpp 12 stringi rmarkdown knitr 15 11 stringr digest 12 evaluate 10 code pre Yes downgraded to 17 and all is well once more Thanks,1,Knitr ignoring fig pos knitr markdown figure pI am trying to insert figure in RMarkdown document but am having trouble getting it to appear in the right place The figure below shows the problem when using figure caption the figure appears at the top of the page rather than below the relevant paragraph in the document pp href https stack imgur com 0FgIJ png rel noreferrer img src https stack imgur com 0FgIJ png alt enter image description here ppHere is the code for this minimum working example ppre code title Untitled author Author date 27 February 2017 output pdf document fig cap yes keep tex yes setup include FALSE knitr opts chunk set echo TRUE fig pos MarkdownThis is an Markdown document Markdown is simple formatting syntax for authoring HTML PDF and MS Word documents For more details on using Markdown see lt http rmarkdown rstudio com gt newpage Including PlotsYou can also embed plots for example pressure echo FALSE fig cap Hello plot pressure Note that the echo FALSE parameter was added to the code chunk to prevent printing of the code that generated the plot code prepAnd here is the relevant part of the LaTeX output note that the codefig pos code option is ignored ppre codeYou can also embed plots for example begin figure centering includegraphics test files figure latex pressure pdf caption Hello end figure Note that the texttt echo FALSE parameter was added to the codechunk to prevent printing of the code that generated the plot code prepMy set up is described below pretty sure this worked in previous version of knitr but don have note of which version that might have been ppre code gt sessionInfo version 2016 10 31 Platform x86 64 w64 mingw32 x64 64 bit Running under Windows gt x64 build 9200 locale LC COLLATE English United Kingdom 1252 LC CTYPE English United Kingdom 1252 LC MONETARY English United Kingdom 1252 LC NUMERIC LC TIME English United Kingdom 1252 attached base packages stats graphics grDevices utils datasets methods base loaded via namespace and not attached backports magrittr rprojroot htmltools tools yaml 14 Rcpp 12 stringi rmarkdown knitr 15 11 stringr digest 12 evaluate 10 code pre,NULL 34866,666665,1463997,NULL,NULL,NULL,0,NULL,NULL 34867,1729490,275651,NULL,NULL,NULL,0,NULL,NULL 34868,820475,969421,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34869,56331,975957,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 34870,70950,617364,Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Question jquery Yearling Necromancer Good Answer javascript Yearling,NULL,NULL,0,NULL,NULL 34871,1712343,844499,NULL,NULL,NULL,0,NULL,NULL 34872,530451,844499,NULL,NULL,NULL,0,NULL,NULL 34873,312277,355315,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 34874,321440,1206516,Yearling Editor Scholar,NULL,NULL,0,NULL,NULL 34875,163430,471696,Announcer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 34876,1177433,834193,Informed Critic,NULL,NULL,0,NULL,NULL 34877,286354,215534,Good Answer Revival Notable Question Nice Question Pundit .net Nice Question Popular Question Good Answer Yearling Popular Question Revival Revival Popular Question Custodian Great Answer Announcer Yearling Good Answer Guru Nice Answer Good Answer task-parallel-library Yearling,NULL,NULL,0,NULL,NULL 34878,71187,199787,Popular Question Nice Answer Enlightened Yearling Popular Question Good Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 34879,1386427,57458,Yearling Populist Great Answer Stellar Question Nice Answer Yearling Guru Good Answer Guru Enlightened Good Question Nice Answer Great Answer Famous Question Good Question Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 34880,368292,265177,Informed,NULL,NULL,0,NULL,NULL 34881,338456,1096346,Revival Notable Question Yearling Caucus Constituent Revival Guru Necromancer Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 34882,904605,1547641,Announcer,NULL,NULL,0,NULL,NULL 34883,33560,7699,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34884,977686,1260199,Tumbleweed,NULL,NULL,0,NULL,NULL 34885,1389341,188955,Nice Answer Enlightened Good Answer Guru Great Answer Yearling Nice Answer Guru Caucus Yearling Announcer Good Answer Nice Answer Caucus Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 34886,673734,39337,Yearling Famous Question Yearling Notable Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 34887,16325,418633,Yearling Necromancer Yearling Caucus Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 34888,22250,342806,NULL,NULL,NULL,0,NULL,NULL 34889,790412,707030,Yearling Curious Necromancer Notable Question Necromancer Census Yearling Nice Answer Good Answer Nice Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 34890,347757,294466,NULL,NULL,NULL,0,NULL,NULL 34891,17401,131023,Necromancer Yearling Yearling Custodian Yearling Civic Duty Peer Pressure Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 34892,151414,228831,NULL,NULL,NULL,0,NULL,NULL 34893,61012,400109,Popular Question,NULL,NULL,0,NULL,NULL 34894,370172,28540,Popular Question Nice Question Famous Question Favorite Question Notable Question Nice Question Good Question Yearling Famous Question Nice Question Popular Question Notable Question Great Question Good Question Tumbleweed Good Answer Famous Question Yearling Popular Question Notable Question Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 34895,285587,3285,Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34896,937340,274614,NULL,NULL,NULL,0,NULL,NULL 34897,124173,84327,NULL,NULL,NULL,0,NULL,NULL 34898,12573,151445,Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Great Answer Yearling node.js Nice Answer Good Answer Announcer Announcer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Yearling Announcer Documentation User Guru Yearling,NULL,NULL,0,NULL,NULL 34899,353409,1248423,NULL,NULL,NULL,0,NULL,NULL 34900,29937,627420,Nice Question Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 34901,307834,1378237,NULL,NULL,NULL,0,NULL,NULL 34902,87267,5587,Notable Question Census Notable Question Census Nice Question,NULL,NULL,0,NULL,NULL 34903,61105,492787,NULL,NULL,NULL,0,NULL,NULL 34904,472738,38911,Yearling Census,NULL,NULL,0,NULL,NULL 34905,702531,1152369,NULL,NULL,NULL,0,NULL,NULL 34906,35797,340748,Nice Question Favorite Question Good Question,NULL,NULL,0,NULL,NULL 34907,114204,7979,Nice Answer Notable Question Nice Question Popular Question jquery Yearling Necromancer Guru Good Answer Good Answer Popular Question Popular Question Nice Answer Popular Question Notable Question Great Answer Yearling Popular Question Popular Question Good Answer Good Question Yearling Nice Answer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 34908,798100,1509177,Necromancer,NULL,NULL,0,NULL,NULL 34909,432353,301896,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34910,2237811,603256,Yearling Popular Question Guru Good Answer Good Answer Nice Answer Enlightened Guru Caucus Pundit Yearling symfony Popular Question Caucus Yearling Great Answer Caucus Announcer Nice Answer,NULL,NULL,0,NULL,NULL 34911,115591,603256,Yearling Popular Question Guru Good Answer Good Answer Nice Answer Enlightened Guru Caucus Pundit Yearling symfony Popular Question Caucus Yearling Great Answer Caucus Announcer Nice Answer,NULL,NULL,0,NULL,NULL 34912,46637,308494,Good Answer Yearling Necromancer Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 34913,102665,630826,NULL,NULL,NULL,0,NULL,NULL 34914,517036,727607,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 34915,80064,1100901,NULL,NULL,NULL,0,NULL,NULL 34916,7141944,1100901,NULL,NULL,NULL,0,NULL,NULL 34917,190765,441605,Notable Question,NULL,NULL,0,NULL,NULL 34918,562332,1515835,Supporter Teacher,NULL,NULL,0,NULL,NULL 34919,7246613,912318,Yearling Nice Answer Popular Question Notable Question Popular Question Yearling Self-Learner Popular Question Caucus Civic Duty Yearling,NULL,NULL,0,NULL,NULL 34920,292808,912318,Yearling Nice Answer Popular Question Notable Question Popular Question Yearling Self-Learner Popular Question Caucus Civic Duty Yearling,NULL,NULL,0,NULL,NULL 34921,309616,1091651,NULL,NULL,NULL,0,NULL,NULL 34922,1522442,1454770,Curious Famous Question Popular Question Informed Autobiographer,NULL,NULL,0,NULL,NULL 34923,74943,1170664,Yearling Necromancer Announcer Nice Answer Yearling Caucus Critic Necromancer Notable Question Yearling Civic Duty Caucus Necromancer Yearling Nice Answer Revival Necromancer,NULL,pAs the comments above state this is an Ansible issue that will apparently be fixed in the release ppI just changed my handler to use the codecommand code module and moved on ppre code name restart sshd command service ssh restart code pre was having problems restarting php7 fpm Switching from the service module to command service php7 fpm restart fixed this for me,0,NULL,NULL 34924,163923,115182,Nice Question Popular Question Notable Question Famous Question Great Question Notable Question Yearling Popular Question Nice Question Good Question Informed Taxonomist Popular Question Famous Question Famous Question Enthusiast Yearling Popular Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34925,196149,22848,Promoter Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 34926,170110,1272323,Yearling Critic Caucus,NULL,NULL,0,NULL,NULL 34927,339551,1272323,Yearling Critic Caucus,NULL,NULL,0,NULL,NULL 34928,169749,1272323,Yearling Critic Caucus,NULL,NULL,0,NULL,NULL 34929,5784,956526,NULL,NULL,NULL,0,NULL,NULL 34930,7229,28070,Good Answer Nice Answer Great Answer Yearling Yearling python Student Yearling,NULL,NULL,0,NULL,NULL 34931,625254,235352,NULL,NULL,NULL,0,NULL,NULL 34932,185959,383585,Yearling Necromancer Nice Answer Nice Question Excavator Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 34933,6641425,1092249,NULL,NULL,NULL,0,NULL,NULL 34934,406097,1092249,NULL,NULL,NULL,0,NULL,NULL 34935,10667,25198,Good Question Notable Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 34936,207389,210172,NULL,NULL,NULL,0,NULL,NULL 34937,357256,1015526,NULL,NULL,NULL,0,NULL,NULL 34938,223172,1322769,NULL,NULL,NULL,0,NULL,NULL 34939,208955,461491,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 34940,7837837,943091,NULL,NULL,NULL,0,NULL,NULL 34941,112833,1032874,Student Editor,NULL,NULL,0,NULL,NULL 34942,831206,357632,Nice Question Critic Popular Question Famous Question Yearling Self-Learner Announcer,NULL,NULL,0,NULL,NULL 34943,1518994,385647,Popular Question,NULL,NULL,0,NULL,NULL 34944,1518996,385647,Popular Question,NULL,NULL,0,NULL,NULL 34945,900131,815544,Nice Answer Yearling Revival Announcer Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 34946,18810,69843,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34947,1529158,619892,Nice Answer Yearling Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 34948,26341,406984,Good Answer Popular Question Self-Learner Great Answer Yearling Famous Question Popular Question Good Question Guru Nice Answer Yearling Informed Documentation User Revival Great Answer Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 34949,3209714,406984,Good Answer Popular Question Self-Learner Great Answer Yearling Famous Question Popular Question Good Question Guru Nice Answer Yearling Informed Documentation User Revival Great Answer Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 34950,535042,417788,NULL,NULL,NULL,0,NULL,NULL 34951,231329,646597,NULL,NULL,NULL,0,NULL,NULL 34952,402399,1520436,Necromancer,NULL,NULL,0,NULL,NULL 34953,172564,955972,Teacher Critic Citizen Patrol Scholar Student,NULL,NULL,0,NULL,NULL 34954,137641,1010119,NULL,NULL,NULL,0,NULL,NULL 34955,247985,174148,Nice Answer,NULL,NULL,0,NULL,NULL 34956,132046,1286705,Nice Answer Yearling Necromancer Good Answer Necromancer Curious Popular Question Yearling Notable Question Nice Question Necromancer Promoter Nice Question Custodian Nice Answer Notable Question Necromancer Famous Question Yearling Nice Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 34957,10121,65094,Necromancer,NULL,NULL,0,NULL,NULL 34958,151339,476716,Good Answer Suffrage Vox Populi Cleanup Famous Question Nice Answer Necromancer Popular Question Nice Question Custodian Custodian Custodian Custodian Custodian Necromancer Nice Answer Notable Question Good Question Nice Answer Inquisitive javascript Revival Revival Yearling Notable Question Caucus Nice Answer Good Answer Good Answer Necromancer Revival Census Nice Answer Enlightened Popular Question Nice Answer regex Necromancer Guru Announcer Announcer Nice Answer Enlightened Nice Answer Good Answer Announcer spring Announcer Announcer Caucus Announcer Necromancer Announcer Popular Question Announcer Nice Answer Popular Question Nice Answer Enlightened Announcer Announcer Announcer Announcer Documentation User Announcer Yearling Announcer Announcer Revival Announcer Announcer Popular Question Nice Answer Good Answer Announcer Revival Necromancer Nice Question Popular Question Popular Question Caucus Good Answer Nice Answer Announcer Announcer Nice Answer Announcer Announcer Announcer Necromancer Electorate Nice Answer Enlightened Notable Question Revival Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Yearling Popular Question,NULL,h3Use codeinstanceof code for custom types h3pre codevar ClassFirst function var ClassSecond function var instance new ClassFirst typeof instance objecttypeof instance ClassFirst falseinstance instanceof Object trueinstance instanceof ClassFirst trueinstance instanceof ClassSecond false code preh3Use codetypeof code for simple built in types h3pre code example string instanceof String falsetypeof example string string true example string instanceof Object falsetypeof example string object falsetrue instanceof Boolean falsetypeof true boolean true99 99 instanceof Number falsetypeof 99 99 number truefunction instanceof Function truetypeof function function true code preh3Use codeinstanceof code for complex built in types h3pre code regularexpression instanceof RegExp truetypeof regularexpression object instanceof Array truetypeof object instanceof Object truetypeof object code prepAnd the last one is little bit tricky ppre codetypeof null object code pre Use instanceof for complex built in types this is still prone to error Better to use ES5 Array isArray et al or the recommended shims How can unit test django messages python django unit testing django testing pIn my django application trying to write unit test that performs an action and then checks the messages in the response ppAs far as can tell there is no nice way of doing this ppI using the CookieStorage storage method and like to do something similar to the following ppre code response self client post do something follow True self assertEquals response context messages fail code prepThe problem is all get back is ppre codeprint response context messages lt django contrib messages storage cookie CookieStorage object at 0x3c55250 gt code prepHow can turn this into something useful or am doing it all wrong ppThanks Daniel if you re still around you may want to change the accepted answer Is there DateTimeFormatter for unix epoch milliseconds java java java time pIs it possible to construct codejava time DateFormatter code such that the following are equivalent ppre codeInstant instant Instant ofEpochMilli System currentTimeMillis assert instant equals Instant now String str String valueOf instant toEpochMilli Instant instant Instant from formatter parse String valueOf System currentTimeMillis assert instant equals Instant now String str formatter format instant code prepIt seems shame to have to special case for when your text input is using epoch millis Because an API that takes String and DateFormatter is nicer than an API that takes String and DateFormatter or String or maybe Number and TemporalUnit or maybe assumes that integers decimals and doubles are epoch seconds while longs and bigintegers are epoch millis and the caller has to parse the string first Is there DateTimeFormatter for unix epoch milliseconds java java java time pIs it possible to construct codejava time DateFormatter code such that the following are equivalent ppre codeInstant instant Instant ofEpochMilli System currentTimeMillis assert instant equals Instant now String str String valueOf instant toEpochMilli Instant instant Instant from formatter parse String valueOf System currentTimeMillis assert instant equals Instant now String str formatter format instant code prepIt seems shame to have to special case for when your text input is using epoch millis And again in the other direction Is there DateTimeFormatter for unix epoch milliseconds java java java time pIs it possible to construct codejava time DateFormatter code such that the following are equivalent ppre codeInstant instant Instant ofEpochMilli System currentTimeMillis assert instant equals Instant now String str String valueOf instant toEpochMilli Instant instant Instant from formatter parse String valueOf System currentTimeMillis assert instant equals Instant now String str formatter format instant code prepIt seems shame to have to special case for when your text input is using epoch millis Because then the caller who is also me will come here to ask this question to make their String Instant and Instant String code nicer nodejs UNABLE TO VERIFY LEAF SIGNATURE with self signed certificate node js ssl pI trying to make node codehttps code work with self signed certificate with request coming to IP address instead of DNS name using this code ppre codevar tls require tls var fs require fs var cert fs readFileSync dirname cert pem var key fs readFileSync dirname key pem var netServer new tls Server options key key cert cert var port 54321 netServer listen port netServer on secureConnection function socket socket end heyyyoooo var client tls connect port localhost ca cert rejectUnauthorized true client on data function data console log data toString process exit code prepIt works fine with the cert generated by href http nodejs org api tls html tls tls ssl these instructions without Subject Alternative Names when the request is issued to codelocalhost code however when replace it with code127 code get codeError Hostname IP doesn match certificate altnames code So ve created new certificate generating with codesubjectAltName code Openssl reads it as ppre code Certificate Data Version 0x2 Serial Number 11107838472034892631 0x9a26f83d0c0ebb57 Signature Algorithm sha1WithRSAEncryption Issuer CN 127 Validity Not Before Jun 24 09 51 56 2013 GMT Not After Jun 22 09 51 56 2023 GMT Subject CN 127 Subject Public Key Info Public Key Algorithm rsaEncryption Public Key 1024 bit Modulus skipped Exponent 65537 0x10001 X509v3 extensions X509v3 Key Usage Key Encipherment Data Encipherment X509v3 Extended Key Usage TLS Web Server Authentication X509v3 Subject Alternative Name DNS localhost IP Address 127 Signature Algorithm sha1WithRSAEncryption skipped code prepSo the SANs were created properly Now getting codeError UNABLE TO VERIFY LEAF SIGNATURE code how do make it work Possible duplicate of How to add custom certificate authority CA to nodejs https stackoverflow com questions 29283040 how to add custom certificate authority ca to nodejs pUse href https docs djangoproject com en dev ref models querysets std fieldlookup isnull rel noreferrer codeisnull code ppre codeusers without reports User objects filter report isnull True users with reports User objects filter report isnull False distinct code prepWhen you use codeisnull False code the codedistinct code is required to prevent duplicate results Better solution for Django 11 https stackoverflow com 51879399 476716 pUse href https docs djangoproject com en dev ref models querysets std fieldlookup isnull rel noreferrer codeisnull code ppre codeusers without reports User objects filter report isnull True users with reports User objects filter report isnull False distinct code prepWhen you use codeisnull False code the codedistinct code is required to prevent duplicate results well the question is how to filter for not exists after all pUse href https docs djangoproject com en dev ref models querysets std fieldlookup isnull rel noreferrer codeisnull code ppre codeusers without reports User objects filter report isnull True users with reports User objects filter report isnull False distinct code prepWhen you use codeisnull False code the codedistinct code is required to prevent duplicate results yes it will almost always be faster to use WHERE NOT EXISTS than DISTINCT OUTER JOIN as it avoids the possibly gigantic intermediate result set href https tools ietf org html rfc7232 section rel noreferrer RFC7232 updates RFC2616 to say pblockquote pThe server generating 304 response MUST generate any of the following header fields that would have been sent in 200 OK response to the same request Cache Control Content Location Date ETag Expires and Vary blockquote if you send the same header values as if it were 200 then yes it will be refreshed,1,Is there DateTimeFormatter for unix epoch milliseconds java java java time pIs it possible to construct codejava time DateFormatter code such that the following are equivalent ppre codeInstant instant Instant ofEpochMilli System currentTimeMillis assert instant equals Instant now String str String valueOf instant toEpochMilli Instant instant Instant from formatter parse String valueOf System currentTimeMillis assert instant equals Instant now String str formatter format instant code prepIt seems shame to have to special case for when your text input is using epoch millis,NULL 34959,245989,522575,NULL,NULL,NULL,0,NULL,NULL 34960,56259,547703,Good Answer Yearling,NULL,NULL,0,NULL,NULL 34961,128672,6762,NULL,NULL,NULL,0,NULL,NULL 34962,103593,334274,Nice Answer Nice Answer Popular Question Yearling Notable Question Good Answer Documentation Beta Nice Answer Good Answer Nice Answer Nice Question Caucus Nice Answer Nice Answer html Announcer Yearling Notable Question Caucus Nice Answer Nice Answer Good Question Nice Answer Enlightened Necromancer Documentation User Announcer Popular Question Guru Necromancer Good Answer Nice Answer Enlightened Yearling Revival Nice Answer Good Answer Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34963,42398,27206,Necromancer Popular Question Good Answer Yearling Guru Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 34964,969400,109652,Popular Question Nice Question Revival Yearling Good Question Benefactor,NULL,NULL,0,NULL,NULL 34965,71444,221277,NULL,NULL,NULL,0,NULL,NULL 34966,905590,372645,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34967,11923,498010,NULL,NULL,NULL,0,NULL,NULL 34968,185028,249011,Yearling Popular Question Popular Question Famous Question Nice Answer Popular Question Custodian Revival Caucus Constituent Yearling Revival Notable Question Nice Answer Yearling Caucus Constituent Notable Question Notable Question,NULL,NULL,0,NULL,NULL 34969,178677,142535,NULL,NULL,NULL,0,NULL,NULL 34970,110963,758028,Nice Question Notable Question Critic,NULL,NULL,0,NULL,NULL 34971,31690,901250,NULL,NULL,NULL,0,NULL,NULL 34972,180215,973023,Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 34973,49495,1067142,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 34974,600940,906320,NULL,NULL,NULL,0,NULL,NULL 34975,195819,712687,NULL,NULL,NULL,0,NULL,NULL 34976,216076,981996,Notable Question Famous Question Necromancer Critic Autobiographer Editor Commentator,NULL,NULL,0,NULL,NULL 34977,52957,21322,Yearling Caucus Constituent Revival Caucus Constituent Nice Answer Yearling Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 34978,450657,420932,Notable Question,NULL,NULL,0,NULL,NULL 34979,1718858,863753,Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 34980,445973,903941,NULL,NULL,NULL,0,NULL,NULL 34981,44883,121861,Popular Question Guru Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 34982,1015,263090,NULL,NULL,NULL,0,NULL,NULL 34983,345916,16183,Caucus Census Caucus,NULL,NULL,0,NULL,NULL 34984,8283,77409,Nice Answer Enlightened scala Yearling Famous Question Great Answer Nice Question Nice Question Good Answer Nice Answer Yearling Revival Great Answer Revival Citizen Patrol Census Yearling Caucus Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 34985,432308,570547,Yearling Nice Answer Enlightened Nice Answer objective-c Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened ios Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling ibeacon Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 34986,366463,551708,NULL,NULL,NULL,0,NULL,NULL 34987,795486,551708,NULL,NULL,NULL,0,NULL,NULL 34988,36565,1326660,NULL,NULL,NULL,0,NULL,NULL 34989,37679,25251,php Famous Question Yearling Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 34990,49792,1107918,NULL,NULL,NULL,0,NULL,NULL 34991,618842,766233,Popular Question Revival Notable Question Popular Question Civic Duty Yearling Nice Question Notable Question Popular Question Nice Answer Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Necromancer Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 34992,7744050,1387337,NULL,NULL,NULL,0,NULL,NULL 34993,440850,1387337,NULL,NULL,NULL,0,NULL,NULL 34994,1520480,522443,NULL,NULL,NULL,0,NULL,NULL 34995,1341451,615510,NULL,NULL,NULL,0,NULL,NULL 34996,219929,68534,Necromancer Yearling Nice Answer Nice Answer Nice Answer Necromancer Good Answer Nice Answer Good Answer Yearling Populist Announcer Populist Good Answer Necromancer Great Answer Yearling Nice Answer Announcer Good Answer,NULL,NULL,0,NULL,NULL 34997,237294,781909,Popular Question Popular Question Nice Question Necromancer Popular Question Yearling Notable Question Nice Question Notable Question Good Question Popular Question Popular Question Nice Question Nice Answer Famous Question Notable Question Yearling Famous Question Announcer Notable Question Famous Question Popular Question Yearling Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 34998,67072,125773,NULL,NULL,NULL,0,NULL,NULL 34999,314586,1293874,Notable Question Yearling,NULL,NULL,0,NULL,NULL 35000,444158,622394,NULL,NULL,NULL,0,NULL,NULL 35001,7586,123142,Yearling Revival,NULL,NULL,0,NULL,NULL 35002,11703,102542,Famous Question Good Answer Yearling Necromancer Announcer Good Answer Yearling Revival Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 35003,5438,1048941,NULL,NULL,NULL,0,NULL,NULL 35004,425707,1172235,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35005,439753,251352,Yearling Great Question Critic Yearling Custodian Yearling Excavator Civic Duty,NULL,NULL,0,NULL,NULL 35006,425556,4839,NULL,NULL,NULL,0,NULL,NULL 35007,901573,1563472,Revival Custodian Yearling Citizen Patrol Custodian Great Question Custodian Commentator Documentation Pioneer Yearling Caucus Favorite Question Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 35008,922976,508547,Popular Question,NULL,NULL,0,NULL,NULL 35009,161302,374551,NULL,NULL,NULL,0,NULL,NULL 35010,1342734,1315172,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35011,332711,117218,NULL,NULL,NULL,0,NULL,NULL 35012,23107,11829,Good Question Notable Question Good Answer Good Answer Nice Answer Necromancer Nice Answer Guru Nice Answer Nice Question Good Answer Popular Question Famous Question Good Answer Yearling Guru Guru Nice Answer Nice Answer Notable Question Revival Good Answer Notable Question Nice Answer Good Answer Nice Answer Good Answer Great Answer Custodian Yearling Popular Question Popular Question Great Answer Famous Question Good Answer Nice Question Great Answer Notable Question Announcer Famous Question Good Answer Guru Good Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 35013,216109,462693,Popular Question,NULL,NULL,0,NULL,NULL 35014,615743,462693,Popular Question,NULL,NULL,0,NULL,NULL 35015,84498,56876,Nice Question Yearling,NULL,NULL,0,NULL,NULL 35016,6223429,217695,NULL,NULL,NULL,0,NULL,NULL 35017,96084,171563,NULL,NULL,NULL,0,NULL,NULL 35018,9234,162026,NULL,NULL,NULL,0,NULL,NULL 35019,957706,969173,Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Nice Question Nice Question Popular Question Notable Question Self-Learner Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 35020,8627828,969173,Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Nice Question Nice Question Popular Question Notable Question Self-Learner Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 35021,134310,73046,Good Question Notable Question Yearling Nice Answer Good Question Notable Question Popular Question Revival Popular Question Nice Question Necromancer Yearling Necromancer Nice Answer Famous Question Nice Answer Investor Revival Notable Question Nice Answer Popular Question Yearling Necromancer Nice Answer Popular Question Popular Question,NULL,How to filter Android logcat by application android logcat pHow can filter Android logcat output by application need this because when attach device can find the output want due to spam from other processes 大抓捕六四事件法轮功 That one specific to Eclipse this is about logcat itself,0,NULL,NULL 35022,312742,780175,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35023,6665713,469981,Necromancer Necromancer Revival Yearling Enthusiast Nice Answer Custodian Necromancer scala Necromancer Popular Question Nice Answer Yearling Nice Answer Enlightened Nice Answer Necromancer Necromancer Nice Answer Nice Answer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 35024,276780,1213715,Tumbleweed Teacher Popular Question Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35025,131450,899732,NULL,NULL,NULL,0,NULL,NULL 35026,811118,67880,NULL,NULL,NULL,0,NULL,NULL 35027,194384,6302,Nice Answer Enlightened Nice Answer Yearling Yearling Documentation User Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 35028,1383785,505117,NULL,NULL,NULL,0,NULL,NULL 35029,16415,138653,Revival Yearling Civic Duty Documentation User,NULL,NULL,0,NULL,NULL 35030,401069,740314,NULL,NULL,NULL,0,NULL,NULL 35031,601448,1067443,NULL,NULL,NULL,0,NULL,NULL 35032,307797,101647,Popular Question Yearling Famous Question Necromancer Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 35033,231074,1236191,NULL,NULL,NULL,0,NULL,NULL 35034,65589,157469,NULL,NULL,NULL,0,NULL,NULL 35035,923105,649132,Notable Question,NULL,NULL,0,NULL,NULL 35036,84435,320737,Supporter Popular Question Nice Answer Nice Answer Critic Yearling Popular Question Necromancer Nice Answer Yearling Necromancer Custodian,NULL,NULL,0,NULL,NULL 35037,210100,115076,Nice Answer Yearling Custodian Excavator Nice Answer Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 35038,25672,196276,Necromancer,NULL,NULL,0,NULL,NULL 35039,164785,1050103,NULL,NULL,NULL,0,NULL,NULL 35040,237081,684669,NULL,NULL,NULL,0,NULL,NULL 35041,59527,34671,Notable Question Great Answer Good Question Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 35042,810516,331288,NULL,NULL,NULL,0,NULL,NULL 35043,93279,427899,Nice Question Good Question Nice Answer Enlightened Nice Question Notable Question Revival Necromancer Necromancer Announcer Notable Question Revival Announcer Civic Duty Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Necromancer Excavator Nice Answer Popular Question Notable Question Popular Question Nice Answer Announcer Notable Question Notable Question Announcer Popular Question Notable Question Popular Question Notable Question Yearling Announcer Necromancer Custodian Popular Question Notable Question Popular Question Popular Question Announcer Revival Good Answer Popular Question Custodian Famous Question Popular Question Popular Question Nice Answer Enlightened Yearling Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35044,99589,1269698,Nice Question,NULL,NULL,0,NULL,NULL 35045,288147,742221,Popular Question,NULL,NULL,0,NULL,NULL 35046,147983,394616,Necromancer Popular Question Popular Question Yearling Curious,NULL,NULL,0,NULL,NULL 35047,575888,51135,Yearling Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 35048,134099,93302,NULL,NULL,NULL,0,NULL,NULL 35049,441100,237958,Revival Custodian Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35050,3229717,769835,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35051,141307,769835,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35052,678210,362602,Custodian Tumbleweed,NULL,NULL,0,NULL,NULL 35053,594574,269699,Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 35054,75373,566896,NULL,NULL,NULL,0,NULL,NULL 35055,100124,253918,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 35056,354856,801858,Famous Question Popular Question Famous Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Question Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35057,159090,629737,Yearling Famous Question Caucus Yearling Civic Duty Yearling Curious,NULL,pI temporarily solved the problem using decorator inspired by Tornado href http www tornadoweb org en stable testing html tornado testing gen test gen test ppre codedef async test def wrapper args kwargs coro asyncio coroutine future coro args kwargs loop asyncio get event loop loop run until complete future return wrapper code prepLike Sebastian suggested this decorator will block until the test method coroutine has finished This allows me to write test cases like this ppre codeclass TestSocketConnection unittest TestCase def setUp self self mock server MockServer localhost 1337 self socket connection SocketConnection localhost 1337 def test sends handshake after connect self yield from self socket connection connect self assertTrue self mock server received handshake code prepThis solution probably misses some edge cases ppI think facility like this should added to Python standard library to make codeasyncio code and codeunittest code interaction more convenient out of the box ran into issues with asyncio get event loop and used asyncio new event loop,0,NULL,NULL 35058,2467873,821688,NULL,NULL,NULL,0,NULL,NULL 35059,749699,821688,NULL,NULL,NULL,0,NULL,NULL 35060,242903,394045,Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 35061,101285,829569,Notable Question,NULL,NULL,0,NULL,NULL 35062,923341,822270,Informed Teacher,NULL,NULL,0,NULL,NULL 35063,194794,1392159,NULL,NULL,NULL,0,NULL,NULL 35064,170771,329871,Curious Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35065,1499120,1306779,Autobiographer Editor Tumbleweed Supporter Teacher Student Yearling Commentator Critic Informed Yearling Citizen Patrol Scholar Yearling,NULL,NULL,0,NULL,NULL 35066,394107,217664,Necromancer Nice Answer Nice Answer Enlightened Nice Answer Caucus Revival Constituent Yearling Popular Question Nice Answer Enlightened Excavator Yearling Revival Caucus Constituent Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35067,89152,5625,Yearling Notable Question Good Answer Popular Question Popular Question Popular Question Notable Question Caucus Nice Question Census Yearling Census Good Question Nice Question,NULL,NULL,0,NULL,NULL 35068,2983539,394020,Good Answer Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 35069,4567,237788,NULL,NULL,NULL,0,NULL,NULL 35070,87146,183835,Popular Question Famous Question Guru Nice Answer Enlightened Notable Question Nice Answer Enlightened Yearling Great Answer Popular Question Famous Question Stellar Question Popular Question Revival Popular Question Notable Question Nice Question Popular Question Notable Question Yearling Good Answer Inquisitive Great Answer Popular Question Good Question Yearling Notable Question,NULL,pIn your main codeapp js code or what is in it place pp strongExpress strong ppre codeif app get env development app locals pretty true code prep strongExpress strong ppre codeapp configure development function app use express errorHandler app locals pretty true code prep strongExpress strong ppre codeapp configure development function app use express errorHandler app set view options pretty true code prepI put the pretty print in codedevelopment code because you ll want more efficiency with the ugly in codeproduction code Make sure to set environment variable codeNODE ENV production code when you re deploying in production This can be done with an codesh code script you use in the script field of codepackage json code and executed to start ppExpress href https github com visionmedia express wiki Migrating from to rel noreferrer changed this because pblockquote pThe view options setting is no longer necessary app locals are the local variables merged with res render so app locals pretty true is the same as passing res render view pretty true blockquote there link in my answer,0,NULL,NULL 35071,48385,482095,Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 35072,1571050,1089194,NULL,NULL,NULL,0,NULL,NULL 35073,2036532,229792,Electorate Nice Question Taxonomist Notable Question Popular Question Popular Question Nice Question Good Question Mortarboard Nice Question Popular Question Announcer Favorite Question Notable Question Nice Question Good Question Nice Answer Great Answer Necromancer Great Answer Popular Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Great Question Necromancer Custodian Nice Answer Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Explainer Good Question Popular Question Popular Question Good Answer Necromancer Nice Answer Popular Question Popular Question Notable Question Announcer Popular Question Popular Question Strunk & White Notable Question Famous Question Nice Question Yearling Notable Question Citizen Patrol Notable Question Popular Question Popular Question Socratic Popular Question Popular Question Notable Question Good Answer Popular Question Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 35074,2981,229792,Electorate Nice Question Taxonomist Notable Question Popular Question Popular Question Nice Question Good Question Mortarboard Nice Question Popular Question Announcer Favorite Question Notable Question Nice Question Good Question Nice Answer Great Answer Necromancer Great Answer Popular Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Great Question Necromancer Custodian Nice Answer Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Explainer Good Question Popular Question Popular Question Good Answer Necromancer Nice Answer Popular Question Popular Question Notable Question Announcer Popular Question Popular Question Strunk & White Notable Question Famous Question Nice Question Yearling Notable Question Citizen Patrol Notable Question Popular Question Popular Question Socratic Popular Question Popular Question Notable Question Good Answer Popular Question Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 35075,326611,177197,NULL,NULL,NULL,0,NULL,NULL 35076,217185,1529990,Popular Question Notable Question Supporter Commentator Curious Teacher,NULL,NULL,0,NULL,NULL 35077,3125,1116674,Popular Question Yearling Nice Answer Notable Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 35078,15365,62401,Popular Question Famous Question Critic,NULL,NULL,0,NULL,NULL 35079,319734,20314,NULL,NULL,NULL,0,NULL,NULL 35080,1386974,1184232,NULL,NULL,NULL,0,NULL,NULL 35081,17093,805725,NULL,NULL,NULL,0,NULL,NULL 35082,709037,487104,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35083,213407,1531830,Popular Question,NULL,NULL,0,NULL,NULL 35084,201701,9465,Great Answer ruby-on-rails Nice Answer ruby Good Answer Nice Answer Yearling Good Answer Curious Nice Answer Enlightened Good Answer Notable Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35085,79934,407348,Popular Question Popular Question Popular Question Nice Answer Popular Question Great Answer Famous Question,NULL,NULL,0,NULL,NULL 35086,48472,1151110,NULL,NULL,NULL,0,NULL,NULL 35087,69354,1472461,Commentator,NULL,NULL,0,NULL,NULL 35088,185008,514889,NULL,NULL,NULL,0,NULL,NULL 35089,52627,229086,NULL,NULL,NULL,0,NULL,NULL 35090,73139,86465,Notable Question Critic Yearling Curious Revival,NULL,NULL,0,NULL,NULL 35091,465622,1316279,NULL,NULL,NULL,0,NULL,NULL 35092,1110064,1316279,NULL,NULL,NULL,0,NULL,NULL 35093,423753,1299102,Curious,NULL,NULL,0,NULL,NULL 35094,495055,1367055,NULL,NULL,NULL,0,NULL,NULL 35095,1137149,508642,Yearling Citizen Patrol Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35096,109942,705067,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 35097,1186261,1319672,Critic,NULL,NULL,0,NULL,NULL 35098,34632,273101,Necromancer Yearling Necromancer Yearling Nice Answer Custodian Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35099,34188,136008,Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened django-admin Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Notable Question Yearling Good Answer Caucus Constituent Guru Good Answer Good Answer Census Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Guru Good Answer Nice Answer Yearling Good Answer Nice Answer Benefactor,NULL,NULL,0,NULL,NULL 35100,1036215,1026673,NULL,NULL,NULL,0,NULL,NULL 35101,321282,398615,Yearling Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 35102,308589,1406002,NULL,NULL,NULL,0,NULL,NULL 35103,291096,313875,Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Good Answer Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 35104,4684383,873916,NULL,NULL,NULL,0,NULL,NULL 35105,1230696,394597,NULL,NULL,NULL,0,NULL,NULL 35106,1374022,830841,Tumbleweed Supporter Editor Commentator Teacher Scholar Curious Self-Learner Yearling Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 35107,1170310,168006,NULL,NULL,NULL,0,NULL,NULL 35108,107965,43187,NULL,NULL,NULL,0,NULL,NULL 35109,106582,86244,Custodian Necromancer Yearling Revival Nice Answer Yearling Excavator Great Answer Necromancer Yearling Nice Answer Enlightened Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35110,1166063,745818,NULL,NULL,NULL,0,NULL,NULL 35111,252067,143273,Custodian Custodian Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Notable Question Yearling Famous Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Famous Question Yearling Notable Question Famous Question Notable Question Nice Question Popular Question Yearling Nice Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 35112,38860,305319,Necromancer Yearling Necromancer Necromancer Necromancer Nice Answer Caucus Constituent c# Yearling Good Answer Caucus Constituent Documentation User Nice Answer Custodian Strunk & White Necromancer Nice Answer Necromancer Caucus Constituent Yearling Good Answer Revival,NULL,pI wrote an inline spell checker few years ago and implemented Levenshtein algorithm since it was inline and for IE8 did quite lot of performance optimisation ppre codevar levDist function var 2d matrix Step var length var length if return if return Create an array of arrays in javascript descending loop is quicker for var gt Step for var gt for var gt Step for var lt var charAt Step for var lt Check the jagged ld total so far if amp amp gt return var charAt var cost Step Calculate the minimum var mi var var cost if lt mi mi if lt mi mi mi Step Damerau transposition if gt amp amp gt amp amp charAt amp amp charAt Math min cost Step return code pre look at the comment above which may help href http www mgilleland com ld ldjavascript htm This page linked to from the resource you mentioned offers JavaScript implementation of the Levenshtein distance algorithm Based on both that and the code you posted here my CoffeeScript version ppre codeLD gt length length return if is return if is for in for in for in for c1 in for c2 in cost if c1 is c2 then else Math min cost code prepIt seems to hold up to light testing but let me know if there are any problems Not CS but callable from it http stackoverflow com questions 11919065 sort an array by the levenshtein distance with best performance in javascript 11958496 11958496,0,NULL,NULL 35113,307653,1123632,Popular Question,NULL,NULL,0,NULL,NULL 35114,28362,1335437,Student Necromancer,NULL,NULL,0,NULL,NULL 35115,396439,1400131,NULL,NULL,NULL,0,NULL,NULL 35116,430709,519751,NULL,NULL,NULL,0,NULL,NULL 35117,908711,1385773,Notable Question Popular Question Popular Question Popular Question Popular Question Custodian Yearling Nice Question Notable Question Yearling Self-Learner Necromancer Peer Pressure Yearling Excavator Custodian Nice Answer Enlightened Revival Nice Answer Custodian Census Yearling Good Question Caucus Constituent Notable Question Announcer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 35118,615774,30099,Notable Question Notable Question Good Question Popular Question Popular Question Famous Question Notable Question Good Question Yearling Famous Question Nice Question Famous Question Popular Question Notable Question Famous Question Notable Question Nice Answer Popular Question Good Question Good Question Yearling Notable Question Necromancer Notable Question Nice Question Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 35119,164602,279007,Necromancer Supporter,NULL,NULL,0,NULL,NULL 35120,2425882,279007,Necromancer Supporter,NULL,NULL,0,NULL,NULL 35121,356966,648771,NULL,NULL,NULL,0,NULL,NULL 35122,259782,128625,Yearling Nice Question Good Answer Nice Answer Yearling Great Answer Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 35123,169848,1402511,Necromancer Yearling Necromancer Yearling Nice Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 35124,292003,357653,NULL,NULL,NULL,0,NULL,NULL 35125,1201174,56715,NULL,NULL,NULL,0,NULL,NULL 35126,1060636,956565,NULL,NULL,NULL,0,NULL,NULL 35127,4558932,303911,Nice Question Nice Answer Famous Question Guru Yearling Custodian Necromancer Guru Famous Question Promoter Nice Question Favorite Question Yearling Notable Question ruby Yearling Nice Answer Enlightened Great Answer Announcer,NULL,NULL,0,NULL,NULL 35128,68459,303911,Nice Question Nice Answer Famous Question Guru Yearling Custodian Necromancer Guru Famous Question Promoter Nice Question Favorite Question Yearling Notable Question ruby Yearling Nice Answer Enlightened Great Answer Announcer,NULL,NULL,0,NULL,NULL 35129,716,6072,Popular Question,NULL,NULL,0,NULL,NULL 35130,2666481,1086407,NULL,NULL,NULL,0,NULL,NULL 35131,245061,193232,Necromancer Nice Answer Revival Yearling Necromancer Necromancer Nice Answer Yearling,NULL,pAn effective Approach that found when dealing with mostly latin characters is to use the operator whenever both strings match specific regex EG code code ppIt much faster if both strings match the expression and at worst it seems to be slightly slower than blindly calling localeCompare ppExample here href http jsperf com operator vs localecompage 11 rel noreferrer http jsperf com operator vs localecompage 11 The regex detects whether the string contains only alphanumeric characters Matches any alphanumeric character including the underscore Equivalent to Za z0 LocaleCompare is irrelevant for these characters in most cases,0,NULL,NULL 35132,3366,52265,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35133,7130,530060,Famous Question,NULL,NULL,0,NULL,NULL 35134,334888,717654,NULL,NULL,NULL,0,NULL,NULL 35135,180190,920116,Revival,NULL,NULL,0,NULL,NULL 35136,160297,2779,NULL,NULL,NULL,0,NULL,NULL 35137,526361,1176388,NULL,NULL,NULL,0,NULL,NULL 35138,170892,125294,NULL,NULL,NULL,0,NULL,NULL 35139,493644,245579,NULL,NULL,NULL,0,NULL,NULL 35140,46063,19533,Necromancer,NULL,NULL,0,NULL,NULL 35141,21057,555182,NULL,NULL,NULL,0,NULL,NULL 35142,230764,1148008,NULL,NULL,NULL,0,NULL,NULL 35143,30243,463361,NULL,NULL,NULL,0,NULL,NULL 35144,11924,39979,Nice Answer Nice Answer Yearling Famous Question Nice Answer Yearling Good Question Promoter Benefactor Yearling,NULL,NULL,0,NULL,NULL 35145,341821,38812,Notable Question Good Question Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 35146,536882,908459,NULL,NULL,NULL,0,NULL,NULL 35147,48063,273093,Yearling,NULL,NULL,0,NULL,NULL 35148,146773,139560,Good Question Yearling Nice Answer Revival Famous Question Yearling Census Quorum Necromancer Yearling Popular Question Custodian Inquisitive,NULL,NULL,0,NULL,NULL 35149,41603,712294,Peer Pressure Guru Yearling Nice Answer Enlightened Guru Guru javascript Good Answer Nice Answer Good Answer Yearling Nice Answer Investor Altruist Caucus Nice Answer Enlightened Guru Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35150,789162,427992,Notable Question Nice Question Popular Question Nice Answer Nice Answer Enlightened Famous Question Nice Question Popular Question Nice Question Nice Answer Enlightened Yearling Nice Answer Popular Question Notable Question Popular Question Guru Popular Question Caucus Nice Answer Yearling Announcer Good Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 35151,186865,420444,NULL,NULL,NULL,0,NULL,NULL 35152,51393,128161,Custodian Yearling Yearling Tenacious Mortarboard Quorum php Organizer Custodian Suffrage Vox Populi Explainer Custodian Civic Duty Proofreader Revival Yearling Announcer Popular Question Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 35153,64301,484973,Popular Question Nice Question Tumbleweed Yearling Popular Question Popular Question Great Answer Popular Question Yearling Nice Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35154,4114,123847,NULL,NULL,NULL,0,NULL,NULL 35155,10445,955705,NULL,NULL,NULL,0,NULL,NULL 35156,42579,666969,Supporter,NULL,NULL,0,NULL,NULL 35157,1161526,1563378,Editor Tumbleweed Custodian Student,NULL,NULL,0,NULL,NULL 35158,586984,881920,Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Notable Question Notable Question Good Question Famous Question Famous Question Nice Question Famous Question Yearling Notable Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 35159,185919,1308629,Enthusiast,NULL,NULL,0,NULL,NULL 35160,13363,75258,Popular Question Notable Question Yearling Popular Question Famous Question Notable Question Notable Question Famous Question Yearling Nice Question Popular Question Notable Question Nice Question Nice Question Yearling Popular Question Famous Question Good Question Notable Question,NULL,Rendering WebGL image in headless chrome without GPU javascript google chrome webgl pixi js puppeteer pI trying to export an image rendered with WebGL on linux server without GPU To do this using headless Chrome however the exported image is black href https stack imgur com 1J2IU jpg rel noreferrer example exported image href https stack imgur com CfPFk png rel noreferrer taking screenshot of page shows its just canvas that is black was hoping for some help figuring out why this is happening ppTo export the image render the image into canvas export data via codecanvas toDataURL image jpeg code and then post the data to the server using Pixi js for rendering if use canvas renderer then everything works on the server It WebGL rendering thats not working It worth noting the WebGL render works fine in Chrome 63 on Macbook ppTo control Chrome using href https github com GoogleChrome puppeteer rel noreferrer Puppeteer All doing is opening page waiting second and then closing it again ppre codepuppeteer launch args no sandbox disable setuid sandbox then browser gt return browser newPage then page gt return page goto url then gt page waitFor 1000 then gt browser close catch err gt console error Failed err code prepThese are the arguments puppeteer passes to Chrome ppre code disable background networking disable background timer throttling disable client side phishing detection disable default apps disable extensions disable hang monitor disable popup blocking disable prompt on repost disable sync disable translate metrics recording only no first run remote debugging port safebrowsing disable auto update enable automation password store basic use mock keychain user data dir tmp puppeteer dev profile GhEAXZ headless disable gpu hide scrollbars mute audio no sandbox disable setuid sandbox code prepThe href https twitter com c0d1f1ed status 878276366382227456 rel noreferrer swiftshader author said in June headless WebGL rendering is possible and it seems to be href https bugs chromium org chromium issues detail id 630728 rel noreferrer confirmed by this Chromium issue so guess missing something Has anyone got any ideas what doing wrong ppA couple of things ve tried pulli href https github com GoogleChrome puppeteer issues 1260 issuecomment 348878456 rel noreferrer Not passing in disable gpu lili code use gl swiftshader webgl code code use gl swiftshader code code use gl osmesa code liliTaking full screen screenshot to see if its just canvas Whole screen is just black li ulpVersions pulliChrome linux 515411 lilipuppeteer 13 lilinode liliLinux CentOS li ulpThis is what needed to install on my server to get chrome to run href https mockingbot com posts run puppeteer chrome headless on ec2 amazon linux rel noreferrer Source ppre codeyum install cups libs dbus glib libXrandr libXcursor libXinerama cairo cairo gobject pango ffmpegrpm ivh nodeps http mirror centos org centos os x86 64 Packages atk 22 el7 x86 64 rpmrpm ivh nodeps http mirror centos org centos os x86 64 Packages at spi2 atk 22 el7 x86 64 rpmrpm ivh nodeps http mirror centos org centos os x86 64 Packages at spi2 core 22 el7 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages GConf2 fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libXScrnSaver fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libxkbcommon fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libwayland client fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libwayland cursor fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages gtk3 10 fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 16 Fedora x86 64 os Packages gdk pixbuf2 24 fc16 x86 64 rpm code pre Our servers don have GPUs Theres lot of documentation that suggests its possible SwiftShader is high performance CPU based implementation of the OpenGL ES https github com google swiftshader https blog chromium org 2016 06 universal rendering with swiftshader html Chromium Issue adding Swiftshader https bugs chromium org chromium issues detail id 630728 Chromium documentation discussing software compositor for when GPU is not available http www chromium org developers design documents gpu accelerated compositing in chrome TOC Appendix The Software Compositor,1,Rendering WebGL image in headless chrome without GPU javascript google chrome webgl pixi js puppeteer pI trying to export an image rendered with WebGL on linux server without GPU To do this using headless Chrome however the exported image is black href https stack imgur com 1J2IU jpg rel noreferrer example exported image href https stack imgur com CfPFk png rel noreferrer taking screenshot of page shows its just canvas that is black was hoping for some help figuring out why this is happening ppTo export the image render the image into canvas export data via codecanvas toDataURL image jpeg code and then post the data to the server using Pixi js for rendering if use canvas renderer then everything works on the server It WebGL rendering thats not working It worth noting the WebGL render works fine in Chrome 63 on Macbook ppTo control Chrome using href https github com GoogleChrome puppeteer rel noreferrer Puppeteer All doing is opening page waiting second and then closing it again ppre codepuppeteer launch args no sandbox disable setuid sandbox then browser gt return browser newPage then page gt return page goto url then gt page waitFor 1000 then gt browser close catch err gt console error Failed err code prepThese are the arguments puppeteer passes to Chrome ppre code disable background networking disable background timer throttling disable client side phishing detection disable default apps disable extensions disable hang monitor disable popup blocking disable prompt on repost disable sync disable translate metrics recording only no first run remote debugging port safebrowsing disable auto update enable automation password store basic use mock keychain user data dir tmp puppeteer dev profile GhEAXZ headless disable gpu hide scrollbars mute audio no sandbox disable setuid sandbox code prepThe href https twitter com c0d1f1ed status 878276366382227456 rel noreferrer swiftshader author said in June headless WebGL rendering is possible and it seems to be href https bugs chromium org chromium issues detail id 630728 rel noreferrer confirmed by this Chromium issue so guess missing something Has anyone got any ideas what doing wrong ppA couple of things ve tried pulli href https github com GoogleChrome puppeteer issues 1260 issuecomment 348878456 rel noreferrer Not passing in disable gpu lili code use gl swiftshader webgl code code use gl swiftshader code code use gl osmesa code liliTaking full screen screenshot to see if its just canvas Whole screen is just black li ulpVersions pulliChrome linux 515411 lilipuppeteer 13 lilinode liliLinux CentOS li ulpThis is what needed to install on my server to get chrome to run href https mockingbot com posts run puppeteer chrome headless on ec2 amazon linux rel noreferrer Source ppre codeyum install cups libs dbus glib libXrandr libXcursor libXinerama cairo cairo gobject pango ffmpegrpm ivh nodeps http mirror centos org centos os x86 64 Packages atk 22 el7 x86 64 rpmrpm ivh nodeps http mirror centos org centos os x86 64 Packages at spi2 atk 22 el7 x86 64 rpmrpm ivh nodeps http mirror centos org centos os x86 64 Packages at spi2 core 22 el7 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages GConf2 fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libXScrnSaver fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libxkbcommon fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libwayland client fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages libwayland cursor fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 20 Fedora x86 64 os Packages gtk3 10 fc20 x86 64 rpmrpm ivh nodeps http dl fedoraproject org pub archive fedora linux releases 16 Fedora x86 64 os Packages gdk pixbuf2 24 fc16 x86 64 rpm code pre,NULL 35161,606115,1026263,Notable Question Famous Question Notable Question Nice Question Excavator Citizen Patrol Popular Question Notable Question Revival Yearling Notable Question Necromancer Nice Question,NULL,NULL,0,NULL,NULL 35162,422265,338570,Nice Answer,NULL,NULL,0,NULL,NULL 35163,700095,544047,NULL,NULL,NULL,0,NULL,NULL 35164,50673,153381,NULL,NULL,NULL,0,NULL,NULL 35165,233495,891832,NULL,NULL,NULL,0,NULL,NULL 35166,146598,706446,Yearling Student Necromancer Nice Answer Investor Popular Question Yearling Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 35167,7291156,209544,NULL,NULL,NULL,0,NULL,NULL 35168,228144,209544,NULL,NULL,NULL,0,NULL,NULL 35169,184486,468166,NULL,NULL,NULL,0,NULL,NULL 35170,987407,1184913,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35171,1173807,891111,Notable Question,NULL,NULL,0,NULL,NULL 35172,78635,243949,NULL,NULL,NULL,0,NULL,NULL 35173,24339,1133888,NULL,NULL,NULL,0,NULL,NULL 35174,2187692,1133888,NULL,NULL,NULL,0,NULL,NULL 35175,161166,648774,Nice Answer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35176,166548,933558,Good Answer Popular Question Custodian Custodian Caucus Constituent Custodian Explainer Nice Answer Yearling Caucus Tumbleweed Promoter Benefactor Documentation User Civic Duty Census Announcer Caucus Constituent Enthusiast Good Answer Yearling,NULL,NULL,0,NULL,NULL 35177,1505232,95175,Famous Question Yearling Great Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 35178,3143722,95175,Famous Question Yearling Great Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 35179,1805190,939971,Civic Duty Scholar Tumbleweed Notable Question,NULL,,0,, 35180,218074,939971,Civic Duty Scholar Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 35181,38470,1173704,NULL,NULL,NULL,0,NULL,NULL 35182,216122,1074064,Tumbleweed,NULL,NULL,0,NULL,NULL 35183,178312,208754,Nice Question Yearling Nice Question Self-Learner asp.net Good Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 35184,59158,496735,Nice Answer javascript jquery Notable Question Yearling Good Answer Nice Answer Nice Answer Guru Yearling Nice Answer Enlightened Good Answer Guru Good Answer Great Answer Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35185,250433,9805,Necromancer Notable Question Yearling Necromancer Census Nice Answer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35186,111838,975513,NULL,NULL,NULL,0,NULL,NULL 35187,354731,383609,Nice Question Nice Answer Enlightened Notable Question Famous Question Good Question Popular Question Nice Answer Nice Answer Enlightened Notable Question Nice Answer Good Question Popular Question Great Answer Yearling Popular Question Nice Answer Good Answer Famous Question Guru Famous Question Popular Question Popular Question Great Answer Announcer Caucus Guru Great Answer Notable Question Favorite Question Famous Question Great Answer Popular Question Census Popular Question Good Answer Nice Answer Enlightened Nice Answer Notable Question Good Question Good Question Good Question Famous Question Popular Question Popular Question Nice Question Nice Answer Nice Question Yearling Good Answer Notable Question Nice Question Famous Question Stellar Question Famous Question Popular Question Popular Question Great Answer Good Answer Famous Question Necromancer Notable Question Nice Question Census Nice Answer Enlightened Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Notable Question Yearling Popular Question Popular Question Stellar Question Good Question Nice Answer css3 Nice Answer Enlightened,NULL,emIf you re using Bootstrap v3 or greater you should use href https stackoverflow com 20396826 383609 this solution instead It doesn override Bootstrap styles with custom CSS but instead uses Bootstrap feature em pp emMy original answer is shown below for posterity em phrpThis is pleasantly easy fix Because code img responsive code from Bootstrap already sets codedisplay block code you can use codemargin auto code to center the image ppre code product img responsive margin auto code pre think the header in my answer is quite clear on what to do depending on which version of Bootstrap is used Admittedly is quite old now but so is this question Either way it might be useful to somebody Please don tell me what to do,0,NULL,NULL 35188,780709,89199,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 35189,201699,460845,Notable Question Organizer Yearling Favorite Question Nice Question Great Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 35190,20501,60606,Nice Answer Yearling Necromancer Nice Answer Good Answer Yearling Yearling Custodian Necromancer Excavator,NULL,NULL,0,NULL,NULL 35191,603898,496148,Nice Question Yearling Good Question Nice Question Popular Question Revival Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 35192,679151,694439,Necromancer Yearling Custodian Yearling Critic Informed Autobiographer Organizer Suffrage Citizen Patrol Custodian Custodian Caucus Constituent Nice Answer Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 35193,442618,218471,Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer Notable Question Notable Question Popular Question Famous Question Nice Question Notable Question Yearling Stellar Question Notable Question Nice Question Great Question Notable Question Popular Question Popular Question Good Question Famous Question Caucus Favorite Question Notable Question Nice Question Custodian Necromancer Famous Question Yearling Popular Question Popular Question Nice Question Famous Question Favorite Question Popular Question Popular Question Nice Answer Good Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 35194,439771,921095,NULL,NULL,NULL,0,NULL,NULL 35195,20598,921095,NULL,NULL,NULL,0,NULL,NULL 35196,356600,318105,NULL,NULL,NULL,0,NULL,NULL 35197,41985,74619,Yearling Revival Nice Answer Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35198,50632,1107091,Student,NULL,NULL,0,NULL,NULL 35199,80476,911321,NULL,NULL,NULL,0,NULL,NULL 35200,16047,451838,Revival Critic,NULL,NULL,0,NULL,NULL 35201,164827,526683,NULL,NULL,NULL,0,NULL,NULL 35202,542,899047,NULL,NULL,NULL,0,NULL,NULL 35203,313123,1149013,NULL,NULL,NULL,0,NULL,NULL 35204,442518,723893,Editor,NULL,NULL,0,NULL,NULL 35205,320118,916619,Good Answer Guru Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 35206,137856,43935,Yearling Good Answer Nice Answer Good Answer Revival Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35207,182163,846141,Great Answer Revival Yearling Yearling Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 35208,443382,822877,NULL,NULL,NULL,0,NULL,NULL 35209,8032212,1272117,Student Scholar Commentator,NULL,NULL,0,NULL,NULL 35210,726387,1115280,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35211,106711,923356,Nice Answer Yearling Revival Good Answer Mortarboard Tenacious Revival Yearling Unsung Hero Organizer Nice Answer Revival javascript Custodian internationalization Yearling,NULL,NULL,0,NULL,NULL 35212,112133,725810,NULL,NULL,NULL,0,NULL,NULL 35213,529303,1149726,Nice Answer Yearling Revival Caucus Constituent,NULL,NULL,0,NULL,NULL 35214,573314,359604,Yearling Custodian Custodian Citizen Patrol Custodian Critic Notable Question Nice Answer Revival Yearling Good Answer Necromancer Enthusiast Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 35215,450550,1253025,Revival Yearling Popular Question Yearling Critic ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 35216,110498,1069313,NULL,NULL,NULL,0,NULL,NULL 35217,2485133,472426,NULL,NULL,NULL,0,NULL,NULL 35218,445694,693146,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 35219,99051,416089,NULL,NULL,NULL,0,NULL,NULL 35220,724456,914539,Notable Question Notable Question Notable Question Revival Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Nice Question Good Answer Yearling Nice Answer Enlightened Nice Question Nice Answer Enlightened Famous Question Popular Question Famous Question Popular Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 35221,10083,1365267,NULL,NULL,NULL,0,NULL,NULL 35222,478561,872604,NULL,NULL,NULL,0,NULL,NULL 35223,153347,1073274,Teacher Supporter,NULL,NULL,0,NULL,NULL 35224,93469,510959,NULL,NULL,NULL,0,NULL,NULL 35225,167722,946715,Supporter Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35226,125236,999921,NULL,NULL,NULL,0,NULL,NULL 35227,33673,296626,NULL,NULL,NULL,0,NULL,NULL 35228,21038,992315,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35229,8925,21269,NULL,NULL,NULL,0,NULL,NULL 35230,76183,1044649,NULL,NULL,NULL,0,NULL,NULL 35231,576497,930984,NULL,NULL,NULL,0,NULL,NULL 35232,2735,268103,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 35233,30493,596079,NULL,NULL,NULL,0,NULL,NULL 35234,72357,841262,NULL,NULL,NULL,0,NULL,NULL 35235,262399,452160,Popular Question Autobiographer Custodian Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 35236,342061,365183,Notable Question Disciplined Yearling Guru Good Answer javascript Great Answer Nice Answer Enlightened Yearling Notable Question Notable Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35237,160689,311860,Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35238,972714,51795,Yearling Famous Question Good Answer Yearling Good Question Famous Question Popular Question Notable Question Great Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 35239,851,102250,Nice Answer Enlightened Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 35240,126744,76472,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 35241,78649,568920,Notable Question Popular Question Caucus Yearling Caucus Critic Famous Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 35242,30872,643091,Necromancer Yearling Nice Question Nice Answer Enlightened Popular Question Yearling Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 35243,281056,1496136,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35244,212824,174222,Notable Question Notable Question Teacher Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 35245,280253,48119,Editor Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 35246,28703,865415,Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35247,681489,1243495,Necromancer,NULL,NULL,0,NULL,NULL 35248,14509,275219,NULL,NULL,NULL,0,NULL,NULL 35249,76681,837517,Good Answer Yearling Nice Answer Yearling Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 35250,148560,1147788,NULL,NULL,NULL,0,NULL,NULL 35251,486577,485928,Nice Question,NULL,NULL,0,NULL,NULL 35252,147653,346046,Popular Question,NULL,NULL,0,NULL,NULL 35253,791635,1152118,Tumbleweed,NULL,NULL,0,NULL,NULL 35254,1841791,457569,Popular Question Revival Notable Question Good Answer Self-Learner Custodian Custodian Custodian Citizen Patrol Yearling Informed Autobiographer Announcer Caucus Constituent Necromancer Caucus Constituent Notable Question Notable Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 35255,200251,72947,Nice Question Notable Question Yearling Popular Question Popular Question Necromancer Yearling Notable Question Good Answer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 35256,23991,85337,Citizen Patrol Organizer Informed Announcer Necromancer Reviewer Populist Great Answer Yearling Announcer Yearling Revival,NULL,NULL,0,NULL,NULL 35257,620389,950384,Editor,NULL,NULL,0,NULL,NULL 35258,42497,474984,Nice Answer Yearling Guru Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 35259,885123,1441645,Scholar Supporter Suffrage Famous Question,NULL,NULL,0,NULL,NULL 35260,202024,1116815,NULL,NULL,NULL,0,NULL,NULL 35261,422567,488496,NULL,NULL,NULL,0,NULL,NULL 35262,126626,160307,Notable Question Nice Answer Yearling Notable Question Civic Duty Famous Question Nice Question Yearling Good Answer Announcer Popular Question Popular Question Popular Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 35263,1701661,600132,Yearling Famous Question Nice Answer Enlightened Self-Learner Caucus Yearling Caucus Census Popular Question Yearling Announcer Informed,NULL,NULL,0,NULL,NULL 35264,3168,1010332,Notable Question Nice Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35265,120765,403324,Popular Question Popular Question Notable Question Yearling Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 35266,213212,324599,NULL,NULL,NULL,0,NULL,NULL 35267,68619,499528,Necromancer Yearling Nice Answer Popular Question Nice Answer Caucus Constituent Yearling Necromancer Caucus Constituent Documentation User Good Answer Caucus Constituent Custodian Civic Duty Reviewer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 35268,162917,861170,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35269,3987,220432,NULL,NULL,NULL,0,NULL,NULL 35270,967831,1018365,Teacher Supporter Tumbleweed Student Commentator Informed Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 35271,1187570,1468322,NULL,NULL,NULL,0,NULL,NULL 35272,174458,1091232,NULL,NULL,NULL,0,NULL,NULL 35273,270299,538189,NULL,NULL,NULL,0,NULL,NULL 35274,2524344,538189,NULL,NULL,NULL,0,NULL,NULL 35275,484733,385950,Popular Question Good Answer Good Answer Yearling Notable Question Good Question Necromancer Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Nice Answer Famous Question Yearling Taxonomist Good Answer,NULL,pThe accepted answer is close to correct but it doesn really emulate codearray diff code correctly ppThere are two problems that largely revolve around key matching polli codearray diff code has specific behavior where it does not produce result for an array key that is completely missing from the second array if its strongvalue strong is still in the second array If you have two arrays code first foo gt moo gt code and code second foo gt code using the accepted answer function the output will be code moo gt code If you run the same arrays through codearray diff code it will produce an empty array This is because the above function final codeelse code statement adds it to the diff if the array key is missing but that not the expected behavior from codearray diff code The same is true with these two arrays code first foo gt code and code second code codearray diff code will produce an empty array lili pIf two arrays have the same values but different keys it returns more values than expected If you have two arrays code foo code and code moo code the function from the accepted answer will output all values from code foo code This is because it doing strict key matching on each iteration where it finds the same key numerical or otherwise in both arrays instead of checking all of the other values in the second array li olpThe following function is similar but acts more closely to how you expect codearray diff code to work also with less silly variable names ppre codefunction array diff recursive arr1 arr2 outputDiff foreach arr1 as key gt value if the key exists in the second array recursively call this function if it is an array otherwise check if the value is in arr2 if array key exists key arr2 if is array value recursiveDiff array diff recursive value arr2 key if count recursiveDiff outputDiff key recursiveDiff else if in array value arr2 outputDiff key value if the key is not in the second array check if the value is in the second array this is quirk of how array diff works else if in array value arr2 outputDiff key value return outputDiff code pre sorry didn give good explanation ve updated the answer to explain how the accepted answer differs from array diff pThere is one such function implemented in the comments of href http php net manual en function array diff php rel noreferrer array diff ppre codefunction arrayRecursiveDiff aArray1 aArray2 aReturn array foreach aArray1 as mKey gt mValue if array key exists mKey aArray2 if is array mValue aRecursiveDiff arrayRecursiveDiff mValue aArray2 mKey if count aRecursiveDiff aReturn mKey aRecursiveDiff else if mValue aArray2 mKey aReturn mKey mValue else aReturn mKey mValue return aReturn code prepThe implementation only handles two arrays at time but do not think that really posses problem You could run the diff sequentially if you need the diff of or more arrays at time Also this method uses key checks and does loose verification Please see my answer for an updated version of this function that matches how array diff works plus an explanation of why this answer is broken,0,NULL,NULL 35276,458144,794766,NULL,NULL,NULL,0,NULL,NULL 35277,547012,108538,Yearling Revival Proofreader Excavator Caucus Famous Question Informed Yearling Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 35278,465882,326768,NULL,NULL,NULL,0,NULL,NULL 35279,201768,215008,NULL,NULL,NULL,0,NULL,NULL 35280,46369,1548350,Popular Question,NULL,NULL,0,NULL,NULL 35281,653838,479292,NULL,NULL,NULL,0,NULL,NULL 35282,210678,314685,NULL,NULL,NULL,0,NULL,NULL 35283,441238,372149,Notable Question Notable Question Popular Question Nice Question Yearling Necromancer Good Question Nice Answer Informed Nice Answer Popular Question Popular Question Popular Question Popular Question Famous Question Good Answer Favorite Question Cleanup Notable Question Nice Question Notable Question Notable Question Yearling Popular Question Popular Question Necromancer Notable Question Popular Question Famous Question Revival Yearling Famous Question Notable Question Good Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 35284,64348,486595,Nice Answer Enlightened Yearling Caucus Yearling Tenacious Caucus Unsung Hero javascript Cleanup Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35285,266407,808078,NULL,NULL,NULL,0,NULL,NULL 35286,3249,653515,Teacher Supporter Necromancer Editor Excavator,NULL,NULL,0,NULL,NULL 35287,203094,1387612,Custodian Yearling Tenacious Proofreader Mortarboard Taxonomist Revival Caucus Constituent Announcer Electorate Announcer Yearling Necromancer Announcer Unsung Hero Caucus Constituent Nice Answer Announcer Documentation User Announcer Announcer Announcer Announcer Nice Answer Enlightened Good Answer mesos Census Guru Revival Caucus Yearling Announcer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 35288,75152,672742,NULL,NULL,NULL,0,NULL,NULL 35289,13721,107642,Nice Answer Yearling Nice Answer Nice Question Nice Answer .net Nice Answer Enlightened Nice Question Census Guru Guru Good Question Popular Question Nice Answer Yearling Nice Answer Good Answer Famous Question Good Answer Notable Question Popular Question Good Answer Nice Answer Nice Answer Good Answer Informed Census Notable Question Caucus Nice Question Nice Question Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35290,408866,1303176,Critic Yearling Announcer Necromancer Caucus Necromancer Excavator Civic Duty Famous Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35291,287689,1307440,Nice Answer Necromancer Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 35292,388562,616863,Caucus,NULL,NULL,0,NULL,NULL 35293,107501,616863,Caucus,NULL,NULL,0,NULL,NULL 35294,115214,863042,NULL,NULL,NULL,0,NULL,NULL 35295,1358537,758312,Yearling Yearling Yearling google-apps-script,NULL,NULL,0,NULL,NULL 35296,64278,988414,Popular Question Popular Question Great Question Nice Answer Yearling Popular Question Popular Question Explainer Good Question Notable Question Organizer Civic Duty Yearling Necromancer Favorite Question Announcer Taxonomist Yearling Notable Question,NULL,NULL,0,NULL,NULL 35297,187067,989691,Custodian Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Answer Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Nice Question Documentation User Yearling Famous Question Necromancer Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Favorite Question Popular Question Great Question Popular Question Popular Question Nice Question r Popular Question Popular Question Nice Question Popular Question Socratic Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35298,4024620,1392209,NULL,NULL,NULL,0,NULL,NULL 35299,24636,1392209,NULL,NULL,NULL,0,NULL,NULL 35300,271229,323831,Good Answer Announcer Yearling Revival Announcer,NULL,NULL,0,NULL,NULL 35301,412172,1164997,NULL,NULL,NULL,0,NULL,NULL 35302,29563,246028,Good Answer Citizen Patrol Custodian Custodian Reviewer Enthusiast Caucus Constituent Organizer Suffrage Vox Populi Yearling Civic Duty Caucus Documentation User Explainer Deputy Yearling Steward Self-Learner Caucus Constituent Fanatic Popular Question Excavator Curious Nice Answer,NULL,NULL,0,NULL,NULL 35303,56435,1369790,NULL,NULL,NULL,0,NULL,NULL 35304,21262,177574,Revival Necromancer Nice Answer Nice Answer Enlightened Yearling Guru Necromancer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 35305,538635,1295871,NULL,NULL,NULL,0,NULL,NULL 35306,151937,849402,Necromancer Nice Question Popular Question Notable Question Necromancer Famous Question Yearling Notable Question Notable Question Nice Answer Popular Question Notable Question Nice Answer Enlightened Popular Question Nice Answer Notable Question Notable Question Custodian Nice Answer Popular Question Favorite Question Yearling Nice Question Popular Question Good Answer Notable Question Notable Question Nice Question Yearling Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35307,232677,369614,NULL,NULL,NULL,0,NULL,NULL 35308,239889,492364,Nice Answer Notable Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Great Answer Popular Question Famous Question Yearling Good Answer Great Answer Nice Answer Enlightened Favorite Question Guru Popular Question Nice Question Notable Question Great Answer Nice Answer Enlightened Notable Question Famous Question Nice Question Nice Answer Nice Question Yearling Great Question Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Popular Question Nice Answer Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 35309,370707,1488731,NULL,NULL,NULL,0,NULL,NULL 35310,85766,268125,Nice Question Notable Question Yearling Famous Question Notable Question Popular Question Great Answer Nice Question Yearling Necromancer Notable Question Notable Question Popular Question Popular Question Good Answer Revival Notable Question Guru Necromancer Nice Answer Notable Question Yearling Nice Answer Good Answer Famous Question Good Question Necromancer Popular Question Good Answer Nice Answer Necromancer Good Answer Famous Question,NULL,NULL,0,NULL,NULL 35311,33061,1003092,Notable Question,NULL,NULL,0,NULL,NULL 35312,307506,1200749,NULL,NULL,NULL,0,NULL,NULL 35313,217741,70339,Yearling Nice Question Famous Question Good Question Popular Question Famous Question Stellar Question Popular Question Great Question Nice Question Yearling Popular Question Notable Question Notable Question Good Question Popular Question Good Answer Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 35314,100077,1394350,NULL,NULL,NULL,0,NULL,NULL 35315,144733,412916,Good Answer Necromancer Great Answer Good Answer Revival Good Answer Guru Nice Answer Nice Answer Good Answer Good Answer Announcer Documentation Pioneer Yearling Announcer Nice Answer Enlightened Announcer Announcer Guru Nice Answer Revival Caucus Constituent Good Answer Announcer Good Answer Nice Answer Enlightened Good Answer Caucus Constituent Necromancer Yearling Necromancer Custodian Documentation User Nice Answer Good Answer Good Answer Nice Answer Announcer Necromancer Nice Answer Nice Answer Caucus Constituent Necromancer Announcer Announcer Good Answer Yearling Revival Nice Answer Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 35316,45437,169748,Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Caucus Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Good Question Popular Question Famous Question Nice Answer Enlightened Nice Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35317,227849,671555,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35318,7611282,1565061,NULL,NULL,NULL,0,NULL,NULL 35319,75736,179570,Yearling Custodian Popular Question Famous Question Nice Answer Enlightened Excavator Documentation User Custodian Custodian Yearling Announcer,NULL,NULL,0,NULL,NULL 35320,141523,898503,NULL,NULL,NULL,0,NULL,NULL 35321,37861,259692,Good Question Yearling,NULL,NULL,0,NULL,NULL 35322,619133,1202118,Critic Yearling Custodian Custodian Citizen Patrol Custodian Yearling Organizer Quorum Yearling Curious Custodian Necromancer Yearling Nice Answer Enlightened Caucus Nice Answer Popular Question Popular Question Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 35323,44854,1113844,NULL,NULL,NULL,0,NULL,NULL 35324,37683,860988,NULL,NULL,NULL,0,NULL,NULL 35325,652924,1226156,Popular Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 35326,285912,423102,NULL,NULL,NULL,0,NULL,NULL 35327,4269682,595485,NULL,NULL,NULL,0,NULL,NULL 35328,432183,595485,NULL,NULL,NULL,0,NULL,NULL 35329,1168555,859253,Popular Question,NULL,NULL,0,NULL,NULL 35330,307931,511362,Famous Question Nice Question Great Answer Nice Answer Popular Question Good Answer Nice Question Popular Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling Notable Question Good Answer Popular Question Popular Question Popular Question Good Answer Nice Question Good Answer Notable Question Caucus Notable Question Yearling Nice Question Popular Question Popular Question Good Question Nice Answer Good Answer Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 35331,169872,489897,Popular Question Announcer Commentator,NULL,NULL,0,NULL,NULL 35332,929722,212538,Nice Answer Caucus Yearling Nice Answer Good Answer Yearling Necromancer Popular Question Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 35333,262783,879201,NULL,NULL,NULL,0,NULL,NULL 35334,98418,709934,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35335,448942,1058662,NULL,NULL,NULL,0,NULL,NULL 35336,1466389,871915,Informed,NULL,NULL,0,NULL,NULL 35337,52493,976275,NULL,NULL,NULL,0,NULL,NULL 35338,219737,540747,Popular Question Famous Question Notable Question Critic Nice Question,NULL,NULL,0,NULL,NULL 35339,470522,1566148,NULL,NULL,NULL,0,NULL,NULL 35340,109180,1491412,NULL,NULL,NULL,0,NULL,NULL 35341,2118777,1221045,NULL,NULL,NULL,0,NULL,NULL 35342,145727,800016,Nice Answer Enlightened Nice Answer Enlightened Guru sequelize.js Nice Answer Enlightened Nice Answer Enlightened Guru Guru Yearling Good Answer Good Answer Good Answer node.js mysql Caucus Nice Answer Enlightened Good Answer javascript Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Good Answer Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Guru Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35343,5937251,544442,Guru Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 35344,387582,115036,Editor Necromancer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 35345,152394,1531346,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35346,8084,1259390,Self-Learner Inquisitive Popular Question Popular Question Yearling Caucus Custodian Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question,NULL,Compute pairwise distance in batch without replicating tensor in Tensorflow python tensorflow pI want to compute the pairwise square distance of batch of feature in Tensorflow have simple implementation using and operations bytiling the original tensor ppre codedef pairwise l2 norm2 scope None with tf op scope scope pairwise l2 norm2 size tf shape size tf shape xx tf expand dims xx tf tile xx tf pack size yy tf expand dims yy tf tile yy tf pack size yy tf transpose yy perm diff tf sub xx yy square diff tf square diff square dist tf reduce sum square diff return square dist code prepThis function takes as input two matrices of size and and compute the squared distance between each row vector The output is matrix of size with element ij dist ppThe problem is that have large batch and high dim features replicating the tensor consume lot of memory looking for another way to implement this without increasing the memory usage and just only store the final distance tensor Kind of double looping the original tensor update the question to explain this If you put batch of features as input of this function it should compute distance between its rows,1,Compute pairwise distance in batch without replicating tensor in Tensorflow python tensorflow pI want to compute the pairwise square distance of batch of feature in Tensorflow have simple implementation using and operations bytiling the original tensor ppre codedef pairwise l2 norm2 scope None with tf op scope scope pairwise l2 norm2 size tf shape size tf shape xx tf expand dims xx tf tile xx tf pack size yy tf expand dims yy tf tile yy tf pack size yy tf transpose yy perm diff tf sub xx yy square diff tf square diff square dist tf reduce sum square diff return square dist code prepThis function takes as input two matrices of size and and compute the squared distance between each row vector The output is matrix of size with element ij dist ppThe problem is that have large batch and high dim features replicating the tensor consume lot of memory looking for another way to implement this without increasing the memory usage and just only store the final distance tensor Kind of double looping the original tensor Load checkpoint and finetuning using tf estimator Estimator tensorflow pWe re trying to translate old training code based into more tf estimator Estimator compliant code In the initial code we fine tune an original model for target dataset Only some layers are loaded from the checkpoint before the training takes place using combination of strongvariables to restore strong and stronginit fn strong with the strongMonitoredTrainingSession strong How can one achieve this kind of weight loading with the tf estimator Estimator approach,NULL 35347,370603,1526096,NULL,NULL,NULL,0,NULL,NULL 35348,1518941,635038,NULL,NULL,NULL,0,NULL,NULL 35349,1079691,1345667,NULL,NULL,NULL,0,NULL,NULL 35350,87901,144563,Nice Answer Yearling Famous Question Yearling Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 35351,71926,278374,NULL,NULL,NULL,0,NULL,NULL 35352,238578,1372807,NULL,NULL,NULL,0,NULL,NULL 35353,860114,434414,Popular Question Popular Question Popular Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 35354,409169,793449,Yearling Notable Question Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 35355,13217,972282,NULL,NULL,NULL,0,NULL,NULL 35356,105931,70170,Great Answer Guru Yearling Necromancer Great Answer Good Answer Self-Learner Nice Question Great Answer Revival Good Answer Good Answer Nice Answer Enlightened Popular Question Guru Yearling Popular Question Announcer Great Answer Civic Duty Nice Answer Great Answer Custodian Custodian Yearling Caucus Necromancer Guru Benefactor Popular Question Announcer Nice Answer Good Answer Good Answer Good Answer windows,NULL,pIf Machine is Windows box you can use Plink part of href http www chiark greenend org uk sgtatham putty rel noreferrer PuTTY with the parameter and it will execute the local script on the remote server ppre codeplink root local script sh code prepIf Machine is Unix based system you can use ppre codessh root bash lt local script sh code prepYou shouldn have to copy the script to the remote server to run it It been very long time since ve tried running on SSH server on Windows suspect it defect or limitation of your SSH server on Windows that it won take more than one line of input from the SSH command when run non interactively suggest creating new question and describe exactly which server and client you re using what you expect and what you get instead,0,NULL,NULL 35357,167281,510092,Commentator,NULL,NULL,0,NULL,NULL 35358,253535,615954,NULL,NULL,NULL,0,NULL,NULL 35359,206869,415910,Famous Question Nice Question Informed,NULL,NULL,0,NULL,NULL 35360,182286,694134,Yearling Nice Answer Enlightened Yearling Famous Question Documentation User Curious Yearling Popular Question,NULL,NULL,0,NULL,NULL 35361,3119733,694134,Yearling Nice Answer Enlightened Yearling Famous Question Documentation User Curious Yearling Popular Question,NULL,NULL,0,NULL,NULL 35362,1101344,438754,Nice Question Famous Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 35363,123175,194389,Popular Question Popular Question Famous Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 35364,1428273,924281,NULL,NULL,NULL,0,NULL,NULL 35365,260377,1135284,Caucus Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 35366,897734,1274844,NULL,NULL,NULL,0,NULL,NULL 35367,37848,1172572,Supporter,NULL,NULL,0,NULL,NULL 35368,9015913,1487468,Nice Answer Critic Student,NULL,NULL,0,NULL,NULL 35369,201451,1487468,Nice Answer Critic Student,NULL,NULL,0,NULL,NULL 35370,338352,830352,NULL,NULL,NULL,0,NULL,NULL 35371,45120,16254,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 35372,150201,375797,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35373,321235,375797,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35374,220527,283954,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35375,78497,999847,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 35376,1165325,658197,NULL,NULL,NULL,0,NULL,NULL 35377,48457,1980,Popular Question Custodian Yearling Great Answer Custodian Nice Answer Guru Notable Question Yearling Famous Question Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 35378,165294,577926,Yearling css Nice Answer Good Answer Great Answer Nice Answer html Guru Yearling Guru Popular Question Great Answer Nice Answer Nice Answer Popular Question Necromancer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 35379,80566,271420,Yearling Custodian Informed Caucus Yearling Popular Question Notable Question c# Yearling Custodian Curious,NULL,NULL,0,NULL,NULL 35380,430679,433288,Guru Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 35381,6329345,175264,Notable Question Good Question Yearling Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 35382,3995040,175264,Notable Question Good Question Yearling Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 35383,175009,414111,NULL,NULL,NULL,0,NULL,NULL 35384,763155,846635,NULL,NULL,NULL,0,NULL,NULL 35385,669598,1089487,NULL,NULL,NULL,0,NULL,NULL 35386,25645,1152479,NULL,NULL,NULL,0,NULL,NULL 35387,7990,1090265,Popular Question Citizen Patrol Popular Question Notable Question Yearling Teacher Popular Question Nice Question Notable Question Famous Question Nice Question Yearling Critic Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 35388,192342,567762,Yearling Nice Question Notable Question Nice Answer Popular Question Necromancer Guru Necromancer Unsung Hero Proofreader Pundit Necromancer Explainer Necromancer Popular Question Custodian Revival Yearling Nice Answer ruby-on-rails Notable Question Good Answer Announcer Good Answer Reviewer Popular Question Popular Question Announcer Caucus Inquisitive Necromancer Constituent Popular Question Popular Question Nice Answer Popular Question Popular Question Yearling Good Answer Nice Answer Tag Editor Nice Question Nice Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 35389,68157,281416,Yearling,NULL,NULL,0,NULL,NULL 35390,1517390,1234033,NULL,NULL,NULL,0,NULL,NULL 35391,1149394,1121533,Teacher Student,NULL,NULL,0,NULL,NULL 35392,128167,526716,NULL,NULL,NULL,0,NULL,NULL 35393,73794,1413041,NULL,NULL,NULL,0,NULL,NULL 35394,149312,1204133,NULL,NULL,NULL,0,NULL,NULL 35395,942653,166851,Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35396,67241,601004,NULL,NULL,NULL,0,NULL,NULL 35397,72779,296900,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 35398,469940,1252479,NULL,NULL,NULL,0,NULL,NULL 35399,138583,180513,Citizen Patrol Necromancer Caucus Custodian Informed Autobiographer Nice Answer Yearling Caucus Constituent Editor,NULL,NULL,0,NULL,NULL 35400,84849,1496266,NULL,NULL,NULL,0,NULL,NULL 35401,6535,620181,Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Guru Yearling Notable Question Enlightened Nice Question Populist Good Answer Yearling Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 35402,32647,722294,Pundit Revival Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Good Answer Notable Question Documentation User Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35403,267121,1296820,NULL,NULL,NULL,0,NULL,NULL 35404,417377,1488959,NULL,NULL,NULL,0,NULL,NULL 35405,422964,1337097,Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 35406,2228684,951747,NULL,NULL,NULL,0,NULL,NULL 35407,93334,1078579,Yearling Good Answer Notable Question Nice Question Necromancer Announcer Announcer Nice Answer Announcer Good Answer Good Answer Guru Yearling Favorite Question Yearling Announcer Great Answer Popular Question,NULL,NULL,0,NULL,NULL 35408,702964,667758,Notable Question Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 35409,1534473,401142,Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35410,66094,297765,Famous Question Excavator Favorite Question Yearling Nice Answer Good Answer Popular Question google-chrome-devtools Popular Question Famous Question javascript Nice Answer Civic Duty Nice Answer Necromancer Guru Popular Question Yearling Good Answer Census Nice Answer Yearling Good Answer Nice Answer Enlightened Revival Great Answer,NULL,NULL,0,NULL,NULL 35411,29581,532780,Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 35412,29370,885189,Electorate Yearling Revival Caucus Constituent Custodian Custodian Custodian Yearling Announcer Caucus Announcer Necromancer Constituent Nice Answer Yearling Announcer Deputy Good Answer Caucus Popular Question Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 35413,1516261,709354,Notable Question Scholar Editor Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35414,489536,516701,android Nice Answer Enlightened react-native Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Custodian Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Informed Good Answer Yearling Good Answer Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 35415,185917,255288,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35416,544765,327553,NULL,NULL,NULL,0,NULL,NULL 35417,142907,334649,Yearling Self-Learner Notable Question Notable Question Custodian Nice Answer,NULL,NULL,0,NULL,NULL 35418,146141,1437671,NULL,NULL,NULL,0,NULL,NULL 35419,3782,537207,NULL,NULL,NULL,0,NULL,NULL 35420,11876,199912,Tumbleweed Student selenium Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35421,62196,183544,Necromancer Necromancer Nice Answer Popular Question Good Question Necromancer Revival Yearling Nice Answer Good Answer Necromancer Nice Question Popular Question Notable Question Yearling Famous Question Necromancer Revival Excavator Popular Question Nice Answer Notable Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 35422,488819,1219123,NULL,NULL,NULL,0,NULL,NULL 35423,83076,312507,NULL,NULL,NULL,0,NULL,NULL 35424,87093,1273796,NULL,NULL,NULL,0,NULL,NULL 35425,356823,910388,NULL,NULL,NULL,0,NULL,NULL 35426,116919,300632,Yearling Custodian Explainer Revival Great Answer Yearling Critic Popular Question Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35427,130895,975393,Student,NULL,NULL,0,NULL,NULL 35428,2143115,1350724,NULL,NULL,NULL,0,NULL,NULL 35429,112696,352648,Notable Question Yearling Yearling Self-Learner watir Nice Answer,NULL,NULL,0,NULL,NULL 35430,80595,990771,NULL,NULL,NULL,0,NULL,NULL 35431,3028,222454,Stellar Question Famous Question Popular Question Yearling Notable Question Yearling Nice Question Good Question Yearling Famous Question Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 35432,101235,562885,Editor Excavator Necromancer Organizer Nice Answer,NULL,NULL,0,NULL,NULL 35433,205387,176683,Yearling Popular Question Notable Question Yearling Nice Question Custodian Self-Learner,NULL,NULL,0,NULL,NULL 35434,27489,2679,Notable Question Nice Answer Enlightened Nice Answer Yearling Nice Answer Notable Question Notable Question Yearling Taxonomist Nice Answer Nice Question Notable Question Tag Editor Yearling Good Answer,NULL,NULL,0,NULL,NULL 35435,262134,769046,Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 35436,174532,1400616,Yearling,NULL,NULL,0,NULL,NULL 35437,296266,536880,NULL,NULL,NULL,0,NULL,NULL 35438,305559,373324,NULL,NULL,NULL,0,NULL,NULL 35439,917604,595013,NULL,NULL,NULL,0,NULL,NULL 35440,4403909,1191972,NULL,NULL,NULL,0,NULL,NULL 35441,598277,1191972,NULL,NULL,NULL,0,NULL,NULL 35442,358378,673020,NULL,NULL,NULL,0,NULL,NULL 35443,1422854,709496,Yearling Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 35444,268153,1449338,NULL,NULL,NULL,0,NULL,NULL 35445,696568,1291138,NULL,NULL,NULL,0,NULL,NULL 35446,86243,1256609,Yearling Nice Answer Good Answer Good Answer Yearling Nice Answer algorithm Guru Yearling,NULL,NULL,0,NULL,NULL 35447,1373244,1203921,NULL,NULL,NULL,0,NULL,NULL 35448,474602,1159339,Yearling Autobiographer Custodian Great Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 35449,1059557,1081990,Yearling Notable Question Custodian Revival Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 35450,384821,185292,Popular Question Notable Question Caucus Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35451,924987,910954,NULL,NULL,NULL,0,NULL,NULL 35452,68837,1445662,NULL,NULL,NULL,0,NULL,NULL 35453,351311,920559,NULL,NULL,NULL,0,NULL,NULL 35454,232541,671855,NULL,NULL,NULL,0,NULL,NULL 35455,220219,494560,Notable Question Good Question Notable Question Nice Answer Necromancer Citizen Patrol Popular Question Yearling Popular Question Notable Question Tumbleweed Custodian Inquisitive Popular Question Notable Question Nice Question Popular Question Yearling Popular Question Notable Question Notable Question Famous Question Benefactor Popular Question Favorite Question Popular Question Good Question Popular Question Notable Question Popular Question Organizer Nice Question Nice Question Electorate Notable Question Yearling,NULL,NULL,0,NULL,NULL 35456,249224,544389,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35457,948399,284681,Popular Question Yearling Popular Question Good Question Popular Question Notable Question Nice Question Popular Question Popular Question Nice Question Yearling Popular Question Nice Answer Popular Question Nice Question Favorite Question Popular Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 35458,185843,451771,NULL,NULL,NULL,0,NULL,NULL 35459,75635,5834,Nice Answer Nice Answer Enlightened Good Answer Yearling Guru Guru Curious Yearling Guru Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35460,23816,16340,Nice Answer Yearling Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 35461,299444,1246096,Yearling Guru Yearling Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 35462,181358,300421,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 35463,659760,699715,NULL,NULL,NULL,0,NULL,NULL 35464,70469,3,Nice Answer Investor Altruist Documentation Beta Yearling Guru Caucus Constituent Census Announcer Yearling Good Answer Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35465,17609,338632,Yearling Nice Question Popular Question Great Answer Notable Question Popular Question Custodian Yearling Notable Question Documentation User Yearling,NULL,NULL,0,NULL,NULL 35466,424905,252717,NULL,NULL,NULL,0,NULL,NULL 35467,291436,100589,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35468,1339231,773578,Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35469,897741,1024,Famous Question Caucus Caucus Constituent Nice Question Good Answer Yearling Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 35470,159613,1116023,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 35471,194621,1435833,NULL,NULL,NULL,0,NULL,NULL 35472,2997735,1435833,NULL,NULL,NULL,0,NULL,NULL 35473,241358,217089,Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Custodian Notable Question Popular Question Caucus Yearling Custodian Good Answer Nice Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35474,72669,1380673,Excavator Yearling Nice Question Notable Question Necromancer Announcer Revival Yearling Revival Announcer Necromancer Yearling Custodian Nice Answer Quorum Announcer Necromancer Announcer Announcer Revival Yearling,NULL,pWhat happens here is that the the vendored versions of request urllib3 clash when imported in two different places same code but different names If you then have network error it doesn retry to get the wheel but fails with the above error See href https github com shazow urllib3 issues 567 rel noreferrer here for deeper dive into this error ppFor the solution with system pip see href https stackoverflow com 37531821 1380673 above ppIf you have this problem in virtualenv built by codepython venv code which still copies the wheels from code usr share python wheels code even if you have pip installed separately the easiest way to fix it seems to be pollicreate the virtualenv code usr bin python3 venv code liliinstall coderequests code into the environment this might raise the above error code lt venv gt bin pip install requests code liliremove the copied versions of coderequests code which would be used by pip coderm lt venv gt share python wheels requests chardet urllib3 whl code li olpNow code lt venv gt bin pip code uses the installed version of coderequests code which has urllib3 vendored If you remove the whl files directly in usr share python wheels python venv will not create useable venv bin pip anymore So if you remove these files you should be sure that you do not need it If you do need both system pip and venv pip you need to do install the system one with get pip py See http stackoverflow com 37531821 1380673 and you need to remove the whl files in each venv,1,NULL,Python PIP Install throws TypeError unsupported operand type for Retry and int python pip pUsing codepip install code for any module apparently on my Ubuntu 16 04 system with python 11 throws this error ppre codeTypeError unsupported operand type for Retry and int code prepWhat is wrong with pip How could reinstall it if necessary ppUpdate Full traceback is below ppre codesunny pip install requestsCollecting requestsException Traceback most recent call last File usr lib python2 dist packages pip basecommand py line 209 in main status self run options args File usr lib python2 dist packages pip commands install py line 328 in run wb build autobuilding True File usr lib python2 dist packages pip wheel py line 748 in build self requirement set prepare files self finder File usr lib python2 dist packages pip req req set py line 360 in prepare files ignore dependencies self ignore dependencies File usr lib python2 dist packages pip req req set py line 512 in prepare file finder self upgrade require hashes File usr lib python2 dist packages pip req req install py line 273 in populate link self link finder find requirement self upgrade File usr lib python2 dist packages pip index py line 442 in find requirement all candidates self find all candidates req name File usr lib python2 dist packages pip index py line 400 in find all candidates for page in self get pages url locations project name File usr lib python2 dist packages pip index py line 545 in get pages page self get page location File usr lib python2 dist packages pip index py line 648 in get page return HTMLPage get page link session self session File usr lib python2 dist packages pip index py line 757 in get page Cache Control max age 600 File usr share python wheels requests py2 py3 none any whl requests sessions py line 480 in get return self request GET url kwargs File usr lib python2 dist packages pip download py line 378 in request return super PipSession self request method url args kwargs File usr share python wheels requests py2 py3 none any whl requests sessions py line 468 in request resp self send prep send kwargs File usr share python wheels requests py2 py3 none any whl requests sessions py line 576 in send adapter send request kwargs File usr share python wheels CacheControl 11 py2 py3 none any whl cachecontrol adapter py line 46 in send resp super CacheControlAdapter self send request kw File usr share python wheels requests py2 py3 none any whl requests adapters py line 376 in send timeout timeout File usr share python wheels urllib3 13 py2 py3 none any whl urllib3 connectionpool py line 610 in urlopen stacktrace sys exc info File usr share python wheels urllib3 13 py2 py3 none any whl urllib3 util retry py line 228 in increment total 1TypeError unsupported operand type for Retry and int code pre pWhat happens here is that the the vendored versions of request urllib3 clash when imported in two different places same code but different names If you then have network error it doesn retry to get the wheel but fails with the above error See href https github com shazow urllib3 issues 567 rel noreferrer here for deeper dive into this error ppFor the solution with system pip see href https stackoverflow com 37531821 1380673 above ppIf you have this problem in virtualenv built by codepython venv code which still copies the wheels from code usr share python wheels code even if you have pip installed separately the easiest way to fix it seems to be pollicreate the virtualenv code usr bin python3 venv code liliinstall coderequests code into the environment this might raise the above error code lt venv gt bin pip install requests code liliremove the copied versions of coderequests code which would be used by pip coderm lt venv gt share python wheels requests chardet urllib3 whl code li olpNow code lt venv gt bin pip code uses the installed version of coderequests code which has urllib3 vendored 35475,83605,1106451,NULL,NULL,NULL,0,NULL,NULL 35476,357607,166620,Famous Question Famous Question Yearling Nice Question Popular Question Yearling Famous Question Notable Question Favorite Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35477,1888600,1080424,NULL,NULL,NULL,0,NULL,NULL 35478,10846,630139,NULL,NULL,NULL,0,NULL,NULL 35479,233821,20540,Civic Duty Custodian Informed Autobiographer Census Notable Question Enthusiast Editor,NULL,NULL,0,NULL,NULL 35480,594549,59184,Custodian,NULL,NULL,0,NULL,NULL 35481,21248,501945,Necromancer Nice Question Notable Question Yearling Popular Question Popular Question Nice Answer Famous Question Documentation User Famous Question Famous Question,NULL,NULL,0,NULL,NULL 35482,208899,514156,Notable Question Commentator Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35483,1401592,994623,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35484,387810,1441428,NULL,NULL,NULL,0,NULL,NULL 35485,7125,228024,Yearling Yearling,NULL,NULL,0,NULL,NULL 35486,126182,1387760,NULL,NULL,NULL,0,NULL,NULL 35487,110943,170642,NULL,NULL,NULL,0,NULL,NULL 35488,695,53402,Revival,NULL,NULL,0,NULL,NULL 35489,20843,229467,NULL,NULL,NULL,0,NULL,NULL 35490,420920,957617,Scholar,NULL,NULL,0,NULL,NULL 35491,269947,851146,NULL,NULL,pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre Still getting it with Rake 11,0,NULL,NULL 35492,214044,303947,Famous Question,NULL,NULL,0,NULL,NULL 35493,427880,1195547,NULL,NULL,NULL,0,NULL,NULL 35494,8193,506465,NULL,NULL,NULL,0,NULL,NULL 35495,243272,602431,NULL,NULL,NULL,0,NULL,NULL 35496,208644,680761,Popular Question Nice Question Popular Question Nice Question Popular Question Popular Question Nice Question Popular Question Inquisitive Popular Question Nice Question Yearling Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Yearling Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question,NULL,plibjpeg dev is required to be able to process jpegs with pillow or PIL so you need to install it and then recompile pillow It also seems that libjpeg8 dev is needed on Ubuntu 14 04 ppIf you re still using PIL then you should really be using pillow these days though so first codepip uninstall PIL code before following these instructions to switch or if you have good reason for sticking with PIL then replace pillow with PIL in the below ppOn Ubuntu ppre code install libjpeg dev with aptsudo apt get install libjpeg dev if you re on Ubuntu 14 04 also install thissudo apt get install libjpeg8 dev reinstall pillowpip install no cache dir pillow code prepIf that doesn work try one of the below depending on whether you are on 64bit or 32bit Ubuntu ppFor Ubuntu x64 ppre codesudo ln usr lib x86 64 linux gnu libjpeg so usr libsudo ln usr lib x86 64 linux gnu libfreetype so usr libsudo ln usr lib x86 64 linux gnu libz so usr lib code prepOr for Ubuntu 32bit ppre codesudo ln usr lib i386 linux gnu libjpeg so usr lib sudo ln usr lib i386 linux gnu libfreetype so usr lib sudo ln usr lib i386 linux gnu libz so usr lib code prepThen reinstall pillow ppre codepip install no cache dir pillow code prep Edits to include feedback from comments Thanks Charles Offenbacher for pointing out this differs for 32bit and mart for suggesting use of code no cache dir code personally just needed to uninstall and reinstall pillow Strangely that it And this was on new server so im not sure why it didn work the first time perhaps the order of installation was incorrect,0,NULL,NULL 35497,775911,983290,Notable Question Favorite Question Famous Question Yearling Necromancer Great Question Notable Question Notable Question Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 35498,213361,983290,Notable Question Favorite Question Famous Question Yearling Necromancer Great Question Notable Question Notable Question Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 35499,128117,175830,Necromancer Yearling Good Answer Nice Answer Pundit Necromancer Necromancer Yearling Famous Question Notable Question Good Question Famous Question Yearling Revival Popular Question Announcer Nice Answer Necromancer Announcer Yearling Necromancer Documentation User Announcer Nice Answer Nice Answer Census Necromancer Popular Question Nice Answer Yearling,NULL,pUse href http elixir lang org getting started comprehensions html Comprehensions ppre codeiex gt string key map foo gt bar hello gt world foo gt bar hello gt world iex gt for key val lt string key map into do String to atom key val foo bar hello world code pre Warning You shouldn call this on untrusted user input because atom are not garbage collected and could cause you to run into the limit of the number of atoms allowed on the BEAM https hexdocs pm elixir String html to atom,0,NULL,NULL 35500,844908,455089,Informed,NULL,NULL,0,NULL,NULL 35501,97635,615385,Yearling Nice Answer Enlightened Famous Question Custodian Nice Answer Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 35502,362160,495496,NULL,NULL,NULL,0,NULL,NULL 35503,2504943,1207253,Popular Question,NULL,NULL,0,NULL,NULL 35504,732563,1280687,NULL,NULL,NULL,0,NULL,NULL 35505,30877,78453,Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35506,44174,201990,Caucus Revival Yearling Nice Answer Popular Question Popular Question Revival Custodian Custodian Famous Question Caucus Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 35507,111390,20266,NULL,NULL,NULL,0,NULL,NULL 35508,302807,933948,NULL,NULL,NULL,0,NULL,NULL 35509,42422,1153216,Yearling Commentator Yearling Revival Revival Revival Yearling,NULL,NULL,0,NULL,NULL 35510,2949980,730016,Popular Question,NULL,NULL,0,NULL,NULL 35511,507962,48251,Nice Answer Tumbleweed Revival Caucus Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 35512,72199,48251,Nice Answer Tumbleweed Revival Caucus Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 35513,141777,372794,NULL,NULL,NULL,0,NULL,NULL 35514,66685,105771,Popular Question Nice Question Yearling Necromancer Nice Answer Yearling Popular Question Notable Question Good Answer Great Answer Yearling Good Question Talkative,NULL,NULL,0,NULL,NULL 35515,1193601,557685,NULL,NULL,NULL,0,NULL,NULL 35516,616412,1409109,NULL,NULL,NULL,0,NULL,NULL 35517,180923,299336,NULL,NULL,NULL,0,NULL,NULL 35518,217073,301833,Popular Question Yearling Famous Question Nice Question Teacher Popular Question Caucus Popular Question Yearling Self-Learner Notable Question Popular Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 35519,1230594,1442327,Caucus,NULL,NULL,0,NULL,NULL 35520,248362,347188,Necromancer,NULL,NULL,0,NULL,NULL 35521,36834,134348,Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35522,2407007,376415,NULL,NULL,NULL,0,NULL,NULL 35523,231560,359048,Announcer,NULL,NULL,0,NULL,NULL 35524,520553,992753,NULL,NULL,NULL,0,NULL,NULL 35525,215893,989797,NULL,NULL,NULL,0,NULL,NULL 35526,294321,218208,Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Tag Editor Notable Question Pundit Yearling Notable Question Famous Question Famous Question Popular Question Nice Question Announcer Notable Question Necromancer Civic Duty Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 35527,266777,360595,NULL,NULL,NULL,0,NULL,NULL 35528,48610,385986,Popular Question,NULL,NULL,0,NULL,NULL 35529,297526,726517,NULL,NULL,NULL,0,NULL,NULL 35530,205347,165248,Famous Question Nice Question Yearling Great Answer Populist Yearling Yearling,NULL,strongSwift Update strongThere are new failable initializers that allow you to do this in more idiomatic and safe way as many answers have noted NSString double value is not very safe because it returns for non number values This means that the codedoubleValue code of code foo code and code code are the same ppre codelet myDouble Double myString code prepThis returns an optional so in cases like passing in code foo code where codedoubleValue code would have returned the failable intializer will return codenil code You can use codeguard code codeif let code or codemap code to handle the codeOptional lt Double gt code pp strongOriginal Post strongYou don need to use the NSString constructor like the accepted answer proposes You can simply bridge it like this ppre code swiftString as NSString doubleValue code pre Very true ól However given that the question was asking how to do double myDouble myString doubleValue in Swift think it is the answer the poster was looking for and for many people what they want,0,NULL,NULL 35531,31634,463471,Announcer Famous Question,NULL,NULL,0,NULL,NULL 35532,51971,280329,Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Announcer Nice Answer Enlightened Notable Question Yearling Nice Answer Notable Question Nice Answer Guru Guru Enlightened Yearling Guru Good Answer Good Answer,NULL,NULL,0,NULL,NULL 35533,239194,501148,NULL,NULL,NULL,0,NULL,NULL 35534,63598,484754,Yearling Autobiographer Critic,NULL,NULL,0,NULL,NULL 35535,883228,334954,NULL,NULL,NULL,0,NULL,NULL 35536,19181,241743,NULL,NULL,NULL,0,NULL,NULL 35537,180231,171021,Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Famous Question Good Question Popular Question Popular Question Notable Question Yearling Notable Question Famous Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35538,491302,153403,NULL,NULL,NULL,0,NULL,NULL 35539,392030,164308,Yearling Autobiographer Necromancer Nice Answer Yearling Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 35540,297896,1373007,NULL,NULL,NULL,0,NULL,NULL 35541,6731338,1125832,NULL,NULL,NULL,0,NULL,NULL 35542,1990,578918,NULL,NULL,NULL,0,NULL,NULL 35543,24458,246044,Popular Question,NULL,NULL,0,NULL,NULL 35544,105473,180995,Guru Guru Nice Answer Guru Yearling Famous Question Nice Answer Good Answer Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 35545,2625,94977,Nice Answer Good Answer Yearling Guru Nice Answer Populist Popular Question Nice Answer Nice Answer Popular Question Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Nice Answer Good Answer Guru Good Answer Guru Guru Yearling java Tag Editor Promoter Nice Answer,NULL,strongIf the sampling is with replacement strong you can use this algorithm implemented here in Python ppre codeimport randomitems 10 low 100 mid 890 large def weighted sample items total float sum for in items items while total random random total while gt items yield code prepThis is emn em emm em where emm em is the number of items pp strongWhy does this work strong It is based on the following algorithm ppre codedef random numbers decreasing Like reversed sorted random for in range but faster because we avoid sorting while random random yield code prepThe function codeweighted sample code is just this algorithm fused with walk of the codeitems code list to pick out the items selected by those random numbers ppThis in turn works because the probability that emn em random numbers emv em will all happen to be less than emz em is emP em emz em sup emn em sup Solve for emz em and you get emz em emvP em sup1 emn em sup Substituting random number for emP em picks the largest number with the correct distribution and we can just repeat the process to select all the other numbers pp strongIf the sampling is without replacement strong you can put all the items into binary heap where each node caches the total of the weights of all items in that subheap Building the heap is emm em Selecting random item from the heap respecting the weights is log emm em Removing that item and updating the cached totals is also log emm em So you can pick emn em items in emm em emn em log emm em time pp Note weight here means that every time an element is selected the remaining possibilities are chosen with probability proportional to their weights It does not mean that elements appear in the output with likelihood proportional to their weights ppHere an implementation of that plentifully commented ppre codeimport randomclass Node Each node in the heap has weight value and total weight The total weight self tw is self plus the weight of any children slots tw def init self tw self self self tw twdef rws heap items is the heap It like binary tree that lives in an array It has Node for each pair in items is the root Each other Node has parent at gt gt Each node has up to children lt lt and lt lt To get this nice simple arithmetic we have to leave vacant None leave vacant for in items append Node for in range len total up the tws gt gt tw tw add total to its parent return hdef rws heap pop gas tw random random start with random amount of gas start driving at the root while gas gt while we have enough gas to get past node gas drive past node lt lt move to first child if gas gt tw if we have enough gas gas tw drive past first child and descendants move to second child out of gas is the selected node make sure this node isn chosen again while fix up total weights tw gt gt return vdef random weighted sample no replacement items heap rws heap items just make heap for in range yield rws heap pop heap and pop items off it code pre backed out your edit changing to in two places Note that gas is random floating point number so it very unlikely to matter But if we do run out of gas exactly on the boundary between two regions think we should probably round down random random returns number with probability and number with probability note that the exact value is in the first set not the second strongIf the sampling is with replacement strong you can use this algorithm implemented here in Python ppre codeimport randomitems 10 low 100 mid 890 large def weighted sample items total float sum for in items items while total random random total while gt items yield code prepThis is emn em emm em where emm em is the number of items pp strongWhy does this work strong It is based on the following algorithm ppre codedef random numbers decreasing Like reversed sorted random for in range but faster because we avoid sorting while random random yield code prepThe function codeweighted sample code is just this algorithm fused with walk of the codeitems code list to pick out the items selected by those random numbers ppThis in turn works because the probability that emn em random numbers emv em will all happen to be less than emz em is emP em emz em sup emn em sup Solve for emz em and you get emz em emvP em sup1 emn em sup Substituting random number for emP em picks the largest number with the correct distribution and we can just repeat the process to select all the other numbers pp strongIf the sampling is without replacement strong you can put all the items into binary heap where each node caches the total of the weights of all items in that subheap Building the heap is emm em Selecting random item from the heap respecting the weights is log emm em Removing that item and updating the cached totals is also log emm em So you can pick emn em items in emm em emn em log emm em time pp Note weight here means that every time an element is selected the remaining possibilities are chosen with probability proportional to their weights It does not mean that elements appear in the output with likelihood proportional to their weights ppHere an implementation of that plentifully commented ppre codeimport randomclass Node Each node in the heap has weight value and total weight The total weight self tw is self plus the weight of any children slots tw def init self tw self self self tw twdef rws heap items is the heap It like binary tree that lives in an array It has Node for each pair in items is the root Each other Node has parent at gt gt Each node has up to children lt lt and lt lt To get this nice simple arithmetic we have to leave vacant None leave vacant for in items append Node for in range len total up the tws gt gt tw tw add total to its parent return hdef rws heap pop gas tw random random start with random amount of gas start driving at the root while gas gt while we have enough gas to get past node gas drive past node lt lt move to first child if gas gt tw if we have enough gas gas tw drive past first child and descendants move to second child out of gas is the selected node make sure this node isn chosen again while fix up total weights tw gt gt return vdef random weighted sample no replacement items heap rws heap items just make heap for in range yield rws heap pop heap and pop items off it code pre Heh You are totally right is in the second set OK cool with pThese days the href https developer mozilla org en US docs Web JavaScript Reference Global Objects String repeat rel noreferrer coderepeat code string method is implemented emalmost em everywhere It is href https developer mozilla org en US docs Web JavaScript Reference Global Objects String repeat Browser compatibility rel noreferrer not in Internet Explorer So unless you need to support older browsers you can simply write ppre code repeat 10 code prepBefore coderepeat code we used this hack ppre codeArray 11 join create string with 10 aaaaaaaaaa code prep Note that an array of length 11 gets you only 10 since codeArray join code puts the argument embetween em the array elements ppSimon also points out that according to href http jsperf com repeating character rel noreferrer this jsperf it appears that it faster in Safari and Chrome but not Firefox to repeat character multiple times by simply appending using for loop although bit less concise The formula is Array join When this returns the empty string and when it returns So think it works in all cases pThese days the href https developer mozilla org en US docs Web JavaScript Reference Global Objects String repeat rel noreferrer coderepeat code string method is implemented emalmost em everywhere It is href https developer mozilla org en US docs Web JavaScript Reference Global Objects String repeat Browser compatibility rel noreferrer not in Internet Explorer So unless you need to support older browsers you can simply write ppre code repeat 10 code prepBefore coderepeat code we used this hack ppre codeArray 11 join create string with 10 aaaaaaaaaa code prep Note that an array of length 11 gets you only 10 since codeArray join code puts the argument embetween em the array elements ppSimon also points out that according to href http jsperf com repeating character rel noreferrer this jsperf it appears that it faster in Safari and Chrome but not Firefox to repeat character multiple times by simply appending using for loop although bit less concise Thanks all edited the answer to mention IE specifically pIn project work on we do this ppre coderaise SIGABRT To continue from here in GDB signal code prep In our case we wanted to crash hard if this happened outside the debugger generating crash report if possible That one reason we used SIGABRT Doing this portably across Windows Mac and Linux took several attempts We ended up with few ifdefs helpfully commented here href http hg mozilla org mozilla central file 98fa9c0cff7a js src jsutil cpp l66 rel noreferrer http hg mozilla org mozilla central file 98fa9c0cff7a js src jsutil cpp l66 If you really just want the program to pause you might want to add breakpoint function in your program it can be empty or just contain print statement and add break breakpoint to your gdbinit pDoes it work if you just use href http www openbsd org cgi bin man cgi query nc amp sektion rel noreferrer codenc code ppI think you should try something little simpler ppre codeimport socketdef netcat hostname port content socket socket socket AF INET socket SOCK STREAM connect hostname port sendall content shutdown socket SHUT WR while data recv 1024 if data break print Received repr data print Connection closed close code prepI added the codeshutdown code call because maybe your device is waiting for you to say you re done sending data That would be little weird but it possible Bob you should consider clicking Ask Question and asking this one if you haven already,0,NULL,NULL 35546,48479,828753,Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 35547,395616,9133,Yearling Civic Duty,NULL,NULL,0,NULL,NULL 35548,29078,368798,Student Commentator,NULL,,0,, 35549,1559006,368798,Student Commentator,NULL,NULL,0,NULL,NULL 35550,39113,6212,Nice Question Populist Nice Answer Yearling Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Famous Question Generalist Good Answer Good Answer Yearling Documentation User Guru Guru Caucus Great Answer Good Answer Notable Question Nice Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35551,450503,902940,Tumbleweed Teacher Notable Question Informed Popular Question Commentator Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35552,1298179,291827,Populist Announcer Popular Question Good Answer Nice Answer Revival Great Question Yearling Notable Question Nice Question Custodian Custodian Notable Question java Nice Answer Enlightened Nice Answer Good Answer Nice Answer Famous Question Nice Answer Good Answer Revival Necromancer Nice Question Great Answer Yearling Popular Question Nice Answer Good Answer Announcer Popular Question Caucus Constituent Good Answer Documentation User Great Answer Announcer Yearling Announcer Nice Answer Famous Question Nice Answer Good Question Popular Question Famous Question,NULL,pMost phone cameras are landscape meaning if you take the photo in portrait the resulting photos will be rotated 90 degrees In this case the camera software should populate the href https en wikipedia org wiki Exif rel noreferrer Exif data with the orientation that the photo should be viewed in ppNote that the below solution depends on the camera software device manufacturer populating the Exif data so it will work in most cases but it is not 100 reliable solution ppre codeExifInterface ei new ExifInterface photoPath int orientation ei getAttributeInt ExifInterface TAG ORIENTATION ExifInterface ORIENTATION UNDEFINED Bitmap rotatedBitmap null switch orientation case ExifInterface ORIENTATION ROTATE 90 rotatedBitmap rotateImage bitmap 90 break case ExifInterface ORIENTATION ROTATE 180 rotatedBitmap rotateImage bitmap 180 break case ExifInterface ORIENTATION ROTATE 270 rotatedBitmap rotateImage bitmap 270 break case ExifInterface ORIENTATION NORMAL default rotatedBitmap bitmap code prepHere is the coderotateImage code method ppre codepublic static Bitmap rotateImage Bitmap source float angle Matrix matrix new Matrix matrix postRotate angle return Bitmap createBitmap source source getWidth source getHeight matrix true code pre looks like ExitInterface supports File and InputStream so you could create an InputStream http stackoverflow com 7698445 291827 pMost phone cameras are landscape meaning if you take the photo in portrait the resulting photos will be rotated 90 degrees In this case the camera software should populate the href https en wikipedia org wiki Exif rel noreferrer Exif data with the orientation that the photo should be viewed in ppNote that the below solution depends on the camera software device manufacturer populating the Exif data so it will work in most cases but it is not 100 reliable solution ppre codeExifInterface ei new ExifInterface photoPath int orientation ei getAttributeInt ExifInterface TAG ORIENTATION ExifInterface ORIENTATION UNDEFINED Bitmap rotatedBitmap null switch orientation case ExifInterface ORIENTATION ROTATE 90 rotatedBitmap rotateImage bitmap 90 break case ExifInterface ORIENTATION ROTATE 180 rotatedBitmap rotateImage bitmap 180 break case ExifInterface ORIENTATION ROTATE 270 rotatedBitmap rotateImage bitmap 270 break case ExifInterface ORIENTATION NORMAL default rotatedBitmap bitmap code prepHere is the coderotateImage code method ppre codepublic static Bitmap rotateImage Bitmap source float angle Matrix matrix new Matrix matrix postRotate angle return Bitmap createBitmap source source getWidth source getHeight matrix true code pre It should be the same speed regardless of the photo size because it only reading the Exif headers It not reading the pixel data If you have Bitmap that you have manually captured then there would be no Exif data associated with it anyway pMost phone cameras are landscape meaning if you take the photo in portrait the resulting photos will be rotated 90 degrees In this case the camera software should populate the href https en wikipedia org wiki Exif rel noreferrer Exif data with the orientation that the photo should be viewed in ppNote that the below solution depends on the camera software device manufacturer populating the Exif data so it will work in most cases but it is not 100 reliable solution ppre codeExifInterface ei new ExifInterface photoPath int orientation ei getAttributeInt ExifInterface TAG ORIENTATION ExifInterface ORIENTATION UNDEFINED Bitmap rotatedBitmap null switch orientation case ExifInterface ORIENTATION ROTATE 90 rotatedBitmap rotateImage bitmap 90 break case ExifInterface ORIENTATION ROTATE 180 rotatedBitmap rotateImage bitmap 180 break case ExifInterface ORIENTATION ROTATE 270 rotatedBitmap rotateImage bitmap 270 break case ExifInterface ORIENTATION NORMAL default rotatedBitmap bitmap code prepHere is the coderotateImage code method ppre codepublic static Bitmap rotateImage Bitmap source float angle Matrix matrix new Matrix matrix postRotate angle return Bitmap createBitmap source source getWidth source getHeight matrix true code pre you pass in your source Bitmap in that method pBefore get to your question here brief explanation of the two storage types ph2Cache h2pThis is an app specific directory on the filesystem The intent for this directory is store temporary data your application may need to keep around between sessions but may not be vital to keep them forever You typically access this directory with href http developer android com reference android content ContextWrapper html getCacheDir 28 29 codeContext getCacheDir code This will show up as Cache on your app settings ph2Files h2pLike the cache directory your app also has an app specific directory for holding files Files in this directory will exist until the app explicitly deletes them or the app is uninstalled You typically access this directory with href http developer android com reference android content Context html getFilesDir 28 29 codeContext getFilesDir code This can show up as various things on the app info screen but in your screenshot this is USB Storage Data pp strongNOTE strong If you want to explicitly place on external media typically SD card you can use href http developer android com reference android content Context html getExternalFilesDir 28java lang String 29 codeContext getExternalFilesDir String type code ph2The Difference h2pBoth directories are specific only to your application other apps do not have access One of the differences between the cache and files directory is that if the system gets low on storage the first place it is going to free resources is from your cache directory The system will not clear any data from the files directory Another difference is that the cache directory can typically be cleared manually from the app info screen The files directory typically can as well but clearing the files directory will also clear the cache directory ph2Which one do use h2pIt depends on how vital that data is compared to the lifetime of your app If you only need data for one session and you doubt you ll ever need to use that data again then don use either Just keep it in memory until you don need it If you suspect you ll need to reuse the data between multiple sessions but you don emhave em to keep hard copy use the cache directory If you must have this data no matter what or if it rather large data that needs persistent storage use the files directory Here some examples can think of pulliCache recently opened emailulliOnce opened cache the data so when the user wants to read that email again it loads instantly rather using the network again to retrieve the same data don need to keep this forever because eventually the user will be finished with the email li ul liliFiles An attachment downloaded from an emailulliThis is an action by the user who is saying want to keep this data so can pull it back up whenever need it Therefore put it in files directory as don ever want to delete this file until the user wants it deleted li ul li ulh2When should clear the cache directory h2pFrom the codeContext getCacheDir code javadocs pblockquote pNote you should not rely on the system deleting these files for you you should always have reasonable maximum such as MB for the amount of space you consume with cache files and prune those files when exceeding that space blockquotepIt uses the example of MB but that may or may not be reasonable for your app Regardless you need to set hard maximum The reason for this simply comes down to designing responsible app So when should you check would recommend checking every time you want to put something in the cache directory Here very simple cache manager ppre codepublic class CacheManager private static final long MAX SIZE 5242880L 5MB private CacheManager public static void cacheData Context context byte data String name throws IOException File cacheDir context getCacheDir long size getDirSize cacheDir long newSize data length size if newSize gt MAX SIZE cleanDir cacheDir newSize MAX SIZE File file new File cacheDir name FileOutputStream os new FileOutputStream file try os write data finally os flush os close public static byte retrieveData Context context String name throws IOException File cacheDir context getCacheDir File file new File cacheDir name if file exists Data doesn exist return null byte data new byte int file length FileInputStream is new FileInputStream file try is read data finally is close return data private static void cleanDir File dir long bytes long bytesDeleted File files dir listFiles for File file files bytesDeleted file length file delete if bytesDeleted gt bytes break private static long getDirSize File dir long size File files dir listFiles for File file files if file isFile size file length return size code prepOf course this could be an expensive operation so you should plan on caching on background thread ppAlso this could be as complicated as you need it to be In my example assuming all cached files are placed at the root of the cache directory so don check for potential sub directories The routine for deleting files can also become more sophisticated such as deleting files by oldest access date ppOne thing to keep in mind when deciding to cache data is that you need to always plan for the case that your cached data no longer exists Always have routine in place to retrieve data by external means when your cache doesn have it in storage Likewise always check your cache before retrieve data externally The purpose of the cache is to cut down on network activity long processes and provide responsive UI in your app So use it responsibly As far as know there isn but don know for sure IncompatibleClassChangeError android support design internal NavigationMenuView android android espresso pI get one really strange error when testing an activity that uses the design library ppre codeandroid view InflateException Binary XML file line 28 Error inflating class android support design widget NavigationView at android view LayoutInflater createView LayoutInflater java 640 at android view LayoutInflater createViewFromTag LayoutInflater java 750 at android view LayoutInflater rInflate LayoutInflater java 813 at android view LayoutInflater inflate LayoutInflater java 511 at android view LayoutInflater inflate LayoutInflater java 415 at android view LayoutInflater inflate LayoutInflater java 366 at android support v7 app AppCompatDelegateImplV7 setContentView AppCompatDelegateImplV7 java 257 at android support v7 app AppCompatActivity setContentView AppCompatActivity java 109 at de stephanlindauer criticalmaps Main onCreate Main java 77 at android app Activity performCreate Activity java 6550 at android app Instrumentation callActivityOnCreate Instrumentation java 1120 at android support test runner MonitoringInstrumentation callActivityOnCreate MonitoringInstrumentation java 534 at android app ActivityThread performLaunchActivity ActivityThread java 3102 at android app ActivityThread handleLaunchActivity ActivityThread java 3248 at android app ActivityThread access 1000 ActivityThread java 197 at android app ActivityThread handleMessage ActivityThread java 1681 at android os Handler dispatchMessage Handler java 102 at android os Looper loop Looper java 145 at android app ActivityThread main ActivityThread java 6872 at java lang reflect Method invoke Native Method at java lang reflect Method invoke Method java 372 at com android internal os ZygoteInit MethodAndArgsCaller run ZygoteInit java 1404 at com android internal os ZygoteInit main ZygoteInit java 1199 Caused by java lang reflect InvocationTargetExceptionCaused by java lang IncompatibleClassChangeError android support design internal NavigationMenuView code prepAnyone had the problem and found way around it The activity works outside the espresso tests ppusing espresso pphere the layout ppre code lt xml version encoding utf gt lt android support v4 widget DrawerLayout xmlns android http schemas android com apk res android xmlns app http schemas android com apk res auto android id id drawer layout android layout width match parent android layout height match parent gt lt LinearLayout android layout width match parent android layout height match parent android gravity center horizontal android orientation vertical gt lt android support v7 widget Toolbar android id id toolbar android layout width match parent android layout height abc action bar default height material android background attr colorPrimary android minHeight attr actionBarSize gt lt FrameLayout android id id content frame android layout width match parent android layout height match parent gt lt LinearLayout gt lt android support design widget NavigationView android id id drawer navigation android layout width wrap content android layout height match parent android layout gravity start app itemIconTint color white app itemTextColor color white app headerLayout drawer header app menu drawer gt lt android support v4 widget DrawerLayout gt code prepthe dependencies ppre codedependencies androidTestCompile com android support support v4 23 androidTestCompile com android support support annotations 23 androidTestCompile com android support test runner androidTestCompile com android support test rules androidTestCompile com android support test espresso espresso contrib androidTestCompile com squareup spoon spoon client androidTestCompile com squareup assertj assertj android androidTestCompile org mockito mockito core androidTestCompile com google dexmaker dexmaker mockito compile fileTree dir libs include jar compile com squareup otto compile org osmdroid osmdroid android compile org slf4j slf4j simple compile com squareup picasso picasso compile com android support support v4 23 compile com android support appcompat v7 23 compile com android support support annotations 23 compile com android support design 23 compile com squareup okhttp okhttp compile com jakewharton butterknife compile org ligi AXT 35 compile com google dagger dagger provided javax annotation jsr250 api apt com google dagger dagger compiler testCompile junit junit 12 testCompile com squareup assertj assertj android testCompile com android support support annotations 23 testCompile org mockito mockito core code pre Did you ever find solution,0,NULL,NULL 35553,222117,78001,Yearling Revival Good Answer Caucus Notable Question Yearling Custodian Necromancer Necromancer Necromancer Caucus Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 35554,337429,1112479,Notable Question,NULL,NULL,0,NULL,NULL 35555,223083,33724,Notable Question,NULL,NULL,0,NULL,NULL 35556,541696,358067,Notable Question Nice Question Caucus Constituent,NULL,NULL,0,NULL,NULL 35557,571150,606060,NULL,NULL,NULL,0,NULL,NULL 35558,244249,1186721,NULL,NULL,NULL,0,NULL,NULL 35559,804426,1265261,NULL,NULL,NULL,0,NULL,NULL 35560,597143,1260544,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 35561,5342,1482782,NULL,NULL,,0,, 35562,872994,42994,Excavator Famous Question Nice Question Caucus Yearling,NULL,pA rift is formed in the space time continuum threatening extinction of all life in the universe until the day is saved by bunch of humans in brightly colored funny looking outfits including some with emcapes em if you can believe it ppOh no wait That was just comic book phrpActually nothing much happens have been told by Googlers and other Android experts that due to the way SQLite works particularly its handling of transactions nothing bad should happen if you fail to close the database ppIn fact if you implement content provider you will have this same effect as content providers are not called with any sort of codeonDestroy code method meaning you will never have an opportunity to close your database content provider will just live until the process is terminated Personally this really bugs me which is one of the reasons try to minimize my use of content providers Looks likek Alex post moved againhttp kagii blog tumblr com post 6828016869 android sqlite locking,0,NULL,NULL 35563,51138,895570,NULL,NULL,NULL,0,NULL,NULL 35564,123835,10639,Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling jquery Good Answer Notable Question Custodian Custodian Custodian Custodian Notable Question Necromancer Notable Question Necromancer Yearling Popular Question Good Answer Notable Question Popular Question Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 35565,701465,321414,Popular Question Teacher,NULL,NULL,0,NULL,NULL 35566,220304,307325,NULL,NULL,NULL,0,NULL,NULL 35567,122881,1007989,Nice Answer Yearling Popular Question Yearling Critic Good Answer,NULL,NULL,0,NULL,NULL 35568,29978,27860,Nice Question Nice Question Famous Question Guru Yearling Notable Question Good Question Guru Notable Question objective-c Yearling Notable Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 35569,75681,1072240,Curious Critic Self-Learner Tumbleweed Commentator Caucus Popular Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 35570,6598960,1265922,NULL,NULL,NULL,0,NULL,NULL 35571,1271455,1265922,NULL,NULL,NULL,0,NULL,NULL 35572,6830317,1265922,NULL,NULL,NULL,0,NULL,NULL 35573,53762,10700,NULL,NULL,NULL,0,NULL,NULL 35574,59748,51779,Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 35575,125185,70873,Yearling,NULL,NULL,0,NULL,NULL 35576,406331,966975,Popular Question,NULL,NULL,0,NULL,NULL 35577,4962,833675,NULL,NULL,NULL,0,NULL,NULL 35578,763222,261187,NULL,NULL,NULL,0,NULL,NULL 35579,5917132,261187,NULL,NULL,NULL,0,NULL,NULL 35580,87263,20819,Good Answer Tumbleweed Custodian Yearling Revival Good Answer Necromancer Good Answer Yearling Nice Answer Enlightened Nice Answer Good Question Necromancer Famous Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 35581,2457077,20819,Good Answer Tumbleweed Custodian Yearling Revival Good Answer Necromancer Good Answer Yearling Nice Answer Enlightened Nice Answer Good Question Necromancer Famous Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 35582,158927,708950,NULL,NULL,NULL,0,NULL,NULL 35583,268092,285811,NULL,NULL,NULL,0,NULL,NULL 35584,465059,835554,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 35585,208978,292240,Good Question Notable Question,NULL,NULL,0,NULL,NULL 35586,106356,840798,NULL,NULL,NULL,0,NULL,NULL 35587,8535630,840798,NULL,NULL,NULL,0,NULL,NULL 35588,1208477,6159,Yearling Revival Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 35589,106449,120713,Yearling Notable Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35590,670205,120713,Yearling Notable Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35591,186308,591090,Autobiographer,NULL,NULL,0,NULL,NULL 35592,232774,194340,Yearling Tag Editor Yearling Editor Announcer Nice Answer Enlightened Yearling Commentator Good Answer Yearling Announcer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 35593,49487,50390,NULL,NULL,NULL,0,NULL,NULL 35594,48450,856314,NULL,NULL,,0,, 35595,200768,201905,Critic,NULL,NULL,0,NULL,NULL 35596,153806,493114,NULL,NULL,NULL,0,NULL,NULL 35597,217551,33551,Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 35598,450072,1319622,Famous Question Notable Question Yearling Nice Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 35599,132738,247526,NULL,NULL,NULL,0,NULL,NULL 35600,50886,1431017,Scholar Editor,NULL,NULL,0,NULL,NULL 35601,140736,1124393,NULL,NULL,NULL,0,NULL,NULL 35602,33620,57383,Nice Answer,NULL,NULL,0,NULL,NULL 35603,164063,199565,Editor,NULL,NULL,0,NULL,NULL 35604,106464,1019026,NULL,NULL,NULL,0,NULL,NULL 35605,106604,972216,Enlightened .net Nice Answer Nice Answer Enlightened c# Nice Answer Nice Answer Revival Nice Answer Enlightened Nice Answer roslyn Yearling Good Answer Yearling Great Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35606,251113,1231488,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35607,384661,211734,Necromancer Popular Question Popular Question Nice Answer Notable Question Yearling Popular Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 35608,703699,1191622,Notable Question Nice Answer Yearling Caucus Yearling Good Answer Nice Question,NULL,NULL,0,NULL,NULL 35609,1552743,1152210,NULL,NULL,NULL,0,NULL,NULL 35610,13172,64009,Yearling Nice Answer Enlightened Revival Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35611,152805,357040,NULL,NULL,NULL,0,NULL,NULL 35612,89389,451277,Supporter,NULL,NULL,0,NULL,NULL 35613,62866,1033668,Nice Answer Popular Question Notable Question Famous Question Yearling Nice Question Notable Question Popular Question Yearling Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 35614,627198,226013,Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35615,166561,31341,NULL,NULL,NULL,0,NULL,NULL 35616,8044,1324243,NULL,NULL,NULL,0,NULL,NULL 35617,170549,250095,NULL,NULL,NULL,0,NULL,NULL 35618,379816,1146765,NULL,NULL,NULL,0,NULL,NULL 35619,269146,1276487,NULL,NULL,NULL,0,NULL,NULL 35620,41777,828185,NULL,NULL,NULL,0,NULL,NULL 35621,388879,952924,NULL,NULL,NULL,0,NULL,NULL 35622,444660,49914,Commentator Yearling Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 35623,7379284,128356,Yearling Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 35624,35183,29729,Necromancer Announcer Nice Answer Yearling Enlightened Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35625,42861,101801,Yearling Good Answer Nice Question Caucus Constituent Editor Critic Revival,NULL,NULL,0,NULL,NULL 35626,284110,1058008,Supporter Critic Yearling,NULL,NULL,0,NULL,NULL 35627,487138,469627,NULL,NULL,NULL,0,NULL,NULL 35628,54521,820,NULL,NULL,NULL,0,NULL,NULL 35629,69971,1315176,Yearling Custodian Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35630,26258,302274,Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Self-Learner Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Yearling Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35631,47519,232650,NULL,NULL,NULL,0,NULL,NULL 35632,868315,645588,NULL,NULL,NULL,0,NULL,NULL 35633,220000,25661,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35634,268938,1409264,NULL,NULL,NULL,0,NULL,NULL 35635,867801,836250,Scholar Supporter,NULL,NULL,0,NULL,NULL 35636,31598,1236641,NULL,NULL,NULL,0,NULL,NULL 35637,20490,1031689,Popular Question Popular Question Yearling Necromancer Nice Answer Nice Answer Enlightened Revival Revival Famous Question Yearling Announcer Announcer Notable Question Popular Question Yearling Good Question Revival Nice Answer Announcer Enlightened Citizen Patrol Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 35638,1211704,530984,Yearling Excavator Student Commentator Census Announcer Popular Question,NULL,NULL,0,NULL,NULL 35639,810773,556737,NULL,NULL,NULL,0,NULL,NULL 35640,18712,945259,NULL,NULL,NULL,0,NULL,NULL 35641,43660,1188523,Necromancer,NULL,NULL,0,NULL,NULL 35642,99684,187515,NULL,NULL,NULL,0,NULL,NULL 35643,263874,1154321,Commentator,NULL,NULL,0,NULL,NULL 35644,357471,598698,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35645,205769,202293,iphone Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 35646,441756,263682,Popular Question Critic Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35647,366483,665456,Yearling Explainer ios Nice Answer Enlightened Caucus Yearling Nice Answer Custodian Good Answer Custodian Nice Answer Enlightened Nice Answer Citizen Patrol Caucus Guru Unsung Hero Nice Answer Enlightened Good Answer Census Good Answer Yearling Caucus Nice Answer swift Good Answer Tumbleweed,NULL,NULL,0,NULL,NULL 35648,810921,199943,Student,NULL,NULL,0,NULL,NULL 35649,106835,1302328,NULL,NULL,NULL,0,NULL,NULL 35650,9033,834102,Nice Question Popular Question Good Question Mortarboard Notable Question Custodian Citizen Patrol Custodian Nice Question Great Question Revival Custodian Custodian Good Question Good Question Yearling Notable Question Caucus Famous Question Nice Question Famous Question Popular Question Notable Question Yearling Famous Question Good Answer Popular Question Inquisitive Popular Question Census Custodian Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35651,1607396,1219741,Editor Supporter Commentator Yearling Critic Yearling Custodian Custodian Custodian Yearling Custodian Tenacious Yearling,NULL,NULL,0,NULL,NULL 35652,1546905,532604,NULL,NULL,NULL,0,NULL,NULL 35653,134244,292581,NULL,NULL,NULL,0,NULL,NULL 35654,46454,272203,Yearling Necromancer Notable Question Yearling Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 35655,160943,973596,Editor Revival,NULL,NULL,0,NULL,NULL 35656,134721,548756,NULL,NULL,NULL,0,NULL,NULL 35657,358391,174722,NULL,NULL,NULL,0,NULL,NULL 35658,20926,1022421,Popular Question,NULL,NULL,0,NULL,NULL 35659,24398,1070199,Commentator Promoter Yearling Critic Revival Investor Revival Caucus Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 35660,414593,329320,Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 35661,4327,1228848,NULL,NULL,NULL,0,NULL,NULL 35662,1575225,15099,Nice Question Yearling Famous Question Great Answer Good Answer Yearling Nice Answer Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 35663,247363,1069752,Famous Question,NULL,NULL,0,NULL,NULL 35664,153158,378173,Census,NULL,NULL,0,NULL,NULL 35665,2230729,975727,NULL,NULL,NULL,0,NULL,NULL 35666,172010,862097,NULL,NULL,NULL,0,NULL,NULL 35667,1079780,586990,NULL,NULL,NULL,0,NULL,NULL 35668,1884765,600012,Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Necromancer Nice Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35669,776828,600012,Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Yearling Necromancer Nice Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 35670,1216982,659821,NULL,NULL,NULL,0,NULL,NULL 35671,1356085,523563,NULL,NULL,NULL,0,NULL,NULL 35672,118705,634839,NULL,NULL,NULL,0,NULL,NULL 35673,918133,576321,Famous Question Good Question,NULL,NULL,0,NULL,NULL 35674,300994,196380,NULL,NULL,NULL,0,NULL,NULL 35675,11315,189807,NULL,NULL,NULL,0,NULL,NULL 35676,605512,272454,Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 35677,1021224,731269,NULL,NULL,NULL,0,NULL,NULL 35678,222082,58519,Yearling Caucus,NULL,NULL,0,NULL,NULL 35679,1520911,588203,NULL,NULL,NULL,0,NULL,NULL 35680,169748,1011345,NULL,NULL,NULL,0,NULL,NULL 35681,1530454,854961,Yearling Notable Question,NULL,NULL,0,NULL,NULL 35682,75261,184561,Great Question Nice Answer Enlightened Yearling Necromancer Nice Answer Notable Question Good Answer Good Answer Revival Yearling Notable Question Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 35683,27366,869,Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Census Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35684,9643,548019,Notable Question,NULL,NULL,0,NULL,NULL 35685,591117,1452133,NULL,NULL,NULL,0,NULL,NULL 35686,582760,1432595,NULL,NULL,NULL,0,NULL,NULL 35687,212169,1432595,NULL,NULL,NULL,0,NULL,NULL 35688,23769,990501,NULL,NULL,NULL,0,NULL,NULL 35689,180593,182365,Nice Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 35690,1243520,1126281,Student,NULL,NULL,0,NULL,NULL 35691,99064,170934,NULL,NULL,NULL,0,NULL,NULL 35692,30103,499537,Nice Question Autobiographer Editor Commentator,NULL,NULL,0,NULL,NULL 35693,138055,803663,NULL,NULL,NULL,0,NULL,NULL 35694,168867,1128407,Yearling Guru Nice Question Notable Question Guru Caucus Notable Question Yearling Nice Answer Enlightened Famous Question Famous Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 35695,45216,334105,NULL,NULL,NULL,0,NULL,NULL 35696,22021,586968,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 35697,213843,426577,Custodian Yearling Citizen Patrol Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 35698,89978,311660,Revival Famous Question Nice Answer Necromancer Famous Question Notable Question Necromancer Nice Answer Nice Answer Popular Question Great Answer Nice Answer Caucus Yearling Necromancer Good Answer Necromancer Census Famous Question Nice Answer Necromancer Good Answer Popular Question Revival Popular Question Nice Answer Popular Question Nice Answer Nice Answer Enlightened Yearling Great Answer Nice Question Caucus Announcer Nice Answer Good Answer Custodian Good Answer Popular Question Notable Question Good Answer Nice Answer Great Answer Notable Question Popular Question Popular Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 35699,450784,839099,NULL,NULL,NULL,0,NULL,NULL 35700,152796,37944,Good Answer Nice Answer Yearling Good Answer Nice Answer Nice Question Yearling Guru Guru Yearling,NULL,NULL,0,NULL,NULL 35701,176073,868447,Yearling Notable Question,NULL,NULL,0,NULL,NULL 35702,1740624,744091,NULL,NULL,NULL,0,NULL,NULL 35703,44602,76391,Nice Answer Notable Question Yearling Nice Question Famous Question Notable Question Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 35704,1032834,1159770,NULL,NULL,NULL,0,NULL,NULL 35705,23488,169756,Census Yearling,NULL,NULL,0,NULL,NULL 35706,222016,1094399,Notable Question Nice Answer Yearling Popular Question Nice Question Nice Answer Enlightened Caucus Good Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 35707,246,974708,NULL,NULL,NULL,0,NULL,NULL 35708,117814,963855,NULL,NULL,NULL,0,NULL,NULL 35709,2821888,514048,NULL,NULL,NULL,0,NULL,NULL 35710,117000,514048,NULL,NULL,NULL,0,NULL,NULL 35711,119835,433723,Custodian Yearling Curious Popular Question Self-Learner Autobiographer,NULL,NULL,0,NULL,NULL 35712,81168,156311,NULL,NULL,NULL,0,NULL,NULL 35713,114520,179878,Famous Question Proofreader Suffrage Vox Populi Explainer Custodian Good Answer Yearling Great Answer Caucus Good Answer Guru Nice Question Nice Answer Enlightened Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 35714,711178,641655,NULL,NULL,NULL,0,NULL,NULL 35715,611785,555547,Revival Popular Question Nice Question Notable Question Announcer Notable Question Necromancer Popular Question Notable Question Yearling Nice Question Revival Announcer Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 35716,969696,200389,Disciplined Yearling,NULL,NULL,0,NULL,NULL 35717,82991,837128,Popular Question Yearling,NULL,NULL,0,NULL,NULL 35718,475718,28445,Good Answer Custodian Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35719,250973,558735,Commentator Scholar Yearling Popular Question,NULL,NULL,0,NULL,NULL 35720,23189,273843,Popular Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35721,99825,516890,NULL,NULL,NULL,0,NULL,NULL 35722,24468,538640,NULL,NULL,NULL,0,NULL,NULL 35723,461729,699031,NULL,NULL,NULL,0,NULL,NULL 35724,93272,97450,Favorite Question Yearling Curious Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35725,1777269,1265177,NULL,NULL,NULL,0,NULL,NULL 35726,439458,1265177,NULL,NULL,NULL,0,NULL,NULL 35727,317273,721292,Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35728,1096050,625899,NULL,NULL,NULL,0,NULL,NULL 35729,187100,588223,NULL,NULL,NULL,0,NULL,NULL 35730,160192,1059212,NULL,NULL,NULL,0,NULL,NULL 35731,597451,901106,NULL,NULL,NULL,0,NULL,NULL 35732,68904,1112407,Necromancer Good Answer Necromancer Yearling Nice Answer Favorite Question Populist Notable Question Announcer Autobiographer Yearling Necromancer Nice Question Famous Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 35733,313749,1112407,Necromancer Good Answer Necromancer Yearling Nice Answer Favorite Question Populist Notable Question Announcer Autobiographer Yearling Necromancer Nice Question Famous Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 35734,904187,300359,Nice Answer Good Answer Fanatic Unsung Hero java Yearling Good Answer Citizen Patrol Popular Question Inquisitive Popular Question Caucus Necromancer Yearling Popular Question Notable Question Popular Question Caucus Notable Question Popular Question Yearling Popular Question Popular Question Necromancer Popular Question Great Answer Famous Question Nice Question,NULL,NULL,0,NULL,NULL 35735,369145,46375,Popular Question Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Question Taxonomist Nice Answer Good Question Famous Question Good Answer Famous Question Yearling Good Answer Notable Question Pundit Nice Answer Good Answer Great Answer Necromancer Good Answer Yearling Nice Answer java Guru Guru Nice Question,NULL,NULL,0,NULL,NULL 35736,284191,234914,NULL,NULL,NULL,0,NULL,NULL 35737,153821,711737,Student,NULL,NULL,0,NULL,NULL 35738,475394,1250444,Yearling Editor,NULL,NULL,0,NULL,NULL 35739,291473,712613,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Good Answer Custodian Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 35740,262124,1478495,NULL,NULL,NULL,0,NULL,NULL 35741,21025,272529,NULL,NULL,NULL,0,NULL,NULL 35742,3708,382740,Favorite Question Yearling Documentation Pioneer Necromancer Census Popular Question Announcer Yearling Documentation User Notable Question Nice Answer Popular Question Famous Question Yearling,NULL,pNet HTTP is built into Ruby but let face it often it easier emnot em to use its cumbersome 1980s style and try higher level alternative pulli href https github com httprb http rel noreferrer HTTP Gem lili href https github com jnunemaker httparty rel noreferrer HTTParty lili href https github com rest client rest client rel noreferrer RestClient lili href https github com excon excon rel noreferrer Excon lili href https github com feedjira feedjira rel noreferrer Feedjira RSS only li ul would like to caution against doing so as you will add more dependencies to your rails app More dependencies means more memory consumption and also potentially larger attack surface Using Net HTTP is cumbersome but the trade off isn worth it pNet HTTP is built into Ruby but let face it often it easier emnot em to use its cumbersome 1980s style and try higher level alternative pulli href https github com httprb http rel noreferrer HTTP Gem lili href https github com jnunemaker httparty rel noreferrer HTTParty lili href https github com rest client rest client rel noreferrer RestClient lili href https github com excon excon rel noreferrer Excon lili href https github com feedjira feedjira rel noreferrer Feedjira RSS only li ul Koser uhuh Something something leftpad saga But anyway use HTTParty love it It super easy to use if am making request with form body But if am simply making GET request would rather stick to Net HTTP In that case it not worth it to include 10MB of dependencies to make small GET request,0,NULL,NULL 35743,658488,1226927,NULL,NULL,NULL,0,NULL,NULL 35744,628167,1253629,NULL,NULL,NULL,0,NULL,NULL 35745,325911,1512697,NULL,NULL,NULL,0,NULL,NULL 35746,166003,765770,NULL,NULL,NULL,0,NULL,NULL 35747,821488,1066996,Guru,NULL,NULL,0,NULL,NULL 35748,48903,255119,Caucus,NULL,NULL,0,NULL,NULL 35749,90822,448437,NULL,NULL,NULL,0,NULL,NULL 35750,332454,203535,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 35751,1075674,855921,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35752,417759,1127963,Popular Question,NULL,NULL,0,NULL,NULL 35753,48829,460885,Famous Question Famous Question Popular Question Popular Question Notable Question Popular Question Caucus Yearling Popular Question Popular Question Custodian Custodian Enthusiast Nice Answer Notable Question Popular Question Caucus Constituent Popular Question Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 35754,19188,580132,NULL,NULL,NULL,0,NULL,NULL 35755,590599,1191948,NULL,NULL,NULL,0,NULL,NULL 35756,1344350,541210,NULL,NULL,NULL,0,NULL,NULL 35757,42242,1041385,Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35758,181950,426560,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35759,370545,1512919,NULL,NULL,NULL,0,NULL,NULL 35760,41600,194311,Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Guru Yearling Nice Answer Good Answer Guru Guru Good Answer Guru Nice Answer Yearling Good Answer Yearling Nice Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 35761,6727753,355722,Notable Question Good Question Notable Question Yearling Famous Question Good Answer Caucus Nice Question Popular Question Guru Favorite Question Yearling Popular Question ruby-on-rails Caucus Constituent Good Answer Popular Question Popular Question Taxonomist Great Question Yearling Notable Question ruby-on-rails-3,NULL,NULL,0,NULL,NULL 35762,195052,355722,Notable Question Good Question Notable Question Yearling Famous Question Good Answer Caucus Nice Question Popular Question Guru Favorite Question Yearling Popular Question ruby-on-rails Caucus Constituent Good Answer Popular Question Popular Question Taxonomist Great Question Yearling Notable Question ruby-on-rails-3,NULL,NULL,0,NULL,NULL 35763,130634,1398920,Famous Question Yearling,NULL,NULL,0,NULL,NULL 35764,649476,1320128,Nice Answer Citizen Patrol Custodian Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 35765,72881,464457,Caucus Yearling Documentation User Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 35766,9403431,938325,Revival Popular Question Critic Yearling Curious Notable Question Nice Question Yearling Popular Question Necromancer Famous Question Good Question Yearling Popular Question Nice Question Notable Question Yearling Favorite Question Great Question Yearling Notable Question,NULL,NULL,1,Number of triangles involving any two nodes algorithm numpy graph theano pLet say have an adjacency matrix strongA strong that represents an unweighted undirected graph ppI would like to compute strongB strong where strongB strong emi em emj em is the number of closed triangles that include nodes emi em and emj em ppIs there way to compute strongB strong from strongA strong using just linear algebra like to implement this in theano,NULL 35767,888065,938325,Revival Popular Question Critic Yearling Curious Notable Question Nice Question Yearling Popular Question Necromancer Famous Question Good Question Yearling Popular Question Nice Question Notable Question Yearling Favorite Question Great Question Yearling Notable Question,NULL,NULL,1,Number of triangles involving any two nodes algorithm numpy graph theano pLet say have an adjacency matrix strongA strong that represents an unweighted undirected graph ppI would like to compute strongB strong where strongB strong emi em emj em is the number of closed triangles that include nodes emi em and emj em ppIs there way to compute strongB strong from strongA strong using just linear algebra like to implement this in theano,NULL 35768,725311,1284263,NULL,NULL,NULL,0,NULL,NULL 35769,650473,499807,NULL,NULL,NULL,0,NULL,NULL 35770,99607,60511,Teacher,NULL,NULL,0,NULL,NULL 35771,634920,934550,NULL,NULL,NULL,0,NULL,NULL 35772,20951,6363,Nice Answer,NULL,NULL,0,NULL,NULL 35773,4247,69172,Guru Nice Answer Enlightened Yearling Civic Duty Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Great Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35774,165393,1222829,NULL,NULL,NULL,0,NULL,NULL 35775,85566,870840,Popular Question Yearling Guru Caucus Notable Question Yearling Revival Good Answer Caucus Custodian Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 35776,483931,452210,Revival Scholar Nice Answer Promoter Benefactor Necromancer Necromancer Popular Question Yearling Necromancer Custodian Custodian Caucus Necromancer Electorate Strunk & White Nice Answer Enlightened Notable Question Necromancer Necromancer Nice Answer Nice Answer Deputy Revival Self-Learner Caucus Revival Nice Answer Yearling Documentation User Nice Answer Revival Census Proofreader Necromancer Custodian Caucus Tumbleweed Nice Answer Enlightened Nice Answer Custodian git Yearling Revival Necromancer,NULL,pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code The problem is caused by the first sort k2 applying byte based tiebreaker not preserving the input order when the second field commit hash is equal This behaviour can be halted in number of ways the stable switch does this if you add it to the sort for paste it will sort as expected result is 16db9fef5c581ab0c56137d04ef08ef1bf82b0b7 not 29c40c3a3b33196d4e79793bd8e503a03753bad1 This result could also be achieved by changing that sort to sort k2 k1 1n Which is correct original cat cat order or sorted numerically,0,NULL,NULL 35777,147556,351408,NULL,NULL,NULL,0,NULL,NULL 35778,323245,744268,NULL,NULL,NULL,0,NULL,NULL 35779,781160,856026,NULL,NULL,NULL,0,NULL,NULL 35780,2989459,615212,NULL,NULL,NULL,0,NULL,NULL 35781,246270,615212,NULL,NULL,NULL,0,NULL,NULL 35782,286093,649395,NULL,NULL,NULL,0,NULL,NULL 35783,415554,27657,Notable Question Good Question Famous Question Good Question Popular Question Nice Question Famous Question Good Question Notable Question Famous Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Question Famous Question Yearling Popular Question Notable Question Nice Answer Enlightened Revival Notable Question Great Answer Notable Question Famous Question Nice Answer Famous Question Popular Question Good Question Notable Question Socratic Popular Question Popular Question Taxonomist Announcer Good Answer Nice Answer Famous Question Popular Question Nice Question Famous Question Yearling Nice Answer Popular Question Popular Question Popular Question Nice Question Nice Question Famous Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 35784,2667542,1019313,Necromancer,NULL,NULL,0,NULL,NULL 35785,575265,1011211,NULL,NULL,NULL,0,NULL,NULL 35786,2827485,37564,Tumbleweed Yearling Famous Question Civic Duty Notable Question Popular Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 35787,474411,1305737,NULL,NULL,NULL,0,NULL,NULL 35788,2644658,1324194,NULL,NULL,NULL,0,NULL,NULL 35789,316900,453380,NULL,NULL,NULL,0,NULL,NULL 35790,502777,338225,Necromancer Scholar Commentator,NULL,NULL,0,NULL,NULL 35791,2251567,1086658,Notable Question Popular Question Notable Question Nice Question Notable Question Critic Nice Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 35792,1196972,366398,NULL,NULL,NULL,0,NULL,NULL 35793,11700,1261197,Student,NULL,NULL,0,NULL,NULL 35794,1229688,410540,Tumbleweed,NULL,NULL,0,NULL,NULL 35795,201681,1178508,NULL,NULL,NULL,0,NULL,NULL 35796,1189309,966922,Popular Question,NULL,NULL,0,NULL,NULL 35797,369115,966922,Popular Question,NULL,NULL,0,NULL,NULL 35798,93201,287870,NULL,NULL,NULL,0,NULL,NULL 35799,22536,374768,Famous Question,NULL,NULL,0,NULL,NULL 35800,161708,1238723,Informed Editor Autobiographer Teacher Scholar Supporter Student Self-Learner,NULL,NULL,0,NULL,NULL 35801,225852,1170404,NULL,NULL,NULL,0,NULL,NULL 35802,163701,1015501,Notable Question Revival Yearling Nice Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 35803,10966,235789,NULL,NULL,NULL,0,NULL,NULL 35804,487063,1040655,NULL,NULL,NULL,0,NULL,NULL 35805,484600,12449,Enthusiast,NULL,NULL,0,NULL,NULL 35806,439789,909905,Necromancer,NULL,NULL,0,NULL,NULL 35807,100315,11649,Nice Answer Good Answer Good Answer Famous Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Yearling Disciplined Guru Popular Question Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Yearling Good Answer Nice Answer Guru Good Answer Yearling Good Answer Nice Answer Guru Nice Answer,NULL,ulli codevfork code is an obsolete optimization Before good memory management codefork code made full copy of the parent memory so it was pretty expensive since in many cases codefork code was followed by codeexec code which discards the current memory map and creates new one it was needless expense Nowadays codefork code doesn copy the memory it simply set as copy on write so codefork code codeexec code is just as efficient as codevfork code codeexec code lili codeclone code is the syscall used by codefork code with some parameters it creates new process with others it creates thread the difference between them is just which data structures memory space processor state stack PID open files etc are shared or not li ul right in vfork the parent process is suspended until the child does an exec,0,NULL,NULL 35808,12496,16016,Good Answer,NULL,NULL,0,NULL,NULL 35809,43652,908343,Editor Scholar Student,NULL,NULL,0,NULL,NULL 35810,31523,441279,NULL,NULL,NULL,0,NULL,NULL 35811,180078,485852,Yearling,NULL,NULL,0,NULL,NULL 35812,74962,919916,NULL,NULL,NULL,0,NULL,NULL 35813,1197353,440519,NULL,NULL,NULL,0,NULL,NULL 35814,1436703,1497103,Nice Answer Yearling Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Yearling Disciplined,NULL,NULL,0,NULL,NULL 35815,254491,327927,Organizer Tumbleweed Popular Question Excavator Explainer Critic Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 35816,270117,695547,Popular Question Curious Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 35817,162303,856155,NULL,NULL,NULL,0,NULL,NULL 35818,783044,234788,NULL,NULL,NULL,0,NULL,NULL 35819,409827,528065,Self-Learner Promoter Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Nice Question Inquisitive Critic Caucus Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 35820,5120,1040291,Nice Answer,NULL,NULL,0,NULL,NULL 35821,1089218,457513,Yearling Popular Question Guru Nice Answer,NULL,NULL,0,NULL,NULL 35822,2404758,455319,Popular Question Autobiographer Notable Question Popular Question Good Question Popular Question Famous Question Famous Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Yearling Nice Question Famous Question Popular Question Famous Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35823,41623,455319,Popular Question Autobiographer Notable Question Popular Question Good Question Popular Question Famous Question Famous Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Yearling Nice Question Famous Question Popular Question Famous Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35824,343769,397589,NULL,NULL,NULL,0,NULL,NULL 35825,27222,310467,Necromancer Critic Caucus Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 35826,237911,1357215,Yearling Critic,NULL,NULL,0,NULL,NULL 35827,332732,538294,Good Question Commentator Critic Famous Question Yearling Informed Civic Duty Autobiographer Caucus Constituent,NULL,NULL,0,NULL,NULL 35828,154882,456010,Informed Editor Autobiographer Critic Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 35829,129266,1150749,NULL,NULL,NULL,0,NULL,NULL 35830,1361769,362652,Teacher,NULL,NULL,0,NULL,NULL 35831,1393800,983495,Necromancer Nice Answer Supporter,NULL,NULL,0,NULL,NULL 35832,425022,134085,Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 35833,1729430,1240691,NULL,NULL,NULL,0,NULL,NULL 35834,666895,1240691,NULL,NULL,NULL,0,NULL,NULL 35835,95631,945625,Good Answer Yearling,NULL,NULL,0,NULL,NULL 35836,33479,203200,Yearling Yearling Organizer Yearling,NULL,NULL,0,NULL,NULL 35837,144510,1112770,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35838,706428,462504,NULL,NULL,,0,, 35839,165108,838381,NULL,NULL,NULL,0,NULL,NULL 35840,205288,671742,NULL,NULL,NULL,0,NULL,NULL 35841,52507,116793,Necromancer Necromancer Yearling Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35842,520971,553689,NULL,NULL,NULL,0,NULL,NULL 35843,463495,1050314,NULL,NULL,NULL,0,NULL,NULL 35844,2991056,249787,NULL,NULL,NULL,0,NULL,NULL 35845,329775,249787,NULL,NULL,NULL,0,NULL,NULL 35846,7813327,249787,NULL,NULL,NULL,0,NULL,NULL 35847,199201,463042,Yearling Good Answer Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 35848,29336,1243393,NULL,NULL,NULL,0,NULL,NULL 35849,632204,495606,Popular Question,NULL,NULL,0,NULL,NULL 35850,151021,593273,Tumbleweed Self-Learner,NULL,NULL,0,NULL,NULL 35851,277162,567481,NULL,NULL,NULL,0,NULL,NULL 35852,35862,336884,Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 35853,159576,304711,Critic,NULL,NULL,0,NULL,NULL 35854,77056,175229,Supporter Nice Answer Editor,NULL,NULL,0,NULL,NULL 35855,247324,982180,NULL,NULL,NULL,0,NULL,NULL 35856,83388,24856,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 35857,130346,167388,Yearling Custodian Nice Answer Yearling Good Answer Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 35858,82164,175267,Student Nice Answer Necromancer Revival Yearling Great Answer Necromancer Yearling Nice Answer Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 35859,144044,1057887,Tumbleweed,NULL,NULL,0,NULL,NULL 35860,420275,1273669,NULL,NULL,NULL,0,NULL,NULL 35861,122545,439288,NULL,NULL,NULL,0,NULL,NULL 35862,733075,1214629,NULL,NULL,NULL,0,NULL,NULL 35863,50606,3238,Great Question Yearling Great Question Notable Question Favorite Question Yearling Census Famous Question Yearling,NULL,NULL,0,NULL,NULL 35864,101213,391826,Yearling Good Answer Yearling Caucus Nice Answer Nice Answer Enlightened Yearling Citizen Patrol Civic Duty Nice Answer Enthusiast Curious Caucus Custodian Constituent Organizer Excavator Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 35865,2323855,246887,Commentator Good Question Curious Informed Yearling Famous Question,NULL,NULL,0,NULL,NULL 35866,335030,413555,Necromancer,NULL,NULL,0,NULL,NULL 35867,106884,703297,NULL,NULL,NULL,0,NULL,NULL 35868,137910,368384,NULL,NULL,NULL,0,NULL,NULL 35869,45793,681129,NULL,NULL,NULL,0,NULL,NULL 35870,25983,137830,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 35871,347851,574682,NULL,NULL,NULL,0,NULL,NULL 35872,2884539,1537347,NULL,NULL,NULL,0,NULL,NULL 35873,266831,1537347,NULL,NULL,NULL,0,NULL,NULL 35874,199323,247506,Notable Question,NULL,NULL,0,NULL,NULL 35875,273869,347570,NULL,NULL,NULL,0,NULL,NULL 35876,2040495,1381253,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 35877,34634,819796,NULL,NULL,NULL,0,NULL,NULL 35878,826057,622749,NULL,NULL,NULL,0,NULL,NULL 35879,1046779,175681,NULL,NULL,NULL,0,NULL,NULL 35880,321973,542901,Popular Question,NULL,NULL,0,NULL,NULL 35881,334464,1500929,Scholar Student Tumbleweed,NULL,NULL,0,NULL,NULL 35882,82356,455712,Yearling Popular Question Necromancer Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 35883,4359,189673,Good Answer Notable Question Famous Question Famous Question Notable Question Nice Question Populist Good Question Great Question Notable Question Yearling Famous Question Notable Question Popular Question Nice Question Good Question Famous Question Popular Question Nice Question Popular Question Famous Question Notable Question Notable Question Necromancer Notable Question Nice Question Notable Question Yearling Notable Question Notable Question Famous Question Popular Question Nice Answer Nice Question Good Question Caucus Electorate Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 35884,184921,324728,Nice Answer Yearling Custodian Yearling Yearling Great Answer Yearling Critic Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 35885,835230,611928,NULL,NULL,NULL,0,NULL,NULL 35886,193339,387022,NULL,NULL,NULL,0,NULL,NULL 35887,272863,365786,NULL,NULL,NULL,0,NULL,NULL 35888,801544,927019,Yearling Citizen Patrol Custodian Critic Yearling Guru Curious Yearling Caucus Popular Question Notable Question Tumbleweed Popular Question Great Answer Yearling Notable Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 35889,18061,923540,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35890,1209911,716940,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 35891,1504739,1891,Good Answer Nice Answer Popular Question Good Answer Yearling Famous Question Nice Answer Yearling Good Answer Great Answer Famous Question Notable Question Great Question Good Question Guru Guru Announcer Famous Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 35892,394377,896212,Supporter Student,NULL,NULL,0,NULL,NULL 35893,7554630,1318578,NULL,NULL,NULL,0,NULL,NULL 35894,1367493,1003417,Popular Question Yearling Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35895,298339,692137,Autobiographer Scholar Supporter,NULL,NULL,0,NULL,NULL 35896,172025,1473573,NULL,NULL,NULL,0,NULL,NULL 35897,1167623,1374247,NULL,NULL,NULL,0,NULL,NULL 35898,84884,1374247,NULL,NULL,NULL,0,NULL,NULL 35899,559725,653116,Popular Question Notable Question Custodian Autobiographer Necromancer Notable Question Yearling Custodian Yearling Popular Question Caucus Constituent Popular Question Famous Question Popular Question Famous Question Notable Question Revival Yearling Popular Question Popular Question Caucus Notable Question Popular Question Caucus Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35900,383129,1054559,NULL,NULL,NULL,0,NULL,NULL 35901,3426,258147,NULL,NULL,NULL,0,NULL,NULL 35902,174559,1043864,NULL,NULL,NULL,0,NULL,NULL 35903,199139,235015,Announcer Notable Question Announcer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 35904,293488,1063925,NULL,NULL,NULL,0,NULL,NULL 35905,127510,511097,NULL,NULL,NULL,0,NULL,NULL 35906,266623,1430298,Nice Answer Supporter Critic Informed Commentator Yearling Yearling Yearling Custodian Yearling Yearling Tenacious Caucus Constituent Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 35907,455117,486784,Investor Altruist Announcer Revival Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35908,37699,1089873,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 35909,39188,1283696,NULL,NULL,NULL,0,NULL,NULL 35910,96668,891373,Notable Question Good Answer Nice Answer Popular Question Nice Question Yearling Announcer Caucus Notable Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Famous Question Great Answer Popular Question Nice Answer Nice Answer Enlightened Popular Question Caucus Yearling Revival Necromancer Nice Question Revival Documentation User Popular Question opencv Popular Question Revival Census Good Question Populist Popular Question Notable Question Yearling Famous Question Good Answer Announcer Good Answer,NULL,NULL,0,NULL,NULL 35911,76264,849230,NULL,NULL,NULL,0,NULL,NULL 35912,1623308,849230,NULL,NULL,NULL,0,NULL,NULL 35913,312145,616883,NULL,NULL,NULL,0,NULL,NULL 35914,97529,1487071,Necromancer Yearling Census Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 35915,35369,775112,NULL,NULL,NULL,0,NULL,NULL 35916,727170,1120359,NULL,NULL,NULL,0,NULL,NULL 35917,342552,1063446,NULL,NULL,NULL,0,NULL,NULL 35918,826691,482277,NULL,NULL,NULL,0,NULL,NULL 35919,1553042,94239,Nice Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Nice Question Good Answer Famous Question Popular Question Famous Question Good Question Good Answer Yearling Favorite Question Notable Question Good Question Notable Question Great Question Famous Question c++ Yearling Announcer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 35920,7288534,1142516,NULL,NULL,NULL,0,NULL,NULL 35921,290452,1142516,NULL,NULL,NULL,0,NULL,NULL 35922,2570432,1262125,NULL,NULL,NULL,0,NULL,NULL 35923,793552,9212,Revival,NULL,NULL,0,NULL,NULL 35924,93048,357464,Good Answer Yearling,NULL,NULL,0,NULL,NULL 35925,13790,659090,NULL,NULL,NULL,0,NULL,NULL 35926,280352,662911,Guru ruby-on-rails Yearling Popular Question Nice Answer Yearling Nice Answer Enlightened Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 35927,547985,1355423,NULL,NULL,NULL,0,NULL,NULL 35928,119874,1240896,Popular Question Notable Question Popular Question Famous Question Famous Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Popular Question Nice Answer Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 35929,169926,38611,Notable Question Famous Question Notable Question Nice Answer Nice Answer Nice Question Yearling Autobiographer Nice Answer Yearling Revival Nice Answer Notable Question Necromancer Necromancer Enthusiast Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35930,75317,250596,Popular Question Critic,NULL,NULL,0,NULL,NULL 35931,161018,376376,NULL,NULL,NULL,0,NULL,NULL 35932,217591,742606,NULL,NULL,NULL,0,NULL,NULL 35933,1897857,742606,NULL,NULL,NULL,0,NULL,NULL 35934,443351,358442,NULL,NULL,NULL,0,NULL,NULL 35935,906421,868086,Editor Good Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 35936,317750,393753,Census,NULL,NULL,0,NULL,NULL 35937,211213,657703,Revival Revival Yearling Good Answer Good Answer Popular Question Civic Duty Good Answer Good Answer Necromancer Caucus Yearling Revival Revival Custodian Yearling Nice Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 35938,67982,870935,NULL,NULL,NULL,0,NULL,NULL 35939,393010,123185,NULL,NULL,NULL,0,NULL,NULL 35940,229421,240200,Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 35941,212850,372144,NULL,NULL,NULL,0,NULL,NULL 35942,335284,452824,Supporter Nice Question,NULL,NULL,0,NULL,NULL 35943,803163,820729,NULL,NULL,NULL,0,NULL,NULL 35944,961,209500,Famous Question Self-Learner Yearling Good Question,NULL,NULL,0,NULL,NULL 35945,24564,2591,Famous Question Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Announcer Popular Question Famous Question Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 35946,1095841,764307,Editor Excavator Informed Necromancer Revival Critic Commentator Caucus Yearling Revival Necromancer Yearling Nice Answer Revival Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35947,329908,982191,NULL,NULL,NULL,0,NULL,NULL 35948,693984,731865,NULL,NULL,NULL,0,NULL,NULL 35949,8228156,745771,NULL,NULL,NULL,0,NULL,NULL 35950,194506,957241,NULL,NULL,NULL,0,NULL,NULL 35951,259784,906166,NULL,NULL,NULL,0,NULL,NULL 35952,315260,487883,Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 35953,12687,848195,NULL,NULL,NULL,0,NULL,NULL 35954,1354421,1197683,NULL,NULL,NULL,0,NULL,NULL 35955,564203,1090617,Yearling Nice Answer Enlightened Yearling Good Answer Editor Custodian Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 35956,22503,1868,Famous Question Good Question Caucus Constituent,NULL,NULL,0,NULL,NULL 35957,106773,1471735,NULL,NULL,NULL,0,NULL,NULL 35958,157362,623805,Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 35959,750788,32880,Cleanup Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened linux Guru Nice Answer Enlightened Nice Answer ssh Good Answer http Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Good Answer Good Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer struct Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened json Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Guru Caucus Nice Answer Enlightened Nice Answer Enlightened Notable Question Revival Good Answer Strunk & White Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Deputy Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Announcer Famous Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened interface Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Caucus Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru slice Nice Answer Enlightened pointers goroutine concurrency tcp cgo Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer Yearling Nice Answer Enlightened Good Answer Good Answer Booster Nice Answer Enlightened Popular Question,NULL,High resolution timers millisecond precision in Go on Windows windows go timer pI trying to use Go codetime Timer codes to schedule tasks that need to be run in the right order with precision in the order of half millisecond This works perfectly fine on OSX and on Linux but fails every time on Windows ppThe following code demonstrates the issue It sets timers the first one to ms the second to ms and the last one to ms Once timer fires its number is printed On OSX and Linux this obviously produced 12345 as output but on Windows the numbers are more or less random tested on Win and Windows Server 2012 ppre class lang go prettyprint override codepackage mainimport fmt time func main var timer1 timer2 timer3 timer4 timer5 time Timer timer1 time NewTimer time Millisecond timer2 time NewTimer time Millisecond timer3 time NewTimer time Millisecond timer4 time NewTimer time Millisecond timer5 time NewTimer time Millisecond should print 12345 for select case lt timer1 fmt Print case lt timer2 fmt Print case lt timer3 fmt Print case lt timer4 fmt Print case lt timer5 fmt Print case lt time After 200 time Millisecond return exit the program code prepI think this behavior is due to the changes made in Go href https golang org doc go1 runtime rel noreferrer https golang org doc go1 runtime 4th paragraph where the Windows timer precision was reduced from ms to 16 ms although it should also have occurred with shorter intervals of the order of 100 μs before ppIs there any way to reset the global Windows timer precision back to ms or to access high resolution timer that would make the example above work What is the current behavior in the go1 7rc There have been more changes around the windows timers due to their performance You may want to read through the many windows timer related issues in GH,0,NULL,NULL 35960,113822,60433,NULL,NULL,NULL,0,NULL,NULL 35961,440097,1060528,Yearling,NULL,NULL,0,NULL,NULL 35962,610481,607553,NULL,NULL,NULL,0,NULL,NULL 35963,304543,83667,Nice Answer Enlightened Guru Good Answer Guru Guru Yearling Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Generalist Good Answer Nice Answer Enlightened Guru Good Answer Good Question Yearling Nice Answer Guru Good Answer Guru Census Good Answer Guru Great Answer Yearling Nice Answer Nice Answer Nice Answer Guru Guru Guru Great Answer,NULL,NULL,0,NULL,NULL 35964,476018,1525625,Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 35965,90341,41759,Revival Revival Good Answer Famous Question Famous Question Notable Question Nice Answer Nice Answer Populist Nice Answer Caucus Constituent Nice Answer Enlightened Yearling Good Question Notable Question Guru Caucus Yearling Nice Answer Caucus Constituent Nice Answer Revival Good Question Yearling,NULL,NULL,0,NULL,NULL 35966,1505712,1404226,NULL,NULL,NULL,0,NULL,NULL 35967,439715,350475,Popular Question,NULL,NULL,0,NULL,NULL 35968,43736,825336,Critic Yearling Famous Question Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35969,311747,1284413,NULL,NULL,NULL,0,NULL,NULL 35970,10812610,556433,Yearling Populist Good Answer,NULL,NULL,0,NULL,NULL 35971,664709,1554216,Editor Teacher Revival Custodian Yearling Supporter Caucus,NULL,NULL,0,NULL,NULL 35972,150184,722096,Yearling Necromancer Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 35973,746359,1365297,Popular Question Yearling Notable Question Explainer Notable Question Caucus Constituent Civic Duty Census Documentation User Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 35974,1242909,870989,NULL,NULL,NULL,0,NULL,NULL 35975,11535,366856,Nice Answer Enlightened Nice Question Yearling Good Answer Notable Question Popular Question Notable Question Nice Question Inquisitive Yearling Popular Question Nice Answer Guru Favorite Question Notable Question Popular Question Yearling Custodian Popular Question Custodian,NULL,NULL,0,NULL,NULL 35976,50898,122909,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 35977,367410,603289,Editor Student Scholar Informed Supporter Revival,NULL,NULL,0,NULL,NULL 35978,288240,174652,Yearling Citizen Patrol Custodian Caucus Constituent Yearling Mortarboard Informed Yearling Tenacious Yearling Revival Caucus Constituent Yearling Yearling Revival Yearling Unsung Hero,NULL,NULL,0,NULL,NULL 35979,179549,215211,Notable Question,NULL,NULL,0,NULL,NULL 35980,463637,130168,Yearling Great Answer java Nice Answer Enlightened Nice Answer Nice Answer cql Revival Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35981,1353294,1474733,Notable Question,NULL,NULL,0,NULL,NULL 35982,689686,246235,Excavator,NULL,NULL,0,NULL,NULL 35983,67125,401207,Caucus Constituent Census,NULL,NULL,0,NULL,NULL 35984,47479,1061548,NULL,NULL,NULL,0,NULL,NULL 35985,1209850,259684,NULL,NULL,NULL,0,NULL,NULL 35986,197080,560798,NULL,NULL,NULL,0,NULL,NULL 35987,1079048,194605,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 35988,1995388,724780,NULL,NULL,NULL,0,NULL,NULL 35989,12311,36702,Nice Answer Necromancer Nice Answer Enlightened Yearling Guru Guru Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 35990,893750,311099,Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 35991,242557,659337,NULL,NULL,NULL,0,NULL,NULL 35992,344576,337184,Yearling Good Answer Notable Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 35993,193456,564928,NULL,NULL,NULL,0,NULL,NULL 35994,182269,873237,Nice Answer Enlightened Nice Answer Enlightened Unsung Hero Student android Enthusiast Good Answer Yearling Guru android-gradle Caucus Constituent Civic Duty gradle build.gradle Caucus Constituent Yearling Documentation User Announcer Nice Answer Announcer Nice Answer Enlightened Custodian Census Nice Answer Enlightened Caucus Custodian Nice Answer Enlightened Good Answer android-studio Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35995,95135,641872,NULL,NULL,NULL,0,NULL,NULL 35996,95902,605393,NULL,NULL,NULL,0,NULL,NULL 35997,91267,184050,Commentator Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 35998,177056,780223,NULL,NULL,NULL,0,NULL,NULL 35999,1533374,293388,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36000,1515447,1524104,Commentator Notable Question,NULL,NULL,0,NULL,NULL 36001,1352868,788450,NULL,NULL,NULL,0,NULL,NULL 36002,225605,566811,NULL,NULL,NULL,0,NULL,NULL 36003,24510,1306363,Teacher Editor,NULL,NULL,0,NULL,NULL 36004,464087,1224579,NULL,NULL,NULL,0,NULL,NULL 36005,1021124,791699,NULL,NULL,NULL,0,NULL,NULL 36006,201373,939550,Tumbleweed,NULL,NULL,0,NULL,NULL 36007,548336,595574,NULL,NULL,NULL,0,NULL,NULL 36008,240958,238350,Famous Question Good Question Excavator Notable Question Notable Question Famous Question Notable Question Nice Question Famous Question Yearling Popular Question Good Question Notable Question Famous Question Notable Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 36009,519771,925649,Popular Question Good Question Reviewer Necromancer Nice Question Documentation Pioneer Yearling Notable Question Caucus Good Answer Nice Answer Constituent Nice Answer Popular Question Necromancer Nice Answer Notable Question Nice Answer Popular Question Custodian Nice Answer Necromancer Caucus Popular Question Constituent Yearling Necromancer Documentation User Good Answer Popular Question Popular Question Famous Question Caucus Good Answer Constituent Popular Question Nice Answer Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 36010,149504,364123,Yearling Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 36011,708517,994964,Notable Question Good Answer Yearling Revival Good Answer ruby-on-rails Civic Duty Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 36012,642791,217101,Popular Question Popular Question Good Question Notable Question Necromancer Popular Question Famous Question Yearling Nice Question Electorate Good Answer php Popular Question Popular Question Yearling Guru Popular Question Popular Question Good Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 36013,1514117,832541,Famous Question,NULL,NULL,0,NULL,NULL 36014,52271,230636,Nice Answer Nice Answer Enlightened Popular Question Good Answer Famous Question Great Answer Necromancer Nice Answer Enlightened Necromancer Good Answer Guru Yearling Famous Question Great Question Necromancer Great Question Famous Question Notable Question Good Answer Nice Answer Good Answer Popular Question Nice Answer Yearling Notable Question Announcer Nice Answer Revival,NULL,NULL,0,NULL,NULL 36015,900364,532435,NULL,NULL,NULL,0,NULL,NULL 36016,385721,472339,NULL,NULL,NULL,0,NULL,NULL 36017,930016,1462096,Popular Question Caucus Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 36018,954494,449822,NULL,NULL,NULL,0,NULL,NULL 36019,902991,142225,Yearling Caucus Constituent Caucus Constituent Necromancer Census Caucus Organizer,NULL,NULL,0,NULL,NULL 36020,815260,905160,Editor,NULL,NULL,0,NULL,NULL 36021,121600,1305080,Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 36022,229101,379236,Notable Question,NULL,NULL,0,NULL,NULL 36023,87014,184700,Nice Answer Nice Answer Custodian Custodian Custodian Custodian Custodian Informed Yearling Caucus Nice Answer Yearling Documentation User Proofreader Yearling,NULL,NULL,0,NULL,NULL 36024,96313,416790,NULL,NULL,NULL,0,NULL,NULL 36025,244135,6117,Popular Question,NULL,NULL,0,NULL,NULL 36026,692205,774608,NULL,NULL,NULL,0,NULL,NULL 36027,45920,92821,Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 36028,602779,196946,Commentator,NULL,NULL,0,NULL,NULL 36029,273352,535590,Announcer Popular Question Announcer Notable Question Announcer Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Self-Learner Yearling Nice Question Notable Question Famous Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36030,2160131,535590,Announcer Popular Question Announcer Notable Question Announcer Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Self-Learner Yearling Nice Question Notable Question Famous Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36031,8088199,2719,Good Answer Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 36032,1149351,604736,NULL,NULL,NULL,0,NULL,NULL 36033,163354,714257,Supporter,NULL,NULL,0,NULL,NULL 36034,274148,494045,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 36035,226701,251794,NULL,NULL,NULL,0,NULL,NULL 36036,384391,1158690,Commentator Informed Revival,NULL,NULL,0,NULL,NULL 36037,430518,922427,Revival,NULL,NULL,0,NULL,NULL 36038,266135,221174,NULL,NULL,NULL,0,NULL,NULL 36039,433327,1454167,NULL,NULL,NULL,0,NULL,NULL 36040,9433842,1301930,Teacher,NULL,NULL,0,NULL,NULL 36041,98689,1419986,NULL,NULL,NULL,0,NULL,NULL 36042,73770,1496948,NULL,NULL,NULL,0,NULL,NULL 36043,200180,10675,Popular Question Notable Question Famous Question Notable Question Favorite Question Nice Question Notable Question Popular Question Yearling Famous Question Great Question Good Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 36044,1748964,491416,NULL,NULL,NULL,0,NULL,NULL 36045,685856,885910,NULL,NULL,NULL,0,NULL,NULL 36046,195384,954282,Good Answer Yearling,NULL,NULL,0,NULL,NULL 36047,41880,105950,Yearling Good Question Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 36048,900169,1309288,NULL,NULL,NULL,0,NULL,NULL 36049,203660,1335171,NULL,NULL,NULL,0,NULL,NULL 36050,24918,947,Popular Question Nice Question Notable Question Notable Question Nice Question Notable Question Census Popular Question Informed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36051,745132,104918,Custodian Yearling Notable Question Great Answer Guru Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 36052,11680,521646,NULL,NULL,NULL,0,NULL,NULL 36053,656998,215664,Nice Answer,NULL,NULL,0,NULL,NULL 36054,73058,376458,Popular Question,NULL,NULL,0,NULL,NULL 36055,437249,612981,NULL,NULL,NULL,0,NULL,NULL 36056,435231,754991,Good Answer Nice Answer Nice Answer Popular Question Yearling Popular Question Nice Question Self-Learner dictionary Nice Answer Nice Answer Good Answer Caucus Constituent Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Yearling Announcer Notable Question Favorite Question Caucus Nice Answer python-2.7 string Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Census Nice Answer Enlightened Caucus Constituent Good Answer Popular Question Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 36057,602646,890407,Pundit Inquisitive Famous Question Popular Question Necromancer Popular Question Yearling Popular Question Necromancer Notable Question Nice Answer Favorite Question Custodian Caucus Yearling Notable Question Popular Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36058,78613,512923,Quorum Promoter Student Necromancer Benefactor Custodian Custodian Peer Pressure Yearling Necromancer Necromancer Necromancer Yearling Nice Answer Yearling Necromancer Necromancer Necromancer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Yearling,NULL,pBased on the idea of href http forum devmaster net fast and accurate sine cosine 9648 rel noreferrer http forum devmaster net fast and accurate sine cosine 9648 and some manual rewriting to improve the performance in micro benchmark ended up with the following cosine implementation which is used in HPC physics simulation that is bottlenecked by repeated cos calls on large number space It accurate enough and much faster than lookup table most notably no division is required ppre codetemplate lt typename gt inline cos noexcept constexpr tp PI tp 25 std floor 25 16 std abs if EXTRA PRECISION 225 std abs endif return code prepThe Intel compiler at least is also smart enough in vectorizing this function when used in loop ppIf EXTRA PRECISION is defined the maximum error is about 00109 for the range pi to pi assuming codeT code is codedouble code as it usually defined in most implementations Otherwise the maximum error is about 056 for the same range like to see benchmark against standard library cosine https stackoverflow com questions 824118 why is floor so slow strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distributed set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre What initialization work do you perceive msbLoop32 to be doing strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distributed set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre Thanks for those comments ve changed the code so that reference comparisons are no longer benchmarked and the timer is now started and stopped more correctly The benchmarks changed trivially but the high level results remain the same updated benchmarks are above Feel free to improve the answer further strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distributed set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre https stackoverflow com questions 7365562 de bruijn like sequence for 2n how is it constructed strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distributed set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre It may help to think of all those shifts as fill all the bits lower than the most significant bit with ones strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distribut,,, "d set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre assumed it was brute force search That would explain why there is no comparable perfect de Bruijn number for 64 bit integer MSB search as of this writing postulate without proof that it may be possible to find some or 10 bit de Bruijn tables that would do the job for the 64 bit MSB case""",quorum promoter student necromancer benefactor custodian custodian peer pressure yearle necromancer necromancer necromancer yearle nice answer yearle necromancer necromancer necromancer nice answer nice answer yearle nice answer nice answer yearle pbase idea href http forum devmaster net fast accurate sine cosine noreferrer http forum devmaster net fast accurate sine cosine manual rewrite improve performance micro benchmark end cosine implementation hpc physics simulation bottleneck repeat cos call large number space accurate faster lookup table notably division require codetemplate lt typename inline cos noexcept constexpr tp pi tp std floor std extra precision std endif return code prepthe intel compiler smart vectorize function loop ppif extra precision define maximum error range pi pi assume codet code codedouble code define implementation maximum error range benchmark standard library cosine https stackoverflow question floor slow strongtl bit href http supertech csail mit paper debruijn pdf noreferrer bruijn multiplication strong ppit href https blog codinghorror be not thing fast code noreferrer fast portable algorithm substantially faster correct portable bit algorithm thread ppthe bruijn algorithm return correct result input emthe builtin clz bitscanreverse instruction href https stackoverflow question undefined builtin builtin return incorrect result input -PRON- ppon emde bruijn multiplication run speed comparable equivalent flaw hardware instruction -PRON- performance difference pphere code static const int power return code prepall answer thread run poorly author suggest calculate result correctly benchmark verify claim pphere simple harness test implementation compile clean visual studio work modern compiler run benchmark performance mode bverifyresult false check mode bverifyresult true pphere result verification mode fail input output expect fail msbff input output expect dverification fail input output ffffffff expect fail input output expect code prepthe performance junkie microsoft native implementation thing input produce microsoft bitscanreverse produce random number consistent underlie hardware instruction implementation produce result answer pphere result performance mode run laptop compile release mode second second second msbff second second second second code prepthe bruijn version beat implementation emsoundly -PRON- branchless run input produce evenly distribute set output version slow arbitrary input penalty branch misprediction modern cpus smbff function produce incorrect result ppsome implementation work bit input work bit input template compare apple apple input size pphere code download run benchmark code include lt iostream include lt chrono include lt random include lt cassert include lt string include lt limit ifdef msc define microsoft compiler include lt intrin endif msc verconst int iteration bool bverifyresult false std random device std default random engine typedef unsigned int typedef unsigned long long class timer public timer beg clock void reset beg clock double elapse const return std chrono duration cast lt clock beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt std chrono time point lt clock beg unsigned int static const unsigned int bval unsigned int amp amp amp return bval define ff register int amp lt lt amp lt lt amp lt lt amp lt lt amp return unsigned int ff unsigned int int lt return return unsigned int int lt return return static const int power return ifdef microsoft val unsigned long result bitscanreverse amp result val return result val unsigned long result amp result val return result endif microsoft lt typename inputtype void test unsigned int msbfunc inputtype const std string amp const std vector lt inputtype amp input std vector lt unsigned int amp result bool bisreference false bisreference int int lt iteration result msbfunc input inputtype result bverifyresult bool bnotifie false int lt iteration result msbfunc input result result amp amp bnotifie std cout lt lt verification fail lt lt lt lt lt lt input lt lt std hex lt lt input lt lt output lt lt result lt lt expect lt lt result lt lt std endl bnotifie true timer int lt iteration result msbfunc input double elapse elapse bisreference std cout lt lt lt lt lt lt elapse lt lt second lt lt std endl result std cout lt lt comparison exist compiler lt lt optimize benchmark branch call void main std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false ifdef microsoft compiler test lt false endif microsoft compiler std cout lt lt std endl std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false test lt msbff false test lt false test lt false ifdef microsoft compiler test lt false endif microsoft compiler code initialization work perceive strongtl bit href http supertech csail mit paper debruijn pdf noreferrer bruijn multiplication strong ppit href https blog codinghorror be not thing fast code noreferrer fast portable algorithm substantially faster correct portable bit algorithm thread ppthe bruijn algorithm return correct result input emthe builtin clz bitscanreverse instruction href https stackoverflow question undefined builtin builtin return incorrect result input -PRON- ppon emde bruijn multiplication run speed comparable equivalent flaw hardware instruction -PRON- performance difference pphere code static const int power return code prepall answer thread run poorly author suggest calculate result correctly benchmark verify claim pphere simple harness test implementation compile clean visual studio work modern compiler run benchmark performance mode bverifyresult false check mode bverifyresult true pphere result verification mode fail input output expect fail msbff input output expect dverification fail input output ffffffff expect fail input output expect code prepthe performance junkie microsoft native implementation thing input produce microsoft bitscanreverse produce random number consistent underlie hardware instruction implementation produce result answer pphere result performance mode run laptop compile release mode second second second msbff second second second second code prepthe bruijn version beat implementation emsoundly -PRON- branchless run input produce evenly distribute set output version slow arbitrary input penalty branch misprediction modern cpus smbff function produce incorrect result ppsome implementation work bit input work bit input template compare apple apple input size pphere code download run benchmark code include lt iostream include lt chrono include lt random include lt cassert include lt string include lt limit ifdef msc define microsoft compiler include lt intrin endif msc verconst int iteration bool bverifyresult false std random device std default random engine typedef unsigned int typedef unsigned long long class timer public timer beg clock void reset beg clock double elapse const return std chrono duration cast lt clock beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt std chrono time point lt clock beg unsigned int static const unsigned int bval unsigned int amp amp amp return bval define ff register int amp lt lt amp lt lt amp lt lt amp lt lt amp return unsigned int ff unsigned int int lt return return unsigned int int lt return return static const int power return ifdef microsoft val unsigned long result bitscanreverse amp result val return result val unsigned long result amp result val return result endif microsoft lt typename inputtype void test unsigned int msbfunc inputtype const std string amp const std vector lt inputtype amp input std vector lt unsigned int amp result bool bisreference false bisreference int int lt iteration result msbfunc input inputtype result bverifyresult bool bnotifie false int lt iteration result msbfunc input result result amp amp bnotifie std cout lt lt verification fail lt lt lt lt lt lt input lt lt std hex lt lt input lt lt output lt lt result lt lt expect lt lt result lt lt std endl bnotifie true timer int lt iteration result msbfunc input double elapse elapse bisreference std cout lt lt lt lt lt lt elapse lt lt second lt lt std endl result std cout lt lt comparison exist compiler lt lt optimize benchmark branch call void main std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false ifdef microsoft compiler test lt false endif microsoft compiler std cout lt lt std endl std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false test lt msbff false test lt false test lt false ifdef microsoft compiler test lt false endif microsoft compiler code comment change code reference comparison longer benchmarke timer start stop correctly benchmark change trivially high level result remain update benchmark feel free improve answer strongtl bit href http supertech csail mit paper debruijn pdf noreferrer bruijn multiplication strong ppit href https blog codinghorror be not thing fast code noreferrer fast portable algorithm substantially faster correct portable bit algorithm thread ppthe bruijn algorithm return correct result input emthe builtin clz bitscanreverse instruction href https stackoverflow question undefined builtin builtin return incorrect result input -PRON- ppon emde bruijn multiplication run speed comparable equivalent flaw hardware instruction -PRON- performance difference pphere code static const int power return code prepall answer thread run poorly author suggest calculate result correctly benchmark verify claim pphere simple harness test implementation compile clean visual studio work modern compiler run benchmark performance mode bverifyresult false check mode bverifyresult true pphere result verification mode fail input output expect fail msbff input output expect dverification fail input output ffffffff expect fail input output expect code prepthe performance junkie microsoft native implementation thing input produce microsoft bitscanreverse produce random number consistent underlie hardware instruction implementation produce result answer pphere result performance mode run laptop compile release mode second second second msbff second second second second code prepthe bruijn version beat implementation emsoundly -PRON- branchless run input produce evenly distribute set output version slow arbitrary input penalty branch misprediction modern cpus smbff function produce incorrect result ppsome implementation work bit input work bit input template compare apple apple input size pphere code download run benchmark code include lt iostream include lt chrono include lt random include lt cassert include lt string include lt limit ifdef msc define microsoft compiler include lt intrin endif msc verconst int iteration bool bverifyresult false std random device std default random engine typedef unsigned int typedef unsigned long long class timer public timer beg clock void reset beg clock double elapse const return std chrono duration cast lt clock beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt std chrono time point lt clock beg unsigned int static const unsigned int bval unsigned int amp amp amp return bval define ff register int amp lt lt amp lt lt amp lt lt amp lt lt amp return unsigned int ff unsigned int int lt return return unsigned int int lt return return static const int power return ifdef microsoft val unsigned long result bitscanreverse amp result val return result val unsigned long result amp result val return result endif microsoft lt typename inputtype void test unsigned int msbfunc inputtype const std string amp const std vector lt inputtype amp input std vector lt unsigned int amp result bool bisreference false bisreference int int lt iteration result msbfunc input inputtype result bverifyresult bool bnotifie false int lt iteration result msbfunc input result result amp amp bnotifie std cout lt lt verification fail lt lt lt lt lt lt input lt lt std hex lt lt input lt lt output lt lt result lt lt expect lt lt result lt lt std endl bnotifie true timer int lt iteration result msbfunc input double elapse elapse bisreference std cout lt lt lt lt lt lt elapse lt lt second lt lt std endl result std cout lt lt comparison exist compiler lt lt optimize benchmark branch call void main std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false ifdef microsoft compiler test lt false endif microsoft compiler std cout lt lt std endl std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false test lt msbff false test lt false test lt false ifdef microsoft compiler test lt false endif microsoft compiler code https stackoverflow question bruijn sequence construct strongtl bit href http supertech csail mit paper debruijn pdf noreferrer bruijn multiplication strong ppit href https blog codinghorror be not thing fast code noreferrer fast portable algorithm substantially faster correct portable bit algorithm thread ppthe bruijn algorithm return correct result input emthe builtin clz bitscanreverse instruction href https stackoverflow question undefined builtin builtin return incorrect result input -PRON- ppon emde bruijn multiplication run speed comparable equivalent flaw hardware instruction -PRON- performance difference pphere code static const int power return code prepall answer thread run poorly author suggest calculate result correctly benchmark verify claim pphere simple harness test implementation compile clean visual studio work modern compiler run benchmark performance mode bverifyresult false check mode bverifyresult true pphere result verification mode fail input output expect fail msbff input output expect dverification fail input output ffffffff expect fail input output expect code prepthe performance junkie microsoft native implementation thing input produce microsoft bitscanreverse produce random number consistent underlie hardware instruction implementation produce result answer pphere result performance mode run laptop compile release mode second second second msbff second second second second code prepthe bruijn version beat implementation emsoundly -PRON- branchless run input produce evenly distribute set output version slow arbitrary input penalty branch misprediction modern cpus smbff function produce incorrect result ppsome implementation work bit input work bit input template compare apple apple input size pphere code download run benchmark code include lt iostream include lt chrono include lt random include lt cassert include lt string include lt limit ifdef msc define microsoft compiler include lt intrin endif msc verconst int iteration bool bverifyresult false std random device std default random engine typedef unsigned int typedef unsigned long long class timer public timer beg clock void reset beg clock double elapse const return std chrono duration cast lt clock beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt std chrono time point lt clock beg unsigned int static const unsigned int bval unsigned int amp amp amp return bval define ff register int amp lt lt amp lt lt amp lt lt amp lt lt amp return unsigned int ff unsigned int int lt return return unsigned int int lt return return static const int power return ifdef microsoft val unsigned long result bitscanreverse amp result val return result val unsigned long result amp result val return result endif microsoft lt typename inputtype void test unsigned int msbfunc inputtype const std string amp const std vector lt inputtype amp input std vector lt unsigned int amp result bool bisreference false bisreference int int lt iteration result msbfunc input inputtype result bverifyresult bool bnotifie false int lt iteration result msbfunc input result result amp amp bnotifie std cout lt lt verification fail lt lt lt lt lt lt input lt lt std hex lt lt input lt lt output lt lt result lt lt expect lt lt result lt lt std endl bnotifie true timer int lt iteration result msbfunc input double elapse elapse bisreference std cout lt lt lt lt lt lt elapse lt lt second lt lt std endl result std cout lt lt comparison exist compiler lt lt optimize benchmark branch call void main std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false ifdef microsoft compiler test lt false endif microsoft compiler std cout lt lt std endl std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false test lt msbff false test lt false test lt false ifdef microsoft compiler test lt false endif microsoft compiler code shift bit low significant bit strongtl bit href http supertech csail mit paper debruijn pdf noreferrer bruijn multiplication strong ppit href https blog codinghorror be not thing fast code noreferrer fast portable algorithm substantially faster correct portable bit algorithm thread ppthe bruijn algorithm return correct result input emthe builtin clz bitscanreverse instruction href https stackoverflow question undefined builtin builtin return incorrect result input -PRON- ppon emde bruijn multiplication run speed comparable equivalent flaw hardware instruction -PRON- performance difference pphere code static const int power return code prepall answer thread run poorly author suggest calculate result correctly benchmark verify claim pphere simple harness test implementation compile clean visual studio work modern compiler run benchmark performance mode bverifyresult false check mode bverifyresult true pphere result verification mode fail input output expect fail msbff input output expect dverification fail input output ffffffff expect fail input output expect code prepthe performance junkie microsoft native implementation thing input produce microsoft bitscanreverse produce random number consistent underlie hardware instruction implementation produce result answer pphere result performance mode run laptop compile release mode second second second msbff second second second second code prepthe bruijn version beat implementation emsoundly -PRON- branchless run input produce evenly distribute set output version slow arbitrary input penalty branch misprediction modern cpus smbff function produce incorrect result ppsome implementation work bit input work bit input template compare apple apple input size pphere code download run benchmark code include lt iostream include lt chrono include lt random include lt cassert include lt string include lt limit ifdef msc define microsoft compiler include lt intrin endif msc verconst int iteration bool bverifyresult false std random device std default random engine typedef unsigned int typedef unsigned long long class timer public timer beg clock void reset beg clock double elapse const return std chrono duration cast lt clock beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt std chrono time point lt clock beg unsigned int static const unsigned int bval unsigned int amp amp amp return bval define ff register int amp lt lt amp lt lt amp lt lt amp lt lt amp return unsigned int ff unsigned int int lt return return unsigned int int lt return return static const int power return ifdef microsoft val unsigned long result bitscanreverse amp result val return result val unsigned long result amp result val return result endif microsoft lt typename inputtype void test unsigned int msbfunc inputtype const std string amp const std vector lt inputtype amp input std vector lt unsigned int amp result bool bisreference false bisreference int int lt iteration result msbfunc input inputtype result bverifyresult bool bnotifie false int lt iteration result msbfunc input result result amp amp bnotifie std cout lt lt verification fail lt lt lt lt lt lt input lt lt std hex lt lt input lt lt output lt lt result lt lt expect lt lt result lt lt std endl bnotifie true timer int lt iteration result msbfunc input double elapse elapse bisreference std cout lt lt lt lt lt lt elapse lt lt second lt lt std endl result std cout lt lt comparison exist compiler lt lt optimize benchmark branch call void main std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false ifdef microsoft compiler test lt false endif microsoft compiler std cout lt lt std endl std uniform int distribution lt std numeric limit lt std uniform int distribution lt std vector lt int lt iteration push std vector lt resize iteration test lt true test lt false test lt msbff false test lt false test lt false ifdef microsoft compiler test lt false endif microsoft compiler code assume brute force search explain comparable perfect bruijn number bit integer search write postulate proof bit bruijn table job bit case,0,NULL,NULL,,,, 36059,129008,7918,Nice Question Popular Question Nice Question Good Question Famous Question Notable Question Notable Question Yearling Popular Question Great Answer Necromancer Nice Answer Caucus Good Answer Notable Question Good Question Census Nice Answer Announcer Nice Answer Nice Answer Necromancer Popular Question Notable Question Caucus Nice Answer Enlightened Great Question Constituent Revival Yearling Popular Question Famous Question Good Question Popular Question Notable Question Notable Question Famous Question Census Famous Question Nice Answer Announcer Caucus Popular Question Notable Question Constituent Popular Question Popular Question Popular Question Nice Answer Nice Question Famous Question Popular Question Announcer Notable Question Yearling Popular Question Good Answer Reviewer,NULL,NULL,0,NULL,NULL 36060,112029,1366420,NULL,NULL,NULL,0,NULL,NULL 36061,33339,1015147,Yearling Necromancer Informed,NULL,NULL,0,NULL,NULL 36062,157752,980397,NULL,NULL,NULL,0,NULL,NULL 36063,987694,1494740,NULL,NULL,NULL,0,NULL,NULL 36064,1013686,1336029,NULL,NULL,NULL,0,NULL,NULL 36065,77282,587370,Revival Necromancer Yearling Yearling Good Answer Nice Answer Revival Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 36066,30678,968115,NULL,NULL,NULL,0,NULL,NULL 36067,430434,1207877,NULL,NULL,NULL,0,NULL,NULL 36068,303266,347586,NULL,NULL,NULL,0,NULL,NULL 36069,13121,680995,NULL,NULL,NULL,0,NULL,NULL 36070,717980,704546,NULL,NULL,NULL,0,NULL,NULL 36071,439140,234287,Yearling Famous Question Notable Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 36072,117128,1263,Nice Question Curious Yearling Necromancer Yearling Nice Answer Yearling Nice Answer Great Question,NULL,NULL,0,NULL,NULL 36073,13909,187639,NULL,NULL,NULL,0,NULL,NULL 36074,7005,512280,NULL,NULL,NULL,0,NULL,NULL 36075,435489,974522,NULL,NULL,NULL,0,NULL,NULL 36076,1508257,1080720,NULL,NULL,NULL,0,NULL,NULL 36077,41992,1120805,NULL,NULL,NULL,0,NULL,NULL 36078,65088,218756,Yearling Great Answer Popular Question Custodian Custodian Caucus Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 36079,72914,716867,NULL,NULL,NULL,0,NULL,NULL 36080,895398,568408,NULL,NULL,NULL,0,NULL,NULL 36081,209890,19182,NULL,NULL,NULL,0,NULL,NULL 36082,476336,778098,Nice Question Critic Commentator,NULL,NULL,0,NULL,NULL 36083,107068,458724,NULL,NULL,NULL,0,NULL,NULL 36084,259684,310253,Famous Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 36085,61855,322220,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 36086,533926,778323,NULL,NULL,NULL,0,NULL,NULL 36087,491049,878695,Yearling Popular Question Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36088,161797,96524,NULL,NULL,NULL,0,NULL,NULL 36089,406912,9143,Yearling Notable Question Guru Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36090,9277651,25024,NULL,NULL,NULL,0,NULL,NULL 36091,1345952,833916,Popular Question Notable Question Notable Question Popular Question Yearling Good Answer Necromancer Popular Question Famous Question Popular Question Nice Question Yearling Popular Question Notable Question Populist Self-Learner Nice Answer Popular Question Yearling Notable Question Favorite Question Popular Question Great Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36092,101639,111960,Yearling Good Answer,NULL,NULL,0,NULL,NULL 36093,227659,434423,Popular Question Yearling,NULL,NULL,0,NULL,NULL 36094,297848,372494,Supporter Popular Question Teacher,NULL,NULL,0,NULL,NULL 36095,432065,1091015,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36096,63141,359957,Guru Guru Necromancer Good Answer Yearling Nice Answer Enlightened Notable Question Popular Question Inquisitive Popular Question Nice Question Popular Question Nice Answer Nice Answer Enlightened Popular Question Notable Question Yearling Good Answer Popular Question Popular Question Good Answer Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 36097,986526,689411,Nice Answer Yearling Popular Question Good Question Enthusiast Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36098,839148,1447379,NULL,NULL,NULL,0,NULL,NULL 36099,1306182,396255,Necromancer Yearling Good Answer Necromancer Custodian Nice Answer Yearling Documentation User Custodian Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Tag Editor,NULL,NULL,0,NULL,NULL 36100,2561907,652530,NULL,NULL,NULL,0,NULL,NULL 36101,379508,652530,NULL,NULL,NULL,0,NULL,NULL 36102,896191,1135979,Yearling,NULL,NULL,0,NULL,NULL 36103,324453,568030,Yearling Necromancer,NULL,NULL,0,NULL,NULL 36104,33018,178061,Good Answer,NULL,NULL,0,NULL,NULL 36105,14143,262263,NULL,NULL,NULL,0,NULL,NULL 36106,1469632,976006,Nice Question,NULL,NULL,0,NULL,NULL 36107,419028,1186944,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 36108,170142,548622,NULL,NULL,NULL,0,NULL,NULL 36109,7765,561667,NULL,NULL,NULL,0,NULL,NULL 36110,1046609,1212599,Popular Question,NULL,NULL,0,NULL,NULL 36111,216716,68972,Nice Answer Yearling Custodian Nice Answer Enlightened winforms Nice Answer Enlightened Excavator Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Talkative Caucus Census Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Caucus entity-framework Notable Question Pundit Guru Census Good Answer Nice Answer Nice Answer Enlightened c# Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling Caucus Nice Answer Good Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36112,922075,1239038,Popular Question,NULL,NULL,0,NULL,NULL 36113,1969539,1079330,NULL,NULL,NULL,0,NULL,NULL 36114,10996,1159446,NULL,NULL,NULL,0,NULL,NULL 36115,601757,1336732,Revival,NULL,NULL,0,NULL,NULL 36116,59636,507475,Necromancer Popular Question Yearling Popular Question Necromancer Custodian Yearling Custodian Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 36117,606573,320785,Supporter,NULL,NULL,0,NULL,NULL 36118,419126,553629,NULL,NULL,NULL,0,NULL,NULL 36119,547132,553629,NULL,NULL,NULL,0,NULL,NULL 36120,78044,559523,Excavator Yearling Mortarboard Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 36121,804569,503582,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 36122,91286,1280084,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 36123,376405,1499430,NULL,NULL,NULL,0,NULL,NULL 36124,21579,695661,NULL,NULL,NULL,0,NULL,NULL 36125,206660,668630,Custodian Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 36126,244181,554065,NULL,NULL,NULL,0,NULL,NULL 36127,125162,310444,Necromancer,NULL,NULL,0,NULL,NULL 36128,34542,476986,NULL,NULL,NULL,0,NULL,NULL 36129,53352,3424,Yearling Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 36130,764475,957466,NULL,NULL,NULL,0,NULL,NULL 36131,172607,1491270,NULL,NULL,NULL,0,NULL,NULL 36132,100560,945296,Yearling Good Answer,NULL,NULL,0,NULL,NULL 36133,3229177,666688,NULL,NULL,NULL,0,NULL,NULL 36134,2222085,666688,NULL,NULL,NULL,0,NULL,NULL 36135,567840,314733,NULL,NULL,NULL,0,NULL,NULL 36136,1470222,1026246,NULL,NULL,NULL,0,NULL,NULL 36137,446999,324197,Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 36138,169090,1404087,NULL,NULL,NULL,0,NULL,NULL 36139,853188,369651,Nice Answer Enlightened Yearling Nice Question Nice Answer Notable Question Nice Answer Famous Question Nice Question Good Answer Yearling Nice Answer Enlightened Good Question Enlightened Yearling,NULL,NULL,0,NULL,NULL 36140,319783,89101,Yearling Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36141,200677,1001918,NULL,NULL,NULL,0,NULL,NULL 36142,60987,9883,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36143,1033204,1550337,Nice Answer Critic,NULL,NULL,0,NULL,NULL 36144,117890,449776,NULL,NULL,NULL,0,NULL,NULL 36145,306760,140133,Notable Question Census Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 36146,1418714,233323,Supporter Notable Question,NULL,NULL,0,NULL,NULL 36147,253936,56243,Yearling Popular Question Nice Question Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 36148,326082,508630,Yearling Guru,NULL,NULL,0,NULL,NULL 36149,335050,358007,Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 36150,1092611,522995,Teacher Critic Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36151,1434618,849295,NULL,NULL,NULL,0,NULL,NULL 36152,115315,432589,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Revival Caucus Necromancer Electorate Popular Question Popular Question Nice Answer Nice Answer Enlightened Yearling x509certificate Great Answer Good Answer Nice Question Notable Question Good Answer Guru Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36153,2673845,32817,Popular Question,NULL,NULL,0,NULL,NULL 36154,850520,32817,Popular Question,NULL,NULL,0,NULL,NULL 36155,176581,1290534,NULL,NULL,NULL,0,NULL,NULL 36156,257234,21867,Notable Question,NULL,NULL,0,NULL,NULL 36157,102193,387194,Good Question Popular Question Nice Answer Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Nice Question Notable Question Nice Question Revival Popular Question Notable Question Notable Question Popular Question Revival Famous Question Notable Question Notable Question Notable Question Nice Question javascript Fanatic Yearling Nice Question Revival Famous Question Popular Question Nice Question Good Answer Popular Question Popular Question Notable Question Notable Question Nice Answer Famous Question Popular Question Good Question Popular Question Caucus Popular Question Constituent Notable Question Popular Question Nice Question Great Answer angularjs Popular Question Notable Question Necromancer Taxonomist Famous Question Popular Question Notable Question Popular Question Nice Question Nice Answer Famous Question Notable Question Great Question Popular Question css Famous Question Popular Question Announcer Popular Question Popular Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Favorite Question Famous Question Good Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Caucus Famous Question Nice Answer Constituent Favorite Question Nice Question Popular Question Nice Answer Notable Question Notable Question Notable Question Popular Question Revival Notable Question Popular Question Notable Question Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Announcer Notable Question Necromancer Notable Question Popular Question Necromancer Revival Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Announcer Nice Answer Enlightened Caucus Notable Question Notable Question Famous Question Popular Question Good Question Popular Question Good Answer Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Populist Nice Answer Notable Question Notable Question Necromancer Good Question Nice Question Notable Question Popular Question Notable Question Good Question Announcer Notable Question Socratic Popular Question Notable Question Popular Question Custodian Custodian Popular Question Popular Question Notable Question Popular Question Popular Question Reviewer Notable Question Famous Question Popular Question Notable Question Notable Question,NULL,pSlightly modified codetyped code animation using codeset prompt code instead of codeinsert code also code terminal substring code and codelength code that last one need to go to terminal length pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar anim false xD function typed finish typing xD return function term message delay finish xD anim true xD var prompt term get prompt xD var xD if message length gt xD term set prompt xD var new prompt xD var interval setInterval function xD handle html entities like amp amp xD var chr terminal substring message xD new prompt chr xD term set prompt new prompt xD xD if length message xD clearInterval interval xD execute in next interval xD setTimeout function xD swap command with prompt xD finish typing term message prompt xD anim false xD finish amp amp finish xD delay xD xD delay xD xD xD xD xD function length string xD return lt span gt terminal strip string lt span gt text length xD xD xD var typed message typed function term message prompt xD term set command xD term echo message xD term set prompt prompt xD xD body terminal function command term xD typed message term fff class name hello 400 xD code pre xD pre class snippet code css lang css prettyprint override codebody xD min height 100vh xD margin xD xD class name xD text decoration underline xD code pre xD pre class snippet code html lang html prettyprint override code lt script src https code jquery com jquery min js gt lt script gt xD lt script src https cdnjs cloudflare com ajax libs jquery terminal js jquery terminal min js gt lt script gt xD lt link href https cdnjs cloudflare com ajax libs jquery terminal css jquery terminal min css rel stylesheet gt code pre xD div xD div xD ppThe example on the site was updated accordingly it seems that there is bug when you add newline at the end in prompt and if each character have it own formatting you get newline after first character is this your problem pSlightly modified codetyped code animation using codeset prompt code instead of codeinsert code also code terminal substring code and codelength code that last one need to go to terminal length pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar anim false xD function typed finish typing xD return function term message delay finish xD anim true xD var prompt term get prompt xD var xD if message length gt xD term set prompt xD var new prompt xD var interval setInterval function xD handle html entities like amp amp xD var chr terminal substring message xD new prompt chr xD term set prompt new prompt xD xD if length message xD clearInterval interval xD execute in next interval xD setTimeout function xD swap command with prompt xD finish typing term message prompt xD anim false xD finish amp amp finish xD delay xD xD delay xD xD xD xD xD function length string xD return lt span gt terminal strip string lt span gt text length xD xD xD var typed message typed function term message prompt xD term set command xD term echo message xD term set prompt prompt xD xD body terminal function command term xD typed message term fff class name hello 400 xD code pre xD pre class snippet code css lang css prettyprint override codebody xD min height 100vh xD margin xD xD class name xD text decoration underline xD code pre xD pre class snippet code html lang html prettyprint override code lt script src https code jquery com jquery min js gt lt script gt xD lt script src https cdnjs cloudflare com ajax libs jquery terminal js jquery terminal min js gt lt script gt xD lt link href https cdnjs cloudflare com ajax libs jquery terminal css jquery terminal min css rel stylesheet gt code pre xD div xD div xD ppThe example on the site was updated accordingly ve fixed that one in devel branch on github https github com jcubic jquery terminal tree devel pSlightly modified codetyped code animation using codeset prompt code instead of codeinsert code also code terminal substring code and codelength code that last one need to go to terminal length pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar anim false xD function typed finish typing xD return function term message delay finish xD anim true xD var prompt term get prompt xD var xD if message length gt xD term set prompt xD var new prompt xD var interval setInterval function xD handle html entities like amp amp xD var chr terminal substring message xD new prompt chr xD term set prompt new prompt xD xD if length message xD clearInterval interval xD execute in next interval xD setTimeout function xD swap command with prompt xD finish typing term message prompt xD anim false xD finish amp amp finish xD delay xD xD delay xD xD xD xD xD function length string xD return lt span gt terminal strip string lt span gt text length xD xD xD var typed message typed function term message prompt xD term set command xD term echo message xD term set prompt prompt xD xD body terminal function command term xD typed message term fff class name hello 400 xD code pre xD pre class snippet code css lang css prettyprint override codebody xD min height 100vh xD margin xD xD class name xD text decoration underline xD code pre xD pre class snippet code html lang html prettyprint override code lt script src https code jquery com jquery min js gt lt script gt xD lt script src https cdnjs cloudflare com ajax libs jquery terminal js jquery terminal min js gt lt script gt xD lt link href https cdnjs cloudflare com ajax libs jquery terminal css jquery terminal min css rel stylesheet gt code pre xD div xD div xD ppThe example on the site was updated accordingly does this work for you https codepen io jcubic pen LxgJQG it use devel version from github,1,NULL,JQuery Terminal typing animation not displaying special HTML characters or class styles until after animation completes jquery terminal pI using code from the JQuery Terminal examples to emulate typed animation in console window can get the animation to work as intended but during the course of the animation special HTML characters do not display until after the animation completes For example while the animation is running the console renders code amp 92 code instead of ppThis problem also applies to styles assigned to the class of any div that being animated The styles do not show up until after the animation is complete ppBelow is the code used to animate adapted from the JQuery Terminal examples page ppre codevar anim false function typed finish typing return function term message delay finished classname anim true var prompt term get prompt var if message length gt term set prompt var interval setInterval function term insert message if message length clearInterval interval execute in next interval setTimeout function swap command with prompt finish typing term message prompt classname anim false finish amp amp finish delay delay var typed message typed function term message prompt classname if typeof classname undefined classname default term set command term echo message finalize function div div addClass classname term set prompt prompt code prepAnd an example of how it being called ppre codeE match ping typed message PONG 10 function finished true pong code prepIn this case styles applied to the pong class that assigned to the div output by codetyped message code do not display until after the text is finished typing ppIs there way to go about having the styles or special characters display while the animation is running pSlightly modified codetyped code animation using codeset prompt code instead of codeinsert code also code terminal substring code and codelength code that last one need to go to terminal length pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar anim false xD function typed finish typing xD return function term message delay finish xD anim true xD var prompt term get prompt xD var xD if message length gt xD term set prompt xD var new prompt xD var interval setInterval function xD handle html entities like amp amp xD var chr terminal substring message xD new prompt chr xD term set prompt new prompt xD xD if length message xD clearInterval interval xD execute in next interval xD setTimeout function xD swap command with prompt xD finish typing term message prompt xD anim false xD finish amp amp finish xD delay xD xD delay xD xD xD xD xD function length string xD return lt span gt terminal strip string lt span gt text length xD xD xD var typed message typed function term message prompt xD term set command xD term echo message xD term set prompt prompt xD xD body terminal function command term xD typed message term fff class name hello 400 xD code pre xD pre class snippet code css lang css prettyprint override codebody xD min height 100vh xD margin xD xD class name xD text decoration underline xD code pre xD pre class snippet code html lang html prettyprint override code lt script src https code jquery com jquery min js gt lt script gt xD lt script src https cdnjs cloudflare com ajax libs jquery terminal js jquery terminal min js gt lt script gt xD lt link href https cdnjs cloudflare com ajax libs jquery terminal css jquery terminal min css rel stylesheet gt code pre xD div xD div xD ppThe example on the site was updated accordingly 36158,193730,1420704,NULL,NULL,NULL,0,NULL,NULL 36159,2482976,272231,Yearling,NULL,NULL,0,NULL,NULL 36160,48314,272231,Yearling,NULL,NULL,0,NULL,NULL 36161,82486,894763,Nice Answer Supporter Revival Tenacious Yearling Announcer Good Answer Informed Excavator Yearling Critic Announcer image Revival Mortarboard Yearling image-processing,NULL,NULL,0,NULL,NULL 36162,329888,3545,Popular Question,NULL,NULL,0,NULL,NULL 36163,285421,307769,Necromancer Necromancer Necromancer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36164,121899,1015491,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 36165,131447,580524,Necromancer,NULL,NULL,0,NULL,NULL 36166,392867,51769,Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36167,31283,364604,Famous Question Popular Question Yearling Popular Question Nice Answer Notable Question Famous Question Necromancer Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 36168,1389027,587630,Census Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 36169,55771,562820,NULL,NULL,NULL,0,NULL,NULL 36170,34973,61413,Yearling Nice Answer Popular Question Good Question,NULL,NULL,0,NULL,NULL 36171,520687,1082667,NULL,NULL,NULL,0,NULL,NULL 36172,41536,489168,NULL,NULL,NULL,0,NULL,NULL 36173,201860,515338,Census,NULL,NULL,0,NULL,NULL 36174,82136,681033,Informed,NULL,NULL,0,NULL,NULL 36175,67683,1230887,Supporter,NULL,NULL,0,NULL,NULL 36176,431923,81360,Good Answer Yearling Self-Learner Notable Question Famous Question,NULL,NULL,0,NULL,NULL 36177,64325,896980,Necromancer Yearling Notable Question Great Answer Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36178,30433,397334,NULL,NULL,NULL,0,NULL,NULL 36179,100632,126660,Notable Question Popular Question Yearling Necromancer Revival Notable Question Yearling Yearling Popular Question,NULL,pFirst there are few typos in the posted code Try this Disclaimer Refactoring et al is left as an exercise for the readership ppre code BOOL verifyReceipt SKPaymentTransaction transaction NSString jsonObjectString self encode uint8 transaction transactionReceipt bytes length transaction transactionReceipt length NSString completeString NSString stringWithFormat http url for your php receipt jsonObjectString NSURL urlForValidation NSURL URLWithString completeString NSMutableURLRequest validationRequest NSMutableURLRequest alloc initWithURL urlForValidation validationRequest setHTTPMethod GET NSData responseData NSURLConnection sendSynchronousRequest validationRequest returningResponse nil error nil validationRequest release NSString responseString NSString alloc initWithData responseData encoding NSUTF8StringEncoding NSInteger response responseString integerValue responseString release return response NSString encode const uint8 input length NSInteger length static char table ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 NSMutableData data NSMutableData dataWithLength length uint8 output uint8 data mutableBytes for NSInteger lt length NSInteger value for NSInteger lt value lt lt if lt length value 0xFF amp input NSInteger index output index table value gt gt 18 amp 0x3F output index table value gt gt 12 amp 0x3F output index lt length table value gt gt amp 0x3F output index lt length table value gt gt amp 0x3F return NSString alloc initWithData data encoding NSASCIIStringEncoding autorelease code prepYou can make these Internal methods on the class that handles your strongSKPaymentTransactionObserver strong messages ppre code YourStoreClass Internal BOOL verifyReceipt SKPaymentTransaction transaction NSString encode const uint8 input length NSInteger length code prepNote You emcould em use something like stronglibcrypto strong to handle base64 encoding but then you re looking at export restrictions and extra steps at app approval time But digress ppThen wherever you intend to kick off recording the transaction on your remote server call strongverifyReceipt strong with your transaction and make sure it comes back positive ppMeanwhile on your server here some super stripped down PHP to handle things ppre code receipt json encode array receipt data gt GET receipt NOTE use buy vs sandbox in production url https sandbox itunes apple com verifyReceipt response json call your http post here url receipt response json decode response json Save the data here echo response gt status code prepWhere emcall your http post here em is your favorite HTTP post mechanism strongcURL strong is one possible choice YMMV PHP net has the scoop ppOne thing that has me slightly concerned is the length of the payload in the URL going from the app to the server via GET forget if there length issue there per the RFCs Maybe it OK or maybe it server specific Readers Advisement welcome on this part ppThere may also be some balking at making this synchronous request You may want to post it asynchronously and put up the ol strongUIActivityIndicatorView strong or some other HUD Case in point That stronginitWithData encoding strong call takes loooooong time for me few seconds which is small eternity in iPhone land or anywhere else online for that matter Showing some sort of indeterminate progress indicator may be advisable Well it certainly ancient history Also wrote the Disclaimer for reason codepython setup py install code is used to install typically third party packages that you re not going to develop modify debug yourself ppFor your own stuff you want to first install your package and then be able to frequently edit the code emwithout em having to re install the package every time and that is exactly what codepython setup py develop code does it installs the package typically just source folder in way that allows you to conveniently edit your code after it’s installed to the virtual environment and have the changes take effect immediately ppNote that it is highly recommended to use codepip install code install and codepip install code developer install to install packages as invoking setup py directly will do the wrong things for many dependencies like pulling prereleases and incompatible packages versions and make the package hard to uninstall with pip ran into problems using python setup py develop trying to set up Ceilometer for local development ended up using pip install PATH within virtualenv in order to avoid problems that cropped up via easy install https ask openstack org en question 87376 unable to setup ceilometer in develop mode,0,NULL,NULL 36180,89901,906672,NULL,NULL,NULL,0,NULL,NULL 36181,745433,924716,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36182,220161,524725,Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Announcer Yearling Revival Popular Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 36183,6767577,524725,Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Announcer Yearling Revival Popular Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 36184,1566594,1282367,NULL,NULL,NULL,0,NULL,NULL 36185,41217,547163,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 36186,1286685,1166200,Supporter Commentator Tumbleweed Notable Question Custodian,NULL,NULL,0,NULL,NULL 36187,398643,1166200,Supporter Commentator Tumbleweed Notable Question Custodian,NULL,NULL,0,NULL,NULL 36188,182408,575746,Critic Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 36189,28722,469900,NULL,NULL,NULL,0,NULL,NULL 36190,424542,198480,Good Answer Unsung Hero Nice Answer Enlightened Yearling Organizer Custodian Reviewer Explainer python Popular Question Disciplined Custodian Nice Answer Yearling Caucus Announcer Custodian Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36191,3859944,88691,Yearling Yearling Yearling Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 36192,75154,786495,Critic Yearling Popular Question,NULL,NULL,0,NULL,NULL 36193,338080,542354,NULL,NULL,NULL,0,NULL,NULL 36194,208416,40961,Necromancer Necromancer Pundit Revival Good Answer Nice Answer Good Answer Announcer Yearling Guru Popular Question Nice Answer Necromancer Notable Question Necromancer Necromancer Yearling Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 36195,47036,525377,NULL,NULL,NULL,0,NULL,NULL 36196,578434,408143,NULL,NULL,NULL,0,NULL,NULL 36197,86544,545564,Informed Custodian Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36198,108614,274624,Yearling,NULL,NULL,0,NULL,NULL 36199,505244,984288,NULL,NULL,NULL,0,NULL,NULL 36200,1501282,861841,NULL,NULL,NULL,0,NULL,NULL 36201,18323,40644,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36202,76119,223667,NULL,NULL,NULL,0,NULL,NULL 36203,69124,1024178,Nice Answer,NULL,NULL,0,NULL,NULL 36204,617470,800159,Popular Question,NULL,NULL,0,NULL,NULL 36205,939767,1395935,Notable Question,NULL,NULL,0,NULL,NULL 36206,316065,324312,Good Answer Yearling Nice Answer Yearling Popular Question Great Answer Good Answer Nice Answer Enlightened Cleanup Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 36207,368905,1320693,Revival Yearling Custodian Revival jsonschema Explainer json Yearling Nice Answer Enlightened Documentation User Nice Answer Enlightened Good Answer Census Organizer Guru Scholar Nice Answer Yearling Nice Answer Nice Answer Autobiographer Good Answer Student Nice Answer jsonschema Great Answer Custodian Popular Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 36208,208646,561376,NULL,NULL,NULL,0,NULL,NULL 36209,261684,741404,Notable Question Popular Question Popular Question Popular Question Nice Question Revival Yearling Nice Answer Tag Editor Popular Question Famous Question Popular Question Famous Question Famous Question Explainer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Popular Question Yearling Good Question Nice Question Popular Question Revival Notable Question Nice Answer Popular Question Yearling Good Answer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36210,3290267,864511,Famous Question Popular Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 36211,131871,143938,Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened python Yearling Guru Nice Answer Enlightened Great Answer Nice Answer Guru Good Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer Revival Nice Answer Nice Answer Guru Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 36212,245830,707302,NULL,NULL,NULL,0,NULL,NULL 36213,37771,800428,Necromancer,NULL,NULL,0,NULL,NULL 36214,96832,1108921,Scholar Excavator,NULL,NULL,0,NULL,NULL 36215,387047,674301,Self-Learner Promoter Civic Duty Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Custodian Notable Question Custodian Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 36216,178358,684712,NULL,NULL,NULL,0,NULL,NULL 36217,129051,130538,NULL,NULL,NULL,0,NULL,NULL 36218,174189,627066,NULL,NULL,NULL,0,NULL,NULL 36219,503009,926716,NULL,NULL,NULL,0,NULL,NULL 36220,2793363,1461367,Informed,NULL,NULL,0,NULL,NULL 36221,76433,129592,Good Answer Yearling Yearling Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36222,412647,854514,NULL,NULL,NULL,0,NULL,NULL 36223,1497682,713473,NULL,NULL,NULL,0,NULL,NULL 36224,303758,1372767,Curious Yearling Nice Answer Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 36225,110725,1115812,NULL,NULL,NULL,0,NULL,NULL 36226,258194,175966,Popular Question Good Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 36227,766645,468336,NULL,NULL,NULL,0,NULL,NULL 36228,837776,495226,NULL,NULL,NULL,0,NULL,NULL 36229,884280,1338907,NULL,NULL,NULL,0,NULL,NULL 36230,934583,902749,NULL,NULL,NULL,0,NULL,NULL 36231,389910,451159,NULL,NULL,NULL,0,NULL,NULL 36232,449500,535488,Nice Question Yearling,NULL,NULL,0,NULL,NULL 36233,3931,764234,NULL,NULL,NULL,0,NULL,NULL 36234,854134,1198149,Supporter,NULL,NULL,0,NULL,NULL 36235,1011086,685910,Popular Question,NULL,NULL,0,NULL,NULL 36236,8460964,685910,Popular Question,NULL,NULL,0,NULL,NULL 36237,400195,612156,NULL,NULL,NULL,0,NULL,NULL 36238,13892,348468,NULL,NULL,NULL,0,NULL,NULL 36239,200053,384664,Notable Question,NULL,NULL,0,NULL,NULL 36240,6359163,1191241,NULL,NULL,NULL,0,NULL,NULL 36241,28502,466856,Supporter,NULL,NULL,0,NULL,NULL 36242,71977,348375,Enthusiast Yearling Revival Popular Question Census Popular Question Census Yearling Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36243,45510,897640,Popular Question Organizer Excavator Yearling Revival Citizen Patrol Yearling Nice Question Notable Question Yearling Yearling Popular Question Popular Question Favorite Question Yearling Notable Question Famous Question Revival Yearling Good Question,NULL,NULL,0,NULL,NULL 36244,29726,520793,Nice Answer Yearling Enlightened Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 36245,802376,1180391,NULL,NULL,NULL,0,NULL,NULL 36246,1050518,749672,NULL,NULL,NULL,0,NULL,NULL 36247,379248,241954,NULL,NULL,NULL,0,NULL,NULL 36248,21075,398535,NULL,NULL,NULL,0,NULL,NULL 36249,1434231,1178719,NULL,NULL,NULL,0,NULL,NULL 36250,392044,608565,NULL,NULL,NULL,0,NULL,NULL 36251,94852,677055,NULL,NULL,NULL,0,NULL,NULL 36252,318848,106177,Scholar Popular Question,NULL,NULL,0,NULL,NULL 36253,2160124,272287,Popular Question Yearling Nice Answer Enlightened Nice Answer Convention Reviewer Tumbleweed Nice Answer Caucus Nice Question Good Answer Yearling Notable Question Guru Nice Answer Documentation User Nice Answer jquery Good Answer Yearling Caucus Popular Question Notable Question Popular Question Popular Question Good Answer Necromancer,NULL,NULL,0,NULL,NULL 36254,432757,836812,NULL,NULL,NULL,0,NULL,NULL 36255,540692,29060,Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 36256,637609,1048445,NULL,NULL,NULL,0,NULL,NULL 36257,804862,1163176,NULL,NULL,NULL,0,NULL,NULL 36258,1437954,110054,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36259,250197,1013040,Notable Question Yearling Notable Question Popular Question Yearling Nice Question Notable Question Famous Question Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36260,721799,1021211,Popular Question Famous Question Curious,NULL,NULL,0,NULL,NULL 36261,526819,1342097,Critic Yearling Notable Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 36262,59388,786644,Notable Question Popular Question indexeddb Popular Question Notable Question Nice Question Yearling Nice Answer Enlightened Announcer Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question javascript Nice Question Notable Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question Nice Question Famous Question Famous Question Popular Question Revival Yearling Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 36263,4462635,786644,Notable Question Popular Question indexeddb Popular Question Notable Question Nice Question Yearling Nice Answer Enlightened Announcer Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question javascript Nice Question Notable Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question Nice Question Famous Question Famous Question Popular Question Revival Yearling Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 36264,1359,223372,NULL,NULL,NULL,0,NULL,NULL 36265,609265,307361,NULL,NULL,NULL,0,NULL,NULL 36266,212243,1329637,NULL,NULL,pYou would do something like this by tapping into the codescroll code event handler on codewindow code and using another codetable code with fixed position to show the header at the top of the page pp strongHTML strong ppre code lt table id header fixed gt lt table gt code prep strongCSS strong ppre code header fixed position fixed top 0px display none background color white code prep strongJavaScript strong ppre codevar tableOffset table offset top var header table gt thead clone var fixedHeader header fixed append header window bind scroll function var offset this scrollTop if offset gt tableOffset amp amp fixedHeader is hidden fixedHeader show else if offset lt tableOffset fixedHeader hide code prepThis will show the table head when the user scrolls down far enough to hide the original table head It will hide again when the user has scrolled the page up far enough again ppWorking example href http jsfiddle net andrewwhitaker fj8wM rel noreferrer http jsfiddle net andrewwhitaker fj8wM Great solution To improve the way it works on my page added width 100 to the header fixed CSS rule and changed the to in the script part,0,NULL,NULL 36267,185630,753792,Curious Popular Question,NULL,NULL,0,NULL,NULL 36268,136826,390966,Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 36269,907349,1359277,NULL,NULL,NULL,0,NULL,NULL 36270,377056,901532,NULL,NULL,NULL,0,NULL,NULL 36271,132058,568863,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 36272,574007,424428,Student,NULL,NULL,0,NULL,NULL 36273,2555,17732,Notable Question Yearling Nice Question Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 36274,177334,292821,Popular Question Good Answer Good Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 36275,820745,1253656,Documentation User,NULL,NULL,0,NULL,NULL 36276,162550,166973,Yearling Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 36277,2235013,336937,NULL,NULL,NULL,0,NULL,NULL 36278,3348,11078,Revival Famous Question,NULL,NULL,0,NULL,NULL 36279,348403,53387,Necromancer Revival Yearling Necromancer Editor Revival Nice Question,NULL,NULL,0,NULL,NULL 36280,36093,169477,Notable Question Nice Question Famous Question Notable Question Good Question Popular Question Notable Question Famous Question Famous Question Yearling Notable Question Notable Question Popular Question Good Question Popular Question Popular Question Notable Question Good Question Favorite Question Yearling Favorite Question Stellar Question Custodian Popular Question Popular Question Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 36281,1337330,940853,NULL,NULL,NULL,0,NULL,NULL 36282,20457,1252818,NULL,NULL,NULL,0,NULL,NULL 36283,75816,575950,Necromancer Nice Answer Yearling Yearling Good Answer Good Answer Populist Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 36284,232200,275973,Yearling Nice Answer Necromancer Yearling Nice Answer Enlightened Nice Answer Yearling Caucus Constituent Good Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 36285,1148248,1461760,Yearling Good Answer,NULL,How to use multiple arguments for awk with shebang shell unix awk gawk shebang pI like to execute an href http en wikipedia org wiki AWK Versions and implementations rel noreferrer gawk script with code re interval code using shebang The naive approach of ppre code usr bin gawk re interval awk script goes here code prepdoes not work since gawk is called with the first argument code re interval code not splitted around the whitespace which it does not understand Is there workaround for that ppOf course you can either not call gawk directly but wrap it into shell script that splits the first argument or make shell script that then calls gawk and put the script into another file but was wondering if there was some way to do this within one file ppThe behaviour of shebang lines differs from system to system at least in href http en wikipedia org wiki Cygwin rel noreferrer Cygwin it does not split the arguments by whitespaces just care about how to do it on system that behaves like that the script is not meant to be portable With recent versions of gawk re interval is not needed anymore see https www gnu org software gawk manual gawk html index 002d 002dre 002dinterval option,0,NULL,NULL 36286,61910,201698,Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36287,134514,1457136,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 36288,82729,959885,NULL,NULL,NULL,0,NULL,NULL 36289,149074,526598,NULL,NULL,NULL,0,NULL,NULL 36290,117717,710054,Popular Question Popular Question Notable Question Popular Question Popular Question Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36291,10018,274318,Notable Question Yearling Informed Popular Question Necromancer Necromancer Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36292,8700809,649790,Tumbleweed Good Answer Yearling Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 36293,200973,649790,Tumbleweed Good Answer Yearling Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 36294,1985323,649790,Tumbleweed Good Answer Yearling Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 36295,345456,1137487,NULL,NULL,NULL,0,NULL,NULL 36296,2301,158525,Custodian Explainer Yearling Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Announcer react-native Good Answer Enlightened Yearling Nice Answer Enlightened Good Answer Guru Good Answer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 36297,313940,902763,NULL,NULL,NULL,0,NULL,NULL 36298,674805,916434,NULL,NULL,NULL,0,NULL,NULL 36299,222348,1286761,Good Answer Yearling Caucus Constituent Revival Yearling Custodian Custodian Necromancer,NULL,NULL,0,NULL,NULL 36300,340482,686700,NULL,NULL,NULL,0,NULL,NULL 36301,591608,712278,NULL,NULL,NULL,0,NULL,NULL 36302,177561,853141,NULL,NULL,NULL,0,NULL,NULL 36303,51833,278757,Yearling,NULL,NULL,0,NULL,NULL 36304,352716,1236129,NULL,NULL,NULL,0,NULL,NULL 36305,82374,539532,NULL,NULL,NULL,0,NULL,NULL 36306,274698,518903,Yearling,NULL,NULL,0,NULL,NULL 36307,3706,508237,NULL,NULL,NULL,0,NULL,NULL 36308,97533,1123154,NULL,NULL,NULL,0,NULL,NULL 36309,469772,476584,Famous Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36310,279461,1102530,NULL,NULL,NULL,0,NULL,NULL 36311,267113,570202,Yearling Necromancer Guru Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36312,1564325,770105,NULL,NULL,NULL,0,NULL,NULL 36313,276199,1039228,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36314,902321,1351118,Informed,NULL,NULL,0,NULL,NULL 36315,221970,1267625,Notable Question Necromancer Yearling Editor Scholar Commentator Yearling Curious Necromancer Popular Question,NULL,NULL,0,NULL,NULL 36316,1596493,1443083,NULL,NULL,NULL,0,NULL,NULL 36317,964940,1033732,Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 36318,333805,393229,Autobiographer,NULL,NULL,0,NULL,NULL 36319,356961,816855,Caucus Custodian Nice Answer Student Yearling Explainer Custodian Custodian Caucus Constituent Census Caucus Yearling Organizer,NULL,NULL,0,NULL,NULL 36320,6091,191622,Nice Question Popular Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 36321,207508,1415277,NULL,NULL,NULL,0,NULL,NULL 36322,162481,719943,Popular Question,NULL,NULL,0,NULL,NULL 36323,602510,1233907,Yearling Caucus Constituent Great Answer Yearling Good Answer Caucus Constituent Good Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 36324,124121,1238772,NULL,NULL,NULL,0,NULL,NULL 36325,108336,63160,NULL,NULL,NULL,0,NULL,NULL 36326,10661012,743993,Notable Question Supporter,NULL,NULL,0,NULL,NULL 36327,51082,743993,Notable Question Supporter,NULL,NULL,0,NULL,NULL 36328,566084,254805,Yearling Caucus,NULL,NULL,0,NULL,NULL 36329,36732,1435315,NULL,NULL,NULL,0,NULL,NULL 36330,310661,240567,NULL,NULL,NULL,0,NULL,NULL 36331,258033,942942,NULL,NULL,NULL,0,NULL,NULL 36332,404594,136058,NULL,NULL,NULL,0,NULL,NULL 36333,226637,770517,Necromancer Yearling Nice Answer Caucus Excavator Necromancer Yearling Explainer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 36334,769752,839573,Popular Question Notable Question Peer Pressure,NULL,NULL,0,NULL,NULL 36335,246045,634238,NULL,NULL,NULL,0,NULL,NULL 36336,171588,304335,Nice Answer Notable Question Yearling Necromancer Good Answer Great Answer Good Answer Yearling Guru Revival Nice Answer Enlightened Custodian Custodian Yearling Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36337,355656,1530424,NULL,NULL,NULL,0,NULL,NULL 36338,423077,210216,Good Answer Yearling Yearling Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 36339,407,402445,NULL,NULL,NULL,0,NULL,NULL 36340,784305,66202,Popular Question,NULL,NULL,0,NULL,NULL 36341,74090,78217,Notable Question,NULL,NULL,0,NULL,NULL 36342,719426,1405322,NULL,NULL,NULL,0,NULL,NULL 36343,137963,477178,NULL,NULL,NULL,0,NULL,NULL 36344,280446,544153,NULL,NULL,NULL,0,NULL,NULL 36345,257321,120993,NULL,NULL,NULL,0,NULL,NULL 36346,22248,171577,fitnesse Yearling Nice Answer Steward Notable Question Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 36347,289003,1058314,Necromancer Good Answer Nice Answer Guru Necromancer Great Answer Custodian Good Answer Yearling Necromancer Custodian Revival Necromancer Nice Answer Nice Answer Yearling Custodian javascript Good Answer Yearling,NULL,NULL,0,NULL,NULL 36348,65653,33560,NULL,NULL,NULL,0,NULL,NULL 36349,2131980,879607,Popular Question Good Answer Yearling Revival Necromancer Civic Duty Fanatic Caucus Nice Answer Revival Notable Question Famous Question Inquisitive Good Answer Popular Question Popular Question Investor Caucus Yearling Necromancer Nice Answer Enlightened Popular Question Notable Question Caucus Custodian Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36350,874586,1023956,NULL,NULL,NULL,0,NULL,NULL 36351,442744,386848,NULL,NULL,NULL,0,NULL,NULL 36352,8887,1408788,Popular Question,NULL,NULL,0,NULL,NULL 36353,1958990,1304642,Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 36354,1380271,890513,NULL,NULL,NULL,0,NULL,NULL 36355,107179,347190,NULL,NULL,NULL,0,NULL,NULL 36356,859243,1343356,Yearling Announcer Critic Custodian Yearling Yearling Tenacious Custodian go Fanatic Yearling,NULL,NULL,0,NULL,NULL 36357,372298,133973,Popular Question Famous Question Yearling Famous Question Notable Question Nice Question Caucus Popular Question Nice Question Popular Question Yearling Popular Question Popular Question Famous Question Famous Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 36358,150190,183229,Good Answer Necromancer Nice Answer Necromancer Yearling Nice Answer Good Answer Guru Enlightened Yearling domain-driven-design Yearling,NULL,NULL,0,NULL,NULL 36359,116576,580641,NULL,NULL,NULL,0,NULL,NULL 36360,623847,610390,Excavator Census Popular Question,NULL,NULL,0,NULL,NULL 36361,12644,424420,NULL,NULL,NULL,0,NULL,NULL 36362,45007,1317382,NULL,NULL,NULL,0,NULL,NULL 36363,921862,529896,NULL,NULL,NULL,0,NULL,NULL 36364,454155,566857,NULL,NULL,NULL,0,NULL,NULL 36365,357167,594478,Yearling,NULL,NULL,0,NULL,NULL 36366,145172,1100193,NULL,NULL,NULL,0,NULL,NULL 36367,103414,1133019,Yearling Popular Question Nice Answer Nice Answer Nice Question Popular Question Nice Answer Enlightened r Famous Question Good Answer Yearling Good Question Nice Answer Famous Question Good Answer Notable Question Notable Question Yearling Taxonomist Nice Answer Nice Answer Enlightened Revival Famous Question Good Answer Populist Good Question Stellar Question,NULL,NULL,0,NULL,NULL 36368,274663,732536,NULL,NULL,NULL,0,NULL,NULL 36369,188108,142153,Census Nice Answer Yearling Enlightened Nice Answer Good Question,NULL,NULL,0,NULL,NULL 36370,165306,1205181,NULL,NULL,NULL,0,NULL,NULL 36371,19554,610790,NULL,NULL,NULL,0,NULL,NULL 36372,122158,368091,NULL,NULL,NULL,0,NULL,NULL 36373,1505414,950766,NULL,NULL,NULL,0,NULL,NULL 36374,87159,214884,NULL,NULL,NULL,0,NULL,NULL 36375,786250,930818,NULL,NULL,NULL,0,NULL,NULL 36376,43050,769906,NULL,NULL,NULL,0,NULL,NULL 36377,1946583,841742,NULL,NULL,NULL,0,NULL,NULL 36378,62699,627205,Yearling Great Answer Yearling Yearling Autobiographer,NULL,NULL,0,NULL,NULL 36379,211913,107880,NULL,NULL,NULL,0,NULL,NULL 36380,248184,188600,Necromancer Custodian,NULL,NULL,0,NULL,NULL 36381,270345,1247201,Revival Critic Necromancer Scholar Student,NULL,NULL,0,NULL,NULL 36382,458610,835766,Yearling Necromancer Caucus Popular Question Good Answer Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 36383,1064168,615684,NULL,NULL,NULL,0,NULL,NULL 36384,45936,279638,Critic Census,NULL,NULL,0,NULL,NULL 36385,26155,171965,Famous Question Good Question Yearling Good Answer Nice Answer Yearling Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 36386,212844,4307,Yearling Necromancer Popular Question Good Question Popular Question Census Necromancer,NULL,NULL,0,NULL,NULL 36387,251125,779702,NULL,NULL,NULL,0,NULL,NULL 36388,290339,1470697,NULL,NULL,NULL,0,NULL,NULL 36389,55410,467050,NULL,NULL,NULL,0,NULL,NULL 36390,6151817,1381563,NULL,NULL,NULL,0,NULL,NULL 36391,856114,1381563,NULL,NULL,NULL,0,NULL,NULL 36392,86148,537348,Yearling Popular Question Popular Question Yearling Great Question Favorite Question,NULL,NULL,0,NULL,NULL 36393,18975,1144412,Caucus Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36394,163929,362051,Yearling Custodian Good Answer,NULL,NULL,0,NULL,NULL 36395,238359,127089,Popular Question Nice Question Custodian Popular Question Nice Answer Nice Answer Popular Question Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 36396,608907,1518723,NULL,NULL,NULL,0,NULL,NULL 36397,23235,576891,Nice Answer,NULL,NULL,0,NULL,NULL 36398,516142,1386356,NULL,NULL,NULL,0,NULL,NULL 36399,166635,943079,Informed Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 36400,312210,1373306,Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36401,62921,1024571,Popular Question Student Notable Question Yearling Caucus Announcer Necromancer,NULL,NULL,0,NULL,NULL 36402,223693,1005891,NULL,NULL,NULL,0,NULL,NULL 36403,176780,647273,NULL,NULL,NULL,0,NULL,NULL 36404,13917,338413,Famous Question Nice Question Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36405,930855,1184492,Yearling Custodian Favorite Question Nice Answer Notable Question Popular Question Yearling Revival Necromancer Nice Answer Great Question Yearling Revival Notable Question Revival,NULL,NULL,0,NULL,NULL 36406,78616,859279,Civic Duty Nice Answer Enlightened Student Scholar Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Announcer Announcer Announcer Yearling Nice Answer Enlightened Census elm Yearling Popular Question,NULL,NULL,0,NULL,NULL 36407,3735,648800,NULL,NULL,NULL,0,NULL,NULL 36408,269903,311123,Notable Question Teacher Editor,NULL,NULL,0,NULL,NULL 36409,301020,680700,NULL,NULL,NULL,0,NULL,NULL 36410,245,229085,Guru Yearling Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 36411,1864539,424086,NULL,NULL,NULL,0,NULL,NULL 36412,222283,311127,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 36413,136696,568623,NULL,NULL,NULL,0,NULL,NULL 36414,227570,400801,Notable Question,NULL,NULL,0,NULL,NULL 36415,659438,1343200,Announcer,NULL,NULL,0,NULL,NULL 36416,20479,144811,Yearling,NULL,NULL,0,NULL,NULL 36417,116571,8290,NULL,NULL,NULL,0,NULL,NULL 36418,515636,556214,NULL,NULL,NULL,0,NULL,NULL 36419,7459,362684,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36420,269411,1086790,Supporter,NULL,NULL,0,NULL,NULL 36421,633054,343362,NULL,NULL,NULL,0,NULL,NULL 36422,3107,562145,Yearling Nice Answer Enlightened Taxonomist Nice Answer Enlightened Nice Answer Enlightened Yearling javascript Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 36423,52479,1249987,Supporter,NULL,NULL,0,NULL,NULL 36424,313131,582298,Notable Question Notable Question Enthusiast Popular Question Necromancer Revival Yearling Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 36425,137148,27498,Nice Question Yearling Famous Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 36426,1261198,321668,Good Answer Yearling,NULL,NULL,0,NULL,NULL 36427,47530,9121,Yearling Nice Answer Nice Answer Good Answer Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 36428,468570,1245676,NULL,NULL,NULL,0,NULL,NULL 36429,45069,1090477,Guru Nice Answer Yearling Necromancer Nice Answer Autobiographer Necromancer Revival Student Commentator Revival Nice Answer Enlightened Necromancer Great Answer Popular Question Revival Nice Question Yearling Necromancer Tumbleweed Notable Question Nice Answer Enlightened Good Answer Necromancer,NULL,NULL,0,NULL,NULL 36430,7689,715377,Popular Question,NULL,NULL,0,NULL,NULL 36431,436728,491423,NULL,NULL,NULL,0,NULL,NULL 36432,53699,480853,NULL,NULL,NULL,0,NULL,NULL 36433,73142,214043,NULL,NULL,NULL,0,NULL,NULL 36434,236279,635982,objectify Popular Question Yearling Custodian google-app-engine Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Nice Answer Enlightened Yearling google-cloud-datastore Popular Question Nice Question Explainer Good Answer Notable Question Revival Nice Question Nice Question Famous Question Notable Question Yearling Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 36435,123844,640280,NULL,NULL,NULL,0,NULL,NULL 36436,336718,467373,Revival Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 36437,72281,322403,NULL,NULL,NULL,0,NULL,NULL 36438,214762,758224,NULL,NULL,NULL,0,NULL,NULL 36439,191650,475248,NULL,NULL,NULL,0,NULL,NULL 36440,38549,269513,NULL,NULL,NULL,0,NULL,NULL 36441,24406,173355,neural-network Revival Yearling Nice Answer Tumbleweed Nice Answer Yearling encog Popular Question Yearling,NULL,NULL,0,NULL,NULL 36442,22568,138122,Good Question Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Enlightened Proofreader Caucus Constituent Yearling Nice Answer Enlightened Good Answer Caucus Yearling Guru,NULL,NULL,0,NULL,NULL 36443,514385,465423,Popular Question,NULL,NULL,0,NULL,NULL 36444,488605,1245981,NULL,NULL,NULL,0,NULL,NULL 36445,376375,1016620,NULL,NULL,NULL,0,NULL,NULL 36446,47854,853412,NULL,NULL,NULL,0,NULL,NULL 36447,64336,630768,NULL,NULL,NULL,0,NULL,NULL 36448,2298138,630768,NULL,NULL,NULL,0,NULL,NULL 36449,338948,315036,Documentation User,NULL,NULL,0,NULL,NULL 36450,34823,1092877,Yearling Good Answer,NULL,NULL,0,NULL,NULL 36451,654765,961185,NULL,NULL,NULL,0,NULL,NULL 36452,206441,455197,Yearling Good Answer,NULL,NULL,0,NULL,NULL 36453,478084,508888,NULL,NULL,NULL,0,NULL,NULL 36454,24340,136375,NULL,NULL,NULL,0,NULL,NULL 36455,63900,121317,Supporter,NULL,NULL,0,NULL,NULL 36456,254186,708846,NULL,NULL,NULL,0,NULL,NULL 36457,101581,970014,NULL,NULL,NULL,0,NULL,NULL 36458,2380,705280,NULL,NULL,NULL,0,NULL,NULL 36459,190758,493155,Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 36460,93977,650734,Famous Question Yearling Popular Question Nice Question Popular Question Famous Question Notable Question Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 36461,328483,529566,NULL,NULL,NULL,0,NULL,NULL 36462,136419,563562,Yearling Caucus,NULL,NULL,0,NULL,NULL 36463,321559,833300,Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Inquisitive Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Nice Question Nice Question Popular Question Yearling Nice Question Popular Question Good Question Notable Question Yearling,NULL,dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object ve modified the question to offer more detailed example dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object know them all at compile time But there are 30 or so of them so table is easier to grok than morass of if then dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object Maybe but what would the map statement look like can use auto as map template argument and just because the lambdas all look the same use auto doesn they have the same type dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object ve clarified the question and added non example If the help you ve kindly offered isn helping me it surely been my fault by inadequately posing the question,1,dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object,NULL 36464,6220779,833300,Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Inquisitive Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Nice Question Nice Question Popular Question Yearling Nice Question Popular Question Good Question Notable Question Yearling,NULL,dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object ve modified the question to offer more detailed example dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object know them all at compile time But there are 30 or so of them so table is easier to grok than morass of if then dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object Maybe but what would the map statement look like can use auto as map template argument and just because the lambdas all look the same use auto doesn they have the same type dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object ve clarified the question and added non example If the help you ve kindly offered isn helping me it surely been my fault by inadequately posing the question,1,dispatch table with templated functions pI have dispatch table in some code It maps tags to functions that can process those tags In the first version it takes functions that accept two strings and return string The strings are serialised protobufs ppre codemap lt string function lt string const string amp serialised const string amp serialised gt gt converters dog ProcessTwoDogs cat ProcessTwoCats code prepHere the converter functions look like this ppre codestring ProcessTwoDogs const string amp dog str const string amp dog str code prepAfter implementing quite number of these converters realised they were often over half boilerplate error checking deserialisation serialisation etc So wrote quick template that vastly simplifies my code ppre codetemplate lt typename ProtoT gt std string ConvertProtos const std string amp proto str const std string amp proto str std function lt ProtoT const ProtoT amp const ProtoT amp gt convert proto ProtoT proto ProtoT probo and various error checks ProtoT proto out convert proto proto proto some more checks and serialise to proto out str return proto out str code prepAnd now codeconvert proto code can look like this ppre codeDog ProcessTwoDogs const Dog amp dog const Dog amp dog code prepThis is very nice but now ve broken the dispatch table because each animal processor has different signature since codeDog code and codeCat code are both protobufs but otherwise are unrelated don know how to make dispatch table without resorting to long bit of codeif else if code ppWhat want is map like this ppre code Doesn compile map lt string template lt typename ProtoT gt function lt ProtoT const ProtoT amp const ProtoT amp gt gt code prepThen my function that uses the dispatch table which currently says something like ppre codeauto processor the map at tag string new string processor string string code prepbecomes ppre codeauto processor the map at tag string new string ConvertProtobufs string string processor code prepOf course one way would be to define an abstract base class with codeoperator code that takes strings and then implement an instance of that class for each of my conversion function The codeoperator code calls some function that is only defined in the derived classes But now ve lost any gain in readability or conciseness might have found ppAny suggestions ph2Update h2pFollowing line of reasoning proposed by wrote this ppre code include lt functional gt include lt iostream gt include lt map gt include lt string gt using std cout using std function using std endl using std map using std string struct Dog void operator cout lt lt am dog lt lt endl struct Cat void operator cout lt lt am cat lt lt endl string cat string cat string dog string dog template lt string amp gt void fn cout lt lt am lost lt lt endl template lt gt void fn lt dog gt Dog dog dog template lt gt void fn lt cat gt Cat cat cat int main int argc char argv void argc void argv fn lt dog gt fn lt cat gt Oops it all falls apart here string dog1 dog fn lt dog1 gt Doesn compile and dog is not dog1 code prepThe problem in the above is that the template arguments must of course be known at compile time That fine when using const string from an ontology of strings but fails if the strings pass through database and so the lookup is dynamic based on value rather than object,NULL 36465,32756,744435,NULL,NULL,NULL,0,NULL,NULL 36466,97225,209233,NULL,NULL,NULL,0,NULL,NULL 36467,59626,96232,Custodian Yearling Nice Answer Announcer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 36468,1504554,991277,Famous Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 36469,193916,159372,Nice Answer Enlightened Yearling Peer Pressure Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Yearling Notable Question Custodian Famous Question Yearling,NULL,NULL,0,NULL,NULL 36470,129825,700536,Necromancer,NULL,NULL,0,NULL,NULL 36471,328757,20825,NULL,NULL,NULL,0,NULL,NULL 36472,448561,457434,NULL,NULL,NULL,0,NULL,NULL 36473,9793,410822,NULL,NULL,NULL,0,NULL,NULL 36474,209917,671923,NULL,NULL,NULL,0,NULL,NULL 36475,217743,145865,Commentator,NULL,NULL,0,NULL,NULL 36476,15285,466832,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36477,435688,321815,Famous Question Great Question Notable Question Popular Question Yearling Notable Question Custodian Custodian Custodian Favorite Question Yearling Necromancer Notable Question Nice Answer Enlightened Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36478,162693,282159,NULL,NULL,NULL,0,NULL,NULL 36479,162578,321872,Yearling Revival Nice Answer Yearling Custodian Custodian Explainer Good Answer Yearling,NULL,NULL,0,NULL,NULL 36480,556104,248240,Yearling,NULL,NULL,0,NULL,NULL 36481,18884,1253977,NULL,NULL,NULL,0,NULL,NULL 36482,516807,142263,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 36483,97026,369911,NULL,NULL,NULL,0,NULL,NULL 36484,199414,88806,Popular Question,NULL,NULL,0,NULL,NULL 36485,400513,415998,NULL,NULL,NULL,0,NULL,NULL 36486,490059,897578,Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 36487,164838,393445,NULL,NULL,NULL,0,NULL,NULL 36488,1794519,8143,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36489,239734,168218,Popular Question Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 36490,163848,772331,NULL,NULL,NULL,0,NULL,NULL 36491,378564,1188632,Yearling Nice Question Notable Question Nice Answer Custodian Famous Question Good Question Yearling Yearling Great Answer Necromancer Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36492,350516,464112,Organizer Revival,NULL,NULL,0,NULL,NULL 36493,24711,886017,NULL,NULL,NULL,0,NULL,NULL 36494,716220,862444,Revival Necromancer Yearling Necromancer Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 36495,339548,311572,Yearling Good Answer Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 36496,357191,94547,Yearling Citizen Patrol Suffrage Vox Populi Civic Duty Documentation User Caucus,NULL,NULL,0,NULL,NULL 36497,226705,764977,NULL,NULL,NULL,0,NULL,NULL 36498,195599,914411,Famous Question Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 36499,1296727,914411,Famous Question Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 36500,974187,418701,Investor Altruist Good Question Caucus Constituent Census Caucus,NULL,NULL,0,NULL,NULL 36501,974188,418701,Investor Altruist Good Question Caucus Constituent Census Caucus,NULL,NULL,0,NULL,NULL 36502,60820,666774,Nice Question Famous Question Popular Question Informed Autobiographer Notable Question Popular Question Notable Question,NULL,pThere is also href https github com janl mustache js blob master mustache js L60 the solution from mustache js ppre codevar entityMap amp amp amp lt amp lt gt amp gt amp quot amp 39 amp x2F amp x60 amp x3D function escapeHtml string return String string replace amp lt gt function return entityMap code pre found that matching on was causing issues for text that already had encoding such as eacute eacute range Clemente It would become amp eacute amp eacute range amp Clemente So changed the regex to this and added space in the character map amp That way it will convert the single but not the one that is used for encoding itself,0,NULL,NULL 36503,186139,1178898,Nice Answer Revival Critic,NULL,NULL,0,NULL,NULL 36504,10529,85402,Nice Answer,NULL,NULL,0,NULL,NULL 36505,210818,1048237,NULL,NULL,NULL,0,NULL,NULL 36506,248381,1234427,NULL,NULL,NULL,0,NULL,NULL 36507,180518,307894,NULL,NULL,NULL,0,NULL,NULL 36508,550254,857084,Yearling Good Answer,NULL,NULL,0,NULL,NULL 36509,85620,32198,Yearling Good Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36510,868745,1337648,NULL,NULL,NULL,0,NULL,NULL 36511,139118,1215403,Famous Question,NULL,NULL,0,NULL,NULL 36512,2383429,249543,Yearling Nice Question Good Answer Nice Answer Enlightened Nice Question Good Question Guru Popular Question Notable Question Nice Answer Custodian Pundit Nice Answer Nice Answer Great Answer Nice Answer Enlightened Famous Question Guru Popular Question Caucus Yearling Nice Answer Popular Question Popular Question Good Answer Nice Answer Notable Question Notable Question Nice Answer Enlightened Census Yearling Nice Answer Favorite Question Good Answer Good Answer,NULL,NULL,0,NULL,NULL 36513,157725,249543,Yearling Nice Question Good Answer Nice Answer Enlightened Nice Question Good Question Guru Popular Question Notable Question Nice Answer Custodian Pundit Nice Answer Nice Answer Great Answer Nice Answer Enlightened Famous Question Guru Popular Question Caucus Yearling Nice Answer Popular Question Popular Question Good Answer Nice Answer Notable Question Notable Question Nice Answer Enlightened Census Yearling Nice Answer Favorite Question Good Answer Good Answer,NULL,NULL,0,NULL,NULL 36514,897757,301916,NULL,NULL,NULL,0,NULL,NULL 36515,22674,134930,Necromancer Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 36516,90980,323597,NULL,NULL,NULL,0,NULL,NULL 36517,244007,594367,NULL,NULL,NULL,0,NULL,NULL 36518,174536,1179410,Informed Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 36519,209636,743585,NULL,NULL,NULL,0,NULL,NULL 36520,1112730,1051125,NULL,NULL,NULL,0,NULL,NULL 36521,1017411,1051125,NULL,NULL,NULL,0,NULL,NULL 36522,101569,569124,Famous Question Notable Question Nice Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 36523,75449,95683,Popular Question Custodian Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 36524,567830,161333,Nice Question,NULL,NULL,0,NULL,NULL 36525,6740135,302718,Popular Question,NULL,NULL,0,NULL,NULL 36526,94787,116747,Yearling Notable Question Caucus Popular Question Notable Question Yearling Popular Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 36527,397839,484488,Notable Question Great Answer Notable Question Notable Question Nice Question Nice Question Nice Question Yearling Popular Question Cleanup Famous Question Popular Question Popular Question Good Answer Popular Question Notable Question Popular Question Caucus Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Announcer Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Famous Question Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36528,157923,227406,Enthusiast Announcer,NULL,NULL,0,NULL,NULL 36529,728757,195059,NULL,NULL,NULL,0,NULL,NULL 36530,121479,103946,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36531,2757,131152,Yearling Notable Question Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 36532,186952,165384,Nice Answer Yearling Custodian Nice Answer Good Answer Critic,NULL,NULL,0,NULL,NULL 36533,180250,1292436,NULL,NULL,NULL,0,NULL,NULL 36534,765405,268153,Famous Question Good Answer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 36535,565054,379244,NULL,NULL,NULL,0,NULL,NULL 36536,232487,724705,Scholar Informed Notable Question,NULL,NULL,0,NULL,NULL 36537,32696,877953,Yearling Civic Duty Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 36538,117393,1165588,NULL,NULL,NULL,0,NULL,NULL 36539,33822,837018,NULL,NULL,NULL,0,NULL,NULL 36540,1497912,1314040,NULL,NULL,NULL,0,NULL,NULL 36541,98916,640734,NULL,NULL,NULL,0,NULL,NULL 36542,6223085,640734,NULL,NULL,NULL,0,NULL,NULL 36543,9452,890576,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36544,575500,890576,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36545,2359,664298,NULL,NULL,NULL,0,NULL,NULL 36546,134623,1443044,NULL,NULL,NULL,0,NULL,NULL 36547,41544,343659,NULL,NULL,NULL,0,NULL,NULL 36548,93566,862504,NULL,NULL,NULL,0,NULL,NULL 36549,428944,814713,Popular Question Commentator Custodian Custodian Organizer Excavator Citizen Patrol Curious Yearling Explainer Notable Question Self-Learner,NULL,pIn strongRails strong you can also set href http edgeguides rubyonrails org active record migrations html foreign keys rel noreferrer foreign keys in the db as well href http edgeguides rubyonrails org active record migrations html active record and referential integrity rel noreferrer which is great idea ppFor simple associations this can be done also on codet references code adding codeforeign key true code but in this case you ll need two lines ppre code The migrationadd reference posts author index trueadd foreign key posts users column author id The modelbelongs to author class name User code pre Is there syntax for the has many that goes along with this,0,NULL,NULL 36550,220331,760051,NULL,NULL,NULL,0,NULL,NULL 36551,63086,61344,Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Nice Question Caucus Yearling Popular Question Good Question Famous Question Famous Question Popular Question Popular Question Yearling Custodian Nice Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 36552,727409,400760,Scholar Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 36553,1507004,731085,Notable Question Yearling Good Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Notable Question Nice Question Good Question Famous Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36554,586093,793636,NULL,NULL,NULL,0,NULL,NULL 36555,8362,1380873,NULL,NULL,NULL,0,NULL,NULL 36556,1521067,604132,Notable Question Popular Question Good Question Yearling Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36557,895303,297902,NULL,NULL,NULL,0,NULL,NULL 36558,169733,460664,NULL,NULL,NULL,0,NULL,NULL 36559,1948,802247,NULL,NULL,NULL,0,NULL,NULL 36560,352571,976876,NULL,NULL,NULL,0,NULL,NULL 36561,36006,29156,Popular Question Good Answer Good Answer Notable Question Famous Question Yearling Favorite Question Great Question asp.net Yearling Yearling c#,NULL,NULL,0,NULL,NULL 36562,185200,427811,NULL,NULL,NULL,0,NULL,NULL 36563,258308,241585,NULL,NULL,NULL,0,NULL,NULL 36564,201990,303851,NULL,NULL,NULL,0,NULL,NULL 36565,155708,1520042,NULL,NULL,NULL,0,NULL,NULL 36566,513854,1502495,NULL,NULL,NULL,0,NULL,NULL 36567,469408,1233127,Popular Question,NULL,NULL,0,NULL,NULL 36568,20156,121379,Popular Question Nice Answer Enlightened Revival Yearling Necromancer Census,NULL,NULL,0,NULL,NULL 36569,1133514,229120,NULL,NULL,NULL,0,NULL,NULL 36570,6949,487715,Notable Question,NULL,NULL,0,NULL,NULL 36571,90134,1469525,Commentator Announcer Announcer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 36572,422486,1451649,Teacher Supporter Necromancer Tumbleweed Necromancer Yearling Commentator Nice Answer Nice Answer Necromancer Yearling Editor Scholar Caucus Student Excavator Yearling,NULL,NULL,0,NULL,NULL 36573,635135,1486116,Notable Question,NULL,NULL,0,NULL,NULL 36574,159223,176198,NULL,NULL,NULL,0,NULL,NULL 36575,246113,791890,NULL,NULL,NULL,0,NULL,NULL 36576,11539,338696,NULL,NULL,NULL,0,NULL,NULL 36577,70399,535288,NULL,NULL,NULL,0,NULL,NULL 36578,577705,945878,NULL,NULL,NULL,0,NULL,NULL 36579,4983905,23513,Civic Duty,NULL,NULL,0,NULL,NULL 36580,363527,23513,Civic Duty,NULL,NULL,0,NULL,NULL 36581,13689,66601,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36582,1512924,210910,NULL,NULL,NULL,0,NULL,NULL 36583,60812,81117,Notable Question Famous Question Nice Question Yearling Nice Answer Yearling Notable Question Popular Question Notable Question Yearling Announcer Booster Popular Question,NULL,NULL,0,NULL,NULL 36584,101333,1515787,NULL,NULL,NULL,0,NULL,NULL 36585,94437,1204766,Necromancer Custodian Self-Learner Popular Question Yearling Popular Question Nice Answer Popular Question Yearling Nice Answer Yearling Notable Question Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 36586,5525,51022,Yearling Good Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 36587,259129,826331,Nice Answer Yearling Notable Question Popular Question Necromancer Necromancer Notable Question Yearling Good Answer Disciplined Yearling,NULL,NULL,0,NULL,NULL 36588,83034,984335,Notable Question Nice Question Notable Question Notable Question Notable Question Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Great Question Famous Question Notable Question Famous Question Nice Question Good Question Nice Question Revival Yearling Notable Question Popular Question Announcer Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 36589,25703,747326,NULL,NULL,NULL,0,NULL,NULL 36590,71955,616499,Supporter,NULL,NULL,0,NULL,NULL 36591,132539,542881,Nice Answer,NULL,NULL,0,NULL,NULL 36592,489244,785462,NULL,NULL,NULL,0,NULL,NULL 36593,1038841,1214290,NULL,NULL,NULL,0,NULL,NULL 36594,317948,173979,Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 36595,2506707,1443631,NULL,NULL,NULL,0,NULL,NULL 36596,1292603,1052267,Commentator Yearling Critic,NULL,NULL,0,NULL,NULL 36597,167287,428786,Good Answer,NULL,NULL,0,NULL,NULL 36598,21877,1166456,NULL,NULL,NULL,0,NULL,NULL 36599,216562,1073451,NULL,NULL,NULL,0,NULL,NULL 36600,41512,458944,NULL,NULL,NULL,0,NULL,NULL 36601,10502095,458944,NULL,NULL,NULL,0,NULL,NULL 36602,5621678,72787,Scholar Guru Custodian Yearling Necromancer Necromancer Good Answer Necromancer Nice Answer Nice Answer Yearling Necromancer Necromancer Revival Popular Question Good Answer Announcer Necromancer Great Answer Necromancer Yearling Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 36603,129759,72787,Scholar Guru Custodian Yearling Necromancer Necromancer Good Answer Necromancer Nice Answer Nice Answer Yearling Necromancer Necromancer Revival Popular Question Good Answer Announcer Necromancer Great Answer Necromancer Yearling Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 36604,37082,146607,Yearling Good Question,NULL,NULL,0,NULL,NULL 36605,107994,95402,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36606,378260,288397,Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 36607,314849,245825,NULL,NULL,NULL,0,NULL,NULL 36608,717904,911217,NULL,NULL,NULL,0,NULL,NULL 36609,7001,727225,NULL,NULL,NULL,0,NULL,NULL 36610,341347,770911,Notable Question,NULL,NULL,0,NULL,NULL 36611,897,291383,Yearling Revival Yearling Caucus Student Necromancer Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 36612,460735,1023614,NULL,NULL,NULL,0,NULL,NULL 36613,484100,791513,NULL,NULL,NULL,0,NULL,NULL 36614,861542,790828,NULL,NULL,NULL,0,NULL,NULL 36615,679973,1248364,Notable Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 36616,370041,974256,NULL,NULL,NULL,0,NULL,NULL 36617,1115007,1406717,Supporter,NULL,NULL,0,NULL,NULL 36618,528839,522868,NULL,NULL,NULL,0,NULL,NULL 36619,130462,369923,Revival,NULL,NULL,0,NULL,NULL 36620,473310,979721,NULL,NULL,NULL,0,NULL,NULL 36621,593289,1377413,NULL,NULL,NULL,0,NULL,NULL 36622,189277,666443,NULL,NULL,NULL,0,NULL,NULL 36623,352619,666443,NULL,NULL,NULL,0,NULL,NULL 36624,207323,506139,NULL,NULL,NULL,0,NULL,NULL 36625,71885,165081,NULL,NULL,NULL,0,NULL,NULL 36626,713077,1084588,Editor Supporter Commentator Critic,NULL,NULL,0,NULL,NULL 36627,218433,1224855,NULL,NULL,NULL,0,NULL,NULL 36628,1200740,510872,Nice Answer Yearling Good Answer Populist Great Answer Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 36629,3761031,237814,Curious Popular Question Revival Yearling Revival Informed Yearling Citizen Patrol Popular Question Necromancer Necromancer Yearling Nice Answer Documentation User Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 36630,891333,492346,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36631,517855,690740,Nice Question,NULL,NULL,0,NULL,NULL 36632,1817410,795342,Popular Question,NULL,NULL,0,NULL,NULL 36633,365189,753035,Famous Question Census,NULL,NULL,0,NULL,NULL 36634,782890,22360,Yearling Nice Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 36635,393301,1188064,NULL,NULL,NULL,0,NULL,NULL 36636,1209367,297648,NULL,NULL,NULL,0,NULL,NULL 36637,662083,1212468,NULL,NULL,NULL,0,NULL,NULL 36638,28197,323479,NULL,NULL,NULL,0,NULL,NULL 36639,1517734,886795,Notable Question,NULL,NULL,0,NULL,NULL 36640,1344835,851444,NULL,NULL,NULL,0,NULL,NULL 36641,303628,118444,Notable Question,NULL,NULL,0,NULL,NULL 36642,133644,100952,Yearling Custodian Famous Question Yearling Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 36643,42208,1417423,NULL,NULL,NULL,0,NULL,NULL 36644,1930837,1050322,NULL,NULL,NULL,0,NULL,NULL 36645,392539,223055,Teacher Supporter Student Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 36646,194191,1183002,Teacher Census Revival Supporter,NULL,NULL,0,NULL,NULL 36647,54021,180788,Announcer,NULL,NULL,0,NULL,NULL 36648,23923,348530,Popular Question,NULL,NULL,0,NULL,NULL 36649,174502,652712,NULL,NULL,NULL,0,NULL,NULL 36650,84567,766313,NULL,NULL,NULL,0,NULL,NULL 36651,204791,763195,NULL,NULL,NULL,0,NULL,NULL 36652,30418,260805,Popular Question Necromancer Nice Answer Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Necromancer Popular Question Nice Answer Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Necromancer Popular Question Necromancer Popular Question Yearling Popular Question Notable Question Popular Question Nice Answer Announcer Announcer Famous Question Announcer Famous Question Revival Announcer Announcer Notable Question Notable Question Popular Question Announcer Popular Question Announcer Announcer Popular Question Good Answer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Announcer Nice Answer Good Question Booster Guru Good Question Famous Question Nice Question Nice Answer Announcer Explainer Good Question Nice Answer Necromancer Good Answer Popular Question Popular Question Notable Question Nice Question Nice Answer Notable Question Famous Question,NULL,Why doesn all Executors factory methods wrap in FinalizableDelegatedExecutorService java concurrency href https docs oracle com javase docs api java util concurrent Executors html newSingleThreadExecutor rel nofollow codeExecutors newSingleThreadExecutor code returns href https docs oracle com javase docs api java util concurrent ThreadPoolExecutor html rel nofollow codeThreadPoolExecutor code wrapped in codeFinalizableDelegatedExecutorService code not public codeFinalizableDelegatedExecutorService code makes sure that the thread pool is shut down when garbage collected ppWhy aren all codeExecutorService codes returned by codeExecutors code wrapped in something like codeFinalizableDelegatedExecutorService code Does codeThreadPoolExecutor code shut down properly without being wrapped in codeFinalizableDelegatedExecutorService code if garbage collected Hm interesting But will it ever be garbage collected since running thread might refer back to the executor See http stackoverflow com 10395700 260805 Why doesn all Executors factory methods wrap in FinalizableDelegatedExecutorService java concurrency href https docs oracle com javase docs api java util concurrent Executors html newSingleThreadExecutor rel nofollow codeExecutors newSingleThreadExecutor code returns href https docs oracle com javase docs api java util concurrent ThreadPoolExecutor html rel nofollow codeThreadPoolExecutor code wrapped in codeFinalizableDelegatedExecutorService code not public codeFinalizableDelegatedExecutorService code makes sure that the thread pool is shut down when garbage collected ppWhy aren all codeExecutorService codes returned by codeExecutors code wrapped in something like codeFinalizableDelegatedExecutorService code Does codeThreadPoolExecutor code shut down properly without being wrapped in codeFinalizableDelegatedExecutorService code if garbage collected Adam Great reference Thanks,1,Why doesn all Executors factory methods wrap in FinalizableDelegatedExecutorService java concurrency href https docs oracle com javase docs api java util concurrent Executors html newSingleThreadExecutor rel nofollow codeExecutors newSingleThreadExecutor code returns href https docs oracle com javase docs api java util concurrent ThreadPoolExecutor html rel nofollow codeThreadPoolExecutor code wrapped in codeFinalizableDelegatedExecutorService code not public codeFinalizableDelegatedExecutorService code makes sure that the thread pool is shut down when garbage collected ppWhy aren all codeExecutorService codes returned by codeExecutors code wrapped in something like codeFinalizableDelegatedExecutorService code Does codeThreadPoolExecutor code shut down properly without being wrapped in codeFinalizableDelegatedExecutorService code if garbage collected,NULL 36653,103808,66686,Nice Answer Notable Question Nice Answer Popular Question Popular Question Notable Question Popular Question Nice Answer Nice Question Popular Question Famous Question Nice Answer Popular Question Nice Answer Popular Question Nice Question Popular Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Nice Question Nice Question Documentation Beta Popular Question Popular Question Nice Answer Famous Question Notable Question Notable Question Notable Question Nice Answer Nice Answer Enlightened Notable Question Yearling Nice Answer Notable Question Notable Question Talkative Announcer Nice Question Notable Question Announcer Nice Answer Popular Question Popular Question Census Nice Answer Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Refiner Popular Question Necromancer Nice Question Nice Answer Nice Answer spring Notable Question Announcer Sportsmanship Guru Good Question Nice Question Good Answer Notable Question spring-data Notable Question Good Answer Nice Question Announcer Notable Question Announcer Nice Answer Documentation User Yearling Notable Question Announcer Nice Answer Nice Answer Popular Question Popular Question Popular Question Nice Question Announcer Nice Answer Notable Question Research Assistant spring-data-jpa Good Answer Announcer Revival Famous Question Announcer Announcer Nice Answer Enlightened Announcer Necromancer Famous Question Favorite Question Announcer Announcer Revival jpa Popular Question Good Question Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Popular Question Revival Popular Question Announcer Good Answer Announcer Revival Copy Editor Yearling,NULL,How to replace the AWT EventQueue with own implementation java swing eventqueue pIn order to debug strange behavior in Swing application like to replace the AWT EventQueue with my own implementation ppIs this possible How ppJust in case you are interested pulli pthe implementation will be simple wrapper around the normal Eventqueue doing some logging lili pthe problem like to debug is TableCellEditor which works fine in little demo app but when put in the real application stopCellEditing gets called immediately due to some event like to get access to the event in order to find out where it is comming from li ul barber How is this question too broad It has two very nice concise answers for the different java versions Which entities do need to create Spring Data repositories for spring jpa spring data spring data jpa pIn getting started examples of Spring Data JPA we create an interface which extends CrudRepository However it handles only one Entity ppre codeimport org springframework data repository CrudRepository interface MyEntityRepository extends CrudRepository lt MyEntity Long gt methods code prepIn real world application there are many Entities tables and we need to do CRUD operations for them What is the correct way to use Spring Data JPA repositories with multiple related or unrelated Entities ppDo have to create interfaces for each Entities and Autowire them one by one Which sounds very crazy idea for now Possible duplicate of Are you supposed to have one repository per table in JPA https stackoverflow com questions 21265262 are you supposed to have one repository per table in jpa,0,NULL,NULL 36654,192251,1487256,Yearling Critic,NULL,NULL,0,NULL,NULL 36655,29833,764069,Nice Answer,NULL,NULL,0,NULL,NULL 36656,1533845,936141,NULL,NULL,NULL,0,NULL,NULL 36657,1756051,936141,NULL,NULL,NULL,0,NULL,NULL 36658,454866,214222,Good Answer Caucus Constituent Yearling Good Answer Announcer Caucus Yearling Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36659,288785,60848,Yearling,NULL,NULL,0,NULL,NULL 36660,77283,227245,NULL,NULL,NULL,0,NULL,NULL 36661,776933,1388120,NULL,NULL,NULL,0,NULL,NULL 36662,102630,266894,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 36663,1087357,419440,Yearling Critic Nice Answer,NULL,NULL,0,NULL,NULL 36664,253612,355486,Guru Yearling,NULL,NULL,0,NULL,NULL 36665,6263617,517266,NULL,NULL,NULL,0,NULL,NULL 36666,1814186,517266,NULL,NULL,NULL,0,NULL,NULL 36667,8409193,517266,NULL,NULL,NULL,0,NULL,NULL 36668,4393,23567,Nice Answer Enlightened Nice Answer Enlightened Popular Question Necromancer Announcer Nice Answer Yearling Notable Question racket Caucus Constituent Popular Question Good Question Nice Answer Enlightened Nice Answer Nice Answer Strunk & White scheme Announcer Popular Question Caucus Nice Answer Yearling Documentation User Nice Question Announcer Popular Question Nice Answer macros Altruist Caucus Constituent Necromancer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 36669,432168,442491,Famous Question Good Answer Yearling Caucus Custodian Citizen Patrol Custodian Informed,NULL,NULL,0,NULL,NULL 36670,2271225,442491,Famous Question Good Answer Yearling Caucus Custodian Citizen Patrol Custodian Informed,NULL,NULL,0,NULL,NULL 36671,21568,483500,NULL,NULL,NULL,0,NULL,NULL 36672,191837,575921,NULL,NULL,NULL,0,NULL,NULL 36673,1105284,146205,Popular Question Custodian Notable Question Nice Question Nice Answer Yearling Famous Question Nice Answer Enlightened Nice Question Popular Question Yearling Famous Question Yearling Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36674,5915625,793289,Nice Answer Good Answer Yearling Nice Answer Enlightened c# Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 36675,23002,671739,Nice Answer,NULL,NULL,0,NULL,NULL 36676,6700830,605208,NULL,NULL,NULL,0,NULL,NULL 36677,263872,605208,NULL,NULL,NULL,0,NULL,NULL 36678,546720,571271,Yearling Good Answer spring Revival java Caucus Constituent Nice Answer Enlightened Nice Answer Yearling Popular Question Good Answer Nice Answer Caucus Constituent Guru Nice Answer Yearling Caucus Constituent Great Answer,NULL,NULL,0,NULL,NULL 36679,123107,337587,Notable Question Yearling Commentator,NULL,NULL,0,NULL,NULL 36680,524415,1012829,NULL,NULL,NULL,0,NULL,NULL 36681,1203790,1008805,NULL,NULL,NULL,0,NULL,NULL 36682,697703,1024342,Popular Question Notable Question Yearling Popular Question Notable Question Critic Popular Question Popular Question Popular Question Teacher Nice Question,NULL,pre codepublic static byte serialize Object obj throws IOException ByteArrayOutputStream out new ByteArrayOutputStream ObjectOutputStream os new ObjectOutputStream out os writeObject obj return out toByteArray public static Object deserialize byte data throws IOException ClassNotFoundException ByteArrayInputStream in new ByteArrayInputStream data ObjectInputStream is new ObjectInputStream in return is readObject code pre are there any memory limitations using this method,0,NULL,NULL 36683,374527,786577,Good Answer,NULL,NULL,0,NULL,NULL 36684,47835,879698,NULL,NULL,NULL,0,NULL,NULL 36685,75979,311998,Notable Question Critic Notable Question Citizen Patrol Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36686,45593,911868,Revival,NULL,NULL,0,NULL,NULL 36687,1354852,464868,NULL,NULL,NULL,0,NULL,NULL 36688,1060377,719855,NULL,NULL,NULL,0,NULL,NULL 36689,912765,150768,Announcer Announcer,NULL,NULL,0,NULL,NULL 36690,89088,53183,Yearling Great Question Guru Yearling Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 36691,1085086,222233,Custodian Nice Answer Notable Question Yearling Nice Answer Enlightened Yearling Popular Question Yearling,NULL,pThis should be what you need codea code and codeb code are the vectors for which you want to calculate an angle coden code would be the normal of your plane to determine what you would call clockwise counterclockwise ppre codefloat SignedAngleBetween Vector3 Vector3 Vector3 angle in 180 float angle Vector3 Angle float sign Mathf Sign Vector3 Dot Vector3 Cross angle in 179 180 float signed angle angle sign angle in 360 not used but included here for completeness float angle360 signed angle 180 360 return signed angle code prepFor simplicity reuse codeVector3 Angle code and then calculate the sign from the magnitude of the angle between plane normal coden code and the cross product perpendicular vector of codea code and codeb code vectors and define plane but there is an implied 3rd vector the cross product of the first that defines the plane normal Any angle between and rotates around that 3rd axis So the problem is which way do we rotate The angle between vectors is always positive angle Vector3 Angle Vector3 Angle To find the direction of rotation we use the line you identified which essentially just compares the user defined axis of rotation against the implicit axis If match sign is positive if not sign is negative,0,NULL,NULL 36692,116542,1335553,NULL,NULL,NULL,0,NULL,NULL 36693,1171795,1130757,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36694,177467,998886,NULL,NULL,NULL,0,NULL,NULL 36695,66248,1178974,Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Yearling Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling php,NULL,NULL,0,NULL,NULL 36696,215951,1178974,Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Yearling Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling php,NULL,NULL,0,NULL,NULL 36697,61081,1329139,NULL,NULL,NULL,0,NULL,NULL 36698,90350,242853,Favorite Question Notable Question Nice Answer Yearling Nice Answer Enlightened Yearling Good Answer Custodian Custodian Nice Question Yearling,NULL,NULL,0,NULL,NULL 36699,411215,710303,Yearling Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 36700,84065,842718,NULL,NULL,NULL,0,NULL,NULL 36701,164522,11780,Notable Question Famous Question Famous Question Nice Question Notable Question Yearling Notable Question Popular Question Good Answer Good Answer Good Answer Notable Question Popular Question Revival Good Answer Famous Question Yearling Announcer Custodian Excavator Good Answer Yearling database,NULL,NULL,0,NULL,NULL 36702,386631,584808,NULL,NULL,NULL,0,NULL,NULL 36703,169766,428366,Yearling Custodian Custodian Documentation User Necromancer Informed Civic Duty Caucus,NULL,NULL,0,NULL,NULL 36704,424380,772487,Great Answer Yearling Nice Answer Popular Question Nice Question Nice Question Self-Learner Yearling Famous Question Revival Notable Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 36705,1385764,966908,NULL,NULL,NULL,0,NULL,NULL 36706,4444980,966908,NULL,NULL,NULL,0,NULL,NULL 36707,103261,47001,Good Answer Yearling Good Answer Custodian Nice Answer Nice Answer Yearling Good Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 36708,7872512,1205584,NULL,NULL,NULL,0,NULL,NULL 36709,196580,519988,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36710,234694,1182487,Critic Commentator Necromancer Custodian Tumbleweed Yearling Announcer Autobiographer Caucus Excavator,NULL,NULL,0,NULL,NULL 36711,24321,1475599,NULL,NULL,NULL,0,NULL,NULL 36712,248695,1532199,NULL,NULL,NULL,0,NULL,NULL 36713,134890,253330,NULL,NULL,NULL,0,NULL,NULL 36714,10006246,382002,NULL,NULL,NULL,0,NULL,NULL 36715,1308613,382002,NULL,NULL,NULL,0,NULL,NULL 36716,100868,186023,Nice Question,NULL,NULL,0,NULL,NULL 36717,212754,1330046,Scholar Student Supporter,NULL,NULL,0,NULL,NULL 36718,4418525,1211015,NULL,NULL,NULL,0,NULL,NULL 36719,886253,1084136,NULL,NULL,NULL,0,NULL,NULL 36720,38509,523943,Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 36721,375278,815761,NULL,NULL,NULL,0,NULL,NULL 36722,146649,1026014,NULL,NULL,NULL,0,NULL,NULL 36723,63181,569101,Yearling symfony-1.4 Nice Answer Enlightened Necromancer Custodian Good Answer Caucus Constituent Yearling Census Good Answer Good Answer Great Answer Caucus Good Answer Constituent Announcer Announcer Announcer Documentation User php Announcer Announcer Yearling Nice Answer Enlightened Good Answer Caucus Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer symfony1 Guru Announcer Announcer,NULL,NULL,0,NULL,NULL 36724,904159,740583,NULL,NULL,NULL,0,NULL,NULL 36725,395037,1368144,NULL,NULL,NULL,0,NULL,NULL 36726,280171,468141,NULL,NULL,NULL,0,NULL,NULL 36727,250845,686724,Nice Question Nice Answer Popular Question Yearling Notable Question Nice Answer Good Answer Yearling Revival Nice Answer Yearling Notable Question Popular Question Nice Question Yearling Good Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 36728,568667,856942,Nice Answer android Yearling Enlightened Popular Question Custodian Good Answer Informed Nice Answer Yearling Good Answer Nice Answer Enlightened Guru Good Answer Tumbleweed Popular Question Yearling,NULL,NULL,0,NULL,NULL 36729,31337,866067,Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 36730,336440,686716,NULL,NULL,NULL,0,NULL,NULL 36731,1504724,1530346,NULL,NULL,NULL,0,NULL,NULL 36732,280742,1408843,Famous Question Caucus,NULL,NULL,0,NULL,NULL 36733,163627,1037669,NULL,NULL,NULL,0,NULL,NULL 36734,47295,1449272,NULL,NULL,NULL,0,NULL,NULL 36735,263281,1476750,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 36736,434163,995413,NULL,NULL,NULL,0,NULL,NULL 36737,388958,508287,Curious Yearling Popular Question Nice Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36738,294271,1171217,Teacher Supporter Critic Yearling,NULL,NULL,0,NULL,NULL 36739,69560,848825,NULL,NULL,NULL,0,NULL,NULL 36740,54706,1239301,NULL,NULL,NULL,0,NULL,NULL 36741,138994,355570,NULL,NULL,NULL,0,NULL,NULL 36742,47023,189803,Good Question Famous Question Notable Question Yearling Good Answer Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 36743,65006,1449851,Yearling,NULL,NULL,0,NULL,NULL 36744,1204430,134786,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36745,326344,134786,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36746,72543,76835,Nice Question Yearling Notable Question Good Answer Notable Question Good Answer Guru Notable Question Famous Question Famous Question Great Question Great Answer Yearling Announcer Revival Popular Question Popular Question Custodian Custodian Famous Question Good Question Yearling Guru Famous Question,NULL,pIf you re just passing objects around then href http developer android com reference android os Parcelable html rel noreferrer Parcelable was designed for this It requires little more effort to use than using Java native serialization but it way faster and mean way strong emWAY em strong faster ppFrom the docs simple example for how to implement is ppre code simple class that just has one member property as an examplepublic class MyParcelable implements Parcelable private int mData everything below here is for implementing Parcelable 99 of the time you can just ignore this public int describeContents return write your object data to the passed in Parcel public void writeToParcel Parcel out int flags out writeInt mData this is used to regenerate your object All Parcelables must have CREATOR that implements these two methods public static final Parcelable Creator lt MyParcelable gt CREATOR new Parcelable Creator lt MyParcelable gt public MyParcelable createFromParcel Parcel in return new MyParcelable in public MyParcelable newArray int size return new MyParcelable size example constructor that takes Parcel and gives you an object populated with it values private MyParcelable Parcel in mData in readInt code prepObserve that in the case you have more than one field to retrieve from given Parcel you must do this in the same order you put them in that is in FIFO approach ppOnce you have your objects implement codeParcelable code it just matter of putting them into your href http developer android com reference android content Intent html rel noreferrer Intents with href http developer android com reference android content Intent html putExtra 28java lang String 20android os Parcelable 29 rel noreferrer putExtra ppre codeIntent new Intent putExtra name of extra myParcelableObject code prepThen you can pull them back out with href http developer android com reference android content Intent html getParcelableExtra 28java lang String 29 rel noreferrer getParcelableExtra ppre codeIntent getIntent MyParcelable myParcelableObject MyParcelable getParcelableExtra name of extra code prepIf your Object Class implements Parcelable and Serializable then make sure you do cast to one of the following ppre codei putExtra parcelable extra Parcelable myParcelableObject putExtra serializable extra Serializable myParcelableObject code pre You can put other Parcelables into Parcelable or anything that supports Java native serialization pThe best and easiest way is to use an codeIntent code ppre codeIntent new Intent Intent ACTION SEND setType message rfc822 putExtra Intent EXTRA EMAIL new String recipient com putExtra Intent EXTRA SUBJECT subject of email putExtra Intent EXTRA TEXT body of email try startActivity Intent createChooser Send mail catch android content ActivityNotFoundException ex Toast makeText MyActivity this There are no email clients installed Toast LENGTH SHORT show code prepOtherwise you ll have to write your own client You can,0,NULL,NULL 36747,162780,341553,NULL,NULL,NULL,0,NULL,NULL 36748,85271,941714,NULL,NULL,NULL,0,NULL,NULL 36749,182739,561377,Good Question Critic Supporter Teacher Yearling,NULL,NULL,0,NULL,NULL 36750,408881,72765,Supporter Critic Informed,NULL,NULL,0,NULL,NULL 36751,125223,468641,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36752,23221,213231,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36753,417852,629101,NULL,NULL,NULL,0,NULL,NULL 36754,277543,634428,Necromancer,NULL,NULL,0,NULL,NULL 36755,51672,354313,NULL,NULL,NULL,0,NULL,NULL 36756,409652,813,Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Great Answer Notable Question Nice Answer Nice Question Guru Good Question Notable Question Good Answer Great Answer Nice Answer Good Answer Yearling Great Answer Good Answer Guru Nice Answer Enlightened Famous Question Famous Question Nice Answer Enlightened Famous Question Nice Answer Good Answer Good Answer Famous Question Nice Answer Nice Answer Enlightened Famous Question Great Answer Nice Answer Nice Answer Good Answer Guru Good Answer Yearling Guru Great Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Favorite Question Good Answer Nice Question Good Question Nice Answer Enlightened Good Answer Yearling Good Answer Guru Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36757,255266,943458,Tumbleweed,NULL,NULL,0,NULL,NULL 36758,488223,332749,Popular Question Scholar Student Tumbleweed Promoter Popular Question,NULL,NULL,0,NULL,NULL 36759,60880,482353,NULL,NULL,NULL,0,NULL,NULL 36760,171962,231982,Taxonomist Nice Answer Nice Question Necromancer Famous Question Necromancer Popular Question Yearling Famous Question Famous Question Popular Question Good Question Famous Question Necromancer Popular Question Yearling Nice Answer Notable Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36761,534967,1173021,NULL,NULL,NULL,0,NULL,NULL 36762,429712,670131,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36763,23871,1261224,NULL,NULL,NULL,0,NULL,NULL 36764,372828,201911,Good Answer Nice Answer Necromancer Necromancer Necromancer Curious Yearling Caucus Nice Answer Enlightened ruby-on-rails Necromancer Caucus Popular Question Yearling Census Custodian Nice Answer Announcer Yearling,NULL,href http api rubyonrails org classes ActiveSupport Cache MemoryStore html rel noreferrer ActiveSupport Cache MemoryStore doesn provide way to access the store keys directly and neither does its parent class href http api rubyonrails org classes ActiveSupport Cache Store html rel noreferrer ActiveSupport Cache Store ppInternally MemoryStore keeps everything in Hash called code code however so you could monkey patch or subclass it to get the keys ppre codeclass InspectableMemoryStore lt ActiveSupport Cache MemoryStore def keys keys endendActionController Base cache store InspectableMemoryStore newRails cache keys gt foo code prepThis comes with the usual caveat however MemoryStore internal implementation may change at any time and code code may disappear or be changed to something that doesn coderespond to keys code smarter implementation might be to override the codewrite code and codedelete code methods since as part of the public API they re unlikely to change unexpectedly to keep your own list of keys ppre codeclass InspectableMemoryStore lt ActiveSupport Cache MemoryStore def write args super args true end def delete args super delete args end def keys keys endend code prepThis is very naive implementation and of course keeping the keys in an additional structure takes up some memory but you get the gist In your environment files config environment development rb If it inside the Rails application configure do end block then it would just be config cache store InspectableMemoryStore new strongTL DR strong Google Container Engine running Kubernetes strongv1 strong supports codeloadBalancerIP code just mark the auto assigned IP as strongstatic strong first ppKubernetes v1 supports href https kubernetes io docs api reference v1 servicespec v1 core rel noreferrer externalIPs ppre codeapiVersion v1kind Servicespec type LoadBalancer loadBalancerIP 10 10 10 10 code prepSo far there isn really good consistent documentation on how to use it on GCE What is sure is that this IP must first be one of your pre allocated strongstatic strong IPs ppThe href https cloud google com compute docs load balancing http cross region example rel noreferrer cross region load balancing documentation is mostly for Compute Engine and not Kubernetes Container Engine but it still useful especially the part Configure the load balancing service ppIf you just create Kubernetes LoadBalancer on GCE it will create network Compute Engine Network Network load balancing Forwarding Rule pointing to target pool made of your machines on your cluster normally only those running the Pods matching the service selector It looks like deleting namespace doesn nicely clean up the those created rules phrh2Update h2pIt is actually now supported even though under documented polliCheck that you re running Kubernetes or later under href https console cloud google com project kubernetes list rel noreferrer GKE edit your cluster and check Node version liliAllocate static IPs under href https console cloud google com project networking addresses list rel noreferrer Networking External IP addresses either ulliDeploy once without codeloadBalancerIP code wait until you ve an external IP allocated when you run codekubectl get svc code and look up that IP in the list on that page and change those from emEphemeral em to emStatic em liliClick Reserver static address regional in the region of your cluster attached to None li ul liliEdit your emLoadBalancer em to have codeloadBalancerIP 10 10 10 10 code as above adapt to the IP that was given to you by Google li olpNow if you delete your LoadBalancer or even your namespace it ll preserve that IP address upon re reploying on that cluster phrh2Update 2016 11 14 h2pSee also href https beroux com english articles kubernetes part rel noreferrer Kubernetes article describing how to set up static IP for single or multiple domains on Kubernetes This was helpful The k8s documentation is confusing as it implies that the loadBalancerIP is the not the ingress address of the load balancer but it appears that it is,0,NULL,NULL 36765,624587,1452425,NULL,NULL,NULL,0,NULL,NULL 36766,516328,132377,Revival Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 36767,148772,11807,Nice Answer Yearling Revival Caucus Guru Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 36768,193967,1090307,NULL,NULL,NULL,0,NULL,NULL 36769,505881,501600,Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36770,188135,756373,Notable Question Self-Learner Editor Revival,NULL,NULL,0,NULL,NULL 36771,99407,724063,Informed Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 36772,1531546,1070571,NULL,NULL,NULL,0,NULL,NULL 36773,97604,918605,Revival,NULL,NULL,0,NULL,NULL 36774,46727,626625,NULL,NULL,NULL,0,NULL,NULL 36775,113712,493474,Popular Question,NULL,NULL,0,NULL,NULL 36776,212828,686596,Notable Question,NULL,NULL,0,NULL,NULL 36777,207931,636642,Famous Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 36778,36293,690744,Editor,NULL,NULL,0,NULL,NULL 36779,456077,1279632,Popular Question Popular Question Popular Question Caucus Promoter Critic Notable Question Famous Question,NULL,NULL,0,NULL,NULL 36780,774834,496295,Necromancer Yearling Nice Answer Popular Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 36781,136879,973723,Notable Question,NULL,NULL,0,NULL,NULL 36782,26693,1114,Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Good Question Announcer Popular Question Good Answer Great Question Popular Question Good Answer Nice Question Announcer Nice Question Guru Good Question Good Answer Nice Answer Popular Question Enlightened Famous Question Famous Question Nice Question Nice Answer Enlightened Necromancer Nice Answer Guru Great Question Enlightened Generalist Nice Answer Good Answer Documentation Beta Popular Question Great Answer Good Question Good Answer Nice Answer Yearling Famous Question Nice Answer Enlightened javascript Caucus Good Answer Constituent Good Answer Nice Answer Stellar Question Announcer Booster Nice Answer Revival Nice Answer Famous Question Notable Question Census Good Answer Announcer Booster Publicist Great Answer Famous Question Good Answer Enlightened Necromancer Guru Good Answer Good Answer Notable Question Popular Question Nice Answer Nice Question Good Answer Announcer Announcer Good Answer Nice Answer Nice Answer Announcer Announcer Nice Answer Enlightened Nice Question Nice Answer Notable Question Famous Question Caucus Constituent Nice Answer Enlightened Good Answer Yearling Famous Question Good Question Popular Question Nice Answer Nice Question Nice Question Popular Question Good Question Announcer Guru Documentation User Nice Answer Enlightened Popular Question Good Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Popular Question Announcer Good Question Announcer Good Answer Nice Answer Nice Answer Census Announcer Great Answer Nice Answer Announcer Good Answer Good Answer Famous Question Guru Guru Revival Necromancer Caucus Constituent Guru Notable Question Nice Answer Nice Answer Notable Question Good Answer Great Answer Nice Answer Guru Guru Guru Peer Pressure Favorite Question Yearling Good Answer Notable Question Good Answer Announcer Good Answer Guru Necromancer Great Answer Popular Question Nice Answer Nice Answer Nice Answer,NULL,pIf you don need Terminal window you can make any executable file an Application just by moving codeexample sh code to codeexample sh app Contents MacOS example sh code You can place the Application in your dock like any other and execute it with click ppIf you do need to have the terminal window displayed don have simple solution You could probably do something with Applescript but that not very clean Related question on Apple SE http apple stackexchange com questions 225368 osx 10 11 incorrectly sees application as powerpc But tried this myself on El Cap and it works without error maybe some kind of intermittent bug How can lazily read multiple JSON values from file stream in Python python json serialization pI like to read multiple JSON objects from file stream in Python one at time Unfortunately codejson load code just code read codes until end of file there doesn seem to be any way to use it to read single object or to lazily iterate over the objects ppIs there any way to do this Using the standard library would be ideal but if there third party library use that instead ppAt the moment putting each object on separate line and using codejson loads readline code but would really prefer not to need to do this ph2Example Use h2h3example py h3pre class lang python prettyprint override codeimport my json as jsonimport sysfor in json iterload sys stdin print Working on type code preh3in txt h3pre class lang js prettyprint override code foo bar baz code preh3example session h3pre class lang none prettyprint override code python3 example py lt in txtWorking on dictWorking on intWorking on intWorking on listWorking on intWorking on intWorking on int code pre Good point Changed pA BitTorrent magnet link identifies torrent usingsup1 sup SHA or truncated SHA 256 hash value known as the infohash This is the same value that peers clients use to identify torrents when communicating with trackers or other peers traditional torrent file contains data structure with two top level keys codeannounce code identifying the tracker to use for the download and codeinfo code containing the filenames and hashes for the torrent The infohash is the hash of the encoded codeinfo code data ppSome magnet links include trackers or web seeds but they often don Your client may know nothing about the torrent except for its infohash The first thing it needs to is find other peers who are downloading the torrent It does this using separate peer to peer networksup2 sup operating distributed hash table DHT DHT is big distributed index which maps torrents identified by infohashes to lists of peers identified by IP address and ports who are participating in swarm for that torrent uploading downloading data or metadata ppThe first time client joins the DHT network it generates random 160 bit ID from the same space as infohashes It then bootstraps its connection to the DHT network using either hard coded addresses of clients controlled by the client developer or DHT supporting clients previously encountered in torrent swarm When it wants to participate in swarm for given torrent it searches the DHT network for several other clients whose IDs are as closesup3 sup as possible to the infohash It notifies these clients that it would like to participate in the swarm and asks them for the connection information of any peers they already know of who are participating in the swarm ppWhen peers are uploading downloading particular torrent they try to tell each other about all of the other peers they know of that are participating in the same torrent swarm This lets peers know of each other quickly without subjecting tracker or DHT to constant requests Once you ve learned of few peers from the DHT your client will be able to ask those peers for the connection information of yet more peers in the torrent swarm until you have all of the peers you need ppFinally we can ask these peers for the torrent codeinfo code metadata containing the filenames and hash list Once we ve downloaded this information and verified that it correct using the known codeinfohash code we re in practically the same position as client that started with regular code torrent code file and got list of peers from the included tracker ppThe download may begin pp sub sup1 sup The infohash is typically hex encoded but some old clients used base 32 instead v1 codeurn btih code uses the SHA digest directly while v2 codeurn bimh code adds href https github com multiformats multihash rel noreferrer multihash prefix to identify the hash algorithm and digest length brsup2 sup There are two primary DHT networks the simpler mainline DHT and more complicated protocol used by Azureus brsup3 sup The distance is measured by XOR sub ph3Further Reading h3ulli href http www bittorrent org beps bep 0003 html rel noreferrer BEP The BitTorrent Protocol Specification lili href http www bittorrent org beps bep 0052 html rel noreferrer BEP 52 The BitTorrent Protocol Specification v2 lili href http www bittorrent org beps bep 0005 html rel noreferrer BEP DHT Protocol lili href http www bittorrent org beps bep 0009 html rel noreferrer BEP Extension for Peers to Send Metadata Files lili href http www bittorrent org beps bep 0010 html rel noreferrer BEP 10 Extension Protocol lili href http www bittorrent org beps bep 0011 html rel noreferrer BEP 11 Peer Exchange PEX lili href http wiki vuze com Distributed hash table rel noreferrer Azureus DHT Description li ul In supporting torrent clients the ws parameter points to BEP 19 web seed URL of the actual data and the xs parameter points to URL with the torrent file itself think this is bit inconsistent with other uses of the magnet scheme but that how it is forget if any clients use as for anything maybe just as fallback for xs but not widely supported IIRC pInstead of codeMath random code you can use codecrypto getRandomValues code to generate evenly distributed cryptographically secure random numbers Here an example pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction randInt min max xD var MAX UINT32 0xFFFFFFFF xD var range max min xD xD if range lt MAX UINT32 xD throw new Error xD Range of range covering min to max is gt xD MAX UINT32 xD else if min max xD return min xD else if max gt min xD throw new Error max max must be gt min min xD xD xD We need to cut off values greater than this to avoid bias in distribution xD over the range xD var maxUnbiased MAX UINT32 MAX UINT32 range xD xD var rand xD do xD rand crypto getRandomValues new Uint32Array xD while rand gt maxUnbiased xD xD var offset rand range xD return min offset xD xD xD console log randInt xD console log randInt xD console log randInt 0xFFFFFFFF 944450079 xD console log randInt 0xFFFFFFFF xD Uncaught Error Range of 4294967296 covering to 4294967295 is gt 4294967295 xD console log new Array 24 fill map gt randInt 12 xD 11 11 10 12 12 12 xD 11 11 11 10 12 11 xD console log randInt 10 xD Uncaught Error max must be gt min 10 code pre xD div xD div xD WARNING This needs to be reviewed Do not trust it to be secure unbiased,1,NULL,Generate random number between two numbers in JavaScript javascript random pIs there way to generate random number in specified range from to or in JavaScript pInstead of codeMath random code you can use codecrypto getRandomValues code to generate evenly distributed cryptographically secure random numbers Here an example pp div class snippet data lang js data hide false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction randInt min max xD var MAX UINT32 0xFFFFFFFF xD var range max min xD xD if range lt MAX UINT32 xD throw new Error xD Range of range covering min to max is gt xD MAX UINT32 xD else if min max xD return min xD else if max gt min xD throw new Error max max must be gt min min xD xD xD We need to cut off values greater than this to avoid bias in distribution xD over the range xD var maxUnbiased MAX UINT32 MAX UINT32 range xD xD var rand xD do xD rand crypto getRandomValues new Uint32Array xD while rand gt maxUnbiased xD xD var offset rand range xD return min offset xD xD xD console log randInt xD console log randInt xD console log randInt 0xFFFFFFFF 944450079 xD console log randInt 0xFFFFFFFF xD Uncaught Error Range of 4294967296 covering to 4294967295 is gt 4294967295 xD console log new Array 24 fill map gt randInt 12 xD 11 11 10 12 12 12 xD 11 11 11 10 12 11 xD console log randInt 10 xD Uncaught Error max must be gt min 10 code pre xD div xD div xD 36783,292852,1365253,Yearling,NULL,NULL,0,NULL,NULL 36784,526758,497785,NULL,NULL,NULL,0,NULL,NULL 36785,11522,1134565,Civic Duty Announcer Yearling Popular Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 36786,553520,605739,Informed Good Answer Yearling Commentator Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 36787,1746553,605739,Informed Good Answer Yearling Commentator Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 36788,212964,560,Nice Question Guru Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 36789,450606,864393,Good Answer Nice Answer Enlightened Necromancer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru javascript Yearling Nice Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 36790,351406,351771,Necromancer Yearling Nice Answer Custodian Yearling Excavator Good Answer Necromancer Announcer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36791,11044,8560,Editor Yearling Good Answer,NULL,NULL,0,NULL,NULL 36792,247709,484569,NULL,NULL,NULL,0,NULL,NULL 36793,2968,860774,NULL,NULL,NULL,0,NULL,NULL 36794,214438,358182,NULL,NULL,NULL,0,NULL,NULL 36795,376245,299589,Yearling Revival Nice Answer Necromancer Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 36796,129838,680542,Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 36797,1593096,895640,NULL,NULL,NULL,0,NULL,NULL 36798,363612,226308,Curious Necromancer Caucus Nice Question Notable Question Yearling Necromancer Popular Question Revival,NULL,NULL,0,NULL,NULL 36799,392588,1535082,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 36800,149926,982237,Announcer,NULL,NULL,0,NULL,NULL 36801,71030,979561,Revival Necromancer Revival Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36802,157837,388049,NULL,NULL,NULL,0,NULL,NULL 36803,428172,549356,Notable Question,NULL,NULL,0,NULL,NULL 36804,275287,51010,Yearling Popular Question,NULL,NULL,0,NULL,NULL 36805,82168,1323180,NULL,NULL,NULL,0,NULL,NULL 36806,238977,173473,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36807,111497,210007,NULL,NULL,NULL,0,NULL,NULL 36808,591849,281530,Notable Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 36809,75256,766851,NULL,NULL,NULL,0,NULL,NULL 36810,3802316,766851,NULL,NULL,NULL,0,NULL,NULL 36811,52583,1045686,Announcer Announcer Announcer Announcer Announcer Announcer Informed Student Editor Scholar Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 36812,189290,1064548,Teacher Supporter Necromancer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 36813,178853,334736,NULL,NULL,NULL,0,NULL,NULL 36814,287616,146486,Revival Nice Answer Commentator Necromancer Notable Question Informed,NULL,NULL,0,NULL,NULL 36815,196544,613575,Notable Question Announcer,NULL,NULL,0,NULL,NULL 36816,7752,61123,NULL,NULL,NULL,0,NULL,NULL 36817,902886,532489,Popular Question Notable Question Good Answer Critic Necromancer Yearling Popular Question Nice Answer Popular Question Notable Question Necromancer Yearling Popular Question Revival Good Answer Popular Question,NULL,NULL,0,NULL,NULL 36818,1214765,769746,NULL,NULL,NULL,0,NULL,NULL 36819,154810,223823,Popular Question,NULL,NULL,0,NULL,NULL 36820,144400,1031892,Yearling Nice Answer Caucus Good Answer Yearling Custodian Custodian Citizen Patrol Custodian Caucus,NULL,NULL,0,NULL,NULL 36821,254256,1297129,Teacher Census,NULL,NULL,0,NULL,NULL 36822,69497,1256304,NULL,NULL,NULL,0,NULL,NULL 36823,24612,470685,NULL,NULL,NULL,0,NULL,NULL 36824,46375,447420,Famous Question Nice Answer Yearling Notable Question Guru Nice Answer Notable Question Yearling Custodian Census Yearling,NULL,NULL,0,NULL,NULL 36825,226932,653646,Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Self-Learner Popular Question Notable Question Yearling Critic Nice Question Popular Question Notable Question Good Question Famous Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36826,36709,1162645,NULL,NULL,NULL,0,NULL,NULL 36827,41801,474895,NULL,NULL,NULL,0,NULL,NULL 36828,64036,423463,NULL,NULL,NULL,0,NULL,NULL 36829,738959,813486,Yearling Mortarboard Yearling Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 36830,3388,160811,Notable Question Good Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Question Yearling Nice Answer Enlightened Guru Census Guru Nice Answer Enlightened Good Answer ruby Nice Answer Enlightened Nice Answer Revival Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36831,72774,564713,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 36832,250103,201249,NULL,NULL,NULL,0,NULL,NULL 36833,120645,1480727,Popular Question,NULL,NULL,0,NULL,NULL 36834,126089,1109106,Commentator Yearling,NULL,NULL,0,NULL,NULL 36835,837814,555425,Yearling Popular Question,NULL,NULL,0,NULL,NULL 36836,627800,627607,Autobiographer Student Editor Scholar Supporter Quorum Census,NULL,NULL,0,NULL,NULL 36837,6729437,627607,Autobiographer Student Editor Scholar Supporter Quorum Census,NULL,NULL,0,NULL,NULL 36838,2613061,230561,Great Answer Notable Question Yearling Notable Question Custodian Nice Question Yearling Census Popular Question Famous Question,NULL,NULL,0,NULL,NULL 36839,330772,537163,NULL,NULL,NULL,0,NULL,NULL 36840,604801,443964,NULL,NULL,NULL,0,NULL,NULL 36841,38955,94102,Popular Question Yearling Nice Question Good Answer Notable Question Popular Question Necromancer Revival Revival Yearling Notable Question Custodian Notable Question Notable Question Nice Answer Nice Question Notable Question Famous Question Nice Question Popular Question Good Question Announcer Notable Question Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36842,233183,367505,NULL,NULL,NULL,0,NULL,NULL 36843,60050,245747,Yearling Nice Question Notable Question Great Answer Famous Question Popular Question Yearling Nice Answer Yearling Census Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 36844,3870522,245747,Yearling Nice Question Notable Question Great Answer Famous Question Popular Question Yearling Nice Answer Yearling Census Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 36845,357332,798134,NULL,NULL,NULL,0,NULL,NULL 36846,150109,72508,Yearling c++ Announcer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Custodian Revival Nice Answer Caucus Good Answer Nice Answer Enlightened c Revival Guru macos Nice Answer Census Announcer Yearling Good Answer Great Answer Great Answer Curious Revival,NULL,pAs of iOS or you can do this which takes advantage of ARC and modules which will automatically link in the needed framework ppre code SystemConfiguration CaptiveNetwork Returns first non empty SSID network info dictionary CNCopyCurrentNetworkInfo NSDictionary fetchSSIDInfo NSArray interfaceNames CFBridgingRelease CNCopySupportedInterfaces NSLog Supported interfaces func interfaceNames NSDictionary SSIDInfo for NSString interfaceName in interfaceNames SSIDInfo CFBridgingRelease CNCopyCurrentNetworkInfo bridge CFStringRef interfaceName NSLog gt func interfaceName SSIDInfo BOOL isNotEmpty SSIDInfo count gt if isNotEmpty break return SSIDInfo code prep This is modernization of code sample written for iOS The only changes were introducing clearer variable names and adopting ARC and modules ppExample output ppre code2011 03 04 15 32 00 669 ShowSSID 4857 307 ShowSSIDAppDelegate fetchSSIDInfo Supported interfaces en0 2011 03 04 15 32 00 693 ShowSSID 4857 307 ShowSSIDAppDelegate fetchSSIDInfo en0 gt BSSID ca fe ca fe ca fe SSID XXXX SSIDDATA lt 01234567 01234567 01234567 gt code prepNote that no ifs are supported on the simulator Test on your device ppPrior to you might have some luck spelunking through the System Configuration dictionary For example using codescutil code on my Mac ppre code scutil gt show State Network Interface en1 AirPort lt dictionary gt Power Status SecureIBSSEnabled FALSE BSSID lt data gt 0xcafecafecafe SSID STR XXXX SSID lt data gt 0x012345670123456701234567 Busy FALSE CHANNEL lt dictionary gt CHANNEL CHANNEL FLAGS 10 gt exit code pre It simulates most of the UIKit bits Doesn do 3D touch doesn handle multitouch even with trackpads that support it didn support for few years If it problem you can file radar but grabbing an iOS device will be far faster fix,1,NULL,Why setting object that is undergoing deallocation to weak property results in crash objective clang automatic ref counting weak references dealloc pIn href http clang llvm org docs AutomaticReferenceCounting html semantics rel noreferrer Clang Objective Automatic Reference Counting we see the following pblockquote pFor weak objects the lvalue is updated to point to the new pointee unless the new pointee is an object currently undergoing deallocation in which case the lvalue is updated to null pointer This must execute atomically with respect to other assignments to the object to reads from the object and to the final release of the new pointee blockquotepIn href http www opensource apple com source objc4 objc4 680 runtime objc weak mm rel noreferrer objc weak mm wee see the following chunk of code in codeweak register no lock code ppre code if deallocating if crashIfDeallocating objc fatal Cannot form weak reference to instance of class It is possible that this object was over released or is in the process of deallocation void referent object getClassName id referent else return nil code prepI set breakpoint in my UIViewController subclass codedealloc code method and tried invoking code self allowsWeakReference code in lldb which resulted in codeNO code value ppIf we try to set self to weak property of another object the app will crash in accordance with the objc weak mm code ppThe question is why does this happen Is the clang specification wrong Is is this bug in objc implementation phrpHere is simple piece of code that will reproduce the crash ppre code cc fmodules fobjc arc crash crash Foundation Foo NSObject Foo void dealloc Foo weak weakSelf self crashes on this line main void Foo alloc init return code pre pIt not bug it obviously very intentional It is deviation from the spec but it an intentional one ppBased on the warning it sounds like they wanted to make it easier to diagnose over release scenarios and catching objects that are being deallocated at the time might just be side effect of that main goal ppThey might also consider that if you re trying to weakify codeself code while being deallocated anyway and you re not checking for codenil code weakref quite common lots of block code repeatedly calls through weakref that could go codenil code at any time you re setting yourself up for hard to debug bugs ppAll that said love to see the notes behind that runtime change 36847,23515,496528,NULL,NULL,NULL,0,NULL,NULL 36848,313078,193558,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 36849,687530,624017,Tumbleweed,NULL,NULL,0,NULL,NULL 36850,24452,6524,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 36851,602036,511611,NULL,NULL,NULL,0,NULL,NULL 36852,66744,78093,Good Question Yearling Good Question Nice Question Guru Nice Question Good Question Good Answer Famous Question Good Answer Great Question Good Question Good Answer Favorite Question Yearling Notable Question Famous Question Popular Question Good Answer Famous Question Good Question Popular Question Great Answer Nice Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 36853,21482,800908,NULL,NULL,NULL,0,NULL,NULL 36854,49822,210879,NULL,NULL,NULL,0,NULL,NULL 36855,78770,1462605,NULL,NULL,NULL,0,NULL,NULL 36856,697423,316563,Nice Question Favorite Question Nice Question Yearling Notable Question Notable Question Famous Question Popular Question Nice Question Popular Question Notable Question Yearling Famous Question Custodian Custodian Custodian Nice Question Good Question Good Question Famous Question Popular Question Famous Question Yearling Notable Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 36857,133661,397426,NULL,NULL,NULL,0,NULL,NULL 36858,411160,340719,Yearling Critic Enthusiast,NULL,NULL,0,NULL,NULL 36859,217807,645385,NULL,NULL,NULL,0,NULL,NULL 36860,1641752,588503,NULL,NULL,NULL,0,NULL,NULL 36861,687042,489368,NULL,NULL,NULL,0,NULL,NULL 36862,475917,489368,NULL,NULL,NULL,0,NULL,NULL 36863,618332,1285792,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36864,662519,120427,Necromancer Curious,NULL,NULL,0,NULL,NULL 36865,146497,172793,NULL,NULL,NULL,0,NULL,NULL 36866,162911,169115,Yearling Populist Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 36867,8540799,831119,Commentator Popular Question Teacher,NULL,NULL,0,NULL,NULL 36868,56150,831119,Commentator Popular Question Teacher,NULL,NULL,0,NULL,NULL 36869,63271,2476,Popular Question Yearling Popular Question Favorite Question Yearling Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 36870,160891,360147,NULL,NULL,NULL,0,NULL,NULL 36871,1886968,957953,Good Answer Guru Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 36872,729122,16720,Yearling Necromancer Nice Answer Yearling Good Answer Yearling Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 36873,161461,402008,Custodian Proofreader Informed Reviewer Nice Question Popular Question Yearling Notable Question Yearling Popular Question Great Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 36874,86464,424549,Popular Question,NULL,NULL,0,NULL,NULL 36875,102031,50065,Nice Answer Notable Question Popular Question Famous Question Good Question Reviewer Good Answer Notable Question Notable Question Notable Question Strunk & White Nice Question Nice Question Favorite Question Great Answer Popular Question Announcer Famous Question Popular Question Caucus python Yearling Announcer Notable Question Popular Question Notable Question Popular Question Nice Question Caucus Popular Question Popular Question Necromancer Notable Question Good Answer Documentation User Custodian Popular Question Nice Question Yearling Famous Question Popular Question Nice Answer Announcer Caucus Popular Question Popular Question Popular Question bioinformatics Famous Question Popular Question Nice Answer Nice Question Famous Question Nice Answer Famous Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 36876,149039,891419,NULL,NULL,NULL,0,NULL,NULL 36877,124344,447301,NULL,NULL,NULL,0,NULL,NULL 36878,7185,1336275,NULL,NULL,NULL,0,NULL,NULL 36879,1035094,20047,Nice Answer Good Answer Good Answer Popular Question Cleanup Good Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Question Good Answer Great Answer Nice Answer Good Answer Nice Answer asp.net Caucus Good Answer Yearling Documentation User Good Question Guru Nice Answer Strunk & White Populist Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 36880,1106620,1049897,Informed Editor,NULL,NULL,0,NULL,NULL 36881,446834,1466126,Revival Caucus Constituent Nice Question Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 36882,392066,82830,Popular Question Editor,NULL,NULL,0,NULL,NULL 36883,127783,913,Notable Question Custodian Notable Question Notable Question Yearling Good Answer Custodian Revival Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 36884,264292,691199,NULL,NULL,NULL,0,NULL,NULL 36885,103804,700288,Yearling,NULL,NULL,0,NULL,NULL 36886,107408,599766,NULL,NULL,NULL,0,NULL,NULL 36887,1146393,840372,Nice Answer Enlightened Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 36888,107711,392539,Commentator Critic Informed,NULL,NULL,0,NULL,NULL 36889,3731676,392539,Commentator Critic Informed,NULL,NULL,0,NULL,NULL 36890,1413650,521297,Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 36891,1241422,1063943,Notable Question,NULL,NULL,0,NULL,NULL 36892,334007,1277076,NULL,NULL,NULL,0,NULL,NULL 36893,1066960,55451,NULL,NULL,NULL,0,NULL,NULL 36894,54217,318752,Good Answer Notable Question Announcer Popular Question Notable Question Famous Question Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Nice Question Famous Question Yearling Necromancer Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Notable Question Revival Famous Question Nice Question Popular Question Good Answer Nice Question Notable Question Good Answer Caucus Famous Question Necromancer Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Nice Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Necromancer Guru Necromancer Famous Question Necromancer Good Question Great Question Nice Question Popular Question Famous Question Popular Question Popular Question Caucus Notable Question Notable Question Famous Question Notable Question Famous Question Popular Question Announcer Notable Question Nice Answer Popular Question Popular Question r Notable Question Good Answer Nice Question Caucus Nice Answer Yearling Famous Question Nice Answer Enlightened Nice Answer opencpu Nice Question Citizen Patrol Good Question Popular Question Nice Question Stellar Question Notable Question Famous Question Popular Question Popular Question Nice Question Great Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36895,368256,1230970,NULL,NULL,NULL,0,NULL,NULL 36896,406412,1322550,Enthusiast Yearling Electorate Famous Question Caucus Constituent Nice Question Yearling Caucus Constituent Excavator Necromancer Good Answer Census Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36897,30021,105406,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 36898,9936,327077,NULL,NULL,NULL,0,NULL,NULL 36899,231985,1049896,Informed Necromancer Yearling,NULL,NULL,0,NULL,NULL 36900,110251,1384409,Supporter,NULL,NULL,0,NULL,NULL 36901,297668,1074388,NULL,NULL,NULL,0,NULL,NULL 36902,400079,830615,Commentator Citizen Patrol Outspoken,NULL,NULL,0,NULL,NULL 36903,886248,1324228,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 36904,266730,787446,Guru Yearling Caucus Guru Yearling Great Answer Caucus Constituent Yearling Custodian,NULL,NULL,0,NULL,NULL 36905,336209,788381,Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 36906,48049,893010,NULL,NULL,NULL,0,NULL,NULL 36907,236442,284325,Yearling Enthusiast Caucus Constituent Yearling Revival Caucus Constituent Tenacious Nice Answer Yearling Mortarboard,NULL,NULL,0,NULL,NULL 36908,1069705,1192014,NULL,NULL,NULL,0,NULL,NULL 36909,120218,311450,Good Answer Yearling Self-Learner Revival Nice Answer Enlightened Popular Question Guru Announcer Yearling Nice Answer Enlightened Popular Question Yearling Notable Question Excavator Nice Answer,NULL,NULL,0,NULL,NULL 36910,274806,457642,NULL,NULL,NULL,0,NULL,NULL 36911,416109,1021721,Yearling Guru Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 36912,458110,30068,NULL,NULL,NULL,0,NULL,NULL 36913,132509,116542,Good Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 36914,3177708,655339,NULL,NULL,NULL,0,NULL,NULL 36915,2652914,1121179,Notable Question Popular Question Nice Question Famous Question Nice Question Yearling Famous Question Popular Question Nice Answer Good Question,NULL,NULL,0,NULL,NULL 36916,97589,862462,Notable Question Famous Question Notable Question Notable Question Good Answer Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 36917,1080459,505980,NULL,NULL,NULL,0,NULL,NULL 36918,126900,642097,NULL,NULL,NULL,0,NULL,NULL 36919,9237,746374,Necromancer Yearling Nice Answer Commentator,NULL,NULL,0,NULL,NULL 36920,71358,1281372,Student Enthusiast,NULL,NULL,0,NULL,NULL 36921,3323702,602432,NULL,NULL,NULL,0,NULL,NULL 36922,218391,602432,NULL,NULL,NULL,0,NULL,NULL 36923,280616,766986,NULL,NULL,NULL,0,NULL,NULL 36924,14235,97915,NULL,NULL,NULL,0,NULL,NULL 36925,738134,1024865,Caucus,NULL,NULL,0,NULL,NULL 36926,2254704,715409,NULL,NULL,NULL,0,NULL,NULL 36927,2255204,464012,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36928,161153,464012,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36929,41246,621992,NULL,NULL,NULL,0,NULL,NULL 36930,155690,108448,Proofreader Yearling Nice Answer Necromancer Necromancer Custodian Good Answer Reviewer Necromancer Necromancer javascript Yearling Nice Answer Nice Answer Caucus Announcer Guru Documentation User Custodian Good Answer Caucus Necromancer Nice Answer Good Answer Guru Yearling Great Answer Nice Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 36931,61561,927555,Popular Question Popular Question Popular Question Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 36932,1364499,1221834,Informed,NULL,NULL,0,NULL,NULL 36933,710759,1193895,NULL,NULL,NULL,0,NULL,NULL 36934,214521,799570,Curious,NULL,NULL,0,NULL,NULL 36935,108695,1030408,NULL,NULL,NULL,0,NULL,NULL 36936,375811,1343764,NULL,NULL,NULL,0,NULL,NULL 36937,899270,351416,NULL,NULL,NULL,0,NULL,NULL 36938,24134,1566242,Student Notable Question,NULL,NULL,0,NULL,NULL 36939,4705136,1566242,Student Notable Question,NULL,NULL,0,NULL,NULL 36940,91863,373414,NULL,NULL,NULL,0,NULL,NULL 36941,163440,1347892,NULL,NULL,NULL,0,NULL,NULL 36942,443066,543878,NULL,NULL,NULL,0,NULL,NULL 36943,123448,1159240,Critic Yearling Revival Necromancer Nice Answer Enlightened Yearling Necromancer Yearling Good Answer Yearling Necromancer Popular Question Yearling Popular Question Notable Question Nice Answer Popular Question,NULL,NULL,1,macOS Accessibility Groups macos accessibility pIn Apple href https developer apple com library content samplecode AccessibleTicTacToe Introduction Intro html rel nofollow noreferrer TicTacToe sample project the href https developer apple com library content samplecode AccessibleTicTacToe Listings TicTacToe AAPLTicTacToeBoardView html apple ref doc uid TP40014589 TicTacToe AAPLTicTacToeBoardView DontLinkElementID 11 rel nofollow noreferrer AAPLTicTacToeBoardView class conforms to the codeNSAccessibilityGroup code protocol In its requisite implementation of code accessibilityChildren code the array of children representing the 3x3 board squares is only created during the first call It is also cached to an ivar During subsequent calls the cached ivar is returned ppTicTacToe is somewhat special case In other applications for example the Tag Cloud which am working on the array of children may be different on each call and therefore should be recreated on each call with no caching to an ivar ppIn the TicTacToe example presume that this ivar caching is only for performance Therefore if just remove AAPLTicTacToeBoardView line 177 ppre code if accessibilityChildren nil code prepwhich forces it to recreate the children on every call expect all should continue to work maybe just imperceptibly slower ppInstead find that removing this line breaks behavior When the user navigates with QuickNav into the game board now VoiceOver says that the group is empty even though codeaccessibilityChildren code is still being called repeatedly and returns elements albeit different new ones on each call ppIt is apparently the new elements which cause the problem If modify code accessibilityChildren code to return copy of the cached array which contains say of the original elements and copies of the other elements VoiceOver tells me that the game board contains items and QuickNav steps through the squares represented by original items skipping the squares represented by copies If you like to see that for yourself replace the last line of code accessibilityChildren code codereturn accessibilityChildren code with the following ppre codeNSMutableArray answer NSMutableArray new NSInteger for AAPLTicTacToeSquareAccessibilityElement element in accessibilityChildren AAPLTicTacToeSquareAccessibilityElement does not conform to NSCopying so we copy properties manually AAPLTicTacToeSquareAccessibilityElement copy AAPLTicTacToeSquareAccessibilityElement alloc initWithRow element row column element column delegate self delegate copy accessibilityParent self copy accessibilityFrameInParentSpace element accessibilityFrameInParentSpace if answer addObject copy else answer addObject element return answer code prepMy question Why And what will happen in my real app which has changing group elements,NULL 36944,524795,117516,NULL,NULL,NULL,0,NULL,NULL 36945,127579,317499,NULL,NULL,NULL,0,NULL,NULL 36946,149263,288332,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 36947,90946,444157,NULL,NULL,NULL,0,NULL,NULL 36948,178369,310627,Popular Question,NULL,NULL,0,NULL,NULL 36949,185802,1160924,Yearling Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 36950,482185,481976,NULL,NULL,NULL,0,NULL,NULL 36951,45825,485365,Autobiographer,NULL,NULL,0,NULL,NULL 36952,203164,442139,Editor Informed Supporter Student Scholar,NULL,NULL,0,NULL,NULL 36953,283539,1158986,NULL,NULL,NULL,0,NULL,NULL 36954,3863609,1462420,NULL,NULL,NULL,0,NULL,NULL 36955,183662,184953,Self-Learner Good Answer Yearling Great Answer Census Good Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 36956,293533,1332570,NULL,NULL,NULL,0,NULL,NULL 36957,154135,828398,Popular Question,NULL,NULL,0,NULL,NULL 36958,122753,912946,Necromancer Announcer Explainer Necromancer Revival Nice Answer Nice Answer Necromancer Necromancer Great Answer Necromancer Yearling Popular Question Notable Question Nice Question Nice Question Famous Question Announcer Necromancer Announcer Good Answer Notable Question Nice Answer Revival Popular Question Good Question Nice Question Necromancer Good Answer Revival Yearling Necromancer Great Answer Great Answer Famous Question Popular Question Revival Necromancer Necromancer Great Answer Necromancer Nice Answer Necromancer Nice Answer Notable Question Civic Duty Necromancer Necromancer Nice Answer Good Answer Revival Announcer Yearling Popular Question Popular Question Necromancer Popular Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36959,198940,13195,Necromancer Nice Answer Famous Question Yearling Famous Question Popular Question Good Question Popular Question Good Answer Yearling Census Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 36960,27376,20092,Famous Question Necromancer Yearling Nice Question Popular Question Curious Nice Answer Popular Question Caucus Yearling Documentation User Custodian Custodian Notable Question Census Caucus Constituent Revival Nice Answer Popular Question Necromancer Necromancer Good Question Nice Answer Nice Answer Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 36961,1064103,670980,NULL,NULL,NULL,0,NULL,NULL 36962,245368,318306,Popular Question Notable Question Nice Question Yearling Nice Question Famous Question Outspoken Famous Question Nice Question Caucus Notable Question Popular Question Notable Question Notable Question Electorate Notable Question Yearling Popular Question Popular Question Nice Question Caucus Documentation User Caucus Notable Question Yearling Famous Question Popular Question Notable Question Notable Question,NULL,pWith version 13 of Git and later code recurse submodules code can be used instead of code recursive code ppre codegit clone recurse submodules j8 git github com foo bar gitcd bar code prep supEditor’s note code j8 code is an optional performance optimization that became available in version and fetches up to submodules at time in parallel see codeman git clone code sup ppWith version of Git up until version 12 code code flag only available in version ppre codegit clone recursive j8 git github com foo bar gitcd bar code prepWith version of Git and later you can use ppre codegit clone recursive git github com foo bar gitcd bar code prepFor already cloned repos or older Git versions use ppre codegit clone git github com foo bar gitcd bargit submodule update init recursive code pre As it seems the flag name was updated to recurse submodules,0,NULL,NULL 36963,103573,1298407,NULL,NULL,NULL,0,NULL,NULL 36964,732758,1183531,Yearling Popular Question Notable Question Nice Answer Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 36965,358571,282057,NULL,NULL,NULL,0,NULL,NULL 36966,13396,1066550,NULL,NULL,NULL,0,NULL,NULL 36967,316764,764267,NULL,NULL,NULL,0,NULL,NULL 36968,509718,80764,Census Critic Suffrage Vox Populi Yearling,NULL,NULL,0,NULL,NULL 36969,591919,1221116,NULL,NULL,NULL,0,NULL,NULL 36970,362558,648392,Explainer Revival ruby Yearling Popular Question Popular Question Nice Answer Enlightened Popular Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 36971,12137,104465,Good Answer Yearling,NULL,NULL,0,NULL,NULL 36972,841931,133602,Notable Question Notable Question Excavator,NULL,NULL,0,NULL,NULL 36973,26245,25083,Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer otp Yearling Nice Answer Enlightened Good Answer Necromancer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 36974,2961171,984547,Student Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36975,641372,984547,Student Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 36976,468927,577513,Yearling Nice Answer Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36977,363885,764146,NULL,NULL,NULL,0,NULL,NULL 36978,748610,1039642,Necromancer,NULL,NULL,0,NULL,NULL 36979,152793,649803,NULL,NULL,NULL,0,NULL,NULL 36980,426796,1260066,Yearling Famous Question Good Answer Famous Question Revival Revival Yearling Popular Question Nice Answer Good Question Revival Yearling Guru Notable Question Good Answer Revival,NULL,NULL,0,NULL,NULL 36981,664403,1514022,Informed Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 36982,1993125,481042,NULL,NULL,NULL,0,NULL,NULL 36983,78441,936408,Announcer,NULL,NULL,0,NULL,NULL 36984,51312,384401,NULL,NULL,NULL,0,NULL,NULL 36985,310944,112415,Yearling Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 36986,272997,103522,Nice Question Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 36987,1099294,438868,Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 36988,267286,377470,NULL,NULL,NULL,0,NULL,NULL 36989,679335,131034,NULL,NULL,NULL,0,NULL,NULL 36990,581057,1026041,NULL,NULL,NULL,0,NULL,NULL 36991,472835,1134067,Scholar,NULL,NULL,0,NULL,NULL 36992,257822,1197844,NULL,NULL,NULL,0,NULL,NULL 36993,262141,109305,Stellar Question Necromancer Notable Question Cleanup Notable Question Yearling Favorite Question Announcer Notable Question Great Answer Nice Question Notable Question Nice Answer Famous Question Famous Question Popular Question Notable Question Great Question Notable Question Good Question Good Question Famous Question Announcer Famous Question Necromancer Yearling Revival Favorite Question Famous Question Good Answer Popular Question Necromancer Favorite Question Stellar Question Popular Question Revival Notable Question Yearling Popular Question Nice Question Notable Question Good Question Necromancer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 36994,210626,1180930,Nice Answer Notable Question Popular Question Nice Question Nice Answer Nice Question Yearling Peer Pressure Famous Question Yearling,NULL,NULL,0,NULL,NULL 36995,434028,1401414,NULL,NULL,NULL,0,NULL,NULL 36996,59817,1250602,NULL,NULL,NULL,0,NULL,NULL 36997,396021,1194099,NULL,NULL,NULL,0,NULL,NULL 36998,15879,13960,Custodian Taxonomist Nice Answer Enlightened Great Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 36999,1518178,490277,Scholar Yearling Student,NULL,NULL,0,NULL,NULL 37000,33571,880260,NULL,NULL,NULL,0,NULL,NULL 37001,167629,85394,Yearling Yearling,NULL,NULL,0,NULL,NULL 37002,2282628,963793,Famous Question Yearling,NULL,NULL,0,NULL,NULL 37003,40926,963793,Famous Question Yearling,NULL,NULL,0,NULL,NULL 37004,26282,1804,Good Answer Yearling Popular Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37005,663652,185966,NULL,NULL,NULL,0,NULL,NULL 37006,189044,602637,Popular Question Curious Popular Question Famous Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 37007,42738,317989,Guru Good Answer Enlightened Famous Question Yearling Good Answer Great Answer Nice Question Good Answer Yearling Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened ruby Good Answer Census Great Answer Popular Question Notable Question Nice Answer Notable Question activerecord Yearling ruby-on-rails Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 37008,303283,717571,Supporter,NULL,NULL,0,NULL,NULL 37009,1170886,1326927,NULL,NULL,NULL,0,NULL,NULL 37010,319192,1418182,Yearling Populist Good Answer Yearling Populist Good Answer Popular Question Caucus Constituent Yearling Revival,NULL,NULL,0,NULL,NULL 37011,86846,254394,NULL,NULL,NULL,0,NULL,NULL 37012,72870,1185262,Yearling Yearling jetty Nice Answer Enlightened Good Answer Documentation User Nice Answer Proofreader Yearling,NULL,NULL,0,NULL,NULL 37013,242975,957640,Teacher,NULL,NULL,0,NULL,NULL 37014,1041629,1133361,NULL,NULL,NULL,0,NULL,NULL 37015,2089647,128138,Famous Question Good Answer Yearling Nice Answer Great Answer Nice Question Yearling Nice Answer Nice Answer Famous Question Yearling Enlightened Good Answer,NULL,NULL,0,NULL,NULL 37016,1642219,607384,NULL,NULL,NULL,0,NULL,NULL 37017,5952118,1020376,NULL,NULL,NULL,0,NULL,NULL 37018,2161559,1020376,NULL,NULL,NULL,0,NULL,NULL 37019,400828,762889,Nice Answer Good Question Notable Question Nice Question Notable Question Good Question Yearling Nice Question Popular Question Notable Question Popular Question Famous Question Necromancer Popular Question Notable Question Yearling Inquisitive Popular Question Favorite Question Popular Question Great Question Good Question Yearling Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 37020,94364,762889,Nice Answer Good Question Notable Question Nice Question Notable Question Good Question Yearling Nice Question Popular Question Notable Question Popular Question Famous Question Necromancer Popular Question Notable Question Yearling Inquisitive Popular Question Favorite Question Popular Question Great Question Good Question Yearling Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 37021,578532,513951,Electorate Revival Curious Nice Question Tenacious Unsung Hero Investor Necromancer Necromancer Necromancer Nice Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Necromancer Nice Answer Popular Question Nice Answer Enlightened Caucus Constituent Yearling Notable Question Nice Answer Tumbleweed Archaeologist Nice Question Good Answer ruby Good Answer Necromancer Necromancer Caucus Constituent Documentation User Yearling Good Answer Census Famous Question Good Answer Caucus Constituent Good Question Deputy Nice Answer Yearling,NULL,How to have an inherited callback in ruby that is triggered after the child class is defined instead of before ruby metaprogramming blockquote strongPossible Duplicate strong br href https stackoverflow com questions 790626 ruby can have something like classinherited thats triggered only after the ruby can have something like Class inherited that 39 triggered only after the class definition blockquotepre codeclass def self inherited child puts XXX endendclass lt puts YYY end code prepprints out ppre codeXXXYYY code prepI prefer ppre codeYYYXXX code prepif could get it somehow It now possible to do this in Ruby using TracePoint See my answer to the same question above http stackoverflow com questions 790626 is there hook similar to classinherited thats triggered only after ruby cl 34559282 How to have an inherited callback in ruby that is triggered after the child class is defined instead of before ruby metaprogramming blockquote strongPossible Duplicate strong br href https stackoverflow com questions 790626 ruby can have something like classinherited thats triggered only after the ruby can have something like Class inherited that 39 triggered only after the class definition blockquotepre codeclass def self inherited child puts XXX endendclass lt puts YYY end code prepprints out ppre codeXXXYYY code prepI prefer ppre codeYYYXXX code prepif could get it somehow Actually my answer to another similar question http stackoverflow com questions 32233860 how can set hook to run code at the end of ruby class definition 34424483 34424483 is probably better fit for your specific use case How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this asked the folks in the cv pls chat room whether seniority determines the chain of duplication and they said no kind of agree with you though How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this Best question and best answer There are actually questions dealing with the same problem and the one that wanted to choose as the survivor has 20k views and 84 upvotes But the 132 point answer was actually somehow irrelevant and now outdated See http stackoverflow com questions 6224875 equivalent of try for hash to avoid undefined method errors on nil lq How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this Since yours is now the only question with correct accepted answer ll reverse my duplicate flag and mark the newer question as duplicate of this one How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this Actually there one question about this subject http stackoverflow com questions 1820451 ruby style how to check whether nested hash element exists that older than yours and it has some clout the answer to that question actually has the original implementation of Hash dig But out of energy to keep unraveling this duplicate chain How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this saw you reverted the change to which is fine you have the final say as the author obviously but encourage you to find some other way to avoid horizontal scrolling in the code block Line breaks,0,NULL,NULL 37022,114101,1432,Nice Question Notable Question Good Question Good Answer Great Answer java Notable Question Investor Yearling Famous Question Nice Answer Good Question Nice Question Notable Question Good Answer Guru Famous Question Yearling Tag Editor Nice Answer Guru Nice Answer Enlightened Necromancer Yearling Good Question Good Question,NULL,NULL,0,NULL,NULL 37023,1122153,1680,Announcer Notable Question Famous Question Popular Question Famous Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 37024,83688,220256,Yearling,NULL,NULL,0,NULL,NULL 37025,655909,1162920,NULL,NULL,NULL,0,NULL,NULL 37026,133176,1196508,NULL,NULL,NULL,0,NULL,NULL 37027,593067,1226860,NULL,NULL,NULL,0,NULL,NULL 37028,148980,244554,NULL,NULL,NULL,0,NULL,NULL 37029,255620,1409047,Famous Question Critic Popular Question Notable Question Yearling Popular Question Nice Answer Yearling Custodian Enthusiast Caucus Notable Question,NULL,NULL,0,NULL,NULL 37030,149451,789636,Supporter Popular Question Teacher Editor Curious Commentator,NULL,NULL,0,NULL,NULL 37031,104576,731791,NULL,NULL,NULL,0,NULL,NULL 37032,5980,710404,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37033,2422,184130,Nice Answer Nice Question Announcer Good Answer Great Answer Yearling Good Answer Electorate Caucus Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Revival Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 37034,4889860,184130,Nice Answer Nice Question Announcer Good Answer Great Answer Yearling Good Answer Electorate Caucus Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Revival Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 37035,2281,525737,Popular Question,NULL,NULL,0,NULL,NULL 37036,159422,151792,Nice Answer Yearling Great Answer Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 37037,22393,1352697,NULL,NULL,NULL,0,NULL,NULL 37038,125069,627918,Nice Answer Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 37039,133215,1433057,Autobiographer,NULL,NULL,0,NULL,NULL 37040,185310,704847,NULL,NULL,NULL,0,NULL,NULL 37041,694534,858171,Organizer Yearling Student Yearling Yearling,NULL,NULL,0,NULL,NULL 37042,1026790,450246,Yearling Nice Answer Announcer Booster Good Answer Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 37043,1121809,974251,NULL,NULL,NULL,0,NULL,NULL 37044,825162,259492,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37045,428661,289860,Editor Excavator,NULL,NULL,0,NULL,NULL 37046,66624,462102,Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 37047,76353,157061,NULL,NULL,NULL,0,NULL,NULL 37048,24009,849369,Census,NULL,NULL,0,NULL,NULL 37049,24026,186616,Good Answer Yearling Nice Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 37050,352154,111330,NULL,NULL,NULL,0,NULL,NULL 37051,14148,511168,Commentator Announcer Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 37052,7826939,511168,Commentator Announcer Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 37053,156533,850825,Nice Question Notable Question Yearling Notable Question Nice Question Famous Question Yearling Custodian Notable Question Famous Question Civic Duty Notable Question Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 37054,167382,434248,Yearling Popular Question Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37055,43209,217447,NULL,NULL,NULL,0,NULL,NULL 37056,194205,451724,NULL,NULL,NULL,0,NULL,NULL 37057,74695,92443,Census Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37058,317757,805656,NULL,NULL,NULL,0,NULL,NULL 37059,278884,988392,NULL,NULL,NULL,0,NULL,NULL 37060,15511,1019369,Necromancer Announcer Commentator Popular Question,NULL,NULL,0,NULL,NULL 37061,802073,1019369,Necromancer Announcer Commentator Popular Question,NULL,NULL,0,NULL,NULL 37062,285096,943732,Yearling Popular Question Guru Notable Question,NULL,NULL,0,NULL,NULL 37063,7833,955358,Informed Autobiographer,NULL,NULL,0,NULL,NULL 37064,100047,583916,Popular Question Famous Question Yearling Popular Question Favorite Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Caucus Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Documentation User Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Yearling Popular Question Good Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37065,129798,1359748,Caucus Constituent Yearling Caucus Constituent Census Custodian Caucus,NULL,NULL,0,NULL,NULL 37066,26446,423297,Popular Question,NULL,NULL,0,NULL,NULL 37067,20564,381167,Nice Answer Yearling Nice Answer Enlightened Yearling Census Caucus Yearling,NULL,NULL,0,NULL,NULL 37068,769940,1235777,Editor Supporter Tumbleweed Curious Commentator Custodian,NULL,NULL,0,NULL,NULL 37069,446607,945876,Popular Question,NULL,NULL,0,NULL,NULL 37070,577358,323895,NULL,NULL,NULL,0,NULL,NULL 37071,159230,675326,NULL,NULL,NULL,0,NULL,NULL 37072,256552,717432,NULL,NULL,NULL,0,NULL,NULL 37073,362897,209753,NULL,NULL,NULL,0,NULL,NULL 37074,314910,1007409,NULL,NULL,NULL,0,NULL,NULL 37075,344278,392046,Notable Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Popular Question Great Answer Nice Question Guru Good Answer Notable Question Great Answer Famous Question Good Question Yearling Popular Question Nice Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37076,318070,1035238,NULL,NULL,NULL,0,NULL,NULL 37077,187267,38678,Popular Question,NULL,NULL,0,NULL,NULL 37078,256484,211149,Popular Question,NULL,NULL,0,NULL,NULL 37079,286189,299250,NULL,NULL,NULL,0,NULL,NULL 37080,140287,523622,NULL,NULL,NULL,0,NULL,NULL 37081,883823,1236791,NULL,NULL,NULL,0,NULL,NULL 37082,200399,467849,NULL,NULL,NULL,0,NULL,NULL 37083,47934,566219,Popular Question Self-Learner Curious Caucus Good Question Yearling Caucus,NULL,NULL,0,NULL,NULL 37084,50335,509510,NULL,NULL,NULL,0,NULL,NULL 37085,379286,531021,Custodian Guru Good Answer Nice Answer Enlightened Guru Notable Question Great Answer Caucus Yearling Great Answer Popular Question Revival android Nice Answer Caucus Nice Answer Nice Answer Nice Answer Good Answer Good Answer Custodian Yearling Guru Enlightened Guru Custodian Nice Answer dalvik,NULL,NULL,0,NULL,NULL 37086,200248,1542778,Informed Autobiographer Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 37087,936956,1542778,Informed Autobiographer Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 37088,517041,422996,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 37089,838968,43875,Citizen Patrol Great Question Excavator Yearling Notable Question,NULL,NULL,0,NULL,NULL 37090,735115,981619,NULL,NULL,NULL,0,NULL,NULL 37091,28254,1004479,NULL,NULL,NULL,0,NULL,NULL 37092,132733,1477198,Editor Commentator,NULL,NULL,0,NULL,NULL 37093,167604,22425,Nice Answer Nice Question Yearling Necromancer Announcer Popular Question Nice Answer Yearling Nice Question Necromancer Necromancer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 37094,13210,998431,NULL,NULL,NULL,0,NULL,NULL 37095,458953,446033,NULL,NULL,NULL,0,NULL,NULL 37096,190283,192737,Yearling Revival Revival Revival Revival Student,NULL,NULL,0,NULL,NULL 37097,198758,388466,Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 37098,65206,1124908,NULL,NULL,NULL,0,NULL,NULL 37099,76635,204706,Yearling Necromancer Good Question Favorite Question Revival Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37100,227205,296349,Revival Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37101,678757,417951,Scholar Student Editor,NULL,NULL,0,NULL,NULL 37102,14363,223976,NULL,NULL,NULL,0,NULL,NULL 37103,1480240,1082898,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37104,191641,1415860,Popular Question,NULL,NULL,0,NULL,NULL 37105,163365,870496,NULL,NULL,NULL,0,NULL,NULL 37106,55312,377549,Popular Question Yearling Famous Question Notable Question Nice Question Good Question Yearling Popular Question Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 37107,708650,1032915,NULL,NULL,NULL,0,NULL,NULL 37108,1191108,916217,NULL,NULL,NULL,0,NULL,NULL 37109,631500,475639,Revival Supporter Necromancer Nice Answer Critic Editor Yearling,NULL,NULL,0,NULL,NULL 37110,95117,856688,Necromancer Custodian Yearling Revival Civic Duty Yearling Yearling,NULL,NULL,0,NULL,NULL 37111,33258,1062969,NULL,NULL,NULL,0,NULL,NULL 37112,424379,924001,NULL,NULL,NULL,0,NULL,NULL 37113,237937,543271,NULL,NULL,NULL,0,NULL,NULL 37114,162518,242444,Yearling Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37115,22060,1334162,NULL,NULL,NULL,0,NULL,NULL 37116,4875,149330,Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Famous Question Good Answer Good Question Yearling Nice Question Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37117,596524,534942,NULL,NULL,NULL,0,NULL,NULL 37118,137506,521940,Nice Answer Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 37119,165891,429814,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37120,22528,1170680,Nice Answer,NULL,NULL,0,NULL,NULL 37121,163187,203801,Peer Pressure Nice Answer Enlightened Famous Question Nice Answer Enlightened Notable Question Popular Question Nice Question Good Answer Nice Answer Enlightened Yearling Notable Question Good Answer Disciplined Famous Question Popular Question Guru Nice Question Famous Question Guru Good Answer amazon-ec2 Caucus Good Question Nice Answer Enlightened Yearling Popular Question amazon-web-services Guru Popular Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Caucus Constituent Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 37122,31021,171933,Nice Answer Enlightened Necromancer Pundit Nice Answer Nice Answer Nice Question Announcer Notable Question Popular Question Nice Answer Necromancer Great Answer Nice Answer Popular Question Popular Question Popular Question Announcer Good Answer Necromancer Notable Question javascript Necromancer Good Answer Nice Answer Necromancer Good Answer Nice Answer Necromancer Yearling Nice Question Announcer Good Answer Nice Answer Announcer Famous Question Announcer Necromancer Popular Question Good Question Populist Good Answer Nice Answer Nice Question Necromancer Announcer Necromancer Revival Famous Question Popular Question Custodian Custodian Custodian Good Answer xcode Good Question Popular Question Nice Answer Announcer Nice Answer Nice Answer Caucus Famous Question Yearling Nice Answer Documentation User Announcer Necromancer Announcer Great Answer Good Question Great Answer Guru Nice Answer Caucus Announcer Announcer Inquisitive Popular Question Good Answer Yearling Good Answer Good Answer Great Answer,NULL,strongUpdate 12 2016 strong It 2016 and still prefer laying out my UIs in code and not in Storyboards That being said Storyboards have come long way have removed all the points from this post that simply do not apply anymore in 2016 pp strongUpdate 24 2015 strong Interestingly Apple doesn even use Storyboards in their recently open sourced ResearchKit as href http petersteinberger com blog 2015 researching researchkit rel noreferrer Peter Steinberger has noticed under the subheading Interface Builder pp strongUpdate 10 2014 strong As expected Apple keeps improving Storyboards and Xcode Some of the points that applied to iOS and below don apply to iOS anymore and are now marked as such So while Storyboards inherently still have flaws revise my advice from strong emdon use em strong to strong emselectively use where it makes sense em strong ppEven now that iOS is out would advise delagainst del to use caution when deciding whether to use Storyboards Here are my reasons pulli strongStoryboards fail at runtime not at compile time strong You have typo in segue name or connected it wrong in your storyboard It will blow up at runtime You use custom UIViewController subclass that doesn exist anymore in your storyboard It will blow up at runtime If you do such things in code you will catch them early on during compile time strong emUpdate em strong My new tool strong href https github com jfahrenkrug StoryboardLint rel noreferrer StoryboardLint strong mostly solves this problem lili strongStoryboards get confusing fast strong As your project grows your storyboard gets increasingly more difficult to navigate Also if multiple view controllers have multiple segues to multiple other view controllers your storyboard quickly starts to look like bowl of spaghetti and you ll find yourself zooming in and out and scrolling all over the place to find the view controller you are looking for and to find out what segue points where strong emUpdate em strong This problem can mostly be solved by splitting your Storyboard up into multiple Storyboards as described in href http pilky me 37 rel noreferrer this article by Pilky and href http robsprogramknowledge blogspot pt 2012 01 uistoryboard best practices html rel noreferrer this article by Robert Brown lili strongStoryboards make working in team harder strong Because you usually only have one huge storyboard file for your project having multiple developers regularly making changes to that one file can be headache Changes need to be merged and conflicts resolved When conflict occurs it is hard to tell how to resolve it Xcode generates the storyboard XML file and it was not really designed with the goal in mind that human would have to read let alone edit it lili strongStoryboards make code reviews hard or nearly impossible strong Peer code reviews are great thing to do on your team However when you make changes to storyboard it is almost impossible to review these changes with different developer All you can pull up is diff of huge XML file Deciphering what really changed and if those changes are correct or if they broke something is really hard lili strongStoryboards hinder code reuse strong In my iOS projects usually create class that contains all the colors and fonts and margins and insets that use throughout the app to give it consistent look and feel It one line change if have to adjust any of those values for the whole app If you set such values in the storyboard you duplicate them and will need to find every single occurrence when you want to change them Chances are high that you miss one because there no search and replace in storyboards lili strongStoryboards require constant context switches strong find myself working and navigating much faster in code than in storyboards When your app uses storyboards you constantly switch your context Oh want tap on this table view cell to load different view controller now have to open up the storyboard find the right view controller create new segue to the other view controller that also have to find give the segue name remember that name can use constants or variables in storyboards switch back to code and hope don mistype the name of that segue for my prepareForSegue method How wish could just type those lines of code right here where am No it not fun Switching between code and storyboard and between keyboard and mouse gets old fast and slows you down lili strongStoryboards are hard to refactor strong When you refactor your code you have to make sure it still matches what your storyboard expects When you move things around in your storyboard you will only find out at runtime if it still works with your code It feels to me as if have to keep two worlds in sync It feels brittle and discourages change in my humble opinion lili strongStoryboards are less flexible strong In code you can basically do anything you want With storyboards you are limited to subset of what you can do in code Especially when you want to do some advanced things with animations and transitions you will find yourself fighting the storyboard to get it to work lili strongStoryboards don let you change the type of special view controllers strong You want to change codeUITableViewController code into codeUICollectionViewController code Or into plain codeUIViewController code Not possible in Storyboard You have to delete the old view controller and create new one and re connect all the segues It much easier to do such change in code lili strongStoryboards add two extra liabilities to your project strong The Storyboard Editor tool that generates the storyboard XML and the runtime component that parses the XML and creates UI and controller objects from it Both parts can have bugs that you can fix lili strongStoryboards don allow you to add subview to codeUIImageView code strong Who knows why lili strongStoryboards don allow you to enable Auto Layout for individual View Controller strong By checking unchecking the Auto Layout option in Storyboard the change is applied to ALL controllers in the Storyboard Thanks to Sava Mazăre for this point lili strongStoryboards have higher risk of breaking backwards compatibility strong Xcode sometimes changes the Storyboard file format and doesn guarantee in any way that you will be able to open Storyboard files that you create today few years or even months from now Thanks to thoughtadvances for this point href https stackoverflow com questions 9404471 when to use storyboard and when to use xibs 19457257 noredirect comment33341639 19457257 See the original comment lili strongStoryboards can make your code more complex strong When you create your view controllers in code you can create custom codeinit code methods for example codeinitWithCustomer code That way you can make the codecustomer code inside of your view controller immutable and make sure that this view controller cannot be created without codecustomer code object This is not possible when using Storyboards You will have to wait for the codeprepareForSegue sender code method to be called and then you will have to set the codecustomer code property on your view controller which means you have to make this property mutable and you will have to allow for the view controller to be created without codecustomer code object In my experience this can greatly complicate your code and makes it harder to reason about the flow of your app strongUpdate 16 strong Chris Dzombak wrote href https www dzombak com blog 2016 09 Fixing Storyboard Segues Only Apple Can Do This html rel noreferrer great article about this problem lili strongIt McDonald strong To say it in Steve Jobs words about Microsoft href http youtu be EJWWtV1w5fw 1m31s rel noreferrer It McDonald video li ulpThese are my reasons for why really don like working with storyboards Some of these reasons also apply to XIBs On the storyboard based projects that ve worked on they have cost me much more time than they have saved and they made things more complicated instead of easier ppWhen create my UI and application flow in code am much more in control of what is going on it is easier to debug it is easier to spot mistakes early on it is easier to explain my changes to other developers and it is easier to support iPhone and iPad ppHowever do agree that laying out emall of your UI em in code might not be one size fits all solution for every project If your iPad UI differs greatly from your iPhone UI in certain places it might make sense to create XIB for just those areas ppA lot of the problems outlined above could be fixed by Apple and hope that that what they will do ppJust my two cents pp strongUpdate strong In Xcode Apple took away the option to create project without Storyboard ve written small script that ports Xcode templates with Storyboard opt out option to Xcode href https github com jfahrenkrug Xcode4templates rel noreferrer https github com jfahrenkrug Xcode4templates Good question was working in team But even if would not have worked in team would have preferred to not use Storyboards and still do am looking forward to using Xcode and seeing how handling Storyboards has improved Xcode looks great so far ll talk to some engineers here at WWDC to find out more pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy Thank you for your kind words glad it was helpful pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy Ha You are absolutely right ll fix it Thanks pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy Thanks John don consider myself to be Python expert So this is an interesting alternative thanks pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy Can you edit your comment and add more details don know what you mean with within function bundled with blueprint address pThis is how you can do it you can run this file as is ppre codeimport requestsimport unittestfrom unittest import mock This is the class we want to testclass MyGreatClass def fetch json self url response requests get url return response json This method will be used by the mock to replace requests getdef mocked requests get args kwargs class MockResponse def init self json data status code self json data json data self status code status code def json self return self json data if args http someurl com test json return MockResponse key1 value1 200 elif args http someotherurl com anothertest json return MockResponse key2 value2 200 return MockResponse None 404 Our test case classclass MyGreatClassTestCase unittest TestCase We patch requests get with our own method The mock object is passed in to our test case method patch requests get side effect mocked requests get def test fetch self mock get Assert requests get calls mgc MyGreatClass json data mgc fetch json http someurl com test json self assertEqual json data key1 value1 json data mgc fetch json http someotherurl com anothertest json self assertEqual json data key2 value2 json data mgc fetch json http nonexistenturl com cantfindme json self assertIsNone json data We can even assert that our mocked method was called with the right parameters self assertIn mock call http someurl com test json mock get call args list self assertIn mock call http someotherurl com anothertest json mock get call args list self assertEqual len mock get call args list if name main unittest main code prep strongImportant Note strong If your codeMyGreatClass code class lives in different package say codemy great package code you have to mock codemy great package requests get code instead of just request get In that case your test case would look like this ppre codeimport unittestfrom unittest import mockfrom my great package import MyGreatClass This method will be used by the mock to replace requests getdef mocked requests get args kwargs Same as aboveclass MyGreatClassTestCase unittest TestCase Now we must patch my great package requests get patch my great package requests get side effect mocked requests get def test fetch self mock get Same as aboveif name main unittest main code prepEnjoy Thanks for sharing Glad you figured it out,0,NULL,NULL 37123,27887,1004469,NULL,NULL,NULL,0,NULL,NULL 37124,168136,423409,Yearling Nice Question Popular Question Notable Question Nice Question Yearling Autobiographer Custodian,NULL,NULL,0,NULL,NULL 37125,297705,1127899,Yearling Popular Question Yearling Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 37126,782455,294205,NULL,NULL,NULL,0,NULL,NULL 37127,212966,457337,NULL,NULL,NULL,0,NULL,NULL 37128,428035,941538,NULL,NULL,NULL,0,NULL,NULL 37129,354835,808884,NULL,NULL,NULL,0,NULL,NULL 37130,613316,532448,NULL,NULL,NULL,0,NULL,NULL 37131,1414085,962712,Nice Answer,NULL,NULL,0,NULL,NULL 37132,164516,400402,NULL,NULL,NULL,0,NULL,NULL 37133,517194,808921,Notable Question Nice Answer Yearling Nice Answer Nice Question Yearling Necromancer Announcer Announcer Nice Answer Enlightened Booster Good Answer Great Answer Nice Answer Enlightened Guru Publicist Yearling Nice Answer,NULL,pAs mentioned by using codeactiveDeadlineSeconds code is an easy option but comes with the risk of loosing all pods at once To mitigate that risk use codedeployment code to manage the pods and their rollout and configure small second container along with the actual application The small helper could be configured like this href https kubernetes io docs tasks configure pod container configure liveness readiness probes rel nofollow noreferrer following the official docs ppre codeapiVersion v1kind Podmetadata name app livenessspec containers name liveness args bin sh touch tmp healthy sleep RANDOM 3600 1800 rm rf tmp healthy sleep 600 image gcr io google containers busybox livenessProbe exec command cat tmp healthy initialDelaySeconds periodSeconds name yourapplication imagePullPolicy Always image nginx alpine code prepWith this configuration every pod would break randomly within the configured timeframe here between 30 and 90mins and that would trigger the start of new pod The codeimagePullPolicy Always code would then make sure that the image is updated during that cycle ppThis of course assumes that your application versions are always available under the same name tag according to this github issue thread it not the case that failing container will reschedule the entire pod https github com kubernetes kubernetes issues 40908,0,NULL,NULL 37134,4393269,1031012,NULL,NULL,NULL,0,NULL,NULL 37135,882202,1392589,NULL,NULL,NULL,0,NULL,NULL 37136,924533,471011,Notable Question Good Question Popular Question Good Question Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Civic Duty Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Yearling Great Question Nice Question Notable Question Famous Question Famous Question Notable Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 37137,547553,1154688,NULL,NULL,NULL,0,NULL,NULL 37138,196952,1096125,NULL,NULL,NULL,0,NULL,NULL 37139,233958,137713,Popular Question,NULL,NULL,0,NULL,NULL 37140,246850,268715,NULL,NULL,NULL,0,NULL,NULL 37141,140696,595817,Yearling Good Answer,NULL,NULL,0,NULL,NULL 37142,165939,157536,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37143,434296,999359,NULL,NULL,NULL,0,NULL,NULL 37144,1567836,864463,NULL,NULL,NULL,0,NULL,NULL 37145,11121,1195191,Commentator,NULL,NULL,0,NULL,NULL 37146,3799315,477717,NULL,NULL,NULL,0,NULL,NULL 37147,874115,1232897,NULL,NULL,NULL,0,NULL,NULL 37148,52586,358893,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37149,324187,396268,Notable Question,NULL,NULL,0,NULL,NULL 37150,486281,1195721,NULL,NULL,NULL,0,NULL,NULL 37151,323460,850727,NULL,NULL,NULL,0,NULL,NULL 37152,2504435,850727,NULL,NULL,NULL,0,NULL,NULL 37153,43650,706759,Yearling Caucus Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 37154,212039,839404,Informed Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 37155,263242,653771,Yearling,NULL,NULL,0,NULL,NULL 37156,21509,377961,Famous Question Custodian Civic Duty Caucus Good Question Yearling Caucus Famous Question Documentation User,NULL,NULL,0,NULL,NULL 37157,483358,1440720,Nice Answer Great Answer swing Custodian Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 37158,457463,1199397,Famous Question Yearling Famous Question Yearling Famous Question Notable Question Notable Question Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 37159,635737,1329161,NULL,NULL,NULL,0,NULL,NULL 37160,18573,395399,NULL,NULL,NULL,0,NULL,NULL 37161,202334,671067,Editor,NULL,NULL,0,NULL,NULL 37162,48062,507535,NULL,NULL,NULL,0,NULL,NULL 37163,191896,684166,Revival,NULL,NULL,0,NULL,NULL 37164,42658,234047,Great Answer Nice Answer Enlightened Nice Answer Necromancer Revival Good Answer Good Question Revival Yearling node.js Nice Answer Revival Good Answer Famous Question Nice Answer Guru Good Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 37165,185113,1040572,Informed Autobiographer,NULL,NULL,0,NULL,NULL 37166,168081,482449,NULL,NULL,NULL,0,NULL,NULL 37167,365679,244374,Yearling Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question Nice Question Famous Question Yearling Notable Question Good Question Notable Question Famous Question Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 37168,59216,366254,Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 37169,80965,219710,Student Yearling Informed Scholar Popular Question Notable Question Excavator Famous Question Nice Question,NULL,NULL,0,NULL,NULL 37170,1300528,1469971,NULL,NULL,NULL,0,NULL,NULL 37171,565849,936059,NULL,NULL,NULL,0,NULL,NULL 37172,132772,943611,Notable Question Yearling Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37173,36662,379506,NULL,NULL,NULL,0,NULL,NULL 37174,164444,298599,NULL,NULL,NULL,0,NULL,NULL 37175,1031178,58153,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37176,186873,1133339,NULL,NULL,NULL,0,NULL,NULL 37177,166297,222995,NULL,NULL,NULL,0,NULL,NULL 37178,532836,804108,NULL,NULL,NULL,0,NULL,NULL 37179,450099,1032916,NULL,NULL,NULL,0,NULL,NULL 37180,470527,994781,NULL,NULL,NULL,0,NULL,NULL 37181,352810,169359,Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 37182,400581,1163792,NULL,NULL,NULL,0,NULL,NULL 37183,171837,566258,NULL,NULL,NULL,0,NULL,NULL 37184,190305,338394,Famous Question,NULL,NULL,0,NULL,NULL 37185,468362,145400,Good Answer Good Answer Good Answer Announcer Good Answer Good Answer Necromancer Nice Answer Nice Answer Nice Answer Good Question Notable Question Yearling Announcer Good Answer Nice Answer Enlightened Guru Necromancer Revival Guru Booster Nice Question Nice Answer Enlightened Guru Booster python Announcer Guru Announcer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Question Notable Question Nice Answer Announcer Announcer Notable Question Guru Announcer Announcer Good Answer Notable Question Announcer Announcer Nice Answer Announcer Necromancer Announcer Great Answer Good Answer Necromancer Famous Question Yearling Announcer Nice Answer Enlightened,NULL,pthis is actually quite tricky particularly if you want useful error message when things are inconsistent while correctly accepting duplicate but consistent entries something no other answer here does ppassuming you don have huge numbers of entries recursive function is easiest ppre codedef merge path None merges into if path is None path for key in if key in if isinstance key dict and isinstance key dict merge key key path str key elif key key pass same leaf value else raise Exception Conflict at join path str key else key key return worksprint merge has conflictmerge code prepnote that this mutates codea code the contents of codeb code are added to codea code which is also returned if you want to keep codea code you could call it like codemerge dict code ppagf pointed out below that you may have more than two dicts in which case you can use ppre codereduce merge dict1 dict2 dict3 code prepwhere everything will be added to dict1 pp note edited my initial answer to mutate the first argument that makes the reduce easier to explain ppps in python you will also need codefrom functools import reduce code Awesome thank you pI do not quite understand why you want to use commandline arguments instead of simply reading from strongstandard input strong Python has simple idiom for iterating over lines at stdin ppre codeimport sysfor line in sys stdin sys stdout write line code prepMy usage example ppre code echo first line nsecond line python python iterate stdin py first linesecond line code prepYour usage example ppre code echo days go by and still python python iterate stdin pydays go by and still code pre you must execute your Python script with Python and not with your shell Do python pipe2py py or add shebang to the script,0,NULL,NULL 37186,517832,825729,NULL,NULL,NULL,0,NULL,NULL 37187,309605,363859,Informed Suffrage Vox Populi Yearling Yearling Yearling,NULL,,0,, 37188,133031,690167,NULL,NULL,NULL,0,NULL,NULL 37189,253989,589798,NULL,NULL,NULL,0,NULL,NULL 37190,473488,901248,NULL,NULL,NULL,0,NULL,NULL 37191,146617,1037167,Popular Question,NULL,NULL,0,NULL,NULL 37192,6201377,1037167,Popular Question,NULL,NULL,0,NULL,NULL 37193,358642,1071075,NULL,NULL,NULL,0,NULL,NULL 37194,21310,131460,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 37195,62194,235945,Nice Question Good Answer Yearling Nice Answer Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 37196,46229,918104,Census,NULL,NULL,0,NULL,NULL 37197,491575,1158339,NULL,NULL,NULL,0,NULL,NULL 37198,437956,488491,Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Popular Question Nice Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 37199,2897734,1474064,NULL,NULL,NULL,0,NULL,NULL 37200,675295,1031182,NULL,NULL,NULL,0,NULL,NULL 37201,369584,402549,NULL,NULL,NULL,0,NULL,NULL 37202,40927,565752,NULL,NULL,NULL,0,NULL,NULL 37203,742784,514031,Announcer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 37204,404606,425110,NULL,NULL,NULL,0,NULL,NULL 37205,587525,1205220,Informed,NULL,NULL,0,NULL,NULL 37206,48160,252813,Notable Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 37207,173713,344501,Necromancer Nice Answer Curious Informed Autobiographer Custodian Necromancer Yearling Good Answer Popular Question Announcer Popular Question Announcer,NULL,pAh codecontains code supposedly one of the top five FAQs re Clojure ppIt does emnot em check whether collection contains value it checks whether an item could be retrieved with codeget code or in other words whether collection contains key This makes sense for sets which can be thought of as making no distinction between keys and values maps so code contains foo foo code is codetrue code and vectors but note that code contains foo bar code is codetrue code because the keys here are indices and the vector in question does contain the index code0 code pp strikeTo add to the confusion in cases where it doesn make sense to call codecontains code it simply return codefalse code this is what happens in code contains foo code emand also em code contains 100 101 102 101 code strike emUpdate em In Clojure codecontains code throws when handed an object of type that doesn support the intended key membership test ppThe correct way to do what you re trying to do is as follows ppre code most of the time this works some 101 100 101 102 code prepWhen searching for one of bunch of items you can use larger set when searching for codefalse code codenil code you can use codefalse code codenil code because code code returns codex code thus code nil nil code is codenil code when searching for one of multiple items some of which may be codefalse code or codenil code you can use ppre code some zipmap the items repeat true the collection code prep Note that the items can be passed to codezipmap code in any type of collection This is stupid The main distinction of collection is the membership relation It should had been the most important function for collections https en wikipedia org wiki Set mathematics Membership,0,NULL,NULL 37208,10709,365238,Famous Question Yearling Good Question Famous Question Nice Answer Notable Question Yearling Notable Question Popular Question Notable Question Yearling Nice Question Great Question,NULL,NULL,1,NULL,Disable auto completion of remote branches in Git Bash windows git pI working on fairly large git repo with couple of thousand remote branches am used to using auto completion using TAB in the console Git Bash in that case so unconsciously do that for git commands too ppe type ppre codegit checkout task TAB code prepwith the effect that the console stalls for often minutes Is there way to limit auto completion to local branches only pModifying code brew prefix etc bash completion git completion bash code is not good idea because it will be overwritten every time you update Git through Homebrew ppCombining all the answers overwrite only code git checkout code function from the completion file in my code bash profile code after sourcing the completion file ppre code git checkout git has doubledash amp amp return case cur in conflict gitcomp diff3 merge cur conflict gitcomp quiet ours theirs track no track merge conflict orphan patch check if track no track or no guess was specified if so disable DWIM mode local flags track no track no guess track if git find on cmdline flags then track fi only search local branches instead of remote branches if origin isn specified if cur origin then gitcomp nl git refs track else gitcomp nl git heads track fi esac code pre 37209,77252,151833,NULL,NULL,NULL,0,NULL,NULL 37210,3480399,339708,NULL,NULL,NULL,0,NULL,NULL 37211,180770,1075839,NULL,NULL,NULL,0,NULL,NULL 37212,80534,11507,Notable Question Necromancer Yearling Caucus Constituent Necromancer Famous Question Good Question Popular Question Nice Question Popular Question Yearling Famous Question Nice Answer Custodian Popular Question Benefactor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37213,174928,773454,NULL,NULL,NULL,0,NULL,NULL 37214,15154,206684,Popular Question Necromancer Notable Question Guru Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 37215,463247,1120622,Notable Question Yearling Curious Caucus Popular Question Popular Question Census Caucus Custodian Yearling Tenacious,NULL,NULL,0,NULL,NULL 37216,227360,913054,NULL,NULL,NULL,0,NULL,NULL 37217,3861666,913054,NULL,NULL,NULL,0,NULL,NULL 37218,1396255,839950,NULL,NULL,NULL,0,NULL,NULL 37219,499719,1358289,Revival,NULL,NULL,0,NULL,NULL 37220,237900,759904,NULL,NULL,NULL,0,NULL,NULL 37221,6261,1251111,NULL,NULL,NULL,0,NULL,NULL 37222,65130,797072,NULL,NULL,NULL,0,NULL,NULL 37223,34764,647824,Supporter,NULL,NULL,0,NULL,NULL 37224,133416,837816,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 37225,20798,101739,NULL,NULL,NULL,0,NULL,NULL 37226,493100,1318110,Nice Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 37227,199719,474994,Critic Notable Question,NULL,NULL,0,NULL,NULL 37228,320176,1286692,NULL,NULL,NULL,0,NULL,NULL 37229,3017298,17271,Talkative,NULL,NULL,0,NULL,NULL 37230,114528,1245253,Notable Question,NULL,NULL,0,NULL,NULL 37231,297666,186651,NULL,NULL,NULL,0,NULL,NULL 37232,118449,547394,NULL,NULL,NULL,0,NULL,NULL 37233,20258,309844,Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 37234,698778,377391,NULL,NULL,NULL,0,NULL,NULL 37235,319241,1137432,Yearling Popular Question Nice Answer Nice Answer Notable Question Good Answer Nice Answer Guru Nice Answer Enlightened Yearling Good Answer Good Answer Popular Question Nice Answer Enlightened Guru Nice Answer Enlightened Notable Question Nice Answer Enlightened Popular Question Yearling Popular Question Notable Question Good Answer Nice Answer Notable Question Great Answer,NULL,NULL,0,NULL,NULL 37236,11900,173657,NULL,NULL,NULL,0,NULL,NULL 37237,82761,518340,NULL,NULL,NULL,0,NULL,NULL 37238,1041003,134642,Critic Good Answer Autobiographer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 37239,372330,991666,Popular Question,NULL,NULL,0,NULL,NULL 37240,444275,1156794,Supporter Student,NULL,NULL,0,NULL,NULL 37241,41288,785070,Popular Question,NULL,NULL,0,NULL,NULL 37242,11385,235793,NULL,NULL,NULL,0,NULL,NULL 37243,20543,486688,Nice Answer Enlightened Nice Answer Revival Revival Custodian Nice Question Notable Question Necromancer Necromancer Yearling Necromancer Popular Question Necromancer Necromancer Yearling Popular Question Necromancer Nice Answer Nice Answer Revival Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 37244,1089845,1102528,NULL,NULL,NULL,0,NULL,NULL 37245,10080811,1102528,NULL,NULL,NULL,0,NULL,NULL 37246,412648,520895,NULL,NULL,NULL,0,NULL,NULL 37247,158590,195432,NULL,NULL,NULL,0,NULL,NULL 37248,279501,889001,Famous Question Good Question,NULL,NULL,0,NULL,NULL 37249,791920,735380,NULL,NULL,NULL,0,NULL,NULL 37250,1451619,1165984,Custodian,NULL,NULL,0,NULL,NULL 37251,208708,146624,Census,NULL,NULL,0,NULL,NULL 37252,215712,673813,NULL,NULL,NULL,0,NULL,NULL 37253,55378,1034108,Nice Answer Critic,NULL,NULL,0,NULL,NULL 37254,496315,414094,NULL,NULL,NULL,0,NULL,NULL 37255,336211,647898,Popular Question Famous Question Popular Question Necromancer Revival Notable Question Notable Question Notable Question Nice Answer Civic Duty Caucus Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 37256,107850,6013,Famous Question Famous Question Nice Answer Popular Question Good Question Necromancer Nice Question Yearling Nice Question Favorite Question Nice Answer Enlightened Notable Question Nice Question Nice Question Nice Answer Notable Question Famous Question Popular Question Caucus Constituent Yearling Good Answer Good Answer Benefactor Nice Answer Enlightened Yearling Nice Answer Great Answer Notable Question,NULL,NULL,0,NULL,NULL 37257,8237980,660513,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37258,34927,255832,Necromancer Yearling Organizer Tag Editor Nice Answer Commentator Announcer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 37259,623076,235771,Popular Question Good Question Favorite Question Nice Question Great Question Nice Answer Enlightened Nice Question Custodian Custodian Nice Answer Famous Question Popular Question Unsung Hero Yearling Popular Question Popular Question Nice Question Nice Question Famous Question Yearling Nice Answer Enlightened Notable Question Nice Question Nice Answer Enlightened Good Question quill Nice Question Good Answer javascript,NULL,NULL,0,NULL,NULL 37260,1508687,879165,NULL,NULL,NULL,0,NULL,NULL 37261,136228,963868,Popular Question,NULL,NULL,0,NULL,NULL 37262,180985,1050344,NULL,NULL,NULL,0,NULL,NULL 37263,373979,198902,NULL,NULL,NULL,0,NULL,NULL 37264,29462,109119,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 37265,1347906,1524193,NULL,NULL,NULL,0,NULL,NULL 37266,395014,297140,Yearling Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 37267,12173,231695,Informed Yearling Good Answer Critic,NULL,NULL,0,NULL,NULL 37268,398109,1491824,NULL,NULL,NULL,0,NULL,NULL 37269,1123712,477841,NULL,NULL,NULL,0,NULL,NULL 37270,206950,1187099,NULL,NULL,NULL,0,NULL,NULL 37271,1768256,288346,Caucus Yearling Good Answer Civic Duty Popular Question Necromancer Curious Popular Question Yearling,NULL,NULL,0,NULL,NULL 37272,424997,1251820,NULL,NULL,NULL,0,NULL,NULL 37273,424999,1251820,NULL,NULL,NULL,0,NULL,NULL 37274,234274,1563623,NULL,NULL,NULL,0,NULL,NULL 37275,719055,429382,Editor Notable Question,NULL,NULL,0,NULL,NULL 37276,17012,639507,NULL,NULL,NULL,0,NULL,NULL 37277,92897,901430,Student,NULL,NULL,0,NULL,NULL 37278,453502,1186862,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 37279,192572,643901,NULL,NULL,NULL,0,NULL,NULL 37280,233079,218307,Necromancer Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 37281,286068,1432796,Citizen Patrol,NULL,NULL,0,NULL,NULL 37282,217092,1278745,NULL,NULL,NULL,0,NULL,NULL 37283,403812,550692,NULL,NULL,NULL,0,NULL,NULL 37284,756438,1468251,NULL,NULL,NULL,0,NULL,NULL 37285,107519,1162075,Supporter,NULL,NULL,0,NULL,NULL 37286,245728,242744,Good Answer,NULL,NULL,0,NULL,NULL 37287,80572,379936,Yearling Necromancer Tumbleweed Nice Answer Revival Yearling Necromancer Nice Answer Yearling Good Answer Enlightened Good Answer Yearling Guru Yearling Yearling Good Answer Student,NULL,NULL,0,NULL,NULL 37288,153380,1427723,NULL,NULL,NULL,0,NULL,NULL 37289,744242,1491530,NULL,NULL,NULL,0,NULL,NULL 37290,1023751,686008,flash Good Answer Yearling Nice Answer actionscript-3 Census Yearling Caucus Custodian Cleanup Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37291,9757910,499404,NULL,NULL,NULL,0,NULL,NULL 37292,700760,225137,NULL,NULL,NULL,0,NULL,NULL 37293,1083500,113158,Good Answer Popular Question Nice Answer Yearling Good Answer Popular Question Popular Question Popular Question Great Answer Good Question Popular Question Nice Answer Caucus Good Answer Famous Question Notable Question Yearling Caucus Nice Answer Nice Answer Enlightened Census Nice Answer Caucus Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 37294,142523,719850,NULL,NULL,NULL,0,NULL,NULL 37295,353089,526964,NULL,NULL,NULL,0,NULL,NULL 37296,164967,631204,Yearling Populist Necromancer Yearling Revival Revival Revival Necromancer Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 37297,90296,73826,Yearling Notable Question Nice Answer Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37298,109711,1498921,Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 37299,134772,910324,NULL,NULL,NULL,0,NULL,NULL 37300,3845070,838685,Notable Question Promoter Popular Question Notable Question Popular Question Benefactor Famous Question Custodian Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 37301,184000,1253437,Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 37302,33019,2938,node.js Sportsmanship Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Question Good Question Yearling Notable Question Nice Question Great Question Nice Answer Great Question Notable Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Notable Question Favorite Question Famous Question Nice Answer Nice Answer Enlightened Famous Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37303,230450,652766,NULL,NULL,NULL,0,NULL,NULL 37304,44496,495476,Critic,NULL,NULL,0,NULL,NULL 37305,108979,1513325,NULL,NULL,NULL,0,NULL,NULL 37306,171333,321583,Nice Question Necromancer Yearling Necromancer Nice Answer Nice Answer Popular Question Popular Question Yearling Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 37307,423647,809968,Editor Student Tumbleweed,NULL,NULL,0,NULL,NULL 37308,82753,21220,Necromancer,NULL,NULL,0,NULL,NULL 37309,709134,333966,Revival Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 37310,20647,130830,Yearling,NULL,NULL,0,NULL,NULL 37311,111425,538697,Yearling Critic Yearling Commentator Yearling Yearling marklogic Yearling,NULL,NULL,0,NULL,NULL 37312,8578,248412,Famous Question Necromancer Good Question Yearling Popular Question Nice Answer Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 37313,409452,385885,Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 37314,8106120,795289,NULL,NULL,NULL,0,NULL,NULL 37315,196389,795289,NULL,NULL,NULL,0,NULL,NULL 37316,43508,1337061,NULL,NULL,NULL,0,NULL,NULL 37317,227006,2908,Nice Answer Good Answer Necromancer Sportsmanship python Favorite Question Nice Answer Great Question Nice Answer Guru Nice Answer Famous Question Guru Popular Question Famous Question Famous Question Yearling Nice Answer Good Question Great Answer Nice Answer Notable Question Caucus Great Answer Nice Answer Great Answer audio Nice Answer Enlightened Necromancer Nice Answer Good Answer Nice Answer Yearling Vox Populi Nice Answer Nice Answer Good Answer Great Answer django Nice Answer Nice Answer Nice Answer Census Popular Question Nice Answer Nice Answer Good Answer Nice Question Popular Question Nice Answer Great Answer Yearling Nice Answer Enlightened Notable Question Good Question pydub,NULL,NULL,0,NULL,NULL 37318,155493,1115311,NULL,NULL,NULL,0,NULL,NULL 37319,211392,733588,NULL,NULL,NULL,0,NULL,NULL 37320,120063,910438,NULL,NULL,NULL,0,NULL,NULL 37321,48761,1203997,Yearling Popular Question Popular Question Popular Question Good Question Necromancer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 37322,131817,819671,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 37323,7307423,1155155,NULL,NULL,NULL,0,NULL,NULL 37324,761621,1155155,NULL,NULL,NULL,0,NULL,NULL 37325,155318,1149400,NULL,NULL,NULL,0,NULL,NULL 37326,733811,516666,Yearling Good Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 37327,261850,573615,NULL,NULL,NULL,0,NULL,NULL 37328,2625181,266227,NULL,NULL,NULL,0,NULL,NULL 37329,309879,266227,NULL,NULL,NULL,0,NULL,NULL 37330,281752,515525,NULL,NULL,NULL,0,NULL,NULL 37331,892443,1278183,NULL,NULL,NULL,0,NULL,NULL 37332,264973,1398673,Necromancer,NULL,NULL,0,NULL,NULL 37333,197492,1112632,Popular Question Custodian Popular Question Caucus Notable Question Notable Question Yearling Notable Question Popular Question Nice Answer Notable Question Popular Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 37334,238507,109823,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37335,275796,1096460,Notable Question Popular Question Yearling Popular Question Notable Question Good Question Nice Question Famous Question Yearling Popular Question Popular Question Nice Question Good Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 37336,688800,1187141,NULL,NULL,NULL,0,NULL,NULL 37337,63940,785603,NULL,NULL,NULL,0,NULL,NULL 37338,79115,651334,NULL,NULL,NULL,0,NULL,NULL 37339,267083,522021,NULL,NULL,NULL,0,NULL,NULL 37340,313783,90547,NULL,NULL,NULL,0,NULL,NULL 37341,36956,841863,NULL,NULL,NULL,0,NULL,NULL 37342,6896206,959846,NULL,NULL,NULL,0,NULL,NULL 37343,161036,1232497,Yearling Good Answer Documentation User Student Yearling Self-Learner,NULL,NULL,0,NULL,NULL 37344,257420,1378840,NULL,NULL,,0,, 37345,60437,1096944,NULL,NULL,NULL,0,NULL,NULL 37346,899256,848653,NULL,NULL,NULL,0,NULL,NULL 37347,1020713,1234707,NULL,NULL,NULL,0,NULL,NULL 37348,545849,881845,NULL,NULL,NULL,0,NULL,NULL 37349,890401,1142604,NULL,NULL,NULL,0,NULL,NULL 37350,151561,219769,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37351,414647,403081,NULL,NULL,NULL,0,NULL,NULL 37352,183244,651295,NULL,NULL,NULL,0,NULL,NULL 37353,202136,988809,NULL,NULL,NULL,0,NULL,NULL 37354,746657,297952,Self-Learner Popular Question Notable Question Revival Caucus,NULL,NULL,0,NULL,NULL 37355,132412,660394,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37356,703461,1323346,NULL,NULL,NULL,0,NULL,NULL 37357,239743,407183,Nice Answer Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 37358,91691,536647,NULL,NULL,NULL,0,NULL,NULL 37359,167141,536647,NULL,NULL,NULL,0,NULL,NULL 37360,197729,247948,Yearling,NULL,NULL,0,NULL,NULL 37361,2349,240965,Notable Question,NULL,NULL,0,NULL,NULL 37362,675083,1114562,Editor,NULL,NULL,0,NULL,NULL 37363,12582,35829,entity-framework Nice Question Nice Answer Popular Question Yearling Nice Question Popular Question Good Answer Nice Question Popular Question Popular Question Caucus Famous Question Documentation User Yearling Famous Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 37364,978689,1123941,Popular Question,NULL,NULL,0,NULL,NULL 37365,251608,990977,NULL,NULL,NULL,0,NULL,NULL 37366,215388,958135,NULL,NULL,NULL,0,NULL,NULL 37367,7199,758735,Caucus Constituent,NULL,NULL,0,NULL,NULL 37368,168464,759714,Yearling Popular Question Good Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 37369,35853,975030,NULL,NULL,NULL,0,NULL,NULL 37370,72970,805116,Yearling,NULL,NULL,0,NULL,NULL 37371,722006,10289,Nice Question,NULL,NULL,0,NULL,NULL 37372,359201,491058,NULL,NULL,NULL,0,NULL,NULL 37373,1208134,1347145,NULL,NULL,NULL,0,NULL,NULL 37374,201942,685337,NULL,NULL,NULL,0,NULL,NULL 37375,776074,1378996,NULL,NULL,NULL,0,NULL,NULL 37376,266255,1127445,Yearling Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 37377,918244,1154124,NULL,NULL,NULL,0,NULL,NULL 37378,224637,302731,Curious Necromancer Popular Question Notable Question Announcer Yearling,NULL,pDidn see an explanation of the cause so have posted this answer here ppFrom href https github com webpack extract text webpack plugin api https github com webpack extract text webpack plugin api pblockquote codeExtractTextPlugin extract notExtractLoader loader options code Creates an extracting loader from an existing loader codenotExtractLoader code optional the loader that should be used when the css is not extracted in an additional chunk when allChunks false codeloader code the loader that should be used for converting the resource to css exporting module codeoptions code codepublicPath code override the publicPath setting for this loader blockquotepThe code extract code method should receive loader that outputs codecss code What was happening was that it was receiving codestyle loader code which outputs emjavascript code em which is intended to be injected into webpage This code would try to access codewindow code ppYou should not pass loader string with codestyle code to code extract code However if you set codeallChunks false code then it will not build CSS files for non initial chunks Therefore it needs to know what loader to use to inject into the page ppTip Webpack is tool that really needs to be understood in depth or you can run into lots of strange issues Best things ve ever heard about webpack,0,NULL,NULL 37379,220609,195029,Yearling,NULL,NULL,0,NULL,NULL 37380,333909,1150063,NULL,NULL,NULL,0,NULL,NULL 37381,1088459,890512,NULL,NULL,NULL,0,NULL,NULL 37382,1345137,1212409,Popular Question Excavator,NULL,NULL,0,NULL,NULL 37383,7893467,1212409,Popular Question Excavator,NULL,NULL,0,NULL,NULL 37384,73536,118843,Self-Learner Popular Question Notable Question Necromancer Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 37385,120190,931903,Supporter Popular Question,NULL,NULL,0,NULL,NULL 37386,304246,292291,Notable Question Investor Notable Question Critic Popular Question Altruist Nice Question Nice Question Nice Question Notable Question Notable Question Good Question Good Question Nice Question Popular Question Nice Question Famous Question Favorite Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Famous Question Good Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Stellar Question Good Question Good Question Nice Question Great Question Famous Question Notable Question Good Question Famous Question Nice Question Nice Question Notable Question Popular Question Great Question Favorite Question Notable Question Popular Question Famous Question Popular Question Good Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Notable Question Nice Question Good Question Notable Question Notable Question Popular Question Nice Question Nice Question Good Question Good Question Famous Question Popular Question Nice Question Nice Question Famous Question Famous Question Famous Question Popular Question Popular Question Notable Question Notable Question Socratic Famous Question Famous Question Popular Question Popular Question Popular Question Nice Answer Notable Question Popular Question Not a Robot Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Favorite Question Notable Question Famous Question Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Good Question Notable Question Good Question Nice Question Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Popular Question Notable Question Notable Question Nice Question Yearling Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Good Question Notable Question Popular Question Favorite Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Good Question Famous Question Popular Question Notable Question Nice Question Good Question Nice Question Notable Question Notable Question Famous Question Nice Question Nice Question Nice Question Notable Question Popular Question Popular Question Favorite Question Famous Question Great Question Famous Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Nice Question Nice Question Nice Question Stellar Question Popular Question Good Question Popular Question Famous Question Famous Question Famous Question Notable Question Popular Question Famous Question Famous Question Notable Question Good Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Famous Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question Good Question Notable Question Famous Question Famous Question Popular Question Notable Question Yearling Nice Question Notable Question Notable Question Notable Question Good Question Good Question Popular Question Notable Question Popular Question Popular Question Favorite Question Famous Question Popular Question Popular Question Favorite Question Popular Question Popular Question Announcer Famous Question Famous Question Popular Question Famous Question Famous Question Nice Question Good Question Favorite Question Good Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Good Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Nice Answer Popular Question Popular Question Famous Question Good Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Famous Question Popular Question Famous Question Notable Question Nice Question Famous Question Announcer,NULL,How to implement authenticated routes in React Router javascript reactjs react router react router v4 pI was trying to implement authenticated routes but found that React Router now prevents this from working ppre code lt Route exact path component Index gt lt Route path auth component UnauthenticatedWrapper gt lt Route path auth login component LoginBotBot gt lt Route gt lt Route path domains component AuthenticatedWrapper gt lt Route exact path domains component DomainsIndex gt lt Route gt code prepThe error is pblockquote pWarning You should not use code lt Route component gt code and code lt Route children gt code in the same route code lt Route children gt code will be ignored blockquotepIn that case whats the correct way to implement this ppIt appears in codereact router code v4 docs it suggests something like ppre code lt Router gt lt div gt lt AuthButton gt lt ul gt lt li gt lt Link to public gt Public Page lt Link gt lt li gt lt li gt lt Link to protected gt Protected Page lt Link gt lt li gt lt ul gt lt Route path public component Public gt lt Route path login component Login gt lt PrivateRoute path protected component Protected gt lt div gt lt Router gt code prepBut isit possible to achieve this while grouping bunch of routes together phrp strongUPDATE strong ppOk after some research came up with this ppre codeimport React PropTypes from react import Route from react router dom export default class AuthenticatedRoute extends React Component render if this props isLoggedIn this props redirectToLogin return null return lt Route this props gt AuthenticatedRoute propTypes isLoggedIn PropTypes bool isRequired component PropTypes element redirectToLogin PropTypes func isRequired code prepIsit correct to dispatch an action in coderender code it feels wrong It doesnt really seem correct with codecomponentDidMount code or some other hook either thank you for the input am not using SSR yet but if want to use in the future do keep it in render Also if user is redirected in componentWillMount will they ever get to see the rendered output even for split second,1,How to implement authenticated routes in React Router javascript reactjs react router react router v4 pI was trying to implement authenticated routes but found that React Router now prevents this from working ppre code lt Route exact path component Index gt lt Route path auth component UnauthenticatedWrapper gt lt Route path auth login component LoginBotBot gt lt Route gt lt Route path domains component AuthenticatedWrapper gt lt Route exact path domains component DomainsIndex gt lt Route gt code prepThe error is pblockquote pWarning You should not use code lt Route component gt code and code lt Route children gt code in the same route code lt Route children gt code will be ignored blockquotepIn that case whats the correct way to implement this ppIt appears in codereact router code v4 docs it suggests something like ppre code lt Router gt lt div gt lt AuthButton gt lt ul gt lt li gt lt Link to public gt Public Page lt Link gt lt li gt lt li gt lt Link to protected gt Protected Page lt Link gt lt li gt lt ul gt lt Route path public component Public gt lt Route path login component Login gt lt PrivateRoute path protected component Protected gt lt div gt lt Router gt code prepBut isit possible to achieve this while grouping bunch of routes together phrp strongUPDATE strong ppOk after some research came up with this ppre codeimport React PropTypes from react import Route from react router dom export default class AuthenticatedRoute extends React Component render if this props isLoggedIn this props redirectToLogin return null return lt Route this props gt AuthenticatedRoute propTypes isLoggedIn PropTypes bool isRequired component PropTypes element redirectToLogin PropTypes func isRequired code prepIsit correct to dispatch an action in coderender code it feels wrong It doesnt really seem correct with codecomponentDidMount code or some other hook either How to use golang context with http Request for Authentication go pI have an codeIsAuthenticated code function to check if the request is authenticated checking the JWT in the codeAuthorization code header ppre codefunc IsAuthenticated framework AppContext http Request int error do authentication user is authenticated User object ctx context WithValue Context user user WithContext ctx return 200 nil code prepI find that it appears that coder WithContext ctx code does not override the request object How should implement this Do need to requrn request instead,NULL 37387,315343,80040,Popular Question Notable Question Notable Question Famous Question Yearling Famous Question Notable Question Good Question Notable Question Custodian Popular Question Notable Question Notable Question Notable Question Favorite Question Notable Question Famous Question Popular Question Yearling Custodian Custodian Popular Question Famous Question Documentation User Famous Question Nice Question Good Question Popular Question Popular Question Yearling Caucus Popular Question Popular Question Popular Question Popular Question Famous Question Great Question Famous Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 37388,520933,552742,Popular Question,NULL,NULL,0,NULL,NULL 37389,4861524,635446,NULL,NULL,NULL,0,NULL,NULL 37390,753028,1344620,Notable Question Notable Question Custodian Commentator Peer Pressure,NULL,NULL,0,NULL,NULL 37391,7563,262980,Nice Answer Yearling Good Answer Guru Nice Answer Yearling Census Reviewer Guru Popular Question Yearling Good Answer Caucus Popular Question Popular Question Cleanup Nice Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 37392,80909,1145239,NULL,NULL,NULL,0,NULL,NULL 37393,1506597,936494,Inquisitive Necromancer Popular Question Nice Answer Popular Question Popular Question Popular Question Citizen Patrol Popular Question Nice Answer Popular Question Necromancer Custodian Yearling Notable Question Announcer Necromancer Notable Question Notable Question Announcer Necromancer Nice Answer Necromancer Notable Question Announcer Nice Answer Announcer Popular Question Necromancer Necromancer Announcer Popular Question Revival Yearling Necromancer Announcer Nice Question Announcer Popular Question Booster Nice Answer Necromancer Announcer Nice Answer Announcer Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 37394,162830,712999,Student Yearling Famous Question,NULL,NULL,0,NULL,NULL 37395,506172,712999,Student Yearling Famous Question,NULL,NULL,0,NULL,NULL 37396,33286,911838,Notable Question Yearling Good Answer Popular Question Editor Yearling,NULL,NULL,0,NULL,NULL 37397,1172781,333624,Yearling Nice Answer Custodian Popular Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 37398,339238,818351,Popular Question Necromancer Popular Question Popular Question Yearling Famous Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 37399,1562482,784246,Teacher Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37400,324416,137189,NULL,NULL,NULL,0,NULL,NULL 37401,72984,698489,NULL,NULL,NULL,0,NULL,NULL 37402,5916534,1103477,Scholar Student,NULL,NULL,0,NULL,NULL 37403,269992,1103477,Scholar Student,NULL,NULL,0,NULL,NULL 37404,5631,1376940,NULL,NULL,NULL,0,NULL,NULL 37405,25132,1238540,NULL,NULL,NULL,0,NULL,NULL 37406,64587,298656,Yearling Nice Answer Caucus Revival Good Answer Yearling Yearling Informed Civic Duty,NULL,pWithout bashisms works even in the System sh ppre codecase string in echo bad echo good esac code prepThis rejects empty strings and strings containing non digits accepting everything else ppNegative or floating point numbers need some additional work An idea is to exclude code code code code in the first bad pattern and add more bad patterns containing the inappropriate uses of them code code code code The quotes are not needed since the case command does not perform word splitting and pathname generation on that word anyway However expansions in case patterns may need quoting since it determines whether pattern matching characters are literal or special,0,NULL,NULL 37407,160873,790695,Good Answer Popular Question Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Popular Question Nice Answer Good Answer Guru Guru Great Answer Nice Answer Enlightened Guru Nice Answer Guru Nice Answer Enlightened Good Answer Yearling Guru Great Answer Nice Answer Enlightened Good Answer angularjs Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Guru Good Answer Good Answer Nice Answer Good Answer Good Answer Guru html Caucus Good Answer Guru Constituent Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Guru Good Answer Nice Answer Enlightened Guru Good Answer Census Nice Answer Guru Good Answer Good Question Guru Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Generalist Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru Guru Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Guru Good Answer Constituent Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Enlightened object Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Popular Question Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Census Guru Nice Answer Good Answer Great Answer Guru Nice Answer Caucus Guru Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 37408,722715,712631,NULL,NULL,NULL,0,NULL,NULL 37409,198574,1252633,Popular Question,NULL,NULL,0,NULL,NULL 37410,211020,33271,Yearling Great Answer Yearling Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 37411,149984,693661,NULL,NULL,NULL,0,NULL,NULL 37412,117921,339879,Announcer,NULL,NULL,0,NULL,NULL 37413,610541,816093,NULL,NULL,NULL,0,NULL,NULL 37414,184956,776502,NULL,NULL,NULL,0,NULL,NULL 37415,3632,905596,Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Nice Question Nice Question Popular Question Yearling Notable Question Necromancer Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 37416,21820,789737,NULL,NULL,NULL,0,NULL,NULL 37417,221979,663367,Popular Question Scholar Critic Excavator Yearling Caucus Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37418,36537,471332,NULL,NULL,NULL,0,NULL,NULL 37419,575523,814471,Popular Question Notable Question Civic Duty Commentator Yearling,NULL,NULL,0,NULL,NULL 37420,199276,202113,NULL,NULL,NULL,0,NULL,NULL 37421,27,1247337,Nice Answer,NULL,NULL,0,NULL,NULL 37422,357177,1253294,NULL,NULL,NULL,0,NULL,NULL 37423,117123,1280102,Popular Question,NULL,NULL,0,NULL,NULL 37424,68193,740663,NULL,NULL,NULL,0,NULL,NULL 37425,182467,232433,NULL,NULL,NULL,0,NULL,NULL 37426,178053,543698,NULL,NULL,NULL,0,NULL,NULL 37427,76354,63675,NULL,NULL,,0,, 37428,83314,3085,Notable Question Popular Question Necromancer Documentation Pioneer Good Question Yearling Nice Answer Nice Answer Nice Question Notable Question Census Necromancer Nice Question Nice Question Nice Question Good Answer Necromancer Revival Yearling Documentation User Census Notable Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 37429,69623,120277,NULL,NULL,NULL,0,NULL,NULL 37430,414928,590028,Notable Question Yearling Notable Question Popular Question Tumbleweed Caucus Good Answer Yearling Nice Answer Enlightened Popular Question Notable Question Good Question Revival Yearling Caucus Popular Question Nice Answer Enlightened python Notable Question,NULL,NULL,0,NULL,NULL 37431,99428,305097,NULL,NULL,NULL,0,NULL,NULL 37432,252777,66451,Yearling Nice Answer Notable Question Yearling Nice Answer Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 37433,30745,66451,Yearling Nice Answer Notable Question Yearling Nice Answer Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 37434,41934,1558890,Yearling Nice Answer Notable Question Nice Answer Famous Question Good Question Good Answer Yearling Announcer Announcer Excavator Nice Question Guru Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 37435,74619,158868,NULL,NULL,NULL,0,NULL,NULL 37436,5419541,642044,NULL,NULL,NULL,0,NULL,NULL 37437,149708,313333,Nice Answer Enlightened Critic Yearling Commentator Yearling Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 37438,72101,479646,Editor,NULL,NULL,0,NULL,NULL 37439,887020,770008,NULL,NULL,NULL,0,NULL,NULL 37440,295624,127708,NULL,NULL,NULL,0,NULL,NULL 37441,674596,201025,NULL,NULL,NULL,0,NULL,NULL 37442,848104,558403,NULL,NULL,NULL,0,NULL,NULL 37443,226715,955795,NULL,NULL,NULL,0,NULL,NULL 37444,278074,11196,NULL,NULL,NULL,0,NULL,NULL 37445,445407,621642,NULL,NULL,NULL,0,NULL,NULL 37446,32144,453290,Notable Question,NULL,NULL,0,NULL,NULL 37447,65860,6010,Great Answer Yearling Good Answer Nice Answer Yearling Documentation User Census Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 37448,107851,651756,NULL,NULL,NULL,0,NULL,NULL 37449,2497,64373,NULL,NULL,NULL,0,NULL,NULL 37450,42046,1293749,Supporter,NULL,NULL,0,NULL,NULL 37451,1236625,1185868,Popular Question Good Question Nice Question Notable Question Critic Yearling Popular Question Popular Question Caucus Promoter,NULL,NULL,0,NULL,NULL 37452,154549,1134924,NULL,NULL,NULL,0,NULL,NULL 37453,1025000,206364,NULL,NULL,NULL,0,NULL,NULL 37454,9188596,230649,Nice Answer Notable Question Popular Question Revival Notable Question Yearling Popular Question Good Answer Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 37455,35602,230649,Nice Answer Notable Question Popular Question Revival Notable Question Yearling Popular Question Good Answer Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 37456,1519818,1294294,NULL,NULL,NULL,0,NULL,NULL 37457,186129,66145,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 37458,292276,901537,NULL,NULL,NULL,0,NULL,NULL 37459,8149214,1529665,Informed,NULL,NULL,0,NULL,NULL 37460,10591,406309,Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 37461,2820655,82515,Famous Question Good Question Popular Question Nice Answer Enlightened Nice Answer Nice Question Nice Question Great Answer android Guru Revival Nice Answer Enlightened Guru Yearling Nice Answer Popular Question Guru Yearling Popular Question Nice Answer Good Answer Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 37462,199084,1558149,NULL,NULL,NULL,0,NULL,NULL 37463,1567116,1086892,Informed Scholar,NULL,NULL,0,NULL,NULL 37464,2492273,1086892,Informed Scholar,NULL,NULL,0,NULL,NULL 37465,199731,561354,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37466,453976,898307,Custodian Promoter Benefactor Popular Question Yearling Famous Question Self-Learner Revival Notable Question Popular Question Yearling Popular Question Autobiographer Popular Question Notable Question Inquisitive Good Question Nice Question Popular Question Nice Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37467,63661,1090118,Necromancer Necromancer Yearling Nice Answer Commentator Good Answer Yearling Student Scholar,NULL,NULL,0,NULL,NULL 37468,9461,103900,Yearling Yearling Guru Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 37469,46320,1040358,Necromancer Nice Answer Notable Question Yearling Announcer Yearling Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 37470,61136,89804,Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 37471,1507277,298504,NULL,NULL,NULL,0,NULL,NULL 37472,49228,239565,NULL,NULL,NULL,0,NULL,NULL 37473,135211,430061,Yearling Commentator Yearling Great Answer,NULL,NULL,0,NULL,NULL 37474,919771,105045,Editor Yearling Caucus Constituent Notable Question Great Answer Yearling Caucus Constituent Caucus Yearling,NULL,NULL,0,NULL,NULL 37475,556483,1112453,NULL,NULL,NULL,0,NULL,NULL 37476,108653,376799,NULL,NULL,NULL,0,NULL,NULL 37477,148701,1335427,NULL,NULL,NULL,0,NULL,NULL 37478,259506,996501,Custodian Revival Good Answer Yearling Necromancer Necromancer Yearling Caucus Yearling Necromancer Nice Answer Caucus Nice Answer Yearling Custodian Yearling Great Answer,NULL,NULL,0,NULL,NULL 37479,49068,252253,Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Famous Question Good Question Revival Popular Question Popular Question Great Question Notable Question Popular Question Famous Question Popular Question Good Answer Good Question Famous Question Famous Question Notable Question Yearling Notable Question Famous Question Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Populist Nice Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 37480,162225,833735,NULL,NULL,NULL,0,NULL,NULL 37481,103009,1343896,NULL,NULL,NULL,0,NULL,NULL 37482,20419,318221,Notable Question Caucus Constituent Census Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 37483,504451,1512588,Informed,NULL,NULL,0,NULL,NULL 37484,89442,269052,NULL,NULL,NULL,0,NULL,NULL 37485,95971,614786,Yearling Famous Question,NULL,NULL,0,NULL,NULL 37486,956949,1322219,Popular Question Caucus Critic,NULL,NULL,0,NULL,NULL 37487,2335592,1316018,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 37488,349124,965666,Civic Duty Necromancer Necromancer Yearling Notable Question Self-Learner Autobiographer Nice Answer Caucus Tumbleweed Yearling Revival Custodian,NULL,What reason is there to use null instead of undefined in JavaScript javascript null undefined pI ve been writing JavaScript for quite long time now and have never had reason to use codenull code It seems that codeundefined code is always preferable and serves the same purpose programmatically What are some practical reasons to use codenull code instead of codeundefined code It can be helpful to have predictable types and this can guide thinking to use one or another Where an object is always returned needed or wanted by design use null for falsy results eg document getElementById does not exist Variables var and function return values default to undefined In the past null was in the global scope so using it slowed execution and led me to prefer other falsy types false to free references personally avoid null unless there is compelling reason otherwise because perceive it to be simpler which is generally better,0,NULL,NULL 37489,52295,58508,Yearling Enlightened Guru Taxonomist automapper Nice Answer Good Answer Guru Disciplined Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Revival Yearling Revival Announcer Revival Nice Answer Announcer Enlightened Mortarboard Good Answer Reversal Nice Answer Nice Answer Popular Question Good Answer Announcer Documentation User Good Answer Yearling Nice Answer Enlightened Necromancer Good Answer Good Answer Guru Nice Answer Enlightened Guru Nice Answer Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37490,9073,307401,Supporter Tumbleweed Student Announcer Enthusiast Popular Question Nice Answer Popular Question Nice Question Notable Question Yearling Caucus Yearling Famous Question,NULL,NULL,1,Confused about conv2d transpose tensorflow pI getting this error message when using codeconv2d transpose code ppre codeW tensorflow core common runtime executor cc 1102 0x7fc81f0d6250 Compute status Invalid argument Conv2DBackpropInput Number of rows of out backprop doesn match computed actual 32 computed Node generator h1 conv2d transpose Conv2DBackpropInput DT FLOAT padding SAME strides use cudnn on gpu true device job localhost replica task cpu generator h1 conv2d transpose output shape generator h1 read recv code prepHowever it occurs after the graph is built while compiling the loss function Adam Any ideas on what would cause this suspect it related to the input dimensions but not sure exactly why ppFull error href https gist github com jimfleming 75d88e888044615dd6e3 https gist github com jimfleming 75d88e888044615dd6e3 ppRelevant code ppre code shape batch size 32 32 output shape self batch size 128 filter shape 128 get shape strides with tf variable scope h1 tf get variable filter shape initializer tf random normal initializer stddev 02 h1 tf nn conv2d transpose output shape output shape strides strides padding SAME h1 tf nn relu h1 output shape self batch size 16 16 128 filter shape 128 h1 get shape strides with tf variable scope h2 tf get variable filter shape initializer tf random normal initializer stddev 02 h2 tf nn conv2d transpose h1 output shape output shape strides strides padding SAME h2 tf nn relu h2 output shape self batch size 32 32 filter shape h2 get shape strides with tf variable scope h3 tf get variable filter shape initializer tf random normal initializer stddev 02 h3 tf nn conv2d transpose h2 output shape output shape strides strides padding SAME h3 tf nn tanh h3 code pre,NULL 37491,302985,5145,NULL,NULL,NULL,0,NULL,NULL 37492,47990,1470794,NULL,NULL,NULL,0,NULL,NULL 37493,68820,831463,NULL,NULL,NULL,0,NULL,NULL 37494,319019,690061,Famous Question Yearling Good Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Yearling Famous Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 37495,839532,718106,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 37496,7480965,718106,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 37497,1512938,602578,NULL,NULL,NULL,0,NULL,NULL 37498,277898,166658,Notable Question Good Answer Nice Question Nice Answer Popular Question Notable Question Nice Answer Yearling Nice Question Famous Question Great Question c# Good Question Notable Question asp.net-mvc Yearling Nice Question Nice Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 37499,268110,104763,Civic Duty Curious Nice Answer Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 37500,301914,162359,Popular Question Revival Nice Question Tumbleweed,NULL,NULL,0,NULL,NULL 37501,1050862,874136,Census,NULL,NULL,0,NULL,NULL 37502,88123,1474255,Popular Question,NULL,NULL,0,NULL,NULL 37503,83577,294245,Custodian Popular Question Revival Caucus Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 37504,209444,1051942,Nice Answer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 37505,424931,924018,NULL,NULL,NULL,0,NULL,NULL 37506,80573,242493,Yearling Notable Question Good Question Good Question Popular Question Guru Nice Question Great Answer Notable Question Nice Answer Great Answer Nice Answer Enlightened Popular Question Popular Question Yearling Nice Answer Famous Question Good Answer Popular Question Notable Question Nice Answer Enlightened Notable Question Popular Question Yearling Favorite Question Popular Question Nice Question Nice Question Good Answer Guru,NULL,NULL,0,NULL,NULL 37507,876386,781731,NULL,NULL,NULL,0,NULL,NULL 37508,7636020,954130,NULL,NULL,NULL,0,NULL,NULL 37509,190123,218026,NULL,NULL,NULL,0,NULL,NULL 37510,197626,686783,NULL,NULL,NULL,0,NULL,NULL 37511,145846,401208,Notable Question,NULL,NULL,0,NULL,NULL 37512,3328436,401208,Notable Question,NULL,NULL,0,NULL,NULL 37513,1050776,1037973,NULL,NULL,NULL,0,NULL,NULL 37514,7245572,1342535,NULL,NULL,,0,, 37515,203965,1279587,Documentation User,NULL,NULL,0,NULL,NULL 37516,36506,1361988,NULL,NULL,NULL,0,NULL,NULL 37517,583679,776167,Popular Question Yearling Announcer Necromancer Nice Answer Curious Yearling Informed,NULL,NULL,0,NULL,NULL 37518,756597,1563734,NULL,NULL,NULL,0,NULL,NULL 37519,521671,796436,Scholar Supporter,NULL,NULL,0,NULL,NULL 37520,428687,1273175,Electorate,NULL,NULL,0,NULL,NULL 37521,3697184,1273175,Electorate,NULL,NULL,0,NULL,NULL 37522,579466,1300012,Notable Question html Yearling Notable Question Yearling Great Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 37523,2858201,1204539,Notable Question Nice Question Yearling Notable Question Informed Popular Question Notable Question Good Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 37524,28669,291099,NULL,NULL,NULL,0,NULL,NULL 37525,248485,725511,NULL,NULL,NULL,0,NULL,NULL 37526,785958,230896,Revival Famous Question Nice Question Supporter,NULL,NULL,0,NULL,NULL 37527,207963,536362,Necromancer Yearling,NULL,NULL,0,NULL,NULL 37528,1367916,795600,NULL,NULL,NULL,0,NULL,NULL 37529,436606,1396697,NULL,NULL,NULL,0,NULL,NULL 37530,101955,877887,Yearling Notable Question Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 37531,5996,34222,NULL,NULL,NULL,0,NULL,NULL 37532,1458045,1482850,NULL,NULL,NULL,0,NULL,NULL 37533,1172895,981269,Student Notable Question,NULL,NULL,0,NULL,NULL 37534,267475,932594,NULL,NULL,NULL,0,NULL,NULL 37535,57586,1440997,NULL,NULL,NULL,0,NULL,NULL 37536,51558,357705,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Yearling Good Answer Guru Nice Answer Nice Answer Good Answer Guru Nice Answer Yearling Nice Answer Good Answer Great Answer Announcer Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Great Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 37537,86389,859124,NULL,NULL,NULL,0,NULL,NULL 37538,428741,386665,Yearling Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 37539,223445,1115100,NULL,NULL,NULL,0,NULL,NULL 37540,908664,655187,Yearling Famous Question Popular Question Popular Question Popular Question Necromancer Famous Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Necromancer Nice Answer Notable Question Nice Answer Popular Question Popular Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 37541,165033,521209,Guru Yearling Custodian Civic Duty Nice Answer Enlightened Custodian Custodian Yearling Explainer Custodian Custodian Caucus Great Answer Custodian Fanatic Revival bazel Yearling,NULL,NULL,0,NULL,NULL 37542,2546569,521209,Guru Yearling Custodian Civic Duty Nice Answer Enlightened Custodian Custodian Yearling Explainer Custodian Custodian Caucus Great Answer Custodian Fanatic Revival bazel Yearling,NULL,NULL,0,NULL,NULL 37543,11024312,1202041,NULL,NULL,NULL,0,NULL,NULL 37544,28559,1202041,NULL,NULL,NULL,0,NULL,NULL 37545,3477712,1202041,NULL,NULL,NULL,0,NULL,NULL 37546,259919,443067,NULL,NULL,NULL,0,NULL,NULL 37547,100365,907648,NULL,NULL,NULL,0,NULL,NULL 37548,122122,963856,NULL,NULL,NULL,0,NULL,NULL 37549,3658899,963856,NULL,NULL,NULL,0,NULL,NULL 37550,61261,323695,NULL,NULL,NULL,0,NULL,NULL 37551,45965,650367,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 37552,38688,299887,NULL,NULL,NULL,0,NULL,NULL 37553,67477,1146228,NULL,NULL,NULL,0,NULL,NULL 37554,12979,545419,NULL,NULL,NULL,0,NULL,NULL 37555,249916,1253856,NULL,NULL,NULL,0,NULL,NULL 37556,236231,518688,NULL,NULL,NULL,0,NULL,NULL 37557,888324,94975,Popular Question,NULL,NULL,0,NULL,NULL 37558,496148,1397695,Popular Question,NULL,NULL,0,NULL,NULL 37559,24015,709056,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 37560,171092,481835,Yearling Caucus,NULL,NULL,0,NULL,NULL 37561,977057,643926,NULL,NULL,NULL,0,NULL,NULL 37562,515018,1180228,Caucus Constituent,NULL,NULL,0,NULL,NULL 37563,897800,1325514,NULL,NULL,NULL,0,NULL,NULL 37564,467768,1239967,Yearling Good Answer Yearling Peer Pressure android Nice Answer Yearling java Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 37565,1231,481343,Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Guru java Nice Answer Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 37566,343290,1045028,Supporter,NULL,NULL,0,NULL,NULL 37567,2615398,870691,Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37568,305260,1141343,Nice Question Famous Question Popular Question Yearling Nice Question Caucus Popular Question Popular Question Good Question Yearling Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Great Question Yearling Notable Question Favorite Question Nice Question Notable Question Popular Question Nice Answer Popular Question,NULL,NULL,1,Why does npm install rewrite package lock json node js npm npm install package lock json pI just recently upgraded to npm now have package lock json file with everything from package json would expect that when run codenpm install code that the dependency versions would be pulled from the lock file to determine what should be installed in my node modules directory What strange is that it actually ends up modifying and rewriting my package lock json file ppFor example the lock file had typescript specified to be at version Then after the codenpm install code command the version was changed to That seems to defeat the whole purpose of lock file ppWhat am missing How do get npm to actually respect my lock file,NULL 37569,250822,504766,Notable Question Notable Question Notable Question Popular Question Yearling Custodian Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 37570,152863,1078871,Editor Popular Question Student Supporter,NULL,NULL,0,NULL,NULL 37571,251417,118870,NULL,NULL,NULL,0,NULL,NULL 37572,137241,525545,Favorite Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 37573,726359,307843,NULL,NULL,NULL,0,NULL,NULL 37574,46922,28843,Custodian Notable Question Great Question Great Answer Nice Question Yearling Popular Question Caucus Nice Answer Good Question Necromancer Revival Caucus Constituent Yearling Census Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 37575,988852,918946,NULL,NULL,NULL,0,NULL,NULL 37576,68740,732484,NULL,NULL,NULL,0,NULL,NULL 37577,1030549,1086096,NULL,NULL,NULL,0,NULL,NULL 37578,83902,1355997,NULL,NULL,NULL,0,NULL,NULL 37579,17024,388645,NULL,NULL,NULL,0,NULL,NULL 37580,169959,895364,Yearling Curious Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 37581,81766,684935,NULL,NULL,NULL,0,NULL,NULL 37582,411911,460051,Enthusiast,NULL,NULL,0,NULL,NULL 37583,827776,1362813,Famous Question Popular Question Nice Question Tumbleweed,NULL,NULL,0,NULL,NULL 37584,734410,542613,Notable Question,NULL,NULL,0,NULL,NULL 37585,135898,1512349,NULL,NULL,NULL,0,NULL,NULL 37586,719535,886300,Popular Question,NULL,NULL,0,NULL,NULL 37587,94126,1015888,Popular Question,NULL,NULL,0,NULL,NULL 37588,216852,627347,NULL,NULL,NULL,0,NULL,NULL 37589,840967,661736,NULL,NULL,,0,, 37590,308332,848538,NULL,NULL,NULL,0,NULL,NULL 37591,10678,84201,Great Question Notable Question Famous Question Popular Question Popular Question Nice Question Good Question Famous Question Notable Question Nice Question Popular Question Great Question Famous Question Nice Answer Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Favorite Question Great Question Favorite Question Notable Question Popular Question Notable Question Nice Question Nice Question Yearling Famous Question Nice Question Famous Question css Nice Question Notable Question Tag Editor Notable Question Famous Question Popular Question Notable Question Nice Question Good Question Good Question Favorite Question Popular Question Nice Question Good Question Nice Question Popular Question Nice Question Pundit Famous Question Popular Question Notable Question Notable Question Good Question Famous Question Popular Question Popular Question Notable Question Notable Question Good Question Notable Question Famous Question Good Question Stellar Question Popular Question Famous Question Good Question Nice Question Notable Question Great Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Informed Great Answer Famous Question Popular Question Popular Question Popular Question Famous Question Caucus Notable Question Popular Question Good Question Notable Question Notable Question Constituent Great Question Famous Question Nice Question Favorite Question Famous Question Popular Question Notable Question Famous Question Popular Question Favorite Question Nice Question Census Famous Question Notable Question Nice Question Notable Question Famous Question Famous Question Famous Question Nice Question Famous Question Guru Notable Question Favorite Question Nice Question Popular Question Popular Question Famous Question Nice Question Famous Question Famous Question Yearling Famous Question Popular Question Good Question Nice Question Notable Question Notable Question Popular Question Famous Question Nice Question Notable Question Famous Question Famous Question Notable Question Nice Question Notable Question Notable Question Favorite Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Notable Question Nice Question Popular Question Caucus Popular Question Notable Question Good Question Famous Question Famous Question Notable Question Good Question Notable Question Popular Question Nice Question Notable Question Popular Question Nice Question Good Question Nice Question Popular Question Notable Question Favorite Question Popular Question Nice Question Notable Question Nice Question Favorite Question Popular Question Good Question Popular Question Famous Question Famous Question Famous Question Famous Question Famous Question Good Question Popular Question Famous Question Famous Question Famous Question Notable Question Nice Question Famous Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Yearling Notable Question Popular Question Nice Question Good Question Nice Question Famous Question Nice Answer Popular Question Notable Question Popular Question Good Question Famous Question Famous Question Notable Question Nice Question Good Question Popular Question Popular Question Nice Question Good Question Popular Question Good Question Famous Question Famous Question Famous Question Famous Question Nice Question Notable Question Notable Question Nice Question Famous Question Famous Question Nice Question Great Question,NULL,NULL,0,NULL,NULL 37592,563245,1557676,Editor Teacher Supporter Commentator Informed Announcer Yearling Critic Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 37593,762524,879639,Scholar Supporter,NULL,NULL,0,NULL,NULL 37594,1982142,633627,NULL,NULL,NULL,0,NULL,NULL 37595,3838709,1447634,Tag Editor Commentator,NULL,NULL,0,NULL,NULL 37596,412843,1447816,Informed,NULL,NULL,0,NULL,NULL 37597,30421,696730,NULL,NULL,NULL,0,NULL,NULL 37598,1046046,988053,NULL,NULL,NULL,0,NULL,NULL 37599,543474,153619,c++ Nice Answer Enlightened Yearling Popular Question Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 37600,2158284,759540,Popular Question Caucus Yearling Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 37601,183637,759540,Popular Question Caucus Yearling Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 37602,1157608,866663,Popular Question,NULL,NULL,0,NULL,NULL 37603,244562,1560118,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37604,181477,914833,NULL,NULL,NULL,0,NULL,NULL 37605,694599,1499171,Enthusiast Teacher Tumbleweed Editor Supporter Informed Critic Investor Scholar Altruist Commentator Student Excavator Civic Duty Yearling,NULL,NULL,0,NULL,NULL 37606,631005,11348,NULL,NULL,NULL,0,NULL,NULL 37607,147390,971291,NULL,NULL,NULL,0,NULL,NULL 37608,190826,795728,NULL,NULL,NULL,0,NULL,NULL 37609,4541,883571,Nice Question Announcer Good Question Popular Question Announcer Announcer Yearling Good Question Announcer Notable Question Nice Question Good Question Famous Question Announcer Announcer Announcer Popular Question Famous Question Announcer Announcer Announcer Good Question Announcer Announcer Self-Learner Necromancer Yearling Announcer Announcer Nice Answer Favorite Question Custodian Inquisitive Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Famous Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 37610,4438579,883571,Nice Question Announcer Good Question Popular Question Announcer Announcer Yearling Good Question Announcer Notable Question Nice Question Good Question Famous Question Announcer Announcer Announcer Popular Question Famous Question Announcer Announcer Announcer Good Question Announcer Announcer Self-Learner Necromancer Yearling Announcer Announcer Nice Answer Favorite Question Custodian Inquisitive Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Famous Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 37611,7232712,883571,Nice Question Announcer Good Question Popular Question Announcer Announcer Yearling Good Question Announcer Notable Question Nice Question Good Question Famous Question Announcer Announcer Announcer Popular Question Famous Question Announcer Announcer Announcer Good Question Announcer Announcer Self-Learner Necromancer Yearling Announcer Announcer Nice Answer Favorite Question Custodian Inquisitive Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Famous Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 37612,7232714,883571,Nice Question Announcer Good Question Popular Question Announcer Announcer Yearling Good Question Announcer Notable Question Nice Question Good Question Famous Question Announcer Announcer Announcer Popular Question Famous Question Announcer Announcer Announcer Good Question Announcer Announcer Self-Learner Necromancer Yearling Announcer Announcer Nice Answer Favorite Question Custodian Inquisitive Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Famous Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 37613,8821639,883571,Nice Question Announcer Good Question Popular Question Announcer Announcer Yearling Good Question Announcer Notable Question Nice Question Good Question Famous Question Announcer Announcer Announcer Popular Question Famous Question Announcer Announcer Announcer Good Question Announcer Announcer Self-Learner Necromancer Yearling Announcer Announcer Nice Answer Favorite Question Custodian Inquisitive Popular Question Notable Question Necromancer Popular Question Popular Question Yearling Famous Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 37614,13448,533003,NULL,NULL,NULL,0,NULL,NULL 37615,121107,348942,NULL,NULL,NULL,0,NULL,NULL 37616,897334,561851,Student,NULL,NULL,0,NULL,NULL 37617,246845,730727,NULL,NULL,NULL,0,NULL,NULL 37618,14724,909651,Good Answer Popular Question Investor Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Notable Question Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 37619,39001,1067521,Nice Answer Enlightened Caucus Yearling angularjs Yearling Yearling,NULL,NULL,0,NULL,NULL 37620,534922,430,Good Answer Yearling Guru Guru Yearling Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 37621,338359,81019,Taxonomist Nice Answer Yearling Popular Question Revival Revival Custodian Notable Question Yearling Good Answer Custodian Notable Question Revival Nice Answer Necromancer Yearling Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 37622,150463,75540,Caucus Documentation User,NULL,NULL,0,NULL,NULL 37623,635501,846003,NULL,NULL,NULL,0,NULL,NULL 37624,1287053,330920,Documentation User Commentator,NULL,NULL,0,NULL,NULL 37625,916765,370681,NULL,NULL,NULL,0,NULL,NULL 37626,130802,1128402,NULL,NULL,NULL,0,NULL,NULL 37627,208981,661602,NULL,NULL,NULL,0,NULL,NULL 37628,332587,339993,NULL,NULL,NULL,0,NULL,NULL 37629,267954,1563056,Tumbleweed,NULL,NULL,0,NULL,NULL 37630,68220,1111097,NULL,NULL,NULL,0,NULL,NULL 37631,1146376,1111097,NULL,NULL,NULL,0,NULL,NULL 37632,27311,1080290,NULL,NULL,NULL,0,NULL,NULL 37633,174660,223428,Necromancer,NULL,NULL,0,NULL,NULL 37634,386784,486770,NULL,NULL,NULL,0,NULL,NULL 37635,53578,181766,Nice Answer Notable Question Necromancer Necromancer Nice Answer Good Answer Yearling Necromancer Caucus Constituent Caucus Constituent Yearling Custodian Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 37636,47336,503963,Nice Answer Yearling Caucus Constituent Popular Question Custodian Announcer,NULL,NULL,0,NULL,NULL 37637,189921,170988,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 37638,16513,1013891,NULL,NULL,NULL,0,NULL,NULL 37639,107369,43490,Organizer Yearling Custodian Nice Answer Yearling Census,NULL,NULL,0,NULL,NULL 37640,3011756,1031535,NULL,NULL,NULL,0,NULL,NULL 37641,55089,1258026,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 37642,274333,410496,Tumbleweed Popular Question Revival,NULL,NULL,0,NULL,NULL 37643,133330,562011,NULL,NULL,NULL,0,NULL,NULL 37644,368577,1513093,NULL,NULL,NULL,0,NULL,NULL 37645,480851,481997,NULL,NULL,NULL,0,NULL,NULL 37646,618382,1254077,Teacher,NULL,NULL,0,NULL,NULL 37647,100519,679396,Tumbleweed,NULL,NULL,0,NULL,NULL 37648,364147,921345,NULL,NULL,NULL,0,NULL,NULL 37649,17629,134108,Notable Question Good Question Yearling Good Question,NULL,NULL,0,NULL,NULL 37650,86917,700463,Editor Excavator,NULL,NULL,0,NULL,NULL 37651,1376824,700463,Editor Excavator,NULL,NULL,0,NULL,NULL 37652,85114,45461,Popular Question Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 37653,798175,1426703,NULL,NULL,NULL,0,NULL,NULL 37654,286870,949700,Yearling Good Answer Famous Question Yearling Nice Question Nice Answer Enlightened Yearling Popular Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 37655,320566,466472,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37656,1069320,836350,NULL,NULL,NULL,0,NULL,NULL 37657,124231,506326,NULL,NULL,NULL,0,NULL,NULL 37658,1167909,1411509,NULL,NULL,NULL,0,NULL,NULL 37659,887322,516761,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37660,187468,465673,Good Answer Announcer Yearling Guru,NULL,NULL,0,NULL,NULL 37661,1509537,482885,NULL,NULL,NULL,0,NULL,NULL 37662,78256,1375132,NULL,NULL,NULL,0,NULL,NULL 37663,47037,322209,Notable Question Necromancer Yearling Nice Answer Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 37664,61404,258169,Nice Answer Yearling Famous Question Necromancer Nice Question,NULL,NULL,0,NULL,NULL 37665,451625,478114,NULL,NULL,NULL,0,NULL,NULL 37666,18661,483690,NULL,NULL,NULL,0,NULL,NULL 37667,1589607,961536,NULL,NULL,NULL,0,NULL,NULL 37668,9314031,1082513,Popular Question,NULL,NULL,0,NULL,NULL 37669,398804,1082513,Popular Question,NULL,NULL,0,NULL,NULL 37670,982324,1159592,Popular Question Revival,NULL,NULL,0,NULL,NULL 37671,50074,607179,Student,NULL,NULL,0,NULL,NULL 37672,626812,1493604,Popular Question,NULL,NULL,0,NULL,NULL 37673,455703,1127862,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 37674,170711,734579,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37675,53421,122762,Excavator Yearling Necromancer Scholar Good Answer Revival Yearling Custodian Custodian Revival Custodian Yearling Revival Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 37676,138414,230638,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37677,5965927,230638,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37678,343696,56079,Popular Question Necromancer Yearling Nice Answer Enlightened Nice Answer Popular Question Popular Question Popular Question Popular Question Nice Answer Necromancer Great Answer Nice Question Popular Question Necromancer Famous Question Nice Answer Good Question Notable Question Revival Good Answer ios Notable Question Famous Question Yearling Popular Question Nice Answer Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Revival Yearling Popular Question Revival Necromancer Revival Nice Question Popular Question Great Answer Notable Question Nice Answer Famous Question,NULL,pIt is so strange that nobody links to the blog entry em href http blogs microsoft co il blogs sasha archive 2012 04 04 what anycpu really means as of net and visual studio 11 aspx rel noreferrer What AnyCPU Really Means As Of NET and Visual Studio 11 em pblockquote pIn NET and Visual Studio 11 the cheese has been moved The default for most NET projects is again AnyCPU but there is more than one meaning to AnyCPU now There is an additional sub type of AnyCPU “Any CPU 32 bit preferred” which is the new default overall there are now five options for the platform compiler switch x86 Itanium x64 anycpu and anycpu32bitpreferred When using the Prefer 32 Bit flavor of AnyCPU the semantics are as follows ul liIf the process runs on 32 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on 64 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on an ARM Windows system it runs as 32 bit process IL is compiled to ARM machine code li ul strongThe difference then between “Any CPU 32 bit preferred” and “x86” is only this NET application compiled to x86 will fail to run on an ARM Windows system but an “Any CPU 32 bit preferred” application will run successfully strong blockquote There are performance implications to running as 32 bit on 64 bit operating systems ve noticed double and long operations taking lot longer for example,0,NULL,NULL 37679,194188,1181722,NULL,NULL,NULL,0,NULL,NULL 37680,805152,153042,NULL,NULL,NULL,0,NULL,NULL 37681,105951,12471,Guru Good Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Census Nice Answer Guru Popular Question Nice Answer Good Answer Great Answer Yearling Good Answer Guru Guru Yearling,NULL,NULL,0,NULL,NULL 37682,367750,1046133,NULL,NULL,NULL,0,NULL,NULL 37683,1160343,718376,NULL,NULL,NULL,0,NULL,NULL 37684,119756,1532585,NULL,NULL,NULL,0,NULL,NULL 37685,274546,1371604,NULL,NULL,NULL,0,NULL,NULL 37686,6486189,614750,Student,NULL,NULL,0,NULL,NULL 37687,7359,614750,Student,NULL,NULL,0,NULL,NULL 37688,485682,103700,NULL,NULL,NULL,0,NULL,NULL 37689,1320898,1042224,NULL,NULL,NULL,0,NULL,NULL 37690,422180,1042224,NULL,NULL,NULL,0,NULL,NULL 37691,82367,141463,NULL,NULL,NULL,0,NULL,NULL 37692,136286,1084080,Curious Yearling Nice Answer Notable Question Yearling Notable Question Self-Learner Popular Question Notable Question Nice Answer Yearling Nice Question Popular Question Popular Question Good Question Famous Question Yearling Good Answer Critic,NULL,NULL,0,NULL,NULL 37693,192394,1053071,Yearling,NULL,NULL,0,NULL,NULL 37694,445032,670394,NULL,NULL,NULL,0,NULL,NULL 37695,616945,1264868,NULL,NULL,NULL,0,NULL,NULL 37696,149735,329467,Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37697,428666,107996,Student,NULL,NULL,0,NULL,NULL 37698,1882,462604,Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Guru Popular Question Guru Famous Question Guru Nice Answer Enlightened list Popular Question Nice Answer Enlightened Caucus Great Answer Nice Answer Popular Question Nice Answer Enlightened Yearling Documentation User Good Answer Populist Nice Answer Enlightened Good Answer Good Answer Reviewer Good Answer Nice Answer Nice Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 37699,187063,1277879,Teacher,NULL,NULL,0,NULL,NULL 37700,162908,216877,Yearling Notable Question Nice Question Popular Question Good Question Notable Question Yearling Popular Question Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 37701,60784,209249,Popular Question Nice Answer Revival Nice Question Notable Question Nice Answer Yearling Good Answer Notable Question Good Answer Nice Answer Necromancer Good Answer Yearling Famous Question Good Answer Tumbleweed Nice Answer Enlightened Populist Yearling,NULL,NULL,0,NULL,NULL 37702,7777150,1223582,NULL,NULL,NULL,0,NULL,NULL 37703,60387,858706,NULL,NULL,NULL,0,NULL,NULL 37704,494319,1424255,NULL,NULL,NULL,0,NULL,NULL 37705,111423,875843,Scholar Popular Question Caucus Announcer,NULL,NULL,0,NULL,NULL 37706,276316,1310529,NULL,NULL,NULL,0,NULL,NULL 37707,314865,1086124,Necromancer,NULL,NULL,0,NULL,NULL 37708,713996,66611,Yearling Necromancer Yearling Good Answer Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 37709,395260,1195653,Notable Question Popular Question Critic Famous Question Notable Question,NULL,NULL,0,NULL,NULL 37710,786878,144349,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 37711,851484,825683,NULL,NULL,NULL,0,NULL,NULL 37712,10158,618685,Yearling Yearling Nice Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 37713,2517124,567698,NULL,NULL,NULL,0,NULL,NULL 37714,3754,203655,Nice Answer Enlightened Yearling Nice Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 37715,147652,39381,Civic Duty Great Question Popular Question Yearling Good Answer Nice Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 37716,142919,585510,Nice Question Yearling Famous Question Notable Question Favorite Question Notable Question Yearling Yearling Great Question,NULL,NULL,0,NULL,NULL 37717,496978,1154252,NULL,NULL,NULL,0,NULL,NULL 37718,752397,131721,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 37719,319009,618541,NULL,NULL,NULL,0,NULL,NULL 37720,306283,562630,NULL,NULL,NULL,0,NULL,NULL 37721,63497,1486251,Necromancer Commentator Scholar Critic Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37722,14937,301749,Good Answer Yearling Popular Question Popular Question Excavator Notable Question Yearling Nice Answer Custodian Nice Question Caucus Nice Question Revival Famous Question Good Answer Yearling Notable Question Good Question Guru Custodian,NULL,NULL,0,NULL,NULL 37723,2148,438578,NULL,NULL,NULL,0,NULL,NULL 37724,197177,1155052,NULL,NULL,NULL,0,NULL,NULL 37725,17048,1126830,NULL,NULL,NULL,0,NULL,NULL 37726,197064,513602,Editor Student Scholar,NULL,NULL,0,NULL,NULL 37727,90873,1065036,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 37728,1400622,1272798,Tumbleweed,NULL,NULL,0,NULL,NULL 37729,660526,1408752,NULL,NULL,NULL,0,NULL,NULL 37730,155659,251305,Yearling Nice Answer c# Yearling Nice Answer Nice Answer Enlightened Yearling Necromancer Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 37731,254375,645526,Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 37732,20046,912,Famous Question Nice Question Good Question Great Answer Good Answer Guru Yearling Nice Answer Nice Answer Enlightened c++ Good Answer Nice Question Great Answer Notable Question Famous Question Famous Question Popular Question Nice Question Guru Yearling Good Question Good Answer Nice Answer Enlightened Famous Question Good Answer Yearling Popular Question Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 37733,511120,410010,NULL,NULL,NULL,0,NULL,NULL 37734,79561,12523,Notable Question Good Answer Good Answer Nice Answer Yearling Nice Answer Good Answer Yearling Nice Answer Good Answer Stellar Question Yearling,NULL,NULL,0,NULL,NULL 37735,1874657,922212,NULL,NULL,NULL,0,NULL,NULL 37736,829221,1315604,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 37737,603989,178211,Popular Question Famous Question Notable Question Famous Question Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37738,61060,1385215,NULL,NULL,NULL,0,NULL,NULL 37739,1077600,1070342,NULL,NULL,NULL,0,NULL,NULL 37740,445375,1070342,NULL,NULL,NULL,0,NULL,NULL 37741,28398,518825,NULL,NULL,NULL,0,NULL,NULL 37742,75247,26575,Nice Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Yearling Caucus Constituent Nice Answer Good Answer Nice Answer Nice Answer Enlightened Caucus Yearling Custodian Census Nice Answer Enlightened Great Answer Caucus Good Answer Constituent Nice Answer Enlightened Necromancer Announcer Yearling Good Answer Nice Answer,NULL,pThe error message says you re missing the codetype1cm code package It seems that href https trac macports org wiki TeXLivePackages MacPorts includes it as part of codetexlive latex extra code The miktex org search does find type1cm package http www miktex org packages type1cm,0,NULL,NULL 37743,36746,1008449,Revival Nice Answer Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 37744,227973,398135,NULL,NULL,NULL,0,NULL,NULL 37745,297743,1491075,Popular Question,NULL,NULL,0,NULL,NULL 37746,373350,1339534,NULL,NULL,NULL,0,NULL,NULL 37747,487812,572028,NULL,NULL,NULL,0,NULL,NULL 37748,105168,148207,NULL,NULL,NULL,0,NULL,NULL 37749,489116,846062,Nice Question Notable Question Yearling Favorite Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 37750,1075169,470656,Supporter,NULL,NULL,0,NULL,NULL 37751,90572,611193,NULL,NULL,NULL,0,NULL,NULL 37752,734182,490895,Curious Supporter,NULL,NULL,0,NULL,NULL 37753,69337,529715,NULL,NULL,NULL,0,NULL,NULL 37754,318702,179386,Necromancer Notable Question Nice Question Famous Question Popular Question Pundit Popular Question Popular Question Yearling Notable Question Notable Question Great Answer Famous Question Popular Question Nice Answer Famous Question Popular Question Notable Question Notable Question Custodian Custodian Archaeologist Popular Question Caucus Popular Question Good Answer Yearling Famous Question Necromancer Necromancer Notable Question Census Nice Answer Good Question Good Answer Popular Question Famous Question Famous Question Good Answer Popular Question Yearling Famous Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 37755,586147,809233,NULL,NULL,NULL,0,NULL,NULL 37756,1789133,917762,Critic Necromancer Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 37757,427727,351470,Editor Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37758,6393829,449170,NULL,NULL,NULL,0,NULL,NULL 37759,6382461,1191719,NULL,NULL,NULL,0,NULL,NULL 37760,726403,1191719,NULL,NULL,NULL,0,NULL,NULL 37761,825338,852195,Yearling Guru,NULL,NULL,0,NULL,NULL 37762,209929,74167,Great Answer Yearling Necromancer Necromancer Nice Answer Guru Good Answer Necromancer Yearling Great Answer Curious Nice Answer Great Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 37763,255569,1193787,NULL,NULL,NULL,0,NULL,NULL 37764,87466,1322580,NULL,NULL,NULL,0,NULL,NULL 37765,246115,428908,Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Good Answer Caucus Good Answer Nice Answer Nice Answer Enlightened Enlightened Great Answer Census Pundit Good Answer Good Answer Nice Answer Enlightened Yearling Documentation User Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 37766,544043,1112335,NULL,NULL,NULL,0,NULL,NULL 37767,6615442,1322847,Popular Question,NULL,NULL,0,NULL,NULL 37768,74560,218784,NULL,NULL,NULL,0,NULL,NULL 37769,310074,796887,NULL,NULL,NULL,0,NULL,NULL 37770,13943,357826,NULL,NULL,NULL,0,NULL,NULL 37771,4337797,828549,Supporter Editor,NULL,NULL,0,NULL,NULL 37772,309884,442865,NULL,NULL,NULL,0,NULL,NULL 37773,53822,207022,Popular Question Popular Question Popular Question Notable Question Yearling Good Question Popular Question Popular Question Nice Question Custodian Notable Question Notable Question Famous Question Good Question Famous Question Famous Question Famous Question Yearling Nice Question Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 37774,438774,1039443,Nice Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 37775,80846,766388,Nice Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Notable Question Nice Answer Enlightened Notable Question Notable Question Popular Question Yearling Caucus Constituent Notable Question Popular Question Famous Question Custodian Popular Question Popular Question Popular Question Notable Question Yearling Critic Good Question Popular Question,NULL,NULL,0,NULL,NULL 37776,234557,1196273,Nice Answer Nice Answer Yearling Nice Answer Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 37777,241693,699965,NULL,NULL,NULL,0,NULL,NULL 37778,139482,1340183,Yearling morphia Caucus Yearling Unsung Hero Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 37779,166933,19750,Good Answer Good Answer Good Answer Revival Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Nice Answer Good Answer Guru Yearling Good Answer Good Answer Good Answer Necromancer Guru Great Answer Nice Answer Nice Answer Guru Reviewer Good Answer bash Good Answer Great Answer Nice Answer Great Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Caucus Revival Great Answer Reviewer Nice Answer Guru Nice Answer Nice Answer Announcer Custodian Announcer Yearling Reviewer Nice Answer Nice Answer google-chrome Great Answer Nice Answer Guru Nice Answer Enlightened Good Answer Census Nice Answer Enlightened Good Answer Steward Nice Answer Enlightened unicode Good Answer Caucus Nice Answer Good Answer Constituent css Good Answer Nice Answer Enlightened Populist Nice Answer Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Enlightened,NULL,NULL,0,NULL,NULL 37780,4787,965885,Revival,NULL,NULL,0,NULL,NULL 37781,4230486,869811,NULL,NULL,NULL,0,NULL,NULL 37782,192416,869811,NULL,NULL,NULL,0,NULL,NULL 37783,209734,1342403,Tumbleweed,NULL,NULL,0,NULL,NULL 37784,44948,163759,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 37785,109565,814832,NULL,NULL,NULL,0,NULL,NULL 37786,836001,270922,Yearling Popular Question Nice Answer Nice Answer Yearling Popular Question Famous Question Nice Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 37787,13638,1039612,Famous Question Yearling Good Answer Notable Question Popular Question Custodian Caucus Constituent Custodian Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 37788,105246,877908,NULL,NULL,NULL,0,NULL,NULL 37789,1438216,1361936,Notable Question,NULL,NULL,0,NULL,NULL 37790,1601746,888641,Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 37791,230309,888641,Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 37792,342488,11090,NULL,NULL,NULL,0,NULL,NULL 37793,457885,1273702,NULL,NULL,NULL,0,NULL,NULL 37794,1912528,307121,NULL,NULL,NULL,0,NULL,NULL 37795,158144,25218,NULL,NULL,NULL,0,NULL,NULL 37796,181770,256234,Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Inquisitive Popular Question Popular Question Promoter,NULL,NULL,0,NULL,NULL 37797,44969,703723,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 37798,115559,9767,NULL,NULL,NULL,0,NULL,NULL 37799,387330,1374001,NULL,NULL,NULL,0,NULL,NULL 37800,296728,598300,NULL,NULL,NULL,0,NULL,NULL 37801,380990,639766,Student Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 37802,436242,679685,NULL,NULL,NULL,0,NULL,NULL 37803,1644090,1513918,NULL,NULL,NULL,0,NULL,NULL 37804,394868,337746,Necromancer Yearling Announcer Necromancer Announcer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 37805,882800,869264,Good Answer Nice Answer Enlightened Organizer Tag Editor Nice Answer Enlightened Nice Answer Nice Answer Yearling Caucus Good Answer Nice Answer Nice Answer Enlightened Yearling Guru spring Census Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 37806,890039,922571,Yearling Necromancer Nice Answer Yearling Nice Question Popular Question Popular Question Popular Question Revival Good Answer Necromancer Yearling Popular Question Yearling Custodian Notable Question Nice Question Necromancer Nice Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 37807,164897,1541104,NULL,NULL,NULL,0,NULL,NULL 37808,1509332,443904,NULL,NULL,NULL,0,NULL,NULL 37809,5962667,892613,Critic Good Answer Yearling Revival Custodian Census Tumbleweed,NULL,NULL,0,NULL,NULL 37810,3777429,892613,Critic Good Answer Yearling Revival Custodian Census Tumbleweed,NULL,NULL,0,NULL,NULL 37811,207514,892613,Critic Good Answer Yearling Revival Custodian Census Tumbleweed,NULL,NULL,0,NULL,NULL 37812,479995,438775,Yearling Favorite Question Critic Great Question,NULL,NULL,0,NULL,NULL 37813,73728,112324,Yearling Nice Answer Great Answer Yearling Documentation User Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37814,6993,358967,NULL,NULL,NULL,0,NULL,NULL 37815,270410,138421,Yearling,NULL,NULL,0,NULL,NULL 37816,1098610,670443,NULL,NULL,NULL,0,NULL,NULL 37817,185227,1461454,NULL,NULL,NULL,0,NULL,NULL 37818,42115,708615,NULL,NULL,NULL,0,NULL,NULL 37819,1211364,960218,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 37820,1552328,1078638,Scholar,NULL,NULL,0,NULL,NULL 37821,91514,1524717,NULL,NULL,NULL,0,NULL,NULL 37822,674946,408105,Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 37823,110454,615693,NULL,NULL,NULL,0,NULL,NULL 37824,371707,522150,Nice Answer Notable Question Necromancer Notable Question Nice Answer Yearling Necromancer Nice Answer Good Answer Necromancer Notable Question Popular Question Nice Answer Enlightened Documentation User Announcer Yearling Popular Question Popular Question Necromancer Popular Question Caucus Populist Necromancer Great Answer Talkative Yearling Notable Question,NULL,NULL,0,NULL,NULL 37825,554574,944168,NULL,NULL,NULL,0,NULL,NULL 37826,2642127,1016878,NULL,NULL,NULL,0,NULL,NULL 37827,252300,549346,Yearling Curious Revival Yearling Necromancer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 37828,107417,415505,NULL,NULL,NULL,0,NULL,NULL 37829,1181246,19392,Fanatic,NULL,NULL,0,NULL,NULL 37830,759387,403629,NULL,NULL,NULL,0,NULL,NULL 37831,164277,104325,Famous Question Famous Question,NULL,NULL,0,NULL,NULL 37832,1222636,1263739,Popular Question Yearling Necromancer Nice Question Popular Question Necromancer Nice Question Caucus Popular Question Famous Question Good Answer Yearling Popular Question Popular Question Autobiographer Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 37833,375105,679462,Famous Question,NULL,NULL,0,NULL,NULL 37834,2640602,679462,Famous Question,NULL,NULL,0,NULL,NULL 37835,543021,1134604,Necromancer,NULL,NULL,0,NULL,NULL 37836,75988,187833,Self-Learner Student Popular Question Nice Answer Yearling Notable Question Nice Question Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 37837,432413,730326,Caucus Yearling Caucus Constituent Announcer Curious Notable Question Notable Question Caucus Good Answer,NULL,NULL,0,NULL,NULL 37838,60134,1169006,NULL,NULL,NULL,0,NULL,NULL 37839,71161,799362,NULL,NULL,NULL,0,NULL,NULL 37840,237229,1478639,NULL,NULL,NULL,0,NULL,NULL 37841,5963418,663529,NULL,NULL,NULL,0,NULL,NULL 37842,1031212,663529,NULL,NULL,NULL,0,NULL,NULL 37843,167037,812318,NULL,NULL,NULL,0,NULL,NULL 37844,123455,454603,Nice Answer,NULL,NULL,0,NULL,NULL 37845,310774,95481,Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 37846,1350746,1212972,NULL,NULL,NULL,0,NULL,NULL 37847,2137401,445954,NULL,NULL,NULL,0,NULL,NULL 37848,111869,445954,NULL,NULL,NULL,0,NULL,NULL 37849,11629,328627,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37850,302930,1442683,NULL,NULL,NULL,0,NULL,NULL 37851,165858,1410121,NULL,NULL,NULL,0,NULL,NULL 37852,121725,1285713,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 37853,738979,494054,NULL,NULL,NULL,0,NULL,NULL 37854,125244,376789,Good Answer Great Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Populist Great Answer Yearling Good Answer Guru Good Answer Explainer Good Answer Guru Nice Answer Nice Answer Great Answer Good Answer Great Answer Good Answer Yearling javascript html Populist Nice Answer Nice Answer Guru Nice Answer Nice Answer Announcer Guru Yearling Good Answer Nice Answer,NULL,pNot really code val code is used to set form field codevalue code attribute so escaping isn really necessary there You ll be setting the value via the DOM so it not like you re constructing HTML through string concatenation code prop code on the other hand doesn even interact with attributes at all just DOM properties so you don need to working about HTML escaping their either phr pEdit for the sake of clarification assuming that you re asking this because you re concerned about code prop code or code val code as an XSS attack vector or just an opportunity to shoot yourself in the foot If that the case you need to remember that when setting attributes and properties via the DOM the values that you set are essentially sandboxed to the attribute or value you were interacting with For example given the following ppre code lt div id foo gt lt div gt code prepAnd you attempted to abuse an attribute value such as ppre code foo attr rel gt lt div gt lt script gt alert bang lt script gt lt div rel code prepYou might be concerned that this would result in something like the following ppre code lt div id foo rel gt lt div gt lt script gt alert bang lt script gt lt div rel gt lt div gt code prepThis will never happen though You will indeed have coderel code attribute with the evil looking string as its value but no new markup or DOM nodes will be created The string itself isn escaped it just simply not interpreted as markup It just string and that it that is correct there no need to encode there The value assigned to the src attribute won be interpreted as markup pNot really code val code is used to set form field codevalue code attribute so escaping isn really necessary there You ll be setting the value via the DOM so it not like you re constructing HTML through string concatenation code prop code on the other hand doesn even interact with attributes at all just DOM properties so you don need to working about HTML escaping their either phr pEdit for the sake of clarification assuming that you re asking this because you re concerned about code prop code or code val code as an XSS attack vector or just an opportunity to shoot yourself in the foot If that the case you need to remember that when setting attributes and properties via the DOM the values that you set are essentially sandboxed to the attribute or value you were interacting with For example given the following ppre code lt div id foo gt lt div gt code prepAnd you attempted to abuse an attribute value such as ppre code foo attr rel gt lt div gt lt script gt alert bang lt script gt lt div rel code prepYou might be concerned that this would result in something like the following ppre code lt div id foo rel gt lt div gt lt script gt alert bang lt script gt lt div rel gt lt div gt code prepThis will never happen though You will indeed have coderel code attribute with the evil looking string as its value but no new markup or DOM nodes will be created The string itself isn escaped it just simply not interpreted as markup It just string and that it Sorry for the delayed response but yes be very careful with generating HTML via string concatenation That is absolutely an XSS attack vector if care isn taken with encoding not familiar with encodeForHTMLAttribute looks like that ColdFusion utility but recommend reading further on that topic here https www owasp org index php XSS Cross Site Scripting Prevention Cheat Sheet RULE 232 Attribute Escape Before Inserting Untrusted Data into HTML Common Attributes,0,NULL,NULL 37855,382909,1214895,NULL,NULL,NULL,0,NULL,NULL 37856,294150,719286,Popular Question,NULL,NULL,0,NULL,NULL 37857,7016726,616067,Commentator,NULL,NULL,0,NULL,NULL 37858,80137,377377,Famous Question Famous Question,NULL,NULL,0,NULL,NULL 37859,83043,340767,NULL,NULL,NULL,0,NULL,NULL 37860,102909,398667,NULL,NULL,NULL,0,NULL,NULL 37861,155573,631027,Enthusiast Citizen Patrol Critic Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 37862,48463,83249,Popular Question Enthusiast Critic Yearling,NULL,NULL,0,NULL,NULL 37863,42621,570937,NULL,NULL,NULL,0,NULL,NULL 37864,8152,298447,NULL,NULL,NULL,0,NULL,NULL 37865,10047830,638189,NULL,NULL,NULL,0,NULL,NULL 37866,68050,252525,Yearling Good Question Curious,NULL,NULL,0,NULL,NULL 37867,901988,600830,NULL,NULL,NULL,0,NULL,NULL 37868,153927,128966,Nice Answer Yearling Informed Good Answer Caucus Yearling Caucus Constituent Civic Duty Yearling,NULL,NULL,0,NULL,NULL 37869,35631,907181,Good Question,NULL,NULL,0,NULL,NULL 37870,623222,839449,Nice Answer,NULL,NULL,0,NULL,NULL 37871,11054406,18866,Notable Question Great Question Notable Question Yearling Popular Question Popular Question Good Answer Nice Answer Popular Question Good Answer Yearling Good Question Notable Question Nice Question Popular Question Yearling,NULL,pIn python ppre codedef hex to rgb value Return red green blue for the color given as rrggbb value value lstrip lv len value return tuple int value lv 16 for in range lv lv def rgb to hex red green blue Return color as rrggbb for the given color values return 02x 02x 02x red green blue hex to rgb ffffff gt 255 255 255 hex to rgb ffffffffffff gt 65535 65535 65535 rgb to hex 255 255 255 gt ffffff rgb to hex 65535 65535 65535 gt ffffffffffff code pre In hindsight it seems like rgb to hex makes more sense than it accepting rgb as tuple It would make the function definition easier to understand Yeah,0,NULL,NULL 37872,159460,18866,Notable Question Great Question Notable Question Yearling Popular Question Popular Question Good Answer Nice Answer Popular Question Good Answer Yearling Good Question Notable Question Nice Question Popular Question Yearling,NULL,pIn python ppre codedef hex to rgb value Return red green blue for the color given as rrggbb value value lstrip lv len value return tuple int value lv 16 for in range lv lv def rgb to hex red green blue Return color as rrggbb for the given color values return 02x 02x 02x red green blue hex to rgb ffffff gt 255 255 255 hex to rgb ffffffffffff gt 65535 65535 65535 rgb to hex 255 255 255 gt ffffff rgb to hex 65535 65535 65535 gt ffffffffffff code pre In hindsight it seems like rgb to hex makes more sense than it accepting rgb as tuple It would make the function definition easier to understand Yeah,0,NULL,NULL 37873,1515183,592841,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37874,83592,1352434,NULL,NULL,NULL,0,NULL,NULL 37875,62980,505282,Student,NULL,NULL,0,NULL,NULL 37876,348610,1033425,NULL,NULL,NULL,0,NULL,NULL 37877,120194,245615,Notable Question,NULL,NULL,0,NULL,NULL 37878,63322,503655,NULL,NULL,NULL,0,NULL,NULL 37879,40668,340583,NULL,NULL,NULL,0,NULL,NULL 37880,2166,1224801,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 37881,230610,10238,Citizen Patrol Nice Answer Nice Answer Enlightened excel Nice Answer Yearling Caucus Sportsmanship Nice Answer Enlightened Informed Great Answer pandas Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened python Necromancer Good Answer Nice Answer Enlightened Good Answer Disciplined Necromancer Nice Answer Caucus Yearling Guru Nice Answer Enlightened xlsxwriter Nice Answer Enlightened Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 37882,99410,104386,NULL,NULL,NULL,0,NULL,NULL 37883,773772,1431938,NULL,NULL,NULL,0,NULL,NULL 37884,430526,1231093,Yearling,NULL,NULL,0,NULL,NULL 37885,24976,160887,Nice Answer Popular Question Popular Question Notable Question Nice Answer Nice Question Yearling Favorite Question Famous Question Nice Answer Favorite Question Famous Question Good Answer Notable Question Yearling Great Question Notable Question Nice Answer Enlightened Yearling Great Question Great Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 37886,318567,580987,NULL,NULL,NULL,0,NULL,NULL 37887,87816,488034,NULL,NULL,NULL,0,NULL,NULL 37888,19127,1186315,NULL,NULL,NULL,0,NULL,NULL 37889,1008834,682914,NULL,NULL,NULL,0,NULL,NULL 37890,12032,710951,java Deputy Yearling Revival Caucus Notable Question Good Answer Good Answer Popular Question Yearling Popular Question Caucus Good Answer Constituent Announcer Popular Question Good Answer Caucus Guru Yearling Nice Answer Announcer Popular Question,NULL,pAfter some serious searching it seems ve found the answer to my question ppfrom href http www brunildo org test Overflowxy2 html rel noreferrer http www brunildo org test Overflowxy2 html pblockquote pIn Gecko Safari Opera ‘visible’ becomes ‘auto’ also when combined with ‘hidden’ in other words ‘visible’ becomes ‘auto’ when combined with anything else different from ‘visible’ Gecko Safari Opera are pretty consistent among them blockquotepalso the href http www w3 org TR css3 box overflow rel noreferrer W3C spec says pblockquote pThe computed values of ‘overflow x’ and ‘overflow y’ are the same as their specified values except that some combinations with ‘visible’ are not possible if one is specified as ‘visible’ and the other is ‘scroll’ or ‘auto’ then ‘visible’ is set to ‘auto’ The computed value of ‘overflow’ is equal to the computed value of ‘overflow x’ if ‘overflow y’ is the same otherwise it is the pair of computed values of ‘overflow x’ and ‘overflow y’ blockquotep strongShort Version strong ppIf you are using codevisible code for either codeoverflow code or codeoverflow code and something other than codevisible code for the other the codevisible code value is interpreted as codeauto code Your linked spec the WD says nothing about overflow it probably been changed since Do you know what this means or where to find your snippet in official specs pAfter some serious searching it seems ve found the answer to my question ppfrom href http www brunildo org test Overflowxy2 html rel noreferrer http www brunildo org test Overflowxy2 html pblockquote pIn Gecko Safari Opera ‘visible’ becomes ‘auto’ also when combined with ‘hidden’ in other words ‘visible’ becomes ‘auto’ when combined with anything else different from ‘visible’ Gecko Safari Opera are pretty consistent among them blockquotepalso the href http www w3 org TR css3 box overflow rel noreferrer W3C spec says pblockquote pThe computed values of ‘overflow x’ and ‘overflow y’ are the same as their specified values except that some combinations with ‘visible’ are not possible if one is specified as ‘visible’ and the other is ‘scroll’ or ‘auto’ then ‘visible’ is set to ‘auto’ The computed value of ‘overflow’ is equal to the computed value of ‘overflow x’ if ‘overflow y’ is the same otherwise it is the pair of computed values of ‘overflow x’ and ‘overflow y’ blockquotep strongShort Version strong ppIf you are using codevisible code for either codeoverflow code or codeoverflow code and something other than codevisible code for the other the codevisible code value is interpreted as codeauto code Okay MDN links to CSS overflow module https drafts csswg org css overflow spec which only mentions about the restriction in the last section https drafts csswg org css overflow property index computed value column,0,NULL,NULL 37891,192300,1197244,NULL,NULL,NULL,0,NULL,NULL 37892,62681,963931,NULL,NULL,NULL,0,NULL,NULL 37893,390153,963931,NULL,NULL,NULL,0,NULL,NULL 37894,51084,735381,Yearling Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 37895,21391,1019732,Yearling Good Answer,NULL,NULL,0,NULL,NULL 37896,2,10762,Custodian Custodian Custodian Nice Answer Enlightened Good Answer Necromancer Yearling Caucus Constituent rufus-scheduler Nice Answer Caucus Constituent Yearling Nice Answer Caucus Constituent Yearling Excavator,NULL,NULL,0,NULL,NULL 37897,1520185,1124606,NULL,NULL,NULL,0,NULL,NULL 37898,165009,1484120,Supporter Scholar Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 37899,38187,848192,Teacher,NULL,NULL,0,NULL,NULL 37900,423265,341371,Yearling Good Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 37901,50591,1383129,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37902,473998,58994,Notable Question Yearling Nice Question Nice Question Popular Question Popular Question Famous Question Good Question Notable Question Nice Answer Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Good Question Popular Question Famous Question Famous Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Notable Question Good Question Good Question Popular Question Good Answer Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 37903,726675,604637,Editor Notable Question Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37904,104023,508505,NULL,NULL,NULL,0,NULL,NULL 37905,36045,353219,NULL,NULL,NULL,0,NULL,NULL 37906,105735,926933,Famous Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 37907,168884,243283,NULL,NULL,NULL,0,NULL,NULL 37908,189295,746048,NULL,NULL,NULL,0,NULL,NULL 37909,255295,122573,Good Question Famous Question Yearling Editor,NULL,NULL,0,NULL,NULL 37910,278834,319478,Nice Answer Supporter,NULL,NULL,0,NULL,NULL 37911,679901,789243,Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 37912,209622,164394,NULL,NULL,NULL,0,NULL,NULL 37913,234206,1515814,NULL,NULL,NULL,0,NULL,NULL 37914,200455,92517,Excavator Yearling Guru Custodian Announcer,NULL,NULL,0,NULL,NULL 37915,95060,482999,Good Answer Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 37916,271911,111220,Revival Yearling Census Notable Question,NULL,NULL,0,NULL,NULL 37917,669810,546288,NULL,NULL,NULL,0,NULL,NULL 37918,1636,162228,Booster Necromancer Necromancer Nice Answer Announcer Yearling Good Answer Announcer Announcer Cleanup Announcer Yearling doctrine-odm Announcer Announcer Announcer Revival Nice Answer Enlightened Announcer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 37919,270226,471728,NULL,NULL,NULL,0,NULL,NULL 37920,164337,16976,Favorite Question,NULL,NULL,0,NULL,NULL 37921,273083,3560,Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Great Answer Good Answer Great Answer Nice Answer Nice Answer Guru Yearling Nice Answer Great Answer Nice Answer Nice Answer Enlightened Necromancer Good Answer Nice Question Great Answer Guru Guru Good Answer Guru Great Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Yearling Revival Popular Question Nice Answer Good Answer Great Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Yearling Nice Answer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 37922,466182,1320814,NULL,NULL,NULL,0,NULL,NULL 37923,295534,160193,NULL,NULL,NULL,0,NULL,NULL 37924,4227028,970583,Notable Question,NULL,NULL,0,NULL,NULL 37925,665363,689271,NULL,NULL,NULL,0,NULL,NULL 37926,694320,492366,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 37927,732,226431,Nice Question Famous Question Notable Question Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Good Answer Notable Question Nice Answer Notable Question Popular Question Famous Question Yearling Great Question Self-Learner Good Answer Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 37928,68490,965508,NULL,NULL,NULL,0,NULL,NULL 37929,200102,1215213,NULL,NULL,NULL,0,NULL,NULL 37930,88501,491135,NULL,NULL,NULL,0,NULL,NULL 37931,73273,509902,NULL,NULL,NULL,0,NULL,NULL 37932,145440,156222,Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 37933,143342,134617,Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question Caucus Popular Question Self-Learner Enthusiast Tumbleweed Nice Question Popular Question,NULL,NULL,0,NULL,NULL 37934,363512,1472261,NULL,NULL,NULL,0,NULL,NULL 37935,113718,258972,Nice Question Notable Question Yearling Notable Question Nice Question Good Question Necromancer Famous Question Popular Question Good Question Yearling Notable Question Notable Question Necromancer Necromancer Popular Question Famous Question Nice Answer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 37936,661742,1134710,NULL,NULL,NULL,0,NULL,NULL 37937,481167,1229123,NULL,NULL,NULL,0,NULL,NULL 37938,301345,257892,NULL,NULL,NULL,0,NULL,NULL 37939,6702,128581,Yearling Nice Answer Enlightened Good Answer Good Answer Yearling Custodian Good Answer Yearling Good Answer Nice Answer Enlightened,NULL,h1After Rust 19 h1pAs of Rust 19 you can use the href https doc rust lang org std macro eprint html rel noreferrer codeeprint code and href https doc rust lang org std macro eprintln html rel noreferrer codeeprintln code macros ppre codefn main eprintln This is going to standard error awesome code prepThis was originally proposed in href https github com rust lang rfcs blob master text 1869 eprintln md rel noreferrer RFC 1896 ph1Before Rust 19 h1pYou can see the href https github com rust lang rust blob src libstd macros rs L118 L121 rel noreferrer implementation of codeprintln code to dive into exactly how it works but it was bit overwhelming when first read it ppYou can format stuff to stderr using similar macros though ppre codeuse std io Write let name world writeln amp mut std io stderr Hello name code prepThis will give you codeunused result which must be used code warning though as printing to IO emcan fail em this is not something we usually think about when printing We can see that the existing methods href https github com rust lang rust blob src libstd io stdio rs L625 L627 rel noreferrer simply panic in this case so we can update our code to do the same ppre codeuse std io Write let name world let writeln amp mut std io stderr Hello name expect failed printing to stderr code prepThis is bit much so let wrap it back in macro ppre codeuse std io Write macro rules println stderr arg tt gt let writeln amp mut std io stderr arg expect failed printing to stderr fn main let name world println stderr Hello name code pre They do the same thing but the macro handles the fail case the return value without all the cruft Without it you get warning,0,NULL,NULL 37940,230447,47033,NULL,NULL,NULL,0,NULL,NULL 37941,3516502,403883,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 37942,3278,425146,NULL,NULL,NULL,0,NULL,NULL 37943,399833,1399401,NULL,NULL,NULL,0,NULL,NULL 37944,53172,588758,Nice Answer Nice Question Yearling Great Question Good Question Popular Question Nice Question Favorite Question Popular Question Good Question Notable Question Popular Question Notable Question Nice Answer Popular Question Famous Question Famous Question Notable Question Yearling Popular Question Popular Question Famous Question Nice Question Popular Question Famous Question Famous Question Necromancer Caucus Popular Question Nice Question Popular Question Notable Question Custodian Popular Question Yearling Notable Question Favorite Question Popular Question Famous Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 37945,520509,586680,NULL,NULL,NULL,0,NULL,NULL 37946,12920,68427,Yearling Necromancer,NULL,NULL,0,NULL,NULL 37947,83510,368443,Popular Question,NULL,NULL,0,NULL,NULL 37948,181489,552391,Necromancer Necromancer Student Custodian Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 37949,48469,410582,NULL,NULL,NULL,0,NULL,NULL 37950,65546,469624,Necromancer,NULL,NULL,0,NULL,NULL 37951,701177,245088,Popular Question,NULL,NULL,0,NULL,NULL 37952,540598,356941,Famous Question Editor Good Question Caucus Popular Question Caucus Yearling Critic Curious,NULL,NULL,0,NULL,NULL 37953,1193544,1029334,NULL,NULL,NULL,0,NULL,NULL 37954,204169,604705,NULL,NULL,NULL,0,NULL,NULL 37955,51496,1244280,NULL,NULL,NULL,0,NULL,NULL 37956,917413,277307,Yearling Announcer Notable Question Yearling Tumbleweed Revival Great Answer Announcer Announcer Guru Yearling Announcer,NULL,NULL,0,NULL,NULL 37957,204694,557225,Editor,NULL,NULL,0,NULL,NULL 37958,350329,1432520,NULL,NULL,NULL,0,NULL,NULL 37959,130583,1148055,Good Answer Yearling Necromancer Guru Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 37960,267871,1435563,Autobiographer,NULL,NULL,0,NULL,NULL 37961,754044,985677,NULL,NULL,NULL,0,NULL,NULL 37962,192980,211257,NULL,NULL,NULL,0,NULL,NULL 37963,1018593,211257,NULL,NULL,NULL,0,NULL,NULL 37964,1023976,995643,NULL,NULL,NULL,0,NULL,NULL 37965,626809,941321,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 37966,869892,1168283,NULL,NULL,NULL,0,NULL,NULL 37967,248070,1151379,NULL,NULL,NULL,0,NULL,NULL 37968,134100,1472294,Autobiographer Enthusiast Editor Commentator,NULL,NULL,0,NULL,NULL 37969,134120,1472294,Autobiographer Enthusiast Editor Commentator,NULL,NULL,0,NULL,NULL 37970,1352653,1113721,NULL,NULL,NULL,0,NULL,NULL 37971,275979,212499,NULL,NULL,NULL,0,NULL,NULL 37972,372272,196351,NULL,NULL,NULL,0,NULL,NULL 37973,269709,440146,Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 37974,1040732,1524961,Nice Answer Yearling Critic Necromancer Popular Question Nice Answer Yearling Popular Question Necromancer Revival Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 37975,500338,480546,NULL,NULL,NULL,0,NULL,NULL 37976,26637,426443,Yearling Popular Question Guru Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 37977,663885,697255,Yearling Necromancer,NULL,NULL,0,NULL,NULL 37978,231947,321123,Popular Question Popular Question Famous Question Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 37979,998165,659164,NULL,NULL,NULL,0,NULL,NULL 37980,1115699,328143,NULL,NULL,NULL,0,NULL,NULL 37981,171570,23763,Popular Question Caucus Famous Question Census,NULL,NULL,0,NULL,NULL 37982,8496,1408308,NULL,NULL,NULL,0,NULL,NULL 37983,476714,657163,Yearling Notable Question Custodian Nice Answer Enlightened Yearling Notable Question Popular Question Populist Yearling,NULL,NULL,0,NULL,NULL 37984,290605,969861,NULL,NULL,NULL,0,NULL,NULL 37985,1170363,1469784,NULL,NULL,NULL,0,NULL,NULL 37986,126092,796053,NULL,NULL,NULL,0,NULL,NULL 37987,724548,782091,NULL,NULL,NULL,0,NULL,NULL 37988,97099,997432,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37989,5937,532644,NULL,NULL,NULL,0,NULL,NULL 37990,599791,224758,NULL,NULL,NULL,0,NULL,NULL 37991,105081,1336629,NULL,NULL,NULL,0,NULL,NULL 37992,24814,283383,NULL,NULL,NULL,0,NULL,NULL 37993,977147,516884,Yearling,NULL,NULL,0,NULL,NULL 37994,62695,736910,Notable Question Nice Answer Notable Question Good Answer Yearling Popular Question Notable Question Nice Question Yearling Notable Question Notable Question Famous Question Caucus Constituent Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 37995,30331,1054954,NULL,NULL,NULL,0,NULL,NULL 37996,299402,223456,Nice Answer javascript Caucus Good Answer Yearling Good Answer Tumbleweed Revival Nice Answer Enlightened Caucus Curious Necromancer Yearling Nice Question Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 37997,82475,604095,Scholar,NULL,NULL,0,NULL,NULL 37998,10805883,1198776,NULL,NULL,NULL,0,NULL,NULL 37999,424461,99907,Nice Question Yearling Good Answer Yearling Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 38000,14405,1056622,NULL,NULL,NULL,0,NULL,NULL 38001,798027,1104284,NULL,NULL,NULL,0,NULL,NULL 38002,34996,469717,Notable Question Yearling Notable Question Famous Question Nice Answer Enlightened Popular Question Popular Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 38003,333136,753955,NULL,NULL,NULL,0,NULL,NULL 38004,415805,1097671,NULL,NULL,NULL,0,NULL,NULL 38005,69710,1216946,Supporter,NULL,NULL,0,NULL,NULL 38006,12351,224254,Nice Question Popular Question Notable Question Popular Question Critic Nice Question Curious Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 38007,1297527,1004653,NULL,NULL,NULL,0,NULL,NULL 38008,208697,993896,NULL,NULL,NULL,0,NULL,NULL 38009,78009,1031409,NULL,NULL,NULL,0,NULL,NULL 38010,120536,571407,Guru Nice Answer Enlightened annotations netbeans Yearling Guru Nice Answer Good Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened rest Nice Answer Good Answer Enlightened junit Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer oop Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer unit-testing string Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened jdbctemplate Nice Answer Enlightened Nice Answer Guru Guru Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Guru Good Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru parameters jdbc Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Enlightened Good Answer abstract-class Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened svn Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened git Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened spring-data-jpa Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Quorum Nice Answer Enlightened dependency-injection Guru Good Answer Nice Answer Enlightened javascript Great Answer Nice Answer Enlightened enums Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer javabeans Nice Answer Nice Answer Nice Answer Good Answer encryption Nice Answer Enlightened database Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer version-control Nice Answer grails Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Answer jcombobox Self-Learner Nice Answer Enlightened Nice Answer Guru singleton Nice Answer Nice Answer Enlightened Nice Answer Enlightened eclipse Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened tomcat7 Nice Answer Good Answer Great Answer hql Guru Caucus Guru Revival Nice Answer Enlightened classpath kotlin Nice Answer Enlightened Nice Answer spring-data Nice Answer Good Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru synchronized Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened spring-mvc Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer date Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Census Good Answer jar Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer garbage-collection Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened java-stream Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer maven Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened simpledateformat Nice Answer Enlightened Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer angular Nice Answer polymorphism Nice Answer Enlightened Nice Answer Enlightened Guru Guru Guru properties Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Guru data-structures Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Guru Guru Enlightened Nice Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Good Answer algorithm xml Nice Answer Enlightened Nice Answer Enlightened Good Answer angularjs-scope Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Announcer Guru Guru Nice Answer Nice Answer Guru Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Great Answer servlets Nice Answer Good Answer struts-1 Nice Answer Enlightened override Nice Answer Enlightened Nice Answer Good Answer Nice Answer jpa-2.0 Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Guru Guru java-ee Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Guru Guru Nice Answer Good Answer Good Answer Nice Answer for-loop Guru Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Revival Great Answer Guru Nice Answer Enlightened scope comparator jasmine Guru Nice Answer Nice Answer Enlightened Suffrage Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer orm Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer spring-boot Nice Answer Nice Answer Enlightened Nice Answer Enlightened typescript Nice Answer Enlightened Good Answer Nice Answer Good Answer list Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Revival Guru angular Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Enlightened Nice Answer Good Answer Nice Answer Guru Nice Answer Census Guru Guru Yearling Good Answer groovy Guru json Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer types lazy-loading Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Good Answer Good Answer Great Answer Great Answer Nice Answer Good Answer Enlightened Nice Answer Enlightened autowired Great Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Caucus Guru Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Announcer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Guru object Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Tumbleweed Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Great Answer java-io Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened jodatime Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Good Question jpql Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer karma-jasmine Nice Answer Enlightened Guru Good Answer Nice Answer Guru many-to-one Nice Answer Enlightened Guru Nice Answer Enlightened rxjs Nice Answer Good Answer Good Answer Good Answer Nice Answer Populist Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 38011,391559,1293669,NULL,NULL,NULL,0,NULL,NULL 38012,238753,238277,Necromancer,NULL,NULL,0,NULL,NULL 38013,765911,1294085,NULL,NULL,NULL,0,NULL,NULL 38014,248503,87629,Yearling Nice Answer Enlightened Caucus Yearling Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 38015,1057111,605861,NULL,NULL,NULL,0,NULL,NULL 38016,733978,412529,Nice Answer Yearling Custodian Informed Autobiographer Caucus Announcer Caucus Constituent Yearling Popular Question Necromancer Caucus Constituent Custodian Yearling Excavator,NULL,NULL,0,NULL,NULL 38017,381279,1271227,NULL,NULL,NULL,0,NULL,NULL 38018,291123,120734,NULL,NULL,NULL,0,NULL,NULL 38019,181407,395761,Popular Question,NULL,NULL,0,NULL,NULL 38020,67833,864544,Yearling,NULL,NULL,0,NULL,NULL 38021,81350,262315,Teacher,NULL,NULL,0,NULL,NULL 38022,281977,106765,NULL,NULL,NULL,0,NULL,NULL 38023,124715,106765,NULL,NULL,NULL,0,NULL,NULL 38024,168975,1303819,NULL,NULL,NULL,0,NULL,NULL 38025,315112,411058,NULL,NULL,NULL,0,NULL,NULL 38026,134333,1140214,NULL,NULL,NULL,0,NULL,NULL 38027,64739,451201,Curious Famous Question Yearling Yearling Good Answer Announcer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38028,29744,418660,NULL,NULL,NULL,0,NULL,NULL 38029,191564,587837,NULL,NULL,NULL,0,NULL,NULL 38030,195419,916133,NULL,NULL,NULL,0,NULL,NULL 38031,92187,1158879,NULL,NULL,NULL,0,NULL,NULL 38032,712144,1548079,Popular Question,NULL,NULL,0,NULL,NULL 38033,10186,106302,Popular Question Nice Answer Popular Question Nice Answer Enlightened Yearling Popular Question Nice Question Nice Question Revival Popular Question Notable Question Yearling Revival Notable Question Announcer Popular Question Caucus Necromancer Yearling Custodian Civic Duty Custodian,NULL,NULL,0,NULL,NULL 38034,205264,534736,NULL,NULL,NULL,0,NULL,NULL 38035,99641,409068,Revival Nice Answer Yearling Necromancer Good Answer Necromancer Yearling Critic,NULL,NULL,0,NULL,NULL 38036,656831,382531,Notable Question,NULL,NULL,0,NULL,NULL 38037,926450,940707,NULL,NULL,,0,, 38038,173876,1032717,NULL,NULL,NULL,0,NULL,NULL 38039,416270,1140695,NULL,NULL,NULL,0,NULL,NULL 38040,252900,495172,NULL,NULL,NULL,0,NULL,NULL 38041,37473,227366,NULL,NULL,NULL,0,NULL,NULL 38042,73725,826877,NULL,NULL,NULL,0,NULL,NULL 38043,1991438,1408747,NULL,NULL,NULL,0,NULL,NULL 38044,1209772,612065,NULL,NULL,NULL,0,NULL,NULL 38045,118736,210787,Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 38046,7209220,476713,Popular Question Yearling,NULL,NULL,0,NULL,NULL 38047,61563,148811,NULL,NULL,NULL,0,NULL,NULL 38048,414001,543384,Notable Question Popular Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38049,289858,840896,NULL,NULL,NULL,0,NULL,NULL 38050,138119,155929,NULL,NULL,NULL,0,NULL,NULL 38051,1031541,517528,Nice Answer Nice Question Famous Question Notable Question Enthusiast Nice Answer Good Answer Caucus Constituent Yearling Famous Question Nice Question Popular Question Nice Question Custodian Good Answer Famous Question Custodian Excavator Custodian Yearling Census Notable Question Good Question Caucus Guru Explainer Yearling,NULL,NULL,0,NULL,NULL 38052,119560,221647,NULL,NULL,NULL,0,NULL,NULL 38053,30703,1486264,NULL,NULL,NULL,0,NULL,NULL 38054,201106,706116,Nice Answer Yearling Self-Learner Caucus Good Question,NULL,NULL,0,NULL,NULL 38055,145447,5603,NULL,NULL,NULL,0,NULL,NULL 38056,72874,775715,Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer jetty Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened servlets Nice Answer Nice Answer Enlightened Announcer Announcer Nice Answer Nice Answer Enlightened Good Answer websocket Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened jetty-9 Nice Answer Enlightened Announcer Yearling Announcer Good Answer Nice Answer maven Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened embedded-jetty Nice Answer Enlightened Nice Answer Nice Answer Good Answer Documentation User java Announcer Announcer http Census Announcer Announcer Announcer Announcer Guru Yearling rest Announcer Announcer Announcer Good Answer Good Answer,NULL,pYour href https github com adamretter exist blob jetty tools jetty etc enabled jetty config rel nofollow noreferrer XML load order is bad see codeetc enabled jetty config code in your source pp href https stackoverflow com 37840982 775715 mentioned this in an earlier answer ppHere way you can see how this order works ppUse the codejetty distribution code ppre code Use new empty base cd path to mybase Lets add the modules into this base java jar path to jetty dist start jar add to start annotations deploy https gzip jmx requestlogINFO server initialised transitively in jetty base start iniINFO gzip initialised in jetty base start iniINFO jmx initialised in jetty base start iniINFO requestlog initialised in jetty base start iniINFO ssl initialised transitively in jetty base start iniINFO https initialised in jetty base start iniINFO deploy initialised in jetty base start iniINFO annotations initialised in jetty base start iniMKDIR jetty base logsDOWNLOAD https raw githubusercontent com eclipse jetty project master jetty server src test config etc keystore id master to jetty base etc keystoreMKDIR jetty base webappsINFO Base directory was modified Lets ask the jetty distribution what its XML load order isjava jar path to jetty dist start jar list config snip lots of output Jetty Active XMLs jetty home etc jetty xml jetty home etc jetty gzip xml jetty home etc jetty jmx xml jetty home etc jetty requestlog xml jetty home etc jetty ssl xml jetty home etc jetty ssl context xml jetty home etc jetty https xml jetty home etc jetty deploy xml jetty home etc jetty plus xml jetty home etc jetty annotations xml code prepNote this load order can and does change between releases of Jetty Don rely on this being the one true load order for all versions of Jetty going forward You ll either have to implement the same codestart jar code module logic or redo this codejetty distribution start jar list config code with each upgrade of your project pblockquote strongWARNING strong Don do this don mix codejetty distribution code and codeembedded jetty code you are just creating lots of extra work for yourself increasing your maintenance tasks etc Use codeembedded jetty code strong or strong codejetty distribution code directly blockquote You have new questions then BTW Your hybrid approach is what causing you problems Your embedded jetty is making assumptions that your jetty distribution based XMLs don conform to pYour href https github com adamretter exist blob jetty tools jetty etc enabled jetty config rel nofollow noreferrer XML load order is bad see codeetc enabled jetty config code in your source pp href https stackoverflow com 37840982 775715 mentioned this in an earlier answer ppHere way you can see how this order works ppUse the codejetty distribution code ppre code Use new empty base cd path to mybase Lets add the modules into this base java jar path to jetty dist start jar add to start annotations deploy https gzip jmx requestlogINFO server initialised transitively in jetty base start iniINFO gzip initialised in jetty base start iniINFO jmx initialised in jetty base start iniINFO requestlog initialised in jetty base start iniINFO ssl initialised transitively in jetty base start iniINFO https initialised in jetty base start iniINFO deploy initialised in jetty base start iniINFO annotations initialised in jetty base start iniMKDIR jetty base logsDOWNLOAD https raw githubusercontent com eclipse jetty project master jetty server src test config etc keystore id master to jetty base etc keystoreMKDIR jetty base webappsINFO Base directory was modified Lets ask the jetty distribution what its XML load order isjava jar path to jetty dist start jar list config snip lots of output Jetty Active XMLs jetty home etc jetty xml jetty home etc jetty gzip xml jetty home etc jetty jmx xml jetty home etc jetty requestlog xml jetty home etc jetty ssl xml jetty home etc jetty ssl context xml jetty home etc jetty https xml jetty home etc jetty deploy xml jetty home etc jetty plus xml jetty home etc jetty annotations xml code prepNote this load order can and does change between releases of Jetty Don rely on this being the one true load order for all versions of Jetty going forward You ll either have to implement the same codestart jar code module logic or redo this codejetty distribution start jar list config code with each upgrade of your project pblockquote strongWARNING strong Don do this don mix codejetty distribution code and codeembedded jetty code you are just creating lots of extra work for yourself increasing your maintenance tasks etc Use codeembedded jetty code strong or strong codejetty distribution code directly blockquote The decision between single vs multiple XMLs is irrelevant both choices are equally as valid The decision should be about control consistency and understanding the nature of the setup between your XML and the code you have after the XML setup in your embedded jetty logic right now you are just tossing jetty distribution XML at it not understanding the XML requirements what the XML is actually doing and getting frustrated that the embedded jetty side isn working pYour href https github com adamretter exist blob jetty tools jetty etc enabled jetty config rel nofollow noreferrer XML load order is bad see codeetc enabled jetty config code in your source pp href https stackoverflow com 37840982 775715 mentioned this in an earlier answer ppHere way you can see how this order works ppUse the codejetty distribution code ppre code Use new empty base cd path to mybase Lets add the modules into this base java jar path to jetty dist start jar add to start annotations deploy https gzip jmx requestlogINFO server initialised transitively in jetty base start iniINFO gzip initialised in jetty base start iniINFO jmx initialised in jetty base start iniINFO requestlog initialised in jetty base start iniINFO ssl initialised transitively in jetty base start iniINFO https initialised in jetty base start iniINFO deploy initialised in jetty base start iniINFO annotations initialised in jetty base start iniMKDIR jetty base logsDOWNLOAD https raw githubusercontent com eclipse jetty project master jetty server src test config etc keystore id master to jetty base etc keystoreMKDIR jetty base webappsINFO Base directory was modified Lets ask the jetty distribution what its XML load order isjava jar path to jetty dist start jar list config snip lots of output Jetty Active XMLs jetty home etc jetty xml jetty home etc jetty gzip xml jetty home etc jetty jmx xml jetty home etc jetty requestlog xml jetty home etc jetty ssl xml jetty home etc jetty ssl context xml jetty home etc jetty https xml jetty home etc jetty deploy xml jetty home etc jetty plus xml jetty home etc jetty annotations xml code prepNote this load order can and does change between releases of Jetty Don rely on this being the one true load order for all versions of Jetty going forward You ll either have to implement the same codestart jar code module logic or redo this codejetty distribution start jar list config code with each upgrade of your project pblockquote strongWARNING strong Don do this don mix codejetty distribution code and codeembedded jetty code you are just creating lots of extra work for yourself increasing your maintenance tasks etc Use codeembedded jetty code strong or strong codejetty distribution code directly blockquote There is reason that jetty itself doesn read walk modify the Jetty Server instance it creates via its jetty distribution XML and XmlConfiguration Its complicated to get right and you ll wind up creating more lines of code just to interrogate the created Server properly vs just defining the server directly in embedded jetty see LikeJettyXml example https github com eclipse jetty project blob jetty examples embedded src main java org eclipse jetty embedded LikeJettyXml java pYour href https github com adamretter exist blob jetty tools jetty etc enabled jetty config rel nofollow noreferrer XML load order is bad see codeetc enabled jetty config code in your source pp href https stackoverflow com 37840982 775715 mentioned this in an earlier answer ppHere way you can see how this order works ppUse the codejetty distribution code ppre code Use new empty base cd path to mybase Lets add the modules into this base java jar path to jetty dist start jar add to start annotations deploy https gzip jmx requestlogINFO server initialised transitively in jetty base start iniINFO gzip initialised in jetty base start iniINFO jmx initialised in jetty base start iniINFO requestlog initialised in jetty base start iniINFO ssl initialised transitively in jetty base start iniINFO https initialised in jetty base start iniINFO deploy initialised in jetty base start iniINFO annotations initialised in jetty base start iniMKDIR jetty base logsDOWNLOAD https raw githubusercontent com eclipse jetty project master jetty server src test config etc keystore id master to jetty base etc keystoreMKDIR jetty base webappsINFO Base directory was modified Lets ask the jetty distribution what its XML load order isjava jar path to jetty dist start jar list config snip lots of output Jetty Active XMLs jetty home etc jetty xml jetty home etc jetty gzip xml jetty home etc jetty jmx xml jetty home etc jetty requestlog xml jetty home etc jetty ssl xml jetty home etc jetty ssl context xml jetty home etc jetty https xml jetty home etc jetty deploy xml jetty home etc jetty plus xml jetty home etc jetty annotations xml code prepNote this load order can and does change between releases of Jetty Don rely on this being the one true load order for all versions of Jetty going forward You ll either have to implement the same codestart jar code module logic or redo this codejetty distribution start jar list config code with each upgrade of your project pblockquote strongWARNING strong Don do this don mix codejetty distribution code and codeembedded jetty code you are just creating lots of extra work for yourself increasing your maintenance tasks etc Use codeembedded jetty code strong or strong codejetty distribution code directly blockquote Ask more questions the ClassCastException and ISE No LoginService are separate issues both related to how your XML and embedded jetty are interacting with each other The desire for flexible configuration means you have lot of work ahead of you in your embedded jetty to compensate for every possible variable that can be accomplished in the XML blockquote strongUpdate November 2016 strong The information provided in this answer is for the JSR356 spec individual implementations of the spec may vary outside of this information Other suggestions found in comments and other answers are all implementation specific behaviors outside of the JSR356 spec pIf the suggestions in here are causing you problems upgrade your various installations of Jetty Tomcat Wildfly or Glassfish Tyrus All current versions of those implementations have all been reported to work in the way outlined below blockquotep emNow back to the original answer from strongAugust 2013 strong em ppThe answer from Martin Andersson has concurrency flaw The Configurator can be called by multiple threads at the same time it is likely that you will not have access to the correct HttpSession object between the calls from codemodifyHandshake code and codegetEndpointInstance code ppOr said another way pulliRequest liliModify Handshake liliRequest liliModify Handshake liliGet Endpoint Instance lt this would have Request HttpSession liliGet Endpoint Instance li ulpHere modification to Martin code that uses codeServerEndpointConfig getUserProperties code map to make the codeHttpSession code available to your socket instance during the code code method call pp strongGetHttpSessionConfigurator java strong ppre class lang java prettyprint override codepackage examples import javax servlet http HttpSession import javax websocket HandshakeResponse import javax websocket server HandshakeRequest import javax websocket server ServerEndpointConfig public class GetHttpSessionConfigurator extends ServerEndpointConfig Configurator public void modifyHandshake ServerEndpointConfig config HandshakeRequest request HandshakeResponse response HttpSession httpSession HttpSession request getHttpSession config getUserProperties put HttpSession class getName httpSession code prep strongGetHttpSessionSocket java strong ppre class lang java prettyprint override codepackage examples import java io IOException import javax servlet http HttpSession import javax websocket EndpointConfig import javax websocket OnMessage import javax websocket OnOpen import javax websocket Session import javax websocket server ServerEndpoint value example configurator GetHttpSessionConfigurator class public class GetHttpSessionSocket private Session wsSession private HttpSession httpSession public void open Session session EndpointConfig config this wsSession session this httpSession HttpSession config getUserProperties get HttpSession class getName public void echo String msg throws IOException wsSession getBasicRemote sendText msg code prepBonus feature no codeinstanceof code or casting required pp strongSome EndpointConfig Knowledge strong pp codeEndpointConfig code objects do exist per Endpoint Instance ppHowever an Endpoint Instance has meanings with the spec polliDefault behavior of the JSR where each incoming upgrade request results in new object instance of the endpoint class liliA codejavax websocket Session code that ties together the object endpoint instance with its configuration to specific logical connection li olpIt is possible to have singleton Endpoint instance being used for multiple codejavax websocket Session code instances that is one of the features that codeServerEndpointConfig Configurator code supports ppThe ServerContainer implementation will track set of ServerEndpointConfig that represent all of the deployed endpoints that the server can respond to websocket upgrade request ppThese ServerEndpointConfig object instances can come from few different sources polliManually provided by the codejavax websocket server ServerContainer addEndpoint ServerEndpointConfig codeulliUsually done within codejavax servlet ServletContextInitializer contextInitialized ServletContextEvent sce code call li ul liliFrom the codejavax websocket server ServerApplicationConfig getEndpointConfigs Set code call liliAutomatically created from scanning of the web application for code code annotated classes li olpThese codeServerEndpointConfig code object instances exist as defaults for when codejavax websocket Session code does eventually get created pp strongServerEndpointConfig Configurator Instance strong ppBefore any upgrade requests are received or processed all of the codeServerEndpointConfig Configurator code objects now exist and are ready to perform their main and sole purpose to allow for customization of the upgrade process of websocket connection to an eventual codejavax websocket Session code pp strongAccess to Session specific EndpointConfig strong ppNote you cannot access the codeServerEndpointConfig code object instances from within endpoint instance You can only access codeEndpointConfig code instances ppThis means if you provided codeServerContainer addEndpoint new MyCustomServerEndpointConfig code during deploy and later tried to access it via the annotations it will not work ppAll of the following would be invalid ppre class lang java prettyprint override code void onOpen Session session EndpointConfig config MyCustomServerEndpointConfig myconfig MyCustomServerEndpointConfig config this would fail as the config is cannot be cast around like that or void onOpen Session session ServerEndpointConfig config For the websocket implementation would assume that the ServerEndpointConfig to be declared PathParam or void onOpen Session session MyCustomServerEndpointConfig config Again for the websocket implementation would assume that the MyCustomServerEndpointConfig to be declared PathParam code prepYou can access the EndpointConfig during the life of the Endpoint object instance but under limited time The codejavax websocket Endpoint onOpen Session Endpoint code annotated code code methods or via the use of CDI The EndpointConfig is not available in any other way or at any other time ppHowever you can always access the UserProperties via the codeSession getUserProperties code call which is available always This User Properties map is always available be it via the annotated techniques such as Session parameter during code code code code code code or code code calls via CDI injection of the Session or even with the use of non annotated websockets that extend from codejavax websocket Endpoint code pp strongHow Upgrade Works strong ppAs stated before every one of the defined endpoints will have codeServerEndpointConfig code associated with it ppThose codeServerEndpointConfigs code are single instance that represents the default state of the codeEndpointConfig code that are eventually made available to the Endpoint Instances that are possibly and eventually created ppWhen incoming upgrade request arrives it has go through the following on the JSR pollidoes the path match any of the ServerEndpointConfig getPath entriesulliIf no match return 404 to upgrade li ul lilipass upgrade request into ServerEndpointConfig Configurator checkOrigin ulliIf not valid return error to upgrade response lilicreate HandshakeResponse li ul lilipass upgrade request into ServerEndpointConfig Configurator getNegotiatedSubprotocol ullistore answer in HandshakeResponse li ul lilipass upgrade request into ServerEndpointConfig Configurator getNegotiatedExtensions ullistore answer in HandshakeResponse li ul liliCreate new endpoint specific ServerEndpointConfig object copy encoders decoders and User Properties This new ServerEndpointConfig wraps default for path extensions endpoint class subprotocols configurator lilipass upgrade request response and new ServerEndpointConfig into ServerEndpointConfig Configurator modifyHandshake lilicall ServerEndpointConfig getEndpointClass liliuse class on ServerEndpointConfig Configurator getEndpointInstance Class lilicreate Session associate endpoint instance and EndpointConfig object liliInform endpoint instance of connect liliannotated methods that want EndpointConfig gets the one associated with this Session lilicalls to Session getUserProperties returns EndpointConfig getUserProperties li olpTo note the ServerEndpointConfig Configurator is singleton per mapped ServerContainer endpoint ppThis is intentional and desired to allow implementors several features pullito return the same Endpoint instance for multiple peers if they so desire The so called stateless approach to websocket writing lilito have single point of management of expensive resources for all Endpoint instances li ulpIf the implementations created new Configurator for every handshake this technique would not be possible pp em Disclosure write and maintain the JSR 356 implementation for Jetty em No as the HttpSession has no lifecycle once you are upgraded past http into websocket This is undefined by the Servlet spec and WebSocket spec pThe documentation is correct as the term Java Logging Framework is often associated with modern logging frameworks like java util logging slf4j logback log4j commons logging logkit etc ppThis is correct Jetty does not use any of those ppJetty logging predates emALL em of those efforts at standardized logging frameworks Jetty and its logging layer was created in 1995 ppThis is what Jetty logging does and href https www eclipse org jetty documentation current configuring logging html is documented at the documentation site with regards to setup and configuration pp strongDefault behavior strong pulliIf href http slf4j org slf4j is present in your classpath it will emit logging events to slf4j to handle using the href http download eclipse org jetty stable apidocs org eclipse jetty util log Slf4jLog html Slf4jLog handler liliFallback to href http download eclipse org jetty stable apidocs org eclipse jetty util log StdErrLog html StdErrLog emitting to System err li ulp strongTo configure strong pulliSpecify the logging implementation you want it to use Choices are ulli href http download eclipse org jetty stable apidocs org eclipse jetty util log StdErrLog html StdErrLog lili href http download eclipse org jetty stable apidocs org eclipse jetty util log Slf4jLog html Slf4jLog lili href http download eclipse org jetty stable apidocs org eclipse jetty util log JavaUtilLog html JavaUtilLog li ul li ulpThis can be accomplished in different ways polliUsing system property to set the logging impl li olpre class lang sh prettyprint override code different options Dorg eclipse jetty util log class org eclipse jetty util log StdErrLog Dorg eclipse jetty util log class org eclipse jetty util log Slf4jLog Dorg eclipse jetty util log class org eclipse jetty util log JavaUtilLog code preol start liUsing the codejetty logging properties code self discover configuration found from classpath li olp href https github com eclipse jetty project blob jetty v20140905 jetty websocket websocket common src test resources jetty logging properties Example from jetty project itself ppre class lang sh prettyprint override code Configure for System err outputorg eclipse jetty util log class org eclipse jetty util log StdErrLog Configure StdErrLog to log all jetty namespace at default of WARN or aboveorg eclipse jetty LEVEL WARN Configure StdErrLog to log websocket specific namespace at DEBUG or aboveorg eclipse jetty websocket LEVEL DEBUG code preol start liUsing code to set href http download eclipse org jetty stable apidocs org eclipse jetty util log Log html setLog org eclipse jetty util log Logger codeLog setLog Logger code li olpThis is particularly useful for those using href questions tagged embedded jetty class post tag title show questions tagged 39 embedded jetty 39 rel tag embedded jetty ppre class lang java prettyprint override codeimport org eclipse jetty util log Log import org eclipse jetty util log StdErrLog Log setLog new StdErrLog code prep strongAdvice and Notes strong ppThe output of your Jetty server startup will give you hints about the logging implementation it is using pp emNormal Default behavior em ppre code2014 09 11 10 48 38 726 INFO main Logging initialized 09 11 10 48 39 067 INFO oejdp ScanningAppProvider main Deployment monitor file Users joakim Code Jetty distros jetty distribution v20140609 demo base webapps at interval code prepNotice that this has either no namespace declaration or heavily abbreviated namespace in its output This tells me that the codeStdErrLog code is in use pp emIf slf4j is in use em ppre code10 50 18 871 main INFO org eclipse jetty util log Logging initialized 50 19 102 main INFO ScanningAppProvider Deployment monitor file Users joakim Code Jetty distros jetty distribution v20140609 demo base webapps at interval code prepThis is default href http logback qos ch manual configuration html Console appender output for codeslf4j code codelogback code The overall structure here is very different that what the codeStdErrLog code produces so can now tell that jetty is emitting via the codeSlf4jLog code implementation Configuration of the logging levels is determined by the logger implementation you choose With StdErrLog its properties in jetty logging properties With java util logging its done entirely in java util logging With slf4j its the chosen slf4j implementation you have chosen such as slf4j log12 would mean your log4j xml controls it etc pThe documentation is correct as the term Java Logging Framework is often associated with modern logging frameworks like java util logging slf4j logback log4j commons logging logkit etc ppThis is correct Jetty does not use any of those ppJetty logging predates emALL em of those efforts at standardized logging frameworks Jetty and its logging layer was created in 1995 ppThis is what Jetty logging does and href https www eclipse org jetty documentation current configuring logging html is documented at the documentation site with regards to setup and configuration pp strongDefault behavior strong pulliIf href http slf4j org slf4j is present in your classpath it will emit logging events to slf4j to handle using the href http download eclipse org jetty stable apidocs org eclipse jetty util log Slf4jLog html Slf4jLog handler liliFallback to href http download eclipse org jetty stable apidocs org eclipse jetty util log StdErrLog html StdErrLog emitting to System err li ulp strongTo configure strong pulliSpecify the logging implementation you want it to use Choices are ulli href http download eclipse org jetty stable apidocs org eclipse jetty util log StdErrLog html StdErrLog lili href http download eclipse org jetty stable apidocs org eclipse jetty util log Slf4jLog html Slf4jLog lili href http download eclipse org jetty stable apidocs org eclipse jetty util log JavaUtilLog html JavaUtilLog li ul li ulpThis can be accomplished in different ways polliUsing system property to set the logging impl li olpre class lang sh prettyprint override code different options Dorg eclipse jetty util log class org eclipse jetty util log StdErrLog Dorg eclipse jetty util log class org eclipse jetty util log Slf4jLog Dorg eclipse jetty util log class org eclipse jetty util log JavaUtilLog code preol start liUsing the codejetty logging properties code self discover configuration found from classpath li olp href https github com eclipse jetty project blob jetty v20140905 jetty websocket websocket common src test resources jetty logging properties Example from jetty project itself ppre class lang sh prettyprint override code Configure for System err outputorg eclipse jetty util log class org eclipse jetty util log StdErrLog Configure StdErrLog to log all jetty namespace at default of WARN or aboveorg eclipse jetty LEVEL WARN Configure StdErrLog to log websocket specific namespace at DEBUG or aboveorg eclipse jetty websocket LEVEL DEBUG code preol start liUsing code to set href http download eclipse org jetty stable apidocs org eclipse jetty util log Log html setLog org eclipse jetty util log Logger codeLog setLog Logger code li olpThis is particularly useful for those using href questions tagged embedded jetty class post tag title show questions tagged 39 embedded jetty 39 rel tag embedded jetty ppre class lang java prettyprint override codeimport org eclipse jetty util log Log import org eclipse jetty util log StdErrLog Log setLog new StdErrLog code prep strongAdvice and Notes strong ppThe output of your Jetty server startup will give you hints about the logging implementation it is using pp emNormal Default behavior em ppre code2014 09 11 10 48 38 726 INFO main Logging initialized 09 11 10 48 39 067 INFO oejdp ScanningAppProvider main Deployment monitor file Users joakim Code Jetty distros jetty distribution v20140609 demo base webapps at interval code prepNotice that this has either no namespace declaration or heavily abbreviated namespace in its output This tells me that the codeStdErrLog code is in use pp emIf slf4j is in use em ppre code10 50 18 871 main INFO org eclipse jetty util log Logging initialized 50 19 102 main INFO ScanningAppProvider Deployment monitor file Users joakim Code Jetty distros jetty distribution v20140609 demo base webapps at interval code prepThis is default href http logback qos ch manual configuration html Console appender output for codeslf4j code codelogback code The overall structure here is very different that what the codeStdErrLog code produces so can now tell that jetty is emitting via the codeSlf4jLog code implementation please open new question or look for an existing one your topic should have many answers by now,1,NULL,NullPointerException in RequestLogCollection Jetty jetty embedded jetty jetty pI am using Jetty v20160517 in my embedded application and have configured the logging using codejetty requestlog xml code like so ppre class lang xml prettyprint override code lt xml version gt lt DOCTYPE Configure PUBLIC Jetty Configure EN http www eclipse org jetty configure dtd gt lt gt lt Configure the Jetty Request Log gt lt gt lt Configure id Server class org eclipse jetty server Server gt lt gt lt Configure Request Log for Server gt lt Use RequestLogHandler for context specific RequestLog gt lt gt lt Set name RequestLog gt lt New id RequestLog class org eclipse jetty server AsyncNCSARequestLog gt lt Set name filename gt lt Property name jetty base default gt lt Property gt lt Name gt jetty requestlog filePath lt Name gt lt Deprecated gt requestlog filename lt Deprecated gt lt Default gt lt Property name jetty requestlog dir default logs gt yyyy mm dd request log lt Default gt lt Property gt lt Set gt lt Set name filenameDateFormat gt lt Property name jetty requestlog filenameDateFormat deprecated requestlog filenameDateFormat default yyyy MM dd gt lt Set gt lt Set name retainDays gt lt Property name jetty requestlog retainDays deprecated requestlog retain default 90 gt lt Set gt lt Set name append gt lt Property name jetty requestlog append deprecated requestlog append default true gt lt Set gt lt Set name extended gt lt Property name jetty requestlog extended deprecated requestlog extended default false gt lt Set gt lt Set name logCookies gt lt Property name jetty requestlog cookies deprecated requestlog cookies default false gt lt Set gt lt Set name LogTimeZone gt lt Property name jetty requestlog timezone deprecated requestlog timezone default GMT gt lt Set gt lt New gt lt Set gt lt Configure gt code prepHowever at runtime when Jetty actually tries to log anything get the following NPE each time make request to the server even though the logs do seem to be written to code jetty base logs 2016 06 15 request log code ppre class lang none prettyprint override code2016 06 15 22 19 23 302 eXistThread 29 WARN HttpChannel java handle 479 localhost 8080 exist apps dashboard modules get icon xql package http exist db org apps eXide java lang NullPointerException at org eclipse jetty server RequestLogCollection log RequestLogCollection java 44 jetty server v20160517 jar v20160517 at org eclipse jetty server HttpChannel onCompleted HttpChannel java 620 jetty server v20160517 jar v20160517 at org eclipse jetty server HttpChannel handle HttpChannel java 453 jetty server v20160517 jar v20160517 at org eclipse jetty server HttpConnection onFillable HttpConnection java 253 jetty server v20160517 jar v20160517 at org eclipse jetty io AbstractConnection ReadCallback succeeded AbstractConnection java 273 jetty io v20160517 jar v20160517 at org eclipse jetty io FillInterest fillable FillInterest java 95 jetty io v20160517 jar v20160517 at org eclipse jetty io SelectChannelEndPoint run SelectChannelEndPoint java 93 jetty io v20160517 jar v20160517 at org eclipse jetty util thread strategy ExecuteProduceConsume executeProduceConsume ExecuteProduceConsume java 303 jetty util v20160517 jar v20160517 at org eclipse jetty util thread strategy ExecuteProduceConsume produceConsume ExecuteProduceConsume java 148 jetty util v20160517 jar v20160517 at org eclipse jetty util thread strategy ExecuteProduceConsume run ExecuteProduceConsume java 136 jetty util v20160517 jar v20160517 at org eclipse jetty util thread QueuedThreadPool runJob QueuedThreadPool java 671 jetty util v20160517 jar v20160517 at org eclipse jetty util thread QueuedThreadPool run QueuedThreadPool java 589 jetty util v20160517 jar v20160517 at java lang Thread run Thread java 745 92 code prepSo What is causing these NPE and how do fix them please pYour href https github com adamretter exist blob jetty tools jetty etc enabled jetty config rel nofollow noreferrer XML load order is bad see codeetc enabled jetty config code in your source pp href https stackoverflow com 37840982 775715 mentioned this in an earlier answer ppHere way you can see how this order works ppUse the codejetty distribution code ppre code Use new empty base cd path to mybase Lets add the modules into this base java jar path to jetty dist start jar add to start annotations deploy https gzip jmx requestlogINFO server initialised transitively in jetty base start iniINFO gzip initialised in jetty base start iniINFO jmx initialised in jetty base start iniINFO requestlog initialised in jetty base start iniINFO ssl initialised transitively in jetty base start iniINFO https initialised in jetty base start iniINFO deploy initialised in jetty base start iniINFO annotations initialised in jetty base start iniMKDIR jetty base logsDOWNLOAD https raw githubusercontent com eclipse jetty project master jetty server src test config etc keystore id master to jetty base etc keystoreMKDIR jetty base webappsINFO Base directory was modified Lets ask the jetty distribution what its XML load order isjava jar path to jetty dist start jar list config snip lots of output Jetty Active XMLs jetty home etc jetty xml jetty home etc jetty gzip xml jetty home etc jetty jmx xml jetty home etc jetty requestlog xml jetty home etc jetty ssl xml jetty home etc jetty ssl context xml jetty home etc jetty https xml jetty home etc jetty deploy xml jetty home etc jetty plus xml jetty home etc jetty annotations xml code prepNote this load order can and does change between releases of Jetty Don rely on this being the one true load order for all versions of Jetty going forward You ll either have to implement the same codestart jar code module logic or redo this codejetty distribution start jar list config code with each upgrade of your project pblockquote strongWARNING strong Don do this don mix codejetty distribution code and codeembedded jetty code you are just creating lots of extra work for yourself increasing your maintenance tasks etc Use codeembedded jetty code strong or strong codejetty distribution code directly blockquote 38057,251823,1072749,NULL,NULL,NULL,0,NULL,NULL 38058,241889,867442,NULL,NULL,NULL,0,NULL,NULL 38059,903455,632348,NULL,NULL,NULL,0,NULL,NULL 38060,889712,1200943,NULL,NULL,NULL,0,NULL,NULL 38061,474836,51647,Yearling Famous Question Nice Question Nice Answer Great Answer Great Answer Popular Question Popular Question Nice Question Nice Answer Yearling Notable Question Popular Question Nice Question Notable Question Yearling Stellar Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 38062,190220,911682,NULL,NULL,NULL,0,NULL,NULL 38063,362951,778440,NULL,NULL,NULL,0,NULL,NULL 38064,489543,16432,Explainer Nice Answer Good Answer Yearling Popular Question Good Answer Populist Necromancer Nice Answer Notable Question Popular Question Necromancer Nice Answer Civic Duty Yearling Revival Notable Question Necromancer Revival Favorite Question Notable Question Caucus Popular Question Necromancer Good Answer Yearling Popular Question Great Answer Famous Question Good Answer,NULL,What the best way to check if file exists in cross platform filesystems cross platform pIs there better way than simply trying to open the file ppre codeint exists const char fname FILE file if file fopen fname fclose file return return code pre if file fopen fname will give warning Use parenthesis around statement inside the if statement if file fopen fname,0,NULL,NULL 38065,6238114,1316103,NULL,NULL,NULL,0,NULL,NULL 38066,64930,153738,Custodian Custodian Yearling Custodian Yearling Famous Question Yearling,NULL,pMost of the major browsers and password managers correctly IMHO now ignore codeautocomplete off code ppWhy Many banks and other high security websites added codeautocomplete off code to their login pages for security purposes but this actually decreases security since it causes people to change the passwords on these high security sites to be easy to remember and thus crack since autocomplete was broken ppLong ago most password managers started ignoring codeautocomplete off code and now the browsers are starting to do the same for username password inputs only ppUnfortunately bugs in the autocomplete implementations insert username and or password info into inappropriate form fields causing form validation errors or worse yet accidentally inserting usernames into fields that were intentionally left blank by the user ppWhat web developer to do pulliIf you can keep all password fields on page by themselves that great start as it seems that the presence of password field is the main trigger for user pass autocomplete to kick in Otherwise read the tips below lili strongSafari strong notices that there are password fields and disables autocomplete in this case assuming it must be change password form not login form So just be sure to use password fields new and confirm new for any forms where you allow lili strongChrome strong 34 unfortunately will try to autofill fields with user pass whenever it sees password field This is quite bad bug that hopefully they will change the Safari behavior However adding this to the top of your form seems to disable the password autofill ppre code lt input type text style display none gt lt input type password style display none gt code pre li ulpI haven yet investigated IE or Firefox thoroughly but will be happy to update the answer if others have info in the comments Does not seem to work in Chrome 55 anymore unless the extra password field is not hidden which defeats the purpose,0,NULL,NULL 38067,882356,457126,NULL,NULL,NULL,0,NULL,NULL 38068,1157908,767349,NULL,NULL,NULL,0,NULL,NULL 38069,296136,263447,Necromancer,NULL,NULL,0,NULL,NULL 38070,27239,1274726,Good Answer Yearling Guru Self-Learner Yearling Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 38071,49625,476782,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38072,435930,1176739,NULL,NULL,NULL,0,NULL,NULL 38073,398934,1264201,Teacher Popular Question,NULL,NULL,0,NULL,NULL 38074,194832,931186,NULL,NULL,NULL,0,NULL,NULL 38075,477653,760638,NULL,NULL,NULL,0,NULL,NULL 38076,133967,204929,NULL,NULL,NULL,0,NULL,NULL 38077,946187,1032579,Informed Autobiographer,NULL,NULL,0,NULL,NULL 38078,169496,1116264,Popular Question,NULL,NULL,0,NULL,NULL 38079,276804,611068,Tumbleweed Curious Yearling Popular Question Caucus Constituent Famous Question Popular Question Good Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 38080,20595,274482,NULL,NULL,NULL,0,NULL,NULL 38081,35427,1217226,NULL,NULL,NULL,0,NULL,NULL 38082,153660,62695,Commentator Curious Nice Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 38083,233559,179204,Great Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38084,169777,293982,Popular Question,NULL,NULL,0,NULL,NULL 38085,1099943,1344994,Revival Necromancer,NULL,NULL,0,NULL,NULL 38086,1431299,1309027,Nice Answer angularjs Yearling Investor Altruist Nice Answer Enlightened Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 38087,200815,169280,Critic,NULL,NULL,0,NULL,NULL 38088,123829,228234,NULL,NULL,NULL,0,NULL,NULL 38089,1078781,876834,Supporter,NULL,NULL,0,NULL,NULL 38090,308869,704667,NULL,NULL,NULL,0,NULL,NULL 38091,200786,748778,NULL,NULL,NULL,0,NULL,NULL 38092,20630,763610,NULL,NULL,NULL,0,NULL,NULL 38093,1458,573221,Yearling Scholar Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 38094,826559,457626,Editor Supporter,NULL,NULL,0,NULL,NULL 38095,86862,188174,Yearling Editor Yearling Commentator Guru Necromancer Yearling Caucus Yearling Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 38096,7894,938304,Critic Commentator Yearling Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 38097,222232,669622,Enthusiast,NULL,NULL,0,NULL,NULL 38098,1335482,872080,NULL,NULL,NULL,0,NULL,NULL 38099,702397,286812,NULL,NULL,NULL,0,NULL,NULL 38100,608322,1445047,Informed,NULL,NULL,0,NULL,NULL 38101,7022,999472,Popular Question,NULL,NULL,0,NULL,NULL 38102,538503,648225,Student,NULL,NULL,0,NULL,NULL 38103,270616,1284186,Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38104,271563,537021,NULL,NULL,NULL,0,NULL,NULL 38105,510951,320410,NULL,NULL,NULL,0,NULL,NULL 38106,156508,711756,Revival,NULL,NULL,0,NULL,NULL 38107,141377,1112373,NULL,NULL,NULL,0,NULL,NULL 38108,24601,177259,Necromancer Nice Answer Enlightened Yearling Caucus Good Answer Yearling Documentation User Nice Answer Custodian Nice Answer Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 38109,179784,242849,Yearling Yearling Nice Question Revival Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38110,220884,922630,NULL,NULL,NULL,0,NULL,NULL 38111,249479,655805,NULL,NULL,NULL,0,NULL,NULL 38112,1418472,200940,NULL,NULL,NULL,0,NULL,NULL 38113,26865,1041874,Popular Question Editor Custodian,NULL,NULL,0,NULL,NULL 38114,75820,455271,Editor Supporter,NULL,NULL,0,NULL,NULL 38115,777074,1292951,Popular Question Yearling Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 38116,12713,520038,Student Editor Scholar,NULL,NULL,0,NULL,NULL 38117,445263,804512,Supporter,NULL,NULL,0,NULL,NULL 38118,2090250,804512,Supporter,NULL,NULL,0,NULL,NULL 38119,213947,262991,Yearling Great Answer Custodian Yearling Nice Answer Popular Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 38120,69450,560775,NULL,NULL,NULL,0,NULL,NULL 38121,155826,564806,Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 38122,1217354,975221,NULL,NULL,NULL,0,NULL,NULL 38123,171342,304434,Excavator Notable Question Self-Learner Custodian Famous Question Nice Question,NULL,NULL,0,NULL,NULL 38124,22688,1285106,NULL,NULL,NULL,0,NULL,NULL 38125,233139,679556,NULL,NULL,NULL,0,NULL,NULL 38126,83877,1383550,Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 38127,2993,305047,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38128,96293,984676,NULL,NULL,NULL,0,NULL,NULL 38129,230459,1303719,Critic Good Question,NULL,NULL,0,NULL,NULL 38130,258843,82682,Marshal Yearling Notable Question Nice Question Nice Answer Caucus Constituent Yearling Taxonomist Caucus Documentation User Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 38131,1385343,1134451,NULL,NULL,NULL,0,NULL,NULL 38132,1507375,1233615,Yearling Nice Question Critic Popular Question Inquisitive Promoter Benefactor Notable Question Popular Question Nice Question Popular Question Teacher Self-Learner,NULL,NULL,0,NULL,NULL 38133,5739435,23794,NULL,NULL,NULL,0,NULL,NULL 38134,266909,23794,NULL,NULL,NULL,0,NULL,NULL 38135,42766,13278,Notable Question Yearling Popular Question Popular Question Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 38136,37523,1412138,NULL,NULL,NULL,0,NULL,NULL 38137,312235,476686,Famous Question Popular Question Notable Question Investor Nice Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 38138,1211899,1048430,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38139,242995,1334301,Popular Question,NULL,NULL,0,NULL,NULL 38140,118765,947277,NULL,NULL,NULL,0,NULL,NULL 38141,537715,274537,NULL,NULL,NULL,0,NULL,NULL 38142,74867,243749,Yearling,NULL,NULL,0,NULL,NULL 38143,445002,655412,Famous Question,NULL,NULL,0,NULL,NULL 38144,70984,743938,NULL,NULL,NULL,0,NULL,NULL 38145,26483,833450,Editor Excavator Yearling Critic,NULL,NULL,0,NULL,NULL 38146,223530,1408880,Tag Editor Autobiographer Supporter,NULL,NULL,0,NULL,NULL 38147,250771,511972,Critic,NULL,NULL,0,NULL,NULL 38148,419729,511972,Critic,NULL,NULL,0,NULL,NULL 38149,24672,287743,Revival,NULL,NULL,0,NULL,NULL 38150,1767571,287743,Revival,NULL,NULL,0,NULL,NULL 38151,231280,1243113,NULL,NULL,NULL,0,NULL,NULL 38152,231251,828383,NULL,NULL,NULL,0,NULL,NULL 38153,231266,828383,NULL,NULL,NULL,0,NULL,NULL 38154,159419,1236358,NULL,NULL,NULL,0,NULL,NULL 38155,187744,834454,NULL,NULL,NULL,0,NULL,NULL 38156,1149535,268089,Yearling Tumbleweed Yearling Student Custodian Informed Yearling Custodian Reviewer Yearling Custodian Enthusiast Civic Duty Caucus Nice Answer Documentation User Steward Yearling Caucus Nice Answer Enlightened laravel Mortarboard Custodian Custodian Organizer Unsung Hero Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 38157,909758,489094,NULL,NULL,NULL,0,NULL,NULL 38158,163053,901296,Nice Question Good Question Famous Question Yearling Popular Question Famous Question,NULL,pre codepublic static lt extends Enum lt gt gt String getEnumString Class lt gt clazz String for en EnumSet allOf clazz if en name equalsIgnoreCase return en name return null code prepThe original has few problems polliIt accepts an instance of the enum instead of the class representing the enumwhich your question suggests you want to use liliThe type parameter isn used liliIt returns the input instead of the instance name Maybe returning the instance would be more useful case insensitive version of href http docs oracle com javase docs api java lang Enum html valueOf 28java lang Class 20java lang String 29 codeEnum valueOf String code liliIt calls static method on an instance so you can iterate codeEnumSet code does all the reflective stuff for you li ol using this signature it causes for me bad class file undeclared type variable errors on compile,0,NULL,NULL 38159,242929,1439424,NULL,NULL,NULL,0,NULL,NULL 38160,99274,1091646,NULL,NULL,NULL,0,NULL,NULL 38161,220080,218633,NULL,NULL,NULL,0,NULL,NULL 38162,4391,240411,Yearling Yearling,NULL,NULL,0,NULL,NULL 38163,449992,355627,NULL,NULL,NULL,0,NULL,NULL 38164,3998213,926396,NULL,NULL,NULL,0,NULL,NULL 38165,1515320,997124,NULL,NULL,NULL,0,NULL,NULL 38166,648201,941519,NULL,NULL,NULL,0,NULL,NULL 38167,5978623,941519,NULL,NULL,NULL,0,NULL,NULL 38168,276259,1231471,Student,NULL,NULL,0,NULL,NULL 38169,4621,248972,Good Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 38170,1517673,1154131,Informed,NULL,NULL,0,NULL,NULL 38171,149060,403401,Nice Question Nice Question Popular Question Famous Question Good Question Famous Question Yearling Necromancer Great Question Nice Question Nice Answer Good Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 38172,439854,588221,NULL,NULL,NULL,0,NULL,NULL 38173,13716,1037836,NULL,NULL,NULL,0,NULL,NULL 38174,123064,226081,Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Nice Question Custodian Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Good Answer Favorite Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38175,2406,205455,NULL,NULL,NULL,0,NULL,NULL 38176,200200,1088330,NULL,NULL,NULL,0,NULL,NULL 38177,350862,1563676,NULL,NULL,NULL,0,NULL,NULL 38178,84068,1239815,Yearling Popular Question,NULL,NULL,0,NULL,NULL 38179,146733,39791,Yearling Citizen Patrol Custodian Custodian Custodian Mortarboard Yearling Caucus Proofreader Yearling,NULL,NULL,0,NULL,NULL 38180,122068,312364,Notable Question,NULL,NULL,0,NULL,NULL 38181,91523,927962,NULL,NULL,NULL,0,NULL,NULL 38182,198577,512489,NULL,NULL,NULL,0,NULL,NULL 38183,476885,889962,Revival Popular Question,NULL,NULL,0,NULL,NULL 38184,246616,23998,Nice Answer Commentator,NULL,NULL,0,NULL,NULL 38185,816908,494165,NULL,NULL,NULL,0,NULL,NULL 38186,209815,130479,Great Question Excavator Notable Question Yearling Nice Question Famous Question Popular Question Famous Question Yearling Revival Necromancer Great Question Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 38187,114813,821820,Caucus,NULL,NULL,0,NULL,NULL 38188,125850,3452,Yearling Popular Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38189,1345554,1207327,NULL,NULL,NULL,0,NULL,NULL 38190,69775,1153778,Yearling,NULL,NULL,0,NULL,NULL 38191,411962,499312,Critic,NULL,NULL,0,NULL,NULL 38192,685936,343942,NULL,NULL,NULL,0,NULL,NULL 38193,264447,1558224,Teacher Supporter,NULL,NULL,0,NULL,NULL 38194,171514,24630,Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 38195,3768682,1197275,NULL,NULL,NULL,0,NULL,NULL 38196,830626,459700,NULL,NULL,NULL,0,NULL,NULL 38197,64549,789824,Nice Answer,NULL,NULL,0,NULL,NULL 38198,3064924,1365520,Popular Question Notable Question Popular Question Popular Question Critic Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 38199,401363,638306,NULL,NULL,NULL,0,NULL,NULL 38200,132536,148423,Famous Question Popular Question Nice Answer Enlightened Popular Question Popular Question Good Answer Popular Question Good Answer Famous Question Nice Answer Nice Question Nice Answer Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Guru Favorite Question python Generalist Famous Question Good Question Yearling Good Question Popular Question Nice Answer Enlightened Popular Question Notable Question Good Question Popular Question Guru Good Answer Good Question Popular Question Nice Answer Enlightened Good Answer Popular Question Good Answer Popular Question Popular Question Popular Question Nice Question Popular Question Guru Nice Question Nice Answer Populist Notable Question Good Answer Good Answer Nice Question Notable Question Good Answer Nice Answer Yearling Popular Question Nice Answer Notable Question Socratic Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Favorite Question Famous Question Nice Question Popular Question Good Answer Famous Question Popular Question Notable Question Popular Question Great Answer Notable Question Great Question php Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Guru Nice Answer Enlightened Yearling Guru Notable Question Popular Question Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 38201,1100069,341534,NULL,NULL,NULL,0,NULL,NULL 38202,429989,422309,NULL,NULL,NULL,0,NULL,NULL 38203,6395,150722,Notable Question Famous Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 38204,155624,63094,Nice Answer Nice Answer Yearling Popular Question Notable Question Great Answer Stellar Question Notable Question Nice Question Guru Yearling Great Answer Great Question Great Answer Good Answer Popular Question Famous Question Announcer Good Answer Notable Question Nice Answer Notable Question Good Question Nice Answer Pundit Stellar Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38205,480398,899175,NULL,NULL,NULL,0,NULL,NULL 38206,1334129,410877,NULL,NULL,NULL,0,NULL,NULL 38207,169290,354346,NULL,NULL,NULL,0,NULL,NULL 38208,11157,121045,NULL,NULL,NULL,0,NULL,NULL 38209,423049,230485,Popular Question Census,NULL,NULL,0,NULL,NULL 38210,261872,513402,NULL,NULL,NULL,0,NULL,NULL 38211,123680,155344,Announcer,NULL,NULL,0,NULL,NULL 38212,110388,238175,Nice Answer Enlightened Yearling Census Documentation User,NULL,NULL,0,NULL,NULL 38213,6233,39431,NULL,NULL,NULL,0,NULL,NULL 38214,856244,673827,NULL,NULL,NULL,0,NULL,NULL 38215,1333393,177415,Nice Question Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 38216,14718,1253312,Nice Answer Enlightened Yearling Good Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Nice Question Yearling Favorite Question Good Answer Nice Answer Popular Question Announcer Nice Answer Enlightened Notable Question Nice Answer Fanatic Caucus Nice Answer Nice Answer Enlightened Great Question Popular Question Guru Good Answer Documentation User Nice Answer Enlightened Census Popular Question Nice Answer Enlightened Yearling Caucus Nice Question Constituent Notable Question Guru Nice Answer,NULL,NULL,0,NULL,NULL 38217,22399,102476,Good Answer Census Announcer Informed Yearling Self-Learner,NULL,NULL,0,NULL,NULL 38218,94952,1190079,NULL,NULL,NULL,0,NULL,NULL 38219,387149,1042510,NULL,NULL,NULL,0,NULL,NULL 38220,164847,363482,NULL,NULL,NULL,0,NULL,NULL 38221,241458,168569,NULL,NULL,NULL,0,NULL,NULL 38222,912674,251012,Yearling Notable Question Popular Question Popular Question Popular Question Yearling Guru Notable Question Nice Question Nice Answer Enlightened Yearling Popular Question ios,NULL,NULL,0,NULL,NULL 38223,240016,634816,NULL,NULL,NULL,0,NULL,NULL 38224,168355,20347,NULL,NULL,NULL,0,NULL,NULL 38225,1178066,1357285,NULL,NULL,NULL,0,NULL,NULL 38226,5835,265875,NULL,NULL,NULL,0,NULL,NULL 38227,2383738,265875,NULL,NULL,NULL,0,NULL,NULL 38228,248499,766590,Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 38229,44708,727977,NULL,NULL,NULL,0,NULL,NULL 38230,10978,156,Famous Question Custodian Custodian Proofreader Good Answer Nice Question Nice Question Nice Question Notable Question Popular Question Nice Answer Nice Question Necromancer Yearling Popular Question Famous Question Popular Question Good Question Good Answer Yearling Famous Question Great Answer Notable Question Famous Question Popular Question Popular Question Nice Answer Yearling Necromancer Good Question,NULL,NULL,0,NULL,NULL 38231,187357,564576,Nice Question Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 38232,185706,919912,NULL,NULL,NULL,0,NULL,NULL 38233,909761,889130,Teacher,NULL,NULL,0,NULL,NULL 38234,424004,4273,c# Yearling Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 38235,314732,1020967,Teacher Supporter,NULL,NULL,0,NULL,NULL 38236,4999579,1452426,NULL,NULL,NULL,0,NULL,NULL 38237,246728,612236,Custodian Popular Question,NULL,NULL,0,NULL,NULL 38238,306585,778803,NULL,NULL,NULL,0,NULL,NULL 38239,938536,808825,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38240,46071,778322,NULL,NULL,NULL,0,NULL,NULL 38241,678787,917052,NULL,NULL,NULL,0,NULL,NULL 38242,759930,624762,Notable Question,NULL,NULL,0,NULL,NULL 38243,439180,1390243,Notable Question,NULL,NULL,0,NULL,NULL 38244,24290,143747,Yearling Notable Question Nice Answer Enlightened Notable Question Nice Question,NULL,NULL,0,NULL,NULL 38245,149364,234967,Yearling Famous Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 38246,61520,52321,NULL,NULL,NULL,0,NULL,NULL 38247,494312,242902,Yearling,NULL,NULL,0,NULL,NULL 38248,385481,439231,Great Answer Nice Question Custodian Commentator Custodian Critic Informed Notable Question Yearling Caucus Custodian Good Answer Yearling Tumbleweed Organizer Suffrage Explainer Tenacious javascript Caucus Custodian Constituent Fanatic Revival Popular Question Excavator Yearling,NULL,NULL,0,NULL,NULL 38249,18263,988477,NULL,NULL,NULL,0,NULL,NULL 38250,218977,583903,Popular Question,NULL,NULL,0,NULL,NULL 38251,397172,726247,NULL,NULL,NULL,0,NULL,NULL 38252,25216,602978,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38253,1420218,1068064,NULL,NULL,NULL,0,NULL,NULL 38254,818679,394775,Necromancer Yearling Critic Necromancer Yearling Nice Answer Editor Commentator Nice Answer Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 38255,1343350,51089,Popular Question Custodian Curious,NULL,NULL,0,NULL,NULL 38256,167873,1256018,NULL,NULL,NULL,0,NULL,NULL 38257,1505039,355943,NULL,NULL,NULL,0,NULL,NULL 38258,318596,217075,Popular Question Announcer Nice Question Yearling Popular Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38259,397410,361507,NULL,NULL,NULL,0,NULL,NULL 38260,177019,198918,Popular Question,NULL,NULL,0,NULL,NULL 38261,196157,6193,Notable Question Popular Question Yearling Nice Question Yearling Notable Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38262,666056,430259,NULL,NULL,NULL,0,NULL,NULL 38263,106702,56712,NULL,NULL,NULL,0,NULL,NULL 38264,72407,517769,NULL,NULL,NULL,0,NULL,NULL 38265,5828,110337,Popular Question Yearling Famous Question Good Question Yearling Notable Question Popular Question Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 38266,1139293,907878,NULL,NULL,NULL,0,NULL,NULL 38267,517021,716340,NULL,NULL,NULL,0,NULL,NULL 38268,673947,150290,Great Question Notable Question Yearling Popular Question Notable Question Good Question Yearling Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 38269,339968,164617,NULL,NULL,NULL,0,NULL,NULL 38270,1218155,1467924,NULL,NULL,NULL,0,NULL,NULL 38271,34671,139490,Tenacious Organizer Nice Answer Nice Answer Yearling Nice Answer Enlightened Revival Civic Duty Explainer Excavator Necromancer Revival Mortarboard Nice Answer Enlightened Good Answer Nice Answer Nice Answer Necromancer Yearling Revival Revival Nice Answer Unsung Hero Necromancer Census Necromancer Revival Necromancer Cleanup Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38272,4607122,653755,Caucus Critic Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 38273,1150970,653755,Caucus Critic Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 38274,40843,334632,Promoter Benefactor Organizer Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38275,119359,218499,Curious,NULL,NULL,0,NULL,NULL 38276,970875,845507,NULL,NULL,NULL,0,NULL,NULL 38277,561036,367365,Popular Question Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 38278,236507,786825,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38279,2787242,417868,NULL,NULL,NULL,0,NULL,NULL 38280,8870,468327,Nice Answer Revival Necromancer Popular Question Nice Answer Yearling Good Answer Nice Answer Announcer Good Answer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Announcer latex Nice Question Yearling regex Nice Answer Self-Learner Necromancer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 38281,704000,1183872,NULL,NULL,NULL,0,NULL,NULL 38282,115126,552320,Nice Answer Caucus Constituent Yearling Good Answer Nice Answer Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 38283,640715,977129,NULL,NULL,NULL,0,NULL,NULL 38284,462336,824807,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 38285,44842,257477,Yearling Critic Enthusiast,NULL,NULL,0,NULL,NULL 38286,1566830,736151,Explainer Yearling Nice Answer python Yearling Census Nice Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 38287,80016,32128,NULL,NULL,NULL,0,NULL,NULL 38288,589503,64287,Notable Question Notable Question Popular Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38289,56094,1348834,Popular Question Critic Yearling Notable Question Caucus Yearling Yearling Caucus Constituent Yearling Necromancer Caucus Constituent Yearling assertj,NULL,NULL,0,NULL,NULL 38290,154595,1080654,NULL,NULL,NULL,0,NULL,NULL 38291,702286,1326038,NULL,NULL,NULL,0,NULL,NULL 38292,64220,737268,Nice Answer Great Answer Yearling Informed Revival Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 38293,407669,1371359,NULL,NULL,NULL,0,NULL,NULL 38294,122104,418345,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 38295,394887,548074,Yearling,NULL,NULL,0,NULL,NULL 38296,172244,291324,Revival Self-Learner,NULL,NULL,0,NULL,NULL 38297,616107,667262,Popular Question,NULL,NULL,0,NULL,NULL 38298,78981,1061656,Nice Answer Yearling Guru Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 38299,493714,717467,NULL,NULL,NULL,0,NULL,NULL 38300,978561,124220,Notable Question Nice Question Necromancer Famous Question Yearling Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 38301,267433,514723,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38302,993019,886678,Famous Question Good Answer Popular Question Yearling Good Question Nice Answer Enlightened Caucus Nice Answer Enlightened Notable Question Caucus Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38303,241612,7764,Great Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 38304,527412,24380,Good Answer Notable Question Nice Answer Popular Question Nice Answer Good Answer Good Answer Nice Answer Populist Good Answer Yearling f# Guru Nice Question Nice Answer Good Answer Necromancer Popular Question Notable Question Yearling Nice Answer Good Answer Notable Question Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 38305,71281,547300,Popular Question Supporter,NULL,NULL,0,NULL,NULL 38306,14894,5570,NULL,NULL,NULL,0,NULL,NULL 38307,165059,31092,Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Favorite Question Notable Question Nice Answer Notable Question Yearling Notable Question Custodian Custodian Custodian Nice Question Popular Question Good Question Nice Question Yearling Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38308,1281808,1004035,NULL,NULL,NULL,0,NULL,NULL 38309,2250566,1004035,NULL,NULL,NULL,0,NULL,NULL 38310,564577,181028,NULL,NULL,NULL,0,NULL,NULL 38311,395773,83592,Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38312,158568,1031052,Necromancer Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38313,14763,52749,Yearling Good Answer Yearling Nice Question Famous Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 38314,79853,464152,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38315,1350005,695646,NULL,NULL,NULL,0,NULL,NULL 38316,578527,56506,Yearling,NULL,NULL,0,NULL,NULL 38317,1519910,56506,Yearling,NULL,NULL,0,NULL,NULL 38318,1713401,329095,Famous Question,NULL,NULL,0,NULL,NULL 38319,60749,329095,Famous Question,NULL,NULL,0,NULL,NULL 38320,11918,291739,NULL,NULL,NULL,0,NULL,NULL 38321,179903,106510,Editor Scholar,NULL,NULL,0,NULL,NULL 38322,349643,79853,Yearling Nice Answer Organizer Yearling Custodian Informed,NULL,NULL,0,NULL,NULL 38323,184496,158606,Citizen Patrol Notable Question Custodian,NULL,NULL,0,NULL,NULL 38324,232538,1536409,NULL,NULL,NULL,0,NULL,NULL 38325,200031,1225080,NULL,NULL,NULL,0,NULL,NULL 38326,137773,316803,Tumbleweed Promoter Benefactor Notable Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 38327,108246,528726,Famous Question Good Answer Nice Question gem Popular Question Famous Question Popular Question Guru Nice Question Nice Question Good Answer Nice Answer Enlightened Guru Good Question Popular Question Popular Question Good Answer Nice Question Proofreader Guru Good Answer Good Question Necromancer Good Answer Good Question Yearling Famous Question Good Answer Good Answer Favorite Question Popular Question Great Answer Great Answer Famous Question Nice Answer Nice Answer Nice Answer Notable Question Good Answer Documentation User Nice Answer Enlightened Guru Yearling Notable Question Good Question Nice Answer Nice Answer Good Question Great Question Nice Answer Great Question Good Answer Nice Answer Good Question,NULL,NULL,0,NULL,NULL 38328,182126,21279,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 38329,700505,1039538,Curious Popular Question Good Answer Nice Answer Yearling Necromancer Necromancer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 38330,1299506,419768,Revival Yearling Critic Popular Question Yearling Nice Question Notable Question Commentator,NULL,NULL,0,NULL,NULL 38331,199388,737045,NULL,NULL,NULL,0,NULL,NULL 38332,93998,80281,NULL,NULL,NULL,0,NULL,NULL 38333,417172,1038672,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38334,275310,331771,Revival,NULL,NULL,0,NULL,NULL 38335,88190,1171390,Excavator Tumbleweed Scholar Yearling Documentation User,NULL,NULL,0,NULL,NULL 38336,452328,77244,Civic Duty Populist Nice Answer Yearling Nice Question Nice Question Famous Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Notable Question Custodian Popular Question Notable Question Yearling Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 38337,3246261,1299349,NULL,NULL,NULL,0,NULL,NULL 38338,30086,383958,Curious Custodian Informed Autobiographer Explainer Yearling Announcer,NULL,NULL,0,NULL,NULL 38339,134413,902784,NULL,NULL,NULL,0,NULL,NULL 38340,201220,754151,NULL,NULL,NULL,0,NULL,NULL 38341,522090,245600,Editor Popular Question,NULL,NULL,0,NULL,NULL 38342,1881981,856728,NULL,NULL,NULL,0,NULL,NULL 38343,580708,275154,NULL,NULL,NULL,0,NULL,NULL 38344,51939,95580,Notable Question Famous Question Nice Answer Yearling Nice Question Yearling Good Answer Nice Question Yearling Famous Question Announcer,NULL,NULL,0,NULL,NULL 38345,277022,1334727,NULL,NULL,NULL,0,NULL,NULL 38346,336664,1096569,Yearling Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 38347,34741,105565,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 38348,283761,192628,Yearling,NULL,NULL,0,NULL,NULL 38349,61098,94204,Yearling Good Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 38350,104317,540946,NULL,NULL,NULL,0,NULL,NULL 38351,1379963,190960,Popular Question,NULL,NULL,0,NULL,NULL 38352,365734,32633,NULL,NULL,NULL,0,NULL,NULL 38353,99634,1076346,Teacher Editor Nice Answer Popular Question Critic Caucus Yearling Autobiographer Census Yearling,NULL,NULL,0,NULL,NULL 38354,65929,1184115,Editor Tumbleweed Student Supporter Commentator,NULL,NULL,0,NULL,NULL 38355,21953,87002,Yearling Yearling Good Answer Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 38356,1121036,288252,Famous Question Notable Question Nice Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 38357,23457,125825,Good Answer Good Answer Good Answer Great Answer Popular Question Revival Yearling Pundit Yearling Self-Learner Nice Answer Mortarboard Revival Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 38358,188316,565988,Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38359,3646328,565988,Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38360,34324,858800,NULL,NULL,NULL,0,NULL,NULL 38361,52796,3433,Nice Question Yearling,NULL,NULL,0,NULL,NULL 38362,1354877,1343176,NULL,NULL,NULL,0,NULL,NULL 38363,1507902,1352849,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 38364,208304,264339,Good Answer Populist,NULL,NULL,0,NULL,NULL 38365,706684,61648,NULL,NULL,NULL,0,NULL,NULL 38366,1608814,73003,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38367,29854,233326,Teacher Curious Revival Custodian Critic Notable Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 38368,495546,1006706,Revival Supporter,NULL,NULL,0,NULL,NULL 38369,286333,190592,Popular Question Notable Question Nice Question Famous Question Good Question Yearling Popular Question Notable Question Nice Answer Enlightened Notable Question Custodian Good Answer Documentation User Yearling Census Excavator Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 38370,2858757,1086440,NULL,NULL,NULL,0,NULL,NULL 38371,1128094,1086440,NULL,NULL,NULL,0,NULL,NULL 38372,134807,52209,Editor Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 38373,14162,510361,Notable Question Scholar,NULL,NULL,0,NULL,NULL 38374,887860,1055853,NULL,NULL,NULL,0,NULL,NULL 38375,655764,371344,Popular Question,NULL,NULL,0,NULL,NULL 38376,95664,164171,Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Answer Notable Question Famous Question Nice Question Great Question Notable Question Notable Question Famous Question Famous Question Nice Answer Yearling Famous Question Good Question Popular Question Famous Question Populist Famous Question Caucus Custodian Notable Question Good Question Good Question Good Question Notable Question Good Question Nice Question Good Question Famous Question Nice Question Popular Question Famous Question Popular Question Notable Question Popular Question Good Question Popular Question Nice Question Caucus Yearling Notable Question Favorite Question Favorite Question Documentation User Favorite Question Notable Question Tumbleweed Good Answer Popular Question Nice Question Custodian Notable Question Famous Question Good Question Popular Question Good Question Nice Question Notable Question Famous Question Favorite Question Notable Question Notable Question Yearling Popular Question Notable Question Great Question Popular Question Popular Question Nice Question,NULL,,0,, 38377,476865,621071,NULL,NULL,NULL,0,NULL,NULL 38378,301693,1419451,NULL,NULL,NULL,0,NULL,NULL 38379,358013,1049562,NULL,NULL,NULL,0,NULL,NULL 38380,120657,807943,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38381,444745,374445,NULL,NULL,NULL,0,NULL,NULL 38382,312311,280996,NULL,NULL,NULL,0,NULL,NULL 38383,1416970,754854,Nice Question Yearling Yearling Good Answer Yearling Popular Question Tenacious Custodian Custodian Census Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 38384,245983,622204,NULL,NULL,NULL,0,NULL,NULL 38385,1056677,1249347,Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38386,258134,356235,NULL,NULL,NULL,0,NULL,NULL 38387,339943,68079,Editor Informed,NULL,NULL,0,NULL,NULL 38388,158820,792,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 38389,43115,634630,NULL,NULL,NULL,0,NULL,NULL 38390,106366,1087691,NULL,NULL,NULL,0,NULL,NULL 38391,267846,533064,NULL,NULL,NULL,0,NULL,NULL 38392,36076,870718,NULL,NULL,NULL,0,NULL,NULL 38393,296210,455976,NULL,NULL,NULL,0,NULL,NULL 38394,127487,584613,NULL,NULL,NULL,0,NULL,NULL 38395,127486,685886,NULL,NULL,NULL,0,NULL,NULL 38396,151506,1039413,NULL,NULL,NULL,0,NULL,NULL 38397,259746,438001,Popular Question Nice Question Yearling Popular Question Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38398,9602,1054347,NULL,NULL,NULL,0,NULL,NULL 38399,5959,117305,Yearling Self-Learner Notable Question Popular Question Yearling Notable Question Popular Question Famous Question Notable Question Necromancer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38400,5106,322329,Critic Yearling Caucus Popular Question Popular Question Yearling Necromancer Nice Answer Yearling Custodian Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38401,50010,1475115,Supporter,NULL,NULL,0,NULL,NULL 38402,415447,382749,Necromancer Popular Question Guru Good Answer Yearling Necromancer Civic Duty Necromancer Nice Answer Enlightened Populist Nice Answer Yearling Documentation User objective-c Necromancer Guru Good Answer Census Nice Answer Nice Answer Nice Answer Good Answer Yearling Revival Guru,NULL,pThe above answers didn work quite right for me My solution is to fool the UISearchDisplayController into thinking there wasn UINavigationController ppIn your view controller add this method ppre code UINavigationController navigationController return nil code prepThis had no untoward side effects for me despite seeming like really bad idea If you need to get at the navigation controller use code super navigationController code use super navigationController instead of self navigationController,0,NULL,NULL 38403,101106,216510,Yearling Guru,NULL,NULL,0,NULL,NULL 38404,389698,1444596,NULL,NULL,NULL,0,NULL,NULL 38405,48909,1066030,NULL,NULL,NULL,0,NULL,NULL 38406,24033,1385855,NULL,NULL,NULL,0,NULL,NULL 38407,18624,91720,Critic,NULL,NULL,0,NULL,NULL 38408,633236,1375548,Scholar Tumbleweed Teacher Curious,NULL,NULL,0,NULL,NULL 38409,512140,208341,Popular Question,NULL,NULL,0,NULL,NULL 38410,21634,502400,NULL,NULL,NULL,0,NULL,NULL 38411,99065,1377110,NULL,NULL,NULL,0,NULL,NULL 38412,361021,1328161,Necromancer,NULL,NULL,0,NULL,NULL 38413,382767,135415,Popular Question,NULL,NULL,0,NULL,NULL 38414,1570520,904171,NULL,NULL,NULL,0,NULL,NULL 38415,141443,146831,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38416,268250,659732,Yearling Custodian Yearling xquery exist-db Strunk & White Documentation User Nice Answer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 38417,159074,214840,Revival,NULL,NULL,0,NULL,NULL 38418,253313,966126,Notable Question,NULL,NULL,0,NULL,NULL 38419,232948,684488,NULL,NULL,NULL,0,NULL,NULL 38420,269681,1060334,NULL,NULL,NULL,0,NULL,NULL 38421,193850,773732,Popular Question Popular Question Yearling Necromancer Popular Question Caucus Commentator Critic Nice Answer Yearling Self-Learner Good Answer Custodian Custodian Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38422,64058,630746,NULL,NULL,NULL,0,NULL,NULL 38423,63689,100519,NULL,NULL,NULL,0,NULL,NULL 38424,798114,941735,NULL,NULL,NULL,0,NULL,NULL 38425,312597,1480109,NULL,NULL,NULL,0,NULL,NULL 38426,1357130,1154095,Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38427,298705,426529,NULL,NULL,NULL,0,NULL,NULL 38428,110473,743624,Excavator Necromancer Popular Question,NULL,NULL,0,NULL,NULL 38429,155706,54005,Yearling Guru Popular Question Great Answer Famous Question Yearling Census Yearling Great Answer Good Question,NULL,NULL,0,NULL,NULL 38430,1912824,752488,Student,NULL,NULL,0,NULL,NULL 38431,10636,512596,Editor Commentator Curious Yearling,NULL,how to write an intersection function for type level lists haskell pI working on type level lists of operating systems and wrote two type level functions one to combine two lists and the other to take their intersection having trouble getting the intersection function to work right pp ghc 10 ppHere the combine function working as expected ppre code Main gt combineSupportedOS debian freeBSD OSList OSDebian OSFreeBSD OSList OSDebian OSFreeBSD code prepHere the intersection function not quite working ppre code Main gt intersectSupportedOS debian debian OSList OSDebian Couldn match expected type ‘IntersectOSList OSDebian OSDebian with actual type OSDebian code prepHow can convince the type checker that this is well typed ppFull code ppre code LANGUAGE TypeOperators PolyKinds DataKinds TypeFamilies UndecidableInstances import Data Typeableimport Data Stringimport Data Type Boolimport Data Type Equalitydata SupportedOS OSDebian OSFreeBSD deriving Show Eq data OSList os SupportedOS OSList SupportedOS deriving Show Eq debian OSList OSDebian debian typeOS OSDebianfreeBSD OSList OSFreeBSD freeBSD typeOS OSFreeBSDtypeOS SupportedOS gt OSList ostypeOS OSList combineSupportedOS ConcatOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rcombineSupportedOS OSList l1 OSList l2 OSList l1 l2 type family ConcatOSList list1 list2 type instance ConcatOSList list2 list2type instance ConcatOSList rest list2 ConcatOSList rest list2intersectSupportedOS IntersectOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rintersectSupportedOS OSList l1 OSList l2 OSList filter elem l2 l1 type family IntersectOSList list1 list2 type instance IntersectOSList list2 list2type instance IntersectOSList rest list2 If ElemOSList list2 IntersectOSList rest list2 IntersectOSList rest list2 type family ElemOSList list Booltype instance ElemOSList Falsetype instance ElemOSList bs If True ElemOSList bs type family EqOS SupportedOS SupportedOS where EqOS True EqOS Falsetype instance EqOS code pre stared at this too long seeing nothing but just noticed that ElemOSList type family is wrong The first parameter in particular how to write an intersection function for type level lists haskell pI working on type level lists of operating systems and wrote two type level functions one to combine two lists and the other to take their intersection having trouble getting the intersection function to work right pp ghc 10 ppHere the combine function working as expected ppre code Main gt combineSupportedOS debian freeBSD OSList OSDebian OSFreeBSD OSList OSDebian OSFreeBSD code prepHere the intersection function not quite working ppre code Main gt intersectSupportedOS debian debian OSList OSDebian Couldn match expected type ‘IntersectOSList OSDebian OSDebian with actual type OSDebian code prepHow can convince the type checker that this is well typed ppFull code ppre code LANGUAGE TypeOperators PolyKinds DataKinds TypeFamilies UndecidableInstances import Data Typeableimport Data Stringimport Data Type Boolimport Data Type Equalitydata SupportedOS OSDebian OSFreeBSD deriving Show Eq data OSList os SupportedOS OSList SupportedOS deriving Show Eq debian OSList OSDebian debian typeOS OSDebianfreeBSD OSList OSFreeBSD freeBSD typeOS OSFreeBSDtypeOS SupportedOS gt OSList ostypeOS OSList combineSupportedOS ConcatOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rcombineSupportedOS OSList l1 OSList l2 OSList l1 l2 type family ConcatOSList list1 list2 type instance ConcatOSList list2 list2type instance ConcatOSList rest list2 ConcatOSList rest list2intersectSupportedOS IntersectOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rintersectSupportedOS OSList l1 OSList l2 OSList filter elem l2 l1 type family IntersectOSList list1 list2 type instance IntersectOSList list2 list2type instance IntersectOSList rest list2 If ElemOSList list2 IntersectOSList rest list2 IntersectOSList rest list2 type family ElemOSList list Booltype instance ElemOSList Falsetype instance ElemOSList bs If True ElemOSList bs type family EqOS SupportedOS SupportedOS where EqOS True EqOS Falsetype instance EqOS code pre and yes base case is wrong how to write an intersection function for type level lists haskell pI working on type level lists of operating systems and wrote two type level functions one to combine two lists and the other to take their intersection having trouble getting the intersection function to work right pp ghc 10 ppHere the combine function working as expected ppre code Main gt combineSupportedOS debian freeBSD OSList OSDebian OSFreeBSD OSList OSDebian OSFreeBSD code prepHere the intersection function not quite working ppre code Main gt intersectSupportedOS debian debian OSList OSDebian Couldn match expected type ‘IntersectOSList OSDebian OSDebian with actual type OSDebian code prepHow can convince the type checker that this is well typed ppFull code ppre code LANGUAGE TypeOperators PolyKinds DataKinds TypeFamilies UndecidableInstances import Data Typeableimport Data Stringimport Data Type Boolimport Data Type Equalitydata SupportedOS OSDebian OSFreeBSD deriving Show Eq data OSList os SupportedOS OSList SupportedOS deriving Show Eq debian OSList OSDebian debian typeOS OSDebianfreeBSD OSList OSFreeBSD freeBSD typeOS OSFreeBSDtypeOS SupportedOS gt OSList ostypeOS OSList combineSupportedOS ConcatOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rcombineSupportedOS OSList l1 OSList l2 OSList l1 l2 type family ConcatOSList list1 list2 type instance ConcatOSList list2 list2type instance ConcatOSList rest list2 ConcatOSList rest list2intersectSupportedOS IntersectOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rintersectSupportedOS OSList l1 OSList l2 OSList filter elem l2 l1 type family IntersectOSList list1 list2 type instance IntersectOSList list2 list2type instance IntersectOSList rest list2 If ElemOSList list2 IntersectOSList rest list2 IntersectOSList rest list2 type family ElemOSList list Booltype instance ElemOSList Falsetype instance ElemOSList bs If True ElemOSList bs type family EqOS SupportedOS SupportedOS where EqOS True EqOS Falsetype instance EqOS code pre So the thing wasn getting is this sort of type error when working with type families means that the type checker has found problem not that the type checker is insuffiently intelligent,1,how to write an intersection function for type level lists haskell pI working on type level lists of operating systems and wrote two type level functions one to combine two lists and the other to take their intersection having trouble getting the intersection function to work right pp ghc 10 ppHere the combine function working as expected ppre code Main gt combineSupportedOS debian freeBSD OSList OSDebian OSFreeBSD OSList OSDebian OSFreeBSD code prepHere the intersection function not quite working ppre code Main gt intersectSupportedOS debian debian OSList OSDebian Couldn match expected type ‘IntersectOSList OSDebian OSDebian with actual type OSDebian code prepHow can convince the type checker that this is well typed ppFull code ppre code LANGUAGE TypeOperators PolyKinds DataKinds TypeFamilies UndecidableInstances import Data Typeableimport Data Stringimport Data Type Boolimport Data Type Equalitydata SupportedOS OSDebian OSFreeBSD deriving Show Eq data OSList os SupportedOS OSList SupportedOS deriving Show Eq debian OSList OSDebian debian typeOS OSDebianfreeBSD OSList OSFreeBSD freeBSD typeOS OSFreeBSDtypeOS SupportedOS gt OSList ostypeOS OSList combineSupportedOS ConcatOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rcombineSupportedOS OSList l1 OSList l2 OSList l1 l2 type family ConcatOSList list1 list2 type instance ConcatOSList list2 list2type instance ConcatOSList rest list2 ConcatOSList rest list2intersectSupportedOS IntersectOSList l1 l2 gt OSList l1 gt OSList l2 gt OSList rintersectSupportedOS OSList l1 OSList l2 OSList filter elem l2 l1 type family IntersectOSList list1 list2 type instance IntersectOSList list2 list2type instance IntersectOSList rest list2 If ElemOSList list2 IntersectOSList rest list2 IntersectOSList rest list2 type family ElemOSList list Booltype instance ElemOSList Falsetype instance ElemOSList bs If True ElemOSList bs type family EqOS SupportedOS SupportedOS where EqOS True EqOS Falsetype instance EqOS code pre,NULL 38432,112615,1183170,NULL,NULL,NULL,0,NULL,NULL 38433,310024,383326,NULL,NULL,NULL,0,NULL,NULL 38434,111532,149391,Notable Question Great Answer Good Answer Populist Popular Question Great Answer Good Answer Popular Question Yearling Notable Question Great Answer Nice Answer Good Answer Notable Question Great Answer Good Answer Great Answer Good Answer Notable Question Nice Question Nice Answer Announcer Yearling Nice Answer Enlightened Popular Question Great Answer Nice Question Nice Answer Enlightened Famous Question Nice Answer Necromancer Populist Guru Yearling Nice Answer Populist,NULL,NULL,0,NULL,NULL 38435,226922,200367,Yearling Notable Question Nice Answer Yearling Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 38436,22512,1284583,Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 38437,273613,337783,NULL,NULL,NULL,0,NULL,NULL 38438,66435,886537,Teacher Student,NULL,NULL,0,NULL,NULL 38439,339790,174474,Necromancer,NULL,NULL,0,NULL,NULL 38440,68783,755068,NULL,NULL,NULL,0,NULL,NULL 38441,3018,33918,Great Answer Good Answer Yearling Nice Answer Populist Nice Answer Enlightened Good Answer Yearling Good Answer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38442,351413,989692,Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 38443,73710,1276361,Teacher Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38444,1076528,461773,NULL,NULL,NULL,0,NULL,NULL 38445,831433,1308883,Autobiographer Tag Editor Supporter Organizer Commentator Yearling Critic Yearling Enthusiast Caucus Yearling Constituent Yearling Excavator Quorum Tenacious Yearling Yearling Explainer Revival,NULL,NULL,0,NULL,NULL 38446,101099,281768,NULL,NULL,NULL,0,NULL,NULL 38447,4107193,281768,NULL,NULL,NULL,0,NULL,NULL 38448,1543,635134,Good Question Nice Question Yearling Promoter Benefactor Notable Question Popular Question Notable Question Good Answer Yearling Custodian Custodian Popular Question Popular Question Announcer Notable Question Yearling Popular Question Nice Question Guru,NULL,pThe href http expressjs com api html app listen rel noreferrer Express API doc spells this out pretty clearly ppAdditionally href https stackoverflow com 35053638 635134 this answer gives the steps to create self signed certificate ppI have added some comments and snippet from the href http nodejs org api https html https https createserver options requestlistener rel noreferrer Node js HTTPS documentation ppre codevar express require express var https require https var http require http var fs require fs This line is from the Node js HTTPS documentation var options key fs readFileSync test fixtures keys agent2 key pem cert fs readFileSync test fixtures keys agent2 cert cert Create service the app object is just callback var app express Create an HTTP service http createServer app listen 80 Create an HTTPS service identical to the HTTP service https createServer options app listen 443 code pre The linked guide for creating the cert and key is wrong This answer https stackoverflow com 35053638 635134 has the right steps to do it pThe href http expressjs com api html app listen rel noreferrer Express API doc spells this out pretty clearly ppAdditionally href https stackoverflow com 35053638 635134 this answer gives the steps to create self signed certificate ppI have added some comments and snippet from the href http nodejs org api https html https https createserver options requestlistener rel noreferrer Node js HTTPS documentation ppre codevar express require express var https require https var http require http var fs require fs This line is from the Node js HTTPS documentation var options key fs readFileSync test fixtures keys agent2 key pem cert fs readFileSync test fixtures keys agent2 cert cert Create service the app object is just callback var app express Create an HTTP service http createServer app listen 80 Create an HTTPS service identical to the HTTP service https createServer options app listen 443 code pre Ok ll make the edit In the past ve had edits that changed the content of the answer rejected Only fixes like grammar or formatting were accepted,0,NULL,NULL 38449,32222,738293,NULL,NULL,NULL,0,NULL,NULL 38450,125744,1108319,NULL,NULL,NULL,0,NULL,NULL 38451,71633,513839,Supporter Teacher Necromancer,NULL,NULL,0,NULL,NULL 38452,8669025,590866,NULL,NULL,NULL,0,NULL,NULL 38453,7868560,590866,NULL,NULL,NULL,0,NULL,NULL 38454,47888,590866,NULL,NULL,NULL,0,NULL,NULL 38455,62049,66883,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38456,837172,667264,Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 38457,186386,591482,Yearling Great Question Famous Question Nice Answer ios Nice Answer Notable Question Necromancer Necromancer Nice Answer Tumbleweed Nice Answer Nice Answer Yearling Favorite Question Popular Question Caucus Popular Question Yearling Notable Question Great Question Famous Question Revival Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38458,410749,462616,NULL,NULL,NULL,0,NULL,NULL 38459,436485,286441,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38460,169361,93444,Nice Answer Caucus Necromancer Popular Question Nice Answer Yearling Good Answer Yearling Caucus Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38461,380155,110763,Yearling Yearling Nice Answer Census Yearling,NULL,NULL,0,NULL,NULL 38462,131382,1268577,NULL,NULL,NULL,0,NULL,NULL 38463,1511728,631120,NULL,NULL,NULL,0,NULL,NULL 38464,26554,574015,Peer Pressure Teacher Scholar,NULL,NULL,0,NULL,NULL 38465,131729,572906,NULL,NULL,NULL,0,NULL,NULL 38466,323917,1068081,Supporter,NULL,NULL,0,NULL,NULL 38467,587380,6415,Notable Question Yearling Custodian Popular Question Notable Question Inquisitive Yearling Yearling,NULL,NULL,0,NULL,NULL 38468,48378,883965,NULL,NULL,NULL,0,NULL,NULL 38469,517038,615435,NULL,NULL,NULL,0,NULL,NULL 38470,326656,501952,Popular Question,NULL,NULL,0,NULL,NULL 38471,60520,235909,NULL,NULL,NULL,0,NULL,NULL 38472,187886,125764,NULL,NULL,NULL,0,NULL,NULL 38473,117910,330374,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 38474,346251,769827,NULL,NULL,NULL,0,NULL,NULL 38475,8717930,823725,Popular Question Caucus Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 38476,108049,823725,Popular Question Caucus Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 38477,1597835,823725,Popular Question Caucus Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 38478,2865,63762,Caucus Good Answer,NULL,NULL,0,NULL,NULL 38479,7065218,99242,Yearling Good Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 38480,225197,509838,NULL,NULL,NULL,0,NULL,NULL 38481,290874,9707,Good Question Yearling Favorite Question Popular Question Yearling Caucus Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38482,104527,923208,NULL,NULL,NULL,0,NULL,NULL 38483,506964,1496891,Popular Question,NULL,NULL,0,NULL,NULL 38484,628160,1155733,Popular Question,NULL,NULL,0,NULL,NULL 38485,674531,1490484,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38486,104607,77139,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 38487,72494,241213,Notable Question,NULL,NULL,0,NULL,NULL 38488,11278,859462,Yearling,NULL,NULL,0,NULL,NULL 38489,371220,241957,NULL,NULL,NULL,0,NULL,NULL 38490,14840,972719,NULL,NULL,NULL,0,NULL,NULL 38491,623479,367033,Informed,NULL,NULL,0,NULL,NULL 38492,15459,298847,Famous Question Yearling Popular Question Inquisitive Nice Answer Nice Answer Good Question Yearling Popular Question Good Answer Popular Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 38493,318689,1235216,NULL,NULL,NULL,0,NULL,NULL 38494,117617,1209004,Announcer Commentator Necromancer Curious Yearling Popular Question,NULL,NULL,1,NULL,Python Logging to Tkinter Text Widget python logging tkinter pDoes any one out there have an example of how to setup logging in Python to Tkinter Text Widget have seen this used in several apps but cannot figure out how to direct the logging to anything other than log file pIn addition to the above answers even though there are lot of proposed solutions for this here and also in href https stackoverflow com questions 24626622 tkinter logging text in text widget this other thread was struggling quite bit to make this work myself Eventually ran into href https gist github com moshekaplan c425f861de7bbf28ef06 rel noreferrer this text handler class by Moshe Kaplan which uses href https docs python org library scrolledtext html rel noreferrer ScrolledText widget which is probably easier than the ScrollBar method ppIt took me some time to figure out how to actually use Moshe class in threaded application In the end created minimal demo script that shows how to make it all work As it might be helpful to others sharing it below In my particular case wanted to log to emboth em the GUI and to text file if you don need that just remove the emfilename em attribute in emlogging basicConfig em ppre codeimport timeimport threadingimport loggingtry import tkinter as tk Python import tkinter scrolledtext as ScrolledTextexcept ImportError import Tkinter as tk Python import ScrolledTextclass TextHandler logging Handler This class allows you to log to Tkinter Text or ScrolledText widget Adapted from Moshe Kaplan https gist github com moshekaplan c425f861de7bbf28ef06 def init self text run the regular Handler init logging Handler init self Store reference to the Text it will log to self text text def emit self record msg self format record def append self text configure state normal self text insert tk END msg self text configure state disabled Autoscroll to the bottom self text yview tk END This is necessary because we can modify the Text from other threads self text after append class myGUI tk Frame This class defines the graphical user interface def init self parent args kwargs tk Frame init self parent args kwargs self root parent self build gui def build gui self Build GUI self root title TEST self root option add tearOff FALSE self grid column row sticky ew self grid columnconfigure weight uniform self grid columnconfigure weight uniform self grid columnconfigure weight uniform self grid columnconfigure weight uniform Add text widget to display logging info st ScrolledText ScrolledText self state disabled st configure font TkFixedFont st grid column row sticky columnspan Create textLogger text handler TextHandler st Logging configuration logging basicConfig filename test log level logging INFO format asctime levelname message Add the handler to logger logger logging getLogger logger addHandler text handler def worker Skeleton worker function runs in separate thread see below while True Report time date at second intervals time sleep timeStr time asctime msg Current time timeStr logging info msg def main root tk Tk myGUI root t1 threading Thread target worker args t1 start root mainloop t1 join main code prepGithub Gist link to above code here pp href https gist github com bitsgalore 901d0abe4b874b483df3ddc4168754aa rel noreferrer https gist github com bitsgalore 901d0abe4b874b483df3ddc4168754aa 38495,488188,82594,Yearling Nice Answer Enlightened Notable Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 38496,709461,503704,NULL,NULL,NULL,0,NULL,NULL 38497,1365026,529513,NULL,NULL,NULL,0,NULL,NULL 38498,2618750,134935,Popular Question Yearling Curious Good Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 38499,3753380,14337,Proofreader Informed Custodian Reviewer Yearling Revival Caucus Nice Answer Necromancer Taxonomist Good Question Yearling Good Answer Good Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38500,1516964,504720,NULL,NULL,NULL,0,NULL,NULL 38501,240354,980197,Editor Student Scholar Teacher,NULL,NULL,0,NULL,NULL 38502,413980,413812,Enthusiast Teacher Supporter,NULL,NULL,0,NULL,NULL 38503,13576,350692,Informed Nice Answer Enlightened Yearling Revival Autobiographer Yearling Necromancer Necromancer Yearling,NULL,pAn alternative solution can be found in comment to href http bugs sun com bugdatabase view bug do bug id 4851444 rel noreferrer this request for enhancement It uses the codegetClassContext code method of custom codeSecurityManager code and seems to be faster than the stack trace method ppThe following program tests the speed of the different suggested methods the most interesting bit is in the inner class codeSecurityManagerMethod code ppre code Test the speed of various methods for getting the caller class name public class TestGetCallerClassName Abstract class for testing different methods of getting the caller class name private static abstract class GetCallerClassNameMethod public abstract String getCallerClassName int callStackDepth public abstract String getMethodName Uses the internal Reflection class private static class ReflectionMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return sun reflect Reflection getCallerClass callStackDepth getName public String getMethodName return Reflection Get stack trace from the current thread private static class ThreadStackTraceMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return Thread currentThread getStackTrace callStackDepth getClassName public String getMethodName return Current Thread StackTrace Get stack trace from new Throwable private static class ThrowableStackTraceMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return new Throwable getStackTrace callStackDepth getClassName public String getMethodName return Throwable StackTrace Use the SecurityManager getClassContext private static class SecurityManagerMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return mySecurityManager getCallerClassName callStackDepth public String getMethodName return SecurityManager custom security manager that exposes the getClassContext information static class MySecurityManager extends SecurityManager public String getCallerClassName int callStackDepth return getClassContext callStackDepth getName private final static MySecurityManager mySecurityManager new MySecurityManager Test all four methods public static void main String args testMethod new ReflectionMethod testMethod new ThreadStackTraceMethod testMethod new ThrowableStackTraceMethod testMethod new SecurityManagerMethod private static void testMethod GetCallerClassNameMethod method long startTime System nanoTime String className null for int lt 1000000 className method getCallerClassName printElapsedTime method getMethodName startTime private static void printElapsedTime String title long startTime System out println title double System nanoTime startTime 1000000 ms code prepAn example of the output from my GHz Intel Core Duo MacBook running Java 17 ppre codeReflection 10 195 ms Current Thread StackTrace 5886 964 ms Throwable StackTrace 4700 073 ms SecurityManager 1046 804 ms code prepThe internal Reflection method is emmuch em faster than the others Getting stack trace from newly created codeThrowable code is faster than getting it from the current codeThread code And among the non internal ways of finding the caller class the custom codeSecurityManager code seems to be the fastest ph2Update h2pAs stronglyomi strong points out in href https stackoverflow com questions 421280 how do find the caller of method using stacktrace or reflection 2924426 comment26408146 2924426 this comment the codesun reflect Reflection getCallerClass code method has been disabled by default in Java update 40 and removed completely in Java Read more about this in href https bugs openjdk java net browse JDK 8014925 rel noreferrer this issue in the Java bug database ph2Update h2pAs strongzammbi strong has found Oracle was href https bugs openjdk java net browse JDK 8021946 rel noreferrer forced to back out of the change that removed the codesun reflect Reflection getCallerClass code It is still available in Java but it is deprecated ph2Update h2p3 years after Update on timing with current JVM ppre code gt java versionjava version Java TM SE Runtime Environment build b132 Java HotSpot TM 64 Bit Server VM build 25 b70 mixed mode gt java TestGetCallerClassNameReflection 194s Current Thread StackTrace 887s Throwable StackTrace 173s SecurityManager 565s code pre The SecurityManager method or one of the stack trace methods should still be available It is only the reflection method that use vendor specific class pAn alternative solution can be found in comment to href http bugs sun com bugdatabase view bug do bug id 4851444 rel noreferrer this request for enhancement It uses the codegetClassContext code method of custom codeSecurityManager code and seems to be faster than the stack trace method ppThe following program tests the speed of the different suggested methods the most interesting bit is in the inner class codeSecurityManagerMethod code ppre code Test the speed of various methods for getting the caller class name public class TestGetCallerClassName Abstract class for testing different methods of getting the caller class name private static abstract class GetCallerClassNameMethod public abstract String getCallerClassName int callStackDepth public abstract String getMethodName Uses the internal Reflection class private static class ReflectionMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return sun reflect Reflection getCallerClass callStackDepth getName public String getMethodName return Reflection Get stack trace from the current thread private static class ThreadStackTraceMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return Thread currentThread getStackTrace callStackDepth getClassName public String getMethodName return Current Thread StackTrace Get stack trace from new Throwable private static class ThrowableStackTraceMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return new Throwable getStackTrace callStackDepth getClassName public String getMethodName return Throwable StackTrace Use the SecurityManager getClassContext private static class SecurityManagerMethod extends GetCallerClassNameMethod public String getCallerClassName int callStackDepth return mySecurityManager getCallerClassName callStackDepth public String getMethodName return SecurityManager custom security manager that exposes the getClassContext information static class MySecurityManager extends SecurityManager public String getCallerClassName int callStackDepth return getClassContext callStackDepth getName private final static MySecurityManager mySecurityManager new MySecurityManager Test all four methods public static void main String args testMethod new ReflectionMethod testMethod new ThreadStackTraceMethod testMethod new ThrowableStackTraceMethod testMethod new SecurityManagerMethod private static void testMethod GetCallerClassNameMethod method long startTime System nanoTime String className null for int lt 1000000 className method getCallerClassName printElapsedTime method getMethodName startTime private static void printElapsedTime String title long startTime System out println title double System nanoTime startTime 1000000 ms code prepAn example of the output from my GHz Intel Core Duo MacBook running Java 17 ppre codeReflection 10 195 ms Current Thread StackTrace 5886 964 ms Throwable StackTrace 4700 073 ms SecurityManager 1046 804 ms code prepThe internal Reflection method is emmuch em faster than the others Getting stack trace from newly created codeThrowable code is faster than getting it from the current codeThread code And among the non internal ways of finding the caller class the custom codeSecurityManager code seems to be the fastest ph2Update h2pAs stronglyomi strong points out in href https stackoverflow com questions 421280 how do find the caller of method using stacktrace or reflection 2924426 comment26408146 2924426 this comment the codesun reflect Reflection getCallerClass code method has been disabled by default in Java update 40 and removed completely in Java Read more about this in href https bugs openjdk java net browse JDK 8014925 rel noreferrer this issue in the Java bug database ph2Update h2pAs strongzammbi strong has found Oracle was href https bugs openjdk java net browse JDK 8021946 rel noreferrer forced to back out of the change that removed the codesun reflect Reflection getCallerClass code It is still available in Java but it is deprecated ph2Update h2p3 years after Update on timing with current JVM ppre code gt java versionjava version Java TM SE Runtime Environment build b132 Java HotSpot TM 64 Bit Server VM build 25 b70 mixed mode gt java TestGetCallerClassNameReflection 194s Current Thread StackTrace 887s Throwable StackTrace 173s SecurityManager 565s code pre think you will need to use stack trace in order to get the calling method name You can do new Throwable getStackTrace callStackDepth getMethodName,0,NULL,NULL 38504,330661,233064,Supporter,NULL,NULL,0,NULL,NULL 38505,531136,1219125,Yearling Nice Answer Enlightened Nice Answer Enlightened Revival Yearling akka Necromancer scala Yearling,NULL,NULL,0,NULL,NULL 38506,701377,578745,Yearling Yearling Census Nice Answer,NULL,pIt not strongas strong simple as the built in development server but it not too hard to get something close using stunnel as an SSLifying middleman between your browser and the development server Stunnel allows you to set up lightweight server on your machine that accepts connections on configured port wraps them with SSL and passes them along to some other server We ll use this to open stunnel port 8443 and pass along any traffic it receives to Django runserver instance ppFirst you ll need stunnel which can be href http www stunnel org downloaded here or may be provided by your platform package system codeapt get install stunnel code ll be using version of stunnel code usr bin stunnel4 code on Ubuntu version will also work but has different configuration options ppFirst create directory in your Django project to hold the necessary configuration files and SSLish stuff ppre codemkdir stunnelcd stunnel code prepNext we ll need to create local certificate and key to be used for the SSL communication For this we turn to openssl ppCreate the key ppre codeopenssl genrsa 1024 gt stunnel key code prepCreate the certificate that uses this key this will ask you bunch of information that will be included in the certficate just answer with whatever feels good to you ppre codeopenssl req new x509 nodes sha1 days 365 key stunnel key gt stunnel cert code prepNow combine these into single file that stunnel will use for its SSL communication ppre codecat stunnel key stunnel cert gt stunnel pem code prepCreate config file for stunnel called dev https with the following contents ppre codepid cert stunnel stunnel pemsslVersion SSLv3foreground yesoutput stunnel log https accept 8443connect 8001TIMEOUTclose code prepThis file tells stunnel what it needs to know Specifically you re telling it not to use pid file where the certificate file is what version of SSL to use that it should run in the foreground where it should log its output and that it should accept connection on port 8443 and shuttle them along to port 8001 The last parameter TIMEOUTclose tells it to automatically close the connection after second has passed with no activity ppNow pop back up to your Django project directory the one with manage py in it ppre codecd code prepHere we ll create script named runserver that will run stunnel and two django development servers one for normal connections and one for SSL connections ppre codestunnel4 stunnel dev https amp python manage py runserver amp HTTPS python manage py runserver 8001 code prepLet break this down line by line pulliLine Starts stunnel and point it to the configuration file we just created This has stunnel listen on port 8443 wrap any connections it receives in SSL and pass them along to port 8001 liliLine Starts normal Django runserver instance on port 8000 liliLine Starts another Django runserver instance on port 8001 and configures it to treat all incoming connections as if they were being performed using HTTPS li ulpMake the runscript file we just created executable with ppre codechmod runserver code prepNow when you want to run your development server just execute code runserver code from your project directory To try it out just point your browser to href http localhost 8000 http localhost 8000 for normal HTTP traffic and href https localhost 8443 https localhost 8443 for HTTPS traffic Note that you re browser will almost definitely complain about the certificate used and require you to add an exception or otherwise explicitly instruct the browser to continue browsing This is because you created your own certificate and it isn trusted by the browser to be telling the truth about who it is This is fine for development but obviously won cut it for production ppUnfortunately on my machine this runserver script doesn exit out nicely when hit Ctrl have to manually kill the processes anyone have suggestion to fix that ppThanks to Michael Gile href http mgile com post 4729505823 django stunnel post and django weave href http code google com django weave wiki HTTPSDevelopment wiki entry for the reference material now see made mistake It should be stunnel pid,0,NULL,NULL 38507,241585,172290,Tumbleweed,NULL,NULL,0,NULL,NULL 38508,383468,142283,NULL,NULL,NULL,0,NULL,NULL 38509,397524,303203,NULL,NULL,NULL,0,NULL,NULL 38510,125282,981824,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 38511,602160,904581,NULL,NULL,NULL,0,NULL,NULL 38512,79210,294262,Necromancer,NULL,NULL,0,NULL,NULL 38513,1153476,1491132,NULL,NULL,NULL,0,NULL,NULL 38514,481304,495275,NULL,NULL,NULL,0,NULL,NULL 38515,84169,234830,NULL,NULL,NULL,0,NULL,NULL 38516,38247,318084,NULL,NULL,NULL,0,NULL,NULL 38517,98694,1178369,NULL,NULL,NULL,0,NULL,NULL 38518,555886,1178369,NULL,NULL,NULL,0,NULL,NULL 38519,543197,620105,NULL,NULL,NULL,0,NULL,NULL 38520,30702,234989,Yearling,NULL,NULL,0,NULL,NULL 38521,383689,451252,Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38522,177433,60488,Yearling Good Answer Popular Question Nice Question Nice Answer Caucus Notable Question Notable Question Yearling objective-c Good Question Guru xcode Guru Census Good Question Yearling cocoa-touch Great Answer Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 38523,505851,808097,Student Yearling,NULL,NULL,0,NULL,NULL 38524,15447,918712,Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 38525,462255,221933,Popular Question Yearling Nice Answer Enlightened Guru Custodian Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38526,78034,225723,NULL,NULL,NULL,0,NULL,NULL 38527,602751,670478,Yearling Great Question Nice Question Popular Question Yearling Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38528,45853,1404899,NULL,NULL,NULL,0,NULL,NULL 38529,39036,1144080,Revival,NULL,NULL,0,NULL,NULL 38530,1437995,1336634,NULL,NULL,NULL,0,NULL,NULL 38531,679495,6345,Great Answer Notable Question Popular Question Popular Question Good Answer Notable Question Nice Question Popular Question Good Question Notable Question Famous Question Popular Question Yearling Good Question Notable Question Pundit Popular Question Popular Question Nice Answer Popular Question Great Answer Good Question Notable Question Nice Answer Popular Question Popular Question Favorite Question Caucus Good Question Great Question Yearling Announcer Announcer Famous Question Nice Question Announcer Announcer Necromancer Great Question Announcer Notable Question Nice Question Popular Question Yearling,NULL,pAssuming that the input string in your example おはよう is UTF encoded which it isn by the looks of it but let assume it is for the sake of this explanation representation of Unicode string of your interest then your problem can be fully solved with the standard library 11 and newer alone pp strongThe TL DR version strong ppre code include lt locale gt include lt codecvt gt include lt string gt std wstring convert lt std codecvt utf8 utf16 lt wchar gt gt converter std string narrow converter to bytes wide utf16 source string std wstring wide converter from bytes narrow utf8 source string code prep strongLonger online compilable and runnable example strong pp They all show the same example There are just many for redundancy pulli href http ideone com KA1oty rel noreferrer http ideone com KA1oty lili href http ide geeksforgeeks org 5pRLSh rel noreferrer http ide geeksforgeeks org 5pRLSh lili href http rextester com DIJZK52174 rel noreferrer http rextester com DIJZK52174 li ulp strongNote old strong ppAs pointed out in the comments and explained in href https stackoverflow com 17106065 6345 https stackoverflow com 17106065 6345 there are cases when using the standard library to convert between UTF and UTF 16 might give unexpected differences in the results on different platforms For better conversion consider codestd codecvt utf8 code as described on href http en cppreference com cpp locale codecvt utf8 rel noreferrer http en cppreference com cpp locale codecvt utf8 pp strongNote new strong ppSince the codecodecvt code header is deprecated in 17 some worry about the solution presented in this answer were raised However the standards committee added an important statement in href http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html rel noreferrer http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html saying pblockquote pthis library component should be retired to Annex along side until suitable replacement is standardized blockquotepSo in the foreseeable future the codecodecvt code solution in this answer is safe and portable thanks for pointing this out added the Note new paragraph to address this pAssuming that the input string in your example おはよう is UTF encoded which it isn by the looks of it but let assume it is for the sake of this explanation representation of Unicode string of your interest then your problem can be fully solved with the standard library 11 and newer alone pp strongThe TL DR version strong ppre code include lt locale gt include lt codecvt gt include lt string gt std wstring convert lt std codecvt utf8 utf16 lt wchar gt gt converter std string narrow converter to bytes wide utf16 source string std wstring wide converter from bytes narrow utf8 source string code prep strongLonger online compilable and runnable example strong pp They all show the same example There are just many for redundancy pulli href http ideone com KA1oty rel noreferrer http ideone com KA1oty lili href http ide geeksforgeeks org 5pRLSh rel noreferrer http ide geeksforgeeks org 5pRLSh lili href http rextester com DIJZK52174 rel noreferrer http rextester com DIJZK52174 li ulp strongNote old strong ppAs pointed out in the comments and explained in href https stackoverflow com 17106065 6345 https stackoverflow com 17106065 6345 there are cases when using the standard library to convert between UTF and UTF 16 might give unexpected differences in the results on different platforms For better conversion consider codestd codecvt utf8 code as described on href http en cppreference com cpp locale codecvt utf8 rel noreferrer http en cppreference com cpp locale codecvt utf8 pp strongNote new strong ppSince the codecodecvt code header is deprecated in 17 some worry about the solution presented in this answer were raised However the standards committee added an important statement in href http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html rel noreferrer http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html saying pblockquote pthis library component should be retired to Annex along side until suitable replacement is standardized blockquotepSo in the foreseeable future the codecodecvt code solution in this answer is safe and portable doubt it because you declared that variable though,0,NULL,NULL 38532,7566909,6345,Great Answer Notable Question Popular Question Popular Question Good Answer Notable Question Nice Question Popular Question Good Question Notable Question Famous Question Popular Question Yearling Good Question Notable Question Pundit Popular Question Popular Question Nice Answer Popular Question Great Answer Good Question Notable Question Nice Answer Popular Question Popular Question Favorite Question Caucus Good Question Great Question Yearling Announcer Announcer Famous Question Nice Question Announcer Announcer Necromancer Great Question Announcer Notable Question Nice Question Popular Question Yearling,NULL,pAssuming that the input string in your example おはよう is UTF encoded which it isn by the looks of it but let assume it is for the sake of this explanation representation of Unicode string of your interest then your problem can be fully solved with the standard library 11 and newer alone pp strongThe TL DR version strong ppre code include lt locale gt include lt codecvt gt include lt string gt std wstring convert lt std codecvt utf8 utf16 lt wchar gt gt converter std string narrow converter to bytes wide utf16 source string std wstring wide converter from bytes narrow utf8 source string code prep strongLonger online compilable and runnable example strong pp They all show the same example There are just many for redundancy pulli href http ideone com KA1oty rel noreferrer http ideone com KA1oty lili href http ide geeksforgeeks org 5pRLSh rel noreferrer http ide geeksforgeeks org 5pRLSh lili href http rextester com DIJZK52174 rel noreferrer http rextester com DIJZK52174 li ulp strongNote old strong ppAs pointed out in the comments and explained in href https stackoverflow com 17106065 6345 https stackoverflow com 17106065 6345 there are cases when using the standard library to convert between UTF and UTF 16 might give unexpected differences in the results on different platforms For better conversion consider codestd codecvt utf8 code as described on href http en cppreference com cpp locale codecvt utf8 rel noreferrer http en cppreference com cpp locale codecvt utf8 pp strongNote new strong ppSince the codecodecvt code header is deprecated in 17 some worry about the solution presented in this answer were raised However the standards committee added an important statement in href http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html rel noreferrer http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html saying pblockquote pthis library component should be retired to Annex along side until suitable replacement is standardized blockquotepSo in the foreseeable future the codecodecvt code solution in this answer is safe and portable thanks for pointing this out added the Note new paragraph to address this pAssuming that the input string in your example おはよう is UTF encoded which it isn by the looks of it but let assume it is for the sake of this explanation representation of Unicode string of your interest then your problem can be fully solved with the standard library 11 and newer alone pp strongThe TL DR version strong ppre code include lt locale gt include lt codecvt gt include lt string gt std wstring convert lt std codecvt utf8 utf16 lt wchar gt gt converter std string narrow converter to bytes wide utf16 source string std wstring wide converter from bytes narrow utf8 source string code prep strongLonger online compilable and runnable example strong pp They all show the same example There are just many for redundancy pulli href http ideone com KA1oty rel noreferrer http ideone com KA1oty lili href http ide geeksforgeeks org 5pRLSh rel noreferrer http ide geeksforgeeks org 5pRLSh lili href http rextester com DIJZK52174 rel noreferrer http rextester com DIJZK52174 li ulp strongNote old strong ppAs pointed out in the comments and explained in href https stackoverflow com 17106065 6345 https stackoverflow com 17106065 6345 there are cases when using the standard library to convert between UTF and UTF 16 might give unexpected differences in the results on different platforms For better conversion consider codestd codecvt utf8 code as described on href http en cppreference com cpp locale codecvt utf8 rel noreferrer http en cppreference com cpp locale codecvt utf8 pp strongNote new strong ppSince the codecodecvt code header is deprecated in 17 some worry about the solution presented in this answer were raised However the standards committee added an important statement in href http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html rel noreferrer http www open std org jtc1 sc22 wg21 docs papers 2017 p0618r0 html saying pblockquote pthis library component should be retired to Annex along side until suitable replacement is standardized blockquotepSo in the foreseeable future the codecodecvt code solution in this answer is safe and portable doubt it because you declared that variable though,0,NULL,NULL 38533,108471,1085684,Nice Question Popular Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 38534,25355,487903,Popular Question Good Answer Good Answer Notable Question Nice Question Guru Nice Answer Yearling Caucus Custodian Good Question Famous Question Notable Question Popular Question Famous Question Guru python Notable Question Popular Question Popular Question Yearling Census Notable Question Popular Question Great Answer Yearling,NULL,pre codedef to camel case snake str components snake str split We capitalize the first letter of each component except the first one with the title method and join them together return components join title for in components code prepExample ppre codeIn 11 to camel case snake case Out 11 snakeCase code pre What other datataypes would camelCasing be applicable to pre codedef to camel case snake str components snake str split We capitalize the first letter of each component except the first one with the title method and join them together return components join title for in components code prepExample ppre codeIn 11 to camel case snake case Out 11 snakeCase code pre Well that not really idiomatic Python which generally adheres to the Easier to ask for forgiveness than permission principle With you could add type hints if you want type safety but doing type checking with if else for functions that are as clear cut as this what else could you possible camelCase other than strings is just bad style and excessive verbosity in my book,0,NULL,NULL 38535,277769,96205,Citizen Patrol Favorite Question Yearling Popular Question Good Answer Tumbleweed Yearling Great Question,NULL,NULL,0,NULL,NULL 38536,76898,935239,Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 38537,36098,7647,Popular Question Good Question Yearling Revival Announcer Nice Answer Enlightened Caucus Great Answer java Tag Editor Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38538,50604,341720,NULL,NULL,NULL,0,NULL,NULL 38539,635798,1479173,Popular Question Notable Question Supporter,NULL,NULL,0,NULL,NULL 38540,86795,601392,Good Answer,NULL,NULL,0,NULL,NULL 38541,82581,289168,NULL,NULL,NULL,0,NULL,NULL 38542,427056,1171617,Tumbleweed Curious Good Answer Caucus,NULL,NULL,0,NULL,NULL 38543,195889,793939,NULL,NULL,NULL,0,NULL,NULL 38544,1096183,246485,NULL,NULL,NULL,0,NULL,NULL 38545,37996,845414,Nice Answer Popular Question Yearling Caucus Constituent Nice Answer Good Answer Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Revival Documentation User Nice Answer Nice Answer Revival Caucus Constituent Good Answer java Yearling Promoter Notable Question,NULL,NULL,0,NULL,NULL 38546,398210,985292,Notable Question Popular Question Notable Question Popular Question Yearling Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 38547,234158,265325,NULL,NULL,NULL,0,NULL,NULL 38548,243518,1517027,Notable Question Revival,NULL,NULL,0,NULL,NULL 38549,84003,27658,Custodian Custodian Populist Great Answer Yearling Famous Question Yearling Popular Question Yearling,NULL,pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect Hashing is better if you need to verify secret But when you need to store secret you will need to submit to another system hashing doesn help pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect Thank you for pointing me in the direection of PBKDF2 learned stuff both about the algorithm and the theory around slow hashes Good stuff to learn ve updated the code hope you like the new version better pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect Thanks for the vote happy to learn that why we re here updated the iteration count to 40k and changed the comment to reflect this ve also deleted an earlier comment Regarding the salt Is it correct that the salt can be stored in the prop files with the encrypted properties also wonder if you have any insights into why other key lengths than 128 and 132 it turns out throw exception pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect ve updated the code example to avoid the possible confusion with hardcoding the password Hope this makes it clearer pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect What error problem do you encounter pA simple way of doing this is to use Password Based Encryption in Java This allows you to encrypt and decrypt text by using password ppThis basically means initializing codejavax crypto Cipher code with algorithm code AES CBC PKCS5Padding code and getting key from codejavax crypto SecretKeyFactory code with the code PBKDF2WithHmacSHA512 code algorithm ppHere is code example updated to replace the less secure MD5 based variant ppre codeimport java io IOException import java io UnsupportedEncodingException import java security AlgorithmParameters import java security GeneralSecurityException import java security NoSuchAlgorithmException import java security spec InvalidKeySpecException import java util Base64 import javax crypto Cipher import javax crypto SecretKey import javax crypto SecretKeyFactory import javax crypto spec IvParameterSpec import javax crypto spec PBEKeySpec import javax crypto spec SecretKeySpec public class ProtectedConfigFile public static void main String args throws Exception String password System getProperty password if password null throw new IllegalArgumentException Run with Dpassword lt password gt The salt probably can be stored along with the encrypted data byte salt new String 12345678 getBytes Decreasing this speeds down startup time and can be useful during testing but it also makes it easier for brute force attackers int iterationCount 40000 Other values give me java security InvalidKeyException Illegal key size or default parameters int keyLength 128 SecretKeySpec key createSecretKey password toCharArray salt iterationCount keyLength String originalPassword secret System out println Original password originalPassword String encryptedPassword encrypt originalPassword key System out println Encrypted password encryptedPassword String decryptedPassword decrypt encryptedPassword key System out println Decrypted password decryptedPassword private static SecretKeySpec createSecretKey char password byte salt int iterationCount int keyLength throws NoSuchAlgorithmException InvalidKeySpecException SecretKeyFactory keyFactory SecretKeyFactory getInstance PBKDF2WithHmacSHA512 PBEKeySpec keySpec new PBEKeySpec password salt iterationCount keyLength SecretKey keyTmp keyFactory generateSecret keySpec return new SecretKeySpec keyTmp getEncoded AES private static String encrypt String property SecretKeySpec key throws GeneralSecurityException UnsupportedEncodingException Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher ENCRYPT MODE key AlgorithmParameters parameters pbeCipher getParameters IvParameterSpec ivParameterSpec parameters getParameterSpec IvParameterSpec class byte cryptoText pbeCipher doFinal property getBytes UTF byte iv ivParameterSpec getIV return base64Encode iv base64Encode cryptoText private static String base64Encode byte bytes return Base64 getEncoder encodeToString bytes private static String decrypt String string SecretKeySpec key throws GeneralSecurityException IOException String iv string split String property string split Cipher pbeCipher Cipher getInstance AES CBC PKCS5Padding pbeCipher init Cipher DECRYPT MODE key new IvParameterSpec base64Decode iv return new String pbeCipher doFinal base64Decode property UTF private static byte base64Decode String property throws IOException return Base64 getDecoder decode property code prepOne problem remains Where should you store the password that you use to encrypt the passwords You can store it in the source file and obfuscate it but it not too hard to find it again Alternatively you can give it as system property when you start the Java process code DpropertyProtectionPassword code ppThe same issue remains if you use the KeyStore which also is protected by password Basically you will need to have one master password somewhere and it pretty hard to protect tried to run this with Oracle JDK and get the expected behavior Please provide more information if am going to help,0,NULL,NULL 38550,201195,769231,Custodian Necromancer Nice Answer Yearling Nice Answer Yearling Good Answer Yearling Necromancer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 38551,33660,4991,Yearling Good Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 38552,610918,602204,NULL,NULL,NULL,0,NULL,NULL 38553,15877,46316,Good Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Yearling Census Notable Question Caucus Nice Question Custodian,NULL,NULL,0,NULL,NULL 38554,36654,628289,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 38555,501515,460378,Popular Question,NULL,NULL,0,NULL,NULL 38556,5071503,521819,NULL,NULL,NULL,0,NULL,NULL 38557,80107,521819,NULL,NULL,NULL,0,NULL,NULL 38558,435522,150373,Nice Answer Yearling Popular Question Promoter Benefactor Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 38559,418391,1202523,NULL,NULL,NULL,0,NULL,NULL 38560,1256572,925519,Critic Good Question Caucus Constituent Commentator Yearling Notable Question Popular Question Teacher Excavator,NULL,NULL,0,NULL,NULL 38561,551380,458322,NULL,NULL,NULL,0,NULL,NULL 38562,1666886,458322,NULL,NULL,NULL,0,NULL,NULL 38563,206676,188029,NULL,NULL,NULL,0,NULL,NULL 38564,181804,362802,NULL,NULL,NULL,0,NULL,NULL 38565,321387,338382,Popular Question Yearling Notable Question Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 38566,25285,471401,Yearling,NULL,NULL,0,NULL,NULL 38567,262208,1491831,NULL,NULL,NULL,0,NULL,NULL 38568,808592,303723,Yearling Famous Question Tumbleweed Yearling Necromancer Necromancer Notable Question Necromancer Yearling Necromancer Popular Question Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 38569,2487259,634224,NULL,NULL,NULL,0,NULL,NULL 38570,292803,387736,Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38571,600612,659902,NULL,NULL,NULL,0,NULL,NULL 38572,748770,848761,Nice Question Self-Learner Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38573,536117,1186022,NULL,NULL,NULL,0,NULL,NULL 38574,444780,208065,Nice Answer Popular Question Yearling Tumbleweed Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 38575,511434,40841,Documentation User,NULL,NULL,0,NULL,NULL 38576,53342,1001225,Student,NULL,NULL,0,NULL,NULL 38577,129256,898111,NULL,NULL,NULL,0,NULL,NULL 38578,145869,61663,Nice Question Nice Answer Yearling Good Answer Famous Question Popular Question Nice Answer Nice Answer Guru Yearling Famous Question Nice Answer Favorite Question Good Answer Nice Answer Famous Question Famous Question Great Answer Good Answer Yearling Nice Answer Famous Question Popular Question Popular Question Informed Notable Question Excavator,NULL,NULL,0,NULL,NULL 38579,449151,73986,Nice Answer Yearling Good Question Caucus Famous Question Yearling Caucus Census Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 38580,236772,621011,Informed Student Autobiographer,NULL,NULL,0,NULL,NULL 38581,501528,1329258,NULL,NULL,NULL,0,NULL,NULL 38582,377986,498012,NULL,NULL,NULL,0,NULL,NULL 38583,4230,899697,NULL,NULL,NULL,0,NULL,NULL 38584,68738,493051,NULL,NULL,NULL,0,NULL,NULL 38585,3985175,185387,Good Answer Nice Answer Revival Necromancer Mortarboard Yearling Necromancer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38586,126803,501222,NULL,NULL,NULL,0,NULL,NULL 38587,109856,274732,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38588,1491537,417292,Popular Question Nice Question Nice Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Nice Question Popular Question Good Question Notable Question Yearling Nice Question Nice Question Popular Question Good Question Notable Question Nice Answer Good Question Good Question Notable Question Famous Question Popular Question Great Answer Nice Question Famous Question Popular Question Good Answer Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 38589,68079,1266954,Popular Question Supporter,NULL,NULL,0,NULL,NULL 38590,98961,573254,NULL,NULL,NULL,0,NULL,NULL 38591,115496,1239243,NULL,NULL,NULL,0,NULL,NULL 38592,91291,577018,Yearling Nice Answer Good Answer Yearling Notable Question Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 38593,7922952,628799,Revival Editor,NULL,NULL,0,NULL,NULL 38594,25610,455556,Necromancer Good Answer Good Answer Nice Answer Organizer jquery Nice Answer Nice Answer Nice Answer Yearling Good Answer Curious Good Answer Revival javascript Great Answer Notable Question Announcer Necromancer Civic Duty Yearling Necromancer Necromancer Yearling Necromancer,NULL,href https stackoverflow com 7660817 107768 Bluish is completely right about this you can do it through Ajax because JavaScript cannot save files directly to user computer out of security concerns Unfortunately pointing the emmain window em URL at your file download means you have little control over what the user experience is when file download occurs ppI created href http johnculviner com post 2012 03 22 Ajax like feature rich file downloads with jQuery File Download aspx rel noreferrer jQuery File Download which allows for an Ajax like experience with file downloads complete with OnSuccess and OnFailure callbacks to provide for better user experience Take look at my href http johnculviner com post 2012 03 22 Ajax like feature rich file downloads with jQuery File Download aspx rel noreferrer blog post on the common problem that the plugin solves and some ways to use it and also href http jqueryfiledownload apphb com rel noreferrer demo of jQuery File Download in action Here is the href http github com johnculviner jquery fileDownload blob master src Scripts jquery fileDownload js rel noreferrer source ppHere is simple use case demo using the plugin href http github com johnculviner jquery fileDownload blob master src Scripts jquery fileDownload js rel noreferrer source with promises The href http jqueryfiledownload apphb com rel noreferrer demo page includes many other better UX examples as well ppre code fileDownload some file pdf done function alert File download success fail function alert File download failed code prepDepending on what browsers you need to support you may be able to use href https github com eligrey FileSaver js rel noreferrer https github com eligrey FileSaver js which allows more explicit control than the IFRAME method jQuery File Download uses thanks for the comment updated the bottom of my answer which clarifies some better options now that it is 2016 and jQuery was almost given back when wrote this plugin and answered this question which is certainly not the case anymore h3Update Nov 2018 Do you emneed em self signed certs h3pOr would real certificates get the job done better Have you considered any of these pulliLet Encrypt via href https git coolaj86 com coolaj86 greenlock express js rel nofollow noreferrer Greenlock js liliLet Encrypt via href https greenlock domains rel nofollow noreferrer https greenlock domains liliLocalhost relay service such as href https telebit cloud rel nofollow noreferrer https telebit cloud li ulp em Note Let Encrypt can also issue certificates to private networks em ph1ScreenCast h1p href https coolaj86 com articles how to create csr for https tls ssl rsa pems rel nofollow noreferrer https coolaj86 com articles how to create csr for https tls ssl rsa pems ph1Full Working example h1ullicreates certificates liliruns node js server lilino warnings or errors in node js client lilino warnings or errors in cURL li ulp href https github com coolaj86 nodejs self signed certificate example rel nofollow noreferrer https github com coolaj86 nodejs self signed certificate example ppUsing codelocalhost greenlock domains code as an example it points to 127 ph2server js h2pre code use strict var https require https port process argv 8043 fs require fs path require path server options require ssl root cas inject addFile path join dirname server my private root ca cert pem options key fs readFileSync path join dirname server privkey pem You don need to specify ca it done by ssl root cas ca fs readFileSync path join dirname server my private root ca cert pem cert fs readFileSync path join dirname server fullchain pem function app req res res setHeader Content Type text plain res end Hello encrypted world server https createServer options app listen port function port server address port console log Listening on https 127 port console log Listening on https server address address port console log Listening on https localhost greenlock domains port code preh2client js h2pre code use strict var https require https fs require fs path require path ca fs readFileSync path join dirname client my private root ca cert pem port process argv 8043 hostname process argv localhost greenlock domains var options host hostname port port path ca ca options agent new https Agent options https request options function res res pipe process stdout end code prepAnd the script that makes the certificate files ph2make certs sh h2pre code bin bashFQDN make directories to work frommkdir server client all Create your very own Root Certificate Authorityopenssl genrsa out all my private root ca privkey pem 2048 Self sign your Root Certificate Authority Since this is private the details can be as bogus as you likeopenssl req x509 new nodes key all my private root ca privkey pem days 1024 out all my private root ca cert pem subj US ST Utah Provo ACME Signing Authority Inc CN example com Create Device Certificate for each domain such as example com example com awesome example com NOTE You MUST match CN to the domain name or ip address you want to useopenssl genrsa out all privkey pem 2048 Create request from your Device which your Root CA will signopenssl req new key all privkey pem out all csr pem subj US ST Utah Provo ACME Tech Inc CN FQDN Sign the request from Device with your Root CAopenssl x509 req in all csr pem CA all my private root ca cert pem CAkey all my private root ca privkey pem CAcreateserial out all cert pem days 500 Put things in their proper placersync all privkey cert pem server cat all cert pem gt server fullchain pem we have no intermediates in this casersync all my private root ca cert pem server rsync all my private root ca cert pem client create DER format crt for iOS Mobile Safari etcopenssl x509 outform der in all my private root ca cert pem out client my private root ca crt code prepFor example ppre codebash make certs sh localhost greenlock domains code prepHopefully this puts the nail in the coffin on this one ppAnd some more explanation href https github com coolaj86 node ssl root cas wiki Painless Self Signed Certificates in node js rel nofollow noreferrer https github com coolaj86 node ssl root cas wiki Painless Self Signed Certificates in node js ph1Install private cert on iOS Mobile Safari h1pYou need to create copy of the root ca certificate DER format with crt extension ppre code create DER format crt for iOS Mobile Safari etcopenssl x509 outform der in all my private root ca cert pem out client my private root ca crt code prepThen you can simply serve that file with your webserver When you click the link you should be asked if you want to install the certificate ppFor an example of how this works you can try installing MIT Certificate Authority href https ca mit edu mitca crt rel nofollow noreferrer https ca mit edu mitca crt ph1Related Examples h1ulli href https github com coolaj86 nodejs ssl example rel nofollow noreferrer https github com coolaj86 nodejs ssl example lili href https github com coolaj86 nodejs ssl trusted peer example rel nofollow noreferrer https github com coolaj86 nodejs ssl trusted peer example lili href https github com coolaj86 node ssl root cas rel nofollow noreferrer https github com coolaj86 node ssl root cas lili href https github com coolaj86 nodejs https sni vhost example rel nofollow noreferrer https github com coolaj86 nodejs https sni vhost example aulli Multiple vhosts with SSL on the same server li ul lili href https telebit cloud rel nofollow noreferrer https telebit cloud aulli get REAL SSL certs you can use TODAY for testing on localhost li ul li ul If you need to get the CA pem for the server you are calling use this command its the last certificate in the output openssl client showcerts connect www example com 443 dev null,0,NULL,NULL 38595,159275,577181,Nice Answer Yearling Excavator java-ee Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Yearling Notable Question Caucus Good Answer Nice Answer Enlightened Yearling Good Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 38596,87868,365907,Teacher Nice Question Popular Question Nice Question Yearling Self-Learner Editor Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 38597,87875,365907,Teacher Nice Question Popular Question Nice Question Yearling Self-Learner Editor Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 38598,317914,1191053,NULL,NULL,NULL,0,NULL,NULL 38599,34219,166625,Yearling Great Answer Great Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38600,7401,450779,Supporter,NULL,NULL,0,NULL,NULL 38601,994,321458,Necromancer,NULL,NULL,0,NULL,NULL 38602,409503,829758,NULL,NULL,NULL,0,NULL,NULL 38603,222070,25300,Notable Question Nice Answer Enlightened Notable Question Yearling Nice Answer Enlightened Famous Question Good Answer Notable Question Nice Question Nice Answer Good Question Disciplined Popular Question Famous Question Guru Popular Question Good Answer Famous Question Yearling Good Answer Good Answer Famous Question Guru Yearling Notable Question Custodian,NULL,NULL,0,NULL,NULL 38604,94603,884827,Famous Question Revival Yearling Nice Question Caucus Constituent Necromancer Commentator Yearling Popular Question Caucus Self-Learner Curious,NULL,NULL,0,NULL,NULL 38605,185088,991209,Student Supporter,NULL,NULL,0,NULL,NULL 38606,167803,754842,Necromancer Popular Question Necromancer Yearling Nice Answer Popular Question Notable Question Caucus Constituent Great Answer Yearling Caucus Constituent Revival Necromancer Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 38607,107405,1332115,NULL,NULL,NULL,0,NULL,NULL 38608,97375,130489,Notable Question Notable Question Popular Question Investor,NULL,NULL,0,NULL,NULL 38609,109,52207,Yearling Necromancer Good Question Custodian Custodian Custodian Revival Nice Question Announcer Good Question Custodian Notable Question Yearling Announcer Nice Answer Good Answer Famous Question Announcer Notable Question Famous Question Yearling Nice Answer Enlightened Good Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 38610,166771,262073,Nice Question Teacher Commentator Critic Informed Yearling Excavator,NULL,NULL,0,NULL,NULL 38611,609997,384267,NULL,NULL,NULL,0,NULL,NULL 38612,609998,384267,NULL,NULL,NULL,0,NULL,NULL 38613,40528,1362978,NULL,NULL,NULL,0,NULL,NULL 38614,276028,616124,Supporter Good Answer Yearling Guru Scholar Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 38615,7024417,476093,NULL,NULL,NULL,0,NULL,NULL 38616,785180,224625,Critic Yearling Good Answer Necromancer Student Excavator,NULL,NULL,0,NULL,NULL 38617,1344564,1504075,NULL,NULL,NULL,0,NULL,NULL 38618,55473,292809,NULL,NULL,NULL,0,NULL,NULL 38619,37221,461974,Notable Question Nice Answer Nice Question Yearling Notable Question Popular Question Good Answer Popular Question Nice Answer Enlightened Nice Answer Popular Question Nice Answer Good Answer Yearling Famous Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 38620,46725,1424084,NULL,NULL,NULL,0,NULL,NULL 38621,430728,271584,NULL,NULL,NULL,0,NULL,NULL 38622,35467,491241,Revival,NULL,NULL,0,NULL,NULL 38623,296350,27633,Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 38624,338180,1221263,NULL,NULL,NULL,0,NULL,NULL 38625,171622,1350352,Nice Answer Necromancer Yearling Yearling Good Answer Populist Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 38626,745443,1452345,Notable Question Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 38627,276370,1079027,Informed Civic Duty,NULL,NULL,0,NULL,NULL 38628,202959,317110,Nice Answer Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Yearling Revival Revival Nice Answer Popular Question Revival Nice Question Popular Question Notable Question Famous Question Announcer Necromancer Revival Notable Question Nice Answer Yearling Notable Question Revival Necromancer Popular Question Notable Question Popular Question Necromancer Notable Question Good Question Nice Question Good Question Nice Answer Necromancer Necromancer Necromancer Yearling Necromancer Necromancer Announcer Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 38629,1519479,1231944,NULL,NULL,NULL,0,NULL,NULL 38630,1002286,1376789,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 38631,74065,1298678,Necromancer Tumbleweed Supporter Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38632,15279,832771,NULL,NULL,NULL,0,NULL,NULL 38633,42752,48392,NULL,NULL,NULL,0,NULL,NULL 38634,63845,101914,Yearling,NULL,NULL,0,NULL,NULL 38635,62346,232454,NULL,NULL,NULL,0,NULL,NULL 38636,1566083,971898,Popular Question,NULL,NULL,0,NULL,NULL 38637,54863,781561,NULL,NULL,NULL,0,NULL,NULL 38638,448280,378044,Yearling Good Answer Popular Question Great Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 38639,903075,469809,NULL,NULL,NULL,0,NULL,NULL 38640,64030,904879,Revival Yearling,NULL,NULL,0,NULL,NULL 38641,399988,400286,javascript Nice Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Great Answer Popular Question mongodb Caucus Good Question Guru Popular Question reactjs Nice Answer Enlightened Nice Answer Yearling Popular Question Census Great Answer Necromancer Popular Question Yearling Nice Answer Enlightened Announcer Notable Question,NULL,NULL,0,NULL,NULL 38642,54986,31899,angularjs Nice Answer Good Question Popular Question Nice Answer Yearling Caucus Nice Answer Nice Answer Populist Yearling Nice Answer Good Answer Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 38643,6612814,213078,NULL,NULL,NULL,0,NULL,NULL 38644,320651,164786,NULL,NULL,NULL,0,NULL,NULL 38645,21090,158054,Nice Answer Popular Question Popular Question Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 38646,208529,1063192,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38647,608846,1380384,NULL,NULL,NULL,0,NULL,NULL 38648,397872,1410285,NULL,NULL,NULL,0,NULL,NULL 38649,83584,856448,NULL,NULL,NULL,0,NULL,NULL 38650,89653,223122,Notable Question Self-Learner Notable Question Popular Question Popular Question Yearling Census Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38651,187512,1040838,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 38652,1443054,1148697,NULL,NULL,NULL,0,NULL,NULL 38653,77863,358952,Revival Yearling java Yearling Great Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 38654,23901,499746,Promoter Benefactor Popular Question Teacher,NULL,NULL,0,NULL,NULL 38655,135804,744986,NULL,NULL,NULL,0,NULL,NULL 38656,197396,244906,NULL,NULL,NULL,0,NULL,NULL 38657,1386006,464064,Notable Question Famous Question Nice Question Popular Question Yearling Yearling Caucus Famous Question Popular Question Yearling Good Question Nice Answer Documentation User Yearling Enlightened Good Answer Guru Yearling Good Question,NULL,,0,, 38658,278467,333554,NULL,NULL,NULL,0,NULL,NULL 38659,46693,396436,Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38660,227796,82895,NULL,NULL,NULL,0,NULL,NULL 38661,893926,883380,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 38662,165068,327279,Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 38663,27684,871698,NULL,NULL,NULL,0,NULL,NULL 38664,1797898,813417,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38665,1076634,1536999,Popular Question,NULL,NULL,0,NULL,NULL 38666,738593,45365,Famous Question Notable Question Yearling Notable Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 38667,435958,1318813,Critic,NULL,NULL,0,NULL,NULL 38668,531353,3054,Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 38669,302647,1255137,Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 38670,1197262,1491830,NULL,NULL,NULL,0,NULL,NULL 38671,168333,400550,Documentation Pioneer Necromancer Nice Answer Yearling Custodian Yearling Documentation User Announcer Good Answer Necromancer Yearling Tumbleweed Curious Peer Pressure,NULL,NULL,0,NULL,NULL 38672,271368,173370,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38673,416,476000,NULL,NULL,NULL,0,NULL,NULL 38674,332583,82695,Curious Citizen Patrol,NULL,NULL,0,NULL,NULL 38675,136264,1249204,NULL,NULL,NULL,0,NULL,NULL 38676,203007,1204509,Good Answer Yearling Guru Yearling Yearling Census Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 38677,53495,24337,Nice Answer Good Answer Yearling Caucus Good Answer Nice Answer Enlightened Guru Nice Answer Guru Good Answer Nice Answer Good Question Yearling Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38678,1183054,850320,NULL,NULL,NULL,0,NULL,NULL 38679,62072,216936,NULL,NULL,NULL,0,NULL,NULL 38680,365607,874452,Famous Question Good Question,NULL,NULL,0,NULL,NULL 38681,10193141,328129,NULL,NULL,NULL,0,NULL,NULL 38682,150508,17623,Good Question Revival Yearling,NULL,NULL,0,NULL,NULL 38683,22874,159685,Stellar Question Notable Question Popular Question Nice Question Nice Question Popular Question Notable Question Popular Question Notable Question Yearling Caucus Notable Question Popular Question Nice Question Self-Learner Famous Question Popular Question Famous Question Famous Question Yearling Announcer Popular Question Famous Question Famous Question Good Question Popular Question Custodian Famous Question Popular Question Nice Question Popular Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 38684,93252,233131,NULL,NULL,NULL,0,NULL,NULL 38685,192044,233131,NULL,NULL,NULL,0,NULL,NULL 38686,577164,1499694,NULL,NULL,NULL,0,NULL,NULL 38687,818312,905128,NULL,NULL,NULL,0,NULL,NULL 38688,901408,1532488,NULL,NULL,NULL,0,NULL,NULL 38689,53098,93252,Nice Answer Popular Question Nice Answer Yearling Nice Answer Enlightened Populist Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer,NULL,pWhy not just use psql ppIf you look at the output of codeheroku config code you will see the database URLs DATABASE URL key your application is using if you take this and break them apart in to the correct bits for using with the codepsql code all will be good ppeg ppre codeDATABASE URL postgres username password port dbname code prepbecomes ppre codepsql host port dbname username datafile sql code pre make sure you are using SSL for the connection may require ssl require on the connection string,0,NULL,NULL 38690,218102,739051,NULL,NULL,NULL,0,NULL,NULL 38691,275516,471291,Revival Custodian Yearling Popular Question Good Answer Caucus Constituent Necromancer Investor Peer Pressure Necromancer Promoter Tenacious Caucus Custodian Custodian Organizer Necromancer Yearling Notable Question Custodian Caucus Constituent Nice Answer Revival Excavator Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38692,253464,1102613,NULL,NULL,NULL,0,NULL,NULL 38693,28192,1069835,NULL,NULL,NULL,0,NULL,NULL 38694,37037,347319,Caucus Critic,NULL,NULL,0,NULL,NULL 38695,323559,259432,NULL,NULL,NULL,0,NULL,NULL 38696,83190,30826,Famous Question,NULL,NULL,0,NULL,NULL 38697,38706,1304189,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38698,38008,343911,Great Answer Yearling Documentation Pioneer Caucus Census Custodian Yearling Caucus Documentation User Taxonomist Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 38699,47348,174513,NULL,NULL,NULL,0,NULL,NULL 38700,118452,190090,NULL,NULL,NULL,0,NULL,NULL 38701,32046,453432,Tumbleweed Yearling Nice Answer Yearling Great Answer Revival Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 38702,106271,80593,Autobiographer Census,NULL,NULL,0,NULL,NULL 38703,292365,964113,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38704,5511729,244487,NULL,NULL,NULL,0,NULL,NULL 38705,677323,244487,NULL,NULL,NULL,0,NULL,NULL 38706,11979,780199,NULL,NULL,NULL,0,NULL,NULL 38707,348509,12915,Nice Answer Good Answer Yearling Nice Question Excavator Yearling Enthusiast Nice Answer Enlightened Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 38708,41467,998025,NULL,NULL,NULL,0,NULL,NULL 38709,81,967659,NULL,NULL,NULL,0,NULL,NULL 38710,517875,1380124,NULL,NULL,NULL,0,NULL,NULL 38711,882165,1290781,Tumbleweed Yearling Scholar Student Informed Necromancer Caucus Organizer Yearling Caucus Nice Answer Documentation User Good Answer Populist,NULL,NULL,0,NULL,NULL 38712,171489,900887,NULL,NULL,NULL,0,NULL,NULL 38713,427928,24309,Yearling,NULL,NULL,0,NULL,NULL 38714,984274,870734,Necromancer Nice Answer Yearling Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38715,596886,1020383,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 38716,192164,1097026,NULL,NULL,NULL,0,NULL,NULL 38717,1318705,347186,Caucus,NULL,NULL,0,NULL,NULL 38718,119014,471786,Caucus,NULL,NULL,0,NULL,NULL 38719,15366,1214442,NULL,NULL,NULL,0,NULL,NULL 38720,200728,26081,Popular Question Yearling Notable Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 38721,222846,625200,Yearling Good Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 38722,110520,98600,Popular Question Popular Question Notable Question Notable Question Yearling Nice Answer Yearling Necromancer Nice Question Popular Question Popular Question Notable Question Nice Question Yearling Famous Question Yearling Good Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 38723,68077,979315,Notable Question Announcer,NULL,NULL,0,NULL,NULL 38724,28795,438911,Yearling Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 38725,753331,43670,Yearling,NULL,NULL,0,NULL,NULL 38726,1614101,1376696,NULL,NULL,NULL,0,NULL,NULL 38727,75281,1232819,Yearling Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 38728,422039,1527405,NULL,NULL,NULL,0,NULL,NULL 38729,270127,150531,Informed Critic,NULL,NULL,0,NULL,NULL 38730,212879,13375,Guru Notable Question Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Yearling Guru Nice Answer Revival Nice Answer Guru Nice Answer Necromancer Notable Question Good Answer Nice Answer Yearling Guru Good Answer Great Answer Good Answer jquery Yearling Great Answer,NULL,NULL,0,NULL,NULL 38731,74489,1167950,NULL,NULL,NULL,0,NULL,NULL 38732,426740,1450,Guru Nice Answer Promoter Benefactor Nice Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Notable Question Good Answer Good Answer Notable Question Favorite Question Great Question Nice Answer Enlightened Populist Guru Good Answer Nice Answer Yearling Notable Question Nice Answer Popular Question Good Question Good Answer Census Notable Question Famous Question Nice Answer Generalist Great Answer Nice Question Good Question Nice Answer Nice Answer Enlightened Popular Question Notable Question Yearling Good Answer Nice Answer Enlightened Popular Question Great Answer Good Answer Good Question Good Answer Guru Yearling Notable Question Good Question Nice Question Great Answer,NULL,NULL,0,NULL,NULL 38733,11199,103215,Good Answer Yearling Good Answer Guru Yearling Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 38734,522549,227349,Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 38735,349888,556250,Yearling Great Answer Yearling Editor Excavator,NULL,NULL,0,NULL,NULL 38736,624,381364,NULL,NULL,NULL,0,NULL,NULL 38737,55228,10067,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38738,1202675,710242,Notable Question Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 38739,767872,209122,NULL,NULL,NULL,0,NULL,NULL 38740,685363,58961,Great Answer Good Question Popular Question Good Question Good Question Popular Question Nice Answer Notable Question Notable Question Great Answer Notable Question Good Answer Guru Nice Answer Yearling Good Question Great Question Necromancer Nice Answer Popular Question Necromancer Necromancer Nice Answer Announcer Guru Nice Answer Enlightened Yearling Nice Question Famous Question Nice Answer Caucus Popular Question Notable Question Guru Announcer Announcer Nice Answer Necromancer Favorite Question Necromancer Nice Answer Great Question Popular Question Good Answer Nice Answer,NULL,pThe NET version of the Microsoft Build assembly contains SolutionParser class in the Microsoft Build Construction namespace that parses Visual Studio solution files ppUnfortunately this class is internal but ve wrapped some of that functionality in class that uses reflection to get at some common properties you might find helpful ppre class lang cs prettyprint override codepublic class Solution internal class SolutionParser Name Microsoft Build Construction SolutionParser Assembly Microsoft Build Version static readonly Type SolutionParser static readonly PropertyInfo SolutionParser solutionReader static readonly MethodInfo SolutionParser parseSolution static readonly PropertyInfo SolutionParser projects static Solution SolutionParser Type GetType Microsoft Build Construction SolutionParser Microsoft Build Version Culture neutral PublicKeyToken b03f5f7f11d50a3a false false if SolutionParser null SolutionParser solutionReader SolutionParser GetProperty SolutionReader BindingFlags NonPublic BindingFlags Instance SolutionParser projects SolutionParser GetProperty Projects BindingFlags NonPublic BindingFlags Instance SolutionParser parseSolution SolutionParser GetMethod ParseSolution BindingFlags NonPublic BindingFlags Instance public List lt SolutionProject gt Projects get private set public Solution string solutionFileName if SolutionParser null throw new InvalidOperationException Can not find type Microsoft Build Construction SolutionParser are you missing assembly reference to Microsoft Build dll var solutionParser SolutionParser GetConstructors BindingFlags Instance BindingFlags NonPublic First Invoke null using var streamReader new StreamReader solutionFileName SolutionParser solutionReader SetValue solutionParser streamReader null SolutionParser parseSolution Invoke solutionParser null var projects new List lt SolutionProject gt var array Array SolutionParser projects GetValue solutionParser null for int lt array Length projects Add new SolutionProject array GetValue this Projects projects DebuggerDisplay ProjectName RelativePath ProjectGuid public class SolutionProject static readonly Type ProjectInSolution static readonly PropertyInfo ProjectInSolution ProjectName static readonly PropertyInfo ProjectInSolution RelativePath static readonly PropertyInfo ProjectInSolution ProjectGuid static readonly PropertyInfo ProjectInSolution ProjectType static SolutionProject ProjectInSolution Type GetType Microsoft Build Construction ProjectInSolution Microsoft Build Version Culture neutral PublicKeyToken b03f5f7f11d50a3a false false if ProjectInSolution null ProjectInSolution ProjectName ProjectInSolution GetProperty ProjectName BindingFlags NonPublic BindingFlags Instance ProjectInSolution RelativePath ProjectInSolution GetProperty RelativePath BindingFlags NonPublic BindingFlags Instance ProjectInSolution ProjectGuid ProjectInSolution GetProperty ProjectGuid BindingFlags NonPublic BindingFlags Instance ProjectInSolution ProjectType ProjectInSolution GetProperty ProjectType BindingFlags NonPublic BindingFlags Instance public string ProjectName get private set public string RelativePath get private set public string ProjectGuid get private set public string ProjectType get private set public SolutionProject object solutionProject this ProjectName ProjectInSolution ProjectName GetValue solutionProject null as string this RelativePath ProjectInSolution RelativePath GetValue solutionProject null as string this ProjectGuid ProjectInSolution ProjectGuid GetValue solutionProject null as string this ProjectType ProjectInSolution ProjectType GetValue solutionProject null ToString code prepNote that you have to change your target framework to NET Framework not client profile to be able to add the Microsoft Build reference to your project that bug introduced by http stackoverflow com users 697477 teynon cannot notify http stackoverflow com users 697477 teynon but he should fix that in an answer of his own will revert the edited answer to previously working state know people like to edit things but much prefer if the code was left as is editing questions to add features into code samples is not why we have an edit button He should provide his changes as separate answer to this question pThe NET version of the Microsoft Build assembly contains SolutionParser class in the Microsoft Build Construction namespace that parses Visual Studio solution files ppUnfortunately this class is internal but ve wrapped some of that functionality in class that uses reflection to get at some common properties you might find helpful ppre class lang cs prettyprint override codepublic class Solution internal class SolutionParser Name Microsoft Build Construction SolutionParser Assembly Microsoft Build Version static readonly Type SolutionParser static readonly PropertyInfo SolutionParser solutionReader static readonly MethodInfo SolutionParser parseSolution static readonly PropertyInfo SolutionParser projects static Solution SolutionParser Type GetType Microsoft Build Construction SolutionParser Microsoft Build Version Culture neutral PublicKeyToken b03f5f7f11d50a3a false false if SolutionParser null SolutionParser solutionReader SolutionParser GetProperty SolutionReader BindingFlags NonPublic BindingFlags Instance SolutionParser projects SolutionParser GetProperty Projects BindingFlags NonPublic BindingFlags Instance SolutionParser parseSolution SolutionParser GetMethod ParseSolution BindingFlags NonPublic BindingFlags Instance public List lt SolutionProject gt Projects get private set public Solution string solutionFileName if SolutionParser null throw new InvalidOperationException Can not find type Microsoft Build Construction SolutionParser are you missing assembly reference to Microsoft Build dll var solutionParser SolutionParser GetConstructors BindingFlags Instance BindingFlags NonPublic First Invoke null using var streamReader new StreamReader solutionFileName SolutionParser solutionReader SetValue solutionParser streamReader null SolutionParser parseSolution Invoke solutionParser null var projects new List lt SolutionProject gt var array Array SolutionParser projects GetValue solutionParser null for int lt array Length projects Add new SolutionProject array GetValue this Projects projects DebuggerDisplay ProjectName RelativePath ProjectGuid public class SolutionProject static readonly Type ProjectInSolution static readonly PropertyInfo ProjectInSolution ProjectName static readonly PropertyInfo ProjectInSolution RelativePath static readonly PropertyInfo ProjectInSolution ProjectGuid static readonly PropertyInfo ProjectInSolution ProjectType static SolutionProject ProjectInSolution Type GetType Microsoft Build Construction ProjectInSolution Microsoft Build Version Culture neutral PublicKeyToken b03f5f7f11d50a3a false false if ProjectInSolution null ProjectInSolution ProjectName ProjectInSolution GetProperty ProjectName BindingFlags NonPublic BindingFlags Instance ProjectInSolution RelativePath ProjectInSolution GetProperty RelativePath BindingFlags NonPublic BindingFlags Instance ProjectInSolution ProjectGuid ProjectInSolution GetProperty ProjectGuid BindingFlags NonPublic BindingFlags Instance ProjectInSolution ProjectType ProjectInSolution GetProperty ProjectType BindingFlags NonPublic BindingFlags Instance public string ProjectName get private set public string RelativePath get private set public string ProjectGuid get private set public string ProjectType get private set public SolutionProject object solutionProject this ProjectName ProjectInSolution ProjectName GetValue solutionProject null as string this RelativePath ProjectInSolution RelativePath GetValue solutionProject null as string this ProjectGuid ProjectInSolution ProjectGuid GetValue solutionProject null as string this ProjectType ProjectInSolution ProjectType GetValue solutionProject null ToString code prepNote that you have to change your target framework to NET Framework not client profile to be able to add the Microsoft Build reference to your project Also look here https msdn microsoft com en us library microsoft build construction solutionfile vs 121 aspx,0,NULL,NULL 38741,168285,5868,Revival Nice Answer Yearling Nice Answer Good Answer python Guru Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Guru Nice Answer Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 38742,15972,576235,Popular Question Revival Student Notable Question Necromancer Self-Learner Commentator Critic Yearling Informed Caucus Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38743,134155,611752,Yearling Notable Question Tumbleweed Yearling Popular Question Notable Question Nice Answer Documentation User Nice Question Census Nice Question Yearling Popular Question Nice Answer Famous Question,NULL,pAndrew solution worked well for me but nested codedefn codes are not so idiomatic and you don need to do codelazy seq code twice here is an updated version without the extra prints and using codeletfn code ppre code defn lazy file lines file letfn helper rdr lazy seq if let line readLine rdr cons line helper rdr do close rdr nil helper clojure java io reader file count lazy file lines tmp massive file txt gt lt large integer gt code pre loop recur is not lazy,0,NULL,NULL 38744,186641,727655,NULL,NULL,NULL,0,NULL,NULL 38745,106745,2285,Necromancer Yearling Popular Question Good Question Good Answer Yearling Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 38746,292113,695138,Editor,NULL,NULL,0,NULL,NULL 38747,18561,695411,Popular Question Famous Question Yearling Nice Answer Self-Learner Nice Answer Enlightened Curious Popular Question,NULL,NULL,0,NULL,NULL 38748,1323781,695411,Popular Question Famous Question Yearling Nice Answer Self-Learner Nice Answer Enlightened Curious Popular Question,NULL,NULL,0,NULL,NULL 38749,825818,558554,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38750,220712,445126,Nice Answer Popular Question Nice Question Famous Question Stellar Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Good Question Popular Question Necromancer Yearling Famous Question Notable Question Great Answer Famous Question Notable Question Notable Question Popular Question Nice Answer Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Popular Question Notable Question Nice Question Yearling Nice Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Stellar Question Good Question Yearling Famous Question Nice Answer Enlightened,NULL,pYou could extend the codeNumber code object ppre codeNumber prototype pad function size var String this while length lt size return code prep emExamples em ppre code pad returns 09 pad returns 007 code pre This answer was written long time ago but would say that think there is delightful elegance in extended prototypes understand the risks and never do this on client work but do like it The risk can be mitigated by name spacing calling it myPad or something pYou could extend the codeNumber code object ppre codeNumber prototype pad function size var String this while length lt size return code prep emExamples em ppre code pad returns 09 pad returns 007 code pre But yeah if you don fully understand the risks do not do this pYou could extend the codeNumber code object ppre codeNumber prototype pad function size var String this while length lt size return code prep emExamples em ppre code pad returns 09 pad returns 007 code pre hey vv is there bench mark we can reference for that Interesting point pYou could extend the codeNumber code object ppre codeNumber prototype pad function size var String this while length lt size return code prep emExamples em ppre code pad returns 09 pad returns 007 code pre vv sure can test it but my thought was it would be useful to actually add to the answer if you had link for people considering this approach,0,NULL,NULL 38751,108025,24243,Nice Answer Yearling Nice Answer Great Answer Nice Answer Yearling Yearling Popular Question Great Answer,NULL,NULL,0,NULL,NULL 38752,364517,1064799,NULL,NULL,NULL,0,NULL,NULL 38753,479762,1110310,NULL,NULL,NULL,0,NULL,NULL 38754,81795,778180,Good Answer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 38755,1108667,776390,NULL,NULL,NULL,0,NULL,NULL 38756,117764,82872,Good Answer Yearling Nice Answer Nice Answer Yearling Good Answer Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 38757,317076,141628,Supporter Scholar,NULL,NULL,0,NULL,NULL 38758,53008,97988,NULL,NULL,NULL,0,NULL,NULL 38759,336792,1307143,NULL,NULL,NULL,0,NULL,NULL 38760,47002,1539844,NULL,NULL,NULL,0,NULL,NULL 38761,401656,871979,NULL,NULL,NULL,0,NULL,NULL 38762,95507,1210207,NULL,NULL,NULL,0,NULL,NULL 38763,93214,78773,Revival Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38764,20727,784406,NULL,NULL,NULL,0,NULL,NULL 38765,442299,406837,NULL,NULL,NULL,0,NULL,NULL 38766,288637,910764,NULL,NULL,NULL,0,NULL,NULL 38767,269291,149059,Necromancer Famous Question Nice Question Necromancer Yearling Excavator Civic Duty Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 38768,19264,6073,Yearling Guru Excavator Famous Question Yearling Informed,NULL,NULL,0,NULL,NULL 38769,249210,56656,Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 38770,236071,60131,Famous Question Popular Question Famous Question Good Question Notable Question Yearling Nice Answer Popular Question Nice Answer Popular Question Popular Question Yearling Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38771,1367,683080,Guru Good Answer Yearling Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Guru Student python github Guru git Good Answer Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Great Answer Great Answer Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer,NULL,NULL,0,NULL,NULL 38772,1098807,394421,NULL,NULL,NULL,0,NULL,NULL 38773,800410,1074710,Editor Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 38774,1338170,757645,NULL,NULL,NULL,0,NULL,NULL 38775,1144398,168008,NULL,NULL,NULL,0,NULL,NULL 38776,206972,452233,Nice Answer Yearling Caucus Constituent Caucus Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 38777,131124,176766,NULL,NULL,NULL,0,NULL,NULL 38778,686629,882460,Popular Question,NULL,NULL,0,NULL,NULL 38779,1327089,308555,Yearling Teacher,NULL,NULL,0,NULL,NULL 38780,49288,331137,Nice Answer Enlightened Nice Answer Enlightened Pundit Good Answer Yearling Nice Answer Enlightened mysql Good Answer Great Answer php Great Answer Generalist Yearling Nice Answer Guru Nice Answer Good Answer Census Nice Answer Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 38781,93231,828462,NULL,NULL,NULL,0,NULL,NULL 38782,1519232,1391931,NULL,NULL,NULL,0,NULL,NULL 38783,377196,931988,NULL,NULL,NULL,0,NULL,NULL 38784,336893,105826,NULL,NULL,NULL,0,NULL,NULL 38785,78648,163827,Revival Nice Answer Necromancer Nice Answer Revival Yearling Notable Question Nice Answer Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 38786,8768644,797025,NULL,NULL,NULL,0,NULL,NULL 38787,165011,716392,NULL,NULL,NULL,0,NULL,NULL 38788,1506521,851716,NULL,NULL,NULL,0,NULL,NULL 38789,208036,538577,Citizen Patrol Cleanup Nice Question Famous Question Caucus Constituent Popular Question Documentation User Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 38790,340554,1136307,NULL,NULL,NULL,0,NULL,NULL 38791,201052,743399,NULL,NULL,NULL,0,NULL,NULL 38792,200933,30037,Student,NULL,NULL,0,NULL,NULL 38793,187231,1279065,Student,NULL,NULL,0,NULL,NULL 38794,278495,841362,NULL,NULL,NULL,0,NULL,NULL 38795,464716,337059,Nice Question Popular Question Notable Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 38796,206170,1438770,NULL,NULL,NULL,0,NULL,NULL 38797,1042494,1152288,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38798,563945,1349755,NULL,NULL,NULL,0,NULL,NULL 38799,1281972,1390350,Teacher Editor,NULL,NULL,0,NULL,NULL 38800,139382,693754,Famous Question Nice Question Yearling Popular Question Famous Question Yearling Investor Popular Question Notable Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38801,293254,651716,NULL,NULL,NULL,0,NULL,NULL 38802,34482,654187,Notable Question Nice Answer Enlightened Revival Popular Question Yearling Good Answer Popular Question Announcer Nice Answer Enlightened Guru Necromancer Popular Question Yearling Guru Taxonomist Nice Answer Enlightened Caucus Nice Answer Nice Question Self-Learner Great Answer Yearling Notable Question Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38803,149349,54083,Popular Question,NULL,NULL,0,NULL,NULL 38804,77836,1345135,Popular Question Popular Question Nice Question Yearling Inquisitive Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38805,899259,199408,NULL,NULL,NULL,0,NULL,NULL 38806,208952,899294,Yearling Caucus Famous Question Notable Question,NULL,NULL,0,NULL,NULL 38807,13711,121402,Guru Citizen Patrol,NULL,NULL,0,NULL,NULL 38808,32867,910313,Yearling Good Answer,NULL,NULL,0,NULL,NULL 38809,373398,1137846,Popular Question,NULL,NULL,0,NULL,NULL 38810,77034,336781,Famous Question Inquisitive Popular Question Yearling Nice Question Notable Question Famous Question Popular Question Notable Question Good Question Yearling Nice Question Good Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 38811,77040,336781,Famous Question Inquisitive Popular Question Yearling Nice Question Notable Question Famous Question Popular Question Notable Question Good Question Yearling Nice Question Good Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 38812,232216,155530,NULL,NULL,NULL,0,NULL,NULL 38813,3323167,535188,NULL,NULL,NULL,0,NULL,NULL 38814,94220,535188,NULL,NULL,NULL,0,NULL,NULL 38815,1296167,463114,NULL,NULL,NULL,0,NULL,NULL 38816,1077204,1296421,NULL,NULL,NULL,0,NULL,NULL 38817,148567,2774,Nice Answer Proofreader Informed Nice Answer Great Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling nokogiri Nice Answer Enlightened Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 38818,46950,142802,NULL,NULL,NULL,0,NULL,NULL 38819,49354,161880,Good Question Famous Question,NULL,NULL,0,NULL,NULL 38820,1195055,1472915,NULL,NULL,NULL,0,NULL,NULL 38821,315998,236249,Popular Question Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 38822,314542,118272,Popular Question,NULL,NULL,0,NULL,NULL 38823,53781,152796,Yearling Notable Question Custodian Custodian Popular Question Revival Yearling Necromancer Nice Answer Popular Question Nice Answer Informed Autobiographer Good Answer Custodian Civic Duty Nice Answer Popular Question Yearling Necromancer Nice Answer Notable Question Good Answer Good Answer Yearling Custodian Guru Popular Question,NULL,NULL,0,NULL,NULL 38824,107670,1267343,Tumbleweed,NULL,NULL,0,NULL,NULL 38825,38346,1484427,Yearling Popular Question,NULL,NULL,0,NULL,NULL 38826,1438762,792808,NULL,NULL,NULL,0,NULL,NULL 38827,817921,99046,Pundit Great Answer Yearling Necromancer Nice Answer Revival Nice Answer Revival Yearling Necromancer c# Nice Answer Notable Question Cleanup Good Answer Nice Answer Yearling Good Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 38828,8788118,1510648,NULL,NULL,NULL,0,NULL,NULL 38829,183994,1510648,NULL,NULL,NULL,0,NULL,NULL 38830,50758,277693,Critic,NULL,NULL,0,NULL,NULL 38831,186286,931746,Notable Question Nice Question Nice Question Notable Question Yearling Excavator Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 38832,813714,1366393,Yearling Popular Question Custodian Promoter Curious Custodian Caucus Caucus Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 38833,459946,1382537,Famous Question,NULL,NULL,0,NULL,NULL 38834,33800,329877,NULL,NULL,NULL,0,NULL,NULL 38835,283501,449185,NULL,NULL,NULL,0,NULL,NULL 38836,310596,707224,NULL,NULL,NULL,0,NULL,NULL 38837,33858,176762,NULL,NULL,NULL,0,NULL,NULL 38838,157708,110740,Popular Question,NULL,NULL,0,NULL,NULL 38839,131274,1152187,Nice Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 38840,111516,894982,Popular Question Nice Question Yearling Popular Question Good Answer Caucus Notable Question Famous Question Nice Answer Enlightened Nice Question Custodian Custodian Yearling Popular Question Popular Question Popular Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38841,1346570,1454813,Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Informed Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 38842,1331977,429068,NULL,NULL,NULL,0,NULL,NULL 38843,80788,1096725,Nice Answer Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38844,397801,100758,Notable Question Great Question Yearling Great Question Notable Question Favorite Question Good Question Popular Question Nice Question Good Question Good Answer Notable Question Nice Question Nice Question Nice Answer Famous Question Yearling Good Answer Famous Question Good Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 38845,54605,1170857,Yearling Nice Answer Caucus Yearling Good Answer Census Yearling Critic,NULL,NULL,0,NULL,NULL 38846,1358202,1249688,Teacher,NULL,NULL,0,NULL,NULL 38847,39004,1024703,Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 38848,190694,208642,Popular Question Yearling Organizer Yearling Mortarboard Yearling Explainer Yearling Custodian Custodian Custodian Enthusiast Informed Autobiographer Nice Answer Good Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 38849,47977,879600,NULL,NULL,NULL,0,NULL,NULL 38850,306808,825555,NULL,NULL,NULL,0,NULL,NULL 38851,641310,288454,NULL,NULL,NULL,0,NULL,NULL 38852,530205,821540,Autobiographer,NULL,NULL,0,NULL,NULL 38853,51256,550361,NULL,NULL,NULL,0,NULL,NULL 38854,232884,749809,Critic Necromancer,NULL,NULL,0,NULL,NULL 38855,6087,143880,Necromancer Yearling Revival Necromancer Revival Good Answer Necromancer Good Answer Necromancer Nice Answer Nice Answer Yearling Good Answer Necromancer Necromancer Nice Answer Good Answer Yearling Revival Good Answer Nice Answer Nice Answer Guru Great Answer Revival,NULL,NULL,1,NULL,How to wait for an open port with netcat bash shell netcat pI trying to do custom dockerfile with jenkins on it would to wait until port 8080 is open instead of doing an ugly sleep 60 with netcat but in not very confident with bash scripts and netcat ppHere is an example of what trying to do ppre code bin bashopened 0while opened do echo Waiting jenkins to launch on 8080 nc vz localhost 8080doneecho Jenkins launched code pre pTo expand on user987339 answer here how to easily wait for port in your terminal ph1waitport function h1pAdd this function to your bashrc setup file ppre codewaitport while nc localhost do sleep done code prepLog out then back in to load bashrc Then run this command to verify that port 3000 has server listening to it ppre code waitport 3000Connection to localhost port 3000 tcp hbci succeeded code prepThis has been validated on macOS It might not work on Fedora CentOS as they lack the code code option for codenetcat code 38856,487963,845888,Popular Question Critic Tumbleweed Yearling Informed Revival Popular Question Citizen Patrol Organizer Popular Question Popular Question Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38857,990901,242129,Notable Question Notable Question Famous Question Famous Question Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38858,899279,1049956,NULL,NULL,NULL,0,NULL,NULL 38859,730192,595309,Nice Question Famous Question Editor Curious Yearling,NULL,NULL,0,NULL,NULL 38860,412009,1352023,NULL,NULL,NULL,0,NULL,NULL 38861,1383676,494041,NULL,NULL,,0,, 38862,215491,1263128,NULL,NULL,NULL,0,NULL,NULL 38863,718320,1116,Nice Answer Enlightened Nice Answer Nice Question Custodian Notable Question Good Question Favorite Question Nice Question Notable Question Nice Answer Notable Question Yearling Popular Question Great Answer sql Notable Question Yearling Nice Answer Good Answer Popular Question Good Answer Guru Good Answer Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38864,265674,1185365,NULL,NULL,NULL,0,NULL,NULL 38865,374244,964813,Revival Popular Question Guru Good Answer Nice Answer Nice Answer Yearling Caucus Constituent Good Answer Nice Answer Popular Question Popular Question Caucus Yearling Good Answer Documentation User Popular Question Caucus Constituent Nice Answer Yearling Pundit,NULL,NULL,0,NULL,NULL 38866,300853,309628,Nice Answer Civic Duty Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38867,353922,1096524,NULL,NULL,NULL,0,NULL,NULL 38868,387863,882381,NULL,NULL,NULL,0,NULL,NULL 38869,388039,230968,NULL,NULL,NULL,0,NULL,NULL 38870,1034956,424045,NULL,NULL,NULL,0,NULL,NULL 38871,273815,887208,NULL,NULL,NULL,0,NULL,NULL 38872,121662,206446,Notable Question Favorite Question Notable Question Nice Question Good Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Great Question Notable Question Good Question Famous Question Notable Question Favorite Question Notable Question Notable Question Notable Question Great Question Famous Question Popular Question Nice Question Nice Question Nice Question Nice Question Favorite Question Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Nice Question Popular Question Famous Question Good Question Popular Question Popular Question Great Question Notable Question Notable Question Famous Question Popular Question Good Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Great Question Famous Question Good Question Nice Question Notable Question Nice Question Famous Question Good Question Popular Question Nice Question Famous Question Famous Question Popular Question Notable Question Famous Question Great Question Good Question Famous Question Famous Question Yearling Good Question Notable Question Famous Question Good Question Nice Question Good Question Great Question Favorite Question Popular Question Famous Question Nice Question Great Question Nice Question Popular Question Good Question Famous Question Good Question Nice Question Nice Question Notable Question Nice Question Favorite Question Nice Question Nice Question Nice Question Notable Question Good Question Famous Question Notable Question Stellar Question Nice Question Famous Question Notable Question Nice Question Yearling Great Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38873,110708,206446,Notable Question Favorite Question Notable Question Nice Question Good Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Great Question Notable Question Good Question Famous Question Notable Question Favorite Question Notable Question Notable Question Notable Question Great Question Famous Question Popular Question Nice Question Nice Question Nice Question Nice Question Favorite Question Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Nice Question Popular Question Famous Question Good Question Popular Question Popular Question Great Question Notable Question Notable Question Famous Question Popular Question Good Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Great Question Famous Question Good Question Nice Question Notable Question Nice Question Famous Question Good Question Popular Question Nice Question Famous Question Famous Question Popular Question Notable Question Famous Question Great Question Good Question Famous Question Famous Question Yearling Good Question Notable Question Famous Question Good Question Nice Question Good Question Great Question Favorite Question Popular Question Famous Question Nice Question Great Question Nice Question Popular Question Good Question Famous Question Good Question Nice Question Nice Question Notable Question Nice Question Favorite Question Nice Question Nice Question Nice Question Notable Question Good Question Famous Question Notable Question Stellar Question Nice Question Famous Question Notable Question Nice Question Yearling Great Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38874,1690792,206446,Notable Question Favorite Question Notable Question Nice Question Good Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Great Question Notable Question Good Question Famous Question Notable Question Favorite Question Notable Question Notable Question Notable Question Great Question Famous Question Popular Question Nice Question Nice Question Nice Question Nice Question Favorite Question Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Nice Question Popular Question Famous Question Good Question Popular Question Popular Question Great Question Notable Question Notable Question Famous Question Popular Question Good Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Great Question Famous Question Good Question Nice Question Notable Question Nice Question Famous Question Good Question Popular Question Nice Question Famous Question Famous Question Popular Question Notable Question Famous Question Great Question Good Question Famous Question Famous Question Yearling Good Question Notable Question Famous Question Good Question Nice Question Good Question Great Question Favorite Question Popular Question Famous Question Nice Question Great Question Nice Question Popular Question Good Question Famous Question Good Question Nice Question Nice Question Notable Question Nice Question Favorite Question Nice Question Nice Question Nice Question Notable Question Good Question Famous Question Notable Question Stellar Question Nice Question Famous Question Notable Question Nice Question Yearling Great Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38875,186617,1248241,NULL,NULL,NULL,0,NULL,NULL 38876,6282124,1143906,NULL,NULL,NULL,0,NULL,NULL 38877,79083,1139963,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38878,185734,602783,NULL,NULL,NULL,0,NULL,NULL 38879,141058,1297885,NULL,NULL,NULL,0,NULL,NULL 38880,316485,433728,NULL,NULL,NULL,0,NULL,NULL 38881,652357,904073,Notable Question Revival Nice Question,NULL,NULL,0,NULL,NULL 38882,675960,761388,Popular Question Notable Question Publicist Yearling Notable Question Popular Question Popular Question Popular Question Nice Question Famous Question Yearling Good Question Popular Question Citizen Patrol Announcer Announcer Yearling Announcer Notable Question Necromancer Taxonomist,NULL,NULL,0,NULL,NULL 38883,73163,402764,Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 38884,619999,809939,NULL,NULL,NULL,0,NULL,NULL 38885,750067,760151,NULL,NULL,NULL,0,NULL,NULL 38886,175814,1184041,NULL,NULL,NULL,0,NULL,NULL 38887,200395,718044,Caucus,NULL,NULL,0,NULL,NULL 38888,17113,887014,NULL,NULL,NULL,0,NULL,NULL 38889,48566,171662,Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Good Question Nice Answer Good Answer Yearling Popular Question Good Question Notable Question Nice Answer Famous Question Nice Question Famous Question Yearling Notable Question Custodian Famous Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 38890,53498,1229661,NULL,NULL,NULL,0,NULL,NULL 38891,170795,156694,NULL,NULL,NULL,0,NULL,NULL 38892,368342,188740,Nice Answer Announcer Popular Question ember.js Popular Question Revival Revival Popular Question Famous Question Announcer Nice Answer Enlightened Nice Question Necromancer Notable Question Revival Notable Question Good Question Popular Question Popular Question Nice Answer Nice Question Popular Question Popular Question Popular Question Nice Answer Necromancer Popular Question Good Answer Necromancer Necromancer Popular Question Necromancer Announcer Popular Question Great Question Revival Popular Question Nice Answer Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Necromancer Popular Question Famous Question Notable Question Nice Question Notable Question Nice Question Nice Answer Nice Question Popular Question Necromancer Notable Question Nice Answer Nice Question Nice Answer Nice Question Necromancer Taxonomist Notable Question Good Question Necromancer Nice Question Good Answer Nice Answer Notable Question Good Question Famous Question Necromancer Announcer Announcer Famous Question Famous Question Notable Question Notable Question Announcer Necromancer jquery Nice Answer Notable Question Notable Question Nice Question Announcer Nice Answer Popular Question Great Answer Announcer Nice Answer Notable Question Yearling Necromancer Popular Question Revival Nice Answer Populist Good Answer Booster Good Question Popular Question Nice Question Notable Question Notable Question Nice Answer Good Question Famous Question Booster Good Question Necromancer Nice Answer Nice Question Popular Question Popular Question Notable Question Pundit Nice Answer Popular Question Announcer Popular Question Yearling Revival Nice Question,NULL,NULL,1,NULL,No devices detected when remote debugging in Chrome Developer Tools from Windows Enterprise to Samsung Galaxy Tab windows remote debugging samsung galaxy pI am having problems with web application on Chrome in href http www samsung com au support model SM P585YZKAXSA rel nofollow noreferrer Samsung Galaxy Tab ppI want to troubleshoot them with Chrome codeDeveloper Tools code ppOn tablets you do not have access to Chrome codeDeveloper Tools code so you need to set up codeRemote Debugging code ppThe process href https developers google com web tools chrome devtools remote debugging rel nofollow noreferrer according to Google official documentation should essentially be pp strong1 strong Install the required driver on the PC so the tablet can be recognised pp strong2 strong Connect the tablet to the PC via USB cable pp strong2 strong On PC go to codeChrome gt Developer Tools gt Menu gt More Tools gt Remote devices code ppThe tablet is not showing up as device in developer tools in chrome on PC pp strongWhat ve Tried strong ppI chatted to Samsung and they said to install href http www samsung com au support smartswitch img Smart Switch PC zip rel nofollow noreferrer Smart Switch PC Setup exe which would install driver so that Android device can be recognised ppAs that didn work followed various post suggestions and installed pulli codeSAMSUNG USB Driver for Mobile Phones zip 15 3MB code from href http developer samsung com galaxy others android usb driver for windows rel nofollow noreferrer here lili codeSDK Platform Tools for Windows 16MB code from href https developer android com studio releases platform tools html rel nofollow noreferrer here lili codesdk tools windows 3859397 132MB code from the bottom of the page href https developer android com studio index html rel nofollow noreferrer here li ulpAll of these contain codeexe code files that don know how to use if double click them they just open and close terminal pp strongDesired Behavior strong ppTo have tablet show as device in Chrome developer tools pTo get my Samsung S7 to connect did the following polliDownload Samsung USB Driver for Windows from here href http developer samsung com galaxy others android usb driver for windows rel noreferrer http developer samsung com galaxy others android usb driver for windows liliInstall the driver liliUninstall the driver It important to do this step as your device won connect until you uninstall Strange know li olpI initially reported this solution in the comments section href https stackoverflow com questions 45560325 no devices detected when remote debugging in chrome developer tools from windows 45560715 comment80586160 45560715 here but didn think it was legitimate solution ve since been able to reproduce this on Windows 10 Pro devices and others have also confirmed 38893,69919,366277,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 38894,191625,25855,Census,NULL,NULL,0,NULL,NULL 38895,3838,233852,Yearling,NULL,NULL,0,NULL,NULL 38896,664429,282464,Supporter,NULL,NULL,0,NULL,NULL 38897,958039,1378668,Announcer,NULL,NULL,0,NULL,NULL 38898,5070852,1378668,Announcer,NULL,NULL,0,NULL,NULL 38899,7293681,1378668,Announcer,NULL,NULL,0,NULL,NULL 38900,7328846,1378668,Announcer,NULL,NULL,0,NULL,NULL 38901,28947,367090,NULL,NULL,NULL,0,NULL,NULL 38902,86141,61130,Yearling Good Question Scholar Yearling Caucus Nice Answer Enlightened Custodian Census Yearling ruby-on-rails,NULL,NULL,0,NULL,NULL 38903,152222,337269,Yearling Good Answer Self-Learner Yearling Nice Answer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38904,291288,216509,Civic Duty Notable Question Revival Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 38905,1406531,489085,NULL,NULL,NULL,0,NULL,NULL 38906,631712,1255402,Guru Necromancer Yearling,NULL,NULL,0,NULL,NULL 38907,938128,969751,Good Question Notable Question Popular Question Great Question Nice Question Famous Question Notable Question Popular Question Nice Question Notable Question Popular Question Yearling Notable Question Good Question Notable Question Nice Question Favorite Question Popular Question Popular Question Good Question Popular Question Popular Question Yearling Favorite Question Famous Question Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 38908,44639,565884,Yearling Critic Yearling Nice Answer Yearling Necromancer Student,NULL,NULL,0,NULL,NULL 38909,2852152,234233,Notable Question Citizen Patrol Custodian Announcer Curious Revival Yearling Necromancer Nice Answer Notable Question Good Question Yearling Announcer Announcer Good Answer Informed Necromancer Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38910,60767,234233,Notable Question Citizen Patrol Custodian Announcer Curious Revival Yearling Necromancer Nice Answer Notable Question Good Question Yearling Announcer Announcer Good Answer Informed Necromancer Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38911,653630,748825,NULL,NULL,NULL,0,NULL,NULL 38912,243135,76505,NULL,NULL,NULL,0,NULL,NULL 38913,890797,264699,NULL,NULL,NULL,0,NULL,NULL 38914,7513898,832170,NULL,NULL,NULL,0,NULL,NULL 38915,50267,241234,Critic Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 38916,1034677,13955,NULL,NULL,NULL,0,NULL,NULL 38917,19161,1786,Guru Notable Question Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Popular Question Nice Answer Great Answer Necromancer Nice Answer Enlightened Necromancer Nice Answer Yearling Notable Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Populist Good Answer Nice Answer Great Answer Guru Yearling Famous Question Notable Question Famous Question Guru Notable Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38918,9536,90882,Nice Answer Enlightened Yearling Announcer Popular Question Yearling Popular Question Necromancer Announcer Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 38919,351542,18528,Good Answer Yearling Nice Answer Nice Answer Enlightened Guru Yearling Great Answer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 38920,909862,108031,NULL,NULL,NULL,0,NULL,NULL 38921,313178,550704,NULL,NULL,NULL,0,NULL,NULL 38922,1514286,521902,Popular Question Yearling,NULL,NULL,0,NULL,NULL 38923,10134611,521902,Popular Question Yearling,NULL,NULL,0,NULL,NULL 38924,45590,1039447,Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 38925,106979,63474,Nice Answer Yearling Populist Disciplined Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38926,720753,686523,Guru Yearling Caucus Constituent Student Caucus Custodian Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 38927,200698,417020,NULL,NULL,NULL,0,NULL,NULL 38928,662509,1182891,Yearling python Explainer Famous Question Caucus Excavator Announcer Yearling Nice Answer Civic Duty Caucus Nice Answer Good Question Peer Pressure Custodian Popular Question Yearling Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 38929,382268,198361,NULL,NULL,NULL,0,NULL,NULL 38930,184820,555610,NULL,NULL,NULL,0,NULL,NULL 38931,79209,882030,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 38932,12055,151577,Yearling Good Answer Yearling Good Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 38933,69831,658053,Notable Question Notable Question Critic Nice Question Yearling Popular Question,NULL,pI know this is an ancient question but you can use codedistutils spawn find executable code This has been href http docs python org release dist module distutils spawn html rel noreferrer documented since python and has existed since python ppre codeimport distutils spawndistutils spawn find executable notepad exe code prepAlso Python now offers href http docs python org dev library shutil html rel noreferrer codeshutil which code make sure to import distutils spawn or follow the from distutils import spawn syntax rather than just import distutils Otherwise it may not be accessible and you will get the above AttributeError even if it is there,0,NULL,NULL 38934,6292,662769,Yearling,NULL,NULL,0,NULL,NULL 38935,457337,407523,Popular Question Yearling Notable Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 38936,370750,267797,Commentator Good Question Yearling,NULL,NULL,0,NULL,NULL 38937,593879,790335,Custodian Good Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 38938,1232355,567332,Revival,NULL,NULL,0,NULL,NULL 38939,554036,352325,Popular Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 38940,196799,913893,Good Answer Yearling,NULL,NULL,0,NULL,NULL 38941,883766,192444,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer multithreading Yearling Nice Answer Enlightened executorservice Caucus Popular Question Great Answer Good Answer Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer java.util.concurrent Caucus Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Caucus Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 38942,63208,145110,Self-Learner,NULL,NULL,0,NULL,NULL 38943,249857,1229890,NULL,NULL,NULL,0,NULL,NULL 38944,69282,293403,Yearling Nice Answer Guru Guru Guru Yearling Nice Answer Great Answer Guru Good Answer Yearling Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 38945,19725,210409,Nice Answer Nice Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 38946,253932,179781,Yearling,NULL,NULL,0,NULL,NULL 38947,3187853,1275512,NULL,NULL,NULL,0,NULL,NULL 38948,20928,55379,Popular Question,NULL,NULL,0,NULL,NULL 38949,305545,102371,Necromancer Guru Excavator Tag Editor Yearling Nice Answer Nice Answer Enlightened Notable Question Caucus Famous Question Good Answer git Custodian Pundit Generalist Good Answer Custodian Custodian Custodian Custodian go Custodian Yearling Necromancer Revival bash Caucus Archaeologist Nice Answer Necromancer Nice Answer Census Caucus Nice Answer Yearling Good Answer Good Answer Revival Great Answer Nice Answer Good Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 38950,139176,251840,Notable Question Popular Question Notable Question Good Question Yearling Notable Question Notable Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Notable Question Favorite Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Famous Question Nice Answer Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38951,121846,1288352,NULL,NULL,NULL,0,NULL,NULL 38952,270257,836003,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 38953,192850,704693,Nice Answer,NULL,NULL,0,NULL,NULL 38954,455752,1288769,Necromancer,NULL,NULL,0,NULL,NULL 38955,4988,1128430,NULL,NULL,NULL,0,NULL,NULL 38956,905356,1287267,NULL,NULL,NULL,0,NULL,NULL 38957,1322214,503877,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 38958,549849,1092471,NULL,NULL,NULL,0,NULL,NULL 38959,161183,839429,Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 38960,1311511,1030331,Nice Question Popular Question Yearling Popular Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 38961,156706,1307718,Nice Answer Popular Question Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 38962,54218,798667,NULL,NULL,NULL,0,NULL,NULL 38963,44227,125407,Notable Question Famous Question Good Answer Necromancer Notable Question Good Answer Yearling Good Answer Good Answer Great Question Nice Answer Necromancer Popular Question Nice Question Nice Answer Revival Nice Answer Notable Question Yearling Necromancer Notable Question Nice Answer Necromancer Good Answer Notable Question Documentation User Nice Answer Nice Answer Famous Question Popular Question Revival Nice Answer Famous Question Good Question Necromancer Popular Question Necromancer Revival Notable Question Yearling Famous Question Revival Nice Answer Enlightened Guru,NULL,pIt seems like you want to href https stackoverflow com 20018118 27581 run openvpn as process in the background while processing its stdout in the foreground ppre codeexec lt lt sudo openvpn config FILE sed Initialization Sequence Completed lt amp cat lt amp amp VPN initialization is now complete and running in the backgroundssh SERVER code preh2Explanation h2pLet break it into pieces polli codeecho lt sudo openvpn config FILE code will print out something like code dev fd63 codeullithe code lt code runs emopenvpn em in the background and liliattaches its stdout to file descriptor which is printed out by codeecho code li ul lili codeexec lt dev fd63 codeulli where em dev fd63 em is the file descriptor printed from step lilithis tells the shell to open the file descriptor em dev fd63 em for reading and lilimake it available at the file descriptor code3 code li ul lili codesed Initialization Sequence Completed lt amp codeullinow we run emsed em in the foreground but make it read from the file descriptor code3 code we just opened lilias soon as emsed em sees that the current line ends with Initialization Sequence Completed it quits the em em part li ul lili codecat lt amp amp codeulli emopenvpn em will keep writing to file descriptor code3 code and eventually block if nothing reads from it lilito prevent that we run emcat em in the background to read the rest of the output li ul li olpThe basic idea is to run codeopenvpn code in the background but capture its output somewhere so that we can run command in the foreground that will block until it reads the magic words Initialization Sequence Completed The above code tries to do it without creating messy temporary files but simpler way might be just to use temporary file Related to this how would stop the original background process openvpn,0,NULL,NULL 38964,226389,707073,NULL,NULL,NULL,0,NULL,NULL 38965,365759,1208107,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 38966,503698,726697,Custodian Informed Caucus Constituent Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 38967,166594,764609,NULL,NULL,NULL,0,NULL,NULL 38968,317696,437268,Yearling,NULL,NULL,0,NULL,NULL 38969,3804990,604557,Popular Question Popular Question Revival Yearling Necromancer Necromancer Nice Answer Necromancer Popular Question Yearling Popular Question Nice Question Nice Answer Nice Answer Notable Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 38970,130552,604557,Popular Question Popular Question Revival Yearling Necromancer Necromancer Nice Answer Necromancer Popular Question Yearling Popular Question Nice Question Nice Answer Nice Answer Notable Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 38971,154380,488373,Necromancer Popular Question Revival Nice Question Custodian Notable Question Yearling Good Question Famous Question Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 38972,203002,1479496,NULL,NULL,NULL,0,NULL,NULL 38973,1816366,594458,Editor Commentator Yearling Revival Yearling Nice Answer Census Critic Excavator Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 38974,295840,514410,NULL,NULL,NULL,0,NULL,NULL 38975,369280,1189947,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 38976,2220075,834378,NULL,NULL,NULL,0,NULL,NULL 38977,1140081,815235,Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 38978,247008,815235,Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 38979,3941,525872,Nice Answer Notable Question Necromancer Good Answer Good Answer Notable Question Popular Question Famous Question Popular Question Nice Question Good Question Disciplined Necromancer Notable Question Good Answer Yearling Nice Question Necromancer Nice Answer Necromancer Announcer Notable Question Announcer Necromancer Great Answer Notable Question Nice Answer Necromancer Announcer Famous Question Good Question Nice Question Popular Question Good Answer Notable Question Popular Question Announcer Popular Question Popular Question Good Question Yearling Revival Revival Notable Question Nice Question Nice Question Notable Question Nice Answer Enlightened Notable Question Necromancer Famous Question Popular Question Necromancer Popular Question Famous Question Famous Question Great Answer Popular Question Popular Question Nice Answer Nice Question Nice Question Nice Answer Nice Question Famous Question Notable Question Nice Answer Yearling,NULL,NULL,1,How do you define custom Error types in Rust error handling rust pI writing function that could return several one of several different errors ppre codefn foo gt Result lt MyError gt code prepI ll probably need to define my own error type to represent such errors presuming it would be an codeenum code of possible errors with some of the codeenum code variants having diagnostic data attached to them ppre codeenum MyError GizmoError WidgetNotFoundError widget name String code prepIs that the most idiomatic way to go about it And how do implement the codeError code trait,NULL 38980,145411,363314,Necromancer,NULL,NULL,0,NULL,NULL 38981,14698,1309185,Critic Yearling,NULL,NULL,0,NULL,NULL 38982,138401,501982,Student Supporter Popular Question Revival,NULL,NULL,0,NULL,NULL 38983,252222,654738,NULL,NULL,NULL,0,NULL,NULL 38984,4018980,654738,NULL,NULL,NULL,0,NULL,NULL 38985,1208031,1083712,NULL,NULL,NULL,0,NULL,NULL 38986,253980,452798,NULL,NULL,NULL,0,NULL,NULL 38987,194865,497186,Custodian Editor,NULL,NULL,0,NULL,NULL 38988,954632,441713,Notable Question,NULL,NULL,0,NULL,NULL 38989,209379,524394,NULL,NULL,NULL,0,NULL,NULL 38990,223476,641742,Good Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 38991,918611,1253449,Commentator Popular Question Caucus Informed Notable Question Revival,NULL,NULL,0,NULL,NULL 38992,377461,191463,Socratic Popular Question Good Question Notable Question Necromancer Nice Question Necromancer Nice Question Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Nice Question Popular Question Nice Question Yearling Notable Question Notable Question Notable Question Nice Question Nice Question Popular Question Notable Question Famous Question Popular Question Nice Answer Necromancer Famous Question Good Answer Famous Question Great Answer Popular Question Notable Question Famous Question Popular Question Nice Question Guru Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Guru Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Great Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 38993,2686258,8178,NULL,NULL,NULL,0,NULL,NULL 38994,187613,718974,NULL,NULL,NULL,0,NULL,NULL 38995,413898,709478,NULL,NULL,NULL,0,NULL,NULL 38996,177646,924186,NULL,NULL,NULL,0,NULL,NULL 38997,106086,481941,Necromancer Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 38998,521879,1134830,Teacher Notable Question Nice Question Famous Question Good Question Yearling Critic,NULL,NULL,0,NULL,NULL 38999,212268,443572,Commentator Curious Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39000,171089,353230,Yearling Nice Answer Enlightened Yearling Critic,NULL,NULL,0,NULL,NULL 39001,241941,1197081,NULL,NULL,NULL,0,NULL,NULL 39002,148182,656103,Necromancer Yearling Nice Answer Curious,NULL,NULL,0,NULL,NULL 39003,429728,597341,NULL,NULL,NULL,0,NULL,NULL 39004,7053286,597341,NULL,NULL,NULL,0,NULL,NULL 39005,833462,163180,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 39006,110,220951,NULL,NULL,NULL,0,NULL,NULL 39007,846254,1000463,Caucus,NULL,NULL,0,NULL,NULL 39008,121766,22428,Revival Necromancer,NULL,NULL,0,NULL,NULL 39009,234072,68588,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 39010,84256,758067,Popular Question Notable Question Yearling Revival Yearling Necromancer Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 39011,211587,891641,Popular Question Commentator Critic Yearling Curious Notable Question,NULL,NULL,0,NULL,NULL 39012,1040828,131691,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 39013,394500,414578,Supporter,NULL,NULL,0,NULL,NULL 39014,235776,492983,Popular Question Yearling,NULL,NULL,0,NULL,NULL 39015,150491,617320,Revival Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 39016,1331119,65600,Nice Answer Yearling Organizer Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39017,898248,1306750,NULL,NULL,NULL,0,NULL,NULL 39018,89418,259368,Yearling Great Answer Yearling Yearling Necromancer Custodian Revival,NULL,NULL,0,NULL,NULL 39019,184918,709984,NULL,NULL,NULL,0,NULL,NULL 39020,441199,319002,Enthusiast Good Answer,NULL,NULL,0,NULL,NULL 39021,87184,106849,Popular Question Yearling Guru Good Answer Good Answer Yearling Good Question Favorite Question Yearling Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39022,470858,694311,NULL,NULL,NULL,0,NULL,NULL 39023,13750,359966,Popular Question,NULL,NULL,0,NULL,NULL 39024,2572,876974,NULL,NULL,NULL,0,NULL,NULL 39025,478789,149390,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39026,69348,901102,Yearling Student Scholar Yearling Necromancer Critic,NULL,NULL,0,NULL,NULL 39027,73327,624855,NULL,NULL,NULL,0,NULL,NULL 39028,1231292,426273,Great Question Necromancer Promoter Yearling Nice Question Famous Question Notable Question Popular Question Notable Question Necromancer Popular Question Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39029,456337,759482,NULL,NULL,NULL,0,NULL,NULL 39030,340049,54999,Yearling Yearling Famous Question Custodian Yearling Caucus Good Question,NULL,NULL,0,NULL,NULL 39031,151171,205696,Popular Question Yearling Great Answer Good Answer Populist Popular Question Yearling Organizer Notable Question Yearling Excavator Necromancer Popular Question Custodian Great Answer Custodian Explainer Tag Editor Quorum Yearling,NULL,pI mixed the solutions from and and got this ppre codeDOT shell command dot gt dev null all ifndef DOT error dot is not available please install graphviz endif dot Tpdf pres pdf pres dot code prepIt works beautifully because command doesn print anything if the executable is not available so the variable DOT never gets defined and you can just check it whenever you want in your code In this example throwing an error but you could do something more useful if you wanted ppIf the variable is available command performs the inexpensive operation of printing the command path defining the DOT variable Just want to warn that this doesn work as part as recipe as ifndef is always evaluated The answer from engineerchuan works better in that regard pI just implemented this and perhaps you can use my approach ppSay we have the following HTML ppre class lang html prettyprint override code lt div id out style overflow auto gt lt div gt code prepThen we can check if it scrolled to the bottom with ppre class lang js prettyprint override codevar out document getElementById out allow 1px inaccuracy by adding 1var isScrolledToBottom out scrollHeight out clientHeight lt out scrollTop code prep href https developer mozilla org en US docs Web API Element scrollHeight rel noreferrer scrollHeight gives you the height of the element including any non visible area due to overflow href https developer mozilla org en US docs Web API Element clientHeight rel noreferrer clientHeight gives you the CSS height or said in another way the actual height of the element Both methods returns the height without codemargin code so you needn worry about that href https developer mozilla org en US docs Web API Element scrollTop rel noreferrer scrollTop gives you the position of the vertical scroll is top and max is the scrollHeight of the element minus the element height itself When using the scrollbar it can be difficult it was in Chrome for me to get the scrollbar all the way down to the bottom so threw in 1px inaccuracy So codeisScrolledToBottom code will be true even if the scrollbar is 1px from the bottom You can set this to whatever feels right to you ppThen it simply matter of setting the scrollTop of the element to the bottom ppre class lang js prettyprint override codeif isScrolledToBottom out scrollTop out scrollHeight out clientHeight code prepI have made fiddle for you to show the concept href http jsfiddle net dotnetCarpenter KpM5j rel noreferrer http jsfiddle net dotnetCarpenter KpM5j ppEDIT Added code snippet to clarify when codeisScrolledToBottom code is codetrue code pp strongStick scrollbar to bottom strongdiv class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst out document getElementById out xD let xD xD setInterval function xD allow 1px inaccuracy by adding xD const isScrolledToBottom out scrollHeight out clientHeight lt out scrollTop xD xD const newElement document createElement div xD xD newElement textContent format Bottom position out scrollHeight out clientHeight Scroll position out scrollTop xD xD out appendChild newElement xD xD scroll to bottom if isScrolledToBottom is true xD if isScrolledToBottom xD out scrollTop out scrollHeight out clientHeight xD xD 500 xD xD function format xD return Array prototype slice call arguments join xD code pre xD pre class snippet code css lang css prettyprint override code out xD height 100px xD code pre xD pre class snippet code html lang html prettyprint override code lt div id out style overflow auto gt lt div gt xD lt gt To be clear We want the scrollbar to stick to the bottom if we have scrolled all the way down If we scroll up then we don want the content to move xD lt gt code pre xD div xD div xD can you provide fsfiddle with your fix don understand the issue with out scrollHeight out clientHeight out scrollTop Are you using padding in your CSS pI just implemented this and perhaps you can use my approach ppSay we have the following HTML ppre class lang html prettyprint override code lt div id out style overflow auto gt lt div gt code prepThen we can check if it scrolled to the bottom with ppre class lang js prettyprint override codevar out document getElementById out allow 1px inaccuracy by adding 1var isScrolledToBottom out scrollHeight out clientHeight lt out scrollTop code prep href https developer mozilla org en US docs Web API Element scrollHeight rel noreferrer scrollHeight gives you the height of the element including any non visible area due to overflow href https developer mozilla org en US docs Web API Element clientHeight rel noreferrer clientHeight gives you the CSS height or said in another way the actual height of the element Both methods returns the height without codemargin code so you needn worry about that href https developer mozilla org en US docs Web API Element scrollTop rel noreferrer scrollTop gives you the position of the vertical scroll is top and max is the scrollHeight of the element minus the element height itself When using the scrollbar it can be difficult it was in Chrome for me to get the scrollbar all the way down to the bottom so threw in 1px inaccuracy So codeisScrolledToBottom code will be true even if the scrollbar is 1px from the bottom You can set this to whatever feels right to you ppThen it simply matter of setting the scrollTop of the element to the bottom ppre class lang js prettyprint override codeif isScrolledToBottom out scrollTop out scrollHeight out clientHeight code prepI have made fiddle for you to show the concept href http jsfiddle net dotnetCarpenter KpM5j rel noreferrer http jsfiddle net dotnetCarpenter KpM5j ppEDIT Added code snippet to clarify when codeisScrolledToBottom code is codetrue code pp strongStick scrollbar to bottom strongdiv class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codeconst out document getElementById out xD let xD xD setInterval function xD allow 1px inaccuracy by adding xD const isScrolledToBottom out scrollHeight out clientHeight lt out scrollTop xD xD const newElement document createElement div xD xD newElement textContent format Bottom position out scrollHeight out clientHeight Scroll position out scrollTop xD xD out appendChild newElement xD xD scroll to bottom if isScrolledToBottom is true xD if isScrolledToBottom xD out scrollTop out scrollHeight out clientHeight xD xD 500 xD xD function format xD return Array prototype slice call arguments join xD code pre xD pre class snippet code css lang css prettyprint override code out xD height 100px xD code pre xD pre class snippet code html lang html prettyprint override code lt div id out style overflow auto gt lt div gt xD lt gt To be clear We want the scrollbar to stick to the bottom if we have scrolled all the way down If we scroll up then we don want the content to move xD lt gt code pre xD div xD div xD sorry but you re confused The OP is asking the overflow div to be scrolled to the bottom if isScrolledToBottom is true That is if the div is scrolled down then keep it scrolled down That is what the next line of code does If isScrolledToBottom is false then we should do nothing which of course is not necessary to spell out in code,0,NULL,NULL 39032,102147,1053112,Yearling Good Question Good Question Civic Duty Good Answer Necromancer Notable Question Nice Answer Nice Answer Caucus Famous Question Yearling Constituent Guru Nice Question Notable Question Revival Nice Answer Reviewer Popular Question Strunk & White Caucus Constituent Custodian Custodian Organizer Notable Question Necromancer Documentation User Yearling Census Good Answer Caucus Constituent Nice Question Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 39033,147923,1165112,Nice Question Popular Question Revival,NULL,NULL,0,NULL,NULL 39034,740292,1509678,NULL,NULL,NULL,0,NULL,NULL 39035,353361,1267368,Self-Learner Necromancer Peer Pressure Yearling,NULL,NULL,0,NULL,NULL 39036,896700,1473202,Teacher Revival,NULL,NULL,0,NULL,NULL 39037,111767,209156,NULL,NULL,NULL,0,NULL,NULL 39038,706687,1488038,NULL,NULL,NULL,0,NULL,NULL 39039,32989,1307703,NULL,NULL,NULL,0,NULL,NULL 39040,706861,1398002,NULL,NULL,NULL,0,NULL,NULL 39041,196749,750660,NULL,NULL,NULL,0,NULL,NULL 39042,9619835,364832,Informed Editor Excavator Autobiographer Census,NULL,NULL,0,NULL,NULL 39043,1338452,364832,Informed Editor Excavator Autobiographer Census,NULL,NULL,0,NULL,NULL 39044,527153,1207777,NULL,NULL,NULL,0,NULL,NULL 39045,156884,152825,Notable Question Notable Question Popular Question Nice Question Popular Question Famous Question Famous Question Famous Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Famous Question Notable Question Famous Question Popular Question Good Question Famous Question Notable Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Nice Question Famous Question Nice Question Notable Question Famous Question Popular Question Good Question Popular Question Notable Question Nice Question Popular Question Good Question Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 39046,1870165,952967,NULL,NULL,NULL,0,NULL,NULL 39047,8562089,952967,NULL,NULL,NULL,0,NULL,NULL 39048,519795,952967,NULL,NULL,NULL,0,NULL,NULL 39049,15636,1040263,NULL,NULL,NULL,0,NULL,NULL 39050,54189,245795,Nice Answer Enlightened Yearling Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Caucus Yearling Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Enlightened Yearling Good Answer Guru Great Answer Guru Nice Answer,NULL,NULL,0,NULL,NULL 39051,280121,152208,Guru Yearling Great Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 39052,556414,106732,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39053,14175,25258,Custodian Documentation Pioneer Yearling Great Answer Custodian Custodian Citizen Patrol Notable Question Yearling Documentation User Critic Yearling,NULL,NULL,0,NULL,NULL 39054,52909,107728,Custodian Yearling Good Question Nice Answer,NULL,NULL,0,NULL,NULL 39055,9385,916186,NULL,NULL,NULL,0,NULL,NULL 39056,31262,96829,NULL,NULL,NULL,0,NULL,NULL 39057,5014136,782972,NULL,NULL,NULL,0,NULL,NULL 39058,108139,782972,NULL,NULL,NULL,0,NULL,NULL 39059,200772,1352457,Yearling Popular Question Student,NULL,NULL,0,NULL,NULL 39060,495283,509746,Nice Answer c# Yearling Yearling Populist Informed Good Answer Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39061,408051,432112,NULL,NULL,NULL,0,NULL,NULL 39062,163649,457531,NULL,NULL,NULL,0,NULL,NULL 39063,678115,603806,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 39064,247814,512352,NULL,NULL,NULL,0,NULL,NULL 39065,444943,400547,Strunk & White Fanatic Necromancer Nice Answer Necromancer Nice Answer Nice Answer Revival Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Yearling Nice Answer Necromancer Good Answer Guru Good Answer Good Answer Nice Answer Nice Answer Caucus Nice Answer Nice Answer Necromancer Guru Census Nice Answer Nice Answer Good Answer async-await Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Caucus Nice Answer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Announcer Nice Answer Good Answer Good Answer Guru Great Answer dictionary Nice Answer Enlightened Good Answer Nice Answer Nice Answer Revival reflection Nice Answer generics Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Great Answer Caucus Good Answer Good Answer Nice Answer Nice Answer Nice Answer Guru Great Answer Nice Answer Enlightened Necromancer Nice Answer Yearling Necromancer Enlightened Nice Answer Nice Answer Revival Good Answer javascript Nice Answer Enlightened Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 39066,37043,590271,NULL,NULL,NULL,0,NULL,NULL 39067,165221,1020965,Autobiographer Popular Question Good Question Famous Question Notable Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 39068,165089,208741,Popular Question,NULL,NULL,0,NULL,NULL 39069,13409,264145,Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 39070,266966,166601,Necromancer Nice Question Yearling Notable Question Informed Nice Answer Excavator Nice Answer Enlightened Autobiographer Yearling Civic Duty Caucus Famous Question Good Question Yearling Popular Question Notable Question Popular Question Yearling Custodian Custodian Good Answer Suffrage Vox Populi Popular Question Yearling Custodian Caucus Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39071,63681,413159,Yearling Nice Answer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 39072,186364,554469,Nice Answer Revival Caucus Popular Question,NULL,NULL,0,NULL,NULL 39073,8181,839626,NULL,NULL,NULL,0,NULL,NULL 39074,370361,630758,Yearling Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 39075,154686,74152,Great Answer Yearling Great Answer Good Answer Great Answer Yearling Tumbleweed Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 39076,883763,513592,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 39077,114237,740465,Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 39078,257391,329026,NULL,NULL,NULL,0,NULL,NULL 39079,190915,222076,NULL,NULL,NULL,0,NULL,NULL 39080,36711,667069,NULL,NULL,NULL,0,NULL,NULL 39081,182389,1087866,Notable Question Nice Answer Enlightened Nice Answer Enlightened ruby-on-rails Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Constituent Yearling Good Answer Nice Answer Great Answer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 39082,266422,6924,Necromancer,NULL,NULL,0,NULL,NULL 39083,25351,232560,Yearling,NULL,NULL,0,NULL,NULL 39084,186639,7589,NULL,NULL,NULL,0,NULL,NULL 39085,193427,349105,NULL,NULL,NULL,0,NULL,NULL 39086,80659,1519690,NULL,NULL,NULL,0,NULL,NULL 39087,351161,921408,NULL,NULL,NULL,0,NULL,NULL 39088,166044,42388,Nice Answer,NULL,NULL,0,NULL,NULL 39089,131551,1401766,Supporter,NULL,NULL,0,NULL,NULL 39090,518421,1499853,Autobiographer Student,NULL,NULL,0,NULL,NULL 39091,314658,557460,Great Answer Yearling Caucus Constituent Custodian Custodian Custodian Custodian Proofreader Documentation User Yearling,NULL,NULL,0,NULL,NULL 39092,120022,291793,Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 39093,520353,14200,Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Custodian Custodian Custodian Custodian Nice Answer Popular Question Yearling Nice Answer Nice Answer Enlightened Notable Question Nice Answer Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39094,168933,18626,Notable Question Notable Question Famous Question Good Answer Nice Question Investor Nice Answer Enlightened Yearling Nice Answer Enlightened Notable Question Nice Answer Enlightened Popular Question Popular Question Yearling Nice Answer Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 39095,26286,24708,Popular Question Notable Question Famous Question Popular Question Notable Question Yearling Popular Question Famous Question Good Question Famous Question Notable Question Notable Question Yearling Notable Question Famous Question Notable Question Popular Question Informed Yearling,NULL,NULL,0,NULL,NULL 39096,132862,425241,NULL,NULL,NULL,0,NULL,NULL 39097,506681,929355,NULL,NULL,NULL,0,NULL,NULL 39098,168634,820266,NULL,NULL,NULL,0,NULL,NULL 39099,433606,1095656,NULL,NULL,NULL,0,NULL,NULL 39100,270144,38239,Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39101,326076,457,Notable Question Nice Answer Nice Answer Enlightened Yearling Excavator Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39102,334901,718078,NULL,NULL,NULL,0,NULL,NULL 39103,204241,246895,Yearling Necromancer Necromancer Announcer Nice Answer Enlightened Yearling Guru Census Reviewer Announcer Nice Answer Nice Answer Enlightened Documentation User Nice Answer Nice Answer Yearling Census Revival Popular Question Nice Answer Good Answer Nice Answer xctest tdd Famous Question Civic Duty Nice Answer Enlightened Nice Answer Revival,NULL,pSelect your target and show Build Phases Then enter the name of the file in the search box and you should see it listed in the Compile Sources phase Double click in the Compiler Flags column for that file and enter code code to turn off all warnings for that file This flag suppresses compiler warnings not linker warnings pSelect your target and show Build Phases Then enter the name of the file in the search box and you should see it listed in the Compile Sources phase Double click in the Compiler Flags column for that file and enter code code to turn off all warnings for that file don know and would like to know Suggest you open question and leave forwarding link here,0,NULL,NULL 39104,890155,1528,Revival Custodian,NULL,NULL,0,NULL,NULL 39105,281748,909616,Supporter Revival,NULL,,0,, 39106,259980,1149774,Necromancer Populist Nice Answer Enlightened Yearling Caucus Revival Caucus Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 39107,487465,1183519,NULL,NULL,NULL,0,NULL,NULL 39108,636966,960127,Popular Question Yearling Nice Answer Enlightened Yearling Notable Question Great Answer Yearling Commentator Good Answer Yearling,NULL,NULL,0,NULL,NULL 39109,74822,5738,Yearling Announcer Popular Question Announcer Popular Question,NULL,pIn Git and later you can checkout new branch ppre codegit checkout lt branch gt code prepEdit files add and commit Then href https git scm com docs git push rel noreferrer push with the code code short for code set upstream code option ppre codegit push origin lt branch gt code prepGit will set up the tracking information during the push Somewhat annoyingly found that git push origin branchname wasn working but that git push set upstream origin branchname did This is with the PoshGit scripts provided with Github for Windows,0,NULL,NULL 39110,765259,700092,NULL,NULL,NULL,0,NULL,NULL 39111,106749,555485,Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question Popular Question Yearling Notable Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39112,210998,1154509,NULL,NULL,NULL,0,NULL,NULL 39113,1758892,1154509,NULL,NULL,NULL,0,NULL,NULL 39114,30849,876987,NULL,NULL,NULL,0,NULL,NULL 39115,430353,434430,NULL,NULL,NULL,0,NULL,NULL 39116,60108,5343,Popular Question Notable Question Famous Question Famous Question Popular Question Nice Answer Notable Question Famous Question Nice Question Notable Question Nice Question Yearling Notable Question Famous Question Famous Question Nice Answer Enlightened Famous Question Nice Answer Notable Question Popular Question Popular Question Great Question Good Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Favorite Question Notable Question Popular Question Nice Question Notable Question Famous Question Yearling Good Question Custodian,NULL,NULL,0,NULL,NULL 39117,65167,10830,Famous Question Guru Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 39118,560542,871666,Yearling,NULL,NULL,0,NULL,NULL 39119,3650067,1497967,Popular Question,NULL,NULL,0,NULL,NULL 39120,426391,1239627,NULL,NULL,NULL,0,NULL,NULL 39121,409051,940089,NULL,NULL,NULL,0,NULL,NULL 39122,120628,453014,Revival Yearling,NULL,NULL,0,NULL,NULL 39123,759080,278899,Taxonomist Yearling Good Question Popular Question Nice Question Notable Question Nice Answer Nice Answer Popular Question Nice Answer Proofreader Notable Question Nice Answer Yearling Notable Question Guru Popular Question Nice Answer Famous Question Custodian Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 39124,413199,1453057,NULL,NULL,NULL,0,NULL,NULL 39125,29393,185739,NULL,NULL,NULL,0,NULL,NULL 39126,91936,1379951,Announcer,NULL,NULL,0,NULL,NULL 39127,72862,1472662,Nice Question,NULL,NULL,0,NULL,NULL 39128,168752,203708,Custodian Popular Question Necromancer Popular Question Revival Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Necromancer Notable Question Inquisitive Good Answer Civic Duty Necromancer Necromancer Popular Question Great Question Nice Answer Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39129,410801,438615,Notable Question Fanatic Famous Question Popular Question Announcer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Popular Question Notable Question Nice Question Popular Question Great Question Popular Question Yearling javascript Notable Question Popular Question Notable Question Good Question Notable Question Popular Question Nice Question Popular Question Revival Famous Question Notable Question Notable Question Popular Question Favorite Question Notable Question Notable Question Notable Question Yearling Good Question Notable Question Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Notable Question Yearling Nice Answer Enlightened Popular Question Nice Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 39130,1506985,1001036,Famous Question,NULL,NULL,0,NULL,NULL 39131,1583291,310939,Yearling Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 39132,3363,1519335,NULL,NULL,NULL,0,NULL,NULL 39133,8777066,1519335,NULL,NULL,NULL,0,NULL,NULL 39134,24231,1349037,Documentation User,NULL,NULL,0,NULL,NULL 39135,414566,1391481,NULL,NULL,NULL,0,NULL,NULL 39136,14472,759971,Yearling Announcer,NULL,NULL,0,NULL,NULL 39137,328519,101886,Yearling Good Answer Citizen Patrol Yearling Necromancer Curious,NULL,NULL,0,NULL,NULL 39138,117479,642743,NULL,NULL,NULL,0,NULL,NULL 39139,295719,989126,Necromancer Nice Answer Yearling Good Answer python Yearling Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 39140,660507,989126,Necromancer Nice Answer Yearling Good Answer python Yearling Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 39141,2976,76142,NULL,NULL,NULL,0,NULL,NULL 39142,91982,24946,Famous Question Investor Nice Answer Nice Question Good Answer Yearling Stellar Question Famous Question Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 39143,348396,1025351,Scholar Notable Question Student Critic,NULL,NULL,0,NULL,NULL 39144,434329,148907,Popular Question Nice Question Yearling Critic Caucus Famous Question Popular Question Caucus Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 39145,199764,661341,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 39146,219140,16047,Custodian Yearling Custodian Organizer Custodian Excavator Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 39147,160666,7634,Necromancer Yearling Good Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 39148,18379,28930,Nice Answer,NULL,NULL,0,NULL,NULL 39149,190750,895531,NULL,NULL,NULL,0,NULL,NULL 39150,12561,218753,NULL,NULL,NULL,0,NULL,NULL 39151,824432,625521,Popular Question Popular Question Notable Question Peer Pressure Yearling Custodian Notable Question Caucus Popular Question Nice Question Notable Question Necromancer Revival Popular Question Nice Question Yearling Notable Question Famous Question Revival Popular Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 39152,204994,1524655,Necromancer Critic Announcer Caucus Caucus,NULL,pYou can do this using heredoc ppgenerate sh ppre code bin sh define parameters which are passed in PORT 1DOMAIN define the template cat lt lt EOFThis is my template Port is PORTDomain is DOMAINEOF code prep strongOutput strong ppre code generate sh 8080 domain comThis is my template Port is 8080Domain is domain com code prepor save it to file ppre code generate sh 8080 domain com gt result code pre You might use https unix stackexchange com 88492 to redirect output to new file inside the script,0,NULL,NULL 39153,320506,519800,NULL,NULL,NULL,0,NULL,NULL 39154,2963508,215464,NULL,NULL,NULL,0,NULL,NULL 39155,90655,215464,NULL,NULL,NULL,0,NULL,NULL 39156,887926,1074311,Caucus Popular Question,NULL,NULL,0,NULL,NULL 39157,282164,889545,Necromancer,NULL,NULL,0,NULL,NULL 39158,582623,1269132,Nice Answer,NULL,NULL,0,NULL,NULL 39159,8248530,622786,Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 39160,98328,183665,Good Question Popular Question Famous Question Notable Question Yearling Popular Question Notable Question Nice Answer Self-Learner Yearling Nice Answer Caucus Popular Question Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 39161,30254,347057,NULL,NULL,NULL,0,NULL,NULL 39162,174849,836086,Student Good Answer Census Famous Question Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 39163,387796,197289,Notable Question Nice Answer Enlightened Yearling Custodian Custodian Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 39164,432711,486199,Popular Question Census,NULL,NULL,0,NULL,NULL 39165,914202,111091,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 39166,8577173,1361956,NULL,NULL,NULL,0,NULL,NULL 39167,328661,261120,Announcer,NULL,NULL,0,NULL,NULL 39168,502242,231091,NULL,NULL,NULL,0,NULL,NULL 39169,88131,786263,NULL,NULL,NULL,0,NULL,NULL 39170,258511,375157,Notable Question Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 39171,11686,1199387,Popular Question Yearling Custodian Popular Question Nice Question Nice Question Good Answer Famous Question Promoter Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 39172,431835,1522,NULL,NULL,NULL,0,NULL,NULL 39173,427576,548046,Popular Question Notable Question Popular Question Self-Learner Peer Pressure Notable Question Notable Question Yearling Popular Question Necromancer Disciplined Famous Question Popular Question Good Answer Necromancer Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Nice Answer Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 39174,112110,468069,NULL,NULL,NULL,0,NULL,NULL 39175,180567,300830,Necromancer Nice Answer Yearling Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39176,899087,1312400,Teacher,NULL,NULL,0,NULL,NULL 39177,494784,485866,NULL,NULL,NULL,0,NULL,NULL 39178,262069,1338867,Teacher,NULL,NULL,0,NULL,NULL 39179,1015573,222053,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 39180,353042,334582,Informed Scholar Yearling Organizer Popular Question Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 39181,888056,1047426,Nice Answer Enlightened Yearling Nice Answer Enlightened Famous Question Yearling Caucus Yearling c# Custodian Custodian,NULL,NULL,0,NULL,NULL 39182,631265,723870,NULL,NULL,NULL,0,NULL,NULL 39183,1088775,858816,Nice Answer Enlightened Good Question Yearling Critic,NULL,NULL,0,NULL,NULL 39184,165042,858816,Nice Answer Enlightened Good Question Yearling Critic,NULL,NULL,0,NULL,NULL 39185,23036,1037023,Notable Question Yearling,NULL,NULL,0,NULL,NULL 39186,28221,310930,Yearling Promoter Benefactor Excavator Popular Question Favorite Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 39187,186167,799486,Notable Question Self-Learner Nice Answer Enlightened Yearling Caucus Popular Question Popular Question Notable Question Nice Question Civic Duty Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39188,6858,800380,Yearling Necromancer Famous Question Commentator,NULL,NULL,0,NULL,NULL 39189,235441,409971,Famous Question Notable Question Yearling Good Question Popular Question Necromancer Popular Question Famous Question Nice Question Yearling Good Question Famous Question Yearling Excavator Good Question Notable Question,NULL,NULL,0,NULL,NULL 39190,263967,136241,NULL,NULL,NULL,0,NULL,NULL 39191,221249,1459844,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 39192,595082,608532,NULL,NULL,NULL,0,NULL,NULL 39193,109583,942614,NULL,NULL,NULL,0,NULL,NULL 39194,69441,493664,Nice Answer Popular Question Yearling Guru Revival,NULL,NULL,0,NULL,NULL 39195,1509560,844702,Famous Question Necromancer Notable Question Famous Question Revival Popular Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 39196,418662,675256,NULL,NULL,NULL,0,NULL,NULL 39197,226292,84880,Yearling Good Answer Yearling Nice Answer Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 39198,32582,146400,Famous Question Famous Question Nice Answer Famous Question Yearling Nice Question Popular Question Good Question Notable Question Notable Question Yearling Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 39199,233986,243157,Yearling Revival Necromancer Popular Question Revival Yearling Famous Question Yearling Nice Answer Notable Question Guru Necromancer,NULL,NULL,0,NULL,NULL 39200,140306,243157,Yearling Revival Necromancer Popular Question Revival Yearling Famous Question Yearling Nice Answer Notable Question Guru Necromancer,NULL,NULL,0,NULL,NULL 39201,266742,800357,Notable Question,NULL,NULL,0,NULL,NULL 39202,59633,394051,Necromancer Popular Question Notable Question Good Answer Yearling Nice Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39203,124695,27406,Guru Yearling Excavator Good Answer Yearling Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 39204,159718,1299128,Popular Question Caucus Constituent Announcer Notable Question Census Caucus Constituent Yearling Excavator Yearling Nice Question,NULL,NULL,0,NULL,NULL 39205,82186,676990,NULL,NULL,NULL,0,NULL,NULL 39206,44899,845307,Census,NULL,NULL,0,NULL,NULL 39207,207336,771740,Popular Question Notable Question Yearling Necromancer Nice Question Popular Question Notable Question Notable Question Necromancer Good Question Yearling Famous Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 39208,597857,829979,Curious Notable Question Self-Learner Nice Question Commentator Yearling Popular Question Necromancer Caucus,NULL,NULL,0,NULL,NULL 39209,81122,416860,Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 39210,196848,1003844,NULL,NULL,NULL,0,NULL,NULL 39211,202376,936067,Nice Question Critic Notable Question Yearling Promoter Good Question,NULL,NULL,0,NULL,NULL 39212,201636,936067,Nice Question Critic Notable Question Yearling Promoter Good Question,NULL,NULL,0,NULL,NULL 39213,119052,214742,Popular Question Popular Question Yearling Nice Question Civic Duty Self-Learner Caucus Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Yearling Nice Question Popular Question Popular Question Notable Question Popular Question Good Question Inquisitive Nice Answer Yearling,NULL,NULL,0,NULL,NULL 39214,64915,1029499,NULL,NULL,NULL,0,NULL,NULL 39215,1023667,1210376,Supporter Popular Question,NULL,NULL,0,NULL,NULL 39216,8830,196139,NULL,NULL,NULL,0,NULL,NULL 39217,74300,669916,NULL,NULL,NULL,0,NULL,NULL 39218,130865,135197,NULL,NULL,NULL,0,NULL,NULL 39219,614689,470297,NULL,NULL,NULL,0,NULL,NULL 39220,686,6760,Nice Answer Enlightened Enlightened Nice Answer reactjs Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Guru Nice Answer Great Answer Populist Nice Answer Enlightened Guru Nice Answer Enlightened Guru Good Answer Good Answer Guru Guru Nice Answer Good Answer Good Answer Nice Answer Good Answer Generalist Good Answer Good Answer Guru Good Answer Guru Great Answer Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Yearling Guru Guru Good Answer Census Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Great Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 39221,294839,558691,NULL,NULL,NULL,0,NULL,NULL 39222,237432,489719,NULL,NULL,NULL,0,NULL,NULL 39223,323852,489719,NULL,NULL,NULL,0,NULL,NULL 39224,314,1496727,NULL,NULL,NULL,0,NULL,NULL 39225,173148,477865,Notable Question Famous Question Nice Question Nice Question Famous Question Nice Question Good Question Notable Question Favorite Question Nice Answer Popular Question Notable Question Popular Question Good Question Notable Question Yearling Nice Question Popular Question Popular Question Nice Question Famous Question Famous Question Famous Question Famous Question Famous Question Famous Question Notable Question Popular Question Great Question Notable Question Caucus Nice Question Stellar Question Yearling Favorite Question Popular Question Popular Question Nice Question Notable Question Good Question Notable Question Good Question Famous Question Great Question Good Question Nice Question Notable Question Good Answer Notable Question Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 39226,87518,23341,Good Question Popular Question Popular Question Nice Answer Notable Question Great Question Popular Question Famous Question Good Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Nice Answer Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question Famous Question Notable Question Notable Question Famous Question Good Question Yearling Nice Question Famous Question Popular Question Nice Question Favorite Question Great Question Custodian Nice Question Famous Question Nice Question Revival Popular Question Popular Question Necromancer Notable Question Nice Question Popular Question Yearling Notable Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 39227,347362,1333072,NULL,NULL,NULL,0,NULL,NULL 39228,26232,753359,NULL,NULL,NULL,0,NULL,NULL 39229,522660,242016,Necromancer,NULL,NULL,0,NULL,NULL 39230,760882,1208140,Scholar Revival Autobiographer,NULL,NULL,0,NULL,NULL 39231,105227,449714,NULL,NULL,NULL,0,NULL,NULL 39232,3476918,1257593,NULL,NULL,NULL,0,NULL,NULL 39233,111879,340659,Notable Question,NULL,NULL,0,NULL,NULL 39234,24444,51247,Popular Question Critic Documentation User Yearling,NULL,NULL,0,NULL,NULL 39235,688935,462594,NULL,NULL,NULL,0,NULL,NULL 39236,156365,435153,NULL,NULL,NULL,0,NULL,NULL 39237,437731,672411,NULL,NULL,NULL,0,NULL,NULL 39238,1343049,460044,NULL,NULL,NULL,0,NULL,NULL 39239,313815,1374624,Student Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 39240,869268,1539551,NULL,NULL,NULL,0,NULL,NULL 39241,108022,390103,NULL,NULL,NULL,0,NULL,NULL 39242,69175,374482,Yearling,NULL,NULL,0,NULL,NULL 39243,154216,979371,NULL,NULL,NULL,0,NULL,NULL 39244,54980,281145,NULL,NULL,NULL,0,NULL,NULL 39245,221206,321233,NULL,NULL,NULL,0,NULL,NULL 39246,4633,135043,Yearling Nice Question Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 39247,1189702,74802,NULL,NULL,NULL,0,NULL,NULL 39248,217992,896285,Enthusiast Caucus Yearling Tumbleweed Student Scholar Critic,NULL,NULL,0,NULL,NULL 39249,583143,1044210,Notable Question,NULL,NULL,0,NULL,NULL 39250,2219249,1044210,Notable Question,NULL,NULL,0,NULL,NULL 39251,124562,1194277,NULL,NULL,NULL,0,NULL,NULL 39252,1883904,799187,Popular Question,NULL,NULL,0,NULL,NULL 39253,126851,466413,NULL,NULL,NULL,0,NULL,NULL 39254,418007,93922,Yearling Announcer Yearling Announcer Good Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39255,665184,916451,Great Answer Popular Question Yearling Popular Question Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39256,188023,988634,NULL,NULL,NULL,0,NULL,NULL 39257,745917,486793,NULL,NULL,NULL,0,NULL,NULL 39258,3579,1139169,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39259,69190,857959,Good Answer Excavator Nice Answer Yearling Custodian Good Answer Yearling org-mode Documentation User Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Guru,NULL,NULL,0,NULL,NULL 39260,718913,465120,Yearling Scholar Commentator,NULL,NULL,0,NULL,NULL 39261,3504,439839,NULL,NULL,NULL,0,NULL,NULL 39262,382338,706555,Supporter Critic Necromancer Scholar,NULL,NULL,0,NULL,NULL 39263,84745,679030,NULL,NULL,NULL,0,NULL,NULL 39264,824679,962095,Popular Question Commentator Custodian Yearling Necromancer,NULL,NULL,0,NULL,NULL 39265,238698,1277481,Informed Popular Question Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 39266,294745,448287,Necromancer Nice Answer actionscript-3 Necromancer Good Answer Yearling Good Answer Caucus Populist Announcer Nice Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 39267,241445,284956,NULL,NULL,NULL,0,NULL,NULL 39268,112964,1266801,NULL,NULL,NULL,0,NULL,NULL 39269,157732,610788,Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 39270,331156,1013591,NULL,NULL,NULL,0,NULL,NULL 39271,1034216,1466778,Supporter Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39272,1511022,1168220,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 39273,261622,865942,NULL,NULL,NULL,0,NULL,NULL 39274,581885,1122664,Popular Question Self-Learner Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 39275,1192663,952516,NULL,NULL,NULL,0,NULL,NULL 39276,377584,742594,Informed Autobiographer Editor Teacher Supporter Citizen Patrol Commentator Organizer Critic Yearling Yearling Caucus Census Census Caucus,NULL,NULL,0,NULL,NULL 39277,435482,530965,NULL,NULL,NULL,0,NULL,NULL 39278,349894,487810,Yearling Good Answer,NULL,NULL,0,NULL,NULL 39279,26031,605323,Notable Question,NULL,NULL,0,NULL,NULL 39280,62678,453185,Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 39281,521176,702986,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 39282,564718,203723,Good Question Taxonomist Enthusiast Popular Question Yearling Popular Question Great Answer Yearling Census Yearling,NULL,NULL,0,NULL,NULL 39283,33526,496423,NULL,NULL,NULL,0,NULL,NULL 39284,399898,702459,NULL,NULL,NULL,0,NULL,NULL 39285,297261,181247,NULL,NULL,NULL,0,NULL,NULL 39286,39999,1330654,NULL,NULL,NULL,0,NULL,NULL 39287,32104,91029,Announcer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 39288,491513,33758,Yearling,NULL,NULL,0,NULL,NULL 39289,556341,642547,Popular Question,NULL,NULL,0,NULL,NULL 39290,67511,367236,Nice Question Yearling Caucus Guru,NULL,NULL,0,NULL,NULL 39291,162005,664515,Necromancer,NULL,NULL,0,NULL,NULL 39292,168400,340464,NULL,NULL,NULL,0,NULL,NULL 39293,2182288,340464,NULL,NULL,NULL,0,NULL,NULL 39294,92987,1205758,Necromancer Nice Answer Tumbleweed Commentator Student Yearling,NULL,pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre Why does the implementation allow the WKUserContentController instance to leak Or does it get GC if the web view is dead and there are no more registered javascript message handlers pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre Answered my own question WKUserContentController does not leak once its handlers are all deregistered,0,NULL,NULL 39295,34879,179897,NULL,NULL,NULL,0,NULL,NULL 39296,83514,183567,NULL,NULL,NULL,0,NULL,NULL 39297,1051690,171562,Good Answer Great Answer Yearling Nice Answer objective-c Caucus Yearling Pundit Yearling,NULL,NULL,0,NULL,NULL 39298,69543,336905,Nice Answer Popular Question Popular Question Famous Question Popular Question Nice Answer Enlightened Yearling Necromancer Revival Popular Question Notable Question Good Answer Popular Question Famous Question Popular Question Good Answer Yearling Announcer Announcer Popular Question Notable Question Good Answer Famous Question Notable Question Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Question Necromancer Good Answer,NULL,NULL,0,NULL,NULL 39299,62983,565827,Nice Answer Yearling Good Answer Yearling Good Answer Yearling Yearling Great Answer Good Answer,NULL,NULL,0,NULL,NULL 39300,148961,140932,Nice Answer Enlightened Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 39301,612203,559923,Nice Answer Editor Census,NULL,NULL,0,NULL,NULL 39302,248517,1183436,NULL,NULL,NULL,0,NULL,NULL 39303,241460,786814,Yearling Great Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 39304,83329,430560,Tumbleweed Nice Question Nice Answer Nice Answer Famous Question Good Answer Necromancer Yearling Nice Answer Popular Question Nice Question Census Nice Question Pundit Necromancer Good Answer Yearling Nice Question Revival Nice Answer Custodian Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 39305,73259,307106,Necromancer Yearling Good Question Nice Answer Nice Answer Popular Question Nice Question Popular Question Good Question Popular Question Taxonomist Famous Question Stellar Question Yearling Nice Answer Enlightened Good Answer Necromancer Revival Popular Question Famous Question Notable Question Necromancer Revival Nice Question Inquisitive Yearling Popular Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 39306,35184,34046,Notable Question,NULL,NULL,0,NULL,NULL 39307,28984,153184,Guru Nice Answer Necromancer Yearling Informed Caucus Constituent Explainer Proofreader html Yearling Revival Nice Answer Enlightened Announcer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 39308,35921,659555,NULL,NULL,NULL,0,NULL,NULL 39309,306107,1531544,NULL,NULL,NULL,0,NULL,NULL 39310,323889,773292,NULL,NULL,NULL,0,NULL,NULL 39311,206415,1529618,Popular Question Yearling,NULL,NULL,0,NULL,NULL 39312,149720,932867,Popular Question,NULL,NULL,0,NULL,NULL 39313,5515,38378,NULL,NULL,NULL,0,NULL,NULL 39314,150430,1033871,NULL,NULL,NULL,0,NULL,NULL 39315,178008,717423,Critic Nice Answer Yearling Commentator Talkative Organizer Census Informed Caucus Yearling,NULL,NULL,0,NULL,NULL 39316,354724,1391124,Good Question Yearling,NULL,NULL,0,NULL,NULL 39317,2062671,1365014,Altruist Yearling Excavator Famous Question Popular Question Popular Question Tag Editor Documentation User Popular Question Famous Question Nice Answer Yearling Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39318,172719,775663,Critic Yearling,NULL,NULL,0,NULL,NULL 39319,216199,313323,Critic Popular Question Civic Duty Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 39320,212267,783848,Popular Question Popular Question Famous Question Notable Question Yearling Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Question Nice Question Famous Question Yearling Popular Question Notable Question Notable Question Famous Question Good Question Popular Question Notable Question Famous Question Custodian Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Good Question Popular Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39321,138852,1329611,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39322,888409,582853,NULL,NULL,NULL,0,NULL,NULL 39323,604426,81065,NULL,NULL,NULL,0,NULL,NULL 39324,604427,81065,NULL,NULL,NULL,0,NULL,NULL 39325,348580,321281,Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 39326,53749,431880,Nice Question Notable Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Guru Yearling Popular Question Notable Question Nice Answer Good Question Nice Question Popular Question Yearling Popular Question Famous Question Nice Answer Nice Answer Good Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 39327,176898,668613,Yearling Notable Question Nice Answer Enlightened Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 39328,124425,230294,Revival Revival Yearling Necromancer Caucus Yearling Nice Answer Nice Answer Revival Necromancer Yearling,NULL,pOur example project has two build targets HelloWorld app and Helper app We make emcomponent package em for each and combine them into emproduct archive em ppA emcomponent package em contains payload to be installed by the OS Installer Although component package can be installed on its own it is typically incorporated into emproduct archive em ph2Our tools href http developer apple com library mac documentation Darwin Reference Manpages man1 pkgbuild html rel nofollow noreferrer pkgbuild href https developer apple com library mac documentation Darwin Reference ManPages man1 productbuild html rel nofollow noreferrer productbuild and href https developer apple com library mac documentation Darwin Reference ManPages man1 pkgutil html rel nofollow noreferrer pkgutil h2pAfter successful Build and Archive open BUILT PRODUCTS DIR in the Terminal ppre code cd Library Developer Xcode DerivedData InstallationBuildProductsLocation pkgbuild analyze root HelloWorld app HelloWorldAppComponents plist pkgbuild analyze root Helper app HelperAppComponents plist code prepThis give us the component plist you find the value description in the href http developer apple com library mac documentation Darwin Reference Manpages man1 pkgbuild html rel nofollow noreferrer Component Property List section empkgbuild root em generates the emcomponent packages em if you don need to change any of the default properties you can omit the em component plist em parameter in the following command pp emproductbuild synthesize em results in href https developer apple com library mac documentation DeveloperTools Reference DistributionDefinitionRef Chapters Introduction html apple ref doc uid TP40005370 CH1 DontLinkElementID 16 rel nofollow noreferrer Distribution Definition ppre code pkgbuild root HelloWorld app component plist HelloWorldAppComponents plist HelloWorld pkg pkgbuild root Helper app component plist HelperAppComponents plist Helper pkg productbuild synthesize package HelloWorld pkg package Helper pkg Distribution xml code prepIn the href https developer apple com library mac documentation DeveloperTools Reference DistributionDefinitionRef Chapters Introduction html apple ref doc uid TP40005370 CH1 DontLinkElementID 16 rel nofollow noreferrer Distribution xml you can change things like title background welcome readme license and so on You turn your emcomponent packages em and distribution definition with this command into emproduct archive em ppre code productbuild distribution Distribution xml package path Installer pkg code prepI recommend to take look at href http apple com itunes download rel nofollow noreferrer iTunes Installers Distribution xml to see what is possible You can extract Install iTunes pkg with ppre code pkgutil expand Install iTunes pkg Install iTunes code preh2Lets put it together h2pI usually have folder named Package in my project which includes things like Distribution xml component plists resources and scripts ppAdd emRun Script Build Phase em named Generate Package which is set to emRun script only when installing em ppre codeVERSION defaults read BUILT PRODUCTS DIR FULL PRODUCT NAME Contents Info CFBundleVersion PACKAGE NAME echo PRODUCT NAME sed TMP1 ARCHIVE BUILT PRODUCTS DIR PACKAGE NAME tmp1 pkg TMP2 ARCHIVE BUILT PRODUCTS DIR PACKAGE NAME tmp2 TMP3 ARCHIVE BUILT PRODUCTS DIR PACKAGE NAME tmp3 pkg ARCHIVE FILENAME BUILT PRODUCTS DIR PACKAGE NAME pkg pkgbuild root INSTALL ROOT component plist Package HelloWorldAppComponents plist scripts Package Scripts identifier com test pkg HelloWorld version VERSION install location BUILT PRODUCTS DIR HelloWorld pkg pkgbuild root BUILT PRODUCTS DIR Helper app component plist Package HelperAppComponents plist identifier com test pkg Helper version VERSION install location BUILT PRODUCTS DIR Helper pkg productbuild distribution Package Distribution xml package path BUILT PRODUCTS DIR resources Package Resources TMP1 ARCHIVE pkgutil expand TMP1 ARCHIVE TMP2 ARCHIVE Patches and Workaroundspkgutil flatten TMP2 ARCHIVE TMP3 ARCHIVE productsign sign Developer ID Installer John Doe TMP3 ARCHIVE ARCHIVE FILENAME code prepIf you don have to change the package after it generated with emproductbuild em you could get rid of the codepkgutil expand code and codepkgutil flatten code steps Also you could use the em sign em paramenter on emproductbuild em instead of running emproductsign em ph2Sign an OS Installer h2pPackages are signed with the emDeveloper ID Installer em certificate which you can download from href https developer apple com account mac certificate rel nofollow noreferrer Developer Certificate Utility ppThey signing is done with the code sign Developer ID Installer John Doe code parameter of empkgbuild em emproductbuild em or emproductsign em ppNote that if you are going to create signed emproduct archive em using productbuild there is no reason to sign the emcomponent packages em pp img src https stack imgur com 57yTq png alt Developer Certificate Utility ph2All the way Copy Package into Xcode Archive h2pTo copy something into the Xcode Archive we can use the emRun Script Build Phase em For this we need to use Scheme Action ppEdit Scheme and expand Archive Then click post actions and add emNew Run Script Action em ppIn Xcode ppre code bin bashPACKAGES ARCHIVE PATH Packages PACKAGE NAME echo PRODUCT NAME sed ARCHIVE FILENAME PACKAGE NAME pkg PKG OBJROOT BuildProductsPath CONFIGURATION ARCHIVE FILENAME if PKG then mkdir PACKAGES cp PKG PACKAGES fi code prepIn Xcode use this value for codePKG code instead ppre codePKG OBJROOT ArchiveIntermediates TARGET NAME BuildProductsPath CONFIGURATION ARCHIVE FILENAME code prepIn case your version control doesn store Xcode Scheme information suggest to add this as shell script to your project so you can simple restore the action by dragging the script from the workspace into the post action ph2Scripting h2pThere are two different kinds of scripting href https developer apple com library mac documentation DeveloperTools Reference InstallerJavaScriptRef index html apple ref doc uid TP40005137 rel nofollow noreferrer JavaScript in Distribution Definition Files and Shell Scripts ppThe best documentation about Shell Scripts found in href http sudre free fr Stuff PackageMaker Howto html rel nofollow noreferrer WhiteBox PackageMaker How to but read this with caution because it refers to the old package format ph2Additional Reading h2ulli href http sudre free fr Stuff Ivanhoe FLAT html rel nofollow noreferrer Flat Package Format The missing documentation lili href http simx me technonova tips packagemaker and installer html rel nofollow noreferrer Installer Problems and Solutions lili href http managingosx wordpress com 2012 07 05 stupid tricks with pkgbuild rel nofollow noreferrer Stupid tricks with pkgbuild lili href https macops ca flat packages persisting obsolescence rel nofollow noreferrer persisting obsolescence li ulh2Known Issues and Workarounds h2pDestination Select Pane ppThe user is presented with the destination select option with only single choice Install for all users of this computer The option appears visually selected but the user needs to click on it in order to proceed with the installation causing some confusion pp img src https stack imgur com bUMya png alt Example showing the installer bug ppApples Documentation recommends to use code lt domains enable anywhere gt code but this triggers the new more buggy Destination Select Pane which Apple doesn use in any of their Packages ppUsing the deprecate code lt options rootVolumeOnly true gt code give you the old Destination Select Pane img src https stack imgur com GwGFs png alt Example showing old Destination Select Pane phrpYou want to install items into the current user’s home folder ppShort answer DO NOT TRY IT ppLong answer REALLY DO NOT TRY IT Read href http simx me technonova tips packagemaker and installer html rel nofollow noreferrer Installer Problems and Solutions You know what did even after reading this was stupid enough to try it Telling myself sure that they fixed the issues in 10 or 10 ppFirst of all saw from time to time the above mentioned Destination Select Pane Bug That should have stopped me but ignored it If you don want to spend the week after you released your software answering support mails that they have to click once the nice blue selection DO NOT use this ppYou are now thinking that your users are smart enough to figure the panel out aren you Well here is another thing about home folder installation THEY DON WORK ppI tested it for two weeks on around 10 different machines with different OS versions and what not and it never failed So shipped it Within an hour of the release heart back from users who just couldn install it The logs hinted to permission issues you are not gonna be able to fix ppSo let repeat it one more time We do not use the Installer for home folder installations phrpRTFD for Welcome Read me License and Conclusion is not accepted by codeproductbuild code ppInstaller supported since the beginning RTFD files to make pretty Welcome screens with images but productbuild doesn accept them ppWorkarounds Use dummy rtf file and replace it in the package by after codeproductbuild code is done ppNote You can also have Retina images inside the RTFD file Use multi image tiff files for this codetiffutil cat Welcome tif Welcome 2x tif out FinalWelcome tif code More href http sudre free fr Stuff Installer Unreleased Notes 10 Retina html rel nofollow noreferrer details phrpStarting an application when the installation is done with emBundlePostInstallScriptPath em script ppre code bin bashLOGGED IN USER ID id USER if COMMAND LINE INSTALL then bin launchctl asuser LOGGED IN USER ID usr bin open PATH OR BUNDLE IDfiexit code prepIt is important to run the app as logged in user not as the installer user This is done with emlaunchctl asuser uid path em Also we only run it when it is not command line installation done with eminstaller em tool or emApple Remote Desktop em phr pkgbuild root HelloWorld app is wrong assuming that app is an actual app bundle pkgbuild operates on destination root folder that CONTAINS bundle generated by the xcode tool chain So the argument to pkgbuild is the path to the containing folder of the bundle we want to package Failing to get this right results in package that contains just the app contents folder It won install as an actual app bundle The giveaway is in the component plist If that doesn contain RootRelativeBundlePath entry specifying the app bundle then you have screwed up pI reckon this is either straight out bug or an as yet undocumented API change logged this as bug 27666426 and can see now that it is being flagged as an open duplicate 27668895 ppNote that of 10 12 Beta code drawWithBox toContext code gets called in place of the now deprecated code drawWithBox code Note that it is also necessary to use the passed in context for all drawing ppUPDATE ppHowever things do not seem that simple with the 10 12 now that it is released find that my PDF view printing which is driven off of code drawWithBox code on 10 11 and code drawWithBox toContext code on 10 12 is broken ppStepping through the assembler can see that 10 12 when printing now calls code drawWithBox inContext code not code drawWithBox toContext code or code drawWithBox code as was the case on 10 11 It would seem that the codeinContext code selector has been href http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html rel nofollow around while ppIt would seem that the only solution that works on 10 10 12 for both screen and print renders is to use the undocumented code drawWithBox inContext code sorry don use annotations just draw directly onto the view Have you reviewed how skim https sourceforge net projects skim app handles annotations know they had some issues on 10 12 pI reckon this is either straight out bug or an as yet undocumented API change logged this as bug 27666426 and can see now that it is being flagged as an open duplicate 27668895 ppNote that of 10 12 Beta code drawWithBox toContext code gets called in place of the now deprecated code drawWithBox code Note that it is also necessary to use the passed in context for all drawing ppUPDATE ppHowever things do not seem that simple with the 10 12 now that it is released find that my PDF view printing which is driven off of code drawWithBox code on 10 11 and code drawWithBox toContext code on 10 12 is broken ppStepping through the assembler can see that 10 12 when printing now calls code drawWithBox inContext code not code drawWithBox toContext code or code drawWithBox code as was the case on 10 11 It would seem that the codeinContext code selector has been href http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html rel nofollow around while ppIt would seem that the only solution that works on 10 10 12 for both screen and print renders is to use the undocumented code drawWithBox inContext code There is new PDFAnnotation method instancetype initWithDictionary NSDictionary dictionary forPage PDFPage page Might be worth checking out pI reckon this is either straight out bug or an as yet undocumented API change logged this as bug 27666426 and can see now that it is being flagged as an open duplicate 27668895 ppNote that of 10 12 Beta code drawWithBox toContext code gets called in place of the now deprecated code drawWithBox code Note that it is also necessary to use the passed in context for all drawing ppUPDATE ppHowever things do not seem that simple with the 10 12 now that it is released find that my PDF view printing which is driven off of code drawWithBox code on 10 11 and code drawWithBox toContext code on 10 12 is broken ppStepping through the assembler can see that 10 12 when printing now calls code drawWithBox inContext code not code drawWithBox toContext code or code drawWithBox code as was the case on 10 11 It would seem that the codeinContext code selector has been href http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html rel nofollow around while ppIt would seem that the only solution that works on 10 10 12 for both screen and print renders is to use the undocumented code drawWithBox inContext code Check out the updates above as well as http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html pI reckon this is either straight out bug or an as yet undocumented API change logged this as bug 27666426 and can see now that it is being flagged as an open duplicate 27668895 ppNote that of 10 12 Beta code drawWithBox toContext code gets called in place of the now deprecated code drawWithBox code Note that it is also necessary to use the passed in context for all drawing ppUPDATE ppHowever things do not seem that simple with the 10 12 now that it is released find that my PDF view printing which is driven off of code drawWithBox code on 10 11 and code drawWithBox toContext code on 10 12 is broken ppStepping through the assembler can see that 10 12 when printing now calls code drawWithBox inContext code not code drawWithBox toContext code or code drawWithBox code as was the case on 10 11 It would seem that the codeinContext code selector has been href http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html rel nofollow around while ppIt would seem that the only solution that works on 10 10 12 for both screen and print renders is to use the undocumented code drawWithBox inContext code See the header info in PDFKit PDFAnnotation don think it will resolve the issue,1,NULL,Displaying pdf files using the PDFKit interface cocoa pdf macos sierra pdfview pdf annotations pI am working on Mac OS 10 12 and have an application to display pdf files using the PDFKit interface But encountered the following strongissues strong pblockquote pSet pdf document to PDFView in original OS OS10 11 there will invoke PDFView drawPage function but in OS10 12 the function is not invoked codePDFView can draw pdf annotation in OS10 12 code blockquotepSolution to the above will be appreciated pI reckon this is either straight out bug or an as yet undocumented API change logged this as bug 27666426 and can see now that it is being flagged as an open duplicate 27668895 ppNote that of 10 12 Beta code drawWithBox toContext code gets called in place of the now deprecated code drawWithBox code Note that it is also necessary to use the passed in context for all drawing ppUPDATE ppHowever things do not seem that simple with the 10 12 now that it is released find that my PDF view printing which is driven off of code drawWithBox code on 10 11 and code drawWithBox toContext code on 10 12 is broken ppStepping through the assembler can see that 10 12 when printing now calls code drawWithBox inContext code not code drawWithBox toContext code or code drawWithBox code as was the case on 10 11 It would seem that the codeinContext code selector has been href http www cocoabuilder com archive cocoa 178803 pdfmarkupannotations not showing when drawing pdfpage html rel nofollow around while ppIt would seem that the only solution that works on 10 10 12 for both screen and print renders is to use the undocumented code drawWithBox inContext code 39329,233563,882250,Notable Question Popular Question Informed Autobiographer Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 39330,447606,364511,NULL,NULL,NULL,0,NULL,NULL 39331,458449,297449,NULL,NULL,NULL,0,NULL,NULL 39332,33774,852697,NULL,NULL,NULL,0,NULL,NULL 39333,46153,627180,NULL,NULL,NULL,0,NULL,NULL 39334,57020,147129,Nice Answer Necromancer Good Answer Nice Answer Nice Answer Civic Duty Suffrage Vox Populi Yearling Nice Answer Notable Question Guru Nice Question Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 39335,40011,399,Yearling Good Answer Custodian Custodian Tag Editor Excavator Guru Yearling Census Announcer Yearling,NULL,NULL,0,NULL,NULL 39336,586247,778161,Commentator Tumbleweed,NULL,NULL,0,NULL,NULL 39337,154418,485327,NULL,NULL,NULL,0,NULL,NULL 39338,743459,1267367,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39339,526728,1144714,NULL,NULL,NULL,0,NULL,NULL 39340,449949,959772,Notable Question,NULL,NULL,0,NULL,NULL 39341,301158,412355,NULL,NULL,NULL,0,NULL,NULL 39342,811144,549263,NULL,NULL,NULL,0,NULL,NULL 39343,7109,296777,Notable Question,NULL,NULL,0,NULL,NULL 39344,3580924,1377037,Inquisitive Self-Learner Yearling Revival Nice Question Yearling Nice Question Popular Question Citizen Patrol Yearling Popular Question Informed Caucus Popular Question Popular Question Famous Question Notable Question Popular Question Caucus Custodian Custodian Yearling Popular Question Autobiographer Custodian Notable Question Notable Question Good Question Caucus Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39345,43180,275357,NULL,NULL,NULL,0,NULL,NULL 39346,161015,1565932,Scholar Student,NULL,NULL,0,NULL,NULL 39347,68593,843365,Notable Question Excavator Caucus Yearling Popular Question Caucus Civic Duty Popular Question Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 39348,159149,849150,Editor Teacher Necromancer Nice Answer Yearling Supporter Critic Good Answer Yearling Yearling Caucus Yearling Populist Yearling Great Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 39349,1326005,798464,Scholar,NULL,NULL,0,NULL,NULL 39350,3488096,798464,Scholar,NULL,NULL,0,NULL,NULL 39351,1046489,639602,NULL,NULL,NULL,0,NULL,NULL 39352,457721,1489461,NULL,NULL,NULL,0,NULL,NULL 39353,291084,575770,NULL,NULL,NULL,0,NULL,NULL 39354,92423,1441189,NULL,NULL,NULL,0,NULL,NULL 39355,1504993,1217570,NULL,NULL,NULL,0,NULL,NULL 39356,22620,1564278,NULL,NULL,NULL,0,NULL,NULL 39357,270416,169370,Good Answer Yearling,NULL,NULL,0,NULL,NULL 39358,20706,1143386,NULL,NULL,NULL,0,NULL,NULL 39359,35766,325018,Revival Commentator,NULL,NULL,0,NULL,NULL 39360,200735,25372,Notable Question Yearling Good Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39361,614388,338714,Yearling Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Famous Question Nice Question Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 39362,44168,203715,NULL,NULL,NULL,0,NULL,NULL 39363,3045,326250,Famous Question Custodian Good Question Yearling Nice Answer Popular Question Popular Question Popular Question Nice Question Nice Question Nice Answer Yearling Popular Question Good Question Famous Question Popular Question Yearling Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 39364,629096,562883,Yearling Commentator Critic Informed Notable Question Revival Announcer Necromancer Caucus Custodian Yearling Nice Answer Necromancer Nice Answer Necromancer Custodian Self-Learner Revival Yearling Citizen Patrol Curious Popular Question Caucus Constituent Popular Question Famous Question Necromancer Yearling Necromancer Notable Question Good Answer,NULL,strongUpdated answer strong using codeasync code codeawait code leads to cleaner code Old code below ppI ve successfully solved this problem by combining the following elements pulliMock out the promise and make it resolve immediately liliMake the test asynchronous by marking the test function codeasync code liliAfter simulating the click wait until the next href https stackoverflow com questions 25915634 difference between microtask and macrotask within an event loop context macrotask to give the promise time to resolve li ulpIn your example that might look like this ppre code Mock the promise we re testingglobal doSomethingWithAPromise gt Promise resolve Note that our test is an async functionit displays the promise text after click of the button async gt wrapper find promiseBtn simulate click await tick expect wrapper find promiseText text toEqual there is text Helper function returns promise that resolves after all other promise mocks even if they are chained like Promise resolve then Technically this is designed to resolve on the next macrotaskfunction tick return new Promise resolve gt setTimeout resolve code prepEnzyme codeupdate code is neither sufficient nor needed when using this method because Promises never resolve in the same tick they are created by design For very detailed explanation of what is going on here see href https stackoverflow com questions 43202658 why does my test finish before my enzyme simulated event synchronous event han this question pp strongOriginal answer strong same logic but slightly less pretty Use Node href https stackoverflow com questions 15349733 setimmediate vs nexttick codesetImmediate code to defer the test until the next tick which is when the promise will resolve Then call Jest href https facebook github io jest docs asynchronous html rel noreferrer codedone code to finish the test asynchronously ppre codeglobal doSomethingWithAPromise gt Promise resolve it displays the promise text after click of the button done gt wrapper find promiseBtn simulate click setImmediate gt expect wrapper find promiseText text toEqual there is text done code prepThis isn as nice because you ll get big nested callbacks if you have to wait for more than one promise setImmediate won work unless the promise is resolved right away So you probably want to mock it,1,NULL,Testing with React Jest and Enzyme when simulated clicks call function that calls promise asynchronous reactjs promise jestjs enzyme ulliReact v15 liliJest v12 liliEnzyme v2 li ulpI trying to figure out how to test component that calls promise in function invoked by click was expecting Jest coderunAllTicks code function to help me out here but it doesn seem to be executing the promise ppComponent ppre codeimport React from react import Promise from bluebird function doSomethingWithAPromise return new Promise resolve gt setTimeout gt resolve 50 export default class AsyncTest extends React Component constructor props super props this state promiseText timeoutText this setTextWithPromise this setTextWithPromise bind this this setTextWithTimeout this setTextWithTimeout bind this setTextWithPromise return doSomethingWithAPromise then gt this setState promiseText there is text setTextWithTimeout setTimeout gt this setState timeoutText there is text 50 render return lt div gt lt div id promiseText gt this state promiseText lt div gt lt button id promiseBtn onClick this setTextWithPromise gt Promise lt button gt lt div id timeoutText gt this state timeoutText lt div gt lt button id timeoutBtn onClick this setTextWithTimeout gt Timeout lt button gt lt div gt code prepAnd the tests ppre codeimport AsyncTest from async import shallow from enzyme import React from react jest unmock async describe async test js gt let wrapper beforeEach gt wrapper shallow lt AsyncTest gt FAIL it displays the promise text after click of the button gt wrapper find promiseBtn simulate click jest runAllTicks jest runAllTimers wrapper update expect wrapper find promiseText text toEqual there is text PASS it displays the timeout text after click of the button gt wrapper find timeoutBtn simulate click jest runAllTimers wrapper update expect wrapper find timeoutText text toEqual there is text code pre strongUpdated answer strong using codeasync code codeawait code leads to cleaner code Old code below ppI ve successfully solved this problem by combining the following elements pulliMock out the promise and make it resolve immediately liliMake the test asynchronous by marking the test function codeasync code liliAfter simulating the click wait until the next href https stackoverflow com questions 25915634 difference between microtask and macrotask within an event loop context macrotask to give the promise time to resolve li ulpIn your example that might look like this ppre code Mock the promise we re testingglobal doSomethingWithAPromise gt Promise resolve Note that our test is an async functionit displays the promise text after click of the button async gt wrapper find promiseBtn simulate click await tick expect wrapper find promiseText text toEqual there is text Helper function returns promise that resolves after all other promise mocks even if they are chained like Promise resolve then Technically this is designed to resolve on the next macrotaskfunction tick return new Promise resolve gt setTimeout resolve code prepEnzyme codeupdate code is neither sufficient nor needed when using this method because Promises never resolve in the same tick they are created by design For very detailed explanation of what is going on here see href https stackoverflow com questions 43202658 why does my test finish before my enzyme simulated event synchronous event han this question pp strongOriginal answer strong same logic but slightly less pretty Use Node href https stackoverflow com questions 15349733 setimmediate vs nexttick codesetImmediate code to defer the test until the next tick which is when the promise will resolve Then call Jest href https facebook github io jest docs asynchronous html rel noreferrer codedone code to finish the test asynchronously ppre codeglobal doSomethingWithAPromise gt Promise resolve it displays the promise text after click of the button done gt wrapper find promiseBtn simulate click setImmediate gt expect wrapper find promiseText text toEqual there is text done code prepThis isn as nice because you ll get big nested callbacks if you have to wait for more than one promise 39365,890278,851124,NULL,NULL,NULL,0,NULL,NULL 39366,80777,316088,Notable Question Necromancer Popular Question Caucus Self-Learner Nice Answer Yearling Custodian Caucus Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 39367,53394,948913,Yearling Student Scholar,NULL,NULL,0,NULL,NULL 39368,90566,596196,Necromancer Supporter,NULL,NULL,0,NULL,NULL 39369,1122903,1202195,NULL,NULL,NULL,0,NULL,NULL 39370,338873,905268,NULL,NULL,NULL,0,NULL,NULL 39371,10096812,905268,NULL,NULL,NULL,0,NULL,NULL 39372,302716,261677,Yearling Famous Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Yearling Guru Yearling Favorite Question Guru Good Answer,NULL,NULL,0,NULL,NULL 39373,241287,311403,Tumbleweed Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Inquisitive Citizen Patrol Custodian Informed Caucus Excavator Notable Question Popular Question Popular Question Revival Yearling Popular Question Popular Question Popular Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 39374,105196,491902,NULL,NULL,NULL,0,NULL,NULL 39375,463979,587647,Nice Answer,NULL,NULL,0,NULL,NULL 39376,238767,502591,NULL,NULL,NULL,0,NULL,NULL 39377,7689657,59180,Yearling Great Question Favorite Question Good Question Yearling Necromancer Yearling Good Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 39378,1262,145396,NULL,NULL,NULL,0,NULL,NULL 39379,473901,228044,NULL,NULL,NULL,0,NULL,NULL 39380,304101,1141467,NULL,NULL,NULL,0,NULL,NULL 39381,3531938,1184514,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39382,425898,1184514,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39383,298881,4647,NULL,NULL,NULL,0,NULL,NULL 39384,65018,604126,NULL,NULL,NULL,0,NULL,NULL 39385,111370,265697,Yearling,NULL,NULL,0,NULL,NULL 39386,413045,1058854,Popular Question,NULL,NULL,0,NULL,NULL 39387,449608,513895,NULL,NULL,NULL,0,NULL,NULL 39388,12312,223917,Revival Yearling,NULL,NULL,0,NULL,NULL 39389,156687,938730,Critic Editor Commentator Yearling Informed Documentation Beta Yearling Census Yearling Custodian Documentation User,NULL,NULL,0,NULL,NULL 39390,1612908,389737,NULL,NULL,NULL,0,NULL,NULL 39391,1350769,705625,NULL,NULL,NULL,0,NULL,NULL 39392,6937740,705625,NULL,NULL,NULL,0,NULL,NULL 39393,27734,831493,NULL,NULL,NULL,0,NULL,NULL 39394,142742,334737,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 39395,1110177,746356,Yearling Nice Answer Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 39396,7378571,1508093,Supporter,NULL,NULL,0,NULL,NULL 39397,190625,1283897,Notable Question,NULL,NULL,0,NULL,NULL 39398,4745112,1283897,Notable Question,NULL,NULL,0,NULL,NULL 39399,420742,1185180,Yearling Popular Question Famous Question Guru Caucus Constituent Proofreader Custodian Custodian Yearling Census Documentation User Announcer Popular Question Census Yearling ruby-on-rails Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39400,7062853,1185180,Yearling Popular Question Famous Question Guru Caucus Constituent Proofreader Custodian Custodian Yearling Census Documentation User Announcer Popular Question Census Yearling ruby-on-rails Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39401,9818,93175,Custodian Tag Editor Inquisitive Famous Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Great Answer Popular Question Yearling Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 39402,1119101,434587,Necromancer,NULL,NULL,0,NULL,NULL 39403,490990,304276,Guru,NULL,NULL,0,NULL,NULL 39404,213109,127422,Notable Question Nice Question Nice Question Yearling Notable Question Notable Question Yearling Necromancer Good Question Custodian Necromancer Announcer Nice Answer Caucus Yearling Necromancer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 39405,259605,427625,Nice Question Famous Question Good Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39406,522711,965888,NULL,NULL,NULL,0,NULL,NULL 39407,1226316,1138288,NULL,NULL,NULL,0,NULL,NULL 39408,339019,562906,Revival Yearling Necromancer Good Answer Announcer Revival Nice Answer Nice Answer Nice Answer Popular Question Popular Question Great Answer Yearling Guru Nice Answer Enlightened Necromancer Popular Question Necromancer Good Answer Announcer Necromancer Nice Answer Yearling Popular Question Nice Answer Announcer Announcer Nice Answer Announcer Good Answer Announcer Announcer Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 39409,456455,290665,Notable Question,NULL,NULL,0,NULL,NULL 39410,757521,213922,NULL,NULL,NULL,0,NULL,NULL 39411,608338,747843,NULL,NULL,NULL,0,NULL,NULL 39412,35699,507869,Caucus Constituent,NULL,NULL,0,NULL,NULL 39413,167299,218956,Guru Guru Good Answer Guru Good Answer Yearling Guru Notable Question Notable Question Custodian Custodian Custodian Custodian Famous Question Good Answer Yearling Great Answer Notable Question Guru Nice Answer Enlightened Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39414,4947,340036,NULL,NULL,NULL,0,NULL,NULL 39415,208908,1206212,NULL,NULL,NULL,0,NULL,NULL 39416,705491,241204,android Nice Answer Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39417,6405151,388117,NULL,NULL,NULL,0,NULL,NULL 39418,151585,1363724,NULL,NULL,NULL,0,NULL,NULL 39419,113976,5,Nice Answer Popular Question Nice Question Nice Answer Nice Answer Guru Great Answer Good Question Great Question Yearling Nice Question Popular Question Nice Answer Not a Robot Notable Question Great Answer Yearling Nice Answer Stellar Question Notable Question Nice Answer Good Answer Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 39420,325420,321551,NULL,NULL,NULL,0,NULL,NULL 39421,32305,268801,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 39422,147821,369232,NULL,NULL,NULL,0,NULL,NULL 39423,76164,583349,Editor Excavator Census Census,NULL,NULL,0,NULL,NULL 39424,436390,241495,Famous Question Great Answer Famous Question Yearling Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 39425,270609,869254,NULL,NULL,NULL,0,NULL,NULL 39426,1427217,318293,Famous Question Good Question Yearling Nice Answer Notable Question Yearling Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39427,454746,1124549,NULL,NULL,NULL,0,NULL,NULL 39428,467545,1517850,NULL,NULL,NULL,0,NULL,NULL 39429,26594,915427,NULL,NULL,NULL,0,NULL,NULL 39430,165287,55497,NULL,NULL,NULL,0,NULL,NULL 39431,130646,566062,NULL,NULL,NULL,0,NULL,NULL 39432,2488413,217872,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39433,1812442,786204,NULL,NULL,NULL,0,NULL,NULL 39434,362129,786204,NULL,NULL,NULL,0,NULL,NULL 39435,571991,663476,Yearling Guru Good Answer Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer,NULL,NULL,0,NULL,NULL 39436,203969,531031,NULL,NULL,NULL,0,NULL,NULL 39437,885112,674080,NULL,NULL,NULL,0,NULL,NULL 39438,62342,372,Popular Question Informed Yearling Good Answer Caucus Nice Answer Nice Answer Notable Question Good Answer Caucus Yearling Nice Answer Announcer Nice Answer Enlightened Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39439,783905,267565,Civic Duty,NULL,NULL,0,NULL,NULL 39440,677262,291892,Autobiographer Popular Question Informed,NULL,NULL,0,NULL,NULL 39441,70549,434470,Critic,NULL,NULL,0,NULL,NULL 39442,136985,150851,Popular Question Popular Question Nice Question Nice Answer Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Nice Answer Revival Notable Question Popular Question Census Notable Question Taxonomist Popular Question Yearling Popular Question Great Answer Necromancer Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 39443,390974,945342,NULL,NULL,NULL,0,NULL,NULL 39444,430609,1437973,NULL,NULL,NULL,0,NULL,NULL 39445,21036,719588,NULL,NULL,NULL,0,NULL,NULL 39446,979152,354101,Necromancer Yearling Popular Question Good Question Nice Answer Popular Question Notable Question Custodian Custodian Citizen Patrol Popular Question Excavator,NULL,NULL,0,NULL,NULL 39447,285578,99919,Yearling Notable Question Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 39448,567692,242560,Yearling,NULL,NULL,0,NULL,NULL 39449,10142587,85283,Notable Question,NULL,NULL,0,NULL,NULL 39450,186745,85283,Notable Question,NULL,NULL,0,NULL,NULL 39451,457690,911899,NULL,NULL,NULL,0,NULL,NULL 39452,259021,11052,Guru Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39453,103611,827404,NULL,NULL,NULL,0,NULL,NULL 39454,501342,1196558,NULL,NULL,NULL,0,NULL,NULL 39455,921171,570030,Yearling,NULL,NULL,0,NULL,NULL 39456,62588,231804,Commentator,NULL,NULL,0,NULL,NULL 39457,1326902,1073936,NULL,NULL,NULL,0,NULL,NULL 39458,1028089,93587,Census,NULL,NULL,0,NULL,NULL 39459,1665587,34030,Yearling Supporter,NULL,NULL,0,NULL,NULL 39460,17165,901592,Supporter Enthusiast Documentation User,NULL,NULL,0,NULL,NULL 39461,855294,572615,Popular Question,NULL,NULL,0,NULL,NULL 39462,90111,196164,NULL,NULL,NULL,0,NULL,NULL 39463,311024,232206,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 39464,438477,885027,Yearling Yearling Notable Question Yearling Teacher,NULL,NULL,0,NULL,NULL 39465,96408,361337,NULL,NULL,NULL,0,NULL,NULL 39466,23245,736190,Popular Question Popular Question Self-Learner Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39467,166085,854407,Teacher,NULL,NULL,0,NULL,NULL 39468,775337,1067452,Popular Question,NULL,NULL,0,NULL,NULL 39469,330273,12854,Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39470,228929,1533739,Notable Question,NULL,NULL,0,NULL,NULL 39471,284724,1344544,Yearling Good Answer Yearling Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 39472,290561,171506,NULL,NULL,NULL,0,NULL,NULL 39473,3111887,576697,NULL,NULL,NULL,0,NULL,NULL 39474,164068,576697,NULL,NULL,NULL,0,NULL,NULL 39475,691267,1216535,Famous Question Editor Teacher Notable Question,NULL,NULL,0,NULL,NULL 39476,264888,12887,Pundit Necromancer Yearling Nice Answer Necromancer Nice Answer Nice Answer Revival Informed Necromancer Great Answer Yearling Nice Answer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 39477,840431,834628,Popular Question,NULL,NULL,0,NULL,NULL 39478,563310,179928,Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 39479,789934,1392533,Nice Question Notable Question Yearling Nice Answer Census Good Question Yearling Custodian Custodian Custodian Proofreader Reviewer Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 39480,51697,884706,Nice Question,NULL,NULL,0,NULL,NULL 39481,70351,275085,Tumbleweed Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 39482,537977,1351530,Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 39483,44503,479973,NULL,NULL,NULL,0,NULL,NULL 39484,581000,521493,Student Scholar Civic Duty Revival Commentator Necromancer Yearling Caucus Revival Necromancer Popular Question Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 39485,521931,237917,Taxonomist Announcer Nice Answer Popular Question Caucus Popular Question Yearling Archaeologist Popular Question Nice Answer Announcer Announcer Nice Answer Yearling Census Caucus Constituent Notable Question Notable Question Necromancer Good Answer,NULL,pYou need to lift the non generic codeIEnumerable code to an codeIEnumerable lt string gt code It has been suggested that you use codeOfType code but that is filtering method What you re doing is the equivalent of cast for which there is the codeCast code operator ppre codevar fields RequestFields Cast lt string gt code prepAs Frans pointed out this only provides access to the keys You would still need to index into the collection for the values Here is an extension method to extract codeKeyValuePair codes from the codeNameValueCollection code ppre codepublic static IEnumerable lt KeyValuePair lt string string gt gt ToPairs this NameValueCollection collection if collection null throw new ArgumentNullException collection return collection Cast lt string gt Select key gt new KeyValuePair lt string string gt key collection key code prep strongEdit strong In response to Bartelink request here is how to access the full set of values for each key using codeToLookup code ppre codepublic static ILookup lt string string gt ToLookup this NameValueCollection collection if collection null throw new ArgumentNullException collection var pairs from key in collection Cast lt String gt from value in collection GetValues key select new key value return pairs ToLookup pair gt pair key pair gt pair value code pre the Linq expression in ToLookup can be written as collection Caststring SelectMany key collection GetValues key key value new key value If you want lambdas,0,NULL,NULL 39486,139343,545395,NULL,NULL,NULL,0,NULL,NULL 39487,462113,399596,Notable Question,NULL,NULL,0,NULL,NULL 39488,4438616,399596,Notable Question,NULL,NULL,0,NULL,NULL 39489,179943,27546,Custodian Custodian Citizen Patrol Informed Great Answer Yearling,NULL,NULL,0,NULL,NULL 39490,1426058,1044360,NULL,NULL,NULL,0,NULL,NULL 39491,695300,164014,NULL,NULL,NULL,0,NULL,NULL 39492,417198,720319,NULL,NULL,NULL,0,NULL,NULL 39493,68516,715386,Notable Question Nice Question Teacher Good Question Popular Question Famous Question Good Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 39494,356103,1398851,Yearling Commentator Critic Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 39495,852099,1305620,NULL,NULL,NULL,0,NULL,NULL 39496,193647,176876,Yearling Documentation User,NULL,NULL,0,NULL,NULL 39497,1210506,23316,NULL,NULL,NULL,0,NULL,NULL 39498,36623,25538,Great Answer Necromancer Yearling Notable Question Good Answer Great Answer Popular Question Good Answer Yearling Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 39499,80961,308995,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39500,30924,1547012,NULL,NULL,NULL,0,NULL,NULL 39501,2289,125361,Famous Question Good Answer Good Question Good Answer Popular Question Notable Question Nice Question Yearling Nice Answer Great Question Good Question Yearling Nice Answer Enlightened Famous Question Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 39502,22419,67009,Yearling Nice Question Famous Question Nice Answer Popular Question Popular Question Yearling Yearling Civic Duty,NULL,NULL,0,NULL,NULL 39503,469624,1382559,Popular Question Notable Question Caucus Yearling Popular Question Famous Question Nice Question Teacher Notable Question Yearling,NULL,NULL,0,NULL,NULL 39504,5020374,36948,NULL,NULL,NULL,0,NULL,NULL 39505,274594,1306699,Commentator Necromancer Critic,NULL,NULL,0,NULL,NULL 39506,115295,595846,NULL,NULL,NULL,0,NULL,NULL 39507,841632,253491,NULL,NULL,NULL,0,NULL,NULL 39508,7077,583831,NULL,NULL,NULL,0,NULL,NULL 39509,85217,583831,NULL,NULL,NULL,0,NULL,NULL 39510,55744,1424690,Necromancer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39511,128895,464872,Popular Question Popular Question Yearling Notable Question Favorite Question Yearling Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 39512,52539,637359,NULL,NULL,NULL,0,NULL,NULL 39513,176627,1212601,NULL,NULL,NULL,0,NULL,NULL 39514,70125,1425257,Yearling Custodian Nice Question Popular Question Popular Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 39515,250259,1105713,NULL,NULL,NULL,0,NULL,NULL 39516,46896,1323481,Nice Question Peer Pressure Inquisitive Yearling Popular Question Popular Question Notable Question Caucus Popular Question Critic Yearling Notable Question Popular Question Self-Learner Caucus Popular Question Famous Question Excavator Yearling Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question Nice Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39517,90444,645645,NULL,NULL,NULL,0,NULL,NULL 39518,31965,455083,NULL,NULL,NULL,0,NULL,NULL 39519,45141,1154701,NULL,NULL,NULL,0,NULL,NULL 39520,236549,1083070,NULL,NULL,NULL,0,NULL,NULL 39521,260745,755892,NULL,NULL,NULL,0,NULL,NULL 39522,264416,612086,Notable Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 39523,645183,217037,NULL,NULL,NULL,0,NULL,NULL 39524,247655,721483,NULL,NULL,NULL,0,NULL,NULL 39525,4890667,732090,NULL,NULL,NULL,0,NULL,NULL 39526,3596250,692528,Popular Question Yearling Announcer Self-Learner Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Necromancer Popular Question Nice Answer Popular Question Notable Question Announcer Nice Question Popular Question Notable Question Nice Question Notable Question Nice Question Popular Question Revival Notable Question Nice Question Popular Question Popular Question Nice Answer Enlightened Notable Question Yearling Notable Question Popular Question Famous Question Popular Question Nice Answer Notable Question Civic Duty Inquisitive Nice Question Good Question Good Answer,NULL,NULL,0,NULL,NULL 39527,73144,884268,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39528,898289,1564538,NULL,NULL,NULL,0,NULL,NULL 39529,276134,670712,NULL,NULL,NULL,0,NULL,NULL 39530,147836,171436,Announcer Nice Answer Enlightened Yearling Announcer Nice Answer Caucus Nice Answer Enlightened Constituent Great Answer Nice Answer Enlightened Announcer Caucus Yearling Documentation User Census Caucus Constituent Nice Answer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 39531,90661,17559,Informed,NULL,NULL,0,NULL,NULL 39532,17456,235411,ruby-on-rails Good Answer Yearling Necromancer Revival Good Answer Nice Answer Enlightened Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 39533,181469,354044,NULL,NULL,NULL,0,NULL,NULL 39534,990798,1003446,NULL,NULL,NULL,0,NULL,NULL 39535,236102,857242,NULL,NULL,NULL,0,NULL,NULL 39536,421464,558899,Necromancer Yearling,NULL,NULL,0,NULL,NULL 39537,139293,51582,Popular Question Yearling,NULL,NULL,0,NULL,NULL 39538,78053,67304,Yearling Caucus Constituent Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 39539,576735,638167,Notable Question Yearling Caucus Notable Question Nice Question,NULL,NULL,0,NULL,NULL 39540,10513,68333,Yearling Tumbleweed Great Question Yearling,NULL,pHere is how would do it href http play golang org 1eND0es4Nf rel noreferrer playground ppre codeimport crypto rand fmt func main buf make byte err rand Read buf if err nil fmt Println error err return Set the local bit buf fmt Printf Random MAC address 02x 02x 02x 02x 02x 02x buf buf buf buf buf buf code prepNote the setting of the local bit which means it won clash with any globally administered addresses href http en wikipedia org wiki MAC address rel noreferrer see wikipedia for more info buf buf 0xfe Set local bit ensure unicast address In most cases you ll want to set the lowest bit to zero ensuring that you have unicast address rather than multicast address,0,NULL,NULL 39541,1354026,68333,Yearling Tumbleweed Great Question Yearling,NULL,pHere is how would do it href http play golang org 1eND0es4Nf rel noreferrer playground ppre codeimport crypto rand fmt func main buf make byte err rand Read buf if err nil fmt Println error err return Set the local bit buf fmt Printf Random MAC address 02x 02x 02x 02x 02x 02x buf buf buf buf buf buf code prepNote the setting of the local bit which means it won clash with any globally administered addresses href http en wikipedia org wiki MAC address rel noreferrer see wikipedia for more info buf buf 0xfe Set local bit ensure unicast address In most cases you ll want to set the lowest bit to zero ensuring that you have unicast address rather than multicast address,0,NULL,NULL 39542,440136,345398,NULL,NULL,NULL,0,NULL,NULL 39543,282384,398848,Popular Question,NULL,NULL,0,NULL,NULL 39544,963248,812174,Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 39545,342352,1527007,NULL,NULL,NULL,0,NULL,NULL 39546,9457915,1527007,NULL,NULL,NULL,0,NULL,NULL 39547,401195,266297,Notable Question Caucus Constituent Popular Question Necromancer,NULL,NULL,0,NULL,NULL 39548,717876,528476,NULL,NULL,NULL,0,NULL,NULL 39549,286570,160936,Supporter Commentator Popular Question,NULL,NULL,0,NULL,NULL 39550,1353,535897,NULL,NULL,NULL,0,NULL,NULL 39551,189328,216194,Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Custodian Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Yearling Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39552,1979772,1120214,NULL,NULL,NULL,0,NULL,NULL 39553,183426,1120214,NULL,NULL,NULL,0,NULL,NULL 39554,263001,1423381,NULL,NULL,NULL,0,NULL,NULL 39555,502895,559771,Teacher Famous Question,NULL,NULL,0,NULL,NULL 39556,701800,212544,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39557,2642990,582276,Popular Question,NULL,NULL,0,NULL,NULL 39558,151600,120615,Notable Question Nice Question Good Answer Yearling Nice Answer Enlightened Nice Answer Announcer Good Answer Yearling Caucus Documentation User Notable Question Popular Question Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 39559,1088547,879231,Revival Necromancer Commentator,NULL,NULL,0,NULL,NULL 39560,23846,468459,Necromancer Yearling Nice Answer Nice Answer Good Answer Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 39561,17604,1267684,Self-Learner Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 39562,1515708,1226929,Notable Question Supporter Commentator Teacher Citizen Patrol,NULL,NULL,0,NULL,NULL 39563,78209,1428994,NULL,NULL,NULL,0,NULL,NULL 39564,173115,573908,NULL,NULL,NULL,0,NULL,NULL 39565,1553056,737234,Good Question Yearling Yearling Nice Answer Enlightened Yearling Populist,NULL,NULL,0,NULL,NULL 39566,823823,423108,Popular Question Teacher,NULL,NULL,0,NULL,NULL 39567,213616,728358,Popular Question Yearling Enthusiast Popular Question Good Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39568,3564081,630583,NULL,NULL,NULL,0,NULL,NULL 39569,1504474,607193,NULL,NULL,NULL,0,NULL,NULL 39570,1504475,607193,NULL,NULL,NULL,0,NULL,NULL 39571,164873,273987,Yearling Popular Question Famous Question Civic Duty Popular Question Popular Question Yearling Notable Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 39572,568502,897811,NULL,NULL,NULL,0,NULL,NULL 39573,47335,1422062,Supporter,NULL,NULL,0,NULL,NULL 39574,395764,898986,NULL,NULL,NULL,0,NULL,NULL 39575,301389,1309281,Commentator,NULL,NULL,0,NULL,NULL 39576,198716,1061009,Editor Revival Student Nice Answer Critic,NULL,NULL,0,NULL,NULL 39577,178972,120509,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39578,297686,929382,NULL,NULL,NULL,0,NULL,NULL 39579,613073,230121,Critic,NULL,NULL,0,NULL,NULL 39580,389615,1082804,NULL,NULL,NULL,0,NULL,NULL 39581,3123150,1008056,Popular Question Curious,NULL,NULL,0,NULL,NULL 39582,168736,568884,Yearling Notable Question Popular Question Notable Question Nice Question Popular Question Nice Answer Notable Question Popular Question Caucus Yearling Popular Question Good Answer Popular Question Nice Answer Notable Question Revival Notable Question Notable Question Popular Question Pundit Yearling Necromancer Famous Question Famous Question Announcer Notable Question,NULL,h1PolySnapper easy polygon vertice snapping h1p img src https raw githubusercontent com jordanarseno polysnapper master anim gif alt PolySnapper GIF Demo ppI created this href https github com jordanarseno polysnapper rel noreferrer this github repo and href http jsfiddle net jordanarseno xw6gp9yq 19 rel noreferrer complementary jsfiddle ppA brief example might look like ppre codevar PS PolySnapper map map threshold 20 key shift keyRequired true polygons polygons polystyle polystyle hidePOI true onEnabled function console log enabled onDisabled function console log disabled onChange function console log point was added removed or moved first enable the manager enter drawing mode PS enable user draws the polygon point by point snapping when necessary now retrieve the polygon from the manager the poly PS polygon and disable the manager exit drawing mode and clean up poly you should now use the poly as polygon referencePS disable code prep strongNote strong By design the western shape on jsfiddle is not set to codesnapable code see above codepolygons code property so only the eastern shape will snap pp div class snippet data lang js data hide true xD div class snippet code snippet currently hidden xD pre class snippet code js lang js prettyprint override code the only global variable xD SM will become the SnapManager instance xD var SM null xD xD google maps event addDomListener window load function xD xD we will center the map here xD var vancouver xD lat 49 269858 xD lng 123 137283 xD xD xD granville island coordinates xD you should be fetching your coordinates from your server xD var granville coords xD lat 49 27158485202591 lng 123 13729763031006 xD lat 49 27277488695786 lng 123 13691139221191 xD lat 49 27316689217891 lng 123 13613891601562 xD lat 49 27319489243262 lng 123 13474416732788 xD lat 49 27248088099777 lng 123 13384294509888 xD lat 49 2696667352996 lng 123 13049554824829 xD lat 49 268546632648494 lng 123 13055992126465 xD lat 49 268350612069995 lng 123 13066720962524 xD lat 49 2684906268484 lng 123 13146114349365 xD lat 49 268546632648494 lng 123 13249111175537 xD lat 49 26888266611402 lng 123 13347816467285 xD lat 49 26889666745873 lng 123 13401460647583 xD lat 49 2706328034105 lng 123 1368041038513 xD xD xD coordinates of blocks just east of burrard xD var burrard coords xD lat 49 267972570183545 lng 123 145751953125 xD lat 49 2679445669656 lng 123 14085960388184 xD lat 49 27032478374826 lng 123 14077377319336 xD lat 49 27138884351881 lng 123 14176082611084 xD lat 49 27309689147504 lng 123 14356327056885 xD lat 49 27267688516586 lng 123 14467906951904 xD lat 49 27152884967477 lng 123 14553737640381 xD lat 49 269834748503946 lng 123 1459450721740 xD xD xD make the satellite view google map center it in Vancouver xD map new google maps Map document getElementById map div xD xD center new google maps LatLng vancouver lat vancouver lng xD zoom 16 xD mapTypeId google maps MapTypeId HYBRID xD xD xD xD this style is easier on the eyes than the default black xD BADASS and COFFEE hex to the rescue xD var polystyle xD strokeColor BADA55 xD strokeOpacity xD strokeWeight xD fillColor C0FFEE xD fillOpacity 35 xD xD xD options for granville polygon xD SNAPABLE TRUE xD var poly1 opts extend xD paths granville coords xD map map xD snapable true xD polystyle xD xD options for burrard polygon xD SNAPABLE not present false xD var poly2 opts extend xD paths burrard coords xD map map xD polystyle xD xD let make the polygons xD var granville new google maps Polygon poly1 opts xD var burrard new google maps Polygon poly2 opts xD xD xD For demo purposes lets just put two gmaps Polys into the polygon array xD For your application purposes you would populate this array with xD all of the polygons you want to snap to likely driven from the DB xD xD polygons granville burrard xD xD xD Now we make the SnapManager xD See http stackoverflow com 33338065 568884 for API xD Will be transferred to Github soon xD xD xD SM PolySnapper xD map map xD marker new google maps Marker xD threshold 20 xD keyRequired false xD polygons polygons xD polystyle polystyle xD hidePOI true xD onEnabled function xD console log enabled xD xD onDisabled function xD console log disabled xD xD xD xD add the buttons initial state on top of the map xD renderCpanel false xD xD xD xD when user clicks log poly button pull the poly out of the manager and console log it xD document on click query function xD console log SM poly getPath getArray xD xD xD just small render function to re draw the buttons whenever the enabled state is flipped on and off xD function renderCpanel drawing xD xD var control panel html xD var html template drawing drawing xD cp wrap html html xD xD xD xD attach the click handlers to the button cp wrap is never added or removed xD from the DOM so its safe to bind the listeners to it xD cp wrap on click button function xD xD var action this data action xD xD if action new SM enable xD else if action query console log SM polygon xD else SM disable xD xD renderCpanel action new xD xD code pre xD pre class snippet code css lang css prettyprint override codebody xD margin xD padding xD font 12px sans serif xD xD cp wrap xD position absolute xD top 10px xD left 120px xD background color white xD xD xD cp wrap button xD font size 22px xD code pre xD pre class snippet code html lang html prettyprint override code lt script src https rawgit com jordanarseno polysnapper master polysnapper js gt lt script gt xD lt script src http underscorejs org underscore min js gt lt script gt xD lt script src https ajax googleapis com ajax libs jquery jquery min js gt lt script gt xD lt script src https maps google com maps api js js gt lt script gt xD lt div style position relative gt xD lt div id map div style height 600px width 100 gt lt div gt xD lt div id cp wrap gt lt div gt xD lt div gt xD xD lt script id control panel type text template gt xD lt if drawing gt xD lt button data action cancel gt cancel lt button gt xD lt button data action query gt log poly lt button gt xD lt else gt xD lt button data action new gt new poly lt button gt xD lt gt xD lt script gt code pre xD div xD div xD haven used this in years but from what recall PS polygon returns Google Maps Polygon object So see the Google Maps API Docs how to obtain the polygon data You could try toString to start,0,NULL,NULL 39583,133668,148586,Census,NULL,NULL,0,NULL,NULL 39584,107668,147670,Nice Question Yearling Good Answer Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 39585,417169,1361342,Supporter Informed Commentator Critic Yearling Custodian,NULL,NULL,0,NULL,NULL 39586,992223,139977,Peer Pressure Editor,NULL,NULL,0,NULL,NULL 39587,100626,164430,Famous Question Nice Answer Yearling Revival Nice Answer Necromancer Popular Question Yearling Necromancer Necromancer Announcer Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 39588,562256,172330,Custodian Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39589,458857,733601,Popular Question Popular Question Famous Question Yearling Popular Question Nice Question Caucus Caucus Good Question Custodian Yearling,NULL,NULL,0,NULL,NULL 39590,339580,1267725,NULL,NULL,NULL,0,NULL,NULL 39591,247167,828638,Popular Question Nice Answer Popular Question Yearling Popular Question Revival Necromancer Popular Question Necromancer Nice Answer Notable Question Custodian Notable Question Popular Question Popular Question Good Answer Yearling Caucus Notable Question Popular Question Popular Question Guru Notable Question Taxonomist Census Guru Popular Question Nice Question Nice Question Good Answer Yearling Notable Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 39592,451083,977739,NULL,NULL,NULL,0,NULL,NULL 39593,296466,702520,NULL,NULL,NULL,0,NULL,NULL 39594,1286917,1489222,NULL,NULL,NULL,0,NULL,NULL 39595,96344,95162,Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Caucus Good Answer Yearling Necromancer Nice Answer Nice Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 39596,718973,352670,Notable Question,NULL,NULL,0,NULL,NULL 39597,455442,36047,Nice Answer Popular Question Notable Question Stellar Question Popular Question Popular Question Famous Question Yearling Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Nice Question Yearling Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 39598,815139,1382724,NULL,NULL,NULL,0,NULL,NULL 39599,2297305,1382724,NULL,NULL,NULL,0,NULL,NULL 39600,784495,922987,Notable Question Critic Caucus,NULL,NULL,0,NULL,NULL 39601,903699,1438355,NULL,NULL,NULL,0,NULL,NULL 39602,368862,64056,Yearling Nice Answer Enlightened Nice Answer Yearling Excavator Census Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 39603,1198675,389175,NULL,NULL,NULL,0,NULL,NULL 39604,123557,27536,Nice Answer Nice Answer Notable Question Yearling Caucus Nice Answer Nice Answer Nice Answer Great Answer Good Answer Caucus Good Answer Nice Answer Yearling Good Answer Populist Caucus Great Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 39605,793980,1279348,Yearling Revival Necromancer Notable Question,NULL,NULL,0,NULL,NULL 39606,73390,468677,NULL,NULL,NULL,0,NULL,NULL 39607,1118018,468677,NULL,NULL,NULL,0,NULL,NULL 39608,1074556,505359,Necromancer,NULL,NULL,0,NULL,NULL 39609,88674,73632,Yearling Yearling Custodian Cleanup Custodian Custodian Tag Editor Custodian Custodian Proofreader Nice Answer Enlightened Documentation User Good Answer Yearling Guru Nice Answer Enlightened Good Answer Popular Question,NULL,NULL,0,NULL,NULL 39610,23955,316596,Good Question Notable Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 39611,588567,449028,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39612,445822,578673,Teacher,NULL,NULL,0,NULL,NULL 39613,98330,1136926,Teacher Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 39614,891126,178551,Popular Question Tumbleweed Necromancer Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39615,35705,1199968,NULL,NULL,NULL,0,NULL,NULL 39616,152976,1463970,Yearling,NULL,NULL,0,NULL,NULL 39617,4088003,4272,Nice Answer Great Answer Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39618,27232,4272,Nice Answer Great Answer Nice Answer Enlightened Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39619,135731,1078883,Necromancer Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39620,27418,31407,Yearling Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 39621,328147,893022,Editor Critic,NULL,NULL,0,NULL,NULL 39622,384948,394654,NULL,NULL,NULL,0,NULL,NULL 39623,209082,1313350,Popular Question,NULL,NULL,0,NULL,NULL 39624,269534,431673,Yearling Great Answer Custodian Nice Answer ruby Yearling Guru Enlightened Yearling,NULL,NULL,0,NULL,NULL 39625,63897,376678,Nice Answer Yearling Notable Question Good Answer Popular Question Yearling Custodian Popular Question Announcer Populist Caucus Great Question Yearling Custodian,NULL,NULL,0,NULL,NULL 39626,534499,707062,NULL,NULL,NULL,0,NULL,NULL 39627,194568,80393,Popular Question Self-Learner Yearling Necromancer Nice Answer Caucus Yearling Good Answer Yearling Yearling Documentation User Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 39628,1520129,7161,Popular Question Yearling Good Answer Populist Yearling Popular Question,NULL,NULL,0,NULL,NULL 39629,421127,283096,Popular Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 39630,309144,959819,Good Answer Yearling Caucus Explainer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 39631,214259,443600,Nice Answer Yearling Caucus Necromancer Nice Answer Popular Question Nice Answer Enlightened Yearling Notable Question Nice Question Great Question Yearling,NULL,NULL,0,NULL,NULL 39632,1829868,1118054,NULL,NULL,NULL,0,NULL,NULL 39633,181533,1348794,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 39634,252474,1515562,NULL,NULL,NULL,0,NULL,NULL 39635,237568,1406574,Supporter,NULL,NULL,0,NULL,NULL 39636,1322218,1406574,Supporter,NULL,NULL,0,NULL,NULL 39637,52390,469697,Good Answer Good Answer Yearling Enthusiast Revival Yearling,NULL,NULL,0,NULL,NULL 39638,296198,851095,NULL,NULL,NULL,0,NULL,NULL 39639,45632,51431,Yearling Nice Answer Yearling Great Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 39640,248255,1426448,NULL,NULL,NULL,0,NULL,NULL 39641,283974,322249,NULL,NULL,NULL,0,NULL,NULL 39642,177435,1255474,NULL,NULL,NULL,0,NULL,NULL 39643,716846,466250,Necromancer Peer Pressure,NULL,NULL,0,NULL,NULL 39644,30614,1210930,NULL,NULL,NULL,0,NULL,NULL 39645,157512,96094,Yearling Notable Question Popular Question Notable Question Nice Question Good Question Yearling Nice Question Yearling Stellar Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 39646,236270,1259054,NULL,NULL,NULL,0,NULL,NULL 39647,51048,1259054,NULL,NULL,NULL,0,NULL,NULL 39648,80493,733195,NULL,NULL,NULL,0,NULL,NULL 39649,1071645,453086,NULL,NULL,NULL,0,NULL,NULL 39650,108229,464941,Announcer Teacher Editor Excavator,NULL,NULL,0,NULL,NULL 39651,1518255,464941,Announcer Teacher Editor Excavator,NULL,NULL,0,NULL,NULL 39652,352345,1504348,NULL,NULL,NULL,0,NULL,NULL 39653,881773,659829,NULL,NULL,NULL,0,NULL,NULL 39654,54537,1470632,NULL,NULL,NULL,0,NULL,NULL 39655,276350,985998,Nice Question Popular Question Notable Question Self-Learner Good Answer Famous Question Notable Question Good Question Popular Question Nice Question Yearling Caucus Constituent Popular Question Popular Question Notable Question Popular Question Caucus Notable Question Popular Question Yearling Documentation User Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39656,122035,361023,Self-Learner Yearling Popular Question Autobiographer Necromancer Informed Caucus Constituent Custodian Yearling Popular Question Caucus Yearling Caucus Constituent Notable Question Nice Question Notable Question,NULL,pre codegit clone lt branch gt lt remote repo gt code prepExample ppre codegit clone my branch git com user myproject git code prepWith Git 10 and later add code single branch code to prevent fetching of all branches Example with OpenCV branch ppre codegit clone opencv single branch https github com Itseez opencv git code pre ᴴᴀZ Hi the single branch IS NOT required As you can see in the manpages git clone creates remote tracking branches for each branch in the cloned repository and no single branch Clone only the history leading to the tip of single branch either specified by the branch option or the primary branch remote’s HEAD points at You save some time in big repos guess,0,NULL,NULL 39657,114945,1338111,NULL,NULL,NULL,0,NULL,NULL 39658,1229252,679330,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 39659,115093,1030633,Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 39660,28643,5264,Popular Question Popular Question Famous Question Notable Question Nice Answer Popular Question Necromancer Notable Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39661,341210,1023558,NULL,NULL,NULL,0,NULL,NULL 39662,50176,605104,NULL,NULL,NULL,0,NULL,NULL 39663,163132,1210203,Supporter Editor,NULL,NULL,0,NULL,NULL 39664,8965,101090,Good Question Popular Question Generalist Stellar Question Revival Notable Question Yearling Nice Question Nice Answer Nice Question Good Question Famous Question Nice Answer Enlightened Notable Question Guru Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Yearling Famous Question Nice Answer Enlightened Good Answer Nice Question Civic Duty Good Answer Good Question Yearling Good Answer Populist Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39665,78581,201092,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39666,409052,945573,Popular Question,NULL,NULL,0,NULL,NULL 39667,563228,1555888,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39668,30647,1547277,Teacher Necromancer,NULL,NULL,0,NULL,NULL 39669,676235,1547277,Teacher Necromancer,NULL,NULL,0,NULL,NULL 39670,303365,745326,NULL,NULL,NULL,0,NULL,NULL 39671,136771,631587,NULL,NULL,NULL,0,NULL,NULL 39672,1719789,999546,Necromancer Supporter,NULL,NULL,0,NULL,NULL 39673,1218740,843412,NULL,NULL,NULL,0,NULL,NULL 39674,295423,1252061,NULL,NULL,NULL,0,NULL,NULL 39675,138240,933727,NULL,NULL,NULL,0,NULL,NULL 39676,352246,803008,Caucus Tenacious,NULL,NULL,0,NULL,NULL 39677,263399,623006,NULL,NULL,NULL,0,NULL,NULL 39678,207922,394770,Tumbleweed Critic,NULL,NULL,0,NULL,NULL 39679,433701,474896,Good Answer ios Good Answer Nice Answer Yearling Great Answer Yearling Nice Answer Enlightened Good Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 39680,155166,243882,Revival Caucus,NULL,NULL,0,NULL,NULL 39681,181655,612781,NULL,NULL,NULL,0,NULL,NULL 39682,168351,501998,Yearling Guru,NULL,NULL,0,NULL,NULL 39683,859424,935596,Student,NULL,NULL,0,NULL,NULL 39684,18302,632022,Editor,NULL,NULL,0,NULL,NULL 39685,87081,393375,Revival Yearling,NULL,NULL,0,NULL,NULL 39686,42477,819213,NULL,NULL,NULL,0,NULL,NULL 39687,625427,497316,Critic Citizen Patrol Informed,NULL,NULL,0,NULL,NULL 39688,61724,147057,Strunk & White Custodian Self-Learner Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Census Guru Caucus Yearling Nice Answer Good Answer Nice Answer Enlightened Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 39689,96125,856899,NULL,NULL,NULL,0,NULL,NULL 39690,707376,856899,NULL,NULL,NULL,0,NULL,NULL 39691,116365,1372302,Teacher Informed Revival,NULL,NULL,0,NULL,NULL 39692,800368,863772,Announcer,NULL,NULL,0,NULL,NULL 39693,1522517,600246,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39694,100312,1300678,Editor Announcer,NULL,NULL,0,NULL,NULL 39695,49959,951600,NULL,NULL,NULL,0,NULL,NULL 39696,608788,809572,Guru Nice Answer Yearling Announcer Civic Duty Nice Answer Enlightened Nice Answer Yearling Caucus Nice Answer Autobiographer Documentation User Necromancer Yearling Popular Question Great Answer,NULL,NULL,0,NULL,NULL 39697,31268,217357,Necromancer Populist Popular Question Nice Answer Guru Necromancer Popular Question Yearling Popular Question Good Answer Popular Question Yearling Yearling,NULL,pHere how you can debug CORS requests using curl pp strongSending regular CORS request using cUrl strong ppre codecurl Origin http example com verbose https www googleapis com discovery v1 apis fields code prepThe code Origin http example com code flag is the third party domain making the request Substitute in whatever your domain is ppThe code verbose code flag prints out the entire response so you can see the request and response headers ppThe url using above is sample request to Google API that supports CORS but you can substitute in whatever url you are testing ppThe response should include the codeAccess Control Allow Origin code header pp strongSending preflight request using cUrl strong ppre codecurl Origin http example com Access Control Request Method POST Access Control Request Headers Requested With OPTIONS verbose https www googleapis com discovery v1 apis fields code prepThis looks similar to the regular CORS request with few additions ppThe code code flags send additional preflight request headers to the server ppThe code OPTIONS code flag indicates that this is an HTTP OPTIONS request ppIf the preflight request is successful the response should include the codeAccess Control Allow Origin code codeAccess Control Allow Methods code and codeAccess Control Allow Headers code response headers If the preflight request was not successful these headers shouldn appear or the HTTP response won be 200 ppYou can also specify additional headers such as codeUser Agent code by using the code code flag In the case of S3 the according headers are only added if the proper method is given you can do so by using curl Access Control Request Method GET Origin http example com https s3 amazonaws com your bucket file,0,NULL,NULL 39698,137743,848945,NULL,NULL,NULL,0,NULL,NULL 39699,238571,831,Good Question Great Question Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 39700,99584,463740,NULL,NULL,NULL,0,NULL,NULL 39701,147419,1246974,NULL,NULL,NULL,0,NULL,NULL 39702,99618,160950,Yearling Nice Answer Popular Question Caucus Famous Question Notable Question Yearling Notable Question Nice Question Nice Question Announcer Notable Question Notable Question Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 39703,809571,406852,NULL,NULL,NULL,0,NULL,NULL 39704,1574991,776461,NULL,NULL,NULL,0,NULL,NULL 39705,196618,776461,NULL,NULL,NULL,0,NULL,NULL 39706,1111162,998043,NULL,NULL,NULL,0,NULL,NULL 39707,559516,60823,Popular Question Popular Question Caucus Autobiographer Caucus,NULL,NULL,0,NULL,NULL 39708,9698126,943537,NULL,NULL,NULL,0,NULL,NULL 39709,350380,1118132,NULL,NULL,NULL,0,NULL,NULL 39710,167174,336411,Yearling Popular Question Famous Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 39711,139801,641689,NULL,NULL,NULL,0,NULL,NULL 39712,336171,537107,Student Yearling Critic Enlightened Caucus Constituent,NULL,NULL,0,NULL,NULL 39713,1129863,59154,NULL,NULL,NULL,0,NULL,NULL 39714,217263,859887,NULL,NULL,NULL,0,NULL,NULL 39715,250547,379195,NULL,NULL,NULL,0,NULL,NULL 39716,90246,193711,Tumbleweed Student,NULL,NULL,0,NULL,NULL 39717,1092613,1437620,NULL,NULL,NULL,0,NULL,NULL 39718,41126,944571,Yearling Great Answer Caucus Nice Answer Yearling Good Answer Caucus Excavator Caucus Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 39719,2034,684965,Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer cakephp cakephp-3.0 Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 39720,143637,1350023,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39721,386208,529319,NULL,NULL,NULL,0,NULL,NULL 39722,13782,264812,Teacher Editor Commentator,NULL,NULL,0,NULL,NULL 39723,169427,1008922,NULL,NULL,NULL,0,NULL,NULL 39724,177037,392953,NULL,NULL,NULL,0,NULL,NULL 39725,117467,463564,Yearling Good Answer,NULL,NULL,0,NULL,NULL 39726,158992,464865,Editor Yearling,NULL,NULL,0,NULL,NULL 39727,194736,932355,Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 39728,176823,708909,Notable Question,NULL,NULL,0,NULL,NULL 39729,127920,937345,NULL,NULL,NULL,0,NULL,NULL 39730,1504506,1136132,Announcer Yearling Organizer Yearling Necromancer Caucus Revival Announcer Announcer Necromancer Announcer Announcer Documentation User Yearling Announcer Caucus Civic Duty Revival,NULL,NULL,0,NULL,NULL 39731,2310141,1136132,Announcer Yearling Organizer Yearling Necromancer Caucus Revival Announcer Announcer Necromancer Announcer Announcer Documentation User Yearling Announcer Caucus Civic Duty Revival,NULL,NULL,0,NULL,NULL 39732,284514,281166,NULL,NULL,NULL,0,NULL,NULL 39733,83271,358580,Necromancer Student Nice Answer Yearling Tumbleweed Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39734,125205,382920,Good Answer Notable Question Nice Answer Popular Question Notable Question Nice Answer Yearling Famous Question Caucus Popular Question Popular Question Yearling Good Question Popular Question Custodian Custodian Popular Question Peer Pressure Popular Question Necromancer Caucus Yearling Informed Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 39735,207413,135837,Informed Editor Yearling Commentator Organizer Yearling Custodian Custodian Citizen Patrol Custodian Suffrage Vox Populi Tenacious Caucus Enthusiast Yearling Scholar Deputy Reviewer Yearling Yearling Unsung Hero Civic Duty Reviewer Yearling Self-Learner Student Documentation User Yearling Popular Question Nice Answer Necromancer Yearling Notable Question Good Answer Custodian Custodian android Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 39736,170302,653069,Yearling Nice Answer Enlightened Caucus Autobiographer Yearling Caucus Constituent Unsung Hero Yearling Caucus Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39737,388613,1539008,Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 39738,170200,470331,Good Answer Custodian Yearling Caucus Constituent Nice Answer Good Answer javascript Nice Answer Enlightened Yearling Revival Organizer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 39739,41933,333700,Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened pandas Necromancer Good Answer Pundit Nice Answer Yearling Autobiographer Revival Nice Answer Enlightened Nice Answer Revival Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Civic Duty Announcer Good Answer Yearling statsmodels Nice Answer Announcer Nice Answer Nice Answer Enlightened Necromancer Good Answer Nice Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 39740,48293,703967,NULL,NULL,NULL,0,NULL,NULL 39741,157960,199368,Notable Question,NULL,NULL,0,NULL,NULL 39742,656424,100322,Yearling Nice Question Good Answer Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39743,4384274,100322,Yearling Nice Question Good Answer Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39744,95983,1255157,NULL,NULL,NULL,0,NULL,NULL 39745,208974,176015,Yearling Nice Answer Enlightened Yearling Good Answer Custodian Custodian Popular Question Yearling Curious,NULL,NULL,0,NULL,NULL 39746,247730,122835,Famous Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Custodian Notable Question Popular Question Popular Question Yearling Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Caucus Good Question Popular Question Socratic Famous Question Popular Question Nice Question Nice Answer Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 39747,309840,895602,Yearling Notable Question Caucus,NULL,NULL,0,NULL,NULL 39748,253337,877480,Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 39749,194363,235935,Critic,NULL,NULL,0,NULL,NULL 39750,38261,1254140,Commentator,NULL,NULL,0,NULL,NULL 39751,403610,1288941,NULL,NULL,NULL,0,NULL,NULL 39752,406825,72935,NULL,NULL,NULL,0,NULL,NULL 39753,1600211,16032,Notable Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 39754,652897,227340,NULL,NULL,NULL,0,NULL,NULL 39755,301547,1545660,Teacher Necromancer Nice Answer Supporter Yearling,NULL,NULL,0,NULL,NULL 39756,319893,1178555,Popular Question Suffrage Vox Populi Explainer Yearling Civic Duty Custodian Electorate Popular Question Curious Caucus Constituent Notable Question Documentation User Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 39757,24059,992979,Census,NULL,NULL,0,NULL,NULL 39758,2649618,992979,Census,NULL,NULL,0,NULL,NULL 39759,263088,730260,Famous Question Civic Duty Curious Caucus Custodian Informed Yearling Caucus Constituent Custodian Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 39760,187020,643648,NULL,NULL,NULL,0,NULL,NULL 39761,181408,860822,Yearling Caucus Critic Caucus,NULL,NULL,0,NULL,NULL 39762,1509463,1354496,Notable Question Critic Caucus,NULL,NULL,0,NULL,NULL 39763,297497,1347949,NULL,NULL,NULL,0,NULL,NULL 39764,1349176,1039606,NULL,NULL,NULL,0,NULL,NULL 39765,11572,1460047,NULL,NULL,NULL,0,NULL,NULL 39766,89375,949775,NULL,NULL,NULL,0,NULL,NULL 39767,289233,814738,Popular Question Popular Question Nice Answer Popular Question Nice Question Census Popular Question,NULL,NULL,0,NULL,NULL 39768,683678,1451458,NULL,NULL,NULL,0,NULL,NULL 39769,284435,353425,NULL,NULL,NULL,0,NULL,NULL 39770,202731,885072,Custodian,NULL,NULL,0,NULL,NULL 39771,59590,382164,Notable Question,NULL,NULL,0,NULL,NULL 39772,137280,851936,NULL,NULL,NULL,0,NULL,NULL 39773,41469,429347,NULL,NULL,NULL,0,NULL,NULL 39774,6923778,1319736,NULL,NULL,NULL,0,NULL,NULL 39775,390654,1341004,NULL,NULL,NULL,0,NULL,NULL 39776,901190,1519412,NULL,NULL,NULL,0,NULL,NULL 39777,6557541,1040735,Critic Yearling,NULL,NULL,0,NULL,NULL 39778,1079227,255836,Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 39779,121869,369587,Necromancer Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39780,911530,46377,NULL,NULL,NULL,0,NULL,NULL 39781,1091468,633493,NULL,NULL,NULL,0,NULL,NULL 39782,1096154,1469862,NULL,NULL,NULL,0,NULL,NULL 39783,124174,794458,Enthusiast Popular Question Yearling Caucus Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Custodian Popular Question Caucus Civic Duty Popular Question Popular Question Popular Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 39784,262719,1317706,NULL,NULL,NULL,0,NULL,NULL 39785,366990,412607,NULL,NULL,NULL,0,NULL,NULL 39786,1099387,410167,Nice Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Caucus Good Question Necromancer Popular Question Yearling Good Question Nice Question Notable Question Nice Question Great Question Nice Question Self-Learner Popular Question Yearling Notable Question Nice Answer Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 39787,62341,90195,Caucus Caucus,NULL,NULL,0,NULL,NULL 39788,903050,1323030,Popular Question Nice Answer Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 39789,3789277,1323030,Popular Question Nice Answer Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 39790,324547,466098,NULL,NULL,NULL,0,NULL,NULL 39791,321738,360033,NULL,NULL,NULL,0,NULL,NULL 39792,358945,1163010,NULL,NULL,NULL,0,NULL,NULL 39793,83548,50385,Favorite Question Notable Question Notable Question Notable Question Famous Question Nice Answer Popular Question Famous Question Popular Question Notable Question Nice Answer Enlightened Famous Question Popular Question Good Question Enthusiast Nice Question Nice Question Popular Question Good Question Nice Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Question Nice Answer Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Nice Question Famous Question Good Question Famous Question Favorite Question Popular Question Notable Question Popular Question Good Question Notable Question Famous Question,NULL,pFor something very simple and lightweight slightly modified from href http code activestate com recipes 577187 python thread pool rel nofollow noreferrer here ppre codefrom Queue import Queuefrom threading import Threadclass Worker Thread Thread executing tasks from given tasks queue def init self tasks Thread init self self tasks tasks self daemon True self start def run self while True func args kargs self tasks get try func args kargs except Exception print finally self tasks task done class ThreadPool Pool of threads consuming tasks from queue def init self num threads self tasks Queue num threads for in range num threads Worker self tasks def add task self func args kargs Add task to the queue self tasks put func args kargs def wait completion self Wait for completion of all the tasks in the queue self tasks join if name main from random import randrange from time import sleep delays randrange 10 for in range 100 def wait delay print sleeping for sec sleep pool ThreadPool 20 for in enumerate delays pool add task wait delay pool wait completion code prepTo support callbacks on task completion you can just add the callback to the task tuple how can the threads ever join if they unconditionally infinite loop,0,NULL,NULL 39794,312686,1566574,Informed,NULL,NULL,0,NULL,NULL 39795,181429,474711,NULL,NULL,NULL,0,NULL,NULL 39796,39083,32683,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39797,1703,225213,NULL,NULL,NULL,0,NULL,NULL 39798,19917,136846,Yearling Citizen Patrol Custodian Good Answer Caucus Famous Question Critic Popular Question Yearling Favorite Question Caucus Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 39799,3674153,136846,Yearling Citizen Patrol Custodian Good Answer Caucus Famous Question Critic Popular Question Yearling Favorite Question Caucus Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 39800,34053,562505,Yearling Notable Question Nice Answer Enlightened Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 39801,1874536,1166175,Good Question Yearling Commentator,NULL,NULL,0,NULL,NULL 39802,775,323578,Great Answer Popular Question Popular Question Yearling Popular Question Necromancer Good Question Nice Answer Popular Question Nice Answer Good Question Favorite Question Famous Question Good Answer Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Nice Question Famous Question Famous Question Famous Question Notable Question Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 39803,36945,494190,Yearling Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 39804,575329,433701,NULL,NULL,NULL,0,NULL,NULL 39805,234069,883488,NULL,NULL,NULL,0,NULL,NULL 39806,4874,472499,NULL,NULL,NULL,0,NULL,NULL 39807,61362,997318,NULL,NULL,NULL,0,NULL,NULL 39808,54812,1351593,NULL,NULL,NULL,0,NULL,NULL 39809,44498,391006,Necromancer Popular Question Yearling Caucus Popular Question Critic Revival Tumbleweed,NULL,NULL,0,NULL,NULL 39810,167621,34462,Necromancer Necromancer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 39811,1324730,520058,NULL,NULL,NULL,0,NULL,NULL 39812,224260,538548,NULL,NULL,NULL,0,NULL,NULL 39813,136887,403879,NULL,NULL,NULL,0,NULL,NULL 39814,135444,212001,Good Answer Nice Answer Caucus Yearling Good Answer Caucus Yearling Nice Answer Caucus Critic Yearling,NULL,NULL,0,NULL,NULL 39815,873915,173986,Notable Question Nice Answer Yearling Great Answer Famous Question Good Question Yearling Stellar Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 39816,86855,507,Notable Question Great Question Popular Question Great Answer Yearling Nice Question Census Good Answer Stellar Question Nice Answer Yearling Nice Question Census Necromancer Famous Question Famous Question Nice Answer Enlightened Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 39817,49567,292166,Nice Answer Revival Popular Question Revival Yearling Notable Question Nice Question Famous Question Good Answer Revival Revival Popular Question Nice Answer Caucus Constituent Necromancer Necromancer Necromancer Popular Question Yearling Guru Nice Answer Nice Answer Famous Question Popular Question Revival Notable Question Nice Answer Great Answer Nice Answer Nice Answer Good Answer Popular Question Necromancer Necromancer Great Question Yearling Nice Answer Necromancer Nice Answer Custodian Necromancer Great Answer Good Answer Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 39818,137904,1476206,Necromancer Nice Answer swift Custodian Custodian ios Necromancer Yearling Necromancer Great Answer Necromancer Nice Answer Custodian Excavator Guru Yearling Custodian Necromancer Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 39819,1956211,390536,NULL,NULL,NULL,0,NULL,NULL 39820,562295,445105,Nice Answer Yearling Famous Question Nice Answer Famous Question Nice Answer Good Question Guru Nice Question Good Answer Popular Question Nice Question Yearling Nice Answer Famous Question Yearling Nice Answer Nice Answer Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 39821,805179,242815,Yearling,NULL,NULL,0,NULL,NULL 39822,15528,16981,Custodian Custodian Yearling Nice Answer Yearling Yearling,NULL,Finding empty directories UNIX bash unix directory pI need to find empty directories for given list of directories Some directories have directories inside it ppIf inside directories are also empty can say main directory is empty otherwise it not empty ppHow can test this ppFor example ppre codeA gt A1 file1 A2 this is not empty beacuse of file1B gt B1 no file this is emptyC gt C1 C2 this is empty code pre Related Checking from shell script if directory contains files http stackoverflow com questions 91368 checking from shell script if directory contains files,0,NULL,NULL 39823,68726,143922,Necromancer,NULL,NULL,0,NULL,NULL 39824,235479,593956,Famous Question Yearling Good Question Nice Question Good Answer Popular Question Notable Question Revival Good Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Famous Question Yearling Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Good Question Nice Question Yearling Famous Question Nice Question Notable Question Populist Popular Question Popular Question Popular Question Nice Question Nice Answer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 39825,6250276,1342122,Famous Question,NULL,NULL,0,NULL,NULL 39826,160650,461937,Popular Question Civic Duty Notable Question Nice Answer Nice Answer Yearling Notable Question Notable Question Popular Question Nice Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 39827,398644,492759,NULL,NULL,NULL,0,NULL,NULL 39828,68137,660694,Scholar javascript Excavator Pundit Yearling Nice Answer Nice Answer Nice Answer Enlightened Custodian arrays php json laravel Nice Answer Enlightened jquery Good Answer Yearling Good Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer mysql Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Tag Editor,NULL,NULL,0,NULL,NULL 39829,253189,2153,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 39830,32761,445488,NULL,NULL,NULL,0,NULL,NULL 39831,16488,538074,NULL,NULL,NULL,0,NULL,NULL 39832,371569,211265,NULL,NULL,NULL,0,NULL,NULL 39833,270272,474411,Self-Learner Popular Question Yearling Autobiographer Great Answer Nice Answer Nice Answer Necromancer Nice Answer Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 39834,327361,607510,NULL,NULL,NULL,0,NULL,NULL 39835,507244,688570,NULL,NULL,NULL,0,NULL,NULL 39836,702532,990642,Necromancer Necromancer Necromancer Critic Popular Question Nice Answer Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 39837,2107467,1157346,Yearling Popular Question,NULL,NULL,0,NULL,NULL 39838,1516153,1020042,NULL,NULL,NULL,0,NULL,NULL 39839,189996,627681,NULL,NULL,NULL,0,NULL,NULL 39840,8251,674297,Autobiographer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 39841,142794,810343,Nice Answer,NULL,NULL,0,NULL,NULL 39842,72783,578195,NULL,NULL,NULL,0,NULL,NULL 39843,133802,185346,Civic Duty Revival Popular Question Popular Question Necromancer Yearling Popular Question Caucus Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 39844,181526,958455,Commentator,NULL,NULL,0,NULL,NULL 39845,3876190,958455,Commentator,NULL,NULL,0,NULL,NULL 39846,72194,1385903,NULL,NULL,NULL,0,NULL,NULL 39847,786572,1020642,Revival Editor Supporter Necromancer,NULL,NULL,0,NULL,NULL 39848,138585,1031290,Yearling Nice Answer Enlightened Yearling Revival Necromancer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 39849,2784604,1031290,Yearling Nice Answer Enlightened Yearling Revival Necromancer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 39850,683655,707185,NULL,NULL,NULL,0,NULL,NULL 39851,106395,971462,Teacher,NULL,NULL,0,NULL,NULL 39852,550188,1178262,NULL,NULL,NULL,0,NULL,NULL 39853,698838,363836,Yearling Editor,NULL,NULL,0,NULL,NULL 39854,1362683,390587,Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Caucus Constituent Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39855,6033070,390587,Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Caucus Constituent Famous Question Popular Question,NULL,NULL,0,NULL,NULL 39856,1519727,563443,Yearling Yearling Commentator Great Answer,NULL,NULL,0,NULL,NULL 39857,3940,871401,Nice Question Curious Notable Question,NULL,NULL,0,NULL,NULL 39858,220583,1507973,NULL,NULL,NULL,0,NULL,NULL 39859,419222,1027506,NULL,NULL,NULL,0,NULL,NULL 39860,184880,756599,Popular Question,NULL,NULL,0,NULL,NULL 39861,68113,717506,Yearling Necromancer,NULL,NULL,0,NULL,NULL 39862,14987,912328,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39863,49555,401818,Popular Question Necromancer Yearling Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 39864,7128,1284705,Nice Answer,NULL,NULL,0,NULL,NULL 39865,660099,925561,NULL,NULL,NULL,0,NULL,NULL 39866,34510,478632,Scholar Supporter Necromancer Student,NULL,NULL,1,NULL,How to define type disjunction union types scala pOne way that has href https stackoverflow com questions 3422336 how can differentiate between def fooaxs and def fooa bxs 3424314 3424314 been suggested to deal with double definitions of overloaded methods is to replace overloading with pattern matching ppre codeobject Bar def foo xs Any xs foreach case String gt println str case Int gt println int case gt throw new UglyRuntimeException code prepThis approach requires that we surrender static type checking on the arguments to codefoo code It would be much nicer to be able to write ppre codeobject Bar def foo xs String or Int xs foreach case String gt println str case Int gt println int code prepI can get close with codeEither code but it gets ugly fast with more than two types ppre codetype or Either implicit def l2Or or Left implicit def r2Or or Right object Bar def foo xs String or Int xs foreach case Left gt println str case Right gt println int code prepIt looks like general elegant efficient solution would require defining codeEither3 code codeEither4 code Does anyone know of an alternate solution to achieve the same end To my knowledge Scala does not have built in type disjunction Also are the implicit conversions defined above lurking in the standard library somewhere so that can just import them pWe’d like type operator codeOr code that can be used to constrain type parameters codeX code in such way that either codeX lt code or codeX lt code Here definition that comes about as close as we can get ppre codetrait Inv type Or type pf Inv with Inv lt lt Inv code prepHere is how it used ppre code useclass class extends class extends Bdef foo Or String pf foo OKfoo OKfoo String OKfoo ERROR foo Number ERROR code prepThis uses few Scala type tricks The main one is the use of href http debasishg blogspot com 2010 08 using generalized type constraints how html rel nofollow noreferrer generalized type constraints Given types codeU code and codeV code the Scala compiler provides class called codeU lt lt code and an implicit object of that class if and only if the Scala compiler can prove that codeU code is subtype of codeV code Here’s simpler example using generalized type constraints that works for some cases ppre codedef foo implicit ev with String lt lt code prepThis example works when codeX code an instance of class codeB code codeString code or has type that is neither supertype nor subtype of codeB code or codeString code In the first two cases it’s true by the definition of the codewith code keyword that code with String lt code and code with String lt String code so Scala will provide an implicit object that will be passed in as codeev code the Scala compiler will correctly accept codefoo code and codefoo String code ppIn the last case I’m relying on the fact that if codeU with lt code then codeU lt code or codeV lt code It seems intuitively true and I’m simply assuming it It’s clear from this assumption why this simple example fails when codeX code is supertype or subtype of either codeB code or codeString code for example in the example above codefoo code is incorrectly accepted and codefoo code is incorrectly rejected Again what we want is some kind of type expression on the variables codeU code codeV code and codeX code that is true exactly when codeX lt code or codeX lt code ppScala’s notion of contravariance can help here Remember the trait codetrait Inv code Because it is contravariant in its type parameter codeX code codeInv lt Inv code if and only if codeY lt code That means that we can replace the example above with one that actually will work ppre codetrait Inv def foo implicit ev Inv with Inv String lt lt Inv code prepThat’s because the expression code Inv with Inv lt Inv code is true by the same assumption above exactly when codeInv lt Inv code or codeInv lt Inv code and by the definition of contravariance this is true exactly when codeX lt code or codeX lt code ppIt’s possible to make things little more reusable by declaring parametrizable type codeBOrString code and using it as follows ppre codetrait Inv type BOrString Inv with Inv String lt lt Inv def foo implicit ev BOrString code prepScala will now attempt to construct the type codeBOrString code for every codeX code that codefoo code is called with and the type will be constructed precisely when codeX code is subtype of either codeB code or codeString code That works and there is shorthand notation The syntax below is equivalent except that codeev code must now be referenced in the method body as codeimplicitly BOrString code rather than simply codeev code and uses codeBOrString code as href http docs scala lang org tutorials FAQ context and view bounds html rel nofollow noreferrer type context bound ppre codedef foo BOrString code prepWhat we’d really like is flexible way to create type context bound type context must be parametrizable type and we want parametrizable way to create one That sounds like we’re trying to curry functions on types just like we curry functions on values In other words we’d like something like the following ppre codetype Or Inv with Inv lt lt Inv code prepThat’s href https stackoverflow com questions 6247817 is it possible to curry higher kinded types in scala not directly possible in Scala but there is trick we can use to get pretty close That brings us to the definition of codeOr code above ppre codetrait Inv type Or type pf Inv with Inv lt lt Inv code prepHere we use href https dzone com articles duck typing scala structural rel nofollow noreferrer structural typing and Scala’s href https stackoverflow com questions 9443004 what does the operator mean in scala pound operator to create structural type codeOr code that is guaranteed to have one internal type This is strange beast To give some context the function codedef bar lt type Int code must be called with subclasses of codeAnyRef code that have type codeY code defined in them ppre codebar new AnyRef type Int works code prepUsing the pound operator allows us to refer to the inner type codeOr String pf code and using href http jim mcbeath blogspot com 2008 11 scala type infix operators html rel nofollow noreferrer infix notation for the type operator codeOr code we arrive at our original definition of codefoo code ppre codedef foo Or String pf code prepWe can use the fact that function types are contravariant in their first type parameter in order to avoid defining the trait codeInv code ppre codetype Or type pf gt with gt lt lt gt code pre 39867,167945,1370857,NULL,NULL,NULL,0,NULL,NULL 39868,83489,1481717,Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 39869,93431,184212,Necromancer Nice Question Nice Answer Enlightened Populist Favorite Question Notable Question Good Answer Yearling Excavator Popular Question Investor Altruist Popular Question Revival Nice Answer Nice Answer Notable Question Good Answer Great Question Necromancer Nice Answer Nice Answer Enlightened Great Answer Necromancer Good Answer Good Answer Yearling Inquisitive Stellar Question Notable Question ruby Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39870,90394,851214,Necromancer Scholar,NULL,NULL,0,NULL,NULL 39871,191884,1387847,Excavator,NULL,NULL,0,NULL,NULL 39872,425979,717817,NULL,NULL,NULL,0,NULL,NULL 39873,131541,392041,Popular Question Popular Question Nice Question Promoter Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39874,218847,961508,NULL,NULL,NULL,0,NULL,NULL 39875,1341419,508531,Popular Question,NULL,NULL,0,NULL,NULL 39876,233892,550545,NULL,NULL,NULL,0,NULL,NULL 39877,1197713,250393,NULL,NULL,NULL,0,NULL,NULL 39878,134358,295073,Notable Question Yearling,NULL,NULL,0,NULL,NULL 39879,533095,464289,Nice Question Popular Question Yearling Promoter Nice Question Benefactor Citizen Patrol Custodian Nice Answer Announcer,NULL,NULL,0,NULL,NULL 39880,66703,850286,Notable Question Guru Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39881,489927,1402074,Student Popular Question,NULL,NULL,0,NULL,NULL 39882,153586,195674,NULL,NULL,NULL,0,NULL,NULL 39883,6934116,1067530,Yearling Student Commentator Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 39884,17597,1067530,Yearling Student Commentator Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 39885,30637,1196299,NULL,NULL,NULL,0,NULL,NULL 39886,85502,807069,Teacher,NULL,NULL,0,NULL,NULL 39887,4912,201804,Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 39888,226721,185657,Popular Question Popular Question Nice Question Notable Question Yearling Good Question Famous Question Great Answer Good Question Census Custodian Good Question Great Question Famous Question Yearling Documentation User Nice Answer Notable Question Notable Question Good Question Yearling Announcer,NULL,NULL,0,NULL,NULL 39889,763401,448695,NULL,NULL,NULL,0,NULL,NULL 39890,396380,854210,NULL,NULL,NULL,0,NULL,NULL 39891,467686,229130,Yearling Good Answer Critic Famous Question Good Question Revival Good Question,NULL,NULL,0,NULL,NULL 39892,75477,1067469,NULL,NULL,NULL,0,NULL,NULL 39893,1041441,984711,Informed Autobiographer Documentation User,NULL,NULL,0,NULL,NULL 39894,478515,115462,Yearling Nice Question Famous Question Famous Question Disciplined Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39895,9512938,115462,Yearling Nice Question Famous Question Famous Question Disciplined Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39896,153694,219850,NULL,NULL,NULL,0,NULL,NULL 39897,579240,1098660,Tumbleweed Revival,NULL,NULL,0,NULL,NULL 39898,339253,782170,NULL,NULL,NULL,0,NULL,NULL 39899,51068,438275,Yearling Self-Learner,NULL,NULL,0,NULL,NULL 39900,510955,957325,NULL,NULL,NULL,0,NULL,NULL 39901,1133466,926190,Notable Question Critic Tumbleweed Caucus Excavator Popular Question Popular Question Popular Question Popular Question Self-Learner Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Civic Duty Nice Answer Nice Question Notable Question Caucus Yearling Popular Question Notable Question Notable Question Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 39902,905570,66675,Tumbleweed Popular Question Popular Question Self-Learner Popular Question Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 39903,209432,641606,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 39904,315093,1445649,Good Answer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 39905,242668,1204112,Popular Question,NULL,NULL,0,NULL,NULL 39906,82850,7018,Nice Answer Yearling Popular Question Custodian Custodian Inquisitive Yearling Yearling,NULL,NULL,0,NULL,NULL 39907,1060802,895582,NULL,NULL,NULL,0,NULL,NULL 39908,45269,1511258,NULL,NULL,NULL,0,NULL,NULL 39909,10546,1143426,Popular Question Yearling Nice Answer Enlightened Critic Informed Yearling Notable Question Promoter Census Good Answer Caucus Custodian Custodian Custodian Constituent Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 39910,1552505,238496,NULL,NULL,NULL,0,NULL,NULL 39911,200854,1415794,NULL,NULL,NULL,0,NULL,NULL 39912,24214,597897,Popular Question,NULL,NULL,0,NULL,NULL 39913,436494,1110311,Yearling Necromancer Caucus Caucus Promoter Benefactor Curious,NULL,NULL,0,NULL,NULL 39914,376823,214969,Critic Yearling Famous Question Caucus,NULL,NULL,0,NULL,NULL 39915,449468,30587,Nice Answer Famous Question Necromancer Good Answer Good Answer Notable Question Nice Answer Yearling Populist Good Answer Great Question Popular Question Popular Question Great Answer Popular Question Necromancer Yearling Necromancer Guru Nice Question Good Answer Necromancer Favorite Question Popular Question Necromancer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened,NULL,pThe memory subsystem on modern processor is restricted to accessing memory at the granularity and alignment of its word size this is the case for number of reasons ph2Speed h2pModern processors have multiple levels of cache memory that data must be pulled through supporting single byte reads would make the memory subsystem throughput tightly bound to the execution unit throughput aka cpu bound this is all reminiscent of how href http www differencebetween net technology difference between dma and pio rel noreferrer PIO mode was surpassed by DMA for many of the same reasons in hard drives ppThe CPU strongalways strong reads at its word size bytes on 32 bit processor so when you do an unaligned address access on processor that supports it the processor is going to read multiple words The CPU will read each word of memory that your requested address straddles This causes an amplification of up to 2X the number of memory transactions required to access the requested data ppBecause of this it can very easily be slower to read two bytes than four For example say you have struct in memory that looks like this ppre codestruct mystruct char one byte int four bytes short two bytes code prepOn 32 bit processor it would most likely be aligned like shown here pp img src https stack imgur com Vkg0j png alt Struct Layout ppThe processor can read each of these members in one transaction ppSay you had packed version of the struct maybe from the network where it was packed for transmission efficiency it might look something like this pp img src https stack imgur com Ebcwt png alt Packed Struct ppReading the first byte is going to be the same ppWhen you ask the processor to give you 16 bits from 0x0005 it will have to read word from from 0x0004 and shift left byte to place it in 16 bit register some extra work but most can handle that in one cycle ppWhen you ask for 32 bits from 0x0001 you ll get 2X amplification The processor will read from 0x0000 into the result register and shift left byte then read again from 0x0004 into temporary register shift right bytes then codeOR code it with the result register ph2Range h2pFor any given address space if the architecture can assume that the LSBs are always 32 bit machines then it can access times more memory the saved bits can represent distinct states or the same amount of memory with bits for something like flags Taking the LSBs off of an address would give you byte alignment also referred to as href http en wikipedia org wiki Stride of an array rel noreferrer stride of bytes Each time an address is incremented it is effectively incrementing bit not bit the last bits will always continue to be code00 code ppThis can even affect the physical design of the system If the address bus needs fewer bits there can be fewer pins on the CPU and fewer traces on the circuit board ph2Atomicity h2pThe CPU can operate on an aligned word of memory atomically meaning that no other instruction can interrupt that operation This is critical to the correct operation of many href http kukuruku co hub cpp lock free data structures basics atomicity and atomic primitives rel noreferrer lock free data structures and other href http www sciencedirect com science article pii 0304397588900965 rel noreferrer concurrency paradigms ph2Conclusion h2pThe memory system of processor is quite bit more complex and involved than described here discussion on href http www rcollins org articles pmbasics tspec a1 doc html rel noreferrer how an x86 processor actually addresses memory can help many processors work similarly ppThere are many more benefits to adhering to memory alignment that you can read at href http www ibm com developerworks library pa dalign rel noreferrer this IBM article ppA computer primary use is to transform data Modern memory architectures and technologies have been optimized over decades to facilitate getting more data in out and between more and faster execution units–in highly reliable way ph2Bonus Caches h2pAnother alignment for performance that alluded to previously is alignment on cache lines which are for example on some CPUs 64B ppFor more info on how much performance can be gained by leveraging caches take look at href http igoro com archive gallery of processor cache effects rel noreferrer Gallery of Processor Cache Effects from this href https stackoverflow com questions 14707803 line size of l1 and l2 caches question on cache line sizes pblockquote pUnderstanding of cache lines can be important for certain types of program optimizations For example alignment of data may determine whether an operation touches one or two cache lines As we saw in the example above this can easily mean that in the misaligned case the operation will be twice slower blockquote Many CPUs have special instructions for interlocked increment decrement and swaps among other atomic operations that even bad compiler will use in many cases such as this and barring memory fences the CPU itself is free to reorder instructions to execute most performantly Modern CPUs are incredibly complex especially when it comes to how caching the flow of data to and from main memory and the parallelization of the cores of modern processor pipeline are concerned,0,NULL,NULL 39916,605130,633432,Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39917,5929,745794,NULL,NULL,NULL,0,NULL,NULL 39918,908522,890784,NULL,NULL,NULL,0,NULL,NULL 39919,587317,319369,NULL,NULL,NULL,0,NULL,NULL 39920,309750,1203056,NULL,NULL,NULL,0,NULL,NULL 39921,2334805,996082,Notable Question,NULL,NULL,0,NULL,NULL 39922,36934,1672,Good Question Yearling Yearling Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 39923,158410,1212146,NULL,NULL,NULL,0,NULL,NULL 39924,386369,455168,Organizer Popular Question Popular Question Yearling Nice Question Nice Answer Inquisitive Popular Question Famous Question Nice Question Yearling Popular Question Nice Answer Citizen Patrol Famous Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Necromancer Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Good Question Necromancer Popular Question Popular Question Nice Question Famous Question Popular Question Quorum Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 39925,78654,589406,Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 39926,125867,723016,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 39927,465443,1183698,NULL,NULL,NULL,0,NULL,NULL 39928,10749,267566,Necromancer,NULL,NULL,0,NULL,NULL 39929,2904,892503,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 39930,1140122,372478,NULL,NULL,NULL,0,NULL,NULL 39931,52097,56069,Yearling Nice Answer Suffrage Nice Answer Mortarboard Necromancer Necromancer python Necromancer Caucus Yearling Electorate Nice Answer Necromancer Good Answer Documentation User Necromancer Census Yearling Custodian Necromancer Caucus Necromancer Great Answer,NULL,pUpdate using the wonderful href http docs python requests org en latest rel noreferrer requests library Note we are using the HEAD request which should happen more quickly then full GET or POST request ppre codeimport requeststry requests head https stackoverflow com print status code prints the int of the status code Find more at httpstatusrappers com except requests ConnectionError print failed to connect code pre Thanks updated the example URL,0,NULL,NULL 39932,269757,55689,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 39933,36872,882950,NULL,NULL,NULL,0,NULL,NULL 39934,70793,1405744,NULL,NULL,NULL,0,NULL,NULL 39935,164947,1123348,Famous Question,NULL,NULL,0,NULL,NULL 39936,959232,851139,NULL,NULL,NULL,0,NULL,NULL 39937,3322652,736764,Necromancer,NULL,NULL,0,NULL,NULL 39938,9801,736764,Necromancer,NULL,NULL,0,NULL,NULL 39939,10673981,736764,Necromancer,NULL,NULL,0,NULL,NULL 39940,270202,205090,Teacher,NULL,NULL,0,NULL,NULL 39941,299664,797035,NULL,NULL,NULL,0,NULL,NULL 39942,81859,52566,Yearling Proofreader Informed Great Question Tag Editor Yearling Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 39943,217478,1489996,NULL,NULL,NULL,0,NULL,NULL 39944,544704,259038,Custodian Custodian Yearling Nice Answer Guru Enlightened Good Answer Nice Answer Enlightened Announcer Guru Guru Great Answer Good Answer Guru Good Answer Nice Answer Enlightened Yearling Good Answer Guru Guru Good Answer Announcer Great Answer Yearling,NULL,NULL,0,NULL,NULL 39945,423455,612591,NULL,NULL,NULL,0,NULL,NULL 39946,463919,1079752,NULL,NULL,NULL,0,NULL,NULL 39947,374144,543733,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 39948,83670,543733,Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 39949,63526,182148,Self-Learner Yearling Famous Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 39950,1565,43955,NULL,NULL,NULL,0,NULL,NULL 39951,194598,147586,Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Famous Question Good Question Famous Question Good Question Famous Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Famous Question Great Question Famous Question Popular Question Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Famous Question Great Question Popular Question Popular Question Popular Question Nice Answer Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Good Question Yearling Popular Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Famous Question Popular Question Favorite Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Nice Question Famous Question Nice Question Popular Question Nice Question Yearling Popular Question Famous Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 39952,1564149,1036773,Nice Question Yearling Notable Question Popular Question Notable Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 39953,127631,511272,NULL,NULL,NULL,0,NULL,NULL 39954,324591,626188,NULL,NULL,NULL,0,NULL,NULL 39955,299211,1072106,Tumbleweed Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39956,1266006,158425,Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39957,428517,158425,Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 39958,93196,1487341,NULL,NULL,NULL,0,NULL,NULL 39959,179105,1369417,Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 39960,43014,76273,NULL,NULL,NULL,0,NULL,NULL 39961,325283,151899,Good Question Famous Question Famous Question Yearling Curious Nice Answer Nice Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 39962,586983,365709,Notable Question Famous Question Nice Answer Popular Question Notable Question Yearling Good Answer Guru Notable Question Good Question Yearling Good Question Popular Question Nice Answer Enlightened Notable Question Notable Question Notable Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 39963,607548,172927,Tumbleweed Nice Answer Scholar,NULL,NULL,0,NULL,NULL 39964,13405,699439,Critic,NULL,NULL,0,NULL,NULL 39965,216756,899035,NULL,NULL,NULL,0,NULL,NULL 39966,37152,264790,Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 39967,350236,339555,Commentator Informed Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 39968,4969,388085,NULL,NULL,NULL,0,NULL,NULL 39969,1323215,236948,NULL,NULL,NULL,0,NULL,NULL 39970,94829,553134,NULL,NULL,NULL,0,NULL,NULL 39971,364743,1100215,NULL,NULL,NULL,0,NULL,NULL 39972,263879,1017787,Nice Answer java Nice Question Inquisitive Necromancer Necromancer Popular Question Popular Question Popular Question Nice Question Documentation Beta Revival Nice Answer Notable Question Popular Question Notable Question Nice Answer Popular Question Nice Answer Yearling Notable Question Nice Answer Enlightened Good Answer Necromancer Notable Question Necromancer Notable Question Announcer Notable Question Good Question Popular Question Popular Question Popular Question Nice Answer Famous Question Popular Question Necromancer Revival Documentation User Yearling Nice Answer Announcer Good Answer Tenacious Popular Question Nice Answer Favorite Question Nice Answer Enlightened Notable Question Good Answer Popular Question Nice Answer Notable Question Popular Question Yearling Good Answer,NULL,strongUpdate 2016 03 26 strong ppThe method described no longer works if you are using npm3 since npm3 fetches all modules described in codepackage json code before running the codepreinstall code script This href https github com npm npm issues 10379 has been confirmed as bug ppThe official node js Heroku buildpack now includes codeheroku prebuild code and codeheroku postbuild code which will be run before and after codenpm install code respectively You should use these scripts instead of codepreinstall code and codepostinstall code in all cases to support both npm2 and npm3 ppIn other words your codepackage json code should resemble ppre code scripts heroku prebuild bash preinstall sh heroku postbuild bash postinstall sh code prehrpI ve come up with an alternative to Michael answer retaining the IMO favourable requirement of keeping your credentials out of source control whilst not requiring custom buildpack This was borne out of frustration that the href https github com thirdiron heroku buildpack nodejs buildpack linked by Michael is rather out of date ppThe solution is to setup and tear down the SSH environment in npm codepreinstall code and codepostinstall code scripts instead of in the buildpack ppFollow these instructions pulliCreate two scripts in your repo let call them codepreinstall sh code and codepostinstall sh code liliMake them executable codechmod sh code liliAdd the following to codepreinstall sh code li ulpre class lang bash prettyprint override code bin bash Generates an SSH config file for connections if config var exists if GIT SSH KEY then echo Detected SSH key for git Adding SSH config gt amp echo gt amp Ensure we have an ssh folder if ssh then mkdir ssh chmod 700 ssh fi Load the private key into file echo GIT SSH KEY base64 decode gt ssh deploy key Change the permissions on the file to be read only for this user chmod 400 ssh deploy key Setup the ssh config file echo Host github com IdentityFile ssh deploy key IdentitiesOnly yes UserKnownHostsFile dev null StrictHostKeyChecking no gt ssh config fi code preulliAdd the following to codepostinstall sh code li ulpre class lang bash prettyprint override code bin bash if GIT SSH KEY then echo Cleaning up SSH config gt amp echo gt amp Now that npm has finished running we shouldn need the ssh key config anymore Remove the files that we created rm ssh config rm ssh deploy key Clear that sensitive key data from the environment export GIT SSH KEY fi code preulli pAdd the following to your codepackage json code ppre code scripts preinstall bash preinstall sh postinstall bash postinstall sh code pre lili pGenerate private public key pair using codessh agent code liliAdd the public key as deploy key on Github liliCreate base64 encoded version of your private key and set it as the Heroku config var codeGIT SSH KEY code liliCommit and push your app to Github li ulpWhen Heroku builds your app before npm installs your dependencies the codepreinstall sh code script is run This creates private key file from the decoded contents of the codeGIT SSH KEY code environment variable and creates an SSH config file to tell SSH to use this file when connecting to codegithub com code If you are connecting to Bitbucket instead then update the codeHost code entry in codepreinstall sh code to codebitbucket org code npm then installs the modules using this SSH config After installation the private key is removed and the config is wiped ppThis allows Heroku to pull down your private modules via SSH while keeping the private key out of the codebase If your private key becomes compromised since it is just one half of deploy key you can revoke the public key in GitHub and regenerate the keypair ppAs an aside since GitHub deploy keys have read write permissions if you are hosting the module in GitHub organization you can instead create read only team and assign deploy user to it The deploy user can then be configured with the public half of the keypair This adds an extra layer of security to your module This looks good trying it out with your buildpack PR few comments call the scripts preinstall sh and postinstall sh so its clear they are bash scripts and when they are called What is the purpose of base64 encoding Just so it doesn have hard returns,0,NULL,NULL 39973,27219,2030,Good Question Guru Notable Question Documentation Beta Yearling Nice Answer Nice Answer Necromancer Revival ios Nice Question Announcer Good Question Revival Notable Question Yearling Documentation User Famous Question Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 39974,88226,971657,NULL,NULL,NULL,0,NULL,NULL 39975,100652,1402548,Supporter,NULL,NULL,0,NULL,NULL 39976,4139,135364,Revival Necromancer,NULL,NULL,0,NULL,NULL 39977,642841,708841,Popular Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 39978,915737,629045,NULL,NULL,NULL,0,NULL,NULL 39979,372427,1210042,NULL,NULL,NULL,0,NULL,NULL 39980,10137509,1210042,NULL,NULL,NULL,0,NULL,NULL 39981,42499,451539,Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 39982,18205,904062,Necromancer Yearling,NULL,NULL,0,NULL,NULL 39983,3506809,928062,Popular Question Nice Question Famous Question Nice Question Revival Notable Question Announcer Yearling Nice Question Necromancer Good Question Famous Question Yearling Nice Question Announcer Nice Answer Famous Question Nice Answer Popular Question Excavator Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 39984,597248,928062,Popular Question Nice Question Famous Question Nice Question Revival Notable Question Announcer Yearling Nice Question Necromancer Good Question Famous Question Yearling Nice Question Announcer Nice Answer Famous Question Nice Answer Popular Question Excavator Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 39985,378001,352360,Custodian Excavator Yearling Nice Answer Enlightened Nice Answer Nice Answer Caucus Constituent Yearling Good Answer Caucus Revival Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 39986,1375167,117055,NULL,NULL,NULL,0,NULL,NULL 39987,937425,891884,Teacher Critic Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 39988,686002,949748,NULL,NULL,NULL,0,NULL,NULL 39989,215583,1094825,NULL,NULL,NULL,0,NULL,NULL 39990,570241,887057,NULL,NULL,NULL,0,NULL,NULL 39991,156751,304689,NULL,NULL,NULL,0,NULL,NULL 39992,352018,1528317,NULL,NULL,NULL,0,NULL,NULL 39993,227264,1213319,Popular Question,NULL,NULL,0,NULL,NULL 39994,1518344,1356683,NULL,NULL,NULL,0,NULL,NULL 39995,719273,568903,NULL,NULL,NULL,0,NULL,NULL 39996,418646,593283,Yearling Nice Answer Nice Question Yearling Nice Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 39997,499623,679688,Popular Question Critic Teacher Yearling Popular Question Caucus Nice Question Popular Question Nice Question Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 39998,1177754,176402,Yearling Notable Question Famous Question Popular Question Yearling Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 39999,719178,1266387,Curious,NULL,NULL,0,NULL,NULL 40000,35805,468367,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 40001,186767,373496,Nice Question Famous Question Popular Question Good Question Great Answer Notable Question Yearling Famous Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Nice Question Popular Question Popular Question Nice Question Notable Question Yearling Famous Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 40002,424572,74743,Yearling,NULL,NULL,0,NULL,NULL 40003,55662,508994,Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 40004,4312,890670,NULL,NULL,NULL,0,NULL,NULL 40005,422852,1190297,NULL,NULL,NULL,0,NULL,NULL 40006,243682,786389,Necromancer Explainer Nice Answer Yearling Caucus Suffrage Vox Populi Civic Duty Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40007,1265880,684138,NULL,NULL,NULL,0,NULL,NULL 40008,60225,308514,Yearling,NULL,NULL,0,NULL,NULL 40009,516888,511753,NULL,NULL,NULL,0,NULL,NULL 40010,156708,9616,NULL,NULL,NULL,0,NULL,NULL 40011,192375,477116,Popular Question Nice Question Famous Question Nice Question Self-Learner Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 40012,193879,1042134,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40013,121249,327167,NULL,NULL,NULL,0,NULL,NULL 40014,523157,20641,Popular Question Famous Question Notable Question Yearling Stellar Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 40015,638362,124485,NULL,NULL,NULL,0,NULL,NULL 40016,97879,193436,NULL,NULL,NULL,0,NULL,NULL 40017,158675,216261,NULL,NULL,NULL,0,NULL,NULL 40018,343,86937,Nice Answer Nice Answer Enlightened Nice Answer Famous Question Yearling backbone.js Nice Answer Enlightened Nice Question Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling Announcer Good Question Nice Answer Nice Answer Famous Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 40019,765697,1131052,Popular Question Nice Answer Yearling Informed Popular Question,NULL,NULL,0,NULL,NULL 40020,158331,516989,Revival Yearling Good Answer Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 40021,279861,1246419,Scholar Teacher Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 40022,40962,297561,Necromancer,NULL,NULL,0,NULL,NULL 40023,551929,244883,Famous Question Census Caucus,NULL,NULL,0,NULL,NULL 40024,924681,906974,Tumbleweed,NULL,NULL,0,NULL,NULL 40025,76158,825550,NULL,NULL,NULL,0,NULL,NULL 40026,301195,762148,NULL,NULL,NULL,0,NULL,NULL 40027,199038,306520,NULL,NULL,NULL,0,NULL,NULL 40028,257278,1098763,NULL,NULL,NULL,0,NULL,NULL 40029,223146,235179,Nice Answer Necromancer Good Question Notable Question Popular Question Nice Question Popular Question Popular Question Caucus Yearling Notable Question Famous Question Caucus Famous Question Revival Popular Question Notable Question Yearling Announcer Necromancer Popular Question Good Answer Good Answer Nice Answer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 40030,206661,152621,Guru Yearling Good Answer Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 40031,320579,1106377,NULL,NULL,NULL,0,NULL,NULL 40032,485283,1028906,Yearling Caucus Nice Answer Enlightened Popular Question Commentator Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 40033,187470,1315990,NULL,NULL,NULL,0,NULL,NULL 40034,138097,570540,NULL,NULL,NULL,0,NULL,NULL 40035,23683,1357584,Famous Question Yearling,NULL,NULL,0,NULL,NULL 40036,323119,280770,Yearling Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 40037,318743,601754,NULL,NULL,NULL,0,NULL,NULL 40038,13882,364856,NULL,NULL,NULL,0,NULL,NULL 40039,4484945,1163771,Popular Question Popular Question Notable Question Curious Notable Question Investor Altruist Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40040,3846191,1163771,Popular Question Popular Question Notable Question Curious Notable Question Investor Altruist Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40041,1519922,1163771,Popular Question Popular Question Notable Question Curious Notable Question Investor Altruist Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40042,31071,10768,Announcer Yearling Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 40043,253812,1200801,Scholar Critic Autobiographer,NULL,NULL,0,NULL,NULL 40044,31521,392949,Nice Question Good Answer Nice Answer Enlightened Nice Answer Guru Guru Nice Answer Guru Nice Answer Enlightened Good Answer Nice Question Good Answer Famous Question Yearling Nice Answer Enlightened numba Good Answer Nice Answer Enlightened Nice Answer Enlightened Populist Popular Question Nice Answer Enlightened Notable Question Nice Answer Good Answer Good Answer Good Answer Good Answer Guru Nice Answer Guru Nice Answer Good Answer Notable Question Good Answer Good Answer Notable Question Yearling Tag Editor Great Answer Nice Question Good Answer Great Answer cython Nice Answer Good Answer Good Answer Populist Nice Answer Good Answer Nice Answer Guru Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Great Answer Guru Guru Yearling Great Answer Announcer Sportsmanship Guru Good Question Good Answer Guru Great Answer Nice Answer Enlightened Famous Question Great Answer,NULL,NULL,0,NULL,NULL 40045,552175,1191834,Yearling Custodian Organizer Citizen Patrol Custodian Custodian Custodian Revival Good Answer Great Answer Excavator Notable Question Yearling Commentator Nice Answer Nice Answer Good Answer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 40046,5074129,1191834,Yearling Custodian Organizer Citizen Patrol Custodian Custodian Custodian Revival Good Answer Great Answer Excavator Notable Question Yearling Commentator Nice Answer Nice Answer Good Answer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 40047,90864,578802,NULL,NULL,NULL,0,NULL,NULL 40048,377648,310462,NULL,NULL,NULL,0,NULL,NULL 40049,283171,268265,NULL,NULL,NULL,0,NULL,NULL 40050,6641110,46540,Necromancer Good Answer Famous Question Yearling Popular Question Popular Question Nice Answer Nice Answer Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40051,109010,46540,Necromancer Good Answer Famous Question Yearling Popular Question Popular Question Nice Answer Nice Answer Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40052,221362,1022851,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40053,36470,167512,Good Question,NULL,NULL,0,NULL,NULL 40054,313362,1218767,NULL,NULL,NULL,0,NULL,NULL 40055,256565,253154,Autobiographer Popular Question Popular Question Commentator Informed Notable Question Teacher Critic Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 40056,156414,896931,Scholar Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 40057,30838,28664,Yearling Yearling Civic Duty Popular Question Yearling,NULL,NULL,0,NULL,NULL 40058,644574,33194,Yearling Good Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 40059,416669,658604,Nice Answer Enlightened Yearling Necromancer Nice Answer Yearling Census Good Answer Nice Answer Announcer Yearling Custodian Custodian Custodian Citizen Patrol Famous Question Revival,NULL,NULL,0,NULL,NULL 40060,37582,92714,Good Question Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Good Answer Good Question Nice Question Famous Question Popular Question Great Question Nice Answer Famous Question Notable Question Caucus Constituent Notable Question Famous Question Guru Notable Question Popular Question Nice Question Yearling iphone Famous Question Notable Question Nice Question Nice Answer Enlightened Notable Question Documentation User Notable Question Famous Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 40061,48002,576339,Critic Caucus Constituent Yearling Civic Duty Nice Answer,NULL,NULL,0,NULL,NULL 40062,171149,1375343,NULL,NULL,NULL,0,NULL,NULL 40063,518128,1375343,NULL,NULL,NULL,0,NULL,NULL 40064,173228,1375343,NULL,NULL,NULL,0,NULL,NULL 40065,462874,361546,Informed Student Scholar Critic,NULL,NULL,0,NULL,NULL 40066,216655,344405,Teacher Commentator Informed Revival Famous Question Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 40067,210742,66699,Yearling Notable Question ruby-on-rails Guru Good Answer Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40068,168591,175082,Yearling Notable Question Popular Question Yearling Investor Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 40069,9236181,963198,Teacher,NULL,NULL,0,NULL,NULL 40070,6492784,963198,Teacher,NULL,NULL,0,NULL,NULL 40071,80548,963198,Teacher,NULL,NULL,0,NULL,NULL 40072,194100,1247011,NULL,NULL,NULL,0,NULL,NULL 40073,819471,796593,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40074,82480,602215,Yearling Custodian Nice Answer Necromancer Yearling Nice Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 40075,71837,1203853,NULL,NULL,NULL,0,NULL,NULL 40076,92143,546404,Good Answer Popular Question Caucus Yearling Popular Question Popular Question Guru Yearling Tumbleweed Custodian Favorite Question,NULL,NULL,0,NULL,NULL 40077,193190,141186,Famous Question Nice Question Favorite Question Famous Question Yearling Nice Question Popular Question Famous Question Popular Question java Popular Question Notable Question Yearling Nice Answer Great Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 40078,175730,1533474,Editor Curious Necromancer Popular Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40079,290358,1133848,Yearling Great Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 40080,364511,402555,NULL,NULL,NULL,0,NULL,NULL 40081,425393,168005,Custodian Popular Question Tumbleweed Popular Question Caucus Constituent Critic Yearling Caucus Constituent Caucus Popular Question,NULL,Kendo UI ASP NET MVC module is unable to find jQuery in Webpack bundle jquery asp net mvc webpack kendo ui kendo asp net mvc pI posted an issue for Webpack and was asked to post the question here pp href https github com webpack webpack issues 5594 rel nofollow noreferrer https github com webpack webpack issues 5594 ppIt important to note that the all JavaScript version of the grid works fine and has no issue finding jQuery It only the Razor version that hosed ppI get an error to the console that states that jQuery is not defined when using the Razor syntax for href http demos telerik com aspnet mvc grid rel nofollow noreferrer Kendo UI ASP NET MVC ppA support ticket was initially put in with Telerik who subsequently asked that ticket be submitted with Webpack stating that pblockquote the main issue is that jQuery has to be available in the bundle and loaded before the Kendo UI scripts and it is not blockquotepI at loss as to whether should expect this to work Does anyone have any ideas on how to fix this Or is it that this part of KendoUI can only be used with more traditional methods of loading dependencies If you’re using the MVC package then you’re basically out of luck The Telerik folks were never able to give me good answer However you might be okay if you just include jQuery the old fashioned way,1,Kendo UI ASP NET MVC module is unable to find jQuery in Webpack bundle jquery asp net mvc webpack kendo ui kendo asp net mvc pI posted an issue for Webpack and was asked to post the question here pp href https github com webpack webpack issues 5594 rel nofollow noreferrer https github com webpack webpack issues 5594 ppIt important to note that the all JavaScript version of the grid works fine and has no issue finding jQuery It only the Razor version that hosed ppI get an error to the console that states that jQuery is not defined when using the Razor syntax for href http demos telerik com aspnet mvc grid rel nofollow noreferrer Kendo UI ASP NET MVC ppA support ticket was initially put in with Telerik who subsequently asked that ticket be submitted with Webpack stating that pblockquote the main issue is that jQuery has to be available in the bundle and loaded before the Kendo UI scripts and it is not blockquotepI at loss as to whether should expect this to work Does anyone have any ideas on how to fix this Or is it that this part of KendoUI can only be used with more traditional methods of loading dependencies,NULL 40082,23360,551887,Student Yearling Popular Question Informed Necromancer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40083,28905,1370358,NULL,NULL,NULL,0,NULL,NULL 40084,5392,896136,NULL,NULL,NULL,0,NULL,NULL 40085,369039,713546,NULL,NULL,NULL,0,NULL,NULL 40086,9753,149156,Curious Yearling Popular Question Popular Question Yearling Popular Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 40087,4176,242077,Nice Question Yearling Documentation Beta Yearling Informed Commentator Nice Answer Revival Documentation User Yearling,NULL,NULL,0,NULL,NULL 40088,68512,832409,Necromancer Popular Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40089,563525,201199,Nice Answer Informed Guru Great Answer iphone Necromancer Great Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Proofreader Nice Answer Enlightened Nice Answer Great Answer Nice Answer cocoa-touch Nice Answer Enlightened Yearling ios Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened interface-builder Nice Answer Good Answer Nice Answer Enlightened Great Answer Guru swift Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened macos macos Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Yearling Disciplined,NULL,NULL,0,NULL,NULL 40090,134363,77070,Announcer Custodian Yearling Nice Answer Popular Question Nice Answer Popular Question Yearling Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40091,95619,502235,Famous Question Nice Question Popular Question Popular Question Revival Famous Question Yearling,NULL,NULL,0,NULL,NULL 40092,895,31308,Announcer Popular Question Inquisitive Nice Answer Nice Answer Notable Question Yearling Great Question Famous Question Great Answer Favorite Question Famous Question Excavator Yearling Announcer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 40093,60570,915135,Autobiographer Informed,NULL,NULL,0,NULL,NULL 40094,727138,1525466,Editor Tumbleweed Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 40095,727414,634457,NULL,NULL,NULL,0,NULL,NULL 40096,113113,579336,NULL,NULL,NULL,0,NULL,NULL 40097,87945,1193691,NULL,NULL,NULL,0,NULL,NULL 40098,177048,139546,NULL,NULL,NULL,0,NULL,NULL 40099,54716,227765,Nice Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Guru Yearling Good Answer Good Answer Good Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 40100,1226842,1368761,NULL,NULL,NULL,0,NULL,NULL 40101,2796650,834607,Popular Question Yearling Popular Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 40102,563491,796840,NULL,NULL,NULL,0,NULL,NULL 40103,1348874,1064427,Favorite Question Critic Yearling Great Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 40104,6625706,1414031,Popular Question,NULL,NULL,0,NULL,NULL 40105,323535,885093,NULL,NULL,NULL,0,NULL,NULL 40106,20303,568383,Popular Question Caucus,NULL,NULL,0,NULL,NULL 40107,247813,1361318,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40108,1125089,897463,NULL,NULL,NULL,0,NULL,NULL 40109,141095,66105,Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 40110,134749,100038,Nice Answer Revival,NULL,NULL,0,NULL,NULL 40111,577376,947898,Necromancer Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 40112,48684,864604,Nice Answer Enlightened Great Question Good Question Yearling Good Answer Popular Question Good Answer Good Answer Yearling Good Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 40113,323711,591287,NULL,NULL,NULL,0,NULL,NULL 40114,5957,293280,Necromancer Necromancer Revival Nice Answer Good Answer Necromancer Necromancer Announcer Popular Question Nice Answer Yearling Necromancer Announcer Nice Answer Necromancer Nice Answer Nice Answer Necromancer Nice Answer Nice Question Famous Question Popular Question Necromancer Necromancer Nice Answer Announcer Popular Question Necromancer Nice Question Good Answer Nice Answer Nice Answer Announcer Revival Revival Necromancer Announcer Revival Notable Question Necromancer Nice Answer Good Answer Great Answer Populist Necromancer Necromancer Good Answer Nice Answer Revival Nice Answer Necromancer Good Answer Revival Necromancer Necromancer Necromancer Necromancer Revival Necromancer Good Answer Necromancer Yearling Revival Necromancer Nice Answer Good Answer Good Answer Good Answer Necromancer Necromancer Announcer Necromancer Revival Announcer Announcer Necromancer Good Answer Announcer Announcer Necromancer Announcer Announcer Caucus Necromancer Announcer Constituent Nice Answer Popular Question Necromancer Notable Question Revival Necromancer Announcer Revival Necromancer Revival Announcer Nice Answer Necromancer Nice Question Revival Nice Answer Announcer Revival Documentation User Popular Question Nice Answer Announcer Announcer Necromancer Necromancer Nice Answer Notable Question Necromancer Populist Nice Answer Necromancer Announcer Nice Answer Enlightened Revival Necromancer Announcer Necromancer Good Answer Peer Pressure Enthusiast Announcer Nice Answer Good Answer ruby-on-rails-3 Yearling Necromancer Caucus Nice Answer Constituent Necromancer Nice Answer Nice Answer Good Answer Nice Answer Notable Question Good Question Necromancer react-native Famous Question Necromancer Announcer Announcer Nice Answer Necromancer Nice Answer Good Answer Revival Necromancer Nice Answer Nice Answer javascript Necromancer Necromancer Necromancer Necromancer Nice Answer Necromancer Announcer Nice Answer,NULL,pSimilar to nathanvda response use camelize rather than capitalize to support model files with underscores and use String constantize rather than Kernel const get ppAdditionally if you keep non activerecord models in your models folder search class for consolidating search logic you ll want to check the class is an active record model ppre codeDir Rails root join app models rb to each do filename klass File basename filename rb camelize constantize next unless klass ancestors include ActiveRecord Base next if klass abstract class do something with klassend code pre You ll likely want to skip any abstract classes that real models inherit from depending on what you re doing You can do this by adding next if klass abstract class ve added this to your answer to helps others,1,NULL,How to set config action controller default url options host on per environment basis ruby on rails ruby on rails actioncontroller pRight now using this which works for the development host but have to manually change the host code when move to production ph3post rb h3pre codedef share all url Rails application routes url helpers post url self host gt localhost 3000 if user authentications where provider gt twitter any user twitter share url endend code prepI like to use this and then define the default url options per environment ph3post rb h3pre codedef share all url Rails application routes url helpers post url self if user authentications where provider gt twitter any user twitter share url endend code prepI ve tried adding this to my config environments development rb but still get the Missing host to link to Please provide host parameter or set default url options host error ph3development rb h3pre codeconfig action controller default url options host gt localhost 3000 code prepAnd even tried it this way ph3development rb h3pre codeconfig action controller default url options host gt localhost port gt 3000 code prepEDIT ppI ve now also followed this and still the same error guide href http edgeguides rubyonrails org action controller overview html default url options rel noreferrer http edgeguides rubyonrails org action controller overview html default url options ph3application controller h3pre codeclass ApplicationController lt ActionController Base protect from forgery include ApplicationHelper def default url options if Rails env production host gt example com else host gt example1 com end endend code prepThis is driving me crazy what am missing here h2Inherit your Application codedefault url options code from codeActionMailer code h2pYou want to keep things as DRY as possible so ideally you don want to hard code your host and port in multiple places for the same environment unless your codeActionMailer code emactually em uses different host and port than the rest of your codeApplication code ppTo set the codedefault url options code for your entire codeApplication code simply add the following line to your codeconfig environment rb code file changing codeMyApp code to your app name ppre code Set the default host and port to be the same as Action Mailer MyApp Application default url options MyApp Application config action mailer default url options code prepThis will fix your problem and automatically set your codeApplication code codedefault url options code to the same as your codeconfig action mailer default url options code ppre code MyApp Application config action mailer default url options gt host gt lvh me port gt 3000 MyApp Application default url options gt host gt lvh me port gt 3000 code pre 40115,172535,238280,NULL,NULL,NULL,0,NULL,NULL 40116,175210,1215295,NULL,NULL,NULL,0,NULL,NULL 40117,1093808,870226,NULL,NULL,NULL,0,NULL,NULL 40118,210821,114074,Notable Question Supporter Famous Question,NULL,NULL,0,NULL,NULL 40119,103810,915991,NULL,NULL,NULL,0,NULL,NULL 40120,382999,1363790,Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 40121,186651,150762,Yearling Great Answer Yearling Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 40122,518969,90483,Yearling,NULL,NULL,0,NULL,NULL 40123,454221,821944,NULL,NULL,NULL,0,NULL,NULL 40124,312015,655204,Notable Question,NULL,NULL,0,NULL,NULL 40125,15133,597728,Yearling Guru,NULL,NULL,0,NULL,NULL 40126,18325,910628,NULL,NULL,NULL,0,NULL,NULL 40127,1508208,424703,NULL,NULL,NULL,0,NULL,NULL 40128,37553,490681,Announcer Necromancer,NULL,NULL,0,NULL,NULL 40129,7753,12322,Notable Question,NULL,NULL,0,NULL,NULL 40130,914703,599519,NULL,NULL,NULL,0,NULL,NULL 40131,354165,1257860,Student,NULL,NULL,0,NULL,NULL 40132,8624,1529226,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 40133,289074,1480888,NULL,NULL,NULL,0,NULL,NULL 40134,273629,850415,NULL,NULL,NULL,0,NULL,NULL 40135,73938,254103,Yearling Nice Answer Proofreader Yearling Popular Question Guru Famous Question Nice Answer Custodian Notable Question Notable Question Yearling Custodian Custodian Custodian Reviewer Caucus Custodian Good Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 40136,629076,1314824,Good Answer Yearling Caucus Famous Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 40137,78033,940926,NULL,NULL,NULL,0,NULL,NULL 40138,22215,95176,Yearling Caucus Popular Question Caucus Custodian Nice Question Nice Answer Census Notable Question Caucus,NULL,NULL,0,NULL,NULL 40139,818873,188308,Editor,NULL,NULL,0,NULL,NULL 40140,194445,475468,Nice Answer Notable Question Yearling Good Question Guru Famous Question Enthusiast Curious Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 40141,87773,1075163,Informed Curious,NULL,NULL,0,NULL,NULL 40142,168418,214038,Popular Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 40143,222273,920510,NULL,NULL,NULL,0,NULL,NULL 40144,2592451,1081522,Teacher,NULL,NULL,0,NULL,NULL 40145,205644,697007,NULL,NULL,NULL,0,NULL,NULL 40146,161978,876965,Popular Question Notable Question Notable Question Critic Notable Question Caucus Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40147,47965,1428617,Teacher Editor,NULL,NULL,0,NULL,NULL 40148,112394,1098300,NULL,NULL,NULL,0,NULL,NULL 40149,385513,69545,Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened clos Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Custodian Nice Answer Nice Answer Enlightened Nice Answer Enlightened Taxonomist Necromancer Good Answer Nice Answer Nice Answer Announcer macros Nice Answer Documentation Pioneer Nice Answer Enlightened Nice Answer function sbcl Nice Answer Enlightened scheme Nice Answer Nice Answer Enlightened Caucus Good Answer lambda Good Answer Quorum Nice Answer Student Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Copy Editor Guru Nice Answer Yearling Good Answer Announcer slime Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Nice Answer Announcer Good Answer Good Answer Announcer Good Answer Nice Answer Documentation User arrays Nice Answer Good Answer Nice Answer Enlightened format loops Nice Answer Yearling Nice Answer Enlightened Nice Answer string Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Necromancer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Necromancer Announcer,NULL,strongKeyword Symbols strong pp code foo code is em href http www lispworks com documentation HyperSpec Body kwd htm keyword rel nofollow noreferrer keyword symbol em pulliinterned in and exported from the codeKEYWORD code package liliconstantly bound to itself li ulp strongUsage strong ppKeyword symbols are used when one needs the combination of the following properties pullia symbol is the right data structure lilisymbols with the same name should be unique by interning them in package package codeKEYWORD code lilidifferent packages are not needed or wanted package codeKEYWORD code liliwriting the symbol should be easy by not needing to quote them code foo code better than code foo code lilithe ability to act as variable with different values is not needed code foo code evaluates to code foo code itself and only to code foo code li ulpIn Common Lisp generally symbols can be in package kind of namespace ppAn unexported symbol codebar code in package codefoo code is written as codefoo bar code The double colon is between the package name and the symbol name ppAn exported symbol then is written as codefoo bar code single colon is used ppIf the symbol is available in the current package then is written as codebar code without the package pp strongThe package codeKEYWORD code strong ppThere is special package called codeKEYWORD code symbol codebar code in that package is simply and always written as code bar code pp strongExamples strong ppThese keyword symbols have also these interesting properties the symbols are automatically exported from the package codeKEYWORD code so codekeyword bar code codekeyword bar code code bar code and code bar code are all the same symbol and they evaluate to themselves ppre codeCL USER gt bar BARCL USER gt describe bar BAR is SYMBOLNAME BAR VALUE BARFUNCTION lt unbound function gt PLIST NILPACKAGE lt The KEYWORD package internal 5830 8192 external gt CL USER gt eq keyword bar bar TCL USER gt eq bar bar quoted or unquoted each subform evaluates to barT code prep strongUsage strong ppKeyword symbols are used for example as names in named arguments ppre code defun foo amp key bar bar 10 foo bar code prepTypically they are also used in arguments to instance and structure construction ppre code defstruct node state parent action code prep codeDEFSTRUCT code is Common Lisp macro and it generates several functions One of them is function codeMAKE NODE code which can be used as ppre code make node state open parent some parent action an action code prepNote sometimes the data might also be keyword For example in above form the state might be code open code and not codeopen code ppre code make node state open parent some parent action an action code pre Yes every interned symbol exported or not exported can be written as package name Only exported symbols can be written as package name Only keyword symbols can be written as name strongKeyword Symbols strong pp code foo code is em href http www lispworks com documentation HyperSpec Body kwd htm keyword rel nofollow noreferrer keyword symbol em pulliinterned in and exported from the codeKEYWORD code package liliconstantly bound to itself li ulp strongUsage strong ppKeyword symbols are used when one needs the combination of the following properties pullia symbol is the right data structure lilisymbols with the same name should be unique by interning them in package package codeKEYWORD code lilidifferent packages are not needed or wanted package codeKEYWORD code liliwriting the symbol should be easy by not needing to quote them code foo code better than code foo code lilithe ability to act as variable with different values is not needed code foo code evaluates to code foo code itself and only to code foo code li ulpIn Common Lisp generally symbols can be in package kind of namespace ppAn unexported symbol codebar code in package codefoo code is written as codefoo bar code The double colon is between the package name and the symbol name ppAn exported symbol then is written as codefoo bar code single colon is used ppIf the symbol is available in the current package then is written as codebar code without the package pp strongThe package codeKEYWORD code strong ppThere is special package called codeKEYWORD code symbol codebar code in that package is simply and always written as code bar code pp strongExamples strong ppThese keyword symbols have also these interesting properties the symbols are automatically exported from the package codeKEYWORD code so codekeyword bar code codekeyword bar code code bar code and code bar code are all the same symbol and they evaluate to themselves ppre codeCL USER gt bar BARCL USER gt describe bar BAR is SYMBOLNAME BAR VALUE BARFUNCTION lt unbound function gt PLIST NILPACKAGE lt The KEYWORD package internal 5830 8192 external gt CL USER gt eq keyword bar bar TCL USER gt eq bar bar quoted or unquoted each subform evaluates to barT code prep strongUsage strong ppKeyword symbols are used for example as names in named arguments ppre code defun foo amp key bar bar 10 foo bar code prepTypically they are also used in arguments to instance and structure construction ppre code defstruct node state parent action code prep codeDEFSTRUCT code is Common Lisp macro and it generates several functions One of them is function codeMAKE NODE code which can be used as ppre code make node state open parent some parent action an action code prepNote sometimes the data might also be keyword For example in above form the state might be code open code and not codeopen code ppre code make node state open parent some parent action an action code pre bar bar keyword bar keyword bar are all the same symbol mapcar lambda sym eq sym bar bar bar keyword bar keyword bar,1,NULL,Issues when write loop collect in macro macros lisp common lisp clisp pguys ppToday want to write sigma macro to calculate the sum from the flexible expression input ppThe code below is written this afternoon But it does not work follow my purpose ppre code defmacro sigma exp ll loop for in ll collect progn setf elt exp print exp exp gt gt pprint macroexpand sigma gt gt code prepI want it works code code but codeloop collect code give me the weird answer ppWhy does it work like this Do have some methods to fix this pIf you want freshly consed list then codecopy list code is way ppre code defmacro sigma exp ll loop for in ll and exp1 copy list exp do setf second exp1 collect exp1 code prepNested backquote expressions are also possible ppre code defmacro sigma op arg0 amp rest args ll declare ignore arg0 loop for in ll collect op code pre 40150,431296,976675,NULL,NULL,NULL,0,NULL,NULL 40151,374924,182641,Informed Necromancer,NULL,NULL,0,NULL,NULL 40152,34439,1001233,NULL,NULL,NULL,0,NULL,NULL 40153,310608,483924,NULL,NULL,NULL,0,NULL,NULL 40154,757519,483924,NULL,NULL,NULL,0,NULL,NULL 40155,54832,20497,Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 40156,862176,330995,Good Question Notable Question Yearling Nice Answer Popular Question Notable Question Famous Question Yearling Revival Census Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 40157,814428,765968,NULL,NULL,NULL,0,NULL,NULL 40158,386977,610599,Popular Question Popular Question Popular Question Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 40159,404787,313624,NULL,NULL,NULL,0,NULL,NULL 40160,286407,113079,Nice Answer Nice Answer Nice Question Notable Question Nice Question Yearling Self-Learner Nice Answer Notable Question Popular Question xcode Necromancer Caucus Constituent Popular Question Revival Announcer Good Answer Yearling Famous Question Notable Question Caucus Constituent Nice Answer Popular Question Famous Question Notable Question Nice Answer Enlightened Caucus Constituent Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 40161,1121480,131014,NULL,NULL,NULL,0,NULL,NULL 40162,78184,396573,Yearling Necromancer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 40163,1723554,460695,Supporter,NULL,NULL,0,NULL,NULL 40164,329686,678777,Caucus Constituent,NULL,NULL,0,NULL,NULL 40165,1000658,902326,NULL,NULL,NULL,0,NULL,NULL 40166,24643,191692,NULL,NULL,NULL,0,NULL,NULL 40167,65219,1005466,Student Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 40168,463998,800925,NULL,NULL,NULL,0,NULL,NULL 40169,1092662,780890,NULL,NULL,NULL,0,NULL,NULL 40170,592176,335890,NULL,NULL,NULL,0,NULL,NULL 40171,1155758,435892,Necromancer Yearling,NULL,NULL,0,NULL,NULL 40172,207853,1032207,NULL,NULL,NULL,0,NULL,NULL 40173,441297,281873,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40174,1104759,281873,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40175,6501984,730667,Necromancer Nice Answer Commentator Yearling Student,NULL,NULL,0,NULL,NULL 40176,171823,567183,NULL,NULL,NULL,0,NULL,NULL 40177,413048,388594,Notable Question,NULL,NULL,0,NULL,NULL 40178,2131407,906911,NULL,NULL,NULL,0,NULL,NULL 40179,1994261,1201121,NULL,NULL,NULL,0,NULL,NULL 40180,1566356,133932,Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 40181,486428,657144,NULL,NULL,NULL,0,NULL,NULL 40182,616199,1154764,Notable Question,NULL,NULL,0,NULL,NULL 40183,233248,1078602,NULL,NULL,NULL,0,NULL,NULL 40184,101215,1130203,NULL,NULL,NULL,0,NULL,NULL 40185,587215,1130203,NULL,NULL,NULL,0,NULL,NULL 40186,20882,344304,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer html Caucus javascript Nice Answer Good Answer Notable Question Good Answer Yearling Announcer Nice Answer Good Answer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 40187,1508249,958868,NULL,NULL,NULL,0,NULL,NULL 40188,345993,1039320,Curious Popular Question Notable Question Explainer Yearling Critic Caucus Famous Question Nice Question Autobiographer Yearling,NULL,NULL,0,NULL,NULL 40189,938700,694560,Commentator Critic Necromancer,NULL,NULL,0,NULL,NULL 40190,126086,686190,NULL,NULL,NULL,0,NULL,NULL 40191,6535213,686190,NULL,NULL,NULL,0,NULL,NULL 40192,268747,189069,Autobiographer Teacher,NULL,NULL,0,NULL,NULL 40193,290691,350334,Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40194,54896,146932,Revival Yearling Documentation User Civic Duty Popular Question Nice Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 40195,1478326,1300885,NULL,NULL,NULL,0,NULL,NULL 40196,101997,100614,NULL,NULL,NULL,0,NULL,NULL 40197,312239,910172,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 40198,127817,409384,Notable Question,NULL,NULL,0,NULL,NULL 40199,107164,240716,Nice Answer Caucus Constituent Commentator Informed Custodian Yearling Organizer Yearling Citizen Patrol Yearling Yearling Tenacious Nice Answer Yearling Documentation User Revival Nice Answer Yearling Good Answer Caucus Custodian Populist Custodian Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 40200,562180,270433,Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40201,5476367,489361,NULL,NULL,NULL,0,NULL,NULL 40202,185852,103926,Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 40203,7893976,869514,NULL,NULL,NULL,0,NULL,NULL 40204,550060,379828,Yearling Famous Question Notable Question Nice Question Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 40205,563358,620334,Popular Question,NULL,NULL,0,NULL,NULL 40206,163492,373262,Popular Question Announcer Announcer Booster Announcer swift Yearling Popular Question Good Question Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened realm Good Answer Guru Caucus Mortarboard Announcer ios Announcer Publicist Notable Question Enlightened Guru Announcer Nice Answer Enlightened Guru Nice Answer Yearling Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Announcer Yearling Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer,NULL,pUPDATE 10 27 2014 ppBidirectional relationships are now supported See Realm docs href http realm io docs cocoa latest inverse relationships rel nofollow http realm io docs cocoa latest inverse relationships ppORIGINAL ANSWER ppBidirectional relationships must be explicitly linked at this time Here an example ppre code Box Item RLMObject Box box PE Item Box RLMObject RLMArray lt Item gt items Item item Item alloc init Box box Box alloc initWithObject item item box box code prepWe have plans to simplify this pattern in the future ppThis answer was taken from href https github com realm realm cocoa issues 677 issuecomment 50182237 rel nofollow GitHub All Android updates will be posted to https github com realm realm java issues 607,0,NULL,NULL 40207,106342,926140,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40208,430399,454780,Great Answer Necromancer Notable Question Notable Question Populist Notable Question Popular Question Popular Question Necromancer Popular Question Popular Question Notable Question Announcer Nice Answer Popular Question Great Question Notable Question Popular Question Socratic Nice Answer Famous Question Yearling Good Question Great Answer Notable Question Notable Question Famous Question Revival Nice Answer Notable Question Notable Question Famous Question Announcer Popular Question Announcer Favorite Question Popular Question Good Answer Famous Question Notable Question Good Question Notable Question Necromancer Nice Question Notable Question Popular Question Nice Question Famous Question Revival Notable Question Nice Question Custodian Popular Question Populist Good Question Popular Question Popular Question Popular Question Yearling Good Question Nice Answer Notable Question Necromancer Notable Question Favorite Question Notable Question Popular Question Popular Question Famous Question Benefactor Announcer Popular Question Popular Question Good Question Notable Question Good Answer Nice Answer Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Nice Answer Notable Question Notable Question Notable Question Great Question Notable Question Famous Question Yearling Famous Question Popular Question Nice Answer Popular Question,NULL,pWell you can use the codetypeof code operator and if the identifier doesn exist in any place of the scope chain it will emnot em throw codeReferenceError code it will just return code undefined code ppre codeif typeof ModuleName undefined code prepRemember also that the codethis code value on Global code refers to the global object meaning that if your codeif code statement is on the global context you can simply check codethis ModuleName code ppAbout the code function return this code technique you are right on strict mode the codethis code value will simply be codeundefined code ppUnder strict mode there are two ways to get reference to the Global object no matter where you are pulli pThrough the codeFunction code constructor ppre codevar global Function return this code pre li ulpFunctions created with the codeFunction code constructor don inherit the strictness of the caller they are strict only if they start their body with the code use strict code directive otherwise they are non strict ppThis method is compatible with any ES3 implementation pulli pThrough an emindirect codeeval code call em for example ppre code use strict var get eval var global get this code pre li ulpThe above will work because in ES5 indirect calls to codeeval code use the href http ecma262 com ELS5 HTML htm Section 10 rel noreferrer global environment as both the variable environment and lexical environment for the eval code ppSee details on href http ecma262 com ELS5 HTML htm Section 10 rel noreferrer Entering Eval Code Step ppBut be aware that the last solution will not work on ES3 implementations because an indirect call to codeeval code on ES3 will use the variable and lexical environments of the caller as the environments for the eval code itself ppAnd at last you may find useful to detect if strict mode is supported ppre codevar isStrictSupported function use strict return this code pre In ES6 classes and modules strict mode is enforced by default so you may have no choice but to be in strict mode therefore this can come in handy pYet another take on this Using the example given in the Vim help for codetabpagebuflist code to get list of the buffers that appear in tab or window have the below in my code vimrc code ppre codefunction DeleteInactiveBufs From tabpagebuflist help get list of all buffers in all tabs let tablist for in range tabpagenr call extend tablist tabpagebuflist endfor Below originally inspired by Hara Krishna Dara and Keith Roberts http tech groups yahoo com group vim message 56425 let nWipeouts for in range bufnr if bufexists amp amp getbufvar amp mod amp amp index tablist bufno exists AND isn modified AND isn in the list of buffers open in windows and tabs silent exec bwipeout let nWipeouts nWipeouts endif endfor echomsg nWipeouts buffer wiped out endfunctioncommand Bdi call DeleteInactiveBufs code pre Hi atomicules trying your function and get bunch of errors like this http trusktr io 7777 isowiyirid rb Any ideas pYet another take on this Using the example given in the Vim help for codetabpagebuflist code to get list of the buffers that appear in tab or window have the below in my code vimrc code ppre codefunction DeleteInactiveBufs From tabpagebuflist help get list of all buffers in all tabs let tablist for in range tabpagenr call extend tablist tabpagebuflist endfor Below originally inspired by Hara Krishna Dara and Keith Roberts http tech groups yahoo com group vim message 56425 let nWipeouts for in range bufnr if bufexists amp amp getbufvar amp mod amp amp index tablist bufno exists AND isn modified AND isn in the list of buffers open in windows and tabs silent exec bwipeout let nWipeouts nWipeouts endif endfor echomsg nWipeouts buffer wiped out endfunctioncommand Bdi call DeleteInactiveBufs code pre Oops guess my server deletes pastes after certain not bad idea maybe can add an option to lock it was trying your function and getting errors Oh well no time for it right now h1Crazy one line solution h1pre codevar global Function return this 42 eval this code prep pp pp ph2Works h2ulliin every environment that tested liliin strict mode liliand even in nested scope li ulh2Update 2014 Sept 23 h2pThis can now fail if HTTP headers in the latest browsers explicitly forbid eval ppA workaround would be to try catch the original solution as only browsers are known to run this type of subset of JavaScript ppre codevar global try global Function return this 42 eval this catch global window code prep ph2Example h2pre code function var global Function return this 42 eval this console log global es3 context is global es5 is null function use strict var global Function return this 42 eval this console log global es3 and es5 context is someNewContext function var global Function return this 42 eval this console log global call someNewContext code preh2Tested h2ulliChrome v12 liliNode JS v0 liliFirefox v5 liliMSIE li ulh2Why h2pIn short it some weird quirk See the comments below or the post above ppIn codestrict mode code codethis code is never the global but also in codestrict mode code codeeval code operates in separate context in which codethis code emis em always the global ppIn non strict mode codethis code is the current context If there is no current context it assumes the global An anonymous function has no context and hence in non strict mode assumes the global ppSub Rant ppThere silly misfeature of JavaScript that 99 of the time just confuses people called the comma operator ppre codevar 1a 1a 42 eval evala this the global object code pre asked In other words when will Function return this be false Will 42 eval this ever be evaluated in some engine Is not the Function version enough How to get the MouseEvent coordinates for an element that has CSS3 Transform javascript css html5 css3 transform pI want to detect strongwhere strong codeMouseEvent code has occurred in strongcoordinates relative to the clicked element strong Why Because want to add an absolutely positioned child element at the clicked location ppI know how to detect it when no CSS3 transformations exist see description below However when add CSS3 Transform then my algorithm breaks and don know how to fix it ppI not using any JavaScript library and want to understand how things work in plain JavaScript So please don answer with just use jQuery ppBy the way want solution that works for all MouseEvents not just click Not that it matters because believe all mouse events share the same properties thus the same solution should work for all of them phrh2Background information h2pAccording to href http www w3 org TR 2000 REC DOM Level Events 20001113 events html Events eventgroupings mouseevents rel noreferrer DOM Level specification href https developer mozilla org en DOM Event UIEvent MouseEvent rel noreferrer codeMouseEvent code has few properties related to getting the event coordinates pulli codescreenX code and codescreenY code return the screen coordinates the origin is the top left corner of user monitor lili codeclientX code and codeclientY code return the coordinates relative the document viewport li ulpThus in order to find the position of the codeMouseEvent code relative to the clicked element content must do this math ppre codeev clientX this getBoundingClientRect left this clientLeft this scrollLeft code preulli codeev clientX code is the coordinate relative to the document viewport lili codethis getBoundingClientRect left code is the position of the element relative to the document viewport lili codethis clientLeft code is the amount of border and scrollbar between the element boundary and the inner coordinates lili codethis scrollLeft code is the amount of scrolling inside the element li ulp href https developer mozilla org en DOM element getBoundingClientRect rel noreferrer codegetBoundingClientRect code href https developer mozilla org en DOM element clientLeft rel noreferrer codeclientLeft code and href https developer mozilla org en DOM element scrollLeft rel noreferrer codescrollLeft code are specified at href http www w3 org TR cssom view extensions to the element interface rel noreferrer CSSOM View Module ph2Experiment without CSS Transform it works h2pConfusing href http jsfiddle net 7CKyT rel noreferrer Try the following piece of JavaScript and HTML Upon clicking red dot should appear exactly where the click has happened This version is quite simple and works as expected ppre codefunction click handler ev var rect this getBoundingClientRect var left ev clientX rect left this clientLeft this scrollLeft var top ev clientY rect top this clientTop this scrollTop var dot document createElement div dot setAttribute style position absolute width 2px height 2px top top px left left px background red this appendChild dot document getElementById experiment addEventListener click click handler false lt div id experiment style border 5px inset AAA background CCC height 400px position relative overflow auto gt lt div style width 900px height 2px gt lt div gt lt div style height 900px width 2px gt lt div gt lt div gt code preh2Experiment adding CSS Transform it fails h2pNow href http jsfiddle net 7CKyT rel noreferrer try adding CSS codetransform code ppre code experiment transform scale moz transform scale transform scale webkit transform scale Note that this is very simple transformation Remember to also think about more complex ones as described below code prepThe algorithm doesn know about the transformations and thus calculates wrong position What more the results are different between Firefox and Chrome 12 Opera 11 50 behaves just like Chrome ppIn this example the only transformation was scaling so could multiply the scaling factor to calculate the correct coordinate However if we think about arbitrary transformations scale rotate skew translate matrix and even nested transformations transformed element inside another transformed element then we really need better way to calculate the coordinates There is an official way coming up in browsers see my answer strongFrom Bloch Effective Java 2nd ed Item 48 strong pblockquote pThe codefloat code and codedouble code types are particularly ill suited for monetary calculations because it is impossible to represent or any other negative power of ten as codefloat code or codedouble code exactly pFor example suppose you have 03 and you spend 42c How much money do you have left ppre codeSystem out println 03 42 code pre pprints out code0 6100000000000001 code pThe right way to solve this problem is to use codeBigDecimal code codeint code or codelong code for monetary calculations blockquote What about when percentage needs to be applied like compounding interest or similar pHere mine ppre codeset statusline set statusline buffer numberset statusline amp ff file formatset statusline file typeset statusline lt full pathset statusline modified flagset statusline 5l current lineset statusline total linesset statusline 4v virtual column numberset statusline 0x 04B character under cursor code prep img src https stack imgur com yTNvD png alt vim statusline ppAnd here the colors used ppre codehi User1 guifg eea040 guibg 222222hi User2 guifg dd3333 guibg 222222hi User3 guifg ff66ff guibg 222222hi User4 guifg a0ee40 guibg 222222hi User5 guifg eeee40 guibg 222222 code pre How do you make the colors work pHere mine ppre codeset statusline set statusline buffer numberset statusline amp ff file formatset statusline file typeset statusline lt full pathset statusline modified flagset statusline 5l current lineset statusline total linesset statusline 4v virtual column numberset statusline 0x 04B character under cursor code prep img src https stack imgur com yTNvD png alt vim statusline ppAnd here the colors used ppre codehi User1 guifg eea040 guibg 222222hi User2 guifg dd3333 guibg 222222hi User3 guifg ff66ff guibg 222222hi User4 guifg a0ee40 guibg 222222hi User5 guifg eeee40 guibg 222222 code pre tried putting this after any colorscheme was set but just see dual tone statusline codebabel polyfill code is required You must also install it in order to get async await working ppre codenpm babel core babel polyfill babel preset es2015 babel preset stage babel loader code preppackage json ppre code devDependencies babel core 20 babel polyfill 16 babel preset es2015 15 babel preset stage 15 code prep babelrc ppre code presets es2015 stage code prep js with async await sample code ppre code use strict export default async function foo var await bar console log function bar return bar code prepIn the startup file ppre coderequire babel core register require babel polyfill code prepIf you are using strongwebpack strong you need to put it as the first entry as per comment ppre codemodule exports entry babel polyfill test js output filename bundle js module loaders test jsx loader babel code prepIf you want to run tests with babel then use ppre codemocha compilers js babel core register require babel polyfill code pre What babel register for,0,NULL,NULL 40209,7810,461075,NULL,NULL,NULL,0,NULL,NULL 40210,6923520,517173,Autobiographer Promoter Nice Question Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 40211,620886,917158,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40212,7778,52251,Yearling Nice Answer Famous Question Pundit Yearling Popular Question Yearling Guru Good Answer Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 40213,35001,348081,Popular Question Nice Question Nice Question Notable Question Yearling Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Good Question Famous Question Popular Question Yearling Famous Question Famous Question Favorite Question Nice Question Popular Question Popular Question Necromancer Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Famous Question Popular Question Famous Question Popular Question Documentation User Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Good Answer Notable Question Popular Question Famous Question Favorite Question Good Question Popular Question Yearling Notable Question Nice Question Great Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Great Question Notable Question Nice Answer Nice Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 40214,14733,843123,NULL,NULL,NULL,0,NULL,NULL 40215,87247,490499,Nice Answer Yearling Necromancer Guru Nice Answer Yearling Popular Question Yearling Good Answer Popular Question Guru Nice Question Famous Question Yearling Nice Answer Nice Question Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 40216,13126,266303,NULL,NULL,NULL,0,NULL,NULL 40217,3797058,1299336,Editor Caucus Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 40218,721137,140227,Good Question Popular Question,NULL,NULL,0,NULL,NULL 40219,163012,42412,Critic Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 40220,503738,584968,Popular Question,NULL,NULL,0,NULL,NULL 40221,376172,218340,Popular Question Notable Question Nice Answer Nice Question Notable Question Necromancer Notable Question Good Answer Notable Question Nice Answer Notable Question Popular Question Nice Answer Necromancer Yearling Electorate Nice Answer Notable Question Popular Question Good Question Good Answer Yearling Necromancer Necromancer Notable Question Popular Question Populist Enlightened Nice Answer Good Question Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 40222,14433,712526,Revival Necromancer Proofreader Quorum Yearling Archaeologist Investor Altruist Popular Question Favorite Question Notable Question Nice Answer Caucus Nice Answer Reviewer Good Answer Announcer Famous Question Nice Question Yearling Announcer Announcer Announcer Caucus Constituent Reviewer Announcer Announcer Documentation User Custodian Announcer Custodian Announcer Announcer Pundit Announcer Announcer Caucus Announcer Copy Editor Announcer Yearling Nice Answer Enlightened Announcer Popular Question Announcer Good Answer Popular Question Popular Question Popular Question Good Question,NULL,What is the difference between git pull and git fetch git git pull git fetch blockquote strongModerator Note strong Given that this question has already had emsixty seven answers em posted to it some of them deleted consider whether or not you are strong emcontributing anything new em strong before posting another one blockquotepWhat are the differences between codegit pull code and codegit fetch code FWIW that is equivalent to git pull ff only although don remember if it was available in 2014 pThe codeaptitude download only code approach only works if you have debian distro with internet connection in your hands ppIf you don think it is better to run the following script on the disconnected debian machine ppre codeapt get print uris yes install lt my package name gt grep cut f2 gt downloads list code prepmove the downloads list file into connected linux or non linux machine and run ppre codewget input file myurilist code prepthis downloads all your files into the current directory After that you can copy them on an USB key and install in your disconnected debian machine ppcredits href http www tuxradar com answers 517 rel noreferrer http www tuxradar com answers 517 ppPSI basically copied the blog post because it was not very readable and in case the post will disappear Adding qq to the apt get line removes the need for the grep and the need for assume yes pCheckout the code maxdepth code flag of codefind code ppre codefind maxdepth type exec ls ld code prepHere used as max level depth code type code means find only directories which then codels ld code lists contents of in long format Running ls with find just seems wrong somehow pHit the kbdEsc kbd key to enter Normal mode Then you can type code code to enter Command line mode colon code code will appear at the bottom of the screen and you can type in one of the following commands To execute command press the kbdEnter kbd key pulli code code to quit short for code quit code lili code code to quit without saving short for code quit code lili code wq code to write and quit lili code wq code to write and quit even if file has only read permission if file does not have write permission force write lili code code to write and quit similar to code wq code but only write if there are changes lili code exit code to write and exit same as code code lili code qa code to quit all short for code quitall code lili code cq code to quit without saving and make Vim return non zero error exit with error li ulpYou can also exit Vim directly from Command mode by typing codeZZ code to save and quit same as code code or codeZQ code to just quit same as code code Note that case is important here codeZZ code and codezz code do not mean the same thing ppVim has extensive help that you can access with the code help code command where you can find answers to all your questions and tutorial for beginners Sometimes Esc is not enough You may need to type Esc multiple times to be sure After pressing or in Insert mode Of course Heikki https stackoverflow com 31028197 712526 covered this in depth,0,NULL,NULL 40223,1839669,712526,Revival Necromancer Proofreader Quorum Yearling Archaeologist Investor Altruist Popular Question Favorite Question Notable Question Nice Answer Caucus Nice Answer Reviewer Good Answer Announcer Famous Question Nice Question Yearling Announcer Announcer Announcer Caucus Constituent Reviewer Announcer Announcer Documentation User Custodian Announcer Custodian Announcer Announcer Pundit Announcer Announcer Caucus Announcer Copy Editor Announcer Yearling Nice Answer Enlightened Announcer Popular Question Announcer Good Answer Popular Question Popular Question Popular Question Good Question,NULL,What is the difference between git pull and git fetch git git pull git fetch blockquote strongModerator Note strong Given that this question has already had emsixty seven answers em posted to it some of them deleted consider whether or not you are strong emcontributing anything new em strong before posting another one blockquotepWhat are the differences between codegit pull code and codegit fetch code FWIW that is equivalent to git pull ff only although don remember if it was available in 2014 pThe codeaptitude download only code approach only works if you have debian distro with internet connection in your hands ppIf you don think it is better to run the following script on the disconnected debian machine ppre codeapt get print uris yes install lt my package name gt grep cut f2 gt downloads list code prepmove the downloads list file into connected linux or non linux machine and run ppre codewget input file myurilist code prepthis downloads all your files into the current directory After that you can copy them on an USB key and install in your disconnected debian machine ppcredits href http www tuxradar com answers 517 rel noreferrer http www tuxradar com answers 517 ppPSI basically copied the blog post because it was not very readable and in case the post will disappear Adding qq to the apt get line removes the need for the grep and the need for assume yes pCheckout the code maxdepth code flag of codefind code ppre codefind maxdepth type exec ls ld code prepHere used as max level depth code type code means find only directories which then codels ld code lists contents of in long format Running ls with find just seems wrong somehow pHit the kbdEsc kbd key to enter Normal mode Then you can type code code to enter Command line mode colon code code will appear at the bottom of the screen and you can type in one of the following commands To execute command press the kbdEnter kbd key pulli code code to quit short for code quit code lili code code to quit without saving short for code quit code lili code wq code to write and quit lili code wq code to write and quit even if file has only read permission if file does not have write permission force write lili code code to write and quit similar to code wq code but only write if there are changes lili code exit code to write and exit same as code code lili code qa code to quit all short for code quitall code lili code cq code to quit without saving and make Vim return non zero error exit with error li ulpYou can also exit Vim directly from Command mode by typing codeZZ code to save and quit same as code code or codeZQ code to just quit same as code code Note that case is important here codeZZ code and codezz code do not mean the same thing ppVim has extensive help that you can access with the code help code command where you can find answers to all your questions and tutorial for beginners Sometimes Esc is not enough You may need to type Esc multiple times to be sure After pressing or in Insert mode Of course Heikki https stackoverflow com 31028197 712526 covered this in depth,0,NULL,NULL 40224,511339,631484,NULL,NULL,NULL,0,NULL,NULL 40225,275444,1051988,NULL,NULL,NULL,0,NULL,NULL 40226,908355,1349688,Informed Editor Autobiographer,NULL,NULL,0,NULL,NULL 40227,7960,364226,Editor,NULL,NULL,0,NULL,NULL 40228,1106172,389671,NULL,NULL,NULL,0,NULL,NULL 40229,914867,800737,Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Nice Question Notable Question Good Question Famous Question Famous Question Good Question Popular Question Great Question Yearling Popular Question Favorite Question Notable Question Nice Question Yearling Favorite Question Great Question,NULL,NULL,0,NULL,NULL 40230,5353,1085723,NULL,NULL,NULL,0,NULL,NULL 40231,80422,669544,Notable Question Revival,NULL,NULL,0,NULL,NULL 40232,275846,1170147,NULL,NULL,NULL,0,NULL,NULL 40233,2976607,570410,Popular Question,NULL,NULL,0,NULL,NULL 40234,1319106,570410,Popular Question,NULL,NULL,0,NULL,NULL 40235,599930,24173,Notable Question Revival Notable Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 40236,127423,980919,Enthusiast Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 40237,139230,217956,Famous Question Popular Question Great Answer Yearling Popular Question Notable Question Notable Question Yearling Good Question Nice Question Notable Question Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 40238,23196,26170,NULL,NULL,NULL,0,NULL,NULL 40239,205565,899161,NULL,NULL,NULL,0,NULL,NULL 40240,252286,1123803,NULL,NULL,NULL,0,NULL,NULL 40241,123789,399275,NULL,NULL,NULL,0,NULL,NULL 40242,157803,778149,NULL,NULL,NULL,0,NULL,NULL 40243,13814,310275,Announcer Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40244,538142,1344802,Student,NULL,NULL,0,NULL,NULL 40245,351714,642008,Yearling Great Answer Custodian Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 40246,23240,534086,Nice Question Good Answer Good Question Famous Question Good Question Famous Question Yearling Famous Question Great Question Favorite Question Yearling Favorite Question Great Question Good Question,NULL,NULL,0,NULL,NULL 40247,6576,1129623,Yearling Editor Excavator,NULL,NULL,0,NULL,NULL 40248,1189511,691500,NULL,NULL,NULL,0,NULL,NULL 40249,72057,898077,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40250,1228220,1011095,NULL,NULL,NULL,0,NULL,NULL 40251,347233,519224,NULL,NULL,NULL,0,NULL,NULL 40252,1102423,1174332,Editor,NULL,NULL,0,NULL,NULL 40253,1094586,615158,NULL,NULL,NULL,0,NULL,NULL 40254,262784,660982,Yearling Necromancer Popular Question Necromancer Good Answer Necromancer Announcer Caucus Popular Question Custodian Necromancer Custodian Yearling Popular Question Announcer Nice Answer Nice Answer Favorite Question Necromancer Nice Answer Nice Answer Good Answer Yearling Caucus Announcer,NULL,NULL,0,NULL,NULL 40255,288587,981172,NULL,NULL,NULL,0,NULL,NULL 40256,33805,1080311,Necromancer Notable Question Notable Question Critic,NULL,NULL,0,NULL,NULL 40257,118124,1046698,NULL,NULL,NULL,0,NULL,NULL 40258,1132672,211682,Yearling Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 40259,902147,1165240,NULL,NULL,NULL,0,NULL,NULL 40260,38066,63308,Yearling Nice Question Good Question java Organizer Announcer Popular Question heroku Nice Answer Yearling Famous Question Custodian Popular Question Nice Question Nice Question Notable Question Civic Duty Nice Answer Yearling Caucus Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 40261,14146,255061,Yearling Revival Nice Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 40262,37702,574731,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 40263,203934,1038045,NULL,NULL,NULL,0,NULL,NULL 40264,6448,630952,NULL,NULL,NULL,0,NULL,NULL 40265,49587,334499,Scholar,NULL,NULL,0,NULL,NULL 40266,591518,809329,Good Question Famous Question,NULL,NULL,0,NULL,NULL 40267,393624,485986,Yearling Necromancer Nice Answer Nice Answer Enthusiast Yearling Caucus Critic Revival Revival Yearling Caucus Documentation User Good Answer Student Yearling Caucus Nice Answer Commentator,NULL,pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup According to https developer android com about versions oreo background when you receive BOOT COMPLETED shouldn your app be put on whitelist since it is handling task like Receiving broadcast such as an SMS MMS message pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup Thanks for answer As far as can tell that may vary with the device as having issues with some devices will have to test it further,1,NULL,Set spinner width to current item width android width spinner selection pBy default the spinner width is set to fit the largest item in the dropdown but want it to be the same width as the selected item ppre code lt android widget Spinner android id id tab spinner android layout width wrap content android layout height match parent android entries countries gt code prep href https stack imgur com gpgCN png rel nofollow img src https stack imgur com gpgCN png alt enter image description here ppAs you can see in the right side image the spinner is way too long because of the long item in the list ppHow can resize it to the selected item width pBy default codeSpinner code will try to measure some of your dropdown views and use the max width found This happens in codeSpinner measureContentWidth code codeprotected code method of codeSpinner code called in codeSpinner onMeasure code ppOne way to solve the issue is to make sure your codeSpinnerAdapter getView code method always uses codeSpinner getSelectedItemPosition code for its codeposition code argument ppI can think of two possible solutions polliCreating custom spinner with wrapper adapter prefer this solution liliOr adapting your custom adapter li olp br strong1 Creating custom spinner with wrapper adapter strong ppMake sure to use this in your codexml code layout instead of normal code lt Spinner gt code ppBe careful that codeDynamicWidthSpinner getAdapter code will return codeWrapperSpinnerAdapter code use its codegetBaseAdapter code method to access to your adapter ppre codepublic class DynamicWidthSpinner extends Spinner public DynamicWidthSpinner Context context super context public DynamicWidthSpinner Context context AttributeSet attrs super context attrs public DynamicWidthSpinner Context context AttributeSet attrs int defStyleAttr super context attrs defStyleAttr public void setAdapter SpinnerAdapter adapter super setAdapter adapter null new WrapperSpinnerAdapter adapter null public final class WrapperSpinnerAdapter implements SpinnerAdapter private final SpinnerAdapter mBaseAdapter public WrapperSpinnerAdapter SpinnerAdapter baseAdapter mBaseAdapter baseAdapter public View getView int position View convertView ViewGroup parent return mBaseAdapter getView getSelectedItemPosition convertView parent public final SpinnerAdapter getBaseAdapter return mBaseAdapter public int getCount return mBaseAdapter getCount public View getDropDownView int position View convertView ViewGroup parent return mBaseAdapter getDropDownView position convertView parent public Object getItem int position return mBaseAdapter getItem position public long getItemId int position return mBaseAdapter getItemId position public int getItemViewType int position return mBaseAdapter getItemViewType position public int getViewTypeCount return mBaseAdapter getViewTypeCount public boolean hasStableIds return mBaseAdapter hasStableIds public boolean isEmpty return mBaseAdapter isEmpty public void registerDataSetObserver DataSetObserver observer mBaseAdapter registerDataSetObserver observer public void unregisterDataSetObserver DataSetObserver observer mBaseAdapter unregisterDataSetObserver observer code prep br strong2 Adapting your custom adapter strong ppBe careful that codeparent code in codegetView code might not always be codeSpinner code ppre codeprivate class SimpleSpinnerAdapter extends BaseAdapter private LayoutInflater mInflater private int mResource public SimpleSpinnerAdapter Context context int resource mInflater LayoutInflater from context mResource resource public View getView int position View convertView ViewGroup parent return createViewFromResource mInflater Spinner parent getSelectedItemPosition convertView parent mResource public View getDropDownView int position View convertView ViewGroup parent return createViewFromResource mInflater position convertView parent mResource protected View createViewFromResource LayoutInflater inflater int position View convertView ViewGroup parent int resource View view if convertView null view inflater inflate resource parent false else view convertView bindView position view return view protected void bindView int position View view Bind your view getCount getItem and getItemId methods code pre 40268,585641,169440,Nice Answer Nice Question Tumbleweed Yearling Revival Nice Question Popular Question Nice Question Necromancer Popular Question Yearling Notable Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 40269,494080,257261,Yearling Good Question Nice Answer Notable Question Yearling Nice Question Popular Question Favorite Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 40270,53680,365943,Yearling Good Answer Necromancer Nice Question,NULL,NULL,0,NULL,NULL 40271,906865,1549096,Popular Question,NULL,NULL,0,NULL,NULL 40272,237815,625894,Yearling Good Answer Yearling Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 40273,603294,625894,Yearling Good Answer Yearling Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 40274,316651,595957,NULL,NULL,NULL,0,NULL,NULL 40275,451349,1168166,Self-Learner Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40276,837255,359253,Yearling Nice Answer Popular Question Necromancer Caucus Civic Duty Yearling Necromancer Caucus Necromancer,NULL,NULL,0,NULL,NULL 40277,66506,711743,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 40278,120323,675589,Nice Answer Enlightened Notable Question Yearling java Great Answer Nice Answer Good Answer Nice Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 40279,625655,836841,Necromancer Yearling,NULL,NULL,0,NULL,NULL 40280,64498,186655,Notable Question Nice Answer Enlightened Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 40281,169709,514873,Nice Answer Enlightened Great Answer Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Enlightened Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 40282,549739,873560,Popular Question,NULL,NULL,0,NULL,NULL 40283,424435,19444,Yearling Famous Question,NULL,NULL,0,NULL,NULL 40284,77189,10333,Famous Question Notable Question Nice Question Necromancer Good Question Necromancer Great Answer Nice Answer Enlightened Notable Question Notable Question Guru Notable Question Notable Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Necromancer Good Answer Famous Question Good Answer Stellar Question Nice Answer Enlightened Nice Question Famous Question Notable Question Famous Question Yearling Announcer Nice Answer Popular Question Notable Question Famous Question Stellar Question Popular Question Guru Yearling Good Question,NULL,NULL,0,NULL,NULL 40285,22974,1675,Good Answer Yearling Nice Answer Popular Question Nice Answer Custodian Nice Answer Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 40286,432142,1489359,NULL,NULL,NULL,0,NULL,NULL 40287,284317,615759,NULL,NULL,NULL,0,NULL,NULL 40288,321391,398882,Yearling Notable Question Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 40289,102600,612912,Yearling Nice Answer Great Question Good Answer Great Answer Popular Question Popular Question Yearling Nice Answer Yearling Guru Excavator Necromancer,NULL,NULL,0,NULL,NULL 40290,4608143,890470,NULL,NULL,NULL,0,NULL,NULL 40291,32842,103739,Good Answer Nice Question Guru Popular Question Notable Question Notable Question Famous Question Famous Question Necromancer Popular Question Notable Question Guru Yearling Popular Question Nice Answer Notable Question Notable Question Popular Question Good Question Good Question Good Question Famous Question Good Question Famous Question Good Answer Famous Question Notable Question Notable Question Nice Question Good Question Caucus Nice Question Constituent Guru Good Question Notable Question Favorite Question Popular Question Good Question Popular Question Yearling Notable Question Notable Question Popular Question Favorite Question Caucus Revival Constituent Notable Question Popular Question Custodian Documentation User Good Question Famous Question Popular Question Popular Question Popular Question Notable Question Census Notable Question Caucus Yearling Nice Question Famous Question Electorate Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 40292,8358,678233,NULL,NULL,NULL,0,NULL,NULL 40293,186415,714478,Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 40294,243678,116303,Census Civic Duty Caucus Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 40295,205421,192819,Great Question Good Answer Popular Question Popular Question Taxonomist Famous Question Booster Revival Popular Question Yearling Nice Question Favorite Question Good Answer Notable Question Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 40296,224906,39797,Census Popular Question Notable Question Notable Question Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 40297,39072,255707,NULL,NULL,NULL,0,NULL,NULL 40298,372185,1267826,NULL,NULL,NULL,0,NULL,NULL 40299,436910,137060,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40300,104564,831248,Good Question Popular Question Yearling Good Answer Popular Question Civic Duty Custodian Revival Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 40301,9688467,831248,Good Question Popular Question Yearling Good Answer Popular Question Civic Duty Custodian Revival Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 40302,176884,506170,Commentator Editor Peer Pressure,NULL,NULL,0,NULL,NULL 40303,133463,360881,NULL,NULL,NULL,0,NULL,NULL 40304,2099987,247230,Yearling Popular Question Famous Question Notable Question Notable Question Notable Question Yearling Good Question Notable Question Popular Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 40305,207438,224185,Caucus Nice Answer,NULL,NULL,0,NULL,NULL 40306,15167,166874,Yearling,NULL,NULL,0,NULL,NULL 40307,67625,10571,Yearling Good Answer Popular Question Curious Census,NULL,NULL,0,NULL,NULL 40308,946132,22079,Good Answer Custodian Yearling Disciplined Documentation User Revival Civic Duty Necromancer,NULL,NULL,0,NULL,NULL 40309,40939,929775,Student,NULL,NULL,0,NULL,NULL 40310,134505,1258094,Good Question Famous Question Popular Question Critic Popular Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40311,516808,138439,NULL,NULL,NULL,0,NULL,NULL 40312,3492176,138439,NULL,NULL,NULL,0,NULL,NULL 40313,105041,372183,NULL,NULL,NULL,0,NULL,NULL 40314,279715,759143,Teacher Critic Caucus Nice Question Excavator Yearling Popular Question Famous Question Caucus,NULL,NULL,0,NULL,NULL 40315,61158,1380494,NULL,NULL,NULL,0,NULL,NULL 40316,73922,627437,NULL,NULL,NULL,0,NULL,NULL 40317,208514,1130390,NULL,NULL,NULL,0,NULL,NULL 40318,1386379,1428461,Nice Answer Enlightened Nice Answer Yearling Census Nice Answer Enlightened Yearling Caucus Custodian Necromancer Yearling Informed,NULL,NULL,0,NULL,NULL 40319,335710,184733,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40320,120420,297859,Yearling,NULL,NULL,0,NULL,NULL 40321,28779,454772,NULL,NULL,NULL,0,NULL,NULL 40322,1269529,403890,Famous Question,NULL,NULL,0,NULL,NULL 40323,1519580,263986,Nice Question Yearling Popular Question Nice Answer Famous Question Popular Question Popular Question Necromancer Yearling Announcer Nice Question Yearling Notable Question Documentation User Notable Question Custodian Nice Answer Good Answer Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 40324,390030,533622,Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40325,186287,982575,NULL,NULL,NULL,0,NULL,NULL 40326,1189329,72460,Yearling,NULL,NULL,0,NULL,NULL 40327,694046,665082,Popular Question Notable Question Nice Question Notable Question Notable Question Self-Learner Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Notable Question Caucus Notable Question Popular Question Popular Question Notable Question Notable Question Census Notable Question Inquisitive Yearling Custodian Nice Question Famous Question Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 40328,59506,163931,NULL,NULL,NULL,0,NULL,NULL 40329,39187,302538,NULL,NULL,NULL,0,NULL,NULL 40330,93241,490157,NULL,NULL,NULL,0,NULL,NULL 40331,665671,79819,Necromancer Nice Question,NULL,NULL,0,NULL,NULL 40332,8326380,79819,Necromancer Nice Question,NULL,NULL,0,NULL,NULL 40333,5009,126372,Yearling Great Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 40334,565959,730117,NULL,NULL,NULL,0,NULL,NULL 40335,403708,193998,NULL,NULL,NULL,0,NULL,NULL 40336,162487,620041,NULL,NULL,NULL,0,NULL,NULL 40337,428527,1401358,NULL,NULL,NULL,0,NULL,NULL 40338,162353,748573,Notable Question Citizen Patrol Nice Answer Enlightened Caucus Constituent Famous Question Census Informed,NULL,NULL,0,NULL,NULL 40339,119226,1539811,NULL,NULL,NULL,0,NULL,NULL 40340,17746,523342,NULL,NULL,NULL,0,NULL,NULL 40341,1508944,1186694,NULL,NULL,NULL,0,NULL,NULL 40342,515457,897749,NULL,NULL,NULL,0,NULL,NULL 40343,241424,493034,Notable Question Nice Question Enthusiast Informed,NULL,NULL,0,NULL,NULL 40344,545449,1379858,NULL,NULL,NULL,0,NULL,NULL 40345,234675,49850,Necromancer Popular Question Nice Answer Caucus Yearling Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 40346,88325,169878,NULL,NULL,NULL,0,NULL,NULL 40347,70985,570469,NULL,NULL,NULL,0,NULL,NULL 40348,69370,1277453,Yearling Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 40349,151470,982285,NULL,NULL,NULL,0,NULL,NULL 40350,68845,283871,NULL,NULL,NULL,0,NULL,NULL 40351,1903884,964823,Popular Question Organizer Popular Question Notable Question Notable Question Revival Nice Question Famous Question Popular Question Custodian Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Necromancer Notable Question Nice Answer Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Revival Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40352,33488,529646,Popular Question Nice Question Tumbleweed Famous Question Popular Question Notable Question Good Question Popular Question Notable Question Favorite Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 40353,51069,402618,Yearling Notable Question Good Question Yearling Notable Question Notable Question Favorite Question,NULL,Why do need to do set upstream all the time git git branch pI create new branch in Git ppre codegit branch my branch code prepPush it ppre codegit push origin my branch code prepNow say someone made some changes on the server and want to pull from codeorigin my branch code do ppre codegit pull code prepBut get ppre codeYou asked me to pull without telling me which branch youwant to merge with and branch my branch merge inyour configuration file does not tell me either Pleasespecify which branch you want to use on the command line andtry again git pull lt repository gt lt refspec gt See git pull for details If you often merge with the same branch you may want touse something like the following in your configuration file branch my branch remote lt nickname gt merge lt remote ref gt remote lt nickname gt url lt url gt fetch lt refspec gt See git config for details code prepI learned that can make it work with ppre codegit branch set upstream my branch origin my branch code prepBut why do need to do this for every branch create Isn it obvious that if push codemy branch code into codeorigin my branch code then would want to pull codeorigin my branch code into codemy branch code How can make this the default behavior For others looking for more recent one liner post git BRANCH git symbolic ref short HEAD git branch set upstream to origin BRANCH BRANCH,0,NULL,NULL 40354,72130,583434,Yearling Yearling Notable Question Notable Question Great Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 40355,65140,416243,Yearling Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 40356,1215588,874010,Popular Question,NULL,NULL,0,NULL,NULL 40357,1696258,874010,Popular Question,NULL,NULL,0,NULL,NULL 40358,321545,121006,Guru Nice Answer Enlightened Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40359,373135,1371181,NULL,NULL,NULL,0,NULL,NULL 40360,102856,67044,NULL,NULL,NULL,0,NULL,NULL 40361,1228992,1434326,NULL,NULL,NULL,0,NULL,NULL 40362,470,221635,NULL,NULL,NULL,0,NULL,NULL 40363,304050,1209226,Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40364,539384,621481,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40365,1108782,484566,Notable Question Notable Question Notable Question Notable Question Populist Yearling Nice Answer Enlightened Notable Question Good Answer Yearling Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 40366,1108354,977903,NULL,NULL,NULL,0,NULL,NULL 40367,7629631,1473594,NULL,NULL,NULL,0,NULL,NULL 40368,4427491,1203460,NULL,NULL,NULL,0,NULL,NULL 40369,2769422,811003,Yearling Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 40370,142720,144527,Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40371,63665,495568,Notable Question Revival Revival codeigniter Popular Question Notable Question Popular Question Yearling Caucus Constituent Necromancer Popular Question Notable Question Yearling Notable Question Caucus Constituent Nice Answer Enlightened php Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40372,14342,66725,Nice Answer Yearling Famous Question Popular Question Nice Answer Necromancer Guru Enlightened Good Answer Guru pry Nice Answer Nice Answer Good Question Nice Answer Nice Question Great Answer Yearling Good Answer Nice Answer Nice Answer Nice Question Famous Question Nice Answer Popular Question Famous Question Popular Question Nice Answer Good Answer Famous Question Guru Favorite Question Famous Question Nice Answer Nice Answer Good Question Yearling Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 40373,425243,973313,NULL,NULL,NULL,0,NULL,NULL 40374,20664,23128,Nice Answer Popular Question Necromancer Yearling Explainer Famous Question Nice Answer Good Question Nice Answer,NULL,NULL,0,NULL,NULL 40375,5107276,3552,Popular Question Nice Answer Popular Question Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 40376,103906,3552,Popular Question Nice Answer Popular Question Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 40377,8970,493075,Great Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Yearling Great Answer Nice Answer Great Answer Guru Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 40378,62702,496070,NULL,NULL,NULL,0,NULL,NULL 40379,1981426,849180,Custodian Commentator Curious Teacher Popular Question,NULL,NULL,0,NULL,NULL 40380,481076,395156,NULL,NULL,NULL,0,NULL,NULL 40381,208180,869788,NULL,NULL,NULL,0,NULL,NULL 40382,245227,1354207,Good Answer,NULL,NULL,0,NULL,NULL 40383,2086,686837,NULL,NULL,NULL,0,NULL,NULL 40384,801990,547202,NULL,NULL,NULL,0,NULL,NULL 40385,175748,574852,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40386,180047,641562,Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Nice Question Yearling Self-Learner Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40387,127973,1513259,NULL,NULL,NULL,0,NULL,NULL 40388,865062,1124784,NULL,NULL,NULL,0,NULL,NULL 40389,489427,256816,Teacher,NULL,NULL,0,NULL,NULL 40390,19654,1098461,NULL,NULL,NULL,0,NULL,NULL 40391,1916252,486891,NULL,NULL,NULL,0,NULL,NULL 40392,112058,620065,Yearling,NULL,NULL,0,NULL,NULL 40393,690509,1516567,NULL,NULL,NULL,0,NULL,NULL 40394,1508654,395146,Famous Question Popular Question Popular Question Good Question Nice Question Popular Question Notable Question Nice Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Caucus Nice Question Notable Question Famous Question Nice Question Popular Question Custodian Nice Question Notable Question Notable Question Yearling Caucus Good Question Popular Question Notable Question Custodian Caucus Good Question Notable Question Famous Question Yearling Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 40395,15720,1438703,Informed Autobiographer,NULL,NULL,0,NULL,NULL 40396,891152,427329,NULL,NULL,NULL,0,NULL,NULL 40397,498725,745719,Popular Question Notable Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 40398,226867,490498,Revival Nice Answer Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40399,10538,44830,Guru Yearling,NULL,NULL,0,NULL,NULL 40400,83487,601683,NULL,NULL,NULL,0,NULL,NULL 40401,103931,1447800,NULL,NULL,NULL,0,NULL,NULL 40402,251367,1121547,Nice Answer Caucus Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 40403,743050,1096659,NULL,NULL,NULL,0,NULL,NULL 40404,571954,280509,NULL,NULL,NULL,0,NULL,NULL 40405,80807,796442,Notable Question,NULL,NULL,0,NULL,NULL 40406,575387,35363,Good Question Self-Learner Yearling Famous Question Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 40407,332747,1440641,Teacher Revival Notable Question,NULL,NULL,0,NULL,NULL 40408,281102,1017797,Popular Question Popular Question Great Answer Yearling Popular Question Good Answer Nice Question Popular Question Custodian Custodian Unsung Hero Custodian Yearling Nice Answer Enlightened Nice Answer Yearling amazon-web-services,NULL,NULL,0,NULL,NULL 40409,304190,1055558,NULL,NULL,NULL,0,NULL,NULL 40410,18671,345152,NULL,NULL,NULL,0,NULL,NULL 40411,241969,1202510,Self-Learner Popular Question Census Excavator,NULL,NULL,0,NULL,NULL 40412,2974811,109026,Tumbleweed Nice Question Famous Question Yearling Notable Question Notable Question Yearling Good Question Civic Duty Nice Answer facebook Necromancer Yearling,NULL,NULL,0,NULL,NULL 40413,2504149,109026,Tumbleweed Nice Question Famous Question Yearling Notable Question Notable Question Yearling Good Question Civic Duty Nice Answer facebook Necromancer Yearling,NULL,NULL,0,NULL,NULL 40414,3089222,1456508,Great Question Yearling Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 40415,1018179,784756,Popular Question Good Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40416,276063,39013,Nice Answer Nice Answer Enlightened Good Answer javascript Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Populist Announcer Yearling Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 40417,30913,299176,Notable Question Notable Question Yearling Famous Question Nice Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 40418,88262,179125,ruby-on-rails Nice Answer Enlightened hash Sportsmanship Fanatic Good Answer Guru Nice Answer sql Nice Answer Enlightened string Generalist arrays Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Yearling Nice Answer reactjs Nice Answer Good Answer Nice Answer Enlightened Deputy Good Answer Good Answer Nice Answer Enlightened ruby-on-rails-4 Census Nice Answer Enlightened Good Answer node.js Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Announcer Good Answer Good Answer Guru Nice Answer Good Answer Good Answer Custodian Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer yaml Nice Answer Census Nice Answer Necromancer Good Answer Caucus Good Answer Good Answer Necromancer Nice Answer Enlightened Good Answer Nice Answer Great Answer Guru Nice Answer Enlightened ruby-on-rails-3 Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Populist Nice Answer Enlightened,NULL,href http api rubyonrails org classes ActiveSupport Cache MemoryStore html rel noreferrer ActiveSupport Cache MemoryStore doesn provide way to access the store keys directly and neither does its parent class href http api rubyonrails org classes ActiveSupport Cache Store html rel noreferrer ActiveSupport Cache Store ppInternally MemoryStore keeps everything in Hash called code code however so you could monkey patch or subclass it to get the keys ppre codeclass InspectableMemoryStore lt ActiveSupport Cache MemoryStore def keys keys endendActionController Base cache store InspectableMemoryStore newRails cache keys gt foo code prepThis comes with the usual caveat however MemoryStore internal implementation may change at any time and code code may disappear or be changed to something that doesn coderespond to keys code smarter implementation might be to override the codewrite code and codedelete code methods since as part of the public API they re unlikely to change unexpectedly to keep your own list of keys ppre codeclass InspectableMemoryStore lt ActiveSupport Cache MemoryStore def write args super args true end def delete args super delete args end def keys keys endend code prepThis is very naive implementation and of course keeping the keys in an additional structure takes up some memory but you get the gist wrote you could monkey patch or subclass it The code above is an example of the latter,1,NULL,Ruby how to encode URL without re encoding already encoded characters ruby on rails ruby pI have simple problem users can post urls through specific input in form in my website would like to encode the posted url because sometimes users send urls with strange and or non ascii characters like For instance codehttps www example com url déjà vu code ppSo tried to use codeURI escape https www example com url déjà vu code which does work but then if you have the following url codeURI escape https somesite com page stuff stuff amp 20 code you get code gt https somesite com page stuff stuff amp 2520 code ppThe character is encoded and should not be as 20 is already an encoded character Then thought could do this ppre codeURI escape URI decode https somesite com page stuff stuff amp 20 gt https somesite com page stuff stuff amp 20 code prepBut there is problem if you have encoded in your url for instance ppre codeURI escape URI decode http example com 2fb gt http example com code prepThe should stay encoded ppSo putting it all together want to encode urls posted by users but leaving already encoded characters unchanged in ruby Any idea how may do that without getting an headache ppThanks pI can think of way to do this that isn little bit of kludge So propose little bit of kludge pp codeURI escape code appears to work the way you want in all cases except when characters are already encoded With that in mind we can take the result of codeURI encode code and use codeString gsub code to un encode only those characters ppThe below regular expression looks for code 25 code an encoded code code followed by two hex digits turning code 252f code back into code 2f code ppre coderequire uri DOUBLE ESCAPED EXPR 25 9a idef escape uri uri URI encode uri gsub DOUBLE ESCAPED EXPR endputs escape uri https www example com url déjà vu gt https www example com url C3 A9j C3 A0 vuputs escape uri https somesite com page stuff stuff amp 20 gt https somesite com page stuff stuff amp 20puts escape uri http example com 2fb gt http example com 2fb code prepI don promise that this is foolproof but hopefully it helps 40419,100849,145831,Notable Question Guru Yearling Excavator Popular Question Popular Question Caucus Census Announcer Nice Answer Yearling Nice Answer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40420,96683,531574,Popular Question Critic Notable Question,NULL,NULL,0,NULL,NULL 40421,732978,1403926,NULL,NULL,NULL,0,NULL,NULL 40422,760764,413538,Critic Tumbleweed Caucus Yearling Promoter Curious Nice Question Benefactor Necromancer Announcer Revival Nice Answer Popular Question Yearling Announcer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 40423,68057,16998,Good Answer Great Answer Nice Answer Yearling Announcer Nice Question Nice Answer Necromancer Nice Answer Great Question Custodian Custodian Custodian Custodian Favorite Question Notable Question Suffrage Vox Populi Nice Answer Yearling Guru Good Answer Announcer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 40424,1020531,1535551,Student,NULL,NULL,0,NULL,NULL 40425,8719374,1535551,Student,NULL,NULL,0,NULL,NULL 40426,169008,486978,Caucus Documentation User Custodian Autobiographer,NULL,NULL,0,NULL,NULL 40427,153839,54837,NULL,NULL,NULL,0,NULL,NULL 40428,6568578,985916,Yearling Notable Question,NULL,NULL,0,NULL,NULL 40429,45334,150884,Popular Question Notable Question Electorate Nice Answer Notable Question Investor Altruist Yearling Favorite Question Necromancer Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 40430,103712,1079513,NULL,NULL,NULL,0,NULL,NULL 40431,826349,813282,Necromancer Yearling Notable Question Autobiographer Critic Curious Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40432,139547,1519132,NULL,NULL,NULL,0,NULL,NULL 40433,496642,1399191,NULL,NULL,NULL,0,NULL,NULL 40434,326904,233413,NULL,NULL,NULL,0,NULL,NULL 40435,1532129,39408,Yearling Revival Tumbleweed Critic Informed Necromancer,NULL,NULL,0,NULL,NULL 40436,3217557,962054,NULL,NULL,NULL,0,NULL,NULL 40437,410439,1243902,Teacher Editor Supporter Commentator Enthusiast Yearling Custodian,NULL,NULL,0,NULL,NULL 40438,527467,905280,NULL,NULL,NULL,0,NULL,NULL 40439,60691,359944,Notable Question Yearling Popular Question Necromancer Famous Question Nice Question Popular Question Nice Question Popular Question Notable Question Nice Question Yearling Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 40440,488272,503863,NULL,NULL,NULL,0,NULL,NULL 40441,678280,1084023,Popular Question,NULL,NULL,0,NULL,NULL 40442,889654,1245979,NULL,NULL,NULL,0,NULL,NULL 40443,583102,334035,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40444,77230,469683,NULL,NULL,NULL,0,NULL,NULL 40445,41532,233087,Popular Question Good Question Nice Question Popular Question Famous Question Popular Question Popular Question Good Question Popular Question Nice Question Famous Question Famous Question Notable Question Nice Question Notable Question Famous Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Good Question Nice Question Notable Question Nice Question Notable Question Great Question Popular Question Good Question Popular Question Yearling Favorite Question Notable Question Nice Question Famous Question Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40446,76781,242210,Yearling Popular Question Nice Question Popular Question Critic Famous Question Necromancer Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 40447,856607,735252,NULL,NULL,NULL,0,NULL,NULL 40448,114886,5721,Necromancer,NULL,NULL,0,NULL,NULL 40449,131291,692067,Famous Question,NULL,NULL,0,NULL,NULL 40450,371559,408027,Great Answer Yearling Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 40451,43105,510395,Popular Question Notable Question Nice Question Famous Question Nice Question Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 40452,1147406,1317804,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 40453,426111,605493,NULL,NULL,NULL,0,NULL,NULL 40454,17397,15832,Popular Question,NULL,NULL,0,NULL,NULL 40455,409782,1257490,NULL,NULL,NULL,0,NULL,NULL 40456,497210,12694,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40457,123968,122864,Popular Question Good Answer Yearling Custodian Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 40458,402096,219293,Necromancer Yearling Announcer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 40459,74690,100444,Popular Question Good Answer Yearling Notable Question Necromancer Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 40460,673290,1166066,Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 40461,1588881,1166066,Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 40462,3104266,510271,Student Popular Question Caucus Nice Answer Enlightened Caucus Critic,NULL,NULL,0,NULL,NULL 40463,84285,510271,Student Popular Question Caucus Nice Answer Enlightened Caucus Critic,NULL,NULL,0,NULL,NULL 40464,52840,446464,Popular Question Yearling Notable Question Notable Question Revival Necromancer Notable Question Yearling Populist Civic Duty Necromancer Nice Answer Yearling Custodian Census Necromancer Necromancer Caucus Constituent Necromancer Necromancer Nice Answer Good Answer Yearling,NULL,href https curl haxx se docs manpage html rel noreferrer codeman curl code ppre code header lt header gt HTTP Extra header to use when getting web page You may specify any number of extra headers Note that if you should add custom header that has the same name as one of the internal ones curl would use your externally set header will be used instead of the internal one This allows you to make even trickier stuff than curl would normally do You should not replace internally set headers without knowing perfectly well what you re doing Remove an internal header by giving replacement without content on the right side of the colon as in Host curl will make sure that each header you add replace get sent with the proper end of line marker you should thus not add that as part of the header content do not add newlines or carriage returns they will only mess things up for you See also the user agent and referer options This option can be used multiple times to add replace remove multi ple headers code preh1 strongExample strong h1pre codecurl header MyHeader 123 www google com code prepYou can see the request that curl sent by adding the code code option man pages on OSX at least now DO include an example Example curl First Name Joe http 192 168,0,NULL,NULL 40465,492351,370790,NULL,NULL,NULL,0,NULL,NULL 40466,64405,104458,Nice Answer Enlightened Nice Answer Notable Question Notable Question Good Answer Notable Question Nice Answer Enlightened Yearling networking Notable Question Inquisitive Nice Question Nice Question Disciplined Nice Answer Popular Question sockets Caucus Nice Answer Pundit Nice Question Nice Answer Enlightened Strunk & White windows Popular Question Revival Notable Question Nice Answer Enlightened Nice Answer Nice Answer Yearling Notable Question java Nice Answer Notable Question Nice Question Nice Answer Notable Question c p2p Great Answer Census Nice Answer Good Answer dll Nice Answer Nice Answer Enlightened tcp Caucus Popular Question Nice Answer udp Yearling Notable Question Revival Cleanup Announcer Announcer Famous Question Nice Question Revival Nice Answer Enlightened c++ Nice Answer Nice Question Notable Question Popular Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 40467,435643,1462700,NULL,NULL,NULL,0,NULL,NULL 40468,81420,375640,NULL,NULL,NULL,0,NULL,NULL 40469,107170,235794,NULL,NULL,NULL,0,NULL,NULL 40470,297167,994130,NULL,NULL,NULL,0,NULL,NULL 40471,871541,1414826,Critic Notable Question,NULL,NULL,0,NULL,NULL 40472,210078,823158,NULL,NULL,NULL,0,NULL,NULL 40473,315274,401150,Popular Question,NULL,NULL,0,NULL,NULL 40474,29479,823300,Notable Question Notable Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 40475,157795,545565,NULL,NULL,NULL,0,NULL,NULL 40476,145343,1020643,NULL,NULL,NULL,0,NULL,NULL 40477,62753,256332,Yearling Great Answer Yearling Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 40478,169270,1247070,NULL,NULL,NULL,0,NULL,NULL 40479,25159,1366744,NULL,NULL,NULL,0,NULL,NULL 40480,166338,263774,NULL,NULL,NULL,0,NULL,NULL 40481,31702,774559,NULL,NULL,NULL,0,NULL,NULL 40482,477117,395411,Famous Question,NULL,NULL,0,NULL,NULL 40483,318571,1313316,NULL,NULL,NULL,0,NULL,NULL 40484,215822,370562,Yearling Teacher Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 40485,216994,13827,Yearling Explainer Custodian python Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 40486,101110,270856,NULL,NULL,NULL,0,NULL,NULL 40487,191943,362978,NULL,NULL,NULL,0,NULL,NULL 40488,8560477,1205522,Student Popular Question,NULL,NULL,0,NULL,NULL 40489,212492,779954,NULL,NULL,NULL,0,NULL,NULL 40490,240434,1406444,Tumbleweed Curious Notable Question Caucus Commentator Yearling,NULL,NULL,0,NULL,NULL 40491,4950497,511616,NULL,NULL,NULL,0,NULL,NULL 40492,8115290,1078405,Good Answer,NULL,NULL,0,NULL,NULL 40493,692952,526141,NULL,NULL,NULL,0,NULL,NULL 40494,1920887,1388566,NULL,NULL,NULL,0,NULL,NULL 40495,601655,833550,NULL,NULL,NULL,0,NULL,NULL 40496,168725,97287,NULL,NULL,NULL,0,NULL,NULL 40497,193240,328787,Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 40498,41904,47545,Famous Question Necromancer Yearling Nice Answer Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 40499,2205963,763054,NULL,NULL,NULL,0,NULL,NULL 40500,36216,1061077,NULL,NULL,NULL,0,NULL,NULL 40501,12938,460540,Caucus,NULL,NULL,0,NULL,NULL 40502,445449,577033,NULL,NULL,NULL,0,NULL,NULL 40503,95750,771612,Tumbleweed Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 40504,401024,130789,Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 40505,662837,314785,NULL,NULL,NULL,0,NULL,NULL 40506,1623452,123487,Nice Answer Nice Answer Enthusiast Necromancer Yearling Nice Answer Good Answer Guru Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Yearling Nice Answer Nice Answer Guru Good Answer delphi-7 Good Answer Yearling Necromancer Nice Answer Populist,NULL,NULL,0,NULL,NULL 40507,448741,1115500,NULL,NULL,NULL,0,NULL,NULL 40508,79745,881,Tumbleweed,NULL,NULL,0,NULL,NULL 40509,177274,211437,Yearling,NULL,NULL,0,NULL,NULL 40510,49419,1184040,NULL,NULL,NULL,0,NULL,NULL 40511,335242,962764,NULL,NULL,NULL,0,NULL,NULL 40512,130478,1288626,NULL,NULL,NULL,0,NULL,NULL 40513,467572,346669,NULL,NULL,NULL,0,NULL,NULL 40514,203985,116316,Nice Answer Good Question Famous Question,NULL,NULL,0,NULL,NULL 40515,302569,839270,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 40516,326001,1126949,NULL,NULL,NULL,0,NULL,NULL 40517,10015777,985526,Necromancer Yearling Necromancer Excavator Nice Answer Curious Yearling Custodian Citizen Patrol Organizer Custodian Tumbleweed Revival Taxonomist Popular Question Custodian Notable Question Nice Question Yearling Nice Answer Enlightened,NULL,pYou can convert 3D position to screen coordinates by using pattern like so ppre codevar vector new THREE Vector3 var canvas renderer domElement vector set map to normalized device coordinate NDC spacevector project camera map to 2D screen spacevector Math round vector canvas width vector Math round vector canvas height vector code prepthree js 69 would use canvas offsetWidth instead,0,NULL,NULL 40518,7643,985526,Necromancer Yearling Necromancer Excavator Nice Answer Curious Yearling Custodian Citizen Patrol Organizer Custodian Tumbleweed Revival Taxonomist Popular Question Custodian Notable Question Nice Question Yearling Nice Answer Enlightened,NULL,pYou can convert 3D position to screen coordinates by using pattern like so ppre codevar vector new THREE Vector3 var canvas renderer domElement vector set map to normalized device coordinate NDC spacevector project camera map to 2D screen spacevector Math round vector canvas width vector Math round vector canvas height vector code prepthree js 69 would use canvas offsetWidth instead,0,NULL,NULL 40519,44490,60737,Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 40520,402013,1302426,NULL,NULL,NULL,0,NULL,NULL 40521,3737285,1302426,NULL,NULL,,0,, 40522,471082,853123,NULL,NULL,NULL,0,NULL,NULL 40523,228214,68751,Yearling Notable Question Revival Promoter Yearling Notable Question Popular Question Favorite Question Great Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Great Answer Popular Question Notable Question Notable Question Nice Question Popular Question Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 40524,54364,1255671,NULL,NULL,NULL,0,NULL,NULL 40525,365696,1240878,NULL,NULL,NULL,0,NULL,NULL 40526,161206,600127,Good Answer Yearling Guru Yearling mongodb,NULL,NULL,0,NULL,NULL 40527,50079,121364,Nice Answer Notable Question Guru Great Question Popular Question Good Answer Famous Question Yearling Notable Question Great Question Nice Answer Necromancer Popular Question Good Answer Nice Answer Generalist Yearling Nice Question Yearling Benefactor Nice Answer Good Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 40528,544241,1449310,NULL,NULL,NULL,0,NULL,NULL 40529,8329,535665,Good Question Popular Question Popular Question Notable Question Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Question Announcer Yearling Good Answer Notable Question Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 40530,19150,300368,Notable Question Notable Question Yearling Popular Question Popular Question Nice Answer Popular Question Notable Question Good Question Popular Question Famous Question Notable Question Popular Question Yearling Famous Question Nice Question Nice Answer Nice Question Good Question Nice Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question Famous Question Famous Question Famous Question Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40531,150883,465395,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40532,668638,195255,NULL,NULL,NULL,0,NULL,NULL 40533,2697109,1049946,NULL,NULL,NULL,0,NULL,NULL 40534,4857223,1198023,NULL,NULL,NULL,0,NULL,NULL 40535,779927,161914,Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 40536,80450,161914,Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 40537,170477,235814,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40538,37603,88340,Yearling Guru Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 40539,502388,546337,Critic Commentator Informed Caucus Yearling Revival Documentation User Necromancer Caucus Constituent,NULL,NULL,0,NULL,NULL 40540,547077,1483608,Tumbleweed Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40541,82275,168123,Supporter Notable Question Famous Question,NULL,NULL,0,NULL,NULL 40542,456808,791927,Scholar,NULL,NULL,0,NULL,NULL 40543,114920,15743,Yearling Custodian,NULL,NULL,0,NULL,NULL 40544,18800,563318,Revival,NULL,NULL,0,NULL,NULL 40545,421511,243698,NULL,NULL,NULL,0,NULL,NULL 40546,191302,264632,Nice Question Popular Question Popular Question Yearling Great Question Favorite Question Notable Question Popular Question Popular Question Notable Question Yearling Famous Question Nice Question Notable Question Nice Question Notable Question Nice Question Favorite Question Caucus Notable Question Notable Question Notable Question Popular Question Great Question Yearling Notable Question Popular Question Notable Question Nice Question Revival Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 40547,81352,1078415,NULL,NULL,NULL,0,NULL,NULL 40548,136505,240067,NULL,NULL,NULL,0,NULL,NULL 40549,7321,1124616,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40550,38295,48063,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 40551,18737,363951,NULL,NULL,NULL,0,NULL,NULL 40552,216055,476326,NULL,NULL,NULL,0,NULL,NULL 40553,614920,1290328,NULL,NULL,NULL,0,NULL,NULL 40554,478206,810750,NULL,NULL,NULL,0,NULL,NULL 40555,243560,207,Popular Question Stellar Question Yearling Good Answer Nice Answer Favorite Question Nice Question Famous Question Yearling Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 40556,1376678,656953,NULL,NULL,NULL,0,NULL,NULL 40557,48569,2683,Favorite Question Revival Nice Answer Nice Question Necromancer Popular Question Yearling Great Question Nice Question Notable Question Revival Famous Question Popular Question Good Answer Necromancer Necromancer Famous Question Famous Question Nice Answer Enlightened Popular Question Yearling Nice Question Notable Question Great Question Nice Question Notable Question Nice Answer Notable Question Yearling Notable Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 40558,277391,1250485,NULL,NULL,NULL,0,NULL,NULL 40559,978901,748943,Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 40560,47623,697843,NULL,NULL,NULL,0,NULL,NULL 40561,3196992,1487102,Peer Pressure Informed Popular Question Good Answer Revival Necromancer Good Answer Popular Question javascript Notable Question Nice Answer Yearling Cleanup Nice Answer Necromancer Guru Necromancer Caucus Revival Nice Answer Guru Announcer Inquisitive Nice Answer Yearling Good Answer Popular Question Popular Question Necromancer Documentation User Nice Answer Announcer Good Answer Necromancer Necromancer Popular Question Self-Learner Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40562,1351265,1487102,Peer Pressure Informed Popular Question Good Answer Revival Necromancer Good Answer Popular Question javascript Notable Question Nice Answer Yearling Cleanup Nice Answer Necromancer Guru Necromancer Caucus Revival Nice Answer Guru Announcer Inquisitive Nice Answer Yearling Good Answer Popular Question Popular Question Necromancer Documentation User Nice Answer Announcer Good Answer Necromancer Necromancer Popular Question Self-Learner Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40563,120204,97831,Popular Question Notable Question Popular Question hudson Nice Answer Yearling Notable Question Popular Question Nice Question Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Famous Question Yearling Famous Question Popular Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 40564,34296,777919,Yearling Good Answer Yearling Custodian Yearling,NULL,pFOREWORD this answer was written when the question was pblockquote pLike the old Albert said If you can explain it to six year old you really don understand it yourself Well tried to explain JS closures to 27 years old friend and completely failed pCan anybody consider that am and strangely interested in that subject blockquotepI pretty sure was one of the only people that attempted to take the initial question literally Since then the question has mutated several times so my answer may now seem incredibly silly amp out of place Hopefully the general idea of the story remains fun for some phrpI big fan of analogy and metaphor when explaining difficult concepts so let me try my hand with story pp strongOnce upon time strong ppThere was princess ppre codefunction princess code prepShe lived in wonderful world full of adventures She met her Prince Charming rode around her world on unicorn battled dragons encountered talking animals and many other fantastical things ppre code var adventures function princeCharming var unicorn dragons squirrel Hello code prepBut she would always have to return back to her dull world of chores and grown ups ppre code return code prepAnd she would often tell them of her latest amazing adventure as princess ppre code story function return adventures adventures length code prepBut all they would see is little girl ppre codevar littleGirl princess code prep telling stories about magic and fantasy ppre codelittleGirl story code prepAnd even though the grown ups knew of real princesses they would never believe in the unicorns or dragons because they could never see them The grown ups said that they only existed inside the little girl imagination ppBut we know the real truth that the little girl with the princess inside pp is really princess with little girl inside yes story is closure referencing the environment provided within the scope of princess princess is also another implied closure the princess and the littleGirl would share any reference to parents array that would exist back in the environment scope where the littleGirl exists and the princess is defined pFOREWORD this answer was written when the question was pblockquote pLike the old Albert said If you can explain it to six year old you really don understand it yourself Well tried to explain JS closures to 27 years old friend and completely failed pCan anybody consider that am and strangely interested in that subject blockquotepI pretty sure was one of the only people that attempted to take the initial question literally Since then the question has mutated several times so my answer may now seem incredibly silly amp out of place Hopefully the general idea of the story remains fun for some phrpI big fan of analogy and metaphor when explaining difficult concepts so let me try my hand with story pp strongOnce upon time strong ppThere was princess ppre codefunction princess code prepShe lived in wonderful world full of adventures She met her Prince Charming rode around her world on unicorn battled dragons encountered talking animals and many other fantastical things ppre code var adventures function princeCharming var unicorn dragons squirrel Hello code prepBut she would always have to return back to her dull world of chores and grown ups ppre code return code prepAnd she would often tell them of her latest amazing adventure as princess ppre code story function return adventures adventures length code prepBut all they would see is little girl ppre codevar littleGirl princess code prep telling stories about magic and fantasy ppre codelittleGirl story code prepAnd even though the grown ups knew of real princesses they would never believe in the unicorns or dragons because they could never see them The grown ups said that they only existed inside the little girl imagination ppBut we know the real truth that the little girl with the princess inside pp is really princess with little girl inside That is not necessary this princess design is not class but rather factory pFOREWORD this answer was written when the question was pblockquote pLike the old Albert said If you can explain it to six year old you really don understand it yourself Well tried to explain JS closures to 27 years old friend and completely failed pCan anybody consider that am and strangely interested in that subject blockquotepI pretty sure was one of the only people that attempted to take the initial question literally Since then the question has mutated several times so my answer may now seem incredibly silly amp out of place Hopefully the general idea of the story remains fun for some phrpI big fan of analogy and metaphor when explaining difficult concepts so let me try my hand with story pp strongOnce upon time strong ppThere was princess ppre codefunction princess code prepShe lived in wonderful world full of adventures She met her Prince Charming rode around her world on unicorn battled dragons encountered talking animals and many other fantastical things ppre code var adventures function princeCharming var unicorn dragons squirrel Hello code prepBut she would always have to return back to her dull world of chores and grown ups ppre code return code prepAnd she would often tell them of her latest amazing adventure as princess ppre code story function return adventures adventures length code prepBut all they would see is little girl ppre codevar littleGirl princess code prep telling stories about magic and fantasy ppre codelittleGirl story code prepAnd even though the grown ups knew of real princesses they would never believe in the unicorns or dragons because they could never see them The grown ups said that they only existed inside the little girl imagination ppBut we know the real truth that the little girl with the princess inside pp is really princess with little girl inside ve added an explicit code comment to show imply that there are more operations within the body of princess than what written Unfortunately this story is now bit out of place on this thread Originally the question was asking to explain JavaScript closures to 5yr old my response was the only one that even attempted to do that don doubt that it would ve failed miserably but at least this response might ve had the chance to hold 5yr old interest,0,NULL,NULL 40565,160563,139838,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 40566,437877,1234537,NULL,NULL,NULL,0,NULL,NULL 40567,120744,867496,NULL,NULL,NULL,0,NULL,NULL 40568,462715,867884,NULL,NULL,NULL,0,NULL,NULL 40569,323514,602251,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 40570,453549,1229106,NULL,NULL,NULL,0,NULL,NULL 40571,315947,125992,NULL,NULL,NULL,0,NULL,NULL 40572,2559257,125992,NULL,NULL,NULL,0,NULL,NULL 40573,173994,905112,Teacher Critic,NULL,NULL,0,NULL,NULL 40574,10122,811249,Notable Question,NULL,pI know late to the party here but the accepted answer will break horribly when trying to work out the age of someone born on the 29th February on leap year This is because the call to codebirthday to date change year now year code creates an invalid date ppI used the following code in Rails project instead ppre codedef age dob now Time now utc to date now year dob year now month gt dob month now month dob month amp amp now day gt dob day end code pre Could use the spaceship operator instead the long conditional https ruby doc org core Time html method 3C 3D 3E,0,NULL,NULL 40575,262908,185116,Yearling,NULL,NULL,0,NULL,NULL 40576,2212089,174634,Favorite Question Famous Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 40577,7561,60436,Commentator Critic,NULL,NULL,0,NULL,NULL 40578,63198,385846,Revival Necromancer Nice Answer Yearling Nice Question Good Answer Yearling Popular Question Yearling Promoter Benefactor Caucus Civic Duty Custodian Yearling,NULL,NULL,0,NULL,NULL 40579,123646,746040,NULL,NULL,NULL,0,NULL,NULL 40580,28309,112855,Notable Question Nice Question Good Question Famous Question Famous Question Yearling Famous Question Famous Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 40581,1253447,1092322,NULL,NULL,NULL,0,NULL,NULL 40582,1488555,277932,Yearling Nice Question Yearling Nice Answer Custodian Custodian Custodian Nice Answer Enlightened Famous Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 40583,194005,277932,Yearling Nice Question Yearling Nice Answer Custodian Custodian Custodian Nice Answer Enlightened Famous Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 40584,240703,23649,Guru Inquisitive Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Famous Question Disciplined ipad Popular Question Nice Answer Nice Question Revival ios Popular Question Guru Notable Question Good Answer swift Nice Answer Enlightened Notable Question Necromancer Good Question Nice Answer Guru Nice Answer Enlightened Necromancer Documentation Beta Documentation Pioneer Famous Question Good Answer Nice Answer Enlightened Nice Answer Nice Question Great Answer Good Answer Yearling Nice Answer Enlightened Favorite Question Nice Answer Great Answer Great Answer Famous Question Caucus Good Answer Nice Answer Good Answer Refiner Nice Answer Announcer Notable Question Good Answer Good Question Revival Popular Question Nice Answer Enlightened Copy Editor Great Question Great Answer Census Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Populist Nice Answer Great Answer Guru Nice Answer Necromancer Nice Question Good Question Popular Question Nice Question Good Answer Good Answer Popular Question Caucus Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Necromancer Yearling Documentation User Stellar Question Notable Question Announcer Announcer Notable Question macos Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Census Nice Answer Enlightened Nice Answer Great Answer Caucus Announcer Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Popular Question Good Answer Great Answer Announcer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 40585,235256,675710,NULL,NULL,NULL,0,NULL,NULL 40586,107171,1190235,Revival Yearling Necromancer Popular Question Organizer Popular Question Popular Question Notable Question Nice Answer Guru Notable Question Yearling Notable Question Good Answer Famous Question Yearling Popular Question,NULL,pYou also need to edit the Trust relationship for the role to allow the account even if it the same to assume the role polliopen the role that you want to assume in the console liliclick on the Trust Relationships tab liliclick on Edit RelationShip liliadd statement for the account that you want to add usually you ll only have the ec2 service in the Trusted Entities li olpre code Version 2012 10 17 Statement Sid Effect Allow Principal Service ec2 amazonaws com Action sts AssumeRole Sid Effect Allow Principal AWS arn aws iam 123456789012 role some role Action sts AssumeRole code prepIn this example had to add the AWS principal with the proper account number the ec2 amazonaws com Service was already there ppAfter ve done that was able to assume the role without issue Took me literally hours to figure this out hope that will help someone Glad it helps Btw updated the example to use more restricted role than root which is better from security perspective,0,NULL,NULL 40587,208159,728347,NULL,NULL,NULL,0,NULL,NULL 40588,934326,728347,NULL,NULL,NULL,0,NULL,NULL 40589,526494,1555678,Supporter Teacher Editor Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 40590,17963,1114761,Popular Question,NULL,NULL,0,NULL,NULL 40591,15168,1127814,Nice Question Necromancer,NULL,NULL,0,NULL,NULL 40592,1732756,669509,NULL,NULL,NULL,0,NULL,NULL 40593,159127,990474,NULL,NULL,NULL,0,NULL,NULL 40594,125597,301247,Nice Answer Enlightened Yearling Critic Yearling Good Answer,NULL,NULL,0,NULL,NULL 40595,76979,624900,Guru Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Question Guru Pundit Good Answer Nice Answer Good Answer Nice Answer Enlightened Notable Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Caucus Notable Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Question Popular Question Yearling Nice Answer Nice Answer Generalist Guru Popular Question Nice Answer Nice Answer Nice Answer Enlightened Nice Question Good Answer Good Answer Notable Question Great Answer Nice Answer Nice Answer Enlightened Good Answer Notable Question Documentation User Nice Answer Enlightened Populist Guru Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Yearling Good Question Famous Question google-cloud-storage Good Answer Nice Question Nice Question Nice Question Nice Answer Nice Answer Enlightened Necromancer Good Answer Announcer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Popular Question,NULL,pSquare brackets are href http docs python org tutorial datastructures html more on lists rel noreferrer lists while parentheses are href http docs python org library functions html tuple rel noreferrer tuples ppA list is mutable meaning you can change its contents ppre code gt gt gt gt gt gt append gt gt gt code prepwhile tuples are not ppre code gt gt gt gt gt gt gt gt gt append Traceback most recent call last File lt stdin gt line in lt module gt AttributeError tuple object has no attribute append code prepThe other main difference is that tuple is hashable meaning that you can use it as key to dictionary among other things For example ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt 4Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prehrpNote that as many people have pointed out you can add tuples together For example ppre code gt gt gt gt gt gt gt gt gt code prepHowever strongthis does not mean tuples are mutable strong In the example above emnew em tuple is constructed by adding together the two tuples as arguments The original tuple is not modified To demonstrate this consider the following ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt code prepWhereas if you were to construct this same example with list codey code would also be updated ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt code pre that not really an append since the original tuples are not modified You re creating new tuple as the result of adding together the two existing tuples pSquare brackets are href http docs python org tutorial datastructures html more on lists rel noreferrer lists while parentheses are href http docs python org library functions html tuple rel noreferrer tuples ppA list is mutable meaning you can change its contents ppre code gt gt gt gt gt gt append gt gt gt code prepwhile tuples are not ppre code gt gt gt gt gt gt gt gt gt append Traceback most recent call last File lt stdin gt line in lt module gt AttributeError tuple object has no attribute append code prepThe other main difference is that tuple is hashable meaning that you can use it as key to dictionary among other things For example ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt 4Traceback most recent call last File lt stdin gt line in lt module gt TypeError unhashable type list code prehrpNote that as many people have pointed out you can add tuples together For example ppre code gt gt gt gt gt gt gt gt gt code prepHowever strongthis does not mean tuples are mutable strong In the example above emnew em tuple is constructed by adding together the two tuples as arguments The original tuple is not modified To demonstrate this consider the following ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt code prepWhereas if you were to construct this same example with list codey code would also be updated ppre code gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt code pre updated the answer to give some examples about that,0,NULL,NULL 40596,89931,98144,Great Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 40597,251010,955369,Notable Question Popular Question Popular Question Famous Question Yearling Good Answer Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 40598,387274,1440081,NULL,NULL,NULL,0,NULL,NULL 40599,173326,607068,Famous Question,NULL,NULL,0,NULL,NULL 40600,68221,678468,NULL,NULL,NULL,0,NULL,NULL 40601,244861,700761,NULL,NULL,NULL,0,NULL,NULL 40602,64527,1061240,Scholar Nice Answer Yearling Nice Answer Good Answer Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 40603,1181460,583830,Yearling Excavator Good Answer Notable Question Nice Answer Yearling Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 40604,194570,481484,Popular Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40605,193359,861900,Scholar Student Popular Question Notable Question Teacher Supporter Famous Question,NULL,NULL,0,NULL,NULL 40606,918668,589407,Citizen Patrol Necromancer Scholar Nice Answer Nice Answer Yearling Necromancer Caucus Necromancer Caucus Constituent Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 40607,1056929,565889,Revival Popular Question,NULL,NULL,0,NULL,NULL 40608,435007,650133,Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Documentation Pioneer Proofreader Nice Answer Popular Question Yearling Nice Answer Popular Question Popular Question Necromancer Documentation User Nice Question Nice Answer Yearling Nice Answer Notable Question Notable Question Nice Question Good Answer Notable Question Good Answer Good Answer,NULL,NULL,0,NULL,NULL 40609,138699,252624,Yearling Nice Answer Popular Question Citizen Patrol Custodian Census Notable Question,NULL,NULL,0,NULL,NULL 40610,6245806,686198,Promoter Popular Question,NULL,NULL,0,NULL,NULL 40611,1098516,686198,Promoter Popular Question,NULL,NULL,0,NULL,NULL 40612,104312,463678,Citizen Patrol Yearling Good Answer Tumbleweed Necromancer,NULL,pYes Hit kbdCtrl kbd kbdR kbd then kbd kbd If you have literal control characters in what you have yanked use kbdCtrl kbd kbdR kbd kbdCtrl kbd kbdO kbd kbd kbd ppHere is an explanation of what you can do with registers What you can do with registers is extraordinary and once you know how to use them you cannot live without them ppRegisters are basically storage locations for strings Vim has many registers that work in different ways pulli code0 code yank register when you use codey code in normal mode without specifying register yanked text goes there and also to the default register lili code1 code to code9 code shifting delete registers when you use commands such as codec code or coded code what has been deleted goes to register what was in register goes to register emetc em lili code code default register also known as unnamed register This is where the kbd kbd comes in kbdCtrl kbd kbdR kbd kbd kbd lili codea code to codez code for your own use capitalized codeA code to codeZ code are for appending to corresponding registers lili code code acts like code dev null code Unix or codeNUL code Windows you can write to it but it discarded and when you read from it it is always empty lili code code small delete register lili code code search pattern register updated when you look for text with code code code code code code or code code for instance you can also write to it to dynamically change the search pattern lili code code stores last VimL typed command via codeQ code or code code readonly lili code code and code code system clipboard registers you can write to them to set the clipboard and read the clipboard contents from them li ulpSee code help registers code for the full reference ppYou can at any moment use code registers code to display the contents of all registers Synonyms and shorthands for this command are code display code code reg code and code di code ppIn Insert or Command line mode kbdCtrl kbd kbdR kbd plus register name inserts the contents of this register If you want to insert them literally no auto indenting no conversion of control characters like code0x08 code to backspace etc you can use kbdCtrl kbd kbdR kbd kbdCtrl kbd kbdO kbd register name See code help CTRL code and following paragraphs for more reference ppBut you can also do the following and probably forgot many uses for registers pulli pIn normal mode hit kbd kbd kbd kbd kbdp kbd The last command you used in vim is pasted into your buffer brLet decompose code code is Normal mode command that lets you select what register is to be used during the next yank delete or paste operation So kbd kbd kbd kbd selects the colon register storing last command Then kbdp kbd is command you already know it pastes the contents of the register ppcf code help code code help quote code lili pYou re editing VimL file for instance your code vimrc code and would like to execute couple of consecutive lines right now kbdy kbd kbdj kbd kbd kbd kbd kbd kbd kbd kbdEnter kbd brHere kbdy kbd kbdj kbd yanks current and next line this is because is linewise motion but this is out of scope of this answer into the default register also known as the unnamed register Then the code code Ex command plays Ex commands stored in the register given as argument and code code is how you refer to the unnamed register Also see the top of this answer which is related ppDo not confuse code code used here which is register name with the code code from the previous example which was Normal mode command ppcf code help code and code help quote quote code lili pInsert the last search pattern into your file in Insert mode or into the command line with kbdCtrl kbd kbdR kbd kbd kbd ppcf code help quote code codehelp CTRL code ppCorollary Keep your search pattern but add an alternative code code kbdCtrl kbd kbdR kbd kbd kbd code alternative code lili pYou ve selected two words in the middle of line in visual mode yanked them with codey code they are in the unnamed register Now you want to open new line just below where you are with those two words code pu code This is shorthand for code put code The code put code command like many Ex commands works only linewise ppcf code help put code ppYou could also have done code call setreg code then codep code The codesetreg code function sets the register of which the name is given as first argument as string initializes it with the contents of the second argument and you can use registers as variables with the name code code where codex code is the register name in VimL and turns it into the mode specified in the third argument codeV code for linewise nothing for characterwise and literal code code for blockwise ppcf code help setreg code The reverse functions are codegetreg code and codegetregtype code lili pIf you have recorded macro with codeqa code codeq code then code echo code will tell you what you have typed and code code will replay the macro probably you knew that one very useful in order to avoid repetitive tasks ppcf code help code codehelp code ppCorollary from the previous example If you have code8go code in the clipboard then code code will play the clipboard contents as macro and thus go to the 8th byte of your file Actually this will work with almost every register If your last inserted string was codedd code in Insert mode then code code will because the code code register contains the last inserted string delete line Vim documentation is wrong in this regard since it states that the registers code code code code code code and code code will only work with codep code codeP code code put code and kbdCtrl kbd kbdR kbd ppcf code help code ppDon confuse code code command that plays Vim commands from register and code code normal mode command that plays normal mode commands from register ppNotable exception is code code The command register does not contain the initial colon neither does it contain the final carriage return However in Normal mode code code will do what you expect interpreting the register as an Ex command not trying to play it in Normal mode So if your last command was code code the register contains codee code but code code will reload the file not go to end of word ppcf code help code lili pShow what you will be doing in Normal mode before running it code dd code kbdEnter kbd As soon as you hit the code code key Vim switches to expression evaluation as you enter an expression and hit kbdEnter kbd Vim computes it and the result acts as register content Of course the register code code is read only and one shot Each time you start using it you will have to enter new expression ppcf code help quote code ppCorollary If you are editing command and you realize that you should need to insert into your command line some line from your current buffer don press kbdEsc kbd Use kbdCtrl kbd kbdR kbd code getline 58 code kbdEnter kbd After that you will be back to command line editing but it has inserted the contents of the 58th line lili pDefine search pattern manually code let foo code ppcf code help let code ppNote that doing that you needn to escape code code in the pattern However you need to double all single quotes of course lili pCopy all lines beginning with codefoo code and afterwards all lines containing codebar code to clipboard chain these commands codeqaq code resets the ema em register storing an empty macro inside it code foo code code bar code code let code ppUsing capital register name makes the register work in append mode ppBetter if codeQ code has not been remapped by codemswin vim code start Ex mode with codeQ code chain those “colon commands” which are actually better called “Ex commands” and go back to Normal mode by typing codevisual code ppcf code help code code help code code help code lili pDouble space your file code put code This puts the contents of the black hole register empty when reading but writable behaving like code dev null code linewise after each line because every line has beginning lili pAdd line containing codefoo code before each line code put foo code This is clever use of the expression register Here code code is synonym for code code cf code help range code Since code put code puts the text after the line you have to explicitly tell it to act on the previous one lili pCopy the entire buffer to the system clipboard code code ppcf code help range code for the code code part and code help code lili pIf you have misrecorded macro you can type code let code kbdCtrl kbd kbdR kbd code replace code kbdEnter kbd code code and edit it This will modify the contents of the macro stored in register codea code and it shown here how you can use the expression register to do that lili pIf you did codedddd code you might do codeuu code in order to undo With codep code you could get the last deleted line But actually you can also recover up to deletes with the registers code code through code code ppEven better if you do code 1P code then code code in Normal mode will play code 2P code and so on ppcf code help code and code help quote number code lili pIf you want to insert the current date in Insert mode kbdCtrl kbd kbdR kbd code strftime code kbdEnter kbd ppcf code help strftime code li ulpOnce again what can be confusing pulli code code is command line command that interprets the contents of register as vimscript and sources it lili code code in normal mode command that interprets the contents of register as normal mode keystrokes except when you use code code register that contains last played command without the initial colon in this case it replays the command as if you also re typed the colon and the final return key lili code code in normal mode command that helps you select register for yank paste delete correct etc lili code code is also valid register name the default or unnamed register and therefore can be passed as an arguments for commands that expect register names li ul Regarding shifting delete registers do not forget this uh design decision help Numbered register contains the text deleted by the most recent delete or change command unless the command specified another register or the text is less than one line the small delete register is used then,0,NULL,NULL 40613,6224,283807,Yearling Caucus Constituent Notable Question Popular Question Yearling Good Answer Nice Question Notable Question Famous Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40614,89234,16548,Nice Question Yearling Nice Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 40615,370780,1346483,Curious Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40616,2347496,1336833,Notable Question,NULL,NULL,0,NULL,NULL 40617,699224,336412,Caucus Yearling,NULL,NULL,0,NULL,NULL 40618,201752,1174487,NULL,NULL,NULL,0,NULL,NULL 40619,88001,160386,Tag Editor Explainer Civic Duty Excavator Nice Question Yearling Caucus Informed Notable Question Nice Answer Enlightened Caucus Yearling Great Question Announcer Yearling Famous Question,NULL,NULL,0,NULL,NULL 40620,583107,1088588,Peer Pressure,NULL,NULL,0,NULL,NULL 40621,3461910,903710,Notable Question,NULL,NULL,0,NULL,NULL 40622,73236,422075,Commentator Yearling Good Answer Populist Nice Answer Yearling Yearling Announcer Yearling Yearling Popular Question Nice Question Great Answer Yearling,NULL,How to square an image and pad with transparency from the commandline imagemagick imagemagick pThe section entitled href http www imagemagick org Usage thumbnails square rel nofollow Square Padding or Cropping describes method to generate square image for file whose dimensions are unknown and pad the background with color ppHow do perform the same operation but create strongtransparent strong background had just missed it Your solution is exactly what was looking for just marked it Thanks,0,NULL,NULL 40623,1110481,2911,Notable Question Yearling Yearling Yearling Yearling Yearling Yearling Yearling Yearling Mortarboard Tumbleweed Yearling Documentation User Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 40624,23950,581962,NULL,NULL,NULL,0,NULL,NULL 40625,1531773,1316786,Guru Nice Answer python Guru Yearling Nice Question Popular Question Nice Answer Enlightened Notable Question Good Answer Popular Question Nice Answer Notable Question Revival Nice Answer Enlightened Yearling Famous Question pandas Popular Question Nice Answer Enlightened Popular Question Popular Question Nice Answer Notable Question Good Answer Great Answer Yearling Taxonomist Good Answer Great Answer Nice Question Good Answer,NULL,NULL,0,NULL,NULL 40626,1022959,1344653,NULL,NULL,NULL,0,NULL,NULL 40627,229997,443543,Popular Question Popular Question Popular Question Yearling Talkative Revival Revival Nice Answer Popular Question Yearling Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40628,220180,446766,Nice Answer Enlightened vagrant Yearling Autobiographer Caucus puphpet Notable Question Caucus Popular Question Yearling Announcer Yearling Curious,NULL,NULL,0,NULL,NULL 40629,158215,1090597,Yearling,NULL,NULL,0,NULL,NULL 40630,166614,1246307,Necromancer Supporter,NULL,NULL,0,NULL,NULL 40631,585981,1296548,Necromancer,NULL,NULL,0,NULL,NULL 40632,2669126,692011,Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 40633,1386141,897492,NULL,NULL,NULL,0,NULL,NULL 40634,414229,763329,Yearling Yearling Great Answer Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 40635,14361,206649,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 40636,243671,862347,Yearling Yearling Revival Great Answer Yearling,NULL,NULL,0,NULL,NULL 40637,803267,789761,NULL,NULL,NULL,0,NULL,NULL 40638,161519,107397,NULL,NULL,NULL,0,NULL,NULL 40639,88242,135424,Notable Question Commentator,NULL,NULL,0,NULL,NULL 40640,494734,1154143,NULL,NULL,NULL,0,NULL,NULL 40641,226231,417839,Good Answer Yearling Great Answer Yearling Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 40642,225880,576903,Informed Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 40643,624879,1494812,NULL,NULL,NULL,0,NULL,NULL 40644,158424,201930,NULL,NULL,NULL,0,NULL,NULL 40645,233029,1309166,NULL,NULL,NULL,0,NULL,NULL 40646,137386,568084,Yearling Famous Question Famous Question Notable Question Notable Question Notable Question Favorite Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40647,617077,508166,NULL,NULL,NULL,0,NULL,NULL 40648,531431,437775,NULL,NULL,NULL,0,NULL,NULL 40649,266318,857931,Teacher,NULL,NULL,0,NULL,NULL 40650,345953,873171,NULL,NULL,NULL,0,NULL,NULL 40651,10631791,873171,NULL,NULL,NULL,0,NULL,NULL 40652,146897,822131,NULL,NULL,NULL,0,NULL,NULL 40653,1352663,580611,Supporter,NULL,NULL,0,NULL,NULL 40654,675263,1007219,NULL,NULL,NULL,0,NULL,NULL 40655,1776956,1483309,NULL,NULL,NULL,0,NULL,NULL 40656,485690,1097781,NULL,NULL,NULL,0,NULL,NULL 40657,1227656,408708,NULL,NULL,NULL,0,NULL,NULL 40658,23840,660602,NULL,NULL,NULL,0,NULL,NULL 40659,145034,194577,NULL,NULL,NULL,0,NULL,NULL 40660,111166,502232,Popular Question,NULL,NULL,0,NULL,NULL 40661,14120,694969,NULL,NULL,NULL,0,NULL,NULL 40662,419218,638425,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40663,88152,798830,NULL,NULL,NULL,0,NULL,NULL 40664,24005,776465,NULL,NULL,NULL,0,NULL,NULL 40665,890159,1163210,Enthusiast Editor Revival Revival Announcer Informed Revival,NULL,NULL,0,NULL,NULL 40666,167790,709724,NULL,NULL,NULL,0,NULL,NULL 40667,155247,612470,NULL,NULL,NULL,0,NULL,NULL 40668,49166,854149,Yearling,NULL,NULL,0,NULL,NULL 40669,9255726,854149,Yearling,NULL,NULL,0,NULL,NULL 40670,269175,937692,NULL,NULL,NULL,0,NULL,NULL 40671,807370,356828,Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 40672,3469163,1022859,NULL,NULL,NULL,0,NULL,NULL 40673,323923,1098918,NULL,NULL,NULL,0,NULL,NULL 40674,49807,215847,Nice Question Notable Question Popular Question Nice Answer Notable Question Notable Question Popular Question Good Question Famous Question Yearling Excavator Notable Question Popular Question Custodian Nice Question Famous Question Notable Question Good Question Popular Question Inquisitive Custodian Yearling Notable Question Favorite Question Notable Question Nice Answer Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 40675,545118,1491503,NULL,NULL,NULL,0,NULL,NULL 40676,366702,168435,Revival Necromancer Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 40677,284818,25841,Curious Informed Popular Question,NULL,NULL,0,NULL,NULL 40678,200266,854306,NULL,NULL,NULL,0,NULL,NULL 40679,195798,539041,Informed Editor,NULL,NULL,0,NULL,NULL 40680,613405,1185014,Citizen Patrol Peer Pressure Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40681,555281,1549045,NULL,NULL,NULL,0,NULL,NULL 40682,2973878,1074389,Excavator Revival Yearling Nice Answer Enlightened Good Answer Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 40683,103701,1500329,Tumbleweed Editor Teacher,NULL,NULL,0,NULL,NULL 40684,416288,122543,Yearling Nice Answer Necromancer Popular Question Enlightened Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40685,902503,1142282,NULL,NULL,NULL,0,NULL,NULL 40686,204448,1164169,Yearling Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Good Question Popular Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 40687,1267593,1288976,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 40688,95545,1357423,Census,NULL,NULL,0,NULL,NULL 40689,1516744,1167975,NULL,NULL,NULL,0,NULL,NULL 40690,615524,190223,Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 40691,448658,1143452,NULL,NULL,NULL,0,NULL,NULL 40692,339115,1164728,Scholar Supporter Teacher,NULL,NULL,0,NULL,NULL 40693,8087224,1197775,Popular Question Nice Question Popular Question Yearling Good Answer Popular Question Notable Question Nice Question Nice Answer Enlightened Announcer Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Guru Nice Answer Enlightened Popular Question Guru Popular Question Necromancer javascript Popular Question Necromancer Caucus Custodian Good Question Revival Popular Question Necromancer Famous Question Yearling Necromancer Necromancer Nice Answer Popular Question Necromancer Popular Question Good Answer Nice Question Revival Announcer Announcer Famous Question Notable Question Popular Question Notable Question Notable Question Nice Answer Nice Answer Popular Question Announcer Famous Question Nice Answer Enlightened Necromancer Popular Question Popular Question Notable Question Announcer Yearling Notable Question Popular Question Popular Question Good Question Nice Question Nice Answer Enlightened Announcer Necromancer Nice Answer Nice Question Good Question Popular Question Nice Answer,NULL,Using fonts with Rails asset pipeline ruby on rails sass asset pipeline font face assets pI have some fonts being configured in my Scss file like so ppre code face font family Icomoon src asset url icoMoon eot iefix font format embedded opentype asset url icoMoon woff font format woff asset url icoMoon ttf font format truetype asset url icoMoon svg Icomoon font format svg code prepThe actual font file are stored in app assets fonts ppI have added codeconfig assets paths lt lt Rails root join app assets fonts code to my application rb file ppand the compile CSS source is as follows ppre code face font family Icomoon src url assets icoMoon eot iefix format embedded opentype url assets icoMoon woff format woff url assets icoMoon ttf format truetype url assets icoMoon svg Icomoon format svg code prepBut when run the app the font files are not being found The logs pblockquote pStarted GET assets icoMoon ttf for 127 at 2012 06 05 23 21 17 0100 Served asset icoMoon ttf 404 Not Found 13ms blockquotepWhy isn the asset pipeline flattening the font files down into just assets ppAny ideas people ppKind regards Neil pp strongExtra info strong ppWhen checking the rails console for assets paths and assetprecompile get the following ppre code1 2p320 001 gt Rails application config assets precompile ruby object Proc ruby regexp application css js svg eot woff ttf gt nil1 2p320 002 gt Rails application config assets paths Users neiltonge code neiltonge app assets fonts Users neiltonge code neiltonge app assets images Users neiltonge code neiltonge app assets javascripts Users neiltonge code neiltonge app assets stylesheets Users neiltonge code neiltonge vendor assets images Users neiltonge code neiltonge vendor assets javascripts Users neiltonge code neiltonge vendor assets stylesheets Users neiltonge rvm gems ruby p320 gems jquery rails vendor assets javascripts Users neiltonge rvm gems ruby p320 gems coffee rails lib assets javascripts Users neiltonge rvm gems ruby p320 gems bourbon app assets stylesheets ruby object Pathname path Users neiltonge code neiltonge app assets fonts gt nil code pre wrote generic way to diagnose and solve this problem at http stackoverflow com 40898227 1197775 pWrite an initializer that if codecache classes code is codefalse code uses href http api rubyonrails org classes ActionDispatch Reloader html rel noreferrer codeActionDispatch Reloader code to set codeto prepare code callback that runs your gem installation routine ppre codeinitializer foobar install do if Rails configuration cache classes FooBar install else ActionDispatch Reloader to prepare do FooBar install end endend code prepIt ll work both in the console with the codereload code method and in the Rack application server pp initializer did not work for me but removed that and it worked is hard to find things as this in docs thanks,0,NULL,NULL 40694,59897,449311,NULL,NULL,NULL,0,NULL,NULL 40695,219285,596060,Necromancer,NULL,NULL,0,NULL,NULL 40696,22475,638689,Yearling Caucus Populist Yearling,NULL,NULL,0,NULL,NULL 40697,374981,1410680,NULL,NULL,NULL,0,NULL,NULL 40698,1242307,1047695,Nice Answer Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 40699,9390209,1047695,Nice Answer Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 40700,201610,1417350,NULL,NULL,NULL,0,NULL,NULL 40701,1021116,132029,Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40702,3030712,132029,Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40703,305808,924496,Custodian Notable Question Self-Learner Yearling Caucus Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40704,176709,351721,Revival Popular Question Enthusiast Custodian Guru Good Answer Yearling Good Answer Citizen Patrol Famous Question Census Yearling Necromancer Nice Answer Yearling,NULL,Missing matchType at HERE geocoding responses here api pHERE Geocoding docs say that href https developer here com documentation geocoder topics reading geocoding response html rel nofollow noreferrer there MatchType result quality of the location match either pointAddress or interpolated Nevertheless not receiving it Here curl example request ppre code curl https geocoder cit api here com geocode json data urlencode app id XXX data urlencode app code YYYY data urlencode searchtext Plaza España Valladolid Spain json pp Total Received Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 916 100 916 4182 4182 Response MetaInfo Timestamp 2018 07 11T12 21 43 726 0000 View type SearchResultsViewType Result MatchQuality Country City District Location DisplayPosition Latitude 41 65039 Longitude 72559 LocationType point MapView BottomRight Longitude 71874 Latitude 41 64807 TopLeft Longitude 72961 Latitude 41 65196 LocationId NT zM4WS5CjEFeGmNW rZko9A Address District Plaza España County Valladolid Country ESP City Valladolid State Castilla León PostalCode 47002 Label Plaza España Valladolid Castilla León España AdditionalData value España key CountryName key StateName value Castilla León value Valladolid key CountyName NavigationPosition Longitude 72559 Latitude 41 65039 Relevance MatchLevel district ViewId code pre Ok in other search it appeared MatchType interpolated Does it appear only if the result is interpolated,1,Missing matchType at HERE geocoding responses here api pHERE Geocoding docs say that href https developer here com documentation geocoder topics reading geocoding response html rel nofollow noreferrer there MatchType result quality of the location match either pointAddress or interpolated Nevertheless not receiving it Here curl example request ppre code curl https geocoder cit api here com geocode json data urlencode app id XXX data urlencode app code YYYY data urlencode searchtext Plaza España Valladolid Spain json pp Total Received Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 916 100 916 4182 4182 Response MetaInfo Timestamp 2018 07 11T12 21 43 726 0000 View type SearchResultsViewType Result MatchQuality Country City District Location DisplayPosition Latitude 41 65039 Longitude 72559 LocationType point MapView BottomRight Longitude 71874 Latitude 41 64807 TopLeft Longitude 72961 Latitude 41 65196 LocationId NT zM4WS5CjEFeGmNW rZko9A Address District Plaza España County Valladolid Country ESP City Valladolid State Castilla León PostalCode 47002 Label Plaza España Valladolid Castilla León España AdditionalData value España key CountryName key StateName value Castilla León value Valladolid key CountyName NavigationPosition Longitude 72559 Latitude 41 65039 Relevance MatchLevel district ViewId code pre,NULL 40705,88207,1128412,Yearling Custodian Notable Question Notable Question Revival Notable Question Yearling Popular Question Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Guru,NULL,NULL,0,NULL,NULL 40706,507132,362937,Supporter Informed Notable Question Census Census,NULL,NULL,0,NULL,NULL 40707,66294,764049,NULL,NULL,NULL,0,NULL,NULL 40708,271260,758391,Informed,NULL,NULL,0,NULL,NULL 40709,509371,973418,Revival Commentator Yearling Necromancer Nice Answer Nice Answer Yearling Revival Nice Answer Necromancer Yearling Announcer,NULL,pHere is how configured the prompt to display Git status ppGet git prompt script ppre codecurl git prompt sh https raw githubusercontent com git git master contrib completion git prompt sh code prepAnd customize your prompt adding the following code in your bashrc file ppre code Load Git functionssource git prompt sh Syntactic sugar for ANSI escape sequencestxtblk 30m Black Regulartxtred 31m Redtxtgrn 32m Greentxtylw 33m Yellowtxtblu 34m Bluetxtpur 35m Purpletxtcyn 36m Cyantxtwht 37m Whitebldblk 30m Black Boldbldred 31m Redbldgrn 32m Greenbldylw 33m Yellowbldblu 34m Bluebldpur 35m Purplebldcyn 36m Cyanbldwht 37m Whiteunkblk 30m Black Underlineundred 31m Redundgrn 32m Greenundylw 33m Yellowundblu 34m Blueundpur 35m Purpleundcyn 36m Cyanundwht 37m Whitebakblk 40m Black Backgroundbakred 41m Redbadgrn 42m Greenbakylw 43m Yellowbakblu 44m Bluebakpur 45m Purplebakcyn 46m Cyanbakwht 47m Whitetxtrst 0m Text Reset Prompt variablesPROMPT BEFORE txtcyn txtwht txtrst PROMPT AFTER Prompt commandPROMPT COMMAND git ps1 PROMPT BEFORE PROMPT AFTER Git prompt features read git prompt sh for reference export GIT PS1 SHOWDIRTYSTATE true export GIT PS1 SHOWSTASHSTATE true export GIT PS1 SHOWUNTRACKEDFILES true export GIT PS1 SHOWUPSTREAM auto export GIT PS1 SHOWCOLORHINTS true code prepIf you want to find out more you can get all the dotfiles here href https github com jamming dotfiles rel noreferrer https github com jamming dotfiles You can change the PROMPT BEFORE environment variable and remove the txtwht don know it by heart but guess it does the trick pHere is how configured the prompt to display Git status ppGet git prompt script ppre codecurl git prompt sh https raw githubusercontent com git git master contrib completion git prompt sh code prepAnd customize your prompt adding the following code in your bashrc file ppre code Load Git functionssource git prompt sh Syntactic sugar for ANSI escape sequencestxtblk 30m Black Regulartxtred 31m Redtxtgrn 32m Greentxtylw 33m Yellowtxtblu 34m Bluetxtpur 35m Purpletxtcyn 36m Cyantxtwht 37m Whitebldblk 30m Black Boldbldred 31m Redbldgrn 32m Greenbldylw 33m Yellowbldblu 34m Bluebldpur 35m Purplebldcyn 36m Cyanbldwht 37m Whiteunkblk 30m Black Underlineundred 31m Redundgrn 32m Greenundylw 33m Yellowundblu 34m Blueundpur 35m Purpleundcyn 36m Cyanundwht 37m Whitebakblk 40m Black Backgroundbakred 41m Redbadgrn 42m Greenbakylw 43m Yellowbakblu 44m Bluebakpur 45m Purplebakcyn 46m Cyanbakwht 47m Whitetxtrst 0m Text Reset Prompt variablesPROMPT BEFORE txtcyn txtwht txtrst PROMPT AFTER Prompt commandPROMPT COMMAND git ps1 PROMPT BEFORE PROMPT AFTER Git prompt features read git prompt sh for reference export GIT PS1 SHOWDIRTYSTATE true export GIT PS1 SHOWSTASHSTATE true export GIT PS1 SHOWUNTRACKEDFILES true export GIT PS1 SHOWUPSTREAM auto export GIT PS1 SHOWCOLORHINTS true code prepIf you want to find out more you can get all the dotfiles here href https github com jamming dotfiles rel noreferrer https github com jamming dotfiles Those symbols resemble the state of the branch ie means that there are stashed changes and means that the latest commit was pushed to the remote tracked branch,0,NULL,NULL 40710,684734,1171640,Popular Question Supporter Editor,NULL,NULL,0,NULL,NULL 40711,440683,1012432,NULL,NULL,NULL,0,NULL,NULL 40712,289806,1471312,NULL,NULL,NULL,0,NULL,NULL 40713,83714,554319,Nice Question Altruist Popular Question Nice Question Yearling Notable Question Good Question Promoter Benefactor Revival Popular Question Announcer Announcer Announcer Popular Question Nice Answer Yearling Nice Question Announcer Announcer Popular Question Announcer Announcer Notable Question Popular Question Tumbleweed Announcer Yearling Announcer Caucus Announcer Popular Question Popular Question Notable Question Announcer Announcer Nice Question Famous Question Revival Good Question,NULL,NULL,0,NULL,NULL 40714,7285,1402740,NULL,NULL,NULL,0,NULL,NULL 40715,134954,506615,Popular Question Necromancer Caucus Constituent Critic Commentator Caucus Documentation User Yearling Excavator Popular Question,NULL,NULL,0,NULL,NULL 40716,133815,388011,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40717,227663,523507,Notable Question Popular Question Nice Question Good Question Popular Question Nice Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Good Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Organizer Famous Question Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question Notable Question Popular Question Nice Answer Custodian Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Promoter Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Good Answer Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 40718,195614,800271,NULL,NULL,NULL,0,NULL,NULL 40719,270294,216876,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40720,35435,1050405,NULL,NULL,NULL,0,NULL,NULL 40721,41865,322418,Nice Answer Enlightened Yearling Popular Question Great Answer Nice Answer node.js Yearling Good Answer Great Answer Good Answer Civic Duty Yearling,NULL,NULL,0,NULL,NULL 40722,184767,1024793,Yearling Good Answer,NULL,NULL,0,NULL,NULL 40723,591550,434681,NULL,NULL,NULL,0,NULL,NULL 40724,70183,403297,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 40725,612,560659,Nice Question Tumbleweed Caucus Good Question Investor Informed Famous Question Famous Question,NULL,NULL,0,NULL,NULL 40726,126470,1121486,Nice Answer Popular Question Yearling Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 40727,274327,850827,Tumbleweed,NULL,NULL,0,NULL,NULL 40728,29029,400610,Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40729,30606,1161858,NULL,NULL,NULL,0,NULL,NULL 40730,805257,229688,Nice Question Good Answer Necromancer Necromancer Necromancer Nice Answer Necromancer Excavator Nice Answer Necromancer ios Nice Answer Enlightened Nice Answer Necromancer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Autobiographer Necromancer Popular Question Good Answer Nice Answer Good Question Famous Question Nice Answer ruby-on-rails Nice Answer Suffrage Vox Populi Popular Question Yearling Nice Answer Electorate Famous Question Good Answer Popular Question Notable Question Custodian Necromancer Notable Question Necromancer Great Answer Popular Question Nice Answer Good Question Good Answer Nice Answer Necromancer Necromancer Good Answer Great Answer Good Answer Nice Answer Popular Question Yearling Nice Answer Popular Question Good Answer Famous Question Nice Question Necromancer Nice Answer Good Answer,NULL,NSPersistentContainer UnitTests with iOS10 ios swift core data ios10 pI have an issue with my Core Data setup for Unit Tests ppI use the default new Core Data stack setup in my AppDelegate ppre codeclass AppDelegate UIResponder UIApplicationDelegate lazy var persistentContainer NSPersistentContainer let container NSPersistentContainer name GenericFirstFinder container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container code prepAnd for testing have custom function to create managed context ppre codefunc setupInMemoryManagedObjectContext gt NSManagedObjectContext let container NSPersistentContainer name GenericFirstFinder let description NSPersistentStoreDescription description type NSInMemoryStoreType container persistentStoreDescriptions description container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container viewContext code prepI have an extension to find the first item given predicate ppre codeextension NSManagedObject class func first with predicate NSPredicate in context NSManagedObjectContext throws gt Self return try first with predicate in context fileprivate class func first lt gt with predicate NSPredicate in context NSManagedObjectContext throws gt where NSFetchRequestResult NSManagedObject let fetchRequest self fetchRequest fetchRequest fetchLimit fetchRequest predicate predicate let results try context fetch fetchRequest return results first as code prepHere the issue ppThis test passes ppre codefunc testExample let context setupInMemoryManagedObjectContext let entity try Entity first with nil in context XCTAssertEqual entity nil code prepbut if the persistentContainer loading is triggered in didFinishLaunchingWithOptions ppre codefunc application application UIApplication didFinishLaunchingWithOptions launchOptions UIApplicationLaunchOptionsKey Any gt Bool Override point for customization after application launch let context persistentContainer viewContext end of laziness return true code prepthen get the following error pblockquote pfailed caught NSInvalidArgumentException executeFetchRequest error is not valid NSFetchRequest blockquotepThe error comes specifically from this line in first ppre codelet fetchRequest self fetchRequest fetchRequest is lt uninitialized gt in that case code prepBut if modify the test to create an entity first the test runs fine again the XCTAssertEqual is different of course… ppre codefunc testExample let context setupInMemoryManagedObjectContext let firstEntity Entity context context let entity try Entity first with nil in context XCTAssertEqual entity firstEntity code prepSo for some reason creating new entity without saving the context seems to put things back in order ppI guess my stack setup for testing is screwed up but haven figured out why Do you understand what happening and what is the proper way to set things up ppI using Xcode Swift and the deployment target is iOS 10 some parts have to be tested with the storage Some could should even be tested with SQL storage and not in memory storage subqueries can work with in memory storage while failing with file storage NSPersistentContainer UnitTests with iOS10 ios swift core data ios10 pI have an issue with my Core Data setup for Unit Tests ppI use the default new Core Data stack setup in my AppDelegate ppre codeclass AppDelegate UIResponder UIApplicationDelegate lazy var persistentContainer NSPersistentContainer let container NSPersistentContainer name GenericFirstFinder container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container code prepAnd for testing have custom function to create managed context ppre codefunc setupInMemoryManagedObjectContext gt NSManagedObjectContext let container NSPersistentContainer name GenericFirstFinder let description NSPersistentStoreDescription description type NSInMemoryStoreType container persistentStoreDescriptions description container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container viewContext code prepI have an extension to find the first item given predicate ppre codeextension NSManagedObject class func first with predicate NSPredicate in context NSManagedObjectContext throws gt Self return try first with predicate in context fileprivate class func first lt gt with predicate NSPredicate in context NSManagedObjectContext throws gt where NSFetchRequestResult NSManagedObject let fetchRequest self fetchRequest fetchRequest fetchLimit fetchRequest predicate predicate let results try context fetch fetchRequest return results first as code prepHere the issue ppThis test passes ppre codefunc testExample let context setupInMemoryManagedObjectContext let entity try Entity first with nil in context XCTAssertEqual entity nil code prepbut if the persistentContainer loading is triggered in didFinishLaunchingWithOptions ppre codefunc application application UIApplication didFinishLaunchingWithOptions launchOptions UIApplicationLaunchOptionsKey Any gt Bool Override point for customization after application launch let context persistentContainer viewContext end of laziness return true code prepthen get the following error pblockquote pfailed caught NSInvalidArgumentException executeFetchRequest error is not valid NSFetchRequest blockquotepThe error comes specifically from this line in first ppre codelet fetchRequest self fetchRequest fetchRequest is lt uninitialized gt in that case code prepBut if modify the test to create an entity first the test runs fine again the XCTAssertEqual is different of course… ppre codefunc testExample let context setupInMemoryManagedObjectContext let firstEntity Entity context context let entity try Entity first with nil in context XCTAssertEqual entity firstEntity code prepSo for some reason creating new entity without saving the context seems to put things back in order ppI guess my stack setup for testing is screwed up but haven figured out why Do you understand what happening and what is the proper way to set things up ppI using Xcode Swift and the deployment target is iOS 10 By using InMemory storage already mocking storage separating further would be stubbing NSPersistentContainer UnitTests with iOS10 ios swift core data ios10 pI have an issue with my Core Data setup for Unit Tests ppI use the default new Core Data stack setup in my AppDelegate ppre codeclass AppDelegate UIResponder UIApplicationDelegate lazy var persistentContainer NSPersistentContainer let container NSPersistentContainer name GenericFirstFinder container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container code prepAnd for testing have custom function to create managed context ppre codefunc setupInMemoryManagedObjectContext gt NSManagedObjectContext let container NSPersistentContainer name GenericFirstFinder let description NSPersistentStoreDescription description type NSInMemoryStoreType container persistentStoreDescriptions description container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container viewContext code prepI have an extension to find the first item given predicate ppre codeextension NSManagedObject class func first with predicate NSPredicate in context NSManagedObjectContext throws gt Self return try first with predicate in context fileprivate class func first lt gt with predicate NSPredicate in context NSManagedObjectContext throws gt where NSFetchRequestResult NSManagedObject let fetchRequest self fetchRequest fetchRequest fetchLimit fetchRequest predicate predicate let results try context fetch fetchRequest return results first as code prepHere the issue ppThis test passes ppre codefunc testExample let context setupInMemoryManagedObjectContext let entity try Entity first with nil in context XCTAssertEqual entity nil code prepbut if the persistentContainer loading is triggered in didFinishLaunchingWithOptions ppre codefunc application application UIApplication didFinishLaunchingWithOptions launchOptions UIApplicationLaunchOptionsKey Any gt Bool Override point for customization after application launch let context persistentContainer viewContext end of laziness return true code prepthen get the following error pblockquote pfailed caught NSInvalidArgumentException executeFetchRequest error is not valid NSFetchRequest blockquotepThe error comes specifically from this line in first ppre codelet fetchRequest self fetchRequest fetchRequest is lt uninitialized gt in that case code prepBut if modify the test to create an entity first the test runs fine again the XCTAssertEqual is different of course… ppre codefunc testExample let context setupInMemoryManagedObjectContext let firstEntity Entity context context let entity try Entity first with nil in context XCTAssertEqual entity firstEntity code prepSo for some reason creating new entity without saving the context seems to put things back in order ppI guess my stack setup for testing is screwed up but haven figured out why Do you understand what happening and what is the proper way to set things up ppI using Xcode Swift and the deployment target is iOS 10 trying to tell you that my unit tests already separate things by using mocking and stubbing You can make bug disappear by separating you just limit its impact and already do that,1,NSPersistentContainer UnitTests with iOS10 ios swift core data ios10 pI have an issue with my Core Data setup for Unit Tests ppI use the default new Core Data stack setup in my AppDelegate ppre codeclass AppDelegate UIResponder UIApplicationDelegate lazy var persistentContainer NSPersistentContainer let container NSPersistentContainer name GenericFirstFinder container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container code prepAnd for testing have custom function to create managed context ppre codefunc setupInMemoryManagedObjectContext gt NSManagedObjectContext let container NSPersistentContainer name GenericFirstFinder let description NSPersistentStoreDescription description type NSInMemoryStoreType container persistentStoreDescriptions description container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container viewContext code prepI have an extension to find the first item given predicate ppre codeextension NSManagedObject class func first with predicate NSPredicate in context NSManagedObjectContext throws gt Self return try first with predicate in context fileprivate class func first lt gt with predicate NSPredicate in context NSManagedObjectContext throws gt where NSFetchRequestResult NSManagedObject let fetchRequest self fetchRequest fetchRequest fetchLimit fetchRequest predicate predicate let results try context fetch fetchRequest return results first as code prepHere the issue ppThis test passes ppre codefunc testExample let context setupInMemoryManagedObjectContext let entity try Entity first with nil in context XCTAssertEqual entity nil code prepbut if the persistentContainer loading is triggered in didFinishLaunchingWithOptions ppre codefunc application application UIApplication didFinishLaunchingWithOptions launchOptions UIApplicationLaunchOptionsKey Any gt Bool Override point for customization after application launch let context persistentContainer viewContext end of laziness return true code prepthen get the following error pblockquote pfailed caught NSInvalidArgumentException executeFetchRequest error is not valid NSFetchRequest blockquotepThe error comes specifically from this line in first ppre codelet fetchRequest self fetchRequest fetchRequest is lt uninitialized gt in that case code prepBut if modify the test to create an entity first the test runs fine again the XCTAssertEqual is different of course… ppre codefunc testExample let context setupInMemoryManagedObjectContext let firstEntity Entity context context let entity try Entity first with nil in context XCTAssertEqual entity firstEntity code prepSo for some reason creating new entity without saving the context seems to put things back in order ppI guess my stack setup for testing is screwed up but haven figured out why Do you understand what happening and what is the proper way to set things up ppI using Xcode Swift and the deployment target is iOS 10,NULL 40731,418238,1117748,NULL,NULL,NULL,0,NULL,NULL 40732,186587,1072776,Yearling,NULL,NULL,0,NULL,NULL 40733,134085,725823,NULL,NULL,NULL,0,NULL,NULL 40734,816217,95157,Nice Answer Yearling Nice Answer Popular Question Caucus Nice Answer Yearling Guru Nice Answer Census Great Answer Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 40735,249864,613033,NULL,NULL,NULL,0,NULL,NULL 40736,298046,1163931,Autobiographer,NULL,NULL,0,NULL,NULL 40737,278626,434259,NULL,NULL,NULL,0,NULL,NULL 40738,500302,645229,NULL,NULL,NULL,0,NULL,NULL 40739,76036,608567,Commentator Informed Autobiographer,NULL,NULL,0,NULL,NULL 40740,760942,1330135,NULL,NULL,NULL,0,NULL,NULL 40741,85579,1556020,Supporter,NULL,NULL,0,NULL,NULL 40742,164037,837815,Popular Question Yearling Revival Enlightened Notable Question Necromancer Good Answer Yearling Good Question Popular Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 40743,216740,441681,Notable Question,NULL,NULL,0,NULL,NULL 40744,387068,1375865,NULL,NULL,NULL,0,NULL,NULL 40745,1081569,1211729,NULL,NULL,NULL,0,NULL,NULL 40746,364682,426285,NULL,NULL,NULL,0,NULL,NULL 40747,50653,8791,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 40748,151570,250979,Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40749,60086,979373,NULL,NULL,NULL,0,NULL,NULL 40750,2459046,711128,NULL,NULL,NULL,0,NULL,NULL 40751,317365,1328415,NULL,NULL,NULL,0,NULL,NULL 40752,308419,1226747,Revival,NULL,NULL,0,NULL,NULL 40753,422046,1456628,Student,NULL,NULL,0,NULL,NULL 40754,2746,308679,Nice Answer Yearling Great Answer shell Nice Answer Enlightened Nice Answer Cleanup Populist Caucus Guru Nice Answer Good Answer Enlightened Good Answer Nice Answer Yearling Good Answer Guru Caucus Organizer Nice Answer Custodian Caucus Constituent Yearling Good Answer Revival Nice Answer,NULL,NULL,0,NULL,NULL 40755,746263,304646,NULL,NULL,NULL,0,NULL,NULL 40756,71686,1211607,Teacher Census Yearling Caucus Announcer Documentation User,NULL,NULL,1,Python pip install exact version if two versions one generic and one local exist python pip pWe have set up local python package server for your internal python packages and serve also some packages which are hard to compile on windows As numpy is one of these packages there exist now two versions of numpy on our server pullinumpy 13 cp35 none win32 whl lilinumpy 13 mkl cp35 cp35m win32 whl li ulpHow can instruct pip to install specific version of these two Running codepip install numpy code will pick the package with mkl but for some projects want numpy without mkl ppEdit ppThe only way which works is the full URL to the package which seems little bit verbose,NULL 40757,1505432,1520203,Popular Question Student Supporter Editor Curious,NULL,NULL,0,NULL,NULL 40758,14430,81411,Announcer Notable Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 40759,264674,230919,Popular Question Self-Learner Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 40760,204997,335368,NULL,NULL,NULL,0,NULL,NULL 40761,84194,5240,Good Answer,NULL,NULL,0,NULL,NULL 40762,4028492,483016,NULL,NULL,NULL,0,NULL,NULL 40763,329148,1255359,NULL,NULL,NULL,0,NULL,NULL 40764,17282,709471,Citizen Patrol Nice Answer Enlightened Informed Autobiographer Critic Yearling Good Answer Organizer Commentator Yearling Caucus Constituent Guru Yearling Caucus Custodian Yearling Documentation User Yearling Great Answer,NULL,NULL,0,NULL,NULL 40765,127047,346956,Teacher Supporter,NULL,NULL,0,NULL,NULL 40766,314348,1003471,NULL,NULL,NULL,0,NULL,NULL 40767,319693,442523,NULL,NULL,NULL,0,NULL,NULL 40768,331928,1308765,Critic Caucus Documentation User Caucus Constituent Informed Yearling Autobiographer,NULL,NULL,0,NULL,NULL 40769,53946,113093,Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 40770,558011,1380007,NULL,NULL,NULL,0,NULL,NULL 40771,558014,216846,Yearling Excavator Custodian Nice Answer Notable Question Necromancer Yearling Popular Question Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 40772,3406185,797371,Nice Answer Enlightened Yearling Caucus Peer Pressure,NULL,NULL,0,NULL,NULL 40773,80112,155007,NULL,NULL,NULL,0,NULL,NULL 40774,257985,526804,NULL,NULL,NULL,0,NULL,NULL 40775,411101,735130,NULL,NULL,NULL,0,NULL,NULL 40776,77316,627333,NULL,NULL,NULL,0,NULL,NULL 40777,454760,167749,Good Answer Fanatic Guru Yearling Notable Question Popular Question Citizen Patrol Yearling Notable Question Documentation User Custodian Nice Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 40778,27065,174982,Yearling,NULL,NULL,0,NULL,NULL 40779,1358400,1204915,NULL,NULL,NULL,0,NULL,NULL 40780,34130,533308,NULL,NULL,NULL,0,NULL,NULL 40781,1713673,1428514,Teacher Announcer Supporter Nice Answer Popular Question Yearling Good Answer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 40782,227128,1492954,Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 40783,75456,783019,Announcer Custodian Guru Good Answer Yearling Good Answer Caucus Great Answer Yearling Guru Yearling,NULL,h1Uncontrolled Components h1pYou can use the href https facebook github io react docs events html event pooling rel noreferrer codeevent persist code method ppAn example follows using underscore code debounce code ppre class lang js prettyprint override codevar SearchBox React createClass componentWillMount function this delayedCallback debounce function event event target is accessible now 1000 onChange function event event persist this delayedCallback event render function return lt input type search onChange this onChange gt code prepEdit See href http jsfiddle net TzLZq rel noreferrer this JSFiddle phrh1Controlled Components h1pUpdate the example above shows an href http facebook github io react docs forms html uncontrolled components rel noreferrer uncontrolled component use controlled elements all the time so here another example of the above but without using the codeevent persist code trickery ppA href http jsfiddle net 87epx3yt rel noreferrer JSFiddle is available as well href http jsfiddle net c7a0joha rel noreferrer Example without underscore ppre class lang js prettyprint override codevar SearchBox React createClass getInitialState function return query this props query componentWillMount function this handleSearchDebounced debounce function this props handleSearch apply this this state query 500 onChange function event this setState query event target value this handleSearchDebounced render function return lt input type search value this state query onChange this onChange gt var Search React createClass getInitialState function return result this props query handleSearch function query this setState result query render function return lt div id search gt lt SearchBox query this state result handleSearch this handleSearch gt lt gt You searched for lt strong gt this state result lt strong gt lt gt lt div gt React render lt Search query Initial query gt document body code prehrpEdit updated examples and JSFiddles to React 12 ppEdit updated examples to address the issue raised by Sebastien Lorber ppEdit updated with jsfiddle that does not use underscore and uses plain javascript debounce hi because the debounced function is asynchronous and the synthetic events will be nullified by the time it executed That why persist needs to go in non debounced event handler Your example should look like http jsfiddle net oza88dye To learn more you can check the docs on React event pooling https facebook github io react docs events html event pooling emSince you want to use React along with Django templates assume the React code will only affect specific parts of your page The following explanations are written based on that assumption em ppFirst of all you don have to put all the JS code in the template in fact that would be mess ppYou can create separate JS based build process href http webpack github io using Webpack href https github com petehunt webpack howto check out this howto That enhances your client side code capabilities allowing you to use CommonJS modules in the browser which you can directly pull from npm including href https www npmjs com package react React ppWebpack in turn will generate bundle or multiple bundles depending on the nature of your application and the Webpack configuration which you ll need to include in your Django templates via code lt script gt code tags as usual ppNow you need to make the codeReact render code call to render your React application somewhere in the existing page layout You ll need to use an empty HTML element with specific id class name as mount point for the application ppBut here comes the caveat you cannot access CommonJS modules directly from the browser or Django templates So either you pulliexpose codeReact code and your app to the codewindow code object or lilicreate module with glue code to handle app initialization and expose that method to the codewindow code object li ulpIn any of the cases you will need to call the initialization code directly from the templates check out href https github com translate pootle blob 1700d26ce2977da58a48a0a79454343b6829563c pootle static js admin app js L27 L46 an example of glue code and the href https github com translate pootle blob 1700d26ce2977da58a48a0a79454343b6829563c pootle templates admin projects html L12 L20 call to app initialization ppThis initialization step also allows you to pass variables available in Django templates to the JS code ppThe final Django template will look something like this ppre code load staticfiles extends base html block scripts lt script type text javascript src static path to app bundle js gt lt script gt lt script type text javascript gt Initialization glue code window MyApp init el app mountpoint lt script gt endblock block content lt Your template contents gt lt The mount point of your app gt lt div class app mountpoint gt endblock code prepAnd the glue code ppre codevar React require react var MyAppComponent require MyAppComponent window MyApp init function opts var mountPoint document querySelector opts el React render lt MyAppComponent gt mountPoint code prepI know all of this might sound overwhelming at the beginning even more compared to the few steps you had with Angular but believe me it pays off in the long run ppSo summarizing polliWrite React code in separate JS files liliUse Webpack leveraging CommonJS modules to bundle your React code liliInclude the bundle in your Django templates liliRender the React code using glue code in Django templates li ol because ReactDOM is not available in the JS context where the Django generated HTML page is rendered You could alternatively add ReactDOM to window or add ReactDOM via script tag and avoid any glue code which would then allow you to use ReactDOM render right away Note however the answer is just one way to achieve goal and there is no one and only way to get there,0,NULL,NULL 40784,189030,505836,Excavator Peer Pressure Informed Good Answer Yearling Necromancer Popular Question symfony Popular Question Popular Question Popular Question Nice Answer Enlightened Good Answer Famous Question Notable Question Yearling Nice Question Great Question Yearling,NULL,NULL,0,NULL,NULL 40785,1296825,505836,Excavator Peer Pressure Informed Good Answer Yearling Necromancer Popular Question symfony Popular Question Popular Question Popular Question Nice Answer Enlightened Good Answer Famous Question Notable Question Yearling Nice Question Great Question Yearling,NULL,NULL,0,NULL,NULL 40786,2800227,505836,Excavator Peer Pressure Informed Good Answer Yearling Necromancer Popular Question symfony Popular Question Popular Question Popular Question Nice Answer Enlightened Good Answer Famous Question Notable Question Yearling Nice Question Great Question Yearling,NULL,NULL,0,NULL,NULL 40787,396464,783996,NULL,NULL,NULL,0,NULL,NULL 40788,1899280,783996,NULL,NULL,NULL,0,NULL,NULL 40789,50733,538389,Notable Question Nice Answer Yearling Necromancer Informed Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 40790,348308,1055877,Student Commentator Critic Yearling Editor Scholar Yearling Custodian Custodian Yearling Caucus Necromancer Yearling Citizen Patrol Yearling Tenacious Caucus Excavator Necromancer Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 40791,1987314,1028952,NULL,NULL,NULL,0,NULL,NULL 40792,812840,640850,Revival,NULL,NULL,0,NULL,NULL 40793,306772,1269927,NULL,NULL,NULL,0,NULL,NULL 40794,537429,755607,NULL,NULL,NULL,0,NULL,NULL 40795,107505,1465999,Critic,NULL,NULL,0,NULL,NULL 40796,138,1033474,NULL,NULL,NULL,0,NULL,NULL 40797,331855,1236353,NULL,NULL,NULL,0,NULL,NULL 40798,519185,904962,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 40799,7230487,1400599,NULL,NULL,NULL,0,NULL,NULL 40800,573824,982268,NULL,NULL,NULL,0,NULL,NULL 40801,204239,1042172,NULL,NULL,NULL,0,NULL,NULL 40802,849095,551895,NULL,NULL,NULL,0,NULL,NULL 40803,29844,974563,Nice Answer Commentator Caucus,NULL,NULL,0,NULL,NULL 40804,104589,798235,NULL,NULL,NULL,0,NULL,NULL 40805,261771,217420,Critic Caucus Notable Question Student Yearling,NULL,NULL,0,NULL,NULL 40806,258785,55539,NULL,NULL,NULL,0,NULL,NULL 40807,2837,471478,Famous Question Nice Question Notable Question Good Question Popular Question Revival Good Question Nice Question Notable Question Nice Question Yearling Notable Question Nice Question Caucus Constituent Nice Question Nice Answer Nice Question Famous Question Popular Question Necromancer Famous Question Nice Question Famous Question Popular Question Nice Answer Good Question Favorite Question Nice Question Popular Question Popular Question Good Question Nice Question Caucus Notable Question Yearling Necromancer Nice Question Popular Question Caucus Constituent Nice Answer Nice Question Good Question Nice Question Notable Question java Popular Question Popular Question Good Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 40808,10069,1116234,Famous Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40809,1226055,1256470,NULL,NULL,NULL,0,NULL,NULL 40810,371899,934502,Good Question Self-Learner Necromancer Custodian Popular Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 40811,125724,148597,Yearling Notable Question Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 40812,888724,448722,Census,NULL,NULL,0,NULL,NULL 40813,154535,271968,Popular Question Yearling Popular Question Popular Question Popular Question Caucus Necromancer Famous Question Yearling Notable Question Notable Question Revival Nice Question Nice Question,NULL,NULL,0,NULL,NULL 40814,134432,179412,Civic Duty Nice Answer Popular Question Yearling Custodian Necromancer Necromancer Nice Answer Enlightened Nice Answer Popular Question Great Question Yearling Good Answer Famous Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 40815,82813,20262,Popular Question Notable Question Yearling Nice Question Nice Question,NULL,NULL,0,NULL,NULL 40816,201358,155120,NULL,NULL,NULL,0,NULL,NULL 40817,597021,61632,Good Question Yearling Popular Question Guru Popular Question Good Answer Notable Question Inquisitive Good Question Notable Question Nice Answer Nice Question Yearling Popular Question Nice Answer Nice Answer Famous Question Documentation User Nice Question Yearling Nice Answer Popular Question Nice Answer Enlightened Notable Question Nice Question,NULL,NULL,0,NULL,NULL 40818,219345,109094,Caucus Commentator Excavator Notable Question Citizen Patrol Custodian Custodian,NULL,NULL,0,NULL,NULL 40819,1072669,859457,NULL,NULL,NULL,0,NULL,NULL 40820,42109,433483,Curious Nice Question Yearling,NULL,NULL,0,NULL,NULL 40821,31255,796042,NULL,NULL,NULL,0,NULL,NULL 40822,23827,718556,NULL,NULL,NULL,0,NULL,NULL 40823,631067,1045309,Nice Answer,NULL,NULL,0,NULL,NULL 40824,169369,1287034,Yearling Notable Question Notable Question Yearling Nice Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 40825,1189564,908753,NULL,NULL,NULL,0,NULL,NULL 40826,367746,908753,NULL,NULL,NULL,0,NULL,NULL 40827,9326,1210135,NULL,NULL,NULL,0,NULL,NULL 40828,365665,1013160,NULL,NULL,NULL,0,NULL,NULL 40829,223337,181123,NULL,NULL,NULL,0,NULL,NULL 40830,1318489,230663,NULL,NULL,NULL,0,NULL,NULL 40831,2905504,230663,NULL,NULL,NULL,0,NULL,NULL 40832,2313,143097,Necromancer Nice Answer Guru Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Caucus Constituent Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Guru Yearling Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 40833,1237672,143097,Necromancer Nice Answer Guru Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Caucus Constituent Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Guru Yearling Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 40834,199511,369739,NULL,NULL,NULL,0,NULL,NULL 40835,630316,111011,NULL,NULL,NULL,0,NULL,NULL 40836,2198,632907,node.js Yearling Great Answer Good Answer Custodian Yearling Caucus Documentation User Yearling Guru Caucus Guru Enlightened,NULL,NULL,0,NULL,NULL 40837,59954,986241,Notable Question Critic Nice Question Yearling Curious Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 40838,29874,1091724,Student Notable Question Announcer,NULL,NULL,0,NULL,NULL 40839,110571,172836,Editor Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 40840,678694,478527,NULL,NULL,NULL,0,NULL,NULL 40841,492443,1421926,NULL,NULL,NULL,0,NULL,NULL 40842,1232297,1421926,NULL,NULL,NULL,0,NULL,NULL 40843,209155,457441,NULL,NULL,NULL,0,NULL,NULL 40844,920766,502039,NULL,NULL,NULL,0,NULL,NULL 40845,758550,766772,Informed Student Supporter,NULL,NULL,0,NULL,NULL 40846,281135,1094323,Citizen Patrol Critic Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 40847,675614,913471,Notable Question,NULL,NULL,0,NULL,NULL 40848,134332,603745,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40849,758641,1364567,Nice Question,NULL,NULL,0,NULL,NULL 40850,244936,473416,NULL,NULL,NULL,0,NULL,NULL 40851,90468,1032619,NULL,NULL,NULL,0,NULL,NULL 40852,1220979,963034,NULL,NULL,NULL,0,NULL,NULL 40853,23432,225529,NULL,NULL,NULL,0,NULL,NULL 40854,469603,1087508,NULL,NULL,NULL,0,NULL,NULL 40855,283841,181304,NULL,NULL,NULL,0,NULL,NULL 40856,271621,676821,NULL,NULL,NULL,0,NULL,NULL 40857,232206,631987,NULL,NULL,NULL,0,NULL,NULL 40858,74295,32174,Nice Answer Nice Question Guru Guru Yearling Nice Question Good Answer Notable Question Popular Question Nice Answer Favorite Question Popular Question Nice Question Great Answer Yearling Notable Question Good Answer Famous Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 40859,96165,148374,Custodian Informed Popular Question Good Question Enthusiast,NULL,NULL,0,NULL,NULL 40860,281607,1051840,NULL,NULL,NULL,0,NULL,NULL 40861,40831,1335917,NULL,NULL,NULL,0,NULL,NULL 40862,29157,1352622,NULL,NULL,NULL,0,NULL,NULL 40863,135769,1065937,NULL,NULL,NULL,0,NULL,NULL 40864,301983,1245317,NULL,NULL,NULL,0,NULL,NULL 40865,31495,994774,NULL,NULL,NULL,0,NULL,NULL 40866,70891,1182716,NULL,NULL,NULL,0,NULL,NULL 40867,36005,73987,Yearling Good Question Famous Question Notable Question Nice Question Famous Question Famous Question Good Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question Revival Great Question Yearling Notable Question Favorite Question Guru Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 40868,4248989,73987,Yearling Good Question Famous Question Notable Question Nice Question Famous Question Famous Question Good Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question Revival Great Question Yearling Notable Question Favorite Question Guru Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 40869,230112,1466822,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40870,11854,23051,Necromancer Yearling Nice Answer Notable Question Good Answer Popular Question Famous Question Yearling Census Yearling,NULL,NULL,0,NULL,NULL 40871,215681,1326029,NULL,NULL,NULL,0,NULL,NULL 40872,12420,477245,Good Question Nice Answer Enlightened Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 40873,61775,279259,Notable Question Famous Question Yearling Nice Answer Good Answer c++ Notable Question Good Question Notable Question Notable Question Great Question Popular Question Nice Answer Popular Question Good Question Notable Question Famous Question Famous Question Notable Question Notable Question Great Question Guru Famous Question Nice Answer Good Question Famous Question Notable Question Notable Question Favorite Question Good Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Good Answer Notable Question Popular Question Nice Question Necromancer Nice Answer Popular Question Famous Question Notable Question Popular Question Nice Answer Enlightened Popular Question Nice Question Guru Guru Popular Question Guru Yearling Famous Question Popular Question Announcer Good Answer Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Answer Notable Question Nice Question Notable Question Famous Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 40874,626935,192552,Student,NULL,NULL,0,NULL,NULL 40875,45097,973011,NULL,NULL,NULL,0,NULL,NULL 40876,299390,724570,NULL,NULL,NULL,0,NULL,NULL 40877,61625,202191,Popular Question Yearling Popular Question Nice Question Custodian Good Question Yearling Famous Question Informed Revival Yearling,NULL,NULL,0,NULL,NULL 40878,140788,653665,NULL,NULL,NULL,0,NULL,NULL 40879,432822,924906,Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 40880,79519,809984,NULL,NULL,NULL,0,NULL,NULL 40881,104531,645092,Popular Question Curious Yearling Caucus Custodian Custodian Caucus Constituent Famous Question,NULL,NULL,0,NULL,NULL 40882,125032,783475,NULL,NULL,NULL,0,NULL,NULL 40883,28137,611407,Yearling Yearling Popular Question Favorite Question Nice Answer Great Question Yearling Critic Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 40884,751425,959929,Critic Commentator Yearling Civic Duty Organizer Suffrage Vox Populi Explainer Caucus Constituent Caucus Constituent Census Caucus Constituent Yearling Custodian Custodian Citizen Patrol Custodian Excavator Popular Question Yearling Reviewer Deputy Reviewer,NULL,NULL,0,NULL,NULL 40885,153270,1438442,NULL,NULL,NULL,0,NULL,NULL 40886,3417716,230710,Yearling Critic Favorite Question Caucus,NULL,NULL,0,NULL,NULL 40887,654687,230710,Yearling Critic Favorite Question Caucus,NULL,NULL,0,NULL,NULL 40888,289552,460284,NULL,NULL,NULL,0,NULL,NULL 40889,30253,289843,Custodian Custodian,NULL,NULL,0,NULL,NULL 40890,64550,771610,Yearling Popular Question,NULL,NULL,0,NULL,NULL 40891,463108,822459,Informed Nice Answer Notable Question Caucus Constituent Caucus Census,NULL,NULL,0,NULL,NULL 40892,158153,80487,NULL,NULL,NULL,0,NULL,NULL 40893,9137914,1518208,NULL,NULL,NULL,0,NULL,NULL 40894,128206,1406796,Informed Enthusiast Fanatic Autobiographer,NULL,NULL,0,NULL,NULL 40895,31089,554308,NULL,NULL,NULL,0,NULL,NULL 40896,39343,231965,NULL,NULL,NULL,0,NULL,NULL 40897,361272,1291241,NULL,NULL,NULL,0,NULL,NULL 40898,413033,249691,Yearling Good Answer Nice Answer Notable Question Popular Question dataframe Guru Good Answer Guru Good Answer Nice Answer Good Question Notable Question Nice Answer Guru Nice Answer Enlightened Popular Question Nice Answer Yearling Nice Answer Good Answer Good Answer Good Answer Guru Good Question Good Answer Enlightened Nice Answer Enlightened Great Answer Guru Good Answer Nice Question Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Notable Question Popular Question Good Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Enlightened Notable Question Good Answer Nice Answer Good Answer Nice Answer Revival Announcer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40899,49813,561721,Yearling Famous Question Guru Guru Good Question Yearling Organizer Announcer Yearling,NULL,NULL,0,NULL,NULL 40900,130156,726716,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 40901,26105,55111,Yearling Famous Question Popular Question Popular Question Popular Question Nice Question Popular Question Good Question Yearling Popular Question Revival Revival Necromancer Yearling Favorite Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 40902,19785,1360753,NULL,NULL,NULL,0,NULL,NULL 40903,693633,669613,NULL,NULL,NULL,0,NULL,NULL 40904,91766,1073736,Student Editor Supporter Nice Question Popular Question,NULL,NULL,0,NULL,NULL 40905,360259,876822,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 40906,408736,1116941,NULL,NULL,NULL,0,NULL,NULL 40907,3494251,214773,Popular Question Nice Answer Yearling Nice Answer Enlightened Nice Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 40908,581104,972208,Popular Question Popular Question Enlightened Nice Question Popular Question Nice Question Notable Question Notable Question Notable Question Good Answer Nice Answer Notable Question Popular Question Nice Question Nice Answer Enlightened Yearling Nice Answer Good Question Good Answer Notable Question Nice Answer Famous Question Nice Answer Famous Question Nice Question Good Answer Notable Question Caucus Notable Question Yearling Guru Good Question Popular Question Nice Answer Nice Answer Popular Question Nice Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 40909,675080,1368599,Good Question Yearling Famous Question Curious Yearling Famous Question Notable Question Yearling Nice Question Great Question,NULL,NULL,0,NULL,NULL 40910,12580,430969,Critic,NULL,NULL,0,NULL,NULL 40911,3614016,303726,Popular Question Inquisitive Yearling Popular Question Notable Question Notable Question Popular Question Self-Learner Famous Question Nice Question Yearling Popular Question Good Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Good Question Notable Question Popular Question Popular Question Notable Question Benefactor Popular Question Nice Answer Nice Question Yearling Famous Question Nice Question Popular Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 40912,341022,275442,Informed Yearling Necromancer Census Yearling,NULL,NULL,0,NULL,NULL 40913,41370,661384,NULL,NULL,NULL,0,NULL,NULL 40914,3370,458514,Student Commentator,NULL,NULL,0,NULL,NULL 40915,181260,131947,Revival Yearling Revival Popular Question Caucus Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 40916,45907,112727,NULL,NULL,NULL,0,NULL,NULL 40917,396723,496174,Student,NULL,NULL,0,NULL,NULL 40918,298092,561610,Custodian Citizen Patrol Custodian Custodian Yearling Fanatic Suffrage Civic Duty Nice Answer Organizer Yearling Reviewer Caucus Nice Answer Constituent Yearling Documentation User Yearling Census Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 40919,608766,836347,NULL,NULL,NULL,0,NULL,NULL 40920,143475,822159,Great Question Peer Pressure Yearling Yearling,NULL,NULL,0,NULL,NULL 40921,284284,55868,Popular Question,NULL,NULL,0,NULL,NULL 40922,27480,96046,Yearling,NULL,NULL,0,NULL,NULL 40923,164570,237860,NULL,NULL,NULL,0,NULL,NULL 40924,208326,554973,Autobiographer Teacher,NULL,NULL,0,NULL,NULL 40925,207202,798391,Supporter,NULL,NULL,0,NULL,NULL 40926,495181,364740,NULL,NULL,NULL,0,NULL,NULL 40927,495182,364740,NULL,NULL,NULL,0,NULL,NULL 40928,252198,604745,NULL,NULL,NULL,0,NULL,NULL 40929,3582591,985317,NULL,NULL,NULL,0,NULL,NULL 40930,700155,1320535,Nice Answer r Nice Answer Nice Answer Enlightened matrix Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Constituent Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Custodian Custodian Caucus Nice Answer Constituent Revival Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened dataframe list vector,NULL,NULL,0,NULL,NULL 40931,2228144,1320535,Nice Answer r Nice Answer Nice Answer Enlightened matrix Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Constituent Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Custodian Custodian Caucus Nice Answer Constituent Revival Yearling Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened dataframe list vector,NULL,NULL,0,NULL,NULL 40932,81436,736402,NULL,NULL,NULL,0,NULL,NULL 40933,68225,189540,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 40934,498206,279604,Necromancer Notable Question Notable Question Necromancer Caucus Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 40935,185853,100191,Yearling Nice Question Good Question Teacher Nice Question Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 40936,29275,929910,Popular Question,NULL,NULL,0,NULL,NULL 40937,159506,1245349,NULL,NULL,NULL,0,NULL,NULL 40938,463465,1382885,NULL,NULL,NULL,0,NULL,NULL 40939,12403,614474,Yearling,NULL,NULL,0,NULL,NULL 40940,209574,1072636,NULL,NULL,NULL,0,NULL,NULL 40941,196860,314898,NULL,NULL,NULL,0,NULL,NULL 40942,21481,939906,NULL,NULL,NULL,0,NULL,NULL 40943,124792,510515,Caucus,NULL,NULL,0,NULL,NULL 40944,374435,153972,NULL,NULL,NULL,0,NULL,NULL 40945,389616,866503,NULL,NULL,NULL,0,NULL,NULL 40946,4910,799607,NULL,NULL,NULL,0,NULL,NULL 40947,264904,799607,NULL,NULL,NULL,0,NULL,NULL 40948,425593,772877,Yearling Guru,NULL,NULL,0,NULL,NULL 40949,607298,1363926,NULL,NULL,NULL,0,NULL,NULL 40950,41794,548136,NULL,NULL,NULL,0,NULL,NULL 40951,180945,385257,Good Answer Yearling Popular Question Caucus Good Answer Famous Question Yearling Caucus Guru Necromancer Census Caucus Yearling,NULL,NULL,0,NULL,NULL 40952,55026,714546,NULL,NULL,NULL,0,NULL,NULL 40953,137670,1201645,NULL,NULL,NULL,0,NULL,NULL 40954,917166,764222,NULL,NULL,NULL,0,NULL,NULL 40955,562095,1058763,Notable Question Yearling Nice Question Nice Answer Announcer Announcer Announcer Announcer Popular Question Citizen Patrol Yearling Announcer Popular Question Popular Question Notable Question Notable Question Nice Answer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 40956,34702,755334,Good Answer Nice Answer Yearling Guru Yearling Civic Duty Critic Necromancer,NULL,NULL,0,NULL,NULL 40957,712,410511,NULL,NULL,NULL,0,NULL,NULL 40958,245468,770449,Popular Question Notable Question Notable Question Yearling Famous Question Critic Yearling Autobiographer,NULL,NULL,0,NULL,NULL 40959,1507555,983627,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 40960,431694,577907,NULL,NULL,NULL,0,NULL,NULL 40961,161438,813012,Famous Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 40962,763808,811321,NULL,NULL,NULL,0,NULL,NULL 40963,150667,1268000,NULL,NULL,NULL,0,NULL,NULL 40964,315385,1464502,NULL,NULL,NULL,0,NULL,NULL 40965,940009,1464502,NULL,NULL,NULL,0,NULL,NULL 40966,196540,1508133,Nice Answer Popular Question Caucus,NULL,NULL,0,NULL,NULL 40967,484184,1397518,Supporter,NULL,NULL,0,NULL,NULL 40968,99088,253315,Custodian Citizen Patrol Yearling Popular Question Necromancer Announcer Nice Answer Enlightened Curious Nice Answer Caucus Constituent Yearling Custodian Nice Answer Yearling Nice Answer Enlightened Nice Answer Caucus Popular Question ios,NULL,NULL,0,NULL,NULL 40969,63569,566996,Student,NULL,NULL,0,NULL,NULL 40970,442,260972,NULL,NULL,NULL,0,NULL,NULL 40971,184782,891286,NULL,NULL,NULL,0,NULL,NULL 40972,590196,850016,NULL,NULL,NULL,0,NULL,NULL 40973,4107364,850016,NULL,NULL,NULL,0,NULL,NULL 40974,24684,361806,Yearling Revival Yearling Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 40975,97760,647878,Caucus Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 40976,5610190,1453328,Teacher,NULL,NULL,0,NULL,NULL 40977,4605856,922156,NULL,NULL,NULL,0,NULL,NULL 40978,43730,751624,Popular Question,NULL,NULL,0,NULL,NULL 40979,1719699,1496153,Supporter,NULL,NULL,0,NULL,NULL 40980,437682,1440581,NULL,NULL,NULL,0,NULL,NULL 40981,579018,1036208,Autobiographer Popular Question Teacher,NULL,NULL,0,NULL,NULL 40982,413250,602114,Yearling Necromancer Autobiographer Yearling Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40983,39639,40172,NULL,NULL,NULL,0,NULL,NULL 40984,1357748,1542857,Tumbleweed,NULL,NULL,0,NULL,NULL 40985,263754,763156,Yearling Caucus Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 40986,210257,473608,NULL,NULL,NULL,0,NULL,NULL 40987,65817,1431364,NULL,NULL,NULL,0,NULL,NULL 40988,96648,888639,Caucus,NULL,NULL,0,NULL,NULL 40989,199352,523613,NULL,NULL,NULL,0,NULL,NULL 40990,1316688,1092435,NULL,NULL,NULL,0,NULL,NULL 40991,353325,1092435,NULL,NULL,NULL,0,NULL,NULL 40992,441841,499137,Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 40993,183180,862149,Nice Answer,NULL,NULL,0,NULL,NULL 40994,16681,446920,NULL,NULL,NULL,0,NULL,NULL 40995,137066,1011981,NULL,NULL,NULL,0,NULL,NULL 40996,3125565,1346071,Editor Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 40997,361569,1346071,Editor Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 40998,49381,406268,NULL,NULL,NULL,0,NULL,NULL 40999,521924,1268570,Popular Question Nice Answer Enlightened Notable Question Yearling Notable Question Nice Answer Popular Question Popular Question Popular Question Notable Question Nice Answer Necromancer Nice Answer Enlightened Nice Answer Popular Question Yearling Great Answer Notable Question Popular Question Nice Answer c# Announcer Announcer Popular Question Nice Answer Notable Question Notable Question Good Answer Announcer Yearling Notable Question Nice Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 41000,107197,2543,Popular Question Nice Answer Yearling Popular Question Custodian Custodian Famous Question Popular Question Tumbleweed Nice Answer Yearling Popular Question Nice Answer Inquisitive Populist Yearling,NULL,NULL,0,NULL,NULL 41001,304713,1034255,Yearling Notable Question Necromancer Yearling Explainer Census Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 41002,1984970,537584,Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 41003,588090,1461192,Supporter,NULL,NULL,0,NULL,NULL 41004,411358,641128,NULL,NULL,NULL,0,NULL,NULL 41005,1764845,1320810,Critic Custodian Yearling Nice Question,NULL,NULL,0,NULL,NULL 41006,138743,439931,NULL,NULL,NULL,0,NULL,NULL 41007,86436,448978,Commentator Enthusiast Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 41008,5437294,448978,Commentator Enthusiast Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 41009,113187,519769,NULL,NULL,NULL,0,NULL,NULL 41010,55336,1500945,NULL,NULL,NULL,0,NULL,NULL 41011,1169623,1500945,NULL,NULL,NULL,0,NULL,NULL 41012,234269,445613,Custodian Yearling Necromancer Yearling Revival Self-Learner Necromancer Nice Answer Famous Question Nice Answer Yearling Necromancer Popular Question Yearling Famous Question Good Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 41013,5104307,445613,Custodian Yearling Necromancer Yearling Revival Self-Learner Necromancer Nice Answer Famous Question Nice Answer Yearling Necromancer Popular Question Yearling Famous Question Good Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 41014,203928,396770,Notable Question,NULL,NULL,0,NULL,NULL 41015,134699,650812,NULL,NULL,NULL,0,NULL,NULL 41016,314188,206383,NULL,NULL,NULL,0,NULL,NULL 41017,468124,927408,Nice Answer Enlightened Notable Question Custodian Popular Question Good Answer Yearling Caucus Constituent Nice Answer Great Answer Popular Question Good Question Good Answer Guru Yearling Good Answer Census Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 41018,131190,99868,NULL,NULL,NULL,0,NULL,NULL 41019,122664,1453039,NULL,NULL,NULL,0,NULL,NULL 41020,1568459,1503499,NULL,NULL,NULL,0,NULL,NULL 41021,13239,50109,javascript Nice Question Good Answer Famous Question Popular Question Notable Question Popular Question Necromancer Stellar Question Nice Answer Famous Question Popular Question Good Answer Necromancer Good Question asp.net Notable Question Revival Good Answer Necromancer Yearling Good Answer Good Answer Custodian Popular Question Documentation User Yearling Census Necromancer Nice Answer Enlightened Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41022,517080,634099,NULL,NULL,NULL,0,NULL,NULL 41023,442638,912062,Commentator Yearling,NULL,NULL,0,NULL,NULL 41024,27206,167835,Popular Question Necromancer Tumbleweed Yearling Nice Answer Curious,NULL,NULL,0,NULL,NULL 41025,142179,23952,Nice Answer Enlightened Yearling Yearling Nice Answer Editor Excavator Great Answer Yearling,NULL,NULL,0,NULL,NULL 41026,600483,127007,Good Answer Popular Question Nice Answer Enlightened Yearling Guru Yearling Guru Notable Question Nice Answer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 41027,38783,244888,Yearling Famous Question Nice Question Nice Answer Notable Question Nice Question Popular Question Nice Question Notable Question Good Question Yearling Popular Question Nice Answer Popular Question Good Question Yearling Good Answer Popular Question Good Answer Custodian Famous Question,NULL,NULL,0,NULL,NULL 41028,609107,777850,Necromancer Yearling Guru Guru Caucus Constituent html Yearling Caucus css Nice Answer Strunk & White Caucus Yearling,NULL,NULL,0,NULL,NULL 41029,387966,239027,NULL,NULL,NULL,0,NULL,NULL 41030,481663,2642,NULL,NULL,NULL,0,NULL,NULL 41031,5002417,1312310,NULL,NULL,NULL,0,NULL,NULL 41032,327995,713610,Yearling Notable Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41033,140460,544136,Popular Question,NULL,NULL,0,NULL,NULL 41034,71762,599991,Notable Question Yearling Popular Question Investor Popular Question Famous Question Popular Question Notable Question Notable Question Booster Yearling Popular Question Good Question Custodian Yearling Announcer,NULL,NULL,0,NULL,NULL 41035,418270,93156,Yearling Nice Answer Enlightened Nice Answer Nice Answer Caucus Great Answer Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 41036,27561,998073,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 41037,1377742,262605,Famous Question Yearling,NULL,NULL,0,NULL,NULL 41038,143125,219652,Yearling Famous Question Yearling Notable Question Self-Learner Necromancer Famous Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41039,161180,330724,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41040,305381,993953,NULL,NULL,NULL,0,NULL,NULL 41041,204258,379439,Necromancer Yearling Custodian Excavator Good Question Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 41042,163592,611350,Nice Question Yearling Necromancer Notable Question Popular Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 41043,206664,435635,Popular Question Yearling,NULL,NULL,0,NULL,NULL 41044,4690,256556,Yearling Custodian Custodian Informed Custodian Citizen Patrol Nice Answer Enlightened ruby-on-rails Custodian Caucus Yearling Good Answer Nice Answer Enlightened Guru Good Answer Guru Documentation User Yearling Great Answer,NULL,NULL,0,NULL,NULL 41045,467388,316285,NULL,NULL,NULL,0,NULL,NULL 41046,285678,1219961,NULL,NULL,NULL,0,NULL,NULL 41047,228066,917989,Popular Question,NULL,NULL,0,NULL,NULL 41048,149071,1124266,NULL,NULL,NULL,0,NULL,NULL 41049,37988,766720,NULL,NULL,NULL,0,NULL,NULL 41050,248042,1083348,NULL,NULL,NULL,0,NULL,NULL 41051,112025,258528,NULL,NULL,NULL,0,NULL,NULL 41052,1509303,1343639,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 41053,3466359,1343639,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 41054,543552,1455275,Teacher Critic Commentator Yearling Popular Question,NULL,,0,, 41055,600477,1178781,Yearling Revival Notable Question Caucus Constituent Famous Question Nice Answer Custodian Yearling Custodian Nice Question Necromancer Announcer Caucus Constituent Documentation User Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 41056,1378457,1181548,NULL,NULL,NULL,0,NULL,NULL 41057,501645,244454,Popular Question,NULL,NULL,0,NULL,NULL 41058,306837,1142232,NULL,NULL,NULL,0,NULL,NULL 41059,51363,394457,NULL,NULL,NULL,0,NULL,NULL 41060,1638837,1030230,Popular Question,NULL,NULL,0,NULL,NULL 41061,83406,1562592,NULL,NULL,NULL,0,NULL,NULL 41062,1382989,391898,NULL,NULL,NULL,0,NULL,NULL 41063,167175,231877,NULL,NULL,NULL,0,NULL,NULL 41064,92647,1090343,NULL,NULL,NULL,0,NULL,NULL 41065,98166,94598,Necromancer,NULL,NULL,0,NULL,NULL 41066,258927,303783,Yearling Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 41067,378052,1139554,Popular Question,NULL,NULL,0,NULL,NULL 41068,366170,65121,NULL,NULL,NULL,0,NULL,NULL 41069,742617,466448,Popular Question Notable Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 41070,101128,85973,NULL,NULL,NULL,0,NULL,NULL 41071,914092,671331,Nice Answer Enlightened Popular Question Yearling Good Answer Announcer Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 41072,896459,1124222,Popular Question,NULL,NULL,0,NULL,NULL 41073,132714,1185660,NULL,NULL,NULL,0,NULL,NULL 41074,1075803,791178,Nice Answer Yearling Popular Question Enlightened Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 41075,131122,6967,Nice Question Promoter Custodian Notable Question Yearling Famous Question Yearling Famous Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 41076,2558232,1146764,Yearling Notable Question Famous Question Nice Question Notable Question Good Question Notable Question Popular Question Notable Question Popular Question Nice Answer Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41077,157489,1146764,Yearling Notable Question Famous Question Nice Question Notable Question Good Question Notable Question Popular Question Notable Question Popular Question Nice Answer Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41078,209566,208361,Popular Question,NULL,NULL,0,NULL,NULL 41079,131376,234242,Famous Question Nice Answer Yearling Popular Question Popular Question Popular Question Popular Question Yearling Good Answer,NULL,pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre Still great fix if for some reason you just can upgrade rspec or rake,0,NULL,NULL 41080,376044,741207,NULL,NULL,NULL,0,NULL,NULL 41081,89466,1318724,NULL,NULL,NULL,0,NULL,NULL 41082,174786,1009332,Announcer Announcer Nice Answer Necromancer Announcer Famous Question Announcer Announcer Popular Question Popular Question Popular Question Good Question Nice Question Taxonomist Good Question Popular Question Necromancer Yearling Nice Question Notable Question Nice Answer Good Answer Popular Question Favorite Question Popular Question Announcer Nice Answer Necromancer Popular Question Popular Question Popular Question Notable Question Necromancer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Announcer Notable Question Great Answer Yearling Announcer Popular Question Popular Question Announcer Famous Question Notable Question Revival Nice Answer Nice Question Great Question Good Question Nice Question Popular Question Announcer Yearling Popular Question Nice Question,NULL,pI came here looking for way to universally escape code lt script gt code inside the JavaScript code ppAfter bit of research figured that if you are trying to escape code lt script gt code in JavaScript code so it can be safely embedded in html between code lt script gt code and code lt script gt code tags you should replace code lt script code with code lt scr ipt code or code lt scri pt code It safer to do because if you replace it with code lt script code you might break JavaScript code like this codevar lt script test script code ppBe careful not to look for code lt script gt code but rather code lt script code because code lt script asdasdas gt code will end your script just as well as code lt script gt code does ppSorry it doesn help Ben Alpert in any way Accepted answer is absolutely correct that you need to know what constructs are legal in language you have inside your code lt script gt lt script gt code to know how to escape code lt script gt code occurrence without braking the code Do spaces matter between the and the word script pHere is how solved similar problem ppre code rails helper rbRSpec configure do config config before example perform enqueued true do ueued jobs ActiveJob Base queue adapter perform enqueued jobs ueued at jobs ActiveJob Base queue adapter perform enqueued at jobs ActiveJob Base queue adapter perform enqueued jobs true ActiveJob Base queue adapter perform enqueued at jobs true end config after example perform enqueued true do ActiveJob Base queue adapter perform enqueued jobs ueued jobs ActiveJob Base queue adapter perform enqueued at jobs ueued at jobs endend code prepThen in specs we can use ppre codeit should perform immediately perform enqueued true do SomeJob perform later end code pre Great answer added this to file in spec support Seems that this is 100 necessary for testing email values in integration tests strongTL DR strong Use absolute paths to your assets including your complete hostname by setting your codeoutput publicPath code to href http example com assets http example com assets ph2The problem h2pThe problem is the way that URLs are resolved by Chrome when they re parsed from dynamically loaded CSS blob ppWhen you load the page the browser loads your Webpack bundle entry JavaScript file which when you re using the codestyle loader code also contains Base64 encoded copy of your CSS which gets loaded into the page pblockquote href https stack imgur com mrHzt png img src https stack imgur com mrHzt png alt Screenshot of embedded CSS in Chrome DevTools This is what it looks like in Chrome DevTools blockquotepThat fine for all the images or fonts which are encoded into the CSS as data URIs the content of the file is embedded in the CSS but for assets referenced by emURL em the browser has to find and fetch the file ppNow by default the codefile loader code which codeurl loader code delegates to for large files will use emrelative em URLs to reference assets and emthat the problem em pblockquote href https stack imgur com 2UgxT png img src https stack imgur com 2UgxT png alt Relative URLs generated by Webpack emThese are the URLs generated by codefile loader code by default relative URLs em blockquotepWhen you use relative URLs Chrome will resolve them relative to the containing CSS file Ordinarily that fine but in this case the containing file is at codeblob code and any relative URLs are referenced the same way The end result is that Chrome attempts to load them from the parent HTML file and ends up trying to parse the HTML file as the content of the font which obviously won work ph2The Solution h2pForce the codefile loader code to use absolute paths including the protocol http or https ppChange your webpack config to include something equivalent to ppre code output publicPath http localhost 8080 Development Server publicPath http example com Production Server code prepNow the URLs that it generates will look like this pblockquote href https stack imgur com nSlPA png img src https stack imgur com nSlPA png alt enter image description here emAbsolute URLs em blockquotepThese URLs will be correctly parsed by Chrome and every other browser ph2Using codeextract text webpack plugin code h2pIt worth noting that if you re extracting your CSS to separate file you won have this problem because your CSS will be in proper file and URLs will be correctly resolved we re having related issue https github com shakacode bootstrap loader pull 56 files diff d9789595ca7b71d22ec4bd1531c19267R43 If you could take look at the repro case we be very grateful We get the same exact error and we are using the extract text webpack plugin So It worth noting that if you re extracting your CSS to separate file you won have this problem because your CSS will be in proper file and URLs will be correctly resolved is not applying to us,0,NULL,NULL 41083,481044,793150,Informed Autobiographer Announcer,NULL,NULL,0,NULL,NULL 41084,309845,664322,Custodian Excavator Organizer Yearling Popular Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 41085,285885,1046034,NULL,NULL,NULL,0,NULL,NULL 41086,1116500,362025,NULL,NULL,NULL,0,NULL,NULL 41087,44004,191447,NULL,NULL,NULL,0,NULL,NULL 41088,110365,648888,NULL,NULL,NULL,0,NULL,NULL 41089,4928354,773228,Yearling Self-Learner Quorum Popular Question Civic Duty Autobiographer Caucus Nice Answer Enlightened Pundit Custodian Yearling Caucus Constituent elixir Nice Answer Enlightened Documentation User Census Caucus Yearling Nice Answer,NULL,Find bridge days in list of days elixir phoenix framework pI want to find bridge days from list of days The list ppre codedays value 2017 04 01 categories weekend value 2017 04 02 categories weekend value 2017 04 03 categories value 2017 04 04 categories value 2017 04 13 categories bank holiday value 2017 04 14 categories bank holiday value 2017 04 15 categories weekend value 2017 04 16 categories weekend bank holiday code prepThe month as rendered on the webpage pp href https stack imgur com wW2wB png rel nofollow noreferrer img src https stack imgur com wW2wB png alt Screenshot of April in the calendar ppSomebody who wants to maximize his her vacation days would take vacation on the 10th 11th and 12th because that would result in 10 day vacation 8th 17th for an investment of just vacation days ppI want to write function codebridge days days number of invested vacation days code which results in list of those three days code 2017 04 10 2017 04 11 2017 04 12 code when called with codebridge days days code being the number of invested vacation days ppAn other month example pp href https stack imgur com VJhU5 png rel nofollow noreferrer img src https stack imgur com VJhU5 png alt Screenshot of Mai in the calendar pp codebridge days days code would result in code 2017 05 26 code because an investment of vacation day results in days of vacation ppActually codebridge days code would often result in list of lists because many times there are multiple options ppMy approach is to loop through the list comparing and of each day The problem is that it takes for ever to do ppIs there more clever way than using this kind of brute force to solve this problem The question is less how do do this and more have working solution but am looking for better algorithm,0,NULL,NULL 41090,360037,773228,Yearling Self-Learner Quorum Popular Question Civic Duty Autobiographer Caucus Nice Answer Enlightened Pundit Custodian Yearling Caucus Constituent elixir Nice Answer Enlightened Documentation User Census Caucus Yearling Nice Answer,NULL,Find bridge days in list of days elixir phoenix framework pI want to find bridge days from list of days The list ppre codedays value 2017 04 01 categories weekend value 2017 04 02 categories weekend value 2017 04 03 categories value 2017 04 04 categories value 2017 04 13 categories bank holiday value 2017 04 14 categories bank holiday value 2017 04 15 categories weekend value 2017 04 16 categories weekend bank holiday code prepThe month as rendered on the webpage pp href https stack imgur com wW2wB png rel nofollow noreferrer img src https stack imgur com wW2wB png alt Screenshot of April in the calendar ppSomebody who wants to maximize his her vacation days would take vacation on the 10th 11th and 12th because that would result in 10 day vacation 8th 17th for an investment of just vacation days ppI want to write function codebridge days days number of invested vacation days code which results in list of those three days code 2017 04 10 2017 04 11 2017 04 12 code when called with codebridge days days code being the number of invested vacation days ppAn other month example pp href https stack imgur com VJhU5 png rel nofollow noreferrer img src https stack imgur com VJhU5 png alt Screenshot of Mai in the calendar pp codebridge days days code would result in code 2017 05 26 code because an investment of vacation day results in days of vacation ppActually codebridge days code would often result in list of lists because many times there are multiple options ppMy approach is to loop through the list comparing and of each day The problem is that it takes for ever to do ppIs there more clever way than using this kind of brute force to solve this problem The question is less how do do this and more have working solution but am looking for better algorithm,0,NULL,NULL 41091,633425,371935,Popular Question,NULL,NULL,0,NULL,NULL 41092,904069,68966,Good Question Yearling,NULL,NULL,0,NULL,NULL 41093,15378,61394,Yearling Yearling Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 41094,625396,91660,Famous Question Popular Question Notable Question Yearling Caucus Caucus Notable Question Good Question Caucus,NULL,NULL,0,NULL,NULL 41095,1700425,12958,Revival Custodian Necromancer Popular Question Popular Question Populist Necromancer Necromancer Nice Answer Famous Question Yearling Notable Question Revival Necromancer Custodian Inquisitive Popular Question Great Answer Good Answer Announcer Popular Question Caucus Popular Question Good Answer .net Yearling Popular Question Notable Question Revival Popular Question Pundit Proofreader Informed Revival Nice Question Caucus Famous Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41096,214674,12958,Revival Custodian Necromancer Popular Question Popular Question Populist Necromancer Necromancer Nice Answer Famous Question Yearling Notable Question Revival Necromancer Custodian Inquisitive Popular Question Great Answer Good Answer Announcer Popular Question Caucus Popular Question Good Answer .net Yearling Popular Question Notable Question Revival Popular Question Pundit Proofreader Informed Revival Nice Question Caucus Famous Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41097,852863,1088736,Notable Question,NULL,NULL,0,NULL,NULL 41098,60967,713854,NULL,NULL,NULL,0,NULL,NULL 41099,340326,359512,NULL,NULL,NULL,0,NULL,NULL 41100,258065,205153,NULL,NULL,NULL,0,NULL,NULL 41101,888193,1309672,Curious Nice Answer Enlightened Nice Answer Enlightened Famous Question Caucus Constituent Popular Question Popular Question Custodian Yearling Caucus Constituent Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 41102,805017,1234668,Notable Question,NULL,NULL,0,NULL,NULL 41103,19790,139944,Yearling,NULL,NULL,0,NULL,NULL 41104,171914,639803,NULL,NULL,NULL,0,NULL,NULL 41105,5650,939601,NULL,NULL,NULL,0,NULL,NULL 41106,77107,844031,Supporter Editor,NULL,NULL,0,NULL,NULL 41107,18005,996661,Autobiographer,NULL,NULL,0,NULL,NULL 41108,1513116,191588,Necromancer Yearling Good Answer Yearling Great Question Nice Answer Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 41109,23343,994668,NULL,NULL,NULL,0,NULL,NULL 41110,319771,689168,Yearling Good Answer,NULL,NULL,0,NULL,NULL 41111,606035,690504,NULL,NULL,NULL,0,NULL,NULL 41112,162270,134347,NULL,NULL,NULL,0,NULL,NULL 41113,733660,107270,Nice Question,NULL,NULL,0,NULL,NULL 41114,222717,320619,Famous Question Popular Question Nice Question Nice Question Popular Question Nice Question Notable Question Nice Question Yearling Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Necromancer Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Answer Popular Question Notable Question Necromancer Nice Question Nice Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Socratic Nice Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Great Answer Popular Question Popular Question Custodian Custodian Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41115,1520766,124179,Notable Question Popular Question Yearling Famous Question Yearling Nice Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41116,25890,657,Enthusiast Yearling Nice Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41117,550588,1003591,Editor,NULL,NULL,0,NULL,NULL 41118,374007,737455,Revival Popular Question Nice Question Notable Question Popular Question Popular Question Yearling Famous Question Famous Question Necromancer Famous Question Popular Question Popular Question Notable Question scala Popular Question Popular Question Notable Question Popular Question Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Notable Question Good Question Nice Answer Nice Answer Notable Question Famous Question Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Nice Answer Popular Question Good Question,NULL,NULL,0,NULL,NULL 41119,1381041,974095,NULL,NULL,NULL,0,NULL,NULL 41120,300216,5616,Great Question Guru Nice Question Nice Answer Enlightened Yearling Good Question Famous Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 41121,503714,44026,Notable Question Popular Question Good Question Popular Question Yearling Notable Question Popular Question Notable Question Yearling Enthusiast Necromancer Yearling Nice Question Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 41122,412008,4767,Popular Question Yearling Nice Question Famous Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 41123,318138,890779,Popular Question Nice Answer Enlightened Informed,NULL,NULL,0,NULL,NULL 41124,30621,148220,NULL,NULL,NULL,0,NULL,NULL 41125,1607,102311,NULL,NULL,NULL,0,NULL,NULL 41126,134864,262078,Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 41127,38661,185938,NULL,NULL,NULL,0,NULL,NULL 41128,238697,871288,Nice Answer Scholar,NULL,NULL,0,NULL,NULL 41129,6253,230574,Yearling,NULL,NULL,0,NULL,NULL 41130,11112,1484251,Yearling Critic Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 41131,12144,549443,NULL,NULL,NULL,0,NULL,NULL 41132,238862,193813,NULL,NULL,NULL,0,NULL,NULL 41133,91803,11944,Yearling Good Answer,NULL,NULL,0,NULL,NULL 41134,255958,451330,Editor Caucus Scholar Commentator Student Yearling,NULL,NULL,0,NULL,NULL 41135,59558,222012,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 41136,173174,318808,NULL,NULL,NULL,0,NULL,NULL 41137,293239,299315,NULL,NULL,NULL,0,NULL,NULL 41138,72385,145913,NULL,NULL,NULL,0,NULL,NULL 41139,500835,1288532,NULL,NULL,NULL,0,NULL,NULL 41140,1036576,525950,NULL,NULL,NULL,0,NULL,NULL 41141,251995,443774,NULL,NULL,NULL,0,NULL,NULL 41142,35311,513841,NULL,NULL,NULL,0,NULL,NULL 41143,8777412,991610,NULL,NULL,NULL,0,NULL,NULL 41144,7736,495136,NULL,NULL,NULL,0,NULL,NULL 41145,259116,250853,NULL,NULL,NULL,0,NULL,NULL 41146,14766,1304523,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 41147,36608,479449,Popular Question Famous Question Notable Question Nice Answer Organizer Notable Question Yearling Nice Question Nice Question Notable Question Yearling Notable Question Popular Question Self-Learner Notable Question Good Question Taxonomist Yearling,NULL,NULL,0,NULL,NULL 41148,355454,265549,Curious Notable Question,NULL,NULL,0,NULL,NULL 41149,69174,4972,Announcer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 41150,62250,803749,Caucus Census,NULL,NULL,0,NULL,NULL 41151,134434,92389,Nice Question Necromancer Nice Answer Yearling Nice Answer Enlightened Popular Question Popular Question Yearling asp.net-mvc Caucus Civic Duty Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 41152,13800,320992,NULL,NULL,NULL,0,NULL,NULL 41153,247601,799933,NULL,NULL,NULL,0,NULL,NULL 41154,120389,908002,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41155,107435,369996,NULL,NULL,NULL,0,NULL,NULL 41156,28930,1052788,Good Answer Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Guru Civic Duty Nice Answer Enlightened Necromancer Popular Question Notable Question Popular Question Caucus Yearling Notable Question Nice Answer Custodian Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 41157,297367,380294,NULL,NULL,NULL,0,NULL,NULL 41158,112163,321061,Good Answer Citizen Patrol Custodian Yearling Custodian Tumbleweed Promoter Curious Nice Answer Benefactor Yearling Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 41159,179029,257262,NULL,NULL,NULL,0,NULL,NULL 41160,79801,1090185,Good Question Yearling Necromancer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 41161,252875,342250,Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 41162,196464,454333,NULL,NULL,NULL,0,NULL,NULL 41163,17890,772326,NULL,NULL,NULL,0,NULL,NULL 41164,63283,194084,Yearling Critic Informed Yearling Autobiographer Census,NULL,NULL,0,NULL,NULL 41165,320791,323454,Famous Question Good Answer,NULL,NULL,0,NULL,NULL 41166,18290,454011,NULL,NULL,NULL,0,NULL,NULL 41167,114862,15495,Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 41168,47448,519066,Necromancer Yearling,NULL,NULL,0,NULL,NULL 41169,143974,249107,Announcer,NULL,NULL,0,NULL,NULL 41170,16591,1368127,Teacher,NULL,NULL,0,NULL,NULL 41171,1668334,305506,NULL,NULL,NULL,0,NULL,NULL 41172,437172,494981,NULL,NULL,NULL,0,NULL,NULL 41173,25252,961381,NULL,NULL,NULL,0,NULL,NULL 41174,158263,173,Popular Question Yearling,NULL,NULL,0,NULL,NULL 41175,407750,1188525,NULL,NULL,NULL,0,NULL,NULL 41176,763294,869893,NULL,NULL,NULL,0,NULL,NULL 41177,80462,224885,Famous Question Caucus,NULL,NULL,0,NULL,NULL 41178,545257,1343721,Teacher Supporter Popular Question Editor,NULL,NULL,0,NULL,NULL 41179,27329,212679,Critic Guru Yearling Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 41180,2111733,1264974,Yearling Nice Question Notable Question go Famous Question Yearling Nice Question Nice Answer Custodian Custodian Yearling Popular Question Citizen Patrol Cleanup,NULL,NULL,0,NULL,NULL 41181,653661,1264974,Yearling Nice Question Notable Question go Famous Question Yearling Nice Question Nice Answer Custodian Custodian Yearling Popular Question Citizen Patrol Cleanup,NULL,NULL,0,NULL,NULL 41182,481053,66288,NULL,NULL,NULL,0,NULL,NULL 41183,1358039,42450,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41184,164433,956190,NULL,NULL,NULL,0,NULL,NULL 41185,3353793,949614,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41186,609353,196098,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 41187,10524,161238,Critic Yearling,NULL,NULL,0,NULL,NULL 41188,134850,117074,NULL,NULL,NULL,0,NULL,NULL 41189,59220,1195669,NULL,NULL,NULL,0,NULL,NULL 41190,227366,1078726,Curious Yearling Famous Question Nice Question Popular Question Nice Answer Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 41191,168,211304,NULL,NULL,NULL,0,NULL,NULL 41192,293184,1549679,NULL,NULL,NULL,0,NULL,NULL 41193,3217861,760220,Good Question Yearling Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 41194,464107,641814,NULL,NULL,NULL,0,NULL,NULL 41195,238837,1239780,NULL,NULL,NULL,0,NULL,NULL 41196,358175,53120,Yearling Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Necromancer Nice Answer Good Question Notable Question Yearling Popular Question Nice Answer Famous Question Popular Question Nice Question Caucus Famous Question Necromancer Famous Question Yearling Custodian Famous Question Nice Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41197,68280,732947,Popular Question Popular Question Famous Question Notable Question Yearling Famous Question Notable Question Notable Question Good Question Famous Question Notable Question Notable Question Nice Question Popular Question Yearling Nice Answer Popular Question Famous Question Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Favorite Question Popular Question Popular Question Popular Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 41198,23937,496445,Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Great Answer Guru Announcer Guru Nice Answer Enlightened Good Answer Nice Question Nice Answer Great Answer Nice Answer Good Answer Nice Answer Popular Question Popular Question Revival Nice Answer Enlightened Notable Question Nice Question Nice Answer Enlightened Nice Answer Revival list Guru Good Answer Great Answer Nice Answer Enlightened Yearling Good Answer Good Answer Announcer Popular Question Good Answer Great Answer Good Answer Good Answer Nice Answer Great Answer Notable Question Good Answer Great Answer Nice Answer Notable Question Populist Nice Answer Nice Answer Announcer Nice Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Yearling Good Answer qt Nice Answer Guru Nice Answer Guru Announcer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Guru Guru Popular Question Good Answer Benefactor Yearling,NULL,pRedirect the output to DEVNULL ppre codeimport osimport subprocessFNULL open os devnull retcode subprocess call echo foo stdout FNULL stderr subprocess STDOUT code prepIt is effectively the same as running this shell command ppre coderetcode os system echo foo amp gt dev null code pre 595112 it is definitely general solution that works can confirm this specifically for windows 7zip not familiar with whatever quirks windows 7zip could introduce,0,NULL,NULL 41199,48764,794170,Yearling Famous Question,NULL,NULL,0,NULL,NULL 41200,248320,436078,Yearling,NULL,NULL,0,NULL,NULL 41201,217808,657326,NULL,NULL,NULL,0,NULL,NULL 41202,314643,636218,NULL,NULL,NULL,0,NULL,NULL 41203,1514142,688071,Popular Question Self-Learner Yearling Inquisitive Caucus Popular Question Yearling Popular Question Popular Question Notable Question Yearling Notable Question Caucus Popular Question Notable Question Custodian Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41204,499715,854918,NULL,NULL,NULL,0,NULL,NULL 41205,638340,149050,Nice Answer Yearling Nice Answer Good Answer Populist Yearling,NULL,NULL,1,NULL,Ansible using become become user fails to set permissions on temp file git vagrant ansible sudo ansible pI have an ansible on my server where do deployment via strongvagrant strong and on PC too The role deploy have ppre code name upload code become true become user www data git repo git org git dest var www main key file var www ssh id rsa accept hostkey true update yes force yes register fresh code notify restart php fpm tags fresh code code prepIn this case with ansible get an error ppre codefatal default FAILED gt failed true msg Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user For information on working around this see https docs ansible com ansible become html becoming an unprivileged user code prepIt it ansible which use on my PC is all normally folder var www have folder main with owner and group www data ppIf use only became user www data and if use become method sudo with became user www data got same error ppWhat need to do to resolve this pOn debian ubuntu you can resolve this by first installing the codeacl code package on the remote host like with this ansible task ppre code name install setfacl support become yes apt pkg acl code prepSame thing with redhat centos install the codeacl code package on the remote host ppre code name install setfacl support become yes yum name acl code pre 41206,301520,595209,Notable Question Yearling,NULL,NULL,0,NULL,NULL 41207,900374,1178529,Yearling Popular Question Notable Question Good Answer Popular Question Notable Question Yearling Notable Question Famous Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41208,202703,591197,NULL,NULL,NULL,0,NULL,NULL 41209,1351577,508606,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41210,1342711,897872,Famous Question Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 41211,2189655,1295821,Popular Question,NULL,NULL,0,NULL,NULL 41212,437628,16820,Famous Question Documentation User Yearling Caucus,NULL,NULL,0,NULL,NULL 41213,508451,496501,Nice Answer Necromancer Citizen Patrol Necromancer Yearling Investor Census Yearling Peer Pressure Revival Good Answer Nice Answer Curious Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41214,1520097,848378,Tumbleweed Editor Scholar Teacher,NULL,NULL,0,NULL,NULL 41215,174869,1116574,Scholar Notable Question Supporter,NULL,NULL,0,NULL,NULL 41216,1167570,82211,Notable Question Excavator Famous Question Necromancer Announcer Popular Question,NULL,NULL,0,NULL,NULL 41217,110494,374513,Necromancer,NULL,NULL,0,NULL,NULL 41218,465273,149992,Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Notable Question Popular Question Stellar Question Yearling Popular Question Popular Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 41219,616333,500894,Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41220,404801,604624,Yearling,NULL,NULL,0,NULL,NULL 41221,962235,966549,Popular Question Popular Question Yearling Caucus Nice Answer Critic Yearling Curious Custodian,NULL,pAnother quicker way is ppre codegit stash save keep index include untracked code prepYou don need to include code include untracked code if you don want to be thorough about it ppAfter that you can drop that stash with codegit stash drop code command if you like git clean has dry run option,0,NULL,NULL 41222,1928484,966549,Popular Question Popular Question Yearling Caucus Nice Answer Critic Yearling Curious Custodian,NULL,pAnother quicker way is ppre codegit stash save keep index include untracked code prepYou don need to include code include untracked code if you don want to be thorough about it ppAfter that you can drop that stash with codegit stash drop code command if you like git clean has dry run option,0,NULL,NULL 41223,1127347,1197893,NULL,NULL,NULL,0,NULL,NULL 41224,10119520,1197893,NULL,NULL,NULL,0,NULL,NULL 41225,711318,537398,NULL,NULL,NULL,0,NULL,NULL 41226,331306,24464,NULL,NULL,NULL,0,NULL,NULL 41227,74765,781382,NULL,NULL,NULL,0,NULL,NULL 41228,1114100,1022785,NULL,NULL,NULL,0,NULL,NULL 41229,15934,407202,Good Question Yearling Yearling Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 41230,266379,511296,NULL,NULL,NULL,0,NULL,NULL 41231,13958,370706,Popular Question,NULL,NULL,0,NULL,NULL 41232,176616,1084218,NULL,NULL,NULL,0,NULL,NULL 41233,694575,609,Nice Answer Famous Question Populist Good Answer Nice Question Notable Question Nice Answer Famous Question Yearling Populist Famous Question Famous Question Caucus Nice Answer Necromancer Necromancer Popular Question Popular Question Necromancer Custodian Explainer Revival ruby-on-rails Good Answer Caucus Electorate Yearling Disciplined Good Question Nice Answer Necromancer Great Answer Necromancer Popular Question Necromancer Notable Question Caucus Nice Answer Popular Question Popular Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 41234,528324,1170260,NULL,NULL,NULL,0,NULL,NULL 41235,6501222,343194,Announcer Publicist Announcer Announcer Yearling Caucus Booster Documentation User Announcer Commentator,NULL,NULL,0,NULL,NULL 41236,43814,343194,Announcer Publicist Announcer Announcer Yearling Caucus Booster Documentation User Announcer Commentator,NULL,NULL,0,NULL,NULL 41237,74037,951391,NULL,NULL,NULL,0,NULL,NULL 41238,353411,506977,NULL,NULL,NULL,0,NULL,NULL 41239,80553,1090875,NULL,NULL,NULL,0,NULL,NULL 41240,33176,485115,Nice Answer Enlightened Nice Answer Good Question Nice Question Nice Answer Enlightened Popular Question Popular Question Popular Question Favorite Question Nice Answer Famous Question Nice Question Popular Question Popular Question Nice Answer Enlightened Revival Nice Answer Popular Question Nice Answer Enlightened Yearling Popular Question Good Answer Nice Question Good Question Announcer Necromancer Famous Question Notable Question Popular Question Nice Answer Good Answer Good Answer Nice Answer Nice Answer Tumbleweed Good Question Nice Answer Nice Answer Yearling Nice Answer Announcer Notable Question Announcer Good Answer Announcer Notable Question Good Answer Nice Answer Famous Question Good Answer Famous Question Necromancer Revival Yearling Notable Question,NULL,NULL,1,NULL,Resolving references while parsing JSON document with Aeson json haskell aeson pI have JSON document like the following ppre code persons id 343 name John age 45 houses owner id 343 address Charing Cross code prepAnd Haskell datatypes like the following ppre codedata City City persons Person houses Houses data Person Person personId Text name Text data House House owner Person address Text code prepWhile parsing Aeson href http hackage haskell org package aeson 11 docs Data Aeson html Value rel nofollow codeValue code object want to resolve the codeowner id code references in codehouses code and turn them into full fledged codePerson code values ppUsually construct Aeson parsers with nice operators like href http hackage haskell org package aeson 11 docs Data Aeson html rel nofollow code code but the need to resolve references seems to complicate things here ppIs there way to define codeParser City code implementation that does not resort to looking up keys in the underlying codeHashMap code of the JSON object pThis untrivial task makes perfect opportunity to exhibit the power and flexibility of the alternative href http hackage haskell org package aeson value parser rel nofollow aeson value parser library which provides DSL based around the typical Monadic Applicative parsers ppThe following output ppre codeRight City cityPersons Person personId 343 personName John cityHouses House houseOwner Person personId 343 personName John houseAddress Charing Cross code prepis what the following program produces ppre code LANGUAGE NoImplicitPrelude richer prelude from rebase import Rebase Prelude The parser API from aeson value parser import Aeson ValueParser reexport of the original API of unordered containers from rebase import qualified Rebase Data HashMap Strict From aeson import qualified Data Aesonmain print run city fromJust Data Aeson decode persons id 343 name John age 45 houses owner id 343 address Charing Cross Model data City City cityPersons Person cityHouses House deriving Show data Person Person personId Text personName Text deriving Show data House House houseOwner Person houseAddress Text deriving Show Parsers city Value Citycity object do theTable lt field persons personsLookupTable theHouses lt field houses houses theTable return City Rebase Data HashMap Strict elems theTable theHouses gt gt id 343 name John age 45 gt personsLookupTable Value HashMap Text Person personsLookupTable array foldlElements step init personsLookupTableRow where init Rebase Data HashMap Strict empty step table key person Rebase Data HashMap Strict insert key person table gt id 343 name John age 45 personsLookupTableRow Value Text Person personsLookupTableRow object id name gt id Person id name lt gt id lt gt name where id field id string name field name string gt gt owner id 343 address Charing Cross gt houses HashMap Text Person gt Value House houses personsLookupTable array foldrElements house personsLookupTable Parses the house object using Person lookup table gt owner id 343 address Charing Cross house HashMap Text Person gt Value Househouse personsLookupTable object House lt gt owner lt gt address where owner field owner id personByID personsLookupTable address field address string Given an ID lookup table consumes the ID and produces the lookup result Fails if any of those operations fail personByID HashMap Text Person gt Value PersonpersonByID lookupTable string gt gt lookup where lookup key maybe mzero return Rebase Data HashMap Strict lookup key lookupTable code pre 41241,2318769,655185,NULL,NULL,NULL,0,NULL,NULL 41242,1168195,655185,NULL,NULL,NULL,0,NULL,NULL 41243,899799,1180342,NULL,NULL,NULL,0,NULL,NULL 41244,1283705,1412327,NULL,NULL,NULL,0,NULL,NULL 41245,45641,591938,NULL,NULL,NULL,0,NULL,NULL 41246,609975,351947,Nice Answer Yearling Necromancer Citizen Patrol Good Answer Populist Caucus Necromancer Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 41247,122694,820129,NULL,NULL,NULL,0,NULL,NULL 41248,411490,645242,NULL,NULL,NULL,0,NULL,NULL 41249,714085,525702,Popular Question,NULL,NULL,0,NULL,NULL 41250,223397,746999,Popular Question Notable Question Yearling Self-Learner Great Answer Curious Nice Question Caucus Famous Question Yearling Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 41251,185837,349437,NULL,NULL,NULL,0,NULL,NULL 41252,1165118,830769,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41253,149309,692483,Curious Commentator Caucus Yearling Organizer Popular Question Popular Question Citizen Patrol Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 41254,218431,1229867,NULL,NULL,NULL,0,NULL,NULL 41255,118278,1426613,NULL,NULL,NULL,0,NULL,NULL 41256,251873,1252433,NULL,NULL,NULL,0,NULL,NULL 41257,18078,226743,Critic Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 41258,560802,644583,NULL,NULL,NULL,0,NULL,NULL 41259,303607,1435087,NULL,NULL,NULL,0,NULL,NULL 41260,184265,1344075,NULL,NULL,NULL,0,NULL,NULL 41261,5318,945063,Nice Question,NULL,NULL,0,NULL,NULL 41262,2952640,1332324,NULL,NULL,NULL,0,NULL,NULL 41263,893046,1335489,Announcer,NULL,NULL,0,NULL,NULL 41264,395412,1471514,NULL,NULL,NULL,0,NULL,NULL 41265,52174,112332,Notable Question,NULL,NULL,0,NULL,NULL 41266,32383,219519,Revival Tumbleweed Popular Question Nice Answer Notable Question Popular Question Custodian Custodian Yearling Necromancer Explainer Popular Question Nice Question Yearling Notable Question Citizen Patrol Necromancer Census Nice Answer Revival Yearling Caucus Revival Electorate Custodian Revival Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 41267,469687,1038114,Commentator,NULL,NULL,0,NULL,NULL 41268,475220,196048,Nice Answer Notable Question Yearling Custodian Revival Popular Question Famous Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 41269,596217,1088214,NULL,NULL,NULL,0,NULL,NULL 41270,175415,1475713,NULL,NULL,NULL,0,NULL,NULL 41271,309100,242813,Popular Question Enthusiast Popular Question Notable Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41272,111887,447598,NULL,NULL,NULL,0,NULL,NULL 41273,160791,553229,Citizen Patrol,NULL,NULL,0,NULL,NULL 41274,445951,1333833,NULL,NULL,NULL,0,NULL,NULL 41275,31160,65455,Yearling iphone Organizer ios Yearling Taxonomist Yearling Custodian,NULL,NULL,0,NULL,NULL 41276,515670,340844,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 41277,175496,697734,NULL,NULL,NULL,0,NULL,NULL 41278,353074,682161,Nice Question Yearling,NULL,NULL,0,NULL,NULL 41279,169814,1359413,Yearling Student Scholar Yearling Yearling,NULL,NULL,0,NULL,NULL 41280,271544,1452094,Yearling Critic Commentator Informed Editor Yearling Yearling Citizen Patrol Fanatic Custodian Yearling Tenacious Caucus Custodian Mortarboard java Organizer Custodian Nice Answer Nice Answer Enlightened android Yearling kotlin Caucus Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened rx-java2 Good Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer rx-java Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened kotlin Nice Answer,NULL,NULL,0,NULL,NULL 41281,54620,319688,Informed Autobiographer Nice Question Popular Question Yearling Popular Question Caucus Notable Question Popular Question Caucus Popular Question Nice Question,NULL,NULL,1,How to define function whose output type depends on the input type scala types shapeless pGiven the following classes ppre codecase class AddRequest Int Int case class AddResponse sum Int case class ToUppercaseRequest str String case class ToUppercaseResponse upper String code prepHow do define in typesafe manner some function ppre codedef process req code prepSuch that the following should hold true ppre codeval r1 AddResponse process AddRequest val r2 ToUppercaseResponse process ToUppercaseRequest aaa code prepAlso the following should emnot em compile ppre codeval r3 process somestring code pre,NULL 41282,154978,1388183,Famous Question Teacher,NULL,NULL,0,NULL,NULL 41283,72710,331685,NULL,NULL,NULL,0,NULL,NULL 41284,5924,10242,Popular Question Nice Question Excavator Yearling Custodian Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 41285,136203,43620,NULL,NULL,NULL,0,NULL,NULL 41286,624935,981136,Famous Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 41287,111477,925162,NULL,NULL,NULL,0,NULL,NULL 41288,9863082,1316462,Yearling Nice Answer Enlightened Organizer Citizen Patrol Nice Answer Custodian Caucus Nice Answer Enlightened Good Answer Enlightened Yearling Guru Good Answer Nice Answer Enlightened Good Answer Caucus Guru swift Announcer Necromancer Yearling Great Answer Explainer Excavator Custodian Custodian android Custodian Guru Proofreader Nice Answer Enlightened Mortarboard Nice Answer Enlightened c++,NULL,NULL,0,NULL,NULL 41289,652091,1316462,Yearling Nice Answer Enlightened Organizer Citizen Patrol Nice Answer Custodian Caucus Nice Answer Enlightened Good Answer Enlightened Yearling Guru Good Answer Nice Answer Enlightened Good Answer Caucus Guru swift Announcer Necromancer Yearling Great Answer Explainer Excavator Custodian Custodian android Custodian Guru Proofreader Nice Answer Enlightened Mortarboard Nice Answer Enlightened c++,NULL,NULL,0,NULL,NULL 41290,4978762,592326,NULL,NULL,NULL,0,NULL,NULL 41291,182078,592326,NULL,NULL,NULL,0,NULL,NULL 41292,1605963,895522,NULL,NULL,NULL,0,NULL,NULL 41293,657863,954355,NULL,NULL,NULL,0,NULL,NULL 41294,470814,87283,Popular Question,NULL,NULL,0,NULL,NULL 41295,553553,495152,NULL,NULL,NULL,0,NULL,NULL 41296,1413694,1140947,NULL,NULL,NULL,0,NULL,NULL 41297,747276,1179687,Yearling Revival Nice Answer Necromancer Nice Answer Popular Question Nice Answer Yearling Nice Answer Nice Answer Nice Question Notable Question Revival Yearling Good Answer Organizer,NULL,NULL,0,NULL,NULL 41298,1146499,114124,Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 41299,83938,1521631,Commentator Necromancer Revival Caucus Yearling Curious Necromancer Popular Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 41300,6282,888781,NULL,NULL,NULL,0,NULL,NULL 41301,362167,1024725,NULL,NULL,NULL,0,NULL,NULL 41302,312672,988041,NULL,NULL,NULL,0,NULL,NULL 41303,50705,799734,Necromancer Investor Self-Learner Yearling Nice Answer Enlightened Notable Question Popular Question Yearling Good Answer Caucus Yearling Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 41304,1150975,8995,Yearling Necromancer Critic Nice Answer Yearling Nice Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 41305,222549,608166,NULL,NULL,NULL,0,NULL,NULL 41306,221237,115698,Civic Duty Nice Answer Yearling Good Answer Good Answer Popular Question Caucus Excavator Yearling Revival Nice Answer Notable Question Good Answer Caucus Good Answer Revival Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 41307,885892,1400383,NULL,NULL,NULL,0,NULL,NULL 41308,27408,375265,Notable Question Good Question Yearling Nice Answer Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 41309,492341,11702,Nice Answer Enlightened Good Answer Generalist Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Populist Good Answer Yearling Nice Answer angularjs Great Answer Good Answer Guru html Good Answer Guru Popular Question Custodian Good Answer Nice Answer Enlightened Nice Answer Yearling c# javascript Nice Answer Enlightened Guru Notable Question Great Answer Good Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened .net Good Answer Good Answer,NULL,NULL,0,NULL,NULL 41310,82306,3111,Popular Question Popular Question Popular Question Stellar Question Electorate Investor Favorite Question Yearling Famous Question Great Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 41311,851686,1118660,Nice Answer Enlightened Strunk & White Proofreader Cleanup Electorate Documentation Pioneer Caucus Constituent Yearling Announcer Documentation User Yearling Caucus Custodian Custodian Reviewer Reviewer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41312,3480,564865,Necromancer Yearling Nice Answer Critic Yearling Necromancer,NULL,NULL,0,NULL,NULL 41313,433914,89233,Popular Question Yearling Nice Answer Nice Answer Caucus Excavator Popular Question Necromancer Yearling Popular Question Nice Answer Revival Popular Question Nice Question Pundit Good Question Caucus Yearling Popular Question Famous Question Necromancer Tenacious Taxonomist,NULL,pTo split the string filepath filename and get the file name you could use something like this ppre codestr split pop code preblockquote The pop method removes the last element from an array and returns that value to the caller href https developer mozilla org en JavaScript Reference Global Objects Array pop rel noreferrer MOZILLA DEVELOPER NETWORK blockquotepExample ppfrom code home user file txt split pop code ppyou get code file txt code vog answer is really close to the 100 accurate answer to the question except needs to strip the extension filename is no different from any other string,0,NULL,NULL 41314,2529129,335583,Announcer Yearling Revival Popular Question Revival Popular Question Notable Question Yearling Popular Question Suffrage Electorate Vox Populi Popular Question Self-Learner Announcer Popular Question Nice Question Popular Question Reviewer Nice Question Yearling Revival Necromancer Booster Notable Question Announcer Revival,NULL,NULL,0,NULL,NULL 41315,172297,335583,Announcer Yearling Revival Popular Question Revival Popular Question Notable Question Yearling Popular Question Suffrage Electorate Vox Populi Popular Question Self-Learner Announcer Popular Question Nice Question Popular Question Reviewer Nice Question Yearling Revival Necromancer Booster Notable Question Announcer Revival,NULL,NULL,0,NULL,NULL 41316,108484,166356,Critic Notable Question Yearling Revival Necromancer Yearling Nice Answer Revival Custodian Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 41317,403962,912310,NULL,NULL,NULL,0,NULL,NULL 41318,17944,629189,NULL,NULL,NULL,0,NULL,NULL 41319,447794,47053,NULL,NULL,NULL,0,NULL,NULL 41320,466608,649234,NULL,NULL,,0,, 41321,35526,1189110,NULL,NULL,NULL,0,NULL,NULL 41322,1103738,456445,NULL,NULL,NULL,0,NULL,NULL 41323,75995,90042,Popular Question Popular Question Popular Question Yearling Popular Question Caucus Constituent Popular Question Notable Question Yearling Notable Question Notable Question Caucus Constituent Famous Question Documentation User Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41324,742748,90042,Popular Question Popular Question Popular Question Yearling Popular Question Caucus Constituent Popular Question Notable Question Yearling Notable Question Notable Question Caucus Constituent Famous Question Documentation User Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41325,2449,194538,NULL,NULL,NULL,0,NULL,NULL 41326,50185,298054,Yearling Nice Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Necromancer Guru Nice Answer Enlightened Peer Pressure Caucus Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Announcer Caucus Good Answer Good Answer Good Answer Documentation User Necromancer Nice Answer Announcer Great Answer c Guru Caucus Yearling Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Good Answer,NULL,pIn recent versions of Git you can add multiple codepushurl codes for given remote Use the following to add two codepushurl codes to your codeorigin code ppre codegit remote set url add push origin git original repo gitgit remote set url add push origin git another repo git code prepSo when you push to codeorigin code it will push to both repositories pp strongUPDATE strong Git and and possibly other versions seem to have bug that causes code add code to replace the original URL the first time you use it so you need to re add the original URL using the same command Doing codegit remote code should reveal the current URLs for each remote pp strongUPDATE strong Junio Hamano the Git maintainer explained it how it was designed Doing codegit remote set url add push lt remote name gt lt url gt code adds codepushurl code for given remote which strongoverrides strong the default URL for pushes However you may add multiple codepushurl codes for given remote which then allows you to push to multiple remotes using single codegit push code You can verify this behavior below ppre code git clone git original repo git git remote vorigin git original repo git fetch origin git original repo git push git config grep remote remote origin url git original repo gitremote origin fetch refs heads refs remotes origin code prepNow if you want to push to two or more repositories using single command you may create new remote named codeall code as suggested by href https stackoverflow com users 26235 adam nelson Nelson in comments or keep using the codeorigin code though the latter name is less descriptive for this purpose If you still want to use codeorigin code skip the following step and use codeorigin code instead of codeall code in all other steps ppSo let add new remote called codeall code that we ll reference later when pushing to multiple repositories ppre code git remote add all git original repo git git remote vall git original repo git fetch lt ADDEDall git original repo git push lt ADDEDorigin git original repo git fetch origin git original repo git push git config grep remote all remote all url git original repo git lt ADDEDremote all fetch refs heads refs remotes all lt ADDED code prepThen let add codepushurl code to the codeall code remote pointing to another repository ppre code git remote set url add push all git another repo git git remote vall git original repo git fetch all git another repo git push lt CHANGEDorigin git original repo git fetch origin git original repo git push git config grep remote all remote all url git original repo gitremote all fetch refs heads refs remotes all remote all pushurl git another repo git lt ADDED code prepHere codegit remote code shows the new codepushurl code for push so if you do codegit push all master code it will push the codemaster code branch to codegit another repo git code only This shows how codepushurl code overrides the default url remote all url ppNow let add another codepushurl code pointing to the original repository ppre code git remote set url add push all git original repo git git remote vall git original repo git fetch all git another repo git push all git original repo git push lt ADDEDorigin git original repo git fetch origin git original repo git push git config grep remote all remote all url git original repo gitremote all fetch refs heads refs remotes all remote all pushurl git another repo gitremote all pushurl git original repo git lt ADDED code prepYou see both codepushurl codes we added are kept Now single codegit push all master code will push the codemaster code branch to both codegit another repo git code and codegit original repo git code Sure see http stackoverflow com 35456245 298054 Let me know if it doesn work,0,NULL,NULL 41327,1286898,726751,Commentator Teacher Nice Question,NULL,NULL,0,NULL,NULL 41328,301958,480027,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 41329,715575,1139414,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41330,198053,808994,NULL,NULL,NULL,0,NULL,NULL 41331,3361688,678579,NULL,NULL,NULL,0,NULL,NULL 41332,3361689,678579,NULL,NULL,NULL,0,NULL,NULL 41333,860694,1320873,NULL,NULL,NULL,0,NULL,NULL 41334,285660,685293,NULL,NULL,NULL,0,NULL,NULL 41335,899006,926317,NULL,NULL,NULL,0,NULL,NULL 41336,70127,315207,NULL,NULL,NULL,0,NULL,NULL 41337,140314,28340,Yearling Popular Question,NULL,NULL,0,NULL,NULL 41338,87534,736753,NULL,NULL,NULL,0,NULL,NULL 41339,25751,23113,Famous Question Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41340,432498,695421,NULL,NULL,NULL,0,NULL,NULL 41341,367928,818007,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41342,195888,425270,Student Popular Question,NULL,NULL,0,NULL,NULL 41343,559131,461418,Popular Question,NULL,NULL,0,NULL,NULL 41344,456712,424283,Notable Question Yearling,NULL,NULL,0,NULL,NULL 41345,386014,728083,Yearling,NULL,NULL,0,NULL,NULL 41346,901031,643268,Tumbleweed Teacher Curious Popular Question Notable Question Notable Question Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 41347,48352,682041,Revival,NULL,NULL,0,NULL,NULL 41348,3343326,575101,Yearling Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 41349,148813,575101,Yearling Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 41350,462126,4258,NULL,NULL,NULL,0,NULL,NULL 41351,462940,744520,Scholar Teacher Supporter Citizen Patrol Commentator Yearling Enthusiast Student Revival Popular Question Yearling Critic Informed Autobiographer Custodian Caucus Constituent Yearling Custodian Suffrage Vox Populi Yearling Custodian Civic Duty Notable Question Yearling Popular Question Nice Question,NULL,Output from TensorFlow py func has unknown rank shape tensorflow pI am trying to create simple neural net in TensorFlow The only tricky part is have custom operation that have implemented with codepy func code When pass the output from codepy func code to codeDense code layer TensorFlow complains that the rank should be known The specific error is ppre codeValueError Inputs to Dense should have known rank code prepI don know how to preserve the shape of my data when pass it through codepy func code My question is how do get the correct shape have simple example below to illustrate the problem ppre codedef my func return np sinh astype float32 inp tf convert to tensor np arange tf py func my func inp tf float32 False with tf Session as sess with sess as default print inp shape print inp eval print shape print eval code prepThe output from this snippet is ppre code lt unknown gt 17520118 62686038 10 01787472 27 28991699 code prepWhy is codey shape code code lt unknown gt code want the shape to be code code the same as codeinp code Thanks Maybe it been while since asked but found that question which the author answered himself remember his solution not working for me which is why wrote my question,1,Output from TensorFlow py func has unknown rank shape tensorflow pI am trying to create simple neural net in TensorFlow The only tricky part is have custom operation that have implemented with codepy func code When pass the output from codepy func code to codeDense code layer TensorFlow complains that the rank should be known The specific error is ppre codeValueError Inputs to Dense should have known rank code prepI don know how to preserve the shape of my data when pass it through codepy func code My question is how do get the correct shape have simple example below to illustrate the problem ppre codedef my func return np sinh astype float32 inp tf convert to tensor np arange tf py func my func inp tf float32 False with tf Session as sess with sess as default print inp shape print inp eval print shape print eval code prepThe output from this snippet is ppre code lt unknown gt 17520118 62686038 10 01787472 27 28991699 code prepWhy is codey shape code code lt unknown gt code want the shape to be code code the same as codeinp code Thanks,NULL 41352,1009974,953066,NULL,NULL,NULL,0,NULL,NULL 41353,69744,518857,NULL,NULL,NULL,0,NULL,NULL 41354,169386,231539,Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41355,458840,554385,NULL,NULL,NULL,0,NULL,NULL 41356,211029,187765,NULL,NULL,NULL,0,NULL,NULL 41357,171623,187765,NULL,NULL,NULL,0,NULL,NULL 41358,526320,1378540,NULL,NULL,NULL,0,NULL,NULL 41359,122462,106025,Critic,NULL,NULL,0,NULL,NULL 41360,75409,1375214,NULL,NULL,NULL,0,NULL,NULL 41361,241662,1519252,NULL,NULL,NULL,0,NULL,NULL 41362,603142,1133083,NULL,NULL,NULL,0,NULL,NULL 41363,136179,278297,NULL,NULL,NULL,0,NULL,NULL 41364,390999,353184,Informed Autobiographer Suffrage Vox Populi Documentation Pioneer Explainer Mortarboard Custodian Citizen Patrol Talkative Custodian Yearling Famous Question Yearling Necromancer Documentation User Revival Yearling Custodian Organizer Good Question,NULL,NULL,0,NULL,NULL 41365,655920,943354,NULL,NULL,NULL,0,NULL,NULL 41366,625761,943354,NULL,NULL,NULL,0,NULL,NULL 41367,271508,1168541,Yearling Announcer Guru,NULL,NULL,0,NULL,NULL 41368,189032,51819,Yearling Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Notable Question Notable Question Popular Question Famous Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 41369,882812,1151846,NULL,NULL,NULL,0,NULL,NULL 41370,886263,757913,NULL,NULL,NULL,0,NULL,NULL 41371,806420,195310,NULL,NULL,NULL,0,NULL,NULL 41372,168292,1065798,NULL,NULL,NULL,0,NULL,NULL 41373,1171327,1052083,Teacher Scholar Supporter,NULL,NULL,0,NULL,NULL 41374,567745,1205709,NULL,NULL,NULL,0,NULL,NULL 41375,44488,554084,Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 41376,122617,1099213,NULL,NULL,NULL,0,NULL,NULL 41377,844925,289835,Popular Question,NULL,NULL,0,NULL,NULL 41378,107336,1227036,Curious Yearling Necromancer Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 41379,619878,519557,Nice Question Popular Question Yearling Nice Question Popular Question Notable Question Famous Question Notable Question Enthusiast Popular Question Notable Question Yearling Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 41380,397549,1066220,Famous Question Popular Question Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 41381,1061710,852453,NULL,NULL,NULL,0,NULL,NULL 41382,70900,192780,Enthusiast Popular Question Commentator,NULL,NULL,0,NULL,NULL 41383,2622,943619,Autobiographer Tag Editor Announcer Custodian Yearling Notable Question Notable Question Revival Nice Question Yearling Notable Question Guru Good Question Taxonomist Yearling Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 41384,178388,1098259,NULL,NULL,NULL,0,NULL,NULL 41385,431150,154750,Curious,NULL,NULL,0,NULL,NULL 41386,1026972,1057393,Famous Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Census Notable Question Popular Question Famous Question Famous Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 41387,233946,893548,Popular Question Notable Question Notable Question Great Question Yearling Popular Question Popular Question Popular Question Yearling Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 41388,375373,1270299,NULL,NULL,NULL,0,NULL,NULL 41389,54256,572493,NULL,NULL,NULL,0,NULL,NULL 41390,411648,936786,Yearling Custodian Revival Tumbleweed Notable Question Caucus Notable Question Notable Question Announcer Documentation User Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41391,89482,515496,NULL,NULL,NULL,0,NULL,NULL 41392,307718,1189890,NULL,NULL,NULL,0,NULL,NULL 41393,732992,1132633,Popular Question Yearling Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41394,171527,207155,Popular Question,NULL,NULL,0,NULL,NULL 41395,396802,359059,Yearling Citizen Patrol Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 41396,120207,220396,NULL,NULL,NULL,0,NULL,NULL 41397,85303,1181373,NULL,NULL,NULL,0,NULL,NULL 41398,77527,799757,NULL,NULL,NULL,0,NULL,NULL 41399,308430,1423354,NULL,NULL,NULL,0,NULL,NULL 41400,148281,851926,NULL,NULL,NULL,0,NULL,NULL 41401,623564,851926,NULL,NULL,NULL,0,NULL,NULL 41402,275698,281875,NULL,NULL,pYou need to verify the permissions of the codeauthorized keys code file and the folder parent folders in which it is located ppre codechmod 700 sshchmod 600 ssh authorized keys code prepFor more information see href https web archive org web 20140327182105 http www openssh org faq html 14 rel noreferrer this page ppYou may also need to change verify the permissions of your home directory to remove write access for the group and others ppre codechmod go code pre Remove write permission of group saved me Thanks,0,NULL,NULL 41403,17391,105367,Yearling Commentator Curious,NULL,NULL,0,NULL,NULL 41404,759160,690598,NULL,NULL,NULL,0,NULL,NULL 41405,77789,1115316,Necromancer Critic Popular Question Yearling Explainer Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 41406,29509,287374,Informed Editor Documentation User,NULL,NULL,0,NULL,NULL 41407,20184,1453569,NULL,NULL,NULL,0,NULL,NULL 41408,8966,160378,Nice Answer Notable Question Guru Great Answer Nice Answer Enlightened Announcer Good Answer Good Answer Good Answer Great Answer Guru Guru Yearling Nice Answer Enlightened Announcer Guru Guru Guru Guru Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Guru Good Answer Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 41409,170944,382520,Nice Answer Enlightened Good Answer Good Answer Yearling Great Answer Yearling ruby Documentation User Caucus Yearling Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41410,340804,120498,Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41411,251799,307489,Popular Question,NULL,NULL,0,NULL,NULL 41412,1018698,1128046,Popular Question,NULL,NULL,0,NULL,NULL 41413,165295,316343,Self-Learner Stellar Question Nice Answer Enlightened Yearling Nice Answer Caucus Constituent Guru Great Question Yearling Popular Question asp.net-mvc asp.net-mvc-3 Announcer Strunk & White Nice Question Good Answer Good Answer Caucus Constituent Yearling Nice Question Nice Answer sql-server,NULL,NULL,0,NULL,NULL 41414,182706,1105125,NULL,NULL,NULL,0,NULL,NULL 41415,227686,1230259,NULL,NULL,NULL,0,NULL,NULL 41416,1037710,250991,Popular Question Yearling Popular Question Popular Question Caucus Yearling Curious Notable Question Yearling,NULL,NULL,0,NULL,NULL 41417,20580,744630,NULL,NULL,NULL,0,NULL,NULL 41418,603784,705294,NULL,NULL,NULL,0,NULL,NULL 41419,3690120,705294,NULL,NULL,NULL,0,NULL,NULL 41420,2781748,705294,NULL,NULL,NULL,0,NULL,NULL 41421,285676,1529867,NULL,NULL,NULL,0,NULL,NULL 41422,248205,791154,Civic Duty Yearling Custodian Famous Question Popular Question Caucus Constituent Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 41423,539394,848249,Notable Question jquery Yearling Notable Question Notable Question Announcer Nice Answer Popular Question Revival Yearling Nice Answer Enlightened Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 41424,169281,636481,NULL,NULL,NULL,0,NULL,NULL 41425,383341,1460867,NULL,NULL,NULL,0,NULL,NULL 41426,134921,92795,Nice Answer Popular Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 41427,300680,1130040,NULL,NULL,NULL,0,NULL,NULL 41428,126421,1544282,Good Question Famous Question,NULL,NULL,0,NULL,NULL 41429,144038,613888,Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 41430,42229,524236,Yearling Guru Yearling Yearling c# Yearling,NULL,NULL,0,NULL,NULL 41431,212509,1443968,NULL,NULL,NULL,0,NULL,NULL 41432,147747,782803,NULL,NULL,NULL,0,NULL,NULL 41433,305001,911557,Necromancer Popular Question Yearling Nice Answer Yearling Popular Question Good Answer Critic Yearling,NULL,NULL,0,NULL,NULL 41434,515704,328881,Popular Question Curious,NULL,NULL,0,NULL,NULL 41435,693586,615315,Notable Question Popular Question Yearling Famous Question Great Question Famous Question Popular Question Inquisitive Popular Question Popular Question Famous Question Notable Question Yearling Announcer Famous Question Nice Answer Yearling Stellar Question Notable Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 41436,238506,247756,NULL,NULL,NULL,0,NULL,NULL 41437,1375723,214477,Notable Question Notable Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41438,171422,461518,NULL,NULL,NULL,0,NULL,NULL 41439,101419,742778,NULL,NULL,NULL,0,NULL,NULL 41440,628116,726621,Yearling Guru html Good Answer Popular Question Yearling Guru Nice Answer Enlightened jquery Popular Question Yearling Great Answer Excavator,NULL,NULL,0,NULL,NULL 41441,93688,859938,NULL,NULL,NULL,0,NULL,NULL 41442,769294,1027495,Famous Question Supporter Curious Nice Question Popular Question,NULL,NULL,0,NULL,NULL 41443,33781,606486,NULL,NULL,NULL,0,NULL,NULL 41444,161811,43015,Yearling Good Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 41445,6279605,996067,NULL,NULL,NULL,0,NULL,NULL 41446,7657,206590,Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 41447,76563,11451,Nice Answer Custodian Necromancer Yearling Excavator Announcer Peer Pressure Popular Question Yearling Necromancer Benefactor Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 41448,1619871,799280,NULL,NULL,NULL,0,NULL,NULL 41449,94521,732135,NULL,NULL,NULL,0,NULL,NULL 41450,25551,1153167,NULL,NULL,NULL,0,NULL,NULL 41451,667136,1311304,NULL,NULL,NULL,0,NULL,NULL 41452,2656,979120,Custodian Citizen Patrol Yearling Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 41453,1181676,979120,Custodian Citizen Patrol Yearling Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 41454,568444,1099808,NULL,NULL,NULL,0,NULL,NULL 41455,107163,935323,Famous Question Caucus Revival Revival Caucus Notable Question Census Yearling,NULL,NULL,0,NULL,NULL 41456,4854779,782422,NULL,NULL,NULL,0,NULL,NULL 41457,238617,772259,NULL,NULL,NULL,0,NULL,NULL 41458,467948,991988,NULL,NULL,NULL,0,NULL,NULL 41459,82194,854231,Yearling,NULL,NULL,0,NULL,NULL 41460,61112,260855,NULL,NULL,NULL,0,NULL,NULL 41461,440429,869280,NULL,NULL,NULL,0,NULL,NULL 41462,2460363,869280,NULL,NULL,NULL,0,NULL,NULL 41463,2036153,869280,NULL,NULL,NULL,0,NULL,NULL 41464,266199,1026231,NULL,NULL,NULL,0,NULL,NULL 41465,222294,486620,Notable Question Necromancer .htaccess Necromancer Nice Answer Guru Guru Nice Answer Yearling Caucus Popular Question mod-rewrite Notable Question Census Nice Answer Nice Question Notable Question Famous Question Self-Learner Great Answer Yearling Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41466,395712,552572,NULL,NULL,NULL,0,NULL,NULL 41467,167942,471878,Informed Editor Student Teacher Supporter,NULL,NULL,0,NULL,NULL 41468,142716,1449142,NULL,NULL,NULL,0,NULL,NULL 41469,364356,664971,Popular Question Student,NULL,NULL,0,NULL,NULL 41470,116121,1160567,Curious,NULL,NULL,0,NULL,NULL 41471,237248,27929,Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling Good Answer Yearling Good Answer Notable Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 41472,430638,687450,NULL,NULL,NULL,0,NULL,NULL 41473,316803,1421268,NULL,NULL,NULL,0,NULL,NULL 41474,158527,862207,NULL,NULL,NULL,0,NULL,NULL 41475,158534,862207,NULL,NULL,NULL,0,NULL,NULL 41476,1047998,732539,Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Peer Pressure Notable Question Popular Question Great Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question Nice Question Popular Question Notable Question Good Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Famous Question Stellar Question,NULL,NULL,0,NULL,NULL 41477,134145,732539,Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Peer Pressure Notable Question Popular Question Great Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question Nice Question Popular Question Notable Question Good Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Famous Question Stellar Question,NULL,NULL,0,NULL,NULL 41478,285343,1010021,NULL,NULL,NULL,0,NULL,NULL 41479,201399,1248781,Good Question Supporter Editor Critic Yearling,NULL,NULL,0,NULL,NULL 41480,80124,1291340,NULL,NULL,NULL,0,NULL,NULL 41481,194346,477330,Famous Question Notable Question Popular Question Nice Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 41482,441804,74375,Informed Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 41483,299697,564246,Enthusiast Yearling,NULL,,0,, 41484,669444,348430,NULL,NULL,NULL,0,NULL,NULL 41485,2317989,670585,NULL,NULL,NULL,0,NULL,NULL 41486,93908,670585,NULL,NULL,NULL,0,NULL,NULL 41487,7744478,670585,NULL,NULL,NULL,0,NULL,NULL 41488,818438,540965,Popular Question,NULL,NULL,0,NULL,NULL 41489,5938386,839982,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41490,554922,32113,Notable Question Yearling,NULL,NULL,0,NULL,NULL 41491,17146,1090095,NULL,NULL,NULL,0,NULL,NULL 41492,449565,743978,NULL,NULL,NULL,0,NULL,NULL 41493,27589,274473,Notable Question Nice Question Popular Question Yearling Popular Question Nice Answer Popular Question Good Answer Famous Question Nice Answer Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Necromancer Famous Question Notable Question Good Answer Famous Question Good Question Nice Answer Yearling Famous Question Famous Question Good Question Good Question Famous Question Nice Question Popular Question Notable Question Nice Question Notable Question Nice Question Good Question Popular Question Yearling Nice Question Popular Question Notable Question Notable Question Popular Question Famous Question Favorite Question Good Question Popular Question Custodian Custodian Custodian Custodian Popular Question Custodian Stellar Question,NULL,NULL,0,NULL,NULL 41494,89475,361160,NULL,NULL,NULL,0,NULL,NULL 41495,218631,1076609,NULL,NULL,NULL,0,NULL,NULL 41496,33795,294239,Favorite Question Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 41497,304168,1463507,Nice Answer Enlightened python Nice Answer Great Answer Yearling Guru Nice Answer Announcer Popular Question Nice Answer Good Answer Nice Answer Enlightened Announcer Yearling Good Answer Nice Answer Nice Answer Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 41498,280092,8342,Yearling Yearling Documentation User Great Answer Good Answer Proofreader Excavator Yearling,NULL,NULL,0,NULL,NULL 41499,9127051,1278519,Commentator Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41500,900225,256815,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 41501,67694,319650,Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Yearling Famous Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 41502,255635,1006253,NULL,NULL,NULL,0,NULL,NULL 41503,1374790,353528,Good Question Nice Answer Commentator Yearling Popular Question Notable Question Nice Question Notable Question Good Answer Notable Question Yearling Famous Question Good Question Yearling Guru Critic Yearling Yearling Favorite Question Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 41504,190009,715220,NULL,NULL,NULL,0,NULL,NULL 41505,336738,615051,NULL,NULL,NULL,0,NULL,NULL 41506,50932,1178074,Yearling Popular Question Popular Question Nice Answer Yearling Popular Question Yearling Nice Question Good Answer,NULL,NULL,0,NULL,NULL 41507,115252,900287,NULL,NULL,NULL,0,NULL,NULL 41508,336668,17122,Good Answer Yearling Census Caucus Constituent Yearling Census Caucus Yearling,NULL,NULL,0,NULL,NULL 41509,132581,269891,Notable Question Announcer,NULL,NULL,0,NULL,NULL 41510,1008622,181999,Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 41511,150947,358472,NULL,NULL,NULL,0,NULL,NULL 41512,367236,838974,Teacher Famous Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 41513,231999,472407,NULL,NULL,NULL,0,NULL,NULL 41514,351873,1423456,Nice Answer Yearling Census,NULL,NULL,0,NULL,NULL 41515,1512100,973718,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41516,395727,1095202,Supporter Excavator Notable Question Commentator Critic,NULL,NULL,0,NULL,NULL 41517,209462,562338,Popular Question,NULL,NULL,0,NULL,NULL 41518,34920,1050561,Student Necromancer,NULL,NULL,0,NULL,NULL 41519,5536729,1446919,Teacher Informed Supporter Autobiographer Suffrage Vox Populi Editor Student Critic Yearling Commentator Yearling Custodian Citizen Patrol Civic Duty Caucus Yearling,NULL,NULL,0,NULL,NULL 41520,460077,269614,Necromancer Yearling Necromancer Nice Answer Yearling Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 41521,209166,793522,Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Notable Question Guru Popular Question Nice Answer Great Answer java Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Populist Nice Answer android-activity Documentation User Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 41522,523534,1136971,NULL,NULL,NULL,0,NULL,NULL 41523,1108212,549687,NULL,NULL,NULL,0,NULL,NULL 41524,167708,335529,Revival Supporter,NULL,NULL,0,NULL,NULL 41525,23559,523217,Yearling Nice Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 41526,117665,441567,NULL,NULL,NULL,0,NULL,NULL 41527,171477,575817,NULL,NULL,NULL,0,NULL,NULL 41528,564399,1522816,Guru Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 41529,1376495,1053886,NULL,NULL,NULL,0,NULL,NULL 41530,556612,235273,NULL,NULL,NULL,0,NULL,NULL 41531,88276,1405880,NULL,NULL,NULL,0,NULL,NULL 41532,181237,1336363,NULL,NULL,NULL,0,NULL,NULL 41533,18621,208098,NULL,NULL,NULL,0,NULL,NULL 41534,80819,1036478,NULL,NULL,NULL,0,NULL,NULL 41535,120641,556678,Famous Question Excavator Popular Question Nice Answer Nice Answer Popular Question Nice Answer Proofreader Informed Popular Question Necromancer Revival Good Answer Popular Question Nice Answer Caucus Yearling node.js Revival Custodian Citizen Patrol Revival Announcer Caucus Famous Question Revival Notable Question Revival Necromancer Yearling Custodian Famous Question Nice Answer Necromancer Good Question Famous Question Necromancer Nice Question Great Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 41536,395611,1128889,Promoter Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 41537,5947553,1128889,Promoter Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 41538,259005,16642,Notable Question Necromancer Popular Question Popular Question Popular Question Nice Question Good Question Nice Answer Famous Question Popular Question Yearling Good Question Popular Question Famous Question Nice Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Caucus Popular Question Popular Question Notable Question Yearling Custodian Custodian Custodian Popular Question Famous Question Notable Question Popular Question Popular Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 41539,1141957,275002,Good Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Cleanup Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Announcer Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Announcer Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Nice Question Self-Learner Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41540,435087,1455714,NULL,NULL,NULL,0,NULL,NULL 41541,98706,846394,Informed,NULL,NULL,0,NULL,NULL 41542,175911,117351,NULL,NULL,NULL,0,NULL,NULL 41543,302679,239121,NULL,NULL,NULL,0,NULL,NULL 41544,251860,485278,NULL,NULL,NULL,0,NULL,NULL 41545,159099,22371,Notable Question Yearling Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 41546,7240,1251556,NULL,NULL,NULL,0,NULL,NULL 41547,46927,114438,NULL,NULL,NULL,0,NULL,NULL 41548,387577,966758,Popular Question,NULL,NULL,0,NULL,NULL 41549,71957,1081633,NULL,NULL,NULL,0,NULL,NULL 41550,1499512,1261336,Teacher Necromancer,NULL,NULL,0,NULL,NULL 41551,122889,928326,NULL,NULL,NULL,0,NULL,NULL 41552,209657,921793,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41553,59184,741646,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 41554,689165,788974,Nice Answer,NULL,NULL,0,NULL,NULL 41555,77247,971708,NULL,NULL,NULL,0,NULL,NULL 41556,566515,407146,NULL,NULL,NULL,0,NULL,NULL 41557,1829269,729252,NULL,NULL,NULL,0,NULL,NULL 41558,15062,729252,NULL,NULL,NULL,0,NULL,NULL 41559,223448,311262,NULL,NULL,NULL,0,NULL,NULL 41560,846,591301,NULL,NULL,NULL,0,NULL,NULL 41561,250295,2963,Good Question Yearling Notable Question Nice Answer Nice Answer Yearling Famous Question Favorite Question Custodian Great Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41562,10676,910755,Autobiographer Custodian Notable Question Popular Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 41563,123268,1433547,NULL,NULL,NULL,0,NULL,NULL 41564,293771,1496459,Popular Question Revival Revival Notable Question,NULL,NULL,0,NULL,NULL 41565,301614,91927,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41566,172866,308647,Revival,NULL,NULL,0,NULL,NULL 41567,326572,234073,Yearling Nice Answer Popular Question Popular Question Notable Question Notable Question Nice Question Caucus Popular Question Revival Caucus Civic Duty Custodian Yearling Popular Question Popular Question Popular Question Popular Question Inquisitive Nice Question Revival,NULL,NULL,0,NULL,NULL 41568,42602,948532,NULL,NULL,NULL,0,NULL,NULL 41569,78666,419452,NULL,NULL,NULL,0,NULL,NULL 41570,244531,274946,NULL,NULL,NULL,0,NULL,NULL 41571,94893,1425725,NULL,NULL,NULL,0,NULL,NULL 41572,201097,956003,Informed,NULL,NULL,0,NULL,NULL 41573,1048538,1222571,Student Commentator,NULL,NULL,0,NULL,NULL 41574,1068459,614301,NULL,NULL,NULL,0,NULL,NULL 41575,148829,347072,Yearling Caucus Famous Question Nice Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41576,151767,1357978,Yearling Good Answer Good Answer Caucus Guru Custodian Yearling Guru Nice Answer Enlightened Yearling javascript,NULL,NULL,0,NULL,NULL 41577,1517013,1191571,NULL,NULL,NULL,0,NULL,NULL 41578,971954,1044266,NULL,NULL,NULL,0,NULL,NULL 41579,528691,600435,NULL,NULL,NULL,0,NULL,NULL 41580,134665,221900,NULL,NULL,NULL,0,NULL,NULL 41581,555926,678028,NULL,NULL,NULL,0,NULL,NULL 41582,11815,387939,NULL,NULL,NULL,0,NULL,NULL 41583,207620,844532,NULL,NULL,NULL,0,NULL,NULL 41584,3620,816595,NULL,NULL,NULL,0,NULL,NULL 41585,1137828,600535,Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Good Question Notable Question Census Popular Question Popular Question Good Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 41586,304143,542660,NULL,NULL,NULL,0,NULL,NULL 41587,379365,1393244,NULL,NULL,NULL,0,NULL,NULL 41588,451895,540016,NULL,NULL,NULL,0,NULL,NULL 41589,143315,320793,NULL,NULL,NULL,0,NULL,NULL 41590,206143,903483,Supporter,NULL,NULL,0,NULL,NULL 41591,329426,815093,Famous Question Yearling Curious Civic Duty,NULL,NULL,0,NULL,NULL 41592,626528,768849,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41593,865944,809929,NULL,NULL,NULL,0,NULL,NULL 41594,6454338,277751,Student Editor Scholar,NULL,NULL,0,NULL,NULL 41595,758512,277751,Student Editor Scholar,NULL,NULL,0,NULL,NULL 41596,143308,203476,Yearling Good Answer Tumbleweed Yearling Yearling,NULL,NULL,0,NULL,NULL 41597,449546,773855,NULL,NULL,NULL,0,NULL,NULL 41598,330875,571143,Popular Question Popular Question Popular Question Nice Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 41599,1521615,1037923,NULL,NULL,NULL,0,NULL,NULL 41600,1349798,863239,NULL,NULL,NULL,0,NULL,NULL 41601,267094,1379348,NULL,NULL,NULL,0,NULL,NULL 41602,311864,453056,Notable Question Popular Question Notable Question Nice Answer Enlightened Yearling Caucus Popular Question Notable Question Census Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 41603,2028982,659774,Yearling Yearling Nice Answer Nice Question Yearling Great Answer Famous Question,NULL,NULL,0,NULL,NULL 41604,226423,659774,Yearling Yearling Nice Answer Nice Question Yearling Great Answer Famous Question,NULL,NULL,0,NULL,NULL 41605,1015560,827632,Scholar Necromancer Yearling Nice Answer Nice Answer Yearling Civic Duty Popular Question Caucus Necromancer Popular Question Necromancer Yearling Caucus Constituent Documentation User Custodian Necromancer Good Answer Citizen Patrol Nice Answer Custodian Notable Question Census Caucus Constituent Yearling Necromancer,NULL,NULL,0,NULL,NULL 41606,882479,187668,Custodian Custodian Informed Autobiographer Organizer Citizen Patrol Yearling Yearling Yearling Necromancer Necromancer Yearling Nice Answer Necromancer Good Answer Nice Answer Necromancer Documentation User Yearling Nice Answer Good Answer Popular Question Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41607,213651,786062,Good Question Revival Nice Question Good Answer Famous Question Yearling Notable Question Good Question Inquisitive Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Good Question Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41608,87028,899777,NULL,NULL,NULL,0,NULL,NULL 41609,1043646,103842,Nice Answer Nice Answer Nice Question Popular Question Good Answer Good Answer Yearling Nice Answer Enlightened Nice Question Famous Question Nice Question Great Answer Nice Answer Famous Question Good Answer Nice Answer Promoter Nice Answer Enlightened Notable Question Yearling Nice Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Question Notable Question Nice Question Announcer Nice Answer Necromancer Nice Answer Necromancer Yearling Guru Nice Answer Great Answer Notable Question Good Answer Good Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 41610,1735639,803951,NULL,NULL,NULL,0,NULL,NULL 41611,83888,803951,NULL,NULL,NULL,0,NULL,NULL 41612,167772,1286792,Tumbleweed,NULL,NULL,0,NULL,NULL 41613,248024,65171,Yearling Citizen Patrol Curious Documentation User,NULL,NULL,0,NULL,NULL 41614,597429,572917,NULL,NULL,NULL,0,NULL,NULL 41615,640057,30368,Excavator Necromancer Necromancer Yearling Tumbleweed Caucus Civic Duty Good Answer,NULL,NULL,0,NULL,NULL 41616,1253207,968404,NULL,NULL,NULL,0,NULL,NULL 41617,2234156,759537,Yearling Necromancer Yearling Caucus Popular Question Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 41618,521329,759537,Yearling Necromancer Yearling Caucus Popular Question Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 41619,142499,1366941,NULL,NULL,NULL,0,NULL,NULL 41620,12521,573460,NULL,NULL,NULL,0,NULL,NULL 41621,135869,536360,Yearling c++ Yearling,NULL,NULL,0,NULL,NULL 41622,523804,290359,Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 41623,140955,1460849,Popular Question Nice Answer Yearling Yearling Self-Learner Notable Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 41624,29646,720767,NULL,NULL,NULL,0,NULL,NULL 41625,219365,1133044,Teacher,NULL,NULL,0,NULL,NULL 41626,205167,1098762,Caucus Yearling Necromancer Caucus Census Caucus Constituent,NULL,NULL,0,NULL,NULL 41627,83133,229949,Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Talkative Notable Question Yearling Great Answer Notable Question Custodian Popular Question Caucus Nice Answer Yearling Necromancer Caucus Good Answer Nice Question Announcer Nice Question c# Popular Question,NULL,NULL,0,NULL,NULL 41628,177628,881558,Popular Question Popular Question Good Question Yearling Famous Question Popular Question Good Answer Notable Question Popular Question Notable Question Tumbleweed Yearling Revival Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41629,132964,12547,Nice Answer Enlightened Yearling Good Answer Caucus Constituent Famous Question Nice Answer Enlightened Nice Question Yearling Custodian Popular Question Notable Question Census Good Answer Announcer Caucus Constituent Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 41630,187969,349763,NULL,NULL,NULL,0,NULL,NULL 41631,567141,443337,Yearling Good Answer Supporter Revival,NULL,NULL,0,NULL,NULL 41632,605934,531988,Revival Necromancer Yearling Nice Answer Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41633,205759,571111,Self-Learner Famous Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41634,579675,1151624,Nice Answer Yearling Excavator Scholar Necromancer Commentator Student Nice Answer Yearling Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 41635,105731,438062,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 41636,423901,908842,Necromancer Enlightened Nice Answer Tumbleweed Yearling Populist Good Answer Caucus Revival Nice Answer Enlightened Yearling Nice Answer Nice Answer javascript Necromancer Yearling,NULL,NULL,0,NULL,NULL 41637,139564,871529,NULL,NULL,NULL,0,NULL,NULL 41638,497550,1111677,NULL,NULL,NULL,0,NULL,NULL 41639,49250,700232,Yearling Good Answer java Good Answer Popular Question Yearling Curious Nice Answer Enlightened Popular Question Popular Question Yearling Custodian Guru,NULL,NULL,0,NULL,NULL 41640,268992,1134214,Popular Question Yearling Notable Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 41641,1549780,1036879,Popular Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 41642,1094169,1418464,NULL,NULL,NULL,0,NULL,NULL 41643,394874,626029,NULL,NULL,NULL,0,NULL,NULL 41644,384260,453074,NULL,NULL,NULL,0,NULL,NULL 41645,1104826,607377,NULL,NULL,NULL,0,NULL,NULL 41646,294706,1096745,NULL,NULL,NULL,0,NULL,NULL 41647,367632,559750,Informed,NULL,NULL,0,NULL,NULL 41648,470921,877428,NULL,NULL,NULL,0,NULL,NULL 41649,74130,351638,NULL,NULL,NULL,0,NULL,NULL 41650,4496471,1126002,NULL,NULL,NULL,0,NULL,NULL 41651,840192,1126002,NULL,NULL,NULL,0,NULL,NULL 41652,538653,665610,NULL,NULL,NULL,0,NULL,NULL 41653,208808,1339397,NULL,NULL,NULL,0,NULL,NULL 41654,41916,1120647,NULL,NULL,NULL,0,NULL,NULL 41655,221201,139870,Nice Answer Yearling Popular Question Caucus Nice Answer Good Answer Notable Question,NULL,NULL,0,NULL,NULL 41656,31959,1120714,NULL,NULL,NULL,0,NULL,NULL 41657,13755,591660,Supporter,NULL,NULL,0,NULL,NULL 41658,623768,1268108,NULL,NULL,NULL,0,NULL,NULL 41659,326216,289483,Commentator Caucus Yearling Caucus Yearling Caucus Excavator,NULL,pThe loop ppre codefor auto AVLTree code preptries to make copy of each element of the range in codeAVLTree begin code and codeAVLTree end code Of course codestd unique ptr lt gt code can be copied there is only one codestd unique ptr lt gt code to each pointer It wouldn really copy anything but rather emsteal em it That would be bad ppYou want to use references instead ppre codefor auto amp AVLTree code prep or if you don modify them ppre codefor auto const amp AVLTree code pre What about for auto AVLTree do something,0,NULL,NULL 41660,64524,277527,Yearling Popular Question Civic Duty Famous Question Informed Popular Question Caucus Constituent Yearling Good Question Nice Answer Notable Question Documentation User Custodian Popular Question Census Yearling Caucus Constituent Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 41661,1176855,1142197,NULL,NULL,NULL,0,NULL,NULL 41662,149225,1174959,Popular Question Popular Question Yearling Commentator Caucus Notable Question Popular Question Curious,NULL,NULL,0,NULL,NULL 41663,68406,154206,Yearling Teacher Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 41664,221440,1284873,NULL,NULL,NULL,0,NULL,NULL 41665,185127,1132651,NULL,NULL,NULL,0,NULL,NULL 41666,29099,1369031,NULL,NULL,NULL,0,NULL,NULL 41667,155684,744682,Autobiographer Student,NULL,NULL,0,NULL,NULL 41668,276461,1231596,NULL,NULL,NULL,0,NULL,NULL 41669,43281,643825,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 41670,1218547,1529014,NULL,NULL,NULL,0,NULL,NULL 41671,685026,829609,NULL,NULL,NULL,0,NULL,NULL 41672,60676,886330,NULL,NULL,NULL,0,NULL,NULL 41673,1517506,1359076,Teacher,NULL,NULL,0,NULL,NULL 41674,5811627,1359076,Teacher,NULL,NULL,0,NULL,NULL 41675,17570,805649,Yearling Yearling Announcer Supporter Announcer Yearling,NULL,NULL,0,NULL,NULL 41676,886000,1199440,NULL,NULL,NULL,0,NULL,NULL 41677,370867,1171314,NULL,NULL,NULL,0,NULL,NULL 41678,3277053,1427708,Yearling,NULL,NULL,0,NULL,NULL 41679,447911,1427708,Yearling,NULL,NULL,0,NULL,NULL 41680,697307,1539024,Critic Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41681,356069,678864,NULL,NULL,NULL,0,NULL,NULL 41682,136801,1058202,NULL,NULL,NULL,0,NULL,NULL 41683,194481,244089,Yearling Civic Duty Custodian Student Revival Necromancer Yearling Nice Answer Good Answer Enlightened Documentation User Guru Informed Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41684,4173010,788368,Popular Question Yearling Critic Notable Question Curious,NULL,NULL,0,NULL,NULL 41685,360403,166921,Necromancer Nice Answer Good Answer Revival Nice Answer Enlightened Necromancer Good Answer Nice Answer Nice Answer Good Answer Good Answer Necromancer Revival Necromancer Yearling Guru Caucus Nice Answer Revival Good Answer Guru Great Answer Nice Answer Good Answer Good Answer Yearling Guru Custodian Necromancer Yearling Nice Answer Populist Great Answer Popular Question,NULL,pI came here looking for way to universally escape code lt script gt code inside the JavaScript code ppAfter bit of research figured that if you are trying to escape code lt script gt code in JavaScript code so it can be safely embedded in html between code lt script gt code and code lt script gt code tags you should replace code lt script code with code lt scr ipt code or code lt scri pt code It safer to do because if you replace it with code lt script code you might break JavaScript code like this codevar lt script test script code ppBe careful not to look for code lt script gt code but rather code lt script code because code lt script asdasdas gt code will end your script just as well as code lt script gt code does ppSorry it doesn help Ben Alpert in any way Accepted answer is absolutely correct that you need to know what constructs are legal in language you have inside your code lt script gt lt script gt code to know how to escape code lt script gt code occurrence without braking the code script is not treated as end of javascript code If you try to use it instead of script to finish your code you ll get syntax error and javascript won run So you don need to replace script in you code with something else just script,0,NULL,NULL 41686,322896,1237901,NULL,NULL,NULL,0,NULL,NULL 41687,7006237,890828,NULL,NULL,NULL,0,NULL,NULL 41688,576366,680238,Yearling Nice Answer Enlightened Good Answer Great Answer Notable Question Caucus Popular Question Nice Answer Enlightened Yearling Good Answer Good Answer Guru Good Answer Nice Question Nice Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41689,30415,15061,Notable Question Good Answer Guru Stellar Question Nice Question Famous Question Yearling Custodian Civic Duty Custodian Proofreader Good Answer Yearling Notable Question Documentation User Nice Answer Enlightened Famous Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 41690,19549,1054289,Caucus Promoter Teacher,NULL,NULL,0,NULL,NULL 41691,2106472,1054289,Caucus Promoter Teacher,NULL,NULL,0,NULL,NULL 41692,676575,976627,Yearling Custodian Popular Question Notable Question Caucus Caucus Constituent Famous Question,NULL,NULL,0,NULL,NULL 41693,645551,1371188,Citizen Patrol Nice Answer Yearling Popular Question Civic Duty Census Yearling Notable Question Popular Question Announcer Documentation User Popular Question Nice Question Popular Question Nice Question Yearling Necromancer Popular Question,NULL,NULL,1,Angular focusing input causes expression has changed after it was changed error angular typescript angular2 directives pIn my Angular application want to have list of inputs Pressing Enter inside one of them would add new input and immediately focus on it This is question that has already been asked on this site and href https stackoverflow com 34573219 1371188 Eric Martinez provided neat answer to it that accomplishes that with custom directive ppHis solution is based on dummy list of integers am having difficulties trying to adapt it to more realistic scenario have forked Eric plunk so you can href https plnkr co edit OZFId78TAhDqmBHOr41Y info rel nofollow noreferrer run the code here but the most important file is this one ppre code our root app componentimport Component Directive Renderer ElementRef from angular2 core class Person name string selector input class MyInput constructor public renderer Renderer public elementRef ElementRef It won work at construction time ngOnInit this renderer invokeElementMethod this elementRef nativeElement focus selector my app providers template lt div ngFor input of inputs gt lt input keydown enter add ngModel input name type text gt lt div gt directives MyInput export class App inputs Person name Alice add var newPerson new Person newPerson name Bob this inputs push newPerson code prepMy array of codeinputs code is now list of codePerson code objects The inputs are bound bidirectionally to the codename code property of codePerson code The code lt input gt code is now wrapped inside code lt div gt code as expect that later will write more markup to display each codePerson code ppAfter making these changes the example works only at the first attempt of pressing Enter new input with text emBob em appears as expected But when then try to press Enter for the second time get an error ppre codeangular2 dev js 23730 Error Expression ngClassUntouched in App has changed after it was checked Previous value true Current value false at ExpressionChangedAfterItHasBeenCheckedException BaseException as constructor angular2 dev js 7587 at new ExpressionChangedAfterItHasBeenCheckedException angular2 dev js 4992 at ChangeDetector App AbstractChangeDetector throwOnChangeError angular2 dev js 9989 at ChangeDetector App detectChangesInRecordsInternal viewFactory App 143 at ChangeDetector App AbstractChangeDetector detectChangesInRecords angular2 dev js 9874 at ChangeDetector App AbstractChangeDetector runDetectChanges angular2 dev js 9857 at ChangeDetector App AbstractChangeDetector detectChangesContentChildren angular2 dev js 9930 at ChangeDetector App AbstractChangeDetector runDetectChanges angular2 dev js 9858 at ChangeDetector HostApp AbstractChangeDetector detectChangesInViewChildren angular2 dev js 9936 at ChangeDetector HostApp AbstractChangeDetector runDetectChanges angular2 dev js 9861 code prepHow can fix that ppI am running the example in Chrome found it easiest to demostrate the problem using Eric Martinez plunks that are based on beta 12 version of Angular2 but my real world application where get the same error is currently using Angular,NULL 41694,175520,688266,Popular Question Notable Question Famous Question Famous Question Popular Question Famous Question Notable Question Popular Question Good Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Nice Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Nice Answer Nice Question Nice Question Notable Question Nice Answer Nice Question Popular Question Notable Question Nice Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Famous Question Yearling Notable Question Famous Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Famous Question Nice Question Necromancer Notable Question Famous Question Notable Question Popular Question Notable Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Popular Question Famous Question Popular Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 41695,165248,1267995,NULL,NULL,NULL,0,NULL,NULL 41696,143208,1070886,NULL,NULL,NULL,0,NULL,NULL 41697,87172,1346333,NULL,NULL,NULL,0,NULL,NULL 41698,52950,756963,Popular Question,NULL,NULL,0,NULL,NULL 41699,25563,109458,Custodian Nice Answer Yearling Self-Learner Announcer Revival Nice Answer Revival Necromancer Good Question Announcer Yearling Announcer Necromancer Good Answer Good Answer Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41700,473114,1359221,Yearling,NULL,NULL,0,NULL,NULL 41701,275165,243654,Notable Question Good Question,NULL,NULL,0,NULL,NULL 41702,346089,1254649,NULL,NULL,NULL,0,NULL,NULL 41703,524,100737,Teacher Supporter,NULL,NULL,0,NULL,NULL 41704,180367,820055,NULL,NULL,NULL,0,NULL,NULL 41705,183390,842113,NULL,NULL,NULL,0,NULL,NULL 41706,2262473,842113,NULL,NULL,NULL,0,NULL,NULL 41707,157130,510679,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41708,195963,451261,NULL,NULL,NULL,0,NULL,NULL 41709,493665,679977,NULL,NULL,NULL,0,NULL,NULL 41710,120211,884373,Notable Question Yearling Yearling Great Answer Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 41711,534006,824558,NULL,NULL,NULL,0,NULL,NULL 41712,298038,898473,Curious Popular Question Notable Question Popular Question Revival Critic Popular Question,NULL,NULL,0,NULL,NULL 41713,156768,1343219,NULL,NULL,NULL,0,NULL,NULL 41714,199226,862609,NULL,NULL,NULL,0,NULL,NULL 41715,591344,1210278,Necromancer Yearling Revival Nice Question Nice Answer Popular Question Notable Question Yearling Nice Question Tumbleweed Documentation User Yearling,NULL,pAs the compiler mentions you can extend existing types in another package You can define your own alias or sub package as follows ppre codetype MyRouter mux Routerfunc MyRouter code prepor by embedding the original router ppre codetype MyRouter struct mux Router func MyRouter amp MyRouter router code pre doing this is required to override functions like String and MarshalJSON,0,NULL,NULL 41716,175132,1381377,NULL,NULL,NULL,0,NULL,NULL 41717,1692496,1232253,Notable Question,NULL,NULL,0,NULL,NULL 41718,28405,130652,Notable Question Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Guru Nice Answer Yearling Good Answer Good Answer Good Answer Announcer Guru Nice Answer Enlightened Good Answer Guru Guru Announcer Good Answer Good Question Nice Answer Nice Answer Enlightened Good Answer Notable Question Electorate Yearling Great Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Famous Question Great Answer,NULL,NULL,0,NULL,NULL 41719,564856,465463,NULL,NULL,NULL,0,NULL,NULL 41720,347435,1520093,NULL,NULL,NULL,0,NULL,NULL 41721,2424,484060,NULL,NULL,NULL,0,NULL,NULL 41722,2895,532420,NULL,NULL,NULL,0,NULL,NULL 41723,494764,278045,Popular Question,NULL,NULL,0,NULL,NULL 41724,138178,599131,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41725,938345,708537,NULL,NULL,NULL,0,NULL,NULL 41726,893768,866989,Popular Question Notable Question Tumbleweed Notable Question Critic Tag Editor Yearling,NULL,NULL,0,NULL,NULL 41727,2682,337902,Notable Question Popular Question Yearling Nice Question Popular Question Famous Question Famous Question Great Answer Yearling Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 41728,1023788,337902,Notable Question Popular Question Yearling Nice Question Popular Question Famous Question Famous Question Great Answer Yearling Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 41729,255577,163832,Announcer Yearling Excavator Famous Question Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 41730,1349970,848454,Popular Question Custodian Custodian Custodian Critic Nice Answer Famous Question Yearling Good Answer Notable Question Popular Question Popular Question Nice Question Notable Question Great Question Famous Question Yearling Necromancer Notable Question Popular Question Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 41731,36151,1105574,Yearling Guru Critic,NULL,NULL,0,NULL,NULL 41732,882675,1152205,NULL,NULL,NULL,0,NULL,NULL 41733,340361,199332,Popular Question Nice Answer Necromancer Informed Civic Duty Census Nice Answer Quorum,NULL,NULL,0,NULL,NULL 41734,264739,928401,NULL,NULL,NULL,0,NULL,NULL 41735,13414,687783,Nice Answer Enlightened Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41736,223216,479052,NULL,NULL,NULL,0,NULL,NULL 41737,346162,856925,Announcer Yearling Citizen Patrol Custodian Nice Answer Announcer Informed Revival Nice Question Good Answer Nice Answer Yearling Necromancer Nice Answer Popular Question Announcer Yearling Necromancer Good Answer Custodian,NULL,NULL,0,NULL,NULL 41738,228445,259383,Necromancer Census Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 41739,1507980,1123726,NULL,NULL,NULL,0,NULL,NULL 41740,139676,377286,Supporter,NULL,NULL,0,NULL,NULL 41741,429303,541054,NULL,NULL,NULL,0,NULL,NULL 41742,7992,310525,Famous Question Notable Question Yearling Notable Question Notable Question Famous Question Nice Question Notable Question Good Question Nice Answer Nice Question Popular Question Yearling Famous Question Nice Question Popular Question Notable Question Popular Question Good Question Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 41743,3086852,640939,Good Question,NULL,NULL,0,NULL,NULL 41744,623659,640939,Good Question,NULL,NULL,0,NULL,NULL 41745,237375,1457827,NULL,NULL,NULL,0,NULL,NULL 41746,155168,104504,Favorite Question Necromancer Nice Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 41747,9132,313702,NULL,NULL,NULL,0,NULL,NULL 41748,646787,581263,Yearling Good Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41749,93867,911793,NULL,NULL,NULL,0,NULL,NULL 41750,420524,810821,Notable Question Popular Question Good Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 41751,233682,1108645,NULL,NULL,NULL,0,NULL,NULL 41752,188113,1060344,Popular Question Nice Answer Enlightened Yearling Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41753,2057908,1060344,Popular Question Nice Answer Enlightened Yearling Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41754,736043,937369,NULL,NULL,NULL,0,NULL,NULL 41755,552972,865281,Notable Question Notable Question Yearling Popular Question Popular Question Nice Question Caucus Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41756,606814,91696,Good Question Famous Question Famous Question Yearling Good Answer Famous Question Notable Question Popular Question Nice Answer Notable Question Good Question Nice Question Notable Question Nice Answer Necromancer Nice Answer Yearling Nice Question Pundit Yearling Famous Question Nice Answer javascript,NULL,NULL,0,NULL,NULL 41757,384610,1083421,NULL,NULL,NULL,0,NULL,NULL 41758,766332,472471,NULL,NULL,NULL,0,NULL,NULL 41759,722398,393517,Revival Yearling Critic,NULL,NULL,0,NULL,NULL 41760,348827,1264961,Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 41761,323447,475951,Curious,NULL,NULL,0,NULL,NULL 41762,61121,733612,Curious Yearling Good Answer Announcer Good Question Favorite Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 41763,212834,2300,NULL,NULL,NULL,0,NULL,NULL 41764,108128,84042,Yearling Caucus Constituent Yearling Great Answer Nice Answer Enlightened Caucus Constituent Nice Answer Good Answer Nice Answer Nice Answer Enlightened Census Caucus Constituent Yearling Good Answer,NULL,NULL,0,NULL,NULL 41765,137784,224109,NULL,NULL,NULL,0,NULL,NULL 41766,1244080,849978,Critic Informed Caucus,NULL,NULL,0,NULL,NULL 41767,420260,475491,Revival Yearling Nice Answer Popular Question Necromancer Nice Question Popular Question Yearling Good Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 41768,1958373,1254697,Tumbleweed,NULL,NULL,0,NULL,NULL 41769,526597,1338514,NULL,NULL,NULL,0,NULL,NULL 41770,219229,11110,Good Question Yearling Popular Question Popular Question Notable Question Caucus Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41771,756236,1105262,NULL,NULL,NULL,0,NULL,NULL 41772,5849838,280454,Notable Question Yearling Stellar Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 41773,2438065,1090344,NULL,NULL,NULL,0,NULL,NULL 41774,861617,1542490,Teacher Supporter Necromancer Nice Answer Yearling Custodian Autobiographer Good Answer Commentator Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 41775,7760055,1542490,Teacher Supporter Necromancer Nice Answer Yearling Custodian Autobiographer Good Answer Commentator Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 41776,227141,887686,NULL,NULL,NULL,0,NULL,NULL 41777,1512465,1326451,NULL,NULL,NULL,0,NULL,NULL 41778,305014,929489,NULL,NULL,NULL,0,NULL,NULL 41779,357816,587243,NULL,NULL,NULL,0,NULL,NULL 41780,94809,221802,Excavator Notable Question Yearling Citizen Patrol Yearling Nice Question Nice Answer Good Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 41781,214367,341552,Nice Answer Nice Question Popular Question Popular Question Yearling Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41782,297432,500278,NULL,NULL,NULL,0,NULL,NULL 41783,174919,1127263,Famous Question Announcer Yearling Nice Question,NULL,NULL,0,NULL,NULL 41784,64297,1251161,NULL,NULL,NULL,0,NULL,NULL 41785,538377,1035630,Nice Answer,NULL,NULL,0,NULL,NULL 41786,852762,1116659,Supporter Nice Answer,NULL,NULL,0,NULL,NULL 41787,34180,95696,Yearling Nice Answer Populist Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 41788,331564,1335986,NULL,NULL,NULL,0,NULL,NULL 41789,32951,999540,Announcer Good Answer Yearling Famous Question Notable Question Good Question Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41790,298330,722173,Revival,NULL,NULL,0,NULL,NULL 41791,1139512,842431,NULL,NULL,NULL,0,NULL,NULL 41792,105378,1151070,NULL,NULL,NULL,0,NULL,NULL 41793,482499,398580,NULL,NULL,NULL,0,NULL,NULL 41794,2707283,941209,NULL,NULL,NULL,0,NULL,NULL 41795,218418,941209,NULL,NULL,NULL,0,NULL,NULL 41796,401466,491112,NULL,NULL,NULL,0,NULL,NULL 41797,75731,803896,Notable Question,NULL,NULL,0,NULL,NULL 41798,255526,196049,NULL,NULL,NULL,0,NULL,NULL 41799,54579,12039,Popular Question Yearling Announcer Caucus Constituent Revival Necromancer Caucus Constituent Yearling Documentation User Popular Question Nice Answer Census Announcer Caucus Constituent Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 41800,1255193,1111809,NULL,NULL,NULL,0,NULL,NULL 41801,40417,221301,Notable Question,NULL,NULL,0,NULL,NULL 41802,28168,66158,Notable Question Nice Question Good Question Yearling Nice Question Popular Question Nice Question Popular Question Famous Question Notable Question Famous Question Famous Question Popular Question Notable Question Notable Question Yearling Famous Question Notable Question Notable Question Nice Answer Famous Question Notable Question Notable Question Popular Question Yearling Great Question Notable Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 41803,115080,209184,Organizer Critic Famous Question Nice Question Popular Question Enthusiast Caucus Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 41804,484606,933336,NULL,NULL,NULL,0,NULL,NULL 41805,13039,1552170,NULL,NULL,NULL,0,NULL,NULL 41806,362565,1187929,NULL,NULL,NULL,0,NULL,NULL 41807,161040,1029876,Revival,NULL,NULL,0,NULL,NULL 41808,48788,301341,Custodian Yearling Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 41809,44275,993506,Necromancer,NULL,NULL,0,NULL,NULL 41810,410450,199243,NULL,NULL,NULL,0,NULL,NULL 41811,99999,256620,NULL,NULL,NULL,0,NULL,NULL 41812,817391,522043,NULL,NULL,NULL,0,NULL,NULL 41813,1931513,1152513,Teacher Supporter,NULL,NULL,0,NULL,NULL 41814,899965,464958,Necromancer Nice Answer Good Answer Popular Question Yearling Nice Answer Necromancer Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 41815,49127,1170587,Popular Question,NULL,NULL,0,NULL,NULL 41816,61087,290379,Notable Question Notable Question Popular Question Revival Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41817,101533,780425,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41818,9378216,780425,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41819,23241,813624,NULL,NULL,NULL,0,NULL,NULL 41820,1004444,1102796,NULL,NULL,NULL,0,NULL,NULL 41821,3182655,463754,NULL,NULL,NULL,0,NULL,NULL 41822,266586,788196,NULL,NULL,NULL,0,NULL,NULL 41823,34089,139585,NULL,NULL,NULL,0,NULL,NULL 41824,670381,945724,NULL,NULL,NULL,0,NULL,NULL 41825,3018991,1080862,Scholar Custodian Autobiographer Supporter,NULL,NULL,0,NULL,NULL 41826,94609,570693,Yearling Self-Learner Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 41827,150202,413921,NULL,NULL,NULL,0,NULL,NULL 41828,341936,376092,NULL,NULL,NULL,0,NULL,NULL 41829,24944,806442,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41830,312181,276228,NULL,NULL,NULL,0,NULL,NULL 41831,445994,573027,NULL,NULL,NULL,0,NULL,NULL 41832,53154,34,Yearling Notable Question Great Answer Yearling Good Answer Guru Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 41833,218135,332114,Good Answer Yearling,NULL,NULL,0,NULL,NULL 41834,382189,675682,Nice Question Nice Answer Enlightened Yearling Good Answer Yearling Famous Question Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41835,2165579,1226028,Yearling Nice Answer Enlightened Popular Question Enlightened Yearling Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 41836,106753,14868,Yearling Good Answer,NULL,NULL,0,NULL,NULL 41837,774421,898875,Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 41838,348982,444478,Nice Answer,NULL,NULL,0,NULL,NULL 41839,63706,178987,Necromancer Documentation User,NULL,NULL,0,NULL,NULL 41840,204111,860582,Yearling Notable Question,NULL,NULL,0,NULL,NULL 41841,239182,706389,Nice Question Popular Question Yearling Famous Question Notable Question Notable Question Announcer Notable Question Yearling,NULL,NULL,0,NULL,NULL 41842,410423,966815,Popular Question Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 41843,1667154,823577,NULL,NULL,NULL,0,NULL,NULL 41844,913890,244368,Notable Question,NULL,NULL,0,NULL,NULL 41845,314289,1088504,Electorate Student Critic Yearling Caucus Commentator Necromancer Nice Answer Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 41846,906529,450325,Documentation User,NULL,NULL,0,NULL,NULL 41847,104008,1084688,NULL,NULL,NULL,0,NULL,NULL 41848,110548,783290,NULL,NULL,NULL,0,NULL,NULL 41849,1157321,551651,Yearling Caucus Yearling Editor Caucus Constituent Yearling Great Answer,NULL,NULL,0,NULL,NULL 41850,39206,600217,Critic Popular Question Popular Question Announcer,NULL,pIf you only want to extract only positive integers try the following ppre code gt gt gt str h3110 23 cat 444 rabbit 11 dog gt gt gt int for in str split if isdigit 23 11 code prepI would argue that this is better than the regex example for three reasons First you don need another module secondly it more readable because you don need to parse the regex mini language and third it is faster and thus likely more pythonic ppre codepython timeit str h3110 23 cat 444 rabbit 11 dog 1000 for in str split if isdigit 100 loops best of 84 msec per looppython timeit import re str h3110 23 cat 444 rabbit 11 dog 1000 re findall str 100 loops best of 66 msec per loop code prepThis will not recognize floats negative integers or integers in hexadecimal format If you can accept these limitations href https stackoverflow com questions 4289331 python extract numbers of string 4289415 4289415 slim answer below will do the trick Both python2 10 and python3 are almost two orders of magnitude faster here doing the re version What version of python were you doing these tests with,0,NULL,NULL 41851,338677,314083,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 41852,514544,986262,NULL,NULL,NULL,0,NULL,NULL 41853,81438,517616,php Nice Answer Enlightened Nice Answer Enlightened Citizen Patrol Custodian Yearling Civic Duty Excavator Enthusiast Caucus Constituent Notable Question Yearling Caucus Constituent Documentation User Census Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Fanatic Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41854,1532776,517616,php Nice Answer Enlightened Nice Answer Enlightened Citizen Patrol Custodian Yearling Civic Duty Excavator Enthusiast Caucus Constituent Notable Question Yearling Caucus Constituent Documentation User Census Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Fanatic Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41855,602561,37271,NULL,NULL,NULL,0,NULL,NULL 41856,4015122,37271,NULL,NULL,NULL,0,NULL,NULL 41857,45822,710107,Editor Teacher,NULL,NULL,0,NULL,NULL 41858,240179,595261,NULL,NULL,NULL,0,NULL,NULL 41859,746300,667110,NULL,NULL,NULL,0,NULL,NULL 41860,83010,1142406,NULL,NULL,NULL,0,NULL,NULL 41861,625032,1398750,Autobiographer Supporter Teacher,NULL,NULL,0,NULL,NULL 41862,168630,265669,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 41863,219913,578052,Commentator Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 41864,133844,884691,Student Scholar Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 41865,231868,884691,Student Scholar Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 41866,3067852,884691,Student Scholar Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 41867,122450,216403,Popular Question Popular Question Revival Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 41868,44656,1035704,NULL,NULL,NULL,0,NULL,NULL 41869,2922214,636478,Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 41870,1208243,335238,NULL,NULL,NULL,0,NULL,NULL 41871,263108,308759,Custodian Caucus Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 41872,2158233,242838,Autobiographer Yearling Necromancer Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41873,191410,242838,Autobiographer Yearling Necromancer Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41874,362170,1296697,NULL,NULL,NULL,0,NULL,NULL 41875,73905,193473,Popular Question Famous Question Nice Question Yearling Revival Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 41876,426834,69062,Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 41877,2083453,1253419,Supporter Documentation User,NULL,NULL,0,NULL,NULL 41878,2211597,1393962,Editor Nice Answer Supporter,NULL,NULL,0,NULL,NULL 41879,552801,1393962,Editor Nice Answer Supporter,NULL,NULL,0,NULL,NULL 41880,626065,1089527,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41881,345967,1228299,Student Famous Question,NULL,NULL,0,NULL,NULL 41882,1224667,1169136,Yearling Civic Duty Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41883,3680360,307459,Yearling Necromancer Nice Answer Yearling Necromancer Good Answer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 41884,118797,307459,Yearling Necromancer Nice Answer Yearling Necromancer Good Answer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 41885,170426,933085,Revival Necromancer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41886,757844,701875,Guru javascript Nice Answer Yearling Disciplined Guru Good Answer Notable Question Caucus Peer Pressure Popular Question Promoter Benefactor Yearling Nice Answer Enlightened Announcer Good Answer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41887,302457,719167,Yearling Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 41888,145015,987738,Yearling Nice Question,NULL,NULL,0,NULL,NULL 41889,161487,1083767,NULL,NULL,NULL,0,NULL,NULL 41890,140361,562538,NULL,NULL,NULL,0,NULL,NULL 41891,12129,150893,NULL,NULL,NULL,0,NULL,NULL 41892,424734,440657,Nice Answer Editor Yearling Yearling Census Revival Revival Yearling Revival,NULL,NULL,0,NULL,NULL 41893,151999,669729,Teacher Supporter,NULL,NULL,0,NULL,NULL 41894,228574,342341,Popular Question,NULL,NULL,0,NULL,NULL 41895,650685,895131,Commentator Caucus Caucus,NULL,NULL,0,NULL,NULL 41896,260768,979415,NULL,NULL,NULL,0,NULL,NULL 41897,714256,328503,Popular Question Informed,NULL,NULL,0,NULL,NULL 41898,696443,907626,NULL,NULL,NULL,0,NULL,NULL 41899,2878992,313163,Famous Question Favorite Question Notable Question Famous Question Good Answer Popular Question Yearling Guru Famous Question Favorite Question Nice Question Good Question Notable Question Famous Question Good Answer Notable Question Good Question Good Question Great Question Famous Question Notable Question Good Question Caucus Good Question Nice Question Nice Question Popular Question Good Answer Nice Question Good Question Popular Question Great Question Popular Question Good Question Yearling Nice Answer Notable Question Notable Question Famous Question Good Question Popular Question Famous Question Good Answer Popular Question Good Question Good Answer Guru Famous Question Good Question Great Question Yearling Nice Question Stellar Question Notable Question Famous Question Notable Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 41900,34108,313163,Famous Question Favorite Question Notable Question Famous Question Good Answer Popular Question Yearling Guru Famous Question Favorite Question Nice Question Good Question Notable Question Famous Question Good Answer Notable Question Good Question Good Question Great Question Famous Question Notable Question Good Question Caucus Good Question Nice Question Nice Question Popular Question Good Answer Nice Question Good Question Popular Question Great Question Popular Question Good Question Yearling Nice Answer Notable Question Notable Question Famous Question Good Question Popular Question Famous Question Good Answer Popular Question Good Question Good Answer Guru Famous Question Good Question Great Question Yearling Nice Question Stellar Question Notable Question Famous Question Notable Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 41901,2760,76813,Famous Question Famous Question Yearling Revival Notable Question Nice Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 41902,506611,527593,NULL,NULL,NULL,0,NULL,NULL 41903,898277,312219,Popular Question Civic Duty Curious Promoter,NULL,NULL,0,NULL,NULL 41904,70561,1430321,NULL,NULL,NULL,0,NULL,NULL 41905,667087,834786,NULL,NULL,NULL,0,NULL,NULL 41906,574497,680500,NULL,NULL,NULL,0,NULL,NULL 41907,1005964,384430,Yearling Notable Question,NULL,NULL,0,NULL,NULL 41908,1187913,1269170,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 41909,226179,456408,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41910,1627961,1343065,NULL,NULL,NULL,0,NULL,NULL 41911,427820,1343065,NULL,NULL,NULL,0,NULL,NULL 41912,423746,394121,NULL,NULL,NULL,0,NULL,NULL 41913,59614,64912,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41914,753345,64537,Critic Informed Yearling,NULL,NULL,0,NULL,NULL 41915,9655,1167061,Notable Question Enthusiast Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 41916,690616,199148,Notable Question Custodian Custodian Nice Question Notable Question Famous Question Yearling Famous Question Nice Answer Nice Question Strunk & White Reviewer Popular Question Popular Question Great Question Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 41917,89497,1287144,NULL,NULL,NULL,0,NULL,NULL 41918,467178,1370120,NULL,NULL,NULL,0,NULL,NULL 41919,281089,920265,Informed Autobiographer Custodian Editor Commentator Critic Yearling Census Caucus Census Necromancer Caucus,NULL,NULL,0,NULL,NULL 41920,625918,793320,Famous Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41921,143021,326212,Yearling,NULL,NULL,0,NULL,NULL 41922,1032363,671215,NULL,NULL,NULL,0,NULL,NULL 41923,4390,334946,Nice Answer,NULL,NULL,0,NULL,NULL 41924,3577331,904221,NULL,NULL,NULL,0,NULL,NULL 41925,732285,580236,NULL,NULL,NULL,0,NULL,NULL 41926,29122,465082,Proofreader Yearling Nice Answer Enlightened Guru Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 41927,168853,662530,Great Question Yearling Great Answer Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 41928,1347387,365633,NULL,NULL,NULL,0,NULL,NULL 41929,261472,982322,Self-Learner Necromancer Critic,NULL,NULL,0,NULL,NULL 41930,1189274,716870,NULL,NULL,NULL,0,NULL,NULL 41931,583055,986444,NULL,NULL,NULL,0,NULL,NULL 41932,4284773,986444,NULL,NULL,NULL,0,NULL,NULL 41933,177054,1062708,Custodian Citizen Patrol Custodian Excavator Necromancer Suffrage Tag Editor Caucus Yearling Organizer Informed Civic Duty Necromancer Scholar Nice Answer Caucus Documentation User Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 41934,626592,429779,NULL,NULL,NULL,0,NULL,NULL 41935,282127,816305,NULL,NULL,NULL,0,NULL,NULL 41936,514489,738768,Tumbleweed Curious Yearling Promoter Nice Question Caucus Excavator Caucus Investor Altruist,NULL,NULL,0,NULL,NULL 41937,147808,664780,NULL,NULL,NULL,0,NULL,NULL 41938,499021,1016423,Yearling Peer Pressure,NULL,pre codeprivate function downloadFile url path newfname path file fopen url rb if file newf fopen newfname wb if newf while feof file fwrite newf fread file 1024 1024 if file fclose file if newf fclose newf code pre Downloads 0KB empty file although the file is more than 17MB Skype main db file On PHP also had to remove private from the beginning of the function,0,NULL,NULL 41939,84277,462370,Necromancer Revival Yearling Popular Question Self-Learner Notable Question Announcer Yearling Popular Question Yearling,NULL,How to monkey patch call method python monkeypatching pI don seem to be able to monkey patch code call code method of class instance and yes want to patch just single instances not all of them ppThe following code ppre codeclass object def test self return TEST def call self return EXAMPLE print call method format call print test method format test call lambda example test lambda test print call method format call print test method format test print print Explicit call format call print test code prepOutputs this ppre codecall method lt bound method call of lt main object at 0x7f3f2d60b6a0 gt gt test method lt bound method test of lt main object at 0x7f3f2d60b6a0 gt gt call method lt function lt lambda gt at 0x7f3f2ef4ef28 gt test method lt function lt lambda gt at 0x7f3f2d5f8f28 gt EXAMPLEExplicit call exampletest code prepWhile like it to output ppre code exampleExplicit call exampletest code prep strongHow do monkeypatch code call code Why can patch it the same way as patch other methods strong ppWhile href https stackoverflow com 14590308 462370 this answer tells how to do it supposedly haven tested it yet it doesn explain the emwhy em part of the question sure done,1,How to monkey patch call method python monkeypatching pI don seem to be able to monkey patch code call code method of class instance and yes want to patch just single instances not all of them ppThe following code ppre codeclass object def test self return TEST def call self return EXAMPLE print call method format call print test method format test call lambda example test lambda test print call method format call print test method format test print print Explicit call format call print test code prepOutputs this ppre codecall method lt bound method call of lt main object at 0x7f3f2d60b6a0 gt gt test method lt bound method test of lt main object at 0x7f3f2d60b6a0 gt gt call method lt function lt lambda gt at 0x7f3f2ef4ef28 gt test method lt function lt lambda gt at 0x7f3f2d5f8f28 gt EXAMPLEExplicit call exampletest code prepWhile like it to output ppre code exampleExplicit call exampletest code prep strongHow do monkeypatch code call code Why can patch it the same way as patch other methods strong ppWhile href https stackoverflow com 14590308 462370 this answer tells how to do it supposedly haven tested it yet it doesn explain the emwhy em part of the question,NULL 41940,48802,748907,NULL,NULL,NULL,0,NULL,NULL 41941,117881,1053751,NULL,NULL,NULL,0,NULL,NULL 41942,38714,842910,NULL,NULL,NULL,0,NULL,NULL 41943,365208,1023452,NULL,NULL,NULL,0,NULL,NULL 41944,1563724,989055,Notable Question,NULL,NULL,0,NULL,NULL 41945,117320,1245190,Nice Answer Yearling Nice Question Necromancer Popular Question Nice Answer Custodian Custodian Good Answer Good Question Necromancer Nice Answer Caucus Nice Question Popular Question Great Answer Popular Question Necromancer Popular Question Necromancer Yearling Guru Revival Necromancer Nice Answer Necromancer Necromancer Notable Question Necromancer Good Answer Nice Answer Popular Question Necromancer Caucus Popular Question Documentation User Popular Question Nice Answer Nice Question Popular Question Nice Answer Necromancer Good Answer Nice Answer Yearling Necromancer Nice Answer Notable Question Famous Question Nice Answer Populist Popular Question Famous Question Notable Question Nice Question,NULL,pShort answer ppre code dirname code prepor href http mywiki wooledge org BashFAQ 082 rel noreferrer preferably ppre code dirname code pre use this all the time in my bash scripts that automate stuff and often invoke other scripts in the same dir never use source on these and cd dirname is easy to remember,1,NULL,Django OperationalError No Such Table django django cms pI building fairly simple application research in my Django project that uses Django CMS It my first ground up attempt at project application It main purpose is to store various intellectual assets article book etc written by researcher ppThe problem is that when point the browser to research get an error saying that the table research journal doesn exist no such table ppI using Djnago with sqlite3 database ppLooking at codepython manage py sql research code yields ppre codeBEGIN CREATE TABLE research researchbase id integer NOT NULL PRIMARY KEY pub date datetime NOT NULL authors varchar 200 NOT NULL year varchar 25 NOT NULL title varchar 200 NOT NULL subtitle varchar 200 NOT NULL image id integer NOT NULL REFERENCES filer image file ptr id link varchar 200 NOT NULL CREATE TABLE research journal researchbase ptr id integer NOT NULL PRIMARY KEY REFERENCES research researchbase id journal varchar 200 NOT NULL abstract text NOT NULL citation varchar 200 NOT NULL CREATE TABLE research encyclopedia chapter researchbase ptr id integer NOT NULL PRIMARY KEY REFERENCES research researchbase id encyclopedia varchar 200 NOT NULL publisher varchar 200 NOT NULL summary varchar 200 NOT NULL CREATE TABLE research book researchbase ptr id integer NOT NULL PRIMARY KEY REFERENCES research researchbase id publisher varchar 200 NOT NULL summary varchar 200 NOT NULL COMMIT code prepI ve run codepython manage py migrate research code and get ppre code Users XXX Documents repos sfs env lib python2 site packages app data fields py DeprecationWarning django utils simplejson is deprecated use json instead from django utils import simplejson as jsonRunning migrations for research Nothing to migrate Loading initial data for research Installed object from fixture code prepI ve run codepython manage py syncdb code and get the following ppre codeSyncing Creating tables Installing custom SQL Installing indexes Installed object from fixture Synced gt djangocms admin style gt django contrib auth gt django contrib contenttypes gt django contrib sessions gt django contrib admin gt django contrib sites gt django contrib sitemaps gt django contrib staticfiles gt django contrib messages gt mptt gt south gt sekizai gt django select2 gt hvadNot synced use migrations djangocms text ckeditor cms menus djangocms style djangocms column djangocms file djangocms flash djangocms googlemap djangocms inherit djangocms link djangocms picture djangocms teaser djangocms video reversion polls djangocms polls aldryn blog easy thumbnails filer taggit research use manage py migrate to migrate these code prepHere the models py ppre codefrom django db import modelsfrom django utils import timezonefrom filer fields image import FilerImageFieldimport datetimeclass ResearchBase models Model pub date models DateTimeField date published authors models CharField max length 200 year models CharField max length 25 title models CharField max length 200 subtitle models CharField max length 200 blank True image FilerImageField link models CharField max length 200 blank True def unicode self return self title def was published recently self return self pub date gt timezone now datetime timedelta days class Journal ResearchBase journal models CharField max length 200 abstract models TextField citation models CharField max length 200 class Encyclopedia Chapter ResearchBase encyclopedia models CharField max length 200 publisher models CharField max length 200 summary models CharField max length 200 class Book ResearchBase publisher models CharField max length 200 summary models CharField max length 200 code prepHere my views py note that am passing two objects through render ignore the fact that have yet to include the class Books in the whole deal ppre codefrom django shortcuts import render get object or 404from django http import HttpResponse Http404from django template import RequestContext loaderfrom research models import Journal Encyclopedia Chapter Bookdef research index request latest journal list Journal objects order by pub date latest chapter list Encyclopedia Chapter objects order by pub date context latest journal list latest journal list latest chapter list latest chapter list return render request research index html context def journal detail request journal id journal get object or 404 Journal pk journal id return render request research journal detail html journal journal def chapter detail request chapter id chapter get object or 404 Encyclopedia Chapter pk chapter id return render request research chapter detail html chapter chapter code prepHere the application url py ppre codefrom django conf urls import patterns urlfrom research import viewsurlpatterns patterns url views research index name research url lt journal id gt views journal detail name journal detail url lt chapter id gt views chapter detail name chapter detail code prepHere the index html template ppre code extends research base html block research content lt div class container gt lt div class row featurette gt lt h3 id research gt Peer reviewed Journal Articles lt h3 gt if latest journal list lt ul id research gt for journal in latest journal list lt li id research gt lt img src journal image url id research gt lt h4 gt journal journal lt h4 gt lt h5 gt journal title lt h5 gt lt href url research journal detail journal id gt Read More lt gt lt li gt endfor lt ul gt else lt gt No journals are available lt gt endif lt div gt lt div class row featurette gt lt h3 id research gt Encyclopedia Chapters lt h3 gt if latest chapter list lt ul id research gt for chapter in latest chapter list lt li id research gt lt img src chapter image url id research gt lt h4 gt chapter journal lt h4 gt lt h5 gt chapter title lt h5 gt lt href url research chapter detail chapter id gt Read More lt gt lt li gt endfor lt ul gt else lt gt No encyclopedia chapters are available lt gt endif lt div gt lt div gt endblock code prepJust in case it matters here my cms app py ppre codefrom cms app base import CMSAppfrom cms apphook pool import apphook poolfrom django utils translation import ugettext lazy as class ResearchApp CMSApp name Research App urls research urls app name research apphook pool register ResearchApp code prepThoughts Any help would be greatly appreciated href https stackoverflow com questions 25771755 django operationalerror no such table comment58061639 25773438 This comment on this page worked for me and few others It deserves its own answer ppre codepython manage py migrate run syncdb code pre 41946,110391,277904,NULL,NULL,NULL,0,NULL,NULL 41947,1507913,374275,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 41948,26351,1293026,NULL,NULL,NULL,0,NULL,NULL 41949,142325,152113,Good Question Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 41950,7073030,152113,Good Question Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 41951,313631,949115,Teacher Supporter,NULL,NULL,0,NULL,NULL 41952,406864,162210,Nice Question,NULL,NULL,0,NULL,NULL 41953,304426,371160,Popular Question Notable Question Civic Duty Yearling Famous Question Notable Question Necromancer Custodian Nice Question Necromancer Yearling Nice Answer Nice Answer,NULL,pA simpler solution on recent versions of tmux tested on you can now do ppre codetmux detach code prep code code is for all other client on this session except the current one ppYou can alias it in your bash zsh rc ppre codealias takeover tmux detach code prepWorkflow You can connect to your session normally and if you are bothered by another session that forced down your tmux window size you can simply call codetakeover code Thanks much worked If you are doing it in an active tmux session just press CTRL or whichever your custom tmux command then detach,0,NULL,NULL 41954,73834,430989,Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 41955,199369,489448,Good Answer Nice Answer Popular Question Enlightened Yearling r Promoter Benefactor Popular Question Yearling Great Answer Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 41956,384918,816344,NULL,NULL,NULL,0,NULL,NULL 41957,426293,1104817,NULL,NULL,NULL,0,NULL,NULL 41958,23540,75995,Notable Question,NULL,NULL,0,NULL,NULL 41959,243707,857234,Necromancer,NULL,NULL,0,NULL,NULL 41960,1879513,388714,Yearling Custodian Nice Question Yearling Caucus Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41961,1169266,1563382,NULL,NULL,NULL,0,NULL,NULL 41962,53612,534341,Revival,NULL,NULL,0,NULL,NULL 41963,1045854,1497534,Documentation User,NULL,NULL,0,NULL,NULL 41964,23264,529593,NULL,NULL,NULL,0,NULL,NULL 41965,340586,871901,NULL,NULL,NULL,0,NULL,NULL 41966,596758,791510,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 41967,1331152,543277,NULL,NULL,NULL,0,NULL,NULL 41968,73549,517868,Popular Question Revival Famous Question Famous Question Popular Question Popular Question Revival Inquisitive Notable Question Necromancer Nice Answer Necromancer Yearling Good Question Notable Question Notable Question Notable Question ruby-on-rails Good Answer Nice Answer Famous Question Taxonomist Notable Question Nice Question Yearling Good Answer Popular Question Necromancer Popular Question Famous Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 41969,17369,756560,NULL,NULL,NULL,0,NULL,NULL 41970,35557,1553036,NULL,NULL,NULL,0,NULL,NULL 41971,251477,1262181,NULL,NULL,NULL,0,NULL,NULL 41972,175113,373235,NULL,NULL,NULL,0,NULL,NULL 41973,390950,854985,NULL,NULL,NULL,0,NULL,NULL 41974,242334,1372941,NULL,NULL,NULL,0,NULL,NULL 41975,44157,915016,Announcer,NULL,NULL,0,NULL,NULL 41976,872902,1556979,NULL,NULL,NULL,0,NULL,NULL 41977,295932,799681,NULL,NULL,NULL,0,NULL,NULL 41978,9808,243362,NULL,NULL,NULL,0,NULL,NULL 41979,205958,1469890,NULL,NULL,NULL,0,NULL,NULL 41980,396326,1276920,Supporter Editor,NULL,NULL,0,NULL,NULL 41981,13500,3815,Notable Question Popular Question Popular Question Yearling Citizen Patrol Custodian Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 41982,9970,394010,Nice Answer Enlightened Nice Answer Enlightened Notable Question Notable Question Nice Answer Good Answer Notable Question Nice Answer javascript Nice Answer Nice Answer Nice Answer Electorate Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Notable Question php Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Question Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Famous Question Announcer Necromancer Guru Good Answer Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Nice Answer Good Answer android Good Answer Good Answer Revival Notable Question Good Answer firebase-realtime-database Good Answer Yearling Nice Question Nice Answer Enlightened,NULL,pThe trick is to keep an audit of the last time user posted message Then you can enforce the time each message is posted based on the audit value ppre code rules this stores the last message sent so can throttle them by timestamp last message user timestamp can be deleted or could just recreate it to bypass our throttle write newData exists amp amp auth uid user the new value must be at least 5000 milliseconds after the last no more than one message every five seconds the new value must be before now it will be since now is when it reaches the server unless try to cheat validate newData isNumber amp amp newData val now amp amp data exists newData val gt data val 5000 messages message id message must have timestamp attribute and sender attribute write newData hasChildren timestamp sender message sender validate newData val auth uid timestamp in order to write message must first make an entry in timestamp index additionally that message must be within 500ms of now which means can just re use the same one over and over thus we ve effectively required messages to be seconds apart validate newData val gt now 500 amp amp newData val data parent parent parent child last message auth uid val message validate newData isString amp amp newData val length lt 500 other validate false code prepSee it in action href http jsfiddle net firebase VBmA5 rel noreferrer in this fiddle Here the gist of what in the fiddle ppre codevar fb new Firebase URL var userId log in and store user uid here run our create routinecreateRecord data function recordId timestamp console log created record recordId at time new Date timestamp updates the last message path and returns the current timestampfunction getTimestamp next var ref fb child last message userId ref set Firebase ServerValue TIMESTAMP function err if err console error err else ref once value function snap next snap val function createRecord data next getTimestamp function timestamp add the new timestamp to the record data var data sender userId timestamp timestamp message hello world var ref fb child messages push data function err if err console error err else next ref name timestamp code pre If you think you can break it you should definitely submit some code that does so Note that the audit records have to be within 500ms and each record has to be 5s apart and the record must match the audit value they can reconcile those numbers Also note that newData val now probably works these days did not years ago when this was posted,0,NULL,NULL 41983,91034,1109587,NULL,NULL,NULL,0,NULL,NULL 41984,1147980,451390,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 41985,903377,1337788,NULL,NULL,NULL,0,NULL,NULL 41986,25843,993758,NULL,NULL,NULL,0,NULL,NULL 41987,168261,1050438,NULL,NULL,NULL,0,NULL,NULL 41988,165069,682244,NULL,NULL,NULL,0,NULL,NULL 41989,129890,743842,Good Answer Caucus,NULL,NULL,0,NULL,NULL 41990,595671,721064,Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Peer Pressure Famous Question Nice Question Notable Question Custodian Citizen Patrol Yearling Custodian Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 41991,462926,1404295,NULL,NULL,NULL,0,NULL,NULL 41992,31635,761664,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 41993,396847,111362,Necromancer Yearling Announcer Nice Answer Enlightened Revival Yearling Civic Duty Caucus Constituent Census Nice Answer Enlightened Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 41994,52599,219595,Nice Answer Famous Question Necromancer Yearling Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 41995,5893032,1483441,Famous Question Nice Answer Popular Question Nice Question Famous Question Nice Question Supporter,NULL,NULL,0,NULL,NULL 41996,739560,549083,NULL,NULL,NULL,0,NULL,NULL 41997,63250,467924,NULL,NULL,NULL,0,NULL,NULL 41998,1510251,1107173,Civic Duty Favorite Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Great Question Popular Question Popular Question Popular Question Notable Question Caucus Notable Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Caucus Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 41999,200000,679674,Popular Question,NULL,NULL,0,NULL,NULL 42000,7473,575242,Excavator Organizer,NULL,NULL,0,NULL,NULL 42001,7743108,699465,NULL,NULL,NULL,0,NULL,NULL 42002,26305,1135665,NULL,NULL,NULL,0,NULL,NULL 42003,800619,903585,Curious Popular Question Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 42004,177771,1468883,NULL,NULL,NULL,0,NULL,NULL 42005,412135,934239,javascript Nice Answer Enlightened Copy Editor Good Answer Nice Answer Enlightened Necromancer Pundit Nice Answer Enlightened google-chrome Nice Answer html Nice Answer Enlightened Revival Nice Answer Enlightened Good Answer Nice Answer Sportsmanship Necromancer Reviewer Marshal Convention Documentation Pioneer Necromancer Necromancer Necromancer google-chrome-app Nice Answer Yearling google-chrome-devtools Nice Answer Enlightened Nice Answer Enlightened Necromancer Necromancer Nice Answer Enlightened Announcer Revival Caucus Guru Constituent Necromancer Necromancer Necromancer Revival Necromancer Good Answer Nice Answer Enlightened Nice Answer chrome-web-store Good Answer Good Answer Good Answer Necromancer Necromancer Announcer Announcer Announcer Announcer Nice Answer Nice Answer Good Answer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Caucus Revival Revival Constituent Announcer Announcer Nice Answer Nice Answer Self-Learner Revival Announcer Nice Answer Yearling Nice Answer Enlightened Documentation User Good Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Announcer Nice Answer Census Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Revival Good Answer Announcer Announcer Caucus Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Necromancer Good Answer Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Popular Question Nice Answer Enlightened Necromancer Good Answer Nice Answer Enlightened Announcer Announcer Steward,NULL,strongEdit strong This approach no longer works on any platform except ChromeOS due to the removal of Chrome Notification Center ppPossible ideas to work around it include using coderequireInteraction true code flag on notifications to fully control notification lifetime phrpThere is dirty trick for re showing notification If you change notification priority to higher value it will be re shown if it exists ppre codefunction createOrUpdate id options callback Try to lower priority to minimal shown priority chrome notifications update id priority function existed if existed var targetPriority options priority options priority Update with higher priority chrome notifications update id options function chrome notifications update id priority targetPriority function callback true Updated else chrome notifications create id options function callback false Created code pre would think it doesn except on ChromeOS because the notification center was removed new solution is needed indeed strongEdit strong This approach no longer works on any platform except ChromeOS due to the removal of Chrome Notification Center ppPossible ideas to work around it include using coderequireInteraction true code flag on notifications to fully control notification lifetime phrpThere is dirty trick for re showing notification If you change notification priority to higher value it will be re shown if it exists ppre codefunction createOrUpdate id options callback Try to lower priority to minimal shown priority chrome notifications update id priority function existed if existed var targetPriority options priority options priority Update with higher priority chrome notifications update id options function chrome notifications update id priority targetPriority function callback true Updated else chrome notifications create id options function callback false Created code pre What is currently happening if you try to update timed out notification Does existed still report true Also there solution involving requireInteraction that puts you in control of the notification lifetime strongEdit strong This approach no longer works on any platform except ChromeOS due to the removal of Chrome Notification Center ppPossible ideas to work around it include using coderequireInteraction true code flag on notifications to fully control notification lifetime phrpThere is dirty trick for re showing notification If you change notification priority to higher value it will be re shown if it exists ppre codefunction createOrUpdate id options callback Try to lower priority to minimal shown priority chrome notifications update id priority function existed if existed var targetPriority options priority options priority Update with higher priority chrome notifications update id options function chrome notifications update id priority targetPriority function callback true Updated else chrome notifications create id options function callback false Created code pre would say that existed true after removing the notification center is report worthy bug pThe code in cvsguimaraes answer works for short data strings that can fit into URL As evidenced by href https stackoverflow com questions 23682827 send text with post method from chrome extension this question it not always the case ppKenny Evitt answer hints at the solution made an implementation for that question and took time to generalize it present it here ppThe idea is to open page bundled with the extension post html supply it with required information via messaging and perform the POST from that page pp strongpost html strong ppre code lt html gt lt head gt lt title gt Redirecting lt title gt lt head gt lt body gt lt h1 gt Redirecting lt h1 gt lt Decorate as you wish this is page that redirects to final one gt lt script src post js gt lt script gt lt body gt lt html gt code prep strongpost js strong ppre codevar onMessageHandler function message Ensure it is run only once as we will try to message twice chrome runtime onMessage removeListener onMessageHandler code from https stackoverflow com 7404033 934239 var form document createElement form form setAttribute method post form setAttribute action message url for var key in message data var hiddenField document createElement input hiddenField setAttribute type hidden hiddenField setAttribute name key hiddenField setAttribute value message data key form appendChild hiddenField document body appendChild form form submit chrome runtime onMessage addListener onMessageHandler code prep strongbackground js strong or other non content script inside the extension ppre codefunction postData url data chrome tabs create url chrome runtime getURL post html function tab var handler function tabId changeInfo if tabId tab id amp amp changeInfo status complete chrome tabs onUpdated removeListener handler chrome tabs sendMessage tabId url url data data in case we re faster than page load usually chrome tabs onUpdated addListener handler just in case we re too late with the listener chrome tabs sendMessage tab id url url data data Usage postData http httpbin org post hello world lorem ipsum code prepNote the double messaging with codechrome tabs create code callback we can be sure that the listener is ready nor can we be sure it not done loading yet though in my testing it always still loading But better safe than sorry Neither It script in an extension page that not popup,0,NULL,NULL 42006,18875,983094,Teacher,NULL,NULL,0,NULL,NULL 42007,436397,232593,Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Necromancer Great Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Good Question Nice Answer Good Answer Nice Answer c++ Good Answer Nice Answer Notable Question Good Answer Good Answer Great Answer Yearling Enlightened Nice Answer Nice Answer Famous Question Nice Answer Nice Answer Nice Answer Announcer Great Answer Nice Answer Nice Answer Announcer Nice Answer Good Answer Guru oop Guru Good Answer Announcer Revival Revival Good Answer Notable Question Popular Question Nice Question Announcer Yearling Notable Question Good Answer Announcer Notable Question Popular Question Nice Answer Good Answer Guru Enlightened Announcer Nice Answer Guru Great Answer Notable Question,NULL,NULL,0,NULL,NULL 42008,612182,1033973,NULL,NULL,NULL,0,NULL,NULL 42009,958340,503696,NULL,NULL,NULL,0,NULL,NULL 42010,262747,1240620,Yearling Announcer Yearling Civic Duty Great Answer Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 42011,67666,45622,Good Answer Nice Answer Good Answer Yearling Revival Census Custodian Necromancer Nice Answer Nice Answer Custodian Custodian Enlightened Good Answer Guru Guru Yearling Census Great Answer,NULL,NULL,0,NULL,NULL 42012,300701,956706,NULL,NULL,NULL,0,NULL,NULL 42013,80594,1542139,Yearling Guru Announcer Yearling,NULL,NULL,0,NULL,NULL 42014,88485,684921,Popular Question Popular Question Yearling Electorate Nice Answer Announcer Caucus Constituent Yearling Announcer Announcer Nice Question Announcer Announcer Caucus Announcer Constituent Announcer Notable Question Announcer Announcer Announcer Announcer Announcer Caucus Announcer Constituent Yearling Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 42015,18861,1253878,NULL,NULL,NULL,0,NULL,NULL 42016,524916,1419838,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42017,73802,98970,Necromancer Nice Question Popular Question Good Question Notable Question Popular Question Yearling Famous Question Nice Answer Popular Question Good Answer Popular Question Yearling Popular Question Good Answer Announcer Famous Question Good Answer Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 42018,320074,47093,Notable Question Excavator Yearling Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 42019,650354,781007,Notable Question,NULL,NULL,0,NULL,NULL 42020,18487,772573,NULL,NULL,NULL,0,NULL,NULL 42021,1511173,505413,NULL,NULL,NULL,0,NULL,NULL 42022,161597,904664,NULL,NULL,NULL,0,NULL,NULL 42023,286094,1061612,NULL,NULL,NULL,0,NULL,NULL 42024,725883,518090,Census,NULL,NULL,0,NULL,NULL 42025,312661,568064,Caucus,NULL,NULL,0,NULL,NULL 42026,65197,1034994,Nice Question Popular Question Popular Question Notable Question Famous Question Critic Popular Question Nice Question Notable Question Notable Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42027,415347,765434,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 42028,623303,650415,NULL,NULL,NULL,0,NULL,NULL 42029,220140,291233,Curious Good Question Yearling Great Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 42030,374519,678567,NULL,NULL,NULL,0,NULL,NULL 42031,134089,48362,Nice Question Yearling Notable Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 42032,520768,277275,Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42033,45695,521573,NULL,NULL,NULL,0,NULL,NULL 42034,118161,84336,Nice Question Nice Question Famous Question Yearling Nice Question Famous Question Popular Question Favorite Question Yearling Notable Question Good Question Notable Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 42035,53030,595377,NULL,NULL,NULL,0,NULL,NULL 42036,358192,1105791,NULL,NULL,NULL,0,NULL,NULL 42037,50984,1274872,Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42038,297844,1305415,NULL,NULL,NULL,0,NULL,NULL 42039,73706,6489,Notable Question asp.net-mvc Yearling,NULL,NULL,0,NULL,NULL 42040,679261,1151034,Popular Question Notable Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 42041,163880,713470,NULL,NULL,NULL,0,NULL,NULL 42042,66988,1116793,Yearling,NULL,NULL,0,NULL,NULL 42043,183646,1066505,Editor Scholar Student,NULL,NULL,0,NULL,NULL 42044,2025787,560385,NULL,NULL,NULL,0,NULL,NULL 42045,544328,667598,Commentator Yearling Nice Answer Caucus Constituent Announcer Necromancer Yearling Revival Excavator,NULL,NULL,0,NULL,NULL 42046,159469,1036836,NULL,NULL,NULL,0,NULL,NULL 42047,199799,812261,NULL,NULL,NULL,0,NULL,NULL 42048,133858,108571,Teacher,NULL,NULL,0,NULL,NULL 42049,283261,867617,NULL,NULL,NULL,0,NULL,NULL 42050,785948,939785,NULL,NULL,NULL,0,NULL,NULL 42051,553230,636995,NULL,NULL,NULL,0,NULL,NULL 42052,14751,630837,NULL,NULL,NULL,0,NULL,NULL 42053,53981,101152,Famous Question Great Question Notable Question Nice Question Nice Question Notable Question Notable Question Notable Question Notable Question Good Answer Good Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Good Question Famous Question Good Question Famous Question Famous Question Notable Question Popular Question Notable Question Good Answer Caucus Constituent Popular Question Notable Question Popular Question Notable Question Custodian Yearling Famous Question Notable Question Great Answer Popular Question Favorite Question Good Question Nice Question Nice Question Notable Question Famous Question Popular Question Custodian Popular Question Custodian Famous Question Popular Question Nice Question Popular Question Great Question Nice Question Famous Question Caucus Popular Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question Famous Question Socratic Nice Answer Notable Question,NULL,Can fetch get object as headers javascript fetch api pI am trying to understand how to use whatwg codefetch code according to specifications Specifically if can do this according to the specs ppre codefetch https example org headers Content Type image jpeg code prepThis is actually possible with href https github com github fetch rel nofollow github fetch polyfill that is according to their words as closely as possible to the standard Fetch specification ppWhen read the href https developer mozilla org en US docs Web API GlobalFetch fetch rel nofollow MDN documentation read this pblockquote codeheaders code Any headers you want to add to your request contained within codeHeaders code object or codeByteString code blockquotep em edit have now edited the MDN pages so they no longer talk about codeHeaders code initialization by codeByteString code directly em ppThat means ordinary object is not allowed ppBut this documentation isn perfect so went to the spec that are written in their usual verbose way and find this pp href https fetch spec whatwg org request class rel nofollow https fetch spec whatwg org request class pblockquote pRequest class ppre codeConstructor RequestInfo input optional RequestInit init dictionary RequestInit HeadersInit headers typedef Headers or sequence lt sequence lt ByteString gt gt or OpenEndedDictionary lt ByteString gt HeadersInit code pre pOpenEndedDictionary is future IDL construct Expect it to be used as such ppre codevar meta Content Type text xml Breaking Bad lt new Headers meta code pre blockquotepIf read this correctly this means that the object actually can be used and codeOpenEndedDictionary code is just an object Do understand it correctly pp will add that with my experimentation both Firefox and Chrome accepts the header object ppI also cannot see anything about the codeheaders code being possible to instantiate from codeByteString code directly as the MDN suggests ppWhat am also interested is what the different implementations emactually em accept right now OpenEndedDictionary definition googling just returns me some random github issues and websters dictionary definition of the word open ended Can fetch get object as headers javascript fetch api pI am trying to understand how to use whatwg codefetch code according to specifications Specifically if can do this according to the specs ppre codefetch https example org headers Content Type image jpeg code prepThis is actually possible with href https github com github fetch rel nofollow github fetch polyfill that is according to their words as closely as possible to the standard Fetch specification ppWhen read the href https developer mozilla org en US docs Web API GlobalFetch fetch rel nofollow MDN documentation read this pblockquote codeheaders code Any headers you want to add to your request contained within codeHeaders code object or codeByteString code blockquotep em edit have now edited the MDN pages so they no longer talk about codeHeaders code initialization by codeByteString code directly em ppThat means ordinary object is not allowed ppBut this documentation isn perfect so went to the spec that are written in their usual verbose way and find this pp href https fetch spec whatwg org request class rel nofollow https fetch spec whatwg org request class pblockquote pRequest class ppre codeConstructor RequestInfo input optional RequestInit init dictionary RequestInit HeadersInit headers typedef Headers or sequence lt sequence lt ByteString gt gt or OpenEndedDictionary lt ByteString gt HeadersInit code pre pOpenEndedDictionary is future IDL construct Expect it to be used as such ppre codevar meta Content Type text xml Breaking Bad lt new Headers meta code pre blockquotepIf read this correctly this means that the object actually can be used and codeOpenEndedDictionary code is just an object Do understand it correctly pp will add that with my experimentation both Firefox and Chrome accepts the header object ppI also cannot see anything about the codeheaders code being possible to instantiate from codeByteString code directly as the MDN suggests ppWhat am also interested is what the different implementations emactually em accept right now OK in that case added note to my question What am also interested is what the different implementations actually accept right now Extending Error in Javascript with ES6 syntax Babel javascript ecmascript babeljs transpiler pI am trying to extend Error with ES6 and Babel It isn working out ppre codeclass MyError extends Error constructor super var error new Error ll var myerror new MyError ll console log error message shows up correctlyconsole log myerror message shows empty string code prepThe Error object never get the right message set pp href https babeljs io repl experimental true amp evaluate true amp loose false amp spec false amp code class 20MyError 20extends 20Error 20 7B 0A 20 20constructor 20 7B 0A 20 20 20 20super 3B 0A 20 20 7D 0A 7D 0A 0Avar 20error 20 3D 20new 20Error 22ll 22 3B 0Avar 20myerror 20 3D 20new 20MyError 22ll 22 3B 0Aconsole log error message 20 2F 2Fshows 20up 20correctly 0Aconsole log myerror message 20 2F 2Fshows 20empty 20string rel noreferrer Try in Babel REPL ppNow have seen few solutions on SO href https stackoverflow com questions 8802845 inheriting from the error object where is the message property for example here but they all seem very un ES6 How to do it in nice ES6 way That is working in Babel that sounds great will look at it and will make changes to answers later Busy today,1,Can fetch get object as headers javascript fetch api pI am trying to understand how to use whatwg codefetch code according to specifications Specifically if can do this according to the specs ppre codefetch https example org headers Content Type image jpeg code prepThis is actually possible with href https github com github fetch rel nofollow github fetch polyfill that is according to their words as closely as possible to the standard Fetch specification ppWhen read the href https developer mozilla org en US docs Web API GlobalFetch fetch rel nofollow MDN documentation read this pblockquote codeheaders code Any headers you want to add to your request contained within codeHeaders code object or codeByteString code blockquotep em edit have now edited the MDN pages so they no longer talk about codeHeaders code initialization by codeByteString code directly em ppThat means ordinary object is not allowed ppBut this documentation isn perfect so went to the spec that are written in their usual verbose way and find this pp href https fetch spec whatwg org request class rel nofollow https fetch spec whatwg org request class pblockquote pRequest class ppre codeConstructor RequestInfo input optional RequestInit init dictionary RequestInit HeadersInit headers typedef Headers or sequence lt sequence lt ByteString gt gt or OpenEndedDictionary lt ByteString gt HeadersInit code pre pOpenEndedDictionary is future IDL construct Expect it to be used as such ppre codevar meta Content Type text xml Breaking Bad lt new Headers meta code pre blockquotepIf read this correctly this means that the object actually can be used and codeOpenEndedDictionary code is just an object Do understand it correctly pp will add that with my experimentation both Firefox and Chrome accepts the header object ppI also cannot see anything about the codeheaders code being possible to instantiate from codeByteString code directly as the MDN suggests ppWhat am also interested is what the different implementations emactually em accept right now,NULL 42054,32633,957051,NULL,NULL,NULL,0,NULL,NULL 42055,463697,1385451,NULL,NULL,NULL,0,NULL,NULL 42056,375665,539491,Yearling Commentator Revival,NULL,NULL,0,NULL,NULL 42057,973216,43089,Good Answer Great Answer Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Great Answer Great Answer Great Answer Great Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Yearling Nice Answer Good Answer Guru Populist Good Answer Nice Answer Great Answer Good Answer Generalist Nice Answer Good Answer Investor Altruist Good Answer Good Answer Good Answer Nice Answer Popular Question Guru Nice Answer Guru Yearling Guru Nice Answer Nice Answer Populist Great Answer Great Question Nice Answer Nice Question Notable Question,NULL,pYou can check directly at the href http www w3 org TR CSS21 grammar html scanner rel noreferrer CSS grammar pp emBasically em sup1 sup name must begin with an underscore code code hyphen code code or letter codea code–codez code followed by any number of hyphens underscores letters or numbers There is catch if the first character is hyphen the second character mustsup2 sup be letter or underscore and the name must be at least characters long ppre code zA zA Z0 code prepIn short the previous rule translates to the following extracted from the href https www w3 org TR CSS21 syndata html characters rel noreferrer W3C spec pblockquote pIn CSS identifiers including element names classes and IDs in selectors can contain only the characters z0 and ISO 10646 characters 00A1 and higher plus the hyphen and the underscore they cannot start with digit or hyphen followed by digit Identifiers can also contain escaped characters and any ISO 10646 character as numeric code see next item For instance the identifier amp may be written as amp or 26 3F blockquotepIdentifiers beginning with hyphen or underscore are typically reserved for browser specific extensions as in code moz opacity code pp sup1 sup It all made bit more complicated by the inclusion of escaped unicode characters that no one really uses pp sup2 sup Note that according to the grammar linked rule starting with TWO hyphens code indent1 code is invalid However pretty sure ve seen this in practice bigΩmega believe single character names are valid as long as they start with letter or underscore pI think about the best can do is give you bunch of examples to study Javascript programmers are practically ranked by how well they understand scope It can at times be quite counter intuitive polli strongA globally scoped variable strong ppre code global scopevar function one alert alerts code pre lili strongLocal scope strong ppre code global scopevar function two passing makes it local scope alert alerts the given argument not the global value of local scope againfunction three var alert alerts code pre lili strongIntermediate strong emNo such thing as block scope in JavaScript em ES5 ES6 introduces href https developer mozilla org en US docs Web JavaScript Reference Statements let rel noreferrer codelet code ppa ppre codevar function four if true var alert alerts not the global value of code prepb ppre codevar function one if true let alert alerts because the let keyword uses block scoping code pre lili strongIntermediate strong emObject properties em ppre codevar function Five this alert new Five alerts code pre lili strongAdvanced strong emClosure em ppre codevar var six function var return function JavaScript closure means have access to in here because it is defined in the function in which was defined alert alerts code pre lili strongAdvanced strong emPrototype based scope resolution em ppre codevar function seven this object prototype property loses to object property in the lookup chain For example Won get reached because is set in the constructor above seven prototype Will get reached even though is NOT set in the constructor seven prototype alert new seven alerts alert new seven alerts code prehr lili strongGlobal Local strong emAn extra complex Case em ppre codevar function console log var 10 console log code prepThis will print out codeundefined code and code10 code rather than code5 code and code10 code since JavaScript always moves variable declarations not initializations to the top of the scope making the code equivalent to ppre codevar function var console log 10 console log code pre lili strongCatch clause scoped variable strong ppre codevar console log try throw catch console log console log code prepThis will print out code5 code code6 code code5 code Inside the catch clause codee code shadows global and local variables But this special scope is only for the caught variable If you write codevar code inside the catch clause then it exactly the same as if you had defined it before or after the try catch block li ol did you try it It correct as written the function self executes,0,NULL,NULL 42058,295147,500314,Nice Answer Good Question Nice Answer Great Answer Great Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Pundit Revival Necromancer Yearling Necromancer Nice Answer Necromancer Good Answer Nice Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42059,20000,710772,NULL,NULL,NULL,0,NULL,NULL 42060,86261,1344630,Necromancer,NULL,NULL,0,NULL,NULL 42061,390183,1296161,NULL,NULL,NULL,0,NULL,NULL 42062,162337,267025,ruby-on-rails Popular Question Yearling Nice Answer Necromancer Famous Question Nice Answer mysql Nice Answer Notable Question ruby-on-rails-3 Good Question Popular Question Yearling Good Answer Nice Answer Enlightened Popular Question Nice Answer Popular Question Good Answer Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 42063,11935,759457,NULL,NULL,NULL,0,NULL,NULL 42064,63225,892305,NULL,NULL,NULL,0,NULL,NULL 42065,425620,1027826,Editor Teacher,NULL,NULL,0,NULL,NULL 42066,408349,1372789,Teacher,NULL,NULL,0,NULL,NULL 42067,20069,360728,Popular Question Good Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42068,219774,411421,NULL,NULL,NULL,0,NULL,NULL 42069,23223,1551666,Necromancer Editor Critic,NULL,NULL,0,NULL,NULL 42070,1530185,197788,Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Question Great Question Favorite Question Nice Answer Nice Answer Popular Question Nice Answer Good Answer Yearling Caucus Necromancer Good Answer Good Answer Nice Answer Enlightened Popular Question nlp Good Answer Nice Answer Enlightened Nice Answer Nice Question Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Popular Question Announcer Guru Nice Answer Custodian Nice Answer Good Answer Famous Question Good Question Guru Yearling Guru Populist,NULL,pFollowing the technique is given in emEffective Java em 2nd edition and quoted from there in emProgramming in Scala em Have prime constant we ll say 53 but you may find something larger will give more even distribution here and perform multiplication and addition as follows ppre code 53 int hash row 53 int hash col code prepFor more values say you add coordinate just keep nesting like ppre code 53 int hash row 53 int hash col 53 int hash code prepWhere codeint hash code is function for hashing single integer You can visit this page to find href http web archive org web 20071223173210 http www concentric net Ttwang tech inthash htm rel nofollow noreferrer bunch of good hash functions for single integers ve fixed the prime number Somehow Yongyi reference to Grothendieck prime escaped me when he first posted it Test whether glob has any matches in bash bash glob pIf want to check for the existence of single file can test for it using codetest filename code or code filename code ppSupposing have glob and want to know whether any files exist whose names match the glob The glob can match files in which case need to do nothing or it can match or more files in which case need to do something How can test whether glob has any matches don care how many matches there are and it would be best if could do this with one codeif code statement and no loops simply because find that most readable pp codetest glob code fails if the glob matches more than one file My favorite solutions to this question are the find command http stackoverflow com 4264351 197788 which works in any shell even non Bourne shells but requires GNU find and the compgen command http stackoverflow com 34195247 197788 which is clearly Bashism Too bad can accept both answers,0,NULL,NULL 42071,289146,332884,Revival Necromancer,NULL,NULL,0,NULL,NULL 42072,174921,557822,NULL,NULL,NULL,0,NULL,NULL 42073,760808,536511,NULL,NULL,NULL,0,NULL,NULL 42074,83994,564631,Good Question Notable Question,NULL,NULL,0,NULL,NULL 42075,725951,1077964,NULL,NULL,NULL,0,NULL,NULL 42076,12362,897303,r Nice Answer Enlightened Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 42077,169781,714167,Popular Question Famous Question Yearling Notable Question Famous Question Notable Question Yearling Nice Answer Documentation User Popular Question Informed Census Custodian Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 42078,1243130,814848,Yearling Notable Question,NULL,NULL,0,NULL,NULL 42079,3829,1366749,Revival Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Revival Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 42080,203111,593345,NULL,NULL,NULL,0,NULL,NULL 42081,1112951,912908,NULL,NULL,NULL,0,NULL,NULL 42082,375376,810531,NULL,NULL,NULL,0,NULL,NULL 42083,361642,1389118,Good Answer Yearling Good Answer Necromancer Necromancer Revival Yearling Revival Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 42084,90567,279630,NULL,NULL,NULL,0,NULL,NULL 42085,1531667,1002184,NULL,NULL,NULL,0,NULL,NULL 42086,107213,1002184,NULL,NULL,NULL,0,NULL,NULL 42087,41963,532818,NULL,NULL,NULL,0,NULL,NULL 42088,45563,348459,Good Answer Yearling Guru Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 42089,147603,152147,Notable Question Yearling,NULL,NULL,0,NULL,NULL 42090,69637,1477179,Supporter,NULL,NULL,0,NULL,NULL 42091,215625,496195,NULL,NULL,NULL,0,NULL,NULL 42092,539813,642171,NULL,NULL,NULL,0,NULL,NULL 42093,1565904,1470807,NULL,NULL,NULL,0,NULL,NULL 42094,173726,435909,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42095,628285,487925,Famous Question Popular Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 42096,240637,659136,NULL,NULL,NULL,0,NULL,NULL 42097,158488,1434577,NULL,NULL,NULL,0,NULL,NULL 42098,120240,1074520,Supporter,NULL,NULL,0,NULL,NULL 42099,1356249,903043,Yearling Nice Question,NULL,NULL,0,NULL,NULL 42100,1253862,1107533,NULL,NULL,NULL,0,NULL,NULL 42101,353726,105597,Great Question Yearling Stellar Question Great Answer Yearling Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 42102,107419,933392,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42103,1673704,227541,NULL,NULL,NULL,0,NULL,NULL 42104,90951,1432968,NULL,NULL,NULL,0,NULL,NULL 42105,1218327,268167,Yearling Nice Answer Tumbleweed Yearling Good Answer Nice Answer Enlightened android-sqlite Yearling,NULL,NULL,0,NULL,NULL 42106,515582,40,Popular Question Yearling Notable Question Nice Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Popular Question Popular Question Good Question Famous Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42107,517790,559931,Yearling Popular Question Announcer Nice Answer Notable Question Yearling Census Nice Question Yearling Nice Question Caucus Nice Answer,NULL,NULL,0,NULL,NULL 42108,114545,1173895,NULL,NULL,NULL,0,NULL,NULL 42109,1237768,1345139,NULL,NULL,NULL,0,NULL,NULL 42110,152029,311473,NULL,NULL,NULL,0,NULL,NULL 42111,408275,1185810,NULL,NULL,NULL,0,NULL,NULL 42112,660193,921431,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42113,231708,747768,Editor Supporter Informed Scholar Organizer Commentator Critic Yearling Student Yearling Explainer Custodian Citizen Patrol Yearling Custodian Custodian Enthusiast Caucus Yearling Custodian Census Tumbleweed Yearling Yearling Tenacious Caucus Documentation User Census Yearling Nice Answer Enlightened,NULL,NULL,1,The right way to make continuously redrawn Metal NSView macos cocoa metal pI learning Metal and Cocoa and trying to make boilerplate application as platform for future experiments As part of the process implementing view which will redraw itself or more accurately contents of its codeCAMetalLayer code on 60fps Also for educational purposes Im avoiding codeMTKView code for learning Cocoa part Here an abbreviated code snippet of how tackling the problem ppre code MyMetalView which is subclass of NSView BOOL isOpaque return YES NSViewLayerContentsRedrawPolicy layerContentsRedrawPolicy return NSViewLayerContentsRedrawOnSetNeedsDisplay CALayer makeBackingLayer create CAMetalLayer with default device BOOL wantsLayer return YES BOOL wantsUpdateLayer return YES void displayLayer CALayer layer id lt MTLCommandBuffer gt cmdBuffer commandQueue commandBuffer id lt CAMetalDrawable gt drawable CAMetalLayer layer nextDrawable cmdBuffer enqueue cmdBuffer presentDrawable drawable rendering cmdBuffer commit main init app window and MyMetalView instance invocation will call myMetalViewInstance setNeedsDisplay YES NSTimer scheduledTimerWithTimeInterval 60 invocation setNeedsDisplayInvokation repeats YES NSApp run return code prepIs it the right way to do what want Or have chosen long and not recommended approach,NULL 42114,374781,787184,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42115,137582,893837,NULL,NULL,NULL,0,NULL,NULL 42116,592748,1084673,NULL,NULL,NULL,0,NULL,NULL 42117,4037068,230466,Notable Question Notable Question Yearling Nice Answer Yearling Good Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 42118,171073,230466,Notable Question Notable Question Yearling Nice Answer Yearling Good Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 42119,423320,1293924,Popular Question Yearling Popular Question Commentator Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 42120,2041100,622431,NULL,NULL,NULL,0,NULL,NULL 42121,88850,597959,NULL,NULL,NULL,0,NULL,NULL 42122,2381182,538638,NULL,NULL,NULL,0,NULL,NULL 42123,1763160,818038,NULL,NULL,NULL,0,NULL,NULL 42124,278493,671642,Notable Question,NULL,NULL,0,NULL,NULL 42125,381746,1143495,Yearling google-chrome-devtools Great Answer Nice Answer Enlightened Guru Nice Answer Necromancer Nice Answer Enlightened Guru Guru Enlightened Good Answer Necromancer Revival Guru Nice Answer Guru Popular Question Revival Yearling Nice Answer Enlightened Good Answer Great Answer google-chrome-extension Popular Question Good Answer google-chrome Civic Duty Famous Question Great Answer Popular Question Good Answer Necromancer Announcer Necromancer Nice Answer Enlightened Good Answer Census Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Tumbleweed Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42126,720,911250,Famous Question Famous Question Notable Question Nice Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 42127,228825,959043,Teacher,NULL,NULL,0,NULL,NULL 42128,29903,1307797,NULL,NULL,NULL,0,NULL,NULL 42129,995864,582874,Famous Question,NULL,NULL,0,NULL,NULL 42130,1894302,469387,NULL,NULL,NULL,0,NULL,NULL 42131,473982,180063,NULL,NULL,NULL,0,NULL,NULL 42132,485655,712851,Notable Question,NULL,NULL,0,NULL,NULL 42133,100050,621068,Supporter Notable Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42134,1021845,1412719,NULL,NULL,NULL,0,NULL,NULL 42135,668317,1149972,NULL,NULL,NULL,0,NULL,NULL 42136,2895592,1268926,Yearling Caucus Announcer Announcer Custodian Yearling Excavator,NULL,NULL,0,NULL,NULL 42137,183882,1268926,Yearling Caucus Announcer Announcer Custodian Yearling Excavator,NULL,NULL,0,NULL,NULL 42138,3739838,191776,NULL,NULL,NULL,0,NULL,NULL 42139,138426,77542,Popular Question Popular Question Yearling Popular Question Yearling Nice Answer Yearling Benefactor Popular Question,NULL,NULL,0,NULL,NULL 42140,1123873,1540173,NULL,NULL,NULL,0,NULL,NULL 42141,259041,716898,Autobiographer,NULL,NULL,0,NULL,NULL 42142,101204,38662,Scholar Guru Popular Question Yearling Census Tag Editor,NULL,NULL,0,NULL,NULL 42143,165356,775949,NULL,NULL,NULL,0,NULL,NULL 42144,17765,1304165,NULL,NULL,NULL,0,NULL,NULL 42145,540556,1292134,NULL,NULL,NULL,0,NULL,NULL 42146,128508,1544597,NULL,NULL,NULL,0,NULL,NULL 42147,396080,1156322,Guru Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 42148,59257,548689,NULL,NULL,NULL,0,NULL,NULL 42149,153127,809280,Nice Answer Yearling Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42150,139531,160256,Great Answer Revival Notable Question Yearling Revival Nice Answer Yearling Census Tumbleweed Enthusiast Necromancer Yearling,NULL,NULL,0,NULL,NULL 42151,598483,338238,NULL,NULL,NULL,0,NULL,NULL 42152,1135588,902694,Supporter,NULL,NULL,0,NULL,NULL 42153,2112313,902694,Supporter,NULL,NULL,0,NULL,NULL 42154,245544,788432,Notable Question,NULL,NULL,0,NULL,NULL 42155,1898277,1252354,NULL,NULL,NULL,0,NULL,NULL 42156,166814,1058536,NULL,NULL,NULL,0,NULL,NULL 42157,212617,532443,NULL,NULL,NULL,0,NULL,NULL 42158,307892,1306187,Yearling Yearling Custodian Custodian Enthusiast Yearling Citizen Patrol Tumbleweed Tenacious Scholar Student Yearling Caucus Curious Yearling Popular Question Revival Caucus Necromancer Yearling,NULL,NULL,1,Can not connect PostgreSQL over SSL with RPostgresql on Windows windows ssl heroku rpostgresql pI can not connect PostgreSQL on Heroku with RPostgreSQL on Windows 64bit ppI can connect local postgresql not ssl with RPostgreSQL on Windows can connect PostgreSQL on Heroku from PgAdmin on Windows can connect PostgreSQL on Heroku with RPostgreSQL on OSX and Linux ppOnly RPostgreSQL on Windows can not connect Heroku PostgreSQL ppError message is ppre codeError in postgresqlNewConnection drv RD DBI driver could not connect xxxxx code prepIs there any solution,NULL 42159,1512201,834835,NULL,NULL,NULL,0,NULL,NULL 42160,256488,437495,NULL,NULL,NULL,0,NULL,NULL 42161,145972,306493,NULL,NULL,NULL,0,NULL,NULL 42162,1046436,438636,Necromancer Custodian Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 42163,422047,69319,NULL,NULL,NULL,0,NULL,NULL 42164,263107,114197,Critic Necromancer,NULL,NULL,0,NULL,NULL 42165,335210,217368,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42166,1218924,786061,NULL,NULL,NULL,0,NULL,NULL 42167,15817,1345418,Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 42168,251946,329913,Yearling Good Question Nice Question Famous Question Famous Question Notable Question Famous Question Good Answer Notable Question Favorite Question Yearling Good Question Popular Question Popular Question Notable Question Guru Yearling Popular Question Favorite Question python,NULL,NULL,0,NULL,NULL 42169,286871,1205219,NULL,NULL,NULL,0,NULL,NULL 42170,107110,469794,Yearling Nice Answer Enlightened Revival Curious Informed Yearling Revival Popular Question Custodian Necromancer Good Question,NULL,NULL,0,NULL,NULL 42171,1380508,934861,NULL,NULL,NULL,0,NULL,NULL 42172,101876,1342756,NULL,NULL,NULL,0,NULL,NULL 42173,31367,1333234,NULL,NULL,NULL,0,NULL,NULL 42174,1221531,362654,NULL,NULL,NULL,0,NULL,NULL 42175,627410,982440,NULL,NULL,NULL,0,NULL,NULL 42176,126717,1482057,NULL,NULL,NULL,0,NULL,NULL 42177,32921,143175,NULL,NULL,NULL,0,NULL,NULL 42178,260308,1275949,NULL,NULL,NULL,0,NULL,NULL 42179,121872,238198,NULL,NULL,NULL,0,NULL,NULL 42180,75982,1161994,NULL,NULL,NULL,0,NULL,NULL 42181,706589,356242,Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 42182,124473,711874,NULL,NULL,NULL,0,NULL,NULL 42183,829644,621036,NULL,NULL,NULL,0,NULL,NULL 42184,519697,1401386,Popular Question,NULL,NULL,0,NULL,NULL 42185,39586,1523640,Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 42186,27873,1349258,Announcer,NULL,,0,, 42187,47853,740995,NULL,NULL,NULL,0,NULL,NULL 42188,135212,645277,NULL,NULL,NULL,0,NULL,NULL 42189,297084,675934,Nice Question Notable Question Announcer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 42190,27634,29540,Famous Question Popular Question Yearling Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 42191,59549,457723,NULL,NULL,NULL,0,NULL,NULL 42192,96476,244791,NULL,NULL,NULL,0,NULL,NULL 42193,126959,506255,Investor Yearling Student Scholar Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42194,135613,965679,Popular Question Good Answer Curious Popular Question Popular Question Necromancer Guru Populist Nice Answer Yearling Revival Nice Answer Great Answer Yearling Great Answer Yearling Popular Question Custodian Good Answer,NULL,pThe correct way to create user in Django is to use the create user function This will handle the hashing of the password etc ppre codefrom django contrib auth models import Useruser User objects create user username john email jlennon com password glass onion code pre Yes For full documentation go here https docs djangoproject com en ref contrib auth django contrib auth models UserManager create user,0,NULL,NULL 42195,3799,554531,Notable Question Famous Question Nice Question Yearling Organizer Informed Custodian Citizen Patrol Custodian Custodian Yearling Autobiographer Yearling Excavator Necromancer Explainer Reviewer Nice Question Reviewer Tenacious Popular Question Nice Answer Custodian Proofreader Famous Question Yearling Famous Question Steward Electorate Necromancer Nice Answer Enlightened Necromancer Announcer r Popular Question Necromancer Yearling Notable Question Popular Question Popular Question Good Question Self-Learner Popular Question Taxonomist Announcer,NULL,Minimize total distance between two sets of points in Python python scipy euclidean distance pGiven two sets of points in dimensional space how can one map points from one set to the other such that each point is only used once and the total euclidean distance between the pairs of points is minimized ppFor example ppre codeimport matplotlib pyplot as pltimport numpy as np create six points in 2d space the first three belong to set and the second three belong to set colors red blue 3plt scatter colors plt show code prep href https stack imgur com 6q6ah png rel nofollow noreferrer img src https stack imgur com 6q6ah png alt example of point distance minimization problem ppSo in the example above the goal would be to map each red point to blue point such that each blue point is only used once and the sum of the distances between points is minimized ppI came across href https stackoverflow com questions 1871536 euclidean distance between points in two different numpy arrays not within this question which helps to solve the first part of the problem computing the distances between all pairs of points emacross em sets using the codescipy spatial distance cdist code function ppFrom there could probably test every permutation of single elements from each row and find the minimum ppThe application have in mind involves fairly small number of datapoints in dimensional space so the brute force approach might be fine but thought would check to see if anyone knows of more efficient or elegant solution first Primarily interested in python answers but if there is simple algorithmic solution be interested in that as well As far as the size be interested in both cases one where the sets are the same size and another where one set is larger than the other Either or both solutions would be useful Minimize total distance between two sets of points in Python python scipy euclidean distance pGiven two sets of points in dimensional space how can one map points from one set to the other such that each point is only used once and the total euclidean distance between the pairs of points is minimized ppFor example ppre codeimport matplotlib pyplot as pltimport numpy as np create six points in 2d space the first three belong to set and the second three belong to set colors red blue 3plt scatter colors plt show code prep href https stack imgur com 6q6ah png rel nofollow noreferrer img src https stack imgur com 6q6ah png alt example of point distance minimization problem ppSo in the example above the goal would be to map each red point to blue point such that each blue point is only used once and the sum of the distances between points is minimized ppI came across href https stackoverflow com questions 1871536 euclidean distance between points in two different numpy arrays not within this question which helps to solve the first part of the problem computing the distances between all pairs of points emacross em sets using the codescipy spatial distance cdist code function ppFrom there could probably test every permutation of single elements from each row and find the minimum ppThe application have in mind involves fairly small number of datapoints in dimensional space so the brute force approach might be fine but thought would check to see if anyone knows of more efficient or elegant solution first Thanks for pointing that out to me hadn heard of it before It looks like it is trying to solve the same problem Do you think you could post an answer which applies it in the context of two sets of points,1,Minimize total distance between two sets of points in Python python scipy euclidean distance pGiven two sets of points in dimensional space how can one map points from one set to the other such that each point is only used once and the total euclidean distance between the pairs of points is minimized ppFor example ppre codeimport matplotlib pyplot as pltimport numpy as np create six points in 2d space the first three belong to set and the second three belong to set colors red blue 3plt scatter colors plt show code prep href https stack imgur com 6q6ah png rel nofollow noreferrer img src https stack imgur com 6q6ah png alt example of point distance minimization problem ppSo in the example above the goal would be to map each red point to blue point such that each blue point is only used once and the sum of the distances between points is minimized ppI came across href https stackoverflow com questions 1871536 euclidean distance between points in two different numpy arrays not within this question which helps to solve the first part of the problem computing the distances between all pairs of points emacross em sets using the codescipy spatial distance cdist code function ppFrom there could probably test every permutation of single elements from each row and find the minimum ppThe application have in mind involves fairly small number of datapoints in dimensional space so the brute force approach might be fine but thought would check to see if anyone knows of more efficient or elegant solution first,NULL 42196,61743,1553083,Popular Question,NULL,NULL,0,NULL,NULL 42197,168766,188847,NULL,NULL,NULL,0,NULL,NULL 42198,1114169,1336489,NULL,NULL,NULL,0,NULL,NULL 42199,377701,1336489,NULL,NULL,NULL,0,NULL,NULL 42200,364960,652731,Custodian Yearling Stellar Question Excavator Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 42201,1119592,594557,NULL,NULL,NULL,0,NULL,NULL 42202,437140,1170247,NULL,NULL,NULL,0,NULL,NULL 42203,927388,768720,NULL,NULL,NULL,0,NULL,NULL 42204,733298,612572,NULL,NULL,NULL,0,NULL,NULL 42205,38476,41752,Yearling Necromancer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 42206,370732,511407,NULL,NULL,NULL,0,NULL,NULL 42207,999121,16572,Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 42208,152809,153657,NULL,NULL,NULL,0,NULL,NULL 42209,287522,20588,Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Famous Question Popular Question Necromancer Yearling Revival Announcer,NULL,NULL,0,NULL,NULL 42210,231448,1148392,NULL,NULL,NULL,0,NULL,NULL 42211,85689,700268,Popular Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 42212,317051,577253,NULL,NULL,NULL,0,NULL,NULL 42213,127848,481149,NULL,NULL,NULL,0,NULL,NULL 42214,1343390,481149,NULL,NULL,NULL,0,NULL,NULL 42215,173934,1297965,Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 42216,616065,784420,NULL,NULL,NULL,0,NULL,NULL 42217,104518,575017,Enlightened,NULL,NULL,0,NULL,NULL 42218,98670,889166,NULL,NULL,NULL,0,NULL,NULL 42219,780162,1336615,Student Famous Question,NULL,NULL,0,NULL,NULL 42220,365787,212443,Good Question Popular Question Popular Question Nice Answer Nice Answer Yearling Revival Nice Question Famous Question Popular Question Notable Question Good Answer Good Question Notable Question Revival Necromancer Yearling Nice Answer Self-Learner css Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 42221,1414470,1508309,Teacher Supporter Informed Student Editor Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 42222,160812,832458,NULL,NULL,NULL,0,NULL,NULL 42223,910272,754450,NULL,NULL,NULL,0,NULL,NULL 42224,517032,1007683,Documentation User,NULL,NULL,0,NULL,NULL 42225,3992643,1054647,Good Answer Populist Yearling Commentator,NULL,NULL,0,NULL,NULL 42226,256475,501266,Necromancer Supporter Yearling Critic Informed Yearling Explainer Yearling Custodian Yearling Self-Learner ruby Tenacious Enthusiast Unsung Hero Yearling Popular Question Necromancer Caucus Yearling Autobiographer Popular Question Caucus Necromancer Yearling Notable Question,NULL,How to fix Travis error NoMethodError undefined method spec for nil NilClass ruby bundler travis ci pThis is the error reported by Travis CI when it try to build my gem under Ruby ppre codeNoMethodError undefined method spec for nil NilClass code prepI cannot find any reason or source for this error ppThis is causing build failures which is misleading people into believing that the code in the gem itself is incorrect ppWhy might this be happening and how can fix it Yes use rspec for testing and it specified in the gemspec as development dependency Please note that the answer below is mine and it fixed the problem though if you or anyone has better solution that welcomed pIf you want any unhandled exception in any thread to cause the interpreter to exit you need to set href http ruby doc org core Thread html method abort on exception 3D Thread abort on exception to codetrue code Unhandled exception cause the thread to stop running If you don set this variable to true exception will only be raised when you call codeThread join code or codeThread value code for the thread If set to true it will be raised when it occurs and will propagate to the main thread ppre codeThread abort on exception true add thisdef foo puts for sleep raise after endbegin threads 15 20 each do threads lt lt Thread new do foo end end threads each amp join rescue Exception gt puts EXCEPTION inspect puts MESSAGE message end code prepOutput ppre code for for 20 for for 15EXCEPTION lt RuntimeError after gt MESSAGE after code prepNote but if you want any particular thread instance to raise exception this way there are similar href http ruby doc org core Thread html method abort on exception abort on exception Thread instance method ppre codet Thread new do something and raise exception abort on exception true code pre If this code is in gem or will otherwise be called by code beyond your control then the instance method isn very helpful either since you are effectively dictating abort behavior to the entire runtime most of which you have no knowledge of or should have control over,1,How to fix Travis error NoMethodError undefined method spec for nil NilClass ruby bundler travis ci pThis is the error reported by Travis CI when it try to build my gem under Ruby ppre codeNoMethodError undefined method spec for nil NilClass code prepI cannot find any reason or source for this error ppThis is causing build failures which is misleading people into believing that the code in the gem itself is incorrect ppWhy might this be happening and how can fix it,NULL 42227,77931,259567,Yearling Famous Question Nice Question Necromancer Nice Answer Yearling Caucus Popular Question Necromancer Popular Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 42228,67488,160015,Popular Question Popular Question Yearling Popular Question Good Question Notable Question Nice Question Famous Question Popular Question Famous Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 42229,832112,893379,Nice Answer,NULL,NULL,0,NULL,NULL 42230,420450,1060820,NULL,NULL,NULL,0,NULL,NULL 42231,44807,1296938,NULL,NULL,NULL,0,NULL,NULL 42232,220600,1248227,Great Answer Yearling Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 42233,1560377,1400488,NULL,NULL,NULL,0,NULL,NULL 42234,532875,1009106,Editor Tumbleweed Enthusiast Revival,NULL,NULL,0,NULL,NULL 42235,57413,509642,NULL,NULL,NULL,0,NULL,NULL 42236,123062,232976,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42237,64628,805123,NULL,NULL,NULL,0,NULL,NULL 42238,901191,606030,NULL,NULL,NULL,0,NULL,NULL 42239,126665,47908,Yearling Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 42240,607206,67648,NULL,NULL,NULL,0,NULL,NULL 42241,275566,840560,NULL,NULL,NULL,0,NULL,NULL 42242,486846,413202,NULL,NULL,NULL,0,NULL,NULL 42243,853756,870263,NULL,NULL,NULL,0,NULL,NULL 42244,6930849,209333,Famous Question Nice Answer Good Question Famous Question Good Question Great Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42245,17735,209333,Famous Question Nice Answer Good Question Famous Question Good Question Great Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42246,1560628,744423,Popular Question,NULL,NULL,0,NULL,NULL 42247,279431,1413806,Yearling,NULL,NULL,0,NULL,NULL 42248,629105,864662,NULL,NULL,NULL,0,NULL,NULL 42249,236036,50631,NULL,NULL,NULL,0,NULL,NULL 42250,4434,772974,NULL,NULL,NULL,0,NULL,NULL 42251,107724,796241,Popular Question,NULL,NULL,0,NULL,NULL 42252,450629,1073720,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42253,8726747,1073720,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42254,598353,625709,Nice Question Yearling Popular Question Nice Answer Enlightened Nice Answer Famous Question Nice Answer Good Answer Good Question Good Answer Revival Notable Question Popular Question Guru Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Enlightened Popular Question Yearling Necromancer Nice Answer Popular Question,NULL,pOn hunch and based on DrummerB inspiration tried simply adding codeUIRefreshControl code instance as subview to my codeUITableView code And it magically just works ppre codeUIRefreshControl refreshControl UIRefreshControl alloc init refreshControl addTarget self action handleRefresh forControlEvents UIControlEventValueChanged self myTableView addSubview refreshControl code prepThis adds codeUIRefreshControl code above your table view and works as expected without having to use codeUITableViewController code phrpEDIT This above still works but as few have pointed out there is slight stutter when adding the UIRefreshControl in this manner solution to that is to instantiate UITableViewController and then setting your UIRefreshControl and UITableView to that ppre codeUITableViewController tableViewController UITableViewController alloc init tableViewController tableView self myTableView self refreshControl UIRefreshControl alloc init self refreshControl addTarget self action getConnections forControlEvents UIControlEventValueChanged tableViewController refreshControl self refreshControl code pre are you sure your table view has appropriate auto layout constraints connected to your view leading and trailing in particular,0,NULL,NULL 42255,187109,446813,Notable Question Nice Question Popular Question Autobiographer Citizen Patrol Custodian Critic Famous Question Necromancer Nice Answer Yearling,NULL,is crontab broken on OSX El Capitan macos cron strongQuestion strong Is codecron code supposed to work in OSX El Capitan pp strongBackground strong ve used crontab for years on OSX but with El Capitan it seems not to work added my username to code usr lib cron cron allow code and even rebooted the machine but still my cron jobs don do anything nor do they mail me with errors The manpages suggest Apple doesn want people using cron but they don say it is nonfunctional yet It working fine for me original reporter now with OSX 10 11 beta don know what was wrong,0,NULL,NULL 42256,500891,710395,Tumbleweed Nice Question Notable Question Notable Question Self-Learner Critic Curious Commentator Informed Yearling,NULL,NULL,0,NULL,NULL 42257,298524,1089786,NULL,NULL,NULL,0,NULL,NULL 42258,193385,270617,NULL,NULL,NULL,0,NULL,NULL 42259,61126,74574,Popular Question Popular Question Favorite Question Yearling Notable Question Popular Question Great Question Good Question Popular Question Yearling Notable Question Famous Question Census Yearling,NULL,NULL,0,NULL,NULL 42260,257709,1443406,NULL,NULL,NULL,0,NULL,NULL 42261,234907,633055,NULL,NULL,NULL,0,NULL,NULL 42262,909797,311248,NULL,NULL,NULL,0,NULL,NULL 42263,250919,1131589,Editor Notable Question Commentator,NULL,NULL,0,NULL,NULL 42264,96196,577931,Popular Question,NULL,NULL,0,NULL,NULL 42265,1043664,832758,Teacher Notable Question Supporter,NULL,NULL,0,NULL,NULL 42266,1196362,892805,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 42267,8994,528507,Famous Question Yearling jquery Yearling Nice Answer,NULL,NULL,0,NULL,NULL 42268,489707,1381207,NULL,NULL,NULL,0,NULL,NULL 42269,147081,585105,Yearling Guru Nice Answer Caucus Good Answer Constituent Guru Yearling Nice Answer Nice Answer Great Answer Caucus Constituent Guru Nice Answer Enlightened Yearling,NULL,pre codevar item items Math floor Math random items length code pre Math round is not valid substitution for Math floor Using round would cause accidentally referencing an undefined index say in the case Math random is 95 and items length is Math round 95 is which would be an invalid index floor random will always be zero in your example pre codevar item items Math floor Math random items length code pre that true as long as the array length is less than 31 which is still very large number,0,NULL,NULL 42270,79082,735225,NULL,NULL,NULL,0,NULL,NULL 42271,53530,247700,Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 42272,170891,631774,NULL,NULL,NULL,0,NULL,NULL 42273,104069,417883,NULL,NULL,NULL,0,NULL,NULL 42274,6719067,427604,NULL,NULL,NULL,0,NULL,NULL 42275,12545,427604,NULL,NULL,NULL,0,NULL,NULL 42276,76191,634734,Revival,NULL,NULL,0,NULL,NULL 42277,351766,1232692,Organizer Yearling Custodian Yearling Civic Duty Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 42278,132586,795760,NULL,NULL,NULL,0,NULL,NULL 42279,399590,818003,NULL,NULL,NULL,0,NULL,NULL 42280,667906,876378,NULL,NULL,NULL,0,NULL,NULL 42281,232059,115106,Yearling Notable Question Notable Question Good Answer Yearling Explainer Yearling,NULL,NULL,0,NULL,NULL 42282,1021667,1343574,NULL,NULL,NULL,0,NULL,NULL 42283,41545,53192,Yearling Enlightened Good Answer Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 42284,326135,1316378,NULL,NULL,NULL,0,NULL,NULL 42285,54715,109908,NULL,NULL,NULL,0,NULL,NULL 42286,834431,153349,Nice Question Famous Question Popular Question Nice Question Revival Good Answer Popular Question Yearling Caucus Custodian Reviewer Custodian Nice Question Popular Question Guru Famous Question Caucus Yearling Announcer Popular Question Guru Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42287,43433,336290,NULL,NULL,NULL,0,NULL,NULL 42288,519323,833975,Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42289,365112,157042,Nice Question,NULL,NULL,0,NULL,NULL 42290,75637,49215,Popular Question Nice Question Nice Question Popular Question Favorite Question Yearling Famous Question Famous Question Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 42291,232386,686014,Popular Question,NULL,NULL,0,NULL,NULL 42292,129253,1066244,Popular Question Revival,NULL,NULL,0,NULL,NULL 42293,497419,755661,Yearling Revival Notable Question Popular Question Caucus Constituent Citizen Patrol Yearling Popular Question Caucus Necromancer Yearling Populist Yearling Notable Question,NULL,NULL,0,NULL,NULL 42294,128229,756501,Supporter,NULL,NULL,0,NULL,NULL 42295,286524,160137,Popular Question Famous Question Notable Question Famous Question Yearling Nice Question Commentator Yearling Census Popular Question Good Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42296,1324931,1529743,NULL,NULL,NULL,0,NULL,NULL 42297,80967,1052133,Yearling,NULL,NULL,0,NULL,NULL 42298,12453,254140,Popular Question Supporter,NULL,NULL,0,NULL,NULL 42299,86012,722105,NULL,NULL,NULL,0,NULL,NULL 42300,84337,620672,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42301,46765,638239,NULL,NULL,NULL,0,NULL,NULL 42302,53079,72966,NULL,NULL,NULL,0,NULL,NULL 42303,7405,92434,NULL,NULL,NULL,0,NULL,NULL 42304,9067,1215760,Teacher,NULL,NULL,0,NULL,NULL 42305,407448,378861,Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 42306,119556,478894,Popular Question Student,NULL,NULL,0,NULL,NULL 42307,125533,868045,NULL,NULL,NULL,0,NULL,NULL 42308,162069,1143984,NULL,NULL,NULL,0,NULL,NULL 42309,5408,843724,Popular Question,NULL,NULL,0,NULL,NULL 42310,31531,1090754,NULL,NULL,NULL,0,NULL,NULL 42311,444840,800170,Popular Question Yearling Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42312,242744,560565,Popular Question,NULL,NULL,0,NULL,NULL 42313,298397,880885,Nice Answer Enlightened Commentator Critic Good Question,NULL,NULL,0,NULL,NULL 42314,168743,439021,Critic Good Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 42315,65527,517805,NULL,NULL,NULL,0,NULL,NULL 42316,557893,941536,Nice Question Guru Autobiographer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Good Answer Guru Announcer Yearling Announcer Famous Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42317,38227,278423,NULL,NULL,NULL,0,NULL,NULL 42318,101832,603378,NULL,NULL,NULL,0,NULL,NULL 42319,17435,291544,Yearling Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 42320,52666,291544,Yearling Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 42321,45813,939835,NULL,NULL,NULL,0,NULL,NULL 42322,129307,885949,NULL,NULL,NULL,0,NULL,NULL 42323,99188,877694,Necromancer Nice Answer Caucus Notable Question Necromancer Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 42324,497669,132413,Yearling Yearling,NULL,NULL,0,NULL,NULL 42325,401562,231762,Great Question Yearling Census Yearling Commentator,NULL,NULL,0,NULL,NULL 42326,107245,1137046,Teacher,NULL,NULL,0,NULL,NULL 42327,187474,792122,NULL,NULL,NULL,0,NULL,NULL 42328,3158904,1165379,NULL,NULL,NULL,0,NULL,NULL 42329,6432,196974,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 42330,188977,80636,Yearling Custodian Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 42331,722095,873767,Yearling Nice Answer Yearling Good Answer Documentation User Guru Yearling,NULL,NULL,0,NULL,NULL 42332,156659,867039,NULL,NULL,NULL,0,NULL,NULL 42333,96391,356788,Guru docker Custodian Custodian Yearling Nice Answer Necromancer Peer Pressure Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Popular Question Yearling Enlightened Benefactor Notable Question Documentation User Good Answer Nice Answer Good Question Yearling Guru,NULL,pDocker originally used href http lxc sourceforge net rel noreferrer LinuX Containers LXC but later switched to href https github com opencontainers runc rel noreferrer runC formerly known as stronglibcontainer strong which runs in the same operating system as its host This allows it to share lot of the host operating system resources Also it uses layered filesystem href http aufs sourceforge net rel noreferrer AuFS and manages networking ppAuFS is layered file system so you can have read only part and write part which are merged together One could have the common parts of the operating system as read only and shared amongst all of your containers and then give each container its own mount for writing ppSo let say you have nbsp GB container image if you wanted to use full VM you would need to have nbsp GB times number of VMs you want With Docker and AuFS you can share the bulk of the nbsp GB between all the containers and if you have 1000 containers you still might only have little over nbsp GB of space for the containers OS assuming they are all running the same OS image ppA full virtualized system gets its own set of resources allocated to it and does minimal sharing You get more isolation but it is much heavier requires more resources With Docker you get less isolation but the containers are lightweight require fewer resources So you could easily run thousands of containers on host and it won even blink Try doing that with Xen and unless you have really big host don think it is possible ppA full virtualized system usually takes minutes to start whereas Docker LXC runC containers take seconds and often even less than second ppThere are pros and cons for each type of virtualized system If you want full isolation with guaranteed resources full VM is the way to go If you just want to isolate processes from each other and want to run ton of them on reasonably sized host then Docker LXC runC seems to be the way to go ppFor more information check out href http web archive org web 20150326185901 http blog dotcloud com under the hood linux kernels on dotcloud part rel noreferrer this set of blog posts which do good job of explaining how LXC works pblockquote pWhy is deploying software to docker image if that the right term easier than simply deploying to consistent production environment blockquotepDeploying consistent production environment is easier said than done Even if you use tools like href https en wikipedia org wiki Chef 28software 29 rel noreferrer Chef and href https en wikipedia org wiki Puppet 28software 29 rel noreferrer Puppet there are always OS updates and other things that change between hosts and environments ppDocker gives you the ability to snapshot the OS into shared image and makes it easy to deploy on other Docker hosts Locally dev qa prod etc all the same image Sure you can do this with other tools but not nearly as easily or fast ppThis is great for testing let say you have thousands of tests that need to connect to database and each test needs pristine copy of the database and will make changes to the data The classic approach to this is to reset the database after every test either with custom code or with tools like href https flywaydb org rel noreferrer Flyway this can be very time consuming and means that tests must be run serially However with Docker you could create an image of your database and run up one instance per test and then run all the tests in parallel since you know they will all be running against the same snapshot of the database Since the tests are running in parallel and in Docker containers they could run all on the same box at the same time and should finish much faster Try doing that with full VM ppFrom comments pblockquote pInteresting suppose still confused by the notion of snapshot ting the OS How does one do that without well making an image of the OS blockquotepWell let see if can explain You start with base image and then make your changes and commit those changes using docker and it creates an image This image contains only the differences from the base When you want to run your image you also need the base and it layers your image on top of the base using layered file system as mentioned above Docker uses AUFS AUFS merges the different layers together and you get what you want you just need to run it You can keep adding more and more images layers and it will continue to only save the diffs Since Docker typically builds on top of ready made images from href https registry hub docker com rel noreferrer registry you rarely have to snapshot the whole OS yourself You can run Windows containers on Linux since windows kernel isn open source But you can run Linux containers on windows See this blog post from Microsoft for more details https blogs technet microsoft com hybridcloud 2017 04 18 dockercon 2017 powering new linux innovations with hyper isolation and windows server because of this you can develop on windows with Linux container and also run it on any Linux server so you can truly build once and run anywhere,0,NULL,NULL 42334,339189,54661,NULL,NULL,NULL,0,NULL,NULL 42335,47573,968203,NULL,NULL,NULL,0,NULL,NULL 42336,331895,1311258,Popular Question,NULL,NULL,0,NULL,NULL 42337,402363,343267,NULL,NULL,NULL,0,NULL,NULL 42338,169876,1365823,NULL,NULL,NULL,0,NULL,NULL 42339,13290,1144404,NULL,NULL,NULL,0,NULL,NULL 42340,281204,1022493,NULL,NULL,NULL,0,NULL,NULL 42341,370445,1327528,Nice Answer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 42342,251251,655693,NULL,NULL,NULL,0,NULL,NULL 42343,425532,1208780,NULL,NULL,NULL,0,NULL,NULL 42344,227069,217403,Notable Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42345,1336725,635653,Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Yearling Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42346,569844,550371,NULL,NULL,NULL,0,NULL,NULL 42347,12933,1191688,NULL,NULL,NULL,0,NULL,NULL 42348,168463,833814,NULL,NULL,NULL,0,NULL,NULL 42349,313583,1435966,Nice Answer Critic Informed Yearling Notable Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 42350,29578,668318,NULL,NULL,NULL,0,NULL,NULL 42351,60781,1164173,Student,NULL,NULL,0,NULL,NULL 42352,401122,235077,NULL,NULL,NULL,0,NULL,NULL 42353,601189,478597,Yearling Caucus Nice Answer Caucus Yearling Caucus Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 42354,199079,564662,Good Answer,NULL,NULL,0,NULL,NULL 42355,18076,948175,NULL,NULL,NULL,0,NULL,NULL 42356,87006,720268,Student Popular Question,NULL,NULL,0,NULL,NULL 42357,1273951,139706,NULL,NULL,NULL,0,NULL,NULL 42358,28053,417862,Excavator Caucus Constituent Necromancer Custodian Critic Suffrage Vox Populi Informed Civic Duty Nice Answer Enlightened Caucus Census Caucus Constituent Yearling,NULL,pFrom href http www sqlite org faq html rel noreferrer http www sqlite org faq html pblockquote 11 How do add or delete columns from an existing table in SQLite pSQLite has limited ALTER TABLE support that you can use to add column to the end of table or to change the name of table If you want to make more complex changes in the structure of table you will have to recreate the table You can save existing data to temporary table drop the old table create the new table then copy the data back in from the temporary table pFor example suppose you have table named t1 with columns names and and that you want to delete column from this table The following steps illustrate how this could be done ppre codeBEGIN TRANSACTION CREATE TEMPORARY TABLE t1 backup INSERT INTO t1 backup SELECT FROM t1 DROP TABLE t1 CREATE TABLE t1 INSERT INTO t1 SELECT FROM t1 backup DROP TABLE t1 backup COMMIT code pre blockquote You need to perform the VACUUM command after removing the columns for security without vacuuming the database file still contains the data of deleted columns,0,NULL,NULL 42359,585948,886978,Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 42360,131707,1411683,Critic Yearling,NULL,NULL,0,NULL,NULL 42361,71372,1465312,NULL,NULL,NULL,0,NULL,NULL 42362,498388,938494,Editor Teacher Enthusiast Supporter Student Informed Necromancer Autobiographer Scholar Critic Nice Answer Excavator Tumbleweed Yearling Yearling,NULL,NULL,0,NULL,NULL 42363,340199,1125680,NULL,NULL,NULL,0,NULL,NULL 42364,902616,850686,NULL,NULL,NULL,0,NULL,NULL 42365,1292242,1325622,Nice Answer,NULL,NULL,0,NULL,NULL 42366,435239,1325622,Nice Answer,NULL,NULL,0,NULL,NULL 42367,418628,80678,Citizen Patrol Enthusiast Yearling,NULL,NULL,0,NULL,NULL 42368,83865,1287507,NULL,NULL,NULL,0,NULL,NULL 42369,301549,1460756,Popular Question Yearling Famous Question Custodian Famous Question Nice Question Yearling Good Answer Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 42370,44210,157384,Nice Question Yearling Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 42371,65892,502676,Necromancer Nice Answer Good Answer Nice Answer Necromancer Nice Answer Enlightened Yearling Popular Question Nice Answer Good Answer Great Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 42372,200127,554521,Notable Question Critic Famous Question Census Notable Question,NULL,NULL,0,NULL,NULL 42373,112185,1445578,NULL,NULL,NULL,0,NULL,NULL 42374,1168389,140477,Notable Question Good Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Famous Question Enthusiast Notable Question Notable Question Famous Question Popular Question Excavator Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 42375,93910,803998,NULL,NULL,NULL,0,NULL,NULL 42376,1392633,71200,Nice Answer Popular Question Yearling Popular Question Necromancer Notable Question Nice Question Popular Question Nice Answer Enlightened Notable Question Notable Question Notable Question Yearling Good Answer Nice Answer Popular Question Famous Question Nice Answer Popular Question Popular Question Yearling Revival Good Question Nice Answer,NULL,NULL,0,NULL,NULL 42377,170763,237950,Civic Duty Nice Answer Announcer dgrid Nice Answer Nice Answer Yearling Announcer Nice Answer Enlightened javascript Yearling Taxonomist Revival,NULL,NULL,0,NULL,NULL 42378,32995,1467322,Yearling Announcer Good Answer Yearling Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 42379,908010,605369,NULL,NULL,NULL,0,NULL,NULL 42380,4,284612,Yearling,NULL,NULL,0,NULL,NULL 42381,228298,730389,Famous Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 42382,192840,383923,NULL,NULL,NULL,0,NULL,NULL 42383,921443,476358,NULL,NULL,NULL,0,NULL,NULL 42384,37632,404810,NULL,NULL,NULL,0,NULL,NULL 42385,76692,107344,Popular Question Favorite Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42386,12915,1412254,Yearling Teacher Editor,NULL,NULL,0,NULL,NULL 42387,76141,195638,Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 42388,547708,396823,Yearling Editor Caucus,NULL,NULL,0,NULL,NULL 42389,164995,920357,Popular Question,NULL,NULL,0,NULL,NULL 42390,82660,1324705,NULL,NULL,NULL,0,NULL,NULL 42391,353483,20082,Great Answer Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42392,1519718,540320,NULL,NULL,NULL,0,NULL,NULL 42393,383615,963667,NULL,NULL,NULL,0,NULL,NULL 42394,505236,1074377,Nice Question Yearling Self-Learner Notable Question Popular Question,NULL,NULL,1,Android Studio Instant Run causes DexFile to not load all classes android android multidex android studio pI had some code to get list of all the classes in package that looked something like this ppre code try DexFile df new DexFile context getPackageCodePath for Enumeration lt String gt iter df entries iter hasMoreElements String iter nextElement catch IOException printStackTrace code prepHowever this code has stopped working since upgraded my Android Studio to version ve found that the culprit is Instant Run If debug the app can see that without instance run the DexFile variable df contains list of class names over 000 of them When Instant Run is turned on only get like 30 or so class names and the classes that looking for aren there have feeling it has something to do with multi dex but not sure how Instant Run is working under the covers my app does not use multidex ppDoes anyone know how can get list of classes like this with Instant Run turned on Or does anyone know exactly why Im seeing this behaviour would be great to understand it,NULL 42395,16523,855007,Yearling Necromancer,NULL,NULL,0,NULL,NULL 42396,46427,948199,Notable Question,NULL,NULL,0,NULL,NULL 42397,6494514,187827,NULL,NULL,NULL,0,NULL,NULL 42398,877510,72827,NULL,NULL,NULL,0,NULL,NULL 42399,112856,908172,Guru Yearling Yearling Nice Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 42400,5230,1551109,Popular Question Tumbleweed Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42401,208162,717965,Good Answer Yearling Nice Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Necromancer audio Yearling Guru Good Answer,NULL,pHere one ve used that based on few different functions ve found in white papers and things like that ppre codefunction makeDistortionCurve amount var typeof amount number amount 50 samples 44100 curve new Float32Array samples deg Math PI 180 for lt samples samples curve 20 deg Math PI Math abs return curve code prepI be lying if told you knew where the code3 code or code20 code come from but it works ppThe value of codeamount code can basically be any positive number but ve found that 100 is pretty good range depending on how much distortion you need ppIf you have any interest in seeing what these functions look like built little tool to help me visualize them here href http kevincennis github io transfergraph http kevincennis github io transfergraph Cool Thanks By the way another thing that might be helpful for people for guitar distortion assuming you re trying to emulate the sound of an amp adding ConvolverNode with an impulse response from speaker cabinet helps lot If you google around bit it not too hard to find some Otherwise you get something like the sound of plugging the guitar into distortion pedal and going straight to the console which usually kind of sucks The convolver will give the effect that you re actually moving some air around,0,NULL,NULL 42402,184883,475123,NULL,NULL,NULL,0,NULL,NULL 42403,199973,596066,Nice Question Popular Question Famous Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42404,403200,1495037,NULL,NULL,NULL,0,NULL,NULL 42405,42528,445202,Yearling Commentator Editor Notable Question Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 42406,151327,1014546,NULL,NULL,NULL,0,NULL,NULL 42407,1558272,173497,Famous Question Strunk & White Necromancer Popular Question Nice Answer Nice Answer Necromancer Yearling Famous Question Cleanup Good Answer Necromancer Necromancer Revival Popular Question Announcer Necromancer Necromancer Archaeologist Nice Answer Popular Question Popular Question Yearling Good Answer Announcer Good Answer Announcer Necromancer Nice Answer Revival Necromancer Announcer Notable Question Nice Answer Nice Answer Custodian Notable Question Necromancer Necromancer Yearling Guru,NULL,Coding in Other Spoken Languages localization translation spoken language pThis is something ve always wondered and can find any mention of it anywhere online When shop from say Japan writes code would be able to read it in English Or do languages like PHP anything have Japanese translations that they write ppI guess what asking is does every single coder in the world know enough English to use the exact same reserved words do ppWould this code ppre codeIf lt size switch case print hi there default print no thank you else print yes thank you code prepdisplay the exact same as seeing it right now in English or would some other non English speaking person see the words if switch case default print and else in their native language ppEDIT yes this is serious didn know if different localizations of language have different keywords or if there are even different localizations at all This similar question has an interesting answer that mentions several programming languages whose syntax uses non English words Are there any coding languages that are not in English https stackoverflow com questions 34865484 are there any coding languages that are not in english Coding in Other Spoken Languages localization translation spoken language pThis is something ve always wondered and can find any mention of it anywhere online When shop from say Japan writes code would be able to read it in English Or do languages like PHP anything have Japanese translations that they write ppI guess what asking is does every single coder in the world know enough English to use the exact same reserved words do ppWould this code ppre codeIf lt size switch case print hi there default print no thank you else print yes thank you code prepdisplay the exact same as seeing it right now in English or would some other non English speaking person see the words if switch case default print and else in their native language ppEDIT yes this is serious didn know if different localizations of language have different keywords or if there are even different localizations at all Non English based programming languages Wikiwand https www wikiwand com en Non English based programming languages,0,NULL,NULL 42408,6152,1393986,NULL,NULL,NULL,0,NULL,NULL 42409,503775,230580,NULL,NULL,NULL,0,NULL,NULL 42410,270265,914208,NULL,NULL,NULL,0,NULL,NULL 42411,585000,895259,NULL,NULL,NULL,0,NULL,NULL 42412,777113,831096,NULL,NULL,NULL,0,NULL,NULL 42413,3618244,1120139,Popular Question,NULL,NULL,0,NULL,NULL 42414,759,438508,NULL,NULL,NULL,0,NULL,NULL 42415,259419,597405,Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42416,443805,1287239,NULL,NULL,NULL,0,NULL,NULL 42417,107568,818936,NULL,NULL,NULL,0,NULL,NULL 42418,256457,194920,Student,NULL,NULL,0,NULL,NULL 42419,85986,107342,Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 42420,755745,270409,NULL,NULL,NULL,0,NULL,NULL 42421,219573,1426716,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42422,416894,609629,NULL,NULL,NULL,0,NULL,NULL 42423,101894,1186195,NULL,NULL,NULL,0,NULL,NULL 42424,1572616,894091,Popular Question Nice Question Famous Question Self-Learner Popular Question Yearling Notable Question Popular Question Nice Question Necromancer Announcer Necromancer Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Nice Answer Nice Answer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 42425,368954,787600,NULL,NULL,NULL,0,NULL,NULL 42426,17593,224671,Good Answer Necromancer Nice Answer Guru Nice Answer Enlightened Great Answer Good Answer Good Answer Guru Good Answer Nice Answer Guru Guru Good Answer Nice Answer Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Favorite Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Informed Nice Answer Good Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Guru ios swift Good Answer Nice Answer Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Documentation Pioneer Necromancer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Good Answer Guru Good Answer arrays Nice Answer java Notable Question Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Great Answer Guru Great Answer Guru Great Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Custodian Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Yearling Guru Good Answer Good Answer Guru Nice Answer Great Answer Good Answer Good Answer Guru Nice Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Custodian Custodian wolfram-mathematica Census Good Answer rust Necromancer dictionary Nice Answer Enlightened python-3.x Nice Answer Custodian Custodian Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Great Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Guru Revival Good Answer Nice Answer Good Answer Great Answer Nice Answer Guru Enlightened Nice Answer Guru Good Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Good Answer Nice Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened xml Good Answer Announcer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Question Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Custodian Good Answer Good Answer Guru Necromancer Nice Answer Good Answer Nice Answer Guru Good Answer Good Answer Documentation User Necromancer Guru Good Answer Necromancer Nice Answer Announcer Nice Answer Enlightened Great Answer Necromancer Guru Nice Answer Good Answer Guru Enlightened Necromancer Nice Answer Enlightened Good Answer Yearling Nice Answer Good Answer macos Announcer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Enlightened Guru Nice Answer Great Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Announcer Good Answer Guru Good Answer Nice Answer Enlightened Announcer Announcer Good Answer Guru Nice Answer Enlightened Revival Guru Guru Great Answer Enlightened Good Answer Good Answer Talkative Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Revival Revival Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Great Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Guru Nice Answer Enlightened Nice Answer Great Answer Guru Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Guru Good Question Great Answer Nice Answer Populist,NULL,pSee href https stackoverflow com 41196848 224671 answer for pre packaged solution the href https www npmjs com package shortid rel noreferrer codeshortid code package Prefer that instead of any other solutions on this page if you don have special requirements phrpA character alphanumeric sequence is pretty enough to randomly index 10k collection 36sup6 sup billion and 36sup3 sup 46656 ppre codefunction generateUID generate the UID from two parts here to ensure the random number provide enough bits var firstPart Math random 46656 var secondPart Math random 46656 firstPart 000 firstPart toString 36 slice secondPart 000 secondPart toString 36 slice return firstPart secondPart code prepUIDs generated randomly will have collision after generating radic numbers birthday paradox thus digits are needed for safe generation without checking the old version only generates digits which would have collision after 1300 IDs if you don check ppIf you do collision checking the number of digits can be reduced or but note that the performance will reduce linearly when you generate more and more UIDs ppre codevar generatedUIDs function generateUIDWithCollisionChecking while true var uid 0000 Math random Math pow 36 toString 36 slice if generatedUIDs hasOwnProperty uid generatedUIDs uid true return uid code prepConsider using sequential generator codeuser134 item1 code codeuser134 item2 code if you require uniqueness and not unpredictability You could Hash the sequentially generated string to recover unpredictability ppUIDs generated using codeMath random code is not secure and you shouldn trust the client anyway Do emnot em rely on its uniqueness or unpredictability in mission critical tasks Yes there is collision probability among 10000 IDs Generating digits reduces it to 06 But there is always small chance of collision as long as the IDs are randomly generated with no correlation pIn Python ≥2 there is href http docs python org library datetime html datetime timedelta total seconds rel noreferrer code total seconds code method to compute the total seconds contained in the timedelta ppre code gt gt gt down time total seconds server life period total seconds 0003779903727652387 code prepOtherwise there is no way but to compute the total microseconds for versions strong lt strong ppre code gt gt gt def get total seconds td return td microseconds td seconds td days 24 3600 1e6 1e6 gt gt gt get total seconds down time get total seconds server life period 0003779903727652387 code pre There is already 1e6 at the end of the function pGeneral method ppre codedef checkEqual1 iterator iterator iter iterator try first next iterator except StopIteration return True return all first rest for rest in iterator code prepOne liner ppre codedef checkEqual2 iterator return len set iterator lt code prepAlso one liner ppre codedef checkEqual3 lst return lst lst code prepThe difference between the versions are that polliIn codecheckEqual2 code the content must be hashable lili codecheckEqual1 code and codecheckEqual2 code can use any iterators but codecheckEqual3 code must take sequence input typically concrete containers like list or tuple lili codecheckEqual1 code stops as soon as difference is found liliSince codecheckEqual1 code contains more Python code it is less efficient when many of the items are equal in the beginning liliSince codecheckEqual2 code and codecheckEqual3 code always perform copying operations they will take longer if most of your input will return False liliFor codecheckEqual2 code and codecheckEqual3 code it harder to adapt comparison from codea code to codea is code li olhrp codetimeit code result for Python and only s1 s4 s7 s9 should return True ppre codes1 5000s2 4999 s3 4999s4 set 5000s5 set 4999 set 10 s6 set 10 set 4999s7 s8 s9 code prepwe get ppre code checkEqual1 checkEqual2 checkEqual3 checkEqualIvo checkEqual6502 s1 19 msec 348 usec 183 usec 51 usec 121 usec s2 17 msec 376 usec 185 usec 50 usec 118 usec s3 17 usec 348 usec 120 usec 264 usec 61 usec s4 73 msec 182 usec 50 usec 121 usec s5 71 msec 181 usec 50 usec 125 usec s6 29 usec 122 usec 423 usec 61 usec s7 usec usec 24 usec 932 usec 92 usec s8 07 usec 54 usec 28 usec 997 usec 79 usec s9 91 usec 25 usec 749 usec 407 usec 386 usec code prepNote ppre code http stackoverflow com 3844948 def checkEqualIvo lst return not lst or lst count lst len lst http stackoverflow com 3844931 def checkEqual6502 lst return not lst or lst len lst lst code pre What is the problem of checkEqual3 does correctly return False pGeneral method ppre codedef checkEqual1 iterator iterator iter iterator try first next iterator except StopIteration return True return all first rest for rest in iterator code prepOne liner ppre codedef checkEqual2 iterator return len set iterator lt code prepAlso one liner ppre codedef checkEqual3 lst return lst lst code prepThe difference between the versions are that polliIn codecheckEqual2 code the content must be hashable lili codecheckEqual1 code and codecheckEqual2 code can use any iterators but codecheckEqual3 code must take sequence input typically concrete containers like list or tuple lili codecheckEqual1 code stops as soon as difference is found liliSince codecheckEqual1 code contains more Python code it is less efficient when many of the items are equal in the beginning liliSince codecheckEqual2 code and codecheckEqual3 code always perform copying operations they will take longer if most of your input will return False liliFor codecheckEqual2 code and codecheckEqual3 code it harder to adapt comparison from codea code to codea is code li olhrp codetimeit code result for Python and only s1 s4 s7 s9 should return True ppre codes1 5000s2 4999 s3 4999s4 set 5000s5 set 4999 set 10 s6 set 10 set 4999s7 s8 s9 code prepwe get ppre code checkEqual1 checkEqual2 checkEqual3 checkEqualIvo checkEqual6502 s1 19 msec 348 usec 183 usec 51 usec 121 usec s2 17 msec 376 usec 185 usec 50 usec 118 usec s3 17 usec 348 usec 120 usec 264 usec 61 usec s4 73 msec 182 usec 50 usec 121 usec s5 71 msec 181 usec 50 usec 125 usec s6 29 usec 122 usec 423 usec 61 usec s7 usec usec 24 usec 932 usec 92 usec s8 07 usec 54 usec 28 usec 997 usec 79 usec s9 91 usec 25 usec 749 usec 407 usec 386 usec code prepNote ppre code http stackoverflow com 3844948 def checkEqualIvo lst return not lst or lst count lst len lst http stackoverflow com 3844931 def checkEqual6502 lst return not lst or lst len lst lst code pre your version returns True for palindromes though pBy shallow copying it means the emcontent em of the dictionary is not copied by value but just creating new reference ppre code gt gt gt gt gt gt copy gt gt gt gt gt gt append gt gt gt code prepIn contrast deep copy will copy all contents by value ppre code gt gt gt import copy gt gt gt copy deepcopy gt gt gt gt gt gt append gt gt gt code prepSo polli codeb code Reference assignment Make codea code and codeb code points to the same object pp img src https stack imgur com 4AQC6 png alt Illustration of 39 39 39 39 and 39 39 both point to 39 39 39 39 points to 39 39 lili codeb copy code Shallow copying codea code and codeb code will become two isolated objects but their contents still share the same reference pp img src https stack imgur com Vtk4m png alt Illustration of 39 copy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 and 39 39 both point to 39 39 lili codeb copy deepcopy code Deep copying codea code and codeb code structure and content become completely isolated pp img src https stack imgur com BO4qO png alt Illustration of 39 copy deepcopy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to different instance of 39 39 li ol will affect in the first example and won affect in the second example pBy shallow copying it means the emcontent em of the dictionary is not copied by value but just creating new reference ppre code gt gt gt gt gt gt copy gt gt gt gt gt gt append gt gt gt code prepIn contrast deep copy will copy all contents by value ppre code gt gt gt import copy gt gt gt copy deepcopy gt gt gt gt gt gt append gt gt gt code prepSo polli codeb code Reference assignment Make codea code and codeb code points to the same object pp img src https stack imgur com 4AQC6 png alt Illustration of 39 39 39 39 and 39 39 both point to 39 39 39 39 points to 39 39 lili codeb copy code Shallow copying codea code and codeb code will become two isolated objects but their contents still share the same reference pp img src https stack imgur com Vtk4m png alt Illustration of 39 copy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 and 39 39 both point to 39 39 lili codeb copy deepcopy code Deep copying codea code and codeb code structure and content become completely isolated pp img src https stack imgur com BO4qO png alt Illustration of 39 copy deepcopy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to different instance of 39 39 li ol Just to clarify first example means the first example in the picture instead of copy pBy shallow copying it means the emcontent em of the dictionary is not copied by value but just creating new reference ppre code gt gt gt gt gt gt copy gt gt gt gt gt gt append gt gt gt code prepIn contrast deep copy will copy all contents by value ppre code gt gt gt import copy gt gt gt copy deepcopy gt gt gt gt gt gt append gt gt gt code prepSo polli codeb code Reference assignment Make codea code and codeb code points to the same object pp img src https stack imgur com 4AQC6 png alt Illustration of 39 39 39 39 and 39 39 both point to 39 39 39 39 points to 39 39 lili codeb copy code Shallow copying codea code and codeb code will become two isolated objects but their contents still share the same reference pp img src https stack imgur com Vtk4m png alt Illustration of 39 copy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 and 39 39 both point to 39 39 lili codeb copy deepcopy code Deep copying codea code and codeb code structure and content become completely isolated pp img src https stack imgur com BO4qO png alt Illustration of 39 copy deepcopy 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to 39 39 39 39 points to different instance of 39 39 li ol Yes to list no to str Python string is immutable so this doesn matter,1,NULL,HTTP Headers NSURLRequest in swift swift rest http swift2 pAnybody have an idea how to configure HTTP Headers with NSURLRequest in Swift have authentication set up on my server and it only needs token passed to it but having trouble setting the header ppmy code ppre codefunc getLatestData var loggedInUsersNumber String SharingManager sharedInstance userID var usersDataPoint String StormDataPoint loggedInUsersNumber activityIND hidden false activityIND startAnimating let request NSURLRequest URL NSURL string usersDataPoint let tokenString SharingManager sharedInstance authToken request setValue Token tokenString forKey Authorization let urlSession NSURLSession sharedSession let task urlSession dataTaskWithRequest request completionHandler data response error gt Void in if let error error print error return code prepI created property tokenString to be the token to pass into the header and on the next line where commented it out request setvalue popped it in and get an error to the tune of cannot override data type All my searches show Objective help Is there better way to try to pass header in pIn Swift use the href https developer apple com reference foundation urlrequest codeURLRequest code structure instead of codeNSURLRequest code similarly codeNSURL code codeURL code codeNSURLSession code codeURLSession code etc ppThen use href https developer apple com reference foundation urlrequest 2011522 addvalue codeaddValue forbHTTPHeaderField code to add header ppre code swift var request URLRequest url URL string usersDataPoint request addValue Token tokenString forHTTPHeaderField Authorization code prepIn Swift you use an href https developer apple com reference foundation nsmutableurlrequest codeNSbMutable bURLRequest code if you need to modify it ppre code swift let request NSMutableURLRequest URL NSURL string usersDataPoint request addValue Token tokenString forHTTPHeaderField Authorization code pre 42427,554662,1380003,Good Answer Nice Answer Yearling Editor Student Self-Learner Scholar Yearling,NULL,NULL,0,NULL,NULL 42428,39711,419711,NULL,NULL,NULL,0,NULL,NULL 42429,188401,1028880,Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Necromancer Nice Question Notable Question Yearling Nice Answer Popular Question Notable Question Notable Question Famous Question Popular Question Nice Answer Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Nice Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Nice Answer Custodian Investor Altruist Popular Question Famous Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 42430,1494357,200295,Popular Question Notable Question Notable Question Good Answer Nice Question Famous Question Popular Question Nice Question Yearling Good Question Notable Question Custodian Popular Question Famous Question Nice Question Self-Learner Notable Question Excavator Popular Question Good Question Yearling Notable Question Favorite Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42431,97150,392049,NULL,NULL,NULL,0,NULL,NULL 42432,463187,20621,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 42433,367736,492454,Notable Question,NULL,NULL,0,NULL,NULL 42434,101050,692667,NULL,NULL,,0,, 42435,205801,206280,Popular Question,NULL,NULL,0,NULL,NULL 42436,603082,664421,Yearling Notable Question Popular Question Good Answer Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 42437,63550,1345076,NULL,NULL,NULL,0,NULL,NULL 42438,67139,528212,NULL,NULL,NULL,0,NULL,NULL 42439,1452988,510962,Popular Question Informed Autobiographer,NULL,pBuilding on Zv oDD answer created similar function for easier reuse pp strongWarning strong This is non standard feature of many JS interpreters and will probably be removed at some point but as building script to be only used in Chrome am using it Do not strongever strong rely on this for client facing websites ppre code Multiline Function String Nate Ferrero Public Domainfunction heredoc fn return fn toString match code prepUse ppre codevar txt heredoc function test of horribleMulti line strings code prepReturns ppre code test of horribleMulti line strings code prepNotes polliText is trimmed on both ends so any extra whitespace on either end is OK li olpEdits pp2 2014 changed to not mess with the Function prototype at all and use the name heredoc instead pp5 26 2017 updated whitespace to reflect modern coding standards Doesn work if script is part of your string was looking for way for others to insert tags which will be inserted dynamically without them having to mangle their strings Still run into the problem that if your string includes script even if it in JS comment it will close the original block and the rest of your code becomes text on the page,0,NULL,NULL 42440,927524,942869,NULL,NULL,NULL,0,NULL,NULL 42441,1065863,396887,Famous Question Revival Good Question,NULL,NULL,0,NULL,NULL 42442,219533,407260,Good Answer Yearling,NULL,NULL,0,NULL,NULL 42443,156667,1151280,Popular Question Yearling Nice Answer Favorite Question Famous Question Custodian Custodian Good Answer,NULL,NULL,0,NULL,NULL 42444,435144,1557341,Informed Autobiographer,NULL,NULL,0,NULL,NULL 42445,443767,732306,Tumbleweed,NULL,NULL,0,NULL,NULL 42446,12033,1222666,Nice Answer Yearling Caucus Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 42447,138168,27340,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42448,234623,1118702,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42449,619598,1118702,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42450,169051,749768,NULL,NULL,NULL,0,NULL,NULL 42451,902588,1086382,Notable Question Nice Answer Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 42452,1258036,713792,NULL,NULL,NULL,0,NULL,NULL 42453,99975,481112,Popular Question,NULL,NULL,0,NULL,NULL 42454,381922,1057713,NULL,NULL,NULL,0,NULL,NULL 42455,10937560,1440396,NULL,NULL,NULL,0,NULL,NULL 42456,60030,124703,Editor Supporter,NULL,NULL,0,NULL,NULL 42457,234666,49748,Announcer Revival,NULL,NULL,0,NULL,NULL 42458,350948,630985,NULL,NULL,NULL,0,NULL,NULL 42459,67832,13636,Yearling Famous Question,NULL,NULL,0,NULL,NULL 42460,173055,156146,Documentation User,NULL,NULL,0,NULL,NULL 42461,88867,1138637,NULL,NULL,NULL,0,NULL,NULL 42462,3102,476429,NULL,NULL,NULL,0,NULL,NULL 42463,276075,529888,NULL,NULL,NULL,0,NULL,NULL 42464,234759,259187,Necromancer Popular Question Critic Yearling,NULL,NULL,0,NULL,NULL 42465,233771,248507,NULL,NULL,NULL,0,NULL,NULL 42466,569198,771380,Yearling Citizen Patrol Custodian Custodian Custodian Critic,NULL,NULL,0,NULL,NULL 42467,2590,272288,Popular Question Nice Question Famous Question Popular Question Notable Question Notable Question Promoter Benefactor Popular Question Nice Question Notable Question Notable Question Nice Question,NULL,vim word completion navigating with and vim tab completion pIn vim use Ctrl to word complete while in insert mode If there is more than one possible match get dropdown from which can select one of the possible matches using the arrow keys ppHowever don want to use the arrow keys want to use the and keys But when type or it inserts the letters instead of going up or down in the dropdown Is there way can configure vim to do this the way want Brief aside to this question after few years my vim workflow is such that don make this kind of customization any more rather have vim be an editor that can use anywhere including random Linux servers and other people machines For that purpose just use the default keybindings For more custom stuff use emacs,0,NULL,NULL 42468,3247099,667929,NULL,NULL,NULL,0,NULL,NULL 42469,264357,63411,Popular Question Yearling Nice Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 42470,227038,768451,NULL,NULL,NULL,0,NULL,NULL 42471,834272,1173757,NULL,NULL,NULL,0,NULL,NULL 42472,328292,386377,NULL,NULL,NULL,0,NULL,NULL 42473,2072652,520885,NULL,NULL,NULL,0,NULL,NULL 42474,42245,1201279,NULL,NULL,NULL,0,NULL,NULL 42475,295389,1396758,NULL,NULL,NULL,0,NULL,NULL 42476,96586,790081,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 42477,185722,155119,NULL,NULL,NULL,0,NULL,NULL 42478,897639,1437847,Teacher,NULL,NULL,0,NULL,NULL 42479,117978,741043,Yearling Nice Answer Unsung Hero Enthusiast Yearling Good Answer Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 42480,1517523,1419367,Popular Question,NULL,NULL,0,NULL,NULL 42481,167607,87355,Yearling Notable Question Yearling Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 42482,259977,572562,Revival,NULL,NULL,0,NULL,NULL 42483,45921,1283018,Yearling Custodian Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 42484,894879,1287599,Yearling Nice Answer Enlightened Yearling Yearling Enlightened Good Answer,NULL,NULL,0,NULL,NULL 42485,327111,57557,Yearling Yearling Famous Question Good Question Great Question,NULL,NULL,0,NULL,NULL 42486,7001918,121712,Revival Yearling,NULL,NULL,0,NULL,NULL 42487,35802,121712,Revival Yearling,NULL,NULL,0,NULL,NULL 42488,545282,1478174,NULL,NULL,NULL,0,NULL,NULL 42489,1099835,398218,Notable Question,NULL,NULL,0,NULL,NULL 42490,685820,553136,NULL,NULL,NULL,0,NULL,NULL 42491,50908,638246,NULL,NULL,NULL,0,NULL,NULL 42492,1707498,1505667,Informed,NULL,NULL,0,NULL,NULL 42493,853224,1419427,Commentator,NULL,NULL,0,NULL,NULL 42494,230164,424123,Popular Question Notable Question Necromancer Yearling Nice Answer Famous Question Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 42495,384061,470149,NULL,NULL,NULL,0,NULL,NULL 42496,407175,183533,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 42497,203284,824342,NULL,NULL,NULL,0,NULL,NULL 42498,617678,797498,Citizen Patrol Curious Informed,NULL,NULL,0,NULL,NULL 42499,266619,606321,Good Answer Census Student Scholar Documentation User Custodian Custodian Census,NULL,NULL,0,NULL,NULL 42500,528296,1134036,NULL,NULL,NULL,0,NULL,NULL 42501,60159,152153,NULL,NULL,NULL,0,NULL,NULL 42502,32898,805605,NULL,NULL,NULL,0,NULL,NULL 42503,8037,428112,NULL,NULL,NULL,0,NULL,NULL 42504,176642,60502,Favorite Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42505,524846,813914,NULL,NULL,NULL,0,NULL,NULL 42506,661490,1245078,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42507,599794,1009867,Yearling Necromancer Caucus Constituent Yearling Revival Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 42508,1293015,286380,NULL,NULL,NULL,0,NULL,NULL 42509,25454,286380,NULL,NULL,NULL,0,NULL,NULL 42510,507850,412611,NULL,NULL,NULL,0,NULL,NULL 42511,25015,561181,NULL,NULL,NULL,0,NULL,NULL 42512,697177,1295049,NULL,NULL,NULL,0,NULL,NULL 42513,769638,1527351,NULL,NULL,NULL,0,NULL,NULL 42514,66505,879805,Yearling,NULL,NULL,0,NULL,NULL 42515,261494,148663,Enthusiast Supporter,NULL,NULL,0,NULL,NULL 42516,302538,1160729,NULL,NULL,NULL,0,NULL,NULL 42517,580778,471855,NULL,NULL,NULL,0,NULL,NULL 42518,814834,869685,Electorate Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 42519,50887,454081,NULL,NULL,NULL,0,NULL,NULL 42520,251578,165009,Announcer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Guru Yearling Notable Question Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Populist Nice Answer Good Answer Guru Good Answer Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Guru Guru Good Answer Nice Answer Yearling Nice Answer Great Answer Guru,NULL,pThe second option is best it keeps everything asynchronous but you can do one better and abstract the solution into reusable pattern ppre codeimplicit class RichListenableFuture lf ListenableFuture def asScala Future val Promise Futures addCallback lf new FutureCallback def onFailure Throwable Unit failure def onSuccess result Unit success result future code prepYou can then simply call ppre codeexecutor asyncExecute query asScala code pre Yeah fixed that,0,NULL,NULL 42521,688173,1424807,NULL,NULL,NULL,0,NULL,NULL 42522,6371,445650,Nice Answer Enlightened Yearling Announcer Yearling Curious Yearling,NULL,NULL,0,NULL,NULL 42523,157105,194707,Notable Question Necromancer Notable Question Famous Question Notable Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42524,410431,638709,NULL,NULL,NULL,0,NULL,NULL 42525,586291,899652,Nice Question Necromancer Commentator Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42526,142003,463892,Popular Question Notable Question Nice Question Yearling Notable Question ios Famous Question Famous Question Nice Question Yearling Nice Answer Nice Question Yearling Announcer,NULL,NULL,0,NULL,NULL 42527,24389,64749,NULL,NULL,NULL,0,NULL,NULL 42528,1097119,1134932,NULL,NULL,NULL,0,NULL,NULL 42529,446473,1036429,NULL,NULL,NULL,0,NULL,NULL 42530,648178,1467776,NULL,NULL,NULL,0,NULL,NULL 42531,34473,458642,Good Question Popular Question Notable Question Yearling Guru Notable Question Famous Question Good Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42532,3709048,996497,NULL,NULL,NULL,0,NULL,NULL 42533,812690,973089,Nice Answer Enlightened Nice Answer Good Answer Nice Question Yearling Popular Question Famous Question Nice Answer Self-Learner Famous Question Popular Question Good Answer Yearling Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 42534,6476222,877120,NULL,NULL,NULL,0,NULL,NULL 42535,899793,781455,Revival,NULL,NULL,0,NULL,NULL 42536,368912,1193093,NULL,NULL,NULL,0,NULL,NULL 42537,45293,662001,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 42538,59540,1272059,Revival,NULL,NULL,0,NULL,NULL 42539,1064807,87761,Announcer Notable Question,NULL,NULL,0,NULL,NULL 42540,468396,462421,Yearling Good Answer,NULL,NULL,0,NULL,NULL 42541,245591,1247564,NULL,NULL,NULL,0,NULL,NULL 42542,433753,1386619,Revival Necromancer Caucus Nice Answer Yearling Caucus Constituent Announcer Critic Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42543,108263,1549665,NULL,NULL,NULL,0,NULL,NULL 42544,698892,757662,NULL,NULL,NULL,0,NULL,NULL 42545,600646,858155,NULL,NULL,NULL,0,NULL,NULL 42546,130205,812544,NULL,NULL,NULL,0,NULL,NULL 42547,3881893,812544,NULL,NULL,NULL,0,NULL,NULL 42548,199239,253365,NULL,NULL,NULL,0,NULL,NULL 42549,1691905,694062,Yearling Yearling Custodian Yearling ruby,NULL,NULL,0,NULL,NULL 42550,3016367,171304,NULL,NULL,NULL,0,NULL,NULL 42551,290670,171304,NULL,NULL,NULL,0,NULL,NULL 42552,54523,1423549,Critic,NULL,NULL,0,NULL,NULL 42553,504433,506213,Editor Scholar Student Supporter Necromancer Critic Popular Question,NULL,NULL,0,NULL,NULL 42554,805148,204414,Nice Question Yearling Tumbleweed Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 42555,371832,1480820,Self-Learner Famous Question Nice Question Popular Question Famous Question Yearling Popular Question Notable Question Custodian Informed Unsung Hero Nice Question Nice Answer Yearling Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42556,1236619,345276,NULL,NULL,NULL,0,NULL,NULL 42557,3499974,1164094,NULL,NULL,NULL,0,NULL,NULL 42558,564072,582170,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42559,76648,7129,Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 42560,3375,629596,Yearling Great Answer Critic Yearling,NULL,NULL,0,NULL,NULL 42561,3071083,640897,NULL,NULL,NULL,0,NULL,NULL 42562,46895,3412,NULL,NULL,NULL,0,NULL,NULL 42563,903070,1102774,Nice Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42564,1975680,1061579,Popular Question Caucus,NULL,NULL,0,NULL,NULL 42565,137104,35806,Good Answer Good Answer Nice Answer Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 42566,99910,1363753,NULL,NULL,NULL,0,NULL,NULL 42567,649376,280690,Informed,NULL,NULL,0,NULL,NULL 42568,540380,1296774,NULL,NULL,NULL,0,NULL,NULL 42569,310436,1123076,Revival,NULL,NULL,0,NULL,NULL 42570,114788,1184400,NULL,NULL,NULL,0,NULL,NULL 42571,757558,719455,NULL,NULL,NULL,0,NULL,NULL 42572,237190,1119805,NULL,NULL,NULL,0,NULL,NULL 42573,1338625,384191,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 42574,178321,384191,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 42575,10118,31131,Custodian,NULL,NULL,0,NULL,NULL 42576,8580,583592,Yearling Popular Question Caucus Yearling Census Caucus Constituent Nice Answer Announcer Good Answer Census Yearling Notable Question Caucus Constituent Tumbleweed Favorite Question,NULL,NULL,0,NULL,NULL 42577,91586,797572,NULL,NULL,NULL,0,NULL,NULL 42578,45713,67914,Popular Question Critic Yearling Famous Question,NULL,NULL,0,NULL,NULL 42579,1684986,1410026,Commentator Popular Question,NULL,NULL,0,NULL,NULL 42580,678152,589795,NULL,NULL,NULL,0,NULL,NULL 42581,737684,816296,Popular Question Student,NULL,NULL,0,NULL,NULL 42582,26892,365478,Announcer Good Question Self-Learner Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 42583,1507985,789028,NULL,NULL,NULL,0,NULL,NULL 42584,1180138,761688,NULL,NULL,NULL,0,NULL,NULL 42585,1532087,761688,NULL,NULL,NULL,0,NULL,NULL 42586,1051023,1336785,NULL,NULL,NULL,0,NULL,NULL 42587,1184255,13834,Yearling Popular Question Yearling Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 42588,51712,280534,Custodian Citizen Patrol Yearling Necromancer Revival Necromancer Revival Yearling Nice Answer Necromancer Yearling,NULL,Working example of CreateJobObject SetInformationJobObject pinvoke in net net winapi net pinvoke pI struggling to put together working example of pinvoke ing CreateJobObject and SetInformationJobObject Through various google searches including Russian and Chinese posts ve cobbled together the following code think the definition of JOBOBJECT BASIC LIMIT INFORMATION changes based on platform 32 64 bit The CreateJobObject AssignProcessToJobObject emseems em to work SetInformationJobObject fails either with error 24 or 87 ppre codeProcess myProcess POPULATED SOMEWHERE ELSE Create Job amp assign this process and another process to the jobIntPtr jobHandle CreateJobObject null null AssignProcessToJobObject jobHandle myProcess Handle AssignProcessToJobObject jobHandle Process GetCurrentProcess Handle Ensure that killing one process kills the others JOBOBJECT BASIC LIMIT INFORMATION limits new JOBOBJECT BASIC LIMIT INFORMATION limits LimitFlags short LimitFlags JOB OBJECT LIMIT KILL ON JOB CLOSE IntPtr pointerToJobLimitInfo Marshal AllocHGlobal Marshal SizeOf limits Marshal StructureToPtr limits pointerToJobLimitInfo false SetInformationJobObject job JOBOBJECTINFOCLASS JobObjectBasicLimitInformation pionterToJobLimitInfo uint Marshal SizeOf limits DllImport kernel32 dll EntryPoint CreateJobObjectW CharSet CharSet Unicode public static extern IntPtr CreateJobObject SecurityAttributes JobAttributes string lpName public class SecurityAttributes public int nLength Useless field public IntPtr pSecurityDescriptor хз public bool bInheritHandle Возможность наследования public SecurityAttributes this bInheritHandle true this nLength this pSecurityDescriptor IntPtr Zero DllImport kernel32 dll static extern bool SetInformationJobObject IntPtr hJob JOBOBJECTINFOCLASS JobObjectInfoClass IntPtr lpJobObjectInfo uint cbJobObjectInfoLength public enum JOBOBJECTINFOCLASS JobObjectAssociateCompletionPortInformation JobObjectBasicLimitInformation JobObjectBasicUIRestrictions JobObjectEndOfJobTimeInformation JobObjectExtendedLimitInformation JobObjectSecurityLimitInformation StructLayout LayoutKind Sequential struct JOBOBJECT BASIC LIMIT INFORMATION public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit public Int16 LimitFlags public UIntPtr MinimumWorkingSetSize public UIntPtr MaximumWorkingSetSize public Int16 ActiveProcessLimit public Int64 Affinity public Int16 PriorityClass public Int16 SchedulingClass public enum LimitFlags JOB OBJECT LIMIT ACTIVE PROCESS 0x00000008 JOB OBJECT LIMIT AFFINITY 0x00000010 JOB OBJECT LIMIT BREAKAWAY OK 0x00000800 JOB OBJECT LIMIT DIE ON UNHANDLED EXCEPTION 0x00000400 JOB OBJECT LIMIT JOB MEMORY 0x00000200 JOB OBJECT LIMIT JOB TIME 0x00000004 JOB OBJECT LIMIT KILL ON JOB CLOSE 0x00002000 JOB OBJECT LIMIT PRESERVE JOB TIME 0x00000040 JOB OBJECT LIMIT PRIORITY CLASS 0x00000020 JOB OBJECT LIMIT PROCESS MEMORY 0x00000100 JOB OBJECT LIMIT PROCESS TIME 0x00000002 JOB OBJECT LIMIT SCHEDULING CLASS 0x00000080 JOB OBJECT LIMIT SILENT BREAKAWAY OK 0x00001000 JOB OBJECT LIMIT WORKINGSET 0x00000001 DllImport kernel32 dll return MarshalAs UnmanagedType Bool static extern bool AssignProcessToJobObject IntPtr hJob IntPtr hProcess StructLayout LayoutKind Sequential public struct SECURITY ATTRIBUTES public int nLength public IntPtr lpSecurityDescriptor public int bInheritHandle code pre JOBOBJECT BASIC LIMIT INFORMATION https msdn microsoft com en us library windows desktop ms684147 vs 85 aspx defines LimitFlags PriorityClass and SchedulingClass to be DWORD which translates to Int32,0,NULL,NULL 42589,473909,1132859,NULL,NULL,NULL,0,NULL,NULL 42590,171323,695029,NULL,NULL,NULL,0,NULL,NULL 42591,34617,668913,Teacher,NULL,NULL,0,NULL,NULL 42592,7457806,748987,NULL,NULL,NULL,0,NULL,NULL 42593,2500622,748987,NULL,NULL,NULL,0,NULL,NULL 42594,235504,80572,Notable Question Yearling Popular Question Notable Question Talkative Documentation Beta Outspoken Popular Question Notable Question Census Notable Question Yearling Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Notable Question Good Answer Popular Question Documentation User Notable Question Famous Question Announcer Popular Question Notable Question Favorite Question Announcer Good Answer Caucus Yearling .net winapi,NULL,NULL,0,NULL,NULL 42595,120982,147277,NULL,NULL,NULL,0,NULL,NULL 42596,63374,1288606,NULL,NULL,NULL,0,NULL,NULL 42597,188400,382218,Necromancer,NULL,NULL,0,NULL,NULL 42598,419385,1452732,NULL,NULL,NULL,0,NULL,NULL 42599,75890,81623,Self-Learner Yearling Custodian Custodian Custodian Yearling Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 42600,1198279,407878,NULL,NULL,NULL,0,NULL,NULL 42601,867239,988216,Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 42602,2177950,997932,Supporter,NULL,NULL,0,NULL,NULL 42603,19893,834564,NULL,NULL,NULL,0,NULL,NULL 42604,621677,39004,NULL,NULL,NULL,0,NULL,NULL 42605,534384,345058,Notable Question,NULL,NULL,0,NULL,NULL 42606,230005,1110776,Informed Autobiographer Popular Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 42607,129949,1082679,NULL,NULL,NULL,0,NULL,NULL 42608,6776,1329527,Nice Question,NULL,NULL,0,NULL,NULL 42609,4452411,582875,NULL,NULL,NULL,0,NULL,NULL 42610,149891,582875,NULL,NULL,NULL,0,NULL,NULL 42611,10085290,997126,NULL,NULL,NULL,0,NULL,NULL 42612,372057,997126,NULL,NULL,NULL,0,NULL,NULL 42613,164141,880987,Commentator Nice Answer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 42614,770907,118268,Yearling Popular Question Guru Custodian Good Answer Enthusiast Nice Answer Guru Popular Question Yearling Great Answer Popular Question Notable Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 42615,637543,528280,Nice Answer,NULL,NULL,0,NULL,NULL 42616,288901,1444913,Notable Question Teacher Revival,NULL,NULL,0,NULL,NULL 42617,236127,967965,NULL,NULL,NULL,0,NULL,NULL 42618,11124739,967965,NULL,NULL,NULL,0,NULL,NULL 42619,99525,705529,Yearling Revival Autobiographer Custodian Yearling Popular Question Caucus Good Answer Revival,NULL,NULL,0,NULL,NULL 42620,301010,722469,Popular Question,NULL,NULL,0,NULL,NULL 42621,83359,4407,Disciplined Yearling Necromancer Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 42622,19050,548077,NULL,NULL,NULL,0,NULL,NULL 42623,49893,263697,Yearling Documentation User,NULL,NULL,0,NULL,NULL 42624,65669,422073,Nice Question Notable Question Famous Question Notable Question Popular Question Notable Question Nice Question Good Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Stellar Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 42625,103126,419673,Yearling Nice Answer Good Answer Good Answer Populist Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 42626,232648,1087169,NULL,NULL,NULL,0,NULL,NULL 42627,134604,871207,Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 42628,117319,290524,NULL,NULL,NULL,0,NULL,NULL 42629,190885,1184231,Yearling Necromancer Revival Popular Question Nice Answer Yearling Caucus Constituent Necromancer Commentator Announcer Caucus Nice Answer Critic,NULL,NULL,0,NULL,NULL 42630,192351,1535884,NULL,NULL,NULL,0,NULL,NULL 42631,533212,87565,Yearling Good Answer Yearling Yearling Curious Notable Question,NULL,NULL,0,NULL,NULL 42632,682727,501809,NULL,NULL,NULL,0,NULL,NULL 42633,200906,12806,NULL,NULL,NULL,0,NULL,NULL 42634,1143458,1332669,Commentator Critic Curious Yearling Scholar,NULL,NULL,0,NULL,NULL 42635,252621,648748,Necromancer,NULL,NULL,0,NULL,NULL 42636,569814,9585,Good Question Famous Question Announcer Yearling Popular Question Nice Answer Yearling Census Famous Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 42637,7739,717318,Commentator Informed Citizen Patrol Critic Curious Yearling Caucus Popular Question Necromancer Self-Learner Yearling Nice Answer,NULL,NULL,0,NULL,NULL 42638,258975,487610,NULL,NULL,NULL,0,NULL,NULL 42639,1118089,1052862,NULL,NULL,NULL,0,NULL,NULL 42640,76063,188035,NULL,NULL,NULL,0,NULL,NULL 42641,137230,1320685,Editor Yearling Good Answer Popular Question Yearling Self-Learner Notable Question Commentator Popular Question,NULL,NULL,0,NULL,NULL 42642,1233948,1055520,Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 42643,94982,1047218,NULL,NULL,NULL,0,NULL,NULL 42644,153117,497704,Notable Question,NULL,NULL,0,NULL,NULL 42645,258219,924561,NULL,NULL,NULL,0,NULL,NULL 42646,140642,1188420,NULL,NULL,NULL,0,NULL,NULL 42647,852,954513,Informed Editor Teacher Commentator Announcer Yearling,NULL,NULL,0,NULL,NULL 42648,317601,1400318,NULL,NULL,NULL,0,NULL,NULL 42649,150612,27512,Announcer Popular Question Popular Question Yearling Announcer Nice Answer Enlightened Nice Answer Notable Question Good Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 42650,79804,446790,NULL,NULL,NULL,0,NULL,NULL 42651,9211,503410,Revival Yearling Commentator Necromancer Critic Civic Duty Yearling Announcer Enthusiast Necromancer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 42652,285628,1385784,NULL,NULL,NULL,0,NULL,NULL 42653,86036,1434369,Supporter,NULL,NULL,0,NULL,NULL 42654,205346,117501,Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42655,193757,326403,NULL,NULL,NULL,0,NULL,NULL 42656,6762,736745,NULL,NULL,NULL,0,NULL,NULL 42657,563678,66956,Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 42658,655983,607876,Popular Question Popular Question Yearling Popular Question Good Question Popular Question Nice Answer Enlightened Nice Answer Famous Question Revival Notable Question Notable Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Revival Notable Question Popular Question Notable Question Famous Question Popular Question Announcer Notable Question Favorite Question Nice Question Notable Question Yearling Organizer Popular Question Guru Popular Question Notable Question Notable Question Famous Question Notable Question Good Question Taxonomist Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42659,896790,364178,NULL,NULL,NULL,0,NULL,NULL 42660,8118,259900,Popular Question Good Answer Yearling Good Answer Good Answer Necromancer Popular Question Popular Question Famous Question ios Nice Question Notable Question Populist Famous Question Notable Question Famous Question Popular Question Notable Question Nice Question Nice Answer Popular Question Nice Answer Notable Question Notable Question Famous Question Popular Question Nice Question Mortarboard Good Answer Notable Question Popular Question Popular Question Popular Question Popular Question Good Answer Yearling Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Famous Question Popular Question Nice Answer Popular Question Nice Question Popular Question Notable Question Popular Question Great Answer Notable Question Famous Question Nice Answer Enlightened Popular Question Revival Documentation User Popular Question Good Question Nice Question Good Answer Popular Question Yearling Great Answer Nice Answer Enlightened Caucus Notable Question Good Answer Popular Question Notable Question Great Question Great Answer Popular Question Notable Question Good Question Famous Question Custodian Popular Question Notable Question Notable Question Good Question Popular Question Notable Question Popular Question,NULL,How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this This was originally asked in 2010 It has 13 answers the other has more votes more favourites and is slightly different Shouldn the duplicate be placed on the other question How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this What was the criteria How to avoid NoMethodError for missing elements in nested hashes without repeated nil checks ruby on rails ruby hash hash of hashes pI looking for good way to avoid checking for codenil code at each level in deeply nested hashes For example ppre codename params company owner name if params company amp amp params company owner amp amp params company owner name code prepThis requires three checks and makes for very ugly code Any way to get around this Yup Many of the answers used the company owner name keys and feel it is unfair to authors to change six year old question that much fixed your answer to properly reflect the key names,0,NULL,NULL 42661,347468,599019,Self-Learner Necromancer Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Nice Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42662,439011,1163866,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 42663,10951,31794,Yearling,NULL,NULL,0,NULL,NULL 42664,264302,1204064,Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 42665,291746,474809,NULL,NULL,NULL,0,NULL,NULL 42666,151041,892013,NULL,NULL,NULL,0,NULL,NULL 42667,117230,173667,NULL,NULL,NULL,0,NULL,NULL 42668,175305,1207530,NULL,NULL,NULL,0,NULL,NULL 42669,205806,220734,NULL,NULL,NULL,0,NULL,NULL 42670,742075,1511991,NULL,NULL,NULL,0,NULL,NULL 42671,83571,678625,Good Answer Nice Answer Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened Nice Answer Yearling .net Nice Answer Enlightened Nice Answer Enlightened visual-studio Good Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42672,5078465,981470,NULL,NULL,NULL,0,NULL,NULL 42673,192260,94092,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42674,145059,1309238,Necromancer Popular Question Yearling Curious Caucus Notable Question Necromancer Popular Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 42675,227222,990224,Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 42676,687961,359063,NULL,NULL,NULL,0,NULL,NULL 42677,167491,83549,Popular Question,NULL,NULL,0,NULL,NULL 42678,176035,905853,Nice Answer Necromancer Yearling Caucus Editor Caucus Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 42679,2264,582,Good Answer Good Question Nice Answer Enlightened Great Answer Guru Nice Question Guru Good Question Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Guru Guru Yearling Guru Good Answer Enlightened Nice Answer Great Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer ios4 Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Guru Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Enlightened Guru Guru Good Answer Good Answer Nice Answer Enlightened Guru core-graphics Yearling uikit Guru Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened swift Nice Answer Announcer Great Answer macos Good Answer Guru Good Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Nice Answer Populist Enlightened Nice Answer Good Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Nice Answer Promoter Nice Answer Enlightened Nice Answer Nice Question Good Answer Guru Nice Answer Nice Answer Enlightened,NULL,pYou can do this with codegit status code but you could use codegit ls files code to show all modified files AlanBates My answer is correct Your command is not running git status only on modified files it running git status on everything and then using separate tool to throw away the unwanted info Your answer also won work if the user has the git config setting to always use short mode more accurate suggestion would have been git status grep but even that is just poor way of accomplishing the same thing as git ls files,0,NULL,NULL 42680,32256,12706,Notable Question Caucus Constituent Famous Question Caucus Good Question,NULL,NULL,0,NULL,NULL 42681,559817,733805,Nice Question Yearling Favorite Question Populist Revival Good Answer Nice Answer Yearling Nice Question Necromancer Good Answer Yearling Guru Great Answer Popular Question Revival,NULL,h1Most efficient leap year test h1pre codeif year amp amp amp year 25 year amp 15 leap year code prepThis code is valid in Java and many other like languages The code utilizes single TRUE FALSE expression that consists of three separate tests pulli4th year test codeyear amp code lili100th year test codeyear 25 code lili400th year test codeyear amp 15 code li ulpA complete discussion of how this code works appears below but first discussion of Wikipedia algorithm is called for ph1Wikipedia algorithm is INEFFICIENT UNRELIABLE h1pWikipedia has published pseudo code algorithm See href http en wikipedia org wiki Leap year Algorithm rel noreferrer Wikipedia Leap year Algorithm that has been subjected to constant editing opinion and vandalism pp strongDO NOT IMPLEMENT WIKIPEDIA ALGORITHM strong ppOne of the longest standing and inefficient Wikipedia algorithms appeared as follows ppre codeif year modulo 400 is then is leap yearelse if year modulo 100 is then not leap yearelse if year modulo is then is leap yearelse not leap year code prepThe above algorithm is inefficient because it always performs the tests for the 400th year and 100th year even for years that would quickly fail the 4th year test the modulo test mdash which is 75 of the time By re ordering the algorithm to perform the 4th year test first we speed things up significantly pp strong MOST EFFICIENT PSEUDO CODE ALGORITHM strong ppI provided the following algorithm to Wikipedia more than once ppre codeif year is not divisible by then not leap yearelse if year is not divisible by 100 then leap yearelse if year is divisible by 400 then leap yearelse not leap year code prepThis most efficient pseudo code simply changes the order of tests so the division by takes place first followed by the less frequently occurring tests Because year does not divide by four 75 percent of the time the algorithm ends after only one test in three out of four cases pblockquote strongNOTE strong have fought various Wikipedia editors to improve the algorithm published there arguing that many novice mdash and professional mdash programmers quickly arrive at the Wikipedia page due to top search engine listings and implement the Wikipedia pseudo code without any further research Wikipedia editors repudiated and deleted every attempt made to improve annotate or even merely footnote the published algorithm Apparently they feel finding efficiencies is the programmer problem That may be true but many programmers are too hurried to perform solid research blockquoteh1DISCUSSION OF MOST EFFICIENT LEAP YEAR TEST h1p strongBitwise AND in place of modulo strong ppI have replaced two of the modulo operations in the Wikipedia algorithm with bitwise AND operations Why and how ppPerforming modulo calculation requires division One doesn often think twice about this when programming PC but when programming bit microcontrollers embedded in small devices you may find that divide function cannot be natively performed by the CPU On such CPUs division is an arduous process involving repetitive looping bit shifting and add subtract operations that is very slow It is very desirable to avoid ppIt turns out that the modulo of powers of two can be alternately achieved using bitwise AND operation see href http en wikipedia org wiki Modulo operation Performance issues rel noreferrer Wikipedia Modulo operation Performance Issues ppx amp ppMany optimizing compilers will convert such modulo operations to bitwise AND for you but less advanced compilers for smaller and less popular CPUs may not Bitwise AND is single instruction on every CPU ppBy replacing the codemodulo code and codemodulo 400 code tests with code amp code and code amp 15 code see below Factoring to reduce math we can ensure that the fastest code results without using much slower divide operation ppThere exists no power of two that equals 100 Thus we are forced to continue to use the modulo operation for the 100th year test however 100 is replaced by 25 see below pp strongFactoring to simplify the math strong ppIn addition to using bitwise AND to replace modulo operations you may note two additional disputes between the Wikipedia algorithm and the optimized expression pulli codemodulo 100 code is replaced by codemodulo 25 code lili codemodulo 400 code is replaced by code amp 15 code li ulpThe 100th year test utilizes codemodulo 25 code instead of codemodulo 100 code We can do this because 100 factors out to Because the 4th year test already checks for factors of we can eliminate that factor from 100 leaving 25 This optimization is probably insignificant to nearly every CPU implementation as both 100 and 25 fit in bits ppThe 400th year test utilizes code amp 15 code which is equivalent to codemodulo 16 code Again we can do this because 400 factors out to We can eliminate the factor of 25 which is tested by the 100th year test leaving 16 We cannot further reduce 16 because is factor of 200 so removing any more factors would produce unwanted positive for 200th year ppThe 400th year optimization is greatly important to bit CPUs first because it avoids division but more important because the value 400 is bit number which is much more difficult to deal with in an bit CPU pp strongShort circuit Logical AND OR operators strong ppThe final and most important optimization used are the short circuit logical AND amp amp and OR operators see href http en wikipedia org wiki Short circuit evaluation rel noreferrer Wikipedia Short circuit evaluation which are implemented in most like languages Short circuit operators are so named because they do not bother to evaluate the expression on the right side if the expression on the left side by itself dictates the outcome of the operation ppFor example If the year is 2003 then codeyear amp code is false There is no way that the tests on the right side of the logical AND can make the outcome true so nothing else gets evaluated ppBy performing the 4th year test first only the 4th year test simple bitwise AND is evaluated three quarters 75 percent of the time This speeds up program execution greatly especially since it avoids the division necessary for the 100th year test the modulo 25 operation pp strongNOTE ON PARENTHESES PLACEMENT strong ppOne commenter felt parentheses were misplaced in my code and suggested the sub expressions be regrouped around the logical AND operator instead of around the logical OR as follows ppre codeif year amp amp amp year 25 year amp 15 LY code prepThe above is incorrect The logical AND operator has higher precedence than logical OR and will be evaluated first with or without the new parentheses Parentheses around the logical AND arguments has no effect This might lead one to eliminate the sub groupings entirely ppre codeif year amp amp amp year 25 year amp 15 LY code prepBut in em strongboth strong em cases above the right side of the logical OR the 400th year test is evaluated almost every time years not divisible by and 100 Thus useful optimization has been mistakenly eliminated ppThe parentheses in my original code implement the most optimized solution ppre codeif year amp amp amp year 25 year amp 15 LY code prepHere the logical OR is only evaluated for years divisible by because of the short circuit AND The right side of the logical OR is only evaluated for years divisible by and 100 because of the short circuit OR pp strongNOTE FOR PROGRAMMERS strong ppC programmers might feel this expression is more optimized ppre codeif year amp amp amp year 25 year amp 15 LY code prepThis is not more optimized While the explicit code code and code code tests are removed they become implicit and are still performed Worse the code is no longer valid in strongly typed languages like where codeyear amp code evaluates to an codeint code but the logical AND code amp amp code OR code code and NOT code code operators require codebool code arguments 1300 was not leap year It fails the 100th year test h1Most efficient leap year test h1pre codeif year amp amp amp year 25 year amp 15 leap year code prepThis code is valid in Java and many other like languages The code utilizes single TRUE FALSE expression that consists of three separate tests pulli4th year test codeyear amp code lili100th year test codeyear 25 code lili400th year test codeyear amp 15 code li ulpA complete discussion of how this code works appears below but first discussion of Wikipedia algorithm is called for ph1Wikipedia algorithm is INEFFICIENT UNRELIABLE h1pWikipedia has published pseudo code algorithm See href http en wikipedia org wiki Leap year Algorithm rel noreferrer Wikipedia Leap year Algorithm that has been subjected to constant editing opinion and vandalism pp strongDO NOT IMPLEMENT WIKIPEDIA ALGORITHM strong ppOne of the longest standing and inefficient Wikipedia algorithms appeared as follows ppre codeif year modulo 400 is then is leap yearelse if year modulo 100 is then not leap yearelse if year modulo is then is leap yearelse not leap year code prepThe above algorithm is inefficient because it always performs the tests for the 400th year and 100th year even for years that would quickly fail the 4th year test the modulo test mdash which is 75 of the time By re ordering the algorithm to perform the 4th year test first we speed things up significantly pp strong MOST EFFICIENT PSEUDO CODE ALGORITHM strong ppI provided the following algorithm to Wikipedia more than once ppre codeif year is not divisible by then not leap yearelse if year is not divisible by 100 then leap yearelse if year is divisible by 400 then leap yearelse not leap year code prepThis most efficient pseudo code simply changes the order of tests so the division by takes place first followed by the less frequently occurring tests Because year does not divide by four 75 percent of the time the algorithm ends after only one test in three out of four cases pblockquote strongNOTE strong have fought various Wikipedia editors to improve the algorithm published there arguing that many novice mdash and professional mdash programmers quickly arrive at the Wikipedia page due to top search engine listings and implement the Wikipedia pseudo code without any further research Wikipedia editors repudiated and deleted every attempt made to improve annotate or even merely footnote the published algorithm Apparently they feel finding efficiencies is the programmer problem That may be true but many programmers are too hurried to perform solid research blockquoteh1DISCUSSION OF MOST EFFICIENT LEAP YEAR TEST h1p strongBitwise AND in place of modulo strong ppI have replaced two of the modulo operations in the Wikipedia algorithm with bitwise AND operations Why and how ppPerforming modulo calculation requires division One doesn often think twice about this when programming PC but when programming bit microcontrollers embedded in small devices you may find that divide function cannot be natively performed by the CPU On such CPUs division is an arduous process involving repetitive looping bit shifting and add subtract operations that is very slow It is very desirable to avoid ppIt turns out that the modulo of powers of two can be alternately achieved using bitwise AND operation see href http en wikipedia org wiki Modulo operation Performance issues rel noreferrer Wikipedia Modulo operation Performance Issues ppx amp ppMany optimizing compilers will convert such modulo operations to bitwise AND for you but less advanced compilers for smaller and less popular CPUs may not Bitwise AND is single instruction on every CPU ppBy replacing the codemodulo code and codemodulo 400 code tests with code amp code and code amp 15 code see below Factoring to reduce math we can ensure that the fastest code results without using much slower divide operation ppThere exists no power of two that equals 100 Thus we are forced to continue to use the modulo operation for the 100th year test however 100 is replaced by 25 see below pp strongFactoring to simplify the math strong ppIn addition to using bitwise AND to replace modulo operations you may note two additional disputes between the Wikipedia algorithm and the optimized expression pulli codemodulo 100 code is replaced by codemodulo 25 code lili codemodulo 400 code is replaced by code amp 15 code li ulpThe 100th year test utilizes codemodulo 25 code instead of codemodulo 100 code We can do this because 100 factors out to Because the 4th year test already checks for factors of we can eliminate that factor from 100 leaving 25 This optimization is probably insignificant to nearly every CPU implementation as both 100 and 25 fit in bits ppThe 400th year test utilizes code amp 15 code which is equivalent to codemodulo 16 code Again we can do this because 400 factors out to We can eliminate the factor of 25 which is tested by the 100th year test leaving 16 We cannot further reduce 16 because is factor of 200 so removing any more factors would produce unwanted positive for 200th year ppThe 400th year optimization is greatly important to bit CPUs first because it avoids division but more important because the value 400 is bit number which is much more difficult to deal with in an bit CPU pp strongShort circuit Logical AND OR operators strong ppThe final and most important optimization used are the short circuit logical AND amp amp and OR operators see href http en wikipedia org wiki Short circuit evaluation rel noreferrer Wikipedia Short circuit evaluation which are implemented in most like languages Short circuit operators are so named because they do not bother to evaluate the expression on the right side if the expression on the left side by itself dictates the outcome of the operation ppFor example If the year is 2003 then codeyear amp code is false There is no way that the tests on the right side of the logical AND can make the outcome true so nothing else gets evaluated ppBy performing the 4th year test first only the 4th year test simple bitwise AND is evaluated three quarters 75 percent of the time This speeds up program execution greatly especially since it avoids the division necessary for the 100th year test the modulo 25 operation pp strongNOTE ON PARENTHESES PLACEMENT strong ppOne commenter felt parentheses were misplaced in my code and suggested the sub expressions be regrouped around the logical AND operator instead of around the logical OR as follows ppre codeif year amp amp amp year 25 year amp 15 LY code prepThe above is incorrect The logical AND operator has higher precedence than logical OR and will be evaluated first with or without the new parentheses Parentheses around the logical AND arguments has no effect This might lead one to eliminate the sub groupings entirely ppre codeif year amp amp amp year 25 year amp 15 LY code prepBut in em strongboth strong em cases above the right side of the logical OR the 400th year test is evaluated almost every time years not divisible by and 100 Thus useful optimization has been mistakenly eliminated ppThe parentheses in my original code implement the most optimized solution ppre codeif year amp amp amp year 25 year amp 15 LY code prepHere the logical OR is only evaluated for years divisible by because of the short circuit AND The right side of the logical OR is only evaluated for years divisible by and 100 because of the short circuit OR pp strongNOTE FOR PROGRAMMERS strong ppC programmers might feel this expression is more optimized ppre codeif year amp amp amp year 25 year amp 15 LY code prepThis is not more optimized While the explicit code code and code code tests are removed they become implicit and are still performed Worse the code is no longer valid in strongly typed languages like where codeyear amp code evaluates to an codeint code but the logical AND code amp amp code OR code code and NOT code code operators require codebool code arguments In the modern Gregorian calendar 1300 is not leap year If you have need to go back that far in history then you re going to have to determine what date you should be using the Julian calendar Since this date varies with different cultures and because other cultures used an entirely different calendar system this is not trivial matter The algorithm is correct for the Gregorian calendar h1Convert codeBigInteger code to decimal hex binary octal string h1pLet start with codeBigInteger code value ppre codeBigInteger bigint BigInteger Parse 123456789012345678901234567890 code preh1Base 10 and Base 16 h1pThe built in Base 10 decimal and base 16 hexadecimal coversions are easy ppre code Convert to base 10 decimal string base10 bigint ToString Convert to base 16 hexadecimal string base16 bigint ToString code preh2Leading Zeros positive vs negative BigInteger values h2pTake note that codeToString code ensures hexadecimal strings have leading zero when the value of codeBigInteger code is positive This is unlike the usual behavior of codeToString code when converting from other value types where leading zeros are suppressed ppEXAMPLE ppre codevar positiveBigInt new BigInteger 128 var negativeBigInt new BigInteger 128 Console WriteLine positiveBigInt ToString Console WriteLine negativeBigInt ToString code prepRESULT ppre code08080 code prepThere is purpose for this behavior as leading zero indicates the codeBigInteger code is positive value essentially the leading zero provides the sign This is necessary as opposed to other value type conversions because codeBigInteger code has no fixed size therefore there is no designated sign bit The leading zero identifies positive value as opposed to negative one This allows for round tripping codeBigInteger code values out through codeToString code and back in through codeParse code This behavior is discussed on the href http msdn microsoft com library dd268287 BigInteger Structure page on MSDN ph1Extension methods BigInteger to Binary Hex and Octal h1pHere is class containing extension methods to convert codeBigInteger code instances to binary hexadecimal and octal strings ppre codeusing System using System Numerics using System Text lt summary gt Extension methods to convert lt see cref System Numerics BigInteger gt instances to hexadecimal octal and binary strings lt summary gt public static class BigIntegerExtensions lt summary gt Converts lt see cref BigInteger gt to binary string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing binary representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToBinaryString this BigInteger bigint var bytes bigint ToByteArray var idx bytes Length Create StringBuilder having appropriate capacity var base2 new StringBuilder bytes Length Convert first byte to binary var binary Convert ToString bytes idx Ensure leading zero exists if value is positive if binary amp amp bigint Sign base2 Append Append binary string to StringBuilder base2 Append binary Convert remaining bytes adding leading zeros for idx idx gt idx base2 Append Convert ToString bytes idx PadLeft return base2 ToString lt summary gt Converts lt see cref BigInteger gt to hexadecimal string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing hexadecimal representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToHexadecimalString this BigInteger bigint return bigint ToString lt summary gt Converts lt see cref BigInteger gt to octal string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing an octal representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToOctalString this BigInteger bigint var bytes bigint ToByteArray var idx bytes Length Create StringBuilder having appropriate capacity var base8 new StringBuilder bytes Length Calculate how many bytes are extra when byte array is split into three byte 24 bit chunks var extra bytes Length If no bytes are extra use three bytes for first chunk if extra extra Convert first chunk 24 bits to integer value int int24 for extra extra int24 lt lt int24 bytes idx Convert 24 bit integer to octal without adding leading zeros var octal Convert ToString int24 Ensure leading zero exists if value is positive if octal amp amp bigint Sign base8 Append Append first converted chunk to StringBuilder base8 Append octal Convert remaining 24 bit chunks adding leading zeros for idx gt idx int24 bytes idx lt lt 16 bytes idx lt lt bytes idx base8 Append Convert ToString int24 PadLeft return base8 ToString code prepOn first glance these methods may seem more complex than necessary bit of extra complexity is indeed added to ensure the proper leading zeros are present in the converted strings ppLet examine each extension method to see how they work ph2BigInteger ToBinaryString h2pHere is how to use this extension method to convert codeBigInteger code to binary string ppre code Convert BigInteger to binary string bigint ToBinaryString code prepThe fundamental core of each of these extension methods is the codeBigInteger ToByteArray code method This method converts codeBigInteger code to byte array which is how we can get the binary representation of codeBigInteger code value ppre codevar bytes bigint ToByteArray code prepBeware though the returned byte array is in little endian order so the first array element is the least significant byte LSB of the codeBigInteger code Since codeStringBuilder code is used to build the output string which starts at the most significant digit MSB strongthe byte array must be iterated in reverse strong so that the most significant byte is converted first ppThus an index pointer is set to the most significant digit the last element in the byte array ppre codevar idx bytes Length code prepTo capture the converted bytes codeStringBuilder code is created ppre codevar base2 new StringBuilder bytes Length code prepThe codeStringBuilder code constructor takes the capacity for the codeStringBuilder code The capacity needed for the codeStringBuilder code is calculated by taking the number of bytes to convert multiplied by eight eight binary digits result from each byte converted ppThe first byte is then converted to binary string ppre codevar binary Convert ToString bytes idx code prepAt this point it is necessary to ensure that leading zero exists if the codeBigInteger code is positive value see discussion above If the first converted digit is not zero and codebigint code is positive then code code is appended to the codeStringBuilder code ppre code Ensure leading zero exists if value is positive if binary amp amp bigint Sign base2 Append code prepNext the converted byte is appended to the codeStringBuilder code ppre codebase2 Append binary code prepTo convert the remaining bytes loop iterates the remainder of the byte array in reverse order ppre codefor idx idx gt idx base16 Append Convert ToString bytes idx PadLeft code prepNotice that each converted byte is padded on the left with zeros as necessary so that the converted string is eight binary characters This is extremely important Without this padding the hexadecimal value 101 would be converted to binary value of 11 The leading zeros ensure the conversion is 100000001 ppWhen all bytes are converted the codeStringBuilder code contains the complete binary string which is returned by the extension method ppre codereturn base2 ToString code preh2BigInteger ToOctalString h2pConverting codeBigInteger code to an octal base string is more complicated The problem is octal digits represent three bits which is not an even multiple of the eight bits held in each element of the byte array created by codeBigInteger ToByteArray code To solve this problem three bytes from the array are combined into chunks of 24 bits Each 24 bit chunk evenly converts to eight octal characters ppThe first 24 bit chunk requires some modulo math ppre codevar extra bytes Length code prepThis calculation determines how many bytes are extra when the entire byte array is split into three byte 24 bit chunks The first conversion to octal the most significant digits gets the extra bytes so that all remaining conversions will get three bytes each ppIf there are no extra bytes then the first chunk gets full three bytes ppre codeif extra extra code prepThe first chunk is loaded into an integer variable called codeint24 code that holds up to 24 bits Each byte of the chunk is loaded As additional bytes are loaded the previous bits in codeint24 code are left shifted by bits to make room ppre codeint int24 for extra extra int24 lt lt int24 bytes idx code prepConversion of 24 bit chunk to octal is accomplished by ppre codevar octal Convert ToString int24 code prepAgain the first digit must be leading zero if the codeBigInteger code is positive value ppre code Ensure leading zero exists if value is positive if octal amp amp bigint Sign base8 Append code prepThe first converted chunk is appended to the codeStringBuilder code ppre codebase8 Append octal code prepThe remaining 24 bit chunks are converted in loop ppre codefor idx gt idx int24 bytes idx lt lt 16 bytes idx lt lt bytes idx base8 Append Convert ToString int24 PadLeft code prepLike the binary conversion each converted octal string is left padded with zeros so that becomes 00000007 This ensures that zeros won be dropped from the middle of converted strings 17 instead of 100000007 ph2Conversion to Base h2pConverting codeBigInteger code to other number bases could be far more complicated As long as the number base is power of two 16 the byte array created by codeBigInteger ToByteArray code can be appropriately split into chunks of bits and converted ppHowever if the number base is not power of two the problem becomes much more complicated and requires good deal of looping and division As such number base conversions are rare have only covered the popular computing number bases here not convinced The documentation for the latest version still describes the behavior You may have created negative number not certain Try the example with 128 and 128 as shown in my write uo h1Convert codeBigInteger code to decimal hex binary octal string h1pLet start with codeBigInteger code value ppre codeBigInteger bigint BigInteger Parse 123456789012345678901234567890 code preh1Base 10 and Base 16 h1pThe built in Base 10 decimal and base 16 hexadecimal coversions are easy ppre code Convert to base 10 decimal string base10 bigint ToString Convert to base 16 hexadecimal string base16 bigint ToString code preh2Leading Zeros positive vs negative BigInteger values h2pTake note that codeToString code ensures hexadecimal strings have leading zero when the value of codeBigInteger code is positive This is unlike the usual behavior of codeToString code when converting from other value types where leading zeros are suppressed ppEXAMPLE ppre codevar positiveBigInt new BigInteger 128 var negativeBigInt new BigInteger 128 Console WriteLine positiveBigInt ToString Console WriteLine negativeBigInt ToString code prepRESULT ppre code08080 code prepThere is purpose for this behavior as leading zero indicates the codeBigInteger code is positive value essentially the leading zero provides the sign This is necessary as opposed to other value type conversions because codeBigInteger code has no fixed size therefore there is no designated sign bit The leading zero identifies positive value as opposed to negative one This allows for round tripping codeBigInteger code values out through codeToString code and back in through codeParse code This behavior is discussed on the href http msdn microsoft com library dd268287 BigInteger Structure page on MSDN ph1Extension methods BigInteger to Binary Hex and Octal h1pHere is class containing extension methods to convert codeBigInteger code instances to binary hexadecimal and octal strings ppre codeusing System using System Numerics using System Text lt summary gt Extension methods to convert lt see cref System Numerics BigInteger gt instances to hexadecimal octal and binary strings lt summary gt public static class BigIntegerExtensions lt summary gt Converts lt see cref BigInteger gt to binary string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing binary representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToBinaryString this BigInteger bigint var bytes bigint ToByteArray var idx bytes Length Create StringBuilder having appropriate capacity var base2 new StringBuilder bytes Length Convert first byte to binary var binary Convert ToString bytes idx Ensure leading zero exists if value is positive if binary amp amp bigint Sign base2 Append Append binary string to StringBuilder base2 Append binary Convert remaining bytes adding leading zeros for idx idx gt idx base2 Append Convert ToString bytes idx PadLeft return base2 ToString lt summary gt Converts lt see cref BigInteger gt to hexadecimal string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing hexadecimal representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToHexadecimalString this BigInteger bigint return bigint ToString lt summary gt Converts lt see cref BigInteger gt to octal string lt summary gt lt param name bigint gt lt see cref BigInteger gt lt param gt lt returns gt lt see cref System String gt containing an octal representation of the supplied lt see cref BigInteger gt lt returns gt public static string ToOctalString this BigInteger bigint var bytes bigint ToByteArray var idx bytes Length Create StringBuilder having appropriate capacity var base8 new StringBuilder bytes Length Calculate how many bytes are extra when byte array is split into three byte 24 bit chunks var extra bytes Length If no bytes are extra use three bytes for first chunk if extra extra Convert first chunk 24 bits to integer value int int24 for extra extra int24 lt lt int24 bytes idx Convert 24 bit integer to octal without adding leading zeros var octal Convert ToString int24 Ensure leading zero exists if value is positive if octal amp amp bigint Sign base8 Append Append first converted chunk to StringBuilder base8 Append octal Convert remaining 24 bit chunks adding leading zeros for idx gt idx int24 bytes idx lt lt 16 bytes idx lt lt bytes idx base8 Append Convert ToString int24 PadLeft return base8 ToString code prepOn first glance these methods may seem more complex than necessary bit of extra complexity is indeed added to ensure the proper leading zeros are present in the converted strings ppLet examine each extension method to see how they work ph2BigInteger ToBinaryString h2pHere is how to use this extension method to convert codeBigInteger code to binary string ppre code Convert BigInteger to binary string bigint ToBinaryString code prepThe fundamental core of each of these extension methods is the codeBigInteger ToByteArray code method This method converts codeBigInteger code to byte array which is how we can get the binary representation of codeBigInteger code value ppre codevar bytes bigint ToByteArray code prepBeware though the returned byte array is in little endian order so the first array element is the least significant byte LSB of the codeBigInteger code Since codeStringBuilder code is used to build the output string which starts at the most significant digit MSB strongthe byte array must be iterated in reverse strong so that the most significant byte is converted first ppThus an index pointer is set to the most significant digit the last element in the byte array ppre codevar idx bytes Length code prepTo capture the converted bytes codeStringBuilder code is created ppre codevar base2 new StringBuilder bytes Length code prepThe codeStringBuilder code constructor takes the capacity for the codeStringBuilder code The capacity needed for the codeStringBuilder code is calculated by taking the number of bytes to convert multiplied by eight eight binary digits result from each byte converted ppThe first byte is then converted to binary string ppre codevar binary Convert ToString bytes idx code prepAt this point it is necessary to ensure that leading zero exists if the codeBigInteger code is positive value see discussion above If the first converted digit is not zero and codebigint code is positive then code code is appended to the codeStringBuilder code ppre code Ensure leading zero exists if value is positive if binary amp amp bigint Sign base2 Append code prepNext the converted byte is appended to the codeStringBuilder code ppre codebase2 Append binary code ,,, "repTo convert the remaining bytes loop iterates the remainder of the byte array in reverse order ppre codefor idx idx gt idx base16 Append Convert ToString bytes idx PadLeft code prepNotice that each converted byte is padded on the left with zeros as necessary so that the converted string is eight binary characters This is extremely important Without this padding the hexadecimal value 101 would be converted to binary value of 11 The leading zeros ensure the conversion is 100000001 ppWhen all bytes are converted the codeStringBuilder code contains the complete binary string which is returned by the extension method ppre codereturn base2 ToString code preh2BigInteger ToOctalString h2pConverting codeBigInteger code to an octal base string is more complicated The problem is octal digits represent three bits which is not an even multiple of the eight bits held in each element of the byte array created by codeBigInteger ToByteArray code To solve this problem three bytes from the array are combined into chunks of 24 bits Each 24 bit chunk evenly converts to eight octal characters ppThe first 24 bit chunk requires some modulo math ppre codevar extra bytes Length code prepThis calculation determines how many bytes are extra when the entire byte array is split into three byte 24 bit chunks The first conversion to octal the most significant digits gets the extra bytes so that all remaining conversions will get three bytes each ppIf there are no extra bytes then the first chunk gets full three bytes ppre codeif extra extra code prepThe first chunk is loaded into an integer variable called codeint24 code that holds up to 24 bits Each byte of the chunk is loaded As additional bytes are loaded the previous bits in codeint24 code are left shifted by bits to make room ppre codeint int24 for extra extra int24 lt lt int24 bytes idx code prepConversion of 24 bit chunk to octal is accomplished by ppre codevar octal Convert ToString int24 code prepAgain the first digit must be leading zero if the codeBigInteger code is positive value ppre code Ensure leading zero exists if value is positive if octal amp amp bigint Sign base8 Append code prepThe first converted chunk is appended to the codeStringBuilder code ppre codebase8 Append octal code prepThe remaining 24 bit chunks are converted in loop ppre codefor idx gt idx int24 bytes idx lt lt 16 bytes idx lt lt bytes idx base8 Append Convert ToString int24 PadLeft code prepLike the binary conversion each converted octal string is left padded with zeros so that becomes 00000007 This ensures that zeros won be dropped from the middle of converted strings 17 instead of 100000007 ph2Conversion to Base h2pConverting codeBigInteger code to other number bases could be far more complicated As long as the number base is power of two 16 the byte array created by codeBigInteger ToByteArray code can be appropriately split into chunks of bits and converted ppHowever if the number base is not power of two the problem becomes much more complicated and requires good deal of looping and division As such number base conversions are rare have only covered the popular computing number bases here Perhaps because starts with bit Try using something less than for the first digit Heck try adding leading zero while you re at it Read the docs on the overloaded Parse methods There some stuff in the comments about how negative numbers are handled appreciate if you get to the bottom of this very swamped with commitments and probably can dig into it Good work""",nice question yearle favorite question populist revival good answer nice answer yearle nice question necromancer good answer yearle guru great answer popular question revival efficient leap year test codeif year amp amp amp year year amp leap year code prepthis code valid java language code utilize single true false expression consist separate test year test codeyear amp code year test codeyear code year test codeyear amp code li ulpa complete discussion code work appear discussion wikipedia algorithm call algorithm inefficient unreliable publish pseudo code algorithm href http wikipedia org wiki leap year algorithm noreferrer wikipedia leap year algorithm subject constant edit opinion vandalism strongdo implement wikipedia algorithm strong ppone long stand inefficient wikipedia algorithm appear codeif year modulo leap yearelse year modulo leap yearelse year modulo leap yearelse leap year code prepthe algorithm inefficient perform test year year year quickly fail year test modulo test mdash time order algorithm perform year test speed thing significantly strong efficient pseudo code algorithm strong ppi provide algorithm wikipedia codeif year divisible leap yearelse year divisible leap yearelse year divisible leap yearelse leap year code prepthis efficient pseudo code simply order test division take place frequently occur test year divide percent time algorithm end test case pblockquote strongnote strong fight wikipedia editor improve algorithm publish argue novice mdash professional mdash programmer quickly arrive wikipedia page search engine listing implement wikipedia pseudo code research wikipedia editor repudiate delete attempt improve annotate footnote publish algorithm apparently feel find efficiency programmer problem true programmer hurry perform solid research efficient leap year test strongbitwise place modulo strong ppi replace modulo operation wikipedia algorithm bitwise operation ppperforme modulo calculation require division programming pc programming bit embed small device divide function natively perform cpu cpus division arduous process involve repetitive loop bit shift add subtract operation slow desirable avoid ppit turn modulo power alternately achieve bitwise operation href http wikipedia org wiki modulo operation performance issue noreferrer wikipedia modulo operation performance issue ppx amp ppmany optimize compiler convert modulo operation bitwise advanced compiler small popular cpus bitwise single instruction cpu ppby replace codemodulo code codemodulo code test code amp code code amp code factoring reduce math ensure fast code result slow divide operation ppthere exist power equal force continue modulo operation year test replace strongfactore simplify math strong ppin addition bitwise replace modulo operation note additional dispute wikipedia algorithm optimize expression pulli codemodulo code replace codemodulo code lili codemodulo code replace code amp code li ulpthe year test utilize codemodulo code codemodulo code factor year test check factor eliminate factor leave optimization insignificant cpu implementation fit bit ppthe year test utilize code amp code equivalent codemodulo code factor eliminate factor test year test leave reduce factor remove factor produce unwanted positive year ppthe year optimization greatly important bit cpus avoid division important bit number difficult deal bit cpu strongshort circuit logical operator strong ppthe final important optimization short circuit logical amp amp operator href http wikipedia org wiki short circuit evaluation noreferrer wikipedia short circuit evaluation implement language short circuit operator name bother evaluate expression expression leave dictate outcome operation ppfor year codeyear amp code false test logical make outcome true evaluate ppby perform year test year test simple bitwise evaluate quarter percent time speed program execution greatly avoid division year test modulo operation strongnote parenthesis placement strong ppone commenter feel parenthesis misplace code suggest expression regroup logical operator logical codeif year amp amp amp year year amp code prepthe incorrect logical operator high precedence logical evaluate parenthesis parenthesis logical argument effect lead eliminate grouping codeif year amp amp amp year year amp code prepbut -PRON- strongboth strong -PRON- case logical year test evaluate time year divisible optimization mistakenly eliminate ppthe parenthesis original code implement optimize solution codeif year amp amp amp year year amp code prephere logical evaluate year divisible short circuit logical evaluate year divisible short circuit strongnote programmer strong ppc programmer feel expression optimize codeif year amp amp amp year year amp code prepthis optimize explicit code code code code test remove implicit perform bad code longer valid strongly type language codeyear amp code evaluate codeint code logical code amp amp code code code code code operator require codebool code argument leap year fail year test efficient leap year test codeif year amp amp amp year year amp leap year code prepthis code valid java language code utilize single true false expression consist separate test year test codeyear amp code year test codeyear code year test codeyear amp code li ulpa complete discussion code work appear discussion wikipedia algorithm call algorithm inefficient unreliable publish pseudo code algorithm href http wikipedia org wiki leap year algorithm noreferrer wikipedia leap year algorithm subject constant edit opinion vandalism strongdo implement wikipedia algorithm strong ppone long stand inefficient wikipedia algorithm appear codeif year modulo leap yearelse year modulo leap yearelse year modulo leap yearelse leap year code prepthe algorithm inefficient perform test year year year quickly fail year test modulo test mdash time order algorithm perform year test speed thing significantly strong efficient pseudo code algorithm strong ppi provide algorithm wikipedia codeif year divisible leap yearelse year divisible leap yearelse year divisible leap yearelse leap year code prepthis efficient pseudo code simply order test division take place frequently occur test year divide percent time algorithm end test case pblockquote strongnote strong fight wikipedia editor improve algorithm publish argue novice mdash professional mdash programmer quickly arrive wikipedia page search engine listing implement wikipedia pseudo code research wikipedia editor repudiate delete attempt improve annotate footnote publish algorithm apparently feel find efficiency programmer problem true programmer hurry perform solid research efficient leap year test strongbitwise place modulo strong ppi replace modulo operation wikipedia algorithm bitwise operation ppperforme modulo calculation require division programming pc programming bit embed small device divide function natively perform cpu cpus division arduous process involve repetitive loop bit shift add subtract operation slow desirable avoid ppit turn modulo power alternately achieve bitwise operation href http wikipedia org wiki modulo operation performance issue noreferrer wikipedia modulo operation performance issue ppx amp ppmany optimize compiler convert modulo operation bitwise advanced compiler small popular cpus bitwise single instruction cpu ppby replace codemodulo code codemodulo code test code amp code code amp code factoring reduce math ensure fast code result slow divide operation ppthere exist power equal force continue modulo operation year test replace strongfactore simplify math strong ppin addition bitwise replace modulo operation note additional dispute wikipedia algorithm optimize expression pulli codemodulo code replace codemodulo code lili codemodulo code replace code amp code li ulpthe year test utilize codemodulo code codemodulo code factor year test check factor eliminate factor leave optimization insignificant cpu implementation fit bit ppthe year test utilize code amp code equivalent codemodulo code factor eliminate factor test year test leave reduce factor remove factor produce unwanted positive year ppthe year optimization greatly important bit cpus avoid division important bit number difficult deal bit cpu strongshort circuit logical operator strong ppthe final important optimization short circuit logical amp amp operator href http wikipedia org wiki short circuit evaluation noreferrer wikipedia short circuit evaluation implement language short circuit operator name bother evaluate expression expression leave dictate outcome operation ppfor year codeyear amp code false test logical make outcome true evaluate ppby perform year test year test simple bitwise evaluate quarter percent time speed program execution greatly avoid division year test modulo operation strongnote parenthesis placement strong ppone commenter feel parenthesis misplace code suggest expression regroup logical operator logical codeif year amp amp amp year year amp code prepthe incorrect logical operator high precedence logical evaluate parenthesis parenthesis logical argument effect lead eliminate grouping codeif year amp amp amp year year amp code prepbut -PRON- strongboth strong -PRON- case logical year test evaluate time year divisible optimization mistakenly eliminate ppthe parenthesis original code implement optimize solution codeif year amp amp amp year year amp code prephere logical evaluate year divisible short circuit logical evaluate year divisible short circuit strongnote programmer strong ppc programmer feel expression optimize codeif year amp amp amp year year amp code prepthis optimize explicit code code code code test remove implicit perform bad code longer valid strongly type language codeyear amp code evaluate codeint code logical code amp amp code code code code code operator require codebool code argument modern gregorian calendar leap year history determine date julian calendar date vary culture culture calendar trivial matter algorithm correct gregorian calendar codebiginteger code decimal hex binary octal string start codebiginteger code codebiginteger bigint biginteger parse code base build base decimal base hexadecimal coversion easy code convert base decimal string bigint tostre convert base hexadecimal string bigint tostre code zero positive negative biginteger value note codetostre code ensure hexadecimal string lead codebiginteger code positive usual behavior codetostre code convert type lead zero suppress ppexample codevar positivebigint biginteger var negativebigint biginteger console writeline positivebigint tostre console writeline negativebigint tostre code prepresult code prepthere purpose behavior lead codebiginteger code positive essentially lead sign oppose type conversion codebiginteger code fix size designate sign bit lead identifie positive oppose negative trip codebiginteger code value codetostre code codeparse code behavior discuss href http msdn microsoft library biginteger structure page msdn method biginteger binary hex octal class extension method convert codebiginteger code instance binary hexadecimal octal string codeuse numeric text lt summary extension method convert lt cref numeric biginteger instance hexadecimal octal binary string lt summary public static class lt summary convert lt cref biginteger binary string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string binary representation supply lt cref biginteger lt return public static string tobinarystre biginteger bigint var byte bigint tobytearray var idx byte length create stringbuilder capacity var stringbuilder byte length convert byte binary var binary convert tostre byte idx ensure lead exist positive binary amp amp bigint sign append append binary string stringbuilder append binary convert remain byte add lead zero idx idx idx append convert tostre byte idx padleft return tostre lt summary convert lt cref biginteger hexadecimal string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string hexadecimal representation supply lt cref biginteger lt return public static string biginteger bigint return bigint tostre lt summary convert lt cref biginteger octal string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string octal representation supply lt cref biginteger lt return public static string tooctalstre biginteger bigint var byte bigint tobytearray var idx byte length create stringbuilder capacity var stringbuilder byte length calculate byte extra byte array split byte bit chunk var extra byte length byte extra byte chunk extra extra convert chunk bit integer int extra extra lt lt byte idx convert bit integer octal add lead zero var octal convert tostre ensure lead exist positive octal amp amp bigint sign append append convert chunk stringbuilder append octal convert remain bit chunk add lead zero idx idx byte idx lt lt byte idx lt lt byte idx append convert tostre padleft return tostre code prepon glance method complex bit extra complexity add ensure proper lead zero present convert string pplet examine extension method work tobinarystre extension method convert codebiginteger code binary string code convert biginteger binary string bigint tobinarystre code prepthe fundamental core extension method codebiginteger tobytearray code method method convert codebiginteger code byte array binary representation codebiginteger code codevar byte bigint tobytearray code prepbeware return byte array endian order array element significant byte lsb codebiginteger code code build output string start significant digit strongthe byte array iterate reverse strong significant byte convert ppthus index pointer set significant digit element byte array codevar idx byte length code prepto capture convert byte code create codevar stringbuilder byte length code prepthe code constructor take capacity code capacity need code calculate take number byte convert multiply binary digit result byte convert ppthe byte convert binary string codevar binary convert tostre byte idx code prepat point ensure lead exist codebiginteger code positive discussion convert digit codebigint code positive code code append code code ensure lead exist positive binary amp amp bigint sign append code prepnext convert byte append code append binary code prepto convert remain byte loop iterate remainder byte array reverse order codefor idx idx idx append convert tostre byte idx padleft code prepnotice convert byte pad leave zero convert string binary character extremely important pad hexadecimal convert binary lead zero ensure conversion ppwhen byte convert code complete binary string return extension method codereturn tostre code tooctalstre codebiginteger code octal base string complicate problem octal digit represent bit multiple bit hold element byte array create codebiginteger tobytearray code solve problem byte array combine chunk bit bit chunk evenly convert octal character ppthe bit chunk require modulo math codevar extra byte length code prepthis calculation determine byte extra entire byte array split byte bit chunk conversion octal significant digit extra byte remain conversion byte ppif extra byte chunk byte codeif extra extra code prepthe chunk load integer variable call code hold bit byte chunk load additional byte load previous bit code leave shift bit make room codeint extra extra lt lt byte idx code prepconversion bit chunk octal accomplish codevar octal convert tostre code prepagain digit lead codebiginteger code positive code ensure lead exist positive octal amp amp bigint sign append code prepthe convert chunk append code append octal code prepthe remain bit chunk convert loop codefor idx idx byte idx lt lt byte idx lt lt byte idx append convert tostre padleft code preplike binary conversion convert octal string leave pad zero ensure zero drop middle convert string base codebiginteger code number basis complicate long number base power byte array create codebiginteger tobytearray code appropriately split chunk bit convert pphowever number base power problem complicate require good deal loop division number base conversion rare cover popular compute number basis convince documentation late version describe behavior create negative number show write codebiginteger code decimal hex binary octal string start codebiginteger code codebiginteger bigint biginteger parse code base build base decimal base hexadecimal coversion easy code convert base decimal string bigint tostre convert base hexadecimal string bigint tostre code zero positive negative biginteger value note codetostre code ensure hexadecimal string lead codebiginteger code positive usual behavior codetostre code convert type lead zero suppress ppexample codevar positivebigint biginteger var negativebigint biginteger console writeline positivebigint tostre console writeline negativebigint tostre code prepresult code prepthere purpose behavior lead codebiginteger code positive essentially lead sign oppose type conversion codebiginteger code fix size designate sign bit lead identifie positive oppose negative trip codebiginteger code value codetostre code codeparse code behavior discuss href http msdn microsoft library biginteger structure page msdn method biginteger binary hex octal class extension method convert codebiginteger code instance binary hexadecimal octal string codeuse numeric text lt summary extension method convert lt cref numeric biginteger instance hexadecimal octal binary string lt summary public static class lt summary convert lt cref biginteger binary string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string binary representation supply lt cref biginteger lt return public static string tobinarystre biginteger bigint var byte bigint tobytearray var idx byte length create stringbuilder capacity var stringbuilder byte length convert byte binary var binary convert tostre byte idx ensure lead exist positive binary amp amp bigint sign append append binary string stringbuilder append binary convert remain byte add lead zero idx idx idx append convert tostre byte idx padleft return tostre lt summary convert lt cref biginteger hexadecimal string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string hexadecimal representation supply lt cref biginteger lt return public static string biginteger bigint return bigint tostre lt summary convert lt cref biginteger octal string lt summary lt param bigint lt cref biginteger lt param lt return lt cref string octal representation supply lt cref biginteger lt return public static string tooctalstre biginteger bigint var byte bigint tobytearray var idx byte length create stringbuilder capacity var stringbuilder byte length calculate byte extra byte array split byte bit chunk var extra byte length byte extra byte chunk extra extra convert chunk bit integer int extra extra lt lt byte idx convert bit integer octal add lead zero var octal convert tostre ensure lead exist positive octal amp amp bigint sign append append convert chunk stringbuilder append octal convert remain bit chunk add lead zero idx idx byte idx lt lt byte idx lt lt byte idx append convert tostre padleft return tostre code prepon glance method complex bit extra complexity add ensure proper lead zero present convert string pplet examine extension method work tobinarystre extension method convert codebiginteger code binary string code convert biginteger binary string bigint tobinarystre code prepthe fundamental core extension method codebiginteger tobytearray code method method convert codebiginteger code byte array binary representation codebiginteger code codevar byte bigint tobytearray code prepbeware return byte array endian order array element significant byte lsb codebiginteger code code build output string start significant digit strongthe byte array iterate reverse strong significant byte convert ppthus index pointer set significant digit element byte array codevar idx byte length code prepto capture convert byte code create codevar stringbuilder byte length code prepthe code constructor take capacity code capacity need code calculate take number byte convert multiply binary digit result byte convert ppthe byte convert binary string codevar binary convert tostre byte idx code prepat point ensure lead exist codebiginteger code positive discussion convert digit codebigint code positive code code append code code ensure lead exist positive binary amp amp bigint sign append code prepnext convert byte append code append binary code prepto convert remain byte loop iterate remainder byte array reverse order codefor idx idx idx append convert tostre byte idx padleft code prepnotice convert byte pad leave zero convert string binary character extremely important pad hexadecimal convert binary lead zero ensure conversion ppwhen byte convert code complete binary string return extension method codereturn tostre code tooctalstre codebiginteger code octal base string complicate problem octal digit represent bit multiple bit hold element byte array create codebiginteger tobytearray code solve problem byte array combine chunk bit bit chunk evenly convert octal character ppthe bit chunk require modulo math codevar extra byte length code prepthis calculation determine byte extra entire byte array split byte bit chunk conversion octal significant digit extra byte remain conversion byte ppif extra byte chunk byte codeif extra extra code prepthe chunk load integer variable call code hold bit byte chunk load additional byte load previous bit code leave shift bit make room codeint extra extra lt lt byte idx code prepconversion bit chunk octal accomplish codevar octal convert tostre code prepagain digit lead codebiginteger code positive code ensure lead exist positive octal amp amp bigint sign append code prepthe convert chunk append code append octal code prepthe remain bit chunk convert loop codefor idx idx byte idx lt lt byte idx lt lt byte idx append convert tostre padleft code preplike binary conversion convert octal string leave pad zero ensure zero drop middle convert string base codebiginteger code number basis complicate long number base power byte array create codebiginteger tobytearray code appropriately split chunk bit convert pphowever number base power problem complicate require good deal loop division number base conversion rare cover popular compute number basis start bit digit heck add lead read docs overload parse method stuff comment negative number handle swamp commitment good work,0,NULL,NULL,,,, 42682,63503,851739,Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42683,915455,400654,Guru Enlightened Nice Answer jquery-deferred Guru Nice Answer Good Answer Nice Answer Nice Answer angularjs Nice Answer Enlightened Nice Answer Enlightened Outspoken Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened forms Famous Question dom Good Answer Good Answer Populist Nice Answer Guru Caucus Nice Answer Enlightened Good Answer Constituent Guru Popular Question Nice Answer Census Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Good Answer Guru Reversal Generalist Nice Answer Enlightened Nice Answer Enlightened json Good Answer Guru Guru Announcer Caucus Yearling Nice Answer Constituent Guru Good Answer Documentation User Nice Answer Nice Answer Good Answer Enlightened jquery-selectors Census Nice Answer Enlightened Nice Answer Good Answer Guru Great Answer Epic Great Answer promise Good Answer Guru Nice Answer Enlightened Good Answer Caucus Constituent Good Answer Nice Answer Nice Answer Enlightened internet-explorer Peer Pressure Nice Answer Popular Question Good Answer Yearling Nice Answer twitter-bootstrap Nice Answer Enlightened Good Answer,NULL,pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre https stackoverflow com questions 48349699 why does array prototype foreach not recognize await within an async function pYou don need to copy things around webpack works different than gulp Webpack is module bundler and everything you reference in your files will be included You just need to specify loader for that ppSo if you write ppre codevar myImage require static myImage jpg code prepWebpack will first try to parse the referenced file as JavaScript because that the default Of course that will fail That why you need to specify loader for that file type The href https github com webpack file loader rel noreferrer file or href https github com webpack url loader rel noreferrer url loader for instance take the referenced file put it into webpack output folder which should be codebuild code in your case and return the hashed url for that file ppre codevar myImage require static myImage jpg console log myImage build 12as7f9asfasgasg jpg code prepUsually loaders are applied via the webpack config ppre code webpack config jsmodule exports module loaders test jpe gif png svg woff ttf wav mp3 loader file code prepOf course you need to install the file loader first to make this work mean yeah this works great if you don actually need to copy files but when you do actually need to copy static files into your build folder,0,NULL,NULL 42684,1531269,400654,Guru Enlightened Nice Answer jquery-deferred Guru Nice Answer Good Answer Nice Answer Nice Answer angularjs Nice Answer Enlightened Nice Answer Enlightened Outspoken Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened forms Famous Question dom Good Answer Good Answer Populist Nice Answer Guru Caucus Nice Answer Enlightened Good Answer Constituent Guru Popular Question Nice Answer Census Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Good Answer Guru Reversal Generalist Nice Answer Enlightened Nice Answer Enlightened json Good Answer Guru Guru Announcer Caucus Yearling Nice Answer Constituent Guru Good Answer Documentation User Nice Answer Nice Answer Good Answer Enlightened jquery-selectors Census Nice Answer Enlightened Nice Answer Good Answer Guru Great Answer Epic Great Answer promise Good Answer Guru Nice Answer Enlightened Good Answer Caucus Constituent Good Answer Nice Answer Nice Answer Enlightened internet-explorer Peer Pressure Nice Answer Popular Question Good Answer Yearling Nice Answer twitter-bootstrap Nice Answer Enlightened Good Answer,NULL,pSure the code does work but pretty sure it doesn do what you expect it to do It just fires off multiple asynchronous calls but the codeprintFiles code function does immediately return after that ppIf you want to read the files in sequence strongyou cannot use codeforEach code strong indeed Just use modern codefor of code loop instead in which codeawait code will work as expected ppre codeasync function printFiles const files await getFilePaths for const file of files const contents await fs readFile file utf8 console log contents code prepIf you want to read the files in parallel strongyou cannot use codeforEach code strong indeed Each of the codeasync code callback function calls does return promise but you re throwing them away instead of awaiting them Just use codemap code instead and you can await the array of promises that you ll get with codePromise all code ppre codeasync function printFiles const files await getFilePaths await Promise all files map async file gt const contents await fs readFile file utf8 console log contents code pre https stackoverflow com questions 48349699 why does array prototype foreach not recognize await within an async function pYou don need to copy things around webpack works different than gulp Webpack is module bundler and everything you reference in your files will be included You just need to specify loader for that ppSo if you write ppre codevar myImage require static myImage jpg code prepWebpack will first try to parse the referenced file as JavaScript because that the default Of course that will fail That why you need to specify loader for that file type The href https github com webpack file loader rel noreferrer file or href https github com webpack url loader rel noreferrer url loader for instance take the referenced file put it into webpack output folder which should be codebuild code in your case and return the hashed url for that file ppre codevar myImage require static myImage jpg console log myImage build 12as7f9asfasgasg jpg code prepUsually loaders are applied via the webpack config ppre code webpack config jsmodule exports module loaders test jpe gif png svg woff ttf wav mp3 loader file code prepOf course you need to install the file loader first to make this work mean yeah this works great if you don actually need to copy files but when you do actually need to copy static files into your build folder,0,NULL,NULL 42685,143265,563473,Yearling Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Excavator Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 42686,218988,827392,NULL,NULL,NULL,0,NULL,NULL 42687,2680390,1343795,NULL,NULL,NULL,0,NULL,NULL 42688,282675,492405,Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened iis Great Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Nice Question Great Question Nice Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Notable Question Good Answer Great Answer Populist Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Necromancer Good Answer Refiner Yearling Favorite Question Caucus Constituent Guru Good Answer Guru Popular Question Notable Question Great Answer Populist Nice Answer Guru Good Question Good Question Nice Answer Enlightened Good Answer Census .net Guru Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Famous Question Good Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Great Answer Nice Answer Enlightened Guru Guru Guru Caucus Good Answer Constituent Nice Answer Enlightened Nice Answer Enlightened regex c#-4.0 Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Documentation User Nice Answer Enlightened Announcer Yearling Guru Guru Good Answer Nice Question Guru Census Revival Announcer Guru Nice Answer Good Answer Good Answer Good Answer Guru Good Answer Good Answer visual-studio Notable Question Nice Answer Caucus Announcer Nice Answer Constituent Guru Enlightened Great Answer Announcer Guru Enlightened Announcer Announcer Nice Answer Enlightened Nice Answer Good Answer Announcer Announcer Announcer Taxonomist winforms Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer,NULL,pIf the content is string ppre code someString Hello World md5 new object TypeName System Security Cryptography MD5CryptoServiceProvider utf8 new object TypeName System Text UTF8Encoding hash System BitConverter ToString md5 ComputeHash utf8 GetBytes someString code prepIf the content is file ppre code someFilePath foo txt md5 New Object TypeName System Security Cryptography MD5CryptoServiceProvider hash System BitConverter ToString md5 ComputeHash System IO File ReadAllBytes someFilePath code prehrpStarting in PowerShell version this is easy to do for files out of the box with the href https docs microsoft com en us powershell module Microsoft PowerShell Utility Get FileHash view powershell rel noreferrer codeGet FileHash code cmdlet ppre codeGet FileHash lt filepath gt Algorithm MD5 code prepThis is certainly preferable since it avoids the problems the first solution offers as identified in the comments uses stream closes it and supports large files the last option will not using Get FileHash pI figured out you can do this with codeMicrosoft AspNetCore WebUtilities QueryHelpers code in the href https www nuget org packages Microsoft AspNetCore WebUtilities Microsoft AspNetCore WebUtilities package ppTo parse it into dictionary ppre codevar uri new Uri context RedirectUri var queryDictionary Microsoft AspNetCore WebUtilities QueryHelpers ParseQuery uri Query code prepNote that unlike codeParseQueryString code in System Web this returns dictionary of type codeIDictionary lt string string gt code so the value is an array of strings This is how the dictionary handles multiple query string parameters with the same name ppIf you want to add parameter on to the query string you can use another method on codeQueryHelpers code ppre codevar parametersToAdd new System Collections Generic Dictionary lt string string gt resource foo var someUrl http www google com var newUri Microsoft AspNetCore WebUtilities QueryHelpers AddQueryString someUrl parametersToAdd code pre Awesome observation Can you edit my answer with that update so you get credit for it Why does the last platform specific dependency take precedence in Cargo rust rust cargo pI have dependency in my Cargo file that needs to be different by platform specifically the default features Here what am trying to do ppre code package name blah version blah authors blah target cfg target os macos dependencies hyper version default features false features security framework target cfg target os linux dependencies hyper version default features true code prepBut this doesn seem to do what want On my Mac it appears to be using the bottom target line as if just specified codehyper code If do codecargo build code as specified get errors with regard to openssl pblockquote pcargo warning include lt openssl ssl gt blockquotepHowever if build it like this ppre code dependencies hyper version default features false features security framework code prepThen it builds fine This indicates to me that the codecfg code for macos isn working ppHow do make this work or more specifically how do solve the problem where need my dependency to use different features by platform well in theory they are trying to solve the same problem so suppose my question then is Why isn my Cargo file selecting the right configuration for dependency Why does the last platform specific dependency take precedence in Cargo rust rust cargo pI have dependency in my Cargo file that needs to be different by platform specifically the default features Here what am trying to do ppre code package name blah version blah authors blah target cfg target os macos dependencies hyper version default features false features security framework target cfg target os linux dependencies hyper version default features true code prepBut this doesn seem to do what want On my Mac it appears to be using the bottom target line as if just specified codehyper code If do codecargo build code as specified get errors with regard to openssl pblockquote pcargo warning include lt openssl ssl gt blockquotepHowever if build it like this ppre code dependencies hyper version default features false features security framework code prepThen it builds fine This indicates to me that the codecfg code for macos isn working ppHow do make this work or more specifically how do solve the problem where need my dependency to use different features by platform nope ve been meaning to file an issue on the Cargo GitHub repository,1,Why does the last platform specific dependency take precedence in Cargo rust rust cargo pI have dependency in my Cargo file that needs to be different by platform specifically the default features Here what am trying to do ppre code package name blah version blah authors blah target cfg target os macos dependencies hyper version default features false features security framework target cfg target os linux dependencies hyper version default features true code prepBut this doesn seem to do what want On my Mac it appears to be using the bottom target line as if just specified codehyper code If do codecargo build code as specified get errors with regard to openssl pblockquote pcargo warning include lt openssl ssl gt blockquotepHowever if build it like this ppre code dependencies hyper version default features false features security framework code prepThen it builds fine This indicates to me that the codecfg code for macos isn working ppHow do make this work or more specifically how do solve the problem where need my dependency to use different features by platform,NULL 42689,133762,414863,NULL,NULL,NULL,0,NULL,NULL 42690,75866,1205401,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 42691,1054396,685722,NULL,NULL,NULL,0,NULL,NULL 42692,315048,376096,NULL,NULL,NULL,0,NULL,NULL 42693,1252323,1219939,NULL,NULL,NULL,0,NULL,NULL 42694,632637,472697,NULL,NULL,NULL,0,NULL,NULL 42695,509202,892733,Critic,NULL,NULL,0,NULL,NULL 42696,40974,175753,Necromancer Yearling,NULL,NULL,0,NULL,NULL 42697,86208,1489823,Nice Answer Announcer Custodian Nice Question Census Yearling Good Answer Announcer Civic Duty,NULL,NULL,0,NULL,NULL 42698,252654,1535232,NULL,NULL,NULL,0,NULL,NULL 42699,170766,105858,Popular Question Yearling,NULL,NULL,0,NULL,NULL 42700,84375,352684,NULL,NULL,NULL,0,NULL,NULL 42701,292367,1166181,Necromancer Yearling Self-Learner Nice Answer Popular Question Yearling Nice Answer Necromancer Nice Answer Yearling Notable Question Necromancer Popular Question Necromancer Custodian,NULL,NULL,0,NULL,NULL 42702,176623,945887,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42703,288793,9,Yearling Popular Question Revival Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 42704,2723524,1362936,NULL,NULL,NULL,0,NULL,NULL 42705,43062,1263577,NULL,NULL,NULL,0,NULL,NULL 42706,475645,1013878,Supporter Revival,NULL,NULL,0,NULL,NULL 42707,762106,85927,Yearling Yearling Organizer Yearling Tag Editor Caucus Famous Question Yearling Census Yearling Citizen Patrol Yearling Unsung Hero Caucus Census Nice Answer Yearling Cleanup Nice Answer,NULL,NULL,0,NULL,NULL 42708,3388151,85927,Yearling Yearling Organizer Yearling Tag Editor Caucus Famous Question Yearling Census Yearling Citizen Patrol Yearling Unsung Hero Caucus Census Nice Answer Yearling Cleanup Nice Answer,NULL,NULL,0,NULL,NULL 42709,579929,908830,Autobiographer Informed,NULL,NULL,0,NULL,NULL 42710,262675,120599,Good Answer Notable Question Yearling Notable Question Yearling Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 42711,165242,502462,NULL,NULL,NULL,0,NULL,NULL 42712,1260265,1012232,NULL,NULL,NULL,0,NULL,NULL 42713,98229,61104,Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42714,240512,842074,NULL,NULL,NULL,0,NULL,NULL 42715,141769,1106407,Popular Question,NULL,NULL,0,NULL,NULL 42716,1244915,191837,Nice Question Good Answer Yearling Proofreader Revival Nice Answer html Great Answer Yearling Guru Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 42717,72210,191837,Nice Question Good Answer Yearling Proofreader Revival Nice Answer html Great Answer Yearling Guru Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 42718,376873,1094714,NULL,NULL,NULL,0,NULL,NULL 42719,222320,1051978,NULL,NULL,NULL,0,NULL,NULL 42720,119335,19252,Good Question Proofreader Favorite Question Nice Answer Yearling Good Answer Informed Famous Question Popular Question Nice Question Popular Question Yearling Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 42721,136803,172913,Good Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42722,62331,361062,Curious Notable Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 42723,153144,373916,NULL,NULL,NULL,0,NULL,NULL 42724,92237,532030,NULL,NULL,NULL,0,NULL,NULL 42725,625192,245350,Commentator Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42726,635655,1189069,Yearling Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 42727,299800,927170,NULL,NULL,NULL,0,NULL,NULL 42728,194523,26474,NULL,NULL,NULL,0,NULL,NULL 42729,1475823,440151,Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Caucus Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42730,19387,765200,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42731,79985,439416,Nice Answer,NULL,NULL,0,NULL,NULL 42732,1942380,965317,NULL,NULL,NULL,0,NULL,NULL 42733,253630,1350080,NULL,NULL,NULL,0,NULL,NULL 42734,124641,335627,Nice Answer Yearling Nice Answer Yearling Revival Good Answer Caucus Nice Answer Nice Answer Good Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 42735,137923,823603,Notable Question Census Popular Question,NULL,NULL,0,NULL,NULL 42736,178460,93212,Nice Question Yearling Electorate Popular Question Popular Question Popular Question Popular Question Favorite Question Custodian Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Announcer Popular Question Popular Question Notable Question Famous Question Famous Question Cleanup Custodian Favorite Question Yearling Popular Question Great Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42737,399683,1327897,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42738,4763,746881,Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42739,1796506,746881,Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42740,46963,746881,Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42741,289638,1002256,NULL,NULL,NULL,0,NULL,NULL 42742,204262,1516821,NULL,NULL,NULL,0,NULL,NULL 42743,44113,785957,NULL,NULL,NULL,0,NULL,NULL 42744,60936,1171955,Revival Necromancer Revival Yearling Revival Nice Answer Necromancer Yearling Necromancer Nice Answer Nice Answer Enlightened Yearling Revival,NULL,NULL,0,NULL,NULL 42745,1394621,1002396,NULL,NULL,NULL,0,NULL,NULL 42746,524228,1296786,Necromancer,NULL,NULL,0,NULL,NULL 42747,461558,952287,NULL,NULL,NULL,0,NULL,NULL 42748,293181,835673,Notable Question,NULL,NULL,0,NULL,NULL 42749,399271,832457,NULL,NULL,NULL,0,NULL,NULL 42750,200836,200041,Guru Good Answer Yearling wpf Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 42751,1103930,957909,Popular Question,NULL,NULL,0,NULL,NULL 42752,147145,957909,Popular Question,NULL,NULL,0,NULL,NULL 42753,1833475,957909,Popular Question,NULL,NULL,0,NULL,NULL 42754,884864,957909,Popular Question,NULL,NULL,0,NULL,NULL 42755,2278144,957909,Popular Question,NULL,NULL,0,NULL,NULL 42756,618654,957909,Popular Question,NULL,NULL,0,NULL,NULL 42757,286608,395686,Editor Yearling Necromancer,NULL,pAnother way ppre code Gets the real path of link following all linksmyreadlink amp amp echo local link expr command ls ld gt cd dirname myreadlink link sed dirname Returns the absolute path to command maybe in PATH which or not If not found returns the samewhereis echo sed pwd which Returns the realpath of called command whereis realpath local SCRIPT PATH whereis myreadlink SCRIPT PATH sed dirname SCRIPT PATH code pre need cd in myreadlink because it is recursive function going to each directory until it finds link If it finds link returns the realpath and then sed would replace the path,0,NULL,NULL 42758,279155,166029,Popular Question Nice Answer Yearling Popular Question Custodian Yearling Good Answer Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 42759,675798,340597,Famous Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42760,675799,340597,Famous Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42761,356142,812860,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42762,2138805,521647,Popular Question,NULL,NULL,0,NULL,NULL 42763,751005,521647,Popular Question,NULL,NULL,0,NULL,NULL 42764,10660431,511621,Guru Yearling Yearling Yearling Great Answer Commentator Yearling Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 42765,165013,400873,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42766,249932,618474,Notable Question,NULL,NULL,0,NULL,NULL 42767,715577,760487,Yearling Populist Great Answer Necromancer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 42768,140814,1124754,NULL,NULL,NULL,0,NULL,NULL 42769,121949,1146143,Necromancer Supporter Student,NULL,NULL,0,NULL,NULL 42770,250713,504336,NULL,NULL,NULL,0,NULL,NULL 42771,898089,1389731,NULL,NULL,NULL,0,NULL,NULL 42772,441126,1320597,NULL,NULL,NULL,0,NULL,NULL 42773,66666,1086908,NULL,NULL,NULL,0,NULL,NULL 42774,110952,90393,Famous Question Yearling,NULL,NULL,0,NULL,NULL 42775,64299,374578,Good Question Famous Question Nice Answer Popular Question Yearling Popular Question Nice Question Caucus Caucus Constituent Popular Question Famous Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 42776,135696,247145,NULL,NULL,NULL,0,NULL,NULL 42777,283929,670200,NULL,NULL,NULL,0,NULL,NULL 42778,4514808,845097,NULL,NULL,NULL,0,NULL,NULL 42779,1426628,845097,NULL,NULL,NULL,0,NULL,NULL 42780,370315,220964,NULL,NULL,NULL,0,NULL,NULL 42781,944141,1107710,Necromancer Student Supporter,NULL,NULL,0,NULL,NULL 42782,392171,1107710,Necromancer Student Supporter,NULL,NULL,0,NULL,NULL 42783,84904,547223,Nice Answer Enlightened Announcer Necromancer Yearling Nice Answer Pundit Yearling,NULL,NULL,0,NULL,NULL 42784,125146,227313,Nice Answer Good Answer Notable Question Nice Question Famous Question Notable Question Announcer Famous Question Guru Yearling Nice Question Necromancer Necromancer Popular Question Notable Question Popular Question Yearling,NULL,pInserts updates deletes and reads are generally OK from multiple threads but Brad href https stackoverflow com 2493839 2759862 answer is not correct You have to be careful with how you create your connections and use them There are situations where your update calls will fail even if your database doesn get corrupted pp strongThe basic answer strong ppThe SqliteOpenHelper object holds on to one database connection It appears to offer you read and write connection but it really doesn Call the read only and you ll get the write database connection regardless ppSo one helper instance one db connection Even if you use it from multiple threads one connection at time The SqliteDatabase object uses java locks to keep access serialized So if 100 threads have one db instance calls to the actual on disk database are serialized ppSo one helper one db connection which is serialized in java code One thread 1000 threads if you use one helper instance shared between them all of your db access code is serial And life is good ish ppIf you try to write to the database from actual distinct connections at the same time one will fail It will not wait till the first is done and then write It will simply not write your change Worse if you don’t call the right version of insert update on the SQLiteDatabase you won’t get an exception You’ll just get message in your LogCat and that will be it ppSo multiple threads Use one helper Period If you KNOW only one thread will be writing you MAY be able to use multiple connections and your reads will be faster but buyer beware haven tested that much ppHere blog post with far more detail and an example app pulli href http touchlabblog tumblr com post 24474398246 android sqlite locking rel noreferrer Android Sqlite Locking Updated link 18 2012 lili href https github com touchlab Android Database Locking Collisions Example rel noreferrer Android Database Locking Collisions Example by touchlab on GitHub li ulpGray and are actually wrapping up an ORM tool based off of his Ormlite that works natively with Android database implementations and follows the safe creation calling structure describe in the blog post That should be out very soon Take look phrpIn the meantime there is follow up blog post pulli href http touchlabblog tumblr com post 24474750219 single sqlite connection rel noreferrer Single SQLite connection li ulpAlso checkout the fork by em2point0 em of the previously mentioned locking example pulli href https github com 2point0 Android Database Locking Collisions Example rel noreferrer Android Database Locking Collisions Example by 2point0 on GitHub li ul Haven been keeping up with comments Hard to say without looking at your code Most likely you have more than one process Really hard to say though It is safe to say that this answer has become canon however so while it could technically be wrong its not super likely Nothing however is absolute pInserts updates deletes and reads are generally OK from multiple threads but Brad href https stackoverflow com 2493839 2759862 answer is not correct You have to be careful with how you create your connections and use them There are situations where your update calls will fail even if your database doesn get corrupted pp strongThe basic answer strong ppThe SqliteOpenHelper object holds on to one database connection It appears to offer you read and write connection but it really doesn Call the read only and you ll get the write database connection regardless ppSo one helper instance one db connection Even if you use it from multiple threads one connection at time The SqliteDatabase object uses java locks to keep access serialized So if 100 threads have one db instance calls to the actual on disk database are serialized ppSo one helper one db connection which is serialized in java code One thread 1000 threads if you use one helper instance shared between them all of your db access code is serial And life is good ish ppIf you try to write to the database from actual distinct connections at the same time one will fail It will not wait till the first is done and then write It will simply not write your change Worse if you don’t call the right version of insert update on the SQLiteDatabase you won’t get an exception You’ll just get message in your LogCat and that will be it ppSo multiple threads Use one helper Period If you KNOW only one thread will be writing you MAY be able to use multiple connections and your reads will be faster but buyer beware haven tested that much ppHere blog post with far more detail and an example app pulli href http touchlabblog tumblr com post 24474398246 android sqlite locking rel noreferrer Android Sqlite Locking Updated link 18 2012 lili href https github com touchlab Android Database Locking Collisions Example rel noreferrer Android Database Locking Collisions Example by touchlab on GitHub li ulpGray and are actually wrapping up an ORM tool based off of his Ormlite that works natively with Android database implementations and follows the safe creation calling structure describe in the blog post That should be out very soon Take look phrpIn the meantime there is follow up blog post pulli href http touchlabblog tumblr com post 24474750219 single sqlite connection rel noreferrer Single SQLite connection li ulpAlso checkout the fork by em2point0 em of the previously mentioned locking example pulli href https github com 2point0 Android Database Locking Collisions Example rel noreferrer Android Database Locking Collisions Example by 2point0 on GitHub li ul Just looked at grepcode for more recent versions of this stuff and we re probably due for an update Not that this won work but there nuance in newer versions,0,NULL,NULL 42785,1166594,351890,NULL,NULL,NULL,0,NULL,NULL 42786,753878,992405,NULL,NULL,NULL,0,NULL,NULL 42787,162240,49993,Popular Question Popular Question Necromancer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 42788,462626,567484,Yearling,NULL,NULL,0,NULL,NULL 42789,96604,339434,Supporter,NULL,NULL,0,NULL,NULL 42790,449925,603960,Revival Famous Question Necromancer Yearling Enthusiast Nice Answer Commentator Popular Question Nice Question Necromancer Yearling Critic Informed Promoter Necromancer,NULL,NULL,0,NULL,NULL 42791,48657,673767,Stellar Question Yearling Good Question Famous Question Famous Question Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 42792,611427,1056961,Revival Supporter,NULL,NULL,0,NULL,NULL 42793,179554,1537965,Popular Question,NULL,NULL,0,NULL,NULL 42794,77730,1236215,Yearling Revival Unsung Hero Yearling Tag Editor Custodian Necromancer Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 42795,914603,456226,NULL,NULL,NULL,0,NULL,NULL 42796,217409,269433,NULL,NULL,NULL,0,NULL,NULL 42797,722509,385892,Yearling,NULL,NULL,0,NULL,NULL 42798,2460610,992385,Custodian Custodian Excavator Autobiographer Yearling Good Answer Popular Question Caucus,NULL,NULL,0,NULL,NULL 42799,262585,443279,Caucus,NULL,NULL,0,NULL,NULL 42800,8448011,506859,Popular Question,NULL,NULL,0,NULL,NULL 42801,1588138,635223,NULL,NULL,NULL,0,NULL,NULL 42802,294256,1036690,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 42803,255106,1039194,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42804,110772,49221,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 42805,1209501,572079,Yearling Popular Question Notable Question Popular Question Famous Question Nice Question Caucus,NULL,NULL,0,NULL,NULL 42806,594666,425036,NULL,NULL,NULL,0,NULL,NULL 42807,62288,225052,Yearling Popular Question Enthusiast Popular Question Informed Notable Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Nice Question Famous Question Notable Question Popular Question Documentation User Nice Question Popular Question Popular Question Nice Question Yearling Popular Question Necromancer Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 42808,142455,1142560,Notable Question,NULL,NULL,0,NULL,NULL 42809,1520269,802408,NULL,NULL,NULL,0,NULL,NULL 42810,371229,1288974,NULL,NULL,NULL,0,NULL,NULL 42811,101727,837404,Notable Question,NULL,NULL,0,NULL,NULL 42812,294628,579694,NULL,NULL,NULL,0,NULL,NULL 42813,7152,893242,Popular Question Yearling Notable Question Popular Question Notable Question Census Famous Question Caucus Constituent,NULL,NULL,0,NULL,NULL 42814,296718,984275,Explainer Nice Answer Enlightened Yearling Revival Reviewer Mortarboard Custodian Custodian Proofreader Yearling Documentation User Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 42815,139594,1018769,Revival Revival Necromancer,NULL,NULL,0,NULL,NULL 42816,132826,86411,Yearling Great Question Good Question Inquisitive Yearling Notable Question Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Benefactor Notable Question,NULL,NULL,0,NULL,NULL 42817,141855,557595,Nice Answer Yearling Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 42818,174784,757569,NULL,NULL,NULL,0,NULL,NULL 42819,220258,389664,Custodian Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42820,436693,203184,NULL,NULL,NULL,0,NULL,NULL 42821,823900,1035839,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42822,7695517,1093397,NULL,NULL,NULL,0,NULL,NULL 42823,328390,68268,Yearling Great Question Popular Question Popular Question Popular Question Yearling Popular Question Caucus Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42824,652426,93993,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 42825,2429064,298166,Necromancer Famous Question,NULL,NULL,0,NULL,NULL 42826,1517407,610620,Explainer Critic Commentator Organizer Yearling Caucus,NULL,NULL,0,NULL,NULL 42827,1384273,1289679,NULL,NULL,NULL,0,NULL,NULL 42828,213169,470682,Nice Question Good Question Yearling Popular Question Popular Question Yearling Good Answer Yearling,NULL,NULL,1,Fatal error in building SQLCipher openssl rand file not found macos sqlite3 osx elcapitan sqlcipher pI am trying to build SQLCipher on my mac and getting fatal error after running make ppSystem OS El CapitanI installed openssl after following href http digitizor com install homebrew osx el capitan rel noreferrer this instruction ppBefore running make statically linked libcrypto with command ppre code configure enable tempstore yes CFLAGS DSQLITE HAS CODEC LDFLAGS usr local opt openssl lib libcrypto code prepError got ppre codesqlite3 18280 10 fatal error openssl rand file not found include lt openssl rand gt error generated make sqlite3 lo Error code pre,NULL 42829,237369,689262,Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 42830,3892944,882453,Notable Question Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 42831,906736,882453,Notable Question Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 42832,164749,481146,Revival,NULL,NULL,0,NULL,NULL 42833,123224,1512654,Yearling Critic,NULL,NULL,0,NULL,NULL 42834,359812,942548,Popular Question,NULL,NULL,0,NULL,NULL 42835,6554979,942548,Popular Question,NULL,NULL,0,NULL,NULL 42836,582229,158108,NULL,NULL,NULL,0,NULL,NULL 42837,273298,448913,NULL,NULL,NULL,0,NULL,NULL 42838,3285349,1290953,Good Answer Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question,NULL,pIn codedict codes only the keys have to be hashable not the values codenamedtuple codes don have keys so hashability isn an issue ppHowever they have more stringent restriction their key equivalents field names have to be strings ppBasically if you were going to create bunch of instances of class like ppre codeclass Container def init self name date foo bar self name name self date date self foo foo self bar barmycontainer Container name date foo bar code prepand strongnot change the attributes after you set them in code init code strong you could instead use ppre codeContainer namedtuple Container name date foo bar mycontainer Container name date foo bar code prepas replacement ppOf course you could create bunch of codedict codes where you used the same keys in each one but assuming you will have only valid Python identifiers as keys and don need mutability ppre codemynamedtuple fieldname code prepis prettier than ppre codemydict fieldname code prepand ppre codemynamedtuple MyNamedTuple firstvalue secondvalue code prepis prettier than ppre codemydict fieldname firstvalue secondfield secondvalue code prepFinally codenamedtuple codes are ordered unlike regular codedict codes so you get the items in the order you defined the fields unlike codedict code One more thing to note is that the named tuple can also be initialized as mynamedtuple MyNamedTuple fieldname firstvalue secondfield secondvalue,0,NULL,NULL 42839,133370,1290953,Good Answer Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question,NULL,pIn codedict codes only the keys have to be hashable not the values codenamedtuple codes don have keys so hashability isn an issue ppHowever they have more stringent restriction their key equivalents field names have to be strings ppBasically if you were going to create bunch of instances of class like ppre codeclass Container def init self name date foo bar self name name self date date self foo foo self bar barmycontainer Container name date foo bar code prepand strongnot change the attributes after you set them in code init code strong you could instead use ppre codeContainer namedtuple Container name date foo bar mycontainer Container name date foo bar code prepas replacement ppOf course you could create bunch of codedict codes where you used the same keys in each one but assuming you will have only valid Python identifiers as keys and don need mutability ppre codemynamedtuple fieldname code prepis prettier than ppre codemydict fieldname code prepand ppre codemynamedtuple MyNamedTuple firstvalue secondvalue code prepis prettier than ppre codemydict fieldname firstvalue secondfield secondvalue code prepFinally codenamedtuple codes are ordered unlike regular codedict codes so you get the items in the order you defined the fields unlike codedict code One more thing to note is that the named tuple can also be initialized as mynamedtuple MyNamedTuple fieldname firstvalue secondfield secondvalue,0,NULL,NULL 42840,4414258,1290953,Good Answer Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question,NULL,pIn codedict codes only the keys have to be hashable not the values codenamedtuple codes don have keys so hashability isn an issue ppHowever they have more stringent restriction their key equivalents field names have to be strings ppBasically if you were going to create bunch of instances of class like ppre codeclass Container def init self name date foo bar self name name self date date self foo foo self bar barmycontainer Container name date foo bar code prepand strongnot change the attributes after you set them in code init code strong you could instead use ppre codeContainer namedtuple Container name date foo bar mycontainer Container name date foo bar code prepas replacement ppOf course you could create bunch of codedict codes where you used the same keys in each one but assuming you will have only valid Python identifiers as keys and don need mutability ppre codemynamedtuple fieldname code prepis prettier than ppre codemydict fieldname code prepand ppre codemynamedtuple MyNamedTuple firstvalue secondvalue code prepis prettier than ppre codemydict fieldname firstvalue secondfield secondvalue code prepFinally codenamedtuple codes are ordered unlike regular codedict codes so you get the items in the order you defined the fields unlike codedict code One more thing to note is that the named tuple can also be initialized as mynamedtuple MyNamedTuple fieldname firstvalue secondfield secondvalue,0,NULL,NULL 42841,29527,1177703,NULL,NULL,NULL,0,NULL,NULL 42842,522842,164389,Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 42843,543131,151742,Popular Question c# Yearling Guru Caucus Popular Question Nice Answer Good Answer Yearling Popular Question Census Custodian Custodian Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 42844,549836,725343,Editor,NULL,NULL,0,NULL,NULL 42845,430337,602086,Popular Question Popular Question Notable Question Caucus Popular Question Custodian Yearling Custodian Custodian Citizen Patrol Notable Question Yearling Reviewer Autobiographer Caucus Constituent Notable Question Documentation User Popular Question Census Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 42846,182204,247483,Notable Question Nice Question Commentator,NULL,NULL,0,NULL,NULL 42847,235084,682105,Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Revival Guru Good Answer Populist Caucus c# Nice Answer Enlightened Necromancer Yearling Good Answer Nice Answer Enlightened Announcer .net Nice Answer Nice Answer Reviewer Announcer Nice Answer Enlightened Nice Answer Good Answer Census Nice Answer Enlightened Nice Answer Nice Answer Caucus Yearling Necromancer Nice Answer Good Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer Announcer Necromancer Great Answer,NULL,Calculate date from week number net week number pAnyone know an easy way to get the date of the first day in the week monday here in Europe know the year and the week number going to do this in Possible duplicate of How do get the month number from the year and week number in https stackoverflow com questions 659183 how do get the month number from the year and week number in,0,NULL,NULL 42848,515767,124504,Notable Question Popular Question Popular Question Great Question Famous Question Necromancer Yearling Favorite Question Guru Nice Question Necromancer Nice Answer Enlightened Enlightened Guru Notable Question Good Answer Popular Question Nice Answer Enlightened Nice Answer Famous Question Notable Question Famous Question Famous Question Famous Question Nice Question Yearling Caucus Notable Question Notable Question Good Question Famous Question Nice Answer Good Question Nice Answer Good Answer Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 42849,73391,440429,Nice Answer Yearling Tumbleweed Self-Learner,NULL,NULL,0,NULL,NULL 42850,74378,786193,Commentator,NULL,NULL,0,NULL,NULL 42851,362545,788700,Nice Question Necromancer Necromancer Revival Nice Question Notable Question Revival Popular Question python Yearling Notable Question Documentation Pioneer emacs Popular Question Necromancer Notable Question Nice Answer Notable Question Nice Question Caucus Constituent Popular Question matplotlib Notable Question Necromancer Popular Question Popular Question Good Answer Good Answer Famous Question Nice Answer Enlightened Nice Answer Famous Question Notable Question Popular Question Nice Question Yearling Announcer Notable Question Caucus Announcer Necromancer Notable Question Notable Question Documentation User Necromancer Necromancer Strunk & White Necromancer Census Necromancer Announcer Popular Question Caucus Nice Question Nice Answer Good Answer Notable Question Yearling Popular Question Popular Question Necromancer Nice Answer Necromancer Notable Question Necromancer Nice Answer Nice Answer,NULL,pLike Gian Marco Gherardi href https stackoverflow com 15043806 788700 answer but defines codeos symlink code on windows so that your code can safely work on windows and linux ppre codeimport osos symlink getattr os symlink None if callable os symlink passelse def symlink ms source link name import ctypes csl ctypes windll kernel32 CreateSymbolicLinkW csl argtypes ctypes wchar ctypes wchar ctypes uint32 csl restype ctypes ubyte flags if os path isdir source else if csl link name source flags raise ctypes WinError os symlink symlink ms code prepIf you run your script as administrator everything is fine if you want to run it as user you have to href https stackoverflow com 8464306 788700 grant python permission to make symlinks which only possible under windows vista ultimate or professional pp strongEdit strong ppGian Marco Gherardi href https stackoverflow com 15043806 788700 answer creates link to unix path codelike this code and it doesn work The fix is to do codesource replace code ppre code symlink support under windows import osos symlink getattr os symlink None if callable os symlink passelse def symlink ms source link name import ctypes csl ctypes windll kernel32 CreateSymbolicLinkW csl argtypes ctypes wchar ctypes wchar ctypes uint32 csl restype ctypes ubyte flags if os path isdir source else if csl link name source replace flags raise ctypes WinError os symlink symlink ms code prepAnother way is to use window vista codemklink code utility But using this utility requires same permissions Still ppre code symlink support under windows import osos symlink getattr os symlink None if callable os symlink passelse def symlink ms source link name os system mklink link target format link link name target source replace os symlink symlink ms code prep strongEdit strong ppHere what finally using this script makes link under windows if the user has privilage to do so otherwise it just doesn make link ppre codeimport osif os name nt def symlink ms source link name import ctypes csl ctypes windll kernel32 CreateSymbolicLinkW csl argtypes ctypes wchar ctypes wchar ctypes uint32 csl restype ctypes ubyte flags if os path isdir source else try if csl link name source replace flags raise ctypes WinError except pass os symlink symlink ms code pre as far as remember it was making links given it has sufficient permissions but would raise WinError in case csl link name source replace flags in which case it would also make link So everything worked and didn understand why the WinError So just suppressed the error,0,NULL,NULL 42852,77549,486167,Notable Question Nice Question Popular Question Self-Learner Famous Question Nice Question Famous Question Yearling Popular Question Famous Question Popular Question Nice Question Inquisitive Notable Question Nice Question Notable Question Popular Question Nice Question Peer Pressure Popular Question Nice Question Yearling Custodian,NULL,NULL,0,NULL,NULL 42853,133854,1567163,Popular Question,NULL,NULL,0,NULL,NULL 42854,313955,1077863,Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42855,1914723,1077863,Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42856,3290224,1077863,Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 42857,710741,1183599,NULL,NULL,NULL,0,NULL,NULL 42858,703486,658362,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42859,195602,1149802,NULL,NULL,NULL,0,NULL,NULL 42860,521600,1349198,NULL,NULL,NULL,0,NULL,NULL 42861,150374,436025,Custodian Yearling Popular Question Nice Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Yearling Documentation User Census Nice Question Notable Question Inquisitive Yearling,NULL,NULL,0,NULL,NULL 42862,1189195,398515,NULL,NULL,NULL,0,NULL,NULL 42863,382171,784651,Popular Question,NULL,NULL,0,NULL,NULL 42864,159203,1238595,NULL,NULL,NULL,0,NULL,NULL 42865,195441,702284,Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling ruby-on-rails-3 Popular Question Popular Question Good Answer Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42866,20372,281784,Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 42867,253967,94544,Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Guru java Custodian Custodian Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 42868,897739,1227110,Popular Question Yearling Commentator Yearling Caucus,NULL,NULL,0,NULL,NULL 42869,402518,1372606,NULL,NULL,NULL,0,NULL,NULL 42870,1548486,855610,Popular Question Popular Question Yearling Popular Question Critic Revival Yearling Notable Question Notable Question Famous Question Necromancer Popular Question Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 42871,10680252,353852,Good Answer Good Answer Nice Answer Enlightened Yearling Great Answer Populist Guru Guru Good Answer Nice Answer Enlightened Caucus Constituent Nice Answer Good Answer Nice Answer Good Answer Reviewer string Reviewer Good Answer Yearling Great Answer Nice Answer Caucus Constituent Nice Answer Enlightened Nice Answer Documentation User Great Answer Good Answer Good Answer Caucus python Yearling Great Answer Nice Answer Enlightened Guru,NULL,Best way to generate unique ids client side with Javascript javascript jquery pI need to generate unique ids in the browser Currently using this ppre codeMath floor Math random 10000000000000001 code prepI like to use the current UNIX time code new Date getTime code but worried that if two clients generate ids at the emexact em same time they wouldn be unique ppCan use the current UNIX time like to because that way ids would store more information If not what the best way to do this maybe UNIX time random digits Possible duplicate of Create GUID UUID in JavaScript https stackoverflow com questions 105034 create guid uuid in javascript,0,NULL,NULL 42872,239087,353852,Good Answer Good Answer Nice Answer Enlightened Yearling Great Answer Populist Guru Guru Good Answer Nice Answer Enlightened Caucus Constituent Nice Answer Good Answer Nice Answer Good Answer Reviewer string Reviewer Good Answer Yearling Great Answer Nice Answer Caucus Constituent Nice Answer Enlightened Nice Answer Documentation User Great Answer Good Answer Good Answer Caucus python Yearling Great Answer Nice Answer Enlightened Guru,NULL,Best way to generate unique ids client side with Javascript javascript jquery pI need to generate unique ids in the browser Currently using this ppre codeMath floor Math random 10000000000000001 code prepI like to use the current UNIX time code new Date getTime code but worried that if two clients generate ids at the emexact em same time they wouldn be unique ppCan use the current UNIX time like to because that way ids would store more information If not what the best way to do this maybe UNIX time random digits Possible duplicate of Create GUID UUID in JavaScript https stackoverflow com questions 105034 create guid uuid in javascript,0,NULL,NULL 42873,161004,360866,NULL,NULL,NULL,0,NULL,NULL 42874,250209,192243,Announcer Popular Question,NULL,NULL,0,NULL,NULL 42875,221361,547564,Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Nice Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Favorite Question Good Answer Cleanup Notable Question Yearling Nice Question Popular Question Great Question Great Question,NULL,NULL,0,NULL,NULL 42876,1686221,295931,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42877,552268,295931,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42878,104533,437840,Notable Question,NULL,NULL,0,NULL,NULL 42879,208111,882472,NULL,NULL,NULL,0,NULL,NULL 42880,324835,267813,Notable Question,NULL,NULL,0,NULL,NULL 42881,393716,190475,Enthusiast Notable Question Critic,NULL,NULL,0,NULL,NULL 42882,7816056,1074342,NULL,NULL,NULL,0,NULL,NULL 42883,406249,227278,NULL,NULL,NULL,0,NULL,NULL 42884,138313,155,Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42885,1149519,1035755,NULL,NULL,NULL,0,NULL,NULL 42886,1039550,901037,NULL,NULL,NULL,0,NULL,NULL 42887,2729916,304554,Yearling Famous Question Self-Learner Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 42888,40819,173365,NULL,NULL,NULL,0,NULL,NULL 42889,67437,176931,Student Scholar,NULL,NULL,0,NULL,NULL 42890,1790804,504310,Notable Question Popular Question Notable Question Popular Question Famous Question Nice Question Yearling Self-Learner Popular Question Benefactor,NULL,NULL,0,NULL,NULL 42891,185352,483152,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 42892,152095,392232,NULL,NULL,NULL,0,NULL,NULL 42893,1053316,1433662,Popular Question,NULL,NULL,0,NULL,NULL 42894,857557,826829,NULL,NULL,NULL,0,NULL,NULL 42895,908910,1531050,NULL,NULL,NULL,0,NULL,NULL 42896,83198,1233707,Revival,NULL,NULL,0,NULL,NULL 42897,296889,485746,NULL,NULL,NULL,0,NULL,NULL 42898,640799,1561987,NULL,NULL,NULL,0,NULL,NULL 42899,12472,604133,NULL,NULL,NULL,0,NULL,NULL 42900,193349,299685,Yearling Nice Answer Enlightened Popular Question Yearling Necromancer Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 42901,762991,1099032,NULL,NULL,NULL,0,NULL,NULL 42902,91823,425525,NULL,NULL,NULL,0,NULL,NULL 42903,498707,488867,NULL,NULL,NULL,0,NULL,NULL 42904,470943,1381215,NULL,NULL,NULL,0,NULL,NULL 42905,132979,775049,NULL,NULL,NULL,0,NULL,NULL 42906,308331,85126,NULL,NULL,NULL,0,NULL,NULL 42907,205092,15851,NULL,NULL,NULL,0,NULL,NULL 42908,1906737,1444616,NULL,NULL,NULL,0,NULL,NULL 42909,324966,1149505,NULL,NULL,NULL,0,NULL,NULL 42910,1410745,485012,Famous Question Good Question,NULL,NULL,0,NULL,NULL 42911,298248,485012,Famous Question Good Question,NULL,NULL,0,NULL,NULL 42912,734306,1300521,NULL,NULL,NULL,0,NULL,NULL 42913,456132,338806,Notable Question,NULL,NULL,0,NULL,NULL 42914,3535082,1348215,Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened Notable Question Nice Question Custodian Nice Answer Enlightened Yearling Good Answer java Good Answer Caucus Constituent Nice Answer Enlightened Guru Census Nice Answer Enlightened Revival Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Constituent Revival Great Answer Documentation User Popular Question Necromancer Popular Question Necromancer Census Civic Duty Good Answer Caucus Constituent Enlightened Nice Answer Enlightened Yearling Famous Question Popular Question Nice Answer Revival Good Answer Good Answer,NULL,NULL,0,NULL,NULL 42915,2396761,1348215,Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened Notable Question Nice Question Custodian Nice Answer Enlightened Yearling Good Answer java Good Answer Caucus Constituent Nice Answer Enlightened Guru Census Nice Answer Enlightened Revival Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Constituent Revival Great Answer Documentation User Popular Question Necromancer Popular Question Necromancer Census Civic Duty Good Answer Caucus Constituent Enlightened Nice Answer Enlightened Yearling Famous Question Popular Question Nice Answer Revival Good Answer Good Answer,NULL,NULL,0,NULL,NULL 42916,101373,676242,Notable Question,NULL,NULL,0,NULL,NULL 42917,873894,2483,Yearling Organizer Custodian Notable Question Good Answer Announcer Yearling Documentation User Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 42918,240791,1306851,Commentator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42919,1854289,1306851,Commentator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 42920,73529,576968,Nice Answer,NULL,NULL,0,NULL,NULL 42921,42687,478736,NULL,NULL,NULL,0,NULL,NULL 42922,660509,1004475,Supporter,NULL,NULL,0,NULL,NULL 42923,436621,621654,NULL,NULL,NULL,0,NULL,NULL 42924,44199,450474,NULL,NULL,NULL,0,NULL,NULL 42925,263352,697065,Popular Question Yearling Caucus Disciplined Tumbleweed Nice Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Documentation User Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 42926,205495,90161,Nice Answer Disciplined,NULL,NULL,0,NULL,NULL 42927,90770,579153,Yearling Critic Nice Answer,NULL,NULL,0,NULL,NULL 42928,1503641,651586,NULL,NULL,NULL,0,NULL,NULL 42929,23056,470763,NULL,NULL,NULL,0,NULL,NULL 42930,164813,39693,Popular Question Necromancer Nice Question Famous Question Famous Question Popular Question Notable Question Notable Question Good Answer Yearling Popular Question Favorite Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Famous Question Famous Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 42931,67471,695551,NULL,NULL,NULL,0,NULL,NULL 42932,124364,1233112,Critic Yearling Revival Documentation User Necromancer,NULL,NULL,0,NULL,NULL 42933,499848,439031,Notable Question Notable Question Nice Answer Yearling Nice Question Popular Question Famous Question Caucus Yearling Nice Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 42934,119088,596793,Critic Good Question Famous Question Popular Question Nice Question Good Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 42935,332515,376409,Nice Question Popular Question Nice Answer Necromancer Necromancer Popular Question Notable Question Nice Answer Guru asp.net Nice Question Famous Question Yearling Nice Answer Good Answer Notable Question Nice Question Popular Question Popular Question Great Answer Popular Question Good Answer Notable Question Notable Question Popular Question Nice Answer Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Notable Question Notable Question Nice Answer Enlightened Good Answer Notable Question Nice Answer Nice Question Yearling Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 42936,233236,637894,NULL,NULL,NULL,0,NULL,NULL 42937,303591,865935,NULL,NULL,NULL,0,NULL,NULL 42938,1339844,944781,Popular Question,NULL,NULL,0,NULL,NULL 42939,289207,668594,NULL,NULL,NULL,0,NULL,NULL 42940,80541,788518,NULL,NULL,NULL,0,NULL,NULL 42941,158799,542553,Necromancer Custodian Autobiographer Documentation User,NULL,Colorized Ruby output ruby colors console application pIs there gem to perform background and foreground text colorization for output in terminal ppI remember when programming Pascal we all used to play with codetextcolor code procedures to make our small educational programs look more pretty and presentational ppIs there anything similar in Ruby Checkout https github com kigster colored2,0,NULL,NULL 42942,511849,1305432,NULL,NULL,NULL,0,NULL,NULL 42943,414580,931337,NULL,NULL,NULL,0,NULL,NULL 42944,997436,359415,Popular Question Custodian Good Answer Popular Question Caucus Census Notable Question Caucus Constituent Notable Question Famous Question Census Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 42945,87726,1491921,NULL,NULL,NULL,0,NULL,NULL 42946,31802,312586,Nice Question Notable Question Nice Question Nice Answer Enlightened Nice Question Popular Question Nice Answer Popular Question Nice Question Famous Question Good Answer Necromancer lua Yearling Favorite Question Great Answer Nice Answer Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Great Answer Good Answer Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Famous Question Notable Question Nice Question Great Answer Yearling Announcer Nice Question Nice Answer Popular Question Notable Question Popular Question Good Answer Famous Question Populist Nice Answer Famous Question Yearling Famous Question Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question,NULL,pWhen you iterate over hash using variable called codehash code codehash code contains the key and codehash code contains the value on each iteration ppre code for link hash in page links for link in link hash lt href link gt link lt gt endfor endfor code pre Sorry don know what you mean pWhen you iterate over hash using variable called codehash code codehash code contains the key and codehash code contains the value on each iteration ppre code for link hash in page links for link in link hash lt href link gt link lt gt endfor endfor code pre On the question the front matter has list of hashes called links The first loop iterates over that list page links getting one hash each time called each of these hashes link hash To iterate over the keys of each link hash need the second loop in which used link On my example hash is being played by link,0,NULL,NULL 42947,366121,519488,NULL,NULL,NULL,0,NULL,NULL 42948,233226,691446,NULL,NULL,NULL,0,NULL,NULL 42949,671864,198179,NULL,NULL,NULL,0,NULL,NULL 42950,1508379,534062,Notable Question Talkative Nice Question Good Answer Nice Answer Caucus Yearling Popular Question Custodian Nice Question Documentation User Yearling Electorate Revival Good Question Popular Question Nice Question Benefactor,NULL,NULL,0,NULL,NULL 42951,855154,1115060,NULL,NULL,NULL,0,NULL,NULL 42952,158073,777640,NULL,NULL,NULL,0,NULL,NULL 42953,1620670,1060086,NULL,NULL,NULL,0,NULL,NULL 42954,29560,1127760,NULL,NULL,NULL,0,NULL,NULL 42955,8117,832455,Notable Question Census Notable Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 42956,82944,293609,Good Answer Good Answer Good Answer Yearling xamarin.android Guru Populist Nice Answer Enlightened mvvmcross Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Revival Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 42957,4849806,776452,Revival,NULL,NULL,0,NULL,NULL 42958,4460,200711,NULL,NULL,NULL,0,NULL,NULL 42959,126783,157427,Notable Question,NULL,NULL,0,NULL,NULL 42960,10664462,1543918,NULL,NULL,NULL,0,NULL,NULL 42961,54551,1543918,NULL,NULL,NULL,0,NULL,NULL 42962,443539,488059,Nice Answer Enlightened Yearling Caucus Popular Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 42963,444960,1360392,Popular Question Enthusiast Commentator Critic Famous Question Informed Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 42964,14649,941121,NULL,NULL,NULL,0,NULL,NULL 42965,81763,887855,Teacher Editor Tumbleweed Student Scholar,NULL,NULL,0,NULL,NULL 42966,969578,391054,Nice Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Good Question Famous Question Popular Question Revival Self-Learner Popular Question Notable Question Notable Question Nice Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 42967,65750,508714,Famous Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 42968,41602,694810,NULL,NULL,NULL,0,NULL,NULL 42969,6211,474153,NULL,NULL,NULL,0,NULL,NULL 42970,18512,359888,NULL,NULL,NULL,0,NULL,NULL 42971,1173604,96541,NULL,NULL,NULL,0,NULL,NULL 42972,250755,733142,Good Question Popular Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 42973,17893,242162,NULL,NULL,NULL,0,NULL,NULL 42974,82371,75793,Yearling Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Caucus Constituent Notable Question Good Question Notable Question Great Answer Yearling Taxonomist Good Answer Notable Question Notable Question Notable Question Notable Question Yearling Necromancer Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42975,238616,1425762,NULL,NULL,NULL,0,NULL,NULL 42976,165032,929876,Yearling,NULL,NULL,0,NULL,NULL 42977,227664,237277,NULL,NULL,NULL,0,NULL,NULL 42978,262362,1441543,NULL,NULL,NULL,0,NULL,NULL 42979,104925,2339,Good Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 42980,15687,487646,Self-Learner,NULL,NULL,0,NULL,NULL 42981,77365,824709,NULL,NULL,NULL,0,NULL,NULL 42982,14853,1122865,Yearling Notable Question,NULL,NULL,0,NULL,NULL 42983,227876,1234610,NULL,NULL,NULL,0,NULL,NULL 42984,89997,187710,NULL,NULL,NULL,0,NULL,NULL 42985,299939,410747,Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Populist Nice Question Great Answer Yearling Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 42986,149938,1101388,NULL,NULL,NULL,0,NULL,NULL 42987,2261525,1101388,NULL,NULL,NULL,0,NULL,NULL 42988,1522805,587520,NULL,NULL,NULL,0,NULL,NULL 42989,470274,668727,Supporter,NULL,NULL,0,NULL,NULL 42990,809007,207729,NULL,NULL,NULL,0,NULL,NULL 42991,1406954,1271623,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 42992,774494,1046504,NULL,NULL,NULL,0,NULL,NULL 42993,22225,275993,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 42994,14965,80353,Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Yearling Proofreader Notable Question Famous Question Notable Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Necromancer Nice Answer Enlightened Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Good Answer Popular Question Guru Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Revival Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Custodian Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Popular Question Announcer Nice Answer Announcer Announcer Notable Question Announcer Famous Question Announcer Nice Answer Notable Question Favorite Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Famous Question Notable Question Custodian Popular Question Custodian Notable Question Announcer Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Announcer Notable Question Famous Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Necromancer Announcer Good Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question,NULL,pA large codeOFFSET code is always going to be slow Postgres has to order all rows and count the emvisible em ones up to your offset To skip all previous rows strong emdirectly em strong you could add an indexed coderow number code to the table or create href http www postgresql org docs current interactive sql creatematerializedview html rel noreferrer codeMATERIALIZED VIEW code including said coderow number code and work with codeWHERE row number gt code instead of codeOFFSET code ppHowever this approach is only sensible for read only or mostly data Implementing the same for table data that can change emconcurrently em is more challenging You need to start by defining desired behavior emexactly em ppI suggest different approach for strongpagination strong ppre codeSELECT FROM big tableWHERE vote id gt vote id ROW valuesORDER BY vote id needs to be deterministicLIMIT code prepWhere codevote code and codeid code are from the emlast em row of the strong emprevious page em strong for both codeDESC code and codeASC code Or from the emfirst em if navigating embackwards em ppComparing row values is supported by the index you already have feature that complies with ANSI SQL but not every RDBMS supports it ppre codeCREATE INDEX vote order asc ON big table vote id code prepOr for descending order ppre codeSELECT FROM big tableWHERE vote id lt vote id ROW valuesORDER BY vote DESC id DESCLIMIT code prepCan use the same index brI suggest you declare your columns codeNOT NULL code or acquaint yourself with the codeNULLS FIRST LAST code construct pulli href https stackoverflow com questions 9510509 postgresql sort by datetime asc null first 9511492 9511492 PostgreSQL sort by datetime asc null first li ulpNote strongtwo things strong in particular polli pThe codeROW code values in the codeWHERE code clause cannot be replaced with separated member fields codeWHERE vote id gt vote id code strong emcannot em strong be replaced with ppre code strikeWHERE vote vote xAND id id strike code prepThat would rule out emall em rows with codeid lt id code while we only want to do that for the same vote and not for the next The correct translation would be ppre codeWHERE vote vote AND id gt id OR vote gt vote code prep which doesn play along with indexes as nicely and gets increasingly complicated for more columns ppWould be simple for emsingle em column obviously That the special case mentioned at the outset lili pThe technique does not work for mixed directions in codeORDER BY code like ppre codeORDER BY vote ASC id DESC code prepAt least can think of emgeneric em way to implement this as efficiently If at least one of both columns is numeric type you could use functional index with an inverted value on code vote id code and use the same expression in codeORDER BY code ppre codeORDER BY vote ASC id ASC code pre li olpRelated pulli href https stackoverflow com questions 32981903 sql syntax term for where col1 col2 val1 val2 32982895 32982895 SQL syntax term for 39 WHERE col1 col2 lt val1 val2 39 lili href https dba stackexchange com 112680 3684 Improve performance for order by with columns from many tables li ulpNote in particular the presentation by Markus Winand linked to pulli href http use the index luke com blog 2013 07 pagination done the postgresql way rel noreferrer Pagination done the PostgreSQL way li ul Thank you discovered Markus Winand through your answer That alone is awesome,0,NULL,NULL 42995,18393,676214,Good Question Yearling Favorite Question Famous Question Yearling Editor Teacher Caucus Constituent Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 42996,952092,324395,NULL,NULL,NULL,0,NULL,NULL 42997,275190,324395,NULL,NULL,NULL,0,NULL,NULL 42998,7890,1155711,NULL,NULL,NULL,0,NULL,NULL 42999,1628894,686823,NULL,NULL,NULL,0,NULL,NULL 43000,249793,468048,Enthusiast,NULL,NULL,0,NULL,NULL 43001,1490739,2831,Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Famous Question Yearling Notable Question Popular Question Necromancer Census Notable Question Yearling Famous Question Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 43002,490872,187648,NULL,NULL,NULL,0,NULL,NULL 43003,279938,1446092,Necromancer Critic Commentator Yearling Necromancer Nice Answer Necromancer Famous Question Nice Question Nice Answer Yearling Nice Answer Revival Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 43004,834372,409392,Editor Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43005,183207,827999,NULL,NULL,NULL,0,NULL,NULL 43006,21199,1144258,NULL,NULL,NULL,0,NULL,NULL 43007,251801,170067,NULL,NULL,NULL,0,NULL,NULL 43008,176636,394755,Yearling Good Answer Yearling Famous Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43009,64436,20842,Good Answer Good Answer Nice Answer Enlightened Good Answer Yearling Guru Curious Yearling Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 43010,912382,1351418,NULL,NULL,NULL,0,NULL,NULL 43011,774269,694836,NULL,NULL,NULL,0,NULL,NULL 43012,7597,236480,Yearling Good Question Popular Question Popular Question Commentator Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 43013,300536,1255927,NULL,NULL,NULL,0,NULL,NULL 43014,40505,1144021,NULL,NULL,NULL,0,NULL,NULL 43015,1322985,67917,NULL,NULL,NULL,0,NULL,NULL 43016,851952,991861,NULL,NULL,NULL,0,NULL,NULL 43017,1510151,1078175,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43018,437100,131693,Good Question Yearling Good Answer Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 43019,2923404,163491,Popular Question,NULL,NULL,0,NULL,NULL 43020,353368,745946,NULL,NULL,NULL,0,NULL,NULL 43021,324853,917134,NULL,NULL,NULL,0,NULL,NULL 43022,1130703,883273,NULL,NULL,NULL,0,NULL,NULL 43023,6329180,575082,NULL,NULL,NULL,0,NULL,NULL 43024,537879,575082,NULL,NULL,NULL,0,NULL,NULL 43025,679789,1332403,Supporter Popular Question Autobiographer Teacher Editor Critic Yearling Mortarboard Commentator Yearling Yearling Explainer Organizer Custodian Custodian Yearling Yearling Tenacious Caucus Enthusiast Custodian Nice Answer javascript Proofreader Custodian Yearling Reviewer Fanatic reactjs,NULL,NULL,0,NULL,NULL 43026,1337419,1365348,NULL,NULL,NULL,0,NULL,NULL 43027,427212,661659,Editor Revival Commentator Announcer Civic Duty,NULL,NULL,0,NULL,NULL 43028,18580,143455,Yearling Nice Question Nice Answer Enlightened Notable Question Famous Question Yearling Nice Answer Enlightened Nice Question Nice Answer Populist Yearling Custodian Good Answer,NULL,NULL,0,NULL,NULL 43029,387428,1119655,Student Scholar Census Critic,NULL,NULL,0,NULL,NULL 43030,115179,698725,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43031,25547,1237171,Popular Question Popular Question Famous Question Famous Question Popular Question Notable Question Caucus Yearling Popular Question Notable Question Notable Question Popular Question Caucus Constituent Popular Question Civic Duty Census Critic Caucus Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 43032,1305318,1460998,Census Critic,NULL,NULL,0,NULL,NULL 43033,286095,676215,Yearling Caucus Constituent Notable Question Nice Answer Enlightened Yearling Census Yearling Revival,NULL,NULL,0,NULL,NULL 43034,73019,398516,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 43035,903806,1192531,NULL,NULL,NULL,0,NULL,NULL 43036,226907,796587,Revival,NULL,NULL,0,NULL,NULL 43037,1569610,425996,Necromancer,NULL,NULL,0,NULL,NULL 43038,24285,1463882,NULL,NULL,NULL,0,NULL,NULL 43039,1507726,1391663,NULL,NULL,NULL,0,NULL,NULL 43040,34924,727939,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43041,118625,1165337,Yearling Popular Question Nice Question Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Inquisitive Custodian Popular Question,NULL,NULL,0,NULL,NULL 43042,342624,1149616,Popular Question,NULL,NULL,0,NULL,NULL 43043,110532,1096852,Popular Question Notable Question Notable Question Necromancer Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 43044,1228447,420291,Nice Answer,NULL,NULL,0,NULL,NULL 43045,117189,535842,NULL,NULL,NULL,0,NULL,NULL 43046,472744,519678,NULL,NULL,NULL,0,NULL,NULL 43047,1114655,531185,NULL,NULL,NULL,0,NULL,NULL 43048,11959,465920,NULL,NULL,NULL,0,NULL,NULL 43049,178777,503505,NULL,NULL,NULL,0,NULL,NULL 43050,67802,1219324,Editor Student Scholar Supporter Organizer Informed,NULL,NULL,0,NULL,NULL 43051,532912,591191,NULL,NULL,NULL,0,NULL,NULL 43052,142782,596328,Revival Informed Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 43053,782698,596328,Revival Informed Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 43054,3059132,117356,NULL,NULL,NULL,0,NULL,NULL 43055,1152409,267710,NULL,NULL,NULL,0,NULL,NULL 43056,49092,190259,Notable Question Necromancer Caucus Constituent Nice Question Yearling Famous Question Scholar Popular Question,NULL,NULL,0,NULL,NULL 43057,184345,1400561,NULL,NULL,NULL,0,NULL,NULL 43058,136774,817447,Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 43059,44941,181689,Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 43060,1187846,253955,NULL,NULL,NULL,0,NULL,NULL 43061,41766,1306789,NULL,NULL,NULL,0,NULL,NULL 43062,363284,65612,Necromancer Yearling Good Answer Yearling Nice Answer Documentation User Yearling Good Answer,NULL,NULL,0,NULL,NULL 43063,298562,760085,Nice Answer Yearling Yearling Caucus Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 43064,977105,1309878,Census,NULL,NULL,0,NULL,NULL 43065,824464,845843,Yearling Scholar Yearling,NULL,NULL,0,NULL,NULL 43066,979851,261555,Famous Question,NULL,NULL,0,NULL,NULL 43067,351111,426329,Notable Question Nice Question Revival Caucus Curious Yearling,NULL,NULL,0,NULL,NULL 43068,1508975,855044,NULL,NULL,NULL,0,NULL,NULL 43069,704293,1386174,NULL,NULL,NULL,0,NULL,NULL 43070,2240519,1318334,Critic Popular Question Popular Question Benefactor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43071,375972,174376,NULL,NULL,NULL,0,NULL,NULL 43072,3328718,812777,NULL,NULL,NULL,0,NULL,NULL 43073,254612,812777,NULL,NULL,NULL,0,NULL,NULL 43074,656252,1489474,NULL,NULL,NULL,0,NULL,NULL 43075,473249,1489474,NULL,NULL,NULL,0,NULL,NULL 43076,34591,245020,Notable Question,NULL,NULL,0,NULL,NULL 43077,701534,1413843,NULL,NULL,NULL,0,NULL,NULL 43078,2260,48042,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 43079,3877677,678749,NULL,NULL,NULL,0,NULL,NULL 43080,65737,678749,NULL,NULL,NULL,0,NULL,NULL 43081,28187,169491,Notable Question Popular Question Nice Answer Popular Question Yearling Famous Question Popular Question Good Question Notable Question Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 43082,64509,1462347,NULL,NULL,NULL,0,NULL,NULL 43083,47192,675626,NULL,NULL,NULL,0,NULL,NULL 43084,98444,603094,Yearling Revival git Announcer Nice Answer Enlightened Necromancer Great Answer Yearling Necromancer Good Answer Necromancer Yearling Good Answer Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 43085,91335,468210,Famous Question Caucus Yearling Enthusiast,NULL,NULL,0,NULL,NULL 43086,46115,1337211,NULL,NULL,NULL,0,NULL,NULL 43087,207027,985440,Notable Question,NULL,NULL,0,NULL,NULL 43088,1620997,1126473,Yearling Nice Question Nice Question Good Question Self-Learner Famous Question Famous Question Caucus Good Answer Yearling Notable Question Famous Question Notable Question Good Question Popular Question Caucus Notable Question Yearling Popular Question Caucus Good Question Popular Question,NULL,NULL,0,NULL,NULL 43089,260569,1053553,NULL,NULL,NULL,0,NULL,NULL 43090,7937466,1150423,NULL,NULL,NULL,0,NULL,NULL 43091,458101,1150423,NULL,NULL,NULL,0,NULL,NULL 43092,440784,491171,NULL,NULL,NULL,0,NULL,NULL 43093,73756,1003304,NULL,NULL,NULL,0,NULL,NULL 43094,19537,357743,Guru Nice Answer Enlightened Pundit Great Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Caucus Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Great Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43095,419207,56171,NULL,NULL,NULL,0,NULL,NULL 43096,516484,1190438,NULL,NULL,NULL,0,NULL,NULL 43097,138453,1438988,NULL,NULL,NULL,0,NULL,NULL 43098,23337,1029661,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43099,108469,357606,NULL,NULL,NULL,0,NULL,NULL 43100,584562,673817,NULL,NULL,NULL,0,NULL,NULL 43101,1711160,1044419,NULL,NULL,NULL,0,NULL,NULL 43102,6367845,1044419,NULL,NULL,NULL,0,NULL,NULL 43103,539544,1300996,NULL,NULL,NULL,0,NULL,NULL 43104,210846,481136,NULL,NULL,NULL,0,NULL,NULL 43105,233268,110807,Commentator Popular Question Revival Yearling Necromancer Excavator Custodian Self-Learner Tumbleweed Nice Answer Yearling Caucus Necromancer Yearling Good Answer Necromancer Yearling Popular Question Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43106,1125069,1483297,NULL,NULL,NULL,0,NULL,NULL 43107,95770,1094978,NULL,NULL,NULL,0,NULL,NULL 43108,202420,521979,NULL,NULL,NULL,0,NULL,NULL 43109,120005,102635,Famous Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Yearling Famous Question Nice Question Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Good Question Famous Question Great Question Popular Question Notable Question Notable Question Notable Question Nice Question Famous Question Nice Question Notable Question Notable Question Famous Question Yearling Famous Question Famous Question Popular Question Notable Question Notable Question Great Question Great Question Popular Question Popular Question Nice Question Popular Question Notable Question Good Question Popular Question Yearling Stellar Question Notable Question Favorite Question Popular Question Nice Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 43110,89992,208178,NULL,NULL,NULL,0,NULL,NULL 43111,128246,32538,python Informed Nice Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Nice Answer Good Answer Caucus Constituent Famous Question Notable Question Yearling Census Caucus Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 43112,33937,537998,Good Question Notable Question Tag Editor Custodian Popular Question Popular Question Popular Question Good Question Nice Question Notable Question Notable Question Revival Notable Question Great Answer Nice Question Necromancer Necromancer Yearling Nice Answer Revival Notable Question Popular Question Notable Question Famous Question Announcer Announcer Notable Question Popular Question Good Answer Nice Answer Announcer Notable Question Nice Answer Famous Question Nice Question Popular Question Popular Question Yearling Nice Question Announcer Popular Question Revival Necromancer Popular Question Popular Question Notable Question Nice Answer Nice Question Popular Question Necromancer Popular Question Popular Question Notable Question Nice Question Nice Answer Announcer Nice Answer Good Answer Notable Question Revival Necromancer,NULL,NULL,0,NULL,NULL 43113,33984,537998,Good Question Notable Question Tag Editor Custodian Popular Question Popular Question Popular Question Good Question Nice Question Notable Question Notable Question Revival Notable Question Great Answer Nice Question Necromancer Necromancer Yearling Nice Answer Revival Notable Question Popular Question Notable Question Famous Question Announcer Announcer Notable Question Popular Question Good Answer Nice Answer Announcer Notable Question Nice Answer Famous Question Nice Question Popular Question Popular Question Yearling Nice Question Announcer Popular Question Revival Necromancer Popular Question Popular Question Notable Question Nice Answer Nice Question Popular Question Necromancer Popular Question Popular Question Notable Question Nice Question Nice Answer Announcer Nice Answer Good Answer Notable Question Revival Necromancer,NULL,NULL,0,NULL,NULL 43114,41122,421156,NULL,NULL,NULL,0,NULL,NULL 43115,119323,277648,NULL,NULL,NULL,0,NULL,NULL 43116,553792,1306650,NULL,NULL,NULL,0,NULL,NULL 43117,83966,1243386,NULL,NULL,NULL,0,NULL,NULL 43118,922329,737277,NULL,NULL,NULL,0,NULL,NULL 43119,193331,438180,Good Question Popular Question Popular Question c# Notable Question Yearling Proofreader Popular Question Caucus Constituent Popular Question Caucus Constituent Nice Answer Yearling Famous Question Documentation User Notable Question Nice Answer Enlightened Caucus Constituent Nice Answer Notable Question Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 43120,21127,1066484,NULL,NULL,NULL,0,NULL,NULL 43121,507141,797334,Enthusiast Yearling Good Answer Yearling Popular Question Necromancer Necromancer Caucus Nice Answer Necromancer Popular Question Yearling Nice Question Nice Answer Organizer Explainer,NULL,pxilvar answer is very nice but had two minor shortcomings that wanted to fix in rejected edit so ll post it as an answer ppFor one xilvar solution fails if the file isn JPEG or if there is no exif data present And for the other it always rotated 180 degrees instead of the appropriate amount ppre codeimport Image ExifTagstry image Image open os path join path fileName if hasattr image getexif only present in JPEGs for orientation in ExifTags TAGS keys if ExifTags TAGS orientation Orientation break image getexif returns None if no EXIF data if is not None exif dict items orientation exif orientation if orientation image image transpose Image ROTATE 180 elif orientation image image transpose Image ROTATE 270 elif orientation image image transpose Image ROTATE 90 image thumbnail THUMB WIDTH THUMB HIGHT Image ANTIALIAS image save os path join path fileName except traceback print exc code pre would use orientation next for in ExifTags TAGS items if Orientation since this script depends on this tag and PIL ExifTags py seems to have it,0,NULL,NULL 43122,1387587,787016,Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Caucus Constituent Nice Answer Enlightened sql-server-2008 Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Guru Good Answer Good Answer Good Answer xpath Census Good Answer Good Answer Good Answer Caucus Constituent Guru Yearling Guru Good Answer Nice Answer Good Answer Custodian Custodian Custodian Custodian Custodian Good Answer Nice Answer,NULL,code code strongis not always equivalent strong to code code In python3 code code matches only code0123456789 code characters while code code matches code code and other digit characters for example Eastern Arabic numerals code٠١٢٣٤٥٦٧٨٩ code probably not you have to specify all characters separately,0,NULL,NULL 43123,174575,762572,NULL,NULL,NULL,0,NULL,NULL 43124,297202,1040726,NULL,NULL,NULL,0,NULL,NULL 43125,372421,1171378,NULL,NULL,NULL,0,NULL,NULL 43126,52189,432914,NULL,NULL,NULL,0,NULL,NULL 43127,84610,696872,NULL,NULL,NULL,0,NULL,NULL 43128,562041,457130,NULL,NULL,NULL,0,NULL,NULL 43129,108742,629599,Yearling Popular Question Good Question Nice Question Popular Question Famous Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Great Question Popular Question Yearling Popular Question Caucus Famous Question Custodian Famous Question Popular Question Yearling Good Question Popular Question Favorite Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43130,1345009,1058925,NULL,NULL,NULL,0,NULL,NULL 43131,898392,1560726,NULL,NULL,NULL,0,NULL,NULL 43132,104790,975686,Yearling Good Question Famous Question Yearling Famous Question Caucus Self-Learner,NULL,NULL,0,NULL,NULL 43133,6007,1559560,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 43134,292664,71016,Revival Yearling,NULL,NULL,0,NULL,NULL 43135,307244,518869,Popular Question,NULL,NULL,0,NULL,NULL 43136,712581,307051,NULL,NULL,NULL,0,NULL,NULL 43137,149927,980216,NULL,NULL,NULL,0,NULL,NULL 43138,394532,733546,NULL,NULL,NULL,0,NULL,NULL 43139,6087550,670981,Popular Question Commentator,NULL,NULL,0,NULL,NULL 43140,194013,910259,Good Answer Critic Custodian Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 43141,48723,1126377,NULL,NULL,NULL,0,NULL,NULL 43142,105611,7636,Informed,NULL,NULL,0,NULL,NULL 43143,1439008,7636,Informed,NULL,NULL,0,NULL,NULL 43144,309579,220700,Yearling Announcer Yearling Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 43145,29532,428876,Yearling Notable Question Nice Answer Good Answer Notable Question Popular Question Yearling Guru Necromancer Yearling Good Answer Nice Answer,NULL,pThe attributes are SQL types hence the following are supported pulli code binary code lili code boolean code lili code date code lili code datetime code lili code decimal code lili code float code lili code integer code lili code primary key code lili code string code lili code text code lili code time code lili code timestamp code li ulpThese are documented under strongcolumn strong in the href http api rubyonrails org classes ActiveRecord ConnectionAdapters SchemaStatements html method add column rel noreferrer Active Record API thanks John Bachir,0,NULL,NULL 43146,169154,953086,NULL,NULL,NULL,0,NULL,NULL 43147,1564830,379105,Notable Question Notable Question Promoter Popular Question Popular Question Citizen Patrol Popular Question Organizer Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Self-Learner Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,Weird behaviour of division in rails console ruby on rails ruby p2 servers same gems exactly same ruby version code2 2p95 code installed pp strongDevelopment strong ppre codeLoading development environment Rails 13 pry main gt class gt Fixnum pry main gt gt pry main gt code prepProduction ppre codeLoading production environment Rails 13 001 gt class gt Rational 002 gt gt 003 gt code prepwth The only difference between the two environments is that one uses rvm production the other not Apparently found out that mathn module is loaded in production and not development how can find out which gem requires it Weird behaviour of division in rails console ruby on rails ruby p2 servers same gems exactly same ruby version code2 2p95 code installed pp strongDevelopment strong ppre codeLoading development environment Rails 13 pry main gt class gt Fixnum pry main gt gt pry main gt code prepProduction ppre codeLoading production environment Rails 13 001 gt class gt Rational 002 gt gt 003 gt code prepwth The only difference between the two environments is that one uses rvm production the other not no gems in the lock files requires it but server has some gems installed manually don ask why so can rely on something like grep rnw require math in the gempath cause this commands found out nothing Weird behaviour of division in rails console ruby on rails ruby p2 servers same gems exactly same ruby version code2 2p95 code installed pp strongDevelopment strong ppre codeLoading development environment Rails 13 pry main gt class gt Fixnum pry main gt gt pry main gt code prepProduction ppre codeLoading production environment Rails 13 001 gt class gt Rational 002 gt gt 003 gt code prepwth The only difference between the two environments is that one uses rvm production the other not Thanks for help need to dig into different gems cause production server has gems not declared in gemfile NewRelic for instance which may cause the issue investigating who is requiring mathn now,1,Weird behaviour of division in rails console ruby on rails ruby p2 servers same gems exactly same ruby version code2 2p95 code installed pp strongDevelopment strong ppre codeLoading development environment Rails 13 pry main gt class gt Fixnum pry main gt gt pry main gt code prepProduction ppre codeLoading production environment Rails 13 001 gt class gt Rational 002 gt gt 003 gt code prepwth The only difference between the two environments is that one uses rvm production the other not,NULL 43148,161880,828102,NULL,NULL,NULL,0,NULL,NULL 43149,329380,514316,Notable Question Notable Question Nice Answer Nice Question Favorite Question Favorite Question Notable Question Nice Question Notable Question Famous Question Nice Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Nice Question Famous Question Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Famous Question Yearling Nice Question Nice Question Famous Question Notable Question Nice Question Famous Question Popular Question Nice Question Popular Question Famous Question Famous Question Good Answer Great Question Popular Question Great Question Nice Answer Popular Question Notable Question Good Question Notable Question Good Answer Notable Question Famous Question Notable Question Famous Question Nice Question Famous Question Famous Question Popular Question Great Answer Famous Question Nice Answer Enlightened Popular Question Yearling Famous Question Famous Question Famous Question Nice Answer Popular Question Guru Popular Question Popular Question Favorite Question Notable Question Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 43150,68821,338198,NULL,NULL,NULL,0,NULL,NULL 43151,32891,265318,Popular Question Notable Question Supporter Nice Question,NULL,NULL,0,NULL,NULL 43152,88046,524565,Student,NULL,NULL,0,NULL,NULL 43153,218594,29347,Popular Question Notable Question Popular Question Nice Question ember.js Notable Question Great Answer Notable Question Popular Question Nice Answer Good Answer Popular Question Popular Question Popular Question Famous Question Nice Answer Famous Question Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Question Guru Notable Question Popular Question Notable Question Nice Question Nice Answer Revival Good Question Nice Answer Enlightened Custodian Popular Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Question Popular Question Nice Question Yearling Nice Question Popular Question Notable Question Notable Question Notable Question Good Question Notable Question Nice Answer Great Answer Notable Question Nice Question Nice Answer Enlightened Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Good Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Nice Question Necromancer Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Notable Question Good Answer Notable Question Announcer Good Answer Popular Question Nice Answer Popular Question python Notable Question Popular Question Notable Question Yearling Popular Question Good Answer,NULL,pES6 modules are always in strict mode To quote the relevant part of href http www ecma international org ecma 262 sec strict mode code the spec pblockquote h210 Strict Mode Code h2 pAn ECMAScript Script syntactic unit may be processed using either unrestricted or strict mode syntax and semantics Code is interpreted as strict mode code in the following situations ul liGlobal code is strict mode code if it begins with Directive Prologue that contains Use Strict Directive see 14 li li strongModule code is always strict mode code strong li liAll parts of ClassDeclaration or ClassExpression are strict mode code li liEval code is strict mode code if it begins with Directive Prologue that contains Use Strict Directive or if the call to eval is direct eval see 12 that is contained in strict mode code li liFunction code is strict mode code if the associated FunctionDeclaration FunctionExpression GeneratorDeclaration GeneratorExpression MethodDefinition or ArrowFunction is contained in strict mode code or if the code that produces the value of the function’s ECMAScriptCode internal slot begins with Directive Prologue that contains Use Strict Directive li liFunction code that is supplied as the arguments to the built in Function and Generator constructors is strict mode code if the last argument is String that when processed is FunctionBody that begins with Directive Prologue that contains Use Strict Directive li ul blockquote no you aren exporting anything Type es2015 module into google,0,NULL,NULL 43154,8216551,29347,Popular Question Notable Question Popular Question Nice Question ember.js Notable Question Great Answer Notable Question Popular Question Nice Answer Good Answer Popular Question Popular Question Popular Question Famous Question Nice Answer Famous Question Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Question Guru Notable Question Popular Question Notable Question Nice Question Nice Answer Revival Good Question Nice Answer Enlightened Custodian Popular Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Question Popular Question Nice Question Yearling Nice Question Popular Question Notable Question Notable Question Notable Question Good Question Notable Question Nice Answer Great Answer Notable Question Nice Question Nice Answer Enlightened Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Good Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Nice Question Necromancer Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Notable Question Good Answer Notable Question Announcer Good Answer Popular Question Nice Answer Popular Question python Notable Question Popular Question Notable Question Yearling Popular Question Good Answer,NULL,pES6 modules are always in strict mode To quote the relevant part of href http www ecma international org ecma 262 sec strict mode code the spec pblockquote h210 Strict Mode Code h2 pAn ECMAScript Script syntactic unit may be processed using either unrestricted or strict mode syntax and semantics Code is interpreted as strict mode code in the following situations ul liGlobal code is strict mode code if it begins with Directive Prologue that contains Use Strict Directive see 14 li li strongModule code is always strict mode code strong li liAll parts of ClassDeclaration or ClassExpression are strict mode code li liEval code is strict mode code if it begins with Directive Prologue that contains Use Strict Directive or if the call to eval is direct eval see 12 that is contained in strict mode code li liFunction code is strict mode code if the associated FunctionDeclaration FunctionExpression GeneratorDeclaration GeneratorExpression MethodDefinition or ArrowFunction is contained in strict mode code or if the code that produces the value of the function’s ECMAScriptCode internal slot begins with Directive Prologue that contains Use Strict Directive li liFunction code that is supplied as the arguments to the built in Function and Generator constructors is strict mode code if the last argument is String that when processed is FunctionBody that begins with Directive Prologue that contains Use Strict Directive li ul blockquote no you aren exporting anything Type es2015 module into google,0,NULL,NULL 43155,38992,1361563,NULL,NULL,NULL,0,NULL,NULL 43156,1031087,1290852,Nice Question Revival Popular Question Yearling Popular Question Popular Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 43157,293716,937035,NULL,NULL,NULL,0,NULL,NULL 43158,138193,617838,NULL,NULL,NULL,0,NULL,NULL 43159,1176809,1000587,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 43160,915609,303304,Notable Question,NULL,NULL,0,NULL,NULL 43161,169598,303304,Notable Question,NULL,NULL,0,NULL,NULL 43162,190376,189411,Tumbleweed Nice Answer Yearling Necromancer Announcer Critic Good Answer Yearling Announcer Nice Answer Announcer Yearling,NULL,pUseful simple class are forked by me on href https gist github com kiuz 816e24aa787c2d102dd0 https gist github com kiuz 816e24aa787c2d102dd0 ppre codepublic class OSValidator private static String OS System getProperty os name toLowerCase public static void main String args System out println OS if isWindows System out println This is Windows else if isMac System out println This is Mac else if isUnix System out println This is Unix or Linux else if isSolaris System out println This is Solaris else System out println Your OS is not support public static boolean isWindows return OS indexOf win gt public static boolean isMac return OS indexOf mac gt public static boolean isUnix return OS indexOf nix gt OS indexOf nux gt OS indexOf aix gt public static boolean isSolaris return OS indexOf sunos gt public static String getOS if isWindows return win else if isMac return osx else if isUnix return uni else if isSolaris return sol else return err code pre thanks lot Kazy,0,NULL,NULL 43163,3776387,530479,NULL,NULL,NULL,0,NULL,NULL 43164,347890,530479,NULL,NULL,NULL,0,NULL,NULL 43165,214396,708417,Popular Question,NULL,NULL,0,NULL,NULL 43166,123438,462499,NULL,NULL,NULL,0,NULL,NULL 43167,917733,845856,Popular Question Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43168,192620,914878,NULL,NULL,NULL,0,NULL,NULL 43169,6457,313589,NULL,NULL,NULL,0,NULL,NULL 43170,458484,165116,Good Answer Nice Question,NULL,NULL,0,NULL,NULL 43171,369835,511184,Tumbleweed Good Question Nice Answer Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 43172,228393,603534,Yearling Good Answer,NULL,NULL,0,NULL,NULL 43173,4371,904365,Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Yearling Necromancer Famous Question Nice Answer Caucus Constituent Nice Answer Popular Question Favorite Question Popular Question Good Answer Caucus Constituent Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Good Answer Caucus Constituent Good Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 43174,170272,841300,NULL,NULL,NULL,0,NULL,NULL 43175,543007,496426,Popular Question Citizen Patrol Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 43176,388,236018,Notable Question,NULL,NULL,0,NULL,NULL 43177,588775,1277762,NULL,NULL,NULL,0,NULL,NULL 43178,499670,867937,NULL,NULL,NULL,0,NULL,NULL 43179,51335,521759,NULL,NULL,NULL,0,NULL,NULL 43180,156663,1171126,Tumbleweed Nice Answer Yearling Notable Question Revival Revival Necromancer Yearling Nice Answer Notable Question Necromancer,NULL,NULL,0,NULL,NULL 43181,166913,293642,NULL,NULL,NULL,0,NULL,NULL 43182,177220,906660,NULL,NULL,NULL,0,NULL,NULL 43183,447912,1088550,Teacher Informed Supporter,NULL,NULL,0,NULL,NULL 43184,304137,1060588,NULL,NULL,NULL,0,NULL,NULL 43185,171727,74185,Necromancer,NULL,NULL,0,NULL,NULL 43186,89510,1018158,Yearling,NULL,NULL,0,NULL,NULL 43187,190714,1393384,NULL,NULL,NULL,0,NULL,NULL 43188,156590,1486846,NULL,NULL,NULL,0,NULL,NULL 43189,165213,1090807,Supporter Documentation User,NULL,NULL,0,NULL,NULL 43190,3186482,1090807,Supporter Documentation User,NULL,NULL,0,NULL,NULL 43191,2804801,849967,Commentator Critic Excavator Yearling Yearling Organizer Peer Pressure Yearling Caucus Yearling Tenacious Yearling Yearling Student,NULL,NULL,0,NULL,NULL 43192,69707,325617,Census,NULL,NULL,0,NULL,NULL 43193,124883,951211,NULL,NULL,NULL,0,NULL,NULL 43194,8347886,523098,Famous Question Popular Question Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 43195,1575446,538614,Informed,NULL,NULL,0,NULL,NULL 43196,412480,449244,Yearling,NULL,NULL,0,NULL,NULL 43197,142014,621960,NULL,NULL,NULL,0,NULL,NULL 43198,564871,464961,NULL,NULL,NULL,0,NULL,NULL 43199,35867,351450,Supporter,NULL,NULL,0,NULL,NULL 43200,142601,192754,NULL,NULL,NULL,0,NULL,NULL 43201,269107,630460,NULL,NULL,NULL,0,NULL,NULL 43202,191059,1169795,NULL,NULL,NULL,0,NULL,NULL 43203,475094,1517640,NULL,NULL,NULL,0,NULL,NULL 43204,240087,508126,android Nice Answer Enlightened Custodian Yearling Caucus Great Answer Yearling Announcer Popular Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 43205,61620,892303,NULL,NULL,NULL,0,NULL,NULL 43206,1504464,1189503,Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 43207,748282,229580,NULL,NULL,NULL,0,NULL,NULL 43208,43461,437507,Popular Question Yearling Yearling Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 43209,46647,264664,NULL,NULL,NULL,0,NULL,NULL 43210,42375,961391,Enthusiast Editor Critic Revival Caucus Yearling Informed Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 43211,822346,60593,Yearling Revival Revival Revival Caucus Constituent Good Question Yearling Notable Question Famous Question Steward Good Question Caucus Revival Popular Question Census Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,Checking for write access in directory before creating files inside it java file permissions pMy small utility application asks the user for an output directory via GUI file selector Then it creates lot of files in this output directory after some processing ppI need to check if the application has write access so that it informs the user and does not continue with the processing which might take long time ppMy first attempt was the strongcanWrite strong method of strongjava io File strong But this does not worksince it deals with the directory entry itself and not its contents have seen at leastone instance of Windows XP folder that can be renamed or deleted but no files may be createdin it because of permissions This is actually my testcase ppI finally settled with the following solution ppre code User places the input file in directory and selects it from the GUI All output files will be created in the directory that contains the input fileFile fileBrowse chooser getSelectedFile chooser is JFileChooserFile sample new File fileBrowse getParent empty txt try Create and delete dummy file in order to check file permissions Maybe there is safer way for this check sample createNewFile sample delete catch IOException Error message shown to user Operation is aborted code prepHowever this does not feel elegant to me since it just tries to actually create file and checks if the operation succeeds ppI suspect that there must be better way for this but all solutions have found so farwith Security Managers and stuff deal with Java Applets and not standalone applications Am missing something ppWhat is the recommended way of checking for file access inside directory beforeactually writing the files ppI am using Java Yes it would be best if the boolean returned by createNewFile was used to understand if the file was actually created of not,0,NULL,NULL 43212,279914,127759,Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43213,834981,959496,Necromancer Caucus Yearling Nice Answer Caucus Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 43214,609442,784488,NULL,NULL,NULL,0,NULL,NULL 43215,179314,103930,Tumbleweed Popular Question Yearling,NULL,NULL,0,NULL,NULL 43216,339911,1159773,Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 43217,1103328,735100,NULL,NULL,NULL,0,NULL,NULL 43218,235029,415693,NULL,NULL,NULL,0,NULL,NULL 43219,734183,683674,NULL,NULL,NULL,0,NULL,NULL 43220,1491458,807615,NULL,NULL,NULL,0,NULL,NULL 43221,622535,636919,NULL,NULL,NULL,0,NULL,NULL 43222,247681,534223,Popular Question Nice Answer Yearling Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 43223,67288,1543245,NULL,NULL,NULL,0,NULL,NULL 43224,47034,93555,Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 43225,203044,1296210,NULL,NULL,NULL,0,NULL,NULL 43226,81941,38301,NULL,NULL,NULL,0,NULL,NULL 43227,1736581,273500,NULL,NULL,NULL,0,NULL,NULL 43228,695502,1234011,Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 43229,257504,809630,NULL,NULL,NULL,0,NULL,NULL 43230,1507518,1119739,NULL,NULL,NULL,0,NULL,NULL 43231,144222,660267,NULL,NULL,NULL,0,NULL,NULL 43232,14826,2898,Curious Yearling Necromancer Necromancer Guru Popular Question Yearling Documentation User Yearling Good Answer,NULL,NULL,0,NULL,NULL 43233,351401,1152867,NULL,NULL,NULL,0,NULL,NULL 43234,20169,1212464,NULL,NULL,NULL,0,NULL,NULL 43235,280232,141179,Good Answer,NULL,NULL,0,NULL,NULL 43236,208088,1193984,NULL,NULL,NULL,0,NULL,NULL 43237,3289,257865,Peer Pressure,NULL,NULL,0,NULL,NULL 43238,3070777,832312,Yearling Census,NULL,NULL,0,NULL,NULL 43239,13082,992560,NULL,NULL,NULL,0,NULL,NULL 43240,155328,1096974,NULL,NULL,NULL,0,NULL,NULL 43241,195139,415446,NULL,NULL,NULL,0,NULL,NULL 43242,140328,339144,Popular Question Popular Question Popular Question Nice Answer Enlightened Announcer Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 43243,92611,292145,Guru Necromancer objective-c Yearling Revival Revival Nice Question Revival Necromancer Good Answer Necromancer Popular Question Notable Question Necromancer Nice Answer Notable Question Nice Answer Notable Question Good Answer Yearling Nice Question Good Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Revival Necromancer Notable Question Investor Nice Answer Revival Yearling Great Answer Nice Question Favorite Question Revival Notable Question Necromancer Necromancer Necromancer Famous Question Good Answer Good Answer Notable Question Necromancer Popular Question,NULL,pThis is handy timer class based on codeCoreFoundation codes codeCFAbsoluteTime code ppre codeimport CoreFoundationclass ParkBenchTimer let startTime CFAbsoluteTime var endTime CFAbsoluteTime init startTime CFAbsoluteTimeGetCurrent func stop gt CFAbsoluteTime endTime CFAbsoluteTimeGetCurrent return duration var duration CFAbsoluteTime if let endTime endTime return endTime startTime else return nil code prepYou can use it like this ppre codelet timer ParkBenchTimer long runnig task println The task took timer stop seconds code pre More context Repeated calls to this function do not guarantee monotonically increasing results The system time may decrease due to synchronization with external time references or due to an explicit user change of the clock pThis is handy timer class based on codeCoreFoundation codes codeCFAbsoluteTime code ppre codeimport CoreFoundationclass ParkBenchTimer let startTime CFAbsoluteTime var endTime CFAbsoluteTime init startTime CFAbsoluteTimeGetCurrent func stop gt CFAbsoluteTime endTime CFAbsoluteTimeGetCurrent return duration var duration CFAbsoluteTime if let endTime endTime return endTime startTime else return nil code prepYou can use it like this ppre codelet timer ParkBenchTimer long runnig task println The task took timer stop seconds code pre no just wanted to state these are the two possible reasons If you rely on always getting monotonically increasing values there are other options pHere is simple but complete example derived from href https devforums apple com message 986325 986325 rel noreferrer jckarter answer ppIt shows how to add new property to an existing class It does it by defining computed property in an extension block The computed property is stored as an associated object ppre codeimport ObjectiveC Declare global var to produce unique address as the assoc object handleprivate var AssociatedObjectHandle UInt8 0extension MyClass var stringProperty String get return objc getAssociatedObject self amp AssociatedObjectHandle as String set objc setAssociatedObject self amp AssociatedObjectHandle newValue objc AssociationPolicy OBJC ASSOCIATION RETAIN NONATOMIC code prep strongEDIT strong ppIf you need to support getting the value of an uninitialized property and to avoid getting the error codeunexpectedly found nil while unwrapping an Optional value code you can modify the getter like this ppre code get return objc getAssociatedObject self amp AssociatedObjectHandle as String code pre guess it does make no difference The UInt8 comes from the linked original thread pHere is simple but complete example derived from href https devforums apple com message 986325 986325 rel noreferrer jckarter answer ppIt shows how to add new property to an existing class It does it by defining computed property in an extension block The computed property is stored as an associated object ppre codeimport ObjectiveC Declare global var to produce unique address as the assoc object handleprivate var AssociatedObjectHandle UInt8 0extension MyClass var stringProperty String get return objc getAssociatedObject self amp AssociatedObjectHandle as String set objc setAssociatedObject self amp AssociatedObjectHandle newValue objc AssociationPolicy OBJC ASSOCIATION RETAIN NONATOMIC code prep strongEDIT strong ppIf you need to support getting the value of an uninitialized property and to avoid getting the error codeunexpectedly found nil while unwrapping an Optional value code you can modify the getter like this ppre code get return objc getAssociatedObject self amp AssociatedObjectHandle as String code pre Show us your code pHere is simple but complete example derived from href https devforums apple com message 986325 986325 rel noreferrer jckarter answer ppIt shows how to add new property to an existing class It does it by defining computed property in an extension block The computed property is stored as an associated object ppre codeimport ObjectiveC Declare global var to produce unique address as the assoc object handleprivate var AssociatedObjectHandle UInt8 0extension MyClass var stringProperty String get return objc getAssociatedObject self amp AssociatedObjectHandle as String set objc setAssociatedObject self amp AssociatedObjectHandle newValue objc AssociationPolicy OBJC ASSOCIATION RETAIN NONATOMIC code prep strongEDIT strong ppIf you need to support getting the value of an uninitialized property and to avoid getting the error codeunexpectedly found nil while unwrapping an Optional value code you can modify the getter like this ppre code get return objc getAssociatedObject self amp AssociatedObjectHandle as String code pre Are you sure that you are setting non nil value before accessing it the exception is thrown in the getter pHere is simple but complete example derived from href https devforums apple com message 986325 986325 rel noreferrer jckarter answer ppIt shows how to add new property to an existing class It does it by defining computed property in an extension block The computed property is stored as an associated object ppre codeimport ObjectiveC Declare global var to produce unique address as the assoc object handleprivate var AssociatedObjectHandle UInt8 0extension MyClass var stringProperty String get return objc getAssociatedObject self amp AssociatedObjectHandle as String set objc setAssociatedObject self amp AssociatedObjectHandle newValue objc AssociationPolicy OBJC ASSOCIATION RETAIN NONATOMIC code prep strongEDIT strong ppIf you need to support getting the value of an uninitialized property and to avoid getting the error codeunexpectedly found nil while unwrapping an Optional value code you can modify the getter like this ppre code get return objc getAssociatedObject self amp AssociatedObjectHandle as String code pre Have you tried it with String and it worked,0,NULL,NULL 43244,155745,1555903,Nice Answer Good Question Yearling Custodian Nice Answer Announcer Citizen Patrol Yearling Announcer Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 43245,249662,351880,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 43246,84947,375126,NULL,NULL,NULL,0,NULL,NULL 43247,1149111,149053,Nice Answer Custodian Yearling Nice Answer Nice Question Caucus Good Answer Nice Answer Enlightened Great Answer Enlightened Caucus Constituent Yearling c# Documentation User Reviewer Nice Answer Enlightened Census Caucus Constituent Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 43248,146596,208281,Popular Question,NULL,NULL,0,NULL,NULL 43249,695427,150552,Nice Answer Yearling Nice Answer Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 43250,71181,490247,NULL,NULL,NULL,0,NULL,NULL 43251,8637266,1308778,NULL,NULL,NULL,0,NULL,NULL 43252,784226,1202824,Enthusiast,NULL,NULL,0,NULL,NULL 43253,400337,1043588,NULL,NULL,NULL,0,NULL,NULL 43254,1379485,889681,Supporter,NULL,NULL,0,NULL,NULL 43255,310482,1358094,NULL,NULL,NULL,0,NULL,NULL 43256,253458,7008,Announcer Popular Question Nice Question Popular Question Notable Question Notable Question Famous Question Notable Question Nice Question Yearling Custodian Custodian Custodian Reviewer Notable Question Notable Question Nice Answer Enlightened Notable Question Custodian Notable Question Caucus Yearling Announcer Census Caucus Yearling,NULL,NULL,0,NULL,NULL 43257,824861,246570,NULL,NULL,NULL,0,NULL,NULL 43258,172226,4189,Notable Question Yearling Notable Question Popular Question Revival Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43259,419742,56500,Popular Question Notable Question Popular Question Nice Question Notable Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 43260,301732,1027575,NULL,NULL,NULL,0,NULL,NULL 43261,438031,660067,NULL,NULL,NULL,0,NULL,NULL 43262,224296,753310,Student Commentator Informed Autobiographer Necromancer Critic,NULL,NULL,0,NULL,NULL 43263,153640,199213,NULL,NULL,NULL,0,NULL,NULL 43264,1196457,475540,NULL,NULL,NULL,0,NULL,NULL 43265,223307,242944,Famous Question Popular Question Good Question Famous Question Necromancer Yearling Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 43266,201094,738748,NULL,NULL,NULL,0,NULL,NULL 43267,1007757,526715,Commentator Critic Caucus Custodian Constituent Yearling Curious Civic Duty Informed Notable Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 43268,50011,585101,Yearling Nice Answer Nice Answer Notable Question Excavator Good Question Notable Question Notable Question Notable Question Nice Answer Enlightened Yearling Great Question Popular Question Notable Question Popular Question Good Question Nice Question Nice Question Yearling Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 43269,37689,607016,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 43270,136667,1558820,Critic Revival Announcer Necromancer,NULL,NULL,0,NULL,NULL 43271,236942,404996,NULL,NULL,NULL,0,NULL,NULL 43272,16233,1537885,NULL,NULL,NULL,0,NULL,NULL 43273,1675581,1537885,NULL,NULL,NULL,0,NULL,NULL 43274,196107,1137995,NULL,NULL,NULL,0,NULL,NULL 43275,21683,1494248,Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 43276,1361914,783144,Commentator Student,NULL,NULL,0,NULL,NULL 43277,218987,1310414,NULL,NULL,NULL,0,NULL,NULL 43278,584638,940473,NULL,NULL,NULL,0,NULL,NULL 43279,1846516,1250589,NULL,NULL,NULL,0,NULL,NULL 43280,53044,194533,Popular Question Nice Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43281,167231,28150,Revival Guru Nice Question Explainer Yearling Necromancer Famous Question Guru Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 43282,495372,1034902,NULL,NULL,NULL,0,NULL,NULL 43283,865786,168722,Yearling Great Question Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 43284,3294544,928929,NULL,NULL,NULL,0,NULL,NULL 43285,1173063,624936,NULL,NULL,NULL,0,NULL,NULL 43286,507147,899254,NULL,NULL,NULL,0,NULL,NULL 43287,1064766,464538,Nice Question Popular Question Famous Question Popular Question Yearling Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 43288,1189698,648577,NULL,NULL,NULL,0,NULL,NULL 43289,3119480,890976,NULL,NULL,NULL,0,NULL,NULL 43290,749718,977953,NULL,NULL,NULL,0,NULL,NULL 43291,685014,300352,Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 43292,1274818,748217,Notable Question,NULL,NULL,0,NULL,NULL 43293,236599,644517,NULL,NULL,NULL,0,NULL,NULL 43294,5964485,644517,NULL,NULL,NULL,0,NULL,NULL 43295,134421,853913,NULL,NULL,NULL,0,NULL,NULL 43296,3431,804947,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43297,448379,125924,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 43298,33455,997833,NULL,NULL,NULL,0,NULL,NULL 43299,396068,1136661,Curious,NULL,NULL,0,NULL,NULL 43300,187271,578724,Yearling Notable Question Guru Custodian Notable Question Nice Answer Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43301,136165,443416,NULL,NULL,NULL,0,NULL,NULL 43302,100674,527288,Notable Question Good Answer Favorite Question Popular Question Popular Question Nice Answer Enlightened Nice Question Good Question Custodian Custodian Famous Question Notable Question Great Answer Popular Question Good Answer Guru Yearling Nice Answer Enlightened Announcer Guru Famous Question Popular Question Yearling Famous Question Nice Question Guru Popular Question Notable Question Popular Question Notable Question Favorite Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 43303,63016,110213,Good Answer Guru Yearling ruby-on-rails-3 Good Answer Popular Question Yearling Nice Answer Custodian Yearling Taxonomist Guru Guru,NULL,NULL,0,NULL,NULL 43304,260670,21367,Yearling Good Question Nice Question Notable Question Nice Answer Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 43305,591194,499568,NULL,NULL,NULL,0,NULL,NULL 43306,634116,614327,Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 43307,90249,704626,NULL,NULL,NULL,0,NULL,NULL 43308,648293,225967,Popular Question,NULL,NULL,0,NULL,NULL 43309,750921,1424463,NULL,NULL,NULL,0,NULL,NULL 43310,913366,1085473,NULL,NULL,NULL,0,NULL,NULL 43311,434596,622789,NULL,NULL,NULL,0,NULL,NULL 43312,162786,920977,NULL,NULL,NULL,0,NULL,NULL 43313,548523,824826,NULL,NULL,NULL,0,NULL,NULL 43314,151275,1110048,NULL,NULL,NULL,0,NULL,NULL 43315,3581035,1269791,NULL,NULL,NULL,0,NULL,NULL 43316,185187,624067,NULL,NULL,NULL,0,NULL,NULL 43317,2053,186734,NULL,NULL,NULL,0,NULL,NULL 43318,238634,181239,Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 43319,242522,1063140,NULL,NULL,NULL,0,NULL,NULL 43320,197466,1145905,Yearling Nice Answer Popular Question Necromancer android Good Answer Nice Answer Popular Question Revival Nice Answer Necromancer Yearling Necromancer Revival Popular Question Good Answer Necromancer Nice Answer Announcer Notable Question Popular Question Yearling Popular Question Enthusiast Electorate Nice Answer Popular Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 43321,131540,513643,Tumbleweed,NULL,NULL,0,NULL,NULL 43322,178468,155387,Nice Answer Enlightened Good Question Yearling Good Answer Populist Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 43323,55303,393709,NULL,NULL,NULL,0,NULL,NULL 43324,133121,972690,Student Caucus,NULL,NULL,0,NULL,NULL 43325,77841,31891,Yearling Notable Question Great Answer Commentator Self-Learner Yearling,NULL,NULL,0,NULL,NULL 43326,3200672,979663,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43327,461883,979663,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43328,328760,755017,NULL,NULL,NULL,0,NULL,NULL 43329,50909,144594,Editor Necromancer,NULL,NULL,0,NULL,NULL 43330,165060,228750,Nice Answer Enlightened Yearling Census Nice Answer Notable Question Yearling Good Answer Notable Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 43331,820398,754201,Commentator Popular Question Yearling Revival Custodian Necromancer Nice Question Popular Question Nice Answer Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 43332,365193,680232,Notable Question Necromancer Inquisitive Yearling Famous Question Notable Question Popular Question Custodian Good Answer Nice Answer Necromancer Necromancer Custodian Caucus Investor Nice Question Popular Question Nice Answer Popular Question python Good Question Notable Question Notable Question Popular Question Nice Answer Yearling Nice Answer Announcer Notable Question Notable Question Popular Question Nice Question Yearling Electorate Notable Question Populist Good Answer Nice Answer Good Answer Benefactor,NULL,pAbove solution does not work for me For me only this one works ppre codewget l1 t1 nd np mp3 erobots off url of website code prepOptions meaning ppre code recursive l1 maximum recursion depth use only this directory span hosts visit other hosts in the recursion t1 Number of retries nd Don make new directories put downloaded files in this one turn on timestamping mp3 download only mp3s erobots off execute robots off as if it were part of wgetrc code pre actually just realize that my source was NOT command line fu because answered this on 2013 07 10 while the commandlinefu entry is from 2013 07 13 But also note that did not come up with this found it somewhere,0,NULL,NULL 43333,353427,83871,Popular Question Notable Question Yearling Nice Question Good Answer Great Answer Nice Answer Famous Question Popular Question Nice Question Nice Answer Yearling Good Answer Revival Good Answer Famous Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 43334,264572,373382,NULL,NULL,NULL,0,NULL,NULL 43335,222785,688605,NULL,NULL,NULL,0,NULL,NULL 43336,421374,1207662,Scholar,NULL,NULL,0,NULL,NULL 43337,1317203,1055787,NULL,NULL,NULL,0,NULL,NULL 43338,106034,194563,NULL,NULL,NULL,0,NULL,NULL 43339,141793,46548,Necromancer django Nice Answer Custodian Custodian Guru Organizer Caucus Yearling Necromancer Custodian Good Answer Caucus Constituent Revival Yearling Tenacious Unsung Hero Nice Answer Enlightened python Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43340,283528,244387,Student,NULL,NULL,0,NULL,NULL 43341,262170,440983,NULL,NULL,NULL,0,NULL,NULL 43342,773761,95232,Yearling Stellar Question Great Question Nice Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 43343,127160,548170,Notable Question Notable Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 43344,9470,363371,NULL,NULL,NULL,0,NULL,NULL 43345,620428,378862,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 43346,595217,1285642,NULL,NULL,NULL,0,NULL,NULL 43347,237728,34171,Yearling Good Answer Commentator Yearling Guru,NULL,NULL,0,NULL,NULL 43348,1561069,1333577,NULL,NULL,NULL,0,NULL,NULL 43349,23668,525238,Popular Question Yearling Popular Question Nice Question Good Answer Notable Question Necromancer Caucus Yearling Popular Question Nice Answer Nice Answer Enlightened Announcer Yearling Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 43350,71126,756822,NULL,NULL,NULL,0,NULL,NULL 43351,2241436,783257,NULL,NULL,NULL,0,NULL,NULL 43352,337569,823629,Yearling Nice Answer Yearling Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 43353,48033,1448158,NULL,NULL,NULL,0,NULL,NULL 43354,418672,723685,Tenacious Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 43355,1437792,355672,NULL,NULL,NULL,0,NULL,NULL 43356,111336,1001334,Critic,NULL,NULL,0,NULL,NULL 43357,414776,329217,NULL,NULL,NULL,0,NULL,NULL 43358,487196,32794,Nice Question Yearling Guru Good Question Popular Question Caucus Constituent Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 43359,271445,486405,Yearling Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 43360,358307,852277,Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43361,13477,668762,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 43362,288988,1067613,NULL,NULL,NULL,0,NULL,NULL 43363,641229,1212882,NULL,NULL,NULL,0,NULL,NULL 43364,430252,93521,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43365,1937578,93521,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43366,397171,843192,Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43367,359026,166442,Yearling Caucus Good Question Notable Question Good Question Good Question Famous Question Famous Question Good Question Yearling Good Answer Popular Question Necromancer Yearling Nice Question Good Question Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 43368,84661,725791,Editor Citizen Patrol Critic Notable Question,NULL,NULL,0,NULL,NULL 43369,334848,444226,NULL,NULL,NULL,0,NULL,NULL 43370,1262523,1547243,NULL,NULL,NULL,0,NULL,NULL 43371,33913,221612,Notable Question Announcer Good Answer Notable Question Great Question Favorite Question Yearling Popular Question Necromancer Popular Question Yearling Nice Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 43372,48243,512348,NULL,NULL,NULL,0,NULL,NULL 43373,751096,590647,NULL,NULL,NULL,0,NULL,NULL 43374,227893,1007496,Informed Popular Question Scholar Student Supporter,NULL,NULL,0,NULL,NULL 43375,12584,544947,Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Necromancer Nice Question Peer Pressure Revival Revival Necromancer Nice Question Notable Question Electorate Necromancer Good Answer Self-Learner Famous Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Notable Question Yearling Good Question Popular Question Notable Question Nice Question Necromancer Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Necromancer Notable Question Revival Good Answer Popular Question Nice Question Popular Question Famous Question Yearling Notable Question Notable Question Popular Question Nice Answer Popular Question Notable Question Famous Question Popular Question Nice Question,NULL,How to cleanup the graphite whisper data graphite pI want to delete the graphite storage whisper data but there ain anything in the graphite docs ppOne way did is deleting the the files at code opt graphite whispers stats code manually ppBut this is tedious so how do do it in case they appear again after deleting them check this other question http stackoverflow com questions 15501677 deleted empty graphite whisper files automatically re generating pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl how to make your script avoid any post processing that is download in the same format as it is originally in youtube to avoid re encodings pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl mmm guess the result of that would be the same as simply issuing youtube dl extract audio format bestaudio https www youtube com watch 3LZugKYOx80 from the command line pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl but not re encodings right pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl but using bestaudio format keyword would always match right pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl want it to be touched but only for extracting removing the video without reencoding the audio mean if the audio is already lossless don want reencodings because the audio would lose quality even more pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl ve tried bestaudio but sometimes it downloads webm but if use both extract audio bestaudio seems to work alright by extracting the opus file from the webm container,1,NULL,How to determine if port is open on Windows server windows server 2003 port ping pI trying to install site under an alternative port on server but the port may be closed by firewall Is there way to ping out or in on specific port to see if it is open pIf you re checking from the outside not from the server itself and you don want to bother installing telnet as it doesn come with the last versions of Windows or any other software then you have native PowerShell ppre codeTest NetConnection Port 800 ComputerName 192 168 InformationLevel Detailed code prep Unfortunately this only works with PowerShell or newer To check your PS version type code PSVersionTable code phrp If you have PSVersion lt you re out of luck Check this table pp href https stack imgur com tNjlt jpg img src https stack imgur com tNjlt jpg alt enter image description here ppEven though you can upgrade your version of powershell by installing the href https www microsoft com en us download details aspx id 40855 Windows Management Framework it didn do the trick for me strongTest NetConnection strong cmdlet is still not available 43376,992866,589929,NULL,NULL,NULL,0,NULL,NULL 43377,395303,1152792,NULL,NULL,NULL,0,NULL,NULL 43378,478443,978548,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 43379,34656,62368,Yearling Good Question Nice Question Popular Question Famous Question Nice Answer Yearling Yearling Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43380,1403664,503508,Quorum Good Question Nice Answer Enlightened Custodian Popular Question Mortarboard Sportsmanship Notable Question android Reviewer Nice Answer Unsung Hero Documentation Beta Caucus Yearling Strunk & White Good Answer Announcer Revival Nice Answer Nice Answer Famous Question Popular Question Popular Question Good Answer Nice Answer Guru Nice Answer Necromancer Famous Question Documentation User Notable Question Yearling Announcer Famous Question Necromancer Popular Question Nice Answer Announcer Notable Question Announcer Notable Question Announcer Revival Good Answer Announcer Popular Question Nice Answer Yearling,NULL,pAsyncTask uses thread pool pattern for running the stuff from doInBackground The issue is initially in early Android OS versions the pool size was just meaning no parallel computations for bunch of AsyncTasks But later they fixed that and now the size is so at most AsyncTasks can run simultaneously Unfortunately don remember in what version exactly they changed that pp strongUPDATE strong ppHere is what current 2012 01 27 API says on this pblockquote pWhen first introduced AsyncTasks were executed serially on single background thread Starting with DONUT this was changed to pool of threads allowing multiple tasks to operate in parallel After HONEYCOMB it is planned to change this back to single thread to avoid common application errors caused by parallel execution If you truly want parallel execution you can use the executeOnExecutor Executor Params version of this method with THREAD POOL EXECUTOR however see commentary there for warnings on its use blockquotepDONUT is Android HONEYCOMB is Android pp strongUPDATE strong ppSee the comment by codekabuko code from codeMar at 27 code ppIt turns out that for APIs where pool of threads allowing multiple tasks to operate in parallel is used starting from and ending on the number of simultaneously running AsyncTasks depends on how many tasks have been passed for execution already but have not finished their codedoInBackground code yet ppThis is tested confirmed by me on Suppose you have custom AsyncTask that just sleeps second in codedoInBackground code AsyncTasks use fixed size queue internally for storing delayed tasks Queue size is 10 by default If you start 15 your custom tasks in row then first will enter their codedoInBackground code but the rest will wait in queue for free worker thread As soon as any of the first finishes and thus releases worker thread task from the queue will start execution So in this case at most tasks will run simultaneously However if you start 16 your custom tasks in row then first will enter their codedoInBackground code the rest 10 will get into the queue but for the 16th new worker thread will be created so it ll start execution immediately So in this case at most tasks will run simultaneously ppThere is limit of how many tasks can be run simultaneously Since codeAsyncTask code uses thread pool executor with limited max number of worker threads 128 and the delayed tasks queue has fixed size 10 if you try to execute more than 138 your custom tasks the app will crash with codejava util concurrent RejectedExecutionException code ppStarting from the API allows to use your custom thread pool executor via codeAsyncTask executeOnExecutor Executor exec Params params code method This allows for instance to configure the size of the delayed tasks queue if default 10 is not what you need ppAs mentions there is an option to use codeAsyncTaskCompat executeParallel task params code from support library to run tasks in parallel without bothering with API level This method became deprecated in API level 26 pp strongUPDATE strong ppHere is simple test app to play with number of tasks serial vs parallel execution href https github com vitkhudenko test asynctask rel noreferrer https github com vitkhudenko test asynctask pp strongUPDATE strong thanks for pointing this out ppStarting from Android codeAsyncTask code behaves differently from what was described in strongUPDATE strong section There href https android googlesource com platform frameworks base 719c44e03b97e850a46136ba336d729f5fbd1f47 5E 21 F0 rel noreferrer is fix to prevent codeAsyncTask code from creating too many threads ppBefore Android API 19 codeAsyncTask code had the following fields ppre codeprivate static final int CORE POOL SIZE private static final int MAXIMUM POOL SIZE 128 private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 10 code prepIn Android API 19 the above fields are changed to this ppre codeprivate static final int CPU COUNT Runtime getRuntime availableProcessors private static final int CORE POOL SIZE CPU COUNT private static final int MAXIMUM POOL SIZE CPU COUNT private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 128 code prepThis change increases the size of the queue to 128 items and reduces the maximum number of threads to the number of CPU cores Apps can still submit the same number of tasks Please update this answer for the new compat functions http developer android com reference android support v4 os AsyncTaskCompat html Example AsyncTaskCompat executeParallel task params pAsyncTask uses thread pool pattern for running the stuff from doInBackground The issue is initially in early Android OS versions the pool size was just meaning no parallel computations for bunch of AsyncTasks But later they fixed that and now the size is so at most AsyncTasks can run simultaneously Unfortunately don remember in what version exactly they changed that pp strongUPDATE strong ppHere is what current 2012 01 27 API says on this pblockquote pWhen first introduced AsyncTasks were executed serially on single background thread Starting with DONUT this was changed to pool of threads allowing multiple tasks to operate in parallel After HONEYCOMB it is planned to change this back to single thread to avoid common application errors caused by parallel execution If you truly want parallel execution you can use the executeOnExecutor Executor Params version of this method with THREAD POOL EXECUTOR however see commentary there for warnings on its use blockquotepDONUT is Android HONEYCOMB is Android pp strongUPDATE strong ppSee the comment by codekabuko code from codeMar at 27 code ppIt turns out that for APIs where pool of threads allowing multiple tasks to operate in parallel is used starting from and ending on the number of simultaneously running AsyncTasks depends on how many tasks have been passed for execution already but have not finished their codedoInBackground code yet ppThis is tested confirmed by me on Suppose you have custom AsyncTask that just sleeps second in codedoInBackground code AsyncTasks use fixed size queue internally for storing delayed tasks Queue size is 10 by default If you start 15 your custom tasks in row then first will enter their codedoInBackground code but the rest will wait in queue for free worker thread As soon as any of the first finishes and thus releases worker thread task from the queue will start execution So in this case at most tasks will run simultaneously However if you start 16 your custom tasks in row then first will enter their codedoInBackground code the rest 10 will get into the queue but for the 16th new worker thread will be created so it ll start execution immediately So in this case at most tasks will run simultaneously ppThere is limit of how many tasks can be run simultaneously Since codeAsyncTask code uses thread pool executor with limited max number of worker threads 128 and the delayed tasks queue has fixed size 10 if you try to execute more than 138 your custom tasks the app will crash with codejava util concurrent RejectedExecutionException code ppStarting from the API allows to use your custom thread pool executor via codeAsyncTask executeOnExecutor Executor exec Params params code method This allows for instance to configure the size of the delayed tasks queue if default 10 is not what you need ppAs mentions there is an option to use codeAsyncTaskCompat executeParallel task params code from support library to run tasks in parallel without bothering with API level This method became deprecated in API level 26 pp strongUPDATE strong ppHere is simple test app to play with number of tasks serial vs parallel execution href https github com vitkhudenko test asynctask rel noreferrer https github com vitkhudenko test asynctask pp strongUPDATE strong thanks for pointing this out ppStarting from Android codeAsyncTask code behaves differently from what was described in strongUPDATE strong section There href https android googlesource com platform frameworks base 719c44e03b97e850a46136ba336d729f5fbd1f47 5E 21 F0 rel noreferrer is fix to prevent codeAsyncTask code from creating too many threads ppBefore Android API 19 codeAsyncTask code had the following fields ppre codeprivate static final int CORE POOL SIZE private static final int MAXIMUM POOL SIZE 128 private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 10 code prepIn Android API 19 the above fields are changed to this ppre codeprivate static final int CPU COUNT Runtime getRuntime availableProcessors private static final int CORE POOL SIZE CPU COUNT private static final int MAXIMUM POOL SIZE CPU COUNT private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 128 code prepThis change increases the size of the queue to 128 items and reduces the maximum number of threads to the number of CPU cores Apps can still submit the same number of tasks That depends entirely on the use case and the asker doesn specify think it is still on topic,0,NULL,NULL 43381,1220487,814953,NULL,NULL,NULL,0,NULL,NULL 43382,850785,1438419,NULL,NULL,NULL,0,NULL,NULL 43383,244661,1438419,NULL,NULL,NULL,0,NULL,NULL 43384,402468,465067,Yearling,NULL,NULL,0,NULL,NULL 43385,85123,1283474,Good Answer Nice Answer Enlightened Yearling Enlightened Popular Question Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 43386,5680,122358,Nice Answer Yearling Stellar Question Yearling Famous Question Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 43387,1019156,952548,NULL,NULL,NULL,0,NULL,NULL 43388,59446,1288687,Revival Nice Answer Commentator Necromancer Necromancer Necromancer Yearling Yearling Excavator Yearling Student Scholar,NULL,NULL,0,NULL,NULL 43389,294579,1362907,Supporter,NULL,NULL,0,NULL,NULL 43390,405599,445487,NULL,NULL,NULL,0,NULL,NULL 43391,165388,585948,NULL,NULL,NULL,0,NULL,NULL 43392,79359,217672,Yearling Nice Question Investor Revival Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43393,98009,118499,Notable Question Nice Answer Enlightened Yearling python Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43394,686201,93360,Nice Answer Notable Question Yearling Famous Question Famous Question Popular Question Popular Question Good Answer Yearling Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 43395,409814,938575,NULL,NULL,NULL,0,NULL,NULL 43396,1167982,1159104,Necromancer,NULL,NULL,0,NULL,NULL 43397,253617,742518,NULL,NULL,NULL,0,NULL,NULL 43398,718013,774143,NULL,NULL,NULL,0,NULL,NULL 43399,296823,1459204,Supporter Revival,NULL,NULL,0,NULL,NULL 43400,7077214,1459204,Supporter Revival,NULL,NULL,0,NULL,NULL 43401,87025,1123616,NULL,NULL,NULL,0,NULL,NULL 43402,1103540,604551,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 43403,325702,7586,Good Answer Guru Nice Answer Nice Answer Nice Answer Guru Guru Guru Nice Answer Enlightened Favorite Question Necromancer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Documentation Pioneer Nice Answer Good Answer python Guru Nice Question Good Question Popular Question Good Answer Yearling Guru asp.net Nice Answer Enlightened Announcer Nice Answer Great Answer Caucus Nice Answer Enlightened Constituent Nice Answer Announcer Necromancer Nice Answer arrays Nice Answer Enlightened Nice Answer Good Answer Great Answer Great Answer Census Good Answer Good Answer Good Answer Nice Question Nice Answer Announcer Nice Answer Nice Answer Great Answer Caucus Nice Answer Constituent Good Answer Guru Nice Answer Enlightened Good Answer Yearling Announcer Nice Answer Good Answer Announcer Documentation User Popular Question Announcer Great Answer Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Custodian Steward Census Announcer Nice Answer Caucus Constituent Great Answer Announcer Great Answer Nice Answer Good Answer Announcer Popular Question Great Answer Notable Question Guru Great Answer Guru Announcer Notable Question Guru Good Answer Nice Answer Guru Good Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer,NULL,pTry this ppre code system code prepOr this to match the whole line ppre code system code prepThe regex has negative look ahead on its beginning which doesn match if system is the entire string yuri Right that the first option you re just filtering string for example is not needed,0,NULL,NULL 43404,1219843,1365526,NULL,NULL,NULL,0,NULL,NULL 43405,214149,993421,NULL,NULL,NULL,0,NULL,NULL 43406,974306,215814,NULL,NULL,NULL,0,NULL,NULL 43407,538172,867050,NULL,NULL,NULL,0,NULL,NULL 43408,75199,384812,Populist Yearling Guru Popular Question Notable Question Popular Question Yearling Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43409,45882,129474,Popular Question Famous Question Popular Question Good Answer Yearling Nice Question Yearling Popular Question Popular Question Taxonomist Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 43410,27725,190545,NULL,NULL,NULL,0,NULL,NULL 43411,1061503,1044582,Commentator Popular Question,NULL,NULL,0,NULL,NULL 43412,1108413,1076319,NULL,NULL,NULL,0,NULL,NULL 43413,387640,1214289,Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Taxonomist Notable Question Yearling Famous Question Nice Question Caucus Notable Question Famous Question Popular Question Yearling Popular Question Famous Question Nice Question Excavator Popular Question Good Question Nice Answer Enlightened Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43414,158138,438374,Fanatic Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 43415,623079,366514,Self-Learner Popular Question Critic Notable Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 43416,314360,908227,NULL,NULL,NULL,0,NULL,NULL 43417,312288,684592,Civic Duty Popular Question Famous Question Popular Question Notable Question Caucus Caucus,NULL,NULL,0,NULL,NULL 43418,33359,184883,Notable Question Good Question Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Good Answer Nice Question Popular Question Notable Question Good Answer Notable Question Nice Question Popular Question Favorite Question Populist javascript Famous Question Notable Question Guru Popular Question Good Question Popular Question Nice Answer Enlightened Notable Question Nice Question Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Famous Question Good Answer Custodian Notable Question Yearling Famous Question Nice Question Famous Question Popular Question Good Answer Good Answer testing Nice Answer Notable Question Nice Answer Enlightened Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Notable Question Nice Question Notable Question mocking unit-testing jestjs Nice Answer Nice Question Announcer Famous Question Notable Question Famous Question Favorite Question Great Answer Guru Popular Question Good Question Nice Answer Enlightened reactjs Famous Question Popular Question Popular Question Guru Nice Answer Yearling Famous Question Documentation User Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Good Answer Census jestjs Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened node.js html Nice Question Nice Answer Enlightened Popular Question Good Answer Guru Notable Question Nice Answer Enlightened Good Question Nice Answer Enlightened Famous Question Nice Answer Nice Question enzyme Guru Notable Question Notable Question Great Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Great Question Guru Nice Question Nice Answer Enlightened Popular Question Yearling Favorite Question Good Answer Favorite Question Good Answer jestjs,NULL,NULL,0,NULL,NULL 43419,1540424,1274359,NULL,NULL,NULL,0,NULL,NULL 43420,130677,1488670,NULL,NULL,NULL,0,NULL,NULL 43421,272930,267088,Famous Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 43422,223846,100815,NULL,NULL,NULL,0,NULL,NULL 43423,909987,254397,NULL,NULL,NULL,0,NULL,NULL 43424,284761,56495,Yearling Good Question Popular Question Notable Question Necromancer Yearling Popular Question python Yearling Notable Question,NULL,NULL,0,NULL,NULL 43425,149931,1012296,NULL,NULL,NULL,0,NULL,NULL 43426,635235,141346,Yearling Notable Question Favorite Question Notable Question Favorite Question Nice Answer Yearling Popular Question Popular Question Great Question Great Question Famous Question Notable Question Yearling Notable Question,NULL,strongassertEquals strong method has an undocumented param canonicalize If you use em canonicalize true em the arrays will be sorted by PHPUnit arrays comparator itself ppCode example ppre codeclass ArraysTest extends PHPUnit Framework TestCase public function testEquality obj1 this gt getObject obj2 this gt getObject obj3 this gt getObject array1 obj1 obj2 obj3 array2 obj2 obj1 obj3 Pass this gt assertEquals array1 array2 canonicalize true 10 true Fail this gt assertEquals array1 array2 Default behaviour private function getObject value result new stdclass result gt property value return result code prepArrays comparator source code at latest version of PHPUnit href https github com sebastianbergmann comparator blob master src ArrayComparator php L43 rel noreferrer https github com sebastianbergmann comparator blob master src ArrayComparator php L43 note that canonicalize will be removed https github com sebastianbergmann phpunit issues 3342 and assertEqualsCanonicalizing will replace it,0,NULL,NULL 43427,350291,1545846,Notable Question Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 43428,1425848,1545846,Notable Question Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 43429,135674,1356883,Yearling Caucus Constituent Guru Yearling Revival Caucus Constituent Nice Answer Documentation User Custodian Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43430,35387,357685,Notable Question Yearling Good Answer Notable Question Yearling Nice Answer Enlightened Great Answer Notable Question Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43431,1272205,1341817,NULL,NULL,NULL,0,NULL,NULL 43432,793644,758694,NULL,NULL,NULL,0,NULL,NULL 43433,2683655,591309,Good Question,NULL,NULL,0,NULL,NULL 43434,171468,118803,Popular Question Yearling Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 43435,522032,433835,Guru Nice Answer Good Answer Nice Answer Notable Question Yearling Good Answer Nice Answer Popular Question Famous Question Popular Question Popular Question Necromancer Announcer Caucus Nice Answer Yearling Documentation User Nice Answer Necromancer Census Announcer Nice Answer Notable Question Notable Question Good Answer Notable Question Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 43436,42237,799800,Notable Question Curious,NULL,href https stackoverflow com questions 18082 validate numbers in javascript isnumeric 174921 174921 answer is pretty close but it will fail in the following cases ppre code Whitespace strings IsNumeric true IsNumeric true IsNumeric true Number literals IsNumeric false IsNumeric false IsNumeric false IsNumeric 8e5 false code prepSome time ago had to implement an codeIsNumeric code function to find out if variable contained numeric value strongregardless of its type strong it could be codeString code containing numeric value had to consider also exponential notation etc codeNumber code object virtually anything could be passed to that function couldn make any type assumptions taking care of type coercion eg code true code but codetrue code shouldn be considered as code numeric code ppI think is worth sharing this set of href http run plnkr co plunks 93FPpacuIcXqqKMecLdk rel noreferrer strong 30 unit tests strong made to numerous function implementations and also share the one that passes all my tests ppre codefunction isNumeric return isNaN parseFloat amp amp isFinite code prep strongP strong href https developer mozilla org en US docs Web JavaScript Reference Global Objects isNaN rel noreferrer isNaN amp href https developer mozilla org en US docs Web JavaScript Reference Global Objects isFinite rel noreferrer isFinite have confusing behavior due to forced conversion to number In ES6 href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number isNaN rel noreferrer Number isNaN amp href https developer mozilla org en US docs Web JavaScript Reference Global Objects Number isFinite rel noreferrer Number isFinite would fix these issues Keep that in mind when using them phrp strongUpdate strong href https github com jquery jquery blob stable src core js L215 rel noreferrer Here how jQuery does it now stable ppre codeisNumeric function obj var realStringObj obj amp amp obj toString return jQuery isArray obj amp amp realStringObj parseFloat realStringObj gt code prep strongUpdate strong href https github com angular angular blob packages common src pipes number pipe ts L172 rel noreferrer Angular ppre codeexport function isNumeric value any boolean return isNaN value parseFloat value code pre needed an implementation that does consider Infinity as number so used another one of the implementations in the page isNaN string isNaN parseFloat string,0,NULL,NULL 43437,29539,620701,NULL,NULL,NULL,0,NULL,NULL 43438,490342,992618,Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Self-Learner Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43439,219824,823301,NULL,NULL,NULL,0,NULL,NULL 43440,1410858,1377333,NULL,NULL,NULL,0,NULL,NULL 43441,169566,722850,Supporter Nice Question Yearling Notable Question Good Question Popular Question Popular Question Caucus Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 43442,767631,1420768,NULL,NULL,NULL,0,NULL,NULL 43443,509833,1288055,Editor,NULL,NULL,0,NULL,NULL 43444,275357,82686,Popular Question Nice Answer Enlightened Yearling Necromancer Generalist Revival Announcer Necromancer Popular Question Great Answer Necromancer asp.net-mvc Good Question Nice Answer Nice Answer Nice Answer Great Answer javascript Good Answer Good Answer Announcer Great Answer Great Answer Good Answer Nice Answer Census Nice Answer Yearling Populist Nice Answer Enlightened Guru Good Answer Necromancer Nice Answer Necromancer Enlightened Necromancer Nice Answer Enlightened Nice Answer Good Answer Necromancer Popular Question Necromancer Announcer Good Answer Yearling Civic Duty Necromancer Necromancer Great Answer Necromancer,NULL,NULL,1,NULL,What is the proper git workflow for basing project off seed repo git github pAs an example suppose you have personal project like Angular Seed which is starting point for an Angular project href https github com angular angular seed https github com angular angular seed ppNow you want to use that as starting point for project say an online photo album ppYou shouldn just create branch because you re not making variation of the seed project But github won let you fork it if it your own repo ppSo what is the workflow to create clone that can still pull in changes form the original seed project thought that was fork h2Option clone fetch merge h2pClone the codemaster code branch of the seed project of your choice for example ppre code git clone react starter kit master single branch https github com kriasoft react starter kit git MyApp cd MyApp code prepDown the road you can pull and merge updates from the seed project back into your local repo by running ppre code git checkout master git fetch react starter kit git merge react starter kit master npm install code preh2Option clone pull diff h2pClone the seed project and remove its version history ppre code git clone https github com kriasoft react starter kit depth git clone https github com kriasoft react starter kit MyApp depth cd MyApp rm rf git code prepThen whenever you need to pull the latest updates from the seed project back into your local repo you can navigate to the original seed project pull the updates codegit pull code then compare that folder with your project folder by using some good Diff tool Beyond Compare that allows you to save and customize folder comparison sessions 43445,262038,111887,Good Question Promoter Nice Question,NULL,NULL,0,NULL,NULL 43446,482520,908898,NULL,NULL,NULL,0,NULL,NULL 43447,592123,272072,Necromancer Yearling Good Question Nice Question Notable Question Guru Popular Question Nice Answer Guru Nice Answer Revival Nice Answer Necromancer Nice Answer Yearling Popular Question Good Question Necromancer Notable Question Good Answer Electorate Yearling Good Answer Popular Question Necromancer Guru Notable Question Popular Question Nice Answer c# Nice Answer Tumbleweed Good Question Good Answer Necromancer,NULL,NULL,0,NULL,NULL 43448,40040,127451,Notable Question,NULL,NULL,0,NULL,NULL 43449,3189,683059,NULL,NULL,NULL,0,NULL,NULL 43450,700441,411278,Student,NULL,NULL,0,NULL,NULL 43451,34676,295765,Caucus Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 43452,191231,977769,Popular Question,NULL,NULL,0,NULL,NULL 43453,499836,1035151,NULL,NULL,NULL,0,NULL,NULL 43454,22726,450946,Popular Question Nice Question Notable Question Critic Yearling Good Question Popular Question Yearling Famous Question Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 43455,40653,979305,Quorum,NULL,NULL,0,NULL,NULL 43456,579055,114843,Popular Question,NULL,NULL,0,NULL,NULL 43457,322188,224589,Famous Question Notable Question Critic Curious Caucus,NULL,NULL,0,NULL,NULL 43458,165972,406623,NULL,NULL,NULL,0,NULL,NULL 43459,472139,532166,NULL,NULL,NULL,0,NULL,NULL 43460,475880,1260342,NULL,NULL,NULL,0,NULL,NULL 43461,1050423,980843,NULL,NULL,NULL,0,NULL,NULL 43462,181003,366439,NULL,NULL,NULL,0,NULL,NULL 43463,1189452,509467,Supporter Popular Question,NULL,NULL,0,NULL,NULL 43464,1270041,1090860,Editor,NULL,NULL,0,NULL,NULL 43465,3023849,1090860,Editor,NULL,NULL,0,NULL,NULL 43466,467882,1083898,Nice Answer Custodian Caucus Yearling Popular Question Good Question Caucus Constituent Popular Question Yearling Popular Question Revival Popular Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 43467,268372,731041,Guru Yearling Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 43468,1177839,1286601,Necromancer Yearling Necromancer Nice Answer Nice Answer Famous Question Yearling Caucus Revival Curious Nice Question Nice Question Yearling Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 43469,505744,76123,Popular Question Nice Answer Custodian Custodian Popular Question Yearling Good Answer Good Answer Popular Question Notable Question Nice Answer Nice Answer Enlightened Enlightened Custodian Custodian Yearling Guru Nice Answer Good Answer Documentation User Announcer Nice Answer Enlightened Census Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 43470,79240,899905,NULL,NULL,NULL,0,NULL,NULL 43471,4615690,899905,NULL,NULL,NULL,0,NULL,NULL 43472,4657143,899905,NULL,NULL,NULL,0,NULL,NULL 43473,4742892,899905,NULL,NULL,NULL,0,NULL,NULL 43474,391287,593887,NULL,NULL,NULL,0,NULL,NULL 43475,102541,21074,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43476,185889,525032,NULL,NULL,NULL,0,NULL,NULL 43477,498005,665136,NULL,NULL,NULL,0,NULL,NULL 43478,235738,350789,Popular Question Famous Question Yearling Notable Question Popular Question Yearling Good Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 43479,133651,1120654,NULL,NULL,NULL,0,NULL,NULL 43480,671133,697681,Popular Question Notable Question Caucus Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43481,1208863,347400,NULL,NULL,NULL,0,NULL,NULL 43482,480891,975443,Nice Answer Popular Question Famous Question Notable Question Suffrage Vox Populi Yearling Good Answer Enthusiast Announcer Announcer Popular Question Announcer Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 43483,4760,947609,Nice Answer Notable Question Nice Answer Organizer Yearling Caucus Proofreader Notable Question Booster Nice Question Great Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 43484,335613,1053007,NULL,NULL,NULL,0,NULL,NULL 43485,1736065,196174,NULL,NULL,NULL,0,NULL,NULL 43486,10497,196174,NULL,NULL,NULL,0,NULL,NULL 43487,443679,308392,Enlightened Nice Answer Yearling Guru Popular Question Good Answer Nice Answer Good Answer Nice Answer Yearling Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 43488,261156,557572,Revival Yearling Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 43489,66191,594130,NULL,NULL,NULL,0,NULL,NULL 43490,861876,1031992,NULL,NULL,NULL,0,NULL,NULL 43491,794655,319826,Citizen Patrol Yearling Civic Duty Custodian Yearling Nice Answer Informed Good Answer Yearling Organizer Peer Pressure Excavator Custodian Custodian Custodian Explainer Yearling Yearling Fanatic Tenacious Popular Question Deputy Reviewer Yearling Caucus Constituent Strunk & White Nice Answer Enlightened Yearling Caucus Constituent Custodian Necromancer Reviewer Proofreader Necromancer Reviewer Census Caucus Constituent Yearling Popular Question Good Answer,NULL,PATCH method blocked by firewall rest firewall pHi anyone ever had situation that codePATCH code method over codeXHR code AJAX requests was blocked by firewall ppBasically we had situation where client was complaining that he couldn update stuff on our app We checked it everywhere in the world it was working we connected via codeVPN code several places ppThen they provided us remote desktop latest Windows latest chrome so we tried it for our self from their network and they were right All PATCH methods via codeAJAX code calls ended up with 405 but all codePUT POST DELETE GET code methods were fine We tried to track these PATCH requests in application and codeNginx code logs but it seems they never hit our server So conclusion is that their firewall newer let the request leave the building ppnormal ppre code Laptop PATCH gt Clients Firewal gt Load Balancer gt Nginx proxy gt Rails app 200 response code prepthis firewall case ppre code Laptop PATCH gt Clients Firewal 405 response code prepDue to lack of time to investigate this we just changed some of these problematic endpoints from PATCH to PUT and everything was working ppmy only explanation in that because PATCH is part of another later introduced RFC their firewall must be super old and not registering PATCH as valid method Their sys admin have no idea why this could be But one clue is that the application is EdTech and clients are Schools they not necessarily may have the latest technology on their networking stack Also nanny software may be preset ppcross reference to Reddit discussion on same question href https www reddit com rest comments 5gkvba patch blocked by firewall rel noreferrer https www reddit com rest comments 5gkvba patch blocked by firewall Can you be more specific regarding the firewall name version PATCH method blocked by firewall rest firewall pHi anyone ever had situation that codePATCH code method over codeXHR code AJAX requests was blocked by firewall ppBasically we had situation where client was complaining that he couldn update stuff on our app We checked it everywhere in the world it was working we connected via codeVPN code several places ppThen they provided us remote desktop latest Windows latest chrome so we tried it for our self from their network and they were right All PATCH methods via codeAJAX code calls ended up with 405 but all codePUT POST DELETE GET code methods were fine We tried to track these PATCH requests in application and codeNginx code logs but it seems they never hit our server So conclusion is that their firewall newer let the request leave the building ppnormal ppre code Laptop PATCH gt Clients Firewal gt Load Balancer gt Nginx proxy gt Rails app 200 response code prepthis firewall case ppre code Laptop PATCH gt Clients Firewal 405 response code prepDue to lack of time to investigate this we just changed some of these problematic endpoints from PATCH to PUT and everything was working ppmy only explanation in that because PATCH is part of another later introduced RFC their firewall must be super old and not registering PATCH as valid method Their sys admin have no idea why this could be But one clue is that the application is EdTech and clients are Schools they not necessarily may have the latest technology on their networking stack Also nanny software may be preset ppcross reference to Reddit discussion on same question href https www reddit com rest comments 5gkvba patch blocked by firewall rel noreferrer https www reddit com rest comments 5gkvba patch blocked by firewall OK sounds like they helped as much as they could don know much about Squid but it does indicate the setup it quite old,0,NULL,NULL 43492,1517333,308410,Popular Question Notable Question Editor Popular Question Popular Question Teacher Yearling,NULL,NULL,0,NULL,NULL 43493,159537,857273,Announcer,NULL,NULL,0,NULL,NULL 43494,420181,277883,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43495,331469,1206656,NULL,NULL,NULL,0,NULL,NULL 43496,1521432,1347416,NULL,NULL,NULL,0,NULL,NULL 43497,276361,490845,NULL,NULL,NULL,0,NULL,NULL 43498,459294,1269041,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 43499,570782,518888,NULL,NULL,NULL,0,NULL,NULL 43500,1354839,1204887,NULL,NULL,NULL,0,NULL,NULL 43501,263741,481745,NULL,NULL,NULL,0,NULL,NULL 43502,32946,188732,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 43503,10713889,657331,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43504,438326,657331,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43505,38722,780764,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 43506,103901,1304401,NULL,NULL,NULL,0,NULL,NULL 43507,1341977,924654,NULL,NULL,NULL,0,NULL,NULL 43508,363823,7602,javascript Popular Question Popular Question Popular Question Investor Altruist Yearling Notable Question Notable Question Nice Answer Notable Question Caucus Yearling Announcer Yearling Announcer Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 43509,335162,669926,Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 43510,10795,244147,NULL,NULL,NULL,0,NULL,NULL 43511,53961,203284,NULL,NULL,NULL,0,NULL,NULL 43512,1121291,961805,NULL,NULL,NULL,0,NULL,NULL 43513,436092,1130121,Popular Question Notable Question Famous Question Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43514,814286,414545,NULL,NULL,NULL,0,NULL,NULL 43515,415298,1424981,NULL,NULL,NULL,0,NULL,NULL 43516,146460,277683,Nice Answer Famous Question Nice Question Famous Question Great Answer Famous Question Nice Question Famous Question Yearling Good Question Popular Question Nice Question Famous Question Notable Question Nice Question Nice Question Popular Question Notable Question Good Question Notable Question Notable Question Nice Question Good Question Notable Question Nice Answer Enlightened Nice Question Famous Question Popular Question Good Question Good Answer Nice Question Popular Question Announcer Popular Question Popular Question Good Answer Famous Question Notable Question Popular Question Nice Answer Nice Question Good Answer Nice Question Yearling Popular Question Famous Question Famous Question Famous Question Notable Question Nice Answer Nice Answer Nice Question Nice Question Popular Question Popular Question Favorite Question Popular Question Good Question Good Answer Notable Question Popular Question Popular Question Nice Question Good Question Good Answer Popular Question Nice Answer Popular Question Yearling Good Question Popular Question Notable Question Famous Question Famous Question Famous Question Good Answer Nice Question Popular Question Famous Question Good Question Famous Question Famous Question Popular Question Notable Question Good Question Guru Popular Question,NULL,Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre What the use case Are you looking for zip Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre see join seems to be pretty close then http reactivex io documentation operators join html,0,NULL,NULL 43517,488990,856348,Yearling Nice Answer Enlightened Yearling Popular Question Notable Question Good Answer Yearling Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Revival Popular Question Self-Learner Yearling Notable Question Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 43518,43023,1264389,Supporter Citizen Patrol Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 43519,336274,1081858,NULL,NULL,NULL,0,NULL,NULL 43520,261676,1118086,NULL,NULL,NULL,0,NULL,NULL 43521,2061352,1118086,NULL,NULL,NULL,0,NULL,NULL 43522,68775,103618,NULL,NULL,NULL,0,NULL,NULL 43523,167127,835098,Necromancer Yearling Nice Answer Revival Guru Notable Question Necromancer Yearling Good Answer Nice Answer Enlightened Famous Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 43524,765248,163068,Popular Question,NULL,NULL,0,NULL,NULL 43525,969480,688865,Yearling Nice Question Commentator Nice Question Caucus Popular Question Yearling Nice Question Popular Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 43526,221126,1968,Good Answer Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Popular Question Nice Answer Enlightened Guru Popular Question Nice Answer Enlightened Popular Question Guru Guru Good Answer Guru Nice Answer Enlightened Guru Guru python math Good Answer Notable Question Announcer Good Answer Good Answer Good Answer Popular Question Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Revival Notable Question Good Answer Nice Answer Great Answer Good Answer Good Answer Guru Guru Good Answer Guru Nice Answer Enlightened Great Answer Popular Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Nice Answer Good Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Nice Answer Guru Notable Question Nice Answer Yearling Guru Good Answer r Revival Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Enlightened Good Answer Nice Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Caucus Announcer Announcer Guru Nice Answer Enlightened Guru Guru Announcer Announcer Nice Answer Great Answer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Question Good Answer Nice Answer Nice Answer Necromancer Good Answer Great Answer Enlightened Nice Answer Popular Question Census Nice Answer Good Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Good Answer Popular Question Nice Question Nice Answer Announcer Nice Answer Great Answer Guru Great Answer Good Answer Great Answer Custodian Enlightened Popular Question Great Answer Good Answer Nice Answer Great Answer Nice Answer Good Question Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Good Answer Good Question Announcer Announcer Guru Announcer Nice Answer Enlightened Good Answer Announcer Caucus Popular Question Great Answer Good Answer Nice Answer Constituent Good Answer Guru Nice Answer Yearling Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Great Answer Announcer Nice Answer Enlightened Famous Question Good Answer Popular Question Necromancer Custodian Custodian Reviewer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Great Answer Good Answer Documentation User Revival Nice Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Notable Question Booster Good Answer Nice Question Good Answer Nice Answer Good Answer Notable Question Good Answer Good Answer Nice Answer Nice Answer Census Announcer Popular Question Nice Answer Enlightened Good Answer Announcer Announcer Guru Guru Nice Answer Good Answer for-loop Nice Answer Popular Question Good Answer Famous Question Great Answer Nice Answer Enlightened Caucus dplyr Great Answer Guru Constituent Nice Answer Guru Nice Answer Enlightened Announcer Good Answer Announcer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Question Good Answer Great Answer Great Answer Notable Question Nice Answer Announcer Good Answer Guru Announcer Great Answer Guru Good Answer Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Good Answer Great Answer functional-programming Necromancer Announcer Revival Nice Answer Necromancer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Revival Yearling Announcer Revival Good Answer Nice Answer Nice Answer Nice Answer Populist Good Answer Good Answer Popular Question Good Answer Good Answer Nice Answer Good Answer Great Answer Announcer Necromancer Nice Answer Good Answer Nice Answer Guru Nice Answer Good Answer Popular Question Notable Question Good Answer Nice Answer Great Answer Nice Answer Necromancer Announcer Announcer Nice Answer Notable Question Good Answer Nice Answer Enlightened Guru Guru,NULL,pIt not possible in ggplot2 because believe plots with separate scales not scales that are transformations of each other are fundamentally flawed Some problems pulli pThe are not invertible given point on the plot space you can not uniquely map it back to point in the data space lili pThey are relatively hard to read correctly compared to other options See href https www lri fr isenberg publications papers Isenberg 2011 ASO pdf rel noreferrer Study on Dual Scale Data Charts by Petra Isenberg Anastasia Bezerianos Pierre Dragicevic and Jean Daniel Fekete for details lili pThey are easily manipulated to mislead there is no unique way to specify the relative scales of the axes leaving them open to manipulation Two examples from the Junkcharts blog href http junkcharts typepad com junk charts 2006 06 illusion of suc html rel noreferrer one href http junkcharts typepad com junk charts 2006 05 the crossover html rel noreferrer two lili pThey are arbitrary why have only scales not or ten li ulpYou also might want to read Stephen Few lengthy discussion on the topic href http www perceptualedge com articles visual business intelligence dual scaled axes pdf rel noreferrer Dual Scaled Axes in Graphs Are They Ever the Best Solution No that’s nonsense I’m appalled at the number of upvotes this comment has received because it shows fundamental misunderstanding of API design every great API is opinionated That said agree that having dual axes can very rarely be useful pWow this problem is popular It based on misunderstanding in the codevertical align code property This excellent article explains it pp href http phrogz net CSS vertical align index html rel noreferrer Understanding codevertical align code or How Not To Vertically Center Content by Gavin Kistner pp strong href http howtocenterincss com rel noreferrer “How to center in CSS” strong is great web tool which helps to find the necessary CSS centering attributes for different situations phrpIn nutshell sub sup and to prevent link rot sup sub pulli strongInline elements strong and emonly em inline elements can be vertically aligned in their context via codevertical align middle code However the “context” isn’t the whole parent container height it’s the height of the text line they’re in href http jsfiddle net jBthq rel noreferrer jsfiddle example liliFor block elements vertical alignment is harder and strongly depends on the specific situation ulliIf the inner element can have strongfixed height strong you can make its position codeabsolute code and specify its codeheight code codemargin top code and codetop code position href http jsfiddle net YFncP rel noreferrer jsfiddle example liliIf the centered element strongconsists of single line strong emand em strongits parent height is fixed strong you can simply set the container’s codeline height code to fill its height This method is quite versatile in my experience href http jsfiddle net d4zGF rel noreferrer jsfiddle example lili… there are more such special cases li ul li ul “Understanding vertical align or How Not To Vertically Center Content” predates the latest standard rather its adoption by more than decade I’d add it but other answers already include it pWow this problem is popular It based on misunderstanding in the codevertical align code property This excellent article explains it pp href http phrogz net CSS vertical align index html rel noreferrer Understanding codevertical align code or How Not To Vertically Center Content by Gavin Kistner pp strong href http howtocenterincss com rel noreferrer “How to center in CSS” strong is great web tool which helps to find the necessary CSS centering attributes for different situations phrpIn nutshell sub sup and to prevent link rot sup sub pulli strongInline elements strong and emonly em inline elements can be vertically aligned in their context via codevertical align middle code However the “context” isn’t the whole parent container height it’s the height of the text line they’re in href http jsfiddle net jBthq rel noreferrer jsfiddle example liliFor block elements vertical alignment is harder and strongly depends on the specific situation ulliIf the inner element can have strongfixed height strong you can make its position codeabsolute code and specify its codeheight code codemargin top code and codetop code position href http jsfiddle net YFncP rel noreferrer jsfiddle example liliIf the centered element strongconsists of single line strong emand em strongits parent height is fixed strong you can simply set the container’s codeline height code to fill its height This method is quite versatile in my experience href http jsfiddle net d4zGF rel noreferrer jsfiddle example lili… there are more such special cases li ul li ul Sure does make it inline and give it vertical align middle or keep it block and set its margin top Your example is mixing block level and inline level alignment hints img isn’t special in any way it behaves like any other element here pYou are out of luck here The best way is to define your own codeassert code macro ppBasically it can look like this ppre code ifndef NDEBUG define ASSERT condition message do if condition std cerr lt lt Assertion condition failed in lt lt FILE lt lt line lt lt LINE lt lt lt lt message lt lt std endl std terminate while false else define ASSERT condition message do while false endif code prepThis will define the codeASSERT code macro only if the no debug macro codeNDEBUG code isn’t defined ppThen you’d use it like this ppre codeASSERT lt amp amp lt 10 was lt lt code prepWhich is bit simpler than your usage since you don’t need to stringify code was code and codex code explicitly this is done implicitly by the macro Correct although std terminate is probably more substitute of std abort though it by default calls the latter In my own programs usually just throw an unhandleable exception but that would make this answer longer without tangible benefit h2Use code code instead of code code h2pSubstituting by code code inserts null character into the text To get newline use code code When emsearching em for newline you’d still use code code however This asymmetry is due to the fact that code code and code code href http vim wikia com wiki Search and replace rel noreferrer do slightly different things pp code code matches an end of line newline whereas code code matches carriage return On the other hand in substitutions code code inserts null character whereas code code inserts newline more precisely it’s treated as the input kbd lt CR gt kbd Here’s small non interactive example to illustrate this using the Vim command line feature in other words you can copy and paste the following into terminal to run it codexxd code shows hexdump of the resulting file ppre codeecho bar gt test echo Before xxd test gt output txtvim test wq echo After xxd test gt gt output txtmore output txt code prepre codeBefore 0000000 6261 720a bar After 0000000 000a 720a code prepIn other words code code has inserted the byte 0x00 into the text code code has inserted the byte 0x0a I’m aware of the history of carriage return and line feed in different systems however it doesn’t explain the asymmetry between the meaning of and in searching and replacing pAnd the fastest that know of discounting memory mapped files ppre codestd string str static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code prepThis requires the additional header code lt sstream gt code for the string stream The codestatic cast code is necessary since codeoperator lt lt code returns plain old codeostream amp code but we know that in reality it’s codestringstream amp code so the cast is safe ppSplit into multiple lines moving the temporary into variable we get more readable code ppre codestd string slurp std ifstream amp in std stringstream sstr sstr lt lt in rdbuf return sstr str code prepOr once again in single line ppre codestd string slurp std ifstream amp in return static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code pre Good point no idea how this slipped under the radar for so long pAnd the fastest that know of discounting memory mapped files ppre codestd string str static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code prepThis requires the additional header code lt sstream gt code for the string stream The codestatic cast code is necessary since codeoperator lt lt code returns plain old codeostream amp code but we know that in reality it’s codestringstream amp code so the cast is safe ppSplit into multiple lines moving the temporary into variable we get more readable code ppre codestd string slurp std ifstream amp in std stringstream sstr sstr lt lt in rdbuf return sstr str code prepOr once again in single line ppre codestd string slurp std ifstream amp in return static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code pre You re confusing something Conciseness is indeed important in programming but the proper way to achieve it is to decompose the problem into parts and encapsulate those into independent units functions classes etc Adding functions doesn detract from conciseness quite the contrary pAnd the fastest that know of discounting memory mapped files ppre codestd string str static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code prepThis requires the additional header code lt sstream gt code for the string stream The codestatic cast code is necessary since codeoperator lt lt code returns plain old codeostream amp code but we know that in reality it’s codestringstream amp code so the cast is safe ppSplit into multiple lines moving the temporary into variable we get more readable code ppre codestd string slurp std ifstream amp in std stringstream sstr sstr lt lt in rdbuf return sstr str code prepOr once again in single line ppre codestd string slurp std ifstream amp in return static cast lt std stringstream const amp gt std stringstream lt lt in rdbuf str code pre Slow compared to what Reading into string stream is blazing fast The problem is that the string data cannot be moved out of the stream it needs to be copied out pYour suspicion is exactly right ppThe very simple solution is to evaluate the function in its parent’s context replace codeeval code with codeeval parent code ppre codemyFunc lt function tmp lt match call tmp lt quote toupper eval parent tmp code prepGenerally the function codetraceback code can help tremendously with debugging similar issues ppre code gt tester Error in as character cannot coerce type closure to vector of type character code prepOk but which “closure” function are we talking about ppre code gt traceback toupper var eval expr envir enclos eval tmp at 52 myFunc var at 51 tester code prepThe first line has the clue codetoupper var code In the context of codetester code codevar code refers to the function closure codestats var code which is found because its package is attached Oh and changing the environment of eval works as well In fact that’s exactly what eval parent does it’s equivalent to eval tmp envir parent frame Don’t be misled by the fact that this is the default value of eval ’s parameter envir anyway specifying an argument value and using its default can produce different values because parameter defaults are evaluated inside the function whereas arguments you pass into function are evaluated outside of it This is super confusing Are 11 thread local variables automatically static 11 thread local storage pIs there difference between these two code segments ppre codevoid thread local vector lt int gt clear use as temporary variable code prepand ppre codevoid static thread local vector lt int gt clear use as temporary variable code prepBackstory originally had STATIC vector for holding some intermediate values it gets cleared every time enter the function and single threaded program want to turn the program into multithreading one so somehow have to get rid of this static modifier My idea is to turn every static into thread local and not worry about anything else Can this approach backfire That’s not the point either of me or of the OP We’re not talking about static vs static thread local but rather about auto vs thread local using the pre 11 meaning of auto automatic storage,1,NULL,Issue with match call pI wrote function that uses codematch call code and it works when call the function directly however when the function is called within another function it breaks believe it has to do with how codematch call code handles environments but can figure it out Here is reproducable example ppre codetester lt function var lt helloworld myFunc var myFunc lt function tmp lt match call tmp lt quote toupper eval tmp tester errormyFunc helloworld works fine code prepI believe that when codemyFunc code is called within codetester code it can find codevar code because it exists in the isolated environment of the codetester code function ppAny ideas on how to get codemyFunc code to work inside codetester code would be appreciated ve tried changing the environment for codeeval code and codematch call code but to no avail pYour suspicion is exactly right ppThe very simple solution is to evaluate the function in its parent’s context replace codeeval code with codeeval parent code ppre codemyFunc lt function tmp lt match call tmp lt quote toupper eval parent tmp code prepGenerally the function codetraceback code can help tremendously with debugging similar issues ppre code gt tester Error in as character cannot coerce type closure to vector of type character code prepOk but which “closure” function are we talking about ppre code gt traceback toupper var eval expr envir enclos eval tmp at 52 myFunc var at 51 tester code prepThe first line has the clue codetoupper var code In the context of codetester code codevar code refers to the function closure codestats var code which is found because its package is attached 43527,235317,773528,NULL,NULL,NULL,0,NULL,NULL 43528,1298086,1473454,Revival Organizer Yearling Excavator Caucus Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 43529,202740,1473454,Revival Organizer Yearling Excavator Caucus Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 43530,219227,180324,Notable Question,NULL,NULL,0,NULL,NULL 43531,201720,1126742,NULL,NULL,NULL,0,NULL,NULL 43532,527753,1031319,Nice Question Critic Famous Question Yearling Good Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 43533,109365,987212,NULL,NULL,NULL,0,NULL,NULL 43534,631287,364590,Guru Yearling Caucus Constituent Nice Answer Yearling Custodian Nice Answer Caucus Caucus Yearling Custodian Revival,NULL,NULL,0,NULL,NULL 43535,104601,1099743,Nice Question Yearling,NULL,NULL,0,NULL,NULL 43536,5940664,1099743,Nice Question Yearling,NULL,NULL,0,NULL,NULL 43537,640629,222692,Citizen Patrol Caucus Caucus,NULL,NULL,0,NULL,NULL 43538,1462182,1420953,Teacher Supporter,NULL,NULL,0,NULL,NULL 43539,139270,1229318,NULL,NULL,NULL,0,NULL,NULL 43540,4494612,1229318,NULL,NULL,NULL,0,NULL,NULL 43541,610645,615396,NULL,NULL,NULL,0,NULL,NULL 43542,421463,1003142,interface Nice Answer lambda Nice Answer inheritance Nice Answer spring Nice Answer Enlightened Nice Answer jsf Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Caucus android Guru Constituent Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Documentation User Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Popular Question Good Answer list Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43543,341998,360543,Informed Student,NULL,NULL,0,NULL,NULL 43544,287902,13702,Good Answer Yearling Nice Answer Census Yearling Guru Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 43545,1582684,1181253,NULL,NULL,NULL,0,NULL,NULL 43546,11259100,555487,NULL,NULL,NULL,0,NULL,NULL 43547,45449,1346233,Supporter Student Editor,NULL,NULL,0,NULL,NULL 43548,511651,1219230,Nice Answer Necromancer Yearling Nice Answer Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 43549,1141282,684118,NULL,NULL,NULL,0,NULL,NULL 43550,696860,1457189,Supporter,NULL,NULL,0,NULL,NULL 43551,31329,523750,Notable Question Teacher Curious,NULL,NULL,0,NULL,NULL 43552,561974,1028055,Yearling Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 43553,268555,62372,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43554,538005,1470282,NULL,NULL,NULL,0,NULL,NULL 43555,73599,750103,Citizen Patrol Excavator Tumbleweed Scholar Yearling Custodian Custodian Organizer,NULL,NULL,0,NULL,NULL 43556,338274,179852,NULL,NULL,NULL,0,NULL,NULL 43557,201092,829162,NULL,NULL,NULL,0,NULL,NULL 43558,69372,479158,NULL,NULL,NULL,0,NULL,NULL 43559,302464,953365,Census,NULL,NULL,0,NULL,NULL 43560,375009,253704,Yearling Good Question Necromancer Announcer Revival Announcer Popular Question Yearling Notable Question Necromancer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 43561,810988,1052345,Tumbleweed,NULL,NULL,0,NULL,NULL 43562,33053,1067068,Editor Great Answer Caucus Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 43563,749696,1037440,Supporter,NULL,NULL,0,NULL,NULL 43564,185146,1503616,Informed Autobiographer Teacher Supporter Editor,NULL,NULL,0,NULL,NULL 43565,699581,1094316,Curious Popular Question Popular Question Notable Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 43566,44661,455187,Nice Answer Necromancer Yearling Commentator Yearling Student Citizen Patrol Autobiographer Critic Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 43567,473440,777962,NULL,NULL,NULL,0,NULL,NULL 43568,1277174,1523479,NULL,NULL,NULL,0,NULL,NULL 43569,1277257,1136960,NULL,NULL,NULL,0,NULL,NULL 43570,10137,1354637,NULL,NULL,NULL,0,NULL,NULL 43571,61435,81071,Nice Answer Yearling Notable Question Good Answer Nice Answer Notable Question Nice Answer Nice Answer Caucus Revival Yearling Nice Answer Necromancer Nice Answer Necromancer Good Answer Electorate Revival Nice Answer Caucus Good Answer Revival Documentation User Necromancer Great Answer Census Good Answer Nice Answer Enlightened Yearling Populist,NULL,pIf gnupg2 and gpg agent are used be sure to set the environment variable codeGPG TTY code ppre codeexport GPG TTY tty code prepSee href https www gnupg org it documentation manuals gnupg Common Problems html rel noreferrer GPG’s documentation about common problems Sure add it to profile pIf gnupg2 and gpg agent are used be sure to set the environment variable codeGPG TTY code ppre codeexport GPG TTY tty code prepSee href https www gnupg org it documentation manuals gnupg Common Problems html rel noreferrer GPG’s documentation about common problems Add it to your profile,1,NULL,gpg failed to sign the data fatal failed to write commit object Git 10 git github gpg signature pI followed few articles over the href https coderwall com euwpig better git log rel noreferrer pretty attributes on href https github com blog 2242 git 10 has been released rel noreferrer Git 10 release note Going through which upgraded the git to 10 and made changes to global code gitconfig code resulting as follows ppre code filter lfs clean git lfs clean smudge git lfs smudge required true user name xyz email abc def com signingkey AAAAAAA core excludesfile Users xyz gitignore global editor subl wait difftool sourcetree cmd opendiff LOCAL REMOTE path mergetool sourcetree cmd Applications SourceTree app Contents Resources opendiff sh LOCAL REMOTE ancestor BASE merge MERGED trustExitCode true alias lg log graph pretty format Cred Creset yellow Creset Cgreen cr bold blue lt an gt Creset abbrev commit date relative color diff old red strike new green italic code prepBut now that try to sign my commits using ppre codegit commit message code prepI get to see the following error pblockquote pYou need passphrase to unlock the secret key for puser XYZ Digitally Signed p2048 bit RSA key ID AAAAAAAA created 2016 07 01 perror gpg failed to sign the data fatal failed to write commit object blockquotep strong emNote em strong can still commit changes using codegit commit message code pp strong emIs there way to overcome the same Or any change required in codegpg code configs to get along with the upgradation of git em strong phrp strong emUpdate em strong ppAlso seeking further usefulness following href https stackoverflow com questions 10161198 is there way to autosign commits in git with gpg key Is there way to autosign commits in Git with GPG key ve already configured the key using ppre codegit config global user signingkey ED5CDE14 with my key git config global commit gpgsign true code prepand quite obviously getting the same error anyway pIf gnupg2 and gpg agent are used be sure to set the environment variable codeGPG TTY code ppre codeexport GPG TTY tty code prepSee href https www gnupg org it documentation manuals gnupg Common Problems html rel noreferrer GPG’s documentation about common problems 43572,83433,80434,Necromancer Nice Answer Yearling Nice Answer Necromancer Necromancer Revival Famous Question c# Nice Answer Necromancer Necromancer Announcer Good Answer Necromancer Necromancer Good Answer Necromancer Populist Necromancer Necromancer Necromancer asp.net Nice Answer Nice Answer Nice Answer Yearling Announcer Revival Nice Answer Revival Nice Answer Revival Necromancer Necromancer Nice Answer Custodian Nice Answer Necromancer Yearling Good Answer Nice Answer Necromancer Necromancer Guru Necromancer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 43573,821341,67768,Famous Question Teacher Yearling,NULL,NULL,0,NULL,NULL 43574,237665,620519,NULL,NULL,NULL,0,NULL,NULL 43575,365951,160120,Popular Question Yearling Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 43576,163561,871756,NULL,NULL,NULL,0,NULL,NULL 43577,2202449,354903,NULL,NULL,NULL,0,NULL,NULL 43578,688070,354903,NULL,NULL,NULL,0,NULL,NULL 43579,9887,260085,Notable Question Yearling,NULL,NULL,0,NULL,NULL 43580,1510,930905,NULL,NULL,NULL,0,NULL,NULL 43581,4769060,930905,NULL,NULL,NULL,0,NULL,NULL 43582,38871,724253,NULL,NULL,NULL,0,NULL,NULL 43583,172034,720090,Yearling Necromancer,NULL,NULL,0,NULL,NULL 43584,129680,1122696,NULL,NULL,NULL,0,NULL,NULL 43585,229069,873381,Popular Question Critic,NULL,NULL,0,NULL,NULL 43586,270277,465652,Popular Question,NULL,NULL,0,NULL,NULL 43587,1896384,1222474,NULL,NULL,NULL,0,NULL,NULL 43588,916614,1222474,NULL,NULL,NULL,0,NULL,NULL 43589,26091,1222474,NULL,NULL,NULL,0,NULL,NULL 43590,1969428,667618,Yearling Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 43591,27105,667618,Yearling Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 43592,31916,731360,NULL,NULL,NULL,0,NULL,NULL 43593,633820,1396508,Popular Question,NULL,NULL,0,NULL,NULL 43594,139557,1321940,Notable Question Nice Answer Yearling Announcer Popular Question Popular Question Enthusiast Guru Yearling Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 43595,166395,578703,NULL,NULL,NULL,0,NULL,NULL 43596,1356252,396742,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 43597,126282,813612,Caucus Caucus Announcer,NULL,NULL,0,NULL,NULL 43598,554351,1465094,NULL,NULL,NULL,0,NULL,NULL 43599,69881,1226801,NULL,NULL,NULL,0,NULL,NULL 43600,164061,438843,Notable Question Announcer Notable Question Populist Popular Question Nice Question Nice Question Yearling Famous Question Revival Good Answer Notable Question Yearling Good Question Popular Question Caucus Tag Editor Good Question Favorite Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 43601,5047433,438843,Notable Question Announcer Notable Question Populist Popular Question Nice Question Nice Question Yearling Famous Question Revival Good Answer Notable Question Yearling Good Question Popular Question Caucus Tag Editor Good Question Favorite Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 43602,3209486,1438438,NULL,NULL,NULL,0,NULL,NULL 43603,181998,1438438,NULL,NULL,NULL,0,NULL,NULL 43604,216989,873390,Caucus Yearling Revival Promoter Notable Question Benefactor Enthusiast Caucus Revival Caucus,NULL,NULL,0,NULL,NULL 43605,147433,824666,NULL,NULL,NULL,0,NULL,NULL 43606,1064399,950669,Nice Answer Nice Answer Yearling Popular Question Famous Question Nice Answer php Nice Answer Enlightened Yearling Nice Question Documentation User Nice Question Popular Question Taxonomist Yearling,NULL,NULL,0,NULL,NULL 43607,141668,886304,NULL,NULL,NULL,0,NULL,NULL 43608,84611,816652,NULL,NULL,NULL,0,NULL,NULL 43609,347058,370662,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 43610,192415,937523,Scholar Supporter Teacher,NULL,NULL,0,NULL,NULL 43611,1180147,1326083,NULL,NULL,NULL,0,NULL,NULL 43612,1519603,1132855,NULL,NULL,NULL,0,NULL,NULL 43613,1926537,1132855,NULL,NULL,NULL,0,NULL,NULL 43614,39328,945912,NULL,NULL,NULL,0,NULL,NULL 43615,409875,172334,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43616,226990,992143,NULL,NULL,NULL,0,NULL,NULL 43617,529113,557634,Popular Question,NULL,NULL,0,NULL,NULL 43618,6550725,557634,Popular Question,NULL,NULL,0,NULL,NULL 43619,512127,399317,Good Answer Notable Question Popular Question Nice Answer Enlightened Notable Question Announcer Good Answer Nice Answer Notable Question Notable Question Nice Question Great Question Nice Answer Good Answer Famous Question Nice Question Good Answer Popular Question Guru Nice Answer Enlightened Stellar Question opengl Yearling Nice Answer Notable Question Notable Question Popular Question Great Answer java Nice Answer Enlightened Nice Answer Popular Question Nice Answer Nice Answer Enlightened Good Question html Good Question Nice Answer Nice Answer Nice Answer Good Answer Popular Question Famous Question arrays Nice Answer Enlightened Good Answer Nice Answer Enlightened Generalist string Announcer Good Answer Announcer Popular Question Notable Question Good Answer Nice Answer Yearling Caucus Good Question Nice Answer Guru Great Answer Announcer Great Question Announcer Good Answer Good Answer Notable Question Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Good Answer Yearling Guru Good Answer Good Answer Necromancer Famous Question Popular Question Nice Question Stellar Question Nice Answer,NULL,pI use the following method ppre codefunction htmlDecode input var document createElement div innerHTML input handle case of empty input return childNodes length childNodes nodeValue htmlDecode amp lt img src myimage jpg amp gt returns lt img src myimage jpg gt code prepBasically create DOM element programmatically assign the encoded HTML to its innerHTML and retrieve the nodeValue from the text node created on the innerHTML insertion Since it just creates an element but never adds it no site HTML is modified ppIt will work cross browser including older browsers and accept all the href http www w3 org TR html4 sgml entities html rel noreferrer HTML Character Entities ppEDIT The old version of this code did not work on IE with blank inputs as evidenced href http jsfiddle net HsNDj rel noreferrer here on jsFiddle view in IE The version above works with all inputs ppUPDATE appears this doesn work with large string and it also introduces strongsecurity vulnerability strong see comments would it be possible for you to either update the answer so that it does not propose unsafe code or delete it so that the next answer becomes the top answer hope not sounding rude like to minimize the risk that potentially risky code gets copy pasted by someone without reading the fine print find it scary to link to this thread as it is now blockquote h1 Proper way to declare custom exceptions in modern Python h1 blockquotepThis is fine unless your exception is really type of more specific exception ppre codeclass MyException Exception pass code prepOr better maybe perfect instead of codepass code give docstring ppre codeclass MyException Exception Raise for my specific kind of exception code preh2Subclassing Exception Subclasses h2pFrom the href https docs python org library exceptions html exceptions BaseException rel noreferrer docs pblockquote codeException code pAll built in non system exiting exceptions are derived from this class All user defined exceptions should also be derived from this class blockquotepThat means that strongif strong your exception is type of more specific exception subclass that exception instead of the generic codeException code and the result will be that you still derive from codeException code as the docs recommend Also you can at least provide docstring and not be forced to use the codepass code keyword ppre codeclass MyAppValueError ValueError Raise when my specific value is wrong code prepSet attributes you create yourself with custom code init code Avoid passing dict as positional argument future users of your code will thank you If you use the deprecated message attribute assigning it yourself will avoid codeDeprecationWarning code ppre codeclass MyAppValueError ValueError Raise when specific subset of values in context of app is wrong def init self message foo args self message message without this you may get DeprecationWarning Special attribute you desire with your Error perhaps the value that caused the error self foo foo allow users initialize misc arguments as any other builtin Error super MyAppValueError self init message foo args code prepThere really no need to write your own code str code or code repr code The builtin ones are very nice and your strongcooperative inheritance strong ensures that you use it ph2Critique of the top answer h2blockquote emMaybe missed the question but why not em blockquotepre codeclass MyException Exception pass code prepAgain the problem with the above is that in order to catch it you ll either have to name it specifically importing it if created elsewhere or catch Exception but you re probably not prepared to handle all types of Exceptions and you should only catch exceptions you are prepared to handle Similar criticism to the below but additionally that not the way to initialize via codesuper code and you ll get codeDeprecationWarning code if you access the message attribute pblockquote emEdit to override something or pass extra args do this em blockquotepre codeclass ValidationError Exception def init self message errors Call the base class constructor with the parameters it needs super ValidationError self init message Now for your custom code self errors errors code preblockquote emThat way you could pass dict of error messages to the second param and get to it later with errors em blockquotepIt also requires exactly two arguments to be passed in aside from the codeself code No more no less That an interesting constraint that future users may not appreciate pp strongTo be direct it violates href https en wikipedia org wiki Liskov substitution principle rel noreferrer Liskov substitutability strong ppI ll demonstrate both errors ppre code gt gt gt ValidationError foo bar baz messageTraceback most recent call last File lt pyshell 10 gt line in lt module gt ValidationError foo bar baz messageTypeError init takes exactly arguments given gt gt gt ValidationError foo bar message main DeprecationWarning BaseException message has been deprecated as of Python foo code prepCompared to ppre code gt gt gt MyAppValueError foo FOO bar message foo code pre Hello from 2018 BaseException message is gone in Python so the critique only holds for old versions right,0,NULL,NULL 43620,159433,785491,Announcer,NULL,NULL,0,NULL,NULL 43621,286309,877706,Commentator Curious Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 43622,6951809,877706,Commentator Curious Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 43623,141826,958572,NULL,NULL,NULL,0,NULL,NULL 43624,62739,1406193,Notable Question,NULL,NULL,0,NULL,NULL 43625,89386,277548,NULL,NULL,NULL,0,NULL,NULL 43626,231837,731302,Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Caucus Nice Answer Promoter Nice Question Revival Necromancer,NULL,NULL,0,NULL,NULL 43627,64157,210808,NULL,NULL,NULL,0,NULL,NULL 43628,6268,1409348,NULL,NULL,NULL,0,NULL,NULL 43629,697959,332557,Popular Question,NULL,NULL,0,NULL,NULL 43630,29422,802194,Informed Autobiographer,NULL,NULL,0,NULL,NULL 43631,1020784,146272,Good Question Nice Question Informed Nice Question Famous Question Nice Question Yearling Famous Question Popular Question Revival Great Question Popular Question Announcer Yearling Notable Question Yearling Good Question Favorite Question,NULL,NULL,0,NULL,NULL 43632,3807,687313,Yearling Famous Question Yearling Good Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 43633,534164,440677,Custodian Yearling Famous Question Favorite Question Nice Answer Nice Answer Enlightened Great Question Yearling Famous Question Good Question Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43634,404397,217088,Commentator Revival,NULL,NULL,0,NULL,NULL 43635,60720,1061016,NULL,NULL,NULL,0,NULL,NULL 43636,124648,1229313,Yearling Yearling,NULL,NULL,0,NULL,NULL 43637,554010,105137,Notable Question Popular Question Popular Question Yearling Custodian Notable Question Announcer Great Answer Announcer Yearling Announcer Notable Question Inquisitive Nice Question Notable Question Popular Question Necromancer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 43638,510299,1275025,Notable Question Yearling Popular Question Famous Question Notable Question Documentation User Famous Question,NULL,NULL,0,NULL,NULL 43639,445781,191683,Popular Question Custodian Yearling Revival Caucus Constituent Necromancer Guru Nice Question,NULL,NULL,0,NULL,NULL 43640,155101,1555628,Supporter,NULL,NULL,0,NULL,NULL 43641,106445,464224,NULL,NULL,NULL,0,NULL,NULL 43642,1054708,556322,NULL,NULL,NULL,0,NULL,NULL 43643,23157,1293556,NULL,NULL,NULL,0,NULL,NULL 43644,960803,1381312,Nice Question Notable Question Notable Question Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 43645,3076,158913,Custodian Guru Yearling Necromancer Enthusiast Nice Answer Caucus Yearling Census Necromancer Great Answer Necromancer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 43646,6001644,454810,Editor Student Scholar,NULL,NULL,0,NULL,NULL 43647,875398,595469,NULL,NULL,NULL,0,NULL,NULL 43648,603977,1089348,NULL,NULL,NULL,0,NULL,NULL 43649,142345,37980,Popular Question Yearling Popular Question Nice Question Popular Question Enlightened Popular Question Popular Question Documentation User Yearling Notable Question Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 43650,161914,887181,NULL,NULL,NULL,0,NULL,NULL 43651,347722,237197,Nice Answer,NULL,NULL,0,NULL,NULL 43652,240840,1032197,NULL,NULL,NULL,0,NULL,NULL 43653,470144,579025,Yearling Necromancer Yearling Good Answer Good Answer Excavator Yearling Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43654,432212,1326100,NULL,NULL,NULL,0,NULL,NULL 43655,275455,989314,Popular Question Promoter Benefactor Nice Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43656,130683,342648,NULL,NULL,NULL,0,NULL,NULL 43657,311236,440169,Famous Question Yearling Custodian Citizen Patrol Good Answer Yearling Custodian Custodian Critic Yearling,NULL,NULL,0,NULL,NULL 43658,516076,271455,Popular Question,NULL,NULL,0,NULL,NULL 43659,7485636,862727,NULL,NULL,NULL,0,NULL,NULL 43660,281908,862727,NULL,NULL,NULL,0,NULL,NULL 43661,198908,862598,NULL,NULL,NULL,0,NULL,NULL 43662,2041391,954036,NULL,NULL,NULL,0,NULL,NULL 43663,672838,601878,NULL,NULL,NULL,0,NULL,NULL 43664,304038,563145,Good Answer Yearling Autobiographer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 43665,71519,447934,Notable Question Necromancer Famous Question Nice Answer Yearling Taxonomist Good Answer Notable Question Nice Answer Popular Question Popular Question Census Notable Question Great Answer Good Answer Necromancer Yearling Good Question Census Yearling,NULL,NULL,0,NULL,NULL 43666,148958,111426,Announcer Guru Custodian Proofreader Yearling Notable Question Nice Question Popular Question Notable Question Famous Question Yearling Good Question Notable Question Yearling Famous Question Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 43667,75674,911852,Student Notable Question,NULL,NULL,0,NULL,NULL 43668,1553833,1321384,NULL,NULL,NULL,0,NULL,NULL 43669,2300729,1321384,NULL,NULL,NULL,0,NULL,NULL 43670,158324,602817,Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 43671,199034,75845,Yearling Guru Notable Question Yearling Revival Nice Answer Great Answer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 43672,7863919,865575,Curious,NULL,NULL,0,NULL,NULL 43673,193220,632147,NULL,NULL,NULL,0,NULL,NULL 43674,2003194,723643,Yearling Mortarboard Yearling Yearling,NULL,NULL,0,NULL,NULL 43675,104201,723643,Yearling Mortarboard Yearling Yearling,NULL,NULL,0,NULL,NULL 43676,9500406,873954,Yearling,NULL,NULL,0,NULL,NULL 43677,347478,873954,Yearling,NULL,NULL,0,NULL,NULL 43678,486177,1236204,NULL,NULL,NULL,0,NULL,NULL 43679,605770,608778,Critic,NULL,NULL,0,NULL,NULL 43680,493376,972021,NULL,NULL,NULL,0,NULL,NULL 43681,361010,383019,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 43682,54079,503029,NULL,NULL,NULL,0,NULL,NULL 43683,36357,548446,Famous Question Famous Question Nice Question Notable Question Notable Question Popular Question Nice Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43684,62099,300927,NULL,NULL,NULL,0,NULL,NULL 43685,137586,1185655,NULL,NULL,NULL,0,NULL,NULL 43686,48249,991575,NULL,NULL,NULL,0,NULL,NULL 43687,46880,181475,NULL,NULL,NULL,0,NULL,NULL 43688,397540,450449,Famous Question Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Nice Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 43689,649319,1021445,Yearling,NULL,NULL,0,NULL,NULL 43690,441321,623683,Nice Answer Yearling Announcer Curious Caucus Nice Answer Autobiographer Yearling Nice Answer Popular Question Caucus Necromancer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 43691,176870,950613,Curious Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43692,198622,1290951,Scholar Supporter,NULL,NULL,0,NULL,NULL 43693,1254299,206350,Yearling Nice Question Popular Question Caucus Caucus Great Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 43694,428357,904646,NULL,NULL,NULL,0,NULL,NULL 43695,70534,273566,Guru Yearling Guru Nice Answer Enlightened Good Answer Guru Popular Question Famous Question Nice Answer Necromancer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Good Answer Populist Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Necromancer Announcer Good Answer Good Answer Yearling Announcer Nice Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,pTo leave completion untouched try using ppre codecnoreabbrev code prep it will replace codeW code in command line with codew code but only if it is neither followed nor preceded by word character so code lt CR gt code will be replaced with code lt CR gt code but code Write code won Note that this affects any commands that match including ones which you might not expect for example the command code saveas code will be replaced by code saveas code so be careful with this ph3Update h3pHere is how would write it emnow em ppre codecnoreabbrev lt expr gt getcmdtype is amp amp getcmdline is code prepAs function ppre codefun SetupCommandAlias from to exec cnoreabbrev lt expr gt from getcmdtype is amp amp getcmdline is from to from endfuncall SetupCommandAlias code prepThis checks that the command type is code code and the command is codeW code so it safer than just codecnoreabbrev code To verify that it gets expanded not to get it expanded Enter expands abbreviations just as good as space just you are unable to check or react if expansion is unwanted pTo leave completion untouched try using ppre codecnoreabbrev code prep it will replace codeW code in command line with codew code but only if it is neither followed nor preceded by word character so code lt CR gt code will be replaced with code lt CR gt code but code Write code won Note that this affects any commands that match including ones which you might not expect for example the command code saveas code will be replaced by code saveas code so be careful with this ph3Update h3pHere is how would write it emnow em ppre codecnoreabbrev lt expr gt getcmdtype is amp amp getcmdline is code prepAs function ppre codefun SetupCommandAlias from to exec cnoreabbrev lt expr gt from getcmdtype is amp amp getcmdline is from to from endfuncall SetupCommandAlias code prepThis checks that the command type is code code and the command is codeW code so it safer than just codecnoreabbrev code What is Alias” If use cnoreabbrev expr getcmdtype is getcmdline is echo echo get when typing qEnter as expected If use call SetupCommandAlias echo with function from my answer get as expected If you got buggy command somewhere not from this answer why are you asking here pTo leave completion untouched try using ppre codecnoreabbrev code prep it will replace codeW code in command line with codew code but only if it is neither followed nor preceded by word character so code lt CR gt code will be replaced with code lt CR gt code but code Write code won Note that this affects any commands that match including ones which you might not expect for example the command code saveas code will be replaced by code saveas code so be careful with this ph3Update h3pHere is how would write it emnow em ppre codecnoreabbrev lt expr gt getcmdtype is amp amp getcmdline is code prepAs function ppre codefun SetupCommandAlias from to exec cnoreabbrev lt expr gt from getcmdtype is amp amp getcmdline is from to from endfuncall SetupCommandAlias code prepThis checks that the command type is code code and the command is codeW code so it safer than just codecnoreabbrev code cmap CR CR is not interferring with such aliases What is is cnoremap Check what is the difference in the help pre codeaugroup BWCCreateDir autocmd autocmd BufWritePre if expand lt afile gt amp amp isdirectory expand execute silent mkdir shellescape expand redraw endifaugroup END code prepNote the conditions codeexpand lt afile gt code will prevent vim from creating directories for files like codeftp code and code isdirectory code will prevent expensive mkdir call pp strongUpdate strong sligtly better solution that also checks for non empty buftype and uses codemkdir code ppre codefunction MkNonExDir file buf if empty getbufvar buf amp buftype amp amp file let dir fnamemodify file if isdirectory dir call mkdir dir endif endifendfunctionaugroup BWCCreateDir autocmd autocmd BufWritePre call MkNonExDir expand lt afile gt expand lt abuf gt augroup END code pre How did you use it If “put it into the vimrc” did you restart Vim afterwards,0,NULL,NULL 43696,900771,1291448,NULL,NULL,NULL,0,NULL,NULL 43697,277358,1183675,NULL,NULL,NULL,0,NULL,NULL 43698,870506,1574,Notable Question Nice Question Notable Question Notable Question Good Question Good Question Nice Question Famous Question Good Question Notable Question Yearling Great Question Guru Good Answer Famous Question Famous Question Popular Question Notable Question Great Question Notable Question Yearling Popular Question Notable Question Great Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 43699,4957,1092293,NULL,NULL,NULL,0,NULL,NULL 43700,2944995,1092293,NULL,NULL,NULL,0,NULL,NULL 43701,698885,1092293,NULL,NULL,NULL,0,NULL,NULL 43702,537107,1506237,NULL,NULL,NULL,0,NULL,NULL 43703,78813,206314,NULL,NULL,NULL,0,NULL,NULL 43704,39495,238459,Popular Question Good Answer Yearling Guru Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 43705,2790760,102139,Nice Answer Caucus Notable Question Notable Question Popular Question Civic Duty Yearling Good Answer Custodian Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43706,1616,1241560,NULL,NULL,NULL,0,NULL,NULL 43707,46044,1387526,NULL,NULL,NULL,0,NULL,NULL 43708,1209958,3531,Custodian,NULL,NULL,0,NULL,NULL 43709,88187,1149628,Popular Question,NULL,NULL,0,NULL,NULL 43710,401647,438768,NULL,NULL,NULL,0,NULL,NULL 43711,239494,76235,Yearling Informed Good Question Popular Question Yearling Popular Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 43712,51870,790893,NULL,NULL,NULL,0,NULL,NULL 43713,311004,693633,NULL,NULL,NULL,0,NULL,NULL 43714,655301,1391668,Notable Question,NULL,NULL,0,NULL,NULL 43715,1549241,1163757,NULL,NULL,NULL,0,NULL,NULL 43716,555874,1163757,NULL,NULL,NULL,0,NULL,NULL 43717,27654,364446,Great Answer Necromancer Popular Question Yearling Announcer Guru Popular Question Good Answer Tumbleweed Promoter Benefactor Good Answer Pundit Nice Question Popular Question Announcer Yearling Announcer Notable Question Yearling Good Answer,NULL,pHere is very efficient uses CoreFoundation way of doing it Taken from kissxml ppre code NSString trimWhitespace NSMutableString mStr self mutableCopy CFStringTrimWhitespace CFMutableStringRef mStr NSString result mStr copy mStr release return result autorelease code pre If you don mind trimming trailing space too then this is the perfect answer pThe simplest and cleanest way of fixing this issue is to partially mock the NSBundle class in your unit tests to return code NSBundle bundleForClass self class code when you call code NSBundle mainBundle code ppYou may put this in your code setup code method so that it is mocked for your entire test class ppre codestatic id mockNSBundle MyTests void setUp super setUp mockNSBundle OCMockObject niceMockForClass NSBundle class NSBundle correctMainBundle NSBundle bundleForClass self class mockNSBundle stub classMethod andReturn correctMainBundle mainBundle code prepNice and clean pp href http drekka ghost io the state of xcode unit testing Source Well in Swift you would not use OCMock anyway Instead you would need to refactor your code to use code injection and then in your test class you would subclass NSBundle and override the function,0,NULL,NULL 43718,1398009,1457445,NULL,NULL,NULL,0,NULL,NULL 43719,1599092,1008421,Notable Question Popular Question Yearling Good Question Nice Answer Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 43720,2257884,567375,Good Question,NULL,NULL,0,NULL,NULL 43721,21893,1237354,NULL,NULL,NULL,0,NULL,NULL 43722,428351,1364745,Citizen Patrol Civic Duty Custodian Custodian Yearling Caucus Popular Question Census Yearling Notable Question aerospike Excavator Caucus Yearling Tag Editor Custodian,NULL,NULL,0,NULL,NULL 43723,153370,100335,Yearling Good Question Notable Question Good Question Favorite Question Popular Question Great Question Stellar Question Notable Question Notable Question Nice Question Popular Question Yearling Custodian Great Question Popular Question Revival Yearling Popular Question Good Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43724,303075,1021242,Revival Necromancer Yearling Necromancer Nice Answer Nice Answer Yearling Custodian,NULL,strongUPD strong codepackage data code accepts dict in format code package list of globs code so to make it work one should specify shell globs relative to package dir not the file paths relative to the distribution root pp codedata files code has different meaning and in general one should avoid using this parameter ppWith setuptools you only need codeinclude package data True code but data files should be under version control system known to setuptools by default it recognizes only CVS and SVN install codesetuptools git code or codesetuptools hg code if you use git or hg phrpwith setuptools you can pp in MANIFEST im ppre code include my module data code prep in setup py ppre code setup include package data True code pre this is strange include package data works for me in scenario like yours What are the versions of pip and setuptools that you use Maybe it is not git https but some other kind of remote pip should clone d1 the repo to temporary folder and run setup py there Check if running from local folder pip install will work properly,0,NULL,NULL 43725,309824,99692,Nice Answer Nice Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Revival Notable Question Nice Answer Necromancer Caucus Constituent Great Answer Good Answer Yearling Nice Answer Caucus Popular Question Good Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Census Caucus Constituent Yearling Nice Answer Enlightened Nice Question Guru,NULL,NULL,0,NULL,NULL 43726,374331,173421,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43727,197041,1198894,NULL,NULL,NULL,0,NULL,NULL 43728,258777,1524094,Informed,NULL,NULL,0,NULL,NULL 43729,60446,98358,NULL,NULL,NULL,0,NULL,NULL 43730,39434,322324,Great Answer,NULL,NULL,0,NULL,NULL 43731,75527,1287000,Enthusiast Revival Nice Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 43732,289803,409814,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43733,74919,69150,Scholar Yearling Commentator Caucus Yearling,NULL,NULL,0,NULL,NULL 43734,21977,446386,Popular Question Famous Question Nice Question Good Answer Good Answer Nice Answer Good Question Yearling Announcer Popular Question Nice Question Yearling Popular Question Good Question Guru Notable Question c++ Yearling,NULL,NULL,0,NULL,NULL 43735,431160,1033343,Informed Teacher Editor Nice Answer Supporter Critic Yearling Citizen Patrol Tumbleweed Yearling Commentator Explainer Yearling Student Caucus Caucus Custodian Caucus,NULL,NULL,0,NULL,NULL 43736,881641,799032,NULL,NULL,NULL,0,NULL,NULL 43737,146599,433875,Scholar Necromancer Yearling Custodian Yearling Nice Answer Census Yearling,NULL,NULL,0,NULL,NULL 43738,387094,1345937,NULL,NULL,NULL,0,NULL,NULL 43739,4042,974182,Yearling,NULL,NULL,0,NULL,NULL 43740,7009,132019,Necromancer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 43741,15623,228856,NULL,NULL,NULL,0,NULL,NULL 43742,93669,311413,Nice Answer Good Answer Notable Question Yearling Nice Question Notable Question Good Answer Necromancer Famous Question python Yearling Famous Question Famous Question Nice Answer Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 43743,1233971,311413,Nice Answer Good Answer Notable Question Yearling Nice Question Notable Question Good Answer Necromancer Famous Question python Yearling Famous Question Famous Question Nice Answer Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 43744,7403039,434586,NULL,NULL,NULL,0,NULL,NULL 43745,916156,434586,NULL,NULL,NULL,0,NULL,NULL 43746,164563,402271,NULL,NULL,NULL,0,NULL,NULL 43747,233488,270712,Enthusiast Curious Announcer Caucus Yearling Necromancer Caucus Necromancer Custodian Nice Answer Announcer Yearling Self-Learner Nice Answer Caucus Popular Question Custodian Yearling Announcer,NULL,Create custom namespace in phpunit test for MediaWiki extension namespaces phpunit mediawiki extensions pIn phpunit tests for MediaWiki extension am having trouble creating custom namespace ppre codeclass NameSpaceTestCase extends MediaWikiTestCase public function testCustomNameSpace ns 4000 this gt setMwGlobals wgExtraNamespaces ns gt custom namespace global wgExtraNamespaces wgExtraNamespaces ns custom namespace this gt insertPage in custom namespace This is page in custom namespace ns this gt assertTrue MWNamespace exists ns The name space with id ns should exist code prepThe assertion that the namespace exists in the last line of code fails ppWhen uncomment the currently commented lines and comment the call to codesetMwGlobals code instead it still fails ppHow can programmatically create namespace in MediaWiki Thanks that is the solution Use mergeMwGlobalArrayValue followed by MWNamespace getCanonicalNamespaces true Do you want to add this as an answer Then can mark it as solved Create custom namespace in phpunit test for MediaWiki extension namespaces phpunit mediawiki extensions pIn phpunit tests for MediaWiki extension am having trouble creating custom namespace ppre codeclass NameSpaceTestCase extends MediaWikiTestCase public function testCustomNameSpace ns 4000 this gt setMwGlobals wgExtraNamespaces ns gt custom namespace global wgExtraNamespaces wgExtraNamespaces ns custom namespace this gt insertPage in custom namespace This is page in custom namespace ns this gt assertTrue MWNamespace exists ns The name space with id ns should exist code prepThe assertion that the namespace exists in the last line of code fails ppWhen uncomment the currently commented lines and comment the call to codesetMwGlobals code instead it still fails ppHow can programmatically create namespace in MediaWiki While the namespace is created all right am now facing an issue that this insertPage page in custom namespace page content ns does not create valid page When do print page true get mPrefixedText protected Special Badtitle NS4000 In custom namespace and the unit tests fail The extension code works fine with namespaces in production so it must be something inherent to the unit tests Create custom namespace in phpunit test for MediaWiki extension namespaces phpunit mediawiki extensions pIn phpunit tests for MediaWiki extension am having trouble creating custom namespace ppre codeclass NameSpaceTestCase extends MediaWikiTestCase public function testCustomNameSpace ns 4000 this gt setMwGlobals wgExtraNamespaces ns gt custom namespace global wgExtraNamespaces wgExtraNamespaces ns custom namespace this gt insertPage in custom namespace This is page in custom namespace ns this gt assertTrue MWNamespace exists ns The name space with id ns should exist code prepThe assertion that the namespace exists in the last line of code fails ppWhen uncomment the currently commented lines and comment the call to codesetMwGlobals code instead it still fails ppHow can programmatically create namespace in MediaWiki Thanks so much that did the trick All tests pass now,1,Create custom namespace in phpunit test for MediaWiki extension namespaces phpunit mediawiki extensions pIn phpunit tests for MediaWiki extension am having trouble creating custom namespace ppre codeclass NameSpaceTestCase extends MediaWikiTestCase public function testCustomNameSpace ns 4000 this gt setMwGlobals wgExtraNamespaces ns gt custom namespace global wgExtraNamespaces wgExtraNamespaces ns custom namespace this gt insertPage in custom namespace This is page in custom namespace ns this gt assertTrue MWNamespace exists ns The name space with id ns should exist code prepThe assertion that the namespace exists in the last line of code fails ppWhen uncomment the currently commented lines and comment the call to codesetMwGlobals code instead it still fails ppHow can programmatically create namespace in MediaWiki,NULL 43748,335989,637740,Famous Question Yearling Popular Question Yearling Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 43749,2463698,637740,Famous Question Yearling Popular Question Yearling Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 43750,135966,1478180,Good Answer Yearling,NULL,NULL,0,NULL,NULL 43751,280289,1234172,Teacher,NULL,NULL,0,NULL,NULL 43752,1348215,1232201,NULL,NULL,NULL,0,NULL,NULL 43753,932626,506143,NULL,NULL,NULL,0,NULL,NULL 43754,73180,692550,Yearling,NULL,NULL,0,NULL,NULL 43755,586192,1352436,Popular Question Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 43756,210500,1235759,NULL,NULL,NULL,0,NULL,NULL 43757,867204,1058747,NULL,NULL,NULL,0,NULL,NULL 43758,1517839,765789,NULL,NULL,NULL,0,NULL,NULL 43759,143356,9306,NULL,NULL,NULL,0,NULL,NULL 43760,259674,1132351,NULL,NULL,NULL,0,NULL,NULL 43761,122623,240609,Good Answer Yearling Announcer Caucus Notable Question Census,NULL,NULL,0,NULL,NULL 43762,510651,779608,Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 43763,545525,84535,Yearling Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43764,62402,228837,Yearling,NULL,NULL,0,NULL,NULL 43765,184950,468093,Disciplined Excavator,NULL,NULL,0,NULL,NULL 43766,9415,738327,Promoter Benefactor,NULL,NULL,0,NULL,NULL 43767,38232,461201,Famous Question Notable Question Popular Question Critic Famous Question Popular Question Notable Question Yearling Enthusiast Nice Question Popular Question,NULL,NULL,0,NULL,NULL 43768,284125,1102173,NULL,NULL,NULL,0,NULL,NULL 43769,209504,642670,Yearling Self-Learner Notable Question Popular Question Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Notable Question Civic Duty Organizer javascript Yearling Famous Question html Nice Answer Enlightened Nice Question Nice Answer jquery,NULL,NULL,0,NULL,NULL 43770,474466,241062,NULL,NULL,NULL,0,NULL,NULL 43771,1463273,437907,Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Caucus Constituent Yearling Caucus Constituent Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43772,357973,437907,Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Caucus Constituent Yearling Caucus Constituent Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43773,115161,343661,NULL,NULL,NULL,0,NULL,NULL 43774,111426,263264,Yearling Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 43775,10426,669329,Yearling Curious Revival Custodian Excavator Necromancer Informed Nice Answer Yearling Good Answer Popular Question Autobiographer Good Answer Notable Question Populist Custodian Census Organizer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 43776,1791355,191490,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 43777,18298,1144209,NULL,NULL,NULL,0,NULL,NULL 43778,426844,1532974,Notable Question Self-Learner Announcer,NULL,NULL,0,NULL,NULL 43779,719948,873073,Informed Yearling Caucus Good Answer Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 43780,130201,124341,Scholar Student Self-Learner,NULL,NULL,0,NULL,NULL 43781,1139973,309772,NULL,NULL,NULL,0,NULL,NULL 43782,538809,865677,Supporter Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43783,25151,5181,Yearling Nice Question Yearling Nice Answer Custodian Yearling Necromancer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 43784,2889612,1393084,NULL,NULL,NULL,0,NULL,NULL 43785,2222640,1451691,NULL,NULL,NULL,0,NULL,NULL 43786,321915,607490,NULL,NULL,NULL,0,NULL,NULL 43787,4115108,736,Revival Good Answer Notable Question Famous Question Generalist Necromancer Nice Answer Yearling Notable Question Good Answer Nice Question Notable Question Notable Question Nice Answer Nice Answer Yearling Notable Question Popular Question Great Answer Census Nice Question Nice Answer Benefactor Yearling Good Answer Great Question Good Answer,NULL,NULL,0,NULL,NULL 43788,1517480,1350171,NULL,NULL,NULL,0,NULL,NULL 43789,4951981,838803,NULL,NULL,NULL,0,NULL,NULL 43790,520688,1308614,NULL,NULL,NULL,0,NULL,NULL 43791,9189,421223,Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Yearling Populist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Good Answer Informed Guru Nice Answer Good Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer symfony Guru Nice Answer Enlightened Guru Nice Answer Nice Answer Yearling Guru Curious Nice Answer Good Answer Good Answer Nice Answer regex Guru Good Answer Nice Answer Nice Answer Enlightened string Nice Answer Good Answer Guru Great Answer Good Answer Nice Answer Nice Answer Good Answer Yearling Great Answer Great Answer Great Answer,NULL,NULL,0,NULL,NULL 43792,343664,1219097,NULL,NULL,NULL,0,NULL,NULL 43793,18293,511691,NULL,NULL,NULL,0,NULL,NULL 43794,340519,401921,NULL,NULL,NULL,0,NULL,NULL 43795,74231,53497,Informed,NULL,NULL,0,NULL,NULL 43796,577056,53497,Informed,NULL,NULL,0,NULL,NULL 43797,839,592934,NULL,NULL,NULL,0,NULL,NULL 43798,131853,77212,Populist Yearling Yearling Custodian Yearling Famous Question,NULL,NULL,0,NULL,NULL 43799,499302,562867,NULL,NULL,NULL,0,NULL,NULL 43800,54871,1306662,Notable Question Teacher Organizer Autobiographer Editor Citizen Patrol Commentator Excavator Critic Revival Yearling Yearling Civic Duty Quorum Caucus Documentation User Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 43801,2320373,1103272,NULL,NULL,NULL,0,NULL,NULL 43802,689581,998765,NULL,NULL,NULL,0,NULL,NULL 43803,521425,185374,Yearling Yearling Announcer Custodian,NULL,NULL,0,NULL,NULL 43804,927541,1035421,Custodian Editor Supporter,NULL,NULL,0,NULL,NULL 43805,561041,1526030,NULL,NULL,NULL,0,NULL,NULL 43806,69516,668139,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 43807,3031756,870210,NULL,NULL,NULL,0,NULL,NULL 43808,1097224,873239,Yearling,NULL,NULL,0,NULL,NULL 43809,206662,1218876,Nice Answer Yearling Nice Answer Enlightened uiview Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Announcer Guru Custodian Good Answer macos Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer,NULL,NULL,0,NULL,NULL 43810,185642,98028,Yearling Yearling Student Census Yearling Announcer,NULL,NULL,0,NULL,NULL 43811,1159204,20110,Tumbleweed Yearling Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43812,1090157,674155,NULL,NULL,NULL,0,NULL,NULL 43813,170366,874549,NULL,NULL,NULL,0,NULL,NULL 43814,198444,1272042,NULL,NULL,NULL,0,NULL,NULL 43815,156905,470092,NULL,NULL,NULL,0,NULL,NULL 43816,325307,952368,NULL,NULL,NULL,0,NULL,NULL 43817,8300,5716,Popular Question Nice Question Good Answer Nice Question Good Answer Yearling Famous Question Announcer Announcer Custodian Citizen Patrol Notable Question Popular Question Yearling Excavator Favorite Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 43818,324249,352255,Yearling Student Necromancer,NULL,NULL,0,NULL,NULL 43819,59516,219584,Popular Question Revival Nice Question Popular Question Popular Question Yearling Nice Question Documentation User Good Answer Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 43820,1034239,479576,Notable Question,NULL,NULL,0,NULL,NULL 43821,1264224,746447,Self-Learner Yearling Popular Question Popular Question Notable Question Nice Answer Enlightened Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43822,292955,321791,NULL,NULL,NULL,0,NULL,NULL 43823,798680,978068,Autobiographer,NULL,NULL,0,NULL,NULL 43824,239130,937272,Caucus Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 43825,295411,1504567,Scholar Supporter Revival Nice Answer,NULL,NULL,0,NULL,NULL 43826,14880,319266,Yearling Custodian Reviewer Necromancer Yearling Nice Answer Great Answer Announcer Revival Disciplined Custodian Announcer Good Answer Citizen Patrol Announcer Yearling Announcer Great Answer,NULL,NULL,0,NULL,NULL 43827,258038,101893,NULL,NULL,NULL,0,NULL,NULL 43828,632738,716390,Yearling Good Answer Populist Yearling Curious Yearling,NULL,NULL,0,NULL,NULL 43829,4574,1112135,NULL,NULL,NULL,0,NULL,NULL 43830,742900,1082604,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 43831,154708,725542,Editor Revival Civic Duty Necromancer Yearling Nice Answer Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43832,22812,210377,Popular Question,NULL,NULL,0,NULL,NULL 43833,6599,42586,Good Answer Good Answer Nice Answer Famous Question Popular Question Good Answer Nice Answer Populist Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 43834,142892,139547,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 43835,290214,22237,Nice Question Favorite Question Nice Answer Nice Answer Nice Question Mortarboard Popular Question Good Answer Nice Answer Nice Answer Notable Question Notable Question Good Question Nice Answer Yearling Necromancer Necromancer Popular Question Good Answer Nice Answer Enlightened Necromancer Custodian Famous Question Popular Question Custodian ruby-on-rails Popular Question Yearling Documentation User Great Question Great Answer Nice Answer Census Great Question Notable Question Nice Answer Good Answer Popular Question Revival Yearling Necromancer Popular Question,NULL,pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec you would need to uninstall rake 11 pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec Rails expects Rake to have method called last comment where in the codebase this is do not remember do not know if Rails also calls last comment But you could checkout the rails codebase switch to the Rails branch and grep for last comment in Rakefile and task pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec Does you stacktrace for the error tell you where it is called pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec rspec or greater MySQL error key specification without key length mysql sql mysql error 1170 pI have table with primary key that is varchar 255 Some cases have arisen where 255 characters isn enough tried changing the field to text but get the following error ppre codeBLOB TEXT column message id used in key specification without key length code prephow can fix this ppedit should also point out this table has composite primary key with multiple columns In my case for some reason had TEXT type for an email column instead of VARCHAR pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre It looks like the removal of last comment got reverted https github com ruby rake commit 3948349a82a2522f1d8293093164ef395bee542d and will now be removed in rake 12 instead,1,NoMethodError undefined method last comment after upgrading to rake 11 ruby on rails ruby on rails rake pWhen running any coderake code task get pblockquote pNoMethodError undefined method last comment for h1 h1 blockquotepThis was after codebundle update code which pulled in the new version of rake version code11 code ppre code grep rake Gemfile lock rake rake gt rake 11 rake bundle update bundle exec rake db drop any rake task code preblockquote pNoMethodError undefined method last comment for lt Rake Application 0x007ff0cf37be38 blockquotep strongVersions strong pulliRails 11 liliRake 11 li ul,NoMethodError undefined method last comment after upgrading to rake 11 ruby on rails ruby on rails rake pWhen running any coderake code task get pblockquote pNoMethodError undefined method last comment for h1 h1 blockquotepThis was after codebundle update code which pulled in the new version of rake version code11 code ppre code grep rake Gemfile lock rake rake gt rake 11 rake bundle update bundle exec rake db drop any rake task code preblockquote pNoMethodError undefined method last comment for lt Rake Application 0x007ff0cf37be38 blockquotep strongVersions strong pulliRails 11 liliRake 11 li ul pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec 43836,905524,446954,Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43837,575718,192273,Nice Answer Custodian Nice Question,NULL,NULL,0,NULL,NULL 43838,27962,1012769,NULL,NULL,NULL,0,NULL,NULL 43839,3685610,464338,NULL,NULL,NULL,0,NULL,NULL 43840,36361,464338,NULL,NULL,NULL,0,NULL,NULL 43841,70762,841911,NULL,NULL,NULL,0,NULL,NULL 43842,51765,782727,Good Answer Nice Answer Nice Answer Enlightened Yearling symfony Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 43843,3081471,560450,Notable Question Popular Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 43844,290028,560450,Notable Question Popular Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 43845,463204,458922,Good Answer Great Answer Yearling Great Answer Good Answer Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 43846,74722,1346719,Good Answer Yearling,NULL,NULL,0,NULL,NULL 43847,1152584,1259750,Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 43848,7144501,1259750,Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 43849,424598,1072204,NULL,NULL,NULL,0,NULL,NULL 43850,93207,14439,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 43851,434358,224041,NULL,NULL,NULL,0,NULL,NULL 43852,2494,1175,Famous Question Nice Answer Nice Answer Guru Good Answer Famous Question Great Answer Good Answer Great Answer Nice Answer Guru Guru Necromancer Yearling Famous Question Custodian Great Question Stellar Question Popular Question Favorite Question Caucus Famous Question Famous Question Good Answer Nice Answer Famous Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Question Popular Question Popular Question Nice Question Good Answer Caucus Notable Question Constituent Nice Question Yearling Good Answer Nice Question Notable Question Good Question Good Answer Popular Question Nice Answer Census Necromancer Nice Question Good Question Caucus Constituent Custodian Good Answer Notable Question Guru Famous Question Good Question Yearling Notable Question Popular Question Good Answer Nice Answer Enlightened Notable Question Favorite Question,NULL,pI solved this by adding category to NSMutableArray pp strongEdit strong Removed unnecessary method thanks to answer by Ladd pp strongEdit strong Changed code arc4random nElements code to codearc4random uniform nElements code thanks to answer by Gregory Goltsov and comments by miho and blahdiblah pp strongEdit strong Loop improvement thanks to comment by Ron pp strongEdit strong Added check that array is not empty thanks to comment by Mahesh Agrawal ppre code NSMutableArray Shuffling if TARGET OS IPHONE import lt UIKit UIKit gt else include lt Cocoa Cocoa gt endif This category enhances NSMutableArray by providing methods to randomly shuffle the elements NSMutableArray Shuffling void shuffle NSMutableArray Shuffling import NSMutableArray Shuffling NSMutableArray Shuffling void shuffle NSUInteger count self count if count lt return for NSUInteger lt count NSInteger remainingCount count NSInteger exchangeIndex arc4random uniform int32 remainingCount self exchangeObjectAtIndex withObjectAtIndex exchangeIndex code pre Thanks added the check for count being less than which would indeed cause problems don think an additional check for the exchange index is needed because it can possibly be out of bounds due to how it is initialized NullPointerException when using DatePicker setMaxDate in DatePickerDialog android datepickerdialog pI am using DatePickerDialog and am trying to set the minimum and maximum dates such that the user can only select date within the previous 24 hours or next 24 hours ppHere is the code Note that it only tries to set the min max range if running on Android or higher ppre codeprivate void showDatePickerDialog DatePickerDialog OnDateSetListener listener new DatePickerDialog OnDateSetListener public void onDateSet DatePicker view int year int monthOfYear int dayOfMonth calendar set Calendar YEAR year calendar set Calendar MONTH monthOfYear calendar set Calendar DAY OF MONTH dayOfMonth onCalendarChanged DatePickerDialog dialog new DatePickerDialog this listener calendar get Calendar YEAR calendar get Calendar MONTH calendar get Calendar DAY OF MONTH setDatePickerDialogRange dialog dialog show NewApi private void setDatePickerDialogRange DatePickerDialog dialog if Build VERSION SDK INT gt Build VERSION CODES HONEYCOMB DatePicker picker dialog getDatePicker long oneDayMilliseconds 24 60 60 1000 long nowMilliseconds new Date getTime long minDate nowMilliseconds oneDayMilliseconds long maxDate nowMilliseconds oneDayMilliseconds picker setMinDate minDate picker setMaxDate maxDate code prepThis works fine when running on device but on device Galaxy Tab get this exception ppre code11 14 07 58 08 917 AndroidRuntime 16611 FATAL EXCEPTION main11 14 07 58 08 917 AndroidRuntime 16611 java lang NullPointerException11 14 07 58 08 917 AndroidRuntime 16611 at android widget CalendarView onScroll CalendarView java 910 11 14 07 58 08 917 AndroidRuntime 16611 at android widget CalendarView access 600 CalendarView java 74 11 14 07 58 08 917 AndroidRuntime 16611 at android widget CalendarView onScroll CalendarView java 771 11 14 07 58 08 917 AndroidRuntime 16611 at android widget AbsListView invokeOnItemScrollListener AbsListView java 1391 11 14 07 58 08 917 AndroidRuntime 16611 at android widget ListView layoutChildren ListView java 1705 11 14 07 58 08 917 AndroidRuntime 16611 at android widget AbsListView onLayout AbsListView java 2040 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout setChildFrame LinearLayout java 1644 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout layoutVertical LinearLayout java 1502 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout onLayout LinearLayout java 1415 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout setChildFrame LinearLayout java 1644 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout layoutHorizontal LinearLayout java 1633 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout onLayout LinearLayout java 1417 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout setChildFrame LinearLayout java 1644 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout layoutVertical LinearLayout java 1502 11 14 07 58 08 917 AndroidRuntime 16611 at android widget LinearLayout onLayout LinearLayout java 1415 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android widget FrameLayout onLayout FrameLayout java 431 11 14 07 58 08 917 AndroidRuntime 16611 at android view View layout View java 11330 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewGroup layout ViewGroup java 4235 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewRootImpl performTraversals ViewRootImpl java 1548 11 14 07 58 08 917 AndroidRuntime 16611 at android view ViewRootImpl handleMessage ViewRootImpl java 2505 11 14 07 58 08 917 AndroidRuntime 16611 at android os Handler dispatchMessage Handler java 99 11 14 07 58 08 917 AndroidRuntime 16611 at android os Looper loop Looper java 137 11 14 07 58 08 917 AndroidRuntime 16611 at android app ActivityThread main ActivityThread java 4514 11 14 07 58 08 917 AndroidRuntime 16611 at java lang reflect Method invokeNative Native Method 11 14 07 58 08 917 AndroidRuntime 16611 at java lang reflect Method invoke Method java 511 11 14 07 58 08 917 AndroidRuntime 16611 at com android internal os ZygoteInit MethodAndArgsCaller run ZygoteInit java 790 11 14 07 58 08 917 AndroidRuntime 16611 at com android internal os ZygoteInit main ZygoteInit java 557 11 14 07 58 08 917 AndroidRuntime 16611 at dalvik system NativeStart main Native Method code prepThis happens immediately The DatePickerDialog is never displayed ppIf comment out the codesetMaxDate code line then it works fine In this case the minimum date is respected ppIf change it to codesetMaxDate nowMilliseconds code still get the NullPointerException No never found fix Just decided not to call setMaxDate,0,NULL,NULL 43853,37244,168401,Popular Question,NULL,NULL,0,NULL,NULL 43854,1167630,717628,Notable Question Nice Question Promoter,NULL,NULL,0,NULL,NULL 43855,346582,485253,Yearling Notable Question,NULL,NULL,0,NULL,NULL 43856,296042,18565,Notable Question Good Answer Custodian Nice Answer Nice Answer Nice Answer Great Answer Necromancer Guru Yearling Great Answer Nice Answer Caucus Excavator Constituent sql Nice Answer Necromancer Nice Answer Good Question Caucus Popular Question Sportsmanship Yearling Documentation User Tumbleweed Nice Answer Good Question Census Necromancer Caucus Constituent Nice Answer Benefactor Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 43857,171510,325196,NULL,NULL,NULL,0,NULL,NULL 43858,75810,126128,Revival Yearling Announcer Nice Answer Enlightened Yearling Nice Answer Good Answer Yearling,NULL,pThe fact that you cannot construct the TestTree dynamically through resources is very much intentional As write href https ro che info articles 2013 12 29 tasty resources rel noreferrer here pblockquote pOne of the major problems with tests receiving the resource value directly as in ppre codewithResource IO gt gt IO gt gt TestTree gt TestTree code pre was that the resource could be used not only in the tests themselves but to emconstruct em the tests which is bad wrong for number of reasons For instance we don want to create the resources when we re not running tests but we still want to know which tests we have blockquotepSo resources shouldn be used to construct the test tree they are designed for different use case ppHow then can you construct test tree dynamically The trick is to realize that your codemain code can be more than just codedefaultMain code Indeed it can use the full power of IO to construct test tree and emthen em call codedefaultMain code with that dynamically constructed test tree ppSo ppre codemain do testTree lt constructTestTree defaultMain testTree code prepYou can see real world example of this in href https github com haskell suite haskell src exts blob master tests Runner hs L20 L23 rel noreferrer haskell src ext testsuite Is there way to do this with command line options like to do something very similar but need to give the caller command line path to files option If write my own command line parser it conflicts with tasty but can see way to require access tasty Options as the test tree is being constructed in IO,0,NULL,NULL 43859,1367483,1047107,NULL,NULL,NULL,0,NULL,NULL 43860,894972,345632,Yearling,NULL,NULL,0,NULL,NULL 43861,886392,1044173,Supporter Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 43862,4220471,1044173,Supporter Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 43863,258108,532996,NULL,NULL,NULL,0,NULL,NULL 43864,2501347,229266,Popular Question Famous Question Notable Question Famous Question Nice Question Yearling Notable Question Popular Question Nice Question Famous Question Notable Question Yearling Famous Question Notable Question Popular Question Popular Question Good Question,NULL,NULL,1,What thread is unSubscribeOn called Should we call it java android rx java rx android pWhat thread is unsubscribeOn defaulted to when we do not specify it but still specify the thread for subscribeOn Are we required to specify the thread that we want un subscription to happen on even when it is the same thread as the one used in subscribeOn ppOr are the bottom two snippets doing the same for un subscription ppOption ppre codemSubscription add myAppProvider getSomeData subscribeOn Schedulers io observeOn AndroidSchedulers mainThread unsubscribeOn Schedulers io subscribe data gt handleData data throwable gt handleError throwable code prepOption ppre codemSubscription add myAppProvider getSomeData subscribeOn Schedulers io observeOn AndroidSchedulers mainThread subscribe data gt handleData data throwable gt handleError throwable code prepI did look at the href http reactivex io documentation operators subscribeon html rel noreferrer Rx Java docs but they only explain subscribeOn but nothing about unSubscribeOn,NULL 43865,2299542,990208,Popular Question Famous Question Nice Question Revival Famous Question Yearling Nice Answer Notable Question Good Question Notable Question Famous Question Yearling Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 43866,389954,258729,Caucus,NULL,NULL,0,NULL,NULL 43867,596826,1271043,NULL,NULL,NULL,0,NULL,NULL 43868,162795,1317334,Popular Question,NULL,NULL,0,NULL,NULL 43869,151259,714470,NULL,NULL,NULL,0,NULL,NULL 43870,561637,1109785,Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 43871,299472,1153175,Notable Question,NULL,NULL,0,NULL,NULL 43872,26368,1019135,NULL,NULL,NULL,0,NULL,NULL 43873,327165,157213,NULL,NULL,NULL,0,NULL,NULL 43874,1041400,1311354,Student Nice Answer Yearling Enlightened Yearling Good Answer Custodian Informed Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 43875,1031460,105962,Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 43876,590478,912333,NULL,NULL,NULL,0,NULL,NULL 43877,1146202,407383,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 43878,1231459,874394,Informed Popular Question,NULL,NULL,0,NULL,NULL 43879,116493,461868,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 43880,440132,759044,Yearling Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43881,221204,56835,NULL,NULL,NULL,0,NULL,NULL 43882,280941,646355,NULL,NULL,NULL,0,NULL,NULL 43883,351678,1087931,NULL,NULL,NULL,0,NULL,NULL 43884,21500,909355,NULL,NULL,NULL,0,NULL,NULL 43885,127140,543626,NULL,NULL,NULL,0,NULL,NULL 43886,246324,246481,NULL,NULL,NULL,0,NULL,NULL 43887,972839,837336,NULL,NULL,NULL,0,NULL,NULL 43888,1036772,249777,NULL,NULL,NULL,0,NULL,NULL 43889,71135,261857,Famous Question Excavator Caucus Tag Editor,NULL,NULL,0,NULL,NULL 43890,375615,165158,NULL,NULL,NULL,0,NULL,NULL 43891,814913,684795,Necromancer Critic,NULL,NULL,0,NULL,NULL 43892,223103,684795,Necromancer Critic,NULL,NULL,0,NULL,NULL 43893,3111,3608,Guru Nice Question Famous Question Necromancer Yearling Caucus Good Answer Custodian Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 43894,49136,696095,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 43895,13565,903087,Yearling,NULL,NULL,0,NULL,NULL 43896,304555,1353119,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 43897,84396,494630,Famous Question,NULL,NULL,0,NULL,NULL 43898,160111,429762,NULL,NULL,NULL,0,NULL,NULL 43899,599346,1045362,Yearling Enthusiast Promoter Critic Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 43900,902610,509425,NULL,NULL,NULL,0,NULL,NULL 43901,410193,117278,Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43902,207119,245577,NULL,NULL,NULL,0,NULL,NULL 43903,490450,465600,NULL,NULL,NULL,0,NULL,NULL 43904,292957,852765,Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 43905,19656,751866,Yearling Custodian Good Answer Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 43906,35642,515239,NULL,NULL,NULL,0,NULL,NULL 43907,857665,1417293,Popular Question Teacher Yearling Commentator Critic Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 43908,85572,545370,NULL,NULL,NULL,0,NULL,NULL 43909,74776,508813,NULL,NULL,NULL,0,NULL,NULL 43910,254492,226434,Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 43911,104169,841743,Yearling Custodian Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 43912,359886,225550,Tumbleweed,NULL,NULL,0,NULL,NULL 43913,220062,185065,Yearling Good Answer,NULL,NULL,0,NULL,NULL 43914,579235,1527328,Notable Question,NULL,NULL,0,NULL,NULL 43915,17358,4243,Nice Answer Famous Question Good Question Populist Nice Answer Enlightened Famous Question Good Answer Informed Promoter Benefactor Custodian Yearling Nice Answer Guru Guru bazel Good Answer Good Answer Nice Answer Enlightened Enlightened Necromancer Organizer Caucus Notable Question Nice Answer Yearling Revival Popular Question Necromancer Nice Answer Enlightened Great Answer Good Question Necromancer Revival Nice Answer Yearling Necromancer Nice Answer Enlightened Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 43916,41737,802618,ruby-on-rails Nice Answer Mortarboard Good Answer Guru javascript Yearling Necromancer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer postgresql Steward Guru Revival git Nice Answer Enlightened Yearling Announcer Nice Answer Enlightened,NULL,How does Scrum work when you have multiple projects project management agile scrum pI fairly well read in the benefits and processes of Scrum get the ideas on the backlog burndown charts iterations using user stories and other various concepts of the Scrum framework ppWith that said work for web development firm that manages multiple projects at one time with six team members that make up the production team ppHow does Scrum work with having multiple projects Do you still just schedule an iteration for single project in certain amount of time and the entire team works on it and then you move on to the next project with new iteration when that iteration is completed Or is there an agile way in managing multiple projects with their own iterations with only one team at the same time voting to close this question as off topic because it is about organizational practices not programming,0,NULL,NULL 43917,414924,632375,Nice Question Yearling Notable Question Notable Question Notable Question Popular Question Famous Question Yearling Promoter Benefactor Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 43918,286717,259106,Guru Nice Answer Yearling Good Answer Investor Nice Answer Nice Answer Famous Question Yearling Nice Question Guru Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 43919,212815,548915,Notable Question Nice Question Popular Question Notable Question Nice Question Famous Question Good Question Self-Learner Yearling Famous Question Popular Question Good Question Caucus Civic Duty Favorite Question Yearling Caucus Constituent Great Question,NULL,NULL,0,NULL,NULL 43920,618492,584634,Yearling Popular Question Popular Question Nice Answer Popular Question Good Question Yearling Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 43921,961161,24046,Guru Yearling Famous Question Nice Question Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question java Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 43922,1824368,446332,NULL,NULL,NULL,0,NULL,NULL 43923,145096,683631,Student,NULL,NULL,0,NULL,NULL 43924,227687,15745,Informed Popular Question Notable Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 43925,122715,398908,Yearling Caucus,NULL,NULL,0,NULL,NULL 43926,304847,162694,Notable Question Popular Question Popular Question Yearling Good Question Caucus Good Answer Popular Question Nice Question Notable Question Popular Question Yearling Announcer Good Question Famous Question Yearling Notable Question,NULL,pThe codeViewBag code property is just wrapper that exposes the codeViewData code collection as property of type codedynamic code so that it can be accessed dynamically from using property set syntax You could use implementation of code code based on DLR to do that see href https stackoverflow com questions 5057672 looking for robust general op dynamic implementation this discussion at SO but it is easier to define code code operator that adds data directly to codeViewDataDictionary code which is exposed by the codeViewData code property ppre codelet lt viewData ViewDataDictionary name string value viewData Add name box value code prepThen you should be able to write ppre codex ViewData Message lt Hello code pre Could you elaborate on how knows where to split the operator It seems weird to have and using it as,0,NULL,NULL 43927,747031,1101016,NULL,NULL,NULL,0,NULL,NULL 43928,128103,659448,Informed,NULL,NULL,0,NULL,NULL 43929,229544,299390,NULL,NULL,NULL,0,NULL,NULL 43930,312220,348439,NULL,NULL,NULL,0,NULL,NULL 43931,665707,258565,NULL,NULL,NULL,0,NULL,NULL 43932,168734,956049,NULL,NULL,NULL,0,NULL,NULL 43933,65572,992401,Organizer Nice Answer Yearling Disciplined Yearling Good Answer django Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43934,320139,350080,Famous Question Famous Question Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Nice Question Popular Question Nice Question Famous Question Nice Question Notable Question Popular Question Famous Question Good Question Popular Question Popular Question Notable Question Notable Question Caucus Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Good Question Notable Question Notable Question Notable Question Famous Question Popular Question Yearling Nice Question Famous Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Custodian Notable Question Nice Question Notable Question Notable Question Famous Question Yearling Popular Question Nice Question Nice Question Notable Question Nice Question Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Famous Question Famous Question,NULL,NULL,1,Can pass variable to required file node js express pIn express trying to move my minification to requierd file ppapp js ppre codevar app express var minify require minify js code prepIn that file try to set my template engine ppminify js ppre codevar app express app engine html mustacheExpress code prepLater when try to use to use the rendering engine in app js get the error that no template engine is set It works if run it all in the same file think the problem is that declare the app variable twice How can pass the app variable into minify js,NULL 43935,238569,115707,NULL,NULL,NULL,0,NULL,NULL 43936,522617,3287,Good Answer Reviewer Popular Question Nice Answer Yearling Great Answer Guru Announcer Yearling Documentation User php Yearling,NULL,pYour best bet is the magic method href http php net manual en language oop5 overloading php language oop5 overloading methods rel noreferrer call see below for example ppre code lt phpclass test function construct private function test1 echo In test1 PHP EOL private function test2 echo test2 PHP EOL protected function test3 return test3 PHP EOL public function call method arguments if method exists this method this gt test1 return call user func array array this method arguments new test gt test2 echo gt test3 Output In test1 test2 In test1 test3 code prepPlease notice that codetest2 code and codetest3 code are not visible in the context where they are called due to codeprotected code and codeprivate code If the methods are public the above example will fail pp codetest1 code does not have to be declared codeprivate code pp href https ideone com C7Ydxq rel noreferrer ideone com example can be found here pp strongUpdated strong Add link to ideone add example with return value you can construct something similar using callStatic http php net manual en language oop5 overloading php object callstatic,0,NULL,NULL 43937,153722,438749,NULL,NULL,NULL,0,NULL,NULL 43938,530219,196035,Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 43939,549568,457808,Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 43940,169403,233159,NULL,NULL,NULL,0,NULL,NULL 43941,49300,218094,NULL,NULL,NULL,0,NULL,NULL 43942,3452592,218094,NULL,NULL,NULL,0,NULL,NULL 43943,340952,1226563,Teacher,NULL,NULL,0,NULL,NULL 43944,180787,593142,NULL,NULL,NULL,0,NULL,NULL 43945,10661,250136,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 43946,135676,631423,Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 43947,2878463,117982,Popular Question,NULL,NULL,0,NULL,NULL 43948,113284,509732,Curious Yearling Critic Notable Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 43949,41516,1484151,NULL,NULL,NULL,0,NULL,NULL 43950,11333,385502,Critic Popular Question Commentator Popular Question,NULL,NULL,0,NULL,NULL 43951,143873,548300,NULL,NULL,NULL,0,NULL,NULL 43952,411262,1261290,Student,NULL,NULL,0,NULL,NULL 43953,5764804,823548,NULL,NULL,NULL,0,NULL,NULL 43954,92033,823548,NULL,NULL,NULL,0,NULL,NULL 43955,2123954,823548,NULL,NULL,NULL,0,NULL,NULL 43956,318140,990342,Nice Answer Popular Question Notable Question Yearling Critic,NULL,NULL,0,NULL,NULL 43957,410711,538805,Nice Question Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 43958,374688,498753,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 43959,1173058,936424,NULL,NULL,NULL,0,NULL,NULL 43960,2362495,936424,NULL,NULL,,0,, 43961,49039,1088469,Census,NULL,NULL,0,NULL,NULL 43962,107511,46588,Peer Pressure Great Answer Necromancer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Documentation User Yearling Curious Nice Answer Custodian Popular Question Custodian,NULL,NULL,0,NULL,NULL 43963,65585,676818,Critic Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43964,606109,760582,NULL,NULL,NULL,0,NULL,NULL 43965,394554,1550443,NULL,NULL,NULL,0,NULL,NULL 43966,142744,58733,Nice Answer Yearling Guru Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 43967,19972,1481312,Revival,NULL,NULL,0,NULL,NULL 43968,351980,534117,NULL,NULL,NULL,0,NULL,NULL 43969,85344,246458,NULL,NULL,NULL,0,NULL,NULL 43970,2984478,216161,Editor Commentator Documentation User Curious Informed Excavator Tumbleweed Custodian Autobiographer Citizen Patrol,NULL,NULL,0,NULL,NULL 43971,187224,740966,NULL,NULL,NULL,0,NULL,NULL 43972,314766,28855,Revival Revival Guru Guru Yearling Popular Question Nice Answer Notable Question Yearling Popular Question Census Yearling,NULL,NULL,0,NULL,NULL 43973,1375736,958643,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 43974,14112,461041,NULL,NULL,NULL,0,NULL,NULL 43975,81044,1126434,NULL,NULL,NULL,0,NULL,NULL 43976,755886,1200752,NULL,NULL,NULL,0,NULL,NULL 43977,759296,1222063,NULL,NULL,NULL,0,NULL,NULL 43978,52842,915662,Editor,NULL,NULL,0,NULL,NULL 43979,1110154,890539,Famous Question,NULL,NULL,0,NULL,NULL 43980,1505678,1428493,NULL,NULL,NULL,0,NULL,NULL 43981,198960,393871,Famous Question,NULL,NULL,0,NULL,NULL 43982,1187551,751500,Teacher,NULL,NULL,0,NULL,NULL 43983,48683,1172107,NULL,NULL,NULL,0,NULL,NULL 43984,630774,1442128,NULL,NULL,NULL,0,NULL,NULL 43985,223276,715440,NULL,NULL,NULL,0,NULL,NULL 43986,360655,1324688,NULL,NULL,NULL,0,NULL,NULL 43987,259701,633281,Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Great Answer Announcer Good Answer Documentation User Nice Answer Announcer Guru Good Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 43988,347715,75017,Necromancer Yearling Revival Proofreader Curious Informed Guru Custodian Yearling Nice Answer Enlightened Popular Question Custodian Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 43989,1159557,1188290,NULL,NULL,NULL,0,NULL,NULL 43990,461662,1309528,NULL,NULL,NULL,0,NULL,NULL 43991,1047528,1019992,NULL,NULL,NULL,0,NULL,NULL 43992,14057,656992,Yearling Great Answer,NULL,NULL,0,NULL,NULL 43993,176891,1263799,NULL,NULL,NULL,0,NULL,NULL 43994,1490498,739972,Notable Question,NULL,NULL,0,NULL,NULL 43995,591329,165000,Popular Question Yearling Notable Question Yearling Famous Question Necromancer Favorite Question Nice Answer Yearling Custodian Great Question Necromancer Yearling Populist Good Answer Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 43996,54580,262641,Teacher,NULL,NULL,0,NULL,NULL 43997,1141247,705536,NULL,NULL,NULL,0,NULL,NULL 43998,160425,1463560,NULL,NULL,NULL,0,NULL,NULL 43999,707657,1168427,Good Question Notable Question Yearling Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 44000,523099,1137982,Yearling Nice Answer Critic Popular Question,NULL,NULL,0,NULL,NULL 44001,19575,552562,NULL,NULL,NULL,0,NULL,NULL 44002,95408,1496422,Student,NULL,NULL,0,NULL,NULL 44003,471483,1085398,NULL,NULL,NULL,0,NULL,NULL 44004,82651,363894,Autobiographer,NULL,NULL,0,NULL,NULL 44005,603532,1051191,NULL,NULL,NULL,0,NULL,NULL 44006,1008337,1373899,Popular Question Student,NULL,NULL,0,NULL,NULL 44007,210115,643805,NULL,NULL,NULL,0,NULL,NULL 44008,373309,1137311,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 44009,55173,1249461,NULL,NULL,NULL,0,NULL,NULL 44010,310550,684811,Popular Question Yearling Popular Question Notable Question Yearling Notable Question Yearling Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 44011,13123,800063,NULL,NULL,NULL,0,NULL,NULL 44012,731959,617768,Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 44013,96713,964133,Student Commentator Supporter Teacher Curious Cleanup Custodian Critic Yearling Informed Autobiographer Census Caucus Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44014,181522,859138,NULL,NULL,NULL,0,NULL,NULL 44015,223147,270298,Yearling Good Answer Nice Answer Enlightened Yearling Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 44016,234143,252591,Famous Question Yearling Good Answer Great Answer Good Answer php Nice Answer Good Answer Nice Question arrays Nice Answer Good Answer Good Answer Nice Answer Nice Answer Benefactor Nice Answer Enlightened Guru Yearling Nice Answer Guru symfony Good Answer Nice Answer Nice Answer Announcer Popular Question Caucus Good Answer Nice Answer Good Answer Notable Question Yearling Guru Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 44017,271159,994350,NULL,NULL,NULL,0,NULL,NULL 44018,1862120,360343,Yearling,NULL,NULL,0,NULL,NULL 44019,593012,266956,Yearling Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44020,1507992,665716,NULL,NULL,NULL,0,NULL,NULL 44021,529031,883793,Good Answer Caucus Curious Announcer Announcer Caucus Yearling Self-Learner Popular Question Custodian Organizer Custodian Citizen Patrol Custodian Excavator Caucus,NULL,NULL,0,NULL,NULL 44022,1522617,900624,NULL,NULL,NULL,0,NULL,NULL 44023,10652748,900624,NULL,NULL,NULL,0,NULL,NULL 44024,666030,1317651,Yearling,NULL,NULL,0,NULL,NULL 44025,59567,76429,NULL,NULL,NULL,0,NULL,NULL 44026,51508,410658,Yearling Necromancer,NULL,NULL,0,NULL,NULL 44027,88488,1293787,Tumbleweed Curious Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44028,2150113,1293787,Tumbleweed Curious Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44029,182281,13163,Popular Question Necromancer Good Question Nice Question Nice Answer Popular Question Nice Question Yearling Popular Question Favorite Question Guru Good Answer Nice Answer Enlightened Notable Question Famous Question Famous Question Nice Question Revival Nice Answer Yearling Good Question castle-windsor Nice Question Good Answer Popular Question Notable Question Good Answer Yearling,NULL,pFrom the top of my head ppre codemi IsSpecialName amp amp mi Name StartsWith set mi Name StartsWith get code prepshould get you all set SpecialName is more than property accessors event add remove methods count here as well that why you have to check the names as well ppYou can use LINQ for that as well The other answer will also return other special name methods like event subscriptions unsubscriptions,0,NULL,NULL 44030,125476,1302810,Popular Question Curious Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 44031,1119989,1343422,NULL,NULL,NULL,0,NULL,NULL 44032,1353172,950481,NULL,NULL,NULL,0,NULL,NULL 44033,447228,291121,NULL,NULL,NULL,0,NULL,NULL 44034,193627,444280,Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 44035,113403,1440663,NULL,NULL,NULL,0,NULL,NULL 44036,543343,965951,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44037,317798,949062,Popular Question,NULL,NULL,0,NULL,NULL 44038,226208,1046166,NULL,NULL,NULL,0,NULL,NULL 44039,409876,940298,NULL,NULL,NULL,0,NULL,NULL 44040,400908,212060,Informed Census,NULL,NULL,0,NULL,NULL 44041,662127,1049687,NULL,NULL,NULL,0,NULL,NULL 44042,101984,677190,NULL,NULL,NULL,0,NULL,NULL 44043,2280501,1089500,Popular Question Popular Question Popular Question Self-Learner Famous Question Yearling Caucus Famous Question Notable Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 44044,371074,1240497,NULL,NULL,NULL,0,NULL,NULL 44045,429853,297504,Critic Yearling Census,NULL,NULL,0,NULL,NULL 44046,1410733,445951,NULL,NULL,NULL,0,NULL,NULL 44047,456176,1215207,NULL,NULL,NULL,0,NULL,NULL 44048,315227,307766,Popular Question Revival Tumbleweed Notable Question Necromancer,NULL,NULL,0,NULL,NULL 44049,6551387,171452,Editor Yearling Caucus Civic Duty Caucus,NULL,NULL,0,NULL,NULL 44050,34446,171452,Editor Yearling Caucus Civic Duty Caucus,NULL,NULL,0,NULL,NULL 44051,1227094,228461,Curious Custodian Critic Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 44052,295852,246798,Critic,NULL,NULL,0,NULL,NULL 44053,136202,1348321,NULL,NULL,NULL,0,NULL,NULL 44054,247171,1058092,Editor,NULL,NULL,0,NULL,NULL 44055,1208002,1075098,Necromancer Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 44056,381190,1162091,NULL,NULL,NULL,0,NULL,NULL 44057,9143849,1162091,NULL,NULL,NULL,0,NULL,NULL 44058,1516416,985306,Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 44059,1342832,690434,NULL,NULL,NULL,0,NULL,NULL 44060,111433,465974,Announcer Teacher Popular Question Announcer Revival,NULL,NULL,0,NULL,NULL 44061,28172,1048520,Nice Answer Enlightened Nice Answer Yearling Custodian Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 44062,691183,488656,Popular Question Nice Answer Civic Duty Caucus Constituent Informed Caucus Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 44063,146762,514310,NULL,NULL,NULL,0,NULL,NULL 44064,131039,551046,Enthusiast Commentator,NULL,NULL,0,NULL,NULL 44065,221496,75037,Teacher Popular Question Autobiographer Curious,NULL,NULL,0,NULL,NULL 44066,145780,855220,NULL,NULL,NULL,0,NULL,NULL 44067,303946,1138746,Popular Question,NULL,NULL,0,NULL,NULL 44068,215879,994259,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44069,55425,330558,Critic Yearling Caucus Revival Constituent Necromancer Announcer Announcer Caucus Citizen Patrol Yearling Commentator Custodian Necromancer Custodian Custodian Necromancer Self-Learner Custodian Yearling Nice Answer Yearling Good Answer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44070,68413,564779,Popular Question,NULL,NULL,0,NULL,NULL 44071,85939,3798,Necromancer Nice Answer Nice Question Good Answer Great Question Famous Question Yearling Good Question Nice Answer Good Question Popular Question Famous Question Nice Question Guru Popular Question Investor Altruist Popular Question Yearling Notable Question Favorite Question Nice Answer Nice Question Nice Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 44072,1507185,437223,Yearling Nice Question Popular Question Famous Question Famous Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44073,35721,1069938,NULL,NULL,NULL,0,NULL,NULL 44074,71668,195594,Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Constituent Great Answer Documentation User Yearling Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 44075,461853,1115165,NULL,NULL,NULL,0,NULL,NULL 44076,204587,1430004,NULL,NULL,NULL,0,NULL,NULL 44077,11682,377446,Notable Question Nice Answer Enlightened Popular Question Nice Question Notable Question Yearling Good Question Necromancer Notable Question Notable Question Good Question Famous Question Inquisitive Notable Question Yearling Famous Question Nice Answer Popular Question Stellar Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44078,154692,233929,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 44079,9396,765345,NULL,NULL,NULL,0,NULL,NULL 44080,76287,1504693,NULL,NULL,NULL,0,NULL,NULL 44081,99677,119378,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 44082,269025,758569,NULL,NULL,NULL,0,NULL,NULL 44083,598196,490053,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 44084,543743,318964,Nice Answer Good Question Custodian Promoter Yearling Excavator Revival Revival Nice Answer Enlightened Necromancer Nice Answer Popular Question Good Answer Nice Answer Populist Yearling Benefactor Civic Duty Nice Answer Enlightened Revival Necromancer Notable Question python Necromancer Popular Question Popular Question Yearling Nice Answer Enlightened Revival Good Answer Nice Answer Revival Notable Question Custodian,NULL,NULL,0,NULL,NULL 44085,637563,1015322,Yearling Commentator Caucus Good Answer Necromancer Yearling Citizen Patrol Custodian Popular Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 44086,1069690,1110662,Revival Notable Question,NULL,NULL,0,NULL,NULL 44087,697080,1110662,Revival Notable Question,NULL,NULL,0,NULL,NULL 44088,167054,6541,Commentator Popular Question Caucus,NULL,NULL,0,NULL,NULL 44089,3313463,1164170,Teacher Student Scholar Supporter Commentator,NULL,NULL,0,NULL,NULL 44090,1504064,1164170,Teacher Student Scholar Supporter Commentator,NULL,NULL,0,NULL,NULL 44091,2308487,1243834,NULL,NULL,NULL,0,NULL,NULL 44092,201471,1048182,NULL,NULL,NULL,0,NULL,NULL 44093,73030,487878,Custodian Popular Question Popular Question Notable Question Yearling Caucus Constituent Announcer Nice Answer Yearling Announcer Custodian Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 44094,77660,784516,NULL,NULL,NULL,0,NULL,NULL 44095,1046108,32458,Nice Answer Necromancer Good Answer Popular Question Yearling Necromancer Revival Nice Answer Enlightened Popular Question Documentation User Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44096,188351,1105251,Yearling,NULL,NULL,0,NULL,NULL 44097,134361,1472699,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44098,306144,605150,Popular Question,NULL,NULL,0,NULL,NULL 44099,9299,631799,NULL,NULL,NULL,0,NULL,NULL 44100,3069267,1390262,NULL,NULL,NULL,0,NULL,NULL 44101,659515,827313,NULL,NULL,NULL,0,NULL,NULL 44102,185318,616937,Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Notable Question Nice Answer Yearling Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 44103,50667,1332153,Revival,NULL,NULL,0,NULL,NULL 44104,715209,916371,Tumbleweed Student,NULL,NULL,0,NULL,NULL 44105,252935,262750,Caucus Caucus Necromancer,NULL,NULL,0,NULL,NULL 44106,1459247,23866,Yearling Nice Answer Necromancer Announcer Documentation User Yearling Nice Answer Necromancer Revival,NULL,NULL,0,NULL,NULL 44107,15407,1150274,Teacher Census,NULL,NULL,0,NULL,NULL 44108,53956,489671,NULL,NULL,NULL,0,NULL,NULL 44109,166006,837289,Famous Question,NULL,NULL,0,NULL,NULL 44110,76223,800526,Excavator Custodian Custodian Custodian Yearling Announcer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 44111,80138,72498,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 44112,558654,1026573,Electorate Explainer Popular Question Yearling Caucus Necromancer Custodian Nice Answer Necromancer Popular Question Yearling Revival Popular Question Necromancer Notable Question Necromancer Yearling,NULL,NULL,1,NULL,NSKeyedArchiver does not work in Swift XCode swift3 xcode8 ios10 pI have migrated my project to Swift and codeNSKeyedArchiver code does not work actually have runtime error when trying to decode object like this ppre codelet startDayTime aDecoder decodeObject forKey Key startDayTime as Int code prepIt worked perfectly in Swift in Xcode Has anybody else faced such troubles ppP have this error on both Simulator and Device ppUPDATE solved this problem by using codedecodeInteger forKey key String code instead of codedecodeObject forKey key String code By some reason AnyObject does not cast to Integer in Swift though it did in Swift pIt appears that this only happens on the Swift to Swift update boundary when NSData blob archived with codeNSKeyedArchiver code in Swift is opened with codeNSKeyedUnarchiver code in Swift My guess is that on Swift the codeBool code and codeInt code are encoded as codeNSNumber code but in Swift they are encoded as raw codeBool code and codeInt code types believe the following test supports this claim ppThis works in Swift to unarchive codeBool code encoded in Swift but returns codenil code if the Bool was encoded in Swift ppre codelet visible aDecoder decodeObject forKey visible as Bool code prepThis works in Swift to unarchive codeBool code encoded in Swift but crashes if the Bool was encoded in Swift ppre codelet visible aDecoder decodeBool forKey visible code prepMy solution is ppre codelet visible aDecoder decodeObject forKey visible as Bool aDecoder decodeBool forKey visible code pre 44113,167575,1371629,Informed Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 44114,1508983,1102922,NULL,NULL,NULL,0,NULL,NULL 44115,1082785,464720,NULL,NULL,NULL,0,NULL,NULL 44116,976961,1091195,Good Answer Guru Revival Yearling Nice Answer Necromancer Nice Question ios Nice Answer Enlightened Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 44117,169689,969507,Teacher Student,NULL,NULL,0,NULL,NULL 44118,51061,672596,NULL,NULL,NULL,0,NULL,NULL 44119,51298,576843,Yearling Great Answer Yearling Famous Question Notable Question ruby-on-rails ruby Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44120,1286669,642855,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44121,735356,530321,Popular Question Student,NULL,NULL,0,NULL,NULL 44122,503324,1282291,NULL,NULL,NULL,0,NULL,NULL 44123,1352151,787683,NULL,NULL,NULL,0,NULL,NULL 44124,111419,1149661,Custodian Informed Editor Nice Answer Caucus Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 44125,7856309,220241,Popular Question Popular Question Notable Question Nice Question Famous Question Caucus Notable Question Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44126,109104,546640,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44127,9142,1485707,NULL,NULL,NULL,0,NULL,NULL 44128,19201,222834,Caucus Yearling,NULL,NULL,0,NULL,NULL 44129,282010,985524,Commentator,NULL,NULL,0,NULL,NULL 44130,1030647,1153358,Famous Question Yearling Informed Caucus Organizer Popular Question Popular Question Yearling Nice Question Notable Question Self-Learner Good Question,NULL,NULL,0,NULL,NULL 44131,1071964,721174,Nice Answer Enlightened Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 44132,72952,1311144,NULL,NULL,NULL,0,NULL,NULL 44133,163895,195515,Yearling Informed,NULL,NULL,0,NULL,NULL 44134,8208,540609,Yearling Necromancer,NULL,NULL,0,NULL,NULL 44135,787253,175093,Yearling Good Question Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44136,336544,954472,NULL,NULL,NULL,0,NULL,NULL 44137,432131,1423584,NULL,NULL,NULL,0,NULL,NULL 44138,44028,970769,Yearling Necromancer Necromancer Yearling Nice Answer Nice Answer Yearling Necromancer Revival Necromancer Announcer Yearling Nice Answer Civic Duty Announcer Popular Question Revival Good Answer Yearling,NULL,How to format time since xxx “4 minutes ago” similar to Stack Exchange sites javascript date formatting pThe question is how to format JavaScript codeDate code as string stating the time elapsed similar to the way you see times displayed on Stack Overflow ppe pulli1 minute ago lili1 hour ago lili1 day ago lili1 month ago lili1 year ago li ul https github com catamphetamine javascript time ago codeJSON parse code has little known second parameter the reviver function This is used for precisely this purpose to revive date string into codeDate code object or hypothetically any other kind of object you wanted to convert from string during the initial parse ppThere an href https stackoverflow com 14509447 800457 SO post about this and here href http weblog west wind com posts 2014 Jan 06 JavaScript JSON Date Parsing and real Dates rel nofollow noreferrer blog post that includes an implementation example and function that will do property checking for couple common date encodings ISO amp that weird NET AJAX format before parsing to codeDate code ppHere the key function from that blog post fwiw ppre code JSON date deserializer use as the second reviver argument to JSON parse if window JSON amp amp window JSON dateParser var reISO var reMsAjax Date JSON dateParser function key value first just make sure the property is string if typeof value string then use regex to see if it an ISO formatted string var reISO exec value if if so Date can parse it return new Date value otherwise see if it wacky Microsoft format string reMsAjax exec value if and perform some jujitsu to make use of it var split return new Date here you could insert any additional tests and parse instructions you like for other date syntaxes important you need to return any values you re not parsing or they die return value use JSON parse json JSON dateParser code prep There are href https stackoverflow com questions 12756159 regex and iso8601 formated datetime lots of opinions about proper regexes for ISO 8601 dates YMMV Also there no particular reason to punch the function onto the global JSON object You could store reference it anywhere you like Better ISO date regexp 12 01 01 24 00 zZ 01,0,NULL,NULL 44139,649801,1422687,Notable Question Popular Question Notable Question Popular Question Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 44140,1777353,1422687,Notable Question Popular Question Notable Question Popular Question Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 44141,321273,736587,Revival,NULL,NULL,0,NULL,NULL 44142,127343,906576,NULL,NULL,NULL,0,NULL,NULL 44143,9336507,271990,Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44144,115710,693617,NULL,NULL,NULL,0,NULL,NULL 44145,420506,978332,Informed,NULL,NULL,0,NULL,NULL 44146,384921,824014,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 44147,903000,1065925,Supporter Announcer,NULL,NULL,0,NULL,NULL 44148,1425855,1068934,Notable Question,NULL,NULL,0,NULL,NULL 44149,805049,180718,Tag Editor Famous Question Yearling Good Answer Popular Question Yearling Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 44150,555286,694605,NULL,NULL,NULL,0,NULL,NULL 44151,1531965,694605,NULL,NULL,NULL,0,NULL,NULL 44152,209906,280893,Popular Question,NULL,NULL,0,NULL,NULL 44153,96594,295356,Announcer,NULL,NULL,0,NULL,NULL 44154,515477,174609,Yearling,NULL,NULL,0,NULL,NULL 44155,344244,635636,Nice Answer Announcer Caucus,NULL,NULL,0,NULL,NULL 44156,106017,607275,f# Yearling Nice Answer Popular Question Yearling Tumbleweed Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44157,223707,1219040,NULL,NULL,NULL,0,NULL,NULL 44158,554994,1030861,Custodian Nice Question Guru Good Question Notable Question Yearling Caucus Notable Question Good Question Notable Question Popular Question Announcer Yearling Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44159,639247,1019493,NULL,NULL,NULL,0,NULL,NULL 44160,195151,834986,NULL,NULL,NULL,0,NULL,NULL 44161,99778,188530,Popular Question Revival Nice Answer Yearling Necromancer Custodian Popular Question Popular Question Documentation User Yearling Announcer Nice Question Yearling,NULL,How to map events of POSIX select and Windows WSAEventSelect winapi select networking posix winsock pPOSIX select allows to determine events pulliread liliwrite lilierror li ulpWindow WSAEventSelect has 10 pulliFD READ liliFD WRITE liliFD OOB liliFD ACCEPT liliFD CONNECT liliFD CLOSE liliFD QOS liliFD GROUP QOS liliFD ROUTING INTERFACE CHANGE liliFD ADDRESS LIST CHANGE li ulpHow can map those Windows events to POSIX events pp strongEDIT strong ppUnfortunately cannot use Windows implementation of codeselect code because of the href https msdn microsoft com en us library windows desktop ms739177 vs 85 aspx rel nofollow multiple providers restriction cannot use select because it does not allow to mix sockets from different providers,1,How to map events of POSIX select and Windows WSAEventSelect winapi select networking posix winsock pPOSIX select allows to determine events pulliread liliwrite lilierror li ulpWindow WSAEventSelect has 10 pulliFD READ liliFD WRITE liliFD OOB liliFD ACCEPT liliFD CONNECT liliFD CLOSE liliFD QOS liliFD GROUP QOS liliFD ROUTING INTERFACE CHANGE liliFD ADDRESS LIST CHANGE li ulpHow can map those Windows events to POSIX events pp strongEDIT strong ppUnfortunately cannot use Windows implementation of codeselect code because of the href https msdn microsoft com en us library windows desktop ms739177 vs 85 aspx rel nofollow multiple providers restriction,NULL 44162,194252,1018328,Critic Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 44163,799710,1403080,Student,NULL,NULL,0,NULL,NULL 44164,171458,249270,NULL,NULL,NULL,0,NULL,NULL 44165,130651,303341,NULL,NULL,NULL,0,NULL,NULL 44166,84405,440171,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 44167,91821,274299,Popular Question Good Question Nice Question Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Notable Question Nice Answer Notable Question Famous Question Popular Question Popular Question Nice Answer Notable Question Notable Question Notable Question Good Answer Popular Question Good Question Nice Question Popular Question Popular Question Good Question Famous Question Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Great Question Notable Question Popular Question Popular Question Famous Question Nice Answer Popular Question Famous Question Nice Answer Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Documentation User Notable Question Nice Answer Popular Question Notable Question Nice Question Announcer Popular Question Notable Question Notable Question Nice Question Nice Answer Enlightened Yearling Announcer Popular Question Notable Question Good Answer Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Guru Popular Question Popular Question Notable Question Nice Answer Enlightened Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44168,34943,1134532,NULL,NULL,NULL,0,NULL,NULL 44169,106689,1562769,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 44170,1134560,1172139,Teacher Scholar Student Supporter,NULL,NULL,0,NULL,NULL 44171,3953257,1483212,NULL,NULL,NULL,0,NULL,NULL 44172,82511,873859,Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 44173,355184,1041284,Popular Question,NULL,NULL,0,NULL,NULL 44174,8246,729860,Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 44175,38626,188505,Excavator Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 44176,546021,425994,Popular Question,NULL,NULL,0,NULL,NULL 44177,6367,1467214,NULL,NULL,NULL,0,NULL,NULL 44178,852621,678498,NULL,NULL,NULL,0,NULL,NULL 44179,535450,991428,NULL,NULL,NULL,0,NULL,NULL 44180,590155,189747,Popular Question,NULL,NULL,0,NULL,NULL 44181,12317,21355,NULL,NULL,NULL,0,NULL,NULL 44182,855479,1066129,Popular Question Notable Question Popular Question Popular Question Popular Question Caucus Notable Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44183,252672,1464074,NULL,NULL,NULL,0,NULL,NULL 44184,53595,469414,Popular Question Popular Question groovy Nice Answer Notable Question Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Question Great Answer Good Answer Nice Answer Enlightened Enlightened Yearling Nice Answer Enlightened Census Guru Guru Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 44185,3754248,111856,Popular Question Popular Question Yearling Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44186,288060,111856,Popular Question Popular Question Yearling Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44187,269991,220339,NULL,NULL,NULL,0,NULL,NULL 44188,26457,143671,NULL,NULL,NULL,0,NULL,NULL 44189,562532,515752,Yearling Necromancer Nice Answer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 44190,639872,1111452,Notable Question Notable Question Yearling Notable Question Curious,NULL,NULL,0,NULL,NULL 44191,212831,215399,Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 44192,40679,1480349,NULL,NULL,NULL,0,NULL,NULL 44193,2092400,567345,Notable Question Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 44194,1759796,782489,Notable Question Popular Question Caucus Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 44195,1507952,782489,Notable Question Popular Question Caucus Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 44196,688129,1084918,NULL,NULL,NULL,0,NULL,NULL 44197,207328,552000,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44198,169853,153439,Nice Question Nice Question Yearling Great Question Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44199,275026,1164974,NULL,NULL,NULL,0,NULL,NULL 44200,237114,235641,Yearling Promoter,NULL,NULL,0,NULL,NULL 44201,96086,730560,NULL,NULL,NULL,0,NULL,NULL 44202,1408780,555051,NULL,NULL,NULL,0,NULL,NULL 44203,433908,114921,Notable Question Popular Question Nice Answer Yearling Good Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 44204,202452,712572,Supporter,NULL,NULL,0,NULL,NULL 44205,264090,279973,Yearling Popular Question Good Question Custodian Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 44206,535096,1358054,NULL,NULL,NULL,0,NULL,NULL 44207,251933,1364903,NULL,NULL,NULL,0,NULL,NULL 44208,195757,1087710,NULL,NULL,NULL,0,NULL,NULL 44209,21533,1072218,NULL,NULL,NULL,0,NULL,NULL 44210,272796,1246877,NULL,NULL,NULL,0,NULL,NULL 44211,322689,859490,Favorite Question Yearling Notable Question Popular Question Yearling Custodian Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44212,432239,453273,Good Question Custodian Informed Suffrage Vox Populi Civic Duty Excavator Reviewer Famous Question Enthusiast Yearling Popular Question Caucus Constituent Popular Question Popular Question Caucus Yearling Popular Question Documentation User Self-Learner Popular Question Notable Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 44213,4951978,826363,NULL,NULL,NULL,0,NULL,NULL 44214,122406,558154,Notable Question,NULL,NULL,0,NULL,NULL 44215,28370,7700,Notable Question Popular Question Yearling Custodian Caucus Good Answer Caucus,NULL,NULL,0,NULL,NULL 44216,769232,141787,NULL,NULL,NULL,0,NULL,NULL 44217,177807,802269,Yearling Nice Answer Enlightened Good Question Yearling,NULL,NULL,0,NULL,NULL 44218,2924990,1125338,NULL,NULL,NULL,0,NULL,NULL 44219,1443053,1125338,NULL,NULL,NULL,0,NULL,NULL 44220,1568504,502781,NULL,NULL,NULL,0,NULL,NULL 44221,152760,121037,Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 44222,72371,1162756,Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 44223,351659,421070,Necromancer Yearling Self-Learner Custodian Citizen Patrol Nice Answer Revival,NULL,NULL,0,NULL,NULL 44224,463730,1400543,Teacher Supporter Tumbleweed Curious Popular Question,NULL,NULL,0,NULL,NULL 44225,206340,1459017,NULL,NULL,NULL,0,NULL,NULL 44226,2311116,278063,NULL,NULL,NULL,0,NULL,NULL 44227,109012,962081,Yearling Informed Notable Question Caucus Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 44228,3610,316183,Yearling Unsung Hero Yearling rethinkdb Yearling Yearling,NULL,NULL,1,NULL,Filtering Rethinkdb table on some element of nested object python json nested rethinkdb pI am having hard times with understanding how to filter my rethinkdb table with Python based on substring match on nested element of the following data ppre code HERE WE HAVE MANY RECORDS record 0a76d012 f83d 4bd3 95b7 2ba973750bde steps HERE WE HAVE MANY STEPS step latest db info data hash 2ba7e669 name Numero de extrait position value Limoges 34 hash d094874e name Numero de page de extrait position value Limoges 34 hash 598653a6 name Type de extrait position value texte code prepWhat want for example is to get is all the records that have pullia substring matching mog for the field value liliand at the same time matching Numero de page for the field name li ulpFor example the path to the field value is something like ppre code steps data value code prepI tried with direct filtering on codelambda function code and does not give any results reached some results with codeconcat map code ppre coder table mytable concat map row steps concat map row data filter lambda row row value match mog run code prepBut the results loose the original coderecord code field ppre code position hash 2ba7e669 value Limoges 34 name Numero de extrait code prepCould someone please lead me in the right direction Also javascript example would help pp strongEDIT strong accepted answer worked thanks to This is the python version for future references ppre coder table mytable concat map lambda doc doc steps concat map lambda step step data concat map lambda data record doc record step data filter lambda doc doc step value match mog and doc step name match Numero de page run code pre pFilter with nested syntax only works with nested object we don have way to select query an array with nested syntax ppIf you want to include coderecord code field and codestep data code records that match your value you can use sth like this ppre coder table mytable concatMap function doc return doc steps concatMap function step return step data concatMap function data return record doc record step data filter function doc return doc step value eq mog and doc step name eq Numero de page code prepOr another way without using codefilter code ppre coder table mytable concatMap function doc return doc steps concatMap function step return step data concatMap function data return branch data value eq Limoges 34 and data name eq Numero de extrait record doc record step data code pre 44229,80652,1190157,Informed Editor Teacher,NULL,NULL,0,NULL,NULL 44230,355229,360655,NULL,NULL,NULL,0,NULL,NULL 44231,432231,978512,Scholar Commentator,NULL,NULL,0,NULL,NULL 44232,3006196,578704,Commentator Editor,NULL,NULL,0,NULL,NULL 44233,193330,578704,Commentator Editor,NULL,NULL,0,NULL,NULL 44234,1501336,926125,Nice Question,NULL,NULL,0,NULL,NULL 44235,729232,356912,Popular Question,NULL,NULL,0,NULL,NULL 44236,7370420,816456,Popular Question Excavator Popular Question Notable Question Notable Question Custodian Announcer,NULL,NULL,0,NULL,NULL 44237,1854621,140901,Popular Question Guru Yearling Nice Answer Enlightened Good Answer Famous Question Yearling Nice Question Popular Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 44238,96440,79078,Yearling Excavator Popular Question Census Popular Question Yearling Popular Question Popular Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 44239,895843,179193,NULL,NULL,NULL,0,NULL,NULL 44240,171531,123672,Nice Answer,NULL,NULL,0,NULL,NULL 44241,133035,117442,Yearling,NULL,NULL,0,NULL,NULL 44242,410558,848719,Student Popular Question Necromancer Critic Necromancer,NULL,NULL,0,NULL,NULL 44243,578551,848719,Student Popular Question Necromancer Critic Necromancer,NULL,NULL,0,NULL,NULL 44244,1506035,829816,Notable Question Caucus Constituent Popular Question Yearling Caucus Curious Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44245,189303,502933,NULL,NULL,NULL,0,NULL,NULL 44246,1024717,1256930,Popular Question Custodian Tumbleweed Necromancer Popular Question,NULL,NULL,0,NULL,NULL 44247,1622804,1361908,NULL,NULL,NULL,0,NULL,NULL 44248,1311732,139126,NULL,NULL,NULL,0,NULL,NULL 44249,54682,784849,NULL,NULL,NULL,0,NULL,NULL 44250,917138,812828,NULL,NULL,NULL,0,NULL,NULL 44251,136123,1388302,Notable Question Necromancer Necromancer Nice Answer Yearling Census Necromancer,NULL,NULL,0,NULL,NULL 44252,3670223,738002,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 44253,1228397,605924,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 44254,641815,1373989,NULL,NULL,NULL,0,NULL,NULL 44255,39435,1068191,Suffrage Vox Populi Custodian Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44256,194988,201251,Popular Question Popular Question Yearling android Yearling Yearling,NULL,NULL,0,NULL,NULL 44257,682506,253166,NULL,NULL,NULL,0,NULL,NULL 44258,24903,1159867,NULL,NULL,NULL,0,NULL,NULL 44259,300777,537035,Popular Question,NULL,NULL,0,NULL,NULL 44260,51139,226020,Curious Famous Question Yearling Popular Question Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 44261,785658,559859,NULL,NULL,NULL,0,NULL,NULL 44262,40581,769221,NULL,NULL,NULL,0,NULL,NULL 44263,549692,489640,Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 44264,1054046,1113986,NULL,NULL,NULL,0,NULL,NULL 44265,419299,280430,Famous Question,NULL,NULL,0,NULL,NULL 44266,1477984,527472,Notable Question Yearling Popular Question Good Question Yearling Nice Question Popular Question Inquisitive Popular Question Yearling Popular Question Custodian Revival Notable Question Caucus Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 44267,189391,1258147,NULL,NULL,NULL,0,NULL,NULL 44268,1382966,698109,NULL,NULL,NULL,0,NULL,NULL 44269,95745,467267,Popular Question Yearling Revival osmdroid android Nice Answer Enlightened Nice Answer Enlightened Necromancer Caucus Constituent Yearling Civic Duty Custodian Yearling,NULL,NULL,0,NULL,NULL 44270,271774,395582,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Popular Question Popular Question Yearling Caucus Good Answer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 44271,672632,914248,NULL,NULL,NULL,0,NULL,NULL 44272,1297983,1147812,Revival Necromancer Nice Answer Yearling Critic Good Answer,NULL,NULL,0,NULL,NULL 44273,482303,717466,NULL,NULL,NULL,0,NULL,NULL 44274,1001558,1471902,Popular Question Commentator Popular Question,NULL,NULL,0,NULL,NULL 44275,795232,1085389,NULL,NULL,NULL,0,NULL,NULL 44276,147946,1277911,NULL,NULL,NULL,0,NULL,NULL 44277,881951,1292295,NULL,NULL,NULL,0,NULL,NULL 44278,20197,152583,Guru Nice Answer Enlightened Great Question Yearling Nice Answer Good Answer Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 44279,140188,309852,Enthusiast Yearling Yearling Great Answer Nice Answer Yearling Popular Question Good Answer Revival,NULL,NULL,0,NULL,NULL 44280,42670,1125909,NULL,NULL,NULL,0,NULL,NULL 44281,192366,492485,Good Answer Yearling,NULL,NULL,0,NULL,NULL 44282,1517391,927730,NULL,NULL,NULL,0,NULL,NULL 44283,15903,202174,Great Answer Necromancer Yearling Populist Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44284,1011299,671881,NULL,NULL,NULL,0,NULL,NULL 44285,480190,624338,NULL,NULL,NULL,0,NULL,NULL 44286,1418147,1182410,NULL,NULL,NULL,0,NULL,NULL 44287,269802,1474245,NULL,NULL,NULL,0,NULL,NULL 44288,121703,1327800,NULL,NULL,NULL,0,NULL,NULL 44289,539721,1319284,Yearling Self-Learner Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Tenacious Custodian Citizen Patrol Custodian Custodian Custodian Notable Question Custodian Explainer Unsung Hero Quorum Yearling Popular Question Popular Question Proofreader Custodian Inquisitive,NULL,NULL,0,NULL,NULL 44290,329810,1566623,Popular Question Yearling Announcer Custodian,NULL,NULL,0,NULL,NULL 44291,68506,1034242,NULL,NULL,NULL,0,NULL,NULL 44292,72720,57217,Notable Question Great Answer Curious Announcer Announcer Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44293,50596,317076,Popular Question Yearling Informed Good Answer Yearling Favorite Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 44294,274621,1007381,NULL,NULL,NULL,0,NULL,NULL 44295,493227,989748,Popular Question,NULL,NULL,0,NULL,NULL 44296,47529,102447,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 44297,254185,218582,Student Editor Scholar,NULL,NULL,0,NULL,NULL 44298,87679,690111,Yearling,NULL,NULL,0,NULL,NULL 44299,852356,511908,Populist Yearling Custodian Yearling Promoter Student Scholar Nice Question Benefactor Commentator Yearling,NULL,NULL,0,NULL,NULL 44300,307470,511944,NULL,NULL,NULL,0,NULL,NULL 44301,18628,1049186,Yearling,NULL,NULL,0,NULL,NULL 44302,616906,1466889,NULL,NULL,NULL,0,NULL,NULL 44303,450694,209158,NULL,NULL,NULL,0,NULL,NULL 44304,1230308,1348394,NULL,NULL,NULL,0,NULL,NULL 44305,2359652,1348394,NULL,NULL,NULL,0,NULL,NULL 44306,2306682,627229,NULL,NULL,NULL,0,NULL,NULL 44307,337115,435680,Necromancer Nice Answer Yearling Revival Necromancer Popular Question Yearling Census Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44308,429565,1550054,NULL,NULL,NULL,0,NULL,NULL 44309,892783,741941,NULL,NULL,NULL,0,NULL,NULL 44310,3261185,595334,NULL,NULL,NULL,0,NULL,NULL 44311,1936165,595334,NULL,NULL,NULL,0,NULL,NULL 44312,422871,303593,Yearling Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 44313,5560,1354892,NULL,NULL,NULL,0,NULL,NULL 44314,1018614,1044952,NULL,NULL,NULL,0,NULL,NULL 44315,136844,760190,Popular Question,NULL,NULL,0,NULL,NULL 44316,481748,462813,NULL,NULL,NULL,0,NULL,NULL 44317,22042,770442,NULL,NULL,NULL,0,NULL,NULL 44318,269552,752419,Editor Scholar Enthusiast Supporter,NULL,NULL,0,NULL,NULL 44319,375423,1031750,NULL,NULL,NULL,0,NULL,NULL 44320,704583,401022,Famous Question Curious Popular Question,NULL,NULL,0,NULL,NULL 44321,1578264,1021853,Notable Question Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 44322,531985,463407,Yearling Notable Question,NULL,NULL,0,NULL,NULL 44323,174282,408909,NULL,NULL,NULL,0,NULL,NULL 44324,222899,429733,Popular Question Civic Duty Quorum Notable Question Custodian Documentation User Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 44325,886457,1182273,Good Answer,NULL,NULL,0,NULL,NULL 44326,904496,342588,Teacher Self-Learner,NULL,NULL,0,NULL,NULL 44327,1171022,1097655,Notable Question,NULL,NULL,0,NULL,NULL 44328,961819,515511,NULL,NULL,NULL,0,NULL,NULL 44329,148484,115738,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Caucus Nice Answer Nice Answer Nice Answer Nice Answer Yearling Caucus Good Answer Announcer Census Caucus Yearling Notable Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 44330,177493,681380,Nice Question,NULL,NULL,0,NULL,NULL 44331,194507,122376,NULL,NULL,NULL,0,NULL,NULL 44332,332390,700524,NULL,NULL,NULL,0,NULL,NULL 44333,515738,93261,Announcer Notable Question,NULL,NULL,0,NULL,NULL 44334,20629,849768,NULL,NULL,NULL,0,NULL,NULL 44335,321067,1376150,Nice Answer Yearling Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 44336,1348506,1086893,NULL,NULL,NULL,0,NULL,NULL 44337,447362,1334066,NULL,NULL,NULL,0,NULL,NULL 44338,54535,920389,NULL,NULL,NULL,0,NULL,NULL 44339,1219,1079175,NULL,NULL,NULL,0,NULL,NULL 44340,137207,196980,Good Question Popular Question,NULL,NULL,0,NULL,NULL 44341,638379,1529911,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 44342,226817,518022,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44343,481875,661867,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44344,1407078,1426516,NULL,NULL,NULL,0,NULL,NULL 44345,610348,1144552,NULL,NULL,NULL,0,NULL,NULL 44346,99477,197068,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44347,33471,965635,Yearling Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Taxonomist,NULL,NULL,0,NULL,NULL 44348,48608,811742,NULL,NULL,NULL,0,NULL,NULL 44349,407609,579745,Supporter Teacher Informed Autobiographer Editor Popular Question Census Self-Learner Curious Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 44350,310781,1337134,NULL,NULL,NULL,0,NULL,NULL 44351,229348,622662,Nice Question Popular Question Popular Question Yearling Necromancer Notable Question Necromancer Good Question Nice Answer Necromancer Necromancer Popular Question Famous Question Favorite Question Nice Answer Necromancer Notable Question Revival ios Popular Question Popular Question Necromancer Good Question Popular Question Nice Answer Great Question Revival Nice Answer Nice Answer Revival Popular Question Necromancer Popular Question Yearling Custodian Good Answer Famous Question Revival Necromancer Good Answer Stellar Question Cleanup Populist Popular Question Nice Answer Nice Answer Nice Answer Popular Question Nice Question Nice Answer Necromancer Notable Question Populist Documentation User Necromancer Great Answer Good Answer Good Answer Good Answer Yearling Notable Question Notable Question Nice Answer Notable Question Necromancer Good Answer Popular Question Good Answer Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44352,659625,622662,Nice Question Popular Question Popular Question Yearling Necromancer Notable Question Necromancer Good Question Nice Answer Necromancer Necromancer Popular Question Famous Question Favorite Question Nice Answer Necromancer Notable Question Revival ios Popular Question Popular Question Necromancer Good Question Popular Question Nice Answer Great Question Revival Nice Answer Nice Answer Revival Popular Question Necromancer Popular Question Yearling Custodian Good Answer Famous Question Revival Necromancer Good Answer Stellar Question Cleanup Populist Popular Question Nice Answer Nice Answer Nice Answer Popular Question Nice Question Nice Answer Necromancer Notable Question Populist Documentation User Necromancer Great Answer Good Answer Good Answer Good Answer Yearling Notable Question Notable Question Nice Answer Notable Question Necromancer Good Answer Popular Question Good Answer Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44353,8073,374851,Yearling Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 44354,22657,412335,Nice Answer Revival Necromancer Revival Popular Question Yearling Nice Answer Nice Answer Necromancer Autobiographer Necromancer Revival Caucus Yearling Nice Answer Enlightened Announcer Necromancer Necromancer Great Answer Necromancer Necromancer Nice Answer Nice Answer Yearling Nice Answer Nice Answer,NULL,pThere are two main ways to convert string to number in javascript One way is to parse it and the other way is to change its type to Number All of the tricks in the other answers unary plus involve implicitly coercing the type of the string to number You can also do the same thing explicitly with the Number function pp strongParsing strong ppre codevar parsed parseInt 97 10 code prepparseInt and parseFloat are the two functions used for parsing strings to numbers Parsing will stop silently if it hits character it doesn recognise which can be useful for parsing strings like 92px but it also somewhat dangerous since it won give you any kind of error on bad input instead you ll get back NaN unless the string starts with number Whitespace at the beginning of the string is ignored Here an example of it doing something different to what you want and giving no indication that anything went wrong ppre codevar widgetsSold parseInt 97 800 10 widgetsSold is now 97 code prepIt good practice to always specify the radix as the second argument In older browsers if the string started with it would be interpreted as octal if the radix wasn specified which took lot of people by surprise The behaviour for hexadecimal is triggered by having the string start with 0x if no radix is specified code0xff code The standard actually changed with ecmascript so modern browsers no longer trigger octal when there leading if no radix has been specified parseInt understands radixes up to base 36 in which case both upper and lower case letters are treated as equivalent pp strongChanging the Type of String to Number strong ppAll of the other tricks mentioned above that don use parseInt involve implicitly coercing the string into number prefer to do this explicitly ppre codevar cast Number 97 code prepThis has different behavior to the parse methods although it still ignores whitespace It more strict if it doesn understand the whole of the string than it returns codeNaN code so you can use it for strings like code97px code Since you want primitive number rather than Number wrapper object make sure you don put codenew code in front of the Number function ppObviously converting to Number gives you value that might be float rather than an integer so if you want an integer you need to modify it There are few ways of doing this ppre codevar rounded Math floor Number 97 654 other options are Math ceil Math roundvar fixed Number 97 654 toFixed rounded rather than truncatedvar bitwised Number 97 654 do not use for large numbers code prepAny bitwise operator here ve done bitwise or but you could also do double negation as in an earlier answer or bitshift will convert the value to 32bit integer and most of them will convert to signed integer Note that this strongwill not do want you want for large integers strong If the integer cannot be represented in 32bits it will wrap ppre code 3000000000 654 1294967296 This is the same asNumber 3000000000 654 3000000000 654 gt gt gt 3000000000 unsigned right shift gives you an extra bit 300000000000 654 gt gt gt 3647256576 but still fails with larger numbers code prepTo work correctly with larger numbers you should use the rounding methods ppre codeMath floor 3000000000 654 3000000000 This is the same asMath floor Number 3000000000 654 code prepBear in mind that all of these methods understand exponential notation so code2e2 code is code200 code rather than NaN Also Number understands Infinity while the parse methods don pp strongCustom strong ppIt unlikely that either of these methods do exactly what you want For example usually would want an error thrown if parsing fails and don need support for Infinity exponentials or leading whitespace Depending on your usecase sometimes it makes sense to write custom conversion function ppAlways check that the output of Number or one of the parse methods is the sort of number you expect You will almost certainly want to use codeisNaN code to make sure the number is not NaN usually the only way you find out that the parse failed good point toFixed seems that it best used for formatting rather than anything else Extending Error in Javascript with ES6 syntax Babel javascript ecmascript babeljs transpiler pI am trying to extend Error with ES6 and Babel It isn working out ppre codeclass MyError extends Error constructor super var error new Error ll var myerror new MyError ll console log error message shows up correctlyconsole log myerror message shows empty string code prepThe Error object never get the right message set pp href https babeljs io repl experimental true amp evaluate true amp loose false amp spec false amp code class 20MyError 20extends 20Error 20 7B 0A 20 20constructor 20 7B 0A 20 20 20 20super 3B 0A 20 20 7D 0A 7D 0A 0Avar 20error 20 3D 20new 20Error 22ll 22 3B 0Avar 20myerror 20 3D 20new 20MyError 22ll 22 3B 0Aconsole log error message 20 2F 2Fshows 20up 20correctly 0Aconsole log myerror message 20 2F 2Fshows 20empty 20string rel noreferrer Try in Babel REPL ppNow have seen few solutions on SO href https stackoverflow com questions 8802845 inheriting from the error object where is the message property for example here but they all seem very un ES6 How to do it in nice ES6 way That is working in Babel Following your link to Babel REPL seems to indicate that it works correctly now presume it was bug in Babel that has since been fixed,0,NULL,NULL 44355,762965,471947,Tumbleweed Popular Question Yearling Nice Question Notable Question Notable Question Caucus Famous Question Yearling Famous Question Popular Question Caucus Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 44356,675460,298717,NULL,NULL,NULL,0,NULL,NULL 44357,1308864,183424,Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Popular Question Nice Question Nice Question Custodian Nice Answer Yearling Notable Question Enthusiast Notable Question Caucus Taxonomist Popular Question Civic Duty Nice Question Notable Question Famous Question Yearling Documentation User Notable Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Necromancer Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 44358,185307,503545,Announcer Announcer Teacher Announcer,NULL,NULL,0,NULL,NULL 44359,119860,1364643,NULL,NULL,NULL,0,NULL,NULL 44360,1332405,699759,NULL,NULL,NULL,0,NULL,NULL 44361,581328,1102172,NULL,NULL,NULL,0,NULL,NULL 44362,240329,454472,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 44363,649124,1200321,NULL,NULL,NULL,0,NULL,NULL 44364,213684,1507882,NULL,NULL,NULL,0,NULL,NULL 44365,340668,21818,NULL,NULL,NULL,0,NULL,NULL 44366,23688,19784,Popular Question Good Question Popular Question Good Question Good Question Nice Question Yearling Good Answer Nice Answer Guru Nice Answer Revival Yearling Nice Answer Guru Census Notable Question Nice Answer Nice Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 44367,1055216,552650,Notable Question Popular Question Yearling Excavator Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44368,1428770,1504281,Informed,NULL,NULL,0,NULL,NULL 44369,293426,658,Nice Question Famous Question Good Answer Great Answer Good Answer Nice Answer Yearling Good Answer Nice Question Great Question Favorite Question Census Stellar Question Good Question Nice Question Good Answer Nice Question Good Answer Notable Question Yearling Famous Question Nice Question Good Answer Nice Answer Popular Question Nice Answer Enlightened Great Question Yearling Good Answer,NULL,pWith union you re only supposed to use one of the elements because they re all stored at the same spot This makes it useful when you want to store something that could be one of several types struct on the other hand has separate memory location for each of its elements and they all can be used at once ppTo give concrete example of their use was working on Scheme interpreter little while ago and was essentially overlaying the Scheme data types onto the data types This involved storing in struct an enum indicating the type of value and union to store that value ppre codeunion foo int can use both and at once char foo struct bar int can use both and simultaneously char bar union foo OKx NO this affects the value of struct bar OKy OK code prep strongedit strong If you re wondering what setting to changes the value of to technically speaking it undefined On most modern machines char is byte and an int is bytes so giving the value also gives the first byte of that same value ppre codeunion foo printf code prepprints ppre code99 99 code prepWhy are the two values the same Because the last bytes of the int are all zero so it also read as 99 If we put in larger number for you ll see that this is not always the case ppre codeunion foo 387439 printf code prepprints ppre code387427 99 code prepTo get closer look at the actual memory values let set and print out the values in hex ppre codeunion foo 0xDEADBEEF 0x22 printf code prepprints ppre codedeadbe22 22 code prepYou can clearly see where the 0x22 overwrote the 0xEF pp strongBUT strong ppIn the order of bytes in an int are strongnot defined strong This program overwrote the 0xEF with 0x22 on my Mac but there are other platforms where it would overwrite the 0xDE instead because the order of the bytes that make up the int were reversed Therefore when writing program you should never rely on the behavior of overwriting specific data in union because it not portable ppFor more reading on the ordering of bytes check out href https en wikipedia org wiki endianness rel noreferrer endianness Byte order in multi byte types depends on endianness suggest reading the Wikipedia article on it strongSwapping CTRL and CAPS LOCK strong polliGo into emSystem Preferences em liliEnter the emKeyboard amp Mouse em preference pane liliIn the emKeyboard em tab click emModifier Keys em liliSwap the actions for emCaps Lock em and emControl em li olp img src https stack imgur com G8MFP png alt alt text pp strongUsing ALT OPTION as META strong polliIn the menu bar click emTerminal em liliClick emPreferences em liliUnder the emSettings em tab go to the emKeyboard em tab liliCheck the box labeled emUse option as meta key em li olp img src https stack imgur com F7vfP png alt alt text pp strongThat it You should be well on your way to becoming an Emacs master strong The settings are per keyboard so make sure you ve set it correctly for your external keyboard But yes once you make the change it should work everywhere in OS,0,NULL,NULL 44370,99720,435471,Nice Answer Good Answer Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Great Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Necromancer Good Answer Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Fanatic Popular Question Popular Question Nice Answer Good Answer Popular Question Necromancer Notable Question Popular Question Famous Question Popular Question Nice Answer Nice Question Nice Question Famous Question Nice Question Popular Question Popular Question Caucus Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Good Question Famous Question Yearling Nice Question Good Question Populist Popular Question Popular Question Popular Question Good Question Nice Answer Popular Question Favorite Question Popular Question Nice Answer Notable Question Famous Question Caucus Nice Question Notable Question Popular Question Popular Question Nice Question Nice Question Documentation User Nice Question Popular Question Notable Question Nice Question Popular Question Good Answer Famous Question Popular Question Famous Question Good Answer Popular Question Popular Question Popular Question Famous Question Custodian Yearling Notable Question Famous Question Notable Question Notable Question Popular Question Necromancer Notable Question ruby-on-rails Notable Question Famous Question Popular Question Nice Question Great Answer Good Question Notable Question Popular Question Favorite Question Popular Question Socratic Notable Question,NULL,NULL,0,NULL,NULL 44371,474397,759497,NULL,NULL,NULL,0,NULL,NULL 44372,10253558,1082977,NULL,NULL,NULL,0,NULL,NULL 44373,25886,1141722,NULL,NULL,NULL,0,NULL,NULL 44374,632865,1486,Famous Question Yearling Guru Yearling Revival Notable Question Nice Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 44375,158702,241133,Yearling Famous Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 44376,39744,190388,Notable Question Popular Question Popular Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 44377,745730,912547,Popular Question,NULL,NULL,0,NULL,NULL 44378,76700,513197,Nice Question Yearling Commentator Necromancer Revival Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44379,234761,33886,Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 44380,452374,949734,Popular Question,NULL,NULL,0,NULL,NULL 44381,2416731,495079,Commentator Notable Question,NULL,NULL,0,NULL,NULL 44382,49247,920852,Teacher Supporter Nice Answer Yearling Good Answer Yearling Critic Yearling Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 44383,67119,476569,Yearling Popular Question Necromancer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44384,474559,355492,NULL,NULL,NULL,0,NULL,NULL 44385,146491,682648,Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 44386,1050625,1242944,Popular Question Yearling Custodian Nice Answer Good Answer Yearling Notable Question Notable Question Nice Answer javascript Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44387,372313,282123,Yearling Good Answer Caucus Yearling Nice Answer Enlightened Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 44388,154829,294885,NULL,NULL,NULL,0,NULL,NULL 44389,90725,226814,Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 44390,10043767,1443352,NULL,NULL,NULL,0,NULL,NULL 44391,169702,342706,Nice Question Notable Question Yearling Famous Question Nice Answer Famous Question Popular Question Famous Question Custodian Notable Question Popular Question Yearling Popular Question Necromancer Famous Question Great Answer Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 44392,371854,1110616,NULL,NULL,NULL,0,NULL,NULL 44393,28133,551585,Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 44394,895718,556234,NULL,NULL,NULL,0,NULL,NULL 44395,297132,597890,Teacher,NULL,NULL,0,NULL,NULL 44396,87132,1053108,Popular Question,NULL,NULL,0,NULL,NULL 44397,317351,924334,Popular Question Yearling Nice Question Custodian Revival Notable Question,NULL,NULL,0,NULL,NULL 44398,278532,873197,Yearling Notable Question Popular Question Popular Question Stellar Question,NULL,NULL,0,NULL,NULL 44399,420429,424400,NULL,NULL,NULL,0,NULL,NULL 44400,575052,149174,Popular Question,NULL,NULL,0,NULL,NULL 44401,395715,176323,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44402,207319,184780,NULL,NULL,NULL,0,NULL,NULL 44403,10058,1030802,Good Answer Great Answer Good Answer Guru Yearling Nice Answer Enlightened Yearling Census Yearling,NULL,NULL,0,NULL,NULL 44404,210330,937779,Yearling Good Answer Guru Yearling Yearling Student Scholar Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 44405,436167,26604,Nice Answer Nice Answer Popular Question Good Answer Yearling Guru Announcer Yearling Notable Question Good Question Nice Question Yearling Reviewer,NULL,NULL,0,NULL,NULL 44406,349867,513068,NULL,NULL,NULL,0,NULL,NULL 44407,1204560,1200319,NULL,NULL,NULL,0,NULL,NULL 44408,4299,806591,Yearling,NULL,NULL,0,NULL,NULL 44409,84402,189486,Nice Answer Yearling Yearling Good Answer Populist Yearling Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 44410,155780,140448,Famous Question Good Question Nice Question Good Question Yearling Notable Question Good Question Nice Question Nice Question Famous Question Popular Question Favorite Question Yearling Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Famous Question Notable Question Notable Question Great Question Notable Question Favorite Question Yearling Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 44411,504342,1231755,NULL,NULL,NULL,0,NULL,NULL 44412,22490,940196,Notable Question Yearling Commentator Famous Question Good Answer Critic Yearling Revival,NULL,NULL,0,NULL,NULL 44413,135279,1454445,Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44414,1174277,1140850,Popular Question Teacher Curious Popular Question,NULL,NULL,0,NULL,NULL 44415,258878,249218,Yearling Nice Answer Nice Answer Popular Question Caucus,NULL,NULL,0,NULL,NULL 44416,121148,150367,Critic Informed Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 44417,1273675,351992,NULL,NULL,NULL,0,NULL,NULL 44418,184703,148282,NULL,NULL,NULL,0,NULL,NULL 44419,315050,1450345,NULL,NULL,NULL,0,NULL,NULL 44420,683288,1254842,NULL,NULL,NULL,0,NULL,NULL 44421,37052,912074,NULL,NULL,NULL,0,NULL,NULL 44422,235139,982190,NULL,NULL,NULL,0,NULL,NULL 44423,16386,215860,Custodian Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Informed Yearling,NULL,NULL,0,NULL,NULL 44424,376056,659176,NULL,NULL,NULL,0,NULL,NULL 44425,336940,208810,NULL,NULL,NULL,0,NULL,NULL 44426,171474,277863,Citizen Patrol Yearling Nice Answer Yearling Excavator Proofreader Informed Custodian Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 44427,867804,778388,Popular Question,NULL,NULL,0,NULL,NULL 44428,68439,714492,NULL,NULL,NULL,0,NULL,NULL 44429,663734,620577,Necromancer Announcer Yearling Nice Answer Nice Answer Necromancer Yearling Good Answer Necromancer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 44430,37596,945538,NULL,NULL,NULL,0,NULL,NULL 44431,221571,297888,Favorite Question,NULL,NULL,0,NULL,NULL 44432,154754,83304,Yearling Notable Question Nice Question html Guru Necromancer Yearling Nice Answer Census javascript Yearling,NULL,NULL,0,NULL,NULL 44433,60765,1028347,Popular Question Yearling,NULL,NULL,0,NULL,NULL 44434,872377,351607,NULL,NULL,NULL,0,NULL,NULL 44435,428686,1196068,NULL,NULL,NULL,0,NULL,NULL 44436,82343,640577,Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Populist Good Answer Good Answer Nice Answer Enlightened Guru Guru Popular Question Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44437,387608,156202,Nice Question Good Question,NULL,NULL,0,NULL,NULL 44438,362025,217949,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 44439,314428,583340,NULL,NULL,NULL,0,NULL,NULL 44440,166547,23831,NULL,NULL,NULL,0,NULL,NULL 44441,16811,484704,NULL,NULL,NULL,0,NULL,NULL 44442,1687453,969355,NULL,NULL,NULL,0,NULL,NULL 44443,50905,535079,NULL,NULL,NULL,0,NULL,NULL 44444,992540,445848,NULL,NULL,NULL,0,NULL,NULL 44445,165348,766623,NULL,NULL,NULL,0,NULL,NULL 44446,1379692,2056,Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Nice Question Popular Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 44447,231309,1171781,NULL,NULL,NULL,0,NULL,NULL 44448,1640934,782057,NULL,NULL,NULL,0,NULL,NULL 44449,320332,937066,Notable Question Critic Caucus Famous Question Popular Question Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 44450,102163,798533,Necromancer Yearling Announcer Census Self-Learner Yearling Popular Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 44451,558903,1443362,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44452,201491,308587,Famous Question Popular Question Famous Question Notable Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44453,404458,983194,Announcer,NULL,NULL,0,NULL,NULL 44454,612241,101005,Notable Question Yearling Popular Question Nice Question Notable Question Self-Learner Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 44455,75180,246589,Yearling,NULL,NULL,0,NULL,NULL 44456,1334366,53424,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44457,559431,1048342,Editor Commentator Critic Yearling Yearling Informed Autobiographer Citizen Patrol Custodian Yearling Census Yearling Nice Answer Enlightened Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 44458,488025,961516,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44459,503293,393240,NULL,NULL,NULL,0,NULL,NULL 44460,418358,383106,Popular Question,NULL,NULL,0,NULL,NULL 44461,6018,921030,Necromancer Necromancer Critic Editor Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 44462,300017,765720,Yearling Necromancer Nice Answer Yearling Announcer Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 44463,146918,949653,Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 44464,7316627,1028164,NULL,NULL,NULL,0,NULL,NULL 44465,793259,1096102,Teacher Revival Supporter Necromancer,NULL,NULL,0,NULL,NULL 44466,923853,1009897,NULL,NULL,NULL,0,NULL,NULL 44467,218616,699832,Yearling Revival Nice Answer Enlightened Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44468,68601,333170,Critic Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 44469,15527,213829,NULL,NULL,NULL,0,NULL,NULL 44470,104927,987330,Notable Question,NULL,NULL,0,NULL,NULL 44471,44245,520860,NULL,NULL,NULL,0,NULL,NULL 44472,43033,685906,NULL,NULL,NULL,0,NULL,NULL 44473,272337,1225802,NULL,NULL,NULL,0,NULL,NULL 44474,749107,324498,NULL,NULL,NULL,0,NULL,NULL 44475,428070,860840,NULL,NULL,NULL,0,NULL,NULL 44476,280644,1205460,Popular Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 44477,235540,1406105,NULL,NULL,NULL,0,NULL,NULL 44478,60217,869151,Announcer Announcer,NULL,NULL,0,NULL,NULL 44479,49666,511205,Yearling Popular Question Yearling Nice Question Announcer,NULL,NULL,0,NULL,NULL 44480,247828,1127250,NULL,NULL,NULL,0,NULL,NULL 44481,647526,968430,NULL,NULL,NULL,0,NULL,NULL 44482,191901,1011549,NULL,NULL,NULL,0,NULL,NULL 44483,373075,1226469,Yearling Good Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 44484,120018,853088,Caucus Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 44485,325997,11011,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44486,1706913,1564519,NULL,NULL,NULL,0,NULL,NULL 44487,220089,1564519,NULL,NULL,NULL,0,NULL,NULL 44488,90271,1043032,Yearling Necromancer Nice Answer Necromancer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 44489,11063580,12021,Yearling Yearling Populist Civic Duty Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 44490,104218,12021,Yearling Yearling Populist Civic Duty Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 44491,166019,535533,NULL,NULL,NULL,0,NULL,NULL 44492,201704,310837,NULL,NULL,NULL,0,NULL,NULL 44493,917594,1069558,NULL,NULL,NULL,0,NULL,NULL 44494,146580,883910,Yearling Famous Question Notable Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44495,391857,645296,Tumbleweed,NULL,NULL,0,NULL,NULL 44496,325466,1043604,NULL,NULL,NULL,0,NULL,NULL 44497,289801,200629,NULL,NULL,NULL,0,NULL,NULL 44498,444150,712182,Yearling Necromancer Popular Question Caucus Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 44499,559641,284119,Editor Teacher,NULL,NULL,0,NULL,NULL 44500,17114,1507619,Critic Scholar Commentator Caucus Constituent Necromancer Yearling Caucus Necromancer Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 44501,462662,1060366,Popular Question,NULL,NULL,0,NULL,NULL 44502,158983,588860,NULL,NULL,NULL,0,NULL,NULL 44503,102651,418563,Enthusiast Tumbleweed Yearling Nice Answer Nice Answer orientdb Student Guru Yearling Documentation User Nice Answer Enlightened Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 44504,148078,75371,NULL,NULL,NULL,0,NULL,NULL 44505,378625,1109928,NULL,NULL,NULL,0,NULL,NULL 44506,411547,1154047,Necromancer,NULL,NULL,0,NULL,NULL 44507,4997,1298250,Necromancer,NULL,NULL,0,NULL,NULL 44508,24237,210733,NULL,NULL,NULL,0,NULL,NULL 44509,365269,632242,Tumbleweed Yearling Famous Question Popular Question Necromancer Announcer Notable Question,NULL,NULL,1,NULL,ValueError Linkage uses the same cluster more than once in Python scipy fcluster python numpy scipy hierarchical clustering pI getting codeValueError Linkage uses the same cluster more than once code when trying to get flat clusters in Python with scipy cluster hierarchy fcluster This error happens only sometimes usually only with really big matrices ie 10000x10000 ppre codeimport scipy cluster hierarchy as schZ sch linkage method ward some computation here returning usually between 30 clusters sch fcluster criterion maxclust code prepWhy does it happen How can avoid it Unfortunately couldn find any useful info by googling pp strongEDIT strong Error occurs also when trying to get dendrogram No such error appear if codemethod average code is used pIt seems using href https pypi python org pypi fastcluster rel nofollow noreferrer fastcluster instead of codescipy cluster hierarchy code solves the problem In addition codefastcluster code implementation is slightly faster than codescipy code brFor more details have look at href https www jstatsoft org article view v053i09 rel nofollow noreferrer the paper ppre codeimport fastclusterZ fastcluster linkage method ward some computation here returning usually between 30 clusters fastcluster fcluster criterion maxclust code pre 44510,265294,886048,NULL,NULL,NULL,0,NULL,NULL 44511,17415,128351,Yearling Nice Answer Enlightened Custodian Yearling Necromancer Good Answer Necromancer Yearling Citizen Patrol Nice Answer Good Answer Yearling Guru Yearling Revival Nice Answer Good Answer Revival Guru Yearling Curious Necromancer,NULL,pYou can write modulesup1 sup that can measure given function The following function returns the runtime of given function in seconds ppre codedefmodule Benchmark do def measure function do function gt timer tc gt elem gt Kernel 000 000 endend code prepUse it like this ppre codeiex gt Benchmark measure fn gt 123456 654321 end 0e code prepIf you want to use that for Benchmarking then there is another answer ppA better approach than measuring single run execution time is to measure operations per timeframe This takes the code under test and executes it repeatingly within given timeframe This methodology yields more accurate results ppThere is library called href https github com mroth benchwarmer rel noreferrer Benchwarmer you can use for that ppAdd Benchwarmer to your codemix exs code ppre codedef deps do benchwarmer gt end code prepSimply pass an inline function ppre codeiex gt Benchwarmer benchmark fn gt 123456 654321 end Function lt 20 90072148 in erl eval expr gt sec 2M iterations 61 μs op Benchwarmer Results code preulli Code taken from href http www littlelines com blog 2014 06 27 elixir vs ruby showdown part one rel noreferrer http www littlelines com blog 2014 06 27 elixir vs ruby showdown part one liliAnother Benchmarking library called Benchfella href https github com alco benchfella rel noreferrer https github com alco benchfella li ul So the code above can be taken to compile and run realistic benchmark will update the answer so that do not use iex for running the example,0,NULL,NULL 44512,390096,358202,Yearling Famous Question Caucus Constituent Nice Answer Enlightened Custodian symfony Guru Yearling Popular Question Caucus Nice Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 44513,260571,1114064,NULL,NULL,NULL,0,NULL,NULL 44514,37027,652201,Nice Question Yearling Famous Question Famous Question Good Answer Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Popular Question Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 44515,23052,718163,NULL,NULL,NULL,0,NULL,NULL 44516,128320,718163,NULL,NULL,NULL,0,NULL,NULL 44517,1231711,1267885,NULL,NULL,NULL,0,NULL,NULL 44518,98603,1267885,NULL,NULL,NULL,0,NULL,NULL 44519,71988,1212922,Necromancer,NULL,NULL,0,NULL,NULL 44520,321153,204541,Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 44521,464009,1277390,Popular Question,NULL,NULL,0,NULL,NULL 44522,129352,903943,Popular Question Nice Question Nice Answer Notable Question Yearling Nice Question Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Self-Learner Necromancer Nice Question Yearling Nice Answer Announcer Pundit Nice Answer Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 44523,467812,1097248,NULL,NULL,NULL,0,NULL,NULL 44524,963817,804280,Necromancer,NULL,NULL,0,NULL,NULL 44525,233185,90312,Famous Question Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 44526,458345,90312,Famous Question Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 44527,368015,1312309,NULL,NULL,NULL,0,NULL,NULL 44528,5502691,1363954,NULL,NULL,NULL,0,NULL,NULL 44529,96601,676213,NULL,NULL,NULL,0,NULL,NULL 44530,683323,201865,Nice Question Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 44531,8754,199100,Yearling Student Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 44532,83679,1331967,NULL,NULL,NULL,0,NULL,NULL 44533,147738,574391,Notable Question Yearling Necromancer Announcer Nice Answer Necromancer Announcer Yearling Announcer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44534,347003,211131,NULL,NULL,NULL,0,NULL,NULL 44535,6854025,1152564,Autobiographer,NULL,NULL,0,NULL,NULL 44536,34213,1152564,Autobiographer,NULL,NULL,0,NULL,NULL 44537,5596,216357,Custodian Nice Answer Disciplined Popular Question Yearling Revival Necromancer Yearling Autobiographer Nice Answer Enlightened Good Answer Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 44538,365059,465345,Nice Answer Nice Answer ruby-on-rails Necromancer Custodian Custodian Custodian Custodian Nice Answer Nice Question Nice Answer Guru Nice Answer Yearling Good Answer Notable Question Yearling Nice Answer Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 44539,47716,1430290,Revival,NULL,NULL,0,NULL,NULL 44540,218058,744921,NULL,NULL,NULL,0,NULL,NULL 44541,194089,637163,Yearling,NULL,NULL,0,NULL,NULL 44542,136533,445340,NULL,NULL,NULL,0,NULL,NULL 44543,163216,970386,NULL,NULL,NULL,0,NULL,NULL 44544,384096,318022,NULL,NULL,NULL,0,NULL,NULL 44545,1050040,1330974,Critic Famous Question Popular Question Notable Question Caucus Popular Question Yearling Popular Question Teacher Popular Question Popular Question Nice Question Citizen Patrol Popular Question Popular Question Inquisitive Yearling Nice Question Popular Question Popular Question Yearling Peer Pressure Custodian Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44546,271589,676782,Supporter Informed Autobiographer Editor Commentator Citizen Patrol Tumbleweed Student Yearling Caucus Constituent Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 44547,687536,1302338,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 44548,280026,1241878,Popular Question Editor,NULL,NULL,0,NULL,NULL 44549,572225,1402202,NULL,NULL,NULL,0,NULL,NULL 44550,93220,1369198,Yearling Great Answer Yearling Custodian Documentation User Custodian Custodian Custodian Citizen Patrol Explainer Yearling,NULL,NULL,0,NULL,NULL 44551,269755,1481849,NULL,NULL,NULL,0,NULL,NULL 44552,676857,452107,Critic,NULL,NULL,0,NULL,NULL 44553,394075,1449117,Notable Question Self-Learner Popular Question Tumbleweed Yearling Popular Question Caucus Popular Question Critic Civic Duty Popular Question Caucus Enthusiast Yearling Nice Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 44554,592637,779524,NULL,NULL,NULL,0,NULL,NULL 44555,20786,229613,NULL,NULL,NULL,0,NULL,NULL 44556,1422726,1524446,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44557,6716,912701,NULL,NULL,NULL,0,NULL,NULL 44558,587959,1331793,NULL,NULL,NULL,0,NULL,NULL 44559,6105403,347735,Necromancer Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44560,502486,377035,NULL,NULL,NULL,0,NULL,NULL 44561,1225706,1334754,NULL,NULL,NULL,0,NULL,NULL 44562,844307,92602,Yearling Popular Question Guru Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44563,74647,463109,Nice Answer Popular Question Excavator Notable Question Notable Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 44564,106536,683278,Commentator Editor Necromancer Necromancer Caucus Critic Yearling,NULL,NULL,0,NULL,NULL 44565,580071,1325807,NULL,NULL,NULL,0,NULL,NULL 44566,28123,1176212,NULL,NULL,NULL,0,NULL,NULL 44567,2182848,1176212,NULL,NULL,NULL,0,NULL,NULL 44568,201251,1388606,NULL,NULL,NULL,0,NULL,NULL 44569,134582,742081,Yearling Yearling Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 44570,508924,1392653,Yearling,NULL,NULL,0,NULL,NULL 44571,130308,1272686,Yearling Caucus Yearling Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 44572,89323,159155,NULL,NULL,NULL,0,NULL,NULL 44573,634696,501701,NULL,NULL,NULL,0,NULL,NULL 44574,473177,313750,Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Yearling Notable Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44575,1438572,1489970,Student Popular Question Nice Question,NULL,NULL,0,NULL,NULL 44576,354800,934011,NULL,NULL,NULL,0,NULL,NULL 44577,201288,220333,NULL,NULL,NULL,0,NULL,NULL 44578,113966,928554,NULL,NULL,NULL,0,NULL,NULL 44579,307516,1099092,NULL,NULL,NULL,0,NULL,NULL 44580,435777,188153,Necromancer Editor Excavator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44581,230,1131837,NULL,NULL,NULL,0,NULL,NULL 44582,5028146,475705,NULL,NULL,NULL,0,NULL,NULL 44583,44900,405980,NULL,NULL,NULL,0,NULL,NULL 44584,2389918,21746,NULL,NULL,NULL,0,NULL,NULL 44585,2412469,1045928,NULL,NULL,NULL,0,NULL,NULL 44586,10104,236697,Famous Question Notable Question Nice Question Yearling Nice Question Famous Question Favorite Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 44587,167654,240071,Notable Question Scholar Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 44588,121991,273523,NULL,NULL,NULL,0,NULL,NULL 44589,211533,650402,Necromancer Supporter Yearling Commentator,NULL,NULL,0,NULL,NULL 44590,1343580,420405,Good Answer Yearling Yearling Peer Pressure Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 44591,243559,692065,Nice Answer Enlightened Yearling Civic Duty Popular Question Caucus javascript Good Answer Yearling Famous Question Custodian Popular Question Nice Answer Notable Question Notable Question Yearling Notable Question Organizer Guru,NULL,NULL,0,NULL,NULL 44592,843898,26734,Curious Nice Answer Enlightened Yearling Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 44593,556938,1142264,NULL,NULL,NULL,0,NULL,NULL 44594,262861,1122457,NULL,NULL,NULL,0,NULL,NULL 44595,133562,499193,NULL,NULL,NULL,0,NULL,NULL 44596,886118,1012370,NULL,NULL,NULL,0,NULL,NULL 44597,1040746,531180,NULL,NULL,NULL,0,NULL,NULL 44598,26423,686038,NULL,NULL,NULL,0,NULL,NULL 44599,1388423,489770,NULL,NULL,NULL,0,NULL,NULL 44600,2634872,33232,Famous Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 44601,43554,1156682,NULL,NULL,NULL,0,NULL,NULL 44602,136319,650718,Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Famous Question Yearling Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question Famous Question Famous Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 44603,168257,448081,Yearling Tumbleweed Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 44604,842745,393991,Revival Critic Caucus Yearling Necromancer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44605,915752,745089,NULL,NULL,NULL,0,NULL,NULL 44606,30665,1229993,Notable Question Notable Question Popular Question Popular Question Famous Question Teacher,NULL,NULL,0,NULL,NULL 44607,1513062,1450609,Popular Question Teacher Scholar Editor Autobiographer Critic Supporter,NULL,NULL,0,NULL,NULL 44608,2152374,578614,NULL,NULL,NULL,0,NULL,NULL 44609,123345,962659,NULL,NULL,NULL,0,NULL,NULL 44610,231765,321816,Good Answer Yearling Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 44611,7526,1191365,NULL,NULL,NULL,0,NULL,NULL 44612,64540,24036,NULL,NULL,NULL,0,NULL,NULL 44613,520505,1250703,NULL,NULL,NULL,0,NULL,NULL 44614,168450,483975,NULL,NULL,NULL,0,NULL,NULL 44615,303110,814881,NULL,NULL,NULL,0,NULL,NULL 44616,1570669,340332,Famous Question,NULL,NULL,0,NULL,NULL 44617,735012,1561818,NULL,NULL,NULL,0,NULL,NULL 44618,8357345,761926,NULL,NULL,NULL,0,NULL,NULL 44619,649744,761926,NULL,NULL,NULL,0,NULL,NULL 44620,129438,60950,Nice Answer Yearling php Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Curious Nice Answer Good Answer Nice Answer Good Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Generalist Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Yearling Caucus Good Answer Notable Question Nice Answer Guru Nice Answer Enlightened Popular Question Good Answer,NULL,NULL,0,NULL,NULL 44621,70171,174408,Necromancer Nice Answer Nice Answer Enlightened Yearling Nice Answer Guru Yearling Good Answer Custodian Custodian Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44622,36752,568398,Commentator Caucus Documentation User,NULL,NULL,0,NULL,NULL 44623,96225,1363602,NULL,NULL,NULL,0,NULL,NULL 44624,566422,1403953,Student Scholar,NULL,NULL,0,NULL,NULL 44625,1939814,104135,Popular Question,NULL,NULL,0,NULL,NULL 44626,268939,104135,Popular Question,NULL,NULL,0,NULL,NULL 44627,916648,747474,NULL,NULL,NULL,0,NULL,NULL 44628,118564,1412000,Informed Teacher Yearling Caucus Critic,NULL,NULL,0,NULL,NULL 44629,51033,875948,NULL,NULL,NULL,0,NULL,NULL 44630,115492,1273406,Necromancer,NULL,NULL,0,NULL,NULL 44631,256563,1183736,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44632,476808,515065,Good Question Yearling Yearling Nice Answer Announcer Necromancer,NULL,NULL,0,NULL,NULL 44633,639017,401041,Citizen Patrol Good Answer Yearling python Caucus Guru Nice Question Yearling Census Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44634,1858756,401041,Citizen Patrol Good Answer Yearling python Caucus Guru Nice Question Yearling Census Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 44635,271922,503796,NULL,NULL,NULL,0,NULL,NULL 44636,495357,54606,Yearling javascript Nice Answer Nice Answer Inquisitive Popular Question Notable Question Popular Question Notable Question Necromancer Popular Question Popular Question Caucus Constituent Necromancer Electorate Popular Question Yearling Good Answer Nice Question Notable Question Popular Question Popular Question Famous Question Steward Nice Answer Custodian Popular Question Caucus Popular Question Documentation User Nice Answer Enlightened Good Answer Popular Question Popular Question Census Yearling Caucus Popular Question Popular Question Guru Great Answer Popular Question Famous Question Notable Question Notable Question,NULL,pIt not git auto completing the file names it your shell Do you have the same delay when doing cat forms lt tab ppCheck out this post with similar problems pp href http talkings org post 5236392664 zsh and slow git completion rel noreferrer http talkings org post 5236392664 zsh and slow git completion ppThis post suggests adding the following to your zshrc ppre code git files wanted files expl local files files code prepEDIT Here the original text of that post pblockquote pI found many posts relating complaints about how painfully slow git auto completion can be in large repositories There were various suggested patches and suggestions to load the latest zsh Maybe one of those things would work but all really want is for it to complete the names of branches and files as they are in the file system did not find any suggestions on how to get this behavior so figured it out for myself thought would share this for anyone who might benefit from it just added the following to my zshrc file ppre code git files wanted files expl local files files code pre pNow can run git commands and get near instant completion while still getting file completion similar to what ls would provide blockquote Thanks care to explain how it works,0,NULL,NULL 44637,146916,1122779,NULL,NULL,NULL,0,NULL,NULL 44638,394461,128040,Informed Yearling Documentation Pioneer Documentation User Famous Question,NULL,NULL,0,NULL,NULL 44639,226429,812575,Good Answer Nice Answer Enlightened Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 44640,35522,563187,Yearling Yearling Commentator Nice Answer Enlightened Yearling Good Answer Popular Question Yearling Nice Answer Guru Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 44641,267174,1302998,NULL,NULL,NULL,0,NULL,NULL 44642,1024407,686132,NULL,NULL,NULL,0,NULL,NULL 44643,38564,390110,Popular Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 44644,2524001,1457675,Popular Question,NULL,NULL,0,NULL,NULL 44645,123971,1333300,NULL,NULL,NULL,0,NULL,NULL 44646,82518,415144,Yearling Curious Notable Question Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44647,127331,571,Necromancer Notable Question Great Question Notable Question Nice Answer Nice Answer Yearling Famous Question Guru Notable Question Good Answer Great Question Famous Question Notable Question Good Question Yearling Revival Nice Answer Nice Question Notable Question Notable Question Necromancer Popular Question Nice Question Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 44648,522799,1216579,Popular Question Custodian Necromancer,NULL,NULL,0,NULL,NULL 44649,83017,82046,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 44650,28837,1322514,NULL,NULL,NULL,0,NULL,NULL 44651,62042,233949,NULL,NULL,NULL,0,NULL,NULL 44652,61954,784247,NULL,NULL,NULL,0,NULL,NULL 44653,212731,784247,NULL,NULL,NULL,0,NULL,NULL 44654,331193,312294,Great Answer Notable Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44655,3535083,169992,Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Famous Question Notable Question Favorite Question Nice Question Nice Question Popular Question Famous Question Famous Question Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Informed Favorite Question Popular Question Great Question Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Necromancer Notable Question Caucus Suffrage Constituent Notable Question Nice Question Great Question Good Answer Notable Question Notable Question Notable Question Famous Question Nice Question Popular Question Nice Question Nice Question Good Question Favorite Question Nice Answer Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Great Question Popular Question Popular Question Favorite Question Famous Question Popular Question Notable Question Popular Question Yearling Custodian Notable Question Good Question Good Answer Popular Question Popular Question Promoter Nice Question Popular Question Famous Question Famous Question Notable Question Good Question Peer Pressure Popular Question Notable Question Popular Question Popular Question Notable Question Great Question Revival Notable Question Popular Question Pundit Popular Question Nice Answer Famous Question Necromancer Nice Question Notable Question Notable Question Nice Question Nice Question Famous Question Famous Question Popular Question Nice Question Nice Question Custodian Electorate Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Good Question,NULL,Install Gem from Github Branch rubygems branch github pIn my gemfile have this ppre codegem authlogic git gt git github com odorcicd authlogic git branch gt rails3 code prepHow do install that as gem so can test it done thanks for pointing out,0,NULL,NULL 44656,3775914,169992,Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Famous Question Notable Question Favorite Question Nice Question Nice Question Popular Question Famous Question Famous Question Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Informed Favorite Question Popular Question Great Question Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Necromancer Notable Question Caucus Suffrage Constituent Notable Question Nice Question Great Question Good Answer Notable Question Notable Question Notable Question Famous Question Nice Question Popular Question Nice Question Nice Question Good Question Favorite Question Nice Answer Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Great Question Popular Question Popular Question Favorite Question Famous Question Popular Question Notable Question Popular Question Yearling Custodian Notable Question Good Question Good Answer Popular Question Popular Question Promoter Nice Question Popular Question Famous Question Famous Question Notable Question Good Question Peer Pressure Popular Question Notable Question Popular Question Popular Question Notable Question Great Question Revival Notable Question Popular Question Pundit Popular Question Nice Answer Famous Question Necromancer Nice Question Notable Question Notable Question Nice Question Nice Question Famous Question Famous Question Popular Question Nice Question Nice Question Custodian Electorate Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Good Question,NULL,Install Gem from Github Branch rubygems branch github pIn my gemfile have this ppre codegem authlogic git gt git github com odorcicd authlogic git branch gt rails3 code prepHow do install that as gem so can test it done thanks for pointing out,0,NULL,NULL 44657,2041,169992,Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Famous Question Notable Question Favorite Question Nice Question Nice Question Popular Question Famous Question Famous Question Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Informed Favorite Question Popular Question Great Question Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Necromancer Notable Question Caucus Suffrage Constituent Notable Question Nice Question Great Question Good Answer Notable Question Notable Question Notable Question Famous Question Nice Question Popular Question Nice Question Nice Question Good Question Favorite Question Nice Answer Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Great Question Popular Question Popular Question Favorite Question Famous Question Popular Question Notable Question Popular Question Yearling Custodian Notable Question Good Question Good Answer Popular Question Popular Question Promoter Nice Question Popular Question Famous Question Famous Question Notable Question Good Question Peer Pressure Popular Question Notable Question Popular Question Popular Question Notable Question Great Question Revival Notable Question Popular Question Pundit Popular Question Nice Answer Famous Question Necromancer Nice Question Notable Question Notable Question Nice Question Nice Question Famous Question Famous Question Popular Question Nice Question Nice Question Custodian Electorate Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Good Question,NULL,Install Gem from Github Branch rubygems branch github pIn my gemfile have this ppre codegem authlogic git gt git github com odorcicd authlogic git branch gt rails3 code prepHow do install that as gem so can test it done thanks for pointing out,0,NULL,NULL 44658,71902,71963,NULL,NULL,NULL,0,NULL,NULL 44659,894859,950228,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 44660,6015,294389,Notable Question Nice Question Tumbleweed Teacher Yearling Notable Question Self-Learner Popular Question Curious,NULL,NULL,0,NULL,NULL 44661,245177,176258,Popular Question Yearling Nice Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 44662,475719,150463,Notable Question Yearling Famous Question Nice Question Notable Question Good Answer Yearling Nice Answer Enlightened Nice Answer php Yearling,NULL,NULL,0,NULL,NULL 44663,6923868,1440254,Informed,NULL,NULL,0,NULL,NULL 44664,82115,881288,NULL,NULL,NULL,0,NULL,NULL 44665,664665,315056,NULL,NULL,NULL,0,NULL,NULL 44666,167556,1055585,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44667,1566368,826650,Good Answer Yearling Yearling Famous Question Yearling Great Answer Yearling Populist,NULL,NULL,0,NULL,NULL 44668,185019,544045,Excavator Nice Answer Great Answer Nice Answer Yearling Nice Answer Enlightened Good Answer Notable Question Good Answer Yearling Guru jquery,NULL,NULL,0,NULL,NULL 44669,480014,455678,Popular Question Popular Question Notable Question Necromancer Notable Question Yearling Popular Question Notable Question Nice Answer Notable Question Notable Question Notable Question Yearling Notable Question Nice Answer Nice Question Popular Question Nice Question Nice Answer Enlightened Notable Question Yearling,NULL,pAfter little bit of searching through codeioctl code request codes found something that actually works ppre code include lt sys disk gt include lt sys ioctl gt include lt fcntl gt int main Open disk uint32 dev open dev disk1 RDONLY if dev perror Failed to open disk return uint64 sector count Query the number of sectors on the disk ioctl dev DKIOCGETBLOCKCOUNT amp sector count uint32 sector size Query the size of each sector ioctl dev DKIOCGETBLOCKSIZE amp sector size uint64 disk size sector count sector size printf ld disk size return code prepSomething like that should do the trick just copied the code had into that so not sure if it would compile alright but it should could be related to System Integrity Protection https apple stackexchange com questions 208478 how do disable system integrity protection sip aka rootless on macos os or perhaps you need to run your application as root Mapping the error code would give you better idea The syscall will set errno which you can then compare against the values here https developer apple com library archive documentation System Conceptual ManPages iPhoneOS man2 open html,0,NULL,NULL 44670,1124671,1472798,NULL,NULL,NULL,0,NULL,NULL 44671,52902,671819,NULL,NULL,NULL,0,NULL,NULL 44672,519602,272689,Yearling Notable Question Self-Learner Popular Question Popular Question Excavator Organizer Yearling Citizen Patrol Custodian Enthusiast Popular Question Yearling Fanatic Popular Question Popular Question,NULL,Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here Yeah that my thought as well hoping there is some way to disable it after the fact maybe not through app config but something like StopCsrfProtect app or something But that probably wishful thinking Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here could do that but worried it might mess up any integration testing would either need to remember to change the config file back and forth when running unit tests or risk not seeing real csrf errors while developing forget to put hidden tag in jinja template or something Hmm,1,Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here,NULL 44673,2328934,272689,Yearling Notable Question Self-Learner Popular Question Popular Question Excavator Organizer Yearling Citizen Patrol Custodian Enthusiast Popular Question Yearling Fanatic Popular Question Popular Question,NULL,Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here Yeah that my thought as well hoping there is some way to disable it after the fact maybe not through app config but something like StopCsrfProtect app or something But that probably wishful thinking Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here could do that but worried it might mess up any integration testing would either need to remember to change the config file back and forth when running unit tests or risk not seeing real csrf errors while developing forget to put hidden tag in jinja template or something Hmm,1,Flask disable CSRF in unittest flask flask wtforms pIn my projects init py have this ppre codeapp Flask name app config from object config CsrfProtect app db SQLAlchemy app code prepMy development config file looks like ppre codeimport osbasedir os path abspath os path dirname file DEBUG TrueWTF CSRF ENABLED TrueSECRET KEY supersecretkey SQLALCHEMY DATABASE URI sqlite os path join basedir project db SQLALCHEMY TRACK MODIFICATIONS False code prepAnd in my unittest setUp have this ppre codefrom project import app dbclass ExampleTest unittest TestCase def setUp self app config TESTING True app config WTF CSRF ENABLED False app config SQLALCHEMY DATABASE URI sqlite self app app test client db create all code prepIn theory setting WTF CSRF ENABLED to False here should prevent CSRF for the unit tests however still getting CSRF errors if do POST while unit testing think it is because have already called CsrfProtect app while WTF CSRF ENABLED is True when import app it is called If set WTF CSRF ENABLED False in the config file it works as expected ppIs there anyway can disable CSRF after it has already been enabled Or am barking up the wrong tree here,NULL 44674,109667,1154304,NULL,NULL,NULL,0,NULL,NULL 44675,656362,304627,Popular Question Necromancer Nice Question Caucus,NULL,NULL,0,NULL,NULL 44676,940582,206881,Yearling Nice Answer Nice Answer Popular Question Famous Question Nice Answer Enlightened Yearling Notable Question Guru php Yearling,NULL,NULL,0,NULL,NULL 44677,940584,206881,Yearling Nice Answer Nice Answer Popular Question Famous Question Nice Answer Enlightened Yearling Notable Question Guru php Yearling,NULL,NULL,0,NULL,NULL 44678,357871,1785,Popular Question Good Question Great Answer Custodian Custodian Custodian Good Question Good Question Tumbleweed Famous Question Famous Question Nice Question Good Question Notable Question Yearling Popular Question Great Question Good Question Famous Question Good Answer Favorite Question Notable Question Popular Question Good Question Good Question Nice Answer Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Yearling Good Question Notable Question Famous Question Popular Question Stellar Question,NULL,NULL,0,NULL,NULL 44679,1506357,631338,Teacher Supporter Announcer Announcer,NULL,NULL,0,NULL,NULL 44680,2398,73511,Yearling,NULL,NULL,0,NULL,NULL 44681,1464455,6160,Famous Question Popular Question Famous Question Popular Question Popular Question Inquisitive Popular Question Notable Question Good Answer Nice Question Good Question Revival Yearling Promoter Popular Question Nice Answer Notable Question Notable Question Yearling Great Answer Favorite Question Necromancer Nice Question Yearling,NULL,NULL,1,NULL,Python Logging to Tkinter Text Widget python logging tkinter pDoes any one out there have an example of how to setup logging in Python to Tkinter Text Widget have seen this used in several apps but cannot figure out how to direct the logging to anything other than log file pBuilding further on ford answer here scrolling Text widget that tails the log The codelogging handler code member is what you add to your logger ppre codeimport loggingfrom Tkinter import END Scrollbar Textimport ttkclass LoggingHandlerFrame ttk Frame class Handler logging Handler def init self widget logging Handler init self self setFormatter logging Formatter asctime message self widget widget self widget config state disabled def emit self record self widget config state normal self widget insert END self format record self widget see END self widget config state disabled def init self args kwargs ttk Frame init self args kwargs self columnconfigure weight self columnconfigure weight self rowconfigure weight self scrollbar Scrollbar self self scrollbar grid row column sticky self text Text self yscrollcommand self scrollbar set self text grid row column sticky self scrollbar config command self text yview self logging handler LoggingHandlerFrame Handler self text code pre 44682,63004,373719,Popular Question Popular Question Caucus Revival Explainer,NULL,NULL,0,NULL,NULL 44683,10639,960133,NULL,NULL,NULL,0,NULL,NULL 44684,947155,772240,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44685,310414,772240,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44686,181903,623988,Famous Question,NULL,NULL,0,NULL,NULL 44687,1366698,1328100,NULL,NULL,NULL,0,NULL,NULL 44688,279530,113819,NULL,NULL,NULL,0,NULL,NULL 44689,72405,1235137,NULL,NULL,NULL,0,NULL,NULL 44690,167139,656894,NULL,NULL,NULL,0,NULL,NULL 44691,45820,209803,Necromancer Notable Question Nice Answer Famous Question Yearling Good Question Good Answer Yearling Notable Question Guru Revival Notable Question Necromancer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 44692,505951,322824,NULL,NULL,NULL,0,NULL,NULL 44693,715393,643059,Supporter,NULL,NULL,0,NULL,NULL 44694,5770415,827979,Supporter Editor Necromancer Student Scholar Critic Nice Answer Yearling Yearling Good Answer Yearling Commentator Yearling Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 44695,193282,251121,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 44696,4769,1057020,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44697,331741,826564,Custodian Editor Student Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44698,1090103,1566854,NULL,NULL,NULL,0,NULL,NULL 44699,657462,710075,NULL,NULL,NULL,0,NULL,NULL 44700,37724,957338,NULL,NULL,NULL,0,NULL,NULL 44701,910919,837849,Popular Question Notable Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 44702,402131,612428,Great Question Yearling Notable Question Nice Question Popular Question Popular Question Popular Question Yearling Famous Question Good Question Stellar Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44703,198819,365091,Guru Yearling Revival,NULL,NULL,0,NULL,NULL 44704,20799,702312,NULL,NULL,NULL,0,NULL,NULL 44705,29147,1422895,NULL,NULL,NULL,0,NULL,NULL 44706,498584,1014229,NULL,NULL,NULL,0,NULL,NULL 44707,1933741,1014229,NULL,NULL,NULL,0,NULL,NULL 44708,9729,988919,NULL,NULL,NULL,0,NULL,NULL 44709,254691,386378,Custodian Yearling Famous Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44710,1204408,713866,Enthusiast Informed Documentation User Good Question Caucus,NULL,NULL,0,NULL,NULL 44711,8524297,713866,Enthusiast Informed Documentation User Good Question Caucus,NULL,NULL,0,NULL,NULL 44712,361938,1427399,Notable Question Famous Question Yearling Announcer Nice Question Popular Question Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44713,85243,790742,NULL,NULL,NULL,0,NULL,NULL 44714,252598,832733,NULL,NULL,NULL,0,NULL,NULL 44715,728232,399531,NULL,NULL,NULL,0,NULL,NULL 44716,749096,399531,NULL,NULL,NULL,0,NULL,NULL 44717,9531,1103951,Teacher,NULL,NULL,0,NULL,NULL 44718,1178482,1401973,Custodian Yearling Good Answer Custodian Yearling javascript Yearling Necromancer,NULL,NULL,0,NULL,NULL 44719,459822,931490,NULL,NULL,NULL,0,NULL,NULL 44720,698747,1562891,Supporter,NULL,NULL,0,NULL,NULL 44721,236994,1053144,NULL,NULL,NULL,0,NULL,NULL 44722,318110,1174250,Informed Nice Question Popular Question Popular Question Yearling Critic Enthusiast,NULL,NULL,0,NULL,NULL 44723,54608,631001,Yearling Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 44724,841,42565,Nice Question Yearling Good Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 44725,323608,691230,NULL,NULL,NULL,0,NULL,NULL 44726,20347,902281,NULL,NULL,NULL,0,NULL,NULL 44727,6277,166062,Announcer Nice Answer Yearling Necromancer Announcer Revival Good Answer Announcer Announcer Necromancer Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44728,64483,1022253,NULL,NULL,NULL,0,NULL,NULL 44729,406966,1464,Notable Question,NULL,NULL,0,NULL,NULL 44730,22871,897161,NULL,NULL,NULL,0,NULL,NULL 44731,903217,271004,NULL,NULL,NULL,0,NULL,NULL 44732,1486695,1233285,NULL,NULL,NULL,0,NULL,NULL 44733,8286907,33318,NULL,NULL,NULL,0,NULL,NULL 44734,234063,33318,NULL,NULL,NULL,0,NULL,NULL 44735,497107,380151,Good Answer Critic Favorite Question Yearling Caucus Announcer Census Good Question,NULL,NULL,0,NULL,NULL 44736,545254,1427863,Supporter,NULL,NULL,0,NULL,NULL 44737,1070624,631231,NULL,NULL,NULL,0,NULL,NULL 44738,33878,8264,Good Answer,NULL,NULL,0,NULL,NULL 44739,644300,1048202,NULL,NULL,NULL,0,NULL,NULL 44740,299346,126844,NULL,NULL,NULL,0,NULL,NULL 44741,34398,308174,Nice Answer Famous Question docker Good Answer Necromancer Famous Question Revival Good Answer Notable Question Popular Question Nice Question Yearling Famous Question Notable Question Revival Notable Question Notable Question Guru Nice Question Great Answer Populist Investor Famous Question Popular Question Necromancer Nice Answer Nice Answer Nice Answer Enlightened Stellar Question Favorite Question Popular Question Great Answer Nice Question Nice Answer Enlightened Revival Notable Question Caucus Good Question Popular Question Necromancer Popular Question Notable Question Famous Question Great Question Famous Question Necromancer Popular Question Yearling Necromancer Good Question Famous Question Notable Question Notable Question Necromancer Great Answer Popular Question Famous Question Caucus Constituent Notable Question Nice Answer Documentation User Nice Answer Notable Question Nice Question Notable Question Revival Good Answer Good Question Revival Good Question Famous Question Yearling Good Question Popular Question Popular Question Famous Question Revival Notable Question Nice Answer Famous Question Good Question Popular Question Nice Question Nice Question Good Answer Guru Popular Question Notable Question Popular Question,NULL,NULL,1,How to start pod in command line without deployment in kubernetes kubernetes minikube pI want to debug the pod in simple way therefore want to start the pod without deployment ppBut it will automatically create deployment ppre code kubectl run nginx image nginx port 80deployment nginx created code prepSo have to create the codenginx yaml code file ppre apiVersion v1kind Podmetadata name nginxspec containers name nginx image nginx ports containerPort 80 prepAnd create the pod like below then it creates pod only ppre codekubectl create nginx yamlpod nginx created code prepHow can in command line to specify the codekind Pod code to avoid codedeployment code pp run under minikue 20 and kubernetes under Windows,NULL 44742,637523,1247814,NULL,NULL,NULL,0,NULL,NULL 44743,48340,555187,Famous Question Good Answer Yearling Announcer Populist,NULL,NULL,1,NULL,Is there workaround to open URLs containing underscores in Ruby ruby open uri pI using open uri to open URLs ppre coderesp open http sub domain domain com code prepIf it contains underscore get an error ppreURI InvalidURIError the scheme http does not accept registry part sub domain domain com or bad hostname prepI understand that this is because according to RFC URLs can contain only letters and numbers Is there any workaround pHere is patch that solves the problem for wide variety of situations rest client open uri etc without using external gems or overriding parts of URI parse ppre codemodule URI DEFAULT PARSER Parser new HOSTNAME gt zA zA zA zA zA zA end code prepSource href https github com ruby ruby blob 202bbda2bf5f25343e286099140fb9282880ecba lib uri rfc2396 parser rb L86 rel nofollow noreferrer lib uri rfc2396 parser rb L86 ppRuby core has an open issue href https bugs ruby lang org issues 8241 rel nofollow noreferrer https bugs ruby lang org issues 8241 44744,480677,1536530,NULL,NULL,NULL,0,NULL,NULL 44745,410262,50102,Excavator,NULL,NULL,0,NULL,NULL 44746,255557,793648,NULL,NULL,NULL,0,NULL,NULL 44747,4211322,290019,NULL,NULL,NULL,0,NULL,NULL 44748,15451,549521,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 44749,147395,913295,Necromancer Popular Question Good Question Yearling Famous Question Popular Question Announcer Popular Question Announcer Popular Question Nice Answer Popular Question Nice Question Custodian Announcer Nice Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 44750,53818,606925,NULL,NULL,NULL,0,NULL,NULL 44751,392697,208607,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 44752,49442,532861,Yearling,NULL,NULL,0,NULL,NULL 44753,1476564,1483463,NULL,NULL,NULL,0,NULL,NULL 44754,400146,4911,Custodian Civic Duty Yearling Caucus Custodian Notable Question Good Question Yearling c# Custodian Yearling,NULL,NULL,0,NULL,NULL 44755,396458,682442,NULL,NULL,NULL,0,NULL,NULL 44756,218980,1490196,NULL,NULL,NULL,0,NULL,NULL 44757,223059,768192,NULL,NULL,NULL,0,NULL,NULL 44758,264619,630969,NULL,NULL,NULL,0,NULL,NULL 44759,485065,794559,Necromancer Caucus,NULL,NULL,0,NULL,NULL 44760,19532,520910,Teacher Commentator Critic Yearling Supporter Informed Yearling Talkative Yearling Tenacious Caucus Revival,NULL,NULL,0,NULL,NULL 44761,1492837,953356,NULL,NULL,NULL,0,NULL,NULL 44762,78278,88764,Nice Answer Yearling Steward Steward Steward Populist Steward Caucus Reviewer Yearling Caucus Documentation User Caucus Yearling Nice Answer Custodian Custodian Good Answer Reviewer,NULL,NULL,0,NULL,NULL 44763,188968,73080,NULL,NULL,NULL,0,NULL,NULL 44764,26093,944719,Necromancer,NULL,NULL,0,NULL,NULL 44765,359480,895007,Notable Question Necromancer Enthusiast Announcer Pundit Announcer Announcer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 44766,234059,392968,Critic Popular Question,NULL,NULL,0,NULL,NULL 44767,493111,742302,Popular Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 44768,715579,463277,Popular Question,NULL,NULL,0,NULL,NULL 44769,39341,629514,Yearling Nice Question Notable Question Yearling Commentator,NULL,NULL,0,NULL,NULL 44770,735128,103365,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 44771,3011584,1514681,Nice Question Caucus Popular Question Caucus Popular Question Necromancer Caucus Yearling Announcer Famous Question Good Question,NULL,NULL,0,NULL,NULL 44772,451872,1514681,Nice Question Caucus Popular Question Caucus Popular Question Necromancer Caucus Yearling Announcer Famous Question Good Question,NULL,NULL,0,NULL,NULL 44773,162777,594555,NULL,NULL,NULL,0,NULL,NULL 44774,4130,106205,Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer Good Answer Guru Great Answer Yearling Nice Answer version-control Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Pundit Nice Answer Great Answer Yearling Good Answer Tag Editor Custodian Caucus Constituent Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Great Answer Sportsmanship Custodian Custodian Custodian Custodian Vox Populi Informed Strunk & White git-branch Custodian Proofreader Custodian Reviewer Caucus Constituent Nice Answer Enlightened Reviewer Steward Good Answer Reviewer Reviewer Yearling Famous Question Steward Good Answer Steward Good Answer Nice Question Good Answer Revival Fanatic Great Answer,NULL,NULL,0,NULL,NULL 44775,63336,1331367,NULL,NULL,NULL,0,NULL,NULL 44776,902167,1227116,Notable Question Popular Question Civic Duty Yearling Curious Good Answer Tumbleweed Popular Question Self-Learner Necromancer Yearling Notable Question Necromancer Yearling Revival Popular Question Great Answer,NULL,NULL,0,NULL,NULL 44777,307159,352104,NULL,NULL,NULL,0,NULL,NULL 44778,510015,1328497,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 44779,299000,174133,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 44780,255691,423105,Nice Answer Notable Question Nice Answer Investor Custodian Necromancer Yearling Nice Question Popular Question Good Question Nice Answer Enlightened Nice Question Caucus Nice Answer Nice Answer Inquisitive Census Nice Question Nice Answer Popular Question Announcer Good Answer Nice Question Announcer Announcer Popular Question Announcer Caucus Announcer Necromancer Yearling Necromancer Nice Answer Nice Answer Enlightened Announcer Announcer Nice Answer Guru Good Answer javascript Announcer Popular Question Revival Necromancer Announcer Necromancer Caucus java Necromancer Famous Question Popular Question Nice Answer Nice Answer Nice Question Famous Question Popular Question Yearling Necromancer Necromancer Announcer Necromancer Announcer Nice Answer,NULL,Why do need to do set upstream all the time git git branch pI create new branch in Git ppre codegit branch my branch code prepPush it ppre codegit push origin my branch code prepNow say someone made some changes on the server and want to pull from codeorigin my branch code do ppre codegit pull code prepBut get ppre codeYou asked me to pull without telling me which branch youwant to merge with and branch my branch merge inyour configuration file does not tell me either Pleasespecify which branch you want to use on the command line andtry again git pull lt repository gt lt refspec gt See git pull for details If you often merge with the same branch you may want touse something like the following in your configuration file branch my branch remote lt nickname gt merge lt remote ref gt remote lt nickname gt url lt url gt fetch lt refspec gt See git config for details code prepI learned that can make it work with ppre codegit branch set upstream my branch origin my branch code prepBut why do need to do this for every branch create Isn it obvious that if push codemy branch code into codeorigin my branch code then would want to pull codeorigin my branch code into codemy branch code How can make this the default behavior er You meant git pull rather than git push right,0,NULL,NULL 44781,94762,763999,Necromancer Critic,NULL,NULL,0,NULL,NULL 44782,6771579,763999,Necromancer Critic,NULL,NULL,0,NULL,NULL 44783,3119127,453090,NULL,NULL,NULL,0,NULL,NULL 44784,163310,855620,NULL,NULL,NULL,0,NULL,NULL 44785,987786,715652,NULL,NULL,NULL,0,NULL,NULL 44786,462150,45345,NULL,NULL,NULL,0,NULL,NULL 44787,341779,117007,Yearling Yearling Famous Question Yearling Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 44788,758881,975539,Informed,NULL,NULL,0,NULL,NULL 44789,260988,67839,Notable Question Revival Yearling Disciplined Nice Answer Custodian Yearling Notable Question Excavator,NULL,NULL,0,NULL,NULL 44790,333938,256006,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 44791,1569030,1548249,Tumbleweed Yearling Student Critic Necromancer,NULL,NULL,0,NULL,NULL 44792,213153,488590,NULL,NULL,NULL,0,NULL,NULL 44793,196019,1171177,NULL,NULL,NULL,0,NULL,NULL 44794,1049527,1191049,NULL,NULL,NULL,0,NULL,NULL 44795,7606771,133992,Yearling Popular Question Notable Question Popular Question Nice Question Popular Question Good Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 44796,233083,160305,Caucus,NULL,NULL,0,NULL,NULL 44797,441381,995553,NULL,NULL,NULL,0,NULL,NULL 44798,28136,259699,NULL,NULL,NULL,0,NULL,NULL 44799,267103,835923,NULL,NULL,NULL,0,NULL,NULL 44800,48700,645607,NULL,NULL,NULL,0,NULL,NULL 44801,152189,252544,Popular Question Yearling Critic Commentator,NULL,NULL,0,NULL,NULL 44802,498385,1227075,NULL,NULL,NULL,0,NULL,NULL 44803,76609,9438,Popular Question Nice Question Yearling Great Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 44804,1126963,749675,Popular Question Notable Question Nice Question Famous Question Good Question Yearling Caucus Constituent Popular Question Yearling Popular Question Curious Favorite Question Yearling Critic Notable Question Great Question,NULL,How to add class to host element angular angular2 template pI dont know how to add to my component code lt component gt lt component gt code dynamic strongclass strong attribute but inside the template html component html ppThe only solution found is to modify the item via ElementRef native element That solution seems little complicated to do something that should be very simple ppAnother problem is that CSS has to be defined outside component scope breaking component encapsulation ppIs there simpler solution Something like code lt root class gt lt root gt code inside the template Yes this solution also works but is horrible too Another problem is that CSS has to be defined outside component scope as with ElementRef,1,How to add class to host element angular angular2 template pI dont know how to add to my component code lt component gt lt component gt code dynamic strongclass strong attribute but inside the template html component html ppThe only solution found is to modify the item via ElementRef native element That solution seems little complicated to do something that should be very simple ppAnother problem is that CSS has to be defined outside component scope breaking component encapsulation ppIs there simpler solution Something like code lt root class gt lt root gt code inside the template,NULL 44805,7215,1225258,NULL,NULL,NULL,0,NULL,NULL 44806,258340,1204613,Popular Question,NULL,NULL,0,NULL,NULL 44807,55505,392123,NULL,NULL,NULL,0,NULL,NULL 44808,77649,628699,Yearling Good Answer Popular Question css Nice Answer Yearling Nice Answer Revival Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Strunk & White Great Answer Announcer Yearling Caucus Constituent javascript Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 44809,489463,1133488,Yearling Notable Question Famous Question Popular Question Civic Duty Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Caucus Constituent Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question Self-Learner Good Question Nice Question Caucus Yearling Famous Question Inquisitive Yearling,NULL,NULL,1,What does the symbol do in javascript imports javascript pFor example ppre codeimport Component from components component code prepIn the code looking at it behaves like code code going up one level in the directory relative to the file path but like to know more generally what it does Unfortunately can find any documentation online due to the symbol searching problem,NULL 44810,444917,347137,Good Answer Custodian Yearling Good Answer Good Answer Guru Nice Answer Yearling Caucus Popular Question Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44811,11818,1148944,Notable Question,NULL,NULL,0,NULL,NULL 44812,1361556,1319684,NULL,NULL,NULL,0,NULL,NULL 44813,66834,946028,Yearling Census Good Answer,NULL,NULL,0,NULL,NULL 44814,43948,1148811,Yearling Popular Question Yearling Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 44815,177540,593286,NULL,NULL,NULL,0,NULL,NULL 44816,594167,1132383,NULL,NULL,NULL,0,NULL,NULL 44817,370316,700926,Famous Question Popular Question Notable Question Good Question Yearling Nice Answer Nice Answer Notable Question Nice Answer Revival Nice Answer Enlightened Nice Answer Announcer Good Question Nice Answer Enlightened Announcer Revival Yearling Announcer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Notable Question Popular Question Popular Question Famous Question Announcer Announcer Nice Answer Enlightened Guru Yearling Popular Question Announcer Popular Question Nice Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 44818,1386031,267,Nice Answer Good Answer Popular Question Nice Answer Nice Question Popular Question Nice Answer Enlightened Nice Answer Popular Question Notable Question Guru Nice Answer Nice Question Nice Answer generics Good Answer Nice Answer Enlightened Good Question Nice Answer Nice Answer Good Answer Famous Question Popular Question Nice Answer Guru Good Answer Nice Answer Enlightened Great Answer Good Question Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Legendary Good Answer multithreading Popular Question Popular Question Guru Nice Answer tsql Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened exception Good Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Yearling Guru Guru Guru Notable Question Guru Good Answer Great Answer Great Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Notable Question Popular Question Good Answer Famous Question Nice Question Nice Answer Nice Question Notable Question Good Answer Nice Answer Good Answer Great Answer optimization Popular Question Notable Question Popular Question Nice Answer Enlightened Notable Question Popular Question Nice Answer Notable Question Great Answer Nice Answer Good Answer Nice Answer Good Answer Famous Question Guru Nice Answer Enlightened Nice Answer Enlightened Famous Question Notable Question Nice Answer Good Answer Good Question Nice Answer Nice Answer Enlightened Good Answer Good Question Great Answer Popular Question Nice Answer Nice Answer Nice Answer Notable Question Nice Answer Nice Answer Nice Answer Enlightened Popular Question git Guru Guru Nice Answer Nice Answer Enlightened Guru delegates Good Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Enlightened Great Answer Constituent Yearling Notable Question Good Answer c++ Nice Answer Enlightened c#-4.0 Nice Answer Popular Question Nice Answer Famous Question Good Answer Notable Question Notable Question Nice Answer Documentation User Guru garbage-collection Famous Question Nice Answer Enlightened Nice Answer Custodian Nice Answer Popular Question Good Answer Great Answer Nice Answer Great Answer Guru Nice Answer Enlightened Good Answer Census Nice Answer Good Answer Nice Answer Guru Famous Question Good Answer Nice Answer Enlightened Famous Question Nice Answer Nice Answer Enlightened Good Answer Caucus Guru Popular Question Good Answer Good Answer Guru Guru Nice Answer Famous Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Question Good Answer Nice Answer Enlightened Good Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Notable Question Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Famous Question Yearling Good Answer Popular Question Nice Answer Nice Answer Enlightened Announcer Popular Question Popular Question Good Answer Nice Answer Nice Answer Nice Answer Copy Editor Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Notable Question Good Answer Good Answer Nice Answer Great Answer,NULL,pSince you already have to implement code to handle bit wise layer on top of your byte organized stream file here my proposal ppDo not store the actual frequencies they re not needed for decoding You do however need the actual tree ppSo for each node starting at root polliIf leaf node Output bit bit character byte liliIf not leaf node output bit Then encode both child nodes left first then right the same way li olpTo read do this polliRead bit If then read bit character byte return new node around it with no children liliIf bit was decode left and right child nodes the same way and return new node around them with those children but no value li olpA leaf node is basically any node that doesn have children ppWith this approach you can calculate the exact size of your output before writing it to figure out if the gains are enough to justify the effort This assumes you have dictionary of key value pairs that contains the frequency of each character where frequency is the actual number of occurrences ppPseudo code for calculation ppre codeTree size 10 NUMBER OF CHARACTERS 1Encoded size Sum for each char freq in table freq len PATH char code prepThe tree size calculation takes the leaf and non leaf nodes into account and there one less inline node than there are characters ppSIZE OF ONE CHARACTER would be number of bits and those two would give you the number of bits total that my approach for the tree the encoded data will occupy ppPATH is function table that would yield the bit path from root down to that character in the tree ppHere looking pseudo code to do it which assumes one character is just simple byte ppre codevoid EncodeNode Node node BitWriter writer if node IsLeafNode writer WriteBit writer WriteByte node Value else writer WriteBit EncodeNode node LeftChild writer EncodeNode node Right writer code prepTo read it back in ppre codeNode ReadNode BitReader reader if reader ReadBit return new Node reader ReadByte null null else Node leftChild ReadNode reader Node rightChild ReadNode reader return new Node leftChild rightChild code prepAn example simplified use properties etc Node implementation ppre codepublic class Node public Byte Value public Node LeftChild public Node RightChild public Node Byte value Node leftChild Node rightChild Value value LeftChild leftChild RightChild rightChild public Boolean IsLeafNode get return LeftChild null code prehrpHere sample output from specific example ppInput AAAAAABCCCCCCDDEEEEE ppFrequencies pulliA liliB liliC liliD liliE li ulpEach character is just bits so the size of the tree will be 10 49 bits ppThe tree could look like this ppre code 20 12 D6 code prepSo the paths to each character is as follows is left is right pulliA 00 liliB 110 liliC 01 liliD 111 liliE 10 li ulpSo to calculate the output size pulliA occurrences bits 12 bits liliB occurrence bits bits liliC occurrences bits 12 bits liliD occurrences bits bits liliE occurrences bits 10 bits li ulpSum of encoded bytes is 12 12 10 43 bits ppAdd that to the 49 bits from the tree and the output will be 92 bits or 12 bytes Compare that to the 20 bytes necessary to store the original 20 characters unencoded you ll save bytes ppThe final output including the tree to begin with is as follows Each character in the stream is encoded as bits whereas and is just single bit The space in the stream is just to separate the tree from the encoded data and does not take up any space in the final output ppre code001A1C01E01B1D 0000000000001100101010101011111111010101010 code prehrpFor the concrete example you have in the comments AABCDEF you will get this ppInput AABCDEF ppFrequencies pulliA liliB liliC liliD liliE liliF li ulpTree ppre code F2 code prepPaths pulliA 00 liliB 01 liliC 100 liliD 101 liliE 110 liliF 111 li ulpTree 001A1B001C1D01E1F 59 bitsbrData 000001100101110111 18 bitsbrSum 59 18 77 bits 10 bytes ppSince the original was characters of bits 56 you will have too much overhead of such small pieces of data There is no problem when reading the tree there is never any doubt what you re expecting next either you re expecting bit which corresponds either an internal node or leaf node or you re expecting bits for the value of leaf node You always start by decoding the root node which is an internal node so you re always starting by reading bit and then follow from that You never read number of bits and then decide what you just read you know ahead of time pThe old syntax with just listing the tables and using the codeWHERE code clause to specify the join criteria is being deprecated in most modern databases ppIt not just for show the old syntax has the possibility of being ambiguous when you use both INNER and OUTER joins in the same query ppLet me give you an example ppLet suppose you have tables in your system ppre codeCompanyDepartmentEmployee code prepEach table contain numerous rows linked together You got multiple companies and each company can have multiple departments and each department can have multiple employees ppOk so now you want to do the following pblockquote pList all the companies and include all their departments and all their employees Note that some companies don have any departments yet but make sure you include them as well Make sure you only retrieve departments that have employees but always list all companies blockquotepSo you do this ppre codeSELECT for simplicityFROM Company Department EmployeeWHERE Company ID Department CompanyID AND Department ID Employee DepartmentID code prepNote that the last one there is an inner join in order to fulfill the criteria that you only want departments with people ppOk so what happens now Well the problem is it depends on the database engine the query optimizer indexes and table statistics Let me explain ppIf the query optimizer determines that the way to do this is to first take company then find the departments and then do an inner join with employees you re not going to get any companies that don have departments ppThe reason for this is that the codeWHERE code clause determines which emrows em end up in the final result not individual parts of the rows ppAnd in this case due to the left join the Department ID column will be NULL and thus when it comes to the INNER JOIN to Employee there no way to fulfill that constraint for the Employee row and so it won appear ppOn the other hand if the query optimizer decides to tackle the department employee join first and then do left join with the companies you will see them ppSo the old syntax is ambiguous There no way to specify what you want without dealing with query hints and some databases have no way at all ppEnter the new syntax with this you can choose ppFor instance if you want all companies as the problem description stated this is what you would write ppre codeSELECT FROM Company LEFT JOIN Department INNER JOIN Employee ON Department ID Employee DepartmentID ON Company ID Department CompanyID code prepHere you specify that you want the department employee join to be done as one join and then left join the results of that with the companies ppAdditionally let say you only want departments that contains the letter in their name Again with old style joins you risk losing the company as well if it doesn have any departments with an in its name but with the new syntax you can do this ppre codeSELECT FROM Company LEFT JOIN Department INNER JOIN Employee ON Department ID Employee DepartmentID ON Company ID Department CompanyID AND Department Name LIKE code prepThis extra clause is used for the joining but is not filter for the entire row So the row might appear with company information but might have NULLs in all the department and employee columns for that row because there is no department with an in its name for that company This is hard with the old syntax ppThis is why amongst other vendors Microsoft has deprecated the old outer join syntax but not the old inner join syntax since SQL Server 2005 and upwards The only way to talk to database running on Microsoft SQL Server 2005 or 2008 using the old style outer join syntax is to set that database in compatibility mode aka SQL Server 2000 ppAdditionally the old way by throwing bunch of tables at the query optimizer with bunch of WHERE clauses was akin to saying here you are do the best you can With the new syntax the query optimizer has less work to do in order to figure out what parts goes together ppSo there you have it ppLEFT and INNER JOIN is the wave of the future Sure it does because the older syntax is deprecated you shouldn use it The reason why it is deprecated has to do with outer joins but they deprecated the whole thing in the process thought that was important to know You re welcome to provide your own answer or edit mine if there something specifically wrong with it The part about the query optimizer having less to do is taken from an old article on msdn which don have the link for pThe old syntax with just listing the tables and using the codeWHERE code clause to specify the join criteria is being deprecated in most modern databases ppIt not just for show the old syntax has the possibility of being ambiguous when you use both INNER and OUTER joins in the same query ppLet me give you an example ppLet suppose you have tables in your system ppre codeCompanyDepartmentEmployee code prepEach table contain numerous rows linked together You got multiple companies and each company can have multiple departments and each department can have multiple employees ppOk so now you want to do the following pblockquote pList all the companies and include all their departments and all their employees Note that some companies don have any departments yet but make sure you include them as well Make sure you only retrieve departments that have employees but always list all companies blockquotepSo you do this ppre codeSELECT for simplicityFROM Company Department EmployeeWHERE Company ID Department CompanyID AND Department ID Employee DepartmentID code prepNote that the last one there is an inner join in order to fulfill the criteria that you only want departments with people ppOk so what happens now Well the problem is it depends on the database engine the query optimizer indexes and table statistics Let me explain ppIf the query optimizer determines that the way to do this is to first take company then find the departments and then do an inner join with employees you re not going to get any companies that don have departments ppThe reason for this is that the codeWHERE code clause determines which emrows em end up in the final result not individual parts of the rows ppAnd in this case due to the left join the Department ID column will be NULL and thus when it comes to the INNER JOIN to Employee there no way to fulfill that constraint for the Employee row and so it won appear ppOn the other hand if the query optimizer decides to tackle the department employee join first and then do left join with the companies you will see them ppSo the old syntax is ambiguous There no way to specify what you want without dealing with query hints and some databases have no way at all ppEnter the new syntax with this you can choose ppFor instance if you want all companies as the problem description stated this is what you would write ppre codeSELECT FROM Company LEFT JOIN Department INNER JOIN Employee ON Department ID Employee DepartmentID ON Company ID Department CompanyID code prepHere you specify that you want the department employee join to be done as one join and then left join the results of that with the companies ppAdditionally let say you only want departments that contains the letter in their name Again with old style joins you risk losing the company as well if it doesn have any departments with an in its name but with the new syntax you can do this ppre codeSELECT FROM Company LEFT JOIN Department INNER JOIN Employee ON Department ID Employee DepartmentID ON Company ID Department CompanyID AND Department Name LIKE code prepThis extra clause is used for the joining but is not filter for the entire row So the row might appear with company information but might have NULLs in all the department and employee columns for that row because there is no department with an in its name for that company This is hard with the old syntax ppThis is why amongst other vendors Microsoft has deprecated the old outer join syntax but not the old inner join syntax since SQL Server 2005 and upwards The only way to talk to database running on Microsoft SQL Server 2005 or 2008 using the old style outer join syntax is to set that database in compatibility mode aka SQL Server 2000 ppAdditionally the old way by throwing bunch of tables at the query optimizer with bunch of WHERE clauses was akin to saying here you are do the best you can With the new syntax the query optimizer has less work to do in order to figure out what parts goes together ppSo there you have it ppLEFT and INNER JOIN is the wave of the future Outer join operators and are not supported in 90 or later compatibility modes https docs microsoft com en us sql sql server install outer join operators and are not supported in 90 or later compatibility modes view sql server 2014 which is what go by pHow about ppre codeimport copyd d2 copy deepcopy code prepPython or ppre codePython r32 88445 Feb 20 2011 21 30 00 MSC 1500 64 bit AMD64 on win32Type help copyright credits or license for more information gt gt gt import copy gt gt gt my dict gt gt gt my copy copy deepcopy my dict gt gt gt my dict gt gt gt my copy gt gt gt code pre thread safety is rather meaningless term unless you use its opposite not thread safe Thread safety implies expectations of behavior but it doesn detail which behavior The thread safety library author has in mind might not be the same library user has in mind For instance is it enough that collection doesn corrupt itself if used on multiple threads Do you need check against count followed by an implicit read of the first item to be consistent In general reads are thread safe as long as reading something doesn have side effects,0,NULL,NULL 44819,52283,283259,Nice Answer Promoter Nice Question Nice Answer Popular Question Yearling Good Answer Revival Notable Question ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 44820,165602,395700,Revival Necromancer Popular Question Yearling Nice Answer Necromancer Yearling Custodian Mortarboard Nice Answer Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 44821,1863780,715188,Curious,NULL,NULL,0,NULL,NULL 44822,320360,50635,NULL,NULL,NULL,0,NULL,NULL 44823,190392,377942,Yearling Good Answer Notable Question Yearling Commentator Caucus,NULL,NULL,0,NULL,NULL 44824,31589,173542,Notable Question Nice Answer Nice Question Necromancer Nice Answer Yearling Necromancer Custodian Yearling Revival Pundit Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44825,1480691,1201103,Popular Question Notable Question Popular Question Notable Question Yearling Custodian Citizen Patrol Nice Question,NULL,NULL,0,NULL,NULL 44826,659834,1354070,NULL,NULL,NULL,0,NULL,NULL 44827,766516,607033,Famous Question Good Answer Yearling Popular Question Necromancer Nice Question Nice Answer Popular Question javascript Revival Necromancer Nice Question Nice Answer Nice Answer Popular Question Popular Question Nice Answer Popular Question Popular Question Notable Question Notable Question Nice Answer Necromancer Notable Question Nice Answer rest Revival Nice Answer Caucus Revival Notable Question Necromancer Nice Answer Necromancer Yearling Popular Question Nice Answer Enlightened Notable Question Popular Question Nice Answer Popular Question Nice Answer Popular Question Nice Answer Famous Question Nice Question Good Question Popular Question Popular Question Nice Answer Caucus Necromancer Notable Question Announcer Nice Answer Revival Popular Question Popular Question Announcer Famous Question Announcer Revival Yearling Good Answer Good Answer Good Question Caucus Necromancer Quorum Pundit Popular Question Popular Question Necromancer Notable Question Notable Question Popular Question Necromancer Guru Good Answer Popular Question Investor Altruist Announcer Popular Question Good Answer Cleanup Popular Question Good Answer,NULL,pFor an href https www ietf org rfc rfc4122 txt rel noreferrer RFC4122 version compliant solution this one liner ish solution is the most compact could come up with pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return xxxxxxxx xxxx 4xxx yxxx xxxxxxxxxxxx replace xy function xD var Math random 16 amp 0x3 0x8 xD return toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD pp strongUpdate 2015 06 02 strong Be aware that UUID uniqueness relies heavily on the underlying random number generator RNG The solution above uses codeMath random code for brevity however codeMath random code is emnot em guaranteed to be high quality RNG See Adam Hyland href http bocoup com weblog random numbers rel noreferrer excellent writeup on Math random for details For more robust solution consider something like href https github com kelektiv node uuid rel noreferrer the uuid module Disclaimer the author which uses higher quality RNG APIs where available pp strongUpdate 2015 08 26 strong As side note this href https gist githubusercontent com aristus f0c311df98d92e367df0 rel noreferrer gist describes how to determine how many IDs can be generated before reaching certain probability of collision For example with 26x10sup15 sup version RFC4122 UUIDs you have in million chance of collision pp strongUpdate 2017 06 28 strong href https v8project blogspot com 2015 12 theres mathrandom and then theres html rel noreferrer good article from Chrome developers discussing the state of Math random PRNG quality in Chrome Firefox and Safari tl dr As of late 2015 it pretty good but not cryptographic quality To address that issue here an updated version of the above solution that uses ES6 the codecrypto code API and href https gist github com jed 982883 rel noreferrer bit of JS wizardy can take credit for pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return 1e7 1e3 4e3 8e3 1e11 replace 018 gt xD crypto getRandomValues new Uint8Array amp 15 gt gt toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD think many devs fall into this pit The code must be readable and not one liner You write the code for other devs not for the computer so readability and maintainability is much more important than compactness If you don use variables or by more complex problems functions classes everybody has to spend lot more time to figure out what your code actually does and how to fix it if it is broken or how to add new feature to it,0,NULL,NULL 44828,261140,443841,Informed Teacher Editor Supporter Nice Answer,NULL,NULL,0,NULL,NULL 44829,201016,535473,Caucus Yearling Revival Necromancer Caucus Peer Pressure Popular Question Custodian Custodian Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 44830,5572,253773,Yearling Nice Answer Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 44831,198835,198340,NULL,NULL,NULL,0,NULL,NULL 44832,264129,798398,NULL,NULL,NULL,0,NULL,NULL 44833,719349,473736,Popular Question Popular Question Popular Question Famous Question Nice Question Famous Question Notable Question Popular Question Enthusiast Yearling Caucus Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44834,137405,181972,NULL,NULL,NULL,0,NULL,NULL 44835,1116534,1411629,NULL,NULL,NULL,0,NULL,NULL 44836,32694,11042,Great Question Critic Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 44837,34662,201398,NULL,NULL,NULL,0,NULL,NULL 44838,105432,549229,NULL,NULL,NULL,0,NULL,NULL 44839,318718,1339347,Popular Question Popular Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 44840,2150390,1109765,NULL,NULL,NULL,0,NULL,NULL 44841,128915,552444,NULL,NULL,NULL,0,NULL,NULL 44842,1305622,552444,NULL,NULL,NULL,0,NULL,NULL 44843,383456,1226026,NULL,NULL,NULL,0,NULL,NULL 44844,154227,736957,Yearling Citizen Patrol Yearling Custodian Yearling Caucus Enthusiast Custodian Announcer Yearling Civic Duty Announcer Announcer Informed Announcer Documentation User Census Autobiographer Custodian Caucus Custodian Constituent Yearling scala Announcer sbt Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 44845,224624,752624,Yearling,NULL,NULL,0,NULL,NULL 44846,7898,301355,NULL,NULL,NULL,0,NULL,NULL 44847,456489,301355,NULL,NULL,NULL,0,NULL,NULL 44848,569863,1337902,Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 44849,73279,960151,Editor,NULL,NULL,0,NULL,NULL 44850,169743,1323027,NULL,NULL,NULL,0,NULL,NULL 44851,92097,857871,Scholar,NULL,NULL,0,NULL,NULL 44852,401825,515948,Announcer Good Answer Reviewer Enthusiast Announcer Tumbleweed Steward Necromancer Steward Tag Editor Curious Talkative Announcer Revival Caucus Constituent Yearling Announcer Deputy Announcer Tenacious Electorate Caucus Guru Explainer Popular Question Documentation User Custodian Yearling Census Good Answer Caucus Notable Question Constituent python Reviewer Announcer Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 44853,185116,1010800,NULL,NULL,NULL,0,NULL,NULL 44854,243726,433145,Popular Question Nice Question Notable Question Famous Question Nice Question Notable Question Yearling Nice Question Notable Question Popular Question Good Question Popular Question Famous Question Good Answer Yearling Famous Question Famous Question Famous Question Good Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 44855,1790453,876978,NULL,NULL,NULL,0,NULL,NULL 44856,908714,1279282,NULL,NULL,NULL,0,NULL,NULL 44857,35605,664737,NULL,NULL,NULL,0,NULL,NULL 44858,144825,1254360,NULL,NULL,NULL,0,NULL,NULL 44859,768878,1253952,Popular Question Famous Question Yearling Nice Question Popular Question Caucus Popular Question Popular Question Notable Question Notable Question Famous Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 44860,479434,567243,NULL,NULL,NULL,0,NULL,NULL 44861,20814,333934,NULL,NULL,NULL,0,NULL,NULL 44862,6177727,333934,NULL,NULL,NULL,0,NULL,NULL 44863,271892,419241,NULL,NULL,NULL,0,NULL,NULL 44864,199580,265,Custodian Custodian Excavator Promoter Curious Popular Question Benefactor,NULL,NULL,0,NULL,NULL 44865,136323,681032,NULL,NULL,NULL,0,NULL,NULL 44866,242174,832849,NULL,NULL,NULL,0,NULL,NULL 44867,388884,459043,NULL,NULL,NULL,0,NULL,NULL 44868,130344,49142,Popular Question Notable Question Notable Question Yearling Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 44869,706835,1161166,NULL,NULL,NULL,0,NULL,NULL 44870,19311,90848,Popular Question Notable Question Announcer Guru Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Inquisitive Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Great Answer Guru Guru Good Answer Good Answer Popular Question Good Answer Nice Answer Notable Question Good Answer Great Answer Nice Answer Good Answer Nice Question Great Answer Enlightened Caucus Nice Question Good Answer Good Answer Great Answer Announcer Nice Answer Good Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Great Answer Populist Generalist Yearling Good Answer Nice Answer Good Answer Nice Answer Good Answer Great Question Guru Nice Answer Great Answer Good Answer Good Answer Great Answer Caucus Nice Answer Enlightened Guru Popular Question Notable Question Great Answer Nice Answer Enlightened Popular Question Announcer Famous Question Nice Answer Popular Question Good Answer Nice Answer Nice Question Caucus Nice Question Notable Question Notable Question Yearling Good Answer Notable Question Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Guru Good Answer Guru Notable Question Guru Great Answer Popular Question Necromancer Good Question Good Answer Good Answer Necromancer Good Question Nice Answer Good Answer Popular Question,NULL,pThe thing found confusing about about code prune code is that it an action like code print code not test like code name code It alters the to do list embut always returns true em ppThe general pattern for using code prune code is this ppre codefind path conditions to prune prune your usual conditions actions to perform code prepYou pretty much always want the the code code immediately after code prune code because that first part of the test up to including code prune code will return emfalse em for the stuff you actually want ie the stuff you don want to prune out ppHere an example ppre codefind name snapshot prune name foo print code prepThis will find the foo files that aren under snapshot directories In this example code name snapshot code is the tests for stuff you want to prune and code name foo print code is the stuff you normally put after the path pp strongImportant notes strong polli pIf all you want to do is print the results you might be used to leaving out the code print code action You generally emdon em want to do that when using code prune code ppThe default behavior of find is to and the ementire em expression with the code print code action if there are no actions other than code prune code ironically at the end That means that writing this ppre codefind name snapshot prune name foo DON DO THIS code prepis equivalent to writing this ppre codefind name snapshot prune name foo print DON DO THIS code prepwhich means that it ll also print out the name of the directory you re pruning which usually isn what you want Instead it better to explicitly specify the code print code action if that what you want ppre codefind name snapshot prune name foo print DO THIS code pre lili pIf your usual condition happens to match files that also match your prune condition those files will emnot em be included in the output The way to fix this is to add code type code predicate to your prune condition ppFor example suppose we wanted to prune out any directory that started with code git code this is admittedly somewhat contrived normally you only need to remove thing named emexactly em code git code but other than that wanted to see all files including files like code gitignore code You might try this ppre codefind name git prune type print DON DO THIS code prepThis would emnot em include code gitignore code in the output Here the fixed version ppre codefind type name git prune type print DO THIS code pre li olpExtra tip if you re using the GNU version of codefind code the texinfo page for codefind code has more detailed explanation than its manpage as is true for most GNU utilities can you post the command you re talking about Maybe link to gist can think of any way spaces would behave the way you describe in find pThe coderand code function in code lt stdlib gt code returns pseudo random integer between and codeRAND MAX code You can use codesrand unsigned int seed code to set seed ppIt common practice to use the code code operator in conjunction with coderand code to get different range though bear in mind that this throws off the uniformity somewhat For example ppre code random int between and 19 int rand 20 code prepIf you emreally em care about uniformity you can do something like this ppre code Returns an integer in the range Uses rand and so is affected by affects the same seed int randint int if RAND MAX return rand else Supporting larger values for would requires an even more elaborate implementation that combines multiple calls to rand assert lt RAND MAX Chop off all of the values that would cause skew int end RAND MAX truncate skew assert end gt end and ignore results from rand that fall above that limit Worst case the loop condition should succeed 50 of the time so we can expect to bail out of this loop pretty quickly int while rand gt end return code pre The comment says Returns an integer in the range That the half open interval In other words is included but is not To flip coin you need to call randint This is also consistent with the way behaves pThe coderand code function in code lt stdlib gt code returns pseudo random integer between and codeRAND MAX code You can use codesrand unsigned int seed code to set seed ppIt common practice to use the code code operator in conjunction with coderand code to get different range though bear in mind that this throws off the uniformity somewhat For example ppre code random int between and 19 int rand 20 code prepIf you emreally em care about uniformity you can do something like this ppre code Returns an integer in the range Uses rand and so is affected by affects the same seed int randint int if RAND MAX return rand else Supporting larger values for would requires an even more elaborate implementation that combines multiple calls to rand assert lt RAND MAX Chop off all of the values that would cause skew int end RAND MAX truncate skew assert end gt end and ignore results from rand that fall above that limit Worst case the loop condition should succeed 50 of the time so we can expect to bail out of this loop pretty quickly int while rand gt end return code pre believe you are correct Not sure why was using long but probably had something to do with that multiply ve updated the answer pIt depends on what you mean Do you want actual tab characters in your file to emappear em spaces wide or by tab do you actually mean an emindent em generated by pressing the tab key which would result in the file literally containing up to space characters for each tab you type ppDepending on your answer one of the following sets ofsettings should work for you pulli strongFor tab characters that appear spaces wide strong ppre codeset tabstop code prepIf you re using actual tab character in your source code you probably also want these settings these are actually the defaults but you may want to set them defensively ppre codeset softtabstop noexpandtab code prepFinally if you want an indent to correspond to single tab you should also use ppre codeset shiftwidth code pre lili strongFor indents that consist of space characters strong but are entered with the tab key ppre codeset tabstop softtabstop expandtab shiftwidth smarttab code pre li ulp strongTo make the above settings permanent addthese lines to your href https stackoverflow com 34005877 90848 vimrc strong ppIn case you need to make adjustments or would simply like to understand what these options all mean here breakdown of what each option means pblockquote h2 codetabstop code h2 pThe width of hard tabstop measured in spaces effectively the maximum width of an actual tab character h2 codeshiftwidth code h2 pThe size of an indent It also measured in spaces so if your code base indents with tab characters then you want codeshiftwidth code to equal the number of tab characters times codetabstop code This is also used by things like the code code code gt code and code lt code commands h2 codesofttabstop code h2 pSetting this to non zero value other than codetabstop code will make the tab key in insert mode insert combination of spaces and possibly tabs to emsimulate em tab stops at this width h2 codeexpandtab code h2 pEnabling this will make the tab key in insert mode insert spaces instead of tab characters This also affects the behavior of the coderetab code command h2 codesmarttab code h2 pEnabling this will make the tab key in insert mode insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of line the only preceding characters are whitespace blockquotepFor more details on any of these see code help emoptionname em code in vim code help tabstop code Yes the size of tabstop refers to the tabstop columns In reality it is the maximum number of space characters tab character will be as wide as Vim own documentation uses similar wording BTW For example help tabstop descibes the option as the Number of spaces that Tab in the file counts for pIt depends on what you mean Do you want actual tab characters in your file to emappear em spaces wide or by tab do you actually mean an emindent em generated by pressing the tab key which would result in the file literally containing up to space characters for each tab you type ppDepending on your answer one of the following sets ofsettings should work for you pulli strongFor tab characters that appear spaces wide strong ppre codeset tabstop code prepIf you re using actual tab character in your source code you probably also want these settings these are actually the defaults but you may want to set them defensively ppre codeset softtabstop noexpandtab code prepFinally if you want an indent to correspond to single tab you should also use ppre codeset shiftwidth code pre lili strongFor indents that consist of space characters strong but are entered with the tab key ppre codeset tabstop softtabstop expandtab shiftwidth smarttab code pre li ulp strongTo make the above settings permanent addthese lines to your href https stackoverflow com 34005877 90848 vimrc strong ppIn case you need to make adjustments or would simply like to understand what these options all mean here breakdown of what each option means pblockquote h2 codetabstop code h2 pThe width of hard tabstop measured in spaces effectively the maximum width of an actual tab character h2 codeshiftwidth code h2 pThe size of an indent It also measured in spaces so if your code base indents with tab characters then you want codeshiftwidth code to equal the number of tab characters times codetabstop code This is also used by things like the code code code gt code and code lt code commands h2 codesofttabstop code h2 pSetting this to non zero value other than codetabstop code will make the tab key in insert mode insert combination of spaces and possibly tabs to emsimulate em tab stops at this width h2 codeexpandtab code h2 pEnabling this will make the tab key in insert mode insert spaces instead of tab characters This also affects the behavior of the coderetab code command h2 codesmarttab code h2 pEnabling this will make the tab key in insert mode insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of line the only preceding characters are whitespace blockquotepFor more details on any of these see code help emoptionname em code in vim code help tabstop code tab is ASCII Unicode character number aka Control This is the character that is normally inserted when you hit the tab key An indent is the spacing used at the beginning of lines in code usually used to indicate block structure Some coding conventions use tabs for indents usually tab indent but many use space characters rather than tabs spaces seems to be most common but spaces is also fairly popular pIt depends on what you mean Do you want actual tab characters in your file to emappear em spaces wide or by tab do you actually mean an emindent em generated by pressing the tab key which would result in the file literally containing up to space characters for each tab you type ppDepending on your answer one of the following sets ofsettings should work for you pulli strongFor tab characters that appear spaces wide strong ppre codeset tabstop code prepIf you re using actual tab character in your source code you probably also want these settings these are actually the defaults but you may want to set them defensively ppre codeset softtabstop noexpandtab code prepFinally if you want an indent to correspond to single tab you should also use ppre codeset shiftwidth code pre lili strongFor indents that consist of space characters strong but are entered with the tab key ppre codeset tabstop softtabstop expandtab shiftwidth smarttab code pre li ulp strongTo make the above settings permanent addthese lines to your href https stackoverflow com 34005877 90848 vimrc strong ppIn case you need to make adjustments or would simply like to understand what these options all mean here breakdown of what each option means pblockquote h2 codetabstop code h2 pThe width of hard tabstop measured in spaces effectively the maximum width of an actual tab character h2 codeshiftwidth code h2 pThe size of an indent It also measured in spaces so if your code base indents with tab characters then you want codeshiftwidth code to equal the number of tab characters times codetabstop code This is also used by things like the code code code gt code and code lt code commands h2 codesofttabstop code h2 pSetting this to non zero value other than codetabstop code will make the tab key in insert mode insert combination of spaces and possibly tabs to emsimulate em tab stops at this width h2 codeexpandtab code h2 pEnabling this will make the tab key in insert mode insert spaces instead of tab characters This also affects the behavior of the coderetab code command h2 codesmarttab code h2 pEnabling this will make the tab key in insert mode insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of line the only preceding characters are whitespace blockquotepFor more details on any of these see code help emoptionname em code in vim code help tabstop code should also add that in vim at least tab characters are unusual because they may have variable width depending on settings In the default settings single tab character appears like one or more spaces up to the next tab stop which is normally every spaces The tabstop option mentioned in the answer adjusts this The terribly named list and listchars options can also affect how tabs are rendered pIt depends on what you mean Do you want actual tab characters in your file to emappear em spaces wide or by tab do you actually mean an emindent em generated by pressing the tab key which would result in the file literally containing up to space characters for each tab you type ppDepending on your answer one of the following sets ofsettings should work for you pulli strongFor tab characters that appear spaces wide strong ppre codeset tabstop code prepIf you re using actual tab character in your source code you probably also want these settings these are actually the defaults but you may want to set them defensively ppre codeset softtabstop noexpandtab code prepFinally if you want an indent to correspond to single tab you should also use ppre codeset shiftwidth code pre lili strongFor indents that consist of space characters strong but are entered with the tab key ppre codeset tabstop softtabstop expandtab shiftwidth smarttab code pre li ulp strongTo make the above settings permanent addthese lines to your href https stackoverflow com 34005877 90848 vimrc strong ppIn case you need to make adjustments or would simply like to understand what these options all mean here breakdown of what each option means pblockquote h2 codetabstop code h2 pThe width of hard tabstop measured in spaces effectively the maximum width of an actual tab character h2 codeshiftwidth code h2 pThe size of an indent It also measured in spaces so if your code base indents with tab characters then you want codeshiftwidth code to equal the number of tab characters times codetabstop code This is also used by things like the code code code gt code and code lt code commands h2 codesofttabstop code h2 pSetting this to non zero value other than codetabstop code will make the tab key in insert mode insert combination of spaces and possibly tabs to emsimulate em tab stops at this width h2 codeexpandtab code h2 pEnabling this will make the tab key in insert mode insert spaces instead of tab characters This also affects the behavior of the coderetab code command h2 codesmarttab code h2 pEnabling this will make the tab key in insert mode insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of line the only preceding characters are whitespace blockquotepFor more details on any of these see code help emoptionname em code in vim code help tabstop code yes that is correct blockquote pI like that the long lines are displayed over more than one terminal line blockquotepThis sort of visual virtual line wrapping is enabled with the codewrap code window option ppre codeset wrap code preblockquote pI don’t like that vim inserts newlines into my actual text blockquotepTo turn off physical line wrapping clear both the codetextwidth code and codewrapmargin code buffer options ppre codeset textwidth wrapmargin code pre You can test if something is overwriting your vimrc setting by opening file where you see the problem and entering verbose set textwidth wrapmargin This will tell you their current values and also where they were set It possible that you have plugin that overriding them In that case you may either uninstall that plugin or try overriding the plugin setting later in your runtimepath eg vim after or with your own autocommand The right approach will depend on where how it being reset,0,NULL,NULL 44871,185119,1136194,NULL,NULL,NULL,0,NULL,NULL 44872,133023,669041,Famous Question Informed Popular Question,NULL,NULL,0,NULL,NULL 44873,368178,731905,NULL,NULL,NULL,0,NULL,NULL 44874,266729,629338,Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 44875,57673,212702,Great Answer Yearling Great Answer Announcer Nice Question Yearling Custodian Benefactor Yearling,NULL,NULL,0,NULL,NULL 44876,6459171,909785,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44877,798413,909785,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44878,110974,451062,Nice Answer,NULL,NULL,0,NULL,NULL 44879,350040,570383,NULL,NULL,NULL,0,NULL,NULL 44880,9767,368023,Nice Answer,NULL,NULL,0,NULL,NULL 44881,365463,587220,Yearling Good Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 44882,50628,103636,Popular Question Yearling Popular Question Good Answer Necromancer Nice Answer Yearling Good Answer Popular Question Popular Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44883,4995291,745325,Necromancer Documentation User,NULL,NULL,0,NULL,NULL 44884,184633,745325,Necromancer Documentation User,NULL,NULL,0,NULL,NULL 44885,83118,171877,Popular Question Caucus Census,NULL,NULL,0,NULL,NULL 44886,238994,406488,NULL,NULL,NULL,0,NULL,NULL 44887,53020,412012,Guru,NULL,NULL,0,NULL,NULL 44888,181656,984831,NULL,NULL,NULL,0,NULL,NULL 44889,304326,1223857,Necromancer Citizen Patrol Excavator Yearling,NULL,NULL,0,NULL,NULL 44890,199933,230886,Custodian Yearling Custodian Yearling Student Scholar Caucus,NULL,NULL,0,NULL,NULL 44891,237533,584573,Yearling Nice Answer Nice Answer clojure Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 44892,197384,575520,Yearling Good Answer Nice Answer Nice Question Yearling Curious Civic Duty Guru Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 44893,615539,605266,Notable Question,NULL,NULL,0,NULL,NULL 44894,564096,1138710,Yearling Tumbleweed Nice Question Critic Informed Suffrage Vox Populi Popular Question Yearling Curious Autobiographer Explainer Census Organizer Custodian Citizen Patrol Enthusiast Yearling Yearling Mortarboard Yearling Fanatic Civic Duty Revival Necromancer Notable Question Yearling Promoter Popular Question Announcer Revival Notable Question,NULL,NULL,0,NULL,NULL 44895,1188868,318804,Notable Question Famous Question Nice Question Informed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 44896,310136,399110,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44897,71138,78179,NULL,NULL,NULL,0,NULL,NULL 44898,92370,1118843,NULL,NULL,NULL,0,NULL,NULL 44899,945,460506,Notable Question Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 44900,2191657,1091772,Yearling Notable Question Notable Question Revival Caucus Popular Question Caucus Constituent Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 44901,608689,413496,NULL,NULL,NULL,0,NULL,NULL 44902,627371,187607,NULL,NULL,NULL,0,NULL,NULL 44903,481120,1286654,NULL,NULL,NULL,0,NULL,NULL 44904,41387,160941,Notable Question Popular Question Revival Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 44905,605759,756276,Critic,NULL,NULL,0,NULL,NULL 44906,263314,1018237,Teacher Organizer Informed Notable Question,NULL,NULL,0,NULL,NULL 44907,364553,331214,Revival Yearling Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 44908,280258,742907,NULL,NULL,NULL,0,NULL,NULL 44909,859325,1057656,NULL,NULL,NULL,0,NULL,NULL 44910,55095,634753,NULL,NULL,NULL,0,NULL,NULL 44911,191235,314481,Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 44912,134458,572351,NULL,NULL,NULL,0,NULL,NULL 44913,898366,258255,NULL,NULL,NULL,0,NULL,NULL 44914,435109,94219,Nice Answer,NULL,NULL,0,NULL,NULL 44915,1113017,1477201,NULL,NULL,NULL,0,NULL,NULL 44916,161634,935129,NULL,NULL,NULL,0,NULL,NULL 44917,1380295,1423835,NULL,NULL,NULL,0,NULL,NULL 44918,120796,316536,Yearling Necromancer Notable Question Necromancer Caucus Yearling Good Answer Necromancer Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 44919,821893,1083413,Popular Question,NULL,NULL,0,NULL,NULL 44920,812536,794884,NULL,NULL,NULL,0,NULL,NULL 44921,55687,33651,Yearling Revival Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 44922,590401,932746,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44923,18831,362612,Good Answer,NULL,NULL,0,NULL,NULL 44924,902429,1248479,NULL,NULL,NULL,0,NULL,NULL 44925,158408,1248479,NULL,NULL,NULL,0,NULL,NULL 44926,2817647,1248479,NULL,NULL,NULL,0,NULL,NULL 44927,2970151,1248479,NULL,NULL,NULL,0,NULL,NULL 44928,80593,1311507,Student,NULL,NULL,0,NULL,NULL 44929,6279651,1376194,NULL,NULL,NULL,0,NULL,NULL 44930,202340,932914,NULL,NULL,NULL,0,NULL,NULL 44931,172958,794468,NULL,NULL,NULL,0,NULL,NULL 44932,3831867,794468,NULL,NULL,NULL,0,NULL,NULL 44933,59511,725706,Popular Question Commentator Notable Question Critic Popular Question,NULL,NULL,0,NULL,NULL 44934,3164855,1263892,NULL,NULL,NULL,0,NULL,NULL 44935,321885,1217860,NULL,NULL,NULL,0,NULL,NULL 44936,413715,506672,NULL,NULL,NULL,0,NULL,NULL 44937,1506411,793450,Famous Question Favorite Question Yearling Yearling Great Question,NULL,NULL,0,NULL,NULL 44938,310935,1074160,NULL,NULL,NULL,0,NULL,NULL 44939,158369,540073,Yearling Yearling Great Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 44940,398454,49217,Popular Question Custodian Popular Question Famous Question Famous Question Popular Question Notable Question Tumbleweed Revival Self-Learner,NULL,NULL,0,NULL,NULL 44941,379952,958949,Supporter Popular Question,NULL,NULL,0,NULL,NULL 44942,186395,758157,NULL,NULL,NULL,0,NULL,NULL 44943,72276,21245,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Notable Question Yearling Good Question Custodian Favorite Question Famous Question Yearling Great Answer Great Question Necromancer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44944,83376,116119,NULL,NULL,NULL,0,NULL,NULL 44945,210463,810523,NULL,NULL,NULL,0,NULL,NULL 44946,22724,145521,Nice Answer,NULL,NULL,0,NULL,NULL 44947,646747,661812,NULL,NULL,NULL,0,NULL,NULL 44948,134427,799742,NULL,NULL,NULL,0,NULL,NULL 44949,622278,1142186,NULL,NULL,NULL,0,NULL,NULL 44950,1624151,1154317,NULL,NULL,NULL,0,NULL,NULL 44951,1113388,1316010,NULL,NULL,NULL,0,NULL,NULL 44952,1350254,1381504,NULL,NULL,NULL,0,NULL,NULL 44953,494862,1289252,Yearling Guru,NULL,NULL,0,NULL,NULL 44954,77611,1157361,Revival Yearling,NULL,NULL,0,NULL,NULL 44955,2019654,214744,Student Editor Great Answer Yearling Great Answer Yearling Necromancer Yearling,NULL,Redux Derived data for items in collection reactjs redux pHere is simplified version of my state tree ppre code radius nodes id 10 10 id 15 10 id 20 10 code prepEssentially have list of nodes that each have an emx em and emy em also have radius number that is used to calculate which other nodes are within the radius of node ie close neighbors ppI need my state to look like this ppre code radius nodes id 10 10 neighbors id 15 10 neighbors id 20 10 neighbors code prepThe calculation for the neighbors is rather expensive so only really want to calculate this if one of the node positions changes ppI looked into used selectors for this but not sure selector will work In order to derive the neighbor of given node need the whole list of nodes and the radius If pass the whole list of nodes to the selector the selector will recalculate if anything in the node collection has changed only need to recalculate if the or value of any node has changed Note that these nodes have lot of other keys in addition to emx em and emy em ppIt also seems that for selectors to work would need new selector for each element of the nodes array which is dynamic Is this correct ppAnother hurdle is that need this list of neighbors to calculate other state in other reducers Does this mean should do this calculation in the nodes reducer ppDoes anyone have any insight on this problem pp strong EDIT strong ppI ended up moving the neighbors into the state instead of deriving them needed access to the neighbors from within the reducers for certain other actions and was not able to find way to cache memoize them ppIt seems little fragile because essentially deriving and storing the neighbors on certain actions that involve them and not re deriving them on others that don That pretty much what memoized selector would be doing automatically But alas couldn find good way to do that ppIs this wrong pp strong EDIT2 strongI ended up splitting my nodes state into two parts ppre codenodes nodesById id color blue id color red positionsById id 10 id 10 10 code prepThis way am able to write selector that takes just the positions of the nodes and the radius to compute the neighbors ppre codeexport const getNeighborsById createSelector positionsById radius gt positionsById positionsById radius gt radius positionsById radius gt calculate neighbors code prepThis selector will only be re run when the codepositionsById code changes and not when codenodesById code changes which happens much more ppThis solves my problem but seems kinda wrong to maintain two lists in the same reducer but maybe not The final solution that used is described above in EDIT2 It essentially normalizing my redux state by breaking the entities apart node and node position and storing them each in dictionary indexed by id,1,Redux Derived data for items in collection reactjs redux pHere is simplified version of my state tree ppre code radius nodes id 10 10 id 15 10 id 20 10 code prepEssentially have list of nodes that each have an emx em and emy em also have radius number that is used to calculate which other nodes are within the radius of node ie close neighbors ppI need my state to look like this ppre code radius nodes id 10 10 neighbors id 15 10 neighbors id 20 10 neighbors code prepThe calculation for the neighbors is rather expensive so only really want to calculate this if one of the node positions changes ppI looked into used selectors for this but not sure selector will work In order to derive the neighbor of given node need the whole list of nodes and the radius If pass the whole list of nodes to the selector the selector will recalculate if anything in the node collection has changed only need to recalculate if the or value of any node has changed Note that these nodes have lot of other keys in addition to emx em and emy em ppIt also seems that for selectors to work would need new selector for each element of the nodes array which is dynamic Is this correct ppAnother hurdle is that need this list of neighbors to calculate other state in other reducers Does this mean should do this calculation in the nodes reducer ppDoes anyone have any insight on this problem pp strong EDIT strong ppI ended up moving the neighbors into the state instead of deriving them needed access to the neighbors from within the reducers for certain other actions and was not able to find way to cache memoize them ppIt seems little fragile because essentially deriving and storing the neighbors on certain actions that involve them and not re deriving them on others that don That pretty much what memoized selector would be doing automatically But alas couldn find good way to do that ppIs this wrong pp strong EDIT2 strongI ended up splitting my nodes state into two parts ppre codenodes nodesById id color blue id color red positionsById id 10 id 10 10 code prepThis way am able to write selector that takes just the positions of the nodes and the radius to compute the neighbors ppre codeexport const getNeighborsById createSelector positionsById radius gt positionsById positionsById radius gt radius positionsById radius gt calculate neighbors code prepThis selector will only be re run when the codepositionsById code changes and not when codenodesById code changes which happens much more ppThis solves my problem but seems kinda wrong to maintain two lists in the same reducer but maybe not,NULL 44956,108972,1279240,Famous Question Editor Custodian Nice Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 44957,195648,1120410,Caucus Yearling Popular Question Nice Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44958,543709,696291,Good Answer Yearling Caucus Constituent Yearling Necromancer Caucus Custodian Autobiographer Commentator Citizen Patrol Constituent Yearling Student Scholar Census Caucus Constituent Self-Learner Yearling,NULL,NULL,0,NULL,NULL 44959,422972,529763,NULL,NULL,NULL,0,NULL,NULL 44960,42787,1387995,Yearling Custodian Citizen Patrol Necromancer Caucus Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 44961,19576,731752,Custodian Good Answer Custodian,NULL,pIf you are using maven you might be interested in adding the following to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt configuration gt lt compilerArgument gt XDignore symbol file lt compilerArgument gt lt configuration gt lt plugin gt code pre This doesn seem to work for me Any ideas why not pIf you are using maven you might be interested in adding the following to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt configuration gt lt compilerArgument gt XDignore symbol file lt compilerArgument gt lt configuration gt lt plugin gt code pre Actually after further inspection it appears to be coming from the maven processor plugin maven processor plugin process process project diagnostic home project src main java Test java warning sun misc Signal is internal proprietary API and may be removed in future releaseimport sun misc Signal pIf you are using maven you might be interested in adding the following to your codepom xml code file ppre code lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt configuration gt lt compilerArgument gt XDignore symbol file lt compilerArgument gt lt configuration gt lt plugin gt code pre Setting outputDiagnostics to false fixes this Similar problem referenced here https stackoverflow com questions 22634008 maven processor plugin to ignore undefined symbols,0,NULL,NULL 44962,40894,917605,Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 44963,440248,294954,Informed,NULL,NULL,0,NULL,NULL 44964,21419,840912,NULL,NULL,NULL,0,NULL,NULL 44965,307951,782845,NULL,NULL,NULL,0,NULL,NULL 44966,155313,163216,Famous Question Yearling Necromancer Census,NULL,NULL,0,NULL,NULL 44967,440789,507013,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 44968,234071,236427,Yearling,NULL,NULL,0,NULL,NULL 44969,155509,1248069,NULL,NULL,NULL,0,NULL,NULL 44970,166342,965359,Popular Question,NULL,NULL,0,NULL,NULL 44971,181792,517503,Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Notable Question Yearling Popular Question Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 44972,3694238,517503,Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Notable Question Yearling Popular Question Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 44973,155508,859251,NULL,NULL,NULL,0,NULL,NULL 44974,490497,793640,Critic Caucus,NULL,NULL,0,NULL,NULL 44975,9973,215584,Good Question,NULL,NULL,0,NULL,NULL 44976,800903,1159635,NULL,NULL,NULL,0,NULL,NULL 44977,223077,467219,Informed Autobiographer,NULL,NULL,0,NULL,NULL 44978,278886,1110182,NULL,NULL,NULL,0,NULL,NULL 44979,228421,1277511,NULL,NULL,NULL,0,NULL,NULL 44980,216675,561327,Popular Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44981,1522942,941765,NULL,NULL,NULL,0,NULL,NULL 44982,67719,696544,NULL,NULL,NULL,0,NULL,NULL 44983,240247,1300600,NULL,NULL,NULL,0,NULL,NULL 44984,1282584,187500,NULL,NULL,NULL,0,NULL,NULL 44985,264100,1242752,Yearling Yearling Good Answer Nice Answer Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 44986,82872,683562,NULL,NULL,NULL,0,NULL,NULL 44987,21326,942166,NULL,NULL,NULL,0,NULL,NULL 44988,1351910,78416,Nice Answer Famous Question Promoter Commentator Benefactor Census Popular Question Nice Question,NULL,NULL,0,NULL,NULL 44989,336559,455750,NULL,NULL,NULL,0,NULL,NULL 44990,677691,1084129,NULL,NULL,NULL,0,NULL,NULL 44991,1522290,644178,NULL,NULL,NULL,0,NULL,NULL 44992,625025,568170,NULL,NULL,NULL,0,NULL,NULL 44993,576203,1230138,Good Answer Yearling Guru Yearling Census Yearling,NULL,NULL,0,NULL,NULL 44994,475889,625548,NULL,NULL,NULL,0,NULL,NULL 44995,138839,9793,Necromancer Yearling Great Answer Announcer Guru Yearling Civic Duty Good Answer Yearling,NULL,NULL,0,NULL,NULL 44996,171743,231519,Notable Question,NULL,NULL,0,NULL,NULL 44997,422342,56091,Necromancer Yearling Populist Civic Duty,NULL,NULL,0,NULL,NULL 44998,4756,725937,Great Question Nice Answer Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Electorate Notable Question Popular Question Yearling Organizer Popular Question Nice Answer Nice Question Socratic Notable Question Popular Question Popular Question Nice Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 44999,1056459,512637,NULL,NULL,NULL,0,NULL,NULL 45000,1133528,1462621,NULL,NULL,NULL,0,NULL,NULL 45001,565389,1503268,NULL,NULL,NULL,0,NULL,NULL 45002,299100,1142204,NULL,NULL,NULL,0,NULL,NULL 45003,197119,1057460,Enthusiast Revival Popular Question,NULL,NULL,0,NULL,NULL 45004,911643,1096585,Popular Question,NULL,NULL,0,NULL,NULL 45005,3933257,1096585,Popular Question,NULL,NULL,0,NULL,NULL 45006,66887,638617,NULL,NULL,NULL,0,NULL,NULL 45007,45469,555325,NULL,NULL,NULL,0,NULL,NULL 45008,223287,155867,NULL,NULL,NULL,0,NULL,NULL 45009,155495,970325,NULL,NULL,NULL,0,NULL,NULL 45010,222285,223881,NULL,NULL,NULL,0,NULL,NULL 45011,70828,162281,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45012,220616,975677,NULL,NULL,NULL,0,NULL,NULL 45013,286774,1081460,NULL,NULL,NULL,0,NULL,NULL 45014,379957,1014533,NULL,NULL,NULL,0,NULL,NULL 45015,201731,170384,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 45016,385662,471620,NULL,NULL,NULL,0,NULL,NULL 45017,1518166,1327179,NULL,NULL,NULL,0,NULL,NULL 45018,625120,219614,Notable Question,NULL,NULL,0,NULL,NULL 45019,4512561,916988,NULL,NULL,NULL,0,NULL,NULL 45020,389453,1460167,Yearling Good Answer Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 45021,11068,248475,NULL,NULL,NULL,0,NULL,NULL 45022,647351,513910,Custodian Popular Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 45023,139304,1284813,NULL,NULL,NULL,0,NULL,NULL 45024,8398323,666818,Popular Question Popular Question Notable Question Promoter Yearling Citizen Patrol Benefactor Popular Question Nice Answer Inquisitive Revival Excavator Organizer Proofreader Popular Question Necromancer Notable Question Popular Question Notable Question Popular Question Caucus Notable Question Good Question Nice Answer Enlightened Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Good Answer Notable Question Yearling Caucus Custodian Reviewer Custodian Popular Question Popular Question,NULL,pHere is simple example to get you started ppre codepackage mainimport fmt io ioutil log net http net url strings golang org oauth2 golang org oauth2 facebook var oauthConf amp oauth2 Config ClientID YOUR CLIENT ID ClientSecret YOUR CLIENT SECRET RedirectURL YOUR REDIRECT URL CALLBACK Scopes string public profile Endpoint facebook Endpoint oauthStateString thisshouldberandom const htmlIndex lt html gt lt body gt Logged in with lt href login gt facebook lt gt lt body gt lt html gt func handleMain http ResponseWriter http Request Header Set Content Type text html charset utf WriteHeader http StatusOK Write byte htmlIndex func handleFacebookLogin http ResponseWriter http Request Url err url Parse oauthConf Endpoint AuthURL if err nil log Fatal Parse err parameters url Values parameters Add client id oauthConf ClientID parameters Add scope strings Join oauthConf Scopes parameters Add redirect uri oauthConf RedirectURL parameters Add response type code parameters Add state oauthStateString Url RawQuery parameters Encode url Url String http Redirect url http StatusTemporaryRedirect func handleFacebookCallback http ResponseWriter http Request state FormValue state if state oauthStateString fmt Printf invalid oauth state expected got oauthStateString state http Redirect http StatusTemporaryRedirect return code FormValue code token err oauthConf Exchange oauth2 NoContext code if err nil fmt Printf oauthConf Exchange failed with err http Redirect http StatusTemporaryRedirect return resp err http Get https graph facebook com me access token url QueryEscape token AccessToken if err nil fmt Printf Get err http Redirect http StatusTemporaryRedirect return defer resp Body Close response err ioutil ReadAll resp Body if err nil fmt Printf ReadAll err http Redirect http StatusTemporaryRedirect return log Printf parseResponseBody string response http Redirect http StatusTemporaryRedirect func main http HandleFunc handleMain http HandleFunc login handleFacebookLogin http HandleFunc oauth2callback handleFacebookCallback fmt Print Started running on http localhost 9090 log Fatal http ListenAndServe 9090 nil code pre Great suggestion My post is bit old but nice refresher Thanks for this great input,1,Drawing pixels on the screen using CoreGraphics in Swift swift core graphics pThe code below is trying to set pixels to an offline bitmap and draw the bitmap to the screen Unfortunately it crashes ppre codeimport UIKitclass GameView UIView required init coder aDecoder NSCoder super init coder aDecoder override init frame CGRect super init frame frame func createBitmapContext pixelsWide Int pixelsHigh Int gt CGContextRef let bytesPerPixel let bytesPerRow bytesPerPixel pixelsWide let bitsPerComponent let byteCount bytesPerRow pixelsHigh let colorSpace CGColorSpaceCreateWithName kCGColorSpaceGenericRGB let pixels UnsafeMutablePointer lt CUnsignedChar gt alloc byteCount if pixels nil return nil let bitmapInfo CGImageAlphaInfo PremultipliedFirst rawValue CGBitmapInfo ByteOrder32Little rawValue let context CGBitmapContextCreate pixels pixelsWide pixelsHigh bitsPerComponent bytesPerRow colorSpace bitmapInfo return context override func drawRect rect CGRect let width 200 let height 300 let boundingBox CGRectMake CGFloat width CGFloat height let context createBitmapContext width height let data CGBitmapContextGetData context var currentPixel UInt32 unsafeBitCast data UInt32 self var for var lt height for var lt width currentPixel let image CGBitmapContextCreateImage context CGContextDrawImage context boundingBox image code pre,golang Facebook authentication using golang org oauth2 facebook graph api go oauth pI am trying to write simple program using the galang org oauth2 package But can seem to exchange code for an access token The following error is bit misleading as it says the authorisation code has been used but see new code every time invoke the login dialog am new to galang and might be making basic mistake any pointers would be really helpful ppre code clientOptions err oauth2 New oauth2 Client xxxxxx 22222222222222 oauth2 RedirectURL http localhost 3000 auth cb fb2 oauth2 Scope public profile email user friends oauth2 Endpoint https www facebook com dialog oauth https graph facebook com oauth access token func handleFBSetupOauth http ResponseWriter http Request url clientOptions AuthCodeURL state online auto fmt Printf Visit the URL for the auth dialog url http Redirect url http StatusFound func handleFBOauthCB http ResponseWriter http Request int string var err error code FormValue code if code return 500 No code fmt Printf code code err clientOptions NewTransportFromCode code if err nil log Fatal err client http Client Transport url https graph facebook com oauth access token client id xxxxxxx amp redirect uri http localhost 3000 auth cb fb2 amp client secret 22222222 amp code code resp err client Get url code prepI get the following error from the last get request pp error message This authorization code has been used type OAuthException code 100 ppI am following these guides Facebook login flow href https developers facebook com docs facebook login manually build login flow v2 rel noreferrer https developers facebook com docs facebook login manually build login flow v2 ppLatest goauth doc href https godoc org golang org oauth2 rel noreferrer https godoc org golang org oauth2 pHere is simple example to get you started ppre codepackage mainimport fmt io ioutil log net http net url strings golang org oauth2 golang org oauth2 facebook var oauthConf amp oauth2 Config ClientID YOUR CLIENT ID ClientSecret YOUR CLIENT SECRET RedirectURL YOUR REDIRECT URL CALLBACK Scopes string public profile Endpoint facebook Endpoint oauthStateString thisshouldberandom const htmlIndex lt html gt lt body gt Logged in with lt href login gt facebook lt gt lt body gt lt html gt func handleMain http ResponseWriter http Request Header Set Content Type text html charset utf WriteHeader http StatusOK Write byte htmlIndex func handleFacebookLogin http ResponseWriter http Request Url err url Parse oauthConf Endpoint AuthURL if err nil log Fatal Parse err parameters url Values parameters Add client id oauthConf ClientID parameters Add scope strings Join oauthConf Scopes parameters Add redirect uri oauthConf RedirectURL parameters Add response type code parameters Add state oauthStateString Url RawQuery parameters Encode url Url String http Redirect url http StatusTemporaryRedirect func handleFacebookCallback http ResponseWriter http Request state FormValue state if state oauthStateString fmt Printf invalid oauth state expected got oauthStateString state http Redirect http StatusTemporaryRedirect return code FormValue code token err oauthConf Exchange oauth2 NoContext code if err nil fmt Printf oauthConf Exchange failed with err http Redirect http StatusTemporaryRedirect return resp err http Get https graph facebook com me access token url QueryEscape token AccessToken if err nil fmt Printf Get err http Redirect http StatusTemporaryRedirect return defer resp Body Close response err ioutil ReadAll resp Body if err nil fmt Printf ReadAll err http Redirect http StatusTemporaryRedirect return log Printf parseResponseBody string response http Redirect http StatusTemporaryRedirect func main http HandleFunc handleMain http HandleFunc login handleFacebookLogin http HandleFunc oauth2callback handleFacebookCallback fmt Print Started running on http localhost 9090 log Fatal http ListenAndServe 9090 nil code pre 45025,77110,666818,Popular Question Popular Question Notable Question Promoter Yearling Citizen Patrol Benefactor Popular Question Nice Answer Inquisitive Revival Excavator Organizer Proofreader Popular Question Necromancer Notable Question Popular Question Notable Question Popular Question Caucus Notable Question Good Question Nice Answer Enlightened Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Peer Pressure Popular Question Popular Question Good Answer Notable Question Yearling Caucus Custodian Reviewer Custodian Popular Question Popular Question,NULL,pHere is simple example to get you started ppre codepackage mainimport fmt io ioutil log net http net url strings golang org oauth2 golang org oauth2 facebook var oauthConf amp oauth2 Config ClientID YOUR CLIENT ID ClientSecret YOUR CLIENT SECRET RedirectURL YOUR REDIRECT URL CALLBACK Scopes string public profile Endpoint facebook Endpoint oauthStateString thisshouldberandom const htmlIndex lt html gt lt body gt Logged in with lt href login gt facebook lt gt lt body gt lt html gt func handleMain http ResponseWriter http Request Header Set Content Type text html charset utf WriteHeader http StatusOK Write byte htmlIndex func handleFacebookLogin http ResponseWriter http Request Url err url Parse oauthConf Endpoint AuthURL if err nil log Fatal Parse err parameters url Values parameters Add client id oauthConf ClientID parameters Add scope strings Join oauthConf Scopes parameters Add redirect uri oauthConf RedirectURL parameters Add response type code parameters Add state oauthStateString Url RawQuery parameters Encode url Url String http Redirect url http StatusTemporaryRedirect func handleFacebookCallback http ResponseWriter http Request state FormValue state if state oauthStateString fmt Printf invalid oauth state expected got oauthStateString state http Redirect http StatusTemporaryRedirect return code FormValue code token err oauthConf Exchange oauth2 NoContext code if err nil fmt Printf oauthConf Exchange failed with err http Redirect http StatusTemporaryRedirect return resp err http Get https graph facebook com me access token url QueryEscape token AccessToken if err nil fmt Printf Get err http Redirect http StatusTemporaryRedirect return defer resp Body Close response err ioutil ReadAll resp Body if err nil fmt Printf ReadAll err http Redirect http StatusTemporaryRedirect return log Printf parseResponseBody string response http Redirect http StatusTemporaryRedirect func main http HandleFunc handleMain http HandleFunc login handleFacebookLogin http HandleFunc oauth2callback handleFacebookCallback fmt Print Started running on http localhost 9090 log Fatal http ListenAndServe 9090 nil code pre Great suggestion My post is bit old but nice refresher Thanks for this great input,1,Drawing pixels on the screen using CoreGraphics in Swift swift core graphics pThe code below is trying to set pixels to an offline bitmap and draw the bitmap to the screen Unfortunately it crashes ppre codeimport UIKitclass GameView UIView required init coder aDecoder NSCoder super init coder aDecoder override init frame CGRect super init frame frame func createBitmapContext pixelsWide Int pixelsHigh Int gt CGContextRef let bytesPerPixel let bytesPerRow bytesPerPixel pixelsWide let bitsPerComponent let byteCount bytesPerRow pixelsHigh let colorSpace CGColorSpaceCreateWithName kCGColorSpaceGenericRGB let pixels UnsafeMutablePointer lt CUnsignedChar gt alloc byteCount if pixels nil return nil let bitmapInfo CGImageAlphaInfo PremultipliedFirst rawValue CGBitmapInfo ByteOrder32Little rawValue let context CGBitmapContextCreate pixels pixelsWide pixelsHigh bitsPerComponent bytesPerRow colorSpace bitmapInfo return context override func drawRect rect CGRect let width 200 let height 300 let boundingBox CGRectMake CGFloat width CGFloat height let context createBitmapContext width height let data CGBitmapContextGetData context var currentPixel UInt32 unsafeBitCast data UInt32 self var for var lt height for var lt width currentPixel let image CGBitmapContextCreateImage context CGContextDrawImage context boundingBox image code pre,golang Facebook authentication using golang org oauth2 facebook graph api go oauth pI am trying to write simple program using the galang org oauth2 package But can seem to exchange code for an access token The following error is bit misleading as it says the authorisation code has been used but see new code every time invoke the login dialog am new to galang and might be making basic mistake any pointers would be really helpful ppre code clientOptions err oauth2 New oauth2 Client xxxxxx 22222222222222 oauth2 RedirectURL http localhost 3000 auth cb fb2 oauth2 Scope public profile email user friends oauth2 Endpoint https www facebook com dialog oauth https graph facebook com oauth access token func handleFBSetupOauth http ResponseWriter http Request url clientOptions AuthCodeURL state online auto fmt Printf Visit the URL for the auth dialog url http Redirect url http StatusFound func handleFBOauthCB http ResponseWriter http Request int string var err error code FormValue code if code return 500 No code fmt Printf code code err clientOptions NewTransportFromCode code if err nil log Fatal err client http Client Transport url https graph facebook com oauth access token client id xxxxxxx amp redirect uri http localhost 3000 auth cb fb2 amp client secret 22222222 amp code code resp err client Get url code prepI get the following error from the last get request pp error message This authorization code has been used type OAuthException code 100 ppI am following these guides Facebook login flow href https developers facebook com docs facebook login manually build login flow v2 rel noreferrer https developers facebook com docs facebook login manually build login flow v2 ppLatest goauth doc href https godoc org golang org oauth2 rel noreferrer https godoc org golang org oauth2 pHere is simple example to get you started ppre codepackage mainimport fmt io ioutil log net http net url strings golang org oauth2 golang org oauth2 facebook var oauthConf amp oauth2 Config ClientID YOUR CLIENT ID ClientSecret YOUR CLIENT SECRET RedirectURL YOUR REDIRECT URL CALLBACK Scopes string public profile Endpoint facebook Endpoint oauthStateString thisshouldberandom const htmlIndex lt html gt lt body gt Logged in with lt href login gt facebook lt gt lt body gt lt html gt func handleMain http ResponseWriter http Request Header Set Content Type text html charset utf WriteHeader http StatusOK Write byte htmlIndex func handleFacebookLogin http ResponseWriter http Request Url err url Parse oauthConf Endpoint AuthURL if err nil log Fatal Parse err parameters url Values parameters Add client id oauthConf ClientID parameters Add scope strings Join oauthConf Scopes parameters Add redirect uri oauthConf RedirectURL parameters Add response type code parameters Add state oauthStateString Url RawQuery parameters Encode url Url String http Redirect url http StatusTemporaryRedirect func handleFacebookCallback http ResponseWriter http Request state FormValue state if state oauthStateString fmt Printf invalid oauth state expected got oauthStateString state http Redirect http StatusTemporaryRedirect return code FormValue code token err oauthConf Exchange oauth2 NoContext code if err nil fmt Printf oauthConf Exchange failed with err http Redirect http StatusTemporaryRedirect return resp err http Get https graph facebook com me access token url QueryEscape token AccessToken if err nil fmt Printf Get err http Redirect http StatusTemporaryRedirect return defer resp Body Close response err ioutil ReadAll resp Body if err nil fmt Printf ReadAll err http Redirect http StatusTemporaryRedirect return log Printf parseResponseBody string response http Redirect http StatusTemporaryRedirect func main http HandleFunc handleMain http HandleFunc login handleFacebookLogin http HandleFunc oauth2callback handleFacebookCallback fmt Print Started running on http localhost 9090 log Fatal http ListenAndServe 9090 nil code pre 45026,149662,802052,NULL,NULL,NULL,0,NULL,NULL 45027,586315,543712,Nice Question Notable Question Famous Question Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Famous Question Autobiographer Good Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45028,1235784,174958,Notable Question,NULL,NULL,0,NULL,NULL 45029,3255,111410,NULL,NULL,NULL,0,NULL,NULL 45030,962952,973680,Deputy Popular Question Nice Answer Enlightened Notable Question Disciplined Yearling Nice Answer Caucus Good Answer Yearling Announcer Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 45031,31764,1204768,Yearling,NULL,NULL,0,NULL,NULL 45032,304613,984042,NULL,NULL,NULL,0,NULL,NULL 45033,367621,581182,NULL,NULL,NULL,0,NULL,NULL 45034,281874,148213,Yearling Popular Question Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 45035,5140,869142,Nice Answer Enlightened Yearling Famous Question Popular Question Nice Question Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 45036,1253059,1164555,Announcer Popular Question,NULL,NULL,0,NULL,NULL 45037,462863,602519,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 45038,1515929,869515,Famous Question,NULL,NULL,0,NULL,NULL 45039,223240,937791,Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45040,9777,90826,Popular Question Yearling Nice Answer Enlightened Nice Answer Good Answer Popular Question Great Answer Great Question Yearling Announcer Guru Yearling Good Question,NULL,NULL,0,NULL,NULL 45041,168188,14044,Census Tumbleweed,NULL,NULL,0,NULL,NULL 45042,883946,1228889,Good Answer Good Answer Yearling Notable Question Popular Question Guru c# Great Question Popular Question Nice Answer Enlightened Nice Question Popular Question Guru Notable Question Good Answer Nice Question Notable Question Famous Question Notable Question Yearling Popular Question Notable Question Nice Answer Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Popular Question Yearling Notable Question Inquisitive Popular Question Great Answer Nice Answer Nice Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45043,165307,867632,NULL,NULL,NULL,0,NULL,NULL 45044,126957,420472,NULL,NULL,NULL,0,NULL,NULL 45045,227009,119466,Yearling Popular Question,NULL,NULL,0,NULL,NULL 45046,41002,127833,Nice Answer Yearling Custodian Explainer Nice Question Yearling,NULL,NULL,0,NULL,NULL 45047,57081,244407,Yearling Notable Question Notable Question Notable Question Popular Question Nice Question Notable Question Yearling Yearling Good Question Nice Question,NULL,NULL,0,NULL,NULL 45048,166440,288195,Nice Answer Caucus Commentator Yearling Self-Learner,NULL,NULL,0,NULL,NULL 45049,24345,399905,NULL,NULL,NULL,0,NULL,NULL 45050,428935,863994,NULL,NULL,NULL,0,NULL,NULL 45051,531153,552418,Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45052,428934,576367,Curious Notable Question Good Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45053,345841,547566,NULL,NULL,NULL,0,NULL,NULL 45054,33593,41096,Good Answer,NULL,NULL,0,NULL,NULL 45055,1172012,312010,NULL,NULL,NULL,0,NULL,NULL 45056,98799,1216102,Nice Answer,NULL,NULL,0,NULL,NULL 45057,663199,1165494,Informed Autobiographer Citizen Patrol Nice Answer,NULL,NULL,0,NULL,NULL 45058,2939795,1477477,NULL,NULL,NULL,0,NULL,NULL 45059,3926582,1188680,Popular Question Curious Informed Announcer,NULL,NULL,0,NULL,NULL 45060,222637,106637,Nice Question Caucus Census Caucus,NULL,NULL,0,NULL,NULL 45061,141025,607277,NULL,NULL,NULL,0,NULL,NULL 45062,780329,958151,Popular Question Teacher Autobiographer,NULL,NULL,0,NULL,NULL 45063,3602428,958151,Popular Question Teacher Autobiographer,NULL,NULL,0,NULL,NULL 45064,309093,859749,NULL,NULL,NULL,0,NULL,NULL 45065,46131,732038,NULL,NULL,NULL,0,NULL,NULL 45066,1352835,1566846,NULL,NULL,NULL,0,NULL,NULL 45067,617830,921467,NULL,NULL,NULL,0,NULL,NULL 45068,303328,637808,Popular Question Popular Question Caucus Critic Popular Question Notable Question Caucus Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 45069,1390063,696260,NULL,NULL,NULL,0,NULL,NULL 45070,8379474,1130338,NULL,NULL,NULL,0,NULL,NULL 45071,1131165,630165,NULL,NULL,NULL,0,NULL,NULL 45072,51643,540921,NULL,NULL,NULL,0,NULL,NULL 45073,431291,236631,Caucus Notable Question Yearling Popular Question Nice Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 45074,363507,1288412,NULL,NULL,NULL,0,NULL,NULL 45075,808534,6533,Nice Question Notable Question Popular Question Famous Question Yearling Popular Question Famous Question Good Question Famous Question Notable Question Yearling Nice Answer Notable Question Favorite Question Famous Question Nice Answer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 45076,74691,20891,NULL,NULL,NULL,0,NULL,NULL 45077,109812,1009658,NULL,NULL,NULL,0,NULL,NULL 45078,1567935,736361,Student Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 45079,478667,817846,NULL,NULL,NULL,0,NULL,NULL 45080,109109,895857,NULL,NULL,NULL,0,NULL,NULL 45081,886550,308173,NULL,NULL,NULL,0,NULL,NULL 45082,75251,227506,NULL,NULL,NULL,0,NULL,NULL 45083,1016371,1224696,Popular Question,NULL,NULL,0,NULL,NULL 45084,398132,1092815,Popular Question Good Question Pundit Famous Question Famous Question Favorite Question Revival Investor Caucus Announcer Constituent Yearling Necromancer Announcer Nice Answer Announcer Great Answer Announcer Good Answer Strunk & White Notable Question Announcer Announcer Documentation User Revival Popular Question Necromancer Announcer Citizen Patrol Yearling Popular Question Necromancer Popular Question Necromancer Necromancer Nice Answer Necromancer Necromancer Nice Answer Archaeologist Popular Question Revival Notable Question Good Answer Nice Answer Nice Question Electorate Announcer Notable Question,NULL,pYou can override forms for django built in admin by setting form attribute of ModelAdmin to your own form class See href https docs djangoproject com en dev ref contrib admin django contrib admin ModelAdmin form rel noreferrer https docs djangoproject com en dev ref contrib admin django contrib admin ModelAdmin form and href https docs djangoproject com en dev ref contrib admin adding custom validation to the admin rel noreferrer https docs djangoproject com en dev ref contrib admin adding custom validation to the admin ppIt also possible to override form template have look at href https docs djangoproject com en dev ref contrib admin custom template options rel noreferrer https docs djangoproject com en dev ref contrib admin custom template options ppIf you re looking specifically for autocomplete can recommend href https github com crucialfelix django ajax selects rel noreferrer https github com crucialfelix django ajax selects If you re looking for admin auto complete did not use django ajax selects but django autocomplete light http django autocomplete light readthedocs io en master is definitely worth it,1,How to publish docker images to docker hub from gitlab ci gitlab ci docker registry pGitlab provides code gitlab ci yml code template for building and publishing images to its own registry click new file in one of your project select code gitlab ci yml code and codedocker code The file looks like this and it works out of the box ppre class lang yaml prettyprint override code This file is template and might need editing before it works on your project Official docker image image docker latestservices docker dindbefore script docker login CI REGISTRY USER CI REGISTRY PASSWORD CI REGISTRYbuild master stage build script docker build pull CI REGISTRY IMAGE docker push CI REGISTRY IMAGE only masterbuild stage build script docker build pull CI REGISTRY IMAGE CI COMMIT REF SLUG docker push CI REGISTRY IMAGE CI COMMIT REF SLUG except master code prepBut by default this will publish to gitlab registry How can we publish to href https hub docker com rel noreferrer docker hub instead,NULL 45085,206479,127508,Citizen Patrol Custodian Yearling Yearling Organizer Notable Question Civic Duty Popular Question Famous Question Nice Question Yearling Popular Question Famous Question Caucus Popular Question Popular Question Notable Question Custodian Notable Question Popular Question Peer Pressure Notable Question Popular Question Nice Answer Popular Question Good Question Yearling Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Documentation User Famous Question Nice Question Notable Question Popular Question Popular Question Announcer Notable Question Yearling Popular Question Good Answer Announcer Popular Question Custodian Nice Question,NULL,NULL,0,NULL,NULL 45086,163466,876181,Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 45087,518403,535223,Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 45088,88588,984840,Necromancer Yearling,NULL,NULL,0,NULL,NULL 45089,41576,1233382,NULL,NULL,NULL,0,NULL,NULL 45090,69449,1077224,Necromancer,NULL,NULL,0,NULL,NULL 45091,2555932,1077224,Necromancer,NULL,NULL,0,NULL,NULL 45092,163447,233406,Nice Answer Good Answer Nice Answer Enlightened Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 45093,13840,693305,Nice Answer Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 45094,66911,78928,Nice Answer Enlightened Famous Question Yearling Notable Question Yearling Nice Question Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 45095,474888,1374411,NULL,NULL,NULL,0,NULL,NULL 45096,21676,171579,Nice Question Yearling Revival Civic Duty Nice Answer Notable Question Yearling Popular Question Documentation User Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 45097,577379,1281312,NULL,NULL,NULL,0,NULL,NULL 45098,113558,518507,NULL,NULL,NULL,0,NULL,NULL 45099,1109123,1116894,Self-Learner,NULL,NULL,0,NULL,NULL 45100,690184,52513,Nice Question Popular Question Notable Question Popular Question Popular Question Cleanup,NULL,NULL,0,NULL,NULL 45101,1521006,996620,NULL,NULL,NULL,0,NULL,NULL 45102,567262,1004301,c Custodian Yearling Caucus Constituent Nice Answer Enlightened Documentation User Yearling Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 45103,9471,93848,Curious,NULL,NULL,0,NULL,NULL 45104,1072129,491945,Yearling Notable Question,NULL,NULL,0,NULL,NULL 45105,109712,119669,Popular Question Nice Answer Good Question Popular Question Yearling Notable Question Famous Question Nice Question Good Answer Nice Question capistrano Notable Question Announcer Popular Question Popular Question Notable Question Notable Question Custodian Yearling Necromancer Notable Question Caucus Notable Question Necromancer Notable Question Popular Question Caucus Popular Question Yearling Good Answer Notable Question Popular Question Famous Question Custodian,NULL,NULL,0,NULL,NULL 45106,83933,807671,Nice Answer Critic Supporter Popular Question,NULL,NULL,0,NULL,NULL 45107,18442,253528,Revival,NULL,NULL,0,NULL,NULL 45108,480595,1093250,NULL,NULL,NULL,0,NULL,NULL 45109,2033413,1093250,NULL,NULL,NULL,0,NULL,NULL 45110,3156503,1093250,NULL,NULL,NULL,0,NULL,NULL 45111,223004,1093250,NULL,NULL,NULL,0,NULL,NULL 45112,86717,68386,NULL,NULL,NULL,0,NULL,NULL 45113,68371,1100378,NULL,NULL,NULL,0,NULL,NULL 45114,694344,230833,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 45115,619272,393615,Necromancer system.reactive Civic Duty Guru Yearling Nice Answer c# Necromancer Nice Answer Nice Answer Good Answer Yearling Documentation User Nice Answer reactive-programming Yearling,NULL,NULL,0,NULL,NULL 45116,113502,301457,Yearling Good Answer Necromancer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 45117,114342,345858,NULL,NULL,NULL,0,NULL,NULL 45118,202972,318165,NULL,NULL,NULL,0,NULL,NULL 45119,113002,1147870,NULL,NULL,NULL,0,NULL,NULL 45120,157394,532890,Nice Answer,NULL,NULL,0,NULL,NULL 45121,9325,310892,Yearling Nice Question Nice Answer Popular Question Great Answer Pundit Yearling Popular Question Good Answer Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 45122,665221,1041012,NULL,NULL,NULL,0,NULL,NULL 45123,42588,879887,NULL,NULL,NULL,0,NULL,NULL 45124,354069,646512,NULL,NULL,NULL,0,NULL,NULL 45125,49258,300038,Yearling Commentator Good Answer,NULL,NULL,0,NULL,NULL 45126,992931,526973,Popular Question Tumbleweed Popular Question Yearling Yearling Notable Question Unsung Hero Popular Question Yearling Nice Answer Notable Question Nice Question Enthusiast Notable Question Famous Question Popular Question Yearling Popular Question Census Self-Learner Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 45127,167490,1196004,NULL,NULL,NULL,0,NULL,NULL 45128,108337,242552,Popular Question Notable Question Revival Yearling Notable Question Popular Question Notable Question Popular Question Famous Question Good Answer Yearling Necromancer Notable Question Favorite Question Notable Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 45129,426100,190256,NULL,NULL,NULL,0,NULL,NULL 45130,164731,379067,NULL,NULL,NULL,0,NULL,NULL 45131,414316,358307,NULL,NULL,NULL,0,NULL,NULL 45132,1559,1954,Great Answer Good Answer Good Answer Popular Question Good Answer Yearling Great Answer Good Answer Announcer Announcer Good Question Nice Answer Good Answer Great Answer Guru Good Answer Announcer Yearling Good Answer Guru Good Answer Announcer Nice Answer Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 45133,841708,968507,NULL,NULL,NULL,0,NULL,NULL 45134,449892,463092,Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Popular Question Famous Question Custodian Yearling Popular Question Notable Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 45135,266543,545334,NULL,NULL,NULL,0,NULL,NULL 45136,46921,164334,Commentator Student Informed Yearling Scholar Revival Necromancer Nice Question,NULL,NULL,0,NULL,NULL 45137,254218,342755,NULL,NULL,NULL,0,NULL,NULL 45138,657291,285470,Yearling Notable Question Investor Yearling Popular Question Custodian Custodian,NULL,NULL,0,NULL,NULL 45139,24303,18201,Necromancer Yearling Nice Answer Nice Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 45140,372359,1015519,NULL,NULL,NULL,0,NULL,NULL 45141,210714,475437,Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 45142,885728,931740,NULL,NULL,NULL,0,NULL,NULL 45143,8034,1114379,NULL,NULL,NULL,0,NULL,NULL 45144,769799,1172844,NULL,NULL,NULL,0,NULL,NULL 45145,195946,528826,NULL,NULL,NULL,0,NULL,NULL 45146,388054,1464317,Tumbleweed Scholar Curious,NULL,NULL,0,NULL,NULL 45147,178710,900997,NULL,NULL,NULL,0,NULL,NULL 45148,45855,115478,Announcer Guru Necromancer Nice Answer Yearling Nice Question Nice Answer Favorite Question Good Question Nice Question Custodian Nice Question Nice Answer Nice Answer Enlightened Good Answer Popular Question Great Answer Popular Question Yearling Announcer Announcer Popular Question Famous Question Announcer Good Question Favorite Question Yearling Great Question Good Answer Nice Question Notable Question Popular Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 45149,223512,909459,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45150,206182,1364245,NULL,NULL,NULL,0,NULL,NULL 45151,267821,355251,NULL,NULL,NULL,0,NULL,NULL 45152,379590,1348454,NULL,NULL,NULL,0,NULL,NULL 45153,309079,399759,Nice Answer Notable Question Famous Question Nice Answer Revival Popular Question Good Question Necromancer Famous Question Excavator Notable Question Popular Question Announcer Announcer Yearling Nice Answer Notable Question Nice Answer Good Question Popular Question Popular Question Popular Question Famous Question Notable Question Nice Answer Popular Question Necromancer Notable Question Good Answer Quorum Notable Question Nice Question Caucus Yearling Inquisitive Notable Question Custodian Custodian Notable Question Popular Question Vox Populi Notable Question Good Question Census Popular Question Caucus Necromancer Revival Popular Question Notable Question Informed Autobiographer Guru Popular Question Nice Question Yearling Good Answer Popular Question Notable Question Notable Question Nice Answer Nice Question Popular Question Notable Question Notable Question Notable Question Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 45154,249565,898947,Editor Teacher Necromancer Supporter Nice Answer Yearling Nice Answer Scholar,NULL,NULL,0,NULL,NULL 45155,183203,1092898,NULL,NULL,NULL,0,NULL,NULL 45156,61450,470824,Student Popular Question,NULL,NULL,0,NULL,NULL 45157,111131,1209800,NULL,NULL,NULL,0,NULL,NULL 45158,499804,962261,NULL,NULL,NULL,0,NULL,NULL 45159,36323,3765,Proofreader Announcer Yearling Announcer Announcer Notable Question Good Answer Nice Question Yearling Nice Answer Enlightened Yearling,NULL,Easiest way to detect remove unused use statements from PHP codebase php pI ve searched all over for something like this but believe the word use is perhaps too common for any helpful results ppWhat is the easiest way to remove all un used codeuse code statements from class files in PHP codebase pp strongEdit strong For the sake of simplicity we can ignore detecting codeuse code statements that are used for annotations You forgot step where you pay 89 yr,0,NULL,NULL 45160,893645,444219,NULL,NULL,NULL,0,NULL,NULL 45161,24359,216524,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 45162,299856,848011,NULL,NULL,NULL,0,NULL,NULL 45163,192553,1176153,NULL,NULL,NULL,0,NULL,NULL 45164,127186,168286,Good Question Notable Question Famous Question Nice Answer Good Question Famous Question Famous Question Nice Question Popular Question Good Question Popular Question Yearling Nice Question Notable Question Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Notable Question Yearling Notable Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 45165,211885,788574,Yearling Citizen Patrol Custodian Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 45166,166681,910943,Yearling,NULL,NULL,0,NULL,NULL 45167,6173851,80943,Nice Question Good Question Revival Good Question Notable Question Popular Question Famous Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 45168,295338,80943,Nice Question Good Question Revival Good Question Notable Question Popular Question Famous Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 45169,3004,688417,NULL,NULL,NULL,0,NULL,NULL 45170,116384,107567,Inquisitive Yearling Favorite Question Self-Learner Popular Question Good Answer Yearling Great Question Popular Question Custodian Popular Question Yearling Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45171,164586,360999,NULL,NULL,NULL,0,NULL,NULL 45172,80877,363606,Popular Question Nice Question Guru Favorite Question Famous Question Yearling Nice Question Great Question Popular Question Popular Question Good Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 45173,101029,1080017,NULL,NULL,NULL,0,NULL,NULL 45174,257627,1103241,NULL,NULL,NULL,0,NULL,NULL 45175,22785,460007,NULL,NULL,NULL,0,NULL,NULL 45176,90119,38722,Tumbleweed Yearling Popular Question Nice Answer Yearling Benefactor Popular Question Yearling,NULL,NULL,0,NULL,NULL 45177,123267,1084645,Census,NULL,NULL,0,NULL,NULL 45178,83713,510991,Autobiographer Yearling Revival Necromancer Critic Commentator,NULL,pThe guide to getting fired How to abuse function pointers in GCC on x86 machines by compiling your code by hand ppThese string literals are bytes of 32 bit x86 machine code code0xC3 code is href http felixcloutier com x86 RET html rel noreferrer an x86 coderet code instruction ppYou wouldn normally write these by hand you write in assembly language and then use an assembler like codenasm code to assemble it into flat binary which you hexdump into string literal polli pReturns the current value on the EAX register ppre codeint eax int xc3 lt This returns the value of the EAX register code pre lili pWrite swap function ppre codeint 10 20 void int int x8b x44 x24 x04 x8b x5c x24 x08 x8b x00 x8b x1b x31 xc3 x31 xd8 x31 xc3 x8b x4c x24 x04 x89 x01 x8b x4c x24 x08 x89 x19 xc3 lt This swaps the values of and amp amp code pre lili pWrite for loop counter to 1000 calling some function each time ppre code int x66 x31 xc0 x8b x5c x24 x04 x66 x40 x50 xff xd3 x58 x66 x3d xe8 x03 x75 xf4 xc3 amp function calls function with gt 1000 code pre lili pYou can even write recursive function that counts to 100 ppre codeconst char lol x8b x5c x24 x4 x3d xe8 x3 x0 x0 x7e x2 x31 xc0 x83 xf8 x64 x7d x6 x40 x53 xff xd3 x5b xc3 xc3 lt Recursively calls the function at address lol int lol lol code pre li olpNote that compilers place string literals in the code rodata code section or code rdata code on Windows which is linked as part of the text segment along with code for functions ppThe text segment has Read Exec permission so casting string literals to function pointers works without needing codemprotect code or codeVirtualProtect code system calls like you need for dynamically allocated memory Or codegcc execstack code links the program with stack data segment heap executable as quick hack phrpTo disassemble these you can compile this to put label on the bytes and use disassembler ppre code at global scopeconst char swap x8b x44 x24 x04 x8b x5c x24 x08 x8b x00 x8b x1b x31 xc3 x31 xd8 x31 xc3 x8b x4c x24 x04 x89 x01 x8b x4c x24 x08 x89 x19 xc3 lt This swaps the values of and code prepCompiling with codegcc m32 foo code and disassembling with codeobjdump rwC Mintel code we can get the assembly and find out that this code violates the ABI by clobbering EBX call preserved register and is generally inefficient ppre code00000000 lt swap gt 8b 44 24 04 mov eax DWORD PTR esp 0x4 load int arg from the stack 8b 5c 24 08 mov ebx DWORD PTR esp 0x8 ebx 8b 00 mov eax DWORD PTR eax dereference eax 8b 1b mov ebx DWORD PTR ebx 31 c3 xor ebx eax pointless xor swap 31 d8 xor eax ebx instead of just storing with opposite registers 10 31 c3 xor ebx eax 12 8b 4c 24 04 mov ecx DWORD PTR esp 0x4 reload from the stack 16 89 01 mov DWORD PTR ecx eax store to 18 8b 4c 24 08 mov ecx DWORD PTR esp 0x8 1c 89 19 mov DWORD PTR ecx ebx 1e c3 ret not shown the later bytes are ASCII text documentation they re not executed by the CPU because the ret instruction sends execution back to the caller code prepThis machine code will probably work in 32 bit code on Windows Linux OS and so on the default calling conventions on all those OSes pass args on the stack instead of more efficiently in registers But EBX is call preserved in all the normal calling conventions so using it as scratch register without saving restoring it can easily make the caller crash ve been on the run for the last years from angry employers armed with tanks of gasoline pThe guide to getting fired How to abuse function pointers in GCC on x86 machines by compiling your code by hand ppThese string literals are bytes of 32 bit x86 machine code code0xC3 code is href http felixcloutier com x86 RET html rel noreferrer an x86 coderet code instruction ppYou wouldn normally write these by hand you write in assembly language and then use an assembler like codenasm code to assemble it into flat binary which you hexdump into string literal polli pReturns the current value on the EAX register ppre codeint eax int xc3 lt This returns the value of the EAX register code pre lili pWrite swap function ppre codeint 10 20 void int int x8b x44 x24 x04 x8b x5c x24 x08 x8b x00 x8b x1b x31 xc3 x31 xd8 x31 xc3 x8b x4c x24 x04 x89 x01 x8b x4c x24 x08 x89 x19 xc3 lt This swaps the values of and amp amp code pre lili pWrite for loop counter to 1000 calling some function each time ppre code int x66 x31 xc0 x8b x5c x24 x04 x66 x40 x50 xff xd3 x58 x66 x3d xe8 x03 x75 xf4 xc3 amp function calls function with gt 1000 code pre lili pYou can even write recursive function that counts to 100 ppre codeconst char lol x8b x5c x24 x4 x3d xe8 x3 x0 x0 x7e x2 x31 xc0 x83 xf8 x64 x7d x6 x40 x53 xff xd3 x5b xc3 xc3 lt Recursively calls the function at address lol int lol lol code pre li olpNote that compilers place string literals in the code rodata code section or code rdata code on Windows which is linked as part of the text segment along with code for functions ppThe text segment has Read Exec permission so casting string literals to function pointers works without needing codemprotect code or codeVirtualProtect code system calls like you need for dynamically allocated memory Or codegcc execstack code links the program with stack data segment heap executable as quick hack phrpTo disassemble these you can compile this to put label on the bytes and use disassembler ppre code at global scopeconst char swap x8b x44 x24 x04 x8b x5c x24 x08 x8b x00 x8b x1b x31 xc3 x31 xd8 x31 xc3 x8b x4c x24 x04 x89 x01 x8b x4c x24 x08 x89 x19 xc3 lt This swaps the values of and code prepCompiling with codegcc m32 foo code and disassembling with codeobjdump rwC Mintel code we can get the assembly and find out that this code violates the ABI by clobbering EBX call preserved register and is generally inefficient ppre code00000000 lt swap gt 8b 44 24 04 mov eax DWORD PTR esp 0x4 load int arg from the stack 8b 5c 24 08 mov ebx DWORD PTR esp 0x8 ebx 8b 00 mov eax DWORD PTR eax dereference eax 8b 1b mov ebx DWORD PTR ebx 31 c3 xor ebx eax pointless xor swap 31 d8 xor eax ebx instead of just storing with opposite registers 10 31 c3 xor ebx eax 12 8b 4c 24 04 mov ecx DWORD PTR esp 0x4 reload from the stack 16 89 01 mov DWORD PTR ecx eax store to 18 8b 4c 24 08 mov ecx DWORD PTR esp 0x8 1c 89 19 mov DWORD PTR ecx ebx 1e c3 ret not shown the later bytes are ASCII text documentation they re not executed by the CPU because the ret instruction sends execution back to the caller code prepThis machine code will probably work in 32 bit code on Windows Linux OS and so on the default calling conventions on all those OSes pass args on the stack instead of more efficiently in registers But EBX is call preserved in all the normal calling conventions so using it as scratch register without saving restoring it can easily make the caller crash Good eyes friend noticed while ago that used an unnecessarily complicated prologue just to setup the swap using xors was waiting for someone else to call me out on this,0,NULL,NULL 45179,12767,1254336,NULL,NULL,NULL,0,NULL,NULL 45180,14895,147349,NULL,NULL,NULL,0,NULL,NULL 45181,984334,1257109,NULL,NULL,NULL,0,NULL,NULL 45182,222755,110395,Nice Question Yearling Famous Question Announcer Famous Question Popular Question Popular Question Popular Question Nice Question Yearling Announcer Nice Question Yearling,NULL,NULL,0,NULL,NULL 45183,2024123,528929,Notable Question Custodian Popular Question Popular Question Suffrage Necromancer Popular Question Popular Question Notable Question Nice Answer Enlightened Nice Question Popular Question Caucus Popular Question Yearling Popular Question Custodian Proofreader Reviewer Custodian Quorum Notable Question Popular Question Popular Question Nice Question Nice Answer Documentation User Notable Question Popular Question Notable Question Yearling Nice Answer Enlightened Census Popular Question Popular Question Nice Answer Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 45184,100942,528929,Notable Question Custodian Popular Question Popular Question Suffrage Necromancer Popular Question Popular Question Notable Question Nice Answer Enlightened Nice Question Popular Question Caucus Popular Question Yearling Popular Question Custodian Proofreader Reviewer Custodian Quorum Notable Question Popular Question Popular Question Nice Question Nice Answer Documentation User Notable Question Popular Question Notable Question Yearling Nice Answer Enlightened Census Popular Question Popular Question Nice Answer Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 45185,463186,697586,Student Scholar Yearling,NULL,NULL,0,NULL,NULL 45186,259357,948084,Student,NULL,,0,, 45187,423278,29975,Nice Question Yearling Revival Notable Question Good Question Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 45188,630691,427338,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45189,106288,788759,NULL,NULL,NULL,0,NULL,NULL 45190,2201376,1459866,NULL,NULL,NULL,0,NULL,NULL 45191,94343,339556,Yearling,NULL,NULL,0,NULL,NULL 45192,42358,297939,Popular Question Popular Question Announcer Announcer Nice Question Nice Question Popular Question Yearling Civic Duty Announcer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 45193,128002,191882,Yearling Revival,NULL,NULL,0,NULL,NULL 45194,1194350,794969,NULL,NULL,NULL,0,NULL,NULL 45195,138730,9198,NULL,NULL,NULL,0,NULL,NULL 45196,10962,1181448,NULL,NULL,NULL,0,NULL,NULL 45197,598779,1137905,Editor Excavator,NULL,NULL,0,NULL,NULL 45198,961195,675402,NULL,NULL,NULL,0,NULL,NULL 45199,381123,917844,NULL,NULL,NULL,0,NULL,NULL 45200,28630,209691,Nice Question Notable Question Popular Question Famous Question Popular Question Yearling,NULL,pSame error for me and didn experience it until downloaded OS 10 Mavericks Sigh another OS upgrade headache ppHere how fixed it with homebrew pulliInstall another build of Xcode Tools typing codebrew update code in the terminal will prompt you to update the Xcode build tools lili codebrew update code lili codebrew install postgresql code li ulpAfter that codegem install pg code worked for me can also confirm that this fixed the problem for me Thanks guy,0,NULL,NULL 45201,412297,208537,NULL,NULL,NULL,0,NULL,NULL 45202,513849,133593,NULL,NULL,NULL,0,NULL,NULL 45203,310042,1267321,NULL,NULL,NULL,0,NULL,NULL 45204,682361,891354,Supporter Student Editor Scholar Commentator Yearling Yearling Caucus Yearling Tenacious,NULL,NULL,1,NULL,How get PostgreSQL version using psycopg2 postgresql psycopg2 pI have the follow statements ppre codefrom alembic import opconn op get bind code prepNow want to get postgresql version pAccording to documentation it is href http initd org psycopg docs connection html connection server version rel nofollow server version property of connection ppre codeconn psycopg2 connect settings DB DSN gt gt gt conn server version90504 code preblockquote pThe number is formed by converting the major minor and revision numbers into two decimal digit numbers and appending them together For example version will be returned as 80105 blockquote 45205,604529,1123890,NULL,NULL,NULL,0,NULL,NULL 45206,609907,1098184,NULL,NULL,NULL,0,NULL,NULL 45207,121952,522681,NULL,NULL,NULL,0,NULL,NULL 45208,23326,35946,Yearling Nice Answer Nice Question Suffrage Announcer Yearling Revival Necromancer Announcer Necromancer Yearling Custodian,NULL,What does zend mm heap corrupted mean php heap fedora php internals pAll of the sudden ve been having problems with my application that ve never had before decided to check the Apache error log and found an error message saying zend mm heap corrupted What does this mean ppOS Fedora Core 8Apache 9PHP Yes same here Also see another report further below http stackoverflow com 35212026 35946,0,NULL,NULL 45209,148893,551814,Revival,NULL,NULL,0,NULL,NULL 45210,252997,610874,Popular Question Yearling Editor Tumbleweed,NULL,NULL,0,NULL,NULL 45211,525,1257484,NULL,NULL,NULL,0,NULL,NULL 45212,1092215,1035227,NULL,NULL,NULL,0,NULL,NULL 45213,539412,739351,Revival Yearling Commentator Yearling Nice Question Necromancer Necromancer Critic,NULL,NULL,0,NULL,NULL 45214,248180,83654,NULL,NULL,NULL,0,NULL,NULL 45215,583643,14257,Yearling Good Answer Good Answer Yearling Yearling Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 45216,299617,1224333,NULL,NULL,NULL,0,NULL,NULL 45217,1710231,679354,Yearling Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 45218,253943,679354,Yearling Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 45219,92562,884967,NULL,NULL,NULL,0,NULL,NULL 45220,503736,327615,Yearling Critic Caucus Nice Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 45221,100264,480612,Good Answer Yearling,NULL,NULL,0,NULL,NULL 45222,104955,52176,Yearling Good Question Nice Answer Nice Answer Necromancer Good Answer Good Answer Necromancer Necromancer Nice Answer Good Answer Cleanup java Informed Caucus Nice Answer Yearling Necromancer Necromancer Necromancer Nice Answer Nice Answer Announcer Caucus Good Answer Nice Answer Pundit Yearling Notable Question Great Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 45223,130529,175251,Nice Question Nice Answer Notable Question Popular Question Yearling Good Question Popular Question Nice Answer Promoter Nice Question Yearling Notable Question Necromancer Investor Yearling,NULL,NULL,0,NULL,NULL 45224,91370,1164267,Teacher Necromancer,NULL,NULL,0,NULL,NULL 45225,212755,848002,NULL,NULL,NULL,0,NULL,NULL 45226,378840,1069119,Popular Question Teacher Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 45227,979503,82358,NULL,NULL,NULL,0,NULL,NULL 45228,212639,82358,NULL,NULL,NULL,0,NULL,NULL 45229,32275,954816,Revival,NULL,NULL,0,NULL,NULL 45230,1516633,1240421,NULL,NULL,NULL,0,NULL,NULL 45231,446130,551902,NULL,NULL,NULL,0,NULL,NULL 45232,27419,234171,Nice Answer,NULL,NULL,0,NULL,NULL 45233,180514,264696,Notable Question Good Question Nice Question Yearling Notable Question Notable Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 45234,890517,654534,NULL,NULL,NULL,0,NULL,NULL 45235,251840,783353,Yearling Popular Question Famous Question Famous Question Yearling Popular Question Custodian Caucus Popular Question Notable Question Good Question Popular Question Popular Question Caucus Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45236,479835,237217,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 45237,761764,1553202,NULL,NULL,NULL,0,NULL,NULL 45238,1902134,237626,Yearling Popular Question,NULL,NULL,0,NULL,NULL 45239,3778161,237626,Yearling Popular Question,NULL,NULL,0,NULL,NULL 45240,1684522,237626,Yearling Popular Question,NULL,NULL,0,NULL,NULL 45241,66204,415638,Teacher Supporter,NULL,NULL,0,NULL,NULL 45242,525165,199732,Notable Question,NULL,NULL,0,NULL,NULL 45243,895077,892056,Tumbleweed Announcer Caucus Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45244,194710,923924,Yearling,NULL,NULL,0,NULL,NULL 45245,1344440,1124318,NULL,NULL,NULL,0,NULL,NULL 45246,71890,427545,Nice Answer Enlightened Great Answer Necromancer Notable Question Guru Notable Question Popular Question Necromancer Guru Great Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Notable Question Announcer Good Answer Nice Answer Necromancer Yearling Popular Question Inquisitive Guru Good Answer Guru Nice Answer Guru Nice Answer Enlightened Necromancer Popular Question Guru Popular Question Good Question Nice Answer Nice Answer Enlightened Generalist Nice Answer Necromancer Nice Answer Enlightened Nice Answer Good Answer Revival Great Answer Announcer php Guru Nice Answer Announcer Famous Question Nice Answer Guru Announcer Necromancer Guru Notable Question Yearling Revival Notable Question Good Answer Guru Nice Answer Announcer Nice Answer Good Question Announcer Necromancer Nice Answer Enlightened Announcer Nice Question Popular Question Good Answer Popular Question Great Answer Good Question Announcer Nice Answer Enlightened Great Answer Nice Answer Famous Question Announcer Good Answer Famous Question Nice Question Nice Answer Enlightened .htaccess Announcer Yearling Nice Answer Enlightened Necromancer Nice Answer Good Answer,NULL,pThe pretty printers listed on href https techbase kde org Development Tutorials Debugging Debugging with GDB rel noreferrer https techbase kde org Development Tutorials Debugging Debugging with GDB are only partially compatible with Qt Some types such QByteArray are not handled correctly ppAlex Merry has worked on Qt pretty printers and href https codereview qt project org 87052 rel noreferrer tried to push these into the Qt5 Base packages unfortunately it did not made it For convenience have made his printers available at href https github com Lekensteyn qt5printers rel noreferrer https github com Lekensteyn qt5printers You need at least GDB for the pretty printing module https sourceware org git gitweb cgi binutils gdb git commit 7b51bc51e108b017e45141b15d940514a31260f6 see also the NEWS file,1,NULL,CMake generator expression differentiate code 11 cmake pI would like to add code std 11 code to my ppre codeadd compile options std 11 code prepHowever this also adds them to compilation of emC em files not only emC em know can add conditional compile flags depending on the configuration used ppre codeadd compile options lt lt CONFIG DEBUG gt addMeInDebugOnly gt code prepHow can add my flag only to files looking for something like ppre codeadd compile options lt lt gt std 11 gt code prepBut what do need to fill in with the question marks pWhen you have mixed and sources the codeLINKER LANGUAGE code property might apply the wrong flags for compilation of individual sources The solution is to use the codeCOMPILE LANGUAGE code generator expression introduced with CMake The simplest example for your original 1x flag is ppre codeadd compile options lt lt COMPILE LANGUAGE CXX gt std 11 gt code prepWhen you have string of compile options for example for usage with the codeCOMPILE FLAGS code target property you have to split the flags ppre codeset WARNCFLAGS Wall Wextra Wfuzzle Wbar string REPLACE flags WARNCFLAGS string REPLACE cxx flags WARNCXXFLAGS CXX1XCXXFLAGS add compile options lt lt COMPILE LANGUAGE gt flags gt lt lt COMPILE LANGUAGE CXX gt cxx flags gt Two alternative variants for single targets that take strings target compile options some target PRIVATE WARNCFLAGS set target properties some target PROPERTIES COMPILE FLAGS WARNCFLAGS code prepUse of strings is however deprecated in favor of lists When lists are in use you can use ppre codeset flags Wall Wextra Wfuzzle Wbar add compile options lt lt COMPILE LANGUAGE gt flags gt lt lt COMPILE LANGUAGE CXX gt cxx flags gt Two alternative variants for single targets given list target compile options some target PRIVATE flags set target properties some target PROPERTIES COMPILE OPTIONS flags code prepPay attention to the quoting If list is not quotes it is expanded to its items and is no longer list To pass list between commands quote it 45247,1591197,594473,NULL,NULL,NULL,0,NULL,NULL 45248,11991,673493,NULL,NULL,NULL,0,NULL,NULL 45249,195792,450839,NULL,NULL,NULL,0,NULL,NULL 45250,36875,1488073,Nice Answer Enlightened Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 45251,1030985,1252084,NULL,NULL,NULL,0,NULL,NULL 45252,126588,724933,Famous Question Nice Answer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 45253,2501178,724933,Famous Question Nice Answer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 45254,1165432,571682,Famous Question Famous Question Popular Question Popular Question Caucus Nice Question Revival Self-Learner Yearling,NULL,NULL,0,NULL,NULL 45255,422252,472840,Nice Answer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45256,188189,885053,Self-Learner Yearling Popular Question Popular Question Yearling Popular Question Organizer Popular Question,NULL,NULL,0,NULL,NULL 45257,165330,669714,NULL,NULL,NULL,0,NULL,NULL 45258,183312,523344,Yearling,NULL,NULL,0,NULL,NULL 45259,240189,1165635,Yearling Announcer,NULL,NULL,0,NULL,NULL 45260,28214,73007,Necromancer Yearling Good Question Yearling Critic Announcer Yearling Nice Answer Announcer Famous Question Announcer Yearling Explainer Custodian,NULL,NULL,0,NULL,NULL 45261,454576,1037243,Custodian Citizen Patrol Nice Answer Enlightened Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Nice Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 45262,474729,1377718,NULL,NULL,NULL,0,NULL,NULL 45263,1100007,619349,Popular Question Commentator,NULL,NULL,0,NULL,NULL 45264,600117,1499974,Self-Learner,NULL,NULL,0,NULL,NULL 45265,4075245,1499974,Self-Learner,NULL,NULL,0,NULL,NULL 45266,897967,970232,NULL,NULL,NULL,0,NULL,NULL 45267,1508115,999902,NULL,NULL,NULL,0,NULL,NULL 45268,325752,797538,Nice Answer Enlightened Good Answer Yearling Nice Answer Caucus Constituent Guru Good Answer Yearling Caucus Constituent Good Answer Census Guru Caucus Good Answer Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45269,442281,1195214,NULL,NULL,NULL,0,NULL,NULL 45270,835943,391539,NULL,NULL,NULL,0,NULL,NULL 45271,29323,289594,Necromancer Yearling Popular Question Proofreader Critic Yearling Announcer Good Answer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 45272,1514191,665920,Notable Question,NULL,NULL,0,NULL,NULL 45273,3006526,633742,Popular Question Yearling Editor Good Answer Notable Question Nice Question Announcer Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 45274,23354,633742,Popular Question Yearling Editor Good Answer Notable Question Nice Question Announcer Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 45275,2283336,633742,Popular Question Yearling Editor Good Answer Notable Question Nice Question Announcer Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 45276,616902,1335091,NULL,NULL,NULL,0,NULL,NULL 45277,88259,752173,Good Answer Yearling Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 45278,1177392,568629,NULL,NULL,NULL,0,NULL,NULL 45279,200758,114029,Nice Answer Guru Nice Answer Nice Answer Nice Answer Notable Question Good Answer Necromancer Necromancer Nice Answer Enlightened Great Answer Nice Answer Enlightened Great Question Good Answer Notable Question Popular Question Good Answer Popular Question Great Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Nice Answer Necromancer Nice Answer Nice Answer Necromancer Nice Answer Enlightened Necromancer Necromancer Guru Nice Answer Booster Yearling Good Answer Good Answer Nice Answer Good Answer Good Answer Great Answer Nice Answer Necromancer Announcer Populist Guru Good Answer Nice Answer Nice Answer Good Answer Nice Answer Guru Good Answer Nice Question Good Answer Nice Answer Revival Good Answer Nice Answer Good Answer Necromancer Good Answer Caucus Guru Nice Answer Necromancer Great Answer Good Answer Nice Answer Good Answer Good Answer Revival Populist Populist Nice Answer Announcer Announcer Populist Necromancer Nice Answer Revival Announcer Guru Nice Answer Popular Question Nice Answer Good Answer Necromancer Necromancer Great Answer Announcer Good Answer Yearling Revival Announcer Popular Question Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Good Answer Notable Question Caucus Announcer Announcer Announcer Announcer Nice Answer Announcer Good Answer Booster Announcer Nice Answer Necromancer excel Good Answer database Announcer Necromancer Announcer Popular Question Necromancer Necromancer Nice Answer Announcer Good Answer Nice Answer Notable Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Announcer Popular Question Good Answer Announcer Announcer javascript Announcer Popular Question html Caucus Guru Great Answer Nice Answer Enlightened Announcer Good Answer Populist Announcer Announcer Announcer Yearling Necromancer Famous Question Necromancer Necromancer Announcer Guru Announcer oracle Booster Announcer Announcer Necromancer Announcer Great Answer,NULL,NULL,0,NULL,NULL 45280,27627,1237790,NULL,NULL,NULL,0,NULL,NULL 45281,374509,172932,Famous Question,NULL,NULL,0,NULL,NULL 45282,293673,1114639,NULL,NULL,NULL,0,NULL,NULL 45283,424524,1547619,Popular Question Yearling Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 45284,148698,140674,NULL,NULL,NULL,0,NULL,NULL 45285,898508,1062819,NULL,NULL,NULL,0,NULL,NULL 45286,26398,1434643,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45287,59692,587644,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 45288,132525,1158880,NULL,NULL,NULL,0,NULL,NULL 45289,17192,695171,Popular Question,NULL,NULL,0,NULL,NULL 45290,244790,1161403,NULL,NULL,NULL,0,NULL,NULL 45291,6705799,1161403,NULL,NULL,NULL,0,NULL,NULL 45292,1041748,1247720,NULL,NULL,NULL,0,NULL,NULL 45293,1517242,733726,NULL,NULL,NULL,0,NULL,NULL 45294,72176,2901,Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 45295,2263,1431173,NULL,NULL,NULL,0,NULL,NULL 45296,446969,1366590,Citizen Patrol Announcer Informed,NULL,Best practices to test protected methods with PHPUnit php unit testing phpunit pI found the discussion on href https stackoverflow com questions 105007 do you test private method Do you test private method informative ppI have decided that in some classes want to have protected methods but test them Some of these methods are static and short Because most of the public methods make use of them will probably be able to safely remove the tests later But for starting with TDD approach and avoid debugging really want to test them ppI thought of the following pulli href http www refactoring com catalog replaceMethodWithMethodObject html rel noreferrer Method Object as adviced in href https stackoverflow com questions 105007 do you test private method 105021 an answer seems to be overkill for this liliStart with public methods and when code coverage is given by higher level tests turn them protected and remove the tests liliInherit class with testable interface making protected methods public li ulpWhich is best practice Is there anything else ppIt seems that JUnit automatically changes protected methods to be public but did not have deeper look at it PHP does not allow this via href http php net language oop5 reflection rel noreferrer reflection It entirely possible that he may not want to test the public class interface as such but the interface that it presents to child classes which can access protected methods Best practices to test protected methods with PHPUnit php unit testing phpunit pI found the discussion on href https stackoverflow com questions 105007 do you test private method Do you test private method informative ppI have decided that in some classes want to have protected methods but test them Some of these methods are static and short Because most of the public methods make use of them will probably be able to safely remove the tests later But for starting with TDD approach and avoid debugging really want to test them ppI thought of the following pulli href http www refactoring com catalog replaceMethodWithMethodObject html rel noreferrer Method Object as adviced in href https stackoverflow com questions 105007 do you test private method 105021 an answer seems to be overkill for this liliStart with public methods and when code coverage is given by higher level tests turn them protected and remove the tests liliInherit class with testable interface making protected methods public li ulpWhich is best practice Is there anything else ppIt seems that JUnit automatically changes protected methods to be public but did not have deeper look at it PHP does not allow this via href http php net language oop5 reflection rel noreferrer reflection Belolo and to do that he would Do what exactly How to detect idle time in JavaScript elegantly javascript pIs it possible to detect strong emidle em strong time in JavaScript brMy primary use case probably would be to pre fetch or preload content ppIdle time emPeriod of user inactivity or without any CPU usage em thats StackOverflow for you,0,NULL,NULL 45297,304462,1226448,Enthusiast Curious,NULL,NULL,0,NULL,NULL 45298,543182,525394,NULL,NULL,NULL,0,NULL,NULL 45299,437809,480221,Popular Question,NULL,NULL,0,NULL,NULL 45300,1355072,73198,Notable Question Nice Question Critic,NULL,NULL,0,NULL,NULL 45301,370459,7559,NULL,NULL,NULL,0,NULL,NULL 45302,447647,303056,Nice Answer Enlightened Popular Question Nice Answer Popular Question Notable Question Nice Question Yearling Guru jquery Notable Question Popular Question Great Answer Great Question Good Answer Famous Question Notable Question Nice Question Nice Answer Enlightened Great Question Famous Question Tag Editor Caucus Nice Answer Nice Answer Famous Question Notable Question Necromancer Popular Question Revival Nice Answer Yearling Notable Question Nice Answer Enlightened Good Answer Favorite Question Nice Answer Nice Question Popular Question Good Answer Famous Question Populist Famous Question Popular Question Good Answer Popular Question Yearling Revival Notable Question Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45303,48905,689463,Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45304,315546,1385366,Popular Question,NULL,NULL,0,NULL,NULL 45305,82834,521475,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 45306,53560,100912,Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45307,1146320,308941,Notable Question,NULL,NULL,0,NULL,NULL 45308,17809,2451,Yearling Student Promoter Yearling Yearling,NULL,NULL,0,NULL,NULL 45309,105176,1088011,Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 45310,2245128,488527,NULL,NULL,NULL,0,NULL,NULL 45311,173963,919231,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45312,1367514,690448,NULL,NULL,NULL,0,NULL,NULL 45313,59160,907678,Popular Question Proofreader Yearling Necromancer Guru Nice Answer Enlightened Yearling Nice Answer Great Answer Yearling Informed Nice Answer,NULL,NULL,0,NULL,NULL 45314,34326,581235,NULL,NULL,NULL,0,NULL,NULL 45315,359898,522932,Teacher,NULL,NULL,0,NULL,NULL 45316,338553,1010083,NULL,NULL,NULL,0,NULL,NULL 45317,168708,935499,NULL,NULL,NULL,0,NULL,NULL 45318,291508,961598,Popular Question,NULL,NULL,0,NULL,NULL 45319,97866,3838,Yearling Supporter,NULL,NULL,0,NULL,NULL 45320,419410,937468,NULL,NULL,NULL,0,NULL,NULL 45321,319986,1001468,Revival Nice Answer,NULL,NULL,0,NULL,NULL 45322,157540,478532,xquery Yearling Yearling Custodian xml Yearling,NULL,NULL,0,NULL,NULL 45323,2140,844035,NULL,NULL,NULL,0,NULL,NULL 45324,352084,849076,Steward Reviewer Revival Popular Question Yearling Necromancer Caucus Constituent Popular Question Popular Question Yearling Necromancer Notable Question Popular Question Nice Answer Documentation User Nice Answer Enlightened Cleanup Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 45325,128387,603175,Editor Scholar,NULL,NULL,0,NULL,NULL 45326,354319,362794,NULL,NULL,NULL,0,NULL,NULL 45327,490852,1054366,Good Answer Nice Answer Necromancer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45328,446740,1030529,Curious Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45329,1386835,1281869,NULL,NULL,NULL,0,NULL,NULL 45330,48287,678483,Notable Question Tumbleweed Commentator Editor Good Question Supporter,NULL,NULL,0,NULL,NULL 45331,20583,1519830,NULL,NULL,NULL,0,NULL,NULL 45332,94108,1260526,Announcer,NULL,pI work at Auth0 and was involved in the design of the refresh token feature ppIt all depends on the type of application and here is our recommended approach ph3Web applications h3pA good pattern is to refresh the token before it expires ppSet the token expiration to one week and refresh the token every time the user open the web application and every one hour If user doesn open the application for more than week they will have to login again and this is acceptable web application UX ppTo refresh the token your API needs new endpoint that receives valid not expired JWT and returns the same signed JWT with the new expiration field Then the web application will store the token somewhere ph3Mobile Native applications h3pMost native applications do login once and only once ppThe idea is that the refresh token never expires and it can be exchanged always for valid JWT ppThe problem with token that never expires is that strongnever strong means never What do you do if you lose your phone So it needs to be identifiable by the user somehow and the application needs to provide way to revoke access We decided to use the device name maryo iPad Then the user can go to the application and revoke access to maryo iPad ppAnother approach is to revoke the refresh token on specific events An interesting event is changing the password ppWe believe that JWT is not useful for these use cases so we use random generated string and we store it on our side for you think you can do what do when need to gen any recovery code create string field in the database generate UUIDv4 uuid random remove hyphen from the UUIDv4 Base62 the UUIDv4 for shorter url humanized code bcrypt the Base62 of the UUIDv4 without hyphens store the bcrypt hash in the database send the Base62 as code for recovery mail refresh tokens etc receive the code use bcrypt to verify it against the hash stored in the database Automated 32 chars URL friendly random passoword which user is not aware carn change,0,NULL,NULL 45333,203412,818482,Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 45334,41324,1199420,NULL,NULL,NULL,0,NULL,NULL 45335,234552,913276,NULL,NULL,NULL,0,NULL,NULL 45336,456626,906794,Yearling Notable Question Announcer Tumbleweed,NULL,NULL,0,NULL,NULL 45337,886789,1428752,Popular Question Notable Question Notable Question Enthusiast Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45338,68604,909310,NULL,NULL,NULL,0,NULL,NULL 45339,1731005,1296206,Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 45340,315201,1196093,NULL,NULL,NULL,0,NULL,NULL 45341,491475,426952,NULL,NULL,NULL,0,NULL,NULL 45342,194746,94148,Good Answer Explainer Custodian Guru Yearling Tumbleweed Nice Answer Nice Answer Proofreader Famous Question Necromancer Guru Necromancer Popular Question Good Question Nice Answer Yearling Revival Popular Question Nice Answer Necromancer Revival Popular Question Necromancer Documentation User Nice Answer Notable Question Popular Question Necromancer Notable Question Necromancer Yearling Notable Question Good Answer Popular Question Good Answer Nice Question Nice Answer Necromancer Nice Answer Custodian,NULL,Sorting JavaScript object by property name javascript sorting object pI ve been looking for while and want way to sort Javascript object like this ppre code method artist getInfo artist Green Day format json api key fa3af76b9396d0091c9c41ebe3c63716 code prepand sort is alphabetically by name to get ppre code api key fa3af76b9396d0091c9c41ebe3c63716 artist Green Day format json method artist getInfo code prepI can find any code that will do this Can anyone give me some help There is better answer for ES6 at http stackoverflow com questions 5467129 sort javascript object by key emUpdate 2018 24 em ppThis version sorts nested objects and supports array as well ppre codefunction sortObjByKey value return typeof value object Array isArray value value map sortObjByKey Object keys value sort reduce key gt const value key key sortObjByKey return value function orderedJsonStringify obj return JSON stringify sortObjByKey obj code prepTest case ppre code describe orderedJsonStringify gt it make properties in order gt const obj name foo arr value expect orderedJsonStringify obj to equal arr name foo value it support array gt const obj expect orderedJsonStringify obj to equal code prehrp emDeprecated answer em ppA concise version in ES2016 Credit to from href https stackoverflow com 29622653 94148 https stackoverflow com 29622653 94148 ppre codefunction orderedJsonStringify return JSON stringify Object keys sort reduce gt code pre Fixed thanks emUpdate 2018 24 em ppThis version sorts nested objects and supports array as well ppre codefunction sortObjByKey value return typeof value object Array isArray value value map sortObjByKey Object keys value sort reduce key gt const value key key sortObjByKey return value function orderedJsonStringify obj return JSON stringify sortObjByKey obj code prepTest case ppre code describe orderedJsonStringify gt it make properties in order gt const obj name foo arr value expect orderedJsonStringify obj to equal arr name foo value it support array gt const obj expect orderedJsonStringify obj to equal code prehrp emDeprecated answer em ppA concise version in ES2016 Credit to from href https stackoverflow com 29622653 94148 https stackoverflow com 29622653 94148 ppre codefunction orderedJsonStringify return JSON stringify Object keys sort reduce gt code pre My answer is updated to support nest objects emUpdate 2018 24 em ppThis version sorts nested objects and supports array as well ppre codefunction sortObjByKey value return typeof value object Array isArray value value map sortObjByKey Object keys value sort reduce key gt const value key key sortObjByKey return value function orderedJsonStringify obj return JSON stringify sortObjByKey obj code prepTest case ppre code describe orderedJsonStringify gt it make properties in order gt const obj name foo arr value expect orderedJsonStringify obj to equal arr name foo value it support array gt const obj expect orderedJsonStringify obj to equal code prehrp emDeprecated answer em ppA concise version in ES2016 Credit to from href https stackoverflow com 29622653 94148 https stackoverflow com 29622653 94148 ppre codefunction orderedJsonStringify return JSON stringify Object keys sort reduce gt code pre Fixed thanks,1,NULL,sort object properties and JSON stringify javascript json pMy application has large array of objects which stringify and save to disk Unfortuately when the objects in the array are manipulated and sometimes replaced the properties on the objects are listed in different orders their creation order When do JSON stringify on the array and save it diff shows the properties getting listed in different orders which is annoying when trying to merge the data further with diff and merging tools ppIdeally would like to sort the properties of the objects in alphabetical order prior to performing the stringify or as part of the stringify operation There is code for manipulating the array objects in many places and altering these to always create properties in an explicit order would be difficult ppSuggestions would be most welcome ppA condensed example ppre codeobj obj name obj os linux JSON stringify obj obj obj os linux obj name JSON stringify obj code prepThe output of these two stringify calls is different and showing up in diff of my data but my application doesn care about the ordering of properties the objects are constructed in many ways and places emUpdate 2018 24 em ppThis version sorts nested objects and supports array as well ppre codefunction sortObjByKey value return typeof value object Array isArray value value map sortObjByKey Object keys value sort reduce key gt const value key key sortObjByKey return value function orderedJsonStringify obj return JSON stringify sortObjByKey obj code prepTest case ppre code describe orderedJsonStringify gt it make properties in order gt const obj name foo arr value expect orderedJsonStringify obj to equal arr name foo value it support array gt const obj expect orderedJsonStringify obj to equal code prehrp emDeprecated answer em ppA concise version in ES2016 Credit to from href https stackoverflow com 29622653 94148 https stackoverflow com 29622653 94148 ppre codefunction orderedJsonStringify return JSON stringify Object keys sort reduce gt code pre 45343,976489,1472432,Famous Question Notable Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 45344,890687,373707,Yearling Commentator Critic Notable Question,NULL,NULL,0,NULL,NULL 45345,1340731,1298985,NULL,NULL,NULL,0,NULL,NULL 45346,180846,192261,Notable Question Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 45347,449929,117413,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45348,82010,931694,NULL,NULL,NULL,0,NULL,NULL 45349,361536,1220833,NULL,NULL,NULL,0,NULL,NULL 45350,367396,1406277,NULL,NULL,NULL,0,NULL,NULL 45351,155442,100072,Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 45352,389992,869256,Documentation User,NULL,NULL,0,NULL,NULL 45353,92418,1090142,Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Self-Learner Popular Question Yearling Autobiographer Nice Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 45354,577926,153503,Good Answer Yearling Nice Answer Yearling Nice Answer Enlightened Yearling Peer Pressure,NULL,NULL,0,NULL,NULL 45355,472311,674175,Curious Popular Question,NULL,NULL,0,NULL,NULL 45356,173086,543198,NULL,NULL,NULL,0,NULL,NULL 45357,7645569,543198,NULL,NULL,NULL,0,NULL,NULL 45358,926832,400626,Nice Question Famous Question Citizen Patrol Yearling Notable Question Tumbleweed Critic,NULL,NULL,0,NULL,NULL 45359,1503618,746137,Necromancer Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 45360,89676,423984,NULL,NULL,NULL,0,NULL,NULL 45361,268071,796152,Announcer,NULL,NULL,0,NULL,NULL 45362,278607,369031,Yearling Good Question Good Answer Good Answer Yearling Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 45363,8459466,71245,Popular Question Yearling Revival Custodian Necromancer Notable Question Good Answer Good Question Nice Answer Nice Answer Notable Question Popular Question Popular Question Custodian Yearling Nice Question Famous Question Nice Question Popular Question Good Answer Famous Question Popular Question Nice Answer Enlightened Yearling Organizer Tag Editor Taxonomist Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45364,947,71245,Popular Question Yearling Revival Custodian Necromancer Notable Question Good Answer Good Question Nice Answer Nice Answer Notable Question Popular Question Popular Question Custodian Yearling Nice Question Famous Question Nice Question Popular Question Good Answer Famous Question Popular Question Nice Answer Enlightened Yearling Organizer Tag Editor Taxonomist Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45365,64998,234158,Yearling Critic Yearling Great Question,NULL,NULL,0,NULL,NULL 45366,25284,294916,Teacher Notable Question Nice Question Nice Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 45367,744880,1321081,NULL,NULL,NULL,0,NULL,NULL 45368,107244,99022,Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 45369,197357,1191416,Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Promoter Benefactor Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Good Question Popular Question Yearling Disciplined Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Announcer Announcer,NULL,NULL,0,NULL,NULL 45370,269718,1405180,Teacher Necromancer,NULL,NULL,0,NULL,NULL 45371,134393,237127,NULL,NULL,NULL,0,NULL,NULL 45372,204682,856081,NULL,NULL,NULL,0,NULL,NULL 45373,637073,601299,Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Great Answer Popular Question Great Answer Popular Question Popular Question Yearling Popular Question Nice Question Caucus Popular Question Documentation User Notable Question Notable Question Popular Question Census Pundit Yearling Caucus Popular Question Popular Question Suffrage Electorate Famous Question Nice Answer Popular Question Informed Popular Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45374,305121,1091280,NULL,NULL,NULL,0,NULL,NULL 45375,205223,1216905,NULL,NULL,NULL,0,NULL,NULL 45376,187867,1464825,Populist Yearling Notable Question Yearling Caucus Custodian Custodian Editor Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 45377,83056,678116,Yearling Commentator Nice Answer Caucus Constituent Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 45378,89167,703128,Revival Nice Answer Enlightened Necromancer Yearling Yearling Nice Question Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 45379,7976597,703128,Revival Nice Answer Enlightened Necromancer Yearling Yearling Nice Question Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 45380,236293,1239282,NULL,NULL,NULL,0,NULL,NULL 45381,425074,543656,NULL,NULL,NULL,0,NULL,NULL 45382,490683,694025,NULL,NULL,NULL,0,NULL,NULL 45383,153959,1319917,NULL,NULL,NULL,0,NULL,NULL 45384,451466,822273,NULL,NULL,NULL,0,NULL,NULL 45385,525649,1020222,Announcer Autobiographer Nice Answer Enlightened Yearling Caucus Good Answer Yearling Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 45386,395728,652779,Commentator Revival Self-Learner Critic Promoter Necromancer Popular Question Curious Nice Answer Yearling Investor Altruist Caucus Constituent Excavator Explainer Revival Notable Question Yearling Documentation User Revival Popular Question Necromancer Revival,NULL,NULL,0,NULL,NULL 45387,169178,1142539,NULL,NULL,NULL,0,NULL,NULL 45388,309819,910811,Nice Answer Yearling Good Answer Good Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 45389,12250,1439705,Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 45390,300553,1358674,Yearling Yearling Organizer Great Answer Curious Fanatic Notable Question Necromancer Caucus Constituent Necromancer Nice Answer Proofreader Reviewer Census Yearling Caucus Constituent Famous Question Documentation User Custodian Popular Question Custodian Custodian Custodian Caucus Constituent Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 45391,23332,751039,NULL,NULL,NULL,0,NULL,NULL 45392,365633,784861,Enthusiast Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45393,38389,1403262,Popular Question,NULL,NULL,0,NULL,NULL 45394,303826,736095,NULL,NULL,NULL,0,NULL,NULL 45395,12692,1015817,Informed Autobiographer,NULL,NULL,0,NULL,NULL 45396,23075,694597,Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45397,1040127,823090,Editor Organizer Yearling Revival Caucus Revival Yearling Caucus Unsung Hero,NULL,NULL,0,NULL,NULL 45398,101175,310464,NULL,NULL,NULL,0,NULL,NULL 45399,335626,824779,Nice Answer,NULL,NULL,0,NULL,NULL 45400,1030595,941515,NULL,NULL,NULL,0,NULL,NULL 45401,216701,923342,Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45402,389127,1069726,Necromancer Nice Answer perl Guru Yearling Nice Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 45403,236407,775265,Excavator Popular Question Revival Nice Question Announcer Yearling Civic Duty Custodian Nice Answer Enlightened Necromancer Notable Question Popular Question Caucus Constituent Custodian Necromancer Census Nice Answer Enlightened Popular Question Yearling Notable Question Nice Answer Unsung Hero Announcer Caucus Notable Question Good Question Popular Question Popular Question Nice Answer Enlightened Yearling javascript,NULL,NULL,0,NULL,NULL 45404,166805,699792,Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 45405,257119,1480204,Custodian Curious Commentator Tumbleweed Peer Pressure Critic Teacher Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45406,106494,684032,NULL,NULL,NULL,0,NULL,NULL 45407,1561640,27030,Yearling Nice Answer Good Answer Yearling Enthusiast Fanatic Commentator,NULL,NULL,0,NULL,NULL 45408,23372,1498601,Popular Question,NULL,NULL,0,NULL,NULL 45409,66516,1036068,NULL,NULL,NULL,0,NULL,NULL 45410,340753,151647,Yearling Critic Census Editor,NULL,NULL,0,NULL,NULL 45411,86697,6678,Popular Question Popular Question Nice Answer Notable Question Informed Favorite Question Yearling Good Question Famous Question Notable Question Good Answer Famous Question Yearling Popular Question Good Question Revival Announcer Explainer Yearling Popular Question Famous Question Announcer,NULL,NULL,0,NULL,NULL 45412,35566,186650,Custodian,NULL,NULL,0,NULL,NULL 45413,41742,113313,Notable Question,NULL,NULL,0,NULL,NULL 45414,7813176,796959,NULL,NULL,NULL,0,NULL,NULL 45415,201443,796959,NULL,NULL,NULL,0,NULL,NULL 45416,214569,843059,NULL,NULL,NULL,0,NULL,NULL 45417,1355695,1150306,Scholar,NULL,NULL,0,NULL,NULL 45418,410684,1408977,Informed Student Supporter,NULL,NULL,0,NULL,NULL 45419,610885,486262,Famous Question Famous Question Yearling Nice Question Good Question Famous Question Editor Popular Question Popular Question Notable Question Notable Question Custodian Custodian Yearling Notable Question Nice Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 45420,209824,1329477,Curious Popular Question Critic Yearling Caucus Caucus Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45421,1320194,713971,NULL,NULL,NULL,0,NULL,NULL 45422,29538,688665,Yearling Famous Question Caucus Yearling,NULL,NULL,0,NULL,NULL 45423,472014,968106,Famous Question,NULL,NULL,0,NULL,NULL 45424,1201291,875472,NULL,NULL,NULL,0,NULL,NULL 45425,208538,833360,Good Answer Nice Question Yearling Famous Question Caucus Constituent Caucus Good Question,NULL,NULL,0,NULL,NULL 45426,1390909,1150002,NULL,NULL,NULL,0,NULL,NULL 45427,286125,974526,Necromancer Good Question Popular Question Popular Question Nice Answer Notable Question Necromancer Popular Question Nice Question Notable Question Yearling Enthusiast Famous Question Nice Answer Popular Question Favorite Question Popular Question Necromancer Necromancer Notable Question Nice Answer Necromancer Nice Question Yearling Nice Answer Popular Question Good Answer Notable Question Caucus Popular Question Civic Duty Yearling Great Question Nice Answer,NULL,NULL,0,NULL,NULL 45428,21384,622356,Yearling Notable Question Good Question Popular Question Notable Question Nice Answer Enlightened Yearling Notable Question Nice Answer Yearling Caucus Tumbleweed Nice Question Favorite Question Nice Answer,NULL,NULL,0,NULL,NULL 45429,380090,1069467,Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 45430,474609,203483,NULL,NULL,NULL,0,NULL,NULL 45431,2636914,685157,Commentator Caucus Critic,NULL,NULL,0,NULL,NULL 45432,447551,1273938,Student Revival Yearling Necromancer Nice Answer Custodian Custodian Citizen Patrol Custodian Critic Informed Autobiographer Necromancer Nice Answer Nice Answer Good Answer Announcer Good Answer Yearling Revival Necromancer Populist Nice Answer Announcer Curious Great Answer Custodian Scholar Custodian Yearling Necromancer Necromancer Nice Answer Good Answer Announcer Great Answer,NULL,pThe Python standard library comes with an mail parsing function href http docs python org library email util html email utils parseaddr rel noreferrer codeemail utils parseaddr code ppIt returns two tuple containing the real name and the actual address parts of the mail ppre code gt gt gt from email utils import parseaddr gt gt gt parseaddr foo com foo com gt gt gt parseaddr Full Name lt full com gt Full Name full com gt gt gt parseaddr Full Name with quotes and lt weird com gt lt weird com gt Full Name with quotes and lt weird com gt weird com code prepAnd if the parsing is unsuccessful it returns two tuple of empty strings ppre code gt gt gt parseaddr invalid email code prepAn issue with this parser is that it accepting of anything that is considered as valid mail address for RFC 822 and friends including many things that are clearly not addressable on the wide Internet ppre code gt gt gt parseaddr invalid com notice the comma invalid gt gt gt parseaddr invalid email invalid email code prepSo as put it the only definitive way of checking an mail address is to send an mail to the expected address and wait for the user to act on the information inside the message ppHowever you might want to check for at least the presence of an sign on the second tuple element as suggests ppre code gt gt gt in parseaddr invalid email False code prepIf you want to go step further you can install the href https pypi org project dnspython rel noreferrer dnspython project and resolve the mail servers for the mail domain the part after the only trying to send an mail if there are actual codeMX code servers ppre code gt gt gt from dns resolver import query gt gt gt domain foo com rsplit gt gt gt bool query domain MX True gt gt gt query example com MX Traceback most recent call last File lt stdin gt line in lt module gt dns resolver NoAnswer gt gt gt query not domain MX Traceback most recent call last File lt stdin gt line in lt module gt dns resolver NXDOMAIN code prepYou can catch both codeNoAnswer code and codeNXDOMAIN code by catching codedns exception DNSException code ppAnd Yes codefoo com code is syntactically valid address Only the last code code should be considered for detecting where the domain part starts that looks like bug in parseaddr it should have been parsed as user instead think,0,NULL,NULL 45433,117384,813154,Yearling Popular Question Yearling Census Civic Duty Yearling,NULL,NULL,0,NULL,NULL 45434,407812,974535,NULL,NULL,NULL,0,NULL,NULL 45435,290830,672304,Teacher,NULL,NULL,0,NULL,NULL 45436,355541,1043660,NULL,NULL,NULL,0,NULL,NULL 45437,409780,1043660,NULL,NULL,NULL,0,NULL,NULL 45438,134922,868680,Notable Question,NULL,NULL,0,NULL,NULL 45439,181485,1432463,Supporter,NULL,NULL,0,NULL,NULL 45440,6451,166518,NULL,NULL,NULL,0,NULL,NULL 45441,168749,984949,NULL,NULL,NULL,0,NULL,NULL 45442,366281,466858,NULL,NULL,NULL,0,NULL,NULL 45443,542681,105768,Nice Answer Enlightened Yearling mysql Nice Question Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Famous Question Good Answer Yearling Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45444,345563,168124,Yearling Popular Question,NULL,NULL,0,NULL,NULL 45445,148722,64898,Editor Nice Answer Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 45446,108002,1010055,Custodian Informed Autobiographer,NULL,NULL,0,NULL,NULL 45447,902519,854685,NULL,NULL,NULL,0,NULL,NULL 45448,110198,632691,NULL,NULL,NULL,0,NULL,NULL 45449,242144,183795,Yearling,NULL,NULL,0,NULL,NULL 45450,625851,986974,NULL,NULL,NULL,0,NULL,NULL 45451,341018,979162,NULL,NULL,NULL,0,NULL,NULL 45452,153403,1527925,NULL,NULL,NULL,0,NULL,NULL 45453,258762,785929,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 45454,498381,1391216,NULL,NULL,NULL,0,NULL,NULL 45455,302486,693679,Popular Question Yearling,NULL,NULL,0,NULL,NULL 45456,43057,607730,Nice Question Popular Question Yearling Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 45457,133748,1445671,NULL,NULL,NULL,0,NULL,NULL 45458,120843,407170,Necromancer Notable Question Notable Question Good Answer Good Answer Good Answer Nice Answer Enthusiast Populist Great Answer Nice Answer Yearling Necromancer Tag Editor Good Answer Favorite Question Citizen Patrol Cleanup Guru Famous Question Popular Question Popular Question Announcer Notable Question Yearling Nice Answer Nice Answer Enlightened Notable Question Necromancer Nice Question Popular Question Good Answer Popular Question Popular Question Yearling Famous Question Great Question Nice Answer Enlightened,NULL,pThe JavaDoc for codesignWith SignatureAlgorithm var1 String var2 code indicates expectations and even names the method parameter intuitively ppre code Signs the constructed JWT using the specified algorithm with the specified key producing JWS lt gt This is convenience method the string argument is first BASE64 decoded to byte array and this resulting byte array is used to invoke signWith SignatureAlgorithm byte lt gt alg the JWS algorithm to use to digitally sign the JWT thereby producing JWS base64EncodedSecretKey the BASE64 encoded algorithm specific signing key to use to digitally sign the JWT the builder for method chaining JwtBuilder signWith SignatureAlgorithm alg String base64EncodedSecretKey code prepSo this method expects the string argument to be Base64 encoded secret key byte array It emdoes not em assume general string like user password for example as the signing key JJWT assumes Base64 encoding because if you re specifying string password that is emnot em Base64 encoded you re probably using poorly formed or weak key ppThe JWT JWA specification href https tools ietf org html rfc7518 section rel noreferrer emREQUIRES em that HMAC signing keys have lengths equal to or greater than the signature byte array length ppThat means that ppre code If you re signing with your key byte array length MUST be HMAC SHA 256 gt 256 bits 32 bytes HMAC SHA 384 gt 384 bits 48 bytes HMAC SHA 512 gt 512 bits 64 bytes code prepMany online JWT sites and tools just just get this plain wrong they allow you to think that you could type in or use any old string and you re good Some go as far as even pre populating the key with the word codesecret code clearly bad idea and not even spec compliant because it too short ppSo to help simplify this for you JJWT provides utility to help you generate sufficient secure random keys suitable for spec compliant signing via the codeio jsonwebtoken impl crypto MacProvider code class ppLook at the various codegenerateKey code methods to see how to generate good spec compliant key for HMAC signatures For example ppre code creates 256 bit secure random key MacProvider generateKey SignatureAlgorithm HS256 creates 384 bit secure random key MacProvider generateKey SignatureAlgorithm HS384 creates 512 bit secure random key the default MacProvider generateKey code prepIf you wanted to store these generated keys as String you could presumably Base64 encode them ppre codeSecretKey key MacProvider generateKey byte keyBytes key getEncoded String base64Encoded TextCodec BASE64 encode keyBytes code prepBut note the resulting codebase64Encoded code string is emnot em considered safe to show to anyone Base64 encoding is not encryption the value still needs to be kept secret How you do this is up to you encrypt it etc ppNow when it is time to create JWS you can just pass in that codebase64Encoded code value and JJWT knows to base64 decode it first to get the real bytes which are then used to compute the signature ppre codeJwts builder signWith SignatureAlgorithm HS512 base64Encoded compact code pre that nice point and should be documented in the project Would you mind opening GitHub issue to add that It be appreciated,1,Using groovy how do you pipe multiple shell commands bash shell groovy process pUsing Groovy and it codejava lang Process code support how do pipe multiple shell commands together ppConsider this bash command and assume your username is codefoo code ppre codeps aux grep foo awk print code prepThis will print out usernames one line for some processes related to your user account ppUsing Groovy the href http docs groovy lang org docs groovy html api org codehaus groovy runtime ProcessGroovyMethods html or java lang Process 20java lang Process rel noreferrer ProcessGroovyMethods documentation and code says should be able to do this to achieve the same result ppre codedef ps aux execute grep foo execute awk print execute waitFor println text code prepHowever can get any text output for anything other than this ppre codedef ps aux execute waitFor println text code prepAs soon as start piping the println does not print out any anything ppThoughts,Static secret as byte Key or String java security jwt jjwt pI have started to work with href https github com jwtk jjwt rel nofollow JJWT to handle JWT on my server application ppMy JWT secret will be stored at coderesources code folder and will load the secret with codeProperties code class ppThe href https github com jwtk jjwt rel nofollow JJWT provides three methods to sign the JWT one uses codebyte code other uses codeString code and the other uses codeKey code ppre codeJwtBuilder signWith SignatureAlgorithm var1 byte var2 JwtBuilder signWith SignatureAlgorithm var1 String var2 JwtBuilder signWith SignatureAlgorithm var1 Key var2 code prep strongThe question strong Regarding security charset and other things there are any recommendations of which one should use ppFor while stand with codeString code since codeProperties code return codeString code pThe JavaDoc for codesignWith SignatureAlgorithm var1 String var2 code indicates expectations and even names the method parameter intuitively ppre code Signs the constructed JWT using the specified algorithm with the specified key producing JWS lt gt This is convenience method the string argument is first BASE64 decoded to byte array and this resulting byte array is used to invoke signWith SignatureAlgorithm byte lt gt alg the JWS algorithm to use to digitally sign the JWT thereby producing JWS base64EncodedSecretKey the BASE64 encoded algorithm specific signing key to use to digitally sign the JWT the builder for method chaining JwtBuilder signWith SignatureAlgorithm alg String base64EncodedSecretKey code prepSo this method expects the string argument to be Base64 encoded secret key byte array It emdoes not em assume general string like user password for example as the signing key JJWT assumes Base64 encoding because if you re specifying string password that is emnot em Base64 encoded you re probably using poorly formed or weak key ppThe JWT JWA specification href https tools ietf org html rfc7518 section rel noreferrer emREQUIRES em that HMAC signing keys have lengths equal to or greater than the signature byte array length ppThat means that ppre code If you re signing with your key byte array length MUST be HMAC SHA 256 gt 256 bits 32 bytes HMAC SHA 384 gt 384 bits 48 bytes HMAC SHA 512 gt 512 bits 64 bytes code prepMany online JWT sites and tools just just get this plain wrong they allow you to think that you could type in or use any old string and you re good Some go as far as even pre populating the key with the word codesecret code clearly bad idea and not even spec compliant because it too short ppSo to help simplify this for you JJWT provides utility to help you generate sufficient secure random keys suitable for spec compliant signing via the codeio jsonwebtoken impl crypto MacProvider code class ppLook at the various codegenerateKey code methods to see how to generate good spec compliant key for HMAC signatures For example ppre code creates 256 bit secure random key MacProvider generateKey SignatureAlgorithm HS256 creates 384 bit secure random key MacProvider generateKey SignatureAlgorithm HS384 creates 512 bit secure random key the default MacProvider generateKey code prepIf you wanted to store these generated keys as String you could presumably Base64 encode them ppre codeSecretKey key MacProvider generateKey byte keyBytes key getEncoded String base64Encoded TextCodec BASE64 encode keyBytes code prepBut note the resulting codebase64Encoded code string is emnot em considered safe to show to anyone Base64 encoding is not encryption the value still needs to be kept secret How you do this is up to you encrypt it etc ppNow when it is time to create JWS you can just pass in that codebase64Encoded code value and JJWT knows to base64 decode it first to get the real bytes which are then used to compute the signature ppre codeJwts builder signWith SignatureAlgorithm HS512 base64Encoded compact code pre 45459,41199,1078392,NULL,NULL,NULL,0,NULL,NULL 45460,196432,1442994,NULL,NULL,NULL,0,NULL,NULL 45461,130000,1001196,NULL,NULL,NULL,0,NULL,NULL 45462,267392,1381825,NULL,NULL,NULL,0,NULL,NULL 45463,192643,221143,Civic Duty Popular Question Revival Yearling Notable Question Good Answer Favorite Question Documentation User Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 45464,579922,873410,NULL,NULL,NULL,0,NULL,NULL 45465,911564,1214025,NULL,NULL,NULL,0,NULL,NULL 45466,1620005,1197417,NULL,NULL,NULL,0,NULL,NULL 45467,53312,791285,NULL,NULL,NULL,0,NULL,NULL 45468,311288,1404097,NULL,NULL,NULL,0,NULL,NULL 45469,100739,19619,Yearling Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 45470,840760,1033281,NULL,NULL,NULL,0,NULL,NULL 45471,1489486,800741,NULL,NULL,NULL,0,NULL,NULL 45472,107900,396911,NULL,NULL,NULL,0,NULL,NULL 45473,1344807,633017,NULL,NULL,NULL,0,NULL,NULL 45474,534583,705299,NULL,NULL,NULL,0,NULL,NULL 45475,3277437,1063411,NULL,NULL,NULL,0,NULL,NULL 45476,184647,1518862,NULL,NULL,NULL,0,NULL,NULL 45477,69240,615393,Yearling Yearling Revival Caucus Custodian Proofreader Yearling Caucus,NULL,NULL,0,NULL,NULL 45478,8420,1212024,Yearling Yearling symfony Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 45479,1446780,448918,NULL,NULL,NULL,0,NULL,NULL 45480,30371,1523970,NULL,NULL,NULL,0,NULL,NULL 45481,24715,343803,Critic Caucus,NULL,NULL,0,NULL,NULL 45482,168515,438007,Popular Question,NULL,NULL,0,NULL,NULL 45483,99003,1122606,Yearling,NULL,NULL,0,NULL,NULL 45484,304582,275725,Famous Question Curious Notable Question Critic Caucus,NULL,NULL,0,NULL,NULL 45485,1065730,1399505,php Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Caucus laravel Yearling Good Answer Announcer Nice Answer Enlightened Good Answer Yearling Guru Custodian Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 45486,74661,1019180,Notable Question Famous Question Popular Question Good Question Popular Question Notable Question Famous Question Yearling Tumbleweed Famous Question Good Question Yearling Famous Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 45487,1507384,695431,NULL,NULL,NULL,0,NULL,NULL 45488,66538,1121880,NULL,NULL,NULL,0,NULL,NULL 45489,157378,356955,Good Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 45490,192547,916162,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45491,5669451,916162,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45492,13713,1029157,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45493,482391,730340,NULL,NULL,NULL,0,NULL,NULL 45494,197558,985959,NULL,NULL,NULL,0,NULL,NULL 45495,107324,1159957,NULL,NULL,NULL,0,NULL,NULL 45496,7252,683983,Necromancer Electorate Nice Answer Enlightened Necromancer Caucus Yearling Revival Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45497,240847,796764,Notable Question Nice Answer Promoter Benefactor Nice Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 45498,428905,387610,NULL,NULL,NULL,0,NULL,NULL 45499,601838,1500815,NULL,NULL,NULL,0,NULL,NULL 45500,58188,1155958,Editor,NULL,NULL,0,NULL,NULL 45501,59390,1276821,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 45502,308934,392923,Nice Question Revival Notable Question Popular Question Yearling Self-Learner Caucus Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45503,496778,583487,NULL,NULL,NULL,0,NULL,NULL 45504,833132,1257741,NULL,NULL,NULL,0,NULL,NULL 45505,483721,1174327,NULL,NULL,NULL,0,NULL,NULL 45506,586406,648955,Yearling Notable Question Good Question Announcer Investor Nice Answer Mortarboard Notable Question Popular Question Good Answer Caucus Nice Answer Announcer Yearling Great Answer Inquisitive Necromancer Notable Question Nice Answer Enlightened Necromancer Nice Question java Notable Question Announcer Revival Nice Answer Good Question Nice Answer Necromancer Announcer Nice Question Yearling Popular Question Good Question Notable Question Revival Necromancer Announcer Nice Answer Notable Question Popular Question Nice Answer,NULL,pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul there is the same problem with Integer class as with UUID it is immutable so ListMarshaller will be required to create lot of object on each deserialization In case of integers it is probably easier and more efficient to copy the whole ListMarshaller class and specialize it to read and write primitive ints instead of generic elements You could also use specialized primitive container eg from fastutil library for storing on heap instead of generic ArrayList pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul should boil down to primitives that are not objects MutableUUID should have two fields long mostSigBits long leastSigBits same as original UUID but those fields re settable Could also leave Strings as is if applying some de duplication techniques and String contents are very often the same pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul building hierarchies of such objects might be very cumbersome but Chronicle Values could help sometimes see example https github com OpenHFT Chronicle Values another value interface pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul the idea is in having cache ArrayList object or other container with ReusableInteger objects on deserialization rather than contents of ArrayList drained and arrayList is filled with new objects just fields of Reusable objects which are elements of this list are updated No new objects are created if all lists in Chronicle Map are of the same size If not all lists in Chronicle Map are of the same size it might sometimes create new objects and discard existing to adjust cache lists size to the size of the list currently being deserialized pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul cache lists should be per thread There are as many as two ways to achieve this Marshller should implement StatefulCopyable https github com OpenHFT Chronicle Map understanding statefulcopyable and in fact it must do this if having some cache fields in marshaller class itself as said in item of custom serialization checklist https github com OpenHFT Chronicle Map custom serialization checklist pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for ,,, "hort list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul Marshaller implementation shouldn actually have cache list field itself in the first place Because Chronicle Map caches deserialized keys and values itself and passes to marshaller as using argument It wouldn be correct if those cached values are returned from map get method but they are returned from Data get if you use context blocks https github com OpenHFT Chronicle Map working with an entry within context section pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul That is why ListMarshaller https github com OpenHFT Chronicle Map blob a5277d3656ba69a67741b778abf7aa759f9ba3b4 src main java net openhft chronicle hash serialization ListMarshaller java actually don have cache field list it just re used the object passed as using argument""",yearle notable question good question announcer investor nice answer mortarboard notable question popular question good answer caucus nice answer announcer yearle great answer inquisitive necromancer notable question nice answer enlighten necromancer nice question java notable question announcer revival nice answer good question nice answer necromancer announcer nice question yearle popular question good question notable question revival necromancer announcer nice answer notable question popular question nice answer multimap chroniclemap java chronicle chronicle map pthere disclaimer href https github openhft chronicle map nofollow chroniclemap github multimap chroniclemap pblockquote pchronicle map secondary index pa multimap lt collection lt code multimap technically lead problem case heap storage chroniclemap easy route pplet explain problem pizza pizza pizza lot topping crust access pattern pulligive pizza liligive pizza top liligive pizza crust li ulpi store pizza easily lt uuid pizza code access pattern iterate pizza match top crust store lt top collection lt uuid code lt crust collection lt uuid code ppthen ask pizza pepperoni top chroniclemap uuid match pizza main pizza map ppbut documentation quote scare problem thing lead work chroniclemap store serialize object specifically collection ppa additional note potential question polliwe add pizza require update collection lilimany process operation sharing map chroniclemap basic concurrentmap li old pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li problem integer class uuid immutable listmarshaller require create lot object deserialization case integer easy efficient copy listmarshaller class specialize read write primitive int generic element specialize primitive container library store heap generic arraylist pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li primitive object mutableuuid field long mostsigbit long leastsigbit original uuid field settable leave string apply duplication technique string content pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li building hierarchy object cumbersome chronicle value https github openhft chronicle value interface pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li idea cache arraylist object container reusableinteger object deserialization content arraylist drain arraylist fill object field reusable object element list update object create list chronicle map size list chronicle map size create object discard exist adjust cache list size size list deserialize pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li cache list thread way achieve marshller implement https github openhft chronicle map understanding fact cache field marshaller class item custom serialization checklist https github openhft chronicle map custom serialization checklist pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li marshaller implementation cache list field place chronicle map cache deserialize key value pass marshaller argument correct cache value return map method return datum context block https github openhft chronicle map work entry context section pif actual datum resemble pizza topping crust handful distinct topping crust thousand pizza proper multimap overkill case codepepperoni pizza dat code codeonion pizza dat code distinct appendable share list uuid href https github openhft chronicle queue chronicle queue access update multiple process conveniently ppif thousand topping crust pizza specific top average multimap ppessentially kind problem chronicle map multimap garbage allocation query create chronicle map codelist lt uuid code codeset lt uuid code type custom serializer work utterly inefficient default build java serialization serialize deserializing collection request reuse collection heap object individual codeuuid code heap object element lot garbage generate request chroniclemap strongsolution stronghowever serializer href http static javadoc net openhft chronicle map net openhft chronicle hash serialization listmarshaller html code href http static javadoc net openhft chronicle map net openhft chronicle hash serialization setmarshaller html code custom collection marshaller write base code code implementation conjunction reusable uuid heap object resolve garbage problem lt reusableuuid valuemarshaller listmarshaller instance instance list lt reusableuuid averagevalue stream generate reusableuuid random limit collect collector tolist chroniclemap lt top list lt reusableuuid map chroniclemap top class class lt list lt reusableuuid class list class averagekey pepperoni valuemarshaller valuemarshaller averagevalue averagevalue entry file topping pizza id dat code update replication append pizza uuid list uuid insert chronicle map chronicle map write list append uuid end heap memory chunk replication send list uuid update node send add uuid ppboth update replication optimize terrible hack require deep knowledge chronicle map implementation fragile chronicle map memory plan add pizza datum store lifetime memory area initially allocate entire small hold value uuid memory area allocate possibly time list uuid chronicle map datum stucture design imply simplify memory allocation scheme suffer badly fragmentation entry allocate time ppif lot uuid list run application mitigate problem allocate lot memory practically need list entry code actualchunksize code code configuration rely feature lazy map memory allocation page page need lose memory uuid list list kb size ppon hand list long list uuid small structure pizza total multimap place begin answer ppthe trick memory overcommit rely lazy map memory allocation work short list collection value element big average total size kb ppfragmentation issue avoid entry memory allocation pizza uuid add time remove top uuid list size float average allocation rarely hitte ppmemory fragmentation issue value update change size entry insert chronicle map case proper configuration chronicle map serve multimap case chronicle map multimap inherently inefficient ppfactor matter pullitotal number key codelist lt code entry multimap lilitotal number value liliaverage distribution key size liliaverage distribution distinct size liliaverage distribution list size lilivalue list dynamic chronicle map lifetime update append remove append remove begin middle list expensive liliif chronicle map replicate li listmarshaller https github openhft chronicle map blob src main java net openhft chronicle hash serialization listmarshaller java cache field list object pass argument,1,NULL,Multimaps in ChronicleMap java chronicle chronicle map pThere is definitely disclaimer on href https github com OpenHFT Chronicle Map rel nofollow ChronicleMap GitHub about Multimaps in ChronicleMap pblockquote pChronicle Map is not No secondary indexes pA multimap Using codeChronicleMap lt Collection lt gt gt code as multimap is technically possible but often leads to problems blockquotepUnfortunately this is one of my use cases and using off heap storage for that with ChronicleMap would certainly be the easiest route to do so ppLet me try to explain my problem with pizzas have 100 000 different pizzas Each pizza has an ID and lots of different toppings and crusts have three access patterns pulliGive me the pizza by ID liliGive me all the pizzas that have particular topping liliGive me all the pizzas that have particular crust li ulpI can store the pizzas easily using codeChronicleMap lt UUID Pizza gt code But that only one access pattern don want to have to iterate through every pizza to find the ones with matching topping or crust So want to store something like codeChronicleMap lt Topping Collection lt UUID gt gt code and codeChronicleMap lt Crust Collection lt UUID gt gt code ppThen if someone asks me for all the pizzas with pepperoni look up in the topping ChronicleMap to get the UUIDs of the matching pizzas then in the main pizza map ppBut the documentation quoted above scares me Does anyone know what these problems such thing often leads to might be Why should not do this even though it seems to be working for me Does it have something to do with how ChronicleMap stores the serialized objects specifically the collection ppA few additional notes for potential questions polliWe may add pizzas later that will require updating the collections too liliMany processes are trying to do these operations hence the need for sharing the map via ChronicleMap instead of just basic ConcurrentMap li ol pIf actual data indeed resemble pizzas toppings and crusts there are only handful of distinct toppings crusts and thousands of pizzas contain each of them would say that having proper multimap is overkill for this case and you would better have codepepperoni pizzas dat code codeonions pizzas dat code distinct appendable shared lists with UUIDs you can use href https github com OpenHFT Chronicle Queue Chronicle Queue for access and update them from multiple processes conveniently ppIf there are 10s 100s of thousands of toppings crusts only 10s 100s of pizzas have specific topping on average you should use multimap indeed ppEssentially there are kinds of problems with Chronicle Maps as multimaps ph3Excessive garbage allocation on each query h3pIf you create Chronicle Map with codeList lt UUID gt code or codeSet lt UUID gt code type of value without specifying custom value serializers it will work but it will be utterly inefficient because it will default to built in Java serialization for serializing and deserializing the whole value collection on each request without reusing neither collection heap objects nor individual codeUUID code heap objects for elements Hence lot of garbage will be generated on each request to the ChronicleMap pp strongSolution strongHowever if you specify value serializer as href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization ListMarshaller html codeListMarshaller code or href http static javadoc io net openhft chronicle map net openhft chronicle hash serialization SetMarshaller html codeSetMarshaller code or your custom collection marshaller which you could write based on codeListMarshaller code and codeSetMarshaller code implementations in conjunction with reusable UUID heap object it will resolve this garbage problem ppre codeListMarshaller lt ReusableUuid gt valueMarshaller ListMarshaller of ReusableUuidReader INSTANCE ReusableUuidWriter INSTANCE List lt ReusableUuid gt averageValue Stream generate gt ReusableUuid random limit averagePizzasForTopping collect Collectors toList ChronicleMap lt Topping List lt ReusableUuid gt gt map ChronicleMap of Topping class Class lt List lt ReusableUuid gt gt Class List class averageKey pepperoni valueMarshaller valueMarshaller averageValue averageValue entries numberOfToppings createPersistedTo new File toppings to pizza ids dat code preh3Inefficient value updates and replication h3pWhen you append another pizza UUID to list of 100 UUIDs and insert the new value back to Chronicle Map Chronicle Map will re write the whole list again instead of appending one UUID to the end of off heap memory chunk And if you use replication it will send the whole list of 100 UUIDs as an updated value to other nodes instead of sending just one added UUID ppBoth value update and replication could be optimized via terrible hacks but it requires very deep knowledge of Chronicle Map implementation and will be very fragile ph3Fragmentation of Chronicle Map memory h3pIf you plan add new pizzas during data store lifetime memory areas initially allocated for entires will become too small to hold new values with more UUIDs so memory areas will be re allocated possibly several times for each list of UUIDs Chronicle Map data stucture design implies simplified memory allocation scheme which suffers badly from fragmentation if entries are re allocated many times ppIf you have lot of UUIDs in lists and you run your application on Linux you can mitigate this problem by pre allocating lot of memory more than will practically be needed by any list for each entry by specifying code actualChunkSize code in codeChronicleMapBuilder code configuration and relying on Linux feature of lazy mapped memory allocation page by page as needed So you will lose at most 4KB of memory for each UUID list that might be OK if lists are many KBs of size ppOn the other hand if your lists are so long and they are lists of UUIDs small structures and you have only 100 000 pizzas in total you don need multimap in the first place see the beginning of this answer ppThe trick with memory overcommit and relying on lazy mapped memory allocation in Linux also would work for short list collections of values but only if elements themselves are big so that the average total value size is many KBs ppFragmentation is also less an issue when you can avoid entry memory re allocation any other way new pizza UUIDs are added in time but removed as well so topping to uuids list sizes float around some average and re allocation is rarely hitted ppMemory fragmentation is never an issue if values are never updated or never change in size after entry is inserted into Chronicle Map ph2Conclusion h2pIn some use cases and with proper configuration Chronicle Map could serve as multimap well In other cases Chronicle Map as multimap is inherently inefficient ppFactors that matter pulliTotal number of key codeList lt Value gt code entries in multimap liliTotal number of values liliAverage and distribution of key sizes liliAverage and distribution of distinct value sizes liliAverage and distribution of value list sizes liliValue lists dynamics over Chronicle Map lifetime never updated append only remove and append Removes from beginning and middle of lists are more expensive liliIf Chronicle Map is replicated or not li ul,,,, 45507,475560,259778,Guru Yearling Good Answer Guru Nice Answer Guru Good Answer Nice Answer Good Answer Necromancer Guru Good Answer Good Answer Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer c Nice Answer Yearling Guru Nice Answer Nice Answer Enlightened Guru Nice Answer date Good Answer Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 45508,177503,7946,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 45509,444406,246561,Yearling Notable Question Self-Learner Good Answer Announcer Good Answer Yearling Nice Answer Caucus Guru Guru Yearling,NULL,NULL,0,NULL,NULL 45510,354183,122164,Nice Question Nice Answer Enlightened Popular Question Popular Question Yearling Popular Question Notable Question Favorite Question Notable Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Notable Question Nice Answer Popular Question Notable Question Nice Question Famous Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 45511,209451,1156064,Yearling Good Question Nice Answer Popular Question Famous Question Popular Question Popular Question Famous Question Caucus Constituent Yearling Popular Question Popular Question Popular Question Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45512,231523,23458,Civic Duty Popular Question Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 45513,161194,1004087,NULL,NULL,NULL,0,NULL,NULL 45514,54292,228988,Census,NULL,NULL,0,NULL,NULL 45515,1941516,330934,Notable Question Great Answer Custodian Necromancer Yearling Popular Question Nice Answer Good Question Guru Tag Editor Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 45516,29585,330934,Notable Question Great Answer Custodian Necromancer Yearling Popular Question Nice Answer Good Question Guru Tag Editor Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 45517,105547,596146,Yearling Nice Answer Popular Question Revival Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 45518,145554,1106076,NULL,NULL,NULL,0,NULL,NULL 45519,134293,59641,Guru security Yearling Nice Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Yearling Guru Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 45520,16623,523562,Yearling Necromancer Nice Answer Yearling Cleanup Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45521,211921,80535,Yearling Popular Question Nice Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 45522,34674,224496,Civic Duty Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45523,25748,961499,NULL,NULL,NULL,0,NULL,NULL 45524,213127,479180,Good Question Popular Question Famous Question Notable Question Notable Question android Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Famous Question Nice Answer Popular Question Necromancer Famous Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Favorite Question Nice Answer Enlightened Notable Question Nice Answer Good Answer Nice Answer Nice Question Nice Question Popular Question Popular Question Popular Question Good Question Necromancer Popular Question Good Question Yearling Nice Question Popular Question Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 45525,745875,233142,Revival Yearling Guru Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45526,3957131,1055614,NULL,NULL,NULL,0,NULL,NULL 45527,230589,56817,Nice Answer Necromancer Notable Question Good Answer Necromancer Nice Answer Guru Yearling Popular Question Necromancer Custodian Nice Answer Great Answer Nice Answer Nice Answer Yearling Nice Answer Yearling,NULL,While loop with promises node js loops promise pWhat would be the idiomatic way to do something like while loop with promises So ppdo somethingif the condition still stands do it againrepeatthen do something else ppre codedosomething then possilblydomoresomethings then finish code prepI ve done it this way was wondering if there were any better more idomatic ways ppre codevar require var index var useless function var currentIndex index console log currentIndex var deferred defer setTimeout function if currentIndex gt 10 deferred resolve false else deferred resolve true 500 return deferred promise var control function cont var deferred defer if cont index index useless then control then function deferred resolve else deferred resolve return deferred promise var chain useless then control then function console log done code prepOutput 1234567891011done You can avoid recursion if you have async await available in your environment see my updated answer below,0,NULL,NULL 45528,218551,531992,Commentator Editor Necromancer Critic Nice Answer,NULL,NULL,0,NULL,NULL 45529,398075,579824,Famous Question,NULL,NULL,0,NULL,NULL 45530,72671,979175,NULL,NULL,NULL,0,NULL,NULL 45531,235566,1159099,Informed Popular Question,NULL,NULL,0,NULL,NULL 45532,103130,953554,NULL,NULL,NULL,0,NULL,NULL 45533,8717915,953554,NULL,NULL,NULL,0,NULL,NULL 45534,205127,739970,NULL,NULL,NULL,0,NULL,NULL 45535,503247,84369,Yearling Guru Yearling Yearling Caucus Yearling Nice Answer Yearling Good Answer Custodian Great Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 45536,8785061,60147,Yearling Famous Question Famous Question Caucus Nice Question Yearling Popular Question Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 45537,167748,60147,Yearling Famous Question Famous Question Caucus Nice Question Yearling Popular Question Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 45538,17387,1556305,NULL,NULL,NULL,0,NULL,NULL 45539,208373,691185,NULL,NULL,NULL,0,NULL,NULL 45540,40487,403919,NULL,NULL,NULL,0,NULL,NULL 45541,3011068,403919,NULL,NULL,NULL,0,NULL,NULL 45542,505928,1050515,Guru Yearling,NULL,NULL,0,NULL,NULL 45543,202600,1221788,NULL,NULL,NULL,0,NULL,NULL 45544,911824,739311,NULL,NULL,NULL,0,NULL,NULL 45545,386829,442859,Nice Question Tumbleweed Census Caucus Constituent Popular Question Census Yearling Citizen Patrol Custodian Suffrage Vox Populi Explainer Peer Pressure Yearling Notable Question,NULL,NULL,0,NULL,NULL 45546,10921253,663213,NULL,NULL,NULL,0,NULL,NULL 45547,332451,1316141,NULL,NULL,NULL,0,NULL,NULL 45548,211797,144761,Autobiographer Good Answer Yearling,NULL,NULL,0,NULL,NULL 45549,529568,577817,Yearling Great Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45550,151484,523002,Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 45551,176094,284907,Popular Question Student,NULL,NULL,0,NULL,NULL 45552,137744,6662,Great Question Populist Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 45553,19797,83944,NULL,NULL,NULL,0,NULL,NULL 45554,191119,441293,Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 45555,238931,519802,Popular Question Revival,NULL,NULL,0,NULL,NULL 45556,325205,1505540,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45557,907707,462692,NULL,NULL,NULL,0,NULL,NULL 45558,111865,551867,NULL,NULL,NULL,0,NULL,NULL 45559,10799829,1176622,NULL,NULL,NULL,0,NULL,NULL 45560,44984,1176622,NULL,NULL,NULL,0,NULL,NULL 45561,646083,1127543,NULL,NULL,NULL,0,NULL,NULL 45562,52330,793615,Documentation User Notable Question,NULL,NULL,0,NULL,NULL 45563,422594,608307,NULL,NULL,NULL,0,NULL,NULL 45564,482146,1240158,Teacher Scholar Popular Question,NULL,NULL,0,NULL,NULL 45565,273548,963029,Notable Question,NULL,NULL,0,NULL,NULL 45566,288934,1140462,NULL,NULL,NULL,0,NULL,NULL 45567,86834,597068,NULL,NULL,NULL,0,NULL,NULL 45568,605,478309,Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 45569,3927351,478309,Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 45570,2441,1209135,Teacher Editor,NULL,NULL,0,NULL,NULL 45571,770841,1336143,Promoter Commentator Benefactor Critic Informed,NULL,NULL,0,NULL,NULL 45572,865230,415507,Popular Question,NULL,NULL,0,NULL,NULL 45573,94269,1347997,Yearling Revival,NULL,NULL,0,NULL,NULL 45574,53035,840973,Necromancer Notable Question Notable Question Nice Answer Notable Question Announcer Popular Question Yearling Good Question Famous Question Notable Question Popular Question Announcer Notable Question Good Answer Popular Question Popular Question Notable Question Nice Question Famous Question Notable Question Yearling Documentation User Notable Question Popular Question Good Question Nice Question Nice Question Nice Question Yearling Guru Good Question Revival Necromancer Notable Question,NULL,NULL,0,NULL,NULL 45575,584589,1127301,NULL,NULL,NULL,0,NULL,NULL 45576,710293,967282,NULL,NULL,NULL,0,NULL,NULL 45577,1133106,308278,Popular Question Yearling Announcer Critic Excavator Yearling,NULL,NULL,0,NULL,NULL 45578,1075892,128347,Yearling,NULL,NULL,0,NULL,NULL 45579,1563486,1273035,NULL,NULL,NULL,0,NULL,NULL 45580,65753,1136696,Editor,NULL,NULL,0,NULL,NULL 45581,359619,932495,Popular Question,NULL,NULL,0,NULL,NULL 45582,165327,120152,NULL,NULL,NULL,0,NULL,NULL 45583,1874,50882,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 45584,393799,879380,NULL,NULL,NULL,0,NULL,NULL 45585,1353995,954208,Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 45586,123995,221033,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45587,871006,1430786,Notable Question,NULL,NULL,0,NULL,NULL 45588,426125,1116792,NULL,NULL,NULL,0,NULL,NULL 45589,1363966,991716,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 45590,621260,886547,NULL,NULL,NULL,0,NULL,NULL 45591,43131,1418567,NULL,NULL,NULL,0,NULL,NULL 45592,7186336,536883,NULL,NULL,NULL,0,NULL,NULL 45593,204518,1288854,Notable Question Curious,NULL,NULL,0,NULL,NULL 45594,1504189,887115,NULL,NULL,NULL,0,NULL,NULL 45595,242966,414642,Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 45596,283125,398098,Popular Question Popular Question Caucus Popular Question Yearling Nice Answer Enlightened Caucus Popular Question,NULL,NULL,0,NULL,NULL 45597,1286397,1152647,NULL,NULL,NULL,0,NULL,NULL 45598,156743,2168,Notable Question Nice Answer Good Answer Famous Question Good Answer Yearling Popular Question Good Question Good Question python Yearling Documentation User Famous Question Yearling Necromancer Good Question,NULL,NULL,0,NULL,NULL 45599,445829,1149747,NULL,NULL,NULL,0,NULL,NULL 45600,157639,294017,Necromancer Yearling Good Answer Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Yearling Caucus python Nice Answer Enlightened Nice Answer r Nice Answer Enlightened rpy2 Yearling Nice Answer Notable Question Curious,NULL,pOne could simply use dplyr from Python ppThere is an interface to codedplyr code in rpy2 introduced with rpy2 that lets you write things like ppre codedataf DataFrame mtcars filter gear gt mutate powertoweight hp 36 wt group by gear summarize mean ptw mean powertoweight code prepThere is an href http rpy2 readthedocs org en version lib dplyr html rel noreferrer example in the documentation This part of the doc is also jupyter notebook Look for the links near the top of page ppAn other answer to the question is comparing dplyr and pandas see That same one liner chaining dplyr statements write essentially the same in rpy2 interface to dplyr ppR ppre codeflights gt group by year month day gt select arr delay dep delay gt summarise arr mean arr delay na rm TRUE dep mean dep delay na rm TRUE gt filter arr gt 30 dep gt 30 code prepPython rpy2 ppre code DataFrame flights group by year month day select arr delay dep delay summarize arr mean arr delay na rm TRUE dep mean dep delay na rm TRUE filter arr gt 30 dep gt 30 code pre There are tools to shuttle between in memory data frames and pandas data frame converters in rpy2 Beside that the notion of native pandas dataframes might be less strict than it seems when one is considering persistent data frames HDF5 remote SQL table feather as they can be accessed from Python pandas or therefore Python rpy2 as data frames in their respective worlds,0,NULL,NULL 45601,101018,1090161,NULL,NULL,NULL,0,NULL,NULL 45602,208253,1111637,Critic Yearling,NULL,NULL,0,NULL,NULL 45603,349284,750974,Teacher,NULL,NULL,0,NULL,NULL 45604,7560108,750974,Teacher,NULL,NULL,0,NULL,NULL 45605,27721,273345,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 45606,449309,1333000,NULL,NULL,NULL,0,NULL,NULL 45607,371141,270628,Supporter Good Question Critic Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 45608,116192,1174478,NULL,NULL,NULL,0,NULL,NULL 45609,819603,1003896,NULL,NULL,NULL,0,NULL,NULL 45610,627831,490552,NULL,NULL,NULL,0,NULL,NULL 45611,271701,278559,NULL,NULL,NULL,0,NULL,NULL 45612,72751,1161718,Documentation User,NULL,NULL,0,NULL,NULL 45613,210631,1060396,Scholar Student Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 45614,962127,798196,NULL,NULL,NULL,0,NULL,NULL 45615,83084,42832,Popular Question Popular Question Custodian Custodian Notable Question,NULL,NULL,0,NULL,NULL 45616,672320,784195,Editor,NULL,NULL,0,NULL,NULL 45617,1667816,717723,Popular Question,NULL,NULL,0,NULL,NULL 45618,339341,480417,Custodian Informed,NULL,NULL,0,NULL,NULL 45619,30553,1154253,NULL,NULL,NULL,0,NULL,NULL 45620,73884,688337,NULL,NULL,NULL,0,NULL,NULL 45621,181360,763258,Popular Question,NULL,NULL,0,NULL,NULL 45622,52034,283255,Yearling Necromancer Commentator Notable Question Nice Answer Notable Question Caucus Good Answer Yearling Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 45623,5006195,283255,Yearling Necromancer Commentator Notable Question Nice Answer Notable Question Caucus Good Answer Yearling Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 45624,709369,510739,NULL,NULL,NULL,0,NULL,NULL 45625,483439,641793,Popular Question,NULL,NULL,0,NULL,NULL 45626,51405,763682,Announcer,NULL,NULL,0,NULL,NULL 45627,22738,1239855,Supporter,NULL,NULL,0,NULL,NULL 45628,412937,1266136,Civic Duty Necromancer Excavator Commentator,NULL,NULL,0,NULL,NULL 45629,573554,1559121,NULL,NULL,NULL,0,NULL,NULL 45630,99595,1344218,Popular Question,NULL,NULL,0,NULL,NULL 45631,73198,58803,Yearling Good Answer Great Answer Necromancer Great Answer Good Answer Yearling Necromancer Guru Civic Duty Good Answer Good Answer Notable Question Yearling Nice Answer Good Answer Nice Answer Popular Question Nice Answer Great Answer,NULL,h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre Note that hash will only look in PATH If your user PATH does not include sbin hash will not find the binary that lives there If you want to run bash code with sudo you need to invoke bash from sudo if sudo bash hash groupadd then h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre Repeat after me which is bad will not use or condone use of which Your comment testifies of your intentional ignorance to the information in that post Please read it again h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre The alternatives are not hacks The alternatives are 100 good and portable there is not single advantage gained by which and there are many downsides which does NOT in fact tell you what your shell will do when you run command which is lie Only your shell can tell you what command name resolves to in that shell Only shell builtin can provide the information you need Stop being the poison that is spreading misinformation h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre The documentation for Bash is in man bash short summary can be obtained using help command h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre test can only tell you whether file is executable That requires that you already know the exact path to the file If you have full knowledge of the one and only path to the file of your program you could use test but it not very useful in answering the question can execute command that will run program for that you need to perform command name resolution or PATH search which test does not do h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre Please note that command and type and hash are not external programs They are shell built ins They resolve the program that the SHELL itself would run using the internal shell logic which is exactly what you want Please clarify what you mean with lot of systems command itself is not found because that just very misleading statement to make for the readers here pAvoid PID files crons or anything else that tries to evaluate processes that aren their children ppThere is very good reason why in UNIX you can ONLY wait on your children Any method ps parsing pgrep storing PID that tries to work around that is flawed and has gaping holes in it Just say strongno strong ppInstead you need the process that monitors your process to be the process parent What does this mean It means only the process that emstarts em your process can reliably wait for it to end In bash this is absolutely trivial ppre codeuntil myserver do echo Server myserver crashed with exit code Respawning gt amp sleep 1done code prepThe above piece of bash code runs codemyserver code in an codeuntil code loop The first line starts codemyserver code and waits for it to end When it ends codeuntil code checks its exit status If the exit status is code0 code it means it ended gracefully which means you asked it to shut down somehow and it did so successfully In that case we don want to restart it we just asked it to shut down If the exit status is emnot em code0 code codeuntil code will run the loop body which emits an error message on STDERR and restarts the loop back to line emafter second em ppWhy do we wait second Because if something wrong with the startup sequence of codemyserver code and it crashes immediately you ll have very intensive loop of constant restarting and crashing on your hands The codesleep code takes away the strain from that ppNow all you need to do is start this bash script asynchronously probably and it will monitor codemyserver code and restart it as necessary If you want to start the monitor on boot making the server survive reboots you can schedule it in your user cron with an code code rule Open your cron rules with codecrontab code ppre codecrontab code prepThen add rule to start your monitor script ppre code usr local bin myservermonitor code prehrpAlternatively look at inittab and etc inittab You can add line in there to have codemyserver code start at certain init level and be respawned automatically phrpEdit ppLet me add some information on why strongnot strong to use PID files While they are very popular they are also very flawed and there no reason why you wouldn just do it the correct way ppConsider this polli pPID recycling killing the wrong process pulli code etc init foo start code start codefoo code write codefoo code PID to code var run foo pid code liliA while later codefoo code dies somehow liliA while later any random process that starts call it codebar code takes random PID imagine it taking codefoo code old PID liliYou notice codefoo code gone code etc init foo restart code reads code var run foo pid code checks to see if it still alive finds codebar code thinks it codefoo code kills it starts new codefoo code li ul lili pPID files go stale You need over complicated or should say non trivial logic to check whether the PID file is stale and any such logic is again vulnerable to code1 code lili pWhat if you don even have write access or are in read only environment lili pIt pointless overcomplication see how simple my example above is No need to complicate that at all li olpSee also href https stackoverflow com questions 25906020 are pid files still flawed when doing it right 25933330 25933330 Are PID files still flawed when doing it 39 right 39 ppBy the way strongeven worse than PID files is parsing codeps code strong Don ever do this polli codeps code is very unportable While you find it on almost every UNIX system its arguments vary greatly if you want non standard output And standard output is ONLY for human consumption not for scripted parsing liliParsing codeps code leads to LOT of false positives Take the codeps aux grep PID code example and now imagine someone starting process with number somewhere as argument that happens to be the same as the PID you stared your daemon with Imagine two people starting an session and you grepping for to kill yours It just all kinds of bad li olpIf you don want to manage the process yourself there are some perfectly good systems out there that will act as monitor for your processes Look into href http smarden org runit rel noreferrer runit for example any environment variable that you declare in your script before running the program will be exported to the program Use eg export MYVAR myvalue h1Bash h1pBash natively supports this feature Make sure your script hashbang is code usr bin env bash code or code bin bash code or anything else that references codebash code and not codesh code Make sure you re executing your script and not doing something silly like codesh script code which would cause your codebash code hashbang to be ignored This is basic stuff but so many keep failing at it hence the re iteration ppYou declare an associative array by doing ppre codedeclare animals code prepYou can fill it up with elements using the normal array assignment operator ppre codeanimals moo cow woof dog code prepOr merge them ppre codedeclare animals moo cow woof dog code prepThen use them just like normal arrays code animals code expands the values code animals code notice the code code expands the keys Don forget to quote them ppre codeecho animals moo for sound in animals do echo sound animals sound done code preh1Bash h1pBefore bash you don have associative arrays strongDo not use codeeval code to emulate them strong You must avoid eval like the plague because it emis em the plague of shell scripting The most important reason is that you don want to treat your data as executable code there are many other reasons too pp emFirst and foremost em Just consider upgrading to bash Seriously emThe future is now em stop living in the past and strongsuffering from it strong by forcing stupid broken and ugly hacks on your code and every poor soul stuck maintaining it ppIf you have some silly excuse why you emcan upgrade em codedeclare code is far safer option It does not evaluate data as bash code like codeeval code does and as such it does not allow arbitrary code injection quite so easily ppLet prepare the answer by introducing the concepts ppFirst indirection seriously never use this unless you re mentally ill or have some other bad excuse for writing hacks ppre code animals moo cow sound moo animals sound echo cow code prepSecondly codedeclare code ppre code sound moo animal cow declare animals sound animal echo animals moo cow code prepBring them together ppre code Set value declare array index value Get value arrayGet local array index local array index printf code prepLet use it ppre code sound moo animal cow declare animals sound animal arrayGet animals sound cow code prepNote codedeclare code cannot be put in function Any use of codedeclare code inside bash function turns the variable it creates emlocal em to the scope of that function meaning we can access or modify global arrays with it In bash you can use declare to declare global variables but in bash you should be using associative arrays in the first place not this hack ph1Summary h1pUpgrade to bash and use codedeclare code If you can consider switching entirely to codeawk code before doing ugly hacks as described above And definitely stay the heck away from codeeval code hackery Apple will not upgrade GNU bash beyond due to its ill will against the GPLv3 But that should not be deterrent brew install bash http brew sh h1Bash h1pBash natively supports this feature Make sure your script hashbang is code usr bin env bash code or code bin bash code or anything else that references codebash code and not codesh code Make sure you re executing your script and not doing something silly like codesh script code which would cause your codebash code hashbang to be ignored This is basic stuff but so many keep failing at it hence the re iteration ppYou declare an associative array by doing ppre codedeclare animals code prepYou can fill it up with elements using the normal array assignment operator ppre codeanimals moo cow woof dog code prepOr merge them ppre codedeclare animals moo cow woof dog code prepThen use them just like normal arrays code animals code expands the values code animals code notice the code code expands the keys Don forget to quote them ppre codeecho animals moo for sound in animals do echo sound animals sound done code preh1Bash h1pBefore bash you don have associative arrays strongDo not use codeeval code to emulate them strong You must avoid eval like the plague because it emis em the plague of shell scripting The most important reason is that you don want to treat your data as executable code there are many other reasons too pp emFirst and foremost em Just consider upgrading to bash Seriously emThe future is now em stop living in the past and strongsuffering from it strong by forcing stupid broken and ugly hacks on your code and every poor soul stuck maintaining it ppIf you have some silly excuse why you emcan upgrade em codedeclare code is far safer option It does not evaluate data as bash code like codeeval code does and as such it does not allow arbitrary code injection quite so easily ppLet prepare the answer by introducing the concepts ppFirst indirection seriously never use this unless you re mentally ill or have some other bad excuse for writing hacks ppre code animals moo cow sound moo animals sound echo cow code prepSecondly codedeclare code ppre code sound moo animal cow declare animals sound animal echo animals moo cow code prepBring them together ppre code Set value declare array index value Get value arrayGet local array index local array index printf code prepLet use it ppre code sound moo animal cow declare animals sound animal arrayGet animals sound cow code prepNote codedeclare code cannot be put in function Any use of codedeclare code inside bash function turns the variable it creates emlocal em to the scope of that function meaning we can access or modify global arrays with it In bash you can use declare to declare global variables but in bash you should be using associative arrays in the first place not this hack ph1Summary h1pUpgrade to bash and use codedeclare code If you can consider switching entirely to codeawk code before doing ugly hacks as described above And definitely stay the heck away from codeeval code hackery moo is not parameter in this context It is string moo the key of the entry in the array that has the value cow pre codefiles my dir printf files RANDOM files code prepAnd strongdon parse ls strong Read href http mywiki wooledge org ParsingLs rel noreferrer href http mywiki wooledge org ParsingLs rel noreferrer http mywiki wooledge org ParsingLs ppEdit Good luck finding non codebash code solution that reliable Most will break for certain types of filenames such as filenames with spaces or newlines or dashes it pretty much impossible in pure codesh code To do it right without codebash code you need to fully migrate to codeawk code codeperl code codepython code without piping that output for further processing or such no parsing ls is always harder than not parsing ls ls is much harder than and it causes bugs There is no excuse for parsing ls ls is tool for humans not for code Every time you parse ls you re adding potential for bugs at the same time as making life harder on yourself All you need to do is learn what globs are and you will never need ls again,0,NULL,NULL 45632,1211666,906168,Notable Question,NULL,NULL,0,NULL,NULL 45633,7794168,878217,NULL,NULL,NULL,0,NULL,NULL 45634,117816,1187144,Notable Question Scholar Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 45635,242526,238028,Favorite Question Yearling Famous Question Teacher Nice Question Yearling,NULL,NULL,0,NULL,NULL 45636,330326,1512456,NULL,NULL,NULL,0,NULL,NULL 45637,1337349,1146160,NULL,NULL,NULL,0,NULL,NULL 45638,929070,393007,NULL,NULL,NULL,0,NULL,NULL 45639,1259428,451975,Documentation User,NULL,NULL,0,NULL,NULL 45640,877212,453554,NULL,NULL,NULL,0,NULL,NULL 45641,323883,166211,Yearling Good Answer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45642,42955,146099,Famous Question Nice Question Nice Question Famous Question Popular Question Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 45643,2770709,859358,NULL,NULL,NULL,0,NULL,NULL 45644,258668,859358,NULL,NULL,NULL,0,NULL,NULL 45645,831324,814389,Revival Good Answer Nice Answer Enlightened Popular Question Guru Guru Yearling Popular Question objective-c Popular Question Good Answer Nice Answer Nice Answer Great Answer Popular Question Nice Answer Announcer Nice Answer Yearling Good Answer Popular Question Announcer Revival Nice Answer Enlightened Good Answer Good Answer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 45646,2195264,814389,Revival Good Answer Nice Answer Enlightened Popular Question Guru Guru Yearling Popular Question objective-c Popular Question Good Answer Nice Answer Nice Answer Great Answer Popular Question Nice Answer Announcer Nice Answer Yearling Good Answer Popular Question Announcer Revival Nice Answer Enlightened Good Answer Good Answer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 45647,471907,612281,NULL,NULL,NULL,0,NULL,NULL 45648,18576,242582,Yearling Great Answer Revival Necromancer Necromancer Nice Answer Nice Answer Good Answer Necromancer Good Answer Yearling Good Answer Announcer Good Answer Popular Question Necromancer Great Answer Custodian Yearling javascript Informed Explainer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 45649,49270,105428,Notable Question,NULL,NULL,0,NULL,NULL 45650,1556639,862076,NULL,NULL,NULL,0,NULL,NULL 45651,196606,789744,NULL,NULL,NULL,0,NULL,NULL 45652,142666,1230530,Critic Yearling,NULL,NULL,0,NULL,NULL 45653,1015847,852154,Famous Question Nice Question Caucus Yearling,NULL,NULL,0,NULL,NULL 45654,3295594,852154,Famous Question Nice Question Caucus Yearling,NULL,NULL,0,NULL,NULL 45655,248581,142771,Yearling Yearling,NULL,NULL,0,NULL,NULL 45656,659422,152729,Nice Answer,NULL,NULL,0,NULL,NULL 45657,255272,390337,Popular Question,NULL,NULL,0,NULL,NULL 45658,141533,398706,Good Answer Famous Question Famous Question Popular Question Notable Question Nice Question Notable Question Custodian Yearling Notable Question Popular Question Benefactor Famous Question Popular Question Popular Question Guru Good Question Popular Question Famous Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 45659,223816,1404060,NULL,NULL,NULL,0,NULL,NULL 45660,8546317,1082634,NULL,NULL,NULL,0,NULL,NULL 45661,157386,1082634,NULL,NULL,NULL,0,NULL,NULL 45662,1345138,1178836,Notable Question,NULL,NULL,0,NULL,NULL 45663,49271,745234,NULL,NULL,NULL,0,NULL,NULL 45664,9621965,745234,NULL,NULL,NULL,0,NULL,NULL 45665,9162647,745234,NULL,NULL,NULL,0,NULL,NULL 45666,322158,1082607,NULL,NULL,NULL,0,NULL,NULL 45667,14374,375358,Nice Question Nice Question,NULL,NULL,0,NULL,NULL 45668,2205760,1492983,Popular Question,NULL,NULL,0,NULL,NULL 45669,212459,989685,NULL,NULL,NULL,0,NULL,NULL 45670,273938,617149,Nice Answer Good Answer Popular Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 45671,415431,1508478,Notable Question,NULL,NULL,0,NULL,NULL 45672,506393,1542099,Editor Necromancer Supporter,NULL,NULL,0,NULL,NULL 45673,143664,1411566,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45674,76992,1115380,NULL,NULL,NULL,0,NULL,NULL 45675,122987,1256368,NULL,NULL,NULL,0,NULL,NULL 45676,103889,1002455,Commentator Yearling Caucus Constituent Famous Question Necromancer Caucus Good Answer Caucus,NULL,NULL,0,NULL,NULL 45677,100108,798776,Popular Question,NULL,NULL,0,NULL,NULL 45678,1505596,1103897,Good Answer Famous Question Popular Question Popular Question Good Question Notable Question Good Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 45679,411437,452137,NULL,NULL,NULL,0,NULL,NULL 45680,739821,272797,Teacher Popular Question Famous Question Promoter Popular Question Editor Critic Good Question,NULL,NULL,0,NULL,NULL 45681,10520,528465,NULL,NULL,NULL,0,NULL,NULL 45682,241696,237122,NULL,NULL,NULL,0,NULL,NULL 45683,810955,518853,Necromancer Custodian Yearling c Necromancer Announcer Caucus gtk Cleanup Custodian Custodian Strunk & White Informed Yearling Census gtk3 Nice Answer Caucus Tenacious Necromancer Student Nice Answer Yearling,NULL,strong07 04 2017 update strong ppTo make it clear since 23 06 2017 the GTK project doesn provide binary bundles for Windows These are now provided by the MSYS2 project with the blessing of the GTK team ppMSYS2 provides the most up to date versions of GTK for Windows as well as complete toolchain and other useful GTK related development tools like pulli strongGlade strong the GUI designer lili strongDevhelp strong the offline documentation browser li ulpThe official GTK website contains href https www gtk org download windows php rel nofollow noreferrer GTK installation instructions for Windows pp strong27 10 2013 update strong ppThere now an officially supported version of GTK for Windows GTK as of today You ll find it on the href http www gtk org rel nofollow noreferrer official GTK website in the emDownloads em section Thanks to the GTK team and to tarnyko for his work in this regard pp strong01 02 2013 update strong ppThere French dude tarnyko providing an href http www tarnyko net en node 20 rel nofollow noreferrer unofficial GTK installer for Windows based on the OpenSUSE binaries and another guy providing href https mail gnome org archives gtk list 2012 December msg00046 html rel nofollow noreferrer another unofficial again build Might help The href http mail gnome org archives gtk list rel nofollow noreferrer gtk list mailing list is the best place to check how this evolves through time pp strongOriginal content strong ppThere is currently no installer for GTK3 on Windows However the OpenSUSE Build System provides the href http download opensuse org repositories windows mingw win32 openSUSE Factory noarch rel nofollow noreferrer Windows binaries for GTK3 On href http mail gnome org archives gtk list 2011 March msg00057 html rel nofollow noreferrer GTK3 on Windows thread of the GTK devel mailing list Maarten Bosmans provided the href http www bosmans ch pulseaudio download mingw rpm py rel nofollow noreferrer download mingw rpm py python script which automates the download of package and its dependencies and then uses zip to unzip the content of the packages See the post he explains href http lists opensuse org opensuse mingw 2011 03 msg00020 html rel nofollow noreferrer how to use download mingw rpm py What lets you think it not solved ve been playing with GTK on Windows for the last month Those are pre compiled binaries installed using MSYS2 strong07 04 2017 update strong ppTo make it clear since 23 06 2017 the GTK project doesn provide binary bundles for Windows These are now provided by the MSYS2 project with the blessing of the GTK team ppMSYS2 provides the most up to date versions of GTK for Windows as well as complete toolchain and other useful GTK related development tools like pulli strongGlade strong the GUI designer lili strongDevhelp strong the offline documentation browser li ulpThe official GTK website contains href https www gtk org download windows php rel nofollow noreferrer GTK installation instructions for Windows pp strong27 10 2013 update strong ppThere now an officially supported version of GTK for Windows GTK as of today You ll find it on the href http www gtk org rel nofollow noreferrer official GTK website in the emDownloads em section Thanks to the GTK team and to tarnyko for his work in this regard pp strong01 02 2013 update strong ppThere French dude tarnyko providing an href http www tarnyko net en node 20 rel nofollow noreferrer unofficial GTK installer for Windows based on the OpenSUSE binaries and another guy providing href https mail gnome org archives gtk list 2012 December msg00046 html rel nofollow noreferrer another unofficial again build Might help The href http mail gnome org archives gtk list rel nofollow noreferrer gtk list mailing list is the best place to check how this evolves through time pp strongOriginal content strong ppThere is currently no installer for GTK3 on Windows However the OpenSUSE Build System provides the href http download opensuse org repositories windows mingw win32 openSUSE Factory noarch rel nofollow noreferrer Windows binaries for GTK3 On href http mail gnome org archives gtk list 2011 March msg00057 html rel nofollow noreferrer GTK3 on Windows thread of the GTK devel mailing list Maarten Bosmans provided the href http www bosmans ch pulseaudio download mingw rpm py rel nofollow noreferrer download mingw rpm py python script which automates the download of package and its dependencies and then uses zip to unzip the content of the packages See the post he explains href http lists opensuse org opensuse mingw 2011 03 msg00020 html rel nofollow noreferrer how to use download mingw rpm py Or you re talking about the stability,0,NULL,NULL 45684,835902,1159158,NULL,NULL,NULL,0,NULL,NULL 45685,219049,1256051,NULL,NULL,NULL,0,NULL,NULL 45686,22925,384112,NULL,NULL,NULL,0,NULL,NULL 45687,1107565,963168,NULL,NULL,NULL,0,NULL,NULL 45688,133995,963168,NULL,NULL,NULL,0,NULL,NULL 45689,632406,31713,Nice Answer Nice Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Famous Question Yearling Enlightened Good Answer Custodian Critic Yearling,NULL,NULL,0,NULL,NULL 45690,50965,854954,NULL,NULL,NULL,0,NULL,NULL 45691,782687,389204,Favorite Question Nice Question Famous Question Notable Question Inquisitive Popular Question Yearling Popular Question Good Question Popular Question Popular Question Great Question Famous Question Notable Question Yearling Favorite Question Notable Question Popular Question Popular Question Caucus Famous Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45692,5913149,389204,Favorite Question Nice Question Famous Question Notable Question Inquisitive Popular Question Yearling Popular Question Good Question Popular Question Popular Question Great Question Famous Question Notable Question Yearling Favorite Question Notable Question Popular Question Popular Question Caucus Famous Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45693,278271,1496234,Informed Custodian Yearling Organizer Yearling Caucus Documentation User Custodian Citizen Patrol Yearling Custodian Custodian Caucus Constituent Tenacious Popular Question Yearling Promoter Tumbleweed,NULL,NULL,0,NULL,NULL 45694,183603,382256,NULL,NULL,NULL,0,NULL,NULL 45695,143200,719553,NULL,NULL,,0,, 45696,173980,1376981,NULL,NULL,NULL,0,NULL,NULL 45697,1078997,1510856,NULL,NULL,NULL,0,NULL,NULL 45698,109896,1094928,NULL,NULL,NULL,0,NULL,NULL 45699,152052,687505,NULL,NULL,NULL,0,NULL,NULL 45700,662320,693762,NULL,NULL,NULL,0,NULL,NULL 45701,205202,949663,Student,NULL,NULL,0,NULL,NULL 45702,96417,767176,Supporter Necromancer Notable Question,NULL,NULL,0,NULL,NULL 45703,481834,767176,Supporter Necromancer Notable Question,NULL,NULL,0,NULL,NULL 45704,3613,156285,Nice Answer Yearling Notable Question Caucus Popular Question Good Answer Investor Civic Duty,NULL,NULL,0,NULL,NULL 45705,123979,392823,NULL,NULL,NULL,0,NULL,NULL 45706,126797,891303,NULL,NULL,NULL,0,NULL,NULL 45707,3979644,616647,Yearling Popular Question Nice Answer Caucus,NULL,NULL,0,NULL,NULL 45708,218392,1024565,Enthusiast,NULL,NULL,0,NULL,NULL 45709,2357627,1024565,Enthusiast,NULL,NULL,0,NULL,NULL 45710,2510751,875367,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45711,326761,224435,NULL,NULL,NULL,0,NULL,NULL 45712,23601,144565,Good Answer,NULL,NULL,0,NULL,NULL 45713,37243,834864,NULL,NULL,NULL,0,NULL,NULL 45714,16986,657575,NULL,NULL,NULL,0,NULL,NULL 45715,289013,438769,NULL,NULL,NULL,0,NULL,NULL 45716,202327,1521443,NULL,NULL,NULL,0,NULL,NULL 45717,178405,594187,NULL,NULL,NULL,0,NULL,NULL 45718,222645,432670,NULL,NULL,NULL,0,NULL,NULL 45719,807088,1320382,Popular Question Notable Question Notable Question Commentator Organizer,NULL,NULL,0,NULL,NULL 45720,158370,319444,NULL,NULL,NULL,0,NULL,NULL 45721,3900269,915445,Revival Nice Question Notable Question Revival Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 45722,80648,915445,Revival Nice Question Notable Question Revival Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 45723,230128,750582,NULL,NULL,NULL,0,NULL,NULL 45724,82829,669590,Notable Question,NULL,NULL,0,NULL,NULL 45725,64102,359535,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45726,637694,1216999,NULL,NULL,NULL,0,NULL,NULL 45727,149268,1213150,Popular Question Supporter Notable Question Nice Question Commentator Famous Question Favorite Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 45728,110208,235358,Yearling,NULL,NULL,0,NULL,NULL 45729,113144,111683,Disciplined Nice Answer Popular Question Nice Question Self-Learner Yearling Famous Question Famous Question Nice Question javascript Yearling Good Question Popular Question Famous Question Notable Question Popular Question Popular Question Nice Answer Famous Question Popular Question Notable Question Good Question Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 45730,713489,1193612,NULL,NULL,NULL,0,NULL,NULL 45731,1282500,1193612,NULL,NULL,NULL,0,NULL,NULL 45732,1344466,1197141,NULL,NULL,NULL,0,NULL,NULL 45733,64135,1415797,NULL,NULL,NULL,0,NULL,NULL 45734,254877,564157,Yearling Self-Learner Notable Question Necromancer Necromancer Necromancer Nice Answer Great Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Yearling Nice Answer Populist Nice Question Necromancer Nice Answer Nice Answer Nice Answer Revival Necromancer Necromancer Good Answer Necromancer Yearling Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer gwt Famous Question Necromancer Popular Question Nice Answer Great Answer Good Answer Famous Question Necromancer Good Answer,NULL,pAs of git version 13 git supports href https git scm com docs git config includes rel noreferrer conditional configuration includes In this example we clone Company repos in code company code directory and Company repos in code company code ppIn your code gitconfig code you can put something like this ppre code includeIf gitdir company path gitconfig company includeIf gitdir company path gitconfig company code prepExample contents of gitconfig company ppre code user name John Smithemail john smith net code prepExample contents of gitconfig company ppre code user name John Smithemail js com code pre YMMV Doesn work in my case on Ubuntu 16 04,0,NULL,NULL 45735,9883,1030851,NULL,NULL,NULL,0,NULL,NULL 45736,3926471,1312486,Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 45737,66235,1312486,Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 45738,3180488,1312486,Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 45739,8210217,1312486,Famous Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 45740,1185366,538018,NULL,NULL,NULL,0,NULL,NULL 45741,173573,1325435,Popular Question,NULL,NULL,0,NULL,NULL 45742,123905,1498361,NULL,NULL,NULL,0,NULL,NULL 45743,294283,650775,Yearling Good Question Popular Question Yearling Nice Question Favorite Question Organizer Yearling Notable Question Necromancer Revival,NULL,NULL,0,NULL,NULL 45744,379096,251045,Caucus Constituent Yearling Custodian Critic Guru Yearling Enthusiast Census Caucus Constituent Notable Question Census Yearling Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 45745,26429,378185,Revival Yearling Census Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45746,1517807,133269,NULL,NULL,NULL,0,NULL,NULL 45747,1019097,604912,Notable Question Caucus Notable Question Famous Question Notable Question Famous Question Good Question Caucus,NULL,NULL,0,NULL,NULL 45748,465776,1497328,Supporter,NULL,NULL,0,NULL,NULL 45749,165450,636326,NULL,NULL,NULL,0,NULL,NULL 45750,10652,986297,Nice Answer Enlightened Nice Answer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 45751,1020358,1199890,Notable Question Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45752,123888,322642,Nice Question Popular Question Revival Nice Question gradle Nice Question Popular Question Favorite Question Nice Question Notable Question Nice Question android Socratic Famous Question Notable Question Notable Question Yearling Good Question Notable Question Nice Answer Enlightened Necromancer Popular Question Notable Question Nice Answer Enlightened Notable Question Nice Answer Notable Question Announcer Notable Question Notable Question Nice Answer Enlightened Popular Question Popular Question Popular Question Famous Question Nice Question Caucus Great Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Announcer Popular Question Nice Answer Notable Question Nice Answer Yearling Nice Question Popular Question Popular Question Good Answer Nice Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Announcer Popular Question Notable Question Caucus Constituent Popular Question Popular Question Nice Answer Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Nice Question Notable Question Popular Question Nice Answer Famous Question Notable Question Nice Answer Enlightened Famous Question Nice Question Nice Answer Notable Question Notable Question Caucus Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Question Popular Question Popular Question Popular Question Good Question Popular Question Yearling Popular Question Famous Question Popular Question Famous Question Nice Answer Enlightened Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Nice Answer Enlightened Nice Question Popular Question Good Question Popular Question Famous Question Notable Question Nice Question Popular Question Famous Question Good Answer Nice Answer Popular Question Good Question,NULL,swipe tests flaky on RecyclerView android android espresso pI have one RecyclerView with ItemTouchHelper to swipe the internal items LEFT and RIGHT when perform swipeLeft and swipeRight on them via espresso like this ppre codeonView withId id pass recyclerview perform RecyclerViewActions actionOnItemAtPosition swipeRight code prepbut unfortunately the tests are flaky on some devices they work and on some they don is there reliable way to perform this swipe action already played around with other EDGE FUZZ FACTORs but this is also not the way to make it work 100 ppUpdate debugged the problem bit more somehow on some devices there is cancel event in between ppevent t1 android view MotionEvent MotionEvent action ACTION DOWN id 546 40 toolType TOOL TYPE UNKNOWN buttonState metaState flags 0x0 edgeFlags 0x0 pointerCount historySize eventTime 788701990 downTime 788701990 deviceId source 0x1002 ppevent t2 android view MotionEvent MotionEvent action ACTION CANCEL id 500 98276 40 toolType TOOL TYPE UNKNOWN buttonState metaState flags 0x0 edgeFlags 0x0 pointerCount historySize eventTime 788722868 downTime 788701990 deviceId source 0x1002 ppI see this on the public boolean onInterceptTouchEvent RecyclerView recyclerView MotionEvent event of ItemTouchHelper These are the only events see there Interestingly when activating the Screen overlay showing touch data then see the swipe completing fine after this cancel on 10 the way No see the recyclerviews for sure IncompatibleClassChangeError android support design internal NavigationMenuView android android espresso pI get one really strange error when testing an activity that uses the design library ppre codeandroid view InflateException Binary XML file line 28 Error inflating class android support design widget NavigationView at android view LayoutInflater createView LayoutInflater java 640 at android view LayoutInflater createViewFromTag LayoutInflater java 750 at android view LayoutInflater rInflate LayoutInflater java 813 at android view LayoutInflater inflate LayoutInflater java 511 at android view LayoutInflater inflate LayoutInflater java 415 at android view LayoutInflater inflate LayoutInflater java 366 at android support v7 app AppCompatDelegateImplV7 setContentView AppCompatDelegateImplV7 java 257 at android support v7 app AppCompatActivity setContentView AppCompatActivity java 109 at de stephanlindauer criticalmaps Main onCreate Main java 77 at android app Activity performCreate Activity java 6550 at android app Instrumentation callActivityOnCreate Instrumentation java 1120 at android support test runner MonitoringInstrumentation callActivityOnCreate MonitoringInstrumentation java 534 at android app ActivityThread performLaunchActivity ActivityThread java 3102 at android app ActivityThread handleLaunchActivity ActivityThread java 3248 at android app ActivityThread access 1000 ActivityThread java 197 at android app ActivityThread handleMessage ActivityThread java 1681 at android os Handler dispatchMessage Handler java 102 at android os Looper loop Looper java 145 at android app ActivityThread main ActivityThread java 6872 at java lang reflect Method invoke Native Method at java lang reflect Method invoke Method java 372 at com android internal os ZygoteInit MethodAndArgsCaller run ZygoteInit java 1404 at com android internal os ZygoteInit main ZygoteInit java 1199 Caused by java lang reflect InvocationTargetExceptionCaused by java lang IncompatibleClassChangeError android support design internal NavigationMenuView code prepAnyone had the problem and found way around it The activity works outside the espresso tests ppusing espresso pphere the layout ppre code lt xml version encoding utf gt lt android support v4 widget DrawerLayout xmlns android http schemas android com apk res android xmlns app http schemas android com apk res auto android id id drawer layout android layout width match parent android layout height match parent gt lt LinearLayout android layout width match parent android layout height match parent android gravity center horizontal android orientation vertical gt lt android support v7 widget Toolbar android id id toolbar android layout width match parent android layout height abc action bar default height material android background attr colorPrimary android minHeight attr actionBarSize gt lt FrameLayout android id id content frame android layout width match parent android layout height match parent gt lt LinearLayout gt lt android support design widget NavigationView android id id drawer navigation android layout width wrap content android layout height match parent android layout gravity start app itemIconTint color white app itemTextColor color white app headerLayout drawer header app menu drawer gt lt android support v4 widget DrawerLayout gt code prepthe dependencies ppre codedependencies androidTestCompile com android support support v4 23 androidTestCompile com android support support annotations 23 androidTestCompile com android support test runner androidTestCompile com android support test rules androidTestCompile com android support test espresso espresso contrib androidTestCompile com squareup spoon spoon client androidTestCompile com squareup assertj assertj android androidTestCompile org mockito mockito core androidTestCompile com google dexmaker dexmaker mockito compile fileTree dir libs include jar compile com squareup otto compile org osmdroid osmdroid android compile org slf4j slf4j simple compile com squareup picasso picasso compile com android support support v4 23 compile com android support appcompat v7 23 compile com android support support annotations 23 compile com android support design 23 compile com squareup okhttp okhttp compile com jakewharton butterknife compile org ligi AXT 35 compile com google dagger dagger provided javax annotation jsr250 api apt com google dagger dagger compiler testCompile junit junit 12 testCompile com squareup assertj assertj android testCompile com android support support annotations 23 testCompile org mockito mockito core code pre no,1,swipe tests flaky on RecyclerView android android espresso pI have one RecyclerView with ItemTouchHelper to swipe the internal items LEFT and RIGHT when perform swipeLeft and swipeRight on them via espresso like this ppre codeonView withId id pass recyclerview perform RecyclerViewActions actionOnItemAtPosition swipeRight code prepbut unfortunately the tests are flaky on some devices they work and on some they don is there reliable way to perform this swipe action already played around with other EDGE FUZZ FACTORs but this is also not the way to make it work 100 ppUpdate debugged the problem bit more somehow on some devices there is cancel event in between ppevent t1 android view MotionEvent MotionEvent action ACTION DOWN id 546 40 toolType TOOL TYPE UNKNOWN buttonState metaState flags 0x0 edgeFlags 0x0 pointerCount historySize eventTime 788701990 downTime 788701990 deviceId source 0x1002 ppevent t2 android view MotionEvent MotionEvent action ACTION CANCEL id 500 98276 40 toolType TOOL TYPE UNKNOWN buttonState metaState flags 0x0 edgeFlags 0x0 pointerCount historySize eventTime 788722868 downTime 788701990 deviceId source 0x1002 ppI see this on the public boolean onInterceptTouchEvent RecyclerView recyclerView MotionEvent event of ItemTouchHelper These are the only events see there Interestingly when activating the Screen overlay showing touch data then see the swipe completing fine after this cancel on 10 the way can find referenced class with Proguard and Kotlin android proguard kotlin android proguard pI am having strange problem with proguard and kotlin am gradually converting proguarded project to kotlin which went very fine so far but am getting proguard errors when converting certain classes could not yet isolate what the special property of these classes is so it breaks they seems to be no different than the other ones As an example InputStreamWithSource is just ppre codepackage org ligi passandroid modelimport java io InputStreamclass InputStreamWithSource val source String val inputStream InputStream code prepand it completely works in the IDE can deploy to device also all UI tests are running fine Just when trying to assembleRelease the project am getting proguard errors do not understand ppre codeWarning org ligi passandroid ui FileUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui FileUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui InputStreamProvider can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassImportActivity ImportAndShowAsyncTask can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassImportActivity ImportAndShowAsyncTask can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassImportActivity ImportAndShowAsyncTask can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassImportActivity ImportAndShowAsyncTask can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassImportActivity ImportAndShowAsyncTask can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassViewActivityBase UpdateAsync can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassViewActivityBase UpdateAsync can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui PassViewActivityBase UpdateAsync can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui SearchPassesIntentService can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController InputStreamUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController InputStreamUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController InputStreamUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassController InputStreamUnzipControllerSpec can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassDialog can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassDialog can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassDialog 1AlertDialogUpdater can find referenced class org ligi passandroid model InputStreamWithSourceWarning org ligi passandroid ui UnzipPassDialog 1AlertDialogUpdater can find referenced class org ligi passandroid model InputStreamWithSource code prepwhen add dontwarn for these classes in the proguard configuration than it crashes at runtime so these classes are really removed but they should not be removed as they are used ppI can work around this problem by adding keep class enum for these classes in the proguard config but the question is why this is needed for these classes IMHO it should not be needed ppAnyone has some Idea what could cause this or how best to investigate this problem The full source is here href https github com ligi PassAndroid rel noreferrer https github com ligi PassAndroid,NULL 45753,450337,882839,Necromancer,NULL,NULL,0,NULL,NULL 45754,48797,1010767,NULL,NULL,NULL,0,NULL,NULL 45755,2082,196136,Popular Question,NULL,NULL,0,NULL,NULL 45756,229392,423670,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 45757,202042,1165560,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45758,99194,915082,NULL,NULL,NULL,0,NULL,NULL 45759,36631,966286,NULL,NULL,NULL,0,NULL,NULL 45760,145179,938686,NULL,NULL,NULL,0,NULL,NULL 45761,327087,651094,NULL,NULL,NULL,0,NULL,NULL 45762,460484,595278,NULL,NULL,NULL,0,NULL,NULL 45763,325386,1212826,NULL,NULL,NULL,0,NULL,NULL 45764,160675,1433231,NULL,NULL,NULL,0,NULL,NULL 45765,341076,480265,NULL,NULL,NULL,0,NULL,NULL 45766,139572,496829,NULL,NULL,NULL,0,NULL,NULL 45767,902512,1232595,NULL,NULL,NULL,0,NULL,NULL 45768,14072,323626,NULL,NULL,NULL,0,NULL,NULL 45769,92828,492016,Popular Question,NULL,NULL,0,NULL,NULL 45770,91715,240061,Notable Question Popular Question Popular Question Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 45771,99806,1340478,Yearling Necromancer Caucus Nice Answer Necromancer Popular Question Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 45772,8936,1324464,NULL,NULL,NULL,0,NULL,NULL 45773,3949775,535905,Popular Question,NULL,NULL,0,NULL,NULL 45774,177790,1078652,NULL,NULL,NULL,0,NULL,NULL 45775,67765,647648,NULL,NULL,NULL,0,NULL,NULL 45776,403892,575534,NULL,NULL,NULL,0,NULL,NULL 45777,4674535,700097,NULL,NULL,NULL,0,NULL,NULL 45778,66741,700097,NULL,NULL,NULL,0,NULL,NULL 45779,314689,573122,NULL,NULL,NULL,0,NULL,NULL 45780,65244,558579,Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 45781,128441,657712,NULL,NULL,NULL,0,NULL,NULL 45782,1845825,760240,NULL,NULL,NULL,0,NULL,NULL 45783,119393,882232,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45784,320133,604816,NULL,NULL,NULL,0,NULL,NULL 45785,6212175,604816,NULL,NULL,NULL,0,NULL,NULL 45786,15184,947063,NULL,NULL,NULL,0,NULL,NULL 45787,892803,1265244,Famous Question Editor Supporter Notable Question,NULL,NULL,0,NULL,NULL 45788,2430,314173,Necromancer Necromancer Announcer,NULL,NULL,0,NULL,NULL 45789,901856,396383,Favorite Question Notable Question Notable Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Notable Question Nice Question Nice Question Nice Question Popular Question Peer Pressure Popular Question Good Question Nice Answer Notable Question Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Yearling Necromancer Famous Question Popular Question Popular Question Popular Question Nice Question Nice Answer Popular Question Nice Question Notable Question Notable Question Revival Famous Question Nice Question Nice Question Popular Question Notable Question Nice Question Good Question Popular Question Favorite Question Good Answer Popular Question Popular Question Yearling Notable Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 45790,322649,926713,Yearling Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 45791,48583,1217964,NULL,NULL,NULL,0,NULL,NULL 45792,635274,1297309,NULL,NULL,NULL,0,NULL,NULL 45793,28699,296473,Revival Announcer Revival Yearling Announcer Announcer Nice Answer Enlightened Announcer Census Curious Yearling Announcer Popular Question Announcer Nice Question Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 45794,742530,976090,NULL,NULL,NULL,0,NULL,NULL 45795,209532,471848,NULL,NULL,NULL,0,NULL,NULL 45796,450,631572,NULL,NULL,NULL,0,NULL,NULL 45797,4770,907457,NULL,NULL,NULL,0,NULL,NULL 45798,141406,278235,Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Notable Question Good Answer Notable Question Notable Question Yearling Popular Question Famous Question Notable Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 45799,131965,303211,Popular Question,NULL,NULL,0,NULL,NULL 45800,2989,422252,Nice Answer Popular Question Guru Informed Popular Question Investor Altruist Famous Question Outspoken Good Question Notable Question Pundit Good Question Popular Question Yearling Enlightened Caucus Constituent Popular Question Notable Question Good Question Popular Question Custodian Nice Answer Caucus Citizen Patrol Constituent javascript Yearling Notable Question jquery Caucus Famous Question Fanatic Popular Question Popular Question Yearling Popular Question Nice Answer Great Answer,NULL,pCreate code bashrc code file under code bashrc code and away you go Similarly for code gitconfig code pp code code is usually your codeC Users lt your user name gt code folder Typing codeecho code in the Git Bash terminal will tell you what that folder is ppIf you can create the file running Windows run the below command ppre codecopy gt bashrc code prepThe window will output an error message emcommand not found em but the file will be created and ready for you to edit This only works in powershell,0,NULL,NULL 45801,138757,1035256,NULL,NULL,NULL,0,NULL,NULL 45802,405709,666457,NULL,NULL,NULL,0,NULL,NULL 45803,8766,10591,Yearling,NULL,NULL,0,NULL,NULL 45804,217447,1214279,NULL,NULL,NULL,0,NULL,NULL 45805,449604,1181707,NULL,NULL,NULL,0,NULL,NULL 45806,1167576,1247731,NULL,NULL,NULL,0,NULL,NULL 45807,1416,962163,Good Question Yearling Autobiographer Caucus Caucus Famous Question,NULL,NULL,0,NULL,NULL 45808,472870,272817,NULL,NULL,NULL,0,NULL,NULL 45809,147325,1231070,Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 45810,784574,92465,Notable Question,NULL,NULL,0,NULL,NULL 45811,707720,818813,NULL,NULL,NULL,0,NULL,NULL 45812,740957,669288,NULL,NULL,NULL,0,NULL,NULL 45813,677167,648243,NULL,NULL,NULL,0,NULL,NULL 45814,81347,337107,NULL,NULL,NULL,0,NULL,NULL 45815,49269,302774,Good Answer Yearling,NULL,NULL,0,NULL,NULL 45816,283678,1305362,Yearling Notable Question Good Answer Yearling Enlightened Famous Question Popular Question Popular Question Popular Question Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 45817,678224,294618,NULL,NULL,NULL,0,NULL,NULL 45818,721795,1163183,NULL,NULL,NULL,0,NULL,NULL 45819,180024,659360,Caucus Nice Answer Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 45820,141771,613204,NULL,NULL,NULL,0,NULL,NULL 45821,106888,1150702,NULL,NULL,NULL,0,NULL,NULL 45822,46542,1293073,Good Answer Nice Question Yearling Famous Question Famous Question Good Question Popular Question Necromancer Nice Question Yearling r Nice Answer Enlightened Notable Question Nice Answer Popular Question Revival Popular Question Nice Answer Enlightened Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 45823,25910,202007,Necromancer Yearling Yearling Explainer prettyfaces Yearling,NULL,NULL,0,NULL,NULL 45824,152532,716148,Popular Question,NULL,NULL,0,NULL,NULL 45825,6012,678488,NULL,NULL,NULL,0,NULL,NULL 45826,5089979,678488,NULL,NULL,NULL,0,NULL,NULL 45827,1113177,881219,NULL,NULL,NULL,0,NULL,NULL 45828,1423153,881219,NULL,NULL,NULL,0,NULL,NULL 45829,9558492,875651,NULL,NULL,NULL,0,NULL,NULL 45830,776700,875651,NULL,NULL,NULL,0,NULL,NULL 45831,586540,838789,Critic Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 45832,361331,167319,Custodian Citizen Patrol Caucus Custodian,NULL,NULL,0,NULL,NULL 45833,299401,328664,NULL,NULL,NULL,0,NULL,NULL 45834,426637,108340,Popular Question Yearling Nice Question Nice Answer Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 45835,214071,629512,NULL,NULL,NULL,0,NULL,NULL 45836,1793899,394537,NULL,NULL,NULL,0,NULL,NULL 45837,56185,394537,NULL,NULL,NULL,0,NULL,NULL 45838,475010,772278,NULL,NULL,NULL,0,NULL,NULL 45839,35389,340738,Critic,NULL,NULL,0,NULL,NULL 45840,166428,578056,NULL,NULL,NULL,0,NULL,NULL 45841,20204,194949,NULL,NULL,NULL,0,NULL,NULL 45842,1975,415518,Announcer,NULL,NULL,0,NULL,NULL 45843,222688,4582,Yearling Notable Question,NULL,NULL,0,NULL,NULL 45844,30494,1106810,NULL,NULL,NULL,0,NULL,NULL 45845,824250,291485,Yearling Civic Duty Vox Populi Necromancer Student Excavator Nice Answer Quorum Custodian Custodian azure-mobile-services azure Yearling Scholar Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 45846,1028396,1335660,NULL,NULL,NULL,0,NULL,NULL 45847,740475,382874,NULL,NULL,NULL,0,NULL,NULL 45848,1946303,1055682,Fanatic,NULL,NULL,0,NULL,NULL 45849,75338,1185765,NULL,NULL,NULL,0,NULL,NULL 45850,116314,1371341,Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 45851,571506,999044,NULL,NULL,NULL,0,NULL,NULL 45852,80330,1063481,Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 45853,54248,863135,NULL,NULL,NULL,0,NULL,NULL 45854,1567886,992570,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45855,8264497,992570,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45856,3308,576881,Revival,NULL,NULL,0,NULL,NULL 45857,921688,850270,NULL,NULL,NULL,0,NULL,NULL 45858,401622,1322110,Supporter Informed,NULL,NULL,0,NULL,NULL 45859,273646,1548464,Enthusiast Popular Question Teacher Critic Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 45860,797072,1300770,NULL,NULL,NULL,0,NULL,NULL 45861,190027,822631,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45862,41780,73048,Famous Question Popular Question Nice Question Popular Question Yearling Popular Question Necromancer Famous Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 45863,1992,656428,Announcer Announcer,NULL,NULL,0,NULL,NULL 45864,173464,1121992,Tumbleweed Teacher Notable Question,NULL,NULL,0,NULL,NULL 45865,6715747,1121992,Tumbleweed Teacher Notable Question,NULL,NULL,0,NULL,NULL 45866,473926,1026731,NULL,NULL,NULL,0,NULL,NULL 45867,148070,1414596,Yearling Yearling Famous Question Citizen Patrol Good Answer Caucus Popular Question Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 45868,163576,568125,NULL,NULL,NULL,0,NULL,NULL 45869,13356,254081,Yearling,NULL,NULL,0,NULL,NULL 45870,169600,195664,Notable Question Citizen Patrol Custodian Notable Question,NULL,NULL,0,NULL,NULL 45871,222289,624596,Nice Answer Yearling Famous Question Yearling Yearling Talkative,NULL,NULL,0,NULL,NULL 45872,1374087,831578,NULL,NULL,NULL,0,NULL,NULL 45873,59157,413085,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 45874,61922,1097939,NULL,NULL,NULL,0,NULL,NULL 45875,253112,1244262,Popular Question Notable Question Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45876,355303,1324198,NULL,NULL,NULL,0,NULL,NULL 45877,167291,252865,NULL,NULL,NULL,0,NULL,NULL 45878,218224,1241558,NULL,NULL,NULL,0,NULL,NULL 45879,347821,199648,Necromancer Informed,NULL,NULL,0,NULL,NULL 45880,152203,505018,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45881,1507738,497231,NULL,NULL,NULL,0,NULL,NULL 45882,18966,1299500,NULL,NULL,NULL,0,NULL,NULL 45883,160859,715155,NULL,NULL,NULL,0,NULL,NULL 45884,640380,962278,Editor Teacher,NULL,NULL,0,NULL,NULL 45885,66265,1031218,Necromancer Popular Question Necromancer Notable Question Good Question Notable Question Nice Answer Great Answer Nice Answer Necromancer Custodian Guru c# Popular Question Popular Question Notable Question Good Answer Popular Question Yearling Famous Question Popular Question Good Answer Popular Question Popular Question Great Answer Necromancer Popular Question Nice Answer Enlightened Yearling Notable Question Famous Question Nice Question Notable Question Nice Question Nice Answer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 45886,901523,26457,Good Answer Famous Question Nice Question Popular Question Nice Answer Notable Question Nice Answer Nice Question Nice Answer Popular Question Nice Question Popular Question Famous Question Nice Answer Notable Question Notable Question Famous Question Popular Question Nice Answer Nice Question Notable Question Popular Question Popular Question Famous Question Nice Question Notable Question Great Answer Good Answer Nice Question Notable Question Good Question Yearling Nice Answer Nice Question Good Answer Good Question Caucus Nice Question Good Question Popular Question Famous Question Famous Question Nice Answer Notable Question Famous Question Nice Question Notable Question Notable Question Good Answer Favorite Question Caucus Famous Question Popular Question Good Answer Great Answer Good Question Yearling Nice Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Question Good Question Great Answer Nice Answer Enlightened Good Answer Popular Question Nice Question Benefactor Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 45887,115446,45607,NULL,NULL,NULL,0,NULL,NULL 45888,909201,1457429,NULL,NULL,NULL,0,NULL,NULL 45889,331030,1310745,NULL,NULL,NULL,0,NULL,NULL 45890,155160,523517,Famous Question Great Question Notable Question Necromancer Popular Question Favorite Question Excavator Necromancer Caucus Yearling Famous Question Caucus Yearling Good Question Great Question Yearling,NULL,NULL,0,NULL,NULL 45891,116408,1297025,NULL,NULL,NULL,0,NULL,NULL 45892,225897,271250,Famous Question Yearling Popular Question Nice Question Nice Question Nice Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Notable Question Yearling Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 45893,270910,91098,Good Answer Good Question Yearling Notable Question Yearling Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 45894,448000,511918,NULL,NULL,NULL,0,NULL,NULL 45895,531557,259947,Popular Question Famous Question Popular Question Popular Question Custodian Promoter Benefactor Commentator Notable Question,NULL,NULL,0,NULL,NULL 45896,266455,74343,Yearling Nice Answer Custodian Explainer Caucus Yearling Nice Answer Good Answer Yearling Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 45897,78768,148072,Popular Question Announcer Necromancer Yearling Revival Census Notable Question Great Answer Notable Question Yearling Announcer Notable Question Census Revival Caucus Constituent Revival Necromancer Announcer Great Answer Nice Answer Announcer Yearling Announcer Necromancer Good Answer,NULL,NULL,0,NULL,NULL 45898,329473,89342,Yearling Announcer Guru Popular Question Popular Question Popular Question Notable Question Yearling Revival Announcer Announcer Necromancer Yearling Popular Question Announcer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 45899,230186,216640,NULL,NULL,NULL,0,NULL,NULL 45900,92227,1098615,Teacher,NULL,NULL,0,NULL,NULL 45901,93253,331088,NULL,NULL,NULL,0,NULL,NULL 45902,31250,1155804,Yearling Nice Answer Nice Answer Peer Pressure Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 45903,144169,241870,Enthusiast Necromancer Popular Question Yearling Necromancer Caucus Notable Question,NULL,NULL,0,NULL,NULL 45904,57,889485,NULL,NULL,NULL,0,NULL,NULL 45905,9579167,1243612,NULL,NULL,NULL,0,NULL,NULL 45906,887534,1398690,Famous Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 45907,703098,1148281,Popular Question Critic Curious Yearling,NULL,NULL,0,NULL,NULL 45908,264481,927371,Yearling Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 45909,38022,455216,Necromancer,NULL,NULL,0,NULL,NULL 45910,142256,1281676,Teacher,NULL,NULL,0,NULL,NULL 45911,900032,282307,Popular Question Custodian Popular Question Yearling Popular Question Popular Question Good Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Great Question Tenacious Popular Question Nice Question Favorite Question Yearling Notable Question Popular Question Famous Question Popular Question Caucus Constituent Famous Question Good Question Popular Question Popular Question Good Question Notable Question Popular Question Census Famous Question Yearling Popular Question Notable Question Popular Question Nice Question Popular Question Nice Answer Enlightened Notable Question Nice Answer Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 45912,150970,819822,Famous Question Nice Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 45913,68943,92330,NULL,NULL,NULL,0,NULL,NULL 45914,1281969,1438736,Popular Question,NULL,NULL,0,NULL,NULL 45915,368503,1326740,NULL,NULL,NULL,0,NULL,NULL 45916,606232,1320208,Popular Question,NULL,NULL,0,NULL,NULL 45917,1109792,870162,NULL,NULL,NULL,0,NULL,NULL 45918,107330,1338874,NULL,NULL,NULL,0,NULL,NULL 45919,1568412,480227,NULL,NULL,NULL,0,NULL,NULL 45920,199220,889463,NULL,NULL,NULL,0,NULL,NULL 45921,38681,669568,NULL,NULL,NULL,0,NULL,NULL 45922,509814,286348,Popular Question,NULL,NULL,0,NULL,NULL 45923,2505794,808032,Nice Question,NULL,NULL,0,NULL,NULL 45924,100022,165603,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Caucus Nice Answer Good Answer Nice Answer Announcer Good Answer Necromancer Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Good Answer,NULL,NULL,0,NULL,NULL 45925,462707,960806,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45926,333358,565662,Announcer Caucus Notable Question Caucus,NULL,NULL,0,NULL,NULL 45927,29484,145710,Famous Question Yearling Announcer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 45928,193638,609930,Nice Answer,NULL,NULL,0,NULL,NULL 45929,1035751,1090945,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 45930,385552,716201,NULL,NULL,NULL,0,NULL,NULL 45931,96564,1125008,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 45932,148435,335185,Popular Question Notable Question Nice Question Yearling Popular Question Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 45933,62438,1000323,NULL,NULL,NULL,0,NULL,NULL 45934,79782,871439,NULL,NULL,NULL,0,NULL,NULL 45935,165107,73102,Nice Question,NULL,NULL,0,NULL,NULL 45936,340202,109385,Promoter Tumbleweed Student,NULL,NULL,0,NULL,NULL 45937,423255,308421,Yearling Popular Question Notable Question Organizer Announcer Caucus Popular Question Necromancer Notable Question Notable Question Custodian Custodian Excavator Yearling Popular Question Caucus Popular Question Notable Question Nice Answer Announcer Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45938,23947,439612,Nice Answer,NULL,NULL,0,NULL,NULL 45939,361201,832337,NULL,NULL,NULL,0,NULL,NULL 45940,1954200,332094,NULL,NULL,NULL,0,NULL,NULL 45941,79732,332094,NULL,NULL,NULL,0,NULL,NULL 45942,1360858,614778,Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 45943,127800,378729,NULL,NULL,NULL,0,NULL,NULL 45944,1537,1424963,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45945,447918,1200155,NULL,NULL,NULL,0,NULL,NULL 45946,457542,922935,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45947,197705,1241728,Teacher,NULL,NULL,0,NULL,NULL 45948,287362,779919,Yearling Revival Nice Answer Caucus Nice Answer Yearling Good Answer Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 45949,427674,1520105,NULL,NULL,NULL,0,NULL,NULL 45950,1325122,55154,Investor Nice Answer Enlightened Yearling Yearling Notable Question Caucus Curious Custodian Yearling Custodian Revival Yearling Caucus Constituent Nice Answer Enlightened Yearling Caucus Yearling Good Answer Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 45951,237818,186262,Yearling,NULL,NULL,0,NULL,NULL 45952,626129,408034,NULL,NULL,NULL,0,NULL,NULL 45953,572920,41983,Nice Answer Nice Answer Good Answer Necromancer Popular Question Notable Question Good Answer Guru Nice Answer Good Answer Good Answer Guru Yearling Guru Census Famous Question Good Answer Nice Answer Good Question Good Question Custodian Popular Question Yearling Good Answer Census Good Question Guru Nice Answer Notable Question Yearling,NULL,pThis problem can be solved with recursive combinations of all possible sums filtering out those that reach the target Here is the algorithm in Python ppre class lang py prettyprint override codedef subset sum numbers target partial sum partial check if the partial sum is equals to target if target print sum partial target if gt target return if we reach the number why bother to continue for in range len numbers numbers remaining numbers subset sum remaining target partial if name main subset sum 10 15 Outputs sum 15 sum 15 sum 15 sum 10 15 code prepThis type of algorithms are very well explained in the following href http www youtube com watch NdF1QDTRkck rel noreferrer Standford Abstract Programming lecture this video is very recommendable to understand how recursion works to generate permutations of solutions pp strongEdit strong ppThe above as generator function making it bit more useful Requires Python because of codeyield from code ppre class lang py prettyprint override codedef subset sum numbers target partial partial sum if partial sum target yield partial if partial sum gt target return for in enumerate numbers remaining numbers yield from subset sum remaining target partial partial sum code prepHere is the Java version of the same algorithm ppre class lang java prettyprint override codepackage tmp import java util ArrayList import java util Arrays class SumSet static void sum up recursive ArrayList lt Integer gt numbers int target ArrayList lt Integer gt partial int for int partial if target System out println sum Arrays toString partial toArray target if gt target return for int lt numbers size ArrayList lt Integer gt remaining new ArrayList lt Integer gt int numbers get for int lt numbers size remaining add numbers get ArrayList lt Integer gt partial rec new ArrayList lt Integer gt partial partial rec add sum up recursive remaining target partial rec static void sum up ArrayList lt Integer gt numbers int target sum up recursive numbers target new ArrayList lt Integer gt public static void main String args Integer numbers 10 int target 15 sum up new ArrayList lt Integer gt Arrays asList numbers target code prepIt is exactly the same heuristic My Java is bit rusty but think is easy to understand pp strongC conversion of Java solution strong em by em ppre class lang cs prettyprint override codepublic static void Main string args List lt int gt numbers new List lt int gt 10 int target 15 sum up numbers target private static void sum up List lt int gt numbers int target sum up recursive numbers target new List lt int gt private static void sum up recursive List lt int gt numbers int target List lt int gt partial int foreach int in partial if target Console WriteLine sum string Join partial ToArray target if gt target return for int lt numbers Count List lt int gt remaining new List lt int gt int numbers for int lt numbers Count remaining Add numbers List lt int gt partial rec new List lt int gt partial partial rec Add sum up recursive remaining target partial rec code prep strongRuby solution strong em by em ppre class lang rb prettyprint override codedef subset sum numbers target partial partial inject check if the partial sum is equals to target puts sum partial target if target return if gt target if we reach the number why bother to continue numbers length each do numbers remaining numbers drop subset sum remaining target partial endendsubset sum 10 15 code prep strongEdit complexity discussion strong ppAs others mention this is an href http en wikipedia org wiki Subset sum problem rel noreferrer NP hard problem It can be solved in exponential time for instance for 10 there will be 1024 possible solutions If the targets you are trying to reach are in low range then this algorithm works So for instance pp codesubset sum 10 100000 code generates 1024 branches because the target never gets to filter out possible solutions ppOn the other hand codesubset sum 10 10 code generates only 175 branches because the target to reach code10 code gets to filter out many combinations ppIf codeN code and codeTarget code are big numbers one should move into an approximate version of the solution This solution does not work for all cases Consider it only outputs while missing cases such as,0,NULL,NULL 45954,139629,786741,NULL,NULL,NULL,0,NULL,NULL 45955,567921,899514,NULL,NULL,NULL,0,NULL,NULL 45956,3622964,934097,NULL,NULL,NULL,0,NULL,NULL 45957,56161,760506,Nice Answer Yearling Caucus Yearling Good Answer Critic Good Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 45958,60160,690662,NULL,NULL,NULL,0,NULL,NULL 45959,1520691,1127007,NULL,NULL,NULL,0,NULL,NULL 45960,576418,630794,NULL,NULL,NULL,0,NULL,NULL 45961,7933,1138028,NULL,NULL,NULL,0,NULL,NULL 45962,263332,932329,NULL,NULL,NULL,0,NULL,NULL 45963,1385731,1418640,NULL,NULL,NULL,0,NULL,NULL 45964,592885,1418640,NULL,NULL,NULL,0,NULL,NULL 45965,183807,369933,Critic Caucus,NULL,NULL,0,NULL,NULL 45966,249910,1058843,NULL,NULL,NULL,0,NULL,NULL 45967,64878,1213983,NULL,NULL,NULL,0,NULL,NULL 45968,388907,1213983,NULL,NULL,NULL,0,NULL,NULL 45969,2365076,1307412,NULL,NULL,NULL,0,NULL,NULL 45970,723095,1203424,Popular Question Yearling Critic Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 45971,487495,355905,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 45972,201608,306488,Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Nice Question Nice Question Famous Question Nice Answer Famous Question Announcer Announcer Necromancer Famous Question Good Question Popular Question Notable Question Famous Question Necromancer Nice Question Famous Question Good Question Popular Question Good Question Famous Question Famous Question Famous Question Popular Question Great Question Nice Answer Good Question Nice Question Yearling Popular Question Popular Question Notable Question Announcer Announcer Notable Question Popular Question Popular Question Nice Answer Popular Question Popular Question Announcer Nice Question Notable Question Famous Question Nice Question Popular Question Notable Question Popular Question Famous Question Favorite Question Good Answer Famous Question Good Answer Notable Question Notable Question Yearling Good Answer Nice Answer Nice Question Nice Answer Enlightened Notable Question Popular Question Famous Question Populist Notable Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 45973,33414,889634,Yearling Good Answer,NULL,NULL,0,NULL,NULL 45974,616024,1033024,NULL,NULL,NULL,0,NULL,NULL 45975,263578,1083911,Student,NULL,NULL,0,NULL,NULL 45976,1175632,641968,NULL,NULL,NULL,0,NULL,NULL 45977,745754,1368892,Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 45978,1350417,313273,Civic Duty Notable Question Famous Question Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Promoter Self-Learner Notable Question Good Question Yearling Citizen Patrol Custodian Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 45979,1065441,1324449,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 45980,86586,511596,NULL,NULL,NULL,0,NULL,NULL 45981,310434,194779,NULL,NULL,NULL,0,NULL,NULL 45982,44247,608064,NULL,NULL,NULL,0,NULL,NULL 45983,148100,369083,Nice Answer Necromancer Yearling Nice Answer Good Answer Yearling Great Answer Custodian Good Answer Yearling Autobiographer Yearling,NULL,NULL,0,NULL,NULL 45984,10460394,369083,Nice Answer Necromancer Yearling Nice Answer Good Answer Yearling Great Answer Custodian Good Answer Yearling Autobiographer Yearling,NULL,NULL,0,NULL,NULL 45985,8310,1273233,NULL,NULL,NULL,0,NULL,NULL 45986,48871,727739,NULL,NULL,NULL,0,NULL,NULL 45987,104318,492203,Good Answer Nice Question Notable Question Good Answer Yearling Announcer Great Answer Necromancer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 45988,765204,45434,NULL,NULL,NULL,0,NULL,NULL 45989,38415,125848,Popular Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 45990,84416,104200,Great Answer Good Answer Good Answer Nice Question Nice Answer Enlightened Guru Great Answer Taxonomist Yearling Nice Answer Great Answer Good Answer Good Answer Good Answer Good Answer Popular Question Nice Answer Guru Census Good Answer Good Answer Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Popular Question Good Answer Custodian Documentation User Nice Answer Census Nice Answer Enlightened Guru Caucus Constituent Guru Yearling Guru Good Answer Guru,NULL,pIt is possible but you ll have to do little extra work There are couple conceptual things to get out of the way first pulliHidden views even though they don draw strongstill participate strong in Auto Layout and usually strongretain their frames strong leaving other related views in their places liliWhen removing view from its superview strongall related constraints strong are also removed from that view hierarchy li ulpIn your case this likely means pulliIf you set your left view to be hidden the labels stay in place since that left view is still taking up space even though it not visible liliIf you remove your left view your labels will probably be left ambiguously constrained since you no longer have constraints for your labels left edges li ulpWhat you need to do is judiciously strongover constrain strong your labels Leave your existing constraints 10pts space to the other view alone but add another constraint make your labels left edges 10pts away from their superview left edge with non required priority the default high priority will probably work well ppThen when you want them to move left remove the left view altogether The mandatory 10pt constraint to the left view will disappear along with the view it relates to and you ll be left with just high priority constraint that the labels be 10pts away from their superview On the next layout pass this should cause them to expand left until they fill the width of the superview but for your spacing around the edges ppOne important caveat if you ever want your left view back in the picture not only do you have to add it back into the view hierarchy but you also have to strongreestablish all its constraints strong at the same time This means you need way to put your 10pt spacing constraint between the view and its labels back whenever that view is shown again surprised that lowering the priority of the left constraint made it work if anything expect lower priority constraint to take back seat to other components like view content hugging priority Consider auditing the other constraints in the system along the same axis as the low priority constraint and making sure they re all doing what you expect pIt is possible but you ll have to do little extra work There are couple conceptual things to get out of the way first pulliHidden views even though they don draw strongstill participate strong in Auto Layout and usually strongretain their frames strong leaving other related views in their places liliWhen removing view from its superview strongall related constraints strong are also removed from that view hierarchy li ulpIn your case this likely means pulliIf you set your left view to be hidden the labels stay in place since that left view is still taking up space even though it not visible liliIf you remove your left view your labels will probably be left ambiguously constrained since you no longer have constraints for your labels left edges li ulpWhat you need to do is judiciously strongover constrain strong your labels Leave your existing constraints 10pts space to the other view alone but add another constraint make your labels left edges 10pts away from their superview left edge with non required priority the default high priority will probably work well ppThen when you want them to move left remove the left view altogether The mandatory 10pt constraint to the left view will disappear along with the view it relates to and you ll be left with just high priority constraint that the labels be 10pts away from their superview On the next layout pass this should cause them to expand left until they fill the width of the superview but for your spacing around the edges ppOne important caveat if you ever want your left view back in the picture not only do you have to add it back into the view hierarchy but you also have to strongreestablish all its constraints strong at the same time This means you need way to put your 10pt spacing constraint between the view and its labels back whenever that view is shown again Yes Swift has all the same Auto Layout APIs available as Objective does and the solution describe can be expressed in terms of those APIs in couple different ways in fact,0,NULL,NULL 45991,104210,1528915,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 45992,998802,846822,NULL,NULL,NULL,0,NULL,NULL 45993,39320,1409066,NULL,NULL,NULL,0,NULL,NULL 45994,399028,391938,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 45995,526291,939528,NULL,NULL,NULL,0,NULL,NULL 45996,97864,492611,Necromancer Good Answer Yearling Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 45997,435171,1336988,Notable Question Citizen Patrol Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 45998,579177,732960,NULL,NULL,NULL,0,NULL,NULL 45999,210373,1173125,Notable Question,NULL,NULL,0,NULL,NULL 46000,223298,1539322,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 46001,268330,16425,Nice Answer Self-Learner Famous Question Yearling Critic Yearling Favorite Question Popular Question Revival Great Question Yearling Popular Question Yearling Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 46002,377204,237974,Nice Question Notable Question Good Answer Famous Question Famous Question Notable Question Popular Question Famous Question Yearling Famous Question Popular Question Good Question Famous Question Necromancer Good Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 46003,205993,784340,NULL,NULL,NULL,0,NULL,NULL 46004,415902,1127791,NULL,NULL,NULL,0,NULL,NULL 46005,143926,488832,Necromancer Necromancer Yearling Nice Question Nice Answer Nice Answer Yearling Caucus Nice Answer Enlightened Caucus Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 46006,131016,1479138,Yearling Caucus Yearling Good Answer Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 46007,1558158,550459,NULL,NULL,NULL,0,NULL,NULL 46008,311403,133211,Nice Question Yearling Popular Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 46009,234614,1084736,NULL,NULL,NULL,0,NULL,NULL 46010,361728,955952,Informed,NULL,NULL,0,NULL,NULL 46011,51789,1528020,NULL,NULL,NULL,0,NULL,NULL 46012,53524,572602,NULL,NULL,NULL,0,NULL,NULL 46013,122882,582004,Nice Question Notable Question Critic Necromancer,NULL,NULL,0,NULL,NULL 46014,10669,588325,NULL,NULL,NULL,0,NULL,NULL 46015,3549331,1332823,NULL,NULL,NULL,0,NULL,NULL 46016,207054,828536,Yearling,NULL,NULL,0,NULL,NULL 46017,7925898,691385,Student Popular Question Scholar Notable Question Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 46018,30091,614139,NULL,NULL,NULL,0,NULL,NULL 46019,152438,906891,NULL,NULL,NULL,0,NULL,NULL 46020,455403,1399890,NULL,NULL,NULL,0,NULL,NULL 46021,28732,1434365,NULL,NULL,NULL,0,NULL,NULL 46022,544921,816194,NULL,NULL,NULL,0,NULL,NULL 46023,178539,1278068,NULL,NULL,NULL,0,NULL,NULL 46024,1938321,1087178,NULL,NULL,NULL,0,NULL,NULL 46025,2664312,928362,NULL,NULL,NULL,0,NULL,NULL 46026,618727,1349709,Tumbleweed,NULL,NULL,0,NULL,NULL 46027,1240380,1349709,Tumbleweed,NULL,NULL,0,NULL,NULL 46028,5492,726907,NULL,NULL,NULL,0,NULL,NULL 46029,197752,1208300,Nice Question,NULL,NULL,0,NULL,NULL 46030,9383754,1334676,NULL,NULL,NULL,0,NULL,NULL 46031,7928417,679937,NULL,NULL,NULL,0,NULL,NULL 46032,59263,679937,NULL,NULL,NULL,0,NULL,NULL 46033,100321,254961,NULL,NULL,NULL,0,NULL,NULL 46034,156215,885281,NULL,NULL,NULL,0,NULL,NULL 46035,1736154,1049152,Famous Question,NULL,NULL,0,NULL,NULL 46036,887640,1049152,Famous Question,NULL,NULL,0,NULL,NULL 46037,2151298,1049152,Famous Question,NULL,NULL,0,NULL,NULL 46038,424920,1453751,Popular Question Popular Question Yearling Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46039,170350,415364,Yearling Good Answer Yearling Guru Yearling Revival Nice Answer Enlightened Yearling Yearling Great Answer Nice Answer Excavator Yearling Custodian,NULL,pIn order to use DynamoDBLocal you need to follow these steps polliGet Direct DynamoDBLocal Dependency liliGet Native SQLite4Java dependencies liliSet codesqlite4java library path code to show native libraries li olp strong1 Get Direct DynamoDBLocal Dependency strong ppThis one is the easy one You need this repository as explained in href https forums aws amazon com ann jspa annID 3148 rel noreferrer AWS Forums ppre class lang xml prettyprint override code lt Dependency gt lt dependencies gt lt dependency gt lt groupId gt com amazonaws lt groupId gt lt artifactId gt DynamoDBLocal lt artifactId gt lt version gt 11 lt version gt lt scope gt lt scope gt lt dependency gt lt dependencies gt lt Custom repository gt lt repositories gt lt repository gt lt id gt dynamodb local lt id gt lt name gt DynamoDB Local Release Repository lt name gt lt url gt https s3 us west amazonaws com dynamodb local release lt url gt lt repository gt lt repositories gt code prep strong2 Get Native SQLite4Java dependencies strong ppIf you do not add these dependencies your tests will fail with 500 internal error ppFirst add these dependencies ppre class lang xml prettyprint override code lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java lt artifactId gt lt version gt 392 lt version gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x86 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt sqlite4java win32 x64 lt artifactId gt lt version gt 392 lt version gt lt type gt dll lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java osx lt artifactId gt lt version gt 392 lt version gt lt type gt dylib lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux i386 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt lt dependency gt lt groupId gt com almworks sqlite4java lt groupId gt lt artifactId gt libsqlite4java linux amd64 lt artifactId gt lt version gt 392 lt version gt lt type gt so lt type gt lt scope gt test lt scope gt lt dependency gt code prepThen add this plugin to get native dependencies to specific folder ppre class lang xml prettyprint override code lt build gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven dependency plugin lt artifactId gt lt version gt 10 lt version gt lt executions gt lt execution gt lt id gt copy lt id gt lt phase gt test compile lt phase gt lt goals gt lt goal gt copy dependencies lt goal gt lt goals gt lt configuration gt lt includeScope gt test lt includeScope gt lt includeTypes gt so dll dylib lt includeTypes gt lt outputDirectory gt project basedir native libs lt outputDirectory gt lt configuration gt lt execution gt lt executions gt lt plugin gt lt plugins gt lt build gt code prep strong3 Set codesqlite4java library path code to show native libraries strong ppAs last step you need to set codesqlite4java library path code system property to native libs directory It is OK to do that just before creating your local server ppre codeSystem setProperty sqlite4java library path native libs code prepAfter these steps you can use DynamoDBLocal as you want Here is Junit rule that creates local server for that ppre codeimport com amazonaws auth BasicAWSCredentials import com amazonaws services dynamodbv2 AmazonDynamoDB import com amazonaws services dynamodbv2 AmazonDynamoDBClient import com amazonaws services dynamodbv2 local main ServerRunner import com amazonaws services dynamodbv2 local server DynamoDBProxyServer import org junit rules ExternalResource import java io IOException import java net ServerSocket Creates local DynamoDB instance for testing public class LocalDynamoDBCreationRule extends ExternalResource private DynamoDBProxyServer server private AmazonDynamoDB amazonDynamoDB public LocalDynamoDBCreationRule This one should be copied during test compile time If project basedir does not contains folder named native libs please try mvn clean install from command line first System setProperty sqlite4java library path native libs protected void before throws Throwable try final String port getAvailablePort this server ServerRunner createServerFromCommandLineArgs new String inMemory port port server start amazonDynamoDB new AmazonDynamoDBClient new BasicAWSCredentials access secret amazonDynamoDB setEndpoint http localhost port catch Exception throw new RuntimeException protected void after if server null return try server stop catch Exception throw new RuntimeException public AmazonDynamoDB getAmazonDynamoDB return amazonDynamoDB private String getAvailablePort try final ServerSocket serverSocket new ServerSocket return String valueOf serverSocket getLocalPort catch IOException throw new RuntimeException Available port was not found code prepYou can use this rule like this ppre code JUnit4 class public class UserDAOImplTest public static final LocalDynamoDBCreationRule dynamoDB new LocalDynamoDBCreationRule code pre tried this solution along with suggestions from ki and it worked like charm Thanks,0,NULL,NULL 46040,246438,1273090,Scholar,NULL,NULL,0,NULL,NULL 46041,201292,1071462,Yearling,NULL,NULL,0,NULL,NULL 46042,914866,785397,NULL,NULL,NULL,0,NULL,NULL 46043,3601,1124414,NULL,NULL,NULL,0,NULL,NULL 46044,48727,925854,Necromancer,NULL,NULL,0,NULL,NULL 46045,155475,619640,NULL,NULL,NULL,0,NULL,NULL 46046,1716058,619640,NULL,NULL,NULL,0,NULL,NULL 46047,149133,1317526,Autobiographer,NULL,NULL,0,NULL,NULL 46048,541849,1436106,NULL,NULL,NULL,0,NULL,NULL 46049,337824,629589,NULL,NULL,NULL,0,NULL,NULL 46050,296707,549395,NULL,NULL,NULL,0,NULL,NULL 46051,505511,1242045,Revival Supporter,NULL,NULL,0,NULL,NULL 46052,1898334,802650,Popular Question Nice Question Popular Question Yearling Notable Question Good Question Necromancer Notable Question Yearling Famous Question Caucus Favorite Question Good Question Notable Question Notable Question Yearling,NULL,All possible GOOS value go cross compiling pIf get it right codeGOOS code is determined when compile the source code ppTo better support multiple OS interested in what codeGOOS code could be ppOf course there might be infinite possibilities of it since Go is opensourced So what really want is common list ppKnown values are pulli codewindows code lili codelinux code lili codedarwin code or codefreebsd code or codeunix code know that at least one of them must exist li ul Sure Thanks for the update,0,NULL,NULL 46053,66615,802650,Popular Question Nice Question Popular Question Yearling Notable Question Good Question Necromancer Notable Question Yearling Famous Question Caucus Favorite Question Good Question Notable Question Notable Question Yearling,NULL,All possible GOOS value go cross compiling pIf get it right codeGOOS code is determined when compile the source code ppTo better support multiple OS interested in what codeGOOS code could be ppOf course there might be infinite possibilities of it since Go is opensourced So what really want is common list ppKnown values are pulli codewindows code lili codelinux code lili codedarwin code or codefreebsd code or codeunix code know that at least one of them must exist li ul Sure Thanks for the update,0,NULL,NULL 46054,483913,919372,NULL,NULL,NULL,0,NULL,NULL 46055,2575002,919372,NULL,NULL,NULL,0,NULL,NULL 46056,14309,828897,Good Answer Popular Question Yearling Populist Revival,NULL,NULL,0,NULL,NULL 46057,45864,86756,Revival Popular Question Caucus,NULL,NULL,0,NULL,NULL 46058,45067,1404580,NULL,NULL,NULL,0,NULL,NULL 46059,112622,552991,Popular Question,NULL,NULL,0,NULL,NULL 46060,48638,724686,NULL,NULL,NULL,0,NULL,NULL 46061,268163,969788,NULL,NULL,NULL,0,NULL,NULL 46062,1145272,1285395,NULL,NULL,NULL,0,NULL,NULL 46063,20854,47936,Great Question Favorite Question Nice Question Popular Question Notable Question Yearling Good Answer Custodian Nice Answer Yearling Popular Question Enthusiast Popular Question Benefactor Announcer,NULL,NULL,0,NULL,NULL 46064,47066,531645,NULL,NULL,NULL,0,NULL,NULL 46065,662104,420372,Informed Scholar Student,NULL,NULL,0,NULL,NULL 46066,181023,420372,Informed Scholar Student,NULL,NULL,0,NULL,NULL 46067,258310,1295551,NULL,NULL,NULL,0,NULL,NULL 46068,2996,509033,NULL,NULL,NULL,0,NULL,NULL 46069,50659,1022428,Popular Question,NULL,NULL,0,NULL,NULL 46070,17850,293314,Popular Question,NULL,NULL,0,NULL,NULL 46071,286120,902058,Informed Popular Question,NULL,NULL,0,NULL,NULL 46072,254192,540620,NULL,NULL,NULL,0,NULL,NULL 46073,11201,242933,Yearling Notable Question Good Answer Notable Question Nice Question Famous Question xcode Nice Answer Nice Answer Announcer Popular Question Popular Question Good Question Nice Question Good Answer Necromancer Revival Great Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question cocoa-touch Nice Question Popular Question Popular Question Popular Question Nice Question Nice Answer Great Question Notable Question Nice Question Favorite Question Popular Question Popular Question Notable Question Guru Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Answer Notable Question Announcer Notable Question Necromancer Notable Question Notable Question Popular Question Popular Question Popular Question Favorite Question Famous Question Nice Answer Popular Question Good Question Famous Question Necromancer Popular Question Necromancer Nice Question Booster Nice Question Good Question Popular Question Announcer Popular Question Notable Question ios Notable Question Famous Question Famous Question Nice Question Popular Question Notable Question Good Question Notable Question Great Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Nice Answer Caucus Good Question Great Question Announcer Good Answer Popular Question Good Question Popular Question Revival Sportsmanship Notable Question Nice Answer Nice Answer Yearling Notable Question Nice Question Popular Question swift Popular Question Popular Question Nice Question Notable Question Popular Question Good Question Favorite Question Nice Answer Great Question Nice Question Nice Question Necromancer Favorite Question Great Question Popular Question Notable Question Popular Question Notable Question Necromancer Socratic Announcer Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Peer Pressure Popular Question Good Question Announcer Famous Question Nice Question Good Question Necromancer Famous Question Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Notable Question Nice Question Famous Question Good Answer Notable Question Announcer Announcer Notable Question Good Answer Famous Question Nice Question Favorite Question Great Question Good Answer Famous Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question Good Answer Notable Question Good Question Popular Question Popular Question Nice Question Nice Question Announcer Popular Question Notable Question Announcer Nice Answer Notable Question Famous Question Necromancer Notable Question Good Question Popular Question Popular Question Nice Answer Nice Question Nice Question Announcer Good Answer Popular Question Yearling iphone Great Question Revival Nice Question Necromancer Popular Question Great Question Favorite Question Notable Question Popular Question Popular Question Famous Question Popular Question Good Answer Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Good Answer Announcer Notable Question Popular Question Popular Question Nice Answer Famous Question Nice Question Announcer Good Question Publicist Popular Question Famous Question Good Question Good Answer Nice Answer Popular Question Notable Question Announcer Notable Question Announcer Famous Question Nice Answer Popular Question Announcer Notable Question Nice Answer Popular Question Notable Question Popular Question Good Question Favorite Question Notable Question Announcer Famous Question Favorite Question Popular Question Announcer Notable Question Popular Question Great Question Notable Question Necromancer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46074,379102,1102363,NULL,NULL,NULL,0,NULL,NULL 46075,81594,774777,Notable Question,NULL,NULL,0,NULL,NULL 46076,74803,242583,Yearling Nice Answer Nice Answer Guru Necromancer Nice Answer Yearling Yearling Good Answer,NULL,pI would use href http docs python org library functions html filter rel noreferrer codefilter code ppre codestr list filter None str list fasteststr list filter bool str list fasteststr list filter len str list bit slowerstr list filter lambda item item str list slower than list comprehension code prepPython returns an iterator from codefilter code so should be wrapped in call to codelist code ppre codestr list list filter None str list fastest code prep emetc em ppTests ppre code gt gt gt timeit filter None str list str list 1000 number 100000 4797441959381104 gt gt gt timeit filter bool str list str list 1000 number 100000 4788150787353516 gt gt gt timeit filter len str list str list 1000 number 100000 2126238346099854 gt gt gt timeit for in str list if str list 1000 number 100000 13 354584932327271 gt gt gt timeit filter lambda item item str list str list 1000 number 100000 17 427681922912598 code pre mentions about or imply Python please just edit and update the answer We were only discussing for the Python when this question was asked even Python was released almost years But do update both Python and results,0,NULL,NULL 46077,437791,968035,Teacher,NULL,NULL,0,NULL,NULL 46078,32773,108296,Yearling Caucus Yearling Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 46079,235302,1487092,NULL,NULL,NULL,0,NULL,NULL 46080,75878,1212829,NULL,NULL,NULL,0,NULL,NULL 46081,547958,730360,NULL,NULL,NULL,0,NULL,NULL 46082,660149,1339090,NULL,NULL,NULL,0,NULL,NULL 46083,21476,321880,Critic,NULL,NULL,0,NULL,NULL 46084,110214,887902,NULL,NULL,NULL,0,NULL,NULL 46085,676398,219996,NULL,NULL,NULL,0,NULL,NULL 46086,618065,1433694,NULL,NULL,NULL,0,NULL,NULL 46087,728679,535955,NULL,NULL,NULL,0,NULL,NULL 46088,331893,1542331,NULL,NULL,NULL,0,NULL,NULL 46089,160316,1284984,Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 46090,75744,493951,NULL,NULL,NULL,0,NULL,NULL 46091,55278,1350459,NULL,NULL,NULL,0,NULL,NULL 46092,139432,558021,Guru Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Nice Answer Caucus Constituent Yearling Notable Question mongodb Census Nice Answer Enlightened Good Answer Nice Answer Announcer Announcer Caucus Announcer Constituent Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Announcer Announcer Yearling Census Guru Good Answer Nice Answer Caucus Constituent javascript Good Answer Announcer Nice Answer Nice Answer jquery Good Answer,NULL,NULL,0,NULL,NULL 46093,31648,562073,Necromancer Nice Question Good Question Famous Question Popular Question Notable Question Necromancer Nice Answer Good Answer Revival Nice Answer Necromancer Necromancer java Yearling Popular Question Necromancer Great Answer Custodian Popular Question Notable Question Great Answer Caucus Nice Answer Notable Question Custodian Popular Question Good Question Nice Answer Popular Question Yearling Notable Question Good Question Necromancer Nice Answer Popular Question Notable Question Cleanup Necromancer Yearling,NULL,NULL,0,NULL,NULL 46094,299282,1142090,NULL,NULL,NULL,0,NULL,NULL 46095,998029,761330,Notable Question Popular Question Popular Question Nice Question java Famous Question Popular Question Notable Question Nice Question Yearling Nice Answer Nice Question Famous Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Famous Question Famous Question Caucus Famous Question Citizen Patrol Popular Question Popular Question Notable Question Nice Answer Yearling Great Question Famous Question Notable Question Notable Question Good Answer Nice Question Nice Question Notable Question Popular Question Popular Question Yearling Famous Question Nice Question Good Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 46096,1880486,661661,Student,NULL,NULL,0,NULL,NULL 46097,772216,647696,NULL,NULL,NULL,0,NULL,NULL 46098,451292,363592,Guru mocking Good Answer Yearling Nice Answer Good Answer Great Answer Self-Learner Caucus Nice Answer Nice Answer Good Answer Announcer Yearling Excavator Caucus Constituent Popular Question Notable Question Notable Question Announcer Caucus Constituent Reviewer Custodian Proofreader Informed Great Answer Yearling Custodian wpf Taxonomist Popular Question,NULL,NULL,0,NULL,NULL 46099,155658,699210,NULL,NULL,NULL,0,NULL,NULL 46100,87001,699210,NULL,NULL,NULL,0,NULL,NULL 46101,3587050,822737,NULL,NULL,NULL,0,NULL,NULL 46102,82068,408743,NULL,NULL,NULL,0,NULL,NULL 46103,1680473,1217994,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 46104,125582,685338,NULL,NULL,NULL,0,NULL,NULL 46105,901235,1409125,Popular Question Notable Question,NULL,,0,, 46106,5920888,1409125,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46107,337895,416817,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 46108,554716,958197,NULL,NULL,NULL,0,NULL,NULL 46109,203651,883694,NULL,NULL,NULL,0,NULL,NULL 46110,1753500,1247782,NULL,NULL,NULL,0,NULL,NULL 46111,409379,261871,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46112,3590521,927382,Autobiographer,NULL,NULL,0,NULL,NULL 46113,141623,501963,Nice Question Famous Question Famous Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46114,1187728,1347644,NULL,NULL,NULL,0,NULL,NULL 46115,152230,799327,Famous Question Popular Question Self-Learner Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46116,842629,926705,Nice Question Good Question Nice Answer Yearling Popular Question Popular Question Good Answer Popular Question Nice Question Yearling Notable Question Notable Question Nice Question Popular Question Self-Learner Custodian Electorate Notable Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 46117,133444,632724,Commentator Yearling Nice Answer Yearling Citizen Patrol Custodian Custodian Announcer Organizer Yearling Census Custodian Enthusiast Revival Caucus Constituent Yearling Fanatic Revival Announcer Tag Editor Tenacious Necromancer Yearling Revival Nice Answer Enlightened Yearling Nice Answer Good Answer Yearling,NULL,pHere is what did polli pInstalled codenvm code in code opt nvm code as root Seemed like an appropriate location ppre code git clone git com creationix nvm git opt nvm code pre lili pCreated the directory code usr local nvm code This is where the downloads will go code NVM DIR code ppre code mkdir usr local nvm code pre lili pCreate the directory code usr local node code This is where the NPM global stuff will go ppre code mkdir usr local node code pre lili pCreated file called codenvm sh code in code etc profile code with the following contents ppre codeexport NVM DIR usr local nvmsource opt nvm nvm shexport NPM CONFIG PREFIX usr local nodeexport PATH usr local node bin PATH code pre lili pRe login to shell session then set the default node version ppre code nvm install 10 nvm alias default 10 code pre li olpThe node binaries should now be in the codePATH code for all users the next time you login to shell session NPM will install global things to the code usr local node code prefix nvm maintainer here nvm is NOT COMPATIBLE with the prefix option and you should NOT EVER install nvm as root nvm is per user If you want to share node across users nvm is the wrong tool to use pHere one liner found on JSPerf ppre codeArray prototype move function from to this splice to this splice from code prepwhich is awesome to read but if you want performance in small data sets try ppre code Array prototype move2 function pos1 pos2 local variables var tmp cast input parameters to integers pos1 parseInt pos1 10 pos2 parseInt pos2 10 if positions are different and inside array if pos1 pos2 amp amp lt pos1 amp amp pos1 lt this length amp amp lt pos2 amp amp pos2 lt this length save element from position tmp this pos1 move element down and shift other elements up if pos1 lt pos2 for pos1 lt pos2 this this move element up and shift other elements down else for pos1 gt pos2 this this put element from position to destination this pos2 tmp code prepI can take any credit it should all go to href http www redips net javascript array move rel noreferrer Richard Scarrott It beats the splice based method for smaller data sets in this href http jsperf com array prototype move rel noreferrer performance test It is however significantly slower on larger data sets href http jsperf com array prototype move rel noreferrer as Darwayne points out Please never modify builtin prototypes ever http www nczonline net blog 2010 03 02 maintainable javascript dont modify objects you down own,0,NULL,NULL 46118,300351,905866,Good Question Yearling Favorite Question Popular Question Popular Question Yearling Teacher Popular Question,NULL,NULL,0,NULL,NULL 46119,326961,1005716,NULL,NULL,NULL,0,NULL,NULL 46120,56255,1234937,NULL,NULL,NULL,0,NULL,NULL 46121,131012,1106612,Notable Question,NULL,NULL,0,NULL,NULL 46122,704854,1557153,NULL,NULL,NULL,0,NULL,NULL 46123,222998,20601,Good Question Reviewer Popular Question Yearling Caucus Popular Question Steward Custodian Nice Answer Notable Question Famous Question Famous Question Caucus Yearling Documentation User Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 46124,167357,1385280,NULL,NULL,NULL,0,NULL,NULL 46125,258089,818590,Yearling Nice Answer Revival Critic,NULL,NULL,0,NULL,NULL 46126,1530219,818590,Yearling Nice Answer Revival Critic,NULL,NULL,0,NULL,NULL 46127,406881,352791,Notable Question,NULL,NULL,0,NULL,NULL 46128,1155900,362834,NULL,NULL,NULL,0,NULL,NULL 46129,255448,999400,Popular Question Popular Question Notable Question Custodian Custodian Notable Question Notable Question Good Question Nice Answer Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Yearling Famous Question Popular Question Nice Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 46130,255449,999400,Popular Question Popular Question Notable Question Custodian Custodian Notable Question Notable Question Good Question Nice Answer Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Yearling Famous Question Popular Question Nice Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 46131,26779,1036497,Popular Question,NULL,NULL,0,NULL,NULL 46132,342073,86227,Popular Question,NULL,NULL,0,NULL,NULL 46133,1959386,956297,NULL,NULL,NULL,0,NULL,NULL 46134,1058498,956297,NULL,NULL,NULL,0,NULL,NULL 46135,30667,816753,Yearling Nice Answer Yearling Good Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 46136,1174347,988015,NULL,NULL,NULL,0,NULL,NULL 46137,273201,1161310,Notable Question Yearling Popular Question Popular Question Notable Question Great Question Popular Question Popular Question Popular Question Favorite Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46138,187813,1526201,NULL,NULL,NULL,0,NULL,NULL 46139,313292,333504,Yearling Nice Answer Enlightened Enthusiast Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 46140,1328412,879204,NULL,NULL,NULL,0,NULL,NULL 46141,274547,912512,Popular Question,NULL,NULL,0,NULL,NULL 46142,3778220,1123902,NULL,NULL,NULL,0,NULL,NULL 46143,1241396,1123902,NULL,NULL,NULL,0,NULL,NULL 46144,211901,819416,Teacher,NULL,NULL,0,NULL,NULL 46145,246338,376765,NULL,NULL,NULL,0,NULL,NULL 46146,116355,1536109,NULL,NULL,NULL,0,NULL,NULL 46147,428223,1258587,Notable Question,NULL,NULL,0,NULL,NULL 46148,36176,189961,Yearling,NULL,NULL,0,NULL,NULL 46149,170374,1292291,NULL,NULL,NULL,0,NULL,NULL 46150,618195,1107180,NULL,NULL,NULL,0,NULL,NULL 46151,256377,1218920,Popular Question Supporter Citizen Patrol Scholar Teacher Editor Enthusiast Commentator,NULL,NULL,0,NULL,NULL 46152,8091210,1218920,Popular Question Supporter Citizen Patrol Scholar Teacher Editor Enthusiast Commentator,NULL,NULL,0,NULL,NULL 46153,1022784,406642,Civic Duty Commentator Informed Yearling Caucus Necromancer Necromancer Nice Answer Good Answer ruby-on-rails Necromancer Revival Populist Nice Answer Yearling Necromancer Caucus Necromancer Excavator Great Answer Yearling Necromancer Necromancer Necromancer Nice Answer,NULL,NULL,1,NULL,Rails Load lib files in production ruby on rails autoload ruby on rails pI ve upgraded one of my apps from Rails to Rails The href http edgeguides rubyonrails org upgrading ruby on rails html autoloading is disabled after booting in the production environment rel noreferrer Upgrade Guide says that the Autoload feature is now disabled in production by default ppNow always get an error on my production server since load all lib files with autoload in the codeapplication rb code file ppre codemodule MyApp class Application lt Rails Application config autoload paths lib endend code prepFor now ve set the codeconfig enable dependency loading code to codetrue code but wonder if there is better solution to this There must be reason that Autoloading is disabled in production by default pMy list of changes after moving to Rails polliPlace codelib code dir into codeapp code because all code inside app is emautoloaded em in dev and emeager loaded em in prod and most importantly is emautoreloaded em in development so you don have to restart server each time you make changes liliRemove any coderequire code statements pointing to your own classes inside codelib code because they all are autoloaded anyway if their file dir naming are correct and if you leave coderequire code statements it can break autoreloading More info href http guides rubyonrails org autoloading and reloading constants html rel noreferrer here liliSet codeconfig eager load true code in all environments to see code loading problems eagerly in dev liliUse codeRails application eager load code before playing with threads to avoid circular dependency errors lili pIf you have any ruby rails extensions then leave that code inside old codelib code directory and load them manually from initializer This will ensure that extensions are loaded before your further logic that can depend on it ppre code config initializers extensions rbDir Rails root lib ruby ext rb each file require file Dir Rails root lib rails ext rb each file require file code pre li ol 46154,73486,1469080,NULL,NULL,NULL,0,NULL,NULL 46155,731845,1029644,Nice Answer Enlightened Tag Editor Nice Answer html5 Necromancer Excavator javascript Popular Question Civic Duty Nice Answer Yearling jquery Nice Answer Popular Question Nice Answer Yearling Custodian Custodian Yearling,NULL,codebabel polyfill code is required You must also install it in order to get async await working ppre codenpm babel core babel polyfill babel preset es2015 babel preset stage babel loader code preppackage json ppre code devDependencies babel core 20 babel polyfill 16 babel preset es2015 15 babel preset stage 15 code prep babelrc ppre code presets es2015 stage code prep js with async await sample code ppre code use strict export default async function foo var await bar console log function bar return bar code prepIn the startup file ppre coderequire babel core register require babel polyfill code prepIf you are using strongwebpack strong you need to put it as the first entry as per comment ppre codemodule exports entry babel polyfill test js output filename bundle js module loaders test jsx loader babel code prepIf you want to run tests with babel then use ppre codemocha compilers js babel core register require babel polyfill code pre shouldn babel polyfill be dependency not devDependency,0,NULL,NULL 46156,183617,418782,Necromancer Student Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 46157,46403,427219,Revival,NULL,NULL,0,NULL,NULL 46158,506023,1178426,Yearling,NULL,NULL,0,NULL,NULL 46159,61597,441226,NULL,NULL,NULL,0,NULL,NULL 46160,47015,1158149,NULL,NULL,NULL,0,NULL,NULL 46161,453615,152148,Good Answer Famous Question Great Answer Yearling Popular Question Nice Answer Revival Yearling Nice Answer Enthusiast cryptography Nice Question Yearling Necromancer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 46162,603101,1298256,NULL,NULL,NULL,0,NULL,NULL 46163,108178,63333,Nice Answer Enlightened Notable Question Yearling Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened c# Great Answer jquery Promoter Caucus Constituent Nice Answer Yearling Good Answer Popular Question Guru Good Answer Caucus Nice Answer Constituent Nice Answer Enlightened Census Popular Question Popular Question Yearling Nice Answer Enlightened Caucus Good Answer Constituent Good Answer Famous Question Good Answer Good Answer,NULL,NULL,0,NULL,NULL 46164,126793,768635,Custodian Custodian Reviewer Yearling Scholar Caucus Constituent Yearling Caucus Constituent Deputy Excavator Strunk & White Steward Yearling,NULL,NULL,0,NULL,NULL 46165,849071,577949,NULL,NULL,NULL,0,NULL,NULL 46166,151269,1119439,NULL,NULL,NULL,0,NULL,NULL 46167,107566,1063909,NULL,NULL,NULL,0,NULL,NULL 46168,135754,1063909,NULL,NULL,NULL,0,NULL,NULL 46169,712414,445560,Necromancer Revival,NULL,NULL,0,NULL,NULL 46170,53686,191488,NULL,NULL,NULL,0,NULL,NULL 46171,97097,495177,Popular Question Autobiographer Yearling Popular Question,NULL,NULL,0,NULL,NULL 46172,585092,636639,NULL,NULL,NULL,0,NULL,NULL 46173,452528,232406,NULL,NULL,NULL,0,NULL,NULL 46174,211484,1190664,Revival Critic Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 46175,377832,423224,Nice Answer,NULL,NULL,0,NULL,NULL 46176,49677,207447,NULL,NULL,NULL,0,NULL,NULL 46177,71687,50394,Popular Question Nice Answer Famous Question Nice Question Good Answer Famous Question Nice Answer Nice Answer Nice Answer Popular Question Guru Famous Question Good Answer Nice Question Notable Question Notable Question Popular Question Popular Question Yearling Famous Question Nice Answer Enlightened Famous Question Notable Question Good Question Popular Question Notable Question Popular Question Nice Answer Enlightened jquery Notable Question Famous Question Yearling Notable Question Popular Question Popular Question Nice Question javascript,NULL,NULL,0,NULL,NULL 46178,1490972,165187,Student,NULL,NULL,0,NULL,NULL 46179,669834,1291987,NULL,NULL,NULL,0,NULL,NULL 46180,707585,528558,NULL,NULL,NULL,0,NULL,NULL 46181,1172074,1402397,NULL,NULL,NULL,0,NULL,NULL 46182,32414,968870,NULL,NULL,NULL,0,NULL,NULL 46183,551326,38531,Yearling,NULL,NULL,0,NULL,NULL 46184,1078406,611325,Critic Yearling Great Question,NULL,NULL,0,NULL,NULL 46185,666,1207985,NULL,NULL,NULL,0,NULL,NULL 46186,181341,440967,Necromancer Good Answer Nice Answer Caucus Announcer Revival Yearling,NULL,NULL,0,NULL,NULL 46187,153759,1047550,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 46188,50776,688693,Informed Yearling Commentator Yearling Necromancer Tumbleweed Revival Necromancer Yearling Yearling Custodian Custodian Critic Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 46189,23789,469493,Yearling Caucus Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46190,710584,244521,Yearling Yearling Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 46191,5510822,823276,NULL,NULL,NULL,0,NULL,NULL 46192,407498,1197,Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 46193,1173110,577324,Popular Question,NULL,NULL,0,NULL,NULL 46194,6382596,553382,NULL,NULL,NULL,0,NULL,NULL 46195,50879,553382,NULL,NULL,NULL,0,NULL,NULL 46196,416049,238405,Necromancer Custodian Popular Question Yearling Popular Question Self-Learner Necromancer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 46197,1062188,769286,NULL,NULL,NULL,0,NULL,NULL 46198,77363,982721,Yearling Good Question Revival Self-Learner,NULL,NULL,0,NULL,NULL 46199,397325,1555710,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 46200,329457,1336614,Enlightened,NULL,NULL,0,NULL,NULL 46201,20486,87827,Critic,NULL,NULL,0,NULL,NULL 46202,508892,100110,Popular Question Yearling c# Good Answer Guru Notable Question Nice Answer Enlightened Nice Question Yearling Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46203,89963,372479,Nice Question Announcer Nice Question Popular Question Nice Question Yearling Notable Question Quorum Necromancer Yearling Good Question Famous Question Necromancer Famous Question Citizen Patrol Necromancer Custodian Custodian Organizer Yearling Inquisitive Popular Question Necromancer,NULL,NULL,1,NULL,Force ReactJS to throw real errors when propTypes validation fails javascript validation continuous integration reactjs pAt present if codepropType code validation fails ReactJS uses codeconsole warn code to emit warning really really want real error in dev mode so it can fail our continuous integration build instead of just printing message that might be lost in the shuffle ppThere already been discussion of this in href https github com facebook react issues 1587 rel noreferrer this feature request and this href https stackoverflow com questions 26908918 proptypes isrequired constraint mis leading behaviour in react related question describes the current behavior as expected That fine but strongI personally want it to throw an error strong ppAssuming that ReactJS doesn provide better support for this any time soon strongwhat the best workaround strong So far the best ve come up with is to override codeconsole warn code for tests ppre codeconsole warn function msg throw new Error msg code prepThe downside of this is it can be tricky to implement in tests and it not React specific so other codeconsole warn code calls also need to be handled pFrom href https stackoverflow com 29654112 372479 this answer you can check the error message against typical react messages and only throw for those Not perfect but maybe step closer to what you re looking for ppre codelet warn console warn console warn function warning if Invalid prop Failed propType test warning throw new Error warning warn apply console arguments code pre 46204,220494,1264736,Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 46205,507881,1360235,NULL,NULL,NULL,0,NULL,NULL 46206,564139,1513840,NULL,NULL,NULL,0,NULL,NULL 46207,116563,218983,NULL,NULL,NULL,0,NULL,NULL 46208,242241,461321,NULL,NULL,NULL,0,NULL,NULL 46209,160520,1495151,NULL,NULL,NULL,0,NULL,NULL 46210,1522314,829142,NULL,NULL,NULL,0,NULL,NULL 46211,218230,295220,Yearling Notable Question Popular Question Yearling Popular Question Guru Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 46212,2347437,1427397,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 46213,163092,1047866,NULL,NULL,NULL,0,NULL,NULL 46214,451009,91358,Yearling Announcer Popular Question Yearling Popular Question Nice Question Census Yearling Famous Question,NULL,NULL,0,NULL,NULL 46215,936840,74089,Yearling Popular Question Good Question Famous Question Custodian Yearling Popular Question Popular Question Citizen Patrol Famous Question Good Question Notable Question Excavator Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 46216,20838,74089,Yearling Popular Question Good Question Famous Question Custodian Yearling Popular Question Popular Question Citizen Patrol Famous Question Good Question Notable Question Excavator Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 46217,1511077,273924,Yearling Nice Answer Yearling Good Answer Popular Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46218,36171,1494621,NULL,NULL,NULL,0,NULL,NULL 46219,13685,161471,Yearling Good Question Famous Question Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 46220,265227,1548051,Nice Answer Enlightened Guru Good Answer Great Answer Nice Answer Yearling Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Good Answer Great Answer Populist Guru Guru Yearling Nice Answer Enlightened Yearling Good Answer Guru Great Answer Great Answer,NULL,pI not entirely sure what you want and your last line of code does not help either but anyway pp Chained filtering is done by chaining the criteria in the boolean index ppre codeIn 96 dfOut 96 Da 1b 2c 0d 6In 99 df df amp df Out 99 Dd code prepIf you want to chain methods you can add your own mask method and use that one ppre codeIn 90 def mask df key value return df df key value In 92 pandas DataFrame mask maskIn 93 df pandas DataFrame np random randint 10 index list abcd columns list ABCD In 95 df ix df ix In 96 dfOut 96 Da 1b 2c 0d 6In 97 df mask Out 97 Da 1d 6In 98 df mask mask Out 98 Dd code pre indeed see also http pandas pydata org pandas docs stable indexing html boolean operators pI not entirely sure what you want and your last line of code does not help either but anyway pp Chained filtering is done by chaining the criteria in the boolean index ppre codeIn 96 dfOut 96 Da 1b 2c 0d 6In 99 df df amp df Out 99 Dd code prepIf you want to chain methods you can add your own mask method and use that one ppre codeIn 90 def mask df key value return df df key value In 92 pandas DataFrame mask maskIn 93 df pandas DataFrame np random randint 10 index list abcd columns list ABCD In 95 df ix df ix In 96 dfOut 96 Da 1b 2c 0d 6In 97 df mask Out 97 Da 1d 6In 98 df mask mask Out 98 Dd code pre Indeed import pandas as pd is common practice now doubt it was when answered the question,0,NULL,NULL 46221,39512,303425,Favorite Question Yearling Nice Answer Enlightened Guru Good Answer Guru Announcer Necromancer Nice Answer Yearling Nice Answer Civic Duty Necromancer Good Question Notable Question Nice Answer Yearling Great Question Famous Question Announcer,NULL,NULL,0,NULL,NULL 46222,251071,830908,NULL,NULL,NULL,0,NULL,NULL 46223,171088,514363,NULL,NULL,NULL,0,NULL,NULL 46224,23922,94152,Necromancer Yearling Famous Question Nice Answer Electorate Yearling Yearling Good Answer Announcer Good Answer,NULL,NULL,0,NULL,NULL 46225,468169,638258,Pundit Good Answer Yearling Yearling Necromancer Yearling Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46226,69255,66842,Nice Question Nice Question Notable Question Famous Question Revival Yearling Nice Answer Enlightened Necromancer Nice Answer Necromancer Notable Question Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 46227,2773991,66842,Nice Question Nice Question Notable Question Famous Question Revival Yearling Nice Answer Enlightened Necromancer Nice Answer Necromancer Notable Question Caucus Yearling Nice Question,NULL,NULL,0,NULL,NULL 46228,80714,72520,Notable Question,NULL,NULL,0,NULL,NULL 46229,1109819,413254,Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Nice Question Great Question Favorite Question Famous Question Good Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Peer Pressure Famous Question Notable Question Famous Question Necromancer Popular Question Popular Question Yearling Popular Question Announcer Pundit Great Question Famous Question Announcer Notable Question Good Answer Nice Answer Good Question Popular Question Notable Question Announcer Popular Question Popular Question Popular Question Nice Question Famous Question Nice Answer Famous Question Good Question Notable Question Notable Question Notable Question Famous Question Good Question Famous Question Notable Question Yearling Notable Question Popular Question Nice Answer Notable Question Nice Answer Nice Question Documentation User Popular Question Nice Question Notable Question Notable Question Announcer Census Nice Question Popular Question Good Answer Famous Question Popular Question Popular Question Nice Question Good Answer Good Question Popular Question Nice Answer Yearling Good Answer Necromancer Popular Question,NULL,NULL,1,How do save IEx history elixir iex pWith IEx Elixir REPL like to be able to save my command history ppFor example ppI can open up new IEx session and execute command After executing the command can press the up arrow and have my last command pre populated After closing IEx and re opening like to have access to my last commands ppIs there way to do this java lang NoClassDefFoundError Failed resolution of Lorg jacoco agent rt internal 14f7ee5 Offline android android gradle jacoco pI seeing the following error in my Android project after updating to Gradle Build Tools and Gradle 14 It happens immediately when run the application How do fix this ppre codejava lang NoClassDefFoundError Failed resolution of Lorg jacoco agent rt internal 14f7ee5 Offline at com ourapp next conversation SomeList SomeListViewModel jacocoInit SomeListViewModel java at com ourapp next conversation SomeList SomeListViewModel SomeListViewModel java at com ourapp next conversation SomeList SomeListAdapterTest SomeListAdapterTest java 26 at java lang reflect Constructor newInstance Native Method at java lang reflect Constructor newInstance Constructor java 288 at org junit runners BlockJUnit4ClassRunner createTest BlockJUnit4ClassRunner java 217 at org junit runners BlockJUnit4ClassRunner runReflectiveCall BlockJUnit4ClassRunner java 266 at org junit internal runners model ReflectiveCallable run ReflectiveCallable java 12 at org junit runners BlockJUnit4ClassRunner methodBlock BlockJUnit4ClassRunner java 263 at org junit runners BlockJUnit4ClassRunner runChild BlockJUnit4ClassRunner java 78 at org junit runners BlockJUnit4ClassRunner runChild BlockJUnit4ClassRunner java 57 at org junit runners ParentRunner run ParentRunner java 290 at org junit runners ParentRunner schedule ParentRunner java 71 at org junit runners ParentRunner runChildren ParentRunner java 288 at org junit runners ParentRunner access 000 ParentRunner java 58 at org junit runners ParentRunner evaluate ParentRunner java 268 at org junit runners ParentRunner run ParentRunner java 363 at org junit runners Suite runChild Suite java 128 at org junit runners Suite runChild Suite java 27 at org junit runners ParentRunner run ParentRunner java 290 at org junit runners ParentRunner schedule ParentRunner java 71 at org junit runners ParentRunner runChildren ParentRunner java 288 at org junit runners ParentRunner access 000 ParentRunner java 58 at org junit runners ParentRunner evaluate ParentRunner java 268 at org junit runners ParentRunner run ParentRunner java 363 at org junit runner JUnitCore run JUnitCore java 137 at org junit runner JUnitCore run JUnitCore java 115 at android support test internal runner TestExecutor execute TestExecutor java 59 at android support test runner AndroidJUnitRunner onStart AndroidJUnitRunner java 262 at android app Instrumentation InstrumentationThread run Instrumentation java 1853 Caused by java lang ClassNotFoundException Didn find class org jacoco agent rt internal 14f7ee5 Offline on path DexPathList zip file system framework android test runner jar zip file data app com ourapp next debug test base apk zip file data app com ourapp next debug base apk nativeLibraryDirectories vendor lib system lib at dalvik system BaseDexClassLoader findClass BaseDexClassLoader java 56 at java lang ClassLoader loadClass ClassLoader java 511 at java lang ClassLoader loadClass ClassLoader java 469 30 moreSuppressed java lang ClassNotFoundException org jacoco agent rt internal 14f7ee5 Offlineat java lang Class classForName Native Method at java lang BootClassLoader findClass ClassLoader java 781 at java lang BootClassLoader loadClass ClassLoader java 841 at java lang ClassLoader loadClass ClassLoader java 504 31 moreCaused by java lang NoClassDefFoundError Class not found using the boot class loader no stack available code pre,NULL 46230,277561,417229,Notable Question Notable Question Popular Question Popular Question Necromancer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46231,78624,1329225,NULL,NULL,NULL,0,NULL,NULL 46232,557978,267471,NULL,NULL,NULL,0,NULL,NULL 46233,112300,339257,NULL,NULL,NULL,0,NULL,NULL 46234,46487,499468,NULL,NULL,NULL,0,NULL,NULL 46235,145297,1389373,NULL,NULL,NULL,0,NULL,NULL 46236,33546,897163,NULL,NULL,NULL,0,NULL,NULL 46237,15058,304536,Favorite Question Yearling Yearling Famous Question Popular Question Famous Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 46238,247645,238014,Popular Question,NULL,NULL,0,NULL,NULL 46239,185822,613731,NULL,NULL,NULL,0,NULL,NULL 46240,1500398,700521,NULL,NULL,NULL,0,NULL,NULL 46241,151686,227861,Notable Question Yearling,NULL,NULL,0,NULL,NULL 46242,2338217,227861,Notable Question Yearling,NULL,NULL,0,NULL,NULL 46243,4233692,227861,Notable Question Yearling,NULL,NULL,0,NULL,NULL 46244,194406,436548,Popular Question Necromancer Custodian Explainer Nice Question Organizer Nice Answer Famous Question Popular Question Notable Question Yearling Popular Question Good Answer Populist Nice Answer Enlightened Good Question php Yearling Excavator Famous Question Yearling,NULL,NULL,0,NULL,NULL 46245,1125175,609959,Notable Question Yearling Popular Question Notable Question Great Question Famous Question Yearling Favorite Question Popular Question Notable Question Nice Question Great Question Inquisitive Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46246,303873,61289,Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Caucus Notable Question Yearling Good Answer Great Answer Nice Answer Nice Answer Enlightened Great Answer Yearling Caucus Nice Answer Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46247,521113,74053,Yearling Good Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46248,33770,124508,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 46249,394341,903003,NULL,NULL,NULL,0,NULL,NULL 46250,1170718,1043379,Citizen Patrol Informed Autobiographer,NULL,NULL,0,NULL,NULL 46251,258977,350009,Documentation User Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 46252,2508741,1283882,NULL,NULL,NULL,0,NULL,NULL 46253,573985,589482,Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 46254,78248,1499597,Student,NULL,NULL,0,NULL,NULL 46255,322130,789569,Revival,NULL,NULL,0,NULL,NULL 46256,55459,148466,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46257,2257,357100,Revival Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 46258,641008,1124500,NULL,NULL,NULL,0,NULL,NULL 46259,273942,431734,Yearling Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46260,124971,1384052,Announcer Announcer,NULL,NULL,0,NULL,NULL 46261,188376,957324,Popular Question,NULL,NULL,0,NULL,NULL 46262,435145,1178983,Popular Question,NULL,NULL,0,NULL,NULL 46263,491056,1423832,NULL,NULL,NULL,0,NULL,NULL 46264,802292,1069769,NULL,NULL,NULL,0,NULL,NULL 46265,1052201,1464749,NULL,NULL,NULL,0,NULL,NULL 46266,113617,994592,NULL,NULL,NULL,0,NULL,NULL 46267,48659,657292,NULL,NULL,NULL,0,NULL,NULL 46268,204531,537337,NULL,NULL,NULL,0,NULL,NULL 46269,139334,294686,Curious,NULL,NULL,0,NULL,NULL 46270,103293,591922,Good Question Yearling Famous Question Notable Question Benefactor Popular Question Announcer Announcer Yearling Nice Answer Necromancer Nice Question Yearling Popular Question Popular Question Yearling Announcer Nice Answer Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 46271,42943,1230270,NULL,NULL,NULL,0,NULL,NULL 46272,9424893,760767,Nice Answer Popular Question Yearling Announcer Nice Answer Investor Altruist Nice Question Popular Question Guru Yearling Notable Question Good Answer Census Custodian Notable Question Popular Question Caucus Constituent Yearling Disciplined,NULL,NULL,0,NULL,NULL 46273,1293459,760767,Nice Answer Popular Question Yearling Announcer Nice Answer Investor Altruist Nice Question Popular Question Guru Yearling Notable Question Good Answer Census Custodian Notable Question Popular Question Caucus Constituent Yearling Disciplined,NULL,NULL,0,NULL,NULL 46274,1541196,1038607,Notable Question,NULL,NULL,0,NULL,NULL 46275,264098,463273,NULL,NULL,NULL,0,NULL,NULL 46276,75067,368409,Revival Necromancer Yearling Good Answer Custodian Nice Answer Yearling Popular Question Excavator Popular Question Necromancer Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 46277,548500,231256,NULL,NULL,NULL,0,NULL,NULL 46278,75181,686806,Yearling Necromancer Good Question Famous Question Nice Answer Enlightened Yearling Curious,NULL,NULL,0,NULL,NULL 46279,177577,1216890,Self-Learner Famous Question Popular Question Notable Question Caucus Caucus Notable Question,NULL,NULL,0,NULL,NULL 46280,39605,313902,Good Answer Yearling Nice Answer Guru Necromancer Nice Answer Enlightened javascript Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 46281,456526,1314028,Yearling Notable Question Yearling python Autobiographer Nice Question Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 46282,328877,897745,Supporter,NULL,NULL,0,NULL,NULL 46283,438214,415755,Proofreader Reviewer Nice Answer Nice Answer Enlightened Yearling Strunk & White Caucus Yearling Documentation User Custodian Custodian Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 46284,24541,400407,Explainer Popular Question Custodian Notable Question Yearling Great Question Famous Question Yearling Good Question Custodian Citizen Patrol Yearling Revival,NULL,NULL,0,NULL,NULL 46285,1178750,797358,Populist,NULL,NULL,0,NULL,NULL 46286,860913,1539731,NULL,NULL,NULL,0,NULL,NULL 46287,2002498,1324617,NULL,NULL,NULL,0,NULL,NULL 46288,112858,99000,Famous Question,NULL,NULL,0,NULL,NULL 46289,948365,1082061,Editor Commentator,NULL,NULL,0,NULL,NULL 46290,7501,322395,Good Answer Nice Answer Necromancer Good Answer Good Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Caucus Constituent css Good Answer javascript Yearling Great Answer Good Answer Caucus Popular Question Nice Answer Nice Answer Enlightened Documentation User Guru Guru Nice Answer Good Answer Nice Answer Enlightened Good Answer Caucus Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46291,734578,933453,Popular Question,NULL,NULL,0,NULL,NULL 46292,3293957,87114,Nice Question,NULL,NULL,0,NULL,NULL 46293,573704,87114,Nice Question,NULL,NULL,0,NULL,NULL 46294,49764,680227,NULL,NULL,NULL,0,NULL,NULL 46295,1411916,1195878,Necromancer,NULL,NULL,1,NULL,Detect if Android device has Internet connection android internet connection android internet pI need to tell if my device has Internet connection or not found many answers like ppre codeprivate boolean isNetworkAvailable ConnectivityManager connectivityManager ConnectivityManager getSystemService Context CONNECTIVITY SERVICE NetworkInfo activeNetworkInfo connectivityManager getActiveNetworkInfo return activeNetworkInfo null code prep sup Taken from href https stackoverflow com questions 4238921 detect whether there is an internet connection available on android Detect whether there is an Internet connection available on Android sup ppBut this is not right for example if strongconnected to wireless network which doesn have Internet access strong this method will return true… strongIs there way to tell if the device has Internet connection and not if it is only connected to something strong pIf you re targeting Lollipop or higher it possible to use the new NetworkCapabilities class ppre codepublic static boolean hasInternetConnection final Context context final ConnectivityManager connectivityManager ConnectivityManager context getSystemService Context CONNECTIVITY SERVICE final Network network connectivityManager getActiveNetwork final NetworkCapabilities capabilities connectivityManager getNetworkCapabilities network return capabilities null amp amp capabilities hasCapability NetworkCapabilities NET CAPABILITY VALIDATED code pre 46296,280666,631868,NULL,NULL,NULL,0,NULL,NULL 46297,196467,752854,NULL,NULL,NULL,0,NULL,NULL 46298,467729,737037,Yearling,NULL,NULL,0,NULL,NULL 46299,477634,1334532,NULL,NULL,NULL,0,NULL,NULL 46300,200710,1217718,NULL,NULL,NULL,0,NULL,NULL 46301,422652,901944,Good Answer Nice Answer Good Answer ember.js Populist Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Popular Question Nice Answer Yearling Great Answer Popular Question Notable Question Popular Question javascript ruby Nice Question Necromancer Popular Question Guru Announcer Popular Question Investor Altruist Nice Answer Enlightened Nice Answer Yearling Nice Answer Good Answer Announcer css3 Notable Question Nice Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Yearling Notable Question Good Answer Announcer,NULL,NULL,1,How do use ember emojione with emojione png sprites ember js ember emojione pI using href https github com Deveo ember emojione rel nofollow noreferrer ember emojione to display and insert emoji ppOut of four rendering options that EmojiOne offers pulliPNG sprites liliPNG individual images liliSVG sprites liliSVG individual images li ulp only PNG sprites suit me Individual images take too much time to load and emoji display sequentially SVG sprites are awesome but rerendering the preview area causes SVG sprite emoji to flicker Only PNG sprite emoji never flicker and display simultaneously ppUnfortunately EmojiOne offers spritesheets only in three sizes 64 128 and 512 px We need to display emoji in 20 px size ppResizing emoji displayed via PNG sprites is problematic pp codeember emojione code readme suggests this hack to resize PNG sprite emoji ppre code emojione transform scale 3125 margin 22px code prepIt works but it has some disadvantages pulliIn certain cases emoji appear blurred lili pText selection blows up pp href https stack imgur com SyL0l png rel nofollow noreferrer img src https stack imgur com SyL0l png alt enter image description here li ulpThe solution is to use emoji spritesheets tailored to desired size The href https github com Deveo emojione png sprites rel nofollow noreferrer Deveo emojione png sprites repo offers such spritesheets ppBut when include those spritesheets instead of default ones codeember emojione code emoji picker component displays incorrectly pp strongQuestion strong how do use codeember emojione code with codeemojione png sprites code correctly,NULL 46302,106397,1048974,NULL,NULL,NULL,0,NULL,NULL 46303,115520,1310721,NULL,NULL,NULL,0,NULL,NULL 46304,243606,1428826,NULL,NULL,NULL,0,NULL,NULL 46305,956102,1476021,Teacher,NULL,NULL,0,NULL,NULL 46306,78253,1143792,Yearling Commentator Critic Yearling Caucus Student Promoter Revival Scholar Benefactor Custodian,NULL,NULL,0,NULL,NULL 46307,32920,369401,Necromancer Yearling Nice Question Notable Question Nice Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 46308,2060262,676758,NULL,NULL,NULL,0,NULL,NULL 46309,161037,676758,NULL,NULL,NULL,0,NULL,NULL 46310,102014,494258,NULL,NULL,NULL,0,NULL,NULL 46311,134033,1367772,NULL,NULL,NULL,0,NULL,NULL 46312,786138,1230976,NULL,NULL,NULL,0,NULL,NULL 46313,324814,325725,Famous Question Yearling Popular Question Notable Question Yearling Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 46314,207574,1204593,NULL,NULL,NULL,0,NULL,NULL 46315,204789,211158,Yearling Popular Question,NULL,NULL,0,NULL,NULL 46316,691419,877310,NULL,NULL,NULL,0,NULL,NULL 46317,192137,902283,NULL,NULL,NULL,0,NULL,NULL 46318,2164975,836801,Popular Question,NULL,NULL,0,NULL,NULL 46319,317206,1470107,NULL,NULL,NULL,0,NULL,NULL 46320,68154,298758,Popular Question Nice Question Yearling Notable Question Notable Question Notable Question Popular Question Yearling Announcer Announcer Caucus Notable Question Necromancer Popular Question Yearling Popular Question Pundit,NULL,NULL,0,NULL,NULL 46321,98099,1166284,Custodian,NULL,NULL,0,NULL,NULL 46322,3100425,1166284,Custodian,NULL,NULL,0,NULL,NULL 46323,451746,1166284,Custodian,NULL,NULL,0,NULL,NULL 46324,98100,1166284,Custodian,NULL,NULL,0,NULL,NULL 46325,130955,1402865,NULL,NULL,NULL,0,NULL,NULL 46326,1240382,1402865,NULL,NULL,NULL,0,NULL,NULL 46327,300720,695503,Informed,NULL,NULL,0,NULL,NULL 46328,255385,483733,NULL,NULL,NULL,0,NULL,NULL 46329,336291,505789,NULL,NULL,NULL,0,NULL,NULL 46330,338705,351392,Civic Duty Enthusiast,NULL,NULL,0,NULL,NULL 46331,142757,1038015,Nice Answer Enlightened Guru Pundit Disciplined Sportsmanship javascript Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Reviewer Refiner Revival Good Answer Nice Answer Enlightened xml Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Enlightened Guru Revival Documentation Pioneer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened d3.js Good Answer Guru Copy Editor Nice Answer Enlightened Caucus Yearling Nice Answer Nice Answer Enlightened Constituent Nice Answer Enlightened Nice Answer html5 Steward Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Census Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer svg-filters Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Caucus Good Answer image Revival Guru Nice Answer Good Answer Good Answer Revival Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Documentation User Nice Answer dom Guru Yearling Great Answer css html Guru Nice Answer Enlightened Revival Necromancer Nice Answer text Census Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Caucus Nice Answer Enlightened Good Answer Constituent Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened firefox Good Answer Nice Answer Good Answer internet-explorer Nice Answer Enlightened Nice Answer Guru Nice Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,pIn the href https www w3 org TR SVG text html BaselineAlignmentProperties rel nofollow noreferrer SVG specification dominant baseline is not an inherited property SVG changes things such that href https www w3 org TR SVG2 text html DominantBaselineProperty rel nofollow noreferrer dominant baseline is inherited but Firefox has not implemented this part of SVG yet ppIn the meantime simply set dominant baseline on the text element pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override codeg xD transform translate 50px 50px xD text anchor middle xD xD text xD dominant baseline middle xD code pre xD pre class snippet code html lang html prettyprint override code lt svg width 100 height 100 gt xD lt gt xD lt circle cx cy 15 stroke 000 fill ffffff gt xD lt text gt lt text gt xD lt gt xD lt svg gt code pre xD div xD div xD https bugzilla mozilla org show bug cgi id 1353164 pAll user agents browsers ignore the version attribute so you can always drop that ppIf you embed your SVG inline in HTML page and serve that page as codetext html code then href http www w3 org TR html5 syntax html foreign elements rel noreferrer xmlns attributes are not required Embedding SVG inline in HTML documents is fairly recent innovation that came along as part of HTML5 ppIf however you serve your page as image svg xml or application xhtml xml or any other MIME type that causes the user agent to use an XML parser then href https developer mozilla org en docs Web SVG Namespaces Crash Course rel noreferrer the xmlns attributes strongare strong required This was the only way to do things until recently so there is lot of content served like this User agent browser or something else Batik or Inkscape that can display markup,1,NULL,dominant baseline doesn work in Firefox html css css3 svg alignment pConsider the following example pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override codeg xD transform translate 50px 50px xD dominant baseline central xD text anchor middle xD code pre xD pre class snippet code html lang html prettyprint override code lt svg width 100 height 100 gt xD lt gt xD lt circle cx cy 15 stroke 000 fill ffffff gt xD lt text gt lt text gt xD lt gt xD lt svg gt code pre xD div xD div xD ppChrome respects codedominant baseline central code by aligning the text vertically in the middle pp href https stack imgur com UHpeu png rel nofollow noreferrer img src https stack imgur com UHpeu png alt enter image description here ppBut Firefox doesn seem to respect codedominant baseline central code pp href https stack imgur com F5wNx png rel nofollow noreferrer img src https stack imgur com F5wNx png alt enter image description here ppHow would you fix this cross browser issue pIn the href https www w3 org TR SVG text html BaselineAlignmentProperties rel nofollow noreferrer SVG specification dominant baseline is not an inherited property SVG changes things such that href https www w3 org TR SVG2 text html DominantBaselineProperty rel nofollow noreferrer dominant baseline is inherited but Firefox has not implemented this part of SVG yet ppIn the meantime simply set dominant baseline on the text element pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override codeg xD transform translate 50px 50px xD text anchor middle xD xD text xD dominant baseline middle xD code pre xD pre class snippet code html lang html prettyprint override code lt svg width 100 height 100 gt xD lt gt xD lt circle cx cy 15 stroke 000 fill ffffff gt xD lt text gt lt text gt xD lt gt xD lt svg gt code pre xD div xD div xD 46332,9014,372505,NULL,NULL,NULL,0,NULL,NULL 46333,46035,1025099,NULL,NULL,NULL,0,NULL,NULL 46334,253249,526184,NULL,NULL,NULL,0,NULL,NULL 46335,273837,1078651,Teacher Supporter Editor Informed,NULL,NULL,0,NULL,NULL 46336,80540,509823,NULL,NULL,NULL,0,NULL,NULL 46337,170357,1047553,NULL,NULL,NULL,0,NULL,NULL 46338,151741,444369,Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 46339,961954,608402,Critic,NULL,NULL,0,NULL,NULL 46340,208812,278346,Popular Question,NULL,NULL,0,NULL,NULL 46341,42305,483846,NULL,NULL,NULL,0,NULL,NULL 46342,280570,224490,Critic Civic Duty,NULL,NULL,0,NULL,NULL 46343,193655,17965,Famous Question Good Question Nice Question Good Answer Yearling Great Answer Great Question Good Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 46344,1999728,683178,Editor Custodian Popular Question Student Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 46345,5783,66397,NULL,NULL,NULL,0,NULL,NULL 46346,274139,1013932,Nice Question Famous Question Good Question Yearling Teacher Popular Question Yearling,NULL,NULL,0,NULL,NULL 46347,3845932,1013932,Nice Question Famous Question Good Question Yearling Teacher Popular Question Yearling,NULL,NULL,0,NULL,NULL 46348,717826,831142,Custodian Student Editor Scholar Commentator Announcer Curious,NULL,NULL,0,NULL,NULL 46349,468956,1215303,NULL,NULL,NULL,0,NULL,NULL 46350,4414809,539115,Good Answer Taxonomist Nice Question ios Popular Question Custodian Custodian Nice Answer Necromancer Yearling Notable Question Popular Question Good Question Guru Nice Answer Guru Yearling Popular Question c++ Benefactor Good Answer Notable Question,NULL,NULL,0,NULL,NULL 46351,790863,539115,Good Answer Taxonomist Nice Question ios Popular Question Custodian Custodian Nice Answer Necromancer Yearling Notable Question Popular Question Good Question Guru Nice Answer Guru Yearling Popular Question c++ Benefactor Good Answer Notable Question,NULL,NULL,0,NULL,NULL 46352,720702,1099988,NULL,NULL,NULL,0,NULL,NULL 46353,8417,729376,NULL,NULL,NULL,0,NULL,NULL 46354,832593,351879,Popular Question Yearling,NULL,NULL,0,NULL,NULL 46355,592889,1068883,Necromancer Yearling Nice Answer Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 46356,661353,1309103,Teacher Informed Popular Question,NULL,NULL,0,NULL,NULL 46357,418289,1398644,Necromancer,NULL,NULL,0,NULL,NULL 46358,388041,1236209,Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 46359,97119,535837,Good Question Yearling,NULL,NULL,0,NULL,NULL 46360,440088,1245044,NULL,NULL,NULL,0,NULL,NULL 46361,68705,659581,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46362,577414,1470647,NULL,NULL,NULL,0,NULL,NULL 46363,218013,956867,Yearling Yearling Caucus Constituent Census Tenacious,NULL,NULL,0,NULL,NULL 46364,137048,1005455,Popular Question Necromancer Announcer Yearling Nice Answer Good Answer Announcer Notable Question Popular Question Yearling Notable Question Notable Question Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 46365,144244,71310,Nice Answer Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 46366,431822,1005581,NULL,NULL,NULL,0,NULL,NULL 46367,28680,82609,Revival Notable Question Necromancer Good Answer Good Question Nice Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Populist Nice Answer Popular Question Popular Question Popular Question Necromancer Announcer Popular Question Announcer Announcer Nice Answer Famous Question Notable Question Popular Question Good Answer Necromancer Popular Question Announcer Notable Question Notable Question Famous Question Notable Question Necromancer Notable Question Yearling Good Answer Nice Answer Notable Question Popular Question Necromancer Popular Question Good Answer Famous Question Announcer Good Answer Necromancer Popular Question Announcer Announcer Good Question Popular Question Necromancer Nice Question Good Answer Popular Question Favorite Question Popular Question Famous Question Good Answer Notable Question Good Answer Nice Answer Announcer Popular Question Nice Answer Necromancer Nice Question Booster Famous Question Nice Question Notable Question Nice Question Necromancer Nice Question Favorite Question Great Answer Notable Question Necromancer Notable Question Nice Question Nice Question Great Answer Notable Question Announcer Nice Answer Nice Question Popular Question Good Question Notable Question Nice Answer Notable Question Nice Question Nice Answer Necromancer Popular Question Good Answer Announcer Good Answer Famous Question Nice Question Nice Answer Nice Answer Popular Question Good Answer Notable Question Socratic Notable Question Notable Question Nice Question Notable Question Nice Answer Popular Question Good Question Notable Question Popular Question Popular Question Necromancer Notable Question Notable Question Announcer Good Answer hibernate Revival Nice Question cordova Tag Editor Necromancer Famous Question Revival Nice Answer Nice Question Popular Question Notable Question Good Answer Good Answer Yearling Popular Question Nice Question Nice Question Notable Question Popular Question Guru Good Answer Notable Question Famous Question Notable Question Nice Answer Nice Answer Guru Popular Question Announcer Nice Answer Nice Answer Announcer Popular Question Notable Question Nice Question Announcer Publicist Popular Question Good Question Announcer Famous Question Announcer Announcer Notable Question Nice Question Guru Notable Question Famous Question Popular Question Nice Question Nice Question Announcer Announcer Notable Question Famous Question Notable Question Announcer Popular Question Popular Question Famous Question Good Answer Documentation User Guru Announcer Notable Question Great Answer Announcer Revival Nice Answer Announcer Necromancer Revival Nice Answer Nice Question Popular Question Famous Question Great Answer Nice Answer Notable Question Good Answer Popular Question Notable Question Necromancer Nice Answer Notable Question Good Question Popular Question Popular Question Nice Question Yearling Nice Question Popular Question scala Necromancer Popular Question Necromancer Notable Question Nice Question Favorite Question Notable Question Necromancer Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Good Question Nice Question Nice Answer Notable Question Announcer Notable Question Announcer Famous Question Nice Question Great Answer Popular Question Nice Answer Announcer Favorite Question Great Answer Notable Question Popular Question Announcer Popular Question Popular Question Nice Answer Good Question Good Question Favorite Question Nice Question Good Answer,NULL,h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre thanks going to but want to figure out some stuff before including solving this Elm architecture question https github com jarvisaoieong redux architecture issues and doing some code with these ideas in https github com slorber todomvc onboarding h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre can find good reason either but have not yet experienced it enough with these concepts in real world application We are only starting to use redux saga on my app so time will tell h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab c,,, m blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre don know what you mean by simple action Sagas do not forbid you to do simple synchronous action dispatchs And you are still free to perform simple data loading calls with componentDidMount and setState or use thunks if you think it simpler or require less boilerplate than sagas Just be aware of pros and cons of each approach but you can mix them if it makes sense to you h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre sorry for late anwer When you dispatch ADD ITEM it imperative because you dispatch an action that aims to have an effect on your store you expect the action to do something Being declarative embrace the philosophy of event sourcing you don dispatch actions to trigger changes on your applications but you dispatch past events to describe what has happened into your application The dispatch of an event should be sufficient to consider that the state of the application has changed The fact that there Redux store that reacts to event is an optional implementation detail h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre We are discussing concrete usecase here not saying any paradigm is better than another globally and use OOP imperative paradigms when it makes sense but if you think about this concrete usecase and you disagree that FP declarative effects approach is better please tell me which paradigm is better and why Here explained why FP paradigm is better for sagas because it leverages better testability than imperative paradigm Still you can implement the saga pattern with imperative logic did that in the past before Redux saga existed h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and event,,,,,,,, " codeUSER LOADE""",revival notable question necromancer good answer good question nice question good answer nice answer nice answer enlighten nice answer announcer populist nice answer popular question popular question popular question necromancer announcer popular question announcer announcer nice answer famous question notable question popular question good answer necromancer popular question announcer notable question notable question famous question notable question necromancer notable question yearle good answer nice answer notable question popular question necromancer popular question good answer famous question announcer good answer necromancer popular question announcer announcer good question popular question necromancer nice question good answer popular question favorite question popular question famous question good answer notable question good answer nice answer announcer popular question nice answer necromancer nice question famous question nice question notable question nice question necromancer nice question favorite question great answer notable question necromancer notable question nice question nice question great answer notable question announcer nice answer nice question popular question good question notable question nice answer notable question nice question nice answer necromancer popular question good answer announcer good answer famous question nice question nice answer nice answer popular question good answer notable question socratic notable question notable question nice question notable question nice answer popular question good question notable question popular question popular question necromancer notable question notable question announcer good answer hibernate revival nice question cordova tag editor necromancer famous question revival nice answer nice question popular question notable question good answer good answer yearle popular question nice question nice question notable question popular question guru good answer notable question famous question notable question nice answer nice answer guru popular question announcer nice answer nice answer announcer popular question notable question nice question announcer publicist popular question good question announcer famous question announcer announcer notable question nice question guru notable question famous question popular question nice question nice question announcer announcer notable question famous question notable question announcer popular question popular question famous question good answer documentation user guru announcer notable question great answer announcer revival nice answer announcer necromancer revival nice answer nice question popular question famous question great answer nice answer notable question good answer popular question notable question necromancer nice answer notable question good question popular question popular question nice question yearle nice question popular question scala necromancer popular question necromancer notable question nice question favorite question notable question necromancer notable question notable question popular question popular question notable question popular question good question nice question nice answer notable question announcer notable question announcer famous question nice question great answer popular question nice answer announcer favorite question great answer notable question popular question announcer popular question popular question nice answer good question good question favorite question nice question good answer middleware async flow redux javascript asynchronous reactj redux redux thunk paccorde docs href http redux js org docs advanced asyncflow html noreferrer middleware redux store support synchronous datum flow understand case container component async api codedispatch code action ppfor imagine simple field button user push button field populate datum remote server href https stack imgur png noreferrer img src https stack imgur png alt field button codeimport react react import redux redux import provider connect react redux const actiontype start update start update update update class asyncapi static getfieldvalue const promise promise resolve settimeout resolve math floor math random return promise class app extend react component render return lt div lt input prop field lt button disable prop iswaite onclick prop update fetch lt button prop iswaite amp amp lt div wait lt div lt div app proptype dispatch react proptype func field react proptype iswaite react proptype bool const reducer state field datum iswaite false action switch action type case actiontype start update return state iswaite true case actiontype update return state iswaite false field action payload default return state const store redux createstore reducer const connectedapp connect state return state dispatch return update dispatch type actiontype start update asyncapi getfieldvalue result dispatch type actiontype update payload result app export default class extend react component render return lt provider store store lt connectedapp lt provider code prepwhen export component render click button input update correctly ppnote codeupdate code function codeconnect code dispatch action tell app update perform async finish provide dispatch payload action wrong approach redux thunk redux promise documentation suggest strongedit strong search redux repo clue action creator require pure function href https github reactj redux issue noreferrer user provide explanation async datum flow pblockquote pthe action creator pure function thunk function return async call blockquotep href https github reactj redux issue noreferrer action creator longer require pure thunk promise middleware require longer case redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary simple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary simple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code figure stuff include solve architecture question https github jarvisaoieong redux architecture issue code idea https github slorber todomvc onboarde redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary simple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code good reason experience concept real world application start redux saga app time redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary si,,,,,,, "ple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code simple action saga forbid simple synchronous action dispatch free perform simple datum loading call setstate thunk simple require boilerplate saga aware pro con approach mix make sense redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary simple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code late anwer dispatch add item imperative dispatch action aim effect store expect action declarative embrace philosophy event source dispatch action trigger application dispatch event happen application dispatch event sufficient state application change fact redux store react event optional implementation redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser load code event source dispatch event saga practice app link user profile idiomatic handle middleware coderedux thunk code class lang js prettyprint override code lt div onclick dispatch action loaduserprofile robert lt div function loaduserprofile return dispatch fetch http datum json datum dispatch type user profile load datum err dispatch type user profile load fail err code coderedux saga code class lang js prettyprint override code lt div onclick dispatch type user click payload robert lt div function yield takelat user click fetchus function fetchus action const userprofile yield fetch http datum action payload yield type user profile load userprofile catch err yield type user profile load fail err code prepthis saga translate pblockquote pevery time username click fetch user profile dispatch event load profile blockquotepas advantage coderedux saga code ppthe usage codetakelat code permit express interested datum username click handle concurrency problem case user click fast lot username kind stuff hard thunk codetakeevery code behavior ppyou action creator pure note actioncreator saga codeput code component codedispatch code add action validation assertion flow typescript future ppyour code testable effect declarative ppyou anymore trigger rpc call codeaction loaduser code dispatch happen strongevent strong tense action anymore mean create decouple href https github erikra duck modular redux noreferrer duck href http martinfowler bliki boundedcontext html noreferrer bound context saga act couple point modular component ppthis mean view easy manage anymore translation layer happen happen effect ppfor imagine infinite scroll view codecontainer scroll code lead codenext page load code responsibility scrollable container decide load page aware complicate stuff page load successfully page load item leave load maximum reusability scrollable container scroll loading page business effect scroll ppsome argue generator inherently hide state redux store local variable start orchestrate complex thing thunk start timer problem codeselect code effect permit state redux store ppsagas time travel enable complex flow log dev tool work simple async flow log implement href https stack imgur png noreferrer img src https stack imgur png alt saga flow log replace redux thunk backend distribute system event source ppit common misconception saga replace redux thunk testability implementation redux saga declarative effect thunk testability saga pattern implement imperative declarative code ppin place saga piece software permit coordinate long run transaction eventual consistency transaction bound context domain drive design jargon ppto simplify frontend world imagine button click effect couple widget dispatch action target dispatch button click saga listen button click update dispache event aware ppthis add level indirection unnecessary simple app make easy scale complex application publish npm repository share global registry action widget bound context live separately consistent reuse app saga couple point widget coordinate meaningful business ppsome nice article structure redux app redux saga decouple reason pulli href http jaysoo ca organize redux application noreferrer http jaysoo ca organize redux application lili href http marmelab blog react directory structure html noreferrer http marmelab blog react directory structure html lili href https github slorber scalable frontend redux noreferrer https github slorber scalable frontend redux li concrete usecase notification component trigger display app notification component highly couple notification business rule notification display time notification queue second display time ppi jsx component decide notification hide ability request notification leave complex rule saga kind stuff hard implement thunk promise href https stack imgur png noreferrer img src https stack imgur png alt notification ppi href https stackoverflow saga call saga term saga backend world initially introduce yassine author redux saga term href https github paldepind functional frontend architecture issue issuecomment noreferrer long discussion ppinitially term introduce href http cs cornell andru read saga pdf noreferrer paper saga pattern suppose handle eventual consistency distribute transaction usage extend broad definition backend developer cover process manager pattern original saga pattern specialize form process manager pptoday term saga confuse thing redux saga handle distribute transaction coordinate action app coderedux saga code call coderedux process manager code ppsee pulli href http survivejs blog redux saga interview noreferrer interview yassine redux saga history lili href http kellabyte clarify saga pattern noreferrer kella byte claryfe saga pattern lili href https msdn microsoft library aspx noreferrer microsoft cqrs journey saga saga lili href https medium agree saga confusion noreferrer medium response yassine li idea generator interested saga pattern decouple property achieve href https github redux observable redux observable noreferrer redux observable codeepic code exact pattern rxjs familiar rx feel home class lang js prettyprint override codeconst action action oftype user click switchmap action observable ajax http datum action payload map userprofile type user profile load userprofile catch err observable type user profile load fail err code redux saga resource href https stackoverflow question pro con redux saga generator redux thunk async redux saga redux thunk async await lili href http jaysoo ca manage process redux saga noreferrer manage process redux saga lili href https riad blog redux nowadays action creator saga noreferrer actionscreator saga lili href http codepen crocodillon pen pgarwb editor noreferrer snake game implement redux saga li advise overuse redux saga sake testable api call worth lilidon remove thunk project simple case lilidon hesitate dispatch thunk codeyield someactionthunk code make sense li frighten redux saga redux observable decouple pattern check href https github slorber redux dispatch subscribe noreferrer redux dispatch subscribe permit listen dispatch trigger dispatch listener class lang js prettyprint override codeconst unsubscribe store action action type ping store dispatch type pong code discuss concrete usecase paradigm globally imperative paradigms make sense concrete usecase disagree fp declarative effect approach paradigm explain fp paradigm saga leverage testability imperative paradigm implement saga pattern imperative logic redux saga exist redux saga abramov answer coderedux thunk code talk bit href https github yelouafi redux saga noreferrer redux saga similar powerful declarative strongdom strong jquery imperative react declarative lili strongmonad strong imperative free declarative lili strongredux effect strong coderedux thunk code imperative coderedux saga code declarative li ulpwhen thunk hand monad promise easily execute test thunk execute mock dispatcher world interact stuff ppif mock functional programming pblockquote pseen lens effect mock flag code impure functional programmer eye proof wrong download library check iceberg intact sailing hardcore tdd java guy ask mock clojure answer sign refactor code blockquotep href http blog jenkster programming language functional html noreferrer source ppthe saga implement coderedux saga code declarative free monad react component easy test mock ppsee href http degoe net article modern fp noreferrer article pblockquote pin modern fp write program write description program introspect transform interpret blockquotep redux saga hybrid flow imperative effect declarative action event command lot confusion frontend world backend concept cqrs eventsource flux redux relate flux term action represent imperative code codeload user code event codeuser loade""",1,NULL,Why do we need middleware for async flow in Redux javascript asynchronous reactjs redux redux thunk pAccording to the docs href http redux js org docs advanced AsyncFlow html rel noreferrer Without middleware Redux store only supports synchronous data flow don understand why this is the case Why can the container component call the async API and then codedispatch code the actions ppFor example imagine simple UI field and button When user pushes the button the field gets populated with data from remote server pp href https stack imgur com GBI59 png rel noreferrer img src https stack imgur com GBI59 png alt field and button ppre codeimport as React from react import as Redux from redux import Provider connect from react redux const ActionTypes STARTED UPDATING STARTED UPDATING UPDATED UPDATED class AsyncApi static getFieldValue const promise new Promise resolve gt setTimeout gt resolve Math floor Math random 100 1000 return promise class App extends React Component render return lt div gt lt input value this props field gt lt button disabled this props isWaiting onClick this props update gt Fetch lt button gt this props isWaiting amp amp lt div gt Waiting lt div gt lt div gt App propTypes dispatch React PropTypes func field React PropTypes any isWaiting React PropTypes bool const reducer state field No data isWaiting false action gt switch action type case ActionTypes STARTED UPDATING return state isWaiting true case ActionTypes UPDATED return state isWaiting false field action payload default return state const store Redux createStore reducer const ConnectedApp connect state gt return state dispatch gt return update gt dispatch type ActionTypes STARTED UPDATING AsyncApi getFieldValue then result gt dispatch type ActionTypes UPDATED payload result App export default class extends React Component render return lt Provider store store gt lt ConnectedApp gt lt Provider gt code prepWhen the exported component is rendered can click the button and the input is updated correctly ppNote the codeupdate code function in the codeconnect code call It dispatches an action that tells the App that it is updating and then performs an async call After the call finishes the provided value is dispatched as payload of another action ppWhat is wrong with this approach Why would want to use Redux Thunk or Redux Promise as the documentation suggests pp strongEDIT strong searched the Redux repo for clues and found that Action Creators were required to be pure functions in the past For example href https github com reactjs redux issues 533 rel noreferrer here user trying to provide better explanation for async data flow pblockquote pThe action creator itself is still pure function but the thunk function it returns doesn need to be and it can do our async calls blockquotep href https github com reactjs redux issues 1088 rel noreferrer Action creators are no longer required to be pure So thunk promise middleware was definitely required in the past but it seems that this is no longer the case h1You don h1h1But you should use redux saga h1pDan Abramov answer is right about coderedux thunk code but will talk bit more about href https github com yelouafi redux saga rel noreferrer redux saga that is quite similar but more powerful ph1Imperative VS declarative h1ulli strongDOM strong jQuery is imperative React is declarative lili strongMonads strong IO is imperative Free is declarative lili strongRedux effects strong coderedux thunk code is imperative coderedux saga code is declarative li ulpWhen you have thunk in yours hands like an IO monad or promise you can easily know what it will do once you execute The only way to test thunk is to execute it and mock the dispatcher or the whole outside world if it interacts with more stuff ppIf you are using mocks then you are not doing functional programming pblockquote pSeen through the lens of side effects mocks are flag that your code is impure and in the functional programmer eye proof that something is wrong Instead of downloading library to help us check the iceberg is intact we should be sailing around it hardcore TDD Java guy once asked me how you do mocking in Clojure The answer is we usually don We usually see it as sign we need to refactor our code blockquotep href http blog jenkster com 2015 12 which programming languages are functional html rel noreferrer Source ppThe sagas as they got implemented in coderedux saga code are declarative and like the Free monad or React components they are much easier to test without any mock ppSee also this href http degoes net articles modern fp rel noreferrer article pblockquote pin modern FP we shouldn’t write programs we should write descriptions of programs which we can then introspect transform and interpret at will blockquotep Actually Redux saga is like hybrid the flow is imperative but the effects are declarative ph1Confusion actions events commands h1pThere is lot of confusion in the frontend world on how some backend concepts like CQRS EventSourcing and Flux Redux may be related mostly because in Flux we use the term action which can sometimes represent both imperative code codeLOAD USER code and events codeUSER LOADED code believe that like event sourcing you should only dispatch events ph1Using sagas in practice h1pImagine an app with link to user profile The idiomatic way to handle this with both middlewares would be ph2 coderedux thunk code h2pre class lang js prettyprint override code lt div onClick gt dispatch actions loadUserProfile 123 gt Robert lt div gt function loadUserProfile userId return dispatch gt fetch http data com userId then res gt res json then data gt dispatch type USER PROFILE LOADED data err gt dispatch type USER PROFILE LOAD FAILED err code preh2 coderedux saga code h2pre class lang js prettyprint override code lt div onClick gt dispatch type USER NAME CLICKED payload 123 gt Robert lt div gt function loadUserProfileOnNameClick yield takeLatest USER NAME CLICKED fetchUser function fetchUser action try const userProfile yield fetch http data com action payload userId yield put type USER PROFILE LOADED userProfile catch err yield put type USER PROFILE LOAD FAILED err code prepThis saga translates to pblockquote pevery time username gets clicked fetch the user profile and then dispatch an event with the loaded profile blockquotepAs you can see there are some advantages of coderedux saga code ppThe usage of codetakeLatest code permits to express that you are only interested to get the data of the last username clicked handle concurrency problems in case the user click very fast on lot of usernames This kind of stuff is hard with thunks You could have used codetakeEvery code if you don want this behavior ppYou keep action creators pure Note it still useful to keep actionCreators in sagas codeput code and components codedispatch code as it might help you to add action validation assertions flow typescript in the future ppYour code becomes much more testable as the effects are declarative ppYou don need anymore to trigger rpc like calls like codeactions loadUser code Your UI just needs to dispatch what HAS HAPPENED We only fire strongevents strong always in the past tense and not actions anymore This means that you can create decoupled href https github com erikras ducks modular redux rel noreferrer ducks or href http martinfowler com bliki BoundedContext html rel noreferrer Bounded Contexts and that the saga can act as the coupling point between these modular components ppThis means that your views are more easy to manage because they don need anymore to contain that translation layer between what has happened and what should happen as an effect ppFor example imagine an infinite scroll view codeCONTAINER SCROLLED code can lead to codeNEXT PAGE LOADED code but is it really the responsibility of the scrollable container to decide whether or not we should load another page Then he has to be aware of more complicated stuff like whether or not the last page was loaded successfully or if there is already page that tries to load or if there is no more items left to load don think so for maximum reusability the scrollable container should just describe that it has been scrolled The loading of page is business effect of that scroll ppSome might argue that generators can inherently hide state outside of redux store with local variables but if you start to orchestrate complex things inside thunks by starting timers etc you would have the same problem anyway And there codeselect code effect that now permits to get some state from your Redux store ppSagas can be time traveled and also enables complex flow logging and dev tools that are currently being worked on Here is some simple async flow logging that is already implemented pp href https stack imgur com F9Jsh png rel noreferrer img src https stack imgur com F9Jsh png alt saga flow logging ph1Decoupling h1pSagas are not only replacing redux thunks They come from backend distributed systems event sourcing ppIt is very common misconception that sagas are just here to replace your redux thunks with better testability Actually this is just an implementation detail of redux saga Using declarative effects is better than thunks for testability but the saga pattern can be implemented on top of imperative or declarative code ppIn the first place the saga is piece of software that permits to coordinate long running transactions eventual consistency and transactions across different bounded contexts domain driven design jargon ppTo simplify this for frontend world imagine there is widget1 and widget2 When some button on widget1 is clicked then it should have an effect on widget2 Instead of coupling the widgets together ie widget1 dispatch an action that targets widget2 widget1 only dispatch that its button was clicked Then the saga listen for this button click and then update widget2 by dispaching new event that widget2 is aware of ppThis adds level of indirection that is unnecessary for simple apps but make it more easy to scale complex applications You can now publish widget1 and widget2 to different npm repositories so that they never have to know about each others without having them to share global registry of actions The widgets are now bounded contexts that can live separately They do not need each others to be consistent and can be reused in other apps as well The saga is the coupling point between the two widgets that coordinate them in meaningful way for your business ppSome nice articles on how to structure your Redux app on which you can use Redux saga for decoupling reasons pulli href http jaysoo ca 2016 02 28 organizing redux application rel noreferrer http jaysoo ca 2016 02 28 organizing redux application lili href http marmelab com blog 2015 12 17 react directory structure html rel noreferrer http marmelab com blog 2015 12 17 react directory structure html lili href https github com slorber scalable frontend with elm or redux rel noreferrer https github com slorber scalable frontend with elm or redux li ulh1A concrete usecase notification system h1pI want my components to be able to trigger the display of in app notifications But don want my components to be highly coupled to the notification system that has its own business rules max notifications displayed at the same time notification queueing seconds display time etc ppI don want my JSX components to decide when notification will show hide just give it the ability to request notification and leave the complex rules inside the saga This kind of stuff is quite hard to implement with thunks or promises pp href https stack imgur com XQ8lx png rel noreferrer img src https stack imgur com XQ8lx png alt notifications ppI ve described href https stackoverflow com 38574266 82609 here how this can be done with saga ph1Why is it called Saga h1pThe term saga comes from the backend world initially introduced Yassine the author of Redux saga to that term in href https github com paldepind functional frontend architecture issues 20 issuecomment 158694062 rel noreferrer long discussion ppInitially that term was introduced with href http www cs cornell edu andru cs711 2002fa reading sagas pdf rel noreferrer paper the saga pattern was supposed to be used to handle eventual consistency in distributed transactions but its usage has been extended to broader definition by backend developers so that it now also covers the process manager pattern somehow the original saga pattern is specialized form of process manager ppToday the term saga is confusing as it can describe different things As it is used in redux saga it does not describe way to handle distributed transactions but rather way to coordinate actions in your app coderedux saga code could also have been called coderedux process manager code ppSee also pulli href http survivejs com blog redux saga interview rel noreferrer Interview of Yassine about Redux saga history lili href http kellabyte com 2012 05 30 clarifying the saga pattern rel noreferrer Kella Byte Claryfing the Saga pattern lili href https msdn microsoft com en us library jj591569 aspx rel noreferrer Microsoft CQRS Journey Saga on Sagas lili href https medium com agree for the saga confusion 3fb2fc375322 dxe1prl4y rel noreferrer Medium response of Yassine li ulh1Alternatives h1pIf you don like the idea of using generators but you are interested by the saga pattern and its decoupling properties you can also achieve the same with href https github com redux observable redux observable rel noreferrer redux observable which uses the name codeepic code to describe the exact same pattern but with RxJS If you re already familiar with Rx you ll feel right at home ppre class lang js prettyprint override codeconst loadUserProfileOnNameClickEpic action gt action ofType USER NAME CLICKED switchMap action gt Observable ajax http data com action payload userId map userProfile gt type USER PROFILE LOADED userProfile catch err gt Observable of type USER PROFILE LOAD FAILED err code preh1Some redux saga useful resources h1ulli href https stackoverflow com questions 34930735 pros cons of using redux saga with es6 generators vs redux thunk with es7 async 34933395 Redux saga vs Redux thunk with async await lili href http jaysoo ca 2016 01 03 managing processes in redux using sagas rel noreferrer Managing processes in Redux Saga lili href https riad blog 2015 12 28 redux nowadays from actions creators to sagas rel noreferrer From actionsCreators to Sagas lili href http codepen io CrocoDillon pen pgaRwb editors 0010 rel noreferrer Snake game implemented with Redux saga li ulh12017 advises h1ulliDon overuse Redux saga just for the sake of using it Testable API calls only are not worth it liliDon remove thunks from your project for most simple cases liliDon hesitate to dispatch thunks in codeyield put someActionThunk code if it makes sense li ulpIf you are frightened of using Redux saga or Redux observable but just need the decoupling pattern check href https github com slorber redux dispatch subscribe rel noreferrer redux dispatch subscribe it permits to listen to dispatches and trigger new dispatches in listener ppre class lang js prettyprint override codeconst unsubscribe store addDispatchListener action gt if action type ping store dispatch type pong code pre,,,,, 46368,176798,1051713,Notable Question Guru Custodian Yearling Good Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 46369,138233,792345,NULL,NULL,NULL,0,NULL,NULL 46370,771573,965342,Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 46371,308909,8844,Yearling Census Yearling Documentation User Famous Question Yearling,NULL,NULL,0,NULL,NULL 46372,623480,1290071,NULL,NULL,NULL,0,NULL,NULL 46373,124814,198573,NULL,NULL,NULL,0,NULL,NULL 46374,479513,709173,Announcer Yearling Documentation User,NULL,NULL,0,NULL,NULL 46375,330863,439925,NULL,NULL,NULL,0,NULL,NULL 46376,36763,445322,Yearling Popular Question Notable Question Notable Question Popular Question Nice Question Yearling Documentation User Census Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 46377,215687,576516,Notable Question,NULL,NULL,0,NULL,NULL 46378,158242,127584,NULL,NULL,NULL,0,NULL,NULL 46379,1493882,788127,NULL,NULL,NULL,0,NULL,NULL 46380,75211,1179057,NULL,NULL,NULL,0,NULL,NULL 46381,271095,941854,Student,NULL,NULL,0,NULL,NULL 46382,5060299,622185,NULL,NULL,NULL,0,NULL,NULL 46383,110831,13179,Yearling Necromancer Announcer Popular Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 46384,935412,483763,NULL,NULL,NULL,0,NULL,NULL 46385,63233,1117993,NULL,NULL,NULL,0,NULL,NULL 46386,519706,68697,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 46387,489851,1221275,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 46388,1154216,820008,NULL,NULL,NULL,0,NULL,NULL 46389,313012,488681,Yearling Great Answer,NULL,NULL,0,NULL,NULL 46390,7507455,488681,Yearling Great Answer,NULL,NULL,0,NULL,NULL 46391,449242,780119,NULL,NULL,NULL,0,NULL,NULL 46392,190031,681359,Notable Question Nice Answer Enlightened Excavator Yearling Custodian Critic Popular Question,NULL,NULL,0,NULL,NULL 46393,144667,66499,NULL,NULL,NULL,0,NULL,NULL 46394,400346,709271,Yearling Favorite Question Nice Answer Great Question Yearling Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 46395,2612,431041,Good Answer Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 46396,3522273,1234856,NULL,NULL,NULL,0,NULL,NULL 46397,1329688,353490,Informed,NULL,NULL,0,NULL,NULL 46398,1324456,1111295,Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 46399,1142000,1195218,Supporter,NULL,NULL,0,NULL,NULL 46400,1901367,808817,NULL,NULL,NULL,0,NULL,NULL 46401,263693,1116824,Enthusiast Scholar Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46402,64459,106040,NULL,NULL,NULL,0,NULL,NULL 46403,410338,874686,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 46404,884957,1110630,Notable Question,NULL,NULL,0,NULL,NULL 46405,220830,995958,Announcer Popular Question mysql Famous Question Favorite Question Popular Question Nice Answer Popular Question php Investor Nice Answer Nice Answer Enlightened Altruist Notable Question Yearling Caucus Nice Question Notable Question Famous Question Popular Question Good Answer Famous Question Yearling Necromancer Great Question Census Nice Answer Inquisitive Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46406,219829,842559,NULL,NULL,NULL,0,NULL,NULL 46407,80759,85159,Caucus,NULL,NULL,0,NULL,NULL 46408,280708,870051,NULL,NULL,NULL,0,NULL,NULL 46409,593344,1017705,Notable Question,NULL,NULL,0,NULL,NULL 46410,35978,136385,Notable Question Critic Caucus,NULL,NULL,0,NULL,NULL 46411,46004,1133475,NULL,NULL,NULL,0,NULL,NULL 46412,86818,847387,NULL,NULL,NULL,0,NULL,NULL 46413,185732,317756,Yearling,NULL,NULL,0,NULL,NULL 46414,1132334,1267317,NULL,NULL,NULL,0,NULL,NULL 46415,63668,548356,Commentator,NULL,NULL,0,NULL,NULL 46416,448024,761178,NULL,NULL,NULL,0,NULL,NULL 46417,357571,308208,NULL,NULL,NULL,0,NULL,NULL 46418,397929,1236038,Custodian Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 46419,1048794,924543,NULL,NULL,NULL,0,NULL,NULL 46420,1567584,1352448,Notable Question Editor,NULL,NULL,0,NULL,NULL 46421,515394,809029,NULL,NULL,NULL,0,NULL,NULL 46422,46085,1098223,NULL,NULL,NULL,0,NULL,NULL 46423,1184017,526649,Popular Question Teacher Yearling Caucus,NULL,NULL,0,NULL,NULL 46424,200554,3534,c Nice Answer Good Answer Taxonomist Yearling Caucus Good Answer Informed Great Question Good Answer Yearling Nice Answer Enlightened Custodian Guru Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46425,141347,804603,NULL,NULL,NULL,0,NULL,NULL 46426,1669988,760691,Teacher Famous Question,NULL,NULL,0,NULL,NULL 46427,20317,824269,NULL,NULL,NULL,0,NULL,NULL 46428,1076490,746620,Scholar Editor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46429,357409,826907,Enthusiast Popular Question Editor Critic Yearling Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46430,1372695,1373727,NULL,NULL,NULL,0,NULL,NULL 46431,6908877,1123640,NULL,NULL,NULL,0,NULL,NULL 46432,2241532,605380,Notable Question,NULL,NULL,0,NULL,NULL 46433,808347,1356647,Notable Question Supporter Informed,NULL,NULL,0,NULL,NULL 46434,489839,774228,Supporter Teacher Editor Custodian Popular Question Critic Notable Question Curious Enthusiast,NULL,NULL,0,NULL,NULL 46435,488207,1113071,NULL,NULL,NULL,0,NULL,NULL 46436,282721,851857,NULL,NULL,NULL,0,NULL,NULL 46437,141887,330965,NULL,NULL,NULL,0,NULL,NULL 46438,210625,407284,Nice Answer Enlightened Notable Question Popular Question Notable Question Yearling Nice Answer Enlightened Notable Question Caucus Yearling Popular Question Popular Question Caucus Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 46439,1150357,1083590,NULL,NULL,NULL,0,NULL,NULL 46440,1360540,1154677,Informed,NULL,NULL,0,NULL,NULL 46441,693629,943286,Yearling Guru,NULL,NULL,0,NULL,NULL 46442,1568747,1363055,NULL,NULL,NULL,0,NULL,NULL 46443,178648,626195,Yearling Editor Citizen Patrol Critic Informed Necromancer Yearling Tenacious Caucus Yearling,NULL,NULL,0,NULL,NULL 46444,532524,627482,NULL,NULL,NULL,0,NULL,NULL 46445,182383,742156,Notable Question Yearling Nice Answer Nice Answer Revival Notable Question Revival jquery Guru Notable Question Popular Question Notable Question Yearling Announcer Nice Answer Good Answer Nice Question Announcer Great Question Great Answer Nice Answer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 46446,173271,898808,NULL,NULL,NULL,0,NULL,NULL 46447,69952,606794,Yearling Notable Question Nice Answer Enlightened Guru Yearling Popular Question Popular Question Great Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 46448,17032,6056,Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46449,624519,838907,NULL,NULL,NULL,0,NULL,NULL 46450,360798,1035215,NULL,NULL,NULL,0,NULL,NULL 46451,291647,1501164,Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 46452,209336,914676,Nice Answer,NULL,NULL,0,NULL,NULL 46453,505808,103205,Necromancer,NULL,NULL,0,NULL,NULL 46454,102779,1062679,Popular Question Explainer Notable Question Popular Question Popular Question Nice Answer Great Answer Popular Question Yearling Notable Question Notable Question Necromancer Good Question Popular Question Notable Question Popular Question Notable Question Nice Answer Nice Question Popular Question Yearling Popular Question Popular Question Necromancer Popular Question Popular Question Announcer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46455,274275,949557,NULL,NULL,NULL,0,NULL,NULL 46456,35153,773012,NULL,NULL,NULL,0,NULL,NULL 46457,12630,160,Good Question,NULL,NULL,0,NULL,NULL 46458,61346,1473151,NULL,NULL,NULL,0,NULL,NULL 46459,168383,684685,Editor Excavator,NULL,NULL,0,NULL,NULL 46460,242735,657607,NULL,NULL,NULL,0,NULL,NULL 46461,9352062,289204,Nice Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46462,150225,249334,NULL,NULL,NULL,0,NULL,NULL 46463,193936,277034,Supporter,NULL,NULL,0,NULL,NULL 46464,455030,1134277,Good Answer Yearling Famous Question Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 46465,341798,853006,Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 46466,20094,195571,Nice Answer Yearling Popular Question Yearling Caucus Yearling Necromancer Civic Duty Caucus,NULL,NULL,0,NULL,NULL 46467,119405,1249741,NULL,NULL,NULL,0,NULL,NULL 46468,216722,1100304,NULL,NULL,NULL,0,NULL,NULL 46469,737026,685570,Famous Question,NULL,NULL,0,NULL,NULL 46470,1150091,1550534,Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46471,120814,437207,NULL,NULL,NULL,0,NULL,NULL 46472,208339,559844,NULL,NULL,NULL,0,NULL,NULL 46473,81626,176772,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46474,76549,233427,Notable Question Notable Question Notable Question Popular Question Favorite Question Yearling Notable Question Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46475,280856,208271,Notable Question Nice Question Inquisitive Excavator Nice Answer Notable Question Popular Question Informed Revival Yearling Caucus Famous Question Nice Question Disciplined Nice Answer Notable Question Notable Question Popular Question Necromancer Famous Question Good Answer Caucus Famous Question Good Question Documentation User Popular Question Yearling Popular Question Popular Question Famous Question Necromancer Nice Question Yearling Custodian,NULL,pre codefunction startsWith haystack needle length strlen needle return substr haystack length needle function endsWith haystack needle length strlen needle if length return true return substr haystack length needle code prepUse this if you don want to use regex lines of code suggestions of making it better 500 lines of code and everyone goes meh looks good to me pSince PHP it possible to do exactly that ppre codegetSomeArray code prepReference href https secure php net manual en language types array php example 62 rel noreferrer https secure php net manual en language types array php example 62 ppOn PHP or earlier you ll need to use temporary variable And then you try to get the first element of an array generated by array filter and start crying,0,NULL,NULL 46476,285167,754156,Necromancer,NULL,NULL,0,NULL,NULL 46477,193053,539597,Autobiographer,NULL,NULL,0,NULL,NULL 46478,74831,721242,Enthusiast Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46479,47,375523,NULL,NULL,NULL,0,NULL,NULL 46480,134261,1335377,NULL,NULL,NULL,0,NULL,NULL 46481,438714,1273030,Notable Question,NULL,NULL,0,NULL,NULL 46482,164004,482974,NULL,NULL,NULL,0,NULL,NULL 46483,1505606,1133473,NULL,NULL,NULL,0,NULL,NULL 46484,1467512,705744,Editor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46485,196584,1102373,NULL,NULL,NULL,0,NULL,NULL 46486,764718,17023,Caucus Notable Question,NULL,NULL,0,NULL,NULL 46487,414896,525413,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 46488,180820,703636,Popular Question Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 46489,890379,854881,NULL,NULL,NULL,0,NULL,NULL 46490,137673,1104657,Informed,NULL,NULL,0,NULL,NULL 46491,183787,1099252,NULL,NULL,NULL,0,NULL,NULL 46492,327576,1268980,NULL,NULL,NULL,0,NULL,NULL 46493,183971,1027459,Famous Question Nice Question Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 46494,64882,139281,NULL,NULL,NULL,0,NULL,NULL 46495,142728,983746,Yearling,NULL,NULL,0,NULL,NULL 46496,24143,983746,Yearling,NULL,NULL,0,NULL,NULL 46497,998676,1143704,Autobiographer Nice Answer Yearling Student Caucus,NULL,NULL,0,NULL,NULL 46498,51497,22063,Yearling Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 46499,2486,327470,Nice Answer,NULL,NULL,0,NULL,NULL 46500,240760,688319,NULL,NULL,NULL,0,NULL,NULL 46501,281522,387405,Notable Question Notable Question Famous Question Famous Question Popular Question Famous Question Famous Question Popular Question Good Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Famous Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Nice Question Good Question Good Question Notable Question Yearling Nice Answer Famous Question Popular Question Famous Question Good Question Famous Question Popular Question Yearling Notable Question Popular Question Good Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 46502,414859,964872,NULL,NULL,NULL,0,NULL,NULL 46503,787069,1557094,NULL,NULL,NULL,0,NULL,NULL 46504,381874,1206281,NULL,NULL,NULL,0,NULL,NULL 46505,769418,1106777,NULL,NULL,NULL,0,NULL,NULL 46506,89947,453053,NULL,NULL,NULL,0,NULL,NULL 46507,127026,1006968,NULL,NULL,NULL,0,NULL,NULL 46508,7083972,991177,NULL,NULL,NULL,0,NULL,NULL 46509,75087,977996,NULL,NULL,NULL,0,NULL,NULL 46510,3207851,70919,Popular Question,NULL,NULL,0,NULL,NULL 46511,137225,70919,Popular Question,NULL,NULL,0,NULL,NULL 46512,601446,1151319,Autobiographer,NULL,NULL,0,NULL,NULL 46513,405016,1513828,NULL,NULL,NULL,0,NULL,NULL 46514,233331,1022439,NULL,NULL,NULL,0,NULL,NULL 46515,449332,985375,Curious Caucus Constituent Yearling Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 46516,90785,457273,NULL,NULL,NULL,0,NULL,NULL 46517,177003,551226,NULL,NULL,NULL,0,NULL,NULL 46518,146,147204,Nice Answer,NULL,NULL,0,NULL,NULL 46519,45857,1218879,NULL,NULL,NULL,0,NULL,NULL 46520,148268,1541457,NULL,NULL,NULL,0,NULL,NULL 46521,26529,45598,NULL,NULL,NULL,0,NULL,NULL 46522,87834,4118,Good Question Yearling Popular Question Favorite Question Yearling Great Question Notable Question Popular Question Popular Question Yearling Census Notable Question Self-Learner Yearling Notable Question Nice Question Nice Answer Enlightened Yearling,NULL,pre codefor in seq END do echo done code prepedit prefer codeseq code over the other methods because can actually remember it As mentioned this can cause memory issues if END is large,0,NULL,NULL 46523,94849,1534449,NULL,NULL,NULL,0,NULL,NULL 46524,159155,194564,Yearling Critic,NULL,NULL,0,NULL,NULL 46525,51552,752849,NULL,NULL,NULL,0,NULL,NULL 46526,281409,479931,Necromancer Nice Answer Necromancer Citizen Patrol Yearling Good Answer Necromancer Announcer Yearling Nice Answer Nice Answer Documentation User Yearling Popular Question Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 46527,151910,480975,Nice Answer Nice Answer Good Answer Nice Answer Revival Necromancer Yearling Revival scala Nice Answer Necromancer Good Answer sbt Necromancer Nice Answer Yearling java Nice Answer Nice Answer Nice Answer Enlightened Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 46528,15690,563414,NULL,NULL,NULL,0,NULL,NULL 46529,207219,174692,NULL,NULL,NULL,0,NULL,NULL 46530,159760,972271,NULL,NULL,NULL,0,NULL,NULL 46531,61553,916978,NULL,NULL,NULL,0,NULL,NULL 46532,180743,1296866,NULL,NULL,NULL,0,NULL,NULL 46533,82898,582193,NULL,NULL,NULL,0,NULL,NULL 46534,1289676,613642,NULL,NULL,NULL,0,NULL,NULL 46535,289441,1018087,NULL,NULL,NULL,0,NULL,NULL 46536,43029,339764,NULL,NULL,NULL,0,NULL,NULL 46537,1267947,1291012,NULL,NULL,NULL,0,NULL,NULL 46538,356566,437849,NULL,NULL,NULL,0,NULL,NULL 46539,234807,598604,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46540,113275,443811,Nice Answer Enlightened Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 46541,7635991,96754,NULL,NULL,,0,, 46542,137997,867402,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46543,201197,791001,NULL,NULL,NULL,0,NULL,NULL 46544,674832,686871,Great Answer Yearling Necromancer Custodian Custodian Informed Notable Question Yearling Nice Answer Revival Civic Duty Caucus Constituent Tumbleweed Census Necromancer Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46545,2704,1134814,NULL,NULL,NULL,0,NULL,NULL 46546,1024897,1289445,NULL,NULL,NULL,0,NULL,NULL 46547,1070507,683241,NULL,NULL,NULL,0,NULL,NULL 46548,1440917,676575,Critic Enthusiast Yearling Student Scholar Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 46549,3925,1152745,NULL,NULL,NULL,0,NULL,NULL 46550,2087295,1152745,NULL,NULL,NULL,0,NULL,NULL 46551,106319,695999,NULL,NULL,NULL,0,NULL,NULL 46552,115875,33796,Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Populist Yearling Caucus Good Answer Nice Answer Enlightened Good Answer Taxonomist Guru Enlightened Announcer Announcer Good Answer typeclass Nice Answer Nice Answer Caucus Nice Answer Enlightened Good Question Good Answer Necromancer Fanatic Good Answer Nice Answer Nice Answer Enlightened Yearling Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Guru Nice Question Nice Answer Enlightened Yearling Nice Question,NULL,pFor your example codeExpr gt String code is strictly better type than codeExpr Int gt String code anywhere that an codeExpr Int gt String code could be used an codeExpr gt String code will certainly do But sometimes there emisn em weakest or strongest type ppLet simplify your example even further ppre codedata SoSimple where SoSimple SoSimple Inteval SoSimple Int code prepNow here are two perfectly good types to give codeeval code ppre codeeval SoSimple gt aeval SoSimple gt Int code prepThese types aren interchangeable Each is useful in different situations Compare ppre code LANGUAGE EmptyCase LANGUAGE GADTs import Data Voiddata SomeSimple where SomeSimple SoSimple gt SomeSimple typechecks if eval SoSimple gt Int but not if eval SoSimple gt aevalSome SomeSimple gt IntevalSome SomeSimple eval typechecks if eval SoSimple gt but not if eval SoSimple gt IntevalNone SoSimple Void gt VoidevalNone eval code prepSo neither of these is more general than the other and it turns out that no type is more general than both while still letting codeeval code itself typecheck Since there is no most general type for codeeval code it makes sense to refuse to pick type and force the user to decide which of the many possible types they want this time around Your answers are on point lately,0,NULL,NULL 46553,30830,1184032,Yearling Popular Question Yearling Excavator Guru javascript Popular Question Documentation User Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 46554,169141,957549,Yearling Popular Question Nice Question Informed,NULL,NULL,0,NULL,NULL 46555,4003824,957549,Yearling Popular Question Nice Question Informed,NULL,NULL,0,NULL,NULL 46556,126837,486895,NULL,NULL,NULL,0,NULL,NULL 46557,552684,847552,Editor Teacher Supporter Informed Excavator Autobiographer Commentator Yearling Yearling Mortarboard Yearling Yearling Tenacious Yearling Caucus Necromancer Nice Answer Yearling Necromancer Caucus Nice Answer Custodian Necromancer Custodian python Necromancer Good Answer Nice Answer Caucus Good Answer Announcer Necromancer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 46558,123992,373469,Good Answer Peer Pressure Yearling Revival Custodian Yearling Revival Excavator Caucus Popular Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 46559,15742,74957,NULL,NULL,NULL,0,NULL,NULL 46560,175498,1013096,Informed Editor Supporter Teacher Student Commentator Tumbleweed Critic Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46561,29166,6436,Good Answer Yearling Nice Answer Enlightened Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 46562,12441,1133356,NULL,NULL,NULL,0,NULL,NULL 46563,440215,1148800,Editor Teacher Popular Question,NULL,NULL,0,NULL,NULL 46564,20744,950942,Informed Autobiographer,NULL,NULL,0,NULL,NULL 46565,143794,1089530,NULL,NULL,NULL,0,NULL,NULL 46566,631910,102017,Popular Question Notable Question Popular Question Good Question Nice Question Popular Question Famous Question Popular Question Notable Question Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 46567,60825,85292,Nice Answer Custodian Yearling Census Popular Question,NULL,NULL,0,NULL,NULL 46568,184235,235973,Notable Question,NULL,NULL,0,NULL,NULL 46569,203216,1477638,Revival Revival Necromancer,NULL,NULL,0,NULL,NULL 46570,181089,62202,Yearling Nice Answer php Famous Question Popular Question Notable Question Nice Answer Pundit Yearling Nice Question Famous Question Yearling Necromancer Custodian,NULL,pThis answer might be bit late but take look at href http jasonwilder com blog 2014 03 25 automated nginx reverse proxy for docker Jason Wilder nginx proxy Docker image When running Docker container of this image you get nginx server set up as reverse proxy for your other containers with no config to maintain ppJust run your other containers with the codeVIRTUAL HOST code environment variable and nginx proxy will discover their ip port and update the nginx config for you ppLet say your DNS is set up so that code test local code maps to the IP address of your Docker host then just start the following containers to get quick demo running ppre class lang sh prettyprint override code start the reverse proxydocker run 80 80 var run docker sock tmp docker sock jwilder nginx proxy start first container for http tutum test localdocker run VIRTUAL HOST tutum test local tutum hello world start second container for http deis test localdocker run VIRTUAL HOST deis test local deis helloworld code pre if this is what ve been spending days looking for thank you thank you thank you,0,NULL,NULL 46571,189244,480852,Civic Duty Informed Yearling Revival Necromancer Great Question Famous Question Yearling Necromancer Nice Answer Nice Answer Popular Question Notable Question Yearling Popular Question Famous Question Populist Good Answer Nice Answer Yearling Revival,NULL,vagrant up failed dev vboxnetctl no such file or directory virtualbox vagrant pCan be useful found this error The common solution is reinstall virtualbox but there are better way pp strongSolution strong ppre codesudo Library StartupItems VirtualBox VirtualBox restart code prepor ppre codesudo Library StartupItems VirtualBox VirtualBox start code prep strongVirtualBox strong ppOn recents versions the file Library StartupItems VirtualBox VirtualBox don exists so you need to use the command below ppre codesudo launchctl load Library LaunchDaemons org virtualbox startup plist code prehrp strongError strong ppPrint href http pr 1Bvi rel noreferrer http pr 1Bvi pblockquote pThere was on error while executing codeVBoxManage code CLI used by Vagrant for controlling VirtualBox The command and stderr is shown below Command hostonlyif create pStderr Progress state NS ERROR FAILURE VBoxManage error Failed to create the host only adapter VBoxManage error VBoxNetAdpCtl Error while adding new interface failed to open dev vboxnetctl No such file or directory pVBoxManage error Details code NS ERROR FAILURE 0x80004005 component HostNetworkInterface interface IHostNetworkInterface VBoxManage error Context int handleCreate HandlerArg int int at line 68 of file VBoxManageHostonly cpp blockquotepVagrant Git issue about the error href https github com mitchellh vagrant issues 1671 issuecomment 22304107 rel noreferrer https github com mitchellh vagrant issues 1671 issuecomment 22304107 hello this was on osx,0,NULL,NULL 46572,2486438,353012,NULL,NULL,NULL,0,NULL,NULL 46573,28194,107268,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46574,537760,454164,NULL,NULL,NULL,0,NULL,NULL 46575,602445,66731,Popular Question Popular Question Necromancer Notable Question Yearling Inquisitive Nice Answer Nice Answer Famous Question Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46576,402848,1057651,Nice Question,NULL,NULL,0,NULL,NULL 46577,161170,260370,NULL,NULL,NULL,0,NULL,NULL 46578,1090296,1344551,NULL,NULL,NULL,0,NULL,NULL 46579,221782,3394,Guru Stellar Question Notable Question Great Answer Yearling Nice Question Great Answer Famous Question Yearling Good Answer Good Question Popular Question Notable Question Yearling Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 46580,92,94938,NULL,NULL,NULL,0,NULL,NULL 46581,812713,158037,Nice Answer Yearling Enlightened Revival Necromancer Necromancer Yearling Custodian Caucus Custodian Nice Answer Yearling Enlightened Mortarboard Good Answer Guru Yearling Populist java Yearling Census Yearling Caucus Organizer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46582,540298,1263253,NULL,NULL,NULL,0,NULL,NULL 46583,104759,658134,NULL,NULL,NULL,0,NULL,NULL 46584,2049114,271916,NULL,NULL,NULL,0,NULL,NULL 46585,36684,1361018,NULL,NULL,NULL,0,NULL,NULL 46586,218012,1003476,Popular Question,NULL,NULL,0,NULL,NULL 46587,728366,653087,Yearling Famous Question Great Question Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 46588,2899247,1127102,NULL,NULL,NULL,0,NULL,NULL 46589,132701,1425315,NULL,NULL,NULL,0,NULL,NULL 46590,132920,231211,Good Question Necromancer Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Popular Question Yearling Nice Answer Popular Question Famous Question Popular Question Popular Question Favorite Question Stellar Question Investor Good Question Yearling Great Question Famous Question Necromancer Famous Question Notable Question Popular Question Guru,NULL,NULL,0,NULL,NULL 46591,413545,511210,NULL,NULL,NULL,0,NULL,NULL 46592,113448,377584,NULL,NULL,NULL,0,NULL,NULL 46593,22478,309527,NULL,NULL,NULL,0,NULL,NULL 46594,967667,342020,Citizen Patrol,NULL,NULL,0,NULL,NULL 46595,182064,1408650,NULL,NULL,NULL,0,NULL,NULL 46596,251294,451139,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 46597,395175,1075540,NULL,NULL,NULL,0,NULL,NULL 46598,182546,341459,Necromancer Nice Answer bash Notable Question Nice Answer Revival Yearling Great Answer Good Answer Famous Question Proofreader Documentation Pioneer Quorum Nice Question Necromancer Good Question Caucus Famous Question Popular Question Good Answer Famous Question Necromancer Nice Question Nice Answer Yearling Announcer Announcer Notable Question Famous Question Documentation User Populist Nice Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Necromancer Yearling Revival Good Question Announcer,NULL,NULL,0,NULL,NULL 46599,364795,742043,Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 46600,144952,429352,Popular Question,NULL,NULL,0,NULL,NULL 46601,12029,250434,Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 46602,439505,1499071,NULL,NULL,NULL,0,NULL,NULL 46603,92589,1350755,NULL,NULL,NULL,0,NULL,NULL 46604,1159737,1212471,Yearling Popular Question Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 46605,701650,814956,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 46606,7501379,1104791,NULL,NULL,NULL,0,NULL,NULL 46607,6551622,497450,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 46608,896958,497450,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 46609,145827,232671,Taxonomist Nice Answer Enlightened Notable Question Civic Duty neo4j-ogm spring-data-neo4j Custodian Strunk & White Caucus Yearling Popular Question Nice Answer Enlightened Good Answer Caucus Popular Question Documentation User graph-databases Yearling Nice Answer Enlightened cypher neo4j Nice Answer Enlightened Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46610,183290,1098753,NULL,NULL,NULL,0,NULL,NULL 46611,925001,883843,Commentator,NULL,NULL,0,NULL,NULL 46612,721918,1302307,NULL,NULL,NULL,0,NULL,NULL 46613,243804,325477,Popular Question Good Answer Yearling Notable Question Caucus,NULL,NULL,0,NULL,NULL 46614,480373,1287562,Editor Teacher,NULL,NULL,0,NULL,NULL 46615,207041,815693,Famous Question Yearling,NULL,NULL,0,NULL,NULL 46616,292220,1035807,Nice Answer,NULL,NULL,0,NULL,NULL 46617,900334,531230,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 46618,220485,55129,Popular Question Yearling Good Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Nice Question Nice Question Popular Question Yearling Notable Question Popular Question Good Question Famous Question Notable Question Favorite Question Popular Question Good Question Popular Question Notable Question Famous Question Notable Question Yearling Famous Question Popular Question Popular Question Great Question Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46619,447122,991419,Student Commentator,NULL,NULL,0,NULL,NULL 46620,12214,1485984,Revival Yearling Necromancer php Caucus Revival Revival Necromancer Nice Answer Yearling Caucus Custodian Notable Question Necromancer Revival Necromancer Caucus Necromancer Necromancer Yearling Necromancer Popular Question Curious,NULL,NULL,0,NULL,NULL 46621,464491,272526,NULL,NULL,NULL,0,NULL,NULL 46622,8277455,966789,Commentator Necromancer Caucus Constituent Yearling Nice Answer Critic Civic Duty Announcer Peer Pressure Revival Suffrage Vox Populi Yearling,NULL,NULL,0,NULL,NULL 46623,232249,966789,Commentator Necromancer Caucus Constituent Yearling Nice Answer Critic Civic Duty Announcer Peer Pressure Revival Suffrage Vox Populi Yearling,NULL,NULL,0,NULL,NULL 46624,8690057,966789,Commentator Necromancer Caucus Constituent Yearling Nice Answer Critic Civic Duty Announcer Peer Pressure Revival Suffrage Vox Populi Yearling,NULL,NULL,0,NULL,NULL 46625,205512,136758,Notable Question,NULL,NULL,0,NULL,NULL 46626,997325,1469538,Popular Question,NULL,NULL,0,NULL,NULL 46627,10937663,76372,NULL,NULL,NULL,0,NULL,NULL 46628,35136,76372,NULL,NULL,NULL,0,NULL,NULL 46629,1247757,1036073,NULL,NULL,NULL,0,NULL,NULL 46630,1270426,1400635,NULL,NULL,NULL,0,NULL,NULL 46631,597650,231957,Famous Question Notable Question Popular Question Popular Question Great Question Popular Question Notable Question Notable Question Good Question Popular Question Favorite Question Nice Question Popular Question Notable Question Good Question Nice Answer Nice Question Good Question Famous Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Favorite Question Famous Question Good Question Popular Question Famous Question Notable Question Famous Question Famous Question Notable Question Notable Question Great Question Famous Question Famous Question Notable Question Popular Question Good Question Yearling Notable Question Nice Question Nice Answer Enlightened Popular Question Good Question Good Question Notable Question Popular Question Benefactor Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 46632,3193411,556891,Notable Question,NULL,NULL,0,NULL,NULL 46633,112312,846248,Famous Question Custodian Notable Question Yearling Notable Question Necromancer Famous Question Notable Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 46634,26292,181804,Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46635,462672,172769,Excavator Yearling Caucus Yearling Custodian Scholar Yearling Announcer,NULL,NULL,0,NULL,NULL 46636,33317,1255328,NULL,NULL,NULL,0,NULL,NULL 46637,5759,880008,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46638,994968,1021562,NULL,NULL,NULL,0,NULL,NULL 46639,201098,1262681,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46640,186889,859596,Yearling Popular Question Caucus Constituent Taxonomist Famous Question Caucus Yearling Constituent Announcer Caucus Constituent Nice Question Yearling,NULL,NULL,0,NULL,NULL 46641,188322,239328,NULL,NULL,NULL,0,NULL,NULL 46642,53559,436884,Autobiographer,NULL,NULL,0,NULL,NULL 46643,134378,272972,NULL,NULL,NULL,0,NULL,NULL 46644,77810,250558,NULL,NULL,NULL,0,NULL,NULL 46645,793466,672946,Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 46646,341981,509565,Popular Question Yearling Good Answer Notable Question Notable Question Necromancer Good Answer Caucus Constituent Yearling Notable Question Self-Learner Popular Question Nice Answer Famous Question Popular Question Census Custodian Announcer Yearling Popular Question Nice Question Custodian Nice Answer,NULL,NULL,0,NULL,NULL 46647,49708,1318751,Nice Answer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 46648,7631,223041,NULL,NULL,NULL,0,NULL,NULL 46649,571801,1527578,Famous Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46650,469302,720743,NULL,NULL,NULL,0,NULL,NULL 46651,80968,681548,Proofreader Yearling Caucus Taxonomist Custodian Custodian Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 46652,144066,140711,Guru Yearling Enlightened Critic,NULL,NULL,0,NULL,NULL 46653,329096,965221,Popular Question,NULL,NULL,0,NULL,NULL 46654,326257,471622,Nice Answer Yearling Necromancer Good Answer Yearling Populist Revival Yearling,NULL,NULL,0,NULL,NULL 46655,841548,1019811,Supporter Popular Question Teacher Critic Yearling Enthusiast,NULL,NULL,0,NULL,NULL 46656,2535988,1318083,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 46657,194839,653498,NULL,NULL,NULL,0,NULL,NULL 46658,9799,249630,Yearling Nice Answer Enlightened Nice Answer Enlightened Populist Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Good Answer Guru Custodian Nice Answer Enlightened Census Yearling Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 46659,850912,760065,NULL,NULL,NULL,0,NULL,NULL 46660,382170,1312920,NULL,NULL,NULL,0,NULL,NULL 46661,50430,910098,NULL,NULL,NULL,0,NULL,NULL 46662,1515408,382516,Famous Question,NULL,NULL,0,NULL,NULL 46663,201113,843139,Editor Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 46664,206898,565690,NULL,NULL,NULL,0,NULL,NULL 46665,283328,14544,Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 46666,768293,1181036,Editor Tumbleweed Student Commentator Informed Autobiographer Critic Yearling Yearling Talkative Yearling Enthusiast Custodian Citizen Patrol Tenacious Yearling Announcer Popular Question Yearling Caucus Constituent Revival Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46667,517374,355027,Necromancer Yearling javascript Yearling Caucus Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46668,129045,1422175,NULL,NULL,NULL,0,NULL,NULL 46669,215698,893527,NULL,NULL,NULL,0,NULL,NULL 46670,566984,887264,NULL,NULL,NULL,0,NULL,NULL 46671,164571,297685,Popular Question Custodian,NULL,NULL,0,NULL,NULL 46672,1161000,1222826,NULL,NULL,NULL,0,NULL,NULL 46673,1957797,1222826,NULL,NULL,NULL,0,NULL,NULL 46674,371558,1239160,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46675,52298,885956,NULL,NULL,NULL,0,NULL,NULL 46676,335119,1497048,NULL,NULL,NULL,0,NULL,NULL 46677,222600,330599,Notable Question,NULL,NULL,0,NULL,NULL 46678,924631,739870,NULL,NULL,NULL,0,NULL,NULL 46679,152917,974488,NULL,NULL,NULL,0,NULL,NULL 46680,850,303931,Great Answer Yearling Popular Question Populist Nice Answer Custodian Popular Question Caucus Necromancer Good Answer Necromancer Custodian Yearling Revival Nice Answer Notable Question Custodian Announcer Yearling Popular Question Guru Nice Answer Necromancer Popular Question,NULL,pIt little vexing that the python3 maintainers chose to break backwards compatibility since implementing codenested code in terms of codeExitStack code is pretty straightforward ppre codetry from contextlib import nested Python 2except ImportError from contextlib import ExitStack contextmanager def nested contexts Reimplementation of nested in python with ExitStack as stack for ctx in contexts stack enter context ctx yield contexts code pre It does have that problem yes That only problem for contexts which grab resources when they re constructed as open does unfortunately There are many contexts which do not function that way and nested allowed you to return single return value which can be used as context for all the sub contexts,1,NULL,Time taken by an import in Python python import pI want to know how much time an import takes for both built in as well as user defined modules pI ran into this issue profiling large legacy application with multi second startup time It relatively simple to replace the builtin importer with something that does some profiling Below is hacky way of showing approximately how long each module takes to execute ppre codeimport osimport sysimport timeclass ImportEventNode object def init self name start time children None end time None self name name self start time start time self children if children is None else children self end time end time def repr self return ImportEventNode self name self start time children self children end time self end time format self self def total time self return self end time self start time def net time self return self total time sum child total time for child in self children root node cur node Noneall nodes old import import def import args kwargs global root node cur node name args if name not in sys modules t0 time time if root node is None root node prev node cur node lcur node ImportEventNode args t0 else prev node cur node cur node lcur node ImportEventNode name t0 prev node children append cur node try ret old import args kwargs finally lcur node end time time time all nodes append lcur node cur node prev node return ret else return old import args kwargs builtins import import code prepRunning on simple example here how it looks on importing scipy stats ppre code import scipy stats nodes sorted all nodes key lambda net time reverse True for node in nodes 10 print node name node net time lt EOF gt pkg resources 08431100845336914 05861020088195801 decomp schur 016885995864868164 PIL 0143890380859375 scipy stats 010602712631225586 pkg resources vendor packaging specifiers 007072925567626953 add newdocs 00637507438659668 mtrand 005497932434082031 scipy sparse linalg 005171060562133789 scipy linalg 004471778869628906 code pre Alternative to contextlib nested with variable number of context managers python deprecated with statement contextmanager pWe have code that invokes variable number of context managers depending on runtime parameters ppre codefrom contextlib import nested contextmanageref my context arg print entering arg try yield arg finally print exiting arg def my fn items with nested my context arg for arg in items as managers print processing under managers my fn range code prepHowever href http docs python org library contextlib html contextlib nested rel nofollow noreferrer codecontextlib nested code is deprecated since Python ppre codeDeprecationWarning With statements now directly support multiple context managers code prepThe answers to href https stackoverflow com questions 893333 multiple variables in python with statement Multiple variables in Python 39 with 39 statement indicate that codecontextlib nested code has some confusing error prone quirks but the suggested alternative of using the multiple manager codewith code statement won work for variable number of context managers and also breaks backward compatibility ppAre there any alternatives to codecontextlib nested code that aren deprecated and preferably don have the same bugs ppOr should continue to use codecontextlib nested code and ignore the warning If so should plan for codecontextlib nested code to be removed at some time in the future pIt little vexing that the python3 maintainers chose to break backwards compatibility since implementing codenested code in terms of codeExitStack code is pretty straightforward ppre codetry from contextlib import nested Python 2except ImportError from contextlib import ExitStack contextmanager def nested contexts Reimplementation of nested in python with ExitStack as stack for ctx in contexts stack enter context ctx yield contexts code pre 46681,39383,588468,NULL,NULL,NULL,0,NULL,NULL 46682,1564546,395079,Nice Question Notable Question Yearling Good Answer Popular Question Yearling Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 46683,259676,1296483,NULL,NULL,NULL,0,NULL,NULL 46684,158869,58263,NULL,NULL,NULL,0,NULL,NULL 46685,691824,994439,Editor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46686,625631,570525,NULL,NULL,NULL,0,NULL,NULL 46687,437351,1272993,NULL,NULL,NULL,0,NULL,NULL 46688,447722,1140163,Popular Question,NULL,NULL,0,NULL,NULL 46689,230324,283969,NULL,NULL,NULL,0,NULL,NULL 46690,881569,1294466,NULL,NULL,NULL,0,NULL,NULL 46691,186761,41981,Notable Question .net Popular Question Nice Answer Enlightened Yearling Notable Question Good Answer Popular Question Good Answer Good Answer Yearling Notable Question html Yearling,NULL,NULL,0,NULL,NULL 46692,145561,47901,Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Good Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 46693,580879,345530,Autobiographer Nice Answer Citizen Patrol Editor Organizer Revival Supporter Yearling Commentator Yearling Yearling Yearling Tenacious Yearling Yearling Yearling Critic mapbox-gl-js Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 46694,6208534,345530,Autobiographer Nice Answer Citizen Patrol Editor Organizer Revival Supporter Yearling Commentator Yearling Yearling Yearling Tenacious Yearling Yearling Yearling Critic mapbox-gl-js Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 46695,8650283,345530,Autobiographer Nice Answer Citizen Patrol Editor Organizer Revival Supporter Yearling Commentator Yearling Yearling Yearling Tenacious Yearling Yearling Yearling Critic mapbox-gl-js Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 46696,381931,1100808,NULL,NULL,NULL,0,NULL,NULL 46697,227635,89170,Revival Civic Duty Yearling Announcer Custodian Notable Question Yearling Revival Popular Question Yearling Nice Answer Enlightened Popular Question,NULL,pI don think there is rule written down anywhere but hopefully this will help ppFirst let clear up some definitions think offscreen vs onscreen rendering is not the overriding concern most of the time because offscreen rendering can be as fast as onscreen The main issue is whether the rendering is done in hardware or software ppThere is also very little practical difference between using layers and views Views are just thin wrapper around CALayer and they don introduce significant performance penalty most of the time You can override the type of layer used by view using the layerClass method if you want to have view backed by CAShapeLayer or CATileLayer etc ppGenerally on iOS pixel effects and Quartz Core Graphics drawing are not hardware accelerated and most other things are ppThe following things are not hardware accelerated which means that they need to be done in software offscreen polli pAnything done in drawRect If your view has drawRect even an empty one the drawing is not done in hardware and there is performance penalty lili pAny layer with the shouldRasterize property set to YES lili pAny layer with mask or drop shadow lili pText any kind including UILabels CATextLayers Core Text etc lili pAny drawing you do yourself either onscreen or offscreen using CGContext li olpMost other things are hardware accelerated so they are much faster However this may not mean what you think it does ppAny of the above types of drawing are slow compared to hardware accelerated drawing however they don necessarily slow down your app because they don need to happen every frame For example drawing drop shadow on view is slow the first time but after it is drawn it is cached and is only redrawn if the view changes size or shape ppThe same goes for rasterised views or views with custom drawRect the view typically isn redrawn every frame it is drawn once and then cached so the performance after the view is first set up is no worse unless the bounds change or you call setNeedsDisplay on it ppFor good performance the trick is to avoid using software drawing for views that change every frame For example if you need an animated vector shape you ll get better performance using CAShapeLayer or OpenGL than drawRect and Core Graphics But if you draw shape once and then don need to change it it won make much difference ppSimilarly don put drop shadow on an animated view because it will slow down your frame rate But shadow on view that doesn change from frame to frame won have much negative impact ppAnother thing to watch out for is slowing down the view setup time For example suppose you have page of text with drop shadows on all the text this will take very long time to draw initially since both the text and shadows all need to be rendered in software but once drawn it will be fast You will therefore want to set up this view in advance when your application loads and keep copy of it in memory so that the user doesn have to wait ages for the view to display when it first appears on screen ppThis is probably the reason for the apparent contradiction in the WWDC videos For large complex views that don change every frame drawing them once in software after which they are cached and don need to be redrawn will yield better performance than having the hardware re composite them every frame even though it will be slower to draw the first time ppBut for views that must be redrawn constantly like table cells the cells are recycled so they must be redrawn each time one cell scrolls offscreen and is re used as it scrolls back onto the other side as different row software drawing may slow things down lot Not necessarily no Off screen rendering is required for some of the aforementioned reasons like dynamic shadows and masking Even without shouldRasterize set to true this requires off screen rendering Additionally as understand it layers internally are cached when they can be especially after iOS introduced real time blurring and other visual effects Core Animation aggressively caches layer contents likely the blurred variants when it can shouldRasterize just forces layer tree to be rasterized before being composited which may or may not improve performance,0,NULL,NULL 46698,315006,883247,Teacher,NULL,,0,, 46699,281821,135767,Curious Caucus Yearling Announcer Nice Answer Famous Question Caucus Constituent Custodian Custodian Citizen Patrol Census Announcer Nice Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 46700,176212,1238654,Yearling Inquisitive Notable Question Nice Question Popular Question Yearling Notable Question Famous Question Famous Question Nice Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 46701,543481,428486,Yearling Great Answer Yearling Yearling Yearling Yearling Custodian Custodian Custodian Citizen Patrol Custodian Custodian Commentator Custodian Organizer Proofreader Autobiographer Explainer Revival Cleanup Excavator Informed Reviewer Strunk & White javascript Suffrage Vox Populi Custodian Custodian Mortarboard Student Scholar Tenacious Enthusiast,NULL,Unescape HTML entities in Javascript javascript html escaping xml rpc pI have some Javascript code that communicates with an XML RPC backend The XML RPC returns strings of the form ppre code lt img src myimage jpg gt code prepHowever when use the Javascript to insert the strings into HTML they render literally don see an image literally see the string ppre code lt img src myimage jpg gt code prepMy guess is that the HTML is being escaped over the XML RPC channel ppHow can unescape the string in Javascript tried the techniques on this page unsuccessfully href http paulschreiber com blog 2008 09 20 javascript how to unescape html entities rel noreferrer http paulschreiber com blog 2008 09 20 javascript how to unescape html entities ppWhat are other ways to diagnose the issue Possible duplicate of How to decode HTML entities using jQuery https stackoverflow com questions 1147359 how to decode html entities using jquery,0,NULL,NULL 46702,74278,1445184,Yearling Necromancer Citizen Patrol Caucus Civic Duty Constituent Announcer Yearling Nice Answer Caucus Yearling Promoter Benefactor Good Answer,NULL,How to set default values in Rails ruby on rails ruby pI trying to find the best way to set default values for objects in Rails ppThe best can think of is to set the default value in the codenew code method in the controller ppDoes anyone have any input if this is acceptable or if there better way to do it Possible duplicate of How can set default values in ActiveRecord https stackoverflow com questions 328525 how can set default values in activerecord,0,NULL,NULL 46703,261486,696528,NULL,NULL,NULL,0,NULL,NULL 46704,137962,548952,Supporter,NULL,NULL,0,NULL,NULL 46705,139031,73377,Nice Question,NULL,NULL,0,NULL,NULL 46706,1765122,855801,NULL,NULL,NULL,0,NULL,NULL 46707,210916,45895,NULL,NULL,NULL,0,NULL,NULL 46708,1095207,974521,NULL,NULL,NULL,0,NULL,NULL 46709,30319,1186419,NULL,NULL,NULL,0,NULL,NULL 46710,114960,1084142,NULL,NULL,NULL,0,NULL,NULL 46711,565859,1041347,NULL,NULL,NULL,0,NULL,NULL 46712,8888520,397927,NULL,NULL,NULL,0,NULL,NULL 46713,85812,397927,NULL,NULL,NULL,0,NULL,NULL 46714,38443,568395,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 46715,68074,637019,Yearling Nice Question Famous Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 46716,248026,304311,Self-Learner Yearling Civic Duty Excavator Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 46717,1521252,787731,Necromancer Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 46718,19883,1011806,Yearling Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 46719,19017,189722,Notable Question Famous Question angularjs Custodian Nice Answer Good Answer Yearling Popular Question Popular Question Notable Question Good Answer Nice Question Popular Question Caucus Notable Question Yearling Notable Question Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 46720,41322,634666,NULL,NULL,NULL,0,NULL,NULL 46721,600585,1450128,NULL,NULL,NULL,0,NULL,NULL 46722,159271,669958,NULL,NULL,NULL,0,NULL,NULL 46723,74275,671313,Yearling Scholar Student Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 46724,207048,488035,Nice Answer Enlightened Necromancer Revival Nice Answer Nice Answer Good Answer Yearling Nice Answer Great Answer Revival Necromancer Famous Question Guru Caucus Yearling Custodian Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 46725,416287,985579,Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 46726,61179,920355,javascript Popular Question Popular Question Notable Question Notable Question Yearling Great Question Popular Question Critic Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 46727,1366,523268,Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46728,87495,303778,Yearling Caucus Favorite Question Yearling Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 46729,18267,518929,NULL,NULL,NULL,0,NULL,NULL 46730,280770,401085,NULL,NULL,NULL,0,NULL,NULL 46731,129038,449541,Notable Question Popular Question Documentation User Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46732,66266,737581,Great Answer Yearling Civic Duty Yearling Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46733,70396,814417,Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46734,192430,597828,Nice Answer Enlightened Caucus Notable Question Self-Learner Yearling Caucus,NULL,NULL,0,NULL,NULL 46735,295643,1564939,Student,NULL,NULL,0,NULL,NULL 46736,908132,814593,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46737,1051881,541311,NULL,NULL,NULL,0,NULL,NULL 46738,27319,635047,NULL,NULL,NULL,0,NULL,NULL 46739,893879,779716,NULL,NULL,NULL,0,NULL,NULL 46740,181368,225815,Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 46741,200776,402807,Nice Answer Popular Question Yearling Popular Question Notable Question Yearling Announcer Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46742,1519839,913457,NULL,NULL,NULL,0,NULL,NULL 46743,475252,201498,Guru Good Answer Yearling Guru Announcer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 46744,133672,438063,Announcer Custodian Custodian Yearling Good Answer Good Answer Caucus Constituent Stellar Question Yearling Civic Duty Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46745,107231,866634,NULL,NULL,NULL,0,NULL,NULL 46746,1508095,259120,NULL,NULL,NULL,0,NULL,NULL 46747,175544,822126,NULL,NULL,NULL,0,NULL,NULL 46748,438800,695676,NULL,NULL,NULL,0,NULL,NULL 46749,230899,1012820,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46750,50378,484202,Informed,NULL,NULL,0,NULL,NULL 46751,1035352,1309889,NULL,NULL,NULL,0,NULL,NULL 46752,861942,308388,NULL,NULL,NULL,0,NULL,NULL 46753,212848,1069805,NULL,NULL,NULL,0,NULL,NULL 46754,164939,104450,Nice Question Popular Question Nice Question Notable Question Good Question Yearling Popular Question Nice Question Famous Question Nice Question Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Notable Question Famous Question Nice Question Favorite Question Notable Question Yearling Popular Question Nice Question Famous Question Disciplined Good Question,NULL,NULL,0,NULL,NULL 46755,6868595,289251,Yearling Notable Question Enthusiast Notable Question Notable Question Yearling Nice Question Civic Duty Yearling,NULL,NULL,0,NULL,NULL 46756,212804,3617,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 46757,4452397,400861,Famous Question Famous Question Famous Question Popular Question Nice Question Good Question Necromancer Notable Question Notable Question Notable Question Nice Question Notable Question Good Question Great Question Popular Question Notable Question Notable Question Good Question Famous Question Popular Question Notable Question Famous Question Good Question Nice Question Nice Question Famous Question Nice Question Notable Question Famous Question Popular Question Famous Question Nice Question Notable Question Yearling Famous Question Famous Question Popular Question Notable Question Popular Question Nice Question Good Question Popular Question Good Answer Nice Question Famous Question Good Answer Popular Question Notable Question Famous Question c# Famous Question Nice Question Famous Question Nice Question Nice Question Taxonomist Nice Answer Famous Question Popular Question Good Answer Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Nice Question Guru Nice Answer Popular Question Notable Question Great Question Popular Question Popular Question Yearling Famous Question Popular Question Famous Question Good Answer Notable Question Good Question Good Question Famous Question Good Question Nice Question Notable Question Popular Question Good Answer Great Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Famous Question Famous Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 46758,148916,854408,Nice Question Popular Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46759,8364805,519990,Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46760,232984,421961,NULL,NULL,NULL,0,NULL,NULL 46761,587183,1523138,NULL,NULL,NULL,0,NULL,NULL 46762,147724,340613,Yearling Popular Question Commentator Revival Necromancer Custodian Caucus Yearling Nice Answer Revival Caucus Necromancer Popular Question Documentation User Populist Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46763,238522,950034,NULL,NULL,NULL,0,NULL,NULL 46764,126034,104887,Popular Question Yearling Good Question Popular Question Necromancer Notable Question Necromancer Nice Answer Good Answer Notable Question Famous Question Popular Question Yearling Necromancer Caucus Constituent Necromancer Revival Good Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer Census Guru Yearling Famous Question Guru,NULL,NULL,0,NULL,NULL 46765,772748,891383,NULL,NULL,NULL,0,NULL,NULL 46766,206150,893104,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46767,102385,570241,Supporter,NULL,NULL,0,NULL,NULL 46768,210225,1089927,Notable Question,NULL,NULL,0,NULL,NULL 46769,224818,1523159,NULL,NULL,NULL,0,NULL,NULL 46770,264520,444425,NULL,NULL,NULL,0,NULL,NULL 46771,271177,438229,NULL,NULL,NULL,0,NULL,NULL 46772,392449,676743,NULL,NULL,NULL,0,NULL,NULL 46773,795031,1019799,NULL,NULL,NULL,0,NULL,NULL 46774,301445,105861,Yearling Yearling,NULL,NULL,0,NULL,NULL 46775,14223,1180957,NULL,NULL,NULL,0,NULL,NULL 46776,34734,557570,NULL,NULL,NULL,0,NULL,NULL 46777,161042,644320,NULL,NULL,NULL,0,NULL,NULL 46778,35608,266549,Good Question Necromancer Nice Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 46779,331618,346095,Popular Question Good Answer Nice Answer Yearling Necromancer Yearling Nice Answer Yearling Nice Answer Enlightened Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 46780,135757,942503,Revival Revival Necromancer,NULL,NULL,0,NULL,NULL 46781,1209482,1379657,Necromancer Nice Answer Notable Question Great Answer Nice Question Popular Question Popular Question Yearling Great Question Favorite Question Nice Question Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Custodian Yearling Popular Question Popular Question Famous Question Nice Question Citizen Patrol,NULL,NULL,0,NULL,NULL 46782,1311420,794745,NULL,NULL,NULL,0,NULL,NULL 46783,349544,132454,Yearling Notable Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46784,204726,443521,Good Question,NULL,NULL,0,NULL,NULL 46785,709067,449773,NULL,NULL,NULL,0,NULL,NULL 46786,386986,490808,NULL,NULL,NULL,0,NULL,NULL 46787,720051,789482,Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Yearling Nice Question Popular Question Peer Pressure Popular Question Nice Question,NULL,NULL,0,NULL,NULL 46788,510775,963777,NULL,NULL,NULL,0,NULL,NULL 46789,53536,140069,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 46790,1385479,778159,NULL,NULL,NULL,0,NULL,NULL 46791,672314,733749,Booster Announcer Announcer,NULL,NULL,0,NULL,NULL 46792,138926,789165,Notable Question Yearling Census Curious Citizen Patrol Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 46793,18190,847941,NULL,NULL,NULL,0,NULL,NULL 46794,2073023,207811,Famous Question Scholar Critic,NULL,NULL,0,NULL,NULL 46795,626626,882954,NULL,NULL,NULL,0,NULL,NULL 46796,3308207,406135,Informed Autobiographer Student Scholar Editor,NULL,NULL,0,NULL,NULL 46797,66119,818049,Yearling Notable Question Necromancer Popular Question Caucus Notable Question Good Question Famous Question Census Caucus Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46798,191318,1497080,NULL,NULL,NULL,0,NULL,NULL 46799,190438,1046584,Announcer Yearling Popular Question Curious Custodian Revival Popular Question Announcer Popular Question Necromancer Notable Question Yearling Necromancer Necromancer Enthusiast Caucus Necromancer Announcer Announcer Yearling Popular Question Nice Answer Good Question Revival Nice Answer,NULL,NULL,1,NULL,How to port data only volumes from one host to another docker pAs described in the Docker documentation on href http docs docker io en latest use working with volumes Working with Volumes there is the concept of so called emdata only em containers which provide volume that can be mounted into multiple other containers no matter whether the data only container is actually running or not ppBasically this sounds awesome But there is one thing do not understand ppThese volumes which do emnot em explicitly map to folder on the host for portability reasons as the documentation states are created and managed by Docker in some internal folder on the host code var docker volumes code ppSupposed use such volume and then need to migrate it from one host to another how do port the volume AFAICS it has unique ID can just go and copy the volume and its according data only container to new host How do find out which files to copy Or is there some support built in to Docker that did not discover yet pExtending the official answer from href https docs docker com engine userguide dockervolumes backup restore or migrate data volumes rel nofollow noreferrer Docker docs and the href https stackoverflow com 23778599 1046584 top answer here you can have following aliases in your bashrc or zshrc ppre code backup files from docker volume into tmp backup tar gzfunction docker volume backup compressed docker run rm tmp backup volumes from debian jessie tar czvf backup backup tar gz restore files from tmp backup tar gz into docker volumefunction docker volume restore compressed docker run rm tmp backup volumes from debian jessie tar xzvf backup backup tar gz echo Double checking files docker run rm tmp backup volumes from debian jessie ls lh backup files from docker volume into tmp backup tarfunction docker volume backup docker run rm tmp backup volumes from busybox tar cvf backup backup tar restore files from tmp backup tar into docker volumefunction docker volume restore docker run rm tmp backup volumes from busybox tar xvf backup backup tar echo Double checking files docker run rm tmp backup volumes from busybox ls lh code prepNote that the backup is saved into code tmp code so you can move the backup file saved there between docker hosts ppThere is also two pairs of backup restore aliases One using compression and debian jessie and other with no compression but with busybox Favor using compression if the files to backup are big 46800,642,9589,Good Answer,NULL,NULL,0,NULL,NULL 46801,919638,533517,Tumbleweed Necromancer Peer Pressure,NULL,NULL,0,NULL,NULL 46802,149640,1508625,NULL,NULL,NULL,0,NULL,NULL 46803,329537,1305963,NULL,NULL,NULL,0,NULL,NULL 46804,479661,225245,NULL,NULL,NULL,0,NULL,NULL 46805,185075,1021244,NULL,NULL,NULL,0,NULL,NULL 46806,71282,543452,Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 46807,6223770,1029006,NULL,NULL,NULL,0,NULL,NULL 46808,11034,593742,NULL,NULL,NULL,0,NULL,NULL 46809,134858,770931,Critic Announcer Tumbleweed Nice Answer Popular Question Caucus Caucus Yearling Promoter,NULL,NULL,0,NULL,NULL 46810,68292,355883,NULL,NULL,NULL,0,NULL,NULL 46811,884308,1176793,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 46812,232963,656261,NULL,NULL,NULL,0,NULL,NULL 46813,1047181,312420,Yearling Necromancer,NULL,NULL,0,NULL,NULL 46814,1478399,856216,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 46815,409941,649316,NULL,NULL,NULL,0,NULL,NULL 46816,575435,435349,NULL,NULL,NULL,0,NULL,NULL 46817,2397897,911071,Enthusiast Supporter,NULL,NULL,0,NULL,NULL 46818,351597,911071,Enthusiast Supporter,NULL,NULL,0,NULL,NULL 46819,38386,248279,Yearling Notable Question Notable Question Popular Question Nice Answer Good Answer Yearling Notable Question Necromancer Notable Question Yearling Guru Good Question,NULL,NULL,0,NULL,NULL 46820,655584,527328,Good Question Notable Question Popular Question Custodian Citizen Patrol Popular Question Popular Question Caucus Constituent Yearling Census Nice Question Famous Question Notable Question Caucus Great Answer Yearling Census Favorite Question Yearling,NULL,NULL,0,NULL,NULL 46821,480039,527328,Good Question Notable Question Popular Question Custodian Citizen Patrol Popular Question Popular Question Caucus Constituent Yearling Census Nice Question Famous Question Notable Question Caucus Great Answer Yearling Census Favorite Question Yearling,NULL,NULL,0,NULL,NULL 46822,83609,712018,NULL,NULL,NULL,0,NULL,NULL 46823,1170378,331793,Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46824,72670,1256145,NULL,NULL,NULL,0,NULL,NULL 46825,1008253,1032769,NULL,NULL,NULL,0,NULL,NULL 46826,390210,32775,Notable Question c++ Nice Question Famous Question Guru Popular Question Nice Answer Enlightened Yearling Good Answer Notable Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Necromancer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 46827,895188,1062689,Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 46828,55429,1367818,Informed,NULL,NULL,0,NULL,NULL 46829,419369,461606,Yearling Yearling,NULL,NULL,0,NULL,NULL 46830,8884647,663427,NULL,NULL,NULL,0,NULL,NULL 46831,118661,663427,NULL,NULL,NULL,0,NULL,NULL 46832,102,117298,Good Answer Nice Answer Announcer Yearling gem Announcer Good Answer Scholar Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 46833,66212,1215410,Necromancer Yearling Nice Answer Editor Yearling Nice Answer Enlightened Good Answer Caucus Constituent Yearling Documentation User Custodian Yearling Necromancer Caucus Scholar Commentator Student Yearling,NULL,NULL,0,NULL,NULL 46834,695454,610100,Teacher,NULL,NULL,0,NULL,NULL 46835,556783,854038,Caucus,NULL,NULL,0,NULL,NULL 46836,1365898,1295710,NULL,NULL,NULL,0,NULL,NULL 46837,509571,1447910,Supporter Informed,NULL,NULL,0,NULL,NULL 46838,491514,1447910,Supporter Informed,NULL,NULL,0,NULL,NULL 46839,6494449,287091,NULL,NULL,NULL,0,NULL,NULL 46840,188234,287091,NULL,NULL,NULL,0,NULL,NULL 46841,46377,586312,NULL,NULL,NULL,0,NULL,NULL 46842,3322446,819753,NULL,NULL,NULL,0,NULL,NULL 46843,217979,819753,NULL,NULL,NULL,0,NULL,NULL 46844,479964,861789,NULL,NULL,NULL,0,NULL,NULL 46845,190870,821983,NULL,NULL,NULL,0,NULL,NULL 46846,1349291,1538264,Caucus Nice Question Famous Question,NULL,NULL,0,NULL,NULL 46847,374345,1167141,Student,NULL,NULL,0,NULL,NULL 46848,159722,1147713,NULL,NULL,NULL,0,NULL,NULL 46849,1984731,351195,Self-Learner Notable Question Good Answer Yearling Critic Curious Nice Answer,NULL,NULL,0,NULL,NULL 46850,99544,102353,Necromancer Yearling Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 46851,35412,856580,Nice Answer Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 46852,692735,953072,NULL,NULL,NULL,0,NULL,NULL 46853,529462,1012909,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Good Question Notable Question Great Question Notable Question Yearling Nice Question Notable Question Notable Question Inquisitive Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46854,445834,888454,NULL,NULL,NULL,0,NULL,NULL 46855,128168,387008,Custodian Nice Question Popular Question Yearling Famous Question Excavator Notable Question Yearling ruby-on-rails Good Answer Yearling,NULL,NULL,0,NULL,NULL 46856,696948,1348770,NULL,NULL,NULL,0,NULL,NULL 46857,902055,820105,NULL,NULL,NULL,0,NULL,NULL 46858,50297,1167483,Necromancer Student Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46859,22053,587535,NULL,NULL,NULL,0,NULL,NULL 46860,50447,1100858,Supporter,NULL,NULL,0,NULL,NULL 46861,389657,733877,Yearling Good Answer Populist Popular Question Popular Question Notable Question Citizen Patrol Custodian Yearling Caucus Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 46862,6203229,733877,Yearling Good Answer Populist Popular Question Popular Question Notable Question Citizen Patrol Custodian Yearling Caucus Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 46863,461389,1019345,NULL,NULL,NULL,0,NULL,NULL 46864,71052,797252,Curious Critic Self-Learner Yearling Custodian Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Caucus Notable Question Notable Question Necromancer Caucus Constituent Yearling Notable Question Caucus Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 46865,885061,1080803,NULL,NULL,NULL,0,NULL,NULL 46866,299195,587406,Yearling Notable Question Popular Question Popular Question Citizen Patrol Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Notable Question Yearling Famous Question Custodian Notable Question Notable Question Popular Question Popular Question Caucus Popular Question Constituent Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Custodian Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Notable Question Organizer Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46867,65347,587406,Yearling Notable Question Popular Question Popular Question Citizen Patrol Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Notable Question Yearling Famous Question Custodian Notable Question Notable Question Popular Question Popular Question Caucus Popular Question Constituent Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Custodian Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Caucus Constituent Notable Question Notable Question Organizer Nice Answer Enlightened Notable Question Popular Question,NULL,NULL,0,NULL,NULL 46868,1374006,1352748,Supporter Excavator Necromancer Commentator Yearling Announcer Nice Answer Popular Question Necromancer,NULL,strongNOTE strong This bug is fixed in iOS so the entire matter will be moot at that point The discussion below applies only to the particular system and version of Swift to which it is explicitly geared phrpThis is clearly bug but there also very easy solution ll explain the problem and then give the solution Please note that writing this for Xcode and Swift Apple has been all over the map on this since the day Swift first came out so other versions will behave differently ph2The Ground of Being h2pYou are going to instantiate UITableViewController emby hand em that is by calling its initializer in code And you want to subclass UITableViewController because you have instance properties you want to give it ph2The Problem h2pSo you start out with an instance property ppre codeclass MyTableViewController UITableViewController let greeting String code prepThis has no default value so you have to write an initializer ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting code prepBut that not legal initializer you have to call codesuper code Let say your call to codesuper code is to call codeinit style code ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting super init style Plain code prepBut you still can compile because you have requirement to implement codeinit coder code So you do ppre codeclass MyTableViewController UITableViewController let greeting String required init coder aDecoder NSCoder fatalError init coder has not been implemented init greeting String self greeting greeting super init style Plain code prepYour code now compiles You now happily you think instantiate this table view controller subclass by calling the initializer you wrote ppre codelet tvc MyTableViewController greeting Hello there code prepEverything looks merry and rosy until you emrun em the app at which point you crash with this message pblockquote pfatal error use of unimplemented initializer codeinit nibName bundle code blockquoteh2What Causes the Crash and Why You Can Solve It h2pThe crash is caused by bug in Cocoa Unknown to you codeinit style code itself calls codeinit nibName bundle code And it calls it on codeself code That you MyTableViewController But MyTableViewController has no implementation of codeinit nibName bundle code And does not eminherit em codeinit nibName bundle code either because you already provided designated initializer thus cutting off inheritance ppYour only solution would be to emimplement em codeinit nibName bundle code But you can because that implementation would require you to set the instance property codegreeting code and you don know what to set it to ph2The Simple Solution h2pThe simple solution almost too simple which is why it is so difficult to think of is strongdon subclass UITableViewController strong Why is this reasonable solution Because you never actually emneeded em to subclass it in the first place UITableViewController is largely pointless class it doesn do anything for you that you can do for yourself ppSo now we re going to rewrite our class as UIViewController subclass instead We still need table view as our view so we ll create it in codeloadView code and we ll hook it up there as well Changes are marked as starred comments ppre codeclass MyViewController UIViewController UITableViewDelegate UITableViewDataSource let greeting String weak var tableView UITableView init greeting String self greeting greeting super init nibName nil bundle nil required init coder aDecoder NSCoder fatalError init coder has not been implemented override func loadView self view UITableView frame CGRectZero style Plain self tableView self view as UITableView self tableView delegate self self tableView dataSource self code prepAlso you ll want of course to add the minimal required data source methods We now instantiate our class like this ppre codelet tvc MyViewController greeting Hello there code prepOur project compiles and runs without hitch Problem solved ph2An Objection Not h2pYou might object that by not using UITableViewController we have lost the ability to get prototype cell from the storyboard But that is no objection because we emnever had em that ability in the first place Remember our hypothesis is that we are subclassing and calling our own subclass initializer If we were getting the prototype cell from the storyboard the storyboard would be instantiating us by calling codeinit coder code and the problem would never have arisen in the first place How do we move this answer to the top,0,NULL,NULL 46869,196167,1201005,NULL,NULL,NULL,0,NULL,NULL 46870,445132,1473241,NULL,NULL,NULL,0,NULL,NULL 46871,252349,403434,NULL,NULL,NULL,0,NULL,NULL 46872,730703,1467382,Yearling Famous Question Popular Question Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 46873,57601,1210519,NULL,NULL,NULL,0,NULL,NULL 46874,223138,756490,Notable Question Curious Tumbleweed Caucus Citizen Patrol Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 46875,309228,762670,NULL,NULL,NULL,0,NULL,NULL 46876,340080,1317749,Good Answer Yearling Nice Question Notable Question Good Answer Self-Learner Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 46877,493761,1450137,NULL,NULL,NULL,0,NULL,NULL 46878,43086,76593,Notable Question Excavator Yearling Popular Question Yearling Nice Question Great Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 46879,53213,1390179,NULL,NULL,NULL,0,NULL,NULL 46880,241604,1087658,NULL,NULL,NULL,0,NULL,NULL 46881,1646912,1075920,NULL,NULL,NULL,0,NULL,NULL 46882,817200,670268,NULL,NULL,NULL,0,NULL,NULL 46883,693449,317540,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46884,183653,1055760,NULL,NULL,NULL,0,NULL,NULL 46885,558837,1284193,Yearling Student Scholar Commentator,NULL,NULL,0,NULL,NULL 46886,409042,1464605,Good Answer Nice Answer Enlightened ruby Nice Answer Yearling Guru Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 46887,236934,929001,NULL,NULL,NULL,0,NULL,NULL 46888,46202,511220,Yearling Yearling,NULL,NULL,0,NULL,NULL 46889,521765,1181505,NULL,NULL,NULL,0,NULL,NULL 46890,150006,1262635,Necromancer,NULL,NULL,0,NULL,NULL 46891,100229,430717,Necromancer Popular Question Custodian Notable Question Nice Question Yearling Nice Answer Enlightened Famous Question Necromancer Revival Notable Question Peer Pressure,NULL,NULL,0,NULL,NULL 46892,420785,262211,NULL,NULL,NULL,0,NULL,NULL 46893,522550,670792,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46894,317684,602867,NULL,NULL,NULL,0,NULL,NULL 46895,81776,291633,Yearling,NULL,NULL,0,NULL,NULL 46896,1292590,449944,Necromancer Yearling Nice Answer Nice Answer Yearling Good Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 46897,916591,841644,Popular Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 46898,15145,273395,ruby-on-rails Yearling Custodian Yearling ruby Guru Yearling,NULL,NULL,0,NULL,NULL 46899,311576,314717,NULL,NULL,NULL,0,NULL,NULL 46900,387112,515722,NULL,NULL,NULL,0,NULL,NULL 46901,1580081,1298579,Nice Question Yearling Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 46902,523914,277042,Yearling Popular Question Popular Question Tumbleweed Notable Question Curious Yearling Notable Question Necromancer Stellar Question Notable Question Nice Question Nice Answer Necromancer Revival Famous Question Good Answer Yearling Nice Question Popular Question Populist Popular Question,NULL,pThere actually is trick how to execute parallel operation in specific fork join pool If you execute it as task in fork join pool it stays there and does not use the common one ppre codeForkJoinPool forkJoinPool new ForkJoinPool forkJoinPool submit gt parallel task here for example IntStream range 000 000 parallel filter PrimesPrint isPrime collect toList get code prepThe trick is based on href http docs oracle com javase docs api java util concurrent ForkJoinTask html fork rel noreferrer ForkJoinTask fork which specifies Arranges to asynchronously execute this task in the pool the current task is running in if applicable or using the ForkJoinPool commonPool if not inForkJoinPool You mean the used as the ForkJoinPool constructor argument It works if remember it correctly and actually makes sense for blocking tasks,0,NULL,NULL 46903,73171,670119,Popular Question Popular Question Notable Question Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 46904,544672,670119,Popular Question Popular Question Notable Question Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 46905,291435,1526770,NULL,NULL,NULL,0,NULL,NULL 46906,63895,1526770,NULL,NULL,NULL,0,NULL,NULL 46907,71493,1305086,Yearling Good Answer Yearling Nice Question Guru Yearling,NULL,NULL,0,NULL,NULL 46908,712573,1455499,NULL,NULL,NULL,0,NULL,NULL 46909,28865,757804,NULL,NULL,NULL,0,NULL,NULL 46910,153581,844832,NULL,NULL,NULL,0,NULL,NULL 46911,186817,616007,Teacher Supporter Announcer Commentator,NULL,NULL,0,NULL,NULL 46912,11095,1116061,Announcer Notable Question Necromancer Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46913,656600,488687,NULL,NULL,NULL,0,NULL,NULL 46914,157033,499176,Popular Question Popular Question Notable Question Revival Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 46915,35432,1018389,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 46916,530543,937338,NULL,NULL,NULL,0,NULL,NULL 46917,2556855,1462040,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 46918,82460,1438000,NULL,NULL,NULL,0,NULL,NULL 46919,122610,615405,Revival,NULL,NULL,0,NULL,NULL 46920,120725,1174851,NULL,NULL,NULL,0,NULL,NULL 46921,918458,1174851,NULL,NULL,NULL,0,NULL,NULL 46922,39896,1383241,Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Yearling Guru Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 46923,1844047,1284429,NULL,NULL,NULL,0,NULL,NULL 46924,1533285,688785,NULL,NULL,NULL,0,NULL,NULL 46925,239853,76139,Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 46926,1129869,212278,Announcer Yearling Great Answer Yearling Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 46927,448515,1136566,NULL,NULL,NULL,0,NULL,NULL 46928,721465,336186,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Guru Yearling Popular Question Notable Question Notable Question Popular Question Nice Answer Notable Question Nice Answer Enlightened Notable Question Notable Question Nice Answer Popular Question Notable Question Yearling Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Famous Question Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 46929,105747,380987,Nice Answer Enlightened Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 46930,142690,440768,Good Answer Yearling Good Question Necromancer android Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 46931,134016,151813,Yearling Necromancer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 46932,813668,709678,NULL,NULL,NULL,0,NULL,NULL 46933,117939,750650,Nice Answer Enlightened Nice Answer Enthusiast Yearling Good Answer Good Answer Yearling Good Answer Nice Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46934,274610,257542,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46935,369930,887647,Nice Answer,NULL,NULL,0,NULL,NULL 46936,146150,774430,NULL,NULL,NULL,0,NULL,NULL 46937,9209972,774430,NULL,NULL,NULL,0,NULL,NULL 46938,2732474,734209,NULL,NULL,NULL,0,NULL,NULL 46939,901878,306088,NULL,NULL,NULL,0,NULL,NULL 46940,575752,207810,NULL,NULL,NULL,0,NULL,NULL 46941,925570,1292710,NULL,NULL,NULL,0,NULL,NULL 46942,1072775,1292710,NULL,NULL,NULL,0,NULL,NULL 46943,480377,1393487,Autobiographer Caucus,NULL,NULL,0,NULL,NULL 46944,863992,196154,NULL,NULL,NULL,0,NULL,NULL 46945,138952,823706,NULL,NULL,NULL,0,NULL,NULL 46946,264902,840553,NULL,NULL,NULL,0,NULL,NULL 46947,3860,130896,Good Question Census Famous Question Yearling,NULL,NULL,0,NULL,NULL 46948,223315,379822,Yearling Scholar Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46949,163018,1504120,NULL,NULL,NULL,0,NULL,NULL 46950,17656,828089,NULL,NULL,NULL,0,NULL,NULL 46951,198996,696573,NULL,NULL,NULL,0,NULL,NULL 46952,194117,1017941,Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Popular Question git Nice Answer Nice Answer Guru Yearling Popular Question Caucus Constituent Good Answer Great Answer Caucus Nice Question Popular Question Good Answer Necromancer Documentation User Announcer Yearling Nice Answer Enlightened Census ruby Caucus Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 46953,2086523,893089,NULL,NULL,NULL,0,NULL,NULL 46954,19877,893089,NULL,NULL,NULL,0,NULL,NULL 46955,18042,302883,NULL,NULL,NULL,0,NULL,NULL 46956,678541,218592,Popular Question Excavator Notable Question Popular Question Notable Question Nice Answer Enlightened Guru Popular Question Famous Question Notable Question Yearling Good Answer Necromancer Nice Question Famous Question Nice Answer Enlightened Famous Question Yearling Notable Question Popular Question Guru Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 46957,106852,463663,Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 46958,2601036,215830,Popular Question,NULL,NULL,0,NULL,NULL 46959,418452,215830,Popular Question,NULL,NULL,0,NULL,NULL 46960,334335,900254,NULL,NULL,NULL,0,NULL,NULL 46961,155552,1075197,Informed,NULL,NULL,0,NULL,NULL 46962,152437,65903,Nice Answer Enlightened Tumbleweed Yearling Popular Question,NULL,NULL,0,NULL,NULL 46963,15716,462807,NULL,NULL,NULL,0,NULL,NULL 46964,1675505,462807,NULL,NULL,NULL,0,NULL,NULL 46965,1743618,1408246,NULL,NULL,NULL,0,NULL,NULL 46966,17990,159528,NULL,NULL,NULL,0,NULL,NULL 46967,1350886,195770,NULL,NULL,NULL,0,NULL,NULL 46968,454688,7947,NULL,NULL,NULL,0,NULL,NULL 46969,238855,220918,Famous Question Popular Question Good Question Nice Question Popular Question Guru Popular Question Famous Question Yearling Notable Question Popular Question Good Question Notable Question Popular Question Good Question Yearling Popular Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 46970,27607,571420,Curious Yearling Revival Scholar Self-Learner Revival Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 46971,1751252,1239587,Nice Answer Enlightened Yearling Caucus Constituent Caucus Constituent Yearling Census,NULL,NULL,0,NULL,NULL 46972,184706,133,Good Answer Good Answer Nice Answer Enlightened Popular Question Yearling Caucus Great Question Custodian Announcer Caucus Yearling Nice Answer Famous Question Documentation User Caucus Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 46973,17137,1102975,NULL,NULL,NULL,0,NULL,NULL 46974,249896,265900,NULL,NULL,NULL,0,NULL,NULL 46975,84228,490781,NULL,NULL,NULL,0,NULL,NULL 46976,113625,46363,Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 46977,50217,475032,NULL,NULL,NULL,0,NULL,NULL 46978,888771,14275,Yearling Nice Answer Custodian Great Answer,NULL,NULL,0,NULL,NULL 46979,7477,1020996,Popular Question Self-Learner Notable Question Great Answer Necromancer Yearling Good Answer Necromancer Notable Question Nice Answer Enlightened Yearling Great Answer Guru Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 46980,89957,600279,Popular Question,NULL,NULL,0,NULL,NULL 46981,805630,108578,Good Answer Yearling Nice Answer Enlightened Good Answer Good Question Good Answer Yearling jquery Yearling Nice Answer,NULL,NULL,0,NULL,NULL 46982,145437,725944,Yearling Announcer Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 46983,42327,623651,NULL,NULL,NULL,0,NULL,NULL 46984,25302,394282,Yearling Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 46985,64125,911993,NULL,NULL,NULL,0,NULL,NULL 46986,363513,1056594,Popular Question Custodian,NULL,NULL,0,NULL,NULL 46987,25784,241990,Yearling Nice Answer Enlightened Guru spring-mvc java Good Answer spring-security Announcer Custodian Yearling Nice Answer Enlightened Nice Answer Enlightened Guru Mortarboard Nice Answer Announcer Necromancer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Census Announcer Good Answer Nice Answer Enlightened Good Answer Good Answer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46988,242779,584839,Promoter Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 46989,427244,1483344,Yearling Good Answer,NULL,NULL,0,NULL,NULL 46990,1975371,1257538,Caucus,NULL,NULL,0,NULL,NULL 46991,82920,1207111,NULL,NULL,NULL,0,NULL,NULL 46992,230333,778234,Socratic Revival Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Revival Notable Question Caucus Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Famous Question Necromancer Notable Question Popular Question Yearling Necromancer Popular Question Caucus Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Notable Question Census Nice Answer Notable Question Popular Question Popular Question Notable Question Notable Question Caucus Constituent Cleanup Popular Question Yearling Good Answer Notable Question Great Answer,NULL,NULL,0,NULL,NULL 46993,413786,345232,Student,NULL,NULL,0,NULL,NULL 46994,134519,288043,Yearling,NULL,NULL,0,NULL,NULL 46995,23818,660397,NULL,NULL,NULL,0,NULL,NULL 46996,15106,1466825,Commentator Yearling Famous Question Citizen Patrol Critic Yearling Yearling Tenacious Yearling Unsung Hero Yearling Announcer Excavator,NULL,NULL,0,NULL,NULL 46997,59700,543859,NULL,NULL,NULL,0,NULL,NULL 46998,92334,240418,Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Census Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 46999,1601040,732773,NULL,NULL,NULL,0,NULL,NULL 47000,460319,283811,NULL,NULL,NULL,0,NULL,NULL 47001,284433,456295,Necromancer Yearling Commentator Self-Learner Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 47002,91224,251630,Great Question Notable Question Yearling Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 47003,15754,320261,NULL,NULL,NULL,0,NULL,NULL 47004,367020,973366,NULL,NULL,NULL,0,NULL,NULL 47005,179286,452625,Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 47006,63886,286027,Necromancer Autobiographer Editor Nice Answer,NULL,NULL,0,NULL,NULL 47007,218619,970245,NULL,NULL,NULL,0,NULL,NULL 47008,210168,271561,Famous Question Good Question Yearling Popular Question Popular Question Famous Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 47009,522572,818292,Teacher,NULL,NULL,0,NULL,NULL 47010,293963,69346,Popular Question Socratic Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Great Answer Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Nice Answer Famous Question Notable Question Notable Question Popular Question Famous Question Nice Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 47011,3914,614844,Scholar Good Answer Yearling Civic Duty Yearling Guru Nice Answer Census Yearling Good Answer,NULL,pYou can use href https github com emberjs ember js blob b186e6e3fa000f1960c8837530dff7416a1e7e0a packages ember routing lib system router js L294 rel nofollow noreferrer codeRouter generate code which delegates to the href https github com tildeio router js blob 6caee7215527607970df5d5021ea3421f0c1b159 lib router router js L258 rel nofollow noreferrer router js library ph2 href http emberjs jsbin com sulusudumu edit html js output rel nofollow noreferrer Ember Example h2pre codeApp Ember Application create App Router map function this resource post path posts post id function this route edit App Post Ember Object extend App IndexRoute Ember Route extend model function return App Post create id title am post App Post create id title am post App Post create id title am post actions showUrl function post alert this router generate post edit post code preh2 href http emberjs jsbin com ecEYixo edit html js output rel nofollow noreferrer Ember Example h2pre codeApp Ember Application create App Router map function this resource post path posts post id function this route edit App Post Ember Object extend App IndexRoute Ember Route extend model function return App Post create id title am post App Post create id title am post App Post create id title am post actions showUrl function post alert this router generate post edit post code prepThis is what the code link to code helper uses under the hood ve added JSBin link to an example with Ember It still appears to work,0,NULL,NULL 47012,39428,110300,Great Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47013,801491,1527421,Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47014,555409,1473674,NULL,NULL,NULL,0,NULL,NULL 47015,228046,977347,NULL,NULL,NULL,0,NULL,NULL 47016,846146,706913,Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 47017,917585,100849,NULL,NULL,NULL,0,NULL,NULL 47018,4282,690363,Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 47019,359399,757214,Custodian Good Answer Good Answer ios swift Favorite Question Notable Question Yearling Guru Notable Question Guru Nice Answer Enlightened Reviewer Caucus Constituent Nice Answer Enlightened Strunk & White Census Enthusiast Great Answer Yearling Caucus Notable Question Popular Question Great Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 47020,215535,222531,Teacher,NULL,NULL,0,NULL,NULL 47021,673695,497084,Revival Mortarboard Custodian Custodian Notable Question Famous Question Revival Notable Question Notable Question Revival Popular Question Notable Question Famous Question Yearling Good Answer Excavator Notable Question Revival Revival Census Popular Question Nice Question Popular Question Nice Question Caucus Famous Question Nice Answer Enlightened Populist Popular Question Yearling Census Notable Question Notable Question Caucus Notable Question Popular Question Notable Question Nice Question Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 47022,427890,935584,Revival Documentation User,NULL,NULL,0,NULL,NULL 47023,191214,1381075,NULL,NULL,NULL,0,NULL,NULL 47024,685183,422287,Famous Question Nice Answer Custodian Promoter Benefactor Popular Question Yearling Good Answer Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 47025,6449139,1333915,NULL,NULL,NULL,0,NULL,NULL 47026,386049,1372282,Popular Question Revival Critic,NULL,NULL,0,NULL,NULL 47027,1519285,1186881,Student Scholar,NULL,NULL,0,NULL,NULL 47028,660266,226456,NULL,NULL,NULL,0,NULL,NULL 47029,218008,762009,NULL,NULL,NULL,0,NULL,NULL 47030,223901,755023,Yearling Excavator Nice Answer,NULL,NULL,0,NULL,NULL 47031,152885,419704,Notable Question,NULL,NULL,0,NULL,NULL 47032,32730,1290619,Supporter Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 47033,581303,1265502,NULL,NULL,NULL,0,NULL,NULL 47034,1042958,995489,Census Revival,NULL,NULL,0,NULL,NULL 47035,168569,167827,Popular Question Popular Question Popular Question Nice Question Famous Question Yearling Popular Question Notable Question Famous Question Nice Question Notable Question Yearling Nice Answer Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 47036,3222,317829,Notable Question,NULL,NULL,0,NULL,NULL 47037,1432242,1433609,NULL,NULL,NULL,0,NULL,NULL 47038,83045,71683,Yearling Yearling Notable Question Notable Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 47039,59940,1438376,NULL,NULL,NULL,0,NULL,NULL 47040,322985,628775,NULL,NULL,NULL,0,NULL,NULL 47041,142321,680780,NULL,NULL,NULL,0,NULL,NULL 47042,3024,437540,Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 47043,34392,415546,NULL,NULL,NULL,0,NULL,NULL 47044,181557,1560168,NULL,NULL,NULL,0,NULL,NULL 47045,897748,478214,NULL,NULL,NULL,0,NULL,NULL 47046,6392146,478214,NULL,NULL,NULL,0,NULL,NULL 47047,8980664,478214,NULL,NULL,NULL,0,NULL,NULL 47048,3553208,478214,NULL,NULL,NULL,0,NULL,NULL 47049,2949513,478214,NULL,NULL,NULL,0,NULL,NULL 47050,2033397,558879,NULL,NULL,NULL,0,NULL,NULL 47051,3059687,558879,NULL,NULL,NULL,0,NULL,NULL 47052,914834,558879,NULL,NULL,NULL,0,NULL,NULL 47053,129375,1103275,NULL,NULL,NULL,0,NULL,NULL 47054,905232,188842,NULL,NULL,NULL,0,NULL,NULL 47055,162387,462714,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47056,5642470,1431392,NULL,NULL,NULL,0,NULL,NULL 47057,204951,347616,Great Question,NULL,NULL,0,NULL,NULL 47058,215478,1433122,NULL,NULL,NULL,0,NULL,NULL 47059,41337,1189662,Notable Question Informed Caucus Tumbleweed Scholar Yearling Popular Question Caucus Constituent Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47060,753929,1468944,NULL,NULL,NULL,0,NULL,NULL 47061,587569,266951,Popular Question,NULL,NULL,0,NULL,NULL 47062,426885,801586,Critic,NULL,NULL,0,NULL,NULL 47063,64560,632785,NULL,NULL,NULL,0,NULL,NULL 47064,526323,1453080,Popular Question Yearling Caucus Yearling Civic Duty,NULL,NULL,0,NULL,NULL 47065,1188,782323,Excavator Yearling Good Answer Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 47066,27574,1413533,Revival Supporter Necromancer Commentator,NULL,pI was unable to get Mystic answer to work with POSIX regular expressions so wrote one that works with POSIX regular expressions and PERL regular expressions ppIt should match pulliIPv6 addresses lilizero compressed IPv6 addresses href https tools ietf org html rfc5952 section rel noreferrer section of rfc5952 lililink local IPv6 addresses with zone index href https tools ietf org html rfc4007 section 11 rel noreferrer section 11 of rfc4007 liliIPv4 Embedded IPv6 Address href https tools ietf org html rfc6052 section rel noreferrer section of rfc6052 liliIPv4 mapped IPv6 addresses href https tools ietf org html rfc2765 section rel noreferrer section of rfc2765 liliIPv4 translated addresses href https tools ietf org html rfc2765 section rel noreferrer section of rfc2765 li ulpIPv6 Regular Expression ppre code 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA fe80 9a fA 9a zA ffff 25 25 9a fA 25 25 code prepFor ease of reading the following is the above regular expression split at major OR points into separate lines ppre code IPv6 RegEx 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA 9a fA fe80 9a fA 9a zA fe80 eth0 fe80 link local IPv6 addresses with zone index ffff 25 25 255 255 255 255 ffff 255 255 255 255 ffff 255 255 255 255 IPv4 mapped IPv6 addresses and IPv4 translated addresses 9a fA 25 25 2001 db8 192 33 64 ff9b 192 33 IPv4 Embedded IPv6 Address IPv4 RegEx 25 25 code prepTo make the above easier to understand the following pseudo code replicates the above ppre codeIPV4SEG 25 IPV4ADDR IPV4SEG IPV4SEGIPV6SEG 9a fA IPV6ADDR IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG IPV6SEG fe80 IPV6SEG 9a zA fe80 eth0 fe80 link local IPv6 addresses with zone index ffff IPV4ADDR 255 255 255 255 ffff 255 255 255 255 ffff 255 255 255 255 IPv4 mapped IPv6 addresses and IPv4 translated addresses IPV6SEG IPV4ADDR 2001 db8 192 33 64 ff9b 192 33 IPv4 Embedded IPv6 Address code prepI posted script on GitHub which tests the regular expression href https gist github com syzdek 6086792 rel noreferrer https gist github com syzdek 6086792 Failing test case fe80 0202 B3FF FE1E 8329,0,NULL,NULL 47067,189248,976709,Notable Question Nice Answer Notable Question Notable Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 47068,2015455,607655,Yearling Notable Question Necromancer Favorite Question Nice Question Popular Question Notable Question Nice Answer Famous Question Nice Answer Popular Question Great Question Notable Question Yearling Famous Question Favorite Question Nice Question Popular Question Famous Question Nice Question Nice Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 47069,166550,911710,NULL,NULL,NULL,0,NULL,NULL 47070,292646,1176187,NULL,NULL,NULL,0,NULL,NULL 47071,379235,875744,NULL,NULL,NULL,0,NULL,NULL 47072,3539,1225133,NULL,NULL,NULL,0,NULL,NULL 47073,7427,494708,NULL,NULL,NULL,0,NULL,NULL 47074,321186,1003881,NULL,NULL,NULL,0,NULL,NULL 47075,935401,234910,Popular Question Civic Duty Popular Question Caucus Nice Answer Yearling Notable Question Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47076,123199,833844,Proofreader Notable Question Revival Announcer Yearling Good Answer Good Answer Good Answer Popular Question Nice Answer Yearling Notable Question Popular Question Good Answer Census Nice Answer Nice Question Yearling Notable Question Revival Notable Question Necromancer,NULL,NULL,0,NULL,NULL 47077,795672,136479,Popular Question Civic Duty Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 47078,488400,884265,NULL,NULL,NULL,0,NULL,NULL 47079,126947,173586,Tumbleweed Popular Question Nice Question Notable Question Custodian Nice Answer Yearling Caucus Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 47080,23500,1068324,Yearling,NULL,NULL,0,NULL,NULL 47081,776876,1419510,NULL,NULL,NULL,0,NULL,NULL 47082,33802,140332,NULL,NULL,NULL,0,NULL,NULL 47083,218128,1204994,Nice Answer Yearling Announcer Scholar Commentator,NULL,NULL,0,NULL,NULL 47084,103612,952901,Popular Question Popular Question Notable Question Good Question Great Answer Popular Question Yearling Nice Question Famous Question Notable Question Yearling Notable Question Famous Question Notable Question Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47085,79433,932337,NULL,NULL,NULL,0,NULL,NULL 47086,266950,795623,NULL,NULL,NULL,0,NULL,NULL 47087,5142,293352,Great Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened python Yearling Nice Question Good Answer Caucus Notable Question Announcer Yearling Civic Duty Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 47088,5585,1145225,NULL,NULL,NULL,0,NULL,NULL 47089,1167494,871446,NULL,NULL,NULL,0,NULL,NULL 47090,544352,492578,NULL,NULL,NULL,0,NULL,NULL 47091,689050,1500994,NULL,NULL,NULL,0,NULL,NULL 47092,248117,647687,NULL,NULL,NULL,0,NULL,NULL 47093,3217366,1144941,NULL,NULL,NULL,0,NULL,NULL 47094,870689,1144941,NULL,NULL,NULL,0,NULL,NULL 47095,174793,1087287,NULL,NULL,NULL,0,NULL,NULL 47096,7914907,696002,NULL,NULL,NULL,0,NULL,NULL 47097,1600498,981332,NULL,NULL,NULL,0,NULL,NULL 47098,126767,950678,Notable Question,NULL,NULL,0,NULL,NULL 47099,160349,1343451,NULL,NULL,NULL,0,NULL,NULL 47100,979824,1099230,Excavator Caucus Constituent Proofreader Yearling Nice Answer Enlightened python Custodian Suffrage Civic Duty Custodian Custodian Caucus Constituent Documentation User Popular Question Good Answer Reviewer Yearling Census Caucus Constituent Guru Announcer,NULL,NULL,0,NULL,NULL 47101,187572,457925,NULL,NULL,NULL,0,NULL,NULL 47102,187699,457925,NULL,NULL,NULL,0,NULL,NULL 47103,140266,477967,NULL,NULL,NULL,0,NULL,NULL 47104,2458,426414,NULL,NULL,NULL,0,NULL,NULL 47105,103208,1037525,NULL,NULL,NULL,0,NULL,NULL 47106,2822385,1037525,NULL,NULL,NULL,0,NULL,NULL 47107,1317769,321938,Commentator Necromancer,NULL,NULL,0,NULL,NULL 47108,1250662,321938,Commentator Necromancer,NULL,NULL,0,NULL,NULL 47109,60419,321938,Commentator Necromancer,NULL,NULL,0,NULL,NULL 47110,375937,903499,NULL,NULL,NULL,0,NULL,NULL 47111,522284,17911,Populist Necromancer Famous Question Famous Question Famous Question Yearling Good Answer Popular Question Civic Duty Yearling Cleanup Nice Answer Enlightened Guru Nice Question Yearling Nice Answer Enlightened Good Question,NULL,Rasterizing GDAL layer python gis gdal rasterizing strongEdit strong ppHere is the proper way to do it and the href http gdal org gdal alg 8h html dfe5e5d287d6c184aab03acbfa567cb1 rel nofollow noreferrer documentation ppre codeimport randomfrom osgeo import gdal ogr RASTERIZE COLOR FIELD color def rasterize pixel size 25 Open the data source orig data source ogr Open test shp Make copy of the layer data source because we ll need to modify its attributes table source ds ogr GetDriverByName Memory CopyDataSource orig data source source layer source ds GetLayer source srs source layer GetSpatialRef min max min max source layer GetExtent Create field in the source layer to hold the features colors field def ogr FieldDefn RASTERIZE COLOR FIELD ogr OFTReal source layer CreateField field def source layer def source layer GetLayerDefn field index source layer def GetFieldIndex RASTERIZE COLOR FIELD Generate random values for the color field it here that the value of the attribute should be used but you get the idea for feature in source layer feature SetField field index random randint 255 source layer SetFeature feature Create the destination data source res int max min pixel size res int max min pixel size target ds gdal GetDriverByName GTiff Create test tif res res gdal GDT Byte target ds SetGeoTransform min pixel size max pixel size if source srs Make the target raster have the same projection as the source target ds SetProjection source srs ExportToWkt else Source has no projection needs GDAL gt to work target ds SetProjection LOCAL CS arbitrary Rasterize err gdal RasterizeLayer target ds source layer burn values options ATTRIBUTE RASTERIZE COLOR FIELD if err raise Exception error rasterizing layer err code prep strongOriginal question strong ppI looking for information on how to use codeosgeo gdal RasterizeLayer code the docstring is very succinct and can find it in the or API docs only found doc for the href http map hut fi doc Geo GDAL html class geo html be1fb3f92ce85b06950935d6ccd83984 rel nofollow noreferrer java bindings ppI adapted href http svn osgeo org gdal trunk autotest alg rasterize py rel nofollow noreferrer unit test and tried it on shp made of polygons ppre codeimport osimport sysfrom osgeo import gdal gdalconst ogr osrdef rasterize Create raster to rasterize into target ds gdal GetDriverByName GTiff Create test tif 1280 1024 gdal GDT Byte Create layer to rasterize from cutline ds ogr Open data shp Run the algorithm err gdal RasterizeLayer target ds cutline ds GetLayer burn values 200 220 240 if err print error err if name main rasterize code prepIt runs fine but all obtain is black tif ppWhat the codeburn values code parameter for Can codeRasterizeLayer code be used to rasterize layer with features colored differently based on the value of an attribute ppIf it can what should use Is href http www antigrain com rel nofollow noreferrer AGG suitable for rendering geographic data want strongno strong antialiasing and very robust renderer able to draw very large and very small features correctly possibly from dirty data degenerate polygons etc and sometimes specified in large coordinates ppHere the polygons are differentiated by the value of an attribute the colors don matter just want to have different one for each value of the attribute you can try but IIRC if you modify the original data source it will also modify it on disk,0,NULL,NULL 47112,400381,791548,NULL,NULL,NULL,0,NULL,NULL 47113,194742,652817,Editor,NULL,NULL,0,NULL,NULL 47114,604458,1334400,NULL,NULL,NULL,0,NULL,NULL 47115,8650,902856,Supporter Census Nice Question Editor Yearling,NULL,NULL,0,NULL,NULL 47116,882383,511854,NULL,NULL,NULL,0,NULL,NULL 47117,477983,587451,NULL,NULL,NULL,0,NULL,NULL 47118,123143,709635,Notable Question Good Question Notable Question Notable Question Favorite Question Nice Answer Enlightened Yearling Famous Question Popular Question Popular Question Notable Question Favorite Question Popular Question Popular Question Great Question Great Question Notable Question Famous Question Excavator Nice Question Nice Question Popular Question Yearling Stellar Question Notable Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 47119,234073,378321,Census Famous Question,NULL,NULL,0,NULL,NULL 47120,191505,1475355,NULL,NULL,NULL,0,NULL,NULL 47121,254777,715030,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47122,109415,231662,Yearling,NULL,NULL,0,NULL,NULL 47123,180748,444689,NULL,NULL,NULL,0,NULL,NULL 47124,1461324,1281881,NULL,NULL,NULL,0,NULL,NULL 47125,61212,636145,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47126,784980,288170,Yearling Popular Question Nice Answer Caucus Constituent Famous Question Popular Question Yearling Caucus Notable Question Notable Question Civic Duty Caucus Yearling,NULL,NULL,0,NULL,NULL 47127,1352582,1319331,Necromancer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 47128,103188,494055,NULL,NULL,NULL,0,NULL,NULL 47129,7996,670670,NULL,NULL,NULL,0,NULL,NULL 47130,100640,1227312,NULL,NULL,NULL,0,NULL,NULL 47131,158146,429288,Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 47132,325528,579643,Notable Question,NULL,NULL,0,NULL,NULL 47133,78471,486556,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 47134,210130,1226541,NULL,NULL,NULL,0,NULL,NULL 47135,102146,1395300,NULL,NULL,NULL,0,NULL,NULL 47136,177969,768297,NULL,NULL,NULL,0,NULL,NULL 47137,299280,1097131,Curious,NULL,NULL,0,NULL,NULL 47138,1351033,997369,NULL,NULL,NULL,0,NULL,NULL 47139,216401,268820,Revival Revival Yearling Necromancer Scholar,NULL,NULL,0,NULL,NULL 47140,468304,550899,NULL,NULL,NULL,0,NULL,NULL 47141,584991,1454606,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 47142,1465213,1419229,NULL,NULL,NULL,0,NULL,NULL 47143,167939,826758,Tag Editor Teacher Popular Question,NULL,NULL,0,NULL,NULL 47144,200250,1477416,Yearling Custodian,NULL,NULL,0,NULL,NULL 47145,311875,1258819,NULL,NULL,NULL,0,NULL,NULL 47146,443909,1291679,NULL,NULL,NULL,0,NULL,NULL 47147,3811240,1307384,Critic Popular Question Excavator Notable Question,NULL,NULL,0,NULL,NULL 47148,182560,473992,NULL,NULL,NULL,0,NULL,NULL 47149,88707,386086,NULL,NULL,NULL,0,NULL,NULL 47150,35758,207297,NULL,NULL,NULL,0,NULL,NULL 47151,27701,418036,NULL,NULL,NULL,0,NULL,NULL 47152,170617,553055,NULL,NULL,NULL,0,NULL,NULL 47153,491600,1014294,NULL,NULL,NULL,0,NULL,NULL 47154,95868,444574,NULL,NULL,NULL,0,NULL,NULL 47155,1511869,1117912,Nice Answer Enlightened Yearling Curious Yearling,NULL,NULL,0,NULL,NULL 47156,657965,458497,NULL,NULL,NULL,0,NULL,NULL 47157,78758,950999,NULL,NULL,NULL,0,NULL,NULL 47158,604933,950999,NULL,NULL,NULL,0,NULL,NULL 47159,136029,413070,NULL,NULL,NULL,0,NULL,NULL 47160,379191,1369400,Nice Answer,NULL,NULL,0,NULL,NULL 47161,161948,180668,NULL,NULL,NULL,0,NULL,NULL 47162,450477,542476,NULL,NULL,NULL,0,NULL,NULL 47163,99668,1449665,NULL,NULL,NULL,0,NULL,NULL 47164,660685,978263,Critic,NULL,NULL,0,NULL,NULL 47165,4267635,334266,Great Question Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47166,618138,648629,NULL,NULL,NULL,0,NULL,NULL 47167,293044,150393,Nice Question,NULL,NULL,0,NULL,NULL 47168,1083956,1433823,NULL,NULL,NULL,0,NULL,NULL 47169,437340,860403,Yearling Nice Question Famous Question Famous Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47170,271148,1080822,NULL,NULL,NULL,0,NULL,NULL 47171,768680,933749,Student,NULL,NULL,0,NULL,NULL 47172,387742,1060560,NULL,NULL,NULL,0,NULL,NULL 47173,47643,488487,Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 47174,33521,635293,Yearling Yearling,NULL,NULL,0,NULL,NULL 47175,585630,1017389,NULL,NULL,NULL,0,NULL,NULL 47176,262865,672522,NULL,NULL,NULL,0,NULL,NULL 47177,2995292,1395776,NULL,NULL,NULL,0,NULL,NULL 47178,2411417,1395776,NULL,NULL,NULL,0,NULL,NULL 47179,676013,1395776,NULL,NULL,NULL,0,NULL,NULL 47180,3946990,1395776,NULL,NULL,NULL,0,NULL,NULL 47181,711982,1455078,NULL,NULL,NULL,0,NULL,NULL 47182,17225,726648,NULL,NULL,NULL,0,NULL,NULL 47183,173028,493320,NULL,NULL,NULL,0,NULL,NULL 47184,484122,307392,Teacher,NULL,NULL,0,NULL,NULL 47185,258071,709733,NULL,NULL,NULL,0,NULL,NULL 47186,2253621,709733,NULL,NULL,NULL,0,NULL,NULL 47187,1521041,761581,Notable Question,NULL,NULL,0,NULL,NULL 47188,19916,1240433,Editor Student Scholar,NULL,NULL,0,NULL,NULL 47189,296613,689464,Teacher Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Civic Duty Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47190,83040,1093543,NULL,NULL,NULL,0,NULL,NULL 47191,20751,191067,Editor,NULL,NULL,0,NULL,NULL 47192,621486,321882,Notable Question Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 47193,110190,936130,NULL,NULL,NULL,0,NULL,NULL 47194,1368995,788475,Nice Answer Yearling Yearling Great Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 47195,708625,520522,NULL,NULL,NULL,0,NULL,NULL 47196,186748,657837,NULL,NULL,NULL,0,NULL,NULL 47197,1228696,646517,NULL,NULL,NULL,0,NULL,NULL 47198,1553561,288658,NULL,NULL,NULL,0,NULL,NULL 47199,168559,791293,NULL,NULL,NULL,0,NULL,NULL 47200,65089,920273,NULL,NULL,NULL,0,NULL,NULL 47201,5885,137786,Popular Question Yearling Great Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47202,155477,1137948,NULL,NULL,NULL,0,NULL,NULL 47203,65204,795632,NULL,NULL,NULL,0,NULL,NULL 47204,1111148,642235,NULL,NULL,NULL,0,NULL,NULL 47205,6169979,738391,NULL,NULL,NULL,0,NULL,NULL 47206,37914,738391,NULL,NULL,NULL,0,NULL,NULL 47207,582887,803055,Popular Question Yearling,NULL,NULL,0,NULL,NULL 47208,1325732,846072,NULL,NULL,NULL,0,NULL,NULL 47209,53549,844960,Necromancer,NULL,NULL,0,NULL,NULL 47210,322195,212730,Popular Question Famous Question Notable Question Popular Question Popular Question Yearling Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47211,18412,634956,Popular Question,NULL,NULL,0,NULL,NULL 47212,164317,80144,Nice Answer Yearling Electorate Revival Custodian Citizen Patrol Yearling Announcer Necromancer Great Answer Yearling Booster Notable Question,NULL,NULL,0,NULL,NULL 47213,452083,514054,Necromancer Nice Question Nice Answer Yearling Critic Notable Question Yearling Autobiographer Commentator Good Answer Good Answer,NULL,NULL,0,NULL,NULL 47214,302478,277210,Yearling Notable Question Great Question Yearling Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 47215,316048,160476,Notable Question Yearling Nice Question Nice Answer Yearling Good Answer Nice Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 47216,105900,1078264,NULL,NULL,NULL,0,NULL,NULL 47217,191357,387473,Necromancer,NULL,NULL,0,NULL,NULL 47218,120892,970629,NULL,NULL,NULL,0,NULL,NULL 47219,189993,194784,Popular Question Nice Answer Enlightened Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 47220,926572,1046297,Good Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Inquisitive Notable Question Necromancer Yearling Nice Answer Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Good Answer Popular Question Popular Question Popular Question Revival Yearling Notable Question Nice Question Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 47221,969787,477648,Good Answer Good Answer Yearling Caucus Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 47222,178953,594770,NULL,NULL,NULL,0,NULL,NULL 47223,80684,336924,NULL,NULL,NULL,0,NULL,NULL 47224,154900,512980,NULL,NULL,NULL,0,NULL,NULL 47225,377608,672654,Popular Question,NULL,NULL,0,NULL,NULL 47226,160639,1156388,Student Necromancer,NULL,NULL,0,NULL,NULL 47227,160842,760081,NULL,NULL,NULL,0,NULL,NULL 47228,9194,637283,Yearling Necromancer Announcer Nice Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 47229,881011,637283,Yearling Necromancer Announcer Nice Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 47230,2266907,1475155,Informed Autobiographer,NULL,NULL,0,NULL,NULL 47231,651533,1475155,Informed Autobiographer,NULL,NULL,0,NULL,NULL 47232,501869,29799,Popular Question Yearling Notable Question Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 47233,113205,1536635,NULL,NULL,NULL,0,NULL,NULL 47234,1278491,684832,NULL,NULL,NULL,0,NULL,NULL 47235,9183,684832,NULL,NULL,NULL,0,NULL,NULL 47236,884035,516017,NULL,NULL,NULL,0,NULL,NULL 47237,27909,467840,Nice Answer Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 47238,2070407,467840,Nice Answer Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 47239,874499,918180,NULL,NULL,NULL,0,NULL,NULL 47240,2218934,880877,Yearling Nice Answer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47241,194007,1122524,Revival,NULL,NULL,0,NULL,NULL 47242,157031,138906,NULL,NULL,NULL,0,NULL,NULL 47243,116305,56035,NULL,NULL,NULL,0,NULL,NULL 47244,201420,904336,NULL,NULL,NULL,0,NULL,NULL 47245,336136,980903,Yearling Documentation User Announcer Great Answer,NULL,NULL,0,NULL,NULL 47246,277490,887968,NULL,NULL,NULL,0,NULL,NULL 47247,231635,14214,Nice Answer,NULL,NULL,0,NULL,NULL 47248,273,143447,Populist Good Answer Excavator Yearling Good Answer Yearling Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 47249,1509740,474025,Popular Question,NULL,NULL,0,NULL,NULL 47250,188310,1144640,Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 47251,1563711,923056,NULL,NULL,NULL,0,NULL,NULL 47252,140269,1306542,Notable Question,NULL,NULL,0,NULL,NULL 47253,625444,122711,NULL,NULL,NULL,0,NULL,NULL 47254,625473,122711,NULL,NULL,NULL,0,NULL,NULL 47255,7686,275722,NULL,NULL,NULL,0,NULL,NULL 47256,424567,1466117,Popular Question Yearling,NULL,NULL,0,NULL,NULL 47257,154490,455282,NULL,NULL,NULL,0,NULL,NULL 47258,651024,520861,NULL,NULL,NULL,0,NULL,NULL 47259,164837,794873,NULL,NULL,NULL,0,NULL,NULL 47260,1386306,332890,Nice Answer Necromancer Popular Question Autobiographer Yearling Caucus Revival Nice Answer,NULL,NULL,0,NULL,NULL 47261,304940,454162,NULL,NULL,,0,, 47262,44779,813803,Popular Question Caucus Nice Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47263,314526,921501,Necromancer,NULL,NULL,0,NULL,NULL 47264,73203,472900,Popular Question,NULL,NULL,0,NULL,NULL 47265,4628389,472900,Popular Question,NULL,NULL,0,NULL,NULL 47266,2498357,809828,NULL,NULL,NULL,0,NULL,NULL 47267,364056,1117526,NULL,NULL,NULL,0,NULL,NULL 47268,16086,298287,NULL,NULL,NULL,0,NULL,NULL 47269,465758,893857,Nice Answer Yearling Critic Autobiographer Yearling,NULL,NULL,0,NULL,NULL 47270,1228458,289067,NULL,NULL,NULL,0,NULL,NULL 47271,109178,376860,NULL,NULL,NULL,0,NULL,NULL 47272,175000,628166,NULL,NULL,NULL,0,NULL,NULL 47273,2687876,127257,Famous Question Notable Question Good Question Popular Question Notable Question Nice Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Answer Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Popular Question Famous Question Good Question Famous Question Famous Question Famous Question Nice Question Notable Question Nice Question Popular Question Good Question Popular Question Popular Question Notable Question Nice Question Famous Question Notable Question Good Question Great Question Notable Question Nice Question Nice Question Notable Question Yearling Nice Question Popular Question Caucus Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Famous Question Famous Question Nice Question Popular Question Good Question Famous Question Revival Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47274,108228,1136313,Enthusiast Commentator Informed,NULL,NULL,0,NULL,NULL 47275,4348,8367,Nice Answer Tumbleweed Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 47276,941654,1026158,NULL,NULL,NULL,0,NULL,NULL 47277,8946,853909,Caucus Scholar Editor,NULL,NULL,0,NULL,NULL 47278,58130,1544193,Supporter Nice Answer Caucus Critic Necromancer Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 47279,501028,1223310,Popular Question,NULL,NULL,0,NULL,NULL 47280,6211529,1171806,Yearling Caucus Yearling Census Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 47281,2154518,1171806,Yearling Caucus Yearling Census Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 47282,119181,1093511,Yearling Good Answer Announcer Yearling Custodian Announcer Caucus Constituent Guru,NULL,NULL,0,NULL,NULL 47283,10768663,393786,Popular Question Popular Question Nice Answer Enlightened Famous Question Popular Question Famous Question Famous Question Good Question Great Answer Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Self-Learner Good Question Yearling Famous Question Popular Question Good Answer Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 47284,413474,393786,Popular Question Popular Question Nice Answer Enlightened Famous Question Popular Question Famous Question Famous Question Good Question Great Answer Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Self-Learner Good Question Yearling Famous Question Popular Question Good Answer Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 47285,127345,228358,Custodian Nice Answer Famous Question Announcer Custodian Yearling Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 47286,4067572,1465386,Yearling,NULL,NULL,0,NULL,NULL 47287,257090,1238702,Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 47288,142836,245532,NULL,NULL,NULL,0,NULL,NULL 47289,128834,1027723,Critic Announcer Revival Announcer Yearling Booster Revival Announcer Necromancer Announcer Yearling Nice Answer Announcer Popular Question Yearling Announcer,NULL,NULL,1,NULL,YouTube Apps Script API only runnable by accounts without YouTube channel google apps script google apps pThis is such strange issue and there seems to be no documentation of it anywhere online ppWhenever try to execute script that requires authorization to access an API the code will only continue executing after authorization if choose to authorize it from GMail account but not YouTube account ppThe code literally does not execute after choosing to authorize it from YouTube account Even Logger Log call on Line of the function will not trigger unless the code is authorized from GMail account only pp strongWhen authorizing from YouTube account it will continually loop and request authorization forever without continuing When authorizing from GMail account the code doesn work because it is requesting YouTube data strong ppThe problem of course is that trying to access Analytics data from my YouTube account which the GMail account does not have ppReally hoping someone is able to provide insight into this ve tested in multiple browsers different YouTube accounts GMails etc and the issue persists ppIt also happens with any code that requests YouTube Analytics API Replicable with the sample code found here pasted below href https developers google com youtube analytics v1 code samples apps script export youtube analytics data to google sheets rel nofollow noreferrer https developers google com youtube analytics v1 code samples apps script export youtube analytics data to google sheets ppre codefunction spreadsheetAnalytics Get the channel ID var myChannels YouTube Channels list id mine true var channel myChannels items var channelId channel id Set the dates for our report var today new Date var oneMonthAgo new Date oneMonthAgo setMonth today getMonth var todayFormatted Utilities formatDate today UTC yyyy MM dd var oneMonthAgoFormatted Utilities formatDate oneMonthAgo UTC yyyy MM dd The YouTubeAnalytics Reports query function has four required parameters and one optional parameter The first parameter identifies the channel or content owner for which you are retrieving data The second and third parameters specify the start and end dates for the report respectively The fourth parameter identifies the metrics that you are retrieving The fifth parameter is an object that contains any additional optional parameters dimensions filters sort etc that you want to set var analyticsResponse YouTubeAnalytics Reports query channel channelId oneMonthAgoFormatted todayFormatted views likes dislikes shares dimensions day sort day Create new Spreadsheet with rows and columns corresponding to our dates var ssName YouTube channel report oneMonthAgoFormatted todayFormatted var numRows analyticsResponse rows length var numCols analyticsResponse columnHeaders length Add an extra row for column headers var ssNew SpreadsheetApp create ssName numRows numCols Get the first sheet var sheet ssNew getSheets Get the range for the title columns Remember spreadsheets are indexed whereas arrays are indexed var headersRange sheet getRange numCols var headers These column headers will correspond with the metrics requested in the initial call views likes dislikes shares for var in analyticsResponse columnHeaders var columnHeader analyticsResponse columnHeaders var columnName columnHeader name headers columnName This takes dimensional array headersRange setValues headers Bold and freeze the column names headersRange setFontWeight bold sheet setFrozenRows Get the data range and set the values var dataRange sheet getRange numRows numCols dataRange setValues analyticsResponse rows Bold and freeze the dates var dateHeaders sheet getRange numRows dateHeaders setFontWeight bold sheet setFrozenColumns Include the headers in our range The headers are used to label the axes var range sheet getRange numRows numCols var chart sheet newChart asColumnChart setStacked addRange range setPosition 10 10 build sheet insertChart chart youtube gs code pre pThere is href https issuetracker google com issues 36764531 rel nofollow noreferrer related issue ticket which Google have marked as Wont fix which describes your problem pblockquote pIf you are trying to use the YouTube API to get data about YouTube Channel that you manage using the Google association system it will get you stuck in an infinite loop Google pages can “own” YouTube channel and the authorization will not work when trying to use one of those channels blockquotepGoogle do have href https issuetracker google com issues 36764531 comment2 rel nofollow noreferrer suggested workaround pblockquote puse the OAuth2 library to authorize access to the page and then use UrlFetchApp instead of the YouTube Advanced service to make requests to the API blockquotepAs this is problem ve also encountered ve href https mashe hawksey info 2017 09 identity crisis using the youtube api with google apps script and scheduling live broadcasts from google sheets rel nofollow noreferrer published detailed tutorial that uses the YouTube Data API As the code you require also needs access via to the YouTube Analytics API there is some additional setup required detailed below and referencing the part in the tutorial polliAdd YouTube Analytics library with id code1MWD64g7dq ZhlN8HU O6BRu5xNwywhp8V76utKowZEtcirEgO3t JFFL code Part lili pAdd additional scopes to codegetYouTubeService code for codeyt analytics monetary readonly code and codeyt analytics readonly code Part ppre code Set the scope and additional Google specific parameters setScope https www googleapis com auth youtube https www googleapis com auth youtube force ssl https www googleapis com auth youtube readonly https www googleapis com auth youtubepartner https www googleapis com auth youtubepartner channel audit https www googleapis com auth yt analytics monetary readonly https www googleapis com auth yt analytics readonly code pre lili pEnabling the YouTube Analytics API as well as the YouTube Data API Part li olpThere is also some minor modification in your code sample as to enable the library autocomplete codeYouTube Channels list code becomes codeYouTube channelsList code and codeYouTubeAnalytics Reports query code becomes codeYouTubeAnalytics reportsQuery code ppAll these changes have been included in href https docs google com spreadsheets 1lHsqCxwCqw hGgsLvtY0ALueOFgZ8r0vG9Yny3tYs9Y copy rel nofollow noreferrer this example sheet You ll still need to do all the setup of the console project outlined in the tutorial and in the codeauth gs code sheet ve modified the example to run in code code to avoid app verification pp strong emNote em strong when you run codelogRedirectUri code you need to authenticate with your Google Drive account and when copy the authentication url in new browser tab select the YouTube account you want data for 47290,813236,387169,Curious Popular Question Yearling Caucus Custodian Custodian Informed Autobiographer Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 47291,61587,1084843,NULL,NULL,NULL,0,NULL,NULL 47292,12320,116899,Notable Question xamarin.ios Yearling Popular Question Nice Question Yearling Nice Answer Enlightened macos Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 47293,2668644,850109,NULL,NULL,NULL,0,NULL,NULL 47294,1445626,127013,Great Question Favorite Question Nice Question Great Answer Nice Question Great Answer Good Question Great Answer Good Answer Yearling Popular Question Nice Question Nice Question Famous Question Nice Answer Popular Question Great Answer Popular Question Good Question Popular Question Favorite Question Yearling Nice Question Famous Question Notable Question Nice Answer Good Question Popular Question Taxonomist Announcer Necromancer Yearling Famous Question Popular Question Favorite Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 47295,27303,127013,Great Question Favorite Question Nice Question Great Answer Nice Question Great Answer Good Question Great Answer Good Answer Yearling Popular Question Nice Question Nice Question Famous Question Nice Answer Popular Question Great Answer Popular Question Good Question Popular Question Favorite Question Yearling Nice Question Famous Question Notable Question Nice Answer Good Question Popular Question Taxonomist Announcer Necromancer Yearling Famous Question Popular Question Favorite Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 47296,324066,895723,Popular Question Informed Citizen Patrol Autobiographer Suffrage Excavator Custodian Custodian Custodian Vox Populi Investor Organizer Civic Duty Self-Learner Revival Explainer Yearling Necromancer Altruist Mortarboard Yearling Good Question Good Question,NULL,NULL,0,NULL,NULL 47297,399811,235292,NULL,NULL,NULL,0,NULL,NULL 47298,1685506,671786,NULL,NULL,NULL,0,NULL,NULL 47299,262137,810109,Necromancer Yearling Popular Question Nice Answer Yearling Announcer Notable Question Announcer Announcer Custodian Yearling Announcer Tag Editor Caucus Good Answer Caucus Yearling Civic Duty Announcer Popular Question,NULL,NULL,0,NULL,NULL 47300,932624,225388,NULL,NULL,NULL,0,NULL,NULL 47301,7841018,1177577,Editor,NULL,NULL,0,NULL,NULL 47302,8086592,1177577,Editor,NULL,NULL,0,NULL,NULL 47303,25707,829394,NULL,NULL,NULL,0,NULL,NULL 47304,147588,1356003,NULL,NULL,NULL,0,NULL,NULL 47305,423564,143704,Popular Question,NULL,NULL,0,NULL,NULL 47306,163078,658125,NULL,NULL,NULL,0,NULL,NULL 47307,118827,523214,NULL,NULL,NULL,0,NULL,NULL 47308,2858930,1152349,NULL,NULL,NULL,0,NULL,NULL 47309,157564,331030,Yearling Necromancer Popular Question Nice Answer Informed Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 47310,1547948,1215745,Nice Answer Yearling Popular Question Nice Question Famous Question Yearling Famous Question Famous Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47311,344880,1215745,Nice Answer Yearling Popular Question Nice Question Famous Question Yearling Famous Question Famous Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47312,1036523,209754,NULL,NULL,NULL,0,NULL,NULL 47313,4618958,1534321,NULL,NULL,NULL,0,NULL,NULL 47314,282469,1391266,NULL,NULL,NULL,0,NULL,NULL 47315,534712,235279,NULL,NULL,NULL,0,NULL,NULL 47316,753176,452466,Popular Question Yearling Famous Question Notable Question Famous Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 47317,20679,553982,Popular Question,NULL,NULL,0,NULL,NULL 47318,4259560,1220149,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 47319,77402,203326,NULL,NULL,NULL,0,NULL,NULL 47320,534954,582116,NULL,NULL,NULL,0,NULL,NULL 47321,234621,757435,Popular Question,NULL,NULL,0,NULL,NULL 47322,511768,551712,Autobiographer,NULL,NULL,0,NULL,NULL 47323,36013,581953,NULL,NULL,NULL,0,NULL,NULL 47324,1579,98555,Yearling Popular Question Nice Question Announcer Popular Question Notable Question Notable Question Notable Question Nice Question Documentation User Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 47325,27548,549269,Necromancer,NULL,NULL,0,NULL,NULL 47326,258570,709684,Notable Question Caucus Announcer Caucus,NULL,NULL,0,NULL,NULL 47327,10322224,709684,Notable Question Caucus Announcer Caucus,NULL,NULL,0,NULL,NULL 47328,8126,235016,NULL,NULL,NULL,0,NULL,NULL 47329,6556990,235016,NULL,NULL,NULL,0,NULL,NULL 47330,270349,672760,Yearling Custodian Promoter Benefactor,NULL,NULL,0,NULL,NULL 47331,4375611,672760,Yearling Custodian Promoter Benefactor,NULL,NULL,0,NULL,NULL 47332,584750,769275,Nice Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Answer Autobiographer Famous Question Famous Question Yearling Famous Question Nice Question Notable Question Nice Answer Notable Question Notable Question Popular Question Popular Question Notable Question Good Answer Notable Question Revival Nice Question Yearling Popular Question Popular Question Popular Question Guru Popular Question,NULL,NULL,0,NULL,NULL 47333,1420997,1312932,Popular Question,NULL,NULL,0,NULL,NULL 47334,3640160,1312932,Popular Question,NULL,NULL,0,NULL,NULL 47335,35735,123219,Yearling Popular Question Custodian Yearling Explainer Yearling Tenacious Scholar Caucus Constituent Yearling Citizen Patrol Custodian Revival Custodian Necromancer Unsung Hero Good Answer Yearling Caucus three.js Announcer Documentation User Civic Duty Custodian Notable Question Caucus Constituent Revival Self-Learner Yearling Nice Answer Custodian Nice Answer Enlightened javascript Nice Answer Necromancer Guru,NULL,NULL,0,NULL,NULL 47336,469507,1052251,NULL,NULL,NULL,0,NULL,NULL 47337,243353,1333261,Yearling Notable Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 47338,1204409,809597,Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 47339,244964,433509,Editor Excavator Census Commentator Nice Answer Documentation User Critic,NULL,NULL,0,NULL,NULL 47340,160547,237176,NULL,NULL,NULL,0,NULL,NULL 47341,46625,295666,Famous Question,NULL,NULL,0,NULL,NULL 47342,96849,979387,Necromancer Nice Answer Famous Question Yearling Caucus Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 47343,134877,186556,Yearling Popular Question Caucus Yearling Good Answer Populist Census Yearling Custodian,NULL,NULL,1,NULL,Is it possible to cast Foo to ubyte size at compile time pIs it possible to cast codeFoo code to codeubyte size code at compile time ppHere is bit more context ppre class lang prettyprint override codestruct Algebraic Types if Types length lt char max import std traits Largest import std meta IndexOf static immutable maxSize Largest Types sizeof this in if IndexOf Types is type IndexOf Types data cast ubyte maxSize amp void opAssign in if IndexOf Types is type IndexOf Types data cast ubyte maxSize amp inout peek inout if type is IndexOf Types return cast inout amp data return null private ubyte maxSize data char type char max struct Branch int index int left int right struct Leaf int index struct Foo alias Node Algebraic Branch Leaf Node Branch Error cannot convert amp const Branch to ubyte 12 at compile time code prepThe problem is that can not cast codeBranch code to codeubyte maxSize code at compile time pI am not aware of any clean approach one that would make use of compiler knowledge of ABI because CTFE is very conservative in preventing reinterpretation However if this is blocker it is possible to build up byte array manually making use of the fact struct ABI is very simple ppre codeimport std traits ubyte sizeof reinterpret if hasIndirections typeof return result static if is struct size offset foreach ref field tupleof result offset offset field sizeof reinterpret field offset field sizeof else static if is ulong for auto lt sizeof result cast ubyte gt gt else handle floating types arrays etc return result struct int static immutable bytes reinterpret 42 42 pragma msg bytes code prepThere is one huge limitation with this approach you are required to adjust to proper ABI manually Stuff like endianess is trivial but handling field alignment properly is likely to be pain am not even trying to do so in this snippet 47344,206667,792734,Necromancer Popular Question Famous Question Yearling Popular Question Custodian Excavator Revival Electorate Good Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 47345,328538,298435,Nice Question,NULL,NULL,0,NULL,NULL 47346,42692,88374,Good Answer visual-studio Nice Answer Enlightened Popular Question Notable Question Yearling Nice Answer Enlightened Good Answer Enlightened Good Answer Guru Guru Nice Answer Nice Answer Enlightened Revival Guru Good Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Necromancer Notable Question Popular Question Necromancer Announcer Nice Answer Enlightened Yearling Enlightened Popular Question Enlightened Good Answer,NULL,NULL,0,NULL,NULL 47347,912656,59271,NULL,NULL,NULL,0,NULL,NULL 47348,15252,615665,NULL,NULL,NULL,0,NULL,NULL 47349,287294,445193,NULL,NULL,NULL,0,NULL,NULL 47350,344626,1208517,NULL,NULL,NULL,0,NULL,NULL 47351,498910,981965,NULL,NULL,NULL,0,NULL,NULL 47352,665461,38058,Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 47353,1505766,925775,Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 47354,251172,1201900,Necromancer,NULL,NULL,0,NULL,NULL 47355,85987,44954,Nice Answer Enlightened Commentator,NULL,NULL,0,NULL,NULL 47356,176618,392769,NULL,NULL,NULL,0,NULL,NULL 47357,33718,451734,NULL,NULL,NULL,0,NULL,NULL 47358,175889,988461,Enthusiast Supporter,NULL,NULL,0,NULL,NULL 47359,364424,1152710,NULL,NULL,NULL,0,NULL,NULL 47360,131602,673275,NULL,NULL,NULL,0,NULL,NULL 47361,573454,878877,Popular Question Nice Answer Peer Pressure Nice Answer Yearling Guru Notable Question Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47362,169655,1221625,NULL,NULL,NULL,0,NULL,NULL 47363,4194367,1221625,NULL,NULL,NULL,0,NULL,NULL 47364,408615,1123386,Enthusiast Popular Question Curious Custodian Teacher Self-Learner Civic Duty,NULL,NULL,0,NULL,NULL 47365,144139,787288,NULL,NULL,NULL,0,NULL,NULL 47366,364718,289827,Necromancer Popular Question Civic Duty Popular Question Good Answer Notable Question Yearling Organizer Popular Question Nice Answer Nice Answer Notable Question Caucus Yearling Popular Question Famous Question Popular Question Autobiographer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47367,1157372,936182,Yearling Excavator Necromancer Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 47368,202935,1562296,Popular Question Nice Answer Favorite Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Popular Question Yearling Nice Answer Nice Question Notable Question Famous Question Yearling Great Question,NULL,NULL,0,NULL,NULL 47369,1107512,620823,NULL,NULL,NULL,0,NULL,NULL 47370,1122490,1056671,NULL,NULL,NULL,0,NULL,NULL 47371,23658,779538,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47372,1065676,754765,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47373,583932,227868,Yearling Necromancer,NULL,NULL,0,NULL,NULL 47374,919004,452446,NULL,NULL,NULL,0,NULL,NULL 47375,96608,850252,Popular Question Yearling Notable Question Yearling Notable Question Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 47376,309495,371667,Good Answer,NULL,NULL,0,NULL,NULL 47377,638131,271317,Announcer Notable Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 47378,116599,703576,NULL,NULL,NULL,0,NULL,NULL 47379,2652509,1553888,php arrays mysql Custodian javascript Custodian Nice Answer Enlightened Yearling Reviewer jquery Caucus Nice Answer Enlightened Constituent Scholar Copy Editor html Mortarboard Census php Deputy Caucus Yearling Documentation User Census arrays Nice Answer Enlightened Caucus Cleanup Nice Answer Nice Answer Enlightened Enlightened Steward Refiner Sportsmanship Yearling laravel,NULL,NULL,0,NULL,NULL 47380,212517,550143,NULL,NULL,NULL,0,NULL,NULL 47381,211328,1269190,NULL,NULL,NULL,0,NULL,NULL 47382,181949,43495,Popular Question Editor,NULL,NULL,0,NULL,NULL 47383,250279,12460,Self-Learner Notable Question Notable Question Yearling Popular Question Caucus Popular Question Custodian Notable Question Caucus Yearling Good Question Enlightened Good Answer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 47384,1534297,926003,NULL,NULL,NULL,0,NULL,NULL 47385,1045243,975993,NULL,NULL,NULL,0,NULL,NULL 47386,351742,222773,Good Answer Yearling Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 47387,406163,1157235,Popular Question Supporter Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 47388,401203,471100,Popular Question Famous Question Popular Question Notable Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47389,292125,1509793,Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 47390,73101,1271690,Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 47391,318201,23312,Custodian Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47392,211633,776852,NULL,NULL,NULL,0,NULL,NULL 47393,206824,715373,Student,NULL,NULL,0,NULL,NULL 47394,206827,715373,Student,NULL,NULL,0,NULL,NULL 47395,81075,217931,Caucus Yearling Guru Enlightened Nice Answer Custodian Good Answer Caucus Great Answer Yearling Census Custodian Custodian Reviewer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 47396,271908,1322749,NULL,NULL,NULL,0,NULL,NULL 47397,180857,279827,Informed Autobiographer Editor Excavator,NULL,NULL,0,NULL,NULL 47398,236944,75420,NULL,NULL,NULL,0,NULL,NULL 47399,137141,109897,Good Question Popular Question Announcer Yearling Good Answer Good Question Nice Question Necromancer Yearling Necromancer Necromancer Good Answer Notable Question Nice Question Yearling Good Answer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 47400,413776,844732,Necromancer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 47401,151727,910237,NULL,NULL,NULL,0,NULL,NULL 47402,316951,308825,Guru Good Answer Guru Guru Yearling Nice Answer Caucus Constituent twig Nice Answer Enlightened Guru symfony Yearling Guru Guru Nice Answer Caucus Constituent Nice Answer Enlightened Documentation User Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Census Nice Answer Enlightened Caucus Constituent Yearling,NULL,pInstead of lengthy replace try this one ppre codepublic static function slugify text replace non letter or digits by text preg replace pL text transliterate text iconv utf us ascii TRANSLIT text remove unwanted characters text preg replace text trim text trim text remove duplicate text preg replace text lowercase text strtolower text if empty text return return text code prepThis was based off the one in Symfony Jobeet tutorial ereg was deprecated long time ago don use it pInstead of lengthy replace try this one ppre codepublic static function slugify text replace non letter or digits by text preg replace pL text transliterate text iconv utf us ascii TRANSLIT text remove unwanted characters text preg replace text trim text trim text remove duplicate text preg replace text lowercase text strtolower text if empty text return return text code prepThis was based off the one in Symfony Jobeet tutorial Should work try it and have fun,0,NULL,NULL 47403,377270,753738,Revival Custodian Nice Answer Enlightened Good Answer Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 47404,1026105,13326,Tumbleweed Yearling Curious Yearling Yearling,NULL,NULL,0,NULL,NULL 47405,446590,892170,Nice Question Yearling Notable Question Yearling django Nice Answer Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 47406,185861,24220,NULL,NULL,NULL,0,NULL,NULL 47407,78604,2972,Popular Question Notable Question Nice Question Great Answer Yearling Notable Question Popular Question Nice Answer Enlightened Good Question Census Notable Question Announcer Famous Question Announcer Announcer Yearling Famous Question Good Answer Famous Question Nice Question Yearling Famous Question Announcer Announcer Good Question Notable Question,NULL,NULL,0,NULL,NULL 47408,28212,1250136,NULL,NULL,NULL,0,NULL,NULL 47409,243118,332321,NULL,NULL,NULL,0,NULL,NULL 47410,77113,1222833,Revival,NULL,NULL,0,NULL,NULL 47411,1217585,75666,NULL,NULL,NULL,0,NULL,NULL 47412,75594,1247922,Famous Question Good Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 47413,885630,1247922,Famous Question Good Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 47414,123379,1236379,Teacher Supporter,NULL,NULL,0,NULL,NULL 47415,106766,944800,NULL,NULL,NULL,0,NULL,NULL 47416,1143691,479711,Popular Question,NULL,NULL,0,NULL,NULL 47417,236034,868244,Editor,NULL,NULL,0,NULL,NULL 47418,978973,785167,Critic Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47419,28893,778296,Popular Question Good Question Yearling Popular Question Nice Question Notable Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 47420,1177537,1229518,NULL,NULL,NULL,0,NULL,NULL 47421,451507,196244,Custodian Necromancer Yearling Popular Question Yearling Necromancer Announcer Nice Answer Nice Answer Yearling,NULL,pI use this simple function ppre codeString prototype format function var formatted this for var arg in arguments formatted formatted replace arg arguments arg return formatted code prepThat very similar to string format ppre code is dead but is alive format ASP ASP NET code pre The function is unsafe as it sometimes interprets within the strings passed to it format you should only see this you should not see this,0,NULL,NULL 47422,8155676,473141,Promoter Autobiographer Caucus Custodian Cleanup,NULL,NULL,0,NULL,NULL 47423,68226,1497009,Informed,NULL,NULL,0,NULL,NULL 47424,243632,363992,Yearling Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 47425,8530,1460582,Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Yearling Explainer Good Answer Popular Question Popular Question Revival Necromancer Yearling Custodian Nice Answer Necromancer Popular Question Notable Question Necromancer Popular Question Notable Question Revival Yearling Announcer,NULL,NULL,0,NULL,NULL 47426,8919,744047,NULL,NULL,NULL,0,NULL,NULL 47427,270079,10275,NULL,NULL,NULL,0,NULL,NULL 47428,17530,736466,NULL,NULL,NULL,0,NULL,NULL 47429,9060,170851,Nice Answer Popular Question Great Answer Good Answer Nice Question Guru Revival Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Notable Question Popular Question Notable Question Yearling Documentation User Great Answer Populist Inquisitive Popular Question Enlightened Yearling,NULL,pThis is what you should do Please don use codestringify code nor code lt gt code ppre codefunction arraysEqual if return true if null null return false if length length return false If you don care about the order of the elements inside the array you should sort both arrays here Please note that calling sort on an array will modify that array you might want to clone your array first for var lt length if return false return true code pre you can potentially get lots of false positives with the other options,0,NULL,NULL 47430,150902,292085,Yearling Good Answer Populist Announcer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 47431,81719,1295040,Famous Question Editor Nice Question,NULL,NULL,0,NULL,NULL 47432,150872,408142,Popular Question Revival Yearling Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 47433,52234,406973,NULL,NULL,NULL,0,NULL,NULL 47434,25296,910599,Yearling Editor Excavator,NULL,NULL,0,NULL,NULL 47435,558879,441556,Revival Critic Popular Question Caucus Yearling Popular Question Notable Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 47436,183473,1244848,NULL,NULL,NULL,0,NULL,NULL 47437,1173742,692955,NULL,NULL,NULL,0,NULL,NULL 47438,229009,95624,Good Answer Yearling Popular Question Nice Question Yearling Guru Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47439,61816,702786,Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47440,1326849,1316127,NULL,NULL,NULL,0,NULL,NULL 47441,461322,798979,NULL,NULL,NULL,0,NULL,NULL 47442,23453,1014292,NULL,NULL,NULL,0,NULL,NULL 47443,468209,1170294,NULL,NULL,NULL,0,NULL,NULL 47444,4203,391930,NULL,NULL,NULL,0,NULL,NULL 47445,1553202,442362,Popular Question Great Answer Yearling Nice Answer Great Answer Good Question Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 47446,2635709,442362,Popular Question Great Answer Yearling Nice Answer Great Answer Good Question Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 47447,379864,64245,Yearling,NULL,NULL,0,NULL,NULL 47448,13658,447415,NULL,NULL,NULL,0,NULL,NULL 47449,428786,884627,NULL,NULL,NULL,0,NULL,NULL 47450,154775,336916,Critic Famous Question,NULL,NULL,0,NULL,NULL 47451,325916,246263,Yearling Nice Answer Enlightened Guru Popular Question Nice Answer Necromancer ruby-on-rails Nice Answer Nice Answer Enlightened Nice Answer Guru Caucus Constituent Notable Question Good Answer Good Answer Good Answer Yearling Archaeologist Census Good Answer Good Answer Populist Nice Answer java Popular Question Caucus Constituent Necromancer Documentation User Nice Answer Guru Good Answer Necromancer Announcer Yearling Census Announcer Caucus Good Answer Constituent Good Answer Great Answer Popular Question Nice Answer Good Answer linux,NULL,NULL,0,NULL,NULL 47452,193903,532918,NULL,NULL,NULL,0,NULL,NULL 47453,1216964,550149,Promoter Nice Question Benefactor,NULL,NULL,0,NULL,NULL 47454,234118,800993,NULL,NULL,NULL,0,NULL,NULL 47455,204840,125085,Popular Question Good Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 47456,822308,472139,Yearling Popular Question,NULL,NULL,0,NULL,NULL 47457,101761,867708,NULL,NULL,NULL,0,NULL,NULL 47458,2091415,1281398,Caucus Popular Question Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 47459,11371,95901,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 47460,605186,986690,Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47461,223282,812680,Great Answer Yearling Nice Answer Nice Answer Yearling Nice Answer Enlightened Announcer Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 47462,223415,812680,Great Answer Yearling Nice Answer Nice Answer Yearling Nice Answer Enlightened Announcer Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 47463,326260,673206,Notable Question Popular Question Notable Question Nice Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Nice Answer Revival Custodian Organizer Custodian Notable Question Necromancer Announcer Famous Question Nice Answer Nice Answer Popular Question Announcer Revival Popular Question Good Question Favorite Question Notable Question Yearling Caucus Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 47464,37069,303134,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 47465,7992951,716095,Custodian Editor Tumbleweed,NULL,NULL,0,NULL,NULL 47466,94191,716095,Custodian Editor Tumbleweed,NULL,NULL,0,NULL,NULL 47467,292580,752415,Popular Question,NULL,NULL,0,NULL,NULL 47468,141374,1365759,Nice Answer Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 47469,4289417,1170233,Editor Popular Question,NULL,NULL,0,NULL,NULL 47470,53170,1170233,Editor Popular Question,NULL,NULL,0,NULL,NULL 47471,83459,581620,Census Documentation User,NULL,NULL,0,NULL,NULL 47472,153731,779937,Yearling Custodian Caucus Constituent Notable Question Custodian Caucus Constituent Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 47473,435415,1537447,Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 47474,1014540,958768,NULL,NULL,NULL,0,NULL,NULL 47475,52269,133514,Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Guru Good Answer Nice Answer Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 47476,362127,395842,Notable Question Popular Question Good Question Popular Question Famous Question Favorite Question Famous Question Notable Question Popular Question Yearling Popular Question Great Question Yearling Notable Question Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 47477,46532,1002757,NULL,NULL,NULL,0,NULL,NULL 47478,54234,474252,NULL,NULL,NULL,0,NULL,NULL 47479,383002,381313,Caucus Caucus,NULL,NULL,0,NULL,NULL 47480,210451,107498,Yearling,NULL,NULL,0,NULL,NULL 47481,1152406,107498,Yearling,NULL,NULL,0,NULL,NULL 47482,309381,295130,Good Answer Yearling Yearling Good Answer Caucus Popular Question ios Yearling,NULL,NULL,0,NULL,NULL 47483,211124,406196,Good Answer Yearling Nice Answer Yearling Yearling Yearling Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 47484,173064,115541,Yearling Tumbleweed Student Nice Answer Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 47485,230283,304210,Critic Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 47486,221199,1308256,Necromancer,NULL,NULL,0,NULL,NULL 47487,30892,119895,Famous Question Popular Question Populist Nice Question Great Answer Revival Good Question Good Answer Great Answer Nice Question Popular Question Popular Question Yearling Nice Question Nice Answer Enlightened Notable Question Good Question Notable Question Nice Answer Notable Question Great Answer Great Answer Good Answer Good Answer Famous Question Nice Answer Enlightened Notable Question Guru Booster Yearling Notable Question Nice Answer Favorite Question Famous Question Notable Question Guru Great Question Notable Question Nice Answer Enlightened Great Answer Good Question Nice Answer Yearling Great Answer Guru Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47488,521243,814316,Yearling Notable Question Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 47489,262804,1557405,Necromancer,NULL,NULL,0,NULL,NULL 47490,104762,668750,Census Notable Question,NULL,NULL,0,NULL,NULL 47491,147299,559765,NULL,NULL,NULL,0,NULL,NULL 47492,898161,611430,Informed Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 47493,8097206,367252,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47494,205282,367252,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47495,8004244,299268,Announcer,NULL,NULL,0,NULL,NULL 47496,634534,844951,Revival,NULL,NULL,0,NULL,NULL 47497,197564,588937,NULL,NULL,NULL,0,NULL,NULL 47498,137798,416037,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 47499,291566,1258710,NULL,NULL,NULL,0,NULL,NULL 47500,367194,340581,Commentator Announcer,NULL,,0,, 47501,433929,868376,Popular Question,NULL,NULL,0,NULL,NULL 47502,396985,1186091,Critic,NULL,NULL,0,NULL,NULL 47503,9410350,1186091,Critic,NULL,NULL,0,NULL,NULL 47504,219424,67366,Custodian Yearling Good Answer Notable Question Notable Question Notable Question Notable Question Famous Question Yearling Stellar Question Favorite Question Nice Answer Stellar Question Yearling Nice Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47505,49024,191790,NULL,NULL,NULL,0,NULL,NULL 47506,893558,354866,Popular Question,NULL,NULL,0,NULL,NULL 47507,155501,1233616,NULL,NULL,NULL,0,NULL,NULL 47508,159664,108112,Revival Revival Yearling,NULL,NULL,0,NULL,NULL 47509,147123,826793,NULL,NULL,NULL,0,NULL,NULL 47510,114710,826793,NULL,NULL,NULL,0,NULL,NULL 47511,716828,292977,Teacher,NULL,NULL,0,NULL,NULL 47512,390363,338903,Self-Learner Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 47513,616533,1136744,NULL,NULL,NULL,0,NULL,NULL 47514,1030,484870,NULL,NULL,NULL,0,NULL,NULL 47515,896069,608955,NULL,NULL,NULL,0,NULL,NULL 47516,180547,478581,NULL,NULL,NULL,0,NULL,NULL 47517,284447,921701,Student Supporter,NULL,NULL,0,NULL,NULL 47518,199459,732772,Yearling Student Announcer Scholar Yearling,NULL,NULL,0,NULL,NULL 47519,358838,914123,Yearling Necromancer Announcer Revival Popular Question Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 47520,86139,119008,NULL,NULL,NULL,0,NULL,NULL 47521,168385,15963,Nice Answer,NULL,NULL,0,NULL,NULL 47522,1101417,1232543,NULL,NULL,NULL,0,NULL,NULL 47523,370917,779872,NULL,NULL,NULL,0,NULL,NULL 47524,263110,540150,NULL,NULL,NULL,0,NULL,NULL 47525,180964,121850,Popular Question Nice Question Revival Nice Question Popular Question,NULL,NULL,0,NULL,NULL 47526,189066,330290,Student Informed,NULL,NULL,0,NULL,NULL 47527,904668,3037,Good Answer Popular Question Notable Question Yearling Caucus Census Popular Question Tumbleweed Yearling Census Custodian Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 47528,478196,919488,NULL,NULL,NULL,0,NULL,NULL 47529,443478,432779,Yearling Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 47530,378878,911898,NULL,NULL,NULL,0,NULL,NULL 47531,187319,1307988,Popular Question Critic,NULL,NULL,0,NULL,NULL 47532,664500,1145954,Popular Question Census Caucus Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 47533,390548,666520,Yearling Yearling Popular Question Nice Question Nice Answer Notable Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 47534,12681,30681,Popular Question,NULL,NULL,0,NULL,NULL 47535,1855383,743137,NULL,NULL,NULL,0,NULL,NULL 47536,64530,27038,Yearling Good Question Critic,NULL,NULL,0,NULL,NULL 47537,404953,142578,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 47538,131294,1327972,Good Answer,NULL,NULL,0,NULL,NULL 47539,41032,16390,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 47540,642126,983551,NULL,NULL,NULL,0,NULL,NULL 47541,643457,225170,NULL,NULL,NULL,0,NULL,NULL 47542,20553,424978,Yearling Notable Question Custodian Custodian Census Populist Yearling,NULL,NULL,0,NULL,NULL 47543,475964,304368,NULL,NULL,NULL,0,NULL,NULL 47544,1205685,1498744,NULL,NULL,NULL,0,NULL,NULL 47545,330096,165751,Nice Answer Census,NULL,NULL,0,NULL,NULL 47546,601506,1430242,NULL,NULL,NULL,0,NULL,NULL 47547,468553,1488238,NULL,NULL,NULL,0,NULL,NULL 47548,1154795,731985,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47549,133889,134675,Famous Question,NULL,NULL,0,NULL,NULL 47550,689913,460570,Yearling,NULL,NULL,0,NULL,NULL 47551,679366,480488,Popular Question Documentation User Census,NULL,NULL,0,NULL,NULL 47552,552346,758970,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47553,9221,456472,NULL,NULL,NULL,0,NULL,NULL 47554,28859,1345513,NULL,NULL,NULL,0,NULL,NULL 47555,1613967,1345513,NULL,NULL,NULL,0,NULL,NULL 47556,675685,1521520,NULL,NULL,NULL,0,NULL,NULL 47557,504032,1180165,NULL,NULL,NULL,0,NULL,NULL 47558,1563776,1248839,NULL,NULL,NULL,0,NULL,NULL 47559,308812,1337637,Yearling Nice Answer Popular Question Yearling Yearling Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 47560,161,182676,Notable Question Nice Answer Good Answer Guru Good Answer Nice Answer Notable Question Yearling Caucus Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Notable Question Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Popular Question Nice Question macos Census Nice Answer Famous Question Guru Announcer Yearling Good Question,NULL,NULL,0,NULL,NULL 47561,324610,246795,Popular Question Notable Question Teacher Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 47562,128962,464249,Good Answer,NULL,NULL,0,NULL,NULL 47563,28927,943551,NULL,NULL,NULL,0,NULL,NULL 47564,1756209,327029,Nice Answer Enlightened Notable Question Nice Answer Yearling Autobiographer Nice Question,NULL,NULL,0,NULL,NULL 47565,435751,853708,Supporter,NULL,NULL,0,NULL,NULL 47566,78115,673702,NULL,NULL,NULL,0,NULL,NULL 47567,190102,1232718,Yearling,NULL,NULL,0,NULL,NULL 47568,333544,83679,Good Question,NULL,NULL,0,NULL,NULL 47569,659504,888627,NULL,NULL,NULL,0,NULL,NULL 47570,211460,696617,NULL,NULL,NULL,0,NULL,NULL 47571,1060,111517,NULL,NULL,NULL,0,NULL,NULL 47572,298688,486558,Revival Good Answer Notable Question Yearling Guru Nice Question twitter-bootstrap Popular Question jquery html Popular Question Yearling Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 47573,1424738,782851,NULL,NULL,NULL,0,NULL,NULL 47574,214390,457886,Good Answer Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 47575,16013,97020,Critic Self-Learner Popular Question Yearling Notable Question Commentator Announcer Census Popular Question,NULL,NULL,0,NULL,NULL 47576,140183,19470,Notable Question Informed Famous Question Nice Question Good Question Popular Question Popular Question Benefactor Popular Question Famous Question,NULL,NULL,0,NULL,NULL 47577,20196,229001,Populist Curious Necromancer Nice Answer Enlightened Announcer Yearling Popular Question Custodian Nice Answer Enlightened Custodian Nice Answer Documentation User Good Answer Yearling Cleanup Announcer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47578,2779,371575,Yearling,NULL,NULL,0,NULL,NULL 47579,11141,495617,NULL,NULL,NULL,0,NULL,NULL 47580,288971,117552,Nice Question,NULL,NULL,0,NULL,NULL 47581,591488,319077,Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47582,203747,988966,Nice Answer Fanatic Guru Yearling Nice Answer Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 47583,202026,988966,Nice Answer Fanatic Guru Yearling Nice Answer Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 47584,98722,769135,NULL,NULL,NULL,0,NULL,NULL 47585,1199137,909449,NULL,NULL,NULL,0,NULL,NULL 47586,40367,1018341,Supporter,NULL,NULL,0,NULL,NULL 47587,566732,1160443,Popular Question Nice Question Popular Question Critic Popular Question Census Promoter Custodian Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 47588,483209,1057448,Necromancer Yearling Nice Answer Yearling Good Answer Yearling Yearling Yearling Yearling Census Great Answer Yearling,NULL,NULL,0,NULL,NULL 47589,1162142,619803,NULL,NULL,NULL,0,NULL,NULL 47590,3173501,1171729,Popular Question,NULL,NULL,0,NULL,NULL 47591,373785,1171729,Popular Question,NULL,NULL,0,NULL,NULL 47592,249022,486387,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 47593,2009913,518923,Popular Question Popular Question Custodian Popular Question Popular Question Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 47594,221423,302840,Notable Question,NULL,NULL,0,NULL,NULL 47595,1099726,1364457,NULL,NULL,NULL,0,NULL,NULL 47596,183348,1045646,NULL,NULL,NULL,0,NULL,NULL 47597,130242,1538365,NULL,NULL,NULL,0,NULL,NULL 47598,87217,1248592,Revival Yearling Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47599,135247,87967,Popular Question Notable Question Popular Question Revival Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 47600,59599,834114,Promoter Yearling Popular Question Good Answer Notable Question Guru Popular Question Popular Question Notable Question Yearling Notable Question Yearling Notable Question Benefactor,NULL,NULL,0,NULL,NULL 47601,2416,623260,Civic Duty Great Question Yearling Revival Revival Caucus Constituent Announcer Necromancer Yearling Nice Answer Curious,NULL,NULL,0,NULL,NULL 47602,365110,651131,Popular Question Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47603,165405,793928,NULL,NULL,NULL,0,NULL,NULL 47604,328173,12248,Good Answer Good Answer Guru Good Answer Nice Answer Great Answer Great Answer Great Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Guru Guru Yearling Populist Nice Answer Good Answer Guru Good Answer Great Answer Good Answer Great Answer Guru Nice Answer Yearling Nice Answer Enlightened Guru Documentation User Enlightened Census Good Answer Populist Nice Answer Enlightened Guru Yearling Popular Question Nice Answer Enlightened Guru Guru,NULL,NULL,0,NULL,NULL 47605,1159642,548268,NULL,NULL,NULL,0,NULL,NULL 47606,167108,349653,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 47607,241791,45629,Famous Question Yearling Famous Question Nice Question Famous Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 47608,899602,23984,NULL,NULL,NULL,0,NULL,NULL 47609,1595433,431714,Famous Question Notable Question Popular Question Notable Question Nice Question Notable Question Nice Question Custodian Yearling Famous Question Good Question Notable Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 47610,11987,232619,Good Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Yearling Famous Question Famous Question Popular Question Notable Question Yearling Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 47611,75652,1485677,Yearling Promoter Benefactor phpmyadmin Yearling Populist Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 47612,198803,763276,NULL,NULL,NULL,0,NULL,NULL 47613,68551,1210849,NULL,NULL,NULL,0,NULL,NULL 47614,1910,188969,Yearling Popular Question Popular Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 47615,183293,862048,NULL,NULL,NULL,0,NULL,NULL 47616,888583,818642,NULL,NULL,NULL,0,NULL,NULL 47617,1230444,281259,NULL,NULL,NULL,0,NULL,NULL 47618,1255617,1431871,NULL,NULL,NULL,0,NULL,NULL 47619,858807,1025412,Nice Question Yearling Notable Question Popular Question Critic Yearling Famous Question Popular Question Necromancer Notable Question Yearling Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 47620,147662,1247198,NULL,NULL,NULL,0,NULL,NULL 47621,199975,527322,Famous Question,NULL,NULL,0,NULL,NULL 47622,634097,452826,NULL,NULL,NULL,0,NULL,NULL 47623,47944,1059664,NULL,NULL,NULL,0,NULL,NULL 47624,499008,230301,NULL,NULL,NULL,0,NULL,NULL 47625,111618,252841,Popular Question Nice Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 47626,236882,702476,Nice Answer Yearling Notable Question Popular Question Nice Answer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 47627,468106,979525,NULL,NULL,NULL,0,NULL,NULL 47628,337964,1461519,NULL,NULL,NULL,0,NULL,NULL 47629,104699,438710,NULL,NULL,NULL,0,NULL,NULL 47630,364242,494860,Notable Question,NULL,NULL,0,NULL,NULL 47631,449556,456743,NULL,NULL,NULL,0,NULL,NULL 47632,137857,863520,NULL,NULL,NULL,0,NULL,NULL 47633,8582951,1209399,NULL,NULL,NULL,0,NULL,NULL 47634,32307,119357,Revival Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 47635,1727406,953803,NULL,NULL,NULL,0,NULL,NULL 47636,746682,953803,NULL,NULL,NULL,0,NULL,NULL 47637,74390,953803,NULL,NULL,NULL,0,NULL,NULL 47638,108762,76799,Popular Question Yearling Good Answer Popular Question Necromancer Stellar Question Famous Question Good Question Yearling Popular Question Famous Question Famous Question Famous Question Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47639,329828,99293,NULL,NULL,NULL,0,NULL,NULL 47640,890262,189367,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 47641,101205,539430,NULL,NULL,NULL,0,NULL,NULL 47642,752402,512806,NULL,NULL,NULL,0,NULL,NULL 47643,531243,1515088,NULL,NULL,NULL,0,NULL,NULL 47644,7087,900549,NULL,NULL,NULL,0,NULL,NULL 47645,473410,1213214,Nice Answer,NULL,NULL,0,NULL,NULL 47646,210056,667414,Tumbleweed Census,NULL,NULL,0,NULL,NULL 47647,465647,1027860,Famous Question Informed Organizer Citizen Patrol Yearling Notable Question Popular Question Caucus Constituent Caucus Constituent Famous Question Documentation User Popular Question Custodian,NULL,NULL,0,NULL,NULL 47648,216523,246234,Yearling Nice Question Notable Question Necromancer Famous Question Notable Question Famous Question Caucus Nice Question Yearling Notable Question Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 47649,117958,1020354,Teacher Nice Answer Census Good Answer Necromancer,NULL,NULL,0,NULL,NULL 47650,107139,520163,NULL,NULL,NULL,0,NULL,NULL 47651,751603,422353,Notable Question Yearling Guru Announcer Announcer Nice Answer Enlightened Announcer Announcer Caucus Yearling Nice Answer Announcer Announcer Announcer Announcer Census Announcer Announcer Announcer Announcer Booster Announcer Yearling Good Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 47652,956577,236742,NULL,NULL,NULL,0,NULL,NULL 47653,1514716,1537365,Organizer Notable Question Enthusiast Popular Question Popular Question Caucus Yearling Caucus Announcer Famous Question Yearling Popular Question Caucus Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 47654,1803745,1537365,Organizer Notable Question Enthusiast Popular Question Popular Question Caucus Yearling Caucus Announcer Famous Question Yearling Popular Question Caucus Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 47655,25649,806636,Popular Question,NULL,NULL,0,NULL,NULL 47656,649831,824871,NULL,NULL,NULL,0,NULL,NULL 47657,74774,539242,NULL,NULL,NULL,0,NULL,NULL 47658,306478,1194775,Student,NULL,NULL,0,NULL,NULL 47659,319967,161921,Nice Answer Yearling Necromancer Caucus Constituent Custodian Necromancer Nice Answer Yearling Documentation User Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Explainer Good Answer,NULL,NULL,0,NULL,NULL 47660,3813012,1111078,NULL,NULL,NULL,0,NULL,NULL 47661,119030,281904,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47662,102454,1095534,Teacher Nice Question,NULL,NULL,0,NULL,NULL 47663,76243,1249449,Documentation User,NULL,NULL,0,NULL,NULL 47664,1425776,1281389,Popular Question Editor Popular Question Teacher,NULL,NULL,0,NULL,NULL 47665,551551,1011548,NULL,NULL,NULL,0,NULL,NULL 47666,66444,987561,NULL,NULL,NULL,0,NULL,NULL 47667,155350,735363,Teacher Revival,NULL,NULL,0,NULL,NULL 47668,172377,685283,Yearling Caucus Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 47669,93015,480327,Autobiographer Scholar Student,NULL,NULL,0,NULL,NULL 47670,81659,876458,NULL,NULL,NULL,0,NULL,NULL 47671,636915,410703,NULL,NULL,NULL,0,NULL,NULL 47672,787020,305366,NULL,NULL,NULL,0,NULL,NULL 47673,635908,1038447,Yearling Caucus Popular Question Critic Nice Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47674,671277,1259266,Student Editor Scholar Informed Teacher Supporter Curious Critic Commentator,NULL,NULL,0,NULL,NULL 47675,118036,420337,Enthusiast,NULL,NULL,0,NULL,NULL 47676,286181,332573,Necromancer,NULL,NULL,0,NULL,NULL 47677,3693,1390427,Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Good Question Popular Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 47678,899338,1341273,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47679,65551,428733,NULL,NULL,NULL,0,NULL,NULL 47680,1366001,1002945,NULL,NULL,NULL,0,NULL,NULL 47681,12612,1410,NULL,NULL,NULL,0,NULL,NULL 47682,261697,631634,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47683,709028,1235114,NULL,NULL,NULL,0,NULL,NULL 47684,582720,1253427,Yearling Supporter Editor Autobiographer Custodian Excavator,NULL,NULL,0,NULL,NULL 47685,136805,421082,Notable Question,NULL,NULL,0,NULL,NULL 47686,110400,2971,Guru Nice Answer Notable Question Good Answer Yearling Caucus Nice Answer Nice Answer Enlightened Deputy Good Answer Caucus Yearling Famous Question Caucus Great Answer Nice Answer Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 47687,153655,646585,Good Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Yearling Announcer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer Guru Announcer,NULL,NULL,0,NULL,NULL 47688,215649,465368,Popular Question Popular Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 47689,1559087,582778,Nice Answer Enlightened Necromancer Notable Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 47690,110242,1000507,NULL,NULL,NULL,0,NULL,NULL 47691,177458,424106,Popular Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 47692,5830,1099068,NULL,NULL,NULL,0,NULL,NULL 47693,143334,622845,NULL,NULL,NULL,0,NULL,NULL 47694,218077,1124625,NULL,NULL,NULL,0,NULL,NULL 47695,86561,577440,Popular Question Yearling Good Answer Citizen Patrol Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 47696,2413545,1401676,Autobiographer Informed,NULL,NULL,0,NULL,NULL 47697,64653,1294897,NULL,NULL,NULL,0,NULL,NULL 47698,131163,313659,NULL,NULL,NULL,0,NULL,NULL 47699,165967,205673,NULL,NULL,NULL,0,NULL,NULL 47700,7544,1123,Yearling Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Yearling,NULL,pMy favourite is to extend jQuery with this tiny convenience ppre code fn exists function return this length code prepUsed like ppre code notAnElement exists code prepMore explicit than using length Yes But in that case you should just drop the exists check given how jQuery works It will just not do something if there is no element matching the selector,0,NULL,NULL 47701,86657,1256613,NULL,NULL,NULL,0,NULL,NULL 47702,153312,380607,Great Question Notable Question Pundit Great Answer Popular Question Notable Question Yearling Nice Answer Necromancer Inquisitive Popular Question ruby-on-rails Good Answer Nice Answer Yearling Good Answer Necromancer Necromancer Nice Answer Announcer Documentation User Custodian Necromancer Necromancer Popular Question Good Answer Announcer Electorate Necromancer Notable Question Yearling Popular Question Revival Popular Question Citizen Patrol Announcer Popular Question,NULL,pThere are several issues with each of the available methods but believe that defining an codeafter initialize code callback is the way to go for the following reasons polli codedefault scope code will initialize values for new models but then that will become the scope on which you find the model If you just want to initialize some numbers to then this is emnot em what you want liliDefining defaults in your migration also works part of the time As has already been mentioned this will emnot em work when you just call Model new liliOverriding codeinitialize code can work but don forget to call codesuper code liliUsing plugin like phusion is getting bit ridiculous This is ruby do we really need plugin just to initialize some default values liliOverriding codeafter initialize code strongis deprecated strong as of Rails When override codeafter initialize code in rails get the following warning in the console li olblockquote pDEPRECATION WARNING Base after initialize has been deprecated please use Base after initialize method instead called from Users me myapp app models my model 15 blockquotepTherefore say write an codeafter initialize code callback which lets you default attributes emin addition to em letting you set defaults on associations like so ppre code class Person lt ActiveRecord Base has one address after initialize init def init self number will set the default value only if it nil self address build address let you set default association end end code prepNow you have strongjust one strong place to look for initialization of your models using this method until someone comes up with better one ppCaveats polli pFor boolean fields do pp codeself bool field true if self bool field nil code ppSee Paul Russell comment on this answer for more details lili pIf you re only selecting subset of columns for model ie using codeselect code in query like codePerson select firstname lastname all code you will get codeMissingAttributeError code if your codeinit code method accesses column that hasn been included in the codeselect code clause You can guard against this case like so pp codeself number if self has attribute number code ppand for boolean column pp codeself bool field true if self has attribute bool value amp amp self bool field nil code ppAlso note that the syntax is different prior to Rails see Cliff Darling comment below li ol NB This solution could create odd behavior ie doing Person where number IS NULL count could return an amount of records and Person where number IS NULL would return those records but with their number actually set to which is rather counter intuitive since you would expect them to be nil pThere are several issues with each of the available methods but believe that defining an codeafter initialize code callback is the way to go for the following reasons polli codedefault scope code will initialize values for new models but then that will become the scope on which you find the model If you just want to initialize some numbers to then this is emnot em what you want liliDefining defaults in your migration also works part of the time As has already been mentioned this will emnot em work when you just call Model new liliOverriding codeinitialize code can work but don forget to call codesuper code liliUsing plugin like phusion is getting bit ridiculous This is ruby do we really need plugin just to initialize some default values liliOverriding codeafter initialize code strongis deprecated strong as of Rails When override codeafter initialize code in rails get the following warning in the console li olblockquote pDEPRECATION WARNING Base after initialize has been deprecated please use Base after initialize method instead called from Users me myapp app models my model 15 blockquotepTherefore say write an codeafter initialize code callback which lets you default attributes emin addition to em letting you set defaults on associations like so ppre code class Person lt ActiveRecord Base has one address after initialize init def init self number will set the default value only if it nil self address build address let you set default association end end code prepNow you have strongjust one strong place to look for initialization of your models using this method until someone comes up with better one ppCaveats polli pFor boolean fields do pp codeself bool field true if self bool field nil code ppSee Paul Russell comment on this answer for more details lili pIf you re only selecting subset of columns for model ie using codeselect code in query like codePerson select firstname lastname all code you will get codeMissingAttributeError code if your codeinit code method accesses column that hasn been included in the codeselect code clause You can guard against this case like so pp codeself number if self has attribute number code ppand for boolean column pp codeself bool field true if self has attribute bool value amp amp self bool field nil code ppAlso note that the syntax is different prior to Rails see Cliff Darling comment below li ol Point no longer applies guess the Rails guys implemented it When defining the default in migrations then Model new will now actually make the object with the default value Verified working in Rails 16 pI know that an answer has already been accepted but this question provided me with some food for thought and thought share another structure for Rails i18n yml files for your consideration criticism ppGiven that would like to pollikeep the default app structure so can use shorthand lazy lookups like codet some translation code in my views liliavoid as much string repetition as possible in particular with words that are not just the same but also have identical contexts meanings lilionly have to change key once to have it reflected everywhere it referenced li olpfor strongconfig locales en yml strong file that looks something like this ppre codeactiverecord attributes user email Email name Name password Password password confirmation Confirmation models user Userusers fields email Email name Name password Password confirmation Confirmationsessions new email Email password Password code prepI can see that there is significant repetition and that the context of words like Email and Password are unambiguous and have the same meaning in their respective views It would be bit annoying to have to go and change them all if decide to change Email to mail so like to refactor the strings to reference dictionary of some sort So how about adding dictionary hash to the top of the file with some code amp code anchors like this ppre codedictionary email amp email Email name amp name Name password amp password Password confirmation amp confirmation Confirmationactiverecord attributes user email email name name password password password confirmation confirmation models user Userusers fields email email name name password password confirmation confirmationsessions new email email password password code prepWhenever you get more than one instance of exactly the same word phrase in your views you could refactor it out to the dictionary If the dictionary translation of key in the base language doesn make sense for target language then just change out the referenced value in the target language to static string or add it as an extra entry to the target language dictionary sure each language dictionary could be refactored out into another file if they get too big and unwieldy ppThis way of structuring i18n yaml files seemed to work well with some local test apps tried it on hoping the wonderful href http www localeapp com rel noreferrer Localeapp will provide support for this kind of anchoring referencing in the future But anyway all this dictionary talk can possibly be an original idea so are there other issues with anchor referencing in YAML or maybe just with the whole dictionary concept in general Or is it just better to just rip out the default backend entirely and replace it with href http redis io rel noreferrer Redis or something It is of course cost benefit decision in every special case But don do it just to do it That would be prematurely optimising Wait until it real problem more than just few instances and then it will make sense to handle it like this The question in particular case is if whether or not it would make more sense to just reference one translation key with the mentioned sentence and not have duplicate keys that refer to the same dictionary pTo turn it off ppre codeold logger ActiveRecord Base loggerActiveRecord Base logger nil code prepTo turn it back on ppre codeActiveRecord Base logger old logger code pre If you accidentaly ran this code to turn it off twice thus also setting old logger to nil then you may create new console logger with ActiveRecord Base logger Logger new STDOUT when you want to turn it back on again Difference between rake db migrate db reset and db schema load ruby on rails ruby database rake pThe difference between coderake db migrate code and coderake db reset code is pretty clear in my head The thing which don understand is how coderake db schema load code different from the former two ppJust to be sure that am on the same page pulli coderake db migrate code Runs the migrations which haven been run yet lili coderake db reset code Clears the database presumably does coderake db drop code coderake db create code coderake db migrate code and runs migration on fresh database li ulpPlease help to clarify if my understanding has gone wrong Your understanding of rake db migrate is correct but your understanding of rake db reset is wrong See the topmost answer from moritz,0,NULL,NULL 47703,412934,1559523,NULL,NULL,NULL,0,NULL,NULL 47704,50974,952070,NULL,NULL,NULL,0,NULL,NULL 47705,3982,1248312,NULL,NULL,NULL,0,NULL,NULL 47706,408357,498227,Custodian Custodian Informed Tumbleweed Yearling Favorite Question Yearling Nice Answer Enlightened Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 47707,630024,1098685,NULL,NULL,NULL,0,NULL,NULL 47708,155742,41395,Autobiographer,NULL,NULL,0,NULL,NULL 47709,782317,105040,Popular Question Popular Question Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 47710,405558,105040,Popular Question Popular Question Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 47711,190250,844127,NULL,NULL,NULL,0,NULL,NULL 47712,214055,1275914,NULL,NULL,NULL,0,NULL,NULL 47713,164273,9220,Commentator Popular Question,NULL,NULL,0,NULL,NULL 47714,615509,503441,NULL,NULL,NULL,0,NULL,NULL 47715,218526,819944,Yearling Custodian,NULL,NULL,0,NULL,NULL 47716,426880,428229,Nice Question,NULL,NULL,0,NULL,NULL 47717,191335,164355,NULL,NULL,NULL,0,NULL,NULL 47718,534205,809761,NULL,NULL,NULL,0,NULL,NULL 47719,286521,966,Notable Question Nice Answer Announcer Good Question Inquisitive Yearling Popular Question Favorite Question Nice Question Great Question Popular Question Custodian Yearling Notable Question Notable Question Caucus Constituent Custodian Yearling,NULL,NULL,0,NULL,NULL 47720,531018,352976,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 47721,47343,380567,Famous Question Good Question Popular Question Yearling Popular Question Revival Popular Question Famous Question Favorite Question Yearling Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47722,258741,266169,NULL,NULL,NULL,0,NULL,NULL 47723,10893618,266169,NULL,NULL,NULL,0,NULL,NULL 47724,247488,206095,NULL,NULL,NULL,0,NULL,NULL 47725,458023,1038329,Popular Question,NULL,NULL,0,NULL,NULL 47726,1016429,1103637,NULL,NULL,NULL,0,NULL,NULL 47727,129852,34996,Popular Question Custodian Nice Answer Inquisitive Notable Question Yearling Caucus Notable Question Notable Question Famous Question Popular Question Taxonomist Popular Question Good Answer Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 47728,25681,476531,NULL,NULL,NULL,0,NULL,NULL 47729,165390,265828,NULL,NULL,NULL,0,NULL,NULL 47730,542869,208073,NULL,NULL,NULL,0,NULL,NULL 47731,48718,452439,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 47732,1199939,452439,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 47733,291877,856471,NULL,NULL,NULL,0,NULL,NULL 47734,44233,1002246,Teacher Popular Question Nice Question Famous Question Critic,NULL,NULL,0,NULL,NULL 47735,350629,13604,Notable Question Good Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Nice Question Benefactor Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 47736,107348,627682,NULL,NULL,NULL,0,NULL,NULL 47737,237693,621591,Guru Investor Altruist Popular Question Yearling Promoter Benefactor Popular Question Nice Answer Yearling Notable Question Caucus Necromancer Yearling Nice Answer Notable Question Yearling Popular Question Nice Question Great Answer,NULL,NULL,0,NULL,NULL 47738,2133128,1013266,Popular Question,NULL,NULL,0,NULL,NULL 47739,1158,172172,NULL,NULL,NULL,0,NULL,NULL 47740,657687,30618,Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Yearling cocoa-touch Custodian Custodian Nice Answer Enlightened Great Answer Good Answer Notable Question Nice Answer Enlightened Guru Nice Answer Enlightened Caucus Guru Nice Answer Yearling Custodian swift Great Answer Famous Question Yearling Good Answer Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 47741,536771,1239904,Popular Question Commentator Notable Question Popular Question Critic Announcer Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47742,372922,855076,NULL,NULL,NULL,0,NULL,NULL 47743,136151,872837,Popular Question,NULL,pThe href https en wikipedia org wiki Poisson distribution rel nofollow noreferrer Poisson distribution implemented in scipy as href http docs scipy org doc scipy reference generated scipy stats poisson html rel nofollow noreferrer codescipy stats poisson code is href http mathworld wolfram com DiscreteDistribution html rel nofollow noreferrer emdiscrete em distribution The discrete distributions in scipy do not have codefit code method ppI not very familiar with the href https stanford edu mwaskom software seaborn generated seaborn distplot html rel nofollow noreferrer codeseaborn distplot code function but it appears to assume that the data comes from continuous distribution If that is the case then even if codescipy stats poisson code had codefit code method it would not be an appropriate distribution to pass to codedistplot code phrpThe question title is How to fit poisson distribution with seaborn so for the sake of completeness here one way to get plot of the data and its fit codeseaborn code is only used for the bar plot using suggestion to use codeseaborn countplot code The fitting is actually trivial because the maximum likelihood estimation for the Poisson distribution is simply the mean of the data ppFirst the imports ppre codeIn 136 import numpy as npIn 137 from scipy stats import poissonIn 138 import matplotlib pyplot as pltIn 139 import seaborn code prepGenerate some data to work with ppre codeIn 140 poisson rvs size 100 code prepThese are the values in the codex code ppre codeIn 141 np arange max In 142 kOut 142 array code prepUse codeseaborn countplot code to plot the data ppre codeIn 143 seaborn countplot order color alpha Out 143 lt matplotlib axes subplots AxesSubplot at 0x114700490 gt code prepThe maximum likelihood estimation of the Poisson parameter is simply the mean of the data ppre codeIn 144 mlest mean code prepUse codepoisson pmf code to get the expected probability and multiply by the size of the data set to get the expected counts and then plot using codematplotlib code The bars are the counts of the actual data and the dots are the expected counts of the fitted distribution ppre codeIn 145 plt plot poisson pmf mlest len go markersize Out 145 lt matplotlib lines Line2D at 0x114da74d0 gt code prep href https stack imgur com J2I40 png rel nofollow noreferrer img src https stack imgur com J2I40 png alt plot Thank you all very much,0,NULL,NULL 47744,3430262,1403246,Yearling Custodian Custodian Caucus Critic Mortarboard Yearling Constituent Tenacious Enthusiast Revival Popular Question Yearling Unsung Hero Documentation User Notable Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 47745,156956,415112,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 47746,317465,788663,NULL,NULL,NULL,0,NULL,NULL 47747,13629,773869,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47748,316868,113428,Enthusiast,NULL,NULL,0,NULL,NULL 47749,205894,398292,NULL,NULL,NULL,0,NULL,NULL 47750,1597859,398292,NULL,NULL,NULL,0,NULL,NULL 47751,2926622,398292,NULL,NULL,NULL,0,NULL,NULL 47752,29669,998485,NULL,NULL,NULL,0,NULL,NULL 47753,8892,1197203,NULL,NULL,NULL,0,NULL,NULL 47754,665081,829923,NULL,NULL,NULL,0,NULL,NULL 47755,415625,305686,Yearling Great Question Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 47756,836288,116329,NULL,NULL,NULL,0,NULL,NULL 47757,1276038,175421,Good Answer Notable Question Famous Question Nice Question Popular Question Yearling Nice Answer Famous Question Nice Answer Yearling Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 47758,97048,902102,Good Answer Yearling Yearling Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 47759,118828,708141,NULL,NULL,NULL,0,NULL,NULL 47760,1520850,321030,NULL,NULL,NULL,0,NULL,NULL 47761,168929,305317,Nice Question Curious Famous Question,NULL,NULL,0,NULL,NULL 47762,853873,46281,Yearling Revival Famous Question Yearling Nice Answer Taxonomist,NULL,NULL,0,NULL,NULL 47763,299,1416453,NULL,NULL,NULL,0,NULL,NULL 47764,426541,917425,NULL,NULL,NULL,0,NULL,NULL 47765,2788303,1531015,NULL,NULL,NULL,0,NULL,NULL 47766,412635,72931,NULL,NULL,NULL,0,NULL,NULL 47767,1178754,511010,Editor,NULL,NULL,0,NULL,NULL 47768,233533,1204900,Yearling Notable Question Nice Answer Famous Question Popular Question Necromancer Popular Question Yearling Notable Question Popular Question Documentation User Tenacious Yearling Nice Answer,NULL,NULL,0,NULL,NULL 47769,4840,339119,Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 47770,44316,1285251,Popular Question,NULL,NULL,0,NULL,NULL 47771,1627112,1381396,NULL,NULL,NULL,0,NULL,NULL 47772,738103,308769,NULL,NULL,NULL,0,NULL,NULL 47773,159123,317091,NULL,NULL,NULL,0,NULL,NULL 47774,1565877,1135805,Popular Question,NULL,NULL,0,NULL,NULL 47775,802615,738669,NULL,NULL,NULL,0,NULL,NULL 47776,132903,345235,Nice Answer Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 47777,48397,1316221,NULL,NULL,NULL,0,NULL,NULL 47778,1443052,666029,NULL,NULL,NULL,0,NULL,NULL 47779,113248,666029,NULL,NULL,NULL,0,NULL,NULL 47780,217586,1482744,Yearling Caucus Caucus Caucus Famous Question,NULL,NULL,0,NULL,NULL 47781,627460,1195354,NULL,NULL,NULL,0,NULL,NULL 47782,7998,1277558,NULL,NULL,NULL,0,NULL,NULL 47783,562729,1155108,NULL,NULL,NULL,0,NULL,NULL 47784,2034306,87560,Popular Question,NULL,NULL,0,NULL,NULL 47785,4978130,654585,NULL,NULL,NULL,0,NULL,NULL 47786,50168,919801,Critic Tumbleweed Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47787,196678,855907,Necromancer Yearling Nice Answer Yearling Necromancer Good Answer Yearling Nice Answer Yearling Guru Caucus Critic Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 47788,411354,1497451,Notable Question,NULL,NULL,0,NULL,NULL 47789,327780,60982,Announcer Announcer Necromancer Yearling Necromancer Announcer Revival Revival Revival Popular Question Nice Answer Yearling Necromancer Nice Answer Necromancer Yearling Nice Question,NULL,pPreflight can only be applied to the request not to the entire domain brought the same question up on the mailing list and there were security concerns Here the entire thread href http lists w3 org Archives Public public webapps 2012AprJun 0228 html http lists w3 org Archives Public public webapps 2012AprJun 0228 html ppThere are few things to consider if you like to limit the number of preflight requests First note that WebKit Blink based browsers set max preflight cache of 10 minutes pp href https github com WebKit webkit blob master Source WebCore loader CrossOriginPreflightResultCache cpp https github com WebKit webkit blob master Source WebCore loader CrossOriginPreflightResultCache cpp aa href https chromium googlesource com chromium blink master Source core loader CrossOriginPreflightResultCache cpp https chromium googlesource com chromium blink master Source core loader CrossOriginPreflightResultCache cpp pp not sure if this is true for other browsers So while you should always set the Access Control Max Age header the max value is 10 minutes ppNext note that it is impossible to avoid preflight on PUT DELETE requests So updates deletes to your API will require at least one preflight every 10 minutes ppOn GET POST avoid custom headers if at all possible since these still trigger preflights If your API returns JSON note that Content Type of application json also triggers preflight ppIf you are willing to bend just how RESTful your API is there are few more things you can try One is to use Content Type that doesn need preflight like text plain Custom headers always trigger preflights so if you have any custom headers you could move them into query parameters At the extreme end you could use protocol like JSON RPC where all requests are made to single endpoint ppIn all honesty because of the browser preflight cache limit of 10 minutes and REST resource urls the preflight cache is fairly useless There very little you can do to limit preflights over the course of long running app hopeful the authors of the CORS spec will try to address this in the future In your answer the Content Type restriction is only relevant when sending data not when receiving it so there no issue with servers returning arbitrary content type headers pThe following solution seems to work correctly on Python It uses workaround taken from href https stackoverflow com questions 13188719 custom json encoder in python to insert plain javascript code Custom JSON encoder in Python to insert plain JavaScript code to avoid custom encoded objects ending up as JSON strings in the output by using UUID based replacement scheme ppre codeclass NoIndent object def init self value self value valueclass NoIndentEncoder json JSONEncoder def init self args kwargs super NoIndentEncoder self init args kwargs self kwargs dict kwargs del self kwargs indent self replacement map def default self if isinstance NoIndent key uuid uuid4 hex self replacement map key json dumps value self kwargs return key else return super NoIndentEncoder self default def encode self result super NoIndentEncoder self encode for in self replacement map iteritems result result replace return result code prepThen this ppre codeobj layer1 layer2 layer3 string layer3 NoIndent print json dumps obj indent cls NoIndentEncoder code prepproduces the follwing strongoutput strong ppre code layer1 layer2 layer3 string layer3 code prehrpIt also correctly passes all options except codeindent code codesort keys True code down to the nested codejson dumps code call ppre codeobj layer1 layer2 layer3 NoIndent layer3 string print json dumps obj indent sort keys True cls NoIndentEncoder code prepcorrectly strongoutputs strong ppre code layer1 layer2 layer3 layer3 string code prehrpIt can also be combined with codecollections OrderedDict code ppre codeobj layer1 layer2 layer3 string layer3 NoIndent OrderedDict print json dumps obj indent cls NoIndentEncoder code prep strongoutputs strong ppre code layer1 layer2 layer3 layer3 string code pre This works in Python as well The only caveat is that you must use json dumps not json dump In the latter case you would have to override iterencode as well and couldn get that working,0,NULL,NULL 47790,783522,194880,Citizen Patrol,NULL,NULL,0,NULL,NULL 47791,169457,389969,Popular Question,NULL,NULL,0,NULL,NULL 47792,446970,1054155,Informed Yearling Caucus Constituent Popular Question Caucus Critic,NULL,NULL,0,NULL,NULL 47793,341826,233884,Nice Answer Enthusiast Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 47794,172039,30823,Yearling Critic Notable Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 47795,77299,203926,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 47796,1540302,203926,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 47797,221507,5897,Good Answer Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 47798,197709,790686,NULL,NULL,NULL,0,NULL,NULL 47799,114601,458358,NULL,NULL,NULL,0,NULL,NULL 47800,1565927,298473,NULL,NULL,NULL,0,NULL,NULL 47801,167848,640531,Nice Answer,NULL,NULL,0,NULL,NULL 47802,391745,946179,NULL,NULL,,0,, 47803,1137205,978466,NULL,NULL,NULL,0,NULL,NULL 47804,217929,97138,NULL,NULL,NULL,0,NULL,NULL 47805,239742,1088799,NULL,NULL,NULL,0,NULL,NULL 47806,25755,401329,Nice Answer Custodian Yearling Great Answer Excavator Nice Answer Nice Answer Good Answer Guru Good Answer Great Answer Guru Yearling Nice Answer Enlightened Custodian Revival Yearling Revival,NULL,NULL,0,NULL,NULL 47807,906882,982536,NULL,NULL,NULL,0,NULL,NULL 47808,324155,1019583,NULL,NULL,NULL,0,NULL,NULL 47809,42593,1300956,NULL,NULL,NULL,0,NULL,NULL 47810,1076360,1514590,NULL,NULL,NULL,0,NULL,NULL 47811,77187,968160,Good Answer,NULL,NULL,0,NULL,NULL 47812,8266528,968160,Good Answer,NULL,NULL,0,NULL,NULL 47813,704936,1294379,NULL,NULL,NULL,0,NULL,NULL 47814,166232,132035,Scholar Supporter Autobiographer Commentator Teacher Notable Question,NULL,NULL,0,NULL,NULL 47815,2574053,896849,Popular Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47816,16098,896849,Popular Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47817,468279,235617,Guru Guru Enlightened Famous Question Taxonomist Yearling Great Answer Nice Answer Favorite Question Custodian Yearling Great Answer Nice Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 47818,89383,151033,Caucus,NULL,NULL,0,NULL,NULL 47819,3095718,1222370,NULL,NULL,NULL,0,NULL,NULL 47820,775837,92951,NULL,NULL,NULL,0,NULL,NULL 47821,3273,246401,NULL,NULL,NULL,0,NULL,NULL 47822,261001,809036,NULL,NULL,NULL,0,NULL,NULL 47823,855385,1012950,Enthusiast Yearling Notable Question Caucus Constituent Custodian Announcer Census,NULL,NULL,0,NULL,NULL 47824,50579,226201,Nice Question Good Answer Yearling Necromancer Yearling Notable Question Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47825,535033,1229622,Yearling Popular Question Custodian Popular Question Popular Question Good Answer Yearling Notable Question Nice Question Good Question Nice Question Popular Question Yearling Popular Question Notable Question Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 47826,308373,654225,NULL,NULL,NULL,0,NULL,NULL 47827,322200,992028,NULL,NULL,NULL,0,NULL,NULL 47828,82993,44085,Yearling Famous Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47829,73918,6851,Citizen Patrol Custodian Popular Question Yearling Nice Question Popular Question Notable Question Good Question Good Question Famous Question Notable Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 47830,45646,55965,Yearling Guru Necromancer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 47831,325474,305249,Popular Question,NULL,NULL,0,NULL,NULL 47832,5570920,521595,Nice Question,NULL,NULL,0,NULL,NULL 47833,1572888,670371,NULL,NULL,NULL,0,NULL,NULL 47834,25564,899155,Yearling Notable Question Curious Critic,NULL,NULL,0,NULL,NULL 47835,726969,707174,NULL,NULL,NULL,0,NULL,NULL 47836,164071,132760,NULL,NULL,NULL,0,NULL,NULL 47837,488794,1061683,NULL,NULL,NULL,0,NULL,NULL 47838,15761,1231072,Notable Question Yearling Enthusiast Nice Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 47839,137221,177159,Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47840,172236,527905,NULL,NULL,NULL,0,NULL,NULL 47841,3765720,1374869,Informed,NULL,NULL,0,NULL,NULL 47842,42302,734499,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 47843,1340629,279833,Teacher,NULL,NULL,0,NULL,NULL 47844,437298,1317313,NULL,NULL,NULL,0,NULL,NULL 47845,48434,939252,Necromancer,NULL,NULL,0,NULL,NULL 47846,949422,1392161,Editor Excavator,NULL,NULL,0,NULL,NULL 47847,42260,869426,Yearling Notable Question Census,NULL,NULL,0,NULL,NULL 47848,76505,385517,Yearling Good Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 47849,376013,56183,Yearling Notable Question Nice Question Yearling Famous Question Notable Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47850,477562,380940,NULL,NULL,NULL,0,NULL,NULL 47851,73066,825488,NULL,NULL,NULL,0,NULL,NULL 47852,46940,1031936,NULL,NULL,NULL,0,NULL,NULL 47853,112988,1063934,NULL,NULL,NULL,0,NULL,NULL 47854,448549,1210933,NULL,NULL,NULL,0,NULL,NULL 47855,1021976,1534459,Curious Custodian Informed Caucus Nice Answer Constituent Announcer Caucus Constituent Documentation User Caucus Constituent Self-Learner Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 47856,434666,668516,Editor,NULL,NULL,0,NULL,NULL 47857,164926,932402,NULL,NULL,NULL,0,NULL,NULL 47858,1369315,1114512,NULL,NULL,NULL,0,NULL,NULL 47859,242043,525225,NULL,NULL,NULL,0,NULL,NULL 47860,2728262,315477,Caucus Commentator Nice Question Scholar Caucus Curious,NULL,NULL,0,NULL,NULL 47861,567683,4308,Nice Answer Great Answer Nice Question Popular Question Yearling Nice Answer Good Question Notable Question Popular Question Yearling Favorite Question Good Question Yearling,NULL,NULL,0,NULL,NULL 47862,57232,247515,Yearling Good Answer Caucus Constituent Custodian Scholar Documentation User Editor Custodian Student,NULL,NULL,0,NULL,NULL 47863,74889,99618,Yearling Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 47864,167501,1415508,NULL,NULL,NULL,0,NULL,NULL 47865,55646,1173150,NULL,NULL,NULL,0,NULL,NULL 47866,12231,1106908,Nice Answer Civic Duty Announcer Yearling yii Announcer Caucus Custodian Yearling Census Nice Answer Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47867,2044208,1106908,Nice Answer Civic Duty Announcer Yearling yii Announcer Caucus Custodian Yearling Census Nice Answer Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47868,149399,1509370,Promoter Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47869,143019,150941,Famous Question Good Answer Yearling Caucus Popular Question Good Answer Yearling Famous Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 47870,76532,586131,Notable Question Yearling Favorite Question Good Question Popular Question Favorite Question Revival Stellar Question Popular Question Famous Question Famous Question Popular Question Famous Question Popular Question Notable Question Yearling Nice Question Good Question Famous Question Notable Question Notable Question Famous Question Great Question Yearling Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 47871,491291,789937,NULL,NULL,NULL,0,NULL,NULL 47872,134117,1168916,Notable Question node.js Yearling Good Answer Autobiographer Yearling Guru Caucus Nice Answer Enlightened Nice Answer Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 47873,519497,1268062,Supporter,NULL,NULL,0,NULL,NULL 47874,30759,805259,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47875,3890917,1299078,Nice Question Autobiographer Editor Peer Pressure Critic Commentator Famous Question Caucus Constituent,NULL,NULL,0,NULL,NULL 47876,199385,1022689,NULL,NULL,NULL,0,NULL,NULL 47877,28641,504799,NULL,NULL,NULL,0,NULL,NULL 47878,163442,801808,NULL,NULL,NULL,0,NULL,NULL 47879,118937,1293700,Yearling Nice Answer Organizer Yearling Citizen Patrol Informed Necromancer Revival Revival Caucus Constituent Revival Revival Yearling Caucus Good Answer Necromancer Nice Answer Documentation User Nice Answer Necromancer Excavator Custodian Necromancer Caucus Yearling Fanatic Good Answer Guru Announcer Announcer Necromancer Nice Answer,NULL,NULL,1,NULL,What is the Python equivalent of python SimpleHTTPServer python python httpserver simplehttpserver pWhat is the Python equivalent of codepython SimpleHTTPServer code pIn one of my projects run tests against Python and For that wrote small script which starts local server independently ppre code python python import sys print http server if sys version info gt else SimpleHTTPServer Serving HTTP on port 8000 code prepAs an alias ppre code alias serve python python import sys print http server if sys version info gt else SimpleHTTPServer serveServing HTTP on port 8000 code prepPlease note that control my Python version via href https conda io docs user guide tasks manage environments html rel nofollow noreferrer conda environments because of that can use codepython code instead of codepython3 code for using Python 47880,401071,1293700,Yearling Nice Answer Organizer Yearling Citizen Patrol Informed Necromancer Revival Revival Caucus Constituent Revival Revival Yearling Caucus Good Answer Necromancer Nice Answer Documentation User Nice Answer Necromancer Excavator Custodian Necromancer Caucus Yearling Fanatic Good Answer Guru Announcer Announcer Necromancer Nice Answer,NULL,NULL,1,NULL,What is the Python equivalent of python SimpleHTTPServer python python httpserver simplehttpserver pWhat is the Python equivalent of codepython SimpleHTTPServer code pIn one of my projects run tests against Python and For that wrote small script which starts local server independently ppre code python python import sys print http server if sys version info gt else SimpleHTTPServer Serving HTTP on port 8000 code prepAs an alias ppre code alias serve python python import sys print http server if sys version info gt else SimpleHTTPServer serveServing HTTP on port 8000 code prepPlease note that control my Python version via href https conda io docs user guide tasks manage environments html rel nofollow noreferrer conda environments because of that can use codepython code instead of codepython3 code for using Python 47881,1458713,1146086,Notable Question Necromancer Commentator Critic Informed Revival Excavator Yearling Necromancer Notable Question Revival,NULL,NULL,0,NULL,NULL 47882,47628,506805,NULL,NULL,NULL,0,NULL,NULL 47883,231001,1271460,Nice Answer Enlightened Yearling Tenacious Citizen Patrol Custodian Custodian Custodian jenkins Proofreader Reviewer Explainer jenkins-job-dsl Nice Answer Nice Answer Enlightened Caucus Custodian Tag Editor Custodian Yearling Good Answer Nice Answer Announcer Announcer Announcer Nice Answer Documentation User groovy Revival Nice Answer Enlightened Good Answer jenkins-plugins Yearling Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 47884,5396,31662,Custodian Informed Custodian Yearling Good Question Revival Nice Answer Good Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 47885,78334,282653,Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 47886,77353,220652,Popular Question Notable Question Famous Question Yearling Good Question Yearling Census Great Question Autobiographer Custodian Famous Question Custodian Yearling,NULL,NULL,0,NULL,NULL 47887,22018,276344,Yearling Announcer Yearling Scholar Revival,NULL,NULL,0,NULL,NULL 47888,70788,766053,NULL,NULL,NULL,0,NULL,NULL 47889,166422,1264879,Editor Scholar Supporter Teacher Famous Question,NULL,NULL,0,NULL,NULL 47890,547893,752395,NULL,NULL,NULL,0,NULL,NULL 47891,735210,972318,NULL,NULL,NULL,0,NULL,NULL 47892,470734,320702,Yearling Necromancer Yearling Nice Answer Custodian Caucus Custodian Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 47893,1157921,770761,Popular Question,NULL,NULL,0,NULL,NULL 47894,18638,1000312,NULL,NULL,NULL,0,NULL,NULL 47895,14129,183537,NULL,NULL,NULL,0,NULL,NULL 47896,538263,876039,NULL,NULL,NULL,0,NULL,NULL 47897,169803,433077,Notable Question Yearling Famous Question Guru Notable Question Yearling Custodian Revival Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 47898,1585706,24147,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 47899,447004,869053,Good Answer Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Excavator Nice Question Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 47900,318991,1184919,NULL,NULL,NULL,0,NULL,NULL 47901,269487,1184919,NULL,NULL,NULL,0,NULL,NULL 47902,239228,519147,NULL,NULL,NULL,0,NULL,NULL 47903,321943,247649,NULL,NULL,NULL,0,NULL,NULL 47904,236025,732437,NULL,NULL,NULL,0,NULL,NULL 47905,212035,1253546,NULL,NULL,NULL,0,NULL,NULL 47906,190763,1027858,NULL,NULL,NULL,0,NULL,NULL 47907,129172,38250,Nice Answer Yearling Good Answer Revival Necromancer Necromancer Yearling Nice Answer Tumbleweed Yearling Nice Question Commentator Yearling,NULL,NULL,0,NULL,NULL 47908,328349,1483928,NULL,NULL,NULL,0,NULL,NULL 47909,167233,1483928,NULL,NULL,NULL,0,NULL,NULL 47910,326990,33214,NULL,NULL,NULL,0,NULL,NULL 47911,475944,1234438,Teacher Citizen Patrol Excavator Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 47912,933769,1182372,Commentator Teacher Critic,NULL,NULL,0,NULL,NULL 47913,181578,552941,Popular Question Necromancer Yearling Notable Question Custodian Popular Question Nice Answer Peer Pressure Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47914,279433,979282,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 47915,3587296,862060,Nice Answer,NULL,NULL,0,NULL,NULL 47916,488307,862060,Nice Answer,NULL,NULL,0,NULL,NULL 47917,195114,786345,Popular Question,NULL,NULL,0,NULL,NULL 47918,32738,409030,Nice Answer Yearling Revival Yearling Good Answer Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 47919,67838,82,Popular Question Great Question Famous Question Stellar Question Yearling Notable Question Favorite Question Nice Question Famous Question Favorite Question Good Question Good Question Notable Question Notable Question Notable Question Notable Question Yearling Good Answer Nice Answer Enlightened Good Question Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 47920,418403,677849,Popular Question,NULL,NULL,0,NULL,NULL 47921,6496175,1438266,NULL,NULL,NULL,0,NULL,NULL 47922,6496216,1438266,NULL,NULL,NULL,0,NULL,NULL 47923,72412,282213,Citizen Patrol Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 47924,529145,1826,Nice Answer Yearling Nice Answer Nice Answer Census Caucus Yearling Census Guru Yearling,NULL,NULL,0,NULL,NULL 47925,7699,323249,Yearling Great Answer Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47926,2551065,323249,Yearling Great Answer Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 47927,105088,239266,Announcer Yearling Necromancer Nice Answer Enlightened Yearling Good Answer Nice Answer Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 47928,359166,167762,NULL,NULL,NULL,0,NULL,NULL 47929,37871,411775,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 47930,5085966,716024,NULL,NULL,NULL,0,NULL,NULL 47931,966098,610583,NULL,NULL,NULL,0,NULL,NULL 47932,1100908,785837,NULL,NULL,NULL,0,NULL,NULL 47933,46142,1071802,Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 47934,931225,417980,Good Answer Nice Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened shell Guru Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 47935,15284,169793,Yearling Necromancer Caucus Constituent Nice Answer Nice Answer Caucus Constituent Yearling Necromancer Caucus Constituent Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 47936,187587,276387,Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47937,1052766,907624,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 47938,558132,775516,Necromancer Necromancer Necromancer Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Notable Question Self-Learner Nice Answer Nice Answer Necromancer Good Answer javascript Good Answer Nice Answer Guru Yearling Caucus Nice Answer Necromancer Popular Question Good Answer node.js Nice Answer Nice Answer Necromancer Popular Question Pundit Necromancer Necromancer Necromancer Necromancer Great Answer Nice Answer Yearling Famous Question Good Answer Necromancer Census Nice Answer Good Answer Nice Question Nice Answer Necromancer Necromancer Good Answer Nice Answer Populist Good Answer Yearling Custodian Popular Question Great Answer,NULL,strongFebruary 21 2017 how jQuery does it strong pp href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L828 L830 rel nofollow noreferrer codejQuery getScript code is now just wrapper for codejQuery get code ppre codegetScript function url callback return jQuery get url undefined callback script code prep href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L833 L852 rel nofollow noreferrer codejQuery get code is just wrapper of codejQuery ajax code it is defined using metaprogramming as ppre codejQuery each get post function method jQuery method function url data callback type Shift arguments if data argument was omitted if jQuery isFunction data type type callback callback data data undefined The url can be an options object which then must have url return jQuery ajax jQuery extend url url type method dataType type data data success callback jQuery isPlainObject url url code prep href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L386 L822 rel nofollow noreferrer codejQuery ajax code is this 430 LOC monster ppre codeajax function url options If url is an object simulate pre signature if typeof url object options url url undefined Force options to be an object options options var transport URL without anti cache param cacheURL Response headers responseHeadersString responseHeaders timeout handle timeoutTimer Url cleanup var urlAnchor Request state becomes false upon send and true upon completion completed To know if global events are to be dispatched fireGlobals Loop variable uncached part of the url uncached Create the final options object jQuery ajaxSetup options Callbacks context callbackContext context Context for global events is callbackContext if it is DOM node or jQuery collection globalEventContext context amp amp callbackContext nodeType callbackContext jquery jQuery callbackContext jQuery event Deferreds deferred jQuery Deferred completeDeferred jQuery Callbacks once memory Status dependent callbacks statusCode statusCode Headers they are sent all at once requestHeaders requestHeadersNames Default abort message strAbort canceled Fake xhr jqXHR readyState Builds headers hashtable if needed getResponseHeader function key var match if completed if responseHeaders responseHeaders while match rheaders exec responseHeadersString responseHeaders match toLowerCase match match responseHeaders key toLowerCase return match null null match Raw string getAllResponseHeaders function return completed responseHeadersString null Caches the header setRequestHeader function name value if completed null name requestHeadersNames name toLowerCase requestHeadersNames name toLowerCase name requestHeaders name value return this Overrides response content type header overrideMimeType function type if completed null mimeType type return this Status dependent callbacks statusCode function map var code if map if completed Execute the appropriate callbacks jqXHR always map jqXHR status else Lazy add the new callbacks in way that preserves old ones for code in map statusCode code statusCode code map code return this Cancel the request abort function statusText var finalText statusText strAbort if transport transport abort finalText done finalText return this Attach deferreds deferred promise jqXHR Add protocol if not provided prefilters might expect it Handle falsy url in the settings object 10093 consistency with old signature We also use the url parameter if available url url url location href replace rprotocol location protocol Alias method option to type as per ticket 12004 type options method options type method type Extract dataTypes list dataTypes dataType toLowerCase match rnothtmlwhite cross domain request is in order when the origin doesn match the current origin if crossDomain null urlAnchor document createElement Support IE lt 11 Edge 12 13 IE throws exception on accessing the href property if url is malformed http example com 80x try urlAnchor href url Support IE lt 11 only Anchor host property isn correctly set when url is relative urlAnchor href urlAnchor href crossDomain originAnchor protocol originAnchor host urlAnchor protocol urlAnchor host catch If there is an error parsing the URL assume it is crossDomain it can be rejected by the transport if it is invalid crossDomain true Convert data if not already string if data amp amp processData amp amp typeof data string data jQuery param data traditional Apply prefilters inspectPrefiltersOrTransports prefilters options jqXHR If request was aborted inside prefilter stop there if completed return jqXHR We can fire global events as of now if asked to Don fire events if jQuery event is undefined in an AMD usage scenario 15118 fireGlobals jQuery event amp amp global Watch for new set of requests if fireGlobals amp amp jQuery active jQuery event trigger ajaxStart Uppercase the type type type toUpperCase Determine if request has content hasContent rnoContent test type Save the URL in case we re toying with the If Modified Since and or If None Match header later on Remove hash to simplify url manipulation cacheURL url replace rhash More options handling for requests with no content if hasContent Remember the hash so we can put it back uncached url slice cacheURL length If data is available append data to url if data cacheURL rquery test cacheURL amp data 9682 remove data so that it not used in an eventual retry delete data Add or update anti cache param if needed if cache false cacheURL cacheURL replace rantiCache uncached rquery test cacheURL amp nonce uncached Put hash and anti cache on the URL that will be requested gh 1732 url cacheURL uncached Change 20 to if this is encoded form body content gh 2658 else if data amp amp processData amp amp contentType indexOf application www form urlencoded data data replace r20 Set the If Modified Since and or If None Match header if in ifModified mode if ifModified if jQuery lastModified cacheURL jqXHR setRequestHeader If Modified Since jQuery lastModified cacheURL if jQuery etag cacheURL jqXHR setRequestHeader If None Match jQuery etag cacheURL Set the correct header if data is being sent if data amp amp hasContent amp amp contentType false options contentType jqXHR setRequestHeader Content Type contentType Set the Accepts header for the server depending on the dataType jqXHR setRequestHeader Accept dataTypes amp amp accepts dataTypes accepts dataTypes dataTypes allTypes 01 accepts Check for headers option for in headers jqXHR setRequestHeader headers Allow custom headers mimetypes and early abort if beforeSend amp amp beforeSend call callbackContext jqXHR false completed Abort if not done already and return return jqXHR abort Aborting is no longer cancellation strAbort abort Install callbacks on deferreds completeDeferred add complete jqXHR done success jqXHR fail error Get transport transport inspectPrefiltersOrTransports transports options jqXHR If no transport we auto abort if transport done No Transport else jqXHR readyState Send global event if fireGlobals globalEventContext trigger ajaxSend jqXHR If request was aborted inside ajaxSend stop there if completed return jqXHR Timeout if async amp amp timeout gt timeoutTimer window setTimeout function jqXHR abort timeout timeout try completed false transport send requestHeaders done catch Rethrow post completion exceptions if completed throw Propagate others as results done Callback for when everything is done function done status nativeStatusText responses headers var isSuccess success error response modified statusText nativeStatusText Ignore repeat invocations if completed return completed true Clear timeout if it exists if timeoutTimer window clearTimeout timeoutTimer Dereference transport for early garbage collection no matter how long the jqXHR object will be used transport undefined Cache response headers responseHeadersString headers Set readyState jqXHR readyState status gt Determine if successful isSuccess status gt 200 amp amp status lt 300 status 304 Get response data if responses response ajaxHandleResponses jqXHR responses Convert no matter what that way responseXXX fields are always set response ajaxConvert response jqXHR isSuccess If successful handle type chaining if isSuccess Set the If Modified Since and or If None Match header if in ifModified mode if ifModified modified jqXHR getResponseHeader Last Modified if modified jQuery lastModified cacheURL modified modified jqXHR getResponseHeader etag if modified jQuery etag cacheURL modified if no content if status 204 type HEAD statusText nocontent if not modified else if status 304 statusText notmodified If we have data let convert it else statusText response state success response data error response error isSuccess error else Extract error from statusText and normalize for non aborts error statusText if status statusText statusText error if status lt status Set data for the fake xhr object jqXHR status status jqXHR statusText nativeStatusText statusText Success Error if isSuccess deferred resolveWith callbackContext success statusText jqXHR else deferred rejectWith callbackContext jqXHR statusText error Status dependent callbacks jqXHR statusCode statusCode statusCode undefined if fireGlobals globalEventContext trigger isSuccess ajaxSuccess ajaxError jqXHR isSuccess success error Complete completeDeferred fireWith callbackContext jqXHR statusText if fireGlobals globalEventContext trigger ajaxComplete jqXHR Handle the global AJAX counter if jQuery active jQuery event trigger ajaxStop return jqXHR code prepSo yeah this is obviously ridiculous to try to remove all the dependencies from this code You re better off just including jQuery if you want to use jQuery method for loading external scripts asynchronously ppOr consider using different tool altogether phrp strong href https stackoverflow com posts 8586564 revisions July 16 2013 from jQuery guts with no dependencies strong sup source code citation needed sup ppre codefunction getScript src callback var document createElement script src src async true onreadystatechange onload function if callback done amp amp readyState loaded complete test readyState callback done true callback document querySelector head appendChild code pre this is cross browser approach http www w3schools com ajax ajax xmlhttprequest onreadystatechange asp Chrome doesn support it Its fine need down votes once in great while strongFebruary 21 2017 how jQuery does it strong pp href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L828 L830 rel nofollow noreferrer codejQuery getScript code is now just wrapper for codejQuery get code ppre codegetScript function url callback return jQuery get url undefined callback script code prep href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L833 L852 rel nofollow noreferrer codejQuery get code is just wrapper of codejQuery ajax code it is defined using metaprogramming as ppre codejQuery each get post function method jQuery method function url data callback type Shift arguments if data argument was omitted if jQuery isFunction data type type callback callback data data undefined The url can be an options object which then must have url return jQuery ajax jQuery extend url url type method dataType type data data success callback jQuery isPlainObject url url code prep href https github com jquery jquery blob f18ca7bfe0f5e3184bf1ed55daf1668702c5577a src ajax js L386 L822 rel nofollow noreferrer codejQuery ajax code is this 430 LOC monster ppre codeajax function url options If url is an object simulate pre signature if typeof url object options url url undefined Force options to be an object options options var transport URL without anti cache param cacheURL Response headers responseHeadersString responseHeaders timeout handle timeoutTimer Url cleanup var urlAnchor Request state becomes false upon send and true upon completion completed To know if global events are to be dispatched fireGlobals Loop variable uncached part of the url uncached Create the final options object jQuery ajaxSetup options Callbacks context callbackContext context Context for global events is callbackContext if it is DOM node or jQuery collection globalEventContext context amp amp callbackContext nodeType callbackContext jquery jQuery callbackContext jQuery event Deferreds deferred jQuery Deferred completeDeferred jQuery Callbacks once memory Status dependent callbacks statusCode statusCode Headers they are sent all at once requestHeaders requestHeadersNames Default abort message strAbort canceled Fake xhr jqXHR readyState Builds headers hashtable if needed getResponseHeader function key var match if completed if responseHeaders responseHeaders while match rheaders exec responseHeadersString responseHeaders match toLowerCase match match responseHeaders key toLowerCase return match null null match Raw string getAllResponseHeaders function return completed responseHeadersString null Caches the header setRequestHeader function name value if completed null name requestHeadersNames name toLowerCase requestHeadersNames name toLowerCase name requestHeaders name value return this Overrides response content type header overrideMimeType function type if completed null mimeType type return this Status dependent callbacks statusCode function map var code if map if completed Execute the appropriate callbacks jqXHR always map jqXHR status else Lazy add the new callbacks in way that preserves old ones for code in map statusCode code statusCode code map code return this Cancel the request abort function statusText var finalText statusText strAbort if transport transport abort finalText done finalText return this Attach deferreds deferred promise jqXHR Add protocol if not provided prefilters might expect it Handle falsy url in the settings object 10093 consistency with old signature We also use the url parameter if available url url url location href replace rprotocol location protocol Alias method option to type as per ticket 12004 type options method options type method type Extract dataTypes list dataTypes dataType toLowerCase match rnothtmlwhite cross domain request is in order when the origin doesn match the current origin if crossDomain null urlAnchor document createElement Support IE lt 11 Edge 12 13 IE throws exception on accessing the href property if url is malformed http example com 80x try urlAnchor href url Support IE lt 11 only Anchor host property isn correctly set when url is relative urlAnchor href urlAnchor href crossDomain originAnchor protocol originAnchor host urlAnchor protocol urlAnchor host catch If there is an error parsing the URL assume it is crossDomain it can be rejected by the transport if it is invalid crossDomain true Convert data if not already string if data amp amp processData amp amp typeof data string data jQuery param data traditional Apply prefilters inspectPrefiltersOrTransports prefilters options jqXHR If request was aborted inside prefilter stop there if completed return jqXHR We can fire global events as of now if asked to Don fire events if jQuery event is undefined in an AMD usage scenario 15118 fireGlobals jQuery event amp amp global Watch for new set of requests if fireGlobals amp amp jQuery active jQuery event trigger ajaxStart Uppercase the type type type toUpperCase Determine if request has content hasContent rnoContent test type Save the URL in case we re toying with the If Modified Since and or If None Match header later on Remove hash to simplify url manipulation cacheURL url replace rhash More options handling for requests with no content if hasContent Remember the hash so we can put it back uncached url slice cacheURL length If data is available append data to url if data cacheURL rquery test cacheURL amp data 9682 remove data so that it not used in an eventual retry delete data Add or update anti cache param if needed if cache false cacheURL cacheURL replace rantiCache uncached rquery test cacheURL amp nonce uncached Put hash and anti cache on the URL that will be requested gh 1732 url cacheURL uncached Change 20 to if this is encoded form body content gh 2658 else if data amp amp processData amp amp contentType indexOf application www form urlencoded data data replace r20 Set the If Modified Since and or If None Match header if in ifModified mode if ifModified if jQuery lastModified cacheURL jqXHR setRequestHeader If Modified Since jQuery lastModified cacheURL if jQuery etag cacheURL jqXHR setRequestHeader If None Match jQuery etag cacheURL Set the correct header if data is being sent if data amp amp hasContent amp amp contentType false options contentType jqXHR setRequestHeader Content Type contentType Set the Accepts header for the server depending on the dataType jqXHR setRequestHeader Accept dataTypes amp amp accepts dataTypes accepts dataTypes dataTypes allTypes 01 accepts Check for headers option for in headers jqXHR setRequestHeader headers Allow custom headers mimetypes and early abort if beforeSend amp amp beforeSend call callbackContext jqXHR false completed Abort if not done already and return return jqXHR abort Aborting is no longer cancellation strAbort abort Install callbacks on deferreds completeDeferred add complete jqXHR done success jqXHR fail error Get transport transport inspectPrefiltersOrTransports transports options jqXHR If no transport we auto abort if transport done No Transport else jqXHR readyState Send global event if fireGlobals globalEventContext trigger ajaxSend jqXHR If request was aborted inside ajaxSend stop there if completed return jqXHR Timeout if async amp amp timeout gt timeoutTimer window setTimeout function jqXHR abort timeout timeout try completed false transport send requestHeaders done catch Rethrow post completion exceptions if completed throw Propagate others as results done Callback for when everything is done function done status nativeStatusText responses headers var isSuccess success error response modified statusText nativeStatusText Ignore repeat invocations if completed return completed true Clear timeout if it exists if timeoutTimer window clearTimeout timeoutTimer Dereference transport for early garbage collection no matter how long the jqXHR object will be used transport undefined Cache response headers responseHeadersString headers Set readyState jqXHR readyState status gt Determine if successful isSuccess status gt 200 amp amp status lt 300 status 304 Get response data if responses response ajaxHandleResponses jqXHR responses Convert no matter what that way responseXXX fields are always set response ajaxConvert response jqXHR isSuccess If successful handle type chaining if isSuccess Set the If Modified Since and or If None Match header if in ifModified mode if ifModified modified jqXHR getResponseHeader Last Modified if modified jQuery lastModified cacheURL modified modified jqXHR getResponseHeader etag if modified jQuery etag cacheURL modified if no content if status 204 type HEAD statusText nocontent if not modified else if status 304 statusText notmodified If we have data let convert it else statusText response state success response data error response error isSuccess error else Extract error from statusText and normalize for non aborts error statusText if status statusText statusText error if status lt status Set data for the fake xhr object jqXHR status status jqXHR statusText nativeStatusText statusText Success Error if isSuccess deferred resolveWith callbackContext success statusText jqXHR else deferred rejectWith callbackContext jqXHR statusText error Status dependent callbacks jqXHR statusCode statusCode statusCode undefined if fireGlobals globalEventContext trigger isSuccess ajaxSuccess ajaxError jqXHR isSuccess success error Complete completeDeferred fireWith callbackContext jqXHR statusText if fireGlobals globalEventContext trigger ajaxComplete jqXHR Handle the global AJAX counter if jQuery active jQuery event trigger ajaxStop return jqXHR code prepSo yeah this is obviously ridiculous to try to remove all the dependencies from this code You re better off just including jQuery if you want to use jQuery method for loading external scripts asynchronously ppOr consider using different tool altogether phrp strong href https stackoverflow com posts 8586564 revisions July 16 2013 from jQuery guts with no dependencies strong sup source code citation needed sup ppre codefunction getScript src callback var document createElement script src src async true onreadystatechange onload function if callback done amp amp readyState loaded complete test readyState callback done true callback document querySelector head appendChild code pre made this edit recently and got upvoted for her efforts wonder if you can move the answer to her She the genius Not me How to get the full url in Express node js url express pLet say my sample url is pblockquote href http example com one two rel noreferrer http example com one two blockquotepand say have the following route ppre codeapp get one two function req res var url req url code prepThe value of codeurl code will be code one two code ppHow do get the strongfull url strong in Express For example in the case above would like to receive codehttp example com one two code FYI you can inspect the request object and look through but am hypocrite and found it on here Can you force React component to rerender without calling setState reactjs react jsx pI have an external to the component observable object that want to listen for changes on When the object is updated it emits change events and then want to rerender the component when any change is detected ppWith top level codeReact render code this has been possible but within component it doesn work which makes some sense since the coderender code method just returns an object ppHere code example ppre class lang js prettyprint override codeexport default class MyComponent extends React Component handleButtonClick this render render return lt div gt Math random lt button onClick this handleButtonClick bind this gt Click me lt button gt lt div gt code prepClicking the button internally calls codethis render code but that not what actually causes the rendering to happen you can see this in action because the text created by code Math random code doesn change However if simply call codethis setState code instead of codethis render code it works fine pp strongSo guess my question is strong do React components emneed em to have state in order to rerender Is there way to force the component to update on demand without changing the state Interesting to note is that you DON NEED ANYTHING IN STATE at all other than initializing it to plain object then calling this setState just triggers new render React is great but also weird sometimes Therefore you could directly loop through stores data when trigger change without extra plumbing or worry about data per component instance,0,NULL,NULL 47939,117778,149453,Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 47940,968630,143071,Nice Question Yearling Famous Question Nice Answer Notable Question Popular Question Nice Question Popular Question Nice Answer Yearling Caucus Popular Question Good Question Famous Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 47941,39152,430434,NULL,NULL,NULL,0,NULL,NULL 47942,1385140,322083,NULL,NULL,NULL,0,NULL,NULL 47943,226707,220298,NULL,NULL,NULL,0,NULL,NULL 47944,328801,1250892,Necromancer,NULL,NULL,0,NULL,NULL 47945,124941,356226,NULL,NULL,NULL,0,NULL,NULL 47946,149546,608954,Informed,NULL,NULL,0,NULL,NULL 47947,81107,946226,Nice Answer Nice Answer Enlightened Popular Question Nice Question Notable Question Nice Answer Enlightened Popular Question Yearling Revival Nice Answer Nice Answer Enlightened Necromancer Good Question Nice Question Announcer Necromancer Census Notable Question Nice Answer haskell Nice Question Revival Necromancer Announcer Caucus Popular Question Revival Popular Question Nice Question Revival Nice Answer Popular Question Yearling Nice Question Famous Question Announcer Revival Nice Answer Popular Question Announcer Announcer Nice Answer Announcer Booster Publicist Nice Answer Enlightened Caucus Announcer Announcer Popular Question Announcer Notable Question Announcer Popular Question Popular Question Yearling Notable Question Announcer Nice Answer Enlightened Guru,NULL,NULL,1,NULL,Idiomatic way to shrink record in QuickCheck haskell quickcheck pSuppose have record type ppre codedata Foo Foo Integer code prepA neat way of writing an Arbitrary instance uses Control Applicative like this ppre codeinstance Arbitrary Foo where arbitrary Foo lt gt arbitrary lt gt arbitrary lt gt arbitrary shrink Foo lt gt shrink lt gt shrink lt gt shrink code prepThe list of shrinks for Foo is thus the cartesian product of all the shrinks of its members ppBut if one of these shrinks returns then there will be no shrinks for the Foo as whole So this doesn work ppI could try saving it by including the original value in the shrink list ppre code shrink Foo lt gt shrink lt gt and so on code prepBut now shrink Foo will return Foo which means that shrinking will never terminate So that doesn work either ppIt looks like there should be something other than lt being used here but can see what pIf you want an applicative functor that will shrink in exactly one position you might enjoy this one which just created to scratch precisely that itch ppre codedata ShrinkOne ShrinkOne instance Functor ShrinkOne where fmap ShrinkOne ShrinkOne map instance Applicative ShrinkOne where pure ShrinkOne ShrinkOne fs lt gt ShrinkOne xs ShrinkOne map fs map xs shrinkOne Arbitrary gt gt ShrinkOne ashrinkOne ShrinkOne shrink unShrinkOne ShrinkOne gt unShrinkOne ShrinkOne xs xs code prepI am using it in code that looks like this to shrink either in the left element of the tuple or in one of the fields of the right element of the tuple ppre codeshrink tss unShrinkOne lt gt shrinkOne tss lt gt traverse shrinkOne code prepWorks great so far ppIn fact it works so good that uploaded it as href http hackage haskell org package successors docs Control Applicative Successors html rel nofollow noreferrer hackage package 47948,636566,1384363,NULL,NULL,NULL,0,NULL,NULL 47949,565575,437299,Famous Question,NULL,NULL,0,NULL,NULL 47950,66394,361494,Critic Yearling Revival Editor Yearling Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 47951,222083,139951,Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47952,74653,1343851,Good Answer Great Answer Nice Answer Enlightened webpack javascript Guru Yearling Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Announcer Good Answer Guru Nice Answer Nice Answer Revival Guru Yearling Announcer Great Answer Enlightened Announcer Good Answer Yearling Great Answer,NULL,pYou don need to copy things around webpack works different than gulp Webpack is module bundler and everything you reference in your files will be included You just need to specify loader for that ppSo if you write ppre codevar myImage require static myImage jpg code prepWebpack will first try to parse the referenced file as JavaScript because that the default Of course that will fail That why you need to specify loader for that file type The href https github com webpack file loader rel noreferrer file or href https github com webpack url loader rel noreferrer url loader for instance take the referenced file put it into webpack output folder which should be codebuild code in your case and return the hashed url for that file ppre codevar myImage require static myImage jpg console log myImage build 12as7f9asfasgasg jpg code prepUsually loaders are applied via the webpack config ppre code webpack config jsmodule exports module loaders test jpe gif png svg woff ttf wav mp3 loader file code prepOf course you need to install the file loader first to make this work Do you bundle your css with webpack css loader file loader Then url references should work pYou don need to copy things around webpack works different than gulp Webpack is module bundler and everything you reference in your files will be included You just need to specify loader for that ppSo if you write ppre codevar myImage require static myImage jpg code prepWebpack will first try to parse the referenced file as JavaScript because that the default Of course that will fail That why you need to specify loader for that file type The href https github com webpack file loader rel noreferrer file or href https github com webpack url loader rel noreferrer url loader for instance take the referenced file put it into webpack output folder which should be codebuild code in your case and return the hashed url for that file ppre codevar myImage require static myImage jpg console log myImage build 12as7f9asfasgasg jpg code prepUsually loaders are applied via the webpack config ppre code webpack config jsmodule exports module loaders test jpe gif png svg woff ttf wav mp3 loader file code prepOf course you need to install the file loader first to make this work Just require your html with the html loader and it will try to load all dependencies with the file loader pYou don need to copy things around webpack works different than gulp Webpack is module bundler and everything you reference in your files will be included You just need to specify loader for that ppSo if you write ppre codevar myImage require static myImage jpg code prepWebpack will first try to parse the referenced file as JavaScript because that the default Of course that will fail That why you need to specify loader for that file type The href https github com webpack file loader rel noreferrer file or href https github com webpack url loader rel noreferrer url loader for instance take the referenced file put it into webpack output folder which should be codebuild code in your case and return the hashed url for that file ppre codevar myImage require static myImage jpg console log myImage build 12as7f9asfasgasg jpg code prepUsually loaders are applied via the webpack config ppre code webpack config jsmodule exports module loaders test jpe gif png svg woff ttf wav mp3 loader file code prepOf course you need to install the file loader first to make this work If you don want to handle some assets with webpack you can use the copy webpack plugin to copy assets into your public folder—or just regular copy command outside of webpack at all pYou ve mixed different approaches how to include legacy vendor modules This is how tackle it ph21 Prefer unminified CommonJS AMD over codedist code h2pMost modules link the codedist code version in the codemain code field of their codepackage json code While this is useful for most developers for webpack it is better to alias the codesrc code version because this way webpack is able to optimize dependencies better when using the href http webpack github io docs list of plugins html dedupeplugin rel noreferrer codeDedupePlugin code ppre code webpack config jsmodule exports resolve alias jquery jquery src jquery code prepHowever in most cases the codedist code version works just fine as well phrh22 Use the codeProvidePlugin code to inject implicit globals h2pMost legacy modules rely on the presence of specific globals like jQuery plugins do on code code or codejQuery code In this scenario you can configure webpack to prepend codevar require jquery code everytime it encounters the global code code identifier ppre codevar webpack require webpack plugins new webpack ProvidePlugin jquery jQuery jquery code prehrh23 Use the href https github com webpack imports loader rel noreferrer imports loader to configure codethis code h2pSome legacy modules rely on codethis code being the codewindow code object This becomes problem when the module is executed in CommonJS context where codethis code equals codemodule exports code In this case you can override codethis code with the href https github com webpack imports loader rel noreferrer imports loader ppRun codenpm imports loader save dev code and then ppre codemodule loaders test node modules some module index js loader imports loader this gt window code prepThe imports loader can also be used to manually inject variables of all kinds But most of the time the codeProvidePlugin code is more useful when it comes to implicit globals phrh24 Use the href https github com webpack imports loader rel noreferrer imports loader to disable AMD h2pThere are modules that support different module styles like AMD CommonJS and legacy However most of the time they first check for codedefine code and then use some quirky code to export properties In these cases it could help to force the CommonJS path by setting codedefine false code ppre codemodule loaders test node modules some module index js loader imports loader define gt false code prehrh25 Use the href https github com webpack script loader rel noreferrer script loader to globally import scripts h2pIf you don care about global variables and just want legacy scripts to work you can also use the script loader It executes the module in global context just as if you had included them via the code lt script gt code tag phrh26 Use codenoParse code to include large dists h2pWhen there is no AMD CommonJS version of the module and you want to include the codedist code you can flag this module as codenoParse code Then webpack will just include the module without parsing it which can be used to improve the build time This means that any feature requiring the href http en wikipedia org wiki Abstract syntax tree rel noreferrer AST like the codeProvidePlugin code will not work ppre codemodule noParse node modules angular angular js code pre What do you mean with where jquery come from You mean you have to install it via npm And why does method not work for you pYou ve mixed different approaches how to include legacy vendor modules This is how tackle it ph21 Prefer unminified CommonJS AMD over codedist code h2pMost modules link the codedist code version in the codemain code field of their codepackage json code While this is useful for most developers for webpack it is better to alias the codesrc code version because this way webpack is able to optimize dependencies better when using the href http webpack github io docs list of plugins html dedupeplugin rel noreferrer codeDedupePlugin code ppre code webpack config jsmodule exports resolve alias jquery jquery src jquery code prepHowever in most cases the codedist code version works just fine as well phrh22 Use the codeProvidePlugin code to inject implicit globals h2pMost legacy modules rely on the presence of specific globals like jQuery plugins do on code code or codejQuery code In this scenario you can configure webpack to prepend codevar require jquery code everytime it encounters the global code code identifier ppre codevar webpack require webpack plugins new webpack ProvidePlugin jquery jQuery jquery code prehrh23 Use the href https github com webpack imports loader rel noreferrer imports loader to configure codethis code h2pSome legacy modules rely on codethis code being the codewindow code object This becomes problem when the module is executed in CommonJS context where codethis code equals codemodule exports code In this case you can override codethis code with the href https github com webpack imports loader rel noreferrer imports loader ppRun codenpm imports loader save dev code and then ppre codemodule loaders test node modules some module index js loader imports loader this gt window code prepThe imports loader can also be used to manually inject variables of all kinds But most of the time the codeProvidePlugin code is more useful when it comes to implicit globals phrh24 Use the href https github com webpack imports loader rel noreferrer imports loader to disable AMD h2pThere are modules that support different module styles like AMD CommonJS and legacy However most of the time they first check for codedefine code and then use some quirky code to export properties In these cases it could help to force the CommonJS path by setting codedefine false code ppre codemodule loaders test node modules some module index js loader imports loader define gt false code prehrh25 Use the href https github com webpack script loader rel noreferrer script loader to globally import scripts h2pIf you don care about global variables and just want legacy scripts to work you can also use the script loader It executes the module in global context just as if you had included them via the code lt script gt code tag phrh26 Use codenoParse code to include large dists h2pWhen there is no AMD CommonJS version of the module and you want to include the codedist code you can flag this module as codenoParse code Then webpack will just include the module without parsing it which can be used to improve the build time This means that any feature requiring the href http en wikipedia org wiki Abstract syntax tree rel noreferrer AST like the codeProvidePlugin code will not work ppre codemodule noParse node modules angular angular js code pre Wow that not cool,0,NULL,NULL 47953,16272,1263882,Scholar Teacher Supporter,NULL,NULL,0,NULL,NULL 47954,36444,74919,Popular Question Yearling Good Question Yearling Popular Question Nice Answer Stellar Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 47955,5245920,577950,Popular Question Necromancer Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47956,3072072,635297,NULL,NULL,NULL,0,NULL,NULL 47957,67775,1151506,Notable Question,NULL,NULL,0,NULL,NULL 47958,81799,15441,Nice Question Notable Question Popular Question Popular Question Announcer Great Question Popular Question Popular Question Necromancer Nice Question Notable Question Popular Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Answer Popular Question Notable Question Yearling Famous Question Famous Question Popular Question Popular Question Excavator Popular Question Nice Question Good Question Popular Question Nice Question Popular Question Nice Question Nice Question Nice Question Popular Question Nice Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Notable Question Good Question Revival Necromancer Notable Question Popular Question Popular Question Favorite Question Notable Question Popular Question Popular Question Popular Question Popular Question Revival Popular Question Yearling Nice Question Documentation User Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Revival Notable Question Popular Question Yearling Famous Question Good Question java Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,1,Why is the default catch all not mandatory in Haskell case statement haskell pHaskell has reputation for being emsafe em language One that generally speaking pushes more of the possible programming errors to compile time errors and less and run time ppOne example of this is the codeif code expression The codeelse code in the if is always mandatory You need to cover off both possibilities This is great because you have thought and covered off all possibilities of what will happen at runtime ppNow Haskell has codecase code expression This bears some similarity to codeswitch code statements in other OO and imperative languages but Haskell adds lot of richness in the type system ppre codedescribeList describeList xs The list is case cs of gt empty gt singleton list xs gt longer list code prepBut with the codecase code expression the default catch all is not mandatory ppTo me this sounds like it would lead to runtime errors ppMy question is strongWhy is the default catch all not mandatory in Haskell codecase code statement strong Why did making Haskell lazy have an impact on performance performance haskell lazy evaluation pIn href https yow eventer com yow 2011 1004 escape from the ivory tower the haskell journey from 1990 to 2011 by simon peyton jones 1054 this video Escape from the Ivory Tower The Haskell Journey href http research microsoft com en us people simonpj Simon Peyton Jones says that making Haskell Lazy helped them with resource constraints on the machines they had at the time It also led to whole lot of other benefits with laziness ppThen he said that the challenge they have now is that laziness impacts on performance ppMy question is strongWhy did making Haskell lazy have an impact on performance strong,NULL 47959,342882,860649,NULL,NULL,NULL,0,NULL,NULL 47960,307088,1447224,NULL,NULL,NULL,0,NULL,NULL 47961,14087,123921,Yearling Yearling,NULL,NULL,0,NULL,NULL 47962,375715,509433,NULL,NULL,NULL,0,NULL,NULL 47963,1375694,945418,NULL,NULL,NULL,0,NULL,NULL 47964,328937,716678,Popular Question,NULL,NULL,0,NULL,NULL 47965,230405,1063684,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 47966,137655,232838,Necromancer Yearling Citizen Patrol Custodian Informed Autobiographer Yearling Nice Answer Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 47967,79080,138141,NULL,NULL,NULL,0,NULL,NULL 47968,95853,1104237,NULL,NULL,NULL,0,NULL,NULL 47969,307724,962963,NULL,NULL,NULL,0,NULL,NULL 47970,277582,1073759,Yearling Yearling Custodian Critic,NULL,NULL,0,NULL,NULL 47971,91763,55534,Yearling Nice Answer Enlightened Nice Question Nice Question Nice Answer Popular Question Good Answer Good Question Yearling Great Answer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 47972,390226,732191,Supporter,NULL,NULL,0,NULL,NULL 47973,105335,733110,NULL,NULL,NULL,0,NULL,NULL 47974,137138,1159301,Yearling,NULL,NULL,0,NULL,NULL 47975,552591,1406321,Organizer Commentator Editor Yearling Critic Yearling Excavator Custodian Custodian Citizen Patrol Yearling Caucus Census Custodian Caucus Constituent Yearling Documentation User Nice Answer Enlightened Census Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 47976,119026,331649,NULL,NULL,NULL,0,NULL,NULL 47977,152753,226835,Popular Question,NULL,NULL,0,NULL,NULL 47978,718693,515213,NULL,NULL,NULL,0,NULL,NULL 47979,223052,85414,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 47980,2992840,298629,Good Question Yearling,NULL,NULL,0,NULL,NULL 47981,467838,298629,Good Question Yearling,NULL,NULL,0,NULL,NULL 47982,159890,298629,Good Question Yearling,NULL,NULL,0,NULL,NULL 47983,223344,302646,Guru Caucus Yearling Custodian Custodian Autobiographer Caucus Yearling Enthusiast Organizer Yearling Custodian,NULL,NULL,0,NULL,NULL 47984,65421,38491,Notable Question Nice Question Notable Question Great Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47985,46915,105403,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 47986,1039871,496118,Nice Answer Popular Question Yearling Good Answer Famous Question Yearling Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 47987,163267,1419031,NULL,NULL,NULL,0,NULL,NULL 47988,301311,179886,Notable Question,NULL,NULL,0,NULL,NULL 47989,209203,135441,Taxonomist Popular Question Good Answer Nice Answer Guru Nice Answer Nice Answer Guru Favorite Question Nice Question Yearling Nice Answer Nice Question Revival Notable Question Revival Good Answer Famous Question Famous Question Caucus Constituent Notable Question Good Answer Good Answer Great Question Favorite Question Nice Answer Guru Good Question Famous Question Yearling Caucus Good Question Announcer Documentation User Enlightened Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Great Question Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 47990,3484344,499818,NULL,NULL,NULL,0,NULL,NULL 47991,984848,192336,Citizen Patrol Critic,NULL,NULL,0,NULL,NULL 47992,915,1010098,NULL,NULL,NULL,0,NULL,NULL 47993,79348,530709,Nice Answer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 47994,74567,89663,Yearling Guru Custodian Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 47995,49709,337063,NULL,NULL,NULL,0,NULL,NULL 47996,145763,224277,NULL,NULL,NULL,0,NULL,NULL 47997,145902,602944,Yearling Great Answer,NULL,NULL,0,NULL,NULL 47998,124363,1132999,Nice Answer Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 47999,388250,1293644,Caucus Caucus Constituent Promoter Benefactor Nice Question,NULL,NULL,0,NULL,NULL 48000,40524,30420,Nice Answer Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 48001,1920640,30420,Nice Answer Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 48002,304475,355981,Nice Question Nice Question Nice Answer Popular Question Yearling Good Answer Popular Question Popular Question Popular Question Popular Question Yearling Revival Popular Question Popular Question Caucus Necromancer Necromancer Nice Answer Caucus Yearling Custodian Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 48003,140526,404937,NULL,NULL,NULL,0,NULL,NULL 48004,196824,702783,Popular Question Announcer,NULL,NULL,0,NULL,NULL 48005,519122,725852,NULL,NULL,NULL,0,NULL,NULL 48006,158890,91144,Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Necromancer Citizen Patrol Custodian Civic Duty Famous Question Favorite Question Yearling Popular Question Inquisitive Self-Learner Nice Answer Nice Question Great Question Popular Question Nice Question Yearling Popular Question Popular Question Populist Good Answer,NULL,NULL,0,NULL,NULL 48007,7499109,91144,Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Necromancer Citizen Patrol Custodian Civic Duty Famous Question Favorite Question Yearling Popular Question Inquisitive Self-Learner Nice Answer Nice Question Great Question Popular Question Nice Question Yearling Popular Question Popular Question Populist Good Answer,NULL,NULL,0,NULL,NULL 48008,113514,1398568,Yearling Supporter Editor Yearling Revival Revival Revival,NULL,NULL,0,NULL,NULL 48009,324658,291403,NULL,NULL,NULL,0,NULL,NULL 48010,279909,18753,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48011,113933,35250,Nice Question Yearling Popular Question Necromancer Good Question Popular Question Nice Answer Yearling Excavator Necromancer Good Answer Popular Question Good Answer Yearling Nice Question Favorite Question Census c++ Nice Question Popular Question Nice Answer Yearling,NULL,pBased on the idea of href http forum devmaster net fast and accurate sine cosine 9648 rel noreferrer http forum devmaster net fast and accurate sine cosine 9648 and some manual rewriting to improve the performance in micro benchmark ended up with the following cosine implementation which is used in HPC physics simulation that is bottlenecked by repeated cos calls on large number space It accurate enough and much faster than lookup table most notably no division is required ppre codetemplate lt typename gt inline cos noexcept constexpr tp PI tp 25 std floor 25 16 std abs if EXTRA PRECISION 225 std abs endif return code prepThe Intel compiler at least is also smart enough in vectorizing this function when used in loop ppIf EXTRA PRECISION is defined the maximum error is about 00109 for the range pi to pi assuming codeT code is codedouble code as it usually defined in most implementations Otherwise the maximum error is about 056 for the same range Yes but that is compile time constant division which is infinitely cheap at runtime pBased on the idea of href http forum devmaster net fast and accurate sine cosine 9648 rel noreferrer http forum devmaster net fast and accurate sine cosine 9648 and some manual rewriting to improve the performance in micro benchmark ended up with the following cosine implementation which is used in HPC physics simulation that is bottlenecked by repeated cos calls on large number space It accurate enough and much faster than lookup table most notably no division is required ppre codetemplate lt typename gt inline cos noexcept constexpr tp PI tp 25 std floor 25 16 std abs if EXTRA PRECISION 225 std abs endif return code prepThe Intel compiler at least is also smart enough in vectorizing this function when used in loop ppIf EXTRA PRECISION is defined the maximum error is about 00109 for the range pi to pi assuming codeT code is codedouble code as it usually defined in most implementations Otherwise the maximum error is about 056 for the same range don have access to license of the Intel compiler anymore where the difference was the biggest Reason being as said that it managed to vectorize the above function and surrounding code whereas it didn do that as nicely for std cos The link to floor is slow also shows how ffast math helps alleviate the issue somewhat ICC does this by default pBased on the idea of href http forum devmaster net fast and accurate sine cosine 9648 rel noreferrer http forum devmaster net fast and accurate sine cosine 9648 and some manual rewriting to improve the performance in micro benchmark ended up with the following cosine implementation which is used in HPC physics simulation that is bottlenecked by repeated cos calls on large number space It accurate enough and much faster than lookup table most notably no division is required ppre codetemplate lt typename gt inline cos noexcept constexpr tp PI tp 25 std floor 25 16 std abs if EXTRA PRECISION 225 std abs endif return code prepThe Intel compiler at least is also smart enough in vectorizing this function when used in loop ppIf EXTRA PRECISION is defined the maximum error is about 00109 for the range pi to pi assuming codeT code is codedouble code as it usually defined in most implementations Otherwise the maximum error is about 056 for the same range measure for yourself https godbolt org YhbQTk,0,NULL,NULL 48012,63319,210543,NULL,NULL,NULL,0,NULL,NULL 48013,54274,1175818,Yearling Revival Yearling Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 48014,423026,169141,Yearling Popular Question Good Question Popular Question Notable Question Famous Question Notable Question Popular Question Nice Question Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 48015,129055,560502,NULL,NULL,NULL,0,NULL,NULL 48016,136245,735045,NULL,NULL,NULL,0,NULL,NULL 48017,165740,257387,Yearling,NULL,NULL,0,NULL,NULL 48018,11894,1299084,Yearling,NULL,NULL,0,NULL,NULL 48019,341969,11992,Nice Answer Enlightened Nice Question Yearling Good Answer Nice Answer Announcer Yearling Popular Question Nice Answer Announcer Nice Question Yearling Nice Question Notable Question,NULL,pApart from tuples being immutable there is also semantic distinction that should guide their usage Tuples are heterogeneous data structures their entries have different meanings while lists are homogeneous sequences strongTuples have structure lists have order strong ppUsing this distinction makes code more explicit and understandable ppOne example would be pairs of page and line number to reference locations in book ppre codemy location 42 11 page number line number code prepYou can then use this as key in dictionary to store notes on locations list on the other hand could be used to store multiple locations Naturally one might want to add or remove locations from the list so it makes sense that lists are mutable On the other hand it doesn make sense to add or remove items from an existing location hence tuples are immutable ppThere might be situations where you want to change items within an existing location tuple for example when iterating through the lines of page But tuple immutability forces you to create new location tuple for each new value This seems inconvenient on the face of it but using immutable data like this is cornerstone of value types and functional programming techniques which can have substantial advantages ppThere are some interesting articles on this issue href http jtauber com blog 2006 04 15 python tuples are not just constant lists rel noreferrer Python Tuples are Not Just Constant Lists or href http news scribe com 397 rel noreferrer Understanding tuples vs lists in Python The official Python documentation href http docs python org tutorial datastructures html tuples and sequences rel noreferrer also mentions this pblockquote Tuples are immutable and usually contain an heterogeneous sequence blockquotepIn statically typed language like emHaskell em the values in tuple generally have different types and the length of the tuple must be fixed In list the values all have the same type and the length is not fixed So the difference is very obvious ppFinally there is the href http docs python org dev library collections html collections namedtuple rel noreferrer namedtuple in Python which makes sense because tuple is already supposed to have structure This underlines the idea that tuples are light weight alternative to classes and instances Yes exactly especially namedtuples,0,NULL,NULL 48020,885336,1106423,NULL,NULL,NULL,0,NULL,NULL 48021,29228,378693,NULL,NULL,NULL,0,NULL,NULL 48022,343897,284862,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48023,280529,420614,Caucus Constituent Nice Answer Nice Question Revival Yearling Necromancer Civic Duty Curious Necromancer Famous Question,NULL,NULL,0,NULL,NULL 48024,287295,383529,NULL,NULL,NULL,0,NULL,NULL 48025,544077,578273,Good Answer,NULL,NULL,0,NULL,NULL 48026,167451,41984,Nice Answer Yearling Famous Question Autobiographer Popular Question Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48027,497607,443657,NULL,NULL,NULL,0,NULL,NULL 48028,652307,1204298,Editor,NULL,NULL,0,NULL,NULL 48029,5268,205832,Announcer Announcer Announcer Announcer Nice Question Famous Question Yearling Good Answer Announcer Nice Answer Popular Question Good Question Notable Question Yearling Good Question Popular Question Nice Question Famous Question Announcer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 48030,18852,589220,NULL,NULL,NULL,0,NULL,NULL 48031,287019,1169085,Yearling Good Answer,NULL,NULL,0,NULL,NULL 48032,769739,356814,NULL,NULL,NULL,0,NULL,NULL 48033,15832,157260,Good Question Popular Question Good Answer Yearling Caucus Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 48034,885904,1290185,Custodian Yearling Tumbleweed Student Scholar Yearling Caucus Popular Question Necromancer Notable Question Revival Caucus Yearling Self-Learner,NULL,blockquote strongNOTE strong In 2016 you can probably use codeflexbox code to solve this problem easier blockquotepThis method works correctly IE7 and all major browsers it been tried and tested in number of complex viewport based web applications ppre code lt style gt container font size column display inline block width 50 font size 1rem IE9 ie7 column font size 16px display inline zoom ie8 column font size 16px lt style gt lt div class container gt lt div class column gt text that can wrap lt div gt lt div class column gt text that can wrap lt div gt lt div gt code prep strongLive demo href http jsbin com sekeco rel nofollow noreferrer http output jsbin com sekeco strong ppThe only downside to this method for IE7 is relying on codebody font size px code as basis for em based font sizing ppIE7 IE8 specific CSS could be served using IE href https stackoverflow com questions 6658113 how do use paul irishs conditional comments in sharepoint 2010 master page Conditional comments This approach doesn scale if markup changes to have divs inline block keeps rows of 50 div and flex arranges all of them in row making them smaller however agree that this isn the scenario in the OP asked question,0,NULL,NULL 48035,99785,645360,NULL,NULL,NULL,0,NULL,NULL 48036,383853,1085211,NULL,NULL,NULL,0,NULL,NULL 48037,1519397,136732,Yearling Nice Question Notable Question Nice Answer Notable Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48038,9798,320922,Editor,NULL,NULL,0,NULL,NULL 48039,1046815,963157,NULL,NULL,NULL,0,NULL,NULL 48040,3031149,963157,NULL,NULL,NULL,0,NULL,NULL 48041,48239,394564,NULL,NULL,NULL,0,NULL,NULL 48042,9042,375370,Popular Question,NULL,NULL,0,NULL,NULL 48043,514751,891420,Teacher Editor,NULL,NULL,0,NULL,NULL 48044,154926,187691,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 48045,12172,214511,NULL,NULL,NULL,0,NULL,NULL 48046,126729,20035,NULL,NULL,NULL,0,NULL,NULL 48047,165178,580417,NULL,NULL,NULL,0,NULL,NULL 48048,187321,220853,Famous Question Notable Question Favorite Question Popular Question Yearling Necromancer Notable Question Yearling Great Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 48049,8170,1040432,Good Answer Yearling Caucus Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 48050,372729,11620,NULL,NULL,NULL,0,NULL,NULL 48051,10053,1118285,NULL,NULL,NULL,0,NULL,NULL 48052,186807,1312502,Necromancer Informed,NULL,NULL,0,NULL,NULL 48053,408894,1016,Yearling Guru Nice Answer Nice Answer c# Nice Answer Yearling Yearling,NULL,codesortBy code says that it is stable sort algorithm so you should be able to sort by your second property first then sort again by your first property like this ppre codevar sortedArray patients chain sortBy function patient return patient name sortBy function patient return patient roomNumber value code prepWhen the second codesortBy code finds that John and Lisa have the same room number it will keep them in the order it found them which the first codesortBy code set to Lisa John The indexer is required because in the original example patients is an array of arrays This is also why the simpler solution in the blog post mentioned in another comment won work here,0,NULL,NULL 48054,99423,1065537,NULL,NULL,NULL,0,NULL,NULL 48055,448016,936399,Nice Answer,NULL,NULL,0,NULL,NULL 48056,597507,1381045,Yearling Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48057,294267,680668,Popular Question Notable Question Nice Answer Yearling Nice Answer Necromancer Necromancer Yearling Good Answer Nice Question Nice Answer Yearling Nice Answer Custodian Notable Question,NULL,NULL,0,NULL,NULL 48058,43901,1393845,NULL,NULL,NULL,0,NULL,NULL 48059,271759,1000790,Notable Question,NULL,NULL,0,NULL,NULL 48060,191699,766464,NULL,NULL,NULL,0,NULL,NULL 48061,191176,145777,NULL,NULL,NULL,0,NULL,NULL 48062,176776,91153,NULL,NULL,NULL,0,NULL,NULL 48063,13061,469052,Necromancer,NULL,NULL,0,NULL,NULL 48064,296115,1145377,NULL,NULL,NULL,0,NULL,NULL 48065,39566,1218531,NULL,NULL,NULL,0,NULL,NULL 48066,6521763,104466,Yearling Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 48067,414932,255694,NULL,NULL,NULL,0,NULL,NULL 48068,184889,645186,Good Answer Nice Answer Yearling Nice Answer Enlightened mysql Great Answer Great Answer Nice Answer Good Answer regex Nice Answer Caucus Peer Pressure Constituent Nice Answer Enlightened Great Answer Yearling Great Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Constituent Good Answer Nice Answer Guru Good Answer Nice Answer php Yearling Nice Answer Guru Disciplined Sportsmanship Notable Question Great Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 48069,70501,115091,Nice Question Yearling,NULL,NULL,0,NULL,NULL 48070,107727,480474,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48071,234584,1338631,Editor Popular Question,NULL,NULL,0,NULL,NULL 48072,1947768,1532982,NULL,NULL,NULL,0,NULL,NULL 48073,17594,557091,Nice Question Good Answer Notable Question Revival Great Answer unit-testing Nice Answer Revival Nice Answer Populist Necromancer Great Answer Nice Answer Guru Necromancer Necromancer Yearling Revival Custodian Nice Answer Good Answer Nice Answer Nice Answer Enlightened Famous Question Proofreader Investor Yearling Census java junit Caucus Good Answer testing Good Answer Good Answer Nice Answer Nice Answer Good Answer Enlightened,NULL,NULL,0,NULL,NULL 48074,61110,1563391,Yearling Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 48075,359598,1233734,Nice Answer,NULL,NULL,0,NULL,NULL 48076,16492,477037,Nice Answer regex Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Self-Learner Nice Answer arrays Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Electorate Announcer Popular Question Nice Answer Good Answer Guru Popular Question Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Good Answer Caucus Copy Editor ruby-on-rails Nice Answer Nice Answer Guru Guru Nice Answer Great Answer Quorum Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Disciplined Great Answer rspec Nice Answer Enlightened Necromancer Caucus Nice Answer Custodian Custodian Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Nice Question Yearling Good Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Caucus Nice Answer Nice Answer Enlightened Good Answer Nice Answer Necromancer Notable Question Nice Answer Enlightened Nice Answer Announcer Notable Question Nice Question Guru Guru Booster Yearling Notable Question Nice Answer Nice Question Guru Nice Answer,NULL,NULL,1,NULL,Run cleanup step if any it block failed ruby rspec pWhen one of my codeit code blocks fails strongwant strong to run cleanup step When all of the codeit code blocks succeed strongdon want strong to run the cleanup step ppre codeRSpec describe my describe do it first it do logic that might fail end it second it do logic that might fail end after all do cleanup logic if ONE OF THE ITS FAILED endend code prepHow do implement codeONE OF THE ITS FAILED code pNot sure if RSpec provides something out of the box but this would work ppre codeRSpec describe my describe do before all do end after each do example lt lt example exception end after all do cleanup logic if any end end code pre 48077,883506,381497,NULL,NULL,NULL,0,NULL,NULL 48078,207221,710981,NULL,NULL,NULL,0,NULL,NULL 48079,75752,63009,Yearling Good Answer Populist Nice Answer Good Answer Disciplined Nice Answer Yearling Good Answer Guru Revival Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48080,136609,416029,Good Question Good Answer Yearling Nice Question Nice Answer Good Question Famous Question Nice Question Revival Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 48081,15554,120917,Necromancer Yearling Documentation Pioneer Nice Answer Nice Answer Caucus Constituent Nice Answer Enlightened Census Nice Answer Enlightened Necromancer Yearling Caucus Constituent Documentation User Necromancer Census Nice Answer Caucus Constituent Yearling ansible Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48082,18214,176472,NULL,NULL,NULL,0,NULL,NULL 48083,94866,2986,NULL,NULL,NULL,0,NULL,NULL 48084,23842,731798,Necromancer,NULL,NULL,0,NULL,NULL 48085,1228438,295793,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 48086,7773,813828,Popular Question,NULL,NULL,0,NULL,NULL 48087,1119369,428477,Critic Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 48088,594390,1374878,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48089,430831,646458,Editor Yearling Nice Answer Enlightened Nice Answer Populist Yearling Necromancer,NULL,NULL,0,NULL,NULL 48090,1060208,237298,NULL,NULL,NULL,0,NULL,NULL 48091,93200,1232350,Nice Answer Yearling Tumbleweed Necromancer Nice Answer Student Yearling,NULL,NULL,0,NULL,NULL 48092,1872847,1226700,NULL,NULL,NULL,0,NULL,NULL 48093,69330,1226700,NULL,NULL,NULL,0,NULL,NULL 48094,443157,818309,Good Answer Necromancer Yearling Populist Nice Answer Revival Critic Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48095,488572,40211,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 48096,257685,354612,NULL,NULL,NULL,0,NULL,NULL 48097,141097,1044403,Nice Question Nice Answer Enlightened Popular Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 48098,133723,363032,NULL,NULL,NULL,0,NULL,NULL 48099,7693523,363032,NULL,NULL,NULL,0,NULL,NULL 48100,107224,499279,Nice Answer Enlightened Yearling Famous Question,NULL,NULL,0,NULL,NULL 48101,307984,1129633,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48102,128106,727999,Yearling,NULL,NULL,0,NULL,NULL 48103,191531,1148391,NULL,NULL,NULL,0,NULL,NULL 48104,237552,1357699,NULL,NULL,NULL,0,NULL,NULL 48105,10648,848001,NULL,NULL,NULL,0,NULL,NULL 48106,1019491,1104661,NULL,NULL,NULL,0,NULL,NULL 48107,446089,1059782,Fanatic Custodian Good Answer Quorum Guru Yearling Nice Answer Enlightened Census Caucus Yearling Census Custodian Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48108,40806,1055047,NULL,NULL,NULL,0,NULL,NULL 48109,11181,216116,NULL,NULL,NULL,0,NULL,NULL 48110,24301,440589,NULL,NULL,NULL,0,NULL,NULL 48111,386451,828372,Notable Question,NULL,NULL,0,NULL,NULL 48112,106435,1195176,Yearling,NULL,NULL,0,NULL,NULL 48113,169972,354418,NULL,NULL,NULL,0,NULL,NULL 48114,23185,1380184,Necromancer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 48115,216011,1166651,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 48116,474444,643309,Necromancer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48117,750570,643309,Necromancer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48118,749624,1466205,NULL,NULL,NULL,0,NULL,NULL 48119,20577,431396,Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 48120,384022,1039745,NULL,NULL,NULL,0,NULL,NULL 48121,96222,1129429,NULL,NULL,NULL,0,NULL,NULL 48122,330045,942390,Tumbleweed Promoter Benefactor Popular Question Yearling Nice Question Popular Question Yearling Good Question Census Nice Answer Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 48123,164914,573486,Supporter,NULL,NULL,0,NULL,NULL 48124,277598,26414,Notable Question Notable Question Populist Famous Question Famous Question Nice Question Notable Question Notable Question Famous Question Notable Question Good Question Famous Question Popular Question c# Nice Answer Notable Question Great Answer Famous Question Notable Question Yearling Good Question Famous Question Notable Question Notable Question Caucus Guru Good Answer Popular Question Nice Answer Nice Answer Famous Question Nice Answer Popular Question Nice Answer Notable Question Good Question Nice Answer Enlightened Custodian Guru Notable Question Popular Question Notable Question Guru Famous Question linq Nice Answer Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Good Answer Notable Question Good Question Popular Question Good Answer Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 48125,329546,1365671,Good Answer Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 48126,125082,1119496,NULL,NULL,NULL,0,NULL,NULL 48127,222753,880815,NULL,NULL,NULL,0,NULL,NULL 48128,1160950,1050631,NULL,NULL,NULL,0,NULL,NULL 48129,164137,1386513,NULL,NULL,NULL,0,NULL,NULL 48130,818786,799068,Yearling Popular Question Great Question Yearling Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 48131,237565,1118444,NULL,NULL,NULL,0,NULL,NULL 48132,598544,343213,NULL,NULL,NULL,0,NULL,NULL 48133,87365,414221,Yearling Popular Question Yearling Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 48134,234641,556192,NULL,NULL,NULL,0,NULL,NULL 48135,270251,856590,NULL,NULL,NULL,0,NULL,NULL 48136,134130,2727,Yearling,NULL,NULL,0,NULL,NULL 48137,31564,1381411,Student Enthusiast,NULL,NULL,0,NULL,NULL 48138,14268,396101,Electorate,NULL,NULL,0,NULL,NULL 48139,116676,1126133,Commentator Critic,NULL,NULL,0,NULL,NULL 48140,25593,919390,NULL,NULL,NULL,0,NULL,NULL 48141,1055504,1230164,Yearling Nice Answer Nice Answer Enlightened Good Answer Custodian Yearling Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 48142,177158,1100490,NULL,NULL,NULL,0,NULL,NULL 48143,436916,321957,Caucus Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 48144,258451,948641,NULL,NULL,NULL,0,NULL,NULL 48145,20385,418183,Necromancer Good Answer Good Answer Good Answer Good Answer Great Answer Yearling Great Answer Good Answer Notable Question Guru Nice Answer Yearling Nice Answer Announcer Guru Guru Nice Answer Great Answer Yearling,NULL,pAlright here your pure JavaScript file upload implementation ppThe basic algorithm is like this polliGet the file from the file input element liliGet the file name and type off the file object liliGet the latest document revision of the document you want to attach the file to liliAttach the file to document using the fetched revision li olpThe HTML part basically consists of simple form with two elements an input of type codefile code and button of type codesubmit code ppre class lang html prettyprint override code lt form action method post name upload gt lt input type file name file gt lt button type submit name submit gt Upload lt button gt lt form gt code prepNow to the JavaScript part ppre class lang js prettyprint override codewindow onload function var app function var baseUrl http 127 5984 playground var fileInput document forms upload elements file document forms upload onsubmit function uploadFile foo fileInput files return false var uploadFile function docName file var name encodeURIComponent file name type file type fileReader new FileReader getRequest new XMLHttpRequest putRequest new XMLHttpRequest getRequest open GET baseUrl encodeURIComponent docName true getRequest send getRequest onreadystatechange function response if getRequest readyState amp amp getRequest status 200 var doc JSON parse getRequest responseText putRequest open PUT baseUrl encodeURIComponent docName name rev doc rev true putRequest setRequestHeader Content Type type fileReader readAsArrayBuffer file fileReader onload function readerEvent putRequest send readerEvent target result putRequest onreadystatechange function response if putRequest readyState console log putRequest app code prepBasically intercept the codesubmit code event of the form by binding my own function to the form codeonsubmit code event and returning false ppIn that event handler call my main function with two parameters The first one being the document name and the second one being the file to upload ppIn my codeuploadFile code function set the file name file type and grab some instances The first HTTP request is GET request to obtain the current revision of the document If that request succeeds prepare the PUT request the actual upload request by setting the previously obtained revision the proper content type and then convert the file to an ArrayBuffer Once that done just send the HTTP request ve just prepared and then relax ppThe standalone attachment upload scheme looks like this ppre codePUT host database document filename revision latest revision code prepOf course using the proper content type in the HTTP request header pp emNote well aware that not making use of defensive programming here at all did that deliberately for brevity em noob very good point fixed that now,0,NULL,NULL 48146,690402,803406,Yearling Nice Answer Enlightened Documentation User,NULL,NULL,0,NULL,NULL 48147,338866,1015980,Informed Tumbleweed Scholar Student Teacher Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 48148,431677,703470,NULL,NULL,NULL,0,NULL,NULL 48149,211169,1219840,NULL,NULL,NULL,0,NULL,NULL 48150,30726,486590,NULL,NULL,NULL,0,NULL,NULL 48151,45192,275491,Necromancer Yearling Popular Question Popular Question Nice Answer Famous Question Good Answer Popular Question Popular Question Nice Answer Yearling Necromancer Necromancer Good Question Yearling Custodian Favorite Question Announcer,NULL,NULL,0,NULL,NULL 48152,300996,1035179,NULL,NULL,NULL,0,NULL,NULL 48153,99375,246522,NULL,NULL,NULL,0,NULL,NULL 48154,302824,1056685,NULL,NULL,NULL,0,NULL,NULL 48155,217842,679981,NULL,NULL,NULL,0,NULL,NULL 48156,30019,475789,NULL,NULL,NULL,0,NULL,NULL 48157,2046976,475789,NULL,NULL,NULL,0,NULL,NULL 48158,428698,913957,NULL,NULL,NULL,0,NULL,NULL 48159,705297,363382,NULL,NULL,NULL,0,NULL,NULL 48160,56263,1310369,NULL,NULL,NULL,0,NULL,NULL 48161,190925,137450,NULL,NULL,NULL,0,NULL,NULL 48162,668991,803762,Supporter Popular Question Notable Question Notable Question Popular Question Curious Editor Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 48163,2143110,803762,Supporter Popular Question Notable Question Notable Question Popular Question Curious Editor Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 48164,8188,757242,Yearling Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 48165,1160001,478959,Editor Supporter,NULL,NULL,0,NULL,NULL 48166,652675,921148,NULL,NULL,NULL,0,NULL,NULL 48167,70345,686340,NULL,NULL,NULL,0,NULL,NULL 48168,2958872,1033932,NULL,NULL,NULL,0,NULL,NULL 48169,260243,277918,Great Answer Yearling Yearling Nice Question Notable Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48170,615490,680998,NULL,NULL,NULL,0,NULL,NULL 48171,144860,316575,Notable Question,NULL,NULL,0,NULL,NULL 48172,178342,293111,NULL,NULL,NULL,0,NULL,NULL 48173,127645,315577,Famous Question Yearling,NULL,NULL,0,NULL,NULL 48174,314797,591504,NULL,NULL,NULL,0,NULL,NULL 48175,32402,160699,Revival Nice Answer Enlightened Good Answer Necromancer Yearling Caucus Caucus Yearling Nice Answer Documentation User Yearling,NULL,pA simple answer is ppre codeecho lol xargs code prep href http en wikipedia org wiki Xargs Xargs will do the trimming for you It one command program no parameters returns the trimmed string easy as that ppNote this doesn remove the internal spaces so code foo bar code stays the same It does NOT become code foobar code thanks for the sincerity maybe try with this echo lol xargs echo,0,NULL,NULL 48176,393981,615067,NULL,NULL,NULL,0,NULL,NULL 48177,259518,960909,NULL,NULL,NULL,0,NULL,NULL 48178,514711,1248723,NULL,NULL,NULL,0,NULL,NULL 48179,66907,1247359,NULL,NULL,NULL,0,NULL,NULL 48180,310084,320269,NULL,NULL,NULL,0,NULL,NULL 48181,151295,494178,NULL,NULL,NULL,0,NULL,NULL 48182,461475,718903,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 48183,369268,968156,Curious Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 48184,382821,1387092,NULL,NULL,NULL,0,NULL,NULL 48185,371827,1356295,NULL,NULL,NULL,0,NULL,NULL 48186,34689,976138,Commentator Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48187,50326,904084,NULL,NULL,NULL,0,NULL,NULL 48188,192764,388065,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 48189,865250,1552622,Yearling Curious Custodian Popular Question Announcer Nice Answer Enlightened Yearling Caucus Tag Editor Revival Nice Question Revival Custodian Civic Duty Caucus Popular Question Nice Answer Notable Question Nice Answer Notable Question Necromancer Yearling Necromancer Popular Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 48190,539215,1555454,NULL,NULL,NULL,0,NULL,NULL 48191,4413,85472,Electorate Revival Yearling Nice Question Popular Question Custodian Announcer Yearling Great Answer Announcer Nice Answer Enlightened Documentation User Necromancer Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 48192,775096,383159,Notable Question Commentator Caucus Constituent Revival Caucus Constituent Informed Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 48193,2842363,1268256,NULL,NULL,NULL,0,NULL,NULL 48194,895717,91503,Notable Question Notable Question Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48195,227897,947861,NULL,NULL,NULL,0,NULL,NULL 48196,524358,657153,NULL,NULL,NULL,0,NULL,NULL 48197,42038,421609,Good Question,NULL,NULL,0,NULL,NULL 48198,1076337,388494,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48199,120904,792615,NULL,NULL,NULL,0,NULL,NULL 48200,396722,816709,NULL,NULL,NULL,0,NULL,NULL 48201,236388,395276,NULL,NULL,NULL,0,NULL,NULL 48202,3420,440362,Yearling Popular Question Good Answer Announcer Yearling Necromancer Good Question Guru Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 48203,232437,178013,Editor Necromancer Yearling Revival Necromancer Yearling Necromancer Critic Nice Answer Necromancer Nice Answer Yearling Scholar Documentation User Necromancer Necromancer Yearling Custodian Caucus Constituent Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 48204,9741135,1382695,Notable Question,NULL,NULL,0,NULL,NULL 48205,16225,765871,NULL,NULL,NULL,0,NULL,NULL 48206,15355,807679,Documentation User,NULL,NULL,0,NULL,NULL 48207,60438,1461457,Critic Commentator,NULL,NULL,0,NULL,NULL 48208,52397,388270,NULL,NULL,NULL,0,NULL,NULL 48209,360845,713769,NULL,NULL,NULL,0,NULL,NULL 48210,299811,982004,Informed,NULL,NULL,0,NULL,NULL 48211,349905,112041,Famous Question Nice Question Famous Question Guru Popular Question Yearling Great Question Notable Question Notable Question Yearling Famous Question Custodian Notable Question Census Good Question Custodian Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 48212,23986,223304,Great Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48213,388048,415228,Necromancer Yearling Scholar Caucus Yearling Nice Answer Revival Necromancer Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48214,607452,21463,NULL,NULL,NULL,0,NULL,NULL 48215,1570424,876851,NULL,NULL,NULL,0,NULL,NULL 48216,153525,245136,NULL,NULL,NULL,0,NULL,NULL 48217,441141,190076,NULL,NULL,NULL,0,NULL,NULL 48218,1747660,717702,Revival Famous Question Popular Question Notable Question Nice Question Nice Answer Yearling Necromancer Notable Question Good Question Popular Question Yearling Popular Question Popular Question Popular Question Yearling Good Question Necromancer Good Answer,NULL,NULL,0,NULL,NULL 48219,844443,146704,NULL,NULL,NULL,0,NULL,NULL 48220,4380937,573505,Yearling Guru Yearling Civic Duty Popular Question Yearling Guru Critic,NULL,NULL,0,NULL,NULL 48221,210051,15128,NULL,NULL,NULL,0,NULL,NULL 48222,300074,185324,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 48223,251541,1445967,Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Critic,NULL,NULL,0,NULL,NULL 48224,269164,117492,NULL,NULL,NULL,0,NULL,NULL 48225,81624,310847,NULL,NULL,NULL,0,NULL,NULL 48226,339160,441518,Critic Notable Question,NULL,NULL,0,NULL,NULL 48227,110978,1277490,NULL,NULL,NULL,0,NULL,NULL 48228,1165860,1277490,NULL,NULL,NULL,0,NULL,NULL 48229,634978,1202790,NULL,NULL,NULL,0,NULL,NULL 48230,1228475,1213282,NULL,NULL,NULL,0,NULL,NULL 48231,2615,743263,Yearling Nice Answer Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 48232,8588,985618,Commentator,NULL,NULL,0,NULL,NULL 48233,121517,1451865,Informed,NULL,NULL,0,NULL,NULL 48234,36352,154970,Good Question Yearling Nice Answer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 48235,2227927,788401,NULL,NULL,NULL,0,NULL,NULL 48236,697139,970200,Populist Nice Answer Enlightened Good Answer javascript Yearling Caucus Constituent browserify Caucus Constituent Yearling Civic Duty Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 48237,18432,353136,Critic,NULL,NULL,0,NULL,NULL 48238,166484,1078605,Yearling,NULL,NULL,0,NULL,NULL 48239,184217,189154,Notable Question Popular Question Yearling Notable Question Good Answer Nice Answer Nice Answer Nice Answer Notable Question Yearling Custodian Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 48240,338702,316164,NULL,NULL,NULL,0,NULL,NULL 48241,1188578,695476,Yearling Famous Question Inquisitive Popular Question Famous Question Famous Question Popular Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 48242,391202,1163842,Famous Question Yearling Famous Question Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 48243,338927,131730,Nice Answer Great Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 48244,104570,656872,NULL,NULL,NULL,0,NULL,NULL 48245,236248,863351,Commentator Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48246,1761681,863351,Commentator Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48247,904395,989283,NULL,NULL,NULL,0,NULL,NULL 48248,53658,445972,Notable Question,NULL,NULL,0,NULL,NULL 48249,1784,287090,NULL,NULL,NULL,0,NULL,NULL 48250,97102,693546,Yearling Civic Duty Notable Question Fanatic Nice Question Yearling Announcer Yearling Yearling Tenacious Announcer Yearling,NULL,NULL,0,NULL,NULL 48251,559649,1326434,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48252,197259,440811,Civic Duty,NULL,NULL,0,NULL,NULL 48253,34101,1178584,Notable Question,NULL,NULL,0,NULL,NULL 48254,1016284,636264,NULL,NULL,NULL,0,NULL,NULL 48255,17989,1267485,NULL,NULL,NULL,0,NULL,NULL 48256,840062,879556,NULL,NULL,NULL,0,NULL,NULL 48257,412722,920010,Revival Critic Caucus Notable Question,NULL,NULL,0,NULL,NULL 48258,14412,118608,Quorum Necromancer Custodian Popular Question Popular Question Enthusiast Citizen Patrol Nice Answer Yearling Good Answer Yearling Caucus Yearling Revival Civic Duty Popular Question Self-Learner Yearling Announcer Notable Question Yearling Announcer Popular Question Caucus Yearling Announcer Tumbleweed Nice Answer Nice Question Custodian Cleanup Custodian Necromancer Great Answer Organizer Revival Popular Question Custodian Nice Answer Yearling Explainer Popular Question Nice Answer Famous Question,NULL,Is there CommonJS require implementation that doesn use module exports javascript commonjs pAre there any build tools or JS environments that use emonly em the codeexports code variable emand not em codemodule exports code when doing CommonJS like coderequire code disregard AMD RequireJS pp strongBackground strong brThe href http wiki commonjs org wiki Modules rel nofollow noreferrer CommonJS specification only defines the codeexports code variable it never mentions codemodule exports code however when most people write about CommonJSsup1 sup they assume that it possible to use codemodule exports code rather than codeexports code as popularized by Node js My general impression is that most so called CommonJS implementations support codemodule exports code ppThis is relevant to me as the href https github com umdjs umd blob 95563fd6b46f06bda0af143ff67292e7f6ede6b7 templates jqueryPlugin js rel nofollow noreferrer UMD template for jQuery plugins only checks codemodule exports code whereas most of href https github com umdjs umd blob 95563fd6b46f06bda0af143ff67292e7f6ede6b7 templates commonjsStrict js rel nofollow noreferrer the other CommonJS UMD templates actually check the codeexports code variable and thus conform to the CommonJS spec So which one is it can move to fully ignoring codeexports code and only check for codemodule exports code or do really need to check codeexports code to have my library support all possible clients pp strongReferences strong brsup1 sup href http dontkry com posts code browserify and the universal module definition html rel nofollow noreferrer dontkry com href https medium freecodecamp com javascript modules beginner guide 783f7d7a5fcc jhzb22f5i rel nofollow noreferrer freecodecamp com href https medium com es6 modules amd and commonjs c1acefbe6fc0 ybs1xkr3p rel nofollow noreferrer Brian Leroux href https stackoverflow com questions 16383795 difference between module exports and exports in the commonjs module system various href https stackoverflow com questions 30066527 commonjs modules exporting function that returns function with arguments rq StackOverflow href https stackoverflow com questions 37160956 is module exports in commonjs equal to export in es6 questions Hi sorry it doesn The question is not about the difference between exports and module exports but rather whether will ever run in to situation where module exports is unavailable and only exports is available,1,Is there CommonJS require implementation that doesn use module exports javascript commonjs pAre there any build tools or JS environments that use emonly em the codeexports code variable emand not em codemodule exports code when doing CommonJS like coderequire code disregard AMD RequireJS pp strongBackground strong brThe href http wiki commonjs org wiki Modules rel nofollow noreferrer CommonJS specification only defines the codeexports code variable it never mentions codemodule exports code however when most people write about CommonJSsup1 sup they assume that it possible to use codemodule exports code rather than codeexports code as popularized by Node js My general impression is that most so called CommonJS implementations support codemodule exports code ppThis is relevant to me as the href https github com umdjs umd blob 95563fd6b46f06bda0af143ff67292e7f6ede6b7 templates jqueryPlugin js rel nofollow noreferrer UMD template for jQuery plugins only checks codemodule exports code whereas most of href https github com umdjs umd blob 95563fd6b46f06bda0af143ff67292e7f6ede6b7 templates commonjsStrict js rel nofollow noreferrer the other CommonJS UMD templates actually check the codeexports code variable and thus conform to the CommonJS spec So which one is it can move to fully ignoring codeexports code and only check for codemodule exports code or do really need to check codeexports code to have my library support all possible clients pp strongReferences strong brsup1 sup href http dontkry com posts code browserify and the universal module definition html rel nofollow noreferrer dontkry com href https medium freecodecamp com javascript modules beginner guide 783f7d7a5fcc jhzb22f5i rel nofollow noreferrer freecodecamp com href https medium com es6 modules amd and commonjs c1acefbe6fc0 ybs1xkr3p rel nofollow noreferrer Brian Leroux href https stackoverflow com questions 16383795 difference between module exports and exports in the commonjs module system various href https stackoverflow com questions 30066527 commonjs modules exporting function that returns function with arguments rq StackOverflow href https stackoverflow com questions 37160956 is module exports in commonjs equal to export in es6 questions,NULL 48259,253007,1407823,Yearling Curious Popular Question Caucus Custodian Custodian Custodian Notable Question Famous Question Announcer Nice Question Caucus Nice Question Popular Question Documentation User Census Popular Question,NULL,NULL,0,NULL,NULL 48260,181645,308237,Necromancer Necromancer Notable Question Popular Question Popular Question Popular Question Nice Question Famous Question Nice Answer Necromancer Popular Question Yearling Nice Question Popular Question Notable Question Great Answer Nice Answer Revival Good Question Notable Question Necromancer Organizer Nice Answer Nice Answer Necromancer Nice Question Notable Question Notable Question Notable Question Notable Question Notable Question Reviewer Proofreader Famous Question Custodian Nice Answer Necromancer Yearling Nice Question Notable Question Necromancer Revival Good Answer Nice Answer Tag Editor Notable Question Good Question Famous Question Revival Necromancer Necromancer Popular Question Popular Question Good Question Good Answer Popular Question Notable Question Documentation User Explainer Good Answer Popular Question Popular Question Popular Question Notable Question Census Necromancer Popular Question Famous Question Necromancer Yearling Pundit Famous Question Necromancer Nice Answer Revival Necromancer Nice Question Nice Answer Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Necromancer Good Answer Necromancer Notable Question Good Answer Necromancer Notable Question,NULL,pre codestat git FETCH HEAD code prepWill give you unix timestamp of the last modification of that file Git writes the FETCH HEAD file every time you pull or fetch even if there was nothing to pull You can also check git refs heads master which will have its timestamp change when git pull results in changes coming in from the remote master branch but the timestamp won change when git pull reports there are no changes pThe latest version of git as of October 2012 allows you to do this from the command line ppre codegit remote set url origin push add user1 remote set url origin push add user2 remote code prepThen codegit push code will push to user1 then push to user2 Leave out code push code if you also want to be able to codegit pull code from them too IvanZakharyaschev It should be the same as running git fetch for one URL then git fetch from the next guess it will result in matching whichever remote is the furthest advanced or failing if one remote has diverged from another,1,How to split command over multiple lines in appveyor yml yaml appveyor pI would like to split long build command across multiple lines in my codeappveyor yml code file however cannot get it to unwrap so the build is failing when the first codeFOR code command gets cut off and returns an error am not sure how to correctly split the lines in the code yml code file so that they are reassembled inside Appveyor How can this be done ppHere is simplified version ppre codebuild script cmd gt off FOR IN x86 x64 DO FOR IN Debug Release DO msbuild Configuration Platform EXIT code prepI want it to appear in AppVeyor as this ppre code offFOR IN x86 x64 DO FOR IN Debug Release DO msbuild Configuration Platform EXIT code prepExtra spaces are unimportant the important bit is that the line beginning with codeFOR code until the final code code appears on the same line ppNote that in theory it would also be acceptable for Appveyor to see this ppre code offFOR IN x86 x64 DO FOR IN Debug Release DO msbuild Configuration Platform EXIT code prepAs the Windows codecmd exe code interpreter would then see the continuation markers code code at the end of each line and treat them as one big long command emexcept em that Appveyor does not appear to recognise the code code marker so it sends each line to codecmd exe code one at time instead of sending the whole multi line block together ppThis means the first option looks like the only viable solution where the YAML is constructed such that the codeFOR code line and everything after it is combined into single line ppI have tried pulliSingle spacing with no extra characters at the end of each line According to href https stackoverflow com 21699210 308237 this guide single spaced YML lines are supposed to be unwrapped into single line but this does not happen with Appveyor liliDouble spaced lines with no extra characters at the end of each line This is supposed to make each line separate command and indeed they are as the first codeFOR code command fails with codeerror 255 code because it is incomplete only the codeFOR code line is present and not the rest of the loop liliDouble spaced lines terminated with code code Appveyor only runs each line one at time so get an codeerror 255 code on the first incomplete codeFOR code command liliSingle spaced lines terminated with code code as shown above Same issue as double spaced lines codeerror 255 code from an incomplete codeFOR code command liliEnding each line with code amp amp code does actually work when running separate commands multiple codemsbuild code statements but this won work with codeFOR code loops because you can have code amp amp code without command preceding it li ulpIs there trick to splitting single codecmd code command over multiple lines in codeappveyor yml code,NULL 48261,137793,1229406,Enthusiast Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48262,1379249,1505970,NULL,NULL,NULL,0,NULL,NULL 48263,38202,1107991,NULL,NULL,NULL,0,NULL,NULL 48264,683604,964471,NULL,NULL,NULL,0,NULL,NULL 48265,953927,926726,NULL,NULL,NULL,0,NULL,NULL 48266,48563,635872,Student Supporter,NULL,NULL,0,NULL,NULL 48267,184378,498449,Popular Question,NULL,NULL,0,NULL,NULL 48268,812310,514128,Yearling Nice Answer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 48269,6499728,452201,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48270,255225,266661,NULL,NULL,NULL,0,NULL,NULL 48271,93608,689181,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48272,196610,862812,Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48273,514276,1377512,Popular Question Revival Critic,NULL,NULL,0,NULL,NULL 48274,253367,991395,Notable Question,NULL,NULL,0,NULL,NULL 48275,176695,1489467,Custodian Yearling Critic,NULL,NULL,0,NULL,NULL 48276,21923,831603,Informed,NULL,NULL,0,NULL,NULL 48277,918953,1492164,NULL,NULL,NULL,0,NULL,NULL 48278,118088,1078781,NULL,NULL,NULL,0,NULL,NULL 48279,167686,670779,NULL,NULL,NULL,0,NULL,NULL 48280,461741,835445,Yearling Yearling,NULL,NULL,0,NULL,NULL 48281,368326,1086572,NULL,NULL,NULL,0,NULL,NULL 48282,188867,1049862,NULL,NULL,NULL,0,NULL,NULL 48283,46777,131884,Caucus Necromancer Yearling Citizen Patrol Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 48284,1507396,1140429,NULL,NULL,NULL,0,NULL,NULL 48285,1394537,901883,Good Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48286,887727,1284499,Curious Commentator Popular Question Caucus Yearling Popular Question Self-Learner Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 48287,85581,278477,Popular Question Popular Question Notable Question Nice Question Yearling Commentator Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 48288,211807,845082,Nice Answer Tumbleweed Necromancer Yearling Critic,NULL,NULL,0,NULL,NULL 48289,181182,300859,NULL,NULL,NULL,0,NULL,NULL 48290,241484,1041944,NULL,NULL,NULL,0,NULL,NULL 48291,435702,1028553,Student Editor Supporter,NULL,NULL,0,NULL,NULL 48292,240272,154947,Necromancer Yearling Nice Answer Commentator Yearling Revival Good Answer Announcer Yearling Announcer Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 48293,304473,232419,NULL,NULL,NULL,0,NULL,NULL 48294,379205,652171,NULL,NULL,NULL,0,NULL,NULL 48295,1027415,1037612,Famous Question,NULL,NULL,0,NULL,NULL 48296,13659,552706,Supporter,NULL,NULL,0,NULL,NULL 48297,2258121,815945,NULL,NULL,NULL,0,NULL,NULL 48298,120378,1388162,Custodian Informed,NULL,NULL,0,NULL,NULL 48299,745889,1545786,NULL,NULL,NULL,0,NULL,NULL 48300,337473,36299,Good Question Notable Question Popular Question Popular Question Nice Question Yearling Caucus,NULL,gdb debugging with piped input not arguments gdb pipe pI typically run my program with ppre codeperl print x200 vuln prog code prepThe stdin is consumed by codegets code function in ppIf this were just command argument could open gdb by doing ppre codegdb vuln progrun perl print x200 code prepHowever my scenario is not command argument but rather input STDIN How would debug this in gdb ve tried bunch of options but nothing seems to really work ppI would normally just run gdb on the process and when it prompts for user input type it in however not wanting to type just want to type all chars from x00 xff which can type It was not my code It was for fun reverse engineering challenge where the code was provided gdb debugging with piped input not arguments gdb pipe pI typically run my program with ppre codeperl print x200 vuln prog code prepThe stdin is consumed by codegets code function in ppIf this were just command argument could open gdb by doing ppre codegdb vuln progrun perl print x200 code prepHowever my scenario is not command argument but rather input STDIN How would debug this in gdb ve tried bunch of options but nothing seems to really work ppI would normally just run gdb on the process and when it prompts for user input type it in however not wanting to type just want to type all chars from x00 xff which can type Indeed it was the vulnerable function was able to do buffer overflow due to it not bound checking,0,NULL,NULL 48301,150604,1378645,NULL,NULL,NULL,0,NULL,NULL 48302,30944,244993,Yearling Editor Mortarboard Yearling Custodian Custodian Citizen Patrol Custodian Yearling Caucus Suffrage Excavator Tag Editor Yearling Yearling Tenacious Yearling Unsung Hero Yearling Explainer Fanatic Caucus Revival Announcer Custodian Custodian Nice Answer Enlightened Revival Proofreader Reviewer Necromancer Announcer Announcer Yearling Census Reviewer jacoco Nice Answer Enlightened Announcer Announcer Caucus java Custodian Announcer Announcer Announcer Necromancer Announcer,NULL,NULL,0,NULL,NULL 48303,898544,842492,Yearling Nice Answer Custodian Enthusiast Caucus Good Question Yearling,NULL,NULL,0,NULL,NULL 48304,208586,854481,Scholar Student Editor,NULL,NULL,0,NULL,NULL 48305,181517,1389854,Scholar Supporter,NULL,NULL,0,NULL,NULL 48306,111277,708638,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 48307,982391,967429,NULL,NULL,NULL,0,NULL,NULL 48308,228686,967429,NULL,NULL,NULL,0,NULL,NULL 48309,25949,136445,Necromancer Notable Question maven Necromancer Good Answer Popular Question Guru Notable Question Popular Question Popular Question Nice Answer Enlightened Yearling Revival Populist Caucus Nice Answer Enlightened Nice Answer Good Answer Good Answer Necromancer Nice Answer Yearling Nice Answer Enlightened Famous Question Census nexus Necromancer Nice Answer Great Answer Nice Answer Enlightened Good Question Yearling Good Answer Nice Answer Enlightened Famous Question Popular Question,NULL,NULL,0,NULL,NULL 48310,25954,136445,Necromancer Notable Question maven Necromancer Good Answer Popular Question Guru Notable Question Popular Question Popular Question Nice Answer Enlightened Yearling Revival Populist Caucus Nice Answer Enlightened Nice Answer Good Answer Good Answer Necromancer Nice Answer Yearling Nice Answer Enlightened Famous Question Census nexus Necromancer Nice Answer Great Answer Nice Answer Enlightened Good Question Yearling Good Answer Nice Answer Enlightened Famous Question Popular Question,NULL,NULL,0,NULL,NULL 48311,543396,8005,Good Question Famous Question Popular Question Famous Question Famous Question Good Question Custodian Popular Question Yearling Notable Question Notable Question Favorite Question Nice Question Great Answer Famous Question Yearling Nice Question Good Question Custodian python Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 48312,41287,1062603,NULL,NULL,NULL,0,NULL,NULL 48313,25982,1429114,Yearling Nice Answer Enlightened Great Answer google-chrome-app Yearling Populist Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48314,69140,749297,Nice Answer,NULL,NULL,0,NULL,NULL 48315,87218,1368220,NULL,NULL,NULL,0,NULL,NULL 48316,98569,1130348,NULL,NULL,NULL,0,NULL,NULL 48317,618071,954981,NULL,NULL,NULL,0,NULL,NULL 48318,3625056,645922,NULL,NULL,NULL,0,NULL,NULL 48319,76482,1215297,Announcer Supporter,NULL,NULL,0,NULL,NULL 48320,747838,868459,Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48321,1220877,1032521,NULL,NULL,NULL,0,NULL,NULL 48322,47687,42596,NULL,NULL,NULL,0,NULL,NULL 48323,102964,922034,NULL,NULL,NULL,0,NULL,NULL 48324,255640,1481333,NULL,NULL,NULL,0,NULL,NULL 48325,1044519,867272,NULL,NULL,NULL,0,NULL,NULL 48326,569213,452,Custodian Yearling Yearling Notable Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 48327,265272,917218,Yearling Guru,NULL,NULL,0,NULL,NULL 48328,233096,469790,Guru,NULL,NULL,0,NULL,NULL 48329,908470,1346423,Informed Scholar,NULL,NULL,0,NULL,NULL 48330,501925,1231371,Notable Question,NULL,NULL,0,NULL,NULL 48331,10244,245665,NULL,NULL,NULL,0,NULL,NULL 48332,194971,808886,Yearling Necromancer Commentator Editor Civic Duty Informed Tumbleweed Yearling Caucus Constituent Revival Necromancer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 48333,727269,1338788,Yearling Good Answer Yearling Necromancer Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48334,619368,1087829,NULL,NULL,NULL,0,NULL,NULL 48335,897663,1441422,Popular Question,NULL,NULL,0,NULL,NULL 48336,402628,1126526,Yearling spring-security java Notable Question Informed Excavator Popular Question Mortarboard spring-mvc Revival Popular Question Necromancer Good Answer Good Answer Strunk & White Quorum Revival Necromancer Nice Answer Popular Question Civic Duty Revival Notable Question Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Reviewer Nice Answer Famous Question Nice Answer jpa spring-data-jpa Custodian Good Answer Cleanup Custodian Popular Question Guru Nice Answer Enlightened Documentation User Nice Answer Yearling Census Good Answer spring spring-data Nice Answer Enlightened Nice Answer Enlightened Custodian Custodian Custodian Nice Answer java Good Answer Nice Answer Enlightened hibernate Notable Question Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 48337,787647,730086,Supporter Popular Question,NULL,NULL,0,NULL,NULL 48338,176746,714558,Notable Question,NULL,NULL,0,NULL,NULL 48339,260475,474409,NULL,NULL,NULL,0,NULL,NULL 48340,294528,1007279,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48341,274085,992774,NULL,NULL,NULL,0,NULL,NULL 48342,900526,409127,Yearling Tumbleweed Good Question Editor Yearling Yearling Commentator,NULL,NULL,0,NULL,NULL 48343,642236,120345,Nice Question Yearling,NULL,NULL,0,NULL,NULL 48344,290031,902126,Nice Answer Yearling Nice Answer Popular Question Nice Answer Necromancer Caucus android Notable Question Yearling Necromancer Notable Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48345,916415,1163794,NULL,NULL,NULL,0,NULL,NULL 48346,358677,727067,Yearling Great Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 48347,500668,110968,NULL,NULL,NULL,0,NULL,NULL 48348,6915,927261,NULL,NULL,NULL,0,NULL,NULL 48349,338585,1198729,Yearling Nice Answer Good Answer Nice Answer Popular Question Caucus Constituent Nice Question Nice Answer Enlightened Census Guru Yearling Good Answer Popular Question Good Answer Caucus Nice Question Constituent Nice Answer Census Yearling Popular Question Nice Answer Guru Popular Question Necromancer,NULL,NULL,0,NULL,NULL 48350,516460,569555,Popular Question,NULL,NULL,0,NULL,NULL 48351,165456,1176617,Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 48352,165084,1163544,Informed,NULL,NULL,0,NULL,NULL 48353,70481,66974,Necromancer,NULL,NULL,0,NULL,NULL 48354,105397,1400695,NULL,NULL,NULL,0,NULL,NULL 48355,1800063,593237,NULL,NULL,NULL,0,NULL,NULL 48356,51080,238882,Popular Question Nice Question Custodian Famous Question Nice Question Yearling Nice Question Famous Question Famous Question Popular Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 48357,141297,10093,Nice Question Enthusiast Nice Answer Enlightened Notable Question Popular Question Nice Answer Yearling Popular Question Popular Question Notable Question Good Answer Yearling Custodian Famous Question Guru Good Answer Notable Question Yearling Popular Question Nice Answer Enlightened,NULL,,0,, 48358,7488443,1194662,NULL,NULL,NULL,0,NULL,NULL 48359,1331895,288980,Notable Question Nice Question Necromancer Yearling Good Answer Notable Question Great Answer Notable Question Nice Answer Nice Answer Great Question Autobiographer Custodian Yearling Popular Question Good Answer Notable Question Popular Question Caucus Popular Question Popular Question Custodian Documentation User Notable Question Necromancer Nice Question Census Nice Question Proofreader Guru Yearling Announcer Notable Question Tag Editor Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 48360,386985,516781,NULL,NULL,NULL,0,NULL,NULL 48361,138187,950596,Autobiographer Student Editor Teacher Scholar Supporter,NULL,NULL,0,NULL,NULL 48362,1170853,1220752,NULL,NULL,NULL,0,NULL,NULL 48363,1352752,138039,Notable Question,NULL,NULL,0,NULL,NULL 48364,352305,1028404,NULL,NULL,NULL,0,NULL,NULL 48365,720137,939882,Famous Question Yearling Great Answer Popular Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 48366,11992,485171,Tumbleweed,NULL,NULL,0,NULL,NULL 48367,317101,300271,Famous Question Commentator Informed Autobiographer Critic Yearling,NULL,NULL,0,NULL,NULL 48368,10344,219579,Notable Question Notable Question Popular Question Popular Question Nice Question Famous Question Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Famous Question Nice Question Yearling Good Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48369,190879,1425555,Enthusiast,NULL,NULL,0,NULL,NULL 48370,181178,772551,NULL,NULL,NULL,0,NULL,NULL 48371,53634,1329466,NULL,NULL,NULL,0,NULL,NULL 48372,48147,348892,Custodian Student Scholar Yearling Critic Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 48373,5952437,348892,Custodian Student Scholar Yearling Critic Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 48374,690426,439578,Popular Question Nice Answer Yearling Necromancer Custodian Custodian c++ Good Answer Yearling Famous Question Nice Answer Nice Question Nice Answer Custodian Good Answer Yearling Organizer Explainer,NULL,NULL,0,NULL,NULL 48375,504660,1008248,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48376,516367,389376,Nice Question Nice Answer Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 48377,492657,843409,Editor,NULL,NULL,0,NULL,NULL 48378,117416,526535,Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer regex Populist Necromancer Nice Answer Enlightened Guru Popular Question Nice Answer batch-file Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Nice Answer Guru Good Answer Guru Nice Answer Guru Good Answer Guru Guru Enlightened Good Answer Nice Answer Guru ruby-on-rails Great Answer mercurial Caucus Nice Answer Enlightened Constituent Guru Yearling Good Answer Great Answer Great Answer Guru Good Answer Great Answer Nice Answer Nice Answer Good Answer Good Answer Famous Question Nice Answer Good Answer Good Answer Guru Guru Famous Question Great Answer Great Answer Guru Nice Answer Enlightened Guru Guru Guru Tumbleweed Great Answer Enlightened Populist Revival Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Great Answer Caucus Nice Answer Enlightened Good Answer Good Question Nice Answer Enlightened Constituent Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Guru Good Answer Documentation User Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Nice Answer Enlightened Yearling Guru Necromancer Nice Answer Great Answer Nice Answer Great Answer Nice Answer Guru Nice Answer Nice Answer Guru Good Answer Guru Nice Answer php Good Answer Good Answer Good Answer Caucus Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Great Answer Great Answer Nice Answer Enlightened Good Answer Guru Guru Guru Guru Nice Answer Good Answer Good Answer javascript Nice Answer Nice Answer Good Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru c# Great Answer Nice Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 48379,355778,393376,NULL,NULL,NULL,0,NULL,NULL 48380,41432,119622,Inquisitive Yearling Notable Question Favorite Question Favorite Question Famous Question Popular Question Notable Question Popular Question Yearling Nice Question Nice Question Nice Question Popular Question Notable Question Good Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 48381,446904,1144747,NULL,NULL,NULL,0,NULL,NULL 48382,892971,905511,Great Answer Yearling Famous Question Curious Yearling Nice Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 48383,296546,905511,Great Answer Yearling Famous Question Curious Yearling Nice Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 48384,450096,503831,Citizen Patrol Popular Question Revival Necromancer Nice Question Yearling Popular Question Excavator Nice Answer Nice Question Yearling Nice Answer Popular Question Popular Question Revival Necromancer Good Answer Necromancer Popular Question Nice Answer Necromancer Notable Question Notable Question Good Answer Announcer Popular Question Revival Necromancer Notable Question Yearling Necromancer Nice Question Popular Question Necromancer Census Nice Answer Notable Question Nice Answer Good Answer Popular Question Nice Answer Yearling Notable Question,NULL,pSumming up ppassuming that codetotal seconds 3600 code ppOption ppre codedistance of time in words total seconds gt about hour code prepOption ppre codeTime at total seconds utc strftime gt 01 00 00 code prepOption ppre codeseconds total seconds 60minutes total seconds 60 60hours total seconds 60 60 format 02d 02d 02d hours minutes seconds gt 01 00 00 code prepuse emOption1 em if you want words emOption2 em if you want format emOption3 em if you want format and there can be more than 24 hours this does not work for negative times for example 1800 returns 1h 30m instead of 30m,0,NULL,NULL 48385,698005,159836,Yearling Informed Custodian Citizen Patrol Custodian Custodian Organizer Yearling Yearling Notable Question Yearling Tenacious Yearling Yearling Nice Answer Popular Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 48386,120227,874485,NULL,NULL,NULL,0,NULL,NULL 48387,900465,853438,NULL,NULL,NULL,0,NULL,NULL 48388,254406,1040039,Popular Question,NULL,NULL,0,NULL,NULL 48389,367517,690532,Nice Answer Commentator Critic,NULL,NULL,0,NULL,NULL 48390,82508,1132836,Yearling Necromancer Tumbleweed Nice Question Nice Answer Nice Question Popular Question Yearling Civic Duty Announcer Caucus Famous Question Custodian Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 48391,13197,317098,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 48392,2523602,317098,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 48393,479250,477451,Nice Answer Necromancer Nice Answer Enlightened Good Answer Nice Answer Famous Question Necromancer Yearling Caucus Nice Answer Enlightened Good Answer Custodian Announcer Nice Answer Enlightened Stellar Question Caucus Good Answer Yearling Nice Answer Nice Answer Great Answer Census Nice Answer Caucus Good Question Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 48394,1437436,1166925,NULL,NULL,NULL,0,NULL,NULL 48395,2841054,1135775,Student Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48396,336969,1135775,Student Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48397,110862,319954,Excavator Yearling Necromancer Announcer Nice Answer Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 48398,561125,1398630,Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 48399,124674,592782,NULL,NULL,NULL,0,NULL,NULL 48400,255388,277256,Favorite Question Notable Question Yearling Notable Question Famous Question Proofreader Good Question Notable Question Good Question Famous Question Nice Question Yearling Great Question Notable Question Famous Question Famous Question Famous Question Notable Question Nice Question Yearling Famous Question Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 48401,626481,1294989,NULL,NULL,NULL,0,NULL,NULL 48402,1089065,1294989,NULL,NULL,NULL,0,NULL,NULL 48403,99496,51240,NULL,NULL,NULL,0,NULL,NULL 48404,158891,47124,Great Question Yearling Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 48405,199360,366492,Notable Question Yearling Great Answer Revival Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48406,1203768,815974,Self-Learner Notable Question Necromancer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 48407,282877,1552987,NULL,NULL,NULL,0,NULL,NULL 48408,1145520,1044155,NULL,NULL,NULL,0,NULL,NULL 48409,257809,912677,NULL,NULL,NULL,0,NULL,NULL 48410,1065590,942767,Popular Question Notable Question Popular Question Notable Question Notable Question Excavator Explainer Notable Question Popular Question Notable Question Nice Answer Good Answer Yearling Necromancer Popular Question Notable Question Famous Question Nice Question Nice Question Notable Question Notable Question Famous Question Notable Question Notable Question Notable Question Nice Question Notable Question Yearling Nice Answer Famous Question Popular Question Notable Question Good Answer Nice Question Nice Answer Enlightened Necromancer Famous Question Nice Question Popular Question Good Answer Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48411,403957,407697,Popular Question Nice Answer Enlightened Great Question Yearling Famous Question Popular Question Promoter Nice Question Benefactor Yearling Popular Question Notable Question Nice Question Nice Question Favorite Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 48412,6461,958642,Popular Question Nice Answer Enlightened Nice Answer Enlightened zend-framework2 Famous Question Nice Answer Enlightened Good Answer Guru Notable Question Yearling Guru zend-form Popular Question Popular Question Popular Question Famous Question Yearling Good Answer Documentation User Census Nice Answer Enlightened Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48413,254408,1168062,NULL,NULL,NULL,0,NULL,NULL 48414,69213,1543002,NULL,NULL,NULL,0,NULL,NULL 48415,7607336,1543002,NULL,NULL,NULL,0,NULL,NULL 48416,255179,1182639,NULL,NULL,NULL,0,NULL,NULL 48417,65625,963755,NULL,NULL,NULL,0,NULL,NULL 48418,586572,240338,Necromancer Yearling Favorite Question Famous Question Famous Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48419,1566936,706167,Custodian,NULL,NULL,0,NULL,NULL 48420,88066,319422,Popular Question Yearling Popular Question Great Answer Notable Question Notable Question Notable Question Good Answer Popular Question Necromancer Yearling Nice Question Popular Question Notable Question Necromancer Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Necromancer Good Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 48421,282193,405454,Yearling Civic Duty Caucus Yearling Constituent Documentation User Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 48422,43020,458603,Good Question Necromancer Popular Question Necromancer Popular Question Nice Answer Yearling Good Answer Yearling Mortarboard Necromancer Announcer Nice Answer Revival Revival Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 48423,860801,642846,NULL,NULL,NULL,0,NULL,NULL 48424,1735557,642846,NULL,NULL,NULL,0,NULL,NULL 48425,856859,642846,NULL,NULL,NULL,0,NULL,NULL 48426,353989,804451,Yearling Critic Necromancer Revival Popular Question Commentator Notable Question Tag Editor Yearling Necromancer Curious Yearling,NULL,NULL,0,NULL,NULL 48427,13321,155050,Popular Question Popular Question Nice Answer Nice Question Yearling Nice Answer Notable Question Famous Question Famous Question Popular Question Yearling Famous Question Inquisitive Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48428,308354,665935,NULL,NULL,NULL,0,NULL,NULL 48429,26242,1053581,Supporter Revival,NULL,NULL,0,NULL,NULL 48430,191634,736749,NULL,NULL,NULL,0,NULL,NULL 48431,1011048,1178541,Nice Answer,NULL,NULL,0,NULL,NULL 48432,65040,221241,NULL,NULL,NULL,0,NULL,NULL 48433,153391,1528413,Announcer Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 48434,286390,1442198,NULL,NULL,NULL,0,NULL,NULL 48435,1005502,988429,Tumbleweed,NULL,NULL,0,NULL,NULL 48436,802819,1026820,NULL,NULL,NULL,0,NULL,NULL 48437,15233,195171,NULL,NULL,NULL,0,NULL,NULL 48438,90542,635870,NULL,NULL,NULL,0,NULL,NULL 48439,161929,504494,Yearling,NULL,NULL,0,NULL,NULL 48440,918696,1293493,Yearling,NULL,NULL,0,NULL,NULL 48441,1121937,950496,Student,NULL,NULL,0,NULL,NULL 48442,231044,32490,Famous Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 48443,582541,562583,Yearling Nice Question Notable Question Yearling Populist Notable Question Documentation User Yearling Census Popular Question Inquisitive Custodian,NULL,NULL,0,NULL,NULL 48444,61874,404361,NULL,NULL,NULL,0,NULL,NULL 48445,116762,715256,Critic Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 48446,211398,959041,Nice Answer Revival Nice Answer Nice Answer Enlightened Yearling Popular Question Necromancer Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48447,456380,653054,NULL,NULL,NULL,0,NULL,NULL 48448,62297,1023415,NULL,NULL,NULL,0,NULL,NULL 48449,2388,106435,Guru Good Answer Nice Answer Nice Answer Announcer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Yearling swift Necromancer Nice Answer Enlightened Notable Question Nice Answer Nice Answer Guru Caucus Good Answer Nice Answer Enlightened Popular Question Good Answer Necromancer Nice Answer Nice Answer Enlightened Yearling Guru Great Answer Caucus Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Census Great Answer Announcer Caucus Nice Answer Nice Answer Yearling Guru Great Answer Nice Answer Enlightened Announcer Notable Question,NULL,NULL,0,NULL,NULL 48450,791992,28802,Notable Question Great Question Popular Question Custodian Nice Question Popular Question Popular Question Yearling Famous Question Good Question Notable Question Favorite Question Revival Nice Question Popular Question Necromancer Nice Answer Great Question Yearling Notable Question Nice Question Favorite Question Good Answer Notable Question Notable Question Famous Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 48451,837059,953384,NULL,NULL,NULL,0,NULL,NULL 48452,318243,661424,Yearling Popular Question Popular Question Good Question Popular Question Enthusiast Notable Question Caucus Notable Question Notable Question Yearling Famous Question Notable Question Notable Question Yearling Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48453,53447,221122,Notable Question,NULL,NULL,0,NULL,NULL 48454,514491,327914,Critic,NULL,NULL,0,NULL,NULL 48455,55221,552400,NULL,NULL,NULL,0,NULL,NULL 48456,161470,1069160,NULL,NULL,NULL,0,NULL,NULL 48457,544305,839683,NULL,NULL,NULL,0,NULL,NULL 48458,33894,661230,Popular Question,NULL,NULL,0,NULL,NULL 48459,903249,553208,NULL,NULL,NULL,0,NULL,NULL 48460,10439702,1004962,Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 48461,649055,191799,Popular Question Famous Question Notable Question Popular Question Famous Question Favorite Question Notable Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 48462,308103,657815,Notable Question Notable Question Famous Question Popular Question Popular Question Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 48463,733881,380073,Popular Question Notable Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 48464,174271,685263,NULL,NULL,NULL,0,NULL,NULL 48465,259188,1245203,Good Question Yearling Nice Answer Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48466,2645150,1245203,Good Question Yearling Nice Answer Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 48467,901671,507864,Guru Guru spring Taxonomist Guru java Yearling Nice Question Popular Question Announcer Announcer Announcer Announcer Guru Revival Nice Answer Yearling Notable Question Nice Question Nice Answer Enlightened Announcer Announcer Good Answer Custodian Custodian Custodian Custodian Proofreader Yearling,NULL,NULL,0,NULL,NULL 48468,916695,1102844,Yearling Nice Answer Caucus Constituent Popular Question Caucus Yearling Custodian Notable Question,NULL,NULL,0,NULL,NULL 48469,165687,1010723,NULL,NULL,NULL,0,NULL,NULL 48470,563380,715153,Editor,NULL,NULL,0,NULL,NULL 48471,1506402,1474834,Teacher Editor,NULL,NULL,0,NULL,NULL 48472,373784,535155,NULL,NULL,NULL,0,NULL,NULL 48473,1826975,535155,NULL,NULL,NULL,0,NULL,NULL 48474,146466,1219638,NULL,NULL,NULL,0,NULL,NULL 48475,490411,580807,NULL,NULL,NULL,0,NULL,NULL 48476,456530,644793,NULL,NULL,NULL,0,NULL,NULL 48477,300950,16327,Necromancer,NULL,NULL,0,NULL,NULL 48478,238263,845398,NULL,NULL,NULL,0,NULL,NULL 48479,307552,318989,Notable Question Yearling Nice Question Good Question Custodian Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 48480,48512,674507,Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 48481,98362,737714,Student,NULL,NULL,0,NULL,NULL 48482,728675,1232778,NULL,NULL,NULL,0,NULL,NULL 48483,479537,1141169,NULL,NULL,NULL,0,NULL,NULL 48484,865087,1086029,NULL,NULL,NULL,0,NULL,NULL 48485,194843,439048,Teacher,NULL,NULL,0,NULL,NULL 48486,205858,538217,Supporter Revival,NULL,NULL,0,NULL,NULL 48487,20297,420734,NULL,NULL,NULL,0,NULL,NULL 48488,104082,492864,NULL,NULL,NULL,0,NULL,NULL 48489,825084,788779,NULL,NULL,NULL,0,NULL,NULL 48490,62086,66242,Electorate Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 48491,307649,932729,NULL,NULL,NULL,0,NULL,NULL 48492,96191,427885,NULL,NULL,NULL,0,NULL,NULL 48493,599879,1367090,Teacher Autobiographer Yearling Editor Scholar Critic Caucus Student Promoter Tumbleweed,NULL,NULL,0,NULL,NULL 48494,1518620,1145437,NULL,NULL,NULL,0,NULL,NULL 48495,374904,795176,Informed Nice Answer Critic Caucus Yearling Necromancer Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 48496,65446,567418,NULL,NULL,NULL,0,NULL,NULL 48497,293822,759468,Custodian Yearling Caucus Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48498,170972,671997,Self-Learner Citizen Patrol Good Question Notable Question Yearling Popular Question Custodian Popular Question Yearling Popular Question Popular Question Favorite Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 48499,149521,16271,Populist Yearling Good Answer Necromancer Good Answer Good Answer Yearling Great Answer Custodian Promoter Benefactor Revival Yearling Good Question,NULL,NULL,0,NULL,NULL 48500,177662,956099,NULL,NULL,NULL,0,NULL,NULL 48501,720014,818842,Notable Question Necromancer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 48502,2536,87305,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 48503,1031728,174430,Nice Answer Enlightened Notable Question Yearling Popular Question Popular Question Revival Nice Answer Popular Question Yearling Popular Question Notable Question Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 48504,11286913,570357,Yearling Nice Answer Guru Nice Answer Notable Question Yearling Nice Answer Good Answer Nice Answer mvvm Yearling Good Answer Guru Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 48505,161243,553806,NULL,NULL,NULL,0,NULL,NULL 48506,459562,341175,NULL,NULL,NULL,0,NULL,NULL 48507,44358,197017,Popular Question Famous Question Notable Question Good Question Popular Question Popular Question Popular Question Yearling Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Excavator Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 48508,161729,796758,NULL,NULL,NULL,0,NULL,NULL 48509,58051,1302881,Caucus Nice Question Tumbleweed Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 48510,31431,845558,NULL,NULL,NULL,0,NULL,NULL 48511,192964,1211906,Yearling Notable Question Notable Question ruby-on-rails Yearling Nice Answer Enlightened Taxonomist Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48512,290412,1128590,Peer Pressure Census Teacher,NULL,NULL,0,NULL,NULL 48513,135164,648123,Excavator,NULL,NULL,0,NULL,NULL 48514,2079989,648123,Excavator,NULL,NULL,0,NULL,NULL 48515,297282,164251,Revival Notable Question Editor Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 48516,374251,510831,Editor,NULL,NULL,0,NULL,NULL 48517,321298,1108043,NULL,NULL,NULL,0,NULL,NULL 48518,131801,914404,Necromancer Popular Question Yearling Popular Question Popular Question Revival Good Question Notable Question Popular Question Popular Question Caucus Popular Question Yearling Necromancer Custodian Custodian Nice Answer Enlightened Caucus Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 48519,128211,101280,iphone Yearling Notable Question Popular Question Guru Enlightened Yearling Guru Caucus Nice Answer Custodian Caucus Great Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 48520,11821,120234,Yearling Popular Question Popular Question Popular Question Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 48521,282058,807802,Revival Popular Question Revival Excavator Popular Question Yearling,NULL,NULL,0,NULL,NULL 48522,293319,1325418,NULL,NULL,NULL,0,NULL,NULL 48523,384823,580365,NULL,NULL,NULL,0,NULL,NULL 48524,283979,1316451,Yearling,NULL,NULL,0,NULL,NULL 48525,332592,379154,NULL,NULL,NULL,0,NULL,NULL 48526,1539757,1517759,NULL,NULL,NULL,0,NULL,NULL 48527,304915,1183577,Excavator Nice Answer Yearling Necromancer Popular Question Necromancer Curious Nice Answer Enlightened Revival Nice Answer Yearling Good Answer Nice Question Nice Answer Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 48528,27506,1095300,Yearling Yearling,NULL,NULL,0,NULL,NULL 48529,291712,1162068,NULL,NULL,NULL,0,NULL,NULL 48530,768416,1078830,NULL,NULL,NULL,0,NULL,NULL 48531,637476,56855,Yearling Good Answer Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48532,112821,1087148,NULL,NULL,NULL,0,NULL,NULL 48533,347079,393701,Custodian Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Necromancer Guru Yearling Good Answer Nice Answer java Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Good Answer go Generalist Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened php c++ Announcer Nice Answer Enlightened Nice Answer Custodian Nice Answer Enlightened Nice Answer arrays Custodian Yearling Necromancer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened,NULL,pTwo things must be done ppFirst add the directory to be included ppre codetarget include directories test PRIVATE YOUR DIRECTORY code prepIn case you are stuck with very old CMake version 10 or older without support for codetarget include directories code you can also use the legacy codeinclude directories code instead ppre codeinclude directories YOUR DIRECTORY code prepThen you also must add the header files to the list of your source files for the current target for instance ppre codeset SOURCES file cpp file2 cpp YOUR DIRECTORY file1 YOUR DIRECTORY file2 add executable test SOURCES code prepThis way the header files will appear as dependencies in the Makefile and also for example in the generated Visual Studio project if you generate one ppHow to use those header files for several targets ppre codeset HEADER FILES YOUR DIRECTORY file1 YOUR DIRECTORY file2 add library mylib libsrc cpp HEADER FILES target include directories mylib PRIVATE YOUR DIRECTORY add executable myexec execfile cpp HEADER FILES target include directories myexec PRIVATE YOUR DIRECTORY code pre Looks good to me,0,NULL,NULL 48534,393545,920552,NULL,NULL,NULL,0,NULL,NULL 48535,304144,920552,NULL,NULL,NULL,0,NULL,NULL 48536,94115,1058535,NULL,NULL,NULL,0,NULL,NULL 48537,4244536,1058535,NULL,NULL,NULL,0,NULL,NULL 48538,567483,627051,Supporter Famous Question,NULL,NULL,0,NULL,NULL 48539,99279,1010944,NULL,NULL,NULL,0,NULL,NULL 48540,653080,851737,Famous Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Yearling Nice Question Nice Answer Necromancer Necromancer Necromancer Announcer Revival Nice Answer Announcer Good Answer Announcer Yearling Announcer python Pundit Announcer Popular Question Announcer Yearling Popular Question Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 48541,24701,851737,Famous Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Yearling Nice Question Nice Answer Necromancer Necromancer Necromancer Announcer Revival Nice Answer Announcer Good Answer Announcer Yearling Announcer python Pundit Announcer Popular Question Announcer Yearling Popular Question Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 48542,315798,598442,Yearling Great Answer Popular Question Yearling Nice Answer Enlightened Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 48543,316808,608269,Commentator Necromancer Announcer Nice Answer Revival Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48544,7216,961320,Good Answer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 48545,6071737,447824,Yearling Informed,NULL,NULL,0,NULL,NULL 48546,782335,48834,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 48547,299311,835671,Informed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48548,16467,57934,Commentator Critic,NULL,NULL,0,NULL,NULL 48549,192345,673923,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48550,164362,767590,NULL,NULL,NULL,0,NULL,NULL 48551,539894,814584,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 48552,3833839,272917,NULL,NULL,NULL,0,NULL,NULL 48553,1062668,516250,NULL,NULL,NULL,0,NULL,NULL 48554,262165,90237,Fanatic Autobiographer Suffrage Vox Populi Nice Answer Caucus Tumbleweed Student Scholar Caucus,NULL,NULL,0,NULL,NULL 48555,28805,407880,Famous Question Custodian Yearling Curious Caucus Yearling Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 48556,673495,532490,NULL,NULL,NULL,0,NULL,NULL 48557,3926603,632670,NULL,NULL,NULL,0,NULL,NULL 48558,242520,31525,NULL,NULL,NULL,0,NULL,NULL 48559,81792,979328,Guru Good Answer Revival Good Answer Yearling Great Answer Nice Answer Good Question Famous Question Yearling Promoter Excavator Yearling Popular Question,NULL,NULL,0,NULL,NULL 48560,21784,638434,Yearling Nice Answer Nice Answer Notable Question Yearling Curious Necromancer Necromancer Nice Answer Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 48561,169724,688290,Teacher Critic Citizen Patrol Famous Question,NULL,NULL,0,NULL,NULL 48562,38021,526467,NULL,NULL,NULL,0,NULL,NULL 48563,150027,1506173,NULL,NULL,NULL,0,NULL,NULL 48564,92389,1053704,Nice Answer Caucus Caucus,NULL,NULL,0,NULL,NULL 48565,52359,1368977,Commentator Editor Yearling Yearling Custodian Supporter Yearling Tenacious Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48566,464971,270212,Yearling Necromancer Necromancer Yearling Nice Question Revival Necromancer Nice Answer Yearling Nice Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 48567,582237,107612,Yearling Curious,NULL,NULL,0,NULL,NULL 48568,93355,35136,Nice Answer Enlightened Enlightened Notable Question Popular Question Yearling Nice Answer Enlightened Nice Answer ios Yearling macos Guru Good Answer Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 48569,128941,1433542,NULL,NULL,NULL,0,NULL,NULL 48570,190195,862733,NULL,NULL,NULL,0,NULL,NULL 48571,352297,702494,NULL,NULL,NULL,0,NULL,NULL 48572,33746,574615,NULL,NULL,NULL,0,NULL,NULL 48573,200656,105127,Popular Question Notable Question Notable Question Tumbleweed Nice Question Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 48574,489422,1311440,NULL,NULL,NULL,0,NULL,NULL 48575,414162,245956,Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 48576,266399,546491,Necromancer Yearling Excavator Good Answer Famous Question,NULL,NULL,0,NULL,NULL 48577,102698,457795,Announcer Famous Question,NULL,NULL,0,NULL,NULL 48578,510236,91970,Notable Question Good Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Famous Question Notable Question Yearling Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Peer Pressure Notable Question Popular Question Nice Question Popular Question Nice Question Stellar Question Socratic Nice Question Popular Question Popular Question Nice Question Notable Question Notable Question Nice Question Popular Question Popular Question Famous Question Popular Question Notable Question Nice Question Famous Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Answer Announcer Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Answer Enlightened Notable Question Yearling Popular Question Great Question Popular Question Popular Question Nice Answer Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Famous Question Famous Question Documentation User Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Announcer Popular Question Notable Question Good Answer Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Announcer Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Great Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 48579,143691,874219,Popular Question,NULL,NULL,0,NULL,NULL 48580,38305,1277510,Favorite Question Proofreader Great Answer Famous Question Great Question Yearling Great Question Popular Question Great Question Great Answer Nice Question Notable Question Good Question Revival Famous Question Good Answer Yearling Documentation User Great Question Popular Question Notable Question Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 48581,15073,497548,Editor Commentator Notable Question Curious Popular Question Scholar Supporter,NULL,NULL,0,NULL,NULL 48582,165398,614457,Notable Question Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 48583,455919,925075,NULL,NULL,NULL,0,NULL,NULL 48584,719440,355461,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48585,433126,1306771,Curious Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 48586,62306,1254700,Notable Question Nice Question Popular Question Famous Question Notable Question Census Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 48587,1506864,338054,NULL,NULL,NULL,0,NULL,NULL 48588,164550,1235869,NULL,NULL,NULL,0,NULL,NULL 48589,180965,189429,Nice Answer Enlightened Yearling Necromancer Popular Question Caucus Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 48590,486132,142067,Yearling Good Question Critic Yearling Nice Answer Revival Popular Question Yearling Necromancer Famous Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48591,164242,909678,Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 48592,2784214,874961,Yearling Custodian Student Caucus Constituent Excavator Informed Citizen Patrol Custodian Custodian Yearling Popular Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 48593,316970,639269,NULL,NULL,NULL,0,NULL,NULL 48594,366118,1239241,NULL,NULL,NULL,0,NULL,NULL 48595,1186632,471482,NULL,NULL,NULL,0,NULL,NULL 48596,686086,765922,NULL,NULL,NULL,0,NULL,NULL 48597,31054,224166,Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48598,492686,621053,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48599,131612,1221342,NULL,NULL,NULL,0,NULL,NULL 48600,6110,1254231,NULL,NULL,NULL,0,NULL,NULL 48601,386968,961376,NULL,NULL,NULL,0,NULL,NULL 48602,660679,757864,NULL,NULL,NULL,0,NULL,NULL 48603,88645,733412,NULL,NULL,NULL,0,NULL,NULL 48604,34223,420336,Yearling,NULL,NULL,0,NULL,NULL 48605,335958,322783,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 48606,990,453605,Good Answer Yearling Informed Announcer Announcer Announcer Yearling Booster Announcer Announcer Yearling Booster,NULL,NULL,0,NULL,NULL 48607,233387,202613,Critic,NULL,NULL,0,NULL,NULL 48608,102759,592555,Nice Answer Caucus Caucus,NULL,NULL,0,NULL,NULL 48609,18667,100374,Yearling Populist,NULL,NULL,0,NULL,NULL 48610,165433,806762,Good Answer Necromancer Yearling Enthusiast Caucus Constituent Organizer Census Custodian Necromancer Yearling Caucus Constituent Nice Answer Caucus Constituent Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 48611,193204,340711,Great Question Yearling Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 48612,259896,9990,Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Enlightened Good Answer Famous Question Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened function Nice Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened asp.net Good Answer Great Answer Nice Answer objective-c Populist Yearling Guru Nice Question class Guru Good Answer windows Guru Enlightened Nice Answer Announcer Nice Question Populist Nice Answer Enlightened Nice Answer Good Answer Nice Answer javascript Nice Answer Nice Answer Famous Question Nice Answer Famous Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Great Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Great Answer Good Answer Guru Yearling Popular Question Good Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened list Good Answer Good Answer Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Good Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Populist Good Answer Nice Answer Enlightened Good Answer Nice Answer c# Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 48613,78240,1007885,Good Question,NULL,NULL,0,NULL,NULL 48614,47372,1448994,NULL,NULL,NULL,0,NULL,NULL 48615,309232,1561588,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48616,654224,922040,NULL,NULL,NULL,0,NULL,NULL 48617,517249,399402,Nice Answer,NULL,NULL,0,NULL,NULL 48618,158969,859710,NULL,NULL,NULL,0,NULL,NULL 48619,165944,719236,NULL,NULL,NULL,0,NULL,NULL 48620,257415,948136,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48621,587991,927159,NULL,NULL,NULL,0,NULL,NULL 48622,223965,1121703,Teacher Informed Autobiographer Editor Commentator,NULL,NULL,0,NULL,NULL 48623,18980,727142,Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Curious Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48624,245767,1367051,NULL,NULL,NULL,0,NULL,NULL 48625,7081,1106282,Scholar Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48626,442844,1231025,NULL,NULL,NULL,0,NULL,NULL 48627,49584,462881,NULL,NULL,NULL,0,NULL,NULL 48628,296285,1203759,NULL,NULL,NULL,0,NULL,NULL 48629,1567399,1082362,Notable Question,NULL,NULL,0,NULL,NULL 48630,13795,90691,Notable Question Famous Question Stellar Question Necromancer Nice Answer Famous Question Good Answer Good Answer Yearling Favorite Question Nice Answer Good Question Nice Answer Enlightened Nice Question Great Question Popular Question Guru Famous Question Great Answer Good Answer Good Question Popular Question Famous Question Great Answer Guru Nice Answer Enlightened Good Question Famous Question Yearling Famous Question Famous Question Good Question jquery Great Answer Popular Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 48631,410240,6563,Good Answer Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 48632,387038,1202694,Teacher Supporter,NULL,NULL,0,NULL,NULL 48633,200557,587515,Census,NULL,NULL,0,NULL,NULL 48634,83802,1168586,Necromancer Yearling Commentator Student Editor Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 48635,104380,248979,NULL,NULL,NULL,0,NULL,NULL 48636,99025,412186,NULL,NULL,NULL,0,NULL,NULL 48637,586609,491903,Popular Question,NULL,NULL,0,NULL,NULL 48638,451841,903118,NULL,NULL,NULL,0,NULL,NULL 48639,1513439,1197726,NULL,NULL,NULL,0,NULL,NULL 48640,188967,1201420,NULL,NULL,NULL,0,NULL,NULL 48641,172219,59690,Good Answer,NULL,NULL,0,NULL,NULL 48642,834411,1340855,Notable Question,NULL,NULL,0,NULL,NULL 48643,27321,379762,Enthusiast,NULL,NULL,0,NULL,NULL 48644,211287,59009,Yearling Nice Answer Good Answer Famous Question Yearling grails Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48645,132510,5731,Yearling Caucus Constituent Great Answer Good Answer Yearling Good Answer Census Caucus Notable Question Yearling,NULL,HTML template framework templatizing library HTML generator library template engine pI am looking for template generator libraries for that are similar to eg Ruby Erb Haml PHP Smarty etc ppIt would be great if it would sport some basic features like loops if else int conversion to strings etc ppParameter passing to template rendering engine is also important if could pass all of them in hash map instead of calling some function for each of parameters ppDo you have any recommendations ppI can see also the possibility of embedding languages like Lua however haven found templatizing library for that either First answer is community wiki you can update it,0,NULL,NULL 48646,3776094,5731,Yearling Caucus Constituent Great Answer Good Answer Yearling Good Answer Census Caucus Notable Question Yearling,NULL,HTML template framework templatizing library HTML generator library template engine pI am looking for template generator libraries for that are similar to eg Ruby Erb Haml PHP Smarty etc ppIt would be great if it would sport some basic features like loops if else int conversion to strings etc ppParameter passing to template rendering engine is also important if could pass all of them in hash map instead of calling some function for each of parameters ppDo you have any recommendations ppI can see also the possibility of embedding languages like Lua however haven found templatizing library for that either First answer is community wiki you can update it,0,NULL,NULL 48647,884655,5731,Yearling Caucus Constituent Great Answer Good Answer Yearling Good Answer Census Caucus Notable Question Yearling,NULL,HTML template framework templatizing library HTML generator library template engine pI am looking for template generator libraries for that are similar to eg Ruby Erb Haml PHP Smarty etc ppIt would be great if it would sport some basic features like loops if else int conversion to strings etc ppParameter passing to template rendering engine is also important if could pass all of them in hash map instead of calling some function for each of parameters ppDo you have any recommendations ppI can see also the possibility of embedding languages like Lua however haven found templatizing library for that either First answer is community wiki you can update it,0,NULL,NULL 48648,326979,314335,Nice Answer Yearling Editor,NULL,NULL,0,NULL,NULL 48649,435265,634834,NULL,NULL,NULL,0,NULL,NULL 48650,974310,28154,Citizen Patrol,NULL,NULL,0,NULL,NULL 48651,124106,287842,Announcer,NULL,NULL,0,NULL,NULL 48652,139285,512594,Yearling,NULL,NULL,0,NULL,NULL 48653,500017,268194,NULL,NULL,NULL,0,NULL,NULL 48654,73457,699944,Favorite Question Yearling Necromancer Popular Question Necromancer Notable Question Yearling Disciplined Nice Answer Nice Answer Nice Question Custodian Organizer Announcer Yearling Announcer Famous Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 48655,4424552,699944,Favorite Question Yearling Necromancer Popular Question Necromancer Notable Question Yearling Disciplined Nice Answer Nice Answer Nice Question Custodian Organizer Announcer Yearling Announcer Famous Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 48656,285599,1028385,Good Answer Yearling,NULL,NULL,0,NULL,NULL 48657,630,96448,NULL,NULL,NULL,0,NULL,NULL 48658,347872,211002,Supporter,NULL,NULL,0,NULL,NULL 48659,924511,526483,NULL,NULL,NULL,0,NULL,NULL 48660,83208,492828,Nice Answer Yearling Guru Yearling Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 48661,68956,190234,Nice Answer Tumbleweed Custodian Citizen Patrol Custodian Custodian Quorum Yearling Announcer,NULL,How do you create random string that suitable for session ID in PostgreSQL postgresql random pI like to make random string for use in session verification using PostgreSQL know can get random number with codeSELECT random code so tried codeSELECT md5 random code but that doesn work How can do this For anyone comming to this question in year 2017 consider Evan answer http stackoverflow com 41608000 190234 as it uses the methods that were not available when the questio nwas originally asked and answered,0,NULL,NULL 48662,118002,603544,NULL,NULL,NULL,0,NULL,NULL 48663,44170,909376,Yearling Curious Nice Question Great Answer Popular Question Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Nice Answer Yearling Popular Question Guru Great Answer Nice Answer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48664,892865,1475086,NULL,NULL,NULL,0,NULL,NULL 48665,318366,1272679,Notable Question Revival,NULL,NULL,0,NULL,NULL 48666,1241286,184911,Popular Question Popular Question Curious Nice Question Notable Question Commentator,NULL,NULL,0,NULL,NULL 48667,84630,1407369,Nice Answer Teacher Census Necromancer Yearling Critic Yearling Good Answer Investor Commentator,NULL,NULL,0,NULL,NULL 48668,571356,904721,NULL,NULL,NULL,0,NULL,NULL 48669,6957,436839,Revival Yearling Necromancer Revival Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48670,381464,1356790,NULL,NULL,NULL,0,NULL,NULL 48671,193594,380902,NULL,NULL,NULL,0,NULL,NULL 48672,276936,1007262,Self-Learner Yearling Caucus Constituent Notable Question Yearling,NULL,NULL,0,NULL,NULL 48673,575234,374037,Yearling Nice Answer Enlightened Caucus Constituent Yearling Census Popular Question Caucus Documentation User Census Yearling Revival Good Answer Popular Question Caucus Yearling Guru,NULL,NULL,0,NULL,NULL 48674,146525,69926,Yearling Yearling Necromancer Yearling Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 48675,48686,116153,Autobiographer Commentator Nice Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 48676,557162,373530,Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 48677,134297,358970,Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Custodian Nice Answer Yearling Good Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 48678,234065,789539,NULL,NULL,NULL,0,NULL,NULL 48679,79954,113344,Yearling Necromancer Custodian Yearling Census Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48680,107552,1399882,NULL,NULL,NULL,0,NULL,NULL 48681,6840884,22724,Disciplined Famous Question Great Question Famous Question Yearling Census Nice Question Guru Yearling Famous Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 48682,161559,297474,Necromancer Critic,NULL,NULL,0,NULL,NULL 48683,63370,1119197,NULL,NULL,NULL,0,NULL,NULL 48684,1014930,691410,NULL,NULL,NULL,0,NULL,NULL 48685,264591,862280,NULL,NULL,NULL,0,NULL,NULL 48686,139210,477143,NULL,NULL,NULL,0,NULL,NULL 48687,189144,210140,Good Question,NULL,NULL,0,NULL,NULL 48688,257987,525614,NULL,NULL,NULL,0,NULL,NULL 48689,254918,1455651,NULL,NULL,NULL,0,NULL,NULL 48690,1411066,851551,NULL,NULL,NULL,0,NULL,NULL 48691,121338,430048,Notable Question Popular Question Notable Question Nice Answer Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 48692,8723161,1062304,Notable Question Popular Question Famous Question Yearling Notable Question Custodian Guru Announcer Famous Question Yearling Popular Question Nice Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 48693,112334,1062304,Notable Question Popular Question Famous Question Yearling Notable Question Custodian Guru Announcer Famous Question Yearling Popular Question Nice Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 48694,233116,804791,NULL,NULL,NULL,0,NULL,NULL 48695,702906,1004809,NULL,NULL,NULL,0,NULL,NULL 48696,6844,25318,Necromancer Yearling Good Question Popular Question Yearling Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 48697,41709,674804,NULL,NULL,NULL,0,NULL,NULL 48698,364448,589278,NULL,NULL,NULL,0,NULL,NULL 48699,1348245,589278,NULL,NULL,NULL,0,NULL,NULL 48700,20408,959278,Nice Answer,NULL,NULL,0,NULL,NULL 48701,903810,1027503,NULL,NULL,NULL,0,NULL,NULL 48702,147312,628014,NULL,NULL,NULL,0,NULL,NULL 48703,76695,1347398,NULL,NULL,NULL,0,NULL,NULL 48704,175604,976884,NULL,NULL,NULL,0,NULL,NULL 48705,1802704,275196,Good Answer Nice Question Popular Question Yearling Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 48706,552233,275196,Good Answer Nice Question Popular Question Yearling Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 48707,425557,7028,Nice Answer Enlightened Guru Good Answer Necromancer Nice Answer Famous Question Documentation Beta Talkative Documentation Pioneer Nice Answer Good Answer Yearling Caucus Good Answer Constituent Nice Answer Notable Question Outspoken Census Not a Robot Nice Answer Inquisitive Deputy Caucus Yearling Great Answer Documentation User Nice Answer Good Answer Census Good Question Good Answer Caucus Constituent Yearling Good Answer,NULL,Relational Database Design Patterns design patterns database design rdbms pDesign patterns are usually related to object oriented design brstrongAre there href http en wikipedia org wiki Design pattern computer science rel noreferrer design patterns for creating and programming href http en wikipedia org wiki Relational database rel noreferrer relational databases strong brMany problems surely must have reusable solutions ppExamples would include patterns for table design stored procedures triggers etc ppIs there an online repository of such patterns similar to href http martinfowler com rel noreferrer martinfowler com phrpExamples of problems that patterns could solve pulliStoring hierarchical data single table with type vs multiple tables with key and differences liliStoring data with variable structure generic columns vs xml vs delimited column liliDenormalize data how to do it with minimal impact etc li ul the question was on topic in 2008 when asked,0,NULL,NULL 48708,788,402436,NULL,NULL,NULL,0,NULL,NULL 48709,1480908,1355017,Scholar Investor Notable Question,NULL,NULL,0,NULL,NULL 48710,643612,1134231,NULL,NULL,NULL,0,NULL,NULL 48711,184735,489292,Good Answer,NULL,NULL,0,NULL,NULL 48712,47102,651449,Autobiographer Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48713,233219,1035275,NULL,NULL,NULL,0,NULL,NULL 48714,265868,650541,Good Answer Yearling Populist Yearling Necromancer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 48715,10722,558393,Notable Question Supporter Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 48716,412249,1185714,Notable Question,NULL,NULL,0,NULL,NULL 48717,172260,624395,Nice Question Inquisitive Yearling Nice Question Popular Question Nice Answer Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Notable Question Nice Question Caucus Good Answer Popular Question Famous Question Popular Question Yearling Popular Question Caucus Organizer Popular Question Popular Question Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 48718,420527,687136,NULL,NULL,NULL,0,NULL,NULL 48719,1692910,569989,Student Scholar Teacher Necromancer,NULL,NULL,0,NULL,NULL 48720,135758,628731,NULL,NULL,NULL,0,NULL,NULL 48721,919458,705996,NULL,NULL,NULL,0,NULL,NULL 48722,1885998,1343754,Popular Question,NULL,NULL,0,NULL,NULL 48723,476144,1343754,Popular Question,NULL,NULL,0,NULL,NULL 48724,682773,843371,NULL,NULL,NULL,0,NULL,NULL 48725,104291,514994,Notable Question,NULL,NULL,0,NULL,NULL 48726,135713,107655,Famous Question Popular Question Revival Popular Question Necromancer Good Question Yearling Notable Question Popular Question Revival Necromancer Nice Question Good Answer Famous Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Caucus Constituent Nice Question Nice Question Popular Question Favorite Question Census Famous Question Popular Question Yearling Good Question Benefactor Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48727,218800,1408053,Informed Autobiographer Scholar Teacher Tumbleweed,NULL,NULL,0,NULL,NULL 48728,310629,981966,NULL,NULL,NULL,0,NULL,NULL 48729,114729,1363486,Popular Question Supporter Yearling Commentator Yearling Critic Yearling Yearling Custodian Yearling Scholar Citizen Patrol Yearling Tenacious Nice Answer,NULL,NULL,0,NULL,NULL 48730,185527,795938,NULL,NULL,NULL,0,NULL,NULL 48731,111667,1308023,NULL,NULL,NULL,0,NULL,NULL 48732,6493636,1308023,NULL,NULL,NULL,0,NULL,NULL 48733,182245,621935,Popular Question Census,NULL,NULL,0,NULL,NULL 48734,309971,1108250,NULL,NULL,NULL,0,NULL,NULL 48735,277560,1105717,NULL,NULL,NULL,0,NULL,NULL 48736,18767,95140,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48737,438324,133106,Proofreader Announcer Yearling Good Answer Yearling Necromancer Good Answer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 48738,171866,1468367,NULL,NULL,NULL,0,NULL,NULL 48739,817951,808387,NULL,NULL,NULL,0,NULL,NULL 48740,208056,1382517,NULL,NULL,NULL,0,NULL,NULL 48741,417733,314354,NULL,NULL,NULL,0,NULL,NULL 48742,82125,561407,Teacher Supporter,NULL,NULL,0,NULL,NULL 48743,180973,723857,NULL,NULL,NULL,0,NULL,NULL 48744,426227,1520828,NULL,NULL,NULL,0,NULL,NULL 48745,168321,643088,Informed,NULL,NULL,0,NULL,NULL 48746,1081465,1079872,Popular Question Popular Question Yearling Yearling Nice Question Notable Question,NULL,pI had similar problem and solved it with JD Long answer But as results of codeggplot2 code updating to version noticed that all codegeom text codecalls rendered somewhat blurred on the plots ppThanks to href https stackoverflow com users 314020 kohske kohske discovered that this code ppre codeggplot data2 aes time value group type col type geom line geom point theme bw geom text aes label correct color color NA geom text aes 15 label another correct color color MVH code prepplots the geom text codenrow data2 codetimes ppThe correct way for supplying data to geom text is building different data frame holding coordinates labels and colors for the strings you want to be plotted ppre codedata2 labels lt data frame time 15 value label correct color another correct color type NA MVH ggplot data2 aes time value group type col type geom line geom point theme bw geom text data data2 labels aes time value label label code pre That correct Since ggplot released https github com tidyverse ggplot2 releases tag v2 2015 12 18 check overlap TRUE provides simple way to avoid overplottingof labels labels that would otherwise overlap are omitted,0,NULL,NULL 48747,41639,1193450,Teacher Necromancer Nice Answer Yearling Good Answer Yearling Supporter Populist Yearling Editor Organizer Excavator Investor,NULL,NULL,0,NULL,NULL 48748,53057,674225,Popular Question Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 48749,1158961,521853,Popular Question,NULL,NULL,0,NULL,NULL 48750,52278,1414429,NULL,NULL,NULL,0,NULL,NULL 48751,2723853,1414429,NULL,NULL,NULL,0,NULL,NULL 48752,1786356,1549102,NULL,NULL,NULL,0,NULL,NULL 48753,194433,267937,NULL,NULL,NULL,0,NULL,NULL 48754,90792,944275,NULL,NULL,NULL,0,NULL,NULL 48755,136498,367741,NULL,NULL,NULL,0,NULL,NULL 48756,1114271,150675,Teacher,NULL,NULL,0,NULL,NULL 48757,194547,1410571,Informed,NULL,NULL,0,NULL,NULL 48758,200638,177807,Notable Question Nice Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 48759,195586,1392808,Famous Question Caucus Popular Question Caucus Nice Answer Yearling Peer Pressure Census,NULL,NULL,0,NULL,NULL 48760,67614,769718,NULL,NULL,NULL,0,NULL,NULL 48761,357047,623871,Yearling Autobiographer,NULL,NULL,0,NULL,NULL 48762,166704,1468746,Student Teacher,NULL,NULL,0,NULL,NULL 48763,97492,627878,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48764,1965725,823371,Popular Question Yearling Yearling Popular Question Yearling,NULL,pI ve investigated strongA LOT strong on how to properly manage 404s in MVC em specifically MVC3 em and this IMHO is the best solution ve come up with ppIn global asax ppre codepublic class MvcApplication HttpApplication protected void Application EndRequest if Context Response StatusCode 404 Response Clear var rd new RouteData rd DataTokens area AreaName In case controller is in another area rd Values controller Errors rd Values action NotFound IController new ErrorsController Execute new RequestContext new HttpContextWrapper Context rd code prepErrorsController ppre codepublic sealed class ErrorsController Controller public ActionResult NotFound ActionResult result object model Request Url PathAndQuery if Request IsAjaxRequest result View model else result PartialView NotFound model return result code prep strongEdit strong ppIf you re using IoC AutoFac you should create your controller using ppre codevar rc new RequestContext new HttpContextWrapper Context rd var ControllerBuilder Current GetControllerFactory CreateController rc Errors Execute rc code prepInstead of ppre codeIController new ErrorsController Execute new RequestContext new HttpContextWrapper Context rd code prep em Optional em pp strongExplanation strong ppThere are scenarios that can think of where an ASP NET MVC3 apps can generate 404s ppGenerated by ASP NET pulli strongScenario strong URL does not match route in the route table li ulpGenerated by ASP NET MVC pulli strongScenario strong URL matches route but specifies controller that doesn exist lili strongScenario strong URL matches route but specifies an action that doesn exist li ulpManually generated pulli strongScenario strong An action returns an HttpNotFoundResult by using the method HttpNotFound lili strongScenario strong An action throws an HttpException with the status code 404 lili strongScenario strong An actions manually modifies the Response StatusCode property to 404 li ulp strongObjectives strong pulli strong strong Show custom 404 error page to the user lili strong strong Maintain the 404 status code on the client response specially important for SEO lili strong strong Send the response directly without involving 302 redirection li ulp strongSolution Attempt Custom Errors strong ppre code lt system web gt lt customErrors mode On gt lt error statusCode 404 redirect Errors NotFound gt lt customError gt lt system web gt code prepProblems with this solution pulliDoes not comply with objective in scenarios liliDoes not comply with objective automatically It must be programmed manually liliDoes not comply with objective li ulp strongSolution Attempt HTTP Errors strong ppre code lt system webServer gt lt httpErrors errorMode Custom gt lt remove statusCode 404 gt lt error statusCode 404 path App Errors NotFound responseMode ExecuteURL gt lt httpErrors gt lt system webServer gt code prepProblems with this solution pulliOnly works on IIS liliDoes not comply with objective in scenarios liliDoes not comply with objective automatically It must be programmed manually li ulp strongSolution Attempt HTTP Errors with Replace strong ppre code lt system webServer gt lt httpErrors errorMode Custom existingResponse Replace gt lt remove statusCode 404 gt lt error statusCode 404 path App Errors NotFound responseMode ExecuteURL gt lt httpErrors gt lt system webServer gt code prepProblems with this solution pulliOnly works on IIS liliDoes not comply with objective automatically It must be programmed manually liliIt obscures application level http exceptions can use customErrors section System Web Mvc HandleErrorAttribute etc It can only show generic error pages li ulp strongSolution Attempt customErrors and HTTP Errors strong ppre code lt system web gt lt customErrors mode On gt lt error statusCode 404 redirect Errors NotFound gt lt customError gt lt system web gt code prepand ppre code lt system webServer gt lt httpErrors errorMode Custom gt lt remove statusCode 404 gt lt error statusCode 404 path App Errors NotFound responseMode ExecuteURL gt lt httpErrors gt lt system webServer gt code prepProblems with this solution pulliOnly works on IIS liliDoes not comply with objective automatically It must be programmed manually liliDoes not comply with objective in scenarios li ulpPeople that have troubled with this before even tried to create their own libraries see href http aboutcode net 2011 02 26 handling not found with asp net mvc3 html rel noreferrer http aboutcode net 2011 02 26 handling not found with asp net mvc3 html But the previous solution seems to cover all the scenarios without the complexity of using an external library Thank you for the comment and suggested edit have updated the answer to reflect it,0,NULL,NULL 48765,286539,617885,NULL,NULL,NULL,0,NULL,NULL 48766,1032863,403486,NULL,NULL,NULL,0,NULL,NULL 48767,205295,729704,NULL,NULL,NULL,0,NULL,NULL 48768,355363,1074168,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48769,1714164,547089,NULL,NULL,NULL,0,NULL,NULL 48770,255864,1164975,NULL,NULL,NULL,0,NULL,NULL 48771,38679,728360,NULL,NULL,NULL,0,NULL,NULL 48772,1347319,1054473,Popular Question,NULL,NULL,0,NULL,NULL 48773,476653,396655,Critic Tumbleweed Documentation User Nice Answer Census Curious Informed,NULL,NULL,0,NULL,NULL 48774,165923,1462175,Editor Nice Answer,NULL,NULL,0,NULL,NULL 48775,117346,547334,Informed Nice Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 48776,426613,776629,Yearling Famous Question Popular Question Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 48777,514756,1261202,NULL,NULL,NULL,0,NULL,NULL 48778,194227,722726,NULL,NULL,NULL,0,NULL,NULL 48779,194582,1391836,NULL,NULL,NULL,0,NULL,NULL 48780,125259,1341115,NULL,NULL,NULL,0,NULL,NULL 48781,399177,279395,Yearling Nice Question Revival Nice Answer Enlightened Guru Popular Question Popular Question Notable Question twilio Notable Question Great Answer Popular Question Yearling Nice Answer Good Answer Good Answer Nice Answer Notable Question Nice Answer Enlightened Great Answer Custodian Reviewer Necromancer Great Answer Yearling c# Notable Question,NULL,NULL,0,NULL,NULL 48782,242038,348343,NULL,NULL,NULL,0,NULL,NULL 48783,424785,1555592,NULL,NULL,NULL,0,NULL,NULL 48784,193035,697024,NULL,NULL,NULL,0,NULL,NULL 48785,755010,1469974,NULL,NULL,NULL,0,NULL,NULL 48786,2318,470756,Guru Student Yearling Critic Self-Learner,NULL,NULL,0,NULL,NULL 48787,367204,165750,Famous Question Notable Question Notable Question Popular Question Nice Question Famous Question Nice Question Good Question Popular Question Nice Question Notable Question Nice Question Yearling Nice Question Revival Good Question Notable Question Famous Question Popular Question Nice Question Nice Answer Good Question Popular Question Popular Question Good Question Popular Question Yearling Famous Question Popular Question Notable Question Famous Question Famous Question Popular Question Good Question Popular Question Good Answer Famous Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48788,133372,1195909,Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Famous Question Popular Question Good Question Citizen Patrol Popular Question Notable Question Notable Question Popular Question Yearling Caucus Nice Question,NULL,NULL,0,NULL,NULL 48789,96186,1504760,NULL,NULL,NULL,0,NULL,NULL 48790,79885,416431,NULL,NULL,NULL,0,NULL,NULL 48791,4870708,461076,Announcer Yearling Necromancer Caucus Nice Answer Caucus,NULL,NULL,0,NULL,NULL 48792,1353451,690049,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 48793,184776,181915,Popular Question Favorite Question Yearling Popular Question Notable Question Notable Question Nice Question Yearling Good Answer Custodian Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48794,43796,742131,Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 48795,50476,1313690,Informed Editor Teacher Supporter Excavator Suffrage Vox Populi Documentation User,NULL,NULL,0,NULL,NULL 48796,198990,975879,NULL,NULL,NULL,0,NULL,NULL 48797,243378,1073176,NULL,NULL,NULL,0,NULL,NULL 48798,14939,929899,Yearling Yearling Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48799,159097,1167551,NULL,NULL,NULL,0,NULL,NULL 48800,48972,477613,Famous Question,NULL,NULL,0,NULL,NULL 48801,35415,446411,NULL,NULL,NULL,0,NULL,NULL 48802,163558,138070,Popular Question Caucus Census Custodian Custodian Popular Question,NULL,NULL,0,NULL,NULL 48803,4198,1296686,Editor Yearling Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 48804,94209,291880,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 48805,22182,521520,NULL,NULL,NULL,0,NULL,NULL 48806,9337895,822178,NULL,NULL,NULL,0,NULL,NULL 48807,55609,1488567,Editor Informed Scholar,NULL,NULL,0,NULL,NULL 48808,290864,1197270,Popular Question,NULL,NULL,0,NULL,NULL 48809,234309,373950,NULL,NULL,NULL,0,NULL,NULL 48810,368844,1331702,Informed,NULL,NULL,0,NULL,NULL 48811,181507,864279,Teacher Student Nice Question,NULL,NULL,0,NULL,NULL 48812,85145,1495468,NULL,NULL,NULL,0,NULL,NULL 48813,384175,588962,NULL,NULL,NULL,0,NULL,NULL 48814,8588399,588962,NULL,NULL,NULL,0,NULL,NULL 48815,220478,192880,NULL,NULL,NULL,0,NULL,NULL 48816,119467,1120481,Notable Question Necromancer Yearling Popular Question Civic Duty Caucus Constituent Documentation User Custodian Yearling Popular Question Popular Question Caucus Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 48817,22394,1508180,NULL,NULL,NULL,0,NULL,NULL 48818,83025,119901,Necromancer Popular Question Yearling Famous Question Popular Question Necromancer Nice Answer Yearling Revival Necromancer Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 48819,263249,1387245,Critic,NULL,NULL,0,NULL,NULL 48820,27256,783253,NULL,NULL,NULL,0,NULL,NULL 48821,1419231,804394,Informed Census,NULL,NULL,0,NULL,NULL 48822,20714,1357092,NULL,NULL,NULL,0,NULL,NULL 48823,379899,362167,Supporter Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 48824,336839,1156263,NULL,NULL,NULL,0,NULL,NULL 48825,112461,110979,Good Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 48826,342297,741572,NULL,NULL,NULL,0,NULL,NULL 48827,125410,389105,Popular Question Yearling Notable Question Caucus Constituent Notable Question Necromancer Yearling Nice Answer Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 48828,125199,394653,NULL,NULL,NULL,0,NULL,NULL 48829,446007,839086,Nice Answer Enlightened Good Answer Necromancer Yearling Caucus Constituent Nice Answer Enlightened Nice Answer Necromancer Good Answer Nice Answer Nice Answer Good Answer Yearling Caucus Documentation User mysql Census Caucus Great Answer Yearling Nice Answer Guru Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 48830,164642,609767,Yearling,NULL,NULL,0,NULL,NULL 48831,194601,815490,NULL,NULL,NULL,0,NULL,NULL 48832,676985,1331179,Yearling,NULL,NULL,0,NULL,NULL 48833,830175,774660,Informed Autobiographer Supporter,NULL,NULL,0,NULL,NULL 48834,201272,769805,NULL,NULL,NULL,0,NULL,NULL 48835,74625,571594,NULL,NULL,NULL,0,NULL,NULL 48836,18531,846195,NULL,NULL,NULL,0,NULL,NULL 48837,232638,932464,Popular Question Caucus,NULL,NULL,0,NULL,NULL 48838,127512,140417,NULL,NULL,NULL,0,NULL,NULL 48839,91044,143086,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 48840,131191,389674,NULL,NULL,NULL,0,NULL,NULL 48841,187910,212483,NULL,NULL,NULL,0,NULL,NULL 48842,216337,1149262,NULL,NULL,NULL,0,NULL,NULL 48843,147174,150246,Notable Question Notable Question Notable Question Notable Question Popular Question Nice Question Yearling Good Answer Popular Question Great Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Favorite Question Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48844,87104,124192,Yearling Notable Question Necromancer Famous Question Popular Question Popular Question Yearling Nice Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 48845,19859,166938,Nice Answer Good Question Good Answer Guru Guru Announcer Good Question Yearling Necromancer Popular Question Nice Answer Nice Answer Good Question Notable Question Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Popular Question Good Answer Yearling python Stellar Question Nice Answer Enlightened Good Answer Guru Nice Question Guru Nice Question Yearling,NULL,NULL,0,NULL,NULL 48846,26941,130023,Nice Answer,NULL,NULL,0,NULL,NULL 48847,82284,635910,NULL,NULL,NULL,0,NULL,NULL 48848,5136,333340,Good Answer Necromancer Yearling Nice Answer Enlightened Populist Steward Nice Answer Enlightened Nice Answer Enlightened Guru phpmailer Custodian Good Answer Nice Answer Nice Question Nice Answer php Announcer Pundit Announcer Yearling Nice Answer Announcer Popular Question Nice Answer Enlightened Announcer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Documentation User Steward Self-Learner Nice Answer Nice Answer Enlightened Popular Question Announcer Good Answer Necromancer html Yearling Populist Notable Question Good Answer Guru Notable Question Good Answer,NULL,pA good friend came up with workaround for using sha256WithRSAEncryption on an old PHP and OpenSSL 8g module ppUsing the information available at href http www di mgt com au rsa alg html rel noreferrer http www di mgt com au rsa alg html he wrote me the following snippet ppre codefunction my openssl sign data amp signature priv key id signature alg sha256WithRSAEncryption pinfo openssl pkey get details priv key id hash hash sha256 data 3031300d060960864801650304020105000420 sha256 hash pslen pinfo bits strlen eb 0001 str repeat FF pslen 00 eb pack eb return openssl private encrypt eb signature priv key id OPENSSL NO PADDING code prepThank you Mads you re made of awesomeness In case you re wondering where that SHA256 magic constant comes from it from RFC3447 http rpm5 org docs api signature 8c source html l01273,0,NULL,NULL 48849,249746,1036212,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48850,4426,103766,Yearling Famous Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 48851,73844,309345,Popular Question Yearling,NULL,NULL,0,NULL,NULL 48852,11638,1226326,Popular Question Commentator Scholar Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 48853,639250,1070384,NULL,NULL,NULL,0,NULL,NULL 48854,1172663,764778,NULL,NULL,NULL,0,NULL,NULL 48855,3598563,490657,Necromancer,NULL,NULL,0,NULL,NULL 48856,222144,987419,Critic,NULL,NULL,0,NULL,NULL 48857,961079,205023,Notable Question Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48858,68156,414023,NULL,NULL,NULL,0,NULL,NULL 48859,416347,314670,Guru Yearling Civic Duty Nice Question Nice Answer Enlightened Nice Answer Enlightened Popular Question bdd Yearling Nice Answer Enlightened Popular Question Nice Question Nice Answer Yearling Good Answer Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 48860,130316,314670,Guru Yearling Civic Duty Nice Question Nice Answer Enlightened Nice Answer Enlightened Popular Question bdd Yearling Nice Answer Enlightened Popular Question Nice Question Nice Answer Yearling Good Answer Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 48861,14317,600668,NULL,NULL,NULL,0,NULL,NULL 48862,4816,1135611,Commentator Yearling Census Necromancer Yearling Nice Answer Custodian,NULL,pThea href http schacon github com git git show rel noreferrer show acommand may be what you want Try ppre codegit show format ci lt commit gt code prepOther formats for the date string are available as well Check the href http schacon github io git git show rel noreferrer manual page fordetails It is significantly faster to use log rather than show for large merge commits so definitely recommend using log if you are trying to find stale branches This sped it up from hours to minutes in the case of the monorepo working with right now,0,NULL,NULL 48863,424122,1468232,NULL,NULL,NULL,0,NULL,NULL 48864,3296257,1468232,NULL,NULL,NULL,0,NULL,NULL 48865,536525,458758,Autobiographer Critic Enthusiast Fanatic Revival Caucus Constituent Yearling Necromancer Scholar Caucus Constituent Student Yearling Nice Answer Caucus Constituent Popular Question Necromancer Revival Notable Question,NULL,NULL,0,NULL,NULL 48866,3353739,458758,Autobiographer Critic Enthusiast Fanatic Revival Caucus Constituent Yearling Necromancer Scholar Caucus Constituent Student Yearling Nice Answer Caucus Constituent Popular Question Necromancer Revival Notable Question,NULL,NULL,0,NULL,NULL 48867,2723507,1031176,NULL,NULL,NULL,0,NULL,NULL 48868,12434,1031176,NULL,NULL,NULL,0,NULL,NULL 48869,259804,1040699,Good Answer Yearling Yearling Editor Excavator,NULL,NULL,0,NULL,NULL 48870,47636,896722,NULL,NULL,NULL,0,NULL,NULL 48871,2879210,1079968,Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Teacher Nice Question Popular Question Caucus Nice Question Inquisitive Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48872,469070,558645,NULL,NULL,,0,, 48873,106513,1070064,Nice Answer Good Answer Good Answer Notable Question Popular Question Great Answer Good Question Yearling Popular Question Good Answer Good Answer Notable Question Nice Question Yearling Popular Question Guru Excavator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48874,4419,797900,NULL,NULL,NULL,0,NULL,NULL 48875,424097,492624,Popular Question Good Answer Notable Question Notable Question Good Answer Nice Answer Popular Question Notable Question Famous Question Nice Answer Enlightened Notable Question Good Question Popular Question Revival Nice Answer Famous Question Great Answer Notable Question Notable Question Notable Question Nice Answer Enlightened Famous Question Notable Question Popular Question Notable Question Good Answer Announcer Yearling Good Answer Famous Question Notable Question Popular Question Revival Famous Question Famous Question Famous Question Notable Question Popular Question Great Question Nice Answer Enlightened Nice Answer Enlightened Great Question Caucus Constituent Popular Question Good Answer Nice Question Announcer Yearling Good Answer Popular Question Popular Question Good Question Favorite Question Announcer Caucus Constituent Popular Question Guru Good Answer Popular Question Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 48876,75254,139298,Nice Answer Famous Question Popular Question Popular Question Yearling Notable Question Notable Question Yearling Nice Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 48877,343859,989867,NULL,NULL,NULL,0,NULL,NULL 48878,2694691,989867,NULL,NULL,NULL,0,NULL,NULL 48879,252153,596625,Yearling Necromancer Popular Question Good Answer Yearling Custodian Popular Question Critic Announcer Announcer,NULL,NULL,0,NULL,NULL 48880,2053003,1205130,Favorite Question Popular Question Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 48881,182782,829996,NULL,NULL,NULL,0,NULL,NULL 48882,166512,859022,Supporter,NULL,NULL,0,NULL,NULL 48883,192976,543357,NULL,NULL,NULL,0,NULL,NULL 48884,2743,568659,Caucus Constituent Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48885,317732,508567,NULL,NULL,NULL,0,NULL,NULL 48886,34765,496285,Great Answer Nice Answer Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 48887,138953,9812,Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 48888,2792396,9812,Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 48889,1089411,1540722,Tumbleweed,NULL,NULL,0,NULL,NULL 48890,7782036,216626,NULL,NULL,NULL,0,NULL,NULL 48891,162686,216626,NULL,NULL,NULL,0,NULL,NULL 48892,452363,551383,Yearling Necromancer,NULL,NULL,0,NULL,NULL 48893,209773,580167,Yearling Necromancer Nice Answer Yearling Nice Answer Yearling Caucus Nice Answer Announcer,NULL,NULL,0,NULL,NULL 48894,136244,1174806,Popular Question,NULL,NULL,0,NULL,NULL 48895,183959,1410114,NULL,NULL,NULL,0,NULL,NULL 48896,10119598,1410114,NULL,NULL,NULL,0,NULL,NULL 48897,762393,458130,Teacher Nice Question Curious Critic Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 48898,890059,508020,NULL,NULL,NULL,0,NULL,NULL 48899,201007,20300,Nice Answer Good Question Notable Question Yearling Notable Question Revival Census Necromancer Yearling Famous Question Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 48900,10410,294267,NULL,NULL,NULL,0,NULL,NULL 48901,304654,1291766,NULL,NULL,NULL,0,NULL,NULL 48902,30712,629418,Autobiographer Census,NULL,NULL,0,NULL,NULL 48903,570983,244690,Yearling Guru,NULL,NULL,0,NULL,NULL 48904,82700,134115,Nice Question Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 48905,192661,1551395,NULL,NULL,NULL,0,NULL,NULL 48906,226964,371457,Notable Question Yearling Nice Answer Good Answer Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 48907,549389,655183,Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Yearling Good Answer Nice Answer python Nice Answer Nice Answer Nice Answer Good Answer Enlightened Enlightened Yearling Famous Question Popular Question Great Question Popular Question Nice Answer Enlightened Favorite Question,NULL,NULL,0,NULL,NULL 48908,461600,762396,NULL,NULL,NULL,0,NULL,NULL 48909,10787,260941,NULL,NULL,NULL,0,NULL,NULL 48910,30824,137613,NULL,NULL,NULL,0,NULL,NULL 48911,194294,651764,Popular Question Curious Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 48912,565673,907986,Good Answer Notable Question Nice Answer Popular Question Yearling Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 48913,518933,605316,NULL,NULL,NULL,0,NULL,NULL 48914,69111,203497,NULL,NULL,NULL,0,NULL,NULL 48915,120325,304219,NULL,NULL,NULL,0,NULL,NULL 48916,480380,413069,NULL,NULL,NULL,0,NULL,NULL 48917,583543,957546,NULL,NULL,NULL,0,NULL,NULL 48918,103103,652640,NULL,NULL,NULL,0,NULL,NULL 48919,125528,739568,Student,NULL,NULL,0,NULL,NULL 48920,64281,184757,Yearling Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 48921,296946,727392,Informed Custodian Yearling Caucus Constituent Census Caucus Constituent,NULL,Chrome renders colours differently from Safari and Firefox css google chrome colors rendering pChrome renders FF3A00 as FF0000 for some reason included screenshot from href http jsfiddle net L9xy4 rel noreferrer jsfiddle to illustrate the point The colour that the Color Meter reports and what see differs from what CSS says ppThis happens to other colours too For example FFAF00 is rendered as FFA400 according to the Color Meter ppHowever the colours are rendered without problems on Safari and Firefox on Mac using Chrome 11 Safari and Firefox ppI sure there logical explanation Any ideas ppUpdate attaching screenshot of Chrome next to Safari showing the very same page checked this image in Photoshop the colours are F00 in Chrome and FF3A00 in Safari img src https stack imgur com R5QvN png alt Chrome vs Safari pp img src https stack imgur com La5WR png alt Chrome renders FF3A00 as F00 2016 21 century and this issue its still present,0,NULL,NULL 48922,217780,1401981,NULL,NULL,NULL,0,NULL,NULL 48923,78519,1043580,Revival Notable Question Popular Question Necromancer Caucus Nice Answer Yearling Nice Question Necromancer Yearling Census Good Answer Popular Question,NULL,NULL,0,NULL,NULL 48924,338884,751180,Popular Question Notable Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 48925,298311,855933,NULL,NULL,NULL,0,NULL,NULL 48926,122115,278542,Nice Answer,NULL,NULL,0,NULL,NULL 48927,210740,284032,Yearling Revival Necromancer Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 48928,325912,32406,NULL,NULL,NULL,0,NULL,NULL 48929,291554,598473,NULL,NULL,NULL,0,NULL,NULL 48930,317831,892893,NULL,NULL,NULL,0,NULL,NULL 48931,111693,702269,Citizen Patrol Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 48932,2084,486527,Revival Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling codemirror Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 48933,447633,850173,NULL,NULL,NULL,0,NULL,NULL 48934,656259,691850,Documentation User,NULL,NULL,0,NULL,NULL 48935,1504811,1049767,Popular Question Documentation User,NULL,NULL,0,NULL,NULL 48936,1157598,575657,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48937,67483,1438115,Self-Learner Popular Question Tumbleweed Yearling Popular Question Critic Popular Question Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 48938,106177,474238,NULL,NULL,NULL,0,NULL,NULL 48939,779673,233793,Necromancer,NULL,NULL,0,NULL,NULL 48940,164010,509514,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 48941,107514,4182,NULL,NULL,NULL,0,NULL,NULL 48942,19304,719917,NULL,NULL,NULL,0,NULL,NULL 48943,25336,702757,Popular Question Popular Question Popular Question Self-Learner Notable Question Notable Question,NULL,NULL,0,NULL,NULL 48944,153642,23085,NULL,NULL,NULL,0,NULL,NULL 48945,77731,393357,Yearling Famous Question,NULL,NULL,0,NULL,NULL 48946,50453,1342881,Student Teacher,NULL,NULL,0,NULL,NULL 48947,38269,112779,Nice Answer Nice Answer Popular Question Yearling Caucus Notable Question Self-Learner Good Answer Yearling Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 48948,378941,810844,NULL,NULL,NULL,0,NULL,NULL 48949,16867,669828,NULL,NULL,NULL,0,NULL,NULL 48950,105050,388865,NULL,NULL,NULL,0,NULL,NULL 48951,18957,1151628,NULL,NULL,NULL,0,NULL,NULL 48952,314365,210289,Yearling Great Answer Yearling Popular Question Revival Caucus Constituent Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 48953,6748219,245462,Notable Question,NULL,NULL,0,NULL,NULL 48954,245561,191059,Favorite Question Notable Question Custodian Notable Question Yearling Great Question Peer Pressure Civic Duty Yearling Census Notable Question Announcer Popular Question Popular Question Great Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 48955,429418,899358,NULL,NULL,NULL,0,NULL,NULL 48956,802264,1091249,NULL,NULL,NULL,0,NULL,NULL 48957,393926,399621,Popular Question,NULL,NULL,0,NULL,NULL 48958,90539,262633,Nice Question Caucus Teacher Popular Question,NULL,NULL,0,NULL,NULL 48959,162871,814679,Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 48960,190856,1290463,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 48961,12319,134327,Critic Yearling Editor Informed Yearling Commentator Organizer Yearling Census Custodian,NULL,NULL,0,NULL,NULL 48962,60443,951658,NULL,NULL,NULL,0,NULL,NULL 48963,167776,517541,Famous Question Yearling Popular Question Nice Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 48964,100096,1317964,NULL,NULL,NULL,0,NULL,NULL 48965,100192,1317964,NULL,NULL,NULL,0,NULL,NULL 48966,59747,754421,Yearling Nice Answer Enlightened Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 48967,80489,500032,NULL,NULL,NULL,0,NULL,NULL 48968,204720,1421949,Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 48969,4627,612883,NULL,NULL,NULL,0,NULL,NULL 48970,25292,358100,Student Supporter,NULL,NULL,0,NULL,NULL 48971,907458,1072909,NULL,NULL,NULL,0,NULL,NULL 48972,350882,649014,NULL,NULL,NULL,0,NULL,NULL 48973,214297,734554,NULL,NULL,NULL,0,NULL,NULL 48974,1096914,670248,Popular Question,NULL,NULL,0,NULL,NULL 48975,4487,875693,Nice Question Yearling Nice Answer Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 48976,50319,908435,NULL,NULL,NULL,0,NULL,NULL 48977,244065,1271702,NULL,NULL,NULL,0,NULL,NULL 48978,2494075,1535168,NULL,NULL,NULL,0,NULL,NULL 48979,389538,692083,Nice Answer Yearling Enlightened Critic Necromancer Curious Necromancer Yearling Necromancer Necromancer Caucus Tumbleweed Civic Duty Documentation User Caucus Necromancer Revival Custodian Yearling,NULL,NULL,0,NULL,NULL 48980,532654,1441745,NULL,NULL,NULL,0,NULL,NULL 48981,377050,404395,Famous Question Popular Question Nice Question Popular Question Nice Question Famous Question Necromancer Notable Question Popular Question Notable Question Necromancer Revival Necromancer Nice Answer Necromancer Popular Question Popular Question Famous Question Famous Question Announcer Yearling Famous Question Popular Question Nice Answer Famous Question Famous Question Necromancer Custodian Informed Caucus Notable Question Revival Nice Question Notable Question Nice Question Popular Question Nice Question Nice Answer Great Question Popular Question Popular Question Popular Question Nice Answer Revival Notable Question Famous Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Yearling Necromancer Notable Question Nice Question Famous Question Notable Question Notable Question Good Question Announcer Notable Question Nice Question Necromancer Famous Question Popular Question Good Answer Popular Question Popular Question Yearling Nice Question Famous Question Popular Question Great Answer,NULL,How can draw box around text with SVG svg pHow can create box coderect code that resizes itself to fit the the text inside of it using SVG Nice example with bbox https bl ocks org mbostock 1160929,0,NULL,NULL 48982,164755,1357673,NULL,NULL,NULL,0,NULL,NULL 48983,502876,1410906,NULL,NULL,NULL,0,NULL,NULL 48984,130217,943271,Editor Yearling,NULL,NULL,0,NULL,NULL 48985,370358,991359,NULL,NULL,NULL,0,NULL,NULL 48986,217296,353268,Citizen Patrol Good Answer Popular Question Nice Question Yearling Custodian Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Nice Answer Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 48987,199161,1037410,NULL,NULL,NULL,0,NULL,NULL 48988,49765,592107,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 48989,15376,859190,Self-Learner Yearling Notable Question Revival Caucus Citizen Patrol Notable Question Popular Question Announcer Famous Question Announcer Nice Question,NULL,NULL,0,NULL,NULL 48990,514816,78912,Notable Question Yearling Nice Question Nice Question Taxonomist Great Question Famous Question Census Yearling Notable Question Good Question Famous Question Yearling Famous Question Necromancer Nice Answer Popular Question Civic Duty Nice Answer Necromancer Nice Question Good Answer Good Question,NULL,NULL,0,NULL,NULL 48991,278474,516587,NULL,NULL,NULL,0,NULL,NULL 48992,79170,365858,Nice Answer Nice Answer Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Nice Question Autobiographer Benefactor Editor Famous Question Famous Question Famous Question Necromancer Necromancer Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Organizer Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Promoter Revival Revival Scholar Self-Learner Supporter Teacher Yearling Nice Question Nice Question Commentator Enlightened Enlightened Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Favorite Question Favorite Question Good Question Good Question Good Question Famous Question Yearling Yearling Excavator Yearling Yearling Yearling Yearling Curious Critic Inquisitive Notable Question Popular Question Caucus Notable Question Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 48993,177069,156164,grails Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 48994,31842,185925,Notable Question,NULL,NULL,0,NULL,NULL 48995,204988,660154,Popular Question Yearling Popular Question Caucus Good Answer Notable Question Caucus Popular Question Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 48996,428281,1521543,Informed Editor,NULL,NULL,0,NULL,NULL 48997,309983,624476,Editor Supporter,NULL,NULL,0,NULL,NULL 48998,10992214,624476,Editor Supporter,NULL,NULL,0,NULL,NULL 48999,60067,809122,Commentator Yearling Yearling Mortarboard Critic Yearling Tenacious Yearling Yearling Caucus Constituent Unsung Hero Yearling Explainer Yearling Revival,NULL,NULL,0,NULL,NULL 49000,101901,341929,Necromancer Necromancer Necromancer Notable Question Popular Question Notable Question Necromancer Nice Answer Favorite Question Yearling Notable Question Famous Question Famous Question Necromancer Nice Answer Nice Answer Good Question Popular Question Good Answer Popular Question Famous Question Necromancer Yearling Good Question Popular Question Populist Notable Question Notable Question Necromancer Famous Question Nice Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 49001,4414334,1241453,NULL,NULL,NULL,0,NULL,NULL 49002,19875,1266901,NULL,NULL,NULL,0,NULL,NULL 49003,221933,1213971,NULL,NULL,NULL,0,NULL,NULL 49004,3600797,1418417,Enthusiast Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49005,305131,1418417,Enthusiast Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49006,398253,668564,Custodian Informed Popular Question Yearling,NULL,NULL,0,NULL,NULL 49007,3936335,967094,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49008,457817,1264116,Yearling Deputy Scholar Tumbleweed Good Answer Nice Answer Enlightened Caucus Yearling git Necromancer Nice Answer Good Answer Nice Answer Enlightened Caucus Constituent Custodian Documentation User Suffrage Vox Populi Good Answer Census Guru Custodian Custodian Yearling Caucus Constituent,NULL,pAs of git version 13 git supports href https git scm com docs git config includes rel noreferrer conditional configuration includes In this example we clone Company repos in code company code directory and Company repos in code company code ppIn your code gitconfig code you can put something like this ppre code includeIf gitdir company path gitconfig company includeIf gitdir company path gitconfig company code prepExample contents of gitconfig company ppre code user name John Smithemail john smith net code prepExample contents of gitconfig company ppre code user name John Smithemail js com code pre That weird sure it said something about it before You can find it in the changelog https github com git git blob master Documentation RelNotes 13 txt and also over at https www kernel org pub software scm git docs git config html,1,NULL,Is it possible to have different git config for different projects git git config code gitconfig code is usually stored in the codeuser home code directory ppI use different identity to work on projects for CompanyA and something else for CompanyB primarily the name email How can have different git configurations so that my check ins don go with the name email pAs of git version 13 git supports href https git scm com docs git config includes rel noreferrer conditional configuration includes In this example we clone Company repos in code company code directory and Company repos in code company code ppIn your code gitconfig code you can put something like this ppre code includeIf gitdir company path gitconfig company includeIf gitdir company path gitconfig company code prepExample contents of gitconfig company ppre code user name John Smithemail john smith net code prepExample contents of gitconfig company ppre code user name John Smithemail js com code pre 49009,69218,435344,NULL,NULL,NULL,0,NULL,NULL 49010,383460,784961,NULL,NULL,NULL,0,NULL,NULL 49011,1914186,784961,NULL,NULL,NULL,0,NULL,NULL 49012,37169,1222578,Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Popular Question numpy Popular Question Good Answer Nice Answer Favorite Question pandas Nice Question Nice Answer Good Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Notable Question Good Answer Nice Answer Yearling Nice Answer Enlightened Notable Question Nice Answer Enlightened Notable Question Good Answer Guru Good Question Good Answer Self-Learner Great Question Great Answer Cleanup Nice Question Good Answer Famous Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Favorite Question Guru Yearling python Great Answer plot Notable Question Nice Answer Enlightened Sportsmanship Nice Answer Enlightened Guru Guru Nice Answer Famous Question Guru r ggplot2 Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Stellar Question Famous Question,NULL,NULL,0,NULL,NULL 49013,112075,605121,Yearling Great Answer Announcer Critic Yearling Yearling Caucus Excavator,NULL,NULL,0,NULL,NULL 49014,696845,514451,NULL,NULL,NULL,0,NULL,NULL 49015,146905,110151,Good Answer Nice Answer Nice Answer Great Answer Popular Question Yearling Necromancer Great Answer Caucus Yearling Nice Answer Enlightened Nice Answer Nice Answer Custodian Necromancer Caucus Constituent Good Answer Yearling Nice Answer,NULL,h2What Vim Claims h2pFor codesyntax on code vs codesyntax enable code the help files emclaim em ppre codeThe syntax enable command will keep your current color settings Thisallows using highlight commands to set your preferred colors before orafter using this command If you want Vim to overrule your settings with thedefaults use gt syntax on code preh2I Can Verify These Claims h2pThe behavior see in Vim does not appear to match the above help statement ppAfter testing locally with some empty code vimrc codes and experimenting with codeon code codeenable code and placement of highlight commands can figure out what Vim is actually doing tested with codehighlight ColorColumn guibg 331111 code and codeset colorcolumn 80 code Highlighting is sometimes overwritten and sometimes not ph2Only Let Vim Set Syntax Once h2pI no longer trust Vim so only let syntax get set once ever Here what have in my code vimrc code ppre codeif exists syntax on syntax enableendif code prepI use codeenable code because of the above emclaim em that it won overwrite your settings however it doesn seem to make any difference when starting Vim ph1More details h1pYou can see that codeh syntax on code shows that codeon code and codeenable code source the same file ppre codeDetails The syntax commands are implemented by sourcing file To see exactly howthis works look in the file command file syntax enable VIMRUNTIME syntax syntax vim syntax on VIMRUNTIME syntax syntax vim code prepIf you re curious codeg syntax on code gets set in code VIMRUNTIME syntax synload vim code ppAlso running Vim with no plugins settings codevim NONE code does NOT load any of the syntax files confused you say calling syntax enable multiple times will clobber any color highlighting but then you quote Vim help that say syntax enable will keep your current color settings Which is it,0,NULL,NULL 49016,705687,1419036,Yearling Caucus Peer Pressure Necromancer Yearling Caucus Custodian Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 49017,1566813,103706,Notable Question,NULL,NULL,0,NULL,NULL 49018,543736,497794,Critic Yearling Excavator Caucus Self-Learner Popular Question Popular Question Custodian Nice Question Famous Question Popular Question Yearling Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 49019,551449,1381684,NULL,NULL,NULL,0,NULL,NULL 49020,7648509,383194,NULL,NULL,NULL,0,NULL,NULL 49021,223911,383194,NULL,NULL,NULL,0,NULL,NULL 49022,181995,858007,NULL,NULL,NULL,0,NULL,NULL 49023,111344,265116,Famous Question Commentator Critic,NULL,NULL,0,NULL,NULL 49024,23308,649426,Scholar,NULL,NULL,0,NULL,NULL 49025,205517,1445113,NULL,NULL,NULL,0,NULL,NULL 49026,1113384,54667,Autobiographer,NULL,NULL,0,NULL,NULL 49027,210731,516167,Necromancer Famous Question Revival Good Answer Nice Answer Good Answer Promoter Popular Question Good Answer Necromancer Nice Question Benefactor Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Necromancer Announcer Good Question Popular Question Nice Answer Great Answer Notable Question Popular Question Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Nice Answer Necromancer Necromancer Necromancer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Great Question Nice Answer Notable Question Good Answer Caucus Nice Answer Enlightened Necromancer Nice Answer Notable Question java Nice Answer Enlightened Necromancer Good Answer Nice Question Necromancer Revival Revival Famous Question Yearling Nice Answer Enlightened Necromancer Necromancer Caucus Necromancer Necromancer Announcer Nice Answer eclipse Nice Answer Announcer Announcer Revival Popular Question Nice Answer Enlightened Guru Populist Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49028,433557,391211,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49029,20223,559915,NULL,NULL,NULL,0,NULL,NULL 49030,102599,573267,Informed Supporter,NULL,NULL,0,NULL,NULL 49031,78760,1147256,Yearling Popular Question Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49032,708124,1147256,Yearling Popular Question Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49033,680732,409716,NULL,NULL,NULL,0,NULL,NULL 49034,203254,360380,NULL,NULL,NULL,0,NULL,NULL 49035,2521347,360380,NULL,NULL,NULL,0,NULL,NULL 49036,1864902,741430,NULL,NULL,NULL,0,NULL,NULL 49037,240612,1399988,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49038,29828,825547,Good Answer Caucus,NULL,NULL,0,NULL,NULL 49039,77526,271465,Revival Nice Answer Yearling Necromancer Nice Answer Yearling Necromancer Yearling Nice Answer Good Answer Yearling Commentator Good Answer Nice Answer Enlightened Yearling Necromancer Populist Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 49040,1117453,950741,NULL,NULL,NULL,0,NULL,NULL 49041,77496,422276,NULL,NULL,NULL,0,NULL,NULL 49042,147589,860773,NULL,NULL,NULL,0,NULL,NULL 49043,376902,574869,Student Popular Question,NULL,NULL,0,NULL,NULL 49044,72664,1198480,Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 49045,65073,1226717,Announcer Revival Enthusiast Announcer,NULL,NULL,0,NULL,NULL 49046,79133,1030503,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49047,147144,520419,NULL,NULL,NULL,0,NULL,NULL 49048,748965,454577,Yearling Notable Question Popular Question Caucus Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 49049,726122,398147,NULL,NULL,NULL,0,NULL,NULL 49050,357310,1370357,Informed,NULL,NULL,0,NULL,NULL 49051,252146,585060,NULL,NULL,NULL,0,NULL,NULL 49052,67076,507538,NULL,NULL,NULL,0,NULL,NULL 49053,148270,134441,Editor Yearling Commentator Explainer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 49054,167675,524406,Great Question Yearling,NULL,NULL,0,NULL,NULL 49055,1071126,763227,NULL,NULL,NULL,0,NULL,NULL 49056,254467,379208,NULL,NULL,NULL,0,NULL,NULL 49057,27508,1236604,NULL,NULL,NULL,0,NULL,NULL 49058,279930,516083,NULL,NULL,NULL,0,NULL,NULL 49059,96407,143151,Curious Famous Question Notable Question,NULL,NULL,0,NULL,NULL 49060,187460,69689,Yearling Good Answer Good Answer Nice Answer Nice Answer Announcer Populist Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Announcer Guru Good Answer Good Answer Documentation User Announcer Census Nice Answer Enlightened Guru Yearling Good Answer Cleanup Popular Question,NULL,NULL,0,NULL,NULL 49061,200079,234172,Yearling Yearling,NULL,NULL,0,NULL,NULL 49062,731570,1170024,NULL,NULL,NULL,0,NULL,NULL 49063,37510,1120202,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49064,210658,396125,Necromancer Yearling Nice Answer Enlightened Nice Answer Yearling Great Answer Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 49065,233175,430876,NULL,NULL,NULL,0,NULL,NULL 49066,353250,751627,Popular Question,NULL,NULL,0,NULL,NULL 49067,83273,7532,c# Nice Question Good Question Popular Question Notable Question Notable Question Announcer Nice Answer Popular Question Notable Question Popular Question Good Question Notable Question Notable Question Famous Question Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Question Good Answer Good Answer Nice Answer Enlightened Nice Answer Census Popular Question Notable Question Nice Answer Enlightened .net Popular Question Popular Question Caucus Famous Question Nice Answer Nice Answer Enlightened Nice Answer wav Notable Question Yearling Nice Answer Nice Question Nice Answer Good Question Great Question Nice Answer Nice Question Announcer Revival Popular Question Good Answer Yearling Popular Question Announcer Good Question Good Answer Nice Question Good Answer,NULL,NULL,0,NULL,NULL 49068,246557,536198,Popular Question Necromancer Popular Question Good Question Notable Question Organizer Popular Question Excavator Nice Answer Nice Question Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question Notable Question Popular Question Good Question Necromancer Notable Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Popular Question Yearling Famous Question Nice Answer Popular Question Revival Good Answer Notable Question Necromancer Popular Question Popular Question Popular Question Citizen Patrol Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 49069,298955,62124,Yearling Custodian Yearling Curious Yearling Popular Question,NULL,NULL,0,NULL,NULL 49070,1197157,1272022,NULL,NULL,NULL,0,NULL,NULL 49071,4687260,690139,Nice Answer Enlightened Yearling Notable Question Good Answer clojure Caucus Constituent Yearling Notable Question Good Answer Famous Question Yearling git,NULL,,0,, 49072,485945,690139,Nice Answer Enlightened Yearling Notable Question Good Answer clojure Caucus Constituent Yearling Notable Question Good Answer Famous Question Yearling git,NULL,NULL,0,NULL,NULL 49073,468068,1516170,Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 49074,109777,674239,NULL,NULL,NULL,0,NULL,NULL 49075,44387,279577,Yearling google-maps-api-3 Good Answer Yearling Custodian Guru Civic Duty Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 49076,1308789,921693,Teacher Popular Question,NULL,NULL,0,NULL,NULL 49077,36990,223172,Popular Question,NULL,NULL,0,NULL,NULL 49078,1442898,519664,Custodian Student,NULL,NULL,0,NULL,NULL 49079,1498457,519664,Custodian Student,NULL,NULL,0,NULL,NULL 49080,72274,343562,NULL,NULL,NULL,0,NULL,NULL 49081,609435,453747,Yearling Notable Question Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49082,389478,267987,Popular Question Good Question,NULL,NULL,0,NULL,NULL 49083,141293,1000334,NULL,NULL,NULL,0,NULL,NULL 49084,1956474,419571,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 49085,8718217,800282,NULL,NULL,NULL,0,NULL,NULL 49086,241392,800282,NULL,NULL,NULL,0,NULL,NULL 49087,1225205,513454,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49088,222368,513454,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49089,41404,76343,Yearling Good Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 49090,8973822,76343,Yearling Good Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 49091,63040,391128,NULL,NULL,NULL,0,NULL,NULL 49092,85527,417687,NULL,NULL,NULL,0,NULL,NULL 49093,12330,80410,Yearling Nice Question Popular Question Great Question Yearling Popular Question Nice Answer Enlightened Good Question Favorite Question Notable Question Self-Learner Good Question Necromancer Yearling Popular Question Popular Question Benefactor Famous Question Notable Question,NULL,NULL,1,Computed types in mypy python python mypy pAside The title of this questions is not ideal What trying to do could be achieved via computed types but also by other means ppI writing some code that validates and sometimes converts JSON data dynamically typed to static Python types Here are few functions ppre codedef from str Any gt str assert isinstance str return xdef from int Any gt int assert isinstance int return xdef from list Callable Any Any gt List assert isinstance list return for in code prepThese work great also like to be able to combine them to convert union types Ideally like this ppre codeunion from union from str from int json code prepThe problem is how to type the codefrom union code function My first approach was this ppre codedef from union fs Iterable Callable Any Any gt for in fs try return except AssertionError pass assert False code prepTechnically this is correct If we substitute codeUnion str int code for codeT code the above expression is correctly typed since codefrom str code by virtue of returning codestr code also returns codeUnion str int code any value of type codestr code is value of type codeUnion str int code However codemypy code doesn want to do this substitution ppre codetest fixtures python quicktype py 59 error Argument to from union has incompatible type List Callable Any object expected Iterable Callable Any lt nothing gt code prepIt seems to go right to codeobject code instead of inferring codeUnion str int code ppIdeally the type like to give to codefrom union code is something like ppre codedef from union fs Iterable Union Callable Any Callable Any Any gt Union code prepThat not supported in Python typings Another option would be to be able to specify function that can compute either the type of codefs code from the actual return type for specific invocation or the other way around Is anything like that possible Are there any other options to do this without having to resort to codecast code,NULL 49094,51164,66813,NULL,NULL,NULL,0,NULL,NULL 49095,744562,945101,NULL,NULL,NULL,0,NULL,NULL 49096,34677,1498622,NULL,NULL,NULL,0,NULL,NULL 49097,177268,221963,NULL,NULL,NULL,0,NULL,NULL 49098,16398,525322,NULL,NULL,NULL,0,NULL,NULL 49099,343479,1287690,Populist Yearling Necromancer Excavator Necromancer Nice Answer Nice Answer Nice Answer Enlightened node.js Yearling javascript Good Answer Census Custodian Nice Answer Enlightened Good Answer Yearling,NULL,pDepending on which browsers you have to support this can be done in number of ways The overwhelming majority of browsers in the wild support ECMAScript ES5 but be warned that many of the examples below use codeObject keys code which is not available in IE lt See the href http kangax github io compat table es5 rel noreferrer compatibility table ph1ECMAScript h1pIf you have to support older versions of IE then this is the option for you ppre codefor var key in obj if Object prototype hasOwnProperty call obj key var val obj key use val code prepThe nested codeif code makes sure that you don enumerate over properties in the prototype chain of the object which is the behaviour you almost certainly want You must use ppre codeObject prototype hasOwnProperty call obj key ok code preprather than ppre codeobj hasOwnProperty key bad code prepbecause ECMAScript allows you to create prototypeless objects with codeObject create null code and these objects will not have the codehasOwnProperty code method Naughty code might also produce objects which override the codehasOwnProperty code method ph1ECMAScript h1pYou can use these methods in any browser that supports ECMAScript and above These get values from an object and avoid enumerating over the prototype chain Where codeobj code is your object ppre codevar keys Object keys obj for var lt keys length var val obj keys use val code prepIf you want something little more compact or you want to be careful with functions in loops then codeArray prototype forEach code is your friend ppre codeObject keys obj forEach function key var val obj key use val code prepThe next method builds an array containing the values of an object This is convenient for looping over ppre codevar vals Object keys obj map function key return obj key use vals array code prepIf you want to make those using codeObject keys code safe against codenull code as codefor in code is then you can do codeObject keys obj code pp codeObject keys code returns emenumerable em properties For iterating over simple objects this is usually sufficient If you have something with non enumerable properties that you need to work with you may use codeObject getOwnPropertyNames code in place of codeObject keys code ph1ECMAScript 2015 ES6 h1pArrays are easier to iterate with ECMAScript 2015 You can use this to your advantage when working with values one by–one in loop ppre codefor const key of Object keys obj const val obj key use val code prepUsing ECMAScript 2015 fat arrow functions mapping the object to an array of values becomes one liner ppre codeconst vals Object keys obj map key gt obj key use vals array code prepECMAScript 2015 introduces codeSymbol code instances of which may be used as property names To get the symbols of an object to enumerate over use codeObject getOwnPropertySymbols code this function is why codeSymbol code emcan em be used to make private properties The new codeReflect code API from ECMAScript 2015 provides codeReflect ownKeys code which returns list of property names including non enumerable ones and symbols ph2Array comprehensions do not attempt to use h2pArray comprehensions were strongremoved strong from ECMAScript before publication Prior to their removal solution would have looked like ppre codeconst vals for key of Object keys obj obj key use vals array code preh1ECMAScript 2017 h1pECMAScript 2016 adds features which do not impact this subject The ECMAScript 2017 specification adds codeObject values code and codeObject entries code Both return arrays which will be surprising to some given the analogy with codeArray entries code codeObject values code can be used as is or with codefor of code loop ppre codeconst values Object values obj use values array or for const val of Object values obj use val code prepIf you want to use both the key and the value then codeObject entries code is for you It produces an array filled with code key value code pairs You can use this as is or note also the ECMAScript 2015 destructuring assignment in codefor of code loop ppre codefor const key val of Object entries obj use key and val code preh1 codeObject values code shim h1pFinally as noted in the comments and by teh senaus in another answer it may be worth using one of these as shim Don worry the following does not change the prototype it just adds method to codeObject code which is much less dangerous Using fat arrow functions this can be done in one line too ppre codeObject values obj gt Object keys obj map key gt obj key code prepwhich you can now use like ppre code one two three var values Object values one two three code prepIf you want to avoid shimming when native codeObject values code exists then you can do ppre codeObject values Object values obj gt Object keys obj map key gt obj key code preh1Finally h1pBe aware of the browsers versions you need to support The above are correct where the methods or language features are implemented For example support for ECMAScript 2015 was switched off by default in V8 until recently which powered browsers such as Chrome Features from ECMAScript 2015 should be be avoided until the browsers you intend to support implement the features that you need If you use href https babeljs io rel noreferrer babel to compile your code to ECMAScript then you have access to all the features in this answer It depends If you prefer consistency then you might want to always replace the method ll update to make it clearer though Thanks pDepending on which browsers you have to support this can be done in number of ways The overwhelming majority of browsers in the wild support ECMAScript ES5 but be warned that many of the examples below use codeObject keys code which is not available in IE lt See the href http kangax github io compat table es5 rel noreferrer compatibility table ph1ECMAScript h1pIf you have to support older versions of IE then this is the option for you ppre codefor var key in obj if Object prototype hasOwnProperty call obj key var val obj key use val code prepThe nested codeif code makes sure that you don enumerate over properties in the prototype chain of the object which is the behaviour you almost certainly want You must use ppre codeObject prototype hasOwnProperty call obj key ok code preprather than ppre codeobj hasOwnProperty key bad code prepbecause ECMAScript allows you to create prototypeless objects with codeObject create null code and these objects will not have the codehasOwnProperty code method Naughty code might also produce objects which override the codehasOwnProperty code method ph1ECMAScript h1pYou can use these methods in any browser that supports ECMAScript and above These get values from an object and avoid enumerating over the prototype chain Where codeobj code is your object ppre codevar keys Object keys obj for var lt keys length var val obj keys use val code prepIf you want something little more compact or you want to be careful with functions in loops then codeArray prototype forEach code is your friend ppre codeObject keys obj forEach function key var val obj key use val code prepThe next method builds an array containing the values of an object This is convenient for looping over ppre codevar vals Object keys obj map function key return obj key use vals array code prepIf you want to make those using codeObject keys code safe against codenull code as codefor in code is then you can do codeObject keys obj code pp codeObject keys code returns emenumerable em properties For iterating over simple objects this is usually sufficient If you have something with non enumerable properties that you need to work with you may use codeObject getOwnPropertyNames code in place of codeObject keys code ph1ECMAScript 2015 ES6 h1pArrays are easier to iterate with ECMAScript 2015 You can use this to your advantage when working with values one by–one in loop ppre codefor const key of Object keys obj const val obj key use val code prepUsing ECMAScript 2015 fat arrow functions mapping the object to an array of values becomes one liner ppre codeconst vals Object keys obj map key gt obj key use vals array code prepECMAScript 2015 introduces codeSymbol code instances of which may be used as property names To get the symbols of an object to enumerate over use codeObject getOwnPropertySymbols code this function is why codeSymbol code emcan em be used to make private properties The new codeReflect code API from ECMAScript 2015 provides codeReflect ownKeys code which returns list of property names including non enumerable ones and symbols ph2Array comprehensions do not attempt to use h2pArray comprehensions were strongremoved strong from ECMAScript before publication Prior to their removal solution would have looked like ppre codeconst vals for key of Object keys obj obj key use vals array code preh1ECMAScript 2017 h1pECMAScript 2016 adds features which do not impact this subject The ECMAScript 2017 specification adds codeObject values code and codeObject entries code Both return arrays which will be surprising to some given the analogy with codeArray entries code codeObject values code can be used as is or with codefor of code loop ppre codeconst values Object values obj use values array or for const val of Object values obj use val code prepIf you want to use both the key and the value then codeObject entries code is for you It produces an array filled with code key value code pairs You can use this as is or note also the ECMAScript 2015 destructuring assignment in codefor of code loop ppre codefor const key val of Object entries obj use key and val code preh1 codeObject values code shim h1pFinally as noted in the comments and by teh senaus in another answer it may be worth using one of these as shim Don worry the following does not change the prototype it just adds method to codeObject code which is much less dangerous Using fat arrow functions this can be done in one line too ppre codeObject values obj gt Object keys obj map key gt obj key code prepwhich you can now use like ppre code one two three var values Object values one two three code prepIf you want to avoid shimming when native codeObject values code exists then you can do ppre codeObject values Object values obj gt Object keys obj map key gt obj key code preh1Finally h1pBe aware of the browsers versions you need to support The above are correct where the methods or language features are implemented For example support for ECMAScript 2015 was switched off by default in V8 until recently which powered browsers such as Chrome Features from ECMAScript 2015 should be be avoided until the browsers you intend to support implement the features that you need If you use href https babeljs io rel noreferrer babel to compile your code to ECMAScript then you have access to all the features in this answer in principle you re right although my understanding is that none of the major JS engines do it in JS opting to use underlying access to their implementations of Object to collect keys few non scientific tests show that filtered for in performs consistently worse than using Object keys and iterating over the result Of course it always worth checking the perf of both when coding hot path pDepending on which browsers you have to support this can be done in number of ways The overwhelming majority of browsers in the wild support ECMAScript ES5 but be warned that many of the examples below use codeObject keys code which is not available in IE lt See the href http kangax github io compat table es5 rel noreferrer compatibility table ph1ECMAScript h1pIf you have to support older versions of IE then this is the option for you ppre codefor var key in obj if Object prototype hasOwnProperty call obj key var val obj key use val code prepThe nested codeif code makes sure that you don enumerate over properties in the prototype chain of the object which is the behaviour you almost certainly want You must use ppre codeObject prototype hasOwnProperty call obj key ok code preprather than ppre codeobj hasOwnProperty key bad code prepbecause ECMAScript allows you to create prototypeless objects with codeObject create null code and these objects will not have the codehasOwnProperty code method Naughty code might also produce objects which override the codehasOwnProperty code method ph1ECMAScript h1pYou can use these methods in any browser that supports ECMAScript and above These get values from an object and avoid enumerating over the prototype chain Where codeobj code is your object ppre codevar keys Object keys obj for var lt keys length var val obj keys use val code prepIf you want something little more compact or you want to be careful with functions in loops then codeArray prototype forEach code is your friend ppre codeObject keys obj forEach function key var val obj key use val code prepThe next method builds an array containing the values of an object This is convenient for looping over ppre codevar vals Object keys obj map function key return obj key use vals array code prepIf you want to make those using codeObject keys code safe against codenull code as codefor in code is then you can do codeObject keys obj code pp codeObject keys code returns emenumerable em properties For iterating over simple objects this is usually sufficient If you have something with non enumerable properties that you need to work with you may use codeObject getOwnPropertyNames code in place of codeObject keys code ph1ECMAScript 2015 ES6 h1pArrays are easier to iterate with ECMAScript 2015 You can use this to your advantage when working with values one by–one in loop ppre codefor const key of Object keys obj const val obj key use val code prepUsing ECMAScript 2015 fat arrow functions mapping the object to an array of values becomes one liner ppre codeconst vals Object keys obj map key gt obj key use vals array code prepECMAScript 2015 introduces codeSymbol code instances of which may be used as property names To get the symbols of an object to enumerate over use codeObject getOwnPropertySymbols code this function is why codeSymbol code emcan em be used to make private properties The new codeReflect code API from ECMAScript 2015 provides codeReflect ownKeys code which returns list of property names including non enumerable ones and symbols ph2Array comprehensions do not attempt to use h2pArray comprehensions were strongremoved strong from ECMAScript before publication Prior to their removal solution would have looked like ppre codeconst vals for key of Object keys obj obj key use vals array code preh1ECMAScript 2017 h1pECMAScript 2016 adds features which do not impact this subject The ECMAScript 2017 specification adds codeObject values code and codeObject entries code Both return arrays which will be surprising to some given the analogy with codeArray entries code codeObject values code can be used as is or with codefor of code loop ppre codeconst values Object values obj use values array or for const val of Object values obj use val code prepIf you want to use both the key and the value then codeObject entries code is for you It produces an array filled with code key value code pairs You can use this as is or note also the ECMAScript 2015 destructuring assignment in codefor of code loop ppre codefor const key val of Object entries obj use key and val code preh1 codeObject values code shim h1pFinally as noted in the comments and by teh senaus in another answer it may be worth using one of these as shim Don worry the following does not change the prototype it just adds method to codeObject code which is much less dangerous Using fat arrow functions this can be done in one line too ppre codeObject values obj gt Object keys obj map key gt obj key code prepwhich you can now use like ppre code one two three var values Object values one two three code prepIf you want to avoid shimming when native codeObject values code exists then you can do ppre codeObject values Object values obj gt Object keys obj map key gt obj key code preh1Finally h1pBe aware of the browsers versions you need to support The above are correct where the methods or language features are implemented For example support for ECMAScript 2015 was switched off by default in V8 until recently which powered browsers such as Chrome Features from ECMAScript 2015 should be be avoided until the browsers you intend to support implement the features that you need If you use href https babeljs io rel noreferrer babel to compile your code to ECMAScript then you have access to all the features in this answer JS does in fact implement iterators generators but since Object keys predates these it always returns an array The question is really whether it is slower to collect keys and then iterate over them or to iterate and filter over uncollected keys It seems like the overhead of collecting them is relatively small compared with looping over entries in JS land,0,NULL,NULL 49100,319375,225855,Yearling Notable Question Excavator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49101,372168,1359212,Nice Answer,NULL,NULL,0,NULL,NULL 49102,4368556,780109,Famous Question Promoter Benefactor Excavator Custodian Curious Census,NULL,NULL,0,NULL,NULL 49103,82301,780109,Famous Question Promoter Benefactor Excavator Custodian Curious Census,NULL,NULL,0,NULL,NULL 49104,831928,369930,Popular Question Popular Question Nice Question Notable Question Nice Question Nice Answer Notable Question Yearling Popular Question Civic Duty Nice Question Custodian Organizer Notable Question Good Question Nice Answer Caucus Famous Question Fanatic Nice Question Good Question Popular Question Notable Question Custodian Custodian Excavator Informed Custodian Custodian Famous Question Yearling Popular Question Popular Question Nice Question Necromancer Nice Question Necromancer Nice Question Famous Question Popular Question Popular Question Yearling Necromancer Notable Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 49105,1130,37204,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49106,320906,642716,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49107,15343,272371,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49108,152836,39411,NULL,NULL,NULL,0,NULL,NULL 49109,398359,1350867,Citizen Patrol Necromancer Yearling Critic Revival Caucus Revival Commentator Yearling Necromancer Necromancer Caucus Custodian Necromancer Yearling Necromancer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 49110,393549,921150,NULL,NULL,NULL,0,NULL,NULL 49111,167169,878112,Yearling,NULL,NULL,0,NULL,NULL 49112,66808,1075580,Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49113,892595,580382,Enthusiast Commentator Famous Question Informed Autobiographer Promoter Benefactor Popular Question Critic Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 49114,257240,853392,Curious Self-Learner Necromancer Popular Question Necromancer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 49115,32602,76238,NULL,NULL,NULL,0,NULL,NULL 49116,591627,1224475,NULL,NULL,NULL,0,NULL,NULL 49117,24871,28447,Yearling,NULL,NULL,0,NULL,NULL 49118,85025,441600,NULL,NULL,NULL,0,NULL,NULL 49119,2274,184165,Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 49120,126794,235109,Revival Popular Question Yearling Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 49121,91781,1042441,NULL,NULL,NULL,0,NULL,NULL 49122,20040,502245,Supporter,NULL,NULL,0,NULL,NULL 49123,434961,81434,Yearling Custodian,NULL,NULL,0,NULL,NULL 49124,37181,920119,Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49125,67851,500790,NULL,NULL,NULL,0,NULL,NULL 49126,6374,814521,NULL,NULL,NULL,0,NULL,NULL 49127,219390,343459,NULL,NULL,NULL,0,NULL,NULL 49128,78566,320524,NULL,NULL,NULL,0,NULL,NULL 49129,642172,965770,Yearling,NULL,NULL,0,NULL,NULL 49130,410758,789613,Supporter,NULL,NULL,0,NULL,NULL 49131,802828,648507,NULL,NULL,NULL,0,NULL,NULL 49132,15671,767788,NULL,NULL,NULL,0,NULL,NULL 49133,207593,1172128,NULL,NULL,NULL,0,NULL,NULL 49134,43011,428442,Great Answer Good Answer Nice Answer Yearling Good Answer Nice Answer Good Answer Announcer Nice Answer Yearling Self-Learner Notable Question objective-c Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 49135,673302,215621,NULL,NULL,NULL,0,NULL,NULL 49136,41998,910076,NULL,NULL,NULL,0,NULL,NULL 49137,348110,1272421,Notable Question Nice Question Notable Question Curious,NULL,NULL,0,NULL,NULL 49138,16605,138033,Good Answer Notable Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Guru Self-Learner Good Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49139,204132,776083,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49140,20532,502528,NULL,NULL,NULL,0,NULL,NULL 49141,2402448,502528,NULL,NULL,NULL,0,NULL,NULL 49142,561263,12469,Good Question Nice Answer Good Answer Yearling Notable Question Popular Question Yearling Yearling Guru Guru,NULL,NULL,0,NULL,NULL 49143,168656,1139184,NULL,NULL,NULL,0,NULL,NULL 49144,110704,1171988,NULL,NULL,NULL,0,NULL,NULL 49145,899924,361629,Yearling Popular Question Census Tumbleweed Caucus Constituent Notable Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 49146,99695,107726,NULL,NULL,NULL,0,NULL,NULL 49147,97900,665825,Nice Answer Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49148,397931,654312,Student Popular Question,NULL,NULL,0,NULL,NULL 49149,129954,308120,Yearling Necromancer Census,NULL,NULL,0,NULL,NULL 49150,365552,570293,Popular Question Nice Answer Enthusiast Nice Question Yearling Investor Organizer Caucus Altruist Tag Editor Popular Question Popular Question Nice Question Notable Question Notable Question Inquisitive Notable Question Yearling Popular Question,NULL,pytest assert introspection in helper function python pytest codepytest code does wonderful codeassert introspection code so it is easy to find differences in strings especially if the difference is in white space Now use slightly complicated test helper that reuse in many testcases The helper has its own module too and for that module want to add assert introspection pp stronghelpers py strong ppre code def my helper assert abcy abcx code prep strongtest mycase py strong ppre codefrom helpers import my helperdef test assert in tc assert abcy abcx def test assert in helper my helper code preptest report shows helpful information for asserts within tests but codenot for asserts within the helper code ppre code FAILURES test assert in tc def test assert in tc gt assert abcy abcx assert abcy abcx abcyE abcxE tests test pytest assert py AssertionError test assert in helper def test assert in helper gt my helper tests test pytest assert py 13 def my helper gt assert abcy abcx AssertionErrortests helpers py 258 AssertionError failed in 24 seconds code prepAs workaround output additional info with the assert but the output still looks weird and makes the code blow up Any ideas how can activate pytest assert introspection within the helper file ppI found href https stackoverflow com questions 38134430 how to let pytest rewrite assert in non test modules different but related question unfortunately could not get the solution working so far ppre codeimport pytestfrom helpers import my helperpytest register assert rewrite helpers my helper code pre had to put the register assert rewrite into the init py file now it works probably best to delete the question right,1,pytest assert introspection in helper function python pytest codepytest code does wonderful codeassert introspection code so it is easy to find differences in strings especially if the difference is in white space Now use slightly complicated test helper that reuse in many testcases The helper has its own module too and for that module want to add assert introspection pp stronghelpers py strong ppre code def my helper assert abcy abcx code prep strongtest mycase py strong ppre codefrom helpers import my helperdef test assert in tc assert abcy abcx def test assert in helper my helper code preptest report shows helpful information for asserts within tests but codenot for asserts within the helper code ppre code FAILURES test assert in tc def test assert in tc gt assert abcy abcx assert abcy abcx abcyE abcxE tests test pytest assert py AssertionError test assert in helper def test assert in helper gt my helper tests test pytest assert py 13 def my helper gt assert abcy abcx AssertionErrortests helpers py 258 AssertionError failed in 24 seconds code prepAs workaround output additional info with the assert but the output still looks weird and makes the code blow up Any ideas how can activate pytest assert introspection within the helper file ppI found href https stackoverflow com questions 38134430 how to let pytest rewrite assert in non test modules different but related question unfortunately could not get the solution working so far ppre codeimport pytestfrom helpers import my helperpytest register assert rewrite helpers my helper code pre,NULL 49151,10043,186379,Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 49152,1765000,474253,Notable Question,NULL,NULL,0,NULL,NULL 49153,164390,203161,Critic Curious Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 49154,606086,272876,Nice Question Peer Pressure Popular Question Popular Question Editor Excavator Tumbleweed,NULL,NULL,0,NULL,NULL 49155,182722,872063,NULL,NULL,NULL,0,NULL,NULL 49156,70317,747546,NULL,NULL,NULL,0,NULL,NULL 49157,631325,545537,Notable Question Civic Duty Nice Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Revival Popular Question Famous Question Custodian Custodian Popular Question Yearling Citizen Patrol Good Answer Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49158,112510,21473,Self-Learner Popular Question Yearling Popular Question Nice Answer Stellar Question Notable Question Nice Question Famous Question Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 49159,45234,195633,NULL,NULL,NULL,0,NULL,NULL 49160,747986,545586,NULL,NULL,NULL,0,NULL,NULL 49161,1416412,1200546,NULL,NULL,NULL,0,NULL,NULL 49162,363713,120855,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 49163,369909,999762,Revival Revival Revival,NULL,NULL,0,NULL,NULL 49164,69662,64120,Notable Question Yearling Nice Question Notable Question Necromancer Census Necromancer Yearling Nice Answer Popular Question Popular Question Census Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49165,607254,1177103,NULL,NULL,NULL,0,NULL,NULL 49166,79936,144006,Popular Question Good Answer Popular Question Nice Question Notable Question Yearling Nice Question Popular Question Great Question Popular Question Yearling Good Answer Nice Answer Stellar Question Yearling,NULL,NULL,0,NULL,NULL 49167,115763,359425,NULL,NULL,NULL,0,NULL,NULL 49168,432817,1242342,Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 49169,91131,53354,Good Answer Yearling Caucus Census Famous Question,NULL,NULL,0,NULL,NULL 49170,1333481,122444,NULL,NULL,NULL,0,NULL,NULL 49171,17906,31377,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 49172,196581,331437,Nice Answer Great Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 49173,300811,193503,NULL,NULL,NULL,0,NULL,NULL 49174,1514092,752890,Guru Yearling Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Caucus Nice Answer Documentation User Tumbleweed Guru Nice Answer Enlightened Good Answer Caucus Guru Yearling Nice Answer Enlightened Good Answer Nice Question,NULL,NULL,0,NULL,NULL 49175,229825,933173,Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 49176,1099262,117646,NULL,NULL,NULL,0,NULL,NULL 49177,3729503,264230,Yearling Necromancer Good Question Great Answer ruby-on-rails Good Question Good Question Yearling Nice Answer Yearling Necromancer Necromancer Popular Question,NULL,Syntax highlighting markdown code blocks in Jekyll without using liquid tags syntax highlighting markdown jekyll redcarpet pIt seems like syntax highlighting in Jekyll is limited to using liquid tags and pygments like so ppre code highlight bash cd endhighlight code prepBut ve imported my existing blog from wordpress and it was written in markdown using markdown code blocks and don want to have to go through each post and fix the code blocks Also want to keep my posts in pure markdown format in case ever need to switch blogging platforms again ppI switched my Jekyll parser to coderedcarpet code with the hope that could use this markdown syntax ppre code bashcd code prepBut it doesn seem to work It just wraps it in normal codecode code block Any ideas that question was created Dec 14 at 20 14 This question was created Dec 27 11 at 19 21 almost years prior,0,NULL,NULL 49178,2307,264230,Yearling Necromancer Good Question Great Answer ruby-on-rails Good Question Good Question Yearling Nice Answer Yearling Necromancer Necromancer Popular Question,NULL,Syntax highlighting markdown code blocks in Jekyll without using liquid tags syntax highlighting markdown jekyll redcarpet pIt seems like syntax highlighting in Jekyll is limited to using liquid tags and pygments like so ppre code highlight bash cd endhighlight code prepBut ve imported my existing blog from wordpress and it was written in markdown using markdown code blocks and don want to have to go through each post and fix the code blocks Also want to keep my posts in pure markdown format in case ever need to switch blogging platforms again ppI switched my Jekyll parser to coderedcarpet code with the hope that could use this markdown syntax ppre code bashcd code prepBut it doesn seem to work It just wraps it in normal codecode code block Any ideas that question was created Dec 14 at 20 14 This question was created Dec 27 11 at 19 21 almost years prior,0,NULL,NULL 49179,338850,557308,NULL,NULL,NULL,0,NULL,NULL 49180,626492,11815,Yearling Yearling Great Answer Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 49181,69285,23339,Popular Question Nice Answer Good Answer c++ Notable Question Yearling Good Question Notable Question Popular Question Famous Question Popular Question Notable Question Famous Question Famous Question Yearling Famous Question Famous Question Great Question Popular Question Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 49182,1399395,1330277,NULL,NULL,NULL,0,NULL,NULL 49183,335569,535425,Yearling Yearling,NULL,NULL,0,NULL,NULL 49184,553159,256618,Nice Answer Yearling Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Taxonomist Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened repository Caucus Nice Answer Enlightened Good Answer Good Answer ivy Nice Answer Enlightened Yearling Nice Answer nexus Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer xml Nice Answer Caucus Constituent Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Answer Disciplined maven artifactory Notable Question Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer continuous-integration,NULL,pThe short answer is that you have to write your own logic to do this ppI would expect this kind of feature to emerge from the following projects built on top of docker and designed to support applications in production pulli href https flynn io rel noreferrer flynn lili href http deis io rel noreferrer deis lili href http coreos com rel noreferrer coreos lili href http mesosphere io 2013 09 26 docker on mesos rel noreferrer Mesos li ulh1Update h1pAnother related project recently discovered pulli href https github com toscanini maestro rel noreferrer maestro li ulh1Update h1pThe latest release Openstack contains support for managing Docker containers pulli href https wiki openstack org wiki Docker rel noreferrer Docker Openstack lili href http www sebastien han fr blog 2013 10 31 build paas zone within your openstack cloud rel noreferrer Paas zone within OpenStack li ulh1Update h1pSystem for managing Docker instances pulli href http shipyard project com rel noreferrer Shipyard li ulpAnd presentation on how to use tools like href http www packer io rel noreferrer Packer Docker and href http www serfdom io rel noreferrer Serf to deliver an immutable server infrastructure pattern pulli href http www infoq com news 2013 12 futureops rel noreferrer FutureOps with Immutable Infrastructure lili href http www slideshare net profyclub ru mitchell hashimoto hashicorp rel noreferrer Slides li ulh1Update h1pA neat article on how to wire together docker containers using href http www serfdom io rel noreferrer serf pulli href http www centurylinklabs com decentralizing docker how to use serf with docker rel noreferrer Decentralizing Docker How to use serf with Docker li ulh1Update h1pRun Docker on href http mesos apache org rel noreferrer Mesos using the href https github com mesosphere marathon rel noreferrer Marathon framework pp href https mesosphere io learn run docker on mesosphere cluster rel noreferrer Mesosphere Docker Developer Tutorial ph1Update h1pRun Docker on href http www tsuru io rel noreferrer Tsuru as it supports href https github com tsuru docker cluster rel noreferrer docker cluster and href http docs tsuru io en latest provisioners docker schedulers html rel noreferrer segregated scheduler deploy pulli href http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers rel noreferrer http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers li ulh1Update h1pDocker based environments orchestration pp href https github com signalfuse maestro ng rel noreferrer maestro ng ph1Update h1p href http decking io rel noreferrer decking io ph1Update h1pGoogle href https github com GoogleCloudPlatform kubernetes rel noreferrer kubernetes ph1Update 10 h1pRedhat have refactored their openshift PAAS to integrate Docker pulli href http www projectatomic io rel noreferrer Project Atomic lili href http openshift github io geard rel noreferrer Geard li ulh1Update 11 h1pA Docker NodeJS lib wrapping the Docker command line and managing it from json file pulli href https github com iorga group docker cmd rel noreferrer docker cmd li ulh1Update 12 h1pAmazon new href https aws amazon com ecs details rel noreferrer container service enables scaling in the cluster ph1Update 13 h1pStrictly speaking href https github com ClusterHQ flocker rel noreferrer Flocker does not scale applications but it is designed to fufil related function of making stateful containers running databases services portable across multiple docker hosts pp href https clusterhq com rel noreferrer https clusterhq com ph1Update 14 h1pA project to create portable templates that describe Docker applications pp href http panamax io rel noreferrer http panamax io ph1Update 15 h1pThe Docker project is now addressing orchestration natively See href https blog docker com 2015 02 orchestrating docker with machine swarm and compose rel noreferrer announcement pulli href https docs docker com machine rel noreferrer Docker machine lili href https docs docker com swarm rel noreferrer Docker swarm lili href https docs docker com compose rel noreferrer Docker compose li ulh1Update 16 h1p href https github com spotify helios rel noreferrer Spotify Helios ppSee also pulli href https blog docker com tag helios rel noreferrer https blog docker com tag helios li ulh1Update 17 h1pThe Openstack project now has new container as service project called Magnum pulli href https wiki openstack org wiki Magnum rel noreferrer https wiki openstack org wiki Magnum li ulpShows lot of promise enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm ph1Update 18 h1pRancher is project that is maturing rapidly pp href http rancher com rel noreferrer http rancher com ppNice UI and strong focus on hyrbrid Docker infrastructures ph1Update 19 h1pThe href http lattice cf rel noreferrer Lattice project is an offshoot of Cloud Foundry for managing container clusters ph1Update 20 h1pDocker recently bought Tutum pp href https www docker com tutum rel noreferrer https www docker com tutum ph1Update 21 h1pPackage manager for applications deployed on href http kubernetes io rel noreferrer Kubernetes pp href http helm sh rel noreferrer http helm sh ph1Update 22 h1pVamp is an open source and self hosted platform for managing micro service oriented architectures that rely on container technology pp href http vamp io rel noreferrer http vamp io ph1Update 23 h1pA Distributed Highly Available Datacenter Aware Scheduler pulli href https www nomadproject io rel noreferrer https www nomadproject io li ulpFrom the guys that gave us Vagrant and other powerful tools ph1Update 24 h1pContainer hosting solution for AWS open source and based on href http kubernetes io rel noreferrer Kubernetes pp href https supergiant io rel noreferrer https supergiant io ph1Update 25 h1pApache Mesos based container hosted located in Germany pp href https sloppy io features features rel noreferrer https sloppy io features features ppAnd Docker Inc also provide container hosting service called Docker cloud pp href https cloud docker com rel noreferrer https cloud docker com ph1Update 26 h1p href https jelastic com blog docker swarm auto clustering and scaling with paas rel noreferrer Jelastic is hosted PAAS service that scales containers automatically Update added thank you pThe short answer is that you have to write your own logic to do this ppI would expect this kind of feature to emerge from the following projects built on top of docker and designed to support applications in production pulli href https flynn io rel noreferrer flynn lili href http deis io rel noreferrer deis lili href http coreos com rel noreferrer coreos lili href http mesosphere io 2013 09 26 docker on mesos rel noreferrer Mesos li ulh1Update h1pAnother related project recently discovered pulli href https github com toscanini maestro rel noreferrer maestro li ulh1Update h1pThe latest release Openstack contains support for managing Docker containers pulli href https wiki openstack org wiki Docker rel noreferrer Docker Openstack lili href http www sebastien han fr blog 2013 10 31 build paas zone within your openstack cloud rel noreferrer Paas zone within OpenStack li ulh1Update h1pSystem for managing Docker instances pulli href http shipyard project com rel noreferrer Shipyard li ulpAnd presentation on how to use tools like href http www packer io rel noreferrer Packer Docker and href http www serfdom io rel noreferrer Serf to deliver an immutable server infrastructure pattern pulli href http www infoq com news 2013 12 futureops rel noreferrer FutureOps with Immutable Infrastructure lili href http www slideshare net profyclub ru mitchell hashimoto hashicorp rel noreferrer Slides li ulh1Update h1pA neat article on how to wire together docker containers using href http www serfdom io rel noreferrer serf pulli href http www centurylinklabs com decentralizing docker how to use serf with docker rel noreferrer Decentralizing Docker How to use serf with Docker li ulh1Update h1pRun Docker on href http mesos apache org rel noreferrer Mesos using the href https github com mesosphere marathon rel noreferrer Marathon framework pp href https mesosphere io learn run docker on mesosphere cluster rel noreferrer Mesosphere Docker Developer Tutorial ph1Update h1pRun Docker on href http www tsuru io rel noreferrer Tsuru as it supports href https github com tsuru docker cluster rel noreferrer docker cluster and href http docs tsuru io en latest provisioners docker schedulers html rel noreferrer segregated scheduler deploy pulli href http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers rel noreferrer http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers li ulh1Update h1pDocker based environments orchestration pp href https github com signalfuse maestro ng rel noreferrer maestro ng ph1Update h1p href http decking io rel noreferrer decking io ph1Update h1pGoogle href https github com GoogleCloudPlatform kubernetes rel noreferrer kubernetes ph1Update 10 h1pRedhat have refactored their openshift PAAS to integrate Docker pulli href http www projectatomic io rel noreferrer Project Atomic lili href http openshift github io geard rel noreferrer Geard li ulh1Update 11 h1pA Docker NodeJS lib wrapping the Docker command line and managing it from json file pulli href https github com iorga group docker cmd rel noreferrer docker cmd li ulh1Update 12 h1pAmazon new href https aws amazon com ecs details rel noreferrer container service enables scaling in the cluster ph1Update 13 h1pStrictly speaking href https github com ClusterHQ flocker rel noreferrer Flocker does not scale applications but it is designed to fufil related function of making stateful containers running databases services portable across multiple docker hosts pp href https clusterhq com rel noreferrer https clusterhq com ph1Update 14 h1pA project to create portable templates that describe Docker applications pp href http panamax io rel noreferrer http panamax io ph1Update 15 h1pThe Docker project is now addressing orchestration natively See href https blog docker com 2015 02 orchestrating docker with machine swarm and compose rel noreferrer announcement pulli href https docs docker com machine rel noreferrer Docker machine lili href https docs docker com swarm rel noreferrer Docker swarm lili href https docs docker com compose rel noreferrer Docker compose li ulh1Update 16 h1p href https github com spotify helios rel noreferrer Spotify Helios ppSee also pulli href https blog docker com tag helios rel noreferrer https blog docker com tag helios li ulh1Update 17 h1pThe Openstack project now has new container as service project called Magnum pulli href https wiki openstack org wiki Magnum rel noreferrer https wiki openstack org wiki Magnum li ulpShows lot of promise enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm ph1Update 18 h1pRancher is project that is maturing rapidly pp href http rancher com rel noreferrer http rancher com ppNice UI and strong focus on hyrbrid Docker infrastructures ph1Update 19 h1pThe href http lattice cf rel noreferrer Lattice project is an offshoot of Cloud Foundry for managing container clusters ph1Update 20 h1pDocker recently bought Tutum pp href https www docker com tutum rel noreferrer https www docker com tutum ph1Update 21 h1pPackage manager for applications deployed on href http kubernetes io rel noreferrer Kubernetes pp href http helm sh rel noreferrer http helm sh ph1Update 22 h1pVamp is an open source and self hosted platform for managing micro service oriented architectures that rely on container technology pp href http vamp io rel noreferrer http vamp io ph1Update 23 h1pA Distributed Highly Available Datacenter Aware Scheduler pulli href https www nomadproject io rel noreferrer https www nomadproject io li ulpFrom the guys that gave us Vagrant and other powerful tools ph1Update 24 h1pContainer hosting solution for AWS open source and based on href http kubernetes io rel noreferrer Kubernetes pp href https supergiant io rel noreferrer https supergiant io ph1Update 25 h1pApache Mesos based container hosted located in Germany pp href https sloppy io features features rel noreferrer https sloppy io features features ppAnd Docker Inc also provide container hosting service called Docker cloud pp href https cloud docker com rel noreferrer https cloud docker com ph1Update 26 h1p href https jelastic com blog docker swarm auto clustering and scaling with paas rel noreferrer Jelastic is hosted PAAS service that scales containers automatically Thanks update 25 made pThe short answer is that you have to write your own logic to do this ppI would expect this kind of feature to emerge from the following projects built on top of docker and designed to support applications in production pulli href https flynn io rel noreferrer flynn lili href http deis io rel noreferrer deis lili href http coreos com rel noreferrer coreos lili href http mesosphere io 2013 09 26 docker on mesos rel noreferrer Mesos li ulh1Update h1pAnother related project recently discovered pulli href https github com toscanini maestro rel noreferrer maestro li ulh1Update h1pThe latest release Openstack contains support for managing Docker containers pulli href https wiki openstack org wiki Docker rel noreferrer Docker Openstack lili href http www sebastien han fr blog 2013 10 31 build paas zone within your openstack cloud rel noreferrer Paas zone within OpenStack li ulh1Update h1pSystem for managing Docker instances pulli href http shipyard project com rel noreferrer Shipyard li ulpAnd presentation on how to use tools like href http www packer io rel noreferrer Packer Docker and href http www serfdom io rel noreferrer Serf to deliver an immutable server infrastructure pattern pulli href http www infoq com news 2013 12 futureops rel noreferrer FutureOps with Immutable Infrastructure lili href http www slideshare net profyclub ru mitchell hashimoto hashicorp rel noreferrer Slides li ulh1Update h1pA neat article on how to wire together docker containers using href http www serfdom io rel noreferrer serf pulli href http www centurylinklabs com decentralizing docker how to use serf with docker rel noreferrer Decentralizing Docker How to use serf with Docker li ulh1Update h1pRun Docker on href http mesos apache org rel noreferrer Mesos using the href https github com mesosphere marathon rel noreferrer Marathon framework pp href https mesosphere io learn run docker on mesosphere cluster rel noreferrer Mesosphere Docker Developer Tutorial ph1Update h1pRun Docker on href http www tsuru io rel noreferrer Tsuru as it supports href https github com tsuru docker cluster rel noreferrer docker cluster and href http docs tsuru io en latest provisioners docker schedulers html rel noreferrer segregated scheduler deploy pulli href http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers rel noreferrer http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers li ulh1Update h1pDocker based environments orchestration pp href https github com signalfuse maestro ng rel noreferrer maestro ng ph1Update h1p href http decking io rel noreferrer decking io ph1Update h1pGoogle href https github com GoogleCloudPlatform kubernetes rel noreferrer kubernetes ph1Update 10 h1pRedhat have refactored their openshift PAAS to integrate Docker pulli href http www projectatomic io rel noreferrer Project Atomic lili href http openshift github io geard rel noreferrer Geard li ulh1Update 11 h1pA Docker NodeJS lib wrapping the Docker command line and managing it from json file pulli href https github com iorga group docker cmd rel noreferrer docker cmd li ulh1Update 12 h1pAmazon new href https aws amazon com ecs details rel noreferrer container service enables scaling in the cluster ph1Update 13 h1pStrictly speaking href https github com ClusterHQ flocker rel noreferrer Flocker does not scale applications but it is designed to fufil related function of making stateful containers running databases services portable across multiple docker hosts pp href https clusterhq com rel noreferrer https clusterhq com ph1Update 14 h1pA project to create portable templates that describe Docker applications pp href http panamax io rel noreferrer http panamax io ph1Update 15 h1pThe Docker project is now addressing orchestration natively See href https blog docker com 2015 02 orchestrating docker with machine swarm and compose rel noreferrer announcement pulli href https docs docker com machine rel noreferrer Docker machine lili href https docs docker com swarm rel noreferrer Docker swarm lili href https docs docker com compose rel noreferrer Docker compose li ulh1Update 16 h1p href https github com spotify helios rel noreferrer Spotify Helios ppSee also pulli href https blog docker com tag helios rel noreferrer https blog docker com tag helios li ulh1Update 17 h1pThe Openstack project now has new container as service project called Magnum pulli href https wiki openstack org wiki Magnum rel noreferrer https wiki openstack org wiki Magnum li ulpShows lot of promise enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm ph1Update 18 h1pRancher is project that is maturing rapidly pp href http rancher com rel noreferrer http rancher com ppNice UI and strong focus on hyrbrid Docker infrastructures ph1Update 19 h1pThe href http lattice cf rel noreferrer Lattice project is an offshoot of Cloud Foundry for managing container clusters ph1Update 20 h1pDocker recently bought Tutum pp href https www docker com tutum rel noreferrer https www docker com tutum ph1Update 21 h1pPackage manager for applications deployed on href http kubernetes io rel noreferrer Kubernetes pp href http helm sh rel noreferrer http helm sh ph1Update 22 h1pVamp is an open source and self hosted platform for managing micro service oriented architectures that rely on container technology pp href http vamp io rel noreferrer http vamp io ph1Update 23 h1pA Distributed Highly Available Datacenter Aware Scheduler pulli href https www nomadproject io rel noreferrer https www nomadproject io li ulpFrom the guys that gave us Vagrant and other powerful tools ph1Update 24 h1pContainer hosting solution for AWS open source and based on href http kubernetes io rel noreferrer Kubernetes pp href https supergiant io rel noreferrer https supergiant io ph1Update 25 h1pApache Mesos based container hosted located in Germany pp href https sloppy io features features rel noreferrer https sloppy io features features ppAnd Docker Inc also provide container hosting service called Docker cloud pp href https cloud docker com rel noreferrer https cloud docker com ph1Update 26 h1p href https jelastic com blog docker swarm auto clustering and scaling with paas rel noreferrer Jelastic is hosted PAAS service that scales containers automatically Added mention of Docker cloud as you suggested,0,NULL,NULL 49185,33363,760741,NULL,NULL,NULL,0,NULL,NULL 49186,817644,820866,NULL,NULL,NULL,0,NULL,NULL 49187,47397,98191,Good Question Popular Question Yearling Revival Notable Question Yearling Nice Answer Enlightened Custodian Custodian,NULL,NULL,0,NULL,NULL 49188,10663,15421,Autobiographer Yearling Nice Answer Enlightened Yearling Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 49189,217778,98981,Revival Revival Revival Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 49190,551439,41662,Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Taxonomist Good Answer Yearling Nice Question Famous Question Notable Question Notable Question Notable Question Good Question Yearling Good Question Popular Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 49191,134882,1507391,NULL,NULL,NULL,0,NULL,NULL 49192,311828,95992,Caucus Popular Question Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 49193,475961,271440,Popular Question Self-Learner Popular Question Yearling Popular Question Popular Question Custodian Excavator Caucus Constituent Citizen Patrol Notable Question Custodian Custodian Documentation User Popular Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49194,1033186,471260,Popular Question Yearling Popular Question Popular Question Nice Answer Notable Question Popular Question Notable Question Caucus Constituent Notable Question Nice Answer Yearling Custodian Custodian Taxonomist Notable Question Excavator Nice Question Yearling,NULL,NULL,0,NULL,NULL 49195,187569,562267,Nice Answer Revival Yearling Autobiographer Enthusiast Necromancer Necromancer Yearling Peer Pressure Good Answer Necromancer Necromancer Yearling Popular Question Self-Learner Civic Duty Nice Answer,NULL,NULL,0,NULL,NULL 49196,146175,1451035,NULL,NULL,NULL,0,NULL,NULL 49197,59461,24057,NULL,NULL,NULL,0,NULL,NULL 49198,468529,183810,NULL,NULL,NULL,0,NULL,NULL 49199,596853,1104030,Informed,NULL,NULL,0,NULL,NULL 49200,113116,551462,Nice Question Yearling Popular Question Famous Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 49201,258181,851153,NULL,NULL,NULL,0,NULL,NULL 49202,226672,841729,Nice Question Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 49203,1383878,790662,NULL,NULL,NULL,0,NULL,NULL 49204,503790,817834,Popular Question Yearling Organizer Citizen Patrol Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 49205,159177,1050655,NULL,NULL,NULL,0,NULL,NULL 49206,129368,1050655,NULL,NULL,NULL,0,NULL,NULL 49207,198688,31620,NULL,NULL,NULL,0,NULL,NULL 49208,455584,254318,Custodian Yearling Popular Question Popular Question Necromancer Caucus php Yearling Tumbleweed linux Necromancer Electorate Great Answer Popular Question Documentation User Custodian Census Yearling Nice Answer Nice Answer Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened systemd Necromancer Tag Editor Good Answer Nice Answer Enlightened Nice Answer,NULL,pThis may be the best one ppre codeafter echo before od An tx1 tr xargs printf code pre Please explain how this works The od command is not common,0,NULL,NULL 49209,13117,1720,Nice Question Necromancer Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 49210,302983,59822,Critic,NULL,NULL,0,NULL,NULL 49211,2337328,34556,NULL,NULL,NULL,0,NULL,NULL 49212,674837,290948,NULL,NULL,NULL,0,NULL,NULL 49213,3048,60581,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49214,6022,1502249,NULL,NULL,NULL,0,NULL,NULL 49215,26080,765421,Yearling Yearling,NULL,NULL,0,NULL,NULL 49216,497652,1057170,NULL,NULL,NULL,0,NULL,NULL 49217,24347,846583,Famous Question,NULL,NULL,0,NULL,NULL 49218,281395,1284043,Teacher Popular Question Supporter Commentator Announcer,NULL,NULL,0,NULL,NULL 49219,844053,262568,NULL,NULL,NULL,0,NULL,NULL 49220,1170395,536762,NULL,NULL,NULL,0,NULL,NULL 49221,434161,443793,Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49222,3969682,762849,Custodian Editor,NULL,NULL,0,NULL,NULL 49223,1149414,762849,Custodian Editor,NULL,NULL,0,NULL,NULL 49224,1121819,952799,NULL,NULL,NULL,0,NULL,NULL 49225,229679,79457,Great Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 49226,68320,202751,NULL,NULL,NULL,0,NULL,NULL 49227,1514342,356643,NULL,NULL,NULL,0,NULL,NULL 49228,240304,537089,Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49229,185988,408339,NULL,NULL,NULL,0,NULL,NULL 49230,7274430,754239,NULL,NULL,NULL,0,NULL,NULL 49231,146405,994939,Popular Question Great Answer Popular Question Yearling Necromancer Notable Question Necromancer Yearling Nice Answer Unsung Hero Populist Good Answer Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 49232,10276,1401514,NULL,NULL,NULL,0,NULL,NULL 49233,651946,294700,Yearling Good Answer Guru Yearling Guru Great Question Favorite Question Yearling python,NULL,NULL,0,NULL,NULL 49234,225502,604574,NULL,NULL,NULL,0,NULL,NULL 49235,1517191,996938,NULL,NULL,NULL,0,NULL,NULL 49236,17000,1195601,NULL,NULL,NULL,0,NULL,NULL 49237,676550,65761,NULL,NULL,NULL,0,NULL,NULL 49238,216484,61811,Tumbleweed Enthusiast,NULL,NULL,0,NULL,NULL 49239,223763,1136063,Necromancer Civic Duty Caucus Necromancer Necromancer Yearling Caucus Nice Answer Necromancer Nice Answer Yearling,NULL,Why should text files end with newline file unix text files newline pI assume everyone here is familiar with the adage that all text files should end with newline ve known of this rule for years but ve always wondered why The way Unix regards https gcc gnu org ml gcc 2003 11 msg01568 html its general behavior at the end of files is as follows characters don start lines instead they end them So is line terminator not line separator The first line like all lines needs no to start it The last line like all lines needs an to end it An at the end of the file doesn create an additional line Sometimes however text editors will add visible blank line there Even emacs does so optionally https www gnu org software emacs manual html node emacs Customize Save html Why should text files end with newline file unix text files newline pI assume everyone here is familiar with the adage that all text files should end with newline ve known of this rule for years but ve always wondered why suppose this whole confusion is verbal To avoid it the language and Unix developers instead could have called the ASCII linefeed character EOL or endOfLine Following that idea would be its natural abbreviation https en wikipedia org index php title Escape sequences in oldid 731465441 Table of escape sequences is unused in However visibly this lower case letter doesn differ much from the numeral unfortunately And is used in regular expressions Why should text files end with newline file unix text files newline pI assume everyone here is familiar with the adage that all text files should end with newline ve known of this rule for years but ve always wondered why bring this up to help people If people remembered end of line character as its name they wouldn question why the last line of file has one Since the developers grabbed the next best thing calling it new line character —which is slight misnomer naturally they wonder why it doesn perform its apparent function and create new line there,0,NULL,NULL 49240,26616,61539,Nice Answer Enlightened Guru Good Answer Yearling Good Answer Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Question Good Answer Yearling Good Answer Nice Answer Guru Nice Answer Nice Answer Custodian Guru Nice Answer Yearling Good Answer Guru Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 49241,5105,1258400,Yearling,NULL,NULL,0,NULL,NULL 49242,117820,129064,Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49243,161756,486273,Yearling,NULL,NULL,0,NULL,NULL 49244,271905,238452,NULL,NULL,NULL,0,NULL,NULL 49245,191194,681854,Notable Question Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 49246,382178,974710,Caucus Editor Popular Question Student Supporter Yearling Commentator Yearling Critic Excavator Yearling Documentation User Announcer Announcer Notable Question Caucus Announcer,NULL,NULL,0,NULL,NULL 49247,33235,587441,NULL,NULL,NULL,0,NULL,NULL 49248,2138947,587441,NULL,NULL,NULL,0,NULL,NULL 49249,335459,608536,NULL,NULL,NULL,0,NULL,NULL 49250,129353,860459,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 49251,7384683,837673,NULL,NULL,NULL,0,NULL,NULL 49252,187583,163722,Commentator,NULL,NULL,0,NULL,NULL 49253,61152,238328,Necromancer Necromancer Necromancer Caucus,NULL,NULL,0,NULL,NULL 49254,182315,542198,Yearling Nice Answer Enlightened Good Answer Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 49255,3692673,803948,Yearling Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Caucus Yearling Good Question Notable Question Nice Answer Yearling Nice Question Popular Question Nice Answer Notable Question Yearling Nice Answer Popular Question Nice Answer Famous Question Civic Duty Notable Question Famous Question Nice Question Yearling Custodian,NULL,NULL,0,NULL,NULL 49256,313091,803948,Yearling Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Caucus Yearling Good Question Notable Question Nice Answer Yearling Nice Question Popular Question Nice Answer Notable Question Yearling Nice Answer Popular Question Nice Answer Famous Question Civic Duty Notable Question Famous Question Nice Question Yearling Custodian,NULL,NULL,0,NULL,NULL 49257,24685,255955,Census Informed,NULL,NULL,0,NULL,NULL 49258,79993,975046,Announcer Yearling Census Yearling Census Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 49259,631889,1069828,NULL,NULL,NULL,0,NULL,NULL 49260,2283916,466619,NULL,NULL,NULL,0,NULL,NULL 49261,47239,8357,NULL,NULL,NULL,0,NULL,NULL 49262,23596,289389,NULL,NULL,NULL,0,NULL,NULL 49263,5128047,1230776,NULL,NULL,NULL,0,NULL,NULL 49264,750332,762810,Teacher Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 49265,593209,1428116,NULL,NULL,NULL,0,NULL,NULL 49266,176487,1394088,NULL,NULL,NULL,0,NULL,NULL 49267,582707,1058965,NULL,NULL,NULL,0,NULL,NULL 49268,155751,482355,NULL,NULL,NULL,0,NULL,NULL 49269,117503,623827,Yearling Yearling Good Answer Good Answer Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 49270,1037613,946468,NULL,NULL,NULL,0,NULL,NULL 49271,295931,353407,Nice Question Notable Question Popular Question Popular Question Nice Answer Yearling Popular Question Popular Question Famous Question Famous Question Popular Question Nice Question Civic Duty Yearling Famous Question Notable Question Nice Question Caucus Notable Question Autobiographer Documentation User Custodian Nice Question Custodian Good Question Famous Question Popular Question Popular Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 49272,1025826,1361940,NULL,NULL,NULL,0,NULL,NULL 49273,2097338,521012,NULL,NULL,NULL,0,NULL,NULL 49274,1134068,2996,Custodian Yearling Great Answer Great Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 49275,755451,1203315,NULL,NULL,NULL,0,NULL,NULL 49276,3638902,1357769,NULL,NULL,NULL,0,NULL,NULL 49277,141325,138311,Nice Answer Good Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49278,69564,1233372,NULL,NULL,NULL,0,NULL,NULL 49279,1403401,188865,Yearling Nice Answer Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49280,706174,646422,NULL,NULL,NULL,0,NULL,NULL 49281,347482,646422,NULL,NULL,NULL,0,NULL,NULL 49282,41629,288951,Populist,NULL,NULL,0,NULL,NULL 49283,238490,1007840,NULL,NULL,NULL,0,NULL,NULL 49284,391102,694604,Student Commentator Scholar Yearling Informed Autobiographer Yearling Caucus,NULL,NULL,0,NULL,NULL 49285,785536,812660,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Nice Answer Popular Question Popular Question Nice Answer Enlightened Notable Question Notable Question ruby-on-rails Popular Question Famous Question Necromancer Popular Question Yearling Notable Question Nice Question Custodian Census Popular Question Good Answer Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49286,450978,250478,NULL,NULL,NULL,0,NULL,NULL 49287,8791,1188360,NULL,NULL,NULL,0,NULL,NULL 49288,243663,1183629,Necromancer Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 49289,23436,627058,Yearling Yearling Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 49290,4019,627058,Yearling Yearling Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 49291,217518,122222,Yearling,NULL,NULL,0,NULL,NULL 49292,76122,173709,Nice Answer Enlightened Necromancer Guru Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 49293,2596098,287587,Popular Question,NULL,NULL,0,NULL,NULL 49294,50655,287587,Popular Question,NULL,NULL,0,NULL,NULL 49295,240660,655749,Yearling Popular Question Great Answer Yearling Popular Question Popular Question Good Question Notable Question Yearling Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 49296,60674,590945,Yearling Necromancer Necromancer Nice Answer Necromancer Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 49297,326512,1402730,NULL,NULL,NULL,0,NULL,NULL 49298,912589,1145107,Supporter Editor,NULL,NULL,0,NULL,NULL 49299,1381533,1183987,NULL,NULL,NULL,0,NULL,NULL 49300,323222,5817,Nice Answer Yearling Great Answer Yearling Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 49301,508029,1335030,NULL,NULL,NULL,0,NULL,NULL 49302,71692,111604,Yearling c# Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Yearling quartz-scheduler,NULL,NULL,0,NULL,NULL 49303,1050171,439945,Nice Answer Enlightened Yearling Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 49304,121951,1294964,Student Scholar Teacher,NULL,NULL,1,Schema object without type attribute in Swagger jsonschema swagger pDoes Schema object in Swagger OpenAPI have to have the codetype code attribute or not ppOn the one hand according to the JSON Schema Draft spec not specifying the codetype code attribute is OK and means that the instance can be of any type an object an array or primitive ppOn the other hand ve seen lot of Swagger schemas which contain Schema objects without the codetype code attribute but with the codeproperties code attribute which makes it clear that the schema author wants the instance to be proper object and doesn want to accept arrays or primitive as valid values ppAre all those schemas incorrect Or is codetype object code implied by the presence of codeproperties code There nothing in either the Swagger or the JSON Schema spec that says that is the case In fact ve seen comments that explicitly say that NOT the case,NULL 49305,88801,246621,Notable Question Nice Answer Nice Question Yearling Revival Necromancer Self-Learner Documentation User Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49306,98350,1023600,NULL,NULL,NULL,0,NULL,NULL 49307,200761,216636,Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Nice Question Nice Question Popular Question Yearling Popular Question Nice Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49308,253396,1228451,NULL,NULL,NULL,0,NULL,NULL 49309,150377,6634,Yearling,NULL,NULL,0,NULL,NULL 49310,72810,1272665,NULL,NULL,NULL,0,NULL,NULL 49311,1265354,718919,NULL,NULL,NULL,0,NULL,NULL 49312,1517538,458780,Necromancer,NULL,NULL,0,NULL,NULL 49313,22654,753092,NULL,NULL,NULL,0,NULL,NULL 49314,368059,593431,NULL,NULL,NULL,0,NULL,NULL 49315,2362741,1178316,Famous Question,NULL,NULL,0,NULL,NULL 49316,449956,126125,Yearling Quorum Civic Duty Tenacious Nice Answer Enlightened Yearling Popular Question Nice Answer Popular Question Caucus Good Answer Custodian Guru Yearling Notable Question Popular Question apache-spark Announcer Investor Announcer Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 49317,1529831,413364,NULL,NULL,NULL,0,NULL,NULL 49318,131936,1360577,NULL,NULL,NULL,0,NULL,NULL 49319,808233,615881,Yearling Guru Notable Question Caucus Yearling Caucus Census Yearling Caucus Popular Question Excavator,NULL,NULL,0,NULL,NULL 49320,367747,615881,Yearling Guru Notable Question Caucus Yearling Caucus Census Yearling Caucus Popular Question Excavator,NULL,NULL,0,NULL,NULL 49321,263705,1365187,NULL,NULL,NULL,0,NULL,NULL 49322,71,1472,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49323,180586,116257,NULL,NULL,NULL,0,NULL,NULL 49324,1505947,1185678,NULL,NULL,NULL,0,NULL,NULL 49325,971114,754004,NULL,NULL,NULL,0,NULL,NULL 49326,282190,368120,Yearling Caucus Constituent Yearling Student Scholar,NULL,pYou can implement your own trap function that automatically passes the signal to the function ppre codetrap with arg func shift for sig do trap func sig sig done trap with arg func trap INT TERM EXIT code prepThe first argument to func trap will be the name of the signal this idiom is completely new to me Is this feature documented somewhere can find anything relevant in man bash and don know what to call it to search for it pYou can implement your own trap function that automatically passes the signal to the function ppre codetrap with arg func shift for sig do trap func sig sig done trap with arg func trap INT TERM EXIT code prepThe first argument to func trap will be the name of the signal thanks but was referring to the for var do idiom you mentioned Traps aren relevant to that AFAICT Okay think ve just found some documentation for this Omitting the in list part of for loop causes the loop to operate on from Example 11 in http www tldp org LDP abs html loops1 html pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead This worked in my case as well but wow really like to see an explanation of why it works Most of the time find the CSS specs to be totally inscrutable for this kind of thing pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead From your blog post have no idea why that works and the specs says nothing either So looking for an explanation of why it works ve skimmed the specs but as you said nothing jumps out there pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead not sure that really explains it Setting overflow to hidden on an element doesn stop it from expanding to contain all of its children AFAIK According to MDN The overflow property specifies whether to clip content render scrollbars or just display content when it overflows its block level container Additionally setting overflow to anything other than visible creates new block formatting context but that can be relevant because flex containers already create their own block formatting context https developer mozilla org en US docs Web Guide CSS Block formatting context pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead should add that agree your explanation makes intuitive sense but don think it an accurate technical explanation which is what want Only by truly understanding the reason will be able to remember the the solution in future,0,NULL,NULL 49327,88107,827056,NULL,NULL,NULL,0,NULL,NULL 49328,11193,262192,Famous Question Good Question Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 49329,731631,766993,NULL,NULL,NULL,0,NULL,NULL 49330,1119259,282274,Popular Question,NULL,NULL,0,NULL,NULL 49331,270335,817890,NULL,NULL,NULL,0,NULL,NULL 49332,420881,906030,NULL,NULL,NULL,0,NULL,NULL 49333,270203,481677,NULL,NULL,NULL,0,NULL,NULL 49334,113524,25946,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49335,6440888,897249,NULL,NULL,NULL,0,NULL,NULL 49336,1052401,334304,Popular Question Notable Question Good Question Yearling Great Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Answer Famous Question Nice Question Stellar Question Notable Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 49337,185941,582791,Yearling Revival Popular Question Self-Learner Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49338,574417,1299005,Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened java Nice Answer Enlightened Guru Nice Answer Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 49339,265555,1367629,Supporter Popular Question,NULL,NULL,0,NULL,NULL 49340,291361,737116,Census Critic,NULL,NULL,0,NULL,NULL 49341,308516,1512556,NULL,NULL,NULL,0,NULL,NULL 49342,716288,850484,Good Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 49343,462127,595339,Famous Question,NULL,NULL,0,NULL,NULL 49344,45971,613660,Necromancer Yearling Good Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 49345,210107,1133184,Popular Question Yearling Guru Notable Question Caucus Yearling Yearling Nice Question Necromancer Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 49346,1504472,551380,Informed Popular Question Notable Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 49347,33959,604345,NULL,NULL,NULL,0,NULL,NULL 49348,540686,239571,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 49349,1037715,210620,Popular Question,NULL,NULL,0,NULL,NULL 49350,50036,590761,Necromancer Nice Answer Enlightened Reviewer Yearling Nice Question Necromancer Unsung Hero Nice Question Nice Answer Civic Duty Nice Answer Popular Question Popular Question Yearling Necromancer Notable Question Necromancer Yearling Popular Question Necromancer Nice Answer Necromancer Custodian Good Answer Necromancer,NULL,pIf you want to execute your code when the API is fully loaded use href http docs ckeditor com api CKEDITOR event loaded codeCKEDITOR loaded code event ppre codeCKEDITOR on loaded function evt your stuff here code prepIf you want to execute your code when strongany strong new instance is ready use href http docs ckeditor com api CKEDITOR event instanceReady codeCKEDITOR instanceReady code event ppre codeCKEDITOR on instanceReady function evt your stuff here code prepIf you want to execute your code when strongparticular instance strong is ready then use href http docs ckeditor com api CKEDITOR editor event instanceReady codeCKEDITOR editor instanceReady code event ppre codeCKEDITOR replace editor on instanceReady function evt your stuff here code pre hint the editor for which the event trigger is inside evt editor the original element inside evt editor element,0,NULL,NULL 49351,180916,585776,Popular Question,NULL,NULL,0,NULL,NULL 49352,43220,440041,Nice Answer Yearling Nice Answer Yearling Commentator Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 49353,1507825,1124984,Necromancer,NULL,NULL,0,NULL,NULL 49354,344076,68988,NULL,NULL,NULL,0,NULL,NULL 49355,10172,1031548,NULL,NULL,NULL,0,NULL,NULL 49356,1513667,1075317,NULL,NULL,NULL,0,NULL,NULL 49357,139588,1170893,NULL,NULL,NULL,0,NULL,NULL 49358,72650,11403,Nice Answer Great Answer Revival Popular Question Necromancer Necromancer Yearling Good Answer Great Answer Yearling Nice Answer Nice Answer Nice Answer Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 49359,2298041,1296707,Nice Answer Yearling Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent mongodb Necromancer Nice Answer Yearling Good Answer Caucus Constituent Guru Nice Answer Enlightened Announcer Quorum Nice Answer Nice Answer Nice Answer Enlightened Census Nice Answer Nice Answer Enlightened Mortarboard Announcer Caucus Constituent Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Investor go Nice Answer Enlightened Altruist Nice Answer Enlightened Good Answer Reviewer Steward Nice Answer,NULL,NULL,0,NULL,NULL 49360,89529,882971,Yearling Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 49361,985379,876847,Notable Question,NULL,NULL,0,NULL,NULL 49362,80834,908627,Yearling Nice Answer Enlightened Caucus Yearling Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49363,269820,657958,NULL,NULL,NULL,0,NULL,NULL 49364,3539180,665086,Teacher Student,NULL,NULL,0,NULL,NULL 49365,165416,941698,NULL,NULL,NULL,0,NULL,NULL 49366,899371,336986,NULL,NULL,NULL,0,NULL,NULL 49367,156757,404522,Yearling Necromancer Popular Question Necromancer Necromancer Revival Announcer,NULL,NULL,0,NULL,NULL 49368,35126,41015,NULL,NULL,NULL,0,NULL,NULL 49369,89168,1277808,NULL,NULL,NULL,0,NULL,NULL 49370,1570607,492432,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49371,1570609,492432,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49372,390463,894603,NULL,NULL,NULL,0,NULL,NULL 49373,1346137,721343,NULL,NULL,NULL,0,NULL,NULL 49374,103112,1138644,NULL,NULL,NULL,0,NULL,NULL 49375,200080,1156058,Notable Question Custodian Yearling Nice Question Notable Question Popular Question Famous Question Teacher Yearling Popular Question Popular Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49376,182258,44243,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 49377,702317,39991,Nice Answer Notable Question Nice Answer Nice Answer Yearling Nice Answer Good Answer Yearling Good Answer Popular Question Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 49378,324499,47573,Favorite Question Famous Question Famous Question Good Question Nice Answer Enlightened Nice Answer Notable Question Yearling Nice Question Inquisitive Good Question Popular Question Popular Question Notable Question Popular Question Necromancer Yearling Census Good Question Popular Question Announcer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49379,162192,1173066,NULL,NULL,NULL,0,NULL,NULL 49380,1093333,1140525,Teacher Supporter Editor Scholar,NULL,NULL,0,NULL,NULL 49381,139473,262067,Yearling Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 49382,446116,247693,NULL,NULL,NULL,0,NULL,NULL 49383,4466467,247693,NULL,NULL,NULL,0,NULL,NULL 49384,228781,100243,Yearling Good Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 49385,60588,81038,Yearling Good Answer Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 49386,292880,979457,Nice Question Critic Famous Question Popular Question Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 49387,136674,755330,Informed Autobiographer Revival Revival,NULL,NULL,0,NULL,NULL 49388,152368,321277,NULL,NULL,NULL,0,NULL,NULL 49389,510211,1360602,Commentator Informed Student Editor Revival Scholar,NULL,NULL,0,NULL,NULL 49390,309156,962890,NULL,NULL,NULL,0,NULL,NULL 49391,197570,32526,Enlightened Custodian,NULL,NULL,0,NULL,NULL 49392,2484,814910,NULL,NULL,NULL,0,NULL,NULL 49393,19163,205808,Nice Answer Notable Question Nice Answer Nice Answer Enlightened Yearling Revival Good Answer Yearling Nice Question Nice Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49394,63624,823479,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 49395,84752,450396,Tumbleweed Announcer Revival,NULL,NULL,0,NULL,NULL 49396,106811,609617,Commentator,NULL,NULL,0,NULL,NULL 49397,1037935,15623,Populist Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 49398,377387,1063501,Tumbleweed Informed Yearling Necromancer Custodian Yearling Caucus Constituent Nice Answer Revival Caucus Constituent Yearling Necromancer Revival Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 49399,176594,989018,Teacher Necromancer,NULL,NULL,0,NULL,NULL 49400,462789,980899,NULL,NULL,NULL,0,NULL,NULL 49401,126643,572092,NULL,NULL,NULL,0,NULL,NULL 49402,2008189,1485061,NULL,NULL,NULL,0,NULL,NULL 49403,116912,401467,Enthusiast Nice Answer Revival Necromancer Yearling Nice Answer Revival Yearling Good Answer Yearling Nice Answer Yearling Revival Revival Scholar Announcer Yearling Necromancer Great Answer Nice Answer Custodian Necromancer Custodian Yearling Good Answer Necromancer,NULL,pThis will not only change the max retries but also enable backoff strategy which makes requests to all emhttp em addresses sleep for period of time before retrying to total of times ppre codeimport requestsfrom requests packages urllib3 util retry import Retryfrom requests adapters import HTTPAdapters requests Session retries Retry total backoff factor status forcelist 500 502 503 504 mount http HTTPAdapter max retries retries get http httpstat us 500 code prepAs per href http urllib3 readthedocs io en latest reference urllib3 util html module urllib3 util retry rel noreferrer documentation for Retry if the backoff factor is then sleep will sleep for 1s 2s 4s between retries It will also force retry if the status code returned is 500 502 503 or 504 ppVarious other options to Retry allow for more granular control pullitotal Total number of retries to allow liliconnect How many connection related errors to retry on liliread How many times to retry on read errors liliredirect How many redirects to perform lilimethod whitelist Set of uppercased HTTP method verbs that we should retry on lilistatus forcelist set of HTTP status codes that we should force retry on lilibackoff factor backoff factor to apply between attempts liliraise on redirect Whether if the number of redirects is exhausted to raise MaxRetryError or to return response with response code in the 3xx range liliraise on status Similar meaning to raise on redirect whether we should raise an exception or return response if status falls in status forcelist range and retries have been exhausted li ulp strike strongNB strong emraise on status em is relatively new and has not made it into release of urllib3 or requests yet strike The coderaise on status code keyword argument appears to have made it into the standard library at most in python version ppTo make requests retry on specific HTTP status codes use status forcelist For example status forcelist 503 will retry on status code 503 service unavailable ppBy default the retry only fires for these conditions pulliCould not get connection from the pool liliTimeoutError liliHTTPException raised from http client in Python else httplib This seems to be low level HTTP exceptions like URL or protocol notformed correctly liliSocketError liliProtocolError li ulpNotice that these are all exceptions that prevent regular HTTP response from being received If strongany strong regular response is generated no retry is done Without using the status forcelist even response with status 500 will not be retried ppTo make it behave in manner which is more intuitive for working with remote API or web server would use the above code snippet which forces retries on statuses 500 502 503 and 504 all of which are not uncommon on the web and possibly recoverable given big enough backoff period The attached code works as expected The trick is the status forcelist parameter This tells the urllib3 package to retry specific status codes Code http pastebin com k2bFbH7Z pThis will not only change the max retries but also enable backoff strategy which makes requests to all emhttp em addresses sleep for period of time before retrying to total of times ppre codeimport requestsfrom requests packages urllib3 util retry import Retryfrom requests adapters import HTTPAdapters requests Session retries Retry total backoff factor status forcelist 500 502 503 504 mount http HTTPAdapter max retries retries get http httpstat us 500 code prepAs per href http urllib3 readthedocs io en latest reference urllib3 util html module urllib3 util retry rel noreferrer documentation for Retry if the backoff factor is then sleep will sleep for 1s 2s 4s between retries It will also force retry if the status code returned is 500 502 503 or 504 ppVarious other options to Retry allow for more granular control pullitotal Total number of retries to allow liliconnect How many connection related errors to retry on liliread How many times to retry on read errors liliredirect How many redirects to perform lilimethod whitelist Set of uppercased HTTP method verbs that we should retry on lilistatus forcelist set of HTTP status codes that we should force retry on lilibackoff factor backoff factor to apply between attempts liliraise on redirect Whether if the number of redirects is exhausted to raise MaxRetryError or to return response with response code in the 3xx range liliraise on status Similar meaning to raise on redirect whether we should raise an exception or return response if status falls in status forcelist range and retries have been exhausted li ulp strike strongNB strong emraise on status em is relatively new and has not made it into release of urllib3 or requests yet strike The coderaise on status code keyword argument appears to have made it into the standard library at most in python version ppTo make requests retry on specific HTTP status codes use status forcelist For example status forcelist 503 will retry on status code 503 service unavailable ppBy default the retry only fires for these conditions pulliCould not get connection from the pool liliTimeoutError liliHTTPException raised from http client in Python else httplib This seems to be low level HTTP exceptions like URL or protocol notformed correctly liliSocketError liliProtocolError li ulpNotice that these are all exceptions that prevent regular HTTP response from being received If strongany strong regular response is generated no retry is done Without using the status forcelist even response with status 500 will not be retried ppTo make it behave in manner which is more intuitive for working with remote API or web server would use the above code snippet which forces retries on statuses 500 502 503 and 504 all of which are not uncommon on the web and possibly recoverable given big enough backoff period urllib3 does not and should not think that status 503 is an exception by default pThis will not only change the max retries but also enable backoff strategy which makes requests to all emhttp em addresses sleep for period of time before retrying to total of times ppre codeimport requestsfrom requests packages urllib3 util retry import Retryfrom requests adapters import HTTPAdapters requests Session retries Retry total backoff factor status forcelist 500 502 503 504 mount http HTTPAdapter max retries retries get http httpstat us 500 code prepAs per href http urllib3 readthedocs io en latest reference urllib3 util html module urllib3 util retry rel noreferrer documentation for Retry if the backoff factor is then sleep will sleep for 1s 2s 4s between retries It will also force retry if the status code returned is 500 502 503 or 504 ppVarious other options to Retry allow for more granular control pullitotal Total number of retries to allow liliconnect How many connection related errors to retry on liliread How many times to retry on read errors liliredirect How many redirects to perform lilimethod whitelist Set of uppercased HTTP method verbs that we should retry on lilistatus forcelist set of HTTP status codes that we should force retry on lilibackoff factor backoff factor to apply between attempts liliraise on redirect Whether if the number of redirects is exhausted to raise MaxRetryError or to return response with response code in the 3xx range liliraise on status Similar meaning to raise on redirect whether we should raise an exception or return response if status falls in status forcelist range and retries have been exhausted li ulp strike strongNB strong emraise on status em is relatively new and has not made it into release of urllib3 or requests yet strike The coderaise on status code keyword argument appears to have made it into the standard library at most in python version ppTo make requests retry on specific HTTP status codes use status forcelist For example status forcelist 503 will retry on status code 503 service unavailable ppBy default the retry only fires for these conditions pulliCould not get connection from the pool liliTimeoutError liliHTTPException raised from http client in Python else httplib This seems to be low level HTTP exceptions like URL or protocol notformed correctly liliSocketError liliProtocolError li ulpNotice that these are all exceptions that prevent regular HTTP response from being received If strongany strong regular response is generated no retry is done Without using the status forcelist even response with status 500 will not be retried ppTo make it behave in manner which is more intuitive for working with remote API or web server would use the above code snippet which forces retries on statuses 500 502 503 and 504 all of which are not uncommon on the web and possibly recoverable given big enough backoff period no the adapter is attached to the session,1,NULL,Can set max retries for requests request python python requests pThe Python requests module is simple and elegant but one thing bugs me It is possible to get emrequests exception ConnectionError em with message like ppre class lang none prettyprint override codeMax retries exceeded with url code prepThis implies that requests can attempt to access the data several times But there is not single mention of this possibility anywhere in the docs Looking at the source code didn find any place where could alter the default presumably value ppSo is it possible to somehow set the maximum number of retries for requests pThis will not only change the max retries but also enable backoff strategy which makes requests to all emhttp em addresses sleep for period of time before retrying to total of times ppre codeimport requestsfrom requests packages urllib3 util retry import Retryfrom requests adapters import HTTPAdapters requests Session retries Retry total backoff factor status forcelist 500 502 503 504 mount http HTTPAdapter max retries retries get http httpstat us 500 code prepAs per href http urllib3 readthedocs io en latest reference urllib3 util html module urllib3 util retry rel noreferrer documentation for Retry if the backoff factor is then sleep will sleep for 1s 2s 4s between retries It will also force retry if the status code returned is 500 502 503 or 504 ppVarious other options to Retry allow for more granular control pullitotal Total number of retries to allow liliconnect How many connection related errors to retry on liliread How many times to retry on read errors liliredirect How many redirects to perform lilimethod whitelist Set of uppercased HTTP method verbs that we should retry on lilistatus forcelist set of HTTP status codes that we should force retry on lilibackoff factor backoff factor to apply between attempts liliraise on redirect Whether if the number of redirects is exhausted to raise MaxRetryError or to return response with response code in the 3xx range liliraise on status Similar meaning to raise on redirect whether we should raise an exception or return response if status falls in status forcelist range and retries have been exhausted li ulp strike strongNB strong emraise on status em is relatively new and has not made it into release of urllib3 or requests yet strike The coderaise on status code keyword argument appears to have made it into the standard library at most in python version ppTo make requests retry on specific HTTP status codes use status forcelist For example status forcelist 503 will retry on status code 503 service unavailable ppBy default the retry only fires for these conditions pulliCould not get connection from the pool liliTimeoutError liliHTTPException raised from http client in Python else httplib This seems to be low level HTTP exceptions like URL or protocol notformed correctly liliSocketError liliProtocolError li ulpNotice that these are all exceptions that prevent regular HTTP response from being received If strongany strong regular response is generated no retry is done Without using the status forcelist even response with status 500 will not be retried ppTo make it behave in manner which is more intuitive for working with remote API or web server would use the above code snippet which forces retries on statuses 500 502 503 and 504 all of which are not uncommon on the web and possibly recoverable given big enough backoff period 49404,1520987,776112,NULL,NULL,NULL,0,NULL,NULL 49405,271881,1371320,Custodian Citizen Patrol Student Scholar Yearling Civic Duty Tumbleweed,NULL,NULL,0,NULL,NULL 49406,726660,1531907,NULL,NULL,NULL,0,NULL,NULL 49407,490380,940373,NULL,NULL,NULL,0,NULL,NULL 49408,177693,1051371,NULL,NULL,NULL,0,NULL,NULL 49409,67046,1144360,NULL,NULL,NULL,0,NULL,NULL 49410,1519134,1177150,NULL,NULL,NULL,0,NULL,NULL 49411,352103,447322,NULL,NULL,NULL,0,NULL,NULL 49412,655080,951467,Curious Yearling Yearling Enlightened Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 49413,362186,733741,NULL,NULL,NULL,0,NULL,NULL 49414,47277,109011,Enlightened Yearling Census Yearling Yearling Nice Answer,NULL,pNet HTTP is built into Ruby but let face it often it easier emnot em to use its cumbersome 1980s style and try higher level alternative pulli href https github com httprb http rel noreferrer HTTP Gem lili href https github com jnunemaker httparty rel noreferrer HTTParty lili href https github com rest client rest client rel noreferrer RestClient lili href https github com excon excon rel noreferrer Excon lili href https github com feedjira feedjira rel noreferrer Feedjira RSS only li ul Strongly disagree Introducing dependencies means you don reinvent the wheel and you benefit from the hard work others have already done If gem exists that makes your life easier there generally no good reason not to use it pNet HTTP is built into Ruby but let face it often it easier emnot em to use its cumbersome 1980s style and try higher level alternative pulli href https github com httprb http rel noreferrer HTTP Gem lili href https github com jnunemaker httparty rel noreferrer HTTParty lili href https github com rest client rest client rel noreferrer RestClient lili href https github com excon excon rel noreferrer Excon lili href https github com feedjira feedjira rel noreferrer Feedjira RSS only li ul The leftpad saga only happened because NPM ran its repository poorly and let the author delete all his packages Properly managed package repos don’t do that and anyway it’s OSS so you can easily mirror if you want That’s is the leftpad saga is not an argument against introducing dependencies in general but rather against managing the repo poorly do agree with your other point that big dependency that does way more than you need can be overkill for the value it provides,0,NULL,NULL 49415,372714,64096,Yearling Nice Answer Good Answer Good Answer Popular Question Caucus Constituent Yearling Announcer Guru Caucus Constituent Nice Answer Documentation User Booster Yearling Caucus Constituent Famous Question Revival Enlightened Good Answer Announcer Nice Answer Booster,NULL,NULL,0,NULL,NULL 49416,1282198,1414540,Good Question Famous Question,NULL,NULL,0,NULL,NULL 49417,49117,179701,NULL,NULL,NULL,0,NULL,NULL 49418,884327,211348,NULL,NULL,NULL,0,NULL,NULL 49419,1371788,831460,Popular Question,NULL,NULL,0,NULL,NULL 49420,399244,1228967,NULL,NULL,NULL,0,NULL,NULL 49421,246934,1299579,Editor Scholar,NULL,NULL,0,NULL,NULL 49422,69016,1004141,NULL,NULL,NULL,0,NULL,NULL 49423,2121,1136821,Yearling Nice Answer Necromancer Yearling Yearling Caucus Constituent Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 49424,1596877,920706,NULL,NULL,NULL,0,NULL,NULL 49425,381354,134201,Critic Nice Answer,NULL,NULL,0,NULL,NULL 49426,1060251,1445312,NULL,NULL,NULL,0,NULL,NULL 49427,96518,891405,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49428,763118,1429710,NULL,NULL,NULL,0,NULL,NULL 49429,384947,724980,NULL,NULL,NULL,0,NULL,NULL 49430,2036329,831420,Notable Question Scholar,NULL,NULL,0,NULL,NULL 49431,222359,673193,NULL,NULL,NULL,0,NULL,NULL 49432,67803,2279,Yearling Yearling,NULL,NULL,0,NULL,NULL 49433,15369,80329,Yearling,NULL,NULL,0,NULL,NULL 49434,109800,317172,Notable Question Yearling Famous Question Custodian Good Question Notable Question Famous Question Nice Question Popular Question Notable Question Good Question Nice Question Self-Learner Yearling Nice Question Necromancer Announcer Nice Answer Citizen Patrol python Yearling Nice Answer Enlightened Nice Answer,NULL,Non alphanumeric list order from os listdir python list directory listing listdir pI often use python to process directories of data Recently have noticed that the default order of the lists has changed to something almost nonsensical For example if am in current directory containing the following subdirectories run01 run02 run19 run20 and then generate list from the following command ppre codedir os listdir os getcwd code prepthen usually get list in this order ppre codedir run01 run18 run14 run13 run12 run11 run08 code prepand so on The order used to be alphanumeric But this new order has remained with me for while now ppWhat is determining the displayed order of these lists BTW if anyone else is as confused as am about the answers here it because my question was merged with another question requesting sorted listdir output am not sure why the questions were merged,0,NULL,NULL 49435,25381,1009598,NULL,NULL,NULL,0,NULL,NULL 49436,1338718,992490,c++11 Nice Answer Enlightened Nice Answer stl Nice Answer Nice Answer Yearling Good Answer c++ Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49437,98950,1467756,NULL,NULL,NULL,0,NULL,NULL 49438,81370,1378802,Organizer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49439,163510,173279,Good Answer Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49440,753189,997640,Notable Question Nice Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49441,269002,553791,Suffrage Vox Populi Caucus Electorate,NULL,NULL,0,NULL,NULL 49442,14676,226025,Revival Yearling,NULL,NULL,0,NULL,NULL 49443,318791,307455,Informed,NULL,NULL,0,NULL,NULL 49444,4557,1198865,NULL,NULL,NULL,0,NULL,NULL 49445,8265,252642,Yearling,NULL,NULL,0,NULL,NULL 49446,382867,1543708,NULL,NULL,NULL,0,NULL,NULL 49447,111202,1069069,NULL,NULL,NULL,0,NULL,NULL 49448,45270,1307269,Necromancer Nice Answer Scholar,NULL,NULL,0,NULL,NULL 49449,62103,585040,Notable Question,NULL,NULL,0,NULL,NULL 49450,32595,281848,Yearling Good Answer Yearling Great Answer Nice Answer Enlightened terraform Census Good Answer Good Answer Yearling Great Answer Nice Answer Nice Answer Enlightened Nice Answer amazon-web-services Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49451,459326,658104,NULL,NULL,NULL,0,NULL,NULL 49452,163999,66681,Yearling Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 49453,1415725,934567,Autobiographer Teacher Student Supporter Scholar Tumbleweed Commentator Disciplined Critic,NULL,NULL,0,NULL,NULL 49454,511670,26943,Famous Question Famous Question Famous Question Notable Question Yearling Nice Question Custodian Caucus Famous Question Good Answer Yearling Good Question Stellar Question Yearling,NULL,NULL,0,NULL,NULL 49455,643512,1008694,NULL,NULL,NULL,0,NULL,NULL 49456,30450,1014429,Notable Question,NULL,NULL,0,NULL,NULL 49457,436177,995127,NULL,NULL,NULL,0,NULL,NULL 49458,37609,27450,Yearling Census Guru Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49459,486810,1003971,Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Civic Duty,NULL,High resolution timers millisecond precision in Go on Windows windows go timer pI trying to use Go codetime Timer codes to schedule tasks that need to be run in the right order with precision in the order of half millisecond This works perfectly fine on OSX and on Linux but fails every time on Windows ppThe following code demonstrates the issue It sets timers the first one to ms the second to ms and the last one to ms Once timer fires its number is printed On OSX and Linux this obviously produced 12345 as output but on Windows the numbers are more or less random tested on Win and Windows Server 2012 ppre class lang go prettyprint override codepackage mainimport fmt time func main var timer1 timer2 timer3 timer4 timer5 time Timer timer1 time NewTimer time Millisecond timer2 time NewTimer time Millisecond timer3 time NewTimer time Millisecond timer4 time NewTimer time Millisecond timer5 time NewTimer time Millisecond should print 12345 for select case lt timer1 fmt Print case lt timer2 fmt Print case lt timer3 fmt Print case lt timer4 fmt Print case lt timer5 fmt Print case lt time After 200 time Millisecond return exit the program code prepI think this behavior is due to the changes made in Go href https golang org doc go1 runtime rel noreferrer https golang org doc go1 runtime 4th paragraph where the Windows timer precision was reduced from ms to 16 ms although it should also have occurred with shorter intervals of the order of 100 μs before ppIs there any way to reset the global Windows timer precision back to ms or to access high resolution timer that would make the example above work Timers seem to have higher resolution with the current beta of Go Thanks for your help,1,High resolution timers millisecond precision in Go on Windows windows go timer pI trying to use Go codetime Timer codes to schedule tasks that need to be run in the right order with precision in the order of half millisecond This works perfectly fine on OSX and on Linux but fails every time on Windows ppThe following code demonstrates the issue It sets timers the first one to ms the second to ms and the last one to ms Once timer fires its number is printed On OSX and Linux this obviously produced 12345 as output but on Windows the numbers are more or less random tested on Win and Windows Server 2012 ppre class lang go prettyprint override codepackage mainimport fmt time func main var timer1 timer2 timer3 timer4 timer5 time Timer timer1 time NewTimer time Millisecond timer2 time NewTimer time Millisecond timer3 time NewTimer time Millisecond timer4 time NewTimer time Millisecond timer5 time NewTimer time Millisecond should print 12345 for select case lt timer1 fmt Print case lt timer2 fmt Print case lt timer3 fmt Print case lt timer4 fmt Print case lt timer5 fmt Print case lt time After 200 time Millisecond return exit the program code prepI think this behavior is due to the changes made in Go href https golang org doc go1 runtime rel noreferrer https golang org doc go1 runtime 4th paragraph where the Windows timer precision was reduced from ms to 16 ms although it should also have occurred with shorter intervals of the order of 100 μs before ppIs there any way to reset the global Windows timer precision back to ms or to access high resolution timer that would make the example above work,NULL 49460,1503670,1163836,NULL,NULL,NULL,0,NULL,NULL 49461,47568,286550,Custodian Curious Yearling Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 49462,152897,177663,Good Answer Good Answer Good Answer Nice Answer Enlightened Pundit Yearling Populist Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Necromancer Nice Answer Caucus Good Answer Yearling Nice Answer Enlightened Good Answer Caucus Guru Nice Answer Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49463,86605,870657,Citizen Patrol Custodian Commentator,NULL,NULL,0,NULL,NULL 49464,4850,291819,Good Answer Custodian Informed,NULL,NULL,0,NULL,NULL 49465,247992,155137,Nice Answer Nice Answer Notable Question Nice Answer Popular Question Famous Question Notable Question Famous Question Notable Question Guru Nice Question Notable Question Nice Answer Enlightened regex Nice Answer Socratic Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Famous Question Good Answer Good Question Guru Nice Question Good Answer Yearling Notable Question Guru Announcer Notable Question Great Question Nice Answer Nice Answer Famous Question Nice Answer Enlightened Good Answer Nice Question Favorite Question Good Answer Notable Question Nice Answer swing Favorite Question Nice Answer Enlightened Nice Answer Famous Question Good Answer Good Answer Necromancer Popular Question Famous Question Nice Answer Nice Question Popular Question Notable Question Nice Answer Popular Question Notable Question Popular Question Nice Answer Nice Question Necromancer Great Question Nice Question Nice Answer Enlightened Nice Question Notable Question Yearling Good Question Famous Question Famous Question Notable Question Popular Question Nice Answer Enlightened Announcer Famous Question Popular Question Nice Answer Nice Question Benefactor Nice Answer Enlightened Yearling Notable Question Notable Question Nice Answer Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 49466,2841944,1446456,NULL,NULL,NULL,0,NULL,NULL 49467,41046,35434,Populist Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49468,62668,606167,Yearling Good Answer Necromancer Popular Question Announcer Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49469,184979,687114,NULL,NULL,NULL,0,NULL,NULL 49470,130451,17439,Nice Question Yearling Good Question Nice Answer Famous Question Popular Question Good Answer Yearling Great Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 49471,213696,709522,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49472,468776,867304,Necromancer Caucus Nice Answer Caucus Yearling Caucus Nice Answer Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 49473,908,1510276,NULL,NULL,NULL,0,NULL,NULL 49474,154098,585852,Yearling Great Answer,NULL,NULL,0,NULL,NULL 49475,447709,381801,Popular Question Famous Question Famous Question Good Question Popular Question c# Necromancer Notable Question Famous Question Yearling Explainer Popular Question Nice Answer Notable Question Popular Question Popular Question Famous Question Custodian Nice Question Electorate Yearling Caucus Popular Question Good Question Notable Question Popular Question Good Question Popular Question Reviewer Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 49476,415155,301485,Necromancer Yearling Caucus Revival,NULL,NULL,0,NULL,NULL 49477,653792,1364355,NULL,NULL,NULL,0,NULL,NULL 49478,132665,390812,Popular Question Self-Learner Yearling Nice Answer Enlightened Popular Question Yearling Guru Notable Question Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 49479,735713,1065745,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 49480,490729,832715,NULL,NULL,NULL,0,NULL,NULL 49481,1043367,1554892,NULL,NULL,NULL,0,NULL,NULL 49482,3068363,718483,NULL,NULL,NULL,0,NULL,NULL 49483,379395,293432,NULL,NULL,NULL,0,NULL,NULL 49484,777395,318325,NULL,NULL,NULL,0,NULL,NULL 49485,470097,698659,NULL,NULL,NULL,0,NULL,NULL 49486,6130,830642,NULL,NULL,NULL,0,NULL,NULL 49487,195003,1266143,Supporter,NULL,NULL,0,NULL,NULL 49488,292594,1457175,NULL,NULL,NULL,0,NULL,NULL 49489,259189,1035649,Nice Question Popular Question Notable Question Good Question Famous Question Famous Question Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 49490,7792172,1035649,Nice Question Popular Question Notable Question Good Question Famous Question Famous Question Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 49491,371495,19246,Custodian Good Question Nice Answer Notable Question Guru Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Notable Question Yearling Famous Question Census Nice Question Good Question Popular Question Popular Question Popular Question Famous Question Yearling,NULL,How to extract CN from X509Certificate in Java java ssl x509certificate x509 pI am using codeSslServerSocket code and client certificates and want to extract the CN from the SubjectDN from the client codeX509Certificate code ppAt the moment call codecert getSubjectX500Principal getName code but this of course gives me the total formatted DN of the client For some reason am just interested in the codeCN theclient code part of the DN Is there way to extract this part of the DN without parsing the String myself You realized that my question is about years older than the one linked So if anything the other is duplicate of mine,0,NULL,NULL 49492,934404,827271,NULL,NULL,NULL,0,NULL,NULL 49493,507981,532218,Student,NULL,NULL,0,NULL,NULL 49494,483741,1033407,NULL,NULL,NULL,0,NULL,NULL 49495,95859,159832,NULL,NULL,NULL,0,NULL,NULL 49496,6186,53943,Yearling Notable Question Promoter Nice Answer Enlightened Caucus Yearling Notable Question Notable Question Civic Duty Benefactor Caucus Constituent Famous Question Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 49497,750113,934396,NULL,NULL,NULL,0,NULL,NULL 49498,4305866,557122,NULL,NULL,NULL,0,NULL,NULL 49499,7709,557122,NULL,NULL,NULL,0,NULL,NULL 49500,144293,1474757,Self-Learner Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49501,13536,89391,Notable Question Populist Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Question Nice Answer Enlightened Good Answer Yearling Nice Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question Nice Answer Popular Question Guru Guru Good Answer Notable Question Good Answer Nice Answer Enlightened Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Caucus Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Popular Question Nice Answer Nice Question Nice Answer Good Answer Nice Answer Good Answer Census Great Answer Nice Answer Guru Revival Nice Answer Nice Answer Great Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Good Answer Great Answer Great Answer Great Answer Good Answer Notable Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Census Good Answer Popular Question Guru Notable Question Famous Question Necromancer Good Answer Caucus Nice Answer Enlightened Good Answer Good Question Nice Answer Enlightened Great Answer Good Answer Yearling Good Answer Great Answer Good Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Guru Guru Famous Question Nice Answer Nice Answer Enlightened Famous Question,NULL,ulli href http web archive org web 20180411005433 http deron meranda us data census dist female first txt rel nofollow noreferrer http deron meranda us data census dist female first txt 4275 entries lili href http web archive org web 20180412091752 http deron meranda us 80 data census dist male first txt rel nofollow noreferrer http deron meranda us data census dist male first txt 1219 entries lili pmale and female names combined href http web archive org web 20180503212156 http deron meranda us 80 data census derived all first txt rel nofollow noreferrer http deron meranda us data census derived all first txt li ulpTo format it nicely ppre code curl http deron meranda us data census dist female first txt awk print code pre that shame somehow over 30 people seem to find this list of names each day The web archive org http web archive org still had links pAssuming UTF XML documents ppre codeperl CSDA pe x9 xA xD x20 D7FF E000 FFFD 10000 10FFFF file xml gt file fixed xml code prepIf you want to encode the bad bytes instead ppre codeperl CSDA pe x9 xA xD x20 D7FF E000 FFFD 10000 10FFFF amp ord xeg file xml gt file fixed xml code prepYou can call it few different ways ppre codeperl CSDA pe file xml gt file fixed xmlperl CSDA pe file xml Inplace with backupperl CSDA pe file xml Inplace without backup code pre This is great solution tiny edge case where this fails OOM large file containing just single line pThe short answer is that you have to write your own logic to do this ppI would expect this kind of feature to emerge from the following projects built on top of docker and designed to support applications in production pulli href https flynn io rel noreferrer flynn lili href http deis io rel noreferrer deis lili href http coreos com rel noreferrer coreos lili href http mesosphere io 2013 09 26 docker on mesos rel noreferrer Mesos li ulh1Update h1pAnother related project recently discovered pulli href https github com toscanini maestro rel noreferrer maestro li ulh1Update h1pThe latest release Openstack contains support for managing Docker containers pulli href https wiki openstack org wiki Docker rel noreferrer Docker Openstack lili href http www sebastien han fr blog 2013 10 31 build paas zone within your openstack cloud rel noreferrer Paas zone within OpenStack li ulh1Update h1pSystem for managing Docker instances pulli href http shipyard project com rel noreferrer Shipyard li ulpAnd presentation on how to use tools like href http www packer io rel noreferrer Packer Docker and href http www serfdom io rel noreferrer Serf to deliver an immutable server infrastructure pattern pulli href http www infoq com news 2013 12 futureops rel noreferrer FutureOps with Immutable Infrastructure lili href http www slideshare net profyclub ru mitchell hashimoto hashicorp rel noreferrer Slides li ulh1Update h1pA neat article on how to wire together docker containers using href http www serfdom io rel noreferrer serf pulli href http www centurylinklabs com decentralizing docker how to use serf with docker rel noreferrer Decentralizing Docker How to use serf with Docker li ulh1Update h1pRun Docker on href http mesos apache org rel noreferrer Mesos using the href https github com mesosphere marathon rel noreferrer Marathon framework pp href https mesosphere io learn run docker on mesosphere cluster rel noreferrer Mesosphere Docker Developer Tutorial ph1Update h1pRun Docker on href http www tsuru io rel noreferrer Tsuru as it supports href https github com tsuru docker cluster rel noreferrer docker cluster and href http docs tsuru io en latest provisioners docker schedulers html rel noreferrer segregated scheduler deploy pulli href http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers rel noreferrer http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers li ulh1Update h1pDocker based environments orchestration pp href https github com signalfuse maestro ng rel noreferrer maestro ng ph1Update h1p href http decking io rel noreferrer decking io ph1Update h1pGoogle href https github com GoogleCloudPlatform kubernetes rel noreferrer kubernetes ph1Update 10 h1pRedhat have refactored their openshift PAAS to integrate Docker pulli href http www projectatomic io rel noreferrer Project Atomic lili href http openshift github io geard rel noreferrer Geard li ulh1Update 11 h1pA Docker NodeJS lib wrapping the Docker command line and managing it from json file pulli href https github com iorga group docker cmd rel noreferrer docker cmd li ulh1Update 12 h1pAmazon new href https aws amazon com ecs details rel noreferrer container service enables scaling in the cluster ph1Update 13 h1pStrictly speaking href https github com ClusterHQ flocker rel noreferrer Flocker does not scale applications but it is designed to fufil related function of making stateful containers running databases services portable across multiple docker hosts pp href https clusterhq com rel noreferrer https clusterhq com ph1Update 14 h1pA project to create portable templates that describe Docker applications pp href http panamax io rel noreferrer http panamax io ph1Update 15 h1pThe Docker project is now addressing orchestration natively See href https blog docker com 2015 02 orchestrating docker with machine swarm and compose rel noreferrer announcement pulli href https docs docker com machine rel noreferrer Docker machine lili href https docs docker com swarm rel noreferrer Docker swarm lili href https docs docker com compose rel noreferrer Docker compose li ulh1Update 16 h1p href https github com spotify helios rel noreferrer Spotify Helios ppSee also pulli href https blog docker com tag helios rel noreferrer https blog docker com tag helios li ulh1Update 17 h1pThe Openstack project now has new container as service project called Magnum pulli href https wiki openstack org wiki Magnum rel noreferrer https wiki openstack org wiki Magnum li ulpShows lot of promise enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm ph1Update 18 h1pRancher is project that is maturing rapidly pp href http rancher com rel noreferrer http rancher com ppNice UI and strong focus on hyrbrid Docker infrastructures ph1Update 19 h1pThe href http lattice cf rel noreferrer Lattice project is an offshoot of Cloud Foundry for managing container clusters ph1Update 20 h1pDocker recently bought Tutum pp href https www docker com tutum rel noreferrer https www docker com tutum ph1Update 21 h1pPackage manager for applications deployed on href http kubernetes io rel noreferrer Kubernetes pp href http helm sh rel noreferrer http helm sh ph1Update 22 h1pVamp is an open source and self hosted platform for managing micro service oriented architectures that rely on container technology pp href http vamp io rel noreferrer http vamp io ph1Update 23 h1pA Distributed Highly Available Datacenter Aware Scheduler pulli href https www nomadproject io rel noreferrer https www nomadproject io li ulpFrom the guys that gave us Vagrant and other powerful tools ph1Update 24 h1pContainer hosting solution for AWS open source and based on href http kubernetes io rel noreferrer Kubernetes pp href https supergiant io rel noreferrer https supergiant io ph1Update 25 h1pApache Mesos based container hosted located in Germany pp href https sloppy io features features rel noreferrer https sloppy io features features ppAnd Docker Inc also provide container hosting service called Docker cloud pp href https cloud docker com rel noreferrer https cloud docker com ph1Update 26 h1p href https jelastic com blog docker swarm auto clustering and scaling with paas rel noreferrer Jelastic is hosted PAAS service that scales containers automatically Something related https sloppy io,0,NULL,NULL 49502,3431701,1152030,NULL,NULL,NULL,0,NULL,NULL 49503,142418,118125,Notable Question Taxonomist Nice Question Popular Question Nice Question Notable Question Notable Question Yearling Good Question Nice Answer Famous Question Notable Question Nice Question Caucus Popular Question Constituent Popular Question Nice Answer Nice Question Notable Question Notable Question Revival Yearling Popular Question Popular Question Nice Question Favorite Question Notable Question Necromancer Popular Question Nice Question Documentation User Nice Question Famous Question Nice Question Popular Question Socratic Benefactor Nice Question Popular Question Necromancer Caucus Constituent Popular Question Popular Question Revival Yearling Popular Question Popular Question,NULL,pFor href http code google com macvim rel noreferrer MacVim and Windows Gvim simply add the following to your code vimrc code ppre codeset clipboard unnamed code prepNow all operations such as codeyy code codeD code and codeP code work with the clipboard No need to prefix them with code code or code code use vim installed via brew within the terminal Do you think it would be possible to compile vim with the clipboard feature,0,NULL,NULL 49504,779481,823955,Popular Question Citizen Patrol Census Nice Question Yearling,NULL,NULL,0,NULL,NULL 49505,250154,1455266,NULL,NULL,NULL,0,NULL,NULL 49506,164406,66722,Popular Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Question Notable Question Nice Question Popular Question Yearling Famous Question Yearling Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 49507,508859,7147,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49508,414684,754456,Civic Duty Reviewer Mortarboard Custodian Custodian Nice Answer Revival python Good Answer Electorate Populist Unsung Hero Necromancer Proofreader Yearling Nice Answer Reviewer Strunk & White Fanatic Great Answer Announcer Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Nice Answer Necromancer python Synonymizer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Custodian Revival Yearling Nice Answer Nice Answer Good Answer,NULL,NULL,1,NULL,Beautiful Soup if Class Contains or Regex python regex web scraping beautifulsoup pIf my class names are constantly different say for example ppre codelisting col line 11 dpt 41listing col block 22 dpt 41listing col line 13 CWK 12 code prepNormally could do ppre codefor EachPart in soup find all div class ClassNamesHere print EachPart get text code prepThere are way too many class names to work with here so bunch of these are out ppI know Python doesn have contains would normally use but it does have an in Though haven been able to work out way to incorporate that ppI hoping there way to do this with regex Though again my Python syntax is really letting me down ve been trying variations on ppre coderegex re compile listing col for EachPart in soup find all regex code prepBut that doesn seem to be doing the trick pBeautifulSoup supports href http www crummy com software BeautifulSoup bs4 doc css selectors rel noreferrer CSS selectors which allow you to select elements based on the content of particular attributes This includes the selector code code for contains ppThe following will return all codediv code elements with codeclass code attribute containing the text listing col ppre codefor EachPart in soup select div class listing col print EachPart get text code pre 49509,326246,752728,NULL,NULL,NULL,0,NULL,NULL 49510,674212,1130901,Nice Answer,NULL,NULL,0,NULL,NULL 49511,8913,437553,Supporter,NULL,NULL,0,NULL,NULL 49512,31272,130167,Yearling,NULL,NULL,0,NULL,NULL 49513,413288,1365989,NULL,NULL,NULL,0,NULL,NULL 49514,955380,405194,Notable Question,NULL,NULL,0,NULL,NULL 49515,422703,1262371,Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 49516,560946,1105508,NULL,NULL,NULL,0,NULL,NULL 49517,136384,1305570,NULL,NULL,NULL,0,NULL,NULL 49518,783594,854632,NULL,NULL,NULL,0,NULL,NULL 49519,542728,952753,Revival Yearling Yearling objective-c Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49520,287189,858554,NULL,NULL,NULL,0,NULL,NULL 49521,39725,196651,NULL,NULL,NULL,0,NULL,NULL 49522,149567,1218905,Favorite Question Yearling Nice Answer Editor Yearling,NULL,NULL,0,NULL,NULL 49523,12539,568723,Popular Question,NULL,NULL,0,NULL,NULL 49524,184277,742112,NULL,NULL,NULL,0,NULL,NULL 49525,1567546,1461617,Teacher,NULL,NULL,0,NULL,NULL 49526,3897,276949,Good Answer Great Question Nice Answer Enlightened Strunk & White Nice Question Populist Nice Answer Enlightened Necromancer Nice Answer Yearling Necromancer Nice Answer Enlightened Guru Nice Question Nice Answer Nice Answer Necromancer regex Good Answer Nice Answer Enlightened Good Answer Enlightened Nice Answer Popular Question Necromancer Famous Question Nice Answer Good Answer Notable Question Announcer Favorite Question Nice Answer Necromancer Good Answer Famous Question Popular Question Necromancer Popular Question Notable Question Great Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Enlightened mongodb Nice Question Good Answer Popular Question Popular Question Good Question Necromancer Guru Notable Question Great Answer Nice Answer Enlightened Good Answer Nice Question Guru Announcer Popular Question Guru Necromancer Announcer Popular Question Nice Answer Enlightened Notable Question Nice Answer Announcer Notable Question Custodian Nice Answer Enlightened Necromancer bash php Guru Good Answer Good Answer Announcer Nice Answer Yearling Notable Question Announcer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Benefactor Nice Answer Enlightened Nice Answer Nice Answer Necromancer Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49527,332172,90998,Good Answer Custodian Custodian Nice Answer Enlightened Revival Yearling Popular Question Great Answer Nice Answer Necromancer Popular Question Nice Answer Nice Answer Enlightened Announcer Notable Question Nice Answer Necromancer Good Answer Notable Question react-native Great Answer Taxonomist Census Popular Question Good Answer Good Answer Notable Question Popular Question Yearling Nice Question Nice Answer Notable Question Great Answer Nice Question Nice Answer Notable Question Necromancer Nice Answer Famous Question Announcer Popular Question Good Question Disciplined Nice Answer Enlightened Necromancer Yearling Guru Custodian Great Answer Famous Question Notable Question Favorite Question Good Answer Favorite Question Necromancer Nice Answer Nice Answer Good Answer Great Question Nice Question Great Question,NULL,pThe answers are correct but don mention how to sync code between the public repo and the fork ppHere is the full workflow we ve done this before open sourcing href https github com facebook react native rel noreferrer React Native phrpFirst duplicate the repo as others said details href https help github com articles duplicating repository rel noreferrer here ppCreate new repo let call it codeprivate repo code via the href https github com new rel noreferrer Github UI Then ppre codegit clone bare https github com exampleuser public repo gitcd public repo gitgit push mirror https github com yourname private repo gitcd rm rf public repo git code prehrpClone the private repo so you can work on it ppre codegit clone https github com yourname private repo gitcd private repomake some changesgit commitgit push origin master code prehrpTo pull new hotness from the public repo ppre codecd private repogit remote add public https github com exampleuser public repo gitgit pull public master Creates merge commitgit push origin master code prepAwesome your private repo now has the latest code from the public repo plus your changes phrpFinally to create pull request private repo public repo ppThe only way to create pull request is to have push access to the public repo This is because you need to push to branch there href https stackoverflow com questions 14821583 pull request without forking here why ppre codegit clone https github com exampleuser public repo gitcd public repogit remote add private repo yourname https github com yourname private repo gitgit checkout pull request yournamegit pull private repo yourname mastergit push origin pull request yourname code prepNow simply create pull request via the Github UI for public repo as described href https help github com articles creating pull request rel noreferrer here ppOnce project owners review your pull request they can merge it ppOf course the whole process can be repeated just leave out the steps where you add remotes sure what posted here is not the only way to do it pThe answers are correct but don mention how to sync code between the public repo and the fork ppHere is the full workflow we ve done this before open sourcing href https github com facebook react native rel noreferrer React Native phrpFirst duplicate the repo as others said details href https help github com articles duplicating repository rel noreferrer here ppCreate new repo let call it codeprivate repo code via the href https github com new rel noreferrer Github UI Then ppre codegit clone bare https github com exampleuser public repo gitcd public repo gitgit push mirror https github com yourname private repo gitcd rm rf public repo git code prehrpClone the private repo so you can work on it ppre codegit clone https github com yourname private repo gitcd private repomake some changesgit commitgit push origin master code prehrpTo pull new hotness from the public repo ppre codecd private repogit remote add public https github com exampleuser public repo gitgit pull public master Creates merge commitgit push origin master code prepAwesome your private repo now has the latest code from the public repo plus your changes phrpFinally to create pull request private repo public repo ppThe only way to create pull request is to have push access to the public repo This is because you need to push to branch there href https stackoverflow com questions 14821583 pull request without forking here why ppre codegit clone https github com exampleuser public repo gitcd public repogit remote add private repo yourname https github com yourname private repo gitgit checkout pull request yournamegit pull private repo yourname mastergit push origin pull request yourname code prepNow simply create pull request via the Github UI for public repo as described href https help github com articles creating pull request rel noreferrer here ppOnce project owners review your pull request they can merge it ppOf course the whole process can be repeated just leave out the steps where you add remotes Singh Yes the last step will push the private commit history to the public repo If you don want that you could squash your commits when merging them to the public repo and push single commit with all your changes See https stackoverflow com questions 5308816 how to use git merge squash,0,NULL,NULL 49528,30094,526228,Critic Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49529,625882,562649,NULL,NULL,NULL,0,NULL,NULL 49530,1049738,835653,Good Answer Supporter Yearling Caucus Critic Announcer Caucus Announcer Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 49531,1702293,835653,Good Answer Supporter Yearling Caucus Critic Announcer Caucus Announcer Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 49532,393585,1014655,NULL,NULL,NULL,0,NULL,NULL 49533,810484,1268457,NULL,NULL,NULL,0,NULL,NULL 49534,712327,1268457,NULL,NULL,NULL,0,NULL,NULL 49535,202428,1068036,NULL,NULL,NULL,0,NULL,NULL 49536,1735734,1390123,Nice Question Yearling Custodian Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Self-Learner Notable Question Notable Question Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 49537,359419,1390123,Nice Question Yearling Custodian Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Self-Learner Notable Question Notable Question Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 49538,171791,108677,NULL,NULL,NULL,0,NULL,NULL 49539,1568894,1519204,NULL,NULL,NULL,0,NULL,NULL 49540,167750,42793,Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 49541,549370,89183,Popular Question,NULL,NULL,0,NULL,NULL 49542,3369573,231934,Yearling Notable Question Popular Question Notable Question Citizen Patrol Notable Question Yearling Popular Question Custodian Popular Question Inquisitive Popular Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 49543,44293,146625,Civic Duty Informed Yearling,NULL,NULL,0,NULL,NULL 49544,105317,645030,Excavator Necromancer,NULL,NULL,0,NULL,NULL 49545,573165,472220,Popular Question Popular Question Notable Question Nice Question Nice Question Popular Question Excavator Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Yearling Popular Question Popular Question Notable Question Revival Notable Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 49546,150601,85353,Yearling Necromancer Famous Question Revival Disciplined Popular Question,NULL,NULL,0,NULL,NULL 49547,3718,1094941,Nice Answer Enlightened Guru Guru Nice Answer Good Answer Guru Great Answer Caucus Yearling Student Scholar Caucus Announcer Great Answer Nice Answer Yearling Census Caucus Constituent Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 49548,261180,961104,NULL,NULL,NULL,0,NULL,NULL 49549,108546,1060230,NULL,NULL,NULL,0,NULL,NULL 49550,441460,1557906,NULL,NULL,NULL,0,NULL,NULL 49551,273001,191967,Popular Question Popular Question Popular Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49552,105445,107987,Critic Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 49553,153815,281360,NULL,NULL,NULL,0,NULL,NULL 49554,6611,965979,Yearling Good Answer Notable Question Nice Answer Yearling Excavator Yearling Great Answer,NULL,NULL,0,NULL,NULL 49555,2216956,274326,Editor Necromancer,NULL,NULL,0,NULL,NULL 49556,29173,22831,Popular Question,NULL,NULL,0,NULL,NULL 49557,873039,211554,NULL,NULL,NULL,0,NULL,NULL 49558,5452669,2581,Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Answer Caucus Nice Answer Popular Question Notable Question Popular Question Caucus Yearling Famous Question Popular Question Revival Caucus Constituent Notable Question Yearling,NULL,NULL,0,NULL,NULL 49559,436611,862111,NULL,NULL,NULL,0,NULL,NULL 49560,808854,46343,Popular Question Yearling Good Answer Famous Question Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 49561,122269,1100285,NULL,NULL,NULL,0,NULL,NULL 49562,429822,612427,NULL,NULL,NULL,0,NULL,NULL 49563,183744,235910,Guru Nice Question Custodian Yearling Caucus Documentation User Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49564,542565,910743,NULL,NULL,NULL,0,NULL,NULL 49565,417659,910743,NULL,NULL,NULL,0,NULL,NULL 49566,151973,266182,Notable Question,NULL,NULL,0,NULL,NULL 49567,6105,465797,NULL,NULL,NULL,0,NULL,NULL 49568,482768,619382,NULL,NULL,NULL,0,NULL,NULL 49569,183119,595272,Tumbleweed Student,NULL,NULL,0,NULL,NULL 49570,39602,1375574,Yearling Announcer Good Answer Announcer Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 49571,403653,20247,Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Answer Good Question Popular Question Famous Question Popular Question Nice Answer Enlightened Revival Popular Question django Popular Question Popular Question Famous Question Yearling Documentation User Popular Question Popular Question Popular Question Nice Answer Popular Question Good Answer Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 49572,3328534,20247,Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Answer Good Question Popular Question Famous Question Popular Question Nice Answer Enlightened Revival Popular Question django Popular Question Popular Question Famous Question Yearling Documentation User Popular Question Popular Question Popular Question Nice Answer Popular Question Good Answer Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 49573,135487,1257417,Editor Popular Question,NULL,NULL,0,NULL,NULL 49574,765246,537115,NULL,NULL,NULL,0,NULL,NULL 49575,104872,391535,NULL,NULL,NULL,0,NULL,NULL 49576,51986,147759,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49577,355522,780233,NULL,NULL,NULL,0,NULL,NULL 49578,881334,921100,NULL,NULL,NULL,0,NULL,NULL 49579,16142,549238,Popular Question Revival Revival Census,NULL,NULL,0,NULL,NULL 49580,214321,437679,Nice Answer Popular Question Nice Question Yearling Good Answer Enthusiast Proofreader Informed Custodian Custodian Custodian Good Question Nice Answer Nice Answer Enlightened Nice Answer Popular Question Famous Question Nice Answer Nice Answer Nice Answer Yearling Nice Answer Documentation User Nice Question Good Answer Good Answer Nice Answer Enlightened Notable Question Enlightened Good Answer Popular Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 49581,109591,660921,Good Answer Nice Answer Enlightened Suffrage Reviewer Vox Populi Talkative Archaeologist Yearling Marshal Famous Question Nice Answer Enlightened Fanatic Nice Answer Good Answer Announcer bash Taxonomist Good Answer Documentation Beta Nice Answer Announcer Steward Steward Refiner Steward Nice Answer Enlightened Steward Caucus Constituent ruby Synonymizer Census Necromancer Nice Answer Guru Announcer Yearling Announcer Nice Answer Enlightened Self-Learner Caucus Guru Constituent Announcer vim Nice Answer Enlightened Nice Answer Popular Question Documentation User Announcer Nice Answer Enlightened Announcer Announcer Good Answer Census Nice Answer Enlightened Good Answer Popular Question Caucus Yearling Constituent Announcer Nice Answer Announcer Good Answer Announcer Announcer Revival Nice Answer Announcer Popular Question Guru python go Nice Answer Enlightened Announcer Notable Question,NULL,pre codeecho ne lt yourfinecommandhere gt code prepor taking advantage of the implicit newline that echo generates thanks Marcin ppre codeecho lt yourfinecommandhere gt code pre The behaviour of echo is highly dependent on your shell and system it varies quite lot actually which explains some of the comments The only thing that is guaranteed to work is echo string without escape characters There is no need to add this part to your answer as echo cmd is exactly the same recommend you edit it out if you do want an explicit newline echo then printf is the portable way to do that,1,How can check if the race detector is enabled at runtime go pIs there any way can check if the Go program is compiled with code race code enabled at runtime for logging informational purposes ppI checked the href https blog golang org race detector rel noreferrer documentation as well as the obvious locations coderuntime code but can find anything,NULL 49582,208197,1031606,Great Answer Necromancer Notable Question Necromancer Yearling Caucus Excavator Caucus Nice Answer Yearling Custodian Caucus Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,pIf you don have to support IE9 you can just use codewindow matchMedia code href https developer mozilla org en US docs Web API Window matchMedia MDN documentation ppre codefunction checkPosition if window matchMedia max width 767px matches else code prep codewindow matchMedia code is fully consistent with the CSS media queries and the browser support is quite good href http caniuse com feat matchmedia http caniuse com feat matchmedia ph2UPDATE h2pIf you have to support more browsers you can use href http modernizr com docs mq Modernizr mq method it supports all browsers that understand media queries in CSS ppre codeif Modernizr mq max width 767px else code pre The solution from NateS is the same technique that is used by Modernizr mq but Modernizr uses window matchMedia on modern browsers which is the recommended way pIf you don have to support IE9 you can just use codewindow matchMedia code href https developer mozilla org en US docs Web API Window matchMedia MDN documentation ppre codefunction checkPosition if window matchMedia max width 767px matches else code prep codewindow matchMedia code is fully consistent with the CSS media queries and the browser support is quite good href http caniuse com feat matchmedia http caniuse com feat matchmedia ph2UPDATE h2pIf you have to support more browsers you can use href http modernizr com docs mq Modernizr mq method it supports all browsers that understand media queries in CSS ppre codeif Modernizr mq max width 767px else code pre window matchMedia is the recommended way because it doesn’t trigger reflow http www phpied com rendering repaint reflowrelayout restyle depending on how often you call the function this can cause performance problem If you don’t want to use Modernizr directly you can copy the source code from src mq js https github com Modernizr Modernizr blob 5eea7e2a213edc9e83a47b6414d0250468d83471 src mq js and src injectElementWithStyles js https github com Modernizr Modernizr blob 5eea7e2a213edc9e83a47b6414d0250468d83471 src injectElementWithStyles js,0,NULL,NULL 49583,68342,946935,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Critic,NULL,NULL,0,NULL,NULL 49584,1141499,723540,Yearling Notable Question Commentator,NULL,NULL,0,NULL,NULL 49585,5233,166018,NULL,NULL,NULL,0,NULL,NULL 49586,411377,334659,NULL,NULL,NULL,0,NULL,NULL 49587,1652690,288171,Famous Question,NULL,NULL,0,NULL,NULL 49588,422078,1241441,NULL,NULL,NULL,0,NULL,NULL 49589,294340,695435,NULL,NULL,NULL,0,NULL,NULL 49590,98841,158842,NULL,NULL,NULL,0,NULL,NULL 49591,187353,613782,Famous Question Yearling Caucus,NULL,NULL,0,NULL,NULL 49592,21719,132475,Revival,NULL,NULL,0,NULL,NULL 49593,18355,135484,Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49594,134311,611182,Student Scholar Good Answer Yearling Necromancer Tag Editor Nice Answer Enlightened Good Answer Guru Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 49595,584904,1384275,NULL,NULL,NULL,0,NULL,NULL 49596,7472,195967,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 49597,750473,289697,NULL,NULL,NULL,0,NULL,NULL 49598,894802,798031,NULL,NULL,NULL,0,NULL,NULL 49599,187883,1065467,NULL,NULL,NULL,0,NULL,NULL 49600,28983,271164,Necromancer,NULL,NULL,0,NULL,NULL 49601,504638,110204,Good Answer Nice Answer Guru Great Answer Nice Answer Good Answer Notable Question Guru Popular Question Revival Nice Answer Yearling Nice Answer Nice Answer Guru Nice Answer Good Answer Guru Nice Answer Nice Answer Great Answer Good Answer Revival Popular Question Necromancer Nice Answer Good Answer Nice Answer Good Answer Yearling Announcer Good Answer Nice Answer Nice Question Great Answer Nice Answer Revival Announcer Publicist Census Good Answer Notable Question Nice Answer Guru Great Answer Good Answer Yearling Guru Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 49602,54179,1106582,Popular Question,NULL,NULL,0,NULL,NULL 49603,323409,1250569,NULL,NULL,NULL,0,NULL,NULL 49604,996145,1368969,NULL,NULL,NULL,0,NULL,NULL 49605,245442,1368969,NULL,NULL,NULL,0,NULL,NULL 49606,107767,1486007,NULL,NULL,NULL,0,NULL,NULL 49607,833151,605549,NULL,NULL,NULL,0,NULL,NULL 49608,9180,441269,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 49609,540851,296613,NULL,NULL,NULL,0,NULL,NULL 49610,446575,403702,Famous Question Tag Editor Documentation Pioneer Custodian Critic Yearling Autobiographer Popular Question Good Question Yearling Good Question Caucus Yearling Documentation User Good Question Revival Yearling,NULL,NULL,0,NULL,NULL 49611,282553,1014645,Notable Question,NULL,NULL,0,NULL,NULL 49612,178831,990363,Nice Answer Enlightened applescript Nice Answer Enlightened Yearling Announcer Announcer Announcer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49613,129548,157684,Yearling Good Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 49614,660672,1378453,Scholar Student Great Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Self-Learner Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 49615,390026,25608,NULL,NULL,NULL,0,NULL,NULL 49616,118777,529638,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49617,158868,323293,NULL,NULL,NULL,0,NULL,NULL 49618,102474,1460186,Informed,NULL,NULL,0,NULL,NULL 49619,3812,441554,Popular Question Notable Question Necromancer Commentator Curious,NULL,NULL,0,NULL,NULL 49620,172277,116973,Informed Yearling Organizer Tumbleweed Promoter Nice Answer Enlightened Caucus Necromancer,NULL,NULL,0,NULL,NULL 49621,168561,1239254,Notable Question,NULL,NULL,0,NULL,NULL 49622,358692,569049,NULL,NULL,NULL,0,NULL,NULL 49623,3420255,612005,Yearling,NULL,NULL,0,NULL,NULL 49624,4436607,1260369,NULL,NULL,NULL,0,NULL,NULL 49625,30396,1260369,NULL,NULL,NULL,0,NULL,NULL 49626,932628,349003,Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49627,528557,94394,Good Answer Yearling Popular Question Famous Question Good Question Notable Question Notable Question Great Answer Yearling Famous Question Guru Yearling Popular Question Good Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 49628,10764,487036,NULL,NULL,NULL,0,NULL,NULL 49629,427942,4507,Popular Question Famous Question Yearling Census Yearling,NULL,NULL,0,NULL,NULL 49630,51391,44289,Yearling Yearling,NULL,NULL,0,NULL,NULL 49631,572487,687438,Yearling Yearling Nice Answer Enlightened Caucus Guru Yearling Nice Answer Enlightened Caucus Good Answer go Caucus Yearling,NULL,NULL,0,NULL,NULL 49632,414282,603553,NULL,NULL,NULL,0,NULL,NULL 49633,33876,944998,NULL,NULL,NULL,0,NULL,NULL 49634,299350,70665,Yearling Revival Nice Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 49635,64238,102205,Nice Answer Enlightened Notable Question Guru Popular Question Notable Question Nice Answer Enlightened Yearling Nice Answer Good Question Good Question Nice Answer Documentation Pioneer Popular Question Popular Question Nice Answer Enlightened Notable Question Announcer Popular Question Popular Question Popular Question Caucus Notable Question Popular Question php Good Answer Great Answer Good Answer Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Famous Question Socratic Guru Nice Answer Caucus Good Answer laravel Famous Question Nice Answer Enlightened Famous Question Documentation User Famous Question Popular Question Populist Popular Question Nice Answer Popular Question Popular Question Favorite Question Famous Question Good Answer Good Answer laravel-4 Good Answer Popular Question Nice Answer Enlightened Nice Answer Notable Question Popular Question Popular Question Popular Question Yearling cakephp Popular Question Nice Answer Enlightened Necromancer Nice Question Good Answer Favorite Question laravel-5 Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49636,115305,42199,Popular Question,NULL,NULL,0,NULL,NULL 49637,25201,825879,Self-Learner Famous Question Nice Question Popular Question Popular Question Yearling Curious Good Answer Notable Question Nice Answer Necromancer Nice Answer Enlightened Yearling Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 49638,333865,219443,Notable Question Famous Question Popular Question Notable Question Famous Question Notable Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Good Question Popular Question Famous Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 49639,1376077,659297,NULL,NULL,NULL,0,NULL,NULL 49640,236053,589864,NULL,NULL,NULL,0,NULL,NULL 49641,116211,956809,Supporter,NULL,NULL,0,NULL,NULL 49642,234916,346546,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49643,8415422,691345,Notable Question Good Answer Yearling Notable Question Custodian Caucus Nice Answer Enlightened Notable Question Excavator Yearling Notable Question Notable Question Self-Learner Popular Question Revival Popular Question Tenacious Census Unsung Hero Great Answer Yearling Popular Question Popular Question Notable Question Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 49644,183788,691345,Notable Question Good Answer Yearling Notable Question Custodian Caucus Nice Answer Enlightened Notable Question Excavator Yearling Notable Question Notable Question Self-Learner Popular Question Revival Popular Question Tenacious Census Unsung Hero Great Answer Yearling Popular Question Popular Question Notable Question Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 49645,19833,917020,NULL,NULL,NULL,0,NULL,NULL 49646,470032,917020,NULL,NULL,NULL,0,NULL,NULL 49647,337459,106092,Nice Answer Yearling Caucus Nice Answer Enlightened Good Answer Necromancer Yearling Announcer verilog Announcer Census Nice Answer Necromancer Caucus Constituent Good Answer Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 49648,335576,1252772,Notable Question,NULL,NULL,0,NULL,NULL 49649,355937,557775,Good Answer Notable Question Yearling Tumbleweed Curious Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 49650,60545,262975,NULL,NULL,NULL,0,NULL,NULL 49651,28867,625422,Good Question,NULL,NULL,0,NULL,NULL 49652,78832,1485758,NULL,NULL,NULL,0,NULL,NULL 49653,75359,1308357,NULL,NULL,NULL,0,NULL,NULL 49654,73242,375721,Peer Pressure Popular Question Yearling Revival Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Nice Question Famous Question Famous Question Nice Question Popular Question Notable Question Nice Question Famous Question Yearling Popular Question Yearling Notable Question Good Question Good Question Popular Question Good Question Inquisitive Necromancer Yearling Popular Question Popular Question Yearling Popular Question Yearling Popular Question Favorite Question Notable Question Nice Answer Notable Question Popular Question Great Question Popular Question Nice Answer Popular Question Popular Question Custodian Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 49655,44597,246749,NULL,NULL,NULL,0,NULL,NULL 49656,61845,33006,Famous Question Good Answer Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Great Answer Nice Answer Popular Question Great Answer Nice Answer Nice Answer Enlightened Guru Yearling Good Answer Guru Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Nice Answer Guru Good Answer Guru Good Answer Great Answer Nice Answer Good Answer Informed Nice Answer Guru Guru Nice Answer Great Answer Popular Question Nice Answer Guru Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Guru Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 49657,1517319,1053423,NULL,NULL,NULL,0,NULL,NULL 49658,9071,477126,Yearling,NULL,NULL,0,NULL,NULL 49659,31639,824937,NULL,NULL,NULL,0,NULL,NULL 49660,103677,1413371,Informed,NULL,NULL,0,NULL,NULL 49661,154185,43451,NULL,NULL,NULL,0,NULL,NULL 49662,152298,975668,NULL,NULL,NULL,0,NULL,NULL 49663,75165,698573,NULL,NULL,NULL,0,NULL,NULL 49664,135317,949078,Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 49665,185077,634533,NULL,NULL,NULL,0,NULL,NULL 49666,69262,673540,NULL,NULL,NULL,0,NULL,NULL 49667,57187,113643,Yearling Notable Question Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 49668,168560,1020792,Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49669,490735,205657,Notable Question Popular Question Famous Question Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 49670,744861,1142636,NULL,NULL,NULL,0,NULL,NULL 49671,221243,64406,Good Question Yearling Nice Answer Nice Question Popular Question Nice Question Caucus Nice Answer Good Answer Yearling Good Question Popular Question Nice Answer Yearling Popular Question Guru Good Question Good Answer,NULL,NULL,0,NULL,NULL 49672,68248,108234,Nice Answer Popular Question Notable Question Notable Question Good Answer Yearling Popular Question Great Answer Notable Question Notable Question Popular Question Documentation Pioneer Popular Question Caucus Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Announcer Yearling Nice Question Popular Question Popular Question Documentation User Popular Question Census Famous Question Good Question Yearling Custodian Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 49673,1127233,790360,Revival,NULL,NULL,0,NULL,NULL 49674,191096,1357118,Student Notable Question Announcer,NULL,NULL,0,NULL,NULL 49675,291234,884098,NULL,NULL,NULL,0,NULL,NULL 49676,477997,442216,Notable Question Nice Answer Popular Question Famous Question Inquisitive Popular Question Popular Question Custodian Informed Popular Question Caucus Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 49677,903585,305597,Notable Question Civic Duty Yearling Notable Question Popular Question Nice Question Popular Question Caucus Popular Question Famous Question Custodian Notable Question Nice Question Yearling Popular Question Popular Question Famous Question Yearling Famous Question Good Question Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49678,200382,764846,Nice Answer Nice Answer Enlightened jquery Good Answer arrays Nice Question Great Answer Yearling Popular Question Guru Guru Good Answer css Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Question Good Answer Good Answer Good Answer Nice Answer Good Question Great Answer Guru Famous Question Nice Answer Yearling Nice Answer Popular Question Guru,NULL,NULL,0,NULL,NULL 49679,92263,2481,Famous Question Nice Answer Popular Question Good Question Yearling Custodian Famous Question Good Answer Yearling Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 49680,585633,1238748,Necromancer Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49681,28084,160074,Necromancer Caucus Popular Question Custodian Caucus Yearling Excavator Caucus Nice Question,NULL,NULL,0,NULL,NULL 49682,219310,986816,Yearling Famous Question Popular Question Census Popular Question Nice Answer Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 49683,110630,1544075,Nice Question Yearling Notable Question Self-Learner Popular Question Popular Question Famous Question Autobiographer Caucus Nice Question Popular Question Caucus Custodian Custodian Custodian Critic Yearling Notable Question,NULL,NULL,0,NULL,NULL 49684,106078,284461,NULL,NULL,NULL,0,NULL,NULL 49685,271614,79286,Revival,NULL,NULL,0,NULL,NULL 49686,17870,175920,Popular Question Yearling Famous Question Notable Question Organizer Famous Question,NULL,NULL,0,NULL,NULL 49687,91417,1536066,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 49688,107990,99874,NULL,NULL,NULL,0,NULL,NULL 49689,1508500,515212,Citizen Patrol Explainer Enthusiast Yearling Notable Question Caucus Yearling Necromancer Caucus Custodian Census Caucus Popular Question,NULL,pmluebke code is not 100 correct kill can also raise EPERM access denied in which case that obviously means process exists This is supposed to work pp edited as per Jason Coombs comments ppre codeimport errnoimport osimport sysdef pid exists pid Check whether pid exists in the current process table UNIX only if pid lt return False if pid According to man kill PID refers to every process in the process group of the calling process On certain systems is valid PID but we have no way to know that in portable fashion raise ValueError invalid PID try os kill pid except OSError as err if err errno errno ESRCH ESRCH No such process return False elif err errno errno EPERM EPERM clearly means there process to deny access to return True else According to man kill possible error values are EINVAL EPERM ESRCH raise else return True code prepYou can do this on Windows unless you use pywin32 ctypes or extension module If you re OK with depending from an external lib you can use href https github com giampaolo psutil rel noreferrer psutil ppre code gt gt gt import psutil gt gt gt psutil pid exists 2353 True code pre in python3 os kill throws ProcessLookupError pFor any unsigned type building on the Bit Twiddling Hacks ppre code include lt climits gt include lt type traits gt template lt typename UnsignedType gt UnsignedType round up to power of UnsignedType static assert std is unsigned lt UnsignedType gt value Only works for unsigned types for size lt sizeof CHAR BIT Prefer size Warning comparison between signed and unsigned integer gt gt return code prepThere isn really loop there as the compiler knows at compile time the number of iterations Note that the question is about pFor any unsigned type building on the Bit Twiddling Hacks ppre code include lt climits gt include lt type traits gt template lt typename UnsignedType gt UnsignedType round up to power of UnsignedType static assert std is unsigned lt UnsignedType gt value Only works for unsigned types for size lt sizeof CHAR BIT Prefer size Warning comparison between signed and unsigned integer gt gt return code prepThere isn really loop there as the compiler knows at compile time the number of iterations Sure it would be nice to have an answer in Javascript as well just in case somebody wants to translate that to Find overlapping circles algorithm data structures computational geometry pI have rectangular area where there are circles with equal radius want to find which circles overlap with other circles the output is list of element sets of overlapping circles ppI know how to check if two of the circles overlap the distance between their centers is less than the diameter can perform this check for every pair of circles but was wondering if there is better algorithm faster than codeO code ppEDIT ppThe number of circles is usually about 100 and overlappings won happen very often ppHere is some context The rectangle is battlefield in game The movement of the units is done on small steps and trying to detect collisions between units is usually about 100 fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple Ghosh break down an operation into number of equivalent steps and store some data for each of the steps The number of steps must be large enough as to ensure that each step is sufficiently small The floating point number is an upper limit to the length of change in given step So basically use the upper limit of the length to determine how many steps to perform fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple using gcc fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple added the tag by mistake sorry The true expression after the macro expansions is unsigned 12 25 but since both generate the same error don think that the behavior is expression specific with respect to the exact numbers fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple think got the answer needed but in case somebody is curious have described my original problem in my question fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple have updated the question,1,Find overlapping circles algorithm data structures computational geometry pI have rectangular area where there are circles with equal radius want to find which circles overlap with other circles the output is list of element sets of overlapping circles ppI know how to check if two of the circles overlap the distance between their centers is less than the diameter can perform this check for every pair of circles but was wondering if there is better algorithm faster than codeO code ppEDIT ppThe number of circles is usually about 100 and overlappings won happen very often ppHere is some context The rectangle is battlefield in game The movement of the units is done on small steps and trying to detect collisions between units fixed size array treated as variable size c99 pI have been trying to define static array with size that should be known at compile time it constant expression It appears that gcc cannot determine the size of the array when it contains floating point constant and get storage size of isn’t constant ppHere is minimal example ppre codeint main void static int foo unsigned return code prepWhat is the reason for this behavior ppEDIT ppI already have the answer needed still don understand the rationale behind not allowing that kind of expressions but this is separate question ll explain for the curious how arrived at the problem ppIt about game writing as an excercise Units move on battlefield and have divided the movement in steps have to remember the position of each unit on each step so that can display animation later The number of steps is chosen so that it ensures there will be step on which units are close enough to fight each other but not so close as to collide Here are the relevant pieces of code ppre code define UNIT SPEED LIMIT 12 define DISTANCE MELEE 25 define MOVEMENT STEPS unsigned UNIT SPEED LIMIT DISTANCE MELEE struct position movements MOVEMENT STEPS code prepDefining codeDISTANCE MELEE code maximum distance at which close combat is possible and using it to calculate the number of steps seems to be the natural way to proceed more so because use this constant in multiple contexts Since cannot define codemovements code this way have to invent concept like number of steps for single unit of distance and use multiplication by codeint code instead of division by codedouble code want to avoid dynamic memory allocation in order to keep the code simple,NULL 49690,167452,1167234,Popular Question Yearling Nice Answer Popular Question python Announcer Yearling Notable Question Yearling Great Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49691,266200,669477,Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 49692,160636,44733,Guru Good Answer Guru Yearling Good Answer Announcer Yearling Populist Custodian,NULL,NULL,0,NULL,NULL 49693,7284990,627096,NULL,NULL,NULL,0,NULL,NULL 49694,888951,790552,NULL,NULL,NULL,0,NULL,NULL 49695,7005770,790552,NULL,NULL,NULL,0,NULL,NULL 49696,208437,234101,Popular Question,NULL,NULL,0,NULL,NULL 49697,187079,577857,Notable Question Revival Yearling Nice Question Excavator Popular Question Necromancer Cleanup Notable Question Yearling Nice Answer Famous Question Notable Question Popular Question Nice Answer Enlightened Necromancer Yearling Custodian Good Question Caucus Custodian Famous Question,NULL,pThis is number of seconds from some specific time what you see in You can convert it to date or time For example ppre codez lt 10485849601 10477641600 10561104000 10562745600 as POSIXct origin 1582 10 14 tz GMT code prepFor time values probably the best option is to use the codechron code library See the example ppre coderequire chron lt 58130 10981 chron times 24 60 60 code prepHave you tried the codehaven code package for reading the SPSS data See the updated answer,1,NULL,Read SPSS file into the data format for date is wrong and generate more variable pI have tried using ispss get from Hmisc Here is my code ppre code install packages Hmisc library Hmisc mydata lt spss get good good study comscore purchase sav use value labels TRUE code prepthe output is shown with warning message which is as follows ppre code gt mydata lt spss get good good study comscore purchase sav use value labels TRUE Warning messages In read spss file use value labels use value labels to data frame to data frame good good study comscore purchase sav Unrecognized record type subtype 14 encountered in system file2 In read spss file use value labels use value labels to data frame to data frame good good study comscore purchase sav Unrecognized record type subtype 18 encountered in system file code prepMy initial date in spss is as follow:a href http stack imgur com 3bbLi jpg rel nofollow date in spss is correct ppHowever, when use spss get in the data for date becomes garbled href http stack imgur com D7HDw png rel nofollow date become garbled in pThis is number of seconds from some specific time what you see in You can convert it to date or time For example ppre codez lt 10485849601 10477641600 10561104000 10562745600 as POSIXct origin 1582 10 14 tz GMT code prepFor time values probably the best option is to use the codechron code library See the example ppre coderequire chron lt 58130 10981 chron times 24 60 60 code prepHave you tried the codehaven code package for reading the SPSS data 49698,23199,675078,Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened android-ndk Yearling android Yearling Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 49699,297215,311359,NULL,NULL,NULL,0,NULL,NULL 49700,126757,271733,Revival Yearling Necromancer Necromancer Famous Question Nice Answer Necromancer Custodian Custodian Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 49701,385217,626261,NULL,NULL,NULL,0,NULL,NULL 49702,643609,869199,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 49703,2163063,869199,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 49704,133650,1052277,Good Answer,NULL,NULL,0,NULL,NULL 49705,1678324,1052277,Good Answer,NULL,NULL,0,NULL,NULL 49706,5457314,1052277,Good Answer,NULL,NULL,0,NULL,NULL 49707,146252,750186,Nice Question Popular Question Nice Question Nice Answer Enlightened Popular Question Popular Question Popular Question Yearling Good Question Notable Question Popular Question Notable Question Favorite Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Great Question Favorite Question Caucus Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49708,712884,439987,NULL,NULL,NULL,0,NULL,NULL 49709,423603,990063,Teacher,NULL,NULL,0,NULL,NULL 49710,844492,369531,Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 49711,102457,254845,Necromancer Excavator Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 49712,431445,235548,Custodian Caucus Constituent Yearling Nice Answer Yearling Nice Answer Necromancer Citizen Patrol Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49713,792679,1452023,Popular Question,NULL,NULL,0,NULL,NULL 49714,55752,572821,Necromancer Yearling Good Answer Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 49715,1064693,1064363,NULL,NULL,NULL,0,NULL,NULL 49716,200770,29555,Popular Question Yearling Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49717,212119,1156910,NULL,NULL,NULL,0,NULL,NULL 49718,579699,688354,NULL,NULL,NULL,0,NULL,NULL 49719,135093,239527,Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Yearling Announcer Famous Question Notable Question Great Answer Good Question Famous Question Notable Question Popular Question Yearling Famous Question Nice Question Favorite Question Popular Question Popular Question Notable Question Great Question Good Question,NULL,NULL,0,NULL,NULL 49720,312290,1275754,NULL,NULL,NULL,0,NULL,NULL 49721,80680,255244,Yearling Good Answer Notable Question Popular Question Popular Question Custodian Great Question Popular Question Popular Question Yearling Civic Duty Necromancer Guru Popular Question Favorite Question Documentation User Popular Question Census Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49722,312086,567333,NULL,NULL,NULL,0,NULL,NULL 49723,210705,1178767,NULL,NULL,NULL,0,NULL,NULL 49724,554220,879589,NULL,NULL,NULL,0,NULL,NULL 49725,286419,1253178,NULL,NULL,NULL,0,NULL,NULL 49726,586950,184630,Nice Answer Nice Answer Enlightened Yearling Nice Answer .net Good Answer Popular Question Caucus Nice Answer Enlightened Yearling Census Popular Question Popular Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 49727,31379,127793,NULL,NULL,NULL,0,NULL,NULL 49728,208350,1492239,NULL,NULL,NULL,0,NULL,NULL 49729,484333,617770,NULL,NULL,NULL,0,NULL,NULL 49730,1097993,815837,Popular Question Yearling Good Question Nice Answer Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 49731,429730,418239,NULL,NULL,NULL,0,NULL,NULL 49732,237325,1272437,Necromancer,NULL,NULL,0,NULL,NULL 49733,25229,264276,Good Question Yearling Good Question Famous Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Good Answer Favorite Question Good Question Good Answer Notable Question Yearling Great Question Popular Question Revival Notable Question Popular Question Famous Question Famous Question Taxonomist Popular Question Documentation User Popular Question Popular Question Yearling Stellar Question Notable Question Benefactor Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49734,240658,1017966,NULL,NULL,NULL,0,NULL,NULL 49735,2397433,792866,NULL,NULL,NULL,0,NULL,NULL 49736,496123,178929,NULL,NULL,NULL,0,NULL,NULL 49737,143202,1003113,Scholar Commentator Enthusiast,NULL,NULL,0,NULL,NULL 49738,143235,1003113,Scholar Commentator Enthusiast,NULL,NULL,0,NULL,NULL 49739,9942,433985,Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49740,147068,59015,Notable Question Yearling Popular Question Notable Question Announcer Famous Question Popular Question Popular Question Popular Question Good Question Good Question Famous Question Notable Question Popular Question Notable Question Good Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Notable Question Announcer Popular Question Notable Question Notable Question java Notable Question Popular Question Good Question Nice Question Yearling Notable Question Nice Question Famous Question Great Question Notable Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 49741,70403,956582,Nice Question Famous Question Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49742,82065,800287,NULL,NULL,NULL,0,NULL,NULL 49743,1133529,716404,Nice Question Teacher Notable Question Necromancer Critic Commentator Tumbleweed Yearling Nice Answer Necromancer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49744,471490,975263,NULL,NULL,NULL,0,NULL,NULL 49745,84819,1273793,NULL,NULL,NULL,0,NULL,NULL 49746,1090954,1302344,NULL,NULL,NULL,0,NULL,NULL 49747,1026451,483316,Notable Question,NULL,NULL,0,NULL,NULL 49748,1291904,852675,Yearling Necromancer Critic Nice Answer,NULL,NULL,0,NULL,NULL 49749,335620,768444,NULL,NULL,NULL,0,NULL,NULL 49750,439572,1053437,NULL,NULL,NULL,0,NULL,NULL 49751,630769,376009,NULL,NULL,NULL,0,NULL,NULL 49752,124141,1098161,Popular Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 49753,21059,460932,Custodian Excavator Curious Yearling Caucus Constituent Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 49754,387660,1403007,NULL,NULL,NULL,0,NULL,NULL 49755,2262180,823461,NULL,NULL,NULL,0,NULL,NULL 49756,136114,878761,NULL,NULL,NULL,0,NULL,NULL 49757,797549,1383940,NULL,NULL,NULL,0,NULL,NULL 49758,179116,990443,Good Answer Yearling Popular Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 49759,122421,1122333,NULL,NULL,NULL,0,NULL,NULL 49760,522636,1114840,NULL,NULL,NULL,0,NULL,NULL 49761,174252,978737,NULL,NULL,NULL,0,NULL,NULL 49762,1712361,978737,NULL,NULL,NULL,0,NULL,NULL 49763,12005,457519,Popular Question Popular Question Yearling Nice Question Notable Question Notable Question Notable Question Nice Answer Enlightened Nice Question Yearling,NULL,NULL,0,NULL,NULL 49764,35737,1322862,Popular Question Caucus Curious Yearling Teacher Notable Question,NULL,NULL,0,NULL,NULL 49765,204570,784284,Yearling Notable Question Nice Question Nice Question Notable Question Yearling Famous Question Census Yearling Great Answer,NULL,NULL,0,NULL,NULL 49766,2862431,888185,NULL,NULL,NULL,0,NULL,NULL 49767,183102,207173,Enthusiast Revival Commentator Critic Excavator Civic Duty Yearling Necromancer Revival Caucus Revival Nice Answer Enlightened Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 49768,391673,462641,NULL,NULL,NULL,0,NULL,NULL 49769,54178,905565,Popular Question Yearling Yearling Nice Answer Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 49770,1990679,894084,Supporter,NULL,NULL,0,NULL,NULL 49771,844877,845595,Critic Commentator Popular Question Popular Question Nice Question Yearling Caucus,NULL,NULL,0,NULL,NULL 49772,562329,1442161,NULL,NULL,NULL,0,NULL,NULL 49773,243687,906625,Yearling,NULL,NULL,0,NULL,NULL 49774,109506,1022709,NULL,NULL,NULL,0,NULL,NULL 49775,160779,1432924,NULL,NULL,NULL,0,NULL,NULL 49776,777778,686493,NULL,NULL,NULL,0,NULL,NULL 49777,90133,1109968,Editor Teacher Announcer Revival Nice Question,NULL,NULL,0,NULL,NULL 49778,78269,1235989,NULL,NULL,NULL,0,NULL,NULL 49779,757742,1250473,Custodian Civic Duty Yearling Talkative Caucus Caucus,NULL,NULL,0,NULL,NULL 49780,174894,1078449,NULL,NULL,NULL,0,NULL,NULL 49781,256763,263310,NULL,NULL,NULL,0,NULL,NULL 49782,159546,1319831,Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49783,449731,1517240,NULL,NULL,NULL,0,NULL,NULL 49784,449733,1517240,NULL,NULL,NULL,0,NULL,NULL 49785,335313,425937,NULL,NULL,NULL,0,NULL,NULL 49786,507767,1164292,NULL,NULL,NULL,0,NULL,NULL 49787,194009,1110179,NULL,NULL,NULL,0,NULL,NULL 49788,374873,939339,NULL,NULL,NULL,0,NULL,NULL 49789,47795,860056,NULL,NULL,NULL,0,NULL,NULL 49790,102868,1380850,NULL,NULL,NULL,0,NULL,NULL 49791,12456,905214,Explainer Nice Answer Enlightened Yearling Nice Answer Caucus Proofreader Revival Caucus Yearling Guru Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 49792,35195,531320,Nice Answer php Good Answer Necromancer Necromancer Announcer Custodian Necromancer Nice Answer Announcer Announcer Good Answer Good Answer Yearling Announcer Announcer Necromancer Announcer Necromancer Necromancer Nice Answer Yearling Nice Answer Announcer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 49793,4200322,127421,Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 49794,26801,860970,NULL,NULL,NULL,0,NULL,NULL 49795,98897,1074991,Yearling Custodian,NULL,NULL,0,NULL,NULL 49796,1195925,1075816,NULL,NULL,NULL,0,NULL,NULL 49797,434982,1355211,NULL,NULL,NULL,0,NULL,NULL 49798,127454,196323,NULL,NULL,,0,, 49799,477930,1332841,NULL,NULL,NULL,0,NULL,NULL 49800,384448,1307021,NULL,NULL,NULL,0,NULL,NULL 49801,455899,699895,NULL,NULL,NULL,0,NULL,NULL 49802,691912,1048796,NULL,NULL,NULL,0,NULL,NULL 49803,56740,199086,NULL,NULL,NULL,0,NULL,NULL 49804,200413,807307,Notable Question Notable Question Autobiographer Self-Learner Excavator Civic Duty Popular Question Informed Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 49805,50741,241947,Yearling,NULL,NULL,0,NULL,NULL 49806,199222,1224211,Announcer Yearling Announcer Revival Popular Question Popular Question Yearling Nice Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 49807,406315,788242,NULL,NULL,NULL,0,NULL,NULL 49808,477280,753637,NULL,NULL,NULL,0,NULL,NULL 49809,340974,609803,Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 49810,258441,248028,NULL,NULL,NULL,0,NULL,NULL 49811,1002499,617461,Good Question Famous Question Popular Question Popular Question Notable Question Popular Question Good Question Famous Question Nice Question Notable Question Popular Question Great Question Nice Question Yearling Nice Question Excavator Famous Question Notable Question Famous Question Notable Question Good Question Notable Question Caucus Nice Question Popular Question Favorite Question Good Question Great Question Nice Question Good Question Good Question Popular Question Famous Question Popular Question Yearling Famous Question Good Answer Popular Question Nice Question Good Question Popular Question Popular Question Custodian Favorite Question Notable Question Good Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 49812,313241,1392381,Yearling Necromancer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 49813,127229,201248,Student,NULL,NULL,0,NULL,NULL 49814,149485,301107,python Yearling Nice Answer Famous Question Notable Question Good Answer Yearling django Documentation User Nice Answer Enlightened Nice Answer Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49815,193011,464018,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 49816,8364011,1464436,Revival,NULL,NULL,0,NULL,NULL 49817,921308,642369,Notable Question,NULL,NULL,0,NULL,NULL 49818,54813,1070292,NULL,NULL,NULL,0,NULL,NULL 49819,4090190,1070292,NULL,NULL,NULL,0,NULL,NULL 49820,241236,8710,Necromancer Good Question Yearling Nice Answer Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 49821,28275,640048,NULL,NULL,NULL,0,NULL,NULL 49822,124938,239151,NULL,NULL,NULL,0,NULL,NULL 49823,2795,496517,Popular Question Explainer Popular Question Critic Citizen Patrol,NULL,NULL,0,NULL,NULL 49824,213832,1132433,NULL,NULL,NULL,0,NULL,NULL 49825,897133,1307270,Nice Answer,NULL,NULL,0,NULL,NULL 49826,103256,485583,Notable Question Yearling,NULL,NULL,0,NULL,NULL 49827,721998,278912,NULL,NULL,NULL,0,NULL,NULL 49828,561195,302266,Critic Caucus,NULL,NULL,0,NULL,NULL 49829,222068,103432,Custodian Yearling Nice Question Necromancer Nice Question Famous Question Yearling Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 49830,133649,51142,NULL,NULL,NULL,0,NULL,NULL 49831,238189,1112387,Yearling Notable Question Popular Question Good Answer Census Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 49832,535870,297654,NULL,NULL,NULL,0,NULL,NULL 49833,267130,988629,NULL,NULL,NULL,0,NULL,NULL 49834,124379,1541571,NULL,NULL,NULL,0,NULL,NULL 49835,195367,1256063,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 49836,103367,496542,NULL,NULL,NULL,0,NULL,NULL 49837,53315,35069,Yearling Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 49838,64430,570039,Yearling Enthusiast Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 49839,1197256,1514604,NULL,NULL,NULL,0,NULL,NULL 49840,112490,1226930,Yearling,NULL,NULL,0,NULL,NULL 49841,916261,461945,NULL,NULL,NULL,0,NULL,NULL 49842,46741,1472301,Necromancer Critic Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 49843,574615,194902,Necromancer,NULL,NULL,0,NULL,NULL 49844,195708,934570,NULL,NULL,NULL,0,NULL,NULL 49845,911970,1300164,NULL,NULL,NULL,0,NULL,NULL 49846,324650,723366,NULL,NULL,NULL,0,NULL,NULL 49847,1182510,981304,Famous Question Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 49848,283534,713111,Yearling Nice Answer Enlightened symfony Yearling Guru Custodian Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 49849,55791,1237154,NULL,NULL,NULL,0,NULL,NULL 49850,101107,470118,NULL,NULL,NULL,0,NULL,NULL 49851,538302,1372262,Informed,NULL,NULL,0,NULL,NULL 49852,801536,1002154,NULL,NULL,NULL,0,NULL,NULL 49853,27254,1288957,NULL,NULL,NULL,0,NULL,NULL 49854,122892,691427,Autobiographer Custodian Custodian Informed Announcer,NULL,NULL,0,NULL,NULL 49855,593714,360309,Yearling,NULL,NULL,0,NULL,NULL 49856,734476,297579,Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 49857,424117,836281,NULL,NULL,NULL,0,NULL,NULL 49858,98336,397227,NULL,NULL,NULL,0,NULL,NULL 49859,856987,830355,NULL,NULL,NULL,0,NULL,NULL 49860,254451,1251515,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 49861,314215,106931,Famous Question Nice Question Editor Popular Question Notable Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49862,283525,1119849,NULL,NULL,NULL,0,NULL,NULL 49863,14617,13973,Custodian Promoter Yearling Popular Question Great Question Nice Question Nice Answer Great Answer Yearling Custodian Nice Answer Custodian Necromancer Yearling Notable Question Stellar Question,NULL,How do you echo digit Unicode character in Bash bash shell unicode character encoding pI like to add the Unicode skull and crossbones to my shell prompt specifically the SKULL AND CROSSBONES 2620 but can figure out the magic incantation to make echo spit it or any other digit Unicode character Two digit one are easy For example echo x55 ppIn addition to the answers below it should be noted that obviously your terminal needs to support Unicode for the output to be what you expect gnome terminal does good job of this but it isn necessarily turned on by default ppOn macOS Terminal app Go to Preferences Encodings and choose Unicode UTF zsh fish scsh elvish etc there are many different shells each can handle unicode characters however they want or not bash makes it clear this question isn about some weird shell that does things differently,0,NULL,NULL 49864,6649933,465225,NULL,NULL,NULL,0,NULL,NULL 49865,799663,1408518,NULL,NULL,NULL,0,NULL,NULL 49866,60779,898851,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49867,37800,420707,Great Answer Excavator Custodian Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 49868,28815,302498,Notable Question Yearling Yearling Autobiographer Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 49869,933868,392508,Famous Question Good Answer,NULL,NULL,0,NULL,NULL 49870,185930,392508,Famous Question Good Answer,NULL,NULL,0,NULL,NULL 49871,393726,260147,Popular Question,NULL,NULL,0,NULL,NULL 49872,326197,517172,Popular Question,NULL,NULL,0,NULL,NULL 49873,302561,1100488,NULL,NULL,NULL,0,NULL,NULL 49874,33175,356770,NULL,NULL,NULL,0,NULL,NULL 49875,204878,1127011,Self-Learner Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49876,757042,689218,NULL,NULL,NULL,0,NULL,NULL 49877,159420,689218,NULL,NULL,NULL,0,NULL,NULL 49878,300169,614173,NULL,NULL,NULL,0,NULL,NULL 49879,34212,69877,Yearling Reviewer Good Answer Announcer Notable Question Good Answer Necromancer Nice Answer Revival Nice Answer Enlightened Guru Good Answer Necromancer Nice Answer Enlightened Citizen Patrol Nice Answer Yearling Revival Nice Answer Enlightened Revival Good Answer Nice Answer Yearling Custodian Notable Question Revival Nice Answer Nice Answer Nice Answer Nice Answer Civic Duty Good Answer,NULL,NULL,0,NULL,NULL 49880,31300,579427,Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 49881,17834,144365,NULL,NULL,NULL,0,NULL,NULL 49882,795456,144365,NULL,NULL,NULL,0,NULL,NULL 49883,10111,948188,NULL,NULL,NULL,0,NULL,NULL 49884,247721,780370,NULL,NULL,NULL,0,NULL,NULL 49885,165965,456,Nice Answer Nice Answer Good Question Good Answer Good Answer Guru Good Answer Good Answer Nice Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Stellar Question Popular Question Great Answer Great Answer Good Answer Nice Answer Great Answer Great Answer Yearling Nice Answer Great Answer Nice Answer Good Answer Great Answer Good Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49886,409865,578277,Yearling Critic Commentator Caucus,NULL,NULL,0,NULL,NULL 49887,1131529,977084,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 49888,80218,854037,NULL,NULL,NULL,0,NULL,NULL 49889,1050700,897813,NULL,NULL,NULL,0,NULL,NULL 49890,690296,865985,NULL,NULL,NULL,0,NULL,NULL 49891,1120502,1145898,Supporter Commentator,NULL,NULL,0,NULL,NULL 49892,155641,1254891,NULL,NULL,NULL,0,NULL,NULL 49893,122898,962223,Necromancer Yearling Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49894,1261773,191008,Yearling Necromancer,NULL,NULL,0,NULL,NULL 49895,64771,1363768,NULL,NULL,NULL,0,NULL,NULL 49896,104962,1086830,NULL,NULL,NULL,0,NULL,NULL 49897,203767,673839,Guru Yearling,NULL,NULL,0,NULL,NULL 49898,642969,1145461,Scholar Critic Editor Commentator,NULL,NULL,0,NULL,NULL 49899,74505,1775,Yearling Necromancer Yearling Benefactor Yearling Notable Question,NULL,NULL,0,NULL,NULL 49900,1188322,175750,Guru Yearling,NULL,NULL,0,NULL,NULL 49901,137783,1565131,NULL,NULL,NULL,0,NULL,NULL 49902,3673225,1311979,NULL,NULL,NULL,0,NULL,NULL 49903,8372705,1320788,NULL,NULL,NULL,0,NULL,NULL 49904,1178734,1320788,NULL,NULL,NULL,0,NULL,NULL 49905,375718,407471,Revival Necromancer Nice Answer Yearling Good Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 49906,18010,238790,Necromancer,NULL,NULL,0,NULL,NULL 49907,182072,763948,Nice Answer Enlightened Nice Answer Yearling Yearling Custodian Good Answer,NULL,NULL,0,NULL,NULL 49908,5337,687742,NULL,NULL,NULL,0,NULL,NULL 49909,2627640,777302,Necromancer Necromancer Yearling Promoter,NULL,NULL,0,NULL,NULL 49910,597535,777302,Necromancer Necromancer Yearling Promoter,NULL,NULL,0,NULL,NULL 49911,86340,536291,Census,NULL,NULL,0,NULL,NULL 49912,95989,759384,NULL,NULL,NULL,0,NULL,NULL 49913,918666,828018,NULL,NULL,NULL,0,NULL,NULL 49914,276531,460756,Popular Question Popular Question Notable Question Caucus Constituent Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 49915,291188,666835,Notable Question Necromancer Mortarboard Necromancer Revival Revival Yearling Proofreader Pundit Notable Question Great Answer Notable Question Popular Question Nice Question Caucus Popular Question Nice Answer Census Good Question Yearling Necromancer Necromancer Nice Answer Famous Question Popular Question Populist Great Answer Caucus Famous Question Announcer Documentation User Yearling Caucus Good Answer Good Answer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 49916,500195,860277,Popular Question Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 49917,106519,210807,Yearling Popular Question Stellar Question Notable Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 49918,97878,1072844,NULL,NULL,NULL,0,NULL,NULL 49919,150200,308701,Yearling Revival,NULL,NULL,0,NULL,NULL 49920,212703,1082635,NULL,NULL,NULL,0,NULL,NULL 49921,1130538,1189568,NULL,NULL,NULL,0,NULL,NULL 49922,417042,392646,Notable Question Popular Question Notable Question Notable Question Commentator Good Question Critic,NULL,NULL,0,NULL,NULL 49923,3384157,392646,Notable Question Popular Question Notable Question Notable Question Commentator Good Question Critic,NULL,NULL,0,NULL,NULL 49924,1233242,215747,NULL,NULL,NULL,0,NULL,NULL 49925,29724,389734,NULL,NULL,NULL,0,NULL,NULL 49926,311776,577104,Editor,NULL,NULL,0,NULL,NULL 49927,937679,1011156,Yearling Informed Good Answer Notable Question Yearling Popular Question Necromancer Popular Question Announcer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 49928,7908672,1011156,Yearling Informed Good Answer Notable Question Yearling Popular Question Necromancer Popular Question Announcer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 49929,139796,1011156,Yearling Informed Good Answer Notable Question Yearling Popular Question Necromancer Popular Question Announcer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 49930,323487,603904,NULL,NULL,NULL,0,NULL,NULL 49931,3361724,343699,Nice Question Nice Answer Yearling Notable Question Yearling Nice Answer Nice Answer Yearling Good Answer Curious Good Question,NULL,NULL,0,NULL,NULL 49932,507184,343699,Nice Question Nice Answer Yearling Notable Question Yearling Nice Answer Nice Answer Yearling Good Answer Curious Good Question,NULL,NULL,0,NULL,NULL 49933,398980,151641,Nice Answer Nice Answer Necromancer Announcer Popular Question Nice Answer Yearling Good Question Pundit Revival Great Answer Necromancer Announcer Good Question Nice Answer Good Answer Nice Answer Enlightened Popular Question Notable Question Booster Announcer Necromancer Nice Question Popular Question Notable Question Cleanup Yearling Good Question Announcer Tag Editor Nice Answer Publicist Revival Notable Question Nice Answer Notable Question Announcer Necromancer Announcer Good Answer Popular Question Popular Question Yearling Good Answer Good Answer,NULL,pHere is friendly solution have developed lately ppI explain few details of it on my blog href http mateusz loskot net post 2011 12 01 python sys stdout redirection in cpp rel nofollow noreferrer Python sys stdout redirection in where also point to repository at my GitHub where most recent version can be found Here is complete example based on the current code at the time of posting this answer ppre code include lt functional gt include lt iostream gt include lt string gt include lt Python gt namespace emb typedef std function lt void std string gt stdout write type struct Stdout PyObject HEAD stdout write type write PyObject Stdout write PyObject self PyObject args std size written Stdout selfimpl reinterpret cast lt Stdout gt self if selfimpl gt write char data if PyArg ParseTuple args amp data return std string str data selfimpl gt write str written str size return PyLong FromSize written PyObject Stdout flush PyObject self PyObject args no op return Py BuildValue PyMethodDef Stdout methods write Stdout write METH VARARGS sys stdout write flush Stdout flush METH VARARGS sys stdout flush sentinel PyTypeObject StdoutType PyVarObject HEAD INIT emb StdoutType tp name sizeof Stdout tp basicsize tp itemsize tp dealloc tp print tp getattr tp setattr tp reserved tp repr tp as number tp as sequence tp as mapping tp hash tp call tp str tp getattro tp setattro tp as buffer Py TPFLAGS DEFAULT tp flags emb Stdout objects tp doc tp traverse tp clear tp richcompare tp weaklistoffset tp iter tp iternext Stdout methods tp methods tp members tp getset tp base tp dict tp descr get tp descr set tp dictoffset tp init tp alloc tp new PyModuleDef embmodule PyModuleDef HEAD INIT emb Internal statePyObject stdout PyObject stdout saved PyMODINIT FUNC PyInit emb void stdout stdout saved StdoutType tp new PyType GenericNew if PyType Ready amp StdoutType lt return PyObject PyModule Create amp embmodule if Py INCREF amp StdoutType PyModule AddObject Stdout reinterpret cast lt PyObject gt amp StdoutType return void set stdout stdout write type write if stdout stdout saved PySys GetObject stdout borrowed stdout StdoutType tp new amp StdoutType Stdout impl reinterpret cast lt Stdout gt stdout impl gt write write PySys SetObject stdout stdout void reset stdout if stdout saved PySys SetObject stdout stdout saved Py XDECREF stdout stdout namespace embint main PyImport AppendInittab emb emb PyInit emb Py Initialize PyImport ImportModule emb PyRun SimpleString print hello to console here comes the magic std string buffer switch sys stdout to custom handler emb stdout write type write amp buffer std string buffer emb set stdout write PyRun SimpleString print hello to buffer PyRun SimpleString print 14 PyRun SimpleString print still talking to buffer emb reset stdout PyRun SimpleString print hello to console again Py Finalize output what was written to buffer object std clog lt lt buffer lt lt std endl code prepThis allows to intercept codesys stdout write code output with any kind of callable entity free function class member function named function objects or even anonymous functions as in the example above where use href http en wikipedia org wiki 11 rel nofollow noreferrer 11 lambda ppNote this is minimal example to present the essential concept In production ready code it certainly needs more attention around reference counting of codePyObject code getting rid of global state and so on glad to know kept the example as short as possible think leaving any improvements to reader It should be not so difficult to achieve what you suggest,0,NULL,NULL 49934,21707,151641,Nice Answer Nice Answer Necromancer Announcer Popular Question Nice Answer Yearling Good Question Pundit Revival Great Answer Necromancer Announcer Good Question Nice Answer Good Answer Nice Answer Enlightened Popular Question Notable Question Booster Announcer Necromancer Nice Question Popular Question Notable Question Cleanup Yearling Good Question Announcer Tag Editor Nice Answer Publicist Revival Notable Question Nice Answer Notable Question Announcer Necromancer Announcer Good Answer Popular Question Popular Question Yearling Good Answer Good Answer,NULL,pHere is friendly solution have developed lately ppI explain few details of it on my blog href http mateusz loskot net post 2011 12 01 python sys stdout redirection in cpp rel nofollow noreferrer Python sys stdout redirection in where also point to repository at my GitHub where most recent version can be found Here is complete example based on the current code at the time of posting this answer ppre code include lt functional gt include lt iostream gt include lt string gt include lt Python gt namespace emb typedef std function lt void std string gt stdout write type struct Stdout PyObject HEAD stdout write type write PyObject Stdout write PyObject self PyObject args std size written Stdout selfimpl reinterpret cast lt Stdout gt self if selfimpl gt write char data if PyArg ParseTuple args amp data return std string str data selfimpl gt write str written str size return PyLong FromSize written PyObject Stdout flush PyObject self PyObject args no op return Py BuildValue PyMethodDef Stdout methods write Stdout write METH VARARGS sys stdout write flush Stdout flush METH VARARGS sys stdout flush sentinel PyTypeObject StdoutType PyVarObject HEAD INIT emb StdoutType tp name sizeof Stdout tp basicsize tp itemsize tp dealloc tp print tp getattr tp setattr tp reserved tp repr tp as number tp as sequence tp as mapping tp hash tp call tp str tp getattro tp setattro tp as buffer Py TPFLAGS DEFAULT tp flags emb Stdout objects tp doc tp traverse tp clear tp richcompare tp weaklistoffset tp iter tp iternext Stdout methods tp methods tp members tp getset tp base tp dict tp descr get tp descr set tp dictoffset tp init tp alloc tp new PyModuleDef embmodule PyModuleDef HEAD INIT emb Internal statePyObject stdout PyObject stdout saved PyMODINIT FUNC PyInit emb void stdout stdout saved StdoutType tp new PyType GenericNew if PyType Ready amp StdoutType lt return PyObject PyModule Create amp embmodule if Py INCREF amp StdoutType PyModule AddObject Stdout reinterpret cast lt PyObject gt amp StdoutType return void set stdout stdout write type write if stdout stdout saved PySys GetObject stdout borrowed stdout StdoutType tp new amp StdoutType Stdout impl reinterpret cast lt Stdout gt stdout impl gt write write PySys SetObject stdout stdout void reset stdout if stdout saved PySys SetObject stdout stdout saved Py XDECREF stdout stdout namespace embint main PyImport AppendInittab emb emb PyInit emb Py Initialize PyImport ImportModule emb PyRun SimpleString print hello to console here comes the magic std string buffer switch sys stdout to custom handler emb stdout write type write amp buffer std string buffer emb set stdout write PyRun SimpleString print hello to buffer PyRun SimpleString print 14 PyRun SimpleString print still talking to buffer emb reset stdout PyRun SimpleString print hello to console again Py Finalize output what was written to buffer object std clog lt lt buffer lt lt std endl code prepThis allows to intercept codesys stdout write code output with any kind of callable entity free function class member function named function objects or even anonymous functions as in the example above where use href http en wikipedia org wiki 11 rel nofollow noreferrer 11 lambda ppNote this is minimal example to present the essential concept In production ready code it certainly needs more attention around reference counting of codePyObject code getting rid of global state and so on glad to know kept the example as short as possible think leaving any improvements to reader It should be not so difficult to achieve what you suggest,0,NULL,NULL 49935,74539,817499,Yearling Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 49936,8674,202986,Nice Question Necromancer,NULL,NULL,0,NULL,NULL 49937,502847,1238801,NULL,NULL,,0,, 49938,911877,1189894,NULL,NULL,NULL,0,NULL,NULL 49939,976537,1103697,NULL,NULL,NULL,0,NULL,NULL 49940,1496065,1423440,Notable Question,NULL,NULL,0,NULL,NULL 49941,41127,932095,NULL,NULL,NULL,0,NULL,NULL 49942,613368,740369,NULL,NULL,NULL,0,NULL,NULL 49943,565674,956134,Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Famous Question Informed Yearling Popular Question Nice Question Caucus Organizer Famous Question Good Question Good Question Famous Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Nice Question Famous Question Notable Question Nice Question Citizen Patrol Nice Question Good Question Necromancer Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 49944,184969,219657,Necromancer Organizer Revival Necromancer Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 49945,489035,499907,Nice Answer,NULL,NULL,0,NULL,NULL 49946,4122377,1137466,NULL,NULL,NULL,0,NULL,NULL 49947,162808,491783,NULL,NULL,NULL,0,NULL,NULL 49948,358480,105609,NULL,NULL,NULL,0,NULL,NULL 49949,48402,512904,Good Question Nice Answer Popular Question Good Answer Notable Question Notable Question Popular Question Documentation Pioneer Guru Caucus Yearling Constituent Custodian Nice Answer Popular Question Nice Answer Good Answer Nice Answer Notable Question Good Answer Documentation User Good Answer Yearling Guru Guru Caucus Popular Question Constituent Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 49950,51075,1308691,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 49951,181298,979029,NULL,NULL,NULL,0,NULL,NULL 49952,237211,216441,NULL,NULL,NULL,0,NULL,NULL 49953,1949811,758029,NULL,NULL,NULL,0,NULL,NULL 49954,1032579,1239006,Yearling Nice Question Popular Question Inquisitive Popular Question Popular Question Necromancer Caucus Constituent Yearling Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Nice Question Popular Question Announcer Yearling Caucus Constituent Announcer Notable Question Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49955,2940408,1239006,Yearling Nice Question Popular Question Inquisitive Popular Question Popular Question Necromancer Caucus Constituent Yearling Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Nice Question Popular Question Announcer Yearling Caucus Constituent Announcer Notable Question Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 49956,7636350,1158944,NULL,NULL,NULL,0,NULL,NULL 49957,1735906,1158944,NULL,NULL,NULL,0,NULL,NULL 49958,161619,755811,NULL,NULL,NULL,0,NULL,NULL 49959,355769,1319041,Autobiographer,NULL,NULL,0,NULL,NULL 49960,193345,1101336,NULL,NULL,NULL,0,NULL,NULL 49961,186501,291059,Nice Question Good Question Yearling Notable Question Famous Question Famous Question Notable Question Nice Question Famous Question Popular Question Famous Question Good Question Popular Question Nice Question Good Question Famous Question Notable Question Great Question Yearling Famous Question Notable Question Famous Question Notable Question Notable Question Notable Question Notable Question Famous Question Notable Question Yearling Popular Question Notable Question Popular Question Good Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 49962,196481,1060154,Civic Duty Caucus Constituent Enthusiast Yearling Explainer Custodian Yearling Tenacious Peer Pressure Revival Famous Question Necromancer Yearling Revival Announcer Nice Answer Enlightened Nice Answer Yearling,NULL,NSPersistentContainer UnitTests with iOS10 ios swift core data ios10 pI have an issue with my Core Data setup for Unit Tests ppI use the default new Core Data stack setup in my AppDelegate ppre codeclass AppDelegate UIResponder UIApplicationDelegate lazy var persistentContainer NSPersistentContainer let container NSPersistentContainer name GenericFirstFinder container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container code prepAnd for testing have custom function to create managed context ppre codefunc setupInMemoryManagedObjectContext gt NSManagedObjectContext let container NSPersistentContainer name GenericFirstFinder let description NSPersistentStoreDescription description type NSInMemoryStoreType container persistentStoreDescriptions description container loadPersistentStores completionHandler storeDescription error in if let error error as NSError fatalError Unresolved error error error userInfo return container viewContext code prepI have an extension to find the first item given predicate ppre codeextension NSManagedObject class func first with predicate NSPredicate in context NSManagedObjectContext throws gt Self return try first with predicate in context fileprivate class func first lt gt with predicate NSPredicate in context NSManagedObjectContext throws gt where NSFetchRequestResult NSManagedObject let fetchRequest self fetchRequest fetchRequest fetchLimit fetchRequest predicate predicate let results try context fetch fetchRequest return results first as code prepHere the issue ppThis test passes ppre codefunc testExample let context setupInMemoryManagedObjectContext let entity try Entity first with nil in context XCTAssertEqual entity nil code prepbut if the persistentContainer loading is triggered in didFinishLaunchingWithOptions ppre codefunc application application UIApplication didFinishLaunchingWithOptions launchOptions UIApplicationLaunchOptionsKey Any gt Bool Override point for customization after application launch let context persistentContainer viewContext end of laziness return true code prepthen get the following error pblockquote pfailed caught NSInvalidArgumentException executeFetchRequest error is not valid NSFetchRequest blockquotepThe error comes specifically from this line in first ppre codelet fetchRequest self fetchRequest fetchRequest is lt uninitialized gt in that case code prepBut if modify the test to create an entity first the test runs fine again the XCTAssertEqual is different of course… ppre codefunc testExample let context setupInMemoryManagedObjectContext let firstEntity Entity context context let entity try Entity first with nil in context XCTAssertEqual entity firstEntity code prepSo for some reason creating new entity without saving the context seems to put things back in order ppI guess my stack setup for testing is screwed up but haven figured out why Do you understand what happening and what is the proper way to set things up ppI using Xcode Swift and the deployment target is iOS 10 Interesting didn know that self in scope of class function would bind to the Class type Learnt something new here,0,NULL,NULL 49963,902,224412,Popular Question,NULL,NULL,0,NULL,NULL 49964,1512292,609233,NULL,NULL,NULL,0,NULL,NULL 49965,6573042,186359,Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Nice Question Notable Question Famous Question Custodian Custodian Custodian Popular Question Nice Question Famous Question Yearling Stellar Question Notable Question Famous Question Excavator Notable Question Famous Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49966,83414,186359,Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Nice Question Notable Question Famous Question Custodian Custodian Custodian Popular Question Nice Question Famous Question Yearling Stellar Question Notable Question Famous Question Excavator Notable Question Famous Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 49967,65530,182702,Revival Necromancer Curious Yearling Good Answer Yearling Revival Yearling Documentation User Yearling Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 49968,1567269,543969,Revival Tumbleweed Promoter Great Answer Revival Necromancer Caucus Yearling Revival Revival Great Answer Caucus Revival Good Answer Yearling Revival Caucus Nice Answer Curious Popular Question,NULL,NULL,0,NULL,NULL 49969,90109,1471585,NULL,NULL,NULL,0,NULL,NULL 49970,514133,753302,NULL,NULL,NULL,0,NULL,NULL 49971,47083,737780,NULL,NULL,NULL,0,NULL,NULL 49972,582306,1075582,Popular Question Yearling Explainer,NULL,NULL,0,NULL,NULL 49973,28616,456617,Supporter Enthusiast Revival Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 49974,396498,370908,Yearling Tumbleweed Yearling Nice Answer Enlightened Nice Answer Promoter Benefactor Scholar Revival,NULL,NULL,0,NULL,NULL 49975,76875,1144993,NULL,NULL,NULL,0,NULL,NULL 49976,470352,1062481,NULL,NULL,NULL,0,NULL,NULL 49977,543675,264740,Notable Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 49978,214346,509714,NULL,NULL,NULL,0,NULL,NULL 49979,109665,253936,NULL,NULL,NULL,0,NULL,NULL 49980,138616,1562730,NULL,NULL,NULL,0,NULL,NULL 49981,51763,522176,Notable Question Civic Duty Yearling Popular Question Census Popular Question,NULL,NULL,0,NULL,NULL 49982,135500,9131,Documentation User Announcer,NULL,NULL,0,NULL,NULL 49983,74616,56006,NULL,NULL,NULL,0,NULL,NULL 49984,20499,331226,NULL,NULL,NULL,0,NULL,NULL 49985,5305,96656,unicode Guru Announcer Necromancer Enlightened Good Answer Populist Great Answer Nice Answer Yearling Great Answer Nice Answer Good Answer Nice Answer Famous Question Guru Necromancer Good Answer Announcer Necromancer Necromancer Notable Question Announcer Famous Question Announcer Nice Answer Guru Caucus Good Answer Necromancer Popular Question Good Answer Great Answer Guru Announcer Announcer Yearling Good Answer Good Answer Announcer Guru Announcer Popular Question Nice Answer Caucus Announcer Popular Question Documentation User Announcer Announcer Guru Necromancer Favorite Question Nice Answer Necromancer Great Answer Nice Answer Enlightened Caucus Announcer Nice Answer Announcer Announcer Yearling Revival Nice Answer Great Answer Great Answer Necromancer Necromancer Good Answer Notable Question Good Answer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer,NULL,pThe href https stackoverflow com 2008353 currently accepted answer is incorrect href https stackoverflow com 2008444 bobince’s answer is more like it ppTo quote href http mathiasbynens be notes javascript identifiers rel nofollow noreferrer em strongValid JavaScript variable names strong em my write up summarizing the relevant spec sections pblockquote pAn identifier must start with code code code code or any character in the Unicode categories href http graphemica com categories uppercase letter rel nofollow noreferrer “Uppercase letter Lu href http graphemica com categories lowercase letter rel nofollow noreferrer “Lowercase letter Ll href http graphemica com categories titlecase letter rel nofollow noreferrer “Titlecase letter Lt href http graphemica com categories modifier letter rel nofollow noreferrer “Modifier letter Lm href http graphemica com categories other letter rel nofollow noreferrer “Other letter Lo or href http graphemica com categories letter number rel nofollow noreferrer “Letter number Nl pThe rest of the string can contain the same characters plus any emU 200C zero width non joiner em characters emU 200D zero width joiner em characters and characters in the Unicode categories href http graphemica com unicode categories nonspacing mark rel nofollow noreferrer “Non spacing mark Mn href http graphemica com categories spacing combining mark rel nofollow noreferrer “Spacing combining mark Mc href http graphemica com categories decimal digit number rel nofollow noreferrer “Decimal digit number Nd or href http graphemica com categories connector punctuation rel nofollow noreferrer “Connector punctuation Pc blockquotepThe linked article covers some more gotchas but that’s the gist of it ppI’ve also created href http mothereff in js variables rel nofollow noreferrer title JavaScript variable name validator tool that will tell you if any string that you enter is valid JavaScript variable name according to ECMAScript and Unicode pp href http mothereff in js variables rel nofollow noreferrer img src https imgur com GNv5t png alt JavaScript variable name validator phrpP To give you an idea of how wrong the currently accepted answer is if you were to summarize all these rules in single ASCII only regular expression for JavaScript strongit would be 11 236 characters long strong for ECMAScript Unicode Here it is ppre code ES5 Unicode do if in for let new try var case else enum eval false null this true void with break catch class const super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc0 u0300 u036f u0483 u0487 u0591 u05bd u05bf u05c1 u05c2 u05c4 u05c5 u05c7 u0610 u061a u064b u0669 u0670 u06d6 u06dc u06df u06e4 u06e7 u06e8 u06ea u06ed u06f0 u06f9 u0711 u0730 u074a u07a6 u07b0 u07c0 u07c9 u07eb u07f3 u0816 u0819 u081b u0823 u0825 u0827 u0829 u082d u0859 u085b u08e4 u08fe u0900 u0903 u093a u093c u093e u094f u0951 u0957 u0962 u0963 u0966 u096f u0981 u0983 u09bc u09be u09c4 u09c7 u09c8 u09cb u09cd u09d7 u09e2 u09e3 u09e6 u09ef u0a01 u0a03 u0a3c u0a3e u0a42 u0a47 u0a48 u0a4b u0a4d u0a51 u0a66 u0a71 u0a75 u0a81 u0a83 u0abc u0abe u0ac5 u0ac7 u0ac9 u0acb u0acd u0ae2 u0ae3 u0ae6 u0aef u0b01 u0b03 u0b3c u0b3e u0b44 u0b47 u0b48 u0b4b u0b4d u0b56 u0b57 u0b62 u0b63 u0b66 u0b6f u0b82 u0bbe u0bc2 u0bc6 u0bc8 u0bca u0bcd u0bd7 u0be6 u0bef u0c01 u0c03 u0c3e u0c44 u0c46 u0c48 u0c4a u0c4d u0c55 u0c56 u0c62 u0c63 u0c66 u0c6f u0c82 u0c83 u0cbc u0cbe u0cc4 u0cc6 u0cc8 u0cca u0ccd u0cd5 u0cd6 u0ce2 u0ce3 u0ce6 u0cef u0d02 u0d03 u0d3e u0d44 u0d46 u0d48 u0d4a u0d4d u0d57 u0d62 u0d63 u0d66 u0d6f u0d82 u0d83 u0dca u0dcf u0dd4 u0dd6 u0dd8 u0ddf u0df2 u0df3 u0e31 u0e34 u0e3a u0e47 u0e4e u0e50 u0e59 u0eb1 u0eb4 u0eb9 u0ebb u0ebc u0ec8 u0ecd u0ed0 u0ed9 u0f18 u0f19 u0f20 u0f29 u0f35 u0f37 u0f39 u0f3e u0f3f u0f71 u0f84 u0f86 u0f87 u0f8d u0f97 u0f99 u0fbc u0fc6 u102b u103e u1040 u1049 u1056 u1059 u105e u1060 u1062 u1064 u1067 u106d u1071 u1074 u1082 u108d u108f u109d u135d u135f u1712 u1714 u1732 u1734 u1752 u1753 u1772 u1773 u17b4 u17d3 u17dd u17e0 u17e9 u180b u180d u1810 u1819 u18a9 u1920 u192b u1930 u193b u1946 u194f u19b0 u19c0 u19c8 u19c9 u19d0 u19d9 u1a17 u1a1b u1a55 u1a5e u1a60 u1a7c u1a7f u1a89 u1a90 u1a99 u1b00 u1b04 u1b34 u1b44 u1b50 u1b59 u1b6b u1b73 u1b80 u1b82 u1ba1 u1bad u1bb0 u1bb9 u1be6 u1bf3 u1c24 u1c37 u1c40 u1c49 u1c50 u1c59 u1cd0 u1cd2 u1cd4 u1ce8 u1ced u1cf2 u1cf4 u1dc0 u1de6 u1dfc u1dff u200c u200d u203f u2040 u2054 u20d0 u20dc u20e1 u20e5 u20f0 u2cef u2cf1 u2d7f u2de0 u2dff u302a u302f u3099 u309a ua620 ua629 ua66f ua674 ua67d ua69f ua6f0 ua6f1 ua802 ua806 ua80b ua823 ua827 ua880 ua881 ua8b4 ua8c4 ua8d0 ua8d9 ua8e0 ua8f1 ua900 ua909 ua926 ua92d ua947 ua953 ua980 ua983 ua9b3 ua9c0 ua9d0 ua9d9 uaa29 uaa36 uaa43 uaa4c uaa4d uaa50 uaa59 uaa7b uaab0 uaab2 uaab4 uaab7 uaab8 uaabe uaabf uaac1 uaaeb uaaef uaaf5 uaaf6 uabe3 uabea uabec uabed uabf0 uabf9 ufb1e ufe00 ufe0f ufe20 ufe26 ufe33 ufe34 ufe4d ufe4f uff10 uff19 uff3f code pre This answer was written in 2012 when those escapes didn’t exist it correctly specifies it matches ECMAScript not ES2015 Also note that 61 cannot be “arbitrarily inserted” in regular expressions such escapes only work when Unicode mode is enabled through the flag https mathiasbynens be notes es6 unicode regex impact syntax pThe href https stackoverflow com 2008353 currently accepted answer is incorrect href https stackoverflow com 2008444 bobince’s answer is more like it ppTo quote href http mathiasbynens be notes javascript identifiers rel nofollow noreferrer em strongValid JavaScript variable names strong em my write up summarizing the relevant spec sections pblockquote pAn identifier must start with code code code code or any character in the Unicode categories href http graphemica com categories uppercase letter rel nofollow noreferrer “Uppercase letter Lu href http graphemica com categories lowercase letter rel nofollow noreferrer “Lowercase letter Ll href http graphemica com categories titlecase letter rel nofollow noreferrer “Titlecase letter Lt href http graphemica com categories modifier letter rel nofollow noreferrer “Modifier letter Lm href http graphemica com categories other letter rel nofollow noreferrer “Other letter Lo or href http graphemica com categories letter number rel nofollow noreferrer “Letter number Nl pThe rest of the string can contain the same characters plus any emU 200C zero width non joiner em characters emU 200D zero width joiner em characters and characters in the Unicode categories href http graphemica com unicode categories nonspacing mark rel nofollow noreferrer “Non spacing mark Mn href http graphemica com categories spacing combining mark rel nofollow noreferrer “Spacing combining mark Mc href http graphemica com categories decimal digit number rel nofollow noreferrer “Decimal digit number Nd or href http graphemica com categories connector punctuation rel nofollow noreferrer “Connector punctuation Pc blockquotepThe linked article covers some more gotchas but that’s the gist of it ppI’ve also created href http mothereff in js variables rel nofollow noreferrer title JavaScript variable name validator tool that will tell you if any string that you enter is valid JavaScript variable name according to ECMAScript and Unicode pp href http mothereff in js variables rel nofollow noreferrer img src https imgur com GNv5t png alt JavaScript variable name validator phrpP To give you an idea of how wrong the currently accepted answer is if you were to summarize all these rules in single ASCII only regular expression for JavaScript strongit would be 11 236 characters long strong for ECMAScript Unicode Here it is ppre code ES5 Unicode do if in for let new try var case else enum eval false null this true void with break catch class const super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc0 u0300 u036f u0483 u0487 u0591 u05bd u05bf u05c1 u05c2 u05c4 u05c5 u05c7 u0610 u061a u064b u0669 u0670 u06d6 u06dc u06df u06e4 u06e7 u06e8 u06ea u06ed u06f0 u06f9 u0711 u0730 u074a u07a6 u07b0 u07c0 u07c9 u07eb u07f3 u0816 u0819 u081b u0823 u0825 u0827 u0829 u082d u0859 u085b u08e4 u08fe u0900 u0903 u093a u093c u093e u094f u0951 u0957 u0962 u0963 u0966 u096f u0981 u0983 u09bc u09be u09c4 u09c7 u09c8 u09cb u09cd u09d7 u09e2 u09e3 u09e6 u09ef u0a01 u0a03 u0a3c u0a3e u0a42 u0a47 u0a48 u0a4b u0a4d u0a51 u0a66 u0a71 u0a75 u0a81 u0a83 u0abc u0abe u0ac5 u0ac7 u0ac9 u0acb u0acd u0ae2 u0ae3 u0ae6 u0aef u0b01 u0b03 u0b3c u0b3e u0b44 u0b47 u0b48 u0b4b u0b4d u0b56 u0b57 u0b62 u0b63 u0b66 u0b6f u0b82 u0bbe u0bc2 u0bc6 u0bc8 u0bca u0bcd u0bd7 u0be6 u0bef u0c01 u0c03 u0c3e u0c44 u0c46 u0c48 u0c4a u0c4d u0c55 u0c56 u0c62 u0c63 u0c66 u0c6f u0c82 u0c83 u0cbc u0cbe u0cc4 u0cc6 u0cc8 u0cca u0ccd u0cd5 u0cd6 u0ce2 u0ce3 u0ce6 u0cef u0d02 u0d03 u0d3e u0d44 u0d46 u0d48 u0d4a u0d4d u0d57 u0d62 u0d63 u0d66 u0d6f u0d82 u0d83 u0dca u0dcf u0dd4 u0dd6 u0dd8 u0ddf u0df2 u0df3 u0e31 u0e34 u0e3a u0e47 u0e4e u0e50 u0e59 u0eb1 u0eb4 u0eb9 u0ebb u0ebc u0ec8 u0ecd u0ed0 u0ed9 u0f18 u0f19 u0f20 u0f29 u0f35 u0f37 u0f39 u0f3e u0f3f u0f71 u0f84 u0f86 u0f87 u0f8d u0f97 u0f99 u0fbc u0fc6 u102b u103e u1040 u1049 u1056 u1059 u105e u1060 u1062 u1064 u1067 u106d u1071 u1074 u1082 u108d u108f u109d u135d u135f u1712 u1714 u1732 u1734 u1752 u1753 u1772 u1773 u17b4 u17d3 u17dd u17e0 u17e9 u180b u180d u1810 u1819 u18a9 u1920 u192b u1930 u193b u1946 u194f u19b0 u19c0 u19c8 u19c9 u19d0 u19d9 u1a17 u1a1b u1a55 u1a5e u1a60 u1a7c u1a7f u1a89 u1a90 u1a99 u1b00 u1b04 u1b34 u1b44 u1b50 u1b59 u1b6b u1b73 u1b80 u1b82 u1ba1 u1bad u1bb0 u1bb9 u1be6 u1bf3 u1c24 u1c37 u1c40 u1c49 u1c50 u1c59 u1cd0 u1cd2 u1cd4 u1ce8 u1ced u1cf2 u1cf4 u1dc0 u1de6 u1dfc u1dff u200c u200d u203f u2040 u2054 u20d0 u20dc u20e1 u20e5 u20f0 u2cef u2cf1 u2d7f u2de0 u2dff u302a u302f u3099 u309a ua620 ua629 ua66f ua674 ua67d ua69f ua6f0 ua6f1 ua802 ua806 ua80b ua823 ua827 ua880 ua881 ua8b4 ua8c4 ua8d0 ua8d9 ua8e0 ua8f1 ua900 ua909 ua926 ua92d ua947 ua953 ua980 ua983 ua9b3 ua9c0 ua9d0 ua9d9 uaa29 uaa36 uaa43 uaa4c uaa4d uaa50 uaa59 uaa7b uaab0 uaab2 uaab4 uaab7 uaab8 uaabe uaabf uaac1 uaaeb uaaef uaaf5 uaaf6 uabe3 uabea uabec uabed uabf0 uabf9 ufb1e ufe00 ufe0f ufe20 ufe26 ufe33 ufe34 ufe4d ufe4f uff10 uff19 uff3f code pre See Valid JavaScript variable names in ES2015 https mathiasbynens be notes javascript identifiers es6 for more info on how ES2015 differs from ES5 identifiers pThe following technique or similar is commonly used to reverse string in JavaScript ppre code Don’t use this var naiveReverse function string return string split reverse join code prepIn fact all the answers posted so far are variation of this pattern However there are some problems with this solution For example ppre codenaiveReverse foo bar rab �� oof Where did the symbol go Whoops code prepIf you’re wondering why this happens href http mathiasbynens be notes javascript encoding rel noreferrer read up on JavaScript’s internal character encoding TL DR code code is an astral symbol and JavaScript exposes it as two separate code units ppBut there’s more ppre code To see which symbols are being used here check http mothereff in js escapes 1ma C3 B1ana 20man CC 83ananaiveReverse mañana mañana anãnam anañam Wait so now the tilde is applied to the instead of the WAT code prepA good string to test string reverse implementations is href http mothereff in js escapes 1foo 20 F0 9D 8C 86 20bar 20ma C3 B1ana 20man CC 83ana rel noreferrer the following ppre code foo bar mañana mañana code prepWhy Because it contains an astral symbol code code which are href http mathiasbynens be notes javascript encoding surrogate pairs rel noreferrer represented by surrogate pairs in JavaScript and combining mark the codeñ code in the last codemañana code actually consists of two symbols 006E LATIN SMALL LETTER and 0303 COMBINING TILDE ppThe order in which surrogate pairs appear cannot be reversed else the astral symbol won’t show up anymore in the ‘reversed’ string That’s why you saw those code�� code marks in the output for the previous example ppCombining marks always get applied to the previous symbol so you have to treat both the main symbol 006E LATIN SMALL LETTER as the combining mark 0303 COMBINING TILDE as whole Reversing their order will cause the combining mark to be paired with another symbol in the string That’s why the example output had codeã code instead of codeñ code ppHopefully this explains why all the answers posted so far are strongwrong strong phrpTo answer your initial question emhow to properly reverse string in JavaScript em I’ve written small JavaScript library that is capable of Unicode aware string reversal It doesn’t have any of the issues just mentioned The library is called href http mths be esrever rel noreferrer strongEsrever strong its code is on GitHub and it works in pretty much any JavaScript environment It comes with shell utility binary so you can easily reverse strings from your terminal if you want ppre codevar input foo bar mañana mañana esrever reverse input anañam anañam rab oof code prepAs for the “in place” part see the other answers The note you refer to was addd long after this was posted You mention “a non required scenario” but OP doesn’t specify this limitation at all Generally when someone asks “how to do on SO it’s not enough to say “here’s partial solution to the problem in some cases” without also explaining how to solve it completely Your use of the phrase “UTF 16 support” suggests that you’re mixing up Unicode with character encodings pWith version 13 of Git and later code recurse submodules code can be used instead of code recursive code ppre codegit clone recurse submodules j8 git github com foo bar gitcd bar code prep supEditor’s note code j8 code is an optional performance optimization that became available in version and fetches up to submodules at time in parallel see codeman git clone code sup ppWith version of Git up until version 12 code code flag only available in version ppre codegit clone recursive j8 git github com foo bar gitcd bar code prepWith version of Git and later you can use ppre codegit clone recursive git github com foo bar gitcd bar code prepFor already cloned repos or older Git versions use ppre codegit clone git github com foo bar gitcd bargit submodule update init recursive code pre You are right Someone had edited my answer adding that statement and somehow it got accepted ve fixed it now Thanks pChanging the codetype code of an code lt input type password gt code throws security error in some browsers old IE and Firefox versions ppYou’ll need to create new codeinput code element set its codetype code to the one you want and clone all other properties from the existing one ppI do this in my jQuery placeholder plugin href https github com mathiasbynens jquery placeholder blob master jquery placeholder js L80 84 rel noreferrer https github com mathiasbynens jquery placeholder blob master jquery placeholder js L80 84 ppTo work in Internet Explorer pullidynamically create new element lilicopy the properties of the old element into the new element liliset the type of the new element to the new type lilireplace the old element with the new element li ulpThe function below accomplishes the above tasks for you ppre code lt script gt function changeInputType oldObject oType var newObject document createElement input newObject type oType if oldObject size newObject size oldObject size if oldObject value newObject value oldObject value if oldObject name newObject name oldObject name if oldObject id newObject id oldObject id if oldObject className newObject className oldObject className oldObject parentNode replaceChild newObject oldObject return newObject lt script gt code pre Sure In fact my original answer didn’t contain all that extra code someone else added it pThe other answers to this question are outdated never matched implementation reality and have strongofficially strong become incorrect now that the ES6 ES2015 spec has been published phrpSee href http exploringjs com es6 ch oop besides classes html traversal order of properties rel noreferrer the section on emproperty iteration order em in strongExploring ES6 strong by Axel Rauschmayer pblockquote pAll methods that iterate over property keys do so in the same order ol liFirst all Array indices sorted numerically li liThen all string keys that are not indices in the order in which they were created li liThen all symbols in the order in which they were created li ol blockquotepSo yes JavaScript objects strongare strong in fact ordered and the order of their keys properties can be changed ppHere’s how you can sort an,,, "object by its keys properties alphabetically ppre codeconst unordered foo bar baz console log JSON stringify unordered foo bar baz const ordered Object keys unordered sort forEach function key ordered key unordered key console log JSON stringify ordered baz foo bar code prepUse codevar code instead of codeconst code for compatibility with ES5 engines idt Browser support for ES6 is not binary ES6 is not just single feature Can you name one modern browser in which the above does not work pThe other answers to this question are outdated never matched implementation reality and have strongofficially strong become incorrect now that the ES6 ES2015 spec has been published phrpSee href http exploringjs com es6 ch oop besides classes html traversal order of properties rel noreferrer the section on emproperty iteration order em in strongExploring ES6 strong by Axel Rauschmayer pblockquote pAll methods that iterate over property keys do so in the same order ol liFirst all Array indices sorted numerically li liThen all string keys that are not indices in the order in which they were created li liThen all symbols in the order in which they were created li ol blockquotepSo yes JavaScript objects strongare strong in fact ordered and the order of their keys properties can be changed ppHere’s how you can sort an object by its keys properties alphabetically ppre codeconst unordered foo bar baz console log JSON stringify unordered foo bar baz const ordered Object keys unordered sort forEach function key ordered key unordered key console log JSON stringify ordered baz foo bar code prepUse codevar code instead of codeconst code for compatibility with ES5 engines The new link is http exploringjs com es6 ch oop besides classes html traversal order of properties but the contents have changed""",unicode guru announcer necromancer enlighten good answer populist great answer nice answer yearle great answer nice answer good answer nice answer famous question guru necromancer good answer announcer necromancer necromancer notable question announcer famous question announcer nice answer guru caucus good answer necromancer popular question good answer great answer guru announcer announcer yearle good answer good answer announcer guru announcer popular question nice answer caucus announcer popular question documentation user announcer announcer guru necromancer favorite question nice answer necromancer great answer nice answer enlighten caucus announcer nice answer announcer announcer yearle revival nice answer great answer great answer necromancer necromancer good answer notable question good answer popular question nice answer nice answer enlighten nice answer good answer good answer pthe href https stackoverflow accept answer incorrect href https stackoverflow bobince answer ppto quote href http mathiasbynen note javascript identifier nofollow noreferrer -PRON- strongvalid javascript variable name strong -PRON- write summarize relevant spec section pblockquote identifi start code code code code character unicode category href http graphemica category uppercase letter nofollow noreferrer uppercase letter lu href http graphemica category lowercase letter nofollow noreferrer lowercase letter href http graphemica category titlecase letter nofollow noreferrer titlecase letter lt href http graphemica category modifi letter nofollow noreferrer modifi letter href http graphemica category letter nofollow noreferrer letter lo href http graphemica category letter number nofollow noreferrer letter number nl pthe rest string character emu width joiner -PRON- character emu width joiner -PRON- character character unicode category href http graphemica unicode category nonspace mark nofollow noreferrer space mark href http graphemica category space combine mark nofollow noreferrer space combine mark mc href http graphemica category decimal digit number nofollow noreferrer decimal digit number href http graphemica category connector punctuation nofollow noreferrer connector punctuation pc blockquotepthe link article cover gotcha gist ppi create href http mothereff js variable nofollow noreferrer title javascript variable validator tool string enter valid javascript variable ecmascript unicode href http mothereff js variable nofollow noreferrer img src https imgur png alt javascript variable validator phrpp idea wrong accept answer summarize rule single ascii regular expression javascript strongit character long strong ecmascript unicode code unicode var case eval false null true void break catch class const super throw yield delete export import public return static switch typeof default extend finally package private continue debugger function argument interface protect implement instanceof xaa xba uaaaf uaabd uaadd uaaea ufdfb ufefc uffbe uffca uffcf uffda xaa xba uaaaf uaabd uaadd uaaea ufdfb ufefc uffbe uffca uffcf uffda uaabe uaabf uaaeb uaaef uabea uabec uabed code answer write escape exist correctly specifie match ecmascript note arbitrarily insert regular expression escape work unicode mode enable flag https mathiasbynen note unicode regex impact syntax pthe href https stackoverflow accept answer incorrect href https stackoverflow bobince answer ppto quote href http mathiasbynen note javascript identifier nofollow noreferrer -PRON- strongvalid javascript variable name strong -PRON- write summarize relevant spec section pblockquote identifi start code code code code character unicode category href http graphemica category uppercase letter nofollow noreferrer uppercase letter lu href http graphemica category lowercase letter nofollow noreferrer lowercase letter href http graphemica category titlecase letter nofollow noreferrer titlecase letter lt href http graphemica category modifi letter nofollow noreferrer modifi letter href http graphemica category letter nofollow noreferrer letter lo href http graphemica category letter number nofollow noreferrer letter number nl pthe rest string character emu width joiner -PRON- character emu width joiner -PRON- character character unicode category href http graphemica unicode category nonspace mark nofollow noreferrer space mark href http graphemica category space combine mark nofollow noreferrer space combine mark mc href http graphemica category decimal digit number nofollow noreferrer decimal digit number href http graphemica category connector punctuation nofollow noreferrer connector punctuation pc blockquotepthe link article cover gotcha gist ppi create href http mothereff js variable nofollow noreferrer title javascript variable validator tool string enter valid javascript variable ecmascript unicode href http mothereff js variable nofollow noreferrer img src https imgur png alt javascript variable validator phrpp idea wrong accept answer summarize rule single ascii regular expression javascript strongit character long strong ecmascript unicode code unicode var case eval false null true void break catch class const super throw yield delete export import public return static switch typeof default extend finally package private continue debugger function argument interface protect implement instanceof xaa xba uaaaf uaabd uaadd uaaea ufdfb ufefc uffbe uffca uffcf uffda xaa xba uaaaf uaabd uaadd uaaea ufdfb ufefc uffbe uffca uffcf uffda uaabe uaabf uaaeb uaaef uabea uabec uabed code valid javascript variable name https mathiasbynen note javascript identifier info differ identifier pthe technique similar commonly reverse string javascript code var naivereverse function string return string split reverse join code prepin fact answer post variation pattern problem solution foo bar oof symbol whoop code prepif wonder href http mathiasbynen note javascript encode noreferrer read javascript internal character encode tl code code astral symbol javascript expose separate code unit ppbut code symbol check http mothereff js escape wait tilde apply wat code prepa good string test string reverse implementation href http mothereff js escape noreferrer code foo bar code astral symbol code code href http mathiasbynen note javascript encode surrogate pair noreferrer represent surrogate pair javascript combine mark code code consist symbol latin small letter combine tilde ppthe order surrogate pair reverse astral symbol anymore reverse string code mark output previous ppcombine mark apply previous symbol treat main symbol latin small letter combine mark combine tilde reverse order combine mark pair symbol string output code code pphopefully explain answer post strongwrong strong phrpto answer initial question properly reverse string javascript -PRON- write small javascript library capable unicode aware string reversal issue mention library call href http mth esrever noreferrer strongesrever strong code github work pretty javascript environment shell utility binary easily reverse string terminal codevar input foo bar esrever reverse input oof code prepa place answer note refer addd long post mention require scenario limitation generally ask partial solution problem case explain solve completely phrase utf support suggest mix unicode character encoding pwith version git code recurse submodule code code recursive code codegit clone recurse submodule git github foo bar gitcd bar code prep supeditor note code code optional performance optimization version fetch submodule time parallel codeman git clone code ppwith version git version code code flag version codegit clone recursive git github foo bar gitcd bar code prepwith version git codegit clone recursive git github foo bar gitcd bar code prepfor clone repos old git version codegit clone git github foo bar gitcd bargit submodule update init recursive code edit answer add statement accept fix pchanging codetype code code lt input type password code throw security error browser firefox version ppyou create codeinput code element set codetype code clone property exist ppi jquery placeholder plugin href https github mathiasbynen jquery placeholder blob master jquery placeholder js noreferrer https github mathiasbynen jquery placeholder blob master jquery placeholder js ppto work internet explorer create element lilicopy property element element liliset type element type lilireplace element element li ulpthe function accomplishe task code lt script function changeinputtype otype var newobject document createelement input newobject type otype size newobject size size newobject newobject newobject classname newobject classname classname parentnode replacechild newobject return newobject lt script code fact original answer extra code add pthe answer question outdate match implementation reality strong incorrect spec publish phrpsee href http exploringjs class html traversal order property noreferrer section emproperty iteration order -PRON- strongexplore strong axel rauschmayer pblockquote pall method iterate property key order old lifirst array index sort numerically li lithen string key index order create li lithen symbol order create li old blockquotepso javascript object strongare strong fact order order key property change pphere sort object key property alphabetically codeconst unordere foo bar baz console log json stringify unordere foo bar baz const order object key unordere sort foreach function key order key unordere key console log json stringify order baz foo bar code prepuse codevar code codeconst code compatibility engine browser support binary single feature modern browser work pthe answer question outdate match implementation reality strong incorrect spec publish phrpsee href http exploringjs class html traversal order property noreferrer section emproperty iteration order -PRON- strongexplore strong axel rauschmayer pblockquote pall method iterate property key order old lifirst array index sort numerically li lithen string key index order create li lithen symbol order create li old blockquotepso javascript object strongare strong fact order order key property change pphere sort object key property alphabetically codeconst unordere foo bar baz console log json stringify unordere foo bar baz const order object key unordere sort foreach function key order key unordere key console log json stringify order baz foo bar code prepuse codevar code codeconst code compatibility engine link http exploringjs class html traversal order property content change,0,NULL,NULL,,,, 49986,208215,990393,Teacher Critic Commentator Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 49987,861873,267733,Notable Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 49988,22403,432982,NULL,NULL,NULL,0,NULL,NULL 49989,1218043,1115464,NULL,NULL,NULL,0,NULL,NULL 49990,23250,563930,NULL,NULL,NULL,0,NULL,NULL 49991,6639823,1179115,NULL,NULL,NULL,0,NULL,NULL 49992,10006259,341874,Autobiographer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49993,6582,341874,Autobiographer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 49994,107500,721634,NULL,NULL,NULL,0,NULL,NULL 49995,1046080,831682,NULL,NULL,NULL,0,NULL,NULL 49996,128049,314622,NULL,NULL,NULL,0,NULL,NULL 49997,604454,1252502,Autobiographer Scholar,NULL,NULL,0,NULL,NULL 49998,2504270,1252502,Autobiographer Scholar,NULL,NULL,0,NULL,NULL 49999,183745,589413,Famous Question,NULL,NULL,0,NULL,NULL 50000,5296,8696,Notable Question Popular Question Famous Question Good Answer Yearling Nice Answer Good Answer Famous Question Nice Answer Good Answer Yearling Informed Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 50001,396323,916012,NULL,NULL,NULL,0,NULL,NULL 50002,883547,926408,Critic Yearling Revival Commentator Popular Question,NULL,NULL,0,NULL,NULL 50003,485535,1045904,Guru Nice Answer Enlightened Revival Notable Question Notable Question Yearling Popular Question Nice Answer Nice Answer Popular Question Popular Question Yearling Necromancer Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 50004,13860,211654,NULL,NULL,NULL,0,NULL,NULL 50005,182029,684657,Popular Question Popular Question Necromancer Popular Question Census Notable Question Announcer Revival Documentation User,NULL,NULL,0,NULL,NULL 50006,450168,1053702,NULL,NULL,NULL,0,NULL,NULL 50007,71357,1420794,Revival Necromancer Nice Answer Critic Yearling Yearling Caucus Good Answer Guru Yearling Caucus Yearling Commentator Caucus Constituent Yearling Revival,NULL,NULL,0,NULL,NULL 50008,54973,136285,Strunk & White Popular Question Necromancer Necromancer Nice Question Popular Question Nice Answer Necromancer Reviewer Popular Question Notable Question Popular Question Tenacious Investor Yearling Altruist Nice Answer Favorite Question Notable Question Notable Question Popular Question Nice Question Nice Answer Nice Question Notable Question Caucus Popular Question Famous Question Custodian Notable Question Famous Question Great Question Popular Question Popular Question Necromancer Notable Question Nice Question Nice Answer Popular Question Popular Question Nice Question Nice Answer Yearling Popular Question Necromancer Popular Question Notable Question Revival Notable Question Notable Question Popular Question Popular Question dicom Popular Question Popular Question Enlightened Nice Question Announcer Nice Answer Announcer Popular Question Good Answer Popular Question Popular Question Popular Question Nice Answer Nice Question Good Answer Yearling Notable Question Announcer Famous Question Notable Question Notable Question Announcer,NULL,codeEXIT FAILURE code either in return statement in codemain code or as an argument to codeexit code is the only portable way to indicate failure in or program codeexit code can actually signal successful termination on VMS for example ppIf you re going to be using codeEXIT FAILURE code when your program fails then you might as well use codeEXIT SUCCESS code when it succeeds just for the sake of symmetry ppOn the other hand if the program never signals failure you can use either code0 code or codeEXIT SUCCESS code Both are guaranteed by the standard to signal successful completion It barely possible that codeEXIT SUCCESS code could have value other than but it equal to on every implementation ve ever heard of ppUsing code0 code has the minor advantage that you don need code include lt stdlib gt code in or code include lt cstdlib gt code in if you re using codereturn code statement rather than calling codeexit code but for program of any significant size you re going to be including stdlib directly or indirectly anyway ppFor that matter in starting with the 1999 standard and in all versions of reaching the end of codemain code does an implicit codereturn code anyway so you might not need to use either code0 code or codeEXIT SUCCESS code explicitly But at least in consider an explicit codereturn code to be better style pp Somebody asked about OpenVMS haven used it in long time but as recall odd status values generally denote success while even values denote failure The implementation maps code0 code to code1 code so that codereturn code indicates successful termination Other values are passed unchanged so codereturn code also indicates successful termination codeEXIT FAILURE code would have non zero even value could you clarify your answer with respect to VMS OpenVMS It is not clear the relation EXIT SUCCESS EXIT FAILURE with and would explain odd even values instead codeEXIT FAILURE code either in return statement in codemain code or as an argument to codeexit code is the only portable way to indicate failure in or program codeexit code can actually signal successful termination on VMS for example ppIf you re going to be using codeEXIT FAILURE code when your program fails then you might as well use codeEXIT SUCCESS code when it succeeds just for the sake of symmetry ppOn the other hand if the program never signals failure you can use either code0 code or codeEXIT SUCCESS code Both are guaranteed by the standard to signal successful completion It barely possible that codeEXIT SUCCESS code could have value other than but it equal to on every implementation ve ever heard of ppUsing code0 code has the minor advantage that you don need code include lt stdlib gt code in or code include lt cstdlib gt code in if you re using codereturn code statement rather than calling codeexit code but for program of any significant size you re going to be including stdlib directly or indirectly anyway ppFor that matter in starting with the 1999 standard and in all versions of reaching the end of codemain code does an implicit codereturn code anyway so you might not need to use either code0 code or codeEXIT SUCCESS code explicitly But at least in consider an explicit codereturn code to be better style pp Somebody asked about OpenVMS haven used it in long time but as recall odd status values generally denote success while even values denote failure The implementation maps code0 code to code1 code so that codereturn code indicates successful termination Other values are passed unchanged so codereturn code also indicates successful termination codeEXIT FAILURE code would have non zero even value no never used it was looking canonical answer since wikipedia used different wording https en wikipedia org wiki Exit status OpenVMS,1,CMake handle linking of shared library with static libraries cmake shared libraries static libraries pFor my project like to be able to build the core libraries as static libraries but compile the main JNI Java glue as shared library needs to be loaded at runtime by JVM In pseudo code this would be ppre class lang none prettyprint override codeproject foo CXX add library foo1 foo1 cxx add library foo2 foo2 cxx add library foojni SHARED foojni cxx target link libraries foojni LINK PRIVATE foo1 foo2 code prepRight now on x86 64 it fails with the following error message ppre coderelocation X86 64 32 against rodata cannot be used when making shared object recompile with fPIC code prepObviously the simple fix is ppre class lang none prettyprint override codeset CMAKE POSITION INDEPENDENT CODE ON code prepHowever prefer less invasive solution for my users instead am thinking of ppre class lang none prettyprint override codeif BUILD JNI if NOT BUILD SHARED LIBS if CMAKE COMPILER IS GNUCXX if CMAKE ARCHITECTURE STREQUAL x86 64 FIXME set CMAKE POSITION INDEPENDENT CODE ON endif endif endif endif code prepOf course the following line does not work no such thing as codeCMAKE ARCHITECTURE code ppre class lang none prettyprint override codeif CMAKE ARCHITECTURE STREQUAL x86 64 FIXME code prepSince detecting architecture seems quite hard href https stackoverflow com questions 11944060 how to detect target architecture using cmake see and even if was able to do so do not know what are the requirements for ppc64el mips or m68k insert any exotic system here So like to know if there is simple way to query cmake about pulliDoes my compiler supports linking shared library to static library liliIdeally Dump the missing compiler flags required to achieve such linking step li ulhrpI know of ppre class lang none prettyprint override codeif CMAKE SYSTEM PROCESSOR STREQUAL x86 64 code prepBut as explained in the link above this will not work for cross compilation phrpUpdate The question is obviously not emhow em to set code fPIC code or equivalent compiler flag but emwhen em do need to set it,NULL 50009,159918,242095,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 50010,193436,199013,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 50011,261600,351969,NULL,NULL,NULL,0,NULL,NULL 50012,238766,1072473,NULL,NULL,NULL,0,NULL,NULL 50013,901477,1309678,NULL,NULL,NULL,0,NULL,NULL 50014,46834,165079,NULL,NULL,NULL,0,NULL,NULL 50015,226373,651580,Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 50016,178628,1093758,Revival Tumbleweed,NULL,NULL,0,NULL,NULL 50017,911297,901234,NULL,NULL,NULL,0,NULL,NULL 50018,17895,765648,Supporter,NULL,NULL,0,NULL,NULL 50019,461638,180847,Editor Excavator,NULL,NULL,0,NULL,NULL 50020,1276954,1115581,NULL,NULL,NULL,0,NULL,NULL 50021,390598,403190,NULL,NULL,NULL,0,NULL,NULL 50022,476604,647352,NULL,NULL,NULL,0,NULL,NULL 50023,50046,1136113,NULL,NULL,NULL,0,NULL,NULL 50024,431400,1007539,NULL,NULL,NULL,0,NULL,NULL 50025,421392,277370,Necromancer Nice Answer Yearling Inquisitive Popular Question Popular Question Nice Answer Nice Question Popular Question Yearling Famous Question Revival Popular Question Popular Question Notable Question Nice Question Yearling Civic Duty Notable Question Necromancer Nice Answer ios,NULL,NULL,1,NULL,UIImageView doesn always tint template image ios objective xcode uiimageview strongIn the case bellow there are two UIImageViews with the same settings and the same template image but one tints the image and one not strong ppI duplicated working codeUIImageView codeand placed it instead of the other and it worked This happend to me multiple times and this solution always worked but still wonder what could have done wrong Can it be xcode bug Did something similar happend to you have Xcode pp href https stack imgur com YWtap png rel noreferrer img src https stack imgur com YWtap png alt enter image description here pp href https stack imgur com 2Tzp4 png rel noreferrer img src https stack imgur com 2Tzp4 png alt enter image description here pBest solution found that doesn require subclass or another codeIBInspectable code attribute ppre codeimport UIKitextension UIImageView override open func awakeFromNib super awakeFromNib tintColorDidChange code pre 50026,144011,100809,Good Answer Yearling Good Answer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 50027,595941,343957,Popular Question Yearling Nice Question Famous Question Documentation Pioneer Nice Answer Enlightened Nice Answer Enlightened Caucus Popular Question Popular Question Popular Question Notable Question Popular Question Good Question Yearling Caucus Popular Question Notable Question Documentation User Nice Answer Nice Answer Census Notable Question Caucus Constituent Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50028,4676577,1067774,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 50029,362078,415071,NULL,NULL,NULL,0,NULL,NULL 50030,16956,1409490,NULL,NULL,NULL,0,NULL,NULL 50031,651464,810019,NULL,NULL,NULL,0,NULL,NULL 50032,123952,586489,Yearling Announcer Popular Question Famous Question Good Answer Yearling Popular Question Custodian Promoter Yearling Nice Question Announcer,NULL,NULL,0,NULL,NULL 50033,390756,821076,Notable Question Critic Notable Question Popular Question Notable Question Notable Question Caucus Nice Question Notable Question Famous Question Famous Question Notable Question Yearling Nice Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 50034,26491,625290,Popular Question Student,NULL,NULL,0,NULL,NULL 50035,14673,346688,Caucus Revival,NULL,NULL,0,NULL,NULL 50036,165284,492998,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50037,173788,558592,Nice Answer Nice Question Nice Answer Notable Question Famous Question Yearling Caucus Documentation User Yearling Nice Answer Enlightened Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 50038,105474,768249,Popular Question Popular Question Quorum Revival,NULL,NULL,0,NULL,NULL 50039,151353,510145,Famous Question Good Answer Yearling Notable Question Custodian Good Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 50040,7004513,510145,Famous Question Good Answer Yearling Notable Question Custodian Good Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 50041,74579,58128,Notable Question Yearling Famous Question Necromancer Caucus Good Question Popular Question Nice Answer Yearling Guru Reviewer Documentation User Yearling Popular Question Famous Question,NULL,Decode amp back to in JavaScript javascript html text decode pI have strings like ppre codevar str One amp amp two amp amp three code preprendered into HTML by the web server need to transform those strings into ppre code One amp two amp three code prepCurrently that what am doing with help of jQuery ppre code document createElement div html driver person name text code prepHowever have an unsettling feeling that am doing it wrong have tried ppre codeunescape amp amp code prepbut it doesn seem to work neither do decodeURI decodeURIComponent ppAre there any other more native and elegant ways of doing so yes totally agree It nice experience to come back to this questions after couple of years thanks,0,NULL,NULL 50042,183018,931467,NULL,NULL,NULL,0,NULL,NULL 50043,324296,525217,Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Question Guru Necromancer Nice Answer Enlightened Nice Answer Nice Question Notable Question Good Answer Yearling Announcer Popular Question Notable Question Notable Question Good Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50044,253493,1264213,NULL,NULL,NULL,0,NULL,NULL 50045,21797,504931,Citizen Patrol Necromancer Yearling Custodian Organizer Explainer Yearling Tumbleweed Curious Good Answer Informed Revival Mortarboard Custodian Revival Yearling Caucus Necromancer Announcer Nice Answer Enlightened Revival Yearling swift Announcer Announcer Nice Answer Necromancer Announcer Necromancer Nice Answer Enlightened Announcer Necromancer Announcer Yearling Populist,NULL,NULL,0,NULL,NULL 50046,1273289,1370048,Supporter,NULL,NULL,0,NULL,NULL 50047,259776,349130,Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer qt Nice Answer keras Good Answer python Nice Answer Yearling Nice Answer Enlightened deep-learning Nice Answer Enlightened Custodian Custodian neural-network Nice Answer Enlightened Enlightened Nice Answer Enlightened tensorflow Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened machine-learning Nice Answer Enlightened keras Nice Answer Enlightened Yearling Good Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened python Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Enlightened Enlightened,NULL,Why does my NN not classify these tic tac toe pattern correctly machine learning artificial intelligence classification keras pI trying to teach an AI to recognize patterns of tic tac toe with winning line ppUnfortunately it not learning to recognize them correctly think my way of representing encoding the game into vectors is wrong ppI choose way that is easy for an human me in particular to understand ppre codetraining data np array float32 target data np array float32 code prepThis uses an array of length to represent board The first three items represent the first row the next three the second row and so on The line breaks should make it obvious The target data then maps the first two game states to no wins and the last two game states to wins ppThen wanted to create some validation data that is slightly different to see if it generalizes ppre codevalidation data np array float32 code prepObviously again the last two game states should be wins whereas the first two should not ppI tried to play with the number of neurons and learning rate but no matter what try my output looks pretty off ppre code 01207292 98913926 00925775 00577191 code prepI tend to think it the way how represent the game state that may be wrong but actually have no idea ppCan anyone help me out here ppThis is the entire code that use ppre codeimport numpy as npfrom keras models import Sequentialfrom keras layers core import Activation Densefrom keras optimizers import SGDtraining data np array float32 target data np array float32 validation data np array float32 model Sequential model add Dense input dim activation sigmoid model add Dense activation sigmoid sgd SGD lr decay 1e momentum nesterov True model compile loss mean squared error optimizer sgd history model fit training data target data nb epoch 10000 batch size verbose print model predict validation data code prep strongUPDATE strong ppI tried to follow the advice and used more training data with no success so far ppMy training set looks like this now ppre codetraining data np array float32 target data np array float32 code prepConsidering that only count patterns of code1 code as wins there are only different win states for the way represent the data made the NN see of them so that still have to test against to see if the generalization works now feeding it 15 states that it should not consider win ppHowever the outcome for my validation seems to actually get worse ppre code 06987642e 07 72647212e 02 97011139e 03 93282426e 07 code prepThings tried polliChanging from emsigmoid em to emsoftmax em liliAdding more neurons liliAdding more layer liliA mix of all of the above li ol You are solving here regression problem seems it could work as classification problem which means using softmax outputs and binary cross entropy loss Why does my NN not classify these tic tac toe pattern correctly machine learning artificial intelligence classification keras pI trying to teach an AI to recognize patterns of tic tac toe with winning line ppUnfortunately it not learning to recognize them correctly think my way of representing encoding the game into vectors is wrong ppI choose way that is easy for an human me in particular to understand ppre codetraining data np array float32 target data np array float32 code prepThis uses an array of length to represent board The first three items represent the first row the next three the second row and so on The line breaks should make it obvious The target data then maps the first two game states to no wins and the last two game states to wins ppThen wanted to create some validation data that is slightly different to see if it generalizes ppre codevalidation data np array float32 code prepObviously again the last two game states should be wins whereas the first two should not ppI tried to play with the number of neurons and learning rate but no matter what try my output looks pretty off ppre code 01207292 98913926 00925775 00577191 code prepI tend to think it the way how represent the game state that may be wrong but actually have no idea ppCan anyone help me out here ppThis is the entire code that use ppre codeimport numpy as npfrom keras models import Sequentialfrom keras layers core import Activation Densefrom keras optimizers import SGDtraining data np array float32 target data np array float32 validation data np array float32 model Sequential model add Dense input dim activation sigmoid model add Dense activation sigmoid sgd SGD lr decay 1e momentum nesterov True model compile loss mean squared error optimizer sgd history model fit training data target data nb epoch 10000 batch size verbose print model predict validation data code prep strongUPDATE strong ppI tried to follow the advice and used more training data with no success so far ppMy training set looks like this now ppre codetraining data np array float32 target data np array float32 code prepConsidering that only count patterns of code1 code as wins there are only different win states for the way represent the data made the NN see of them so that still have to test against to see if the generalization works now feeding it 15 states that it should not consider win ppHowever the outcome for my validation seems to actually get worse ppre code 06987642e 07 72647212e 02 97011139e 03 93282426e 07 code prepThings tried polliChanging from emsigmoid em to emsoftmax em liliAdding more neurons liliAdding more layer liliA mix of all of the above li ol what do you mean no success What accuracy did you get,1,NULL,Keras RuntimeError Failed to import pydot after installing graphviz and pydot python graphviz theano keras pydot pI using Anaconda Python on windows 10 ppI was planning on doing Keras visualization so whilst spyder was open opened the Anaconda command prompt and pip installed graphviz and pydot Now when try run the following ppre codefrom keras models import Sequential code prepor any sort of from keras get the error ppre codeImportError cannot import name gof code prepI have uninstalled and reinstalled Keras Graphviz and pydot am using the development version of theano cannot find fix pp strongP strong ppIf uninstall graphviz and pydot keras works again pp strongEDIT strong ppAfter uninstalling anaconda and reinstalling it including theano keras stronggraphviz and pydot strong now get the following error ppre codefrom keras utils visualize util import plotUsing Theano backend Using gpu device GeForce GTX 970M CNMeM is disabled cuDNN not available Traceback most recent call last File lt ipython input 65016ddab3cd gt line in lt module gt from keras utils visualize util import plot File Anaconda2 lib site packages keras utils visualize util py line in lt module gt raise RuntimeError Failed to import pydot You must install pydot RuntimeError Failed to import pydot You must install pydot and graphviz for pydotprint to work code prepI used codepip install graphviz code and codepip install git https github com nlhepler pydot git code pThe error message is bit misleading as you can see href https github com fchollet keras blob master keras utils visualize util py L7 rel noreferrer here The problem is that graphviz is not installed ppBut you mention that graphviz was installed using pip This is also misleading since that graphviz package is just python wrapper and the href https graphviz gitlab io download rel noreferrer graphviz binaries have to be installed separately for the python wrapper to work 50048,211069,350875,Custodian Yearling Excavator Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 50049,164653,1344947,NULL,NULL,NULL,0,NULL,NULL 50050,328020,305487,Citizen Patrol Census,NULL,NULL,0,NULL,NULL 50051,168873,340939,Popular Question Nice Question Notable Question Popular Question Good Question Popular Question Famous Question Notable Question javascript Notable Question Favorite Question Yearling Famous Question Popular Question Good Question Popular Question Good Answer Good Question Nice Question Notable Question Good Answer Great Question Notable Question Famous Question angularjs Yearling Popular Question Nice Question Great Question Famous Question Popular Question Popular Question Favorite Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Good Answer Popular Question Notable Question Popular Question Notable Question Revival Nice Answer,NULL,NULL,0,NULL,NULL 50052,527791,369585,NULL,NULL,NULL,0,NULL,NULL 50053,7518,385822,django-socialauth Yearling Nice Answer Enlightened Announcer Yearling Caucus Caucus python Yearling Revival Nice Answer Enlightened Nice Answer Good Answer python-social-auth,NULL,NULL,0,NULL,NULL 50054,19994,1014750,NULL,NULL,NULL,0,NULL,NULL 50055,495841,892814,NULL,NULL,NULL,0,NULL,NULL 50056,106774,1389342,NULL,NULL,NULL,0,NULL,NULL 50057,85982,845122,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 50058,298870,1319511,Popular Question,NULL,NULL,0,NULL,NULL 50059,450692,1139722,Curious Documentation Beta Yearling Yearling Yearling Custodian Citizen Patrol Custodian Custodian Critic Yearling Explainer Popular Question Caucus Popular Question Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50060,242296,1247274,Announcer Necromancer Announcer Notable Question Nice Question Announcer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 50061,121983,502976,Necromancer Nice Question Critic,NULL,NULL,0,NULL,NULL 50062,264351,1470871,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50063,4541557,980661,Popular Question,NULL,NULL,0,NULL,NULL 50064,174519,980661,Popular Question,NULL,NULL,0,NULL,NULL 50065,133490,88097,Yearling Guru Yearling Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 50066,108,471412,Yearling,NULL,NULL,0,NULL,NULL 50067,296980,170961,Popular Question Famous Question Notable Question Yearling Good Question Caucus Popular Question Notable Question Notable Question Custodian Nice Question Notable Question Custodian Inquisitive Caucus Famous Question Yearling Popular Question Documentation User Citizen Patrol Popular Question Good Question Caucus Popular Question Notable Question Custodian Reviewer Yearling,NULL,NULL,0,NULL,NULL 50068,388311,1167914,NULL,NULL,NULL,0,NULL,NULL 50069,29525,526669,Yearling Informed,NULL,NULL,0,NULL,NULL 50070,251684,1157337,Student Informed Editor Scholar,NULL,NULL,0,NULL,NULL 50071,1232001,700085,NULL,NULL,NULL,0,NULL,NULL 50072,122382,339613,NULL,NULL,NULL,0,NULL,NULL 50073,120528,56167,NULL,NULL,NULL,0,NULL,NULL 50074,2882981,774515,NULL,NULL,NULL,0,NULL,NULL 50075,240344,774515,NULL,NULL,NULL,0,NULL,NULL 50076,277078,486331,Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 50077,17796,463620,Yearling,NULL,NULL,0,NULL,NULL 50078,306563,941913,Famous Question Yearling Custodian Custodian Caucus Popular Question Yearling Popular Question Caucus Custodian Great Question Yearling,NULL,NULL,0,NULL,NULL 50079,576791,862457,NULL,NULL,NULL,0,NULL,NULL 50080,206627,467067,NULL,NULL,NULL,0,NULL,NULL 50081,100816,29880,NULL,NULL,NULL,0,NULL,NULL 50082,310104,1369676,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 50083,31353,1057730,Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Good Answer Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Caucus Constituent Yearling Announcer Necromancer Nice Question Announcer Announcer Good Answer Revival Announcer Announcer Nice Answer Enlightened Notable Question Nice Answer Popular Question Popular Question Notable Question Announcer Caucus Announcer Announcer Good Answer Announcer Nice Question Documentation User Yearling Caucus Constituent Good Answer Nice Answer Guru Necromancer Popular Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 50084,7831682,1057730,Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Good Answer Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Caucus Constituent Yearling Announcer Necromancer Nice Question Announcer Announcer Good Answer Revival Announcer Announcer Nice Answer Enlightened Notable Question Nice Answer Popular Question Popular Question Notable Question Announcer Caucus Announcer Announcer Good Answer Announcer Nice Question Documentation User Yearling Caucus Constituent Good Answer Nice Answer Guru Necromancer Popular Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 50085,7867177,1057730,Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Good Answer Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Caucus Constituent Yearling Announcer Necromancer Nice Question Announcer Announcer Good Answer Revival Announcer Announcer Nice Answer Enlightened Notable Question Nice Answer Popular Question Popular Question Notable Question Announcer Caucus Announcer Announcer Good Answer Announcer Nice Question Documentation User Yearling Caucus Constituent Good Answer Nice Answer Guru Necromancer Popular Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 50086,12070,749644,Revival Popular Question Necromancer Necromancer Yearling Nice Question Good Answer Nice Answer Revival Yearling Good Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 50087,773676,925907,NULL,NULL,NULL,0,NULL,NULL 50088,193228,328110,Yearling Great Answer Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 50089,1191953,604849,Popular Question,NULL,NULL,0,NULL,NULL 50090,730770,996444,Teacher Popular Question,NULL,NULL,0,NULL,NULL 50091,3558,65977,Yearling Good Answer Guru Popular Question Nice Question Famous Question Nice Answer Nice Answer Yearling Notable Question Nice Question Nice Answer Nice Question Good Answer Notable Question Announcer Yearling Nice Question firefox-addon Notable Question Inquisitive Nice Answer,NULL,NULL,0,NULL,NULL 50092,7320,558672,Necromancer Popular Question Nice Answer Nice Answer Famous Question Good Answer Guru Nice Question Yearling Notable Question Necromancer Nice Answer Tumbleweed Famous Question Notable Question Yearling Popular Question Great Answer Popular Question,NULL,NULL,0,NULL,NULL 50093,275423,117601,Necromancer Good Question Yearling Famous Question Popular Question Necromancer Good Answer Nice Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 50094,622519,1493946,Yearling,NULL,NULL,0,NULL,NULL 50095,445517,627246,Enthusiast Yearling Popular Question Popular Question Notable Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 50096,621159,1093441,NULL,NULL,NULL,0,NULL,NULL 50097,540010,758801,Yearling Custodian Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 50098,5817,542412,NULL,NULL,NULL,0,NULL,NULL 50099,154126,77650,Popular Question Yearling Popular Question Popular Question Yearling Popular Question Nice Answer Yearling Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 50100,811809,1183131,NULL,NULL,NULL,0,NULL,NULL 50101,599205,25021,Famous Question,NULL,NULL,0,NULL,NULL 50102,130463,137650,Necromancer Nice Answer Yearling solr Nice Answer Nice Answer Enlightened lucene Nice Answer Enlightened Nice Answer Enlightened Yearling Custodian Student Promoter Documentation User Benefactor Scholar Census Nice Answer Fanatic Nice Answer Good Answer Yearling python,NULL,pstr replace should solves this as long as you re careful with what you re replacing ppre code xE2 x80 x8C is ZERO WIDTH NON JOINER foo foo xE2 x80 x8Cbar print foo strlen foo foo str replace xE2 x80 x8C foo print foo strlen foo code prepOutputs as expected ppre codefoo‌bar 9foobar code pre Usually just escape sequences http php net manual en language types string php language types string syntax double or escape codes they can be are different for each language but most implement common subset such as etc olli pMake sure you ve pulled the new strongupstream strong branch into your stronglocal repo strong pulliFirst strongensure your working tree is clean strong commit stash revert any changes liliThen codegit fetch upstream code to retrieve the new upstream branch li ul lili pCreate and switch to stronglocal version of the new upstream branch strong strong codenewbranch code strong pulli codegit checkout newbranch upstream newbranch code li ul lili pWhen you re ready to push the new branch to strongorigin strong pulli codegit push origin newbranch code li ul li olpThe strong strong switch sets up tracking to the specified remote in this example strong codeorigin code strong Or you made typo in the branch name under upstream the branch upstream foo wasn found,0,NULL,NULL 50103,440863,720498,NULL,NULL,NULL,0,NULL,NULL 50104,151126,355651,android Famous Question Yearling Popular Question Famous Question Popular Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 50105,1962240,656774,NULL,NULL,NULL,0,NULL,NULL 50106,121308,985436,Necromancer Yearling Caucus Commentator Editor Nice Answer,NULL,NULL,0,NULL,NULL 50107,468403,893169,Popular Question,NULL,NULL,0,NULL,NULL 50108,542551,1013974,Popular Question,NULL,NULL,0,NULL,NULL 50109,7552,981471,NULL,NULL,NULL,0,NULL,NULL 50110,722218,304267,NULL,NULL,NULL,0,NULL,NULL 50111,313311,998539,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50112,900691,453953,Yearling Good Answer Popular Question Yearling Popular Question Yearling jquery,NULL,NULL,0,NULL,NULL 50113,38670,232638,Famous Question Nice Answer Popular Question Yearling Notable Question Nice Question Necromancer Necromancer Popular Question Good Question Popular Question Yearling Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Nice Question Nice Answer Announcer Yearling Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 50114,1504631,232638,Famous Question Nice Answer Popular Question Yearling Notable Question Nice Question Necromancer Necromancer Popular Question Good Question Popular Question Yearling Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Nice Question Nice Answer Announcer Yearling Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 50115,973562,717968,Commentator Popular Question Notable Question Notable Question Nice Question Yearling Self-Learner Yearling Famous Question Popular Question Notable Question Popular Question Popular Question Nice Answer Notable Question Good Question Yearling Popular Question Nice Question Nice Question Famous Question Caucus Constituent Nice Question Yearling Popular Question Popular Question Popular Question Critic Famous Question Notable Question Census Caucus Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50116,373353,1529866,NULL,NULL,NULL,0,NULL,NULL 50117,777277,1189117,NULL,NULL,NULL,0,NULL,NULL 50118,213221,305736,Nice Answer Necromancer Caucus Constituent,NULL,NULL,0,NULL,NULL 50119,71691,2646,Popular Question Favorite Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 50120,153633,1113918,NULL,NULL,NULL,0,NULL,NULL 50121,462786,881366,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 50122,270659,1367612,Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 50123,167400,163789,Student,NULL,NULL,0,NULL,NULL 50124,3328477,1536728,NULL,NULL,NULL,0,NULL,NULL 50125,19442,1536728,NULL,NULL,NULL,0,NULL,NULL 50126,103437,478591,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 50127,123014,458823,NULL,NULL,NULL,0,NULL,NULL 50128,781,1050661,Student,NULL,NULL,0,NULL,NULL 50129,78830,216941,Revival Guru Notable Question Nice Question Necromancer Popular Question Yearling Necromancer Good Answer Yearling Great Answer Great Question Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 50130,3011866,417905,Informed Autobiographer Teacher,NULL,NULL,0,NULL,NULL 50131,17238,417905,Informed Autobiographer Teacher,NULL,NULL,0,NULL,NULL 50132,23784,495154,Good Answer Populist Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50133,46933,207031,NULL,NULL,NULL,0,NULL,NULL 50134,3789564,980620,NULL,NULL,NULL,0,NULL,NULL 50135,227527,53997,Curious Custodian Yearling Caucus Tumbleweed Good Answer Popular Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 50136,250084,257140,Supporter,NULL,NULL,0,NULL,NULL 50137,15829,226060,Peer Pressure Yearling Nice Answer Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 50138,316811,390883,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 50139,980709,1174749,Teacher Supporter,NULL,NULL,0,NULL,NULL 50140,36320,107840,Nice Answer Critic Yearling Nice Answer Enlightened Yearling ruby-on-rails,NULL,NULL,0,NULL,NULL 50141,517641,91362,Yearling Caucus Yearling Custodian Civic Duty Informed Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 50142,17554,194940,Nice Answer Guru Nice Answer Good Answer Good Answer Good Answer Nice Answer Famous Question Good Answer Nice Answer Enlightened Great Answer Good Answer Yearling Good Answer Great Answer linq Great Answer Popular Question Good Answer Good Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Great Answer Yearling Nice Answer Guru Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Yearling Nice Answer,NULL,SVG use tag and ReactJS svg sprite reactjs pSo normally to include most of my SVG icons that require simple styling do ppre code lt svg gt lt use xlink href svg svg sprite my icon gt lt svg gt code prepNow have been playing with ReactJS as of late evaluating it as possible component in my new front end development stack however noticed that in its list of supported tags attributes neither codeuse code or codexlink href code are supported ppIs it possible to use svg sprites and load them in this way in ReactJS xlink href is deprecated now supposed to just use href https developer mozilla org en US docs Web SVG Attribute xlink href,0,NULL,NULL 50143,445227,970860,NULL,NULL,NULL,0,NULL,NULL 50144,520657,1364075,NULL,NULL,NULL,0,NULL,NULL 50145,2455047,1008568,Yearling Nice Answer Yearling Commentator Custodian Citizen Patrol Tenacious Nice Answer Yearling Organizer Enthusiast Yearling Yearling Announcer Critic Yearling,NULL,NULL,0,NULL,NULL 50146,338336,172788,Notable Question Good Question Popular Question Popular Question Nice Answer Notable Question Nice Answer Yearling Notable Question Popular Question Caucus Notable Question Nice Question Notable Question Good Question Nice Question Famous Question Popular Question Popular Question Good Answer Favorite Question Yearling Popular Question Good Question Popular Question Good Question Famous Question Benefactor Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50147,221528,117777,Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 50148,330744,401688,Necromancer Nice Question Yearling Yearling Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 50149,24038,1091712,NULL,NULL,NULL,0,NULL,NULL 50150,976704,179212,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 50151,23346,336923,Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 50152,243636,1148780,Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 50153,438999,368821,Notable Question Good Answer Guru Good Answer Guru Nice Answer Yearling Good Answer Necromancer Nice Answer Popular Question Good Answer Famous Question Great Answer Yearling Good Answer Pundit Nice Answer Popular Question Announcer Great Answer Revival Yearling Nice Answer Notable Question Good Answer,NULL,NULL,0,NULL,NULL 50154,154146,219375,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50155,219596,1274964,NULL,NULL,NULL,0,NULL,NULL 50156,239160,300063,NULL,NULL,NULL,0,NULL,NULL 50157,309400,1272404,Informed Autobiographer Scholar Editor,NULL,NULL,0,NULL,NULL 50158,176660,410286,Yearling Necromancer Commentator Editor Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 50159,393220,542523,NULL,NULL,NULL,0,NULL,NULL 50160,4161863,284795,Necromancer Good Question Necromancer Famous Question Nice Question Nice Answer Notable Question Famous Question math Good Question Notable Question Nice Answer Announcer Yearling Necromancer Popular Question Popular Question Nice Answer Popular Question Nice Question Good Answer Nice Answer Enlightened Famous Question Necromancer Popular Question Necromancer Nice Answer Notable Question Good Question Notable Question Notable Question Famous Question Archaeologist Popular Question Popular Question Popular Question Famous Question Great Answer Nice Answer Necromancer Necromancer Popular Question Guru Necromancer Popular Question Nice Question Nice Question Popular Question Good Question Mortarboard Notable Question Good Question Guru Good Answer Notable Question Popular Question Necromancer Popular Question Good Answer Good Question Announcer Nice Answer Favorite Question Nice Answer Necromancer Good Question Booster Famous Question Nice Answer Nice Answer Enlightened Necromancer Notable Question Good Question Necromancer Famous Question Necromancer Famous Question Nice Question Nice Answer Notable Question Nice Answer Nice Answer Famous Question Nice Answer Nice Question Nice Question Popular Question Notable Question Nice Question Nice Answer Popular Question Necromancer Good Answer Popular Question Nice Question Popular Question Necromancer Announcer Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Caucus Notable Question Notable Question Nice Answer Popular Question Famous Question Nice Answer Enlightened Necromancer Famous Question Good Question Great Question Popular Question Necromancer Necromancer Popular Question Necromancer Nice Answer Notable Question Good Answer Notable Question Necromancer Popular Question Nice Answer Popular Question Good Answer Nice Answer Popular Question Nice Answer Necromancer Popular Question Nice Answer Enlightened Good Answer Popular Question Notable Question Yearling Necromancer Famous Question Popular Question Notable Question Announcer Popular Question Announcer Revival Popular Question Necromancer Notable Question Popular Question Nice Question Notable Question Nice Answer Nice Question Necromancer Necromancer Great Answer Announcer Announcer Announcer Announcer Necromancer Announcer Announcer Popular Question Announcer Famous Question Notable Question Popular Question Famous Question Notable Question Announcer Nice Answer Caucus Popular Question Popular Question Popular Question Notable Question Populist Nice Answer Nice Answer Popular Question Announcer Great Question Nice Question Nice Answer Nice Question Nice Question Great Answer Nice Question Good Answer Announcer Necromancer Good Answer Announcer Popular Question Good Answer Necromancer Famous Question Popular Question Announcer Announcer Nice Answer Announcer Popular Question Notable Question Popular Question Necromancer Popular Question Good Answer Notable Question Announcer Guru Notable Question Nice Answer Nice Question Announcer Popular Question Necromancer Nice Answer Famous Question Good Answer Good Question Famous Question Great Question Necromancer Notable Question Nice Question Necromancer Announcer Famous Question Announcer Nice Answer Necromancer Notable Question Famous Question Necromancer Nice Question Publicist Announcer Announcer Announcer Yearling Popular Question Famous Question Caucus Popular Question Nice Answer Notable Question Popular Question Popular Question Necromancer Good Answer Nice Question Necromancer Good Answer Nice Question Nice Question Notable Question Notable Question Announcer Announcer Good Question Good Answer Favorite Question Famous Question Good Answer Nice Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Popular Question Nice Answer Necromancer Nice Question Good Answer Nice Answer Nice Answer Nice Question Necromancer Good Question Famous Question Famous Question Good Question Nice Question Notable Question Famous Question Announcer Nice Answer Good Answer Good Answer Necromancer Great Answer Nice Answer Announcer Nice Answer Announcer Notable Question Nice Answer Popular Question Announcer Nice Question,NULL,Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre The Magic Words are Squeamish Ossifrage If the history interests you you might enjoy reading https en wikipedia org wiki RSA Factoring Challenge Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Here 20 digit 63 bit semiprime to test your factorisation code 8876044532898802067 Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Bonus 40 digit 130 bit semiprime 2630492240413883318777134293253671517529 This took few hours to factor using sympy ntheory factorint http stackoverflow com 31986424 284795 Why can the constructor infer type generics constructor type inference pWhy is type inference not supported for constructors the way it is for generic methods ppre codepublic class MyType lt gt private readonly field public MyType value field value var obj new MyType 42 why can type inference work out that want MyType lt int gt code prepThough you could get around this with factory class ppre codepublic class MyTypeFactory public static MyType lt gt Create lt gt value return new MyType lt gt value var myObj MyTypeFactory Create 42 code prepIs there practical or philosophical reason why the constructor can support type inference Please vote for the feature request Proposal Constructor type argument inference https github com dotnet csharplang issues 281 Remove duplicates from ListT in generics pAnyone have quick method for de duplicating generic List in Do you care about the order of elements in the result This will exclude some solutions When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values 0b1111111111111111111111111111111111111111111111111111111111111 curious So 61,1,When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values,NULL 50161,55661,284795,Necromancer Good Question Necromancer Famous Question Nice Question Nice Answer Notable Question Famous Question math Good Question Notable Question Nice Answer Announcer Yearling Necromancer Popular Question Popular Question Nice Answer Popular Question Nice Question Good Answer Nice Answer Enlightened Famous Question Necromancer Popular Question Necromancer Nice Answer Notable Question Good Question Notable Question Notable Question Famous Question Archaeologist Popular Question Popular Question Popular Question Famous Question Great Answer Nice Answer Necromancer Necromancer Popular Question Guru Necromancer Popular Question Nice Question Nice Question Popular Question Good Question Mortarboard Notable Question Good Question Guru Good Answer Notable Question Popular Question Necromancer Popular Question Good Answer Good Question Announcer Nice Answer Favorite Question Nice Answer Necromancer Good Question Booster Famous Question Nice Answer Nice Answer Enlightened Necromancer Notable Question Good Question Necromancer Famous Question Necromancer Famous Question Nice Question Nice Answer Notable Question Nice Answer Nice Answer Famous Question Nice Answer Nice Question Nice Question Popular Question Notable Question Nice Question Nice Answer Popular Question Necromancer Good Answer Popular Question Nice Question Popular Question Necromancer Announcer Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Caucus Notable Question Notable Question Nice Answer Popular Question Famous Question Nice Answer Enlightened Necromancer Famous Question Good Question Great Question Popular Question Necromancer Necromancer Popular Question Necromancer Nice Answer Notable Question Good Answer Notable Question Necromancer Popular Question Nice Answer Popular Question Good Answer Nice Answer Popular Question Nice Answer Necromancer Popular Question Nice Answer Enlightened Good Answer Popular Question Notable Question Yearling Necromancer Famous Question Popular Question Notable Question Announcer Popular Question Announcer Revival Popular Question Necromancer Notable Question Popular Question Nice Question Notable Question Nice Answer Nice Question Necromancer Necromancer Great Answer Announcer Announcer Announcer Announcer Necromancer Announcer Announcer Popular Question Announcer Famous Question Notable Question Popular Question Famous Question Notable Question Announcer Nice Answer Caucus Popular Question Popular Question Popular Question Notable Question Populist Nice Answer Nice Answer Popular Question Announcer Great Question Nice Question Nice Answer Nice Question Nice Question Great Answer Nice Question Good Answer Announcer Necromancer Good Answer Announcer Popular Question Good Answer Necromancer Famous Question Popular Question Announcer Announcer Nice Answer Announcer Popular Question Notable Question Popular Question Necromancer Popular Question Good Answer Notable Question Announcer Guru Notable Question Nice Answer Nice Question Announcer Popular Question Necromancer Nice Answer Famous Question Good Answer Good Question Famous Question Great Question Necromancer Notable Question Nice Question Necromancer Announcer Famous Question Announcer Nice Answer Necromancer Notable Question Famous Question Necromancer Nice Question Publicist Announcer Announcer Announcer Yearling Popular Question Famous Question Caucus Popular Question Nice Answer Notable Question Popular Question Popular Question Necromancer Good Answer Nice Question Necromancer Good Answer Nice Question Nice Question Notable Question Notable Question Announcer Announcer Good Question Good Answer Favorite Question Famous Question Good Answer Nice Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Popular Question Nice Answer Necromancer Nice Question Good Answer Nice Answer Nice Answer Nice Question Necromancer Good Question Famous Question Famous Question Good Question Nice Question Notable Question Famous Question Announcer Nice Answer Good Answer Good Answer Necromancer Great Answer Nice Answer Announcer Nice Answer Announcer Notable Question Nice Answer Popular Question Announcer Nice Question,NULL,Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre The Magic Words are Squeamish Ossifrage If the history interests you you might enjoy reading https en wikipedia org wiki RSA Factoring Challenge Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Here 20 digit 63 bit semiprime to test your factorisation code 8876044532898802067 Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Bonus 40 digit 130 bit semiprime 2630492240413883318777134293253671517529 This took few hours to factor using sympy ntheory factorint http stackoverflow com 31986424 284795 Why can the constructor infer type generics constructor type inference pWhy is type inference not supported for constructors the way it is for generic methods ppre codepublic class MyType lt gt private readonly field public MyType value field value var obj new MyType 42 why can type inference work out that want MyType lt int gt code prepThough you could get around this with factory class ppre codepublic class MyTypeFactory public static MyType lt gt Create lt gt value return new MyType lt gt value var myObj MyTypeFactory Create 42 code prepIs there practical or philosophical reason why the constructor can support type inference Please vote for the feature request Proposal Constructor type argument inference https github com dotnet csharplang issues 281 Remove duplicates from ListT in generics pAnyone have quick method for de duplicating generic List in Do you care about the order of elements in the result This will exclude some solutions When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values 0b1111111111111111111111111111111111111111111111111111111111111 curious So 61,1,When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values,NULL 50162,4257704,284795,Necromancer Good Question Necromancer Famous Question Nice Question Nice Answer Notable Question Famous Question math Good Question Notable Question Nice Answer Announcer Yearling Necromancer Popular Question Popular Question Nice Answer Popular Question Nice Question Good Answer Nice Answer Enlightened Famous Question Necromancer Popular Question Necromancer Nice Answer Notable Question Good Question Notable Question Notable Question Famous Question Archaeologist Popular Question Popular Question Popular Question Famous Question Great Answer Nice Answer Necromancer Necromancer Popular Question Guru Necromancer Popular Question Nice Question Nice Question Popular Question Good Question Mortarboard Notable Question Good Question Guru Good Answer Notable Question Popular Question Necromancer Popular Question Good Answer Good Question Announcer Nice Answer Favorite Question Nice Answer Necromancer Good Question Booster Famous Question Nice Answer Nice Answer Enlightened Necromancer Notable Question Good Question Necromancer Famous Question Necromancer Famous Question Nice Question Nice Answer Notable Question Nice Answer Nice Answer Famous Question Nice Answer Nice Question Nice Question Popular Question Notable Question Nice Question Nice Answer Popular Question Necromancer Good Answer Popular Question Nice Question Popular Question Necromancer Announcer Famous Question Popular Question Popular Question Notable Question Popular Question Popular Question Caucus Notable Question Notable Question Nice Answer Popular Question Famous Question Nice Answer Enlightened Necromancer Famous Question Good Question Great Question Popular Question Necromancer Necromancer Popular Question Necromancer Nice Answer Notable Question Good Answer Notable Question Necromancer Popular Question Nice Answer Popular Question Good Answer Nice Answer Popular Question Nice Answer Necromancer Popular Question Nice Answer Enlightened Good Answer Popular Question Notable Question Yearling Necromancer Famous Question Popular Question Notable Question Announcer Popular Question Announcer Revival Popular Question Necromancer Notable Question Popular Question Nice Question Notable Question Nice Answer Nice Question Necromancer Necromancer Great Answer Announcer Announcer Announcer Announcer Necromancer Announcer Announcer Popular Question Announcer Famous Question Notable Question Popular Question Famous Question Notable Question Announcer Nice Answer Caucus Popular Question Popular Question Popular Question Notable Question Populist Nice Answer Nice Answer Popular Question Announcer Great Question Nice Question Nice Answer Nice Question Nice Question Great Answer Nice Question Good Answer Announcer Necromancer Good Answer Announcer Popular Question Good Answer Necromancer Famous Question Popular Question Announcer Announcer Nice Answer Announcer Popular Question Notable Question Popular Question Necromancer Popular Question Good Answer Notable Question Announcer Guru Notable Question Nice Answer Nice Question Announcer Popular Question Necromancer Nice Answer Famous Question Good Answer Good Question Famous Question Great Question Necromancer Notable Question Nice Question Necromancer Announcer Famous Question Announcer Nice Answer Necromancer Notable Question Famous Question Necromancer Nice Question Publicist Announcer Announcer Announcer Yearling Popular Question Famous Question Caucus Popular Question Nice Answer Notable Question Popular Question Popular Question Necromancer Good Answer Nice Question Necromancer Good Answer Nice Question Nice Question Notable Question Notable Question Announcer Announcer Good Question Good Answer Favorite Question Famous Question Good Answer Nice Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Popular Question Nice Answer Necromancer Nice Question Good Answer Nice Answer Nice Answer Nice Question Necromancer Good Question Famous Question Famous Question Good Question Nice Question Notable Question Famous Question Announcer Nice Answer Good Answer Good Answer Necromancer Great Answer Nice Answer Announcer Nice Answer Announcer Notable Question Nice Answer Popular Question Announcer Nice Question,NULL,Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre The Magic Words are Squeamish Ossifrage If the history interests you you might enjoy reading https en wikipedia org wiki RSA Factoring Challenge Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Here 20 digit 63 bit semiprime to test your factorisation code 8876044532898802067 Fast prime factorization module python algorithm prime factoring pI am looking for an strongimplementation strong or strongclear algorithm strong for getting the prime factorization of emN em in either python pseudocode or anything else well readable There are few demands facts pulli emN em is between and 20 digits liliNo pre calculated lookup table memoization is fine though liliNeed not to be mathematically proven could rely on the Goldbach conjecture if needed liliNeed not to be precise is allowed to be probabilistic deterministic if needed li ulpI need fast prime factorization algorithm not only for itself but for usage in many other algorithms like calculating the Euler emphi em ppI have tried other algorithms from Wikipedia and such but either couldn understand them ECM or couldn create working implementation from the algorithm Pollard Brent ppI am really interested in the Pollard Brent algorithm so any more information implementations on it would be really nice ppThanks pp strongEDIT strong ppAfter messing around little have created pretty fast prime factorization module It combines an optimized trial division algorithm the Pollard Brent algorithm miller rabin primality test and the fastest primesieve found on the internet gcd is regular Euclid GCD implementation binary Euclid GCD is strongmuch strong slower then the regular one ph1Bounty h1pOh joy bounty can be acquired But how can win it pulliFind an optimalization or bug in my module liliProvide alternative better algorithms implementations li ulpThe answer which is the most complete constructive gets the bounty ppAnd finally the module itself ppre codeimport randomdef primesbelow http stackoverflow com questions 2068372 fastest way to list all primes below in python 3035188 3035188 Input gt Returns list of primes lt lt correction gt sieve True sieve False for in range int if sieve sieve False sieve False return for in range correction if sieve smallprimeset set primesbelow 100000 smallprimeset 100000def isprime precision http en wikipedia org wiki Miller Rabin primality test Algorithm and running time if lt raise ValueError Out of bounds first argument must be gt elif lt return gt elif return False elif lt smallprimeset return in smallprimeset while for repeat in range precision random randrange pow if or continue for in range pow if return False if break else return False return True https comeoncodeon wordpress com 2010 09 18 pollard rho brent integer factorization def pollard brent if return if return random randint random randint random randint while for in range pow while lt and ys for in range min pow abs gcd if while True ys pow ys gcd abs ys if gt break return gsmallprimes primesbelow 1000 might seem low but 1000 1000 1000000 so this will fully factor every composite lt 1000000def primefactors sort False factors for checker in smallprimes while checker factors append checker checker if checker gt break if lt return factors while gt if isprime factors append break factor pollard brent trial division did not fully factor switch to pollard brent factors extend primefactors factor recurse to factor the not necessarily prime factor returned by pollard brent factor if sort factors sort return factorsdef factorization factors for p1 in primefactors try factors p1 except KeyError factors p1 return factorstotients def totient if return try return totients except KeyError pass tot for exp in factorization items tot exp totients tot return totdef gcd if return while gt return adef lcm return abs gcd code pre Bonus 40 digit 130 bit semiprime 2630492240413883318777134293253671517529 This took few hours to factor using sympy ntheory factorint http stackoverflow com 31986424 284795 Why can the constructor infer type generics constructor type inference pWhy is type inference not supported for constructors the way it is for generic methods ppre codepublic class MyType lt gt private readonly field public MyType value field value var obj new MyType 42 why can type inference work out that want MyType lt int gt code prepThough you could get around this with factory class ppre codepublic class MyTypeFactory public static MyType lt gt Create lt gt value return new MyType lt gt value var myObj MyTypeFactory Create 42 code prepIs there practical or philosophical reason why the constructor can support type inference Please vote for the feature request Proposal Constructor type argument inference https github com dotnet csharplang issues 281 Remove duplicates from ListT in generics pAnyone have quick method for de duplicating generic List in Do you care about the order of elements in the result This will exclude some solutions When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values 0b1111111111111111111111111111111111111111111111111111111111111 curious So 61,1,When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values,NULL 50163,146607,1387971,NULL,NULL,NULL,0,NULL,NULL 50164,1704949,130767,Autobiographer,NULL,NULL,0,NULL,NULL 50165,67453,107277,Popular Question Nice Answer Good Question Guru Popular Question Announcer Taxonomist Popular Question Popular Question Good Question Popular Question Notable Question Notable Question Popular Question Nice Answer Yearling Popular Question Nice Question Famous Question Nice Question Good Question Notable Question Necromancer Popular Question Popular Question Nice Answer Famous Question Caucus Nice Answer Famous Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Nice Answer Enlightened Nice Answer Notable Question Good Question Good Answer Popular Question Yearling Nice Question Announcer Good Answer Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Good Answer Popular Question Great Question Notable Question Caucus Famous Question Popular Question Good Answer Good Question Good Question Notable Question Famous Question Yearling Notable Question Good Question Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 50166,2453415,759905,NULL,NULL,NULL,0,NULL,NULL 50167,108065,864236,Good Answer Nice Question Notable Question Yearling Good Answer Notable Question Yearling Tumbleweed Popular Question google-cloud-datastore Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 50168,333329,871243,NULL,NULL,NULL,0,NULL,NULL 50169,574311,726047,Popular Question Nice Question Yearling Good Answer Notable Question Necromancer Necromancer Yearling Custodian Good Question Nice Answer Famous Question Yearling Notable Question Promoter Nice Answer Enlightened Good Question Notable Question,NULL,NULL,0,NULL,NULL 50170,84786,52284,Teacher Supporter Autobiographer Informed,NULL,NULL,1,NULL,Finding the hex code sequence for key combination vim hex tmux pI am trying to understand the way for generating the hex code sequence for keyboard key combinations So can use those to send specific keys to vim session running inside tmux which is inside iTerm2 through the Send Hex Code functionality of iTerm2 However this is becoming extremely confusing ppI have started with this article href http tangledhelix com blog 2012 04 28 iterm2 keymaps for tmux rel nofollow noreferrer iTerm2 keymaps for tmux ppSo as constant and as starting point know that codeCTRL code can be represented as hex code of code0x02 code ppI have tested that and it works when map this to any random key in iTerm2 can see that it is sent to tmux as codeCTRL code ppBut how do know the hex code of other key combinations for example what is the hex code for SHIFT F10 or CTRL F5 or CTRL Space ppI have asked another question related to this question here href https stackoverflow com questions 36321804 key escape sequences not working for tmux Key escape sequences not working for tmux pYou can use the command line tool codexxd code for this It reads from codeSTDIN code and outputs hex dump alongside the original input like so ppre code echo hello world xxd0000000 6865 6c6c 6f20 776f 726c 64 hello world code prepAnother handy trick to know is that if you want to enter control character directly you can often switch to temporary raw mode by prefixing the key by codeCtrl code code code For instance to get the hex codes that represent codeCtrl code run codexxd code hit codeCtrl code then codeCtrl code then codeEnter code to visually separate the input from codexxd code output then codeCtrl code to send an codeEOF code ppre code xxd B0000000 020a code prepThe output can be interpreted like so pullifirst column code0000000 code is the offset lilithen we see code20 code which represents code code lilinext is code0a code codeLF code liliand in the final column we see the original input corresponding with the hex output dots in this case indicate non visible characters li ulpTesting F5 and Shift F5 on Linux inside tmux ppre code xxd 15 25 0000000 1b5b 3135 7e0a 1b5b 3235 7e0a 15 25 code prepSo to interpret F5 we see ESC code0x1b code followed by hex representations of the listed characters terminated by LF code0x0a code pulli code5b code or the symbol lili code31 code or the number lili code35 code or the number lili code7e code or the symbol li ulpShift F5 can be interpreted similarly except the ANSI sequence uses 25 instead of 15 ppYou can also use the codetput code command see the following answer href https unix stackexchange com 53589 https unix stackexchange com 53589 50171,64538,363470,Revival Yearling Necromancer Necromancer Nice Answer Yearling Explainer Scholar Custodian Student,NULL,NULL,0,NULL,NULL 50172,261346,1269995,NULL,NULL,NULL,0,NULL,NULL 50173,62691,155259,Yearling Popular Question,NULL,NULL,0,NULL,NULL 50174,9333538,155259,Yearling Popular Question,NULL,NULL,0,NULL,NULL 50175,178083,498720,NULL,NULL,NULL,0,NULL,NULL 50176,136690,1119934,NULL,NULL,NULL,0,NULL,NULL 50177,398958,78496,Announcer Custodian Custodian Announcer Proofreader Mortarboard Yearling Announcer Announcer Great Answer Announcer Caucus Announcer Nice Answer Census Custodian Yearling Enlightened Announcer Announcer ios Announcer Custodian Census Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 50178,15120,563103,NULL,NULL,NULL,0,NULL,NULL 50179,194554,574621,Popular Question Necromancer Critic Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 50180,585006,242608,Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 50181,57920,839684,NULL,NULL,NULL,0,NULL,NULL 50182,301260,199646,Nice Answer Yearling Curious Notable Question Caucus,NULL,NULL,0,NULL,NULL 50183,26601,264970,Yearling Notable Question Nice Answer Famous Question Nice Answer Notable Question Yearling Pundit Great Question Revival Popular Question Yearling Announcer Good Answer Famous Question Announcer,NULL,NULL,0,NULL,NULL 50184,476902,317404,Popular Question Yearling Announcer Notable Question Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50185,1206577,668393,NULL,NULL,NULL,0,NULL,NULL 50186,210516,668393,NULL,NULL,NULL,0,NULL,NULL 50187,181707,522812,Yearling Supporter Yearling Student,NULL,NULL,0,NULL,NULL 50188,313194,15368,Guru Custodian Yearling Nice Answer Yearling Documentation User Stellar Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50189,83423,23839,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 50190,75438,641284,Yearling Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 50191,161901,686701,NULL,NULL,NULL,0,NULL,NULL 50192,133094,17221,Great Answer Nice Answer c++ Pundit Notable Question Great Answer Yearling Great Answer Self-Learner Benefactor Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50193,718098,205089,NULL,NULL,NULL,0,NULL,NULL 50194,827235,1200635,Supporter Popular Question Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50195,81694,187804,Popular Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 50196,1508680,306308,Informed,NULL,NULL,0,NULL,NULL 50197,469454,1441286,Informed Autobiographer Custodian Scholar Enthusiast,NULL,NULL,0,NULL,NULL 50198,24221,2590,Notable Question Nice Question Notable Question Good Answer Yearling Famous Question Great Answer Yearling Favorite Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Favorite Question Yearling Guru,NULL,NULL,0,NULL,NULL 50199,319782,597457,Critic Tumbleweed Self-Learner,NULL,NULL,1,Index time field level boosting in Lucene lucene scoring lucene boosting pIn Lucene and greater Field level index time boosting is href http lucene apache org core core org apache lucene document Field html setBoost float rel nofollow noreferrer deprecated The documentation states pblockquote pIndex time boosts are deprecated please index index time scoring factors into doc value field and combine them with the score at query time using eg FunctionScoreQuery blockquotepPreviously one would boost field at index time like so ppre code Field title new Field PaperDAO LUCENE FIELD TITLE titleStr fieldType title setBoost 00f document add title Field authors new Field PaperDAO LUCENE FIELD AUTHOR StringEscapeUtils unescapeHtml4 this getAuthorsForLucene fieldType authors setBoost 10 00f document add authors code prepI do not understand how the suggested FunctionScoreQuery is an appropriate replacement for field level boosting as one constructs FunctionScoreQuery given only an existing Query and DoubleValuesSource representing the boost value for only one of potentially many fields ppre code INDEX TIMEField title new Field PaperDAO LUCENE FIELD TITLE titleStr fieldType document add title document add new FloatDocValuesField PaperDAO LUCENE FIELD TITLE boost 00f QUERY TIMEnew FunctionScoreQuery query DoubleValuesSource fromFloatField PaperDAO LUCENE FIELD TITLE boost code prepCan someone please explain the appropriate replacement for Field setBoost index time in Lucene Are we supposed to be enumerating all possible fields at query time and applying the relevant boost If so how is that query constructed,NULL 50200,98791,15537,Nice Answer Notable Question mysql Good Answer Good Answer Popular Question Favorite Question Nice Question Guru Famous Question Notable Question Great Question Great Question Good Question Nice Answer Nice Answer Notable Question Yearling Good Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Question Good Answer Good Answer Guru Nice Answer Good Question Census Popular Question Guru Favorite Question Nice Answer Popular Question Guru Nice Answer Guru Good Answer Enlightened Good Question Yearling Documentation User Good Answer Good Question Famous Question Good Answer Census Famous Question Nice Answer Nice Answer Enlightened Great Question Guru Enlightened Famous Question Great Answer Nice Question Good Answer Famous Question Good Answer Yearling Nice Answer Guru Great Question Good Answer,NULL,pre code this worksrm foo versusrm foo code prepBasically you need to tell it to delete file not delete directory believe the difference between coderm code and codermdir code exists because of differences in the way the library treats each ppAt any rate the first should work while the second should complain about foo being directory ppIf it doesn work as above then check your permissions You need write permission to the containing directory to remove files still don get how it better It doesn handle unlink foo either which would make it better handling common accidental error and as noted by others rm foo will fail loudly unless you intentionally add the flag which will do bad things But only because you told it to The fact there no recursive version of unlink usually see the note about OS version of unlink doesn make it better it makes it worse IMO pre code this worksrm foo versusrm foo code prepBasically you need to tell it to delete file not delete directory believe the difference between coderm code and codermdir code exists because of differences in the way the library treats each ppAt any rate the first should work while the second should complain about foo being directory ppIf it doesn work as above then check your permissions You need write permission to the containing directory to remove files Specifically unlink has no relation to the ln AKA link operation The name unlink refers to the process of unlinking removing file from the file system file table so that the contents become detached from any reference to them they are unlinked It confusing name that downright misleading when applied to links and symlinks in particular unlink will work with symlinks because it works with any file regardless of type pre code this worksrm foo versusrm foo code prepBasically you need to tell it to delete file not delete directory believe the difference between coderm code and codermdir code exists because of differences in the way the library treats each ppAt any rate the first should work while the second should complain about foo being directory ppIf it doesn work as above then check your permissions You need write permission to the containing directory to remove files If you re ever actually worried about doing something silly alias rm rm has saved more hides than just about anything else out there think,0,NULL,NULL 50201,201852,911205,Nice Answer Critic,NULL,NULL,0,NULL,NULL 50202,711395,304666,NULL,NULL,NULL,0,NULL,NULL 50203,81979,28290,Yearling Announcer Great Question Popular Question Peer Pressure Tumbleweed Necromancer Custodian Yearling Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 50204,377864,729838,Necromancer,NULL,NULL,0,NULL,NULL 50205,227335,464839,NULL,NULL,NULL,0,NULL,NULL 50206,28196,611806,Nice Answer,NULL,NULL,0,NULL,NULL 50207,60546,755875,Yearling Tenacious Yearling python Yearling,NULL,NULL,0,NULL,NULL 50208,170248,594223,Yearling Popular Question Nice Answer Enlightened Yearling Investor Nice Question Great Answer Yearling Revival,NULL,NULL,0,NULL,NULL 50209,10664,413186,NULL,NULL,NULL,0,NULL,NULL 50210,515300,7405,Nice Answer Yearling Great Answer Good Answer Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 50211,8705523,1146241,NULL,NULL,NULL,0,NULL,NULL 50212,184739,493821,NULL,NULL,NULL,0,NULL,NULL 50213,85181,665038,NULL,NULL,NULL,0,NULL,NULL 50214,326103,228073,Custodian Student Yearling,NULL,NULL,0,NULL,NULL 50215,116101,4500,Nice Answer Popular Question Notable Question Yearling Good Answer Nice Question Yearling Popular Question Good Answer Quorum Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 50216,68235,892255,NULL,NULL,NULL,0,NULL,NULL 50217,401090,81554,Yearling Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50218,190914,947305,Popular Question Necromancer Notable Question Nice Answer Yearling Nice Question Popular Question Announcer Popular Question Nice Answer Notable Question Yearling Necromancer Nice Question Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 50219,154864,674009,Yearling Nice Answer Good Answer Yearling Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 50220,280105,1080133,NULL,NULL,NULL,0,NULL,NULL 50221,578120,688815,NULL,NULL,NULL,0,NULL,NULL 50222,6733,22368,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Announcer Announcer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 50223,67829,18434,Good Question Yearling Famous Question Nice Question Yearling Good Question Benefactor,NULL,NULL,0,NULL,NULL 50224,8324,244926,NULL,NULL,NULL,0,NULL,NULL 50225,113276,418709,NULL,NULL,NULL,0,NULL,NULL 50226,937093,117707,NULL,NULL,NULL,0,NULL,NULL 50227,878635,62430,Informed,NULL,NULL,0,NULL,NULL 50228,203151,901680,NULL,NULL,NULL,0,NULL,NULL 50229,17950,21596,Nice Answer Enlightened Yearling Necromancer Investor Altruist Yearling Yearling,NULL,NULL,0,NULL,NULL 50230,468944,395850,Yearling Nice Question Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 50231,113115,351084,Nice Answer Populist Guru Yearling Nice Answer Nice Answer Enlightened Good Answer Yearling Great Answer Caucus Good Answer Custodian Yearling Mortarboard Guru,NULL,NULL,0,NULL,NULL 50232,160821,763,Good Answer Yearling Yearling Populist Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 50233,169989,107897,NULL,NULL,NULL,0,NULL,NULL 50234,575347,1062746,NULL,NULL,NULL,0,NULL,NULL 50235,59627,1062746,NULL,NULL,NULL,0,NULL,NULL 50236,60698,301990,NULL,NULL,NULL,0,NULL,NULL 50237,8398430,672895,NULL,NULL,NULL,0,NULL,NULL 50238,110764,170355,Yearling Necromancer,NULL,NULL,0,NULL,NULL 50239,125409,1308776,NULL,NULL,NULL,0,NULL,NULL 50240,248997,560863,NULL,NULL,NULL,0,NULL,NULL 50241,206117,417821,Notable Question,NULL,NULL,0,NULL,NULL 50242,4303360,1428653,Popular Question Self-Learner Notable Question Nice Question Nice Answer Yearling Nice Answer Famous Question Nice Answer Custodian Yearling Good Question Good Answer Nice Answer Yearling Nice Answer Enlightened Curious Promoter Benefactor,NULL,NULL,0,NULL,NULL 50243,163535,1428653,Popular Question Self-Learner Notable Question Nice Question Nice Answer Yearling Nice Answer Famous Question Nice Answer Custodian Yearling Good Question Good Answer Nice Answer Yearling Nice Answer Enlightened Curious Promoter Benefactor,NULL,NULL,0,NULL,NULL 50244,216487,158770,Popular Question Nice Answer Announcer Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 50245,36295,210547,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Popular Question Yearling Caucus Guru symfony Caucus Nice Answer Enlightened Nice Answer Yearling Guru Good Answer Census Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 50246,720252,22152,Yearling Good Answer Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50247,598709,313214,NULL,NULL,NULL,0,NULL,NULL 50248,17084,556573,Nice Answer Notable Question Popular Question Good Question Popular Question Nice Answer Tumbleweed Nice Answer Enlightened Guru Nice Answer Enlightened Famous Question Notable Question Yearling Custodian Custodian Nice Answer Enlightened Notable Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Notable Question Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Question Yearling Nice Answer Nice Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Great Answer Nice Answer Enlightened Popular Question Nice Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Nice Answer Guru Enlightened,NULL,NULL,0,NULL,NULL 50249,89526,436190,Informed Populist Yearling,NULL,NULL,0,NULL,NULL 50250,332578,1259688,NULL,NULL,NULL,0,NULL,NULL 50251,157309,468619,NULL,NULL,NULL,0,NULL,NULL 50252,261843,950700,NULL,NULL,NULL,0,NULL,NULL 50253,289206,357693,Good Answer Nice Answer Popular Question Guru Nice Answer Nice Answer Guru Great Answer Popular Question Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Popular Question Great Answer Great Answer Guru Good Answer Yearling Popular Question Documentation User Notable Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Question Nice Answer Good Answer Yearling Guru Nice Answer Nice Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 50254,234123,52959,Autobiographer Census,NULL,NULL,0,NULL,NULL 50255,2522,1068248,Notable Question Nice Answer ios Notable Question Good Answer Notable Question Nice Answer Enlightened Populist Yearling Guru Nice Answer Good Question Nice Answer Enlightened Guru Announcer Guru Yearling Nice Answer Guru Good Answer Famous Question Good Answer Good Answer Nice Question Nice Question Guru Yearling,NULL,NULL,0,NULL,NULL 50256,113339,295996,Revival Yearling Nice Answer Enlightened Custodian Famous Question Good Answer Organizer Popular Question Caucus Nice Question Yearling Nice Answer Nice Answer Guru Good Answer Yearling service-worker javascript Revival Nice Answer Enlightened Nice Answer google-chrome Nice Answer Popular Question Popular Question Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50257,24617,1510744,NULL,NULL,NULL,0,NULL,NULL 50258,24646,1510744,NULL,NULL,NULL,0,NULL,NULL 50259,37605,620372,Revival,NULL,NULL,0,NULL,NULL 50260,166683,542749,Commentator Popular Question Curious Citizen Patrol Popular Question Famous Question Critic Notable Question Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 50261,27420,104751,NULL,NULL,NULL,0,NULL,NULL 50262,490943,98099,NULL,NULL,NULL,0,NULL,NULL 50263,1147894,685742,NULL,NULL,NULL,0,NULL,NULL 50264,35849,693349,Nice Question Necromancer Nice Answer Popular Question Yearling Popular Question Famous Question Nice Answer Popular Question Popular Question ruby-on-rails Popular Question Good Question Nice Answer Notable Question Census Notable Question Popular Question Nice Answer Yearling Nice Question Nice Answer Enlightened Nice Answer Famous Question Census Popular Question Notable Question Notable Question Yearling Good Answer Good Question Revival Popular Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 50265,288970,52734,Yearling Good Answer Notable Question Nice Answer Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 50266,134226,830746,NULL,NULL,NULL,0,NULL,NULL 50267,1532184,947630,NULL,NULL,NULL,0,NULL,NULL 50268,230883,1084204,Good Answer Yearling Nice Answer Enlightened Yearling Nice Answer spring,NULL,NULL,0,NULL,NULL 50269,394072,397130,NULL,NULL,NULL,0,NULL,NULL 50270,128335,580136,NULL,NULL,NULL,0,NULL,NULL 50271,5757266,580136,NULL,NULL,NULL,0,NULL,NULL 50272,433350,1421162,Commentator Notable Question Popular Question Famous Question Caucus Nice Question Popular Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 50273,813,112310,Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50274,64303,779323,Good Answer Nice Question Notable Question Populist Yearling Famous Question Good Question Popular Question Yearling Popular Question Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 50275,96689,52283,Yearling Necromancer Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 50276,130151,81845,Yearling Nice Answer Yearling Guru Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 50277,435355,340030,NULL,NULL,NULL,0,NULL,NULL 50278,198768,1530063,NULL,NULL,NULL,0,NULL,NULL 50279,65437,176615,Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Caucus Popular Question Census Popular Question Popular Question Autobiographer Popular Question Civic Duty Yearling Census Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50280,251266,139578,Yearling Nice Question,NULL,NULL,0,NULL,NULL 50281,72544,10771,Nice Answer Enlightened Guru Good Question Notable Question Good Answer Popular Question Notable Question Good Question Nice Answer Good Answer Good Answer Good Question Good Answer Yearling Nice Answer Famous Question Nice Question Popular Question Nice Answer Nice Answer Notable Question Generalist Guru Nice Answer Guru Notable Question Yearling Custodian Great Answer Famous Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50282,41572,184499,Nice Answer Nice Answer Enlightened Civic Duty Custodian Custodian Custodian Custodian Custodian Great Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Yearling Guru Nice Answer Nice Answer Enlightened regex Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 50283,219832,510006,NULL,NULL,NULL,0,NULL,NULL 50284,14802,630383,Notable Question,NULL,NULL,0,NULL,NULL 50285,480819,589919,Great Answer Guru Famous Question Good Answer Yearling Great Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Good Question Notable Question Great Answer Popular Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 50286,50231,11910,Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50287,1110068,1119892,NULL,NULL,NULL,0,NULL,NULL 50288,111747,619006,NULL,NULL,NULL,0,NULL,NULL 50289,101811,489926,Notable Question,NULL,NULL,0,NULL,NULL 50290,171628,339727,Notable Question,NULL,NULL,0,NULL,NULL 50291,95173,984866,NULL,NULL,NULL,0,NULL,NULL 50292,8652484,1082367,Necromancer Famous Question Notable Question Yearling Notable Question Revival Notable Question Necromancer Nice Answer Announcer Necromancer Popular Question Announcer Announcer Popular Question Yearling Great Question Good Answer Favorite Question,NULL,NULL,0,NULL,NULL 50293,721874,204723,Popular Question Popular Question Nice Answer Inquisitive Notable Question Yearling Caucus Constituent Popular Question Popular Question Good Answer Nice Question Nice Answer Enlightened Notable Question Caucus Necromancer Popular Question Documentation User Yearling Notable Question Notable Question Census Notable Question Caucus Famous Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 50294,1553482,15525,Yearling Editor Notable Question Enthusiast Yearling,NULL,NULL,0,NULL,NULL 50295,68853,76710,Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 50296,153346,234199,Teacher,NULL,NULL,0,NULL,NULL 50297,86178,744309,Nice Answer,NULL,NULL,0,NULL,NULL 50298,14497,462264,Yearling,NULL,NULL,0,NULL,NULL 50299,248359,1028084,NULL,NULL,NULL,0,NULL,NULL 50300,202146,280404,Revival Nice Question Notable Question Yearling Favorite Question Promoter Notable Question Tumbleweed Great Question,NULL,NULL,0,NULL,NULL 50301,268257,1326841,Revival,NULL,NULL,0,NULL,NULL 50302,23967,151889,NULL,NULL,NULL,0,NULL,NULL 50303,299461,1392723,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 50304,13381,29715,NULL,NULL,NULL,0,NULL,NULL 50305,41802,741594,NULL,NULL,NULL,0,NULL,NULL 50306,588549,1052406,Notable Question Nice Answer Good Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 50307,424876,2058,NULL,NULL,NULL,0,NULL,NULL 50308,65379,1390770,Popular Question Yearling Tumbleweed Caucus Self-Learner Great Answer Yearling Popular Question Famous Question Notable Question Good Question Nice Answer Popular Question Yearling Nice Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50309,22264,1200588,NULL,NULL,NULL,0,NULL,NULL 50310,29126,214790,Nice Answer Nice Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Caucus Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened java Good Answer Nice Answer Enlightened Nice Answer Disciplined Nice Answer Great Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Caucus Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 50311,83738,3612,Yearling,NULL,NULL,0,NULL,NULL 50312,15724,173768,Revival Yearling Nice Answer Enlightened Popular Question Guru Necromancer Yearling Necromancer Nice Answer Yearling minify,NULL,NULL,0,NULL,NULL 50313,157344,20011,Yearling,NULL,NULL,0,NULL,NULL 50314,990348,1188638,NULL,NULL,NULL,0,NULL,NULL 50315,100845,9769,NULL,NULL,NULL,0,NULL,NULL 50316,231372,920931,Good Answer Popular Question Yearling Populist Nice Answer,NULL,NULL,0,NULL,NULL 50317,206641,203075,Nice Answer,NULL,NULL,0,NULL,NULL 50318,6922,612003,Yearling Caucus Scholar Student,NULL,NULL,0,NULL,NULL 50319,118009,248411,NULL,NULL,NULL,0,NULL,NULL 50320,639781,1411263,NULL,NULL,NULL,0,NULL,NULL 50321,501656,118056,NULL,NULL,NULL,0,NULL,NULL 50322,209070,1203420,Popular Question,NULL,NULL,0,NULL,NULL 50323,1297074,311770,NULL,NULL,NULL,0,NULL,NULL 50324,112876,478769,NULL,NULL,NULL,0,NULL,NULL 50325,933901,478769,NULL,NULL,NULL,0,NULL,NULL 50326,1511380,684564,NULL,NULL,NULL,0,NULL,NULL 50327,319652,175294,Popular Question,NULL,NULL,0,NULL,NULL 50328,877290,1056032,Revival Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 50329,292489,765947,NULL,NULL,NULL,0,NULL,NULL 50330,278494,765947,NULL,NULL,NULL,0,NULL,NULL 50331,164295,1217271,NULL,NULL,NULL,0,NULL,NULL 50332,928471,1226524,NULL,NULL,NULL,0,NULL,NULL 50333,25780,932988,NULL,NULL,NULL,0,NULL,NULL 50334,186329,1075546,NULL,NULL,NULL,0,NULL,NULL 50335,102808,920437,NULL,NULL,NULL,0,NULL,NULL 50336,673912,262720,Popular Question,NULL,NULL,0,NULL,NULL 50337,150025,604577,NULL,NULL,NULL,0,NULL,NULL 50338,26121,1287952,NULL,NULL,NULL,0,NULL,NULL 50339,350529,1341644,NULL,NULL,NULL,0,NULL,NULL 50340,13743,65681,Announcer Peer Pressure Yearling Announcer Famous Question Announcer Popular Question Notable Question Nice Question Notable Question Nice Question Announcer Inquisitive Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Announcer Famous Question Caucus Notable Question Announcer Popular Question Popular Question Announcer Yearling Announcer Popular Question Announcer Popular Question Announcer Popular Question Notable Question Announcer Revival Popular Question Notable Question Announcer Popular Question Announcer Famous Question,NULL,ObservableT is not class derived from ObservableT typescript rxjs5 pWhen trying to extend class from class in codenode modules code the typescript compiler throws error saying pp codeProperty source is protected but type Observable lt gt is not class derived from Observable lt gt code ppThis only happens when the base class is from codenode module code ppThe base class looks like ppre codeimport Observable from rxjs Observable export abstract class TestBase lt gt request options any Observable lt gt return Observable throw new Error TestBase is abstract class Extend it and implement own request method code prepSubclassing it in project ppre codeimport Observable from rxjs Observable import TestBase from core class SocketResponse class Socket request Observable lt SocketResponse gt return new Observable of new SocketResponse export class Sub extends TestBase lt SocketResponse gt request options any Observable lt SocketResponse gt return new Socket request code prepIf the base class codeTestBase code is moved from the codenode module code to the project it self and change the import to look likecodeimport TestBase from base code The error disappears ppIs this due to that the compiles creates the types in different scopes for each module completely lost here pp strongUpdate strong ppThis seems to only happen when linking the codenode modules code with codenpm link code Seems like one possible workaround for the moment is to instead of returning type in the base class to return interface ppMore information can be found here pp href https github com Microsoft TypeScript issues 6496 https github com Microsoft TypeScript issues 6496 pp href https github com ReactiveX rxjs issues 1744 https github com ReactiveX rxjs issues 1744 having this problem even without npm link tried using npm pack and npm install as workaround but no dice https github com robertjd sp ng2 pull,0,NULL,NULL 50341,57989,779192,Tumbleweed,NULL,NULL,0,NULL,NULL 50342,1082259,798682,Fanatic Good Answer Popular Question Yearling Good Answer Guru Nice Answer Enlightened Necromancer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 50343,7624,81402,Guru Yearling,NULL,NULL,0,NULL,NULL 50344,420004,678350,Famous Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Yearling Popular Question Good Question Popular Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 50345,1516445,1137197,Notable Question,NULL,NULL,0,NULL,NULL 50346,978797,1540122,Autobiographer,NULL,NULL,0,NULL,NULL 50347,1129174,66509,Yearling,NULL,NULL,0,NULL,NULL 50348,419507,241334,NULL,NULL,NULL,0,NULL,NULL 50349,52366,168023,Nice Answer,NULL,NULL,0,NULL,NULL 50350,326069,188,Nice Answer Nice Answer Great Answer Notable Question Nice Answer Guru Nice Answer Tag Editor Notable Question Nice Answer Nice Question Yearling Necromancer Guru Great Answer Necromancer Nice Answer Enlightened Good Answer Revival django-models Announcer Nice Question Notable Question Yearling django Good Answer Documentation User Nice Answer Enlightened macos Guru Good Answer Announcer Necromancer Yearling Nice Answer Good Answer Nice Answer Enlightened,NULL,Using the same decorator with arguments with functions and methods python function methods arguments decorator pI have been trying to create decorator that can be used with both functions and methods in python This on it own is not that hard but when creating decorator that takes arguments it seems to be ppre codeclass methods object def init self methods self methods methods def call self func def inner request args kwargs print request return func request args kwargs return inner def get self obj type None if obj is None return self new func self func get obj type return self class new func code prepThe above code wraps the function method correctly but in the case of method the coderequest code argument is the instance it is operating on not the first non self argument ppIs there way to tell if the decorator is being applied to function instead of method and deal accordingly Of course the best solution now is to use wrapt,0,NULL,NULL 50351,47823,232247,Yearling Famous Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 50352,483007,747102,NULL,NULL,NULL,0,NULL,NULL 50353,185537,27606,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50354,302705,98805,Yearling Yearling,NULL,NULL,0,NULL,NULL 50355,22463,532587,NULL,NULL,NULL,0,NULL,NULL 50356,28836,40800,Famous Question Yearling,NULL,NULL,0,NULL,NULL 50357,187831,680877,Yearling Famous Question Good Answer Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 50358,521991,622505,NULL,NULL,NULL,0,NULL,NULL 50359,64564,694696,NULL,NULL,NULL,0,NULL,NULL 50360,41460,1494820,Popular Question,NULL,NULL,0,NULL,NULL 50361,217779,113719,Nice Answer Curious Yearling Autobiographer Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 50362,1054316,565459,NULL,NULL,NULL,0,NULL,NULL 50363,96519,341994,Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Announcer Nice Answer Good Answer Good Answer Sportsmanship Nice Answer Enlightened Good Answer Popular Question Revival Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Nice Answer Enlightened Good Answer ios7 Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer uinavigationcontroller Good Answer Nice Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Nice Question Great Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Revival Nice Answer Nice Answer Enlightened Nice Answer animation uicollectionview Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Question Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer ios8 Good Answer Announcer Necromancer Nice Answer Good Answer nslayoutconstraint Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Yearling Nice Answer Nice Answer Enlightened Enlightened Necromancer Announcer sprite-kit Good Answer Nice Answer Enlightened uialertcontroller Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Good Answer Necromancer Notable Question Nice Answer Good Answer Nice Answer Enlightened Good Answer Announcer Guru Popular Question Nice Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Enlightened Good Question Great Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Question Nice Answer Enlightened protocols Nice Answer Enlightened Great Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Talkative xcode7 Notable Question Nice Answer Enlightened Nice Answer Nice Answer Good Question Nice Answer Enlightened Good Answer Good Answer Tag Editor Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Question Benefactor Nice Answer Enlightened Nice Answer Enlightened Necromancer Notable Question Good Question Notable Question Nice Answer ios-simulator Good Answer Good Answer Guru swift3 Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Popular Question Announcer ios9 Notable Question Nice Answer Nice Answer Caucus Populist Nice Answer Good Answer Popular Question Good Answer Necromancer Guru Nice Answer Enlightened Guru Notable Question Nice Answer Nice Answer Enlightened Necromancer Good Answer Good Answer Notable Question Popular Question Disciplined Nice Answer Enlightened Nice Answer Enlightened Revival Nice Answer Nice Answer string uiview Good Answer Guru Good Answer Guru Necromancer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened xcode8 Nice Answer Necromancer Nice Answer Revival Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Notable Question Necromancer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Taxonomist Nice Answer uitextfield Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Question properties Nice Answer Nice Answer Good Answer Necromancer Nice Answer Enlightened Guru Nice Answer Great Answer Revival Nice Answer Enlightened Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Nice Answer closures Good Question Nice Answer Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer swift3 Popular Question swift2 Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer arrays Guru Announcer Good Answer Good Answer Famous Question Announcer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Question Announcer Nice Answer Nice Answer Enlightened xcode6 Nice Answer Nice Answer Enlightened Favorite Question Nice Answer Enlightened Yearling mapkit Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Announcer Nice Answer Good Answer Guru Nice Answer Enlightened memory-leaks Announcer Guru Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Good Answer Good Answer Nice Answer Announcer Nice Question storyboard Nice Answer Enlightened Nice Answer Enlightened Announcer Popular Question Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Revival Constituent Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Announcer Announcer Good Answer Announcer Nice Answer Enlightened Reviewer Guru Nice Answer Good Answer Good Answer uiviewanimation Nice Answer Enlightened generics Famous Question Notable Question Nice Answer Enlightened Revival Announcer Nice Answer Enlightened Good Answer Guru Good Question Revival Announcer Revival Announcer Nice Answer Enlightened Announcer Nice Answer Nice Answer Good Answer Enlightened Nice Answer Populist Guru Guru Announcer Nice Answer Good Answer Announcer Good Answer Nice Answer Marshal Good Answer Announcer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Good Answer Great Answer Popular Question optional Guru macos Nice Answer Guru Good Answer Announcer Revival Nice Question Nice Answer nsuserdefaults Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Popular Question Revival autolayout uitextview Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer nsattributedstring Nice Answer Nice Answer Enlightened Nice Question Announcer Nice Answer Enlightened Good Answer ios11 Announcer Nice Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Copy Editor Notable Question Announcer struct Announcer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Popular Question Announcer Caucus Nice Answer Announcer Announcer Constituent Good Answer Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Popular Question Announcer Nice Answer Nice Answer Enlightened objective-c-blocks Reviewer Vox Populi Nice Answer ios10 swift4 Announcer Nice Answer Great Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Notable Question uibezierpath Nice Answer Enlightened Favorite Question Nice Answer segue Nice Answer Enlightened Announcer Good Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Question Necromancer Good Answer Announcer Nice Answer Necromancer Announcer Good Answer Good Answer Nice Answer Enlightened Good Answer uipopovercontroller Populist Nice Answer Enlightened Nice Question Nice Answer Enlightened initialization memory-management Nice Answer Necromancer Revival Announcer Nice Answer Enlightened Announcer uitableview Notable Question Guru Great Answer Nice Answer Enlightened Good Answer Good Answer Necromancer Nice Answer Guru Revival enums Nice Answer Nice Answer Popular Question Enlightened Populist Announcer Good Answer Enlightened Announcer Nice Answer Necromancer Guru Nice Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Announcer Necromancer Nice Answer Enlightened Guru avaudioplayer Revival Guru nsarray Good Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Good Answer Nice Question Guru git Nice Answer Enlightened Good Question Good Answer Necromancer Guru Announcer Nice Answer Enlightened Guru Guru,NULL,pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre Yes still seeing it pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre Yes that might be true the purpose of my trampoline solution is merely to allow the view controller deinit to be called so that you have place to do that My code is here in case you want to play with it https github com mattneub Programming iOS Book Examples blob master bk2ch11p552webkit ch24p825webview WebViewController swift pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre try it and see pCorrect as usual King Friday It turns out that the WKUserContentController emretains its message handler em This makes certain amount of sense since it could hardly send message to its message handler if its message handler had ceased to exist It parallel to the way CAAnimation retains its delegate for example ppHowever it also causes retain cycle because the WKUserContentController itself is leaking That doesn matter much on its own it only 16K but the retain cycle and leak of the view controller are bad ppMy workaround is to interpose trampoline object between the WKUserContentController and the message handler The trampoline object has only weak reference to the real message handler so there no retain cycle Here the trampoline object ppre codeclass LeakAvoider NSObject WKScriptMessageHandler weak var delegate WKScriptMessageHandler init delegate WKScriptMessageHandler self delegate delegate super init func userContentController userContentController WKUserContentController didReceiveScriptMessage message WKScriptMessage self delegate userContentController userContentController didReceiveScriptMessage message code prepNow when we install the message handler we install the trampoline object instead of codeself code ppre codeself wv configuration userContentController addScriptMessageHandler LeakAvoider delegate self name dummy code prepIt works Now codedeinit code is called proving that there is no leak It looks like this shouldn work because we created our LeakAvoider object and never held reference to it but remember the WKUserContentController itself is retaining it so there no problem ppFor completeness now that codedeinit code is called you can uninstall the message handler there though don think this is actually necessary ppre codedeinit println dealloc self wv stopLoading self wv configuration userContentController removeScriptMessageHandlerForName dummy code pre know it doesn work That why gave an answer that does work pI use codedispatch after code so often that wrote top level utility function to make the syntax simpler ppre codefunc delay delay Double closure gt dispatch after dispatch time DISPATCH TIME NOW Int64 delay Double NSEC PER SEC dispatch get main queue closure code prepAnd now you can talk like this ppre codedelay do stuff code prepWow language where you can improve the language What could be better phrh3Update for Swift Xcode Seed h3pSeems almost not worth bothering with now that they ve improved the calling syntax ppre codefunc delay delay Double closure gt let when DispatchTime now delay DispatchQueue main asyncAfter deadline when execute closure code pre Yes thanks was just getting around to that don understand what the migrator was thinking here never liked closure but probably no one will ever see or use it as they ll be using trailing closure syntax And like having no first parameter pI use codedispatch after code so often that wrote top level utility function to make the syntax simpler ppre codefunc delay delay Double closure gt dispatch after dispatch time DISPATCH TIME NOW Int64 delay Double NSEC PER SEC dispatch get main queue closure code prepAnd now you can talk like this ppre codedelay do stuff code prepWow language where you can improve the language What could be better phrh3Update for Swift Xcode Seed h3pSeems almost not worth bothering with now that they ve improved the calling syntax ppre codefunc delay delay Double closure gt let when DispatchTime now delay DispatchQueue main asyncAfter deadline when execute closure code pre Did you read what said Xcode seed You have not updated to Xcode seed or seed pI use codedispatch after code so often that wrote top level utility function to make the syntax simpler ppre codefunc delay delay Double closure gt dispatch after dispatch time DISPATCH TIME NOW Int64 delay Double NSEC PER SEC dispatch get main queue closure code prepAnd now you can talk like this ppre codedelay do stuff code prepWow language where you can improve the language What could be better phrh3Update for Swift Xcode Seed h3pSeems almost not worth bothering with now that they ve improved the calling syntax ppre codefunc delay delay Double closure gt let when DispatchTime now delay DispatchQueue main asyncAfter deadline when execute closure code pre Then use timer ve explained elsewhere how to write cancelable timer using GCD pIt is because this UIImage is not in fact CIImage In other words UIImage codeCIImage code is not nil only if the UIImage is backed by CIImage already because it was generated by codeimageWithCIImage code You can use this to magically turn the UIImage into CIImage as you seem to be hoping to do ppThe documentation is actually pretty clear on this Always worth read With CIImage initWithImage initializer pThe simplest way is to put your own global function in front of Swift codeprintln code ppre codefunc println object Any Swift println object code prepWhen it time to stop logging just comment out the body of that function ppre codefunc println object Any Swift println object code prepOr you can make it automatic by using conditional ppre codefunc println object Any if DEBUG Swift println object endif code prep strongEDIT strong In Swift codeprintln code is changed to codeprint code Unfortunately it now has variadic first parameter this is cool but it means you can easily override it because Swift has no splat operator so you can pass variadic in code it can only be created literally But you can make reduced version that works if as will usually be the case you are printing just one value ppre codefunc print items Any separator String terminator String Swift print items separator separator terminator terminator code prepIn Swift you need to suppress the external label of the first parameter ppre codefunc print items Any separator String terminator String Swift print items separator separator terminator terminator code pre Okay ve solved that by using That far enough from my original answer that ve given it as separate answer pIn many situations you don really need conditional emcompilation em you just need conditional embehavior em that you can switch on and off For that you can use an environment variable This has the huge advantage that you don actually have to recompile ppYou can set the environment variable and easily switch it on or off in the scheme editor pp img src https stack imgur com opfbT png alt enter image description here ppYou can retrieve the environment variable with NSProcessInfo ppre code let dic NSProcessInfo processInfo environment if dic TRIPLE nil do secret stuff here code prepHere real life example My app runs only on the device because it uses the music library which doesn exist on the Simulator How then to take screen shots on the Simulator for devices don own Without those screen shots can submit to the AppStore ppI need emfake data em and emdifferent way of processing it em have two environment variables one which when switched on tells the app to generate the fake data from the real data while running on my device the other which when switched on uses the fake data not the missing music library while running on the Simulator Switching each of those special modes on off is easy thanks to environment variable checkboxes in the Scheme editor And the bonus is that can accidentally use them in my App Store build because archiving has no environment variables think that what my answer says illustrating with if dic TRIPLE nil but thanks for underlining the point pYou re correct if the user can tap button in your alert the alert will be dismissed So you want to prevent the user from tapping the button It all just matter of disabling your UIAlertAction buttons If an alert action is disabled the user can tap it to dismiss ppTo combine this with text field validation use text field delegate method or action method configured in the text field configuration handler when you create it to enable disable the UIAlertActions appropriately depending on what text has or hasn been entered ppHere an example We created the text field like this ppre codealert addTextFieldWithConfigurationHandler tf UITextField in tf addTarget self action textChanged forControlEvents EditingChanged code prepWe have Cancel action and an OK action and we brought the OK action into the world disabled ppre code alert actions as UIAlertAction enabled false code prepSubsequently the user can tap OK unless there is some actual text in the text field ppre codefunc textChanged sender AnyObject let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp nextResponder let alert resp as UIAlertController alert actions as UIAlertAction enabled tf text code prep strongEDIT strong Here the current Swift and later version of the above code ppre codealert addTextField tf in tf addTarget self action selector self textChanged for editingChanged code prepand ppre codealert actions isEnabled false code prepand ppre code func textChanged sender Any let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp next let alert resp as UIAlertController alert actions isEnabled tf text code pre not picturing what you have in mind Could you provide it as separate answer pYou re correct if the user can tap button in your alert the alert will be dismissed So you want to prevent the user from tapping the button It all just matter of disabling your UIAlertAction buttons If an alert action is disabled the user can tap it to dismiss ppTo combine this with text field validation use text field delegate method or action method configured in the text field configuration handler when you create it to enable disable the UIAlertActions appropriately depending on what text has or hasn been entered ppHere an example We created the text field like this ppre codealert addTextFieldWithConfigurationHandler tf UITextField in tf addTarget self action textChanged forControlEvents EditingChanged code prepWe have Cancel action and an OK action and we brought the OK action into the world disabled ppre code alert actions as UIAlertAction enabled false code prepSubsequently the user can tap OK unless there is some actual text in the text field ppre codefunc textChanged sender AnyObject let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp nextResponder let alert resp as UIAlertController alert actions as UIAlertAction enabled tf text code prep strongEDIT strong Here the current Swift and later version of the above code ppre codealert addTextField tf in tf addTarget self action selector self textChanged for editingChanged code prepand ppre codealert actions isEnabled false code prepand ppre code func textChanged sender Any let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp next let alert resp as UIAlertController alert actions isEnabled tf text code pre Cool thanks look forward to seeing that pYou re correct if the user can tap button in your alert the alert will be dismissed So you want to prevent the user from tapping the button It all just matter of disabling your UIAlertAction buttons If an alert action is disabled the user can tap it to dismiss ppTo combine this with text field validation use text field delegate method or action method configured in the text field configuration handler when you create it to enable disable the UIAlertActions appropriately depending on what text has or hasn been entered ppHere an example We created the text field like this ppre codealert addTextFieldWithConfigurationHandler tf UITextField in tf addTarget self action textChanged forControlEvents EditingChanged code prepWe have Cancel action and an OK action and we brought the OK action into the world disabled ppre code alert actions as UIAlertAction enabled false code prepSubsequently the user can tap OK unless there is some actual text in the text field ppre codefunc textChanged sender AnyObject let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp nextResponder let alert resp as UIAlertController alert actions as UIAlertAction enabled tf text code prep strongEDIT strong Here the current Swift and later version of the above code ppre codealert addTextField tf in tf addTarget self action selector self textChanged for editingChanged code prepand ppre codealert actions isEnabled false code prepand ppre code func textChanged sender Any let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp next let alert resp as UIAlertController alert actions isEnabled tf text code pre Current Dec 2016 version of the code is here https github com mattneub Programming iOS Book Examples blob master bk2ch13p620dialogsOniPhone ch26p888dialogsOniPhone ViewController swift pYou re correct if the user can tap button in your alert the alert will be dismissed So you want to prevent the user from tapping the button It all just matter of disabling your UIAlertAction buttons If an alert action is disabled the user can tap it to dismiss ppTo combine this with text field validation use text field delegate method or action method configured in the text field configuration handler when you create it to enable disable the UIAlertActions appropriately depending on what text has or hasn been entered ppHere an example We created the text field like this ppre codealert addTextFieldWithConfigurationHandler tf UITextField in tf addTarget self action textChanged forControlEvents EditingChanged code prepWe have Cancel action and an OK action and we brought the OK action into the world disabled ppre code alert actions as UIAlertAction enabled false code prepSubsequently the user can tap OK unless there is some actual text in the text field ppre codefunc textChanged sender AnyObject let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp nextResponder let alert resp as UIAlertController alert actions as UIAlertAction enabled tf text code prep strongEDIT strong Here the current Swift and later version of the above code ppre codealert addTextField tf in tf addTarget self action selector self textChanged for editingChanged code prepand ppre codealert actions isEnabled false code prepand ppre code func textChanged sender Any let tf sender as UITextField var resp UIResponder tf while resp is UIAlertController resp resp next let alert resp as UIAlertController alert actions isEnabled tf text code pre The current version of the code is shown directly here in my answer pHere general formula for turning two letter country code into its emoji flag ppre codefunc flag country String gt String let base 127397 var usv String UnicodeScalarView for in country utf16 usv append UnicodeScalar base Int return String usv let flag DE code prep strongEDIT strong Ooops no need to pass through the nested String UnicodeScalarView struct It turns out that String has an codeappend code method for precisely this purpose So ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars append UnicodeScalar base value return code prep strongEDIT strong Oooops again in Swift they took away the ability to append UnicodeScalar to String and they made the UnicodeScalar initializer failable Xcode seed so now it looks like this ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars unicodeScalars append UnicodeScalar base value return String code pre If it based on my answer your code should mention my answer Just include link and acknowledge the debt pHere general formula for turning two letter country code into its emoji flag ppre codefunc flag country String gt String let base 127397 var usv String UnicodeScalarView for in country utf16 usv append UnicodeScalar base Int return String usv let flag DE code prep strongEDIT strong Ooops no need to pass through the nested String UnicodeScalarView struct It turns out that String has an codeappend code method for precisely this purpose So ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars append UnicodeScalar base value return code prep strongEDIT strong Oooops again in Swift they took away the ability to append UnicodeScalar to String and they made the UnicodeScalar initializer failable Xcode seed so now it looks like this ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars unicodeScalars append UnicodeScalar base value return String code pre landry don do that please pHere general formula for turning two letter country code into its emoji flag ppre codefunc flag country String gt String let base 127397 var usv String UnicodeScalarView for in country utf16 usv append UnicodeScalar base Int return String usv let flag DE code prep strongEDIT strong Ooops no need to pass through the nested String UnicodeScalarView struct It turns out that String has an codeappend code method for precisely this purpose So ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars append UnicodeScalar base value return code prep strongEDIT strong Oooops again in Swift they took away the ability to append UnicodeScalar to String and they made the UnicodeScalar initializer failable Xcode seed so now it looks like this ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars unicodeScalars append UnicodeScalar base value return String code pre why change history The answer developed along with Swift over many years Don turn it into lie about the past If you don like it down vote it or give better answer of your own but don put words into my mouth pHere general formula for turning two letter country code into its emoji flag ppre codefunc flag country String gt String let base 127397 var usv String UnicodeScalarView for in country utf16 usv append UnicodeScalar base Int return String usv let flag DE code prep strongEDIT strong Ooops no need to pass through the nested String UnicodeScalarView struct It turns out that String has an codeappend code method for precisely this purpose So ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars append UnicodeScalar base value return code prep strongEDIT strong Oooops again in Swift they took away the ability to append UnicodeScalar to String and they made the UnicodeScalar initializer failable Xcode seed so now it looks like this ppre codefunc flag country String gt String let base UInt32 127397 var for in country unicodeScalars unicodeScalars append UnicodeScalar base value return String code pre That has nothing to do with this question answer Please ask new separate question pre codegit clone https username password com username repository git code prepThis way worked for me from github repository pp strongEdit based on Michael Scharf comment strong ppYou can leave out the password so that it won be logged your bash history file ppre codegit clone https username com username repository git code prepIt will prompt you for your password Not so easy if the password contains unusual characters pIt actually just way of satisfying the compiler to assure it that if this class were to have any subclasses they would inherit or implement this same initializer There is doubt on this point because of the rule that emif subclass has designated initializer of its own no initializers from the superclass are inherited em Thus it is possible for superclass to have an initializer and the subclass emnot em to have it coderequired code overcomes that possibility ppOne situation where the compiler needs to be satisfied in this way involves protocols and works like this ppre codeprotocol Flier init class Bird Flier init compile error code prepThe problem is that if Bird had subclass that subclass would have to implement or inherit codeinit code and you have not guaranteed that Marking Bird codeinit code as coderequired code does guarantee it ppAlternatively you could mark Bird as codefinal code thus guaranteeing the converse namely that it will never have subclass ppAnother situation is where you have factory method that can make class or its subclass by calling the same initializer ppre codeclass Dog var name String init name String self name name class NoisyDog Dog func dogMakerAndNamer whattype Dog Type gt Dog let whattype init name Fido compile error return code prep codedogMakerAndNamer code is calling the codeinit name code initializer on Dog or Dog subclass But how can the compiler be sure that subclass will have an codeinit name code initializer The coderequired code designation calms the compiler fears The only time you would ever say required is when forced to it by the compiler The compiler will ding you and you ll use one of the solutions described above Otherwise don use it How to check if Apple Maps is installed ios mapkit ios10 pAnyone aware how to check whether Apple Maps is installed or not could not find anything in the docs ppWith iOS10 users can delete the Apple Maps application While for Google Maps we can use codeUIApplication shared canOpenURL code to check if it installed am not aware of such thing exists to check for Apple Maps ppOf course one can check if opening codeMKMapItem code with codemapItem openInMaps code fails but that does not help for checking in advance going to guess that you can form map link https developer apple com library content featuredarticles iPhoneURLScheme Reference MapLinks MapLinks html apple ref doc uid TP40007899 CH5 SW1 and call canOpenURL strongNOTE strong This bug is fixed in iOS so the entire matter will be moot at that point The discussion below applies only to the particular system and version of Swift to which it is explicitly geared phrpThis is clearly bug but there also very easy solution ll explain the problem and then give the solution Please note that writing this for Xcode and Swift Apple has been all over the map on this since the day Swift first came out so other versions will behave differently ph2The Ground of Being h2pYou are going to instantiate UITableViewController emby hand em that is by calling its initializer in code And you want to subclass UITableViewController because you have instance properties you want to give it ph2The Problem h2pSo you start out with an instance property ppre codeclass MyTableViewController UITableViewController let greeting String code prepThis has no default value so you have to write an initializer ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting code prepBut that not legal initializer you have to call codesuper code Let say your call to codesuper code is to call codeinit style code ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting super init style Plain code prepBut you still can compile because you have requirement to implement codeinit coder code So you do ppre codeclass MyTableViewController UITableViewController let greeting String required init coder aDecoder NSCoder fatalError init coder has not been implemented init greeting String self greeting greeting super init style Plain code prepYour code now compiles You now happily you think instantiate this table view controller subclass by calling the initializer you wrote ppre codelet tvc MyTableViewController greeting Hello there code prepEverything looks merry and rosy until you emrun em the app at which point you crash with this message pblockquote pfatal error use of unimplemented initializer codeinit nibName bundle code blockquoteh2What Causes the Crash and Why You Can Solve It h2pThe crash is caused by bug in Cocoa Unknown to you codeinit style code itself calls codeinit nibName bundle code And it calls it on codeself code That you MyTableViewController But MyTableViewController has no implementation of codeinit nibName bundle code And does not eminherit em codeinit nibName bundle code either because you already provided designated initializer thus cutting off inheritance ppYour only solution would be to emimplement em codeinit nibName bundle code But you can because that implementation would require you to set the instance property codegreeting code and you don know what to set it to ph2The Simple Solution h2pThe simple solution almost too simple which is why it is so difficult to think of is strongdon subclass UITableViewController strong Why is this reasonable solution Because you never actually emneeded em to subclass it in the first place UITableViewController is largely pointless class it doesn do anything for you that you can do for yourself ppSo now we re going to rewrite our class as UIViewController subclass instead We still need table view as our view so we ll create it in codeloadView code and we ll hook it up there as well Changes are marked as starred comments ppre codeclass MyViewController UIViewController UITableViewDelegate UITableViewDataSource let greeting String weak var tableView UITableView init greeting String self greeting greeting super init nibName nil bundle nil required init coder aDecoder NSCoder fatalError init coder has not been implemented override func loadView self view UITableView frame CGRectZero style Plain self tableView self view as UITableView self tableView delegate self self tableView dataSource self code prepAlso you ll want of course to add the minimal required data source methods We now instantiate our class like this ppre codelet tvc MyViewController greeting Hello there code prepOur project compiles and runs without hitch Problem solved ph2An Objection Not h2pYou might object that by not using UITableViewController we have lost the ability to get prototype cell from the storyboard But that is no objection because we emnever had em that ability in the first place Remember our hypothesis is that we are subclassing and calling our own subclass initializer If we were getting the prototype cell from the storyboard the storyboard would be instantiating us by calling codeinit coder code and the problem would never have arisen in the first place Read my answer please Look at the original date of my answer The bug is fixed in iOS The bug is in iOS Thus code that works in iOS may not work in iOS strongNOTE strong This bug is fixed in iOS so the entire matter will be moot at that point The discussion below applies only to the particular system and version of Swift to which it is explicitly geared phrpThis is clearly bug but there also very easy solution ll explain the problem and then give the ,,, "olution Please note that writing this for Xcode and Swift Apple has been all over the map on this since the day Swift first came out so other versions will behave differently ph2The Ground of Being h2pYou are going to instantiate UITableViewController emby hand em that is by calling its initializer in code And you want to subclass UITableViewController because you have instance properties you want to give it ph2The Problem h2pSo you start out with an instance property ppre codeclass MyTableViewController UITableViewController let greeting String code prepThis has no default value so you have to write an initializer ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting code prepBut that not legal initializer you have to call codesuper code Let say your call to codesuper code is to call codeinit style code ppre codeclass MyTableViewController UITableViewController let greeting String init greeting String self greeting greeting super init style Plain code prepBut you still can compile because you have requirement to implement codeinit coder code So you do ppre codeclass MyTableViewController UITableViewController let greeting String required init coder aDecoder NSCoder fatalError init coder has not been implemented init greeting String self greeting greeting super init style Plain code prepYour code now compiles You now happily you think instantiate this table view controller subclass by calling the initializer you wrote ppre codelet tvc MyTableViewController greeting Hello there code prepEverything looks merry and rosy until you emrun em the app at which point you crash with this message pblockquote pfatal error use of unimplemented initializer codeinit nibName bundle code blockquoteh2What Causes the Crash and Why You Can Solve It h2pThe crash is caused by bug in Cocoa Unknown to you codeinit style code itself calls codeinit nibName bundle code And it calls it on codeself code That you MyTableViewController But MyTableViewController has no implementation of codeinit nibName bundle code And does not eminherit em codeinit nibName bundle code either because you already provided designated initializer thus cutting off inheritance ppYour only solution would be to emimplement em codeinit nibName bundle code But you can because that implementation would require you to set the instance property codegreeting code and you don know what to set it to ph2The Simple Solution h2pThe simple solution almost too simple which is why it is so difficult to think of is strongdon subclass UITableViewController strong Why is this reasonable solution Because you never actually emneeded em to subclass it in the first place UITableViewController is largely pointless class it doesn do anything for you that you can do for yourself ppSo now we re going to rewrite our class as UIViewController subclass instead We still need table view as our view so we ll create it in codeloadView code and we ll hook it up there as well Changes are marked as starred comments ppre codeclass MyViewController UIViewController UITableViewDelegate UITableViewDataSource let greeting String weak var tableView UITableView init greeting String self greeting greeting super init nibName nil bundle nil required init coder aDecoder NSCoder fatalError init coder has not been implemented override func loadView self view UITableView frame CGRectZero style Plain self tableView self view as UITableView self tableView delegate self self tableView dataSource self code prepAlso you ll want of course to add the minimal required data source methods We now instantiate our class like this ppre codelet tvc MyViewController greeting Hello there code prepOur project compiles and runs without hitch Problem solved ph2An Objection Not h2pYou might object that by not using UITableViewController we have lost the ability to get prototype cell from the storyboard But that is no objection because we emnever had em that ability in the first place Remember our hypothesis is that we are subclassing and calling our own subclass initializer If we were getting the prototype cell from the storyboard the storyboard would be instantiating us by calling codeinit coder code and the problem would never have arisen in the first place It sounds to me like you ve got something valuable to contribute so please feel free to add an answer""",good answer good answer nice answer enlighten good answer nice answer good answer announcer nice answer good answer good answer sportsmanship nice answer enlighten good answer popular question revival nice answer enlighten nice answer enlighten popular question nice answer enlighten nice answer good answer nice answer nice answer enlighten good answer good answer announcer nice answer nice answer enlighten good answer nice answer enlighten nice answer nice answer nice answer enlighten nice answer good answer nice answer nice answer enlighten good question nice answer enlighten nice question great answer popular question good answer nice answer enlighten nice answer revival nice answer nice answer enlighten nice answer animation nice answer enlighten nice answer popular question nice answer enlighten notable question nice answer enlighten nice answer enlighten nice question popular question nice answer nice answer enlighten nice answer nice answer enlighten nice answer good answer announcer necromancer nice answer good answer nice answer enlighten nice answer enlighten nice answer announcer nice answer nice answer nice answer enlighten nice answer enlighten guru great answer yearle nice answer nice answer enlighten enlighten necromancer announcer good answer nice answer enlighten nice answer enlighten nice answer nice answer notable question nice answer good answer necromancer notable question nice answer good answer nice answer enlighten good answer announcer guru popular question nice answer good answer nice answer enlighten necromancer nice answer nice answer enlighten good question great answer guru nice answer nice answer enlighten guru nice answer enlighten nice answer nice answer good answer nice answer good answer nice answer enlighten announcer great answer nice answer nice answer nice answer enlighten nice answer notable question nice question nice answer enlighten protocol nice answer enlighten great answer good answer guru nice answer nice answer enlighten nice answer good answer nice answer enlighten talkative notable question nice answer enlighten nice answer nice answer good question nice answer enlighten good answer good answer tag editor nice answer enlighten nice answer enlighten nice answer enlighten notable question nice answer enlighten nice question benefactor nice answer enlighten nice answer enlighten necromancer notable question good question notable question nice answer good answer good answer guru good answer nice answer enlighten nice answer enlighten nice answer enlighten guru good answer good answer popular question announcer notable question nice answer nice answer caucus populist nice answer good answer popular question good answer necromancer guru nice answer enlighten guru notable question nice answer nice answer enlighten necromancer good answer good answer notable question popular question discipline nice answer enlighten nice answer enlighten revival nice answer nice answer string uiview good answer guru good answer guru necromancer good answer nice answer enlighten nice answer guru nice answer enlighten nice answer necromancer nice answer revival nice answer enlighten nice answer nice answer enlighten good answer notable question necromancer nice answer nice answer nice answer enlighten nice answer nice answer nice answer taxonomist nice answer uitextfield good answer nice answer enlighten nice answer enlighten great answer nice answer nice question property nice answer nice answer good answer necromancer nice answer enlighten guru nice answer great answer revival nice answer enlighten enlighten nice answer enlighten great answer nice answer nice answer guru nice answer good answer nice answer closure good question nice answer nice answer nice answer enlighten notable question nice answer enlighten nice answer popular question nice answer enlighten nice answer nice answer nice answer good answer arrays guru announcer good answer good answer famous question announcer nice answer good answer nice answer enlighten guru nice answer enlighten nice question announcer nice answer nice answer enlighten nice answer nice answer enlighten favorite question nice answer enlighten yearle mapkit announcer nice answer enlighten good answer announcer nice answer announcer nice answer good answer guru nice answer enlighten announcer guru announcer announcer announcer announcer good answer announcer announcer good answer good answer nice answer announcer nice question storyboard nice answer enlighten nice answer enlighten announcer popular question nice answer enlighten nice answer enlighten caucus nice answer enlighten nice answer revival constituent nice answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer nice answer nice answer nice answer enlighten announcer announcer good answer announcer nice answer enlighten reviewer guru nice answer good answer good answer uiviewanimation nice answer enlighten generic famous question notable question nice answer enlighten revival announcer nice answer enlighten good answer guru good question revival announcer revival announcer nice answer enlighten announcer nice answer nice answer good answer enlighten nice answer populist guru guru announcer nice answer good answer announcer good answer nice answer marshal good answer announcer guru good answer good answer nice answer enlighten nice answer announcer announcer announcer nice answer enlighten good answer great answer popular question optional guru macos nice answer guru good answer announcer revival nice question nice answer nsuserdefault announcer nice answer enlighten announcer nice answer enlighten good answer popular question revival uitextview nice answer enlighten nice answer good answer nice answer enlighten nice answer enlighten announcer nice answer nice answer nice answer enlighten nice question announcer nice answer enlighten good answer announcer nice answer nice answer nice answer enlighten announcer nice answer copy editor notable question announcer struct announcer nice answer enlighten good answer nice answer announcer nice answer enlighten popular question announcer caucus nice answer announcer announcer constituent good answer announcer guru nice answer enlighten nice answer enlighten good answer announcer popular question announcer nice answer nice answer enlighten reviewer vox populi nice answer announcer nice answer great answer yearle good answer nice answer nice answer enlighten notable question uibezierpath nice answer enlighten favorite question nice answer segue nice answer enlighten announcer good question nice answer enlighten nice answer enlighten good answer good answer nice question necromancer good answer announcer nice answer necromancer announcer good answer good answer nice answer enlighten good answer populist nice answer enlighten nice question nice answer enlighten initialization nice answer necromancer revival announcer nice answer enlighten announcer uitableview notable question guru great answer nice answer enlighten good answer good answer necromancer nice answer guru revival enum nice answer nice answer popular question enlighten populist announcer good answer enlighten announcer nice answer necromancer guru nice answer nice question nice answer enlighten nice answer enlighten announcer necromancer nice answer enlighten guru avaudioplayer revival guru good answer nice answer enlighten good answer nice answer popular question nice answer enlighten good answer good answer nice question guru git nice answer enlighten good question good answer necromancer guru announcer nice answer enlighten guru guru io uinavigationbar button remain fade segue io swift uinavigationbar pin app multiple view controller hand code direct segue action attach pphave segue view press code lt code button original button item remain fade usable ppthis appear happen io ppi set case specific segue unwind code handle post code afaic default code behaviour pwhat work bug view controller code func viewwillappear animate bool super viewwillappear animate navigationbar normal navigationbar automatic code prepthat wake button visual artifact pcorrect usual king friday turn emretain message handler -PRON- make sense send message message handler message handler cease exist parallel caanimation retain delegate pphowever retain cycle leak matter retain cycle leak view controller bad ppmy workaround interpose trampoline object message handler trampoline object weak reference real message handler retain cycle trampoline object codeclass leakavoider nsobject weak var delegate init delegate delegate delegate super init func message wkscriptmessage delegate message code prepnow install message handler install trampoline object codeself code codeself wv configuration leakavoider delegate dummy code prepit work codedeinit code call prove leak work create leakavoider object hold reference remember retain problem ppfor completeness codedeinit code call uninstall message handler codedeinit println dealloc wv stoploading wv configuration dummy code pcorrect usual king friday turn emretain message handler -PRON- make sense send message message handler message handler cease exist parallel caanimation retain delegate pphowever retain cycle leak matter retain cycle leak view controller bad ppmy workaround interpose trampoline object message handler trampoline object weak reference real message handler retain cycle trampoline object codeclass leakavoider nsobject weak var delegate init delegate delegate delegate super init func message wkscriptmessage delegate message code prepnow install message handler install trampoline object codeself code codeself wv configuration leakavoider delegate dummy code prepit work codedeinit code call prove leak work create leakavoider object hold reference remember retain problem ppfor completeness codedeinit code call uninstall message handler codedeinit println dealloc wv stoploading wv configuration dummy code true purpose trampoline solution view controller deinit call place code case play https github mattneub programming io book example blob master swift pcorrect usual king friday turn emretain message handler -PRON- make sense send message message handler message handler cease exist parallel caanimation retain delegate pphowever retain cycle leak matter retain cycle leak view controller bad ppmy workaround interpose trampoline object message handler trampoline object weak reference real message handler retain cycle trampoline object codeclass leakavoider nsobject weak var delegate init delegate delegate delegate super init func message wkscriptmessage delegate message code prepnow install message handler install trampoline object codeself code codeself wv configuration leakavoider delegate dummy code prepit work codedeinit code call prove leak work create leakavoider object hold reference remember retain problem ppfor completeness codedeinit code call uninstall message handler codedeinit println dealloc wv stoploading wv configuration dummy code pcorrect usual king friday turn emretain message handler -PRON- make sense send message message handler message handler cease exist parallel caanimation retain delegate pphowever retain cycle leak matter retain cycle leak view controller bad ppmy workaround interpose trampoline object message handler trampoline object weak reference real message handler retain cycle trampoline object codeclass leakavoider nsobject weak var delegate init delegate delegate delegate super init func message wkscriptmessage delegate message code prepnow install message handler install trampoline object codeself code codeself wv configuration leakavoider delegate dummy code prepit work codedeinit code call prove leak work create leakavoider object hold reference remember retain problem ppfor completeness codedeinit code call uninstall message handler codedeinit println dealloc wv stoploading wv configuration dummy code work give answer work pi codedispatch code write level utility function make syntax simple codefunc delay delay double closure dispatch dispatch time dispatch time delay double nsec dispatch main queue closure code prepand talk codedelay stuff code language improve language swift xcode seed worth bother improve call syntax codefunc delay delay double closure dispatchtime delay dispatchqueue main asyncafter deadline execute closure code understand migrator think closure trail closure syntax parameter pi codedispatch code write level utility function make syntax simple codefunc delay delay double closure dispatch dispatch time dispatch time delay double nsec dispatch main queue closure code prepand talk codedelay stuff code language improve language swift xcode seed worth bother improve call syntax codefunc delay delay double closure dispatchtime delay dispatchqueue main asyncafter deadline execute closure code read xcode seed update xcode seed seed pi codedispatch code write level utility function make syntax simple codefunc delay delay double closure dispatch dispatch time dispatch time delay double nsec dispatch main queue closure code prepand talk codedelay stuff code language improve language swift xcode seed worth bother improve call syntax codefunc delay delay double closure dispatchtime delay dispatchqueue main asyncafter deadline execute closure code timer explain write cancelable timer gcd pit uiimage fact ciimage word uiimage codeciimage code nil uiimage back ciimage generate code magically turn uiimage ciimage hope ppthe documentation pretty clear worth read ciimage initwithimage initializer pthe simple global function swift codeprintln code codefunc println object swift println object code prepwhen time stop log comment body function codefunc println object swift println object code prepor make automatic conditional codefunc println object debug swift println object endif code prep strongedit strong swift codeprintln code change codeprint code variadic parameter cool mean easily override swift splat operator pass variadic code create literally make reduce version work case printing codefunc print item separator string terminator string swift print item separator separator terminator terminator code prepin swift suppress external label parameter codefunc print item separator string terminator string swift print item separator separator terminator terminator code solve original answer separate answer pin situation conditional emcompilation -PRON- conditional embehavior -PRON- switch environment variable huge advantage recompile ppyou set environment variable easily switch scheme editor img src https stack imgur png alt enter image description ppyou retrieve environment variable nsprocessinfo code dic nsprocessinfo processinfo environment dic triple nil secret stuff code prephere real life app run device music library exist simulator screen shot simulator device screen shot submit appstore ppi emfake datum -PRON- emdifferent processing -PRON- environment variable switch tell app generate fake datum real datum run device switch fake datum miss music library run simulator switch special mode easy environment variable checkboxe scheme editor bonus accidentally app store build archive environment variable answer illustrate dic triple nil underlining point pyou correct user tap button alert alert dismiss prevent user tap button matter disable uialertaction button alert action disable user tap dismiss ppto combine text field validation text field delegate method action method configure text field configuration handler create disable uialertaction appropriately depend text enter pphere create text field codealert uitextfield addtarget action textchange editingchange code prepwe cancel action action bring action world disable code alert action uialertaction enable false code user tap actual text text field codefunc textchange sender anyobject sender uitextfield var resp uiresponder resp resp resp nextresponder alert resp alert action uialertaction enable text code prep strongedit strong current swift version code codealert addtextfield addtarget action selector textchange editingchange code prepand codealert action isenable false code prepand code func textchange sender sender uitextfield var resp uiresponder resp resp resp alert resp alert action isenable text code picture mind provide separate answer pyou correct user tap button alert alert dismiss prevent user tap button matter disable uialertaction button alert action disable user tap dismiss ppto combine text field validation text field delegate method action method configure text field configuration handler create disable uialertaction appropriately depend text enter pphere create text field codealert uitextfield addtarget action textchange editingchange code prepwe cancel action action bring action world disable code alert action uialertaction enable false code user tap actual text text field codefunc textchange sender anyobject sender uitextfield var resp uiresponder resp resp resp nextresponder alert resp alert action uialertaction enable text code prep strongedit strong current swift version code codealert addtextfield addtarget action selector textchange editingchange code prepand codealert action isenable false code prepand code func textchange sender sender uitextfield var resp uiresponder resp resp resp alert resp alert action isenable text code cool forward pyou correct user tap button alert alert dismiss prevent user tap button matter disable uialertaction button alert action disable user tap dismiss ppto combine text field validation text field delegate method action method configure text field configuration handler create disable uialertaction appropriately depend text enter pphere create text field codealert uitextfield addtarget action textchange editingchange code prepwe cancel action action bring action world disable code alert action uialertaction enable false code user tap actual text text field codefunc textchange sender anyobject sender uitextfield var resp uiresponder resp resp resp nextresponder alert resp alert action uialertaction enable text code prep strongedit strong current swift version code codealert addtextfield addtarget action selector textchange editingchange code prepand codealert action isenable false code prepand code func textchange sender sender uitextfield var resp uiresponder resp resp resp alert resp alert action isenable text code current dec version code https github mattneub programming io book example blob master viewcontroller swift pyou correct user tap button alert alert dismiss prevent user tap button matter disable uialertaction button alert action disable user tap dismiss ppto combine text field validation text field delegate method action method configure text field configuration handler create disable uialertaction appropriately depend text enter pphere create text field codealert uitextfield addtarget action textchange editingchange code prepwe cancel action action bring action world disable code alert action uialertaction enable false code user tap actual text text field codefunc textchange sender anyobject sender uitextfield var resp uiresponder resp resp resp nextresponder alert resp alert action uialertaction enable text code prep strongedit strong current swift version code codealert addtextfield addtarget action selector textchange editingchange code prepand codealert action isenable false code prepand code func textchange sender sender uitextfield var resp uiresponder resp resp resp alert resp alert action isenable text code current version code show directly answer phere general formula turn letter country code emoji flag codefunc flag country string string base var usv string country usv append unicodescalar base int return string usv flag code prep strongedit strong ooop pass nest string struct turn string codeappend code method precisely purpose codefunc flag country string string base var country unicodescalar append unicodescalar base return code prep strongedit strong oooop swift ability append unicodescalar string unicodescalar initializer failable xcode seed codefunc flag country string string base var country unicodescalar unicodescalar append unicodescalar base return string code base answer code mention answer include link acknowledge debt phere general formula turn letter country code emoji flag codefunc flag country string string base var usv string country usv append unicodescalar base int return string usv flag code prep strongedit strong ooop pass nest string struct turn string codeappend code method precisely purpose codefunc flag country string string base var country unicodescalar append unicodescalar base return code prep strongedit strong oooop swift ability append unicodescalar string unicodescalar initializer failable xcode seed codefunc flag country string string base var country unicodescalar unicodescalar append unicodescalar base return string code landry phere general formula turn letter country code emoji flag codefunc flag country string string base var usv string country usv append unicodescalar base int return string usv flag code prep strongedit strong ooop pass nest string struct turn string codeappend code method precisely purpose codefunc flag country string string base var country unicodescalar append unicodescalar base return code prep strongedit strong oooop swift ability append unicodescalar string unicodescalar initializer failable xcode seed codefunc flag country string string base var country unicodescalar unicodescalar append unicodescalar base return string code change history answer develop swift year turn lie vote answer word mouth phere general formula turn letter country code emoji flag codefunc flag country string string base var usv string country usv append unicodescalar base int return string usv flag code prep strongedit strong ooop pass nest string struct turn string codeappend code method precisely purpose codefunc flag country string string base var country unicodescalar append unicodescalar base return code prep strongedit strong oooop swift ability append unicodescalar string unicodescalar initializer failable xcode seed codefunc flag country string string base var country unicodescalar unicodescalar append unicodescalar base return string code question answer separate question codegit clone https username password username repository git code prepthis work github repository strongedit base michael scharf comment strong ppyou leave password log bash history file codegit clone https username username repository git code prepit prompt password easy password unusual character pit satisfy compiler assure class subclass inherit implement initializer doubt point rule emif subclass designate initializer initializer superclass inherit -PRON- superclass initializer subclass emnot -PRON- coderequire code overcome possibility ppone situation compiler satisfied involve protocol work codeprotocol flier init class bird flier init compile error code prepthe problem bird subclass subclass implement inherit codeinit code guarantee mark bird codeinit code coderequire code guarantee ppalternatively mark bird codefinal code guarantee converse subclass ppanother situation factory method make class subclass call initializer codeclass dog var string init string class dog func whattype dog type dog whattype init fido compile error return code prep code call codeinit code initializer dog dog subclass compiler subclass codeinit code initializer coderequire code designation calm compiler fear time require force compiler compiler ding solution check apple map instal io mapkit panyone aware check apple map instal docs ppwith user delete apple map application google map share canopenurl code check instal aware thing exist check apple map ppof check opening codemkmapitem code codemapitem openinmap code fail check advance guess form map link https developer apple library content iphoneurlscheme reference maplink maplink html apple ref doc uid canopenurl strongnote strong bug fix io entire matter moot point discussion apply version swift explicitly gear phrpthi bug easy solution explain problem solution note write xcode swift apple map day swift version behave differently ground instantiate emby hand -PRON- call initializer code subclass instance property problem start instance property codeclass greet string code prepthis default write initializer codeclass greet string init greet string greet greet code prepbut legal initializer codesuper code codesuper code codeinit style code codeclass greet string init greet string greet greet super init style plain code prepbut compile requirement implement codeinit coder code codeclass greet string require init coder adecoder nscoder fatalerror init coder implement init greet string greet greet super init style plain code prepyour code compile happily instantiate table view controller subclass call initializer write codelet greet code prepeverything merry rosy emrun -PRON- app point crash message pblockquote pfatal error unimplemented initializer codeinit nibname bundle code crash solve crash cause bug cocoa unknown codeinit style code call codeinit nibname bundle code call codeself code implementation codeinit nibname bundle code eminherit -PRON- codeinit nibname bundle code provide designate initializer cut inheritance ppyour solution emimplement -PRON- codeinit nibname bundle code implementation require set instance property codegreete code set simple solution simple solution simple difficult strongdon subclass strong reasonable solution emneede -PRON- subclass place largely pointless class ppso rewrite class subclass table view view create codeloadview code hook mark star comment codeclass greet string weak var tableview uitableview init greet string greet greet super init nibname nil bundle nil require init coder adecoder nscoder fatalerror init coder implement override func loadview view uitableview frame cgrectzero style plain tableview view uitableview tableview delegate tableview datasource code prepalso add minimal require datum source method instantiate class codelet greet code prepour project compile run hitch problem solve objection object lose ability prototype cell storyboard objection emnever -PRON- ability place remember hypothesis subclasse call subclass initializer prototype cell storyboard storyboard instantiate call codeinit coder code problem arise place read answer original date answer bug fix io bug io code work io work io strongnote strong bug fix io entire matter moot point discussion apply version swift explicitly gear phrpthi bug easy solution explain problem solution note write xcode swift apple map day swift version behave differently ground instantiate emby hand -PRON- call initializer code subclass instance property problem start instance property codeclass greet string code prepthis default write initializer codeclass greet string init greet string greet greet code prepbut legal initializer codesuper code codesuper code codeinit style code codeclass greet string init greet string greet greet super init style plain code prepbut compile requirement implement codeinit coder code codeclass greet string require init coder adecoder nscoder fatalerror init coder implement init greet string greet greet super init style plain code prepyour code compile happily instantiate table view controller subclass call initializer write codelet greet code prepeverything merry rosy emrun -PRON- app point crash message pblockquote pfatal error unimplemented initializer codeinit nibname bundle code crash solve crash cause bug cocoa unknown codeinit style code call codeinit nibname bundle code call codeself code implementation codeinit nibname bundle code eminherit -PRON- codeinit nibname bundle code provide designate initializer cut inheritance ppyour solution emimplement -PRON- codeinit nibname bundle code implementation require set instance property codegreete code set simple solution simple solution simple difficult strongdon subclass strong reasonable solution emneede -PRON- subclass place largely pointless class ppso rewrite class subclass table view view create codeloadview code hook mark star comment codeclass greet string weak var tableview uitableview init greet string greet greet super init nibname nil bundle nil require init coder adecoder nscoder fatalerror init coder implement override func loadview view uitableview frame cgrectzero style plain tableview view uitableview tableview delegate tableview datasource code prepalso add minimal require datum source method instantiate class codelet greet code prepour project compile run hitch problem solve objection object lose ability prototype cell storyboard objection emnever -PRON- ability place remember hypothesis subclasse call subclass initializer prototype cell storyboard storyboard instantiate call codeinit coder code problem arise place sound valuable contribute feel free add answer,1,NULL,iOS UINavigationBar button remains faded after segue back ios swift uinavigationbar ios11 pIn my app have multiple view controllers and most have right hand side codeUIBarButtonItem code with direct show segue actions attached ppHaving segued to another view and then pressed the code lt Back code button the original button item remains faded out although still otherwise usable ppThis only appears to happen under iOS 11 ppI can see any setting that could be doing this and in at least one of the cases where this happens there no specific segue unwinding nor codeviewDidAppear code handling post some code but AFAICS it all just default codeUINavigationBar code behaviour pWhat do is work around this bug in the view controller codeviewWillAppear code as follows ppre codeoverride func viewWillAppear animated Bool super viewWillAppear animated self navigationController navigationBar tintAdjustmentMode normal self navigationController navigationBar tintAdjustmentMode automatic code prepThat seems to wake up the button without visual artifacts,,,, 50364,90982,1185627,NULL,NULL,NULL,0,NULL,NULL 50365,239164,1090865,NULL,NULL,NULL,0,NULL,NULL 50366,213582,314462,NULL,NULL,NULL,0,NULL,NULL 50367,434946,232580,Notable Question Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 50368,410566,1391456,NULL,NULL,NULL,0,NULL,NULL 50369,374953,560951,NULL,NULL,NULL,0,NULL,NULL 50370,1835304,735411,NULL,NULL,NULL,0,NULL,NULL 50371,234957,735411,NULL,NULL,NULL,0,NULL,NULL 50372,243494,564859,NULL,NULL,NULL,0,NULL,NULL 50373,72019,21875,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 50374,1493315,897279,Yearling Nice Answer Caucus Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 50375,114512,185104,Yearling Census Yearling,NULL,NULL,0,NULL,NULL 50376,186694,99720,NULL,NULL,NULL,0,NULL,NULL 50377,910006,223401,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50378,450370,722332,Popular Question Guru Yearling Popular Question Nice Answer python Notable Question Nice Answer Caucus Nice Answer Good Answer Popular Question Nice Question Nice Question Announcer Good Answer Yearling Nice Answer Pundit Announcer Notable Question Announcer Great Answer Yearling Nice Question Announcer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 50379,22023,1286079,NULL,NULL,NULL,0,NULL,NULL 50380,75372,29825,Notable Question Nice Question Popular Question Popular Question Necromancer Census Custodian,NULL,NULL,0,NULL,NULL 50381,323200,498663,Notable Question Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 50382,11726,144098,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 50383,180241,200983,Nice Answer Notable Question Nice Answer Good Question Notable Question Notable Question Famous Question Good Question Yearling Notable Question Nice Answer Nice Question Popular Question Favorite Question Good Answer Famous Question Popular Question Good Answer Notable Question Yearling Nice Answer Popular Question Nice Answer Notable Question Nice Question Good Answer Good Answer Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 50384,626791,467190,Necromancer,NULL,NULL,0,NULL,NULL 50385,165201,981359,Notable Question Nice Question Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 50386,74177,1489038,NULL,NULL,NULL,0,NULL,NULL 50387,467951,1181599,Notable Question,NULL,NULL,0,NULL,NULL 50388,381646,306149,Explainer Yearling Popular Question Enthusiast Tag Editor Necromancer Announcer Tenacious Custodian Yearling Unsung Hero Revival Custodian Revival Caucus Announcer Organizer Nice Answer Enlightened visual-studio-code Revival Custodian Popular Question Nice Question Necromancer Popular Question Nice Answer Revival Announcer Revival Investor Yearling Announcer Altruist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Revival visual-studio-code Citizen Patrol Nice Answer Nice Answer Nice Answer Enlightened Inquisitive Revival Necromancer Revival Revival Good Answer Necromancer vscode-settings Mortarboard Revival Revival Nice Answer Enlightened Nice Answer javascript Nice Answer Enlightened Nice Answer Enlightened vscode-extensions Revival Good Answer Good Answer Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50389,93702,42675,NULL,NULL,NULL,0,NULL,NULL 50390,493680,349294,Editor Curious Notable Question,NULL,NULL,0,NULL,NULL 50391,396770,815599,NULL,NULL,NULL,0,NULL,NULL 50392,492189,802216,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50393,1123954,1336091,Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 50394,212278,421159,Editor Autobiographer Teacher Popular Question,NULL,NULL,0,NULL,NULL 50395,1071430,981133,NULL,NULL,NULL,0,NULL,NULL 50396,1085518,5133,Custodian Citizen Patrol Custodian Yearling Notable Question Popular Question Informed Custodian Custodian Caucus Yearling Famous Question Yearling Guru,NULL,NULL,0,NULL,NULL 50397,49819,233344,Nice Answer,NULL,NULL,0,NULL,NULL 50398,220346,43207,Popular Question Notable Question Nice Question Yearling Famous Question Good Question Notable Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 50399,425197,272592,NULL,NULL,NULL,0,NULL,NULL 50400,96504,57665,NULL,NULL,NULL,0,NULL,NULL 50401,750023,1428689,NULL,NULL,NULL,0,NULL,NULL 50402,3379374,1428689,NULL,NULL,NULL,0,NULL,NULL 50403,802002,831759,NULL,NULL,NULL,0,NULL,NULL 50404,418299,367709,Commentator Famous Question,NULL,NULL,0,NULL,NULL 50405,297875,1505657,Notable Question,NULL,NULL,0,NULL,NULL 50406,612471,927527,NULL,NULL,NULL,0,NULL,NULL 50407,614481,94940,Yearling Popular Question Notable Question Nice Answer Caucus Nice Question Yearling Famous Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 50408,703722,1292846,NULL,NULL,NULL,0,NULL,NULL 50409,240228,210325,Yearling Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 50410,140823,9645,Nice Question Great Answer Good Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50411,10,908571,Yearling Critic,NULL,NULL,0,NULL,NULL 50412,388125,487576,Tumbleweed Student,NULL,NULL,0,NULL,NULL 50413,13228,769235,NULL,NULL,NULL,0,NULL,NULL 50414,694208,1219079,Famous Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 50415,584299,916441,NULL,NULL,NULL,0,NULL,NULL 50416,467817,1265385,NULL,NULL,NULL,0,NULL,NULL 50417,212020,348524,Popular Question,NULL,NULL,0,NULL,NULL 50418,146130,317518,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 50419,102286,246778,NULL,NULL,NULL,0,NULL,NULL 50420,19842,970772,Yearling,NULL,NULL,0,NULL,NULL 50421,165172,641821,Yearling Nice Answer Revival Famous Question Notable Question Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 50422,166182,969528,Nice Answer Good Question Notable Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Good Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 50423,2554896,1014604,Notable Question,NULL,NULL,0,NULL,NULL 50424,45670,837172,NULL,NULL,NULL,0,NULL,NULL 50425,1253366,1205412,Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 50426,635758,86298,Yearling Nice Answer Enlightened Yearling joomla Good Answer php Yearling,NULL,NULL,0,NULL,NULL 50427,288216,955028,NULL,NULL,NULL,0,NULL,NULL 50428,255822,310573,NULL,NULL,NULL,0,NULL,NULL 50429,1310276,502412,Good Answer Yearling,NULL,NULL,0,NULL,NULL 50430,451672,577316,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 50431,112901,219929,Good Question Notable Question Yearling Nice Answer Notable Question Yearling Nice Answer Notable Question Promoter Benefactor Notable Question Yearling,NULL,NULL,0,NULL,NULL 50432,54246,1264696,Supporter,NULL,NULL,0,NULL,NULL 50433,11311465,382918,NULL,NULL,NULL,0,NULL,NULL 50434,132405,606128,NULL,NULL,NULL,0,NULL,NULL 50435,22457,125408,Supporter,NULL,NULL,0,NULL,NULL 50436,1087626,1401841,NULL,NULL,NULL,0,NULL,NULL 50437,136748,830203,NULL,NULL,NULL,0,NULL,NULL 50438,1186141,62230,Yearling,NULL,NULL,0,NULL,NULL 50439,530586,586038,NULL,NULL,NULL,0,NULL,NULL 50440,8681657,1492077,Organizer,NULL,NULL,0,NULL,NULL 50441,367442,1141755,NULL,NULL,NULL,0,NULL,NULL 50442,79201,995569,Famous Question,NULL,NULL,0,NULL,NULL 50443,86216,1275938,Editor Autobiographer Supporter Yearling,NULL,NULL,0,NULL,NULL 50444,1239895,895861,Yearling Yearling Populist Great Answer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 50445,564454,838105,NULL,NULL,NULL,0,NULL,NULL 50446,198045,1406998,NULL,NULL,NULL,0,NULL,NULL 50447,465325,560156,NULL,NULL,NULL,0,NULL,NULL 50448,164327,285640,Teacher Supporter,NULL,NULL,0,NULL,NULL 50449,9012,454586,Nice Answer Critic Nice Answer,NULL,NULL,0,NULL,NULL 50450,195009,358993,NULL,NULL,NULL,0,NULL,NULL 50451,68414,353845,NULL,NULL,NULL,0,NULL,NULL 50452,68616,198130,Teacher Census,NULL,NULL,0,NULL,NULL 50453,132970,1148710,Famous Question Good Question,NULL,NULL,0,NULL,NULL 50454,79300,455121,NULL,NULL,NULL,0,NULL,NULL 50455,97380,23909,Good Question Yearling Good Answer Nice Question Nice Question Popular Question Good Question Popular Question Yearling Famous Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 50456,104129,944651,NULL,NULL,NULL,0,NULL,NULL 50457,717861,679187,NULL,NULL,NULL,0,NULL,NULL 50458,195019,703463,NULL,NULL,NULL,0,NULL,NULL 50459,530059,1541697,Yearling Good Answer Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 50460,211378,221137,NULL,NULL,NULL,0,NULL,NULL 50461,190334,883224,NULL,NULL,NULL,0,NULL,NULL 50462,5573,184598,NULL,NULL,NULL,0,NULL,NULL 50463,96662,1072371,NULL,NULL,NULL,0,NULL,NULL 50464,332816,154065,Announcer Good Question Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Popular Question Yearling Good Question Notable Question Notable Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Yearling Notable Question Popular Question Popular Question Nice Answer,NULL,React Router Redirect drops param javascript reactjs routes react router pI am using the codenext code version of React Router and it seems to be dropping params expect the redirect below to retain the value of codechannelId code but the codeto code route uses the literal string code channelId code in the path instead ppre code lt Switch gt lt Route exact path component Landing gt lt Route path channels channelId modes modeId component Window gt lt Redirect from channels channelId to channels channelId modes window gt lt Switch gt code prepThis looks like href https github com ReactTraining react router issues 1034 issuecomment 113526156 rel noreferrer resolved issue but it not working Is there something else need to pass to the codeto code route never did unfortunately doing things different way now using redirect within the component itself However it would be great to get this verified because it should work as advertised in the thread linked above,1,React Router Redirect drops param javascript reactjs routes react router pI am using the codenext code version of React Router and it seems to be dropping params expect the redirect below to retain the value of codechannelId code but the codeto code route uses the literal string code channelId code in the path instead ppre code lt Switch gt lt Route exact path component Landing gt lt Route path channels channelId modes modeId component Window gt lt Redirect from channels channelId to channels channelId modes window gt lt Switch gt code prepThis looks like href https github com ReactTraining react router issues 1034 issuecomment 113526156 rel noreferrer resolved issue but it not working Is there something else need to pass to the codeto code route,NULL 50465,664635,1146329,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 50466,50492,614749,Necromancer Editor Student Scholar Nice Answer,NULL,NULL,0,NULL,NULL 50467,68708,268619,Yearling Nice Answer Tumbleweed Good Answer Popular Question Notable Question Yearling Nice Question Nice Answer Nice Answer Enlightened Nice Question Notable Question Yearling Notable Question Great Question,NULL,NULL,0,NULL,NULL 50468,1519856,1219515,Popular Question Caucus Popular Question Popular Question Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 50469,883891,753588,Good Answer Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 50470,310210,532864,NULL,NULL,NULL,0,NULL,NULL 50471,211699,180077,NULL,NULL,NULL,0,NULL,NULL 50472,178552,1233020,Yearling,NULL,NULL,0,NULL,NULL 50473,41513,1034470,Popular Question Excavator Yearling Critic Custodian Yearling Popular Question Tenacious Self-Learner Yearling Notable Question Documentation User Citizen Patrol Custodian Necromancer,NULL,NULL,0,NULL,NULL 50474,185897,512878,NULL,NULL,NULL,0,NULL,NULL 50475,765703,1181736,NULL,NULL,NULL,0,NULL,NULL 50476,173136,162076,Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50477,115964,651768,NULL,NULL,NULL,0,NULL,NULL 50478,5963693,1373390,Student Self-Learner Informed Supporter Editor Critic,NULL,NULL,0,NULL,NULL 50479,859740,1373390,Student Self-Learner Informed Supporter Editor Critic,NULL,NULL,0,NULL,NULL 50480,71600,8075,Popular Question,NULL,NULL,0,NULL,NULL 50481,52808,571522,NULL,NULL,NULL,0,NULL,NULL 50482,629555,1125039,Yearling Necromancer Commentator Yearling Popular Question Notable Question Nice Answer Popular Question Popular Question Notable Question,NULL,How to comment out content in Hugo hugo pHow do comment out content in Hugo ppIf have notes unfinished thoughts like to leave them in the code md code file but not have them appear in the codehtml code pp code lt code tags don seem to work it doesn even become html comment it remains visible text on the page ah needs the closing tag thanks,1,How to comment out content in Hugo hugo pHow do comment out content in Hugo ppIf have notes unfinished thoughts like to leave them in the code md code file but not have them appear in the codehtml code pp code lt code tags don seem to work it doesn even become html comment it remains visible text on the page,NULL 50483,377349,1482985,NULL,NULL,NULL,0,NULL,NULL 50484,209855,26094,Popular Question Notable Question Yearling Custodian Custodian Yearling Self-Learner Caucus Constituent Popular Question Nice Question Nice Answer Notable Question Yearling Notable Question Custodian,NULL,NULL,0,NULL,NULL 50485,12677,2220,Custodian Informed Custodian Excavator Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50486,6094149,711299,Explainer Informed Revival Yearling Excavator Custodian Necromancer Notable Question Yearling Popular Question Documentation User Custodian Census Necromancer Curious Self-Learner Yearling Revival,NULL,NULL,0,NULL,NULL 50487,245099,235696,NULL,NULL,NULL,0,NULL,NULL 50488,168854,932748,Supporter,NULL,NULL,0,NULL,NULL 50489,22565,146105,NULL,NULL,NULL,0,NULL,NULL 50490,148069,128948,Good Question Notable Question Famous Question Famous Question Popular Question Popular Question Yearling Popular Question Good Answer Popular Question Popular Question Notable Question Famous Question Popular Question Nice Answer Popular Question Electorate Yearling Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Self-Learner Nice Question Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 50491,125290,1214104,Yearling Good Question,NULL,NULL,0,NULL,NULL 50492,13275,139607,Necromancer Necromancer Taxonomist Yearling Citizen Patrol Great Answer Nice Question Good Answer Yearling Popular Question Organizer Tag Editor Popular Question Great Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 50493,125727,809138,Necromancer Popular Question Nice Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 50494,377052,650482,NULL,NULL,NULL,0,NULL,NULL 50495,339186,330168,NULL,NULL,NULL,0,NULL,NULL 50496,70598,556558,NULL,NULL,NULL,0,NULL,NULL 50497,76780,497400,Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Custodian Yearling Notable Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 50498,152115,1016217,NULL,NULL,NULL,0,NULL,NULL 50499,2116271,1513226,Yearling,NULL,NULL,0,NULL,NULL 50500,1091430,63083,Yearling Nice Question Guru Notable Question Yearling Guru Notable Question Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 50501,932942,551431,NULL,NULL,NULL,0,NULL,NULL 50502,3852723,551431,NULL,NULL,NULL,0,NULL,NULL 50503,254101,1086602,NULL,NULL,NULL,0,NULL,NULL 50504,85013,1519346,NULL,NULL,NULL,0,NULL,NULL 50505,144416,1563632,NULL,NULL,NULL,0,NULL,NULL 50506,274572,35485,Notable Question,NULL,NULL,0,NULL,NULL 50507,89446,335729,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50508,111588,683591,NULL,NULL,NULL,0,NULL,NULL 50509,947100,449330,Announcer Census,NULL,NULL,0,NULL,NULL 50510,9303,826397,NULL,NULL,NULL,0,NULL,NULL 50511,316847,826397,NULL,NULL,NULL,0,NULL,NULL 50512,3712997,680634,NULL,NULL,NULL,0,NULL,NULL 50513,37706,814710,NULL,NULL,NULL,0,NULL,NULL 50514,592682,590901,Popular Question,NULL,NULL,0,NULL,NULL 50515,83109,302929,NULL,NULL,NULL,0,NULL,NULL 50516,42654,155370,Yearling Caucus Good Question Popular Question Yearling Famous Question Announcer Yearling,NULL,NULL,0,NULL,NULL 50517,631628,481515,NULL,NULL,NULL,0,NULL,NULL 50518,1022417,1065874,NULL,NULL,NULL,0,NULL,NULL 50519,17306,30491,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 50520,57107,596284,NULL,NULL,NULL,0,NULL,NULL 50521,607778,892674,Yearling Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 50522,72711,922090,NULL,NULL,NULL,0,NULL,NULL 50523,531341,454953,NULL,NULL,NULL,0,NULL,NULL 50524,181036,778092,NULL,NULL,NULL,0,NULL,NULL 50525,63952,144600,Famous Question Nice Question Nice Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 50526,114990,319579,NULL,NULL,NULL,0,NULL,NULL 50527,367680,187051,Census,NULL,NULL,0,NULL,NULL 50528,216619,1064456,NULL,NULL,NULL,0,NULL,NULL 50529,122312,6713,.net Necromancer Nice Answer Popular Question Yearling Good Answer Nice Question Nice Answer Enlightened Yearling Popular Question Nice Answer Census asp.net Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50530,434386,1029277,NULL,NULL,NULL,0,NULL,NULL 50531,83100,5235,Yearling Popular Question Famous Question Yearling Self-Learner Yearling Good Answer,NULL,NULL,0,NULL,NULL 50532,305339,827531,NULL,NULL,NULL,0,NULL,NULL 50533,53237,500776,Nice Answer Good Answer Nice Answer Enlightened Yearling Favorite Question Notable Question Nice Answer Yearling Curious Good Answer Civic Duty Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 50534,185334,1163120,Editor,NULL,NULL,0,NULL,NULL 50535,8096,149297,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50536,100970,24940,Scholar,NULL,NULL,0,NULL,NULL 50537,391817,1330619,NULL,NULL,NULL,0,NULL,NULL 50538,4672541,118364,Popular Question python Good Answer Good Answer c Yearling Notable Question Popular Question Yearling Good Answer Nice Question Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 50539,1851434,118364,Popular Question python Good Answer Good Answer c Yearling Notable Question Popular Question Yearling Good Answer Nice Question Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 50540,185727,1477,Yearling Great Answer Notable Question Curious Yearling Yearling Great Question,NULL,NULL,0,NULL,NULL 50541,86929,476979,Census Teacher Informed Supporter Editor Critic Citizen Patrol Yearling Yearling Commentator Yearling Yearling Yearling Suffrage Vox Populi Custodian Yearling Yearling Custodian Custodian Custodian ruby Mortarboard Explainer ruby-on-rails Enthusiast Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 50542,330360,1075970,NULL,NULL,NULL,0,NULL,NULL 50543,73565,170875,Scholar Student,NULL,NULL,0,NULL,NULL 50544,417998,468369,Informed Commentator Critic Autobiographer Citizen Patrol Yearling Yearling,NULL,NULL,0,NULL,NULL 50545,227974,388157,Nice Answer Enlightened Revival Yearling,NULL,NULL,0,NULL,NULL 50546,324995,1463288,NULL,NULL,NULL,0,NULL,NULL 50547,163735,683933,Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 50548,726669,431350,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50549,5552,814805,NULL,NULL,NULL,0,NULL,NULL 50550,253499,279598,Popular Question,NULL,NULL,0,NULL,NULL 50551,361246,331047,Census,NULL,NULL,0,NULL,NULL 50552,603849,1354026,Enthusiast Tumbleweed Student Supporter Editor Commentator Teacher Curious Popular Question,NULL,NULL,0,NULL,NULL 50553,1378693,69704,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 50554,89193,1342694,Student,NULL,NULL,0,NULL,NULL 50555,722504,176817,Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 50556,211777,400317,NULL,NULL,NULL,0,NULL,NULL 50557,60536,492401,Necromancer Yearling Good Answer Good Answer Nice Answer Yearling Nice Answer Great Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 50558,372437,23899,Populist Nice Question Yearling Good Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 50559,333729,1475465,NULL,NULL,NULL,0,NULL,NULL 50560,1387207,1065846,Notable Question Popular Question Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50561,2413201,1075029,Popular Question Popular Question Caucus Yearling Notable Question Self-Learner Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50562,73153,592568,Nice Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 50563,264044,355540,Yearling Custodian Popular Question Excavator,NULL,NULL,0,NULL,NULL 50564,505256,645653,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50565,918565,787717,NULL,NULL,NULL,0,NULL,NULL 50566,2579,537250,NULL,NULL,NULL,0,NULL,NULL 50567,5145138,1171733,Popular Question Famous Question Popular Question Yearling Nice Question Famous Question Notable Question Yearling Popular Question Popular Question Caucus Good Answer Nice Question Yearling Citizen Patrol Custodian Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 50568,260416,691103,Yearling Famous Question Popular Question Notable Question Nice Question Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 50569,251812,544110,Teacher,NULL,NULL,0,NULL,NULL 50570,352798,332780,NULL,NULL,NULL,0,NULL,NULL 50571,148064,904042,NULL,NULL,NULL,0,NULL,NULL 50572,9803,492566,Yearling Nice Answer Enlightened Good Answer Good Question Yearling Nice Answer Curious Yearling,NULL,NULL,0,NULL,NULL 50573,45102,830670,NULL,NULL,NULL,0,NULL,NULL 50574,278127,168740,Good Answer Announcer Nice Answer Yearling Self-Learner Guru Popular Question Yearling Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 50575,388815,479732,Popular Question,NULL,NULL,0,NULL,NULL 50576,444842,881392,Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 50577,390017,238411,Famous Question Popular Question Yearling Notable Question Notable Question Nice Question Notable Question Nice Question Nice Question Good Question Popular Question Popular Question Notable Question Yearling Good Question Popular Question Popular Question Nice Question Notable Question Favorite Question Popular Question Popular Question Enthusiast Yearling Revival Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50578,143258,577985,NULL,NULL,NULL,0,NULL,NULL 50579,54847,502222,NULL,NULL,NULL,0,NULL,NULL 50580,1353990,881524,NULL,NULL,NULL,0,NULL,NULL 50581,376845,1075745,Commentator Scholar,NULL,NULL,0,NULL,NULL 50582,191953,265695,NULL,NULL,NULL,0,NULL,NULL 50583,31841,818091,Nice Answer Enlightened Yearling Famous Question Good Answer Famous Question Yearling Nice Question Good Question Good Answer Popular Question Populist Popular Question Yearling,NULL,NULL,0,NULL,NULL 50584,487319,1096451,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50585,354908,158434,Revival Revival,NULL,NULL,0,NULL,NULL 50586,261509,101260,Popular Question Popular Question Notable Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 50587,321653,1183162,NULL,NULL,NULL,0,NULL,NULL 50588,137523,3858,Good Question Civic Duty Populist Yearling Critic Documentation User,NULL,NULL,0,NULL,NULL 50589,2557491,1183908,Scholar Supporter,NULL,NULL,0,NULL,NULL 50590,370202,1183908,Scholar Supporter,NULL,NULL,0,NULL,NULL 50591,188123,260623,NULL,NULL,NULL,0,NULL,NULL 50592,234152,49135,Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 50593,146590,170990,Announcer,NULL,NULL,0,NULL,NULL 50594,6127781,1355079,NULL,NULL,,0,, 50595,165335,1355079,NULL,NULL,NULL,0,NULL,NULL 50596,169675,270334,Enthusiast Yearling Notable Question Informed Nice Answer Excavator Yearling Announcer Announcer Announcer Necromancer Announcer Documentation User Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 50597,92696,295084,Famous Question Revival Nice Question Self-Learner Necromancer Yearling Necromancer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 50598,1416235,1214506,NULL,NULL,NULL,0,NULL,NULL 50599,3340552,1214506,NULL,NULL,NULL,0,NULL,NULL 50600,791459,1140995,Yearling Investor,NULL,NULL,0,NULL,NULL 50601,746510,612123,Yearling Critic Editor Announcer Revival Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 50602,575270,802138,Revival Populist Necromancer Nice Answer Enlightened Yearling Good Answer Curious Popular Question Good Question Nice Answer Great Answer Popular Question Yearling angularjs Caucus Census Revival Yearling Custodian Custodian Popular Question Nice Question,NULL,How do you clone Git repository into specific folder git repository git clone pExecuting the command codegit clone git com whatever code creates directory in my current folder named whatever and drops the contents of the Git repository into that folder ppre code httpdocs whatever public code prepMy problem is that need the contents of the Git repository cloned into my current directory so that they appear in the proper location for the web server ppre code httpdocs public code prepI know how to move the files after ve cloned the repository but this seems to break Git and like to be able to update just by calling codegit pull code How can do this voila is the spelling,0,NULL,NULL 50603,696719,1140624,NULL,NULL,NULL,0,NULL,NULL 50604,997291,378896,NULL,NULL,NULL,0,NULL,NULL 50605,6775097,1352063,NULL,NULL,NULL,0,NULL,NULL 50606,46269,1352063,NULL,NULL,NULL,0,NULL,NULL 50607,51332,317487,Popular Question Popular Question Good Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 50608,11188,424814,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 50609,723950,1012673,NULL,NULL,NULL,0,NULL,NULL 50610,1615618,1012673,NULL,NULL,NULL,0,NULL,NULL 50611,200353,55061,Yearling Notable Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 50612,54694,997768,Popular Question Notable Question Yearling Revival Yearling Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 50613,37495,582203,NULL,NULL,NULL,0,NULL,NULL 50614,99835,565586,NULL,NULL,NULL,0,NULL,NULL 50615,168299,445132,Notable Question,NULL,NULL,0,NULL,NULL 50616,423810,324116,Necromancer,NULL,NULL,0,NULL,NULL 50617,767125,305485,NULL,NULL,NULL,0,NULL,NULL 50618,179424,1391026,Popular Question Yearling Good Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Custodian Notable Question Yearling Notable Question Nice Question Notable Question Popular Question Documentation User Custodian Civic Duty Census Famous Question Caucus Revival Yearling Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 50619,1468578,552479,Critic Explainer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50620,242607,768944,NULL,NULL,NULL,0,NULL,NULL 50621,560919,1063872,NULL,NULL,NULL,0,NULL,NULL 50622,846255,604890,Nice Answer Editor,NULL,NULL,0,NULL,NULL 50623,343552,1555072,Teacher,NULL,NULL,0,NULL,NULL 50624,312972,525256,Revival Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 50625,28598,759967,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 50626,578481,526469,Teacher,NULL,NULL,0,NULL,NULL 50627,349257,1415496,NULL,NULL,NULL,0,NULL,NULL 50628,64412,560375,Yearling Popular Question Nice Answer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50629,11500,294418,NULL,NULL,NULL,0,NULL,NULL 50630,8429,1114482,NULL,NULL,NULL,0,NULL,NULL 50631,206990,1032140,NULL,NULL,NULL,0,NULL,NULL 50632,474438,1152299,NULL,NULL,NULL,0,NULL,NULL 50633,10284221,1413075,NULL,NULL,NULL,0,NULL,NULL 50634,2008817,1413075,NULL,NULL,NULL,0,NULL,NULL 50635,296748,697930,Investor Altruist Yearling Good Answer Announcer Revival symfony Yearling Good Answer Curious Great Answer Caucus Guru Announcer Nice Answer Tumbleweed Popular Question Yearling Necromancer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 50636,42904,496459,Caucus Critic Civic Duty Scholar Student Yearling Caucus Constituent,NULL,pIn href http man7 org tlpi code index html rel noreferrer tlpi book found this trick very interesting ppre code include lt dlfcn gt intmain int argc char argv void funcp void Pointer to function with no arguments void amp funcp dlsym libHandle argv code pre Could someone explain how it works in more details,0,NULL,NULL 50637,929071,157746,Notable Question Notable Question Popular Question Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 50638,502911,356537,Necromancer Yearling Popular Question Nice Question,NULL,blockquote pIs there solution which will allow me to say codex instanceof Score code blockquotepYes Conceptually is right but for codeinstanceof code to work we need to expose codereturn code function instead of plain object If that function has the same code prototype code as our internal private constructor the href https developer mozilla org en US docs Web JavaScript Reference Operators instanceof codeinstanceof code operator does what is expected ppre codevar Score function the module API function PublicScore throw new Error The constructor is private please use Score makeNewScore The private constructor var Score function score hasPassed this score score this hasPassed hasPassed Now use either Score prototype PublicScore prototype to make constructor PublicScore PublicScore prototype Score prototype to leak the hidden constructor PublicScore prototype Score prototype to inherit constructor Object or PublicScore prototype Score prototype constructor null for total confusion The preferred smart constructor PublicScore mkNewScore function score return new Score score score gt 33 return PublicScore code prep ppre code gt Score mkNewScore 50 instanceof Scoretrue gt new ScoreError code pre Clearly simpler solution than the one provided by One that does not throw either Btw throwing errors is ugly…,0,NULL,NULL 50639,136749,790564,NULL,NULL,NULL,0,NULL,NULL 50640,928416,81668,Famous Question Tumbleweed Yearling Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 50641,384904,1289980,NULL,NULL,NULL,0,NULL,NULL 50642,103448,3109,Popular Question Nice Question Notable Question Notable Question Good Question Yearling Nice Answer Enlightened Nice Answer Famous Question Yearling Popular Question Notable Question Yearling,NULL,NULL,1,NULL,net core azure deployment failing Project file does not exist azure asp net core net core azure web app service pI have an app service app set up in Azure which is set to deploy upon commit into team services git repository This has been working fine until now and the deployment is failing with ppre codeMSBUILD error MSB1009 Project file does not exist code prepHowever If open the azure console and CD to my project directory can see that the project file an asp net core xproj does indeed exist know its in the correct directory from the output in the deployment log showing that the packages are being restored ppre codeCommand home site deployments tools deploy cmd Handling ASP NET Core Web Application deployment Restoring packages for home site repository IDPTest src IDPTest project json Restoring packages for tool Microsoft AspNetCore Server IISIntegration Tools in home site repository IDPTest src IDPTest project json Committing restore Lock file has not changed Skipping lock file write Path home site repository IDPTest src IDPTest project lock jsonD home site repository IDPTest src IDPTest project jsonRestore completed in 10549ms Restoring packages for home site repository IDPTest src IDPTest MVCClient project json Restoring packages for tool BundlerMinifier Core in home site repository IDPTest src IDPTest MVCClient project json Restoring packages for tool Microsoft AspNetCore Razor Tools in home site repository IDPTest src IDPTest MVCClient project json Restoring packages for tool Microsoft AspNetCore Server IISIntegration Tools in home site repository IDPTest src IDPTest MVCClient project json Committing restore Lock file has not changed Skipping lock file write Path home site repository IDPTest src IDPTest MVCClient project lock jsonD home site repository IDPTest src IDPTest MVCClient project jsonRestore completed in 7119ms NuGet Config files used DWASFiles Sites 1IDPTest AppData NuGet NuGet ConfigFeeds used https api nuget org v3 index jsonMicrosoft Build Engine version 15 0Copyright Microsoft Corporation All rights reserved MSBUILD error MSB1009 Project file does not exist Switch home site repository IDPTest src IDPTest MVCClientFailed exitCode command dotnet publish home site repository IDPTest src IDPTest MVCClient output local Temp 8d40eb8007743fd configuration ReleaseAn error has occurred during web site deployment nD Program Files x86 SiteExtensions Kudu 59 51109 2534 bin Scripts starter cmd home site deployments tools deploy cmd code prep ppInterestingly have two app service apps pointing at different projects in the same solution Suddently they re both failing with the same error message even though they re deploying different projects ppAny help much appreciated ppThanks pp strongEDIT strong ppI already had global json in my solution root at the same level as my sln file but that was pointing at an older version of the SDK so updated this and it made no difference then tried getting rid of the test project in the json file and that made no difference either Still failing with the same errora href https stack imgur com 78bv2 png rel noreferrer img src https stack imgur com 78bv2 png alt enter image description here pApparently you need to specify the SDK version explicitly in your global json otherwise Kudu is using the latest which is now the preview3 one which is not compatible ppre code projects src test sdk version preview2 003177 code prepBe careful you global json file should live at the root of your repository ppDetails href https social msdn microsoft com Forums en US 2a301f82 6a7a 4c03 ad4a bd8714d72ba6 continious deployment of aspnet core app suddenly starts to fail today forum windowsazurewebsitespreview amp prof required https social msdn microsoft com Forums en US 2a301f82 6a7a 4c03 ad4a bd8714d72ba6 continious deployment of aspnet core app suddenly starts to fail today forum windowsazurewebsitespreview amp prof required 50643,320293,245552,Yearling Popular Question Popular Question Famous Question Famous Question Notable Question Nice Question Popular Question Famous Question Necromancer Popular Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Good Answer Nice Answer Necromancer Notable Question Popular Question Popular Question Notable Question Notable Question Good Answer Notable Question Popular Question Popular Question Nice Answer Necromancer Nice Question Notable Question Favorite Question Revival Notable Question Nice Question Notable Question Notable Question Great Answer Guru Yearling Good Answer Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Famous Question Good Answer Notable Question Notable Question Populist Popular Question Popular Question Great Answer Notable Question Famous Question Necromancer Favorite Question Revival Nice Question Announcer Notable Question Popular Question Notable Question Nice Question Notable Question Good Question Good Answer Necromancer Notable Question Famous Question Revival Popular Question Great Question Yearling Popular Question Notable Question Notable Question Nice Question Nice Answer Revival Popular Question Popular Question Good Question Great Answer Popular Question Popular Question Popular Question Good Question Necromancer Popular Question Nice Answer Notable Question Notable Question Taxonomist Notable Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 50644,251287,129721,NULL,NULL,NULL,0,NULL,NULL 50645,626762,742320,NULL,NULL,NULL,0,NULL,NULL 50646,79830,747156,NULL,NULL,NULL,0,NULL,NULL 50647,37527,190004,NULL,NULL,NULL,0,NULL,NULL 50648,730190,1491238,Notable Question Critic Curious,NULL,NULL,0,NULL,NULL 50649,265084,626724,NULL,NULL,NULL,0,NULL,NULL 50650,4118,740048,Critic Yearling Citizen Patrol Nice Question Informed Yearling Good Answer Necromancer Yearling,NULL,pNPM will install local packages into your projects already but still like to keep the system away from my operating system files Here how suggest compartmentalizing Nodejs packages ppInstall Nodejs and NPM via the chris lea PPA Then set up package root in my homedir to hold the Node global packages ppre code NPM PACKAGES HOME npm packages mkdir NPM PACKAGES code prepSet NPM to use this directory for its global package installs ppre code echo prefix NPM PACKAGES gt gt npmrc code prepConfigure your PATH and MANPATH to see commands in your NPM PACKAGES prefix by adding the following to your zshrc bashrc ppre code NPM packages in homedirNPM PACKAGES HOME npm packages Tell our environment about user installed node toolsPATH NPM PACKAGES bin PATH Unset manpath so we can inherit from etc manpath via the manpath commandunset MANPATH delete if you already modified MANPATH elsewhere in your configurationMANPATH NPM PACKAGES share man manpath Tell Node about these packagesNODE PATH NPM PACKAGES lib node modules NODE PATH code prepNow when you do an codenpm install code NPM will install the libraries into code npm packages lib node modules code and link executable tools into code npm packages bin code which is in your codePATH code ppJust use codenpm install code as you would normally ppre code justjake npm install coffee script npm downloads stuff home justjake npm packages bin coffee gt home justjake npm packages lib node modules coffee script bin coffee home justjake npm packages bin cake gt home justjake npm packages lib node modules coffee script bin cakecoffee script home justjake npm packages lib node modules coffee script justjake which coffee home justjake npm packages bin coffee code pre If you use echo prefix NPM PACKAGES npmrc the path is not hardcoded in npmrc but npm will read it from the environment variable whenever npm runs note changed to in order to prevent the shell that executes the echo from expanding the variable and added around the variable since that is the syntax used in npmrc To make this work did have to change bashrc to read export NPM PACKAGES HOME npm packages Adding the export makes it available to npm Unrelated think you would need to add export to the other variables as well,0,NULL,NULL 50651,185524,195284,NULL,NULL,NULL,0,NULL,NULL 50652,3039165,195284,NULL,NULL,NULL,0,NULL,NULL 50653,568081,415988,NULL,NULL,NULL,0,NULL,NULL 50654,455215,810882,NULL,NULL,NULL,0,NULL,NULL 50655,402159,874701,Popular Question Yearling Announcer Enthusiast Popular Question Caucus Electorate Yearling Announcer Explainer Caucus Announcer Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 50656,1583550,357569,Good Answer,NULL,NULL,0,NULL,NULL 50657,1006250,133442,Commentator Caucus,NULL,NULL,0,NULL,NULL 50658,16458,854536,NULL,NULL,NULL,0,NULL,NULL 50659,488075,708592,Notable Question,NULL,NULL,0,NULL,NULL 50660,550805,785663,Good Answer Yearling Nice Answer Enlightened Popular Question Notable Question Popular Question Notable Question Caucus Constituent Yearling Popular Question Census Revival Popular Question Caucus Constituent Announcer Enlightened Popular Question Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 50661,81273,652379,NULL,NULL,NULL,0,NULL,NULL 50662,130847,594053,Yearling Civic Duty Notable Question Good Answer Notable Question Popular Question Yearling Good Question Popular Question Yearling Notable Question,NULL,NULL,1,How can use babel with pm2 javascript ecmascript babeljs pm2 pI have server code written in ES6 and use href http pm2 keymetrics io rel nofollow pm2 to manage that server few months ago used the codenext gen js code option and it worked magically ppHowever now tried to update pm2 to v1 and get errors about codeimport code being an illegal token Basically my ES6 files are not parsed as ES6 anymore ppWhat can do to use pm2 with ES6 files,NULL 50663,649266,105253,NULL,NULL,NULL,0,NULL,NULL 50664,871796,342426,NULL,NULL,NULL,0,NULL,NULL 50665,1514808,1202431,NULL,NULL,NULL,0,NULL,NULL 50666,239048,386823,Good Question,NULL,NULL,0,NULL,NULL 50667,8602,1174459,NULL,NULL,NULL,0,NULL,NULL 50668,832383,507062,Yearling Revival Announcer Nice Answer Critic Yearling Revival Revival Necromancer,NULL,NULL,0,NULL,NULL 50669,131282,651631,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50670,7149081,437686,NULL,NULL,NULL,0,NULL,NULL 50671,1433530,437686,NULL,NULL,NULL,0,NULL,NULL 50672,180817,382264,Popular Question Autobiographer Critic,NULL,NULL,0,NULL,NULL 50673,99694,120767,Nice Answer Enlightened Yearling Caucus Nice Answer jquery Yearling Caucus Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50674,321233,771377,NULL,NULL,NULL,0,NULL,NULL 50675,289019,1260222,Nice Answer Critic Yearling Good Answer Yearling Guru Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 50676,286027,381925,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 50677,85574,1463045,NULL,NULL,NULL,0,NULL,NULL 50678,1521687,947552,NULL,NULL,NULL,0,NULL,NULL 50679,194680,1442151,NULL,NULL,NULL,0,NULL,NULL 50680,188266,56686,Yearling Nice Answer Necromancer Nice Question Popular Question Caucus Good Answer Yearling Nice Answer Yearling Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 50681,140013,708061,NULL,NULL,NULL,0,NULL,NULL 50682,178190,869630,Popular Question Yearling,NULL,NULL,0,NULL,NULL 50683,1565941,860301,NULL,NULL,NULL,0,NULL,NULL 50684,54572,673031,NULL,NULL,NULL,0,NULL,NULL 50685,537866,141349,Yearling Self-Learner Yearling Nice Answer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 50686,17871,350746,NULL,NULL,NULL,0,NULL,NULL 50687,724658,992855,NULL,NULL,NULL,0,NULL,NULL 50688,353671,268687,Yearling Popular Question Good Answer Yearling Popular Question Notable Question Favorite Question Populist Yearling Custodian Great Question Nice Question,NULL,NULL,0,NULL,NULL 50689,302010,620128,NULL,NULL,NULL,0,NULL,NULL 50690,383929,337678,Necromancer Nice Question Popular Question Yearling Popular Question Nice Question Nice Answer Enlightened Nice Answer Popular Question Good Answer Yearling Popular Question Nice Answer Notable Question Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 50691,530824,1201310,NULL,NULL,NULL,0,NULL,NULL 50692,38316,944411,Popular Question,NULL,NULL,0,NULL,NULL 50693,158706,256218,Good Question Yearling django Popular Question Nice Answer Enlightened Popular Question Yearling Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50694,886517,355515,NULL,NULL,NULL,0,NULL,NULL 50695,300244,139010,hibernate Good Answer Nice Answer Enlightened Notable Question Enlightened Nice Question Good Question Nice Answer Enlightened Guru Great Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Nice Answer Nice Question Great Answer Nice Answer Enlightened Good Answer Good Answer Notable Question Nice Answer Enlightened Guru Good Answer Guru Notable Question Nice Answer Enlightened Great Question Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Popular Question Good Answer oop Guru Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer .net Great Answer Famous Question Enlightened Nice Answer Enlightened Yearling class Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Question Nice Answer Nice Answer Populist Nice Answer Enlightened Good Answer Notable Question Guru Famous Question Guru Good Answer Great Answer Good Answer Nice Answer Nice Answer Good Answer Caucus Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened performance Announcer Nice Question Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Guru Guru Good Answer Good Answer Great Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Good Question Guru Announcer parsing Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Nice Question Famous Question Guru Enlightened Announcer Guru Announcer Great Answer Nice Answer Nice Answer Enlightened Famous Question Famous Question asp.net Guru Favorite Question Good Answer Nice Answer Enlightened Guru Announcer Nice Answer Good Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Guru Guru Announcer Announcer Great Answer Yearling Announcer Caucus Announcer Announcer Good Answer Great Answer Nice Answer Announcer Enlightened Announcer Nice Answer Enlightened Good Answer Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Booster Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Announcer Good Answer Good Answer Announcer Guru Good Answer Notable Question Guru Great Answer Good Answer Nice Answer Announcer Nice Question Good Answer Announcer Guru Booster Nice Answer Announcer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Notable Question Announcer Guru Great Answer Great Answer Announcer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Announcer Announcer Good Answer Favorite Question Nice Answer Announcer Good Answer variables Announcer Famous Question Booster Announcer Announcer Nice Answer Guru Announcer Announcer Great Question Guru Guru Nice Answer Nice Answer Enlightened servlets Guru Nice Answer Announcer Guru Good Answer Nice Answer forms Guru Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Guru Great Question Guru Announcer Good Answer Publicist Good Answer Great Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Guru Great Answer Announcer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer xml Nice Answer Enlightened Nice Answer Great Answer image Announcer Guru Announcer Announcer Announcer Nice Question,NULL,strongAs of Node js v6 strong using href https nodejs org dist v6 docs api buffer html buffer new buffer str encoding rel noreferrer the constructor method has been deprecated and the following method should instead be used to construct new buffer from base64 encoded string ppre codevar b64string whatever var buf Buffer from b64string base64 Ta da code prep strongFor Node js v5 11 and below strong ppConstruct new codeBuffer code and href https stackoverflow com 6182519 139010 pass code base64 code as the second argument ppre codevar b64string whatever var buf new Buffer b64string base64 Ta da code prepIf you want to be clean you can check whether codefrom code exists ppre codeif typeof Buffer from function Node 10 buf Buffer from b64string base64 Ta da else older Node versions now deprecated buf new Buffer b64string base64 Ta da code pre thanks for the updated info Would you mind suggesting an edit to this answer please strongAs of Node js v6 strong using href https nodejs org dist v6 docs api buffer html buffer new buffer str encoding rel noreferrer the constructor method has been deprecated and the following method should instead be used to construct new buffer from base64 encoded string ppre codevar b64string whatever var buf Buffer from b64string base64 Ta da code prep strongFor Node js v5 11 and below strong ppConstruct new codeBuffer code and href https stackoverflow com 6182519 139010 pass code base64 code as the second argument ppre codevar b64string whatever var buf new Buffer b64string base64 Ta da code prepIf you want to be clean you can check whether codefrom code exists ppre codeif typeof Buffer from function Node 10 buf Buffer from b64string base64 Ta da else older Node versions now deprecated buf new Buffer b64string base64 Ta da code pre thanks for keeping this up to date,0,NULL,NULL 50696,268590,568777,Yearling Necromancer Popular Question Announcer,NULL,NULL,0,NULL,NULL 50697,1503833,1126629,Tumbleweed Editor Student Scholar Teacher Supporter,NULL,NULL,0,NULL,NULL 50698,18192,1038311,NULL,NULL,NULL,0,NULL,NULL 50699,247882,605948,Notable Question Popular Question Caucus Popular Question Famous Question Yearling Caucus Constituent Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 50700,305272,1001568,Supporter Scholar,NULL,NULL,0,NULL,NULL 50701,614589,117859,Famous Question Popular Question Notable Question Popular Question Caucus Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50702,261147,168581,Good Answer Custodian Electorate Yearling Caucus Constituent Census Caucus Constituent,NULL,NULL,0,NULL,NULL 50703,121937,1117914,Nice Question Popular Question Organizer Yearling Revival Documentation User Announcer Yearling Census Revival Popular Question Announcer,NULL,NULL,0,NULL,NULL 50704,1209531,108488,NULL,NULL,NULL,0,NULL,NULL 50705,209075,1090407,NULL,NULL,NULL,0,NULL,NULL 50706,4685854,1090407,NULL,NULL,NULL,0,NULL,NULL 50707,2788628,1090407,NULL,NULL,NULL,0,NULL,NULL 50708,219908,1179268,NULL,NULL,NULL,0,NULL,NULL 50709,197213,1003980,NULL,NULL,NULL,0,NULL,NULL 50710,694415,963297,NULL,NULL,NULL,0,NULL,NULL 50711,420421,522491,NULL,NULL,NULL,0,NULL,NULL 50712,73230,143319,Pundit Good Answer Notable Question Popular Question Nice Question Nice Answer Yearling Famous Question Necromancer Good Answer Guru Announcer Yearling Great Answer Good Question Famous Question Census Nice Answer Enlightened Famous Question Yearling,NULL,NULL,0,NULL,NULL 50713,5993,145435,Nice Question Nice Question Popular Question Popular Question Good Question Famous Question Announcer Yearling Good Question Famous Question Notable Question Popular Question Popular Question Yearling Stellar Question Benefactor Popular Question Popular Question Great Question Popular Question Custodian Notable Question Favorite Question Popular Question Great Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 50714,17759,720391,Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Caucus Excavator Yearling Custodian Announcer Informed Peer Pressure Nice Answer Enlightened Caucus Announcer c Announcer Caucus Yearling go,NULL,NULL,0,NULL,NULL 50715,631691,870957,NULL,NULL,NULL,0,NULL,NULL 50716,287442,1153153,NULL,NULL,NULL,0,NULL,NULL 50717,885919,935207,NULL,NULL,NULL,0,NULL,NULL 50718,185782,44295,Explainer,NULL,NULL,0,NULL,NULL 50719,10432,1017621,NULL,NULL,NULL,0,NULL,NULL 50720,1520769,1209172,NULL,NULL,NULL,0,NULL,NULL 50721,567556,1131037,Popular Question,NULL,NULL,0,NULL,NULL 50722,2794959,1286809,NULL,NULL,NULL,0,NULL,NULL 50723,249841,888498,Nice Question Famous Question Yearling Necromancer Custodian Nice Answer Good Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 50724,64885,214302,Nice Answer Enlightened Necromancer Yearling Necromancer Good Answer Great Question Stellar Question Yearling Good Question Nice Answer Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 50725,194091,719062,NULL,NULL,NULL,0,NULL,NULL 50726,583718,1277685,Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50727,456256,27925,Yearling Civic Duty Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 50728,205659,1279397,NULL,NULL,NULL,0,NULL,NULL 50729,561734,970736,Popular Question Yearling Custodian Good Answer Documentation User Self-Learner,NULL,NULL,0,NULL,NULL 50730,237027,567352,NULL,NULL,NULL,0,NULL,NULL 50731,30044,177273,Great Answer Yearling Caucus Constituent Good Question Revival Yearling Documentation User Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 50732,355464,207453,Nice Answer,NULL,NULL,0,NULL,NULL 50733,1169022,455248,Revival,NULL,NULL,0,NULL,NULL 50734,617901,589251,NULL,NULL,NULL,0,NULL,NULL 50735,1119117,679641,Supporter,NULL,NULL,0,NULL,NULL 50736,2749329,1123534,NULL,NULL,NULL,0,NULL,NULL 50737,274840,221727,NULL,NULL,NULL,0,NULL,NULL 50738,209640,701512,Commentator Informed,NULL,NULL,0,NULL,NULL 50739,127976,485388,Popular Question Yearling Yearling Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 50740,68376,388028,NULL,NULL,NULL,0,NULL,NULL 50741,46134,1123508,Popular Question,NULL,NULL,0,NULL,NULL 50742,44705,202780,NULL,NULL,NULL,0,NULL,NULL 50743,305375,521669,NULL,NULL,NULL,0,NULL,NULL 50744,195505,68722,Yearling Popular Question Notable Question Revival Necromancer Popular Question Nice Answer Good Answer Custodian Yearling Nice Answer Notable Question Guru Good Answer Notable Question Popular Question Popular Question Inquisitive Yearling Revival Great Answer Popular Question,NULL,NULL,0,NULL,NULL 50745,20774,689232,NULL,NULL,NULL,0,NULL,NULL 50746,25878,111288,Good Answer Good Question Notable Question Yearling Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 50747,71086,765466,Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 50748,3084955,696239,Self-Learner Notable Question Good Answer Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 50749,127054,696239,Self-Learner Notable Question Good Answer Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 50750,343493,365333,Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50751,147813,12651,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 50752,1566999,832891,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Great Question Reviewer Reviewer Yearling Reviewer Explainer Popular Question Popular Question Popular Question Famous Question Caucus Constituent Famous Question Famous Question Nice Question Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Nice Question Nice Question Caucus Revival Famous Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 50753,184953,402443,Yearling Great Answer Nice Answer Enlightened Yearling Caucus Census Yearling,NULL,NULL,0,NULL,NULL 50754,158398,218834,NULL,NULL,NULL,0,NULL,NULL 50755,96066,602377,Announcer Yearling Necromancer Nice Answer Notable Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 50756,160886,481817,Critic Notable Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 50757,32716,673840,Supporter Nice Answer Enlightened Yearling Good Answer Editor Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 50758,39430,1086414,NULL,NULL,NULL,0,NULL,NULL 50759,262135,524710,NULL,NULL,NULL,0,NULL,NULL 50760,100113,271585,Yearling Popular Question Nice Answer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 50761,163519,256877,Yearling Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 50762,1532481,1149696,NULL,NULL,NULL,0,NULL,NULL 50763,1178,1244727,Popular Question Popular Question Critic Caucus Constituent Census Caucus Notable Question,NULL,NULL,0,NULL,NULL 50764,48444,1050904,NULL,NULL,NULL,0,NULL,NULL 50765,141540,805227,Enthusiast Yearling Explainer Announcer Yearling Necromancer Census Yearling,NULL,NULL,0,NULL,NULL 50766,222231,255875,Yearling Popular Question Notable Question Yearling Good Question Famous Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 50767,5739,192993,Great Question Popular Question Nice Answer Notable Question Popular Question Yearling Popular Question Favorite Question Announcer Notable Question Popular Question Nice Answer Caucus Custodian Custodian Popular Question Popular Question Nice Answer Popular Question Yearling Popular Question Great Question Necromancer Nice Answer Good Answer Necromancer Popular Question Nice Answer Popular Question Nice Answer Nice Question Popular Question Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 50768,384236,390381,Yearling,NULL,NULL,0,NULL,NULL 50769,55764,1333436,Nice Answer Enlightened Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 50770,1438957,702474,NULL,NULL,NULL,0,NULL,NULL 50771,422550,848166,Teacher,NULL,NULL,0,NULL,NULL 50772,1634,53468,Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Caucus Popular Question Yearling Announcer Notable Question Notable Question Popular Question Famous Question Notable Question Nice Question Famous Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 50773,204284,1065448,Notable Question Notable Question Yearling Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50774,1604634,167192,NULL,NULL,NULL,0,NULL,NULL 50775,10420,167192,NULL,NULL,NULL,0,NULL,NULL 50776,3030413,484299,NULL,NULL,NULL,0,NULL,NULL 50777,265438,651394,Enthusiast Yearling Popular Question Popular Question Nice Question Yearling Popular Question Nice Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,socat tunnel IP through TTY linux serial port ip tunnel socat pIs it possible to get an bidirectional IP tunnel over ttyS0 like serial modem devices with the strongsocat strong utility tried to use TUN option but still can get the result ppAny suggestions are welcome pp emUpdate em ppPC1 ppre codesocat dev ttyUSB0 raw echo b57600 clocal TUN 192 168 24 up code prepPC2 ppre codesocat dev ttyUSB0 raw echo b57600 clocal TUN 192 168 24 up code prepAfter that have seen tun0 interfaces with proper addresses on both ends but can ping one from other Instead of that when send data with codeping 192 168 code remote codesocat code process exits and it tun0 device destroyed Any suggestions pp emUpdate2 em ppThere is framing problem when we try to make TCP IP tunnel over serial with only socat Gerhard Rieger the socat developer says me that pblockquote pI am afraid that you are right tun over datagram socket works and by luck also over pipes But over the serial line the packet boundaries may vanish and this is fatal when sending the data out on the tun interface pI cannot offer socat based solution now sorry However will try to integrate some framing in later version release blockquote yeah but pppd solves different problem,0,NULL,NULL 50778,32998,972985,Yearling Custodian Good Answer Popular Question Proofreader Populist Good Answer Caucus Yearling Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 50779,891111,1268891,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50780,7903974,1112276,NULL,NULL,NULL,0,NULL,NULL 50781,159684,437802,NULL,NULL,NULL,0,NULL,NULL 50782,1119864,952498,Revival Famous Question Revival Necromancer Necromancer Announcer Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 50783,1521874,1353223,Nice Answer Yearling Nice Answer Enlightened Nice Answer Caucus Nice Answer Enlightened Good Answer Yearling Good Answer Caucus Documentation User Nice Answer Census Custodian Yearling Guru Nice Answer Enlightened ruby-on-rails Nice Answer,NULL,NULL,0,NULL,NULL 50784,78610,367292,Nice Question Great Answer Favorite Question Yearling Excavator Nice Question Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 50785,296583,1255096,Informed Autobiographer,NULL,NULL,0,NULL,NULL 50786,821539,992653,Popular Question Good Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50787,235181,1085293,NULL,NULL,NULL,0,NULL,NULL 50788,2904316,839057,NULL,NULL,NULL,0,NULL,NULL 50789,277729,590100,Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50790,360216,1188481,Revival Tumbleweed,NULL,NULL,0,NULL,NULL 50791,563005,567430,NULL,NULL,NULL,0,NULL,NULL 50792,239747,937851,Necromancer Informed Critic Caucus Yearling,NULL,NULL,1,NULL,Unicode string with diacritics split by chars javascript string unicode split char pI have this Unicode string codeАаа́Ббб́Ввв́Г㥴Дд code ppAnd want to it split by chars Right now if try to loop truth all chars get something like this br codeA code ppIs there way to properly split this string to chars codeА а́ code pA little update on this ppAs ES6 came by there are new string methods and ways of dealing with strings There are solutions for two problems present in this ph11 Emoji and surrogate pairs h1pEmoji and other Unicode characters that fall above the Basic Multilingual Plane BMP Unicode code points in the range code0x0000 0xFFFF code can be worked out as the strings in ES6 href https developer mozilla org en US docs Web JavaScript Reference Global Objects String rel nofollow adhere to the iterator protocol so you can do like this ppre codelet textWithEmoji ud83d udc0e ud83d udc71 u2764 horse happy face and heart textWithEmoji length 3for char of textWithEmoji console log char will log chars code preh12 Diacritics h1pA harder problem to solve as you start to work with grapheme clusters character and it diacritics In ES6 there is method that simplify working with this but it still hard to work The href https developer mozilla org en US docs Web JavaScript Reference Global Objects String normalize rel nofollow codeString prototype normalize code method eases the work but as href https mathiasbynens be notes javascript unicode accounting for other combining marks rel nofollow Mathias Bynens puts pblockquote code points with multiple combining marks applied to them always result in single visual glyph but may not have normalized form in which case normalization doesn’t help blockquotepMore insight can be found here pp href https ponyfoo com articles es6 strings and unicode in depth rel nofollow https ponyfoo com articles es6 strings and unicode in depth aa href https mathiasbynens be notes javascript unicode rel nofollow https mathiasbynens be notes javascript unicode 50793,110065,1238524,NULL,NULL,NULL,0,NULL,NULL 50794,354317,1133621,Editor Caucus Yearling,NULL,NULL,0,NULL,NULL 50795,1171942,1480130,Curious Notable Question Commentator,NULL,NULL,0,NULL,NULL 50796,17995,866687,NULL,NULL,NULL,0,NULL,NULL 50797,9376422,1397206,NULL,NULL,NULL,0,NULL,NULL 50798,1555235,817336,NULL,NULL,NULL,0,NULL,NULL 50799,50828,308606,Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 50800,85256,1486437,NULL,NULL,NULL,0,NULL,NULL 50801,178508,716231,NULL,NULL,NULL,0,NULL,NULL 50802,354135,909859,Yearling,NULL,NULL,0,NULL,NULL 50803,208356,320791,Yearling Popular Question Notable Question Custodian Organizer Proofreader Custodian Necromancer Caucus Custodian Custodian Custodian Informed Reviewer Yearling Caucus Constituent Announcer Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 50804,77239,792093,NULL,NULL,NULL,0,NULL,NULL 50805,47026,792093,NULL,NULL,NULL,0,NULL,NULL 50806,69669,1064068,NULL,NULL,NULL,0,NULL,NULL 50807,430610,1238127,Curious Famous Question Nice Question,NULL,NULL,0,NULL,NULL 50808,1861368,471036,Census,NULL,NULL,0,NULL,NULL 50809,221216,1269855,NULL,NULL,NULL,0,NULL,NULL 50810,27816,940810,NULL,NULL,NULL,0,NULL,NULL 50811,17262,1325155,Notable Question Revival Revival Yearling Revival Caucus Constituent Good Question Explainer Custodian Custodian Caucus Constituent Yearling Custodian Popular Question Custodian Electorate Caucus Constituent Nice Answer Enlightened Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 50812,11168,1201549,NULL,NULL,NULL,0,NULL,NULL 50813,893211,1422608,Yearling Nice Question Critic Popular Question Curious Informed Yearling Nice Answer Enlightened Self-Learner Notable Question Good Question Caucus Constituent Promoter Benefactor Nice Answer Census Yearling Caucus Constituent Yearling Good Answer Documentation User Custodian Citizen Patrol Custodian Census Popular Question Caucus Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 50814,7452414,1422608,Yearling Nice Question Critic Popular Question Curious Informed Yearling Nice Answer Enlightened Self-Learner Notable Question Good Question Caucus Constituent Promoter Benefactor Nice Answer Census Yearling Caucus Constituent Yearling Good Answer Documentation User Custodian Citizen Patrol Custodian Census Popular Question Caucus Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 50815,420597,1078531,Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50816,492848,1078531,Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50817,78792,110570,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 50818,218460,1031587,Yearling Great Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 50819,31014,21239,Famous Question Nice Answer Nice Answer Famous Question Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Custodian Nice Answer Good Answer Yearling Notable Question unit-testing castle Necromancer c# Notable Question Good Answer Notable Question Nice Answer Enlightened Nice Answer Announcer Nice Question Nice Answer Enlightened Famous Question Nice Question Nice Question Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Guru Good Answer Revival Nice Answer Great Question Nice Answer Nice Answer Popular Question Announcer Nice Answer Nice Answer Nice Answer Enlightened Favorite Question Yearling Guru Populist,NULL,NULL,0,NULL,NULL 50820,461387,1011432,Yearling Necromancer Revival Critic Nice Answer,NULL,NULL,0,NULL,NULL 50821,165016,1189857,NULL,NULL,NULL,0,NULL,NULL 50822,1336674,1240300,NULL,NULL,NULL,0,NULL,NULL 50823,39404,1368848,NULL,NULL,NULL,0,NULL,NULL 50824,266089,252736,Yearling Custodian Nice Question Proofreader Custodian Reviewer Notable Question Nice Answer Caucus Guru Yearling Explainer Good Answer Caucus Constituent Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 50825,8738,621201,Yearling Custodian Yearling Explainer Revival Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 50826,47258,944209,NULL,NULL,NULL,0,NULL,NULL 50827,149219,386944,Announcer,NULL,NULL,0,NULL,NULL 50828,52575,843354,NULL,NULL,NULL,0,NULL,NULL 50829,2740,528483,Excavator Popular Question Good Answer Commentator,NULL,NULL,0,NULL,NULL 50830,1561948,1226351,NULL,NULL,NULL,0,NULL,NULL 50831,5156,615095,Tumbleweed Student Commentator Critic Editor,NULL,NULL,0,NULL,NULL 50832,881219,972002,NULL,NULL,NULL,0,NULL,NULL 50833,1274570,1301839,NULL,NULL,NULL,0,NULL,NULL 50834,518667,1248648,Student,NULL,NULL,0,NULL,NULL 50835,17158,841339,Yearling Student Custodian Custodian Custodian Unsung Hero Reviewer Custodian Necromancer Caucus python Announcer Yearling Nice Answer Enlightened Caucus Civic Duty Good Answer Popular Question Yearling Nice Answer Notable Question Custodian Guru Proofreader Nice Answer Enlightened,NULL,pYou must declare codematplotlib use agg code before codeimport pylab as plt code pp href https stackoverflow com 4706614 841339 Reference Take look at this comment https github com matplotlib matplotlib issues 3466 issuecomment 195899517 pYou must declare codematplotlib use agg code before codeimport pylab as plt code pp href https stackoverflow com 4706614 841339 Reference have you tested cannot test it now pYou must declare codematplotlib use agg code before codeimport pylab as plt code pp href https stackoverflow com 4706614 841339 Reference Tks ve tested here and works,1,NULL,RuntimeError Invalid DISPLAY variable python linux matplotlib pI am running my python script in another machine by using codessh code command in codelinux code have also run this command ppre codesource bashrc code prepafter logging in the other machine in order to define the proper paths in the new machine was getting the error message for running the following python code lines even have tried to follow the instruction in href https stackoverflow com questions 21321292 using matplotlib when display is undefined this question by defining the backend ppre code gt gt gt import matplotlib gt gt gt import pylab as plt gt gt gt matplotlib use Agg gt gt gt import numpy as np gt gt gt np arange 001 gt gt gt np sin np cos gt gt gt fig plt figure gt gt gt plt plot code prepThe error message ppre codeThis probably means that Tcl wasn installed properly Traceback most recent call last File Systematic Optimised py line 513 in lt module gt fig plt figure File vol anaconda lib python2 site packages matplotlib pyplot py line 435 in figure kwargs File vol anaconda lib python2 site packages matplotlib backends backend qt4agg py line 47 in new figure manager return new figure manager given figure num thisFig File vol anaconda lib python2 site packages matplotlib backends backend qt4agg py line 54 in new figure manager given figure canvas FigureCanvasQTAgg figure File vol anaconda lib python2 site packages matplotlib backends backend qt4agg py line 72 in init FigureCanvasQT init self figure File vol aibn84 data2 zahra anaconda lib python2 site packages matplotlib backends backend qt4 py line 68 in init create qApp File vol anaconda lib python2 site packages matplotlib backends backend qt5 py line 138 in create qApp raise RuntimeError Invalid DISPLAY variable RuntimeError Invalid DISPLAY variable code prepany suggestion how to fix the problem pYou must declare codematplotlib use agg code before codeimport pylab as plt code pp href https stackoverflow com 4706614 841339 Reference 50836,59671,214446,Strunk & White Necromancer Revival Tag Editor Proofreader Notable Question html Popular Question Nice Answer Notable Question Necromancer Necromancer Nice Answer Nice Answer pandoc Popular Question Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened markdown Good Answer Notable Question Notable Question Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Question Announcer Necromancer Revival javascript Necromancer Nice Answer Enlightened Documentation User Nice Question Yearling Revival css Announcer Good Answer Necromancer Good Answer Necromancer Announcer Popular Question Good Answer Nice Answer Enlightened Popular Question Necromancer Yearling Self-Learner Nice Answer Nice Question Good Answer Good Question Popular Question,NULL,Query string encoding of Javascript Object javascript query string urlencode pDo you know fast and simple way to encode Javascript Object into codestring code that can pass via codeGET code Request ppNo codejQuery code no other frameworks just plain Javascript most browsers support URLSearchParams now,0,NULL,NULL 50837,113525,189200,NULL,NULL,NULL,0,NULL,NULL 50838,127798,673957,NULL,NULL,NULL,0,NULL,NULL 50839,165251,296791,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 50840,2753729,584387,Enthusiast Commentator Popular Question Civic Duty Documentation User,NULL,NULL,0,NULL,NULL 50841,412825,1562589,NULL,NULL,NULL,0,NULL,NULL 50842,1147444,1055181,Revival,NULL,NULL,0,NULL,NULL 50843,30487,53720,Yearling Good Answer Necromancer Caucus Constituent Yearling Great Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 50844,654905,1021208,NULL,NULL,NULL,0,NULL,NULL 50845,1725807,626227,NULL,NULL,NULL,0,NULL,NULL 50846,175623,970774,NULL,NULL,NULL,0,NULL,NULL 50847,1080009,691220,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50848,2658235,691220,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50849,169693,1485668,Informed,NULL,NULL,0,NULL,NULL 50850,17090,727876,Yearling,NULL,NULL,0,NULL,NULL 50851,134804,456194,NULL,NULL,NULL,0,NULL,NULL 50852,184628,374653,Popular Question Commentator Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 50853,920621,859305,NULL,NULL,NULL,0,NULL,NULL 50854,5407555,859305,NULL,NULL,NULL,0,NULL,NULL 50855,447739,923226,NULL,NULL,NULL,0,NULL,NULL 50856,1201014,923226,NULL,NULL,NULL,0,NULL,NULL 50857,256835,446389,NULL,NULL,NULL,0,NULL,NULL 50858,7662581,1278938,Popular Question Critic Revival Yearling Caucus Constituent Nice Answer Enlightened Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 50859,161625,1426043,NULL,NULL,NULL,0,NULL,NULL 50860,363591,746786,NULL,NULL,NULL,0,NULL,NULL 50861,70862,363660,Nice Answer,NULL,NULL,0,NULL,NULL 50862,206623,249810,Yearling Guru Yearling Popular Question Yearling Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50863,677669,1357886,NULL,NULL,NULL,0,NULL,NULL 50864,232420,90235,Guru Good Answer Yearling Nice Question Commentator Yearling,NULL,NULL,0,NULL,NULL 50865,28539,337883,NULL,NULL,NULL,0,NULL,NULL 50866,72463,829859,NULL,NULL,NULL,0,NULL,NULL 50867,187507,739192,NULL,NULL,NULL,0,NULL,NULL 50868,14238,710775,NULL,NULL,NULL,0,NULL,NULL 50869,35638,446872,NULL,NULL,NULL,0,NULL,NULL 50870,3770830,602787,NULL,NULL,NULL,0,NULL,NULL 50871,274552,386013,NULL,NULL,NULL,0,NULL,NULL 50872,99344,642337,Yearling Notable Question Nice Question Necromancer Necromancer Yearling Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 50873,1492071,682738,NULL,NULL,NULL,0,NULL,NULL 50874,274346,442427,Necromancer Informed Nice Answer Custodian Yearling Caucus Census Necromancer Yearling Caucus Constituent Documentation User Nice Answer Census Necromancer Yearling Student Revival Necromancer Scholar Good Answer Revival Nice Answer Yearling Autobiographer Necromancer Custodian Yearling,NULL,,0,, 50875,208158,1405844,NULL,NULL,NULL,0,NULL,NULL 50876,22230,404538,Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 50877,200859,607209,NULL,NULL,NULL,0,NULL,NULL 50878,212424,1002242,NULL,NULL,NULL,0,NULL,NULL 50879,747208,1046215,NULL,NULL,NULL,0,NULL,NULL 50880,62974,75307,Necromancer,NULL,NULL,0,NULL,NULL 50881,278990,695417,NULL,NULL,NULL,0,NULL,NULL 50882,417818,753348,NULL,NULL,NULL,0,NULL,NULL 50883,883084,123613,NULL,NULL,NULL,0,NULL,NULL 50884,312266,191733,Nice Question Popular Question Famous Question Famous Question Tumbleweed Nice Question Yearling,NULL,NULL,0,NULL,NULL 50885,355739,4226,Notable Question,NULL,NULL,0,NULL,NULL 50886,326919,468653,Popular Question Nice Question Good Question Yearling Popular Question Popular Question Nice Question Yearling Good Question Notable Question Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 50887,1432944,370296,Famous Question Popular Question Famous Question Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Yearling Famous Question Notable Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 50888,47325,807529,NULL,NULL,NULL,0,NULL,NULL 50889,128560,205813,Good Answer Yearling,NULL,NULL,0,NULL,NULL 50890,8916,893418,Popular Question,NULL,NULL,0,NULL,NULL 50891,333008,1105452,NULL,NULL,NULL,0,NULL,NULL 50892,265947,549240,Nice Question Yearling Popular Question Yearling Popular Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 50893,935433,476848,Yearling Popular Question Good Answer Nice Question Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 50894,274590,767572,NULL,NULL,NULL,0,NULL,NULL 50895,1024060,767572,NULL,NULL,NULL,0,NULL,NULL 50896,42439,921538,Nice Question Famous Question Notable Question Famous Question Popular Question Yearling Nice Question Good Question Famous Question Popular Question Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50897,116345,190432,Enthusiast Student Nice Question Good Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 50898,936202,190432,Enthusiast Student Nice Question Good Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 50899,31955,1072966,NULL,NULL,NULL,0,NULL,NULL 50900,929453,591081,NULL,NULL,NULL,0,NULL,NULL 50901,180174,389390,Yearling Good Answer Yearling Organizer,NULL,NULL,0,NULL,NULL 50902,515665,1317504,NULL,NULL,NULL,0,NULL,NULL 50903,1806338,1227192,NULL,NULL,NULL,0,NULL,NULL 50904,511043,1227192,NULL,NULL,NULL,0,NULL,NULL 50905,477874,1471591,NULL,NULL,NULL,0,NULL,NULL 50906,1118943,436513,NULL,NULL,NULL,0,NULL,NULL 50907,707116,1087837,Supporter Teacher Revival,NULL,NULL,0,NULL,NULL 50908,9974,569591,Popular Question Excavator,NULL,NULL,0,NULL,NULL 50909,148044,181765,Nice Answer Enlightened Guru Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Announcer Guru Nice Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Caucus Great Answer Great Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Great Answer Nice Answer Great Answer Yearling Good Answer Guru Nice Answer Enlightened Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Yearling c++,NULL,NULL,0,NULL,NULL 50910,86187,155351,Notable Question Nice Question Yearling Notable Question Great Answer Nice Answer Yearling Great Answer Yearling,NULL,pLet say you have class codePerson code ppre codeclass Personendperson Person newperson name gt no method error code prepObviously we never defined method codename code Let do that ppre codeclass Person def name simply returning an instance variable endendperson Person newperson name gt nilperson name Dennis gt no method error code prepAha we can read the name but that doesn mean we can assign the name Those are two different methods The former is called emreader em and latter is called emwriter em We didn create the writer yet so let do that ppre codeclass Person def name end def name str str endendperson Person newperson name Dennis person name gt Dennis code prepAwesome Now we can write and read instance variable code code using reader and writer methods Except this is done so frequently why waste time writing these methods every time We can do it easier ppre codeclass Person attr reader name attr writer nameend code prepEven this can get repetitive When you want both reader and writer just use accessor ppre codeclass Person attr accessor nameendperson Person newperson name Dennis person name gt Dennis code prepWorks the same way And guess what the instance variable code code in our person object will be set just like when we did it manually so you can use it in other methods ppre codeclass Person attr accessor name def greeting Hello endendperson Person newperson name Dennis person greeting gt Hello Dennis code prepThat it In order to understand how codeattr reader code codeattr writer code and codeattr accessor code methods actually generate methods for you read other answers books ruby docs When you are using you are referring to your object internal instance variable directly When you are using name you are calling method by that name This method can do any number of things and it doesn have to specifically return the variable pLet say you have class codePerson code ppre codeclass Personendperson Person newperson name gt no method error code prepObviously we never defined method codename code Let do that ppre codeclass Person def name simply returning an instance variable endendperson Person newperson name gt nilperson name Dennis gt no method error code prepAha we can read the name but that doesn mean we can assign the name Those are two different methods The former is called emreader em and latter is called emwriter em We didn create the writer yet so let do that ppre codeclass Person def name end def name str str endendperson Person newperson name Dennis person name gt Dennis code prepAwesome Now we can write and read instance variable code code using reader and writer methods Except this is done so frequently why waste time writing these methods every time We can do it easier ppre codeclass Person attr reader name attr writer nameend code prepEven this can get repetitive When you want both reader and writer just use accessor ppre codeclass Person attr accessor nameendperson Person newperson name Dennis person name gt Dennis code prepWorks the same way And guess what the instance variable code code in our person object will be set just like when we did it manually so you can use it in other methods ppre codeclass Person attr accessor name def greeting Hello endendperson Person newperson name Dennis person greeting gt Hello Dennis code prepThat it In order to understand how codeattr reader code codeattr writer code and codeattr accessor code methods actually generate methods for you read other answers books ruby docs Your classes can define constructors def initialize which take parameters and assign those parameters to internal instance variables person Person new Codemilan and then person name Codemilan In this scenario you aren actually using the name writer method pLet say you have class codePerson code ppre codeclass Personendperson Person newperson name gt no method error code prepObviously we never defined method codename code Let do that ppre codeclass Person def name simply returning an instance variable endendperson Person newperson name gt nilperson name Dennis gt no method error code prepAha we can read the name but that doesn mean we can assign the name Those are two different methods The former is called emreader em and latter is called emwriter em We didn create the writer yet so let do that ppre codeclass Person def name end def name str str endendperson Person newperson name Dennis person name gt Dennis code prepAwesome Now we can write and read instance variable code code using reader and writer methods Except this is done so frequently why waste time writing these methods every time We can do it easier ppre codeclass Person attr reader name attr writer nameend code prepEven this can get repetitive When you want both reader and writer just use accessor ppre codeclass Person attr accessor nameendperson Person newperson name Dennis person name gt Dennis code prepWorks the same way And guess what the instance variable code code in our person object will be set just like when we did it manually so you can use it in other methods ppre codeclass Person attr accessor name def greeting Hello endendperson Person newperson name Dennis person greeting gt Hello Dennis code prepThat it In order to understand how codeattr reader code codeattr writer code and codeattr accessor code methods actually generate methods for you read other answers books ruby docs thank you for that comment you made my day,0,NULL,NULL 50911,308872,152619,Favorite Question Notable Question Yearling Yearling Notable Question Yearling Good Answer Nice Question,NULL,NULL,0,NULL,NULL 50912,561442,679252,NULL,NULL,NULL,0,NULL,NULL 50913,755473,1180277,NULL,NULL,NULL,0,NULL,NULL 50914,3433,623990,Popular Question Notable Question Popular Question Yearling Nice Question Famous Question Good Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Famous Question Popular Question Nice Question Good Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Socratic Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Favorite Question Nice Question Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Favorite Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 50915,1966938,1035328,Critic Popular Question Yearling Necromancer Caucus Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50916,320110,1035328,Critic Popular Question Yearling Necromancer Caucus Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 50917,46942,409130,NULL,NULL,NULL,0,NULL,NULL 50918,1006,604418,Yearling Necromancer,NULL,NULL,0,NULL,NULL 50919,11672,978986,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 50920,302662,629658,NULL,NULL,NULL,0,NULL,NULL 50921,100256,173351,Notable Question Yearling Necromancer Popular Question Custodian Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 50922,15696,16034,Nice Question Famous Question Peer Pressure Popular Question Good Question Yearling Nice Answer Good Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 50923,78913,1345505,NULL,NULL,NULL,0,NULL,NULL 50924,27266,964356,Announcer Census,NULL,NULL,0,NULL,NULL 50925,493391,196361,Revival Necromancer Yearling Nice Question Revival Nice Question Yearling,NULL,NULL,0,NULL,NULL 50926,30067,107611,Notable Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 50927,615580,809823,NULL,NULL,NULL,0,NULL,NULL 50928,7000,1017259,Supporter,NULL,NULL,0,NULL,NULL 50929,10488,88881,Popular Question Yearling,NULL,NULL,0,NULL,NULL 50930,100245,397280,Yearling Yearling,NULL,NULL,0,NULL,NULL 50931,234601,397280,Yearling Yearling,NULL,NULL,0,NULL,NULL 50932,55205,1397506,Revival,NULL,NULL,0,NULL,NULL 50933,36985,6444,Nice Answer Nice Answer Enlightened Revival Famous Question Nice Answer Nice Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Necromancer swift Great Answer Good Answer Yearling Revival Necromancer Good Answer Famous Question Necromancer Great Answer Guru Necromancer Yearling Famous Question Good Answer Revival Good Question Announcer Good Question Nice Answer Guru Populist Necromancer Necromancer Necromancer Good Answer Nice Answer Nice Answer Custodian Yearling Necromancer Nice Answer Good Answer,NULL,code locationManager didChangeAuthorizationStatus code is called shortly after the codeCLLocationManager code is initialised ppYou can request authorization inside the delegate method if you want ppre codefunc locationManager manager CLLocationManager didChangeAuthorizationStatus status CLAuthorizationStatus switch status case NotDetermined locationManager requestAlwaysAuthorization break case AuthorizedWhenInUse locationManager startUpdatingLocation break case AuthorizedAlways locationManager startUpdatingLocation break case Restricted restricted by parental controls User can enable Location Services break case Denied user denied your app access to Location Services but can grant access from Settings app break default break code prepBe aware that you need to assign the delegate in timely matter if you want this to work ppIf you would somehow delay the delegate assignment by setting it asynchronously you might miss the initial call to code locationManager didChangeAuthorizationStatus code This seems like bug to me hardly describe this as didChange of the authorization status Writing code that reacts to actual changes in authorization status is compromised by this behavior,1,NULL,Removing duplicate elements from an array in Swift arrays swift standard library pI might have an array that looks like the following pp pre code b2 b2 b6 24 b15 60 b15 b6 pre code ppOr really any sequence of like typed portions of data What want to do is ensure that there is only one of each identical element For example the above array would become pp pre code b2 b6 24 b15 60 pre code ppNotice that the duplicates of and 15 were removed to ensure that there was only one of each identical element Does Swift provide way to do this easily or will have to do it myself pSwift ppre codepublic extension Array where Element Hashable func uniqued gt Element var seen Set lt Element gt return filter seen insert inserted code prehrpevery attempt to codeinsert code will also return tuple code inserted Bool memberAfterInsert Set Element code See href https developer apple com documentation swift set 1541375 insert rel noreferrer documentation ppUsing the returned value helps us to avoid looping or doing any other operation 50934,136133,43349,NULL,NULL,NULL,0,NULL,NULL 50935,306530,467251,NULL,NULL,NULL,0,NULL,NULL 50936,272878,691746,NULL,NULL,NULL,0,NULL,NULL 50937,87097,772270,NULL,NULL,NULL,0,NULL,NULL 50938,261936,632042,NULL,NULL,NULL,0,NULL,NULL 50939,424128,245731,NULL,NULL,NULL,0,NULL,NULL 50940,84586,928031,Autobiographer Excavator Caucus Commentator,NULL,NULL,0,NULL,NULL 50941,3603711,213000,Yearling Popular Question Notable Question Self-Learner Yearling Good Question,NULL,NULL,0,NULL,NULL 50942,28777,413559,Nice Answer cocoa-touch Necromancer Good Question Necromancer Yearling Great Answer Favorite Question Yearling Revival Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 50943,22936,962781,Notable Question,NULL,NULL,0,NULL,NULL 50944,54082,329850,NULL,NULL,NULL,0,NULL,NULL 50945,435399,275984,Yearling Custodian Excavator Necromancer Popular Question Caucus Documentation User Caucus Popular Question,NULL,pMine is basically directory called plugins which the main app can poll and then use href https docs python org library imp html imp load module rel noreferrer imp load module to pick up files look for well known entry point possibly with module level config params and go from there use file monitoring stuff for certain amount of dynamism in which plugins are active but that nice to have ppOf course any requirement that comes along saying don need big complicated thing just want something lightweight runs the risk of re implementing one discovered requirement at time But that not to say you can have some fun doing it anyway The imp module is being deprecated in favor of importlib starting from python,0,NULL,NULL 50946,108698,1029521,Notable Question Popular Question Necromancer Custodian Nice Answer Yearling Census Popular Question Popular Question ruby-on-rails Nice Question Good Answer Notable Question Documentation User Popular Question Yearling Census Custodian Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 50947,271758,350664,Editor Supporter Commentator Teacher Yearling Yearling Necromancer Caucus Nice Answer Yearling Good Answer Yearling Caucus Custodian Critic Yearling Census Good Question Enthusiast Yearling Fanatic Yearling,NULL,NULL,0,NULL,NULL 50948,8932557,1347266,NULL,NULL,NULL,0,NULL,NULL 50949,1136453,1347266,NULL,NULL,NULL,0,NULL,NULL 50950,1649618,1214810,NULL,NULL,NULL,0,NULL,NULL 50951,1247242,1499133,Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50952,87587,18265,Nice Answer Favorite Question Notable Question Yearling Good Answer Notable Question Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 50953,4440002,1116667,Necromancer Informed Caucus Constituent Civic Duty Scholar Caucus Constituent,NULL,NULL,0,NULL,NULL 50954,895999,1116667,Necromancer Informed Caucus Constituent Civic Duty Scholar Caucus Constituent,NULL,NULL,0,NULL,NULL 50955,1238735,581347,NULL,NULL,NULL,0,NULL,NULL 50956,144590,515593,Necromancer,NULL,NULL,0,NULL,NULL 50957,596884,1497276,Informed Autobiographer Student Custodian,NULL,NULL,0,NULL,NULL 50958,9880,1543071,NULL,NULL,NULL,0,NULL,NULL 50959,53156,779483,Revival Commentator,NULL,NULL,0,NULL,NULL 50960,1226634,1050818,Nice Answer Nice Answer Yearling Nice Answer Caucus Yearling Good Answer Announcer Necromancer Necromancer Necromancer Yearling Nice Answer Citizen Patrol Good Answer Yearling,NULL,NULL,0,NULL,NULL 50961,105158,141288,NULL,NULL,NULL,0,NULL,NULL 50962,725774,733462,Curious Commentator,NULL,NULL,0,NULL,NULL 50963,165098,931794,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50964,9375,375683,NULL,NULL,NULL,0,NULL,NULL 50965,467457,872715,NULL,NULL,NULL,0,NULL,NULL 50966,778553,872715,NULL,NULL,NULL,0,NULL,NULL 50967,209010,667143,NULL,NULL,NULL,0,NULL,NULL 50968,198078,1429474,NULL,NULL,NULL,0,NULL,NULL 50969,463089,784001,NULL,NULL,NULL,0,NULL,NULL 50970,37060,1086127,Excavator Necromancer Custodian Nice Answer Necromancer Popular Question Nice Answer Enlightened Nice Answer Notable Question Explainer Yearling Good Answer Notable Question Nice Answer Nice Question Nice Question Tumbleweed Good Answer Good Answer Notable Question Yearling Populist Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 50971,1783100,953059,NULL,NULL,NULL,0,NULL,NULL 50972,456105,293087,Yearling Nice Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 50973,1093804,723771,NULL,NULL,NULL,0,NULL,NULL 50974,60055,53589,Enthusiast Popular Question Nice Question,NULL,NULL,0,NULL,NULL 50975,23697,537458,NULL,NULL,NULL,0,NULL,NULL 50976,346031,754143,NULL,NULL,NULL,0,NULL,NULL 50977,518370,466238,NULL,NULL,NULL,0,NULL,NULL 50978,1110923,313923,Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 50979,336743,1000784,NULL,NULL,NULL,0,NULL,NULL 50980,9526450,1000784,NULL,NULL,NULL,0,NULL,NULL 50981,74267,1142754,Good Answer Yearling Yearling Revival Revival Yearling Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 50982,5136870,1003934,NULL,NULL,NULL,0,NULL,NULL 50983,3292279,1201550,Supporter,NULL,NULL,0,NULL,NULL 50984,139565,1201550,Supporter,NULL,NULL,0,NULL,NULL 50985,3403,79386,NULL,NULL,NULL,0,NULL,NULL 50986,146761,530608,NULL,NULL,NULL,0,NULL,NULL 50987,606891,1398965,NULL,NULL,NULL,0,NULL,NULL 50988,352939,367021,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 50989,512367,430427,NULL,NULL,NULL,0,NULL,NULL 50990,113418,756781,NULL,NULL,NULL,0,NULL,NULL 50991,162008,381976,NULL,NULL,NULL,0,NULL,NULL 50992,131857,1047562,NULL,NULL,NULL,0,NULL,NULL 50993,487419,1182599,NULL,NULL,NULL,0,NULL,NULL 50994,6973,36610,Popular Question,NULL,NULL,0,NULL,NULL 50995,331968,1094819,NULL,NULL,NULL,0,NULL,NULL 50996,1640,1169416,Critic Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 50997,299591,58332,Necromancer Yearling Nice Answer Caucus Constituent Nice Answer Yearling Announcer Popular Question Nice Question Good Answer Caucus Yearling Famous Question Custodian Caucus Popular Question Necromancer Custodian,NULL,NULL,0,NULL,NULL 50998,63501,472272,NULL,NULL,NULL,0,NULL,NULL 50999,106062,989942,Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 51000,28265,185646,Notable Question Civic Duty Popular Question Popular Question Popular Question Famous Question Nice Question Good Answer Yearling Yearling Custodian Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 51001,137362,915861,NULL,NULL,NULL,0,NULL,NULL 51002,125161,653723,NULL,NULL,NULL,0,NULL,NULL 51003,35946,535782,Popular Question Notable Question Nice Question Popular Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Caucus Popular Question Famous Question Yearling Popular Question Nice Question Nice Question Notable Question Civic Duty Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Good Question Notable Question Popular Question Good Question Caucus Popular Question Notable Question Notable Question Yearling Good Question Nice Question Popular Question Excavator Popular Question Popular Question Self-Learner Nice Question Notable Question,NULL,NULL,0,NULL,NULL 51004,666745,1165661,Teacher Notable Question Good Question Necromancer Yearling Nice Answer Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 51005,204272,909198,Informed,NULL,NULL,0,NULL,NULL 51006,402334,988941,Commentator Critic Necromancer Yearling Nice Answer Editor Announcer Yearling Scholar Necromancer Yearling Revival Nice Answer Enlightened Yearling Necromancer Nice Answer Necromancer Announcer Yearling Good Answer Caucus Announcer Nice Answer Enlightened Good Answer Nice Answer Necromancer Caucus Good Answer Guru Yearling Good Answer Good Answer Custodian Announcer Great Answer Necromancer Announcer Nice Answer Nice Answer Announcer Yearling,NULL,strongEdit strong pp strongFacebook decided to href https github com facebook react issues 436 issuecomment 207624448 not add support for defining custom event types and recommend you to use something like href https github com JedWatson react tappable react tappable strong so you can write something like code lt Tappable onTap gt code phrp strikeFacebook working on solution in the form of codeTapEventPlugin code but it href https github com facebook react issues 436 won be made available href https github com facebook react pull 1170 issuecomment 52123901 until they make some decisions ppIf you re reading this you re probably working on project that can wait until they figure out how they want to publish it strike ppThis repo is for you href https github com zilverline react tap event plugin https github com zilverline react tap event plugin pp strikeWhen Facebook solves href https github com facebook react issues 436 436 and href https github com facebook react pull 1170 1170 this repo will disappear strike pp emThis solution works for React 14 and 15 em ppre codenpm react tap event plugin code prepExample of usage ppre codevar React require react var ReactDOM require react dom injectTapEventPlugin require react tap event plugin injectTapEventPlugin var Main React createClass render function return lt href onTouchTap this handleTouchTap onClick this handleClick gt Tap Me lt gt handleClick function console log click handleTouchTap function console log touchTap ReactDOM render lt Main gt document getElementById container code prep emNote that with the injector you will probably need to use only codeonTouchTap code and not codeonClick code anymore em Both works but react tappable seems more reasonable choice No monkey patching pThe latest version of git as of October 2012 allows you to do this from the command line ppre codegit remote set url origin push add user1 remote set url origin push add user2 remote code prepThen codegit push code will push to user1 then push to user2 Leave out code push code if you also want to be able to codegit pull code from them too tried to remove push to be able to fetch and push but when use git remote can see my new added remote as push only What am doing wrong pThe latest version of git as of October 2012 allows you to do this from the command line ppre codegit remote set url origin push add user1 remote set url origin push add user2 remote code prepThen codegit push code will push to user1 then push to user2 Leave out code push code if you also want to be able to codegit pull code from them too Per doc on latest git version don see that those flags can be combined End of git remote help or git remote get url push all name or git remote set url push name newurl oldurl or git remote set url add name newurl or git remote set url delete name url,1,How to create Firefox theme addon from simple stylesheet firefox addon pI have created theme for Firefox that involve simple stylesheet am currently using Stylish extension for this but would like to share my theme as an Firefox addon since Theme are simple image didn quickly find anything about that in search engine and only find an outdated ressource on MDN ppAny tip to make share this CSS as an addon bonus automate release from git repo,Flow “Required module not found” when importing CSS file flowtype pWhen try to import CSS via webpack import index css getting this error ppre code3 import index css index css Required module not found code prepI have structure like ComponentName→ index js index css so that each component has all dependencies inside ppI tried href https gist github com lambdahands d19e0da96285b749f0ef rel noreferrer this hack but it didn work for me Could just ignore it somehow pAdd this to your flow config ppre code options module name mapper extension css gt lt PROJECT ROOT gt CSSModuleStub js code prepAnd add create file to your root codeCSSModuleStub js code ppre code CSSModule key string string const emptyCSSModule CSSModule export default emptyCSSModule code prepIf you want clean path you can adjust like this ppre code options module name mapper extension css gt lt PROJECT ROOT gt flow stub css modules js code prepAnd so rename codeCSSModuleStub js code to codeflow stub css modules js code phrpWhile we are at it if you need some others stubs eg for codeurl loader code here is another example ppCreate codeflow stub url loader js code ppre code string export default code prepAnd add ppre codemodule name mapper svg png jpg gif gt lt PROJECT ROOT gt flow stub url loader js code prepif you use codeurl loader code for svg png jpg and gif This will allow Flow to make the correct module replacement url loader returns string base64 or file loader path ppFor example if you do ppre codeimport logoSVG from logo png logoSVG blah stuff lt flow will throw here code prepFlow will throw an error 51007,121405,1442006,Notable Question Supporter Teacher,NULL,NULL,0,NULL,NULL 51008,232905,851543,NULL,NULL,NULL,0,NULL,NULL 51009,3211682,1396427,NULL,NULL,NULL,0,NULL,NULL 51010,228064,807973,Popular Question,NULL,NULL,0,NULL,NULL 51011,1387177,1066286,Teacher Popular Question Editor Revival Supporter Nice Answer Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 51012,87052,73676,Popular Question Curious Informed,NULL,NULL,0,NULL,NULL 51013,85654,1112384,Informed Good Answer Yearling,NULL,NULL,0,NULL,NULL 51014,213460,1436955,Necromancer Famous Question,NULL,NULL,0,NULL,NULL 51015,163738,1327854,Yearling Famous Question,NULL,NULL,0,NULL,NULL 51016,407836,79705,Yearling Yearling Yearling,NULL,pThe best way is to just create temporary canvas to draw onto from the current canvas The user will never see this temp canvas Then you just need use codetoDataUrl code on the temp canvas pp strong href http jsfiddle net wttAu rel noreferrer Live Demo strong ppre code submitGraphic click function var canvas document getElementsByTagName canvas canvas context var context canvas getContext 2d get the current ImageData for the canvas var data context getImageData canvas width canvas height store the current globalCompositeOperation var compositeOperation context globalCompositeOperation set to draw behind current content context globalCompositeOperation destination over set background color context fillStyle FFFFFF draw background rectangle on entire canvas context fillRect canvas width canvas height var tempCanvas document createElement canvas tCtx tempCanvas getContext 2d tempCanvas width 640 tempCanvas height 480 tCtx drawImage canvas write on screen var img tempCanvas toDataURL image png document write lt href img gt lt img src img gt lt gt code pre the data variable is assigned but never used,0,NULL,NULL 51017,2254800,79705,Yearling Yearling Yearling,NULL,pThe best way is to just create temporary canvas to draw onto from the current canvas The user will never see this temp canvas Then you just need use codetoDataUrl code on the temp canvas pp strong href http jsfiddle net wttAu rel noreferrer Live Demo strong ppre code submitGraphic click function var canvas document getElementsByTagName canvas canvas context var context canvas getContext 2d get the current ImageData for the canvas var data context getImageData canvas width canvas height store the current globalCompositeOperation var compositeOperation context globalCompositeOperation set to draw behind current content context globalCompositeOperation destination over set background color context fillStyle FFFFFF draw background rectangle on entire canvas context fillRect canvas width canvas height var tempCanvas document createElement canvas tCtx tempCanvas getContext 2d tempCanvas width 640 tempCanvas height 480 tCtx drawImage canvas write on screen var img tempCanvas toDataURL image png document write lt href img gt lt img src img gt lt gt code pre the data variable is assigned but never used,0,NULL,NULL 51018,3243918,1252355,Critic Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51019,2634192,1252355,Critic Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51020,286273,1252355,Critic Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51021,8559,759685,Revival,NULL,NULL,0,NULL,NULL 51022,1146924,483026,Notable Question Yearling,NULL,NULL,0,NULL,NULL 51023,37910,1093282,Nice Answer Critic,NULL,NULL,0,NULL,NULL 51024,237312,729535,Popular Question Famous Question Popular Question Yearling Civic Duty Caucus Constituent Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Revival Self-Learner Yearling Explainer Caucus Constituent Custodian Citizen Patrol Custodian Cleanup Custodian Popular Question,NULL,NULL,0,NULL,NULL 51025,432709,1100711,Famous Question,NULL,NULL,0,NULL,NULL 51026,19629,684978,NULL,NULL,NULL,0,NULL,NULL 51027,131416,1476292,NULL,NULL,NULL,0,NULL,NULL 51028,564465,1366906,Student,NULL,NULL,0,NULL,NULL 51029,892511,815732,Yearling Caucus Popular Question Yearling Popular Question Self-Learner Popular Question Popular Question Caucus Yearling Revival Popular Question Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 51030,361970,883845,Nice Answer,NULL,NULL,0,NULL,NULL 51031,17926,261420,NULL,NULL,NULL,0,NULL,NULL 51032,749510,1498974,NULL,NULL,NULL,0,NULL,NULL 51033,333743,528047,NULL,NULL,NULL,0,NULL,NULL 51034,26362,947225,Good Answer javascript Yearling Informed Autobiographer Good Answer Nice Answer Yearling Announcer Custodian cytoscape.js Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 51035,3508937,640278,NULL,NULL,NULL,0,NULL,NULL 51036,1190249,876376,NULL,NULL,NULL,0,NULL,NULL 51037,991289,1477025,NULL,NULL,NULL,0,NULL,NULL 51038,265083,386128,Yearling,NULL,NULL,0,NULL,NULL 51039,191624,181010,Popular Question,NULL,NULL,0,NULL,NULL 51040,181785,1517659,Notable Question Nice Answer Enlightened Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Necromancer Popular Question Famous Question Yearling Notable Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51041,65500,317445,Yearling Nice Answer Enlightened Popular Question Yearling Caucus Necromancer Notable Question Yearling Caucus Caucus Nice Answer Yearling,NULL,Check if package is installed and then install it if it not bash shell apt get pI working on Ubuntu system and currently this is what doing ppre codeif which command gt dev null then echo Command not found Install read if REPLY then sudo apt get install command fifi code prepIs this what most people would do Or is there more elegant solution Fortunately apt get install is idempotent so it is safe to just run it and not worry about if it is installed or not Check if package is installed and then install it if it not bash shell apt get pI working on Ubuntu system and currently this is what doing ppre codeif which command gt dev null then echo Command not found Install read if REPLY then sudo apt get install command fifi code prepIs this what most people would do Or is there more elegant solution answer made Check if package is installed and then install it if it not bash shell apt get pI working on Ubuntu system and currently this is what doing ppre codeif which command gt dev null then echo Command not found Install read if REPLY then sudo apt get install command fifi code prepIs this what most people would do Or is there more elegant solution That very good point,0,NULL,NULL 51042,3894911,1049390,Good Question,NULL,NULL,0,NULL,NULL 51043,1555677,1049390,Good Question,NULL,NULL,0,NULL,NULL 51044,1109980,21152,Nice Answer Custodian Yearling Nice Question Necromancer Yearling Favorite Question Great Answer Favorite Question Caucus Yearling,NULL,NULL,0,NULL,NULL 51045,91771,954285,Critic Yearling Scholar Caucus Caucus,NULL,NULL,0,NULL,NULL 51046,554134,1109181,NULL,NULL,NULL,0,NULL,NULL 51047,7239003,677103,Yearling Tumbleweed Student Necromancer Revival,NULL,NULL,0,NULL,NULL 51048,325777,677103,Yearling Tumbleweed Student Necromancer Revival,NULL,NULL,0,NULL,NULL 51049,117826,6381,Guru Commentator Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 51050,3376443,1180024,NULL,NULL,NULL,0,NULL,NULL 51051,1229607,1100565,Curious Yearling,NULL,NULL,0,NULL,NULL 51052,209948,1477129,NULL,NULL,NULL,0,NULL,NULL 51053,66991,991890,NULL,NULL,NULL,0,NULL,NULL 51054,1507517,832081,NULL,NULL,NULL,0,NULL,NULL 51055,491292,288181,NULL,NULL,NULL,0,NULL,NULL 51056,749242,1112839,NULL,NULL,NULL,0,NULL,NULL 51057,9638731,1112839,NULL,NULL,NULL,0,NULL,NULL 51058,40257,269993,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 51059,2258333,269993,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 51060,61808,1022988,Teacher Excavator Notable Question Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51061,33496,821125,NULL,NULL,NULL,0,NULL,NULL 51062,7929444,821125,NULL,NULL,NULL,0,NULL,NULL 51063,483783,805036,NULL,NULL,NULL,0,NULL,NULL 51064,3605504,805036,NULL,NULL,NULL,0,NULL,NULL 51065,109633,1218191,NULL,NULL,NULL,0,NULL,NULL 51066,153803,924901,Yearling,NULL,NULL,0,NULL,NULL 51067,1033174,72990,Nice Question Yearling Disciplined Great Answer Good Question Yearling Notable Question Great Question Nice Answer Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 51068,83698,448159,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 51069,505855,577418,Announcer Announcer Teacher Editor Excavator Revival Announcer Student Critic,NULL,NULL,0,NULL,NULL 51070,43245,1446144,Informed,NULL,NULL,0,NULL,NULL 51071,36061,879089,NULL,NULL,NULL,0,NULL,NULL 51072,755547,1066834,NULL,NULL,NULL,0,NULL,NULL 51073,641694,260875,NULL,NULL,NULL,0,NULL,NULL 51074,408680,1024959,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51075,84713,1055096,Notable Question,NULL,NULL,0,NULL,NULL 51076,430736,1224953,NULL,NULL,NULL,0,NULL,NULL 51077,277938,1546190,NULL,NULL,NULL,0,NULL,NULL 51078,217098,1457710,NULL,NULL,NULL,0,NULL,NULL 51079,227957,898346,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51080,347464,585969,NULL,NULL,NULL,0,NULL,NULL 51081,339671,437793,NULL,NULL,NULL,0,NULL,NULL 51082,155514,298343,NULL,NULL,NULL,0,NULL,NULL 51083,29377,1530642,NULL,NULL,NULL,0,NULL,NULL 51084,470378,420105,Tumbleweed Commentator Citizen Patrol Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 51085,153003,794395,Yearling Custodian Critic Yearling Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 51086,691836,1001564,NULL,NULL,NULL,0,NULL,NULL 51087,98365,708134,Popular Question Popular Question,NULL,codeoptparse generic code does not support generating such parser from single data type definition since Haskell does not support records with both labeled and unlabeled fields ppHowever what you can do is generate one data type for all the labeled fields and one type for the unlabeled fields and then combine them using codeApplicative code operations like this ppre codedata Labeled Labeled foo Int deriving Generic Show instance ParseRecord Labeleddata Unlabeled Unlabeled String deriving Generic Show instance ParseRecord Unlabeleddata Mixed Mixed Labeled Unlabeled deriving Show instance ParseRecord Mixed where parseRecord Mixed lt gt parseRecord lt gt parseRecord code pre This seems to print the help text multiple times when you run with help Not sure how to address this,0,NULL,NULL 51088,261107,249763,Caucus Constituent Guru Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 51089,481659,1436715,NULL,NULL,NULL,0,NULL,NULL 51090,473842,1032639,NULL,NULL,NULL,0,NULL,NULL 51091,33754,1423984,Notable Question Tumbleweed Nice Question Notable Question,NULL,NULL,0,NULL,NULL 51092,695835,1252902,NULL,NULL,NULL,0,NULL,NULL 51093,38921,941025,Supporter Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51094,8545880,941025,Supporter Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51095,551309,681283,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 51096,84988,685400,NULL,NULL,NULL,0,NULL,NULL 51097,268981,1203169,Custodian Student,NULL,NULL,0,NULL,NULL 51098,82992,1044520,NULL,NULL,NULL,0,NULL,NULL 51099,165269,487225,Supporter Popular Question,NULL,NULL,0,NULL,NULL 51100,93263,1202762,Popular Question Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 51101,134999,348301,Popular Question Famous Question Nice Question Good Answer Famous Question Notable Question Famous Question Favorite Question Good Question Nice Answer Enlightened Good Question Yearling Famous Question Necromancer Notable Question Popular Question Famous Question Caucus Notable Question Nice Question Famous Question Notable Question Popular Question Good Answer Necromancer Popular Question Notable Question Favorite Question Yearling Notable Question Notable Question Famous Question Caucus Good Answer Nice Answer Famous Question Favorite Question Documentation User Pundit Nice Answer Notable Question Great Question Necromancer Notable Question Yearling Guru Nice Answer Great Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 51102,326316,1063329,NULL,NULL,NULL,0,NULL,NULL 51103,1370919,337546,Good Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Answer Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Favorite Question Notable Question Popular Question Notable Question Nice Question Great Question Caucus Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51104,754091,212629,Notable Question,NULL,NULL,0,NULL,NULL 51105,1535872,827980,Yearling,NULL,NULL,0,NULL,NULL 51106,1105366,940032,NULL,NULL,NULL,0,NULL,NULL 51107,958675,1128425,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 51108,167591,97477,NULL,NULL,NULL,0,NULL,NULL 51109,211997,883482,NULL,NULL,NULL,0,NULL,NULL 51110,332383,1292238,Enthusiast Yearling Great Answer Caucus Constituent python Custodian Census Necromancer Yearling Caucus Constituent Documentation User Revival Revival Census Nice Answer Enlightened Caucus Yearling Constituent Custodian Investor Altruist Good Answer,NULL,NULL,0,NULL,NULL 51111,665749,531203,Notable Question Popular Question Nice Question Notable Question Benefactor Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 51112,490475,763116,Yearling Notable Question Popular Question Popular Question Favorite Question Nice Question Great Question Famous Question Famous Question Popular Question Notable Question Notable Question Yearling Good Question Popular Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51113,590812,1149613,Nice Answer Yearling Peer Pressure Caucus,NULL,NULL,0,NULL,NULL 51114,211982,265051,Yearling Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 51115,53517,494531,Nice Answer Custodian Yearling Revival Necromancer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 51116,515655,800241,NULL,NULL,NULL,0,NULL,NULL 51117,1918854,998721,NULL,NULL,NULL,0,NULL,NULL 51118,896241,471380,Scholar,NULL,NULL,0,NULL,NULL 51119,2383,533385,NULL,NULL,NULL,0,NULL,NULL 51120,138347,1196862,NULL,NULL,NULL,0,NULL,NULL 51121,25973,198935,Guru Guru Nice Answer Enlightened Good Answer Guru Yearling Populist Nice Answer Nice Answer Guru Yearling Good Answer Pundit Yearling,NULL,NULL,0,NULL,NULL 51122,51772,1420673,Teacher Enthusiast Revival,NULL,NULL,0,NULL,NULL 51123,108508,114642,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 51124,996729,7284,Curious Self-Learner,NULL,NULL,0,NULL,NULL 51125,237689,63525,Nice Answer,NULL,NULL,0,NULL,NULL 51126,1139624,1241963,NULL,NULL,NULL,0,NULL,NULL 51127,185123,1286630,Popular Question Good Question Popular Question Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 51128,10834,498353,Revival Autobiographer,NULL,NULL,0,NULL,NULL 51129,2435115,1564398,NULL,NULL,NULL,0,NULL,NULL 51130,5314,1155288,NULL,NULL,NULL,0,NULL,NULL 51131,269985,190938,Great Answer Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51132,1294182,1074617,NULL,NULL,NULL,0,NULL,NULL 51133,693288,1419383,Census Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 51134,279524,1291760,NULL,NULL,NULL,0,NULL,NULL 51135,212654,864109,NULL,NULL,NULL,0,NULL,NULL 51136,2478931,799841,NULL,NULL,NULL,0,NULL,NULL 51137,2503459,366393,Caucus Constituent Caucus Popular Question,NULL,NULL,0,NULL,NULL 51138,322447,62997,Yearling Informed Popular Question Notable Question Nice Question Yearling Custodian Notable Question Great Answer Nice Question Custodian Yearling Guru Populist,NULL,NULL,0,NULL,NULL 51139,668729,1110613,Census,NULL,NULL,0,NULL,NULL 51140,545734,632320,NULL,NULL,NULL,0,NULL,NULL 51141,129874,998147,Notable Question,NULL,NULL,0,NULL,NULL 51142,8633398,668401,Popular Question,NULL,NULL,0,NULL,NULL 51143,19595,879744,NULL,NULL,NULL,0,NULL,NULL 51144,1104680,315037,Curious,NULL,NULL,0,NULL,NULL 51145,506208,1295593,Notable Question Self-Learner Yearling Announcer Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51146,356756,855806,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51147,68940,621141,Yearling Notable Question Critic Caucus,NULL,NULL,0,NULL,NULL 51148,239837,363687,NULL,NULL,NULL,0,NULL,NULL 51149,1174080,1177302,NULL,NULL,NULL,0,NULL,NULL 51150,233434,673859,Famous Question Famous Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Peer Pressure Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Yearling Popular Question Notable Question Nice Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Answer Nice Question Yearling Notable Question Good Question Good Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51151,29081,1287183,Guru Announcer Nice Answer Yearling Nice Answer Nice Answer Enlightened Caucus jquery Good Answer knockout-2.0 Announcer javascript Yearling Quorum Good Answer Notable Question knockout.js Good Answer Yearling Announcer Good Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 51152,482846,328365,NULL,NULL,NULL,0,NULL,NULL 51153,393617,1489926,NULL,NULL,NULL,0,NULL,NULL 51154,31727,32353,Announcer Good Answer Yearling Civic Duty Good Answer,NULL,NULL,0,NULL,NULL 51155,1515909,384124,NULL,NULL,NULL,0,NULL,NULL 51156,509263,354196,NULL,NULL,NULL,0,NULL,NULL 51157,2022962,982227,Nice Answer Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51158,156790,982227,Nice Answer Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51159,111373,496592,NULL,NULL,NULL,0,NULL,NULL 51160,13551,960586,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 51161,447011,147508,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51162,5442820,160942,NULL,NULL,NULL,0,NULL,NULL 51163,708608,16272,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 51164,425676,640337,NULL,NULL,NULL,0,NULL,NULL 51165,178456,204610,Custodian Custodian Custodian Informed Civic Duty Suffrage Vox Populi Excavator Reviewer Deputy Tag Editor Reviewer Steward Strunk & White Tenacious Electorate Yearling Caucus Caucus Documentation User Announcer Yearling Custodian Custodian Custodian Proofreader Caucus Benefactor Yearling,NULL,NULL,0,NULL,NULL 51166,98553,1058078,NULL,NULL,NULL,0,NULL,NULL 51167,80763,8950,Notable Question,NULL,NULL,0,NULL,NULL 51168,899979,1025903,Scholar Supporter,NULL,NULL,0,NULL,NULL 51169,310116,609036,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51170,426776,868563,Necromancer Yearling Enthusiast Caucus Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 51171,1503657,19240,Nice Answer,NULL,NULL,0,NULL,NULL 51172,459056,427137,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51173,210662,79121,Critic Yearling Guru Yearling Yearling Disciplined Notable Question,NULL,NULL,0,NULL,NULL 51174,1521299,1253249,NULL,NULL,NULL,0,NULL,NULL 51175,4387180,1253249,NULL,NULL,NULL,0,NULL,NULL 51176,2939130,1253249,NULL,NULL,NULL,0,NULL,NULL 51177,55285,599706,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51178,117729,658998,Popular Question,NULL,NULL,0,NULL,NULL 51179,77300,647151,Tumbleweed Notable Question Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 51180,13009,365814,Guru Guru Good Answer Good Answer Good Answer Good Answer Guru Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Guru Guru Pundit Guru Guru Nice Answer Enlightened Yearling Great Answer Good Answer Guru Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Yearling Good Answer Guru Announcer Nice Answer,NULL,NULL,1,NULL,importing d3 event into custom build using rollup javascript d3 js rollupjs pI ve got file coded3 custom build js code like this simplified ppre codeimport range from d3 array import select selectAll event from d3 selection import transition from d3 transition export default range select selectAll event transition code prepAnd coderollup config js code like this ppre codeimport nodeResolve from rollup plugin node resolve export default entry js vendor d3 custom build js dest js vendor d3 custom built js format iife globals d3 d3 moduleId d3 moduleName d3 plugins nodeResolve jsnext true code prepI want to export to plain old browser global named d3 calling rollup from simple npm script The good news is that almost everything works in the output file except for one thing coded3 event code in browser is always null No it not an issue with events being hijacked on the page When swap in the standard full d3 library into the script tag everything works fine It definitely build issue ppThe href https github com d3 d3 selection blob master README md customEvent rel noreferrer d3 docs warn that bundling codeevent code is tricky pblockquote pIf you use Babel Webpack or another ES6 to ES5 bundler be aware that the value of d3 event changes during an event An import of d3 event must be live binding so you may need to configure the bundler to import from D3’s ES6 modules rather than from the generated UMD bundle not all bundlers observe jsnext main Also beware of conflicts with the window event global blockquotepIt appears that setting codenodeResolve jsnext true code isn sufficing How do get live binding in the bundle Any guidance very appreciated pYou’re exporting an object defined using ES2015 shorthand object literal syntax as the default export Here is the long form equivalent of what you’ve written ppre codeexport default range range select select selectAll selectAll event event transition transition code prepYour object thus captures the value of codeevent code on load which is null it is not live binding and won’t reflect the current event ppOne fix would be to define the codeevent code property using getter ppre codeexport default range select selectAll get event return event transition code prepBetter would be to use named exports instead of default export and then Rollup will generate live binding automatically ppre codeexport range select selectAll event transition code prepThis is not only shorter but now you don’t depend on the browser supporting the ES2015 shorthand object literal syntax 51181,3033,243712,Yearling Nice Answer Enlightened Strunk & White Good Answer Revival Necromancer Popular Question Caucus Guru Yearling Popular Question Nice Answer Announcer Electorate Good Answer Announcer Nice Answer Documentation User python Good Answer Yearling Census Announcer Announcer Nice Answer Announcer Popular Question Necromancer,NULL,pIf gnupg2 and gpg agent are used be sure to set the environment variable codeGPG TTY code ppre codeexport GPG TTY tty code prepSee href https www gnupg org it documentation manuals gnupg Common Problems html rel noreferrer GPG’s documentation about common problems What is the point of the chown command Typically it will have already been assigned to you by system process when you logged in or created the pseudo tty If it owned by someone else and you re not root it will fail If the group is something else it probably doesn matter and users will typically not be in group tty,0,NULL,NULL 51182,227456,971931,NULL,NULL,NULL,0,NULL,NULL 51183,422667,600529,Popular Question,NULL,NULL,0,NULL,NULL 51184,703113,461122,NULL,NULL,NULL,0,NULL,NULL 51185,3540129,492818,NULL,NULL,NULL,0,NULL,NULL 51186,18828,1451950,Yearling Necromancer,NULL,NULL,0,NULL,NULL 51187,340905,747749,Necromancer Revival Yearling Good Answer Scholar Caucus Announcer Announcer Announcer Yearling Student Custodian Informed Custodian Yearling Tag Editor,NULL,NULL,0,NULL,NULL 51188,105960,35420,Nice Question Nice Answer Nice Question Yearling Nice Question Caucus Yearling Benefactor Yearling,NULL,NULL,0,NULL,NULL 51189,22176,567174,Necromancer Critic Yearling Editor Nice Answer Informed Revival,NULL,NULL,0,NULL,NULL 51190,7179,771336,NULL,NULL,NULL,0,NULL,NULL 51191,123046,527235,NULL,NULL,NULL,0,NULL,NULL 51192,332066,622255,NULL,NULL,NULL,0,NULL,NULL 51193,213627,1573,Yearling,NULL,NULL,0,NULL,NULL 51194,10075,278288,Self-Learner Yearling Popular Question Necromancer Custodian Promoter Famous Question Notable Question Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51195,6676306,705484,NULL,NULL,,0,, 51196,626805,705484,NULL,NULL,NULL,0,NULL,NULL 51197,233535,1158527,NULL,NULL,NULL,0,NULL,NULL 51198,866314,1564418,Student,NULL,NULL,0,NULL,NULL 51199,690598,1235645,NULL,NULL,NULL,0,NULL,NULL 51200,1455579,1035410,NULL,NULL,NULL,0,NULL,NULL 51201,259754,976677,NULL,NULL,NULL,0,NULL,NULL 51202,249578,1137142,Student Popular Question Critic Revival Nice Answer Yearling Necromancer Caucus Constituent Documentation User Yearling Census Commentator Suffrage Vox Populi Nice Answer Enlightened Organizer,NULL,NULL,0,NULL,NULL 51203,48759,474171,Nice Question Popular Question Good Question Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51204,8601575,1019845,Teacher Editor Supporter Revival Necromancer Popular Question,NULL,NULL,0,NULL,NULL 51205,578770,1116408,Suffrage Vox Populi Citizen Patrol Promoter Revival Organizer Explainer Excavator Civic Duty Necromancer Yearling Nice Question Benefactor Nice Answer Yearling Self-Learner Famous Question Good Answer Popular Question Necromancer Yearling Guru Electorate Caucus Constituent Yearling Nice Answer Popular Question Notable Question Popular Question Investor Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51206,324568,1462003,NULL,NULL,NULL,0,NULL,NULL 51207,199359,24490,Informed Notable Question Announcer,NULL,NULL,0,NULL,NULL 51208,7852,476068,Guru Notable Question Nice Answer Necromancer Yearling Good Answer Necromancer Popular Question Good Question Popular Question Popular Question Yearling Popular Question Famous Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 51209,4490049,155914,Revival Notable Question,NULL,NULL,0,NULL,NULL 51210,448560,1521444,NULL,NULL,NULL,0,NULL,NULL 51211,784087,376850,NULL,NULL,NULL,0,NULL,NULL 51212,2746990,1012813,NULL,NULL,NULL,0,NULL,NULL 51213,180907,470616,NULL,NULL,NULL,0,NULL,NULL 51214,593765,360850,NULL,NULL,NULL,0,NULL,NULL 51215,317506,433617,Scholar Supporter,NULL,NULL,0,NULL,NULL 51216,242699,469722,Yearling,NULL,NULL,0,NULL,NULL 51217,492831,246817,Editor,NULL,NULL,0,NULL,NULL 51218,247500,542017,NULL,NULL,NULL,0,NULL,NULL 51219,402888,39443,Nice Answer Guru Yearling Informed ruby Good Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 51220,474430,1140754,Yearling Self-Learner Nice Answer Revival Popular Question Nice Question Popular Question Nice Question Custodian Popular Question Good Question Necromancer Nice Answer Notable Question Necromancer Popular Question Notable Question Yearling Popular Question Tumbleweed Popular Question Inquisitive Popular Question Popular Question Caucus Notable Question Notable Question Popular Question Nice Question Notable Question Announcer Notable Question Good Answer Good Question Yearling Necromancer Nice Question Popular Question Caucus Good Answer Announcer Enthusiast Famous Question Notable Question Famous Question Popular Question Promoter Nice Question Benefactor Famous Question Popular Question Good Question Popular Question Famous Question Popular Question,NULL,Cannot cast delegate to generic type net generics pWhy can’t we cast an instance of emdelegate em to generic type codeT code ppConsider utility method codeCreateDelegate code that creates an instance of which is emdelegate em type derived from codeMulticastDelegate code ppre code CreateDelegate lt gt code prep strongUnfortunately generics does not allow to constraint codeT code to type derived from codeMulticastDelegate code strong giving the following compilation error pblockquote pConstraint cannot be special class System MulticastDelegate blockquotepNevertheless this utility method is checking that codeT code is compatible with codeMulticastDelegate code and creating delegate via Reflection through codeDelegate CreateDelegate code But if we try to cast the result of codeDelegate CreateDelegate code to codeT code we will get the following compilation error pblockquote pCannot convert type System Delegate to blockquotepHowever if cast it first to codeobject code and then to codeT code it will work fine ppre codeT object Delegate CreateDelegate typeof target code prepWhy can’t we directly cast delegate to Yes that works And it makes even less sense IMHO the behavior of both operators as and cast should be consistent Cannot cast delegate to generic type net generics pWhy can’t we cast an instance of emdelegate em to generic type codeT code ppConsider utility method codeCreateDelegate code that creates an instance of which is emdelegate em type derived from codeMulticastDelegate code ppre code CreateDelegate lt gt code prep strongUnfortunately generics does not allow to constraint codeT code to type derived from codeMulticastDelegate code strong giving the following compilation error pblockquote pConstraint cannot be special class System MulticastDelegate blockquotepNevertheless this utility method is checking that codeT code is compatible with codeMulticastDelegate code and creating delegate via Reflection through codeDelegate CreateDelegate code But if we try to cast the result of codeDelegate CreateDelegate code to codeT code we will get the following compilation error pblockquote pCannot convert type System Delegate to blockquotepHowever if cast it first to codeobject code and then to codeT code it will work fine ppre codeT object Delegate CreateDelegate typeof target code prepWhy can’t we directly cast delegate to Sometimes throwing an Exception is the desired behavior instead of returning null,1,Cannot cast delegate to generic type net generics pWhy can’t we cast an instance of emdelegate em to generic type codeT code ppConsider utility method codeCreateDelegate code that creates an instance of which is emdelegate em type derived from codeMulticastDelegate code ppre code CreateDelegate lt gt code prep strongUnfortunately generics does not allow to constraint codeT code to type derived from codeMulticastDelegate code strong giving the following compilation error pblockquote pConstraint cannot be special class System MulticastDelegate blockquotepNevertheless this utility method is checking that codeT code is compatible with codeMulticastDelegate code and creating delegate via Reflection through codeDelegate CreateDelegate code But if we try to cast the result of codeDelegate CreateDelegate code to codeT code we will get the following compilation error pblockquote pCannot convert type System Delegate to blockquotepHowever if cast it first to codeobject code and then to codeT code it will work fine ppre codeT object Delegate CreateDelegate typeof target code prepWhy can’t we directly cast delegate to,NULL 51221,326996,887111,Good Answer Notable Question,NULL,NULL,0,NULL,NULL 51222,332934,1309004,Teacher,NULL,NULL,0,NULL,NULL 51223,1566213,1566417,NULL,NULL,NULL,0,NULL,NULL 51224,254231,1141893,Popular Question,NULL,NULL,0,NULL,NULL 51225,944998,1053103,Nice Answer Popular Question Necromancer Good Answer Nice Answer node.js Peer Pressure Popular Question Necromancer Caucus Yearling Necromancer Nice Answer Enlightened Necromancer Notable Question pug Nice Question Good Answer Good Answer Revival Necromancer Nice Answer Caucus Necromancer Documentation User Nice Answer Yearling Nice Answer Caucus Nice Answer Nice Answer Pundit Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 51226,292127,1427433,Popular Question,NULL,NULL,0,NULL,NULL 51227,476178,967703,NULL,NULL,NULL,0,NULL,NULL 51228,247111,1322038,NULL,NULL,NULL,0,NULL,NULL 51229,697434,632466,Notable Question Caucus Caucus Famous Question,NULL,NULL,0,NULL,NULL 51230,24550,700066,NULL,NULL,NULL,0,NULL,NULL 51231,427739,378488,NULL,NULL,NULL,0,NULL,NULL 51232,1476768,378488,NULL,NULL,NULL,0,NULL,NULL 51233,87439,145103,Yearling Yearling Great Answer Curious Notable Question Yearling,NULL,NULL,0,NULL,NULL 51234,330197,243266,Student Popular Question,NULL,NULL,0,NULL,NULL 51235,407450,764011,NULL,NULL,NULL,0,NULL,NULL 51236,694000,101225,Yearling Great Answer Yearling Revival Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 51237,78095,25573,Yearling Favorite Question Great Question,NULL,NULL,0,NULL,NULL 51238,29677,928171,NULL,NULL,NULL,0,NULL,NULL 51239,392281,404797,Tumbleweed Popular Question Supporter,NULL,NULL,0,NULL,NULL 51240,31661,212276,Yearling,NULL,NULL,0,NULL,NULL 51241,153116,438254,NULL,NULL,NULL,0,NULL,NULL 51242,314531,1253311,Editor Custodian Informed Autobiographer Commentator Critic Organizer Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 51243,35767,110315,Popular Question Yearling Nice Answer Yearling Great Answer Peer Pressure Nice Answer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 51244,105526,1461716,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51245,378990,901769,NULL,NULL,NULL,0,NULL,NULL 51246,64529,164233,Good Answer Yearling Caucus Yearling Announcer Peer Pressure Yearling Good Answer Popular Question Yearling Announcer Citizen Patrol Custodian Custodian Tumbleweed Yearling Announcer Excavator,NULL,NULL,1,NULL,Python ctypes Python file object FILE python ctypes pI am using ctypes to wrap library which have control over with Python want to wrap function with declaration ppre codeint fread int FILE stream code prepNow would like to open file in python and then use the Python file object in some way to get access to the underlying FILE object and pass that to the function ppre code PythonfileH open file value ctypes function fread int fileH close code prepIs the Python file lt FILE mapping at all possible ppJoakim pTried this ppre code if PY MAJOR VERSION gt if PyObject HasAttrString pyfile fileno int fd int PyLong AsLong PyObject CallMethod pyfile fileno NULL if PyObject HasAttrString pyfile mode char mode PyUnicode AsUTF8AndSize PyObject CallMethod pyfile mode NULL NULL fp fdopen fd mode else return PyErr Format PyExc ValueError File doesn’t have mode attribute else return PyErr Format PyExc ValueError File doesn’t have fileno method else fp PyFile AsFile pyfile endif code prepIt looks like it might be working 51247,422509,1071712,NULL,NULL,NULL,0,NULL,NULL 51248,497864,1071712,NULL,NULL,NULL,0,NULL,NULL 51249,118604,532472,NULL,NULL,NULL,0,NULL,NULL 51250,62412,173635,Notable Question Necromancer Popular Question Famous Question Yearling Nice Question Notable Question Nice Question Nice Question Popular Question Famous Question Famous Question Yearling Famous Question Good Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 51251,212128,1089165,Teacher,NULL,NULL,0,NULL,NULL 51252,76447,935451,Student,NULL,NULL,0,NULL,NULL 51253,562757,496624,Popular Question,NULL,,0,, 51254,99198,496624,Popular Question,NULL,NULL,0,NULL,NULL 51255,1422993,1208566,Popular Question,NULL,NULL,0,NULL,NULL 51256,73284,735617,NULL,NULL,NULL,0,NULL,NULL 51257,238406,533505,Revival,NULL,NULL,0,NULL,NULL 51258,48630,801856,NULL,NULL,NULL,0,NULL,NULL 51259,187306,392228,NULL,NULL,NULL,0,NULL,NULL 51260,648346,147382,Good Question Curious Popular Question Yearling Popular Question,NULL,isystem on system include directory causes errors gcc pWhat up with the following code ppre code include lt cmath gt intmain int argc char argv code prepWhen compiled on recent Arch Linux installation with GCC and the flag code isystem usr include code it produces ppre code isystem usr include math cc In file included from math cc usr include cmath 45 23 fatal error math No such file or directory include next lt math gt compilation terminated code prepThat is very simplified example the original command line was ppre code isystem llvm config includedir code prepfor part of program using LLVM On Arch Linux the LLVM package is installed with its header directory in code usr include code which is the directory reported by codellvm config code The included code Wextra code and code Wconversion code which cause warnings in the LLVM headers The code isystem code flag as opposed to code code prevents the warnings by considering the LLVM directory to be system headers See the href https gcc gnu org onlinedocs cpp System Headers html System Headers rel nofollow GNU preprocessor documentation for more information ppBut with an upgrade to GCC the error above appears in the build Or this one https gcc gnu org bugzilla show bug cgi id 71090,1,isystem on system include directory causes errors gcc pWhat up with the following code ppre code include lt cmath gt intmain int argc char argv code prepWhen compiled on recent Arch Linux installation with GCC and the flag code isystem usr include code it produces ppre code isystem usr include math cc In file included from math cc usr include cmath 45 23 fatal error math No such file or directory include next lt math gt compilation terminated code prepThat is very simplified example the original command line was ppre code isystem llvm config includedir code prepfor part of program using LLVM On Arch Linux the LLVM package is installed with its header directory in code usr include code which is the directory reported by codellvm config code The included code Wextra code and code Wconversion code which cause warnings in the LLVM headers The code isystem code flag as opposed to code code prevents the warnings by considering the LLVM directory to be system headers See the href https gcc gnu org onlinedocs cpp System Headers html System Headers rel nofollow GNU preprocessor documentation for more information ppBut with an upgrade to GCC the error above appears in the build,NULL 51261,367382,1529781,Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 51262,827438,492499,NULL,NULL,NULL,0,NULL,NULL 51263,325067,412417,Notable Question Good Question Popular Question Notable Question Popular Question Notable Question Peer Pressure Yearling Custodian Critic Custodian Yearling,NULL,NULL,0,NULL,NULL 51264,6874295,696919,NULL,NULL,NULL,0,NULL,NULL 51265,241070,1213072,Autobiographer,NULL,NULL,0,NULL,NULL 51266,603009,1227578,Necromancer Caucus,NULL,NULL,0,NULL,NULL 51267,227096,904032,Yearling Autobiographer Commentator Yearling Nice Question Necromancer Necromancer Notable Question Tumbleweed Caucus Yearling Nice Answer Curious Yearling Good Answer Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51268,444070,888955,NULL,NULL,NULL,0,NULL,NULL 51269,160418,1133662,NULL,NULL,NULL,0,NULL,NULL 51270,73034,402253,Great Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Nice Answer Enlightened Custodian Custodian Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Guru Nice Answer Enlightened Guru Guru Nice Answer Nice Answer Enlightened Great Answer Generalist Nice Answer Good Answer Yearling Nice Answer Good Answer Guru Guru Good Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 51271,564206,217593,Notable Question Famous Question Notable Question Self-Learner Nice Question Notable Question Notable Question Yearling Famous Question Good Question Popular Question Famous Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Yearling Announcer Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 51272,37006,325129,Custodian Nice Answer java Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Good Question Nice Question Good Answer Nice Answer Popular Question Notable Question Yearling Notable Question Nice Question Good Question Popular Question Nice Question Good Question Popular Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51273,39105,154929,Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51274,22427,790159,NULL,NULL,NULL,0,NULL,NULL 51275,695149,864613,NULL,NULL,NULL,0,NULL,NULL 51276,5068,1144372,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51277,708424,1038034,Yearling Necromancer Nice Answer Commentator Tumbleweed Yearling Nice Answer Caucus Scholar Yearling Announcer Good Answer Necromancer Student Populist Revival Yearling Necromancer Yearling Yearling Editor Necromancer Popular Question Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 51278,54310,2086,Necromancer Revival Nice Answer Nice Question Excavator Popular Question Good Answer Necromancer Populist Yearling Notable Question Notable Question Caucus Nice Question Popular Question Nice Question Necromancer Nice Answer Revival Good Answer .net Nice Question Custodian Popular Question Yearling Necromancer Necromancer Popular Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 51279,129683,1155445,NULL,NULL,NULL,0,NULL,NULL 51280,1879939,1475891,Announcer Supporter,NULL,NULL,0,NULL,NULL 51281,5936149,1475891,Announcer Supporter,NULL,NULL,0,NULL,NULL 51282,522909,267756,Scholar Student Supporter Teacher,NULL,NULL,0,NULL,NULL 51283,822957,451454,Civic Duty Famous Question Popular Question Popular Question Teacher Informed Notable Question Yearling Promoter Benefactor Popular Question Custodian Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Notable Question Critic,NULL,NULL,0,NULL,NULL 51284,412408,881334,Critic Popular Question,NULL,NULL,0,NULL,NULL 51285,319424,1254736,Editor Autobiographer Scholar,NULL,NULL,0,NULL,NULL 51286,3684334,412195,NULL,NULL,NULL,0,NULL,NULL 51287,30108,740165,Famous Question Necromancer Popular Question Self-Learner Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51288,1531162,931141,NULL,NULL,NULL,0,NULL,NULL 51289,333041,931141,NULL,NULL,NULL,0,NULL,NULL 51290,252950,277250,Yearling Popular Question,NULL,NULL,0,NULL,NULL 51291,564406,327529,NULL,NULL,NULL,0,NULL,NULL 51292,299101,933731,NULL,NULL,NULL,0,NULL,NULL 51293,2378199,933731,NULL,NULL,NULL,0,NULL,NULL 51294,745364,455487,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51295,344514,488139,Notable Question Famous Question Yearling Stellar Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51296,3286422,1300962,NULL,NULL,NULL,0,NULL,NULL 51297,589324,468665,Popular Question Curious,NULL,NULL,0,NULL,NULL 51298,2489437,468665,Popular Question Curious,NULL,NULL,0,NULL,NULL 51299,189203,1258976,NULL,NULL,NULL,0,NULL,NULL 51300,22166,363135,Popular Question,NULL,NULL,0,NULL,NULL 51301,106045,1009124,NULL,NULL,NULL,0,NULL,NULL 51302,537440,702638,Popular Question Nice Answer Enlightened Quorum Notable Question Favorite Question Nice Answer python Notable Question Famous Question Good Question Yearling Nice Answer Enlightened Notable Question Nice Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer Great Answer Guru Notable Question Popular Question Nice Question Famous Question Nice Question Guru Popular Question Popular Question Good Answer Great Answer Notable Question Famous Question Popular Question Nice Answer Yearling Guru Notable Question Popular Question Nice Answer Nice Answer Nice Question Notable Question Good Answer Good Question Famous Question Good Answer Copy Editor Nice Answer Enlightened Good Answer Yearling Guru Self-Learner Popular Question Nice Answer Popular Question Nice Answer Popular Question Nice Answer Enlightened Famous Question Notable Question Stellar Question Notable Question,NULL,JavaScript set object key by variable javascript pI am building some objects in JavaScript and pushing those objects into an array am storing the key want to use in variable then creating my objects like so ppre codevar key happyCount myArray push key someValueArray code prepbut when try to examine my array of objects for every object the key is code key code instead of the value of the variable key Is there any way to set the value of the key from variable ppFiddle for better explanation href http jsfiddle net Fr6eY rel noreferrer http jsfiddle net Fr6eY The only browser that currently does not support this es6 feature is IE11 https kangax github io compat table es6 test object literal extensions computed properties JavaScript set object key by variable javascript pI am building some objects in JavaScript and pushing those objects into an array am storing the key want to use in variable then creating my objects like so ppre codevar key happyCount myArray push key someValueArray code prepbut when try to examine my array of objects for every object the key is code key code instead of the value of the variable key Is there any way to set the value of the key from variable ppFiddle for better explanation href http jsfiddle net Fr6eY rel noreferrer http jsfiddle net Fr6eY That is exactly what babel is for As Dan Cron mentions above,0,NULL,NULL 51303,77633,723374,Tumbleweed Nice Question Nice Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 51304,99322,935950,Nice Answer Necromancer Notable Question Nice Question Good Answer Electorate Yearling Popular Question Announcer r Yearling Announcer Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 51305,459398,935950,Nice Answer Necromancer Notable Question Nice Question Good Answer Electorate Yearling Popular Question Announcer r Yearling Announcer Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 51306,331663,174295,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51307,1389753,1252655,NULL,NULL,NULL,0,NULL,NULL 51308,165389,1387415,NULL,NULL,NULL,0,NULL,NULL 51309,1093169,1387415,NULL,NULL,NULL,0,NULL,NULL 51310,341286,396986,Yearling Promoter Benefactor Yearling Documentation User Civic Duty Popular Question Yearling,NULL,NULL,0,NULL,NULL 51311,482260,1539105,NULL,NULL,NULL,0,NULL,NULL 51312,2326244,707045,NULL,NULL,NULL,0,NULL,NULL 51313,24508,1180903,NULL,NULL,NULL,0,NULL,NULL 51314,1081982,1324624,NULL,NULL,NULL,0,NULL,NULL 51315,803915,1455066,NULL,NULL,NULL,0,NULL,NULL 51316,264458,419788,Revival Yearling Nice Answer Notable Question Nice Answer Nice Question Famous Question Yearling Favorite Question Notable Question Great Question Yearling,NULL,NULL,0,NULL,NULL 51317,762967,206527,Notable Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 51318,2475717,723069,Popular Question,NULL,NULL,0,NULL,NULL 51319,4010,1265013,Good Answer,NULL,NULL,0,NULL,NULL 51320,82841,394831,NULL,NULL,NULL,0,NULL,NULL 51321,55235,74074,Good Answer Yearling Good Answer Yearling Caucus Guru Curious Yearling Investor,NULL,NULL,0,NULL,NULL 51322,162940,1475869,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 51323,524389,85803,Good Answer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 51324,749102,475136,NULL,NULL,NULL,0,NULL,NULL 51325,24358,249259,Yearling Editor Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 51326,141269,980950,Revival Yearling Self-Learner Necromancer Notable Question Nice Question Yearling Great Answer Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 51327,796134,724216,NULL,NULL,NULL,0,NULL,NULL 51328,741740,1472825,NULL,NULL,NULL,0,NULL,NULL 51329,175346,33786,Custodian Custodian Caucus Constituent Commentator Disciplined Suffrage Custodian Yearling Vox Populi Enthusiast Excavator Yearling,NULL,NULL,0,NULL,NULL 51330,771095,477457,NULL,NULL,NULL,0,NULL,NULL 51331,446419,1368432,Citizen Patrol Student Commentator,NULL,NULL,0,NULL,NULL 51332,514662,278891,Good Answer Notable Question Yearling Popular Question Citizen Patrol Yearling Announcer Civic Duty Yearling Necromancer Great Answer Popular Question Revival Notable Question Documentation User Popular Question Populist Census Yearling Custodian Necromancer,NULL,pI had to use slightly different approach to get this working in CircleCI unsure what peculiarity about their venv config caused this pp strong codeappengine config py code strong ppre codeimport osif os environ get SERVER SOFTWARE startswith Development import imp import os path import inspect from google appengine tools devappserver2 python import sandbox sandbox WHITE LIST MODULES ssl socket Use the system socket real os src path os path realpath inspect getsourcefile os psocket os path join os path dirname real os src path socket py imp load source socket psocket code pre updated thanks pI had to use slightly different approach to get this working in CircleCI unsure what peculiarity about their venv config caused this pp strong codeappengine config py code strong ppre codeimport osif os environ get SERVER SOFTWARE startswith Development import imp import os path import inspect from google appengine tools devappserver2 python import sandbox sandbox WHITE LIST MODULES ssl socket Use the system socket real os src path os path realpath inspect getsourcefile os psocket os path join os path dirname real os src path socket py imp load source socket psocket code pre unfortunately GAE doesn work well with venv vendoring is the best way to go https cloud google com appengine docs standard python tools using libraries python 27,0,NULL,NULL 51333,844091,1070901,NULL,NULL,NULL,0,NULL,NULL 51334,125722,173449,Good Question,NULL,NULL,0,NULL,NULL 51335,970739,1448305,NULL,NULL,NULL,0,NULL,NULL 51336,2864938,201433,NULL,NULL,NULL,0,NULL,NULL 51337,42816,362198,NULL,NULL,NULL,0,NULL,NULL 51338,2404,490956,Notable Question,NULL,NULL,0,NULL,NULL 51339,352019,853573,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51340,1946344,1159280,NULL,NULL,NULL,0,NULL,NULL 51341,988416,1159280,NULL,NULL,NULL,0,NULL,NULL 51342,726133,1002230,Nice Answer,NULL,NULL,0,NULL,NULL 51343,1600302,165043,Notable Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 51344,397198,1070145,NULL,NULL,NULL,0,NULL,NULL 51345,440246,1438127,Student,NULL,NULL,0,NULL,NULL 51346,510212,1023238,NULL,NULL,NULL,0,NULL,NULL 51347,27642,683927,NULL,NULL,NULL,0,NULL,NULL 51348,1003328,1133504,NULL,NULL,NULL,0,NULL,NULL 51349,680807,1289489,NULL,NULL,NULL,0,NULL,NULL 51350,63528,49407,Nice Question Nice Answer Yearling Great Answer Good Question Famous Question Notable Question Nice Answer Famous Question Necromancer Yearling Caucus Guru Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51351,49802,744227,Informed,NULL,NULL,0,NULL,NULL 51352,342458,1050020,NULL,NULL,NULL,0,NULL,NULL 51353,290664,986291,NULL,NULL,NULL,0,NULL,NULL 51354,864043,1283720,Notable Question Yearling Notable Question Peer Pressure Critic,NULL,NULL,0,NULL,NULL 51355,86901,983236,Revival,NULL,NULL,0,NULL,NULL 51356,968515,315054,Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51357,1316,225016,Yearling Nice Answer Yearling Yearling Documentation User Tenacious Editor Yearling Yearling Yearling Revival Census Peer Pressure kubernetes Explainer Organizer Custodian Custodian Custodian Custodian Enthusiast Custodian Nice Answer Enlightened Proofreader Reviewer Fanatic Custodian Reviewer Reviewer Good Answer,NULL,NULL,0,NULL,NULL 51358,1050,1247130,Supporter Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51359,33995,42998,Yearling Critic,NULL,NULL,0,NULL,NULL 51360,128810,663357,NULL,NULL,NULL,0,NULL,NULL 51361,340833,612373,Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 51362,574885,832055,NULL,NULL,NULL,0,NULL,NULL 51363,69601,896620,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51364,462883,952110,NULL,NULL,NULL,0,NULL,NULL 51365,3382981,1191146,NULL,NULL,NULL,0,NULL,NULL 51366,4856983,1191146,NULL,NULL,NULL,0,NULL,NULL 51367,357100,1238868,Yearling Caucus Explainer Yearling Revival Custodian Yearling Organizer,NULL,NULL,0,NULL,NULL 51368,23518,1896,Yearling Notable Question Good Answer Nice Question Popular Question Yearling Stellar Question Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 51369,525749,1022846,Popular Question,NULL,NULL,0,NULL,NULL 51370,47408,326516,Necromancer Custodian Necromancer Yearling Nice Answer Enlightened Necromancer Caucus Proofreader Nice Answer Enlightened Necromancer Reviewer Custodian Custodian Custodian Reviewer Custodian Steward Steward Announcer Necromancer Nice Answer Nice Answer Custodian Civic Duty Reviewer Caucus Constituent Custodian Yearling Necromancer Documentation User Necromancer Nice Answer Fanatic Census Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 51371,26969,22440,NULL,NULL,NULL,0,NULL,NULL 51372,204513,864217,Popular Question Notable Question Critic Famous Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 51373,341220,1394404,Critic,NULL,NULL,0,NULL,NULL 51374,5543,262253,Nice Answer,NULL,NULL,0,NULL,NULL 51375,255424,1516252,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51376,679950,1112521,NULL,NULL,NULL,0,NULL,NULL 51377,356654,170993,Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 51378,1517750,704390,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51379,437688,396330,NULL,NULL,NULL,0,NULL,NULL 51380,1108949,786572,Famous Question Critic Good Question Yearling,NULL,NULL,0,NULL,NULL 51381,154357,625446,NULL,NULL,NULL,0,NULL,NULL 51382,223106,482774,NULL,NULL,NULL,0,NULL,NULL 51383,481134,163676,Nice Answer Enlightened Yearling Popular Question Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51384,125358,766608,NULL,NULL,NULL,0,NULL,NULL 51385,894862,1188050,NULL,NULL,NULL,0,NULL,NULL 51386,1464434,1235852,NULL,NULL,NULL,0,NULL,NULL 51387,184784,613444,Yearling Good Question Nice Answer Yearling Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51388,39743,359878,Famous Question Yearling Nice Question Notable Question Caucus Yearling Organizer Yearling,NULL,NULL,0,NULL,NULL 51389,4490984,805873,NULL,NULL,NULL,0,NULL,NULL 51390,179546,805873,NULL,NULL,NULL,0,NULL,NULL 51391,3874673,805873,NULL,NULL,NULL,0,NULL,NULL 51392,1110721,852224,Steward Yearling Curious Caucus Constituent Yearling Caucus Constituent Documentation User Census Notable Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 51393,146832,677892,NULL,NULL,NULL,0,NULL,NULL 51394,36095,489098,Revival Yearling Notable Question Necromancer Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 51395,160589,766575,NULL,NULL,NULL,0,NULL,NULL 51396,569922,551728,NULL,NULL,NULL,0,NULL,NULL 51397,70208,986395,NULL,NULL,NULL,0,NULL,NULL 51398,186040,1369691,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51399,1488881,375778,NULL,NULL,NULL,0,NULL,NULL 51400,1043639,580617,NULL,NULL,NULL,0,NULL,NULL 51401,85424,102652,NULL,NULL,NULL,0,NULL,NULL 51402,222498,35220,NULL,NULL,NULL,0,NULL,NULL 51403,64090,417703,NULL,NULL,NULL,0,NULL,NULL 51404,249119,417703,NULL,NULL,NULL,0,NULL,NULL 51405,339271,519396,Supporter Editor Student,NULL,NULL,0,NULL,NULL 51406,531793,355958,NULL,NULL,NULL,0,NULL,NULL 51407,566448,1347352,NULL,NULL,NULL,0,NULL,NULL 51408,528,62200,NULL,NULL,NULL,0,NULL,NULL 51409,12181,632191,NULL,NULL,NULL,0,NULL,NULL 51410,1300510,1540517,NULL,NULL,NULL,0,NULL,NULL 51411,74313,560805,NULL,NULL,NULL,0,NULL,NULL 51412,52593,79981,Yearling Civic Duty Good Question Famous Question Popular Question Curious Yearling,NULL,NULL,0,NULL,NULL 51413,407319,728049,Critic Yearling Revival,NULL,NULL,0,NULL,NULL 51414,49715,493127,NULL,NULL,NULL,0,NULL,NULL 51415,4441909,493127,NULL,NULL,NULL,0,NULL,NULL 51416,86316,1347732,NULL,NULL,NULL,0,NULL,NULL 51417,83059,120140,Student Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51418,1157642,1165128,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 51419,222053,1985,Informed,NULL,NULL,0,NULL,NULL 51420,423009,647122,NULL,NULL,NULL,0,NULL,NULL 51421,2043363,370585,Custodian Custodian Nice Question Yearling Popular Question Popular Question Guru Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 51422,275541,728618,Notable Question,NULL,NULL,0,NULL,NULL 51423,89149,665508,NULL,NULL,NULL,0,NULL,NULL 51424,172403,665508,NULL,NULL,NULL,0,NULL,NULL 51425,61399,585679,NULL,NULL,NULL,0,NULL,NULL 51426,18749,775336,Yearling Good Answer,NULL,NULL,0,NULL,NULL 51427,44852,184609,Popular Question Custodian Nice Answer Good Answer Good Question Yearling python Notable Question Guru Yearling Stellar Question Civic Duty Yearling Favorite Question,NULL,NULL,0,NULL,NULL 51428,1415985,941601,NULL,NULL,NULL,0,NULL,NULL 51429,1929520,1248675,NULL,NULL,NULL,0,NULL,NULL 51430,131648,87896,NULL,NULL,NULL,0,NULL,NULL 51431,290563,24938,Famous Question Custodian,NULL,NULL,0,NULL,NULL 51432,91275,645071,Yearling Commentator Nice Answer,NULL,NULL,0,NULL,NULL 51433,18492,32396,Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Enlightened Good Answer Yearling Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 51434,243250,290058,Supporter,NULL,NULL,0,NULL,NULL 51435,76531,290058,Supporter,NULL,NULL,0,NULL,NULL 51436,210374,279849,NULL,NULL,NULL,0,NULL,NULL 51437,156019,188788,Notable Question Yearling Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 51438,729651,383601,NULL,NULL,NULL,0,NULL,NULL 51439,637068,178241,Popular Question,NULL,NULL,0,NULL,NULL 51440,249331,846769,Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 51441,91082,3948,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51442,23251,201789,Great Answer php Good Answer Yearling Census Guru Nice Answer Enlightened Great Answer Yearling Guru Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51443,134428,41970,Yearling Good Answer,NULL,NULL,0,NULL,NULL 51444,300735,398679,NULL,NULL,NULL,0,NULL,NULL 51445,8971,11388,Popular Question Popular Question Popular Question Famous Question Notable Question Nice Answer Enlightened Nice Answer Notable Question Yearling Popular Question Good Answer Notable Question Nice Answer Enlightened Popular Question Popular Question Great Answer Good Question Nice Answer Good Answer Notable Question Popular Question Popular Question Notable Question Nice Answer Nice Question Nice Answer Announcer Nice Answer Yearling Guru Famous Question Great Answer Nice Answer Great Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 51446,113555,149104,Teacher Informed Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51447,23145,4300,Good Question Yearling Yearling Notable Question Good Question Favorite Question Great Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51448,201247,252239,Popular Question Necromancer Yearling Good Answer Notable Question Popular Question Nice Answer Popular Question Famous Question Nice Answer Popular Question Nice Question Favorite Question Guru Yearling Favorite Question Famous Question Necromancer Popular Question Notable Question Documentation User Good Answer Popular Question Nice Question Booster Yearling Popular Question Announcer Nice Question Notable Question Popular Question Popular Question,NULL,Get the short Git version hash git pIs there cleaner way to get the short version hash of codeHEAD code from Git ppI want to see the same output as get from ppre code git log head sed commit head code prehrpI originally used this to generate version string but this is even better ppre codegit describe tags code prepIt will output strings like code0 12 code tagged commit or code0 11 g0c85fbc code five commits after the tag You probably need to tag something first for tags to work Try creating tag first https git scm com book en v2 Git Basics Tagging git tag,0,NULL,NULL 51449,137114,720671,Nice Question Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51450,207144,774552,NULL,NULL,NULL,0,NULL,NULL 51451,3427181,1431709,NULL,NULL,NULL,0,NULL,NULL 51452,75451,1431709,NULL,NULL,NULL,0,NULL,NULL 51453,63715,501204,Good Answer Yearling Curious Revival Yearling Revival Necromancer Excavator Guru,NULL,NULL,0,NULL,NULL 51454,596301,249313,Revival Nice Answer Good Answer Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 51455,8384372,866513,NULL,NULL,NULL,0,NULL,NULL 51456,80523,660813,NULL,NULL,NULL,0,NULL,NULL 51457,11249,316612,Informed Commentator Yearling Caucus,NULL,NULL,0,NULL,NULL 51458,355109,1297136,Yearling Popular Question Revival Notable Question Popular Question Nice Answer Popular Question Caucus Constituent Popular Question Census Yearling Nice Question Popular Question Popular Question Popular Question Enthusiast Notable Question Famous Question Nice Question Notable Question Excavator Yearling Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 51459,45135,892528,NULL,NULL,NULL,0,NULL,NULL 51460,1281100,892528,NULL,NULL,NULL,0,NULL,NULL 51461,30093,903715,NULL,NULL,NULL,0,NULL,NULL 51462,292819,559947,Yearling Good Question Famous Question Editor,NULL,NULL,0,NULL,NULL 51463,169780,1100739,NULL,NULL,NULL,0,NULL,NULL 51464,62756,28516,NULL,NULL,NULL,0,NULL,NULL 51465,33450,312681,Popular Question Popular Question Yearling Nice Question Nice Answer Popular Question Good Question Necromancer Nice Answer Notable Question Popular Question Good Answer Yearling Famous Question Nice Question Popular Question Notable Question Great Answer Good Answer Yearling Custodian Famous Question,NULL,NULL,0,NULL,NULL 51466,256372,974767,Tumbleweed Popular Question Revival Self-Learner,NULL,NULL,0,NULL,NULL 51467,303653,102845,Popular Question,NULL,NULL,0,NULL,NULL 51468,915131,228174,Revival Yearling,NULL,NULL,0,NULL,NULL 51469,87942,1105061,Notable Question,NULL,NULL,0,NULL,NULL 51470,376677,613024,Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 51471,165197,393128,Informed,NULL,NULL,0,NULL,NULL 51472,193577,918,Custodian Notable Question Yearling Cleanup Necromancer Proofreader Necromancer Nice Answer Good Answer Yearling Guru Good Question Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 51473,207523,1342854,NULL,NULL,NULL,0,NULL,NULL 51474,409011,170344,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51475,213625,483706,NULL,NULL,NULL,0,NULL,NULL 51476,294785,110175,NULL,NULL,NULL,0,NULL,NULL 51477,96931,918934,NULL,NULL,NULL,0,NULL,NULL 51478,11002,1447511,NULL,NULL,NULL,0,NULL,NULL 51479,548,464871,Supporter,NULL,NULL,0,NULL,NULL 51480,963222,267780,Supporter Yearling Caucus Caucus Great Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 51481,86119,421007,NULL,NULL,NULL,0,NULL,NULL 51482,119769,600240,Yearling Notable Question Announcer Census Yearling Popular Question Custodian Self-Learner Revival,NULL,NULL,0,NULL,NULL 51483,372632,474669,Critic Commentator Student,NULL,NULL,0,NULL,NULL 51484,27037,714301,NULL,NULL,NULL,0,NULL,NULL 51485,448672,673996,NULL,NULL,NULL,0,NULL,NULL 51486,97938,137062,NULL,NULL,NULL,0,NULL,NULL 51487,98821,56690,Yearling Good Answer Custodian Custodian Custodian Famous Question Good Question Great Answer Popular Question Revival Yearling Revival Documentation User Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 51488,210358,1380155,Tumbleweed,NULL,NULL,0,NULL,NULL 51489,85675,1309161,NULL,NULL,NULL,0,NULL,NULL 51490,167310,869268,NULL,NULL,NULL,0,NULL,NULL 51491,218072,804892,Notable Question,NULL,NULL,0,NULL,NULL 51492,134439,322263,Popular Question Yearling Guru Necromancer Yearling,NULL,NULL,0,NULL,NULL 51493,35067,869564,NULL,NULL,NULL,0,NULL,NULL 51494,90631,574176,NULL,NULL,NULL,0,NULL,NULL 51495,596714,443211,NULL,NULL,NULL,0,NULL,NULL 51496,1169286,1211974,NULL,NULL,NULL,0,NULL,NULL 51497,62595,311507,NULL,NULL,NULL,0,NULL,NULL 51498,936267,503781,NULL,NULL,NULL,0,NULL,NULL 51499,98510,503781,NULL,NULL,NULL,0,NULL,NULL 51500,20162,1393668,Commentator Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 51501,2018915,1393668,Commentator Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 51502,86028,365878,Notable Question,NULL,NULL,0,NULL,NULL 51503,222639,145995,NULL,NULL,NULL,0,NULL,NULL 51504,214716,1274612,NULL,NULL,NULL,0,NULL,NULL 51505,33257,1200865,Yearling Yearling Necromancer Documentation User Yearling,NULL,NULL,0,NULL,NULL 51506,11718,411199,NULL,NULL,NULL,0,NULL,NULL 51507,223824,1195352,NULL,NULL,NULL,0,NULL,NULL 51508,37640,204000,Nice Answer Editor Custodian Custodian Critic Promoter Nice Question Benefactor,NULL,NULL,0,NULL,NULL 51509,421796,1262447,Necromancer Yearling Popular Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 51510,33396,1206574,Informed Editor Yearling,NULL,NULL,0,NULL,NULL 51511,175133,1199394,Yearling Critic Popular Question,NULL,NULL,0,NULL,NULL 51512,271269,1199394,Yearling Critic Popular Question,NULL,NULL,0,NULL,NULL 51513,155084,1138563,Editor,NULL,NULL,0,NULL,NULL 51514,59579,501250,Good Answer Nice Answer Enlightened database Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer Guru Yearling Great Answer Good Answer Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Electorate Popular Question class Nice Answer Enlightened Good Answer multithreading Good Answer Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer mysql Guru Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Great Answer templates Good Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Guru Yearling Nice Answer Nice Answer Good Answer Good Answer Guru Nice Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Great Answer Good Answer Nice Answer Enlightened Necromancer Good Answer Guru Good Answer Nice Answer Enlightened Great Answer Nice Answer Guru Good Answer Yearling Nice Answer Enlightened Enlightened Nice Answer Enlightened,NULL,pTo quote href http mathiasbynens be notes javascript identifiers rel noreferrer em strongValid JavaScript variable names strong em my write up summarizing the relevant spec sections pblockquote pAn identifier must start with code code code code or any character in the Unicode categories href http graphemica com categories uppercase letter rel noreferrer “Uppercase letter Lu href http graphemica com categories lowercase letter rel noreferrer “Lowercase letter Ll href http graphemica com categories titlecase letter rel noreferrer “Titlecase letter Lt href http graphemica com categories modifier letter rel noreferrer “Modifier letter Lm href http graphemica com categories other letter rel noreferrer “Other letter Lo or href http graphemica com categories letter number rel noreferrer “Letter number Nl pThe rest of the string can contain the same characters plus any emU 200C zero width non joiner em characters emU 200D zero width joiner em characters and characters in the Unicode categories href http graphemica com unicode categories nonspacing mark rel noreferrer “Non spacing mark Mn href http graphemica com categories spacing combining mark rel noreferrer “Spacing combining mark Mc href http graphemica com categories decimal digit number rel noreferrer “Decimal digit number Nd or href http graphemica com categories connector punctuation rel noreferrer “Connector punctuation Pc blockquotepI’ve also created href http mothereff in js variables rel noreferrer title JavaScript variable name validator tool that will tell you if any string that you enter is valid JavaScript variable name according to ECMAScript and Unicode pp href http mothereff in js variables rel noreferrer img src https imgur com GNv5t png alt JavaScript variable name validator phrpP To give you an idea of how wrong Anthony Mills answer is if you were to summarize all these rules in single ASCII only regular expression for JavaScript strongit would be 11 236 characters long strong Here it is ppre code ES5 Unicode do if in for let new try var case else enum eval false null this true void with break catch class const super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc xaa xb5 xba xc0 xd6 xd8 xf6 xf8 u02c1 u02c6 u02d1 u02e0 u02e4 u02ec u02ee u0370 u0374 u0376 u0377 u037a u037d u0386 u0388 u038a u038c u038e u03a1 u03a3 u03f5 u03f7 u0481 u048a u0527 u0531 u0556 u0559 u0561 u0587 u05d0 u05ea u05f0 u05f2 u0620 u064a u066e u066f u0671 u06d3 u06d5 u06e5 u06e6 u06ee u06ef u06fa u06fc u06ff u0710 u0712 u072f u074d u07a5 u07b1 u07ca u07ea u07f4 u07f5 u07fa u0800 u0815 u081a u0824 u0828 u0840 u0858 u08a0 u08a2 u08ac u0904 u0939 u093d u0950 u0958 u0961 u0971 u0977 u0979 u097f u0985 u098c u098f u0990 u0993 u09a8 u09aa u09b0 u09b2 u09b6 u09b9 u09bd u09ce u09dc u09dd u09df u09e1 u09f0 u09f1 u0a05 u0a0a u0a0f u0a10 u0a13 u0a28 u0a2a u0a30 u0a32 u0a33 u0a35 u0a36 u0a38 u0a39 u0a59 u0a5c u0a5e u0a72 u0a74 u0a85 u0a8d u0a8f u0a91 u0a93 u0aa8 u0aaa u0ab0 u0ab2 u0ab3 u0ab5 u0ab9 u0abd u0ad0 u0ae0 u0ae1 u0b05 u0b0c u0b0f u0b10 u0b13 u0b28 u0b2a u0b30 u0b32 u0b33 u0b35 u0b39 u0b3d u0b5c u0b5d u0b5f u0b61 u0b71 u0b83 u0b85 u0b8a u0b8e u0b90 u0b92 u0b95 u0b99 u0b9a u0b9c u0b9e u0b9f u0ba3 u0ba4 u0ba8 u0baa u0bae u0bb9 u0bd0 u0c05 u0c0c u0c0e u0c10 u0c12 u0c28 u0c2a u0c33 u0c35 u0c39 u0c3d u0c58 u0c59 u0c60 u0c61 u0c85 u0c8c u0c8e u0c90 u0c92 u0ca8 u0caa u0cb3 u0cb5 u0cb9 u0cbd u0cde u0ce0 u0ce1 u0cf1 u0cf2 u0d05 u0d0c u0d0e u0d10 u0d12 u0d3a u0d3d u0d4e u0d60 u0d61 u0d7a u0d7f u0d85 u0d96 u0d9a u0db1 u0db3 u0dbb u0dbd u0dc0 u0dc6 u0e01 u0e30 u0e32 u0e33 u0e40 u0e46 u0e81 u0e82 u0e84 u0e87 u0e88 u0e8a u0e8d u0e94 u0e97 u0e99 u0e9f u0ea1 u0ea3 u0ea5 u0ea7 u0eaa u0eab u0ead u0eb0 u0eb2 u0eb3 u0ebd u0ec0 u0ec4 u0ec6 u0edc u0edf u0f00 u0f40 u0f47 u0f49 u0f6c u0f88 u0f8c u1000 u102a u103f u1050 u1055 u105a u105d u1061 u1065 u1066 u106e u1070 u1075 u1081 u108e u10a0 u10c5 u10c7 u10cd u10d0 u10fa u10fc u1248 u124a u124d u1250 u1256 u1258 u125a u125d u1260 u1288 u128a u128d u1290 u12b0 u12b2 u12b5 u12b8 u12be u12c0 u12c2 u12c5 u12c8 u12d6 u12d8 u1310 u1312 u1315 u1318 u135a u1380 u138f u13a0 u13f4 u1401 u166c u166f u167f u1681 u169a u16a0 u16ea u16ee u16f0 u1700 u170c u170e u1711 u1720 u1731 u1740 u1751 u1760 u176c u176e u1770 u1780 u17b3 u17d7 u17dc u1820 u1877 u1880 u18a8 u18aa u18b0 u18f5 u1900 u191c u1950 u196d u1970 u1974 u1980 u19ab u19c1 u19c7 u1a00 u1a16 u1a20 u1a54 u1aa7 u1b05 u1b33 u1b45 u1b4b u1b83 u1ba0 u1bae u1baf u1bba u1be5 u1c00 u1c23 u1c4d u1c4f u1c5a u1c7d u1ce9 u1cec u1cee u1cf1 u1cf5 u1cf6 u1d00 u1dbf u1e00 u1f15 u1f18 u1f1d u1f20 u1f45 u1f48 u1f4d u1f50 u1f57 u1f59 u1f5b u1f5d u1f5f u1f7d u1f80 u1fb4 u1fb6 u1fbc u1fbe u1fc2 u1fc4 u1fc6 u1fcc u1fd0 u1fd3 u1fd6 u1fdb u1fe0 u1fec u1ff2 u1ff4 u1ff6 u1ffc u2071 u207f u2090 u209c u2102 u2107 u210a u2113 u2115 u2119 u211d u2124 u2126 u2128 u212a u212d u212f u2139 u213c u213f u2145 u2149 u214e u2160 u2188 u2c00 u2c2e u2c30 u2c5e u2c60 u2ce4 u2ceb u2cee u2cf2 u2cf3 u2d00 u2d25 u2d27 u2d2d u2d30 u2d67 u2d6f u2d80 u2d96 u2da0 u2da6 u2da8 u2dae u2db0 u2db6 u2db8 u2dbe u2dc0 u2dc6 u2dc8 u2dce u2dd0 u2dd6 u2dd8 u2dde u2e2f u3005 u3007 u3021 u3029 u3031 u3035 u3038 u303c u3041 u3096 u309d u309f u30a1 u30fa u30fc u30ff u3105 u312d u3131 u318e u31a0 u31ba u31f0 u31ff u3400 u4db5 u4e00 u9fcc ua000 ua48c ua4d0 ua4fd ua500 ua60c ua610 ua61f ua62a ua62b ua640 ua66e ua67f ua697 ua6a0 ua6ef ua717 ua71f ua722 ua788 ua78b ua78e ua790 ua793 ua7a0 ua7aa ua7f8 ua801 ua803 ua805 ua807 ua80a ua80c ua822 ua840 ua873 ua882 ua8b3 ua8f2 ua8f7 ua8fb ua90a ua925 ua930 ua946 ua960 ua97c ua984 ua9b2 ua9cf uaa00 uaa28 uaa40 uaa42 uaa44 uaa4b uaa60 uaa76 uaa7a uaa80 uaaaf uaab1 uaab5 uaab6 uaab9 uaabd uaac0 uaac2 uaadb uaadd uaae0 uaaea uaaf2 uaaf4 uab01 uab06 uab09 uab0e uab11 uab16 uab20 uab26 uab28 uab2e uabc0 uabe2 uac00 ud7a3 ud7b0 ud7c6 ud7cb ud7fb uf900 ufa6d ufa70 ufad9 ufb00 ufb06 ufb13 ufb17 ufb1d ufb1f ufb28 ufb2a ufb36 ufb38 ufb3c ufb3e ufb40 ufb41 ufb43 ufb44 ufb46 ufbb1 ufbd3 ufd3d ufd50 ufd8f ufd92 ufdc7 ufdf0 ufdfb ufe70 ufe74 ufe76 ufefc uff21 uff3a uff41 uff5a uff66 uffbe uffc2 uffc7 uffca uffcf uffd2 uffd7 uffda uffdc0 u0300 u036f u0483 u0487 u0591 u05bd u05bf u05c1 u05c2 u05c4 u05c5 u05c7 u0610 u061a u064b u0669 u0670 u06d6 u06dc u06df u06e4 u06e7 u06e8 u06ea u06ed u06f0 u06f9 u0711 u0730 u074a u07a6 u07b0 u07c0 u07c9 u07eb u07f3 u0816 u0819 u081b u0823 u0825 u0827 u0829 u082d u0859 u085b u08e4 u08fe u0900 u0903 u093a u093c u093e u094f u0951 u0957 u0962 u0963 u0966 u096f u0981 u0983 u09bc u09be u09c4 u09c7 u09c8 u09cb u09cd u09d7 u09e2 u09e3 u09e6 u09ef u0a01 u0a03 u0a3c u0a3e u0a42 u0a47 u0a48 u0a4b u0a4d u0a51 u0a66 u0a71 u0a75 u0a81 u0a83 u0abc u0abe u0ac5 u0ac7 u0ac9 u0acb u0acd u0ae2 u0ae3 u0ae6 u0aef u0b01 u0b03 u0b3c u0b3e u0b44 u0b47 u0b48 u0b4b u0b4d u0b56 u0b57 u0b62 u0b63 u0b66 u0b6f u0b82 u0bbe u0bc2 u0bc6 u0bc8 u0bca u0bcd u0bd7 u0be6 u0bef u0c01 u0c03 u0c3e u0c44 u0c46 u0c48 u0c4a u0c4d u0c55 u0c56 u0c62 u0c63 u0c66 u0c6f u0c82 u0c83 u0cbc u0cbe u0cc4 u0cc6 u0cc8 u0cca u0ccd u0cd5 u0cd6 u0ce2 u0ce3 u0ce6 u0cef u0d02 u0d03 u0d3e u0d44 u0d46 u0d48 u0d4a u0d4d u0d57 u0d62 u0d63 u0d66 u0d6f u0d82 u0d83 u0dca u0dcf u0dd4 u0dd6 u0dd8 u0ddf u0df2 u0df3 u0e31 u0e34 u0e3a u0e47 u0e4e u0e50 u0e59 u0eb1 u0eb4 u0eb9 u0ebb u0ebc u0ec8 u0ecd u0ed0 u0ed9 u0f18 u0f19 u0f20 u0f29 u0f35 u0f37 u0f39 u0f3e u0f3f u0f71 u0f84 u0f86 u0f87 u0f8d u0f97 u0f99 u0fbc u0fc6 u102b u103e u1040 u1049 u1056 u1059 u105e u1060 u1062 u1064 u1067 u106d u1071 u1074 u1082 u108d u108f u109d u135d u135f u1712 u1714 u1732 u1734 u1752 u1753 u1772 u1773 u17b4 u17d3 u17dd u17e0 u17e9 u180b u180d u1810 u1819 u18a9 u1920 u192b u1930 u193b u1946 u194f u19b0 u19c0 u19c8 u19c9 u19d0 u19d9 u1a17 u1a1b u1a55 u1a5e u1a60 u1a7c u1a7f u1a89 u1a90 u1a99 u1b00 u1b04 u1b34 u1b44 u1b50 u1b59 u1b6b u1b73 u1b80 u1b82 u1ba1 u1bad u1bb0 u1bb9 u1be6 u1bf3 u1c24 u1c37 u1c40 u1c49 u1c50 u1c59 u1cd0 u1cd2 u1cd4 u1ce8 u1ced u1cf2 u1cf4 u1dc0 u1de6 u1dfc u1dff u200c u200d u203f u2040 u2054 u20d0 u20dc u20e1 u20e5 u20f0 u2cef u2cf1 u2d7f u2de0 u2dff u302a u302f u3099 u309a ua620 ua629 ua66f ua674 ua67d ua69f ua6f0 ua6f1 ua802 ua806 ua80b ua823 ua827 ua880 ua881 ua8b4 ua8c4 ua8d0 ua8d9 ua8e0 ua8f1 ua900 ua909 ua926 ua92d ua947 ua953 ua980 ua983 ua9b3 ua9c0 ua9d0 ua9d9 uaa29 uaa36 uaa43 uaa4c uaa4d uaa50 uaa59 uaa7b uaab0 uaab2 uaab4 uaab7 uaab8 uaabe uaabf uaac1 uaaeb uaaef uaaf5 uaaf6 uabe3 uabea uabec uabed uabf0 uabf9 ufb1e ufe00 ufe0f ufe20 ufe26 ufe33 ufe34 ufe4d ufe4f uff10 uff19 uff3f code pre GuilhermeVieira That approach will also incorrectly report that is valid variable name on all conforming JavaScript implementations Same with followed by any valid JavaScript statement pUse something like this ppre codefunction containsObject obj list var for lt list length if list obj return true return false code prepIn this case codecontainsObject car4 carBrands code is true Remove the codecarBrands push car4 code call and it will return false instead If you later expand to using objects to store these other car objects instead of using arrays you could use something like this instead ppre codefunction containsObject obj list var for in list if list hasOwnProperty amp amp list obj return true return false code prepThis approach will work for arrays too but when used on arrays it will be tad slower than the first option That incorrect for at least two reasons,0,NULL,NULL 51515,292139,262416,Popular Question Good Question Popular Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 51516,14501,497043,python Popular Question Good Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened string Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Good Answer Nice Answer Nice Answer Guru Nice Question Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Census Populist Nice Answer Enlightened Good Answer Guru Famous Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Caucus Nice Answer Enlightened Nice Answer Good Answer Good Answer Announcer Documentation User Announcer Good Answer Yearling traits Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Announcer Nice Answer Good Answer Nice Answer Census Guru Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened html Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Notable Question Nice Answer Enlightened Great Answer Good Answer Good Question Good Answer Good Question Yearling Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened,NULL,h2Complete scope polyfill h2pAs href https stackoverflow com users 303085 avetisk avetisk has href https stackoverflow com 18607777 489553 mentioned Selectors API uses code scope code pseudo selector brTo make this work in all browsers that support codequerySelector code here is the polyfill ppre code function doc proto try check if browser supports scope natively doc querySelector scope body catch err polyfill native methods if it doesn querySelector querySelectorAll forEach function method var nativ proto method proto method function selectors if scope test selectors only if selectors contains scope var id this id remember current element id this id ID Date now assign new unique id selectors selectors replace scope this id replace scope with ID var result doc method selectors this id id restore previous id return result else return nativ call this selectors use native code for other selectors window document Element prototype code preh2Usage h2pre codenode querySelector scope gt someselector node querySelectorAll scope gt someselector code prehrpFor historical reasons my previous solution ppBased on all answers ppre code Caution Prototype extendingNode prototype find function selector if gt test selector if this id this id ID new Date getTime var removeId true selector selector replace gt this id gt var result document querySelectorAll selector if removeId this id null return result else return this querySelectorAll selector code prep strongUsage strong ppre codeelem find gt code pre that’s about style scoped not scope They’re completely different things pOne neat trick to disable margin collapsing that has no visual impact as far as know is setting the padding of the parent to code0 05px code ppre code parentClass padding 05px code prepThe padding is no longer so collapsing won occur anymore but at the same time the padding is small enough that visually it will round down to ppIf some other padding is desired then apply padding only to the direction in which margin collapsing is not desired for example codepadding top 05px code pp strongWorking example strongdiv class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code noCollapse xD padding 05px xD xD xD parent xD background color red xD width 150px xD xD xD children xD margin top 50px xD xD background color lime xD width 100px xD height 100px xD code pre xD pre class snippet code html lang html prettyprint override code lt h3 gt Border collapsing lt h3 gt xD lt div class parent gt xD lt div class children gt xD lt div gt xD lt div gt xD xD lt h3 gt No border collapsing lt h3 gt xD lt div class parent noCollapse gt xD lt div class children gt xD lt div gt xD lt div gt code pre xD div xD div xD pp strongEdit strong changed the value from code0 code to code0 05 code As Chris Morgan mentioned in comment bellow and from href https codepen io surdu pen GWMNZK rel nofollow noreferrer this small test it seems that indeed Firefox takes the code0 1px code padding into consideration Though code0 05px code seemes to do the trick This is dodgy solution as it does add extra pixels in various circumstances due to high DPI displays and subpixel calculations Firefox has done subpixel layout for ages believe other browsers have comparatively recently followed suit pre codedef del none Delete keys with the value None in dictionary recursively This alters the input so you may wish to copy the dict first For Python write list items items won’t work For Python write items iteritems won’t work for key value in list items if value is None del key elif isinstance value dict del none value return For convenience code prepSample usage ppre code gt gt gt mydict dict1 key1 value1 key2 None gt gt gt print del none mydict copy dict1 key1 value1 code prepThen you can feed that to codejson code I’ve updated the code to target Python with notes for Python This was written seven years ago left it as an in place modification however,0,NULL,NULL 51517,82864,627473,Guru Notable Question Popular Question Popular Question Popular Question Popular Question Favorite Question Civic Duty Popular Question Popular Question Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Nice Question Nice Question Nice Question Nice Question Popular Question Popular Question Famous Question Good Question Notable Question Nice Question Notable Question Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Favorite Question Favorite Question Notable Question Famous Question Popular Question Notable Question Famous Question Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Nice Question Nice Question Notable Question Famous Question Famous Question Good Question Notable Question Popular Question Good Question Notable Question Famous Question Popular Question Nice Question Good Question Popular Question Popular Question Yearling Popular Question Popular Question php Notable Question Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Good Question Popular Question Popular Question Notable Question Famous Question Famous Question Famous Question Popular Question Announcer Announcer Nice Question Popular Question Notable Question Nice Question Popular Question Nice Answer Enlightened Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Answer Great Answer Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Great Question Notable Question Good Answer Popular Question Notable Question Nice Question Nice Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 51518,479087,1299810,Scholar,NULL,NULL,0,NULL,NULL 51519,14915,928327,NULL,NULL,NULL,0,NULL,NULL 51520,442994,744201,Editor Supporter,NULL,NULL,0,NULL,NULL 51521,1394045,26887,Good Question Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 51522,2802013,26887,Good Question Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 51523,1373301,860983,NULL,NULL,NULL,0,NULL,NULL 51524,214830,860983,NULL,NULL,NULL,0,NULL,NULL 51525,32874,488297,NULL,NULL,NULL,0,NULL,NULL 51526,165222,514881,NULL,NULL,NULL,0,NULL,NULL 51527,366997,1470563,NULL,NULL,NULL,0,NULL,NULL 51528,44738,788562,Popular Question Revival,NULL,NULL,0,NULL,NULL 51529,6319403,1134719,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51530,440441,928769,Critic Good Answer Caucus Custodian Curious Editor Citizen Patrol Census Yearling,NULL,NULL,0,NULL,NULL 51531,362420,388449,Custodian Critic Yearling Caucus Popular Question Yearling Famous Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 51532,303314,65763,Yearling Favorite Question Famous Question Good Answer Good Answer Yearling Nice Question Famous Question Favorite Question Guru Announcer Yearling Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 51533,334297,784341,Critic Yearling Popular Question Curious,NULL,NULL,0,NULL,NULL 51534,232262,787026,NULL,NULL,NULL,0,NULL,NULL 51535,111892,886373,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 51536,76079,631411,Necromancer Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 51537,772907,209670,Guru Good Answer Nice Answer Enlightened Yearling Popular Question Nice Answer Enlightened Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 51538,341337,180764,NULL,NULL,NULL,0,NULL,NULL 51539,44255,191125,Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51540,43707,6852,Yearling Caucus Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 51541,32984,221088,Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 51542,181328,599970,Yearling Guru Guru Guru Yearling Necromancer Revival Good Answer Great Answer Yearling Nice Answer Enlightened Guru Nice Answer Stellar Question,NULL,NULL,0,NULL,NULL 51543,313777,967314,NULL,NULL,NULL,0,NULL,NULL 51544,67448,142463,Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Yearling Great Question Good Question Yearling,NULL,NULL,0,NULL,NULL 51545,182025,222280,NULL,NULL,NULL,0,NULL,NULL 51546,363958,350016,NULL,NULL,NULL,0,NULL,NULL 51547,353015,833851,Teacher Popular Question,NULL,NULL,0,NULL,NULL 51548,239145,632756,Yearling Nice Answer Enlightened Good Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 51549,61178,871594,NULL,NULL,NULL,0,NULL,NULL 51550,60523,943805,NULL,NULL,NULL,0,NULL,NULL 51551,47670,832588,NULL,NULL,NULL,0,NULL,NULL 51552,42076,230473,Enthusiast Popular Question Good Answer Guru Yearling Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 51553,152630,122423,Nice Question Yearling Notable Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 51554,1213355,1253708,Notable Question Popular Question Popular Question Popular Question Yearling Revival Notable Question Nice Question Good Answer Nice Answer Notable Question Notable Question Nice Question Caucus Census Yearling Notable Question Famous Question Great Question Nice Question Yearling Popular Question Good Question Necromancer,NULL,NULL,0,NULL,NULL 51555,17882,1155450,Yearling,NULL,NULL,0,NULL,NULL 51556,106359,318628,NULL,NULL,NULL,0,NULL,NULL 51557,38938,33096,Notable Question Notable Question Necromancer Yearling Famous Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51558,646812,865884,Popular Question,NULL,NULL,0,NULL,NULL 51559,46612,508878,Custodian Informed Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51560,833654,508878,Custodian Informed Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51561,144385,603548,NULL,NULL,NULL,0,NULL,NULL 51562,1562773,762528,Popular Question Student,NULL,NULL,0,NULL,NULL 51563,345042,578473,Autobiographer Revival,NULL,NULL,0,NULL,NULL 51564,300260,882487,Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 51565,7557,591468,NULL,NULL,NULL,0,NULL,NULL 51566,152421,493229,Yearling Good Question Popular Question Critic Revival Census Notable Question Yearling,NULL,NULL,0,NULL,NULL 51567,381122,908152,Supporter Commentator Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51568,341338,887583,NULL,NULL,NULL,0,NULL,NULL 51569,307420,975289,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51570,290708,1086521,Yearling Cleanup Nice Answer Popular Question Civic Duty Yearling Popular Question Notable Question Nice Question Yearling Popular Question Documentation User Good Answer Famous Question Good Question Yearling Popular Question Revival Notable Question Revival Popular Question,NULL,Structuring NodeJS module variables and methods javascript node js closures commonjs pI want to create modules to structure my NodeJS application but little lost and haven found anything with hours of searching that is completely definitive on the subject ppSay like to create user module from which can create new users in my code using something like ppre codevar newUser new User code prepIdeally require my module at the top of my code using something like ppre codevar User require lib user code prepThis works great The question is how should structure the user module Is the following the best way ppre codemodule exports function User var authorized false var username undefined var password undefined var statistics undefined this authorized function return authorized this username function return username this statistics function return statistics code prepI writing getters and setters for my various module variables allowing me to hide things don want to accidentally access from other code However have done it this way before ppre codefunction User this authStatus false this email this displayName this inSession User prototype isAuthenticated function return this authStatus amp amp this email amp amp this displayName User prototype isInSession function return this inSession amp amp this isAuthenticated exports User User code prepThis works too with one caveat haven found way to access the user properties from within closures If my understanding is correct with the second implementation can This means if need to hand function off to db library as callback to edit the user properties can That look something like ppre codeUser prototype login function db doDbStuff get user data query function error result this username result name this code will not work code prepThe code doesn work to my understanding because the this keyword is within the scope of the closure not the User Even if the code were to be placed within the User function ppre codefunction User this login function you know code prepIt wouldn work ppI guess my question is what the best solution to this problem Is it the method presented in the first code block That seems rather cumbersome and messy and prone to variable collision scared ppThanks in advance It worth noting that in both of your examples the variables ARE NOT private You should take look at http javascript crockford com private html,0,NULL,NULL 51571,169662,1094372,NULL,NULL,NULL,0,NULL,NULL 51572,1509052,766210,Teacher Supporter Editor,NULL,NULL,0,NULL,NULL 51573,479387,552160,Yearling,NULL,NULL,0,NULL,NULL 51574,99550,509663,Notable Question Notable Question Nice Answer Notable Question Pundit Good Answer Notable Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Yearling Good Answer html Nice Answer Nice Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51575,68152,391924,Announcer Announcer Civic Duty Necromancer Necromancer Announcer Yearling Caucus Nice Answer Yearling Explainer Yearling Revival Nice Answer Necromancer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51576,43484,1099174,NULL,NULL,NULL,0,NULL,NULL 51577,301242,1501272,NULL,NULL,NULL,0,NULL,NULL 51578,218199,563177,Promoter Nice Question Yearling Famous Question Custodian Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51579,410334,1043571,NULL,NULL,NULL,0,NULL,NULL 51580,309471,509980,Nice Question Self-Learner Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 51581,220630,444259,Popular Question,NULL,NULL,0,NULL,NULL 51582,884316,1000414,NULL,NULL,NULL,0,NULL,NULL 51583,1293739,681139,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51584,42569,681139,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51585,2710,78436,Good Answer Nice Answer Yearling Popular Question Nice Answer Nice Answer Great Answer Nice Question Good Answer Nice Answer Great Answer Great Answer Good Answer Great Answer Famous Question Good Answer Guru Yearling Good Answer Nice Question Peer Pressure Good Answer Popular Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 51586,11920,16185,Good Question Nice Answer Popular Question Nice Answer Favorite Question Famous Question Yearling Popular Question Famous Question Notable Question Popular Question Favorite Question Announcer Famous Question Famous Question Great Question Yearling Famous Question Famous Question Popular Question Nice Question Disciplined Nice Question Good Answer Great Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51587,876397,498722,NULL,NULL,NULL,0,NULL,NULL 51588,166445,1217162,NULL,NULL,NULL,0,NULL,NULL 51589,62912,856873,Yearling Guru Yearling Autobiographer Organizer Custodian Custodian Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51590,123711,1077537,NULL,NULL,NULL,0,NULL,NULL 51591,394935,985474,NULL,NULL,NULL,0,NULL,NULL 51592,167817,124486,Nice Question Nice Answer Famous Question Notable Question Popular Question javascript Necromancer Nice Question Great Answer Nice Answer Enlightened Notable Question Popular Question Notable Question Famous Question Good Question Popular Question Promoter Benefactor node.js Popular Question Custodian Notable Question Yearling Popular Question Nice Answer Notable Question Guru Nice Question Necromancer Popular Question Popular Question Announcer Nice Question Notable Question Favorite Question Necromancer Nice Answer Necromancer Famous Question Caucus Nice Question Popular Question Custodian Popular Question Nice Answer sql Notable Question Nice Question Announcer Census Notable Question Necromancer Fanatic Great Answer Necromancer Nice Answer Enlightened Necromancer Announcer Good Answer Electorate Nice Answer Necromancer Nice Answer Notable Question Announcer Announcer Announcer Announcer Necromancer Nice Answer Famous Question Announcer Nice Question Yearling Good Answer Necromancer Popular Question Nice Answer Popular Question Caucus Famous Question Announcer Announcer Announcer Popular Question Popular Question Announcer Announcer Nice Question Announcer Announcer Famous Question Announcer Deputy Announcer Announcer Announcer Booster Refiner Popular Question Nice Answer Archaeologist Enlightened Good Question Notable Question Nice Answer Tag Editor Nice Answer Popular Question Notable Question Nice Answer Popular Question Census Announcer Nice Answer Nice Answer Announcer Nice Answer Popular Question Announcer Announcer Famous Question Announcer Famous Question Notable Question Announcer Revival Announcer Nice Answer postgresql Caucus Notable Question Popular Question Notable Question Nice Question Guru Informed Announcer Revival Popular Question Necromancer Nice Question Good Answer Yearling Announcer Announcer Booster Necromancer Nice Answer Nice Question Popular Question Good Question Notable Question Nice Question Popular Question Necromancer Investor Good Answer Nice Answer Necromancer Necromancer Announcer Popular Question Popular Question Popular Question Necromancer Nice Answer Notable Question Announcer,NULL,How do rename column in SQLite database table sqlite alter table pI would need to rename few columns in some tables in SQLite database know that href https stackoverflow com questions 174582 how do rename column in database table using sql similar question has been asked on stackoverflow previously but it was for SQL in general and the case of SQLite was not mentioned ppFrom the SQLite documentation for href http www sqlite org lang altertable html rel noreferrer ALTER TABLE gather that it not possible to do such thing easily single ALTER TABLE statement ppI was wondering someone knew of generic SQL way of doing such thing with SQLite Please consider marking this answer as accepted https stackoverflow com 52346199 124486 h2Answer h2pPOSIX compatible ppre codecommand lt the command gt code prepFor codebash code specific environments ppre codehash lt the command gt For regular commands Or type lt the command gt To check built ins and keywords code preh2Explanation h2pAvoid codewhich code Not only is it an external process you re launching for doing very little meaning builtins like codehash code codetype code or codecommand code are way cheaper you can also rely on the builtins to actually do what you want while the effects of external commands can easily vary from system to system ppWhy care pulliMany operating systems have codewhich code that strongdoesn even set an exit status strong meaning the codeif which foo code won even work there and will strongalways strong report that codefoo code exists even if it doesn note that some POSIX shells appear to do this for codehash code too liliMany operating systems make codewhich code do custom and evil stuff like change the output or even hook into the package manager li ulpSo don use codewhich code Instead use one of these ppre code command foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit type foo gt dev null gt amp echo gt amp require foo but it not installed Aborting exit hash foo gt dev null echo gt amp require foo but it not installed Aborting exit code prep Minor side note some will suggest code2 gt amp code is the same code2 gt dev null code but shorter emthis is untrue em code2 gt amp code closes FD which causes an strongerror strong in the program when it tries to write to stderr which is very different from successfully writing to it and discarding the output and dangerous ppIf your hash bang is code bin sh code then you should care about what POSIX says codetype code and codehash code exit codes aren terribly well defined by POSIX and codehash code is seen to exit successfully when the command doesn exist haven seen this with codetype code yet codecommand code exit status is well defined by POSIX so that one is probably the safest to use ppIf your script uses codebash code though POSIX rules don really matter anymore and both codetype code and codehash code become perfectly safe to use codetype code now has code code to search just the codePATH code and codehash code has the side effect that the command location will be hashed for faster lookup next time you use it which is usually good thing since you probably check for its existence in order to actually use it ppAs simple example here function that runs codegdate code if it exists otherwise codedate code ppre codegnudate if hash gdate gt dev null then gdate else date fi code pre How come you don even mention test which is in POSIX 2008 How do you create random string that suitable for session ID in PostgreSQL postgresql random pI like to make random string for use in session verification using PostgreSQL know can get random number with codeSELECT random code so tried codeSELECT md5 random code but that doesn work How can do this The original question clearly speaks of randomness having value beyond appearance ve updated the title of the question to reflect intent How do you create random string that suitable for session ID in PostgreSQL postgresql random pI like to make random string for use in session verification using PostgreSQL know can get random number with codeSELECT random code so tried codeSELECT md5 random code but that doesn work How can do this Cool let see if can clarify this question because there is legitimate disagreement as to his original intention If his original intention is what assume it was many of these answers need to be adjusted downvoted or retracted And perhaps new question about generating strings for testing purposes or the like should be raised where random ness isn necessary If it not what assume then my answer needs to be catered to the refined question instead pThe answer above does not perform recursive search into the directory though Here what did for recursive search using href https github com coolaj86 node walk rel noreferrer node walk codenpm install walk code ppre codevar walk require walk var files Walker optionsvar walker walk walk test followLinks false walker on file function root stat next Add this file to the list of files files push root stat name next walker on end function console log files code pre For the newer ES7 method see my answer http stackoverflow com 37532027 124486 Any way to force strict mode in node node js pCould not find this answer anywhere but did find several mailing lists where this was discussed these are rather old however and have no idea if this is implemented or not ppIs there anyway to force using strict mode in node js ppWriting code use strict code in all my js files well prefer it being forced to using strict mode rather than adding extra boilerplate If you get chance think you should strongly consider marking this answer my own as accepted because this isn safe it dangerous https stackoverflow com 51970329 124486 How to configure postgresql for the first time linux database postgresql configuration pI have just installed postgresql and specified password during installation When try to do codecreatedb code and specify any password get the message pblockquote pcreatedb could not connect to database postgres FATAL password authentication failed for user blockquotepSame for codecreateuser code ppHow should start Can add myself as user to the database Possible duplicate of How do login and authenticate to Postgresql after fresh install http stackoverflow com questions 2172569 how do login and authenticate to postgresql after fresh install How to configure postgresql for the first time linux database postgresql configuration pI have just installed postgresql and specified password during installation When try to do codecreatedb code and specify any password get the message pblockquote pcreatedb could not connect to database postgres FATAL password authentication failed for user blockquotepSame for codecreateuser code ppHow should start Can add myself as user to the database This is very much the same as this question which was asked year later But believe this one has dangerous primary answer You should not be setting up the postgres user It the SU of PostgreSQL and it opens you up for login attacks against it Create another super user http stackoverflow com questions 2172569 how do login and authenticate to postgresql after fresh install and reserve the locked postgres for UNIX admins with root pThere are two package in Ubuntu that have similar names emnode em and emnodejs em pp codenode code does this pblockquote pDescription en Amateur Packet Radio Node program The node program accepts TCP IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using variety of amateur radio protocols blockquotep codenodejs code does this pblockquote pDescription en Node js event based server side javascript engine Node js is similar in design to and influenced by systems like Ruby Event Machine or Python Twisted It takes the event model bit further it presents the event loop as language construct instead of as library Node js is bundled with several useful libraries to handle server tasks System Events Standard Modules Timers Child Processes POSIX HTTP Multipart Parsing TCP DNS Assert Path URL Query Strings blockquotepFedora also follows similar package naming scheme Because of this the binary in codenodejs code had to be renamed to codenodejs code from the original codenode code However this isn technically kosher and most nodejs programs and libraries installed with npm assume that the node binary is codenode code If you want to get around this the easiest way is just symlink the two together If you take this route don install the codenode code package which handles the Amateur Packet Radio stuff ppre codesudo ln usr bin nodejs usr local bin node code prepAlternatively in the case of node suggest using href https github com tj rel noreferrer coden code and not installing codenode code Just install npm which will install node then remove npm then tell apt to clean it up To do this simply run ppre codesudo apt get install npmsudo npm install nsudo latestsudo apt get purge remove npmsudo apt get autoremove code prepThere are other binary distro managers that even work from shell script like codenvm code but personally prefer coden code Think of coden code like an apt for just one thing the node binary which it installs to code usr local bin code ppWhy are removing npm We re not codeapt get purge remove code can emonly em ever remove things installed by the package manager coden latest code works outside of the package manager There are two npms if you do this polliversion installed by the distro Debian Ubuntu using codeapt get code liliversion installed by coden latest code li olpNo point in having the distro older version And even worse if that version works it can potentially install to different location and have Debian modifications in it that assume Debian install directories It better to use either or but not both Updated with the answer pThere are ways strongwithout dynamic SQL strong ph2Max hex digits h2pThere is no cast from hex numbers in href http www postgresql org docs current interactive datatype character html codetext code representation to numeric type but we can use href http www postgresql org docs current static datatype bit html codebit code as waypoint strong4 bits strong in bit string encode hex digit There is an undocumented cast from bit strings up to codebit 32 code max hex digits to href http www postgresql org docs current interactive datatype numeric html strong codeinteger code strong standard byte integer the internal representation is binary compatible ppre class lang sql prettyprint override codeSELECT lpad hex bit 32 int AS int valFROM VALUES text 100 7fffffff 80000000 deadbeef ffffffff AS hex code prepResult ppre class lang none prettyprint override code int val 15 256 2147483647 2147483648 559038737 code prep4 bytes are enough to encode emall em hex numbers up to digits but codeinteger code in Postgres is signed type so hex numbers strongabove code 7fffffff code strong overflow into strongnegative int strong number This is still unique representation but the emmeaning em is different If that matters switch to codebigint code see below ppFor hex numbers of unknown strongvarying length strong we need to pad emleading em zeros code0 code as demonstrated to cast to codebit 32 code For numbers of known length we can just adapt the length specifier Example with hex digits and codeint code or digits and codebigint code ppre class lang sql prettyprint override codeSELECT deafbee bit 28 int deadbeef bit 32 bigint int4 int8 233503726 3735928559 code preh2Max 16 hex digits h2pUse href http www postgresql org docs current interactive datatype numeric html strong codebigint code strong codeint8 code byte integer for up to 16 hex digits overflowing to negative numbers in the upper half ppre class lang sql prettyprint override codeSELECT lpad hex 16 bit 64 bigint AS int8 valFROM VALUES ff text 7fffffff 80000000 deadbeef 7fffffffffffffff 8000000000000000 ffffffffffffffff ffffffffffffffff123 too long hex code prepResult ppre class lang none prettyprint override code int8 val 255 2147483647 2147483648 3735928559 9223372036854775807 9223372036854775808 code prepFor more than 16 hex digits the least significant characters excess to the right get emtruncated em ppThis cast relies on strongundocumented behavior strong quote href http archives postgresql org pgsql novice 2010 11 msg00093 php Tom Lane here pblockquote pThis is relying on some undocumented behavior of the bit type input converter but see no reason to expect that would break possibly bigger issue is that it requires PG since there wasn text to bit cast before that blockquoteh2UUID for max 32 hex digits h2pThe Postgres href http www postgresql org docs current interactive datatype uuid html codeuuid code data type is strongnot numeric type strong so this deviates from the question asked But it the most efficient type in standard Postgres to store up to 32 hex digits only occupying 16 bytes of storage There is strongdirect cast strong but emexactly em 32 hex digits are required ppre class lang sql prettyprint override codeSELECT blpad hex 32 uuid AS uuid valFROM VALUES ff text deadbeef ffffffffffffffff ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff123 too long hex code prepResult ppre class lang none prettyprint override code uuid val 00000000 0000 0000 0000 0000000000ff 00000000 0000 0000 0000 0000deadbeef 00000000 0000 0000 ffff ffffffffffff ffffffff ffff ffff ffff ffffffffffff ffffffff ffff ffff ffff ffffffffffff code prepAs you can see standard output is string of hex digits with typical separators for UUID ph3md5 hash h3pThis is particularly useful to store strongmd5 hashes strong ppre class lang sql prettyprint override codeSELECT md5 Store hash for long string maybe for index uuid AS md5 hash code prepResult ppre class lang none prettyprint override code md5 hash 02e10e94 e895 616e 8e23 bb7f8025da42 code pre Another method of doing it with pg bignum https stackoverflow com 47724472 124486 pThere description of how to do this at href http sniptools com databases resize column in postgresql table without changing data Resize column in PostgreSQL table without changing data You have to hack the database catalog data The only way to do this officially is with ALTER TABLE and as you ve noted that change will lock and rewrite the entire table while it running ppMake sure you read the href http www postgresql org docs interactive datatype character html Character Types section of the docs before changing this All sorts of weird cases to be aware of here The length check is done when values are stored into the rows If you hack lower limit in there that will not reduce the size of existing values at all You would be wise to do scan over the whole table looking for rows where the length of the field is 40 characters after making the change You ll need to figure out how to truncate those manually so you re back some locks just on oversize ones because if someone tries to update anything on that row it going to reject it as too big now at the point it goes to store the new version of the row Hilarity ensues for the user ppVARCHAR is terrible type that exists in PostgreSQL only to comply with its associated terrible part of the SQL standard If you don care about multi database compatibility consider storing your data as TEXT and add constraint to limits its length Constraints you can change around without this table lock rewrite problem and they can do more integrity checking than just the weak length check For more information about how this works check out https dba stackexchange com questions 189890 does changing the length limit type modifier of varchar result in table or How do you get list of the names of all files present in directory in Node js javascript node js directory listing pI trying to get list of the names of all the files present in directory using Node js want output that is an array of filenames How can do this es7 method with await here http stackoverflow com 37532027 124486 Postgresql password authentication failed for user postgres postgresql ubuntu pgadmin pI have installed PostgreSQL Postgres client and Pgadmin Authentication failed for user postgres for both console client and Pgadmin have typed user as postgres and password postgres because it worked before But now authentication is failed did it before couple of times without this problem What should do And what happens ppre codepsql postgres localhost WPassword for user postgres psql FATAL password authentication failed for user postgres FATAL password authentication failed for user postgres code pre Possible duplicate of How do login and authenticate to Postgresql after fresh install https stackoverflow com questions 2172569 how do login and authenticate to postgresql after fresh install h3 Column Tetris h3pActually you can do strong emsomething em strong but this needs deeper understanding The keyword is strong emalignment padding em strong href https www postgresql org docs current static catalog pg type html rel noreferrer Every data type has specific alignment requirements ppYou can minimize space lost to padding strong embetween columns em strong by ordering them favorably The following extreme example would waste lot of physical disk space ppre codeCREATE TABLE int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 int2 bytes of padding after int2 int8 code prepTo save strong24 bytes strong per row use instead ppre codeCREATE TABLE int8 int8 int8 int8 int2 int2 int2 int2 int2 occupy byte MAXALIGN no padding at the end code prepAs rule of thumb if you put byte columns first then bytes bytes and byte columns last you can go wrong codetext code or codeboolean code do not have alignment restrictions like that some other types do Some types can be href https www postgresql org docs current static storage toast html rel noreferrer compressed or toasted stored out of line or both ppNormally you may save couple of bytes per row at best playing em column tetris em None of this is necessary in most cases But with billions of rows it can mean couple of gigabytes easily ppYou can test the actual column row size with the function href https www postgresql org docs current static functions admin html FUNCTIONS ADMIN DBSIZE rel noreferrer strong codepg column size code strong brBe aware that some data types can use more space in RAM than on disk compressed format So you can get bigger results for constants RAM format than for table columns disk format when testing the same value or row of values vs table row with codepg column size code pp href http www sqlfiddle com 17 84e13 84 rel noreferrer strongSQL Fiddle strong ph3Overhead per tuple row h3p4 bytes per row for the item pointer not subject to above considerations brAnd at least 24 bytes 23 padding for the tuple header href https www postgresql org docs current static storage page layout html rel noreferrer The manual on Database Page Layout pblockquote pThere is fixed size header occupying 23 bytes on most machines followed by an optional null bitmap an optional object ID field and the user data blockquotepFor the padding between header and user data you need to know codeMAXALIGN code on your server typically bytes on 64 bit OS or bytes on 32 bit OS If you are not sure check out href https www postgresql org docs current static app pgcontroldata html rel noreferrer codepg controldata code ppRun the following in your emPostgres binary dir em to get definitive answer ppre code pg controldata path to my dbcluster code prep href https www postgresql org docs current static storage page layout html rel noreferrer The manual pblockquote pThe actual user data columns of the row begins at the offset indicated by codet hoff code which must always be multiple of the codeMAXALIGN code distance for the platform blockquotepSo you typically get the storage optimum by packing data in multiples of bytes ppThere is nothing to gain in the emexample you posted em It already packed tightly bytes of padding after the last codeint2 code bytes at the end You could consolidate the padding to bytes at the end which wouldn change anything ph3Overhead per data page h3pData page size is typically KB Some overhead bloat at this level too Remainders not big enough to fit another tuple and more importantly dead rows or percentage reserved with the href https www postgresql org docs current static sql createtable html SQL CREATETABLE STORAGE PARAMETERS rel noreferrer codeFILLFACTOR code setting ppThere are couple of other factors for size on disk to take into account pulli href https stackoverflow com questions 10885706 how many records can store in mb of postgresql on heroku How many records can store in MB of PostgreSQL on Heroku lili href https stackoverflow com questions 5008753 does not using null in postgresql still use null bitmap in the header lq Does not using NULL in PostgreSQL still use NULL bitmap in the header lili href https dba stackexchange com 43142 3684 Configuring PostgreSQL for read performance li ulh3Array types h3pWith strongarray strong like you were evaluating you would add strong24 bytes of overhead strong for the array type Plus elements of an array occupy space as usual Nothing to gain there As rule of thumb if you put byte columns first then bytes bytes and byte columns last you can go wrong some legit cool advice,1,Appending pushing and removing from JSON array in PostgreSQL arrays postgresql jsonb postgresql array push h2 href https stackoverflow com 30707482 124486 emFor versions less than see this question em h2pI have created table in PostgreSQL using this ppre codeCREATE TEMP TABLE jsontestingAS SELECT id jsondata jsonb FROM VALUES abra value mango apple sample japan china india russia australia must match abra value true apple sample abra false mango apple sample string value mango apple sample must watch AS id jsondata code prepNow what wanted was to pulli strongadd strong Something like emappend to json array em takes in the actual jsondata which is json array and the newString which have to add to that jsondata array and this function should return the updated json array ppre codeUPDATE jsontestingSET jsondata append to json array jsondata newString WHERE id code pre lili strongremove strong value from the json data array one function for removing the value li ulpI tried to search documentation of PostgreSQL but found nothing there,NULL 51593,1620,1493332,Yearling Yearling,NULL,NULL,0,NULL,NULL 51594,50804,804100,html Great Answer Necromancer Nice Question Yearling Popular Question Famous Question Excavator Good Question Self-Learner Nice Answer Enlightened Popular Question Census Revival Yearling Notable Question Notable Question Famous Question Nice Answer Notable Question Popular Question Announcer Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51595,9128,867167,Yearling Scholar Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51596,198619,1191299,Good Question Yearling Caucus Yearling ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 51597,764904,1152074,NULL,NULL,NULL,0,NULL,NULL 51598,371613,188363,Notable Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Famous Question Nice Question Good Question Popular Question Yearling Popular Question Popular Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 51599,125800,632967,NULL,NULL,NULL,0,NULL,NULL 51600,37404,443432,Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 51601,28690,246976,Popular Question Informed,NULL,NULL,0,NULL,NULL 51602,9109,13007,Popular Question Popular Question Notable Question Notable Question Nice Question Caucus,NULL,NULL,0,NULL,NULL 51603,343884,1562674,NULL,NULL,NULL,0,NULL,NULL 51604,3161,182043,Popular Question Editor Commentator Documentation User,NULL,NULL,0,NULL,NULL 51605,424460,1026069,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 51606,893900,1021854,Autobiographer,NULL,NULL,0,NULL,NULL 51607,7802,332849,NULL,NULL,NULL,0,NULL,NULL 51608,572013,295639,Popular Question Popular Question Notable Question Famous Question Inquisitive Investor Notable Question Popular Question Good Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 51609,189069,1176851,NULL,NULL,NULL,0,NULL,NULL 51610,1083404,768019,Revival,NULL,NULL,0,NULL,NULL 51611,7858,708635,Yearling Nice Answer Citizen Patrol Custodian Custodian Custodian Custodian Excavator Proofreader Announcer Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 51612,208550,307817,NULL,NULL,NULL,0,NULL,NULL 51613,474759,805804,NULL,NULL,NULL,0,NULL,NULL 51614,240270,1438694,NULL,NULL,NULL,0,NULL,NULL 51615,375702,872503,NULL,NULL,NULL,0,NULL,NULL 51616,120887,1387825,NULL,NULL,NULL,0,NULL,NULL 51617,3668884,1387825,NULL,NULL,NULL,0,NULL,NULL 51618,269348,1490536,Editor Student Scholar Supporter,NULL,NULL,0,NULL,NULL 51619,285790,3963,Revival Tag Editor Enthusiast Explainer haskell Excavator Nice Answer Nice Answer Custodian Nice Answer Enlightened Mortarboard Nice Answer Proofreader Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened haskell Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Enlightened Revival Disciplined Yearling Good Answer,NULL,NULL,0,NULL,NULL 51620,159585,140150,Self-Learner Notable Question Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 51621,25367,661468,NULL,NULL,NULL,0,NULL,NULL 51622,45761,572409,NULL,NULL,NULL,0,NULL,NULL 51623,680524,295633,NULL,NULL,NULL,0,NULL,NULL 51624,424761,1209744,NULL,NULL,NULL,0,NULL,NULL 51625,220488,65089,NULL,NULL,NULL,0,NULL,NULL 51626,935942,65089,NULL,NULL,NULL,0,NULL,NULL 51627,6164,667158,Yearling Announcer Caucus Revival,NULL,NULL,0,NULL,NULL 51628,499745,1268358,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 51629,177962,233603,NULL,NULL,NULL,0,NULL,NULL 51630,405578,651676,NULL,NULL,NULL,0,NULL,NULL 51631,311432,711333,NULL,NULL,NULL,0,NULL,NULL 51632,98812,461039,NULL,NULL,NULL,0,NULL,NULL 51633,174690,1076678,NULL,NULL,NULL,0,NULL,NULL 51634,6554521,1014272,NULL,NULL,NULL,0,NULL,NULL 51635,609968,251359,Yearling Popular Question,NULL,NULL,0,NULL,NULL 51636,256644,1028155,NULL,NULL,NULL,0,NULL,NULL 51637,865319,413529,Guru Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 51638,431583,847126,Notable Question Nice Answer Popular Question Famous Question Yearling Nice Question Famous Question Popular Question Popular Question Good Answer Good Answer Announcer Nice Answer Enlightened Yearling Nice Answer Revival Notable Question Necromancer Popular Question Yearling Good Answer,NULL,,0,, 51639,345411,835342,NULL,NULL,NULL,0,NULL,NULL 51640,502503,781296,NULL,NULL,NULL,0,NULL,NULL 51641,355872,908357,Editor,NULL,NULL,0,NULL,NULL 51642,468448,1373499,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51643,3176,253921,Tumbleweed Yearling Nice Answer Popular Question Editor Nice Question Announcer Yearling Curious,NULL,NULL,0,NULL,NULL 51644,185144,687684,Yearling Revival Custodian Notable Question Yearling Documentation User,NULL,NULL,0,NULL,NULL 51645,347816,57954,Yearling Famous Question Autobiographer Curious Caucus Good Question Editor Notable Question Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 51646,36540,823002,NULL,NULL,NULL,0,NULL,NULL 51647,76736,892551,Popular Question,NULL,NULL,0,NULL,NULL 51648,358443,137923,NULL,NULL,NULL,0,NULL,NULL 51649,105624,268083,Notable Question Self-Learner Necromancer Yearling Nice Answer Tumbleweed Popular Question Census Yearling Popular Question Good Answer Necromancer Notable Question Nice Answer Good Answer Populist Good Answer Yearling Popular Question Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 51650,299393,1106199,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51651,32418,949672,NULL,NULL,NULL,0,NULL,NULL 51652,3188117,1378959,Enthusiast Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 51653,590677,1378959,Enthusiast Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 51654,118691,520544,Yearling Notable Question,NULL,NULL,0,NULL,NULL 51655,222160,8724,Necromancer Nice Answer Popular Question Yearling Revival Notable Question Nice Answer Nice Answer Notable Question Yearling Tumbleweed Nice Answer Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 51656,513751,909818,Necromancer Student,NULL,NULL,0,NULL,NULL 51657,816122,390388,Popular Question Notable Question Popular Question Notable Question Famous Question Famous Question Popular Question Guru Informed Yearling Popular Question Notable Question Good Question Good Question Nice Answer Caucus Favorite Question Notable Question Stellar Question Famous Question Nice Question Famous Question Good Question Nice Question Great Question Notable Question Famous Question Nice Question Popular Question Nice Question Yearling Caucus Famous Question Notable Question Popular Question Popular Question Documentation User Notable Question Popular Question Great Answer Popular Question Favorite Question Nice Question Great Question Popular Question Caucus Constituent Custodian Popular Question Reviewer Notable Question Famous Question Custodian Famous Question Yearling Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 51658,78030,1464901,NULL,NULL,NULL,0,NULL,NULL 51659,353410,131441,NULL,NULL,NULL,0,NULL,NULL 51660,256171,1484147,NULL,NULL,NULL,0,NULL,NULL 51661,60103,509606,NULL,NULL,NULL,0,NULL,NULL 51662,208167,1068233,Nice Question Popular Question Notable Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 51663,125609,753624,Yearling,NULL,NULL,0,NULL,NULL 51664,1791575,825205,NULL,NULL,NULL,0,NULL,NULL 51665,70344,825205,NULL,NULL,NULL,0,NULL,NULL 51666,15317,731940,Yearling,NULL,NULL,0,NULL,NULL 51667,28152,555384,Notable Question Popular Question Announcer Nice Question Good Answer Notable Question Nice Answer Guru Popular Question Nice Answer Good Answer Guru Nice Answer Great Answer Nice Answer Enlightened Caucus Notable Question Notable Question Popular Question Yearling Nice Question Great Answer Nice Answer Popular Question Guru Announcer Great Answer Yearling Popular Question Nice Answer Notable Question Popular Question Famous Question Good Answer Great Answer,NULL,NULL,0,NULL,NULL 51668,177254,189856,NULL,NULL,NULL,0,NULL,NULL 51669,229691,4590,Guru Popular Question Great Answer Famous Question Notable Question Notable Question Pundit Nice Answer Enlightened Revival Guru Notable Question Yearling Nice Answer Nice Answer Nice Question Self-Learner Nice Question Revival Excavator Nice Question Yearling Custodian Notable Question Census Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 51670,1146610,669091,NULL,NULL,NULL,0,NULL,NULL 51671,41753,212032,NULL,NULL,NULL,0,NULL,NULL 51672,1836912,657193,Notable Question Yearling Favorite Question Notable Question Yearling Civic Duty Nice Question Excavator Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 51673,346394,152651,Popular Question Enthusiast Inquisitive Investor Yearling Popular Question Notable Question Good Question Nice Question Good Question Popular Question Excavator Yearling Necromancer Good Question Notable Question Nice Question Famous Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51674,199268,329150,NULL,NULL,NULL,0,NULL,NULL 51675,178989,496468,NULL,NULL,NULL,0,NULL,NULL 51676,1464008,496468,NULL,NULL,NULL,0,NULL,NULL 51677,8215641,496468,NULL,NULL,NULL,0,NULL,NULL 51678,437286,1015928,Critic Revival Yearling Yearling Revival Revival Revival,NULL,NULL,0,NULL,NULL 51679,19052,554315,Yearling,NULL,NULL,0,NULL,NULL 51680,288132,935755,NULL,NULL,NULL,0,NULL,NULL 51681,77278,153886,Popular Question Popular Question Yearling Organizer Great Answer Nice Answer Popular Question Popular Question Yearling Civic Duty Notable Question Mortarboard Notable Question Guru Yearling,NULL,ulli pThere is no interoperable way to encode non ASCII names in codeContent Disposition code href http greenbytes de tech tc2231 rel noreferrer Browser compatibility is mess lili pThe href http greenbytes de tech webdav rfc5987 html rel noreferrer theoretically correct syntax for use of UTF in codeContent Disposition code is very weird codefilename UTF foo c3 a4 code yes that an asterisk and no quotes except an empty single quote in the middle lili pThis header is kinda not quite standard href http www w3 org Protocols rfc2616 rfc2616 sec19 html sec19 rel noreferrer HTTP spec acknowledges its existence but doesn require clients to support it li ulpThere is simple and very robust alternative stronguse URL that contains the filename you want strong ppWhen the name after the last slash is the one you want you don need any extra headers ppThis trick works ppre code real script php fake filename doc code prepAnd if your server supports URL rewriting codemod rewrite code in Apache then you can fully hide the script part ppCharacters in URLs should be in UTF urlencoded byte by byte ppre code mot C3 B6rhead motörhead code pre thousand times Yes You will seriously win time with this More even some Android browsers will flat out ignore the Content Disposition and create very interesting filenames instead they will be generated from your path So the only solution for keeping one sanity is just setting Content Disposition attachment and passing the desired filename as the last path component,0,NULL,NULL 51682,53253,183946,NULL,NULL,NULL,0,NULL,NULL 51683,224967,1112366,NULL,NULL,NULL,0,NULL,NULL 51684,287443,966665,NULL,NULL,NULL,0,NULL,NULL 51685,41208,978157,NULL,NULL,NULL,0,NULL,NULL 51686,1192422,1135045,NULL,NULL,NULL,0,NULL,NULL 51687,1079116,963231,Tag Editor Organizer Yearling Nice Answer Necromancer Tenacious Yearling Yearling scala Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51688,2361,309854,NULL,NULL,NULL,0,NULL,NULL 51689,308073,971592,Popular Question Notable Question Good Question Nice Question Popular Question Necromancer Famous Question Favorite Question Popular Question Nice Question Announcer Notable Question Booster Popular Question Notable Question Famous Question Great Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Notable Question Announcer Notable Question angularjs Nice Answer Enlightened Popular Question Nice Answer Announcer Popular Question Yearling Good Question Popular Question Good Question Nice Answer Popular Question Nice Question Good Question Announcer Good Question Popular Question Announcer Good Question Announcer Publicist Popular Question Announcer Famous Question Famous Question Booster Nice Answer Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling java Announcer Announcer Announcer Good Question Good Answer Revival Nice Answer Favorite Question Famous Question Notable Question Notable Question Notable Question Notable Question Announcer Good Answer Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51690,31016,126329,Guru Yearling Good Answer Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Taxonomist Yearling Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 51691,1673666,368788,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 51692,438154,511244,Good Answer Yearling Populist Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51693,7238,1397498,NULL,NULL,NULL,0,NULL,NULL 51694,15851,5777,Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Nice Answer Yearling Notable Question Great Question Stellar Question Nice Question Popular Question Popular Question Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 51695,339069,774459,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51696,3584,560234,NULL,NULL,NULL,0,NULL,NULL 51697,13280,581658,Teacher Revival Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51698,501131,1534400,NULL,NULL,NULL,0,NULL,NULL 51699,66870,1534400,NULL,NULL,NULL,0,NULL,NULL 51700,833528,889298,Notable Question,NULL,NULL,0,NULL,NULL 51701,221885,966061,Yearling Necromancer Census Good Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 51702,67066,1055986,Student Scholar Tumbleweed Popular Question Popular Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 51703,649258,729785,Popular Question Good Answer Yearling Custodian Famous Question Popular Question Popular Question Custodian Informed Yearling Good Question Notable Question Custodian Yearling Tenacious Nice Question Yearling Famous Question django,NULL,NULL,0,NULL,NULL 51704,412983,704490,NULL,NULL,NULL,0,NULL,NULL 51705,170805,534316,NULL,NULL,NULL,0,NULL,NULL 51706,165254,8804,Popular Question Nice Question Good Answer Yearling Nice Question Notable Question Yearling Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 51707,341549,11562,Notable Question Good Answer Yearling Popular Question Famous Question Nice Answer Necromancer Documentation User Popular Question Famous Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 51708,224463,672846,NULL,NULL,NULL,0,NULL,NULL 51709,349765,1302399,NULL,NULL,NULL,0,NULL,NULL 51710,442582,1438609,NULL,NULL,NULL,0,NULL,NULL 51711,2731925,771361,NULL,NULL,NULL,0,NULL,NULL 51712,52204,498386,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 51713,188061,6726,Enlightened Guru Great Answer Guru Yearling Nice Answer Good Answer Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 51714,1088627,955804,Student Supporter Revival Custodian Necromancer Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 51715,435709,1390386,NULL,NULL,NULL,0,NULL,NULL 51716,138461,394879,NULL,NULL,NULL,0,NULL,NULL 51717,166739,822085,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 51718,374703,647549,Popular Question Yearling,NULL,NULL,0,NULL,NULL 51719,110143,245785,Yearling Good Answer Necromancer Nice Answer Yearling Nice Answer Yearling Excavator Student Good Answer,NULL,NULL,0,NULL,NULL 51720,78645,30480,Yearling Announcer Necromancer Nice Answer Nice Answer Yearling Nice Answer Enlightened Great Answer Yearling,NULL,NULL,1,NULL,How to resize NSImage objective macos jpeg nsimage pI have codeNSBitmapImageRep code which is codeW codexcodeH code size And create codeNSImage code and do codeaddRepresentation code Then need to resize codeNSImage code tried codesetSize code method but it doesn works What should do pThomas Johannesmeyer answer using codelockFocus code doesn work as you may intend on Retina HiDPI screens it resizes to the desired strongpoints strong in the screen native scale not strongpixels strong pulliIf you re resizing for display strongon screen strong use href https stackoverflow com 17396521 30480 that method liliIf you re resizing for stronga file strong with exact pixel dimensions it ll be twice as large when running on Retina 2x DPI screens li ulpThis method cobbled together from various answers including some in href https stackoverflow com questions 17507170 how to save png file from nsimage retina issues this related question resizes to the specified strongpixel dimensions strong regardless of current screen DPI ppre code NSImage resizedImage NSImage sourceImage toPixelDimensions NSSize newSize if sourceImage isValid return nil NSBitmapImageRep rep NSBitmapImageRep alloc initWithBitmapDataPlanes NULL pixelsWide newSize width pixelsHigh newSize height bitsPerSample samplesPerPixel hasAlpha YES isPlanar NO colorSpaceName NSCalibratedRGBColorSpace bytesPerRow bitsPerPixel rep size newSize NSGraphicsContext saveGraphicsState NSGraphicsContext setCurrentContext NSGraphicsContext graphicsContextWithBitmapImageRep rep sourceImage drawInRect NSMakeRect newSize width newSize height fromRect NSZeroRect operation NSCompositeCopy fraction NSGraphicsContext restoreGraphicsState NSImage newImage NSImage alloc initWithSize newSize newImage addRepresentation rep return newImage code pre 51721,397174,1585,Nice Answer Guru Guru Popular Question Good Question Guru Notable Question Good Answer Great Question Good Answer Yearling Nice Question Nice Question Popular Question Great Answer Good Answer Great Question Guru Favorite Question Favorite Question Nice Question Yearling Notable Question Famous Question Popular Question Custodian Promoter Nice Question Benefactor Nice Answer Enlightened Popular Question Popular Question Notable Question Famous Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 51722,3581,273849,NULL,NULL,NULL,0,NULL,NULL 51723,12646,43140,Popular Question Steward Nice Answer Enlightened Popular Question Popular Question Custodian Great Answer Notable Question Notable Question Announcer Favorite Question Notable Question Necromancer Notable Question Notable Question Nice Question Nice Answer c# Great Answer Good Answer Caucus Constituent Popular Question Yearling Popular Question Nice Question Good Answer Populist Notable Question Popular Question Famous Question Nice Question Good Answer Notable Question Famous Question Notable Question Great Question Caucus Constituent Custodian Great Answer Notable Question Popular Question Famous Question Yearling Good Answer Census Nice Question Nice Answer Guru Good Question Caucus Constituent Nice Question Nice Answer Nice Answer Good Answer Famous Question,NULL,pNot emquite em the solution was after have preferred global setting but there is now way to filter out requests from extensions href https code google com chromium issues detail id 239401 c11 rel noreferrer as mentioned by commenter on the issue originally opened ppIn the network tab filter box enter the string code scheme chrome extension code as shown below pp img src https stack imgur com caPlI png alt Dev tools filter input screenshot ppThis is case sensitive so make sure it lowercase Doing this will hide all resources which were requested by extensions As far as aware there is currently no way to make this the default behaviour although as far as concerned it should be pNot emquite em the solution was after have preferred global setting but there is now way to filter out requests from extensions href https code google com chromium issues detail id 239401 c11 rel noreferrer as mentioned by commenter on the issue originally opened ppIn the network tab filter box enter the string code scheme chrome extension code as shown below pp img src https stack imgur com caPlI png alt Dev tools filter input screenshot ppThis is case sensitive so make sure it lowercase Doing this will hide all resources which were requested by extensions The colon is just there to indicate that you enter the string as shown in the example screenshot not as part of the string itself However can see how this might have been confusing hopefully my latest edit makes this clearer,0,NULL,NULL 51724,48658,119967,Nice Answer Enlightened Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 51725,726427,1101070,Nice Answer Nice Answer Nice Answer Announcer Announcer Yearling Good Answer Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 51726,304828,413755,Teacher Documentation User,NULL,NULL,0,NULL,NULL 51727,42979,584985,NULL,NULL,NULL,0,NULL,NULL 51728,454575,923368,Famous Question,NULL,NULL,0,NULL,NULL 51729,83125,216238,Notable Question Notable Question Popular Question Yearling Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Critic Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 51730,181412,475722,NULL,NULL,NULL,0,NULL,NULL 51731,20214,841650,NULL,NULL,NULL,0,NULL,NULL 51732,301231,221228,Yearling Necromancer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 51733,1077902,82966,NULL,NULL,NULL,0,NULL,NULL 51734,12164,296062,NULL,NULL,NULL,0,NULL,NULL 51735,1227082,1146607,NULL,NULL,NULL,0,NULL,NULL 51736,5942854,1146607,NULL,NULL,NULL,0,NULL,NULL 51737,54750,979470,Famous Question Popular Question Curious Yearling Critic Popular Question Notable Question Nice Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 51738,33811,208270,NULL,NULL,NULL,0,NULL,NULL 51739,1162609,912534,NULL,NULL,NULL,0,NULL,NULL 51740,1380458,27581,Self-Learner Nice Answer Nice Answer Necromancer Nice Answer Necromancer Electorate Popular Question Nice Answer Popular Question Yearling Revival Good Answer Notable Question Nice Answer Nice Question Necromancer Census Notable Question Nice Answer Nice Answer Good Answer Necromancer Announcer Nice Answer Necromancer Nice Answer Nice Answer Necromancer Popular Question Yearling Good Question Good Answer Nice Answer Nice Answer Popular Question Nice Question Necromancer Famous Question Popular Question Nice Answer Necromancer Famous Question Popular Question Revival Notable Question Nice Question Notable Question Good Answer Good Answer Announcer Popular Question Yearling Notable Question Announcer,NULL,strongUpdate 2016 23 strong ppIf you find this answer useful you may be interested in href https github com mkropat MlkPwgen rel noreferrer simple 500 SLOC password generation library published ppre codeInstall Package MlkPwgen code prepThen you can generate random strings just like in the answer below ppre codevar str PasswordGenerator Generate length 10 allowed Sets Alphanumerics code prepOne advantage of the library is that the code is better factored out so you can use secure randomness href http www codetinkerer com MlkPwgen net html e684d93b fe9b ca4a f0a7 c23af59ab5e9 htm rel noreferrer for more than generating strings Check out href https github com mkropat MlkPwgen rel noreferrer the project site for more details ph3Original Answer h3pSince no one has provided secure code yet post the following in case anyone finds it useful ppre codestring RandomString int length string allowedChars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 if length lt throw new ArgumentOutOfRangeException length length cannot be less than zero if string IsNullOrEmpty allowedChars throw new ArgumentException allowedChars may not be empty const int byteSize 0x100 var allowedCharSet new HashSet lt char gt allowedChars ToArray if byteSize lt allowedCharSet Length throw new ArgumentException String Format allowedChars may contain no more than characters byteSize Guid NewGuid and System Random are not particularly random By using cryptographically secure random number generator the caller is always protected regardless of use using var rng new System Security Cryptography RandomNumberGenerator Create var result new StringBuilder var buf new byte 128 while result Length lt length rng GetBytes buf for var lt buf Length amp amp result Length lt length Divide the byte into allowedCharSet sized groups If the random value falls into the last group and the last group is too small to choose from the entire allowedCharSet ignore the value in order to avoid biasing the result var outOfRangeStart byteSize byteSize allowedCharSet Length if outOfRangeStart lt buf continue result Append allowedCharSet buf allowedCharSet Length return result ToString code prepThanks to Ahmad for pointing out how to get the code working on NET Core Thanks ve updated the answer strongUpdate 2016 23 strong ppIf you find this answer useful you may be interested in href https github com mkropat MlkPwgen rel noreferrer simple 500 SLOC password generation library published ppre codeInstall Package MlkPwgen code prepThen you can generate random strings just like in the answer below ppre codevar str PasswordGenerator Generate length 10 allowed Sets Alphanumerics code prepOne advantage of the library is that the code is better factored out so you can use secure randomness href http www codetinkerer com MlkPwgen net html e684d93b fe9b ca4a f0a7 c23af59ab5e9 htm rel noreferrer for more than generating strings Check out href https github com mkropat MlkPwgen rel noreferrer the project site for more details ph3Original Answer h3pSince no one has provided secure code yet post the following in case anyone finds it useful ppre codestring RandomString int length string allowedChars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 if length lt throw new ArgumentOutOfRangeException length length cannot be less than zero if string IsNullOrEmpty allowedChars throw new ArgumentException allowedChars may not be empty const int byteSize 0x100 var allowedCharSet new HashSet lt char gt allowedChars ToArray if byteSize lt allowedCharSet Length throw new ArgumentException String Format allowedChars may contain no more than characters byteSize Guid NewGuid and System Random are not particularly random By using cryptographically secure random number generator the caller is always protected regardless of use using var rng new System Security Cryptography RandomNumberGenerator Create var result new StringBuilder var buf new byte 128 while result Length lt length rng GetBytes buf for var lt buf Length amp amp result Length lt length Divide the byte into allowedCharSet sized groups If the random value falls into the last group and the last group is too small to choose from the entire allowedCharSet ignore the value in order to avoid biasing the result var outOfRangeStart byteSize byteSize allowedCharSet Length if outOfRangeStart lt buf continue result Append allowedCharSet buf allowedCharSet Length return result ToString code prepThanks to Ahmad for pointing out how to get the code working on NET Core the only purpose of using set is to prevent user from passing in string that contains multiples of the same character which could bias the output unintentionally If you trust callers to not make that mistake you can safely omit converting to set pI think it can be done without looping by using GUID for the directory name ppre codefunction New TemporaryDirectory parent System IO Path GetTempPath string name System Guid NewGuid New Item ItemType Directory Path Join Path parent name code preh3Original Attempt With GetRandomFileName h3pHere my port of href https stackoverflow com 278457 27581 this solution ppre codefunction New TemporaryDirectory parent System IO Path GetTempPath name System IO Path GetRandomFileName New Item ItemType Directory Path Join Path parent name code preh3Analysis Of Possibility Of Collision h3pHow likely is it that codeGetRandomFileName code will return name that already exists in the temp folder pulliFilenames are returned in the form codeXXXXXXXX XXX code where can be either lowercase letter or digit liliThat gives us 36 11 combinations which in bits is around 56 liliInvoking the href https en wikipedia org wiki Birthday problem rel noreferrer birthday paradox we expect collision once we got to around 28 items in the folder which is about 360 million lili href https technet microsoft com en us library cc781134 28WS 10 29 aspx w2k3tr ntfs how dhao rel noreferrer NTFS supports about 32 items in folder so it is possible to get collision using codeGetRandomFileName code li ulp codeNewGuid code on the other hand href https en wikipedia org wiki Universally unique identifier Version 28random 29 rel noreferrer can be one of 122 possibilities making collisions all but impossible Great question mistakenly thought you needed Force to create non existent parent dirs but was wrong so updated the answer,1,Create temporary directory in PowerShell powershell temporary directory href http blogs technet com heyscriptingguy archive 2015 08 05 create temporary files with powershell aspx rel noreferrer PowerShell introduces the codeNew TemporaryFile code cmdlet which is handy How can do the same thing but instead of file create directory Is there codeNew TemporaryDirectory code cmdlet,Create temporary directory in PowerShell powershell temporary directory href http blogs technet com heyscriptingguy archive 2015 08 05 create temporary files with powershell aspx rel noreferrer PowerShell introduces the codeNew TemporaryFile code cmdlet which is handy How can do the same thing but instead of file create directory Is there codeNew TemporaryDirectory code cmdlet pI think it can be done without looping by using GUID for the directory name ppre codefunction New TemporaryDirectory parent System IO Path GetTempPath string name System Guid NewGuid New Item ItemType Directory Path Join Path parent name code preh3Original Attempt With GetRandomFileName h3pHere my port of href https stackoverflow com 278457 27581 this solution ppre codefunction New TemporaryDirectory parent System IO Path GetTempPath name System IO Path GetRandomFileName New Item ItemType Directory Path Join Path parent name code preh3Analysis Of Possibility Of Collision h3pHow likely is it that codeGetRandomFileName code will return name that already exists in the temp folder pulliFilenames are returned in the form codeXXXXXXXX XXX code where can be either lowercase letter or digit liliThat gives us 36 11 combinations which in bits is around 56 liliInvoking the href https en wikipedia org wiki Birthday problem rel noreferrer birthday paradox we expect collision once we got to around 28 items in the folder which is about 360 million lili href https technet microsoft com en us library cc781134 28WS 10 29 aspx w2k3tr ntfs how dhao rel noreferrer NTFS supports about 32 items in folder so it is possible to get collision using codeGetRandomFileName code li ulp codeNewGuid code on the other hand href https en wikipedia org wiki Universally unique identifier Version 28random 29 rel noreferrer can be one of 122 possibilities making collisions all but impossible 51741,840322,1476166,Populist Yearling Guru Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51742,701880,406142,NULL,NULL,NULL,0,NULL,NULL 51743,937090,542882,NULL,NULL,NULL,0,NULL,NULL 51744,814194,1314104,NULL,NULL,NULL,0,NULL,NULL 51745,153813,377059,NULL,NULL,NULL,0,NULL,NULL 51746,50582,395976,Necromancer Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 51747,50268,28768,Nice Answer Good Answer nsurl Yearling Notable Question Nice Answer Revival Yearling macos Revival Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 51748,127503,349755,Census Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 51749,232355,959249,NULL,NULL,NULL,0,NULL,NULL 51750,17046,313873,Guru Custodian Promoter Yearling scala Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 51751,9276,731714,NULL,NULL,NULL,0,NULL,NULL 51752,8302955,682488,Popular Question,NULL,NULL,0,NULL,NULL 51753,48593,1391418,NULL,NULL,NULL,0,NULL,NULL 51754,82334,247648,Yearling Yearling Caucus Nice Answer Enlightened Yearling Necromancer Organizer,NULL,NULL,0,NULL,NULL 51755,297981,231002,Notable Question Nice Answer Favorite Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Good Answer Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Guru Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Good Question Notable Question Nice Answer Popular Question Notable Question Nice Answer Enlightened Guru Nice Question Popular Question Nice Answer Famous Question Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Good Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Nice Question,NULL,How do recompile an Elixir project and reload it from within iex elixir mix pI currently learning Elixir by going through the OTP and mix tutorial on the elixir lang website and having trouble finding out how to recompile and reload the project from within the shell ppIn Erlang would do codemake all load code and it would compile and load any changes that occurred However in codeiex code that always says code up to date code which does make sense as Elixir uses mix for it compiling needs ppI can find any equivalent from within iex hadn known about but that still isn equivalent have to manually enter each module have updated code for where as make all load would auto detect updated modules and recompile reload them,1,How do recompile an Elixir project and reload it from within iex elixir mix pI currently learning Elixir by going through the OTP and mix tutorial on the elixir lang website and having trouble finding out how to recompile and reload the project from within the shell ppIn Erlang would do codemake all load code and it would compile and load any changes that occurred However in codeiex code that always says code up to date code which does make sense as Elixir uses mix for it compiling needs ppI can find any equivalent from within iex,NULL 51756,48414,815198,NULL,NULL,NULL,0,NULL,NULL 51757,33616,43363,NULL,NULL,NULL,0,NULL,NULL 51758,465074,779950,NULL,NULL,NULL,0,NULL,NULL 51759,2345090,486298,Custodian Custodian Custodian Scholar Custodian Documentation User Tumbleweed Promoter Popular Question,NULL,NULL,0,NULL,NULL 51760,198440,1201104,Yearling Caucus Yearling Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 51761,1793763,1318014,NULL,NULL,NULL,0,NULL,NULL 51762,27339,625566,NULL,NULL,NULL,0,NULL,NULL 51763,161975,1240709,NULL,NULL,NULL,0,NULL,NULL 51764,39289,704623,NULL,NULL,NULL,0,NULL,NULL 51765,219200,223147,Curious Caucus Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 51766,181830,831971,NULL,NULL,NULL,0,NULL,NULL 51767,259733,924677,Nice Question Notable Question Notable Question Notable Question Famous Question Popular Question Yearling Self-Learner Nice Answer Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Good Question Popular Question Popular Question Notable Question Famous Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 51768,608937,1377292,Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51769,138527,386863,Famous Question Famous Question Notable Question Yearling Famous Question Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51770,1970345,763803,NULL,NULL,NULL,0,NULL,NULL 51771,60393,635882,Custodian Announcer Notable Question Census Nice Question,NULL,NULL,0,NULL,NULL 51772,1195794,345296,Yearling Good Question,NULL,NULL,0,NULL,NULL 51773,231830,1052378,NULL,NULL,NULL,0,NULL,NULL 51774,63926,536984,Necromancer Necromancer Good Answer Yearling Necromancer Nice Answer Enlightened Revival Nice Answer Good Answer Caucus Constituent Necromancer Citizen Patrol Nice Answer Good Answer Yearling Great Answer Necromancer Nice Answer Enlightened Guru Necromancer Good Answer,NULL,NULL,0,NULL,NULL 51775,30250,272123,Popular Question Notable Question Yearling Famous Question Revival Yearling Nice Question,NULL,NULL,0,NULL,NULL 51776,69401,231788,Nice Question Nice Answer Good Question Popular Question Good Answer Yearling Announcer Notable Question Popular Question Pundit Nice Answer Enlightened Nice Question Yearling Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51777,413791,631628,Nice Answer Yearling Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 51778,5835220,3214,Curious Yearling,NULL,NULL,0,NULL,NULL 51779,209494,90924,NULL,NULL,NULL,0,NULL,NULL 51780,391013,670086,NULL,NULL,NULL,0,NULL,NULL 51781,774187,1375854,NULL,NULL,NULL,0,NULL,NULL 51782,4372,475654,NULL,NULL,NULL,0,NULL,NULL 51783,112596,354241,NULL,NULL,NULL,0,NULL,NULL 51784,232518,592877,NULL,NULL,NULL,0,NULL,NULL 51785,2839,70076,Notable Question Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51786,13486,668140,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 51787,53188,499521,Nice Answer Yearling Famous Question Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 51788,467439,11792,Famous Question Nice Question Documentation Pioneer Nice Answer Nice Answer Yearling Nice Question Notable Question Guru Great Answer Necromancer Announcer Good Question Caucus Yearling Documentation User Populist Custodian Census Guru Caucus Famous Question Necromancer Yearling Good Answer,NULL,pAfter some searching here is what found ppIf you’re using Ruby to open connections to an external server over https eg the Facebook Graph API you may run into the following error ppre codeOpenSSL SSL SSLError SSL connectreturned 1errno 0state SSLv3readservercertificateB certificateverifyfailed code prepThis error is due to Ruby not being able to find the certification authority certificates CA Certs used to verify the authenticity of secured web servers The solution is to download the this href http curl haxx se ca ca bundle crt ca bundle crt into your application’s codelib code directory Then add the following code to codeconfig initializers fix ssl rb code ppre coderequire open uri require net https module Net class HTTP alias method original use ssl use ssl def use ssl flag self ca file Rails root join lib ca bundle crt to self verify mode OpenSSL SSL VERIFY PEER self original use ssl flag end endend code prepThis should force ruby to use the CA bundle from your application’s lib directory ppTaken from href http jimneath org 2011 10 19 ruby ssl certificate verify failed html http jimneath org 2011 10 19 ruby ssl certificate verify failed html pp strongUPDATE strong ppYou may need to use codeself ca path code instead of codeself ca file code depending on your system The provided answer is not tested on Windows only on Linux Unfortunately do not have Windows machine where can test,0,NULL,NULL 51789,434119,145037,NULL,NULL,NULL,0,NULL,NULL 51790,117633,808019,Yearling Guru Popular Question Nice Answer Nice Answer Popular Question Civic Duty Yearling Good Answer Nice Answer Enlightened Popular Question java Nice Answer Enlightened Custodian Yearling Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 51791,31513,1269513,Yearling Nice Answer Nice Answer Enlightened Good Answer Great Answer Yearling Great Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 51792,9263,55578,NULL,NULL,NULL,0,NULL,NULL 51793,203668,1250028,Necromancer,NULL,NULL,0,NULL,NULL 51794,451334,794519,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 51795,276704,284475,Nice Answer Notable Question Yearling Favorite Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 51796,76844,294387,Notable Question,NULL,NULL,0,NULL,NULL 51797,4709288,432348,NULL,NULL,NULL,0,NULL,NULL 51798,160044,432348,NULL,NULL,NULL,0,NULL,NULL 51799,87331,261114,Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 51800,243095,1350262,NULL,NULL,NULL,0,NULL,NULL 51801,8131,887478,NULL,NULL,NULL,0,NULL,NULL 51802,3831924,856064,Yearling,NULL,NULL,0,NULL,NULL 51803,410150,856064,Yearling,NULL,NULL,0,NULL,NULL 51804,65593,158932,NULL,NULL,NULL,0,NULL,NULL 51805,162867,260550,NULL,NULL,NULL,0,NULL,NULL 51806,3621912,260550,NULL,NULL,NULL,0,NULL,NULL 51807,28081,1114002,Popular Question Notable Question Notable Question Caucus Yearling Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 51808,159712,398541,Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 51809,59208,443316,Announcer Yearling Custodian Good Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51810,145754,852955,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 51811,79974,184061,Good Question Yearling Nice Answer Announcer Popular Question,NULL,NULL,0,NULL,NULL 51812,886767,1225211,NULL,NULL,NULL,0,NULL,NULL 51813,848666,24775,NULL,NULL,NULL,0,NULL,NULL 51814,86272,486182,Teacher Enthusiast Revival Announcer Commentator,NULL,NULL,0,NULL,NULL 51815,460317,408619,NULL,NULL,NULL,0,NULL,NULL 51816,164514,1326952,NULL,NULL,NULL,0,NULL,NULL 51817,7210,1432249,Yearling Organizer,NULL,NULL,0,NULL,NULL 51818,30716,167661,NULL,NULL,NULL,0,NULL,NULL 51819,8730,624787,Yearling Curious Yearling Announcer Necromancer Yearling Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 51820,11746,141590,Yearling Yearling,NULL,NULL,0,NULL,NULL 51821,548229,63787,Yearling,NULL,NULL,0,NULL,NULL 51822,221018,1105856,Editor Commentator Scholar Student,NULL,NULL,0,NULL,NULL 51823,60377,1305386,NULL,NULL,NULL,0,NULL,NULL 51824,3181527,425782,Nice Answer Tenacious Yearling Popular Question Caucus Notable Question Yearling Civic Duty Informed Revival Announcer Caucus Custodian Nice Question Necromancer Yearling Custodian,NULL,pThe proxy can add extra or overwrite headers to requests it receives and passes through to the back end These can be used to communicate information to the back end ppSo far ve seen couple used for forcing the use of https in URL scheme ppre codeX Forwarded Protocol httpsX Forwarded Ssl onX Url Scheme https code prepAnd href https en wikipedia org wiki List of HTTP header fields Common non standard request headers rel noreferrer wikipedia also mentions ppre code de facto standard Forwarded Proto https Non standard header used by Microsoft applications and load balancers Front End Https on code prepThis what you should add to the VirtualHost on href questions tagged apache class post tag title show questions tagged 39 apache 39 rel tag apache emother proxies should have similar functionality em ppre codeRequestHeader set FORWARDED PROTOCOL httpsRequestHeader set Forwarded Ssl on etc code prepI think it best to set them all or set one that works and remove the other known ones To prevent evil clients messing with them For anyone who runs into this you likely want Forwarded Proto rather than Forwarded Protocol Protocol is non standard whereas AWS RFC 7239 docker nginx proxy and many others use Proto Also googlebattle actually shows Proto winning by large margin if you quote the search terms,0,NULL,NULL 51825,3594355,425782,Nice Answer Tenacious Yearling Popular Question Caucus Notable Question Yearling Civic Duty Informed Revival Announcer Caucus Custodian Nice Question Necromancer Yearling Custodian,NULL,pThe proxy can add extra or overwrite headers to requests it receives and passes through to the back end These can be used to communicate information to the back end ppSo far ve seen couple used for forcing the use of https in URL scheme ppre codeX Forwarded Protocol httpsX Forwarded Ssl onX Url Scheme https code prepAnd href https en wikipedia org wiki List of HTTP header fields Common non standard request headers rel noreferrer wikipedia also mentions ppre code de facto standard Forwarded Proto https Non standard header used by Microsoft applications and load balancers Front End Https on code prepThis what you should add to the VirtualHost on href questions tagged apache class post tag title show questions tagged 39 apache 39 rel tag apache emother proxies should have similar functionality em ppre codeRequestHeader set FORWARDED PROTOCOL httpsRequestHeader set Forwarded Ssl on etc code prepI think it best to set them all or set one that works and remove the other known ones To prevent evil clients messing with them For anyone who runs into this you likely want Forwarded Proto rather than Forwarded Protocol Protocol is non standard whereas AWS RFC 7239 docker nginx proxy and many others use Proto Also googlebattle actually shows Proto winning by large margin if you quote the search terms,0,NULL,NULL 51826,88049,425782,Nice Answer Tenacious Yearling Popular Question Caucus Notable Question Yearling Civic Duty Informed Revival Announcer Caucus Custodian Nice Question Necromancer Yearling Custodian,NULL,pThe proxy can add extra or overwrite headers to requests it receives and passes through to the back end These can be used to communicate information to the back end ppSo far ve seen couple used for forcing the use of https in URL scheme ppre codeX Forwarded Protocol httpsX Forwarded Ssl onX Url Scheme https code prepAnd href https en wikipedia org wiki List of HTTP header fields Common non standard request headers rel noreferrer wikipedia also mentions ppre code de facto standard Forwarded Proto https Non standard header used by Microsoft applications and load balancers Front End Https on code prepThis what you should add to the VirtualHost on href questions tagged apache class post tag title show questions tagged 39 apache 39 rel tag apache emother proxies should have similar functionality em ppre codeRequestHeader set FORWARDED PROTOCOL httpsRequestHeader set Forwarded Ssl on etc code prepI think it best to set them all or set one that works and remove the other known ones To prevent evil clients messing with them For anyone who runs into this you likely want Forwarded Proto rather than Forwarded Protocol Protocol is non standard whereas AWS RFC 7239 docker nginx proxy and many others use Proto Also googlebattle actually shows Proto winning by large margin if you quote the search terms,0,NULL,NULL 51827,5453774,425782,Nice Answer Tenacious Yearling Popular Question Caucus Notable Question Yearling Civic Duty Informed Revival Announcer Caucus Custodian Nice Question Necromancer Yearling Custodian,NULL,pThe proxy can add extra or overwrite headers to requests it receives and passes through to the back end These can be used to communicate information to the back end ppSo far ve seen couple used for forcing the use of https in URL scheme ppre codeX Forwarded Protocol httpsX Forwarded Ssl onX Url Scheme https code prepAnd href https en wikipedia org wiki List of HTTP header fields Common non standard request headers rel noreferrer wikipedia also mentions ppre code de facto standard Forwarded Proto https Non standard header used by Microsoft applications and load balancers Front End Https on code prepThis what you should add to the VirtualHost on href questions tagged apache class post tag title show questions tagged 39 apache 39 rel tag apache emother proxies should have similar functionality em ppre codeRequestHeader set FORWARDED PROTOCOL httpsRequestHeader set Forwarded Ssl on etc code prepI think it best to set them all or set one that works and remove the other known ones To prevent evil clients messing with them For anyone who runs into this you likely want Forwarded Proto rather than Forwarded Protocol Protocol is non standard whereas AWS RFC 7239 docker nginx proxy and many others use Proto Also googlebattle actually shows Proto winning by large margin if you quote the search terms,0,NULL,NULL 51828,394114,1530754,Nice Answer Yearling Famous Question Nice Answer Nice Answer Announcer Yearling Popular Question Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 51829,409881,1555828,Commentator Enthusiast,NULL,NULL,0,NULL,NULL 51830,172231,489493,NULL,NULL,NULL,0,NULL,NULL 51831,208954,727236,NULL,NULL,NULL,0,NULL,NULL 51832,18703,448352,NULL,NULL,NULL,0,NULL,NULL 51833,53846,31520,Civic Duty Good Answer Nice Answer Enlightened Good Answer Yearling Caucus Constituent Proofreader Caucus Constituent Tag Editor Yearling macos Census Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 51834,3017258,1499583,NULL,NULL,NULL,0,NULL,NULL 51835,1367505,1499583,NULL,NULL,NULL,0,NULL,NULL 51836,2030096,1153414,NULL,NULL,NULL,0,NULL,NULL 51837,167806,1355912,Nice Answer,NULL,NULL,0,NULL,NULL 51838,16100,698877,NULL,NULL,NULL,0,NULL,NULL 51839,8693,1333181,NULL,NULL,NULL,0,NULL,NULL 51840,574544,519109,NULL,NULL,NULL,0,NULL,NULL 51841,162047,907877,NULL,NULL,NULL,0,NULL,NULL 51842,127874,148782,Informed,NULL,NULL,0,NULL,NULL 51843,221159,601425,Notable Question,NULL,NULL,0,NULL,NULL 51844,830967,1023230,Popular Question Popular Question Good Question Famous Question Yearling Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 51845,206424,913167,Student Scholar Supporter,NULL,NULL,0,NULL,NULL 51846,103140,907520,Yearling Popular Question Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 51847,453680,489586,Famous Question Good Question Great Answer Yearling Nice Question Famous Question Nice Answer Notable Question Documentation User Popular Question Yearling Good Question Necromancer Necromancer Notable Question Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 51848,519889,400474,Famous Question,NULL,NULL,0,NULL,NULL 51849,134553,845083,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51850,54333,178509,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 51851,73181,338049,NULL,NULL,NULL,0,NULL,NULL 51852,155639,92414,Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Good Answer Custodian Yearling Great Answer,NULL,NULL,0,NULL,NULL 51853,824355,605197,Yearling Famous Question Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51854,267509,433333,Nice Question Promoter Revival Good Answer Notable Question Yearling Nice Question Great Answer Popular Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 51855,1063744,261456,NULL,NULL,NULL,0,NULL,NULL 51856,79031,189230,Good Answer Popular Question Yearling Nice Question Notable Question Nice Question php Famous Question Famous Question Yearling Famous Question Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 51857,27879,339614,Yearling Necromancer Necromancer Census Yearling Revival Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 51858,398438,908539,NULL,NULL,NULL,0,NULL,NULL 51859,356049,708240,NULL,NULL,NULL,0,NULL,NULL 51860,252982,1325322,Yearling Necromancer Nice Answer Enthusiast Commentator Yearling Notable Question Curious Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51861,846545,1141589,NULL,NULL,NULL,0,NULL,NULL 51862,462569,321302,Yearling Notable Question Necromancer Yearling Nice Answer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 51863,210246,479302,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51864,51897,809971,Informed,NULL,NULL,0,NULL,NULL 51865,165256,1114258,NULL,NULL,NULL,0,NULL,NULL 51866,1120721,827410,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51867,160727,846698,Good Answer Nice Answer Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Yearling xcode Good Answer ios Yearling Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 51868,259329,405426,Popular Question,NULL,NULL,0,NULL,NULL 51869,43712,1008263,NULL,NULL,NULL,0,NULL,NULL 51870,93,705041,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 51871,35468,139450,NULL,NULL,NULL,0,NULL,NULL 51872,4752,1072990,Informed Yearling Good Answer Yearling Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 51873,37482,114490,Famous Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51874,3063,904346,NULL,NULL,NULL,0,NULL,NULL 51875,1715717,904346,NULL,NULL,NULL,0,NULL,NULL 51876,51058,7594,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 51877,134002,45786,Nice Answer Notable Question Nice Question Popular Question Notable Question Pundit Great Answer Great Answer Caucus Notable Question Guru Nice Question Yearling Nice Answer Census Nice Answer Nice Answer Great Answer Notable Question javascript Good Answer Nice Answer Announcer Great Answer Documentation User Yearling Announcer Nice Answer,NULL,pIf you think jQuery is kind of strongoverkill strong for such primitive task you could do something like that ppre code your objectvar foo bar arr subo foo2 bar2 called with every property and its valuefunction process key value console log key value function traverse func for var in func apply this if null amp amp typeof object going one step down in the object tree traverse func that all no magic no bloated frameworktraverse process code pre you could add parameter to the traverse function which tracks the depth Wenn calling recursively add to the current level pIf you think jQuery is kind of strongoverkill strong for such primitive task you could do something like that ppre code your objectvar foo bar arr subo foo2 bar2 called with every property and its valuefunction process key value console log key value function traverse func for var in func apply this if null amp amp typeof object going one step down in the object tree traverse func that all no magic no bloated frameworktraverse process code pre it is probably just you Works for me in node js and in Chrome Also mind that this answer is over years old,0,NULL,NULL 51878,85702,1342800,NULL,NULL,NULL,0,NULL,NULL 51879,169372,853685,Nice Question Notable Question Necromancer Yearling Popular Question Notable Question Popular Question Famous Question Popular Question Nice Answer Notable Question Yearling Custodian Popular Question Nice Answer Yearling Good Question Popular Question,NULL,h1Update for 2017 h1pMy original answer was written in 2009 While it still works like to update it for 2017 Browsers can still behave differently trust the jQuery team to do great job at maintaining cross browser consistency However it not necessary to include the entire library In the jQuery source the relevant portion is found on href https github com jquery jquery blob master src dimensions js L37 rel noreferrer line 37 of dimensions js Here it is extracted and modified to work standalone pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction getWidth xD return Math max xD document body scrollWidth xD document documentElement scrollWidth xD document body offsetWidth xD document documentElement offsetWidth xD document documentElement clientWidth xD xD xD xD function getHeight xD return Math max xD document body scrollHeight xD document documentElement scrollHeight xD document body offsetHeight xD document documentElement offsetHeight xD document documentElement clientHeight xD xD xD xD console log Width getWidth xD console log Height getHeight code pre xD div xD div xD phrh1Original Answer h1pSince all browsers behave differently you ll need to test for values first and then use the correct one Here function that does this for you ppre codefunction getWidth if self innerWidth return self innerWidth if document documentElement amp amp document documentElement clientWidth return document documentElement clientWidth if document body return document body clientWidth code prepand similarly for height ppre codefunction getHeight if self innerHeight return self innerHeight if document documentElement amp amp document documentElement clientHeight return document documentElement clientHeight if document body return document body clientHeight code prepCall both of these in your scripts using codegetWidth code or codegetHeight code If none of the browser native properties are defined it will return codeundefined code is this still true in 2017 Or is window innerWidth enough today,0,NULL,NULL 51880,986854,1365264,Nice Answer Enlightened Yearling Civic Duty Caucus Custodian Nice Answer Revival Revival Yearling Student Announcer Caucus Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 51881,5435643,1365264,Nice Answer Enlightened Yearling Civic Duty Caucus Custodian Nice Answer Revival Revival Yearling Student Announcer Caucus Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 51882,531650,1231709,NULL,NULL,NULL,0,NULL,NULL 51883,102761,156548,Nice Answer,NULL,NULL,0,NULL,NULL 51884,129883,1212864,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51885,705893,305532,Necromancer Necromancer Necromancer Nice Question Yearling Nice Answer Notable Question Nice Answer Popular Question Organizer Custodian Popular Question Nice Answer Nice Answer Caucus android Nice Question Yearling Popular Question Notable Question Popular Question Popular Question Good Answer Necromancer Popular Question Documentation User Good Question Notable Question Necromancer Nice Question Good Question Yearling Explainer Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,1,Change storage driver for Docker on OS macos docker osx elcapitan pThis is basically follow up href https stackoverflow com questions 36845691 change docker storage driver on mac os to this question but now since the OS Docker no longer needs Docker Toolbox no longer needs VirtualBox totally lost how to switch from codeAUFS code to codedevicemapper code or something else ppThe issue facing here as well is href https github com docker docker issues 4570 issuecomment 44360438 rel nofollow noreferrer the missing hardlink support in codeAUFS code which makes problems during the installation of the Android SDK so hope codedevicemapper code will help me here ppSo how can change the storage driver of Docker native implementation in OS,NULL 51886,186773,719312,Nice Answer Enlightened Custodian Custodian Yearling Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Answer Popular Question Good Answer Custodian Popular Question Proofreader Yearling Nice Answer Documentation User Great Answer Yearling Stellar Question,NULL,NULL,0,NULL,NULL 51887,125612,778553,Notable Question Nice Question Popular Question Critic Yearling Autobiographer Popular Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 51888,1187379,1084257,Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 51889,115611,213304,Yearling Custodian Necromancer Nice Answer Yearling,NULL,NULL,1,NULL,Handle file download from ajax post javascript jquery ajax pI have javascript app that sends ajax POST requests to certain URL Response might be JSON string or it might be file as an attachment can easily detect Content Type and Content Disposition in my ajax call but once detect that the response contains file how do offer the client to download it ve read number of similar threads here but none of them provide the answer looking for ppPlease please please do not post answers suggesting that shouldn use ajax for this or that should redirect the browser because none of this is an option Using plain HTML form is also not an option What do need is to show download dialog to the client Can this be done and how ppEDIT ppApparently this cannot be done but there is simple workaround as suggested by the accepted answer For anyone who comes across this issue in the future here how solved it ppre code ajax type POST url url data params success function response status request var disp request getResponseHeader Content Disposition if disp amp amp disp search attachment var form lt form method POST action url gt each params function form append lt input type hidden name value gt body append form form submit code prepSo basically just generate HTML form with the same params that were used in AJAX request and submit it pFor those looking for solution from an Angular perspective this worked for me ppre code http post url responseType arraybuffer then function response var headers response headers var blob new Blob response data type headers content type var link document createElement link href window URL createObjectURL blob link download Filename link click code pre 51890,2305866,86030,Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Custodian Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 51891,359650,986606,Yearling,NULL,NULL,0,NULL,NULL 51892,161916,1054039,NULL,NULL,NULL,0,NULL,NULL 51893,405749,1432333,Supporter Teacher,NULL,NULL,0,NULL,NULL 51894,1554758,896418,NULL,NULL,NULL,0,NULL,NULL 51895,131395,299131,Popular Question,NULL,NULL,0,NULL,NULL 51896,1475,490888,Yearling Nice Answer Enlightened Necromancer Popular Question Good Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 51897,168443,809423,Nice Question Yearling Famous Question javascript Good Answer Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 51898,629151,920008,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 51899,223968,147453,Notable Question Notable Question Famous Question Yearling Good Question Good Question Good Question Nice Question Yearling Popular Question Famous Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51900,247666,411659,Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51901,369105,272218,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 51902,1521049,1150411,Notable Question,NULL,NULL,0,NULL,NULL 51903,711,1155984,Yearling Nice Answer Nice Answer Nice Answer Necromancer Good Answer Nice Answer Enlightened Talkative Documentation Pioneer Quorum Nice Answer Caucus Constituent Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling swift jvm ios Nice Answer Great Answer Good Answer Documentation User Nice Answer Enlightened Necromancer java Good Answer Good Answer Yearling Good Answer Guru Great Answer Great Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51904,113538,145357,Popular Question Popular Question Great Answer Notable Question Yearling Peer Pressure Taxonomist Notable Question Good Answer Popular Question Yearling Documentation User Notable Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51905,1359368,1214085,Editor Teacher Curious Critic Commentator Yearling Informed Census Nice Question Yearling Popular Question Citizen Patrol Good Question Notable Question Enthusiast Custodian Caucus Autobiographer Constituent Peer Pressure Caucus Constituent,NULL,NULL,0,NULL,NULL 51906,73281,135712,Announcer Announcer Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 51907,72576,383244,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 51908,268405,1456646,NULL,NULL,NULL,0,NULL,NULL 51909,326110,366825,NULL,NULL,NULL,0,NULL,NULL 51910,308931,414016,Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Custodian Notable Question Popular Question Good Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 51911,212803,447565,Teacher,NULL,NULL,0,NULL,NULL 51912,54653,489878,Yearling Yearling Supporter Yearling,NULL,NULL,0,NULL,NULL 51913,227450,211461,Student,NULL,NULL,0,NULL,NULL 51914,175673,652820,NULL,NULL,NULL,0,NULL,NULL 51915,403326,1166478,Critic,NULL,NULL,0,NULL,NULL 51916,4801,138456,NULL,NULL,NULL,0,NULL,NULL 51917,2661232,547556,NULL,NULL,NULL,0,NULL,NULL 51918,2971779,494191,NULL,NULL,NULL,0,NULL,NULL 51919,209584,119182,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 51920,112933,67935,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 51921,508162,1256712,NULL,NULL,NULL,0,NULL,NULL 51922,631518,867790,Popular Question,NULL,NULL,0,NULL,NULL 51923,133873,736106,NULL,NULL,NULL,0,NULL,NULL 51924,526287,843766,Notable Question Caucus Yearling Curious Necromancer,NULL,NULL,0,NULL,NULL 51925,77783,1103065,NULL,NULL,NULL,0,NULL,NULL 51926,4683,1028261,Good Answer Nice Answer Enlightened Notable Question Popular Question Promoter Nice Question Nice Answer Popular Question Yearling Popular Question Good Answer Notable Question Pundit Nice Question Yearling Popular Question Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 51927,264796,1033918,NULL,NULL,NULL,0,NULL,NULL 51928,129991,846425,Good Answer Yearling,NULL,NULL,0,NULL,NULL 51929,160018,409995,NULL,NULL,NULL,0,NULL,NULL 51930,482327,1139706,NULL,NULL,NULL,0,NULL,NULL 51931,1321500,1310794,Nice Answer,NULL,NULL,0,NULL,NULL 51932,343764,1138548,NULL,NULL,NULL,0,NULL,NULL 51933,43068,530156,Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 51934,441261,1365246,NULL,NULL,NULL,0,NULL,NULL 51935,831602,1297002,NULL,NULL,NULL,0,NULL,NULL 51936,307191,308101,NULL,NULL,NULL,0,NULL,NULL 51937,558083,833442,NULL,NULL,NULL,0,NULL,NULL 51938,119221,1442885,NULL,NULL,NULL,0,NULL,NULL 51939,193724,128682,Enthusiast,NULL,NULL,0,NULL,NULL 51940,156126,1186628,Yearling Nice Answer Yearling Nice Answer Popular Question Caucus Constituent Tumbleweed Census Yearling Caucus Student Good Answer,NULL,NULL,0,NULL,NULL 51941,285584,538274,Great Answer Yearling Caucus Excavator Documentation User Yearling,NULL,NULL,0,NULL,NULL 51942,312444,129332,Good Answer Yearling Populist Yearling Guru Nice Answer Nice Answer Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 51943,1209802,527758,NULL,NULL,NULL,0,NULL,NULL 51944,193434,318754,NULL,NULL,NULL,0,NULL,NULL 51945,285418,1412376,Popular Question Critic Informed Autobiographer,NULL,NULL,0,NULL,NULL 51946,28146,941008,NULL,NULL,NULL,0,NULL,NULL 51947,187290,1220481,NULL,NULL,NULL,0,NULL,NULL 51948,64347,235145,Critic Tumbleweed Informed Census Census,NULL,NULL,0,NULL,NULL 51949,421139,472538,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 51950,721792,406068,Revival Yearling Caucus Critic Commentator Informed Student Scholar Caucus Necromancer,NULL,NULL,0,NULL,NULL 51951,91553,1167324,Autobiographer Yearling Caucus Constituent Caucus Constituent Documentation User Caucus Constituent Announcer Popular Question,NULL,NULL,0,NULL,NULL 51952,13113,461557,Good Question Notable Question Revival Guru Popular Question Nice Answer Enlightened Yearling Caucus Nice Question Nice Question Popular Question Nice Answer Popular Question Popular Question Popular Question Caucus Autobiographer Popular Question Yearling Notable Question Popular Question Caucus Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question ruby-on-rails-3 Yearling,NULL,NULL,0,NULL,NULL 51953,210808,1396161,NULL,NULL,NULL,0,NULL,NULL 51954,7446948,481059,Yearling Favorite Question Famous Question Popular Question Famous Question Yearling Self-Learner Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51955,306193,481059,Yearling Favorite Question Famous Question Popular Question Famous Question Yearling Self-Learner Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 51956,62318,416389,Nice Question,NULL,NULL,0,NULL,NULL 51957,355237,822402,NULL,NULL,NULL,0,NULL,NULL 51958,233361,331820,NULL,NULL,NULL,0,NULL,NULL 51959,1123612,553558,NULL,NULL,NULL,0,NULL,NULL 51960,427170,1007865,NULL,NULL,NULL,0,NULL,NULL 51961,25409,31295,Nice Question Nice Question Nice Answer Enlightened Yearling Notable Question Good Answer Nice Question Notable Question Nice Question Yearling Good Answer Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51962,37948,1512886,NULL,NULL,NULL,0,NULL,NULL 51963,829385,204831,Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 51964,35394,1007843,Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51965,3921533,38675,NULL,NULL,NULL,0,NULL,NULL 51966,899554,243506,Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 51967,480787,923174,NULL,NULL,NULL,0,NULL,NULL 51968,503957,390441,Custodian,NULL,NULL,0,NULL,NULL 51969,833368,842817,NULL,NULL,NULL,0,NULL,NULL 51970,98519,15815,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 51971,799669,884502,Notable Question Yearling Critic Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 51972,263134,611186,NULL,NULL,NULL,0,NULL,NULL 51973,1101438,187938,NULL,NULL,NULL,0,NULL,NULL 51974,22183,115287,Yearling Critic Guru Yearling Yearling Commentator Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 51975,57578,757985,NULL,NULL,NULL,0,NULL,NULL 51976,67699,1468924,Supporter Revival Necromancer,NULL,NULL,0,NULL,NULL 51977,77738,1201561,Census Census,NULL,NULL,0,NULL,NULL 51978,524726,577813,NULL,NULL,NULL,0,NULL,NULL 51979,400234,1080324,Commentator Popular Question,NULL,NULL,0,NULL,NULL 51980,894910,159108,NULL,NULL,NULL,0,NULL,NULL 51981,1714235,580830,Notable Question,NULL,NULL,0,NULL,NULL 51982,75575,1252029,Investor Altruist Revival Tumbleweed Necromancer Custodian Caucus Necromancer Necromancer Popular Question Yearling Nice Answer Enlightened Caucus Documentation User Popular Question Yearling Notable Question Popular Question Nice Question Nice Answer Popular Question Curious,NULL,NULL,0,NULL,NULL 51983,237944,526864,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 51984,72740,122763,Popular Question Popular Question Popular Question Explainer Guru Guru Yearling Popular Question Revival Necromancer Necromancer Great Answer Necromancer Announcer Necromancer Popular Question Necromancer Nice Answer Revival Popular Question Yearling Great Answer Necromancer Nice Answer Necromancer Nice Answer Good Answer Popular Question Good Answer Revival Yearling Necromancer Notable Question Great Answer Revival Famous Question Good Question Necromancer,NULL,pRegister your handler with codesignal signal code like this ppre code usr bin env pythonimport signalimport sysdef signal handler sig frame print You pressed Ctrl sys exit signal signal signal SIGINT signal handler print Press Ctrl signal pause code prepCode adapted from href http www linuxjournal com article 3946 rel noreferrer here ppMore documentation on codesignal code can be found href http docs python org library signal html rel noreferrer here FYI in python KeyboardInterrupt is thrown when the process receives SIGINT kill SIGINT pid Though agree that this is not obvious from the name and signal handler has clearer intent pThe other answers work for real files but if you need something that works for file like objects try this ppre code is file like object seek os SEEK END size tell code prepIt works for real files and StringIO in my limited testing Python The file like object API isn really rigorous interface of course but the href https docs python org library stdtypes html file objects rel noreferrer API documentation suggests that file like objects should support codeseek code and codetell code pp strongEdit strong ppAnother difference between this and codeos stat code is that you can codestat code file even if you don have permission to read it Obviously the seek tell approach won work unless you have read permission pp strongEdit strong ppAt Jonathon suggestion here paranoid version The version above leaves the file pointer at the end of the file so if you were to try to read from the file you get zero bytes back ppre code is file like object old file position tell seek os SEEK END size tell seek old file position os SEEK SET code pre Aitawdekar correct bytes,0,NULL,NULL 51985,86120,166327,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 51986,1167774,1081212,NULL,NULL,NULL,0,NULL,NULL 51987,484245,188268,Nice Answer Enlightened Yearling Good Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 51988,55407,503210,NULL,NULL,NULL,0,NULL,NULL 51989,14886,1108416,Yearling Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 51990,208393,623694,Yearling Custodian Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question Famous Question Notable Question Yearling Famous Question Notable Question Popular Question Notable Question Nice Question Popular Question Explainer Good Answer Yearling Nice Question Good Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 51991,1398837,884076,Civic Duty Notable Question Notable Question Self-Learner Notable Question Notable Question Popular Question Notable Question Good Question Caucus Constituent Popular Question Popular Question Yearling Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Necromancer Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 51992,480274,337459,NULL,NULL,NULL,0,NULL,NULL 51993,8506519,561849,Supporter,NULL,NULL,0,NULL,NULL 51994,377070,561849,Supporter,NULL,NULL,0,NULL,NULL 51995,317958,864912,Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 51996,4797,1285439,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 51997,804066,545329,Popular Question,NULL,NULL,0,NULL,NULL 51998,54690,396695,NULL,NULL,NULL,0,NULL,NULL 51999,352005,555379,NULL,NULL,NULL,0,NULL,NULL 52000,307132,825794,NULL,NULL,NULL,0,NULL,NULL 52001,2246986,710692,NULL,NULL,NULL,0,NULL,NULL 52002,171940,710692,NULL,NULL,NULL,0,NULL,NULL 52003,195407,658247,Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Notable Question Notable Question Yearling Famous Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 52004,52512,1079230,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52005,886959,1074336,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 52006,367371,1235982,Yearling Necromancer Notable Question Yearling Caucus Custodian Revival,NULL,NULL,0,NULL,NULL 52007,73655,610441,Curious,NULL,NULL,0,NULL,NULL 52008,46322,986415,Popular Question Popular Question Popular Question Popular Question Yearling Caucus Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Caucus Yearling Stellar Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 52009,255749,943995,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52010,180961,1498544,NULL,NULL,NULL,0,NULL,NULL 52011,914160,802677,NULL,NULL,NULL,0,NULL,NULL 52012,8217672,802677,NULL,NULL,NULL,0,NULL,NULL 52013,171495,932508,Critic Student Census Census Yearling,NULL,NULL,0,NULL,NULL 52014,337291,1188701,Yearling Good Answer Yearling Enthusiast Census Yearling Great Answer,NULL,NULL,0,NULL,NULL 52015,330871,9069,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52016,557681,1541718,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 52017,1503256,4229,Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 52018,52704,241740,Self-Learner Excavator Nice Answer Yearling Scholar Popular Question,NULL,NULL,0,NULL,NULL 52019,461778,1023707,NULL,NULL,NULL,0,NULL,NULL 52020,276422,776033,Yearling Good Answer,NULL,NULL,0,NULL,NULL 52021,351956,1506821,NULL,NULL,NULL,0,NULL,NULL 52022,150187,64466,Yearling Necromancer Caucus Caucus Enthusiast Yearling Necromancer,NULL,NULL,0,NULL,NULL 52023,719357,694724,NULL,NULL,NULL,0,NULL,NULL 52024,372575,954695,Editor,NULL,NULL,0,NULL,NULL 52025,1108174,1452650,Informed,NULL,NULL,0,NULL,NULL 52026,10257713,1452650,Informed,NULL,NULL,0,NULL,NULL 52027,3365,118939,Yearling Caucus Census Yearling Caucus Constituent Census Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52028,382802,644324,NULL,NULL,NULL,0,NULL,NULL 52029,304416,1043393,NULL,NULL,NULL,0,NULL,NULL 52030,1448884,926665,Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52031,3584695,926665,Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52032,193242,818229,NULL,NULL,NULL,0,NULL,NULL 52033,591220,1058622,Supporter Informed,NULL,NULL,0,NULL,NULL 52034,1399403,847530,NULL,NULL,NULL,0,NULL,NULL 52035,297861,847530,NULL,NULL,NULL,0,NULL,NULL 52036,830280,1036206,NULL,NULL,NULL,0,NULL,NULL 52037,685842,647123,NULL,NULL,NULL,0,NULL,NULL 52038,238450,270265,Yearling Favorite Question Great Question Notable Question Revival Necromancer Nice Answer Good Answer Guru Great Answer Caucus Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52039,1297144,50979,Yearling Notable Question Nice Answer xsd Notable Question Good Question Famous Question Popular Question Nice Answer Taxonomist Nice Answer Enlightened Yearling Announcer Necromancer Stellar Question Popular Question xml Yearling Nice Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 52040,256131,634979,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52041,91474,485373,NULL,NULL,NULL,0,NULL,NULL 52042,3519700,1763,Good Answer Popular Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52043,299938,1337805,Scholar,NULL,NULL,0,NULL,NULL 52044,181812,1394624,Supporter,NULL,NULL,0,NULL,NULL 52045,289733,69665,NULL,NULL,NULL,0,NULL,NULL 52046,216080,1531981,Yearling Popular Question Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 52047,397517,951721,Commentator Civic Duty Caucus Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 52048,23150,108891,Critic Editor Excavator Civic Duty Caucus,NULL,NULL,0,NULL,NULL 52049,1338920,1144418,NULL,NULL,NULL,0,NULL,NULL 52050,298557,603829,NULL,NULL,NULL,0,NULL,NULL 52051,243072,998040,NULL,NULL,NULL,0,NULL,NULL 52052,241722,786403,NULL,NULL,NULL,0,NULL,NULL 52053,264593,797696,Teacher Editor,NULL,NULL,0,NULL,NULL 52054,8774473,947238,Caucus Census Caucus Census,NULL,NULL,0,NULL,NULL 52055,411542,947238,Caucus Census Caucus Census,NULL,NULL,0,NULL,NULL 52056,1514440,831212,NULL,NULL,NULL,0,NULL,NULL 52057,109254,1362,Notable Question Nice Question Necromancer Good Answer Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 52058,423464,215709,Good Answer,NULL,NULL,0,NULL,NULL 52059,317357,1067610,NULL,NULL,NULL,0,NULL,NULL 52060,18710,1461627,Informed,NULL,NULL,0,NULL,NULL 52061,45981,1484068,NULL,NULL,NULL,0,NULL,NULL 52062,19343,269538,Yearling c# Revival Yearling Yearling Revival Necromancer Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 52063,699698,1099933,Necromancer Yearling Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 52064,597562,1329802,Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52065,309926,1562094,Revival,NULL,NULL,0,NULL,NULL 52066,498850,412986,NULL,NULL,NULL,0,NULL,NULL 52067,69958,24579,Notable Question Announcer,NULL,NULL,0,NULL,NULL 52068,165261,1085616,NULL,NULL,NULL,0,NULL,NULL 52069,3982018,992358,Civic Duty,NULL,NULL,0,NULL,NULL 52070,1353163,1295461,Student,NULL,NULL,0,NULL,NULL 52071,469633,982151,NULL,NULL,NULL,0,NULL,NULL 52072,3083,840849,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 52073,158717,188737,NULL,NULL,NULL,0,NULL,NULL 52074,415757,421109,Famous Question Popular Question Famous Question Popular Question Nice Question Nice Question Popular Question Popular Question Famous Question Favorite Question Notable Question Good Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Good Question Popular Question Popular Question Famous Question Good Question Popular Question Popular Question Famous Question Notable Question Good Question Notable Question Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Great Question Famous Question Popular Question Good Question Great Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52075,900896,295298,NULL,NULL,NULL,0,NULL,NULL 52076,795714,832069,NULL,NULL,NULL,0,NULL,NULL 52077,330613,111545,NULL,NULL,NULL,0,NULL,NULL 52078,259802,1337329,NULL,NULL,NULL,0,NULL,NULL 52079,853328,403716,Revival Critic Informed Autobiographer Yearling Caucus Revival Caucus Constituent Documentation User Necromancer Caucus,NULL,NULL,0,NULL,NULL 52080,28401,1387431,NULL,NULL,NULL,0,NULL,NULL 52081,42642,1054199,NULL,NULL,NULL,0,NULL,NULL 52082,1051021,138087,NULL,NULL,NULL,0,NULL,NULL 52083,44929,1413667,NULL,NULL,NULL,0,NULL,NULL 52084,131972,214488,Critic Good Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Custodian Inquisitive Yearling Popular Question Popular Question,NULL,NULL,1,how to find objects which are in list but not in another list comparing by property in python2 python list list comprehension pI have lists of objects in python2 They are of different types but have common property name control one list my list and the other is sent to me src list ppI want to find emnew em objects in src list that aren in my list by comparing their name property ppThe pseudo code and how do this in is below but after python way of doing it probably list comprehensions and stuff but couldn figure it out ppre codenew list for srco in src list iterate everything in src list found False for myo in my list iterate everything in my list if srco name lower myo name lower compare names break if true found True break if not found add to new list if wasn found new list append srco code pre,NULL 52085,828236,590536,NULL,NULL,NULL,0,NULL,NULL 52086,113249,343690,NULL,NULL,NULL,0,NULL,NULL 52087,905567,432142,Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52088,327484,1116106,NULL,NULL,NULL,0,NULL,NULL 52089,61613,669572,NULL,NULL,NULL,0,NULL,NULL 52090,934568,1560827,Excavator Notable Question Caucus,NULL,NULL,0,NULL,NULL 52091,386092,1800,NULL,NULL,NULL,0,NULL,NULL 52092,201776,1300516,Popular Question Enthusiast Notable Question Popular Question Popular Question Notable Question Informed,NULL,NULL,0,NULL,NULL 52093,156628,412175,Yearling Caucus Census,NULL,NULL,0,NULL,NULL 52094,156474,1049983,NULL,NULL,NULL,0,NULL,NULL 52095,241885,312451,NULL,NULL,NULL,0,NULL,NULL 52096,2806780,840164,Necromancer,NULL,NULL,0,NULL,NULL 52097,258027,840164,Necromancer,NULL,NULL,0,NULL,NULL 52098,112697,858523,Nice Answer Yearling Tumbleweed Necromancer Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 52099,223986,1180902,NULL,NULL,NULL,0,NULL,NULL 52100,334358,1121843,NULL,NULL,NULL,0,NULL,NULL 52101,1257553,1054910,Critic Necromancer Yearling Disciplined,NULL,NULL,0,NULL,NULL 52102,179253,559092,NULL,NULL,NULL,0,NULL,NULL 52103,46409,886215,Nice Answer Yearling Caucus Yearling Commentator,NULL,NULL,0,NULL,NULL 52104,512729,1490301,NULL,NULL,NULL,0,NULL,NULL 52105,54957,288652,Scholar Commentator Caucus Informed,NULL,NULL,0,NULL,NULL 52106,256666,1138327,NULL,NULL,NULL,0,NULL,NULL 52107,688262,365474,NULL,NULL,NULL,0,NULL,NULL 52108,138380,675985,NULL,NULL,NULL,0,NULL,NULL 52109,170626,1468511,Autobiographer,NULL,NULL,0,NULL,NULL 52110,121253,730818,Revival Popular Question Critic Yearling,NULL,NULL,0,NULL,NULL 52111,610725,1279044,NULL,NULL,NULL,0,NULL,NULL 52112,298241,1025757,Popular Question,NULL,NULL,0,NULL,NULL 52113,2021085,1025757,Popular Question,NULL,NULL,0,NULL,NULL 52114,2022638,1025757,Popular Question,NULL,NULL,0,NULL,NULL 52115,7989871,1025757,Popular Question,NULL,NULL,0,NULL,NULL 52116,457090,187659,Teacher Supporter,NULL,NULL,0,NULL,NULL 52117,375565,1090121,NULL,NULL,NULL,0,NULL,NULL 52118,239542,754720,NULL,NULL,NULL,0,NULL,NULL 52119,889790,1257799,Yearling,NULL,NULL,0,NULL,NULL 52120,204520,515288,Notable Question Nice Answer Popular Question Yearling Tumbleweed Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 52121,620467,1138787,Supporter,NULL,NULL,0,NULL,NULL 52122,583712,1258965,Teacher Supporter Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 52123,1022535,1185781,Notable Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 52124,99461,329424,Good Question Notable Question Yearling Popular Question Famous Question Notable Question Nice Question Famous Question Yearling Famous Question Popular Question Nice Question Yearling Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52125,366482,1223916,NULL,NULL,NULL,0,NULL,NULL 52126,79947,43312,Yearling Yearling,NULL,NULL,0,NULL,NULL 52127,36730,298444,NULL,NULL,NULL,0,NULL,NULL 52128,871202,1328965,Yearling Nice Question Popular Question Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 52129,211794,449605,Good Answer Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 52130,942,130832,Nice Answer Enlightened Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 52131,2918774,130832,Nice Answer Enlightened Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 52132,769507,404822,Famous Question Popular Question Census Yearling,NULL,NULL,0,NULL,NULL 52133,6507546,1264575,NULL,NULL,NULL,0,NULL,NULL 52134,103440,65214,Yearling Nice Answer Enlightened Revival Famous Question Popular Question Necromancer Necromancer Notable Question Popular Question Yearling Revival Nice Answer Famous Question Famous Question Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52135,101675,129346,Commentator Civic Duty Student Scholar Announcer Census Caucus Organizer Tag Editor Revival,NULL,NULL,0,NULL,NULL 52136,439635,1411398,Announcer Announcer,NULL,NULL,0,NULL,NULL 52137,1113,633040,Peer Pressure,NULL,NULL,0,NULL,NULL 52138,111649,242969,Revival Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52139,458736,419871,c++ Nice Answer Guru Notable Question Nice Answer Yearling Proofreader Custodian Necromancer Nice Answer Revival Nice Answer Caucus Nice Answer Yearling Nice Question Guru Yearling,NULL,NULL,0,NULL,NULL 52140,97372,3439,Necromancer Yearling Custodian Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 52141,125011,496149,Supporter,NULL,NULL,0,NULL,NULL 52142,1495205,747573,NULL,NULL,NULL,0,NULL,NULL 52143,998512,241338,Necromancer,NULL,NULL,0,NULL,NULL 52144,190880,831128,Yearling Popular Question Popular Question Enthusiast Caucus Constituent Enlightened Nice Answer Caucus Yearling Revival Caucus,NULL,pUse href http developer android com guide developing tools adb html rel noreferrer adb With emadb pull em you can copy files from your device to your system when the device is attached with USB ppOf course you also need the right permissions to access the directory your file is in If not you will need to root the device first phrpIf you find that many of the APKs are named base apk you can also use this one line command to pull all the APKs off phone you can access while renaming any base apk names to the package name This also fixes the directory not found issue for APK paths with seemingly random characters after the name ppre class lang bash prettyprint override codefor in adb shell pm list packages awk print do adb pull adb shell pm path awk print mv base apk apk amp gt dev null done code prepIf you get adb error failed to stat remote object that indicates you don have the needed permissions ran this on NON rooted Moto Z2 and was able to download ALL the APKs did not uninstall see below except youtube ppre class lang bash prettyprint override codeadb shell pm uninstall user com android cellbroadcastreceiver lt kills presidential alert app code prep to view users run adb shell pm list users This is way to remove uninstall not from the phone as it comes back with factory reset almost emANY em app WITHOUT root INCLUDING system apps hint the annoying update app that updates your phone line it or not can be found by grepping for ccc Rijk Actually you don have to root the device just to pull the apk As long as you know the full path of that apk If the apk is installed find the full path by first looking at the package name with adb shell pm list packages and its full path adb shell pm path your package name then from your pc you can simply adb pull full path to your apk,0,NULL,NULL 52145,242871,718108,Notable Question Yearling,NULL,NULL,0,NULL,NULL 52146,573983,1245600,NULL,NULL,NULL,0,NULL,NULL 52147,432056,788842,Notable Question Yearling Nice Answer Popular Question Nice Answer Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 52148,111062,705272,NULL,NULL,NULL,0,NULL,NULL 52149,110440,1355473,NULL,NULL,NULL,0,NULL,NULL 52150,81959,198348,Good Question Nice Answer Famous Question Custodian Yearling Good Answer Census Nice Answer Necromancer Nice Answer Enlightened Favorite Question Popular Question Announcer python Announcer Announcer Documentation User Yearling Informed Nice Answer Good Answer Announcer Great Question Great Answer Announcer Custodian Announcer Yearling,NULL,Is there type for representing an integer Range pI have need to store an integer range Is there an existing type for that in ppOf course could write my own class with codeint From code and codeint To code properties and build in proper logic to ensure that codeFrom lt To code But if type already exists of course rather use that think the accepted answer should be changed answer with Enumerable Range is from what ve seen the de facto way to implement ranges in And has been around since 2007 so years at this point Is there type for representing an integer Range pI have need to store an integer range Is there an existing type for that in ppOf course could write my own class with codeint From code and codeint To code properties and build in proper logic to ensure that codeFrom lt To code But if type already exists of course rather use that That fair Enumerable Range will take up much more space for 1000000 vs Range datatype for 1000000 read the question wrong the first time it was asked and thought it was asking for Enumerable Range,0,NULL,NULL 52151,8300145,668300,NULL,NULL,NULL,0,NULL,NULL 52152,26295,22483,Popular Question Good Answer Nice Answer Nice Answer Yearling Yearling Popular Question Documentation User Curious Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 52153,201006,782,Favorite Question Yearling Great Question Nice Answer,NULL,NULL,0,NULL,NULL 52154,23579,830671,Yearling Tumbleweed Editor Custodian Curious Nice Answer Enlightened Necromancer Popular Question,NULL,NULL,1,Webpack Child Compiler Change Configuration webpack pI would like the output of my webpack build to be defined as variable while compiling my service worker ppI would like to use the child compilation functionality to compile service worker that is put into different path need the output emitted from the webpack compilation to properly compile the service worker ppMy initial play was to use the same strategy as offline plugin where you create child compiler but need to be able to change the output path for the service worker Service workers path is important because it defines scope ppI am wondering how to accomplish what have below using the child compiler API to prevent having this sort of side effect of my build and hopefully it would give me webpack dev server support ppre codevar webpack require webpack function ServiceWorkerPlugin options this options options ServiceWorkerPlugin prototype apply function compiler compiler plugin emit compilation callback gt const stats compilation getStats toJson const child webpack this options child apply new webpack DefinePlugin assets stats assets child run err swStats gt if err callback err const swStatsJson swStats toJson if swStatsJson errors length gt console log swStatsJson errors if swStatsJson warnings length gt console log swStatsJson warnings callback module exports ServiceWorkerPlugin code pre,NULL 52155,782864,473813,Nice Answer Yearling Necromancer,NULL,,0,, 52156,899130,29246,Nice Question Popular Question Good Question Famous Question Good Answer Popular Question Nice Question Notable Question Notable Question Fanatic Nice Question Nice Question Favorite Question Taxonomist Self-Learner Famous Question Popular Question Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Documentation User Yearling Popular Question Great Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Good Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question,NULL,How to get the code to recreate dataframe in reflection metaprogramming pI have some dataframe object ppI want to see the code that recreates that dataframe object ppFor example here is my dataframe ppre codestr ror data frame obs of variables from Factor levels x1 to Factor levels x2 code prepI want to get the following code to be printed by calling some function such as coderecreate ror code ppre coderecreate ror data frame from x1 to x2 code prepI remember that there was function to get this code from coderor code but cannot find the exact name of this function or exact term to search in google to find it Yes indeed That was it But its output is not clean guess there was only dput right Mutate an empty data frame column safely dataframe dplyr pI have an empty data frame try to assign some value to column of this data frame Since the data frame is empty expect to obtain an empty data frame in return as follows ppre codedf data frame integer df gt mutate tibble with variables lt dbl gt code prepThe problem occurs when assigned value is vector Then get the following error ppre codedf gt mutate Error wrong result size expected or code prepWhen try to assign value using code code operator then even assigning single value produces error ppre codedf Error in lt data frame tmp value replacement has row data has code prepWhat is the correct and safe way to try to mutate an empty data frame column pp strongUpdate strong ppNote that expect to get empty data frame back don want to add new rows to the data frame ppI expect to get empty data frame back because mutate and code code operators don change number of rows normally don want to violate their normal behavior ppI am looking for concise solution It is possible to solve this problem wrapping the code into codetryCatch code or codeif code expression But they will clutter the actual code wonder if there is any better way Thanks for the answer but expect to get empty data frame back don want to add new rows to the data frame Mutate an empty data frame column safely dataframe dplyr pI have an empty data frame try to assign some value to column of this data frame Since the data frame is empty expect to obtain an empty data frame in return as follows ppre codedf data frame integer df gt mutate tibble with variables lt dbl gt code prepThe problem occurs when assigned value is vector Then get the following error ppre codedf gt mutate Error wrong result size expected or code prepWhen try to assign value using code code operator then even assigning single value produces error ppre codedf Error in lt data frame tmp value replacement has row data has code prepWhat is the correct and safe way to try to mutate an empty data frame column pp strongUpdate strong ppNote that expect to get empty data frame back don want to add new rows to the data frame ppI expect to get empty data frame back because mutate and code code operators don change number of rows normally don want to violate their normal behavior ppI am looking for concise solution It is possible to solve this problem wrapping the code into codetryCatch code or codeif code expression But they will clutter the actual code wonder if there is any better way Thanks for the suggestion am looking for safe solution that is as concise as possible can use tryCatch or if but they clutter the code wonder if there is solution that won clutter the actual code Mutate an empty data frame column safely dataframe dplyr pI have an empty data frame try to assign some value to column of this data frame Since the data frame is empty expect to obtain an empty data frame in return as follows ppre codedf data frame integer df gt mutate tibble with variables lt dbl gt code prepThe problem occurs when assigned value is vector Then get the following error ppre codedf gt mutate Error wrong result size expected or code prepWhen try to assign value using code code operator then even assigning single value produces error ppre codedf Error in lt data frame tmp value replacement has row data has code prepWhat is the correct and safe way to try to mutate an empty data frame column pp strongUpdate strong ppNote that expect to get empty data frame back don want to add new rows to the data frame ppI expect to get empty data frame back because mutate and code code operators don change number of rows normally don want to violate their normal behavior ppI am looking for concise solution It is possible to solve this problem wrapping the code into codetryCatch code or codeif code expression But they will clutter the actual code wonder if there is any better way Maybe there might be way to make mutate not to produce an error,1,How to get the code to recreate dataframe in reflection metaprogramming pI have some dataframe object ppI want to see the code that recreates that dataframe object ppFor example here is my dataframe ppre codestr ror data frame obs of variables from Factor levels x1 to Factor levels x2 code prepI want to get the following code to be printed by calling some function such as coderecreate ror code ppre coderecreate ror data frame from x1 to x2 code prepI remember that there was function to get this code from coderor code but cannot find the exact name of this function or exact term to search in google to find it Remove rows from data frame using row indices where row indices might be zero length vector dataframe dplyr pI want to drop some rows from some dataframe using numeric indices of the rows But sometimes the indices vector that am going to drop becomes zero length vector In this case expect that nothing should be dropped from the original data frame But instead of nothing everything is dropped ppFor example here codedrop code works as expected ppre codedf data frame 10 12 drop df drop tibble lt int gt 12 code prepBut when codedrop code is zero length vector then removing those rows doesn work as expect ppre codedrop integer df drop tibble with variables lt int gt code prepI was expecting to get the whole codedf code object without any modification ppHow to remove rows from data frame using row indices safely where row indices might become zero length vector Mutate an empty data frame column safely dataframe dplyr pI have an empty data frame try to assign some value to column of this data frame Since the data frame is empty expect to obtain an empty data frame in return as follows ppre codedf data frame integer df gt mutate tibble with variables lt dbl gt code prepThe problem occurs when assigned value is vector Then get the following error ppre codedf gt mutate Error wrong result size expected or code prepWhen try to assign value using code code operator then even assigning single value produces error ppre codedf Error in lt data frame tmp value replacement has row data has code prepWhat is the correct and safe way to try to mutate an empty data frame column pp strongUpdate strong ppNote that expect to get empty data frame back don want to add new rows to the data frame ppI expect to get empty data frame back because mutate and code code operators don change number of rows normally don want to violate their normal behavior ppI am looking for concise solution It is possible to solve this problem wrapping the code into codetryCatch code or codeif code expression But they will clutter the actual code wonder if there is any better way Neovim crashes after help command when RubyGem is installed ruby neovim h2Cause of the problem h2pThe problem is caused by some plugin called codeLustyExplorer code Normally when encounter some bug in Vim always remove all plugins and customizations first But after passing to Neovim forgot to do this first ph2Original Question h2pI have just recently installed codenvim code on OsX El Capitan v10 11 using the command codebrew install neovim code ppre code brew info neovimneovim stable bottled HEADAmbitious Vim fork focused on extensibility and agilityhttps neovim io usr local Cellar neovim 374 files 17 6MB Poured from bottle on 2017 12 27 at 22 45 13From https github com Homebrew homebrew core blob master Formula neovim rb gt DependenciesBuild cmake lua pkg config ✔Required gettext jemalloc libtermkey libuv libvterm luajit msgpack unibilium nvim versionNVIM v0 2Build type ReleaseLuaJIT 5Compilation usr local Homebrew Library Homebrew shims super clang Wconversion FORTIFY SOURCE FORTIFY SOURCE DNVIM MSGPACK HAS FLOAT32 DNVIM UNIBI HAS VAR FROM DNDEBUG DMIN LOG LEVEL Wall Wextra pedantic Wno unused parameter Wstrict prototypes std gnu99 Wimplicit fallthrough Wvla fstack protector strong fdiagnostics color auto DINCLUDE GENERATED DECLARATIONS tmp neovim 20171118 36724 uevp4 neovim build config tmp neovim 20171118 36724 uevp4 neovim src usr local include usr local include usr local include usr local include usr local include usr local include usr local opt gettext include usr include tmp neovim 20171118 36724 uevp4 neovim build src nvim auto tmp neovim 20171118 36724 uevp4 neovim build includeCompiled by brew localFeatures acl iconv jemalloc tui See help feature compile system vimrc file VIM sysinit vim fall back for VIM usr local Cellar neovim share nvim Run checkhealth for more info code prep codenvim code runs properly But after installing codeneovim code RubyGem cannot use code help code command in codeneovim code The application crashes immediately ppre code gem install neovimFetching neovim gem 100 Successfully installed neovim 21 gem installed code prepExecuting code help code command in codenvim code gives the following error message ppre codenvim 69661 0x7fff7274e000 malloc error for object 0x7f9414310d00 pointer being freed was not allocated set breakpoint in malloc error break to debug 69661 abort nvim code prepI use codervm 26 11 code to manage ruby ppre code rvm listrvm rubies ruby x86 64 rvm versionrvm 26 11 latest by Wayne Seguin lt wayneeseguin com gt Michal Papis lt mpapis com gt https rvm io rvm gemdir Users mertnuhoglu rvm gems ruby gem version2 code pre,NULL 52157,237810,1005485,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52158,388552,311941,Good Answer Nice Answer Curious Yearling Informed Nice Answer Guru Yearling Guru Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Guru Custodian Documentation User Census Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52159,204680,1292936,NULL,NULL,NULL,0,NULL,NULL 52160,285971,49412,Yearling Caucus Announcer Yearling Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 52161,169280,1047727,Necromancer Notable Question Nice Answer Necromancer Nice Answer Yearling Necromancer Good Answer Famous Question Nice Question Yearling Nice Answer Excavator Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 52162,291167,1491052,Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 52163,222482,1398928,Notable Question,NULL,NULL,0,NULL,NULL 52164,72929,212049,Student Editor Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 52165,366042,638481,NULL,NULL,NULL,0,NULL,NULL 52166,367669,821378,Yearling Revival Nice Answer Organizer Yearling Nice Answer Announcer Nice Answer Enlightened Yearling Nice Answer Revival Good Answer Revival,NULL,NULL,0,NULL,NULL 52167,182384,166530,Excavator Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Great Answer Guru Yearling Nice Answer Good Answer Good Answer Nice Answer Custodian Yearling Taxonomist,NULL,NULL,0,NULL,NULL 52168,7129321,1376622,Editor,NULL,NULL,0,NULL,NULL 52169,170125,1376622,Editor,NULL,NULL,0,NULL,NULL 52170,1513891,484560,Student Scholar Tumbleweed Revival Civic Duty,NULL,NULL,0,NULL,NULL 52171,77240,402874,NULL,NULL,NULL,0,NULL,NULL 52172,497073,341480,Nice Answer Nice Answer Yearling Tumbleweed Student Scholar,NULL,NULL,0,NULL,NULL 52173,601649,68105,Popular Question Popular Question Nice Answer Notable Question Yearling python Nice Answer Enlightened Great Answer Notable Question Notable Question Great Answer Nice Answer Enlightened Popular Question Popular Question Popular Question Good Answer Good Question Nice Answer Popular Question Nice Question Yearling Good Answer Famous Question Good Answer Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Answer Great Answer Good Answer Guru Popular Question Yearling Good Answer Popular Question Guru Nice Question,NULL,NULL,0,NULL,NULL 52174,36479,478603,Good Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 52175,1771,365897,Famous Question Yearling Taxonomist Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52176,470537,885444,NULL,NULL,NULL,0,NULL,NULL 52177,165741,849982,NULL,NULL,NULL,0,NULL,NULL 52178,88388,642778,NULL,NULL,NULL,0,NULL,NULL 52179,151960,904214,Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 52180,73554,51700,Yearling Revival Popular Question Custodian Yearling Nice Answer Revival Great Answer Yearling Nice Answer Benefactor,NULL,NULL,0,NULL,NULL 52181,610423,1381410,Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52182,744692,1000254,Editor Teacher Curious Informed Autobiographer Nice Question Famous Question Caucus Good Question Yearling Critic Custodian Yearling Yearling Yearling Yearling Mortarboard Custodian Custodian Custodian Organizer Enthusiast Explainer Excavator Tenacious Tumbleweed Popular Question Revival Nice Answer Enlightened Popular Question Notable Question Nice Question Caucus Good Question Nice Answer Yearling Good Answer Famous Question Notable Question Nice Answer Nice Answer Enlightened Favorite Question Popular Question docker Guru Yearling,NULL,Docker on CentOS kernel unregister netdevice waiting for lo to become free Usage count networking docker centos centos7 loopback pI running Docker on CentOS from time to time there the following message displayed ppre codeMessage from syslogd master at Mar 29 17 23 03 kernel unregister netdevice waiting for lo to become free Usage count code prepI ve googled lot read lot of resources found and tried many ways like keeping my system updated upgrading kernel etc but the message still keeps showing up it not too often but sooner or later ll see it Also found href https github com docker docker issues 5618 rel noreferrer issue for this problem on docker github is still open then my questions are polliWhat does this message mean Could somebody give me simple explanation why docker causes it liliIs there any workaround for this liliIf it could not be fixed yet the issue is still open will it affect the server or services running inside docker container Will it be serious performance issue because it also happens on our production servers li olpDocker version ppre codeClient Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64Server Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64 code prepOS info ppre codeCentOS with kernel version el7 elrepo x86 64 code prepI really appreciate for any info tips or resources thanks lot didn do that when the message shows up seems there no affect to our application So for now just let it be,1,Docker on CentOS kernel unregister netdevice waiting for lo to become free Usage count networking docker centos centos7 loopback pI running Docker on CentOS from time to time there the following message displayed ppre codeMessage from syslogd master at Mar 29 17 23 03 kernel unregister netdevice waiting for lo to become free Usage count code prepI ve googled lot read lot of resources found and tried many ways like keeping my system updated upgrading kernel etc but the message still keeps showing up it not too often but sooner or later ll see it Also found href https github com docker docker issues 5618 rel noreferrer issue for this problem on docker github is still open then my questions are polliWhat does this message mean Could somebody give me simple explanation why docker causes it liliIs there any workaround for this liliIf it could not be fixed yet the issue is still open will it affect the server or services running inside docker container Will it be serious performance issue because it also happens on our production servers li olpDocker version ppre codeClient Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64Server Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64 code prepOS info ppre codeCentOS with kernel version el7 elrepo x86 64 code prepI really appreciate for any info tips or resources thanks lot,NULL 52183,3287976,1000254,Editor Teacher Curious Informed Autobiographer Nice Question Famous Question Caucus Good Question Yearling Critic Custodian Yearling Yearling Yearling Yearling Mortarboard Custodian Custodian Custodian Organizer Enthusiast Explainer Excavator Tenacious Tumbleweed Popular Question Revival Nice Answer Enlightened Popular Question Notable Question Nice Question Caucus Good Question Nice Answer Yearling Good Answer Famous Question Notable Question Nice Answer Nice Answer Enlightened Favorite Question Popular Question docker Guru Yearling,NULL,Docker on CentOS kernel unregister netdevice waiting for lo to become free Usage count networking docker centos centos7 loopback pI running Docker on CentOS from time to time there the following message displayed ppre codeMessage from syslogd master at Mar 29 17 23 03 kernel unregister netdevice waiting for lo to become free Usage count code prepI ve googled lot read lot of resources found and tried many ways like keeping my system updated upgrading kernel etc but the message still keeps showing up it not too often but sooner or later ll see it Also found href https github com docker docker issues 5618 rel noreferrer issue for this problem on docker github is still open then my questions are polliWhat does this message mean Could somebody give me simple explanation why docker causes it liliIs there any workaround for this liliIf it could not be fixed yet the issue is still open will it affect the server or services running inside docker container Will it be serious performance issue because it also happens on our production servers li olpDocker version ppre codeClient Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64Server Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64 code prepOS info ppre codeCentOS with kernel version el7 elrepo x86 64 code prepI really appreciate for any info tips or resources thanks lot didn do that when the message shows up seems there no affect to our application So for now just let it be,1,Docker on CentOS kernel unregister netdevice waiting for lo to become free Usage count networking docker centos centos7 loopback pI running Docker on CentOS from time to time there the following message displayed ppre codeMessage from syslogd master at Mar 29 17 23 03 kernel unregister netdevice waiting for lo to become free Usage count code prepI ve googled lot read lot of resources found and tried many ways like keeping my system updated upgrading kernel etc but the message still keeps showing up it not too often but sooner or later ll see it Also found href https github com docker docker issues 5618 rel noreferrer issue for this problem on docker github is still open then my questions are polliWhat does this message mean Could somebody give me simple explanation why docker causes it liliIs there any workaround for this liliIf it could not be fixed yet the issue is still open will it affect the server or services running inside docker container Will it be serious performance issue because it also happens on our production servers li olpDocker version ppre codeClient Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64Server Version 11 API version 23 Go version go1 Git commit 5604cbe Built Wed Apr 27 00 34 42 2016 OS Arch linux amd64 code prepOS info ppre codeCentOS with kernel version el7 elrepo x86 64 code prepI really appreciate for any info tips or resources thanks lot,NULL 52184,1308454,407650,Nice Question Notable Question Popular Question Notable Question Nice Answer Enlightened Cleanup Nice Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Answer Good Question Popular Question Notable Question Popular Question Notable Question Guru Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Nice Question Caucus Pundit Famous Question Good Answer Famous Question Great Answer Notable Question Famous Question Popular Question Notable Question Caucus Yearling Disciplined Popular Question Great Question Famous Question Popular Question Good Question Electorate Popular Question Good Question Socratic Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Nice Question Notable Question Favorite Question node.js Nice Question,NULL,What up with these Unicode combining characters and how can we filter them unicode sanitize combining marks zalgo pกิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ppThese recently showed up in facebook comment sections ppHow can we sanitize this As note it seems that stackoverflow fixed this issue with large unicode characters overlapping other text ES6 immediately invoked arrow function javascript node js arrow functions pWhy does this work in codeNode js code console tested in and but doesn work in the browser tested in Chrome This code block should create and invoke an anonymous function that logs codeOk code ppre code gt console log Ok code prepAlso while the above strongworks strong in Node this does not work ppre coden gt console log Ok code prepNor this ppre code gt console log Ok code prepWhat odd is that when the parameter is added it actually throws codeSyntaxError code at the immediately invoking part Yes console log Ok works even in Chrome dev console,1,ES6 immediately invoked arrow function javascript node js arrow functions pWhy does this work in codeNode js code console tested in and but doesn work in the browser tested in Chrome This code block should create and invoke an anonymous function that logs codeOk code ppre code gt console log Ok code prepAlso while the above strongworks strong in Node this does not work ppre coden gt console log Ok code prepNor this ppre code gt console log Ok code prepWhat odd is that when the parameter is added it actually throws codeSyntaxError code at the immediately invoking part,NULL 52185,233483,1215099,NULL,NULL,NULL,0,NULL,NULL 52186,1656683,1215099,NULL,NULL,NULL,0,NULL,NULL 52187,243803,646696,Caucus Yearling Populist Caucus Yearling,NULL,NULL,0,NULL,NULL 52188,806346,1035266,NULL,NULL,NULL,0,NULL,NULL 52189,68806,1478762,Excavator Informed,NULL,NULL,0,NULL,NULL 52190,61800,865696,Tumbleweed Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52191,393513,969490,Caucus Commentator,NULL,NULL,0,NULL,NULL 52192,594418,109781,NULL,NULL,NULL,0,NULL,NULL 52193,5190,109781,NULL,NULL,NULL,0,NULL,NULL 52194,260688,484161,NULL,NULL,NULL,0,NULL,NULL 52195,412500,96128,Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52196,237227,1472048,Yearling Popular Question Popular Question Popular Question Notable Question Guru Yearling Self-Learner Announcer Announcer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 52197,1035341,75025,NULL,NULL,NULL,0,NULL,NULL 52198,340117,827459,NULL,NULL,NULL,0,NULL,NULL 52199,11940,805196,NULL,NULL,NULL,0,NULL,NULL 52200,535352,296066,Critic Commentator Yearling Self-Learner Popular Question Caucus Notable Question Yearling Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 52201,1505228,535603,NULL,NULL,NULL,0,NULL,NULL 52202,282925,942207,NULL,NULL,NULL,0,NULL,NULL 52203,757912,1556264,NULL,NULL,NULL,0,NULL,NULL 52204,678550,932455,NULL,NULL,NULL,0,NULL,NULL 52205,240182,1017872,Popular Question Notable Question Teacher Scholar Tumbleweed Student Supporter,NULL,NULL,0,NULL,NULL 52206,139336,149741,Notable Question Popular Question Nice Question Nice Question Nice Question Famous Question Nice Question Necromancer Yearling Benefactor Nice Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Notable Question Civic Duty Documentation User Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 52207,462756,495443,Tumbleweed,NULL,NULL,0,NULL,NULL 52208,294941,292646,NULL,NULL,NULL,0,NULL,NULL 52209,391614,1351238,Informed,NULL,NULL,0,NULL,NULL 52210,736913,1285125,NULL,NULL,NULL,0,NULL,NULL 52211,343909,261880,Autobiographer Critic Analytical Caucus,NULL,NULL,0,NULL,NULL 52212,839442,1470598,Necromancer,NULL,NULL,0,NULL,NULL 52213,80703,370110,Commentator,NULL,NULL,0,NULL,NULL 52214,1177441,1195122,NULL,NULL,NULL,0,NULL,NULL 52215,273225,1359792,Popular Question,NULL,NULL,0,NULL,NULL 52216,22100,313394,NULL,NULL,NULL,0,NULL,NULL 52217,8198704,204931,NULL,NULL,NULL,0,NULL,NULL 52218,3308449,1465329,Teacher,NULL,NULL,0,NULL,NULL 52219,1564555,1189670,NULL,NULL,NULL,0,NULL,NULL 52220,570754,122236,Announcer Self-Learner Yearling Necromancer,NULL,NULL,0,NULL,NULL 52221,1066750,1160861,Notable Question Informed Census Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52222,139449,1468064,NULL,NULL,NULL,0,NULL,NULL 52223,23318,46973,Nice Question,NULL,NULL,0,NULL,NULL 52224,640045,1373283,NULL,NULL,NULL,0,NULL,NULL 52225,767489,199977,Necromancer Yearling,NULL,NULL,0,NULL,NULL 52226,466502,666749,NULL,NULL,NULL,0,NULL,NULL 52227,782832,434616,Self-Learner Popular Question Popular Question Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52228,1225006,663077,NULL,NULL,NULL,0,NULL,NULL 52229,887959,898479,Popular Question,NULL,NULL,0,NULL,NULL 52230,1559371,1384940,NULL,NULL,NULL,0,NULL,NULL 52231,142826,890521,Popular Question,NULL,NULL,0,NULL,NULL 52232,128821,333739,Yearling Yearling,NULL,NULL,0,NULL,NULL 52233,6443,547787,Yearling Yearling,NULL,NULL,0,NULL,NULL 52234,162332,547787,Yearling Yearling,NULL,NULL,0,NULL,NULL 52235,468267,999171,NULL,NULL,NULL,0,NULL,NULL 52236,89010,1355201,Student Scholar Editor Excavator Informed Supporter Teacher,NULL,NULL,0,NULL,NULL 52237,181808,436766,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52238,422417,394643,Nice Answer Enlightened Good Answer travis-ci Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52239,34465,394643,Nice Answer Enlightened Good Answer travis-ci Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52240,695788,192221,Necromancer Nice Answer Necromancer Yearling Pundit Nice Answer Notable Question Yearling Popular Question Nice Answer Necromancer Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 52241,283405,1416657,NULL,NULL,NULL,0,NULL,NULL 52242,1377542,945524,NULL,NULL,NULL,0,NULL,NULL 52243,427677,355577,NULL,NULL,NULL,0,NULL,NULL 52244,72542,1408169,NULL,NULL,NULL,0,NULL,NULL 52245,1285359,1330854,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 52246,307538,1421556,Popular Question Teacher Notable Question Curious,NULL,NULL,0,NULL,NULL 52247,244036,87781,Popular Question Famous Question Civic Duty Yearling Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52248,183529,1151655,NULL,NULL,NULL,0,NULL,NULL 52249,1423,289264,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52250,23355,92676,Notable Question Popular Question Yearling Famous Question Good Question Famous Question Nice Question Good Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 52251,456900,92676,Notable Question Popular Question Yearling Famous Question Good Question Famous Question Nice Question Good Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 52252,29349,934195,Good Question Popular Question Necromancer Nice Answer Nice Answer Necromancer Favorite Question Nice Answer Yearling Caucus Famous Question Famous Question Custodian Good Answer Necromancer Necromancer Popular Question Caucus Announcer Great Question Famous Question Good Question Yearling Popular Question Necromancer Nice Question Notable Question Revival Caucus Announcer Pundit Good Answer Revival Good Answer Nice Answer Yearling Nice Question Necromancer,NULL,NULL,0,NULL,NULL 52253,30761,1013665,NULL,NULL,NULL,0,NULL,NULL 52254,308111,218071,Revival Necromancer Caucus Yearling Nice Answer Critic Yearling Caucus Good Answer Caucus Commentator,NULL,NULL,0,NULL,NULL 52255,4624423,218071,Revival Necromancer Caucus Yearling Nice Answer Critic Yearling Caucus Good Answer Caucus Commentator,NULL,NULL,0,NULL,NULL 52256,453304,328402,NULL,NULL,NULL,0,NULL,NULL 52257,30040,729928,Student Scholar Yearling Critic Necromancer,NULL,NULL,0,NULL,NULL 52258,786513,108602,Custodian Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Famous Question Notable Question Caucus Guru Nice Answer Yearling Nice Answer Enlightened Good Answer Necromancer Nice Answer Nice Answer Enlightened c# Yearling asp.net-mvc-3 Notable Question Guru,NULL,NULL,0,NULL,NULL 52259,212022,305499,NULL,NULL,NULL,0,NULL,NULL 52260,140091,516355,NULL,NULL,NULL,0,NULL,NULL 52261,1566781,1333870,NULL,NULL,NULL,0,NULL,NULL 52262,505613,1407735,Investor Altruist Notable Question Tumbleweed Yearling Notable Question Autobiographer Guru Popular Question Benefactor Notable Question Custodian Yearling Nice Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 52263,769548,88358,Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52264,2669952,582446,NULL,NULL,NULL,0,NULL,NULL 52265,8046,894284,Necromancer Necromancer Nice Answer functional-programming Popular Question Notable Question Good Answer Great Answer Popular Question Nice Answer Enlightened Nice Question Notable Question Popular Question Revival Good Answer Famous Question Notable Question Good Answer Notable Question Popular Question Good Answer Popular Question Notable Question Notable Question Yearling Notable Question Famous Question Socratic Caucus Constituent Nice Question Necromancer Nice Answer Popular Question Popular Question Nice Answer Popular Question Good Answer Popular Question Popular Question Nice Question Favorite Question Good Answer Guru Caucus Constituent Yearling Nice Question Taxonomist Necromancer Popular Question Guru Popular Question Nice Question Famous Question Nice Question Popular Question Nice Answer Nice Answer Guru Nice Answer Notable Question Good Answer Announcer Nice Answer Caucus Constituent Good Answer Popular Question Popular Question Nice Question Famous Question Yearling Popular Question,NULL,strongLet define object in Javascript strong According to the href https developer mozilla org en US docs Web JavaScript Glossary MDN docs every value is either an object or primitive pblockquote pprimitive primitive value pA data that is not an object and does not have any methods JavaScript has primitive datatypes string number boolean null undefined blockquotep strongWhat primitive strong pulli code3 code lili code abc code lili codetrue code lili codenull code lili codeundefined code li ulp strongWhat an object not primitive strong pulli codeObject prototype code lilieverything descended from codeObject prototype codeulli codeFunction prototype codeulli codeObject code lili codeFunction code lili codefunction code user defined functions li ul lili codeC prototype code the prototype property of user defined function this is emnot em codeC codes prototypeulli codenew code new ing user defined function li ul lili codeMath code lili codeArray prototype codeulliarrays li ul lili code code objects created using literal notation lili codenew Number code wrappers around primitives lili emmany other things em li ul lili codeObject create null code lilieverything descended from an codeObject create null code li ulp strongHow to check whether value is an object strong pp codeinstanceof code by itself won work because it misses two cases ppre code oops isObject Object prototype gt false oops isObject Object create null gt falsefunction isObject val return val instanceof Object code prep codetypeof object code won work because of false positives codenull code and false negatives functions ppre code oops isObject Object gt falsefunction isObject val return typeof val object code prep codeObject prototype toString call code won work because of false positives for all of the primitives ppre code gt Object prototype toString call object Number gt Object prototype toString call new Number object Number code prepSo use ppre codefunction isObject val if val null return false return typeof val function typeof val object code prehrp answer also seems to work ppre codefunction isObject obj return obj Object obj code prepbecause according to the href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object MDN docs pblockquote pThe Object constructor creates an object wrapper for the given value If the value is null or undefined it will create and return an empty object otherwise it will return an object of type that corresponds to the given value If the value is an object already it will return the value blockquotehrpA third way that seems to work not sure if it 100 is to use codeObject getPrototypeOf code which href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object getPrototypeOf throws an exception if its argument isn an object ppre code these examples throw exceptionsObject getPrototypeOf null Object getPrototypeOf undefined Object getPrototypeOf Object getPrototypeOf abc Object getPrototypeOf true these examples don throw exceptionsObject getPrototypeOf Object Object getPrototypeOf Object prototype Object getPrototypeOf Object create null Object getPrototypeOf Object getPrototypeOf code pre arrays are objects in Javascript as mentioned in my answer,0,NULL,NULL 52266,668197,767392,Teacher,NULL,NULL,0,NULL,NULL 52267,1970049,584548,Yearling Announcer Custodian Informed Good Answer Populist Popular Question Curious Caucus Constituent Notable Question Yearling Custodian Custodian Custodian Custodian Organizer Explainer Tenacious Nice Answer ios Announcer Revival Excavator Caucus Famous Question Fanatic Documentation User Custodian Custodian Revival Census Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Popular Question Necromancer,NULL,strongANSWER UPDATED strong pulli href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer GitHub project update to Swift liliUpdated QuartzCode to version1 55 changes on the generated code liliCode refactored to use the new coderefreshControl code property href https useyourloaf com blog refresh control changes in ios 10 rel nofollow noreferrer introduced in iOS10 also more swifty now liliIncluded suggestion down below thanks li ulhrpI like the YouTube link you posted Nice result ppFor reference QuartzCode is pretty good for creating codeUIRefreshControl code animation from scratch ppCheck out href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer this little project GitHub In it you will find the QuartzCode project file as well as an example on how to integrate it with codeUITableView code ppI think the most important part in there is the coderefresh code function ppre code Called everytime refresh control value changes parameter sender The UIRefreshControl of this TableView func refresh sender UIRefreshControl animate In this demo the refresh will last seconds DispatchQueue main asyncAfter deadline now Do something with the retrieved data TODO then end the refresh operation self refreshControl endRefreshing Stop animations self stopAnimations code prepLook how easy is to use the animations ppre code Three examples Uncomment comment to check all of them func animate Example 01 animateCloudUpAndDown Example 02 animateCloudStrokeWithGradientFill Example 03 animateCloudStrokeWithSolidFill MARK Animation Examples Animates the cloud up and down func animateCloudUpAndDown customUIRefreshControl addRefreshUpDownAnimation Draws the cloud by make its stroke line gradually visible then shows solid blueish background and then fades everything out func animateCloudStrokeWithGradientFill customUIRefreshControl addRefreshGradientAnimation Draws the cloud by make its stroke line gradually visible then shows gradient blueish background and then fades everything out func animateCloudStrokeWithSolidFill customUIRefreshControl addRefreshSolidAnimation code prepCheers thanks lot for your comment agree made some changes to the code and included your suggestion Take look Add Documentation is disabled in Xcode 9B55 xcode pFor example pp href https stack imgur com G1NcZ png rel noreferrer img src https stack imgur com G1NcZ png alt Add Documentation Disabled ppAny ideas ppMacOS High Sierra 10 13 1brXcode 9B55 Tried all that in that order but unfortunately no luck on my side Thanks anyway,1,Add Documentation is disabled in Xcode 9B55 xcode pFor example pp href https stack imgur com G1NcZ png rel noreferrer img src https stack imgur com G1NcZ png alt Add Documentation Disabled ppAny ideas ppMacOS High Sierra 10 13 1brXcode 9B55,Creating completely custom UIRefreshControl ios objective uirefreshcontrol pI need to create an entirely custom codeUIRefresh code control Animation image pull down amount etc ppMy initial thought is to start from scratch use UIViewController add my own view to it animate by accessing the codeUIScrollViewDelegate code methods ppI can do all this but is there way with slightly less work and easier to add to multiple codeUITableView codes ppIs it possible to subclass codeUIRefreshControl code and change this amount of stuff inside it strongANSWER UPDATED strong pulli href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer GitHub project update to Swift liliUpdated QuartzCode to version1 55 changes on the generated code liliCode refactored to use the new coderefreshControl code property href https useyourloaf com blog refresh control changes in ios 10 rel nofollow noreferrer introduced in iOS10 also more swifty now liliIncluded suggestion down below thanks li ulhrpI like the YouTube link you posted Nice result ppFor reference QuartzCode is pretty good for creating codeUIRefreshControl code animation from scratch ppCheck out href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer this little project GitHub In it you will find the QuartzCode project file as well as an example on how to integrate it with codeUITableView code ppI think the most important part in there is the coderefresh code function ppre code Called everytime refresh control value changes parameter sender The UIRefreshControl of this TableView func refresh sender UIRefreshControl animate In this demo the refresh will last seconds DispatchQueue main asyncAfter deadline now Do something with the retrieved data TODO then end the refresh operation self refreshControl endRefreshing Stop animations self stopAnimations code prepLook how easy is to use the animations ppre code Three examples Uncomment comment to check all of them func animate Example 01 animateCloudUpAndDown Example 02 animateCloudStrokeWithGradientFill Example 03 animateCloudStrokeWithSolidFill MARK Animation Examples Animates the cloud up and down func animateCloudUpAndDown customUIRefreshControl addRefreshUpDownAnimation Draws the cloud by make its stroke line gradually visible then shows solid blueish background and then fades everything out func animateCloudStrokeWithGradientFill customUIRefreshControl addRefreshGradientAnimation Draws the cloud by make its stroke line gradually visible then shows gradient blueish background and then fades everything out func animateCloudStrokeWithSolidFill customUIRefreshControl addRefreshSolidAnimation code prepCheers 52268,497364,584548,Yearling Announcer Custodian Informed Good Answer Populist Popular Question Curious Caucus Constituent Notable Question Yearling Custodian Custodian Custodian Custodian Organizer Explainer Tenacious Nice Answer ios Announcer Revival Excavator Caucus Famous Question Fanatic Documentation User Custodian Custodian Revival Census Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Popular Question Necromancer,NULL,strongANSWER UPDATED strong pulli href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer GitHub project update to Swift liliUpdated QuartzCode to version1 55 changes on the generated code liliCode refactored to use the new coderefreshControl code property href https useyourloaf com blog refresh control changes in ios 10 rel nofollow noreferrer introduced in iOS10 also more swifty now liliIncluded suggestion down below thanks li ulhrpI like the YouTube link you posted Nice result ppFor reference QuartzCode is pretty good for creating codeUIRefreshControl code animation from scratch ppCheck out href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer this little project GitHub In it you will find the QuartzCode project file as well as an example on how to integrate it with codeUITableView code ppI think the most important part in there is the coderefresh code function ppre code Called everytime refresh control value changes parameter sender The UIRefreshControl of this TableView func refresh sender UIRefreshControl animate In this demo the refresh will last seconds DispatchQueue main asyncAfter deadline now Do something with the retrieved data TODO then end the refresh operation self refreshControl endRefreshing Stop animations self stopAnimations code prepLook how easy is to use the animations ppre code Three examples Uncomment comment to check all of them func animate Example 01 animateCloudUpAndDown Example 02 animateCloudStrokeWithGradientFill Example 03 animateCloudStrokeWithSolidFill MARK Animation Examples Animates the cloud up and down func animateCloudUpAndDown customUIRefreshControl addRefreshUpDownAnimation Draws the cloud by make its stroke line gradually visible then shows solid blueish background and then fades everything out func animateCloudStrokeWithGradientFill customUIRefreshControl addRefreshGradientAnimation Draws the cloud by make its stroke line gradually visible then shows gradient blueish background and then fades everything out func animateCloudStrokeWithSolidFill customUIRefreshControl addRefreshSolidAnimation code prepCheers thanks lot for your comment agree made some changes to the code and included your suggestion Take look Add Documentation is disabled in Xcode 9B55 xcode pFor example pp href https stack imgur com G1NcZ png rel noreferrer img src https stack imgur com G1NcZ png alt Add Documentation Disabled ppAny ideas ppMacOS High Sierra 10 13 1brXcode 9B55 Tried all that in that order but unfortunately no luck on my side Thanks anyway,1,Add Documentation is disabled in Xcode 9B55 xcode pFor example pp href https stack imgur com G1NcZ png rel noreferrer img src https stack imgur com G1NcZ png alt Add Documentation Disabled ppAny ideas ppMacOS High Sierra 10 13 1brXcode 9B55,Creating completely custom UIRefreshControl ios objective uirefreshcontrol pI need to create an entirely custom codeUIRefresh code control Animation image pull down amount etc ppMy initial thought is to start from scratch use UIViewController add my own view to it animate by accessing the codeUIScrollViewDelegate code methods ppI can do all this but is there way with slightly less work and easier to add to multiple codeUITableView codes ppIs it possible to subclass codeUIRefreshControl code and change this amount of stuff inside it strongANSWER UPDATED strong pulli href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer GitHub project update to Swift liliUpdated QuartzCode to version1 55 changes on the generated code liliCode refactored to use the new coderefreshControl code property href https useyourloaf com blog refresh control changes in ios 10 rel nofollow noreferrer introduced in iOS10 also more swifty now liliIncluded suggestion down below thanks li ulhrpI like the YouTube link you posted Nice result ppFor reference QuartzCode is pretty good for creating codeUIRefreshControl code animation from scratch ppCheck out href https github com backslash quartzcode uirefreshcontrol rel nofollow noreferrer this little project GitHub In it you will find the QuartzCode project file as well as an example on how to integrate it with codeUITableView code ppI think the most important part in there is the coderefresh code function ppre code Called everytime refresh control value changes parameter sender The UIRefreshControl of this TableView func refresh sender UIRefreshControl animate In this demo the refresh will last seconds DispatchQueue main asyncAfter deadline now Do something with the retrieved data TODO then end the refresh operation self refreshControl endRefreshing Stop animations self stopAnimations code prepLook how easy is to use the animations ppre code Three examples Uncomment comment to check all of them func animate Example 01 animateCloudUpAndDown Example 02 animateCloudStrokeWithGradientFill Example 03 animateCloudStrokeWithSolidFill MARK Animation Examples Animates the cloud up and down func animateCloudUpAndDown customUIRefreshControl addRefreshUpDownAnimation Draws the cloud by make its stroke line gradually visible then shows solid blueish background and then fades everything out func animateCloudStrokeWithGradientFill customUIRefreshControl addRefreshGradientAnimation Draws the cloud by make its stroke line gradually visible then shows gradient blueish background and then fades everything out func animateCloudStrokeWithSolidFill customUIRefreshControl addRefreshSolidAnimation code prepCheers 52269,2902848,477397,Popular Question Teacher Editor,NULL,NULL,0,NULL,NULL 52270,46252,899015,NULL,NULL,NULL,0,NULL,NULL 52271,631899,187455,Yearling Popular Question Yearling Nice Answer Enlightened Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 52272,2978780,619839,Informed Popular Question Popular Question Self-Learner Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52273,548785,498555,NULL,NULL,NULL,0,NULL,NULL 52274,1028697,299943,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52275,230056,461344,NULL,NULL,NULL,0,NULL,NULL 52276,222032,1078212,NULL,NULL,NULL,0,NULL,NULL 52277,510341,1035371,NULL,NULL,NULL,0,NULL,NULL 52278,1084209,1035371,NULL,NULL,NULL,0,NULL,NULL 52279,353637,725979,NULL,NULL,NULL,0,NULL,NULL 52280,68655,1190793,NULL,NULL,NULL,0,NULL,NULL 52281,290189,405413,Editor,NULL,NULL,0,NULL,NULL 52282,835171,1202830,Yearling Quorum Necromancer jquery Nice Answer Necromancer Nice Answer Enlightened Great Answer Guru Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Curious Electorate Tag Editor javascript Custodian Announcer Pundit Nice Answer Good Answer Guru Popular Question Nice Answer Enlightened Nice Answer Announcer arrays Custodian Nice Answer Enlightened Yearling Nice Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer,NULL,codeplace geometry location code is href https developers google com maps documentation javascript reference LatLng rel noreferrer codeLatLng code so you can call its code lat code and code lng code methods ppre codevar location place geometry location var lat location lat var lng location lng code prepYou ll see that these methods are present in your inspection of this object ppNever use undocumented properties such as the codeib code and codejb code you discovered Google compiles the Maps API using the href https developers google com closure compiler rel noreferrer Closure Compiler or similar tool which generates random names for private properties and variables It variable from the code in OP question pHere faster version of href https stackoverflow com 4859186 1202830 Ergwun excellent answer ppre codestatic int SearchBytes byte haystack byte needle var len needle Length var limit haystack Length len for var lt limit var for lt len if needle haystack break if len return return code prepIn brief test with an 11MB haystack and byte needle this was about three times faster ppThe optimizations are pulliNo function call each time through the outer loop liliNeedle length and search limit are cached liliRedundant length test at the beginning of codematch code is removed li ulpOf course for long byte arrays you want to use something like Boyer Moore search but for many purposes simple algorithm like this is good enough and it has the virtue of being short and easy to understand and verify Good point was just speaking in general terms slow but simple and easy to understand algorithm can be good enough if either your data is small by whatever measure or if it really isn that important how long it takes to run For example had case where had to do similar byte array search as part of build process With simple algorithm like the one above the search took about second Obviously this would be deal breaker in many situations but this was part of release build that took several minutes and was run only occasionally So simple and slow was plenty good,0,NULL,NULL 52283,4538385,370252,Nice Answer Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 52284,53333,370252,Nice Answer Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 52285,243944,490528,Necromancer Caucus,NULL,NULL,0,NULL,NULL 52286,605834,1550563,NULL,NULL,NULL,0,NULL,NULL 52287,4036,139534,NULL,NULL,NULL,0,NULL,NULL 52288,798330,503881,Popular Question,NULL,NULL,0,NULL,NULL 52289,933878,1234201,NULL,NULL,NULL,0,NULL,NULL 52290,600177,1390126,Notable Question,NULL,NULL,0,NULL,NULL 52291,147262,801745,Nice Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 52292,7560200,801745,Nice Question Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 52293,1562817,898362,Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 52294,192497,354156,NULL,NULL,NULL,0,NULL,NULL 52295,136886,726019,NULL,NULL,NULL,0,NULL,NULL 52296,214782,999032,Famous Question Great Question Yearling Famous Question Popular Question Famous Question Popular Question Good Answer Notable Question Famous Question Notable Question Popular Question Good Question Stellar Question Nice Question Yearling Nice Answer Famous Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 52297,94081,303863,Notable Question Nice Question Notable Question Good Question Popular Question Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52298,7916396,303863,Notable Question Nice Question Notable Question Good Question Popular Question Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52299,107211,959057,NULL,NULL,NULL,0,NULL,NULL 52300,214109,797966,NULL,NULL,NULL,0,NULL,NULL 52301,270821,257550,Necromancer Nice Answer Enlightened Necromancer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Great Answer Necromancer Great Answer Nice Question Popular Question Good Answer Nice Answer Guru Notable Question Necromancer Notable Question Nice Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Yearling Guru Necromancer Nice Answer Notable Question Great Question Popular Question Nice Answer Nice Answer Nice Question Popular Question Good Answer Famous Question Yearling Enlightened Good Answer Nice Answer Enlightened Good Answer Necromancer Popular Question Popular Question Necromancer Revival,NULL,NULL,0,NULL,NULL 52302,106098,29306,NULL,NULL,NULL,0,NULL,NULL 52303,619809,1106382,Good Answer Nice Answer Enlightened Good Answer Nice Answer javascript Good Answer Nice Answer Enlightened Good Answer Caucus Great Answer Nice Answer Enlightened Guru Nice Answer Yearling Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Guru Guru Nice Answer Enlightened Nice Answer Yearling Good Answer Guru Caucus Nice Answer Enlightened Good Answer Nice Answer Nice Answer Great Answer Good Answer,NULL,NULL,0,NULL,NULL 52304,158238,1493159,Editor Enthusiast Revival,NULL,NULL,0,NULL,NULL 52305,34390,797986,NULL,NULL,NULL,0,NULL,NULL 52306,262375,1544854,Curious Teacher Notable Question Notable Question,NULL,NULL,0,NULL,NULL 52307,780745,357932,NULL,NULL,NULL,0,NULL,NULL 52308,632110,843467,NULL,NULL,NULL,0,NULL,NULL 52309,790156,27012,Popular Question Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Popular Question Nice Question Notable Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 52310,130504,939565,Promoter Benefactor Yearling Good Answer Nice Answer Yearling Popular Question Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 52311,77114,384940,NULL,NULL,NULL,0,NULL,NULL 52312,76552,384940,NULL,NULL,NULL,0,NULL,NULL 52313,22979,486418,NULL,NULL,NULL,0,NULL,NULL 52314,432503,1161263,Popular Question,NULL,NULL,0,NULL,NULL 52315,33055,763522,Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 52316,217400,183055,Notable Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 52317,531532,706905,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52318,15031,359940,Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 52319,1700844,1168103,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 52320,100785,1072753,Informed,NULL,NULL,0,NULL,NULL 52321,13996,551206,NULL,NULL,NULL,0,NULL,NULL 52322,12548,349438,Supporter,NULL,NULL,0,NULL,NULL 52323,283398,555366,Famous Question Nice Question Yearling Notable Question Necromancer Caucus Constituent Critic Curious Nice Answer Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 52324,347103,1149943,NULL,NULL,NULL,0,NULL,NULL 52325,804265,894339,NULL,NULL,NULL,0,NULL,NULL 52326,541143,1087022,Critic,NULL,NULL,0,NULL,NULL 52327,138932,165333,Good Answer Populist Popular Question Pundit Popular Question Yearling Good Answer Notable Question Revival bash Good Answer Nice Answer Great Answer Popular Question Good Answer Nice Answer Notable Question Guru Nice Question Guru Announcer Caucus Yearling Revival Guru Popular Question Nice Answer Enlightened shell Necromancer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 52328,608932,1541118,NULL,NULL,NULL,0,NULL,NULL 52329,63308,249760,Yearling Notable Question Nice Answer Revival Popular Question Yearling Good Answer Announcer Necromancer Nice Answer Good Answer Yearling Revival ruby-on-rails Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 52330,798292,406038,Student Scholar,NULL,NULL,0,NULL,NULL 52331,322665,468904,Peer Pressure Popular Question Nice Answer Yearling Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52332,1397909,490598,NULL,NULL,NULL,0,NULL,NULL 52333,2385091,490598,NULL,NULL,NULL,0,NULL,NULL 52334,134701,1201893,NULL,NULL,NULL,0,NULL,NULL 52335,28087,298586,Good Answer,NULL,NULL,0,NULL,NULL 52336,115109,84791,Good Answer Popular Question Yearling Notable Question Notable Question Nice Question asp.net-mvc-2 Famous Question Notable Question Yearling Great Answer Caucus Informed Nice Question Nice Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 52337,184516,62485,Yearling,NULL,NULL,0,NULL,NULL 52338,874502,566081,NULL,NULL,NULL,0,NULL,NULL 52339,7275,2867,Yearling Yearling,NULL,NULL,0,NULL,NULL 52340,29002,703151,NULL,NULL,NULL,0,NULL,NULL 52341,243998,4210,Announcer Notable Question Caucus,NULL,NULL,0,NULL,NULL 52342,94608,1164871,Yearling Yearling Yearling Good Answer Yearling Yearling Yearling haskell Tenacious Announcer haskell-stack Yearling,NULL,NULL,0,NULL,NULL 52343,856902,697075,NULL,NULL,NULL,0,NULL,NULL 52344,1188383,1283027,Nice Answer Critic Enthusiast Yearling Caucus Constituent Self-Learner Editor Yearling Good Answer Scholar Caucus Constituent Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 52345,2336357,1283027,Nice Answer Critic Enthusiast Yearling Caucus Constituent Self-Learner Editor Yearling Good Answer Scholar Caucus Constituent Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 52346,1040507,537253,NULL,NULL,NULL,0,NULL,NULL 52347,521732,263799,NULL,NULL,NULL,0,NULL,NULL 52348,502904,1369343,NULL,NULL,NULL,0,NULL,NULL 52349,336408,504945,Editor,NULL,NULL,0,NULL,NULL 52350,311872,682646,Documentation User,NULL,NULL,0,NULL,NULL 52351,901399,1143132,NULL,NULL,NULL,0,NULL,NULL 52352,170555,1418049,Teacher Supporter Editor Informed Commentator Scholar Yearling Yearling Custodian Citizen Patrol Custodian Custodian Critic Suffrage Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52353,1072841,1102434,Notable Question,NULL,NULL,0,NULL,NULL 52354,118220,767752,Good Answer Yearling Nice Answer Enlightened Nice Answer Famous Question Good Question Nice Question Nice Question Necromancer Yearling Nice Answer Popular Question Popular Question Popular Question Good Answer Yearling Nice Answer,NULL,Why PHP FPM prefixes warning when writing to stdout php docker pI try to run href https github com codemix yii2 dockerized rel nofollow noreferrer Yii based PHP application in Docker container using the href https hub docker com php rel nofollow noreferrer official php fpm image ppIt common practice for docker containers to write all log messages to codestdout code codestderr code So do the same from my container with code that basically looks like this ppre code fp php stdout fwrite fp message fclose fp code prepUnfortunately PHP FPM now prefixes all my log messages with ugly warnings pblockquote 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 trace yii base Application bootstrap Bootstrap with yii debug Module bootstrap 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 info yii web Session open Session started blockquotepWhy is this and is there way to prevent PHP FPM from doing this ppUPDATE polliI ve also opened href https github com docker library php issues 207 rel nofollow noreferrer an issue at the href https github com docker library php rel nofollow noreferrer docker library php project site liliThey already include the codecatch workers output yes code in href https github com docker library php blob d7176685dfad98d1e472557b10534c89fb0693ec fpm Dockerfile L99 rel nofollow noreferrer their configuration So that not the solution liliAccording to href https github com php php src pull 2458 rel nofollow noreferrer these changes the problem should be fixed in PHP li ol Can confirm As you should see from the problem description don use heroku It more misbehaviour of php fpm in general Why PHP FPM prefixes warning when writing to stdout php docker pI try to run href https github com codemix yii2 dockerized rel nofollow noreferrer Yii based PHP application in Docker container using the href https hub docker com php rel nofollow noreferrer official php fpm image ppIt common practice for docker containers to write all log messages to codestdout code codestderr code So do the same from my container with code that basically looks like this ppre code fp php stdout fwrite fp message fclose fp code prepUnfortunately PHP FPM now prefixes all my log messages with ugly warnings pblockquote 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 trace yii base Application bootstrap Bootstrap with yii debug Module bootstrap 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 info yii web Session open Session started blockquotepWhy is this and is there way to prevent PHP FPM from doing this ppUPDATE polliI ve also opened href https github com docker library php issues 207 rel nofollow noreferrer an issue at the href https github com docker library php rel nofollow noreferrer docker library php project site liliThey already include the codecatch workers output yes code in href https github com docker library php blob d7176685dfad98d1e472557b10534c89fb0693ec fpm Dockerfile L99 rel nofollow noreferrer their configuration So that not the solution liliAccording to href https github com php php src pull 2458 rel nofollow noreferrer these changes the problem should be fixed in PHP li ol Thanks ve seen that This configuration is already in place in the official docker image https github com docker library php blob d7176685dfad98d1e472557b10534c89fb0693ec fpm Dockerfile L99 Unfortunately to no avail Why PHP FPM prefixes warning when writing to stdout php docker pI try to run href https github com codemix yii2 dockerized rel nofollow noreferrer Yii based PHP application in Docker container using the href https hub docker com php rel nofollow noreferrer official php fpm image ppIt common practice for docker containers to write all log messages to codestdout code codestderr code So do the same from my container with code that basically looks like this ppre code fp php stdout fwrite fp message fclose fp code prepUnfortunately PHP FPM now prefixes all my log messages with ugly warnings pblockquote 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 trace yii base Application bootstrap Bootstrap with yii debug Module bootstrap 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 info yii web Session open Session started blockquotepWhy is this and is there way to prevent PHP FPM from doing this ppUPDATE polliI ve also opened href https github com docker library php issues 207 rel nofollow noreferrer an issue at the href https github com docker library php rel nofollow noreferrer docker library php project site liliThey already include the codecatch workers output yes code in href https github com docker library php blob d7176685dfad98d1e472557b10534c89fb0693ec fpm Dockerfile L99 rel nofollow noreferrer their configuration So that not the solution liliAccording to href https github com php php src pull 2458 rel nofollow noreferrer these changes the problem should be fixed in PHP li ol didn try it There are other workarounds all require you to mess around with CMD something don want to do,1,Why PHP FPM prefixes warning when writing to stdout php docker pI try to run href https github com codemix yii2 dockerized rel nofollow noreferrer Yii based PHP application in Docker container using the href https hub docker com php rel nofollow noreferrer official php fpm image ppIt common practice for docker containers to write all log messages to codestdout code codestderr code So do the same from my container with code that basically looks like this ppre code fp php stdout fwrite fp message fclose fp code prepUnfortunately PHP FPM now prefixes all my log messages with ugly warnings pblockquote 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 trace yii base Application bootstrap Bootstrap with yii debug Module bootstrap 21 Mar 2016 14 10 02 WARNING pool www child 12 said into stdout 2016 03 21 14 10 02 info yii web Session open Session started blockquotepWhy is this and is there way to prevent PHP FPM from doing this ppUPDATE polliI ve also opened href https github com docker library php issues 207 rel nofollow noreferrer an issue at the href https github com docker library php rel nofollow noreferrer docker library php project site liliThey already include the codecatch workers output yes code in href https github com docker library php blob d7176685dfad98d1e472557b10534c89fb0693ec fpm Dockerfile L99 rel nofollow noreferrer their configuration So that not the solution liliAccording to href https github com php php src pull 2458 rel nofollow noreferrer these changes the problem should be fixed in PHP li ol,NULL 52355,134224,70595,NULL,NULL,NULL,0,NULL,NULL 52356,619996,189919,Nice Answer Populist Nice Answer Enlightened Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 52357,492457,865594,NULL,NULL,Bash subshell errexit semantics bash pI have errexit and pipefail enabled for my shell script because that the behaviour usually want However occasionally want to capture errors and handle them specific way ppI know that errexit is disabled for commands that contain boolean operators or are to be used as condition if while etc ppe ppre codegit push amp amp trueecho Pushed code prepwill echo Pushed on success or Pushed emsomething else em on failure ppHowever what if want subshell to have errexit enabled but then wish to capture the exit code of this subshell ppFor example ppre code usr bin env bashset errexit git push echo Hai amp amp trueecho Did it work code prepThe problem is bash sees the amp amp boolean operator and disables errexit for the subshell This means that Hai is always echo That not desirable ppHow do enable errexit in this subshell and capture the status code of the subshell without letting that exit code terminate the outer shell strongwithout constantly enabling and disabling errexit all over the place strong ph2Update h2pI have strong feeling the solution is to use traps and capture the exit signal Feel free to provide an answer before emself answer em How about making the subshell into function run the function in the background and wait for it The exit code of wait is the exit status of the function,0,NULL,NULL 52358,84674,24478,Necromancer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52359,554,333346,Popular Question Census,NULL,NULL,0,NULL,NULL 52360,652900,269846,Good Question Yearling Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 52361,201821,269846,Good Question Yearling Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 52362,253966,214090,Good Answer Nice Answer Yearling Guru Guru Yearling Guru Enlightened Yearling,NULL,NULL,0,NULL,NULL 52363,26701,30881,Guru Enlightened Yearling Necromancer Notable Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52364,39769,448891,Yearling,NULL,NULL,0,NULL,NULL 52365,435036,29,Good Answer Nice Answer Good Answer Famous Question Good Answer Good Answer Yearling Popular Question Nice Question Tag Editor Good Answer Nice Answer Enlightened Great Answer Nice Answer Favorite Question Good Answer Guru Nice Answer Announcer Famous Question Enlightened Good Answer Yearling Great Answer Great Answer Great Question Guru Guru Nice Answer Enlightened Yearling Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 52366,276062,128317,Popular Question Organizer Yearling Nice Answer Notable Question Announcer Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 52367,533054,1236595,NULL,NULL,NULL,0,NULL,NULL 52368,639948,761555,Yearling Popular Question Announcer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 52369,363180,712811,NULL,NULL,NULL,0,NULL,NULL 52370,175838,1363654,NULL,NULL,NULL,0,NULL,NULL 52371,977636,947030,Commentator Scholar Student Yearling,NULL,NULL,1,iCEstick yosys using the Global Set Reset GSR fpga yosys pThis is probably more of an iCEstick question than yosys one but asking here since using the Icestorm tool chain ppI want to specify startup behavior of my design which various places on the internet seem to agree is related to the typically named coderst code signal It wasn obvious to me where such signal comes from so dug into the powerup sequence Current understanding is from Figure in href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFgg MAQ amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40UltraLiteDataSheetDS1050 pdf 3Fdocument id 3D50945 amp usg AFQjCNG1setrzG2ss0JEsVBkH0onbhn4rg amp sig2 PAk6LNTn4rAsDW7EHRtuGg amp bvm bv 125596728 amc rel nofollow this document ppAfter codeCDONE code is pulled high by the device all of the internal registers have been reset to some initial value Now ve found plenty of lattice documents about how each type of flip flop or hard IP receives reset signal and does something with its internal state but still don quite understand how specify what those states are or even just know what they are so can use them ppFor example if wanted to bring an LED high for second after powerup and emonly em after powerup would want to start counter after this reset signal whatever it is disables ppPoking around the href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFggjMAA amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40LPHXFamilyDataSheet pdf amp usg AFQjCNF KRkFZ7 L1EDJco0K3Mxvjg2Zg amp sig2 ac2VL1cHEtsUm3Ji UgXDg amp bvm bv 125596728 amc rel nofollow ice40 family data sheet and the Lattice site found href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwiK7bSz0MPNAhUF64MKHYGkCYUQFgg3MAM amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FUserManuals 2FEI 2FHowtouseGSRPURandTSALL PDF 3Fdocument id 3D31408 amp usg AFQjCNGXZZBDBqegxISZWZsKvRjv0HZGtQ amp sig2 7gr6CaFsaB3GuWcbpO5yog amp bvm bv 125596728 amc rel nofollow this document about using the Global Set Reset signal confirmed this codeGSR code is mentioned in the family data sheet referenced on page under Clock Control Distribution Network It seems that global reset signal is usable by one of the global buffers codeGBUF code and can be routed up to of them to all LUTs with the global high fanout distribution network ppThis seems like exactly what was after but can find any other info about how to use this in my designs The document on using the GSR states that you can instantiate native GSR component like this ppre codeGSR GSR INST GSR lt global reset sig gt code prepbut can tell whether this is just for simulation Am completely going in the wrong direction here or just missing something very inexperienced with FPGAs and hardware so its entirely possible my entire approach is flawed,NULL 52372,8031275,947030,Commentator Scholar Student Yearling,NULL,NULL,1,iCEstick yosys using the Global Set Reset GSR fpga yosys pThis is probably more of an iCEstick question than yosys one but asking here since using the Icestorm tool chain ppI want to specify startup behavior of my design which various places on the internet seem to agree is related to the typically named coderst code signal It wasn obvious to me where such signal comes from so dug into the powerup sequence Current understanding is from Figure in href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFgg MAQ amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40UltraLiteDataSheetDS1050 pdf 3Fdocument id 3D50945 amp usg AFQjCNG1setrzG2ss0JEsVBkH0onbhn4rg amp sig2 PAk6LNTn4rAsDW7EHRtuGg amp bvm bv 125596728 amc rel nofollow this document ppAfter codeCDONE code is pulled high by the device all of the internal registers have been reset to some initial value Now ve found plenty of lattice documents about how each type of flip flop or hard IP receives reset signal and does something with its internal state but still don quite understand how specify what those states are or even just know what they are so can use them ppFor example if wanted to bring an LED high for second after powerup and emonly em after powerup would want to start counter after this reset signal whatever it is disables ppPoking around the href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFggjMAA amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40LPHXFamilyDataSheet pdf amp usg AFQjCNF KRkFZ7 L1EDJco0K3Mxvjg2Zg amp sig2 ac2VL1cHEtsUm3Ji UgXDg amp bvm bv 125596728 amc rel nofollow ice40 family data sheet and the Lattice site found href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwiK7bSz0MPNAhUF64MKHYGkCYUQFgg3MAM amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FUserManuals 2FEI 2FHowtouseGSRPURandTSALL PDF 3Fdocument id 3D31408 amp usg AFQjCNGXZZBDBqegxISZWZsKvRjv0HZGtQ amp sig2 7gr6CaFsaB3GuWcbpO5yog amp bvm bv 125596728 amc rel nofollow this document about using the Global Set Reset signal confirmed this codeGSR code is mentioned in the family data sheet referenced on page under Clock Control Distribution Network It seems that global reset signal is usable by one of the global buffers codeGBUF code and can be routed up to of them to all LUTs with the global high fanout distribution network ppThis seems like exactly what was after but can find any other info about how to use this in my designs The document on using the GSR states that you can instantiate native GSR component like this ppre codeGSR GSR INST GSR lt global reset sig gt code prepbut can tell whether this is just for simulation Am completely going in the wrong direction here or just missing something very inexperienced with FPGAs and hardware so its entirely possible my entire approach is flawed,NULL 52373,1893985,947030,Commentator Scholar Student Yearling,NULL,NULL,1,iCEstick yosys using the Global Set Reset GSR fpga yosys pThis is probably more of an iCEstick question than yosys one but asking here since using the Icestorm tool chain ppI want to specify startup behavior of my design which various places on the internet seem to agree is related to the typically named coderst code signal It wasn obvious to me where such signal comes from so dug into the powerup sequence Current understanding is from Figure in href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFgg MAQ amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40UltraLiteDataSheetDS1050 pdf 3Fdocument id 3D50945 amp usg AFQjCNG1setrzG2ss0JEsVBkH0onbhn4rg amp sig2 PAk6LNTn4rAsDW7EHRtuGg amp bvm bv 125596728 amc rel nofollow this document ppAfter codeCDONE code is pulled high by the device all of the internal registers have been reset to some initial value Now ve found plenty of lattice documents about how each type of flip flop or hard IP receives reset signal and does something with its internal state but still don quite understand how specify what those states are or even just know what they are so can use them ppFor example if wanted to bring an LED high for second after powerup and emonly em after powerup would want to start counter after this reset signal whatever it is disables ppPoking around the href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFggjMAA amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40LPHXFamilyDataSheet pdf amp usg AFQjCNF KRkFZ7 L1EDJco0K3Mxvjg2Zg amp sig2 ac2VL1cHEtsUm3Ji UgXDg amp bvm bv 125596728 amc rel nofollow ice40 family data sheet and the Lattice site found href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwiK7bSz0MPNAhUF64MKHYGkCYUQFgg3MAM amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FUserManuals 2FEI 2FHowtouseGSRPURandTSALL PDF 3Fdocument id 3D31408 amp usg AFQjCNGXZZBDBqegxISZWZsKvRjv0HZGtQ amp sig2 7gr6CaFsaB3GuWcbpO5yog amp bvm bv 125596728 amc rel nofollow this document about using the Global Set Reset signal confirmed this codeGSR code is mentioned in the family data sheet referenced on page under Clock Control Distribution Network It seems that global reset signal is usable by one of the global buffers codeGBUF code and can be routed up to of them to all LUTs with the global high fanout distribution network ppThis seems like exactly what was after but can find any other info about how to use this in my designs The document on using the GSR states that you can instantiate native GSR component like this ppre codeGSR GSR INST GSR lt global reset sig gt code prepbut can tell whether this is just for simulation Am completely going in the wrong direction here or just missing something very inexperienced with FPGAs and hardware so its entirely possible my entire approach is flawed,NULL 52374,6335667,947030,Commentator Scholar Student Yearling,NULL,NULL,1,iCEstick yosys using the Global Set Reset GSR fpga yosys pThis is probably more of an iCEstick question than yosys one but asking here since using the Icestorm tool chain ppI want to specify startup behavior of my design which various places on the internet seem to agree is related to the typically named coderst code signal It wasn obvious to me where such signal comes from so dug into the powerup sequence Current understanding is from Figure in href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFgg MAQ amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40UltraLiteDataSheetDS1050 pdf 3Fdocument id 3D50945 amp usg AFQjCNG1setrzG2ss0JEsVBkH0onbhn4rg amp sig2 PAk6LNTn4rAsDW7EHRtuGg amp bvm bv 125596728 amc rel nofollow this document ppAfter codeCDONE code is pulled high by the device all of the internal registers have been reset to some initial value Now ve found plenty of lattice documents about how each type of flip flop or hard IP receives reset signal and does something with its internal state but still don quite understand how specify what those states are or even just know what they are so can use them ppFor example if wanted to bring an LED high for second after powerup and emonly em after powerup would want to start counter after this reset signal whatever it is disables ppPoking around the href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFggjMAA amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40LPHXFamilyDataSheet pdf amp usg AFQjCNF KRkFZ7 L1EDJco0K3Mxvjg2Zg amp sig2 ac2VL1cHEtsUm3Ji UgXDg amp bvm bv 125596728 amc rel nofollow ice40 family data sheet and the Lattice site found href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwiK7bSz0MPNAhUF64MKHYGkCYUQFgg3MAM amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FUserManuals 2FEI 2FHowtouseGSRPURandTSALL PDF 3Fdocument id 3D31408 amp usg AFQjCNGXZZBDBqegxISZWZsKvRjv0HZGtQ amp sig2 7gr6CaFsaB3GuWcbpO5yog amp bvm bv 125596728 amc rel nofollow this document about using the Global Set Reset signal confirmed this codeGSR code is mentioned in the family data sheet referenced on page under Clock Control Distribution Network It seems that global reset signal is usable by one of the global buffers codeGBUF code and can be routed up to of them to all LUTs with the global high fanout distribution network ppThis seems like exactly what was after but can find any other info about how to use this in my designs The document on using the GSR states that you can instantiate native GSR component like this ppre codeGSR GSR INST GSR lt global reset sig gt code prepbut can tell whether this is just for simulation Am completely going in the wrong direction here or just missing something very inexperienced with FPGAs and hardware so its entirely possible my entire approach is flawed,NULL 52375,11059337,947030,Commentator Scholar Student Yearling,NULL,NULL,1,iCEstick yosys using the Global Set Reset GSR fpga yosys pThis is probably more of an iCEstick question than yosys one but asking here since using the Icestorm tool chain ppI want to specify startup behavior of my design which various places on the internet seem to agree is related to the typically named coderst code signal It wasn obvious to me where such signal comes from so dug into the powerup sequence Current understanding is from Figure in href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFgg MAQ amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40UltraLiteDataSheetDS1050 pdf 3Fdocument id 3D50945 amp usg AFQjCNG1setrzG2ss0JEsVBkH0onbhn4rg amp sig2 PAk6LNTn4rAsDW7EHRtuGg amp bvm bv 125596728 amc rel nofollow this document ppAfter codeCDONE code is pulled high by the device all of the internal registers have been reset to some initial value Now ve found plenty of lattice documents about how each type of flip flop or hard IP receives reset signal and does something with its internal state but still don quite understand how specify what those states are or even just know what they are so can use them ppFor example if wanted to bring an LED high for second after powerup and emonly em after powerup would want to start counter after this reset signal whatever it is disables ppPoking around the href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwjSyMGQz8PNAhUMw4MKHXtZAZYQFggjMAA amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FDataSheets 2FiCE 2FiCE40LPHXFamilyDataSheet pdf amp usg AFQjCNF KRkFZ7 L1EDJco0K3Mxvjg2Zg amp sig2 ac2VL1cHEtsUm3Ji UgXDg amp bvm bv 125596728 amc rel nofollow ice40 family data sheet and the Lattice site found href https www google com url sa amp rct amp amp esrc amp source web amp cd amp cad rja amp uact amp ved 0ahUKEwiK7bSz0MPNAhUF64MKHYGkCYUQFgg3MAM amp url http 3A 2F 2Fwww latticesemi com 2F 2Fmedia 2FLatticeSemi 2FDocuments 2FUserManuals 2FEI 2FHowtouseGSRPURandTSALL PDF 3Fdocument id 3D31408 amp usg AFQjCNGXZZBDBqegxISZWZsKvRjv0HZGtQ amp sig2 7gr6CaFsaB3GuWcbpO5yog amp bvm bv 125596728 amc rel nofollow this document about using the Global Set Reset signal confirmed this codeGSR code is mentioned in the family data sheet referenced on page under Clock Control Distribution Network It seems that global reset signal is usable by one of the global buffers codeGBUF code and can be routed up to of them to all LUTs with the global high fanout distribution network ppThis seems like exactly what was after but can find any other info about how to use this in my designs The document on using the GSR states that you can instantiate native GSR component like this ppre codeGSR GSR INST GSR lt global reset sig gt code prepbut can tell whether this is just for simulation Am completely going in the wrong direction here or just missing something very inexperienced with FPGAs and hardware so its entirely possible my entire approach is flawed,NULL 52376,297196,565883,Yearling Citizen Patrol Nice Answer Enlightened Good Answer Yearling Custodian Good Answer Yearling Census Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 52377,274673,112181,NULL,NULL,NULL,0,NULL,NULL 52378,83497,560237,Yearling Custodian Necromancer,NULL,NULL,0,NULL,NULL 52379,1050797,947016,NULL,NULL,NULL,0,NULL,NULL 52380,3778155,1100939,Commentator Caucus Popular Question,NULL,NULL,0,NULL,NULL 52381,33091,1100939,Commentator Caucus Popular Question,NULL,NULL,0,NULL,NULL 52382,134401,970997,NULL,NULL,NULL,0,NULL,NULL 52383,577006,329091,Yearling Popular Question Famous Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 52384,3077311,329091,Yearling Popular Question Famous Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 52385,7515987,329091,Yearling Popular Question Famous Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 52386,651421,1024579,NULL,NULL,NULL,0,NULL,NULL 52387,91804,97231,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 52388,530050,191120,NULL,NULL,NULL,0,NULL,NULL 52389,7048163,191120,NULL,NULL,NULL,0,NULL,NULL 52390,312593,1429019,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 52391,470862,1038400,NULL,NULL,NULL,0,NULL,NULL 52392,114191,511162,NULL,NULL,NULL,0,NULL,NULL 52393,85309,1151847,Yearling Nice Answer Nice Answer Enlightened Revival Taxonomist Good Answer Great Answer Good Answer Yearling Nice Answer Enlightened Great Answer Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 52394,287636,269664,NULL,NULL,NULL,0,NULL,NULL 52395,447286,1509060,Yearling,NULL,NULL,0,NULL,NULL 52396,24633,218217,NULL,NULL,NULL,0,NULL,NULL 52397,187207,90046,Popular Question,NULL,NULL,0,NULL,NULL 52398,432402,846716,NULL,NULL,NULL,0,NULL,NULL 52399,25701,1203,Popular Question Yearling,NULL,NULL,0,NULL,NULL 52400,80033,2676,Nice Answer Yearling Necromancer Good Answer Yearling Nice Answer Popular Question Famous Question Custodian Yearling,NULL,NULL,0,NULL,NULL 52401,85119,295677,Yearling Popular Question Announcer Popular Question Popular Question Good Question Popular Question Popular Question Yearling Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 52402,247432,1386140,NULL,NULL,NULL,0,NULL,NULL 52403,14990,218160,Good Answer Guru Pundit Popular Question Good Answer Guru Nice Question Yearling Great Answer Nice Answer Custodian Good Answer Documentation User Good Answer Yearling Great Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Yearling Notable Question,NULL,pEven better than remembering to use code code is to use the codeset trace code variant that comes with Nose Add ppre codefrom nose tools import set trace set trace code prepwherever you like to break in to the debugger The stdin out redirection will be taken care of for you The only strange side effect ve run into is the inability to restart your code from within pdb using coderun code while debugging during nose run You mean how to navigate once you ve got pdb running sure there are docs but off the top of my head steps into function call goes to the next statement moves up the stack and moves down You can use to set breakpoints and to continue and quit the stepping debugger Hope that helps,0,NULL,NULL 52404,375958,659910,Popular Question Yearling Favorite Question Nice Question Nice Answer Enlightened Notable Question Nice Question Announcer Yearling Revival Announcer Nice Question Benefactor Popular Question Announcer Nice Question Notable Question Yearling Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 52405,201988,291962,Popular Question Nice Question Popular Question Caucus Famous Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 52406,33779,385864,Popular Question,NULL,NULL,0,NULL,NULL 52407,369347,477962,NULL,NULL,NULL,0,NULL,NULL 52408,365292,19082,Guru Yearling Yearling Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52409,255454,625834,Popular Question Caucus Caucus,NULL,NULL,0,NULL,NULL 52410,34523,290000,NULL,NULL,NULL,0,NULL,NULL 52411,252560,661894,NULL,NULL,NULL,0,NULL,NULL 52412,232883,542342,NULL,NULL,NULL,0,NULL,NULL 52413,301708,1212097,NULL,NULL,NULL,0,NULL,NULL 52414,1027787,627208,NULL,NULL,NULL,0,NULL,NULL 52415,5547539,1062356,NULL,NULL,NULL,0,NULL,NULL 52416,7664,1062356,NULL,NULL,NULL,0,NULL,NULL 52417,420909,304965,NULL,NULL,NULL,0,NULL,NULL 52418,3767312,1558950,NULL,NULL,NULL,0,NULL,NULL 52419,1029910,1558950,NULL,NULL,NULL,0,NULL,NULL 52420,2711177,1558950,NULL,NULL,NULL,0,NULL,NULL 52421,283262,1066594,Notable Question,NULL,NULL,0,NULL,NULL 52422,51324,1487662,Informed Autobiographer Scholar Tumbleweed Editor Student Teacher,NULL,NULL,0,NULL,NULL 52423,18362,191893,NULL,NULL,NULL,0,NULL,NULL 52424,9772,282834,Autobiographer,NULL,NULL,0,NULL,NULL 52425,1510809,1147171,Notable Question Popular Question Yearling Enthusiast Popular Question Nice Answer Popular Question Popular Question Notable Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 52426,568462,918083,NULL,NULL,NULL,0,NULL,NULL 52427,164026,782303,NULL,NULL,NULL,0,NULL,NULL 52428,151637,830716,NULL,NULL,NULL,0,NULL,NULL 52429,21895,937070,Scholar Custodian Promoter Benefactor Popular Question Curious,NULL,NULL,0,NULL,NULL 52430,240291,1137612,Supporter Informed,NULL,NULL,0,NULL,NULL 52431,48205,533220,NULL,NULL,NULL,0,NULL,NULL 52432,385831,984096,NULL,NULL,NULL,0,NULL,NULL 52433,851546,1483195,NULL,NULL,NULL,0,NULL,NULL 52434,161165,606314,Yearling Nice Question Guru Yearling Nice Answer Popular Question Yearling Excavator Nice Answer Enlightened Nice Question Custodian Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 52435,264006,1190243,NULL,NULL,NULL,0,NULL,NULL 52436,126518,1182276,NULL,NULL,NULL,0,NULL,NULL 52437,260736,146863,NULL,NULL,NULL,0,NULL,NULL 52438,950420,564595,NULL,NULL,NULL,0,NULL,NULL 52439,6466,939172,NULL,NULL,NULL,0,NULL,NULL 52440,764740,48001,NULL,NULL,NULL,0,NULL,NULL 52441,411152,659520,NULL,NULL,NULL,0,NULL,NULL 52442,150128,24443,Favorite Question Popular Question Nice Answer Nice Answer Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 52443,130320,707360,Notable Question,NULL,NULL,0,NULL,NULL 52444,295690,417694,Yearling Yearling,NULL,NULL,0,NULL,NULL 52445,1430219,1557512,Student Tumbleweed Popular Question Scholar Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52446,100103,1130169,NULL,NULL,NULL,0,NULL,NULL 52447,68819,632817,Informed,NULL,NULL,0,NULL,NULL 52448,134551,1424676,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52449,464080,634363,NULL,NULL,NULL,0,NULL,NULL 52450,4475,6209,Necromancer Good Question Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 52451,87067,933297,NULL,NULL,NULL,0,NULL,NULL 52452,110776,514094,Popular Question Necromancer Popular Question Good Answer Yearling Yearling Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 52453,766283,879463,NULL,NULL,NULL,0,NULL,NULL 52454,4967839,879463,NULL,NULL,NULL,0,NULL,NULL 52455,120615,278990,Nice Answer,NULL,NULL,0,NULL,NULL 52456,27033,564280,NULL,NULL,NULL,0,NULL,NULL 52457,214288,973860,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 52458,296446,367265,Yearling Nice Answer Enlightened Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 52459,120486,401546,Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 52460,834803,321323,Necromancer Yearling,NULL,NULL,0,NULL,NULL 52461,268062,701536,NULL,NULL,,0,, 52462,216067,290445,Critic,NULL,NULL,0,NULL,NULL 52463,488991,799562,Self-Learner Good Answer Famous Question Yearling Notable Question Custodian Informed Revival Necromancer Yearling Popular Question Popular Question Guru Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 52464,1083732,1179046,Supporter Teacher Revival,NULL,NULL,0,NULL,NULL 52465,132526,230842,NULL,NULL,NULL,0,NULL,NULL 52466,371055,617665,NULL,NULL,NULL,0,NULL,NULL 52467,39239,1218424,NULL,NULL,NULL,0,NULL,NULL 52468,576764,886655,NULL,NULL,NULL,0,NULL,NULL 52469,176972,1177024,Popular Question Popular Question Popular Question Excavator Civic Duty Yearling,NULL,NULL,0,NULL,NULL 52470,316701,854488,Tumbleweed,NULL,NULL,0,NULL,NULL 52471,107387,1054933,Yearling Self-Learner Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52472,3106056,1054933,Yearling Self-Learner Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52473,75994,279590,NULL,NULL,NULL,0,NULL,NULL 52474,74220,517553,Supporter Yearling Popular Question,NULL,NULL,0,NULL,NULL 52475,117822,172841,Nice Question Yearling,NULL,NULL,0,NULL,NULL 52476,6680,497225,NULL,NULL,NULL,0,NULL,NULL 52477,412311,1322201,NULL,NULL,NULL,0,NULL,NULL 52478,29554,480993,Notable Question Yearling Notable Question Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 52479,386045,474974,NULL,NULL,NULL,0,NULL,NULL 52480,511221,619831,NULL,NULL,NULL,0,NULL,NULL 52481,79643,1440784,Nice Question,NULL,NULL,0,NULL,NULL 52482,126293,843779,NULL,NULL,NULL,0,NULL,NULL 52483,239832,753979,NULL,NULL,NULL,0,NULL,NULL 52484,620519,940284,NULL,NULL,NULL,0,NULL,NULL 52485,292008,826460,NULL,NULL,NULL,0,NULL,NULL 52486,802728,501383,Commentator Notable Question Autobiographer Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52487,965520,949602,NULL,NULL,NULL,0,NULL,NULL 52488,654144,1139840,NULL,NULL,NULL,0,NULL,NULL 52489,47489,270496,NULL,NULL,NULL,0,NULL,NULL 52490,1322640,270496,NULL,NULL,NULL,0,NULL,NULL 52491,773407,1347218,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 52492,523342,1212022,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 52493,2503710,1212022,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 52494,435092,558986,Teacher,NULL,NULL,0,NULL,NULL 52495,190734,29899,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 52496,148065,708947,Tumbleweed,NULL,NULL,0,NULL,NULL 52497,80074,1359559,NULL,NULL,NULL,0,NULL,NULL 52498,34744,551818,Self-Learner Popular Question Yearling Notable Question Civic Duty Nice Question Commentator,NULL,NULL,0,NULL,NULL 52499,747106,220568,Notable Question,NULL,NULL,0,NULL,NULL 52500,158161,401385,NULL,NULL,NULL,0,NULL,NULL 52501,576783,540822,NULL,NULL,NULL,0,NULL,NULL 52502,903193,413203,NULL,NULL,NULL,0,NULL,NULL 52503,96681,1020114,NULL,NULL,NULL,0,NULL,NULL 52504,136707,1302105,Informed Autobiographer,NULL,NULL,0,NULL,NULL 52505,185175,205132,Popular Question,NULL,NULL,0,NULL,NULL 52506,277192,137300,Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 52507,51970,247244,Revival Necromancer Yearling Caucus Critic Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 52508,6241,587971,Teacher Revival Notable Question,NULL,NULL,0,NULL,NULL 52509,427842,1056526,NULL,NULL,NULL,0,NULL,NULL 52510,218893,324748,NULL,NULL,NULL,0,NULL,NULL 52511,158680,1415837,NULL,NULL,NULL,0,NULL,NULL 52512,850796,1556178,NULL,NULL,NULL,0,NULL,NULL 52513,414945,107870,Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 52514,565142,832404,Teacher Editor Supporter Commentator Critic Student Caucus Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 52515,159112,856546,NULL,NULL,NULL,0,NULL,NULL 52516,170998,191991,Great Question Good Answer Popular Question Yearling Popular Question Notable Question Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 52517,402361,1066272,NULL,NULL,NULL,0,NULL,NULL 52518,1018518,473924,NULL,NULL,NULL,0,NULL,NULL 52519,72848,400717,Necromancer Necromancer Famous Question Popular Question Nice Question Yearling Excavator Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 52520,277836,722019,NULL,NULL,NULL,0,NULL,NULL 52521,9252089,540767,NULL,NULL,NULL,0,NULL,NULL 52522,218081,1109174,NULL,NULL,NULL,0,NULL,NULL 52523,107455,426040,NULL,NULL,NULL,0,NULL,NULL 52524,258814,263000,Yearling Necromancer Popular Question Notable Question Famous Question Famous Question Nice Answer Yearling Documentation User Benefactor Popular Question,NULL,NULL,0,NULL,NULL 52525,21692,41587,Yearling Notable Question,NULL,NULL,0,NULL,NULL 52526,499606,721167,NULL,NULL,NULL,0,NULL,NULL 52527,1949433,1322496,NULL,NULL,NULL,0,NULL,NULL 52528,92633,1324344,NULL,NULL,NULL,0,NULL,NULL 52529,1215716,121459,Yearling Necromancer Good Answer Yearling java Good Question Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 52530,56046,1272477,Yearling Self-Learner Nice Answer java Popular Question Revival Nice Answer Enlightened Necromancer Nice Answer Enlightened Yearling Notable Question Nice Answer Yearling Reviewer,NULL,NULL,0,NULL,NULL 52531,808123,322304,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52532,149176,652384,Good Answer,NULL,NULL,0,NULL,NULL 52533,44925,1194609,NULL,NULL,NULL,0,NULL,NULL 52534,9961,58173,Yearling Great Question Notable Question Nice Answer Revival Yearling Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 52535,20392,396567,Popular Question Civic Duty Custodian Citizen Patrol Custodian Popular Question Taxonomist Yearling Excavator Nice Answer Caucus Constituent Nice Answer Curious Fanatic Good Answer Caucus Populist Yearling Constituent Custodian Announcer kubernetes docker Caucus Constituent Yearling Suffrage Mortarboard Vox Populi Strunk & White,NULL,pThe short answer is that you have to write your own logic to do this ppI would expect this kind of feature to emerge from the following projects built on top of docker and designed to support applications in production pulli href https flynn io rel noreferrer flynn lili href http deis io rel noreferrer deis lili href http coreos com rel noreferrer coreos lili href http mesosphere io 2013 09 26 docker on mesos rel noreferrer Mesos li ulh1Update h1pAnother related project recently discovered pulli href https github com toscanini maestro rel noreferrer maestro li ulh1Update h1pThe latest release Openstack contains support for managing Docker containers pulli href https wiki openstack org wiki Docker rel noreferrer Docker Openstack lili href http www sebastien han fr blog 2013 10 31 build paas zone within your openstack cloud rel noreferrer Paas zone within OpenStack li ulh1Update h1pSystem for managing Docker instances pulli href http shipyard project com rel noreferrer Shipyard li ulpAnd presentation on how to use tools like href http www packer io rel noreferrer Packer Docker and href http www serfdom io rel noreferrer Serf to deliver an immutable server infrastructure pattern pulli href http www infoq com news 2013 12 futureops rel noreferrer FutureOps with Immutable Infrastructure lili href http www slideshare net profyclub ru mitchell hashimoto hashicorp rel noreferrer Slides li ulh1Update h1pA neat article on how to wire together docker containers using href http www serfdom io rel noreferrer serf pulli href http www centurylinklabs com decentralizing docker how to use serf with docker rel noreferrer Decentralizing Docker How to use serf with Docker li ulh1Update h1pRun Docker on href http mesos apache org rel noreferrer Mesos using the href https github com mesosphere marathon rel noreferrer Marathon framework pp href https mesosphere io learn run docker on mesosphere cluster rel noreferrer Mesosphere Docker Developer Tutorial ph1Update h1pRun Docker on href http www tsuru io rel noreferrer Tsuru as it supports href https github com tsuru docker cluster rel noreferrer docker cluster and href http docs tsuru io en latest provisioners docker schedulers html rel noreferrer segregated scheduler deploy pulli href http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers rel noreferrer http blog tsuru io 2014 04 04 running tsuru in production scaling and segregating docker containers li ulh1Update h1pDocker based environments orchestration pp href https github com signalfuse maestro ng rel noreferrer maestro ng ph1Update h1p href http decking io rel noreferrer decking io ph1Update h1pGoogle href https github com GoogleCloudPlatform kubernetes rel noreferrer kubernetes ph1Update 10 h1pRedhat have refactored their openshift PAAS to integrate Docker pulli href http www projectatomic io rel noreferrer Project Atomic lili href http openshift github io geard rel noreferrer Geard li ulh1Update 11 h1pA Docker NodeJS lib wrapping the Docker command line and managing it from json file pulli href https github com iorga group docker cmd rel noreferrer docker cmd li ulh1Update 12 h1pAmazon new href https aws amazon com ecs details rel noreferrer container service enables scaling in the cluster ph1Update 13 h1pStrictly speaking href https github com ClusterHQ flocker rel noreferrer Flocker does not scale applications but it is designed to fufil related function of making stateful containers running databases services portable across multiple docker hosts pp href https clusterhq com rel noreferrer https clusterhq com ph1Update 14 h1pA project to create portable templates that describe Docker applications pp href http panamax io rel noreferrer http panamax io ph1Update 15 h1pThe Docker project is now addressing orchestration natively See href https blog docker com 2015 02 orchestrating docker with machine swarm and compose rel noreferrer announcement pulli href https docs docker com machine rel noreferrer Docker machine lili href https docs docker com swarm rel noreferrer Docker swarm lili href https docs docker com compose rel noreferrer Docker compose li ulh1Update 16 h1p href https github com spotify helios rel noreferrer Spotify Helios ppSee also pulli href https blog docker com tag helios rel noreferrer https blog docker com tag helios li ulh1Update 17 h1pThe Openstack project now has new container as service project called Magnum pulli href https wiki openstack org wiki Magnum rel noreferrer https wiki openstack org wiki Magnum li ulpShows lot of promise enables the easy setup of Docker orchestration frameworks like Kubernetes and Docker swarm ph1Update 18 h1pRancher is project that is maturing rapidly pp href http rancher com rel noreferrer http rancher com ppNice UI and strong focus on hyrbrid Docker infrastructures ph1Update 19 h1pThe href http lattice cf rel noreferrer Lattice project is an offshoot of Cloud Foundry for managing container clusters ph1Update 20 h1pDocker recently bought Tutum pp href https www docker com tutum rel noreferrer https www docker com tutum ph1Update 21 h1pPackage manager for applications deployed on href http kubernetes io rel noreferrer Kubernetes pp href http helm sh rel noreferrer http helm sh ph1Update 22 h1pVamp is an open source and self hosted platform for managing micro service oriented architectures that rely on container technology pp href http vamp io rel noreferrer http vamp io ph1Update 23 h1pA Distributed Highly Available Datacenter Aware Scheduler pulli href https www nomadproject io rel noreferrer https www nomadproject io li ulpFrom the guys that gave us Vagrant and other powerful tools ph1Update 24 h1pContainer hosting solution for AWS open source and based on href http kubernetes io rel noreferrer Kubernetes pp href https supergiant io rel noreferrer https supergiant io ph1Update 25 h1pApache Mesos based container hosted located in Germany pp href https sloppy io features features rel noreferrer https sloppy io features features ppAnd Docker Inc also provide container hosting service called Docker cloud pp href https cloud docker com rel noreferrer https cloud docker com ph1Update 26 h1p href https jelastic com blog docker swarm auto clustering and scaling with paas rel noreferrer Jelastic is hosted PAAS service that scales containers automatically Can you add http vamp io please,0,NULL,NULL 52536,169633,932524,NULL,NULL,NULL,0,NULL,NULL 52537,52825,194976,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 52538,1006142,1037200,Popular Question Popular Question Good Answer Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Good Question Guru Popular Question Caucus Yearling Constituent Nice Answer Popular Question Nice Question Popular Question Notable Question Caucus Great Answer Good Answer Popular Question Documentation User Yearling Famous Question Popular Question Nice Question Famous Question Caucus Popular Question Good Question ios Famous Question Yearling,NULL,NULL,0,NULL,NULL 52539,216624,1114174,NULL,NULL,NULL,0,NULL,NULL 52540,1319134,213159,Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 52541,453934,924448,Popular Question,NULL,NULL,0,NULL,NULL 52542,140947,1052892,Supporter Caucus Critic,NULL,NULL,0,NULL,NULL 52543,1440485,1052892,Supporter Caucus Critic,NULL,NULL,0,NULL,NULL 52544,1040146,1118597,NULL,NULL,NULL,0,NULL,NULL 52545,240335,37436,Nice Question Nice Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52546,475199,249431,Popular Question Nice Answer Enlightened Popular Question Announcer Self-Learner Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52547,833335,1066331,NULL,NULL,NULL,0,NULL,NULL 52548,233649,136909,Scholar Critic,NULL,NULL,0,NULL,NULL 52549,125657,353178,Yearling Cleanup Self-Learner Nice Answer Yearling Necromancer Popular Question Popular Question Nice Question Announcer Announcer Notable Question Good Answer Popular Question Civic Duty Great Answer Yearling Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52550,19043,994342,Nice Answer Nice Answer Guru Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 52551,74380,366467,Notable Question,NULL,NULL,0,NULL,NULL 52552,199473,837575,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 52553,392730,765637,NULL,NULL,NULL,0,NULL,NULL 52554,300887,189058,Nice Answer Nice Answer Notable Question Yearling Good Answer Good Answer Popular Question Nice Answer Documentation User Yearling Nice Answer Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 52555,720276,44413,NULL,NULL,NULL,0,NULL,NULL 52556,849718,1152893,NULL,NULL,NULL,0,NULL,NULL 52557,886988,33996,Great Question Custodian Yearling Self-Learner Popular Question Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 52558,235457,206463,Popular Question Popular Question Popular Question Notable Question Explainer Nice Question Popular Question Popular Question Nice Question Famous Question Yearling Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Nice Question Notable Question Notable Question Critic Notable Question Good Question Popular Question Yearling Famous Question Famous Question Popular Question Nice Question Popular Question Popular Question Necromancer Nice Question Nice Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 52559,363988,1442996,NULL,NULL,NULL,0,NULL,NULL 52560,357125,185926,Nice Answer Enlightened Announcer Yearling Editor,NULL,NULL,0,NULL,NULL 52561,101631,72113,Yearling Popular Question Revival Nice Question Yearling Stellar Question Popular Question Yearling Tumbleweed Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 52562,122556,1379239,NULL,NULL,NULL,0,NULL,NULL 52563,488303,521786,NULL,NULL,NULL,0,NULL,NULL 52564,627199,521786,NULL,NULL,NULL,0,NULL,NULL 52565,385711,1447411,NULL,NULL,NULL,0,NULL,NULL 52566,25546,307994,Yearling Nice Answer Good Answer Good Answer Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52567,480729,1034178,NULL,NULL,NULL,0,NULL,NULL 52568,1373399,295117,NULL,NULL,NULL,0,NULL,NULL 52569,158102,65235,Yearling Custodian Custodian Custodian Citizen Patrol Custodian Custodian Census Yearling Great Answer Revival Not a Robot Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52570,176714,726894,Yearling Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52571,211750,157672,Popular Question Proofreader Vox Populi Excavator Custodian unit-testing junit Good Answer Nice Answer Popular Question Yearling Guru Caucus Popular Question Good Answer Notable Question Popular Question Yearling Documentation User Nice Answer Nice Answer Enlightened Good Answer Necromancer c# Popular Question Notable Question Guru Yearling Nice Answer Enlightened,NULL,pYour best option think is mix of href https github com google guice wiki ProvidesMethods rel nofollow codeProvides code methods and href https github com google guice wiki ToConstructorBindings rel nofollow codetoConstructor code binding ppUse the code code method binding when you have an object who has dependencies that can not be worked out by type alone ppre codepublic class ProvidesModule extends AbstractModule IClientWrapper clientWrapper server ip String ip server port int port return new ClientWrapper ip port code prepIn overall code size this is not significantly more than Spring and is type safe ppWhen the constructor only has dependencies that can be worked out by type alone then use toConstructor binds ppre codeprotected void configure try bind TransactionLog class toConstructor DatabaseTransactionLog class getConstructor DatabaseConnection class catch NoSuchMethodException addError code prepOne last option ppOur Legacy thingie ppre codeinterface LegacyThing class LegacyThingImp implements LegacyThing public LegacyThingImp String test System out println test code prepIs my magic provider on href https github com mlk magical provider guice rel nofollow GitHub This takes an implementation class and the list of dependencies as codeKey codes and then finds the right constructor by Magic or reflection ppre codepublic class TestMagic public static void main final String arg Guice createInjector new AbstractModule protected void configure bind String class annotatedWith Names named testString toInstance Guice bind LegacyThing class toProvider new MagicLegacyProvider lt gt LegacyThingImp class Key get String class Names named testString getInstance LegacyThing class code pre ve updated with magical solution pYour best option think is mix of href https github com google guice wiki ProvidesMethods rel nofollow codeProvides code methods and href https github com google guice wiki ToConstructorBindings rel nofollow codetoConstructor code binding ppUse the code code method binding when you have an object who has dependencies that can not be worked out by type alone ppre codepublic class ProvidesModule extends AbstractModule IClientWrapper clientWrapper server ip String ip server port int port return new ClientWrapper ip port code prepIn overall code size this is not significantly more than Spring and is type safe ppWhen the constructor only has dependencies that can be worked out by type alone then use toConstructor binds ppre codeprotected void configure try bind TransactionLog class toConstructor DatabaseTransactionLog class getConstructor DatabaseConnection class catch NoSuchMethodException addError code prepOne last option ppOur Legacy thingie ppre codeinterface LegacyThing class LegacyThingImp implements LegacyThing public LegacyThingImp String test System out println test code prepIs my magic provider on href https github com mlk magical provider guice rel nofollow GitHub This takes an implementation class and the list of dependencies as codeKey codes and then finds the right constructor by Magic or reflection ppre codepublic class TestMagic public static void main final String arg Guice createInjector new AbstractModule protected void configure bind String class annotatedWith Names named testString toInstance Guice bind LegacyThing class toProvider new MagicLegacyProvider lt gt LegacyThingImp class Key get String class Names named testString getInstance LegacyThing class code pre Has dependencies gives better errors pYour best option think is mix of href https github com google guice wiki ProvidesMethods rel nofollow codeProvides code methods and href https github com google guice wiki ToConstructorBindings rel nofollow codetoConstructor code binding ppUse the code code method binding when you have an object who has dependencies that can not be worked out by type alone ppre codepublic class ProvidesModule extends AbstractModule IClientWrapper clientWrapper server ip String ip server port int port return new ClientWrapper ip port code prepIn overall code size this is not significantly more than Spring and is type safe ppWhen the constructor only has dependencies that can be worked out by type alone then use toConstructor binds ppre codeprotected void configure try bind TransactionLog class toConstructor DatabaseTransactionLog class getConstructor DatabaseConnection class catch NoSuchMethodException addError code prepOne last option ppOur Legacy thingie ppre codeinterface LegacyThing class LegacyThingImp implements LegacyThing public LegacyThingImp String test System out println test code prepIs my magic provider on href https github com mlk magical provider guice rel nofollow GitHub This takes an implementation class and the list of dependencies as codeKey codes and then finds the right constructor by Magic or reflection ppre codepublic class TestMagic public static void main final String arg Guice createInjector new AbstractModule protected void configure bind String class annotatedWith Names named testString toInstance Guice bind LegacyThing class toProvider new MagicLegacyProvider lt gt LegacyThingImp class Key get String class Names named testString getInstance LegacyThing class code pre Personally don think the magic is much better than provider methods Each provider method is only lines and is type safe,1,NULL,Pass Parameters to constructor in Guice with no modifications to the Interface Impl class java spring dependency injection guice pI would like to pass constructor argument when binding an interface with Impl in Guice ppThere are couple of solutions but don have code access to these interfaces Impl They re developed by other team and ve included them in My project polli strong strong Both needs change in the source code Constructor of the Impl to include these annotations don have access to this code liliImplement strongProvider strong which returns instance of that Impl by loading the required arguments emThis Worked em But the problem is ve 200 such existing DI and ll have to write 200 Providers li olpCurrently we re using Spring DI and are in the process of moving to Guice So need to define something like ppre code lt bean name clientWrapper class com wrapper client ClientWrapper gt lt constructor arg index value server ip gt lt constructor arg index value server port gt lt bean gt code prepin Guice But Pass those Constructor Args ppre codebind IClientWrapper class to ClientWrapper class code prepHow to achieve this without using Providers pYour best option think is mix of href https github com google guice wiki ProvidesMethods rel nofollow codeProvides code methods and href https github com google guice wiki ToConstructorBindings rel nofollow codetoConstructor code binding ppUse the code code method binding when you have an object who has dependencies that can not be worked out by type alone ppre codepublic class ProvidesModule extends AbstractModule IClientWrapper clientWrapper server ip String ip server port int port return new ClientWrapper ip port code prepIn overall code size this is not significantly more than Spring and is type safe ppWhen the constructor only has dependencies that can be worked out by type alone then use toConstructor binds ppre codeprotected void configure try bind TransactionLog class toConstructor DatabaseTransactionLog class getConstructor DatabaseConnection class catch NoSuchMethodException addError code prepOne last option ppOur Legacy thingie ppre codeinterface LegacyThing class LegacyThingImp implements LegacyThing public LegacyThingImp String test System out println test code prepIs my magic provider on href https github com mlk magical provider guice rel nofollow GitHub This takes an implementation class and the list of dependencies as codeKey codes and then finds the right constructor by Magic or reflection ppre codepublic class TestMagic public static void main final String arg Guice createInjector new AbstractModule protected void configure bind String class annotatedWith Names named testString toInstance Guice bind LegacyThing class toProvider new MagicLegacyProvider lt gt LegacyThingImp class Key get String class Names named testString getInstance LegacyThing class code pre 52572,8814127,835541,Nice Answer,NULL,NULL,0,NULL,NULL 52573,205654,331598,Favorite Question Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 52574,150513,710258,NULL,NULL,NULL,0,NULL,NULL 52575,1651836,396089,Notable Question Good Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52576,1701895,396089,Notable Question Good Question Notable Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52577,284055,680868,NULL,NULL,NULL,0,NULL,NULL 52578,26790,358,Excavator Great Question Good Answer Yearling Good Answer Favorite Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52579,9519031,358,Excavator Great Question Good Answer Yearling Good Answer Favorite Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52580,1477,123695,Nice Question Famous Question Good Answer Yearling Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru javascript Caucus Constituent Great Answer Nice Answer Guru Notable Question Yearling Nice Question Great Answer Documentation User Taxonomist Good Question mysql Archaeologist Census Nice Answer Yearling html,NULL,Is there way to skip password typing when using https on GitHub git authentication github pI recently switched to synchronising my repositories to https on GitHub due to firewall issues and it asks for password every time It used to be that had an href http en wikipedia org wiki Secure Shell rel noreferrer SSH certificate and it was enough Is there way to bypass the password in my case using http https By SSH certificate assume you mean SSH private key pThis has recently been discussed in the href https groups google com msg nodejs NmL7jdeuw0M yTqI05DRQrIJ rel noreferrer node js mailing list ppAccording to Isaac Schlueter who created npm pblockquote the key will never be used by npm for any purpose and is reserved for comments If you want to use multiple line comment you can use either an array or multiple keys blockquotepWhen using your usual tools npm yarn etc multiple keys will be removed This survives ppre code first line second line code prepThis will not survive ppre code this is the first line of comment this is the second line of the comment code pre eed Has his opinion changed since this https plus google com DouglasCrockfordEsq posts RK8qyGVaGSr RESTful resource not found 404 or 204 Jersey returns 204 on null being returned from handler rest jersey pIf you are looking for code Resource Id code and that resource does not exist had always though that 404 was the appropriate response However when returning codenull code from Jersey handler get back 204 No Content can likely work with either one but am curious to others thoughts on this pp strongTo answer my own next question strong To get Jersey to return 404 you must throw an exception ppre code if null throw new WebApplicationException 404 code pre That really depends on your application,0,NULL,NULL 52581,922775,423397,NULL,NULL,NULL,0,NULL,NULL 52582,699115,242408,NULL,NULL,NULL,0,NULL,NULL 52583,320592,126531,Yearling Nice Answer Famous Question Good Question Yearling Good Question Nice Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52584,1563055,126531,Yearling Nice Answer Famous Question Good Question Yearling Good Question Nice Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52585,325100,1043388,NULL,NULL,NULL,0,NULL,NULL 52586,8259284,1221534,NULL,NULL,NULL,0,NULL,NULL 52587,39174,699,Good Question Famous Question Popular Question Good Question Good Question Popular Question Yearling Famous Question Good Question Nice Answer Enlightened Custodian Good Question Custodian Custodian Guru Necromancer Popular Question Yearling Revival Notable Question Popular Question Necromancer Nice Answer Yearling Popular Question,NULL,Forcing bash to expand variables in string loaded from file linux bash shell unix pI am trying to work out how to make bash force expand variables in string which was loaded from file ppI have file called something txt with the contents ppre codehello FOO world code prepI then run ppre codeexport FOO 42echo cat something txt code prepthis returns ppre code hello FOO world code prepIt didn expand FOO even though the variable was set can eval or source the file as it will try and execute it it isn executable as it is just want the string with the variables interpolated ppAny ideas gotcha am bit late replying but good tip And of course in the intervening years we have had things like shell shock so your comment has stood the test of time tips hat,0,NULL,NULL 52588,69705,776254,NULL,NULL,NULL,0,NULL,NULL 52589,36468,1559820,NULL,NULL,NULL,0,NULL,NULL 52590,460880,638286,NULL,NULL,NULL,0,NULL,NULL 52591,2043550,1443262,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52592,119503,1443262,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52593,186140,226750,Popular Question,NULL,NULL,0,NULL,NULL 52594,887950,184155,Notable Question Yearling c# Popular Question Famous Question Good Question Yearling Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 52595,14181,140424,Popular Question,NULL,NULL,0,NULL,NULL 52596,825585,388060,Tumbleweed Famous Question Popular Question,NULL,NULL,0,NULL,NULL 52597,61526,1232891,Nice Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Famous Question Nice Question Popular Question Notable Question Good Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Great Question Yearling Popular Question Notable Question Good Question Notable Question Nice Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 52598,47831,470444,NULL,NULL,NULL,0,NULL,NULL 52599,29727,1382790,Peer Pressure,NULL,NULL,0,NULL,NULL 52600,471108,1136478,Editor,NULL,NULL,0,NULL,NULL 52601,714658,986396,NULL,NULL,NULL,0,NULL,NULL 52602,701520,629430,NULL,NULL,NULL,0,NULL,NULL 52603,27364,658021,NULL,NULL,NULL,0,NULL,NULL 52604,554233,1205753,Popular Question Popular Question Notable Question Popular Question Tumbleweed Popular Question Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 52605,199517,1264269,Revival,NULL,NULL,0,NULL,NULL 52606,91483,1354987,NULL,NULL,NULL,0,NULL,NULL 52607,3423,2836,Revival Famous Question Popular Question Notable Question Notable Question Yearling Popular Question Famous Question Notable Question Famous Question Good Question Good Answer Popular Question Popular Question Caucus Yearling Census Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 52608,128503,486547,Necromancer Good Answer Necromancer Announcer Great Answer Announcer Announcer Necromancer Necromancer Populist Nice Answer Revival Yearling Necromancer Nice Answer Announcer Announcer Announcer Announcer Necromancer Yearling Nice Answer Announcer Revival Revival Necromancer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 52609,172276,183622,Yearling Great Answer Yearling Caucus Yearling Necromancer Nice Answer Populist Good Answer Yearling Necromancer Caucus Custodian Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 52610,14930,109711,Yearling Nice Answer Enlightened Yearling Famous Question Good Answer Populist Yearling Good Answer,NULL,NULL,0,NULL,NULL 52611,431190,229350,Revival,NULL,NULL,0,NULL,NULL 52612,944884,1083215,NULL,NULL,NULL,0,NULL,NULL 52613,28005,194679,NULL,NULL,NULL,0,NULL,NULL 52614,308918,465623,Nice Question Yearling Popular Question Necromancer Good Answer Nice Question Yearling Famous Question Necromancer Necromancer Popular Question Custodian Popular Question Yearling Popular Question Guru Famous Question Notable Question Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 52615,255718,1005573,Yearling,NULL,NULL,0,NULL,NULL 52616,436723,1432936,NULL,NULL,NULL,0,NULL,NULL 52617,233340,586024,NULL,NULL,NULL,0,NULL,NULL 52618,551275,1384352,Editor Commentator Yearling Critic Yearling Informed Custodian Custodian Autobiographer Tenacious Yearling Custodian Nice Answer Yearling Good Answer Yearling python Great Answer Yearling,NULL,NULL,0,NULL,NULL 52619,1136659,877723,NULL,NULL,NULL,0,NULL,NULL 52620,212113,919533,Revival,NULL,NULL,0,NULL,NULL 52621,141118,281614,Pundit Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Popular Question Nice Answer Enlightened Good Answer Good Answer Yearling Famous Question Notable Question Great Answer Nice Answer Popular Question ruby-on-rails Nice Answer Nice Answer Notable Question Nice Answer Enlightened Yearling Famous Question Good Answer Famous Question Custodian,NULL,NULL,0,NULL,NULL 52622,386458,1341248,Revival Necromancer Documentation User,NULL,NULL,0,NULL,NULL 52623,278658,544454,Nice Question Yearling Popular Question Good Question Notable Question Necromancer Yearling Favorite Question Custodian Yearling Nice Answer Census Famous Question Yearling Curious Great Question Popular Question,NULL,NULL,0,NULL,NULL 52624,7128076,544454,Nice Question Yearling Popular Question Good Question Notable Question Necromancer Yearling Favorite Question Custodian Yearling Nice Answer Census Famous Question Yearling Curious Great Question Popular Question,NULL,NULL,0,NULL,NULL 52625,421975,785786,NULL,NULL,NULL,0,NULL,NULL 52626,547858,619319,NULL,NULL,NULL,0,NULL,NULL 52627,149336,967070,Popular Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 52628,446832,105389,Great Answer Yearling Favorite Question Popular Question Notable Question Yearling Popular Question Taxonomist Popular Question Nice Answer Enlightened Yearling Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52629,887278,1354721,NULL,NULL,NULL,0,NULL,NULL 52630,212633,794950,Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 52631,385995,69750,NULL,NULL,NULL,0,NULL,NULL 52632,601739,1551823,NULL,NULL,NULL,0,NULL,NULL 52633,398888,1218652,Self-Learner,NULL,NULL,0,NULL,NULL 52634,114820,1021844,NULL,NULL,NULL,0,NULL,NULL 52635,246812,758061,Notable Question Popular Question Yearling Self-Learner Yearling Caucus Constituent Good Question Yearling Popular Question Census Popular Question Great Answer Popular Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 52636,1000638,889562,Famous Question Self-Learner Yearling Popular Question Popular Question Notable Question Nice Answer Yearling Nice Question Notable Question Famous Question Caucus Popular Question Yearling Good Answer Good Question Popular Question,NULL,NULL,0,NULL,NULL 52637,1466922,77716,Popular Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 52638,120370,464381,NULL,NULL,NULL,0,NULL,NULL 52639,136796,704936,Organizer Notable Question Popular Question Explainer Revival Popular Question Popular Question Notable Question Good Question Yearling Popular Question Notable Question Nice Question Notable Question Popular Question Civic Duty Necromancer,NULL,pIdeally you don use JSON documents for structured regular data that you want to manipulate inside relational database Use strongnormalized relational design strong instead ppJSON is primarily intended to store whole documents that do not need to be manipulated inside the RDBMS Related pulli href https dba stackexchange com questions 115825 jsonb with indexing vs hstore 115849 115849 JSONB with indexing vs hstore li ulpUpdating row in Postgres always writes new version of the emwhole em row That the basic principle of href https www postgresql org docs current static mvcc intro html rel nofollow noreferrer Postgres MVCC model From performance perspective it hardly matters whether you change single piece of data inside JSON object or all of it new version of the row has to be written ppThus the href https www postgresql org docs current static datatype json html JSON DOC DESIGN rel nofollow noreferrer advice in the manual pblockquote pJSON data is subject to the same concurrency control considerations as any other data type when stored in table Although storing large documents is practicable keep in mind that any update acquires row level lock on the whole row Consider limiting JSON documents to manageable size in order to decrease lock contention among updating transactions Ideally JSON documents should each represent an atomic datum that business rules dictate cannot reasonably be further subdivided into smaller datums that could be modified independently blockquotepThe gist of it to modify emanything em inside JSON object you have to assign modified object to the column Postgres supplies limited means to build and manipulate codejson code data in addition to its storage capabilities The arsenal of tools has grown substantially with every new release since version But the principal remains You emalways em have to assign complete modified object to the column and Postgres always writes new row version for any update ppSome techniques how to work with the tools of Postgres or later pulli href https stackoverflow com 18209625 939860 How do modify fields inside the new PostgreSQL JSON datatype li ulpThis answer has attracted more downvotes than all my other answers on SO emtogether em People don seem to like the idea normalized design is superior for non dynamic data This excellent blog post by Craig Ringer explains in more detail pulli href https blog 2ndquadrant com postgresql anti patterns unnecessary jsonhstore dynamic columns rel nofollow noreferrer PostgreSQL anti patterns Unnecessary json hstore dynamic columns li ul Instructions how to work with the tools of Postgres really aught to be first in your answer as it answers the question asked sometimes it makes sense to update json for maintenance schema changes etc and the reasons not to do update json don really apply,0,NULL,NULL 52640,91305,315242,Yearling Good Answer Popular Question Yearling Popular Question Revival Yearling Popular Question Yearling Caucus Yearling Great Answer Good Question,NULL,NULL,0,NULL,NULL 52641,159754,1254465,Popular Question Nice Question Commentator Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 52642,266158,752168,NULL,NULL,NULL,0,NULL,NULL 52643,314060,1684,NULL,NULL,NULL,0,NULL,NULL 52644,58036,667165,NULL,NULL,NULL,0,NULL,NULL 52645,188925,428117,NULL,NULL,NULL,0,NULL,NULL 52646,29783,561312,Necromancer,NULL,NULL,0,NULL,NULL 52647,93444,604055,NULL,NULL,NULL,0,NULL,NULL 52648,423317,381493,Nice Answer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 52649,9050200,838773,Tumbleweed Excavator Curious Commentator Yearling Caucus Constituent Revival Caucus,NULL,NULL,0,NULL,NULL 52650,143648,62698,NULL,NULL,NULL,0,NULL,NULL 52651,22791,196159,Curious Notable Question Great Answer,NULL,NULL,0,NULL,NULL 52652,99054,489597,Nice Answer Nice Answer Enlightened Yearling Popular Question Yearling Nice Question Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 52653,145794,777694,NULL,NULL,NULL,0,NULL,NULL 52654,501386,503845,NULL,NULL,NULL,0,NULL,NULL 52655,99773,1439503,NULL,NULL,NULL,0,NULL,NULL 52656,53957,439593,NULL,NULL,NULL,0,NULL,NULL 52657,268046,1098827,Custodian Citizen Patrol Nice Question Caucus Constituent Yearling Caucus Constituent Famous Question Necromancer Yearling Census Caucus Constituent,NULL,NULL,0,NULL,NULL 52658,195846,274609,Nice Answer,NULL,NULL,0,NULL,NULL 52659,12726,735390,Notable Question Yearling,NULL,NULL,0,NULL,NULL 52660,293765,673511,NULL,NULL,NULL,0,NULL,NULL 52661,150495,1406332,NULL,NULL,NULL,0,NULL,NULL 52662,166462,24224,Nice Question Favorite Question Popular Question Proofreader Yearling Notable Question Reviewer Nice Answer Yearling Caucus Benefactor Strunk & White Yearling Civic Duty,NULL,NULL,0,NULL,NULL 52663,824310,1150797,NULL,NULL,NULL,0,NULL,NULL 52664,65022,1385039,Nice Answer Enlightened Guru Necromancer Yearling c Revival Good Answer Nice Question Great Answer Popular Question Popular Question Nice Answer Nice Answer Yearling Guru Nice Answer Stellar Question Enlightened Nice Answer Nice Question Notable Question Good Answer Yearling Disciplined,NULL,NULL,0,NULL,NULL 52665,8179214,1385039,Nice Answer Enlightened Guru Necromancer Yearling c Revival Good Answer Nice Question Great Answer Popular Question Popular Question Nice Answer Nice Answer Yearling Guru Nice Answer Stellar Question Enlightened Nice Answer Nice Question Notable Question Good Answer Yearling Disciplined,NULL,NULL,0,NULL,NULL 52666,3178,35656,Famous Question Yearling Nice Question Good Answer Yearling Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 52667,619248,65699,Supporter Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 52668,838717,1214180,Revival Popular Question Necromancer,NULL,NULL,0,NULL,NULL 52669,170941,340803,Nice Question,NULL,NULL,0,NULL,NULL 52670,160687,36974,Yearling,NULL,NULL,0,NULL,NULL 52671,265276,442718,Necromancer Yearling Yearling Necromancer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 52672,653450,1091605,NULL,NULL,NULL,0,NULL,NULL 52673,83470,787607,Tumbleweed Supporter Curious Editor Teacher Self-Learner Commentator Popular Question Revival,NULL,NULL,0,NULL,NULL 52674,260979,750544,Notable Question Nice Answer Yearling Nice Question Popular Question Yearling Notable Question Nice Question Famous Question Curious Informed Nice Question Nice Answer Enlightened Yearling Good Question Famous Question Good Answer Yearling Popular Question Nice Answer Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 52675,8536223,516581,NULL,NULL,NULL,0,NULL,NULL 52676,248888,516581,NULL,NULL,NULL,0,NULL,NULL 52677,539202,1004094,Nice Question Informed Autobiographer Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 52678,1148301,315982,NULL,NULL,NULL,0,NULL,NULL 52679,167230,631970,NULL,NULL,NULL,0,NULL,NULL 52680,268467,356236,Popular Question,NULL,NULL,0,NULL,NULL 52681,90970,1417957,NULL,NULL,NULL,0,NULL,NULL 52682,253765,151251,NULL,NULL,NULL,0,NULL,NULL 52683,15982,658137,Notable Question Census,NULL,NULL,0,NULL,NULL 52684,379852,830260,NULL,NULL,NULL,0,NULL,NULL 52685,26392,275733,NULL,NULL,NULL,0,NULL,NULL 52686,227824,151241,Nice Answer Nice Answer Yearling Good Answer Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 52687,637547,807346,Great Answer Good Answer Yearling Nice Answer Enlightened Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 52688,396077,1449536,Nice Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 52689,88280,1797,Good Question Yearling Nice Answer Favorite Question Stellar Question Yearling Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 52690,391085,563252,NULL,NULL,NULL,0,NULL,NULL 52691,1478138,582141,Famous Question Notable Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52692,945750,1256524,Notable Question,NULL,NULL,0,NULL,NULL 52693,16781,1256524,Notable Question,NULL,NULL,0,NULL,NULL 52694,385501,490386,Nice Question,NULL,NULL,0,NULL,NULL 52695,15321,18706,Necromancer Revival Great Answer Notable Question Famous Question Popular Question Popular Question Favorite Question Popular Question Good Answer ruby Popular Question Nice Question Popular Question Good Answer Good Answer Necromancer Necromancer Notable Question Nice Answer Revival Notable Question Favorite Question Nice Question Necromancer Nice Answer Yearling Popular Question Announcer Announcer Popular Question Nice Answer Popular Question Nice Question Famous Question Notable Question Good Answer Nice Answer ruby-on-rails Guru Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Necromancer Electorate Nice Answer Nice Question Notable Question Announcer Notable Question Revival Popular Question Necromancer Notable Question Popular Question Announcer Nice Answer rest Popular Question Nice Answer Notable Question Yearling Notable Question Great Question Nice Answer Necromancer Popular Question Notable Question Nice Question Revival Famous Question Necromancer Good Answer Popular Question Nice Question Notable Question Caucus Announcer Good Answer Announcer Popular Question Famous Question Necromancer Necromancer Necromancer Nice Answer Famous Question Popular Question Great Question Popular Question Good Answer Nice Answer Notable Question Nice Question Nice Answer Announcer Nice Answer Yearling Popular Question Good Answer Nice Answer Enlightened Popular Question Good Question,NULL,emtmux em limits the dimensions of window to the smallest of each dimension across all the sessions to which the window is attached If it did not do this there would be no sensible way to display the whole window area for all the attached clients ppThe easiest thing to do is to detach any other clients from the sessions when you attach ppre codetmux attach code prepAlternately you can move any other clients to different session before attaching to the session ppre codetakeover create temporary session that displays the how to go back message tmp takeover temp session if tmux has session tmp then tmux new session tmp tmux set option tmp set remain on exit on tmux new window kt tmp echo Use Prefix to return to session fi switch any clients attached to the target session to the temp session session for client in tmux list clients session cut do tmux switch client client tmp done attach to the target session tmux attach session takeover original session or the session number if you do not name sessions code prepThe screen will shrink again if smaller client switches to the session ppThere is also variation where you only take over the window link the window into new session set codeaggressive resize code and switch any other sessions that have that window active to some other window but it is harder to script in the general case and different to “exit” since you would want to unlink the window or kill the session instead of just detaching from the session tmux detach worked for me tmux attach didn How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this Issue about this https github com rails rails issues 26415 It was closed recently in Sep 2016 using to conversion internally,0,NULL,NULL 52696,161583,673896,NULL,NULL,NULL,0,NULL,NULL 52697,68319,1240232,NULL,NULL,NULL,0,NULL,NULL 52698,77434,108371,NULL,NULL,NULL,0,NULL,NULL 52699,163130,947075,NULL,NULL,NULL,0,NULL,NULL 52700,415158,68457,Nice Answer Yearling Notable Question Notable Question Nice Answer Necromancer Popular Question Yearling Notable Question Popular Question Good Question Necromancer Notable Question Census Yearling Nice Answer Caucus Popular Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 52701,496949,1246988,Nice Answer Yearling Enthusiast Documentation User Announcer,NULL,NULL,0,NULL,NULL 52702,420251,65995,Famous Question Nice Answer Editor Popular Question Yearling,NULL,NULL,0,NULL,NULL 52703,585836,499362,Nice Answer Enlightened Good Answer Famous Question Good Question Nice Answer Great Answer Cleanup Yearling Caucus Popular Question Nice Answer Enlightened Nice Answer Enlightened Favorite Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 52704,60740,184279,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52705,9568,813349,NULL,NULL,NULL,0,NULL,NULL 52706,407245,800393,NULL,NULL,NULL,0,NULL,NULL 52707,593557,461119,Nice Answer Civic Duty Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 52708,223976,1349152,Nice Answer Enlightened Guru Good Answer Announcer Nice Answer Yearling Guru Nice Answer Nice Answer Nice Answer Enlightened Caucus Constituent Popular Question Explainer Guru Nice Answer Enlightened Census Guru Yearling Nice Answer Enlightened Documentation User Nice Question Nice Answer Census Yearling Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 52709,578429,185708,Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52710,52176,117068,Guru Nice Answer Revival Great Answer Yearling Notable Question Popular Question Revival Nice Answer Enlightened google-chrome-extension Necromancer Announcer Nice Answer Guru Great Question Revival Nice Answer Yearling Good Answer Good Answer Necromancer Documentation User Popular Question Good Answer Guru Necromancer Necromancer Necromancer Yearling Notable Question Necromancer,NULL,pIf you want to remove specific punctuation from string it will probably be best to explicitly remove exactly what you want like ppre codereplace amp code prepDoing the above still doesn return the string as you have specified it If you want to remove any extra spaces that were left over from removing crazy punctuation then you are going to want to do something like ppre codereplace code prep strongMy full example strong ppre codevar This is an amp example of string with punctuation var punctuationless replace amp var finalString punctuationless replace code prep strongResults of running code in firebug console strong pp img src https stack imgur com 2rmdW png alt alt text ée agree that it misleading Updated the answer Thanks pIf you want to remove specific punctuation from string it will probably be best to explicitly remove exactly what you want like ppre codereplace amp code prepDoing the above still doesn return the string as you have specified it If you want to remove any extra spaces that were left over from removing crazy punctuation then you are going to want to do something like ppre codereplace code prep strongMy full example strong ppre codevar This is an amp example of string with punctuation var punctuationless replace amp var finalString punctuationless replace code prep strongResults of running code in firebug console strong pp img src https stack imgur com 2rmdW png alt alt text ée and that what get for not carefully rereading all my code,0,NULL,NULL 52711,20652,57750,Yearling Necromancer Yearling Famous Question Announcer,NULL,NULL,0,NULL,NULL 52712,338053,285643,Notable Question Necromancer Yearling Good Answer,NULL,pI couldn wait for an answer to the bounty so found solution myself As others said Security framework doesn give you way to get this information so you need to ask OpenSSL to parse the certificate data for you ppre code import lt openssl x509 gt NSData certificateData NSData SecCertificateCopyData certificate const unsigned char certificateDataBytes const unsigned char certificateData bytes X509 certificateX509 d2i X509 NULL amp certificateDataBytes certificateData length NSString issuer CertificateGetIssuerName certificateX509 NSDate expiryDate CertificateGetExpiryDate certificateX509 code prepWhere codeCertificateGetIssuerName code and codeCertificateGetExpiryDate code are as follows ppre codestatic NSString CertificateGetIssuerName X509 certificateX509 NSString issuer nil if certificateX509 NULL X509 NAME issuerX509Name X509 get issuer name certificateX509 if issuerX509Name NULL int nid OBJ txt2nid organization int index X509 NAME get index by NID issuerX509Name nid X509 NAME ENTRY issuerNameEntry X509 NAME get entry issuerX509Name index if issuerNameEntry ASN1 STRING issuerNameASN1 X509 NAME ENTRY get data issuerNameEntry if issuerNameASN1 NULL unsigned char issuerName ASN1 STRING data issuerNameASN1 issuer NSString stringWithUTF8String char issuerName return issuer static NSDate CertificateGetExpiryDate X509 certificateX509 NSDate expiryDate nil if certificateX509 NULL ASN1 TIME certificateExpiryASN1 X509 get notAfter certificateX509 if certificateExpiryASN1 NULL ASN1 GENERALIZEDTIME certificateExpiryASN1Generalized ASN1 TIME to generalizedtime certificateExpiryASN1 NULL if certificateExpiryASN1Generalized NULL unsigned char certificateExpiryData ASN1 STRING data certificateExpiryASN1Generalized ASN1 generalized times look like this 20131114230046Z format YYYYMMDDHHMMSS indices 01234567890123 1111 There are other formats specifying partial seconds or time zones but this is good enough for our purposes since we only use the date and not the time Source http www obj sys com asn1tutorial node14 html NSString expiryTimeStr NSString stringWithUTF8String char certificateExpiryData NSDateComponents expiryDateComponents NSDateComponents alloc init expiryDateComponents year expiryTimeStr substringWithRange NSMakeRange intValue expiryDateComponents month expiryTimeStr substringWithRange NSMakeRange intValue expiryDateComponents day expiryTimeStr substringWithRange NSMakeRange intValue expiryDateComponents hour expiryTimeStr substringWithRange NSMakeRange intValue expiryDateComponents minute expiryTimeStr substringWithRange NSMakeRange 10 intValue expiryDateComponents second expiryTimeStr substringWithRange NSMakeRange 12 intValue NSCalendar calendar NSCalendar currentCalendar expiryDate calendar dateFromComponents expiryDateComponents expiryDateComponents release return expiryDate code prepI only actually needed the issuer organization name and the expiry date for my purposes so that all the code ve included below But based on this you should be able to figure out the rest by reading the codex509 code header file pp strongEdit strong ppHere how to get the certificate haven put any error handling etc You ll want to check codetrustResult code codeerr code etc for example ppre codeNSURLAuthenticationChallenge challenge SecTrustResultType trustResult SecTrustRef trust challenge protectionSpace serverTrust OSStatus err SecTrustEvaluate trust amp trustResult SecCertificateRef certificate SecGetLeafCertificate trust See Apple docs for implementation of SecGetLeafCertificate code pre Doing this in Swift is simple matter of rewriting it in Swift syntax And probably converting some of the nesting into guard let statements ll leave that as an exercise to the reader,0,NULL,NULL 52713,55598,618059,Yearling spring-batch Good Answer Famous Question Taxonomist Caucus Constituent Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru spring Custodian Revival Popular Question Good Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Census Yearling Guru Caucus Constituent Nice Answer Enlightened Necromancer Nice Answer Nice Answer Enlightened spring-boot Nice Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 52714,264065,161109,Guru Yearling,NULL,NULL,0,NULL,NULL 52715,88597,452762,Critic Revival Yearling Necromancer Revival Revival Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 52716,16479,56499,Yearling Notable Question Nice Answer Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Great Answer Popular Question Good Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52717,177303,273152,NULL,NULL,NULL,0,NULL,NULL 52718,155694,22292,Popular Question,NULL,NULL,0,NULL,NULL 52719,229402,1454615,Yearling,NULL,NULL,0,NULL,NULL 52720,642836,738250,NULL,NULL,NULL,0,NULL,NULL 52721,243110,165017,Yearling Nice Answer Enlightened Custodian Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52722,17711,289564,Caucus Caucus Census Autobiographer,NULL,NULL,0,NULL,NULL 52723,4969992,661802,NULL,NULL,NULL,0,NULL,NULL 52724,1171302,729362,NULL,NULL,NULL,0,NULL,NULL 52725,82003,538380,NULL,NULL,NULL,0,NULL,NULL 52726,226417,136883,NULL,NULL,NULL,0,NULL,NULL 52727,213713,685080,Supporter Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 52728,1249,133414,Favorite Question Popular Question Good Question Yearling Nice Answer Famous Question Great Question Notable Question Yearling Nice Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 52729,14837,449342,Notable Question Revival Yearling Yearling Necromancer Yearling,NULL,Facebook OAuth Unsupported in Chrome on iOS javascript iphone ios facebook pThe Facebook OAuth popup is throwing an error in Chrome on iOS only Both developers facebook com and google have turned up nothing about this Ideas pp img src https stack imgur com JH8Un png alt screenshot of facebook oath popup on mobile chrome on ios Make that almost years Bah,0,NULL,NULL 52730,98007,174463,Necromancer Nice Answer Necromancer Yearling Necromancer Yearling Necromancer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 52731,64594,645580,Editor Notable Question Self-Learner Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52732,245590,1055984,NULL,NULL,NULL,0,NULL,NULL 52733,14898,713387,Critic Popular Question Yearling Curious,NULL,NULL,0,NULL,NULL 52734,82034,653033,NULL,NULL,NULL,0,NULL,NULL 52735,119445,837191,NULL,NULL,NULL,0,NULL,NULL 52736,8332,477607,NULL,NULL,NULL,0,NULL,NULL 52737,100260,829420,NULL,NULL,NULL,0,NULL,NULL 52738,575618,1219547,NULL,NULL,NULL,0,NULL,NULL 52739,123056,356146,NULL,NULL,NULL,0,NULL,NULL 52740,513979,1103596,Yearling Caucus Constituent Yearling Custodian,NULL,NULL,0,NULL,NULL 52741,415723,1196499,Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 52742,5196,334139,NULL,NULL,NULL,0,NULL,NULL 52743,1788171,334139,NULL,NULL,NULL,0,NULL,NULL 52744,688204,1011365,NULL,NULL,NULL,0,NULL,NULL 52745,8976,568393,Yearling Famous Question Revival Popular Question Popular Question Revival Popular Question Famous Question Nice Question Popular Question Good Question Yearling Popular Question Notable Question Popular Question Nice Question Nice Question Nice Question Favorite Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Nice Question Yearling Famous Question Necromancer Popular Question Great Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52746,421665,1198582,Nice Question Electorate Notable Question Enthusiast Notable Question Yearling Popular Question Nice Question Custodian Popular Question Yearling Caucus Documentation User Informed Yearling Custodian Fanatic,NULL,NULL,1,stack yaml not pulling in dependency from github haskell haskell stack pHere the stack yaml stanza pppackages ppre code location git https github com TwitterFriends lsh git commit 57d57f4209e56f526c0eca023907015935c26071 extra dep true code prepI add the package to cabal file ppget error when try to build ppre codeWhile constructing the BuildPlan the following exceptions were encountered While attempting to add dependency Could not find package lsh in known packages code prepWhat am doing wrong ppCurrent project found here pp href https github com TwitterFriends twitter friend server rel nofollow noreferrer https github com TwitterFriends twitter friend server What going on in this pattern match haskell pattern matching pin Data List saw this unfamiliar pattern match ppre code NOINLINE unsafeTake unsafeTake Int gt gt unsafeTake unsafeTake unsafeTake xs unsafeTake xs code prepMy understanding is that code code removes thunks Okay but code code is ignored There something not understanding Clarification is appreciated,NULL 52747,372028,826245,NULL,NULL,NULL,0,NULL,NULL 52748,64515,1003307,Notable Question Curious,NULL,NULL,0,NULL,NULL 52749,387865,654149,NULL,NULL,NULL,0,NULL,NULL 52750,62873,1547989,Student Necromancer Yearling Nice Answer Enlightened Nice Answer Popular Question Explainer Yearling Necromancer Nice Answer Nice Answer java Revival Populist Yearling Necromancer Revival Good Answer,NULL,NULL,0,NULL,NULL 52751,38180,369198,Popular Question Nice Answer Enlightened Yearling Nice Answer Nice Question Nice Question Nice Answer Caucus cabal Pundit Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Necromancer Announcer Announcer Good Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Nice Answer Enlightened Yearling haskell-stack Announcer Good Answer,NULL,NULL,1,NULL,How to use Data Text Lazy IO to parse JSON files with Aeson json haskell io lazy evaluation aeson pI want to parse all json files in given directory into data type emResult em ppSo have decode function ppre codedecodeResult Data ByteString Lazy ByteString gt Maybe Result code prepI began with emData Text Lazy IO em to load file into Lazy ByteString ppre codeimport qualified Data Text Lazy IO as Timport qualified Data Text Lazy Encoding as TgetFileContent FilePath gt IO ByteStringgetFileContent path encodeUtf8 fmap readFile path code prepIt compiled but ran into Too many files opened problem so thought maybe should use href https hackage haskell org package base docs System IO html withFile rel nofollow noreferrer emwithFile em ppre codeimport System IOimport qualified Data ByteString Lazy as Bimport qualified Data Text Lazy IO as Timport qualified Data Text Lazy Encoding as TgetFileContent FilePath gt IO Maybe Result getFileContent path withFile path ReadMode hnd gt do content lt hGetContents hnd return decodeAnalytic encodeUtf8 contentloadAllResults FilePath gt IO Result loadAllResults path do paths lt listDirectory path results lt sequence fmap getFileContent fmap path filter endswith json paths return catMaybes results code prepIn this version the lazy io seems never got evaluated it always return empty list But If print content inside emgetFileContent em function then everything seems work correctly ppre codegetFileContent FilePath gt IO Maybe Result getFileContent path withFile path ReadMode hnd gt do content lt hGetContents hnd print content return decodeAnalytic encodeUtf8 content code prepSo am not sure what am missing should use conduit for this type of things pGenerally speaking emwould em recommend using streaming library for parsing arbitrarily sized data like JSON file However in the specific case of parsing JSON with aeson the concerns of overrunning memory are not as significant IMO since the aeson library itself will ultimately represent the entire file in memory as codeValue code type So given that you may choose to simply use strict bytestring ve given an example of using both conduit and strict for parsing JSON value think the conduit version exists in some libraries already not sure ppre code usr bin env stack stack resolver lts 14 install ghc runghc package aeson package conduit extra import Control Monad Catch MonadThrow throwM import Control Monad IO Class MonadIO liftIO import Data Aeson FromJSON Result eitherDecodeStrict fromJSON json Value import Data ByteString ByteString import qualified Data ByteString as Bimport Data Conduit ConduitM runConduitRes import Data Conduit Attoparsec sinkParser import Data Conduit Binary sourceFile sinkFromJSON MonadThrow FromJSON gt ConduitM ByteString asinkFromJSON do value lt sinkParser json case fromJSON value of Error gt throwM userError Success gt return xreadJSONFile MonadIO FromJSON gt FilePath gt areadJSONFile fp liftIO runConduitRes sourceFile fp sinkFromJSON Or using strict OreadJSONFileStrict MonadIO FromJSON gt FilePath gt areadJSONFileStrict fp liftIO do bs lt readFile fp case eitherDecodeStrict bs of Left gt throwM userError Right gt return xmain IO main do lt readJSONFile test json lt readJSONFileStrict test json print Value print Value code prep strongEDIT strong Forgot to mention strongly recommend emagainst em using textual for reading your JSON files JSON files should be encoded with UTF while the textual functions will use whatever your system settings specify for character encoding Relying on codeData ByteString readFile code and similar is more reliable went into more detail href http www snoyman com blog 2016 12 beware of readfile rel noreferrer in recent blog post 52752,13340,449102,Notable Question,NULL,NULL,0,NULL,NULL 52753,503605,186713,NULL,NULL,NULL,0,NULL,NULL 52754,1343271,216658,Critic Caucus,NULL,NULL,0,NULL,NULL 52755,400102,180311,NULL,NULL,NULL,0,NULL,NULL 52756,114182,925963,NULL,NULL,NULL,0,NULL,NULL 52757,295230,666892,NULL,NULL,NULL,0,NULL,NULL 52758,3820503,666892,NULL,NULL,NULL,0,NULL,NULL 52759,187517,721325,NULL,NULL,NULL,0,NULL,NULL 52760,133793,109678,Favorite Question Yearling Good Answer Great Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 52761,4339736,109678,Favorite Question Yearling Good Answer Great Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 52762,353682,1152670,NULL,NULL,NULL,0,NULL,NULL 52763,50191,839131,NULL,NULL,NULL,0,NULL,NULL 52764,41211,278484,NULL,NULL,NULL,0,NULL,NULL 52765,852510,5341,Guru Good Answer Yearling Great Answer Yearling Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 52766,44706,488722,NULL,NULL,NULL,0,NULL,NULL 52767,122935,693301,twilio Yearling Revival Notable Question Yearling Yearling Informed Custodian Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 52768,182456,21022,NULL,NULL,NULL,0,NULL,NULL 52769,126204,808719,NULL,NULL,NULL,0,NULL,NULL 52770,104259,1325941,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 52771,147138,800608,Unsung Hero Famous Question Notable Question Popular Question Yearling Proofreader Popular Question Yearling Taxonomist Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 52772,1557474,1337771,Nice Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Notable Question Yearling Famous Question Nice Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Answer Caucus java Popular Question Notable Question Good Question Nice Answer Enlightened Popular Question Popular Question Yearling Notable Question Good Question Popular Question Nice Answer Enlightened Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52773,1564591,636887,Notable Question Notable Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 52774,518607,458242,Yearling,NULL,NULL,0,NULL,NULL 52775,233015,1188730,Student,NULL,NULL,0,NULL,NULL 52776,352507,485984,NULL,NULL,NULL,0,NULL,NULL 52777,331624,510989,Nice Answer,NULL,NULL,0,NULL,NULL 52778,1501162,1327034,Yearling Nice Question Custodian Citizen Patrol Famous Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 52779,1611094,1046650,NULL,NULL,NULL,0,NULL,NULL 52780,146055,303400,Famous Question Custodian Announcer Popular Question Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52781,338264,155222,Benefactor Notable Question Yearling ruby Guru Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 52782,167446,498812,Nice Answer Nice Answer javascript Yearling Caucus Great Answer Populist Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 52783,12678,1205417,NULL,NULL,NULL,0,NULL,NULL 52784,298013,716391,NULL,NULL,NULL,0,NULL,NULL 52785,431662,1431522,NULL,NULL,NULL,0,NULL,NULL 52786,102742,617090,Editor Autobiographer Informed Yearling Yearling Citizen Patrol Custodian Yearling Custodian Yearling Organizer Tenacious Excavator Explainer Custodian Caucus Student Popular Question Yearling Scholar Announcer Caucus Constituent Census Yearling Civic Duty,NULL,NULL,0,NULL,NULL 52787,158389,159387,Revival,NULL,NULL,0,NULL,NULL 52788,303428,996334,Popular Question Nice Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 52789,906203,779682,NULL,NULL,NULL,0,NULL,NULL 52790,330955,1451809,Informed,NULL,NULL,0,NULL,NULL 52791,377999,1074587,NULL,NULL,NULL,0,NULL,NULL 52792,5542392,1168159,NULL,NULL,NULL,0,NULL,NULL 52793,66406,480944,NULL,NULL,NULL,0,NULL,NULL 52794,5584,1226227,NULL,NULL,NULL,0,NULL,NULL 52795,394071,963616,Nice Answer,NULL,NULL,0,NULL,NULL 52796,702783,926079,Supporter Teacher Tumbleweed Editor,NULL,NULL,0,NULL,NULL 52797,1972843,75694,Great Question Yearling Great Answer Famous Question Notable Question Great Answer Yearling Custodian Notable Question Famous Question Nice Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 52798,884283,75694,Great Question Yearling Great Answer Famous Question Notable Question Great Answer Yearling Custodian Notable Question Famous Question Nice Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 52799,888494,704843,NULL,NULL,NULL,0,NULL,NULL 52800,839993,485500,Popular Question Curious Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 52801,261698,627355,Notable Question Famous Question Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52802,635540,454375,Notable Question Nice Answer Famous Question Nice Answer Yearling Notable Question Necromancer Famous Question Nice Question Civic Duty Notable Question Guru Necromancer Nice Answer ruby Popular Question Notable Question Yearling Necromancer Nice Answer Necromancer Popular Question Nice Question Necromancer Custodian Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 52803,283081,384359,Yearling,NULL,NULL,0,NULL,NULL 52804,89382,356201,Notable Question Popular Question Notable Question Notable Question Yearling Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 52805,30476,145387,Favorite Question Famous Question Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52806,430381,625745,Nice Answer Editor Commentator Yearling Necromancer Announcer Notable Question Yearling Revival Civic Duty,NULL,NULL,0,NULL,NULL 52807,97410,855425,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52808,219259,387337,Popular Question Revival Nice Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 52809,481984,178073,Famous Question Notable Question Announcer Good Question Yearling,NULL,NULL,0,NULL,NULL 52810,1909886,993194,Notable Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 52811,70044,282638,Organizer Suffrage Revival Electorate,NULL,NULL,0,NULL,NULL 52812,156267,149941,Nice Answer Enlightened Caucus Census,NULL,NULL,0,NULL,NULL 52813,118690,436796,NULL,NULL,NULL,0,NULL,NULL 52814,448481,436796,NULL,NULL,NULL,0,NULL,NULL 52815,2840609,436796,NULL,NULL,NULL,0,NULL,NULL 52816,734969,849425,NULL,NULL,NULL,0,NULL,NULL 52817,1278595,869961,NULL,NULL,NULL,0,NULL,NULL 52818,597672,1062080,NULL,NULL,NULL,0,NULL,NULL 52819,296131,602379,Custodian Citizen Patrol Informed Custodian Suffrage Custodian Documentation Pioneer Yearling Caucus Caucus Constituent Documentation User Census Excavator Caucus Nice Answer,NULL,NULL,0,NULL,NULL 52820,201694,578406,NULL,NULL,NULL,0,NULL,NULL 52821,159233,202711,Caucus Caucus Necromancer Cleanup Custodian Necromancer Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 52822,232094,623148,Nice Question Enthusiast,NULL,NULL,0,NULL,NULL 52823,7479785,1367685,Yearling,NULL,NULL,0,NULL,NULL 52824,64343,595709,Favorite Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Necromancer Popular Question Good Answer Notable Question Great Answer Yearling Nice Answer Notable Question Nice Answer Notable Question Yearling Good Answer Guru Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 52825,9060002,733764,Notable Question,NULL,NULL,0,NULL,NULL 52826,119141,733764,Notable Question,NULL,NULL,0,NULL,NULL 52827,231855,250356,NULL,NULL,NULL,0,NULL,NULL 52828,235451,1277533,Informed Commentator Yearling Autobiographer Revival Excavator Caucus Civic Duty Yearling Announcer Critic Announcer,NULL,NULL,0,NULL,NULL 52829,136497,490627,NULL,NULL,NULL,0,NULL,NULL 52830,334326,799985,Popular Question Notable Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 52831,979739,665355,NULL,NULL,NULL,0,NULL,NULL 52832,61748,1408494,NULL,NULL,NULL,0,NULL,NULL 52833,251271,7643,Nice Answer Guru Good Answer Guru Yearling Nice Answer Nice Answer Enlightened Enlightened Good Answer Popular Question Yearling Tumbleweed Good Answer Yearling,NULL,NULL,0,NULL,NULL 52834,928592,974392,NULL,NULL,NULL,0,NULL,NULL 52835,382271,749731,Notable Question,NULL,NULL,0,NULL,NULL 52836,313939,743494,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52837,489338,236487,NULL,NULL,NULL,0,NULL,NULL 52838,65212,427664,Revival,NULL,NULL,0,NULL,NULL 52839,340809,149026,Popular Question Commentator Notable Question Famous Question Critic Custodian,NULL,NULL,0,NULL,NULL 52840,296357,923960,NULL,NULL,NULL,0,NULL,NULL 52841,421512,1074565,NULL,NULL,NULL,0,NULL,NULL 52842,1712508,876034,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52843,48448,1256014,Yearling,NULL,NULL,0,NULL,NULL 52844,320280,1046412,NULL,NULL,NULL,0,NULL,NULL 52845,328662,1373672,Nice Answer Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52846,217497,1373672,Nice Answer Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52847,5937359,1373672,Nice Answer Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 52848,131189,761975,NULL,NULL,NULL,0,NULL,NULL 52849,211301,1149109,NULL,NULL,NULL,0,NULL,NULL 52850,315567,1334746,Good Answer Notable Question Yearling Revival Popular Question Yearling Popular Question Nice Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52851,1359844,1136451,Notable Question Popular Question Famous Question Famous Question Yearling Famous Question Nice Answer Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 52852,315079,390600,NULL,NULL,NULL,0,NULL,NULL 52853,159093,382754,Editor,NULL,NULL,0,NULL,NULL 52854,248721,1074665,Necromancer,NULL,NULL,0,NULL,NULL 52855,42082,729973,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52856,407322,446447,NULL,NULL,NULL,0,NULL,NULL 52857,75627,106570,Teacher Supporter Enthusiast Critic Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 52858,1511820,1041174,Popular Question Notable Question Revival Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Critic Popular Question Notable Question Nice Question Notable Question Popular Question Nice Question Inquisitive Popular Question Popular Question Famous Question Caucus Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52859,727011,1512976,Student Scholar Commentator Editor Supporter Teacher Tumbleweed Informed Autobiographer Caucus Curious,NULL,NULL,0,NULL,NULL 52860,1203436,784179,NULL,NULL,NULL,0,NULL,NULL 52861,272948,813074,Yearling Necromancer Nice Answer Yearling Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 52862,61540,670490,NULL,NULL,NULL,0,NULL,NULL 52863,210822,472284,Good Answer Notable Question Caucus Caucus Good Question,NULL,NULL,0,NULL,NULL 52864,599682,1501126,Informed Autobiographer Teacher Student Supporter Scholar Popular Question Popular Question Self-Learner Popular Question Curious,NULL,NULL,1,NULL,WebAudio seamlessly playing sequence of audio chunks javascript html5 streaming web audio pI have live constant source of waveform data that gives me second of single channel audio with constant sample rate every second Currently play them this way ppre class lang js prettyprint override code data Float32Array context AudioContextfunction audioChunkReceived context data sample rate var audioBuffer context createBuffer data length sample rate audioBuffer getChannelData set data var source context createBufferSource creates sound source source buffer audioBuffer source connect context destination source start code prepAudio plays fine but with noticeable pauses between consecutive chunks being played as expected like to get rid of them and understand ll have to introduce some kind of buffering pp strongQuestions strong pulliIs there JS library that can do this for me in the process of searching through them liliIf there is no library that can do this how should do it myself liliDetecting when playback finished in one source and have another one ready to play it immediately afterwards using AudioBufferSourceNode onended event handler liliCreate one large buffer and copy my audio chunks one after another and control the flow using AudioBufferSourceNode start AudioBufferSourceNode stop functions liliSomething different li ul pI ve written small class in TypeScript that serves as buffer for now It has strongbufferSize strong defined for controlling how many chunks it can hold It short and self descriptive so ll paste it here There is much to improve so any ideas are welcome pp you can quickly convert it to JS using href https www typescriptlang org play rel nofollow https www typescriptlang org play ppre class lang js prettyprint override codeclass SoundBuffer private chunks Array lt AudioBufferSourceNode gt private isPlaying boolean false private startTime number private lastChunkOffset number constructor public ctx AudioContext public sampleRate number public bufferSize number private debug true private createChunk chunk Float32Array var audioBuffer this ctx createBuffer chunk length this sampleRate audioBuffer getChannelData set chunk var source this ctx createBufferSource source buffer audioBuffer source connect this ctx destination source onended Event gt this chunks splice this chunks indexOf source if this chunks length this isPlaying false this startTime this lastChunkOffset return source private log data string if this debug console log new Date toUTCString data public addChunk data Float32Array if this isPlaying amp amp this chunks length gt this bufferSize this log chunk discarded return throw away else if this isPlaying amp amp this chunks length lt this bufferSize schedule amp add right now this log chunk accepted let chunk this createChunk data chunk start this startTime this lastChunkOffset this lastChunkOffset chunk buffer duration this chunks push chunk else if this chunks length lt this bufferSize amp amp this isPlaying add amp don schedule this log chunk queued let chunk this createChunk data this chunks push chunk else add amp schedule entire buffer this log queued chunks scheduled this isPlaying true let chunk this createChunk data this chunks push chunk this startTime this ctx currentTime this lastChunkOffset for let lt this chunks length let chunk this chunks chunk start this startTime this lastChunkOffset this lastChunkOffset chunk buffer duration code pre 52865,361046,401516,Popular Question Revival Yearling Popular Question Notable Question Nice Answer Necromancer Nice Question,NULL,NULL,0,NULL,NULL 52866,447637,1341914,Revival Yearling Announcer Nice Answer Yearling Enlightened Necromancer Caucus Popular Question Caucus Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 52867,1411259,633721,Yearling Nice Answer Caucus Notable Question Caucus Caucus Curious Custodian Nice Answer,NULL,NULL,0,NULL,NULL 52868,276727,358397,Teacher Necromancer Supporter,NULL,NULL,0,NULL,NULL 52869,216600,964542,NULL,NULL,NULL,0,NULL,NULL 52870,1346289,1300783,NULL,NULL,NULL,0,NULL,NULL 52871,177919,517529,Promoter Benefactor Notable Question Yearling Necromancer Famous Question Notable Question Caucus Constituent Yearling Good Question Revival Popular Question Popular Question Notable Question Notable Question Necromancer Nice Answer Good Question Yearling Self-Learner Nice Answer Nice Question Popular Question Famous Question Popular Question Necromancer Good Question Inquisitive Yearling,NULL,NULL,1,How to debug quickly in phoenix elixir debugging elixir phoenix framework pAs am learning Elixir Phoenix happen to run into an issue like this often ppThe problem is that this comes from dependency so normally do this pulliopen codedeps something thefile ex code liliadd some debug code like codeIO inspect code to see what params are being passed lilistop server recompile with codemix deps recompile something code lilicheck the documentation to see what types are expected to that function lilicompare the types and trace down the problem to my code li ulpThis works but like to improve my process know can use Iex to start repl but like to get much faster in terms of pullihaving repl inside of the error page itself started automatically like in better errors gem for Rails lilihaving way to see what arguments went into that method without me digging around could be solved by the former point lilibeing able to see method documentation quickly li ulpAlso any other tips are greatly appreciated pp href https stack imgur com 3Vo0n png rel nofollow noreferrer img src https stack imgur com 3Vo0n png alt enter image description here Current Sidekiq job lost when deploying to Heroku ruby on rails ruby heroku sidekiq pI have Sidekiq job that runs for while and when deploy to Heroku and the job is running it can finish within in the few seconds ppThat is fine as the job is designed to be able to be re run if needed ppThe problem is that the job gets lost instead of put back to redis and run again after deploy ppI found that it is advised to set code timeout code on heroku and tried it but it had no effect also tried seeting to ppWhen there is an exception get errors reported but don see any So not sure what could be wrong ppAny tips on how to debug this,NULL 52872,352633,211886,Nice Answer Enlightened Enthusiast Caucus Constituent Nice Answer Enlightened Yearling Revival Caucus Autobiographer Necromancer Caucus Constituent Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 52873,60789,821520,Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52874,540856,108878,Good Answer Popular Question Good Answer Yearling Notable Question Good Answer Famous Question Popular Question Good Question Good Answer Popular Question Good Answer Self-Learner Yearling Guru Guru Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 52875,171087,522207,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 52876,124107,1048100,Enthusiast Caucus Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Scholar Student Good Answer Yearling python Civic Duty,NULL,NULL,0,NULL,NULL 52877,576153,59666,Good Question Yearling Famous Question Nice Question Excavator Notable Question Favorite Question Famous Question Notable Question Popular Question Nice Question Good Question Popular Question Popular Question Favorite Question Famous Question Nice Question Caucus Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question Good Question Great Question Famous Question Popular Question Popular Question Yearling Notable Question Good Question Good Question Good Question Popular Question Nice Question Notable Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 52878,6865,232707,Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Documentation User Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Great Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,pAh codecontains code supposedly one of the top five FAQs re Clojure ppIt does emnot em check whether collection contains value it checks whether an item could be retrieved with codeget code or in other words whether collection contains key This makes sense for sets which can be thought of as making no distinction between keys and values maps so code contains foo foo code is codetrue code and vectors but note that code contains foo bar code is codetrue code because the keys here are indices and the vector in question does contain the index code0 code pp strikeTo add to the confusion in cases where it doesn make sense to call codecontains code it simply return codefalse code this is what happens in code contains foo code emand also em code contains 100 101 102 101 code strike emUpdate em In Clojure codecontains code throws when handed an object of type that doesn support the intended key membership test ppThe correct way to do what you re trying to do is as follows ppre code most of the time this works some 101 100 101 102 code prepWhen searching for one of bunch of items you can use larger set when searching for codefalse code codenil code you can use codefalse code codenil code because code code returns codex code thus code nil nil code is codenil code when searching for one of multiple items some of which may be codefalse code or codenil code you can use ppre code some zipmap the items repeat true the collection code prep Note that the items can be passed to codezipmap code in any type of collection Oops guess it little overdue… Done Thanks for the reminder and sorry to have missed it somehow when first posted,0,NULL,NULL 52879,1505498,1050787,Yearling Civic Duty Caucus Constituent Curious Yearling Caucus Constituent Promoter Benefactor Caucus,NULL,NULL,0,NULL,NULL 52880,190135,395272,NULL,NULL,NULL,0,NULL,NULL 52881,529572,257401,Guru Yearling,NULL,NULL,0,NULL,NULL 52882,55017,498339,NULL,NULL,NULL,0,NULL,NULL 52883,497810,389755,Nice Question Good Answer Necromancer Yearling Civic Duty Custodian Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 52884,1402940,603206,NULL,NULL,NULL,0,NULL,NULL 52885,308152,687488,Informed django Yearling Custodian Nice Answer Enlightened Good Answer Popular Question Yearling Announcer Nice Answer Nice Question Yearling Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 52886,220295,363372,Yearling Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 52887,211090,254094,Revival Necromancer Informed,NULL,NULL,0,NULL,NULL 52888,3913,369894,Nice Answer Yearling Civic Duty Organizer Nice Answer Good Answer Great Answer Yearling Enlightened Census Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 52889,262710,69684,Fanatic Steward Yearling Famous Question Good Answer Popular Question Revival Good Question Revival Notable Question Famous Question Yearling Notable Question Popular Question Notable Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Question Yearling Nice Answer Enlightened Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 52890,204961,645464,NULL,NULL,NULL,0,NULL,NULL 52891,37065,437523,Notable Question Popular Question Popular Question Good Question Nice Answer Nice Question Yearling Popular Question Nice Question Famous Question Favorite Question Famous Question Popular Question Yearling Notable Question Popular Question Favorite Question Notable Question Good Answer Great Question Yearling,NULL,NULL,0,NULL,NULL 52892,312261,1213844,Popular Question Notable Question Yearling Nice Answer Nice Question Famous Question Critic Commentator Informed Yearling Good Question,NULL,NULL,0,NULL,NULL 52893,947252,845406,NULL,NULL,NULL,0,NULL,NULL 52894,123446,281631,NULL,NULL,NULL,0,NULL,NULL 52895,359744,766837,Informed Autobiographer,NULL,NULL,0,NULL,NULL 52896,3011153,766837,Informed Autobiographer,NULL,NULL,0,NULL,NULL 52897,33557,40745,Good Answer Good Answer Nice Answer Enlightened Yearling Yearling Nice Answer Revival Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52898,437231,40745,Good Answer Good Answer Nice Answer Enlightened Yearling Yearling Nice Answer Revival Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 52899,173395,923255,Documentation User Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 52900,130230,327574,Yearling,NULL,NULL,0,NULL,NULL 52901,248213,57728,Yearling Nice Answer Yearling Necromancer Revival Necromancer Revival Necromancer Yearling Self-Learner Revival Yearling,NULL,NULL,0,NULL,NULL 52902,517157,532691,NULL,NULL,NULL,0,NULL,NULL 52903,564757,81896,Yearling Famous Question Notable Question Nice Question Organizer Notable Question Yearling Notable Question Nice Answer Nice Question Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 52904,75656,225718,Nice Answer Announcer Revival Yearling Great Answer Announcer Announcer Announcer Notable Question Announcer Caucus Constituent Notable Question Yearling Announcer Census Announcer Good Answer Nice Answer Enlightened Announcer Announcer Announcer Explainer Benefactor Announcer Announcer,NULL,NULL,0,NULL,NULL 52905,61385,1033966,Citizen Patrol Custodian Informed Yearling Guru Caucus Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52906,102750,426501,NULL,NULL,NULL,0,NULL,NULL 52907,337339,537839,Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 52908,2515049,537839,Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 52909,235851,780940,NULL,NULL,NULL,0,NULL,NULL 52910,154136,375218,NULL,NULL,NULL,0,NULL,NULL 52911,485613,764841,NULL,NULL,NULL,0,NULL,NULL 52912,201688,326397,Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 52913,143939,175900,Editor Yearling Great Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 52914,82145,705676,Nice Answer Nice Answer Enlightened Revival Guru Nice Answer Yearling Good Question Nice Answer Good Answer Good Answer Good Answer Necromancer Famous Question Nice Answer Great Answer Nice Answer Enlightened Good Answer Guru Yearling Nice Answer Necromancer Nice Answer Popular Question Nice Answer Nice Answer Yearling Notable Question Announcer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 52915,58172,465366,Scholar,NULL,NULL,0,NULL,NULL 52916,207437,952945,NULL,NULL,NULL,0,NULL,NULL 52917,265963,744790,Popular Question Notable Question Good Question Curious,NULL,NULL,0,NULL,NULL 52918,63052,21998,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52919,79404,273512,NULL,NULL,NULL,0,NULL,NULL 52920,90552,1002068,NULL,NULL,NULL,0,NULL,NULL 52921,109324,1428430,Informed,NULL,NULL,0,NULL,NULL 52922,280225,768388,NULL,NULL,NULL,0,NULL,NULL 52923,515646,930165,NULL,NULL,NULL,0,NULL,NULL 52924,1162183,682328,NULL,NULL,NULL,0,NULL,NULL 52925,347834,220896,Popular Question Nice Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 52926,30207,897889,Yearling Civic Duty Notable Question Yearling Famous Question Good Question Yearling Announcer,NULL,NULL,0,NULL,NULL 52927,53374,492345,Supporter,NULL,NULL,0,NULL,NULL 52928,8670,614275,NULL,NULL,NULL,0,NULL,NULL 52929,2003183,1565583,NULL,NULL,NULL,0,NULL,NULL 52930,140684,1370871,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 52931,199157,424809,Famous Question,NULL,NULL,0,NULL,NULL 52932,3511342,260149,Yearling Deputy Nice Answer Nice Question Caucus Famous Question Yearling Custodian Custodian Caucus Notable Question Good Question Documentation User Revival Census Yearling Necromancer Caucus Nice Answer Popular Question Famous Question Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 52933,91302,84274,Custodian Notable Question Famous Question Nice Question Yearling Populist Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Notable Question Notable Question Famous Question Famous Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 52934,64160,1546890,Supporter,NULL,NULL,0,NULL,NULL 52935,1508078,1249516,NULL,NULL,NULL,0,NULL,NULL 52936,3016298,413304,Citizen Patrol Commentator Yearling Organizer Critic Informed Yearling,NULL,NULL,0,NULL,NULL 52937,64573,413304,Citizen Patrol Commentator Yearling Organizer Critic Informed Yearling,NULL,NULL,0,NULL,NULL 52938,6968253,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52939,74434,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52940,649590,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52941,649591,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52942,649592,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52943,649593,1138204,Yearling Caucus Notable Question Census Caucus,NULL,NULL,0,NULL,NULL 52944,521398,1533813,NULL,NULL,NULL,0,NULL,NULL 52945,213661,1533813,NULL,NULL,NULL,0,NULL,NULL 52946,32626,721340,NULL,NULL,NULL,0,NULL,NULL 52947,313075,746525,Popular Question Notable Question Yearling Curious Good Question,NULL,NULL,0,NULL,NULL 52948,214354,31122,Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 52949,4635421,1132257,Student Editor Tumbleweed,NULL,NULL,0,NULL,NULL 52950,4707215,1260778,Popular Question Notable Question Autobiographer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52951,1313266,1260778,Popular Question Notable Question Autobiographer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52952,110891,30971,NULL,NULL,NULL,0,NULL,NULL 52953,1506566,1029678,NULL,NULL,NULL,0,NULL,NULL 52954,170648,849017,Yearling Tumbleweed Autobiographer Excavator Popular Question Critic Notable Question Civic Duty Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 52955,527483,691679,NULL,NULL,NULL,0,NULL,NULL 52956,53472,7198,Yearling Good Answer Yearling Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 52957,409040,286253,Nice Question Popular Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 52958,1119693,1138425,NULL,NULL,NULL,0,NULL,NULL 52959,922285,1138425,NULL,NULL,NULL,0,NULL,NULL 52960,158553,160665,Announcer Announcer Great Answer Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Promoter Benefactor Famous Question Yearling Notable Question Necromancer Notable Question Necromancer Nice Question Famous Question Necromancer Revival Nice Answer Yearling Popular Question Documentation User Good Question Census Announcer Popular Question Necromancer Famous Question Popular Question Revival Popular Question Yearling Notable Question Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 52961,480313,382285,NULL,NULL,NULL,0,NULL,NULL 52962,1114093,1009353,NULL,NULL,NULL,0,NULL,NULL 52963,243076,655392,Yearling Explainer,NULL,NULL,0,NULL,NULL 52964,341261,90611,NULL,NULL,NULL,0,NULL,NULL 52965,103678,309962,Popular Question Yearling Good Answer Notable Question Yearling Good Question Notable Question Popular Question Famous Question Favorite Question Notable Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 52966,663419,1507196,NULL,NULL,NULL,0,NULL,NULL 52967,1121547,1300579,NULL,NULL,NULL,0,NULL,NULL 52968,884962,295565,Revival Necromancer Notable Question,NULL,NULL,0,NULL,NULL 52969,64512,665163,Yearling Scholar Yearling Taxonomist Necromancer Yearling,NULL,NULL,0,NULL,NULL 52970,72020,17316,NULL,NULL,NULL,0,NULL,NULL 52971,44360,1350866,Supporter,NULL,NULL,0,NULL,NULL 52972,3385,53081,NULL,NULL,NULL,0,NULL,NULL 52973,477794,222838,Necromancer Nice Question Yearling Popular Question Nice Answer Necromancer Nice Answer Yearling Notable Question Nice Answer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 52974,100828,916391,NULL,NULL,NULL,0,NULL,NULL 52975,1575955,109304,Necromancer Popular Question Good Answer Yearling Necromancer Necromancer Necromancer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 52976,95960,203867,NULL,NULL,NULL,0,NULL,NULL 52977,279907,130929,Notable Question python Guru Notable Question Nice Answer Enlightened Popular Question Nice Answer Good Question Good Answer Necromancer Good Answer Nice Question Nice Answer Nice Question Notable Question Nice Question Nice Answer Notable Question Nice Question Good Answer Nice Question Nice Answer Enlightened Notable Question Yearling Nice Question Favorite Question Popular Question Great Answer Notable Question Great Answer Notable Question Popular Question Popular Question Famous Question Guru Notable Question Popular Question Caucus Great Answer Famous Question Guru Great Question Favorite Question Popular Question Custodian Notable Question google-cloud-datastore Notable Question Nice Question Popular Question Famous Question Nice Answer Nice Answer Enlightened Famous Question Popular Question Popular Question Popular Question Famous Question Good Question Popular Question Famous Question Yearling Notable Question Notable Question Caucus Good Answer Nice Answer Good Question Favorite Question Nice Answer Popular Question Great Question Nice Answer Great Question Popular Question Guru Caucus Stellar Question Notable Question Popular Question Yearling Favorite Question Notable Question Popular Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 52978,561421,286304,Necromancer Self-Learner Yearling node.js Nice Answer Notable Question Famous Question Nice Answer Enlightened Electorate Nice Answer Enlightened Caucus Constituent Good Answer Yearling Nice Answer Popular Question Caucus Constituent Nice Answer Popular Question Good Answer Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Notable Question Good Answer,NULL,NULL,0,NULL,NULL 52979,615402,961564,NULL,NULL,NULL,0,NULL,NULL 52980,264754,391694,NULL,NULL,NULL,0,NULL,NULL 52981,99978,448496,Nice Question Notable Question Yearling Pundit Good Question Caucus Constituent Nice Answer Enlightened Famous Question Quorum Nice Answer Good Answer Notable Question Popular Question Census Nice Question Notable Question Caucus Constituent Notable Question Popular Question Popular Question Yearling Documentation User Popular Question Nice Answer Census Popular Question Caucus Constituent Popular Question Yearling Taxonomist Good Question Popular Question,NULL,NULL,0,NULL,NULL 52982,211938,1121245,Popular Question Nice Answer Popular Question Yearling Notable Question Peer Pressure Civic Duty Nice Answer Caucus Constituent Famous Question Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 52983,244788,717206,NULL,NULL,NULL,0,NULL,NULL 52984,164432,604368,NULL,NULL,NULL,0,NULL,NULL 52985,316954,1520400,Custodian Supporter,NULL,NULL,0,NULL,NULL 52986,413505,262021,Notable Question,NULL,NULL,0,NULL,NULL 52987,64020,733564,NULL,NULL,NULL,0,NULL,NULL 52988,423637,1101825,Good Answer,NULL,NULL,0,NULL,NULL 52989,44103,619510,Popular Question Popular Question Nice Question Notable Question Notable Question Nice Answer Yearling Good Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 52990,67022,396875,NULL,NULL,NULL,0,NULL,NULL 52991,356480,785307,Notable Question,NULL,NULL,0,NULL,NULL 52992,53343,731897,NULL,NULL,NULL,0,NULL,NULL 52993,326712,477101,NULL,NULL,NULL,0,NULL,NULL 52994,109595,515871,NULL,NULL,NULL,0,NULL,NULL 52995,8900,515871,NULL,NULL,NULL,0,NULL,NULL 52996,30366,402281,Self-Learner Nice Question Notable Question Popular Question Custodian Nice Question Revival Famous Question Nice Question Yearling Nice Question Popular Question Electorate Good Answer Nice Question Caucus Popular Question Good Question Popular Question Popular Question Cleanup Famous Question Yearling Announcer Famous Question Popular Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Notable Question Announcer Popular Question Popular Question Citizen Patrol Popular Question Popular Question Necromancer Notable Question Necromancer Yearling Nice Question Notable Question Necromancer Nice Question Good Question,NULL,ulli pIn strongHTML strong code lt foo code yes with no code gt code at all means code lt foo gt code which leads to code lt br gt code meaning code lt br gt gt code code lt br gt amp gt code and code lt title hello code meaning code lt title gt hello lt title gt code Browsers did very poor job of supporting this and href http www w3 org TR html4 appendix notes html rel noreferrer the spec advises authors to avoid the syntax lili pIn strongXHTML strong href http www w3 org TR xml d0e2480 rel noreferrer code lt foo gt code means code lt foo gt lt foo gt code This is an strongXML strong rule that applies to all XML documents That said XHTML is often served as codetext html code which historically at least gets processed by browsers using different parser than documents served as codeapplication xhtml xml code The W3C provides href http www w3 org TR xhtml media types rel noreferrer compatibility guidelines to follow for XHTML as codetext html code Essentially Only use self closing tag syntax when the element is defined as EMPTY and the end tag was forbidden in the HTML spec lili pIn strongHTML5 strong the meaning of code lt foo gt code href https www w3 org TR html5 syntax html start tags rel noreferrer depends on the type of element pulliOn HTML elements that are designated as emvoid elements em essentially An element that existed before HTML5 and which was forbidden to have any content end tags are simply forbidden The slash at the end of the start tag is allowed but has no meaning It is just syntactic sugar for people and syntax highlighters that are addicted to XML liliOn other HTML elements the slash is an error but error recovery will cause browsers to ignore it and treat the tag as regular start tag This will usually end up with missing end tag causing subsequent elements to be children instead of siblings liliForeign elements imported from XML applications such as SVG treat it as self closing syntax li ul li ul This answer feels very opinionated ulli pIn strongHTML strong code lt foo code yes with no code gt code at all means code lt foo gt code which leads to code lt br gt code meaning code lt br gt gt code code lt br gt amp gt code and code lt title hello code meaning code lt title gt hello lt title gt code Browsers did very poor job of supporting this and href http www w3 org TR html4 appendix notes html rel noreferrer the spec advises authors to avoid the syntax lili pIn strongXHTML strong href http www w3 org TR xml d0e2480 rel noreferrer code lt foo gt code means code lt foo gt lt foo gt code This is an strongXML strong rule that applies to all XML documents That said XHTML is often served as codetext html code which historically at least gets processed by browsers using different parser than documents served as codeapplication xhtml xml code The W3C provides href http www w3 org TR xhtml media types rel noreferrer compatibility guidelines to follow for XHTML as codetext html code Essentially Only use self closing tag syntax when the element is defined as EMPTY and the end tag was forbidden in the HTML spec lili pIn strongHTML5 strong the meaning of code lt foo gt code href https www w3 org TR html5 syntax html start tags rel noreferrer depends on the type of element pulliOn HTML elements that are designated as emvoid elements em essentially An element that existed before HTML5 and which was forbidden to have any content end tags are simply forbidden The slash at the end of the start tag is allowed but has no meaning It is just syntactic sugar for people and syntax highlighters that are addicted to XML liliOn other HTML elements the slash is an error but error recovery will cause browsers to ignore it and treat the tag as regular start tag This will usually end up with missing end tag causing subsequent elements to be children instead of siblings liliForeign elements imported from XML applications such as SVG treat it as self closing syntax li ul li ul The sentence It is just syntactic sugar for people that are addicted to XML makes me feel that you did not write this answer to present or explain facts but to entice people to think about it one way or another It is similar to loaded question albeit not in the form of question pFor Python ppre code format value code prepPer href https docs python org library string html format specification mini language Format Specification Mini Language pblockquote pThe code code option signals the use of comma for thousands separator For locale aware separator use the code code integer presentation type instead blockquote Slightly more concise format value,0,NULL,NULL 52997,336677,148912,Good Answer Yearling Yearling Nice Answer Enlightened Custodian Custodian Organizer Citizen Patrol Explainer Tag Editor Yearling Custodian Excavator,NULL,NULL,0,NULL,NULL 52998,29059,134257,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 52999,114108,402428,Yearling Necromancer Yearling Necromancer Suffrage Informed Vox Populi Electorate Explainer Excavator Autobiographer Proofreader Necromancer Yearling,NULL,NULL,0,NULL,NULL 53000,279092,114904,Revival Tumbleweed Yearling Informed Custodian Curious Popular Question Necromancer Reviewer Custodian Yearling Custodian Custodian Popular Question Notable Question Unsung Hero Documentation User Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 53001,204828,180553,NULL,NULL,NULL,0,NULL,NULL 53002,241842,934817,NULL,NULL,NULL,0,NULL,NULL 53003,457381,967610,NULL,NULL,NULL,0,NULL,NULL 53004,693804,245561,NULL,NULL,NULL,0,NULL,NULL 53005,292205,1510650,NULL,NULL,NULL,0,NULL,NULL 53006,78721,680454,Commentator Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 53007,4950355,680454,Commentator Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 53008,1466823,722051,NULL,NULL,NULL,0,NULL,NULL 53009,124810,852527,NULL,NULL,NULL,0,NULL,NULL 53010,301801,6264,Popular Question Good Question Nice Answer Enlightened Notable Question Guru Popular Question Notable Question Great Question Nice Question Yearling Nice Answer Notable Question Famous Question Taxonomist Announcer Nice Answer Popular Question Custodian Nice Answer Announcer Popular Question Popular Question Good Question Notable Question Popular Question Yearling Documentation User Announcer Announcer Notable Question Popular Question Nice Answer Enlightened Nice Question Announcer Popular Question clojure Announcer Popular Question Notable Question Good Answer Notable Question Nice Answer Yearling Nice Answer Nice Answer Enlightened Announcer Notable Question,NULL,NULL,0,NULL,NULL 53011,108524,261680,NULL,NULL,NULL,0,NULL,NULL 53012,36527,550176,NULL,NULL,NULL,0,NULL,NULL 53013,277158,1514383,NULL,NULL,NULL,0,NULL,NULL 53014,422188,1336733,NULL,NULL,NULL,0,NULL,NULL 53015,672863,838071,Yearling,NULL,NULL,0,NULL,NULL 53016,123431,528615,NULL,NULL,NULL,0,NULL,NULL 53017,41975,1438469,Student,NULL,NULL,0,NULL,NULL 53018,226700,628179,NULL,NULL,NULL,0,NULL,NULL 53019,294274,1171218,NULL,NULL,NULL,0,NULL,NULL 53020,178018,231203,NULL,NULL,NULL,0,NULL,NULL 53021,463701,1558290,NULL,NULL,NULL,0,NULL,NULL 53022,690113,723698,NULL,NULL,NULL,0,NULL,NULL 53023,7006,1153732,NULL,NULL,NULL,0,NULL,NULL 53024,68924,179926,Announcer Critic Tumbleweed,NULL,NULL,0,NULL,NULL 53025,843197,1551634,NULL,NULL,NULL,0,NULL,NULL 53026,1359126,197657,Good Question Popular Question Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Good Question Nice Question Popular Question Yearling Popular Question Famous Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Announcer Famous Question Nice Question Popular Question Census Custodian Favorite Question Famous Question Yearling Notable Question Popular Question,NULL,protoc producing invalid java code java protocol buffers pI ve been using protobuf to generate intra backend messages but when moved to new laptop and set up protoc again it seems it doesn generate working java code anymore ppI on the latest Ubuntu 16 04 and have downloaded the latest protoc ppre code protoc versionlibprotoc code prepBuilding it without errors or warnings with ppre codeprotoc java out lt javapath gt python out lt pythonpath gt messages proto code prepThe messages shown by Eclipse maven are these ppre codeThe method parseUnknownFieldProto3 CodedInputStream UnknownFieldSet Builder ExtensionRegistryLite int is undefined for the type MessageA Request Messages java path line etc snip more of the same for other messagesMessages Shutdown Messages java path The method setUnknownFieldsProto3 UnknownFieldSet is undefined for the type GeneratedMessageV3 Builder lt Messages Request Builder gt Messages java path line etc snip more of the same code prepIf manually rename codeparseUnknownFieldProtoc3 code to codeparseUnknownField code and same for SetUnknownFields the error goes away but that feels like the wrong solution ppWhat am missing just realized the jar we have in the classpath is feel rather silly currently Trying to locate prebuilt jar to test with,1,protoc producing invalid java code java protocol buffers pI ve been using protobuf to generate intra backend messages but when moved to new laptop and set up protoc again it seems it doesn generate working java code anymore ppI on the latest Ubuntu 16 04 and have downloaded the latest protoc ppre code protoc versionlibprotoc code prepBuilding it without errors or warnings with ppre codeprotoc java out lt javapath gt python out lt pythonpath gt messages proto code prepThe messages shown by Eclipse maven are these ppre codeThe method parseUnknownFieldProto3 CodedInputStream UnknownFieldSet Builder ExtensionRegistryLite int is undefined for the type MessageA Request Messages java path line etc snip more of the same for other messagesMessages Shutdown Messages java path The method setUnknownFieldsProto3 UnknownFieldSet is undefined for the type GeneratedMessageV3 Builder lt Messages Request Builder gt Messages java path line etc snip more of the same code prepIf manually rename codeparseUnknownFieldProtoc3 code to codeparseUnknownField code and same for SetUnknownFields the error goes away but that feels like the wrong solution ppWhat am missing,NULL 53027,1161457,1042920,NULL,NULL,NULL,0,NULL,NULL 53028,902276,214146,Famous Question Favorite Question Yearling Nice Answer Yearling Good Answer Good Answer Yearling,NULL,Check if key is down javascript input keyboard pIs there way to detect if key is currently down in JavaScript ppI know about the keydown event but that not what need Some time AFTER the key is pressed want to be able to detect if it is still pressed down ppP The biggest issue seems to be that after some period of time the key begins to repeat firing off keydown and keyup events like fiend Hopefully there is just simple isKeyDown key function but if not then this issue will need to be overcome worked around common problem with the answers see here is that if you hold key down then change tabs or change focus let the key up and then switch back the code will believe the key is down until you press it again or move the mouse over the page,0,NULL,NULL 53029,337559,370594,NULL,NULL,NULL,0,NULL,NULL 53030,1449989,635969,NULL,NULL,NULL,0,NULL,NULL 53031,343741,1279891,NULL,NULL,NULL,0,NULL,NULL 53032,133351,200412,Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Famous Question Good Question Yearling Nice Question,NULL,NULL,1,Datatables Select All Checkbox jquery datatables pThe demo on the select all doesn really work href https datatables net extensions select examples initialisation checkbox html rel noreferrer https datatables net extensions select examples initialisation checkbox html ppWhat the best way to implement the select all checkbox after they are created via the codecolumnDef code attributes,NULL 53033,295480,318852,Popular Question Notable Question Popular Question Famous Question Yearling Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Custodian Popular Question Peer Pressure Notable Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 53034,271369,308545,NULL,NULL,NULL,0,NULL,NULL 53035,899773,443462,Popular Question,NULL,NULL,0,NULL,NULL 53036,507387,519495,Famous Question Yearling Notable Question Custodian Nice Question Nice Question Notable Question Self-Learner Yearling Good Question Favorite Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 53037,146390,451276,Notable Question Enthusiast Good Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 53038,155362,1393157,Good Answer,NULL,NULL,0,NULL,NULL 53039,83808,49797,Revival,NULL,NULL,0,NULL,NULL 53040,18219,76968,Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 53041,1725,614425,Suffrage Vox Populi Yearling Notable Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 53042,746975,992590,NULL,NULL,NULL,0,NULL,NULL 53043,2618880,143393,Nice Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53044,204150,1130073,NULL,NULL,NULL,0,NULL,NULL 53045,50501,283815,NULL,NULL,NULL,0,NULL,NULL 53046,89069,288363,NULL,NULL,NULL,0,NULL,NULL 53047,241908,1333588,NULL,NULL,NULL,0,NULL,NULL 53048,839407,1348467,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53049,26712,672097,Documentation User,NULL,NULL,0,NULL,NULL 53050,1077524,134692,Famous Question Notable Question Nice Question Notable Question Popular Question Nice Question Good Question Nice Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Nice Answer Popular Question Yearling Revival Notable Question Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 53051,155728,188695,NULL,NULL,NULL,0,NULL,NULL 53052,432177,603022,NULL,NULL,NULL,0,NULL,NULL 53053,256265,1150497,NULL,NULL,NULL,0,NULL,NULL 53054,793778,1150497,NULL,NULL,NULL,0,NULL,NULL 53055,393293,1044442,Custodian Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53056,327959,336925,Custodian Caucus Constituent Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53057,344241,213591,Critic Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 53058,34297,713186,NULL,NULL,NULL,0,NULL,NULL 53059,275758,671897,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53060,122777,548685,Nice Answer Popular Question Necromancer Yearling Nice Answer Necromancer Caucus Caucus Constituent Yearling Good Answer Documentation User Investor Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 53061,47091,296268,NULL,NULL,NULL,0,NULL,NULL 53062,301512,796314,Editor Informed Commentator Custodian Enthusiast Census Revival,NULL,NULL,0,NULL,NULL 53063,126992,621449,Necromancer Yearling Nice Question Notable Question Nice Answer Popular Question Popular Question Caucus Great Question Good Answer Tumbleweed Nice Answer Yearling Popular Question Favorite Question Necromancer Announcer Good Question Announcer Notable Question Pundit Revival Yearling Booster Popular Question Nice Answer Nice Answer Enlightened Famous Question Famous Question Good Answer,NULL,NULL,1,NULL,Cartesian product of dictionary of lists python generator combinatorics pI trying to write some code to test out the Cartesian product of bunch of input parameters ppI ve looked at codeitertools code but its codeproduct code function is not exactly what want Is there simple obvious way to take dictionary with an arbitrary number of keys emand em an arbitrary number of elements in each value and then yield dictionary with the next permutation ppInput ppre codeoptions number color orange blue print list my product options code prepExample output ppre code number color orange number color blue number color orange number color blue number color orange number color blue code pre pPython version of href https stackoverflow com 5228294 621449 Seth answer ppre codeimport itertoolsdef dict product dicts gt gt gt list dict product dict number character ab character number character number character number character number return dict zip dicts for in itertools product dicts values code pre 53064,7548876,1080771,NULL,NULL,NULL,0,NULL,NULL 53065,1415532,1080771,NULL,NULL,NULL,0,NULL,NULL 53066,154707,202631,NULL,NULL,NULL,0,NULL,NULL 53067,393910,687540,Supporter Editor Excavator Critic,NULL,NULL,0,NULL,NULL 53068,81857,399954,NULL,NULL,NULL,0,NULL,NULL 53069,1389543,1348420,NULL,NULL,NULL,0,NULL,NULL 53070,1169464,146248,Notable Question Notable Question Popular Question Nice Question Nice Answer Notable Question Notable Question Notable Question Famous Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53071,487933,507057,Yearling,NULL,NULL,0,NULL,NULL 53072,162607,1170549,NULL,NULL,NULL,0,NULL,NULL 53073,37987,527460,Caucus Yearling Caucus Necromancer Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 53074,206587,806351,NULL,NULL,NULL,0,NULL,NULL 53075,3636,1511639,Yearling Necromancer Necromancer Student Popular Question Nice Answer Caucus Yearling Census Necromancer,NULL,NULL,0,NULL,NULL 53076,2550209,759638,NULL,NULL,NULL,0,NULL,NULL 53077,1163391,1129100,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53078,329899,733872,NULL,NULL,NULL,0,NULL,NULL 53079,591210,1077614,Informed Popular Question,NULL,NULL,0,NULL,NULL 53080,121730,814709,Yearling Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 53081,239152,1178792,Scholar,NULL,NULL,0,NULL,NULL 53082,18844,324506,Famous Question Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Yearling Popular Question Popular Question Guru Inquisitive Popular Question Taxonomist Caucus Yearling Necromancer Revival Popular Question,NULL,NULL,0,NULL,NULL 53083,194779,509602,Famous Question Yearling Good Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53084,652167,1482879,NULL,NULL,NULL,0,NULL,NULL 53085,134250,199828,Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 53086,354000,984410,NULL,NULL,NULL,0,NULL,NULL 53087,256739,743528,Notable Question Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 53088,127542,957650,Revival Popular Question,NULL,NULL,0,NULL,NULL 53089,1140852,833159,NULL,NULL,NULL,0,NULL,NULL 53090,157092,301969,Famous Question Nice Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 53091,29782,1026620,Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53092,281047,560500,Student,NULL,NULL,0,NULL,NULL 53093,193445,515480,NULL,NULL,NULL,0,NULL,NULL 53094,738432,1366991,Enthusiast Editor Excavator,NULL,NULL,0,NULL,NULL 53095,7294,1224227,Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53096,181736,729645,Notable Question,NULL,NULL,0,NULL,NULL 53097,222986,287962,NULL,NULL,NULL,0,NULL,NULL 53098,935141,423268,NULL,NULL,NULL,0,NULL,NULL 53099,1513661,1150400,NULL,NULL,NULL,0,NULL,NULL 53100,36101,581539,NULL,NULL,NULL,0,NULL,NULL 53101,263782,1225007,Nice Answer Yearling Good Answer Editor Supporter Yearling,NULL,NULL,0,NULL,NULL 53102,239883,218473,Revival Necromancer Nice Answer Informed Electorate Necromancer Necromancer Populist Necromancer Announcer Citizen Patrol Nice Question Nice Answer Enlightened Popular Question Necromancer Popular Question Revival Yearling Good Answer Great Answer Nice Question Announcer Necromancer Nice Answer Enlightened Necromancer Great Answer Custodian Nice Answer Great Answer Good Answer Announcer Yearling Revival Census Nice Answer Guru Taxonomist Nice Answer Notable Question Good Answer Revival Populist Yearling Necromancer,NULL,NULL,0,NULL,NULL 53103,461671,1017272,NULL,NULL,NULL,0,NULL,NULL 53104,10132751,703633,NULL,NULL,NULL,0,NULL,NULL 53105,7496474,703633,NULL,NULL,NULL,0,NULL,NULL 53106,167306,166872,Notable Question,NULL,NULL,0,NULL,NULL 53107,315149,1228243,Notable Question,NULL,NULL,0,NULL,NULL 53108,40254,1542304,Tumbleweed,NULL,NULL,0,NULL,NULL 53109,84821,613395,NULL,NULL,NULL,0,NULL,NULL 53110,830985,1412344,NULL,NULL,NULL,0,NULL,NULL 53111,892021,864306,Notable Question Critic Revival Popular Question,NULL,NULL,0,NULL,NULL 53112,29261,549189,NULL,NULL,NULL,0,NULL,NULL 53113,61391,165708,Self-Learner Yearling Necromancer Custodian Announcer Popular Question Custodian Yearling Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 53114,895811,105949,Yearling Yearling Famous Question Famous Question Popular Question Caucus Nice Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 53115,945558,388767,NULL,NULL,NULL,0,NULL,NULL 53116,109964,350838,NULL,NULL,NULL,0,NULL,NULL 53117,577,110663,NULL,NULL,NULL,0,NULL,NULL 53118,7074786,286016,NULL,NULL,NULL,0,NULL,NULL 53119,113559,930748,Popular Question,NULL,NULL,0,NULL,NULL 53120,82723,393040,Necromancer Enthusiast Critic Nice Answer Yearling Yearling Citizen Patrol Commentator,NULL,NULL,0,NULL,NULL 53121,857837,200234,Necromancer Commentator Caucus Constituent Excavator Yearling Necromancer Citizen Patrol Necromancer Caucus Constituent Necromancer Electorate Announcer Informed Caucus Yearling,NULL,NULL,0,NULL,NULL 53122,554545,845313,Good Question Popular Question Famous Question Good Question Yearling Favorite Question Favorite Question,NULL,NULL,0,NULL,NULL 53123,283037,447661,Announcer Yearling Notable Question Citizen Patrol Necromancer Necromancer Necromancer Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 53124,1349315,1096283,NULL,NULL,NULL,0,NULL,NULL 53125,444606,1210177,Necromancer Critic,NULL,NULL,0,NULL,NULL 53126,6333565,140739,Nice Question Notable Question Nice Question Popular Question Popular Question Popular Question Tumbleweed Yearling Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 53127,725770,140739,Nice Question Notable Question Nice Question Popular Question Popular Question Popular Question Tumbleweed Yearling Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 53128,107404,145678,Announcer Supporter,NULL,NULL,0,NULL,NULL 53129,150718,187050,NULL,NULL,NULL,0,NULL,NULL 53130,3268,528634,Yearling Custodian Revival Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 53131,15163,1487425,NULL,NULL,NULL,0,NULL,NULL 53132,107944,476624,Yearling Caucus Popular Question Promoter Curious Benefactor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53133,750485,471556,NULL,NULL,NULL,0,NULL,NULL 53134,1352579,590486,Popular Question,NULL,NULL,0,NULL,NULL 53135,30990,742501,Popular Question Revival,NULL,NULL,0,NULL,NULL 53136,575244,830438,Popular Question Necromancer Popular Question Notable Question Yearling Nice Answer Famous Question Commentator Notable Question Nice Question,NULL,NULL,0,NULL,NULL 53137,154309,972791,Civic Duty Notable Question Famous Question Famous Question Yearling Good Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 53138,465789,1338570,Necromancer Autobiographer Caucus Yearling Critic Caucus Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 53139,9905,66988,Yearling Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Nice Answer Popular Question Nice Question Popular Question Necromancer Nice Question Yearling Custodian Revival Notable Question,NULL,NULL,0,NULL,NULL 53140,199301,754775,Great Answer Yearling Nice Answer Yearling Nice Answer Great Answer Yearling,NULL,pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer thanks think that the answer here still holds up pretty well the one area that has changed is that Aphrodite seems to be the community preferred inline stiles library over Radium —though it really matter of personal preference pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer oops accidentally submitted early now us this component technique to style my components the idea is pretty simple you create components that are only concerned with the application of style and compose with those instead of div span etc it will help keep style isolated regardless of which library you use http reactpatterns com Style component pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer my apologies It should be className not class The answer has been updated pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer ni take pragmatic approach to performance author in the way find most productive then modify for pref when problem appears Perf for inline vs css in js vs css depends on so many specifics For the apps working on now use css library called minions https chantastic org minions css which talked about at Nodevember in 2015 https www youtube com watch 0aBv8dsZs84 Cheers pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer it they don have to be nested the illustration is not prescriptive those nested objects could be flattened into their own vars pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer These two products seem to have the most mindshare for the web https emotion sh and https www styled components com pThere aren lot of Best Practices yet Those of us that are using inline styles for React components are still very much experimenting ppThere are number of approaches that vary wildly href https github com FormidableLabs radium tree 905227c122b1775775cf8d82c508cce4179cff08 docs comparison rel noreferrer React inline style lib comparison chart ph2All or nothing h2pWhat we refer to as style actually includes quite few concepts pulliLayout emhow an element component looks in relationship to others em liliAppearance emthe characteristics of an element component em liliBehavior and state emhow an element component looks in given state em li ulh2Start with state styles h2pReact is already managing the state of your components this makes styles of strongstate and behavior strong natural fit for colocation with your component logic ppInstead of building components to render with conditional state classes consider adding state styles directly ppre code Typical component with state classes lt li className classnames todo list item true is complete item complete gt Using inline styles for state lt li className todo list item style item complete styles complete gt code prepNote that we re using class to style strongappearance strong but no longer using any code is code prefixed class for strongstate and behavior strong ppWe can use codeObject assign code ES6 or code extend code underscore lodash to add support for multiple states ppre code Supporting multiple states with inline styles lt li todo list item style Object assign item complete amp amp styles complete item due amp amp styles due gt code preh2Customization and reusability h2pNow that we re using codeObject assign code it becomes very simple to make our component reusable with different styles If we want to override the default styles we can do so at the call site with props like so code lt TodoItem dueStyle fontWeight bold gt code Implemented like this ppre code lt li todo list item style Object assign item due amp amp styles due item due amp amp this props dueStyles gt code preh3Layout h3pPersonally don see compelling reason to inline layout styles There are number of great CSS layout systems out there just use one ppThat said don add layout styles directly to your component Wrap your components with layout components Here an example ppre code This couples your component to the layout system It reduces the reusability of your component lt UserBadge className col xs 12 col sm col md firstName Michael lastName Chan gt This is much easier to maintain and change lt div class col xs 12 col sm col md gt lt UserBadge firstName Michael lastName Chan gt lt div gt code prepFor layout support often try to design components to be code100 code codewidth code and codeheight code ph3Appearance h3pThis is the most contentious area of the inline style debate Ultimately it up to the component your designing and the comfort of your team with JavaScript ppOne thing is certain you ll need the assistance of library Browser states code hover code code focus code and media queries are painful in raw React ppI like href http projects formidablelabs com radium rel noreferrer Radium because the syntax for those hard parts is designed to model that of SASS ph2Code organization h2pOften you ll see style object outside of the module For todo list component it might look something like this ppre codevar styles root display block item color black complete textDecoration line through due color red code preh2getter functions h2pAdding bunch of style logic to your template can get little messy as seen above like to create getter functions to compute styles ppre codeReact createClass getStyles function return Object assign item props complete amp amp styles complete item props due amp amp styles due item props due amp amp this props dueStyles render function return lt li style this getStyles gt this props item lt li gt code preh2Further watching h2pI discussed all of these in more detail at React Europe earlier this year href https www youtube com watch ERB1TJBn32c rel noreferrer Inline Styles and when it best to just use CSS ppI happy to help as you make new discoveries along the way Hit me up href http twitter com rel noreferrer My personal favorite is react native web https github com necolas react native web but it the API seems tailored toward teams that are making Web and Native apps and want common styling API for sharing components,0,NULL,NULL 53141,451931,1378844,NULL,NULL,NULL,0,NULL,NULL 53142,810649,610404,Yearling Autobiographer Notable Question Necromancer Popular Question Popular Question Enthusiast Yearling Caucus Documentation User Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 53143,291091,660831,NULL,NULL,NULL,0,NULL,NULL 53144,500960,2329,NULL,NULL,NULL,0,NULL,NULL 53145,27849,92542,Nice Answer Yearling Tumbleweed Curious Yearling Guru Yearling Custodian Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 53146,127814,568765,Popular Question Notable Question Nice Answer Notable Question Yearling Necromancer Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 53147,73593,537586,NULL,NULL,NULL,0,NULL,NULL 53148,763744,1336788,Excavator,NULL,NULL,0,NULL,NULL 53149,63312,597465,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53150,17810,501107,NULL,NULL,NULL,0,NULL,NULL 53151,365420,249586,Revival,NULL,NULL,0,NULL,NULL 53152,374638,298906,NULL,NULL,NULL,0,NULL,NULL 53153,125953,1259033,NULL,NULL,NULL,0,NULL,NULL 53154,555083,725467,NULL,NULL,NULL,0,NULL,NULL 53155,10019165,1285614,Yearling,NULL,NULL,0,NULL,NULL 53156,65108,1285614,Yearling,NULL,NULL,0,NULL,NULL 53157,1146352,230941,Notable Question,NULL,NULL,0,NULL,NULL 53158,54587,697352,Yearling Self-Learner Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 53159,117181,539911,Good Question,NULL,NULL,0,NULL,NULL 53160,451345,491645,Nice Answer Good Answer Nice Answer Notable Question Great Answer Yearling Nice Answer Nice Answer Good Answer Nice Answer Enlightened c++ Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 53161,253957,125927,Critic Curious Nice Question Famous Question,NULL,NULL,0,NULL,NULL 53162,37547,141274,Great Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53163,360493,475387,NULL,NULL,NULL,0,NULL,NULL 53164,24186,232488,Good Answer Supporter Yearling Autobiographer,NULL,NULL,0,NULL,NULL 53165,513234,625529,NULL,NULL,NULL,0,NULL,NULL 53166,8695227,625529,NULL,NULL,NULL,0,NULL,NULL 53167,50900,61249,Yearling Notable Question Nice Question Notable Question Popular Question Notable Question Yearling Good Question Popular Question Custodian Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 53168,206902,700947,Commentator Documentation User,NULL,NULL,0,NULL,NULL 53169,454080,929233,Popular Question,NULL,NULL,0,NULL,NULL 53170,31643,896847,NULL,NULL,NULL,0,NULL,NULL 53171,1055556,1135553,Custodian Yearling Good Answer Nice Answer Excavator Caucus Constituent Critic Nice Answer Caucus Constituent Electorate Popular Question,NULL,NULL,0,NULL,NULL 53172,169164,1368464,NULL,NULL,NULL,0,NULL,NULL 53173,2712363,1323338,NULL,NULL,NULL,0,NULL,NULL 53174,3175,806240,NULL,NULL,NULL,0,NULL,NULL 53175,569832,882536,NULL,NULL,NULL,0,NULL,NULL 53176,19255,903564,Citizen Patrol Yearling Curious Caucus Constituent Yearling Excavator Notable Question Caucus Nice Answer Popular Question Documentation User Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53177,224464,1478494,Yearling Good Answer,NULL,NULL,0,NULL,NULL 53178,439935,1142970,Custodian Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Popular Question Popular Question Notable Question Nice Question linq Popular Question Good Question Nice Question Notable Question Popular Question Favorite Question Popular Question Good Question Popular Question Popular Question Notable Question Revival Notable Question Popular Question Famous Question Notable Question Popular Question Yearling Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Nice Answer Notable Question Good Question Notable Question Popular Question Notable Question Popular Question Good Question Notable Question .net Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Nice Answer Good Question Popular Question Electorate Nice Question Popular Question Nice Question Popular Question Necromancer Famous Question Popular Question Revival Necromancer Nice Answer Enlightened Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Necromancer,NULL,Compare two ListT objects for equality ignoring order list comparison equals pYet another list comparing question ppre codeList lt MyType gt list1 List lt MyType gt list2 code prepI need to check that they both have the same elements regardless of their position within the list Each strongMyType strong object may appear multiple times on list Is there built in function that checks this What if guarantee that each element appears only once in list pp strongEDIT strong Guys thanks for the answers but forgot to add something the number of occurrences of each element should be the same on both lists You may be interested in this post http www codeducky org engineering collection equality function which shows how to fix the null handling issues of the dictionary based solution while also improving performance Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623 Ali am showing toy case here to try to track down technical limitation or bug actually think that having query cancellation hang is quite large issue Imagine if one were trying to implement an SSMS like tool on top of ADO NET This would be big problem Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623 command timeout will cause the query to exit but only after the timeout expires In my use case it is appropriate for the timeout to be quite long and so am relying on cancellation to abort the query before that point if the operation ends up not being needed Again in the real case the loop is not truly infinite but takes sufficiently long to terminate under some conditions that this problem is noticeable Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623 ve hit this both when running unit tests through visual studio and via LinqPad In VS the stack trace suggests that the call to cancellationTokenSource Cancel is stuck in the method TdsParserStateObject Cancel Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623 ve added full stack traces to the post itself Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623 targeted NET and added call to the new RuntimeFeature class introduced in that version just to be sure it was definitely running see the same behavior with the hang in TPSO Cancel as the stack trace,1,Canceling query with while loop hangs forever net sql server async await cancellation pI am trying to use query cancellation via cancellation tokens to cancel long running complex query have found that in some cases not only does cancellation fail to halt the query but also the call to codeCancellationToken Cancel code hangs indefinitely Here is simple repro that replicates this behavior can be run in LinqPad ppre codevoid Main var cancellationTokenSource new CancellationTokenSource var blocked RunSqlAsync cancellationTokenSource Token blocked Wait TimeSpan FromSeconds Dump false blocked in SQL as expected cancellationTokenSource Cancel hangs forever Console WriteLine Finished calling Cancel blocked Wait public async Task RunSqlAsync CancellationToken cancellationToken var connectionString new SqlConnectionStringBuilder DataSource sqlexpress IntegratedSecurity true Pooling false ConnectionString using var connection new SqlConnection connectionString await connection OpenAsync ConfigureAwait false using var command connection CreateCommand command CommandText WHILE BEGIN DECLARE INT END command CommandTimeout Console WriteLine Running query await command ExecuteNonQueryAsync cancellationToken ConfigureAwait false code prepInterestingly the same query run in SqlServer Management Studio cancels instantly via the Cancel Executing Query button ppIs there some caveat to query cancellation where it cannot cancel tight WHILE loops ppMy version of SqlServer pblockquote pMicrosoft SQL Server 2012 11 2100 60 X64 Feb 10 2012 19 39 15 Copyright Microsoft Corporation Express Edition 64 bit on Windows NT Build 9200 blockquotepI am running on Windows 10 and NET codeEnvironment Version code is 30319 42000 pp strongEDIT strong ppSome additional information ppHere is the stack trace pulled from Visual Studio when codecancellationToken Cancel code hangs pp href https stack imgur com SuwWk png rel nofollow noreferrer img src https stack imgur com SuwWk png alt Cancel stack trace ppAnother thread is stuck here pp href https stack imgur com 3RPIi png rel nofollow noreferrer img src https stack imgur com 3RPIi png alt ExecuteNonQueryAsync stack trace ppAdditionally tried updating to SqlServer Express 2017 and am seeing the same behavior pp strongEDIT strong ppI ve filed this as bug with corefx href https github com dotnet corefx issues 26623 rel nofollow noreferrer https github com dotnet corefx issues 26623,NULL 53179,50540,219915,Nice Answer Popular Question Nice Answer Popular Question Yearling Famous Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53180,485007,841,Great Question Favorite Question Yearling Nice Answer Enlightened Yearling Good Question,NULL,NULL,0,NULL,NULL 53181,75625,13379,Popular Question Notable Question Famous Question Good Answer Popular Question Famous Question Nice Answer Famous Question Yearling Notable Question Caucus Nice Answer Great Answer Good Answer Nice Question Nice Answer Nice Answer Good Question Caucus Nice Question Famous Question Constituent Inquisitive Yearling Documentation User Good Question Notable Question Notable Question Caucus Nice Answer Constituent Nice Answer Nice Answer php Popular Question Yearling Nice Answer,NULL,pThis doesn directly answer your question but here generic function which will create URL that contains query string parameters The parameters names and values are safely escaped for inclusion in URL ppre codefunction buildUrl url parameters var qs for var key in parameters var value parameters key qs encodeURIComponent key encodeURIComponent value amp if qs length gt qs qs substring qs length chop off last amp url url qs return url example var url http example com var parameters name George Washington dob 17320222 console log buildUrl url parameters gt http www example com name George 20Washington amp dob 17320222 code pre Lol yeah didn know lot about Javascript at the time xD think was treating it like PHP array Feel free to refactor if you want pThis doesn directly answer your question but here generic function which will create URL that contains query string parameters The parameters names and values are safely escaped for inclusion in URL ppre codefunction buildUrl url parameters var qs for var key in parameters var value parameters key qs encodeURIComponent key encodeURIComponent value amp if qs length gt qs qs substring qs length chop off last amp url url qs return url example var url http example com var parameters name George Washington dob 17320222 console log buildUrl url parameters gt http www example com name George 20Washington amp dob 17320222 code pre Thanks for the edit Using InOrder to verify method calls with List object that changes java mockito pI have callback interface that has method which takes codeList code object want to use codeInOrder code to verify that the callback method is called the appropriate number of times in the correct order with the correct parameters ppThe problem is that Mockito seems to be getting confused because am passing the same codeList code object into the method and modifying it between invocations When call codeInOrder verify code want to verify the value of the codeList code object emat the time in which that method invocation was executed em pp strongCode strong ppre codepublic class Test public void test Callback callback Mockito mock Callback class InOrder inOrder Mockito inOrder callback List lt String gt list new ArrayList lt String gt note this List object is inaccessible from the unit test in my real use case callback foo name1 list list add value callback foo name2 list inOrder verify callback foo name1 Arrays lt String gt asList fails here inOrder verify callback foo name2 Arrays asList value interface Callback void foo String name List lt String gt list code prep strongError message strong ppre codeArgument are different Wanted callback onFoo Actual invocation has different arguments callback onFoo value code prepPassing strongcopy strong of the codeList code object into each callback method invocation makes the test pass But don want to create new codeList code every time the method is called ppI looked at the codeMockSettings code object you can pass into codeMockito mock code but didn see anything that might help pp href https stackoverflow com 24074218 This question is similar to mine But the solution does not verify the content of the collection that was passed into each method call it only verifies the fact that emsome collection em was passed into it codeanyCollectionOf code It verifies the emend result em but emnot the individual invocations em pp href https stackoverflow com 8505864 13379 This answer seemed to provide potential solution It uses codeArgumentCaptor code to capture the object that is passed into the method But when use it to verify the first method call it returns the codeList code object emafter all the modifications were made to it em thus failing the test need it to return codeList code object whose state matches the codeList code object state emat that precise invocation em ppre codeArgumentCaptor lt List gt argument ArgumentCaptor forClass List class inOrder verify callback foo Mockito eq name1 argument capture assertEquals Arrays asList argument getValue fails expected lt gt but was lt value gt inOrder verify callback foo Mockito eq name2 argument capture assertEquals Arrays asList value argument getValue code prepHow can get this test to pass without sacrificing any granularity Thank you Not ideal but it works,1,Using InOrder to verify method calls with List object that changes java mockito pI have callback interface that has method which takes codeList code object want to use codeInOrder code to verify that the callback method is called the appropriate number of times in the correct order with the correct parameters ppThe problem is that Mockito seems to be getting confused because am passing the same codeList code object into the method and modifying it between invocations When call codeInOrder verify code want to verify the value of the codeList code object emat the time in which that method invocation was executed em pp strongCode strong ppre codepublic class Test public void test Callback callback Mockito mock Callback class InOrder inOrder Mockito inOrder callback List lt String gt list new ArrayList lt String gt note this List object is inaccessible from the unit test in my real use case callback foo name1 list list add value callback foo name2 list inOrder verify callback foo name1 Arrays lt String gt asList fails here inOrder verify callback foo name2 Arrays asList value interface Callback void foo String name List lt String gt list code prep strongError message strong ppre codeArgument are different Wanted callback onFoo Actual invocation has different arguments callback onFoo value code prepPassing strongcopy strong of the codeList code object into each callback method invocation makes the test pass But don want to create new codeList code every time the method is called ppI looked at the codeMockSettings code object you can pass into codeMockito mock code but didn see anything that might help pp href https stackoverflow com 24074218 This question is similar to mine But the solution does not verify the content of the collection that was passed into each method call it only verifies the fact that emsome collection em was passed into it codeanyCollectionOf code It verifies the emend result em but emnot the individual invocations em pp href https stackoverflow com 8505864 13379 This answer seemed to provide potential solution It uses codeArgumentCaptor code to capture the object that is passed into the method But when use it to verify the first method call it returns the codeList code object emafter all the modifications were made to it em thus failing the test need it to return codeList code object whose state matches the codeList code object state emat that precise invocation em ppre codeArgumentCaptor lt List gt argument ArgumentCaptor forClass List class inOrder verify callback foo Mockito eq name1 argument capture assertEquals Arrays asList argument getValue fails expected lt gt but was lt value gt inOrder verify callback foo Mockito eq name2 argument capture assertEquals Arrays asList value argument getValue code prepHow can get this test to pass without sacrificing any granularity,NULL 53182,968344,1015664,NULL,NULL,NULL,0,NULL,NULL 53183,267588,1514339,NULL,NULL,NULL,0,NULL,NULL 53184,743535,1563184,NULL,NULL,NULL,0,NULL,NULL 53185,5101996,1563184,NULL,NULL,NULL,0,NULL,NULL 53186,20904,576325,NULL,NULL,NULL,0,NULL,NULL 53187,9432,449692,Good Question Good Answer Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53188,418471,1477514,NULL,NULL,NULL,0,NULL,NULL 53189,352664,216299,NULL,NULL,NULL,0,NULL,NULL 53190,381048,521097,Yearling Announcer Promoter Benefactor Notable Question Necromancer Yearling Enthusiast Nice Question,NULL,NULL,0,NULL,NULL 53191,478701,125684,Yearling Necromancer Necromancer Caucus Constituent Necromancer Census Yearling Announcer Caucus Announcer Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53192,1507774,1309358,Popular Question Popular Question Self-Learner Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53193,392741,740602,NULL,NULL,NULL,0,NULL,NULL 53194,296007,847885,NULL,NULL,NULL,0,NULL,NULL 53195,772762,696457,Critic Famous Question Caucus,NULL,NULL,0,NULL,NULL 53196,2700,165826,Notable Question Yearling Caucus Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 53197,663219,1217041,NULL,NULL,NULL,0,NULL,NULL 53198,3039776,1217041,NULL,NULL,NULL,0,NULL,NULL 53199,223917,225508,NULL,NULL,NULL,0,NULL,NULL 53200,459283,357359,Good Question Notable Question Notable Question Good Question Yearling Famous Question Favorite Question Notable Question Caucus Nice Answer Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 53201,45883,795079,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53202,115396,214347,Teacher Supporter,NULL,NULL,0,NULL,NULL 53203,50665,791827,NULL,NULL,NULL,0,NULL,NULL 53204,33896,1224902,NULL,NULL,NULL,0,NULL,NULL 53205,561476,166228,NULL,NULL,NULL,0,NULL,NULL 53206,3429523,756193,Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53207,135176,756193,Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53208,47304,4082,Good Question Yearling Nice Answer Popular Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 53209,155488,751657,NULL,NULL,NULL,0,NULL,NULL 53210,122886,997589,Autobiographer,NULL,NULL,0,NULL,NULL 53211,199172,1117692,NULL,NULL,NULL,0,NULL,NULL 53212,385963,773021,NULL,NULL,NULL,0,NULL,NULL 53213,520012,398764,NULL,NULL,NULL,0,NULL,NULL 53214,397557,1502692,NULL,NULL,NULL,0,NULL,NULL 53215,73057,1327327,Informed Notable Question,NULL,NULL,0,NULL,NULL 53216,256609,62505,Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Inquisitive Popular Question Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 53217,631995,1355008,NULL,NULL,NULL,0,NULL,NULL 53218,227426,887259,NULL,NULL,NULL,0,NULL,NULL 53219,3841086,887259,NULL,NULL,NULL,0,NULL,NULL 53220,83712,66771,Informed Enthusiast Nice Answer,NULL,NULL,0,NULL,NULL 53221,19623,130778,NULL,NULL,NULL,0,NULL,NULL 53222,485076,726250,NULL,NULL,NULL,0,NULL,NULL 53223,33709,154718,Cleanup Custodian Editor Scholar,NULL,NULL,0,NULL,NULL 53224,17956,1246248,Supporter Teacher Revival,NULL,NULL,0,NULL,NULL 53225,220347,126057,Yearling Good Answer Guru Editor Excavator Yearling,NULL,NULL,0,NULL,NULL 53226,1438802,126057,Yearling Good Answer Guru Editor Excavator Yearling,NULL,NULL,0,NULL,NULL 53227,59428,221906,Nice Question,NULL,NULL,0,NULL,NULL 53228,1507530,1535152,Commentator Curious Informed Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53229,904209,145440,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 53230,24440,174902,Revival Yearling Popular Question Nice Question Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53231,1474627,877199,NULL,NULL,NULL,0,NULL,NULL 53232,281767,1431239,Notable Question Yearling Revival Nice Answer Caucus Good Answer Constituent Notable Question Archaeologist Nice Answer Yearling Nice Answer Enlightened Caucus Constituent Documentation User Famous Question Good Answer Caucus Great Answer Guru Necromancer Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53233,173009,81385,Yearling,NULL,NULL,0,NULL,NULL 53234,111060,81385,Yearling,NULL,NULL,0,NULL,NULL 53235,54172,594325,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 53236,35868,544988,NULL,NULL,NULL,0,NULL,NULL 53237,312213,1108712,NULL,NULL,NULL,0,NULL,NULL 53238,413504,770030,Nice Answer Yearling Nice Question Necromancer Popular Question Yearling Popular Question Notable Question Curious Citizen Patrol,NULL,NULL,0,NULL,NULL 53239,274664,249143,Notable Question Documentation User,NULL,NULL,0,NULL,NULL 53240,549156,157775,NULL,NULL,NULL,0,NULL,NULL 53241,282271,567399,Yearling Yearling Populist Nice Answer Necromancer Nice Answer Yearling Good Answer Civic Duty Custodian,NULL,NULL,0,NULL,NULL 53242,3953,48424,Good Answer Good Answer Notable Question Nice Question Guru Notable Question Yearling Popular Question Popular Question Notable Question Nice Answer Nice Answer Yearling Popular Question Famous Question Benefactor,NULL,NULL,0,NULL,NULL 53243,113142,939791,NULL,NULL,NULL,0,NULL,NULL 53244,800441,1300622,NULL,NULL,NULL,0,NULL,NULL 53245,11230610,1300622,NULL,NULL,NULL,0,NULL,NULL 53246,218701,456560,NULL,NULL,NULL,0,NULL,NULL 53247,196028,882210,NULL,NULL,NULL,0,NULL,NULL 53248,283814,435793,NULL,NULL,NULL,0,NULL,NULL 53249,312108,1040949,Nice Question Notable Question Yearling Yearling Good Answer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53250,13896,1041291,NULL,NULL,NULL,0,NULL,NULL 53251,345671,1484405,NULL,NULL,NULL,0,NULL,NULL 53252,2558,614880,Yearling Nice Answer Good Question Good Answer Nice Question Popular Question Great Answer Necromancer Guru Yearling Good Answer Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 53253,77302,290514,Nice Answer Yearling Announcer Yearling Necromancer,NULL,NULL,0,NULL,NULL 53254,141436,1039892,NULL,NULL,NULL,0,NULL,NULL 53255,17473,43687,Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Great Answer Caucus Nice Answer Yearling Guru Great Answer Nice Answer Caucus Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 53256,16944,875151,NULL,NULL,NULL,0,NULL,NULL 53257,99416,162331,NULL,NULL,NULL,0,NULL,NULL 53258,580905,162331,NULL,NULL,NULL,0,NULL,NULL 53259,204903,1188369,NULL,NULL,NULL,0,NULL,NULL 53260,20643,101080,Civic Duty,NULL,NULL,0,NULL,NULL 53261,33237,260528,Nice Answer Yearling Good Answer Nice Answer Good Question Nice Question Informed Custodian Custodian Custodian Custodian Populist Yearling Popular Question Good Answer Investor Altruist Notable Question Nice Question Good Answer Yearling Great Answer Good Question,NULL,NULL,0,NULL,NULL 53262,11784,1233428,NULL,NULL,NULL,0,NULL,NULL 53263,452297,1309189,NULL,NULL,NULL,0,NULL,NULL 53264,560624,108381,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 53265,34748,272192,NULL,NULL,NULL,0,NULL,NULL 53266,530574,483720,NULL,NULL,NULL,0,NULL,NULL 53267,281996,369811,NULL,NULL,NULL,0,NULL,NULL 53268,803580,230666,NULL,NULL,NULL,0,NULL,NULL 53269,1230222,795516,Teacher,NULL,NULL,0,NULL,NULL 53270,692984,1154867,NULL,NULL,NULL,0,NULL,NULL 53271,1833885,1154867,NULL,NULL,NULL,0,NULL,NULL 53272,199770,120235,Notable Question,NULL,NULL,0,NULL,NULL 53273,244100,807306,Popular Question Notable Question Critic Yearling,NULL,NULL,0,NULL,NULL 53274,6568,621195,NULL,NULL,NULL,0,NULL,NULL 53275,19573,621195,NULL,NULL,NULL,0,NULL,NULL 53276,26825,248833,Yearling,NULL,NULL,0,NULL,NULL 53277,65221,463904,NULL,NULL,NULL,0,NULL,NULL 53278,494274,1195096,NULL,NULL,NULL,0,NULL,NULL 53279,153175,168212,Nice Answer Popular Question Nice Question Nice Question Good Question Notable Question Notable Question java Nice Answer Necromancer Popular Question Yearling Nice Answer Enlightened Great Answer Nice Question Nice Answer Famous Question Popular Question Popular Question Yearling Nice Answer Inquisitive Good Answer Good Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53280,227250,1397476,NULL,NULL,NULL,0,NULL,NULL 53281,888783,424370,Scholar Editor Tumbleweed,NULL,NULL,0,NULL,NULL 53282,70200,1004917,NULL,NULL,NULL,0,NULL,NULL 53283,21447,99356,Yearling Yearling,NULL,NULL,0,NULL,NULL 53284,237548,1484182,NULL,NULL,NULL,0,NULL,NULL 53285,109188,176101,NULL,NULL,NULL,0,NULL,NULL 53286,131954,579706,Tumbleweed,NULL,h3Pure jQuery solution h3p no jquery ui animate color needed ppIf all you want is that yellow flash effect without loading jquery color ppre codevar flash function elements var opacity 100 var color 255 255 20 has to be in this format since we use rgba var interval setInterval function opacity if opacity lt clearInterval interval elements css background rgba color opacity 100 30 code prepAbove script simply does 1s yellow fadeout perfect for letting the user know the element was was updated or something similar ppUsage ppre codeflash your element code pre Love this solution except the background doesn go back to what it used to be,0,NULL,NULL 53287,201616,578408,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 53288,1421778,1283058,NULL,NULL,NULL,0,NULL,NULL 53289,128396,4563,NULL,NULL,NULL,0,NULL,NULL 53290,66150,933951,Critic Good Answer Necromancer Yearling Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Yearling Good Answer Announcer Populist Yearling,NULL,NULL,0,NULL,NULL 53291,9924,241731,NULL,NULL,NULL,0,NULL,NULL 53292,963276,1267607,Popular Question Yearling Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53293,243036,1206293,NULL,NULL,NULL,0,NULL,NULL 53294,291461,1531094,Teacher Editor,NULL,NULL,0,NULL,NULL 53295,65383,102170,Yearling Revival Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 53296,299779,204802,NULL,NULL,NULL,0,NULL,NULL 53297,9846,843373,Critic,NULL,NULL,0,NULL,NULL 53298,79557,1306477,Yearling Notable Question Popular Question Nice Answer Nice Answer Yearling Nice Answer Good Answer Popular Question Popular Question Popular Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 53299,597544,966195,Necromancer,NULL,NULL,0,NULL,NULL 53300,225804,660017,Yearling,NULL,NULL,0,NULL,NULL 53301,305007,1058828,Tumbleweed Student,NULL,NULL,0,NULL,NULL 53302,132724,699444,NULL,NULL,NULL,0,NULL,NULL 53303,592465,1142074,Informed Student Popular Question Supporter,NULL,NULL,0,NULL,NULL 53304,926965,589083,NULL,NULL,NULL,0,NULL,NULL 53305,138216,1462546,NULL,NULL,NULL,0,NULL,NULL 53306,8681,18228,Popular Question Nice Question Nice Answer Enlightened Custodian Nice Question Yearling Nice Answer Popular Question Notable Question Good Answer Notable Question Yearling Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 53307,85972,38975,Notable Question Popular Question Nice Question Favorite Question Great Answer Popular Question Nice Answer Nice Question Popular Question Popular Question Nice Question Nice Answer Yearling Popular Question Famous Question Notable Question Nice Question Necromancer Announcer .net Famous Question Notable Question Favorite Question Nice Question Notable Question Notable Question Good Answer Notable Question Good Answer Announcer Yearling Good Question Popular Question Famous Question Popular Question Famous Question Popular Question Good Question Notable Question Yearling,NULL,How to stub exported function in ES6 javascript ecmascript pI have file foo js ppre codeexport function bar console log code prepAnd another file that uses foo js cap js ppre codeimport bar from foo export default gt Some logic that need to test bar code prepI have test js ppre codeimport cap from cap describe cap gt it should bar gt cap some code prepSomehow need override implementation of codebar code in test Is there any way to do this ppP use babel webpack and mocha In test actually need this to isolate cap functionality from bar for testing purposes How to stub exported function in ES6 javascript ecmascript pI have file foo js ppre codeexport function bar console log code prepAnd another file that uses foo js cap js ppre codeimport bar from foo export default gt Some logic that need to test bar code prepI have test js ppre codeimport cap from cap describe cap gt it should bar gt cap some code prepSomehow need override implementation of codebar code in test Is there any way to do this ppP use babel webpack and mocha 15 can actually use any if that matters,1,How to stub exported function in ES6 javascript ecmascript pI have file foo js ppre codeexport function bar console log code prepAnd another file that uses foo js cap js ppre codeimport bar from foo export default gt Some logic that need to test bar code prepI have test js ppre codeimport cap from cap describe cap gt it should bar gt cap some code prepSomehow need override implementation of codebar code in test Is there any way to do this ppP use babel webpack and mocha,NULL 53308,54970,479610,Notable Question Popular Question Notable Question Yearling Promoter Benefactor Taxonomist Custodian Nice Answer Notable Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53309,2355,69771,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53310,141905,789462,NULL,NULL,NULL,0,NULL,NULL 53311,70633,823969,NULL,NULL,NULL,0,NULL,NULL 53312,298200,172534,Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53313,88079,578980,NULL,NULL,NULL,0,NULL,NULL 53314,41855,1120924,NULL,NULL,NULL,0,NULL,NULL 53315,421928,895639,NULL,NULL,NULL,0,NULL,NULL 53316,135944,992317,NULL,NULL,NULL,0,NULL,NULL 53317,372879,1372460,NULL,NULL,NULL,0,NULL,NULL 53318,21219,515406,NULL,NULL,NULL,0,NULL,NULL 53319,113143,111332,Yearling Nice Answer Enlightened Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53320,273701,957210,NULL,NULL,NULL,0,NULL,NULL 53321,18266,602487,NULL,NULL,NULL,0,NULL,NULL 53322,136792,1106808,NULL,NULL,NULL,0,NULL,NULL 53323,45834,678086,NULL,NULL,NULL,0,NULL,NULL 53324,126232,394423,Notable Question Revival Yearling,NULL,NULL,0,NULL,NULL 53325,420547,1324289,NULL,NULL,NULL,0,NULL,NULL 53326,40404,34379,Good Answer,NULL,NULL,0,NULL,NULL 53327,28452,103909,Yearling Necromancer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 53328,34793,1321844,Nice Answer,NULL,NULL,0,NULL,NULL 53329,122050,204110,NULL,NULL,NULL,0,NULL,NULL 53330,2298385,189129,NULL,NULL,NULL,0,NULL,NULL 53331,436078,767270,NULL,NULL,NULL,0,NULL,NULL 53332,1553335,703146,Famous Question codeigniter Good Answer Favorite Question Yearling Guru Self-Learner Notable Question Famous Question Popular Question Popular Question Great Question Guru Yearling Popular Question Notable Question Popular Question Popular Question Yearling Good Answer Popular Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 53333,853889,454243,NULL,NULL,NULL,0,NULL,NULL 53334,200756,1502899,NULL,NULL,NULL,0,NULL,NULL 53335,38872,524675,NULL,NULL,NULL,0,NULL,NULL 53336,138121,982379,NULL,NULL,NULL,0,NULL,NULL 53337,9553755,435311,NULL,NULL,NULL,0,NULL,NULL 53338,440067,220940,Excavator Curious Documentation User Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53339,477011,951756,Commentator Tumbleweed Popular Question Scholar Notable Question Informed Autobiographer Nice Question,NULL,NULL,0,NULL,NULL 53340,165093,308909,NULL,NULL,NULL,0,NULL,NULL 53341,385413,950557,NULL,NULL,NULL,0,NULL,NULL 53342,87583,1001980,Yearling Self-Learner Famous Question,NULL,pI managed to achieve this by adding custom filter via Jekyll plugin system ppre code plugins shuffle rbmodule Jekyll module ShuffleFilter def shuffle array array shuffle end endendLiquid Template register filter Jekyll ShuffleFilter code prepAnd using ppre code assign shuffled array page array shuffle for in shuffled array lt gt lt gt endfor code pre using jekyll v3 all had to do was drop the custom filter into file in plugins eg plugins shuffle rb,0,NULL,NULL 53343,403377,891374,NULL,NULL,NULL,0,NULL,NULL 53344,2383342,188760,Necromancer ruby Guru Nice Answer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Custodian Nice Answer Nice Answer Enlightened Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 53345,140044,188760,Necromancer ruby Guru Nice Answer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Custodian Nice Answer Nice Answer Enlightened Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 53346,209550,228429,Nice Answer Notable Question Popular Question Nice Question Custodian Yearling Revival Announcer Civic Duty Great Answer Necromancer Yearling Guru Good Answer Organizer,NULL,NULL,0,NULL,NULL 53347,254311,1371679,NULL,NULL,NULL,0,NULL,NULL 53348,810045,1072724,Caucus Constituent Guru Yearling Good Answer Caucus Yearling Populist Custodian Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 53349,644422,1438431,NULL,NULL,NULL,0,NULL,NULL 53350,195710,675931,Nice Question Yearling,NULL,NULL,0,NULL,NULL 53351,248208,131076,Custodian Revival,NULL,NULL,0,NULL,NULL 53352,562882,1311289,Nice Question,NULL,NULL,0,NULL,NULL 53353,334528,1281665,Necromancer,NULL,NULL,0,NULL,NULL 53354,171518,1437866,NULL,NULL,NULL,0,NULL,NULL 53355,144891,528562,Yearling,NULL,NULL,0,NULL,NULL 53356,207975,1098841,Revival,NULL,NULL,0,NULL,NULL 53357,556831,355342,NULL,NULL,NULL,0,NULL,NULL 53358,422071,355342,NULL,NULL,NULL,0,NULL,NULL 53359,71239,1313370,NULL,NULL,NULL,0,NULL,NULL 53360,585025,1220003,NULL,NULL,NULL,0,NULL,NULL 53361,262920,199623,NULL,NULL,NULL,0,NULL,NULL 53362,103030,552927,Commentator Yearling Good Answer Custodian Revival,NULL,NULL,0,NULL,NULL 53363,210239,109544,NULL,NULL,NULL,0,NULL,NULL 53364,112041,288860,Yearling Nice Answer Yearling Revival Yearling Necromancer Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 53365,95107,1144770,Yearling,NULL,NULL,0,NULL,NULL 53366,202690,1144770,Yearling,NULL,NULL,0,NULL,NULL 53367,7212,5355,Favorite Question Popular Question Notable Question Yearling Nice Question Yearling Nice Answer Benefactor Great Question Yearling,NULL,NULL,0,NULL,NULL 53368,190742,155227,Popular Question Popular Question Famous Question Notable Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53369,486027,731486,Revival Custodian Custodian Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 53370,1381161,544413,NULL,NULL,NULL,0,NULL,NULL 53371,19633,975593,NULL,NULL,NULL,0,NULL,NULL 53372,68412,99220,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 53373,375054,542492,Commentator Popular Question,NULL,NULL,0,NULL,NULL 53374,425826,101849,Yearling Informed Popular Question Census Excavator Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 53375,34429,2535,Popular Question Notable Question Notable Question Popular Question Nice Answer Nice Question Popular Question Good Answer Good Question Famous Question Yearling Notable Question Notable Question Good Question Good Question ibm-midrange Popular Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Favorite Question Good Question Yearling Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 53376,36862,127763,NULL,NULL,NULL,0,NULL,NULL 53377,331056,780746,NULL,NULL,NULL,0,NULL,NULL 53378,761082,63998,Census,NULL,NULL,0,NULL,NULL 53379,6423,179675,Curious Necromancer Guru Yearling Good Answer Yearling Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 53380,267818,314425,Yearling Good Answer,NULL,NULL,0,NULL,NULL 53381,12022,117603,Popular Question Yearling Good Question ruby-on-rails Caucus Notable Question Popular Question Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Famous Question Popular Question Guru Good Question Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 53382,71169,475067,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Yearling Caucus Good Answer Census Nice Answer Guru Popular Question Announcer Caucus Notable Question Critic Yearling Enlightened Census Famous Question Announcer Good Answer Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 53383,1198834,57983,NULL,NULL,NULL,0,NULL,NULL 53384,82410,890388,Informed Autobiographer,NULL,NULL,0,NULL,NULL 53385,759281,133144,Nice Answer Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53386,8490,263069,NULL,NULL,NULL,0,NULL,NULL 53387,768043,511203,Autobiographer Custodian Custodian Critic Yearling Tenacious Caucus Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 53388,129829,805737,Popular Question Yearling Custodian Informed Necromancer Yearling Autobiographer Notable Question Nice Answer,NULL,pThe codeorder by code solution suggested by other answers is actually an extraordinarily bad thing to do for tables that have large numbers of rows It results in an codeORDER BY RAND code SQL query As an example here how mysql handles that the situation is not much different for other databases Imagine your table has one billion rows polliTo accomplish codeORDER BY RAND code it needs codeRAND code column to sort on liliTo do that it needs new table the existing table has no such column liliTo do that mysql creates new temporary table with the new columns and copies the existing ONE BILLION ROWS OF DATA into it liliAs it does so it does as you asked and runs rand for every row to fill in that value Yes you ve instructed mysql to GENERATE ONE BILLION RANDOM NUMBERS That takes while liliA few hours days later when it done it now has to sort it Yes you ve instructed mysql to SORT THIS ONE BILLION ROW WORST CASE ORDERED TABLE worst case because the sort key is random liliA few days weeks later when that done it faithfully grabs the two measly rows you actually needed and returns them for you Nice job li olpNote just for little extra gravy be aware that mysql will initially try to create that temp table in RAM When that exhausted it puts everything on hold to copy the whole thing to disk so you get that extra knife twist of an bottleneck for nearly the entire process ppDoubters should look at the generated query to confirm that it codeORDER BY RAND code then Google for order by rand with the quotes ppA much better solution is to trade that one emreally em expensive query for three cheap ones limit offset instead of codeORDER BY RAND code ppre codeimport randomlast MyModel objects count 1index1 random randint last Here one simple way to keep even distribution for index2 while still gauranteeing not to match index1 index2 random randint last if index2 index1 index2 lastMyObj1 MyModel objects all index1 MyObj2 MyModel objects all index2 code pre Screen don think so say 10 items so last and index1 also gets per your scenario Then index2 randint so it gets random number between and inclusive Since this excludes it is not possible for index1 and index2 to be equal so they are left as is with and some number respectively pThe codeorder by code solution suggested by other answers is actually an extraordinarily bad thing to do for tables that have large numbers of rows It results in an codeORDER BY RAND code SQL query As an example here how mysql handles that the situation is not much different for other databases Imagine your table has one billion rows polliTo accomplish codeORDER BY RAND code it needs codeRAND code column to sort on liliTo do that it needs new table the existing table has no such column liliTo do that mysql creates new temporary table with the new columns and copies the existing ONE BILLION ROWS OF DATA into it liliAs it does so it does as you asked and runs rand for every row to fill in that value Yes you ve instructed mysql to GENERATE ONE BILLION RANDOM NUMBERS That takes while liliA few hours days later when it done it now has to sort it Yes you ve instructed mysql to SORT THIS ONE BILLION ROW WORST CASE ORDERED TABLE worst case because the sort key is random liliA few days weeks later when that done it faithfully grabs the two measly rows you actually needed and returns them for you Nice job li olpNote just for little extra gravy be aware that mysql will initially try to create that temp table in RAM When that exhausted it puts everything on hold to copy the whole thing to disk so you get that extra knife twist of an bottleneck for nearly the entire process ppDoubters should look at the generated query to confirm that it codeORDER BY RAND code then Google for order by rand with the quotes ppA much better solution is to trade that one emreally em expensive query for three cheap ones limit offset instead of codeORDER BY RAND code ppre codeimport randomlast MyModel objects count 1index1 random randint last Here one simple way to keep even distribution for index2 while still gauranteeing not to match index1 index2 random randint last if index2 index1 index2 lastMyObj1 MyModel objects all index1 MyObj2 MyModel objects all index2 code pre not sure what the win is for doing that Unless of course your storage backend is optimized for this type of access in some way in which case more power to ya,0,NULL,NULL 53389,2973259,805737,Popular Question Yearling Custodian Informed Necromancer Yearling Autobiographer Notable Question Nice Answer,NULL,pThe codeorder by code solution suggested by other answers is actually an extraordinarily bad thing to do for tables that have large numbers of rows It results in an codeORDER BY RAND code SQL query As an example here how mysql handles that the situation is not much different for other databases Imagine your table has one billion rows polliTo accomplish codeORDER BY RAND code it needs codeRAND code column to sort on liliTo do that it needs new table the existing table has no such column liliTo do that mysql creates new temporary table with the new columns and copies the existing ONE BILLION ROWS OF DATA into it liliAs it does so it does as you asked and runs rand for every row to fill in that value Yes you ve instructed mysql to GENERATE ONE BILLION RANDOM NUMBERS That takes while liliA few hours days later when it done it now has to sort it Yes you ve instructed mysql to SORT THIS ONE BILLION ROW WORST CASE ORDERED TABLE worst case because the sort key is random liliA few days weeks later when that done it faithfully grabs the two measly rows you actually needed and returns them for you Nice job li olpNote just for little extra gravy be aware that mysql will initially try to create that temp table in RAM When that exhausted it puts everything on hold to copy the whole thing to disk so you get that extra knife twist of an bottleneck for nearly the entire process ppDoubters should look at the generated query to confirm that it codeORDER BY RAND code then Google for order by rand with the quotes ppA much better solution is to trade that one emreally em expensive query for three cheap ones limit offset instead of codeORDER BY RAND code ppre codeimport randomlast MyModel objects count 1index1 random randint last Here one simple way to keep even distribution for index2 while still gauranteeing not to match index1 index2 random randint last if index2 index1 index2 lastMyObj1 MyModel objects all index1 MyObj2 MyModel objects all index2 code pre Screen don think so say 10 items so last and index1 also gets per your scenario Then index2 randint so it gets random number between and inclusive Since this excludes it is not possible for index1 and index2 to be equal so they are left as is with and some number respectively pThe codeorder by code solution suggested by other answers is actually an extraordinarily bad thing to do for tables that have large numbers of rows It results in an codeORDER BY RAND code SQL query As an example here how mysql handles that the situation is not much different for other databases Imagine your table has one billion rows polliTo accomplish codeORDER BY RAND code it needs codeRAND code column to sort on liliTo do that it needs new table the existing table has no such column liliTo do that mysql creates new temporary table with the new columns and copies the existing ONE BILLION ROWS OF DATA into it liliAs it does so it does as you asked and runs rand for every row to fill in that value Yes you ve instructed mysql to GENERATE ONE BILLION RANDOM NUMBERS That takes while liliA few hours days later when it done it now has to sort it Yes you ve instructed mysql to SORT THIS ONE BILLION ROW WORST CASE ORDERED TABLE worst case because the sort key is random liliA few days weeks later when that done it faithfully grabs the two measly rows you actually needed and returns them for you Nice job li olpNote just for little extra gravy be aware that mysql will initially try to create that temp table in RAM When that exhausted it puts everything on hold to copy the whole thing to disk so you get that extra knife twist of an bottleneck for nearly the entire process ppDoubters should look at the generated query to confirm that it codeORDER BY RAND code then Google for order by rand with the quotes ppA much better solution is to trade that one emreally em expensive query for three cheap ones limit offset instead of codeORDER BY RAND code ppre codeimport randomlast MyModel objects count 1index1 random randint last Here one simple way to keep even distribution for index2 while still gauranteeing not to match index1 index2 random randint last if index2 index1 index2 lastMyObj1 MyModel objects all index1 MyObj2 MyModel objects all index2 code pre not sure what the win is for doing that Unless of course your storage backend is optimized for this type of access in some way in which case more power to ya,0,NULL,NULL 53390,969998,949015,Popular Question Yearling,NULL,NULL,0,NULL,NULL 53391,328469,450916,NULL,NULL,NULL,0,NULL,NULL 53392,240910,1274541,NULL,NULL,NULL,0,NULL,NULL 53393,127236,176490,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 53394,135723,673966,Yearling Famous Question Necromancer,NULL,NULL,0,NULL,NULL 53395,164890,170480,Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 53396,59538,187954,Popular Question Famous Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Question Notable Question Nice Question Nice Answer Enlightened Good Answer Revival Nice Answer Nice Answer Enlightened Announcer Nice Answer Yearling Good Answer Nice Answer Notable Question Popular Question Nice Answer Notable Question Good Answer Good Answer Guru Guru Nice Answer Enlightened objective-c Announcer Good Answer Yearling Guru Notable Question Notable Question Announcer Good Answer Good Answer Notable Question Nice Answer Enlightened Favorite Question Guru Yearling Nice Answer Enlightened Good Question Popular Question,NULL,NULL,0,NULL,NULL 53397,169556,99010,NULL,NULL,NULL,0,NULL,NULL 53398,62589,98632,Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 53399,120621,693536,Yearling Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 53400,2069031,693536,Yearling Popular Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 53401,1982959,1447303,Popular Question Necromancer Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53402,234144,1447303,Popular Question Necromancer Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53403,2330,72,Guru Yearling Good Answer Popular Question Nice Answer Electorate Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Question Yearling Guru,NULL,NULL,0,NULL,NULL 53404,291604,523245,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 53405,107917,1155214,Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 53406,57115,446203,Popular Question Yearling Notable Question Nice Question ruby-on-rails Popular Question Yearling Notable Question Good Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 53407,81804,136453,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53408,54687,1200473,NULL,NULL,NULL,0,NULL,NULL 53409,5078301,649555,Famous Question,NULL,NULL,0,NULL,NULL 53410,2910,4897,Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53411,109160,646782,NULL,NULL,NULL,0,NULL,NULL 53412,402733,37795,NULL,NULL,NULL,0,NULL,NULL 53413,819731,241226,NULL,NULL,NULL,0,NULL,NULL 53414,1595523,241226,NULL,NULL,NULL,0,NULL,NULL 53415,500270,711401,Yearling Revival Caucus Popular Question Popular Question Necromancer Popular Question Civic Duty Nice Answer Yearling Citizen Patrol Necromancer Yearling Custodian Informed Autobiographer Revival Popular Question Good Answer Announcer Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 53416,227092,440229,NULL,NULL,NULL,0,NULL,NULL 53417,65656,461007,NULL,NULL,NULL,0,NULL,NULL 53418,143677,708315,NULL,NULL,NULL,0,NULL,NULL 53419,42112,1379066,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53420,14901,931716,NULL,NULL,NULL,0,NULL,NULL 53421,506184,2848,Yearling,NULL,NULL,0,NULL,NULL 53422,122752,344467,Yearling Excavator Yearling Nice Answer google-chrome-extension Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 53423,519165,1274988,Yearling,NULL,NULL,0,NULL,NULL 53424,38678,328677,NULL,NULL,NULL,0,NULL,NULL 53425,269524,148464,NULL,NULL,NULL,0,NULL,NULL 53426,198899,189433,Good Answer Yearling Caucus Great Question Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 53427,239835,1144237,NULL,NULL,NULL,0,NULL,NULL 53428,503694,398462,NULL,NULL,NULL,0,NULL,NULL 53429,264299,26534,Yearling Popular Question Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53430,28928,109517,Yearling Popular Question Famous Question Announcer Good Question Notable Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 53431,186125,124839,Notable Question Guru Yearling Nice Answer Great Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 53432,66782,903010,Guru objective-c Yearling Guru Nice Answer Nice Answer Nice Question Nice Answer ios Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53433,279534,180804,NULL,NULL,NULL,0,NULL,NULL 53434,392584,370593,Great Answer Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 53435,461543,882413,NULL,NULL,NULL,0,NULL,NULL 53436,358776,897985,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53437,9127,793950,NULL,NULL,NULL,0,NULL,NULL 53438,627215,167205,Notable Question,NULL,NULL,0,NULL,NULL 53439,435860,914130,Caucus Constituent Student,NULL,NULL,0,NULL,NULL 53440,300186,34549,Nice Answer Announcer Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Good Answer Good Answer Nice Answer Necromancer Great Answer Nice Answer Enlightened Announcer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Question Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Necromancer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Announcer Good Answer Guru Good Answer Guru Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Yearling Announcer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Famous Question Announcer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Populist Great Answer Nice Answer Enlightened Great Answer Revival Nice Answer Enlightened Yearling Announcer,NULL,pI just now wrote log handler of my own that just feeds everything to the parent process via pipe ve only been testing it for ten minutes but it seems to work pretty well pp strongNote strong This is hardcoded to codeRotatingFileHandler code which is my own use case phrh2Update now maintains this approach as package available on Pypi see href https pypi python org pypi multiprocessing logging rel noreferrer multiprocessing logging on Pypi github at href https github com jruere multiprocessing logging rel noreferrer https github com jruere multiprocessing logging h2hrh2Update Implementation h2pThis now uses queue for correct handling of concurrency and also recovers from errors correctly ve now been using this in production for several months and the current version below works without issue ppre codefrom logging handlers import RotatingFileHandlerimport multiprocessing threading logging sys tracebackclass MultiProcessingLog logging Handler def init self name mode maxsize rotate logging Handler init self self handler RotatingFileHandler name mode maxsize rotate self queue multiprocessing Queue threading Thread target self receive daemon True start def setFormatter self fmt logging Handler setFormatter self fmt self handler setFormatter fmt def receive self while True try record self queue get self handler emit record except KeyboardInterrupt SystemExit raise except EOFError break except traceback print exc file sys stderr def send self self queue put nowait def format record self record ensure that exc info and args have been stringified Removes any chance of unpickleable things inside and possibly reduces message size sent over the pipe if record args record msg record msg record args record args None if record exc info dummy self format record record exc info None return record def emit self record try self format record record self send except KeyboardInterrupt SystemExit raise except self handleError record def close self self handler close logging Handler close self code pre someone just pointed me here that you made legit package so ve added it to the top thanks pORMs are poorly suited for explicit asynchronous programming that is where the programmer must produce explicit callbacks anytime something that uses network access occurs primary reason for this is that ORMs make extensive use of the href http www martinfowler com eaaCatalog lazyLoad html rel noreferrer lazy loading pattern which is more or less incompatible with explicit async Code that looks like this ppre codeuser Session query User first print user addresses code prepwill actually emit two separate queries one when you say codefirst code to load row and the next when you say codeuser addresses code in the case that the code addresses code collection isn already present or has been expired Essentially nearly every line of code that deals with ORM constructs might block on IO so you be in extensive callback spaghetti within seconds and to make matters worse the vast majority of those code lines won emactually em block on IO so all the overhead of connecting callbacks together for what would otherwise be simple attribute access operations will make your program vastly less efficient too ppA major issue with explicit asynchronous models is that they add tremendous Python function call overhead to complex systems not just on the user facing side like you get with lazy loading but on the internal side as well regarding how the system provides abstraction around the Python database API DBAPI For SQLAlchemy to even have basic async support would impose severe performance penalty on the vast majority of programs that don use async patterns and even those async programs that are not highly concurrent Consider SQLAlchemy or any other ORM or abstraction layer might have code like the following ppre codedef execute connection statement cursor connection cursor cursor execute statement results cursor fetchall cursor close return results code prepThe above code performs what seems to be simple operation executing SQL statement on connection But using fully async DBAPI like psycopg2 async extension the above code blocks on IO at least three times So to write the above code in explicit async style even when there no async engine in use and the callbacks aren actually blocking means the above outer function call becomes at least three function calls instead of one not including the overhead imposed by the explicit asynchronous system or the DBAPI calls themselves So simple application is automatically given penalty of 3x the function call overhead surrounding simple abstraction around statement execution And in Python href https stackoverflow com questions 1171166 how can profile sqlalchemy powered application 1175677 1175677 function call overhead is everything ppFor these reasons continue to be less than excited about the hype surrounding explicit async systems at least to the degree that some folks seem to want to go all async for everything like delivering web pages see node js recommend using implicit async systems instead most notably href http www gevent org rel noreferrer gevent where you get all the non blocking IO benefits of an asynchronous model and none of the structural verbosity downsides of explicit callbacks continue to try to understand use cases for these two approaches so puzzled by the appeal of the explicit async approach as solution to all problems as you see with node js we re using scripting languages in the first place to cut down on verbosity and code complexity and explicit async for simple things like delivering web pages seems to do nothing but add boilerplate that can just as well be automated by gevent or similar if blocking IO is even such problem in case like that plenty of high volume websites do fine with synchronous IO model Gevent based systems are production proven and their popularity is growing so if you like the code automation that ORMs provide you might also want to embrace the async IO scheduling automation that system like gevent provides pp strongUpdate strong Nick Coghlan pointed out his href http python notes boredomandlaziness org en latest pep ideas async programming html rel noreferrer great article on the subject of explicit vs implicit async which is also must read here And ve also been updated to the fact that href http hg python org peps diff 26a98d94bb4c pep 3156 txt l1 63 rel noreferrer pep 3156 now welcomes interoperability with gevent reversing its previously stated disinterest in gevent largely thanks to Nick article So in the future would recommend hybrid of Tornado using gevent for the database logic once the system of integrating these approaches is available Same answer as always Business and persistence logic has no need for non blocking IO If you are forced to use web framework that forces everything to be explicit async the best solution is Use normal web framework like flask or pyramid or short of that Use thread pool,0,NULL,NULL 53441,446923,261475,Yearling,NULL,NULL,0,NULL,NULL 53442,329062,1510665,NULL,NULL,NULL,0,NULL,NULL 53443,8267,234031,Good Answer Good Answer Guru Yearling Guru Famous Question Yearling,NULL,NULL,0,NULL,NULL 53444,1420018,41594,Yearling,NULL,NULL,0,NULL,NULL 53445,130820,361021,NULL,NULL,NULL,0,NULL,NULL 53446,127593,1191612,NULL,NULL,NULL,0,NULL,NULL 53447,1317426,1191612,NULL,NULL,NULL,0,NULL,NULL 53448,8042904,454963,NULL,NULL,NULL,0,NULL,NULL 53449,152801,466440,NULL,NULL,NULL,0,NULL,NULL 53450,518595,100304,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 53451,255015,1290855,NULL,NULL,NULL,0,NULL,NULL 53452,2341,1382210,Announcer Announcer,NULL,NULL,0,NULL,NULL 53453,303544,950566,Nice Question Civic Duty Announcer Necromancer Yearling Popular Question Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 53454,159686,157385,Announcer Announcer Census Caucus,NULL,NULL,0,NULL,NULL 53455,2728,134027,Critic,NULL,NULL,0,NULL,NULL 53456,48981,10232,Nice Question Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53457,135925,1082730,NULL,NULL,NULL,0,NULL,NULL 53458,128081,1227016,Yearling Citizen Patrol Nice Answer Popular Question Custodian Custodian Yearling Documentation User Good Answer Notable Question Census Enlightened Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53459,194479,16872,Popular Question Notable Question Popular Question Favorite Question Popular Question Yearling Good Question Yearling Favorite Question Notable Question Famous Question Famous Question Great Question Yearling,NULL,NULL,0,NULL,NULL 53460,15646,183929,Popular Question Notable Question Nice Answer Notable Question Notable Question Yearling Popular Question Good Question Notable Question Good Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 53461,2279,194811,Good Answer,NULL,NULL,0,NULL,NULL 53462,657239,37109,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 53463,4053,270572,Popular Question Yearling Nice Question Nice Question Good Question Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Good Question Notable Question Yearling Stellar Question Good Question Notable Question Famous Question Favorite Question Yearling Nice Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 53464,306059,484360,Popular Question Curious Caucus Famous Question Revival,NULL,NULL,0,NULL,NULL 53465,1338738,711863,Quorum Civic Duty,NULL,NULL,0,NULL,NULL 53466,45210,841174,Yearling,NULL,NULL,0,NULL,NULL 53467,717976,274070,NULL,NULL,NULL,0,NULL,NULL 53468,51568,148361,Nice Answer Enlightened Popular Question Notable Question Yearling Notable Question Popular Question Revival Good Question Popular Question Nice Question Nice Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Notable Question c# Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53469,583988,9188,Yearling Great Answer Editor Yearling Caucus Civic Duty Yearling,NULL,NULL,0,NULL,NULL 53470,343683,1086664,Revival Necromancer Critic Excavator Yearling,NULL,NULL,0,NULL,NULL 53471,395862,909951,NULL,NULL,NULL,0,NULL,NULL 53472,424203,348063,Yearling Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 53473,47983,483915,Necromancer,NULL,NULL,0,NULL,NULL 53474,625251,766447,NULL,NULL,NULL,0,NULL,NULL 53475,51035,114505,NULL,NULL,NULL,0,NULL,NULL 53476,35101,536583,Necromancer,NULL,NULL,0,NULL,NULL 53477,202957,362597,Notable Question,NULL,NULL,0,NULL,NULL 53478,9401,19357,Guru Necromancer Nice Answer Enlightened Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53479,321118,411885,Popular Question Teacher Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 53480,136316,192839,Good Answer Nice Answer Nice Answer Good Answer Guru Good Answer Nice Answer numpy Enlightened Nice Answer Good Answer Nice Answer Good Answer Yearling Great Answer Good Answer Nice Answer Good Answer Nice Answer Populist python-3.x Good Answer Nice Answer Good Answer Populist Great Answer Nice Answer Enlightened Good Answer Necromancer Good Answer Nice Answer Good Answer Nice Answer Yearling Good Answer Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Announcer Good Answer Good Answer Nice Answer Guru Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 53481,65529,186766,Yearling Famous Question,NULL,NULL,0,NULL,NULL 53482,25871,1341871,NULL,NULL,NULL,0,NULL,NULL 53483,119155,800485,NULL,NULL,NULL,0,NULL,NULL 53484,185332,491519,NULL,NULL,NULL,0,NULL,NULL 53485,83407,453418,Critic Autobiographer Citizen Patrol Yearling Necromancer Yearling Caucus Constituent Revival,NULL,NULL,0,NULL,NULL 53486,463205,630657,Popular Question Nice Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 53487,71512,768760,Notable Question,NULL,NULL,0,NULL,NULL 53488,862295,705589,Popular Question Necromancer Notable Question Yearling Famous Question Nice Question Yearling Nice Question Nice Answer Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53489,8867,556910,NULL,NULL,NULL,0,NULL,NULL 53490,357498,1461034,NULL,NULL,NULL,0,NULL,NULL 53491,317182,544981,NULL,NULL,NULL,0,NULL,NULL 53492,528825,633538,NULL,NULL,NULL,0,NULL,NULL 53493,978069,1011894,NULL,NULL,NULL,0,NULL,NULL 53494,385725,401765,NULL,NULL,NULL,0,NULL,NULL 53495,1033736,1397376,Supporter Necromancer Editor Tumbleweed Nice Answer Scholar,NULL,NULL,0,NULL,NULL 53496,724825,559316,Nice Question Popular Question Yearling Nice Question Popular Question Popular Question Yearling Nice Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 53497,283867,102182,Good Answer Yearling Good Answer Revival Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Pundit Student Good Answer Great Answer Good Answer Guru Peer Pressure Announcer Yearling Good Answer Nice Answer Scholar Great Answer,NULL,Prevent cursor from moving back one character on insert mode exit vim cursor position how would you do it pptask for extra credit figure out way to force vim to refresh the cursor position immediately after exiting insert mode My guess is because vi didn let you put the cursor past the end of the line Luckily vim has the virtualedit option to fix that oddity as well code file txt code doesn check its size it checks that the string codefile txt code is non zero length so it will always succeed ppIf you want to say size is non zero you need code file txt code ppTo get file size you can use codewc code to get the size file length in bytes ppre codefile file txtminimumsize 90000actualsize wc lt file if actualsize ge minimumsize then echo size is over minimumsize byteselse echo size is under minimumsize bytesfi code prepIn this case it sounds like that what you want ppBut FYI if you want to know how much disk space the file is using you could use codedu code to get the size disk space used in kilobytes ppre codefile file txtminimumsize 90actualsize du file cut if actualsize ge minimumsize then echo size is over minimumsize kilobyteselse echo size is under minimumsize kilobytesfi code prepIf you need more control over the output format you can also look at codestat code On Linux you start with something like codestat file txt code and on BSD Mac OS something like codestat file txt code On my Linux system wc filename also uses fstat and seek Note that fstat takes an fd not pathname,0,NULL,NULL 53498,47575,51372,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 53499,106572,110915,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Excavator javascript Great Answer Good Answer Popular Question Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Curious Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Guru Yearling Revival Nice Answer Custodian Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Organizer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling firebase-realtime-database Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53500,35430,64941,Good Answer Yearling Revival Yearling Notable Question Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 53501,71743,665845,Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 53502,54936,5775,Yearling Popular Question Yearling Notable Question Self-Learner Notable Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53503,109776,587955,NULL,NULL,NULL,0,NULL,NULL 53504,538590,213787,NULL,NULL,NULL,0,NULL,NULL 53505,1347864,1110817,NULL,NULL,NULL,0,NULL,NULL 53506,755818,1449175,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53507,1261219,112733,Excavator Popular Question Student,NULL,NULL,0,NULL,NULL 53508,236357,112733,Excavator Popular Question Student,NULL,NULL,0,NULL,NULL 53509,415878,113359,Caucus Caucus,NULL,NULL,0,NULL,NULL 53510,40859,495147,Notable Question Self-Learner Commentator Excavator Scholar Yearling Critic Revival,NULL,NULL,0,NULL,NULL 53511,148568,945463,NULL,NULL,NULL,0,NULL,NULL 53512,95811,998121,NULL,NULL,NULL,0,NULL,NULL 53513,24409,501205,NULL,NULL,NULL,0,NULL,NULL 53514,178493,631491,NULL,NULL,NULL,0,NULL,NULL 53515,342955,1118439,NULL,NULL,NULL,0,NULL,NULL 53516,679595,693399,Commentator Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 53517,578003,440934,Popular Question Notable Question Popular Question Notable Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 53518,13310,577757,Notable Question Critic Popular Question Nice Answer Favorite Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53519,155599,41674,Yearling Popular Question Notable Question Popular Question Good Question Popular Question Popular Question Nice Question Yearling Caucus Notable Question Notable Question Popular Question Popular Question Caucus Popular Question Popular Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 53520,6333747,17180,Famous Question,NULL,NULL,0,NULL,NULL 53521,438255,718051,Yearling Critic Necromancer Necromancer,NULL,NULL,0,NULL,NULL 53522,214343,1376509,Teacher Tumbleweed,NULL,NULL,0,NULL,NULL 53523,717022,1210134,Yearling,NULL,NULL,0,NULL,NULL 53524,196119,655939,NULL,NULL,NULL,0,NULL,NULL 53525,352561,1324999,Yearling Student Scholar Nice Answer,NULL,NULL,0,NULL,NULL 53526,402127,812335,Yearling Good Question Yearling Famous Question Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 53527,101870,284538,Popular Question Popular Question Yearling Popular Question Popular Question java Popular Question javascript Nice Answer Enlightened Notable Question Good Answer Good Answer Great Answer Excavator Yearling Popular Question Popular Question Notable Question Good Question Notable Question Famous Question Popular Question Civic Duty Famous Question Notable Question Good Question Nice Answer Enlightened Popular Question Nice Answer Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Good Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53528,37220,20394,Great Answer Nice Answer Guru Good Answer Guru Self-Learner Nice Answer Great Answer Custodian Announcer Popular Question Necromancer Guru Good Answer Popular Question Promoter Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer Guru Revival Yearling Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Caucus Constituent Great Answer security Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Announcer Guru Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Good Answer Good Answer Nice Answer Good Answer Popular Question Guru Nice Answer Yearling Nice Answer Nice Answer Enlightened Great Answer Great Answer Census Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Announcer Announcer Caucus Constituent Nice Answer Nice Answer Revival Great Answer Nice Answer Announcer Nice Answer Guru Nice Answer Favorite Question Nice Answer Nice Answer Great Answer Yearling Great Answer Famous Question Nice Answer,NULL,pA regular expression to match regular expression is ppre code im mi gm mg gi ig code prepTo break it down polli code code matches literal code code lili code code is necessary because code code starts comment not regular expression lili code code matches any non escape sequence character and non start of character group lili code code matches character group which can contain an un escaped code code lili code code matches prefix of an escape sequence lili code code is necessary because code code is line comment not regular expression lili code code matches any combination of non repeating regular expression flags So ugly li olpThis doesn attempt to pair parentheses or check that repetition modifiers are not applied to themselves but filters out most of the other ways that regular expressions fail to syntax check ppIf you need one that matches just the body just strip off everything else ppre code code prepor alternatively add code code at the beginning and end of your input this pattern is not meant to lex JS It would also spuriously match in JS doesn have regular lexical grammar so this is not problem with this regex No regex will correctly split an arbitrary JS program into tokens pre codefunction decimalPlaces num var match num match eE if match return return Math max Number of digits right of decimal point match match length Adjust for scientific notation match match code prepThe extra complexity is to handle scientific notation so pblockquotepre codedecimalPlaces 05 2decimalPlaces 1decimalPlaces 0decimalPlaces 25e 100 100decimalPlaces 5e 99 100decimalPlaces 5e1 0decimalPlaces 25e1 code pre blockquote seems like it always surprised when find that disagree with myself pUpdate 2016 There is now href https github com google closure library blob master closure goog html sanitizer htmlsanitizer js rel noreferrer Google Closure package based on the Caja sanitizer ppIt has cleaner API was rewritten to take into account APIs available on modern browsers and interacts better with Closure Compiler phrpShameless plug see href https github com google caja blob master src com google caja plugin html sanitizer js rel noreferrer caja plugin html sanitizer js for client side html sanitizer that has been thoroughly reviewed ppIt is white listed not black listed but the whitelists are configurable as per href https github com google caja wiki CajaWhitelists rel noreferrer CajaWhitelists phrpIf you want to remove all tags then do the following ppre codevar tagBody gt var tagOrComment new RegExp lt Comment body gt Special raw text elements whose content should be elided script tagBody gt lt script style tagBody gt lt style Regular name tagBody gt gi function removeTags html var oldHtml do oldHtml html html html replace tagOrComment while html oldHtml return html replace lt amp lt code prepPeople will tell you that you can create an element and assign codeinnerHTML code and then get the codeinnerText code or codetextContent code and then escape entities in that Do not do that It is vulnerable to XSS injection since code lt img src bogus onerror alert 1337 gt code will run the codeonerror code handler even if the node is never attached to the DOM that would convert bfoo to lt gt foo lt gt right That probably would not solve the OP problem pIf codewindow external code is host object or from some extension mechanism that doesn want its prototype exposed to page logic then it may be function but may not have the usual codecall code and apply members Luckily you can call codecall code and apply codeapply code ppre codeFunction prototype apply call window external null argumentsToExtension code prepor to be really meta ppre codeFunction prototype apply apply window external null argumentsToExtension code prepwhere codenull code is what is passed as the value of codethis code which should be interpreted as codewindow code by the usual call apply rules ppEDIT ppIf that doesn work you can always fall back to the triangle of hackery ppre codefunction triangleOfHackery obj methodName args switch args length case return obj methodName case return obj methodName args case return obj methodName args args case return obj methodName args args args code pre that only allows passing arguments that can be serialized so is not general solution pA lot of the things you need to do to minimize GC churn go against what is considered idiomatic JS in most other scenarios so please keep in mind the context when judging the advice give ppAllocation happens in modern interpreters in several places polliWhen you create an object via codenew code or via literal syntax code code or code code liliWhen you concatenate strings liliWhen you enter scope that contains function declarations liliWhen you perform an action that triggers an exception liliWhen you evaluate function expression code function code liliWhen you perform an operation that coerces to Object like codeObject myNumber code or codeNumber prototype toString call 42 code liliWhen you call builtin that does any of these under the hood like codeArray prototype slice code liliWhen you use codearguments code to reflect over the parameter list liliWhen you split string or match with regular expression li olpAvoid doing those and pool and reuse objects where possible ppSpecifically look out for opportunities to polliPull inner functions that have no or few dependencies on closed over state out into higher longer lived scope Some code minifiers like href https developers google com closure compiler Closure compiler can inline inner functions and might improve your GC performance liliAvoid using strings to represent structured data or for dynamic addressing Especially avoid repeatedly parsing using codesplit code or regular expression matches since each requires multiple object allocations This frequently happens with keys into lookup tables and dynamic DOM node IDs For example codelookupTable foo code and codedocument getElementById foo code both involve an allocation since there is string concatenation Often you can attach keys to long lived objects instead of re concatenating Depending on the browsers you need to support you might be able to use href https developer mozilla org en US docs Web JavaScript Reference Global Objects Map codeMap code to use objects as keys directly liliAvoid catching exceptions on normal code paths Instead of codetry op catch code do codeif opCouldFailOn op else code liliWhen you can avoid creating strings to pass message to server use builtin like codeJSON stringify code which uses an internal native buffer to accumulate content instead of allocating multiple objects liliAvoid using callbacks for high frequency events and where you can pass as callback long lived function see that recreates state from the message content liliAvoid using codearguments code since functions that use that have to create an array like object when called li olpI suggested using codeJSON stringify code to create outgoing network messages Parsing input messages using codeJSON parse code obviously involves allocation and lots of it for large messages If you can represent your incoming messages as arrays of primitives then you can save lot of allocations The only other builtin around which you can build parser that does not allocate is codeString prototype charCodeAt code parser for complex format that only uses that is going to be hellish to read though The allocates the array The arr does not do any allocations since what is assigned is reference You have to be careful about assigning to array elements when the array is shared with other code The javascript var arrayX var arrayY arrayX arrayX console log arrayY is quite different from the superficially similar perl program my my arrayX print pThe regex code lt gt code should work ppYou re going to kill href http dev w3 org html5 markup aria syntax html escaping text span rel noreferrer escaping text spans in CDATA blocks ppE ppre code lt script gt lt notACommentHere gt lt script gt code prepand literal text in formatted code blocks ppre code lt xmp gt demoing HTML lt comments gt lt xmp gt lt textarea gt lt Not comment either gt lt textarea gt code prepEDIT ppThis also won prevent new comments from being introduced as in ppre code lt lt comment gt not comment text gt code prepwhich after one round of that regexp would become ppre code lt not comment text gt code prepIf this is problem you can escape code lt code that are not part of comment or tag complicated to get right or you can loop and replace as above until the string settles down phrpHere regex that will match comments including href http dev w3 org html5 spec LC tokenization html markup declaration open state rel noreferrer psuedo comments and unclosed comments per the HTML spec The CDATA section are only strictly allowed in foreign XML This suffers the same caveats as above ppre codevar COMMENT PSEUDO COMMENT OR LT BANG new RegExp lt gt lt gt comment with no body lt dD oO cC tT yY pP eE CDATA gt gt lt gt gt pseudo comment code pre Thanks Fixed think,1,Using XmlPlexusConfiguration to import more configuration for bean style Maven extension java maven configuration plexus pI have Maven extension that ve set up to be configured from POM configuration object where ppre class lang xml prettyprint override code lt configuration gt lt foo gt lt foo gt lt bar gt lt bar gt lt configuration gt code prepends up calling ppre codesetFoo setBar code prepmethods ppI like to allow configurations to import extra configuration to allow propose amp second style of delegation so ppre class lang xml prettyprint override code lt configuration gt lt import gt lt import gt lt bar gt lt bar gt lt configuration gt code prepwhere the artifact has file emMETA INF my project name xml em with content code lt configuration gt lt foo gt lt foo gt lt configuration gt code ppI like the combination of the code lt configuration gt code with the import and that XML file to generate the same calls to setters as above phrpUsing ppre codeimport org codehaus plexus component configurator ComponentConfigurator import org codehaus plexus configuration PlexusConfiguration import org codehaus plexus configuration xml XmlPlexusConfiguration import org codehaus plexus util xml Xpp3Dom import org codehaus plexus util xml Xpp3DomBuilder code prepwith ppre class lang xml prettyprint override code lt dependency gt lt groupId gt org codehaus plexus lt groupId gt lt artifactId gt plexus container default lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt org codehaus plexus lt groupId gt lt artifactId gt plexus classworlds lt artifactId gt lt version gt lt version gt lt dependency gt code prepI ve written the following to try and parse configuration from an XML file and then invoke the configurator to configure my Maven extension ppre code PlexusConfiguration configuration try configuration loadConfiguration log cr get EXTRA CONFIGURATION XML RELATIVE PATH catch IOException ex throw new EnforcerRuleException Failed to load EXTRA CONFIGURATION XML RELATIVE PATH from artifactId ex TODO is this right Newer versions have MavenProject getClassRealm says Warning This is an internal utility method that is only public for technical reasons it is not part of the public API In particular this method can be changed or deleted without prior notice and must not be used by plugins ClassRealm realm null try configurator configureComponent configurable configuration realm catch ComponentConfigurationException ex throw new EnforcerRuleException Failed to process configuration EXTRA CONFIGURATION XML RELATIVE PATH from artifactId ex code prepwhere codeconfigurable code is just the codeObject code with setters and codeconfiguration code is an codeXmlPlexusConfiguration code loaded thus ppre codestatic XmlPlexusConfiguration loadConfiguration Log log ClassRoot cr String path throws EnforcerRuleException IOException log debug Loading path from cr art getId File classRootFile cr classRoot if classRootFile null throw new EnforcerRuleException Cannot import configuration from unresolved artifact art getId Xpp3Dom dom cr readRelativePath path new ClassRoot IOConsumer lt InputStream Xpp3Dom gt public Xpp3Dom read InputStream is throws IOException try return Xpp3DomBuilder build is UTF true catch XmlPullParserException ex throw new IOException Malformed XML ex finally is close return new XmlPlexusConfiguration dom code prepI acquire the codeComponentConfigurator code via ppre code configurator ComponentConfigurator helper getComponent ComponentConfigurator class code prehrpWhen run this get ppre codeorg codehaus plexus component configurator ComponentConfigurationException Component does not implement interface org codehaus plexus component MapOrientedComponent at org codehaus plexus component configurator MapOrientedComponentConfigurator configureComponent MapOrientedComponentConfigurator java 41 at org codehaus plexus component configurator AbstractComponentConfigurator configureComponent AbstractComponentConfigurator java 44 at org codehaus plexus component configurator AbstractComponentConfigurator configureComponent AbstractComponentConfigurator java 37 at com google security fences ConfigurationImport configure ConfigurationImport java 70 at com google security fences FencesMavenEnforcerRule execute FencesMavenEnforcerRule java 146 at org apache maven plugins enforcer EnforceMojo execute EnforceMojo java 193 code prepIs there some way to bridge MapOrientedComponents and the bean style reflective setter invocation used to configure my extension ppOr is there better way to turn the text of an XML file into additional configuration operations phrpEDIT ppAfter bit more digging it looks like ppre codeconfigurator ComponentConfigurator helper getComponent ComponentConfigurator class code prepreturns codeMapOrientedComponentConfigurator code when run it via the integration test codeVerifier code causing the failure but when do not it produces different amp compatible kind of configurator ppThe difference 100 repeatable is whether run with code code or not to cause the logger to produce debug trace,NULL 53529,239791,257250,Yearling Popular Question Nice Answer Great Answer Notable Question Yearling Self-Learner Guru Nice Answer Nice Answer sql Popular Question Yearling Nice Answer Enlightened Famous Question Good Answer,NULL,NULL,0,NULL,NULL 53530,19745,102699,Notable Question Popular Question Good Answer Yearling Nice Question Great Answer Nice Answer Notable Question Nice Answer Announcer Announcer Announcer Yearling Guru Electorate Announcer Yearling,NULL,NULL,0,NULL,NULL 53531,485326,494469,NULL,NULL,NULL,0,NULL,NULL 53532,371483,502139,Tumbleweed Yearling Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 53533,347774,1262228,Notable Question,NULL,NULL,0,NULL,NULL 53534,179304,285374,Enlightened Good Answer Yearling Nice Answer Enlightened Notable Question Popular Question Revival Cleanup Nice Answer Enlightened Yearling Nice Question Nice Answer Enlightened Good Answer Notable Question Announcer Notable Question Popular Question Guru Nice Answer Yearling Necromancer Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 53535,364380,434523,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 53536,799475,1474014,NULL,NULL,NULL,0,NULL,NULL 53537,74617,534514,Commentator Yearling Necromancer Critic Yearling Tenacious Yearling Yearling Unsung Hero Yearling Enthusiast Yearling,NULL,NULL,0,NULL,NULL 53538,1116686,387203,Popular Question Electorate Good Question Notable Question Caucus Constituent Yearling Self-Learner Popular Question Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 53539,127400,71116,Yearling Notable Question Yearling Necromancer Revival Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 53540,85688,889113,Popular Question Nice Question Popular Question Critic Nice Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 53541,1067050,833259,NULL,NULL,NULL,0,NULL,NULL 53542,2603528,66348,Yearling Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 53543,729649,634118,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 53544,22728,244037,Caucus Constituent Critic Necromancer,NULL,NULL,0,NULL,NULL 53545,519105,591304,Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Self-Learner Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 53546,892214,1148343,Popular Question,NULL,NULL,0,NULL,NULL 53547,369022,300575,Nice Question Popular Question Yearling Famous Question Popular Question Great Question Notable Question Custodian Excavator Favorite Question Famous Question Yearling Popular Question Notable Question Famous Question Popular Question Nice Answer Caucus Yearling Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 53548,448468,1417922,Nice Answer Yearling Nice Answer Announcer Yearling Good Answer Good Answer Announcer Good Answer Yearling Citizen Patrol Caucus Necromancer Custodian Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 53549,1503866,892822,NULL,NULL,NULL,0,NULL,NULL 53550,344224,197338,Famous Question Yearling Favorite Question Popular Question Good Question Custodian Custodian Custodian Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53551,237838,1296037,Teacher Popular Question Yearling Popular Question Caucus Popular Question Popular Question Nice Question Notable Question,NULL,,0,, 53552,1071865,593839,NULL,NULL,NULL,0,NULL,NULL 53553,479613,157295,NULL,NULL,NULL,0,NULL,NULL 53554,19942,751448,Explainer Yearling Guru Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53555,7112500,969865,NULL,NULL,NULL,0,NULL,NULL 53556,5480557,1184244,NULL,NULL,NULL,0,NULL,NULL 53557,90180,131320,Notable Question Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53558,454718,967527,Informed,NULL,NULL,0,NULL,NULL 53559,399099,879451,Popular Question,NULL,NULL,0,NULL,NULL 53560,22895,404032,Nice Question Great Answer Nice Answer Enlightened Yearling Yearling Yearling,NULL,,0,, 53561,199151,516755,Notable Question Commentator,NULL,NULL,0,NULL,NULL 53562,449706,847972,NULL,NULL,NULL,0,NULL,NULL 53563,74922,390947,NULL,NULL,NULL,0,NULL,NULL 53564,77902,805704,Good Question Notable Question Popular Question Notable Question Notable Question Yearling Nice Question Good Answer Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 53565,201707,547276,Yearling Necromancer,NULL,NULL,0,NULL,NULL 53566,48452,835295,Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 53567,486684,1521333,Curious Informed Notable Question,NULL,NULL,0,NULL,NULL 53568,47114,109274,Populist Yearling Custodian Custodian Explainer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 53569,442463,788159,NULL,NULL,NULL,0,NULL,NULL 53570,316177,596538,Revival Commentator Popular Question Popular Question Notable Question Caucus Famous Question Popular Question,NULL,NULL,1,NULL,MongoException on URL format when attempting connection to MongoLab spring mongodb grails morphia mlab pI have Grails app that is using MongoLab as it database was previously connecting to the db using mongo plugin for GORM href https grails org plugin mongodb rel nofollow noreferrer see plugin here That has been less then good experience so am in the process of switching over to Morpia and away from GORM for mongodb ppI currently have morphia library version as compile time dependency in the project have created user in Mongolab with username username and password pass not actual creds ppI am attempting the connect to the database using MongoClient have been looking at the documentation href https mongodb github io node mongodb native driver articles mongoclient html rel nofollow noreferrer documentation here and have also referenced href https stackoverflow com questions 15052074 connecting mongodb created in mongolab through java application this question but it is using the old way of connecting ppHere is my error even though don see reason why this error is being thrown because the format of my string appears to be correct ppre codeERROR context GrailsContextLoaderListener Error initializing the application Error creating bean with name datastore Cannot resolve reference to bean mongoClient while setting constructor argument nested exception is org springframework beans factory BeanCreationException Error creating bean with name mongoClient Instantiation of bean failed nested exception is org springframework beans BeanInstantiationException Could not instantiate bean class com mongodb MongoClient Constructor threw exception nested exception is com mongodb MongoException host and port should be specified in host port formatMessage Error creating bean with name datastore Cannot resolve reference to bean mongoClient while setting constructor argument nested exception is org springframework beans factory BeanCreationException Error creating bean with name mongoClient Instantiation of bean failed nested exception is org springframework beans BeanInstantiationException Could not instantiate bean class com mongodb MongoClient Constructor threw exception nested exception is com mongodb MongoException host and port should be specified in host port formatLine Method gt gt 262 run in java util concurrent FutureTask 1145 runWorker in java util concurrent ThreadPoolExecutor 615 run in java util concurrent ThreadPoolExecutor Worker 745 run in java lang ThreadCaused by BeanCreationException Error creating bean with name mongoClient Instantiation of bean failed nested exception is org springframework beans BeanInstantiationException Could not instantiate bean class com mongodb MongoClient Constructor threw exception nested exception is com mongodb MongoException host and port should be specified in host port format gt gt 262 run in java util concurrent FutureTask 1145 runWorker in java util concurrent ThreadPoolExecutor 615 run in java util concurrent ThreadPoolExecutor Worker 745 run in java lang ThreadCaused by BeanInstantiationException Could not instantiate bean class com mongodb MongoClient Constructor threw exception nested exception is com mongodb MongoException host and port should be specified in host port format gt gt 262 run in java util concurrent FutureTask 1145 runWorker in java util concurrent ThreadPoolExecutor 615 run in java util concurrent ThreadPoolExecutor Worker 745 run in java lang ThreadCaused by MongoException host and port should be specified in host port format gt gt 122 lt init gt in com mongodb ServerAddress 49 lt init gt in 118 lt init gt in com mongodb MongoClient 262 run in java util concurrent FutureTask 1145 runWorker in java util concurrent ThreadPoolExecutor 615 run in java util concurrent ThreadPoolExecutor Worker 745 run in java lang Thread Error Forked Grails VM exited with error code prepHere is code snipplet that have in resources groovy where am attempting the register the MongoClient Morphia and my datastore as spring beans ppre codebeans String databaseUrl mongodb username pass mongolab com 12345 trendapp fake portString databaseName trendapp mongoClient MongoClient databaseUrl morphia Morphia datastore Datastore ref mongoClient databaseName bean gt bean factoryBean morphia bean factoryMethod createDatastore code prepAny help is appreciated thank you pYou should provide the MongoClient with MongoClientURI ppre codeMongoClientURI mongoClientURI new MongoClientURI connection string MongoClient mongoClient new MongoClient mongoClientURI code pre 53571,1143186,10793,Notable Question Notable Question Yearling Popular Question Popular Question Necromancer Announcer Good Question Announcer Yearling Pundit Nice Answer Notable Question Nice Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 53572,7713897,552656,NULL,NULL,NULL,0,NULL,NULL 53573,285865,679183,Famous Question Yearling Popular Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 53574,1702679,679183,Famous Question Yearling Popular Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 53575,196745,1252548,NULL,NULL,NULL,0,NULL,NULL 53576,967432,439450,Notable Question Yearling Nice Question Favorite Question Famous Question Investor Famous Question Great Question Nice Answer Critic Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53577,464961,146241,NULL,NULL,NULL,0,NULL,NULL 53578,835350,1344206,NULL,NULL,NULL,0,NULL,NULL 53579,1098563,742706,Custodian Scholar Supporter Popular Question Census,NULL,NULL,0,NULL,NULL 53580,39143,874879,Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53581,390116,152285,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 53582,29907,1561452,Editor Excavator,NULL,NULL,0,NULL,NULL 53583,33413,738131,NULL,NULL,NULL,0,NULL,NULL 53584,12699,509316,NULL,NULL,NULL,0,NULL,NULL 53585,208847,11274,Great Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53586,1112743,1284167,Popular Question Popular Question Popular Question Curious Critic,NULL,NULL,0,NULL,NULL 53587,1564357,1204425,NULL,NULL,NULL,0,NULL,NULL 53588,135595,290338,Nice Answer Yearling Necromancer ruby-on-rails Good Answer Caucus Custodian Custodian Custodian Yearling Nice Answer Tumbleweed Nice Answer Good Answer Revival Announcer Famous Question Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Documentation User Nice Question Announcer Good Answer Yearling Popular Question Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53589,467481,367941,Revival Yearling Notable Question Yearling Editor Commentator Revival Great Answer Yearling Nice Question Yearling,NULL,,0,, 53590,210836,444798,NULL,NULL,NULL,0,NULL,NULL 53591,366941,921280,NULL,NULL,NULL,0,NULL,NULL 53592,42127,1192387,NULL,NULL,NULL,0,NULL,NULL 53593,2346959,847940,NULL,NULL,NULL,0,NULL,NULL 53594,110147,1102625,NULL,NULL,NULL,0,NULL,NULL 53595,79596,1171740,Supporter Popular Question,NULL,NULL,0,NULL,NULL 53596,53610,66851,Good Answer Yearling Inquisitive Good Question Revival Nice Question Great Question Popular Question Necromancer Popular Question Famous Question Caucus Popular Question Custodian Proofreader Nice Question Yearling Notable Question Popular Question Favorite Question Nice Question Great Question Notable Question Nice Answer Notable Question Favorite Question Notable Question Nice Question Notable Question Yearling Favorite Question Good Question Guru Good Answer Famous Question Nice Answer Nice Answer Popular Question,NULL,NULL,1,How to tie emitted events events into redux saga javascript ecmascript redux redux saga pI trying to use href https github com yelouafi redux saga redux saga to connect events from href http pouchdb com api html replication PouchDB to my href http reactjs com React js application but struggling to figure out how to connect events emitted from PouchDB to my Saga Since the event uses callback function and can pass it generator can use codeyield put code inside the callback it gives weird errors after ES2015 compilation using Webpack ppSo here what trying to accomplish the part that doesn work is inside codereplication on change info gt code ppre codefunction startReplication wrapper while yield take DATABASE SET CONFIGURATION yield call wrapper connect bind wrapper Returns promise or false let replication wrapper replicate if replication replication on change info gt yield put replicationChange info export default startReplication code pre,NULL 53597,1549802,1074246,NULL,NULL,NULL,0,NULL,NULL 53598,6151345,1554346,Necromancer Necromancer Yearling Necromancer Nice Answer Yearling Custodian Nice Question Nice Answer Famous Question Nice Answer Yearling Custodian Peer Pressure,NULL,pBrief answer to your question No You shouldn call codeConfigureAwait false code at the application level like that ppTL DR version of the long answer If you are writing library where you don know your consumer and don need synchronization context which you shouldn in library believe you should always use codeConfigureAwait false code Otherwise the consumers of your library may face deadlocks by consuming your asynchronous methods in blocking fashion This depends on the situation ppHere is bit more detailed explanation on the importance of codeConfigureAwait code method quote from my blog post pblockquote pWhen you are awaiting on method with await keyword compiler generates bunch of code in behalf of you One of the purposes of this action is to handle synchronization with the UI or main thread The key component of this feature is the codeSynchronizationContext Current code which gets the synchronization context for the current thread codeSynchronizationContext Current code is populated depending on the environment you are in The codeGetAwaiter code method of Task looks up for codeSynchronizationContext Current code If current synchronization context is not null the continuation that gets passed to that awaiter will get posted back to that synchronization context pWhen consuming method which uses the new asynchronous language features in blocking fashion you will end up with deadlock if you have an available SynchronizationContext When you are consuming such methods in blocking fashion waiting on the Task with Wait method or taking the result directly from the Result property of the Task you will block the main thread at the same time When eventually the Task completes inside that method in the threadpool it is going to invoke the continuation to post back to the main thread because codeSynchronizationContext Current code is available and captured But there is problem here the UI thread is blocked and you have deadlock blockquotepAlso here are two great articles for you which are exactly for your question pulli href http www tugberkugurlu com archive the perfect recipe to shoot yourself in the foot ending up with deadlock using the sharp asynchronous language features rel noreferrer The Perfect Recipe to Shoot Yourself in The Foot Ending up with Deadlock Using the Asynchronous Language Features lili href http www tugberkugurlu com archive asynchronousnet client libraries for your http api and awareness of async await bad effects rel noreferrer Asynchronous NET Client Libraries for Your HTTP API and Awareness of async await Bad Effects li ulpFinally there is great short video from href https twitter com lwischik rel noreferrer Lucian Wischik exactly on this topic href https channel9 msdn com Series Three Essential Tips for Async Async library methods should consider using Task ConfigureAwait false rel noreferrer Async library methods should consider using Task ConfigureAwait false ppHope this helps Is it possible to simply use ConfigureAwait at the top level or does it literally need to be on every call all the way down the stack It would suck to forget to do it on one call and then have that deadlock the main thread,0,NULL,NULL 53599,929810,1554346,Necromancer Necromancer Yearling Necromancer Nice Answer Yearling Custodian Nice Question Nice Answer Famous Question Nice Answer Yearling Custodian Peer Pressure,NULL,pBrief answer to your question No You shouldn call codeConfigureAwait false code at the application level like that ppTL DR version of the long answer If you are writing library where you don know your consumer and don need synchronization context which you shouldn in library believe you should always use codeConfigureAwait false code Otherwise the consumers of your library may face deadlocks by consuming your asynchronous methods in blocking fashion This depends on the situation ppHere is bit more detailed explanation on the importance of codeConfigureAwait code method quote from my blog post pblockquote pWhen you are awaiting on method with await keyword compiler generates bunch of code in behalf of you One of the purposes of this action is to handle synchronization with the UI or main thread The key component of this feature is the codeSynchronizationContext Current code which gets the synchronization context for the current thread codeSynchronizationContext Current code is populated depending on the environment you are in The codeGetAwaiter code method of Task looks up for codeSynchronizationContext Current code If current synchronization context is not null the continuation that gets passed to that awaiter will get posted back to that synchronization context pWhen consuming method which uses the new asynchronous language features in blocking fashion you will end up with deadlock if you have an available SynchronizationContext When you are consuming such methods in blocking fashion waiting on the Task with Wait method or taking the result directly from the Result property of the Task you will block the main thread at the same time When eventually the Task completes inside that method in the threadpool it is going to invoke the continuation to post back to the main thread because codeSynchronizationContext Current code is available and captured But there is problem here the UI thread is blocked and you have deadlock blockquotepAlso here are two great articles for you which are exactly for your question pulli href http www tugberkugurlu com archive the perfect recipe to shoot yourself in the foot ending up with deadlock using the sharp asynchronous language features rel noreferrer The Perfect Recipe to Shoot Yourself in The Foot Ending up with Deadlock Using the Asynchronous Language Features lili href http www tugberkugurlu com archive asynchronousnet client libraries for your http api and awareness of async await bad effects rel noreferrer Asynchronous NET Client Libraries for Your HTTP API and Awareness of async await Bad Effects li ulpFinally there is great short video from href https twitter com lwischik rel noreferrer Lucian Wischik exactly on this topic href https channel9 msdn com Series Three Essential Tips for Async Async library methods should consider using Task ConfigureAwait false rel noreferrer Async library methods should consider using Task ConfigureAwait false ppHope this helps Is it possible to simply use ConfigureAwait at the top level or does it literally need to be on every call all the way down the stack It would suck to forget to do it on one call and then have that deadlock the main thread,0,NULL,NULL 53600,6194734,1554346,Necromancer Necromancer Yearling Necromancer Nice Answer Yearling Custodian Nice Question Nice Answer Famous Question Nice Answer Yearling Custodian Peer Pressure,NULL,pBrief answer to your question No You shouldn call codeConfigureAwait false code at the application level like that ppTL DR version of the long answer If you are writing library where you don know your consumer and don need synchronization context which you shouldn in library believe you should always use codeConfigureAwait false code Otherwise the consumers of your library may face deadlocks by consuming your asynchronous methods in blocking fashion This depends on the situation ppHere is bit more detailed explanation on the importance of codeConfigureAwait code method quote from my blog post pblockquote pWhen you are awaiting on method with await keyword compiler generates bunch of code in behalf of you One of the purposes of this action is to handle synchronization with the UI or main thread The key component of this feature is the codeSynchronizationContext Current code which gets the synchronization context for the current thread codeSynchronizationContext Current code is populated depending on the environment you are in The codeGetAwaiter code method of Task looks up for codeSynchronizationContext Current code If current synchronization context is not null the continuation that gets passed to that awaiter will get posted back to that synchronization context pWhen consuming method which uses the new asynchronous language features in blocking fashion you will end up with deadlock if you have an available SynchronizationContext When you are consuming such methods in blocking fashion waiting on the Task with Wait method or taking the result directly from the Result property of the Task you will block the main thread at the same time When eventually the Task completes inside that method in the threadpool it is going to invoke the continuation to post back to the main thread because codeSynchronizationContext Current code is available and captured But there is problem here the UI thread is blocked and you have deadlock blockquotepAlso here are two great articles for you which are exactly for your question pulli href http www tugberkugurlu com archive the perfect recipe to shoot yourself in the foot ending up with deadlock using the sharp asynchronous language features rel noreferrer The Perfect Recipe to Shoot Yourself in The Foot Ending up with Deadlock Using the Asynchronous Language Features lili href http www tugberkugurlu com archive asynchronousnet client libraries for your http api and awareness of async await bad effects rel noreferrer Asynchronous NET Client Libraries for Your HTTP API and Awareness of async await Bad Effects li ulpFinally there is great short video from href https twitter com lwischik rel noreferrer Lucian Wischik exactly on this topic href https channel9 msdn com Series Three Essential Tips for Async Async library methods should consider using Task ConfigureAwait false rel noreferrer Async library methods should consider using Task ConfigureAwait false ppHope this helps Is it possible to simply use ConfigureAwait at the top level or does it literally need to be on every call all the way down the stack It would suck to forget to do it on one call and then have that deadlock the main thread,0,NULL,NULL 53601,1112439,63252,NULL,NULL,NULL,0,NULL,NULL 53602,266389,219902,NULL,NULL,NULL,0,NULL,NULL 53603,387578,383593,NULL,NULL,NULL,0,NULL,NULL 53604,64555,334451,Guru Nice Answer Yearling Announcer Nice Answer Caucus Constituent Popular Question Nice Answer Nice Question Necromancer Famous Question Yearling Necromancer Announcer Nice Answer Popular Question Famous Question Nice Question Nice Question Announcer Caucus Constituent Necromancer Yearling Necromancer Nice Answer Great Answer Popular Question,NULL,pIf you want to set the editor emonly em for Git do either you don’t need both pulliSet href http git scm com book en Customizing Git Git Configuration Basic Client Configuration rel noreferrer codecore editor code in your Git config codegit config global core editor vim code liliSet the href http git scm com docs git var variables rel noreferrer codeGIT EDITOR code environment variable codeexport GIT EDITOR vim code li ulhrpIf you want to set the editor for Git emand also other programs em set the standardized codeVISUAL code and codeEDITOR code environment variables ppre codeexport VISUAL vimexport EDITOR VISUAL code prep sub Setting both is not necessarily needed but some programs may not use the more correct codeVISUAL code See href https unix stackexchange com questions 4859 visual vs editor whats the difference codeVISUAL code vs codeEDITOR code sub phrp strongFor Sublime Text strong Add this to the code gitconfig code The code wait code is important it allows to type text in sublime and will wait for save close event ppre code core editor subl wait code prep em subl can be replaced by the full path of the executable but is usually available when correctly installed em If you have both core editor and GIT EDITOR set GIT EDITOR will be used This is nice for setting default via git config and overriding the config for individual commands if needed For example just needed GIT EDITOR nano git rebase origin master because my was not available to use my regular editor pThis question is asked lot but think you should step back and ask yourself emwhy em you want to validate email adresses syntactically What is the benefit really pulliIt will not catch common typos liliIt does not prevent people from entering invalid or made up email addresses or entering someone else address li ulpIf you want to validate that an email is correct you have no choice than to send an confirmation email and have the user reply to that In many cases you will emhave em to send confirmation mail anyway for security reasons or for ethical reasons so you cannot sign someone up to service against their will See also https lists w3 org Archives Public public whatwg archive 2009Aug 0543 html pI would recommend using codeh1 code throughout Forget about codeh2 code through codeh6 code ppBack in HTML4 the heading levels were used to implicitly define the sections For example ppre code lt body gt lt h1 gt This is top level heading lt h1 gt lt gt some content here lt gt lt h2 gt This is the heading of subsection lt h2 gt lt gt content in the subsection lt gt lt h2 gt Another subsection begins here lt h2 gt lt gt content lt gt lt h1 gt another top level heading lt h1 gt code prepNow with the codesection code element you can explicitly define the sections rather than having to rely on the implicit sections created by your browser reading the different heading levels browser equipped with HTML5 knows that everything inside codesection code element gets demoted by one level in the doc outline So for example codesection gt h1 code is semantically treated like an codeh2 code codesection gt section gt h1 code is like an codeh3 code etc ppWhat confusing is that browsers emSTILL em create implicit sections based on the codeh2 code ndash codeh6 code heading levels yet the codeh2 code ndash codeh6 code elements don change their styles That means that an codeh2 code no matter how many sections it is nested in will still appear like an codeh2 code at least in Webkit This would be confusing if your codeh2 code was supposed to be say level heading ppMixing codeh2 code ndash codeh6 code with codesection code leads to very unexpected results Just stick with codeh1 code only and use codesection code to create explicit sections ppre code lt body gt lt optional gt lt header gt lt h1 gt This is top level heading lt h1 gt lt gt you may optionally wrap this and the h1 above it inside header element the header element doesn affect the doc outline the section element does however lt gt lt optional gt lt header gt lt section gt lt h1 gt even though this is an h1 the browser treats it like an h2 because it inside an explicit section it got demoted lt h1 gt lt gt content in the subsection lt gt lt section gt lt section gt lt h1 gt Another subsection begins here also treated like an h2 lt h1 gt lt gt content lt gt lt h2 gt This is misleading it is semantically treated like an h3 lt h2 gt lt gt that is because after an h1 an h2 is demoted one level the h1 above is already level heading so this h2 becomes level heading lt gt lt section gt lt h1 gt just do this instead lt h1 gt lt gt it is treated like an h3 because it in section within section It got demoted twice lt gt lt section gt lt section gt lt h1 gt another top level heading lt h1 gt code prehrp strongFurthermore strong you may use href https developer mozilla org en US docs Web HTML Element main rel noreferrer the code lt main gt code element This element contains only information specific to the page and should not include content that is repeated site wide such as navigation links site headers footers etc There may be emonly one em code lt main gt code element present in the code lt body gt code So your solution may be as simple as this ppre code lt header gt lt h1 gt Site title lt h1 gt lt nav gt lt nav gt lt header gt lt main gt lt h1 gt Page title lt h1 gt lt gt page content lt gt lt main gt code pre Note that you cannot nest main inside article Logically it would make sense to mark main content of each article main content of each blog entry when the whole HTML document contains rendering of multiple blog entries but this is not allowed by the spec h2Use code code instead of code code h2pSubstituting by code code inserts null character into the text To get newline use code code When emsearching em for newline you’d still use code code however This asymmetry is due to the fact that code code and code code href http vim wikia com wiki Search and replace rel noreferrer do slightly different things pp code code matches an end of line newline whereas code code matches carriage return On the other hand in substitutions code code inserts null character whereas code code inserts newline more precisely it’s treated as the input kbd lt CR gt kbd Here’s small non interactive example to illustrate this using the Vim command line feature in other words you can copy and paste the following into terminal to run it codexxd code shows hexdump of the resulting file ppre codeecho bar gt test echo Before xxd test gt output txtvim test wq echo After xxd test gt gt output txtmore output txt code prepre codeBefore 0000000 6261 720a bar After 0000000 000a 720a code prepIn other words code code has inserted the byte 0x00 into the text code code has inserted the byte 0x0a are you sure about the history of CR and LF was under impression that originally LF moved paper one row forward but did not move the printhead and CR moved the printhead but did not move the paper As result if your OS did not convert the input before printing you could not just use just LF nor CR to get the correct output MS DOS used raw printer data as the text file format Mac OS used CR and converted from that to printer raw format and UNIX used LF and converted from that to printer raw format HTML Why does Android browser show Go instead of Next in keyboard android html browser android softkeyboard pI have an HTML login form that contains following elements in this order pulli codeinput type text code user name input lili codeinput type password code password lili codeinput type submit code Login button li ulpWhy does the Android browser show Go button in soft keyboard instead of Next button when the focus is in the codetext input code This causes user to fail to login very easily because after entering the user name the user presses the bottom right button in the keyboard usually the correct action and the form will be submitted with an empty password which obviously is not going to work This behavior would make sense in case my browser was set to remember passwords and the password manager would be able to fill in the password However this is not the case here as you can test yourself below ppI like to have the input type text to have Next button and the input type password the last input before the submit to have the Go button ppAn example of problematic form is at href https peda net login rel noreferrer https peda net login this form contains code to detect Enter key for the input and prevents submitting the form unless the last visible form input is focused ppDo you know real fix for this issue know that if were implementing native application use codeandroid imeOptions actionNext code see href https stackoverflow com questions 6327886 how to change the softkey keyboard go button to next android How to change the Android softkey keyboard Go button to Next However in this case it an HTML form and Android default browser ppThe problem is visible with at least following configurations pulli Browser system app running on Android Cyanogenmod lili Browser system app running on Android Cyanogenmod 10 lili Browser system app running on Android Cyanogenmod 10 M1 lili Browser system app AOSP Browser running on Android Cyanogenmod 11 M3 lili Browser system app AOSP Browser running on Android Cyanogenmod 12 has an arrow icon instead of word Go lili Browser system app AOSP Browser running on Android Cyanogenmod 13 has an arrow icon instead of word Go li ul According to https bugs chromium org chromium issues detail id 410785 this should be fixed once Google Chrome 62 gets distributed to Android systems No word about AOSP browser yet It shame this has taken years to fix,0,NULL,NULL 53605,868442,652653,NULL,NULL,NULL,0,NULL,NULL 53606,295045,430674,Yearling Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Notable Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 53607,119807,276291,Caucus,NULL,NULL,0,NULL,NULL 53608,45264,315168,Nice Answer Announcer Nice Answer django Good Answer Popular Question Booster Nice Answer Enlightened Notable Question Notable Question Popular Question Good Answer Popular Question Popular Question Yearling pip Good Answer Nice Answer Announcer Popular Question Great Answer Announcer Nice Answer Publicist Nice Answer Enlightened Necromancer Notable Question Nice Answer Popular Question Revival Popular Question Announcer Popular Question Good Answer Nice Question Notable Question Popular Question Guru Guru Notable Question Great Answer Popular Question Nice Answer Popular Question Notable Question Caucus Constituent Good Answer Nice Answer Nice Answer Enlightened Popular Question Great Answer Popular Question Favorite Question Popular Question Notable Question Nice Question Notable Question Popular Question Good Answer Great Answer Favorite Question Announcer canvas Popular Question Yearling Nice Answer Popular Question Nice Answer Enlightened Necromancer Nice Question Necromancer Announcer Notable Question Popular Question Nice Question Announcer Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Answer Popular Question Nice Answer Enlightened Announcer Popular Question Nice Answer Enlightened Documentation User Notable Question Populist Popular Question Notable Question Announcer Popular Question python Announcer Nice Question Good Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question Announcer Announcer Revival Notable Question Good Question Yearling Nice Answer Enlightened Nice Question Popular Question Popular Question Great Question Notable Question Announcer Good Answer Popular Question Great Question Nice Answer Nice Answer Good Question Notable Question Popular Question Nice Question Favorite Question Notable Question Guru Notable Question Notable Question Nice Answer Enlightened Popular Question Famous Question Notable Question Notable Question Nice Answer Popular Question Nice Answer Enlightened Nice Question,NULL,pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable Is there any specific issue with more details Is your question how to place IPython to path Usually this follows normal virtual environment workflow where virtual environment activation automatically updates your PATH https packaging python org en latest installing creating virtual environments pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable You cannot install anything with sudo suggest you get third party up to date Python install from Homebrew that comes with built in virtual env Furthermore you can install virtualenv locally to your home directory using the bootstrap script pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable am not HomeBrew expert so cannot answer this question suggest you seek answer on HomeBrew specific forum or open new question Evaluate math equations from unsafe user input in Python python eval sandbox pI have website where the user enters math equations expressions and then those equations are evaluated against data constants provided by the website The math operations needed include symbols arithmetic operations codemin code codemax code and some other basic functions sample equation could be ppre codemax 100 200 code prepOne could simply codeeval code this using Python but as we all know this leads compromising the site What would be the safe approach of doing math equation evaluation pulli pWhat math equation parsing and evaluation engines there are for Python lili pIf one chooses to use Python itself to evaluate the expression are there any Python sandboxes which would limit the Python so that only user supplier operators and functions are available Full fledged Python like defining functions should be totally disabled Subprocesses are ok see href http pypy readthedocs org en latest sandbox html PyPy sandbox Specially for loops and other holes for exploiting memory and CPU usage should be closed lili pAny other approaches by using command line binary bc li ul Welcome to StackOverflow,0,NULL,NULL 53609,1262434,315168,Nice Answer Announcer Nice Answer django Good Answer Popular Question Booster Nice Answer Enlightened Notable Question Notable Question Popular Question Good Answer Popular Question Popular Question Yearling pip Good Answer Nice Answer Announcer Popular Question Great Answer Announcer Nice Answer Publicist Nice Answer Enlightened Necromancer Notable Question Nice Answer Popular Question Revival Popular Question Announcer Popular Question Good Answer Nice Question Notable Question Popular Question Guru Guru Notable Question Great Answer Popular Question Nice Answer Popular Question Notable Question Caucus Constituent Good Answer Nice Answer Nice Answer Enlightened Popular Question Great Answer Popular Question Favorite Question Popular Question Notable Question Nice Question Notable Question Popular Question Good Answer Great Answer Favorite Question Announcer canvas Popular Question Yearling Nice Answer Popular Question Nice Answer Enlightened Necromancer Nice Question Necromancer Announcer Notable Question Popular Question Nice Question Announcer Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Answer Popular Question Nice Answer Enlightened Announcer Popular Question Nice Answer Enlightened Documentation User Notable Question Populist Popular Question Notable Question Announcer Popular Question python Announcer Nice Question Good Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question Announcer Announcer Revival Notable Question Good Question Yearling Nice Answer Enlightened Nice Question Popular Question Popular Question Great Question Notable Question Announcer Good Answer Popular Question Great Question Nice Answer Nice Answer Good Question Notable Question Popular Question Nice Question Favorite Question Notable Question Guru Notable Question Notable Question Nice Answer Enlightened Popular Question Famous Question Notable Question Notable Question Nice Answer Popular Question Nice Answer Enlightened Nice Question,NULL,pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable Is there any specific issue with more details Is your question how to place IPython to path Usually this follows normal virtual environment workflow where virtual environment activation automatically updates your PATH https packaging python org en latest installing creating virtual environments pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable You cannot install anything with sudo suggest you get third party up to date Python install from Homebrew that comes with built in virtual env Furthermore you can install virtualenv locally to your home directory using the bootstrap script pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable am not HomeBrew expert so cannot answer this question suggest you seek answer on HomeBrew specific forum or open new question Evaluate math equations from unsafe user input in Python python eval sandbox pI have website where the user enters math equations expressions and then those equations are evaluated against data constants provided by the website The math operations needed include symbols arithmetic operations codemin code codemax code and some other basic functions sample equation could be ppre codemax 100 200 code prepOne could simply codeeval code this using Python but as we all know this leads compromising the site What would be the safe approach of doing math equation evaluation pulli pWhat math equation parsing and evaluation engines there are for Python lili pIf one chooses to use Python itself to evaluate the expression are there any Python sandboxes which would limit the Python so that only user supplier operators and functions are available Full fledged Python like defining functions should be totally disabled Subprocesses are ok see href http pypy readthedocs org en latest sandbox html PyPy sandbox Specially for loops and other holes for exploiting memory and CPU usage should be closed lili pAny other approaches by using command line binary bc li ul Welcome to StackOverflow,0,NULL,NULL 53610,52022,315168,Nice Answer Announcer Nice Answer django Good Answer Popular Question Booster Nice Answer Enlightened Notable Question Notable Question Popular Question Good Answer Popular Question Popular Question Yearling pip Good Answer Nice Answer Announcer Popular Question Great Answer Announcer Nice Answer Publicist Nice Answer Enlightened Necromancer Notable Question Nice Answer Popular Question Revival Popular Question Announcer Popular Question Good Answer Nice Question Notable Question Popular Question Guru Guru Notable Question Great Answer Popular Question Nice Answer Popular Question Notable Question Caucus Constituent Good Answer Nice Answer Nice Answer Enlightened Popular Question Great Answer Popular Question Favorite Question Popular Question Notable Question Nice Question Notable Question Popular Question Good Answer Great Answer Favorite Question Announcer canvas Popular Question Yearling Nice Answer Popular Question Nice Answer Enlightened Necromancer Nice Question Necromancer Announcer Notable Question Popular Question Nice Question Announcer Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Answer Popular Question Nice Answer Enlightened Announcer Popular Question Nice Answer Enlightened Documentation User Notable Question Populist Popular Question Notable Question Announcer Popular Question python Announcer Nice Question Good Answer Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question Announcer Announcer Revival Notable Question Good Question Yearling Nice Answer Enlightened Nice Question Popular Question Popular Question Great Question Notable Question Announcer Good Answer Popular Question Great Question Nice Answer Nice Answer Good Question Notable Question Popular Question Nice Question Favorite Question Notable Question Guru Notable Question Notable Question Nice Answer Enlightened Popular Question Famous Question Notable Question Notable Question Nice Answer Popular Question Nice Answer Enlightened Nice Question,NULL,pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable Is there any specific issue with more details Is your question how to place IPython to path Usually this follows normal virtual environment workflow where virtual environment activation automatically updates your PATH https packaging python org en latest installing creating virtual environments pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable You cannot install anything with sudo suggest you get third party up to date Python install from Homebrew that comes with built in virtual env Furthermore you can install virtualenv locally to your home directory using the bootstrap script pInstructions telling codesudo pip install code are inherently wrong ppIf there is any tutorial out there which says you should do codesudo pip code then please file bug against this package The author is dis educating Python community as time has proven codesudo pip code to be broken practice pp href http www infoworld com article 2988096 mac os sorry unix fans os el capitan kills root html rel noreferrer OSX El Capitan introduced mechanisms to prevent damaging the operating system files code System Library Frameworks Python framework Versions share code is one of the protected locations strongA normal user has no reason to put or write any files there strong This is because the operating system itself relies on these files and codesudo pip code with all force given from the above would unconditionally overwrite them Usually bad things would not happen but the chances are there Apple wants to protect their OS users to accidentally bricking their installation ppInstead you need to install Python package like IPython emlocally to the home folder of your user em The easiest way is to create emvirtual environment em emactivate it em and then run empip em in the virtual environment ppExample ppre codecd Go to home directoryvirtualenv my venvsource my venv bin activatepip install IPython code prepMore info pulli href https packaging python org en latest installing html rel noreferrer Official Python package installation tutorial lili href https packaging python org en latest installing html creating virtual environments rel noreferrer How to create virtual environments li ulpAlternatively one should be able to do codepip install user code But again strongno sudo needed strong and you need to manually set up codePATH code environment variable am not HomeBrew expert so cannot answer this question suggest you seek answer on HomeBrew specific forum or open new question Evaluate math equations from unsafe user input in Python python eval sandbox pI have website where the user enters math equations expressions and then those equations are evaluated against data constants provided by the website The math operations needed include symbols arithmetic operations codemin code codemax code and some other basic functions sample equation could be ppre codemax 100 200 code prepOne could simply codeeval code this using Python but as we all know this leads compromising the site What would be the safe approach of doing math equation evaluation pulli pWhat math equation parsing and evaluation engines there are for Python lili pIf one chooses to use Python itself to evaluate the expression are there any Python sandboxes which would limit the Python so that only user supplier operators and functions are available Full fledged Python like defining functions should be totally disabled Subprocesses are ok see href http pypy readthedocs org en latest sandbox html PyPy sandbox Specially for loops and other holes for exploiting memory and CPU usage should be closed lili pAny other approaches by using command line binary bc li ul Welcome to StackOverflow,0,NULL,NULL 53611,1035401,81433,Nice Answer Yearling Nice Answer Enlightened Necromancer Documentation User Investor,NULL,NULL,0,NULL,NULL 53612,142935,432787,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53613,319981,418610,NULL,NULL,NULL,0,NULL,NULL 53614,1026792,845053,NULL,NULL,NULL,0,NULL,NULL 53615,430546,1182838,NULL,NULL,NULL,0,NULL,NULL 53616,18719,293627,Yearling Nice Answer Nice Answer Nice Answer c++ Necromancer Nice Answer Yearling Revival Good Answer Necromancer Enlightened Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53617,917170,608129,NULL,NULL,NULL,0,NULL,NULL 53618,205930,1214205,NULL,NULL,NULL,0,NULL,NULL 53619,794918,450330,NULL,NULL,NULL,0,NULL,NULL 53620,52713,1370986,Critic Yearling Student Custodian Good Answer Commentator Curious Popular Question Nice Answer Notable Question Yearling Revival Popular Question Notable Question Yearling Popular Question Nice Question Nice Question Necromancer Famous Question Revival,NULL,pPreprocessor macros will not work you need to check the environment at runtime ppre codestatic BOOL isRunningTests void NSDictionary environment NSProcessInfo processInfo environment return environment XCInjectBundleInto nil code prep em Updated for Xcode em Swift version for fast copy paste func isRunningTests Bool let env String String NSProcessInfo processInfo environment return env XCInjectBundleInto nil,0,NULL,NULL 53621,589531,605808,Yearling Explainer Caucus Nice Question Yearling Revival Necromancer Famous Question Caucus Constituent Nice Answer Mortarboard javascript Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 53622,915285,789361,Scholar Custodian Yearling Popular Question Notable Question Critic Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 53623,649373,461005,Popular Question,NULL,NULL,0,NULL,NULL 53624,20663,26123,Popular Question Good Answer Yearling Popular Question Good Answer Yearling Benefactor Yearling,NULL,NULL,0,NULL,NULL 53625,110773,445204,Autobiographer Informed,NULL,NULL,0,NULL,NULL 53626,345439,725022,NULL,NULL,NULL,0,NULL,NULL 53627,414209,16039,Notable Question Notable Question Popular Question Civic Duty Yearling Caucus Constituent Notable Question Popular Question Yearling Notable Question Popular Question Caucus Good Question Self-Learner Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53628,5480098,340566,NULL,NULL,NULL,0,NULL,NULL 53629,21226,1221952,Scholar,NULL,NULL,0,NULL,NULL 53630,143545,145768,Notable Question Peer Pressure Good Answer Nice Answer Custodian Nice Answer Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 53631,162214,192711,Custodian Custodian Yearling Yearling Yearling Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53632,208801,1222774,Informed Scholar Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 53633,705720,877329,Popular Question Investor Popular Question Famous Question Peer Pressure Popular Question Yearling Popular Question Necromancer Popular Question Tag Editor Altruist Popular Question Census Custodian Notable Question Quorum Yearling Popular Question Popular Question Nice Question Popular Question Necromancer Necromancer Popular Question Notable Question Custodian Popular Question Famous Question Popular Question Yearling Nice Question Nice Answer Famous Question Notable Question,NULL,pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol have some problems when standard streams are redirected The parent process hangs when waiting for the write end to be closed Everything works if there is no redirection going on pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol Any other reason pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol It appears that read does not return until the child process has finished pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol No It is set fcntl exec error write end FD CLOEXEC The call succeeds yet it has no effect pThe problem with handling codeexec code failure is that usually codeexec code is performed in child process and you want to do the error handling in the parent process But you can just codeexit errno code because you don know if error codes fit in an exit code and you can distinguish between failure to codeexec code and failure exit codes from the new program you codeexec code ppThe best solution know is using pipes to communicate the success or failure of codeexec code polliBefore forking open pipe in the parent process liliAfter forking the parent closes the writing end of the pipe and reads from the reading end liliThe child closes the reading end and sets the close on exec flag for the writing end liliThe child calls exec liliIf exec fails the child writes the error code back to the parent using the pipe then exits liliThe parent reads eof zero length read if the child successfully performed codeexec code since close on exec made successful codeexec code close the writing end of the pipe Or if codeexec code failed the parent reads the error code and can proceed accordingly Either way the parent blocks until the child calls codeexec code liliThe parent closes the reading end of the pipe li ol Now it works My bad pFor any unsigned type building on the Bit Twiddling Hacks ppre code include lt climits gt include lt type traits gt template lt typename UnsignedType gt UnsignedType round up to power of UnsignedType static assert std is unsigned lt UnsignedType gt value Only works for unsigned types for size lt sizeof CHAR BIT Prefer size Warning comparison between signed and unsigned integer gt gt return code prepThere isn really loop there as the compiler knows at compile time the number of iterations Just replace UnsignedType and process it manually am pretty sure programmer can expand this simple template ignoring the std is unsignedUnsignedType value assertion pFor any unsigned type building on the Bit Twiddling Hacks ppre code include lt climits gt include lt type traits gt template lt typename UnsignedType gt UnsignedType round up to power of UnsignedType static assert std is unsigned lt UnsignedType gt value Only works for unsigned types for size lt sizeof CHAR BIT Prefer size Warning comparison between signed and unsigned integer gt gt return code prepThere isn really loop there as the compiler knows at compile time the number of iterations UnsignedType in JavaScript Anyway this solution shows how to do it for any UnsignedType and it happen to be written in rather than pseudocode sizeof CHAR BIT instead of something like number of bits in an object of UnsignedType pYou should first check the code HOME code environment variable and if that does not exist use getpwuid ppre code include lt unistd gt include lt sys types gt include lt pwd gt const char homedir if homedir getenv HOME NULL homedir getpwuid getuid gt pw dir code prepAlso note that if you want the home directory to store configuration or cache data as part of program you write and want to distribute to users you should consider following the href http standards freedesktop org basedir spec basedir spec latest html rel nofollow noreferrer XDG Base Directory Specification For example if you want to create configuration directory for your application you should first check code XDG CONFIG HOME code using codegetenv code as shown above and only fall back to the code above if the variable is not set ppIf you require multi thread safety you should use codegetpwuid code instead of codegetpwuid code like this from the codegetpwnam code man page ppre codestruct passwd pwd struct passwd result char buf size bufsize int bufsize sysconf SC GETPW SIZE MAX if bufsize bufsize 0x4000 all zeroes with the 14th bit set lt lt 14 buf malloc bufsize if buf NULL perror malloc exit EXIT FAILURE getpwuid getuid amp pwd buf bufsize amp result if result NULL if printf Not found else errno perror getpwnam exit EXIT FAILURE char homedir result pw dir code pre You may need mutex there Otherwise the only way is getpwuid Why that function fiddles with the locale do not know,0,NULL,NULL 53634,1617135,930495,NULL,NULL,NULL,0,NULL,NULL 53635,309932,228686,NULL,NULL,NULL,0,NULL,NULL 53636,2255,78474,Necromancer Yearling Guru Enlightened Nice Question Popular Question Great Answer Yearling Necromancer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53637,240479,343649,Popular Question,NULL,NULL,0,NULL,NULL 53638,301796,343649,Popular Question,NULL,NULL,0,NULL,NULL 53639,655111,250967,Editor,NULL,NULL,0,NULL,NULL 53640,205673,837042,Promoter Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53641,49542,1076611,NULL,NULL,NULL,0,NULL,NULL 53642,4053482,858695,Notable Question Notable Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 53643,35994,255538,NULL,NULL,NULL,0,NULL,NULL 53644,289000,384780,Popular Question,NULL,NULL,0,NULL,NULL 53645,62365,243990,Yearling Revival,NULL,NULL,0,NULL,NULL 53646,248998,1310859,NULL,NULL,NULL,0,NULL,NULL 53647,316444,881153,NULL,NULL,NULL,0,NULL,NULL 53648,438467,1226766,NULL,NULL,NULL,0,NULL,NULL 53649,132677,1226766,NULL,NULL,NULL,0,NULL,NULL 53650,71464,215200,Announcer Nice Answer,NULL,NULL,0,NULL,NULL 53651,89909,670659,Nice Answer Enlightened Yearling Popular Question Curious Notable Question Citizen Patrol Civic Duty Commentator,NULL,NULL,0,NULL,NULL 53652,9852,601535,NULL,NULL,NULL,0,NULL,NULL 53653,22640,88770,Nice Question Good Question Notable Question Caucus Yearling Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 53654,1151852,719888,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 53655,97248,1217127,NULL,NULL,NULL,0,NULL,NULL 53656,222229,34720,Popular Question Nice Answer Enlightened Favorite Question Notable Question Yearling Caucus Necromancer Yearling Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 53657,16968,178829,NULL,NULL,NULL,0,NULL,NULL 53658,2214317,994573,NULL,NULL,NULL,0,NULL,NULL 53659,1246790,994573,NULL,NULL,NULL,0,NULL,NULL 53660,619107,374141,NULL,NULL,NULL,0,NULL,NULL 53661,412123,174428,Revival,NULL,NULL,0,NULL,NULL 53662,463578,1113795,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53663,184514,367107,Nice Question Popular Question Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 53664,23373,88406,Popular Question Notable Question Self-Learner Famous Question Yearling Notable Question Nice Question Yearling Nice Question Popular Question Famous Question Yearling Good Question Civic Duty Nice Question,NULL,NULL,0,NULL,NULL 53665,161209,1341654,NULL,NULL,NULL,0,NULL,NULL 53666,118184,354018,Necromancer Necromancer Nice Question Popular Question Nice Question Famous Question Yearling Popular Question Nice Answer Popular Question Nice Question Notable Question Notable Question Popular Question Announcer Necromancer Pundit Popular Question Nice Answer ios Nice Answer Notable Question Announcer Good Question Announcer Nice Question Nice Answer Nice Question Popular Question Notable Question Yearling Civic Duty Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Announcer Announcer Popular Question Yearling Revival Popular Question Announcer Popular Question Notable Question Notable Question,NULL,strongEDIT strong There is fix for this bug in sdk beta available here href https testflightapp com sdk download https testflightapp com sdk download ppI work at TestFlight We have just recently discovered this bug It is an iOS bug with CoreTelephony The TestFlight SDK uses CoreTelephony So this will sometimes cause crashes We have fix that is going to be ready very soon It will be included in the next beta probably beta very sorry for the trouble ppJason ppMore information on the crash for those interested ppThere is an iOS bug that causes instances of the codeCTTelephonyNetworkInfo code class to sometimes get notifications after they have been deallocated Instead of instantiating using and releasing instances you must instead retain and never release them to work around the bug Is there radar for that apple bug Has it been resolved since,0,NULL,NULL 53667,146081,296155,Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Favorite Question Popular Question Famous Question Nice Question Famous Question Notable Question Great Question Popular Question Notable Question Yearling Popular Question Good Question Nice Question Popular Question Popular Question Good Question Nice Question Notable Question Favorite Question Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 53668,267034,578294,Scholar,NULL,NULL,0,NULL,NULL 53669,82799,91360,Good Answer Yearling Nice Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 53670,6155,1331604,NULL,NULL,NULL,0,NULL,NULL 53671,243785,194937,NULL,NULL,NULL,0,NULL,NULL 53672,90969,606985,NULL,NULL,NULL,0,NULL,NULL 53673,481461,1051996,NULL,NULL,NULL,0,NULL,NULL 53674,315421,655733,Good Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 53675,121323,1128885,NULL,NULL,NULL,0,NULL,NULL 53676,186178,730166,NULL,NULL,NULL,0,NULL,NULL 53677,4336138,254278,Nice Answer,NULL,NULL,0,NULL,NULL 53678,9714,278435,Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53679,5952,1272899,NULL,NULL,NULL,0,NULL,NULL 53680,477522,10840,Good Answer Necromancer Civic Duty Yearling Nice Question Curious Announcer Excavator Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 53681,101418,671950,NULL,NULL,NULL,0,NULL,NULL 53682,8134,1536789,Supporter Critic Editor Autobiographer Caucus Constituent Commentator Yearling Caucus,NULL,NULL,0,NULL,NULL 53683,60611,60072,Yearling Famous Question Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Question Nice Question Notable Question Nice Question Popular Question Yearling Favorite Question Notable Question Famous Question Favorite Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Great Question Famous Question Nice Question Popular Question Popular Question Good Question Famous Question Notable Question,NULL,pre codechsh which zsh code prepYou ll be prompted for your password but once you update your settings any new iTerm Terminal sessions you start on that machine will default to zsh Also works on my newly installed macOS exactly was looking for My ve installed iTerm 10 via brew casking does it make any difference,0,NULL,NULL 53684,267685,988974,NULL,NULL,NULL,0,NULL,NULL 53685,68129,587170,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 53686,220473,1359744,NULL,NULL,NULL,0,NULL,NULL 53687,232569,231661,Curious Necromancer Nice Answer Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 53688,368389,127127,Commentator,NULL,NULL,0,NULL,NULL 53689,490089,486638,NULL,NULL,NULL,0,NULL,NULL 53690,334529,347369,NULL,NULL,NULL,0,NULL,NULL 53691,45080,121185,Notable Question Notable Question Popular Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 53692,167481,49649,NULL,NULL,NULL,0,NULL,NULL 53693,80796,1154766,NULL,NULL,NULL,0,NULL,NULL 53694,19160,78241,NULL,NULL,NULL,0,NULL,NULL 53695,109127,590569,Famous Question Yearling Notable Question Notable Question Nice Answer Necromancer Caucus Notable Question Nice Question Notable Question Popular Question Yearling Custodian Notable Question Caucus Nice Question Famous Question Yearling Informed,NULL,NULL,0,NULL,NULL 53696,310840,878874,Commentator Necromancer Suffrage Caucus Nice Answer Famous Question Documentation User Electorate,NULL,NULL,0,NULL,NULL 53697,972100,1409907,Necromancer Enthusiast Nice Answer Civic Duty Yearling swift Nice Answer Necromancer Necromancer Announcer Yearling Nice Answer Revival Booster Yearling Announcer,NULL,NULL,0,NULL,NULL 53698,631455,747055,NULL,NULL,NULL,0,NULL,NULL 53699,570555,569763,Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Census Autobiographer Caucus Popular Question,NULL,NULL,0,NULL,NULL 53700,1138917,1042595,Populist Nice Answer Good Answer Famous Question Yearling Nice Question Announcer Yearling Good Question Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 53701,20366,514786,Popular Question Popular Question Yearling Good Question Caucus Constituent Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 53702,311074,1018640,Tenacious Revival Necromancer c++ Nice Answer Good Answer Custodian Yearling Nice Answer json Yearling Nice Answer Enlightened rapidjson Yearling,NULL,NULL,0,NULL,NULL 53703,104341,1211343,NULL,NULL,NULL,0,NULL,NULL 53704,987336,1367584,Popular Question Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53705,246928,1145933,NULL,NULL,NULL,0,NULL,NULL 53706,180216,1450202,NULL,NULL,NULL,0,NULL,NULL 53707,153214,1190069,Autobiographer Editor Explainer Census Commentator Critic,NULL,NULL,0,NULL,NULL 53708,8376231,737949,NULL,NULL,NULL,0,NULL,NULL 53709,120457,737949,NULL,NULL,NULL,0,NULL,NULL 53710,454082,1057524,NULL,NULL,NULL,0,NULL,NULL 53711,218138,1276814,Student,NULL,NULL,0,NULL,NULL 53712,1504221,552599,NULL,NULL,NULL,0,NULL,NULL 53713,22809,168665,Nice Question Yearling Good Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 53714,81419,409129,NULL,NULL,NULL,0,NULL,NULL 53715,282276,1059065,NULL,NULL,NULL,0,NULL,NULL 53716,5783062,1059065,NULL,NULL,NULL,0,NULL,NULL 53717,229524,170597,NULL,NULL,NULL,0,NULL,NULL 53718,3364686,306931,Notable Question,NULL,NULL,0,NULL,NULL 53719,92198,628871,NULL,NULL,NULL,0,NULL,NULL 53720,219250,349262,NULL,NULL,NULL,0,NULL,NULL 53721,129096,702999,Yearling Popular Question Notable Question Famous Question Good Answer Yearling Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 53722,298579,986217,NULL,NULL,NULL,0,NULL,NULL 53723,3655,26408,Good Answer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53724,417157,666267,Self-Learner Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53725,211222,1123369,NULL,NULL,NULL,0,NULL,NULL 53726,19085,477860,Editor Custodian Student Scholar Tumbleweed Popular Question Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 53727,5852,492202,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 53728,478335,1197228,Yearling,NULL,NULL,0,NULL,NULL 53729,386711,785253,Organizer Tumbleweed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53730,54337,467359,Yearling Necromancer Curious Nice Question Nice Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 53731,7979165,1115849,NULL,NULL,NULL,0,NULL,NULL 53732,18797,1115849,NULL,NULL,NULL,0,NULL,NULL 53733,174322,1355170,NULL,NULL,NULL,0,NULL,NULL 53734,259035,1439115,Informed,NULL,NULL,0,NULL,NULL 53735,46782,210629,Documentation User,NULL,NULL,0,NULL,NULL 53736,214789,958071,Editor,NULL,NULL,0,NULL,NULL 53737,48426,559642,Yearling Necromancer Curious Announcer Notable Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53738,136906,378830,NULL,NULL,NULL,0,NULL,NULL 53739,392367,1445618,Popular Question Necromancer Notable Question Popular Question Popular Question Notable Question Necromancer Famous Question Yearling Popular Question Popular Question Necromancer Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 53740,592827,1258621,NULL,NULL,NULL,0,NULL,NULL 53741,200515,178125,NULL,NULL,NULL,0,NULL,NULL 53742,74326,610999,NULL,NULL,NULL,0,NULL,NULL 53743,1347083,1038924,NULL,NULL,NULL,0,NULL,NULL 53744,59350,383405,Good Question Famous Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Famous Question Caucus Famous Question Nice Answer Good Answer Yearling Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 53745,173761,986399,Popular Question Enthusiast Curious Yearling Nice Answer Caucus Nice Question Necromancer Famous Question Yearling Fanatic Caucus Notable Question,NULL,NULL,0,NULL,NULL 53746,1351848,948244,Popular Question Excavator,NULL,NULL,0,NULL,NULL 53747,896013,1323464,NULL,NULL,NULL,0,NULL,NULL 53748,222772,313292,Informed Autobiographer Promoter Teacher Self-Learner Nice Question Popular Question Famous Question Good Question Popular Question Revival Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53749,8127614,1359908,NULL,NULL,NULL,0,NULL,NULL 53750,63712,585724,NULL,NULL,NULL,0,NULL,NULL 53751,80083,707111,Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Good Answer arrays Yearling Guru Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Guru Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Nice Answer Nice Answer Enlightened Documentation Pioneer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened for-loop Nice Answer Enlightened function Necromancer Good Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Great Question Good Answer Caucus Constituent Nice Answer Enlightened css Nice Answer Enlightened Nice Answer Notable Question Good Answer Guru Nice Answer string Good Answer Great Answer Popular Question Good Answer Census Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Popular Question Nice Answer Good Answer Great Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened sql Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Necromancer Good Answer Good Answer Famous Question Guru Good Answer Nice Answer Enlightened Caucus Good Answer Nice Answer Enlightened Guru Constituent Nice Answer Enlightened Guru Guru Booster Guru html Guru Announcer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Guru Documentation User Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer dictionary Good Answer Good Answer vb.net Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Enlightened Census Great Answer Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Guru linq Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Caucus Constituent Nice Answer Enlightened Good Answer Guru Yearling Good Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,pThe easiest and probably best way is to do three separate checks with codepreg match code ppre code containsLetter preg match zA string containsDigit preg match string containsSpecial preg match zA string containsAll containsLetter amp amp containsDigit amp amp containsSpecial code pre No they can’t contains more characters than zA pThe easiest and probably best way is to do three separate checks with codepreg match code ppre code containsLetter preg match zA string containsDigit preg match string containsSpecial preg match zA string containsAll containsLetter amp amp containsDigit amp amp containsSpecial code pre Please stop editing my answer to be less clear Nobody “requested if and it’s not like you can’t use variables in one pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime Yeah unfortunately the only sure way to deal with that is to delete the venv and make it again So if you already did that it was the best option pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime The tutorial is kept up to date installs now so it’s fixed pre class lang py prettyprint override codefrom functools import reducedef factors return set reduce list add for in range int if code prepThis will return all of the factors very quickly of number coden code ppWhy square root as the upper limit pp codesqrt sqrt code So if the two factors are the same they re both the square root If you make one factor bigger you have to make the other factor smaller This means that one of the two will always be less than or equal to codesqrt code so you only have to search up to that point to find one of the two matching factors You can then use codex fac1 code to get codefac2 code ppThe codereduce list add code is taking the little lists of code fac1 fac2 code and joining them together in one long list ppThe code for in range int sqrt if code returns pair of factors if the remainder when you divide coden code by the smaller one is zero it doesn need to check the larger one too it just gets that by dividing coden code by the smaller one ppThe codeset code on the outside is getting rid of duplicates which only happens for perfect squares For coden code this will return code2 code twice so codeset code gets rid of one of them That doesn’t sound right Can you provide anything to back it up pre class lang py prettyprint override codefrom functools import reducedef factors return set reduce list add for in range int if code prepThis will return all of the factors very quickly of number coden code ppWhy square root as the upper limit pp codesqrt sqrt code So if the two factors are the same they re both the square root If you make one factor bigger you have to make the other factor smaller This means that one of the two will always be less than or equal to codesqrt code so you only have to search up to that point to find one of the two matching factors You can then use codex fac1 code to get codefac2 code ppThe codereduce list add code is taking the little lists of code fac1 fac2 code and joining them together in one long list ppThe code for in range int sqrt if code returns pair of factors if the remainder when you divide coden code by the smaller one is zero it doesn need to check the larger one too it just gets that by dividing coden code by the smaller one ppThe codeset code on the outside is getting rid of duplicates which only happens for perfect squares For coden code this will return code2 code twice so codeset code gets rid of one of them “I believe pow is whereas is pre class lang py prettyprint override codefrom functools import reducedef factors return set reduce list add for in range int if code prepThis will return all of the factors very quickly of number coden code ppWhy square root as the upper limit pp codesqrt sqrt code So if the two factors are the same they re both the square root If you make one factor bigger you have to make the other factor smaller This means that one of the two will always be less than or equal to codesqrt code so you only have to search up to that point to find one of the two matching factors You can then use codex fac1 code to get codefac2 code ppThe codereduce list add code is taking the little lists of code fac1 fac2 code and joining them together in one long list ppThe code for in range int sqrt if code returns pair of factors if the remainder when you divide coden code by the smaller one is zero it doesn need to check the larger one too it just gets that by dividing coden code by the smaller one ppThe codeset code on the outside is getting rid of duplicates which only happens for perfect squares For coden code this will return code2 code twice so codeset code gets rid of one of them Both of them use floating point exponentiation “c pow when either operand isn’t an integer and that’s the case here codefor…in code iterates over property names not values and does so href https www ecma international org ecma 262 index html sec ordinary object internal methods and internal slots enumerate rel noreferrer in an unspecified order yes even after ES6 You shouldn’t use it to iterate over arrays For them there’s ES5’s codeforEach code method that passes both the value and the index to the function you give it ppre codevar myArray 123 15 187 32 myArray forEach function value console log value Outputs 123 15 187 32 code prepOr ES6’s href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array entries rel noreferrer codeArray prototype entries code which now has support across current browser versions ppre codefor const value of myArray entries console log value code prepFor iterables in general where you would use codefor…of code loop rather than codefor…in code there’s nothing built in however ppre codefunction enumerate iterable let for const of iterable yield for const obj of enumerate myArray console log obj code prep href https babeljs io repl evaluate true amp presets es2015 2Cstage amp code function 20enumerate iterable 20 7B 0A 20 20 20 20let 20i 20 3D 200 3B 0A 0A 20 20 20 20for 20 const 20x 20of 20iterable 20 7B 0A 20 20 20 20 20 20 20 20yield 20 5Bi 2C 20x 5D 3B 0A 20 20 20 20 20 20 20 20i 2B 2B 3B 0A 20 20 20 20 7D 0A 7D 0A 0Afor 20 const 20 5Bi 2C 20obj 5D 20of 20enumerate 5B 39 hello 39 2C 20 39 world 39 5D 20 7B 0A 20 20 20 20console log 2C 20obj 3B 0A 7D rel noreferrer strongdemo strong ppIf you actually did mean codefor…in code enumerating properties you would need an additional counter codeObject keys obj forEach code could work but it only includes emown em properties codefor…in code includes enumerable properties anywhere on the prototype chain let are var with block scope const are unchanging codefor…in code iterates over property names not values and does so href https www ecma international org ecma 262 index html sec ordinary object internal methods and internal slots enumerate rel noreferrer in an unspecified order yes even after ES6 You shouldn’t use it to iterate over arrays For them there’s ES5’s codeforEach code method that passes both the value and the index to the function you give it ppre codevar myArray 123 15 187 32 myArray forEach function value console log value Outputs 123 15 187 32 code prepOr ES6’s href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array entries rel noreferrer codeArray prototype entries code which now has support across current browser versions ppre codefor const value of myArray entries console log value code prepFor iterables in general where you would use codefor…of code loop rather than codefor…in code there’s nothing built in however ppre codefunction enumerate iterable let for const of iterable yield for const obj of enumerate myArray console log obj code prep href https babeljs io repl evaluate true amp presets es2015 2Cstage amp code function 20enumerate iterable 20 7B 0A 20 20 20 20let 20i 20 3D 200 3B 0A 0A 20 20 20 20for 20 const 20x 20of 20iterable 20 7B 0A 20 20 20 20 20 20 20 20yield 20 5Bi 2C 20x 5D 3B 0A 20 20 20 20 20 20 20 20i 2B 2B 3B 0A 20 20 20 20 7D 0A 7D 0A 0Afor 20 const 20 5Bi 2C 20obj 5D 20of 20enumerate 5B 39 hello 39 2C 20 39 world 39 5D 20 7B 0A 20 20 20 20console log 2C 20obj 3B 0A 7D rel noreferrer strongdemo strong ppIf you actually did mean codefor…in code enumerating properties you would need an additional counter codeObject keys obj forEach code could work but it only includes emown em properties codefor…in code includes enumerable properties anywhere on the prototype chain In which example codefor…in code iterates over property names not values and does so href https www ecma international org ecma 262 index html sec ordinary object internal methods and internal slots enumerate rel noreferrer in an unspecified order yes even after ES6 You shouldn’t use it to iterate over arrays For them there’s ES5’s codeforEach code method that passes both the value and the index to the function you give it ppre codevar myArray 123 15 187 32 myArray forEach function value console log value Outputs 123 15 187 32 code prepOr ES6’s href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array entries rel noreferrer codeArray prototype entries code which now has support across current browser versions ppre codefor const value of myArray entries console log value code prepFor iterables in general where you would use codefor…of code loop rather than codefor…in code there’s nothing built in however ppre codefunction enumerate iterable let for const of iterable yield for const obj of enumerate myArray console log obj code prep href https babeljs io repl evaluate true amp presets es2015 2Cstage amp code function 20enumerate iterable 20 7B 0A 20 20 20 20let 20i 20 3D 200 3B 0A 0A 20 20 20 20for 20 const 20x 20of 20iterable 20 7B 0A 20 20 20 20 20 20 20 20yield 20 5Bi 2C 20x 5D 3B 0A 20 20 20 20 20 20 20 20i 2B 2B 3B 0A 20 20 20 20 7D 0A 7D 0A 0Afor 20 const 20 5Bi 2C 20obj 5D 20of 20enumerate 5B 39 hello 39 2C 20 39 world 39 5D 20 7B 0A 20 20 20 20console log 2C 20obj 3B 0A 7D rel noreferrer strongdemo strong ppIf you actually did mean codefor…in code enumerating properties you would need an additional counter codeObject keys obj forEach code could work but it only includes emown em properties codefor…in code includes enumerable properties anywhere on the prototype chain It does answer the question’s title See the last paragraph Also feel free to edit the title to reflect the question,1,NULL,SyntaxError Generator expression must be parenthezised python manage py migrate python django syntax error migrate pI really new in programming and wanted to follow the Djangogirls tutorial but stucked now In the tutorial am href https tutorial djangogirls org en django start project rel noreferrer here pblockquote pTo create database for our blog let run the following in the console python manage py migrate we need to be in the djangogirls directory that contains the manage py file If that goes well you should see something like this blockquotepThere is no option to fail in the tutorial but have an error message ppre code myvenv Users Julcsi djangogirls gt python manage py migrateTraceback most recent call last File manage py line 22 in lt module gt execute from command line sys argv File Users Julcsi djangogirls myvenv lib site packages django core management init py line 364 in execute from command lineutility execute File Users Julcsi djangogirls myvenv lib site packages django core management init py line 338 in executedjango setup File Users Julcsi djangogirls myvenv lib site packages django init py line 27 in setupapps populate settings INSTALLED APPS File Users Julcsi djangogirls myvenv lib site packages django apps registry py line 85 in populateapp config AppConfig create entry File Users Julcsi djangogirls myvenv lib site packages django apps config py line 94 in createmodule import module entry File Users Julcsi AppData Local Programs Python Python37 lib importlib init py line 127 in import modulereturn bootstrap gcd import name level package level File lt frozen importlib bootstrap gt line 994 in gcd importFile lt frozen importlib bootstrap gt line 971 in find and loadFile lt frozen importlib bootstrap gt line 955 in find and load unlockedFile lt frozen importlib bootstrap gt line 665 in load unlockedFile lt frozen importlib bootstrap external gt line 723 in exec moduleFile lt frozen importlib bootstrap gt line 219 in call with frames removeFile Users Julcsi djangogirls myvenv lib site packages django contrib admin init py line in lt module gt from django contrib admin filters import File Users Julcsi djangogirls myvenv lib site packages django contrib admin filters py line 10 in lt module gt from django contrib admin options import IncorrectLookupParametersFile Users Julcsi djangogirls myvenv lib site packages django contrib admin options py line 12 in lt module gt from django contrib admin import helpers widgetsFile Users Julcsi djangogirls myvenv lib site packages django contrib admin widgets py line 152 for in params items SyntaxError Generator expression must be parenthesized code prepWhat am doing wrong What should do ppI have Python 0b1 ppThanks lot in advance for the help pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime 53752,274221,459698,NULL,NULL,NULL,0,NULL,NULL 53753,22617,467661,Yearling Enlightened Necromancer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 53754,701128,646218,NULL,NULL,NULL,0,NULL,NULL 53755,1535565,854136,NULL,NULL,NULL,0,NULL,NULL 53756,2122605,913308,Notable Question,NULL,NULL,0,NULL,NULL 53757,1351416,347238,NULL,NULL,NULL,0,NULL,NULL 53758,301790,347238,NULL,NULL,NULL,0,NULL,NULL 53759,645795,1414130,NULL,NULL,NULL,0,NULL,NULL 53760,143752,973352,Supporter Teacher Necromancer Commentator Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 53761,297632,247674,Announcer,NULL,NULL,0,NULL,NULL 53762,704272,931925,Yearling Notable Question Nice Answer Census Yearling Nice Answer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 53763,69649,871913,Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53764,9329148,871913,Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53765,460386,1203891,NULL,NULL,NULL,0,NULL,NULL 53766,456611,1321164,NULL,NULL,NULL,0,NULL,NULL 53767,99441,1321164,NULL,NULL,NULL,0,NULL,NULL 53768,1372,1283599,NULL,NULL,NULL,0,NULL,NULL 53769,425699,762837,Notable Question Curious Popular Question Custodian Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 53770,22581,1194629,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 53771,203550,825829,Supporter,NULL,NULL,0,NULL,NULL 53772,717984,82660,Popular Question Nice Question Necromancer Necromancer Yearling Proofreader Organizer Announcer Explainer Unsung Hero powershell Yearling Necromancer Excavator Popular Question Nice Answer Revival Popular Question Documentation User Nice Answer Popular Question Nice Answer Yearling Nice Answer Good Answer Necromancer Necromancer,NULL,Starting non elevated prompt from elevated session powershell pI have some tool that doesn work if it runs from elevated session ppI am running elevated session in the context of administrative intall so this is mandatory so that is not changable ppOther then creating scheduled task and executing it is there anything else that is faster or friendlier pp strong EDIT strong ppThis is the command that needs unelevated run codevboxmanage list runningvms code ppI tried ppre coderunas trustlevel 0x20000 powershell exe noprofile noexit command iex vboxmanage list runningvms code prepand it returns nothing ppThis code works ppre codefunction Run NonElevated string cmd task name Run NonElevated New Guid schtasks Create RU Env USERNAME TN task name SC ONCE ST 00 00 TR cmd schtasks run tn task name schtasks delete tn task name Run NonElevated powershell NoProfile Command vboxmanage list runningvms Out File Env TEMP re out cat Users majkinetor AppData Local Temp re out test machine 31409fff c195 4a83 ab12 96bba020e051 code pre No it doesn see edited question Starting non elevated prompt from elevated session powershell pI have some tool that doesn work if it runs from elevated session ppI am running elevated session in the context of administrative intall so this is mandatory so that is not changable ppOther then creating scheduled task and executing it is there anything else that is faster or friendlier pp strong EDIT strong ppThis is the command that needs unelevated run codevboxmanage list runningvms code ppI tried ppre coderunas trustlevel 0x20000 powershell exe noprofile noexit command iex vboxmanage list runningvms code prepand it returns nothing ppThis code works ppre codefunction Run NonElevated string cmd task name Run NonElevated New Guid schtasks Create RU Env USERNAME TN task name SC ONCE ST 00 00 TR cmd schtasks run tn task name schtasks delete tn task name Run NonElevated powershell NoProfile Command vboxmanage list runningvms Out File Env TEMP re out cat Users majkinetor AppData Local Temp re out test machine 31409fff c195 4a83 ab12 96bba020e051 code pre No changes,1,Starting non elevated prompt from elevated session powershell pI have some tool that doesn work if it runs from elevated session ppI am running elevated session in the context of administrative intall so this is mandatory so that is not changable ppOther then creating scheduled task and executing it is there anything else that is faster or friendlier pp strong EDIT strong ppThis is the command that needs unelevated run codevboxmanage list runningvms code ppI tried ppre coderunas trustlevel 0x20000 powershell exe noprofile noexit command iex vboxmanage list runningvms code prepand it returns nothing ppThis code works ppre codefunction Run NonElevated string cmd task name Run NonElevated New Guid schtasks Create RU Env USERNAME TN task name SC ONCE ST 00 00 TR cmd schtasks run tn task name schtasks delete tn task name Run NonElevated powershell NoProfile Command vboxmanage list runningvms Out File Env TEMP re out cat Users majkinetor AppData Local Temp re out test machine 31409fff c195 4a83 ab12 96bba020e051 code pre,NULL 53773,131507,517249,NULL,NULL,NULL,0,NULL,NULL 53774,354451,504543,NULL,NULL,NULL,0,NULL,NULL 53775,1160010,913872,Nice Answer,NULL,NULL,0,NULL,NULL 53776,422168,832433,Yearling,NULL,NULL,0,NULL,NULL 53777,59548,385091,NULL,NULL,NULL,0,NULL,NULL 53778,796059,1121137,NULL,NULL,NULL,0,NULL,NULL 53779,141950,338107,NULL,NULL,NULL,0,NULL,NULL 53780,95930,1413962,NULL,NULL,NULL,0,NULL,NULL 53781,1376906,1101130,Good Answer Caucus Yearling Custodian Yearling,NULL,pAlthough you define the defaults settings they are not really stored as value They are stored as default If you try to read it the value is null Default setting is another property as value is But it doesnt mean that will write the default value as default ppWhat do is first check if some setting that sure that should have value has anything stored on it If it doesn have anything then write all the defaults ppHere is an example ppon AppDelegate check if strongemail notificaciones preference strong has value if not write ALL default settings to each setting ppre code BOOL application UIApplication application didFinishLaunchingWithOptions NSDictionary launchOptions NSUserDefaults standardUserDefaults NSUserDefaults standardUserDefaults NSString email notificaciones preference standardUserDefaults objectForKey email notificaciones preference if email notificaciones preference self registerDefaultsFromSettingsBundle code prepThis function is what use to write defaults to each element ppre code pragma NSUserDefaults void registerDefaultsFromSettingsBundle this function writes default settings as settings NSString settingsBundle NSBundle mainBundle pathForResource Settings ofType bundle if settingsBundle NSLog Could not find Settings bundle return NSDictionary settings NSDictionary dictionaryWithContentsOfFile settingsBundle stringByAppendingPathComponent Root plist NSArray preferences settings objectForKey PreferenceSpecifiers NSMutableDictionary defaultsToRegister NSMutableDictionary alloc initWithCapacity preferences count for NSDictionary prefSpecification in preferences NSString key prefSpecification objectForKey Key if key defaultsToRegister setObject prefSpecification objectForKey DefaultValue forKey key NSLog writing as default to the key prefSpecification objectForKey DefaultValue key NSUserDefaults standardUserDefaults registerDefaults defaultsToRegister code prepHope that helps use NSUserDefaults standardUserDefaults synchronize before retrieve data not after,0,NULL,NULL 53782,300224,404643,Informed,NULL,NULL,0,NULL,NULL 53783,179485,560352,NULL,NULL,NULL,0,NULL,NULL 53784,66432,790304,Popular Question Notable Question Nice Answer Enlightened Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Famous Question Nice Question Popular Question Famous Question Yearling Famous Question Nice Answer Popular Question Popular Question Yearling angularjs Popular Question Popular Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 53785,20478,660625,NULL,NULL,NULL,0,NULL,NULL 53786,1058141,507857,NULL,NULL,NULL,0,NULL,NULL 53787,1218284,201380,NULL,NULL,NULL,0,NULL,NULL 53788,114471,842622,Popular Question Notable Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 53789,324919,777825,NULL,NULL,NULL,0,NULL,NULL 53790,204255,1200070,Informed Autobiographer Popular Question Necromancer Yearling Nice Answer Necromancer Caucus Popular Question Nice Answer Popular Question Necromancer Yearling Nice Answer Notable Question Nice Question Nice Answer Popular Question Nice Answer Popular Question Notable Question Nice Question Yearling Good Answer Notable Question Notable Question Good Question Popular Question Famous Question Nice Question Popular Question Good Question Notable Question Famous Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 53791,10250,715599,NULL,NULL,NULL,0,NULL,NULL 53792,368703,623474,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 53793,188249,677203,NULL,NULL,NULL,0,NULL,NULL 53794,32877,784902,NULL,NULL,NULL,0,NULL,NULL 53795,1208064,1287143,NULL,NULL,NULL,0,NULL,NULL 53796,183870,1068461,NULL,NULL,NULL,0,NULL,NULL 53797,1228536,177776,Necromancer Necromancer Necromancer Nice Question Yearling Necromancer Nice Answer Nice Answer Popular Question Necromancer Revival Necromancer Nice Answer Necromancer Yearling Good Answer Good Answer Yearling,NULL,pMember with minimum score ppre codeZRANGEBYSCORE myset inf inf WITHSCORES LIMIT code prepMember with maximum score ppre codeZREVRANGEBYSCORE myset inf inf WITHSCORES LIMIT code pre It log so for billion entries it about 20 comparisons http www wolframalpha com input log 1bln,0,NULL,NULL 53798,566268,1534854,NULL,NULL,NULL,0,NULL,NULL 53799,5827096,321652,Necromancer Yearling Revival Autobiographer,NULL,NULL,0,NULL,NULL 53800,1512797,966802,Popular Question,NULL,NULL,0,NULL,NULL 53801,104189,560617,NULL,NULL,NULL,0,NULL,NULL 53802,1467386,1508737,NULL,NULL,NULL,0,NULL,NULL 53803,333911,124644,Notable Question,NULL,NULL,0,NULL,NULL 53804,9043,210421,Nice Answer Enlightened Good Answer Famous Question Guru Guru Yearling Good Question java Yearling Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 53805,238035,1480263,Popular Question Notable Question Popular Question Popular Question Civic Duty Popular Question Yearling Caucus Caucus Autobiographer Famous Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 53806,146427,90390,Promoter Famous Question Yearling,NULL,NULL,0,NULL,NULL 53807,66125,1160173,Caucus,NULL,NULL,0,NULL,NULL 53808,4045579,1160173,Caucus,NULL,NULL,0,NULL,NULL 53809,1106593,1055279,Notable Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Nice Question Famous Question Nice Answer Notable Question Popular Question Nice Question Notable Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Promoter Benefactor Favorite Question Good Question Popular Question Great Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Great Question Popular Question Popular Question Custodian Popular Question Popular Question Yearling Good Question Notable Question Nice Answer Popular Question Notable Question Famous Question Popular Question Electorate Notable Question Good Answer Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Revival Popular Question Popular Question Favorite Question Investor Altruist Yearling Famous Question Popular Question,NULL,pTo restart Jenkins manually you can use either of the following commands by entering their URL in browser pp code jenkins url safeRestart code Allows all running jobs to complete New jobs will remain in the queue to run after the restart is complete pp code jenkins url restart code Forces restart without waiting for builds to complete Is this not available in the web gui pYes that what most people do here are some npmignore files for popular Node js modules pp href https github com LearnBoost socket io blob master npmignore rel noreferrer https github com LearnBoost socket io blob master npmignore ppOther people whitelist what they want published in their codepackage json code codefiles code setting pp href https github com senchalabs connect blob master package json rel noreferrer https github com senchalabs connect blob master package json abr href https github com strongloop express blob master package json rel noreferrer https github com strongloop express blob master package json first link is broken,0,NULL,NULL 53810,462474,69868,Announcer javascript Revival Yearling Announcer Revival Excavator Necromancer Popular Question Announcer Good Answer Revival Nice Answer Nice Answer Yearling Announcer Necromancer Enlightened Nice Answer Custodian Yearling Announcer Nice Answer Nice Answer Nice Answer Enlightened Revival loopbackjs Informed Custodian Notable Question Announcer,NULL,NULL,0,NULL,NULL 53811,991034,11095,Nice Answer Good Answer Good Answer Nice Answer Yearling perl Guru Guru Student Yearling Nice Answer Census Caucus Yearling,NULL,NULL,0,NULL,NULL 53812,60016,632117,Yearling Nice Answer Revival Yearling Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 53813,63673,776103,NULL,NULL,NULL,0,NULL,NULL 53814,153294,957012,Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Revival Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 53815,340826,1032716,NULL,NULL,NULL,0,NULL,NULL 53816,381057,47193,Yearling Popular Question,NULL,NULL,0,NULL,NULL 53817,45009,448221,NULL,NULL,NULL,0,NULL,NULL 53818,3794,437271,NULL,NULL,NULL,0,NULL,NULL 53819,330489,1022303,NULL,NULL,NULL,0,NULL,NULL 53820,1328168,564375,NULL,NULL,NULL,0,NULL,NULL 53821,119797,564375,NULL,NULL,NULL,0,NULL,NULL 53822,845686,849108,NULL,NULL,NULL,0,NULL,NULL 53823,212261,136573,NULL,NULL,NULL,0,NULL,NULL 53824,1848181,436303,NULL,NULL,NULL,0,NULL,NULL 53825,7791,84631,Good Answer Curious Guru Nice Answer Yearling Popular Question Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Good Answer Yearling Great Answer Caucus Nice Answer Enlightened Constituent Custodian Good Answer Nice Answer Enlightened Good Answer Caucus Constituent Yearling Good Answer Nice Answer Enlightened Good Answer Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 53826,138755,1040160,NULL,NULL,NULL,0,NULL,NULL 53827,64805,686309,NULL,NULL,NULL,0,NULL,NULL 53828,1020437,1286425,NULL,NULL,NULL,0,NULL,NULL 53829,556927,171834,Commentator Notable Question Nice Answer Yearling Curious,NULL,NULL,0,NULL,NULL 53830,341746,112564,NULL,NULL,NULL,0,NULL,NULL 53831,306343,356020,Famous Question Nice Question Good Answer c++ Nice Answer Enlightened Revival Popular Question Notable Question Nice Answer Popular Question Yearling Nice Answer Revival Nice Question Popular Question Good Question Nice Answer Good Answer Nice Answer Good Answer Notable Question Guru Revival Popular Question Popular Question Popular Question Yearling Custodian Popular Question Popular Question Nice Question Famous Question Notable Question Notable Question Good Answer Necromancer Guru Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 53832,135542,712895,NULL,NULL,NULL,0,NULL,NULL 53833,6192315,1150735,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 53834,13706,3467,Popular Question Famous Question Famous Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Yearling Documentation User Nice Question Famous Question Notable Question Famous Question Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 53835,246207,670689,Yearling Caucus Custodian Caucus Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 53836,242816,823530,Revival,NULL,NULL,0,NULL,NULL 53837,384298,555553,Good Answer Nice Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Answer Notable Question Great Answer Nice Answer Enlightened Yearling Popular Question Caucus Famous Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 53838,20460,682023,NULL,NULL,NULL,0,NULL,NULL 53839,232484,3713,Necromancer javascript Nice Answer Enlightened Famous Question Popular Question Nice Answer Necromancer Notable Question Necromancer Popular Question Good Answer Yearling Good Answer Popular Question Caucus Great Answer Favorite Question Popular Question Custodian Famous Question Famous Question Notable Question Nice Answer Announcer Good Answer Great Question Caucus Yearling Nice Answer Enlightened Notable Question Nice Question Nice Answer Census Custodian Popular Question Great Answer Yearling Notable Question Popular Question,NULL,How to resolve merge conflicts in Git git git merge merge conflict resolution git conflict resolution pIs there good way to explain how to resolve merge conflicts in Git git status will show you quite clearly which files that are in conflict and needs to be merged manually,0,NULL,NULL 53840,471455,1318879,NULL,NULL,NULL,0,NULL,NULL 53841,647981,1040946,NULL,NULL,NULL,0,NULL,NULL 53842,358321,858525,Great Answer Curious Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 53843,395249,604599,Yearling Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53844,3347611,1209768,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53845,2055989,1024455,NULL,NULL,NULL,0,NULL,NULL 53846,158365,165737,Nice Answer Enlightened Nice Answer Good Answer Great Answer mootools Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Popular Question Good Answer Guru Good Answer Great Answer Enlightened Yearling Good Answer Nice Answer Good Answer Nice Answer html5 Nice Answer Good Answer Guru Great Answer Great Answer Good Answer Great Answer Guru Nice Answer Good Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling object Good Answer Nice Answer Good Answer Good Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Guru Popular Question Guru Nice Answer Enlightened Nice Answer Good Answer Guru Great Answer Nice Question Nice Question Good Answer Great Answer Nice Answer Yearling Great Answer Nice Answer Good Answer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 53847,309346,542993,Self-Learner Notable Question Famous Question Notable Question Yearling Notable Question Notable Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 53848,192389,381939,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53849,129840,1507707,NULL,NULL,NULL,0,NULL,NULL 53850,1385311,1337192,NULL,NULL,NULL,0,NULL,NULL 53851,186259,801163,NULL,NULL,NULL,0,NULL,NULL 53852,32932,1242240,NULL,NULL,NULL,0,NULL,NULL 53853,988,192810,Good Answer Good Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53854,706026,1453737,NULL,NULL,NULL,0,NULL,NULL 53855,1934,11687,Nice Answer Necromancer Nice Answer Favorite Question Yearling Civic Duty Nice Answer Good Answer Nice Answer Necromancer Nice Question Great Answer Yearling Popular Question Guru Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 53856,161685,845627,Populist Announcer Popular Question Yearling Caucus Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 53857,776232,1203878,NULL,NULL,NULL,0,NULL,NULL 53858,1509246,1203878,NULL,NULL,NULL,0,NULL,NULL 53859,1495355,1203878,NULL,NULL,NULL,0,NULL,NULL 53860,82963,912147,NULL,NULL,NULL,0,NULL,NULL 53861,146531,88905,Famous Question Good Answer Yearling Popular Question Nice Question Popular Question Popular Question Necromancer Famous Question Good Answer Famous Question Good Answer Popular Question Notable Question Notable Question Yearling python Favorite Question Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 53862,725327,1311555,NULL,NULL,NULL,0,NULL,NULL 53863,313418,630443,Famous Question Good Question Revival Yearling Good Question Notable Question java Nice Question Popular Question Electorate Custodian Famous Question Yearling Good Question Nice Question Famous Question Good Question Notable Question Popular Question Nice Question Yearling Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 53864,396485,1105315,NULL,NULL,NULL,0,NULL,NULL 53865,212186,60455,NULL,NULL,NULL,0,NULL,NULL 53866,642471,456042,Good Answer extjs Yearling Excavator Famous Question Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 53867,255824,605638,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 53868,348429,985398,Notable Question Nice Question Good Answer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 53869,1531495,1060752,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53870,459112,1060752,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 53871,1861555,652363,NULL,NULL,NULL,0,NULL,NULL 53872,1532493,762723,NULL,NULL,NULL,0,NULL,NULL 53873,162427,13354,NULL,NULL,NULL,0,NULL,NULL 53874,1231441,1366754,NULL,NULL,NULL,0,NULL,NULL 53875,639672,789353,NULL,NULL,NULL,0,NULL,NULL 53876,114519,31605,Yearling Caucus Necromancer Nice Answer Good Answer Yearling Commentator Populist Revival Yearling,NULL,NULL,0,NULL,NULL 53877,9137,121687,Famous Question Popular Question Nice Answer Good Question Explainer Notable Question Good Answer Nice Answer Enlightened Notable Question Yearling Nice Answer Good Answer Nice Answer Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Question tensorflow Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Question Nice Answer Notable Question Popular Question Good Answer Nice Answer Enlightened Guru Good Answer Yearling Famous Question Good Answer Good Answer Nice Answer Famous Question Nice Answer Popular Question Nice Answer Popular Question c++ Nice Answer Enlightened Nice Answer Great Answer Great Question Good Answer Popular Question Nice Answer Popular Question Nice Answer Inquisitive Nice Answer Nice Answer Enlightened Popular Question Great Answer Popular Question Nice Answer Guru Great Answer Good Question Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 53878,43773,1010103,NULL,NULL,NULL,0,NULL,NULL 53879,415035,379109,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53880,49992,1418867,Announcer,NULL,NULL,0,NULL,NULL 53881,169643,1127067,NULL,NULL,NULL,0,NULL,NULL 53882,69965,752437,NULL,NULL,NULL,0,NULL,NULL 53883,305706,1035720,Popular Question,NULL,NULL,0,NULL,NULL 53884,129625,980684,NULL,NULL,NULL,0,NULL,NULL 53885,2181,492254,Necromancer Necromancer Custodian Popular Question Nice Answer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 53886,290341,589092,Self-Learner,NULL,NULL,0,NULL,NULL 53887,80120,209050,Popular Question Necromancer Notable Question Popular Question Nice Question Notable Question Popular Question Populist Notable Question Nice Answer Notable Question Good Question Tumbleweed Nice Answer Yearling Good Question Popular Question Census Necromancer Famous Question Nice Question Custodian Revival Revival Announcer Necromancer Announcer Nice Answer Necromancer Announcer Guru Necromancer Announcer Yearling Popular Question Nice Answer Enlightened Announcer Announcer Great Question Nice Question Great Answer Good Answer Popular Question Nice Answer Yearling Enthusiast,NULL,NULL,0,NULL,NULL 53888,605415,337367,NULL,NULL,NULL,0,NULL,NULL 53889,234113,1501835,Curious Popular Question,NULL,NULL,0,NULL,NULL 53890,508535,51466,Yearling Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 53891,307576,1175331,NULL,NULL,NULL,0,NULL,NULL 53892,14942,349275,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53893,1094001,1213788,NULL,NULL,NULL,0,NULL,NULL 53894,456840,619273,NULL,NULL,NULL,0,NULL,NULL 53895,28552,8325,Great Answer Yearling Good Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 53896,162672,677510,NULL,NULL,NULL,0,NULL,NULL 53897,13615,399047,NULL,NULL,NULL,0,NULL,NULL 53898,1060891,569531,Necromancer Yearling Custodian Popular Question Popular Question Census Notable Question Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 53899,235603,745320,Student,NULL,NULL,0,NULL,NULL 53900,1030703,1017571,Curious Investor Altruist,NULL,NULL,0,NULL,NULL 53901,78877,120210,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 53902,46376,287856,Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 53903,757994,1480399,NULL,NULL,NULL,0,NULL,NULL 53904,337217,1107253,Popular Question Yearling Good Question Popular Question Critic Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53905,438579,1204525,Teacher Supporter,NULL,NULL,0,NULL,NULL 53906,691776,491618,NULL,NULL,NULL,0,NULL,NULL 53907,365348,1048576,Teacher Famous Question Popular Question Caucus Constituent Curious Critic Caucus,NULL,NULL,0,NULL,NULL 53908,2227984,895173,Popular Question,NULL,NULL,0,NULL,NULL 53909,84535,139063,Popular Question Notable Question Yearling Yearling Documentation User Notable Question Custodian Notable Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 53910,335954,1261078,NULL,NULL,NULL,0,NULL,NULL 53911,553232,421860,Revival Commentator,NULL,NULL,0,NULL,NULL 53912,271627,806736,Yearling Nice Answer Tumbleweed Curious Caucus Constituent Notable Question Yearling Custodian Census Nice Answer Quorum Yearling,NULL,NULL,0,NULL,NULL 53913,6968,796889,NULL,NULL,NULL,0,NULL,NULL 53914,747523,1387484,Nice Question Good Answer Yearling android Curious Notable Question Popular Question Caucus Constituent Nice Question Custodian Yearling Popular Question Caucus Peer Pressure Documentation User Census Caucus Proofreader Yearling Reviewer Famous Question,NULL,NULL,0,NULL,NULL 53915,543168,940699,NULL,NULL,NULL,0,NULL,NULL 53916,2185152,1498075,NULL,NULL,NULL,0,NULL,NULL 53917,83196,818209,Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Necromancer Self-Learner Famous Question Custodian Necromancer Notable Question Famous Question Nice Question Inquisitive Popular Question Popular Question Famous Question Nice Answer Yearling Notable Question Popular Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 53918,7851,1190124,NULL,NULL,NULL,0,NULL,NULL 53919,134783,732705,NULL,NULL,NULL,0,NULL,NULL 53920,196086,89189,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53921,147320,1154706,NULL,NULL,NULL,0,NULL,NULL 53922,44845,655390,NULL,NULL,NULL,0,NULL,NULL 53923,190461,124861,Custodian Notable Question Yearling Nice Answer Popular Question Nice Answer Census Notable Question Good Question Yearling Caucus Census Caucus Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 53924,447,1413984,Editor,NULL,NULL,0,NULL,NULL 53925,212345,902599,Editor,NULL,NULL,0,NULL,NULL 53926,7068157,1031602,Student,NULL,NULL,0,NULL,NULL 53927,1853091,467310,Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 53928,147031,565675,NULL,NULL,NULL,0,NULL,NULL 53929,308808,1007240,Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question Caucus Constituent Self-Learner Citizen Patrol Yearling Nice Question Popular Question Yearling Caucus Popular Question Nice Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 53930,1028988,235643,NULL,NULL,NULL,0,NULL,NULL 53931,143652,1201306,NULL,NULL,NULL,0,NULL,NULL 53932,7132,625848,Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 53933,113289,901179,Notable Question Self-Learner Popular Question Notable Question Caucus Constituent Custodian Yearling Popular Question Caucus Constituent Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53934,212467,1174827,NULL,NULL,NULL,0,NULL,NULL 53935,82063,674473,NULL,NULL,NULL,0,NULL,NULL 53936,158509,677232,NULL,NULL,NULL,0,NULL,NULL 53937,46154,5126,Excavator,NULL,NULL,0,NULL,NULL 53938,304409,871127,Popular Question,NULL,NULL,0,NULL,NULL 53939,662058,1341352,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 53940,73847,397141,NULL,NULL,NULL,0,NULL,NULL 53941,336505,142061,Self-Learner Yearling Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 53942,264286,1375805,NULL,NULL,NULL,0,NULL,NULL 53943,101102,1091420,NULL,NULL,NULL,0,NULL,NULL 53944,156084,609096,NULL,NULL,NULL,0,NULL,NULL 53945,889948,585043,NULL,NULL,NULL,0,NULL,NULL 53946,13753,146612,Nice Answer Yearling Revival Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 53947,97064,1010094,Nice Question Popular Question Teacher Yearling Self-Learner,NULL,NULL,0,NULL,NULL 53948,3023,1425780,Yearling Documentation Pioneer Documentation User Nice Answer Enlightened Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 53949,811810,491881,Critic Necromancer Caucus Nice Answer Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 53950,1222764,1069450,NULL,NULL,NULL,0,NULL,NULL 53951,16021,143409,Yearling Notable Question,NULL,NULL,0,NULL,NULL 53952,304334,634824,Nice Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Publicist Popular Question Notable Question json.net Yearling Notable Question Popular Question Nice Answer Nice Question Nice Answer Great Answer Nice Answer Popular Question Announcer Good Question Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Great Question Notable Question Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Necromancer sql-server Announcer Guru Nice Answer Popular Question Announcer Nice Answer Nice Answer momentjs node.js Nice Answer Nice Answer json Necromancer Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Good Answer Popular Question Revival Notable Question Good Answer Favorite Question Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened nodatime Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Booster Popular Question Nice Question Announcer Necromancer Good Answer Announcer Booster Guru Great Answer Good Answer Publicist Nice Question Nice Answer Good Answer date Famous Question Necromancer Notable Question Revival Guru Nice Answer Enlightened Popular Question Famous Question Nice Answer time Good Answer Necromancer Good Answer Great Answer Good Answer timezoneoffset Proofreader Necromancer Yearling Nice Answer Enlightened Announcer Good Answer Good Answer Great Answer Guru Nice Answer Nice Question Popular Question Nice Answer Guru Great Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Announcer Announcer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Announcer Good Answer Announcer Nice Answer Necromancer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Good Answer pytz Great Answer Announcer Nice Question Nice Answer Enlightened Great Answer Booster Necromancer Necromancer Nice Answer Enlightened Notable Question Good Answer Announcer Nice Answer Enlightened Announcer Good Answer Necromancer Caucus Constituent Announcer Good Answer Nice Answer Enlightened sql Good Answer Announcer Announcer Announcer Necromancer Nice Answer Announcer Nice Answer Enlightened jodatime Great Answer Good Answer Announcer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Announcer Famous Question Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Famous Question Nice Answer Enlightened Booster Good Answer Nice Answer Necromancer Announcer Deputy Announcer Good Answer dst Famous Question Good Answer Stellar Question Good Answer Announcer Announcer Good Answer Populist Nice Answer Enlightened Nice Question Announcer Announcer Nice Answer Enlightened Good Answer Publicist Announcer Booster Nice Answer Good Answer Announcer Good Answer Announcer asp.net-web-api Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Nice Answer Announcer Good Answer Nice Question Yearling Good Answer Good Answer Nice Answer Good Answer Necromancer Announcer Guru Nice Answer Enlightened Good Answer Guru Nice Answer Caucus Nice Answer Enlightened Good Answer Nice Answer Enlightened timespan Nice Answer Enlightened utc Good Answer Nice Answer Enlightened Popular Question Guru Announcer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Necromancer asp.net-mvc Nice Answer Announcer Great Question Good Answer Booster Nice Answer Necromancer Good Answer Good Answer Nice Answer Good Answer Good Answer Popular Question Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Popular Question Good Answer Publicist Great Answer Good Question Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Notable Question Nice Answer Enlightened,NULL,Java Date and Time parse ISO 8601 string without colon in offset java datetime iso8601 timezoneoffset datetime parsing pWe try to parse the following ISO 8601 DateTime String with timezone offset ppre class lang java prettyprint override codefinal String input 2022 03 17T23 00 00 000 0000 OffsetDateTime parse input LocalDateTime parse input DateTimeFormatter ISO OFFSET DATE TIME code prepBoth approaches fail which makes sense as codeOffsetDateTime code also use the codeDateTimeFormatter ISO OFFSET DATE TIME code because of the colon in the timezone offset pblockquote pjava time format DateTimeParseException Text 2022 03 17T23 00 00 000 0000 could not be parsed at index 23 blockquotepBut according to href https en wikipedia org wiki ISO 8601 Time zone designators rel noreferrer Wikipedia there are valid formats for timezone offset ppre code lt time gt lt time gt ±hh mm lt time gt ±hhmm lt time gt ±hh code prepOther frameworks languages can parse this string without any issues the Javascript codeDate code or Jacksons codeISO8601Utils code they discuss this issue href https github com FasterXML jackson databind issues 919 rel noreferrer here ppNow we could write our own codeDateTimeFormatter code with complex RegEx but in my opinion the codejava time code library should be able to parse this valid ISO 8601 string by default as it is valid one ppFor now we use Jacksons codeISO8601DateFormat code but we would prefer to use the official codedate time code library to work with What would be your approach to tackle this issue ISO 8601 allows offsets without colon in the basic format and offsets with colon in the extended format However it doesn allow one to mix and match Here we see the date and time portions in extended format having hyphens and colons but the offset in basic format which is not strictly compliant h3Background h3pJavaScript codeDate code object tracks time in UTC internally but typically accepts input and output in the local time of the computer it running on It doesn have any facilities for working with time in other time zones You can parse and output dates that are UTC or Local but you can directly work with other time zones ppTo be absolutely precise the internal representation of codeDate code object is single number representing the number of milliseconds that have elapsed since code1970 01 01 00 00 00 UTC code without regard to leap seconds strongThere is no time zone or string format stored in the Date object itself strong When various functions of the codeDate code object are used the computer local time zone is applied to the internal representation If the function produces string then the computer locale information may be taken into consideration to determine how to produce that string The details vary per function and some are implementation specific ph3Libraries h3pFortunately there are libraries that can accomplish this They implement the standard Olson IANA timezone database in JavaScript Some have overhead if you are running in web browser as the database can get bit large if you want the whole thing Fortunately many of these libraries allow you to selectively choose which zones you want to support making the data size much more palatable Also some use modern features to get time zone data from the codeIntl code API instead of having to ship it themselves ppThere are several libraries for this that am aware of pulli href https moment github io luxon index html rel nofollow noreferrer Luxon successor of href https momentjs com rel nofollow noreferrer Moment js lili href https momentjs com timezone rel nofollow noreferrer moment timezone extension for href https momentjs com rel nofollow noreferrer Moment js lili href https js joda github io js joda rel nofollow noreferrer js joda js port of Java href https www threeten org rel nofollow noreferrer ThreeTen lili href https github com marnusw date fns tz rel nofollow noreferrer date fns tz href https github com prantlf date fns timezone rel nofollow noreferrer date fns timezone extensions for href https date fns org rel nofollow noreferrer date fns lili href https github com bigeasy timezone rel nofollow noreferrer BigEasy TimeZone lili href https github com sproutsocial walltime js rel nofollow noreferrer WallTime js discontinued lili href https github com mde timezone js rel nofollow noreferrer TimeZoneJS lili href https github com dbaron tz js rel nofollow noreferrer tz js li ulpLuxon is probably the safest bet for all modern usage and is the lightest weight as it uses the codeIntl code API for its timezone data ppMoment timezone is an extension to href https momentjs com rel nofollow noreferrer moment js and brings its own time zone data ppjs joda is JavaScript implementation of the Joda Time API from Java and includes time zone support through separate module ppdate fns tz is an extension for href https date fns org rel nofollow noreferrer date fns date fns timezone is an extension for href https date fns org rel nofollow noreferrer date fns ppBigEasy TimeZone also appears to be on the right track ppWallTime js href https github com sproutsocial walltime js issues 49 issuecomment 182172085 rel nofollow noreferrer has reached end of life and the owners are migrating to moment timezone ppTimeZoneJS has been around the longest but is known to have some long standing bugs especially near daylight saving time transitions Hopefully these will be fixed at some point in the future pptz js has also been around for some time but isn very well documented IMHO ppYou should evaluate these libraries to see which will meet your needs If unsure go with moment moment timezone ph3Native Support in Modern Browsers h3pIf you can limit your usage to modern web browsers you can now do the following without any special libraries ppre codenew Date toLocaleString en US timeZone America New York code prepThis isn comprehensive solution but it works for many scenarios that require only output conversion from UTC or local time to specific time zone but not the other direction This is part of the ECMAScript Internationalization API ECMA 402 See href https stackoverflow com 17478086 634824 this post for more details href https kangax github io compat table esintl rel nofollow noreferrer This compatibility table tracks which versions are supported This is the codeIntl code API mentioned above that certain libraries are using internally now ph3Future Proposals h3pThe href https github com tc39 proposal temporal rel nofollow noreferrer TC39 Temporal Proposal aims to provide new set of standard objects for working with dates and times in the JavaScript language itself This will include support for time zone aware object that is Rhino specific implementation but even then if you scroll to the very bottom you ll see that private double date is the only instance field Everything else is static and primarily there for caching environment provided values It not something tracked per instance or something you can modify easily h3Background h3pJavaScript codeDate code object tracks time in UTC internally but typically accepts input and output in the local time of the computer it running on It doesn have any facilities for working with time in other time zones You can parse and output dates that are UTC or Local but you can directly work with other time zones ppTo be absolutely precise the internal representation of codeDate code object is single number representing the number of milliseconds that have elapsed since code1970 01 01 00 00 00 UTC code without regard to leap seconds strongThere is no time zone or string format stored in the Date object itself strong When various functions of the codeDate code object are used the computer local time zone is applied to the internal representation If the function produces string then the computer locale information may be taken into consideration to determine how to produce that string The details vary per function and some are implementation specific ph3Libraries h3pFortunately there are libraries that can accomplish this They implement the standard Olson IANA timezone database in JavaScript Some have overhead if you are running in web browser as the database can get bit large if you want the whole thing Fortunately many of these libraries allow you to selectively choose which zones you want to support making the data size much more palatable Also some use modern features to get time zone data from the codeIntl code API instead of having to ship it themselves ppThere are several libraries for this that am aware of pulli href https moment github io luxon index html rel nofollow noreferrer Luxon successor of href https momentjs com rel nofollow noreferrer Moment js lili href https momentjs com timezone rel nofollow noreferrer moment timezone extension for href https momentjs com rel nofollow noreferrer Moment js lili href https js joda github io js joda rel nofollow noreferrer js joda js port of Java href https www threeten org rel nofollow noreferrer ThreeTen lili href https github com marnusw date fns tz rel nofollow noreferrer date fns tz href https github com prantlf date fns timezone rel nofollow noreferrer date fns timezone extensions for href https date fns org rel nofollow noreferrer date fns lili href https github com bigeasy timezone rel nofollow noreferrer BigEasy TimeZone lili href https github com sproutsocial walltime js rel nofollow noreferrer WallTime js discontinued lili href https github com mde timezone js rel nofollow noreferrer TimeZoneJS lili href https github com dbaron tz js rel nofollow noreferrer tz js li ulpLuxon is probably the safest bet for all modern usage and is the lightest weight as it uses the codeIntl code API for its timezone data ppMoment timezone is an extension to href https momentjs com rel nofollow noreferrer moment js and brings its own time zone data ppjs joda is JavaScript implementation of the Joda Time API from Java and includes time zone support through separate module ppdate fns tz is an extension for href https date fns org rel nofollow noreferrer date fns date fns timezone is an extension for href https date fns org rel nofollow noreferrer date fns ppBigEasy TimeZone also appears to be on the right track ppWallTime js href https github com sproutsocial walltime js issues 49 issuecomment 182172085 rel nofollow noreferrer has reached end of life and the owners are migrating to moment timezone ppTimeZoneJS has been around the longest but is known to have some long standing bugs especially near daylight saving time transitions Hopefully these will be fixed at some point in the future pptz js has also been around for some time but isn very well documented IMHO ppYou should evaluate these libraries to see which will meet your needs If unsure go with moment moment timezone ph3Native Support in Modern Browsers h3pIf you can limit your usage to modern web browsers you can now do the following without any special libraries ppre codenew Date toLocaleString en US timeZone America New York code prepThis isn comprehensive solution but it works for many scenarios that require only output conversion from UTC or local time to specific time zone but not the other direction This is part of the ECMAScript Internationalization API ECMA 402 See href https stackoverflow com 17478086 634824 this post for more details href https kangax github io compat table esintl rel nofollow noreferrer This compatibility table tracks which versions are supported This is the codeIntl code API mentioned above that certain libraries are using internally now ph3Future Proposals h3pThe href https github com tc39 proposal temporal rel nofollow noreferrer TC39 Temporal Proposal aims to provide new set of standard objects for working with dates and times in the JavaScript language itself This will include support for time zone aware object The Date UTC function is computing the timestamp based on UTC inputs is all The output of toString will be the local time equivalent and will show the local time zone offset name or abbreviation How to get time zone from location using latitude and longitude coordinates geolocation timezone latitude longitude pThere are too many questions on StackOverflow about resolving time zone from location This community wiki is an attempt at consolidating all of the valid responses ppPlease update my answer or add your own as you see fit pp strongThe Question strong brGiven the latitude and longitude of location how does one know what time zone is in effect in that location ppIn most cases we are looking for an IANA Olson time zone id although some services may return just UTC offset or some other time zone identifier Please read the href https stackoverflow com tags timezone info timezone tag info for details lat lon are enough to determine time zone with one of the options here For example 55 75 37 62 is enough to get Europe Moscow You ll need timestamp and time zone database to determine the offset from UTC for that location at given time For example Europe Moscow 2016 01 01T00 00 00 UTC but Europe Moscow 2014 01 01T00 00 00 UTC See time zone offset in the timezone tag wiki http stackoverflow com tags timezone info How to get time zone from location using latitude and longitude coordinates geolocation timezone latitude longitude pThere are too many questions on StackOverflow about resolving time zone from location This community wiki is an attempt at consolidating all of the valid responses ppPlease update my answer or add your own as you see fit pp strongThe Question strong brGiven the latitude and longitude of location how does one know what time zone is in effect in that location ppIn most cases we are looking for an IANA Olson time zone id although some services may return just UTC offset or some other time zone identifier Please read the href https stackoverflow com tags timezone info timezone tag info for details As far as the boundaries themselves go there are some historical differences from year to year as border disputes start or end However when shift like the one Arnial described occurs the tzdb creates new time zone for the affected region so all time in that region is accounted for including historical differences We call this zone split good Russian example would be Europe Astrakhan which split away from Europe Volgograd with tzdb 2016b pIn general scheduling emfuture em events is complex subject You have to make distinction in the context of what is going to be scheduled pulli pDoes the event occur at emspecific em universal instant in time If so you should record the event time in terms of UTC ppFor example task that runs every 24 hours would be scheduled by UTC time and emnot em by the local time It might start off at some local midnight but as href https stackoverflow com tags dst info daylight saving time changes take effect it could be running at 23 00 or 01 00 by the local clock lili pHowever if the event is scheduled by human beings it is likely to be in terms of local time so you should record it that way ppFor example meeting that occurs at 08 00 Eastern Time will always occur at that emlocal em time In the winter that would be 13 00 UTC and in the summer it would be at 12 00 UTC ppSo in this context you emcannot em record the scheduled start time in terms of UTC This is very common mistake as there is ton of advice on the Internet that says em always store using UTC em which would be wrong in this scenario ppInstead you should store two values the emlocal time em such as code08 00 code and its IANA time zone identifier such as codeAmerica New York code You may also need to store recurrence pattern or specific date depending on how the event is scheduled lili pConsider using href http www joda org joda time rel noreferrer Joda Time instead of Java codeCalendar code or codeDate code classess It will save you from many headaches Make sure you read the Joda Time documentation and understand how it works ppJoda Time has all of the functions you will need for converting between one time zone and another which believe was the primary concern of your question lili pBe sure to have procedure in place for href http www joda org joda time tz update html rel noreferrer updating the href http www iana org time zones rel noreferrer time zone data regularly Updates are pushed out multiple times year as the governments of the world make changes to the legal definitions of their time zones You cannot just deploy it once and forget about it lili pAlso be sure you understand that conversion from local time to specific UTC moment is not perfect function due to href https stackoverflow com tags dst info daylight saving time If an event is scheduled during an invalid or ambiguous local time you should have strategy for detecting and dealing with that in your application You might just apply some assumptions or you might want to go out of your way to ask the user what to do ppFor example if schedule an event at 00 AM Eastern Time every day then on March 10th 2013 that time does not exist Should the event occur at 00 AM Or should it not occur at all ppAnother example if schedule an event at 00 AM Eastern Time every day then on November 3rd 2013 that time occurs emtwice em Should the event happen at the first daylight time instance Or at the second standard time instance Or both Should assume one or the other or should ask the user which they mean ppOnly you can decide what to do as it is your application But ignoring the problem will likely lead to errors lili pOnce an event has passed you can record it in UTC if you wish or record it with the full local date time and offset Either are acceptable This works just fine for singular past events just not for recurring future ones li ul Sure you can My daily standup is at 10 00 AM Pacific It was at 10 00 Pacific last week before the US DST change and it still at 10 00 Pacific this week after the US DST change Reflecting the daily occurrence time in any other manner including UTC would mean cancelling the meeting and scheduling new one pIn general scheduling emfuture em events is complex subject You have to make distinction in the context of what is going to be scheduled pulli pDoes the event occur at emspecific em universal instant in time If so you should record the event time in terms of UTC ppFor example task that runs every 24 hours would be scheduled by UTC time and emnot em by the local time It might start off at some local midnight but as href https stackoverflow com tags dst info daylight saving time changes take effect it could be running at 23 00 or 01 00 by the local clock lili pHowever if the event is scheduled by human beings it is likely to be in terms of local time so you should record it that way ppFor example meeting that occurs at 08 00 Eastern Time will always occur at that emlocal em time In the winter that would be 13 00 UTC and in the summer it would be at 12 00 UTC ppSo in this context you emcannot em record the scheduled start time in terms of UTC This is very common mistake as there is ton of advice on the Internet that says em always store using UTC em which would be wrong in this scenario ppInstead you should store two values the emlocal time em such as code08 00 code and its IANA time zone identifier such as codeAmerica New York code You may also need to store recurrence pattern or specific date depending on how the event is scheduled lili pConsider using href http www joda org joda time rel noreferrer Joda Time instead of Java codeCalendar code or codeDate code classess It will save you from many headaches Make sure you read the Joda Time documentation and understand how it works ppJoda Time has all of the functions you will need for converting between one time zone and another which believe was the primary concern of your question lili pBe sure to have procedure in place for href http www joda org joda time tz update html rel noreferrer updating the href http www iana org time zones rel noreferrer time zone data regularly Updates are pushed out multiple times year as the governments of the world make changes to the legal definitions of their time zones You cannot just deploy it once and forget about it lili pAlso be sure you understand that conversion from local time to specific UTC moment is not perfect function due to href https stackoverflow com tags dst info daylight saving time If an event is scheduled during an invalid or ambiguous local time you should have strategy for detecting and dealing with that in your application You might just apply some assumptions or you might want to go out of your way to ask the user what to do ppFor example if schedule an event at 00 AM Eastern Time every day then on March 10th 2013 that time does not exist Should the event occur at 00 AM Or should it not occur at all ppAnother example if schedule an event at 00 AM Eastern Time every day then on November 3rd 2013 that time occurs emtwice em Should the event happen at the first daylight time instance Or at the second standard time instance Or both Should assume one or the other or should ask the user which they mean ppOnly you can decide what to do as it is your application But ignoring the problem will likely lead to errors lili pOnce an event has passed you can record it in UTC if you wish or record it with the full local date time and offset Either are acceptable This works just fine for singular past events just not for recurring future ones li ul Even if there are those that are in different time zone the meeting itself is scheduled based on some particular time zone That is the originating event Sure our DST shift could mean it ends up in some other time for someone in different zone but that doesn mean you change the meeting to be scheduled in UTC pIn general scheduling emfuture em events is complex subject You have to make distinction in the context of what is going to be scheduled pulli pDoes the event occur at emspecific em universal instant in time If so you should record the event time in terms of UTC ppFor example task that runs every 24 hours would be scheduled by UTC time and emnot em by the local time It might start off at some local midnight but as href https stackoverflow com tags dst info daylight saving time changes take effect it could be running at 23 00 or 01 00 by the local clock lili pHowever if the event is scheduled by human beings it is likely to be in terms of local time so you should record it that way ppFor example meeting that occurs at 08 00 Eastern Time will always occur at that emlocal em time In the winter that would be 13 00 UTC and in the summer it would be at 12 00 UTC ppSo in this context you emcannot em record the scheduled start time in terms of UTC This is very common mistake as there is ton of advice on the Internet that says em always store using UTC em which would be wrong in this scenario ppInstead you should store two values the emlocal time em such as code08 00 code and its IANA time zone identifier such as codeAmerica New York code You may also need to store recurrence pattern or specific date depending on how the event is scheduled lili pConsider using href http www joda org joda time rel noreferrer Joda Time instead of Java codeCalendar code or codeDate code classess It will save you from many headaches Make sure you read the Joda Time documentation and understand how it works ppJoda Time has all of the functions you will need for converting between one time zone and another which believe was the primary concern of your question lili pBe sure to have procedure in place for href http www joda org joda time tz update html rel noreferrer updating the href http www iana org time zones rel noreferrer time zone data regularly Updates are pushed out multiple times year as the governments of the world make changes to the legal definitions of their time zones You cannot just deploy it once and forget about it lili pAlso be sure you understand that conversion from local time to specific UTC moment is not perfect function due to href https stackoverflow com tags dst info daylight saving time If an event is scheduled during an invalid or ambiguous local time you should have strategy for detecting and dealing with that in your application You might just apply some assumptions or you might want to go out of your way to ask the user what to do ppFor example if schedule an event at 00 AM Eastern Time every day then on March 10th 2013 that time does not exist Should the event occur at 00 AM Or should it not occur at all ppAnother example if schedule an event at 00 AM Eastern Time every day then on November 3rd 2013 that time occurs emtwice em Should the event happen at the first daylight time instance Or at the second standard time instance Or both Should assume one or the other or should ask the user which they mean ppOnly you can decide what to do as it is your application But ignoring the problem will likely lead to errors lili pOnce an event has passed you can record it in UTC if you wish or record it with the full local date time and offset Either are acceptable This works just fine for singular past events just not for recurring future ones li ul Also Use UTC Everywhere is shortsighted Besides scheduling rules date only values such as birth dates also need to be left alone and not converted to UTC pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre That wouldn work anyway From the MSDN docs https msdn microsoft com en us library ms188037 aspx Transact SQL statement cannot occupy the same line as GO command pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre Slight adjustment to regex to account for GO count and clean up spacing pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre The regex approach covers many more edge cases Also updated the regex one more time just to make it cleaner It still matches on the items previously discussed pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre Thanks but adding and everywhere doesn make sense here nor does removing the space character The things that need to be matched are always single line statements starting with GO optionally followed by number optionally followed by comment The components of the statement cannot be split across multiple lines will see if can improve the regex from what it was but this last edit doesn make sense pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre rolled back to my prior regex as it matches just fine not sure why you and others say it dosn Please take look at the proof here https regex101 com hPDmvR pAs others mentioned split your string by codeGO code statements But be careful you may have the text code GO code in other parts of your script You might also have whitespace before or after the GO statement and you might have comments on the line after the GO statement also Any of that would be valid in SSMS so you may want to test for it ppHere is the method use ppre codeprivate static IEnumerable lt string gt SplitSqlStatements string sqlScript Split by GO statements var statements Regex Split sqlScript GO RegexOptions Multiline RegexOptions IgnorePatternWhitespace RegexOptions IgnoreCase Remove empties trim and return return statements Where gt string IsNullOrWhiteSpace Select gt Trim code pre Did you take just the regex or the entire method Especially the multiline option is critical on the regex codeDateTimeOffset code is representation of eminstantaneous time em also known as emabsolute time em By that mean moment in time that is universal for everyone not accounting for href https en wikipedia org wiki Leap second leap seconds or the relativistic effects of href https en wikipedia org wiki Time dilation time dilation Another way to represent instantaneous time is with codeDateTime code where code Kind code is codeDateTimeKind Utc code ppThis is distinct from emcalendar time em also known as emcivil time em which is position on someone calendar and there are many different calendars all over the globe We call these calendars emtime zones em Calendar time is represented by codeDateTime code where code Kind code is codeDateTimeKind Unspecified code or codeDateTimeKind Local code And code Local code is only meaningful in scenarios where you have an implied understanding of where the computer that is using the result is positioned For example user workstation ppSo then why codeDateTimeOffset code instead of UTC codeDateTime code strongIt all about perspective strong Let use an analogy we ll pretend to be photographers ppImagine you are standing on calendar timeline pointing camera at person on the instantaneous timeline laid out in front of you You line up your camera according to the rules of your timezone which change periodically due to daylight saving time or due to other changes to the legal definition of your time zone You don have steady hand so your camera is shaky ppThe person standing in the photo would see the angle at which your camera came from If others were taking pictures they could be from different angles This is what the codeOffset code part of the codeDateTimeOffset code represents ppSo if you label your camera Eastern Time sometimes you are pointing from and sometimes you are pointing from There are cameras all over the world all labeled different things and all pointing at the same instantaneous timeline from different angles Some of them are right next to or on top of each other so just knowing the offset isn enough to determine which timezone the time is related to ppAnd what about UTC Wel,,, " it the one camera out there that is guaranteed to have steady hand It on tripod firmly anchored into the ground It not going anywhere We call its angle of perspective the zero offset pp img src https stack imgur com QE5xq png alt Instantaneous Time vs Calendar Time Visualization ppSo what does this analogy tell us It provides some intuitive guidelines pulli pIf you are representing time relative to some place in particular represent it in calendar time with codeDateTime code Just be sure you don ever confuse one calendar with another codeUnspecified code should be your assumption codeLocal code is only useful coming from codeDateTime Now code For example might get codeDateTime Now code and save it in database but when retrieve it have to assume that it is codeUnspecified code can rely that my local calendar is the same calendar that it was originally taken from lili pIf you must always be certain of the moment make sure you are representing instantaneous time Use codeDateTimeOffset code to enforce it or use UTC codeDateTime code by convention lili pIf you need to track moment of instantaneous time but you want to also know What time did the user think it was on their local calendar then you emmust em use codeDateTimeOffset code This is very important for timekeeping systems for example both for technical and legal concerns lili pIf you ever need to modify previously recorded codeDateTimeOffset code you don have enough information in the offset alone to ensure that the new offset is still relevant for the user You must emalso em store timezone identifier think need the name of that camera so can take new picture even if the position has changed ppIt should also be pointed out that href http nodatime org Noda Time has representation called codeZonedDateTime code for this while the Net base class library does not have anything similar You would need to store both codeDateTimeOffset code and codeTimeZoneInfo Id code value lili pOccasionally you will want to represent calendar time that is local to whomever is looking at it For example when defining what emtoday em means Today is always midnight to midnight but these represent near infinite number of overlapping ranges on the instantaneous timeline In practice we have finite number of timezones but you can express offsets down to the tick So in these situations make sure you understand how to either limit the who asking question down to single time zone or deal with translating them back to instantaneous time as appropriate li ulpHere are few other little bits about codeDateTimeOffset code that back up this analogy and some tips for keeping it straight pulli pIf you compare two codeDateTimeOffset code values they are first normalized to zero offset before comparing In other words code2012 01 01T00 00 00 00 00 code and code2012 01 01T02 00 00 02 00 code refer to the same instantaneous moment and are therefore equivalent lili pIf you are doing any unit testing and need to be certain of the offset test emboth em the codeDateTimeOffset code value and the code Offset code property separately lili pThere is one way implicit conversion built in to the Net framework that lets you pass codeDateTime code into any codeDateTimeOffset code parameter or variable When doing so strongthe code Kind code matters strong If you pass UTC kind it will carry in with zero offset but if you pass either code Local code or code Unspecified code it will assume to be stronglocal strong The framework is basically saying Well you asked me to convert calendar time to instantaneous time but have no idea where this came from so just going to use the local calendar This is huge gotcha if you load up an unspecified codeDateTime code on computer with different timezone IMHO that should throw an exception but it doesn li ulp strongShameless Plug strong ppMany people have shared with me that they find this analogy extremely valuable so included it in my Pluralsight course href http www pluralsight com courses date time fundamentals Date and Time Fundamentals You ll find step by step walkthrough of the camera analogy in the second module Context Matters in the clip titled Calendar Time vs Instantaneous Time In the picture ve omitted the date perhaps shouldn have But the idea is that the left side has their local time only such as DateTime and the right side conveys both the local time and it offset from UTC such as DateTimeOffset""",nice question nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer publicist popular question notable question yearle notable question popular question nice answer nice question nice answer great answer nice answer popular question announcer good question nice answer enlighten nice answer guru nice answer enlighten nice answer enlighten great question notable question nice answer announcer nice answer nice answer enlighten nice answer necromancer announcer guru nice answer popular question announcer nice answer nice answer momentj nice answer nice answer json necromancer nice answer nice answer enlighten nice answer announcer nice answer nice answer good answer popular question revival notable question good answer favorite question good answer necromancer nice answer enlighten nice answer enlighten nodatime nice answer enlighten nice answer nice answer nice answer enlighten caucus nice answer enlighten popular question nice question announcer necromancer good answer announcer guru great answer good answer publicist nice question nice answer good answer date famous question necromancer notable question revival guru nice answer enlighten popular question famous question nice answer time good answer necromancer good answer great answer good answer timezoneoffset proofreader necromancer yearle nice answer enlighten announcer good answer good answer great answer guru nice answer nice question popular question nice answer guru great answer announcer nice answer nice answer nice answer enlighten nice answer nice answer announcer announcer good answer nice answer good answer nice answer nice answer good answer announcer good answer announcer nice answer necromancer popular question nice answer enlighten nice answer nice answer good answer pytz great answer announcer nice question nice answer enlighten great answer necromancer necromancer nice answer enlighten notable question good answer announcer nice answer enlighten announcer good answer necromancer caucus constituent announcer good answer nice answer enlighten sql good answer announcer announcer announcer necromancer nice answer announcer nice answer enlighten jodatime great answer good answer announcer popular question nice answer enlighten nice answer nice answer nice answer nice answer announcer famous question good answer nice answer enlighten guru nice answer nice answer famous question nice answer enlighten good answer nice answer necromancer announcer deputy announcer good answer dst famous question good answer stellar question good answer announcer announcer good answer populist nice answer enlighten nice question announcer announcer nice answer enlighten good answer publicist announcer nice answer good answer announcer good answer announcer nice answer nice answer enlighten guru nice answer enlighten announcer nice answer announcer good answer nice question yearle good answer good answer nice answer good answer necromancer announcer guru nice answer enlighten good answer guru nice answer caucus nice answer enlighten good answer nice answer enlighten timespan nice answer enlighten utc good answer nice answer enlighten popular question guru announcer announcer nice answer enlighten nice answer nice answer nice answer enlighten announcer nice answer necromancer nice answer announcer great question good answer nice answer necromancer good answer good answer nice answer good answer good answer popular question good answer good answer nice answer enlighten nice answer enlighten announcer good answer nice answer enlighten popular question good answer publicist great answer good question nice answer guru nice answer enlighten nice answer enlighten enlighten nice answer nice answer enlighten nice answer enlighten great answer notable question nice answer enlighten java date time parse iso string colon offset java datetime timezoneoffset datetime parse pwe parse iso datetime string timezone offset class lang java prettyprint override codefinal string input offsetdatetime parse input localdatetime parse input iso offset date time code prepboth approach fail make sense code iso offset date time code colon timezone offset pblockquote pjava time format text parse index blockquotepbut href https wikipedia org wiki iso time zone designator noreferrer wikipedia valid format timezone offset code lt time lt time mm lt time lt time code prepother framework language parse string issue javascript codedate code jackson code discuss issue href https github fasterxml jackson databind issue noreferrer ppnow write code complex regex opinion codejava time code library parse valid iso string default valid ppfor jackson code prefer official codedate time code library work approach tackle issue iso offset colon basic format offset colon extend format mix match date time portion extend format hyphen colon offset basic format strictly compliant codedate code object track time utc internally typically accept input output local time run facility work time time zone parse output date utc local directly work time zone ppto absolutely precise internal representation codedate code object single number represent number millisecond elapse utc code regard leap second strongthere time zone string format store date object strong function codedate code object local time zone apply internal representation function produce string locale information consideration determine produce string detail vary function implementation specific library accomplish implement standard olson iana timezone database javascript overhead run web browser database bit large thing fortunately library selectively choose zone support make datum size palatable modern feature time zone datum codeintl code api ship ppthere library aware pulli href https moment github luxon index html nofollow noreferrer luxon successor href https momentj nofollow noreferrer moment js lili href https momentj timezone nofollow noreferrer moment timezone extension href https momentj nofollow noreferrer moment js lili href https js joda github js joda nofollow noreferrer js joda js port java href https threeten org nofollow noreferrer threeten lili href https github marnusw date fn tz nofollow noreferrer date fn tz href https github prantlf date fn timezone nofollow noreferrer date fn timezone extension href https date fn org nofollow noreferrer date fn lili href https github bigeasy timezone nofollow noreferrer bigeasy timezone lili href https github sproutsocial walltime js nofollow noreferrer walltime js discontinue lili href https github timezone js nofollow noreferrer lili href https github dbaron tz js nofollow noreferrer tz js li ulpluxon safe bet modern usage light weight codeintl code api timezone datum ppmoment timezone extension href https momentj nofollow noreferrer moment js bring time zone datum ppjs joda javascript implementation joda time api java include time zone support separate module ppdate fn tz extension href https date fn org nofollow noreferrer date fn date fn timezone extension href https date fn org nofollow noreferrer date fn ppbigeasy timezone appear track ppwalltime js href https github sproutsocial walltime js issue issuecomment nofollow noreferrer reach end life owner migrate moment timezone pptimezonej long long stand bug daylight save time transition fix point future pptz js time document imho ppyou evaluate library meet unsure moment moment timezone support modern browser limit usage modern web browser special library codenew date tolocalestre timezone america york code prepthis comprehensive solution work scenario require output conversion utc local time specific time zone direction ecmascript api ecma href https stackoverflow post detail href https github compat table esintl nofollow noreferrer compatibility table track version support codeintl code api mention library internally proposal href https github proposal temporal nofollow noreferrer temporal proposal aim provide set standard object work date time javascript language include support time zone aware object rhino specific implementation scroll private double date instance field static primarily cache environment provide value track instance modify easily codedate code object track time utc internally typically accept input output local time run facility work time time zone parse output date utc local directly work time zone ppto absolutely precise internal representation codedate code object single number represent number millisecond elapse utc code regard leap second strongthere time zone string format store date object strong function codedate code object local time zone apply internal representation function produce string locale information consideration determine produce string detail vary function implementation specific library accomplish implement standard olson iana timezone database javascript overhead run web browser database bit large thing fortunately library selectively choose zone support make datum size palatable modern feature time zone datum codeintl code api ship ppthere library aware pulli href https moment github luxon index html nofollow noreferrer luxon successor href https momentj nofollow noreferrer moment js lili href https momentj timezone nofollow noreferrer moment timezone extension href https momentj nofollow noreferrer moment js lili href https js joda github js joda nofollow noreferrer js joda js port java href https threeten org nofollow noreferrer threeten lili href https github marnusw date fn tz nofollow noreferrer date fn tz href https github prantlf date fn timezone nofollow noreferrer date fn timezone extension href https date fn org nofollow noreferrer date fn lili href https github bigeasy timezone nofollow noreferrer bigeasy timezone lili href https github sproutsocial walltime js nofollow noreferrer walltime js discontinue lili href https github timezone js nofollow noreferrer lili href https github dbaron tz js nofollow noreferrer tz js li ulpluxon safe bet modern usage light weight codeintl code api timezone datum ppmoment timezone extension href https momentj nofollow noreferrer moment js bring time zone datum ppjs joda javascript implementation joda time api java include time zone support separate module ppdate fn tz extension href https date fn org nofollow noreferrer date fn date fn timezone extension href https date fn org nofollow noreferrer date fn ppbigeasy timezone appear track ppwalltime js href https github sproutsocial walltime js issue issuecomment nofollow noreferrer reach end life owner migrate moment timezone pptimezonej long long stand bug daylight save time transition fix point future pptz js time document imho ppyou evaluate library meet unsure moment moment timezone support modern browser limit usage modern web browser special library codenew date tolocalestre timezone america york code prepthis comprehensive solution work scenario require output conversion utc local time specific time zone direction ecmascript api ecma href https stackoverflow post detail href https github compat table esintl nofollow noreferrer compatibility table track version support codeintl code api mention library internally proposal href https github proposal temporal nofollow noreferrer temporal proposal aim provide set standard object work date time javascript language include support time zone aware object date utc function compute timestamp base utc input output tostre local time equivalent local time zone offset abbreviation time zone location latitude longitude coordinate geolocation timezone latitude longitude pthere question stackoverflow resolve time zone location community wiki attempt consolidate valid response ppplease update answer add fit strongthe question strong brgiven latitude longitude location time zone effect location ppin case iana olson time zone service return utc offset time zone identifi read href https stackoverflow tag timezone info timezone tag info detail lat lon determine time zone option europe moscow timestamp time zone database determine offset utc location time europe moscow utc europe moscow utc time zone offset timezone tag wiki http stackoverflow tag timezone info time zone location latitude longitude coordinate geolocation timezone latitude longitude pthere question stackoverflow resolve time zone location community wiki attempt consolidate valid response ppplease update answer add fit strongthe question strong brgiven latitude longitude location time zone effect location ppin case iana olson time zone service return utc offset time zone identifi read href https stackoverflow tag timezone info timezone tag info detail boundary historical difference year year border dispute start end shift arnial occur tzdb create time zone affect region time region account include historical difference zone split good russian europe split europe volgograd tzdb pin general scheduling emfuture -PRON- event complex subject make distinction context schedule pulli pdoe event occur emspecific -PRON- universal instant time record event time term utc ppfor task run hour schedule utc time emnot -PRON- local time start local midnight href https stackoverflow tag dst info daylight save time effect run local clock lili phowever event schedule human being term local time record ppfor meeting occur eastern time occur emlocal -PRON- time winter utc summer utc ppso context emcannot -PRON- record schedule start time term utc common mistake ton advice internet -PRON- store utc -PRON- wrong scenario ppinstead store value emlocal time -PRON- code iana time zone identifi codeamerica york code store recurrence pattern specific date depend event schedule lili pconsider href http joda org joda time noreferrer joda time java codecalendar code codedate code classess save headache make read joda time documentation understand work ppjoda time function convert time zone primary concern question lili procedure place href http joda org joda time tz update html noreferrer update href http iana org time zone noreferrer time zone datum regularly update push multiple time year government world make legal definition time zone deploy forget lili palso understand conversion local time specific utc moment perfect function href https stackoverflow tag dst info daylight save time event schedule invalid ambiguous local time strategy detect deal application apply assumption user ppfor schedule event eastern time day march time exist event occur occur ppanother schedule event eastern time day november time occur emtwice -PRON- event happen daylight time instance standard time instance assume user pponly decide application ignore problem lead error lili ponce event pass record utc record local date time offset acceptable work fine singular event recur future li daily standup pacific pacific week dst change pacific week dst change reflect daily occurrence time manner include utc cancel meeting scheduling pin general scheduling emfuture -PRON- event complex subject make distinction context schedule pulli pdoe event occur emspecific -PRON- universal instant time record event time term utc ppfor task run hour schedule utc time emnot -PRON- local time start local midnight href https stackoverflow tag dst info daylight save time effect run local clock lili phowever event schedule human being term local time record ppfor meeting occur eastern time occur emlocal -PRON- time winter utc summer utc ppso context emcannot -PRON- record schedule start time term utc common mistake ton advice internet -PRON- store utc -PRON- wrong scenario ppinstead store value emlocal time -PRON- code iana time zone identifi codeamerica york code store recurrence pattern specific date depend event schedule lili pconsider href http joda org joda time noreferrer joda time java codecalendar code codedate code classess save headache make read joda time documentation understand work ppjoda time function convert time zone primary concern question lili procedure place href http joda org joda time tz update html noreferrer update href http iana org time zone noreferrer time zone datum regularly update push multiple time year government world make legal definition time zone deploy forget lili palso understand conversion local time specific utc moment perfect function href https stackoverflow tag dst info daylight save time event schedule invalid ambiguous local time strategy detect deal application apply assumption user ppfor schedule event eastern time day march time exist event occur occur ppanother schedule event eastern time day november time occur emtwice -PRON- event happen daylight time instance standard time instance assume user pponly decide application ignore problem lead error lili ponce event pass record utc record local date time offset acceptable work fine singular event recur future li time zone meeting schedule base time zone originate event dst shift end time zone change meeting schedule utc pin general scheduling emfuture -PRON- event complex subject make distinction context schedule pulli pdoe event occur emspecific -PRON- universal instant time record event time term utc ppfor task run hour schedule utc time emnot -PRON- local time start local midnight href https stackoverflow tag dst info daylight save time effect run local clock lili phowever event schedule human being term local time record ppfor meeting occur eastern time occur emlocal -PRON- time winter utc summer utc ppso context emcannot -PRON- record schedule start time term utc common mistake ton advice internet -PRON- store utc -PRON- wrong scenario ppinstead store value emlocal time -PRON- code iana time zone identifi codeamerica york code store recurrence pattern specific date depend event schedule lili pconsider href http joda org joda time noreferrer joda time java codecalendar code codedate code classess save headache make read joda time documentation understand work ppjoda time function convert time zone primary concern question lili procedure place href http joda org joda time tz update html noreferrer update href http iana org time zone noreferrer time zone datum regularly update push multiple time year government world make legal definition time zone deploy forget lili palso understand conversion local time specific utc moment perfect function href https stackoverflow tag dst info daylight save time event schedule invalid ambiguous local time strategy detect deal application apply assumption user ppfor schedule event eastern time day march time exist event occur occur ppanother schedule event eastern time day november time occur emtwice -PRON- event happen daylight time instance standard time instance assume user pponly decide application ignore problem lead error lili ponce event pass record utc record local date time offset acceptable work fine singular event recur future li utc shortsighte scheduling rule date value birth date leave convert utc pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code work msdn docs https msdn microsoft library aspx transact sql statement occupy line command pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code slight adjustment regex account count clean space pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code regex approach cover edge case update regex time make clean match item previously discuss pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code add make sense remove space character thing match single line statement start optionally number optionally comment component statement split multiple line improve regex edit make sense pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code roll prior regex match fine dosn proof https hpdmvr pas mention split string codego code statement careful text code code part script whitespace statement comment line statement valid ssm test pphere method codeprivate static ienumerable lt string string sqlscript split statement var statement regex split sqlscript regexoption multiline regexoption regexoption ignorecase remove empty trim return return statement string select trim code regex entire method multiline option critical regex code representation eminstantaneous time -PRON- emabsolute time -PRON- moment time universal accounting href https wikipedia org wiki leap leap second relativistic effect href https wikipedia org wiki time dilation time dilation represent instantaneous time codedatetime code code kind code utc code ppthis distinct emcalendar time -PRON- emcivil time -PRON- position calendar calendar globe calendar emtime zone -PRON- calendar time represent codedatetime code code kind code unspecified code local code code local code meaningful scenario imply understanding result position user workstation ppso code utc codedatetime code strongit perspective strong analogy pretend photographer ppimagine stand calendar timeline point camera person instantaneous timeline lay line camera rule timezone change periodically daylight save time legal definition time zone steady hand camera shaky ppthe person stand photo angle camera take picture angle codeoffset code code represent ppso label camera eastern time point point camera world label thing point instantaneous timeline angle know offset determine timezone time relate ppand utc camera guarantee steady hand tripod firmly anchor ground angle perspective offset img src https stack imgur png alt instantaneous time calendar time visualization ppso analogy intuitive guideline pulli pif represent time relative place represent calendar time codedatetime code confuse calendar codeunspecifie code assumption codelocal code come codedatetime code codedatetime code save database retrieve assume codeunspecifie code rely local calendar calendar originally lili pif moment make represent instantaneous time code enforce utc codedatetime code convention lili pif track moment instantaneous time time user local calendar emmust -PRON- code important timekeepe system technical legal concern lili pif modify previously record code information offset ensure offset relevant user emalso -PRON- store timezone identifi camera picture position change ppit point href http nodatime org noda time representation call code net base class library similar store code code lili poccasionally represent calendar time local whomever define emtoday -PRON- mean today midnight midnight represent infinite number overlap range instantaneous timeline practice finite number timezone express offset tick situation make understand limit question single time zone deal translate instantaneous time li ulphere bit code analogy tip keep straight pulli pif compare code value normalize offset compare word code code refer instantaneous moment equivalent lili pif unit testing offset test emboth -PRON- code code offset code property separately lili pthere implicit conversion build net framework let pass codedatetime code code parameter variable strongthe code kind code matter strong pass utc kind carry offset pass code local code code unspecified code assume stronglocal strong framework basically ask convert calendar time instantaneous time idea local calendar huge gotcha load unspecified codedatetime code timezone imho throw exception li ulp strongshameless plug strong ppmany people share analogy extremely valuable include pluralsight href http pluralsight course date time fundamental date time fundamental step step walkthrough camera analogy module context matter clip title calendar time instantaneous time picture omit date idea leave local time datetime convey local time offset utc datetimeoffset,0,NULL,NULL,,,, 53953,357822,1056051,NULL,NULL,NULL,0,NULL,NULL 53954,1514369,1078570,NULL,NULL,NULL,0,NULL,NULL 53955,21888,149221,Excavator Yearling Yearling Announcer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 53956,98980,1445510,NULL,NULL,NULL,0,NULL,NULL 53957,183919,475825,Excavator Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 53958,5013493,671229,NULL,NULL,NULL,0,NULL,NULL 53959,76155,671229,NULL,NULL,NULL,0,NULL,NULL 53960,197106,650697,NULL,NULL,NULL,0,NULL,NULL 53961,34644,809290,NULL,NULL,NULL,0,NULL,NULL 53962,48458,980510,NULL,NULL,NULL,0,NULL,NULL 53963,1688200,1195219,Student Editor Commentator Scholar Teacher Supporter Necromancer Informed,NULL,pI have the same situation as well ended up using version of solution Got extra details from href https developer mozilla org en US docs Learn Server side Django Testing rel noreferrer here specifically after reading Test structure overview section ppThe codesetUp code and the codetearDown code methods are called each time tests is run better solution is to run the creation of the abstract model once before all the tests are run To do so you can implement the codesetUpClassData code and also implement the codetearDownClass code ppre codeclass ModelMixinTestCase TestCase Base class for tests of model mixins To use subclass and specify the mixin class variable model using the mixin will be made available in self model def setUpClass cls Create dummy model which extends the mixin cls model ModelBase TestModel cls mixin name cls mixin module cls mixin module Create the schema for our test model with connection schema editor as schema editor schema editor create model cls model super ModelMixinTestCase cls setUpClass def tearDownClass cls Delete the schema for the test model with connection schema editor as schema editor schema editor delete model cls model super ModelMixinTestCase cls tearDownClass code prepA possible implementation may look like this ppre codeclass MyModelTestCase ModelMixinTestCase mixin MyModel def setUp self Runs every time test is run self model objects create pk def test my unit self test aModel self objects get pk code prepMaybe codeModelMixinTestCase code class should be added to Django You are right ill change the method found more info in this answer link https stackoverflow com questions 43594519 testing in django what are differences between setupclass setuptestdata and se,1,NULL,Django Best way to unit test an abstract model django unit testing django models abstract pI need to write some unit tests for an abstract base model that provides some basic functionality that should be used by other apps It it would be necessary to define model that inherits from it just for testing purposes are there any elegant simple ways to define that model strongjust for testing strong ppI have seen some hacks that make this possible but never seen an official way in the django documentation or in other similar places pI have the same situation as well ended up using version of solution Got extra details from href https developer mozilla org en US docs Learn Server side Django Testing rel noreferrer here specifically after reading Test structure overview section ppThe codesetUp code and the codetearDown code methods are called each time tests is run better solution is to run the creation of the abstract model once before all the tests are run To do so you can implement the codesetUpClassData code and also implement the codetearDownClass code ppre codeclass ModelMixinTestCase TestCase Base class for tests of model mixins To use subclass and specify the mixin class variable model using the mixin will be made available in self model def setUpClass cls Create dummy model which extends the mixin cls model ModelBase TestModel cls mixin name cls mixin module cls mixin module Create the schema for our test model with connection schema editor as schema editor schema editor create model cls model super ModelMixinTestCase cls setUpClass def tearDownClass cls Delete the schema for the test model with connection schema editor as schema editor schema editor delete model cls model super ModelMixinTestCase cls tearDownClass code prepA possible implementation may look like this ppre codeclass MyModelTestCase ModelMixinTestCase mixin MyModel def setUp self Runs every time test is run self model objects create pk def test my unit self test aModel self objects get pk code prepMaybe codeModelMixinTestCase code class should be added to Django 53964,108920,814123,Nice Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 53965,460647,1080801,NULL,NULL,NULL,0,NULL,NULL 53966,139709,1377338,NULL,NULL,NULL,0,NULL,NULL 53967,22509,166289,Custodian Commentator Custodian Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 53968,76985,186586,Famous Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 53969,166043,59592,Yearling Guru Great Answer Yearling Nice Answer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 53970,251460,780298,NULL,NULL,NULL,0,NULL,NULL 53971,101519,1529042,NULL,NULL,NULL,0,NULL,NULL 53972,86515,606563,NULL,NULL,NULL,0,NULL,NULL 53973,1291930,1130949,NULL,NULL,NULL,0,NULL,NULL 53974,1038371,1219620,NULL,NULL,NULL,0,NULL,NULL 53975,831758,271523,NULL,NULL,NULL,0,NULL,NULL 53976,375974,818613,NULL,NULL,NULL,0,NULL,NULL 53977,154294,1459038,NULL,NULL,NULL,0,NULL,NULL 53978,589,1319172,Good Question Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 53979,483782,611391,NULL,NULL,NULL,0,NULL,NULL 53980,139163,691407,NULL,NULL,NULL,0,NULL,NULL 53981,921652,941824,NULL,NULL,NULL,0,NULL,NULL 53982,31397,1076585,Yearling Popular Question Popular Question Yearling Popular Question Nice Question Census Custodian Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 53983,47059,553717,NULL,NULL,NULL,0,NULL,NULL 53984,8938,360834,Good Answer Yearling Guru Yearling Announcer,NULL,NULL,0,NULL,NULL 53985,304422,360834,Good Answer Yearling Guru Yearling Announcer,NULL,NULL,0,NULL,NULL 53986,153499,1073599,Supporter,NULL,NULL,0,NULL,NULL 53987,353452,1196254,Popular Question,NULL,NULL,0,NULL,NULL 53988,838344,1136839,NULL,NULL,NULL,0,NULL,NULL 53989,37,2368,Famous Question Great Question Nice Answer Enlightened Notable Question Good Answer Enlightened Good Question Nice Answer Enlightened Guru Famous Question Stellar Question Good Answer Nice Answer Famous Question Guru Yearling Notable Question Nice Answer Good Question Nice Question Famous Question Favorite Question Good Answer Popular Question Popular Question Favorite Question Notable Question Nice Answer Good Question Famous Question Famous Question Nice Answer Good Answer Notable Question Nice Answer Nice Question Notable Question Famous Question Nice Answer Nice Question Notable Question Yearling Popular Question Notable Question Nice Question Good Question Popular Question Good Answer Nice Question Nice Answer Enlightened Taxonomist Nice Answer Great Answer Good Answer Popular Question Famous Question Nice Answer Popular Question Great Question Nice Question Yearling Nice Answer Famous Question Good Question Guru,NULL,NULL,0,NULL,NULL 53990,15602,497269,Tumbleweed,NULL,NULL,0,NULL,NULL 53991,357394,1058217,Popular Question Notable Question Notable Question Informed Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 53992,455002,147378,Yearling Necromancer Popular Question Popular Question Necromancer Necromancer Nice Answer Yearling Good Answer Good Answer Good Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 53993,46835,980319,NULL,NULL,NULL,0,NULL,NULL 53994,465006,644323,NULL,NULL,NULL,0,NULL,NULL 53995,268871,251956,Yearling Good Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 53996,89956,250993,Yearling Famous Question Notable Question Popular Question Necromancer Nice Answer Disciplined Popular Question Famous Question Good Question Great Question Nice Answer Nice Answer Yearling Famous Question Custodian Notable Question Nice Question Notable Question Good Question Nice Question Deputy Yearling Popular Question Notable Question Notable Question Nice Answer Good Question Favorite Question Necromancer Necromancer Good Answer,NULL,NULL,0,NULL,NULL 53997,311421,989735,NULL,NULL,NULL,0,NULL,NULL 53998,613644,549574,NULL,NULL,NULL,0,NULL,NULL 53999,407447,339757,NULL,NULL,NULL,0,NULL,NULL 54000,6290,202024,Yearling,NULL,NULL,0,NULL,NULL 54001,337649,875941,Civic Duty,NULL,NULL,0,NULL,NULL 54002,2476519,310254,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 54003,353484,526893,NULL,NULL,NULL,0,NULL,NULL 54004,28286,1029583,Popular Question Census,NULL,NULL,0,NULL,NULL 54005,427330,84463,Popular Question Popular Question Yearling Famous Question Yearling Great Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 54006,17952,11543,Necromancer Custodian Popular Question Popular Question Nice Question Popular Question Mortarboard Popular Question Notable Question Nice Answer Famous Question Yearling Good Question Great Answer Nice Answer Great Question Nice Question Great Answer Revival Necromancer Nice Question Popular Question Excavator Necromancer Nice Answer Popular Question Popular Question Notable Question Nice Answer Notable Question Yearling Nice Question Popular Question Great Question Notable Question Announcer Good Answer Announcer Nice Question Popular Question Yearling Popular Question Popular Question Favorite Question Nice Answer,NULL,Simple non secure hash function for JavaScript javascript hash md5 sha1 blockquote strongPossible Duplicate strong br href https stackoverflow com questions 7616461 generate hash from string in javascript jquery Generate Hash from string in Javascript jQuery blockquotepCan anyone suggest simple tens of lines of code not hundreds of lines hash function written in browser compatible JavaScript Ideally like something that when passed string as input produces something similar to the 32 character hexadecimal string that the typical output of MD5 SHA1 etc It doesn have to be cryptographically secure just reasonably resistant to collisions My initial use case is URLs but ll probably want to use it on other strings in the future The stringHash32 function from AMP https github com ampproject amphtml blob 371a072ed4986410b3671469f603e88721890bad src string js L121 L129 is likely to be sufficient pCreating new request object works as long as you set all the options ppre code request is event request sent by browser here var req new Request request url method request method headers request headers mode same origin need to set this properly credentials request credentials redirect manual let browser handle redirects code prepYou cannot use the original codemode code if it is codenavigate code that why you were getting an exception and you probably want to pass redirection back to browser to let it change its URL instead of letting codefetch code handle it ppMake sure you don set body on GET requests fetch does not like it but browsers sometimes generate GET requests with the body when responding to redirects from POST requests codefetch code does not like it Do you happen to know why mode of navigate would be problem,1,How to alter the headers of Request javascript service worker pIs it possible to alter the headers of the href https developer mozilla org en US docs Web API Request rel nofollow noreferrer codeRequest code object that is received by the href https developer mozilla org en US docs Web API FetchEvent rel nofollow noreferrer codefetch code event ppTwo attempts polli strongModify existing headers strong ppre class lang js prettyprint override codeself addEventListener fetch function event event request headers set foo bar event respondWith fetch event request code prepFails with codeFailed to execute set on Headers Headers are immutable code lili strongCreate new codeRequest code object strong ppre class lang js prettyprint override codeself addEventListener fetch function event var req new Request event request headers foo bar event respondWith fetch req code prepFails with codeFailed to construct Request Cannot construct Request with Request whose mode is navigate and non empty RequestInit code li olp See also href https stackoverflow com questions 35421179 how to alter the headers of response How to alter the headers of Response,Does the service worker cache support cache control headers javascript cache control service worker pDoes the service worker cache support cache control headers For example if an entry in the cache has the headers codecache control no store code or codecache control max age 60 code are these respected by codematch code ppThe following code outputs codeCACHE HIT code despite the header codecache control no store code appearing in the response think the same problem applies to codemax age code ppre codefunction warm var req new Request foo txt var res new Response hello status 200 statusText OK headers new Headers cache control no store content type text plain return put req res then function return function lookup return match new Request foo txt then function return CACHE HIT CACHE MISS function deleteAllCaches return caches keys then function cacheNames return Promise all cacheNames map function cacheName return caches delete cacheName self addEventListener install function event event waitUntil deleteAllCaches then caches open bind caches MYCACHE then warm then lookup then console log bind console then function return true code pre pThe service worker cache does not behave like standard href https tools ietf org html rfc7234 rel noreferrer RFC compliant HTTP cache In particular it ignores all headers that relate to freshness such as codecache control code Note however that it does behave as expected with respect to the codevary code header See the href https www w3 org TR service workers query cache algorithm rel noreferrer cache resolution algorithm in the spec ppIf you want HTTP compliant cache behavior you ll need to layer this on top of the existing cache features 54007,70605,416714,Citizen Patrol Custodian Custodian Critic Custodian Yearling Organizer Famous Question Documentation User Autobiographer Census,NULL,NULL,0,NULL,NULL 54008,9344,288349,Famous Question Yearling Excavator Nice Answer Nice Question Good Answer,NULL,NULL,0,NULL,NULL 54009,3606123,1318778,Popular Question,NULL,NULL,0,NULL,NULL 54010,247887,629246,Popular Question Yearling Good Answer Nice Answer Enlightened Nice Question Yearling Famous Question Guru Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 54011,841655,708653,NULL,NULL,NULL,0,NULL,NULL 54012,83206,950809,NULL,NULL,NULL,0,NULL,NULL 54013,64031,123776,Yearling Nice Question Tumbleweed Popular Question Notable Question Notable Question Good Question Announcer Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 54014,1505109,730318,NULL,NULL,NULL,0,NULL,NULL 54015,646863,1224550,NULL,NULL,NULL,0,NULL,NULL 54016,20140,1133135,Scholar Popular Question,NULL,NULL,0,NULL,NULL 54017,725426,972121,Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Necromancer Popular Question Popular Question Popular Question Yearling Nice Answer Notable Question Nice Question Notable Question Notable Question Famous Question Popular Question Famous Question Nice Answer Yearling,NULL,pI found much easier way to do this following directions read here href http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext rel noreferrer http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext This solution is specific to testing code code with code oauth2 hasScope code but sure it could be adapted for other situations as well ppI create an annotation which can be applied to code codes pp strongWithMockOAuth2Scope strong ppre class lang java prettyprint override codeimport org springframework security test context support WithSecurityContext import java lang annotation Retention import java lang annotation RetentionPolicy RetentionPolicy RUNTIME text factory WithMockOAuth2ScopeSecurityContextFactory class public WithMockOAuth2Scope String scope default code prep strongWithMockOAuth2ScopeSecurityContextFactory strong ppre class lang java prettyprint override codeimport org springframework security core Authentication import org springframework security core context SecurityContext import org springframework security core context SecurityContextHolder import org springframework security oauth2 provider OAuth2Authentication import org springframework security oauth2 provider OAuth2Request import org springframework security test context support WithSecurityContextFactory import java util HashSet import java util Set public class WithMockOAuth2ScopeSecurityContextFactory implements WithSecurityContextFactory lt WithMockOAuth2Scope gt public SecurityContext createSecurityContext WithMockOAuth2Scope mockOAuth2Scope SecurityContext context SecurityContextHolder createEmptyContext Set lt String gt scope new HashSet lt gt scope add mockOAuth2Scope scope OAuth2Request request new OAuth2Request null null null true scope null null null null Authentication auth new OAuth2Authentication request null context setAuthentication auth return context code prepExample test using codeMockMvc code ppre class lang java prettyprint override code SpringJUnit4ClassRunner class ublic class LoadScheduleControllerTest private MockMvc mockMvc LoadScheduleController loadScheduleController public void setup mockMvc MockMvcBuilders standaloneSetup loadScheduleController build cope scope dataLicense public void testSchedule throws Exception mockMvc perform post schedule contentType MediaType APPLICATION JSON UTF8 content json andDo print code prepAnd this is the controller under test ppre class lang java prettyprint override code value schedule method RequestMethod POST oauth2 hasScope dataLicense public int schedule return code pre You should just be able to set the Authentication in the security context to any arbitrary Authentication object think the key difference here might be that you are trying to send requests using real OAuth2RestTemplate whereas what am doing in my tests is using mockMvc to send the requests,1,NULL,How to test spring security oauth2 resource server security spring security spring security oauth2 pFollowing the release of Spring Security and it href http docs spring io spring security site docs reference htmlsingle test improved support for testing ve wanted to update my current Spring security oauth2 resource server tests ppAt present have helper class that sets up codeOAuth2RestTemplate code using codeResourceOwnerPasswordResourceDetails code with test codeClientId code connecting to an actual codeAccessTokenUri code to requests valid token for my tests This resttemplate is then used to make requests in my codeest codes ppI like to drop the dependency on the actual AuthorizationServer and the use of valid if limited user credentials in my tests by taking advantage of the new testing support in Spring Security ppUp to now all my attempts at using code code codetext code codeSecurityMockMvcConfigurers springSecurity code amp codeSecurityMockMvcRequestPostProcessors code have failed to make authenticated calls through codeMockMvc code and can not find any such working examples in the Spring example projects ppCan anyone help me test my oauth2 resource server with some kind of mocked credentials while still testing the security restrictions imposed pp strongEDIT strong Sample code available here href https github com timtebeek resource server testing https github com timtebeek resource server testing aFor each of the test classes understand why it won work as it but looking for ways that would allow me to test the security setup easily ppI now thinking of creating very permissive OAuthServer under codesrc test java code which might help bit Does anyone have any other suggestions pI found much easier way to do this following directions read here href http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext rel noreferrer http docs spring io spring security site docs reference htmlsingle test method withsecuritycontext This solution is specific to testing code code with code oauth2 hasScope code but sure it could be adapted for other situations as well ppI create an annotation which can be applied to code codes pp strongWithMockOAuth2Scope strong ppre class lang java prettyprint override codeimport org springframework security test context support WithSecurityContext import java lang annotation Retention import java lang annotation RetentionPolicy RetentionPolicy RUNTIME text factory WithMockOAuth2ScopeSecurityContextFactory class public WithMockOAuth2Scope String scope default code prep strongWithMockOAuth2ScopeSecurityContextFactory strong ppre class lang java prettyprint override codeimport org springframework security core Authentication import org springframework security core context SecurityContext import org springframework security core context SecurityContextHolder import org springframework security oauth2 provider OAuth2Authentication import org springframework security oauth2 provider OAuth2Request import org springframework security test context support WithSecurityContextFactory import java util HashSet import java util Set public class WithMockOAuth2ScopeSecurityContextFactory implements WithSecurityContextFactory lt WithMockOAuth2Scope gt public SecurityContext createSecurityContext WithMockOAuth2Scope mockOAuth2Scope SecurityContext context SecurityContextHolder createEmptyContext Set lt String gt scope new HashSet lt gt scope add mockOAuth2Scope scope OAuth2Request request new OAuth2Request null null null true scope null null null null Authentication auth new OAuth2Authentication request null context setAuthentication auth return context code prepExample test using codeMockMvc code ppre class lang java prettyprint override code SpringJUnit4ClassRunner class ublic class LoadScheduleControllerTest private MockMvc mockMvc LoadScheduleController loadScheduleController public void setup mockMvc MockMvcBuilders standaloneSetup loadScheduleController build cope scope dataLicense public void testSchedule throws Exception mockMvc perform post schedule contentType MediaType APPLICATION JSON UTF8 content json andDo print code prepAnd this is the controller under test ppre class lang java prettyprint override code value schedule method RequestMethod POST oauth2 hasScope dataLicense public int schedule return code pre 54018,1027609,1205512,NULL,NULL,NULL,0,NULL,NULL 54019,308052,883385,Autobiographer Nice Question,NULL,NULL,0,NULL,NULL 54020,99443,148195,Popular Question Nice Question Notable Question Popular Question Great Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Good Question Popular Question Necromancer Nice Question Famous Question Popular Question Popular Question Yearling Good Question Famous Question Notable Question Popular Question Notable Question Popular Question Nice Question Famous Question Notable Question Popular Question Yearling Good Question Popular Question Popular Question Stellar Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 54021,76721,1312636,NULL,NULL,NULL,0,NULL,NULL 54022,190459,453567,Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 54023,667487,994482,NULL,NULL,NULL,0,NULL,NULL 54024,432123,1463303,NULL,NULL,NULL,0,NULL,NULL 54025,1138706,1464031,NULL,NULL,NULL,0,NULL,NULL 54026,113097,1162263,Necromancer Popular Question Yearling Good Question Necromancer Notable Question Yearling Famous Question Necromancer Nice Question Yearling Favorite Question Nice Answer,NULL,NULL,0,NULL,NULL 54027,1217,1134490,NULL,NULL,NULL,0,NULL,NULL 54028,844415,909006,Popular Question Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 54029,504146,1031989,Editor Scholar,NULL,NULL,0,NULL,NULL 54030,396484,607142,Yearling Self-Learner Nice Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 54031,204935,1535165,Nice Answer,NULL,NULL,0,NULL,NULL 54032,1517977,1169320,NULL,NULL,NULL,0,NULL,NULL 54033,137686,25844,Taxonomist bash Yearling Yearling Popular Question Good Answer Great Answer Nice Answer Yearling,NULL,pIf you know it going to be just two fields you can skip the extra subprocesses like this ppre codevar1 STR var2 STR code prepWhat does this do code STR code deletes the shortest substring of code STR code that matches the pattern code code starting from the end of the string code STR code does the same but with the code code pattern and starting from the beginning of the string They each have counterparts code code and code code which find the emlongest em anchored pattern match If anyone has helpful mnemonic to remember which does which let me know always have to try both to remember done,0,NULL,NULL 54034,419610,713093,NULL,NULL,NULL,0,NULL,NULL 54035,303255,1311755,Scholar Student,NULL,NULL,0,NULL,NULL 54036,99683,54727,Yearling Good Question Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 54037,1145155,851966,NULL,NULL,NULL,0,NULL,NULL 54038,205533,14182,Editor Commentator,NULL,NULL,0,NULL,NULL 54039,19564,873198,NULL,NULL,NULL,0,NULL,NULL 54040,138474,247960,NULL,NULL,NULL,0,NULL,NULL 54041,137301,1200194,NULL,NULL,NULL,0,NULL,NULL 54042,692920,944853,NULL,NULL,NULL,0,NULL,NULL 54043,441666,1253204,NULL,NULL,NULL,0,NULL,NULL 54044,895349,867812,Student Supporter,NULL,NULL,0,NULL,NULL 54045,63382,1337240,NULL,NULL,NULL,0,NULL,NULL 54046,1096180,1246257,Necromancer,NULL,NULL,0,NULL,NULL 54047,12322,502202,NULL,NULL,NULL,0,NULL,NULL 54048,239527,882146,Custodian Revival Yearling Good Answer Nice Question Yearling Popular Question Famous Question Populist Pundit Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 54049,88669,483567,Notable Question Taxonomist Yearling Caucus Nice Answer Great Answer Caucus Custodian Yearling Caucus Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 54050,167647,849851,Supporter Revival,NULL,NULL,0,NULL,NULL 54051,259693,239771,NULL,NULL,NULL,0,NULL,NULL 54052,128368,1547225,Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54053,81369,601391,Good Answer,NULL,NULL,0,NULL,NULL 54054,635398,164470,NULL,NULL,NULL,0,NULL,NULL 54055,515839,1179583,NULL,NULL,NULL,0,NULL,NULL 54056,72961,1156176,Necromancer,NULL,NULL,0,NULL,NULL 54057,307610,25007,NULL,NULL,NULL,0,NULL,NULL 54058,112274,793912,NULL,NULL,NULL,0,NULL,NULL 54059,1521642,103254,Commentator,NULL,NULL,0,NULL,NULL 54060,698714,831140,Yearling,NULL,NULL,0,NULL,NULL 54061,4275286,3395,NULL,NULL,NULL,0,NULL,NULL 54062,1254498,3395,NULL,NULL,NULL,0,NULL,NULL 54063,5411792,3395,NULL,NULL,NULL,0,NULL,NULL 54064,213987,1264605,NULL,NULL,NULL,0,NULL,NULL 54065,94454,423095,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54066,3125463,603909,NULL,NULL,NULL,0,NULL,NULL 54067,515486,440805,Necromancer Notable Question Necromancer Yearling Pundit Notable Question Nice Answer Nice Answer Notable Question Popular Question Necromancer Notable Question Nice Answer Yearling Nice Answer Necromancer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54068,337632,773458,Teacher Self-Learner Supporter Popular Question Nice Answer Notable Question Yearling Nice Question Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 54069,23978,111533,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 54070,1830154,645981,Good Answer Yearling Guru Excavator Caucus Yearling Popular Question Documentation User Good Answer Nice Answer Enlightened Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54071,612093,299313,Yearling Nice Answer Enlightened Student,NULL,NULL,0,NULL,NULL 54072,220965,185310,Guru ruby Nice Answer Yearling Nice Answer Enlightened Caucus Constituent Custodian Civic Duty Popular Question Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 54073,454805,216042,Good Answer Yearling Necromancer Census Popular Question Nice Answer Nice Answer Yearling Custodian Good Answer Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 54074,101779,1317877,Yearling Critic Necromancer Popular Question Good Answer Curious Yearling Civic Duty Caucus Nice Answer Yearling Notable Question Guru Yearling Necromancer Nice Answer Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 54075,2373407,919983,NULL,NULL,NULL,0,NULL,NULL 54076,319595,1322050,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 54077,1209259,1127551,NULL,NULL,NULL,0,NULL,NULL 54078,310141,1169033,Nice Answer,NULL,NULL,0,NULL,NULL 54079,18322,470520,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54080,1555038,1439157,NULL,NULL,NULL,0,NULL,NULL 54081,2752,1039786,NULL,NULL,NULL,0,NULL,NULL 54082,10832,616035,Yearling Caucus Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 54083,317863,1162674,NULL,NULL,NULL,0,NULL,NULL 54084,38374,354977,Famous Question Yearling Custodian Popular Question Good Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 54085,90043,682028,Revival Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 54086,269241,476036,NULL,NULL,NULL,0,NULL,NULL 54087,927980,1260006,NULL,NULL,NULL,0,NULL,NULL 54088,510835,1031546,NULL,NULL,NULL,0,NULL,NULL 54089,440227,310561,Nice Question Yearling Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54090,1995053,310561,Nice Question Yearling Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54091,1366898,310561,Nice Question Yearling Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54092,67883,310561,Nice Question Yearling Good Question Popular Question Notable Question Notable Question Famous Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54093,282141,1411126,Teacher Informed Revival,NULL,NULL,0,NULL,NULL 54094,9773,417161,Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 54095,333913,115873,Famous Question Popular Question Nice Question Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 54096,1576513,113015,NULL,NULL,NULL,0,NULL,NULL 54097,319955,629926,Popular Question Popular Question Notable Question Caucus Famous Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 54098,203483,420744,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54099,46448,421512,Necromancer Nice Answer Yearling Nice Answer Revival Necromancer Good Answer Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54100,491981,587208,Yearling Popular Question Popular Question Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54101,76590,25358,Favorite Question Popular Question Notable Question Civic Duty Nice Question Popular Question Yearling Caucus Notable Question Notable Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 54102,15019,306477,NULL,NULL,NULL,0,NULL,NULL 54103,7723762,653424,NULL,NULL,NULL,0,NULL,NULL 54104,103013,9679,NULL,NULL,NULL,0,NULL,NULL 54105,29419,1298878,NULL,NULL,NULL,0,NULL,NULL 54106,1082030,1445296,Nice Question Notable Question Critic Curious Yearling Popular Question Revival Good Question Yearling Famous Question Nice Question Investor Altruist,NULL,NULL,0,NULL,NULL 54107,159040,243417,NULL,NULL,NULL,0,NULL,NULL 54108,1363568,502135,NULL,NULL,NULL,0,NULL,NULL 54109,10051,895839,NULL,NULL,NULL,0,NULL,NULL 54110,99938,807323,Editor Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54111,487381,153404,Yearling,NULL,NULL,0,NULL,NULL 54112,89602,367357,Commentator Informed,NULL,NULL,0,NULL,NULL 54113,163674,810167,Yearling Quorum Caucus Constituent Informed Yearling Census Nice Answer Tumbleweed Custodian Caucus Yearling Documentation User Custodian Caucus Popular Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54114,209470,79144,Necromancer Yearling Yearling Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 54115,38249,929951,NULL,NULL,NULL,0,NULL,NULL 54116,716307,1552601,NULL,NULL,NULL,0,NULL,NULL 54117,150512,505865,Critic,NULL,NULL,0,NULL,NULL 54118,621054,477997,Necromancer Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54119,160790,1045848,Popular Question Notable Question Famous Question Yearling Popular Question Nice Question Caucus Popular Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 54120,45387,798374,Yearling Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 54121,141939,450383,Famous Question Nice Answer Good Question Yearling Popular Question Notable Question Curious Yearling Popular Question Autobiographer Yearling,NULL,NULL,0,NULL,NULL 54122,207051,1266033,NULL,NULL,NULL,0,NULL,NULL 54123,224060,1437087,Necromancer,NULL,NULL,0,NULL,NULL 54124,275205,1220935,Revival,NULL,NULL,0,NULL,NULL 54125,103388,1361490,NULL,NULL,NULL,0,NULL,NULL 54126,478624,1255270,Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 54127,928902,1382673,NULL,NULL,NULL,0,NULL,NULL 54128,84814,876488,NULL,NULL,NULL,0,NULL,NULL 54129,284935,1559087,NULL,NULL,NULL,0,NULL,NULL 54130,111103,919327,NULL,NULL,NULL,0,NULL,NULL 54131,3635411,919327,NULL,NULL,NULL,0,NULL,NULL 54132,418373,64911,Popular Question Announcer Yearling django Popular Question Popular Question Revival Famous Question Nice Answer Necromancer Notable Question Notable Question Popular Question Necromancer Popular Question Necromancer Popular Question Announcer Popular Question Nice Answer Revival Popular Question Yearling Announcer Nice Answer Popular Question Nice Answer Nice Question Notable Question Archaeologist Favorite Question Notable Question Nice Answer Famous Question Revival Necromancer Popular Question Necromancer Necromancer Notable Question Nice Answer Revival Popular Question Notable Question Necromancer Yearling Nice Question Good Answer Notable Question Popular Question Popular Question Necromancer Announcer Great Answer Popular Question Popular Question Announcer Necromancer Nice Answer python Populist Good Answer Popular Question Notable Question Popular Question Famous Question Popular Question Electorate Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Famous Question Popular Question Popular Question Great Answer,NULL,pAnother approach that much faster than the answer above is to use regular expressions like so ppre codere sub u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF text code prepComparing to the answer above it comes out to be more than 10X faster in my testing ppre codeimport timeitfunc test def valid xml char ordinal codepoint ord conditions ordered by presumed frequency return 0x20 lt codepoint lt 0xD7FF or codepoint in 0x9 0xA 0xD or 0xE000 lt codepoint lt 0xFFFD or 0x10000 lt codepoint lt 0x10FFFF join for in content if valid xml char ordinal func setup import requests requests get https stackoverflow com questions 8733233 regex test re sub u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF content regex setup import requests re requests get https stackoverflow com questions 8733233 func test timeit Timer func test setup func setup regex test timeit Timer regex test setup regex setup print func test timeit 100 print regex test timeit 100 code prepOutput ppre code gt 63773989677 gt 221401929855 code prepSo making sense of that what we re doing is downloading this webpage once the page you re currently reading then running the functional technique and the regex technique over its contents 100X each ppUsing the functional method takes about strong2 strong seconds brUsing the regex method takes about strong0 strong seconds phrp strongUpdate strong As identified in the comments the regex in this answer previously deleted some characters which should have been allowed in XML These characters include anything in the href https en wikipedia org wiki Plane Unicode Supplementary Multilingual Plane rel nofollow noreferrer Supplementary Multilingual Plane which is includes ancient scripts like cuneiform hieroglyphics and weirdly emojis ppThe correct regex is now above quick test for this in the future is using codere DEBUG code which prints ppre codeIn 52 re compile u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF re DEBUG max repeat 4294967295 in negate None range 32 55295 literal literal 10 literal 13 range 57344 65533 range 65536 1114111 Out 52 re compile ur ud7ff ue000 ufffd U00010000 U0010ffff re DEBUG code prepMy apologies for the error can only offer that found this answer elsewhere and put it in here It was somebody else error but propagated it My sincere apologies to anybody this affected pp strongUpdate 2017 12 12 strong ve learned from some OSX users that this code won work on so called narrow builds of Python which apparently OSX sometimes has You can check this by running codeimport sys sys maxunicode code If it prints 65535 the code here won work until you install wide build href https stackoverflow com 31605097 64911 See more about this here You re right and this definitely could have caused data erasure by removing unicode with codepoints between 65536 and 1114111 ve updated the answer pAnother approach that much faster than the answer above is to use regular expressions like so ppre codere sub u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF text code prepComparing to the answer above it comes out to be more than 10X faster in my testing ppre codeimport timeitfunc test def valid xml char ordinal codepoint ord conditions ordered by presumed frequency return 0x20 lt codepoint lt 0xD7FF or codepoint in 0x9 0xA 0xD or 0xE000 lt codepoint lt 0xFFFD or 0x10000 lt codepoint lt 0x10FFFF join for in content if valid xml char ordinal func setup import requests requests get https stackoverflow com questions 8733233 regex test re sub u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF content regex setup import requests re requests get https stackoverflow com questions 8733233 func test timeit Timer func test setup func setup regex test timeit Timer regex test setup regex setup print func test timeit 100 print regex test timeit 100 code prepOutput ppre code gt 63773989677 gt 221401929855 code prepSo making sense of that what we re doing is downloading this webpage once the page you re currently reading then running the functional technique and the regex technique over its contents 100X each ppUsing the functional method takes about strong2 strong seconds brUsing the regex method takes about strong0 strong seconds phrp strongUpdate strong As identified in the comments the regex in this answer previously deleted some characters which should have been allowed in XML These characters include anything in the href https en wikipedia org wiki Plane Unicode Supplementary Multilingual Plane rel nofollow noreferrer Supplementary Multilingual Plane which is includes ancient scripts like cuneiform hieroglyphics and weirdly emojis ppThe correct regex is now above quick test for this in the future is using codere DEBUG code which prints ppre codeIn 52 re compile u0020 uD7FF u0009 u000A u000D uE000 uFFFD U00010000 U0010FFFF re DEBUG max repeat 4294967295 in negate None range 32 55295 literal literal 10 literal 13 range 57344 65533 range 65536 1114111 Out 52 re compile ur ud7ff ue000 ufffd U00010000 U0010ffff re DEBUG code prepMy apologies for the error can only offer that found this answer elsewhere and put it in here It was somebody else error but propagated it My sincere apologies to anybody this affected pp strongUpdate 2017 12 12 strong ve learned from some OSX users that this code won work on so called narrow builds of Python which apparently OSX sometimes has You can check this by running codeimport sys sys maxunicode code If it prints 65535 the code here won work until you install wide build href https stackoverflow com 31605097 64911 See more about this here suspect you may have narrow build of Python Not positive but it easy to check if using wide build fixes the issue https www python org dev peps pep 0261 pThis is happening lately because of change in pip 10 ppThe fix is pretty easy You probably have something like ppre codefrom pip req import parse requirements code prepChange that to something like ppre codetry for pip gt 10 from pip internal req import parse requirementsexcept ImportError for pip lt from pip req import parse requirements code prepThat should do it Seems like they regretted that this was available since they moved it to the private namespace of internals But yeah not nice to take it away pThis is happening lately because of change in pip 10 ppThe fix is pretty easy You probably have something like ppre codefrom pip req import parse requirements code prepChange that to something like ppre codetry for pip gt 10 from pip internal req import parse requirementsexcept ImportError for pip lt from pip req import parse requirements code prepThat should do it think you re reading the date as April 2016 instead of as 16 April 2018 the current year,1,Is it possible to create subparsers in django management command django argparse django manage py subparsers pTitle really says it all but currently have this but it doesn work ppre codeclass Command BaseCommand help Functions related to downloading parsing and indexing the content def add arguments self parser subparsers parser add subparsers download parser subparsers add parser download help Using local CSV download the XML data for content Output is sent to the log download parser add argument start line type int default help The line in the file where you wish to start processing Add an argparse parser for parsing the content Yes this is bit confusing content parser parser subparsers add parser parse help Look at the file system and parse everything you see so that we have content in the databse content parser parser add argument start item type int default help Assuming the content is sorted by file name this item is the one to start on code prepMy specific idea is to create one command that has subcommands for downloading XML content or for parsing it into the database,No module named pip req python pip tweepy pI am installing tweepy but am running into an error about pip req have pip installed but for some reason pip req still can be found did bunch of research online and the most could find was some issue about incompatibilities between zapo and python causing the same error for some other user The discussion was unclear about how to solve the problem though Thanks ppre code python2 setup py installTraceback most recent call last File setup py line in lt module gt from pip req import parse requirementsImportError No module named pip req code pre pThis is happening lately because of change in pip 10 ppThe fix is pretty easy You probably have something like ppre codefrom pip req import parse requirements code prepChange that to something like ppre codetry for pip gt 10 from pip internal req import parse requirementsexcept ImportError for pip lt from pip req import parse requirements code prepThat should do it 54133,287525,528226,NULL,NULL,NULL,0,NULL,NULL 54134,805456,657850,Notable Question,NULL,NULL,0,NULL,NULL 54135,1994748,657850,Notable Question,NULL,NULL,0,NULL,NULL 54136,1115096,899650,Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 54137,1167950,761035,Yearling Yearling Citizen Patrol Enthusiast Notable Question Necromancer Caucus Constituent Nice Answer Yearling Popular Question Nice Answer Good Answer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54138,54609,388639,Announcer Notable Question Yearling Favorite Question Good Answer Nice Answer Enlightened Popular Question Announcer Yearling Pundit Census Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 54139,132902,310833,Great Answer Yearling Nice Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 54140,208530,760057,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54141,12533,703828,NULL,NULL,NULL,0,NULL,NULL 54142,715292,507690,NULL,NULL,NULL,0,NULL,NULL 54143,92346,507690,NULL,NULL,NULL,0,NULL,NULL 54144,258940,1026043,Notable Question Yearling,NULL,NULL,0,NULL,NULL 54145,243550,220569,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54146,215431,841458,Commentator Citizen Patrol Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54147,622709,841458,Commentator Citizen Patrol Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54148,1062834,841458,Commentator Citizen Patrol Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54149,101033,632170,NULL,NULL,NULL,0,NULL,NULL 54150,104438,673826,Notable Question Announcer Popular Question Nice Answer Announcer Revival Yearling Announcer Announcer Revival Announcer Announcer Popular Question Electorate Notable Question Announcer Popular Question Booster Announcer Nice Question Announcer Yearling Explainer,NULL,pThere is now correct mechanism in Rails ppre code gt gt Model none gt lt ActiveRecord Relation gt code pre Do we compare length to zero to check if empty Will empty initiate SQL based count,0,NULL,NULL 54151,165282,586132,NULL,NULL,NULL,0,NULL,NULL 54152,1378684,485418,Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Popular Question Self-Learner Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Caucus Popular Question Nice Answer Enlightened Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Custodian Notable Question Quorum Documentation User Yearling Popular Question Popular Question Notable Question Popular Question Census Nice Question Popular Question Necromancer Popular Question laravel Yearling php,NULL,NULL,0,NULL,NULL 54153,9282758,510040,Notable Question Scholar Supporter Commentator Curious,NULL,NULL,0,NULL,NULL 54154,427074,99683,Yearling Critic Informed Notable Question Revival Caucus Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54155,709703,939746,NULL,NULL,NULL,0,NULL,NULL 54156,214679,763253,Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 54157,98414,1025312,Yearling Yearling Caucus Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 54158,593495,1320192,NULL,NULL,NULL,0,NULL,NULL 54159,1755,19506,Nice Answer Notable Question Yearling Necromancer Notable Question Necromancer Nice Answer Good Answer Revival Custodian Yearling Self-Learner Necromancer Great Question Necromancer Yearling Favorite Question,NULL,NULL,0,NULL,NULL 54160,31705,600350,NULL,NULL,NULL,0,NULL,NULL 54161,81904,921382,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54162,162205,728273,NULL,NULL,NULL,0,NULL,NULL 54163,320463,323147,NULL,NULL,NULL,0,NULL,NULL 54164,102112,1272126,NULL,NULL,NULL,0,NULL,NULL 54165,121653,515412,Nice Answer,NULL,NULL,0,NULL,NULL 54166,3419738,1437653,Nice Answer Documentation User Yearling Announcer Necromancer Nice Answer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 54167,889574,942819,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54168,107025,402145,Necromancer Yearling,NULL,NULL,0,NULL,NULL 54169,2065235,985682,NULL,NULL,NULL,0,NULL,NULL 54170,1512639,996290,Popular Question Census Yearling Autobiographer,NULL,NULL,0,NULL,NULL 54171,1024080,965839,NULL,NULL,NULL,0,NULL,NULL 54172,298132,745047,NULL,NULL,NULL,0,NULL,NULL 54173,261842,50660,Yearling Necromancer Nice Answer Enlightened Necromancer unit-testing Necromancer Nice Answer Nice Answer Guru Yearling Nice Answer Enlightened Good Answer Great Answer Yearling Good Answer Good Answer Good Question,NULL,NULL,0,NULL,NULL 54174,108965,326404,NULL,NULL,NULL,0,NULL,NULL 54175,41499,424403,NULL,NULL,NULL,0,NULL,NULL 54176,2348093,48146,Popular Question,NULL,NULL,0,NULL,NULL 54177,238727,533501,Yearling,NULL,NULL,0,NULL,NULL 54178,84280,680866,Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 54179,691474,183993,NULL,NULL,NULL,0,NULL,NULL 54180,345470,1008778,Enthusiast Necromancer Nice Answer Yearling Necromancer Nice Answer amazon-redshift Nice Answer Enlightened Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 54181,1195708,1183913,NULL,NULL,NULL,0,NULL,NULL 54182,400250,880571,NULL,NULL,NULL,0,NULL,NULL 54183,288810,443934,NULL,NULL,NULL,0,NULL,NULL 54184,161534,118029,Famous Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54185,94450,1347671,NULL,NULL,NULL,0,NULL,NULL 54186,357261,196992,NULL,NULL,NULL,0,NULL,NULL 54187,157006,1546453,Editor Informed Autobiographer Commentator Census Enthusiast Tumbleweed Census Popular Question Popular Question Yearling Yearling Critic,NULL,NULL,0,NULL,NULL 54188,132183,2576,Nice Answer Tumbleweed Yearling Curious Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54189,309726,1170420,Tumbleweed Yearling Good Question Popular Question Self-Learner Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 54190,239004,648345,Popular Question Yearling Popular Question Popular Question Notable Question Curious Notable Question,NULL,NULL,0,NULL,NULL 54191,177854,1552405,NULL,NULL,NULL,0,NULL,NULL 54192,1042393,1279764,NULL,NULL,NULL,0,NULL,NULL 54193,11081,410285,NULL,NULL,NULL,0,NULL,NULL 54194,158323,763150,NULL,NULL,NULL,0,NULL,NULL 54195,605236,763150,NULL,NULL,NULL,0,NULL,NULL 54196,210660,203580,NULL,NULL,NULL,0,NULL,NULL 54197,1062023,1233521,Caucus,NULL,NULL,0,NULL,NULL 54198,375902,1334853,NULL,NULL,NULL,0,NULL,NULL 54199,261714,937202,NULL,NULL,NULL,0,NULL,NULL 54200,5807519,1077556,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54201,154755,1102694,NULL,NULL,NULL,0,NULL,NULL 54202,188408,570918,Yearling Guru Enlightened Notable Question Informed Booster Good Answer Announcer Guru Good Answer Good Answer Caucus Constituent Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Caucus Constituent Announcer Announcer Announcer Census Yearling Nice Question Guru Strunk & White Caucus Constituent Custodian Good Answer Popular Question Guru Nice Answer,NULL,NULL,0,NULL,NULL 54203,2995815,609025,Notable Question,NULL,NULL,0,NULL,NULL 54204,166772,609025,Notable Question,NULL,NULL,0,NULL,NULL 54205,99457,76989,Custodian Popular Question,NULL,NULL,0,NULL,NULL 54206,980491,367649,Excavator Nice Question Nice Answer Announcer Guru Yearling Nice Answer Great Answer Nice Answer Yearling Census Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 54207,345746,226896,NULL,NULL,NULL,0,NULL,NULL 54208,1336830,639919,Commentator Critic Yearling Necromancer Revival Necromancer Yearling Nice Answer Popular Question Civic Duty Notable Question Yearling,NULL,NULL,0,NULL,NULL 54209,740374,1104047,Notable Question,NULL,NULL,0,NULL,NULL 54210,151835,1360735,Editor Excavator,NULL,NULL,0,NULL,NULL 54211,452612,325228,Citizen Patrol Popular Question,NULL,pThis gives signed angle for any angles ppre codea targetA sourceAa 180 360 180 code prepBeware in many languages the codemodulo code operation returns value with the same sign as the dividend like JavaScript href http en wikipedia org wiki Modulo operation rel noreferrer full list here This requires custom codemod code function like so ppre codemod gt floor code prepOr so ppre codemod gt code prepIf angles are within 180 180 this also works ppre codea targetA sourceAa gt 180 360 lt 180 360 code prepIn more verbose way ppre codea targetA sourceAa 360 if gt 180a 360 if lt 180 code pre more concise though potentially more expensive equivalent of the latter approach second statement is 360 sgn abs 180 Come to think of it if you ve branchless implementations of sgn and abs then that characteristic might actually start to compensate for needing two multiplications,0,NULL,NULL 54212,252469,641819,NULL,NULL,NULL,0,NULL,NULL 54213,310793,889580,Popular Question Tumbleweed Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54214,412834,552735,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54215,198773,355012,Editor Student Enthusiast Teacher,NULL,NULL,0,NULL,NULL 54216,108899,1063455,Nice Answer Yearling Commentator Curious Caucus Necromancer Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 54217,1345421,1054614,NULL,NULL,NULL,0,NULL,NULL 54218,1100880,399015,NULL,NULL,NULL,0,NULL,NULL 54219,757242,1229898,NULL,NULL,NULL,0,NULL,NULL 54220,357379,453559,NULL,NULL,NULL,0,NULL,NULL 54221,63832,29701,Nice Question Notable Question Necromancer Notable Question Notable Question Notable Question Yearling Nice Question Nice Answer Enlightened Yearling Popular Question Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54222,186741,1467662,NULL,NULL,NULL,0,NULL,NULL 54223,585744,1467662,NULL,NULL,NULL,0,NULL,NULL 54224,135721,1066019,NULL,NULL,NULL,0,NULL,NULL 54225,1018705,1179436,NULL,NULL,NULL,0,NULL,NULL 54226,82716,857367,NULL,NULL,NULL,0,NULL,NULL 54227,1210608,485647,NULL,NULL,NULL,0,NULL,NULL 54228,400487,203479,Nice Answer Good Answer Popular Question Good Answer Peer Pressure Yearling Notable Question Nice Answer Popular Question Yearling Nice Answer asp.net Yearling,NULL,NULL,0,NULL,NULL 54229,52736,628341,NULL,NULL,NULL,0,NULL,NULL 54230,43704,133974,Nice Answer Yearling Nice Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 54231,1371822,1318869,Teacher Commentator Editor Critic,NULL,NULL,0,NULL,NULL 54232,4325,729887,NULL,NULL,NULL,0,NULL,NULL 54233,223157,253049,Necromancer Custodian Nice Answer Yearling Popular Question Tumbleweed Necromancer Nice Answer Strunk & White Necromancer Critic Custodian Yearling Self-Learner Caucus Good Answer Popular Question Civic Duty Yearling Notable Question,NULL,NULL,0,NULL,NULL 54234,349612,1137180,Critic Self-Learner Popular Question Caucus Census Caucus Revival,NULL,NULL,0,NULL,NULL 54235,112847,259197,NULL,NULL,NULL,0,NULL,NULL 54236,91041,21981,Nice Answer Notable Question Famous Question Notable Question Yearling Famous Question Nice Question Nice Question Popular Question Famous Question Notable Question Good Question Popular Question Nice Question Famous Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Famous Question Nice Answer Notable Question Favorite Question Good Question Notable Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 54237,234765,96436,Necromancer Nice Answer Yearling Caucus Constituent Citizen Patrol Caucus Custodian Constituent Notable Question Good Answer Caucus Constituent Yearling Civic Duty Self-Learner,NULL,NULL,0,NULL,NULL 54238,215513,1545942,NULL,NULL,NULL,0,NULL,NULL 54239,64690,588180,NULL,NULL,NULL,0,NULL,NULL 54240,323630,1494796,Necromancer,NULL,NULL,0,NULL,NULL 54241,145752,455429,NULL,NULL,NULL,0,NULL,NULL 54242,350683,1366462,NULL,NULL,NULL,0,NULL,NULL 54243,192529,1554838,Autobiographer Informed Teacher Supporter Student Editor Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 54244,363213,1011256,NULL,NULL,NULL,0,NULL,NULL 54245,375042,545452,NULL,NULL,NULL,0,NULL,NULL 54246,22626,115145,Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened android-contentprovider Notable Question android-support-library Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer memory-management Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Good Answer nullpointerexception Nice Answer Enlightened Nice Answer Enlightened Good Answer url Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Quorum Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened launcher Announcer Announcer Nice Answer Nice Answer Good Answer Enlightened Good Answer Guru Electorate Good Answer Nice Question Good Answer Good Question Good Answer Good Answer Guru Necromancer Guru Nice Answer Enlightened Notable Question Good Answer Guru Good Answer android-4.2-jelly-bean Nice Answer Enlightened Announcer Good Answer Enlightened android-gradle gallery Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer android-intentservice Guru Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Populist Nice Answer android-resources Nice Answer Announcer Nice Question Good Answer Popular Question Enlightened deprecated Guru Guru Popular Question Great Answer android-permissions Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Nice Answer Nice Answer Nice Answer Enlightened Guru Great Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru manifest Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened battery Guru camera Nice Answer Enlightened Great Answer Guru android-file Announcer Good Answer Guru Nice Answer Enlightened Nice Answer Good Answer geolocation Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened google-maps Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Enlightened android-assets Nice Answer Good Answer Good Answer Guru Notable Question Good Answer Nice Answer Enlightened Good Answer Announcer Popular Question oncreate Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Popular Question Nice Answer Good Answer Nice Answer Enlightened Famous Question Notable Question Popular Question Nice Answer Enlightened Enlightened Nice Answer Great Answer Nice Answer Enlightened Guru share Guru file Good Answer pdf Popular Question Revival Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Guru Good Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer android-camera-intent Nice Answer Good Answer Nice Answer Enlightened Guru Necromancer Guru Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Guru Great Answer Announcer Good Answer Announcer Nice Answer Enlightened intentfilter Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Enlightened Nice Answer android-contentresolver android-6.0-marshmallow Guru parsing Guru Nice Answer Nice Answer Popular Question Good Answer Nice Answer Guru Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Notable Question Announcer Booster Nice Answer Good Answer Nice Answer Enlightened Popular Question Great Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Revival Nice Question Enlightened alarm Good Question Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Famous Question Popular Question Nice Answer Enlightened Nice Answer android-spinner Nice Answer Nice Answer Enlightened security Nice Answer Enlightened Nice Question Announcer Guru Great Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened parcelable Nice Answer screen intellij-idea Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer filesystems Nice Answer Enlightened Caucus Notable Question Good Answer Nice Answer Enlightened settings Nice Answer Enlightened Notable Question Good Answer Nice Answer Constituent Guru Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Guru action Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened garbage-collection Nice Answer Enlightened Good Answer Populist Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer static Good Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru database Guru Good Answer Nice Answer Guru Nice Answer Announcer Popular Question Nice Answer Enlightened Announcer Nice Answer Enlightened android-volley Guru Guru Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Nice Answer Famous Question listview Booster Announcer Nice Answer Enlightened Nice Answer Enlightened webview Nice Answer Famous Question Great Answer Good Answer Announcer android-edittext Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Good Answer Good Question Guru Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer android-fileprovider Great Answer google-maps-markers Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Announcer Notable Question Great Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Great Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Guru Great Answer gps Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Publicist Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer http Nice Question timer Nice Answer Enlightened Nice Answer Revival Good Question Nice Answer Enlightened permissions Nice Answer Enlightened Good Answer Nice Answer Guru Guru Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Guru Announcer Good Answer Nice Answer Enlightened Nice Answer Guru Notable Question Nice Answer Enlightened Good Answer Good Answer Great Answer memory-leaks Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened android-camera Popular Question Popular Question Good Answer Great Answer Revival Announcer Nice Question Great Answer screen-orientation Yearling Notable Question Guru Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Announcer Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer android-broadcastreceiver Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Famous Question Nice Answer Enlightened android-7.0-nougat Good Answer Great Answer Nice Answer Guru Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened folder Nice Answer Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer out-of-memory Announcer Nice Answer Enlightened Caucus Nice Answer Nice Answer Necromancer Nice Answer Guru Nice Answer Enlightened Good Answer Good Answer android-asynctask Guru Constituent Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Announcer Good Answer Nice Answer Nice Answer Enlightened Announcer Good Answer android-service Nice Answer Enlightened Announcer Guru Announcer emulation Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Enlightened Guru Great Answer Good Answer Good Answer Good Answer Announcer Guru Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Enlightened Nice Answer Good Answer Good Answer Good Question Nice Answer Enlightened Good Answer Nice Answer Guru Popular Question Nice Answer Nice Answer Enlightened Good Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Guru Nice Answer Good Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Favorite Question Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Announcer Nice Answer Enlightened Great Answer Guru Great Answer activity-lifecycle Nice Answer Great Answer Guru android-recyclerview Good Answer Nice Answer Enlightened Great Answer json Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Enlightened gradle Announcer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened xml Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Favorite Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer android-room Necromancer Guru Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Necromancer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Good Answer Guru filepath Good Answer Popular Question Guru Great Answer Nice Answer sqlcipher Guru Popular Question Nice Answer Enlightened Good Answer Great Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened path Good Answer Nice Answer Good Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Enlightened Nice Answer Great Answer Nice Answer Enlightened Good Answer Booster Nice Question Great Answer Nice Answer Enlightened Announcer widget Announcer Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened android-context Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Nice Answer Enlightened Nice Answer Announcer Enlightened Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer android-location Nice Answer Caucus Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Great Answer Nice Answer Great Answer jar Nice Answer Enlightened Nice Answer Enlightened android-architecture-components intentservice Popular Question Nice Answer Enlightened android-8.0-oreo Nice Answer Nice Answer Good Answer Announcer Guru Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Guru Announcer Nice Answer Enlightened Famous Question Nice Answer apk Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened logcat Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Good Answer Announcer Good Answer Nice Answer Enlightened Yearling Booster Announcer multithreading Announcer Nice Answer Enlightened Nice Answer Enlightened Notable Question Popular Question Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer android-permissions Great Answer Guru Nice Answer Great Answer Announcer Necromancer Announcer Announcer Good Answer Good Answer Nice Answer Guru Guru Guru Good Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Guru Nice Answer Guru Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Guru android-room Good Answer Enlightened Nice Answer Enlightened Announcer Guru Announcer Nice Answer Announcer Popular Question Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened performance Nice Answer Enlightened Nice Answer Enlightened uri Good Answer Announcer android-package-managers Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Question Good Answer Nice Answer Enlightened Announcer Announcer Great Answer Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened android-manifest android-4.0-ice-cream-sandwich Nice Answer Enlightened Nice Answer Enlightened Announcer Guru kotlin Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Great Answer Guru Nice Answer Revival Good Answer Nice Answer Announcer,NULL,pStep Make your codeAsyncTask code codestatic code nested class or an entirely separate class just not an inner non static nested class ppStep Have the codeAsyncTask code hold onto the codeActivity code via data member set via the constructor and setter ppStep When creating the codeAsyncTask code supply the current codeActivity code to the constructor ppStep In codeonRetainNonConfigurationInstance code return the codeAsyncTask code after detaching it from the original now going away activity ppStep In codeonCreate code if codegetLastNonConfigurationInstance code is not codenull code cast it to your codeAsyncTask code class and call your setter to associate your new activity with the task ppStep Do not refer to the activity data member from codedoInBackground code ppIf you follow the above recipe it will all work codeonProgressUpdate code and codeonPostExecute code are suspended between the start of codeonRetainNonConfigurationInstance code and the end of the subsequent codeonCreate code pp href http github com commonsguy cw android tree master Rotation RotationAsync rel noreferrer Here is sample project demonstrating the technique ppAnother approach is to ditch the codeAsyncTask code and move your work into an codeIntentService code This is particularly useful if the work to be done may be long and should go on regardless of what the user does in terms of activities downloading large file You can use an ordered broadcast codeIntent code to either have the activity respond to the work being done if it is still in the foreground or raise codeNotification code to let the user know if the work has been done href http commonsware com blog 2010 08 11 activity notification ordered broadcast html rel noreferrer Here is blog post with more on this pattern but is there way to pull this off without embedding the AsyncTask in Fragment in an AppCompatActivity personally only ever use AsyncTask in retained fragment Outside of that pattern will fork an ordinary thread and use an event bus greenrobot EventBus to get results back to an activity It possible that there are patterns for successful AsyncTask usage that do not involve retained fragments though don know what they are Fragment back stack and isRemoving android android fragments pI came across inconsistent return values from codeFragment isRemoving code when the activity has just added the fragment to the back stack The strongfirst strong time the fragment is temporarily destroyed due to configuration change codeisRemoving code returns true If the fragment is temporarily destroyed second time codeisRemoving code returns false ppMy code ppre codepublic class MainActivityFragment extends Fragment private static final String TAG MainActivityFragment private static final String LEVEL MainActivityFragment LEVEL public MainActivityFragment public static MainActivityFragment newInstance int MainActivityFragment new MainActivityFragment setArguments new Bundle getArguments putInt LEVEL return private int getLevel return getArguments null getArguments getInt LEVEL public View onCreateView LayoutInflater inflater ViewGroup container Bundle savedInstanceState View rootView inflater inflate layout fragment main container false Button button Button rootView findViewById id button button setText String valueOf getLevel button setOnClickListener new View OnClickListener public void onClick View getActivity getSupportFragmentManager beginTransaction replace id fragment MainActivityFragment newInstance getLevel addToBackStack null commit return rootView public void onCreate Bundle savedInstanceState super onCreate savedInstanceState Log TAG String valueOf getLevel onCreate public void onDestroy super onDestroy Log TAG String valueOf getLevel onDestroy Log TAG String valueOf getLevel isChangingConfigurations getActivity isChangingConfigurations Log TAG String valueOf getLevel isRemoving isRemoving code prepThe log lines starting with are my comments ppre code Start ActivityI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 1I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Rotate the device second timeI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Correct resultI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreate Click button in fragment to add it to back stack and replace it with fragment 2I MainActivityFragment onCreate Rotate the deviceI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving false Ok correctI MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving true WHY MainActivityFragment onDestroyI MainActivityFragment isChangingConfigurations trueI MainActivityFragment isRemoving falseI MainActivityFragment onCreateI MainActivityFragment onCreateI MainActivityFragment onCreate code prepIs this bug in Android or am understanding this wrong pp strongUpdate strong added call to Fragment dump in onDestroy and got the following results ppBefore the fragment is put in the back stack ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 0mAdded true mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 336d670b in HostCallbacks 387c69e8 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 2b6916a6 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepAfter the fragment is put in the back stack and is destroyed the first time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving true mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 34638ae1 in HostCallbacks 2db8e006 mHost android support v4 app FragmentActivity HostCallbacksiewState 2131492979 android view AbsSavedState Child FragmentManager 169d66c7 in null FragmentManager misc state mHost null mContainer null mCurState mStateSaved true mDestroyed true code prepDestroyed the second time ppre codemFragmentId 7f0c006b mContainerId 7f0c006b mTag nullmState mIndex mWho android fragment mBackStackNesting 1mAdded false mRemoving false mResumed false mFromLayout false mInLayout falsemHidden false mDetached false mMenuVisible true mHasMenu falsemRetainInstance false mRetaining false mUserVisibleHint truemFragmentManager FragmentManager 23beb2bc in HostCallbacks c0f9245 mHost android support v4 app FragmentActivity HostCallbacksagmentState Bundle android view state 2131492979 android view AbsSavedState mSavedViewState 2131492979 android view AbsSavedState code prepThe differences between the first not in back stack yet and second put in back stack are pollimState codeACTIVITY CREATED code vs mState codeCREATED code lilimBackStackNesting vs mBackStackNesting lilimAdded true vs mAdded false lilimRemoving false vs mRemoving true obviously li olpThe differences between the second first time destroyed and third second time destoyed are pollimRemoving true vs mRemoving false lilimSavedFragmentState null vs mSavedFragmentState Bundle lilihas Child FragmentManager vs has no Child FragmentManager li olpHowever have no idea how to interpret these results ppI starting to think codeisRemoving code is not what need what actually need is something equivalent to codeActivity isFinishing code but for fragments need to know that this fragment will emnever em be reused again so can cancel background tasks Right now using codeisRemoving amp amp getActivity isChangingConfigurations code but not sure it the right solution have never played with isRemoving agree that the results that you are seeing are very strange You might consider using dump on Fragment to get more state information instead of the logging that you re doing to see if that gives you any more clues blockquote pThe idea is that people can navigate away from this activity and quickly access it again from any screen they want by pulling down the drop down menu and selecting it blockquotepPlease make this optional pblockquote pHowever when the notification is pressed it starts new instance of the activity blockquotepThat will happen by default pblockquote pWhat would have to change to make it see if the activity has not already been destroyed and can just call that instance back resume it and therefore not needing to load it again and won need to add another activity to my stack blockquotepGet rid of codeFLAG ACTIVITY NEW TASK code Add codenotifyIntent setFlags Intent FLAG ACTIVITY CLEAR TOP Intent FLAG ACTIVITY SINGLE TOP code see href http github com commonsguy cw andtutorials tree master 20 Notifications Patchy rel noreferrer this sample project ppre codeContext context getApplicationContext code prepPlease don do this Just use your codeActivity code as codeContext code You cannot specify which task to resume directly You would have to try to mess around with Intent flags and manifest attributes to get the effects that you want have not attempted anything akin to what you describe so do not have recipe for you sorry pThe documentation for ACTION INSTALL PACKAGE is incorrect It too will only accept files ppMy only suggestion would therefore be to create copy of the file in the applications file area make it world readable and clean up any left over files at later date pblockquote strongPrevious incorrect answer strong In and above there is ACTION INSTALL PACKAGE which will accept content URI href http developer android com reference android content Intent html ACTION INSTALL PACKAGE rel noreferrer JavaDoc but prior to that you re limited to installing via ACTION VIEW which does assume the URI passed is file URI blockquote Note the content scheme works on Android though not on previous versions of Android pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup Yes as might JobIntentService in the v26 support library see answer update pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup think it should cover most cases that would depend on what work the IntentService did Does using JobIntentService mean the job will try to work right away it will be scheduled to run right away However at boot time there is fair bit of memory thrashing because dozens of apps request this broadcast The JobIntentService documentation indicates that the work may be delayed somewhat in these sorts of conditions pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup recommend that you ask separate Stack Overflow question as it is very difficult to follow what you have in your two comments pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup Probably though have not tried one from an ACTION BOOT COMPLETED receiver Also in general not sure how well this works from receiver don know how they are handling ensuring that your work gets scheduled with JobScheduler when you are not in the foreground pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup guess so though have not tried it personally blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that You are commenting on an answer from over two years ago At that time there was no documentation blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that You should update your answer because Retrofit is best you are welcome to your opinion My answer neither endorses nor bashes Retrofit Retrofit is now officially supported by Google you are welcome to provide some evidence of this AFAIK there is only one Web page in the documentation on Retrofit https developer android com topic libraries architecture guide html and that is merely an example blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP aut,,, "matically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that know nothing about Laravel and asking for specific product recommendations is considered to be off topic for Stack Overflow That being said never use Volley outside of book examples blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that Most likely you will use none of these and instead use something else WebRTC for the actual video And as stated do not use Volley blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that have no experience with any YouTube Web service API sorry blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that have not spent any time trying to compare the two sorry blockquote pI hoping someone can provide some concrete examples of best use cases for each blockquotepUse Retrofit if you are communicating with Web service Use the peer library Picasso if you are downloading images Use OkHTTP if you need to do HTTP operations that lie outside of Retrofit Picasso ppVolley roughly competes with Retrofit Picasso On the plus side it is one library On the minus side it is strikeone undocumented strike an unsupported throw the code over the wall and do an presentation on it library ppEDIT Volley is now officially supported by Google Kindly refer href https developer android com training volley index html rel noreferrer Google Developer Guide pblockquote pFrom what ve read seems like OkHTTP is the most robust of the blockquotepRetrofit uses OkHTTP automatically if available There is href https plus google com 108284392618554783657 posts eJJxhkTQ4yU rel noreferrer Gist from Jake Wharton that connects Volley to OkHTTP pblockquote pand could handle the requirements of this project mentioned above blockquotepProbably you will use none of them for streaming download of audio and video by the conventional definition of streaming Instead Android media framework will handle those HTTP requests for you ppThat being said if you are going to attempt to do your own HTTP based streaming OkHTTP should handle that scenario don recall how well Volley would handle that scenario Neither Retrofit nor Picasso are designed for that Reading the page will not help me answer your question The only way that can answer your question is to write large app that uses lots of memory then try both Glide and Picasso in that app From there can do both quantitative analysis of memory management plus provide my feedback on best for large apps which is subjective have not done this sort of comparison work nor have spent enough time with Glide to be able to just wing it based on what work that have done Sorry pWell what you basically have seems OK have the following code in href https github com commonsguy cw lunchlist tree master 19 Alarm LunchList rel noreferrer one of my projects ppre codeboolean enabled prefs getBoolean key false int flag enabled PackageManager COMPONENT ENABLED STATE ENABLED PackageManager COMPONENT ENABLED STATE DISABLED ComponentName component new ComponentName EditPreferences this OnBootReceiver class getPackageManager setComponentEnabledSetting component flag PackageManager DONT KILL APP code prepI use this to disable codeBOOT COMPLETED code receiver when don have any active alarms that need to be scheduled ppMy guess is that your codeComponentName code is not set up properly your leading code code Try the constructor that am using that takes codeContext code and codeClass code as parameters It is flag for setComponentEnabledSetting that controls whether the process should be terminated when we are toggling whether component is enabled or not It has nothing directly to do with any onReceive method blockquote pI thought Activity was deprecated blockquotepNo pblockquote pSo for API Level 22 with minimum support for API Level 15 or 16 what exactly should use both to host the components and for the components themselves Are there uses for all of these or should be using one or two almost exclusively blockquotep codeActivity code is the baseline Every activity inherits from codeActivity code directly or indirectly pp codeFragmentActivity code is for use with the backport of fragments found in the codesupport v4 code and codesupport v13 code libraries The native implementation of fragments was added in API Level 11 which is lower than your proposed codeminSdkVersion code values The only reason why you would need to consider codeFragmentActivity code specifically is if you want to use nested fragments fragment holding another fragment as that was not supported in native fragments until API Level 17 pp codeAppCompatActivity code is from the codeappcompat v7 code library Principally this offers backport of the action bar Since the native action bar was added in API Level 11 you do not need codeAppCompatActivity code for that However current versions of codeappcompat v7 code also add limited backport of the Material Design aesthetic in terms of the action bar and various widgets There are pros and cons of using codeappcompat v7 code well beyond the scope of this specific Stack Overflow answer pp codeActionBarActivity code is the old name of the base activity from codeappcompat v7 code For various reasons they wanted to change the name Unless some third party library you are using insists upon an codeActionBarActivity code you should prefer codeAppCompatActivity code over codeActionBarActivity code ppSo given your codeminSdkVersion code in the 15 16 range pulli pIf you want the backported Material Design look use codeAppCompatActivity code lili pIf not but you want nested fragments use codeFragmentActivity code lili pIf not use codeActivity code li ulpJust adding from comment as note AppCompatActivity extends FragmentActivity so anyone who needs to use features of FragmentActivity can use AppCompatActivity To use Theme Material you need minSdkVersion of 21 or higher pThere is no absolute path for file existing in the asset folder The content of your project codeassets code folder are packaged in the APK file Use an href http developer android com reference android content res AssetManager html rel noreferrer codeAssetManager code object to get an codeInputStream code on an asset pp strongEDIT strong ppTo repair one of my comments below the URL syntax for assets is codefile android asset code note three slashes AFAIK the only thing that pays attention to file android asset is WebView It possible that ContentResolver and openInputStream works with it but do not recall that it does The syntax in that earlier comment definitely will not work codegetApplicationContext code is almost always wrong href https stackoverflow com questions 5228160 what exactly does using the application context mean 5228494 5228494 Ms Hackborn among others have been very explicit that you emonly em use codegetApplicationContext code when you know emwhy em you are using codegetApplicationContext code and only when you emneed em to use codegetApplicationContext code ppTo be blunt some programmers use codegetApplicationContext code or codegetBaseContext code to lesser extent because their Java experience is limited They implement an inner class an codeOnClickListener code for codeButton code in an codeActivity code and need codeContext code Rather than using codeMyActivity this code to get at the outer class codethis code they use codegetApplicationContext code or codegetBaseContext code to get codeContext code object ppYou emonly em use codegetApplicationContext code when you emknow em you need codeContext code for something that may live longer than any other likely codeContext code you have at your disposal Scenarios include pulli pUse codegetApplicationContext code if you need something tied to codeContext code that itself will have global scope use codegetApplicationContext code for example in codeWakefulIntentService code for the static codeWakeLock code to be used for the service Since that codeWakeLock code is static and need codeContext code to get at codePowerManager code to create it it is safest to use codegetApplicationContext code lili pUse codegetApplicationContext code when you bind to codeService code from an codeActivity code if you wish to pass the codeServiceConnection code the handle to the binding between codeActivity code instances via codeonRetainNonConfigurationInstance code Android internally tracks bindings via these codeServiceConnections code and holds references to the codeContexts code that create the bindings If you bind from the codeActivity code then the new codeActivity code instance will have reference to the codeServiceConnection code which has an implicit reference to the old codeActivity code and the old codeActivity code cannot be garbage collected li ulpSome developers use custom subclasses of codeApplication code for their own global data which they retrieve via codegetApplicationContext code That certainly possible prefer static data members if for no other reason than you can only have emone em custom codeApplication code object built one app using custom codeApplication code object and found it to be painful href https stackoverflow com questions 3826905 singletons vs application context in android 3827166 3827166 Ms Hackborn also agrees with this position ppHere are reasons why emnot em to use codegetApplicationContext code wherever you go pulli pIt not complete codeContext code supporting everything that codeActivity code does Various things you will try to do with this codeContext code will fail href http groups google com group android developers browse thread thread 7a648edddccf6f7d rel noreferrer mostly related to the GUI lili pIt can create memory leaks if the codeContext code from codegetApplicationContext code holds onto something created by your calls on it that you don clean up With an codeActivity code if it holds onto something once the codeActivity code gets garbage collected everything else flushes out too The codeApplication code object remains for the lifetime of your process li ul do not understand your question sorry Please consider using the Ask Question button to ask fresh Stack Overflow question where you can explain your concern in greater detail codegetApplicationContext code is almost always wrong href https stackoverflow com questions 5228160 what exactly does using the application context mean 5228494 5228494 Ms Hackborn among others have been very explicit that you emonly em use codegetApplicationContext code when you know emwhy em you are using codegetApplicationContext code and only when you emneed em to use codegetApplicationContext code ppTo be blunt some programmers use codegetApplicationContext code or codegetBaseContext code to lesser extent because their Java experience is limited They implement an inner class an codeOnClickListener code for codeButton code in an codeActivity code and need codeContext code Rather than using codeMyActivity this code to get at the outer class codethis code they use codegetApplicationContext code or codegetBaseContext code to get codeContext code object ppYou emonly em use codegetApplicationContext code when you emknow em you need codeContext code for something that may live longer than any other likely codeContext code you have at your disposal Scenarios include pulli pUse codegetApplicationContext code if you need something tied to codeContext code that itself will have global scope use codegetApplicationContext code for example in codeWakefulIntentService code for the static codeWakeLock code to be used for the service Since that codeWakeLock code is static and need codeContext code to get at codePowerManager code to create it it is safest to use codegetApplicationContext code lili pUse codegetApplicationContext code when you bind to codeService code from an codeActivity code if you wish to pass the codeServiceConnection code the handle to the binding between codeActivity code instances via codeonRetainNonConfigurationInstance code Android internally tracks bindings via these codeServiceConnections code and holds references to the codeContexts code that create the bindings If you bind from the codeActivity code then the new codeActivity code instance will have reference to the codeServiceConnection code which has an implicit reference to the old codeActivity code and the old codeActivity code cannot be garbage collected li ulpSome developers use custom subclasses of codeApplication code for their own global data which they retrieve via codegetApplicationContext code That certainly possible prefer static data members if for no other reason than you can only have emone em custom codeApplication code object built one app using custom codeApplication code object and found it to be painful href https stackoverflow com questions 3826905 singletons vs application context in android 3827166 3827166 Ms Hackborn also agrees with this position ppHere are reasons why emnot em to use codegetApplicationContext code wherever you go pulli pIt not complete codeContext code supporting everything that codeActivity code does Various things you will try to do with this codeContext code will fail href http groups google com group android developers browse thread thread 7a648edddccf6f7d rel noreferrer mostly related to the GUI lili pIt can create memory leaks if the codeContext code from codegetApplicationContext code holds onto something created by your calls on it that you don clean up With an codeActivity code if it holds onto something once the codeActivity code gets garbage collected everything else flushes out too The codeApplication code object remains for the lifetime of your process li ul how come we are leaking class object the bullet point is referring to cases where you have an Application that holds onto other things Frequently this would occur because you created custom subclass of Application or used one from library However we did not write Application and so we do not know for all versions of Android and all customizations made to it what it might hold onto""",nice answer enlighten good answer good answer nice answer enlighten notable question nice answer enlighten nice answer enlighten good answer good answer nice answer good answer nice answer enlighten nice answer enlighten nice answer nice answer good answer nice answer popular question nice answer enlighten nice answer good answer nice answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer great answer enlighten nice answer nice answer enlighten nice answer enlighten nice answer popular question nice answer enlighten nice answer nice answer enlighten good answer great answer good answer good answer nice answer enlighten nice answer enlighten good answer url nice answer enlighten good answer guru good answer nice answer enlighten nice answer nice answer enlighten great answer nice answer enlighten quorum nice answer enlighten nice answer enlighten great answer nice answer enlighten good answer nice answer enlighten launcher announcer announcer nice answer nice answer good answer enlighten good answer guru electorate good answer nice question good answer good question good answer good answer guru necromancer guru nice answer enlighten notable question good answer guru good answer nice answer enlighten announcer good answer enlighten gallery guru nice answer enlighten nice answer enlighten nice answer nice answer guru nice answer enlighten good answer announcer good answer nice answer enlighten guru nice answer enlighten nice answer enlighten populist nice answer nice answer announcer nice question good answer popular question enlighten deprecate guru guru popular question great answer nice answer enlighten nice answer nice answer enlighten good answer guru announcer nice answer nice question nice answer enlighten nice answer enlighten nice answer nice answer enlighten notable question nice answer nice answer nice answer enlighten guru great answer good answer nice answer enlighten guru nice answer enlighten nice answer enlighten guru manifest nice answer good answer good answer good answer nice answer enlighten battery guru camera nice answer enlighten great answer guru announcer good answer guru nice answer enlighten nice answer good answer geolocation nice answer enlighten nice answer enlighten guru nice answer enlighten nice answer nice answer enlighten good answer nice answer enlighten nice answer enlighten great answer nice answer enlighten nice answer notable question nice answer enlighten nice answer yearle good answer nice answer enlighten nice answer good answer good answer guru notable question good answer nice answer enlighten good answer announcer popular question oncreate nice answer enlighten nice answer enlighten guru nice answer enlighten announcer popular question nice answer good answer nice answer enlighten famous question notable question popular question nice answer enlighten enlighten nice answer great answer nice answer enlighten guru share guru file good answer pdf popular question revival nice answer enlighten good answer nice question nice answer enlighten guru good question nice answer enlighten nice answer good answer nice answer enlighten announcer nice answer good answer nice answer enlighten guru necromancer guru nice answer enlighten good answer nice answer good answer guru nice answer nice answer enlighten good answer guru great answer announcer good answer announcer nice answer enlighten intentfilter nice answer enlighten guru nice answer nice answer enlighten enlighten nice answer guru parse guru nice answer nice answer popular question good answer nice answer guru nice answer enlighten good answer nice answer announcer nice answer enlighten popular question nice answer enlighten nice answer enlighten good answer nice answer nice answer enlighten nice answer nice answer nice answer enlighten notable question announcer nice answer good answer nice answer enlighten popular question great answer announcer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer revival nice question enlighten alarm good question nice answer enlighten announcer nice answer enlighten nice answer enlighten famous question popular question nice answer enlighten nice answer nice answer nice answer enlighten security nice answer enlighten nice question announcer guru great answer announcer nice answer enlighten nice answer nice answer enlighten good answer nice answer enlighten parcelable nice answer screen nice answer good answer nice answer enlighten nice answer guru good answer great answer nice answer enlighten nice answer enlighten nice answer enlighten good answer good answer nice answer enlighten nice answer enlighten nice answer filesystem nice answer enlighten caucus notable question good answer nice answer enlighten setting nice answer enlighten notable question good answer nice answer constituent guru nice answer enlighten popular question nice answer enlighten nice answer good answer great answer guru nice answer enlighten guru action nice answer enlighten nice answer enlighten nice answer nice answer enlighten nice answer enlighten guru good answer nice answer enlighten nice answer good answer nice answer enlighten great answer good answer nice answer enlighten nice answer enlighten good answer populist good answer good answer good answer good answer nice answer nice answer nice answer static good question nice answer nice answer nice answer enlighten nice answer enlighten good answer nice answer enlighten guru database guru good answer nice answer guru nice answer announcer popular question nice answer enlighten announcer nice answer enlighten guru guru enlighten nice answer enlighten nice answer enlighten nice answer nice answer enlighten guru announcer nice answer enlighten nice answer famous question listview announcer nice answer enlighten nice answer enlighten webview nice answer famous question great answer good answer announcer good answer nice answer enlighten nice answer nice answer nice answer enlighten good answer nice answer enlighten guru nice answer enlighten nice answer enlighten great answer nice answer enlighten good answer good answer good question guru enlighten nice answer enlighten nice answer enlighten good answer great answer great answer great answer nice answer enlighten nice answer enlighten notable question nice answer enlighten good answer great answer nice answer enlighten announcer notable question great answer nice answer enlighten nice answer announcer nice answer great question nice answer enlighten nice answer enlighten nice answer nice answer enlighten nice answer enlighten guru great answer guru nice answer enlighten guru nice answer enlighten guru great answer announcer nice answer enlighten nice answer enlighten nice answer good answer good answer nice answer enlighten publicist nice answer enlighten nice answer enlighten good answer guru enlighten nice answer great answer nice answer enlighten nice answer enlighten good answer http nice question timer nice answer enlighten nice answer revival good question nice answer enlighten permission nice answer enlighten good answer nice answer guru guru nice answer enlighten good answer nice answer guru nice answer enlighten guru announcer good answer nice answer enlighten nice answer guru notable question nice answer enlighten good answer good answer great answer guru nice answer enlighten good answer nice answer enlighten popular question popular question good answer great answer revival announcer nice question great answer yearle notable question guru nice answer enlighten good answer nice answer guru nice answer enlighten announcer good answer announcer nice answer enlighten nice answer nice answer enlighten nice answer enlighten announcer announcer good answer good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer good answer guru good answer nice answer enlighten nice answer good answer good answer good answer famous question nice answer enlighten good answer great answer nice answer guru good answer nice answer guru nice answer enlighten nice answer nice answer nice answer nice answer enlighten nice answer enlighten nice answer enlighten folder nice answer announcer nice answer enlighten good answer announcer nice answer enlighten nice answer announcer nice answer enlighten caucus nice answer nice answer necromancer nice answer guru nice answer enlighten good answer good answer guru constituent good answer nice answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer nice answer enlighten announcer nice answer good answer nice answer enlighten announcer nice answer announcer good answer nice answer nice answer enlighten announcer good answer nice answer enlighten announcer guru announcer emulation nice answer nice answer enlighten good answer nice answer popular question nice answer nice answer nice answer enlighten guru great answer good answer good answer good answer announcer guru nice answer nice answer good answer nice answer enlighten good answer enlighten nice answer good answer good answer good question nice answer enlighten good answer nice answer guru popular question nice answer nice answer enlighten good answer enlighten good answer nice answer enlighten nice answer enlighten nice answer enlighten announcer guru nice answer good answer great answer good answer nice answer enlighten nice answer enlighten great answer good answer nice answer enlighten nice answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer good answer favorite question guru good answer good answer nice answer nice answer enlighten nice answer enlighten popular question announcer nice answer enlighten great answer guru great answer nice answer great answer guru good answer nice answer enlighten great answer json good answer nice answer enlighten nice answer nice answer enlighten great answer nice answer enlighten good answer good answer great answer nice answer enlighten gradle announcer good answer great answer nice answer enlighten good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten xml guru nice answer enlighten nice answer enlighten nice answer enlighten guru good answer favorite question nice answer nice answer enlighten good answer nice answer necromancer guru nice answer nice answer nice answer good answer nice answer enlighten nice answer enlighten nice answer guru nice answer enlighten necromancer good answer nice answer enlighten good answer nice answer enlighten announcer good answer guru filepath good answer popular question guru great answer nice answer sqlcipher guru popular question nice answer enlighten good answer great answer announcer nice answer enlighten nice answer enlighten nice answer enlighten path good answer nice answer good answer popular question nice answer good answer nice answer enlighten nice answer guru announcer nice answer nice answer enlighten nice answer nice question enlighten nice answer great answer nice answer enlighten good answer nice question great answer nice answer enlighten announcer widget announcer nice answer enlighten nice answer enlighten populist good answer good answer guru nice answer enlighten nice answer nice answer enlighten good answer nice answer nice answer enlighten nice answer nice question nice answer nice answer enlighten nice answer announcer enlighten good answer necromancer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer nice answer caucus notable question nice answer enlighten nice answer enlighten nice answer enlighten nice answer good answer guru nice answer enlighten great answer nice answer great answer jar nice answer enlighten nice answer enlighten intentservice popular question nice answer enlighten nice answer nice answer good answer announcer guru nice answer enlighten great answer nice answer nice answer enlighten guru announcer nice answer enlighten famous question nice answer apk nice answer enlighten nice answer enlighten nice answer nice answer enlighten announcer good answer nice answer enlighten good answer nice answer enlighten nice answer nice answer enlighten logcat enlighten nice answer enlighten guru nice answer enlighten nice answer enlighten nice answer enlighten good answer good answer nice answer enlighten nice answer guru nice answer enlighten good answer announcer good answer nice answer enlighten yearle announcer multithreade announcer nice answer enlighten nice answer enlighten notable question popular question nice answer nice answer good answer nice answer enlighten nice answer enlighten nice answer great answer guru nice answer great answer announcer necromancer announcer announcer good answer good answer nice answer guru guru guru good answer nice answer nice answer enlighten announcer nice answer enlighten announcer guru nice answer guru great answer nice answer enlighten nice answer nice answer nice answer enlighten popular question nice answer good answer nice answer enlighten great answer nice answer good answer guru good answer enlighten nice answer enlighten announcer guru announcer nice answer announcer popular question necromancer good answer nice answer enlighten nice answer enlighten performance nice answer enlighten nice answer enlighten uri good answer announcer nice answer enlighten nice answer nice answer enlighten enlighten good answer nice answer enlighten nice answer enlighten guru nice answer nice question good answer nice answer enlighten announcer announcer great answer nice answer enlighten enlighten nice answer good answer nice answer good answer nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten nice answer enlighten announcer guru nice answer enlighten good answer nice answer enlighten announcer nice answer enlighten nice answer enlighten good answer nice question nice answer enlighten announcer good answer nice answer enlighten great answer guru nice answer revival good answer nice answer announcer runtime exception android boot complete android android bootcomplete android oreo pi start intentservice boot complete receiver android api codejava lang java lang allow start service intent act intent action update cmp packagename service ownservice app background code prep message line easy readable pphow correct phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup pstep make codeasynctask code codestatic code nest class separate class static nest class ppstep codeasynctask code hold codeactivity code datum member set constructor setter ppstep create codeasynctask code supply current codeactivity code constructor ppstep code return codeasynctask code detaching original activity ppstep codeoncreate code code codenull code cast codeasynctask code class setter associate activity task ppstep refer activity datum member code ppif follow recipe work code code suspend start code end subsequent codeoncreate code href http github commonsguy cw android tree master rotation rotationasync noreferrer sample project demonstrate technique ppanother approach ditch codeasynctask code work code work long user term activity download large file order broadcast codeintent code activity respond work foreground raise code user work href http commonsware blog activity notification order broadcast html noreferrer blog post pattern pull embed asynctask fragment personally asynctask retain fragment pattern fork ordinary thread event bus greenrobot eventbus result activity pattern successful asynctask usage involve retain fragment fragment stack isremoving android android fragment pi inconsistent return value codefragment isremoving code activity add fragment stack strongfirst strong time fragment temporarily destroy configuration change codeisremove code return true fragment temporarily destroy time codeisremove code return false ppmy code codepublic class extend fragment private static final string tag private static final string level level public public static newinstance int setargument bundle getargument putint level return private int getlevel return getargument null getargument getint level public view oncreateview layoutinflater inflater viewgroup container bundle view rootview inflater inflate layout fragment main container false button button button rootview findviewbyid button button settext string valueof getlevel button view onclicklistener public void onclick view getactivity replace fragment newinstance getlevel addtobackstack null commit return rootview public void oncreate bundle super oncreate log tag string valueof getlevel oncreate public void ondestroy super ondestroy log tag string valueof getlevel ondestroy log tag string valueof getlevel getactivity log tag string valueof getlevel isremoving isremoving code prepthe log line start comment code start activityi oncreate click button fragment add stack replace fragment oncreate rotate devicei ondestroyi truei isremoving true ondestroyi truei isremoving oncreatei oncreate rotate device timei ondestroyi truei isremoving false correct resulti ondestroyi truei isremoving oncreatei oncreate click button fragment add stack replace fragment oncreate rotate devicei ondestroyi truei isremoving false correcti ondestroyi truei isremoving true ondestroyi truei isremoving oncreatei oncreatei oncreate code prepi bug android understanding wrong strongupdate strong add fragment dump ondestroy result ppbefore fragment stack mcontainerid mtag nullmstate mindex mwho android fragment true mremove false mresume false mfromlayout false minlayout falsemhidden false mdetache false mmenuvisible true mhasmenu false mretaining false fragmentmanager hostcallback mhost android support app android view abssavedstate child fragmentmanager null fragmentmanager misc state mhost null mcontainer null mcurstate mstatesave true mdestroye true code prepafter fragment stack destroy time mcontainerid mtag nullmstate mindex mwho android fragment false mremove true mresume false mfromlayout false minlayout falsemhidden false mdetache false mmenuvisible true mhasmenu false mretaining false fragmentmanager hostcallback mhost android support app android view abssavedstate child fragmentmanager null fragmentmanager misc state mhost null mcontainer null mcurstate mstatesave true mdestroye true code prepdestroye time mcontainerid mtag nullmstate mindex mwho android fragment false mremove false mresume false mfromlayout false minlayout falsemhidden false mdetache false mmenuvisible true mhasmenu false mretaining false fragmentmanager hostcallback mhost android support app bundle android view state android view abssavedstate msavedviewstate android view abssavedstate code prepthe difference stack stack pollimstate codeactivity create code mstate codecreate code lilimadde true mad false lilimremove false mremove true li difference time destroy time destoye pollimremove true mremove false null bundle liliha child fragmentmanager child fragmentmanager li olphowever idea interpret result ppi start codeisremove code equivalent codeactivity isfinishe code fragment fragment emnever -PRON- reuse cancel background task codeisremove amp amp getactivity code solution play isremoving agree result strange dump fragment state information log clue blockquote pthe idea people navigate activity quickly access screen pull drop menu select make optional pblockquote phowever notification press start instance activity happen default pblockquote pwhat change make activity destroy instance resume need load add activity stack blockquotepget rid codeflag activity task code add setflag intent flag activity clear intent flag activity single code href http github commonsguy cw andtutorial tree master notification patchy noreferrer sample project codecontext context code prepplease codeactivity code codecontext code task resume directly mess intent flag manifest attribute effect attempt akin recipe pthe documentation action install package incorrect accept file ppmy suggestion create copy file application file area make world readable clean leave file date pblockquote strongprevious incorrect answer strong action install package accept content uri href http developer android reference android content intent html action install package noreferrer javadoc prior limit instal action view assume uri pass file uri blockquote note content scheme work android previous version android phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup support library answer update phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup cover case depend work intentservice job work schedule run boot time fair bit memory thrashing dozen app request broadcast documentation work delay sort condition phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup recommend separate stack overflow question difficult follow comment phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup action boot complete receiver general work receiver handle ensure work schedule jobscheduler foreground phere option outline href https commonsware blog action boot complete intentservice android html noreferrer blog post code receive codeaction boot complete code broadcastcould code code codeimport android content import android content context import android content intent import android build public class extend public void onreceive context context intent intent intent intent context class build version sdk int build version code context context startservice code prepnote work extent service actuallyever code window time aroundto call code comparable anr interval work longer millisecond second skip code code error logcat androidruntime fatal exception main process commonsware myapplication pid android app context service startforeground android app activitythread handlemessage activitythread java android handler dispatchmessage handler java android looper loop looper java android app activitythread main activitythread java java lang reflect method invoke native method android internal zygote run zygote java android internal zygoteinit main zygoteinit java code prepof mind code briefly welcometo code android expect case cando background work entry show user goasync code offer codegoasync code api level yourreceiver work main application thread rid code code code period work tie main workaround sametime limitation avoid nasty error require amountof rework jobscheduler work second emand -PRON- avoid code modify code implement codejobservice code andwork code add advantage give youcontrol criterion meet usable require rewrite codei android code solution old device strongupdate strong eugen pechanec href https twitter epechanec status noreferrer point code interesting codejobservice code code mashup guess personally blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design comment answer year ago time documentation blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project men,,,,,,, "ion stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design update answer retrofit opinion answer endorse bash retrofit retrofit officially support google provide evidence afaik web page documentation retrofit https developer android topic library architecture guide html blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design laravel specific product recommendation consider topic stack overflow volley book example blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design webrtc actual video state volley blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design experience youtube web service api blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design spend time compare blockquote pi hope provide concrete example case retrofit communicating web service peer library picasso download image okhttp http operation lie retrofit picasso ppvolley roughly compete retrofit picasso library strikeone undocumented strike unsupported throw code wall presentation library ppedit volley officially support google kindly refer href https developer android training volley index html noreferrer google developer guide pblockquote pfrom read okhttp robust okhttp automatically href https google post noreferrer gist jake wharton connect volley okhttp pblockquote pand handle requirement project mention stream download audio video conventional definition stream android medium framework handle http request ppthat attempt http base stream okhttp handle scenario recall volley handle scenario retrofit picasso design read page answer question answer question write large app lot memory glide picasso app quantitative analysis memory management provide feedback large app subjective sort comparison work spend time glide wing base work pwell basically code href https github commonsguy cw lunchlist tree master alarm lunchlist noreferrer project codeboolean enable pref getboolean key false int flag enable packagemanager component enable state enable packagemanager component enable state disable componentname component componentname editpreference class component flag packagemanager do not kill app code prepi disable codeboot complete code receiver active alarm schedule ppmy guess code set properly lead code code constructor take codecontext code codeclass code parameter flag control process terminate toggle component enable directly onreceive method blockquote pi think activity deprecate blockquotepno pblockquote pso api level minimum support api level host component component exclusively blockquotep codeactivity code baseline activity inherit codeactivity code directly indirectly code backport fragment codesupport code codesupport code library native implementation fragment add api level low propose code value reason code specifically nest fragment fragment hold fragment support native fragment api level code codeappcompat code library principally offer backport action bar native action bar add api level code current version codeappcompat code add limit backport material design aesthetic term action bar widget pro con codeappcompat code scope specific stack overflow answer code base activity codeappcompat code reason want change party library insist code prefer code code ppso code range pulli pif backporte material design code lili pif nest fragment code lili pif codeactivity code li ulpjust add comment note extend feature theme material minsdkversion high pthere absolute path file exist asset folder content project codeasset code folder package apk file href http developer android reference android content assetmanager html noreferrer code object codeinputstream code asset strongedit strong ppto repair comment url syntax asset codefile android asset code note slash afaik thing pay attention file android asset webview contentresolver openinputstream work recall syntax earlier comment work code wrong href https stackoverflow question application context ms hackborn explicit emonly -PRON- code emwhy -PRON- code emnee -PRON- code ppto blunt programmer code code less extent java experience limit implement class code codebutton code codeactivity code codecontext code codemyactivity code outer class codethis code code code codecontext code object ppyou emonly -PRON- code emknow -PRON- codecontext code live longer codecontext code disposal scenario include pulli puse code tie codecontext code global scope code code static codewakelock code service codewakelock code static codecontext code code create safe code lili puse code bind codeservice code codeactivity code pass code handle bind codeactivity code instance code android internally track binding code hold reference codecontext code create binding bind codeactivity code codeactivity code instance reference code implicit reference codeactivity code codeactivity code garbage collect li ulpsome developer custom subclass codeapplication code global datum retrieve code prefer static datum member reason emone -PRON- custom codeapplication code object build app custom codeapplication code object painful href https stackoverflow question singleton application context android ms hackborn agree position pphere reason emnot -PRON- code pulli pit complete codecontext code support codeactivity code thing codecontext code fail href http group google group android developer browse thread thread noreferrer relate gui lili pit create memory leak codecontext code code hold create call clean codeactivity code hold codeactivity code garbage collect flush codeapplication code object remain lifetime process li understand question question button fresh stack overflow question explain concern great code wrong href https stackoverflow question application context ms hackborn explicit emonly -PRON- code emwhy -PRON- code emnee -PRON- code ppto blunt programmer code code less extent java experience limit implement class code codebutton code codeactivity code codecontext code codemyactivity code outer class codethis code code code codecontext code object ppyou emonly -PRON- code emknow -PRON- codecontext code live longer codecontext code disposal scenario include pulli puse code tie codecontext code global scope code code static codewakelock code service codewakelock code static codecontext code code create safe code lili puse code bind codeservice code codeactivity code pass code handle bind codeactivity code instance code android internally track binding code hold reference codecontext code create binding bind codeactivity code codeactivity code instance reference code implicit reference codeactivity code codeactivity code garbage collect li ulpsome developer custom subclass codeapplication code global datum retrieve code prefer static datum member reason emone -PRON- custom codeapplication code object build app custom codeapplication code object painful href https stackoverflow question singleton application context android ms hackborn agree position pphere reason emnot -PRON- code pulli pit complete codecontext code support codeactivity code thing codecontext code fail href http group google group android developer browse thread thread noreferrer relate gui lili pit create memory leak codecontext code code hold create call clean codeactivity code hold codeactivity code garbage collect flush codeapplication code object remain lifetime process li leak class object bullet point refer case application hold thing frequently occur create custom subclass application library write application version android customization hold""",1,NULL,Runtime exception Android with boot completed android android broadcastreceiver bootcompleted android oreo pI trying to start an IntentService within my BOOT COMPLETED receiver but in Android API 26 get ppre codejava lang RuntimeException java lang IllegalStateException Not allowed to start service Intent act intent action update cmp packageName services OwnService app is in background code prep Message is in one line but this way it easier readable ppHow can do this the correct way pHere are some options that outlined in href https commonsware com blog 2017 06 12 action boot completed intentservice android 8p0 html rel noreferrer blog post ph3Workaround startForegroundService h3pYour codeBroadcastReceiver code that receives the codeACTION BOOT COMPLETED code broadcastcould call codestartForegroundService code instead of codestartService code when on Android8 ppre codeimport android content BroadcastReceiver import android content Context import android content Intent import android os Build public class OnBootReceiver extends BroadcastReceiver public void onReceive Context context Intent intent Intent new Intent context TestIntentService class if Build VERSION SDK INT gt Build VERSION CODES context startForegroundService else context startService code prepNote that this works to an extent even if your service does not actuallyever call codestartForeground code You are given window of time to get aroundto calling codestartForeground code comparable to the ANR interval to do this If your work is longer than millisecond but less than few seconds you could skip the codeNotification code and the codestartForeground code call However you will get an error in LogCat ppre codeE AndroidRuntime FATAL EXCEPTION main Process com commonsware myapplication PID 5991 android app RemoteServiceException Context startForegroundService did not then call Service startForeground at android app ActivityThread handleMessage ActivityThread java 1775 at android os Handler dispatchMessage Handler java 105 at android os Looper loop Looper java 164 at android app ActivityThread main ActivityThread java 6541 at java lang reflect Method invoke Native Method at com android internal os Zygote MethodAndArgsCaller run Zygote java 240 at com android internal os ZygoteInit main ZygoteInit java 767 code prepOf course if you do not mind having codeNotification code briefly you are welcometo use codestartForeground code as Android expects you to in which case you cando background work normally albeit with an entry showing up in the user notificationshade ph3Workaround goAsync h3p codeBroadcastReceiver code has offered codegoAsync code since API Level 11 This allows yourreceiver to do work off the main application thread so you could get rid of thecodeIntentService code entirely and move your code into the codeBroadcastReceiver code You still only have the ANRtimeout period to work with but you will not be tying up your main applicationthread This is better than the first workaround insofar as it has the sametime limitation but avoids the nasty error However it does require some amountof rework ph3Workaround JobScheduler h3pIf your work will take more than few seconds emand em you want to avoid thecodeNotification code you could modify your code to implement codeJobService code andwork with codeJobScheduler code This has the added advantage of only giving youcontrol when other criteria are met there is usable Internetconnection However not only does this require rewrite but codeJobScheduler codeis only available on Android so if your codeminSdkVersion code is less than 21 you will need some other solution on the older devices pp strongUPDATE strong Eugen Pechanec href https twitter com EPechanec status 874347355058962433 rel noreferrer pointed out codeJobIntentService code which is an interesting codeJobService code codeIntentService code mashup,,,,, 54247,398593,260580,NULL,NULL,NULL,0,NULL,NULL 54248,199491,717885,Famous Question,NULL,NULL,0,NULL,NULL 54249,168453,1565245,NULL,NULL,NULL,0,NULL,NULL 54250,1377725,1006964,Teacher Scholar Supporter Revival Student Editor Commentator Autobiographer Caucus Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 54251,1637494,1006964,Teacher Scholar Supporter Revival Student Editor Commentator Autobiographer Caucus Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 54252,190468,1361320,NULL,NULL,NULL,0,NULL,NULL 54253,1386758,1329076,Nice Answer,NULL,NULL,0,NULL,NULL 54254,40890,625597,Yearling,NULL,NULL,0,NULL,NULL 54255,483733,988915,NULL,NULL,NULL,0,NULL,NULL 54256,17332,380237,NULL,NULL,NULL,0,NULL,NULL 54257,118149,515311,Yearling Nice Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 54258,482866,1146175,Popular Question,NULL,NULL,0,NULL,NULL 54259,158844,28123,NULL,NULL,NULL,0,NULL,NULL 54260,268126,1184192,Revival,NULL,NULL,0,NULL,NULL 54261,169267,868775,NULL,NULL,NULL,0,NULL,NULL 54262,82206,878127,NULL,NULL,NULL,0,NULL,NULL 54263,1424338,771812,Notable Question,NULL,NULL,0,NULL,NULL 54264,11723,831955,Necromancer Nice Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 54265,3457813,831955,Necromancer Nice Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 54266,234411,1437522,Teacher Revival,NULL,NULL,0,NULL,NULL 54267,386760,978892,NULL,NULL,NULL,0,NULL,NULL 54268,158390,638672,Notable Question Good Answer Good Question Yearling Popular Question Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 54269,300300,816704,NULL,NULL,NULL,0,NULL,NULL 54270,3428893,531928,Notable Question Notable Question Enthusiast Famous Question Caucus Constituent Popular Question Nice Question,NULL,NULL,0,NULL,NULL 54271,8270,1375514,NULL,NULL,NULL,0,NULL,NULL 54272,104408,309812,Critic Popular Question Student Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 54273,22891,1364877,NULL,NULL,NULL,0,NULL,NULL 54274,115586,244707,Custodian Yearling,NULL,NULL,0,NULL,NULL 54275,168777,527922,NULL,NULL,NULL,0,NULL,NULL 54276,63558,1022246,NULL,NULL,NULL,0,NULL,NULL 54277,9673,106626,Revival,NULL,NULL,0,NULL,NULL 54278,897779,1228914,Famous Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54279,21815,152646,Good Answer Yearling http Student Scholar Nice Answer Yearling Necromancer Yearling,NULL,NULL,1,Optional Type Foo raises TypeError in Python python python annotations python typing pThis code ppre code usr bin env pythonfrom typing import Optional Typeclass Foo object passclass Bar Foo passdef test me gt Optional Type Foo print Hi there return Barif name main test me code prepwill raise codeTypeError code on ppre codeTraceback most recent call last File test py line 11 in lt module gt def test me gt Optional Type Foo File Users mnot pyenv versions lib python3 typing py line 649 in getitem return Union arg type None File Users mnot pyenv versions lib python3 typing py line 552 in getitem dict self dict parameters root True File Users mnot pyenv versions lib python3 typing py line 512 in new for t2 in all params t1 if not isinstance t2 TypeVar File Users mnot pyenv versions lib python3 typing py line 512 in lt genexpr gt for t2 in all params t1 if not isinstance t2 TypeVar File Users mnot pyenv versions lib python3 typing py line 1077 in subclasscheck if super subclasscheck cls File Users mnot pyenv versions lib python3 abc py line 225 in subclasscheck for scls in cls subclasses TypeError descriptor subclasses of type object needs an argument code prepwhereas it runs fine on Same problem if spell out Optional as codeUnion None Type Foo code ppIs there any workaround for while still accurately annotating the return type,NULL 54280,197031,674432,NULL,NULL,NULL,0,NULL,NULL 54281,437598,704142,Tumbleweed,NULL,NULL,0,NULL,NULL 54282,550421,310870,Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 54283,2550554,1297481,Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 54284,23847,479941,Good Answer Custodian Organizer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54285,2151283,311534,Popular Question Famous Question Popular Question Yearling Caucus Constituent Notable Question Civic Duty Informed Notable Question Famous Question Documentation User Caucus Constituent Popular Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 54286,341029,145277,Civic Duty Notable Question Notable Question Popular Question Yearling Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Caucus Notable Question Popular Question Popular Question Good Question Famous Question Famous Question Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Famous Question Socratic Notable Question,NULL,NULL,0,NULL,NULL 54287,843889,1306600,Commentator Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 54288,351152,1393102,NULL,NULL,NULL,0,NULL,NULL 54289,306439,181376,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 54290,202142,34798,Yearling Curious,NULL,NULL,0,NULL,NULL 54291,4020,1033020,Supporter,NULL,NULL,0,NULL,NULL 54292,84430,5560,Yearling,NULL,NULL,0,NULL,NULL 54293,673936,363579,NULL,NULL,NULL,0,NULL,NULL 54294,11793,126068,Nice Question Notable Question Necromancer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 54295,160781,478344,Yearling,NULL,NULL,0,NULL,NULL 54296,178160,632734,NULL,NULL,NULL,0,NULL,NULL 54297,1154512,230809,Popular Question Nice Question Famous Question Famous Question Yearling Notable Question Notable Question Notable Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 54298,4979045,344026,Tumbleweed Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54299,661314,344026,Tumbleweed Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54300,404037,139077,Famous Question Nice Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54301,633781,852020,Teacher,NULL,NULL,0,NULL,NULL 54302,1457935,479608,Critic Famous Question Notable Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54303,23918,665923,Announcer Yearling Nice Answer Nice Answer Revival Good Answer Great Answer Notable Question Yearling Famous Question Necromancer Documentation User Yearling,NULL,NULL,0,NULL,NULL 54304,386984,323821,NULL,NULL,NULL,0,NULL,NULL 54305,1138685,168657,Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Nice Question Nice Answer Enlightened Great Answer Nice Answer Custodian Good Answer Nice Answer Nice Answer Steward Nice Answer Yearling Guru Announcer Nice Answer Enlightened Nice Answer Nice Answer Caucus Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Question Good Answer Nice Answer Nice Answer Enlightened Good Answer cpan Caucus Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Announcer Guru Documentation User Announcer Great Answer Good Answer Good Answer Nice Answer Electorate Nice Answer regex Nice Answer Guru Guru Popular Question Announcer Nice Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Good Answer file-io Revival Nice Answer Yearling Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54306,372663,1317229,NULL,NULL,NULL,0,NULL,NULL 54307,443735,1270723,Yearling Nice Answer Yearling Nice Answer Enlightened Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54308,508103,454656,Teacher,NULL,NULL,0,NULL,NULL 54309,483198,784469,NULL,NULL,NULL,0,NULL,NULL 54310,218361,530985,NULL,NULL,NULL,0,NULL,NULL 54311,8999961,530985,NULL,NULL,NULL,0,NULL,NULL 54312,205758,437544,NULL,NULL,NULL,0,NULL,NULL 54313,57994,1092806,NULL,NULL,NULL,0,NULL,NULL 54314,183709,608839,NULL,NULL,NULL,0,NULL,NULL 54315,208094,156775,Guru Nice Answer Proofreader Yearling Nice Answer Enlightened Caucus Constituent Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 54316,218947,603825,NULL,NULL,NULL,0,NULL,NULL 54317,624979,1226943,NULL,NULL,NULL,0,NULL,NULL 54318,36974,679254,Popular Question Popular Question Yearling python Notable Question Nice Question Good Answer Good Question Guru Notable Question Yearling Notable Question Good Answer Guru Announcer Nice Answer Yearling Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54319,1510282,1173862,NULL,NULL,NULL,0,NULL,NULL 54320,1612089,464396,NULL,NULL,NULL,0,NULL,NULL 54321,253514,652971,Nice Answer Revival Yearling Informed,NULL,NULL,0,NULL,NULL 54322,205395,449045,Tumbleweed Custodian Curious Yearling Commentator,NULL,NULL,0,NULL,NULL 54323,199831,424489,Good Answer Good Answer Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 54324,205359,694471,NULL,NULL,NULL,0,NULL,NULL 54325,865027,70125,Popular Question,NULL,NULL,0,NULL,NULL 54326,679185,935334,NULL,NULL,NULL,0,NULL,NULL 54327,141349,1498163,NULL,NULL,NULL,0,NULL,NULL 54328,709476,917545,NULL,NULL,NULL,0,NULL,NULL 54329,317505,1458647,Yearling Yearling,NULL,NULL,0,NULL,NULL 54330,445434,1294846,NULL,NULL,NULL,0,NULL,NULL 54331,824444,1045391,NULL,NULL,NULL,0,NULL,NULL 54332,600281,204732,Informed Editor Supporter Commentator Critic Autobiographer Citizen Patrol Organizer Yearling Yearling Nice Answer Enlightened Mortarboard Yearling Custodian Custodian Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 54333,107592,595729,NULL,NULL,NULL,0,NULL,NULL 54334,702483,825217,NULL,NULL,NULL,0,NULL,NULL 54335,93382,497643,Nice Answer Good Answer Yearling Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 54336,327683,1369210,NULL,NULL,NULL,0,NULL,NULL 54337,253908,1385801,Yearling,NULL,NULL,0,NULL,NULL 54338,96069,1044493,Notable Question Citizen Patrol,NULL,NULL,0,NULL,NULL 54339,1054095,319805,Supporter Announcer Student,NULL,NULL,0,NULL,NULL 54340,69203,237315,Curious Yearling Popular Question Nice Question Notable Question Popular Question Yearling,NULL,NULL,1,Kestrel shutdown function in Startup cs in ASP NET Core asp net core pIs there shutdown function when using codeMicrosoft AspNet Server Kestrel code ASP NET Core formerly ASP NET vNext clearly has Startup sequence but no mention of shutdown sequence and how to handle clean closure,NULL 54341,4706258,1015987,Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54342,3238814,495571,Popular Question Guru Yearling javascript Enthusiast Notable Question Famous Question Notable Question Yearling Nice Question Census Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 54343,129219,277795,Yearling,NULL,NULL,0,NULL,NULL 54344,308467,254553,Yearling Popular Question Popular Question Inquisitive Caucus Informed Famous Question Popular Question Popular Question Announcer Nice Answer Yearling Popular Question Caucus Popular Question Documentation User Nice Question Notable Question Famous Question Famous Question Popular Question Yearling Famous Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 54345,84069,1048918,Documentation User,NULL,NULL,0,NULL,NULL 54346,291259,424426,Caucus Informed Autobiographer Constituent Yearling,NULL,NULL,0,NULL,NULL 54347,1956178,1386040,NULL,NULL,NULL,0,NULL,NULL 54348,973583,838423,Revival,NULL,NULL,0,NULL,NULL 54349,325131,838423,Revival,NULL,NULL,0,NULL,NULL 54350,311229,422931,Revival Popular Question,NULL,NULL,0,NULL,NULL 54351,1607194,841343,NULL,NULL,NULL,0,NULL,NULL 54352,98936,786693,NULL,NULL,NULL,0,NULL,NULL 54353,211118,977178,NULL,NULL,NULL,0,NULL,NULL 54354,542863,896944,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 54355,185688,278215,NULL,NULL,NULL,0,NULL,NULL 54356,707325,791457,NULL,NULL,NULL,0,NULL,NULL 54357,477390,1489188,Yearling Announcer Yearling Good Answer,NULL,pWithout using sudo and CFLAGS and CPPFLAGS unnecessary for pip ppre code brew install pkg config libffi export PKG CONFIG PATH usr local Cellar libffi 13 lib pkgconfig pip install bcrypt code pre This helped me install Quartz pip install pyobjc framework Quartz Thanks,0,NULL,NULL 54358,8367498,948169,Nice Answer Yearling Caucus Tumbleweed Caucus Nice Answer Popular Question Scholar Yearling Good Answer Unsung Hero Good Answer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 54359,123352,948169,Nice Answer Yearling Caucus Tumbleweed Caucus Nice Answer Popular Question Scholar Yearling Good Answer Unsung Hero Good Answer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 54360,78899,1355430,Editor Scholar,NULL,NULL,0,NULL,NULL 54361,1516567,1506657,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54362,56174,1363433,NULL,NULL,NULL,0,NULL,NULL 54363,146738,1376269,NULL,NULL,NULL,0,NULL,NULL 54364,64899,397509,Notable Question,NULL,NULL,0,NULL,NULL 54365,199072,515874,Popular Question Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 54366,13703,267228,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 54367,179075,200477,Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Good Question Favorite Question Good Answer Famous Question Famous Question Nice Question Nice Question Good Question Famous Question Good Question Great Question Great Question Yearling Notable Question Famous Question Nice Question Favorite Question Popular Question Great Question Good Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Popular Question Popular Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Good Question Good Answer Famous Question Stellar Question Popular Question Famous Question Favorite Question Popular Question Famous Question Popular Question Famous Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 54368,1587088,200477,Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Good Question Favorite Question Good Answer Famous Question Famous Question Nice Question Nice Question Good Question Famous Question Good Question Great Question Great Question Yearling Notable Question Famous Question Nice Question Favorite Question Popular Question Great Question Good Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Popular Question Popular Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Good Question Good Answer Famous Question Stellar Question Popular Question Famous Question Favorite Question Popular Question Famous Question Popular Question Famous Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 54369,91484,481049,Nice Answer Mortarboard Good Answer Citizen Patrol Yearling Revival Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 54370,338659,1526615,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54371,200541,22956,NULL,NULL,NULL,0,NULL,NULL 54372,1718164,154917,Yearling Populist Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 54373,1092534,861750,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54374,129373,929878,NULL,NULL,NULL,0,NULL,NULL 54375,52420,1289550,NULL,NULL,NULL,0,NULL,NULL 54376,1398469,945185,Necromancer Yearling Notable Question Necromancer Yearling Popular Question Custodian Citizen Patrol Self-Learner Popular Question Caucus Revival Yearling,NULL,NULL,0,NULL,NULL 54377,1237712,1009265,Popular Question Notable Question Notable Question Popular Question Famous Question Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54378,727080,34763,NULL,NULL,NULL,0,NULL,NULL 54379,10199666,562274,NULL,NULL,NULL,0,NULL,NULL 54380,566963,1525397,NULL,NULL,NULL,0,NULL,NULL 54381,163570,1304009,Critic Populist Revival Necromancer Yearling Necromancer Necromancer Nice Answer Nice Answer Yearling Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 54382,94058,136327,NULL,NULL,NULL,0,NULL,NULL 54383,49090,273141,Yearling Nice Answer Popular Question Custodian Citizen Patrol Popular Question Famous Question Necromancer Nice Question Yearling Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 54384,181026,511374,Necromancer Informed Nice Answer Good Answer Populist Custodian Citizen Patrol Caucus Yearling Peer Pressure Unsung Hero Census Excavator Guru angularjs Yearling Census Nice Answer Caucus Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 54385,48715,1505610,NULL,NULL,NULL,0,NULL,NULL 54386,372943,1499744,NULL,NULL,NULL,0,NULL,NULL 54387,73329,139886,NULL,NULL,NULL,0,NULL,NULL 54388,31687,727716,Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 54389,446155,1346873,Autobiographer Student Editor Scholar Supporter,NULL,NULL,0,NULL,NULL 54390,378397,23786,Curious Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 54391,719610,1507384,Notable Question,NULL,NULL,0,NULL,NULL 54392,767064,701108,NULL,NULL,NULL,0,NULL,NULL 54393,196591,792158,NULL,NULL,NULL,0,NULL,NULL 54394,53934,1303109,NULL,NULL,NULL,0,NULL,NULL 54395,11144379,691148,Student Yearling Custodian Yearling Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 54396,698782,691148,Student Yearling Custodian Yearling Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 54397,10707727,691148,Student Yearling Custodian Yearling Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 54398,283794,585897,Critic,NULL,NULL,0,NULL,NULL 54399,2797162,630839,NULL,NULL,NULL,0,NULL,NULL 54400,82205,70852,Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 54401,553383,279032,Yearling,NULL,NULL,0,NULL,NULL 54402,86186,809114,NULL,NULL,NULL,0,NULL,NULL 54403,157116,1447546,Popular Question,NULL,NULL,0,NULL,NULL 54404,307789,860420,Nice Question,NULL,NULL,0,NULL,NULL 54405,63692,1216291,NULL,NULL,NULL,0,NULL,NULL 54406,205010,450670,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 54407,255285,1188151,NULL,NULL,NULL,0,NULL,NULL 54408,880387,1438290,NULL,NULL,NULL,0,NULL,NULL 54409,171520,468498,Famous Question Good Question Popular Question Notable Question Yearling Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Good Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 54410,1484477,293413,Notable Question,NULL,NULL,0,NULL,NULL 54411,41601,688369,NULL,NULL,NULL,0,NULL,NULL 54412,234749,27986,Self-Learner Famous Question Popular Question Yearling Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 54413,270100,636513,Teacher Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54414,457920,440268,Yearling Yearling,NULL,NULL,0,NULL,NULL 54415,133178,460257,Popular Question Revival Notable Question Yearling Good Answer Revival Caucus,NULL,NULL,0,NULL,NULL 54416,29883,241482,Good Answer Custodian Yearling Notable Question Yearling Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 54417,105075,648486,NULL,NULL,NULL,0,NULL,NULL 54418,98101,914336,NULL,NULL,NULL,0,NULL,NULL 54419,623,174449,javascript Nice Answer Good Answer Nice Answer Nice Answer Yearling Good Answer Necromancer Necromancer Custodian Yearling Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54420,567272,927886,NULL,NULL,NULL,0,NULL,NULL 54421,69953,1566758,NULL,NULL,NULL,0,NULL,NULL 54422,179983,829200,NULL,NULL,NULL,0,NULL,NULL 54423,417593,1225280,NULL,NULL,NULL,0,NULL,NULL 54424,1518107,723855,NULL,NULL,NULL,0,NULL,NULL 54425,737656,1303214,Yearling Student Yearling Great Answer Editor Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 54426,219523,1411661,NULL,NULL,NULL,0,NULL,NULL 54427,1879583,1493936,NULL,NULL,NULL,0,NULL,NULL 54428,919583,525797,Caucus Famous Question Good Question Yearling Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 54429,75944,893177,Yearling,NULL,NULL,0,NULL,NULL 54430,1434241,1110185,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 54431,1367799,1407656,Popular Question Popular Question Popular Question Yearling Popular Question Announcer Announcer Caucus Constituent Good Answer Announcer Nice Answer Popular Question Good Answer Census Popular Question Great Answer Popular Question Yearling Guru Nice Answer Enlightened Notable Question Announcer aem Caucus Announcer Constituent Popular Question Announcer Nice Answer Enlightened Census Notable Question Enlightened Announcer Caucus Nice Answer Enlightened Popular Question Constituent Popular Question Nice Answer Popular Question Yearling Convention Notable Question Notable Question Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Enlightened Guru Popular Question,NULL,NULL,0,NULL,NULL 54432,92959,1104104,NULL,NULL,NULL,0,NULL,NULL 54433,335054,285519,Editor Informed Critic Caucus Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 54434,167793,728320,NULL,NULL,NULL,0,NULL,NULL 54435,199681,599345,NULL,NULL,NULL,0,NULL,NULL 54436,177464,517567,Editor,NULL,NULL,0,NULL,NULL 54437,1006052,808388,Yearling,NULL,NULL,0,NULL,NULL 54438,437883,989139,Popular Question Civic Duty Popular Question Nice Question Notable Question Famous Question Informed Autobiographer Yearling,NULL,pIt is fairly easy to achieve using Mari codebackground color inherit code technique in addition with code webkit background clip text code ppLive demo href https jsfiddle net s10f04du rel noreferrer https jsfiddle net s10f04du ppre code screen and webkit min device pixel ratio container overflow scroll overflow hidden background color rgba webkit background clip text transition background color 8s container hover background color rgba 18 container webkit scrollbar thumb background color inherit code pre This approach leaves some kind of text trail during scroll Please check https jsfiddle net s10f04du 62,0,NULL,NULL 54439,684261,1556996,NULL,NULL,NULL,0,NULL,NULL 54440,1285400,777319,NULL,NULL,NULL,0,NULL,NULL 54441,1124796,1021036,Necromancer,NULL,NULL,0,NULL,NULL 54442,648317,1090854,NULL,NULL,NULL,0,NULL,NULL 54443,636466,1254105,NULL,NULL,NULL,0,NULL,NULL 54444,1508064,1244201,NULL,NULL,NULL,0,NULL,NULL 54445,67764,682160,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 54446,1589884,1173750,NULL,NULL,NULL,0,NULL,NULL 54447,330404,1173750,NULL,NULL,NULL,0,NULL,NULL 54448,54099,687208,Yearling Popular Question Popular Question Notable Question Famous Question Necromancer Popular Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 54449,82725,197500,Nice Answer Yearling Tumbleweed Famous Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 54450,12427,231350,Yearling Necromancer Documentation User,NULL,NULL,0,NULL,NULL 54451,643404,524418,NULL,NULL,NULL,0,NULL,NULL 54452,3205338,1442340,Good Answer Popular Question Nice Answer Enlightened Yearling Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 54453,888615,1442340,Good Answer Popular Question Nice Answer Enlightened Yearling Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 54454,4491886,1157625,NULL,NULL,NULL,0,NULL,NULL 54455,679280,1157625,NULL,NULL,NULL,0,NULL,NULL 54456,72447,659572,NULL,NULL,NULL,0,NULL,NULL 54457,909410,686563,Good Answer Popular Question Critic Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 54458,1212200,923284,NULL,NULL,NULL,0,NULL,NULL 54459,833183,1039803,Popular Question,NULL,NULL,0,NULL,NULL 54460,6483290,1092383,NULL,NULL,NULL,0,NULL,NULL 54461,420356,1355867,NULL,NULL,NULL,0,NULL,NULL 54462,4492803,1110691,NULL,NULL,NULL,0,NULL,NULL 54463,8416,658474,Civic Duty Necromancer Yearling Necromancer Notable Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened symfony Yearling Yearling,NULL,NULL,0,NULL,NULL 54464,18090,107250,Nice Answer Populist Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Question Nice Answer Enlightened Guru Good Answer Great Answer Nice Answer Nice Answer Yearling Popular Question Nice Answer Notable Question Good Answer Guru Famous Question Nice Answer Enlightened Good Answer Guru Great Answer Guru Nice Question Guru Famous Question Great Answer Great Answer Notable Question Good Answer Yearling Famous Question Nice Answer Enlightened Good Answer Nice Question Good Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 54465,854608,375651,NULL,NULL,NULL,0,NULL,NULL 54466,226386,101141,Popular Question Census,NULL,NULL,0,NULL,NULL 54467,725771,57095,Yearling Nice Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Census Notable Question Popular Question Nice Answer Popular Question Inquisitive Great Answer Popular Question Caucus Announcer Nice Answer Enlightened Notable Question Guru Good Answer Announcer Nice Answer Popular Question Yearling unix Popular Question,NULL,pThe path is relative to the directory in which you are coderequire codeing the files so it should be something like ppre codevar couch require couch var config require config code prepA bit of clarification if you write ppre codevar couch require couch code prepyou are trying to coderequire code the couch module which resides in the current directory if you write ppre codevar couch require couch code prepyou are trying to coderequire code the couch module installed via codenpm code Please open new question posting your relevant information such as snippet with your code and the likes link it here if you prefer pCheckout the code maxdepth code flag of codefind code ppre codefind maxdepth type exec ls ld code prepHere used as max level depth code type code means find only directories which then codels ld code lists contents of in long format Oh yes definitely it looks wrong know it didn though years ago ve already commented on http stackoverflow com 25618630 57095 that it should be the accepted answer pThe following solution can also be used in basic shells such as Bourne without the need for regular expressions Basically any numeric value evaluation operations using non numbers will result in an error which will be implicitly considered as false in shell ppre code var eq var code prepas in ppre code bin bashvar aif var amp amp var eq var gt dev null then echo numberelse echo not numberfi code prepYou can can also test for the return code of the operation which is more explicit ppre code var amp amp var eq var gt dev nullif ne then echo var is not numberfi code prepRedirection of standard error is there to hide the integer expression expected message that bash prints out in case we do not have number pp strongCAVEATS strong thanks to the comments below pulliNumbers with decimal points are emnot em identified as valid numbers liliUsing code code instead of code code will always evaluate to codetrue code liliMost non Bash shells will always evaluate this expression as codetrue code liliThe behavior in Bash is undocumented and may therefore change without warning liliIf the value includes spaces after the number produces error like codebash syntax error in expression error token is code liliIf the value is the same as var name produces error like codebash expression recursion level exceeded error token is code li ul Ah see thanks for explanation wasn really worrying about that years ago when wrote this,0,NULL,NULL 54468,106349,548124,NULL,NULL,NULL,0,NULL,NULL 54469,396574,482410,Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 54470,169425,1420754,Yearling Student Civic Duty Census Necromancer Yearling Taxonomist Census Caucus Constituent Custodian Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 54471,185205,846892,Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer python-2.7 Publicist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer dictionary Guru Nice Answer Enlightened Nice Answer Enlightened Publicist Publicist Guru Great Answer Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru file Nice Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer replace Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Constituent Good Answer Popular Question Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Publicist Revival Good Answer Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Census Good Answer Nice Answer Popular Question Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Notable Question Guru python-3.x Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer function Nice Question Great Answer Nice Answer Publicist Yearling Caucus Guru Great Answer Nice Answer Enlightened Populist Constituent Nice Answer Enlightened Good Answer Guru Nice Answer Great Answer Announcer Good Answer Notable Question Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Popular Question Good Answer Guru matrix Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Famous Question Announcer Good Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Good Answer Constituent Great Answer lambda Announcer Good Question Nice Answer import Announcer Guru Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Notable Question Good Answer Guru Great Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Great Answer Announcer Guru,NULL,pIn Python you can define your own generator function like this ppre codedef accumu lis total for in lis total yield totalIn list accumu 12 Out 10 22 code prepAnd in Python you can use href http docs python org library itertools html itertools accumulate rel noreferrer codeitertools accumulate code ppre codeIn lis 12 In from itertools import accumulateIn list accumulate lis Out 10 22 code pre Man personally think that the worst PEP ever Bad enough https mail python org pipermail python committers 2018 July 005664 html pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr Why pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr dict setitem dict setitem is micro optimisation done to prevent extra lookups in this case dict is built in variable,0,NULL,NULL 54472,6472100,846892,Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer python-2.7 Publicist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer dictionary Guru Nice Answer Enlightened Nice Answer Enlightened Publicist Publicist Guru Great Answer Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Guru file Nice Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Announcer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer replace Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Constituent Good Answer Popular Question Nice Answer Enlightened Guru Nice Answer Good Answer Good Answer Publicist Revival Good Answer Great Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Census Good Answer Nice Answer Popular Question Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Notable Question Guru python-3.x Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer function Nice Question Great Answer Nice Answer Publicist Yearling Caucus Guru Great Answer Nice Answer Enlightened Populist Constituent Nice Answer Enlightened Good Answer Guru Nice Answer Great Answer Announcer Good Answer Notable Question Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Nice Answer Enlightened Popular Question Good Answer Guru matrix Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Famous Question Announcer Good Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer Enlightened Good Answer Guru Announcer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Good Answer Constituent Great Answer lambda Announcer Good Question Nice Answer import Announcer Guru Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Notable Question Good Answer Guru Great Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Great Answer Announcer Guru,NULL,pIn Python you can define your own generator function like this ppre codedef accumu lis total for in lis total yield totalIn list accumu 12 Out 10 22 code prepAnd in Python you can use href http docs python org library itertools html itertools accumulate rel noreferrer codeitertools accumulate code ppre codeIn lis 12 In from itertools import accumulateIn list accumulate lis Out 10 22 code pre Man personally think that the worst PEP ever Bad enough https mail python org pipermail python committers 2018 July 005664 html pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr Why pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr dict setitem dict setitem is micro optimisation done to prevent extra lookups in this case dict is built in variable,0,NULL,NULL 54473,183232,195450,NULL,NULL,NULL,0,NULL,NULL 54474,1046475,999859,NULL,NULL,NULL,0,NULL,NULL 54475,154451,995540,NULL,NULL,NULL,0,NULL,NULL 54476,38070,875225,NULL,NULL,NULL,0,NULL,NULL 54477,1517481,1169797,Critic Nice Question Curious Informed Caucus Documentation User Yearling Revival Census Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54478,8627375,1169797,Critic Nice Question Curious Informed Caucus Documentation User Yearling Revival Census Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54479,100413,644070,Yearling,NULL,NULL,0,NULL,NULL 54480,275356,374875,NULL,NULL,NULL,0,NULL,NULL 54481,459091,1340644,NULL,NULL,NULL,0,NULL,NULL 54482,34422,6560,Nice Answer Enlightened Yearling Fanatic Caucus Good Answer Announcer Caucus Yearling Announcer Announcer Caucus Announcer castle-windsor Yearling,NULL,NULL,0,NULL,NULL 54483,2505051,819937,Informed Necromancer Critic Documentation User Necromancer Yearling,NULL,NULL,0,NULL,NULL 54484,3945214,731304,Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 54485,371808,731304,Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 54486,51169,570854,NULL,NULL,NULL,0,NULL,NULL 54487,8943,1065899,NULL,NULL,NULL,0,NULL,NULL 54488,524705,953343,Popular Question,NULL,NULL,0,NULL,NULL 54489,1371218,694309,NULL,NULL,NULL,0,NULL,NULL 54490,95470,550710,NULL,NULL,NULL,0,NULL,NULL 54491,413034,550710,NULL,NULL,NULL,0,NULL,NULL 54492,849169,11834,Great Answer Nice Answer Nice Answer Enlightened Good Answer Popular Question Good Answer Good Answer Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Caucus Yearling Good Answer Guru Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 54493,3544681,279184,Yearling,NULL,NULL,0,NULL,NULL 54494,1512599,279184,Yearling,NULL,NULL,0,NULL,NULL 54495,307768,123234,Popular Question Yearling Nice Question Popular Question Famous Question Good Answer Yearling Nice Answer Nice Answer Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 54496,211531,1446143,NULL,NULL,NULL,0,NULL,NULL 54497,222885,123743,Notable Question Yearling Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Yearling Nice Answer Custodian Good Answer,NULL,NULL,0,NULL,NULL 54498,253573,716180,Teacher,NULL,NULL,0,NULL,NULL 54499,361157,1353557,NULL,NULL,NULL,0,NULL,NULL 54500,392009,620241,Yearling,NULL,NULL,0,NULL,NULL 54501,1567855,801829,NULL,NULL,NULL,0,NULL,NULL 54502,100445,467314,Popular Question Famous Question Notable Question Nice Question Yearling Nice Answer Yearling Good Answer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54503,883284,564900,NULL,NULL,NULL,0,NULL,NULL 54504,226958,702614,NULL,NULL,NULL,0,NULL,NULL 54505,32681,288122,Announcer Popular Question,NULL,NULL,0,NULL,NULL 54506,95120,1446949,NULL,NULL,NULL,0,NULL,NULL 54507,1261465,201139,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 54508,2461145,201139,Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 54509,551003,1166384,NULL,NULL,NULL,0,NULL,NULL 54510,459284,696357,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54511,430221,695450,NULL,NULL,NULL,0,NULL,NULL 54512,1569534,594635,Famous Question Revival Yearling Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 54513,4388399,594635,Famous Question Revival Yearling Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 54514,1520650,1229369,NULL,NULL,NULL,0,NULL,NULL 54515,40606,303951,Yearling Civic Duty Commentator,NULL,NULL,0,NULL,NULL 54516,980029,97726,NULL,NULL,NULL,0,NULL,NULL 54517,491863,958578,Notable Question,NULL,NULL,0,NULL,NULL 54518,720672,1282247,Tumbleweed Commentator Informed Notable Question Popular Question Critic Enthusiast Teacher Caucus Yearling Notable Question Nice Question Yearling,NULL,NULL,1,Reference to local binding declared in enclosing function 17 clang pTake the following code ppre code include lt array gt int main auto unused return std array lt int gt 42 24 amp return 15 void unused code prepDo not worry about the codeunused code variable just want to destructure the array ppThe code compiles fine with the latest GCC and MSVC but Clang href https godbolt org vZcMKQ rel nofollow noreferrer refuses to compile Changing the capture list of the lambda does not change anything Funny enough setting explicitly codea code in the capture list raise the error that codea is not variable code ppI am quite sure this is bug but wanted to ask mainly because AFAIK codea code is reference to the first element of the array with the lifetime extended to the codemain code scope in this case not just an codeint code correct me if am wrong ph1Edit h1pAs you can see from the other question the problem is that codea code and codeunused code are not emvariables em yes Clang is right but emreference names em which cannot be captured by lambdas Nevertheless if you strongreally strong need something like this you can use local variable for the lambda like this ppre code include lt array gt int main auto unused return std array lt int gt 42 24 amp return 15 void unused code prepIn this case the object is copied which is fine with trivially copiable objects In other case you could use something like ppre code amp std ref uncopiable obj return get do something code prepSaid that do not like these workaround because they are very unclear and lower the expressiveness of the code IHMO it is better to use other cleaner solutions,NULL 54519,314686,852826,Informed,NULL,NULL,0,NULL,NULL 54520,5554756,852826,Informed,NULL,NULL,0,NULL,NULL 54521,369358,655778,NULL,NULL,NULL,0,NULL,NULL 54522,1074724,1345159,NULL,NULL,NULL,0,NULL,NULL 54523,555393,660072,Teacher Supporter Census Necromancer,NULL,NULL,0,NULL,NULL 54524,551168,890601,Promoter Curious Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 54525,400528,1362256,NULL,NULL,NULL,0,NULL,NULL 54526,325271,1094618,NULL,NULL,NULL,0,NULL,NULL 54527,4607707,104376,Yearling Revival Caucus Yearling Self-Learner Student Yearling Popular Question,NULL,NULL,0,NULL,NULL 54528,740706,104376,Yearling Revival Caucus Yearling Self-Learner Student Yearling Popular Question,NULL,NULL,0,NULL,NULL 54529,435490,348482,Notable Question Yearling Custodian Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 54530,175011,1251550,NULL,NULL,NULL,0,NULL,NULL 54531,115348,361787,Commentator Autobiographer Caucus,NULL,NULL,0,NULL,NULL 54532,135323,63280,NULL,NULL,NULL,0,NULL,NULL 54533,264279,1040118,Notable Question Yearling,NULL,NULL,0,NULL,NULL 54534,211337,1271868,Yearling Caucus Nice Answer Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 54535,74503,630752,Yearling Announcer Revival Nice Answer Electorate Necromancer Good Answer Popular Question Populist Nice Answer Nice Answer Popular Question Popular Question Yearling Popular Question Popular Question Custodian Popular Question Nice Answer Revival Notable Question Popular Question Famous Question Yearling Necromancer Revival Custodian Popular Question react-native Custodian Tenacious Necromancer,NULL,NULL,0,NULL,NULL 54536,211716,412372,Notable Question Commentator Nice Question Yearling Curious Informed Caucus Constituent Critic Autobiographer,NULL,NULL,0,NULL,NULL 54537,139640,716416,Informed,NULL,NULL,0,NULL,NULL 54538,566039,699012,Popular Question Autobiographer Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54539,35073,1021300,Popular Question Nice Answer Enlightened Critic Informed Yearling Necromancer Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 54540,1336383,1382554,NULL,NULL,NULL,0,NULL,NULL 54541,146966,1022475,NULL,NULL,NULL,0,NULL,NULL 54542,96058,455450,NULL,NULL,NULL,0,NULL,NULL 54543,115598,1543182,NULL,NULL,NULL,0,NULL,NULL 54544,1138812,859167,NULL,NULL,NULL,0,NULL,NULL 54545,1540500,313708,Yearling Necromancer,NULL,NULL,0,NULL,NULL 54546,614932,762038,NULL,NULL,NULL,0,NULL,NULL 54547,104305,203747,Revival Taxonomist Yearling Census Revival Good Answer Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 54548,390859,251001,Yearling Notable Question Good Answer Notable Question Necromancer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54549,217734,44683,Popular Question Nice Question Good Question Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Good Question Revival Notable Question Famous Question Famous Question Popular Question Nice Question Necromancer Notable Question Notable Question Popular Question Yearling Notable Question Nice Question Good Question Notable Question Nice Question Nice Question Notable Question Popular Question Famous Question Nice Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Nice Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54550,7012435,1391239,Informed Autobiographer,NULL,NULL,0,NULL,NULL 54551,28395,1391239,Informed Autobiographer,NULL,NULL,0,NULL,NULL 54552,304404,244347,NULL,NULL,NULL,0,NULL,NULL 54553,726368,614861,NULL,NULL,NULL,0,NULL,NULL 54554,896909,950055,Yearling,NULL,NULL,0,NULL,NULL 54555,38073,1340465,Supporter,NULL,NULL,0,NULL,NULL 54556,12373,22474,Good Answer Nice Answer Revival Excavator Nice Answer Enlightened Nice Answer Guru Yearling Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Great Answer Guru Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54557,53266,146716,Popular Question Nice Answer Yearling Nice Question Excavator,NULL,Multiple apple touch startup image resolutions for iOS web app esp for iPad ipad mobile safari ios web applications pI ve written an HTML5 based iOS web application and all seems to be working well but trying to polish it up with multiple startup screens The iPhone iPod touch works well PNG of 320x460 as follows ppre code lt link rel apple touch startup image href img startup screen 320x460 png gt code prepI found plenty of documentation that says the startup images for the iPad should like the iPhone iPod touch have the 20px shaved from the height to accommodate for the status bar giving resolutions of 768x1004 portrait or 1024x748 landscape However in my testing currently an iPad running iOS only the 768x1004 portrait resolution works but is incorrect—20px too narrow—when in landscape mode ppI ve tried the following wild guess based on the functionality of the codeapple touch icon code links to no avail ppre code lt link rel apple touch startup image href img startup screen 320x460 png gt lt link rel apple touch startup image sizes 1024x748 href img startup screen 1024x748 png gt lt link rel apple touch startup image sizes 768x1004 href img startup screen 768x1004 png gt code prepOnly the 768x1004 resolution image works if it the last codelink code element listed If the 1024x748 resolution image is last gray background is rendered in its stead but never the 768x1004 So obviously the codeapple touch startup image code codelink code doesn support the codesizes code attribute ppIs this supported in newer versions of the iOS Is there any way to support multiple startup images Should create 1024x768 startup image If so will is be scaled down for the iPhone iPod touch Or should just give up and not have startup image for the iPad Thanks for pointing that out believe that size changed in the last years from when initially asked the question number of the answers from that period include the same initial value,0,NULL,NULL 54558,120562,1476172,Popular Question,NULL,NULL,0,NULL,NULL 54559,93244,163709,NULL,NULL,NULL,0,NULL,NULL 54560,718943,983386,Famous Question Custodian Good Question Famous Question Famous Question Proofreader Popular Question Excavator Notable Question Custodian Civic Duty Popular Question Reviewer Yearling Popular Question Notable Question Popular Question Famous Question Nice Answer Good Answer Popular Question Popular Question Yearling Notable Question Popular Question Census Notable Question Stellar Question Custodian Necromancer Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 54561,373853,1279327,NULL,NULL,NULL,0,NULL,NULL 54562,8652156,1517124,NULL,NULL,NULL,0,NULL,NULL 54563,400419,276457,Nice Answer Yearling Notable Question Nice Question Nice Answer Popular Question Popular Question Notable Question Necromancer Nice Answer Caucus Popular Question Custodian Yearling Custodian Necromancer Good Answer Nice Answer Necromancer Caucus Notable Question Custodian Nice Answer Notable Question Revival Yearling Caucus Great Answer Popular Question Nice Answer,NULL,pI don know why vim uses so many colors to highlight with it doesn really help you figure out what going on ppI modified my colorscheme to only use emone em color to highlight with another to show where theres difference within line and it made all the difference ph2Before h2p img src https stack imgur com tleeE png alt enter image description here ph2After h2p img src https stack imgur com c0uHu png alt colorscheme screenshot ppI did this by adding the following to the end of my colorscheme file code vim colors mycolorsheme code ppre codehighlight DiffAdd cterm bold ctermfg 10 ctermbg 17 gui none guifg bg guibg Redhighlight DiffDelete cterm bold ctermfg 10 ctermbg 17 gui none guifg bg guibg Redhighlight DiffChange cterm bold ctermfg 10 ctermbg 17 gui none guifg bg guibg Redhighlight DiffText cterm bold ctermfg 10 ctermbg 88 gui none guifg bg guibg Red code preulli codecterm code sets the style lili codectermfg code set the text color lili codectermbg code set the highlighting lili codeDiffAdd code line was added lili codeDiffDelete code line was removed lili codeDiffChange code part of the line was changed highlights the whole line lili codeDiffText code the exact part of the line that changed li ulpI used href http vim wikia com wiki Xterm256 color names for console Vim file Xterm color table png this link as reference for the color numbers ppNote didn set the gui options because use different colorscheme for macvim gvim Because have gui specific colorsheme have no idea what those settings are doing Please edit if you think there something more appropriate,0,NULL,NULL 54564,115513,865698,NULL,NULL,NULL,0,NULL,NULL 54565,212847,1553921,Teacher Famous Question Popular Question,NULL,NULL,0,NULL,NULL 54566,1719795,1137144,Popular Question Notable Question Supporter,NULL,NULL,0,NULL,NULL 54567,547228,1226119,NULL,NULL,NULL,0,NULL,NULL 54568,450980,422050,NULL,NULL,NULL,0,NULL,NULL 54569,1022496,422050,NULL,NULL,NULL,0,NULL,NULL 54570,22518,196423,Popular Question Good Question Nice Answer Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 54571,127008,382745,Popular Question Nice Question Yearling Nice Question Good Question Notable Question Yearling Famous Question Teacher Notable Question Yearling,NULL,NULL,0,NULL,NULL 54572,281335,1346141,Informed Revival Supporter Editor Revival Necromancer,NULL,NULL,0,NULL,NULL 54573,257841,810587,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54574,38844,664080,Yearling Caucus Constituent Yearling Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54575,1509431,1237798,NULL,NULL,NULL,0,NULL,NULL 54576,154303,501559,Editor Informed Autobiographer Enthusiast Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 54577,468160,865014,NULL,NULL,NULL,0,NULL,NULL 54578,113768,740185,NULL,NULL,NULL,0,NULL,NULL 54579,388835,693050,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54580,221830,507077,Good Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Popular Question Yearling Notable Question Nice Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 54581,409562,1131706,NULL,NULL,NULL,0,NULL,NULL 54582,152977,271877,Great Answer Favorite Question Nice Answer Yearling Revival Nice Question Civic Duty Notable Question Popular Question Famous Question Yearling Necromancer Necromancer Nice Question Nice Question Popular Question Famous Question Yearling Good Question Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 54583,397475,119177,Student,NULL,NULL,0,NULL,NULL 54584,3593423,1009600,Teacher Popular Question,NULL,NULL,0,NULL,NULL 54585,451506,1009600,Teacher Popular Question,NULL,NULL,0,NULL,NULL 54586,602250,218880,Notable Question Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54587,327096,304138,Nice Question Yearling Good Answer Nice Answer Enlightened Announcer Caucus Revival Yearling Nice Answer Caucus Announcer Necromancer Announcer Caucus Yearling Nice Answer Announcer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 54588,410725,821003,NULL,NULL,NULL,0,NULL,NULL 54589,481977,512918,NULL,NULL,NULL,0,NULL,NULL 54590,1517491,728712,NULL,NULL,NULL,0,NULL,NULL 54591,186739,881018,Necromancer,NULL,NULL,0,NULL,NULL 54592,326098,1255089,NULL,NULL,NULL,0,NULL,NULL 54593,258144,616603,NULL,NULL,NULL,0,NULL,NULL 54594,103934,623758,NULL,NULL,NULL,0,NULL,NULL 54595,24734,978827,Good Answer Yearling Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 54596,359776,557427,NULL,NULL,NULL,0,NULL,NULL 54597,421301,197091,Necromancer Guru Yearling Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54598,367147,880928,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54599,108311,190196,Critic Notable Question,NULL,NULL,0,NULL,NULL 54600,375923,1556375,NULL,NULL,NULL,0,NULL,NULL 54601,1347327,1556375,NULL,NULL,NULL,0,NULL,NULL 54602,1632590,1556375,NULL,NULL,NULL,0,NULL,NULL 54603,159197,1193139,NULL,NULL,NULL,0,NULL,NULL 54604,2034937,1193139,NULL,NULL,NULL,0,NULL,NULL 54605,3682703,1193139,NULL,NULL,NULL,0,NULL,NULL 54606,4335543,936737,Yearling Self-Learner Yearling Nice Answer Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54607,882669,936737,Yearling Self-Learner Yearling Nice Answer Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54608,43489,422129,NULL,NULL,NULL,0,NULL,NULL 54609,868708,840407,NULL,NULL,NULL,0,NULL,NULL 54610,89605,540599,NULL,NULL,NULL,0,NULL,NULL 54611,234079,572822,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 54612,349543,1167976,NULL,NULL,NULL,0,NULL,NULL 54613,274778,169544,Yearling Revival Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 54614,262831,246759,Nice Answer Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54615,229920,420250,Notable Question Yearling Custodian Nice Question Popular Question Yearling Popular Question Notable Question Excavator Yearling,NULL,NULL,0,NULL,NULL 54616,839866,817859,NULL,NULL,NULL,0,NULL,NULL 54617,1510481,817859,NULL,NULL,NULL,0,NULL,NULL 54618,145716,1033708,Citizen Patrol Critic Self-Learner Popular Question Yearling Notable Question Notable Question Revival,NULL,NULL,0,NULL,NULL 54619,42720,42272,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54620,4929,1040282,NULL,NULL,NULL,0,NULL,NULL 54621,217411,36120,Editor Tumbleweed Guru Necromancer Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 54622,209945,326666,NULL,NULL,NULL,0,NULL,NULL 54623,554251,454272,Yearling,NULL,NULL,0,NULL,NULL 54624,270385,457352,Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Notable Question Good Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Good Answer Popular Question Necromancer Guru Nice Answer Enlightened Good Answer Guru Good Answer Revival Nice Answer Famous Question Taxonomist Yearling Guru Notable Question Good Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Guru Popular Question Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened sql Good Answer Popular Question windows Notable Question Nice Answer Enlightened Nice Answer Yearling shell Guru Notable Question Nice Question Nice Answer oracle Great Question Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Question Good Answer Notable Question Nice Answer Enlightened Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 54625,143188,686723,Supporter,NULL,NULL,0,NULL,NULL 54626,32774,14253,Nice Answer Nice Answer Enlightened Yearling Nice Question Nice Answer Necromancer Popular Question Nice Answer Good Answer Nice Question Notable Question Yearling Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 54627,265686,1364752,Guru Revival Nice Answer Announcer Nice Answer Nice Question Nice Answer Necromancer Nice Question Good Question Necromancer Yearling Nice Answer Popular Question Popular Question Notable Question Revival Notable Question Necromancer Notable Question Notable Question Popular Question Good Answer Good Answer Popular Question Caucus Constituent Nice Question Good Question Nice Answer Census Nice Question Good Answer Notable Question Nice Question Notable Question Yearling Good Answer Good Answer Announcer Caucus Constituent Notable Question Nice Answer Nice Answer Enlightened Enlightened Documentation User Necromancer Nice Answer Enlightened Good Answer Populist Popular Question Nice Answer Enlightened Announcer Census Nice Answer Nice Question Announcer Necromancer Guru Nice Question Good Question Caucus Popular Question Popular Question Good Question Revival Yearling Popular Question Nice Answer Enlightened Great Answer Popular Question Guru Popular Question Nice Question Popular Question Popular Question Guru Popular Question Nice Answer Enlightened Good Answer Popular Question,NULL,NULL,0,NULL,NULL 54628,111897,1153050,Nice Question Good Answer Yearling Famous Question Critic Announcer,NULL,NULL,0,NULL,NULL 54629,3182259,253214,Census,NULL,NULL,0,NULL,NULL 54630,1132,1330066,NULL,NULL,NULL,0,NULL,NULL 54631,163379,1005412,Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 54632,831586,465004,Citizen Patrol Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 54633,12878,245970,NULL,NULL,NULL,0,NULL,NULL 54634,118446,232327,NULL,NULL,NULL,0,NULL,NULL 54635,399260,824839,NULL,NULL,NULL,0,NULL,NULL 54636,373456,1200906,NULL,NULL,NULL,0,NULL,NULL 54637,429662,1027035,NULL,NULL,NULL,0,NULL,NULL 54638,960368,686801,Popular Question Custodian Commentator Teacher Curious Popular Question,NULL,NULL,0,NULL,NULL 54639,1230544,325423,NULL,NULL,NULL,0,NULL,NULL 54640,2298354,221396,Popular Question Self-Learner Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54641,32255,93328,Tumbleweed Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 54642,720962,122683,Yearling Good Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 54643,1344474,727897,NULL,NULL,NULL,0,NULL,NULL 54644,520034,1524842,NULL,NULL,NULL,0,NULL,NULL 54645,282328,857231,NULL,NULL,NULL,0,NULL,NULL 54646,116860,487623,Custodian Custodian django Notable Question python Nice Answer Enlightened Popular Question Yearling Necromancer Nice Answer Caucus Constituent Yearling Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 54647,436439,1205410,NULL,NULL,NULL,0,NULL,NULL 54648,13672,267929,Yearling Revival,NULL,NULL,0,NULL,NULL 54649,198804,165293,Good Answer Great Answer Good Answer Great Answer Announcer Notable Question Necromancer Good Answer Populist Yearling Great Answer Great Answer Necromancer Guru Caucus Nice Answer Enlightened Guru Good Answer Yearling Nice Answer Good Answer Announcer Nice Answer Enlightened Taxonomist Yearling Great Answer,NULL,NULL,0,NULL,NULL 54650,131754,842334,NULL,NULL,NULL,0,NULL,NULL 54651,1870899,939018,Nice Answer Yearling Notable Question Nice Answer Enlightened Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 54652,455592,694677,Notable Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54653,1503985,1025144,NULL,NULL,NULL,0,NULL,NULL 54654,28662,445792,Guru,NULL,NULL,0,NULL,NULL 54655,814115,714314,NULL,NULL,NULL,0,NULL,NULL 54656,168331,367322,Popular Question Custodian Good Question Yearling Popular Question Popular Question Notable Question Guru Yearling Excavator Popular Question Nice Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 54657,374689,1020168,Notable Question Nice Answer Yearling Nice Question Civic Duty Nice Question Yearling Nice Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 54658,95244,388253,NULL,NULL,NULL,0,NULL,NULL 54659,402639,1015050,NULL,NULL,NULL,0,NULL,NULL 54660,1914465,661630,NULL,NULL,NULL,0,NULL,NULL 54661,533295,661630,NULL,NULL,NULL,0,NULL,NULL 54662,1025105,661630,NULL,NULL,NULL,0,NULL,NULL 54663,3362188,661630,NULL,NULL,NULL,0,NULL,NULL 54664,250410,661630,NULL,NULL,NULL,0,NULL,NULL 54665,889987,963465,Tenacious Yearling Yearling,NULL,NULL,0,NULL,NULL 54666,1221053,755050,NULL,NULL,NULL,0,NULL,NULL 54667,1000389,584983,NULL,NULL,NULL,0,NULL,NULL 54668,4749487,1379039,NULL,NULL,NULL,0,NULL,NULL 54669,944108,924897,Notable Question,NULL,NULL,0,NULL,NULL 54670,53470,590800,NULL,NULL,NULL,0,NULL,NULL 54671,289548,1262501,NULL,NULL,NULL,0,NULL,NULL 54672,207156,355371,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54673,731895,105799,Popular Question Nice Question Yearling Nice Question Caucus Constituent Yearling Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 54674,1008178,1290472,NULL,NULL,NULL,0,NULL,NULL 54675,376740,1417515,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54676,1566257,361245,NULL,NULL,NULL,0,NULL,NULL 54677,49731,342327,Popular Question Yearling Notable Question Yearling Notable Question Census Yearling,NULL,NULL,0,NULL,NULL 54678,75645,68940,Announcer,NULL,NULL,0,NULL,NULL 54679,527985,632500,NULL,NULL,NULL,0,NULL,NULL 54680,1523044,1414722,NULL,NULL,NULL,0,NULL,NULL 54681,1285059,1244670,NULL,NULL,NULL,0,NULL,NULL 54682,848728,493265,NULL,NULL,NULL,0,NULL,NULL 54683,237725,1297597,NULL,NULL,NULL,0,NULL,NULL 54684,234221,1021426,Notable Question Notable Question Nice Question Good Question Popular Question Mortarboard Notable Question Notable Question Great Question Favorite Question Notable Question Documentation Pioneer Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Documentation User Notable Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Famous Question Good Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54685,392751,1293932,Famous Question Good Question Yearling Popular Question Notable Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 54686,181068,524960,NULL,NULL,NULL,0,NULL,NULL 54687,6545850,1295939,NULL,NULL,NULL,0,NULL,NULL 54688,319951,1295939,NULL,NULL,NULL,0,NULL,NULL 54689,353585,1229341,Caucus Yearling Critic,NULL,NULL,0,NULL,NULL 54690,195704,32849,NULL,NULL,NULL,0,NULL,NULL 54691,657137,1248752,NULL,NULL,NULL,0,NULL,NULL 54692,279213,1248752,NULL,NULL,NULL,0,NULL,NULL 54693,227213,58163,Great Question,NULL,NULL,0,NULL,NULL 54694,820007,566712,NULL,NULL,NULL,0,NULL,NULL 54695,1289540,1381336,NULL,NULL,NULL,0,NULL,NULL 54696,425996,198359,Nice Question,NULL,NULL,0,NULL,NULL 54697,113026,789846,Nice Answer Necromancer Yearling Good Answer Enlightened,NULL,NULL,0,NULL,NULL 54698,1281989,883151,Popular Question Teacher,NULL,NULL,0,NULL,NULL 54699,73343,738547,Tumbleweed Supporter Nice Question Popular Question Notable Question Editor,NULL,NULL,0,NULL,NULL 54700,1616886,1018939,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54701,120611,770876,Yearling Nice Answer Enlightened Yearling Good Answer Nice Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 54702,96999,532368,Yearling Famous Question Caucus Constituent Documentation User Custodian Nice Answer Enlightened Yearling Mortarboard Good Answer Yearling Guru Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 54703,5452899,532368,Yearling Famous Question Caucus Constituent Documentation User Custodian Nice Answer Enlightened Yearling Mortarboard Good Answer Yearling Guru Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 54704,9063,501913,NULL,NULL,Which Java annotation should use java nullpointerexception null annotations ide pI looking to make my code more readable as well as use tooling like IDE code inspection and or static code analysis FindBugs and Sonar to avoid NullPointerExceptions Many of the tools seem incompatible with each others code code code code code code annotation and listing all of them in my code would be terrible to read Any suggestions of which one is the best Here is the list of equivalent annotations ve found pulli strong codejavax validation constraints NotNull code strong bremCreated for runtime validation not static analysis em bra href http download oracle com javaee api javax validation constraints NotNull html rel noreferrer documentation lili strong codeedu umd cs findbugs annotations NonNull code strong bremUsed by href http findbugs sourceforge net rel noreferrer Findbugs static analysis and therefore Sonar now href https www sonarqube org rel noreferrer Sonarqube em bra href http findbugs sourceforge net manual annotations html rel noreferrer documentation lili strong codejavax annotation Nonnull code strong bremThis might work with Findbugs too but href https jcp org en jsr detail id 305 rel noreferrer JSR 305 is inactive See also href https stackoverflow com questions 2289694 what is the status of jsr 305 What is the status of JSR 305 ema href http code google com jsr 305 source browse trunk ri src main java javax annotation Nonnull java rel noreferrer source lili strong codeorg jetbrains annotations NotNull code strong bremUsed by IntelliJ IDEA IDE for static analysis em bra href https www jetbrains com help idea nullable and notnull annotations html rel noreferrer documentation lili strong codelombok NonNull code strong bremUsed to control code generation in href https projectlombok org rel noreferrer Project Lombok em bremPlaceholder annotation since there is no standard em bra href https github com rzwitserloot lombok blob master src core lombok NonNull java rel noreferrer source href https projectlombok org features NonNull html rel noreferrer documentation lili strong codeandroid support annotation NonNull code strong bremMarker annotation available in Android provided by support annotations package em bra href https developer android com reference android support annotation NonNull html rel noreferrer documentation lili strong codeorg eclipse jdt annotation NonNull code strong bremUsed by Eclipse for static code analysis em bra href http help eclipse org oxygen topic org eclipse jdt doc user tasks task improve code quality htm rel noreferrer documentation li ul Java introduced Optional as way to avoid Nulls like to hear from others to see whether they think this is still an issue when using Java See my answer below Which Java annotation should use java nullpointerexception null annotations ide pI looking to make my code more readable as well as use tooling like IDE code inspection and or static code analysis FindBugs and Sonar to avoid NullPointerExceptions Many of the tools seem incompatible with each others code code code code code code annotation and listing all of them in my code would be terrible to read Any suggestions of which one is the best Here is the list of equivalent annotations ve found pulli strong codejavax validation constraints NotNull code strong bremCreated for runtime validation not static analysis em bra href http download oracle com javaee api javax validation constraints NotNull html rel noreferrer documentation lili strong codeedu umd cs findbugs annotations NonNull code strong bremUsed by href http findbugs sourceforge net rel noreferrer Findbugs static analysis and therefore Sonar now href https www sonarqube org rel noreferrer Sonarqube em bra href http findbugs sourceforge net manual annotations html rel noreferrer documentation lili strong codejavax annotation Nonnull code strong bremThis might work with Findbugs too but href https jcp org en jsr detail id 305 rel noreferrer JSR 305 is inactive See also href https stackoverflow com questions 2289694 what is the status of jsr 305 What is the status of JSR 305 ema href http code google com jsr 305 source browse trunk ri src main java javax annotation Nonnull java rel noreferrer source lili strong codeorg jetbrains annotations NotNull code strong bremUsed by IntelliJ IDEA IDE for static analysis em bra href https www jetbrains com help idea nullable and notnull annotations html rel noreferrer documentation lili strong codelombok NonNull code strong bremUsed to control code generation in href https projectlombok org rel noreferrer Project Lombok em bremPlaceholder annotation since there is no standard em bra href https github com rzwitserloot lombok blob master src core lombok NonNull java rel noreferrer source href https projectlombok org features NonNull html rel noreferrer documentation lili strong codeandroid support annotation NonNull code strong bremMarker annotation available in Android provided by support annotations package em bra href https developer android com reference android support annotation NonNull html rel noreferrer documentation lili strong codeorg eclipse jdt annotation NonNull code strong bremUsed by Eclipse for static code analysis em bra href http help eclipse org oxygen topic org eclipse jdt doc user tasks task improve code quality htm rel noreferrer documentation li ul have idea what you mean by NullObjects and no was not suggesting that would address the same as annotation honestly don like the idea of using annotations to give hint for static analysis but guess everybody here likes them so will stop barking at the wrong tree,0,NULL,NULL 54705,67870,183355,Notable Question Popular Question Civic Duty Documentation User,NULL,NULL,0,NULL,NULL 54706,76650,607865,NULL,NULL,NULL,0,NULL,NULL 54707,1850367,119109,Yearling Popular Question Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 54708,233934,119109,Yearling Popular Question Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 54709,42748,77464,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 54710,21937,1238989,NULL,NULL,NULL,0,NULL,NULL 54711,574908,394878,NULL,NULL,NULL,0,NULL,NULL 54712,164487,673800,NULL,NULL,NULL,0,NULL,NULL 54713,100026,893526,Popular Question,NULL,NULL,0,NULL,NULL 54714,9322,60003,Yearling Revival Revival Necromancer Guru Great Answer Nice Answer Necromancer Yearling Good Answer Necromancer Notable Question Cleanup Civic Duty Caucus Constituent Nice Question Nice Answer Yearling Nice Answer Enlightened Famous Question Populist Guru,NULL,NULL,0,NULL,NULL 54715,411706,112741,Popular Question Yearling Revival Great Question Yearling Census Yearling Necromancer,NULL,NULL,0,NULL,NULL 54716,2522725,869026,NULL,NULL,NULL,0,NULL,NULL 54717,33058,869026,NULL,NULL,NULL,0,NULL,NULL 54718,447549,1392555,NULL,NULL,NULL,0,NULL,NULL 54719,11295,497756,Guru Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Curious Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Caucus Guru Guru shell linux Notable Question Nice Answer Enlightened Tumbleweed Pundit git Announcer Nice Answer Enlightened Caucus Announcer Nice Answer Enlightened Populist Good Answer Yearling Guru macos Great Answer Good Answer Guru Good Answer Announcer Popular Question Guru Nice Answer Guru Great Answer Yearling Good Answer,NULL,,0,, 54720,73967,200509,Necromancer Nice Answer Necromancer Yearling Revival Nice Answer Student Yearling Revival,NULL,NULL,0,NULL,NULL 54721,1954144,1419089,NULL,NULL,NULL,0,NULL,NULL 54722,53502,33836,Popular Question Custodian Yearling Caucus Quorum Nice Answer Enlightened Yearling Caucus Great Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 54723,146766,1293497,Good Answer Yearling Revival Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 54724,1105154,730149,Self-Learner Popular Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54725,371466,1261625,NULL,NULL,NULL,0,NULL,NULL 54726,14708,77493,NULL,NULL,NULL,0,NULL,NULL 54727,1322454,938927,Supporter Informed,NULL,NULL,0,NULL,NULL 54728,1967217,573328,Nice Answer,NULL,NULL,0,NULL,NULL 54729,170540,574145,NULL,NULL,NULL,0,NULL,NULL 54730,1740,1494519,Nice Answer redis Nice Answer Enlightened Nice Answer Enlightened sidekiq Necromancer Nice Answer Nice Answer Enlightened Yearling Organizer Announcer Nice Answer Enlightened Good Answer Good Answer ruby-on-rails-4 Nice Answer Good Answer Yearling ruby-on-rails Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Disciplined Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer heroku Guru,NULL,NULL,0,NULL,NULL 54731,103487,7668,Nice Answer Notable Question Nice Answer Good Answer Notable Question Yearling Good Answer Necromancer Nice Answer Nice Answer Yearling Census Not a Robot Yearling Revival,NULL,NULL,0,NULL,NULL 54732,2885631,543467,Popular Question Promoter Citizen Patrol Tumbleweed,NULL,NULL,0,NULL,NULL 54733,1110158,220156,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 54734,560879,635426,NULL,NULL,NULL,0,NULL,NULL 54735,131286,1413121,NULL,NULL,NULL,0,NULL,NULL 54736,97884,12094,Tumbleweed Yearling Nice Question Yearling Pundit Yearling,NULL,NULL,0,NULL,NULL 54737,334364,871012,Nice Question Notable Question Good Answer Announcer Popular Question Nice Question Nice Answer Revival Yearling Announcer Popular Question Notable Question Notable Question Famous Question Nice Question Necromancer Notable Question Good Answer Notable Question Good Question Good Answer Notable Question Necromancer Nice Answer Notable Question Guru Yearling Notable Question Nice Answer Announcer Popular Question Good Answer Famous Question Nice Answer Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 54738,3011506,871012,Nice Question Notable Question Good Answer Announcer Popular Question Nice Question Nice Answer Revival Yearling Announcer Popular Question Notable Question Notable Question Famous Question Nice Question Necromancer Notable Question Good Answer Notable Question Good Question Good Answer Notable Question Necromancer Nice Answer Notable Question Guru Yearling Notable Question Nice Answer Announcer Popular Question Good Answer Famous Question Nice Answer Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 54739,239059,891803,NULL,NULL,NULL,0,NULL,NULL 54740,67400,233391,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54741,190850,1118108,NULL,NULL,NULL,0,NULL,NULL 54742,1210118,1269689,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54743,508626,388033,Good Question Yearling Civic Duty Nice Answer Enlightened Good Answer Yearling Announcer Famous Question Revival,NULL,NULL,0,NULL,NULL 54744,463395,106511,Necromancer Popular Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 54745,132148,382458,Excavator Announcer Necromancer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 54746,61348,547212,Guru Popular Question Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 54747,463645,183428,NULL,NULL,NULL,0,NULL,NULL 54748,210951,16056,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54749,1117304,106498,Notable Question,NULL,NULL,0,NULL,NULL 54750,606525,556020,Supporter Custodian Editor,NULL,NULL,0,NULL,NULL 54751,1145558,1030567,NULL,NULL,NULL,0,NULL,NULL 54752,1077179,983182,Teacher,NULL,NULL,0,NULL,NULL 54753,217817,1195814,NULL,NULL,NULL,0,NULL,NULL 54754,74246,808122,NULL,NULL,NULL,0,NULL,NULL 54755,212381,322365,NULL,NULL,NULL,0,NULL,NULL 54756,1053026,107327,Yearling,NULL,NULL,0,NULL,NULL 54757,156709,59438,Nice Question Yearling Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling mongoose Caucus Famous Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 54758,108014,578111,NULL,NULL,NULL,0,NULL,NULL 54759,109878,332490,NULL,NULL,NULL,0,NULL,NULL 54760,62717,94751,Notable Question Yearling Great Question Famous Question Nice Answer Enlightened Yearling Good Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 54761,60734,384831,Nice Answer Enlightened Yearling Good Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 54762,60451,704233,NULL,NULL,NULL,0,NULL,NULL 54763,130193,692947,Good Answer Yearling Informed Necromancer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 54764,7204845,597564,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 54765,36218,597564,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 54766,204679,360669,NULL,NULL,NULL,0,NULL,NULL 54767,16170,796343,Commentator Student Autobiographer Informed Editor,NULL,NULL,0,NULL,NULL 54768,4364224,378414,NULL,NULL,NULL,0,NULL,NULL 54769,29088,1078291,NULL,NULL,NULL,0,NULL,NULL 54770,25418,319148,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54771,120487,556039,Famous Question,NULL,NULL,0,NULL,NULL 54772,247009,717321,Excavator Popular Question,NULL,NULL,0,NULL,NULL 54773,735931,281043,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54774,172498,147760,Yearling,NULL,NULL,0,NULL,NULL 54775,1123874,55943,Yearling Favorite Question Nice Answer Guru Good Answer Good Answer Yearling Great Question Nice Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Good Answer Yearling Guru Nice Answer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 54776,354599,17027,Nice Answer Enlightened Nice Answer Popular Question Nice Answer Good Answer Popular Question Enlightened Nice Answer Notable Question Famous Question Self-Learner Necromancer Yearling Guru Nice Question Nice Answer Enlightened c# winapi Notable Question Nice Answer Enlightened Popular Question Custodian Yearling Popular Question Revival Popular Question Notable Question Nice Answer Revival Nice Answer Enlightened Announcer Good Answer Good Answer Popular Question Necromancer Necromancer Nice Answer Yearling Necromancer Nice Answer Nice Answer,NULL,NULL,1,WinForms RichTextBox infinite horizontal scroll bug net winforms richtextbox pA regular codeRichTextBox code element placed on form exhibits bug wherein scrolling horizontally to the right with the mouse horizontal scroll middle button or touch pad keeps going forever and never stops This is the case even if the codeRichTextBox code contains only single word that fits readily into its bounds and the scrollbars are disabled ppI ve run into this bug since NET and assumed it would be fixed at some point but still seeing it on Windows 10 with NET ppWhat getting me is that can find any references to this here on SO or elsewhere on the internet Has anyone run into this before and does anyone know how to prevent this odd behavior,NULL 54777,906981,755962,Commentator,NULL,NULL,0,NULL,NULL 54778,352384,816978,NULL,NULL,NULL,0,NULL,NULL 54779,34387,814369,Popular Question,NULL,NULL,0,NULL,NULL 54780,3778365,566374,NULL,NULL,NULL,0,NULL,NULL 54781,1253485,566374,NULL,NULL,NULL,0,NULL,NULL 54782,60527,585967,Yearling Tenacious Documentation Pioneer Yearling Custodian Custodian Citizen Patrol Yearling Unsung Hero Informed Yearling Student Scholar Caucus Constituent Organizer Revival Documentation User Enthusiast Necromancer Self-Learner Custodian Revival Census Custodian Yearling Nice Answer Enlightened Caucus Constituent javascript Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 54783,364654,1491837,NULL,NULL,NULL,0,NULL,NULL 54784,84734,820043,NULL,NULL,NULL,0,NULL,NULL 54785,82338,1220547,NULL,NULL,NULL,0,NULL,NULL 54786,219757,723118,NULL,NULL,NULL,0,NULL,NULL 54787,23051,1475135,Notable Question Curious Popular Question Cleanup Yearling Nice Answer Commentator Caucus Announcer Citizen Patrol Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 54788,59967,413414,Nice Question Nice Answer Nice Question Popular Question Popular Question Great Question Nice Answer Stellar Question Necromancer Popular Question Popular Question Notable Question Revival Nice Question Notable Question Nice Answer Notable Question Yearling Nice Answer Popular Question Notable Question Great Question Favorite Question Nice Answer Famous Question Popular Question Notable Question Guru Nice Question Notable Question Good Answer Notable Question Popular Question Popular Question Notable Question Nice Answer Popular Question Revival Popular Question Notable Question Yearling Popular Question Revival Famous Question Notable Question Popular Question Notable Question Great Question Popular Question Famous Question Popular Question Nice Question Necromancer Favorite Question Nice Answer Good Question Custodian Great Question Great Answer Nice Answer Popular Question Famous Question Necromancer Popular Question Favorite Question Nice Question Great Question Populist Necromancer Nice Question Notable Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 54789,103493,13251,Popular Question Notable Question Yearling Popular Question Nice Answer Guru Guru Necromancer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 54790,7540464,834230,NULL,NULL,NULL,0,NULL,NULL 54791,30511,492302,NULL,NULL,NULL,0,NULL,NULL 54792,171869,1388618,NULL,NULL,NULL,0,NULL,NULL 54793,240885,1069807,NULL,NULL,NULL,0,NULL,NULL 54794,1172914,980307,NULL,NULL,NULL,0,NULL,NULL 54795,669937,1251513,NULL,NULL,NULL,0,NULL,NULL 54796,246087,1175365,NULL,NULL,NULL,0,NULL,NULL 54797,14283,221000,NULL,NULL,NULL,0,NULL,NULL 54798,1047950,1037486,Teacher Autobiographer Supporter,NULL,NULL,0,NULL,NULL 54799,34065,1100765,Curious Famous Question Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 54800,54844,935706,NULL,NULL,NULL,0,NULL,NULL 54801,1520777,1154298,Necromancer,NULL,NULL,0,NULL,NULL 54802,405910,1426916,Teacher Revival Supporter Organizer Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 54803,1236,632443,NULL,NULL,NULL,0,NULL,NULL 54804,130341,958117,NULL,NULL,NULL,0,NULL,NULL 54805,679983,1411563,NULL,NULL,NULL,0,NULL,NULL 54806,501253,1126945,NULL,NULL,NULL,0,NULL,NULL 54807,7864,1092064,Teacher,NULL,NULL,0,NULL,NULL 54808,365667,264871,NULL,NULL,NULL,0,NULL,NULL 54809,263994,973762,NULL,NULL,NULL,0,NULL,NULL 54810,724279,935152,NULL,NULL,NULL,0,NULL,NULL 54811,387630,872054,Caucus Popular Question Popular Question Yearling Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 54812,309624,433662,Revival Nice Question Announcer Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 54813,1275656,489631,Popular Question Nice Answer Popular Question Yearling Notable Question Enthusiast Custodian Caucus Constituent Good Answer Yearling Popular Question Caucus Guru Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 54814,401708,614218,NULL,NULL,NULL,0,NULL,NULL 54815,275082,304290,Supporter Nice Question Famous Question,NULL,NULL,0,NULL,NULL 54816,1509,717341,Inquisitive Good Answer Yearling Necromancer Guru Notable Question Nice Answer Famous Question Good Answer Popular Question Popular Question Famous Question Great Answer Announcer Nice Question Nice Question android Yearling Popular Question Good Answer Announcer Nice Answer Nice Question Documentation User Guru Notable Question Good Answer Nice Answer Census Notable Question Popular Question Announcer Custodian Nice Answer Enlightened Yearling Nice Answer Enlightened Popular Question Nice Answer Benefactor Popular Question Nice Answer Enlightened Good Answer,NULL,pAs of Android permission behaviour has changed to runtime To use feature that requires permission one should check first if the permission is granted previously Using codecheckSelfPermission permissionString code href https developer android com reference android content Context html checkSelfPermission java lang String rel noreferrer method result is returned wither ther permission is codePERMISSION GRANTED code or codePERMISSION DENIED code ppIf permission isn granted or it is first time request for permission should be made Giving user an option to grant or deny ppre codeif Build VERSION SDK INT gt Build VERSION CODES amp amp checkSelfPermission Manifest permission ACCESS COARSE LOCATION PackageManager PERMISSION GRANTED requestPermissions new String Manifest permission ACCESS COARSE LOCATION PERMISSIONS REQUEST CODE ACCESS COARSE LOCATION After this point you wait for callback in onRequestPermissionsResult int String int overriden method else getScanningResults do something permission was previously granted or legacy device code prepIf your code is running on device prior to you proceed with your code permission was granted using legacy method ppOnce requested for permission dialog will be shown to user His her response will be delivered as ppre code public void onRequestPermissionsResult int requestCode String permissions int grantResults if requestCode PERMISSIONS REQUEST CODE ACCESS COARSE LOCATION amp amp grantResults PackageManager PERMISSION GRANTED Do something with granted permission mWifiListener getScanningResults code prepAfter that you can check if the Location Services is ON using codeLocationServices SettingsApi code and request the user to enable if this options is disabled This is possible with Play Services codeLocationSettingsStatusCodes RESOLUTION REQUIRED code callback FYI this applies when your App uses targetSdkVersion that is 22 If you stay below this the behavior can NOT be observed,0,NULL,NULL 54817,100610,1302208,NULL,NULL,NULL,0,NULL,NULL 54818,1848156,196374,Popular Question Good Question Yearling Famous Question Popular Question Revival Yearling Excavator Benefactor,NULL,NULL,0,NULL,NULL 54819,781300,855588,NULL,NULL,NULL,0,NULL,NULL 54820,697884,1174087,NULL,NULL,NULL,0,NULL,NULL 54821,84985,1294946,NULL,NULL,NULL,0,NULL,NULL 54822,305199,920464,Yearling Yearling Popular Question Good Answer,NULL,pThere are many good answers here already but wanted to share more complete example that both pullidoesn assume codeuname code exists on Windows lilialso detects the processor li ulpThe CCFLAGS defined here aren necessarily recommended or ideal they re just what the project to which was adding OS CPU auto detection happened to be using ppre codeifeq OS Windows NT CCFLAGS WIN32 ifeq PROCESSOR ARCHITEW6432 AMD64 CCFLAGS AMD64 else ifeq PROCESSOR ARCHITECTURE AMD64 CCFLAGS AMD64 endif ifeq PROCESSOR ARCHITECTURE x86 CCFLAGS IA32 endif endifelse UNAME shell uname ifeq UNAME Linux CCFLAGS LINUX endif ifeq UNAME Darwin CCFLAGS OSX endif UNAME shell uname ifeq UNAME x86 64 CCFLAGS AMD64 endif ifneq filter 86 UNAME CCFLAGS IA32 endif ifneq filter arm UNAME CCFLAGS ARM endifendif code pre strikingly similar with this one https gist github com sighingnow deee806603ec9274fd47,0,NULL,NULL 54823,326554,1239895,Notable Question,NULL,NULL,0,NULL,NULL 54824,10144761,1239895,Notable Question,NULL,NULL,0,NULL,NULL 54825,230957,1261501,Critic,NULL,NULL,0,NULL,NULL 54826,160564,10576,NULL,NULL,NULL,0,NULL,NULL 54827,10414072,901631,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54828,3259681,901631,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54829,56996,812939,Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Civic Duty Yearling Notable Question Popular Question Popular Question Famous Question Popular Question Necromancer Popular Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 54830,264232,135778,Nice Answer Popular Question Notable Question Yearling Necromancer Nice Answer Good Answer Yearling Nice Answer Enlightened Announcer Popular Question Nice Answer Custodian Popular Question Yearling,NULL,pFor library authors you may be able to work around this problem ppI usually have an entry point codeindex js code which is the file point to from the main field in codepackage json code It does nothing other than re export the actual entry point of the lib ppre codeexport default from components MyComponent code prepTo workaround the babel issue changed this to an codeimport code statement and then assign the default to codemodule exports code ppre codeimport MyComponent from components MyComponent module exports MyComponent code prepAll my other files stay as pure ES6 modules with no workarounds So only the entry point needs change slightly ppThis will work for commonjs requires and also for ES6 imports because babel doesn seem to have dropped the reverse interop commonjs es6 Babel injects the following function to patch up commonjs ppre codefunction interopRequireDefault obj return obj amp amp obj esModule obj default obj code prepI ve spent hours battling this so hope this saves someone else the effort what do you mean This is trick so that commonjs users do not have to require whatever default If you re not library author this is probably irrelevant,0,NULL,NULL 54831,54291,297203,Electorate Popular Question Popular Question Caucus Constituent Necromancer,NULL,NULL,0,NULL,NULL 54832,375264,657448,NULL,NULL,NULL,0,NULL,NULL 54833,170194,128376,Yearling Informed Popular Question,NULL,NULL,0,NULL,NULL 54834,81181,1189806,Student Scholar Yearling Good Answer Guru Yearling Revival Caucus Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 54835,8224757,900505,Nice Answer Yearling Enlightened Yearling Good Answer Critic Guru Yearling Caucus Caucus Famous Question Census Caucus,NULL,NULL,0,NULL,NULL 54836,1518041,1522472,NULL,NULL,NULL,0,NULL,NULL 54837,741889,452078,NULL,NULL,NULL,0,NULL,NULL 54838,1997807,714576,NULL,NULL,NULL,0,NULL,NULL 54839,33875,308668,Good Answer Popular Question Yearling Nice Answer Enlightened Notable Question Guru Necromancer Notable Question Notable Question Nice Answer Enlightened python Famous Question Caucus Constituent Census Guru Nice Answer Yearling Caucus Constituent Popular Question Popular Question Census Guru Yearling Guru Good Answer Revival Nice Answer Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 54840,1090089,1187707,Popular Question Yearling Popular Question Notable Question Famous Question Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54841,313064,413056,NULL,NULL,NULL,0,NULL,NULL 54842,930584,1266834,NULL,NULL,NULL,0,NULL,NULL 54843,20821,811809,NULL,NULL,NULL,0,NULL,NULL 54844,129136,1522607,NULL,NULL,,0,, 54845,1097376,515568,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54846,323690,922932,NULL,NULL,NULL,0,NULL,NULL 54847,300202,778757,Informed,NULL,NULL,0,NULL,NULL 54848,39961,556536,Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Yearling Good Answer Guru Good Answer Guru Yearling Guru Great Answer,NULL,NULL,0,NULL,NULL 54849,8888853,905345,Popular Question Nice Answer Enlightened Popular Question Editor,NULL,NULL,0,NULL,NULL 54850,2347169,905345,Popular Question Nice Answer Enlightened Popular Question Editor,NULL,NULL,0,NULL,NULL 54851,249014,905345,Popular Question Nice Answer Enlightened Popular Question Editor,NULL,NULL,0,NULL,NULL 54852,2589339,1284651,NULL,NULL,NULL,0,NULL,NULL 54853,553402,1334825,Announcer Enthusiast Tumbleweed Teacher Popular Question Curious,NULL,NULL,0,NULL,NULL 54854,173456,368167,Notable Question Necromancer Notable Question Announcer Necromancer Notable Question Yearling Good Answer Notable Question Strunk & White Caucus Nice Answer Census ruby-on-rails Yearling Nice Answer Popular Question Electorate Census Custodian Custodian Custodian Custodian Custodian Proofreader Custodian ruby Caucus Popular Question Nice Answer Popular Question Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 54855,456678,817517,NULL,NULL,NULL,0,NULL,NULL 54856,10552,822918,NULL,NULL,NULL,0,NULL,NULL 54857,997153,475810,NULL,NULL,NULL,0,NULL,NULL 54858,299770,3436,Curious Popular Question Nice Question Nice Answer Enlightened Self-Learner,NULL,NULL,0,NULL,NULL 54859,53935,872252,Tumbleweed,NULL,NULL,0,NULL,NULL 54860,414631,739110,NULL,NULL,NULL,0,NULL,NULL 54861,2196224,739110,NULL,NULL,NULL,0,NULL,NULL 54862,195891,450410,NULL,NULL,NULL,0,NULL,NULL 54863,566468,430031,Self-Learner Curious Popular Question Critic Notable Question Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54864,415351,896610,NULL,NULL,NULL,0,NULL,NULL 54865,265434,1199468,NULL,NULL,NULL,0,NULL,NULL 54866,445036,656886,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 54867,240960,932587,Necromancer Caucus Revival Popular Question Necromancer,NULL,NULL,0,NULL,NULL 54868,230261,420388,NULL,NULL,NULL,0,NULL,NULL 54869,294904,790014,NULL,NULL,NULL,0,NULL,NULL 54870,466184,1415128,NULL,NULL,NULL,0,NULL,NULL 54871,478234,921613,Self-Learner Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 54872,643797,788508,NULL,NULL,NULL,0,NULL,NULL 54873,476439,1132647,Yearling Famous Question Nice Answer Popular Question Nice Answer android Necromancer Famous Question Necromancer Notable Question Good Question Nice Answer Revival Custodian Yearling Famous Question Necromancer Nice Answer Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 54874,352509,1133287,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 54875,184846,1344645,NULL,NULL,NULL,0,NULL,NULL 54876,340417,200410,Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer facebook Yearling Caucus Nice Answer Documentation User Nice Answer Yearling Guru Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 54877,21747,565109,NULL,NULL,NULL,0,NULL,NULL 54878,2226,1473343,Announcer,NULL,NULL,1,When pattern matching maps in Erlang why is this variable unbound erlang maps pattern matching pre code module count export count count when is list gt do count count gt error badarg do count Acc gt Acc do count gt do count gt do count Acc gt do count Acc do count Acc gt do count Acc gt code prepIn this example the third clause where the map key exists and has count associated with it will not compile The compiler complains ppre codecount erl 11 variable is unbound code prepWhy is unbound ppThis works by the way ppre codedo count Acc gt Acc do count Acc gt do count maps update with fun gt end Acc code prepBut it seems like the pattern match emought em to work and it doesn,NULL 54879,254012,754847,NULL,NULL,NULL,0,NULL,NULL 54880,116082,1135590,Yearling Nice Answer Great Answer Guru Caucus Yearling Good Answer Caucus Populist Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 54881,97907,1219229,NULL,NULL,NULL,0,NULL,NULL 54882,779570,682984,Popular Question Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 54883,368053,1329616,Teacher Supporter,NULL,NULL,0,NULL,NULL 54884,903343,1137364,Popular Question Notable Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54885,317184,488615,NULL,NULL,NULL,0,NULL,NULL 54886,166277,475325,NULL,NULL,NULL,0,NULL,NULL 54887,194624,599936,Yearling,NULL,NULL,0,NULL,NULL 54888,10374,466507,NULL,NULL,NULL,0,NULL,NULL 54889,320036,825209,NULL,NULL,NULL,0,NULL,NULL 54890,303655,1209105,Teacher,NULL,NULL,0,NULL,NULL 54891,54962,671835,NULL,NULL,NULL,0,NULL,NULL 54892,3379825,480024,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54893,499665,346673,Supporter,NULL,NULL,0,NULL,NULL 54894,368799,339378,Yearling Nice Answer Enlightened Tumbleweed Yearling Nice Answer Revival Good Question Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 54895,107644,896556,NULL,NULL,NULL,0,NULL,NULL 54896,506451,300133,NULL,NULL,NULL,0,NULL,NULL 54897,476315,943748,NULL,NULL,NULL,0,NULL,NULL 54898,41549,244353,Nice Answer Yearling Necromancer Good Answer Necromancer Necromancer Necromancer Necromancer Good Answer Notable Question Announcer Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Enlightened Revival Nice Answer Great Answer Necromancer Famous Question Nice Answer Nice Answer Revival Revival Nice Answer Enlightened Popular Question Notable Question Notable Question Good Answer Nice Answer Announcer Populist Notable Question Nice Answer Good Answer Nice Answer Necromancer Yearling asp.net-mvc Nice Answer c# Populist Nice Answer javascript Nice Answer Nice Question Good Answer Nice Answer Enlightened ajax Notable Question Revival Good Answer Nice Answer Enlightened Nice Answer Necromancer Necromancer Notable Question Notable Question Popular Question Announcer Good Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Notable Question Good Answer Guru asp.net-mvc-3 visual-studio Announcer Yearling Good Answer Notable Question Popular Question Nice Answer Great Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Good Answer Necromancer Guru Nice Question Announcer Popular Question Nice Answer,NULL,pTo answer your original question you see the timestamp appended because jQuery href http api jquery com jQuery ajax rel noreferrer by default sets codecache false code for codescript code and codejsonp code calls which appends the timestamp to the URL ppTo avoid the timestamp you can do this ppre code ajaxPrefilter function options originalOptions jqXHR if options dataType script originalOptions dataType script options cache true code prepThis sets up global href http api jquery com jQuery ajaxPrefilter rel noreferrer prefilter for all code ajax code calls including the ones made by jQuery while requesting the codescript code ppWe inspect the codedataType code to make sure we re not inadvertantly targetting other ajax calls and explicitly set codecache code to codetrue code This will avoid the timestamp appending problem ppYou can now use your original code and it ll pick it up from cache You could place anywhere between downloading jQuery and running your first ajax call So if you re putting it in head make sure you put if after jQuery is downloaded Also check if any other part of your code is downloading jQuery again If so then that jQuery download will wipe out this guy,0,NULL,NULL 54899,190717,1050925,NULL,NULL,NULL,0,NULL,NULL 54900,444999,187215,NULL,NULL,NULL,0,NULL,NULL 54901,4810,146335,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 54902,102666,1543333,NULL,NULL,NULL,0,NULL,NULL 54903,66876,921261,Necromancer Nice Question Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54904,287656,233452,Scholar Popular Question,NULL,NULL,0,NULL,NULL 54905,210501,247863,Yearling Documentation User Necromancer,NULL,NULL,0,NULL,NULL 54906,362575,163461,Notable Question Popular Question Notable Question Excavator Popular Question Popular Question Notable Question Famous Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Nice Question Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 54907,171735,1124429,NULL,NULL,NULL,0,NULL,NULL 54908,190067,398935,Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 54909,7645,312260,Great Answer css Peer Pressure Good Answer Yearling Announcer Proofreader Notable Question Nice Answer Enlightened Nice Answer Generalist Yearling Great Answer Caucus Constituent Nice Answer Enlightened Notable Question Popular Question Yearling javascript,NULL,NULL,0,NULL,NULL 54910,166932,1148567,NULL,NULL,NULL,0,NULL,NULL 54911,726526,549254,Necromancer Good Answer Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 54912,69713,1270695,Nice Answer apply Legendary Nice Question Necromancer Guru Nice Question Guru Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Revival Great Answer Nice Answer Enlightened Good Answer dataframe dataframe dataframe Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened time-series loops Nice Answer Enlightened Good Answer Good Answer Notable Question Necromancer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Necromancer Nice Answer Good Answer Announcer Nice Answer Enlightened Populist Good Answer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer string tidyr Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Caucus Nice Answer Good Answer Constituent na Nice Answer Announcer Popular Question Necromancer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Necromancer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Nice Answer Census Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Nice Question Nice Answer Nice Answer Yearling list Nice Answer Necromancer Enlightened Nice Answer Necromancer Revival strsplit Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Necromancer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Revival Announcer Nice Answer Nice Answer Announcer Necromancer Caucus Nice Answer Enlightened Good Answer Guru Constituent Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened matrix Good Answer Nice Answer Enlightened Custodian Reviewer Good Answer Revival Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Necromancer Announcer Nice Answer Necromancer Guru Nice Answer Nice Answer Announcer Nice Answer Enlightened Announcer Good Answer Revival Good Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Question Census Announcer Nice Answer Nice Answer Enlightened Nice Answer Announcer Necromancer Nice Answer Enlightened Revival Nice Answer Nice Answer Enlightened melt Nice Answer Enlightened reshape2 Nice Answer Enlightened rows grep gsub Nice Answer Enlightened Nice Answer count Caucus Nice Answer Enlightened Yearling Guru Good Answer Constituent Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Announcer Nice Answer Notable Question Good Answer Guru Nice Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Guru Necromancer Nice Answer Guru Guru Good Answer Revival Nice Answer Enlightened Announcer Guru Great Answer Good Answer Nice Answer Announcer Good Answer Good Answer Good Answer Announcer sorting Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Revival Nice Answer Good Answer Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer reshape Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened,NULL,Make the drop argument in dcast only look at the RHS of the formula data table reshape reshape2 pThe codedrop code argument in codedcast code from reshape2 or dplyr can be useful when going from long to wide dataset and you want to create columns even for combinations that do not exist in the long form ppIt turns out that using codedrop code also affects combinations the left hand side LHS of the formula as well as the right hand side RHS Thus it also creates extra emrows em based on the combinations of LHS values ppIs there way to override this behavior phrpHere some sample data ppre codelibrary data table DT lt data table v1 105 105 105 012 012 012 ID 1L 1L 1L 2L 2L 2L v2 structure 2L 3L 5L 1L 2L 6L Label class factor v3 3L 2L 2L 5L 4L 3L code prepNotice that v2 is codefactor code column with levels essentially want to go from long to wide but add in columns for any missing factor levels in this case pp codereshape code handles the shape but not the missing columns ppre codereshape DT direction wide idvar ID v1 timevar v2 v1 ID v3 v3 v3 v3 v3 105 NA NA 012 NA NA code prep codedcast code handles adding the missing columns but only if there one value on the LHS ppre codedcast DT ID v2 value var v3 drop FALSE ID NA NA NA NA NA NA code prepIf there are multiple values on the LHS the combinations of the values on the LHS are also expanded out as if we had used codeCJ code or codeexpand grid code but rows and are not at all of interest to me ppre codedcast DT v2 value var v3 drop FALSE v1 ID 105 NA NA NA 105 NA NA NA NA NA NA 012 NA NA NA NA NA NA 012 NA NA NA code prepThis is similar to using codextabs code in base codeftable xtabs v3 ID v1 v2 DT code phrpIs there way to let codedcast code know that essentially Hey The combination of values on the LHS are the IDs Don try to fill them in for me ppMy current approach is to do three steps one for collapsing down the LHS values another for spreading out the RHS values and then one for merging the result ppre codemerge DT list v1 unique v1 ID or unique DT ID v1 with FALSE dcast DT ID v2 value var v3 drop FALSE by ID ID v1 105 NA NA NA 012 NA NA NA code prepIs there better approach that missing thought about that but didn like the possible loss in fidelity of data the lack of the option to use on the LHS and the loss of column names Make the drop argument in dcast only look at the RHS of the formula data table reshape reshape2 pThe codedrop code argument in codedcast code from reshape2 or dplyr can be useful when going from long to wide dataset and you want to create columns even for combinations that do not exist in the long form ppIt turns out that using codedrop code also affects combinations the left hand side LHS of the formula as well as the right hand side RHS Thus it also creates extra emrows em based on the combinations of LHS values ppIs there way to override this behavior phrpHere some sample data ppre codelibrary data table DT lt data table v1 105 105 105 012 012 012 ID 1L 1L 1L 2L 2L 2L v2 structure 2L 3L 5L 1L 2L 6L Label class factor v3 3L 2L 2L 5L 4L 3L code prepNotice that v2 is codefactor code column with levels essentially want to go from long to wide but add in columns for any missing factor levels in this case pp codereshape code handles the shape but not the missing columns ppre codereshape DT direction wide idvar ID v1 timevar v2 v1 ID v3 v3 v3 v3 v3 105 NA NA 012 NA NA code prep codedcast code handles adding the missing columns but only if there one value on the LHS ppre codedcast DT ID v2 value var v3 drop FALSE ID NA NA NA NA NA NA code prepIf there are multiple values on the LHS the combinations of the values on the LHS are also expanded out as if we had used codeCJ code or codeexpand grid code but rows and are not at all of interest to me ppre codedcast DT v2 value var v3 drop FALSE v1 ID 105 NA NA NA 105 NA NA NA NA NA NA 012 NA NA NA NA NA NA 012 NA NA NA code prepThis is similar to using codextabs code in base codeftable xtabs v3 ID v1 v2 DT code phrpIs there way to let codedcast code know that essentially Hey The combination of values on the LHS are the IDs Don try to fill them in for me ppMy current approach is to do three steps one for collapsing down the LHS values another for spreading out the RHS values and then one for merging the result ppre codemerge DT list v1 unique v1 ID or unique DT ID v1 with FALSE dcast DT ID v2 value var v3 drop FALSE by ID ID v1 105 NA NA NA 012 NA NA NA code prepIs there better approach that missing Sounds interesting Have mock implementation pI wrote this function recently called codemoveme code It designed to work on vectors with the intent of shuffling column orders around ppHere the function ppre codemoveme lt function invec movecommand movecommand lt lapply strsplit strsplit movecommand function movelist lt lapply movecommand function Where lt which in before after first last length ToMove lt setdiff Where list ToMove Where myVec lt invec for in seq along movelist temp lt setdiff myVec movelist lt movelist if in before after ba lt movelist if before after lt match ba temp else if after after lt match ba temp else if first after lt else if last after lt length myVec myVec lt append temp values movelist after after myVec code prepUsage is simple Try these out ppre codemoveme names df first moveme names df first last before code prepOf course using it to reorder the columns in your codedata frame code is straightforward ppre codedf moveme names df first code prepAnd for codedata table codes moves by reference no copy ppre codesetcolorder dt moveme names dt first code prehrpThe basic options are pullifirst lililast lilibefore liliafter li ulpCompounded moves are separated by semicolon That would be good modification Not sure just yet how to implement it reliably pI wrote this function recently called codemoveme code It designed to work on vectors with the intent of shuffling column orders around ppHere the function ppre codemoveme lt function invec movecommand movecommand lt lapply strsplit strsplit movecommand function movelist lt lapply movecommand function Where lt which in before after first last length ToMove lt setdiff Where list ToMove Where myVec lt invec for in seq along movelist temp lt setdiff myVec movelist lt movelist if in before after ba lt movelist if before after lt match ba temp else if after after lt match ba temp else if first after lt else if last after lt length myVec myVec lt append temp values movelist after after myVec code prepUsage is simple Try these out ppre codemoveme names df first moveme names df first last before code prepOf course using it to reorder the columns in your codedata frame code is straightforward ppre codedf moveme names df first code prepAnd for codedata table codes moves by reference no copy ppre codesetcolorder dt moveme names dt first code prehrpThe basic options are pullifirst lililast lilibefore liliafter li ulpCompounded moves are separated by semicolon sorry cannot reproduce and there no reason that it should depend on the size of the data frame only on the number of moves required Perhaps you re mixing up the time it takes to print large data frame to the console rather than the amount of time it takes to reorder the columns For instance if you have data frame named DF and did system time DF moveme names DF V8 before V5 V3 last that should take no time but system time print DF moveme names DF V8 before V5 V3 last would definitely rack up at least few seconds seconds on my system,1,Make the drop argument in dcast only look at the RHS of the formula data table reshape reshape2 pThe codedrop code argument in codedcast code from reshape2 or dplyr can be useful when going from long to wide dataset and you want to create columns even for combinations that do not exist in the long form ppIt turns out that using codedrop code also affects combinations the left hand side LHS of the formula as well as the right hand side RHS Thus it also creates extra emrows em based on the combinations of LHS values ppIs there way to override this behavior phrpHere some sample data ppre codelibrary data table DT lt data table v1 105 105 105 012 012 012 ID 1L 1L 1L 2L 2L 2L v2 structure 2L 3L 5L 1L 2L 6L Label class factor v3 3L 2L 2L 5L 4L 3L code prepNotice that v2 is codefactor code column with levels essentially want to go from long to wide but add in columns for any missing factor levels in this case pp codereshape code handles the shape but not the missing columns ppre codereshape DT direction wide idvar ID v1 timevar v2 v1 ID v3 v3 v3 v3 v3 105 NA NA 012 NA NA code prep codedcast code handles adding the missing columns but only if there one value on the LHS ppre codedcast DT ID v2 value var v3 drop FALSE ID NA NA NA NA NA NA code prepIf there are multiple values on the LHS the combinations of the values on the LHS are also expanded out as if we had used codeCJ code or codeexpand grid code but rows and are not at all of interest to me ppre codedcast DT v2 value var v3 drop FALSE v1 ID 105 NA NA NA 105 NA NA NA NA NA NA 012 NA NA NA NA NA NA 012 NA NA NA code prepThis is similar to using codextabs code in base codeftable xtabs v3 ID v1 v2 DT code phrpIs there way to let codedcast code know that essentially Hey The combination of values on the LHS are the IDs Don try to fill them in for me ppMy current approach is to do three steps one for collapsing down the LHS values another for spreading out the RHS values and then one for merging the result ppre codemerge DT list v1 unique v1 ID or unique DT ID v1 with FALSE dcast DT ID v2 value var v3 drop FALSE by ID ID v1 105 NA NA NA 012 NA NA NA code prepIs there better approach that missing,NULL 54913,858828,888935,NULL,NULL,NULL,0,NULL,NULL 54914,1191750,444607,NULL,NULL,NULL,0,NULL,NULL 54915,68103,213445,Popular Question,NULL,NULL,0,NULL,NULL 54916,114149,246616,Yearling Good Answer Nice Answer Good Question Good Answer Necromancer Nice Answer Nice Answer Famous Question Nice Answer Enlightened Guru Nice Answer Nice Answer Good Answer Good Answer Great Answer Guru Caucus Constituent Nice Answer Enlightened django Yearling Good Answer Guru Good Answer Great Answer Guru Good Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Custodian Yearling Guru Nice Answer Enlightened Good Answer Nice Answer Custodian Good Answer python Great Answer,NULL,pI believe it faster to avoid using regex SHA1 is random 40 digit hexidecimal number so if you can convert it to hex and it not 40 characters in length it not SHA1 ppre codedef is sha1 maybe sha if len maybe sha 40 return False try sha int int maybe sha 16 except ValueError return False return True code pre don know greybeard but it more performant,1,NULL,install pyaudio with macOs Sierra python macos pip pyaudio pI upgraded my Mac to macOS Sierra and had to start new account Right now am trying to establish my environment ran into problem installing pyaudio The procedure used is first use home brew and install port audio ppre codebrew install portaudio code prepIt installs with no errors ppI proceed to install pyaudio using pip ppre codepip install pyaudio code prepI receive the following error message ppre codecc fno strict aliasing fno common dynamic arch x86 64 arch i386 Os pipe fno common fno strict aliasing fwrapv DENABLE DTRACE DMACOSX DNDEBUG Wall Wstrict prototypes Wshorten 64 to 32 DNDEBUG fwrapv Os Wall Wstrict prototypes DENABLE DTRACE arch x86 64 arch i386 pipe DMACOSX System Library Frameworks Python framework Versions include python2 src portaudiomodule build temp macosx 10 12 intel src portaudiomodule osrc portaudiomodule 29 10 fatal error portaudio file not found include portaudio error generated error command cc failed with exit status 1portaudio is available in usr local Cellar portaudio 19 20140130 include code prepI am unfamiliar with pip and don know how to pass the path to the complier ppAny help will be greatly appreciated ppthanks ppRod pYou can add the directory to your codeCPATH code Try ppre codeCPATH CPATH usr local Cellar portaudio 19 20140130 include pip install pyaudio code pre 54917,9559884,1553313,Commentator Curious Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 54918,312109,1553313,Commentator Curious Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 54919,68562,43729,Famous Question,NULL,NULL,0,NULL,NULL 54920,75643,524530,Yearling Nice Answer Notable Question Nice Answer Yearling Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 54921,2503221,871561,Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Favorite Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Famous Question Notable Question Popular Question Inquisitive Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54922,125743,871561,Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Favorite Question Nice Answer Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Question Famous Question Notable Question Popular Question Inquisitive Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54923,26186,731172,Popular Question Nice Question Revival,NULL,NULL,0,NULL,NULL 54924,265477,512829,NULL,NULL,NULL,0,NULL,NULL 54925,76982,230806,NULL,NULL,NULL,0,NULL,NULL 54926,238039,401735,Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 54927,689901,825231,NULL,NULL,NULL,0,NULL,NULL 54928,23638,710990,Necromancer Necromancer Yearling Announcer Nice Answer Announcer Revival Revival Good Answer Announcer Nice Answer Enlightened Yearling Necromancer Custodian Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 54929,415924,1522853,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 54930,320252,901521,NULL,NULL,NULL,0,NULL,NULL 54931,335319,156044,Notable Question Yearling Notable Question Nice Question Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 54932,4424,954446,NULL,NULL,NULL,0,NULL,NULL 54933,2051370,980291,Notable Question Yearling Notable Question Promoter Benefactor Nice Question Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 54934,3172988,980291,Notable Question Yearling Notable Question Promoter Benefactor Nice Question Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 54935,986319,512545,Student Editor Custodian Scholar Supporter Commentator Teacher Informed Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 54936,1656828,1366973,Nice Answer Popular Question Yearling Enthusiast Good Answer Notable Question Guru Notable Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Nice Question Good Answer Yearling Famous Question Nice Question Caucus Popular Question Famous Question Nice Question Notable Question Famous Question Nice Answer Notable Question Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 54937,797826,1247733,NULL,NULL,NULL,0,NULL,NULL 54938,1509771,894684,Citizen Patrol Census Census,NULL,NULL,0,NULL,NULL 54939,811254,10385,Custodian Famous Question Yearling Necromancer sql Enlightened Caucus Yearling Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 54940,2134904,1300163,NULL,NULL,NULL,0,NULL,NULL 54941,104333,600959,Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 54942,1170962,562402,Popular Question,NULL,NULL,0,NULL,NULL 54943,1548801,1237117,Notable Question Yearling Popular Question Popular Question Yearling Popular Question Custodian Citizen Patrol Notable Question Popular Question Popular Question Popular Question Tenacious Yearling Caucus Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54944,337067,842039,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54945,2643154,842039,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 54946,533198,1052144,NULL,NULL,NULL,0,NULL,NULL 54947,10612528,1052144,NULL,NULL,NULL,0,NULL,NULL 54948,138325,1232083,Nice Answer Yearling Editor,NULL,NULL,0,NULL,NULL 54949,84855,301258,Supporter Popular Question Notable Question Popular Question Popular Question Curious Nice Question Famous Question,NULL,NULL,0,NULL,NULL 54950,66219,745041,NULL,NULL,NULL,0,NULL,NULL 54951,47133,326139,NULL,NULL,NULL,0,NULL,NULL 54952,373276,968431,Notable Question Yearling Favorite Question Caucus Teacher Nice Question Revival Curious,NULL,NULL,0,NULL,NULL 54953,6747,8031,Revival,NULL,NULL,0,NULL,NULL 54954,461,32829,Yearling Popular Question Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 54955,497591,177761,Famous Question,NULL,NULL,0,NULL,NULL 54956,5684,177761,Famous Question,NULL,NULL,0,NULL,NULL 54957,558509,602497,Supporter Teacher Curious,NULL,NULL,0,NULL,NULL 54958,65203,459082,Popular Question Popular Question Popular Question Popular Question Yearling Nice Question Notable Question Nice Question Popular Question Notable Question Revival Yearling Inquisitive Good Answer Caucus Self-Learner Popular Question Notable Question Notable Question Yearling Notable Question,NULL,pWe didn end up finding an ideal solution and ended up doing things bit more manually than preferred polli pWe added custom command we run after the build is complete but before it is packaged see CMake codeadd custom command code lili pThe custom command does the following pullicreates Frameworks directory under our app bundle folder make sure it somewhere where it will get copied in your packaging process liliwe use codecp aH code to copy all frameworks into this Frameworks directory liliwe then re sign each framework in this directory using codecodesign force verbose Computers framework sign code li ul lili pAdd the Frameworks directory to your search paths codeset target properties EXE NAME PROPERTIES XCODE ATTRIBUTE LD RUNPATH SEARCH PATHS Frameworks code li ol Your signing ID,1,NULL,Using CMake to copy frameworks to iOS app bundle ios xcode frameworks cmake pA library using recently switched to distribution as framework ppIn my existing CMake file ve been successful at getting it to link with my iOS app but am getting ppre codedyld Library not loaded Pizza framework Pizza Referenced from var mobile Containers Bundle Application D71ED298 C287 4B2F 8AFA 710A14C06D75 pizzashop app pizza Reason image not found code prepwhen install it from Xcode If manually add it to my xcode project in the embedded binaries section then good see image below pp href https stack imgur com 73ahz png rel noreferrer img src https stack imgur com 73ahz png alt enter image description here ppSo ve concluded that the problem is getting the framework into my app bundle ve come across href https stackoverflow com questions 6944376 cmake copy frameworks into app bundle this question and looked at the linked QT example but still trying to orient myself here as finding the syntax bit opaque ppIs CMake BundleUtilities what want to use here In looking at the BundleUtilities example bit lost ppre codeset APPS paths to executablesset DIRS directories to search for prerequisitesINSTALL CODE include BundleUtilities fixup bundle APPS DIRS COMPONENT Runtime code prepIs this OSX specific or can apply it similarly to iOS pWe didn end up finding an ideal solution and ended up doing things bit more manually than preferred polli pWe added custom command we run after the build is complete but before it is packaged see CMake codeadd custom command code lili pThe custom command does the following pullicreates Frameworks directory under our app bundle folder make sure it somewhere where it will get copied in your packaging process liliwe use codecp aH code to copy all frameworks into this Frameworks directory liliwe then re sign each framework in this directory using codecodesign force verbose Computers framework sign code li ul lili pAdd the Frameworks directory to your search paths codeset target properties EXE NAME PROPERTIES XCODE ATTRIBUTE LD RUNPATH SEARCH PATHS Frameworks code li ol 54959,185955,97149,Revival Yearling,NULL,NULL,0,NULL,NULL 54960,430665,1464220,NULL,NULL,NULL,0,NULL,NULL 54961,620108,1469090,NULL,NULL,NULL,0,NULL,NULL 54962,524932,974733,Popular Question Notable Question Popular Question Popular Question Nice Answer Announcer Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Nice Answer Notable Question c# Notable Question Revival Notable Question Notable Question Notable Question Yearling Good Question Necromancer Announcer Census Nice Answer Enlightened Nice Answer Popular Question Popular Question Civic Duty Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54963,9104233,974733,Popular Question Notable Question Popular Question Popular Question Nice Answer Announcer Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Nice Answer Notable Question c# Notable Question Revival Notable Question Notable Question Notable Question Yearling Good Question Necromancer Announcer Census Nice Answer Enlightened Nice Answer Popular Question Popular Question Civic Duty Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54964,508476,967386,Notable Question Notable Question Popular Question Nice Question Excavator Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 54965,218812,1516124,Popular Question Popular Question Nice Question Revival Notable Question Popular Question Yearling Necromancer Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 54966,58183,708632,Famous Question,NULL,NULL,0,NULL,NULL 54967,796319,993650,Custodian Notable Question Caucus Nice Answer Yearling Necromancer Enthusiast Nice Answer Civic Duty Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 54968,273063,408210,NULL,NULL,NULL,0,NULL,NULL 54969,113488,703749,Popular Question,NULL,NULL,0,NULL,NULL 54970,147768,58843,Yearling Popular Question Yearling Nice Question Favorite Question Yearling Good Question Revival,NULL,NULL,0,NULL,NULL 54971,293807,1431896,NULL,NULL,NULL,0,NULL,NULL 54972,301900,140848,Famous Question Revival Popular Question Popular Question Nice Question Famous Question Yearling Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,1,D3 Graph with directed edges and labels javascript d3 js graph pI am trying to create graph with d3 v4 that has directed edges and labels for the nodes something like this href http jsfiddle net chrisJamesC HgHqy rel nofollow http jsfiddle net chrisJamesC HgHqy but with newer version of D3 ppThis is what have so far href https jsfiddle net 4nu57pgn rel nofollow https jsfiddle net 4nu57pgn but can seem to figure out how to tell D3 to make the edges appear visually directed with arrows or to have the node IDs displayed ppre codevar svg d3 select svg var width svg attr width var height svg attr height svg svg call d3 zoom on zoom zoomed append var color d3 scaleOrdinal d3 schemeCategory10 var simulation d3 forceSimulation force link d3 forceLink id function return id force charge d3 forceManyBody force center d3 forceCenter width height function createGraph error graph if error throw error var link svg append attr class links selectAll line data graph links enter append line attr stroke function return color type var node svg append attr class nodes selectAll circle data graph nodes enter append circle attr 10 attr fill function if root true return color root return color type call d3 drag on start dragstarted on drag dragged on end dragended node on click function console log clicked id node append title text function return id simulation nodes graph nodes on tick ticked simulation force link links graph links function ticked link attr x1 function return source attr y1 function return source attr x2 function return target attr y2 function return target node attr cx function return attr cy function return function dragstarted if d3 event active simulation alphaTarget restart fx fy function dragged fx d3 event fy d3 event function dragended if d3 event active simulation alphaTarget fx null fy null function zoomed svg attr transform translate d3 event transform d3 event transform scale d3 event transform code prepI am new to D3 and would appreciate any help pointing me in the correct direction,NULL 54973,2481017,140848,Famous Question Revival Popular Question Popular Question Nice Question Famous Question Yearling Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question,NULL,NULL,1,D3 Graph with directed edges and labels javascript d3 js graph pI am trying to create graph with d3 v4 that has directed edges and labels for the nodes something like this href http jsfiddle net chrisJamesC HgHqy rel nofollow http jsfiddle net chrisJamesC HgHqy but with newer version of D3 ppThis is what have so far href https jsfiddle net 4nu57pgn rel nofollow https jsfiddle net 4nu57pgn but can seem to figure out how to tell D3 to make the edges appear visually directed with arrows or to have the node IDs displayed ppre codevar svg d3 select svg var width svg attr width var height svg attr height svg svg call d3 zoom on zoom zoomed append var color d3 scaleOrdinal d3 schemeCategory10 var simulation d3 forceSimulation force link d3 forceLink id function return id force charge d3 forceManyBody force center d3 forceCenter width height function createGraph error graph if error throw error var link svg append attr class links selectAll line data graph links enter append line attr stroke function return color type var node svg append attr class nodes selectAll circle data graph nodes enter append circle attr 10 attr fill function if root true return color root return color type call d3 drag on start dragstarted on drag dragged on end dragended node on click function console log clicked id node append title text function return id simulation nodes graph nodes on tick ticked simulation force link links graph links function ticked link attr x1 function return source attr y1 function return source attr x2 function return target attr y2 function return target node attr cx function return attr cy function return function dragstarted if d3 event active simulation alphaTarget restart fx fy function dragged fx d3 event fy d3 event function dragended if d3 event active simulation alphaTarget fx null fy null function zoomed svg attr transform translate d3 event transform d3 event transform scale d3 event transform code prepI am new to D3 and would appreciate any help pointing me in the correct direction,NULL 54974,338460,5066,Good Answer Yearling Good Answer Guru Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 54975,21701,701758,NULL,NULL,NULL,0,NULL,NULL 54976,52095,710332,Yearling Custodian Populist Yearling Yearling Critic,NULL,NULL,0,NULL,NULL 54977,106199,1477727,NULL,NULL,NULL,0,NULL,NULL 54978,213182,523664,Notable Question Great Answer Yearling Notable Question Yearling Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 54979,13856,304725,Popular Question Famous Question Notable Question Famous Question Famous Question Good Question Yearling Notable Question Famous Question Good Question Yearling Popular Question Good Question Famous Question Famous Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 54980,391143,873060,Yearling Nice Answer Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 54981,1229905,467859,Excavator Popular Question Popular Question Yearling Caucus Good Answer Informed Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Nice Question Nice Question Nice Question Good Answer Yearling Famous Question Nice Question Notable Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 54982,86527,238407,NULL,NULL,NULL,0,NULL,NULL 54983,6345443,594456,Yearling Nice Question Notable Question Necromancer Yearling Necromancer Popular Question Revival Nice Answer Custodian Yearling Good Answer Revival Custodian Organizer Self-Learner Enthusiast Informed c++ Announcer Civic Duty,NULL,NULL,0,NULL,NULL 54984,1503529,1257063,Good Answer Necromancer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 54985,791720,642978,Custodian Informed Caucus Popular Question Custodian Citizen Patrol Custodian Yearling Tenacious Suffrage Yearling Organizer Custodian Enthusiast Yearling Documentation User Census Revival Civic Duty Explainer Yearling,NULL,pFrom Terminal polli pAdd Fish to code etc shells code which will require an administrative password ppre codesudo echo usr local bin fish gt gt etc shells code pre lili pMake Fish your default shell with codechsh code ppre codechsh usr local bin fish code pre li olhrpFrom System Preferences polli pUser and Groups ctrl click on Current User Advanced Options lili pChange Login shell to code usr local bin fish code pp img src https stack imgur com I5jTk png alt login shell lili pPress OK log out and in again li ol Just another way of doing the same thing mentioned echo usr local bin fish sudo tee etc shells,1,NULL,How to clear window variables when using turbolinks jquery ruby on rails turbolinks pUsing ruby on rails have code that is triggered with the following coffee script ppre code jQuery document on turbolinks load gt if window progress execute code on div with an id of target code prepOn pages where the code is meant to trigger have div with an id of codetarget code and script tag which loads the codeprogress code parametere ppre code lt javascript tag id window vars do gt window progress lt raw graph data to json gt lt end gt code prepIf there is no turbolinks then this works fine the code triggers on the pages where it is meant to and does not trigger on the other pages However if enable turbolinks and visit page where the code is not meant trigger then to page where the code does trigger and then back to the page where the code is not meant to trigger the code triggers on the final page with an exception It seems that turbolinks is not clearing the window progress variable between page loads ppHow do make sure that the window variables loaded via script are cleared between pages pI ran into this same issue today doing something similar What ve surmised is that global variables persist between turbolinks visits This actually makes sense since the page isn reloaded the content is just overwritten My solution was to destroy the data before turbolinks renders new page ppre codedocument addEventListener turbolinks before render gt delete window progress code prepNote that the codedelete code method does not work with javascript variables declared with codevar code but does work for attributes assigned to codewindow code as in my case If using codevar code you ll want to do codevar progress null code ppYou have href https github com turbolinks turbolinks full list of events rel nofollow noreferrer lot of options for where to do this in the lifecycle of request chose before render to ensure data is only destroyed if the request was successful 54986,457600,1200307,NULL,NULL,NULL,0,NULL,NULL 54987,10433,616616,Revival Popular Question Yearling Nice Question Popular Question Taxonomist Tenacious Popular Question Popular Question Nice Question Enthusiast Nice Question Notable Question Famous Question Nice Question Notable Question Nice Question Popular Question dask Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Revival Revival Popular Question Popular Question Famous Question Popular Question Nice Question numpy Popular Question pandas Good Question Nice Question Notable Question Yearling Socratic Nice Answer python Notable Question Good Answer Famous Question Popular Question Notable Question Notable Question Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Great Answer Announcer dask Popular Question Good Question Popular Question Notable Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Mortarboard Nice Answer Enlightened Popular Question Nice Question Popular Question Popular Question Notable Question Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Good Question Nice Question Notable Question Synonymizer Nice Question Announcer Revival Good Answer Popular Question Popular Question Notable Question Guru dask-distributed parallel-processing Necromancer Popular Question Great Answer Necromancer Popular Question Nice Answer Notable Question Good Answer dask Nice Answer Enlightened,NULL,NULL,1,How do use an InfiniBand network with Dask python dask infiniband pI have cluster with high performance network InfiniBand However when set up my Dask scheduler and workers performance doesn seem to be as fast as would expect How can tell Dask to use this network pp emDisclaimer just asking this question so that can answer it It has become frequently asked question em,NULL 54988,386137,1028489,Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 54989,220729,440248,Critic Student Editor,NULL,NULL,0,NULL,NULL 54990,675913,682795,NULL,NULL,NULL,0,NULL,NULL 54991,911343,1351466,Autobiographer Yearling,NULL,NULL,0,NULL,NULL 54992,242529,349514,Announcer,NULL,NULL,0,NULL,NULL 54993,26252,266774,Good Question,NULL,NULL,0,NULL,NULL 54994,231621,255760,NULL,NULL,NULL,0,NULL,NULL 54995,30303,1189112,Tumbleweed,NULL,NULL,0,NULL,NULL 54996,169654,904847,Supporter,NULL,NULL,0,NULL,NULL 54997,175275,3913,NULL,NULL,NULL,0,NULL,NULL 54998,278227,1052603,NULL,NULL,NULL,0,NULL,NULL 54999,1571210,14514,Yearling Nice Answer Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55000,794415,160623,NULL,NULL,NULL,0,NULL,NULL 55001,1533040,611082,NULL,NULL,NULL,0,NULL,NULL 55002,65012,992845,Tenacious Nice Answer Yearling Nice Answer Enlightened Yearling Organizer Custodian macos Yearling,NULL,NULL,0,NULL,NULL 55003,72068,610149,Yearling,NULL,NULL,0,NULL,NULL 55004,276816,766387,NULL,NULL,NULL,0,NULL,NULL 55005,186130,684332,NULL,NULL,NULL,0,NULL,NULL 55006,205382,585021,NULL,NULL,NULL,0,NULL,NULL 55007,137837,797111,NULL,NULL,NULL,0,NULL,NULL 55008,217985,803536,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55009,508889,220196,NULL,NULL,NULL,0,NULL,NULL 55010,428350,1098052,Yearling Notable Question,NULL,NULL,0,NULL,NULL 55011,578992,748502,Popular Question,NULL,NULL,0,NULL,NULL 55012,240520,915034,Populist Yearling Good Answer Critic Caucus Caucus Nice Answer Yearling Popular Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 55013,3095,93244,NULL,NULL,NULL,0,NULL,NULL 55014,83732,564410,NULL,NULL,NULL,0,NULL,NULL 55015,24124,481522,Good Answer Necromancer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 55016,194702,336623,Nice Question Yearling Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55017,104730,255309,NULL,NULL,NULL,0,NULL,NULL 55018,308692,711293,Notable Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Caucus Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 55019,7116748,711293,Notable Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Caucus Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 55020,209471,40794,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55021,315217,1403372,Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 55022,259007,67151,Yearling Great Answer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55023,518951,605880,Notable Question Yearling Nice Answer Popular Question Famous Question Notable Question Good Question Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Good Question Famous Question Favorite Question Yearling Nice Question,NULL,pHere is an updated answer ppre codevar newFunc oldFunc bind clones the function with acting as it new this parameter code prepHowever bind is modern iE9 feature of JavaScript with compatibility workaround from MDN pp href https developer mozilla org en JavaScript Reference Global Objects Function bind rel noreferrer https developer mozilla org en JavaScript Reference Global Objects Function bind pp strongNote strong that it strongdoes not clone strong the function object additional attached strongproperties strong strongincluding strong the strongprototype strong property Credit to href https stackoverflow com users 554406 pp strongNote strong that the new function strongthis strong variable is stuck with the argument given on bind even on new function apply calls Credit to href https stackoverflow com users 700980 ppre codefunction oldFunc console log this msg var newFunc oldFunc bind msg You shall not pass this object is bindednewFunc apply msg hello world logs You shall not pass instead code prep strongNote strong binded function object instanceof treats newFunc oldFunc as the same Credit to href https stackoverflow com users 59272 ppre code new newFunc instanceof oldFunc gives true new oldFunc instanceof newFunc gives true as wellnewFunc oldFunc gives false however code pre One other edge case to note At least in V8 and possibly other engines this changes the behavior of Function prototype toString Calling toString on the bound function will give you string like function native code instead of the full function contents,0,NULL,NULL 55024,146307,905252,NULL,NULL,NULL,0,NULL,NULL 55025,407792,293188,Nice Answer Civic Duty Informed Custodian Yearling Custodian Caucus Autobiographer Caucus,NULL,NULL,0,NULL,NULL 55026,743159,506661,NULL,NULL,NULL,0,NULL,NULL 55027,910725,1556758,NULL,NULL,NULL,0,NULL,NULL 55028,65333,295840,Popular Question Yearling Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 55029,555588,1323740,NULL,NULL,NULL,0,NULL,NULL 55030,1964,224337,NULL,NULL,NULL,0,NULL,NULL 55031,152482,272473,Yearling Nice Answer Nice Answer Yearling Nice Answer Enlightened Necromancer Yearling,NULL,NULL,0,NULL,NULL 55032,1730208,460415,Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55033,161724,1060172,NULL,NULL,NULL,0,NULL,NULL 55034,338506,707854,Census,NULL,NULL,0,NULL,NULL 55035,7762143,707854,Census,NULL,NULL,0,NULL,NULL 55036,356407,1025956,NULL,NULL,NULL,0,NULL,NULL 55037,352081,792819,Popular Question,NULL,NULL,0,NULL,NULL 55038,28743,358830,Revival Revival Caucus Documentation User,NULL,NULL,0,NULL,NULL 55039,4512708,1463063,Tumbleweed Editor Supporter Commentator,NULL,NULL,0,NULL,NULL 55040,4734503,1463063,Tumbleweed Editor Supporter Commentator,NULL,NULL,0,NULL,NULL 55041,415935,767946,NULL,NULL,NULL,0,NULL,NULL 55042,749302,309160,Informed Editor Excavator,NULL,NULL,0,NULL,NULL 55043,2852851,309160,Informed Editor Excavator,NULL,NULL,0,NULL,NULL 55044,926368,997854,Supporter Student Scholar,NULL,NULL,0,NULL,NULL 55045,10008946,710266,Yearling Popular Question Notable Question Famous Question Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 55046,67030,710266,Yearling Popular Question Notable Question Famous Question Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 55047,436537,694607,NULL,NULL,NULL,0,NULL,NULL 55048,256456,603410,NULL,NULL,NULL,0,NULL,NULL 55049,74559,1166194,NULL,NULL,NULL,0,NULL,NULL 55050,4667235,711402,Notable Question,NULL,NULL,0,NULL,NULL 55051,372624,1227676,NULL,NULL,NULL,0,NULL,NULL 55052,33118,1029331,NULL,NULL,NULL,0,NULL,NULL 55053,168917,1240994,NULL,NULL,NULL,0,NULL,NULL 55054,92148,576163,NULL,NULL,NULL,0,NULL,NULL 55055,299963,418267,Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Notable Question Popular Question Nice Answer Good Answer Notable Question Yearling Custodian Caucus Famous Question Yearling Nice Answer Enlightened,NULL,pThis problem can be solved with recursive combinations of all possible sums filtering out those that reach the target Here is the algorithm in Python ppre class lang py prettyprint override codedef subset sum numbers target partial sum partial check if the partial sum is equals to target if target print sum partial target if gt target return if we reach the number why bother to continue for in range len numbers numbers remaining numbers subset sum remaining target partial if name main subset sum 10 15 Outputs sum 15 sum 15 sum 15 sum 10 15 code prepThis type of algorithms are very well explained in the following href http www youtube com watch NdF1QDTRkck rel noreferrer Standford Abstract Programming lecture this video is very recommendable to understand how recursion works to generate permutations of solutions pp strongEdit strong ppThe above as generator function making it bit more useful Requires Python because of codeyield from code ppre class lang py prettyprint override codedef subset sum numbers target partial partial sum if partial sum target yield partial if partial sum gt target return for in enumerate numbers remaining numbers yield from subset sum remaining target partial partial sum code prepHere is the Java version of the same algorithm ppre class lang java prettyprint override codepackage tmp import java util ArrayList import java util Arrays class SumSet static void sum up recursive ArrayList lt Integer gt numbers int target ArrayList lt Integer gt partial int for int partial if target System out println sum Arrays toString partial toArray target if gt target return for int lt numbers size ArrayList lt Integer gt remaining new ArrayList lt Integer gt int numbers get for int lt numbers size remaining add numbers get ArrayList lt Integer gt partial rec new ArrayList lt Integer gt partial partial rec add sum up recursive remaining target partial rec static void sum up ArrayList lt Integer gt numbers int target sum up recursive numbers target new ArrayList lt Integer gt public static void main String args Integer numbers 10 int target 15 sum up new ArrayList lt Integer gt Arrays asList numbers target code prepIt is exactly the same heuristic My Java is bit rusty but think is easy to understand pp strongC conversion of Java solution strong em by em ppre class lang cs prettyprint override codepublic static void Main string args List lt int gt numbers new List lt int gt 10 int target 15 sum up numbers target private static void sum up List lt int gt numbers int target sum up recursive numbers target new List lt int gt private static void sum up recursive List lt int gt numbers int target List lt int gt partial int foreach int in partial if target Console WriteLine sum string Join partial ToArray target if gt target return for int lt numbers Count List lt int gt remaining new List lt int gt int numbers for int lt numbers Count remaining Add numbers List lt int gt partial rec new List lt int gt partial partial rec Add sum up recursive remaining target partial rec code prep strongRuby solution strong em by em ppre class lang rb prettyprint override codedef subset sum numbers target partial partial inject check if the partial sum is equals to target puts sum partial target if target return if gt target if we reach the number why bother to continue numbers length each do numbers remaining numbers drop subset sum remaining target partial endendsubset sum 10 15 code prep strongEdit complexity discussion strong ppAs others mention this is an href http en wikipedia org wiki Subset sum problem rel noreferrer NP hard problem It can be solved in exponential time for instance for 10 there will be 1024 possible solutions If the targets you are trying to reach are in low range then this algorithm works So for instance pp codesubset sum 10 100000 code generates 1024 branches because the target never gets to filter out possible solutions ppOn the other hand codesubset sum 10 10 code generates only 175 branches because the target to reach code10 code gets to filter out many combinations ppIf codeN code and codeTarget code are big numbers one should move into an approximate version of the solution you probably need to carry over another parameter that accumulates all results That together with another if else to test if that parameter has any items in it If it does then skip the recursion,0,NULL,NULL 55056,7457913,1190376,Yearling Civic Duty Custodian Cleanup Yearling Custodian Citizen Patrol Custodian Explainer Tag Editor Yearling Necromancer Custodian Yearling Tenacious Enthusiast Reviewer Deputy Notable Question Strunk & White Reviewer Documentation User Reviewer Yearling Steward Popular Question,NULL,NULL,0,NULL,NULL 55057,87548,1170370,Yearling Tumbleweed Yearling Revival Revival Civic Duty Yearling Announcer Necromancer Revival Announcer Yearling Nice Answer Enlightened Announcer,NULL,pIt should now be safe to update conda This is fixed in the following python packages for linux 64 pullipython h0b30769 14 tar bz2 lilipython 14 h931c8b0 15 tar bz2 lilipython 13 hac47a24 15 tar bz2 lilipython hc053d89 14 tar bz2 li ulpThe issue was as Jon Riehl described we Anaconda formerly Continuum build all of our packages with new GCC package that we created using crosstool ng This package does not have gcc it has prefixed gcc the missing command you re seeing codex86 64 conda cos6 linux gnu gcc code This gets baked into python and any extension built with that python goes looking for that compiler We have fixed the issue using the PYTHON SYSCONFIGDATA NAME variable that was added to python We have backported that to python and You ll now only ever see python using default compilers gcc and you must set the PYTHON SYSCONFIGDATA NAME to the appropriate filename to have the new compilers used Setting this variable is something that we ll put into the activate scripts for the compiler package so you ll never need to worry about it It may take us day or two to get new compiler packages out though so post issues on the conda build issue tracker if you like to use the new compilers and need help getting started ppRelevant code changes are at pullipy27 href https github com anacondarecipes python feedstock tree master 14 rel nofollow noreferrer https github com anacondarecipes python feedstock tree master 14 lilipy35 href https github com anacondarecipes python feedstock tree master rel nofollow noreferrer https github com anacondarecipes python feedstock tree master lilipy36 href https github com anacondarecipes python feedstock rel nofollow noreferrer https github com anacondarecipes python feedstock li ul Miniconda has not yet been updated It will be versioned as 27 We ll have new installers up when we can For now if you always do conda update conda conda update python you should get good version,1,NULL,unable to execute x86 64 conda cos6 linux gnu gcc No such file or directory pysam installation linux python gcc anaconda pysam pI am trying to install pysam ppAfter excecuting ppre codepython path to pysam master setup py build code prepThis error is produced ppre codeunable to execute x86 64 conda cos6 linux gnu gcc No such file or directoryerror command x86 64 conda cos6 linux gnu gcc failed with exit status code prepThere are similar threads but they all seem to address the problem assumig administriator rights which do not have Is there way around to install the needed files ppDISCLAIMER This question derived from previous post of mine href https stackoverflow com questions 46447724 manually installing pysam error importerror no module named version manually installing pysam error ImportError No module named version aBut since it might require different approach made it question of its own pIt should now be safe to update conda This is fixed in the following python packages for linux 64 pullipython h0b30769 14 tar bz2 lilipython 14 h931c8b0 15 tar bz2 lilipython 13 hac47a24 15 tar bz2 lilipython hc053d89 14 tar bz2 li ulpThe issue was as Jon Riehl described we Anaconda formerly Continuum build all of our packages with new GCC package that we created using crosstool ng This package does not have gcc it has prefixed gcc the missing command you re seeing codex86 64 conda cos6 linux gnu gcc code This gets baked into python and any extension built with that python goes looking for that compiler We have fixed the issue using the PYTHON SYSCONFIGDATA NAME variable that was added to python We have backported that to python and You ll now only ever see python using default compilers gcc and you must set the PYTHON SYSCONFIGDATA NAME to the appropriate filename to have the new compilers used Setting this variable is something that we ll put into the activate scripts for the compiler package so you ll never need to worry about it It may take us day or two to get new compiler packages out though so post issues on the conda build issue tracker if you like to use the new compilers and need help getting started ppRelevant code changes are at pullipy27 href https github com anacondarecipes python feedstock tree master 14 rel nofollow noreferrer https github com anacondarecipes python feedstock tree master 14 lilipy35 href https github com anacondarecipes python feedstock tree master rel nofollow noreferrer https github com anacondarecipes python feedstock tree master lilipy36 href https github com anacondarecipes python feedstock rel nofollow noreferrer https github com anacondarecipes python feedstock li ul 55058,398658,126861,Nice Question Custodian Popular Question Notable Question Revival Famous Question Necromancer,NULL,NULL,0,NULL,NULL 55059,900076,1236997,Notable Question,NULL,NULL,0,NULL,NULL 55060,1431425,362856,NULL,NULL,NULL,0,NULL,NULL 55061,111315,1177850,Critic Commentator Autobiographer Suffrage,NULL,NULL,0,NULL,NULL 55062,913714,121143,Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 55063,1328420,1493619,NULL,NULL,NULL,0,NULL,NULL 55064,441288,88995,Revival Supporter Nice Answer Enlightened Critic Informed Autobiographer Caucus Yearling,NULL,NULL,0,NULL,NULL 55065,586041,368544,Announcer Yearling Nice Question Good Answer Enthusiast Notable Question Announcer Yearling Nice Answer Revival Popular Question Announcer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55066,84539,345278,NULL,NULL,NULL,0,NULL,NULL 55067,312464,538603,Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Promoter Benefactor Nice Question Nice Answer Enlightened Nice Question Good Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55068,744033,1505049,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55069,41233,1108460,NULL,NULL,NULL,0,NULL,NULL 55070,1180973,544623,Teacher Popular Question Supporter,NULL,NULL,0,NULL,NULL 55071,134336,271045,Notable Question,NULL,NULL,0,NULL,NULL 55072,532031,1022815,NULL,NULL,NULL,0,NULL,NULL 55073,290068,1301554,Informed Teacher Revival,NULL,NULL,0,NULL,NULL 55074,41804,818033,Popular Question Critic Civic Duty Suffrage Vox Populi Citizen Patrol Autobiographer,NULL,NULL,0,NULL,NULL 55075,389802,727721,NULL,NULL,NULL,0,NULL,NULL 55076,98995,1170218,NULL,NULL,NULL,0,NULL,NULL 55077,207711,1533130,Announcer Popular Question,NULL,NULL,0,NULL,NULL 55078,1393642,1337677,NULL,NULL,NULL,0,NULL,NULL 55079,10857,1445241,NULL,NULL,NULL,0,NULL,NULL 55080,849,211774,NULL,NULL,NULL,0,NULL,NULL 55081,1488833,532792,NULL,NULL,NULL,0,NULL,NULL 55082,393058,850703,NULL,NULL,NULL,0,NULL,NULL 55083,203671,393595,NULL,NULL,NULL,0,NULL,NULL 55084,23628,5675,Famous Question Famous Question Yearling Favorite Question Nice Answer Nice Question Notable Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 55085,198957,1435664,Teacher,NULL,NULL,0,NULL,NULL 55086,1159243,369757,NULL,NULL,NULL,0,NULL,NULL 55087,39260,602340,Necromancer Yearling Notable Question Necromancer Good Answer Nice Answer Nice Answer Nice Answer Revival Nice Question Nice Answer Popular Question Nice Answer Excavator Necromancer Necromancer Yearling Announcer Good Answer Popular Question Nice Answer Necromancer Necromancer Yearling Necromancer Famous Question Populist,NULL,NULL,0,NULL,NULL 55088,86548,52550,Nice Question,NULL,NULL,0,NULL,NULL 55089,3090549,933566,Critic Caucus Nice Answer Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 55090,192919,10590,NULL,NULL,NULL,0,NULL,NULL 55091,144879,1217056,Student,NULL,NULL,0,NULL,NULL 55092,1743101,1172143,NULL,NULL,NULL,0,NULL,NULL 55093,535739,661043,NULL,NULL,NULL,0,NULL,NULL 55094,1643247,1355798,NULL,NULL,NULL,0,NULL,NULL 55095,605993,297061,Nice Question,NULL,NULL,0,NULL,NULL 55096,6096761,1058196,Good Answer Guru Caucus Yearling Caucus Guru Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 55097,1222670,574755,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55098,9916,247010,NULL,NULL,NULL,0,NULL,NULL 55099,41551,262647,NULL,NULL,NULL,0,NULL,NULL 55100,1244726,300621,NULL,NULL,NULL,0,NULL,NULL 55101,97655,368959,Nice Question Popular Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55102,202950,685340,NULL,NULL,NULL,0,NULL,NULL 55103,245546,97438,Popular Question Yearling Necromancer Civic Duty Nice Answer Notable Question Student Revival Good Answer,NULL,NULL,0,NULL,NULL 55104,793458,845326,NULL,NULL,NULL,0,NULL,NULL 55105,121635,1217658,NULL,NULL,NULL,0,NULL,NULL 55106,175115,974188,Revival,NULL,NULL,0,NULL,NULL 55107,1518037,1204514,NULL,NULL,NULL,0,NULL,NULL 55108,186161,126254,Yearling,NULL,NULL,0,NULL,NULL 55109,582139,770296,NULL,NULL,NULL,0,NULL,NULL 55110,444812,777762,NULL,NULL,NULL,0,NULL,NULL 55111,156477,939909,Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 55112,1005516,958474,NULL,NULL,NULL,0,NULL,NULL 55113,1071915,951741,Popular Question Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 55114,1348301,951741,Popular Question Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 55115,46965,255598,NULL,NULL,NULL,0,NULL,NULL 55116,78438,137122,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55117,437667,243364,NULL,NULL,NULL,0,NULL,NULL 55118,705479,822106,NULL,NULL,NULL,0,NULL,NULL 55119,420878,456684,Yearling Caucus Yearling Civic Duty Necromancer Yearling,NULL,NULL,0,NULL,NULL 55120,355563,229049,NULL,NULL,NULL,0,NULL,NULL 55121,195199,1239108,Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55122,103368,433695,Notable Question Famous Question Yearling Famous Question Popular Question Nice Question Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55123,33914,117026,Editor Informed Autobiographer Commentator Custodian Tumbleweed,NULL,pYou can use git rebase for example if you want to modify back to commit codebbc643cd code run ppre code git rebase interactive bbc643cd code prepIn the default editor modify codepick code to codeedit code in the line whose commit you want to modify Make your changes and then commit them with the same message you had before ppre code git commit all amend no edit code prepto modify the commit and after that ppre code git rebase continue code prepto return back to the previous head commit pp strongWARNING strong Note that this will change the SHA of that commit strongas well as all children strong in other words this rewrites the history from that point forward href https stackoverflow com 3926832 1269037 You can break repos doing this if you push using the command codegit push force code Git rebase amend now has reword keyword that only updates the commit messages simpler and safer,0,NULL,NULL 55124,258600,1091309,NULL,NULL,NULL,0,NULL,NULL 55125,314904,126584,Notable Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 55126,4497878,751473,NULL,NULL,NULL,0,NULL,NULL 55127,3012075,160589,Yearling Nice Answer Enlightened Documentation User Popular Question Nice Question,NULL,Order of serialized fields using JSON NET json json net pIs there way to specify the order of fields in serialized JSON object using href http json codeplex com rel noreferrer JSON NET ppIt would be sufficient to specify that single field always appear first Another reason might be canonical representation which uses JSON syntax the same object must be guaranteed to produce the same JSON string deterministic order of the attributes is necessary prerequisite for this,0,NULL,NULL 55128,307743,472274,NULL,NULL,NULL,0,NULL,NULL 55129,637608,613547,NULL,NULL,NULL,0,NULL,NULL 55130,902526,1321551,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55131,67449,1276192,NULL,NULL,NULL,0,NULL,NULL 55132,472960,277172,Custodian Yearling Nice Answer Excavator Good Question Popular Question Yearling Announcer Good Answer Popular Question Nice Question Yearling Famous Question,NULL,pThe href https stackoverflow com 2082169 277172 currently approved answer doesn work for stronga lot strong of cases so it cannot be used as drop in codedict code replacement Some tricky points in getting proper codedict code replacement pullioverloading all of the methods that involve keys liliproperly handling non string keys liliproperly handling the constructor of the class li ulpThe following should work much better ppre class lang py prettyprint override codeclass CaseInsensitiveDict dict def cls key return key lower if isinstance key basestring else key def init self args kwargs super CaseInsensitiveDict self init args kwargs self convert keys def getitem self key return super CaseInsensitiveDict self getitem self class key def setitem self key value super CaseInsensitiveDict self setitem self class key value def delitem self key return super CaseInsensitiveDict self delitem self class key def contains self key return super CaseInsensitiveDict self contains self class key def has key self key return super CaseInsensitiveDict self has key self class key def pop self key args kwargs return super CaseInsensitiveDict self pop self class key args kwargs def get self key args kwargs return super CaseInsensitiveDict self get self class key args kwargs def setdefault self key args kwargs return super CaseInsensitiveDict self setdefault self class key args kwargs def update self super CaseInsensitiveDict self update self class super CaseInsensitiveDict self update self class def convert keys self for in list self keys super CaseInsensitiveDict self pop self setitem code pre Not sure but it should be straightforward to add Just modify to also normalise as desired pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr You are right Looking at the code of prepend it is indeed Thanks for noticing my oversight misinterpreted your first sentence and assumed complexity was There no built in way to do this in Python in time could also be interpreted as implying fundamental shortcoming with the Python implementation rephrased the sentence to make it more clear pThere no built in method for doing this in Python If you need this you need to write codeprepend code method function that operates on the codeOrderedDict code internals with complexity ppFor Python and later you can use the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codemove to end code sup1 sup method The method accepts codelast code argument which indicates whether the element will be moved to the bottom codelast True code or the top codelast False code of the codeOrderedDict code ppFinally if you want quick dirty and emslow em solution you can just create new codeOrderedDict code from scratch ppDetails for the four different solutions phrh1Extend codeOrderedDict code and add new instance method h1pre codefrom collections import OrderedDictclass MyOrderedDict OrderedDict def prepend self key value dict setitem dict setitem root self OrderedDict root first root if key in self link self OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first self OrderedDict map key root first key dict setitem self key value code prep strongDemo strong ppre code gt gt gt MyOrderedDict gt gt gt dMyOrderedDict gt gt gt prepend 100 gt gt gt dMyOrderedDict 100 gt gt gt prepend gt gt gt dMyOrderedDict 100 gt gt gt prepend 200 gt gt gt dMyOrderedDict 200 100 code prehrh1Standalone function that manipulates codeOrderedDict code objects h1pThis function does the same thing by accepting the dict object key and value personally prefer the class ppre codefrom collections import OrderedDictdef ordered dict prepend dct key value dict setitem dict setitem root dct OrderedDict root first root if key in dct link dct OrderedDict map key link prev link next link link prev link next link next link prev link root link first root first link else root first dct OrderedDict map key root first key dict setitem dct key value code prep strongDemo strong ppre code gt gt gt OrderedDict gt gt gt ordered dict prepend 100 gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend gt gt gt dOrderedDict 100 gt gt gt ordered dict prepend 500 gt gt gt dOrderedDict 500 100 code prehrh1Use codeOrderedDict move to end code Python h1p sup1 sup href https docs python org whatsnew html collections rel noreferrer Python introduced the href https docs python org library collections html collections OrderedDict move to end rel noreferrer codeOrderedDict move to end code method Using it we can move an existing key to either end of the dictionary in time ppre code gt gt gt d1 OrderedDict gt gt gt d1 update gt gt gt d1 move to end last False gt gt gt d1OrderedDict code prepIf we need to insert an element and move it to the top all in one step we can directly use it to create codeprepend code wrapper not presented here phrh1Create new codeOrderedDict code slow h1pIf you don want to do that and strongperformance is not an issue strong then easiest way is to create new dict ppre codefrom itertools import chain ifilterfalsefrom collections import OrderedDictdef unique everseen iterable key None List unique elements preserving order Remember all elements ever seen unique everseen AAAABBBCCDAABBB gt unique everseen ABBCcAD str lower gt seen set seen add seen add if key is None for element in ifilterfalse seen contains iterable seen add element yield element else for element in iterable key element if not in seen seen add yield elementd1 OrderedDict d2 OrderedDict dict containing items to be added at the frontnew dic OrderedDict d2 get d1 get for in unique everseen chain d2 d1 print new dic code prep strongoutput strong ppre codeOrderedDict code prehr Since Python has already added move to front maybe it is better to implement move to front method instead of separate prepend method This will make your code more portable if you ever need to support both Python and Python from the same code base,0,NULL,NULL 55133,85794,38463,Popular Question Custodian Yearling Nice Answer Revival Popular Question,NULL,NULL,0,NULL,NULL 55134,516927,98876,NULL,NULL,NULL,0,NULL,NULL 55135,894090,255289,NULL,NULL,NULL,0,NULL,NULL 55136,83278,775359,Announcer Good Answer Revival Notable Question Necromancer Popular Question Revival Yearling Nice Answer javascript Good Question Pundit Organizer Famous Question Notable Question Inquisitive Necromancer Nice Question Popular Question Nice Answer Popular Question Announcer Nice Question Popular Question Good Answer Yearling Nice Answer Nice Question Self-Learner Necromancer Popular Question Revival Announcer Popular Question Necromancer Popular Question Popular Question Popular Question Favorite Question Necromancer Notable Question Necromancer Notable Question Yearling Great Answer Famous Question Popular Question,NULL,pI made small directive to listen for file input changes pp href http jsfiddle net sqren 27ugfym6 rel noreferrer View JSFiddle pp strongview html strong ppre code lt input type file custom on change uploadFile gt code prep strongcontroller js strong ppre codeapp controller myCtrl function scope scope uploadFile function event var files event target files code prep strongdirective js strong ppre codeapp directive customOnChange function return restrict link function scope element attrs var onChangeHandler scope eval attrs customOnChange element on change onChangeHandler element on destroy function element off code pre have some issues with the scope posted plnkr link to the chat http chat stackoverflow com transcript message 35411481 35411481,0,NULL,NULL 55137,4275,1252006,NULL,NULL,NULL,0,NULL,NULL 55138,184130,1362113,Fanatic Popular Question,NULL,NULL,0,NULL,NULL 55139,14992,185316,Nice Answer Yearling Excavator Nice Answer Enlightened Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 55140,107940,230279,Nice Answer Enlightened Self-Learner Popular Question Yearling Notable Question Popular Question Favorite Question Organizer Tag Editor Excavator Caucus Popular Question Yearling Revival Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 55141,255652,402621,Popular Question Notable Question Notable Question Famous Question Yearling Notable Question Popular Question Caucus Popular Question Excavator Nice Question Famous Question Yearling Popular Question Nice Question Notable Question Custodian Guru Yearling Famous Question,NULL,NULL,0,NULL,NULL 55142,253947,292731,Popular Question Yearling Good Answer Nice Answer Enlightened Popular Question Nice Question Good Answer ruby Notable Question haskell Notable Question Yearling Good Answer Nice Question Famous Question Revival Nice Question Taxonomist Nice Question Announcer Nice Question Self-Learner Famous Question Yearling Good Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 55143,2340905,292731,Popular Question Yearling Good Answer Nice Answer Enlightened Popular Question Nice Question Good Answer ruby Notable Question haskell Notable Question Yearling Good Answer Nice Question Famous Question Revival Nice Question Taxonomist Nice Question Announcer Nice Question Self-Learner Famous Question Yearling Good Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 55144,834165,1342575,NULL,NULL,NULL,0,NULL,NULL 55145,8748025,1290181,NULL,NULL,NULL,0,NULL,NULL 55146,88162,1290181,NULL,NULL,NULL,0,NULL,NULL 55147,72832,17489,Custodian Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55148,536799,243669,NULL,NULL,NULL,0,NULL,NULL 55149,308182,173834,NULL,NULL,NULL,0,NULL,NULL 55150,151217,990155,Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Teacher Civic Duty Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55151,305200,653840,NULL,NULL,NULL,0,NULL,NULL 55152,62356,576597,Informed,NULL,NULL,0,NULL,NULL 55153,1511157,1092405,Enthusiast,NULL,NULL,0,NULL,NULL 55154,1174566,129748,Notable Question,NULL,NULL,0,NULL,NULL 55155,1738157,19026,Notable Question Revival Famous Question,NULL,NULL,0,NULL,NULL 55156,1273980,1172326,NULL,NULL,NULL,0,NULL,NULL 55157,51214,1001053,Autobiographer,NULL,NULL,0,NULL,NULL 55158,767244,484551,NULL,NULL,NULL,0,NULL,NULL 55159,4129753,210827,Notable Question Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 55160,378803,210827,Notable Question Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 55161,133407,1263835,Student Popular Question,NULL,NULL,0,NULL,NULL 55162,1126107,1466611,NULL,NULL,NULL,0,NULL,NULL 55163,713119,1085594,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 55164,1182680,379174,Yearling,NULL,NULL,0,NULL,NULL 55165,636697,898284,NULL,NULL,NULL,0,NULL,NULL 55166,1913992,265654,NULL,NULL,NULL,0,NULL,NULL 55167,1197528,563583,NULL,NULL,NULL,0,NULL,NULL 55168,1129980,1232792,NULL,NULL,NULL,0,NULL,NULL 55169,1031695,1341880,NULL,NULL,NULL,0,NULL,NULL 55170,902124,795403,NULL,NULL,NULL,0,NULL,NULL 55171,350564,442050,Yearling Popular Question Famous Question Popular Question Notable Question Popular Question Caucus Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 55172,640743,1253218,Nice Answer,NULL,NULL,0,NULL,NULL 55173,695934,877877,Informed,NULL,NULL,0,NULL,NULL 55174,903559,864467,NULL,NULL,NULL,0,NULL,NULL 55175,112315,495411,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 55176,810926,67538,Notable Question,NULL,NULL,0,NULL,NULL 55177,14079,54215,Yearling Notable Question Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 55178,7730917,394416,Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 55179,2550886,394416,Teacher Supporter Commentator,NULL,NULL,0,NULL,NULL 55180,2701337,1112633,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55181,59434,1112633,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55182,59449,151504,Good Answer Yearling Yearling Famous Question Nice Answer Enlightened Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55183,307144,774071,Necromancer Yearling Autobiographer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 55184,186094,1437882,Popular Question,NULL,NULL,0,NULL,NULL 55185,452687,156280,Notable Question Notable Question Notable Question Nice Question Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 55186,775458,265773,Nice Answer Enlightened Yearling Nice Answer Civic Duty Caucus,NULL,NULL,0,NULL,NULL 55187,186391,789531,NULL,NULL,NULL,0,NULL,NULL 55188,4208,1141462,NULL,NULL,NULL,0,NULL,NULL 55189,317044,546442,NULL,NULL,NULL,0,NULL,NULL 55190,381573,326792,Notable Question Necromancer Necromancer Announcer Famous Question Yearling Nice Answer Necromancer Popular Question Popular Question Necromancer Nice Answer Necromancer Yearling Announcer Necromancer Popular Question Necromancer Popular Question Popular Question Notable Question Popular Question Nice Question Nice Answer Yearling Notable Question Necromancer Revival Pundit Custodian,NULL,NULL,0,NULL,NULL 55191,495828,119803,NULL,NULL,NULL,0,NULL,NULL 55192,378012,803101,Popular Question,NULL,NULL,0,NULL,NULL 55193,634770,187428,NULL,NULL,NULL,0,NULL,NULL 55194,3190391,339428,Nice Answer Necromancer Popular Question Popular Question Popular Question Yearling Nice Question Notable Question Famous Question Nice Question Notable Question Nice Question Great Question Popular Question Good Answer Nice Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question Good Question Nice Answer Nice Question Good Question Notable Question Popular Question Good Question Yearling Good Question Popular Question Great Question Good Answer,NULL,NULL,0,NULL,NULL 55195,428008,73774,Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 55196,4505,106463,Nice Answer Enlightened Good Answer Good Answer Yearling php Yearling Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 55197,181711,155104,NULL,NULL,NULL,0,NULL,NULL 55198,292508,1258738,NULL,NULL,NULL,0,NULL,NULL 55199,187221,620575,Nice Answer Yearling Good Answer Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 55200,393951,126273,Promoter Announcer Nice Question Fanatic Revival Announcer Popular Question Popular Question Necromancer Nice Question Yearling Announcer Popular Question Notable Question Civic Duty Caucus Notable Question Nice Answer Enlightened Yearling Documentation User Nice Question Census,NULL,NULL,1,Wrong viewport page height in embedded Facebook browser in iOS html ios css facebook embedded browser pWhen opening the href https mtr github io core layout examples rel noreferrer demo application from href https www npmjs com package core layout rel noreferrer core layout with the embedded browser in the Facebook app on iOS at least the footer element is not visible when the device is in portrait mode If you rotate the device to landscape mode the footer will be partially visible However the footer with button should be completely visible ppThe first image shows how the demo app emshould em look while the second image shows how the demo app is missing the footer when viewed with the Facebook app embedded web view the images were grabbed from Chrome desktop browser illustrating how the bug is manifested pblockquote href https stack imgur com Pv4W8 png rel noreferrer img src https stack imgur com Pv4W8 png alt How the demo should look href https stack imgur com X3NgI png rel noreferrer img src https stack imgur com X3NgI png alt Demo with missing footer blockquotepAfter testing lot of different hypotheses we concluded that the bug was caused by the browser making the page viewport higher than the visible area ppThis bug seemed related to href https stackoverflow com questions 33618595 ios9 safari viewport issues meta not scaling properly iOS9 Safari viewport issues meta not scaling properly and href https stackoverflow com questions 27379581 web page not getting 100 height in twitter app on ios Web page not getting 100 height in Twitter app on iOS,NULL 55201,647408,1084936,NULL,NULL,NULL,0,NULL,NULL 55202,266026,334597,Famous Question Notable Question Promoter Editor Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55203,295849,737030,NULL,NULL,NULL,0,NULL,NULL 55204,4012362,456508,NULL,NULL,NULL,0,NULL,NULL 55205,305065,456508,NULL,NULL,NULL,0,NULL,NULL 55206,156059,1055215,Nice Question Scholar Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55207,74892,1188162,Yearling Critic Commentator Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55208,7033809,536738,Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 55209,125200,536738,Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 55210,179825,756682,Teacher Informed Autobiographer,NULL,NULL,0,NULL,NULL 55211,300871,1334450,NULL,NULL,NULL,0,NULL,NULL 55212,78307,1464801,NULL,NULL,NULL,0,NULL,NULL 55213,14845,743292,Notable Question,NULL,NULL,0,NULL,NULL 55214,43140,1328117,Critic,NULL,NULL,0,NULL,NULL 55215,65673,850667,Editor Popular Question Scholar Student Supporter Teacher Notable Question,NULL,NULL,0,NULL,NULL 55216,65764,391726,NULL,NULL,NULL,0,NULL,NULL 55217,126645,51397,Civic Duty Yearling Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Necromancer Yearling Nice Answer Guru Nice Answer Good Answer Yearling Good Answer Revival Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 55218,75853,691923,NULL,NULL,NULL,0,NULL,NULL 55219,17343,677815,NULL,NULL,NULL,0,NULL,NULL 55220,219543,672798,Notable Question Self-Learner Popular Question Nice Question Popular Question Popular Question Popular Question Yearling Excavator Notable Question Necromancer Yearling Popular Question Famous Question Caucus Explainer Popular Question Popular Question Popular Question Popular Question Custodian Revival Notable Question Census Yearling Notable Question Necromancer Caucus Popular Question Notable Question Nice Question Notable Question Famous Question Nice Question Popular Question Yearling Popular Question Necromancer Nice Answer Famous Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 55221,1509671,1278106,NULL,NULL,NULL,0,NULL,NULL 55222,66114,552182,Nice Answer Announcer Tag Editor Announcer Excavator Announcer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Necromancer Good Answer Popular Question Caucus javascript Yearling Announcer Unsung Hero Announcer Nice Answer Announcer Self-Learner Popular Question Good Answer html5 Yearling Taxonomist Nice Answer Enlightened Announcer Announcer Good Answer Announcer,NULL,NULL,1,NULL,Solve Socket io connection in external module with expressjs node js express socket io webrtc pI have the following case When try to connect the module called Signaling Server js in the view of html the console says GET ERROR HTTP 400 Bad Request 1ms But this only happens when add these Module When try to connect without him the socket io connections works perfectly pp strongapp js strong ppre code Modulesvar express require express http require http morgan require morgan bodyParser require body parser methodOverride require method override app express server http createServer app io require socket io listen server app use express static dirname public app use morgan dev app use bodyParser urlencoded extended false app use bodyParser json app use methodOverride app set views dirname views need to onnect with this module require Signaling Server js myServerOrPort require Signaling Server js server Server is readyserver listen 3000 code prepThe code of Signaling Server is here Cortesy of MuazKhan Proyect RTCMultiConnection pp strongSignaling Server js strong ppre code Muaz Khan www MuazKhan com MIT License www WebRTC Experiment com licence Documentation github com muaz khan RTCMultiConnectionmodule exports exports function app socketCallback var io require socket io listen app log false origins io set transports websocket disconnect EVENT will work only with websocket xhr polling jsonp polling var listOfUsers var shiftedModerationControls var ScalableBroadcast io sockets on connection function socket var params socket handshake query var socketMessageEvent params msgEvent RTCMultiConnection Message if params enableScalableBroadcast if ScalableBroadcast ScalableBroadcast require Scalable Broadcast js var singleBroadcastAttendees params singleBroadcastAttendees ScalableBroadcast socket singleBroadcastAttendees socket userid params userid listOfUsers socket userid socket socket connectedWith isPublic false means isPublicModerator extra socket on extra data updated function extra try if listOfUsers socket userid return listOfUsers socket userid extra extra for var user in listOfUsers socket userid connectedWith listOfUsers user socket emit extra data updated socket userid extra catch socket on become public moderator function try if listOfUsers socket userid return listOfUsers socket userid isPublic true catch socket on get public moderators function userIdStartsWith callback try userIdStartsWith userIdStartsWith var allPublicModerators for var moderatorId in listOfUsers if listOfUsers moderatorId isPublic amp amp moderatorId indexOf userIdStartsWith amp amp moderatorId socket userid var moderator listOfUsers moderatorId allPublicModerators push userid moderatorId extra moderator extra callback allPublicModerators catch socket on changed uuid function newUserId try if listOfUsers socket userid amp amp listOfUsers socket userid socket id socket userid if newUserId socket userid return var oldUserId socket userid listOfUsers newUserId listOfUsers oldUserId listOfUsers newUserId socket userid socket userid newUserId delete listOfUsers oldUserId return socket userid newUserId listOfUsers socket userid socket socket connectedWith isPublic false extra catch socket on set password function password try if listOfUsers socket userid listOfUsers socket userid password password catch socket on disconnect with function remoteUserId callback try if listOfUsers socket userid amp amp listOfUsers socket userid connectedWith remoteUserId delete listOfUsers socket userid connectedWith remoteUserId socket emit user disconnected remoteUserId if listOfUsers remoteUserId return callback if listOfUsers remoteUserId connectedWith socket userid delete listOfUsers remoteUserId connectedWith socket userid listOfUsers remoteUserId socket emit user disconnected socket userid callback catch function onMessageCallback message try if listOfUsers message sender socket emit user not found message sender return if listOfUsers message sender connectedWith message remoteUserId amp amp listOfUsers message remoteUserId listOfUsers message sender connectedWith message remoteUserId listOfUsers message remoteUserId socket listOfUsers message sender socket emit user connected message remoteUserId if listOfUsers message remoteUserId listOfUsers message remoteUserId socket null connectedWith isPublic false extra listOfUsers message remoteUserId connectedWith message sender socket if listOfUsers message remoteUserId socket listOfUsers message remoteUserId socket emit user connected message sender if listOfUsers message sender connectedWith message remoteUserId amp amp listOfUsers socket userid message extra listOfUsers socket userid extra listOfUsers message sender connectedWith message remoteUserId emit socketMessageEvent message catch var numberOfPasswordTries socket on socketMessageEvent function message callback if message remoteUserId amp amp message remoteUserId socket userid remoteUserId MUST be unique return try if message remoteUserId amp amp message remoteUserId system amp amp message message newParticipationRequest if listOfUsers message remoteUserId amp amp listOfUsers message remoteUserId password if numberOfPasswordTries gt socket emit password max tries over message remoteUserId return if message password numberOfPasswordTries socket emit join with password message remoteUserId return if message password listOfUsers message remoteUserId password numberOfPasswordTries socket emit invalid password message remoteUserId message password return if message message shiftedModerationControl if message message firedOnLeave onMessageCallback message return shiftedModerationControls message sender message return if message remoteUserId system if message message detectPresence if message message userid socket userid callback false socket userid return callback listOfUsers message message userid message message userid return if listOfUsers message sender listOfUsers message sender socket socket connectedWith isPublic false extra if someone tries to join person who is absent if message message newParticipationRequest var waitFor 120 minutes var invokedTimes function repeater invokedTimes if invokedTimes gt waitFor socket emit user not found message remoteUserId return if listOfUsers message remoteUserId amp amp listOfUsers message remoteUserId socket onMessageCallback message return setTimeout repeater 1000 return onMessageCallback message catch socket on disconnect function try var message shiftedModerationControls socket userid if message delete shiftedModerationControls message userid onMessageCallback message catch try inform all connected users if listOfUsers socket userid for var in listOfUsers socket userid connectedWith listOfUsers socket userid connectedWith emit user disconnected socket userid if listOfUsers amp amp listOfUsers connectedWith socket userid delete listOfUsers connectedWith socket userid listOfUsers socket emit user disconnected socket userid catch delete listOfUsers socket userid if socketCallback socketCallback socket code prepAnybody knows whats the fix pYou can either try Ahmed solution passing codeserver code object here ppre coderequire Signaling Server js server code prepIn your codes the codeserver code object is using codehttp code ppI ll suggest trying this instead ppre codevar fs require fs var options key fs readFileSync fake keys privatekey pem cert fs readFileSync fake keys certificate pem var express require express http require https Use HTTPs here app express server http createServer options app require Signaling Server js server code prepYou can either try valid SSL certificate keys or href https github com muaz khan WebRTC Experiment tree master socketio over nodejs fake keys rel nofollow fake keys ppHere is how to use valid certificates ppre codevar options key fs readFileSync ssl private domain com key cert fs readFileSync ssl certs domain com crt ca fs readFileSync ssl certs domain com cabundle code pre 55223,782791,1109382,NULL,NULL,NULL,0,NULL,NULL 55224,13407,309910,NULL,NULL,NULL,0,NULL,NULL 55225,100598,224629,NULL,NULL,NULL,0,NULL,NULL 55226,536039,443527,NULL,NULL,NULL,0,NULL,NULL 55227,179095,9609,Caucus Caucus Nice Answer,NULL,NULL,0,NULL,NULL 55228,11318910,762622,NULL,NULL,NULL,0,NULL,NULL 55229,414868,75095,Nice Answer Good Answer Yearling Popular Question Popular Question Famous Question Good Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55230,4277,790536,Nice Answer,NULL,NULL,0,NULL,NULL 55231,200852,109104,Notable Question Good Question Yearling Good Question Necromancer Nice Question Good Question Yearling Famous Question Nice Question Good Question Famous Question Favorite Question Favorite Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55232,259356,152867,Famous Question Famous Question Notable Question Good Question Popular Question Great Question Good Question Popular Question Popular Question Popular Question Popular Question Good Answer Yearling Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Nice Question Good Answer Famous Question Caucus Constituent Nice Answer Nice Question Famous Question android Yearling Popular Question Famous Question Great Answer Notable Question Notable Question Nice Answer Famous Question Notable Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 55233,213731,1365075,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55234,492878,456728,Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55235,309378,573375,NULL,NULL,NULL,0,NULL,NULL 55236,291655,1190631,NULL,NULL,NULL,0,NULL,NULL 55237,352544,732244,Yearling Good Question Yearling Revival,NULL,NULL,0,NULL,NULL 55238,713849,725594,Good Question Guru Yearling Nice Answer Enlightened Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 55239,2558637,310508,NULL,NULL,NULL,0,NULL,NULL 55240,1177853,1265809,NULL,NULL,NULL,0,NULL,NULL 55241,163415,985921,NULL,NULL,NULL,0,NULL,NULL 55242,146418,367180,Yearling Nice Question Caucus Constituent Nice Question Yearling Caucus Constituent Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55243,342705,1219486,NULL,NULL,NULL,0,NULL,NULL 55244,3156318,1219486,NULL,NULL,NULL,0,NULL,NULL 55245,134989,130891,Yearling Self-Learner Popular Question Caucus Yearling Notable Question Notable Question Caucus Yearling Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55246,2516277,550091,NULL,NULL,NULL,0,NULL,NULL 55247,270940,824009,Popular Question,NULL,NULL,0,NULL,NULL 55248,169842,1061371,Announcer Student Scholar Announcer Teacher Supporter Excavator Civic Duty,NULL,NULL,0,NULL,NULL 55249,278582,326601,Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55250,661476,844378,NULL,NULL,NULL,0,NULL,NULL 55251,591503,1056541,Critic Citizen Patrol Popular Question Tumbleweed Self-Learner Popular Question Necromancer Yearling Revival Notable Question Curious,NULL,NULL,0,NULL,NULL 55252,33804,42188,Custodian Informed Cleanup Notable Question Nice Answer Enlightened Nice Question Popular Question Populist Nice Answer Nice Question Nice Question Yearling Popular Question Nice Answer Notable Question Great Answer Famous Question Famous Question Good Question Nice Question Popular Question Yearling Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 55253,469254,723405,Editor Student Critic Yearling Necromancer Popular Question Caucus Nice Answer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 55254,1778608,1363562,Critic Notable Question,NULL,NULL,0,NULL,NULL 55255,55176,1279773,NULL,NULL,NULL,0,NULL,NULL 55256,1090945,559170,Teacher Notable Question Popular Question Custodian Popular Question Curious Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 55257,299630,1117368,Editor Supporter Informed Custodian Commentator Peer Pressure Yearling Critic Yearling Caucus Excavator Yearling Tenacious Yearling Enthusiast Yearling Student Unsung Hero Explainer Promoter Organizer Citizen Patrol Scholar Custodian Benefactor Caucus Constituent Documentation User Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 55258,3867977,974878,NULL,NULL,NULL,0,NULL,NULL 55259,39695,1117082,NULL,NULL,NULL,0,NULL,NULL 55260,762202,1055269,Popular Question Curious Famous Question,NULL,NULL,0,NULL,NULL 55261,2203612,862823,Nice Answer Yearling Good Answer Student Yearling Yearling,NULL,NULL,0,NULL,NULL 55262,523610,1127384,NULL,NULL,NULL,0,NULL,NULL 55263,689342,36808,Scholar,NULL,NULL,0,NULL,NULL 55264,1721981,1112010,Yearling Enthusiast Custodian Custodian Yearling Custodian Famous Question Popular Question Caucus Custodian Popular Question Nice Answer Popular Question Caucus Constituent Yearling Popular Question Explainer Revival Organizer Yearling Notable Question,NULL,NULL,0,NULL,NULL 55265,191232,1281462,NULL,NULL,NULL,0,NULL,NULL 55266,787068,829493,Popular Question Nice Question Guru Nice Answer Enlightened Curious Excavator Yearling Necromancer Documentation Pioneer yii2 php Nice Answer Enlightened Caucus Good Answer Civic Duty Custodian Good Answer Nice Answer Nice Answer Enlightened Yearling Guru Caucus Constituent Documentation User Census Nice Answer Enlightened Caucus Good Answer Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 55267,163396,300582,Caucus Constituent Critic Caucus Constituent Excavator Yearling,NULL,NULL,0,NULL,NULL 55268,5662476,1325071,Student Editor Teacher Supporter Scholar Popular Question Notable Question Commentator Popular Question Self-Learner Nice Question Curious Notable Question Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 55269,5729861,1325071,Student Editor Teacher Supporter Scholar Popular Question Notable Question Commentator Popular Question Self-Learner Nice Question Curious Notable Question Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 55270,1156053,1353980,NULL,NULL,NULL,0,NULL,NULL 55271,2754358,1353980,NULL,NULL,NULL,0,NULL,NULL 55272,8495,594519,NULL,NULL,NULL,0,NULL,NULL 55273,152331,293514,NULL,NULL,NULL,0,NULL,NULL 55274,80598,916130,NULL,NULL,NULL,0,NULL,NULL 55275,2221464,815337,NULL,NULL,NULL,0,NULL,NULL 55276,1014018,815337,NULL,NULL,NULL,0,NULL,NULL 55277,148564,122100,NULL,NULL,NULL,0,NULL,NULL 55278,2648433,732460,NULL,NULL,NULL,0,NULL,NULL 55279,21575,413752,NULL,NULL,NULL,0,NULL,NULL 55280,1993,1194214,Supporter Census Teacher,NULL,NULL,0,NULL,NULL 55281,113841,233950,NULL,NULL,NULL,0,NULL,NULL 55282,1097474,723746,NULL,NULL,NULL,0,NULL,NULL 55283,119981,769217,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 55284,160894,1068187,NULL,NULL,NULL,0,NULL,NULL 55285,56514,321379,Necromancer,NULL,NULL,0,NULL,NULL 55286,343998,775,Popular Question Explainer Notable Question Nice Answer Notable Question Necromancer Notable Question Good Question Good Question Yearling Popular Question Caucus Nice Question Notable Question Popular Question Custodian Nice Question Popular Question Popular Question Yearling Popular Question Census Caucus Good Answer Notable Question Notable Question Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 55287,116582,673248,NULL,NULL,NULL,0,NULL,NULL 55288,169765,709169,NULL,NULL,NULL,0,NULL,NULL 55289,82349,259576,Nice Answer Good Answer Guru Good Answer Yearling Famous Question Popular Question node.js Good Answer Good Question Popular Question Nice Answer Famous Question Good Question Famous Question Nice Question Guru Nice Answer Famous Question Nice Question Popular Question Great Answer Yearling Nice Answer Notable Question Nice Answer Popular Question Good Answer Notable Question Nice Answer Nice Answer Announcer Famous Question Nice Answer Enlightened Good Answer Popular Question Revival Popular Question Good Answer Yearling Famous Question Nice Question Good Answer Favorite Question Good Answer Favorite Question Guru Popular Question Good Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 55290,317094,335631,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 55291,462905,45209,Famous Question Revival Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 55292,294970,588509,Student,NULL,NULL,0,NULL,NULL 55293,4443169,375551,Famous Question Popular Question Inquisitive Yearling Great Answer Caucus Popular Question Promoter Civic Duty Popular Question Good Question Popular Question Yearling Popular Question Popular Question Nice Question Good Question Nice Question Enthusiast Good Answer Popular Question Famous Question Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55294,149048,823779,NULL,NULL,NULL,0,NULL,NULL 55295,209446,264454,Notable Question,NULL,NULL,0,NULL,NULL 55296,142679,223933,NULL,NULL,NULL,0,NULL,NULL 55297,37710,735539,Yearling Popular Question Guru Nice Answer Yearling Cleanup Custodian Yearling,NULL,NULL,0,NULL,NULL 55298,595948,91128,Yearling Nice Answer Nice Answer .net Yearling Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 55299,42379,603209,Necromancer,NULL,NULL,0,NULL,NULL 55300,1643340,1171976,NULL,NULL,NULL,0,NULL,NULL 55301,608513,30816,Yearling Excavator Popular Question Custodian Nice Answer Notable Question Popular Question Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55302,85585,1392763,Custodian Commentator Yearling Necromancer Nice Answer Yearling Announcer Nice Answer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 55303,394704,1392763,Custodian Commentator Yearling Necromancer Nice Answer Yearling Announcer Nice Answer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 55304,594700,196653,Census,NULL,NULL,0,NULL,NULL 55305,3364960,196653,Census,NULL,NULL,0,NULL,NULL 55306,752292,1146279,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55307,5731,1059529,Yearling,NULL,NULL,0,NULL,NULL 55308,1299,1083460,NULL,NULL,NULL,0,NULL,NULL 55309,209382,58831,Good Answer Nice Question,NULL,NULL,0,NULL,NULL 55310,874351,1261383,NULL,NULL,NULL,0,NULL,NULL 55311,2097609,848920,NULL,NULL,NULL,0,NULL,NULL 55312,309035,1513534,Yearling,NULL,NULL,0,NULL,NULL 55313,90163,905807,NULL,NULL,NULL,0,NULL,NULL 55314,450561,502438,NULL,NULL,NULL,0,NULL,NULL 55315,209164,198062,Good Answer jquery Good Answer Good Answer Popular Question Nice Answer Good Answer Necromancer Electorate Explainer Yearling Popular Question Necromancer Necromancer Popular Question javascript Notable Question Popular Question Documentation User Yearling Good Question Famous Question Nice Answer Good Answer Good Question Announcer Yearling,NULL,pNot emquite em the solution was after have preferred global setting but there is now way to filter out requests from extensions href https code google com chromium issues detail id 239401 c11 rel noreferrer as mentioned by commenter on the issue originally opened ppIn the network tab filter box enter the string code scheme chrome extension code as shown below pp img src https stack imgur com caPlI png alt Dev tools filter input screenshot ppThis is case sensitive so make sure it lowercase Doing this will hide all resources which were requested by extensions Do you know solution to make that filter as default behaviour,0,NULL,NULL 55316,150466,530396,NULL,NULL,NULL,0,NULL,NULL 55317,1161572,1516116,Enthusiast Yearling Caucus Popular Question Famous Question Yearling Nice Answer Caucus Popular Question Popular Question Necromancer Civic Duty Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55318,98766,1012225,NULL,NULL,NULL,0,NULL,NULL 55319,97677,977306,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 55320,816727,1520429,Notable Question,NULL,NULL,0,NULL,NULL 55321,471437,569979,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55322,2915350,1422128,NULL,NULL,NULL,0,NULL,NULL 55323,152433,949064,NULL,NULL,NULL,0,NULL,NULL 55324,240877,630923,Student,NULL,NULL,0,NULL,NULL 55325,293269,881100,Nice Answer Good Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 55326,227318,7111,Popular Question Famous Question Famous Question Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55327,244587,321337,Nice Answer Enlightened Yearling Good Answer Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55328,201956,15066,Good Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 55329,475470,937987,Popular Question,NULL,NULL,0,NULL,NULL 55330,97080,1188865,Popular Question,NULL,NULL,0,NULL,NULL 55331,283737,1267574,Good Answer Yearling,NULL,NULL,0,NULL,NULL 55332,768874,1234308,NULL,NULL,NULL,0,NULL,NULL 55333,4067905,1234308,NULL,NULL,NULL,0,NULL,NULL 55334,121347,471701,NULL,NULL,NULL,0,NULL,NULL 55335,146287,471701,NULL,NULL,NULL,0,NULL,NULL 55336,83573,570583,Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55337,88450,749722,Famous Question Yearling,NULL,NULL,0,NULL,NULL 55338,147787,1123654,Revival Explainer Notable Question Nice Question Notable Question Yearling Popular Question Caucus Yearling Announcer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 55339,241766,686918,NULL,NULL,NULL,0,NULL,NULL 55340,448036,1420878,Popular Question,NULL,NULL,0,NULL,NULL 55341,23571,1345376,Nice Question Notable Question Popular Question Famous Question Notable Question Notable Question Nice Question Good Question Famous Question Popular Question Yearling Nice Question Famous Question Popular Question Popular Question Popular Question Nice Question Popular Question Good Question Notable Question Notable Question Good Question Notable Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Famous Question Popular Question Notable Question Nice Question Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 55342,70679,1073412,NULL,NULL,NULL,0,NULL,NULL 55343,299474,1395757,Supporter Editor,NULL,NULL,0,NULL,NULL 55344,298387,332297,Popular Question Commentator Yearling,NULL,NULL,0,NULL,NULL 55345,65780,892113,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 55346,68182,713804,Informed Autobiographer,NULL,NULL,0,NULL,NULL 55347,172381,1212215,NULL,NULL,NULL,0,NULL,NULL 55348,45253,1500376,Teacher Informed,NULL,NULL,0,NULL,NULL 55349,49545,956298,NULL,NULL,NULL,0,NULL,NULL 55350,478028,303169,Yearling Favorite Question Notable Question Popular Question Great Question Self-Learner Yearling Civic Duty Notable Question Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 55351,260289,371663,Popular Question,NULL,NULL,0,NULL,NULL 55352,448092,523327,NULL,NULL,NULL,0,NULL,NULL 55353,287305,860101,NULL,NULL,NULL,0,NULL,NULL 55354,43761,357977,Popular Question Announcer,NULL,NULL,0,NULL,NULL 55355,112645,188588,Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55356,1517733,371207,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55357,101455,987185,Popular Question svg Great Answer Good Answer Nice Answer Self-Learner Nice Answer Enlightened angularjs Nice Question Notable Question Nice Answer Enlightened Pundit Nice Question Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Notable Question Guru Guru Good Answer Nice Answer Enlightened javascript Notable Question Announcer Guru Caucus Nice Answer Popular Question Constituent Announcer Nice Question Custodian Documentation User Famous Question Yearling Nice Answer Enlightened python Popular Question Nice Answer Enlightened Census Caucus Constituent r Nice Answer Enlightened Nice Answer Enlightened Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 55358,208994,1335784,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55359,81886,296677,Yearling Revival Notable Question Notable Question Nice Answer Yearling Peer Pressure Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 55360,48117,256063,Commentator Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 55361,366982,1096747,NULL,NULL,NULL,0,NULL,NULL 55362,826399,1215822,NULL,NULL,NULL,0,NULL,NULL 55363,10003406,505163,Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55364,144977,505163,Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55365,1973045,745427,NULL,NULL,NULL,0,NULL,NULL 55366,164177,1032882,Famous Question Good Question Yearling Quorum Informed Talkative Popular Question,NULL,NULL,0,NULL,NULL 55367,165133,1032882,Famous Question Good Question Yearling Quorum Informed Talkative Popular Question,NULL,NULL,0,NULL,NULL 55368,7214889,1234806,Revival,NULL,NULL,0,NULL,NULL 55369,278009,1057913,NULL,NULL,NULL,0,NULL,NULL 55370,301620,1258572,NULL,NULL,NULL,0,NULL,NULL 55371,140220,631427,NULL,NULL,NULL,0,NULL,NULL 55372,374113,244279,Notable Question Popular Question Notable Question Necromancer Popular Question Notable Question Notable Question Caucus Notable Question Famous Question Yearling Custodian,NULL,NULL,0,NULL,NULL 55373,190700,720098,NULL,NULL,NULL,0,NULL,NULL 55374,373303,337504,Nice Question Popular Question Favorite Question Popular Question Notable Question Famous Question Yearling Notable Question Nice Answer Enlightened Popular Question Nice Answer Caucus Notable Question Nice Question Nice Answer Enlightened Famous Question Good Answer Good Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Answer Yearling Nice Answer Enlightened Popular Question Popular Question Notable Question Custodian Nice Question Caucus Enlightened Popular Question Good Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55375,1063291,261139,Critic Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 55376,108541,194347,Yearling,NULL,NULL,0,NULL,NULL 55377,187454,1214451,NULL,NULL,NULL,0,NULL,NULL 55378,100870,211333,Notable Question Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55379,223086,960702,Nice Answer Yearling Necromancer Yearling Commentator Caucus Constituent Documentation User Necromancer Nice Answer Yearling Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 55380,697808,1300594,Notable Question Yearling Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55381,138729,646217,NULL,NULL,NULL,0,NULL,NULL 55382,171963,133400,Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 55383,308161,1370600,Popular Question Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55384,321471,441503,Necromancer Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 55385,130399,1470898,NULL,NULL,NULL,0,NULL,NULL 55386,445779,512009,Nice Answer Good Answer Yearling Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Custodian Custodian Proofreader Yearling,NULL,NULL,0,NULL,NULL 55387,207421,292973,Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Famous Question Popular Question Self-Learner Notable Question Popular Question Favorite Question Notable Question Popular Question Notable Question Cleanup Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 55388,46793,142758,NULL,NULL,NULL,0,NULL,NULL 55389,309517,1319259,Notable Question,NULL,NULL,0,NULL,NULL 55390,251704,1210379,NULL,NULL,NULL,0,NULL,NULL 55391,326610,639319,NULL,NULL,NULL,0,NULL,NULL 55392,166253,126008,Yearling Necromancer Caucus Yearling Necromancer Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 55393,903811,268672,NULL,NULL,NULL,0,NULL,NULL 55394,12377,851350,Nice Answer Enlightened Yearling Good Answer Caucus Good Answer Populist,NULL,NULL,0,NULL,NULL 55395,409310,299363,Yearling Yearling Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 55396,570243,1311443,NULL,NULL,NULL,0,NULL,NULL 55397,454085,1410016,NULL,NULL,NULL,0,NULL,NULL 55398,385677,1337056,Teacher Supporter Informed,NULL,NULL,0,NULL,NULL 55399,65728,453427,NULL,NULL,NULL,0,NULL,NULL 55400,126003,384147,NULL,NULL,NULL,0,NULL,NULL 55401,1374963,147937,Famous Question Nice Question Yearling Notable Question Good Question Popular Question Popular Question Famous Question Yearling Nice Answer Popular Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55402,448101,595492,NULL,NULL,NULL,0,NULL,NULL 55403,53070,768776,NULL,NULL,NULL,0,NULL,NULL 55404,93027,804509,Yearling Supporter,NULL,NULL,0,NULL,NULL 55405,184456,284906,Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 55406,63957,294360,Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55407,255227,236425,NULL,NULL,NULL,0,NULL,NULL 55408,8550887,464248,Necromancer Yearling Nice Answer Nice Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 55409,977802,464248,Necromancer Yearling Nice Answer Nice Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 55410,3487450,1047234,NULL,NULL,NULL,0,NULL,NULL 55411,183735,530215,NULL,NULL,NULL,0,NULL,NULL 55412,476035,1250418,Popular Question,NULL,NULL,0,NULL,NULL 55413,117739,53702,Great Question Yearling Popular Question Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 55414,118670,1514427,Nice Question Scholar Necromancer Custodian Yearling Notable Question Necromancer Critic Revival Caucus Yearling Necromancer Promoter Benefactor Commentator Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 55415,368430,507448,NULL,NULL,NULL,0,NULL,NULL 55416,26115,109812,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55417,326408,648863,Popular Question,NULL,NULL,0,NULL,NULL 55418,205101,203905,Yearling Nice Answer Notable Question Guru Nice Question Yearling Good Question Guru Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55419,105119,1145361,NULL,NULL,NULL,0,NULL,NULL 55420,136121,406680,NULL,NULL,NULL,0,NULL,NULL 55421,8146,1283952,NULL,NULL,NULL,0,NULL,NULL 55422,704483,410058,Guru Popular Question Revival Nice Answer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 55423,108406,808158,Civic Duty Popular Question Famous Question Census Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 55424,1141752,227267,Popular Question Nice Answer Custodian Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Caucus Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Caucus Guru Good Answer Guru Good Answer Great Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened c# Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer,NULL,NULL,1,NULL,In what is synchronous alternate for HttpClient getStringAsync method net windows pIn winform clicking on button calls this method to download link content as string and then displays string length in textbox This all happens asynchronously Is there way to do this synchronously pYou can make any task block by just taking the code Result code ppre codestring response client GetStringAsync Result code prepHowever if this is running on UI thread you should not do that Blocking on the UI thread is not nice Embrace the asynchronicity 55425,15897,29075,Yearling Popular Question Popular Question Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 55426,2287,595618,NULL,NULL,NULL,0,NULL,NULL 55427,246021,578264,Popular Question Excavator Caucus Constituent Civic Duty Yearling Citizen Patrol Caucus Constituent Popular Question Documentation User Census Caucus Constituent,NULL,NULL,0,NULL,NULL 55428,252780,835866,NULL,NULL,NULL,0,NULL,NULL 55429,275811,1267773,NULL,NULL,NULL,0,NULL,NULL 55430,200202,115070,Popular Question Suffrage Yearling Custodian Vox Populi Tag Editor Electorate Popular Question Necromancer Notable Question Announcer Enthusiast Popular Question Curious,NULL,NULL,0,NULL,NULL 55431,2705794,209064,Popular Question Good Answer Yearling Guru Yearling Custodian Informed Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55432,82157,209064,Popular Question Good Answer Yearling Guru Yearling Custodian Informed Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55433,1567581,1346848,NULL,NULL,NULL,0,NULL,NULL 55434,94289,573297,NULL,NULL,NULL,0,NULL,NULL 55435,741113,207011,Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55436,409554,637404,Nice Answer Yearling Nice Answer Good Answer Nice Answer Popular Question Good Answer Yearling Guru Caucus Popular Question Yearling Caucus Constituent Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55437,3284931,85547,NULL,NULL,NULL,0,NULL,NULL 55438,1154219,677941,NULL,NULL,NULL,0,NULL,NULL 55439,107098,116223,Tumbleweed Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 55440,508226,1254039,NULL,NULL,NULL,0,NULL,NULL 55441,778944,710235,Popular Question Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 55442,173440,67578,NULL,NULL,NULL,0,NULL,NULL 55443,2279480,637152,NULL,NULL,NULL,0,NULL,NULL 55444,120330,566788,NULL,NULL,NULL,0,NULL,NULL 55445,218754,233209,Popular Question,NULL,NULL,0,NULL,NULL 55446,169676,321899,NULL,NULL,NULL,0,NULL,NULL 55447,251330,211621,NULL,NULL,NULL,0,NULL,NULL 55448,1566456,1464986,NULL,NULL,NULL,0,NULL,NULL 55449,62875,7288,Nice Answer Popular Question Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 55450,179737,422277,Yearling Documentation User Great Answer Yearling,NULL,NULL,0,NULL,NULL 55451,44327,454634,Yearling Census,NULL,NULL,0,NULL,NULL 55452,519364,377875,Famous Question Notable Question Nice Question Yearling Informed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55453,279931,544526,NULL,NULL,NULL,0,NULL,NULL 55454,1170550,1179047,Nice Question Famous Question Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55455,156568,306845,Popular Question,NULL,NULL,0,NULL,NULL 55456,133953,215148,Famous Question Notable Question Nice Question Nice Question Nice Question Popular Question Notable Question Inquisitive Yearling Popular Question Custodian Nice Answer Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Yearling Census Nice Question Nice Question Pundit Famous Question Popular Question Custodian Yearling Nice Question,NULL,pSure you can use slice indexing ppre codea list list code prepJust to demonstrate the general algorithm if you were to implement the codemy extend code function in hypothetical custom codelist code class it would look like this ppre codedef my extend self other list index self index index other list code prepBut don actually make that function just use the slice notation when you need to In your example stated only that inserts but does not overwrite For example and will give,0,NULL,NULL 55457,95427,446944,NULL,NULL,NULL,0,NULL,NULL 55458,203193,754836,NULL,NULL,NULL,0,NULL,NULL 55459,5642462,825681,NULL,NULL,NULL,0,NULL,NULL 55460,1582860,825681,NULL,NULL,NULL,0,NULL,NULL 55461,211032,426439,Tumbleweed Yearling Nice Answer Mortarboard Yearling Good Answer Guru Commentator Yearling Great Answer Yearling Yearling Caucus Constituent Excavator Critic Famous Question Necromancer Caucus Yearling Custodian Census Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55462,105179,1011837,NULL,NULL,NULL,0,NULL,NULL 55463,257983,847426,NULL,NULL,NULL,0,NULL,NULL 55464,199193,436167,Popular Question,NULL,NULL,0,NULL,NULL 55465,645414,191150,NULL,NULL,NULL,0,NULL,NULL 55466,186953,197321,Notable Question,NULL,NULL,0,NULL,NULL 55467,538052,650298,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 55468,34561,1390385,Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 55469,43212,524348,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55470,807723,1389337,Yearling Popular Question,NULL,NULL,0,NULL,NULL 55471,239605,15996,Nice Answer Nice Answer Yearling Great Answer Good Answer Yearling Nice Answer Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 55472,115394,962588,NULL,NULL,NULL,0,NULL,NULL 55473,526863,630545,NULL,NULL,NULL,0,NULL,NULL 55474,4381211,443422,Necromancer Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Announcer Yearling Nice Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55475,122501,443422,Necromancer Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Announcer Yearling Nice Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55476,1004552,443422,Necromancer Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Announcer Yearling Nice Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55477,317321,132048,Yearling Caucus Nice Question Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55478,8377932,399540,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 55479,167384,330300,Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 55480,14794,1183146,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 55481,601427,94557,Good Question Popular Question Nice Answer Notable Question Famous Question Nice Question Guru Notable Question Yearling Notable Question Notable Question Popular Question Necromancer Pundit Popular Question Good Question Revival Yearling Nice Answer Disciplined Nice Question Popular Question Civic Duty Yearling Notable Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 55482,154005,1271268,Popular Question,NULL,NULL,0,NULL,NULL 55483,471024,413071,NULL,NULL,NULL,0,NULL,NULL 55484,109245,172953,Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 55485,902678,784379,NULL,NULL,NULL,0,NULL,NULL 55486,7250407,1028681,NULL,NULL,NULL,0,NULL,NULL 55487,174173,1325598,Popular Question,NULL,NULL,0,NULL,NULL 55488,168788,70613,Announcer Yearling Nice Answer Caucus Popular Question Yearling Favorite Question Notable Question c# Nice Question Nice Question Notable Question Documentation User Yearling Popular Question Popular Question Nice Answer Great Question,NULL,NULL,0,NULL,NULL 55489,499319,1162982,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 55490,98893,131378,Nice Answer Good Answer Yearling Civic Duty Excavator Yearling Necromancer Good Answer Investor Altruist Nice Answer Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 55491,85933,327026,Good Question Tag Editor Enlightened Custodian Popular Question gdal Yearling Famous Question Famous Question Notable Question Nice Answer Enlightened Necromancer Famous Question Notable Question Necromancer shapely Announcer Nice Question Nice Answer Enlightened Popular Question Caucus Announcer Famous Question Nice Answer Good Answer numpy Notable Question Necromancer Good Answer Good Answer Announcer Popular Question Nice Answer Notable Question Notable Question Popular Question Notable Question postgresql python Yearling Popular Question Necromancer Popular Question Good Answer Nice Question Nice Answer Enlightened Popular Question postgis Great Answer Nice Answer Caucus Constituent Announcer Necromancer Announcer Nice Answer Good Answer Necromancer Great Answer Popular Question Popular Question Necromancer Popular Question Popular Question Necromancer gis Announcer Census Good Answer Necromancer Announcer Populist Announcer Nice Answer Nice Question Caucus Electorate Popular Question Nice Answer Yearling Notable Question Nice Answer Nice Answer Enlightened Good Question Nice Answer Notable Question Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Taxonomist Notable Question Announcer Announcer Nice Question Nice Answer Enlightened Nice Answer Good Answer,NULL,Calculate distance between two latitude longitude points Haversine formula algorithm math maps latitude longitude haversine pHow do calculate the distance between two points specified by latitude and longitude ppFor clarification like the distance in kilometers the points use the WGS84 system and like to understand the relative accuracies of the approaches available Note that you cannot apply Haversine formula on an ellipsoid of revolution like WGS 84 You can only apply this method on sphere with radius,0,NULL,NULL 55492,486429,1138868,Yearling Popular Question Notable Question Necromancer Critic,NULL,NULL,0,NULL,NULL 55493,26677,737041,Critic,NULL,NULL,0,NULL,NULL 55494,305533,247800,NULL,NULL,NULL,0,NULL,NULL 55495,826725,247800,NULL,NULL,NULL,0,NULL,NULL 55496,165679,703620,NULL,NULL,NULL,0,NULL,NULL 55497,201521,1202001,Announcer Necromancer,NULL,NULL,0,NULL,NULL 55498,35581,1035423,Notable Question,NULL,NULL,0,NULL,NULL 55499,102235,482716,NULL,NULL,NULL,0,NULL,NULL 55500,312395,755528,NULL,NULL,NULL,0,NULL,NULL 55501,818798,566019,NULL,NULL,NULL,0,NULL,NULL 55502,79321,692133,NULL,NULL,NULL,0,NULL,NULL 55503,149267,377593,Yearling Census,NULL,NULL,0,NULL,NULL 55504,6731,738615,Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 55505,508090,1054321,NULL,NULL,NULL,0,NULL,NULL 55506,1105960,1383263,NULL,NULL,NULL,0,NULL,NULL 55507,226350,396492,Census,NULL,NULL,0,NULL,NULL 55508,158308,1099473,Necromancer,NULL,NULL,0,NULL,NULL 55509,1564203,950829,NULL,NULL,NULL,0,NULL,NULL 55510,37187,904794,NULL,NULL,NULL,0,NULL,NULL 55511,88062,383995,Custodian Nice Question Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 55512,81492,1162152,NULL,NULL,NULL,0,NULL,NULL 55513,495192,1011905,NULL,NULL,NULL,0,NULL,NULL 55514,157316,682318,NULL,NULL,NULL,0,NULL,NULL 55515,117035,692020,Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Answer Yearling Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55516,211757,141442,NULL,NULL,NULL,0,NULL,NULL 55517,233815,1282673,NULL,NULL,NULL,0,NULL,NULL 55518,513852,880692,Notable Question,NULL,NULL,0,NULL,NULL 55519,706961,1008384,NULL,NULL,NULL,0,NULL,NULL 55520,579932,794525,NULL,NULL,NULL,0,NULL,NULL 55521,60029,1085457,Critic Popular Question Necromancer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55522,121434,1008614,NULL,NULL,NULL,0,NULL,NULL 55523,2337988,635987,NULL,NULL,NULL,0,NULL,NULL 55524,291393,524496,NULL,NULL,NULL,0,NULL,NULL 55525,1149235,1067433,NULL,NULL,NULL,0,NULL,NULL 55526,421986,267358,Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 55527,101365,891587,Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 55528,173067,543405,Yearling,NULL,NULL,0,NULL,NULL 55529,181862,228510,Famous Question,NULL,NULL,0,NULL,NULL 55530,339716,463613,Famous Question,NULL,NULL,0,NULL,NULL 55531,244324,1024658,Editor,NULL,NULL,0,NULL,NULL 55532,270443,875788,Teacher Popular Question,NULL,NULL,0,NULL,NULL 55533,227090,1079549,NULL,NULL,NULL,0,NULL,NULL 55534,77766,975124,NULL,NULL,NULL,0,NULL,NULL 55535,712411,1028238,NULL,NULL,NULL,0,NULL,NULL 55536,7451,321143,Yearling Caucus Constituent Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 55537,598440,824634,NULL,NULL,NULL,0,NULL,NULL 55538,345024,81754,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 55539,51445,972100,Excavator,NULL,NULL,0,NULL,NULL 55540,587443,230452,Critic Student Good Answer Yearling Custodian Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 55541,71620,844504,NULL,NULL,NULL,0,NULL,NULL 55542,184910,133257,Notable Question,NULL,NULL,0,NULL,NULL 55543,130756,405218,NULL,NULL,NULL,0,NULL,NULL 55544,184882,806938,Famous Question,NULL,NULL,0,NULL,NULL 55545,504226,1082446,Notable Question,NULL,NULL,0,NULL,NULL 55546,313555,70766,Caucus Nice Answer,NULL,NULL,0,NULL,NULL 55547,7988977,133015,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 55548,2631,133015,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 55549,1043934,1502217,NULL,NULL,NULL,0,NULL,NULL 55550,177098,1027689,NULL,NULL,NULL,0,NULL,NULL 55551,66120,884927,NULL,NULL,NULL,0,NULL,NULL 55552,397271,745733,NULL,NULL,NULL,0,NULL,NULL 55553,916294,1402260,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55554,35842,1034300,Yearling Yearling Supporter Yearling Critic Populist Great Answer Yearling,NULL,NULL,0,NULL,NULL 55555,257235,606600,NULL,NULL,NULL,0,NULL,NULL 55556,31378,3624,Favorite Question Notable Question Yearling Great Answer Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 55557,7516537,1114934,Fanatic Popular Question Nice Answer Enlightened Popular Question Caucus Constituent Yearling Notable Question Caucus Nice Answer Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 55558,231127,1114934,Fanatic Popular Question Nice Answer Enlightened Popular Question Caucus Constituent Yearling Notable Question Caucus Nice Answer Documentation User Yearling Necromancer,NULL,NULL,0,NULL,NULL 55559,13141,1427503,NULL,NULL,NULL,0,NULL,NULL 55560,762904,902295,NULL,NULL,NULL,0,NULL,NULL 55561,915233,238395,Excavator Yearling Proofreader Popular Question Necromancer Nice Answer Custodian Necromancer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 55562,33183,1470771,NULL,NULL,NULL,0,NULL,NULL 55563,117591,385505,Popular Question Popular Question Yearling Announcer Famous Question Nice Question Promoter Benefactor Census Nice Question Popular Question Notable Question Census Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55564,499675,306539,NULL,NULL,NULL,0,NULL,NULL 55565,491708,1141172,NULL,NULL,NULL,0,NULL,NULL 55566,910536,59320,NULL,NULL,NULL,0,NULL,NULL 55567,345002,292777,NULL,NULL,NULL,0,NULL,NULL 55568,368963,34400,Yearling Famous Question,NULL,NULL,0,NULL,NULL 55569,1680264,1104154,NULL,NULL,NULL,0,NULL,NULL 55570,614650,410201,Notable Question,NULL,NULL,0,NULL,NULL 55571,318782,463208,Notable Question Autobiographer Custodian Self-Learner Popular Question Popular Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 55572,183567,1323461,Student Commentator Scholar Custodian Enthusiast Critic Necromancer Curious Self-Learner Announcer Yearling Caucus Popular Question Peer Pressure Yearling,NULL,NULL,0,NULL,NULL 55573,190237,411221,NULL,NULL,NULL,0,NULL,NULL 55574,3010960,1091766,Explainer Nice Answer Popular Question Famous Question Popular Question Popular Question Popular Question Caucus Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Announcer Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55575,14028,1091766,Explainer Nice Answer Popular Question Famous Question Popular Question Popular Question Popular Question Caucus Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Announcer Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55576,2147,29262,Nice Answer Necromancer Guru Nice Answer Yearling Notable Question Announcer Nice Answer Nice Answer Enlightened Guru Notable Question Great Question Good Answer Popular Question Yearling Nice Answer Famous Question Popular Question Yearling,NULL,pI always prefer codelet code to an instance variable for couple of reasons pulliInstance variables spring into existence when referenced This means that if you fat finger the spelling of the instance variable new one will be created and initialized to codenil code which can lead to subtle bugs and false positives Since codelet code creates method you ll get codeNameError code when you misspell it which find preferable It makes it easier to refactor specs too liliA codebefore each code hook will run before each example even if the example doesn use any of the instance variables defined in the hook This isn usually big deal but if the setup of the instance variable takes long time then you re wasting cycles For the method defined by codelet code the initialization code only runs if the example calls it liliYou can refactor from local variable in an example directly into let without changing thereferencing syntax in the example If you refactor to an instance variable you have to changehow you reference the object in the example add an code code liliThis is bit subjective but as Mike Lewis pointed out think it makes the spec easier to read like the organization of defining all my dependent objects with codelet code and keeping my codeit code block nice and short li ul you might start by writing one example which has foo Foo new and then users foo on later lines Later you write new example in the same example group that also needs Foo instantiated in the same way At this point you want to refactor to eliminate the duplication You can remove the foo Foo new lines from your examples and replace it with let foo Foo new changing how the examples use foo But if you refactor to before Foo new you also have to update references in the examples from foo to,0,NULL,NULL 55577,51295,38592,Nice Answer Custodian Custodian Citizen Patrol Custodian Guru Yearling Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 55578,84670,171298,NULL,NULL,NULL,0,NULL,NULL 55579,255176,1419822,Yearling Caucus Enthusiast,NULL,NULL,0,NULL,NULL 55580,166741,942074,NULL,NULL,NULL,0,NULL,NULL 55581,444961,1228855,Necromancer,NULL,NULL,0,NULL,NULL 55582,282817,834573,Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 55583,275700,1467959,NULL,NULL,NULL,0,NULL,NULL 55584,709223,742378,NULL,NULL,NULL,0,NULL,NULL 55585,4737263,742378,NULL,NULL,NULL,0,NULL,NULL 55586,3659096,64884,Yearling Famous Question Great Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 55587,143657,1032492,Nice Answer Enlightened Fanatic Nice Answer Nice Answer Nice Answer Nice Answer css Yearling Nice Answer Electorate Nice Answer Revival Good Answer Necromancer Nice Answer Good Answer javascript Necromancer html Announcer Caucus Nice Answer Enlightened Yearling Nice Answer Self-Learner Good Answer Good Answer Good Answer Custodian Custodian Nice Answer Enlightened Guru Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 55588,746021,986003,Yearling Tumbleweed Commentator Nice Answer,NULL,NULL,0,NULL,NULL 55589,2576709,1013897,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 55590,2415,1013897,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 55591,523521,391635,Nice Answer Enlightened Notable Question Famous Question Notable Question Popular Question Yearling Nice Question Yearling Famous Question Popular Question Popular Question Curious Inquisitive Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Famous Question Popular Question Yearling Caucus Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Yearling Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 55592,3627302,612944,Editor Scholar,NULL,NULL,0,NULL,NULL 55593,1777816,612944,Editor Scholar,NULL,NULL,0,NULL,NULL 55594,5111067,612944,Editor Scholar,NULL,NULL,0,NULL,NULL 55595,486301,612944,Editor Scholar,NULL,NULL,0,NULL,NULL 55596,422390,750603,Nice Answer Enlightened Yearling Yearling Guru Yearling Nice Answer list,NULL,NULL,0,NULL,NULL 55597,3406207,836337,Popular Question Caucus,NULL,NULL,0,NULL,NULL 55598,227969,424584,NULL,NULL,NULL,0,NULL,NULL 55599,139076,346775,Editor,NULL,NULL,0,NULL,NULL 55600,131252,1201169,Caucus,NULL,NULL,0,NULL,NULL 55601,46110,336179,NULL,NULL,NULL,0,NULL,NULL 55602,182076,1229772,NULL,NULL,NULL,0,NULL,NULL 55603,28513,263132,Yearling Nice Question Notable Question Popular Question Notable Question Nice Question Notable Question Yearling Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 55604,360829,264045,Editor Student Teacher,NULL,NULL,0,NULL,NULL 55605,261012,1290049,NULL,NULL,NULL,0,NULL,NULL 55606,23398,14920,Yearling Yearling,NULL,NULL,0,NULL,NULL 55607,520485,668850,NULL,NULL,NULL,0,NULL,NULL 55608,12001,638098,NULL,NULL,NULL,0,NULL,NULL 55609,295032,634574,NULL,NULL,NULL,0,NULL,NULL 55610,882164,858948,NULL,NULL,NULL,0,NULL,NULL 55611,893367,1490659,Popular Question,NULL,NULL,0,NULL,NULL 55612,468445,804871,NULL,NULL,NULL,0,NULL,NULL 55613,294284,265712,Yearling Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Yearling Guru symfony php Good Answer Nice Answer Nice Answer Enlightened Great Answer Yearling Notable Question Pundit Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55614,353138,937744,NULL,NULL,NULL,0,NULL,NULL 55615,164834,610796,Yearling Caucus Yearling Good Answer Popular Question Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 55616,2492783,296280,NULL,NULL,NULL,0,NULL,NULL 55617,830772,254574,Famous Question,NULL,NULL,0,NULL,NULL 55618,136198,354138,Popular Question Announcer,NULL,NULL,0,NULL,NULL 55619,302624,997495,NULL,NULL,NULL,0,NULL,NULL 55620,207181,487733,Popular Question Commentator,NULL,NULL,0,NULL,NULL 55621,177068,385637,Notable Question Favorite Question Yearling Notable Question Popular Question Editor Tumbleweed Citizen Patrol Yearling Caucus Famous Question,NULL,Choosing file in Python with simple Dialog python user interface dialog filechooser pI would like to get file path as input in my Python console application ppCurrently can only ask for full path as an input in the console ppIs there way to trigger simple user interface where users can select file instead of typing the full path edited the question to follow rules from help center,0,NULL,NULL 55622,715089,1187117,NULL,NULL,NULL,0,NULL,NULL 55623,191637,639849,Yearling Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 55624,253534,168853,Custodian Popular Question Popular Question Yearling Nice Answer Enlightened Investor Altruist,NULL,NULL,0,NULL,NULL 55625,19838,168311,NULL,NULL,NULL,0,NULL,NULL 55626,1387276,929491,NULL,NULL,NULL,0,NULL,NULL 55627,423588,1308982,NULL,NULL,NULL,0,NULL,NULL 55628,702253,802872,Editor Commentator Informed,NULL,NULL,0,NULL,NULL 55629,1294305,802872,Editor Commentator Informed,NULL,NULL,0,NULL,NULL 55630,302614,569281,NULL,NULL,NULL,0,NULL,NULL 55631,35118,1187272,NULL,NULL,NULL,0,NULL,NULL 55632,79250,513867,NULL,NULL,NULL,0,NULL,NULL 55633,294007,691578,Yearling Good Question Popular Question Custodian Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 55634,125911,1412224,NULL,NULL,NULL,0,NULL,NULL 55635,679420,1163956,NULL,NULL,NULL,0,NULL,NULL 55636,217784,492926,NULL,NULL,NULL,0,NULL,NULL 55637,7825700,1498295,Supporter Editor,NULL,NULL,0,NULL,NULL 55638,249876,1498295,Supporter Editor,NULL,NULL,0,NULL,NULL 55639,49672,728666,NULL,NULL,NULL,0,NULL,NULL 55640,113096,601857,Tumbleweed Critic Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55641,27550,493099,NULL,NULL,NULL,0,NULL,NULL 55642,512511,590594,NULL,NULL,NULL,0,NULL,NULL 55643,242400,884401,Revival Custodian Popular Question Revival,NULL,NULL,0,NULL,NULL 55644,516532,1380171,Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55645,144697,490321,Yearling Popular Question Popular Question Popular Question Popular Question Custodian Informed Custodian Nice Question Yearling Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 55646,195570,1544834,NULL,NULL,NULL,0,NULL,NULL 55647,279080,1097926,Teacher Supporter Necromancer Announcer Nice Answer Necromancer Yearling Nice Answer Critic Tumbleweed Good Answer Yearling Editor Commentator Scholar Student Yearling,NULL,NULL,0,NULL,NULL 55648,253394,855846,Nice Answer Notable Question Yearling Promoter Citizen Patrol Census,NULL,NULL,0,NULL,NULL 55649,931062,975778,NULL,NULL,NULL,0,NULL,NULL 55650,2705875,975778,NULL,NULL,NULL,0,NULL,NULL 55651,169354,1117716,Tag Editor Notable Question Popular Question Notable Question Supporter Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55652,22678,397230,Popular Question Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 55653,376388,1084596,Student,NULL,NULL,0,NULL,NULL 55654,492493,972515,Popular Question Custodian Custodian Citizen Patrol Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 55655,28902,1123423,Revival Custodian Scholar Student Supporter Informed Census,NULL,NULL,0,NULL,NULL 55656,175012,1382165,NULL,NULL,NULL,0,NULL,NULL 55657,1089028,1420279,Necromancer Taxonomist Guru Nice Answer Yearling Necromancer Nice Question bytecode Nice Answer Nice Answer Enlightened Notable Question Necromancer Nice Answer Good Answer Nice Answer Sportsmanship Nice Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Yearling Necromancer Popular Question Necromancer Popular Question Nice Answer Enlightened Electorate Popular Question Notable Question Popular Question Inquisitive Necromancer Good Answer Nice Answer Census Good Answer Nice Answer Enlightened Populist Popular Question Nice Answer Good Answer Nice Answer Enlightened python Revival Famous Question Necromancer Nice Answer Enlightened Yearling Necromancer Great Answer Nice Answer Nice Answer Necromancer java,NULL,pThe best way to avoid having to set codecore autocrlf code separately on each machine seems to be checking code gitattributes code file into the repository containing the single line ppre code text code prepOr if you have an older version of Git then ppre code crlf code prepThis tells Git that for all paths thus the code code end of line normalization should not be attempted As far as can tell this should not have any other side effects In particular it should not alter how diffs are generated this has separate attribute codediff code code diff code or how merges are handled this has separate attribute codemerge code code merge code ppFor more details suggest these resources polliThe gitattributes documentation codegit help attributes code or href https github com gitster git blob master Documentation gitattributes txt rel noreferrer an online copy which describes in detail both how end of line normalization works and the particular effects of different attributes Probably most relevant are codetext code codecrlf code codediff code codemerge code and codebinary code liliGit mailing list thread href http git 661346 n2 nabble com Is the text attribute meant only to specify end of line normalization behavior or does it have broad tp7420001 html rel noreferrer Is the text attribute meant emonly em to specify end of line normalization behavior or does it have broader implications Mar 30 2012 which expands on the meaning of different attributes and clarifies that code text code does not mean simply this is binary file li ol The link in your post is dead Maybe you could use this one instead http git 661346 n2 nabble com Is the quot text quot attribute meant only to specify end of line normalization behavior or does it td7420001 html pYou can do this fairly easily without codegit rebase code or codegit merge squash code In this example we ll squash the last commits ppIf you want to write the new commit message from scratch this suffices ppre codegit reset soft HEAD amp amp git commit code prepIf you want to start editing the new commit message with concatenation of the existing commit messages similar to what pick squash squash squash codegit rebase code instruction list would start you with then you need to extract those messages and pass them to codegit commit code ppre codegit reset soft HEAD amp amp git commit edit git log format reverse HEAD HEAD code prepBoth of those methods squash the last three commits into single new commit in the same way The soft reset just re points HEAD to the last commit that you do not want to squash Neither the index nor the working tree are touched by the soft reset leaving the index in the desired state for your new commit it already has all the changes from the commits that you are about to “throw away” Thank you for providing solution that doesn require manually typing squash fixup for every single commit unlike all the interactive rebase suggestions elsewhere,0,NULL,NULL 55658,720688,813232,Popular Question,NULL,NULL,0,NULL,NULL 55659,595955,604224,NULL,NULL,NULL,0,NULL,NULL 55660,511265,1211246,Popular Question,NULL,NULL,0,NULL,NULL 55661,515037,212676,Proofreader Informed Suffrage Vox Populi Nice Answer Enlightened Student Explainer Scholar Enthusiast Fanatic Yearling Civic Duty Yearling Yearling,NULL,NULL,0,NULL,NULL 55662,1387367,1313356,Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55663,1073311,204777,Yearling Notable Question Curious Notable Question,NULL,NULL,0,NULL,NULL 55664,360821,355146,Supporter Popular Question,NULL,NULL,0,NULL,NULL 55665,596612,1334721,NULL,NULL,NULL,0,NULL,NULL 55666,439890,826070,Teacher Editor Caucus Supporter Caucus,NULL,NULL,0,NULL,NULL 55667,47986,853172,NULL,NULL,NULL,0,NULL,NULL 55668,928399,787859,Popular Question,NULL,NULL,0,NULL,NULL 55669,486827,382508,Yearling Nice Answer Yearling Yearling Curious,NULL,NULL,0,NULL,NULL 55670,17265,382508,Yearling Nice Answer Yearling Yearling Curious,NULL,NULL,0,NULL,NULL 55671,316016,1236727,NULL,NULL,NULL,0,NULL,NULL 55672,336482,404691,Notable Question Yearling Famous Question Favorite Question Notable Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 55673,342204,1121960,NULL,NULL,NULL,0,NULL,NULL 55674,404056,1196771,Yearling Good Question Popular Question Notable Question Nice Question Good Question Nice Answer Enlightened Yearling Nice Answer Popular Question Famous Question Good Answer Popular Question Guru Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 55675,81490,187616,NULL,NULL,NULL,0,NULL,NULL 55676,14614,414282,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55677,70020,1265607,NULL,NULL,NULL,0,NULL,NULL 55678,926655,892101,Nice Answer Yearling Announcer Nice Answer Custodian,NULL,NULL,0,NULL,NULL 55679,53496,881447,Famous Question,NULL,NULL,0,NULL,NULL 55680,6825312,1055498,NULL,NULL,NULL,0,NULL,NULL 55681,101560,902953,NULL,NULL,NULL,0,NULL,NULL 55682,222079,33764,Notable Question Yearling Notable Question Critic Peer Pressure,NULL,NULL,0,NULL,NULL 55683,122353,1498760,Informed,NULL,NULL,0,NULL,NULL 55684,517079,1331997,NULL,NULL,NULL,0,NULL,NULL 55685,68400,1276321,Yearling Custodian Custodian Popular Question Popular Question Yearling Popular Question Yearling Enlightened Popular Question,NULL,NULL,0,NULL,NULL 55686,782491,187823,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55687,222742,743536,NULL,NULL,NULL,0,NULL,NULL 55688,865361,1144795,NULL,NULL,NULL,0,NULL,NULL 55689,1621921,544745,NULL,NULL,NULL,0,NULL,NULL 55690,437170,1044374,Nice Answer Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 55691,83250,167519,Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Great Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55692,734918,1435445,NULL,NULL,NULL,0,NULL,NULL 55693,116518,1236710,Yearling Good Answer,NULL,NULL,0,NULL,NULL 55694,186934,355567,Popular Question Popular Question Popular Question Good Question Nice Question Popular Question Good Question Good Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Nice Question Revival Good Question Popular Question Necromancer Yearling Investor Famous Question Notable Question Notable Question Popular Question Nice Question Guru Famous Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Documentation User Popular Question Notable Question Popular Question Nice Question Announcer Popular Question Notable Question Popular Question Nice Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 55695,625480,1014428,NULL,NULL,NULL,0,NULL,NULL 55696,25496,280779,NULL,NULL,NULL,0,NULL,NULL 55697,61886,145403,Guru Good Answer Guru Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Autobiographer Nice Answer Enlightened Caucus Constituent Nice Answer Guru Good Answer Good Answer Guru Nice Answer Revival Nice Answer Nice Answer mysql Nice Answer Nice Answer Nice Answer Nice Answer Caucus Good Answer Yearling Good Answer Good Answer Nice Answer Nice Answer Great Answer Guru Nice Answer Enlightened Nice Answer macos macos macos Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Guru,NULL,pUPDATED One way is to look at codesys maxsize code as documented href http docs python org library platform html cross platform rel noreferrer here ppre code python 32 import sys print sys maxsize sys maxsize gt 32 7fffffff False python 64 import sys print sys maxsize sys maxsize gt 32 7fffffffffffffff True code prep codesys maxsize code was introduced in Python If you need test for older systems this slightly more complicated test should work on all Python and releases ppre code python 32 import struct print struct calcsize 32 python 64 import struct print struct calcsize 64 code prepBTW you might be tempted to use codeplatform architecture code for this Unfortunately its results are not always reliable href http docs python org library platform html platform architecture rel noreferrer particularly in the case of OS universal binaries ppre code arch x86 64 usr bin python2 import sys platform print platform architecture sys maxsize gt 32 64bit True arch i386 usr bin python2 import sys platform print platform architecture sys maxsize gt 32 64bit False code pre no sys version is not sufficient It shows the compiler used to build Python but generally does not show the running architecture For example with OS universal fat binaries sys version is identical for all architectures 32 bit 64 bit in the same file,0,NULL,NULL 55698,2853042,145403,Guru Good Answer Guru Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Autobiographer Nice Answer Enlightened Caucus Constituent Nice Answer Guru Good Answer Good Answer Guru Nice Answer Revival Nice Answer Nice Answer mysql Nice Answer Nice Answer Nice Answer Nice Answer Caucus Good Answer Yearling Good Answer Good Answer Nice Answer Nice Answer Great Answer Guru Nice Answer Enlightened Nice Answer macos macos macos Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Guru,NULL,pUPDATED One way is to look at codesys maxsize code as documented href http docs python org library platform html cross platform rel noreferrer here ppre code python 32 import sys print sys maxsize sys maxsize gt 32 7fffffff False python 64 import sys print sys maxsize sys maxsize gt 32 7fffffffffffffff True code prep codesys maxsize code was introduced in Python If you need test for older systems this slightly more complicated test should work on all Python and releases ppre code python 32 import struct print struct calcsize 32 python 64 import struct print struct calcsize 64 code prepBTW you might be tempted to use codeplatform architecture code for this Unfortunately its results are not always reliable href http docs python org library platform html platform architecture rel noreferrer particularly in the case of OS universal binaries ppre code arch x86 64 usr bin python2 import sys platform print platform architecture sys maxsize gt 32 64bit True arch i386 usr bin python2 import sys platform print platform architecture sys maxsize gt 32 64bit False code pre no sys version is not sufficient It shows the compiler used to build Python but generally does not show the running architecture For example with OS universal fat binaries sys version is identical for all architectures 32 bit 64 bit in the same file,0,NULL,NULL 55699,733393,342552,NULL,NULL,NULL,0,NULL,NULL 55700,975879,879522,NULL,NULL,NULL,0,NULL,NULL 55701,3695380,233535,Yearling Commentator Necromancer Custodian Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 55702,2233869,964131,NULL,NULL,NULL,0,NULL,NULL 55703,409048,964131,NULL,NULL,NULL,0,NULL,NULL 55704,670958,247621,Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 55705,201829,217959,Popular Question Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 55706,323700,865693,Guru Yearling Popular Question Popular Question Famous Question Yearling Good Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 55707,605331,23094,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 55708,9269,374316,Revival Census,NULL,NULL,0,NULL,NULL 55709,79188,1327004,Revival,NULL,NULL,0,NULL,NULL 55710,27461,11205,NULL,NULL,NULL,0,NULL,NULL 55711,9611305,1261758,NULL,NULL,NULL,0,NULL,NULL 55712,769270,1060556,NULL,NULL,NULL,0,NULL,NULL 55713,740216,458733,Informed,NULL,NULL,0,NULL,NULL 55714,1092569,557253,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55715,52882,314970,Good Answer Commentator Popular Question Yearling Guru Nice Question Notable Question,NULL,NULL,0,NULL,NULL 55716,21519,947224,Popular Question,NULL,NULL,0,NULL,NULL 55717,107146,768510,Necromancer Revival Yearling Nice Answer Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 55718,917518,873398,Popular Question Nice Answer Enlightened Good Answer Popular Question Good Answer Yearling Tumbleweed Nice Answer Enlightened Popular Question Popular Question Guru Caucus Yearling Promoter Nice Question Benefactor Self-Learner Popular Question Notable Question Nice Answer Caucus Custodian Notable Question Good Question Yearling Guru Notable Question,NULL,NULL,0,NULL,NULL 55719,175796,1376657,Yearling Caucus Nice Answer Enlightened Nice Answer Quorum Yearling Notable Question Caucus Constituent Great Answer Yearling,NULL,NULL,0,NULL,NULL 55720,2369932,139264,NULL,NULL,NULL,0,NULL,NULL 55721,1340634,1261213,Supporter Teacher Editor Scholar Popular Question,NULL,NULL,0,NULL,NULL 55722,473725,100429,NULL,NULL,NULL,0,NULL,NULL 55723,1566,294313,Guru Yearling Revival Nice Answer Enlightened Steward Nice Question Popular Question Yearling Necromancer Documentation User Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 55724,33537,10873,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55725,92632,691846,NULL,NULL,NULL,0,NULL,NULL 55726,532609,691846,NULL,NULL,NULL,0,NULL,NULL 55727,23545,333643,Necromancer Yearling Nice Answer Announcer Announcer Yearling Revival Necromancer Student Nice Answer Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 55728,1347571,988821,NULL,NULL,NULL,0,NULL,NULL 55729,199143,187903,NULL,NULL,NULL,0,NULL,NULL 55730,12323,1355314,NULL,NULL,NULL,0,NULL,NULL 55731,395291,1127981,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 55732,445180,615624,NULL,NULL,NULL,0,NULL,NULL 55733,208889,535025,Yearling Citizen Patrol Critic Documentation User Commentator Informed Autobiographer,NULL,NULL,0,NULL,NULL 55734,284294,1297666,Notable Question Yearling Notable Question Popular Question Talkative Popular Question Notable Question Nice Answer Custodian Popular Question,NULL,NULL,0,NULL,NULL 55735,162407,675235,NULL,NULL,NULL,0,NULL,NULL 55736,427518,1452484,NULL,NULL,NULL,0,NULL,NULL 55737,224491,80221,Revival Yearling Nice Answer Yearling Tenacious Nice Answer Yearling,NULL,NULL,0,NULL,NULL 55738,87092,1109777,NULL,NULL,NULL,0,NULL,NULL 55739,618840,740649,NULL,NULL,NULL,0,NULL,NULL 55740,211821,1343619,NULL,NULL,NULL,0,NULL,NULL 55741,726589,1451375,Good Question,NULL,NULL,0,NULL,NULL 55742,23254,1423359,Teacher Supporter Informed Autobiographer Critic Commentator Yearling,NULL,NULL,0,NULL,NULL 55743,404092,539030,Popular Question,NULL,NULL,0,NULL,NULL 55744,616051,965030,NULL,NULL,NULL,0,NULL,NULL 55745,219414,1478027,Caucus Popular Question Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 55746,122461,540465,Nice Answer,NULL,NULL,0,NULL,NULL 55747,193700,1046276,Teacher,NULL,NULL,0,NULL,NULL 55748,129043,492620,Benefactor Popular Question Popular Question Nice Answer Popular Question Favorite Question Notable Question Good Answer Peer Pressure Taxonomist Nice Question Revival Nice Question Famous Question Famous Question Famous Question Great Question Popular Question Nice Question Good Question Popular Question Nice Answer Necromancer Notable Question Yearling Revival Caucus Constituent Nice Question Necromancer Notable Question Nice Question Popular Question Notable Question Nice Answer Popular Question Popular Question Notable Question Revival Popular Question python Good Answer Popular Question Nice Question Popular Question Announcer Nice Answer Nice Answer Notable Question Notable Question Notable Question Necromancer Famous Question Good Question Documentation User Nice Answer Enlightened Good Answer Notable Question Yearling Popular Question Popular Question Popular Question Revival Notable Question Steward Popular Question Census Popular Question Nice Answer Popular Question Nice Answer Nice Question Caucus Nice Answer Enlightened Nice Question Famous Question Notable Question Famous Question Popular Question Necromancer Good Answer Notable Question Famous Question Popular Question Notable Question Popular Question Necromancer Popular Question Nice Answer Famous Question Good Answer Popular Question Yearling Nice Answer Enlightened Popular Question Necromancer,NULL,pThe correct way to do it would be to override the codeinstall code command here is how to do it ppFirst in the beginning of your codesetup py code add the following imports ppre codefrom setuptools command install import installfrom distutils import log needed for outputting information messages code prepThen you need to create callable command class here is an example where create command class that installs script and makes sure that it only executable for coderoot code The are other ways to that in python For example you can always exit the script if you UID is not am also using another import here ppre codefrom setuptools command install scripts import install scriptsclass OverrideInstall install def run self uid gid mode 0700 install run self calling install run self insures that everything that happened previously still happens so the installation does not break here we start with doing our overriding and private magic for filepath in self get outputs if self install scripts in filepath log info Overriding setuptools mode of scripts log info Changing ownership of to uid gid filepath uid gid os chown filepath uid gid log info Changing permissions of to filepath oct mode os chmod filepath mode code prepNow the class is created notify the installer that upon seeing codeinstall code in the command line this class should be invoked ppre codesetup keep all the previous keywords you had add cmdclass install OverrideInstall code prepI hope this answer helps as the code shows it will first run the usual install process and then change the permissions,0,NULL,NULL 55749,1353540,1303311,NULL,NULL,NULL,0,NULL,NULL 55750,625899,867482,Famous Question,NULL,NULL,0,NULL,NULL 55751,574338,1317659,NULL,NULL,NULL,0,NULL,NULL 55752,68939,234606,Notable Question Notable Question Nice Question Popular Question Nice Answer javascript Notable Question Good Answer Good Answer Yearling Nice Question Announcer Yearling Good Question Populist,NULL,NULL,0,NULL,NULL 55753,346653,57868,Yearling Self-Learner Good Answer Yearling Guru Notable Question Nice Answer Nice Answer Enlightened Popular Question Yearling Populist,NULL,NULL,0,NULL,NULL 55754,2001180,508434,NULL,NULL,NULL,0,NULL,NULL 55755,7509134,902014,NULL,NULL,NULL,0,NULL,NULL 55756,798894,1173267,Popular Question,NULL,NULL,0,NULL,NULL 55757,480459,1131301,Yearling Popular Question,NULL,NULL,0,NULL,NULL 55758,519898,187949,Popular Question Popular Question Popular Question Yearling Custodian Notable Question Popular Question Notable Question Popular Question Good Answer Yearling Enthusiast,NULL,NULL,0,NULL,NULL 55759,735084,1246356,Nice Question Famous Question Popular Question Yearling Popular Question Notable Question Nice Answer Nice Question Famous Question Famous Question Popular Question Popular Question Famous Question Yearling Good Question Notable Question Famous Question Famous Question Famous Question Notable Question Custodian Citizen Patrol Caucus Constituent Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 55760,80552,943672,NULL,NULL,NULL,0,NULL,NULL 55761,197391,684976,NULL,NULL,NULL,0,NULL,NULL 55762,318509,880430,Popular Question Nice Answer Yearling Announcer Good Answer Commentator Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 55763,652385,563719,NULL,NULL,NULL,0,NULL,NULL 55764,94569,918867,Tumbleweed Editor Autobiographer Commentator Revival Yearling Nice Answer Yearling Critic Yearling Good Answer,NULL,NULL,0,NULL,NULL 55765,16601,1249454,Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 55766,821661,806330,NULL,NULL,NULL,0,NULL,NULL 55767,201711,184136,NULL,NULL,NULL,0,NULL,NULL 55768,8049,1420314,NULL,NULL,NULL,0,NULL,NULL 55769,292724,1204835,NULL,NULL,NULL,0,NULL,NULL 55770,82302,958958,NULL,NULL,NULL,0,NULL,NULL 55771,539240,928035,NULL,NULL,NULL,0,NULL,NULL 55772,526448,1300700,Yearling Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 55773,258333,316723,Custodian Custodian Explainer Proofreader Reviewer Yearling Custodian Organizer Nice Answer Nice Answer Caucus Steward Nice Answer Yearling Caucus Documentation User Student Census Revival Necromancer Tumbleweed Civic Duty Suffrage Scholar Enthusiast Revival Electorate Curious Yearling Necromancer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 55774,154696,240830,Good Answer Yearling,NULL,,0,, 55775,450465,941005,NULL,NULL,NULL,0,NULL,NULL 55776,106008,605189,NULL,NULL,NULL,0,NULL,NULL 55777,1705363,1189053,Supporter Student Custodian,NULL,NULL,0,NULL,NULL 55778,18731,1194376,NULL,NULL,NULL,0,NULL,NULL 55779,2881130,841271,NULL,NULL,NULL,0,NULL,NULL 55780,350212,1049686,Popular Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55781,9255104,420850,NULL,NULL,NULL,0,NULL,NULL 55782,82348,1083546,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 55783,60173,613473,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 55784,318184,540092,NULL,NULL,NULL,0,NULL,NULL 55785,1156821,786473,NULL,NULL,NULL,0,NULL,NULL 55786,256335,734592,Supporter,NULL,NULL,0,NULL,NULL 55787,7517922,991295,Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 55788,295507,991295,Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 55789,27447,46758,NULL,NULL,NULL,0,NULL,NULL 55790,81550,448640,Tumbleweed Yearling Critic Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 55791,1803040,903879,NULL,NULL,NULL,0,NULL,NULL 55792,5446,818335,NULL,NULL,NULL,0,NULL,NULL 55793,207270,507641,Curious Announcer,NULL,NULL,0,NULL,NULL 55794,270337,963744,Famous Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 55795,1554841,851192,Popular Question Revival Self-Learner Popular Question Popular Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 55796,812847,1122106,Custodian,NULL,NULL,0,NULL,NULL 55797,15443,686087,NULL,NULL,NULL,0,NULL,NULL 55798,161141,462117,Good Answer Guru Yearling Custodian Nice Answer Yearling Documentation User Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Electorate Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 55799,1519461,472563,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 55800,42884,965757,Critic Yearling Popular Question Popular Question Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 55801,447491,923580,NULL,NULL,NULL,0,NULL,NULL 55802,246199,737320,NULL,NULL,NULL,0,NULL,NULL 55803,1518709,535067,NULL,NULL,NULL,0,NULL,NULL 55804,319906,815323,NULL,NULL,NULL,0,NULL,NULL 55805,585995,1533651,Student,NULL,NULL,0,NULL,NULL 55806,76464,350506,NULL,NULL,NULL,0,NULL,NULL 55807,743398,754207,NULL,NULL,NULL,0,NULL,NULL 55808,72830,843698,NULL,NULL,NULL,0,NULL,NULL 55809,187313,341772,Revival Nice Answer Enlightened Nice Question Yearling Good Answer Tumbleweed Necromancer Popular Question Yearling Caucus Announcer Good Question Yearling Nice Answer Documentation User Popular Question Custodian Organizer Yearling Necromancer,NULL,NULL,1,Available GDAX Order Statuses and Meanings gdax api pThe href https docs gdax com rel noreferrer GDAX API docs don do great job of enumerating the available statuses that an order can have see at least codeopen code codepending code codeactive code codedone code and maybe codesettled code Has anyone determined comprehensive list and what each status means ppI ve also tried looking at some of the libraries available but the official clients are all weakly typed Node Ruby and among the unofficial clients the href https github com irufus gdax java blob e8444755084f11e5a5ecb2231450a2260e507232 src main java com coinbase exchange api orders Order java L20 rel noreferrer Java client uses strings the href https github com luqmana gdax client blob 354e2aa2d08efdb3caacd81e95299dd6a42c92e7 src private mod rs L315 rel noreferrer Rust client uses strings and the href https github com AndrewRademacher coinbase exchange blob 77945f2dddb1699927c354dfd221f366289ea19c src Coinbase Exchange Types Core hs L105 L109 rel noreferrer Haskell client emdoes em enumerate the types but they re also undocumented pp codesettled code is probably its own field actually,NULL 55810,885346,985286,Popular Question Revival Popular Question Popular Question Nice Question Notable Question Notable Question Self-Learner Popular Question Popular Question,NULL,pThere’s nice approach to this problem that uses vector cross products Define the dimensional vector cross product strongv strong strongw strong to be strongv strong subx sub strongw strong suby sub strongv strong suby sub strongw strong subx sub ppSuppose the two line segments run from strongp strong to strongp strong strongr strong and from strongq strong to strongq strong strongs strong Then any point on the first line is representable as strongp strong emt em strongr strong for scalar parameter emt em and any point on the second line as strongq strong emu em strongs strong for scalar parameter emu em pp img src https stack imgur com vD4g5 png alt Two line segments intersecting ppThe two lines intersect if we can find emt em and emu em such that pblockquote strongp strong emt em strongr strong strongq strong emu em strongs strong blockquotep img src https stack imgur com EQRWj png alt Formulae for the point of intersection ppCross both sides with strongs strong getting pblockquote strongp strong emt em strongr strong strongs strong strongq strong emu em strongs strong strongs strong blockquotepAnd since strongs strong strongs strong this means pblockquote emt em strongr strong strongs strong strongq strong strongp strong strongs strong blockquotepAnd therefore solving for emt em pblockquote emt em strongq strong strongp strong strongs strong strongr strong strongs strong blockquotepIn the same way we can solve for emu em pblockquote strongp strong emt em strongr strong strongr strong strongq strong emu em strongs strong strongr strong emu em strongs strong strongr strong strongp strong strongq strong strongr strong emu em strongp strong strongq strong strongr strong strongs strong strongr strong blockquotepTo reduce the number of computation steps it convenient to rewrite this as follows remembering that strongs strong strongr strong strongr strong strongs strong pblockquote emu em strongq strong strongp strong strongr strong strongr strong strongs strong blockquotepNow there are four cases polli pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are collinear ppIn this case express the endpoints of the second segment strongq strong and strongq strong strongs strong in terms of the equation of the first line segment strongp strong emt em strongr strong pblockquote emt em sub0 sub strongq strong strongp strong strongr strong strongr strong strongr strong emt em sub1 sub strongq strong strongs strong strongp strong strongr strong strongr strong strongr strong emt em sub0 sub strongs strong strongr strong strongr strong strongr strong blockquotepIf the interval between emt em sub0 sub and emt em sub1 sub intersects the interval then the line segments are collinear and overlapping otherwise they are collinear and disjoint ppNote that if strongs strong and strongr strong point in opposite directions then strongs strong strongr strong lt and so the interval to be checked is emt em sub1 sub emt em sub0 sub rather than emt em sub0 sub emt em sub1 sub lili pIf strongr strong strongs strong and strongq strong strongp strong strongr strong then the two lines are parallel and non intersecting lili pIf strongr strong strongs strong and emt em and emu em the two line segments meet at the point strongp strong emt em strongr strong strongq strong emu em strongs strong lili pOtherwise the two line segments are not parallel but do not intersect li olpCredit this method is the dimensional specialization of the 3D line intersection algorithm from the article Intersection of two lines in three space by Ronald Goldman published in emGraphics Gems em page 304 In three dimensions the usual case is that the lines are skew neither parallel nor intersecting in which case the method gives the points of closest approach of the two lines Very interesting approach Thank you for the detailed description,0,NULL,NULL 55811,161189,693139,NULL,NULL,NULL,0,NULL,NULL 55812,81976,723792,NULL,NULL,NULL,0,NULL,NULL 55813,6256043,1153098,NULL,NULL,NULL,0,NULL,NULL 55814,2248868,1153098,NULL,NULL,NULL,0,NULL,NULL 55815,296866,1153098,NULL,NULL,NULL,0,NULL,NULL 55816,28528,1018428,Good Answer Supporter Editor Revival Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 55817,208168,357452,Good Answer Nice Question Notable Question Notable Question Necromancer jquery Yearling Necromancer Nice Question Nice Question Notable Question Notable Question Nice Answer Popular Question Census Custodian Yearling Notable Question Nice Question Good Question Custodian Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 55818,187788,647030,NULL,NULL,NULL,0,NULL,NULL 55819,551333,190573,Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 55820,389612,713609,NULL,NULL,NULL,0,NULL,NULL 55821,301340,827407,NULL,NULL,NULL,0,NULL,NULL 55822,148611,1046616,NULL,NULL,NULL,0,NULL,NULL 55823,48474,494509,NULL,NULL,NULL,0,NULL,NULL 55824,358981,1349100,Teacher,NULL,NULL,0,NULL,NULL 55825,389063,1156924,NULL,NULL,NULL,0,NULL,NULL 55826,398405,1117630,Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55827,385745,378551,NULL,NULL,NULL,0,NULL,NULL 55828,3044941,208837,Yearling,NULL,NULL,0,NULL,NULL 55829,5593635,365388,NULL,NULL,NULL,0,NULL,NULL 55830,48664,365388,NULL,NULL,NULL,0,NULL,NULL 55831,493897,879648,Popular Question,NULL,NULL,0,NULL,NULL 55832,203117,208623,Popular Question Guru Popular Question Popular Question Good Answer Yearling Nice Question Good Question Popular Question Custodian Reviewer Custodian Popular Question Notable Question Great Answer Notable Question Taxonomist Nice Question Yearling Census Custodian Popular Question Guru Nice Question Notable Question Not a Robot Popular Question Stellar Question Announcer Yearling,NULL,Query string encoding of Javascript Object javascript query string urlencode pDo you know fast and simple way to encode Javascript Object into codestring code that can pass via codeGET code Request ppNo codejQuery code no other frameworks just plain Javascript because at the time was working on project for an IPTV set top box device and no external libraries were allowed,0,NULL,NULL 55833,2165210,1094105,NULL,NULL,NULL,0,NULL,NULL 55834,243471,946478,Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Great Question Nice Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 55835,268196,1188760,Yearling Notable Question Famous Question Favorite Question Good Answer Yearling Popular Question Notable Question Notable Question Popular Question Necromancer Good Answer Popular Question Notable Question Popular Question Good Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 55836,525651,184491,Self-Learner Famous Question Notable Question Yearling Famous Question Popular Question Good Question Famous Question Yearling Popular Question Famous Question Popular Question Notable Question Yearling Favorite Question Nice Question,NULL,NULL,0,NULL,NULL 55837,331004,210613,Necromancer Popular Question Popular Question Necromancer Nice Answer Enlightened Necromancer Great Answer Good Answer Good Answer Good Answer Revival Nice Answer Yearling Enlightened Nice Answer Revival Nice Question Guru Notable Question Necromancer Notable Question Good Answer Yearling Nice Answer Revival Nice Answer Enlightened Necromancer Nice Answer Guru Nice Answer Nice Answer Nice Answer Necromancer Guru Yearling,NULL,Why do many Unix programs use signals like USR1 linux unix nginx signals pMany Unix programs accept signals like codeUSR1 code and codeUSR2 code For example to upgrade the executable for Nginx on the fly you send codekill USR2 code ppI understand that codeUSR1 code is user defined signal meaning that whoever created the program can use it to mean shut down or dump your logs or print foo thousand times or whatever But don understand why they must use this arbitrary name Why not codekill UPGRADE code or codekill GRACEFUL SHUTDOWN code Does Unix only allow specific signals ppWhile we re at it Nginx also uses the following signals see href http wiki nginx org CommandLine rel noreferrer documentation pulli strongTERM INT strong Quick shutdown lili strongQUIT strong Graceful shutdown lili strongHUP strong ulliConfiguration reload liliStart the new worker processes with new configuration liliGracefully shutdown the old worker processes li ul lili strongUSR1 strong Reopen the log files lili strongUSR2 strong Upgrade Executable on the fly lili strongWINCH strong Gracefully shutdown the worker processes li ulpHUP WINCH What the reason for these names Where can learn more about this Apropos of nothing It interesting that nginx uses QUIT for graceful shutdown It traditionally similar to TERM dump core TERM is capable of graceful shutdown It all depends on how you handle signals but it weird when developers go off the beaten path,0,NULL,NULL 55838,3505594,635115,NULL,NULL,NULL,0,NULL,NULL 55839,222483,700426,NULL,NULL,NULL,0,NULL,NULL 55840,269889,549895,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55841,223339,148082,Popular Question,NULL,NULL,0,NULL,NULL 55842,164201,472869,Custodian Popular Question Nice Answer Yearling Good Answer Famous Question Popular Question Popular Question Famous Question Yearling Nice Question Guru Yearling,NULL,NULL,0,NULL,NULL 55843,230051,691288,Popular Question Popular Question Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 55844,643183,1034634,NULL,NULL,NULL,0,NULL,NULL 55845,378562,662492,Informed Autobiographer Tumbleweed Supporter Popular Question,NULL,NULL,0,NULL,NULL 55846,710156,633078,NULL,NULL,NULL,0,NULL,NULL 55847,641017,1061608,Famous Question Necromancer Supporter,NULL,NULL,0,NULL,NULL 55848,8238,149389,Yearling Custodian Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 55849,157680,149389,Yearling Custodian Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 55850,350608,444721,Nice Answer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 55851,156071,350267,NULL,NULL,NULL,0,NULL,NULL 55852,46053,767174,Curious Yearling Famous Question,NULL,NULL,0,NULL,NULL 55853,447483,1342139,NULL,NULL,NULL,0,NULL,NULL 55854,548223,42227,Yearling Popular Question Guru Nice Answer Enlightened Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 55855,230033,950094,Popular Question,NULL,NULL,0,NULL,NULL 55856,530221,223543,Autobiographer Editor,NULL,NULL,0,NULL,NULL 55857,3064973,259972,Peer Pressure Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 55858,268132,518301,Citizen Patrol,NULL,NULL,0,NULL,NULL 55859,1554780,223880,Nice Answer Guru Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Yearling Nice Answer Nice Answer Great Answer Popular Question c++ Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 55860,84566,224529,NULL,NULL,NULL,0,NULL,NULL 55861,21046,468027,Explainer Revival Necromancer Nice Answer Enlightened php Electorate Excavator Announcer Good Answer Yearling Caucus Nice Answer Revival Revival Caucus Guru Nice Answer Revival Yearling Nice Answer Enlightened Nice Answer Enlightened Census Caucus Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55862,640368,1046727,NULL,NULL,NULL,0,NULL,NULL 55863,384466,1273353,Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 55864,746064,126482,Yearling,NULL,NULL,0,NULL,NULL 55865,93023,719238,Necromancer Yearling,NULL,NULL,0,NULL,NULL 55866,137538,1468265,NULL,NULL,NULL,0,NULL,NULL 55867,98828,4187,Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 55868,157059,905076,Custodian Commentator Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 55869,134539,847057,Student,NULL,NULL,0,NULL,NULL 55870,100732,68499,Popular Question Announcer Yearling Notable Question Necromancer Notable Question Great Answer Good Question Notable Question Nice Answer Popular Question Nice Answer Explainer Notable Question Nice Answer Enlightened Good Answer csvhelper Announcer Populist Popular Question Necromancer Yearling Necromancer Necromancer Organizer Nice Answer Nice Answer Enlightened Great Question Popular Question Nice Answer Nice Answer Necromancer Census Yearling Popular Question Necromancer Nice Answer Nice Answer .net Notable Question Necromancer Nice Answer Revival Nice Answer Good Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 55871,251529,743522,Famous Question Yearling Announcer Yearling Notable Question Yearling Investor,NULL,NULL,0,NULL,NULL 55872,514093,737276,NULL,NULL,NULL,0,NULL,NULL 55873,101000,200486,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55874,141149,1368022,NULL,NULL,NULL,0,NULL,NULL 55875,31122,788474,NULL,NULL,NULL,0,NULL,NULL 55876,187019,77298,Popular Question Popular Question Popular Question Revival Notable Question Nice Question Yearling Good Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 55877,8649,691095,NULL,NULL,NULL,0,NULL,NULL 55878,209523,761889,Yearling Caucus Nice Answer Enlightened Yearling Caucus Yearling Caucus Constituent Cleanup Custodian Custodian,NULL,NULL,0,NULL,NULL 55879,372837,1409370,NULL,NULL,NULL,0,NULL,NULL 55880,21516,317008,Good Answer,NULL,NULL,0,NULL,NULL 55881,902739,1238588,NULL,NULL,NULL,0,NULL,NULL 55882,2268964,569328,NULL,NULL,NULL,0,NULL,NULL 55883,207570,569328,NULL,NULL,NULL,0,NULL,NULL 55884,253190,569328,NULL,NULL,NULL,0,NULL,NULL 55885,265317,590409,NULL,NULL,NULL,0,NULL,NULL 55886,179734,282738,NULL,NULL,NULL,0,NULL,NULL 55887,202974,1277065,Populist Notable Question Yearling Editor Curious Critic Custodian Self-Learner Revival Popular Question Popular Question Nice Question Famous Question Yearling Popular Question Necromancer Revival Notable Question Nice Answer Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 55888,259745,739755,Popular Question Popular Question Yearling Notable Question Nice Question Inquisitive Popular Question Popular Question Civic Duty Notable Question Notable Question Nice Question Documentation User Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55889,6861687,139942,Yearling Necromancer Caucus Yearling Great Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 55890,48787,636815,NULL,NULL,NULL,0,NULL,NULL 55891,680345,906391,Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 55892,173785,1004752,Famous Question Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 55893,1091129,463680,Popular Question Nice Answer Nice Answer Yearling Good Answer Caucus Nice Answer cmake Caucus Constituent Yearling Good Answer c++ Yearling Guru,NULL,NULL,0,NULL,NULL 55894,249341,473479,Popular Question Yearling Notable Question Curious,NULL,NULL,0,NULL,NULL 55895,1531511,414493,NULL,NULL,NULL,0,NULL,NULL 55896,14757,852152,Census Census,NULL,NULL,0,NULL,NULL 55897,97068,464500,NULL,NULL,NULL,0,NULL,NULL 55898,161889,464500,NULL,NULL,NULL,0,NULL,NULL 55899,208673,851985,Popular Question Yearling Popular Question Yearling Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 55900,85261,275673,NULL,NULL,NULL,0,NULL,NULL 55901,421,1063,Famous Question Popular Question Yearling Famous Question Good Question Popular Question Notable Question Yearling Custodian Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55902,168286,376704,NULL,NULL,NULL,0,NULL,NULL 55903,181084,217015,NULL,NULL,NULL,0,NULL,NULL 55904,1553547,1407755,Popular Question Good Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55905,284596,875237,NULL,NULL,NULL,0,NULL,NULL 55906,587958,875237,NULL,NULL,NULL,0,NULL,NULL 55907,62509,1294719,NULL,NULL,NULL,0,NULL,NULL 55908,1257270,791956,NULL,NULL,NULL,0,NULL,NULL 55909,226572,511809,Yearling Necromancer Announcer Revival Yearling Revival Necromancer Nice Answer Nice Answer Necromancer Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 55910,44577,955004,Supporter,NULL,NULL,0,NULL,NULL 55911,529721,1116734,Critic Yearling Yearling Caucus Great Question,NULL,NULL,0,NULL,NULL 55912,104742,506647,NULL,NULL,NULL,0,NULL,NULL 55913,884447,1420932,NULL,NULL,NULL,0,NULL,NULL 55914,367684,1144293,NULL,NULL,NULL,0,NULL,NULL 55915,75089,405806,Revival Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55916,14854,236284,Nice Answer Enlightened Good Answer Good Answer Scholar Yearling Guru Yearling Guru,NULL,NULL,0,NULL,NULL 55917,881602,1202944,NULL,NULL,NULL,0,NULL,NULL 55918,34806,789585,Teacher,NULL,NULL,0,NULL,NULL 55919,148289,1028765,Custodian Civic Duty Custodian Yearling Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling scala Yearling,NULL,NULL,0,NULL,NULL 55920,197580,845108,Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 55921,91397,806924,Revival Yearling Tumbleweed Promoter Benefactor,NULL,NULL,0,NULL,NULL 55922,84395,1475969,NULL,NULL,NULL,0,NULL,NULL 55923,252265,9231,Informed Autobiographer Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 55924,30225,813093,NULL,NULL,NULL,0,NULL,NULL 55925,182147,354130,Autobiographer Notable Question Famous Question Caucus Yearling Civic Duty Documentation User Census Popular Question Caucus Constituent Notable Question Notable Question,NULL,NULL,0,NULL,NULL 55926,221230,421099,Nice Answer Yearling Popular Question Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 55927,1057677,1209369,Yearling Revival Curious Yearling Disciplined Caucus Civic Duty Good Answer Census Yearling Caucus Constituent Necromancer Popular Question Nice Question Necromancer,NULL,Unit testing private methods in unit testing pVisual Studio allows unit testing of private methods via an automatically generated accessor class have written test of private method that compiles successfully but it fails at runtime fairly minimal version of the code and the test is ppre code in project MyProjclass TypeA private List lt TypeB gt myList new List lt TypeB gt private class TypeB public TypeB public TypeA private void MyFunc processing of myList that changes state of instance in project TestMyProj public void MyFuncTest TypeA Accessor target new TypeA Accessor following line is the one that throws exception target myList Add new TypeA Accessor TypeB target MyFunc check changed state of target code prepThe runtime error is ppre codeObject of type System Collections Generic List MyProj TypeA TypeA Accessor TypeB cannot be converted to type System Collections Generic List MyProj TypeA TypeA TypeB code prepAccording to intellisense and hence guess the compiler target is of type TypeA Accessor But at runtime it is of type TypeA and hence the list add fails ppIs there any way can stop this error Or perhaps more likely what other advice do other people have predict maybe don test private methods and don have unit tests manipulate the state of objects Feel that testing private methods should be done by the followinghttps stackoverflow com questions 250692 how do you unit test private methods,0,NULL,NULL 55928,67638,507794,NULL,NULL,NULL,0,NULL,NULL 55929,914039,467424,Critic Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55930,758388,192161,NULL,NULL,NULL,0,NULL,NULL 55931,1349167,464755,Yearling,NULL,NULL,0,NULL,NULL 55932,427584,1006025,Nice Answer Notable Question Popular Question Yearling Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 55933,422797,1102885,Nice Answer Nice Answer Caucus Yearling Nice Answer Caucus Necromancer Constituent Nice Answer Enlightened Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55934,24649,798244,Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 55935,80271,1118786,NULL,NULL,NULL,0,NULL,NULL 55936,7334989,708401,NULL,NULL,NULL,0,NULL,NULL 55937,210701,781573,Necromancer Good Answer Yearling Yearling Good Answer Nice Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 55938,53273,791759,NULL,NULL,NULL,0,NULL,NULL 55939,29442,27540,Civic Duty Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 55940,13891,110644,Necromancer Good Question Yearling Favorite Question Favorite Question Nice Answer Enlightened Yearling Great Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 55941,17684,955904,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55942,843986,458721,NULL,NULL,NULL,0,NULL,NULL 55943,477022,1464747,Scholar,NULL,NULL,0,NULL,NULL 55944,724227,766821,NULL,NULL,NULL,0,NULL,NULL 55945,2628745,766821,NULL,NULL,NULL,0,NULL,NULL 55946,1504576,318820,Informed,NULL,NULL,0,NULL,NULL 55947,494838,858942,Informed Excavator,NULL,NULL,0,NULL,NULL 55948,839368,538637,NULL,NULL,NULL,0,NULL,NULL 55949,96486,1529954,NULL,NULL,NULL,0,NULL,NULL 55950,254936,1357963,NULL,NULL,NULL,0,NULL,NULL 55951,502097,227624,Yearling,NULL,NULL,0,NULL,NULL 55952,460530,542609,NULL,NULL,NULL,0,NULL,NULL 55953,170545,809424,NULL,NULL,NULL,0,NULL,NULL 55954,99299,832790,NULL,NULL,NULL,0,NULL,NULL 55955,68586,195543,Nice Question Yearling Caucus Yearling Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 55956,320226,557332,NULL,NULL,NULL,0,NULL,NULL 55957,256631,1366466,Student Editor,NULL,NULL,0,NULL,NULL 55958,276716,50501,Caucus Caucus Census,NULL,NULL,0,NULL,NULL 55959,31197,1008429,Nice Answer Necromancer Yearling Nice Answer Necromancer Good Answer Yearling Peer Pressure Commentator Nice Answer Nice Answer Yearling,NULL,pBuilding on Zv oDD answer created similar function for easier reuse pp strongWarning strong This is non standard feature of many JS interpreters and will probably be removed at some point but as building script to be only used in Chrome am using it Do not strongever strong rely on this for client facing websites ppre code Multiline Function String Nate Ferrero Public Domainfunction heredoc fn return fn toString match code prepUse ppre codevar txt heredoc function test of horribleMulti line strings code prepReturns ppre code test of horribleMulti line strings code prepNotes polliText is trimmed on both ends so any extra whitespace on either end is OK li olpEdits pp2 2014 changed to not mess with the Function prototype at all and use the name heredoc instead pp5 26 2017 updated whitespace to reflect modern coding standards would suggest having them start and end script tags with something like script tag script tag and then replacing that afterward,0,NULL,NULL 55960,35993,1229678,NULL,NULL,NULL,0,NULL,NULL 55961,388943,1203066,NULL,NULL,NULL,0,NULL,NULL 55962,1189768,1114022,NULL,NULL,NULL,0,NULL,NULL 55963,918330,1050613,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 55964,289863,761771,Nice Answer Nice Answer Great Answer Yearling Nice Answer Nice Answer Organizer Necromancer Necromancer Revival Necromancer Caucus Necromancer Good Answer Revival Revival Nice Answer Good Answer Popular Question Custodian Yearling Announcer Nice Answer Necromancer Necromancer Nice Answer Announcer Good Answer Revival Announcer Notable Question Custodian Nice Answer Pundit Necromancer Nice Answer Announcer Good Answer Yearling Announcer Necromancer Announcer Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 55965,111134,290353,NULL,NULL,NULL,0,NULL,NULL 55966,370223,647562,NULL,NULL,NULL,0,NULL,NULL 55967,241036,204204,Supporter Teacher Scholar Cleanup Custodian Notable Question Famous Question,NULL,NULL,0,NULL,NULL 55968,4745095,681353,NULL,NULL,NULL,0,NULL,NULL 55969,216087,585191,NULL,NULL,NULL,0,NULL,NULL 55970,425005,147190,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55971,50507,402945,Self-Learner Popular Question Favorite Question Yearling Popular Question Notable Question Yearling Great Question,NULL,NULL,0,NULL,NULL 55972,213404,310070,NULL,NULL,NULL,0,NULL,NULL 55973,95730,613570,NULL,NULL,NULL,0,NULL,NULL 55974,232643,981262,Scholar,NULL,NULL,0,NULL,NULL 55975,480731,1385687,NULL,NULL,NULL,0,NULL,NULL 55976,85997,8799,Good Answer Good Answer Good Answer Necromancer Popular Question Good Answer Yearling Nice Answer Good Answer Great Answer Good Answer Nice Answer Yearling Good Answer Popular Question Good Answer Popular Question Popular Question Good Answer Popular Question Yearling Popular Question,NULL,NULL,1,Passing ES JAVA OPTS variable with spaces when using docker compose elasticsearch docker environment variables docker compose pI trying to run Elasticsearch using docker compose but not sure how to correctly pass the codeES JAVA OPTS Xms512m Xmx512m code environmental variable ve tried lots of combinations of single and double quotes but they all result in codeError Could not find or load main class Xms512m code ppMy docker compose config is ppre codeelasticsearch image docker elastic co elasticsearch elasticsearch ports 6379 6379 environment http host transport host 127 xpack security enabled false ES JAVA OPTS Xms512m Xmx512m code prepThis environmental variable works just fine when running the container directly with ppre codedocker run detach name elasticsearch publish 9200 9200 env http host env transport host 127 env xpack security enabled false env ES JAVA OPTS Xms512m Xmx512m docker elastic co elasticsearch elasticsearch code prepWhat am missing here,NULL 55977,22743,1123067,NULL,NULL,NULL,0,NULL,NULL 55978,1954932,1173834,NULL,NULL,NULL,0,NULL,NULL 55979,1422725,222858,NULL,NULL,NULL,0,NULL,NULL 55980,194738,83404,Notable Question Yearling Popular Question Custodian Yearling Popular Question Nice Answer Notable Question Popular Question Yearling Favorite Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 55981,88462,1233005,NULL,NULL,NULL,0,NULL,NULL 55982,2432833,1233005,NULL,NULL,NULL,0,NULL,NULL 55983,76252,139109,Good Answer Civic Duty Popular Question Popular Question Nice Question Census Yearling,NULL,NULL,0,NULL,NULL 55984,98040,957837,NULL,NULL,NULL,0,NULL,NULL 55985,152536,902231,Popular Question Yearling Nice Answer Enlightened Yearling Good Answer Caucus Yearling Custodian Informed Suffrage Vox Populi Organizer Explainer Guru Custodian Yearling Caucus Constituent Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 55986,165125,62048,Yearling Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 55987,4608,304706,Popular Question Nice Question Yearling Good Answer Notable Question Popular Question Announcer Good Answer Necromancer Good Question Announcer Nice Answer Nice Question Good Answer Yearling Announcer Announcer Announcer Good Answer Documentation User Yearling Announcer Pundit Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 55988,375181,1205988,NULL,NULL,NULL,0,NULL,NULL 55989,3248568,212343,Popular Question Popular Question Popular Question Teacher Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55990,1600528,212343,Popular Question Popular Question Popular Question Teacher Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55991,751900,212343,Popular Question Popular Question Popular Question Teacher Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 55992,349145,983127,Yearling,NULL,NULL,0,NULL,NULL 55993,190308,877563,Nice Answer,NULL,NULL,0,NULL,NULL 55994,120242,1036571,Yearling Popular Question,NULL,NULL,0,NULL,NULL 55995,248413,1036144,NULL,NULL,NULL,0,NULL,NULL 55996,308402,491605,Yearling Inquisitive Nice Question Informed Autobiographer Excavator Popular Question Promoter Benefactor Yearling Caucus Famous Question Famous Question Yearling Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Popular Question Notable Question Notable Question Notable Question Yearling Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Self-Learner Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 55997,73205,559453,NULL,NULL,NULL,0,NULL,NULL 55998,1352776,1454296,NULL,NULL,NULL,0,NULL,NULL 55999,2264000,1446698,Editor Necromancer Yearling Nice Answer Critic Commentator Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 56000,327794,610584,Yearling Revival Popular Question Notable Question Necromancer Famous Question Yearling Necromancer Great Question Nice Answer Yearling Famous Question Famous Question Yearling Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 56001,355276,1185383,Commentator Necromancer Revival Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 56002,1256941,882348,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 56003,219443,289869,Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56004,815636,452206,Popular Question,NULL,NULL,0,NULL,NULL 56005,201642,1076761,Necromancer Yearling Caucus Critic Famous Question Commentator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56006,663712,118133,Custodian Guru Good Answer Yearling Nice Answer Good Answer Good Answer Great Answer Census Good Answer Yearling Caucus Nice Answer Nice Answer Census Good Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 56007,703691,669275,NULL,NULL,NULL,0,NULL,NULL 56008,254695,61737,Famous Question Fanatic Yearling Notable Question Notable Question Nice Question Nice Answer Caucus Not a Robot Yearling,NULL,NULL,0,NULL,NULL 56009,211133,522255,NULL,NULL,NULL,0,NULL,NULL 56010,1464801,36693,Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Good Question Good Question Famous Question Popular Question Famous Question Notable Question Nice Question Yearling Good Question Good Answer Notable Question Popular Question Notable Question Nice Answer Famous Question Notable Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 56011,911328,1082659,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56012,63570,331736,NULL,NULL,NULL,0,NULL,NULL 56013,1345923,1556347,NULL,NULL,NULL,0,NULL,NULL 56014,43993,11109,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56015,852734,977142,NULL,NULL,NULL,0,NULL,NULL 56016,191797,1251141,NULL,NULL,NULL,0,NULL,NULL 56017,249255,1241293,NULL,NULL,NULL,0,NULL,NULL 56018,268006,883002,NULL,NULL,NULL,0,NULL,NULL 56019,222009,79839,NULL,NULL,NULL,0,NULL,NULL 56020,58215,216513,Popular Question Nice Answer Necromancer Good Answer Nice Answer Good Answer Necromancer Good Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer cocoon-gem Notable Question Popular Question Nice Answer Necromancer Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Necromancer Nice Answer Nice Answer Necromancer Revival Good Answer Yearling Famous Question Custodian Nice Answer Nice Answer Populist Nice Answer Great Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56021,99175,1054906,NULL,NULL,NULL,0,NULL,NULL 56022,799838,661532,NULL,NULL,NULL,0,NULL,NULL 56023,340245,719958,NULL,NULL,NULL,0,NULL,NULL 56024,85784,3453,Good Question Census Caucus,NULL,NULL,0,NULL,NULL 56025,152756,967032,Enthusiast Good Question Critic,NULL,NULL,0,NULL,NULL 56026,230126,120096,NULL,NULL,NULL,0,NULL,NULL 56027,388935,959864,NULL,NULL,NULL,0,NULL,NULL 56028,17334,489885,Famous Question Notable Question Popular Question html Yearling Notable Question Nice Question Popular Question Notable Question Nice Answer Enlightened Great Answer Popular Question Yearling Good Answer Good Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 56029,915695,680920,Talkative Nice Answer Self-Learner Nice Question Good Answer Yearling Necromancer Popular Question Nice Answer Necromancer Popular Question Nice Question Popular Question Guru php Good Answer Nice Answer Notable Question Popular Question Good Answer Nice Answer Necromancer Yearling Notable Question Great Answer Good Answer Announcer Popular Question Popular Question Popular Question Nice Answer Nice Question Census Necromancer Popular Question Necromancer Yearling Notable Question Good Question Famous Question,NULL,pKeys need to be only readable by you ppre codechmod 400 ssh id rsa code prep em600 em appears to be fine as well in fact better in most cases because you don need to change file permissions to edit it ppThe relevant portion from the manpage codeman ssh code pblockquotepre code ssh id rsa Contains the private key for authentication These files contain sensitive data and should be readable by the user but not accessible by others read write execute ssh will simply ignore private key file if it is accessible by others It is possible to specify passphrase when generating the key which will be used to encrypt the sensitive part of this file using 3DES ssh identity pub ssh id dsa pub ssh id ecdsa pub ssh id rsa pub Contains the public key for authentication These files are not sensitive and can but need not be readable by anyone code pre blockquote This definitely works and is more secure The only downside is you then have to change it to 600 to edit For id rsa and id rsa pub doubt that matters because you rarely ever will edit those files but for authorized keys it could be annoying Best to understand the tradeoffs and configure each system appropriately pKeys need to be only readable by you ppre codechmod 400 ssh id rsa code prep em600 em appears to be fine as well in fact better in most cases because you don need to change file permissions to edit it ppThe relevant portion from the manpage codeman ssh code pblockquotepre code ssh id rsa Contains the private key for authentication These files contain sensitive data and should be readable by the user but not accessible by others read write execute ssh will simply ignore private key file if it is accessible by others It is possible to specify passphrase when generating the key which will be used to encrypt the sensitive part of this file using 3DES ssh identity pub ssh id dsa pub ssh id ecdsa pub ssh id rsa pub Contains the public key for authentication These files are not sensitive and can but need not be readable by anyone code pre blockquote Have look here http unix stackexchange com 55481 14572 this helped me today The perms on the www data users home directory needed to be modified subtle issue IMO pKeys need to be only readable by you ppre codechmod 400 ssh id rsa code prep em600 em appears to be fine as well in fact better in most cases because you don need to change file permissions to edit it ppThe relevant portion from the manpage codeman ssh code pblockquotepre code ssh id rsa Contains the private key for authentication These files contain sensitive data and should be readable by the user but not accessible by others read write execute ssh will simply ignore private key file if it is accessible by others It is possible to specify passphrase when generating the key which will be used to encrypt the sensitive part of this file using 3DES ssh identity pub ssh id dsa pub ssh id ecdsa pub ssh id rsa pub Contains the public key for authentication These files are not sensitive and can but need not be readable by anyone code pre blockquote it shouldn if you own the file pKeys need to be only readable by you ppre codechmod 400 ssh id rsa code prep em600 em appears to be fine as well in fact better in most cases because you don need to change file permissions to edit it ppThe relevant portion from the manpage codeman ssh code pblockquotepre code ssh id rsa Contains the private key for authentication These files contain sensitive data and should be readable by the user but not accessible by others read write execute ssh will simply ignore private key file if it is accessible by others It is possible to specify passphrase when generating the key which will be used to encrypt the sensitive part of this file using 3DES ssh identity pub ssh id dsa pub ssh id ecdsa pub ssh id rsa pub Contains the public key for authentication These files are not sensitive and can but need not be readable by anyone code pre blockquote Thanks answer revised,0,NULL,NULL 56030,61669,595692,NULL,NULL,NULL,0,NULL,NULL 56031,65866,251669,NULL,NULL,NULL,0,NULL,NULL 56032,26180,1377021,Popular Question Popular Question Popular Question Good Answer Yearling Notable Question Popular Question Notable Question Nice Answer Caucus Notable Question Constituent Popular Question Populist Custodian Nice Answer Nice Answer Notable Question Nice Question Yearling Famous Question javascript Notable Question Popular Question Notable Question Good Question Caucus Popular Question Famous Question Popular Question Nice Answer Famous Question Nice Answer Notable Question Notable Question Notable Question Yearling Revival Necromancer Popular Question Nice Question,NULL,NULL,1,NULL,Project Leaflet LatLng to tile pixel coordinates javascript leaflet pFor canvas layers how can access the clicked pixel of specific tile Given LatLng like code lat 37 68816 lng 119 76196 code how can retrieve the correct tile clicked and the pixel coordinates within the tile Both of these should consider codemaxNativeZoom code pA CRS like codeL CRS EPSG3857 code is required The map CRS is accessible by codemap options crs code The true zoom tile size like 256 but could be 512 or higher about codemaxNativeZoom code and pixel origin like codemap getPixelOrigin code are required ppre codeconst latlngToTilePixel latlng crs zoom tileSize pixelOrigin gt const layerPoint crs latLngToPoint latlng zoom floor const tile layerPoint divideBy tileSize floor const tileCorner tile multiplyBy tileSize subtract pixelOrigin const tilePixel layerPoint subtract pixelOrigin subtract tileCorner return tile tilePixel code prepFirst convert the codelatlng code to layer point Now all units are in pixels ppSecond divide by codetileSize code and round down This gives the tile slippy coordinates ppThird multiply back by codetileSize code to get the pixel coordinates of the tile corner adjusted for codepixelOrigin code ppFinally to get the tile pixels subtract the layer point from origin and tile corner 56033,165074,825016,NULL,NULL,NULL,0,NULL,NULL 56034,543882,984936,Nice Answer Enlightened Yearling Good Answer Yearling Guru Good Answer Notable Question Caucus Constituent Yearling Self-Learner Nice Answer Yearling Caucus Constituent Popular Question Nice Question,NULL,NULL,0,NULL,NULL 56035,193104,133349,Yearling,NULL,NULL,0,NULL,NULL 56036,354583,610692,Necromancer Necromancer Yearling Popular Question Revival Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 56037,64914,35491,Supporter,NULL,NULL,0,NULL,NULL 56038,72015,1329821,NULL,NULL,NULL,0,NULL,NULL 56039,446142,118797,Popular Question Necromancer Yearling Good Question Custodian Yearling Nice Answer Famous Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 56040,216086,277354,NULL,NULL,NULL,0,NULL,NULL 56041,42662,517935,NULL,NULL,NULL,0,NULL,NULL 56042,383280,609768,NULL,NULL,NULL,0,NULL,NULL 56043,677852,973697,NULL,NULL,NULL,0,NULL,NULL 56044,940955,607550,Curious Popular Question,NULL,NULL,0,NULL,NULL 56045,288820,179192,NULL,NULL,NULL,0,NULL,NULL 56046,12423,511595,NULL,NULL,NULL,0,NULL,NULL 56047,38036,892496,NULL,NULL,NULL,0,NULL,NULL 56048,73909,460763,Editor Teacher,NULL,NULL,0,NULL,NULL 56049,6400,364048,NULL,NULL,NULL,0,NULL,NULL 56050,931454,1116054,NULL,NULL,NULL,0,NULL,NULL 56051,410437,604946,NULL,NULL,NULL,0,NULL,NULL 56052,556114,153432,Revival Famous Question Good Question Yearling Good Answer Great Answer Nice Answer Enlightened Caucus Constituent Caucus Constituent Custodian Yearling Nice Answer Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 56053,8471,45756,Good Answer Nice Answer Notable Question Notable Question Good Answer liquibase Revival Yearling Revival Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56054,896792,1431749,NULL,NULL,NULL,0,NULL,NULL 56055,529455,105792,Nice Answer,NULL,NULL,0,NULL,NULL 56056,76398,1312640,Student,NULL,NULL,0,NULL,NULL 56057,95634,752125,NULL,NULL,NULL,0,NULL,NULL 56058,90021,166893,Notable Question Popular Question Notable Question Notable Question Good Answer Yearling Notable Question Caucus Nice Answer Nice Answer Popular Question Revival Nice Question Yearling Announcer Caucus Popular Question Taxonomist Popular Question Announcer Revival Yearling,NULL,NULL,0,NULL,NULL 56059,505286,1194445,NULL,NULL,NULL,0,NULL,NULL 56060,76420,124033,Yearling,NULL,NULL,0,NULL,NULL 56061,654194,319969,Famous Question Yearling Famous Question Custodian Nice Question Famous Question Caucus Civic Duty Yearling Custodian Census Yearling Nice Question Benefactor Nice Question Nice Question,NULL,NULL,0,NULL,NULL 56062,806398,498391,Necromancer Autobiographer Excavator Tumbleweed Yearling Curious Guru Yearling Revival Self-Learner Yearling,NULL,NULL,0,NULL,NULL 56063,459903,1258121,Famous Question Good Question Yearling Custodian,NULL,NULL,0,NULL,NULL 56064,670049,688607,NULL,NULL,NULL,0,NULL,NULL 56065,176897,155373,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56066,25709,591453,NULL,NULL,NULL,0,NULL,NULL 56067,337958,1291473,Supporter Teacher Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56068,723334,577381,Editor Enthusiast Yearling,NULL,NULL,0,NULL,NULL 56069,374808,1393012,NULL,NULL,NULL,0,NULL,NULL 56070,332079,18480,Famous Question Popular Question Yearling Famous Question Notable Question Good Question Popular Question Caucus Good Question Good Question Good Question Yearling Nice Question Caucus Custodian Constituent Notable Question Civic Duty Enthusiast Yearling Populist,NULL,NULL,0,NULL,NULL 56071,319866,1052673,Good Answer Nice Answer Popular Question Guru Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 56072,1206579,547156,Census Census,NULL,NULL,0,NULL,NULL 56073,666675,621861,NULL,NULL,NULL,0,NULL,NULL 56074,4134,6284,Announcer Nice Answer,NULL,NULL,0,NULL,NULL 56075,20969,1094034,Popular Question,NULL,NULL,0,NULL,NULL 56076,186413,1028228,NULL,NULL,NULL,0,NULL,NULL 56077,586573,1328020,NULL,NULL,NULL,0,NULL,NULL 56078,1156059,306450,Popular Question,NULL,NULL,0,NULL,NULL 56079,596917,790391,NULL,NULL,NULL,0,NULL,NULL 56080,437551,204263,Favorite Question Popular Question Promoter Inquisitive Yearling Self-Learner Good Question Notable Question Notable Question jquery Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56081,302861,731991,Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 56082,317152,205181,Necromancer,NULL,NULL,0,NULL,NULL 56083,206649,950683,Nice Answer,NULL,NULL,0,NULL,NULL 56084,283703,529891,Notable Question Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56085,88263,791913,NULL,NULL,NULL,0,NULL,NULL 56086,693717,808925,Popular Question Census,NULL,NULL,0,NULL,NULL 56087,2164,4376,Famous Question Populist Nice Answer Notable Question Favorite Question Notable Question Notable Question Nice Question Good Answer Necromancer Great Question Notable Question Famous Question Popular Question Popular Question Notable Question Great Question Good Question Nice Question Popular Question Nice Answer Necromancer Stellar Question Nice Question Nice Question Popular Question Nice Question Popular Question Good Question Nice Question Good Question Good Question Good Question Popular Question Nice Question Good Question Mortarboard Popular Question Notable Question Great Question Favorite Question Famous Question Notable Question Populist Notable Question Famous Question Nice Answer Great Answer Yearling Nice Question Nice Question Famous Question Popular Question Great Question Notable Question Notable Question Notable Question Announcer Notable Question Popular Question Nice Answer Necromancer Nice Answer Enlightened Notable Question Good Answer Famous Question Famous Question Popular Question Popular Question Famous Question Nice Answer Good Answer Popular Question Notable Question Popular Question Good Question Famous Question Popular Question Good Answer Guru Nice Answer Nice Question Popular Question Favorite Question Notable Question Nice Answer Famous Question Good Answer Good Question Notable Question Necromancer Good Answer Necromancer Famous Question Popular Question Notable Question Notable Question Sportsmanship Popular Question Notable Question Famous Question Good Question Famous Question Notable Question Announcer Nice Answer Good Question Necromancer Guru Nice Question Great Answer Notable Question Notable Question Notable Question Announcer Necromancer Nice Question Nice Question Nice Question Popular Question Nice Question Notable Question Yearling Good Question Nice Question Nice Question Guru Popular Question Notable Question Nice Answer Good Question Notable Question Documentation User Popular Question Popular Question Nice Question Nice Answer Necromancer Popular Question Necromancer Nice Question Nice Answer Nice Question Notable Question Popular Question Notable Question Census Nice Answer Good Question Nice Answer Popular Question Famous Question Famous Question Good Answer Good Question Good Answer Notable Question Famous Question Notable Question Famous Question Popular Question Nice Answer Notable Question Good Question Good Question Popular Question Popular Question Famous Question Necromancer Great Question Good Answer Yearling Popular Question Popular Question Good Question Popular Question Famous Question Popular Question Popular Question Nice Question Announcer,NULL,How do you keep parents of floated elements from collapsing html css layout css float clearfix pAlthough elements like code lt div gt codes normally grow to fit their contents using the codefloat code property can cause startling problem for CSS newbies strongif floated elements have non floated parent elements the parent will collapse strong ppFor example pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt div gt xD lt div style float left gt Div lt div gt xD lt div style float left gt Div lt div gt xD lt div gt code pre xD div xD div xD ppThe parent div in this example will strongnot expand strong to contain its floated children it will appear to have codeheight code ph1How do you solve this problem h1p emI would like to create an exhaustive list of solutions here If you re aware of cross browser compatibility issues please point them out em ph2Solution h2pFloat the parent pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt div style float left gt xD lt div style float left gt Div lt div gt xD lt div style float left gt Div lt div gt xD lt div gt code pre xD div xD div xD pp strongPros strong Semantic code brstrongCons strong You may not always want the parent floated Even if you do do you float the parents parent and so on Must you float every ancestor element ph2Solution h2pGive the parent an explicit height pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt div style height 300px gt xD lt div style float left gt Div lt div gt xD lt div style float left gt Div lt div gt xD lt div gt code pre xD div xD div xD pp strongPros strong Semantic code brstrongCons strong Not flexible if the content changes or the browser is resized the layout will break ph2Solution h2pAppend spacer element inside the parent element like this pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt div gt xD lt div style float left gt Div lt div gt xD lt div style float left gt Div lt div gt xD lt div class spacer style clear both gt lt div gt xD lt div gt code pre xD div xD div xD pp strongPros strong Straightforward to code brstrongCons strong Not semantic the spacer div exists only as layout hack ph2Solution h2pSet parent to codeoverflow auto code pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code html lang html prettyprint override code lt div style overflow auto gt xD lt div style float left gt Div lt div gt xD lt div style float left gt Div lt div gt xD lt div gt code pre xD div xD div xD pp strongPros strong Doesn require extra div brstrongCons strong Seems like hack that not the codeoverflow code property stated purpose ph1Comments Other suggestions h1 While agree with you in principle this is question asked and updated nine years ago had long ago made it community wiki leaving it to the community to maintain and forgotten about it It since been closed as duplicate If you have strong opinions about it please feel free to make edits Why do many Unix programs use signals like USR1 linux unix nginx signals pMany Unix programs accept signals like codeUSR1 code and codeUSR2 code For example to upgrade the executable for Nginx on the fly you send codekill USR2 code ppI understand that codeUSR1 code is user defined signal meaning that whoever created the program can use it to mean shut down or dump your logs or print foo thousand times or whatever But don understand why they must use this arbitrary name Why not codekill UPGRADE code or codekill GRACEFUL SHUTDOWN code Does Unix only allow specific signals ppWhile we re at it Nginx also uses the following signals see href http wiki nginx org CommandLine rel noreferrer documentation pulli strongTERM INT strong Quick shutdown lili strongQUIT strong Graceful shutdown lili strongHUP strong ulliConfiguration reload liliStart the new worker processes with new configuration liliGracefully shutdown the old worker processes li ul lili strongUSR1 strong Reopen the log files lili strongUSR2 strong Upgrade Executable on the fly lili strongWINCH strong Gracefully shutdown the worker processes li ulpHUP WINCH What the reason for these names Where can learn more about this TIL man signal discusses signals and lists 31 of them pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions it an obvious violation of DRY principles Yes which means pain for programmers like us But imagine signup form If duplicating the knowledge an email address must contain an in the client code means users get faster feedback and more of them sign up resulting in 100k extra revenue per year it more than pays for the extra maintenance costs DRY is very good principle but it not the only consideration Code quality is really measured in how well it serves users and an organization in cost benefit analysis pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions Yes and you will catch most of the problems that way but it not 100 reliable If two users are filling out the form at the same time they may both be told that user1 is an available username When they submit they will both get the same username unless you re check server side And even check in the server application code can have the same problem two requests come in the first one checks the database and is told OK the second checks the database and is told OK the first is saved the second is saved as duplicate Only db unique constraint guarantees uniqueness pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions don know how gmail is implemented but any system that doesn check for uniqueness at the database layer is going to have duplicates there is no way around that Think of it this way this validation is inherently about the current state of the database what users are there Only the database knows its current state anybody who asked it 0001 seconds ago doesn know the current state only the state as of 0001 seconds ago pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions It is useful to have client side validation here because if somebody took the username you want they probably took it yesterday or last year not millisecond ago and it nice to find out that it taken before you submit the form But there always has to be double check at the exact moment of inserting the new record or else duplicates can happen Note the more traffic you have the more likely you ll get two users claiming the same thing simultaneously On low traffic site it may never happen But only unique index ensures that it won pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions was trying to distinguish something reliable like db unique constraint from something unreliable like having the server side application code do SELECT followed by an INSERT which means there chance that another INSERT was done in between Locking the table would prevent that but unique constraint is much better pAs others have said you should do both Here why ph2Client Side h2pYou want to validate input on the client side first because you can give strongbetter feedback to the average user strong For example if they enter an invalid email address and move to the next field you can show an error message immediately That way the user can correct every field strongbefore strong they submit the form ppIf you only validate on the server they have to submit the form get an error message and try to hunt down the problem pp This pain can be eased by having the server re render the form with the user original input filled in but client side validation is still faster ph2Server Side h2pYou want to validate on the server side because you can strongprotect against the malicious user strong who can easily bypass your JavaScript and submit dangerous input to the server ppIt is very dangerous to trust your UI strongNot only can they abuse your UI but they may not be using your UI at all or even browser strong What if the user manually edits the URL or runs their own Javascript or tweaks their HTTP requests with another tool What if they send custom HTTP requests from codecurl code or from script for example pp emThis is not theoretical eg worked on travel search engine that re submitted the user search to many airlines bus companies etc by sending codePOST code requests as if the user had filled each company search form then gathered and sorted all the results Those companies form JS was never executed and it was crucial for us that they provide error messages in the returned HTML Of course an API would have been nice but this was what we had to do em ppNot allowing for that is not only naive from security standpoint but also non standard client should be allowed to send HTTP by whatever means they wish and you should respond correctly That includes validation ppServer side validation is also important for strongcompatibility strong not all users even if they re using browser will have JavaScript enabled ph2Addendum December 2016 h2pThere are some validations that strongcan even be properly done in server side application code and are utterly impossible in client side code strong because they depend on the current state of the database For example nobody else has registered that username or the blog post you re commenting on still exists or no existing reservation overlaps the dates you requested or your account balance still has enough to cover that purchase strongOnly the database can reliably validate data which depends on related data strong Developers href http www bailis org papers feral sigmod2015 pdf rel noreferrer regularly screw this up but href http nathanmlong com 2016 01 protect your data with postgresql constraints rel noreferrer PostgreSQL provides some good solutions That very cool solution thanks for sharing,0,NULL,NULL 56088,506617,349238,Popular Question Good Answer Notable Question Yearling Nice Question Popular Question Guru Famous Question Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 56089,259193,723087,Notable Question,NULL,NULL,0,NULL,NULL 56090,441943,1011662,Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 56091,385846,1308218,NULL,NULL,NULL,0,NULL,NULL 56092,118938,66003,Popular Question,NULL,NULL,0,NULL,NULL 56093,242888,53962,Notable Question Caucus,NULL,NULL,0,NULL,NULL 56094,73179,195897,NULL,NULL,NULL,0,NULL,NULL 56095,978890,484786,Popular Question Notable Question Popular Question Self-Learner Yearling Announcer Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56096,140752,1364850,NULL,NULL,NULL,0,NULL,NULL 56097,37694,1211984,NULL,NULL,NULL,0,NULL,NULL 56098,489959,478161,NULL,NULL,NULL,0,NULL,NULL 56099,167254,817858,NULL,NULL,NULL,0,NULL,NULL 56100,10044397,885543,NULL,NULL,NULL,0,NULL,NULL 56101,464200,196075,NULL,NULL,NULL,0,NULL,NULL 56102,1770482,1241790,Supporter,NULL,NULL,0,NULL,NULL 56103,5018614,964225,Civic Duty Announcer Necromancer,NULL,NULL,0,NULL,NULL 56104,75298,258760,NULL,NULL,NULL,0,NULL,NULL 56105,109571,30544,Notable Question Nice Question Notable Question Yearling Famous Question Great Answer Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 56106,96097,1340262,NULL,NULL,NULL,0,NULL,NULL 56107,1162538,1141579,NULL,NULL,NULL,0,NULL,NULL 56108,1221948,425386,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 56109,1509300,304514,NULL,NULL,NULL,0,NULL,NULL 56110,100298,1252572,Notable Question,NULL,NULL,0,NULL,NULL 56111,15152,923909,NULL,NULL,NULL,0,NULL,NULL 56112,8454417,1264261,NULL,NULL,NULL,0,NULL,NULL 56113,103734,1264261,NULL,NULL,NULL,0,NULL,NULL 56114,327350,819949,Yearling Great Answer,NULL,NULL,0,NULL,NULL 56115,108264,1516152,Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 56116,904937,1118508,Editor Popular Question,NULL,NULL,0,NULL,NULL 56117,310930,272380,Student Editor Informed Critic Popular Question,NULL,NULL,0,NULL,NULL 56118,557106,210945,Necromancer Nice Answer Revival Proofreader Notable Question Notable Question Nice Answer Custodian Tumbleweed Popular Question Nice Answer Nice Answer Great Answer Nice Question Nice Answer Necromancer Popular Question Popular Question Good Answer Popular Question Notable Question Notable Question Necromancer Necromancer Announcer Good Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Custodian Good Question Revival Good Answer Notable Question Announcer Announcer Famous Question Popular Question Famous Question Nice Question Announcer Nice Question Yearling Announcer Nice Answer Popular Question Nice Answer Announcer Nice Answer Necromancer Famous Question Favorite Question Notable Question Caucus Popular Question Good Answer Famous Question Nice Question Nice Question Popular Question Announcer Announcer Popular Question Good Answer Necromancer Famous Question Famous Question Announcer Nice Answer Popular Question Yearling Nice Answer,NULL,pre code gt foo 10 amp 832171 gt cat foo 10 amp 832171 code pre You have to manually include in the string if you want to use cat though pI not entirely sure what you want and your last line of code does not help either but anyway pp Chained filtering is done by chaining the criteria in the boolean index ppre codeIn 96 dfOut 96 Da 1b 2c 0d 6In 99 df df amp df Out 99 Dd code prepIf you want to chain methods you can add your own mask method and use that one ppre codeIn 90 def mask df key value return df df key value In 92 pandas DataFrame mask maskIn 93 df pandas DataFrame np random randint 10 index list abcd columns list ABCD In 95 df ix df ix In 96 dfOut 96 Da 1b 2c 0d 6In 97 df mask Out 97 Da 1d 6In 98 df mask mask Out 98 Dd code pre That is really nice solution wasn even aware that you could jury rig methods like that in python function like this would be really nice to have in Pandas itself,0,NULL,NULL 56119,169847,200816,Famous Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56120,122011,173077,Nice Question Nice Answer Nice Answer Popular Question Necromancer Notable Question Popular Question Nice Answer Nice Question Yearling Popular Question Nice Answer Nice Answer Good Answer Popular Question Good Answer Popular Question Nice Answer Nice Answer Famous Question Yearling Enlightened Revival Good Question Disciplined Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 56121,6210,201355,NULL,NULL,NULL,0,NULL,NULL 56122,8536841,856520,NULL,NULL,NULL,0,NULL,NULL 56123,1100060,1056465,NULL,NULL,NULL,0,NULL,NULL 56124,27388,196042,NULL,NULL,NULL,0,NULL,NULL 56125,1292248,219008,NULL,NULL,NULL,0,NULL,NULL 56126,617518,840656,NULL,NULL,NULL,0,NULL,NULL 56127,185099,978306,Yearling Nice Answer Enlightened Caucus Announcer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 56128,8777105,550929,NULL,NULL,NULL,0,NULL,NULL 56129,187644,1363665,NULL,NULL,NULL,0,NULL,NULL 56130,260422,711491,NULL,NULL,NULL,0,NULL,NULL 56131,8703627,842422,NULL,NULL,NULL,0,NULL,NULL 56132,27464,671046,Yearling Necromancer Good Answer Nice Answer Necromancer Talkative Yearling Nice Question Caucus Census Yearling ruby-on-rails-3 Good Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 56133,1507957,272032,Notable Question,NULL,NULL,0,NULL,NULL 56134,3349642,272032,Notable Question,NULL,NULL,0,NULL,NULL 56135,55987,183264,Civic Duty Famous Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 56136,1654866,636731,Good Question,NULL,NULL,0,NULL,NULL 56137,6142,124802,Popular Question Yearling Notable Question Nice Question Nice Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 56138,2488903,838388,NULL,NULL,NULL,0,NULL,NULL 56139,1233357,838388,NULL,NULL,NULL,0,NULL,NULL 56140,216108,409616,Enthusiast Nice Question Nice Question Popular Question Famous Question Notable Question Popular Question Yearling Caucus Famous Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 56141,3144051,262914,Popular Question Nice Question Notable Question Famous Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Nice Question Popular Question Famous Question Famous Question Popular Question Popular Question Custodian Popular Question Good Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56142,518850,634885,Yearling Popular Question Yearling Good Answer Necromancer Famous Question,NULL,NULL,0,NULL,NULL 56143,236915,19407,Popular Question Yearling Nice Answer Enlightened Tumbleweed Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 56144,317300,1112613,Nice Question Notable Question Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56145,1437773,701724,NULL,NULL,NULL,0,NULL,NULL 56146,1520345,1316481,Student Popular Question,NULL,NULL,0,NULL,NULL 56147,126065,640737,Supporter,NULL,NULL,0,NULL,NULL 56148,219391,1104704,NULL,NULL,NULL,0,NULL,NULL 56149,34706,492465,Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 56150,1095576,893742,NULL,NULL,NULL,0,NULL,NULL 56151,234625,177164,NULL,NULL,NULL,0,NULL,NULL 56152,139534,454705,Student Scholar Editor Critic Yearling Informed Yearling Custodian Commentator Custodian Suffrage Vox Populi Citizen Patrol Custodian Yearling Civic Duty Custodian Enthusiast Electorate Yearling Fanatic Caucus Constituent Yearling Documentation User Nice Answer Caucus Constituent Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56153,11051,579207,Scholar Editor Supporter,NULL,NULL,0,NULL,NULL 56154,199254,46264,NULL,NULL,NULL,0,NULL,NULL 56155,114942,1100667,Tumbleweed,NULL,NULL,0,NULL,NULL 56156,990381,665527,NULL,NULL,NULL,0,NULL,NULL 56157,740206,835713,NULL,NULL,NULL,0,NULL,NULL 56158,223089,835713,NULL,NULL,NULL,0,NULL,NULL 56159,40596,996531,NULL,NULL,NULL,0,NULL,NULL 56160,156655,1073914,Informed,NULL,NULL,0,NULL,NULL 56161,62883,704671,Popular Question Notable Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 56162,178769,368170,NULL,NULL,NULL,0,NULL,NULL 56163,29091,839689,Nice Answer Pundit Copy Editor Curious Nice Answer Good Answer Guru Refiner Great Answer Nice Answer Popular Question Revival Yearling Documentation Pioneer Nice Answer Enlightened Nice Question Popular Question Good Question Self-Learner Notable Question Nice Answer Census Notable Question Nice Answer python Revival Yearling Necromancer Custodian Documentation User algorithm Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer,NULL,How do you define custom Error types in Rust error handling rust pI writing function that could return several one of several different errors ppre codefn foo gt Result lt MyError gt code prepI ll probably need to define my own error type to represent such errors presuming it would be an codeenum code of possible errors with some of the codeenum code variants having diagnostic data attached to them ppre codeenum MyError GizmoError WidgetNotFoundError widget name String code prepIs that the most idiomatic way to go about it And how do implement the codeError code trait https doc rust lang org rust by example error multiple error types define error type html Catching an exception while using Python with statement python exception handling pTo my shame can figure out how to handle exception for python with statement If have code ppre codewith open txt as print readlines code prepI really want to handle file not found exception in order to do somehing But can write ppre codewith open txt as print readlines except print oops code prepand can write ppre codewith open txt as print readlines else print oops code prepenclosing with in try except statement doesn work else exception is not raised What can do in order to process failure inside with statement in Pythonic way Interestingly Java try with resources statement does support exactly this use case you want https docs oracle com javase tutorial essential exceptions tryResourceClose html,0,NULL,NULL 56164,557284,927803,NULL,NULL,NULL,0,NULL,NULL 56165,1126722,1008526,NULL,NULL,NULL,0,NULL,NULL 56166,1822873,1084264,NULL,NULL,NULL,0,NULL,NULL 56167,68656,1084264,NULL,NULL,NULL,0,NULL,NULL 56168,740235,139392,Nice Answer Famous Question Announcer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56169,3141256,386073,Nice Answer Excavator Yearling Necromancer Commentator Populist Good Answer Caucus Caucus Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 56170,1404038,386073,Nice Answer Excavator Yearling Necromancer Commentator Populist Good Answer Caucus Caucus Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 56171,100104,712158,NULL,NULL,NULL,0,NULL,NULL 56172,203250,1102607,Nice Answer,NULL,NULL,0,NULL,NULL 56173,1259293,1397617,Critic Famous Question Custodian Informed Commentator Tumbleweed Nice Question Caucus Famous Question Yearling Good Question Caucus Custodian Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 56174,53084,3579,Notable Question Good Question Yearling Guru Notable Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 56175,630309,1326534,Nice Question Notable Question Yearling Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56176,1024305,421142,NULL,NULL,NULL,0,NULL,NULL 56177,170064,387054,Booster Yearling,NULL,NULL,0,NULL,NULL 56178,1538869,437660,NULL,NULL,NULL,0,NULL,NULL 56179,974937,738182,NULL,NULL,NULL,0,NULL,NULL 56180,912832,675743,NULL,NULL,NULL,0,NULL,NULL 56181,167684,1142411,NULL,NULL,NULL,0,NULL,NULL 56182,7131,923121,NULL,NULL,NULL,0,NULL,NULL 56183,264986,1144111,NULL,NULL,NULL,0,NULL,NULL 56184,194137,1061431,NULL,NULL,NULL,0,NULL,NULL 56185,198519,459113,Necromancer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 56186,293529,1038783,Nice Answer Enlightened Notable Question Cleanup Favorite Question Notable Question Yearling Famous Question Good Answer Guru Nice Question Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Yearling,NULL,pThis example uses Bash built in href http pubs opengroup org onlinepubs 9699919799 utilities getopts html rel noreferrer codegetopts code command and is from the href https google github io styleguide shell xml showone Case statement Case statement rel noreferrer Google Shell Style Guide ppre codea flag flag files verbose false print usage printf Usage while getopts abf flag do case flag in flag true flag true files OPTARG verbose true print usage exit esacdone code prep emNote If character is followed by colon codef code that option is expected to have an argument em ppExample usage code script filename code ppUsing getopts has several advantages over the accepted answer pullithe while condition is lot more readable and shows what the accepted options are lilicleaner code no counting the number of parameters and shifting liliyou can join options code code code abc code li ulpHowever big disadvantage is that it doesn support long options only single character options Could you add note about the colons In that after each letter no colon means no arg one colon means an arg and two colons means optional arg,0,NULL,NULL 56187,486273,1253683,NULL,NULL,NULL,0,NULL,NULL 56188,16555,604594,Critic Nice Answer Yearling Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56189,250258,869860,NULL,NULL,NULL,0,NULL,NULL 56190,28043,17,Good Answer Yearling Popular Question Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Guru Nice Answer Nice Answer Popular Question Nice Answer Yearling Nice Answer Good Answer Good Answer Notable Question Guru Nice Answer Good Answer Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 56191,471242,895585,Notable Question,NULL,NULL,0,NULL,NULL 56192,832163,930718,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 56193,72807,71044,Necromancer Custodian Popular Question Informed Necromancer Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 56194,644011,590990,Curious Yearling Popular Question Notable Question Nice Answer Popular Question Revival Necromancer Critic,NULL,NULL,0,NULL,NULL 56195,244950,322890,NULL,NULL,NULL,0,NULL,NULL 56196,376208,4142,Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 56197,9518,1155686,NULL,NULL,NULL,0,NULL,NULL 56198,55370,178154,Announcer Revival Good Question Popular Question Yearling Famous Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Announcer Revival,NULL,NULL,0,NULL,NULL 56199,138357,428150,NULL,NULL,NULL,0,NULL,NULL 56200,857169,976137,Notable Question,NULL,NULL,0,NULL,NULL 56201,35422,1467832,NULL,NULL,NULL,0,NULL,NULL 56202,150592,791795,Yearling Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56203,1583418,538748,NULL,NULL,NULL,0,NULL,NULL 56204,608247,560043,Revival Good Answer Curious Popular Question Yearling Necromancer Custodian Revival Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56205,889513,1252825,NULL,NULL,NULL,0,NULL,NULL 56206,173529,704051,NULL,NULL,NULL,0,NULL,NULL 56207,852113,489520,NULL,NULL,NULL,0,NULL,NULL 56208,461875,1093708,Nice Question Famous Question Custodian Teacher Informed Popular Question Documentation User Popular Question Critic Caucus Popular Question Curious,NULL,NULL,0,NULL,NULL 56209,182124,591702,Yearling Popular Question Popular Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 56210,1119238,108684,Tumbleweed Curious,NULL,NULL,0,NULL,NULL 56211,499402,849844,Popular Question,NULL,NULL,0,NULL,NULL 56212,914832,786722,NULL,NULL,NULL,0,NULL,NULL 56213,68572,179316,Civic Duty Revival Yearling Good Answer Yearling Necromancer Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 56214,102381,193633,Notable Question,NULL,NULL,0,NULL,NULL 56215,2486985,910020,NULL,NULL,NULL,0,NULL,NULL 56216,850787,894019,NULL,NULL,NULL,0,NULL,NULL 56217,91060,967546,Popular Question Famous Question Famous Question Good Answer Popular Question Yearling Good Question Nice Answer Famous Question Good Question Nice Question Yearling Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 56218,93986,747757,NULL,NULL,NULL,0,NULL,NULL 56219,90224,98082,Tumbleweed Investor Altruist Notable Question,NULL,NULL,0,NULL,NULL 56220,112132,221101,NULL,NULL,NULL,0,NULL,NULL 56221,6594,723218,NULL,NULL,NULL,0,NULL,NULL 56222,9835,1087974,NULL,NULL,NULL,0,NULL,NULL 56223,343637,1188497,NULL,NULL,NULL,0,NULL,NULL 56224,74960,540943,NULL,NULL,NULL,0,NULL,NULL 56225,684942,723,Popular Question Famous Question Good Answer Famous Question Yearling Notable Question Nice Question Nice Question Good Answer Nice Answer Enlightened Yearling Guru Good Question Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 56226,275812,709328,Notable Question,NULL,NULL,0,NULL,NULL 56227,9348,177287,NULL,NULL,NULL,0,NULL,NULL 56228,195187,426645,Guru Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 56229,175159,1303286,Necromancer Yearling,NULL,NULL,0,NULL,NULL 56230,1352015,768718,NULL,NULL,NULL,0,NULL,NULL 56231,615251,362703,Inquisitive Yearling Popular Question Popular Question Popular Question Nice Question Revival Enthusiast Notable Question Notable Question Popular Question Self-Learner Necromancer Notable Question Popular Question Nice Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 56232,290108,948828,NULL,NULL,NULL,0,NULL,NULL 56233,230365,1376347,NULL,NULL,NULL,0,NULL,NULL 56234,7377559,179763,NULL,NULL,NULL,0,NULL,NULL 56235,625477,638821,Yearling Popular Question Popular Question Yearling Promoter Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 56236,50592,597742,Yearling Great Question Nice Answer Great Answer Good Answer Good Answer Popular Question Guru Popular Question Popular Question Favorite Question Good Answer Yearling Nice Answer Enlightened Notable Question Custodian Necromancer Nice Answer Caucus Necromancer Great Answer Necromancer Nice Answer Nice Answer Revival Announcer Necromancer Tag Editor Yearling Nice Question Necromancer Nice Answer Guru Famous Question Nice Answer Nice Answer Nice Answer Nice Answer Popular Question,NULL,code code has main conventional uses in Python polliTo hold the result of the last executed expression statement in an interactiveinterpreter session This precedent was set by the standard CPythoninterpreter and other interpreters have followed suit liliFor translation lookup in i18n see thea href https docs python org library gettext html localizing your module rel noreferrer gettext adocumentation for example as in code like coderaise forms ValidationError Please enter correct username code liliAs general purpose throwaway variable name to indicate that partof function result is being deliberately ignored as in code like codelabel has label text partition code li olpThe latter two purposes can conflict so it is necessary to avoid using code code as throwaway variable in any code block that also uses it for i18n translation many folks prefer double underscore code code as their throwaway variable for exactly this reason The convention is mainly for tuple unpacking iterable tells the reader immediately that we re unpacking tuple but only using the first and last values If we instead write iterable the reader or an automated code linter can reasonably expect all of and to be used later and if they re not it may be sign of bug somewhere code code has main conventional uses in Python polliTo hold the result of the last executed expression statement in an interactiveinterpreter session This precedent was set by the standard CPythoninterpreter and other interpreters have followed suit liliFor translation lookup in i18n see thea href https docs python org library gettext html localizing your module rel noreferrer gettext adocumentation for example as in code like coderaise forms ValidationError Please enter correct username code liliAs general purpose throwaway variable name to indicate that partof function result is being deliberately ignored as in code like codelabel has label text partition code li olpThe latter two purposes can conflict so it is necessary to avoid using code code as throwaway variable in any code block that also uses it for i18n translation many folks prefer double underscore code code as their throwaway variable for exactly this reason Based on the comments ve now added examples for usages directly to the answer code code has main conventional uses in Python polliTo hold the result of the last executed expression statement in an interactiveinterpreter session This precedent was set by the standard CPythoninterpreter and other interpreters have followed suit liliFor translation lookup in i18n see thea href https docs python org library gettext html localizing your module rel noreferrer gettext adocumentation for example as in code like coderaise forms ValidationError Please enter correct username code liliAs general purpose throwaway variable name to indicate that partof function result is being deliberately ignored as in code like codelabel has label text partition code li olpThe latter two purposes can conflict so it is necessary to avoid using code code as throwaway variable in any code block that also uses it for i18n translation many folks prefer double underscore code code as their throwaway variable for exactly this reason added link to the most immediately relevant part of the stdlib gettext docs https docs python org library gettext html localizing your module there are higher level il8n modules out there but this particular convention came from the gettext API and Python adopted it from there code code has main conventional uses in Python polliTo hold the result of the last executed expression statement in an interactiveinterpreter session This precedent was set by the standard CPythoninterpreter and other interpreters have followed suit liliFor translation lookup in i18n see thea href https docs python org library gettext html localizing your module rel noreferrer gettext adocumentation for example as in code like coderaise forms ValidationError Please enter correct username code liliAs general purpose throwaway variable name to indicate that partof function result is being deliberately ignored as in code like codelabel has label text partition code li olpThe latter two purposes can conflict so it is necessary to avoid using code code as throwaway variable in any code block that also uses it for i18n translation many folks prefer double underscore code code as their throwaway variable for exactly this reason le That new feature added in for writing numeric literals and it doesn involve being used as variable It closer to using it as part of larger identifier like functools total ordering or contextlib redirect stdout code code has main conventional uses in Python polliTo hold the result of the last executed expression statement in an interactiveinterpreter session This precedent was set by the standard CPythoninterpreter and other interpreters have followed suit liliFor translation lookup in i18n see thea href https docs python org library gettext html localizing your module rel noreferrer gettext adocumentation for example as in code like coderaise forms ValidationError Please enter correct username code liliAs general purpose throwaway variable name to indicate that partof function result is being deliberately ignored as in code like codelabel has label text partition code li olpThe latter two purposes can conflict so it is necessary to avoid using code code as throwaway variable in any code block that also uses it for i18n translation many folks prefer double underscore code code as their throwaway variable for exactly this reason le That the first use case listed and it is normal variable it just implicitly bound by the interactive loop However ve updated it to say expression statement rather than just statement,0,NULL,NULL 56237,572756,665187,NULL,NULL,NULL,0,NULL,NULL 56238,261635,382785,Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 56239,536360,343767,Popular Question,NULL,NULL,0,NULL,NULL 56240,45685,776837,NULL,NULL,NULL,0,NULL,NULL 56241,551009,1462414,Supporter Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 56242,1316448,183969,Autobiographer Famous Question,NULL,NULL,0,NULL,NULL 56243,679477,411875,Notable Question,NULL,NULL,0,NULL,NULL 56244,1507252,1489526,NULL,NULL,NULL,0,NULL,NULL 56245,576411,1224922,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56246,96106,623854,Good Answer Yearling Yearling Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 56247,101377,88487,Yearling Caucus Excavator Census Yearling Necromancer Custodian Census Guru Caucus Yearling,NULL,NULL,0,NULL,NULL 56248,357883,1467365,Yearling Nice Answer Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 56249,134974,1164808,Nice Answer,NULL,NULL,0,NULL,NULL 56250,1096011,52115,Yearling Revival Popular Question Necromancer Yearling Nice Answer Enlightened Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 56251,46847,320180,Nice Answer Nice Answer Enlightened Yearling Great Answer Good Answer Nice Answer Nice Answer Nice Question Nice Answer Nice Answer Popular Question Nice Answer Enlightened Yearling Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened java Nice Answer Enlightened Nice Answer Enlightened Yearling Curious Nice Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 56252,214340,327500,Popular Question Disciplined Good Answer Yearling,NULL,NULL,0,NULL,NULL 56253,53526,120138,Nice Answer Yearling Nice Answer Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 56254,50958,1454663,NULL,NULL,NULL,0,NULL,NULL 56255,644263,1375629,NULL,NULL,NULL,0,NULL,NULL 56256,102822,1064473,Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Notable Question Popular Question Nice Question Caucus Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56257,74159,494414,Yearling Revival Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 56258,396914,160673,Nice Answer Nice Question Nice Answer Enlightened Popular Question Yearling Necromancer Inquisitive Popular Question Revival Nice Question Yearling Announcer Nice Question Notable Question Popular Question Announcer Caucus Nice Question Revival Popular Question Popular Question Yearling Necromancer Notable Question,NULL,NULL,1,Why does Shake recommend disabling idle garbage collection haskell shake build system pIn the Shake documentation it recommends compiling using the flag code with rtsopts I0 code to disable idle garbage collection Why does Shake recommend that,NULL 56259,413006,997216,Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56260,1135765,511681,NULL,NULL,NULL,0,NULL,NULL 56261,1043088,441672,Yearling Favorite Question Nice Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 56262,53911,205915,NULL,NULL,NULL,0,NULL,NULL 56263,255075,62917,Yearling Nice Answer Enlightened Yearling Caucus Custodian Census Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 56264,78674,1150027,Supporter,NULL,NULL,0,NULL,NULL 56265,99510,742719,Great Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 56266,1103446,958025,Famous Question Nice Answer Necromancer Necromancer Yearling Nice Answer android Notable Question Popular Question Yearling Revival Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 56267,173358,909389,NULL,NULL,NULL,0,NULL,NULL 56268,1408678,909389,NULL,NULL,NULL,0,NULL,NULL 56269,427118,719157,NULL,NULL,NULL,0,NULL,NULL 56270,1537840,1252384,NULL,NULL,NULL,0,NULL,NULL 56271,1504609,411777,NULL,NULL,NULL,0,NULL,NULL 56272,103578,1055,Self-Learner Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 56273,487983,1053329,NULL,NULL,NULL,0,NULL,NULL 56274,317088,347235,NULL,NULL,NULL,0,NULL,NULL 56275,720079,1104099,NULL,NULL,NULL,0,NULL,NULL 56276,1086550,843280,NULL,NULL,NULL,0,NULL,NULL 56277,10595478,843280,NULL,NULL,NULL,0,NULL,NULL 56278,405758,617899,Editor,NULL,NULL,0,NULL,NULL 56279,155585,619,Guru Nice Answer Yearling Good Answer Yearling Census Good Answer Great Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 56280,695766,1489378,Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Nice Question Popular Question Notable Question Famous Question Famous Question Notable Question Nice Answer Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Famous Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Famous Question Famous Question Nice Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question,NULL,Get and Replace AssemblyVersion from AssemblyInfo cs powershell pI have regex using in test only to update the codeAssemblyVersion code from the codeAssemblyInfo cs code file wondering however what the best way to pull and replace this value from the code cs code file itself would be ppHere is my best guess which obviously isn working but the general idea is in place Was hoping for something little more elegant ppre codeGet Content file Foreach Object var if var contains AssemblyVersion temp regex match Groups Value Substring prog LastIndexOf 1234 var var SubString var FirstIndexOf temp var SubString var LastIndexOf var Length code prep strongEDIT strong ppPer request here is the line looking to update in the AssemblyInfo ppre code assembly AssemblyVersion code pre Added the AssemblyVersion line to the post,1,Get and Replace AssemblyVersion from AssemblyInfo cs powershell pI have regex using in test only to update the codeAssemblyVersion code from the codeAssemblyInfo cs code file wondering however what the best way to pull and replace this value from the code cs code file itself would be ppHere is my best guess which obviously isn working but the general idea is in place Was hoping for something little more elegant ppre codeGet Content file Foreach Object var if var contains AssemblyVersion temp regex match Groups Value Substring prog LastIndexOf 1234 var var SubString var FirstIndexOf temp var SubString var LastIndexOf var Length code prep strongEDIT strong ppPer request here is the line looking to update in the AssemblyInfo ppre code assembly AssemblyVersion code pre,NULL 56281,1156470,1028622,NULL,NULL,NULL,0,NULL,NULL 56282,146923,1195830,NULL,NULL,NULL,0,NULL,NULL 56283,41084,991893,NULL,NULL,NULL,0,NULL,NULL 56284,460384,234645,Good Answer Popular Question c# Notable Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question Good Answer Notable Question Notable Question Pundit Famous Question Good Question Popular Question Yearling Nice Question Notable Question Guru,NULL,NULL,0,NULL,NULL 56285,390526,808653,Nice Answer clojure Nice Question Yearling Famous Question Nice Answer Good Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56286,1173357,696019,NULL,NULL,NULL,0,NULL,NULL 56287,399699,580470,NULL,NULL,NULL,0,NULL,NULL 56288,782851,388225,Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 56289,1012233,1033133,NULL,NULL,NULL,0,NULL,NULL 56290,415940,654424,Good Answer Yearling Popular Question Popular Question Yearling Nice Answer Enlightened javascript Yearling,NULL,NULL,0,NULL,NULL 56291,68493,682672,Nice Answer Announcer,NULL,NULL,0,NULL,NULL 56292,335419,809039,NULL,NULL,NULL,0,NULL,NULL 56293,1530157,754827,NULL,NULL,NULL,0,NULL,NULL 56294,33691,754827,NULL,NULL,NULL,0,NULL,NULL 56295,2110,255463,Commentator Popular Question Revival Self-Learner Yearling Popular Question Caucus Critic Necromancer Documentation User Nice Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 56296,168847,812054,NULL,NULL,NULL,0,NULL,NULL 56297,418339,1194682,Popular Question Notable Question Necromancer Caucus Yearling Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 56298,256423,739973,NULL,NULL,NULL,0,NULL,NULL 56299,719960,573131,NULL,NULL,NULL,0,NULL,NULL 56300,270905,385080,Yearling,NULL,NULL,0,NULL,NULL 56301,51584,763530,Revival Nice Answer Yearling Yearling Custodian Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 56302,117063,255981,Popular Question Yearling Necromancer Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 56303,675,496278,NULL,NULL,NULL,0,NULL,NULL 56304,50694,844718,NULL,NULL,NULL,0,NULL,NULL 56305,1361547,1338245,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56306,78104,770821,NULL,NULL,NULL,0,NULL,NULL 56307,185617,988535,NULL,NULL,NULL,0,NULL,NULL 56308,621535,127044,NULL,NULL,NULL,0,NULL,NULL 56309,847305,1196253,NULL,NULL,NULL,0,NULL,NULL 56310,283358,1113791,Civic Duty Revival Yearling Necromancer Necromancer Nice Answer Announcer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 56311,261169,1064628,NULL,NULL,NULL,0,NULL,NULL 56312,7063097,1443369,NULL,NULL,NULL,0,NULL,NULL 56313,331094,1443369,NULL,NULL,NULL,0,NULL,NULL 56314,447959,325206,Yearling Notable Question Popular Question Self-Learner Notable Question Yearling Yearling Benefactor Popular Question Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56315,548315,691480,Notable Question,NULL,NULL,0,NULL,NULL 56316,918105,1234026,Citizen Patrol Yearling Custodian Caucus Popular Question Yearling Popular Question Popular Question Caucus Popular Question Documentation User Yearling Popular Question Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 56317,545578,568877,NULL,NULL,NULL,0,NULL,NULL 56318,232447,14343,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Announcer Good Question Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Guru Nice Answer Great Answer Nice Answer django-models Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Nice Answer Notable Question Nice Answer Good Answer Good Answer Nice Answer Great Answer Announcer Great Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Great Answer Good Answer Great Answer Nice Answer Populist Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Notable Question Guru unicode Nice Answer Guru Good Answer Necromancer Good Answer Nice Answer Nice Answer Enlightened Announcer Guru Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Guru Good Answer Announcer Good Answer Nice Answer Nice Answer Populist Nice Answer Enlightened Famous Question Nice Answer Great Answer Nice Answer Nice Answer Enlightened Census Guru Good Answer Good Answer Good Answer Great Answer Nice Answer Notable Question Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Nice Answer Notable Question Nice Answer inheritance Good Answer Good Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Notable Question Good Answer Nice Answer nose Nice Answer Nice Answer list Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Popular Question Nice Answer Yearling Good Answer Documentation User Nice Question Nice Answer Announcer Great Answer Announcer Great Answer Good Answer Nice Answer Enlightened Nice Answer Guru Notable Question Great Answer Nice Answer Great Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Guru Great Answer Announcer Nice Answer Enlightened Census Announcer Great Answer Announcer Nice Answer Famous Question Good Answer Guru Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Guru Nice Answer Guru Good Answer Populist Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Great Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Necromancer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Good Question Guru Good Answer Guru Good Answer Nice Answer Nice Answer Good Answer Good Answer module import Great Answer Yearling Great Answer Great Answer Nice Answer Enlightened Good Answer python-3.x Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Popular Question Nice Answer Great Answer,NULL,pHere generator that yields the chunks you want ppre codedef chunks Yield successive sized chunks from for in range len yield code prehrpre codeimport pprintpprint pprint list chunks range 10 75 10 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 code prehrpIf you re using Python you should use codexrange code instead of coderange code ppre codedef chunks Yield successive sized chunks from for in xrange len yield code prehrpAlso you can simply use list comprehension instead of writing function Python ppre code for in range len code prepPython version ppre code for in xrange len code pre what do you suggest hand you list with 47 elements How would you like to split it into evenly sized chunks The OP accepted the answer so they are clearly OK with the last differently sized chunk Perhaps the English phrase is imprecise pre codedef weighted choice choices total sum for in choices random uniform total upto for in choices if upto gt return upto assert False Shouldn get here code pre you could use pragma to mark the for loop as partial pragma no branch pThis isn use case that the current Python tracing tool support but it should be possible to build don know how you decide what columns to output In your sample and are the only local variables but larger programs would have more interesting ecosystems of data ppUpdated here simple proof of concept ppre class lang none prettyprint override code import sys def trace frame event arg unused print event frame lineno frame locals return trace sys settrace trace def foo 10 111 21213 b1415 foo code prepwhen run the output is ppre class lang none prettyprint override codecall line 10 line 11 line 13 return 13 code pre the identifier name doesn appear in this code so not sure this code is to blame You ll need to provide complete error reports and details of your code to get the problem resolved pPeople often miss opportunities for modularization You can define function to encapsulate the idea of iterate randomly ppre codedef randomly seq shuffled list seq random shuffle shuffled return iter shuffled code prepthen ppre codefor in randomly range 1000 we re good to go code pre Not sure why returned the iter Returning list should be fine too,0,NULL,NULL 56319,137850,842795,NULL,NULL,NULL,0,NULL,NULL 56320,17304,1293772,NULL,NULL,NULL,0,NULL,NULL 56321,38381,238314,Good Question,NULL,NULL,0,NULL,NULL 56322,124970,63386,Nice Answer Enlightened Yearling Guru Nice Answer Good Answer Caucus Good Answer Yearling Yearling Caucus Guru,NULL,NULL,0,NULL,NULL 56323,57699,412940,NULL,NULL,NULL,0,NULL,NULL 56324,65289,990893,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56325,81707,577022,NULL,NULL,NULL,0,NULL,NULL 56326,1388894,868829,Student Scholar Guru Editor Yearling Caucus Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 56327,133791,334372,Popular Question,NULL,NULL,0,NULL,NULL 56328,29116,833591,Commentator Nice Question,NULL,NULL,0,NULL,NULL 56329,173694,256007,Yearling Popular Question Notable Question Popular Question Notable Question Favorite Question Popular Question Popular Question Nice Answer Notable Question Famous Question Popular Question Yearling Notable Question Census Notable Question Popular Question Popular Question Great Question Necromancer Popular Question Popular Question Popular Question Popular Question Notable Question Great Question Notable Question Popular Question Popular Question Popular Question Census Yearling Notable Question Custodian Promoter Nice Answer Enlightened Good Question Caucus Constituent Popular Question Taxonomist Popular Question Notable Question Good Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56330,346434,1345957,NULL,NULL,NULL,0,NULL,NULL 56331,54545,799323,NULL,NULL,NULL,0,NULL,NULL 56332,194788,1027584,Yearling Good Answer,NULL,NULL,0,NULL,NULL 56333,7160013,858098,NULL,NULL,NULL,0,NULL,NULL 56334,936942,446969,Popular Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 56335,50625,558243,Popular Question Popular Question Unsung Hero Nice Answer Enlightened Popular Question Nice Question Notable Question Popular Question Famous Question Famous Question Popular Question Yearling Good Answer Notable Question Notable Question Guru Popular Question Notable Question Notable Question javascript Custodian Nice Question Yearling Great Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 56336,908411,584262,Yearling Nice Answer Nice Answer Nice Answer Popular Question Excavator Yearling Good Answer Enthusiast Necromancer Caucus Constituent Necromancer Revival Good Answer Yearling Caucus Constituent Good Answer Necromancer Notable Question Nice Answer php,NULL,NULL,0,NULL,NULL 56337,388200,505146,NULL,NULL,NULL,0,NULL,NULL 56338,287425,239065,NULL,NULL,NULL,0,NULL,NULL 56339,36784,1418428,NULL,NULL,NULL,0,NULL,NULL 56340,428220,364273,NULL,NULL,NULL,0,NULL,NULL 56341,144064,646176,NULL,NULL,NULL,0,NULL,NULL 56342,437566,490629,Notable Question,NULL,NULL,0,NULL,NULL 56343,105716,1473024,Yearling Necromancer Notable Question Yearling Popular Question Documentation User Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 56344,281953,613161,Famous Question,NULL,NULL,0,NULL,NULL 56345,3805717,401581,Guru Revival Nice Answer Excavator Yearling Nice Answer Caucus Constituent Popular Question Famous Question Good Answer Custodian Caucus Yearling Constituent Promoter Documentation User Custodian Custodian Notable Question Custodian Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 56346,80239,401581,Guru Revival Nice Answer Excavator Yearling Nice Answer Caucus Constituent Popular Question Famous Question Good Answer Custodian Caucus Yearling Constituent Promoter Documentation User Custodian Custodian Notable Question Custodian Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 56347,184427,1355608,NULL,NULL,NULL,0,NULL,NULL 56348,119654,150802,Enthusiast,NULL,NULL,0,NULL,NULL 56349,10154079,884759,NULL,NULL,NULL,0,NULL,NULL 56350,2480233,588896,NULL,NULL,NULL,0,NULL,NULL 56351,211457,646921,Editor Excavator,NULL,NULL,0,NULL,NULL 56352,185472,558490,NULL,NULL,NULL,0,NULL,NULL 56353,576256,31336,NULL,NULL,NULL,0,NULL,NULL 56354,282910,1027926,Popular Question Necromancer Good Answer Yearling Guru Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 56355,1096865,748633,NULL,NULL,NULL,0,NULL,NULL 56356,399790,747456,Popular Question Nice Question Favorite Question Popular Question Notable Question Yearling Notable Question Notable Question Famous Question Nice Question Famous Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Revival Notable Question Famous Question Famous Question Famous Question Popular Question Popular Question Good Question Yearling Popular Question Famous Question Custodian Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56357,507812,733775,NULL,NULL,NULL,0,NULL,NULL 56358,183230,700022,Nice Answer,NULL,NULL,0,NULL,NULL 56359,462129,221743,NULL,NULL,NULL,0,NULL,NULL 56360,287795,684090,NULL,NULL,NULL,0,NULL,NULL 56361,218223,814290,Census Custodian Documentation User Census,NULL,NULL,0,NULL,NULL 56362,70057,13678,Citizen Patrol Yearling Caucus Constituent Caucus Constituent Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 56363,213991,1518567,NULL,NULL,NULL,0,NULL,NULL 56364,983934,542353,Popular Question Yearling Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 56365,414106,1339564,Census Commentator Teacher Popular Question Census Curious,NULL,NULL,0,NULL,NULL 56366,1386321,86689,Yearling Informed Autobiographer Yearling Organizer Custodian Custodian Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 56367,1237389,280376,NULL,NULL,NULL,0,NULL,NULL 56368,165106,552620,Famous Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56369,140640,106062,Yearling,NULL,NULL,0,NULL,NULL 56370,14792,9968,Good Answer Yearling Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 56371,474232,322823,Popular Question,NULL,NULL,0,NULL,NULL 56372,703355,511387,meteor Good Answer Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 56373,349781,549366,Yearling Great Answer Yearling Revival Caucus,NULL,NULL,0,NULL,NULL 56374,73314,484364,NULL,NULL,NULL,0,NULL,NULL 56375,428882,208709,NULL,NULL,NULL,0,NULL,NULL 56376,6893162,1112454,NULL,NULL,NULL,0,NULL,NULL 56377,30397,1295022,Revival,NULL,NULL,0,NULL,NULL 56378,8283621,1295022,Revival,NULL,NULL,0,NULL,NULL 56379,81639,888483,Yearling,NULL,NULL,0,NULL,NULL 56380,165054,1102348,Yearling Notable Question,NULL,NULL,0,NULL,NULL 56381,118972,1293178,NULL,NULL,NULL,0,NULL,NULL 56382,564421,1098280,NULL,NULL,NULL,0,NULL,NULL 56383,10026,125743,Popular Question,NULL,NULL,0,NULL,NULL 56384,222775,1294147,Commentator Curious Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 56385,594866,207039,NULL,NULL,NULL,0,NULL,NULL 56386,428489,1144182,NULL,NULL,NULL,0,NULL,NULL 56387,1506881,388553,Nice Question Critic Yearling,NULL,NULL,0,NULL,NULL 56388,239272,932833,Self-Learner Necromancer Yearling Popular Question Caucus Constituent Nice Answer Popular Question Popular Question Yearling Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 56389,191749,310021,Yearling Tumbleweed Curious Commentator,NULL,NULL,0,NULL,NULL 56390,472815,967507,NULL,NULL,NULL,0,NULL,NULL 56391,209651,862693,NULL,NULL,NULL,0,NULL,NULL 56392,139847,766564,NULL,NULL,NULL,0,NULL,NULL 56393,9679873,951269,NULL,NULL,NULL,0,NULL,NULL 56394,1294668,951269,NULL,NULL,NULL,0,NULL,NULL 56395,231956,283552,Good Question Yearling Notable Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 56396,23211,539114,NULL,NULL,NULL,0,NULL,NULL 56397,528936,542125,NULL,NULL,NULL,0,NULL,NULL 56398,186914,352542,Yearling Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 56399,106944,89482,Good Answer Nice Question Yearling Good Question Organizer r Tenacious Enthusiast Strunk & White Yearling Mortarboard Caucus Announcer Great Answer Excavator Proofreader ggplot2 Pundit Civic Duty Good Answer dataframe Peer Pressure Great Answer r Good Answer Cleanup Good Answer Refiner Copy Editor Yearling Good Answer Nice Answer Tag Editor Nice Answer,NULL,NULL,0,NULL,NULL 56400,128431,765244,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 56401,344602,200930,Famous Question,NULL,NULL,0,NULL,NULL 56402,37080,431703,Census,NULL,NULL,0,NULL,NULL 56403,1044063,429627,NULL,NULL,NULL,0,NULL,NULL 56404,370848,642359,NULL,NULL,NULL,0,NULL,NULL 56405,513845,291982,Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 56406,537851,392925,Nice Question Revival,NULL,NULL,0,NULL,NULL 56407,330885,202721,Enthusiast Notable Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 56408,1166858,782454,Tumbleweed Student Popular Question,NULL,NULL,0,NULL,NULL 56409,167990,190014,NULL,NULL,NULL,0,NULL,NULL 56410,6668311,1285746,Editor Commentator Supporter Critic Tumbleweed Scholar Yearling Informed Yearling Census Documentation User Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 56411,12087,889578,Curious Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 56412,1054792,309198,NULL,NULL,NULL,0,NULL,NULL 56413,77359,649515,Yearling Famous Question Good Answer Good Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 56414,64172,858721,Notable Question,NULL,NULL,0,NULL,NULL 56415,90239,515284,NULL,NULL,NULL,0,NULL,NULL 56416,312200,1332635,Informed Autobiographer,NULL,NULL,0,NULL,NULL 56417,83096,699630,Famous Question,NULL,NULL,0,NULL,NULL 56418,92226,562400,NULL,NULL,NULL,0,NULL,NULL 56419,51407,563878,Yearling c# Yearling Good Answer Yearling Census,NULL,NULL,0,NULL,NULL 56420,2967,506309,NULL,NULL,NULL,0,NULL,NULL 56421,599427,506309,NULL,NULL,NULL,0,NULL,NULL 56422,47422,1094557,NULL,NULL,NULL,0,NULL,NULL 56423,46858,779899,NULL,NULL,NULL,0,NULL,NULL 56424,66828,580499,NULL,NULL,NULL,0,NULL,NULL 56425,394034,1230796,NULL,NULL,NULL,0,NULL,NULL 56426,181300,693746,NULL,NULL,NULL,0,NULL,NULL 56427,631242,456185,Nice Answer Revival,NULL,NULL,0,NULL,NULL 56428,274317,329104,Yearling Yearling Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 56429,27928,601340,NULL,NULL,NULL,0,NULL,NULL 56430,146465,430968,Editor Excavator Autobiographer,NULL,NULL,0,NULL,NULL 56431,918203,1413025,NULL,NULL,NULL,0,NULL,NULL 56432,442224,1088767,NULL,NULL,NULL,0,NULL,NULL 56433,194998,1192278,NULL,NULL,NULL,0,NULL,NULL 56434,349354,4995,Yearling Custodian Yearling Good Answer Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56435,238628,80630,Popular Question Yearling Nice Answer Good Answer Yearling Self-Learner Yearling Custodian Custodian Custodian Proofreader,NULL,NULL,0,NULL,NULL 56436,7752976,80630,Popular Question Yearling Nice Answer Good Answer Yearling Self-Learner Yearling Custodian Custodian Custodian Proofreader,NULL,NULL,0,NULL,NULL 56437,69983,144170,Nice Answer Yearling Notable Question Civic Duty Pundit Yearling Great Answer Good Answer Announcer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 56438,1152674,594670,NULL,NULL,NULL,0,NULL,NULL 56439,5360,550031,NULL,NULL,NULL,0,NULL,NULL 56440,16093,29544,Good Question Yearling Famous Question Popular Question Caucus Constituent Famous Question Yearling Announcer Famous Question Yearling,NULL,NULL,0,NULL,NULL 56441,372392,260664,NULL,NULL,NULL,0,NULL,NULL 56442,200592,667125,NULL,NULL,NULL,0,NULL,NULL 56443,1551638,19302,Inquisitive Nice Question Nice Answer Enlightened Great Answer Good Question Popular Question Yearling Famous Question Popular Question Notable Question Notable Question Nice Answer Great Answer javascript Nice Answer Yearling Nice Answer Nice Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 56444,199611,1008763,NULL,NULL,NULL,0,NULL,NULL 56445,604994,612094,Yearling Nice Answer Nice Question Nice Answer Enlightened Famous Question Famous Question,NULL,NULL,0,NULL,NULL 56446,594359,1252964,Popular Question,NULL,NULL,0,NULL,NULL 56447,37132,1399873,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56448,1094247,926146,NULL,NULL,NULL,0,NULL,NULL 56449,539281,696460,NULL,NULL,NULL,0,NULL,NULL 56450,32174,9040,Notable Question Popular Question Nice Answer Yearling Nice Answer Enlightened Yearling Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 56451,895163,203244,Scholar,NULL,NULL,0,NULL,NULL 56452,289648,897424,Popular Question Popular Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 56453,75634,872395,Nice Answer Enlightened Populist Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Good Answer javascript razor Nice Answer Enlightened Generalist Good Answer Guru Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Good Answer Good Answer Constituent Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened mvvm Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer validation Nice Answer Enlightened Caucus Guru Constituent Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Documentation User Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Good Answer Guru Guru Caucus Nice Answer Enlightened Constituent Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Guru Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer nlog,NULL,NULL,0,NULL,NULL 56454,128087,94611,Good Answer Yearling,NULL,NULL,0,NULL,NULL 56455,182582,371018,Popular Question Necromancer Yearling Announcer Notable Question Yearling Nice Question Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 56456,335338,264237,NULL,NULL,NULL,0,NULL,NULL 56457,186487,356128,Yearling Notable Question,NULL,NULL,0,NULL,NULL 56458,959681,231034,Notable Question Popular Question Popular Question Notable Question Good Answer Famous Question Yearling Notable Question Popular Question Good Answer Popular Question Good Question Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 56459,457575,1137617,NULL,NULL,NULL,0,NULL,NULL 56460,1514135,1177890,Yearling Nice Answer Enlightened Revival Yearling Curious Yearling Excavator,NULL,NULL,0,NULL,NULL 56461,305405,848072,Necromancer Revival Nice Answer Necromancer Necromancer Autobiographer Yearling Necromancer Necromancer Curious Caucus Constituent Nice Answer Popular Question Announcer Custodian Popular Question Guru Popular Question Nice Answer Announcer Yearling Caucus Necromancer Revival Announcer Announcer Announcer Notable Question Announcer Notable Question Necromancer Nice Question Nice Answer Announcer Caucus Constituent Popular Question Announcer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56462,124793,1142279,Autobiographer Editor Student Suffrage Vox Populi Scholar Commentator Critic Popular Question,NULL,NULL,0,NULL,NULL 56463,477688,1416323,NULL,NULL,NULL,0,NULL,NULL 56464,117944,25079,NULL,NULL,NULL,0,NULL,NULL 56465,16987,1142901,Supporter Informed Yearling Commentator Organizer Yearling Editor Yearling Yearling Citizen Patrol Critic Nice Answer Enlightened Caucus Yearling Nice Answer Nice Answer Enlightened Disciplined Good Answer Good Answer Nice Answer Guru Revival Nice Answer Enlightened Nice Answer Yearling service-worker Nice Answer Enlightened Good Answer Great Answer Necromancer,NULL,NULL,0,NULL,NULL 56466,298139,1468774,Notable Question,NULL,NULL,0,NULL,NULL 56467,149685,866846,Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 56468,140218,192893,Good Answer Yearling,NULL,NULL,0,NULL,NULL 56469,92271,1015865,Nice Answer Custodian,NULL,NULL,0,NULL,NULL 56470,348422,679007,NULL,NULL,NULL,0,NULL,NULL 56471,1375101,709232,Yearling,NULL,NULL,0,NULL,NULL 56472,15553,402692,NULL,NULL,NULL,0,NULL,NULL 56473,236209,687371,NULL,NULL,NULL,0,NULL,NULL 56474,473845,506267,Student,NULL,NULL,0,NULL,NULL 56475,659932,1433143,NULL,NULL,NULL,0,NULL,NULL 56476,899138,1457688,Revival Famous Question Nice Answer Guru Nice Answer Yearling Popular Question Nice Answer Nice Question Necromancer Curious Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56477,20766,65964,Citizen Patrol Curious Yearling,NULL,NULL,0,NULL,NULL 56478,7144409,1102136,Necromancer,NULL,NULL,0,NULL,NULL 56479,138557,1102136,Necromancer,NULL,NULL,0,NULL,NULL 56480,104651,342683,NULL,NULL,NULL,0,NULL,NULL 56481,1189226,611818,Popular Question Nice Answer Notable Question Curious,NULL,NULL,0,NULL,NULL 56482,1066916,208724,NULL,NULL,NULL,0,NULL,NULL 56483,241568,474724,NULL,NULL,NULL,0,NULL,NULL 56484,16084,17112,NULL,NULL,NULL,0,NULL,NULL 56485,24431,251287,Nice Answer,NULL,NULL,0,NULL,NULL 56486,1170785,1097044,NULL,NULL,NULL,0,NULL,NULL 56487,2195487,60171,Popular Question,NULL,NULL,0,NULL,NULL 56488,47621,677724,Student,NULL,NULL,0,NULL,NULL 56489,385910,1419525,Yearling,NULL,NULL,0,NULL,NULL 56490,1007522,705537,NULL,NULL,NULL,0,NULL,NULL 56491,1333457,705537,NULL,NULL,NULL,0,NULL,NULL 56492,398413,1490724,NULL,NULL,NULL,0,NULL,NULL 56493,6807165,968300,NULL,NULL,NULL,0,NULL,NULL 56494,307332,887833,NULL,NULL,NULL,0,NULL,NULL 56495,60472,1219343,Yearling Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 56496,155316,1219343,Yearling Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 56497,375048,887398,NULL,NULL,NULL,0,NULL,NULL 56498,340151,757475,NULL,NULL,NULL,0,NULL,NULL 56499,135003,196594,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56500,102469,520782,NULL,NULL,NULL,0,NULL,NULL 56501,2721550,809232,NULL,NULL,NULL,0,NULL,NULL 56502,277249,1514038,Supporter,NULL,NULL,0,NULL,NULL 56503,1111387,1487698,NULL,NULL,NULL,0,NULL,NULL 56504,219398,1187538,Teacher,NULL,NULL,0,NULL,NULL 56505,245772,639646,Caucus Yearling,NULL,NULL,0,NULL,NULL 56506,1873001,1139021,NULL,NULL,NULL,0,NULL,NULL 56507,247692,499676,NULL,NULL,NULL,0,NULL,NULL 56508,639119,537900,Popular Question Notable Question Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 56509,3132,412244,Popular Question Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 56510,461889,1006238,Tumbleweed,NULL,NULL,0,NULL,NULL 56511,81191,407318,Nice Answer Enlightened Nice Answer Notable Question Notable Question Yearling Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56512,47070,1046874,NULL,NULL,NULL,0,NULL,NULL 56513,5752,1324506,NULL,NULL,NULL,0,NULL,NULL 56514,125193,110820,Notable Question,NULL,NULL,0,NULL,NULL 56515,563455,908930,NULL,NULL,NULL,0,NULL,NULL 56516,261134,1039649,NULL,NULL,NULL,0,NULL,NULL 56517,774154,772264,Popular Question Famous Question Yearling Nice Question Famous Question Popular Question Inquisitive Notable Question Popular Question Popular Question Caucus Popular Question Notable Question Yearling Popular Question Custodian Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56518,4529058,1194506,NULL,NULL,NULL,0,NULL,NULL 56519,548468,1162908,Notable Question Curious Informed Necromancer Critic Documentation User,NULL,NULL,0,NULL,NULL 56520,33491,1546789,NULL,NULL,NULL,0,NULL,NULL 56521,272981,513663,NULL,NULL,NULL,0,NULL,NULL 56522,1535576,1498318,Informed Editor Organizer Teacher Supporter,NULL,NULL,0,NULL,NULL 56523,182797,381807,NULL,NULL,NULL,0,NULL,NULL 56524,124719,1211118,NULL,NULL,NULL,0,NULL,NULL 56525,1954302,204638,Revival,NULL,NULL,0,NULL,NULL 56526,78641,204638,Revival,NULL,NULL,0,NULL,NULL 56527,2239,313399,Announcer Announcer Announcer Announcer Announcer Yearling Announcer Announcer Booster Announcer Announcer Announcer Booster Announcer Announcer Publicist Announcer Announcer Announcer Announcer Publicist Announcer Announcer,NULL,NULL,0,NULL,NULL 56528,98772,1557506,NULL,NULL,NULL,0,NULL,NULL 56529,71967,682889,NULL,NULL,NULL,0,NULL,NULL 56530,12430,931252,Census Census,NULL,NULL,0,NULL,NULL 56531,916154,633340,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56532,543,1105048,NULL,NULL,NULL,0,NULL,NULL 56533,51692,1546325,NULL,NULL,NULL,0,NULL,NULL 56534,192093,924711,Necromancer Revival Caucus Constituent Popular Question Citizen Patrol Custodian Caucus,NULL,NULL,0,NULL,NULL 56535,1039817,1534517,Popular Question,NULL,NULL,0,NULL,NULL 56536,206951,1566411,NULL,NULL,NULL,0,NULL,NULL 56537,225648,470318,Enthusiast,NULL,NULL,0,NULL,NULL 56538,171755,529560,NULL,NULL,NULL,0,NULL,NULL 56539,41317,1019216,NULL,NULL,NULL,0,NULL,NULL 56540,3844749,1019216,NULL,NULL,NULL,0,NULL,NULL 56541,121522,303626,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 56542,1100316,982199,NULL,NULL,NULL,0,NULL,NULL 56543,164506,721629,NULL,NULL,NULL,0,NULL,NULL 56544,3387,1245160,NULL,NULL,NULL,0,NULL,NULL 56545,484217,779594,NULL,NULL,NULL,0,NULL,NULL 56546,332844,866272,NULL,NULL,NULL,0,NULL,NULL 56547,894035,719655,Revival Informed Necromancer,NULL,NULL,0,NULL,NULL 56548,41553,157013,NULL,NULL,NULL,0,NULL,NULL 56549,206929,170320,Famous Question Critic Nice Answer Popular Question Yearling Custodian Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question,NULL,,0,, 56550,178605,192080,Yearling Good Answer Necromancer Yearling Caucus Yearling Yearling Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 56551,81688,955591,Popular Question Famous Question Nice Answer Yearling Popular Question Citizen Patrol Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Good Answer,NULL,,0,, 56552,243510,649851,NULL,NULL,NULL,0,NULL,NULL 56553,40948,1086884,Necromancer Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 56554,233039,422304,Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Famous Question Nice Answer Notable Question Nice Question Famous Question Popular Question Good Question Revival Yearling Notable Question Popular Question Notable Question Famous Question Nice Question Notable Question Notable Question Necromancer Revival Good Question Notable Question Popular Question Nice Answer Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 56555,1119128,530849,Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 56556,5998072,520216,NULL,NULL,NULL,0,NULL,NULL 56557,10335,260319,NULL,NULL,NULL,0,NULL,NULL 56558,211712,405113,Supporter,NULL,NULL,0,NULL,NULL 56559,217737,1376540,Notable Question,NULL,NULL,0,NULL,NULL 56560,181905,1055394,Notable Question,NULL,NULL,0,NULL,NULL 56561,3508826,1028690,NULL,NULL,NULL,0,NULL,NULL 56562,222707,107788,Yearling Good Answer Nice Answer Populist Disciplined Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 56563,256711,235916,Supporter Citizen Patrol Documentation User,NULL,NULL,0,NULL,NULL 56564,912343,1184320,NULL,NULL,NULL,0,NULL,NULL 56565,500502,1165811,Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56566,360170,1467187,NULL,NULL,NULL,0,NULL,NULL 56567,268673,1274705,Yearling,NULL,NULL,0,NULL,NULL 56568,23154,354773,NULL,NULL,NULL,0,NULL,NULL 56569,460991,925770,NULL,NULL,NULL,0,NULL,NULL 56570,2649587,1308906,NULL,NULL,NULL,0,NULL,NULL 56571,619519,560714,Yearling Famous Question Guru Popular Question Nice Question Guru Good Answer Notable Question Caucus Notable Question Yearling Popular Question Good Answer Notable Question Famous Question Famous Question Caucus Notable Question Popular Question Guru Yearling Populist Caucus Notable Question Nice Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 56572,165569,576036,Good Answer,NULL,NULL,0,NULL,NULL 56573,302719,556027,Student Self-Learner Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56574,1871997,706464,Supporter Informed Autobiographer Scholar Teacher Popular Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 56575,212712,706464,Supporter Informed Autobiographer Scholar Teacher Popular Question Commentator Notable Question,NULL,NULL,0,NULL,NULL 56576,614094,637547,Popular Question Enthusiast Caucus Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56577,100605,98115,Nice Answer Popular Question Census,NULL,NULL,0,NULL,NULL 56578,1173132,1292970,NULL,NULL,NULL,0,NULL,NULL 56579,211512,497876,NULL,NULL,NULL,0,NULL,NULL 56580,175773,660792,NULL,NULL,NULL,0,NULL,NULL 56581,342220,1011780,NULL,NULL,NULL,0,NULL,NULL 56582,377373,1148775,Tumbleweed,NULL,NULL,0,NULL,NULL 56583,901137,1042668,NULL,NULL,NULL,0,NULL,NULL 56584,341098,1159803,NULL,NULL,NULL,0,NULL,NULL 56585,254226,91498,NULL,NULL,NULL,0,NULL,NULL 56586,210231,93927,NULL,NULL,NULL,0,NULL,NULL 56587,32348,799341,Commentator Editor Necromancer,NULL,NULL,0,NULL,NULL 56588,156032,533705,Notable Question,NULL,NULL,0,NULL,NULL 56589,538284,329421,NULL,NULL,NULL,0,NULL,NULL 56590,437328,589023,Yearling Popular Question,NULL,NULL,0,NULL,NULL 56591,39298,1085823,NULL,NULL,,0,, 56592,297633,1438190,Yearling Unsung Hero Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 56593,23580,250528,Supporter,NULL,NULL,0,NULL,NULL 56594,183176,848677,Yearling Necromancer Notable Question Notable Question Custodian Curious Promoter Nice Question Informed Civic Duty Caucus Constituent Famous Question Custodian Citizen Patrol Yearling Custodian Organizer Reviewer Census Suffrage Vox Populi Popular Question Reviewer Deputy Necromancer Nice Answer Yearling Popular Question Nice Answer Steward Caucus Constituent Nice Question Enthusiast Documentation User Yearling Popular Question Nice Answer Necromancer Census Necromancer Popular Question Yearling Popular Question Nice Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 56595,43522,36522,Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 56596,26425,1032255,Documentation User,NULL,NULL,0,NULL,NULL 56597,155357,832789,NULL,NULL,NULL,0,NULL,NULL 56598,10006197,653839,Supporter Teacher Informed Autobiographer Critic Famous Question,NULL,NULL,0,NULL,NULL 56599,146419,653839,Supporter Teacher Informed Autobiographer Critic Famous Question,NULL,NULL,0,NULL,NULL 56600,169900,1184631,NULL,NULL,NULL,0,NULL,NULL 56601,162588,884881,Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 56602,1056379,653074,NULL,NULL,NULL,0,NULL,NULL 56603,1355872,772445,NULL,NULL,NULL,0,NULL,NULL 56604,932737,520810,Custodian Good Answer Populist Excavator Good Answer Nice Answer Enlightened Yearling Guru Announcer Good Answer Popular Question Yearling Popular Question Announcer Documentation User swift Guru Notable Question Yearling ios,NULL,NULL,0,NULL,NULL 56605,171004,520810,Custodian Good Answer Populist Excavator Good Answer Nice Answer Enlightened Yearling Guru Announcer Good Answer Popular Question Yearling Popular Question Announcer Documentation User swift Guru Notable Question Yearling ios,NULL,NULL,0,NULL,NULL 56606,101157,523368,Nice Answer,NULL,NULL,0,NULL,NULL 56607,595382,1420230,NULL,NULL,NULL,0,NULL,NULL 56608,34537,1329646,Editor Tumbleweed Curious,NULL,NULL,0,NULL,NULL 56609,139599,950711,NULL,NULL,NULL,0,NULL,NULL 56610,13276,550167,Necromancer Custodian Famous Question Yearling Good Question Custodian Custodian Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 56611,10788,2518,Custodian Nice Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56612,11384,442358,NULL,NULL,NULL,0,NULL,NULL 56613,462492,938335,Yearling Revival Scholar Commentator Student Caucus Good Answer,NULL,NULL,0,NULL,NULL 56614,270377,33065,Good Question Favorite Question,NULL,NULL,0,NULL,NULL 56615,305523,765128,NULL,NULL,NULL,0,NULL,NULL 56616,1122466,670221,Popular Question,NULL,NULL,0,NULL,NULL 56617,274761,147610,NULL,NULL,NULL,0,NULL,NULL 56618,616476,508349,NULL,NULL,NULL,0,NULL,NULL 56619,305365,236308,NULL,NULL,NULL,0,NULL,NULL 56620,439311,406763,NULL,NULL,NULL,0,NULL,NULL 56621,207621,7506,Yearling Great Answer Yearling Yearling Census Civic Duty Yearling,NULL,NULL,0,NULL,NULL 56622,190688,696746,Popular Question,NULL,NULL,0,NULL,NULL 56623,1017830,512349,Tumbleweed,NULL,NULL,0,NULL,NULL 56624,586559,1089190,NULL,NULL,NULL,0,NULL,NULL 56625,54779,1517532,Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56626,1026205,148550,NULL,NULL,NULL,0,NULL,NULL 56627,419103,66673,Good Answer Yearling Announcer Announcer Good Answer Yearling Good Answer Yearling Civic Duty Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 56628,1506560,483125,Nice Answer Popular Question Yearling Notable Question Necromancer Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 56629,217608,638603,Civic Duty Caucus,NULL,NULL,0,NULL,NULL 56630,4824,780290,NULL,NULL,NULL,0,NULL,NULL 56631,200969,371178,Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56632,1332151,805569,Good Answer Yearling Nice Answer Enlightened Citizen Patrol Custodian Popular Question Yearling Notable Question Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 56633,143822,1001401,Announcer android Yearling Caucus Constituent Caucus Constituent Yearling Announcer Census Caucus Constituent Announcer Yearling,NULL,NULL,0,NULL,NULL 56634,33123,233720,Nice Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 56635,8777813,1074840,Nice Question Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56636,67246,560855,NULL,NULL,NULL,0,NULL,NULL 56637,45714,560838,NULL,NULL,NULL,0,NULL,NULL 56638,424043,233277,Curious Popular Question Announcer,NULL,NULL,0,NULL,NULL 56639,274551,1091260,Notable Question Popular Question Notable Question Popular Question Curious Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 56640,428155,1431382,Popular Question Yearling Notable Question Nice Question Stellar Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 56641,211676,1104768,NULL,NULL,NULL,0,NULL,NULL 56642,205967,171678,Famous Question,NULL,NULL,0,NULL,NULL 56643,97296,502780,Teacher Editor,NULL,NULL,0,NULL,NULL 56644,300432,447068,NULL,NULL,NULL,0,NULL,NULL 56645,193968,785126,NULL,NULL,NULL,0,NULL,NULL 56646,192887,139131,NULL,NULL,NULL,0,NULL,NULL 56647,52910,422322,NULL,NULL,NULL,0,NULL,NULL 56648,98047,1204603,NULL,NULL,NULL,0,NULL,NULL 56649,10671,248292,Popular Question Critic,NULL,NULL,0,NULL,NULL 56650,553376,927126,NULL,NULL,NULL,0,NULL,NULL 56651,2689349,364727,Nice Question Famous Question Notable Question Notable Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 56652,24029,196721,NULL,NULL,NULL,0,NULL,NULL 56653,202677,1118938,NULL,NULL,NULL,0,NULL,NULL 56654,69811,475872,Great Answer Notable Question Notable Question Guru Yearling Necromancer Necromancer Yearling Popular Question Nice Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 56655,3315,1378852,Informed,NULL,NULL,0,NULL,NULL 56656,322857,782288,Yearling Yearling Great Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 56657,889169,1039778,Curious Popular Question,NULL,NULL,0,NULL,NULL 56658,239532,1376255,NULL,NULL,NULL,0,NULL,NULL 56659,301362,335730,NULL,NULL,NULL,0,NULL,NULL 56660,270116,534838,Good Answer,NULL,NULL,0,NULL,NULL 56661,644607,950457,NULL,NULL,NULL,0,NULL,NULL 56662,126960,187861,Notable Question,NULL,NULL,0,NULL,NULL 56663,168284,206297,Necromancer Revival Nice Answer Necromancer Good Answer Necromancer Revival Nice Answer Revival Notable Question Yearling Notable Question Popular Question Necromancer Necromancer Necromancer Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Necromancer Nice Question Documentation User Good Answer Popular Question Yearling Nice Answer Nice Answer Announcer Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 56664,1117808,1222420,Yearling Famous Question Great Answer Yearling Nice Question Nice Answer Enlightened javascript Good Question Good Answer Announcer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 56665,115749,827310,Yearling Popular Question Notable Question Nice Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 56666,170186,1424281,Popular Question Good Question Popular Question Notable Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 56667,459159,111531,Popular Question,NULL,NULL,0,NULL,NULL 56668,127165,858880,Famous Question,NULL,NULL,0,NULL,NULL 56669,108451,1110785,NULL,NULL,NULL,0,NULL,NULL 56670,935204,457394,NULL,NULL,NULL,0,NULL,NULL 56671,36433,625019,NULL,NULL,NULL,0,NULL,NULL 56672,74699,1033348,Necromancer Necromancer Necromancer Nice Answer Yearling Good Answer Custodian Revival Announcer Necromancer Yearling Revival Necromancer Nice Answer Great Answer Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 56673,64406,229391,NULL,NULL,NULL,0,NULL,NULL 56674,353996,243861,Yearling Nice Answer Enlightened Nice Answer Enlightened Tumbleweed git docker Nice Answer Enlightened Yearling Good Answer Citizen Patrol Nice Answer Good Answer Popular Question Good Answer Good Answer Yearling Guru Caucus Guru Nice Answer Guru Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 56675,90894,27715,NULL,NULL,NULL,0,NULL,NULL 56676,68176,726501,Yearling Yearling,NULL,NULL,0,NULL,NULL 56677,791377,582424,Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 56678,98060,1533440,Guru Curious Notable Question Caucus Yearling Necromancer Popular Question Popular Question Necromancer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 56679,98094,1533440,Guru Curious Notable Question Caucus Yearling Necromancer Popular Question Popular Question Necromancer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 56680,77346,770578,NULL,NULL,NULL,0,NULL,NULL 56681,102815,543149,NULL,NULL,NULL,0,NULL,NULL 56682,212306,1070514,NULL,NULL,NULL,0,NULL,NULL 56683,660533,906985,NULL,NULL,NULL,0,NULL,NULL 56684,436641,856540,Yearling Guru,NULL,NULL,0,NULL,NULL 56685,122022,278666,Good Question Yearling Famous Question Popular Question Popular Question Yearling Great Question Famous Question Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 56686,649853,199744,NULL,NULL,NULL,0,NULL,NULL 56687,43557,1492798,NULL,NULL,NULL,0,NULL,NULL 56688,1345406,823445,NULL,NULL,NULL,0,NULL,NULL 56689,508156,412752,Nice Answer Enlightened Notable Question Notable Question Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 56690,219521,1400768,Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer java split Great Answer Nice Answer Enlightened Documentation Pioneer Announcer Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Guru Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened string Good Answer Nice Answer Enlightened Yearling javascript Good Answer Caucus Nice Answer Nice Answer Enlightened Nice Answer Announcer Documentation User Good Answer Nice Answer Good Answer Announcer Nice Answer Announcer Caucus Constituent Nice Answer Good Answer Yearling Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Good Answer Announcer Tumbleweed Good Answer,NULL,NULL,0,NULL,NULL 56691,271756,918811,Autobiographer Necromancer,NULL,NULL,0,NULL,NULL 56692,256567,409315,Yearling Organizer Custodian Custodian Curious Reviewer Caucus Announcer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 56693,516840,1438506,Necromancer,NULL,NULL,0,NULL,NULL 56694,899272,1279937,NULL,NULL,NULL,0,NULL,NULL 56695,459845,1005873,NULL,NULL,NULL,0,NULL,NULL 56696,563201,1355157,NULL,NULL,NULL,0,NULL,NULL 56697,356839,1487366,Necromancer,NULL,NULL,0,NULL,NULL 56698,274962,994084,Teacher,NULL,NULL,0,NULL,NULL 56699,44912,994084,Teacher,NULL,NULL,0,NULL,NULL 56700,1504598,901008,NULL,NULL,NULL,0,NULL,NULL 56701,2254538,705003,Popular Question,NULL,NULL,0,NULL,NULL 56702,907398,1050910,Nice Answer,NULL,NULL,0,NULL,NULL 56703,631218,1213598,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 56704,117257,937114,NULL,NULL,NULL,0,NULL,NULL 56705,13343,213403,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56706,64933,14193,Civic Duty Popular Question Nice Question Famous Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Stellar Question Great Answer Notable Question Announcer Notable Question Nice Question Benefactor Yearling Notable Question Nice Question,NULL,blockquote strongReact Router v4 strong blockquotepWith v4 of React Router there are three approaches that you can take to programmatic routing within components polliUse the codewithRouter code higher order component liliUse composition and render code lt Route gt code liliUse the codecontext code li olpReact Router is mostly wrapper around the href https github com ReactTraining history rel noreferrer codehistory code library codehistory code handles interaction with the browser href https developer mozilla org en US docs Web API Window history rel noreferrer codewindow history code for you with its browser and hash histories It also provides memory history which is useful for environments that don have global history This is particularly useful in mobile app development codereact native code and unit testing with Node ppA codehistory code instance has two methods for navigating codepush code and codereplace code If you think of the codehistory code as an array of visited locations codepush code will add new location to the array and codereplace code will replace the current location in the array with the new one Typically you will want to use the codepush code method when you are navigating ppIn earlier versions of React Router you had to create your own codehistory code instance but in v4 the code lt BrowserRouter gt code code lt HashRouter gt code and code lt MemoryRouter gt code components will created browser hash and memory instances for you React Router makes the properties and methods of the codehistory code instance associated with your router available through the context under the coderouter code object ph31 Use the codewithRouter code higher order component h3pThe codewithRouter code higher order component will inject the codehistory code object as prop of the component This allows you to access the codepush code and codereplace code methods without having to deal with the codecontext code ppre class lang js prettyprint override codeimport withRouter from react router dom this also works with react router nativeconst Button withRouter history gt lt button type button onClick gt history push new location gt Click Me lt button gt code preh32 Use composition and render code lt Route gt code h3pThe code lt Route gt code component isn just for matching locations You can render pathless route and strongit will always match the current location strong The code lt Route gt code component passes the same props as codewithRouter code so you will be able to access the codehistory code methods through the codehistory code prop ppre class lang js prettyprint override codeimport Route from react router dom const Button gt lt Route render history gt lt button type button onClick gt history push new location gt Click Me lt button gt gt code preh33 Use the context h3p strong But you probably should not strong ppThe last option is one that you should only use if you feel comfortable working with React href https facebook github io react docs context html rel noreferrer context model Although context is an option it should be stressed that context is an unstable API and React has section href https facebook github io react docs context html why not to use context rel noreferrer Why Not To Use Context in their documentation So use at your own risk ppre class lang js prettyprint override codeconst Button props context gt lt button type button onClick gt context history push history push context history push new location gt Click Me lt button gt you need to specify the context type so that it is available within the componentButton contextTypes history React PropTypes shape push React PropTypes func isRequired code prep1 and are the simplest choices to implement so for most use cases they are your best bets How can you just run history push new location without attaching that behaviour to Button or other DOM element,0,NULL,NULL 56707,291228,516837,NULL,NULL,NULL,0,NULL,NULL 56708,654,828956,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56709,314770,259857,NULL,NULL,NULL,0,NULL,NULL 56710,175355,915198,NULL,NULL,NULL,0,NULL,NULL 56711,913324,871199,Yearling Necromancer Popular Question Popular Question Notable Question Documentation User Popular Question Custodian Caucus Constituent Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56712,1496037,788220,Good Answer Yearling javascript Yearling Yearling,NULL,NULL,0,NULL,NULL 56713,3743568,260015,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56714,55786,296001,NULL,NULL,NULL,0,NULL,NULL 56715,171739,383849,Notable Question,NULL,NULL,0,NULL,NULL 56716,288930,383849,Notable Question,NULL,NULL,0,NULL,NULL 56717,18689,980050,Necromancer Editor Nice Answer Yearling Yearling Good Answer Yearling Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 56718,493243,693538,Necromancer Yearling Announcer Yearling Good Answer Nice Answer Enlightened Excavator Caucus Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 56719,450029,111438,Necromancer Nice Answer Revival Guru Necromancer Good Answer Yearling Notable Question Popular Question Nice Question Necromancer Guru Notable Question Popular Question Popular Question Famous Question Yearling Necromancer Announcer Nice Question Nice Answer Nice Answer Notable Question Necromancer Revival Yearling Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 56720,642686,94203,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 56721,471111,94203,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 56722,1343456,862042,NULL,NULL,NULL,0,NULL,NULL 56723,77134,176311,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 56724,589570,828411,NULL,NULL,NULL,0,NULL,NULL 56725,448567,939546,NULL,NULL,NULL,0,NULL,NULL 56726,155246,553814,NULL,NULL,NULL,0,NULL,NULL 56727,36757,108275,NULL,NULL,NULL,0,NULL,NULL 56728,7226,1208029,Yearling,NULL,NULL,0,NULL,NULL 56729,53529,251510,Yearling Commentator Necromancer,NULL,NULL,0,NULL,NULL 56730,492018,1073602,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56731,162272,72030,Yearling Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56732,414196,2281,Notable Question Yearling Caucus Famous Question Custodian Excavator Informed Custodian Custodian Custodian Custodian Custodian Self-Learner Necromancer Nice Answer Yearling Notable Question Nice Answer Enlightened Documentation User Good Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 56733,1386019,681178,NULL,NULL,NULL,0,NULL,NULL 56734,8087,1382548,NULL,NULL,NULL,0,NULL,NULL 56735,654563,1091215,NULL,NULL,NULL,0,NULL,NULL 56736,1198163,372919,NULL,NULL,NULL,0,NULL,NULL 56737,13427,381359,Census,NULL,NULL,0,NULL,NULL 56738,193703,43815,Excavator Notable Question Explainer Revival Custodian Yearling Nice Answer Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 56739,1484054,181210,Notable Question,NULL,NULL,0,NULL,NULL 56740,59596,754743,NULL,NULL,NULL,0,NULL,NULL 56741,45336,151941,Caucus Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 56742,90794,1484041,Popular Question Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 56743,282309,144695,Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Nice Question Notable Question Nice Question Good Question Notable Question Notable Question Good Answer Nice Question Notable Question Famous Question Good Question Popular Question Famous Question Popular Question Notable Question Popular Question Socratic Yearling Nice Question Notable Question Popular Question Nice Question Good Answer Famous Question Popular Question Necromancer Notable Question Popular Question Nice Question Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Nice Question Notable Question Popular Question Great Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Popular Question Good Question Famous Question Nice Question Nice Question Popular Question Notable Question Notable Question Notable Question Famous Question Good Question Notable Question Nice Question Notable Question Famous Question Notable Question Necromancer Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Yearling Popular Question Popular Question Favorite Question Popular Question Great Question Popular Question Nice Question Good Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56744,10566,662505,NULL,NULL,NULL,0,NULL,NULL 56745,32935,99966,Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 56746,1083030,531244,Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 56747,344693,82657,Popular Question Yearling Notable Question Census Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 56748,329912,357711,NULL,NULL,NULL,0,NULL,NULL 56749,104414,1377266,Informed Census,NULL,NULL,0,NULL,NULL 56750,379861,1427854,NULL,NULL,NULL,0,NULL,NULL 56751,1372813,1567183,Excavator Yearling Nice Answer Enlightened Yearling Commentator,NULL,NULL,0,NULL,NULL 56752,298626,812507,NULL,NULL,NULL,0,NULL,NULL 56753,160,98137,Notable Question Popular Question Yearling Good Answer Good Answer Popular Question Nice Question Popular Question Notable Question Yearling Nice Question Famous Question Popular Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 56754,1505810,629922,Informed,NULL,NULL,0,NULL,NULL 56755,1291319,835743,Revival Autobiographer Yearling Commentator,NULL,NULL,0,NULL,NULL 56756,168636,449988,Editor Supporter Teacher Student,NULL,NULL,0,NULL,NULL 56757,383074,415554,Autobiographer,NULL,NULL,0,NULL,NULL 56758,280824,155392,Nice Answer Notable Question Nice Question Nice Question Popular Question Popular Question Yearling Notable Question Famous Question Good Question Guru Nice Question Popular Question Yearling Nice Answer Nice Answer Enlightened Good Answer Notable Question Great Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 56759,178375,525984,Famous Question Yearling,NULL,NULL,0,NULL,NULL 56760,4283194,1538130,Student Editor Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 56761,175025,1151354,NULL,NULL,NULL,0,NULL,NULL 56762,89373,1056963,Necromancer Yearling Student,NULL,NULL,0,NULL,NULL 56763,83191,268022,NULL,NULL,NULL,0,NULL,NULL 56764,1392250,979320,NULL,NULL,NULL,0,NULL,NULL 56765,4979,480038,NULL,NULL,NULL,0,NULL,NULL 56766,18358,258550,NULL,NULL,NULL,0,NULL,NULL 56767,221205,228432,NULL,NULL,NULL,0,NULL,NULL 56768,30486,1119490,NULL,NULL,NULL,0,NULL,NULL 56769,1508795,1402374,Popular Question Curious Yearling Favorite Question,NULL,NULL,0,NULL,NULL 56770,1525358,921934,NULL,NULL,NULL,0,NULL,NULL 56771,51903,921934,NULL,NULL,NULL,0,NULL,NULL 56772,9560310,840452,NULL,NULL,NULL,0,NULL,NULL 56773,824566,236260,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 56774,935484,236260,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 56775,278244,1154200,Yearling Autobiographer Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 56776,2926757,1154200,Yearling Autobiographer Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 56777,1353227,312662,Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56778,181336,300558,Good Answer Yearling,NULL,NULL,0,NULL,NULL 56779,8678,800793,Guru Yearling Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 56780,114884,98273,Popular Question,NULL,NULL,0,NULL,NULL 56781,2714067,929750,NULL,NULL,NULL,0,NULL,NULL 56782,376478,170210,Notable Question Yearling Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56783,9995,1185242,Popular Question Yearling Notable Question Popular Question Popular Question Famous Question Popular Question Nice Answer Popular Question Notable Question Nice Question Nice Question Popular Question Famous Question Popular Question Good Question Popular Question Notable Question Nice Question Notable Question Notable Question Nice Question Popular Question Good Question Notable Question Notable Question Famous Question Good Question Famous Question Popular Question Nice Question Notable Question Favorite Question Popular Question Famous Question Nice Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Nice Question Nice Question Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Notable Question Popular Question Famous Question Popular Question Promoter Popular Question Popular Question Popular Question Great Question Good Question Popular Question Notable Question Notable Question Notable Question Yearling Nice Question Notable Question Revival Notable Question Popular Question Famous Question Popular Question Popular Question Favorite Question Notable Question Popular Question Popular Question Famous Question Nice Question Socratic Custodian Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,How do bind to list of checkbox values with AngularJS javascript angularjs pI have few checkboxes ppre code lt input type checkbox value apple checked gt lt input type checkbox value orange gt lt input type checkbox value pear checked gt lt input type checkbox value naartjie gt code prepThat would like to bind to list in my controller such that whenever checkbox is changed the controller maintains list of all the checked values for example code apple pear code ppng model seems to only be able to bind the value of one single checkbox to variable in the controller ppIs there another way to do it so that can bind the four checkboxes to list in the controller hehe just seen this You re right,1,How do draw text in rectangle in D3 javascript d3 js pI am using this calendar example href http bl ocks org KathyZ c2d4694c953419e0509b rel nofollow http bl ocks org KathyZ c2d4694c953419e0509b and want to put the value that appears in the mouseover inside each cell so it always visible ve tried adding this which thought would print in each cell but it doesn ppre coderect append text attr dx 65em attr dy 65em attr opacity text function return code prepbut it doesn do anything,NULL 56784,330481,338724,Good Question Yearling Guru Revival Yearling Caucus Excavator Yearling Great Answer,NULL,NULL,0,NULL,NULL 56785,84306,243372,Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 56786,654991,1277670,NULL,NULL,NULL,0,NULL,NULL 56787,85609,898952,Notable Question Notable Question Yearling Popular Question Nice Question Promoter Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 56788,54073,964602,NULL,NULL,NULL,0,NULL,NULL 56789,1036679,690221,Nice Question,NULL,NULL,0,NULL,NULL 56790,90072,99436,Popular Question,NULL,NULL,0,NULL,NULL 56791,11247,427943,Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 56792,167631,236117,NULL,NULL,NULL,0,NULL,NULL 56793,4764,1502152,NULL,NULL,NULL,0,NULL,NULL 56794,91667,1072064,Good Question Famous Question Popular Question Caucus Constituent Notable Question Yearling Curious Peer Pressure Yearling Yearling,NULL,NULL,0,NULL,NULL 56795,488155,1081941,Necromancer Yearling Revival Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 56796,97376,946069,Famous Question Good Question Yearling Custodian Yearling Popular Question Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56797,9579,1007956,Editor Excavator Necromancer Yearling Commentator Nice Answer Critic Custodian Yearling Self-Learner Good Answer,NULL,NULL,0,NULL,NULL 56798,223513,217346,Critic Yearling Curious Scholar Civic Duty,NULL,NULL,0,NULL,NULL 56799,585531,1316492,NULL,NULL,NULL,0,NULL,NULL 56800,886141,1176027,Tumbleweed,NULL,NULL,0,NULL,NULL 56801,194535,418719,Census,NULL,NULL,0,NULL,NULL 56802,354734,1237959,Caucus,NULL,NULL,0,NULL,NULL 56803,192584,184654,NULL,NULL,NULL,0,NULL,NULL 56804,369519,604086,NULL,NULL,NULL,0,NULL,NULL 56805,1332104,127846,Nice Answer,NULL,NULL,0,NULL,NULL 56806,362859,1407299,NULL,NULL,NULL,0,NULL,NULL 56807,183634,769659,Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 56808,293271,14075,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56809,425355,226439,NULL,NULL,NULL,0,NULL,NULL 56810,479877,655404,Editor Supporter Commentator Informed Autobiographer Organizer Teacher Critic Explainer Yearling Excavator Citizen Patrol Curious Enthusiast Caucus Constituent Caucus Constituent Yearling Revival Notable Question Custodian,NULL,pI ve always kept this around in util file You can use it as mixin on your own classes too ppre codeclass dotdict dict dot notation access to dictionary attributes getattr dict get setattr dict setitem delattr dict delitem mydict val it works nested dict val nested works too mydict dotdict mydict mydict val it works mydict nested dotdict nested dict mydict nested val nested works too code pre Any reason why you use dict get and not dict getitem pI ve always kept this around in util file You can use it as mixin on your own classes too ppre codeclass dotdict dict dot notation access to dictionary attributes getattr dict get setattr dict setitem delattr dict delitem mydict val it works nested dict val nested works too mydict dotdict mydict mydict val it works mydict nested dotdict nested dict mydict nested val nested works too code pre After experimenting with it it seems get is indeed bad idea since it will return None instead of raising an error for missing items,0,NULL,NULL 56811,433960,1267685,Popular Question,NULL,NULL,0,NULL,NULL 56812,77487,848808,Supporter Nice Answer Yearling Critic Necromancer Necromancer Yearling Scholar Commentator Nice Answer,NULL,NULL,0,NULL,NULL 56813,552310,357931,Editor Scholar Revival Student Necromancer Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 56814,386149,686557,Yearling Nice Answer Enlightened Good Question Yearling,NULL,NULL,0,NULL,NULL 56815,102435,914198,Yearling Nice Answer Necromancer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 56816,793608,1335245,Good Answer Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question Necromancer Excavator Notable Question Yearling Notable Question Popular Question Popular Question Nice Answer Documentation User Good Question Notable Question Notable Question Revival Popular Question Yearling Notable Question Nice Answer Nice Question Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 56817,218164,724068,Announcer Nice Answer Yearling Caucus Custodian Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 56818,42042,913027,Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer ruby-on-rails-3 Nice Answer Enlightened Nice Answer Yearling Announcer Yearling Guru,NULL,NULL,0,NULL,NULL 56819,48317,295796,NULL,NULL,NULL,0,NULL,NULL 56820,290925,311778,Yearling Popular Question Notable Question Necromancer Popular Question Editor Popular Question,NULL,NULL,0,NULL,NULL 56821,727250,1561536,NULL,NULL,NULL,0,NULL,NULL 56822,5398,608595,NULL,NULL,NULL,0,NULL,NULL 56823,1169390,838309,Caucus Constituent Famous Question Necromancer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 56824,154361,86046,Nice Question Nice Answer Yearling Nice Answer Popular Question Famous Question Nice Question Popular Question Good Answer Popular Question Good Question Yearling Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56825,582399,283406,NULL,NULL,NULL,0,NULL,NULL 56826,532807,553580,Good Answer Yearling Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 56827,227231,590984,Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 56828,924304,814401,Popular Question Yearling Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 56829,21375,1151423,Supporter Scholar Student,NULL,NULL,0,NULL,NULL 56830,36550,776895,NULL,NULL,NULL,0,NULL,NULL 56831,615759,847287,NULL,NULL,NULL,0,NULL,NULL 56832,165354,981476,Nice Answer,NULL,NULL,0,NULL,NULL 56833,360293,226733,Revival Notable Question Tumbleweed Promoter Curious,NULL,NULL,0,NULL,NULL 56834,563078,459556,Revival Necromancer Popular Question,NULL,NULL,0,NULL,NULL 56835,453257,992295,NULL,NULL,NULL,0,NULL,NULL 56836,81748,1100456,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56837,407822,1225396,Supporter Critic Yearling Popular Question,NULL,NULL,0,NULL,NULL 56838,8764815,1390788,Popular Question Tumbleweed Yearling Critic Notable Question Documentation User Caucus Custodian Civic Duty Necromancer Yearling,NULL,NULL,0,NULL,NULL 56839,12961,629356,Revival Yearling Necromancer Notable Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 56840,290508,867772,NULL,NULL,NULL,0,NULL,NULL 56841,3001181,1291436,Supporter,NULL,NULL,0,NULL,NULL 56842,341063,1291436,Supporter,NULL,NULL,0,NULL,NULL 56843,633479,285321,NULL,NULL,NULL,0,NULL,NULL 56844,1506648,823941,NULL,NULL,NULL,0,NULL,NULL 56845,491830,268532,NULL,NULL,NULL,0,NULL,NULL 56846,49119,374011,Famous Question,NULL,NULL,0,NULL,NULL 56847,99266,9137,Good Question Yearling Nice Answer Good Answer Good Question Yearling Good Question Documentation User Nice Answer Enlightened Famous Question Great Answer Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 56848,734979,918814,NULL,NULL,NULL,0,NULL,NULL 56849,29098,348664,NULL,NULL,NULL,0,NULL,NULL 56850,3771228,1217368,NULL,NULL,NULL,0,NULL,NULL 56851,64888,1217368,NULL,NULL,NULL,0,NULL,NULL 56852,161023,395180,Curious Nice Answer Custodian Popular Question Census Nice Answer Altruist,NULL,NULL,0,NULL,NULL 56853,239752,198856,Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Answer Enlightened Revival Famous Question Yearling Custodian Revival Yearling Nice Question,NULL,NULL,0,NULL,NULL 56854,16729,291926,NULL,NULL,NULL,0,NULL,NULL 56855,218056,671516,NULL,NULL,NULL,0,NULL,NULL 56856,63285,473542,NULL,NULL,NULL,0,NULL,NULL 56857,220634,1048479,Nice Question Necromancer node.js Great Answer Notable Question Nice Answer Enlightened Guru Notable Question Famous Question Great Answer Nice Question Nice Answer Enlightened Nice Answer javascript Nice Question Nice Answer Popular Question Yearling Great Answer Announcer Famous Question Nice Answer Enlightened Good Question Nice Answer Nice Answer Announcer Good Answer css Announcer Nice Answer Good Answer Caucus Nice Answer Enlightened Popular Question Nice Answer Enlightened Announcer Yearling Revival Guru Nice Question Good Answer Caucus Popular Question Announcer Notable Question Nice Answer Revival Inquisitive Good Answer Yearling,NULL,NULL,0,NULL,NULL 56858,3119229,1128052,Critic,NULL,NULL,0,NULL,NULL 56859,83179,429940,Famous Question Necromancer Yearling Good Question Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 56860,794605,1310579,NULL,NULL,NULL,0,NULL,NULL 56861,25384,337196,Good Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 56862,3808339,337196,Good Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 56863,244251,1149679,NULL,NULL,NULL,0,NULL,NULL 56864,230139,62054,Yearling Good Answer Yearling Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 56865,302846,18722,Stellar Question Favorite Question Popular Question Yearling Great Question Nice Question Nice Answer Notable Question Nice Question Nice Question Famous Question Yearling Notable Question Famous Question Stellar Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 56866,151850,1169714,NULL,NULL,NULL,0,NULL,NULL 56867,64112,1148931,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56868,13322,67995,Census Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 56869,553256,876877,NULL,NULL,NULL,0,NULL,NULL 56870,103697,161104,Famous Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56871,75232,126682,NULL,NULL,NULL,0,NULL,NULL 56872,332446,1359859,NULL,NULL,NULL,0,NULL,NULL 56873,231879,220687,Yearling Good Question Caucus Popular Question Nice Answer Famous Question Nice Answer Notable Question Nice Question Yearling Excavator Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56874,126105,991380,NULL,NULL,NULL,0,NULL,NULL 56875,1521195,212879,Yearling Curious Census Peer Pressure,NULL,NULL,0,NULL,NULL 56876,74143,92382,NULL,NULL,NULL,0,NULL,NULL 56877,626951,1283275,Teacher,NULL,NULL,0,NULL,NULL 56878,65774,1393301,NULL,NULL,NULL,0,NULL,NULL 56879,11213,422133,Guru Great Answer Nice Answer Necromancer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer Yearling Good Answer Guru Great Answer Guru Revival Nice Answer Enlightened Nice Answer Enlightened Great Answer objective-c Nice Answer Enlightened Yearling Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 56880,204636,339149,Revival Necromancer,NULL,NULL,0,NULL,NULL 56881,165319,154274,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 56882,32795,946504,NULL,NULL,NULL,0,NULL,NULL 56883,342219,164234,go Nice Answer Good Answer Popular Question Good Answer Excavator Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Yearling Nice Answer Guru Caucus Constituent Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Guru Great Answer Nice Answer Caucus Good Answer Good Answer Nice Answer Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Census Announcer Guru Caucus Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer Yearling Good Answer Nice Answer Great Answer Announcer,NULL,NULL,0,NULL,NULL 56884,158937,980690,NULL,NULL,NULL,0,NULL,NULL 56885,152824,980690,NULL,NULL,NULL,0,NULL,NULL 56886,1011280,34478,Good Answer Notable Question Yearling Popular Question Good Answer Nice Question Yearling Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 56887,9898,34478,Good Answer Notable Question Yearling Popular Question Good Answer Nice Question Yearling Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 56888,11636,1088440,NULL,NULL,NULL,0,NULL,NULL 56889,343901,1391324,NULL,NULL,NULL,0,NULL,NULL 56890,1288,110681,Good Answer Guru Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 56891,2282,178802,NULL,NULL,NULL,0,NULL,NULL 56892,245471,507135,NULL,NULL,NULL,0,NULL,NULL 56893,99735,166484,Popular Question Reviewer Famous Question Famous Question Good Answer Yearling Nice Question Nice Answer Nice Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Custodian Yearling Notable Question Popular Question Custodian Notable Question Caucus Nice Question Nice Question Famous Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56894,2384620,119741,Popular Question Good Question Popular Question Yearling Investor Altruist Popular Question Caucus Notable Question Notable Question Necromancer Announcer Announcer Yearling Nice Answer Popular Question Custodian Custodian Caucus Necromancer Yearling Famous Question,NULL,How to place div on the right side with absolute position html css css position absolute pI ve page where dynamic message box has to be displayed without disturbing the actual page This message box has to appear at the top right corner of the page overlapping the existing contents ppI ve tried to use codeposition absolute code but then unable to place it in the right corner Also unable to use codeleft code since ve to support responsive design from Bootstrap ppHere is sample markup ppre code lt html gt lt body gt lt div class container gt lt Need to place this div at the top right of the page gt lt div class ajax message gt lt div class row gt lt div class span9 gt lt div class alert gt lt class close icon icon remove gt lt gt lt div class message content gt Some message goes here lt div gt lt div gt lt div gt lt div gt lt div gt lt Page contents starts here These are dynamic gt lt div class row gt lt div class span12 inner col gt lt h2 gt Documents lt h2 gt lt div gt lt div gt lt div gt lt body gt lt html gt code prepThis message box should have width of code50 code with respect to the code container code and the left side of the message box should not be overlapped by it ie we should be able to click select the contents of the left side ppPlease find sample href http jsfiddle net arunpjohny f9hKE here ppPlease help me to solve this problem http stackoverflow com questions 11333624 css float right and position absolute doesnt work together,0,NULL,NULL 56895,127970,9532,Yearling,NULL,NULL,0,NULL,NULL 56896,819788,1118754,NULL,NULL,NULL,0,NULL,NULL 56897,266757,1493450,NULL,NULL,NULL,0,NULL,NULL 56898,309927,802005,Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 56899,701338,1166402,Announcer,NULL,NULL,0,NULL,NULL 56900,26050,1166402,Announcer,NULL,NULL,0,NULL,NULL 56901,100693,452248,NULL,NULL,NULL,0,NULL,NULL 56902,87563,1375161,NULL,NULL,NULL,0,NULL,NULL 56903,838865,678187,NULL,NULL,NULL,0,NULL,NULL 56904,169938,325432,NULL,NULL,NULL,0,NULL,NULL 56905,30715,689199,NULL,NULL,NULL,0,NULL,NULL 56906,77044,850319,Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 56907,277653,1247553,NULL,NULL,NULL,0,NULL,NULL 56908,440770,1436444,Popular Question,NULL,NULL,0,NULL,NULL 56909,243772,1009282,NULL,NULL,NULL,0,NULL,NULL 56910,527107,786273,NULL,NULL,NULL,0,NULL,NULL 56911,1724833,450374,Curious Notable Question,NULL,NULL,0,NULL,NULL 56912,788699,1231510,NULL,NULL,NULL,0,NULL,NULL 56913,1502955,1231510,NULL,NULL,NULL,0,NULL,NULL 56914,272896,21399,Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer Caucus Popular Question Yearling Good Answer Pundit Good Answer Yearling Disciplined Notable Question,NULL,NULL,0,NULL,NULL 56915,98337,224354,Good Question Announcer Necromancer Popular Question Electorate Announcer vim Yearling Nice Answer Famous Question Necromancer Good Answer Necromancer Announcer Announcer Announcer Yearling Nice Question,NULL,NULL,0,NULL,NULL 56916,10204,126918,NULL,NULL,NULL,0,NULL,NULL 56917,369601,308308,NULL,NULL,NULL,0,NULL,NULL 56918,176874,1483762,Self-Learner,NULL,NULL,0,NULL,NULL 56919,3734,283844,Yearling Nice Answer Famous Question Famous Question Self-Learner Nice Answer Yearling Popular Question Good Question Good Answer Notable Question Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 56920,409,22468,Favorite Question Famous Question Yearling Notable Question Stellar Question Yearling Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 56921,415802,867503,NULL,NULL,NULL,0,NULL,NULL 56922,629642,913363,Nice Question,NULL,NULL,0,NULL,NULL 56923,91627,224135,Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56924,442243,497312,NULL,NULL,NULL,0,NULL,NULL 56925,21076,318057,NULL,NULL,NULL,0,NULL,NULL 56926,322,54655,Caucus Constituent Critic Informed Census,NULL,NULL,0,NULL,NULL 56927,115653,1024627,Nice Question Popular Question Necromancer Yearling Revival Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 56928,77468,548764,NULL,NULL,NULL,0,NULL,NULL 56929,591480,209131,Popular Question Nice Question Nice Question Yearling Yearling Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 56930,82156,285792,Yearling Census Documentation User,NULL,NULL,0,NULL,NULL 56931,129955,220847,Notable Question Favorite Question Great Answer Famous Question Good Question Yearling Popular Question Popular Question Popular Question Nice Answer Notable Question Good Answer Documentation User Citizen Patrol Yearling macos Necromancer Necromancer Nice Question Nice Answer Custodian Yearling,NULL,pHere some code that use it based on the Growl source ppre code BOOL willStartAtLogin NSURL itemURL Boolean foundIt false LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr foundIt CFEqual URL itemURL CFRelease URL if foundIt break CFRelease loginItems return BOOL foundIt void setStartAtLogin NSURL itemURL enabled BOOL enabled OSStatus status LSSharedFileListItemRef existingItem NULL LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr Boolean foundIt CFEqual URL itemURL CFRelease URL if foundIt existingItem item break if enabled amp amp existingItem NULL LSSharedFileListInsertItemURL loginItems kLSSharedFileListItemBeforeFirst NULL NULL CFURLRef itemURL NULL NULL else if enabled amp amp existingItem NULL LSSharedFileListItemRemove loginItems existingItem CFRelease loginItems code prepIf you want an easy to implement checkbox make code BOOL startAtLogin code in one of your classes and implement it as follows Just bind the checkbox value to the property and it should all work seamlessly ppre code NSURL appURL return NSURL fileURLWithPath NSBundle mainBundle bundlePath BOOL startAtLogin return LoginItem willStartAtLogin self appURL void setStartAtLogin BOOL enabled self willChangeValueForKey startAtLogin LoginItem setStartAtLogin self appURL enabled enabled self didChangeValueForKey startAtLogin code pre Good point But why entries starting with the app name rather than an exact match pHere some code that use it based on the Growl source ppre code BOOL willStartAtLogin NSURL itemURL Boolean foundIt false LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr foundIt CFEqual URL itemURL CFRelease URL if foundIt break CFRelease loginItems return BOOL foundIt void setStartAtLogin NSURL itemURL enabled BOOL enabled OSStatus status LSSharedFileListItemRef existingItem NULL LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr Boolean foundIt CFEqual URL itemURL CFRelease URL if foundIt existingItem item break if enabled amp amp existingItem NULL LSSharedFileListInsertItemURL loginItems kLSSharedFileListItemBeforeFirst NULL NULL CFURLRef itemURL NULL NULL else if enabled amp amp existingItem NULL LSSharedFileListItemRemove loginItems existingItem CFRelease loginItems code prepIf you want an easy to implement checkbox make code BOOL startAtLogin code in one of your classes and implement it as follows Just bind the checkbox value to the property and it should all work seamlessly ppre code NSURL appURL return NSURL fileURLWithPath NSBundle mainBundle bundlePath BOOL startAtLogin return LoginItem willStartAtLogin self appURL void setStartAtLogin BOOL enabled self willChangeValueForKey startAtLogin LoginItem setStartAtLogin self appURL enabled enabled self didChangeValueForKey startAtLogin code pre agree checking every bundle ID will be the best option Or at the very least if speed of checking every ID turns out to be an issue check the bundle ID after making the partial name match to ensure we re not removing the entry for an unrelated app with similar name,0,NULL,NULL 56932,217740,1221825,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 56933,16480,395,Yearling,NULL,NULL,0,NULL,NULL 56934,204593,696418,Popular Question,NULL,NULL,0,NULL,NULL 56935,341312,1015835,NULL,NULL,NULL,0,NULL,NULL 56936,553414,782809,NULL,NULL,NULL,0,NULL,NULL 56937,1311505,368863,NULL,NULL,NULL,0,NULL,NULL 56938,129589,368863,NULL,NULL,NULL,0,NULL,NULL 56939,60596,489238,Yearling,NULL,NULL,0,NULL,NULL 56940,250689,505178,NULL,NULL,NULL,0,NULL,NULL 56941,457546,1450183,NULL,NULL,NULL,0,NULL,NULL 56942,105222,84262,Yearling Organizer Popular Question Nice Question Good Answer Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Famous Question Notable Question Notable Question Yearling Good Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 56943,19808,1192825,NULL,NULL,NULL,0,NULL,NULL 56944,370488,490838,NULL,NULL,NULL,0,NULL,NULL 56945,77588,35807,Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 56946,50666,559966,NULL,NULL,NULL,0,NULL,NULL 56947,431454,862467,NULL,NULL,NULL,0,NULL,NULL 56948,395897,849077,NULL,NULL,NULL,0,NULL,NULL 56949,132602,940803,NULL,NULL,NULL,0,NULL,NULL 56950,110078,922168,Great Answer Custodian Yearling Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 56951,281048,1383141,NULL,NULL,NULL,0,NULL,NULL 56952,114233,1443860,Popular Question Notable Question Scholar Commentator Curious Supporter,NULL,NULL,0,NULL,NULL 56953,5871651,321205,Nice Question Good Question,NULL,NULL,0,NULL,NULL 56954,331363,562176,NULL,NULL,NULL,0,NULL,NULL 56955,168697,905782,NULL,NULL,NULL,0,NULL,NULL 56956,65146,210848,NULL,NULL,NULL,0,NULL,NULL 56957,6837304,210848,NULL,NULL,NULL,0,NULL,NULL 56958,1513283,936089,Yearling Nice Question Famous Question Famous Question Good Question Nice Question Critic Yearling,NULL,NULL,0,NULL,NULL 56959,448838,246370,Popular Question Nice Answer Enlightened Popular Question Popular Question Yearling Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56960,51095,1201456,Famous Question Good Question,NULL,NULL,0,NULL,NULL 56961,375194,796533,NULL,NULL,NULL,0,NULL,NULL 56962,451875,340710,Notable Question,NULL,NULL,0,NULL,NULL 56963,195445,1191167,NULL,NULL,NULL,0,NULL,NULL 56964,70097,510522,NULL,NULL,NULL,0,NULL,NULL 56965,1886589,510522,NULL,NULL,NULL,0,NULL,NULL 56966,188730,288035,Yearling,NULL,NULL,0,NULL,NULL 56967,291204,704104,Documentation Pioneer Critic Yearling Documentation User,NULL,NULL,0,NULL,NULL 56968,5324,1368073,Nice Answer Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 56969,112299,838127,NULL,NULL,NULL,0,NULL,NULL 56970,1310370,705389,NULL,NULL,NULL,0,NULL,NULL 56971,2873,301761,Nice Question Guru Good Answer Yearling Good Answer Good Question Yearling Famous Question Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 56972,882567,1091283,Popular Question Caucus,NULL,NULL,0,NULL,NULL 56973,223659,1122898,NULL,NULL,NULL,0,NULL,NULL 56974,76946,1465275,NULL,NULL,NULL,0,NULL,NULL 56975,3751551,1465275,NULL,NULL,NULL,0,NULL,NULL 56976,35676,1514061,Tumbleweed,NULL,NULL,0,NULL,NULL 56977,346027,475083,NULL,NULL,NULL,0,NULL,NULL 56978,430115,278732,Popular Question Popular Question Caucus Nice Answer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 56979,93615,415287,NULL,NULL,NULL,0,NULL,NULL 56980,16535,699304,Popular Question Yearling Notable Question Announcer Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Notable Question Yearling Notable Question android Famous Question Guru Notable Question,NULL,NULL,0,NULL,NULL 56981,1312161,750308,NULL,NULL,NULL,0,NULL,NULL 56982,677548,473429,Necromancer,NULL,NULL,0,NULL,NULL 56983,512702,768643,NULL,NULL,NULL,0,NULL,NULL 56984,905725,1202247,NULL,NULL,NULL,0,NULL,NULL 56985,5568045,637541,Custodian Peer Pressure,NULL,NULL,0,NULL,NULL 56986,220898,940653,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 56987,542374,993684,NULL,NULL,NULL,0,NULL,NULL 56988,49915,243257,NULL,NULL,NULL,0,NULL,NULL 56989,135146,619336,NULL,NULL,NULL,0,NULL,NULL 56990,422166,530160,Nice Answer Enlightened Popular Question Popular Question Yearling Popular Question Good Question Famous Question Popular Question Popular Question Custodian Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 56991,104558,1095657,NULL,NULL,NULL,0,NULL,NULL 56992,43674,365104,Informed Editor Critic,NULL,NULL,0,NULL,NULL 56993,83471,1092357,NULL,NULL,NULL,0,NULL,NULL 56994,165346,703051,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 56995,307988,138939,Yearling Notable Question Pundit Nice Answer Yearling Necromancer Famous Question Civic Duty Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 56996,89335,117675,NULL,NULL,NULL,0,NULL,NULL 56997,87138,1517971,Informed,NULL,NULL,0,NULL,NULL 56998,137549,895151,NULL,NULL,NULL,0,NULL,NULL 56999,300438,2653,Notable Question Nice Answer Necromancer Nice Answer Enlightened Nice Question Popular Question Notable Question Famous Question Yearling Famous Question javascript Caucus Nice Question Notable Question Notable Question Necromancer Necromancer Popular Question Necromancer Good Answer Nice Question Yearling Notable Question Favorite Question Great Answer Nice Question Popular Question Popular Question Notable Question Notable Question Nice Question Nice Answer Popular Question Nice Answer Good Question Yearling Famous Question Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 57000,148633,143911,Popular Question Popular Question Yearling Necromancer Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 57001,1131337,592458,NULL,NULL,NULL,0,NULL,NULL 57002,877148,459855,Good Answer,NULL,NULL,0,NULL,NULL 57003,65586,459855,Good Answer,NULL,NULL,0,NULL,NULL 57004,3309537,1365655,NULL,NULL,NULL,0,NULL,NULL 57005,60934,1269818,NULL,NULL,NULL,0,NULL,NULL 57006,235038,984674,NULL,NULL,NULL,0,NULL,NULL 57007,1908428,666872,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57008,349703,1286291,Caucus Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 57009,388305,1294203,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57010,1081401,180825,NULL,NULL,NULL,0,NULL,NULL 57011,449549,346486,Yearling Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 57012,137121,561019,Yearling ruby-on-rails Notable Question Yearling Nice Answer Famous Question Caucus Nice Answer Enlightened Documentation User Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57013,20149,1036441,NULL,NULL,NULL,0,NULL,NULL 57014,361220,1233601,Enthusiast Teacher,NULL,NULL,0,NULL,NULL 57015,231397,406959,Notable Question Notable Question Popular Question Popular Question Famous Question Excavator Yearling Popular Question,NULL,NULL,0,NULL,NULL 57016,109657,809659,NULL,NULL,NULL,0,NULL,NULL 57017,151051,429331,Popular Question Notable Question Civic Duty Yearling Good Answer Notable Question Documentation User Nice Answer Caucus Notable Question,NULL,NULL,0,NULL,NULL 57018,99536,267239,NULL,NULL,NULL,0,NULL,NULL 57019,887932,1313066,Popular Question,NULL,NULL,0,NULL,NULL 57020,51595,568300,NULL,NULL,NULL,0,NULL,NULL 57021,160784,438234,Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 57022,1657686,1161584,Notable Question Popular Question Popular Question Notable Question Caucus Popular Question Popular Question Excavator Yearling Explainer Yearling Yearling Caucus Popular Question Popular Question Popular Question Documentation User Popular Question Deputy Yearling Popular Question,NULL,NULL,0,NULL,NULL 57023,139528,931921,NULL,NULL,NULL,0,NULL,NULL 57024,1287397,1405257,NULL,NULL,NULL,0,NULL,NULL 57025,353120,1278291,NULL,NULL,NULL,0,NULL,NULL 57026,351136,356805,NULL,NULL,NULL,0,NULL,NULL 57027,215581,1369380,Yearling Nice Answer Yearling Tumbleweed Caucus Caucus,NULL,NULL,0,NULL,NULL 57028,735855,1225261,NULL,NULL,NULL,0,NULL,NULL 57029,442612,401544,Popular Question Critic Notable Question,NULL,NULL,0,NULL,NULL 57030,389675,546873,Nice Answer Nice Question Yearling Great Answer Announcer Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 57031,715793,466673,NULL,NULL,NULL,0,NULL,NULL 57032,3751798,1362943,Revival Yearling,NULL,NULL,0,NULL,NULL 57033,110913,1362943,Revival Yearling,NULL,NULL,0,NULL,NULL 57034,623797,835630,NULL,NULL,NULL,0,NULL,NULL 57035,1393140,989275,Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57036,593619,1002006,Necromancer Supporter Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 57037,45308,361418,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57038,108278,353337,Popular Question Popular Question Nice Question Popular Question Nice Question Famous Question Popular Question Good Question Self-Learner Yearling Notable Question Nice Question Popular Question Popular Question Socratic Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Notable Question Notable Question Popular Question Organizer Popular Question Custodian Nice Question Popular Question Popular Question Notable Question Yearling Explainer Notable Question Necromancer Nice Answer Nice Question Necromancer Necromancer Famous Question Caucus Nice Question Notable Question Necromancer python Necromancer Necromancer Nice Answer Notable Question Necromancer Necromancer Nice Question Necromancer Popular Question Necromancer Good Answer Nice Answer Famous Question numpy Popular Question Popular Question Nice Answer Popular Question Necromancer Popular Question Nice Answer Popular Question Announcer Favorite Question Nice Question Notable Question Nice Answer Popular Question Nice Answer Necromancer Necromancer Good Answer Announcer Popular Question Popular Question Custodian Necromancer Popular Question Promoter Benefactor Necromancer Notable Question Popular Question Citizen Patrol Nice Answer Nice Answer Nice Answer Necromancer Popular Question Popular Question Nice Answer Nice Answer Notable Question Announcer Necromancer Popular Question Necromancer Necromancer python Revival Announcer Announcer Yearling Necromancer Announcer Good Answer Great Answer Revival Nice Answer Announcer Good Answer Custodian Notable Question Popular Question Announcer Nice Answer Electorate Announcer Notable Question Nice Question Notable Question Announcer Announcer Great Answer Notable Question Popular Question Good Answer Necromancer Popular Question Necromancer Popular Question Nice Answer Revival Popular Question Necromancer Popular Question Good Answer Popular Question Nice Answer Necromancer,NULL,pEven faster is codeinner1d code from codenumpy core umath tests code pp href https stack imgur com 31bOy png rel nofollow noreferrer img src https stack imgur com 31bOy png alt enter image description here phrpCode to reproduce the plot ppre codeimport numpyfrom numpy core umath tests import inner1dimport perfplotperfplot show setup lambda numpy random rand numpy random rand kernels lambda numpy sum axis lambda numpy einsum ij ij gt lambda inner1d labels sum einsum inner1d range for in range 20 xlabel len len logx True logy True code pre from numpy core umath tests import inner1d pEven faster is codeinner1d code from codenumpy core umath tests code pp href https stack imgur com 31bOy png rel nofollow noreferrer img src https stack imgur com 31bOy png alt enter image description here phrpCode to reproduce the plot ppre codeimport numpyfrom numpy core umath tests import inner1dimport perfplotperfplot show setup lambda numpy random rand numpy random rand kernels lambda numpy sum axis lambda numpy einsum ij ij gt lambda inner1d labels sum einsum inner1d range for in range 20 xlabel len len logx True logy True code pre stumbled across it on SO the tests might suggest it still in beta but sure enough it works for me Compute signed area of many triangles python arrays numpy pI need to compute the href http mathworld wolfram com TriangleArea html rel nofollow noreferrer signed area of many triangles in 2D given by numpy array of shape code code coordinate node in triangle number of triangles looking for way to do it fast and the best could come up with so far is ppre codedef mix return code prepOther attempts are slower ppre codeimport numpyimport perfplotdef six return 2def mix return 2def mix2 p1 return p1 p1 p1 2def cross e1 e2 return e1 e2 e1 e2 2def einsum return numpy einsum ij ij gt numpy einsum ij ij gt 2def einsum2 return numpy einsum ij ij gt 2def einsum3 return numpy einsum ij ij gt numpy roll axis numpy roll axis 2perfplot show setup lambda numpy random rand kernels six mix mix2 cross einsum einsum2 einsum3 range for in range 19 logx True logy True code prepAny hints on how make it even more efficient pp href https stack imgur com xKWUQ png rel nofollow noreferrer img src https stack imgur com xKWUQ png alt enter image description here Interesting Well could be different numpy version different BLAS version and things like that If you find something that say twice as fast sure it will be an improvement on any machine though Python templates for generating Python code with proper multiline indentation python templates pI using Python to compile another Python file To this end use codeTemplate code from codestring code into which insert constructed function body ppre codefrom string import Templates Template def main body return body constructed bit by bitbody body append body append out substitute body join body print out code prepThe output of the above is ppre codedef main abc return code prepwhich already highlights the problem code body code lines other than the first aren correctly indented could of course manually add the spaces when inserting code code and code code into the codebody code list but that already assumes knowledge of the template into which the body will be inserted pp Perhaps codestring Template code is not be the appropriate template engine to begin with Thanks for the comment What remains unclear from the description ll try to add more detail to that then pRecursion to the rescue First create list of tuples of length coded code which runs through all codeijk code then complete the list with another column coden sum ijk code ppre codedef partition depth if depth return return item for in range for item in partition depth depth extend with sum entries 5d 3lst sum for in partition print lst code pre Yeah same Thinking about this iteratively had me stuck for the better part of the day,1,Compute signed area of many triangles python arrays numpy pI need to compute the href http mathworld wolfram com TriangleArea html rel nofollow noreferrer signed area of many triangles in 2D given by numpy array of shape code code coordinate node in triangle number of triangles looking for way to do it fast and the best could come up with so far is ppre codedef mix return code prepOther attempts are slower ppre codeimport numpyimport perfplotdef six return 2def mix return 2def mix2 p1 return p1 p1 p1 2def cross e1 e2 return e1 e2 e1 e2 2def einsum return numpy einsum ij ij gt numpy einsum ij ij gt 2def einsum2 return numpy einsum ij ij gt 2def einsum3 return numpy einsum ij ij gt numpy roll axis numpy roll axis 2perfplot show setup lambda numpy random rand kernels six mix mix2 cross einsum einsum2 einsum3 range for in range 19 logx True logy True code prepAny hints on how make it even more efficient pp href https stack imgur com xKWUQ png rel nofollow noreferrer img src https stack imgur com xKWUQ png alt enter image description here put numpy array items into bins python arrays numpy pI have numpy array with some integers ppre codea numpy array code prepI would now like to put all items into bins of equal values such that the bin with label code1 code contains all indices of codea code that have the value code1 code For the above example ppre codebins code prepA combination of codeunique code and codewhere codes does the trick ppre codeuniques numpy unique bins numpy where for in uniques code prepbut this doesn seem ideal since the number of unique entries may be large Python templates for generating Python code with proper multiline indentation python templates pI using Python to compile another Python file To this end use codeTemplate code from codestring code into which insert constructed function body ppre codefrom string import Templates Template def main body return body constructed bit by bitbody body append body append out substitute body join body print out code prepThe output of the above is ppre codedef main abc return code prepwhich already highlights the problem code body code lines other than the first aren correctly indented could of course manually add the spaces when inserting code code and code code into the codebody code list but that already assumes knowledge of the template into which the body will be inserted pp Perhaps codestring Template code is not be the appropriate template engine to begin with SymPy lambdify with dot python matrix sympy pTake an undefined function that happens to be named codedot code and make it part of codelambdify code ppre codeimport numpyimport sympyclass dot sympy Function passx sympy Symbol sympy Matrix sympy lambdify dot numpy array print code prepSurprise This actually works ppApparently the string code dot code is somehow extracted and replaced by an implementation of the dot product Does anyone know which ppThe result of the above is code code would however like to get the scalar code3 code How can modify codef code to achieve that draw many spheres efficiently python performance matplotlib 3d pI need to draw many spheres small and large in one picture The following code works but takes awfully long to run ppre codeimport matplotlib pyplot as pltfrom mpl toolkits mplot3d import Axes3Dimport numpyfig plt figure ax fig gca projection 3d ax set aspect equal numpy linspace numpy pi 100 numpy linspace numpy pi 100 numpy outer numpy cos numpy sin numpy outer numpy sin numpy sin numpy outer numpy ones numpy size numpy cos for in range 200 numpy random rand numpy random rand ax plot surface color 1f77b4 alpha linewidth plt show code prepI looking for more efficient solution Perhaps there is native sphere artist in matplotlib that didn find dot product across multiple axes python arrays numpy dot product pGiven two numpy arrays where the first coded code dimensions are equal in size ppre codeimport numpyd 3a numpy random rand 12 numpy random rand code prepI would like to compute the dot product across those first dimensions This ppre codea2 reshape shape b2 reshape shape out numpy dot numpy moveaxis a2 numpy moveaxis b2 code prepworks but only if codeb code is not of shape code code Messing around with codereshape code and codemoveaxis code also seems more complicated than necessary ppAre there more elegant solutions Perhaps with href https docs scipy org doc numpy reference generated numpy tensordot html rel nofollow noreferrer codetensordot code,python why use numpy instead of concatenate python numpy concatenation pIn which case using objects like numpy or numpy is better more efficient more suitable than using fonctions like concatenate or vstack for example ppI am trying to understand code where the programmer wrote something like ppre codereturn np 1d array code prepwhere code1d array code is an array whose values can be or Why not using np concatenate for example instead Like ppre codereturn np concatenate 1d array code prepIt is more readable and apparently it does the same thing pI was also interested in this question and compared the speed of ppre codenumpy numpy stack Tnumpy vstack Tnumpy column stack numpy concatenate None None axis code prepwhich all do the same thing for any input vector codea code Here what found using href https github com nschloe perfplot rel nofollow noreferrer perfplot pp href https stack imgur com 1H4MY png rel nofollow noreferrer img src https stack imgur com 1H4MY png alt enter image description here ppFor smaller numbers codenumpy concatenate code is the winner for larger from about 3000 codestack code codevstack code phrpThe plot was created with ppre codeimport numpyimport perfplotperfplot show setup lambda numpy random rand kernels lambda numpy lambda numpy stack lambda numpy vstack lambda numpy column stack lambda numpy concatenate None None axis labels stack vstack column stack concat range for in range 19 xlabel len code pre Elegant expression for row wise dot product of two matrices python numpy pI have two numpy arrays with the same dimensions and and am trying to calculate the row wise dot product of them could do ppre codenp sum axis code prepIs there another way to do this so that numpy is doing the row wise dot product in one step rather than two Maybe with codetensordot code pEven faster is codeinner1d code from codenumpy core umath tests code pp href https stack imgur com 31bOy png rel nofollow noreferrer img src https stack imgur com 31bOy png alt enter image description here phrpCode to reproduce the plot ppre codeimport numpyfrom numpy core umath tests import inner1dimport perfplotperfplot show setup lambda numpy random rand numpy random rand kernels lambda numpy sum axis lambda numpy einsum ij ij gt lambda inner1d labels sum einsum inner1d range for in range 20 xlabel len len logx True logy True code pre Speed up index revert python arrays numpy indexing pI have numpy array codea code of shape code code filled with integers from code0 code to codem code Both codem code and coden code can be fairly large It is known that every integer from code0 code to codem code appears sometimes only once but mostly exactly twice somewhere in codea code There are no doubled indices in row ppI would now like to construct the reverse index two arrays codeb row code and codeb col code of shape code code that for each row contains the one or two row column indices into codea code where coderow idx code appears in codea code ppThis works ppre codeimport numpya numpy array print row numpy ones dtype int col numpy ones dtype int count numpy zeros dtype int for row in enumerate count row row row col row count row 1print row print col code prepre code code prepbut is slow because of the explicit loop over codea code ppAny hints on how to speed this up pHere solution that only uses one codeargsort code and bunch of light index manipulations ppre codedef grp start len https stackoverflow com 50394587 353337 numpy concatenate True True idx numpy flatnonzero return idx numpy diff idx flat flatten idx sort numpy argsort flat idx start count grp start len flat idx sort res1 idx sort idx start count numpy newaxis res1 3res1 3idx idx start count res2 numpy column stack idx sort idx idx sort idx res2 3res2 code prepThe basic idea is that after codea code is flattened and sorted all the information can be extracted from the starting indices and the lenghts of the integer blocks in codea flat sorted code Evaluate tanh for very small python numpy math rounding pI need to compute the quantity ppre code1 tanh code prepfor codex gt code where codex code can be both very small and very large ppAsymptotically for small codex code we have ppre code1 tanh gt code prepand for large codex code ppre code1 tanh gt code prepAnyhow when computing the expression already from code10 code and smaller round off errors lead to the expression being evaluated as exactly ppre codeimport numpyimport matplotlib pyplot as pltx numpy array for in range 30 30 numpy tanh xplt loglog plt show code prep href https stack imgur com C1WO3 png rel nofollow noreferrer img src https stack imgur com C1WO3 png alt enter image description here pFor very small codex code one could use href https www wolframalpha com input taylor of 2Ftanh 2Fx rel nofollow noreferrer the Taylor expansion of code1 tanh code around code0 code ppre codey 45 945 code prepThe error is of the order codeO code so if code10 code is chosen as the breaking point relative and absolute error will be well below machine precision ppre codeimport numpyimport matplotlib pyplot as pltx numpy array for in range 50 30 y0 numpy tanh xy1 45 945 5y numpy where gt 0e y0 y1 plt loglog plt show code prep href https stack imgur com eQrhk png rel nofollow noreferrer img src https stack imgur com eQrhk png alt enter image description here variable number of dependent nested loops python nested loops integer partition pGiven two integers coden code and coded code would like to construct list of all nonnegative tuples of length coded code that sum up to coden code including all permutations This is similar to the href https stackoverflow com questions 10035752 elegant python code for integer partitioning integer partitioning problem but the solution is much simpler For example for coded code ppre code for in range for in range code prepThis can be extended to more dimensions quite easily coded code ppre code for in range for in range for in range for in range code prepI would now like to make coded code the number of nested loops variable but not sure how to nest the loops then ppAny hints pRecursion to the rescue First create list of tuples of length coded code which runs through all codeijk code then complete the list with another column coden sum ijk code ppre codedef partition depth if depth return return item for in range for item in partition depth depth extend with sum entries 5d 3lst sum for in partition print lst code pre Outer product with arrays of multiple dimensions python arrays numpy pI have coded code numpy arrays of shape code code and like to multiply each of them with each other such that the output has shape code code with coded code code2 codes For example with coded code ppre codeimport numpyd 3a numpy random rand out numpy empty for in range for in range for in range out code prepIf codes code is not present which is also use case this is classical outer product ppI thought about href https docs scipy org doc numpy reference generated numpy meshgrid html rel nofollow noreferrer codemeshgrid code but can quite get it to work ppAny hints pThe following method computes the outer product with dimensional outer products and works in all cases ppre codedef outern len If the elements are more than one dimensional assert that the extra dimensions are all equal s0 shape for arr in assert s0 arr shape out for in range Basically outer products Checkout numpy outer implementation for comparison out numpy multiply Insert newaxis after out slice None numpy newaxis Insert newaxis at the beginning numpy newaxis return out code pre evaluate many monomials at many points python arrays numpy pThe following problem concerns evaluating many monomials codex code at many points ppI would like to compute the inner power of two numpy arrays ppre codeimport numpya numpy random rand 10 numpy random rand out numpy ones 10 for in range 10 for in range for in range out print out shape code prepIf instead the line would read ppre codeout code prepthis would be number of inner products computable with simple codedot code or codeeinsum code ppIs it possible to perform the above loop in just one numpy line pTwo more solutions ppInlining ppre codenumpy array numpy prod bb for in range len bb axis for bb in code prepand using codepower outer code ppre codenumpy prod numpy power outer for in range len axis code prepBoth are bit slower than the broadcasting solution ppEven with some logic to accommodate for zero and negative values the codeexp code codelog code solution takes the cake pp href https stack imgur com 6jSfq png rel nofollow noreferrer img src https stack imgur com 6jSfq png alt enter image description here phrpCode to reproduce the plot ppre codeimport numpyimport perfplotdef loop data data shape shape out numpy ones for in range for in range for in range out return outdef broadcasting data data return None None prod def log exp data data neg numpy zeros shape dtype int neg lt odd numpy zeros shape dtype int odd negative count numpy dot neg odd out negative count numpy exp numpy matmul numpy log abs where abs gt zero numpy zeros shape dtype int zero pos numpy zeros shape dtype int pos gt zero count numpy dot zero pos out zero count gt return outdef inline data data return numpy array numpy prod bb for in range len bb axis for bb in Tdef outer power data data return numpy prod numpy power outer for in range len axis perfplot show setup lambda numpy random rand numpy random randint 10 range for in range 11 repeat 10 kernels loop broadcasting inline log exp outer power logx True logy True xlabel len code pre Can speedup YAML python json yaml pI made little test case to compare YAML and JSON speed ppre codeimport jsonimport yamlfrom datetime import datetimefrom random import randintNB ROW 1024print Does yaml is using libyaml yaml with libyaml and yes or no dummy data dummy key dummy key for in xrange NB ROW with open perf json yaml yaml as fh t1 datetime now yaml safe dump dummy data fh encoding utf default flow style False t2 datetime now dty t2 t1 total seconds print Dumping row into yaml file NB ROW dty with open perf json yaml json as fh t1 datetime now json dump dummy data fh t2 datetime now dtj t2 t1 total seconds print Dumping row into json file NB ROW dtj print json is dx faster for dumping dty dtj with open perf json yaml yaml as fh t1 datetime now data yaml safe load fh t2 datetime now dty t2 t1 total seconds print Loading row from yaml file NB ROW dty with open perf json yaml json as fh t1 datetime now data json load fh t2 datetime now dtj t2 t1 total seconds print Loading row into from json file NB ROW dtj print json is dx faster for loading dty dtj code prepAnd the result is ppre codeDoes yaml is using libyaml yesDumping 1024 row into yaml file 251139Dumping 1024 row into json file 007725json is 32x faster for dumpingLoading 1024 row from yaml file 401224Loading 1024 row into from json file 001793json is 223x faster for loading code prepI am using PyYAML 11 with libyaml library on ubuntu 12 04 know that json is much more simple than yaml but with 223x ratio between json and yaml am wondering whether my configuration is correct or not ppDo you have same speed ratio brHow can speed up codeyaml load code pFor reference compared couple of human readable formats and indeed Python yaml reader is emby far em the slowest Note the log scaling in the below plot If you re looking for speed you want href https docs python org library json html rel nofollow noreferrer Python built in JSON reader pp href https stack imgur com iExgn png rel nofollow noreferrer img src https stack imgur com iExgn png alt enter image description here phrpCode to reproduce the plot ppre codeimport numpyimport perfplotimport jsonimport yamlfrom yaml import Loader CLoaderimport pandasdef setup data numpy random rand with open out yml as yaml dump data tolist with open out json as json dump data tolist indent with open out dat as numpy savetxt data returndef yaml python arr with open out yml as out yaml load Loader Loader return outdef yaml arr with open out yml as out yaml load Loader CLoader return outdef json read arr with open out json as out json load return outdef loadtxt arr with open out dat as out numpy loadtxt return outdef pandas read arr out pandas read csv out dat header None sep return out valuesperfplot show setup setup kernels yaml python yaml json read loadtxt pandas read range for in range 18 logx True logy True code pre 57039,911903,539978,NULL,NULL,,0,, 57040,158573,554519,Popular Question,NULL,NULL,0,NULL,NULL 57041,20923,1176892,NULL,NULL,NULL,0,NULL,NULL 57042,399258,1116230,Caucus Citizen Patrol Informed Custodian Suffrage Editor Yearling Organizer Civic Duty Vox Populi Custodian Custodian Custodian Yearling Yearling Reviewer Yearling Enthusiast Reviewer Deputy Explainer Census Reviewer Tenacious Yearling Steward Steward Unsung Hero Tumbleweed Caucus Fanatic Constituent Steward Pundit Marshal Electorate Student Custodian Custodian Proofreader Reviewer Quorum Reviewer Promoter Strunk & White Nice Question Benefactor Steward Excavator Steward,NULL,NULL,0,NULL,NULL 57043,21499,523104,Yearling Necromancer,NULL,NULL,0,NULL,NULL 57044,424618,1371859,NULL,NULL,NULL,0,NULL,NULL 57045,153983,1505275,Popular Question,NULL,NULL,0,NULL,NULL 57046,223090,1389573,clojure Yearling Nice Answer Enlightened Yearling Nice Answer Not a Robot Yearling,NULL,NULL,0,NULL,NULL 57047,351107,642335,NULL,NULL,NULL,0,NULL,NULL 57048,694598,839102,NULL,NULL,NULL,0,NULL,NULL 57049,1191456,952852,NULL,NULL,NULL,0,NULL,NULL 57050,273398,202645,Revival Nice Answer Necromancer Nice Answer Nice Answer Yearling Nice Answer Enlightened Good Answer Populist Nice Answer Enlightened Good Answer Yearling Nice Answer Good Answer Guru Cleanup Custodian pytest Yearling,NULL,NULL,0,NULL,NULL 57051,25385,201743,Editor Notable Question,NULL,NULL,0,NULL,NULL 57052,1942146,1241016,NULL,NULL,NULL,0,NULL,NULL 57053,28627,746439,NULL,NULL,NULL,0,NULL,NULL 57054,129104,1056271,Popular Question,NULL,NULL,0,NULL,NULL 57055,486915,560318,Yearling Popular Question Yearling Documentation User Revival,NULL,NULL,0,NULL,NULL 57056,911853,1098146,Popular Question,NULL,NULL,0,NULL,NULL 57057,905713,817248,NULL,NULL,NULL,0,NULL,NULL 57058,157491,19630,Nice Answer Yearling Good Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57059,510413,1314856,Yearling Good Answer Populist,NULL,NULL,0,NULL,NULL 57060,218373,59836,NULL,NULL,NULL,0,NULL,NULL 57061,1625466,422546,NULL,NULL,NULL,0,NULL,NULL 57062,7992070,916242,Great Question Notable Question Nice Question Favorite Question Popular Question Popular Question Notable Question Yearling Popular Question Good Question Yearling Popular Question Famous Question Notable Question Notable Question Popular Question Favorite Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 57063,413841,397861,Good Answer Good Answer Good Question Nice Answer Popular Question Nice Question Nice Answer Famous Question Nice Answer Enlightened jquery-selectors Famous Question Popular Question Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Famous Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Great Answer Nice Question html Notable Question Famous Question Nice Answer Enlightened Popular Question Census Popular Question Nice Answer Enlightened Popular Question Good Question javascript Nice Answer Popular Question Nice Answer Great Answer Nice Answer Popular Question Yearling Great Answer Good Answer Good Answer Nice Answer Enlightened Good Question php Famous Question Good Answer Nice Answer Nice Question Popular Question Guru Good Answer Necromancer Notable Question Notable Question Yearling Nice Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57064,41621,323269,Yearling Nice Answer Self-Learner Yearling Civic Duty Nice Answer Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 57065,185030,154030,Good Question Yearling Famous Question Commentator,NULL,NULL,0,NULL,NULL 57066,1027888,1345006,NULL,NULL,NULL,0,NULL,NULL 57067,14368,805524,NULL,NULL,NULL,0,NULL,NULL 57068,239259,805524,NULL,NULL,NULL,0,NULL,NULL 57069,3400786,1079201,NULL,NULL,NULL,0,NULL,NULL 57070,82029,229507,Editor Excavator Citizen Patrol Yearling Guru,NULL,NULL,0,NULL,NULL 57071,4613032,554916,Yearling Popular Question,NULL,NULL,0,NULL,NULL 57072,1265095,554916,Yearling Popular Question,NULL,NULL,0,NULL,NULL 57073,760272,1453719,Yearling Nice Answer Nice Question numpy Popular Question Nice Answer Enlightened Necromancer Yearling Nice Answer Nice Answer Enlightened Nice Question Nice Answer Good Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 57074,19825,237349,Good Answer Necromancer Guru Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 57075,45845,30871,Notable Question Famous Question Yearling Nice Answer Enlightened Notable Question Nice Question Yearling Nice Answer Caucus Benefactor Yearling,NULL,NULL,0,NULL,NULL 57076,903274,249719,NULL,NULL,NULL,0,NULL,NULL 57077,45780,369491,Critic Caucus,NULL,NULL,0,NULL,NULL 57078,553986,630377,NULL,NULL,NULL,0,NULL,NULL 57079,457779,117815,NULL,NULL,NULL,0,NULL,NULL 57080,12473,657380,NULL,NULL,NULL,0,NULL,NULL 57081,294377,1076422,Good Answer Yearling Guru Critic,NULL,NULL,0,NULL,NULL 57082,30306,1536081,NULL,NULL,NULL,0,NULL,NULL 57083,226998,933642,NULL,NULL,NULL,0,NULL,NULL 57084,294581,508874,NULL,NULL,NULL,0,NULL,NULL 57085,233344,831703,NULL,NULL,NULL,0,NULL,NULL 57086,479788,964956,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 57087,324717,186467,Scholar Notable Question,NULL,NULL,0,NULL,NULL 57088,1185,424958,NULL,NULL,NULL,0,NULL,NULL 57089,1100653,1504311,NULL,NULL,NULL,0,NULL,NULL 57090,55201,15619,Popular Question Popular Question Popular Question Notable Question Nice Question Revival Announcer Popular Question Guru Documentation Pioneer Popular Question Nice Answer Nice Question Yearling Good Answer Popular Question Popular Question Caucus Notable Question Good Answer Census Notable Question Custodian Necromancer Famous Question Popular Question Notable Question Nice Answer Enlightened Popular Question Notable Question Popular Question Yearling Popular Question Documentation User Famous Question Nice Answer Enlightened Notable Question Announcer Popular Question Popular Question Notable Question Census Caucus Nice Answer Enlightened Popular Question Electorate Popular Question Announcer Yearling Great Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57091,806475,629273,NULL,NULL,NULL,0,NULL,NULL 57092,170014,655364,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 57093,74920,519649,Custodian Citizen Patrol Yearling Civic Duty Informed Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 57094,19782,1083619,NULL,NULL,NULL,0,NULL,NULL 57095,7244348,362441,NULL,NULL,NULL,0,NULL,NULL 57096,248207,362441,NULL,NULL,NULL,0,NULL,NULL 57097,158652,626546,Teacher,NULL,NULL,0,NULL,NULL 57098,125757,546061,Curious,NULL,NULL,0,NULL,NULL 57099,61321,1223866,Popular Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 57100,615439,656590,NULL,NULL,NULL,0,NULL,NULL 57101,385361,453872,Popular Question Yearling,NULL,NULL,0,NULL,NULL 57102,151787,322029,Critic Supporter Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57103,252824,130504,NULL,NULL,NULL,0,NULL,NULL 57104,1080548,657394,Yearling Notable Question Critic Popular Question,NULL,NULL,0,NULL,NULL 57105,324934,967894,NULL,NULL,NULL,0,NULL,NULL 57106,101380,751415,NULL,NULL,NULL,0,NULL,NULL 57107,22259,974474,Nice Answer Yearling Nice Answer Enlightened ant Yearling Yearling,NULL,NULL,0,NULL,NULL 57108,666743,580198,NULL,NULL,NULL,0,NULL,NULL 57109,348575,313110,NULL,NULL,NULL,0,NULL,NULL 57110,618708,1228015,Yearling Popular Question Nice Question Yearling Nice Answer Enlightened Populist Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 57111,301436,632240,Yearling,NULL,NULL,0,NULL,NULL 57112,889106,1269564,NULL,NULL,NULL,0,NULL,NULL 57113,271625,1263543,Electorate Good Answer Fanatic Nice Answer Enlightened Yearling Notable Question Nice Answer Yearling Guru Good Answer Good Question Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 57114,612019,1458860,NULL,NULL,NULL,0,NULL,NULL 57115,36272,226958,Strunk & White Popular Question Popular Question Popular Question Notable Question Famous Question Nice Question Notable Question Favorite Question Notable Question Good Question Notable Question Popular Question Famous Question Famous Question Popular Question Popular Question Necromancer Popular Question Popular Question Nice Answer Pundit Popular Question Nice Question Famous Question Notable Question Famous Question Good Answer Popular Question Notable Question Electorate Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Famous Question Nice Answer Popular Question Nice Answer Popular Question Popular Question Revival Good Answer Popular Question Popular Question Good Question Socratic Good Question Notable Question Popular Question Popular Question Caucus Good Question Popular Question Constituent Popular Question Yearling Good Question Popular Question Great Answer Famous Question Popular Question Popular Question Popular Question Popular Question Announcer Popular Question Famous Question Popular Question Altruist Popular Question Notable Question Popular Question Good Question Notable Question Popular Question Famous Question Necromancer Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Caucus Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Famous Question Documentation User Good Answer Popular Question Nice Question Popular Question Announcer Great Question Nice Question Yearling Popular Question Good Answer Famous Question Nice Question Popular Question Famous Question Necromancer Notable Question Notable Question Popular Question Notable Question Caucus Constituent Popular Question Popular Question Nice Answer Popular Question Nice Question Famous Question Archaeologist Necromancer Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Good Question Good Question Notable Question Nice Question Necromancer Famous Question Popular Question Deputy Popular Question,NULL,pChristopher Proguard solution is the best but if for any reason you don like Proguard here is very low tech solution ppComment logs ppre codefind name java xargs grep Log xargs sed Log Log code prepUncomment logs ppre codefind name java xargs grep Log xargs sed Log Log code prepA constraint is that your logging instructions must not span over multiple lines pp em Execute these lines in UNIX shell at the root of your project If using Windows get UNIX layer or use equivalent Windows commands em added the last paragraph explaining how to execute Not in Android Studio pChristopher Proguard solution is the best but if for any reason you don like Proguard here is very low tech solution ppComment logs ppre codefind name java xargs grep Log xargs sed Log Log code prepUncomment logs ppre codefind name java xargs grep Log xargs sed Log Log code prepA constraint is that your logging instructions must not span over multiple lines pp em Execute these lines in UNIX shell at the root of your project If using Windows get UNIX layer or use equivalent Windows commands em All of the solutions above mine are achievable within Android Studio try them,1,Read from URL in Groovy with redirect groovy http status code 301 http redirect pThis Groovy code outputs an empty string ppre codedef url http www wikidata org api php action wbgetentities amp sites enwiki amp titles Mozambique amp format xml amp props toURL print url getText utf code prepWith the same URL codecurl code also returns empty but codecurl code returns the XML want brIs there something for Groovy that is similar to that code code option pblockquote If the server reports that the requested page has moved to different location indicated with Location header and 3XX response code this option will make curl redo the request on the new place blockquote,NULL 57116,398423,275431,Yearling Guru Yearling Explainer Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 57117,1198484,427724,Critic Informed,NULL,NULL,0,NULL,NULL 57118,66890,466948,NULL,NULL,NULL,0,NULL,NULL 57119,1210430,219279,NULL,NULL,NULL,0,NULL,NULL 57120,1030592,332372,NULL,NULL,NULL,0,NULL,NULL 57121,103696,54048,NULL,NULL,NULL,0,NULL,NULL 57122,1320239,448623,NULL,NULL,NULL,0,NULL,NULL 57123,102734,1036328,NULL,NULL,NULL,0,NULL,NULL 57124,1453251,715171,Nice Answer Notable Question Yearling Nice Answer Popular Question Caucus Nice Answer Enlightened Yearling Nice Answer Great Answer Popular Question Nice Answer Yearling Nice Answer Notable Question Nice Answer Nice Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 57125,631996,201554,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 57126,343021,611555,Notable Question Nice Answer Famous Question Yearling Critic Revival Nice Question,NULL,NULL,0,NULL,NULL 57127,254742,994119,Custodian Tag Editor,NULL,NULL,0,NULL,NULL 57128,76210,378253,Nice Question Notable Question Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 57129,2312648,479322,NULL,NULL,NULL,0,NULL,NULL 57130,359827,29106,Revival Necromancer,NULL,NULL,0,NULL,NULL 57131,64063,747396,Notable Question Popular Question Popular Question Yearling Notable Question Good Question Necromancer Good Answer Notable Question Famous Question Notable Question Popular Question Custodian Popular Question Nice Question Popular Question Yearling Notable Question Guru Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 57132,19297,1082174,Self-Learner Yearling Caucus Student Nice Answer Enlightened Yearling Critic Good Answer Popular Question Yearling Popular Question Guru Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 57133,19553,1082174,Self-Learner Yearling Caucus Student Nice Answer Enlightened Yearling Critic Good Answer Popular Question Yearling Popular Question Guru Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 57134,471413,739583,Editor Supporter Informed Announcer,NULL,NULL,0,NULL,NULL 57135,907470,921147,NULL,NULL,NULL,0,NULL,NULL 57136,21480,717195,Critic Yearling Announcer Yearling Curious Autobiographer Necromancer Yearling Nice Answer Announcer Documentation User Yearling Necromancer Revival Yearling Nice Answer,NULL,NULL,1,With Jekyll can transform post Markdown before actual Markdown parsing markdown jekyll jekyll extensions responsive images kramdown pI would like to use the href https github com wildlyinaccurate jekyll responsive image rel nofollow Jekyll Responsive Image plugin to generate appropriate responsive images with codesrcset code codesizes code attributes for my posts images ppBut would also like to be able to edit my posts in software providing live preview like href http macdown uranusjr com rel nofollow MacDown which only understands the standard Markdown syntax for images ppThat why would like to know if there is way —a plugin of some sort— to tell Jekyll to transform the standard Markdown syntax for images which would put in my Markdown files… pp code alt text path to image jpg code pp…into this syntax specific to the href https github com wildlyinaccurate jekyll responsive image rel nofollow Jekyll Responsive Image plugin pp code responsive image path path to image jpg alt alt text code ppAnd THEN Jekyll could continue and use Kramdown to generate the HTML… ppI also created href https github com wildlyinaccurate jekyll responsive image issues 15 rel nofollow an issue in the plugin Github but more general answer would be nice too and maybe useful for other needs How is the priority flag in Jekyll plugins supposed to work jekyll jekyll extensions pI am currently trying to develop plugin for Jekyll that would help use href http cloudinary com rel nofollow Cloudinary for responsive images Current source is href https github com nhoizey nicolas hoizey com blob jekyll3 plugins cloudinary rb rel nofollow in my Github repo will make it gem later when if it works ppThis plugin has two features pullia Liquid tag to define Cloudinary images like code cloudinary preset path to img jpg attr value code lilia Converter to optionnaly automate transformation of standard Markdown Kramdown syntax for images into this Liquid tag code alt text path to img jpg caption caption text code becomes code cloudinary path to img jpg alt alt text caption caption text code li ulpCurrently both features work as intended but they re not chained If use the Liquid tag in my Markdown it is evaluated If put standard Markdown image it is converted to the code cloudinary code Liquid tag but this tag is not evaluated ppI suspect the two features are not run in the right order so want to make sure the Converter is executed before the Liquid tag is evaluated ppBut didn yet understand how to use the href https jekyllrb com docs plugins flags rel nofollow priority flag ppIf uncomment href https github com nhoizey nicolas hoizey com blob 8f49a34dd444b000520aeb7731d0a8ca17415615 plugins cloudinary rb L26 rel nofollow the codepriority normal code line in my plugin and run codebundle exec jekyll serve code get this error ppre code bundle exec jekyll serveConfiguration file Users nhoizey Dropbox Personnel Devs nicolas hoizey com config ymljekyll Error undefined method priority for Jekyll CloudinaryTag ClassDid you mean print code prepAny idea pp strongEDIT July 11th strong ppI have now split it into to plugins ppThe Converter is still in my site code plugins code folder href https github com nhoizey nicolas hoizey com blob 52c92a38410e133890eea6044a033cb20344b971 plugins cloudinaryfy rb L26 rel nofollow https github com nhoizey nicolas hoizey com blob 52c92a38410e133890eea6044a033cb20344b971 plugins cloudinaryfy rb L26 ppJekyll doesn complain with this priority flag ppThe Liquid tag is now true autonomous plugin gem named codejekyll cloudinary code href https nhoizey github io jekyll cloudinary rel nofollow https nhoizey github io jekyll cloudinary ppIf put the priority flag in this plugin still get the error ppre code bundle exec jekyll serve bundler failed to load command jekyll usr local bin jekyll Bundler GemRequireError There was an error while trying to load the gem jekyll cloudinary Gem Load Error is undefined method priority for Jekyll Cloudinary CloudinaryTag ClassDid you mean printBacktrace for gem load error is usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in lt class CloudinaryTag gt usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in lt module Cloudinary gt usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in lt module Jekyll gt usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in lt top required gt usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in require usr local lib ruby gems gems jekyll cloudinary lib jekyll cloudinary rb in lt top required gt usr local lib ruby gems gems bundler 12 lib bundler runtime rb 86 in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 86 in block levels in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 81 in each usr local lib ruby gems gems bundler 12 lib bundler runtime rb 81 in block in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 70 in each usr local lib ruby gems gems bundler 12 lib bundler runtime rb 70 in require usr local lib ruby gems gems bundler 12 lib bundler rb 102 in require usr local lib ruby gems gems jekyll lib jekyll plugin manager rb 34 in require from bundler usr local lib ruby gems gems jekyll bin jekyll in lt top required gt usr local bin jekyll 22 in load usr local bin jekyll 22 in lt top required gt usr local lib ruby gems gems bundler 12 lib bundler cli exec rb 63 in load usr local lib ruby gems gems bundler 12 lib bundler cli exec rb 63 in kernel load usr local lib ruby gems gems bundler 12 lib bundler cli exec rb 24 in run usr local lib ruby gems gems bundler 12 lib bundler cli rb 304 in exec usr local lib ruby gems gems bundler 12 lib bundler vendor thor lib thor command rb 27 in run usr local lib ruby gems gems bundler 12 lib bundler vendor thor lib thor invocation rb 126 in invoke command usr local lib ruby gems gems bundler 12 lib bundler vendor thor lib thor rb 359 in dispatch usr local lib ruby gems gems bundler 12 lib bundler vendor thor lib thor base rb 440 in start usr local lib ruby gems gems bundler 12 lib bundler cli rb 11 in start usr local lib ruby gems gems bundler 12 exe bundle 27 in block in lt top required gt usr local lib ruby gems gems bundler 12 lib bundler friendly errors rb 98 in with friendly errors usr local lib ruby gems gems bundler 12 exe bundle 19 in lt top required gt usr local bin bundle 22 in load usr local bin bundle 22 in lt main gt Bundler Error Backtrace usr local lib ruby gems gems bundler 12 lib bundler runtime rb 89 in rescue in block levels in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 85 in block levels in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 81 in each usr local lib ruby gems gems bundler 12 lib bundler runtime rb 81 in block in require usr local lib ruby gems gems bundler 12 lib bundler runtime rb 70 in each usr local lib ruby gems gems bundler 12 lib bundler runtime rb 70 in require usr local lib ruby gems gems bundler 12 lib bundler rb 102 in require usr local lib ruby gems gems jekyll lib jekyll plugin manager rb 34 in require from bundler usr local lib ruby gems gems jekyll bin jekyll in lt top required gt usr local bin jekyll 22 in load usr local bin jekyll 22 in lt top required gt code prepWhy is it working for one plugin but not the other ppHow can make sure the codecloudinarify code Converter plugin runs before the codejekyll cloudinary code Liquid tag is interpreted,NULL 57137,180766,112871,Proofreader Nice Answer Enlightened Nice Question Nice Answer Enlightened Great Answer Popular Question Yearling Notable Question Popular Question Revival Guru Yearling Popular Question Famous Question Popular Question Popular Question Census Custodian Great Answer Popular Question Nice Answer Enlightened Yearling Notable Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 57138,9411,716625,Supporter,NULL,NULL,0,NULL,NULL 57139,181100,416965,NULL,NULL,NULL,0,NULL,NULL 57140,112647,9843,Yearling Popular Question Popular Question Revival Yearling Notable Question Revival Yearling Famous Question,NULL,NULL,0,NULL,NULL 57141,185660,265418,Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 57142,684373,1103231,Nice Answer Investor Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 57143,373446,663332,NULL,NULL,NULL,0,NULL,NULL 57144,74603,55137,Yearling Good Answer Nice Answer Revival twitter Good Answer ios Caucus Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 57145,1232256,819491,NULL,NULL,NULL,0,NULL,NULL 57146,4481,148825,Organizer Tag Editor Nice Answer Good Answer Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 57147,345623,442768,Popular Question,NULL,NULL,0,NULL,NULL 57148,3875849,442768,Popular Question,NULL,NULL,0,NULL,NULL 57149,129526,389745,Popular Question Notable Question Nice Answer Famous Question Famous Question Notable Question Announcer Popular Question Famous Question Popular Question Popular Question Notable Question Good Answer Popular Question Famous Question html Notable Question Popular Question Good Answer Notable Question Popular Question Notable Question Nice Answer Enlightened Popular Question Good Question Notable Question Announcer Nice Question Yearling Nice Answer Enlightened Famous Question Popular Question Announcer Guru Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Good Question Popular Question Nice Question Nice Question Famous Question Guru Famous Question Popular Question Nice Question Necromancer Popular Question Famous Question Popular Question Notable Question Famous Question Famous Question Good Question Notable Question Popular Question Notable Question Popular Question Yearling Great Question Popular Question Notable Question Nice Question Nice Answer Great Answer Popular Question Notable Question Announcer Famous Question Good Answer Nice Question Famous Question Good Question Popular Question Popular Question Famous Question Famous Question Favorite Question Popular Question Good Question Announcer Good Question Notable Question Popular Question Yearling Nice Question Nice Question Famous Question Great Question Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57150,1561904,25152,Good Question Yearling Popular Question Nice Answer Yearling Revival Nice Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 57151,1167572,1539595,NULL,NULL,NULL,0,NULL,NULL 57152,314412,856555,Informed,NULL,NULL,0,NULL,NULL 57153,32963,557333,Popular Question Teacher,NULL,NULL,0,NULL,NULL 57154,61483,657844,Popular Question Yearling Notable Question Curious Notable Question Caucus Yearling Custodian Notable Question Popular Question Documentation User Census Popular Question,NULL,NULL,0,NULL,NULL 57155,1380988,973955,Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57156,53149,1228657,Necromancer,NULL,NULL,0,NULL,NULL 57157,1541433,1228657,Necromancer,NULL,NULL,0,NULL,NULL 57158,223210,235533,NULL,NULL,NULL,0,NULL,NULL 57159,1354785,1303602,Student Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57160,119844,451623,NULL,NULL,NULL,0,NULL,NULL 57161,396201,558819,Popular Question Nice Answer Announcer Yearling Popular Question Announcer Popular Question Popular Question Yearling,NULL,Where did OSX x86 64 assembly libc routines go macos libc pFirst some useful links to OSX Libc code pulliGit href https github com aosm Libc git rel nofollow https github com aosm Libc git with tags for the different iterations of OSX liliHTML href http www opensource apple com source Libc rel nofollow http www opensource apple com source Libc li ulpThere one can see that Libc 825 40 OSX 10 still has public asm implementations of functions like memcpy Notably in codex86 64 string bcopy sse42 code However since version 997 OSX 10 most of them seem to be gone few are left in codex86 64 string code though As can be seen here href http www opensource apple com source Libc Libc 997 90 x86 64 string rel nofollow http www opensource apple com source Libc Libc 997 90 x86 64 string ppHas the source been closed on the others Looking at the diff between OSX 10 and 10 doesn indicate place where they may have moved inside of the source tree ppWhen debugging binaries running on OSX 10 it hard to miss the references to code platform memmove code Indeed if we look at the source of href http www opensource apple com source Libc Libc 997 90 string bcopy rel nofollow bcopy we see ppre code include lt platform string gt void bcopy const void src void dst size platform memmove dst src code prepSo perhaps that could yield something useful Yet for some reason can find code platform memmove code either through lack of grepping prowess or macro trickery Can someone help me find it pp strongEDIT strong tried looking for href http prod lists apple com archives darwin dev 2014 Aug msg00001 html rel nofollow platform string but just like that mailing list poster couldn locate it within the source tree pp strongEDIT strong Compiling source file calling codememcpy code with Xcode clang near to on OSX 10 and running it under Instruments shows that code platform memmove VARIANT Nehalem code is being called Which leads me to believe that the specialized asm variants still exist somewhere pp strongEDIT strong dumping libsystem dylib doesn give me the comments but at least it gives me the assembly there appear to be routines for pulli href https gist github com aktau fb28076fc71e9943f91b file osx1094 memmove ivybridge rel nofollow Ivy Bridge delegates to Nehalem lili href https gist github com aktau fb28076fc71e9943f91b file osx1094 memmove nehalem rel nofollow Nehalem chosen on my system 2011 Core i7 liliMerom lili href https gist github com aktau fb28076fc71e9943f91b file osx1094 memmove sse42 rel nofollow SSE4 presumably similar to the SSE version found in older Libc liliSSE3 liliSSE2 liliscalar liliUnknown li ul Unfortunately didn,0,NULL,NULL 57162,225239,989344,Necromancer,NULL,NULL,0,NULL,NULL 57163,624970,467965,NULL,NULL,NULL,0,NULL,NULL 57164,59437,487946,Announcer netlogo Necromancer Yearling Yearling Tag Editor Documentation User Self-Learner Census Excavator Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 57165,208807,147915,Notable Question Popular Question Notable Question Nice Answer Enlightened Popular Question Famous Question Good Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Famous Question Good Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Great Question Famous Question Yearling Famous Question Popular Question Popular Question Famous Question Famous Question Popular Question Famous Question Good Question Popular Question Popular Question Notable Question Census Popular Question Nice Question Nice Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57166,369490,1335710,NULL,NULL,NULL,0,NULL,NULL 57167,152343,610244,Popular Question Popular Question Custodian Caucus Popular Question,NULL,NULL,0,NULL,NULL 57168,322859,1501982,NULL,NULL,NULL,0,NULL,NULL 57169,218094,758728,Commentator Announcer Necromancer Student Scholar Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57170,277020,227932,Popular Question Curious Good Question Yearling,NULL,NULL,0,NULL,NULL 57171,328969,590307,Commentator,NULL,NULL,0,NULL,NULL 57172,4304581,731924,Popular Question,NULL,NULL,0,NULL,NULL 57173,49225,1147063,Critic Necromancer Yearling Citizen Patrol Revival Necromancer Enthusiast Nice Answer Yearling Necromancer Caucus Yearling Nice Answer Necromancer Tumbleweed Good Answer Student Yearling Yearling Good Answer Scholar,NULL,NULL,0,NULL,NULL 57174,210248,506746,Supporter Revival Yearling Famous Question Self-Learner,NULL,NULL,0,NULL,NULL 57175,25035,1381994,NULL,NULL,NULL,0,NULL,NULL 57176,265990,1287657,Teacher,NULL,NULL,0,NULL,NULL 57177,1094695,1450156,Notable Question Promoter Caucus Nice Question Explainer Census Yearling Caucus Necromancer Census Curious Popular Question Talkative,NULL,NULL,0,NULL,NULL 57178,21035,2947,Notable Question Yearling Popular Question Guru Notable Question Yearling Yearling,NULL,,0,, 57179,504802,1120348,NULL,NULL,NULL,0,NULL,NULL 57180,169533,59975,Yearling Popular Question Notable Question Popular Question Custodian Tumbleweed Famous Question Necromancer Yearling Good Answer Informed Notable Question Organizer Nice Answer Tag Editor Announcer Documentation User Announcer Notable Question Announcer Yearling Necromancer Nice Question Necromancer Nice Question Nice Answer Good Answer php Popular Question Famous Question,NULL,NULL,0,NULL,NULL 57181,2432001,545627,NULL,NULL,NULL,0,NULL,NULL 57182,437190,206277,Custodian Yearling Necromancer Caucus Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 57183,687544,753257,NULL,NULL,NULL,0,NULL,NULL 57184,116477,599756,Necromancer Nice Answer Yearling Good Answer Yearling Yearling Revival Autobiographer,NULL,NULL,0,NULL,NULL 57185,986177,649973,Yearling,NULL,NULL,0,NULL,NULL 57186,85425,923480,NULL,NULL,NULL,0,NULL,NULL 57187,1103017,223443,Nice Question Teacher Famous Question Yearling Critic Yearling Custodian Curious Commentator Good Question Organizer Yearling Revival,NULL,NULL,0,NULL,NULL 57188,40898,477612,NULL,NULL,NULL,0,NULL,NULL 57189,482964,429796,NULL,NULL,NULL,0,NULL,NULL 57190,1467056,1139580,Yearling Scholar Commentator,NULL,NULL,0,NULL,NULL 57191,1402161,1216000,NULL,NULL,NULL,0,NULL,NULL 57192,928077,770696,NULL,NULL,NULL,0,NULL,NULL 57193,493847,363931,NULL,NULL,NULL,0,NULL,NULL 57194,45866,1381961,NULL,NULL,NULL,0,NULL,NULL 57195,125024,764060,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57196,121940,674608,NULL,NULL,NULL,0,NULL,NULL 57197,1628108,200469,NULL,NULL,NULL,0,NULL,NULL 57198,290905,407939,NULL,NULL,NULL,0,NULL,NULL 57199,606564,266378,Announcer Yearling Nice Answer Caucus Curious Announcer Yearling Nice Question Announcer Revival Revival Caucus Good Question Announcer Announcer Yearling Announcer Census Announcer Revival Notable Question Caucus Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 57200,689,768938,Yearling Nice Question Popular Question Notable Question Good Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Critic Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 57201,284365,211359,Nice Question Guru Famous Question Popular Question Yearling Nice Question Popular Question Notable Question Good Answer Nice Question Yearling Good Answer Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 57202,74704,1130237,NULL,NULL,NULL,0,NULL,NULL 57203,6881597,550056,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57204,77554,550056,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57205,16699,1051379,NULL,NULL,NULL,0,NULL,NULL 57206,279017,1172307,NULL,NULL,NULL,0,NULL,NULL 57207,47086,1387352,NULL,NULL,NULL,0,NULL,NULL 57208,588852,954761,Popular Question Popular Question Yearling Notable Question Popular Question Custodian Yearling Nice Answer Custodian Nice Answer Enlightened Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57209,650515,173171,Notable Question,NULL,NULL,0,NULL,NULL 57210,623913,603640,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 57211,113435,1290063,Editor Commentator Yearling,NULL,NULL,0,NULL,NULL 57212,208473,1467311,NULL,NULL,NULL,0,NULL,NULL 57213,2481706,660139,NULL,NULL,NULL,0,NULL,NULL 57214,366691,324096,Popular Question Notable Question Nice Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57215,155645,381892,Informed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57216,12746,174929,Yearling Popular Question Notable Question Nice Answer Nice Answer Yearling Famous Question Good Answer Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 57217,287754,1475254,Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 57218,3489918,940278,NULL,NULL,NULL,0,NULL,NULL 57219,233840,330472,Popular Question,NULL,NULL,0,NULL,NULL 57220,8338883,547592,NULL,NULL,NULL,0,NULL,NULL 57221,5728,547592,NULL,NULL,NULL,0,NULL,NULL 57222,19604,903680,Nice Question Yearling Popular Question Popular Question Popular Question Nice Question Yearling Guru Popular Question,NULL,NULL,0,NULL,NULL 57223,256433,988981,NULL,NULL,NULL,0,NULL,NULL 57224,1332529,129367,NULL,NULL,NULL,0,NULL,NULL 57225,140749,1295570,NULL,NULL,NULL,0,NULL,NULL 57226,198486,1558186,Teacher Supporter,NULL,NULL,0,NULL,NULL 57227,120224,318635,NULL,NULL,NULL,0,NULL,NULL 57228,375801,679543,Revival,NULL,NULL,0,NULL,NULL 57229,211433,707446,Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 57230,397919,494527,Popular Question,NULL,NULL,0,NULL,NULL 57231,45424,919670,NULL,NULL,NULL,0,NULL,NULL 57232,211518,507965,NULL,NULL,NULL,0,NULL,NULL 57233,14811,823822,python Yearling Yearling Nice Answer Enlightened Yearling,NULL,pIn py2neo v3 the codecreate code method and all similar methods take only single argument which can be any graphy object see the href http py2neo org v3 types html rel nofollow manual page on types You can therefore create multiple nodes by unioning them into subgraph to pass as the argument In your case you ll want something like ppre codegraph create node1 node2 node3 code pre was unaware of any books that contained details of either version The documentation wrote for the project is here http py2neo org v3,1,NULL,TypeError create takes positional arguments but were given python neo4j py2neo pHere is my code file with name is CreateNode py ppre code usr bin pythonimport py2neofrom py2neo import Graph Nodedef createNodeWithLabelProperties print Start Create label with prperties py2neo authenticate localhost 7474 neo4j XXXXXXX graph Graph http localhost 7474 db data Create Node with properties node1 Node LableFirst name Chuvindra Singh age 27 create Node with label node2 Node Labelfirst LabelSecond name Koki Sing age 27 node3 Node Labelk LabelB name Manzil age 27 now use Graph Object to create node resultNodes graph create node1 node2 node3 for index in range len resultNodes print Created Node index resultNodes inedx print End Printing the node if name main print start Creating nodes createNodeWithLabelProperties print End Creating nodes code prepWhen run this file then it show error ppre codestart Creating nodes Start Create label with prperties Traceback most recent call last File CreateNode py line 23 in lt module gt createNodeWithLabelProperties File CreateNode py line 16 in createNodeWithLabelProperties resultNodes graph create node1 node2 node3 TypeError create takes positional arguments but were given code prepWhere is mistake in code could not understand Can you some one help me out pIn py2neo v3 the codecreate code method and all similar methods take only single argument which can be any graphy object see the href http py2neo org v3 types html rel nofollow manual page on types You can therefore create multiple nodes by unioning them into subgraph to pass as the argument In your case you ll want something like ppre codegraph create node1 node2 node3 code pre 57234,10520158,918732,Teacher Editor Informed Supporter Autobiographer,NULL,NULL,0,NULL,NULL 57235,96636,1038989,NULL,NULL,NULL,0,NULL,NULL 57236,460822,736750,NULL,NULL,NULL,0,NULL,NULL 57237,95131,476470,NULL,NULL,NULL,0,NULL,NULL 57238,817075,1147314,NULL,NULL,NULL,0,NULL,NULL 57239,26059,347947,Popular Question Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 57240,97408,1009660,Yearling Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57241,334411,1110655,Necromancer Yearling Nice Answer Custodian Custodian Revival Yearling Good Answer Self-Learner Nice Answer Yearling Popular Question Notable Question Yearling Notable Question Good Answer Civic Duty Nice Question Nice Answer Guru Yearling Necromancer Custodian,NULL,NULL,0,NULL,NULL 57242,67050,323582,Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Caucus Enlightened Good Answer Great Answer Yearling Good Answer Guru Nice Question Famous Question Announcer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer c# Good Answer Good Answer Good Answer Nice Answer Nice Answer Announcer Good Answer Caucus Nice Answer Enlightened Yearling Great Answer Announcer Nice Answer Announcer Nice Answer Pundit Announcer Good Answer Guru,NULL,NULL,0,NULL,NULL 57243,17833,647070,NULL,NULL,NULL,0,NULL,NULL 57244,193769,265580,NULL,NULL,NULL,0,NULL,NULL 57245,100878,79369,Yearling,NULL,NULL,0,NULL,NULL 57246,265031,1290125,NULL,NULL,NULL,0,NULL,NULL 57247,2103593,883444,Yearling Critic Notable Question,NULL,NULL,0,NULL,NULL 57248,53895,539223,Informed Yearling Revival Commentator Scholar Popular Question,NULL,NULL,0,NULL,NULL 57249,699942,1274728,Popular Question,NULL,NULL,0,NULL,NULL 57250,47274,1149854,NULL,NULL,NULL,0,NULL,NULL 57251,165667,935032,NULL,NULL,NULL,0,NULL,NULL 57252,3641,1055505,NULL,NULL,NULL,0,NULL,NULL 57253,143341,334033,Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 57254,844478,447348,Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 57255,502280,740553,Nice Answer Enlightened Notable Question Nice Answer fonts php Good Question Yearling bezier html Nice Answer Enlightened Popular Question Enlightened css Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Caucus Popular Question Revival Nice Answer Enlightened Good Answer Nice Answer Cleanup Custodian Good Answer Popular Question Nice Answer Enlightened Good Answer Synonymizer Announcer Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Popular Question Caucus Necromancer Announcer reactjs Popular Question Notable Question Good Answer Announcer Announcer Nice Answer Enlightened Notable Question Custodian Nice Answer Enlightened Caucus Electorate Guru Good Answer Yearling Nice Answer Popular Question Great Answer Guru Nice Answer Enlightened Revival java Nice Answer Enlightened,NULL,pAfter lots of trying different things finally had look at what npm actually is on windows and it turns out to be bash script called codenpm code as well as windows native batch script called codenpm cmd code no idea why it cmd that should be bat but there you have it Windows command resolver will see codenpm code notice that it not an executable see codenpm cmd code and then notice that IS an executable and will then use that instead This is helpful when you re in terminal but codespawn code will not do any such resolution passing it codenpm code will make it fail because it not an executable Passing it codenpm cmd code as command however works just fine pp Also not sure why coderm code was failing earlier since that actually works correctly without any changes that can tell Probably misread that as part of the problem when it fact it wasn ppSo if you run into codespawn code saying ENOENT in windows when the command you re trying to trigger works in plain command prompt find out if the command you re calling is true executable or whether there code bat code code cmd code file that the command prompt will helpfully run for you instead If so spawn that pp strongedit strong ppsince this post is still getting upvotes good way to ensure the command always works is to bootstrap it based on codeprocess platform code which will be codewin32 code for windows ppre codevar npm process platform win32 npm cmd npm child spawn npm install code pre doubt that what happened Windows does some magic when it comes to executing bat and cmd scripts it entirely possible npm simply can hook into that without considerable work pThis can be done fairly easily using codemigrations SeparateDatabaseAndState code Basically we use database operation to rename the table concurrently with two state operations to remove the model from one app history and create it in another ph2Remove from old app h2pre codepython manage py makemigrations old app empty code prepIn the migration ppre codeclass Migration migrations Migration dependencies database operations migrations AlterModelTable TheModel newapp themodel state operations migrations DeleteModel TheModel operations migrations SeparateDatabaseAndState database operations database operations state operations state operations code preh2Add to new app h2pFirst copy the model to the new app model py then ppre codepython manage py makemigrations new app code prepThis will generate migration with naive codeCreateModel code operation as the sole operation Wrap that in codeSeparateDatabaseAndState code operation such that we don try to recreate the table Also include the prior migration as dependency ppre codeclass Migration migrations Migration dependencies old app above migration state operations migrations CreateModel name TheModel fields id models AutoField verbose name ID serialize False auto created True primary key True options db table newapp themodel bases models Model operations migrations SeparateDatabaseAndState state operations state operations code pre Some questions does manage migrate need to be run between the two steps and when you say copy the mode do you mean copy it now exists in both models py files or do you mean move delete it from oldapp models py Get MIME type by URL php file mime types pFore example codeexif imagetype code works fine ppre code lt php echo exif imagetype http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepBut codefinfo file code does not work ppre code lt php echo finfo file finfo open FILEINFO MIME http orig01 deviantart net ace1 2010 227 png test by destron23 png code prepand got ppre codeWarning finfo file Failed identify data null in test php on line code prepAny thoughts yes why would you think file info would work The mime type is header value that may be sent by server in response to an HTTP GET request but there no guarantee the server bothers including it so you get resource mime type by doing network request and inspecting the HTTP header response and if there is no mime type header downloading the resource located at the URL and then analyzing the actual bytecode Find where syntax error occurs when new Function fails javascript browser pTo shortcut long comment section on don use new Function and or eval is evil this question is about how to access if possible error information that is related to codenew Function code constructor failing It mostly question to discover limit in what the browser will let me do when trying to exploit JavaScript to the extent that the spec and standard browser implementations allow So with that disclaimer in place ppWhen evaluating code through new Function call is there way to find out where in the function content syntax error occurs if illegal syntax code is being evaluated ppre codetry var generator new Function input try generator catch runtimeError console error legal code unforeseen result runtimeError catch syntaxError console error illegal code syntax errors syntaxError code prepWhen the building of the generator fails is there way to find out from the browser not using jslint or another external library what the error was or where it occurred pp href https developer mozilla org en US docs Web JavaScript Reference Global Objects SyntaxError prototype https developer mozilla org en US docs Web JavaScript Reference Global Objects SyntaxError prototype mentions that SyntaxError has codefilename code and codelinenumber code property but these are undefined for dynamic code evaluated through new Function constructor from what can tell so relying on the error object itself seems not to be an option Are there alternative ways to introduce the code to the browser so that the code once we know it has syntax errors from failing new Function call can be used to find out where the problem is according to the JS engine used pp Of course if the goal was to simply find syntax errors jslint as preprocess step would be the go to solution but more interested in whether or not browsers can in some way be made to report this information even if in limited form like there is SOME error on line char You re years late to the party but even then no Function is an object type which when called as if it function does the same thing as new Function https www ecma international org ecma 262 sec 15 so advocating using the spec defined hides the details call instead of calling new Function explicitly is really weird thing to do All the same error handling applies so keep your code obvious and use explicit calls pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors Yes It means your poly Bezier is not C1 continuous https en wikipedia org wiki Smoothness Order of continuity the end point of segment and start point of segment might overlap and the direction of the tangents might look the same but the actual tangent vectors coming in and going out of the point where the segments join up are not equal and so anything involving the derivative will have discontinuity from segment to segment If you need smooth tangent normal behaviour you ll have to fix your poly Bezier such that it exhibits C1 continuity pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors why would there be sign switches for curves that fit around cylinders The tangent plane will always be aligned with the cylinder surface pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the,,, normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors What They most certainly don flip the normals all point outward with respect to the tangent plane At no point does normal become an antinormal or vice versa you can see the normals going down around the midpoint of the curve and that because this is not curve that cleanly circumscribes cylinder You can fit one inside but that very much not the same thing If we picked curve that properly fits cylinder by making it nicely symmetric the curve normals will be entirely well behaved with the respect to the circumscribed cylinder surface pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors Before doing any analysis you re computing 3D normals on 2D curve so that bit odd Still ll have look pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors Yeah trying to see why the normals slowly flip the closer we get to end point when using the cross cross approach https imgur com 2scASjb Might take little longer still though because of day jobs pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to function tangent oriented in the plane of the direction of travel for the curve and the tangent function of Bezier curve is actually just another Bezier curve order lower Let find the normal for cubic Bezier curve The regular function with being the curve coordinates in single dimension ppre codefunction computeBezier return t² t³ code prepNote that Bezier curves are symmetrical the only difference between codet code vs code1 code is which end of the curve represents the start Using codea code means the curve starts at codea code Using codea ³t code would make it start at coded code instead ppSo let define quick curve with the following coordinates ppre codea 100 100 200 100 100 100 500 100 100 100 code prep img src https stack imgur com Xginn jpg alt just 3D curve ppIn order to get the normal for this function we first need the href http pomax github io bezierinfo derivatives rel nofollow noreferrer derivative ppre codefunction computeBezierDerivative b−a return t² code prepDone Computing the derivative is stupidly simple fantastic property of Bezier curves ppNow in order to get the normal we need to take the normalised tangent vector at some value codet code and rotate it by quarter turn We can turn it in quite few directions so further restriction is that we want to turn it only in the plane that is defined by the tangent vector and the tangent vector right next to it an infinitesimally small interval apart ppThe tangent vector for any Bezier curve is formed simply by taking however many dimensions you have and evaluating them separately so for 3D curve ppre code computeBezierDerivative values Tangent computeBezierDerivative values gt computeBezierDerivative values code prepAgain quite simple to compute To normalise this vector or in fact any vector we simply perform vector division by its length ppre code NormalTangent divided by sqrt code prepSo let draw those in green pp img src https stack imgur com URfl4 jpg alt our curve with tangents computed at many points ppThe only trick is now to find the plane in which to rotate the tangent vector to turn the tangent into normal We know we can use another value arbitrarily close to the one we want and turn that into second tangent vector damn near on the same point for finding the plane with arbitrary correctness so we can do that ppGiven an original point codef t1 code we take point codef t2 code with codet2 t1 code where eme em is some small value like 001 this point codeq code has derivative codeq pointDerivative t2 code and in order to make things easier for us we move that tangent vector tiny bit by codep code so that the two vectors both start at codep code Pretty simple ppHowever this is equivalent to computing the first and second derivative at codep code and then forming the second vector by adding those two together as the second derivative gives us the change of the tangent at point so adding the second derivative vector to the first derivative vector gets us two vectors in the plane at codep code without having to find an adjacent point This can be useful in curves where there are discontinuities in the derivative curves with cusps ppWe now have two vectors departing at the same coordinate our real tangent and the next point tangent which is so close it might as well be the same point Thankfully due to how Bezier curves work this second tangent is emnever em the same but slightly different and slightly different is all we need If we have two normalised vectors starting at the same point but pointing in different directions we can find the axis over which we need to rotate one to get the other simply by taking the href https en wikipedia org wiki Cross product rel nofollow noreferrer cross product between them and thus we can find the plane that they both go through ppOrder matters we compute strongc tangent₂ tangent₁ strong because if we compute strongc tangent₁ tangent₂ strong we ll be computing the rotation axis and resulting normals in the wrong direction Correcting that is literally just take vector multiply by at the end but why correct after the fact when we can get it right here Let see those axes of rotation in blue pp img src https stack imgur com B0Zul jpg alt our curve with the cross product axis added ppNow we have everything we need in order to turn our normalised tangent vectors into normal vectors all we have to do is rotate them about the axes we just found by quarter turn If we turn them one way we get normals if we turn them the other we get backfacing normals ppFor arbitrary rotation about an axis in 3D href https en wikipedia org wiki Rotation matrix Rotation matrix from axis and angle rel nofollow noreferrer that job is perhaps laborious but not difficult and the quarter turns are generally special in that they greatly simplify the maths to rotate point over our rotation axis strongc strong the rotation matrix turns out to be ppre code c₁² c₁ c₂ c₃ c₁ c₃ c₂ c₁ c₂ c₃ c₂² c₂ c₃ c₁ c₁ c₃ c₂ c₂ c₃ c₁ c₃² code prepWhere the and subscripts are really just the and components of our vector So that still easy and all that left is to matrix rotate our normalised tangent ppre coden Tangent code prepWhich is ppre code T₁ R₁₁ T₂ R₁₂ T₃ R₁₃ nx T₁ R₂₁ T₂ R₂₂ T₃ R₂₃ gt ny T₁ R₃₁ T₂ R₃₂ T₃ R₃₃ nz code prepAnd we have the normal vector we need Perfect pp strongExcept we can do better strong since we re not working with arbitrary angles but with right angles there significant shortcut we can use In the same way that the vector strongc strong was perpendicular to both tangents our normal strongn strong is perpendicular to both strongc strong and the regular tangent so we can use the cross product second time to find the normal ppre code nx tangent₁ gt ny nz code prepThis will give us exactly the same vector with less work pp img src https stack imgur com xmIHj jpg alt Our curve with normals ppAnd if we want internal normals it the same vector just multiply by pp img src https stack imgur com Orla8 jpg alt Our curve with inward normals ppPretty easy once you know the tricks And finally because code is always useful href https gist github com Pomax 5b6b2c091d7ed8d3f1de rel nofollow noreferrer this gist is the href http processing org rel nofollow noreferrer Processing program used to make sure was telling the truth ph1What if the normals behave really weird h1pFor example what if we re using 3D curve but it planar all codez code coordinates at Things suddenly do horrible things For instance let look at curve with coordinates 38 260 25 541 and 15 821 pp img src https stack imgur com f2Uuj png alt enter image description here ppSimilarly particularly curvy curves may yield rather twisting normals Looking at curve with coordinates 38 260 200 25 541 200 and 15 821 600 pp img src https stack imgur com IVjq2 png alt enter image description here ppIn this case we want normals that rotate and twist as little as possible which can be found using Rotation Minimising Frame algorithm such as explained in section or href https www microsoft com en us research wp content uploads 2016 12 Computation of rotation minimizing frames pdf rel nofollow noreferrer Computation of Rotation Minimizing Frames Wenping Wang Bert Jüttler Dayue Zheng and Yang Liu 2008 ppImplementing their line algorithm takes little more work in normal programming language such as Java Processing ppre class lang java prettyprint override codeArrayList lt VectorFrame gt getRMF int steps ArrayList lt VectorFrame gt frames new ArrayList lt VectorFrame gt double c1 c2 step steps t0 t1 PointVector v1 v2 riL tiL riN siN VectorFrame x0 x1 Start off with the standard tangent axis normal frame associated with the curve just prior the Bezier interval t0 step frames add getFrenetFrame t0 start constructing RM frames for t0 lt t0 step start with the previous known frame x0 frames get frames size get the next frame we re going to throw away its axis and normal t1 t0 step x1 getFrenetFrame t1 First we reflect x0 tangent and axis onto x1 through the plane of reflection at the point midway x0 x1 v1 x1 minus x0 c1 v1 dot v1 riL x0 minus v1 scale c1 v1 dot x0 tiL x0 minus v1 scale c1 v1 dot x0 Then we reflection second time over plane at x1 so that the frame tangent is aligned with the curve tangent v2 x1 minus tiL c2 v2 dot v2 riN riL minus v2 scale c2 v2 dot riL siN x1 cross riN x1 siN x1 riN we record that frame and move on frames add x1 and before we return we throw away the very first frame because it lies outside the Bezier interval frames remove return frames code prepStill this works really well With the note that the Frenet frame is the standard tangent axis normal frame ppre class lang java prettyprint override codeVectorFrame getFrenetFrame double PointVector origin get PointVector tangent derivative get normalise PointVector normal getNormal normalise return new VectorFrame origin tangent normal code prepFor our planar curve we now see perfectly behaved normals pp img src https stack imgur com rc4Wv png alt enter image description here ppAnd in the non planar curve there is minimal rotation pp img src https stack imgur com ynJep png alt enter image description here ppAnd finally these normals can be uniformly reoriented by rotating all vectors around their associated tangent vectors The reason this happens is because the next derivative can become retrograde they lie in the same plane but the next derivative offset to the current point would lie behind the current one rotating or even flipping the normal ll have to think about different way to get the true normal Very glad you brought this to my attention pGetting the normal for point on Bezier curve is actually pretty straight forward as normals are simply perpendicular to functio,,,,,,,, " tangent orient""",nice answer enlighten notable question nice answer font php good question yearle bezi html nice answer enlighten popular question enlighten css great answer nice answer enlighten nice answer enlighten nice answer enlighten caucus popular question revival nice answer enlighten good answer nice answer cleanup custodian good answer popular question nice answer enlighten good answer synonymizer announcer nice answer good answer nice answer enlighten yearle nice answer enlighten good answer popular question caucus necromancer announcer reactj popular question notable question good answer announcer announcer nice answer enlighten notable question custodian nice answer enlighten caucus electorate guru good answer yearle nice answer popular question great answer guru nice answer enlighten revival java nice answer enlighten pafter lot thing finally npm window turn bash script call codenpm code window native batch script call codenpm cmd code idea cmd bat window command resolver codenpm code notice executable codenpm cmd code notice executable helpful terminal codespawn code resolution pass codenpm code make fail executable pass codenpm cmd code command work fine coderm code fail earlier work correctly misread problem fact ppso run codespawn code enoent window command trigger work plain command prompt command call true executable code bat code code cmd code file command prompt helpfully run spawn strongedit strong ppsince post upvote good ensure command work bootstrap base codeprocess platform code code window codevar npm process platform npm cmd npm child spawn npm install code doubt happen window magic execute bat cmd script npm simply hook considerable work fairly easily codemigration code basically database operation rename table concurrently state operation remove model app history create app codepython manage py makemigration app code prepin migration codeclass migration migration migration dependency database operation migration altermodeltable themodel newapp themodel state operation migration themodel operation migration database operation database operation state operation state operation code app copy model app model py codepython manage py makemigration app code prepthis generate migration naive code operation sole operation wrap code operation recreate table include prior migration dependency codeclass migration migration migration dependency app migration state operation migration createmodel themodel field model autofield verbose serialize false auto create true primary key true option db table newapp themodel basis model model operation migration state operation state operation code question manage migrate run step copy mode copy exist model py file delete oldapp model py mime type url php file mime type pfore codeexif imagetype code work fine code lt php echo exif imagetype http deviantart net png test png code prepbut codefinfo file code work code lt php echo finfo file finfo open fileinfo mime http deviantart net png test png code prepand codewarne finfo file fail identify datum null test php line code prepany thought file info work mime type header server response http request guarantee server bother include resource mime type network request inspect http header response mime type header download resource locate url analyze actual bytecode syntax error occur function fail javascript browser pto shortcut long comment section function eval evil question access error information relate codenew function code constructor fail question discover limit browser exploit javascript extent spec standard browser implementation disclaimer place ppwhen evaluate code function function content syntax error occur illegal syntax code evaluate codetry var generator function input generator catch runtimeerror console error legal code unforeseen result runtimeerror catch syntaxerror console error illegal code syntax error syntaxerror code prepwhen building generator fail browser jslint external library error occur href https developer mozilla org docs web javascript reference global object syntaxerror prototype https developer mozilla org docs web javascript reference global object syntaxerror prototype mention syntaxerror codefilename code codelinenumber code property undefined dynamic code evaluate function constructor rely error object option alternative way introduce code browser code syntax error fail function problem js engine goal simply syntax error jslint preprocess step solution interested browser report information limit form error line char year late party function object type call function thing function https ecma international org ecma advocate spec define hide detail call function explicitly weird thing error handle apply code obvious explicit call pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo derivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector mean poly bezi continuous https wikipedia org wiki smoothness order continuity end point segment start point segment overlap direction tangent actual tangent vector come point segment join equal involve derivative discontinuity segment segment smooth tangent normal behaviour fix poly bezi exhibit continuity pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo derivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector sign switch curve fit cylinder tangent plane align cylinder surface pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo derivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector flip normal point outward respect tangent plane point normal antinormal vice versa normal midpoint curve curve cleanly circumscribe cylinder fit thing pick curve properly fit cylinder make nicely symmetric curve normal behave respect circumscribe cylinder surface pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo derivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector analysis compute normal curve bit odd pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo derivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector yeah normal slowly flip close end point cross cross approach https imgur longer day job pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient plane direction travel curve tangent function bezi curve bezi curve order low normal cubic bezi curve regular function curve coordinate single dimension codefunction computebezi return code prepnote bezi curve symmetrical difference codet code code end curve represent start codea code mean curve start codea code codea code make start code code ppso define quick curve coordinate codea code prep img src https stack imgur xginn jpg alt curve ppin order normal function href http pomax github bezierinfo ,,,,,,, "erivative nofollow noreferrer derivative codefunction return code prepdone compute derivative stupidly simple fantastic property bezi curve ppnow order normal normalise tangent vector codet code rotate quarter turn turn direction restriction turn plane define tangent vector tangent vector infinitesimally small interval ppthe tangent vector bezi curve form simply take dimension evaluate separately curve code value tangent value value code prepagain simple compute normalise vector fact vector simply perform vector division length code normaltangent divide sqrt code prepso draw green img src https stack imgur jpg alt curve tangent compute point ppthe trick plane rotate tangent vector turn tangent normal arbitrarily close turn tangent vector damn point find plane arbitrary correctness ppgiven original point codef code point codef code code -PRON- small point codeq code derivative codeq pointderivative code order make thing easy tangent vector tiny bit codep code vector start codep code pretty simple pphowever equivalent compute derivative codep code form vector add derivative change tangent point add derivative vector derivative vector vector plane codep code adjacent point curve discontinuity derivative curve cusps ppwe vector depart coordinate real tangent point tangent close point thankfully bezi curve work tangent emnever -PRON- slightly slightly normalise vector start point point direction axis rotate simply take href https wikipedia org wiki cross product nofollow noreferrer cross product plane ppord matter compute strongc strong compute strongc strong compute rotation axis result normal wrong direction correct literally vector multiply end correct fact axis rotation blue img src https stack imgur jpg alt curve cross product axis add ppnow order turn normalise tangent vector normal vector rotate axis quarter turn turn normal turn backface normal ppfor arbitrary rotation axis href https wikipedia org wiki rotation matrix rotation matrix axis angle nofollow noreferrer job laborious difficult quarter turn generally special greatly simplify math rotate point rotation axis strongc strong rotation matrix turn code code prepwhere subscript component vector easy leave matrix rotate normalise tangent coden tangent code prepwhich code nx ny code prepand normal vector perfect strongexcept strong work arbitrary angle angle significant shortcut vector strongc strong perpendicular tangent normal strongn strong perpendicular strongc strong regular tangent cross product time normal code nx ny code prepthis vector work img src https stack imgur xmihj jpg alt curve normal ppand internal normal vector multiply img src https stack imgur jpg alt curve normal pppretty easy trick finally code href https gist github pomax nofollow noreferrer gist href http processing org nofollow noreferrer processing program make tell truth normal behave weird curve planar codez code coordinate thing suddenly horrible thing instance curve coordinate img src https stack imgur png alt enter image description ppsimilarly curvy curve yield twist normal curve coordinate img src https stack imgur png alt enter image description ppin case normal rotate twist rotation minimise frame algorithm explain section href https microsoft research wp content upload computation rotation minimize frame pdf nofollow noreferrer computation rotation minimize frame wenpe wang bert dayue yang liu ppimplemente line algorithm take work normal programming language java processing class lang java prettyprint override codearraylist lt vectorframe getrmf int step arraylist lt vectorframe frame arraylist lt vectorframe double step step pointvector ril rin sin vectorframe start standard tangent axis normal frame curve prior bezi interval step frame add getfrenetframe start construct rm frame lt step start previous frame frame frame size frame throw axis normal step getfrenetframe reflect tangent axis plane reflection point midway dot ril scale dot scale dot reflection time plane frame tangent align curve tangent dot rin ril scale dot ril sin cross rin sin rin record frame frame add return throw frame lie bezi interval frame remove return frame code prepstill work note frenet frame standard tangent axis normal frame class lang java prettyprint override codevectorframe getfrenetframe double pointvector origin pointvector tangent derivative normalise pointvector normal getnormal normalise return vectorframe origin tangent normal code prepfor planar curve perfectly behave normal img src https stack imgur png alt enter image description ppand planar curve minimal rotation img src https stack imgur ynjep png alt enter image description ppand finally normal uniformly reorient rotate vector tangent vector reason derivative retrograde lie plane derivative offset current point lie current rotate flip normal true normal glad bring attention pgette normal point bezi curve pretty straight forward normal simply perpendicular function tangent orient""",0,NULL,NULL,,,,, 57256,1982413,1375662,NULL,NULL,NULL,0,NULL,NULL 57257,724536,200327,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57258,426918,156708,Nice Answer Yearling Caucus Nice Answer Nice Answer Enlightened Census Good Answer Guru Yearling Good Answer Documentation User Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 57259,46333,983070,Yearling Nice Answer Yearling Caucus Announcer Necromancer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 57260,254832,891916,NULL,NULL,NULL,0,NULL,NULL 57261,497790,944226,NULL,NULL,NULL,0,NULL,NULL 57262,429538,1072521,Yearling Necromancer Necromancer Yearling Yearling Critic Nice Answer Enthusiast Yearling,NULL,NULL,0,NULL,NULL 57263,3351574,580738,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 57264,45152,14302,Famous Question Famous Question Necromancer vst Good Answer Nice Answer Famous Question Notable Question Nice Answer Revival audio Necromancer Nice Answer Yearling Good Answer Nice Question Good Answer Notable Question Popular Question Nice Question Notable Question Great Question ios Favorite Question Notable Question Famous Question Yearling Guru Famous Question macos Favorite Question Guru Great Question Nice Answer Good Question Notable Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 57265,52303,314007,NULL,NULL,NULL,0,NULL,NULL 57266,96946,692395,Necromancer Nice Answer Yearling Good Answer Yearling Announcer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 57267,37845,3977,NULL,NULL,NULL,0,NULL,NULL 57268,48162,1030950,NULL,NULL,NULL,0,NULL,NULL 57269,314785,775306,Necromancer Notable Question Yearling Nice Answer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 57270,757931,436638,NULL,NULL,NULL,0,NULL,NULL 57271,203612,1610,Good Question Yearling Famous Question Good Question Custodian Notable Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 57272,321787,892641,NULL,NULL,NULL,0,NULL,NULL 57273,2587708,892641,NULL,NULL,NULL,0,NULL,NULL 57274,74298,816008,NULL,NULL,NULL,0,NULL,NULL 57275,584036,359782,Notable Question,NULL,NULL,0,NULL,NULL 57276,2599702,359782,Notable Question,NULL,NULL,0,NULL,NULL 57277,73022,109302,Nice Answer Enlightened Nice Answer Good Answer Yearling Good Answer Good Question Good Answer html Popular Question Nice Answer Enlightened Nice Answer Good Answer Good Answer Famous Question php Reviewer Yearling Popular Question Nice Answer Popular Question Nice Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Disciplined Nice Answer Good Question,NULL,Explain regex that finds CSS comments css regex pI found this regex code that finds comments in w3 org href http www w3 org TR CSS2 grammar html scanner rel nofollow CSS grammar page ppre class lang none prettyprint override code code prepIt is quite long and bit difficult to understand just put ppre class lang none prettyprint override code code prepto find comments but when tested it in href http regexpal com rel nofollow RegexPal it finds single line comments and not multi line comments whereas the original regex can find all types of comments ppI don understand what the ppre class lang none prettyprint override code code preppart inside the original regex does Can anyone explain me this Since answering ve found Regexper which often turn to when need to get insight into regexp See my answer below for link with breakdown of the regex in your question,0,NULL,NULL 57278,223239,769909,NULL,NULL,NULL,0,NULL,NULL 57279,395,387224,Critic Famous Question Yearling Famous Question Good Answer Nice Question,NULL,NULL,0,NULL,NULL 57280,82241,195895,Revival Necromancer Yearling Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57281,42394,305750,NULL,NULL,NULL,0,NULL,NULL 57282,653613,1464319,Famous Question,NULL,NULL,0,NULL,NULL 57283,916249,923063,Notable Question Self-Learner Yearling Popular Question Famous Question Caucus Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 57284,405060,472803,Popular Question Informed Famous Question Notable Question Yearling Nice Question Popular Question Popular Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57285,103882,1360215,NULL,NULL,NULL,0,NULL,NULL 57286,75905,575421,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Question Guru Yearling Nice Answer Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 57287,128983,1113431,NULL,NULL,NULL,0,NULL,NULL 57288,300721,1066730,Commentator,NULL,NULL,0,NULL,NULL 57289,151507,1271015,NULL,NULL,NULL,0,NULL,NULL 57290,1967180,842639,Editor Student Popular Question,NULL,NULL,0,NULL,NULL 57291,1510529,768358,Notable Question Popular Question Notable Question Nice Question Yearling Revival Popular Question Informed Autobiographer Tumbleweed Notable Question Famous Question,NULL,NULL,0,NULL,NULL 57292,5772181,1468301,Famous Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 57293,403387,1468301,Famous Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 57294,403737,355116,Notable Question Nice Question Yearling Famous Question Nice Question Good Question Popular Question Yearling Nice Question Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 57295,351118,625954,Notable Question,NULL,NULL,0,NULL,NULL 57296,1011377,38877,Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 57297,1670369,502867,Good Question Nice Question Great Question Notable Question Custodian Famous Question Nice Question Nice Question Popular Question Popular Question Notable Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Yearling Popular Question Famous Question Popular Question Nice Question Popular Question Famous Question Popular Question Famous Question Notable Question Nice Question Taxonomist Good Question Famous Question Popular Question Yearling,NULL,NULL,1,Nested RecyclerView How to prevent parent RecyclerView from getting scrolled while child RecyclerView is scrolling android android recyclerview nestedrecyclerview pI am trying to implement horizontal coderecyclerview code and each item of the coderecyclerview code will be vertical coderecyclerview code with grid layout The problem that am facing is that when try to scroll the child coderecyclerview code vertically sometimes the parent coderecyclerview code takes the scroll and starts scrolling horizontally The approaches tried to fix this are polli codesetNestedScrollingEnabled false code on the parent coderecyclerview code liliIn the codeonTouch code of the child coderecyclerview code disable touch events on the parent coderecyclerview code by called coderequestdisallowinterceptTouchevent false code li olpNone of the above solutions provide perfect fix for the problem Any help is appreciated,NULL 57298,64419,1150777,NULL,NULL,NULL,0,NULL,NULL 57299,1883315,1137391,Autobiographer Teacher Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 57300,1604590,1118385,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57301,892689,217816,NULL,NULL,NULL,0,NULL,NULL 57302,35955,797840,Yearling Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57303,470070,765634,Yearling,NULL,NULL,0,NULL,NULL 57304,81546,761366,NULL,NULL,NULL,0,NULL,NULL 57305,1036635,342677,Notable Question,NULL,NULL,0,NULL,NULL 57306,3352920,342677,Notable Question,NULL,NULL,0,NULL,NULL 57307,218182,1430325,Informed Scholar Student,NULL,NULL,0,NULL,NULL 57308,40290,954950,Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57309,108716,1540178,Notable Question,NULL,NULL,0,NULL,NULL 57310,228503,218584,Notable Question Favorite Question Popular Question Yearling Notable Question Nice Answer Enlightened Notable Question Yearling Census Good Question Yearling,NULL,NULL,0,NULL,NULL 57311,13487,239268,Necromancer,NULL,NULL,0,NULL,NULL 57312,461708,309031,Nice Answer Necromancer Notable Question Yearling Popular Question Nice Question Famous Question Peer Pressure Popular Question Famous Question Good Question Nice Answer Popular Question Notable Question Popular Question Necromancer Organizer Yearling Necromancer Notable Question Nice Question Necromancer Good Answer Popular Question Yearling Nice Question Announcer Nice Answer Great Question Famous Question,NULL,NULL,0,NULL,NULL 57313,497616,202128,NULL,NULL,NULL,0,NULL,NULL 57314,10780347,32045,NULL,NULL,NULL,0,NULL,NULL 57315,236911,1053767,NULL,NULL,NULL,0,NULL,NULL 57316,368690,521933,Teacher Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 57317,262089,1363756,Good Answer Yearling,NULL,NULL,0,NULL,NULL 57318,2316393,1232123,Supporter Teacher Notable Question,NULL,NULL,0,NULL,NULL 57319,149178,892569,NULL,NULL,NULL,0,NULL,NULL 57320,137154,987511,NULL,NULL,NULL,0,NULL,NULL 57321,1151842,501078,NULL,NULL,NULL,0,NULL,NULL 57322,480849,1012637,Notable Question Yearling Critic Excavator,NULL,NULL,0,NULL,NULL 57323,43402,124453,Popular Question Yearling Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 57324,1498801,887812,Yearling Promoter Self-Learner Caucus Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57325,378462,916657,Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Necromancer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Guru string Nice Answer Popular Question javascript Nice Answer Enlightened Good Answer Good Answer Yearling Great Answer Popular Question Nice Answer Enlightened Nice Answer Good Question Nice Answer Guru Caucus Constituent Popular Question Good Answer Good Answer sorting Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Popular Question Guru Good Answer Generalist Guru Nice Answer Enlightened Popular Question Guru Famous Question Good Answer Caucus Good Answer Yearling Nice Answer Nice Answer Nice Answer Nice Answer Guru Guru Nice Answer Enlightened Good Question Nice Answer Enlightened Good Answer Caucus Great Answer Famous Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Popular Question Yearling Great Answer Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 57326,1549155,1278188,NULL,NULL,NULL,0,NULL,NULL 57327,4476,722291,Caucus Popular Question Census Notable Question Popular Question Nice Question Notable Question Investor Organizer Altruist,NULL,NULL,0,NULL,NULL 57328,511782,1081680,Student Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 57329,186916,942130,Student,NULL,NULL,0,NULL,NULL 57330,433573,1242606,NULL,NULL,NULL,0,NULL,NULL 57331,253466,36825,NULL,NULL,NULL,0,NULL,NULL 57332,799517,210032,NULL,NULL,NULL,0,NULL,NULL 57333,83417,913708,Custodian Popular Question,NULL,NULL,0,NULL,NULL 57334,2399547,1161553,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57335,28411,1161553,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57336,98849,739018,NULL,NULL,NULL,0,NULL,NULL 57337,526207,692303,Commentator Yearling Necromancer Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 57338,1086051,707743,NULL,NULL,NULL,0,NULL,NULL 57339,140445,270945,Notable Question Nice Question Famous Question Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 57340,3567952,1176416,NULL,NULL,NULL,0,NULL,NULL 57341,32526,24495,Yearling,NULL,,0,, 57342,542577,1006976,Yearling,NULL,NULL,0,NULL,NULL 57343,754908,1167759,NULL,NULL,NULL,0,NULL,NULL 57344,426599,2275,Favorite Question Notable Question Popular Question Yearling Good Question Notable Question Yearling Popular Question Nice Answer Enlightened Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57345,1168206,1152744,NULL,NULL,NULL,0,NULL,NULL 57346,204737,1245042,Yearling Curious Yearling Nice Answer Documentation User Famous Question,NULL,NULL,0,NULL,NULL 57347,15882,774612,Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Question Nice Answer Enlightened Good Answer Yearling Notable Question Guru Popular Question Notable Question Guru Good Answer Guru Popular Question Yearling,NULL,pJavaScript can read the DOM and render fairly accurate representation of that using codecanvas code have been working on script which converts HTML into canvas image Decided today to make an implementation of it into sending feedbacks like you described ppThe script allows you to create feedback forms which include screenshot created on the client browser along with the form The screenshot is based on the DOM and as such may not be 100 accurate to the real representation as it does not make an actual screenshot but builds the screenshot based on the information available on the page ppIt strongdoes not require any rendering from the server strong as the whole image is created on the client browser The HTML2Canvas script itself is still in very experimental state as it does not parse nearly as much of the CSS3 attributes would want it to nor does it have any support to load CORS images even if proxy was available ppStill quite limited browser compatibility not because more couldn be supported just haven had time to make it more cross browser supported ppFor more information have look at the examples here pp href http hertzen com experiments jsfeedback rel noreferrer http hertzen com experiments jsfeedback pp strongedit strongThe html2canvas script is now available separately href https github com niklasvh html2canvas rel noreferrer here and some href http html2canvas hertzen com rel noreferrer examples here pp strongedit strongAnother confirmation that Google uses very similar method in fact based on the documentation the only major difference is their async method of traversing drawing can be found in this presentation by Elliott Sprehn from the Google Feedback team href http www elliottsprehn com preso fluentconf rel noreferrer http www elliottsprehn com preso fluentconf it reads the DOM and renders representation of the document based on it JS has no access to read what is being rendered by the browser pJavaScript can read the DOM and render fairly accurate representation of that using codecanvas code have been working on script which converts HTML into canvas image Decided today to make an implementation of it into sending feedbacks like you described ppThe script allows you to create feedback forms which include screenshot created on the client browser along with the form The screenshot is based on the DOM and as such may not be 100 accurate to the real representation as it does not make an actual screenshot but builds the screenshot based on the information available on the page ppIt strongdoes not require any rendering from the server strong as the whole image is created on the client browser The HTML2Canvas script itself is still in very experimental state as it does not parse nearly as much of the CSS3 attributes would want it to nor does it have any support to load CORS images even if proxy was available ppStill quite limited browser compatibility not because more couldn be supported just haven had time to make it more cross browser supported ppFor more information have look at the examples here pp href http hertzen com experiments jsfeedback rel noreferrer http hertzen com experiments jsfeedback pp strongedit strongThe html2canvas script is now available separately href https github com niklasvh html2canvas rel noreferrer here and some href http html2canvas hertzen com rel noreferrer examples here pp strongedit strongAnother confirmation that Google uses very similar method in fact based on the documentation the only major difference is their async method of traversing drawing can be found in this presentation by Elliott Sprehn from the Google Feedback team href http www elliottsprehn com preso fluentconf rel noreferrer http www elliottsprehn com preso fluentconf have no problem accessing the DOM For more information good introduction can be found at https developer mozilla org en US docs Web API Document Object Model Introduction How Do Access the DOM 3F pJavaScript can read the DOM and render fairly accurate representation of that using codecanvas code have been working on script which converts HTML into canvas image Decided today to make an implementation of it into sending feedbacks like you described ppThe script allows you to create feedback forms which include screenshot created on the client browser along with the form The screenshot is based on the DOM and as such may not be 100 accurate to the real representation as it does not make an actual screenshot but builds the screenshot based on the information available on the page ppIt strongdoes not require any rendering from the server strong as the whole image is created on the client browser The HTML2Canvas script itself is still in very experimental state as it does not parse nearly as much of the CSS3 attributes would want it to nor does it have any support to load CORS images even if proxy was available ppStill quite limited browser compatibility not because more couldn be supported just haven had time to make it more cross browser supported ppFor more information have look at the examples here pp href http hertzen com experiments jsfeedback rel noreferrer http hertzen com experiments jsfeedback pp strongedit strongThe html2canvas script is now available separately href https github com niklasvh html2canvas rel noreferrer here and some href http html2canvas hertzen com rel noreferrer examples here pp strongedit strongAnother confirmation that Google uses very similar method in fact based on the documentation the only major difference is their async method of traversing drawing can be found in this presentation by Elliott Sprehn from the Google Feedback team href http www elliottsprehn com preso fluentconf rel noreferrer http www elliottsprehn com preso fluentconf It depends how the widget is implemented If it adds cross origin iframe like Twitter does html2canvas doesn have access to read the contents of that iframe However if the widget injects something into the dom of the current document then html2canvas can render that fine,0,NULL,NULL 57348,248059,107289,Good Answer Popular Question Enlightened Good Answer Announcer Yearling Nice Answer Enlightened Good Question Yearling Good Answer Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 57349,201383,173630,Yearling Popular Question Popular Question Popular Question Popular Question Announcer Popular Question Famous Question Famous Question Popular Question Famous Question Notable Question Announcer Yearling Notable Question Notable Question Good Question Notable Question Yearling Famous Question Popular Question Announcer Notable Question Altruist Custodian Citizen Patrol Custodian Custodian Informed Organizer Suffrage Vox Populi Peer Pressure Tag Editor Custodian Explainer Custodian Yearling Booster Revival Announcer,NULL,pTry this code It adds tab href to url opens tab based on hash on page load ppre code function var hash window location hash hash amp amp ul nav href hash tab show nav tabs click function this tab show var scrollmem body scrollTop html scrollTop window location hash this hash html body scrollTop scrollmem code pre Here the most complete fix for the scrolling problem ul nav on shown bs tab function window scrollTop pYou do not need to have any objects in your scene to do this ppYou already know the camera position ppUsing codevector unproject camera code you can get ray pointing in the direction you want ppYou just need to extend that ray from the camera position until the coordinate of the tip of the ray is zero ppYou can do that like so ppre codevar vec new THREE Vector3 create once and reusevar pos new THREE Vector3 create once and reusevec set event clientX window innerWidth event clientY window innerHeight vec unproject camera vec sub camera position normalize var distance camera position vec pos copy camera position add vec multiplyScalar distance code prepThe variable codepos code is the position of the point in 3D space under the mouse and in the plane codez code phrpEDIT If you need the point under the mouse and in the plane codez targetZ code replace the distance computation with ppre codevar distance targetZ camera position vec code prepthree js 98 My three js scene doesn take up the full page rather it within square div with bunch of surrounding margins and padding Is there reliable way to convert these mouse movements to scene co ordinates that start at at one corner of the three js scene Pixi js handles this case somehow with event data getLocalPosition,0,NULL,NULL 57350,74297,1224467,Custodian Citizen Patrol Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 57351,1503708,892987,Notable Question Popular Question Civic Duty Quorum Yearling Not a Robot Popular Question,NULL,NULL,0,NULL,NULL 57352,61605,830003,Necromancer Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 57353,609718,781662,Popular Question Notable Question Popular Question Revival Nice Question Yearling Civic Duty Announcer Documentation User Yearling Famous Question Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 57354,603851,224183,NULL,NULL,NULL,0,NULL,NULL 57355,1979,1209714,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 57356,20971,864929,Informed,NULL,NULL,0,NULL,NULL 57357,127778,267001,Yearling Excavator Famous Question Popular Question Necromancer Nice Question Good Question Good Answer Famous Question Caucus Popular Question Yearling Revival Nice Answer Great Question Caucus Notable Question Yearling Favorite Question Popular Question Great Question Good Answer,NULL,NULL,0,NULL,NULL 57358,387168,85341,Nice Answer Enlightened Great Answer Yearling Popular Question Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57359,168709,753537,Student Enthusiast Self-Learner Commentator Popular Question Civic Duty Suffrage Critic Vox Populi Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 57360,357970,534755,ionic-framework ionic Nice Question Nice Answer Enlightened Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Good Question Notable Question Nice Answer Famous Question Nice Question Popular Question Documentation Pioneer Popular Question Popular Question Good Answer Popular Question Popular Question Announcer Popular Question Good Answer Popular Question Caucus Good Question Constituent Popular Question Yearling Good Answer Notable Question Popular Question Notable Question Notable Question Notable Question Necromancer Nice Answer Nice Answer Enlightened Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Nice Answer Caucus Constituent Notable Question Notable Question Revival cordova Documentation User Announcer Guru Guru Popular Question Popular Question Yearling Notable Question Popular Question Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Notable Question Popular Question Good Question Popular Question Notable Question Announcer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57361,457729,557179,Nice Answer Nice Answer Nice Answer Nice Answer Revival Nice Answer Enlightened retrofit Famous Question Famous Question Nice Answer Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened android-layout Nice Answer Enlightened Revival Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Caucus Popular Question Good Answer Nice Answer Nice Answer Enlightened Revival Yearling Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Announcer Revival Nice Answer Caucus Nice Answer Enlightened Cleanup Documentation User Good Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Census Guru Revival Good Answer Good Answer Caucus Constituent Good Answer Great Answer Good Answer Necromancer Disciplined Guru Revival Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 57362,40785,350917,NULL,NULL,NULL,0,NULL,NULL 57363,223436,816445,NULL,NULL,NULL,0,NULL,NULL 57364,164679,189986,Notable Question,NULL,NULL,0,NULL,NULL 57365,1195846,953463,Good Answer Yearling objective-c Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 57366,190745,531221,Nice Answer Yearling Notable Question Civic Duty Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 57367,2657,774200,NULL,NULL,NULL,0,NULL,NULL 57368,144424,1358108,NULL,NULL,NULL,0,NULL,NULL 57369,15391,6460,Nice Question Good Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Answer Yearling Nice Question Notable Question Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Revival Good Question Good Question Notable Question Notable Question Custodian Nice Question Nice Question Popular Question Notable Question Notable Question Famous Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 57370,387616,543864,NULL,NULL,NULL,0,NULL,NULL 57371,776998,541065,Popular Question Notable Question Notable Question Popular Question Citizen Patrol Yearling Critic Explainer Yearling Enthusiast Informed Custodian Organizer Yearling Popular Question Yearling Custodian Yearling Yearling Fanatic Tenacious Custodian Unsung Hero Custodian Caucus Constituent Proofreader Reviewer Reviewer Notable Question Steward Documentation User Excavator Steward angularjs Yearling Custodian Census Custodian Popular Question Nice Answer Civic Duty Custodian Caucus Notable Question,NULL,NULL,0,NULL,NULL 57372,258531,1407168,Informed,NULL,NULL,0,NULL,NULL 57373,116041,1185479,NULL,NULL,NULL,0,NULL,NULL 57374,807465,937120,Supporter Teacher,NULL,NULL,0,NULL,NULL 57375,349644,268742,Yearling Popular Question Custodian Popular Question Nice Answer Enlightened Nice Answer Yearling Good Answer Yearling Caucus Famous Question Nice Question,NULL,NULL,0,NULL,NULL 57376,1518789,1236354,NULL,NULL,NULL,0,NULL,NULL 57377,313832,547351,Self-Learner Famous Question Popular Question Yearling Nice Answer Curious,NULL,NULL,0,NULL,NULL 57378,1520994,1189771,Popular Question,NULL,NULL,0,NULL,NULL 57379,133355,565543,NULL,NULL,NULL,0,NULL,NULL 57380,19444,242930,Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru android-asynctask Nice Answer Good Answer Good Answer Good Answer Student Enlightened Good Answer Good Answer Nice Answer Yearling Good Answer Good Answer android-activity Nice Answer Populist Nice Answer Nice Answer Enlightened java Populist Nice Answer Guru Yearling Guru Nice Answer Enlightened Nice Answer Enlightened ssl,NULL,NULL,0,NULL,NULL 57381,37051,683845,Announcer,NULL,NULL,0,NULL,NULL 57382,2496247,1214609,NULL,NULL,NULL,0,NULL,NULL 57383,394298,1214609,NULL,NULL,NULL,0,NULL,NULL 57384,449640,1054054,NULL,NULL,NULL,0,NULL,NULL 57385,456340,884833,NULL,NULL,NULL,0,NULL,NULL 57386,364413,905316,Self-Learner Popular Question Yearling Nice Question Necromancer Caucus Good Answer Yearling Famous Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 57387,374745,1076461,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57388,408388,632439,NULL,NULL,NULL,0,NULL,NULL 57389,3342208,917980,NULL,NULL,NULL,0,NULL,NULL 57390,818868,56663,Yearling Commentator Famous Question Good Question Populist,NULL,NULL,0,NULL,NULL 57391,1045928,1043377,NULL,NULL,NULL,0,NULL,NULL 57392,41066,493593,Famous Question Good Question Critic,NULL,NULL,0,NULL,NULL 57393,1388365,335835,Yearling,NULL,NULL,0,NULL,NULL 57394,94560,1291022,NULL,NULL,NULL,0,NULL,NULL 57395,374249,1206021,Necromancer,NULL,NULL,0,NULL,NULL 57396,120340,1480070,NULL,NULL,NULL,0,NULL,NULL 57397,1234928,1451992,Student,NULL,NULL,0,NULL,NULL 57398,966998,476067,NULL,NULL,NULL,0,NULL,NULL 57399,218073,731693,NULL,NULL,NULL,0,NULL,NULL 57400,14189,87298,Nice Answer Yearling Organizer Good Answer Necromancer Necromancer Yearling Revival Great Answer Good Answer Good Answer Popular Question Necromancer Census Custodian Yearling Nice Answer Popular Question,NULL,h1TL DR h1pA git rebase workflow does not protect you from people who are bad at conflict resolution or people who are used to SVN workflow like suggested in href http www randyfay com node 89 rel noreferrer Avoiding Git Disasters Gory Story It only makes conflict resolution more tedious for them and makes it harder to recover from bad conflict resolution Instead use diff3 so that it not so difficult in the first place phrh1Rebase workflow is not better for conflict resolution h1pI am very pro rebase for cleaning up history However if strongI ever hit conflict immediately abort the rebase and do merge instead strong It really kills me that people are recommending rebase workflow as better alternative to merge workflow for conflict resolution which is exactly what this question was about ppIf it goes all to hell during merge it will go all to hell during rebase and potentially lot more hell too Here why ph2Reason Resolve conflicts once instead of once for each commit h2pWhen you rebase instead of merge you will have to perform conflict resolution up to as many times as you have commits to rebase for the same conflict ph3Real scenario h3pI branch off of master to refactor complicated method in branch My refactoring work is comprised of 15 commits total as work to refactor it and get code reviews Part of my refactoring involves fixing the mixed tabs and spaces that were present in master before This is necessary but unfortunately it will conflict with any change made afterward to this method in master Sure enough while working on this method someone makes simple legitimate change to the same method in the master branch that should be merged in with my changes ppWhen it time to merge my branch back with master have two options pp stronggit merge strong get conflict see the change they made to master and merge it in with the final product of my branch Done pp stronggit rebase strong get conflict with my emfirst em commit resolve the conflict and continue the rebase get conflict with my emsecond em commit resolve the conflict and continue the rebase get conflict with my emthird em commit resolve the conflict and continue the rebase get conflict with my emfourth em commit resolve the conflict and continue the rebase get conflict with my emfifth em commit resolve the conflict and continue the rebase get conflict with my emsixth em commit resolve the conflict and continue the rebase get conflict with my emseventh em commit resolve the conflict and continue the rebase get conflict with my emeighth em commit resolve the conflict and continue the rebase get conflict with my emninth em commit resolve the conflict and continue the rebase get conflict with my emtenth em commit resolve the conflict and continue the rebase get conflict with my emeleventh em commit resolve the conflict and continue the rebase get conflict with my emtwelfth em commit resolve the conflict and continue the rebase get conflict with my emthirteenth em commit resolve the conflict and continue the rebase get conflict with my emfourteenth em commit resolve the conflict and continue the rebase get conflict with my emfifteenth em commit resolve the conflict and continue the rebase ppYou have got to be kidding me if emthis em is your preferred workflow All it takes is whitespace fix that conflicts with one change made on master and every commit will conflict and must be resolved And this is emsimple em scenario with only whitespace conflict strongHeaven forbid you have real conflict involving major code changes across files and have to resolve emthat em multiple times strong ppWith all the extra conflict resolution you need to do it just increases the possibility that strongyou will make mistake strong But mistakes are fine in git since you can undo right Except of course ph2Reason With rebase there is no undo h2pI think we can all agree that conflict resolution can be difficult and also that some people are very bad at it It can be very prone to mistakes which why it so great that git makes it easy to undo pp strongWhen you merge strong branch git creates merge commit that can be discarded or amended if the conflict resolution goes poorly Even if you have already pushed the bad merge commit to the public authoritative repo you can use codegit revert code to undo the changes introduced by the merge and redo the merge correctly in new merge commit pp strongWhen you rebase strong branch in the likely event that conflict resolution is done wrong you re screwed Every commit now contains the bad merge and you can just redo the rebase At best you have to go back and amend each of the affected commits Not fun ppAfter rebase it impossible to determine what was originally part of the commits and what was introduced as result of bad conflict resolution pp sub It can be possible to undo rebase if you can dig the old refs out of git internal logs or if you create third branch that points to the last commit before rebasing sub ph1Take the hell out of conflict resolution use diff3 h1pTake this conflict for example ppre code lt lt lt lt lt lt lt HEADTextMessage send include timestamp gt true EmailMessage send include timestamp gt false gt gt gt gt gt gt gt feature branch code prepLooking at the conflict it impossible to tell what each branch changed or what its intent was This is the biggest reason in my opinion why conflict resolution is confusing and hard ppdiff3 to the rescue ppre codegit config global merge conflictstyle diff3 code prepWhen you use the diff3 each new conflict will have 3rd section the merged common ancestor ppre code lt lt lt lt lt lt lt HEADTextMessage send include timestamp gt true merged common ancestorEmailMessage send include timestamp gt true EmailMessage send include timestamp gt false gt gt gt gt gt gt gt feature branch code prepFirst examine the merged common ancestor Then compare each side to determine each branch intent You can see that HEAD changed EmailMessage to TextMessage Its intent is to change the class used to TextMessage passing the same parameters You can also see that feature branch intent is to pass false instead of true for the include timestamp option To merge these changes combine the intent of both ppre codeTextMessage send include timestamp gt false code prepIn general polliCompare the common ancestor with each branch and determine which branch has the simplest change liliApply that simple change to the other branch version of the code so that it contains both the simpler and the more complex change liliRemove all the sections of conflict code other than the one that you just merged the changes together into li olh1Alternate Resolve by manually applying the branch changes h1pFinally some conflicts are terrible to understand even with diff3 This happens especially when diff finds lines in common that are not semantically common eg both branches happened to have blank line at the same place For example one branch changes the indentation of the body of class or reorders similar methods In these cases better resolution strategy can be to examine the change from either side of the merge and manually apply the diff to the other file ppLet look at how we might resolve conflict in scenario where merging codeorigin feature1 code where codelib message rb code conflicts polli pDecide whether our currently checked out branch codeHEAD code or code ours code or the branch we re merging codeorigin feature1 code or code theirs code is simpler change to apply Using diff with triple dot codegit diff code shows the changes that happened on codeb code since its last divergence from codea code or in other words compare the common ancestor of and with ppre codegit diff HEAD origin feature1 lib message rb show the change in feature1git diff origin feature1 HEAD lib message rb show the change in our branch code pre lili pCheck out the more complicated version of the file This will remove all conflict markers and use the side you choose ppre codegit checkout ours lib message rb if our branch change is more complicatedgit checkout theirs lib message rb if origin feature1 change is more complicated code pre lili pWith the complicated change checked out pull up the diff of the simpler change see step Apply each change from this diff to the conflicting file li ol Step says pull up the diff of the simpler change see step This is referring to the diff output from the diff commands in step In other words look at the diff for the simpler change and apply its changes to the branch with the more complicated change,0,NULL,NULL 57401,207381,201528,Custodian Custodian Popular Question Nice Answer Yearling Caucus Constituent Popular Question Nice Answer Nice Answer Enlightened Yearling Necromancer Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57402,805808,243667,Student Caucus Constituent Notable Question Caucus,NULL,NULL,0,NULL,NULL 57403,81373,678554,Popular Question,NULL,NULL,0,NULL,NULL 57404,199216,711950,Necromancer Yearling Nice Answer Good Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 57405,3596657,389815,Informed Yearling Nice Question Yearling Famous Question Yearling Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57406,88012,1062012,NULL,NULL,NULL,0,NULL,NULL 57407,240890,860630,Nice Answer Enlightened Popular Question Yearling Yearling Announcer Civic Duty Announcer java Yearling Announcer,NULL,NULL,0,NULL,NULL 57408,329434,339724,Notable Question,NULL,NULL,0,NULL,NULL 57409,1516827,1165688,Necromancer,NULL,NULL,0,NULL,NULL 57410,164050,223852,Popular Question Revival Popular Question Good Question Good Answer Popular Question Yearling Popular Question Custodian Notable Question Popular Question Nice Question Yearling Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 57411,52699,636626,Notable Question Necromancer Yearling Popular Question python Custodian Good Answer Necromancer Nice Answer Enlightened Caucus Nice Answer Popular Question Yearling Nice Answer Popular Question Mortarboard Guru Announcer Pundit Nice Answer numpy python Popular Question Guru Nice Answer Enlightened Nice Answer Enlightened Documentation User Revival Nice Answer Enlightened Notable Question Good Answer Nice Question Civic Duty Good Answer Custodian Custodian Yearling Caucus Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Fanatic arrays,NULL,pA simple snippet that implements atomic writing using Python codetempfile code ppre codewith open atomic test txt as write huzza code prepor even reading and writing to and from the same file ppre codewith open test txt as src with open atomic test txt as dst for line in src dst write line code prepusing two simple context managers ppre codeimport osimport tempfile as tmpfrom contextlib import contextmanageref tempfile suffix dir None Context for temporary file Will find free temporary filename upon entering and will try to delete the file on leaving even in case of an exception Parameters suffix string optional file suffix dir string optional directory to save temporary file in tf tmp NamedTemporaryFile delete False suffix suffix dir dir tf file close try yield tf name finally try os remove tf name except OSError as if errno pass else raiseef open atomic filepath args kwargs Open temporary file object that atomically moves to destination upon exiting Allows reading and writing to and from the same filename The file will not be moved to destination in case of an exception Parameters filepath string the file path to be opened fsync bool whether to force write the file to disk args mixed Any valid arguments for code open kwargs mixed Any valid keyword arguments for code open fsync kwargs get fsync False with tempfile dir os path dirname os path abspath filepath as tmppath with open tmppath args kwargs as file try yield file finally if fsync file flush os fsync file fileno os rename tmppath filepath code pre Thanks for the comment ve recently changed this snippet to fall back to shutil move in case of os rename failing This allows it to work across FS boundaries pA simple snippet that implements atomic writing using Python codetempfile code ppre codewith open atomic test txt as write huzza code prepor even reading and writing to and from the same file ppre codewith open test txt as src with open atomic test txt as dst for line in src dst write line code prepusing two simple context managers ppre codeimport osimport tempfile as tmpfrom contextlib import contextmanageref tempfile suffix dir None Context for temporary file Will find free temporary filename upon entering and will try to delete the file on leaving even in case of an exception Parameters suffix string optional file suffix dir string optional directory to save temporary file in tf tmp NamedTemporaryFile delete False suffix suffix dir dir tf file close try yield tf name finally try os remove tf name except OSError as if errno pass else raiseef open atomic filepath args kwargs Open temporary file object that atomically moves to destination upon exiting Allows reading and writing to and from the same filename The file will not be moved to destination in case of an exception Parameters filepath string the file path to be opened fsync bool whether to force write the file to disk args mixed Any valid arguments for code open kwargs mixed Any valid keyword arguments for code open fsync kwargs get fsync False with tempfile dir os path dirname os path abspath filepath as tmppath with open tmppath args kwargs as file try yield file finally if fsync file flush os fsync file fileno os rename tmppath filepath code pre Correct assumed that shutils move was non atomic due to shutils copy2 and shutils remove called in succession The new implementation see edit will now instead create the file in the current directory and also handle exceptions better,0,NULL,NULL 57412,119091,544090,NULL,NULL,NULL,0,NULL,NULL 57413,2127,1371194,NULL,NULL,NULL,0,NULL,NULL 57414,322324,1055449,NULL,NULL,NULL,0,NULL,NULL 57415,204202,180156,Popular Question Yearling Good Answer Proofreader Famous Question Great Answer Caucus Constituent Nice Question Popular Question Custodian Announcer Custodian Caucus Constituent Notable Question Yearling Custodian Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 57416,104838,1228454,Famous Question Good Answer Popular Question Nice Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Notable Question Famous Question Yearling Nice Answer Enlightened Good Question Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Necromancer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Revival Good Answer eclipse Guru Favorite Question Notable Question Popular Question Guru Popular Question Nice Answer Enlightened Deputy Nice Answer Enlightened Good Answer Good Answer Caucus Nice Answer Enlightened Notable Question Guru Nice Question Guru Refiner Good Answer github Census Announcer Good Answer Notable Question Yearling Famous Question Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Notable Question Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened docker Nice Answer Nice Answer Enlightened Favorite Question Popular Question Announcer Nice Answer Enlightened Necromancer Announcer Popular Question Great Answer Good Answer Great Question Guru Nice Answer Enlightened Yearling Guru Guru Notable Question Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Famous Question Revival Necromancer Great Question Good Answer Guru Popular Question Nice Answer macos Great Answer Popular Question Popular Question,NULL,pA simple answer is ppre codeecho lol xargs code prep href http en wikipedia org wiki Xargs Xargs will do the trimming for you It one command program no parameters returns the trimmed string easy as that ppNote this doesn remove the internal spaces so code foo bar code stays the same It does NOT become code foobar code understand the downsides of this but it great for when you know the expected output is going to be just one value from wc use this for removing leading spaces which seem to be included by the macOS version of wc ls wc xargs,0,NULL,NULL 57417,107217,910069,Caucus Nice Answer Enlightened Citizen Patrol Custodian Custodian Documentation User Custodian Commentator,NULL,NULL,0,NULL,NULL 57418,1470306,638248,NULL,NULL,NULL,0,NULL,NULL 57419,674246,1422920,Tumbleweed Editor,NULL,NULL,0,NULL,NULL 57420,694528,273503,Notable Question Critic,NULL,NULL,0,NULL,NULL 57421,2125,1148183,Tumbleweed,NULL,NULL,0,NULL,NULL 57422,560285,639559,Yearling Nice Answer Yearling Good Answer Necromancer Caucus Popular Question Nice Question Yearling Nice Answer Guru Custodian Yearling Citizen Patrol Custodian Popular Question Popular Question Yearling Curious,NULL,NULL,0,NULL,NULL 57423,172289,577552,Yearling,NULL,NULL,0,NULL,NULL 57424,179519,804440,Nice Answer Popular Question Nice Answer Populist Popular Question Yearling Notable Question Informed Popular Question Guru Popular Question Revival Notable Question Popular Question Notable Question Popular Question Inquisitive Popular Question Announcer Revival Popular Question Notable Question Good Question Notable Question Popular Question Necromancer Great Answer Yearling Great Answer Caucus Notable Question Nice Answer Popular Question Popular Question Good Answer Necromancer Necromancer Census Famous Question Nice Answer Nice Question Nice Question Popular Question Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 57425,10172767,900301,Revival Necromancer Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57426,471475,900301,Revival Necromancer Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57427,126662,1087605,Teacher Supporter Necromancer Nice Answer Caucus Yearling Revival Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 57428,620784,1368513,Commentator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57429,1013251,1314891,NULL,NULL,NULL,0,NULL,NULL 57430,469,1320822,Yearling Guru Good Answer Yearling Caucus Guru Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 57431,1515209,689011,NULL,NULL,NULL,0,NULL,NULL 57432,93059,947813,NULL,NULL,NULL,0,NULL,NULL 57433,11331,826373,NULL,NULL,NULL,0,NULL,NULL 57434,35025,879033,Popular Question,NULL,NULL,0,NULL,NULL 57435,305531,23388,Fanatic Nice Answer Enlightened Guru Good Answer Revival Good Answer Necromancer Good Answer Tumbleweed Necromancer Yearling Nice Answer Great Answer Notable Question Nice Answer Revival Yearling Great Answer Pundit Guru Great Answer Nice Answer Good Answer Nice Answer Yearling Populist Nice Answer,NULL,NULL,0,NULL,NULL 57436,2288295,704370,NULL,NULL,NULL,0,NULL,NULL 57437,339191,1062617,Tag Editor Revival Famous Question Organizer Announcer Good Answer python Caucus Yearling Good Question Caucus Necromancer Announcer Yearling Famous Question Necromancer Announcer Good Question Yearling,NULL,NULL,0,NULL,NULL 57438,12637,885602,NULL,NULL,NULL,0,NULL,NULL 57439,380040,884889,NULL,NULL,NULL,0,NULL,NULL 57440,413049,237946,NULL,NULL,NULL,0,NULL,NULL 57441,26475,1060345,NULL,NULL,NULL,0,NULL,NULL 57442,144989,365185,NULL,NULL,NULL,0,NULL,NULL 57443,1789006,928451,Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57444,285349,565658,NULL,NULL,NULL,0,NULL,NULL 57445,64918,419803,Yearling,NULL,NULL,0,NULL,NULL 57446,168757,448524,NULL,NULL,NULL,0,NULL,NULL 57447,233912,904435,Informed,NULL,NULL,0,NULL,NULL 57448,2298438,791196,NULL,NULL,NULL,0,NULL,NULL 57449,232796,1182883,NULL,NULL,NULL,0,NULL,NULL 57450,904467,1120355,Popular Question,NULL,NULL,0,NULL,NULL 57451,266883,810121,NULL,NULL,NULL,0,NULL,NULL 57452,68709,975875,Popular Question Famous Question Popular Question Notable Question Good Question Yearling Popular Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 57453,1064049,784091,NULL,NULL,NULL,0,NULL,NULL 57454,722023,1559471,NULL,NULL,NULL,0,NULL,NULL 57455,178029,661289,NULL,NULL,NULL,0,NULL,NULL 57456,161280,91414,Famous Question Good Question Nice Question Yearling Popular Question Nice Question Notable Question Popular Question Nice Question Famous Question Nice Question Yearling Popular Question Popular Question Nice Answer Popular Question Popular Question Good Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question,NULL,What do you call the operator in Ruby ruby syntax olli pWhat do you call the code gt code operator as in the following ppre code gt do end code pre lili pAren the following snippets equivalent ppre codesucc gt succ lambda code pre li ol maybe things have changed in the past years but googling ruby is how found this post,0,NULL,NULL 57457,198983,519101,NULL,NULL,NULL,0,NULL,NULL 57458,2535012,519101,NULL,NULL,NULL,0,NULL,NULL 57459,477600,910748,NULL,NULL,NULL,0,NULL,NULL 57460,648682,694040,Popular Question,NULL,NULL,0,NULL,NULL 57461,12211,376637,NULL,NULL,NULL,0,NULL,NULL 57462,3906114,756737,NULL,NULL,NULL,0,NULL,NULL 57463,792844,705148,NULL,NULL,NULL,0,NULL,NULL 57464,214817,462076,Popular Question,NULL,NULL,0,NULL,NULL 57465,214138,571807,Notable Question,NULL,NULL,0,NULL,NULL 57466,358676,667210,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57467,302821,713266,NULL,NULL,NULL,0,NULL,NULL 57468,210136,147154,Notable Question,NULL,NULL,0,NULL,NULL 57469,213802,69542,Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 57470,230063,1150075,Yearling Announcer,NULL,NULL,0,NULL,NULL 57471,490313,1165055,Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57472,201389,1165055,Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57473,1508497,1177237,NULL,NULL,NULL,0,NULL,NULL 57474,2055579,1366735,NULL,NULL,NULL,0,NULL,NULL 57475,478380,964869,NULL,NULL,NULL,0,NULL,NULL 57476,104015,657281,NULL,NULL,NULL,0,NULL,NULL 57477,2466727,624574,Yearling,NULL,NULL,0,NULL,NULL 57478,443693,1278288,Yearling Popular Question Yearling Notable Question Self-Learner Popular Question Notable Question Notable Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 57479,192222,1394976,NULL,NULL,NULL,0,NULL,NULL 57480,4730412,1342767,NULL,NULL,NULL,0,NULL,NULL 57481,67862,880703,Notable Question Nice Question Nice Answer Good Answer Famous Question Popular Question Notable Question Popular Question Popular Question Yearling Necromancer Popular Question Revival Notable Question Famous Question Popular Question Popular Question Good Answer Nice Question Nice Question Good Question Yearling Excavator Custodian Necromancer Famous Question Yearling Popular Question Nice Answer Enlightened Famous Question Popular Question,NULL,NULL,0,NULL,NULL 57482,294327,141363,Popular Question Nice Answer Caucus Yearling Documentation User Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57483,216564,1283288,NULL,NULL,NULL,0,NULL,NULL 57484,224257,1046788,NULL,NULL,NULL,0,NULL,NULL 57485,8005090,1046788,NULL,NULL,NULL,0,NULL,NULL 57486,444329,492451,NULL,NULL,NULL,0,NULL,NULL 57487,83772,381074,NULL,NULL,NULL,0,NULL,NULL 57488,558457,328059,Civic Duty Yearling Famous Question Popular Question Popular Question Notable Question Enthusiast Necromancer Popular Question Notable Question Yearling Notable Question Inquisitive Popular Question Famous Question Necromancer Yearling Popular Question Nice Answer Popular Question Notable Question Announcer,NULL,pre code gt gt gt qwertyui gt gt gt chunks chunk size len len gt gt gt chunk size for in range chunks chunk size qw er ty ui code pre What the value of setting chunks It will always be len,0,NULL,NULL 57489,656099,1414008,Yearling Good Answer Notable Question Nice Question Curious Yearling Popular Question Tumbleweed Notable Question Nice Question Guru Popular Question Famous Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 57490,379438,401027,NULL,NULL,NULL,0,NULL,NULL 57491,149109,200457,Notable Question,NULL,NULL,0,NULL,NULL 57492,394053,260740,NULL,NULL,NULL,0,NULL,NULL 57493,392758,201382,Yearling Excavator Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 57494,13209,549026,Critic,NULL,NULL,0,NULL,NULL 57495,181481,506559,Great Answer Yearling Famous Question Good Question Popular Question Nice Question Yearling Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 57496,1025916,767212,Good Answer,NULL,NULL,0,NULL,NULL 57497,282045,1560660,Popular Question Student,NULL,NULL,0,NULL,NULL 57498,255031,720845,Necromancer,NULL,NULL,0,NULL,NULL 57499,638,204501,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57500,703889,1145936,Yearling Famous Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 57501,165289,220903,Nice Answer Popular Question Popular Question Nice Question Popular Question Famous Question Excavator Nice Question Popular Question Popular Question Popular Question Caucus Yearling Popular Question Popular Question Popular Question Good Answer Popular Question Notable Question Popular Question Good Question Favorite Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57502,1030487,955949,NULL,NULL,NULL,0,NULL,NULL 57503,19658,225540,Enthusiast Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57504,1081899,1139528,NULL,NULL,NULL,0,NULL,NULL 57505,12895,1111281,NULL,NULL,NULL,0,NULL,NULL 57506,291198,689682,Commentator Supporter Teacher Custodian Curious Popular Question Self-Learner Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57507,190919,269694,Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 57508,509033,360376,NULL,NULL,NULL,0,NULL,NULL 57509,1353994,1427247,NULL,NULL,NULL,0,NULL,NULL 57510,1562088,1267235,NULL,NULL,NULL,0,NULL,NULL 57511,204545,508193,Teacher,NULL,NULL,0,NULL,NULL 57512,1642677,1073031,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57513,164982,584713,Yearling Notable Question Nice Question Popular Question Nice Answer Enlightened Necromancer Great Answer Popular Question Notable Question Guru Notable Question Popular Question Yearling Nice Answer Great Answer Notable Question Notable Question Nice Question ruby-on-rails Yearling Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 57514,80527,1105370,NULL,NULL,NULL,0,NULL,NULL 57515,329293,816109,Notable Question Electorate Custodian Popular Question Caucus Notable Question Revival Yearling Nice Answer Caucus Necromancer Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57516,617201,725112,NULL,NULL,NULL,0,NULL,NULL 57517,133417,468713,NULL,NULL,NULL,0,NULL,NULL 57518,1224488,1261338,Teacher Notable Question Nice Question,NULL,NULL,0,NULL,NULL 57519,214236,647950,NULL,NULL,NULL,0,NULL,NULL 57520,91245,1368018,Notable Question Informed Tumbleweed,NULL,NULL,0,NULL,NULL 57521,3214,1448325,NULL,NULL,NULL,0,NULL,NULL 57522,938197,890486,Famous Question Yearling Critic Yearling Great Answer,NULL,NULL,0,NULL,NULL 57523,8667,1022392,NULL,NULL,NULL,0,NULL,NULL 57524,178407,540676,NULL,NULL,NULL,0,NULL,NULL 57525,104728,849004,Yearling Good Answer Yearling Announcer Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 57526,15354,1169449,Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 57527,116696,657754,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling php Guru Yearling Disciplined,NULL,NULL,0,NULL,NULL 57528,213158,894682,Nice Answer Yearling Caucus Necromancer Good Question Famous Question Popular Question Popular Question Nice Question Caucus Popular Question Yearling Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 57529,539741,185042,Famous Question,NULL,NULL,0,NULL,NULL 57530,488143,242029,Yearling Citizen Patrol Critic Peer Pressure Yearling Unsung Hero Yearling Caucus Yearling Custodian Informed Announcer Organizer Caucus Yearling Caucus Constituent Custodian,NULL,pThis should do it ppre codefunction absolute base relative var stack base split parts relative split stack pop remove current file name or empty string omit if base is the current folder without trailing slash for var lt parts length if parts continue if parts stack pop else stack push parts return stack join code pre For anyone encountering this later using document location href for base worked for me pBeing strongFAST strong and handling lots of strongLOAD strong are two different things server that really strongFAST strong at serving one request per second might totally croak if you send it 500 requests per second under strongLOAD strong ppYou also have to consider static and cached vs dynamic pages If you re worried about static pages then IIS is probably going to beat node because IIS uses kernel mode caching which means that requests which request static page are not even going to get out of the kernel ppI guessing that you re looking for comparison between ASP NET and node In this battle after everything been compiled interpreted you re probably going to be pretty close in performance Maybe NET little strongFASTER strong or maybe node little strongFASTER strong but it probably close enough that you don care bet on NET but don know for sure ppThe place that node is really compelling is for handling strongLOAD strong This is where the technologies really differ ASP NET dedicates thread for each request from its thread pool and once ASP NET has exhausted all the available threads requests begin to get queued up If you re serving Hello World apps like the example by then this might not matter that much because the threads aren going to be blocked and you re going to be able to handle lot of requests before you run out of threads The problem with the ASP NET model comes when you start making requests that block the thread call to DB make an http request to service read file from disk These blocking requests mean that your valuable thread from the thread pool is doing nothing The more blocking you have the less strongLOAD strong your ASP NET app is going to be able to serve ppTo prevent this blocking you use completion ports which don require holding thread while you wait for response ASP NET supports this but unfortunately many of the common frameworks libraries in NET DON For example ADO NET supports completion ports but Entity Framework doesn use them So you can build an ASP NET app that purely asynchronous and handles lots of load but most people don because it isn as easy as building one that synchronous and you might not be able to use some of your favorite parts of the framework like linq to entities if you do ppThe problem is that ASP NET and the NET Framework were created to be un opinionated about asynchronous NET doesn care if you write synchronous or asynchronous code so it up to the developer to make this decision Part of this is because threading and programming with asynchronous operations was thought to be hard and NET wanted to make everyone happy noobs and experts It got even harder because NET ended up with different patterns for doing async NET is trying to go back and retrofit the NET framework to have an opinionated model around async IO but it may be while until the frameworks you care about actually support it ppThe designers of node on the other hand made an opinionated choice that ALL should be async Because of this decision node designers were also able to make the decision that each instance of node would be single threaded to minimize thread switching and that one thread would just execute code that had been queued That might be new request it might be the callback from DB request it might be the callback from http rest request you made Node tries to maximize CPU efficiency by eliminating thread context switches Because node made this opinionated choice that ALL is asynchronous that also means that all it frameworks add ons support this choice It easier to write apps that are 100 async in node because node forces you to write apps that are async ppAgain don have any hard numbers to prove one way or another but think node would win the LOAD competition for the typical web app highly optimized 100 async NET app might give the equivalent node js app run for it money but if you took an average of all the NET and all the node apps out there on average node probably handles more LOAD ppHope that helps So basically if use async await it going to be faster pBeing strongFAST strong and handling lots of strongLOAD strong are two different things server that really strongFAST strong at serving one request per second might totally croak if you send it 500 requests per second under strongLOAD strong ppYou also have to consider static and cached vs dynamic pages If you re worried about static pages then IIS is probably going to beat node because IIS uses kernel mode caching which means that requests which request static page are not even going to get out of the kernel ppI guessing that you re looking for comparison between ASP NET and node In this battle after everything been compiled interpreted you re probably going to be pretty close in performance Maybe NET little strongFASTER strong or maybe node little strongFASTER strong but it probably close enough that you don care bet on NET but don know for sure ppThe place that node is really compelling is for handling strongLOAD strong This is where the technologies really differ ASP NET dedicates thread for each request from its thread pool and once ASP NET has exhausted all the available threads requests begin to get queued up If you re serving Hello World apps like the example by then this might not matter that much because the threads aren going to be blocked and you re going to be able to handle lot of requests before you run out of threads The problem with the ASP NET model comes when you start making requests that block the thread call to DB make an http request to service read file from disk These blocking requests mean that your valuable thread from the thread pool is doing nothing The more blocking you have the less strongLOAD strong your ASP NET app is going to be able to serve ppTo prevent this blocking you use completion ports which don require holding thread while you wait for response ASP NET supports this but unfortunately many of the common frameworks libraries in NET DON For example ADO NET supports completion ports but Entity Framework doesn use them So you can build an ASP NET app that purely asynchronous and handles lots of load but most people don because it isn as easy as building one that synchronous and you might not be able to use some of your favorite parts of the framework like linq to entities if you do ppThe problem is that ASP NET and the NET Framework were created to be un opinionated about asynchronous NET doesn care if you write synchronous or asynchronous code so it up to the developer to make this decision Part of this is because threading and programming with asynchronous operations was thought to be hard and NET wanted to make everyone happy noobs and experts It got even harder because NET ended up with different patterns for doing async NET is trying to go back and retrofit the NET framework to have an opinionated model around async IO but it may be while until the frameworks you care about actually support it ppThe designers of node on the other hand made an opinionated choice that ALL should be async Because of this decision node designers were also able to make the decision that each instance of node would be single threaded to minimize thread switching and that one thread would just execute code that had been queued That might be new request it might be the callback from DB request it might be the callback from http rest request you made Node tries to maximize CPU efficiency by eliminating thread context switches Because node made this opinionated choice that ALL is asynchronous that also means that all it frameworks add ons support this choice It easier to write apps that are 100 async in node because node forces you to write apps that are async ppAgain don have any hard numbers to prove one way or another but think node would win the LOAD competition for the typical web app highly optimized 100 async NET app might give the equivalent node js app run for it money but if you took an average of all the NET and all the node apps out there on average node probably handles more LOAD ppHope that helps right but think what meant It been while was that async await equalizes the queue response time issue with Node js by not holding the thread so at that point it comes down to which compiled language is faster Assuming compiler optimizations make the code run faster than node js and the queue time is the not factor async await with is faster overall,0,NULL,NULL 57531,17789,1108336,NULL,NULL,NULL,0,NULL,NULL 57532,1176717,443480,Good Answer Nice Answer Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 57533,511006,714153,Scholar,NULL,NULL,0,NULL,NULL 57534,791,137848,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 57535,4875379,990745,Tumbleweed Necromancer Commentator Notable Question,NULL,NULL,0,NULL,NULL 57536,5796582,990745,Tumbleweed Necromancer Commentator Notable Question,NULL,NULL,0,NULL,NULL 57537,501110,990745,Tumbleweed Necromancer Commentator Notable Question,NULL,NULL,0,NULL,NULL 57538,690493,184,Notable Question Famous Question Nice Answer Great Question Popular Question Great Question Guru Notable Question Popular Question Great Question Yearling Famous Question Nice Question Good Question Popular Question Necromancer Great Question Popular Question Notable Question Notable Question Yearling Good Question Notable Question Necromancer Nice Answer Documentation User Nice Answer Famous Question Good Question Popular Question Good Question Great Answer Yearling Nice Question Custodian Custodian Notable Question,NULL,NULL,0,NULL,NULL 57539,112590,84540,Yearling Popular Question Custodian Necromancer Necromancer Notable Question Nice Answer Favorite Question Popular Question Good Answer Taxonomist Yearling Nice Question Great Question Notable Question Nice Answer Notable Question Good Question Famous Question Necromancer Nice Answer Revival Popular Question Nice Answer Necromancer Good Answer Populist Necromancer Nice Answer Yearling Revival Nice Answer Nice Answer Good Answer Nice Question Popular Question,NULL,pTo understand why counting sort is stable you need to understand that counting sort can not only be used for sorting list of integers it can also be used for sorting list of elements whose key is an integer and these elements will be sorted by their keys while having additional information associated with each of them ppA counting sort example that sorts elements with additional information will help you to understand this For instance we want to sort three stocks by their prices ppre code GOOG CSCO MSFT code prepHere stock prices are integer keys and stock names are their associated information ppExpected output for the sorting should be ppre code CSCO MSFT GOOG containing both stock price and its name and the CSCO stock should appear before MSFT so that it is stable sort code prepA counts array will be calculated for sorting this let say stock prices can only be to ppre codecounts array price appear twice and price appear once code prepIf you are just sorting an integer array you can go through the counts array and output twice and once and it is done and the entire counts array will become an all zero array after this ppBut here we want to have stock names in sorting output as well How can we obtain this additional information it seems the counts array already discards this piece of information Well strongthe associated information is stored in the original unsorted array strong In the unsorted array GOOG CSCO MSFT we have both the stock name and its price available If we get to know which position GOOG should be in the final sorted array we can copy this element to the sorted position in the sorted array ppTo obtain the final position for each element in the sorted array unlike sorting an integer array you don use the counts array directly to output the sorted elements Instead counting sort has an additional step which calculates the cumulative sum array from the counts array ppre codecounts array from to counts counts counts code prep strongThis cumulative sum array tells us each value position in the final sorted array currently strong For example codecounts code means currently item with value code1 code should be placed in the code2nd code slot in the sorted array Intuitively because codecounts code is the cumulative sum from left it shows how many smaller items are before the codeith code value which tells you where the position should be for the codeith code value ppIf price stock appears at the first time it should be outputted to the second position of the sorted array and if price stock appears at the first time it should be outputted to the third position of the sorted array If stock appears and its element gets copied to the sorted array we will decreased its count in the counts array ppre codecounts array so that the second appearance of price stock position will be code prepSo we can iterate the unsorted array from backwards this is important to ensure the stableness check its position in the sorted array according to the counts array and copied it to the sorted array ppre codesorted array null null null counts array iterate stocks in unsorted stocks from backwards1 the last stock MSFT sorted array null MSFT null copy to the second position because counts counts array decrease counts by the middle stock CSCO sorted array CSCO MSFT null copy to the first position because counts now counts array decrease counts by the first stock GOOG sorted array CSCO MSFT GOOG copy to the third position because counts counts array decrease counts by code prepAs you can see after the array gets sorted the counts array which is doesn become an all zero array like sorting an array of integers The counts array is not used to tell how many times an integer appears in the unsorted array instead it is used to tell which position the element should be in the final sorted array And since we decrease the count every time we output an element we are essentially making the elements with same key next appearance final position smaller That why we need to iterate the unsorted array from backwards to ensure its stableness pp strongConclusion strong ppSince each element contains not only an integer as key but also some additional information even if their key is the same you could tell each element is different by using the additional information so you will be able to tell if it is stable sorting algorithm yes it is stable sorting algorithm if implemented appropriately pp strongReferences strong ppSome good materials explaining counting sort and its stableness pulli href http www algorithmist com index php Counting sort rel noreferrer http www algorithmist com index php Counting sort this article explains this question pretty well lili href http courses csail mit edu 006 fall11 rec rec07 pdf rel noreferrer http courses csail mit edu 006 fall11 rec rec07 pdf lili href http rosettacode org wiki Sorting algorithms Counting sort rel noreferrer http rosettacode org wiki Sorting algorithms Counting sort list of counting sort implementations in different programming languages If you compare them with the algorithm in wikipedia entry below about counting sort you will find most of which doesn implement the exact counting sort correctly but implement only the integer sorting function and they don have the additional step to calculate the cumulative sum array But you could check out the implementation in Go programming language in this link which does provides two different implementations one is used for sorting integers only and the other can be used for sorting elements containing additional information lili href http en wikipedia org wiki Counting sort rel noreferrer http en wikipedia org wiki Counting sort li ul Yes it is possible For example selection sort can be implemented as stable sort at the same time it requires space https en wikipedia org wiki Selection sort,0,NULL,NULL 57540,917523,1266462,Yearling Yearling Good Answer Guru Yearling Critic,NULL,NULL,0,NULL,NULL 57541,411712,662514,NULL,NULL,NULL,0,NULL,NULL 57542,561467,1538750,NULL,NULL,NULL,0,NULL,NULL 57543,430401,1538750,NULL,NULL,NULL,0,NULL,NULL 57544,345639,313106,Notable Question Yearling Caucus Constituent Famous Question Famous Question Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 57545,416731,963955,Popular Question Yearling,NULL,NULL,0,NULL,NULL 57546,10327,570018,NULL,NULL,NULL,0,NULL,NULL 57547,956964,1386692,NULL,NULL,NULL,0,NULL,NULL 57548,956974,1386692,NULL,NULL,NULL,0,NULL,NULL 57549,317116,1137570,Critic Yearling Notable Question Necromancer Caucus Commentator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57550,2235692,1142683,NULL,NULL,NULL,0,NULL,NULL 57551,1019577,1142683,NULL,NULL,NULL,0,NULL,NULL 57552,198910,701353,NULL,NULL,NULL,0,NULL,NULL 57553,8089261,701353,NULL,NULL,NULL,0,NULL,NULL 57554,311733,190205,Nice Answer Enlightened Notable Question Yearling Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 57555,120644,318921,Notable Question Yearling Talkative Nice Answer Popular Question Nice Question Guru Cleanup osgi-bundle Good Answer Guru Nice Question Caucus Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Question Nice Answer bundle Popular Question Citizen Patrol Nice Answer Enlightened classloader Caucus Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 57556,139286,412582,Investor Altruist Popular Question Informed,NULL,NULL,0,NULL,NULL 57557,34154,511196,NULL,NULL,NULL,0,NULL,NULL 57558,236056,901726,NULL,NULL,NULL,0,NULL,NULL 57559,85055,525653,NULL,NULL,NULL,0,NULL,NULL 57560,4769085,665812,Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 57561,887879,665812,Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 57562,75407,1156096,Popular Question Informed Organizer Commentator Critic Editor Explainer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 57563,446863,1103734,Famous Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Excavator Caucus Favorite Question Documentation User Popular Question Nice Question Famous Question Yearling Popular Question Popular Question Yearling Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Revival Inquisitive,NULL,NULL,1,Why does json Unmarshal need pointer to map if map is reference type json go pI was working with codejson Unmarshal code and came across the following quirk When running the below code get the error codejson Unmarshal non pointer map string string code ppre codefunc main make map string string data foo bar err json Unmarshal byte data if err nil log Fatal err fmt Println code prep href https play golang org IbHCz8i1r1 rel nofollow noreferrer Playground ppLooking at the href https golang org pkg encoding json Unmarshal rel nofollow noreferrer documentation for codejson Unmarshal code there is seemingly no indication that pointer is required The closest can find is the following line pblockquote pUnmarshal parses the JSON encoded data and stores the result in the value pointed to by blockquotepThe lines regarding the protocol Unmarshal follows for maps are similarly unclear as it makes no reference to pointers pblockquote pTo unmarshal JSON object into map Unmarshal first establishes map to use If the map is nil Unmarshal allocates new map Otherwise Unmarshal reuses the existing map keeping existing entries Unmarshal then stores key value pairs from the JSON object into the map The map key type must either be string an integer or implement encoding TextUnmarshaler blockquotepWhy must pass pointer to json Unmarshal especially if maps are already reference types know that if pass map to function and add data to the map the underlying data of the map will be changed see href https play golang org O4th9aUvZT rel nofollow noreferrer the following playground example which means that it shouldn matter if pass pointer to map Can someone clear this up,NULL 57564,1669945,1103734,Famous Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Excavator Caucus Favorite Question Documentation User Popular Question Nice Question Famous Question Yearling Popular Question Popular Question Yearling Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Revival Inquisitive,NULL,NULL,1,Why does json Unmarshal need pointer to map if map is reference type json go pI was working with codejson Unmarshal code and came across the following quirk When running the below code get the error codejson Unmarshal non pointer map string string code ppre codefunc main make map string string data foo bar err json Unmarshal byte data if err nil log Fatal err fmt Println code prep href https play golang org IbHCz8i1r1 rel nofollow noreferrer Playground ppLooking at the href https golang org pkg encoding json Unmarshal rel nofollow noreferrer documentation for codejson Unmarshal code there is seemingly no indication that pointer is required The closest can find is the following line pblockquote pUnmarshal parses the JSON encoded data and stores the result in the value pointed to by blockquotepThe lines regarding the protocol Unmarshal follows for maps are similarly unclear as it makes no reference to pointers pblockquote pTo unmarshal JSON object into map Unmarshal first establishes map to use If the map is nil Unmarshal allocates new map Otherwise Unmarshal reuses the existing map keeping existing entries Unmarshal then stores key value pairs from the JSON object into the map The map key type must either be string an integer or implement encoding TextUnmarshaler blockquotepWhy must pass pointer to json Unmarshal especially if maps are already reference types know that if pass map to function and add data to the map the underlying data of the map will be changed see href https play golang org O4th9aUvZT rel nofollow noreferrer the following playground example which means that it shouldn matter if pass pointer to map Can someone clear this up,NULL 57565,73739,1193577,Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 57566,352907,1496789,NULL,NULL,NULL,0,NULL,NULL 57567,2734527,1496789,NULL,NULL,NULL,0,NULL,NULL 57568,132530,1313075,NULL,NULL,NULL,0,NULL,NULL 57569,66958,1545656,NULL,NULL,NULL,0,NULL,NULL 57570,579900,483482,Nice Answer Yearling Nice Answer Curious Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 57571,52901,171828,Yearling Notable Question,NULL,NULL,0,NULL,NULL 57572,903178,1398368,NULL,NULL,NULL,0,NULL,NULL 57573,886749,1302965,Famous Question,NULL,NULL,0,NULL,NULL 57574,3775933,1054066,NULL,NULL,NULL,0,NULL,NULL 57575,1090955,1054066,NULL,NULL,NULL,0,NULL,NULL 57576,2852888,784940,NULL,NULL,NULL,0,NULL,NULL 57577,197535,746899,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57578,1722234,1546326,Popular Question,NULL,NULL,0,NULL,NULL 57579,110604,1068713,NULL,NULL,NULL,0,NULL,NULL 57580,553664,547321,NULL,NULL,NULL,0,NULL,NULL 57581,264675,519746,NULL,NULL,NULL,0,NULL,NULL 57582,1349703,112684,NULL,NULL,NULL,0,NULL,NULL 57583,132362,273207,Notable Question,NULL,NULL,0,NULL,NULL 57584,106502,96873,Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57585,2744929,1067435,Yearling Self-Learner Custodian Necromancer Popular Question Nice Question Custodian Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57586,564259,47207,Taxonomist Notable Question Notable Question Notable Question Good Answer Nice Question Famous Question Popular Question Nice Question Yearling Notable Question Famous Question Notable Question Yearling Popular Question Custodian Custodian Caucus Good Question Good Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 57587,584738,44869,Caucus Constituent,NULL,NULL,0,NULL,NULL 57588,117930,20045,Yearling Yearling Great Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 57589,496238,1064853,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 57590,122193,717260,NULL,NULL,NULL,0,NULL,NULL 57591,209560,634825,NULL,NULL,NULL,0,NULL,NULL 57592,87362,963444,NULL,NULL,NULL,0,NULL,NULL 57593,37562,91962,Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 57594,30777,92287,Self-Learner Yearling Popular Question Popular Question Notable Question Popular Question Yearling Nice Answer Popular Question Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 57595,650262,702134,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57596,15836,1282,Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 57597,20809,455032,Peer Pressure Caucus Popular Question Caucus Autobiographer,NULL,NULL,0,NULL,NULL 57598,307730,754859,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57599,152755,64804,NULL,NULL,NULL,0,NULL,NULL 57600,892458,1101376,NULL,NULL,NULL,0,NULL,NULL 57601,216263,559607,Autobiographer,NULL,NULL,0,NULL,NULL 57602,122466,1165631,NULL,NULL,NULL,0,NULL,NULL 57603,126441,1437382,NULL,NULL,NULL,0,NULL,NULL 57604,407590,703244,Yearling Nice Answer Good Question Necromancer Yearling Nice Answer Popular Question Good Answer Populist Caucus Yearling Good Answer Promoter,NULL,NULL,0,NULL,NULL 57605,141140,1049173,NULL,NULL,NULL,0,NULL,NULL 57606,851305,1133695,NULL,NULL,NULL,0,NULL,NULL 57607,257096,472594,Popular Question,NULL,NULL,0,NULL,NULL 57608,452480,122598,NULL,NULL,NULL,0,NULL,NULL 57609,101634,914613,NULL,NULL,NULL,0,NULL,NULL 57610,68465,161787,NULL,NULL,NULL,0,NULL,NULL 57611,60289,445091,NULL,NULL,NULL,0,NULL,NULL 57612,200029,579119,NULL,NULL,NULL,0,NULL,NULL 57613,1770104,908727,NULL,NULL,NULL,0,NULL,NULL 57614,215665,1207786,NULL,NULL,NULL,0,NULL,NULL 57615,822643,904065,NULL,NULL,NULL,0,NULL,NULL 57616,856081,781669,Excavator Good Question Notable Question Enlightened Famous Question Yearling Good Answer Notable Question Famous Question Yearling Guru Notable Question Yearling Nice Question Nice Answer Great Answer Nice Question,NULL,NULL,0,NULL,NULL 57617,99139,881608,NULL,NULL,NULL,0,NULL,NULL 57618,572035,203699,NULL,NULL,NULL,0,NULL,NULL 57619,55481,1346682,Announcer Announcer Booster,NULL,NULL,0,NULL,NULL 57620,1699997,805440,Supporter Popular Question Commentator,NULL,NULL,0,NULL,NULL 57621,195913,1376010,NULL,NULL,NULL,0,NULL,NULL 57622,581136,1113345,Necromancer Commentator Notable Question Revival Nice Answer Nice Answer Notable Question Yearling Revival Nice Question Yearling,NULL,NULL,0,NULL,NULL 57623,1095049,462560,NULL,NULL,NULL,0,NULL,NULL 57624,137946,156940,Nice Question Yearling Self-Learner Curious Yearling Documentation User Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 57625,891352,247075,Yearling Popular Question Good Question Good Answer Yearling Scholar,NULL,NULL,0,NULL,NULL 57626,768766,835995,Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 57627,668366,1502738,Popular Question Yearling Notable Question Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 57628,1884975,244732,NULL,NULL,NULL,0,NULL,NULL 57629,288857,1518422,Popular Question,NULL,NULL,0,NULL,NULL 57630,1060190,933416,Necromancer Revival Necromancer Guru Yearling Caucus Nice Answer .net Nice Answer Announcer Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 57631,6987245,103160,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57632,98703,103160,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57633,285498,1447835,NULL,NULL,NULL,0,NULL,NULL 57634,5067,105854,NULL,NULL,NULL,0,NULL,NULL 57635,1836885,1160296,Notable Question Popular Question Yearling Custodian Census Famous Question,NULL,NULL,0,NULL,NULL 57636,194553,796590,NULL,NULL,NULL,0,NULL,NULL 57637,18781,24652,NULL,NULL,NULL,0,NULL,NULL 57638,2015628,870364,Student Critic,NULL,NULL,0,NULL,NULL 57639,142801,870364,Student Critic,NULL,NULL,0,NULL,NULL 57640,16543,320161,Nice Question Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57641,1166593,900229,Scholar,NULL,NULL,0,NULL,NULL 57642,237940,847133,NULL,NULL,NULL,0,NULL,NULL 57643,53653,103009,NULL,NULL,NULL,0,NULL,NULL 57644,326019,525201,Good Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 57645,1350059,1025725,Popular Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 57646,187509,884479,NULL,NULL,NULL,0,NULL,NULL 57647,3119845,928168,NULL,NULL,NULL,0,NULL,NULL 57648,95890,1288961,Teacher,NULL,NULL,0,NULL,NULL 57649,61324,230309,Famous Question,NULL,NULL,0,NULL,NULL 57650,91792,851204,NULL,NULL,NULL,0,NULL,NULL 57651,523349,217286,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57652,1393035,692789,NULL,NULL,NULL,0,NULL,NULL 57653,222813,440788,Self-Learner Notable Question Revival Critic Nice Answer,NULL,NULL,0,NULL,NULL 57654,887858,488296,NULL,NULL,NULL,0,NULL,NULL 57655,2854632,488296,NULL,NULL,NULL,0,NULL,NULL 57656,7667,190975,Yearling Notable Question,NULL,NULL,0,NULL,NULL 57657,66913,1146376,Nice Answer Yearling Necromancer Nice Answer Necromancer Necromancer Good Answer Great Answer Nice Answer Enlightened Notable Question Nice Answer Populist Critic Nice Answer Nice Answer Yearling Favorite Question Good Answer Popular Question Necromancer Yearling Great Question Good Answer Nice Answer Guru Guru,NULL,NULL,0,NULL,NULL 57658,199206,1146376,Nice Answer Yearling Necromancer Nice Answer Necromancer Necromancer Good Answer Great Answer Nice Answer Enlightened Notable Question Nice Answer Populist Critic Nice Answer Nice Answer Yearling Favorite Question Good Answer Popular Question Necromancer Yearling Great Question Good Answer Nice Answer Guru Guru,NULL,NULL,0,NULL,NULL 57659,759289,1147754,NULL,NULL,NULL,0,NULL,NULL 57660,100948,253127,Popular Question Necromancer Notable Question Caucus Announcer Yearling Popular Question Nice Answer Nice Question Revival Revival Caucus Popular Question Famous Question Yearling Notable Question Necromancer,NULL,pIt in the standard library and that the most straight forward way can see to implement such function So yes just loop through the string and convert each character to lowercase ppSomething trivial like this ppre codefor int str str tolower str code prepor if you prefer one liners then you can use this one by Sebastian ppre codefor tolower code pre the one liner results in error lvalue required as increment operand,0,NULL,NULL 57661,244343,763762,Yearling Yearling Great Question Yearling Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 57662,20860,945932,NULL,NULL,NULL,0,NULL,NULL 57663,813046,754373,Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 57664,385289,444162,NULL,NULL,NULL,0,NULL,NULL 57665,138001,1247781,Famous Question string Yearling Nice Answer Nice Answer Nice Question Nice Question Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Answer Popular Question Yearling Nice Answer Popular Question Famous Question Nice Answer Announcer Notable Question Yearling Good Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 57666,1180316,636900,Good Question Yearling Famous Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57667,36549,1153187,Popular Question Informed,NULL,NULL,0,NULL,NULL 57668,155582,1319434,Yearling Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Caucus Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57669,1869680,1444679,NULL,NULL,NULL,0,NULL,NULL 57670,132262,284648,Popular Question Yearling Self-Learner Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Popular Question Good Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57671,914276,993100,Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 57672,406273,63437,Tumbleweed Custodian Yearling Yearling Curious,NULL,NULL,0,NULL,NULL 57673,390958,996566,NULL,NULL,NULL,0,NULL,NULL 57674,33935,622257,NULL,NULL,NULL,0,NULL,NULL 57675,869080,906440,Enthusiast Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57676,334895,995291,NULL,NULL,NULL,0,NULL,NULL 57677,1419686,74388,NULL,NULL,NULL,0,NULL,NULL 57678,469778,414028,NULL,NULL,NULL,0,NULL,NULL 57679,629721,166939,Yearling Great Question,NULL,NULL,0,NULL,NULL 57680,5360136,166939,Yearling Great Question,NULL,NULL,0,NULL,NULL 57681,247707,224105,Popular Question,NULL,NULL,0,NULL,NULL 57682,1907997,224105,Popular Question,NULL,NULL,0,NULL,NULL 57683,585131,193961,Popular Question,NULL,NULL,0,NULL,NULL 57684,11087821,13209,Great Answer Yearling Good Question Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 57685,2458118,13209,Great Answer Yearling Good Question Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 57686,489173,673720,NULL,NULL,NULL,0,NULL,NULL 57687,315095,959045,Great Answer Nice Answer Informed Yearling Good Answer Popular Question Yearling Necromancer Nice Answer Enlightened Pundit Yearling Custodian,NULL,NULL,0,NULL,NULL 57688,1649,1007862,Supporter,NULL,NULL,0,NULL,NULL 57689,416305,9859,Notable Question Nice Answer Good Answer Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Nice Question Nice Answer Enlightened Famous Question Great Answer Nice Answer Famous Question Nice Answer Notable Question Notable Question Nice Question Notable Question Famous Question Nice Question Good Answer Popular Question Yearling Nice Answer Enlightened Guru Nice Question Nice Answer Good Question Popular Question Great Answer Famous Question Famous Question Popular Question Notable Question Socratic Disciplined Famous Question Good Answer Notable Question Popular Question Good Answer Notable Question Famous Question Nice Answer Nice Answer Enlightened Great Question Notable Question Popular Question Guru Popular Question Great Question Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened haskell functional-programming Documentation User Popular Question Notable Question Notable Question Great Question Announcer Popular Question Great Question Popular Question Famous Question Popular Question Nice Answer Good Question Notable Question Announcer Nice Answer Notable Question Favorite Question Popular Question Popular Question Announcer Good Question Great Answer Popular Question Great Answer Nice Question Yearling Nice Answer Favorite Question Notable Question Notable Question Revival Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57690,21885,394314,NULL,NULL,NULL,0,NULL,NULL 57691,239167,1067587,Notable Question Notable Question Teacher Critic Popular Question Yearling Revival Autobiographer Necromancer Yearling,NULL,NULL,0,NULL,NULL 57692,88301,47496,Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Great Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 57693,887582,871353,NULL,NULL,NULL,0,NULL,NULL 57694,8910,78722,chef Yearling Nice Answer chef-recipe Documentation Pioneer Tag Editor Nice Answer Enlightened cookbook Caucus Strunk & White Nice Question Nice Answer Nice Answer Enlightened chef Yearling Promoter knife Civic Duty Caucus chef-solo Custodian Tumbleweed Excavator Documentation User Announcer Nice Answer Caucus Yearling Constituent Good Answer test-kitchen ruby,NULL,NULL,0,NULL,NULL 57695,110390,463399,Nice Question,NULL,NULL,0,NULL,NULL 57696,280827,1095114,Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Yearling Guru Good Answer Nice Answer Yearling Good Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 57697,965048,1095114,Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Yearling Guru Good Answer Nice Answer Yearling Good Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 57698,164184,417449,Notable Question Notable Question Popular Question Announcer Popular Question Notable Question Notable Question Nice Question Popular Question Yearling Famous Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Nice Question Popular Question Caucus Notable Question Constituent Nice Question Notable Question Notable Question Popular Question Nice Question Good Question Nice Answer Famous Question Custodian Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Nice Question Notable Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 57699,920326,432308,NULL,NULL,NULL,0,NULL,NULL 57700,1266159,128945,Necromancer Yearling Nice Answer Good Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57701,6131,55478,Yearling Yearling Guru Yearling,NULL,Ruby File open gives No such file or directory text txt Errno ENOENT error ruby pI installed Ruby on my Win machine Created simple codeanalyzer rb code file It has this one line ppre codeFile open text txt each line puts line code prepWhen run the code it gives me this error ppre codeanalyzer rb in initialize No such file or directory text txt Errno ENOENT from analyzer rb in open from analyzer rb in lt main gt Exit code code prepI don get it There is codetext txt code file in the same directory as the codeanalyzer rb code file also tried feeding the absolute path of the file codeC Ruby192 text txt code but no dice What am missing For those of us who blindly googled this based on an error from script it can mean that the file you are looking for does not exist If your code didn check for file existence that may be your whole problem,0,NULL,NULL 57702,2308499,244780,Yearling Popular Question Famous Question Popular Question Good Question Notable Question Guru Good Question Famous Question Excavator Nice Question Necromancer Good Question Notable Question Yearling Notable Question Nice Answer Notable Question Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57703,177276,244780,Yearling Popular Question Famous Question Popular Question Good Question Notable Question Guru Good Question Famous Question Excavator Nice Question Necromancer Good Question Notable Question Yearling Notable Question Nice Answer Notable Question Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57704,721479,1040099,NULL,NULL,NULL,0,NULL,NULL 57705,269049,610331,NULL,NULL,NULL,0,NULL,NULL 57706,444705,1394642,NULL,NULL,NULL,0,NULL,NULL 57707,203517,97805,Yearling Notable Question,NULL,NULL,0,NULL,NULL 57708,55875,264922,NULL,NULL,NULL,0,NULL,NULL 57709,25238,436396,NULL,NULL,NULL,0,NULL,NULL 57710,42699,1234664,NULL,NULL,NULL,0,NULL,NULL 57711,82842,409056,NULL,NULL,NULL,0,NULL,NULL 57712,347623,1146759,NULL,NULL,NULL,0,NULL,NULL 57713,314821,144213,Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Inquisitive Popular Question Yearling Popular Question Popular Question Favorite Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 57714,68231,382899,Populist Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57715,1522165,682838,NULL,NULL,NULL,0,NULL,NULL 57716,120244,198825,Yearling Nice Answer Nice Answer Enlightened Announcer Curious Excavator Custodian Custodian Civic Duty Informed Proofreader Promoter Benefactor Custodian Revival Explainer Reviewer Custodian Strunk & White Suffrage Yearling Nice Answer Popular Question Good Answer Announcer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 57717,1081021,532624,NULL,NULL,NULL,0,NULL,NULL 57718,1197594,646951,NULL,NULL,NULL,0,NULL,NULL 57719,1413784,1427110,NULL,NULL,NULL,0,NULL,NULL 57720,34452,297679,Necromancer Nice Answer Revival Yearling Necromancer Self-Learner Necromancer Nice Answer Necromancer Good Answer Yearling Notable Question Necromancer Custodian Stellar Question Yearling Nice Answer Revival Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57721,6169478,252864,Tumbleweed Popular Question Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 57722,6820262,252864,Tumbleweed Popular Question Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 57723,1082522,371352,NULL,NULL,NULL,0,NULL,NULL 57724,309948,71484,NULL,NULL,NULL,0,NULL,NULL 57725,1321610,71484,NULL,NULL,NULL,0,NULL,NULL 57726,456387,1042683,NULL,NULL,NULL,0,NULL,NULL 57727,70666,162459,NULL,NULL,NULL,0,NULL,NULL 57728,168068,812445,NULL,NULL,NULL,0,NULL,NULL 57729,48493,1175275,NULL,NULL,NULL,0,NULL,NULL 57730,2268782,280837,NULL,NULL,NULL,0,NULL,NULL 57731,477432,908471,Nice Answer,NULL,NULL,0,NULL,NULL 57732,960877,654489,NULL,NULL,NULL,0,NULL,NULL 57733,889228,798414,Notable Question Caucus Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 57734,1038227,797720,Yearling Scholar Peer Pressure Revival Yearling,NULL,NULL,0,NULL,NULL 57735,203244,1190965,Yearling Excavator Announcer Nice Question Nice Question Good Question Yearling Nice Question Nice Answer Nice Answer Famous Question Popular Question Inquisitive Good Answer Popular Question Yearling Custodian Popular Question Citizen Patrol Popular Question Popular Question Popular Question,NULL,pIt pretty simple really ppre codea start end items start through end 1a start items start through the rest of the arraya end items from the beginning through end 1a copy of the whole array code prepThere is also the codestep code value which can be used with any of the above ppre codea start end step start through not past end by step code prepThe key point to remember is that the code end code value represents the first value that is emnot em in the selected slice So the difference beween codeend code and codestart code is the number of elements selected if codestep code is the default ppThe other feature is that codestart code or codeend code may be emnegative em number which means it counts from the end of the array instead of the beginning So ppre codea last item in the arraya last two items in the arraya everything except the last two items code prepSimilarly codestep code may be negative number ppre codea all items in the array reverseda the first two items reverseda the last two items reverseda everything except the last two items reversed code prepPython is kind to the programmer if there are fewer items than you ask for For example if you ask for codea code and codea code only contains one element you get an empty list instead of an error Sometimes you would prefer the error so you have to be aware that this may happen abc is True whereas is False Linux Python,0,NULL,NULL 57736,1283109,461475,Supporter Teacher Informed Editor Caucus Critic,NULL,NULL,0,NULL,NULL 57737,1528097,887927,NULL,NULL,NULL,0,NULL,NULL 57738,2941786,887927,NULL,NULL,NULL,0,NULL,NULL 57739,1623902,1099992,Student,NULL,NULL,0,NULL,NULL 57740,1080385,1099992,Student,NULL,NULL,0,NULL,NULL 57741,16500,297110,Caucus,NULL,NULL,0,NULL,NULL 57742,315540,175126,Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 57743,481615,246213,NULL,NULL,NULL,0,NULL,NULL 57744,487195,559820,Editor Supporter Informed Teacher,NULL,NULL,0,NULL,NULL 57745,724158,1237907,Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 57746,6294812,1237907,Autobiographer Enthusiast,NULL,NULL,0,NULL,NULL 57747,161934,469644,Notable Question,NULL,NULL,0,NULL,NULL 57748,165053,280969,NULL,NULL,NULL,0,NULL,NULL 57749,46147,2637,Nice Question Popular Question Popular Question Notable Question Nice Question Famous Question Famous Question Custodian Notable Question Notable Question Yearling Notable Question Necromancer Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 57750,247676,368755,NULL,NULL,NULL,0,NULL,NULL 57751,2032784,374494,NULL,NULL,NULL,0,NULL,NULL 57752,139772,491097,NULL,NULL,NULL,0,NULL,NULL 57753,361796,552082,NULL,NULL,NULL,0,NULL,NULL 57754,38089,488443,Famous Question Yearling Caucus Constituent Caucus Constituent Documentation User Yearling Good Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 57755,194305,39061,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 57756,149481,908279,NULL,NULL,NULL,0,NULL,NULL 57757,594091,353163,Yearling Popular Question Peer Pressure Informed Civic Duty Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 57758,718379,1499064,Popular Question Nice Answer Popular Question Necromancer Famous Question Yearling Good Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57759,2220711,311687,Notable Question,NULL,NULL,0,NULL,NULL 57760,100907,50969,Yearling Good Question Nice Question Yearling Famous Question Yearling Necromancer Nice Question,NULL,NULL,0,NULL,NULL 57761,297804,778594,NULL,NULL,NULL,0,NULL,NULL 57762,63969,524237,NULL,NULL,NULL,0,NULL,NULL 57763,359293,20605,Notable Question Famous Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 57764,190406,737956,Yearling Popular Question Nice Answer Notable Question Necromancer,NULL,pThe answer is considerably less complicated Just add tell the JSON interpeter it string encoded float64 with code string code note that only changed the codePrice code definition ppre codepackage mainimport encoding json fmt type Product struct Name string Price float64 json string func main name Galaxy Nexus price 3460 00 var pro Product err json Unmarshal byte amp pro if err nil fmt Printf pro else fmt Println err fmt Printf pro code pre That really awesome Except it doesn work on slices Does anyone know way how to do this for int Simply adding the string flag produces cannot unmarshal string into go value of int http play golang org aFWSH4lUxv,0,NULL,NULL 57765,57019,545442,Good Answer Yearling Popular Question Nice Question Populist Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57766,379792,618825,Nice Question Good Answer Yearling Excavator Notable Question plot Famous Question Nice Answer Popular Question Notable Question Nice Question Popular Question Guru Yearling Nice Answer Notable Question Notable Question Good Answer Popular Question Popular Question Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57767,71191,604480,Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 57768,210518,1376895,NULL,NULL,NULL,0,NULL,NULL 57769,952120,880239,Census Informed Revival,NULL,NULL,0,NULL,NULL 57770,461330,1420580,NULL,NULL,NULL,0,NULL,NULL 57771,2226059,931280,Scholar Quorum Citizen Patrol Teacher Announcer Supporter Necromancer,NULL,NULL,0,NULL,NULL 57772,43709,1183883,NULL,NULL,NULL,0,NULL,NULL 57773,30956,1063051,Supporter Autobiographer Editor Excavator Announcer Yearling Commentator Citizen Patrol,NULL,NULL,0,NULL,NULL 57774,478318,277144,Scholar Popular Question Teacher Nice Question Revival Yearling Popular Question Famous Question Notable Question Notable Question Nice Question Popular Question Yearling Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 57775,13868,712515,NULL,NULL,NULL,0,NULL,NULL 57776,100707,141615,Notable Question Self-Learner Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57777,76589,10877,NULL,NULL,NULL,0,NULL,NULL 57778,97155,857383,Yearling Famous Question Yearling Informed Commentator Citizen Patrol Custodian Custodian Yearling Custodian Yearling Suffrage Vox Populi Tenacious Yearling Yearling Revival Civic Duty Unsung Hero Enthusiast Good Question Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 57779,64034,747775,Commentator Popular Question,NULL,NULL,0,NULL,NULL 57780,3158201,1237609,Necromancer Necromancer Yearling Necromancer Yearling Nice Answer Necromancer Commentator Yearling,NULL,pUnder Python you can do this nicely ppre code gt gt gt head tail 13 21 34 55 gt gt gt head1 gt gt gt tail 13 21 34 55 code prepA new feature in is to use the code code operator in unpacking to mean any extra values It is described in href http www python org dev peps pep 3132 rel noreferrer PEP 3132 Extended Iterable Unpacking This also has the advantage of working on any iterable not just sequences ppIt also emreally em readable ppAs described in the PEP if you want to do the equivalent under without potentially making temporary list you have to do this ppre codeit iter iterable head it next tail list it code prepNaturally if you are working on list the easiest way without the syntax is ppre codehead tail seq seq code pre elegant solution lovely Python,0,NULL,NULL 57781,48006,119810,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 57782,1526,1248228,Nice Answer,NULL,NULL,0,NULL,NULL 57783,1147041,1514778,NULL,NULL,NULL,0,NULL,NULL 57784,3398285,274413,Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 57785,76361,274413,Famous Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 57786,2674357,1143933,Tumbleweed Student,NULL,NULL,0,NULL,NULL 57787,122356,73706,Yearling Nice Question Nice Answer Good Answer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 57788,566582,515392,Yearling Nice Answer Nice Answer Enlightened Caucus Yearling Caucus Constituent Census Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 57789,339235,749081,NULL,NULL,NULL,0,NULL,NULL 57790,236027,1444730,NULL,NULL,NULL,0,NULL,NULL 57791,764309,237538,NULL,NULL,NULL,0,NULL,NULL 57792,52700,833946,NULL,NULL,NULL,0,NULL,NULL 57793,8487,212912,Nice Answer Caucus Yearling Populist Notable Question Notable Question Popular Question Famous Question Good Question Yearling Great Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 57794,351987,106250,NULL,NULL,NULL,0,NULL,NULL 57795,441035,384935,NULL,NULL,NULL,0,NULL,NULL 57796,2067983,384935,NULL,NULL,NULL,0,NULL,NULL 57797,586803,344085,NULL,NULL,NULL,0,NULL,NULL 57798,7653594,344085,NULL,NULL,NULL,0,NULL,NULL 57799,3176914,344085,NULL,NULL,NULL,0,NULL,NULL 57800,140384,784782,NULL,NULL,NULL,0,NULL,NULL 57801,6644148,22912,NULL,NULL,NULL,0,NULL,NULL 57802,738445,22912,NULL,NULL,NULL,0,NULL,NULL 57803,769990,22912,NULL,NULL,NULL,0,NULL,NULL 57804,1035272,22912,NULL,NULL,NULL,0,NULL,NULL 57805,6207814,254450,NULL,NULL,NULL,0,NULL,NULL 57806,2397054,254450,NULL,NULL,NULL,0,NULL,NULL 57807,1179364,254450,NULL,NULL,NULL,0,NULL,NULL 57808,538264,254450,NULL,NULL,NULL,0,NULL,NULL 57809,945048,231378,NULL,NULL,NULL,0,NULL,NULL 57810,314709,174320,Notable Question Good Question Notable Question Populist Yearling Good Answer Popular Question Nice Answer Enlightened Nice Question Stellar Question Popular Question Notable Question Nice Question Popular Question Yearling Popular Question Custodian Census Excavator Custodian Nice Question Nice Question Explainer Yearling Popular Question,NULL,NULL,0,NULL,NULL 57811,100628,1417620,Custodian,NULL,NULL,0,NULL,NULL 57812,164367,28720,Yearling Self-Learner Caucus,NULL,NULL,0,NULL,NULL 57813,4504779,281258,Yearling Notable Question Nice Answer Good Answer Popular Question Nice Question Yearling Popular Question Announcer Yearling Famous Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 57814,924844,281258,Yearling Notable Question Nice Answer Good Answer Popular Question Nice Question Yearling Popular Question Announcer Yearling Famous Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 57815,22660,1142401,NULL,NULL,NULL,0,NULL,NULL 57816,893074,1388945,NULL,NULL,NULL,0,NULL,NULL 57817,154096,1388945,NULL,NULL,NULL,0,NULL,NULL 57818,217944,1388945,NULL,NULL,NULL,0,NULL,NULL 57819,88345,83935,NULL,NULL,NULL,0,NULL,NULL 57820,75035,1091578,Popular Question Informed,NULL,NULL,0,NULL,NULL 57821,136908,195385,NULL,NULL,NULL,0,NULL,NULL 57822,203266,692355,Commentator,NULL,NULL,0,NULL,NULL 57823,6910306,116343,NULL,NULL,NULL,0,NULL,NULL 57824,518593,116343,NULL,NULL,NULL,0,NULL,NULL 57825,580660,425739,Caucus Informed Critic Autobiographer,NULL,NULL,0,NULL,NULL 57826,169130,188062,NULL,NULL,NULL,0,NULL,NULL 57827,172340,635162,Civic Duty Notable Question Popular Question Good Question Yearling Famous Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Famous Question Notable Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Answer Famous Question Notable Question Notable Question Popular Question Nice Question Notable Question Good Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Famous Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 57828,1182626,1061340,Critic Caucus Nice Question Announcer Caucus Constituent Famous Question Yearling Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 57829,36965,564256,Nice Question Notable Question Famous Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 57830,213964,94451,Popular Question Yearling Great Answer Famous Question Popular Question Census Yearling Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 57831,308171,870191,NULL,NULL,NULL,0,NULL,NULL 57832,652176,645874,NULL,NULL,NULL,0,NULL,NULL 57833,437750,1416075,NULL,NULL,NULL,0,NULL,NULL 57834,7565723,906121,Supporter,NULL,NULL,0,NULL,NULL 57835,422860,906121,Supporter,NULL,NULL,0,NULL,NULL 57836,350246,440306,NULL,NULL,NULL,0,NULL,NULL 57837,97928,946649,Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 57838,676770,457385,NULL,NULL,NULL,0,NULL,NULL 57839,560505,890662,Popular Question,NULL,NULL,0,NULL,NULL 57840,193990,449225,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 57841,22223,1288494,NULL,NULL,NULL,0,NULL,NULL 57842,5053,520751,Supporter,NULL,NULL,0,NULL,NULL 57843,402902,1543510,NULL,NULL,NULL,0,NULL,NULL 57844,1627190,1159485,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 57845,384089,415935,Necromancer Famous Question Custodian,NULL,NULL,0,NULL,NULL 57846,120713,191767,NULL,NULL,NULL,0,NULL,NULL 57847,458994,845620,NULL,NULL,NULL,0,NULL,NULL 57848,460232,1502314,Nice Answer,NULL,NULL,0,NULL,NULL 57849,62409,844912,Excavator,NULL,NULL,0,NULL,NULL 57850,21077,1037799,NULL,NULL,NULL,0,NULL,NULL 57851,1429854,245672,Yearling Student,NULL,NULL,0,NULL,NULL 57852,29740,477340,Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Caucus Notable Question Notable Question Popular Question Famous Question Popular Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57853,6616,195360,Yearling,NULL,NULL,0,NULL,NULL 57854,28096,102799,NULL,NULL,NULL,0,NULL,NULL 57855,815927,605728,NULL,NULL,NULL,0,NULL,NULL 57856,8477245,680786,Announcer Notable Question Nice Question Yearling Necromancer Popular Question Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Guru Great Answer Yearling Nice Answer Popular Question,NULL,pAlthough Dennis and gengkev solutions of using Blob FileReader work wouldn suggest taking that approach It is an async approach to simple problem and it is much slower than direct solution ve made post in html5rocks with simpler and much faster solution href http updates html5rocks com 2012 06 How to convert ArrayBuffer to and from String http updates html5rocks com 2012 06 How to convert ArrayBuffer to and from String ppAnd the solution is ppre codefunction ab2str buf return String fromCharCode apply null new Uint16Array buf function str2ab str var buf new ArrayBuffer str length bytes for each char var bufView new Uint16Array buf for var strLen str length lt strLen bufView str charCodeAt return buf code prehrp strongEDIT strong ppThe href http updates html5rocks com 2014 08 Easier ArrayBuffer String conversion with the Encoding API Encoding API helps solving the string conversion problem Check out the response from href http www html5rocks com profiles jeffposnick Jeff Posnik on Html5Rocks com to the above original article ppExcerpt pblockquote emThe Encoding API makes it simple to translate between raw bytes and native JavaScript strings regardless of which of the many standard encodings you need to work with em blockquotepre code lt pre id results gt lt pre gt lt script gt if TextDecoder in window The local files to be fetched mapped to the encoding that they re using var filesToEncoding utf8 bin utf utf16le bin utf 16le macintosh bin macintosh Object keys filesToEncoding forEach function file fetchAndDecode file filesToEncoding file else document querySelector results textContent Your browser does not support the Encoding API Use XHR to fetch file and interpret its contents as being encoded with encoding function fetchAndDecode file encoding var xhr new XMLHttpRequest xhr open GET file Using arraybuffer as the responseType ensures that the raw data is returned rather than letting XMLHttpRequest decode the data first xhr responseType arraybuffer xhr onload function if this status 200 The decode method takes DataView as parameter which is wrapper on top of the ArrayBuffer var dataView new DataView this response The TextDecoder interface is documented at http encoding spec whatwg org interface textdecoder var decoder new TextDecoder encoding var decodedString decoder decode dataView Add the decoded file text to the lt pre gt element on the page document querySelector results textContent decodedString else console error Error while requesting file this xhr send lt script gt code pre This answer definitely should be removed because it gives trash instead of data,0,NULL,NULL 57857,132992,680786,Announcer Notable Question Nice Question Yearling Necromancer Popular Question Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Guru Great Answer Yearling Nice Answer Popular Question,NULL,pAlthough Dennis and gengkev solutions of using Blob FileReader work wouldn suggest taking that approach It is an async approach to simple problem and it is much slower than direct solution ve made post in html5rocks with simpler and much faster solution href http updates html5rocks com 2012 06 How to convert ArrayBuffer to and from String http updates html5rocks com 2012 06 How to convert ArrayBuffer to and from String ppAnd the solution is ppre codefunction ab2str buf return String fromCharCode apply null new Uint16Array buf function str2ab str var buf new ArrayBuffer str length bytes for each char var bufView new Uint16Array buf for var strLen str length lt strLen bufView str charCodeAt return buf code prehrp strongEDIT strong ppThe href http updates html5rocks com 2014 08 Easier ArrayBuffer String conversion with the Encoding API Encoding API helps solving the string conversion problem Check out the response from href http www html5rocks com profiles jeffposnick Jeff Posnik on Html5Rocks com to the above original article ppExcerpt pblockquote emThe Encoding API makes it simple to translate between raw bytes and native JavaScript strings regardless of which of the many standard encodings you need to work with em blockquotepre code lt pre id results gt lt pre gt lt script gt if TextDecoder in window The local files to be fetched mapped to the encoding that they re using var filesToEncoding utf8 bin utf utf16le bin utf 16le macintosh bin macintosh Object keys filesToEncoding forEach function file fetchAndDecode file filesToEncoding file else document querySelector results textContent Your browser does not support the Encoding API Use XHR to fetch file and interpret its contents as being encoded with encoding function fetchAndDecode file encoding var xhr new XMLHttpRequest xhr open GET file Using arraybuffer as the responseType ensures that the raw data is returned rather than letting XMLHttpRequest decode the data first xhr responseType arraybuffer xhr onload function if this status 200 The decode method takes DataView as parameter which is wrapper on top of the ArrayBuffer var dataView new DataView this response The TextDecoder interface is documented at http encoding spec whatwg org interface textdecoder var decoder new TextDecoder encoding var decodedString decoder decode dataView Add the decoded file text to the lt pre gt element on the page document querySelector results textContent decodedString else console error Error while requesting file this xhr send lt script gt code pre This answer definitely should be removed because it gives trash instead of data,0,NULL,NULL 57858,326248,716007,Yearling Popular Question Cleanup Yearling Nice Answer Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 57859,270779,262070,Commentator Popular Question,NULL,NULL,0,NULL,NULL 57860,90679,1383570,Tumbleweed,NULL,NULL,0,NULL,NULL 57861,60829,216728,Nice Question Notable Question Notable Question Nice Question Good Question Stellar Question Nice Question Nice Question Notable Question Famous Question Yearling Popular Question Notable Question Good Question Famous Question Civic Duty Good Answer Famous Question Yearling Nice Question Good Question Nice Question Good Answer Yearling,NULL,pManually changing the files using codeinstall name tool code ppre codeinstall name tool change libeng dylib Applications MATLAB R2009b app bin maci64 libeng dylib library so install name tool change libmx dylib Applications MATLAB R2009b app bin maci64 libmx dylib library so code prepI could use this as temporary fix but wonder if there isn better solution where the linker is given setting to use the full paths ended up needing to do the inverse operation replacing an absolute path with one involving The dyld man page https developer apple com library mac documentation Darwin Reference ManPages man1 dyld html was helpful in explaining the behaviour of dyld as it regards absolute paths and expansion of,0,NULL,NULL 57862,104575,1543951,Popular Question,NULL,NULL,0,NULL,NULL 57863,325014,298664,Notable Question Announcer Popular Question Yearling Popular Question Revival Good Answer Custodian Notable Question Nice Question Great Question Nice Answer Good Answer Yearling Famous Question Announcer Notable Question Populist Popular Question Popular Question Popular Question Great Question Yearling Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 57864,553623,1536248,NULL,NULL,NULL,0,NULL,NULL 57865,1016752,678479,NULL,NULL,NULL,0,NULL,NULL 57866,219973,229314,NULL,NULL,NULL,0,NULL,NULL 57867,89435,301391,Caucus Constituent,NULL,NULL,0,NULL,NULL 57868,773920,143067,Custodian Popular Question Yearling Caucus asp.net-mvc Notable Question Yearling Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 57869,286033,1293050,NULL,NULL,NULL,0,NULL,NULL 57870,322042,962961,NULL,NULL,NULL,0,NULL,NULL 57871,634462,936397,Necromancer Popular Question Nice Answer Yearling Good Answer Yearling Announcer Yearling Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 57872,318434,416583,NULL,NULL,NULL,0,NULL,NULL 57873,1488073,374650,Popular Question,NULL,NULL,0,NULL,NULL 57874,1475225,1383175,Popular Question,NULL,NULL,0,NULL,NULL 57875,299348,197202,NULL,NULL,NULL,0,NULL,NULL 57876,802712,76591,Famous Question Self-Learner Nice Question Notable Question Popular Question Yearling Announcer Good Question,NULL,NULL,0,NULL,NULL 57877,456981,815949,NULL,NULL,NULL,0,NULL,NULL 57878,186401,325180,Yearling Good Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 57879,62685,183977,NULL,NULL,NULL,0,NULL,NULL 57880,582373,1234601,NULL,NULL,NULL,0,NULL,NULL 57881,144207,365528,NULL,NULL,NULL,0,NULL,NULL 57882,35410,981108,NULL,NULL,NULL,0,NULL,NULL 57883,82682,929865,NULL,NULL,NULL,0,NULL,NULL 57884,1561582,724311,NULL,NULL,NULL,0,NULL,NULL 57885,94295,913762,Good Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Enlightened Nice Answer Yearling Nice Answer Nice Answer Yearling Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 57886,698890,1108950,NULL,NULL,NULL,0,NULL,NULL 57887,103447,319215,NULL,NULL,NULL,0,NULL,NULL 57888,9163516,1223977,Informed Custodian Custodian Custodian Autobiographer Explainer Yearling,NULL,NULL,0,NULL,NULL 57889,178729,1223977,Informed Custodian Custodian Custodian Autobiographer Explainer Yearling,NULL,NULL,0,NULL,NULL 57890,1186778,778009,Nice Question Custodian Yearling Yearling Informed Autobiographer Good Answer Yearling,NULL,NULL,0,NULL,NULL 57891,324026,500338,NULL,NULL,NULL,0,NULL,NULL 57892,1349227,597215,Favorite Question Supporter,NULL,NULL,0,NULL,NULL 57893,1313214,1141953,Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 57894,27916,966058,Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 57895,242781,804954,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 57896,6251,643301,Enthusiast,NULL,NULL,0,NULL,NULL 57897,169019,1077030,NULL,NULL,NULL,0,NULL,NULL 57898,183382,287654,NULL,NULL,NULL,0,NULL,NULL 57899,51131,1301358,NULL,NULL,NULL,0,NULL,NULL 57900,2112545,373728,Scholar Student,NULL,NULL,0,NULL,NULL 57901,59459,373728,Scholar Student,NULL,NULL,0,NULL,NULL 57902,372208,1400734,NULL,NULL,NULL,0,NULL,NULL 57903,879141,315472,NULL,NULL,NULL,0,NULL,NULL 57904,1136070,527064,Nice Answer Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 57905,4068011,527064,Nice Answer Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 57906,440023,1434709,NULL,NULL,NULL,0,NULL,NULL 57907,354909,1050883,Necromancer,NULL,NULL,0,NULL,NULL 57908,407779,1194626,NULL,NULL,NULL,0,NULL,NULL 57909,567783,917208,NULL,NULL,NULL,0,NULL,NULL 57910,142076,238835,NULL,NULL,NULL,0,NULL,NULL 57911,111670,1138480,NULL,NULL,NULL,0,NULL,NULL 57912,248606,554728,NULL,NULL,NULL,0,NULL,NULL 57913,1059515,254617,Yearling Nice Answer Popular Question Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Guru Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Pundit Revival Good Answer,NULL,pI think what Ignacio is saying is that your JSON file is incorrect You have code code when you should have code code code code are for lists code code are for dictionaries ppHere how your JSON file should look your JSON file wouldn even load for me ppre code maps id blabla iscategorical id blabla iscategorical masks id valore om points value parameters id valore code prepThen you can use your code ppre codeimport jsonfrom pprint import pprintwith open data json as data json load pprint data code prepWith data you can now also find values like so ppre codedata maps id data masks id data om points code prepTry those out and see if it starts to make sense json doesn need to have at the root level It can start with an array at the root level,0,NULL,NULL 57914,213451,1011374,NULL,NULL,NULL,0,NULL,NULL 57915,1359404,1370912,Yearling Famous Question Good Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 57916,134451,408134,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 57917,94626,577563,Yearling Caucus Census,NULL,NULL,0,NULL,NULL 57918,249064,803234,Notable Question Yearling Commentator Notable Question,NULL,NULL,0,NULL,NULL 57919,750746,1171706,Caucus Constituent Nice Answer Notable Question Critic Editor Yearling,NULL,NULL,0,NULL,NULL 57920,9557,949321,Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 57921,600545,196815,Critic Notable Question,NULL,NULL,0,NULL,NULL 57922,550124,579428,NULL,NULL,NULL,0,NULL,NULL 57923,1070829,1097867,NULL,NULL,NULL,0,NULL,NULL 57924,66894,627677,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 57925,416252,696485,Notable Question Revival Notable Question Yearling Caucus Constituent Popular Question Nice Question Yearling Nice Answer Enlightened Caucus Nice Answer Documentation User Notable Question Announcer Yearling Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 57926,188226,668250,NULL,NULL,NULL,0,NULL,NULL 57927,21686,1544666,NULL,NULL,NULL,0,NULL,NULL 57928,314603,1555205,NULL,NULL,NULL,0,NULL,NULL 57929,50576,205105,Autobiographer Yearling Caucus,NULL,NULL,0,NULL,NULL 57930,663551,557341,Census,NULL,NULL,0,NULL,NULL 57931,143484,712988,NULL,NULL,NULL,0,NULL,NULL 57932,2528970,1526764,Editor Custodian,NULL,NULL,0,NULL,NULL 57933,273035,800765,Critic Yearling Tumbleweed Yearling Caucus Curious Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 57934,21789,596206,Popular Question Nice Answer Popular Question Popular Question Nice Answer Good Question Yearling Notable Question Necromancer Nice Question Popular Question Nice Answer Yearling Notable Question,NULL,NULL,1,NULL,Get exit code Go go pI using the package os exec href http golang org pkg os exec http golang org pkg os exec to execute command in the operating system but don seem to find the way to get the exit code can read the output though ppie ppre codepackage mainimport os exec bytes fmt log func main cmd exec Command somecommand parameter var out bytes Buffer cmd Stdout amp out if err cmd Run err nil log Fatal cmd ProcessState Success log Fatal err fmt Printf out String code pre pHere my enhanced version based on answer pp codeutils cmd go code ppre codepackage utilsimport bytes log os exec syscall const defaultFailedCode 1func RunCommand name string args string stdout string stderr string exitCode int log Println run command name args var outbuf errbuf bytes Buffer cmd exec Command name args cmd Stdout amp outbuf cmd Stderr amp errbuf err cmd Run stdout outbuf String stderr errbuf String if err nil try to get the exit code if exitError ok err exec ExitError ok ws exitError Sys syscall WaitStatus exitCode ws ExitStatus else This will happen in OSX if name is not available in PATH in this situation exit code could not be get and stderr will be empty string very likely so we use the default fail code and format err to string and set to stderr log Printf Could not get exit code for failed program name args exitCode defaultFailedCode if stderr stderr err Error else success exitCode should be if go is ok ws cmd ProcessState Sys syscall WaitStatus exitCode ws ExitStatus log Printf command result stdout stderr exitCode stdout stderr exitCode return code prepI have tested it on OSX if it not working as expected on other platforms please tell me so we can make it better 57935,137387,1501280,Student Supporter Editor Scholar Necromancer,NULL,NULL,0,NULL,NULL 57936,77305,305712,NULL,NULL,NULL,0,NULL,NULL 57937,1513146,1106062,NULL,NULL,NULL,0,NULL,NULL 57938,4310245,573951,Notable Question,NULL,NULL,0,NULL,NULL 57939,132454,573951,Notable Question,NULL,NULL,0,NULL,NULL 57940,743781,1339931,NULL,NULL,NULL,0,NULL,NULL 57941,63293,322381,NULL,NULL,NULL,0,NULL,NULL 57942,67770,1067041,NULL,NULL,NULL,0,NULL,NULL 57943,175181,1067041,NULL,NULL,NULL,0,NULL,NULL 57944,220890,961947,NULL,NULL,NULL,0,NULL,NULL 57945,101026,20191,NULL,NULL,NULL,0,NULL,NULL 57946,407761,396715,NULL,NULL,NULL,0,NULL,NULL 57947,31004,342235,Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question Notable Question Good Answer Notable Question Notable Question Great Question Famous Question Famous Question Good Question Great Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Good Question Notable Question Popular Question Popular Question Popular Question Good Question Famous Question Nice Question Nice Question Nice Question Notable Question Popular Question Nice Question Notable Question Famous Question Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Question Popular Question Popular Question Nice Question Popular Question Good Question Popular Question Popular Question Famous Question Yearling Great Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Good Question Famous Question Popular Question Good Question Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Good Question Popular Question Famous Question Good Answer Nice Question Popular Question Nice Question Popular Question Popular Question Good Question Famous Question Nice Question Notable Question Popular Question Favorite Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Good Question Notable Question Nice Question Popular Question Notable Question Notable Question Good Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Nice Question Famous Question Famous Question Notable Question Popular Question Nice Question Popular Question Good Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Pundit Popular Question Popular Question Notable Question Notable Question Favorite Question Popular Question Famous Question Popular Question Popular Question Nice Question Nice Question Famous Question Notable Question Famous Question Famous Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Famous Question Famous Question Notable Question Great Question Popular Question Popular Question Notable Question Notable Question Popular Question Favorite Question Notable Question Notable Question Notable Question Favorite Question Famous Question Good Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Necromancer Notable Question Famous Question Good Question Nice Question Notable Question Notable Question Nice Question Famous Question Good Question Yearling Popular Question Famous Question Notable Question Nice Question Good Question Popular Question Popular Question Nice Question Nice Question Favorite Question Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question Popular Question Nice Question Famous Question Popular Question Popular Question Notable Question Nice Answer Notable Question Good Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Nice Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Famous Question Famous Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Great Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Good Question Nice Answer Nice Answer Good Question Good Question Notable Question Good Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Great Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Good Question Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Popular Question Notable Question Popular Question Announcer Nice Question Socratic Popular Question Notable Question Notable Question Announcer Notable Question Popular Question Famous Question Nice Question Famous Question Yearling Nice Question Popular Question Peer Pressure Popular Question Famous Question Nice Question Great Question Popular Question Notable Question Notable Question Popular Question Nice Question Nice Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Famous Question Nice Answer Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Famous Question Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Nice Answer Notable Question Notable Question,NULL,module exports vs exports in Node js javascript node js commonjs pI ve found the following contract in Node js module ppre codemodule exports exports nano function database module cfg code prepI wonder whats the different between codemodule exports code and codeexports code and why both are used here Can understand why provide both module exports and exports Why not just provide module exports to avoid such confusion,0,NULL,NULL 57948,196284,841839,NULL,NULL,NULL,0,NULL,NULL 57949,33246,1398908,Autobiographer Critic Good Answer Editor Yearling Supporter Custodian Commentator Revival Yearling,NULL,NULL,0,NULL,NULL 57950,24268,324248,Yearling,NULL,NULL,0,NULL,NULL 57951,213359,298715,NULL,NULL,NULL,0,NULL,NULL 57952,367178,1012716,NULL,NULL,NULL,0,NULL,NULL 57953,430627,687971,Popular Question,NULL,NULL,0,NULL,NULL 57954,921812,1435381,Teacher,NULL,NULL,0,NULL,NULL 57955,185390,967940,NULL,NULL,NULL,0,NULL,NULL 57956,461417,780831,Nice Answer Enlightened Famous Question Famous Question Yearling Notable Question Yearling Nice Question Excavator Yearling Famous Question,NULL,NULL,0,NULL,NULL 57957,497269,689488,Notable Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 57958,4420121,498755,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 57959,128454,793654,Popular Question Supporter,NULL,NULL,0,NULL,NULL 57960,846988,1092012,Popular Question Nice Answer Famous Question Popular Question Popular Question Guru Notable Question Good Question Nice Question Popular Question Famous Question Caucus Necromancer Yearling Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Favorite Question Popular Question Notable Question Nice Answer Famous Question Famous Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Good Question Popular Question Famous Question Popular Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 57961,421154,17333,NULL,NULL,NULL,0,NULL,NULL 57962,70037,261476,NULL,NULL,NULL,0,NULL,NULL 57963,160557,564457,NULL,NULL,NULL,0,NULL,NULL 57964,948544,1489010,NULL,NULL,NULL,0,NULL,NULL 57965,10704,330911,Good Answer Yearling Nice Question Nice Answer Famous Question Good Question Revival Good Answer Disciplined Civic Duty Famous Question Nice Answer Yearling Good Question Announcer Famous Question Yearling,NULL,NULL,0,NULL,NULL 57966,100565,656439,NULL,NULL,NULL,0,NULL,NULL 57967,265305,1333737,NULL,NULL,NULL,0,NULL,NULL 57968,749948,1004352,NULL,NULL,NULL,0,NULL,NULL 57969,251562,498683,NULL,NULL,NULL,0,NULL,NULL 57970,697794,312818,NULL,NULL,NULL,0,NULL,NULL 57971,408371,319698,Nice Answer Enlightened Yearling Nice Answer Enlightened Famous Question Necromancer Curious Revival xmlstarlet Yearling Announcer Custodian Announcer Nice Answer Yearling Announcer Good Answer Explainer,NULL,NULL,0,NULL,NULL 57972,297421,657828,NULL,NULL,NULL,0,NULL,NULL 57973,350620,840611,NULL,NULL,NULL,0,NULL,NULL 57974,101321,72977,Teacher Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 57975,205007,41661,Guru Nice Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Good Answer Favorite Question parsing Nice Answer Nice Answer Good Answer Guru Nice Answer Good Answer Good Question Good Answer Popular Question Nice Answer Notable Question Nice Answer Great Answer Guru Necromancer Nice Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Good Answer Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Populist Yearling Guru Nice Answer Nice Answer Good Answer Great Answer Great Question Good Answer Good Answer Popular Question Nice Answer Nice Answer Nice Question Nice Answer Nice Answer Nice Answer Great Answer Famous Question Notable Question Great Answer Necromancer Nice Answer Good Answer Notable Question Guru Good Answer Good Question Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Question Guru Nice Answer Nice Answer Nice Answer Popular Question Great Answer Guru Popular Question Yearling Good Answer Notable Question Good Answer Great Answer Good Answer Good Answer Nice Answer Great Answer Nice Question Notable Question Nice Answer Nice Answer Famous Question Nice Answer Necromancer Nice Answer Notable Question Good Answer Nice Answer Good Answer Famous Question Notable Question Nice Answer Nice Question Guru Nice Answer Yearling,NULL,pYour code is efficient but wrong Consider code false code The correct code is ppre codeif next myTable nil then myTable is emptyend code prepFor maximum efficiency you ll want to bind codenext code to local variable ppre code local next next if next code pre at run time global variable requires hash table lookup but local variable requires only an array lookup,0,NULL,NULL 57976,79048,316921,NULL,NULL,NULL,0,NULL,NULL 57977,368114,186181,NULL,NULL,NULL,0,NULL,NULL 57978,7872720,549978,Promoter Revival Revival Scholar Student Supporter Custodian Custodian Custodian Nice Answer Caucus Caucus Yearling Critic Commentator Yearling Yearling Yearling Yearling Excavator Nice Answer Enlightened Revival Necromancer Caucus Constituent Yearling Tumbleweed Explainer Popular Question android Revival Nice Answer Enlightened Nice Answer Good Answer Popular Question Self-Learner Popular Question Caucus Constituent Notable Question Curious Popular Question Custodian Revival Organizer Benefactor Yearling Good Answer Good Answer Census Guru Notable Question Nice Answer Caucus Constituent Nice Question Guru Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 57979,255732,549978,Promoter Revival Revival Scholar Student Supporter Custodian Custodian Custodian Nice Answer Caucus Caucus Yearling Critic Commentator Yearling Yearling Yearling Yearling Excavator Nice Answer Enlightened Revival Necromancer Caucus Constituent Yearling Tumbleweed Explainer Popular Question android Revival Nice Answer Enlightened Nice Answer Good Answer Popular Question Self-Learner Popular Question Caucus Constituent Notable Question Curious Popular Question Custodian Revival Organizer Benefactor Yearling Good Answer Good Answer Census Guru Notable Question Nice Answer Caucus Constituent Nice Question Guru Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 57980,44463,726317,Yearling,NULL,NULL,0,NULL,NULL 57981,79564,680441,Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Yearling Nice Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Famous Question Nice Question Famous Question Notable Question Notable Question Famous Question Revival Good Question Popular Question Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Famous Question Famous Question Popular Question Yearling Notable Question Popular Question Good Question Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Good Question Famous Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Notable Question Nice Question Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Great Question Nice Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 57982,1268556,476709,NULL,NULL,NULL,0,NULL,NULL 57983,62238,831995,Popular Question,NULL,NULL,0,NULL,NULL 57984,1567713,156467,Notable Question Popular Question Popular Question Notable Question Yearling Revival Critic Notable Question Famous Question Popular Question Good Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57985,309810,47838,NULL,NULL,NULL,0,NULL,NULL 57986,320679,470727,NULL,NULL,NULL,0,NULL,NULL 57987,176565,416832,NULL,NULL,NULL,0,NULL,NULL 57988,131771,1376471,NULL,NULL,NULL,0,NULL,NULL 57989,10443693,1294116,Scholar Commentator Tumbleweed Popular Question Curious Popular Question Popular Question Notable Question Informed Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57990,1426706,1294116,Scholar Commentator Tumbleweed Popular Question Curious Popular Question Popular Question Notable Question Informed Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 57991,363774,780073,NULL,NULL,NULL,0,NULL,NULL 57992,578513,585110,NULL,NULL,NULL,0,NULL,NULL 57993,437637,1102186,Supporter,NULL,NULL,0,NULL,NULL 57994,423914,511117,NULL,NULL,NULL,0,NULL,NULL 57995,2912,433010,NULL,NULL,NULL,0,NULL,NULL 57996,20454,253471,Critic Informed Autobiographer Commentator Yearling Explainer Organizer Suffrage Vox Populi Excavator,NULL,NULL,0,NULL,NULL 57997,382553,1308994,Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 57998,615291,21275,NULL,NULL,NULL,0,NULL,NULL 57999,11548,1565646,Editor Yearling Necromancer Revival Necromancer Nice Answer Revival,NULL,NULL,0,NULL,NULL 58000,86266,254362,NULL,NULL,NULL,0,NULL,NULL 58001,170429,94824,Yearling Benefactor,NULL,NULL,0,NULL,NULL 58002,341849,38657,Nice Question Nice Answer Popular Question Yearling Announcer Announcer Popular Question,NULL,NULL,0,NULL,NULL 58003,164067,773096,NULL,NULL,NULL,0,NULL,NULL 58004,1086597,572002,Necromancer Notable Question Enthusiast Caucus Yearling Revival Citizen Patrol Custodian Informed Suffrage Vox Populi Caucus Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 58005,134044,314725,Yearling Good Answer Famous Question Good Answer Popular Question Good Question Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58006,1515908,1011687,Nice Question Critic,NULL,NULL,0,NULL,NULL 58007,47583,1105112,NULL,NULL,NULL,0,NULL,NULL 58008,80047,339958,Necromancer,NULL,NULL,0,NULL,NULL 58009,802051,255036,Yearling Great Question Yearling Famous Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 58010,107467,340770,NULL,NULL,NULL,0,NULL,NULL 58011,78289,501324,NULL,NULL,NULL,0,NULL,NULL 58012,256421,437354,NULL,NULL,NULL,0,NULL,NULL 58013,669037,528405,Guru Notable Question Good Answer Famous Question java Popular Question Popular Question Nice Answer Enlightened Caucus Yearling Nice Answer Popular Question Nice Question Great Answer Nice Question Good Answer Popular Question python Nice Answer Enlightened Necromancer Yearling Notable Question Notable Question Good Answer Custodian Popular Question Notable Question Notable Question Revival Nice Question Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 58014,396621,395163,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 58015,259246,933597,NULL,NULL,NULL,0,NULL,NULL 58016,283234,192102,Favorite Question Popular Question Famous Question Notable Question Nice Question Yearling Popular Question Revival Yearling Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58017,991498,637088,NULL,NULL,NULL,0,NULL,NULL 58018,885541,855229,Guru Yearling Popular Question Notable Question Great Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 58019,4261365,855229,Guru Yearling Popular Question Notable Question Great Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 58020,324347,489097,NULL,NULL,NULL,0,NULL,NULL 58021,11182,287794,Announcer,NULL,NULL,0,NULL,NULL 58022,932048,178331,Nice Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Famous Question Good Question Popular Question Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 58023,110402,1150668,NULL,NULL,NULL,0,NULL,NULL 58024,272120,832939,NULL,NULL,NULL,0,NULL,NULL 58025,7726453,974271,NULL,NULL,NULL,0,NULL,NULL 58026,325734,974271,NULL,NULL,NULL,0,NULL,NULL 58027,97449,76724,NULL,NULL,NULL,0,NULL,NULL 58028,68873,1526985,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 58029,5759720,1437922,NULL,NULL,NULL,0,NULL,NULL 58030,1521454,1437922,NULL,NULL,NULL,0,NULL,NULL 58031,89699,424463,Caucus Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 58032,208661,766734,NULL,NULL,NULL,0,NULL,NULL 58033,433106,1342554,NULL,NULL,NULL,0,NULL,NULL 58034,65267,1265511,NULL,NULL,NULL,0,NULL,NULL 58035,264114,975671,Popular Question,NULL,NULL,0,NULL,NULL 58036,117801,617779,Notable Question Good Question Enthusiast Custodian Yearling Nice Question Civic Duty Popular Question Nice Answer Nice Question Notable Question Famous Question Famous Question Famous Question Yearling Custodian Popular Question Notable Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 58037,960001,971196,NULL,NULL,NULL,0,NULL,NULL 58038,405928,777948,NULL,NULL,NULL,0,NULL,NULL 58039,294592,550504,NULL,NULL,NULL,0,NULL,NULL 58040,1304969,1499514,NULL,NULL,NULL,0,NULL,NULL 58041,410940,1166539,NULL,NULL,NULL,0,NULL,NULL 58042,18682,1558345,NULL,NULL,NULL,0,NULL,NULL 58043,110820,156771,Great Answer Announcer Good Answer Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling graph Guru Popular Question Nice Answer Guru Good Answer Nice Answer Enlightened Good Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Documentation User Pundit Nice Answer Enlightened Nice Answer Enlightened Announcer Guru r Good Answer Great Answer Nice Answer Notable Question Notable Question Nice Answer Enlightened Good Answer Yearling Nice Answer,NULL,pHere is short summary about the community detection algorithms currently implemented in igraph pulli codeedge betweenness community code is hierarchical decomposition process where edges are removed in the decreasing order of their edge betweenness scores the number of shortest paths that pass through given edge This is motivated by the fact that edges connecting different groups are more likely to be contained in multiple shortest paths simply because in many cases they are the only option to go from one group to another This method yields good results but is very slow because of the computational complexity of edge betweenness calculations and because the betweenness scores have to be re calculated after every edge removal Your graphs with 700 vertices and 3500 edges are around the upper size limit of graphs that are feasible to be analyzed with this approach Another disadvantage is that codeedge betweenness community code builds full dendrogram and does not give you any guidance about where to cut the dendrogram to obtain the final groups so you ll have to use some other measure to decide that the modularity score of the partitions at each level of the dendrogram lili codefastgreedy community code is another hierarchical approach but it is bottom up instead of top down It tries to optimize quality function called modularity in greedy manner Initially every vertex belongs to separate community and communities are merged iteratively such that each merge is locally optimal yields the largest increase in the current value of modularity The algorithm stops when it is not possible to increase the modularity any more so it gives you grouping as well as dendrogram The method is fast and it is the method that is usually tried as first approximation because it has no parameters to tune However it is known to suffer from resolution limit communities below given size threshold depending on the number of nodes and edges if remember correctly will always be merged with neighboring communities lili codewalktrap community code is an approach based on random walks The general idea is that if you perform random walks on the graph then the walks are more likely to stay within the same community because there are only few edges that lead outside given community Walktrap runs short random walks of steps depending on one of its parameters and uses the results of these random walks to merge separate communities in bottom up manner like codefastgreedy community code Again you can use the modularity score to select where to cut the dendrogram It is bit slower than the fast greedy approach but also bit more accurate according to the original publication lili codespinglass community code is an approach from statistical physics based on the so called Potts model In this model each particle vertex can be in one of emc em spin states and the interactions between the particles the edges of the graph specify which pairs of vertices would prefer to stay in the same spin state and which ones prefer to have different spin states The model is then simulated for given number of steps and the spin states of the particles in the end define the communities The consequences are as follows There will never be more than emc em communities in the end although you can set emc em to as high as 200 which is likely to be enough for your purposes There may be less than emc em communities in the end as some of the spin states may become empty It is not guaranteed that nodes in completely remote or disconencted parts of the networks have different spin states This is more likely to be problem for disconnected graphs only so would not worry about that The method is not particularly fast and not deterministic because of the simulation itself but has tunable resolution parameter that determines the cluster sizes variant of the spinglass method can also take into account negative links links whose endpoints prefer to be in different communities lili codeleading eigenvector community code is top down hierarchical approach that optimizes the modularity function again In each step the graph is split into two parts in way that the separation itself yields significant increase in the modularity The split is determined by evaluating the leading eigenvector of the so called modularity matrix and there is also stopping condition which prevents tightly connected groups to be split further Due to the eigenvector calculations involved it might not work on degenerate graphs where the ARPACK eigenvector solver is unstable On non degenerate graphs it is likely to yield higher modularity score than the fast greedy method although it is bit slower lili codelabel propagation community code is simple approach in which every node is assigned one of emk em labels The method then proceeds iteratively and re assigns labels to nodes in way that each node takes the most frequent label of its neighbors in synchronous manner The method stops when the label of each node is one of the most frequent labels in its neighborhood It is very fast but yields different results based on the initial configuration which is decided randomly therefore one should run the method large number of times say 1000 times for graph and then build consensus labeling which could be tedious li ulpigraph will also include the state of the art Infomap community detection algorithm which is based on information theoretic principles it tries to build grouping which provides the shortest description length for random walk on the graph where the description length is measured by the expected number of bits per vertex required to encode the path of random walk ppAnyway would probably go with codefastgreedy community code or codewalktrap community code as first approximation and then evaluate other methods when it turns out that these two are not suitable for particular problem for some reason the InfoMap algorithm has nice and scientifically sound approach to handling directed edges The implementation in igraph is not the most efficient due to licensing issues but it should work for smaller graphs If it turns out to be too slow you can try the code of the authors of the algorithm from http mapequation org pTry the following ppre codeLD LIBRARY PATH usr local lib usr local bin python code prepReplace code usr local lib code with the folder where you have installed codelibpython2 so code if it is not in code usr local lib code ppIf this works and you want to make the changes permanent you have two options polli pAdd codeexport LD LIBRARY PATH usr local lib code to your code profile code in your home directory this works only if you are using shell which loads this file when new shell instance is started This setting will affect your user only lili pAdd code usr local lib code to code etc ld so conf code and run codeldconfig code This is system wide setting of course li ol The original question is about Python instance that is installed in usr local hence used that in my answer If your Python is elsewhere adjust the paths accordingly,0,NULL,NULL 58044,277293,278075,NULL,NULL,NULL,0,NULL,NULL 58045,1442756,1265577,NULL,NULL,NULL,0,NULL,NULL 58046,3671338,1265577,NULL,NULL,NULL,0,NULL,NULL 58047,242597,1481691,NULL,NULL,NULL,0,NULL,NULL 58048,601586,104011,Yearling Famous Question,NULL,NULL,0,NULL,NULL 58049,8657343,104011,Yearling Famous Question,NULL,NULL,0,NULL,NULL 58050,404960,908573,Supporter Informed,NULL,NULL,0,NULL,NULL 58051,250187,561819,NULL,NULL,NULL,0,NULL,NULL 58052,1437202,1060608,NULL,NULL,NULL,0,NULL,NULL 58053,221166,147186,Critic,NULL,NULL,0,NULL,NULL 58054,201710,478266,NULL,NULL,NULL,0,NULL,NULL 58055,43891,379698,Nice Answer Guru Yearling Excavator Popular Question Yearling Notable Question Yearling Curious,NULL,NULL,0,NULL,NULL 58056,1699291,1192973,NULL,NULL,NULL,0,NULL,NULL 58057,115679,848792,NULL,NULL,NULL,0,NULL,NULL 58058,273384,1485230,Revival Nice Answer Revival Necromancer Popular Question Notable Question Fanatic Revival Popular Question Great Answer Good Answer Yearling Explainer Nice Answer Nice Answer Necromancer Good Question Caucus Necromancer Necromancer Necromancer Necromancer Necromancer Tag Editor Popular Question Necromancer Yearling Quorum Famous Question Popular Question Nice Answer Necromancer Popular Question Nice Answer Popular Question Taxonomist Popular Question Notable Question Nice Answer Yearling swift Necromancer Nice Answer Great Answer,NULL,Android percent layouts android android layout pI want to create layout that would looks like this ppre code Scrollview Top Image view margin Image view margin Image view margin Bottom Scrollview code prepWith Image View adapting their height to the image aspect ratio filling 100 width ppThis is the layout use ppre code lt xml version encoding utf gt lt RelativeLayout xmlns android http schemas android com apk res android xmlns tools http schemas android com tools xmlns app http schemas android com apk res auto android layout width match parent android layout height match parent android paddingBottom activity vertical margin android paddingLeft activity horizontal margin android paddingRight activity horizontal margin android paddingTop activity vertical margin tools context com motionportrait hokuto malts ChooseVideoActivity gt lt ScrollView android layout width match parent android layout height match parent gt lt android support percent PercentFrameLayout android layout width match parent android layout height wrap content gt lt ImageView android id id choose movie android layout height wrap content app layout marginTopPercent android layout width match parent android adjustViewBounds true android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true android layout marginTop 0dp app layout marginTopPercent 20 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 40 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 60 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 80 android onClick play gt lt android support percent PercentFrameLayout gt lt ScrollView gt lt RelativeLayout gt code prepHowever using this layout the top margin isn taken into account and every image are squashed on top of the view ppMy requirement is to be able to define margins since need the pictures to partially cover themselves sorry forgot to add the question at the end Edited Now taking look at all the answers,1,Android percent layouts android android layout pI want to create layout that would looks like this ppre code Scrollview Top Image view margin Image view margin Image view margin Bottom Scrollview code prepWith Image View adapting their height to the image aspect ratio filling 100 width ppThis is the layout use ppre code lt xml version encoding utf gt lt RelativeLayout xmlns android http schemas android com apk res android xmlns tools http schemas android com tools xmlns app http schemas android com apk res auto android layout width match parent android layout height match parent android paddingBottom activity vertical margin android paddingLeft activity horizontal margin android paddingRight activity horizontal margin android paddingTop activity vertical margin tools context com motionportrait hokuto malts ChooseVideoActivity gt lt ScrollView android layout width match parent android layout height match parent gt lt android support percent PercentFrameLayout android layout width match parent android layout height wrap content gt lt ImageView android id id choose movie android layout height wrap content app layout marginTopPercent android layout width match parent android adjustViewBounds true android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true android layout marginTop 0dp app layout marginTopPercent 20 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 40 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 60 android onClick play gt lt ImageView android id id choose movie android layout height wrap content android layout width match parent android adjustViewBounds true app layout marginTopPercent 80 android onClick play gt lt android support percent PercentFrameLayout gt lt ScrollView gt lt RelativeLayout gt code prepHowever using this layout the top margin isn taken into account and every image are squashed on top of the view ppMy requirement is to be able to define margins since need the pictures to partially cover themselves,NULL 58059,1201872,569324,NULL,NULL,NULL,0,NULL,NULL 58060,231323,1168309,NULL,NULL,NULL,0,NULL,NULL 58061,7407073,1168309,NULL,NULL,NULL,0,NULL,NULL 58062,381912,964860,NULL,NULL,NULL,0,NULL,NULL 58063,203974,213525,Good Question Necromancer Nice Answer Popular Question Nice Answer Popular Question Yearling Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question Notable Question Notable Question Famous Question Nice Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58064,2144796,1093971,NULL,NULL,NULL,0,NULL,NULL 58065,404538,987046,NULL,NULL,NULL,0,NULL,NULL 58066,223384,240225,Supporter Yearling Yearling,NULL,NULL,0,NULL,NULL 58067,291826,279874,Scholar Revival Editor Commentator Census Nice Answer Yearling Critic Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 58068,443175,384409,NULL,NULL,NULL,0,NULL,NULL 58069,1314384,47407,Famous Question Necromancer Popular Question Yearling Nice Answer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 58070,35449,268665,NULL,NULL,NULL,0,NULL,NULL 58071,720899,1547078,NULL,NULL,NULL,0,NULL,NULL 58072,182823,507147,NULL,NULL,NULL,0,NULL,NULL 58073,98354,978788,NULL,NULL,NULL,0,NULL,NULL 58074,738359,830880,Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 58075,122338,830880,Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 58076,3263983,830880,Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 58077,1037944,821052,NULL,NULL,NULL,0,NULL,NULL 58078,140288,1359897,NULL,NULL,NULL,0,NULL,NULL 58079,56434,234671,Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58080,812001,581815,NULL,NULL,NULL,0,NULL,NULL 58081,1147075,912322,NULL,NULL,NULL,0,NULL,NULL 58082,427706,586544,NULL,NULL,NULL,0,NULL,NULL 58083,52437,420501,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 58084,1735899,420501,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 58085,1028053,509776,Famous Question Nice Question Yearling Caucus Constituent Famous Question Caucus,NULL,NULL,0,NULL,NULL 58086,673685,873550,NULL,NULL,NULL,0,NULL,NULL 58087,309217,673086,Popular Question Enthusiast Notable Question Caucus Constituent Yearling Caucus Constituent Announcer Caucus,NULL,NULL,0,NULL,NULL 58088,238365,1140929,NULL,NULL,NULL,0,NULL,NULL 58089,79364,1164730,Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 58090,7020044,1164730,Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 58091,2847951,438956,Necromancer,NULL,NULL,0,NULL,NULL 58092,1505711,510209,NULL,NULL,NULL,0,NULL,NULL 58093,25383,1379329,Informed Yearling Supporter Documentation User Editor Excavator Critic Caucus Teacher Constituent Autobiographer Explainer Yearling Commentator Custodian Citizen Patrol Custodian Enthusiast Custodian,NULL,NULL,0,NULL,NULL 58094,380367,308738,NULL,NULL,NULL,0,NULL,NULL 58095,432163,751686,NULL,NULL,NULL,0,NULL,NULL 58096,2642132,922135,Notable Question Nice Question Yearling Necromancer Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 58097,592047,922135,Notable Question Nice Question Yearling Necromancer Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 58098,178817,632995,Critic Caucus Necromancer,NULL,NULL,0,NULL,NULL 58099,288983,718349,Yearling Enthusiast Self-Learner Yearling Organizer Custodian Yearling Yearling,NULL,pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public In my opinion the better approach to git revert no commit is git diff commit you want to revert to my diff patch p1 my diff This approach doesn have the problem about option was given and no history is destroyed either,0,NULL,NULL 58100,161193,711901,Notable Question Popular Question Caucus Constituent Popular Question Caucus Constituent Documentation User Popular Question Yearling Census Popular Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 58101,14483,711901,Notable Question Popular Question Caucus Constituent Popular Question Caucus Constituent Documentation User Popular Question Yearling Census Popular Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 58102,2834,491071,Nice Question Nice Answer Enlightened Yearling Nice Answer Guru Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 58103,464546,178150,Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Great Answer Good Answer Pundit javascript Nice Answer Guru Yearling Great Answer activerecord ruby Nice Answer Enlightened Great Answer Good Answer Notable Question Popular Question Yearling Great Answer Self-Learner Good Answer Good Answer Great Answer Notable Question Revival Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58104,146938,809908,Popular Question Nice Question Nice Question Popular Question Popular Question Yearling Nice Question Popular Question Famous Question Popular Question Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 58105,308326,78242,Nice Question,NULL,NULL,0,NULL,NULL 58106,324902,959688,Notable Question Scholar,NULL,NULL,0,NULL,NULL 58107,383060,589660,NULL,NULL,NULL,0,NULL,NULL 58108,1119645,1123004,Notable Question,NULL,NULL,0,NULL,NULL 58109,1512048,1559903,NULL,NULL,NULL,0,NULL,NULL 58110,1484803,717006,NULL,NULL,NULL,0,NULL,NULL 58111,2827904,432732,NULL,NULL,NULL,0,NULL,NULL 58112,1025337,161746,Nice Question Great Question Notable Question Notable Question Famous Question Popular Question Famous Question Notable Question Enthusiast Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Favorite Question Famous Question Good Question Yearling Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Famous Question Good Question Famous Question Nice Question Notable Question Good Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Question Nice Question Notable Question Yearling Famous Question Notable Question Good Question Popular Question Famous Question Nice Question Notable Question Famous Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58113,997684,161746,Nice Question Great Question Notable Question Notable Question Famous Question Popular Question Famous Question Notable Question Enthusiast Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Favorite Question Famous Question Good Question Yearling Popular Question Famous Question Popular Question Notable Question Famous Question Notable Question Famous Question Good Question Famous Question Nice Question Notable Question Good Question Popular Question Notable Question Famous Question Famous Question Popular Question Popular Question Famous Question Popular Question Nice Question Nice Question Notable Question Yearling Famous Question Notable Question Good Question Popular Question Famous Question Nice Question Notable Question Famous Question Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58114,349509,62483,NULL,NULL,NULL,0,NULL,NULL 58115,70935,589637,NULL,NULL,NULL,0,NULL,NULL 58116,324387,764124,Popular Question,NULL,NULL,0,NULL,NULL 58117,102154,979733,Yearling Revival Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58118,110377,1113673,NULL,NULL,NULL,0,NULL,NULL 58119,32939,1017210,NULL,NULL,NULL,0,NULL,NULL 58120,116936,86387,Revival Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58121,20472,547588,node.js Yearling Nice Answer Yearling Favorite Question Good Answer,NULL,NULL,0,NULL,NULL 58122,553540,196234,Popular Question Yearling Notable Question Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 58123,336046,1132648,NULL,NULL,NULL,0,NULL,NULL 58124,111125,1245292,NULL,NULL,NULL,0,NULL,NULL 58125,322286,559054,Notable Question Yearling Caucus Critic Commentator Famous Question Self-Learner Caucus,NULL,NULL,0,NULL,NULL 58126,156702,1248432,Critic,NULL,NULL,0,NULL,NULL 58127,561430,904068,NULL,NULL,NULL,0,NULL,NULL 58128,326402,166067,Nice Question Nice Question Nice Question Famous Question Popular Question Famous Question Notable Question Famous Question Notable Question Nice Question Good Answer Good Answer Famous Question Famous Question Famous Question Notable Question Documentation Beta Nice Answer Good Question Yearling Stellar Question Popular Question Popular Question Caucus Nice Question Good Question Great Answer Nice Question Popular Question Notable Question Notable Question Good Question Notable Question Famous Question Good Question Famous Question Notable Question Nice Question Popular Question Good Question Nice Answer Enlightened Notable Question Notable Question Nice Answer Yearling Popular Question Guru Documentation User Famous Question Great Question Famous Question Nice Question Nice Question Nice Question Notable Question Nice Question Nice Question Notable Question Famous Question Favorite Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Great Question Notable Question Great Question Famous Question Yearling Great Question Nice Question Popular Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 58129,36173,1325624,Supporter Autobiographer Revival Editor,NULL,NULL,0,NULL,NULL 58130,9721,582294,Yearling Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 58131,61070,1557050,Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 58132,120835,605744,Nice Answer Enlightened Good Answer Nice Answer Enlightened Famous Question Good Answer Nice Answer web-applications Guru Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Populist Guru Good Answer Guru Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Guru Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Good Answer Guru tomcat Great Answer Guru Guru Guru Nice Answer Nice Answer Good Answer Guru Guru Good Answer Guru Nice Answer Enlightened Nice Answer Great Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Enlightened Good Answer Notable Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru executorservice Good Answer Good Answer Good Answer Nice Answer Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Populist Nice Answer Nice Answer Guru Nice Answer Good Answer Good Answer Guru Good Answer Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Great Answer Nice Answer Nice Answer Nice Answer Guru Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Enlightened Nice Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Enlightened Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Good Answer Guru Good Answer Revival Good Answer Good Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Question asynchronous ejb Good Answer Guru Good Answer Good Answer Good Answer Nice Answer Great Answer Guru Nice Answer sockets Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Populist Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Good Answer Good Answer Guru Nice Answer Great Answer Guru Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer Nice Answer Nice Answer Populist Good Answer Nice Answer Nice Answer Good Answer Guru Great Answer Yearling Nice Answer Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Guru Guru Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Guru Great Answer Nice Answer Famous Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Guru Guru Great Answer Nice Answer Good Answer Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Great Answer Great Answer Good Answer Great Answer Guru Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 58133,7189,490502,Custodian Custodian Commentator Citizen Patrol Custodian Organizer Explainer Yearling Scholar Student Caucus Nice Answer Reviewer Caucus Constituent Documentation User Yearling Revival,NULL,NULL,0,NULL,NULL 58134,413444,803457,NULL,NULL,NULL,0,NULL,NULL 58135,886481,740272,NULL,NULL,NULL,0,NULL,NULL 58136,1477471,476076,Notable Question Good Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 58137,10045639,964945,Popular Question,NULL,NULL,0,NULL,NULL 58138,183820,964945,Popular Question,NULL,NULL,0,NULL,NULL 58139,6277356,771729,Notable Question,NULL,NULL,0,NULL,NULL 58140,22781,771729,Notable Question,NULL,NULL,0,NULL,NULL 58141,147133,545304,NULL,NULL,NULL,0,NULL,NULL 58142,165235,882278,Teacher,NULL,NULL,0,NULL,NULL 58143,63604,469463,Teacher Supporter,NULL,NULL,0,NULL,NULL 58144,482304,1275706,NULL,NULL,NULL,0,NULL,NULL 58145,88683,881111,Necromancer Nice Answer Yearling Famous Question Nice Answer Pundit Self-Learner Yearling Good Answer Necromancer Yearling Revival Revival Necromancer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58146,73244,1196997,NULL,NULL,NULL,0,NULL,NULL 58147,6303678,980122,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58148,1518349,980122,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58149,217142,1148080,Student Necromancer,NULL,NULL,0,NULL,NULL 58150,85140,455467,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58151,178697,701186,NULL,NULL,NULL,0,NULL,NULL 58152,440829,928581,NULL,NULL,NULL,0,NULL,NULL 58153,8347935,1070837,NULL,NULL,NULL,0,NULL,NULL 58154,61887,1070837,NULL,NULL,NULL,0,NULL,NULL 58155,464061,408442,Popular Question,NULL,NULL,0,NULL,NULL 58156,917720,512547,NULL,NULL,NULL,0,NULL,NULL 58157,298193,51537,Favorite Question Yearling Famous Question Nice Question Caucus Popular Question Documentation User Yearling Revival Popular Question Notable Question Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 58158,256890,464682,NULL,NULL,NULL,0,NULL,NULL 58159,669616,326736,Yearling Revival Good Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 58160,145362,297058,NULL,NULL,NULL,0,NULL,NULL 58161,131057,891388,Scholar Supporter Teacher Curious Tumbleweed Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58162,172735,44497,Notable Question,NULL,NULL,0,NULL,NULL 58163,229508,1359658,Editor Scholar Student Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 58164,270904,1333615,NULL,NULL,NULL,0,NULL,NULL 58165,201945,886929,Nice Question Yearling Popular Question Popular Question Nice Question Notable Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 58166,34514,791770,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 58167,696323,160466,Tumbleweed Necromancer Yearling Popular Question Nice Answer Caucus Popular Question Nice Answer Custodian Informed Yearling Popular Question Caucus Popular Question Yearling,NULL,pUsually put utility functions that are semantically different into different traits and create an object for each trait ppre codetrait Foo def bar object Foo extends Foo code prepThat way most flexible can import the utility functions via an codeimport code statement or via codewith code in the class declaration Moreover can easily group different utility traits together into new object to simplify the import statements for the most commonly used utility functions ppre codeobject AllMyUtilites extends Foo with Foo2 code pre This is great was thinking whether to have trait or an object but you can have both,0,NULL,NULL 58168,140973,518071,Informed,NULL,NULL,0,NULL,NULL 58169,495856,232725,Necromancer Necromancer Critic Curious Caucus Yearling Popular Question Great Answer Popular Question Notable Question,NULL,NULL,1,How do you get debugging symbols working in linux perf tool inside Docker containers linux docker linux kernel perf pI am using Docker containers based on the ubuntu tag and cannot get linux perf tool to display debugging symbols ppHere is what doing to demonstrate the problem ppFirst start container here with an interactive shell ppre codedocker run ubuntu 14 04 bin bash code prepThen from the container prompt install linux perf tool ppre codeapt get updateapt get install linux tools common linux tools generic linux tools uname code prepI can now use the codeperf code tool My kernel is code3 16 77 generic code ppNow ll install codegcc code compile test program and try to run it under codeperf record code ppre codeapt get install gcc code prepI paste in the test program into codetest code ppre code include lt stdio gt int function int int for lt if return return int main int for lt 100000 if function printf code prepThen compile run and report codegcc O0 test amp amp perf record out amp amp perf report code ppThe output looks something like this code 72 38 out out 0x0000000000000544 37 out out 0x000000000000055a 30 out out 0x000000000000053d 81 out out 0x0000000000000551 40 out out 0x0000000000000540 code ppThis does not have symbols even though the executable does have symbol information ppDoing the same general steps outside the container works fine and shows something like this code96 96 out out function 35 out libc 19 so IO file xsputn 50 14 out kernel kallsyms update curr0 12 out kernel kallsyms update cfs shares0 11 out kernel kallsyms raw spin lock irqsave code ppIn the host system have already turned on kernel symbols by becoming root and doing codeecho gt proc sys kernel kptr restrict code ppHow do get the containerized version to work properly and show debugging symbols,NULL 58170,8253584,237357,Popular Question,NULL,NULL,0,NULL,NULL 58171,1314633,1306757,Editor Teacher,NULL,NULL,0,NULL,NULL 58172,666885,733656,NULL,NULL,NULL,0,NULL,NULL 58173,114199,288424,Yearling Notable Question Nice Question Good Answer Popular Question Popular Question Necromancer Famous Question Notable Question Good Question Enthusiast Notable Question Yearling Notable Question Popular Question Nice Question Popular Question Nice Question Nice Question Popular Question Popular Question Great Answer Civic Duty Yearling Nice Answer Notable Question Notable Question Nice Answer Custodian Good Question,NULL,NULL,0,NULL,NULL 58174,171620,1238,NULL,NULL,NULL,0,NULL,NULL 58175,378974,394994,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58176,513176,832207,NULL,NULL,NULL,0,NULL,NULL 58177,47024,1096566,Commentator,NULL,NULL,0,NULL,NULL 58178,739552,483599,NULL,NULL,NULL,0,NULL,NULL 58179,1501927,410,Good Answer Yearling Good Question Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58180,77881,104911,Excavator,NULL,NULL,0,NULL,NULL 58181,20650,542995,Announcer Caucus Constituent Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 58182,134235,1026725,NULL,NULL,NULL,0,NULL,NULL 58183,276400,619860,Autobiographer Famous Question Famous Question Yearling Nice Question Necromancer Nice Answer Enlightened Cleanup Nice Answer Good Question Caucus Nice Question Good Answer Yearling Custodian Necromancer Necromancer Fanatic Great Answer Famous Question Yearling Necromancer Nice Answer Necromancer Good Answer Necromancer Suffrage Nice Answer Nice Answer Civic Duty Vox Populi Electorate java Nice Answer,NULL,NULL,0,NULL,NULL 58184,165400,1261841,NULL,NULL,NULL,0,NULL,NULL 58185,273995,1036812,Yearling Famous Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58186,950059,696642,NULL,NULL,NULL,0,NULL,NULL 58187,405930,349582,Nice Answer Yearling Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 58188,279750,311055,Nice Answer,NULL,NULL,0,NULL,NULL 58189,381856,710827,Good Question Popular Question,NULL,NULL,0,NULL,NULL 58190,91072,1269782,NULL,NULL,NULL,0,NULL,NULL 58191,614505,903072,NULL,NULL,NULL,0,NULL,NULL 58192,159673,966146,Commentator Yearling Popular Question Custodian Citizen Patrol Custodian Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 58193,100714,429369,Nice Answer,NULL,NULL,0,NULL,NULL 58194,408899,482721,NULL,NULL,NULL,0,NULL,NULL 58195,126052,1526636,NULL,NULL,NULL,0,NULL,NULL 58196,116374,911245,NULL,NULL,NULL,0,NULL,NULL 58197,83239,41596,Good Answer Popular Question Guru Good Answer Notable Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Question Good Answer Famous Question Nice Answer Enlightened Great Answer Good Answer Guru Yearling Famous Question Nice Answer Guru Nice Answer Good Answer Generalist Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened sql Nice Answer Popular Question Nice Answer Notable Question Yearling Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58198,341596,1198581,NULL,NULL,NULL,0,NULL,NULL 58199,202447,1241678,NULL,NULL,NULL,0,NULL,NULL 58200,570074,479704,Necromancer Nice Answer Yearling Student Scholar Good Answer Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 58201,184526,612960,NULL,NULL,NULL,0,NULL,NULL 58202,152479,243942,Yearling Good Answer Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58203,29936,19753,Yearling Popular Question Notable Question Yearling Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 58204,199782,472158,NULL,NULL,NULL,0,NULL,NULL 58205,3640205,1561249,Notable Question,NULL,NULL,0,NULL,NULL 58206,660933,1533205,NULL,NULL,NULL,0,NULL,NULL 58207,121923,968988,Necromancer Nice Answer Notable Question Inquisitive Nice Answer Necromancer Autobiographer Notable Question Yearling Popular Question Notable Question Caucus Constituent Nice Answer Nice Answer Necromancer Popular Question Popular Question Nice Question Nice Answer Notable Question java Caucus Necromancer Good Answer Announcer Nice Question Popular Question Good Answer Yearling Documentation User Good Answer Good Answer Popular Question Good Answer Popular Question Popular Question Popular Question Necromancer Yearling,NULL,pre codegit clone https username password com username repository git code prepThis way worked for me from github repository pp strongEdit based on Michael Scharf comment strong ppYou can leave out the password so that it won be logged your bash history file ppre codegit clone https username com username repository git code prepIt will prompt you for your password you can also type space at the beginning of the line so that linux won store the command in history,0,NULL,NULL 58208,1384280,844177,Popular Question Nice Answer Nice Question Popular Question Popular Question Yearling Famous Question Popular Question Nice Question Famous Question Popular Question Nice Answer Notable Question Notable Question Yearling Popular Question Nice Answer Notable Question Famous Question Famous Question Popular Question Yearling Popular Question Nice Answer,NULL,NULL,1,Reading hexadecimal Unicode String from file and turn it into Java String java utf utf pI am writing currently little parser for JSON documents UTF characters can be represented as code u0628 code ppHow can turn the string code u0628 code into real Java character,NULL 58209,161904,1055920,NULL,NULL,NULL,0,NULL,NULL 58210,310949,1266768,Yearling Notable Question Popular Question Popular Question Popular Question Inquisitive Caucus Constituent Good Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 58211,232694,708106,NULL,NULL,NULL,0,NULL,NULL 58212,2390726,838024,NULL,NULL,NULL,0,NULL,NULL 58213,38895,838024,NULL,NULL,NULL,0,NULL,NULL 58214,189305,1243586,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58215,1946699,1243586,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58216,205130,104080,Notable Question Yearling Popular Question Nice Answer Enlightened Yearling Nice Question Notable Question Notable Question Inquisitive Civic Duty Great Question Popular Question Yearling Popular Question Popular Question Yearling Nice Question Good Question Favorite Question Famous Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 58217,236211,699134,NULL,NULL,NULL,0,NULL,NULL 58218,616392,127839,Caucus,NULL,NULL,0,NULL,NULL 58219,1177692,1134912,NULL,NULL,NULL,0,NULL,NULL 58220,216336,105194,Yearling Popular Question Good Answer Necromancer Nice Answer Yearling Curious Yearling Necromancer Custodian Popular Question Announcer Yearling Caucus Yearling Popular Question Popular Question Nice Answer Good Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58221,854729,281102,Supporter Necromancer Yearling Nice Answer Revival Yearling Necromancer Revival Necromancer Nice Answer Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 58222,3165981,1035200,Scholar Editor,NULL,NULL,0,NULL,NULL 58223,39222,212760,NULL,NULL,NULL,0,NULL,NULL 58224,9279126,212760,NULL,NULL,NULL,0,NULL,NULL 58225,95056,1201879,NULL,NULL,NULL,0,NULL,NULL 58226,1448875,1070450,NULL,NULL,NULL,0,NULL,NULL 58227,31558,633969,Popular Question Nice Question Notable Question Popular Question Organizer Notable Question Explainer Custodian Custodian Suffrage Vox Populi Yearling Caucus Electorate Custodian Constituent Reviewer Reviewer Deputy Steward Popular Question Yearling Notable Question Revival Notable Question Necromancer Caucus Custodian Documentation User Census Yearling Necromancer Caucus Constituent Nice Question Nice Answer Popular Question Tumbleweed Yearling Steward Fanatic,NULL,NULL,0,NULL,NULL 58228,322628,1379928,NULL,NULL,NULL,0,NULL,NULL 58229,423434,99175,Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58230,113327,99582,Good Question Yearling Good Answer Notable Question Excavator Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 58231,2999351,214086,Popular Question,NULL,NULL,0,NULL,NULL 58232,58028,290420,NULL,NULL,NULL,0,NULL,NULL 58233,14798,591174,Nice Answer Yearling Notable Question Necromancer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 58234,38488,203861,Nice Answer Yearling Good Answer Yearling Nice Answer Commentator Yearling Notable Question Good Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 58235,1094607,886865,NULL,NULL,NULL,0,NULL,NULL 58236,1515438,888100,NULL,NULL,NULL,0,NULL,NULL 58237,131349,1002725,NULL,NULL,NULL,0,NULL,NULL 58238,163920,1451305,NULL,NULL,NULL,0,NULL,NULL 58239,885521,988402,NULL,NULL,NULL,0,NULL,NULL 58240,127287,1335192,Teacher,NULL,NULL,0,NULL,NULL 58241,307423,151299,Good Answer Yearling Nice Answer Necromancer Notable Question Guru Good Answer Announcer Caucus Nice Answer Yearling Nice Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 58242,117537,648140,NULL,NULL,NULL,0,NULL,NULL 58243,180641,1052056,NULL,NULL,NULL,0,NULL,NULL 58244,132214,1177918,Yearling Citizen Patrol Commentator Autobiographer Editor Revival,NULL,NULL,0,NULL,NULL 58245,1178256,567191,Famous Question,NULL,NULL,0,NULL,NULL 58246,694961,364814,NULL,NULL,NULL,0,NULL,NULL 58247,236741,486441,NULL,NULL,NULL,0,NULL,NULL 58248,8812,193990,NULL,NULL,NULL,0,NULL,NULL 58249,67547,252951,Yearling,NULL,NULL,0,NULL,NULL 58250,87238,823948,NULL,NULL,NULL,0,NULL,NULL 58251,1529314,1531221,NULL,NULL,NULL,0,NULL,NULL 58252,12366,16824,NULL,NULL,NULL,0,NULL,NULL 58253,42589,1159558,Yearling Custodian Necromancer Caucus Yearling Citizen Patrol Necromancer Announcer Civic Duty Nice Answer Scholar Custodian Yearling Great Answer Revival Nice Answer,NULL,NULL,0,NULL,NULL 58254,274237,460748,NULL,NULL,NULL,0,NULL,NULL 58255,78482,1453621,Editor Census Curious,NULL,NULL,0,NULL,NULL 58256,6812389,408870,Good Question Yearling Popular Question Promoter Popular Question Benefactor Yearling Famous Question Civic Duty Famous Question Popular Question Custodian Yearling Notable Question Documentation User Notable Question Popular Question Popular Question Great Answer Popular Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 58257,485932,408870,Good Question Yearling Popular Question Promoter Popular Question Benefactor Yearling Famous Question Civic Duty Famous Question Popular Question Custodian Yearling Notable Question Documentation User Notable Question Popular Question Popular Question Great Answer Popular Question Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 58258,134197,199188,NULL,NULL,NULL,0,NULL,NULL 58259,219309,1494961,Informed Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 58260,303673,1299362,Yearling Self-Learner Custodian Custodian Custodian Citizen Patrol Yearling Popular Question Popular Question Necromancer Announcer Inquisitive Yearling Informed Necromancer Nice Answer Popular Question Announcer Notable Question Good Answer Nice Answer Notable Question Enthusiast Autobiographer Necromancer Yearling Popular Question Popular Question Popular Question Popular Question Custodian Popular Question Popular Question Popular Question Excavator Popular Question Notable Question Notable Question Popular Question Revival Necromancer Revival Quorum Popular Question Popular Question Revival Popular Question Popular Question Necromancer Popular Question Notable Question ruby-on-rails Popular Question Notable Question Nice Question Notable Question Popular Question Announcer Nice Question Popular Question Announcer Nice Answer Nice Answer Yearling Nice Answer Popular Question Necromancer Announcer Nice Question Nice Answer Popular Question Famous Question Electorate Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58261,135503,1394829,Informed Autobiographer Editor Commentator Teacher Supporter Suffrage,NULL,NULL,0,NULL,NULL 58262,10873,786379,NULL,NULL,NULL,0,NULL,NULL 58263,108040,474857,Popular Question,NULL,NULL,0,NULL,NULL 58264,102676,601578,NULL,NULL,NULL,0,NULL,NULL 58265,441917,420126,NULL,NULL,NULL,0,NULL,NULL 58266,18811,901376,Popular Question Nice Answer Inquisitive Nice Question Popular Question Yearling Popular Question Notable Question Necromancer Nice Answer Caucus Constituent Excavator Notable Question Necromancer Custodian Notable Question Popular Question Informed Notable Question Nice Answer Benefactor Popular Question Popular Question Yearling Popular Question Notable Question Custodian Popular Question Popular Question Good Question Notable Question Necromancer Notable Question Popular Question Nice Answer Popular Question Yearling Popular Question Popular Question Popular Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 58267,156562,236090,Yearling Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 58268,592427,1149002,NULL,NULL,NULL,0,NULL,NULL 58269,1025815,620154,Famous Question Notable Question Famous Question Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 58270,72200,167422,Yearling Notable Question Great Answer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 58271,470099,462014,NULL,NULL,NULL,0,NULL,NULL 58272,261981,1176543,Enthusiast Popular Question Nice Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 58273,353267,1370092,Yearling Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Caucus Self-Learner Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58274,164614,1272658,NULL,NULL,NULL,0,NULL,NULL 58275,286654,622109,Yearling Famous Question Popular Question Popular Question Popular Question Critic Necromancer,NULL,NULL,0,NULL,NULL 58276,4258692,136659,Notable Question Good Question Yearling Favorite Question Nice Question Notable Question Famous Question Famous Question Popular Question Yearling Notable Question Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 58277,17541,1330429,NULL,NULL,NULL,0,NULL,NULL 58278,101283,823581,NULL,NULL,NULL,0,NULL,NULL 58279,571899,1583,visual-studio Good Answer Great Answer Good Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer Nice Answer Guru Guru Nice Answer Nice Answer Enlightened Good Answer constructor Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Guru Populist Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Good Question Nice Answer Nice Answer Yearling Guru Great Answer Guru Great Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Guru Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Good Answer Caucus Nice Answer Nice Answer Enlightened Constituent Nice Answer Guru Nice Answer Nice Answer Nice Answer web-services Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Question Census c++ Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer xhtml Nice Answer Enlightened events Good Answer Good Answer Nice Answer Enlightened Good Answer Populist Guru Good Answer character-encoding Nice Answer Nice Answer Enlightened Guru xml Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Favorite Question Good Answer Nice Answer Enlightened Caucus Guru Great Answer Good Answer Nice Answer Constituent Guru Good Answer Guru Famous Question Good Answer Nice Answer Enlightened Good Answer Yearling Good Answer parameters Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Custodian Nice Answer Great Answer Nice Answer Good Answer Good Answer Announcer Good Answer json Documentation User sql-server-2005 Nice Answer Enlightened Nice Answer Good Answer casting Guru Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Not a Robot Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Notable Question Great Answer Guru Notable Question Good Answer visual-studio-2010 Nice Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Populist Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru Great Answer Nice Answer Enlightened Announcer Nice Answer Notable Question Guru Nice Answer Caucus Guru Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Great Answer Guru Good Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Guru Guru Good Answer Nice Answer csv Good Question Guru Nice Answer Nice Answer Enlightened Great Answer Good Answer Guru Guru Nice Answer Good Answer Enlightened Guru Yearling Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Guru Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened unit-testing Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer,NULL,Best way to get identity of inserted row sql sql server tsql pWhat is the best way to get codeIDENTITY code of inserted row ppI know about code code and codeIDENT CURRENT code and codeSCOPE IDENTITY code but don understand the pros and cons attached to each ppCan someone please explain the differences and when should be using each How is that any better than the other answers also why are you not posting this as an answer instead of comment Please write up complete answer and explain why this is better option than the posted ones if version specific say so Best way to get identity of inserted row sql sql server tsql pWhat is the best way to get codeIDENTITY code of inserted row ppI know about code code and codeIDENT CURRENT code and codeSCOPE IDENTITY code but don understand the pros and cons attached to each ppCan someone please explain the differences and when should be using each then edit that in You can do that you know See when that answer was posted That predates the OUTPUT clause in SQL Server pIt is term used in href http en wikipedia org wiki Dynamic programming language dynamic languages that do not have href http en wikipedia org wiki Strong typing strong typing ppThe idea is that you don need type in order to invoke an existing method on an object if method is defined on it you can invoke it ppThe name comes from the phrase If it looks like duck and quacks like duck it duck pp href http en wikipedia org wiki Duck typing Wikipedia has much more information it isn Totally different things Monkey patching is about changing the program instance as it is being run,0,NULL,NULL 58280,1628,347063,Guru Good Answer zend-framework2 Populist Guru Enlightened Necromancer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Announcer Caucus Constituent Great Answer Nice Answer Enlightened Great Answer Enlightened Announcer Nice Answer Enlightened symfony Yearling Nice Answer Great Answer Good Answer Good Answer Enlightened Good Answer Yearling Announcer Guru Good Answer Guru Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58281,137906,874913,Informed,NULL,NULL,0,NULL,NULL 58282,21913,10636,Census Famous Question,NULL,NULL,0,NULL,NULL 58283,130699,1282029,NULL,NULL,NULL,0,NULL,NULL 58284,219781,620427,NULL,NULL,NULL,0,NULL,NULL 58285,167218,1329670,Scholar,NULL,NULL,0,NULL,NULL 58286,1513446,704083,NULL,NULL,NULL,0,NULL,NULL 58287,262778,471554,Teacher Supporter Revival Necromancer,NULL,NULL,0,NULL,NULL 58288,24122,850593,NULL,NULL,NULL,0,NULL,NULL 58289,582627,773339,Necromancer Nice Answer Critic Commentator Yearling Scholar Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 58290,197600,1007831,Notable Question Notable Question Nice Question Notable Question Necromancer Yearling Necromancer Popular Question Notable Question Notable Question Necromancer Self-Learner Popular Question Famous Question Famous Question Yearling Nice Question Famous Question Good Question Nice Answer Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 58291,1195632,1007831,Notable Question Notable Question Nice Question Notable Question Necromancer Yearling Necromancer Popular Question Notable Question Notable Question Necromancer Self-Learner Popular Question Famous Question Famous Question Yearling Nice Question Famous Question Good Question Nice Answer Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 58292,62752,107552,Nice Answer,NULL,NULL,0,NULL,NULL 58293,117688,474374,Popular Question Curious Nice Answer Enlightened Census,NULL,strongassertEquals strong method has an undocumented param canonicalize If you use em canonicalize true em the arrays will be sorted by PHPUnit arrays comparator itself ppCode example ppre codeclass ArraysTest extends PHPUnit Framework TestCase public function testEquality obj1 this gt getObject obj2 this gt getObject obj3 this gt getObject array1 obj1 obj2 obj3 array2 obj2 obj1 obj3 Pass this gt assertEquals array1 array2 canonicalize true 10 true Fail this gt assertEquals array1 array2 Default behaviour private function getObject value result new stdclass result gt property value return result code prepArrays comparator source code at latest version of PHPUnit href https github com sebastianbergmann comparator blob master src ArrayComparator php L43 rel noreferrer https github com sebastianbergmann comparator blob master src ArrayComparator php L43 You don point out that this solution will discard the keys,0,NULL,NULL 58294,136646,1091929,Revival Necromancer,NULL,NULL,0,NULL,NULL 58295,292417,764897,Famous Question Curious Revival Revival Necromancer Yearling Self-Learner Nice Answer Caucus Good Question Promoter Civic Duty Benefactor Nice Answer Documentation User Yearling Nice Answer Enlightened Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 58296,305418,496625,Famous Question Nice Answer Nice Answer Enlightened Famous Question Notable Question,NULL,NULL,0,NULL,NULL 58297,226171,1289168,Informed,NULL,NULL,0,NULL,NULL 58298,261931,687432,NULL,NULL,NULL,0,NULL,NULL 58299,236476,900745,NULL,NULL,NULL,0,NULL,NULL 58300,3884124,1559671,Popular Question,NULL,NULL,0,NULL,NULL 58301,33604,4417,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 58302,3759092,948144,NULL,NULL,NULL,0,NULL,NULL 58303,340248,948144,NULL,NULL,NULL,0,NULL,NULL 58304,683170,970778,NULL,NULL,NULL,0,NULL,NULL 58305,11512,1196465,Popular Question Popular Question Notable Question Critic Excavator Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 58306,104850,1528046,Popular Question Famous Question Notable Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 58307,22086,1528046,Popular Question Famous Question Notable Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 58308,1277463,1351133,Curious Popular Question Notable Question Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 58309,1532799,53538,Yearling Necromancer Proofreader Good Answer Nice Answer Nice Answer Stellar Question Popular Question Revival Notable Question Good Answer Nice Answer Necromancer Popular Question Famous Question Yearling Custodian Nice Question Revival Necromancer Notable Question Nice Answer Cleanup Favorite Question javascript Famous Question Guru Nice Question Guru Necromancer Popular Question Revival Nice Answer Necromancer Nice Answer Yearling Census Necromancer Pundit Nice Answer Nice Answer Necromancer Necromancer java Popular Question Popular Question Notable Question,NULL,How to convert DOM node list to an array in Javascript javascript html dom pI have Javascript function that accepts list of HTML nodes but it expects Javascript array it runs some Array methods on that and want to feed it the output of codeDocument getElementsByTagName code that returns DOM node list ppInitially thought of using something simple like ppre codeArray prototype slice call list code prepAnd that works fine in all browsers except of course Internet Explorer which returns the error JScript object expected as apparently the DOM node list returned by codeDocument getElement code methods is not JScript object enough to be the target of function call ppCaveats don mind writing Internet Explorer specific code but not allowed to use any Javascript libraries such as JQuery because writing widget to be embedded into 3rd party web site and cannot load external libraries that will create conflict for the clients ppMy last ditch effort is to iterate over the DOM node list and create an array myself but is there nicer way to do that fast forward to 2016 and everyone is still uptight about the size that javascript libraries add to the page Granted JQuery minified and gzipped is 30KB its still 30KB too much just to transform node list,0,NULL,NULL 58310,890067,581530,Revival Necromancer Yearling Nice Answer Popular Question Yearling Good Answer Yearling Yearling Notable Question Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 58311,1037374,527106,Custodian Popular Question Good Question Popular Question Yearling Good Question Popular Question Popular Question Notable Question Popular Question Notable Question Self-Learner Notable Question Nice Question Famous Question Yearling Popular Question Famous Question Good Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 58312,121911,643789,NULL,NULL,NULL,0,NULL,NULL 58313,28575,747250,NULL,NULL,NULL,0,NULL,NULL 58314,210296,1193230,Supporter Necromancer,NULL,NULL,0,NULL,NULL 58315,261932,273594,Revival Nice Question Popular Question Notable Question Popular Question Popular Question Self-Learner Nice Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Civic Duty Census Notable Question Caucus Inquisitive Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58316,1071703,934694,NULL,NULL,NULL,0,NULL,NULL 58317,626545,1317575,Yearling Nice Answer Necromancer Tag Editor Caucus Census Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 58318,735892,833561,NULL,NULL,NULL,0,NULL,NULL 58319,729537,992765,Populist Popular Question Good Answer Notable Question Popular Question Popular Question Yearling Notable Question Famous Question Popular Question Yearling Popular Question Nice Question Notable Question Revival Notable Question Yearling,NULL,NULL,0,NULL,NULL 58320,91853,65737,Teacher,NULL,NULL,0,NULL,NULL 58321,357750,1398110,Custodian Custodian Nice Answer Yearling python Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58322,31632,1080352,Yearling,NULL,NULL,0,NULL,NULL 58323,300823,186607,Yearling Autobiographer Yearling Caucus Editor Caucus Good Answer,NULL,NULL,0,NULL,NULL 58324,726440,210905,Excavator Taxonomist Nice Answer Enlightened Cleanup Great Answer Nice Answer Enlightened scala Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Custodian Custodian Self-Learner Custodian Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Caucus Documentation User Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 58325,639951,550252,Nice Question Informed Famous Question Famous Question Popular Question Yearling Critic Nice Question Good Question,NULL,NULL,0,NULL,NULL 58326,1599980,5090,NULL,NULL,NULL,0,NULL,NULL 58327,23474,199624,NULL,NULL,NULL,0,NULL,NULL 58328,45690,61628,Nice Question Yearling Popular Question Notable Question Good Question Popular Question Popular Question Nice Question Famous Question Popular Question Yearling Famous Question Caucus Notable Question Yearling Famous Question Good Question Good Question,NULL,NULL,0,NULL,NULL 58329,124714,279089,Civic Duty Yearling Popular Question Citizen Patrol Promoter Benefactor Popular Question Caucus Yearling Nice Answer Enlightened Yearling Good Answer Nice Question Popular Question Famous Question,NULL,h2Django lt h2pThis gives you the property names for all related objects ppre codelinks rel get accessor name for rel in meta get all related objects code prepYou can then use something like this to get all related objects ppre codefor link in links objects getattr link all for object in objects do something with related object instance code prepI spent while trying to figure this out so could implement kind of Observer Pattern onone of my models Hope it helpful ph2Django h2pUse code meta get fields code href https docs djangoproject com en 10 ref models meta django db models options Options get fields rel nofollow noreferrer https docs djangoproject com en 10 ref models meta django db models options Options get fields see reverse in the code get fields code source also Thanks for the edit surprised this workaround remained compatible with Django as long as it did,0,NULL,NULL 58330,1182572,717966,NULL,NULL,NULL,0,NULL,NULL 58331,157484,489072,NULL,NULL,NULL,0,NULL,NULL 58332,298590,957899,NULL,NULL,NULL,0,NULL,NULL 58333,345290,1044869,Custodian Nice Question Popular Question Yearling Famous Question Caucus Constituent Documentation User Yearling Caucus Popular Question,NULL,pThis question has been answered for some time now but was quite surprised that most of the answers say what OCaml features are missing in this is definitely good to know if you want to port existing OCaml programs to which is probably the motivation of most of the referenced articles However there are many features that make different language not just limited version of OCaml for NET Here is couple of things that are added in pulli strongUnits of measure strong that allow you to type check code dealing with numerical calculations lili strongMeta programming strong using quotations which makes it possible to use LINQ in and is also essential for promissing projects like the WebSharper platform lili strongActive patterns strong for creating abstractions for functional data types and generally very useful feature for more complicated pattern matching applications lili strongComputation expressions strong which is language feature behind strongasynchronous workflows strong library for asynchronous web service GUI programming lili strong NET compatible object system strong that makes it possible to fully interoperate with the NET platform OCaml also has support for objects but different there are of course some benefits in both of the systems lili strongOverloaded operators strong As far as know OCaml doesn have overloaded operators in you can use code code for all numeric types as well as your types that support it li ulpAnd honestly think that it is also worth mentioning the Visual Studio IDE This is not part of the language but it really improves the user experience IntelliSense support in Visual Studio is really good ppIf you look at the list there are many things that largely contributed to the popularity of so it much more than just OCaml without functors is definitely based on OCaml and takes ideas from other languages such as Haskell and shares many aspects with them however there is also lot of other things guess that without things like asynchronous workflows NET style OO and meta programming the Microsoft Developer Division would never include in Visual Studio 2010 think Type Providers should be added to list,0,NULL,NULL 58334,399050,892369,Citizen Patrol Organizer Custodian Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 58335,291736,1268771,Promoter Benefactor Yearling Nice Answer Necromancer Guru Good Answer Good Answer Good Answer Guru Curious Yearling Good Answer Popular Question Good Answer Nice Question Notable Question Yearling Good Question Necromancer Famous Question ruby-on-rails,NULL,NULL,0,NULL,NULL 58336,193673,928988,NULL,NULL,NULL,0,NULL,NULL 58337,47266,138584,Nice Question Famous Question Nice Question Yearling Good Answer Nice Question Favorite Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 58338,3042,823070,Popular Question Supporter Teacher Yearling Commentator Yearling Mortarboard,NULL,NULL,0,NULL,NULL 58339,2254003,823070,Popular Question Supporter Teacher Yearling Commentator Yearling Mortarboard,NULL,NULL,0,NULL,NULL 58340,86195,304674,Good Question Popular Question Popular Question Yearling Nice Question Popular Question Good Question Popular Question Popular Question Notable Question Nice Question Favorite Question Famous Question Yearling Notable Question Famous Question Famous Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 58341,1726756,304674,Good Question Popular Question Popular Question Yearling Nice Question Popular Question Good Question Popular Question Popular Question Notable Question Nice Question Favorite Question Famous Question Yearling Notable Question Famous Question Famous Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 58342,253462,7674,Nice Answer Enlightened Yearling Caucus Caucus Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 58343,293629,1037329,Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 58344,61299,508831,Great Answer Nice Answer Yearling Good Answer Announcer Good Answer Necromancer Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 58345,580355,733120,NULL,NULL,NULL,0,NULL,NULL 58346,2101417,1311293,Notable Question,NULL,NULL,0,NULL,NULL 58347,95110,466399,NULL,NULL,NULL,0,NULL,NULL 58348,906958,1084731,NULL,NULL,NULL,0,NULL,NULL 58349,404675,236406,Notable Question,NULL,NULL,0,NULL,NULL 58350,736395,504184,Popular Question Popular Question Custodian Necromancer Nice Question Nice Answer Yearling Necromancer Necromancer Popular Question Popular Question Documentation User Nice Answer Yearling Notable Question Necromancer Popular Question Necromancer Promoter Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 58351,96220,960820,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58352,10156,646480,NULL,NULL,NULL,0,NULL,NULL 58353,50013,1411083,Nice Question Popular Question Necromancer Yearling Famous Question Nice Answer Good Answer Popular Question Nice Answer Yearling Yearling Good Answer Popular Question Popular Question,NULL,pThis thread is old but wanted to do same things with the href https github com mikeal request rel noreferrer https github com mikeal request package ppHere working example ppre codevar fs require fs var request require request Or with cookies var request require request defaults jar true request get url https someurl somefile torrent encoding binary function err response body fs writeFile tmp test torrent body binary function err if err console log err else console log The file was saved code pre confirm you should now set encoding null,0,NULL,NULL 58354,194473,1354477,NULL,NULL,NULL,0,NULL,NULL 58355,47494,587407,Yearling Notable Question Nice Answer Nice Answer Enlightened Tumbleweed Popular Question Great Answer Revival Necromancer Good Question Necromancer Nice Answer Popular Question Popular Question Caucus Popular Question Nice Question Yearling Notable Question Notable Question Revival Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Notable Question Famous Question Popular Question Good Answer Notable Question Announcer Necromancer Nice Answer Famous Question Popular Question Announcer Good Question Inquisitive Yearling Revival Notable Question Good Answer Electorate Necromancer Guru Popular Question Notable Question Famous Question,NULL,NULL,1,In CSS which fonts are selected by generic font family on common browsers OS css browser fonts operating system pIn CSS which fonts are selected by generic font family on common browsers OS ppGoogled as much as possible couldn find an answer This href https css tricks com sans serif rel nofollow article mention Helvetica on Mac for codesans serif code This href http www cssfontstack com rel nofollow page provides font availability by OS ppSo which fonts are selected by generic codefont family code on common browsers OS pulliserif lilisans serif lilicursive lilifantasy lilimonospace li ul,NULL 58356,365129,287141,Caucus Informed Documentation User Census,NULL,NULL,0,NULL,NULL 58357,392612,180691,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58358,213366,789307,Popular Question,NULL,NULL,0,NULL,NULL 58359,48195,689094,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 58360,211181,205508,Nice Answer Nice Answer Revival Good Answer Custodian Good Answer Informed Great Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Custodian Nice Answer Enlightened Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 58361,110878,578148,NULL,NULL,NULL,0,NULL,NULL 58362,20742,237090,Yearling Yearling Necromancer Caucus Yearling Nice Answer Necromancer Yearling Good Answer Good Answer Yearling Custodian Necromancer,NULL,NULL,0,NULL,NULL 58363,115576,337770,NULL,NULL,NULL,0,NULL,NULL 58364,5131,804972,NULL,NULL,NULL,0,NULL,NULL 58365,41747,1210533,NULL,NULL,NULL,0,NULL,NULL 58366,2107697,430994,NULL,NULL,NULL,0,NULL,NULL 58367,80984,1172435,NULL,NULL,NULL,0,NULL,NULL 58368,98977,553628,NULL,NULL,NULL,0,NULL,NULL 58369,638574,1562234,Yearling Informed Good Question Caucus Yearling Famous Question Nice Question Popular Question Famous Question Nice Answer Nice Question Yearling Popular Question Nice Question Popular Question Notable Question Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 58370,225756,347554,NULL,NULL,NULL,0,NULL,NULL 58371,1348737,801031,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58372,1096953,987666,NULL,NULL,NULL,0,NULL,NULL 58373,94147,2210,Yearling Student,NULL,NULL,0,NULL,NULL 58374,507666,1090476,NULL,NULL,NULL,0,NULL,NULL 58375,1084075,282501,Tumbleweed Informed Autobiographer Student Supporter Custodian Census,NULL,NULL,0,NULL,NULL 58376,8788,1213602,NULL,NULL,NULL,0,NULL,NULL 58377,222991,1107724,NULL,NULL,NULL,0,NULL,NULL 58378,367481,1014959,NULL,NULL,NULL,0,NULL,NULL 58379,491744,1209037,NULL,NULL,NULL,0,NULL,NULL 58380,360277,628989,NULL,NULL,NULL,0,NULL,NULL 58381,5110,530769,NULL,NULL,NULL,0,NULL,NULL 58382,1508808,17212,Popular Question Popular Question Yearling Great Question Nice Question Yearling Famous Question Caucus Yearling,NULL,NULL,0,NULL,NULL 58383,423196,993214,Revival Notable Question,NULL,NULL,0,NULL,NULL 58384,9468,830235,NULL,NULL,NULL,0,NULL,NULL 58385,191,1420705,NULL,NULL,NULL,0,NULL,NULL 58386,137502,443706,NULL,NULL,NULL,0,NULL,NULL 58387,816981,737885,Tumbleweed Announcer,NULL,NULL,0,NULL,NULL 58388,501941,1130131,Self-Learner Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 58389,622131,1207492,NULL,NULL,NULL,0,NULL,NULL 58390,356385,1288301,Notable Question,NULL,NULL,0,NULL,NULL 58391,125811,550195,NULL,NULL,NULL,0,NULL,NULL 58392,893574,1553424,Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58393,325363,741521,NULL,NULL,NULL,0,NULL,NULL 58394,21390,954292,Civic Duty Nice Question Yearling Announcer,NULL,NULL,0,NULL,NULL 58395,1192071,508722,NULL,NULL,NULL,0,NULL,NULL 58396,1519574,519450,NULL,NULL,NULL,0,NULL,NULL 58397,480776,887397,NULL,NULL,NULL,0,NULL,NULL 58398,183559,875821,NULL,NULL,NULL,0,NULL,NULL 58399,145618,909686,NULL,NULL,NULL,0,NULL,NULL 58400,201033,578642,Popular Question Yearling Notable Question Notable Question Popular Question Good Question Popular Question Popular Question Famous Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 58401,1229476,1420736,NULL,NULL,NULL,0,NULL,NULL 58402,259053,390213,NULL,NULL,NULL,0,NULL,NULL 58403,444211,737181,Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58404,7186147,737181,Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58405,255021,1247031,NULL,NULL,NULL,0,NULL,NULL 58406,2701081,639808,Popular Question Good Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58407,3881125,639808,Popular Question Good Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58408,121990,16912,Informed Census,NULL,NULL,0,NULL,NULL 58409,54969,932855,Custodian Citizen Patrol Custodian Critic Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58410,234560,98374,Notable Question Revival Notable Question Necromancer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58411,176579,1147973,NULL,NULL,NULL,0,NULL,NULL 58412,83147,611,Good Answer Notable Question Yearling Guru Nice Answer Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Guru Nice Answer Yearling Good Answer,NULL,pWe re talking about right Why on earth are we still using macros ppC inline functions give you the same speed as macro with the added benefit of type safety and parameter evaluation which avoids the issue that Rodney and dwj mentioned ppre codeinline const char const BoolToString bool return true false code prepAside from that have few other gripes particularly with the accepted answer ppre code this is used in not if you want to use printf instead include lt cstdio gt include lt stdio gt instead you should use the iostream libs include lt iostream gt not only is this include it totally unnecessary include lt stdarg gt Macros not type safe has side effects Use inline functions instead define BOOL STR true false inline const char const BoolToString bool return true false int main int argc char const argv bool alpha true printf that not printf BOOL STR alpha use the iostream functionality std cout lt lt BoolToString alpha return code prepCheers phrp Include whole boost lib for the sake of function this simple You ve got to be kidding Read the question it exactly what was requested,0,NULL,NULL 58413,860532,1541186,Student Scholar Citizen Patrol Commentator Critic Editor Informed,NULL,NULL,0,NULL,NULL 58414,10127,550115,NULL,NULL,NULL,0,NULL,NULL 58415,124534,13864,Necromancer,NULL,NULL,0,NULL,NULL 58416,478441,1260650,NULL,NULL,NULL,0,NULL,NULL 58417,466479,1216246,Self-Learner Yearling Popular Question Popular Question Caucus Constituent Yearling Popular Question Popular Question Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 58418,200966,20760,Yearling Yearling Great Answer Populist Yearling,NULL,NULL,0,NULL,NULL 58419,1027778,758088,Yearling Excavator Documentation Beta Documentation Pioneer Popular Question Census Yearling Revival Necromancer Documentation User Popular Question Popular Question Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58420,99526,197024,NULL,NULL,NULL,0,NULL,NULL 58421,55116,1117027,NULL,NULL,NULL,0,NULL,NULL 58422,58093,1203648,NULL,NULL,NULL,0,NULL,NULL 58423,114774,119198,Notable Question Good Question Famous Question Nice Question Popular Question Notable Question Notable Question Famous Question Good Question Notable Question Popular Question Notable Question Notable Question Great Question Yearling Notable Question Notable Question Proofreader Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Great Question Notable Question Favorite Question Famous Question Popular Question Famous Question Good Question Caucus Famous Question Notable Question Stellar Question Custodian Custodian Custodian Custodian Citizen Patrol Custodian Reviewer Custodian Necromancer Notable Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Yearling Peer Pressure Popular Question Good Question Nice Question Notable Question Good Question Popular Question Famous Question Notable Question Famous Question Popular Question Good Question Good Question Famous Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Favorite Question Favorite Question Favorite Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Great Question Notable Question Great Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 58424,101179,818491,Notable Question,NULL,NULL,0,NULL,NULL 58425,283484,1427087,NULL,NULL,NULL,0,NULL,NULL 58426,201926,1014818,Tumbleweed,NULL,NULL,0,NULL,NULL 58427,107868,442652,Yearling Guru Enthusiast,NULL,NULL,0,NULL,NULL 58428,1379498,576138,Curious Teacher Revival Popular Question Caucus Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 58429,35717,659675,Supporter,NULL,NULL,0,NULL,NULL 58430,124962,160837,NULL,NULL,NULL,0,NULL,NULL 58431,691374,160823,Famous Question Famous Question Notable Question Notable Question Famous Question Nice Answer Enlightened Notable Question Nice Question Notable Question Notable Question Nice Answer Famous Question Popular Question asp.net Necromancer .net Nice Question Good Question Favorite Question Guru Notable Question Popular Question Good Question Notable Question Yearling Nice Answer Enlightened Notable Question Nice Answer Popular Question Nice Question Caucus Popular Question Famous Question Popular Question Good Answer Popular Question Notable Question Favorite Question Famous Question Announcer Notable Question Good Question Good Answer Popular Question Nice Question Revival Notable Question Yearling Notable Question Nice Question Nice Question Notable Question Popular Question Popular Question Nice Question Nice Question Nice Answer Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Nice Answer Announcer Notable Question Nice Answer Popular Question Great Question Famous Question Great Answer Yearling Necromancer Nice Question Notable Question Notable Question Famous Question Taxonomist,NULL,NULL,0,NULL,NULL 58432,286054,1413381,Popular Question,NULL,NULL,0,NULL,NULL 58433,828831,692493,Caucus Census Custodian Caucus Custodian Custodian Citizen Patrol Tumbleweed,NULL,NULL,0,NULL,NULL 58434,85212,506606,NULL,NULL,NULL,0,NULL,NULL 58435,238526,1387267,NULL,NULL,NULL,0,NULL,NULL 58436,186911,905593,NULL,NULL,NULL,0,NULL,NULL 58437,12096,1179696,NULL,NULL,NULL,0,NULL,NULL 58438,10849,275019,Yearling Nice Answer Caucus php Yearling Necromancer Nice Answer Enlightened Necromancer Good Answer Custodian Yearling,NULL,pOK so within minutes after posting the question found the answer myself here href https github com isaacs npm issues 2119 issuecomment 5321857 https github com isaacs npm issues 2119 issuecomment 5321857 ppThe issue seems to be that npm is not that great with HTTPS over proxy Changing the registry URL from HTTPS to HTTP fixed it for me ppre codenpm config set registry http registry npmjs org code prepI still have to provide the proxy config through Authoxy in my case but everything works fine now ppSeems to be common issue but not well documented hope this answer here will make it easier for people to find if they run into this issue There one more wrinkle here that ve recently come across Some packages will call cache add spec package name url Presumably the tarball url comes via npm view which will be https even if you have set your registry to use http have not found solution to this yet Anyone else,0,NULL,NULL 58439,838283,901342,NULL,NULL,NULL,0,NULL,NULL 58440,318415,138834,NULL,NULL,NULL,0,NULL,NULL 58441,701523,531578,Yearling Popular Question Notable Question Revival Yearling Famous Question,NULL,NULL,0,NULL,NULL 58442,675060,479276,Popular Question c# Yearling Caucus Constituent Nice Answer Popular Question Caucus Constituent Notable Question Documentation User Yearling Caucus Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58443,318997,540300,NULL,NULL,NULL,0,NULL,NULL 58444,893276,1564064,Student Popular Question,NULL,NULL,0,NULL,NULL 58445,194599,1107630,Popular Question,NULL,NULL,0,NULL,NULL 58446,140203,789062,NULL,NULL,NULL,0,NULL,NULL 58447,439,1242853,Tumbleweed Scholar Student,NULL,NULL,0,NULL,NULL 58448,205361,274700,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 58449,2053661,384964,Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Nice Answer Notable Question Yearling Popular Question Popular Question Good Answer Popular Question Great Question Good Question Notable Question Notable Question Necromancer Notable Question Notable Question Yearling Famous Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 58450,82303,384964,Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Nice Answer Notable Question Yearling Popular Question Popular Question Good Answer Popular Question Great Question Good Question Notable Question Notable Question Necromancer Notable Question Notable Question Yearling Famous Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 58451,87399,1068183,NULL,NULL,NULL,0,NULL,NULL 58452,162238,457846,Autobiographer,NULL,NULL,0,NULL,NULL 58453,25865,64081,NULL,NULL,NULL,0,NULL,NULL 58454,235393,521554,Necromancer Good Answer Proofreader Necromancer Popular Question Custodian Custodian Custodian Custodian Custodian Quorum Popular Question Inquisitive Reviewer Caucus Yearling Popular Question Census Revival Revival Popular Question Announcer Revival c# Popular Question Documentation User Yearling Announcer Custodian Nice Answer Notable Question Popular Question Popular Question Great Answer Popular Question Tag Editor Unsung Hero Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58455,43382,1350739,Informed Teacher,NULL,NULL,0,NULL,NULL 58456,1838659,1350739,Informed Teacher,NULL,NULL,0,NULL,NULL 58457,1137098,1042503,Nice Answer Supporter Yearling Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 58458,35659,668562,Famous Question Nice Question Nice Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58459,583593,6903,Nice Answer Enlightened Guru Yearling Nice Answer Popular Question Nice Answer Enlightened Nice Answer Yearling Announcer Announcer Yearling,NULL,pSome browsers report the window height strikeincorrectly strike differently particularly mobile browsers which have different viewport concept sometimes use function to check several different values returning whichever is the greatest For example ppre codefunction documentHeight return Math max window innerHeight document body offsetHeight document documentElement clientHeight code prep strongEdit strong just looked at how jQuery does it and it does indeed use Math max and series of properties however the list it checks is slightly different to those in my example above and since usually trust the jQuery team to be better at this stuff than am here is the non jQuery jQuery solution if that makes any sense ppre codefunction documentHeight return Math max document documentElement clientHeight document body scrollHeight document documentElement scrollHeight document body offsetHeight document documentElement offsetHeight code pre Thanks Bit old now perhaps but maybe still valid useful Don tend to bother much about browser screen pixel dimensions these days all fluid stretchy and responsive More CSS3 and media queries than JavaScript jQuery,0,NULL,NULL 58460,233323,1373502,NULL,NULL,NULL,0,NULL,NULL 58461,316937,1427088,Editor Student Scholar,NULL,NULL,0,NULL,NULL 58462,886844,677688,Famous Question Necromancer Yearling Nice Question Scholar,NULL,NULL,0,NULL,NULL 58463,67494,275068,Student Yearling Scholar Commentator,NULL,pAs already noted by emgezzed em in his comment meanwhile there is good solution described in em href http kohsuke org 2011 12 01 polling must die triggering jenkins builds from git hook rel noreferrer Polling must die triggering Jenkins builds from Git hook em pulli pSet the Jenkins job build trigger to emPoll SCM em but do emnot em specify schedule lili pCreate GitHub post receive trigger to notify the URL ppre codehttp yourserver jenkins git notifyCommit url lt URL of the Git repository gt token lt get token from git to build remotely gt code pre lili pThis will trigger all builds that poll the specified Git repository lili pHowever polling actually checks whether anything has been pushed to the used branch li ulpIt works perfectly That depends on how non public the server is If you mean that the server is in an intranet behind firewall and cannot be reached from the internet then this won work If however the Jenkins instance is reachable but not everyone should be able to trigger build then you can solve this via the token of the hook https stackoverflow com questions 42817169 jenkins trigger builds remotely authentication token option missing,0,NULL,NULL 58464,268554,313021,Notable Question Popular Question Yearling Curious Notable Question,NULL,NULL,0,NULL,NULL 58465,1730200,22459,Nice Answer Notable Question Guru Great Answer Popular Question Guru Nice Answer Enlightened Guru Popular Question Good Answer Good Answer Nice Answer Yearling Nice Answer Notable Question Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Question Yearling Custodian Famous Question Good Answer Great Answer Popular Question Popular Question Nice Answer Enlightened Nice Answer Yearling Great Answer Famous Question Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58466,145410,418311,NULL,NULL,NULL,0,NULL,NULL 58467,144292,96855,Nice Question Announcer Notable Question Yearling Popular Question Great Question Good Question Notable Question Nice Question Caucus Famous Question Favorite Question Popular Question Notable Question Stellar Question Nice Question Good Question Announcer Notable Question Stellar Question Yearling Favorite Question Nice Answer Caucus Popular Question Announcer Famous Question Necromancer Famous Question Great Question Famous Question Yearling Populist,NULL,Transactions across REST microservices rest architecture transactions microservices pLet say we have User Wallet REST microservices and an API gateway that glues things together When Bob registers on our website our API gateway needs to create user through the User microservice and wallet through the Wallet microservice ppNow here are few scenarios where things could go wrong pulli pUser Bob creation fails that OK we just return an error message to the Bob We re using SQL transactions so no one ever saw Bob in the system Everything good lili pUser Bob is created but before our Wallet can be created our API gateway hard crashes We now have User with no wallet inconsistent data lili pUser Bob is created and as we are creating the Wallet the HTTP connection drops The wallet creation might have succeeded or it might have not li ulpWhat solutions are available to prevent this kind of data inconsistency from happening Are there patterns that allow transactions to span multiple REST requests ve read the Wikipedia page on href http en wikipedia org wiki Two phase commit protocol Two phase commit which seems to touch on this issue but not sure how to apply it in practice This href http ws rest org 2014 sites default files wsrest2014 submission pdf Atomic Distributed Transactions RESTful design paper also seems interesting although haven read it yet ppAlternatively know REST might just not be suited for this use case Would perhaps the correct way to handle this situation to drop REST entirely and use different communication protocol like message queue system Or should enforce consistency in my application code for example by having background job that detects inconsistencies and fixes them or by having state attribute on my User model with creating created values etc sny it was fictional example but you could think of the wallet service as being handled by Stripe for example,0,NULL,NULL 58468,19390,310105,NULL,NULL,NULL,0,NULL,NULL 58469,811743,607310,Announcer,NULL,NULL,0,NULL,NULL 58470,1191,261734,Yearling Nice Answer Yearling Nice Answer Enlightened Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 58471,262947,419550,NULL,NULL,NULL,0,NULL,NULL 58472,359167,695603,Popular Question,NULL,NULL,0,NULL,NULL 58473,80039,966250,NULL,NULL,NULL,0,NULL,NULL 58474,177234,966250,NULL,NULL,NULL,0,NULL,NULL 58475,1520597,1270570,NULL,NULL,NULL,0,NULL,NULL 58476,1249354,7488,Good Answer Nice Question Nice Answer Nice Answer Nice Answer Nice Answer Yearling Famous Question Notable Question Great Answer Nice Question Nice Answer Yearling Custodian Custodian Nice Answer Yearling Nice Question Popular Question,NULL,,0,, 58477,184565,125395,Nice Question Yearling Famous Question Notable Question Famous Question Good Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 58478,1385179,172720,NULL,NULL,NULL,0,NULL,NULL 58479,333969,1323240,NULL,NULL,NULL,0,NULL,NULL 58480,95321,343831,NULL,NULL,NULL,0,NULL,NULL 58481,74737,957150,NULL,NULL,NULL,0,NULL,NULL 58482,1639299,1414179,Tumbleweed,NULL,NULL,0,NULL,NULL 58483,385064,592750,NULL,NULL,NULL,0,NULL,NULL 58484,40500,1113070,NULL,NULL,NULL,0,NULL,NULL 58485,1026420,1276374,Nice Answer Yearling Popular Question Popular Question Good Answer Popular Question java Nice Answer Enlightened Popular Question Yearling Good Answer Nice Answer Popular Question Notable Question Announcer Announcer Announcer Announcer Yearling Guru Cleanup Announcer,NULL,NULL,0,NULL,NULL 58486,6875557,44680,Custodian Yearling Yearling Custodian,NULL,strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Using echo like that is unsafe unless you know what the contents of TARGET is since echo accepts switches Try for example TARGET foo echo TARGET You can use printf instead printf TARGET strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details think you are either using sed version not compatible with mine or you are inputting the slashes the wrong way This gives back slashes for me printf sed strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Escape characters are one of the three mentioned so not sure what you are referring to Try echo Foo 1bar sed if you are in doubt Your link is to really good in depth answer though so have added warning and your link to the answer Thanks strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details True Included in the warning now thanks strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details What is your sed dialect This works fine for GNU echo Foo sed strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Alpine uses busybox right tested my foo echo above in busybox v1 20 and it works there too Do you have the complete command available strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Yep gains special meaning by being escaped there Fixed Thank you,0,NULL,NULL 58487,1388263,44680,Custodian Yearling Yearling Custodian,NULL,strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Using echo like that is unsafe unless you know what the contents of TARGET is since echo accepts switches Try for example TARGET foo echo TARGET You can use printf instead printf TARGET strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details think you are either using sed version not compatible with mine or you are inputting the slashes the wrong way This gives back slashes for me printf sed strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Escape characters are one of the three mentioned so not sure what you are referring to Try echo Foo 1bar sed if you are in doubt Your link is to really good in depth answer though so have added warning and your link to the answer Thanks strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details True Included in the warning now thanks strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details What is your sed dialect This works fine for GNU echo Foo sed strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Alpine uses busybox right tested my foo echo above in busybox v1 20 and it works there too Do you have the complete command available strongWarning strong This does emnot em consider newlines For more in depth answer see href https stackoverflow com questions 29613304 is it possible to escape regex metacharacters reliably with sed title Is it possible to escape regex metacharacters reliably with sed this SO question instead Thanks Ed Morton amp Niklas Peter ppNote that escaping everything is bad idea Sed needs many characters to be escaped to emget em their special meaning For example if you escape digit in the replacement string it will turn in to backreference ppAs Ben Blank said there are only three characters that need to be escaped in the replacement string escapes themselves forward slash for end of statement and amp for replace all ppre codesed code prepIf you ever need to escape the codeKEYWORD code string the following is the one you need ppre codesed code prepRemember if you use character other than code code as delimiter you need replace the slash in the expressions above wih the character you are using See PeterJCLaw comment for explanation pp emEdited em Due to some corner cases previously not accounted for the commands above have changed several times Check the edit history for details Yep gains special meaning by being escaped there Fixed Thank you,0,NULL,NULL 58488,728644,1163481,NULL,NULL,NULL,0,NULL,NULL 58489,211995,1135644,NULL,NULL,NULL,0,NULL,NULL 58490,444260,595844,Announcer Necromancer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 58491,3327769,595844,Announcer Necromancer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 58492,5052,116862,Nice Question Nice Answer Good Answer Necromancer Nice Answer interface-builder Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Notable Question Nice Answer Guru Nice Answer Enlightened Good Answer Excavator Good Answer Good Answer Announcer Guru Guru Nice Answer Enlightened Great Question Yearling Nice Answer Nice Answer Enlightened Booster Notable Question Announcer Good Answer arrays swift Custodian Custodian Nice Answer Good Answer Announcer macos Investor Altruist Good Answer Nice Answer Good Answer Revival Nice Answer Enlightened Great Answer Revival Yearling Necromancer Good Answer Guru Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Guru Announcer,NULL,NULL,0,NULL,NULL 58493,2992757,492728,NULL,NULL,NULL,0,NULL,NULL 58494,340650,1356713,Popular Question Famous Question Yearling Commentator Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Necromancer Autobiographer Self-Learner Notable Question Yearling,NULL,NULL,0,NULL,NULL 58495,211482,1017353,NULL,NULL,NULL,0,NULL,NULL 58496,393391,611667,NULL,NULL,NULL,0,NULL,NULL 58497,46136,212745,NULL,NULL,NULL,0,NULL,NULL 58498,578360,1295664,NULL,NULL,NULL,0,NULL,NULL 58499,326816,1308058,Nice Question Necromancer Revival Necromancer Yearling Nice Answer Enlightened Revival Nice Answer Nice Answer Caucus Self-Learner Popular Question Enlightened Guru haskell Yearling scala Documentation User Revival Revival Census Nice Answer Enlightened Caucus Nice Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 58500,398933,452372,Good Answer Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 58501,72291,576766,Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Good Answer Popular Question Guru Yearling Great Answer Notable Question Famous Question Custodian Great Answer Guru Nice Answer Popular Question Nice Answer Enlightened Yearling Nice Answer Guru Revival Guru Taxonomist Guru,NULL,NULL,0,NULL,NULL 58502,1549135,1441468,Editor Scholar Necromancer Popular Question,NULL,NULL,0,NULL,NULL 58503,222961,315935,Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Enlightened Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Good Answer Announcer Nice Answer asp.net-core Good Answer asp.net Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened checkbox Announcer Nice Answer Good Answer treegrid Announcer Nice Answer Announcer Announcer Good Answer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Good Answer Caucus Announcer Good Answer Constituent Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Good Answer Announcer Guru Nice Answer Popular Question Announcer Guru Announcer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Enlightened Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Nice Answer Announcer Good Answer Announcer Announcer Guru Guru Announcer Caucus Nice Answer Announcer Good Answer Announcer Announcer Constituent Nice Answer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Announcer Announcer Announcer Good Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Nice Answer Enlightened Announcer windows Enlightened Announcer Great Answer Announcer Good Answer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Guru Announcer Announcer Announcer Announcer Announcer Announcer Announcer Yearling Announcer Announcer Famous Question Good Answer Announcer Nice Answer Enlightened Guru Good Answer Announcer Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer pager Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer xml Announcer Nice Answer Revival Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Guru,NULL,pI found you question very interesting The question about saving the user state of grid are interesting in many cases There are some interesting answers on such problems which uses cookie see href https stackoverflow com 3044974 315935 here for example ppIn my opinion saving of the grid state in database on the server or in the codelocalStorage code is better way as the usage of cookie The best way depends on the project requirements in which you use it For example the usage of the database storage on the server allows you to implement roaming state of the grid If you use the codelocalStorage code instead of cookies the user preferences will be lost if the user goes to another computer or just if the user will use another web browser on the same computer ppAnother problem with the grid state is the maintenance The information about the columns of the grid you hold typically in the JavaScript or HTML files and not in the database In the case the both sources can be not synchronous on the changes in the grid Different scenarios of the update problem could you easy imagine Nevertheless the advantages of user preferences so large in some scenarios that the problems with small disadvantages are not so important and can be solved relatively easy ppSo ll spend some time to implement two demos which shows how it can be implemented used codelocalStorage code in my demos because of many reasons mention only two from there polliCookies is the way which send permanently different information to or from the server which is not really requited It increases the size of HTTP header and decreases the performance of the web site see href http www html5rocks com en tutorials speed quick toc webstorage rel nofollow noreferrer here for example liliCookies have very hard restrictions Corresponds to the section href http tools ietf org html rfc2109 section rel nofollow noreferrer of rfc2109 or href http tools ietf org html rfc6265 section rel nofollow noreferrer of rfc6265 At least 4096 bytes per cookie at least 50 cookies per domain 20 in rfc2109 at least 3000 cookies total 300 in rfc2109 So the cookies one can use to save too many information For example if you would save state of every grid of every your web page you can quickly achieve the limits li olpOn the other side codelocalStorage code are supported by all modern browsers and will be supported in Internet Explorer starting with IE8 see href http msdn microsoft com en us library cc197062 28v vs 85 29 aspx global rel nofollow noreferrer here The codelocalStorage code will be automatically saved per origins like a1 example com a2 example com a3 example com etc and has arbitrary limit of MB per origin see href http dev w3 org html5 webstorage disk space rel nofollow noreferrer here So if you use the space carefully you will far from the any limits ppSo used in my demos the codelocalStorage code should additionally mention that there are some plugins like href http www jstorage info rel nofollow noreferrer jStorage which use codelocalStorage code if it supported by the browser and use another storage but the same interface for you in case of old browsers like IE6 IE7 In the case you has only less size of storage 128 kB instead of MB but it better as 4K which one has for cookies see href http support microsoft com kb 941495 en us rel nofollow noreferrer here ppNow about the implementation creates two demos href http www ok soft gmbh com jqGrid ColumnChooserAndLocalStorage htm rel nofollow noreferrer this and it extended version href http www ok soft gmbh com jqGrid ColumnChooserAndLocalStorage1 htm rel nofollow noreferrer this ppIn href http www ok soft gmbh com jqGrid ColumnChooserAndLocalStorage htm rel nofollow noreferrer the first demo the following states of grid will be saved and automatically restored on the page reload kbdF5 kbd in the most web browsers pulliwhich column are hidden lilithe order of columns lilithe width of every column lilithe name of the column by which the grid will be sorted and the sort direction lilithe current page number lilithe current filter of the grid and the flag whether the filter are applied used codemultipleSearch true code setting in the grid li ulpIn the same way one can extend or reduce the list of options which are the part of the saved grid state ppThe most important parts of the code from the demo you will find below ppre codevar grid list saveObjectInLocalStorage function storageItemName object if typeof window localStorage undefined window localStorage setItem storageItemName JSON stringify object removeObjectFromLocalStorage function storageItemName if typeof window localStorage undefined window localStorage removeItem storageItemName getObjectFromLocalStorage function storageItemName if typeof window localStorage undefined return parseJSON window localStorage getItem storageItemName myColumnStateName ColumnChooserAndLocalStorage colState saveColumnState function perm var colModel this jqGrid getGridParam colModel colModel length colItem cmName postData this jqGrid getGridParam postData columnsState search this jqGrid getGridParam search page this jqGrid getGridParam page sortname this jqGrid getGridParam sortname sortorder this jqGrid getGridParam sortorder permutation perm colStates colStates columnsState colStates if typeof postData filters undefined columnsState filters postData filters for lt colItem colModel cmName colItem name if cmName rn amp amp cmName cb amp amp cmName subgrid colStates cmName width colItem width hidden colItem hidden saveObjectInLocalStorage myColumnStateName columnsState myColumnsState isColState restoreColumnState function colModel var colItem colModel length colStates cmName columnsState getObjectFromLocalStorage myColumnStateName if columnsState colStates columnsState colStates for lt colItem colModel cmName colItem name if cmName rn amp amp cmName cb amp amp cmName subgrid colModel extend true colModel colStates cmName return columnsState firstLoad true myColumnsState restoreColumnState cm isColState typeof myColumnsState undefined amp amp myColumnsState null grid jqGrid other options page isColState myColumnsState page search isColState myColumnsState search false postData isColState filters myColumnsState filters sortname isColState myColumnsState sortname invdate sortorder isColState myColumnsState sortorder desc loadComplete function if firstLoad firstLoad false if isColState this jqGrid remapColumns myColumnsState permutation true saveColumnState call this this remapColumns grid jqGrid navButtonAdd pager caption buttonicon ui icon calculator title choose columns onClickButton function this jqGrid columnChooser done function perm if perm this jqGrid remapColumns perm true saveColumnState call this perm grid jqGrid navButtonAdd pager caption buttonicon ui icon closethick title clear saved grid settings onClickButton function removeObjectFromLocalStorage myColumnStateName code prepBe carefully to define codemyColumnStateName code the value ColumnChooserAndLocalStorage colState in the demo to different values on the different pages pp href http www ok soft gmbh com jqGrid ColumnChooserAndLocalStorage1 htm rel nofollow noreferrer The second demo is the extension of the first one using the technique from my href https stackoverflow com 6884755 315935 old answer to your another question The demo use the searching toolbar and synchronize additionally information between the advanced searching form and the searching toolbar pp strongUPDATED strong The href https stackoverflow com 8547852 315935 next answer contains extended version of the code included above It shows how to persist the selected rows or row additionally href https stackoverflow com 9202378 315935 Another answer shows how to persist the list of expanded nodes of the tree grid and expand the nodes on the relaoding of the page durai The code in the answer is fragment from the code of the demo http www ok soft gmbh com jqGrid ColumnChooserAndLocalStorage htm see some lines before the code in the answer You will find the definition of cm variable In general the answer is very old Look at more recent answer https stackoverflow com 31663268 315935 better for more recent code pThere are no direct way to get the information which you need Internally jqGrid uses href https github com tonytomov jqGrid blob v4 js grid base js L176 612 rel nofollow noreferrer jgrid from to filter local data The main code which uses code jgrid from code in inside of href https github com tonytomov jqGrid blob v4 js grid base js L1423 1575 rel nofollow noreferrer addLocalData To get results which you need without studying all the code suggest to use the fact that all filtered data will be returned by codeselect code method of code jgrid from code see href https github com tonytomov jqGrid blob v4 js grid base js L1559 rel nofollow noreferrer the line of code My suggestion is to catch the data before the data will be cut to the page size ppTo do this suggest to use sub classing overwriting of the method codeselect code method of code jgrid from code demonstrate the technique in the examples created for href https stackoverflow com 5822685 315935 the answer and href https stackoverflow com 9728073 315935 this one ppIn your case the code will be ppre class lang js prettyprint override codevar oldFrom jgrid from lastSelected jgrid from function source initalQuery var result oldFrom call this source initalQuery old select result select result select function lastSelected old select call this return lastSelected return result code prepNow the variable codelastSelected code will save the array of elements which are results of the last sorting or filtering operation Because code jgrid from code is global the data are not connected to the grid If you have more as one grid on the page it will be uncomfortable One can fix the small disadvantage with the following line in the code of codeloadComplate code of every grid ppre class lang js prettyprint override codeloadComplete function this lastSelected lastSelected set this lastSelected code prepIn the way we introduce new jqGrid parameter codelastSelected code which will have close structure as codedata code parameter but will hold only emlast filtered em data ppThe following code will display the ids of filtered data in codealert code message ppre class lang js prettyprint override code getIds click function var filteredData grid jqGrid getGridParam lastSelected ids idName grid jqGrid getGridParam localReader id if filteredData for filteredData length lt ids push filteredData idName alert tolal number of filtered data ids of filtered data ids join code prepI used href http www trirand com jqgridwiki doku php id wiki retrieving data array data rel nofollow noreferrer localReader id parameter because property name used for local data are typically codeid code or code id code The code id code will be used in case of data loaded from the server if one uses codeloadonce true code option pp href http www ok soft gmbh com jqGrid GetFilteredData htm rel nofollow noreferrer The demo demonstrate the approach If one filter for example only the data from FedEx and then clicks on Show Ids button one will see information about all filtered and not only about the data displayed on the current page pp img src https stack imgur com x7IND png alt enter image description here pp img src https stack imgur com U4t2W png alt enter image description here pp strongUPDATED strong href https github com free jqgrid jqGrid rel nofollow noreferrer free jqGrid provides new codelastSelectedData code option See href http www ok soft gmbh com jqGrid OK GetFilteredData htm rel nofollow noreferrer the demo in href https github com free jqgrid jqGrid blob v4 README md some demos which demonstrates new features rel nofollow noreferrer the list of demos You are welcome pThanks for pointing of the problem of definition custom strongunary strong operations committed href https github com free jqgrid jqGrid commit 265935c7e726b2cc571b0b33e65f0575fb9f02c1 rel nofollow noreferrer the changes of the code of href https github com free jqgrid jqGrid rel nofollow noreferrer free jqGrid to allow to specify the custom unary operations inside of new option codecustomUnaryOperations code pp href http www ok soft gmbh com jqGrid OK formEditOnDoubleClick jqueryui fa3 customUnaryOperations htm rel nofollow noreferrer strongThe demo strong defines two custom filtering operations em is empty and nm isn empty and use the operations in Amount and Notes columns The column Notes uses additionally the standard predefined nu is null and nn is not null operations The column amount uses ppre codesearchoptions sopt eq ne em nm code prepand the column note uses ppre codesearchoptions sopt cn bw ew eq bn nc en nu nn em nm code prepadditionally the demo uses codecustomSortOperations code and new codecustomUnaryOperations code ppre codecustomUnaryOperations em nm customSortOperations em operand text is empty filter function options var options item options cmName if undefined return true nm operand text isn empty filter function options var options item options cmName if undefined amp amp return true code pre think you are right It would be helpful to reset search operation to default one searchoptions sopt or defaultSearch on click on if the current operation is an Unary operation will make the changes in the code of free jqGrid and will inform you to refresh your free jqGrid have to do some other things now but post you comment later pThanks for pointing of the problem of definition custom strongunary strong operations committed href https github com free jqgrid jqGrid commit 265935c7e726b2cc571b0b33e65f0575fb9f02c1 rel nofollow noreferrer the changes of the code of href https github com free jqgrid jqGrid rel nofollow noreferrer free jqGrid to allow to specify the custom unary operations inside of new option codecustomUnaryOperations code pp href http www ok soft gmbh com jqGrid OK formEditOnDoubleClick jqueryui fa3 customUnaryOperations htm rel nofollow noreferrer strongThe demo strong defines two custom filtering operations em is empty and nm isn empty and use the operations in Amount and Notes columns The column Notes uses additionally the standard predefined nu is null and nn is not null operations The column amount uses ppre codesearchoptions sopt eq ne em nm code prepand the column note uses ppre codesearchoptions sopt cn bw ew eq bn nc en nu nn em nm code prepadditionally the demo uses codecustomSortOperations code and new codecustomUnaryOperations code ppre codecustomUnaryOperations em nm customSortOperations em operand text is empty filter function options var options item options cmName if undefined return true nm operand text isn empty filter function options var options item options cmName if undefined amp amp return true code pre committed the corresponding changes https github com free jqgrid jqGrid commit a6e0aa1b8d83a77155c6e10c1e5758c22a238be9 to GitHub Please reload free jqGrid which you use and test the behavior of now By the way the demo http www ok soft gmbh com jqGrid OK formEditOnDoubleClick jqueryui fa3 customUnaryOperations htm loads jqGrid from GitHub thus you can use it for festing of the latest changes which made OpenSSL DH Key Too Small Error perl ssl openssl pI am trying to connect to closed off server an air conditioner using simple PERL script ppre code usr bin perluse 10 use warnings use strict use IO Socket SSL use IO Socket SSL qw debug3 my sock IO Socket SSL gt new PeerHost gt 192 168 PeerPort gt 2878 verify hostname gt SSL verify mode gt SSL VERIFY NONE SSL verifycn scheme gt undef or die failed connect or ssl handshake SSL ERROR print sock code prepNow this was all working well and good then updated OpenSSL libssl1 to be exact and all hell broke loose ppre codeDEBUG IO Socket SSL pm 220 set domain to 2DEBUG IO Socket SSL pm 1653 new ctx 1984680DEBUG IO Socket SSL pm 363 socket not yet connectedDEBUG IO Socket SSL pm 365 socket connectedDEBUG IO Socket SSL pm 383 ssl handshake not startedDEBUG IO Socket SSL pm 446 Net SSLeay connect gt 1DEBUG IO Socket SSL pm 1328 SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 452 fatal SSL error SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 1328 IO Socket INET6 configuration failed error 00000000 lib func reason DEBUG IO Socket SSL pm 1690 free ctx 1984680 open 1984680DEBUG IO Socket SSL pm 1698 OK free ctx 1984680failed connect or ssl handshake IO Socket INET6 configuration failed error 00000000 lib func reason at spare line code prepI am happy to use any alternative packages to get around this but do need to get around it as can update the certificate on the air conditioner ppI have looked in to using LWP and raw Net SSLeay but the problem seems to be in the underlying OpenSSL libs How long is the key of the certificate used for SSL TLS The recommended value is 4096 or at least 2048 pFirst of all you can use codeIEnumerable lt Order gt code or codeIEnumerable lt object gt code as return type instead of codeJsonResult code and return just codeorderRepository GetAll code recommend you to read href https docs asp net projects mvc en latest migration migratingfromwebapi2 html rel noreferrer the article fr additional information ppAbout another error with Bad Gateway Try to add codeNewtonsoft Json code in the latest version to dependencies in codepackage json code and to use use ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore code prepBy the way one can reproduce the error HTTP Error 502 Bad Gateway which you describes if just set breakpoint on the return statement of working code and wait long enough Thus you will see the error HTTP Error 502 Bad Gateway very soon on many common errors ppYou can consider to us more helpful serialization options For example ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt handle loops correctly options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore use standard name conversion of properties options SerializerSettings ContractResolver new CamelCasePropertyNamesContractResolver include id property in the output options SerializerSettings PreserveReferencesHandling PreserveReferencesHandling Objects code pre MVC don returns typically XML data The settings are specific settings of Newtonsoft Json which is default JSON serializer in ASP NET pFirst of all you can use codeIEnumerable lt Order gt code or codeIEnumerable lt object gt code as return type instead of codeJsonResult code and return just codeorderRepository GetAll code recommend you to read href https docs asp net projects mvc en latest migration migratingfromwebapi2 html rel noreferrer the article fr additional information ppAbout another error with Bad Gateway Try to add codeNewtonsoft Json code in the latest version to dependencies in codepackage json code and to use use ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore code prepBy the way one can reproduce the error HTTP Error 502 Bad Gateway which you describes if just set breakpoint on the return statement of working code and wait long enough Thus you will see the error HTTP Error 502 Bad Gateway very soon on many common errors ppYou can consider to us more helpful serialization options For example ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt handle loops correctly options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore use standard name conversion of properties options SerializerSettings ContractResolver new CamelCasePropertyNamesContractResolver include id property in the output options SerializerSettings PreserveReferencesHandling PreserveReferencesHandling Objects code pre First of all you should add Microsoft AspNet Mvc Formatters Xml Then you have the formatters which you can use to configure Mvc for usage of Xml as input or output format You can try to implement yourself and to ask new question if you would have problems pFirst of all you can use codeIEnumerable lt Order gt code or codeIEnumerable lt object gt code as return type instead of codeJsonResult code and return just codeorderRepository GetAll code recommend you to read href https docs asp net projects mvc en latest migration migratingfromwebapi2 html rel noreferrer the article fr additional information ppAbout another error with Bad Gateway Try to add codeNewtonsoft Json code in the latest version to dependencies in codepackage json code and to use use ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore code prepBy the way one can reproduce the error HTTP Error 502 Bad Gateway which you describes if just set breakpoint on the return statement of working code and wait long enough Thus you will see the error HTTP Error 502 Bad Gateway very soon on many common errors ppYou can consider to us more helpful serialization options For example ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt handle loops correctly options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore use standard name conversion of properties options SerializerSettings ContractResolver new CamelCasePropertyNamesContractResolver include id property in the output options SerializerSettings PreserveReferencesHandling PreserveReferencesHandling Objects code pre see that you never used voting before It really important right which allows gives tips for searching that the content is helpful It helps other visitors to find the answer question See here http stackoverflow com help why vote for example You have right to vote about 30 answers per day You should active use the right if you want help other Self referencing loop detected in ASP NET Core json net asp net core asp net core mvc pWhen try to serialize some domain objects using ASP NET Core Newsoft JSON NET it is throwing an exception because it is detecting self referencing loop ppIn ASP NET we used to fix it globally this way href https stackoverflow com questions 7397207 json net error self referencing loop detected for type JSON NET Error Self referencing loop detected for type ppHow can we fix this in ASP NET Core Look at the answer http stackoverflow com 34421722 315935 It should solve your problem,1,NULL,Free jqGrid custom filter rule for empty and not empty jquery jqgrid free jqgrid pI familiar with the custom operations that can bd added to the dropdown selection on the left next to each column filter ppWhat after is to add two new types of custom operators for filtering Empty2 Not empty ppWhile know how to achieve that per se have problem with the UX of such flow within Free JqGrid This is because these two custom operators don need any input from the user once they were chosen so the user will have to click enter after choosing this operator with an empty value very confusing ppWhat want to know is how to achive the following consider already defined new custom operator polliMake the transaction go once choose this operator without waiting for the user to type anything or click enter something like onSelect liliOptionally disable the ability to type anything within that specific filter once that specific operator was selected li olpThanks ppTal pThanks for pointing of the problem of definition custom strongunary strong operations committed href https github com free jqgrid jqGrid commit 265935c7e726b2cc571b0b33e65f0575fb9f02c1 rel nofollow noreferrer the changes of the code of href https github com free jqgrid jqGrid rel nofollow noreferrer free jqGrid to allow to specify the custom unary operations inside of new option codecustomUnaryOperations code pp href http www ok soft gmbh com jqGrid OK formEditOnDoubleClick jqueryui fa3 customUnaryOperations htm rel nofollow noreferrer strongThe demo strong defines two custom filtering operations em is empty and nm isn empty and use the operations in Amount and Notes columns The column Notes uses additionally the standard predefined nu is null and nn is not null operations The column amount uses ppre codesearchoptions sopt eq ne em nm code prepand the column note uses ppre codesearchoptions sopt cn bw ew eq bn nc en nu nn em nm code prepadditionally the demo uses codecustomSortOperations code and new codecustomUnaryOperations code ppre codecustomUnaryOperations em nm customSortOperations em operand text is empty filter function options var options item options cmName if undefined return true nm operand text isn empty filter function options var options item options cmName if undefined amp amp return true code pre Cant get ASP NET MVC Controller to return JSON json asp net web api asp net core mvc entity framework core pI have an MVC project in which am using Fiddler to test out Web API If take the following controller action which uses EntityFramework to return List Then the html will render fine ppre code HttpGet public IActionResult Index var model orderRepository GetAll return View model code prepBut when try to return Json response instead get 502 error ppre code HttpGet public JsonResult Index var model orderRepository GetAll return Json model code prepAny Idea on why the object isnt serialized into json correctly pFirst of all you can use codeIEnumerable lt Order gt code or codeIEnumerable lt object gt code as return type instead of codeJsonResult code and return just codeorderRepository GetAll code recommend you to read href https docs asp net projects mvc en latest migration migratingfromwebapi2 html rel noreferrer the article fr additional information ppAbout another error with Bad Gateway Try to add codeNewtonsoft Json code in the latest version to dependencies in codepackage json code and to use use ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore code prepBy the way one can reproduce the error HTTP Error 502 Bad Gateway which you describes if just set breakpoint on the return statement of working code and wait long enough Thus you will see the error HTTP Error 502 Bad Gateway very soon on many common errors ppYou can consider to us more helpful serialization options For example ppre class lang js prettyprint override codeservices AddMvc AddJsonOptions options gt handle loops correctly options SerializerSettings ReferenceLoopHandling Newtonsoft Json ReferenceLoopHandling Ignore use standard name conversion of properties options SerializerSettings ContractResolver new CamelCasePropertyNamesContractResolver include id property in the output options SerializerSettings PreserveReferencesHandling PreserveReferencesHandling Objects code pre 58504,787581,829680,NULL,NULL,NULL,0,NULL,NULL 58505,465227,653730,Popular Question,NULL,NULL,0,NULL,NULL 58506,467256,989592,NULL,NULL,NULL,0,NULL,NULL 58507,370452,59704,Yearling Famous Question Notable Question Good Answer Nice Question Popular Question Good Answer Nice Answer Famous Question Good Question Notable Question Notable Question Popular Question Notable Question Yearling Good Question Favorite Question Self-Learner Nice Answer Enlightened Nice Question Favorite Question Great Question Yearling Nice Answer Enlightened Famous Question Popular Question,NULL,NULL,0,NULL,NULL 58508,13036,464806,Good Answer,NULL,NULL,0,NULL,NULL 58509,22013,920339,Teacher,NULL,NULL,0,NULL,NULL 58510,1398997,920339,Teacher,NULL,NULL,0,NULL,NULL 58511,1148644,920339,Teacher,NULL,NULL,0,NULL,NULL 58512,290568,600688,NULL,NULL,NULL,0,NULL,NULL 58513,281049,598202,NULL,NULL,NULL,0,NULL,NULL 58514,138476,224992,NULL,NULL,NULL,0,NULL,NULL 58515,291686,728038,NULL,NULL,NULL,0,NULL,NULL 58516,18145,1499379,NULL,NULL,NULL,0,NULL,NULL 58517,205401,729576,NULL,NULL,NULL,0,NULL,NULL 58518,33044,442637,Yearling Necromancer Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58519,6385,1076838,Informed,NULL,NULL,0,NULL,NULL 58520,158858,98383,NULL,NULL,NULL,0,NULL,NULL 58521,998282,314957,NULL,NULL,NULL,0,NULL,NULL 58522,184365,1032665,NULL,NULL,NULL,0,NULL,NULL 58523,135177,816291,Yearling Notable Question Caucus Constituent Yearling Nice Question Custodian Nice Answer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58524,978863,623667,Supporter,NULL,NULL,0,NULL,NULL 58525,17036,487808,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58526,726470,1300195,NULL,NULL,NULL,0,NULL,NULL 58527,375175,1553131,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58528,3121966,334346,Yearling Good Answer Yearling Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 58529,63457,404592,NULL,NULL,NULL,0,NULL,NULL 58530,360040,1151804,NULL,NULL,NULL,0,NULL,NULL 58531,1487818,921781,NULL,NULL,NULL,0,NULL,NULL 58532,234171,66473,Taxonomist Yearling Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58533,1505466,811987,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 58534,699614,844268,Teacher,NULL,NULL,0,NULL,NULL 58535,140705,706456,.net Popular Question Notable Question Popular Question Yearling Good Question Nice Answer Nice Answer Popular Question Popular Question Nice Answer Nice Answer Nice Answer Guru Great Answer Necromancer Notable Question Notable Question Announcer Popular Question Guru Popular Question Great Question Yearling Nice Answer Nice Answer Enlightened Necromancer Announcer Popular Question Popular Question Revival Announcer Nice Answer Revival Popular Question Nice Answer Announcer Announcer Nice Answer Announcer Good Answer Announcer Good Answer Announcer Yearling Nice Answer Great Question Announcer Popular Question Notable Question Nice Question Good Answer Notable Question Notable Question Good Answer Announcer,NULL,pThis is based on href https stackoverflow com 7555658 706456 solution but implemented as an extension method ppBenefits pulliExtension method liliCovers corner cases liliSplits string with any chars numbers letters other symbols li ulpCode ppre codepublic static class EnumerableEx public static IEnumerable lt string gt SplitBy this string str int chunkLength if String IsNullOrEmpty str throw new ArgumentException if chunkLength lt throw new ArgumentException for int lt str Length chunkLength if chunkLength gt str Length chunkLength str Length yield return str Substring chunkLength code prepUsage ppre codevar result bobjoecat SplitBy bob joe cat code prepUnit tests removed for brevity see href https stackoverflow com revisions 8944374 previous revision thanks ve now updated the answer,0,NULL,NULL 58536,576065,570501,Notable Question,NULL,NULL,0,NULL,NULL 58537,1197689,570501,Notable Question,NULL,NULL,0,NULL,NULL 58538,766345,1205421,NULL,NULL,NULL,0,NULL,NULL 58539,16053,61635,Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 58540,190713,490134,Notable Question,NULL,NULL,0,NULL,NULL 58541,92759,409623,Yearling Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58542,683816,1538345,NULL,NULL,NULL,0,NULL,NULL 58543,72284,1169156,NULL,NULL,NULL,0,NULL,NULL 58544,161090,440524,NULL,NULL,NULL,0,NULL,NULL 58545,842761,927360,NULL,NULL,NULL,0,NULL,NULL 58546,5046,573626,Good Answer Announcer Yearling Nice Answer ipad uitableview Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Caucus Yearling Nice Answer Good Answer Guru cocoa-touch Guru Caucus Good Answer Good Answer Guru macos Yearling Nice Answer Enlightened Announcer Guru Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58547,1060387,1177954,NULL,NULL,NULL,0,NULL,NULL 58548,1263494,1240164,NULL,NULL,NULL,0,NULL,NULL 58549,128507,1096560,NULL,NULL,NULL,0,NULL,NULL 58550,924406,1433738,NULL,NULL,NULL,0,NULL,NULL 58551,771598,539213,NULL,NULL,NULL,0,NULL,NULL 58552,195351,539213,NULL,NULL,NULL,0,NULL,NULL 58553,204088,358518,Yearling Popular Question,NULL,NULL,0,NULL,NULL 58554,11880,281340,Popular Question Good Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58555,3965473,1059972,NULL,NULL,NULL,0,NULL,NULL 58556,58165,544655,NULL,NULL,NULL,0,NULL,NULL 58557,183103,481637,Scholar Announcer,NULL,NULL,0,NULL,NULL 58558,227726,472095,Notable Question Tumbleweed Critic,NULL,NULL,0,NULL,NULL 58559,239668,1173733,NULL,NULL,NULL,0,NULL,NULL 58560,84208,594465,NULL,NULL,NULL,0,NULL,NULL 58561,597035,690085,Yearling Nice Answer Caucus Constituent Popular Question Yearling Tumbleweed Nice Answer Yearling Explainer Custodian Revival Unsung Hero Custodian Custodian Promoter Enthusiast,NULL,NULL,0,NULL,NULL 58562,1547862,690085,Yearling Nice Answer Caucus Constituent Popular Question Yearling Tumbleweed Nice Answer Yearling Explainer Custodian Revival Unsung Hero Custodian Custodian Promoter Enthusiast,NULL,NULL,0,NULL,NULL 58563,286342,690085,Yearling Nice Answer Caucus Constituent Popular Question Yearling Tumbleweed Nice Answer Yearling Explainer Custodian Revival Unsung Hero Custodian Custodian Promoter Enthusiast,NULL,NULL,0,NULL,NULL 58564,310021,385961,NULL,NULL,NULL,0,NULL,NULL 58565,10164,627050,Notable Question,NULL,NULL,0,NULL,NULL 58566,477514,243045,Supporter Informed Autobiographer Editor Necromancer Revival,NULL,pThe href https github com robots txt rel noreferrer https github com robots txt file of GitHub allows the indexing of the blobs in the master branch but restricts all other branches So if you don have master branch Google is not supposed to index your pages ppHow to remove the master branch ppIn your clone create new branch let call it main and push it to GitHub ppre codegit checkout maingit push origin main code prepOn GitHub change the default branch see in the Settings section of your repository or here href https github com blog 421 pick your default branch rel noreferrer https github com blog 421 pick your default branch ppThen remove the master branch from your clone and from GitHub ppre codegit branch mastergit push origin master code prepGet other people who might have already forked your repository to do the same ppAlternatively if you like to financially support GitHub you can go private href https help github com articles making public repository private rel noreferrer https help github com articles making public repository private https github com user user github io settings says User pages must be built from the master branch,0,NULL,NULL 58567,635603,581849,NULL,NULL,NULL,0,NULL,NULL 58568,612347,993368,NULL,NULL,NULL,0,NULL,NULL 58569,2756229,955597,NULL,NULL,NULL,0,NULL,NULL 58570,307122,1521023,NULL,NULL,NULL,0,NULL,NULL 58571,767356,924336,Yearling Necromancer Commentator Nice Answer Yearling Explainer Tumbleweed Caucus Popular Question Custodian Good Answer Yearling Caucus Student,NULL,NULL,0,NULL,NULL 58572,50349,603590,Necromancer Necromancer Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58573,403083,1024693,Announcer,NULL,NULL,0,NULL,NULL 58574,371116,731749,NULL,NULL,NULL,0,NULL,NULL 58575,3191243,1226967,Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 58576,5768391,863022,NULL,NULL,NULL,0,NULL,NULL 58577,442044,863022,NULL,NULL,NULL,0,NULL,NULL 58578,5150761,1182572,NULL,NULL,NULL,0,NULL,NULL 58579,442490,525532,NULL,NULL,NULL,0,NULL,NULL 58580,350500,296575,Famous Question Nice Question Famous Question Popular Question Good Question Popular Question Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 58581,18086,1415655,NULL,NULL,NULL,0,NULL,NULL 58582,417932,177710,Good Answer Necromancer Necromancer Notable Question Nice Answer Proofreader Announcer Necromancer Revival Announcer Yearling Nice Answer Nice Answer Necromancer Nice Answer Necromancer Guru Great Answer Necromancer Custodian Nice Answer Revival Custodian Announcer Revival Guru Announcer Announcer Revival Announcer Announcer Announcer Announcer Announcer Yearling Revival Necromancer Famous Question Announcer Revival Good Answer Announcer Announcer Booster Announcer Great Answer Announcer Yearling Announcer Necromancer,NULL,pInspired by href https stackoverflow com 16939621 177710 amniels answer wrote small wrapper around the href https developers google com analytics devguides collection protocol v1 devguide rel nofollow noreferrer Google Analytics Measurement Protocol to track events on the server side of our web application pp href https gist github com 0liver 11229128 rel nofollow noreferrer Here gist with class you can start with It simply wraps the boiler plate code of sending POST request to the Google Analytics measurement protocol endpoint ppUsing that wrapper you ll be able to write this ppre codeGoogleAnalyticsApi TrackEvent Video Play Vacation 2014 code pre roCabrón don know not using this anymore Since my answer is almost years old chances are it doesn,0,NULL,NULL 58583,768876,19995,Nice Answer Yearling Nice Answer Yearling Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58584,288978,128709,Yearling Taxonomist Revival Yearling Revival Announcer Great Answer Popular Question Favorite Question Nice Answer Census Announcer Caucus Nice Answer Yearling Popular Question Great Question Great Answer Notable Question,NULL,NULL,0,NULL,NULL 58585,163384,1306055,Popular Question,NULL,NULL,0,NULL,NULL 58586,1040042,1236361,Teacher,NULL,NULL,0,NULL,NULL 58587,80027,1404353,NULL,NULL,NULL,0,NULL,NULL 58588,5938735,1404353,NULL,NULL,NULL,0,NULL,NULL 58589,6572508,393122,NULL,NULL,NULL,0,NULL,NULL 58590,118119,139990,Yearling Notable Question Nice Answer Nice Question Good Answer Yearling Necromancer Nice Answer Promoter Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 58591,56442,684020,Yearling java Caucus Yearling Yearling Tumbleweed Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 58592,91382,603187,Yearling Organizer Famous Question Yearling Enlightened Good Answer Custodian Yearling javascript Popular Question,NULL,NULL,0,NULL,NULL 58593,18326,256853,Notable Question Yearling Nice Question Popular Question Notable Question Yearling Nice Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 58594,283614,350932,NULL,NULL,NULL,0,NULL,NULL 58595,585118,1003189,Notable Question Yearling Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58596,445880,1259385,NULL,NULL,NULL,0,NULL,NULL 58597,807124,413826,NULL,NULL,NULL,0,NULL,NULL 58598,216548,563771,NULL,NULL,NULL,0,NULL,NULL 58599,138753,1289139,NULL,NULL,NULL,0,NULL,NULL 58600,8254,20480,Necromancer Guru Nice Question Good Question Nice Answer Enlightened Yearling Necromancer Nice Answer Great Question Nice Question Yearling Good Answer Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 58601,154727,1071613,NULL,NULL,NULL,0,NULL,NULL 58602,17008,279720,Revival Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 58603,18354,414876,Notable Question Good Question Yearling Self-Learner Guru Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Yearling Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 58604,116078,1162429,Organizer,NULL,NULL,0,NULL,NULL 58605,1505084,567343,NULL,NULL,NULL,0,NULL,NULL 58606,7574,162337,Popular Question Notable Question Great Answer Notable Question Guru Popular Question Nice Answer Nice Question Yearling Great Question Guru Popular Question Nice Answer Famous Question Great Answer Notable Question Good Answer Good Question Nice Question Yearling Good Question Popular Question Pundit Famous Question Nice Answer Famous Question Popular Question Yearling,NULL,pExpanding on great answer here method for generating an arced path ppre codefunction polarToCartesian centerX centerY radius angleInDegrees var angleInRadians angleInDegrees 90 Math PI 180 return centerX radius Math cos angleInRadians centerY radius Math sin angleInRadians function describeArc radius startAngle endAngle var start polarToCartesian radius endAngle var end polarToCartesian radius startAngle var largeArcFlag endAngle startAngle lt 180 var start start radius radius largeArcFlag end end join return code prepto use ppre codedocument getElementById arc1 setAttribute describeArc 200 400 100 180 code prepand in your html ppre code lt path id arc1 fill none stroke 446688 stroke width 20 gt code prep href http jsbin com quhujowota edit html js output Live demo Thanks have finally updated as per your suggestion,0,NULL,NULL 58607,161289,651869,NULL,NULL,NULL,0,NULL,NULL 58608,52242,876556,NULL,NULL,NULL,0,NULL,NULL 58609,118402,577145,Yearling Guru Notable Question Yearling Notable Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 58610,572705,616223,NULL,NULL,NULL,0,NULL,NULL 58611,7359980,616223,NULL,NULL,NULL,0,NULL,NULL 58612,269168,926606,NULL,NULL,NULL,0,NULL,NULL 58613,34531,918570,NULL,NULL,NULL,0,NULL,NULL 58614,208631,215758,NULL,NULL,NULL,0,NULL,NULL 58615,23573,176453,Announcer Teacher Famous Question,NULL,NULL,0,NULL,NULL 58616,327474,406079,NULL,NULL,NULL,0,NULL,NULL 58617,265405,1297362,Yearling,NULL,NULL,0,NULL,NULL 58618,84686,1499838,NULL,NULL,NULL,0,NULL,NULL 58619,218322,1479088,NULL,NULL,NULL,0,NULL,NULL 58620,184913,145713,NULL,NULL,NULL,0,NULL,NULL 58621,116836,832600,NULL,NULL,NULL,0,NULL,NULL 58622,1512320,1137916,NULL,NULL,NULL,0,NULL,NULL 58623,44693,771520,NULL,NULL,NULL,0,NULL,NULL 58624,91832,946079,NULL,NULL,NULL,0,NULL,NULL 58625,2635805,946079,NULL,NULL,NULL,0,NULL,NULL 58626,29037,1129858,NULL,NULL,NULL,0,NULL,NULL 58627,101227,534192,Popular Question Popular Question Inquisitive Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 58628,226310,54949,Notable Question Documentation User,NULL,NULL,0,NULL,NULL 58629,525374,859604,Commentator Critic Scholar Caucus Citizen Patrol Caucus Announcer Announcer Caucus,NULL,strongDisclaimer strong am the founder of log4j SLF4J and logback projects ppThere are objective reasons for preferring SLF4J For one strongSLF4J allows the end user the liberty to choose the underlying logging framework strong In addition savvier users tend to prefer href http logback qos ch reasonsToSwitch html rel nofollow noreferrer logback which offers capabilities beyond log4j with falling way behind Feature wise may be sufficient for some users but for many others it just isn In nutshell if logging is important to you you would want to use SLF4J with logback as the underlying implementation If logging is unimportant is fine ppHowever as an oss developer you need to take into account the preferences of your users and not just your own It follows that you should adopt SLF4J not because emyou em are convinced that SLF4J is better than but because most Java developers currently July 2012 prefer SLF4J as their logging API If ultimately you decide not to care about popular opinion consider the following facts pollithose who prefer do so out of convenience because is bundled with the JDK To my knowledge there are no other objective arguments in favor of liliyour own preference for is just that ema preference em li olpThus holding hard facts above public opinion while seemingly brave is logical fallacy in this case ppIf still not convinced href https stackoverflow com users 571407 jb nizet JB Nizet makes an additional and potent argument pblockquote pExcept the end user could have already done this customization for his own code or another library that uses log4j or logback is extensible but having to extend logback log4j and God only knows which other logging framework because he uses four libraries that use four different logging frameworks is cumbersome By using SLF4J you allow him to configure the logging frameworks he wants not the one you have chosen strongRemember that typical project uses myriads of libraries and not just yours strong blockquotepIf for whatever reason you hate the SLF4J API and using it will snuff the fun out of your work then by all means go for After all there are means to href http www slf4j org legacy html jul to slf4j rel nofollow noreferrer redirect to SLF4J ppBy the way parametrization is at least 10 times slower than SLF4J which ends up making noticeable difference Is there some support for the claim that most Java developers prefer SLF4J as their logging API,0,NULL,NULL 58630,17065,316785,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 58631,276029,1310753,NULL,NULL,NULL,0,NULL,NULL 58632,1610386,651516,Caucus Yearling,NULL,NULL,0,NULL,NULL 58633,54771,377490,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 58634,253070,285850,Yearling Reviewer Organizer Guru Good Answer Tumbleweed Yearling Nice Answer Enlightened Nice Answer Yearling java,NULL,NULL,0,NULL,NULL 58635,195334,759525,NULL,NULL,NULL,0,NULL,NULL 58636,6075526,1439577,Teacher,NULL,NULL,0,NULL,NULL 58637,489758,474210,NULL,NULL,NULL,0,NULL,NULL 58638,343853,687183,Editor Student Custodian Yearling Commentator Scholar Critic,NULL,NULL,0,NULL,NULL 58639,113054,1059301,NULL,NULL,NULL,0,NULL,NULL 58640,27976,163740,Nice Answer Nice Answer Enlightened Good Question Nice Answer Nice Answer Enlightened Notable Question scipy Announcer Good Answer Nice Answer Populist Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Populist Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Revival Famous Question random-forest Good Answer Nice Answer Enlightened Good Answer Curious Caucus Good Answer Great Answer scikits Yearling Custodian Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Populist Guru Nice Answer Guru Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58641,838723,883808,NULL,NULL,NULL,0,NULL,NULL 58642,8640,119718,NULL,NULL,NULL,0,NULL,NULL 58643,99716,385622,Curious Yearling Famous Question Yearling Census Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 58644,85137,264064,Notable Question Commentator Critic Caucus,NULL,NULL,0,NULL,NULL 58645,8675,441485,Supporter,NULL,NULL,0,NULL,NULL 58646,129334,840692,NULL,NULL,NULL,0,NULL,NULL 58647,38447,1442591,NULL,NULL,NULL,0,NULL,NULL 58648,705623,256806,Necromancer,NULL,NULL,0,NULL,NULL 58649,467967,68003,Popular Question Notable Question Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 58650,377075,243475,Yearling,NULL,NULL,0,NULL,NULL 58651,105872,218000,NULL,NULL,NULL,0,NULL,NULL 58652,485149,598379,NULL,NULL,NULL,0,NULL,NULL 58653,120902,286679,Yearling,NULL,NULL,0,NULL,NULL 58654,55781,262624,NULL,NULL,NULL,0,NULL,NULL 58655,635684,582816,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58656,308474,60241,NULL,NULL,NULL,0,NULL,NULL 58657,485403,403556,NULL,NULL,NULL,0,NULL,NULL 58658,287786,527794,NULL,NULL,NULL,0,NULL,NULL 58659,3458355,1558051,NULL,NULL,NULL,0,NULL,NULL 58660,1061159,1366570,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58661,165200,226866,NULL,NULL,NULL,0,NULL,NULL 58662,10384497,1456422,NULL,NULL,NULL,0,NULL,NULL 58663,11370178,1456422,NULL,NULL,NULL,0,NULL,NULL 58664,8003209,1456422,NULL,NULL,NULL,0,NULL,NULL 58665,269181,1456422,NULL,NULL,NULL,0,NULL,NULL 58666,497751,1388854,NULL,NULL,NULL,0,NULL,NULL 58667,302676,1441681,NULL,NULL,NULL,0,NULL,NULL 58668,301411,1450363,Necromancer,NULL,NULL,0,NULL,NULL 58669,128489,76899,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58670,111544,532828,Student Supporter Scholar Teacher,NULL,NULL,0,NULL,NULL 58671,1949832,1075448,NULL,NULL,NULL,0,NULL,NULL 58672,281293,746678,NULL,NULL,NULL,0,NULL,NULL 58673,32280,267348,Custodian Yearling Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 58674,888597,509236,Revival,NULL,NULL,0,NULL,NULL 58675,1559220,1460918,Necromancer Editor Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 58676,209570,1460918,Necromancer Editor Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 58677,159069,48383,Popular Question Guru Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 58678,494297,951478,NULL,NULL,NULL,0,NULL,NULL 58679,1623490,540239,Student,NULL,NULL,0,NULL,NULL 58680,1078371,617038,Revival Necromancer,NULL,NULL,0,NULL,NULL 58681,51401,783851,Yearling Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 58682,164056,95369,Popular Question Nice Question Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer Yearling Tumbleweed Nice Answer,NULL,NULL,0,NULL,NULL 58683,193372,415001,Autobiographer,NULL,NULL,0,NULL,NULL 58684,379617,91729,Popular Question Nice Question Popular Question Popular Question Notable Question Yearling Notable Question Good Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Custodian Famous Question Favorite Question Custodian Custodian Custodian Popular Question Custodian Popular Question Custodian Notable Question Notable Question Yearling Popular Question Strunk & White Notable Question Notable Question Popular Question Favorite Question Famous Question Popular Question Great Question Reviewer Yearling Steward Notable Question Stellar Question Notable Question Reviewer Nice Question,NULL,NULL,0,NULL,NULL 58685,544575,534761,Nice Question Nice Question Popular Question Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 58686,147044,455137,Notable Question Guru Good Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Famous Question Notable Question Custodian Custodian Great Question Custodian Custodian Good Question Nice Question Favorite Question Yearling Famous Question Nice Answer Stellar Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58687,8712227,455137,Notable Question Guru Good Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Famous Question Notable Question Custodian Custodian Great Question Custodian Custodian Good Question Nice Question Favorite Question Yearling Famous Question Nice Answer Stellar Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58688,113360,160406,Nice Question Notable Question Favorite Question Nice Question Notable Question Nice Answer Popular Question Good Question Nice Answer Notable Question Nice Question Notable Question Yearling Nice Answer Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Notable Question Famous Question Famous Question Yearling Nice Question Nice Question Notable Question Notable Question Announcer Popular Question Notable Question Famous Question Yearling Great Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58689,635574,828720,NULL,NULL,NULL,0,NULL,NULL 58690,4879520,1037129,NULL,NULL,NULL,0,NULL,NULL 58691,53169,321194,Nice Answer,NULL,NULL,0,NULL,NULL 58692,3170341,811619,NULL,NULL,NULL,0,NULL,NULL 58693,98831,957218,NULL,NULL,NULL,0,NULL,NULL 58694,233167,1174,Good Answer Nice Answer Enlightened Popular Question Yearling Famous Question Notable Question Notable Question Famous Question Yearling Notable Question Notable Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58695,1208490,447597,NULL,NULL,NULL,0,NULL,NULL 58696,134415,143902,Informed Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 58697,208516,1342296,NULL,NULL,NULL,0,NULL,NULL 58698,270164,511939,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 58699,3359572,511939,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 58700,435195,273231,Yearling Yearling Good Question Custodian Custodian Citizen Patrol Custodian Explainer Nice Answer Yearling Caucus Civic Duty Informed,NULL,NULL,0,NULL,NULL 58701,177800,1002269,NULL,NULL,NULL,0,NULL,NULL 58702,6778628,1002269,NULL,NULL,NULL,0,NULL,NULL 58703,147392,1001457,NULL,NULL,NULL,0,NULL,NULL 58704,88254,197178,Famous Question Nice Answer Yearling Critic Popular Question Caucus,NULL,NULL,0,NULL,NULL 58705,435979,327725,Critic Enthusiast Yearling Caucus Caucus Popular Question Yearling Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 58706,553,233116,NULL,NULL,NULL,0,NULL,NULL 58707,857233,582174,NULL,NULL,NULL,0,NULL,NULL 58708,886056,633341,Popular Question Yearling Necromancer Curious,NULL,NULL,0,NULL,NULL 58709,118719,176315,Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58710,3287,221597,NULL,NULL,NULL,0,NULL,NULL 58711,1516332,850682,NULL,NULL,NULL,0,NULL,NULL 58712,21852,19759,Yearling Nice Answer Good Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 58713,560797,446978,Notable Question Citizen Patrol Caucus Popular Question Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 58714,193946,330708,NULL,NULL,NULL,0,NULL,NULL 58715,1452562,136216,NULL,NULL,NULL,0,NULL,NULL 58716,1161665,1521264,Popular Question Notable Question Popular Question Curious Popular Question Popular Question Caucus Critic Constituent Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 58717,1115399,730525,NULL,NULL,NULL,0,NULL,NULL 58718,1453835,491584,Popular Question Informed Autobiographer Self-Learner Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 58719,1518723,1389787,NULL,NULL,NULL,0,NULL,NULL 58720,236819,596934,NULL,NULL,NULL,0,NULL,NULL 58721,169538,728182,NULL,NULL,NULL,0,NULL,NULL 58722,102094,1326606,NULL,NULL,NULL,0,NULL,NULL 58723,887533,1321022,NULL,NULL,NULL,0,NULL,NULL 58724,83068,1011297,NULL,NULL,NULL,0,NULL,NULL 58725,202144,603459,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58726,556635,949781,NULL,NULL,NULL,0,NULL,NULL 58727,350415,1448174,NULL,NULL,NULL,0,NULL,NULL 58728,556527,1550216,NULL,NULL,NULL,0,NULL,NULL 58729,620897,453,Guru Yearling Yearling Yearling Great Answer Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 58730,33544,1017252,Critic Nice Question,NULL,NULL,0,NULL,NULL 58731,555054,965367,NULL,NULL,NULL,0,NULL,NULL 58732,100074,1074134,NULL,NULL,NULL,0,NULL,NULL 58733,63876,1496763,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58734,658150,980647,NULL,NULL,NULL,0,NULL,NULL 58735,193287,278265,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58736,433764,1092892,NULL,NULL,NULL,0,NULL,NULL 58737,399467,287923,Famous Question Good Question Nice Question Yearling Custodian Popular Question Necromancer Famous Question Popular Question Notable Question Nice Answer Yearling Popular Question Nice Answer Notable Question Popular Question Popular Question Yearling Good Question Good Answer Popular Question Popular Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 58738,8703903,287923,Famous Question Good Question Nice Question Yearling Custodian Popular Question Necromancer Famous Question Popular Question Notable Question Nice Answer Yearling Popular Question Nice Answer Notable Question Popular Question Popular Question Yearling Good Question Good Answer Popular Question Popular Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 58739,722382,714409,Fanatic,NULL,NULL,0,NULL,NULL 58740,96769,1556461,NULL,NULL,NULL,0,NULL,NULL 58741,254106,297114,Notable Question Nice Answer Great Answer Famous Question Popular Question Famous Question Yearling Famous Question Popular Question Notable Question Nice Answer Popular Question Notable Question Nice Question Popular Question Nice Answer Notable Question Popular Question Nice Answer Popular Question Famous Question Popular Question Notable Question Nice Question Nice Answer Notable Question Popular Question Notable Question Nice Answer Notable Question Great Question Good Question Notable Question Yearling Good Question Good Question Nice Question Popular Question Guru Notable Question Notable Question Notable Question Notable Question Documentation User Notable Question Good Answer Favorite Question Popular Question Popular Question Enlightened Popular Question Yearling Good Question Popular Question Good Question Nice Question Great Question Notable Question,NULL,NULL,0,NULL,NULL 58742,14897,951621,NULL,NULL,NULL,0,NULL,NULL 58743,28623,1403793,Editor Excavator Enthusiast,NULL,NULL,0,NULL,NULL 58744,11386394,1403793,Editor Excavator Enthusiast,NULL,NULL,0,NULL,NULL 58745,369682,1141820,NULL,NULL,NULL,0,NULL,NULL 58746,222023,61061,Yearling Nice Answer Great Answer Popular Question Yearling Necromancer Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 58747,6938,691032,Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Good Answer Notable Question Notable Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Benefactor Notable Question Notable Question Yearling Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 58748,297100,342109,NULL,NULL,NULL,0,NULL,NULL 58749,443128,660559,NULL,NULL,NULL,0,NULL,NULL 58750,3231600,20277,Steward Populist Great Answer Good Answer Good Question Yearling Caucus Nice Answer Caucus Yearling Guru Caucus Constituent Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 58751,532767,292555,Good Question Popular Question Good Answer Enlightened Yearling Revival Popular Question Good Answer Notable Question Nice Answer Enlightened Great Answer Good Answer Nice Answer Yearling .net Custodian Caucus Revival Necromancer Announcer Popular Question Notable Question Popular Question Revival Yearling Popular Question debugging Popular Question Good Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 58752,515186,1214544,Revival,NULL,NULL,0,NULL,NULL 58753,101606,298131,NULL,NULL,NULL,0,NULL,NULL 58754,516577,688961,NULL,NULL,NULL,0,NULL,NULL 58755,379378,993369,Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58756,188541,1011122,NULL,NULL,NULL,0,NULL,NULL 58757,2205185,662064,Popular Question,NULL,NULL,0,NULL,NULL 58758,405011,326654,Notable Question Revival Yearling Custodian Custodian Custodian Informed Caucus,NULL,NULL,0,NULL,NULL 58759,1570028,472619,NULL,NULL,NULL,0,NULL,NULL 58760,1154669,835540,NULL,NULL,NULL,0,NULL,NULL 58761,317017,859832,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58762,1328035,859832,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58763,465741,106539,Notable Question,NULL,NULL,0,NULL,NULL 58764,224835,1478217,Popular Question Yearling Great Answer Proofreader Yearling Documentation User Popular Question Excavator Yearling Popular Question,NULL,NULL,0,NULL,NULL 58765,399721,9903,Notable Question Famous Question Nice Answer Enlightened Good Answer Nice Answer Famous Question Popular Question Nice Question Famous Question Revival Populist Popular Question Yearling Revival Famous Question Nice Answer Enlightened Necromancer Caucus Proofreader Favorite Question Constituent Census Custodian Quorum Enthusiast Famous Question Famous Question Caucus Constituent Yearling Documentation User Announcer Nice Question Nice Answer Census Nice Answer Good Question Caucus Notable Question Popular Question Nice Question Necromancer Announcer Notable Question Yearling,NULL,code gitkeep code isn’t documented because it’s not feature of Git ppGit href https git wiki kernel org index php Git FAQ Can add empty directories 3F rel noreferrer cannot add completely empty directory People who want to track empty directories in Git have created the convention of putting files called code gitkeep code in these directories The file could be called anything Git assigns no special significance to this name ppThere is competing convention of adding code gitignore code file to the empty directories to get them tracked but some people see this as confusing since the goal is to keep the empty directories not ignore them code gitignore code is also used to list files that should be ignored by Git when looking for untracked files keep and gitkeep work however my opinion is unchanged the build tool and readme should reflect what new directories will be created,0,NULL,NULL 58766,1037553,1184301,Necromancer,NULL,NULL,0,NULL,NULL 58767,16275,360864,NULL,NULL,NULL,0,NULL,NULL 58768,1219844,1364635,NULL,NULL,NULL,0,NULL,NULL 58769,31512,988450,NULL,NULL,NULL,0,NULL,NULL 58770,83931,985844,NULL,NULL,NULL,0,NULL,NULL 58771,1447705,501712,NULL,NULL,NULL,0,NULL,NULL 58772,395680,441878,Notable Question Popular Question Notable Question Necromancer Yearling Necromancer Documentation User Necromancer Census Famous Question Revival Yearling Custodian Nice Answer Necromancer Necromancer Yearling Nice Answer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 58773,363795,1461312,Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 58774,132310,411264,Commentator,NULL,NULL,0,NULL,NULL 58775,208887,1190770,NULL,NULL,NULL,0,NULL,NULL 58776,895803,1379654,Popular Question,NULL,NULL,0,NULL,NULL 58777,53364,115025,Nice Question Popular Question Notable Question Notable Question Notable Question Nice Question Yearling Notable Question Nice Question Popular Question Popular Question Self-Learner Famous Question Popular Question Notable Question Popular Question Popular Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 58778,888123,448393,Popular Question Notable Question Custodian Popular Question Caucus Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58779,9449808,870346,NULL,NULL,NULL,0,NULL,NULL 58780,51041,476626,Supporter,NULL,NULL,0,NULL,NULL 58781,214409,344333,Nice Answer Enlightened Yearling Caucus Critic Good Answer Caucus Custodian Citizen Patrol Yearling Guru Announcer,NULL,NULL,0,NULL,NULL 58782,229376,134429,NULL,NULL,NULL,0,NULL,NULL 58783,722420,773744,Famous Question Good Question Informed Yearling,NULL,NULL,0,NULL,NULL 58784,68946,137770,Favorite Question Yearling Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 58785,68155,45846,Nice Question,NULL,NULL,0,NULL,NULL 58786,308404,1230632,Necromancer Yearling,NULL,NULL,0,NULL,NULL 58787,156596,679474,Nice Answer Good Answer Nice Answer Citizen Patrol Yearling Notable Question Caucus Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 58788,114309,497127,NULL,NULL,NULL,0,NULL,NULL 58789,908310,149901,Notable Question Good Answer Yearling Notable Question Popular Question Yearling Announcer Great Answer Inquisitive Yearling,NULL,NULL,0,NULL,NULL 58790,293063,486332,Nice Answer Custodian Custodian Yearling Caucus Constituent Peer Pressure Revival Nice Answer android Caucus Necromancer Good Answer Good Answer Documentation User Yearling Good Answer Nice Answer Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 58791,132327,575662,NULL,NULL,NULL,0,NULL,NULL 58792,60871,1120870,NULL,NULL,NULL,0,NULL,NULL 58793,312263,944823,Popular Question Nice Question Notable Question Tumbleweed Scholar Excavator,NULL,NULL,0,NULL,NULL 58794,271605,324140,Necromancer Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 58795,201605,931428,Revival Revival Custodian Notable Question Yearling Nice Answer Necromancer Necromancer Revival Great Answer Necromancer Nice Answer Yearling Necromancer Cleanup Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 58796,53575,780157,Unsung Hero Yearling Caucus Yearling Custodian Census Good Answer Caucus Constituent Populist Yearling,NULL,NULL,0,NULL,NULL 58797,205032,464890,Necromancer Popular Question Announcer Announcer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 58798,962403,182551,Peer Pressure Famous Question Necromancer Popular Question Good Question Inquisitive Benefactor Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Announcer Notable Question Nice Question Notable Question Popular Question Popular Question Famous Question Custodian Yearling,NULL,NULL,0,NULL,NULL 58799,445320,143509,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58800,610788,1350832,NULL,NULL,NULL,0,NULL,NULL 58801,56427,206720,python Nice Answer Nice Question Good Question Notable Question Notable Question Notable Question Notable Question Popular Question Nice Answer Notable Question Yearling Nice Answer Enlightened Caucus Populist Popular Question Good Question Notable Question symfony Necromancer Notable Question Popular Question Great Question Populist Caucus Constituent Nice Answer Nice Answer Famous Question Notable Question Great Answer Yearling Nice Question Census Nice Answer Archaeologist Nice Question Caucus Good Answer Good Question Good Question Yearling Good Answer,NULL,pWell some time passed since 2008 and it time for some fresh answer Since Django you will be able to create custom User class Actually at the time writing this it already merged into master so you can try it out ppThere some information about it in href https docs djangoproject com en dev topics auth customizing full example docs or if you want to dig deeper into it in href https github com django django commit 70a0de37d132e5f1514fb939875f69649f103124 this commit ppAll you have to do is add codeAUTH USER MODEL code to settings with path to custom user class which extends either codeAbstractBaseUser code more customizable version or codeAbstractUser code more or less old User class you can extend ppFor people that are lazy to click here code example taken from href https docs djangoproject com en dev topics auth full example docs ppre codefrom django db import modelsfrom django contrib auth models import BaseUserManager AbstractBaseUser class MyUserManager BaseUserManager def create user self email date of birth password None Creates and saves User with the given email date of birth and password if not email raise ValueError Users must have an email address user self model email MyUserManager normalize email email date of birth date of birth user set password password user save using self db return user def create superuser self username date of birth password Creates and saves superuser with the given email date of birth and password self create user username password password date of birth date of birth is admin True save using self db return uclass MyUser AbstractBaseUser email models EmailField verbose name email address max length 255 unique True date of birth models DateField is active models BooleanField default True is admin models BooleanField default False objects MyUserManager USERNAME FIELD email REQUIRED FIELDS date of birth def get full name self The user is identified by their email address return self email def get short name self The user is identified by their email address return self email def unicode self return self email def has perm self perm obj None Does the user have specific permission Simplest possible answer Yes always return True def has module perms self app label Does the user have permissions to view the app app label Simplest possible answer Yes always return True def is staff self Is the user member of staff Simplest possible answer All admins are staff return self is admin code pre The custom fields are normal model fields you can access them from templates using eg user custom field,0,NULL,NULL 58802,173873,146610,Informed Electorate Popular Question Custodian Proofreader Necromancer Popular Question Notable Question Nice Question Famous Question Yearling Popular Question Famous Question Famous Question Notable Question Necromancer Nice Question Good Question Good Question Yearling Popular Question Notable Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 58803,391366,668548,NULL,NULL,NULL,0,NULL,NULL 58804,322504,387175,Popular Question Revival,NULL,NULL,0,NULL,NULL 58805,49805,1212499,NULL,NULL,NULL,0,NULL,NULL 58806,245518,589666,NULL,NULL,NULL,0,NULL,NULL 58807,231788,229135,Informed Supporter,NULL,NULL,0,NULL,NULL 58808,1695,572268,Yearling Good Question Notable Question Yearling Popular Question Famous Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58809,2074628,225385,NULL,NULL,NULL,0,NULL,NULL 58810,33492,140396,Yearling,NULL,NULL,0,NULL,NULL 58811,362017,1322185,Commentator Nice Answer Enlightened Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 58812,662342,552733,Popular Question Yearling Popular Question Nice Answer Notable Question Notable Question Yearling Popular Question Census,NULL,NULL,0,NULL,NULL 58813,400525,1388224,Necromancer Revival Necromancer Yearling Nice Answer Nice Answer Yearling Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 58814,1531052,148736,Popular Question Notable Question Popular Question Famous Question Revival Popular Question Yearling Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Necromancer Nice Question Critic Yearling Nice Question Popular Question Popular Question Famous Question Popular Question Announcer Nice Question Notable Question Popular Question Notable Question Yearling Good Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58815,964636,187019,Necromancer Critic Yearling Revival,NULL,NULL,0,NULL,NULL 58816,299281,1407390,NULL,NULL,NULL,0,NULL,NULL 58817,435571,56944,Yearling Notable Question Nice Answer Enlightened Nice Answer Yearling Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 58818,129299,1214542,Famous Question Yearling Good Question Necromancer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 58819,209485,578919,NULL,NULL,NULL,0,NULL,NULL 58820,375963,1201132,NULL,NULL,NULL,0,NULL,NULL 58821,170008,603067,Popular Question,NULL,NULL,0,NULL,NULL 58822,69399,1379040,NULL,NULL,NULL,0,NULL,NULL 58823,663627,1255482,Nice Question Announcer Famous Question Civic Duty Census Yearling Good Question,NULL,NULL,0,NULL,NULL 58824,6584,39122,Good Answer Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 58825,201444,900943,Disciplined Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 58826,409458,1081101,Notable Question Yearling,NULL,NULL,0,NULL,NULL 58827,115090,104324,Notable Question Notable Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 58828,7702100,1161941,Student,NULL,NULL,0,NULL,NULL 58829,478223,1161941,Student,NULL,NULL,0,NULL,NULL 58830,651578,1476871,NULL,NULL,NULL,0,NULL,NULL 58831,665637,1271940,NULL,NULL,NULL,0,NULL,NULL 58832,339275,647242,Nice Answer Enlightened Notable Question Popular Question Yearling Popular Question Nice Question Good Question Yearling Popular Question Excavator Notable Question Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 58833,420724,648633,Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58834,7994,1228816,NULL,NULL,NULL,0,NULL,NULL 58835,69948,564772,NULL,NULL,NULL,0,NULL,NULL 58836,425978,659914,Nice Answer,NULL,NULL,0,NULL,NULL 58837,578131,783186,NULL,NULL,NULL,0,NULL,NULL 58838,446654,10475,Famous Question Good Question Great Answer Popular Question Nice Question Popular Question Yearling Nice Question Famous Question Notable Question Famous Question Nice Question Inquisitive Popular Question Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 58839,458967,304655,Notable Question,NULL,NULL,0,NULL,NULL 58840,197388,1189076,Editor,NULL,NULL,0,NULL,NULL 58841,319657,1279385,NULL,NULL,NULL,0,NULL,NULL 58842,790117,436287,Good Answer Good Answer Popular Question Announcer Yearling Populist Custodian Custodian Nice Answer Enlightened Custodian Custodian Civic Duty Popular Question Custodian Nice Answer Popular Question Great Answer Yearling Organizer Popular Question Explainer Custodian Great Answer Nice Question Good Answer Yearling Necromancer,NULL,pIn git the magic word codeexclude code was added to codepathspec codes So if you want to search for codefoobar code in every file except for those matching code java code you can do ppre codegit grep foobar exclude java code prepOr using the code code short form for exclude ppre codegit grep foobar java code prepNote that when using an exclude codepathspec code you must have at least one inclusive codepathspec code In the above examples this is the code code recursively include everything under the current directory ppYou could also use something like code top code short form code code to include everything from the top of the repo But then you probably also want to adjust your exclude codepathspec code to start from the top as well code java code otherwise it would only exclude code java code files from under your current directory ppThere good reference for all the magic words allowed in codepathspec code at href http git scm com docs gitglossary def pathspec git scm com or just codegit help glossary code For some reason the docs at href https www kernel org pub software scm git docs gitglossary html def pathspec kernel org are really out of date even though they often come up first in google searches this solution has nothing to do with how the matched files are reported But just tried git grep and git ls files from subdirectories and both report filenames relative to the current directory even when you use the top include pathspec Both commands have the full name option to report names relative to the root but that off by default pIt easy enough to do with the code code and code TIMEOUT code options to codenc code but not all systems have codenc code installed If you have recent enough version of bash this will work ppre code Connection successful timeout bash cat lt dev null gt dev tcp google com 80 echo Connection failure prior to the timeout timeout bash cat lt dev null gt dev tcp sfsfdfdff com 80 bash sfsfdfdff com Name or service not knownbash dev tcp sfsfdfdff com 80 Invalid argument echo Connection not established by the timeout timeout bash cat lt dev null gt dev tcp google com 81 echo 124 code prepWhat happening here is that codetimeout code will run the subcommand and kill it if it doesn exit within the specified timeout second in the above example In this case codebash code is the subcommand and uses its special href http www tldp org LDP abs html devref1 html DEVTCP dev tcp handling to try and open connection to the server and port specified If codebash code can open the connection within the timeout codecat code will just close it immediately since it reading from code dev null code and exit with status code of code0 code which will propagate through codebash code and then codetimeout code If codebash code gets connection failure prior to the specified timeout then codebash code will exit with an exit code of which codetimeout code will also return And if bash isn able to establish connection and the specified timeout expires then codetimeout code will kill codebash code and exit with status of 124 Just wanted to mention that timeout appears to be part of GNU coreutils and can be installed on macs with homebrew brew install coreutils It ll then be available as gtimeout,0,NULL,NULL 58843,88466,485561,Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened vector Nice Question Revival Guru Nice Answer Enlightened Yearling Notable Question Announcer Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Announcer Announcer Good Answer Good Answer Nice Answer Necromancer Yearling Good Answer Nice Answer Good Answer Booster Good Answer Great Question Nice Answer Nice Answer Enlightened Nice Answer Good Answer Announcer Good Answer Nice Answer Enlightened Announcer Yearling Good Answer Booster,NULL,pThe easiest proof that this algorithm does not produce uniformly random permutation ppre codefor int lt swap rand code prepIs that it generates 27 possible outcomes but there are only permutations Since does not divide 27 there must be some permutation is that is picked too much and some that is picked to little ppWhy is an algorithm optimal Well random shuffle must touch every input sometimes to change them so any optimal algorithm needs to do at least work ppWhy is the Knuth algorithm correct That requires little bit more insight You can prove via induction that the first item is selected with the correct probability each item is equally likely to be first and then prove that the inductive step holds as you advance through the loop that the second third etc items are also selected with the correct probability from the remaining portions of the array The algorithm iterates three times in each of those three times the code picks one of three options at random This is or 27 different possible code paths,0,NULL,NULL 58844,41569,299099,Guru,NULL,NULL,0,NULL,NULL 58845,19894,336098,NULL,NULL,NULL,0,NULL,NULL 58846,905553,202576,Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Caucus Constituent Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Revival Popular Question Caucus Constituent Popular Question Inquisitive Notable Question Popular Question Notable Question Popular Question Popular Question Citizen Patrol Popular Question Yearling Notable Question Notable Question Nice Question Popular Question Popular Question Famous Question Self-Learner Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 58847,146626,529594,NULL,NULL,NULL,0,NULL,NULL 58848,7680592,1357898,NULL,NULL,NULL,0,NULL,NULL 58849,167608,1313762,NULL,NULL,NULL,0,NULL,NULL 58850,141417,475909,NULL,NULL,NULL,0,NULL,NULL 58851,910790,502445,NULL,NULL,NULL,0,NULL,NULL 58852,25359,434255,Student Supporter Announcer,NULL,NULL,0,NULL,NULL 58853,2934143,197906,Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 58854,189299,560577,Popular Question Critic Student Notable Question Editor Caucus Constituent,NULL,NULL,0,NULL,NULL 58855,136933,1390983,Teacher Autobiographer,NULL,NULL,0,NULL,NULL 58856,3941501,895315,Nice Answer Yearling Nice Answer Good Answer Yearling Caucus Necromancer Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 58857,48781,895315,Nice Answer Yearling Nice Answer Good Answer Yearling Caucus Necromancer Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 58858,44425,227755,Notable Question Necromancer Nice Question Pundit Necromancer Necromancer Popular Question ruby-on-rails Popular Question Necromancer Nice Answer Caucus Constituent Yearling Notable Question Census Necromancer Popular Question Popular Question Announcer Nice Answer Nice Answer Necromancer Yearling Good Question Famous Question Necromancer Caucus Custodian Nice Answer Guru Nice Answer Custodian,NULL,pAn easier solution is to use the user pass format directly in the URL ppUsing the href https github com mikeal request rel noreferrer request library ppre codevar request require request username john password 1234 url http username password example com request url url function error response body Do more stuff with body here code prepI ve written little href http www haykranen nl 2011 06 21 basic http authentication in node js using the request module rel noreferrer blogpost about this as well It is not fair to say compromised clients can expose passwords Compromised client simply means all bets are off However your deprecation warning is fair,0,NULL,NULL 58859,345971,614896,NULL,NULL,NULL,0,NULL,NULL 58860,68112,641327,Disciplined,NULL,NULL,0,NULL,NULL 58861,1104840,833063,NULL,NULL,NULL,0,NULL,NULL 58862,105251,299583,Editor,NULL,NULL,0,NULL,NULL 58863,597401,1037345,Good Answer Great Answer Announcer Yearling Caucus Custodian Announcer Custodian Caucus Documentation User Yearling Revival Caucus Nice Answer Enlightened Good Answer Guru android Custodian Yearling,NULL,NULL,0,NULL,NULL 58864,156908,720869,NULL,NULL,NULL,0,NULL,NULL 58865,331132,1090106,Teacher Yearling,NULL,NULL,0,NULL,NULL 58866,5035992,501934,Supporter,NULL,NULL,0,NULL,NULL 58867,60876,501934,Supporter,NULL,NULL,0,NULL,NULL 58868,320493,840987,NULL,NULL,NULL,0,NULL,NULL 58869,7117330,910942,NULL,NULL,NULL,0,NULL,NULL 58870,325664,910942,NULL,NULL,NULL,0,NULL,NULL 58871,337803,875699,NULL,NULL,NULL,0,NULL,NULL 58872,437603,1022136,NULL,NULL,NULL,0,NULL,NULL 58873,1266496,1022136,NULL,NULL,NULL,0,NULL,NULL 58874,119360,678275,Curious,NULL,NULL,0,NULL,NULL 58875,922915,134904,Great Answer Nice Answer Necromancer Good Answer Necromancer Notable Question Necromancer Famous Question Populist Necromancer Good Question Necromancer Great Question Necromancer Yearling Popular Question Popular Question Nice Answer Notable Question Necromancer Popular Question Famous Question Good Question Necromancer Announcer Yearling Nice Answer Popular Question Nice Question Nice Answer Great Answer Populist Nice Answer Nice Answer Nice Answer Yearling Necromancer Nice Answer Favorite Question,NULL,NULL,0,NULL,NULL 58876,36523,211750,Popular Question Yearling,NULL,NULL,0,NULL,NULL 58877,951254,1447137,Popular Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 58878,59270,402551,Notable Question Notable Question Notable Question Notable Question Yearling Famous Question Notable Question Custodian Yearling Great Answer Documentation User Nice Question Custodian Yearling,NULL,NULL,0,NULL,NULL 58879,63206,1217568,NULL,NULL,NULL,0,NULL,NULL 58880,848467,414005,Notable Question,NULL,NULL,0,NULL,NULL 58881,640979,448470,Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58882,155899,313259,Census,NULL,NULL,0,NULL,NULL 58883,134658,1021201,NULL,NULL,NULL,0,NULL,NULL 58884,49571,926560,Popular Question Notable Question Necromancer Popular Question Yearling Necromancer Notable Question Popular Question Popular Question Notable Question Notable Question Yearling Nice Answer Notable Question Revival Nice Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58885,1102151,1356742,Tumbleweed,NULL,NULL,0,NULL,NULL 58886,170022,233634,Popular Question Yearling Good Question Nice Question Famous Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 58887,56013,47633,Famous Question Notable Question Famous Question Popular Question Popular Question Notable Question Great Question Stellar Question Notable Question Notable Question Nice Answer Nice Question Nice Answer Famous Question Notable Question Necromancer Favorite Question Notable Question Famous Question Famous Question Notable Question Necromancer Notable Question Good Question Good Question Famous Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Nice Answer Notable Question Stellar Question Nice Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Famous Question Famous Question Notable Question Nice Question Nice Question Nice Question Popular Question Notable Question Popular Question Famous Question Good Answer Popular Question Notable Question Famous Question Notable Question Famous Question Famous Question Notable Question Popular Question Great Question Favorite Question Famous Question Favorite Question Good Question Popular Question Popular Question Nice Question Nice Question Good Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Great Question Favorite Question Notable Question Famous Question Notable Question Popular Question Famous Question Famous Question Electorate Popular Question Popular Question Nice Question Good Answer Popular Question Good Question Socratic Good Question Famous Question Popular Question Nice Question Popular Question Good Question Popular Question Good Question Nice Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 58888,1767164,761478,NULL,NULL,NULL,0,NULL,NULL 58889,111368,432115,Famous Question Notable Question Good Question Custodian Yearling Nice Answer Popular Question Custodian playframework-2.0 Notable Question Nice Question Popular Question Caucus Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 58890,108918,642485,Yearling Necromancer Good Question Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 58891,858995,1058272,NULL,NULL,NULL,0,NULL,NULL 58892,361803,1367970,NULL,NULL,NULL,0,NULL,NULL 58893,6701302,1383766,Commentator Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58894,31503,1383766,Commentator Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 58895,542463,652514,Not a Robot Informed,NULL,NULL,0,NULL,NULL 58896,271766,390664,NULL,NULL,NULL,0,NULL,NULL 58897,1311129,855893,Critic Excavator,NULL,NULL,0,NULL,NULL 58898,185993,508136,Necromancer Nice Answer Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 58899,36362,1131034,Yearling Yearling,NULL,NULL,0,NULL,NULL 58900,459401,1108096,Popular Question,NULL,NULL,0,NULL,NULL 58901,51380,164989,Necromancer Popular Question Yearling Necromancer Nice Answer Nice Answer Yearling Announcer Notable Question,NULL,pIn my case ended up doing it by implementing Parcelable wrapper around the SparseBooleanArray like this ppre codeimport android os Parcel import android os Parcelable import android util SparseBooleanArray public class SparseBooleanArrayParcelable extends SparseBooleanArray implements Parcelable public static Parcelable Creator lt SparseBooleanArrayParcelable gt CREATOR new Parcelable Creator lt SparseBooleanArrayParcelable gt public SparseBooleanArrayParcelable createFromParcel Parcel source SparseBooleanArrayParcelable read new SparseBooleanArrayParcelable int size source readInt int keys new int size boolean values new boolean size source readIntArray keys source readBooleanArray values for int lt size read put keys values return read public SparseBooleanArrayParcelable newArray int size return new SparseBooleanArrayParcelable size public SparseBooleanArrayParcelable public SparseBooleanArrayParcelable SparseBooleanArray sparseBooleanArray for int lt sparseBooleanArray size this put sparseBooleanArray keyAt sparseBooleanArray valueAt public int describeContents return public void writeToParcel Parcel dest int flags int keys new int size boolean values new boolean size for int lt size keys keyAt values valueAt dest writeInt size dest writeIntArray keys dest writeBooleanArray values code prepThis allows you to save and load your SparseBooleanArray by just doing ppre codeBundle bundle For your activity fragment state to include in an intent SparseBooleanArray sbarray Probably from your listview getCheckedItemPositions Write itbundle putParcelable myBooleanArray new SparseBooleanArrayParcelable sbarray Read it backsbarray SparseBooleanArray bundle getParcelable myBooleanArray code prepJust my 02€ aly as you can see here https developer android com reference android os Parcel html writeSparseBooleanArray android util SparseBooleanArray that method is not even in released version of the API while this answer has already four years Anyway wouldn jump too quickly into using those new methods just yet if were you pIn my case ended up doing it by implementing Parcelable wrapper around the SparseBooleanArray like this ppre codeimport android os Parcel import android os Parcelable import android util SparseBooleanArray public class SparseBooleanArrayParcelable extends SparseBooleanArray implements Parcelable public static Parcelable Creator lt SparseBooleanArrayParcelable gt CREATOR new Parcelable Creator lt SparseBooleanArrayParcelable gt public SparseBooleanArrayParcelable createFromParcel Parcel source SparseBooleanArrayParcelable read new SparseBooleanArrayParcelable int size source readInt int keys new int size boolean values new boolean size source readIntArray keys source readBooleanArray values for int lt size read put keys values return read public SparseBooleanArrayParcelable newArray int size return new SparseBooleanArrayParcelable size public SparseBooleanArrayParcelable public SparseBooleanArrayParcelable SparseBooleanArray sparseBooleanArray for int lt sparseBooleanArray size this put sparseBooleanArray keyAt sparseBooleanArray valueAt public int describeContents return public void writeToParcel Parcel dest int flags int keys new int size boolean values new boolean size for int lt size keys keyAt values valueAt dest writeInt size dest writeIntArray keys dest writeBooleanArray values code prepThis allows you to save and load your SparseBooleanArray by just doing ppre codeBundle bundle For your activity fragment state to include in an intent SparseBooleanArray sbarray Probably from your listview getCheckedItemPositions Write itbundle putParcelable myBooleanArray new SparseBooleanArrayParcelable sbarray Read it backsbarray SparseBooleanArray bundle getParcelable myBooleanArray code prepJust my 02€ wops just realized was looking at the wrong method there,0,NULL,NULL 58902,42248,798984,NULL,NULL,NULL,0,NULL,NULL 58903,66837,165918,NULL,NULL,NULL,0,NULL,NULL 58904,446736,550947,NULL,NULL,NULL,0,NULL,NULL 58905,320268,636243,NULL,NULL,NULL,0,NULL,NULL 58906,20438,51280,Yearling Nice Answer Popular Question Necromancer Revival Notable Question java Yearling Nice Answer Yearling Nice Answer Enlightened Revival Popular Question,NULL,NULL,0,NULL,NULL 58907,179128,485476,NULL,NULL,NULL,0,NULL,NULL 58908,226910,578419,NULL,NULL,NULL,0,NULL,NULL 58909,284426,1260627,NULL,NULL,NULL,0,NULL,NULL 58910,321758,765370,NULL,NULL,NULL,0,NULL,NULL 58911,440823,832307,Caucus,NULL,NULL,0,NULL,NULL 58912,216172,1096256,NULL,NULL,NULL,0,NULL,NULL 58913,243660,1020527,NULL,NULL,NULL,0,NULL,NULL 58914,92649,917163,Informed,NULL,NULL,0,NULL,NULL 58915,288081,926080,NULL,NULL,NULL,0,NULL,NULL 58916,62787,1014324,NULL,NULL,NULL,0,NULL,NULL 58917,180951,1143236,NULL,NULL,NULL,0,NULL,NULL 58918,337038,909878,Yearling Necromancer Yearling Supporter Custodian Critic Yearling Populist,NULL,NULL,0,NULL,NULL 58919,68332,443501,Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question Promoter Popular Question Popular Question Yearling Critic Notable Question Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 58920,54954,334357,Yearling Excavator Yearling Civic Duty Great Answer Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 58921,9426,289326,NULL,NULL,NULL,0,NULL,NULL 58922,4123404,818587,Organizer Yearling Mortarboard Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 58923,211930,13739,Notable Question Census Custodian,NULL,NULL,0,NULL,NULL 58924,898999,583990,NULL,NULL,NULL,0,NULL,NULL 58925,903402,493771,NULL,NULL,NULL,0,NULL,NULL 58926,342973,356220,NULL,NULL,NULL,0,NULL,NULL 58927,179780,4505,Good Answer Nice Answer Good Answer Yearling Caucus Good Question Revival Necromancer Good Answer Yearling Famous Question Necromancer Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 58928,6359,258689,Good Answer Nice Question Yearling Good Answer Good Answer Popular Question Good Question Famous Question Necromancer Famous Question Nice Question Nice Answer Enlightened Great Answer Notable Question Yearling Guru Necromancer Caucus Constituent Revival Notable Question Popular Question Yearling Great Question Notable Question Good Answer Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Nice Question Great Answer,NULL,Where is JAVA HOME on macOS Mojave 10 14 to Lion 10 java macos pJava is an optional package on the latest versions of macOS ppYet once installed it appears like the strongJAVA HOME strong environment variable is strongnot set properly strong different question thank you,0,NULL,NULL 58929,34593,480031,Announcer Revival Census Yearling Necromancer,NULL,NULL,0,NULL,NULL 58930,167267,118131,Famous Question Famous Question Popular Question Yearling Notable Question Popular Question Yearling Notable Question Notable Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 58931,257668,263109,Great Question Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 58932,481202,738188,Announcer Announcer Nice Question Yearling Announcer Nice Answer Yearling Critic Good Answer Yearling Nice Answer Yearling Tag Editor Documentation User Necromancer,NULL,NULL,0,NULL,NULL 58933,1433681,446237,Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 58934,1657099,873942,Necromancer,NULL,NULL,0,NULL,NULL 58935,136176,1095306,NULL,NULL,NULL,0,NULL,NULL 58936,17014,817278,NULL,NULL,NULL,0,NULL,NULL 58937,220044,280308,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 58938,257025,165407,Student Revival Necromancer,NULL,NULL,0,NULL,NULL 58939,538024,786235,Curious Commentator Popular Question Popular Question Excavator,NULL,NULL,0,NULL,NULL 58940,30409,507438,Yearling Guru,NULL,NULL,0,NULL,NULL 58941,325957,764870,Popular Question Commentator Revival Caucus Yearling Revival,NULL,pWith version 13 of Git and later code recurse submodules code can be used instead of code recursive code ppre codegit clone recurse submodules j8 git github com foo bar gitcd bar code prep supEditor’s note code j8 code is an optional performance optimization that became available in version and fetches up to submodules at time in parallel see codeman git clone code sup ppWith version of Git up until version 12 code code flag only available in version ppre codegit clone recursive j8 git github com foo bar gitcd bar code prepWith version of Git and later you can use ppre codegit clone recursive git github com foo bar gitcd bar code prepFor already cloned repos or older Git versions use ppre codegit clone git github com foo bar gitcd bargit submodule update init recursive code pre couldn find any deprecation note neither in the release notes nor in the source code recurse submodules is the documented and preferred way but recursive is not deprecated,0,NULL,NULL 58942,531,287429,NULL,NULL,NULL,0,NULL,NULL 58943,800328,178959,Necromancer Yearling Nice Answer Nice Answer Yearling Good Answer Good Answer Yearling Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 58944,493941,379702,Popular Question,NULL,NULL,0,NULL,NULL 58945,197239,1522430,NULL,NULL,NULL,0,NULL,NULL 58946,183593,579671,Yearling Nice Answer Enlightened Popular Question Nice Answer Yearling Nice Answer Notable Question Notable Question Great Answer Yearling Nice Answer android Popular Question Self-Learner Notable Question Nice Question Curious Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 58947,6508759,579671,Yearling Nice Answer Enlightened Popular Question Nice Answer Yearling Nice Answer Notable Question Notable Question Great Answer Yearling Nice Answer android Popular Question Self-Learner Notable Question Nice Question Curious Tumbleweed Famous Question,NULL,NULL,0,NULL,NULL 58948,396818,664247,NULL,NULL,NULL,0,NULL,NULL 58949,7424017,664247,NULL,NULL,NULL,0,NULL,NULL 58950,95858,650842,NULL,NULL,NULL,0,NULL,NULL 58951,1775883,258429,Popular Question Yearling Nice Question Famous Question Favorite Question Notable Question Popular Question Nice Question Famous Question Notable Question Inquisitive Popular Question Good Question Caucus Famous Question Yearling Census Notable Question Favorite Question Notable Question Good Question Great Answer Yearling Custodian,NULL,NULL,1,SYSTEM ALERT WINDOW How to get this permission automatically on Android and targetSdkVersion 23 android android permissions android marshmallow target sdk system alert window pFacebook Evernote Pocket all apps get this permission on Android automatically even though they are targeting 23 codetargetSdkVersion 23 code ppThere has been lot of documentation regarding the new Marshmallow permission model One of them is codeSYSTEM ALERT WINDOW code been promoted to above dangerous permission class thus requiring special user intervention in order for apps to be granted with those If the app has codetargetSdkVersion code 22 or lower app gets this permission automatically if requested in the manifest ppHowever ve noticed some apps that get this permission without needing to send the user to the setting special page of codeDraw over other apps code permission saw Facebook Evernote Pocket and perhaps there are more ppAnyone knows how an app can be granted this permission without the user go through codeSettings gt Apps gt Draw over other apps code ppThanks,NULL 58952,23996,582542,Nice Answer Yearling Good Answer Yearling Yearling Great Answer Good Answer,NULL,NULL,0,NULL,NULL 58953,27456,558626,NULL,NULL,NULL,0,NULL,NULL 58954,30885,16081,Nice Answer,NULL,NULL,0,NULL,NULL 58955,131497,1073738,Necromancer Yearling Nice Answer Caucus Constituent Custodian Quorum Caucus Yearling Custodian Necromancer Custodian Nice Answer Caucus Constituent Yearling Good Answer,NULL,NULL,0,NULL,NULL 58956,3504239,1073738,Necromancer Yearling Nice Answer Caucus Constituent Custodian Quorum Caucus Yearling Custodian Necromancer Custodian Nice Answer Caucus Constituent Yearling Good Answer,NULL,NULL,0,NULL,NULL 58957,1678194,514278,NULL,NULL,NULL,0,NULL,NULL 58958,174293,409386,Yearling Custodian Informed Famous Question Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 58959,73538,1389938,NULL,NULL,NULL,0,NULL,NULL 58960,2251896,1389938,NULL,NULL,NULL,0,NULL,NULL 58961,3849,552753,Student,NULL,NULL,0,NULL,NULL 58962,27780,506976,NULL,NULL,NULL,0,NULL,NULL 58963,14396,1203851,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 58964,91482,827796,Student Popular Question,NULL,NULL,0,NULL,NULL 58965,562517,135716,NULL,NULL,NULL,0,NULL,NULL 58966,532454,362445,Critic Yearling Popular Question Popular Question Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 58967,286845,1054114,Self-Learner Popular Question Nice Answer Notable Question Editor Yearling Census,NULL,NULL,0,NULL,NULL 58968,465352,185289,Famous Question,NULL,NULL,0,NULL,NULL 58969,256052,592980,NULL,NULL,NULL,0,NULL,NULL 58970,168416,191975,Nice Answer Popular Question Caucus Constituent Census Good Answer Caucus Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 58971,135932,1496317,Editor Autobiographer Commentator Critic Popular Question Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 58972,575246,993422,Supporter Editor Popular Question Census Teacher,NULL,NULL,0,NULL,NULL 58973,1210996,1101779,NULL,NULL,NULL,0,NULL,NULL 58974,554128,1530074,NULL,NULL,NULL,0,NULL,NULL 58975,142851,701627,Good Answer,NULL,NULL,0,NULL,NULL 58976,121640,162453,Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 58977,513169,332903,Necromancer,NULL,NULL,0,NULL,NULL 58978,558612,1013250,Informed Commentator Editor Teacher Caucus Enthusiast Supporter Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 58979,311036,287166,Announcer Commentator,NULL,NULL,0,NULL,NULL 58980,476,492631,Yearling Necromancer Critic Yearling Good Answer Necromancer Necromancer Nice Answer Yearling Nice Answer Popular Question Yearling Nice Answer Yearling Civic Duty Yearling Good Answer,NULL,NULL,0,NULL,NULL 58981,410751,495451,Nice Answer Enlightened Nice Answer Good Answer shell Yearling Documentation User Yearling Necromancer Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 58982,626835,118943,NULL,NULL,NULL,0,NULL,NULL 58983,853523,870095,NULL,NULL,NULL,0,NULL,NULL 58984,92923,870095,NULL,NULL,NULL,0,NULL,NULL 58985,310532,245189,Yearling Reviewer Nice Answer Nice Answer Famous Question Famous Question Yearling Custodian Custodian Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 58986,298731,1322966,Yearling Good Answer Yearling Critic Yearling Scholar Yearling,NULL,NULL,0,NULL,NULL 58987,220050,1134131,Critic Commentator Popular Question,NULL,NULL,0,NULL,NULL 58988,171139,199615,Popular Question,NULL,NULL,0,NULL,NULL 58989,7780984,1183986,Yearling Notable Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 58990,174986,324754,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 58991,3232578,1115686,NULL,NULL,NULL,0,NULL,NULL 58992,665284,1515490,Student,NULL,NULL,0,NULL,NULL 58993,574486,988067,Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 58994,210649,27557,Custodian Notable Question Commentator Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 58995,271225,1293033,Good Question Revival Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 58996,4411096,849005,NULL,NULL,NULL,0,NULL,NULL 58997,136548,886189,Popular Question,NULL,NULL,0,NULL,NULL 58998,597074,1159747,Nice Question Notable Question Yearling Famous Question Nice Question Nice Question Great Question Popular Question Custodian Notable Question Critic Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Autobiographer Notable Question Popular Question Popular Question Caucus Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Great Question Necromancer Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Favorite Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,1,gdbus call when click on panel extension icon gnome shell gnome shell extensions pIs it possible to trigger codegdbus call code on click on the panel extension icon ppIn my concrete example want to call the following command to change display brightness when clicking the extension icon ppre codegdbus call session dest org gnome SettingsDaemon Power object path org gnome SettingsDaemon Power method org gnome SettingsDaemon Power Screen StepUp session dest org gnome SettingsDaemon Power object path org gnome SettingsDaemon Power method org gnome SettingsDaemon Power Screen StepUp code pre,NULL 58999,380452,967650,NULL,NULL,NULL,0,NULL,NULL 59000,6378,385754,Self-Learner Custodian Tenacious Nice Answer Yearling Nice Answer Enlightened cocoapods Proofreader Good Answer Announcer Yearling Documentation User ios Yearling,NULL,NULL,0,NULL,NULL 59001,143798,743471,NULL,NULL,NULL,0,NULL,NULL 59002,370819,519290,NULL,NULL,NULL,0,NULL,NULL 59003,5818,982389,NULL,NULL,NULL,0,NULL,NULL 59004,232714,350598,Custodian Yearling Famous Question Self-Learner Popular Question Popular Question Nice Question Famous Question Yearling Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59005,72372,236331,Popular Question Popular Question Popular Question Necromancer Nice Question Popular Question Yearling Revival Popular Question Notable Question Necromancer Good Answer Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 59006,720074,43842,Popular Question Popular Question Yearling Popular Question Popular Question Yearling Caucus Popular Question Nice Answer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59007,107611,586026,NULL,NULL,NULL,0,NULL,NULL 59008,1077695,586026,NULL,NULL,NULL,0,NULL,NULL 59009,18566,1130972,Yearling,NULL,NULL,0,NULL,NULL 59010,85545,207894,Great Question Popular Question Necromancer Popular Question Nice Question Good Question Announcer Necromancer Yearling Famous Question Great Answer Necromancer Notable Question Popular Question Famous Question Good Question Announcer Stellar Question Yearling Revival Favorite Question Announcer Yearling,NULL,HTML5 frame by frame viewing frame seeking html html5 video html5 video pI looking for way to view HTML5 code lt video gt code frame by frame ppThe scenario Having video with an additional button that skips to the next frame when pressed ppWhat do you think is the best method to do this polliPlay the video normally href http stackoverflow com 3688177 207894 Listen to codetimeUpdate code event which on FireFox is called for every frame and then just pause the video However the other browsers don behave like Firefox liliChange the codecurrentTime code element manually to 24 of second where 24 is the frame rate have no idea how to aquire the FPS however liliAny other helpful way you can think of li olhrh2EDIT h2pI have found href http www inconduit com smpte rel nofollow noreferrer this very useful HTML5 test page which tracks all browsers ability to achieve accurate frame seeking ãoPereira sorry but haven dealt with this issue in long time remember that if you divide by frame rate ratio which is far bigger than what you need might solve the problem and give you good precision However this is just on top of my head pHow about ppre codeprog1 amp prog2 amp amp fg code prepThis will polliStart codeprog1 code liliSend it to background but keep printing its output liliStart codeprog2 code and emkeep it in foreground em so you can close it with codectrl code liliWhen you close codeprog2 code you ll return to codeprog1 code emforeground em so you can also close it with codectrl code li ol your solution has the effect that if prog2 fails to run immediately you ll get back to having prog1 in the foreground If this is desirable then it ok,0,NULL,NULL 59011,98872,1173777,NULL,NULL,NULL,0,NULL,NULL 59012,198223,1436434,NULL,NULL,NULL,0,NULL,NULL 59013,8705,1334097,NULL,NULL,NULL,0,NULL,NULL 59014,595458,1076587,Yearling,NULL,NULL,0,NULL,NULL 59015,104522,1496842,NULL,NULL,NULL,0,NULL,NULL 59016,348534,1199745,Critic,NULL,NULL,0,NULL,NULL 59017,686798,1311568,Informed Teacher Supporter Editor Student,NULL,NULL,0,NULL,NULL 59018,812520,452678,Organizer,NULL,NULL,0,NULL,NULL 59019,2978926,452678,Organizer,NULL,NULL,0,NULL,NULL 59020,1229264,388310,NULL,NULL,NULL,0,NULL,NULL 59021,120560,25544,Nice Question Notable Question Yearling Necromancer Nice Answer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 59022,178540,985790,NULL,NULL,NULL,0,NULL,NULL 59023,119830,65250,Yearling Great Answer Citizen Patrol Custodian Custodian Critic Yearling Tumbleweed Scholar Census Yearling Caucus Custodian Student,NULL,NULL,0,NULL,NULL 59024,14220,79854,NULL,NULL,NULL,0,NULL,NULL 59025,32707,7049,Yearling Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 59026,238814,1113706,NULL,NULL,NULL,0,NULL,NULL 59027,87445,598112,Popular Question Yearling Self-Learner Nice Answer Popular Question Investor Popular Question,NULL,NULL,0,NULL,NULL 59028,974864,1476683,NULL,NULL,NULL,0,NULL,NULL 59029,416451,285103,Nice Answer Yearling Notable Question Yearling Good Answer Necromancer Notable Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59030,437153,1207005,NULL,NULL,NULL,0,NULL,NULL 59031,1701287,1082430,Yearling Editor Announcer Necromancer Caucus Citizen Patrol Critic Necromancer Yearling Necromancer Necromancer Caucus Custodian Custodian Revival Nice Answer Census,NULL,NULL,0,NULL,NULL 59032,851171,1082430,Yearling Editor Announcer Necromancer Caucus Citizen Patrol Critic Necromancer Yearling Necromancer Necromancer Caucus Custodian Custodian Revival Nice Answer Census,NULL,NULL,0,NULL,NULL 59033,87058,24044,Popular Question Nice Question Good Answer Popular Question Famous Question Yearling Popular Question Nice Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 59034,356161,1370312,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59035,448049,1352365,Necromancer,NULL,NULL,0,NULL,NULL 59036,383032,79934,Famous Question Notable Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 59037,411083,308386,NULL,NULL,NULL,0,NULL,NULL 59038,2427860,308386,NULL,NULL,NULL,0,NULL,NULL 59039,112451,326996,NULL,NULL,NULL,0,NULL,NULL 59040,934252,1302964,NULL,NULL,NULL,0,NULL,NULL 59041,745826,1122824,NULL,NULL,NULL,0,NULL,NULL 59042,474047,425197,NULL,NULL,NULL,0,NULL,NULL 59043,316604,1076456,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 59044,263657,17190,Nice Question Yearling Favorite Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 59045,488900,15008,Yearling Good Answer,NULL,NULL,0,NULL,NULL 59046,157483,564948,NULL,NULL,NULL,0,NULL,NULL 59047,432989,162932,Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59048,491659,287804,NULL,NULL,NULL,0,NULL,NULL 59049,648128,988238,Census,NULL,NULL,0,NULL,NULL 59050,3145531,988238,Census,NULL,NULL,0,NULL,NULL 59051,2252469,988238,Census,NULL,NULL,0,NULL,NULL 59052,464328,784792,Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 59053,23475,144833,Popular Question Popular Question Nice Question Nice Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Yearling Famous Question Nice Question Notable Question Notable Question Nice Question Popular Question Famous Question Popular Question Great Question Nice Answer Popular Question Popular Question Famous Question Good Question Great Question Notable Question Great Question Popular Question Notable Question Nice Question Favorite Question Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Nice Question Favorite Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Favorite Question Good Question Yearling Great Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 59054,8402,410012,Necromancer Necromancer Favorite Question Great Question Yearling Reviewer Disciplined Necromancer Necromancer Yearling Revival Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 59055,84808,798701,NULL,NULL,NULL,0,NULL,NULL 59056,396907,976259,Student Editor Notable Question Curious,NULL,NULL,0,NULL,NULL 59057,116719,1446875,NULL,NULL,NULL,0,NULL,NULL 59058,145899,624037,Nice Question Yearling Notable Question Famous Question Famous Question Popular Question Favorite Question Popular Question Good Question Famous Question Popular Question Notable Question Great Question Caucus Great Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 59059,416964,848327,NULL,NULL,NULL,0,NULL,NULL 59060,4028286,848327,NULL,NULL,NULL,0,NULL,NULL 59061,725431,706600,Nice Question,NULL,NULL,0,NULL,NULL 59062,309335,885940,NULL,NULL,NULL,0,NULL,NULL 59063,171734,667777,NULL,NULL,NULL,0,NULL,NULL 59064,243586,787112,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59065,235250,216880,Popular Question Commentator Critic Tumbleweed Curious Notable Question Good Answer Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59066,414905,537417,NULL,NULL,NULL,0,NULL,NULL 59067,9556,1183357,Popular Question,NULL,NULL,0,NULL,NULL 59068,161528,208427,Yearling Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59069,80414,644419,Popular Question Good Question Yearling Custodian Notable Question Notable Question Popular Question Self-Learner Yearling Nice Question Notable Question Yearling Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59070,127671,218544,Student Commentator,NULL,NULL,0,NULL,NULL 59071,428483,107341,Famous Question Necromancer Critic Notable Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 59072,238451,765598,Notable Question Census Popular Question Census,NULL,NULL,0,NULL,NULL 59073,78529,638106,Popular Question,NULL,NULL,0,NULL,NULL 59074,291964,117502,Notable Question Yearling Notable Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 59075,78306,749159,NULL,NULL,NULL,0,NULL,NULL 59076,42690,1141275,Yearling Popular Question Revival Strunk & White Yearling Announcer Nice Answer Yearling Informed Proofreader Custodian,NULL,NULL,0,NULL,NULL 59077,305084,298350,NULL,NULL,NULL,0,NULL,NULL 59078,127768,797363,Yearling web-audio Tenacious Custodian Yearling javascript Notable Question Documentation User Custodian Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59079,294514,1545551,NULL,NULL,NULL,0,NULL,NULL 59080,274504,1442573,NULL,NULL,NULL,0,NULL,NULL 59081,585685,195064,Popular Question Yearling,NULL,NULL,0,NULL,NULL 59082,168680,1029215,NULL,NULL,NULL,0,NULL,NULL 59083,36742,199748,Good Answer Popular Question Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 59084,747749,290320,Supporter,NULL,NULL,0,NULL,NULL 59085,573814,1062912,Announcer Popular Question Nice Answer Nice Answer Notable Question Nice Answer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 59086,834843,1121379,Popular Question Popular Question Notable Question Student Notable Question,NULL,NULL,0,NULL,NULL 59087,76274,1085466,NULL,NULL,NULL,0,NULL,NULL 59088,3126386,1085466,NULL,NULL,NULL,0,NULL,NULL 59089,3126414,1085466,NULL,NULL,NULL,0,NULL,NULL 59090,164225,660379,NULL,NULL,NULL,0,NULL,NULL 59091,1061821,899436,NULL,NULL,NULL,0,NULL,NULL 59092,752459,179703,Yearling,NULL,NULL,0,NULL,NULL 59093,1504564,436901,NULL,NULL,NULL,0,NULL,NULL 59094,900810,478433,NULL,NULL,NULL,0,NULL,NULL 59095,368546,1336166,NULL,NULL,NULL,0,NULL,NULL 59096,428231,1314831,Popular Question,NULL,NULL,0,NULL,NULL 59097,65722,391350,Nice Answer Census,NULL,NULL,0,NULL,NULL 59098,482941,651237,Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 59099,107340,894847,Tumbleweed Student,NULL,NULL,0,NULL,NULL 59100,163727,273406,Good Question Autobiographer Popular Question Announcer,NULL,NULL,0,NULL,NULL 59101,190340,900450,Teacher Commentator Nice Question Critic,NULL,NULL,0,NULL,NULL 59102,250067,922289,Critic,NULL,NULL,0,NULL,NULL 59103,415719,294051,NULL,NULL,NULL,0,NULL,NULL 59104,1100304,1443168,NULL,NULL,NULL,0,NULL,NULL 59105,72792,704922,Census,NULL,NULL,0,NULL,NULL 59106,78755,601373,NULL,NULL,NULL,0,NULL,NULL 59107,141432,1268603,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59108,219544,775310,NULL,NULL,NULL,0,NULL,NULL 59109,595897,1346063,NULL,NULL,NULL,0,NULL,NULL 59110,362293,243256,NULL,NULL,NULL,0,NULL,NULL 59111,87371,190494,Yearling Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 59112,808150,190494,Yearling Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 59113,63731,785918,Editor Census,NULL,NULL,0,NULL,NULL 59114,3209460,1137184,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59115,1385766,1137184,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59116,992011,508302,Necromancer Yearling,NULL,NULL,0,NULL,NULL 59117,508559,529174,Scholar Editor,NULL,NULL,0,NULL,NULL 59118,30171,1170019,NULL,NULL,NULL,0,NULL,NULL 59119,948211,1128612,NULL,NULL,NULL,0,NULL,NULL 59120,1560894,1403385,NULL,NULL,NULL,0,NULL,NULL 59121,242250,571904,Nice Answer Yearling Revival Yearling Good Answer Populist Custodian Popular Question Popular Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 59122,504073,1047966,Editor Teacher Informed Autobiographer Supporter Necromancer Nice Answer Necromancer Yearling Caucus Yearling Good Answer Critic Revival Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 59123,603388,190939,NULL,NULL,NULL,0,NULL,NULL 59124,609716,946785,NULL,NULL,NULL,0,NULL,NULL 59125,23305,435839,NULL,NULL,NULL,0,NULL,NULL 59126,880820,435839,NULL,NULL,NULL,0,NULL,NULL 59127,1079977,1439895,NULL,NULL,NULL,0,NULL,NULL 59128,393143,987805,NULL,NULL,NULL,0,NULL,NULL 59129,298272,1122781,NULL,NULL,NULL,0,NULL,NULL 59130,19967,23137,NULL,NULL,NULL,0,NULL,NULL 59131,524050,910116,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 59132,39422,57986,Yearling Famous Question Good Answer Good Answer Nice Answer Notable Question Nice Question c# Popular Question Famous Question Nice Answer Enlightened Popular Question Famous Question Nice Answer Famous Question Nice Answer Revival Popular Question Nice Answer Nice Question Great Answer Favorite Question Nice Question Nice Answer Enlightened Nice Answer Enlightened Necromancer Yearling Good Answer Popular Question Notable Question Guru Necromancer Necromancer Necromancer Popular Question Nice Answer Guru Good Question Popular Question Good Answer Notable Question Great Answer Nice Answer Popular Question Great Answer Popular Question Nice Answer Nice Question Sportsmanship Good Answer Nice Answer Yearling Revival Good Answer Notable Question Nice Answer Popular Question Nice Answer Notable Question Nice Question Notable Question Nice Answer Famous Question Good Question Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 59133,6468,610777,Yearling Nice Answer Enlightened Guru Popular Question javascript Notable Question Yearling Great Answer Nice Answer Guru Popular Question Notable Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 59134,2581331,1375152,Popular Question,NULL,NULL,0,NULL,NULL 59135,1885902,1375152,Popular Question,NULL,NULL,0,NULL,NULL 59136,338395,1398218,NULL,NULL,NULL,0,NULL,NULL 59137,299190,1136764,Popular Question,NULL,NULL,0,NULL,NULL 59138,1838717,1136764,Popular Question,NULL,NULL,0,NULL,NULL 59139,238122,144566,Good Question Yearling,NULL,NULL,0,NULL,NULL 59140,590069,487696,NULL,NULL,NULL,0,NULL,NULL 59141,115472,468876,NULL,NULL,NULL,0,NULL,NULL 59142,154583,884744,NULL,NULL,NULL,0,NULL,NULL 59143,387108,549102,Nice Question Notable Question Popular Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 59144,211058,106478,Caucus Popular Question,NULL,NULL,0,NULL,NULL 59145,422015,813727,NULL,NULL,NULL,0,NULL,NULL 59146,103941,624104,NULL,NULL,NULL,0,NULL,NULL 59147,908109,113939,NULL,NULL,NULL,0,NULL,NULL 59148,121794,69899,Notable Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59149,14816,421870,Informed,NULL,NULL,0,NULL,NULL 59150,80356,1333301,NULL,NULL,NULL,0,NULL,NULL 59151,1476659,497984,Famous Question java Famous Question Yearling Great Answer Popular Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59152,11026006,731699,Tumbleweed,NULL,NULL,0,NULL,NULL 59153,16598,169255,Caucus Constituent Nice Answer Custodian Revival Census Custodian,NULL,NULL,0,NULL,NULL 59154,11953,443051,NULL,NULL,NULL,0,NULL,NULL 59155,327661,592289,Yearling Popular Question Nice Answer Nice Answer Popular Question Yearling Nice Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 59156,1135834,1286026,Notable Question Enthusiast Teacher Popular Question Custodian Curious Critic Popular Question Popular Question Yearling Caucus Notable Question Nice Question,NULL,NULL,0,NULL,NULL 59157,252389,1297197,NULL,NULL,NULL,0,NULL,NULL 59158,32928,226622,Popular Question Necromancer Enthusiast ruby Famous Question Necromancer Custodian Guru Yearling Custodian Notable Question Necromancer Good Answer Revival Nice Answer Necromancer Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 59159,608168,3059,Famous Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59160,2002786,719990,NULL,NULL,NULL,0,NULL,NULL 59161,907045,1163124,NULL,NULL,NULL,0,NULL,NULL 59162,1218154,1043661,NULL,NULL,NULL,0,NULL,NULL 59163,267390,1178148,NULL,NULL,NULL,0,NULL,NULL 59164,317186,122531,Census,NULL,NULL,0,NULL,NULL 59165,345958,795910,Nice Answer Famous Question Notable Question Popular Question Steward Yearling Popular Question Caucus Popular Question Famous Question Yearling Caucus Constituent Census Announcer Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 59166,263803,1242367,Popular Question Tumbleweed Notable Question Nice Question,NULL,NULL,0,NULL,NULL 59167,243683,14688,NULL,NULL,NULL,0,NULL,NULL 59168,137621,1559558,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59169,236197,1151722,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 59170,853344,5830,Popular Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 59171,48507,563222,Revival Census,NULL,NULL,0,NULL,NULL 59172,248520,1417041,Peer Pressure,NULL,NULL,0,NULL,NULL 59173,189083,625952,Yearling Necromancer Good Answer Necromancer Nice Answer Notable Question Notable Question Notable Question Nice Answer Caucus Constituent Yearling Necromancer Caucus Constituent Good Answer Populist Necromancer Necromancer Nice Answer Yearling Caucus Constituent Necromancer Nice Answer Announcer Revival,NULL,NULL,0,NULL,NULL 59174,364996,1553552,Enthusiast,NULL,NULL,0,NULL,NULL 59175,884237,798091,NULL,NULL,NULL,0,NULL,NULL 59176,7479518,794828,NULL,NULL,NULL,0,NULL,NULL 59177,102405,794828,NULL,NULL,NULL,0,NULL,NULL 59178,223364,1301090,Supporter,NULL,NULL,0,NULL,NULL 59179,441958,1095050,Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 59180,319544,1242645,NULL,NULL,NULL,0,NULL,NULL 59181,626312,1018526,NULL,NULL,NULL,0,NULL,NULL 59182,797899,1149895,Famous Question Informed Editor Teacher Commentator Nice Question Caucus Popular Question Census Yearling Notable Question,NULL,NULL,0,NULL,NULL 59183,911196,538739,NULL,NULL,NULL,0,NULL,NULL 59184,38803,292084,Notable Question Popular Question Yearling Good Question Good Answer Popular Question Necromancer Famous Question Nice Question Yearling Famous Question Popular Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 59185,68543,147380,Custodian Commentator Custodian Yearling Revival Yearling Revival Announcer Yearling Nice Answer,NULL,pThis can be done fairly easily using codemigrations SeparateDatabaseAndState code Basically we use database operation to rename the table concurrently with two state operations to remove the model from one app history and create it in another ph2Remove from old app h2pre codepython manage py makemigrations old app empty code prepIn the migration ppre codeclass Migration migrations Migration dependencies database operations migrations AlterModelTable TheModel newapp themodel state operations migrations DeleteModel TheModel operations migrations SeparateDatabaseAndState database operations database operations state operations state operations code preh2Add to new app h2pFirst copy the model to the new app model py then ppre codepython manage py makemigrations new app code prepThis will generate migration with naive codeCreateModel code operation as the sole operation Wrap that in codeSeparateDatabaseAndState code operation such that we don try to recreate the table Also include the prior migration as dependency ppre codeclass Migration migrations Migration dependencies old app above migration state operations migrations CreateModel name TheModel fields id models AutoField verbose name ID serialize False auto created True primary key True options db table newapp themodel bases models Model operations migrations SeparateDatabaseAndState state operations state operations code pre Generic Foreign Keys will still break You ll also need to add migration to rename the app label in django contenttypes to reflect the change,0,NULL,NULL 59186,45036,928206,NULL,NULL,NULL,0,NULL,NULL 59187,96783,518864,Editor Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59188,3921,1566497,Scholar,NULL,NULL,0,NULL,NULL 59189,721636,812761,NULL,NULL,NULL,0,NULL,NULL 59190,448460,231659,NULL,NULL,NULL,0,NULL,NULL 59191,676116,345383,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59192,1172798,909061,Curious Necromancer Notable Question Popular Question Notable Question Informed Popular Question Peer Pressure Yearling Citizen Patrol Promoter Benefactor Nice Answer Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59193,551747,634586,Citizen Patrol Popular Question Popular Question Caucus Popular Question Popular Question Popular Question Notable Question Nice Question Custodian Civic Duty Census Caucus Nice Question Famous Question Yearling Popular Question Talkative,NULL,NULL,0,NULL,NULL 59194,38684,953148,NULL,NULL,NULL,0,NULL,NULL 59195,234652,1242187,Peer Pressure Commentator,NULL,NULL,0,NULL,NULL 59196,74866,659006,NULL,NULL,NULL,0,NULL,NULL 59197,35182,650003,Yearling Popular Question Civic Duty Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59198,206273,932113,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59199,233809,1061931,NULL,NULL,NULL,0,NULL,NULL 59200,14270,184427,Popular Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 59201,564485,5043,Organizer Yearling Good Answer Popular Question Nice Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59202,133036,490806,Supporter,NULL,NULL,0,NULL,NULL 59203,1242607,318714,Notable Question Yearling,NULL,NULL,0,NULL,NULL 59204,852532,262378,Commentator Famous Question,NULL,NULL,0,NULL,NULL 59205,1584237,382433,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59206,352513,530927,NULL,NULL,NULL,0,NULL,NULL 59207,368257,844276,NULL,NULL,NULL,0,NULL,NULL 59208,167634,424542,NULL,NULL,NULL,0,NULL,NULL 59209,446912,962689,NULL,NULL,NULL,0,NULL,NULL 59210,36178,962689,NULL,NULL,NULL,0,NULL,NULL 59211,1117129,962689,NULL,NULL,NULL,0,NULL,NULL 59212,1079719,665472,NULL,NULL,NULL,0,NULL,NULL 59213,1218053,954999,NULL,NULL,NULL,0,NULL,NULL 59214,24674,238180,Popular Question Popular Question Popular Question Popular Question Nice Answer Caucus Popular Question Yearling Nice Answer Nice Answer Enlightened Popular Question Good Answer Popular Question Guru Populist php Notable Question Notable Question Notable Question javascript Yearling Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 59215,37561,766885,Autobiographer Good Answer Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 59216,406158,954819,NULL,NULL,NULL,0,NULL,NULL 59217,899202,67494,Yearling Popular Question Popular Question Popular Question Necromancer Yearling Notable Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 59218,50812,218604,Autobiographer Editor Informed,NULL,NULL,0,NULL,NULL 59219,103358,276166,Commentator,NULL,NULL,0,NULL,NULL 59220,528088,839662,NULL,NULL,NULL,0,NULL,NULL 59221,255845,383819,Necromancer Disciplined Nice Answer Civic Duty Good Answer Notable Question Notable Question Peer Pressure Yearling Popular Question Custodian Custodian Great Answer Proofreader Reviewer Custodian Cleanup Census Good Answer Custodian Necromancer Yearling Caucus Custodian Documentation User Populist Caucus Constituent Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 59222,1816076,538333,Teacher,NULL,NULL,0,NULL,NULL 59223,330436,461547,Popular Question,NULL,NULL,0,NULL,NULL 59224,41765,918338,NULL,NULL,NULL,0,NULL,NULL 59225,11180,73016,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59226,596469,829956,NULL,NULL,NULL,0,NULL,NULL 59227,141092,2109,Stellar Question Good Answer Yearling Popular Question Famous Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 59228,1417038,624752,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59229,217703,417806,Yearling Yearling Civic Duty Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 59230,669802,344075,NULL,NULL,NULL,0,NULL,NULL 59231,872179,3382,NULL,NULL,NULL,0,NULL,NULL 59232,28707,450054,Popular Question Notable Question Notable Question Famous Question Yearling Notable Question Great Question Notable Question Famous Question Yearling Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59233,7845829,1266856,Yearling Popular Question Yearling Good Answer Good Answer Curious Yearling Popular Question Reviewer,NULL,NULL,0,NULL,NULL 59234,334217,1266856,Yearling Popular Question Yearling Good Answer Good Answer Curious Yearling Popular Question Reviewer,NULL,NULL,0,NULL,NULL 59235,610535,536608,NULL,NULL,NULL,0,NULL,NULL 59236,169805,99257,Notable Question,NULL,NULL,0,NULL,NULL 59237,6358,435223,Popular Question Famous Question Nice Answer Famous Question Popular Question Notable Question Popular Question Good Question Favorite Question Notable Question Yearling Popular Question Necromancer Notable Question Notable Question Famous Question Popular Question Popular Question javascript Good Question Notable Question Yearling Nice Question Necromancer Popular Question Notable Question Great Question Census Favorite Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 59238,2604302,782795,NULL,NULL,NULL,0,NULL,NULL 59239,874019,782795,NULL,NULL,NULL,0,NULL,NULL 59240,314075,841747,NULL,NULL,NULL,0,NULL,NULL 59241,5952921,441779,Necromancer Nice Answer Yearling Good Answer Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59242,10974009,441779,Necromancer Nice Answer Yearling Good Answer Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59243,372643,706805,Necromancer,NULL,NULL,0,NULL,NULL 59244,445386,985880,NULL,NULL,NULL,0,NULL,NULL 59245,417253,323013,NULL,NULL,NULL,0,NULL,NULL 59246,215795,697604,Autobiographer Critic Necromancer Yearling Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 59247,7032653,697604,Autobiographer Critic Necromancer Yearling Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 59248,230593,175661,Revival Editor,NULL,NULL,0,NULL,NULL 59249,528369,1094136,NULL,NULL,NULL,0,NULL,NULL 59250,46249,126977,Nice Answer Yearling Popular Question Famous Question Yearling Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59251,271675,1101225,NULL,NULL,NULL,0,NULL,NULL 59252,34678,1177946,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 59253,1158235,1013680,NULL,NULL,NULL,0,NULL,NULL 59254,449329,411159,Popular Question,NULL,NULL,0,NULL,NULL 59255,449335,411159,Popular Question,NULL,NULL,0,NULL,NULL 59256,327090,223181,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 59257,106394,178060,Popular Question Nice Answer Nice Answer Nice Answer Good Answer Notable Question Notable Question Excavator Popular Question Nice Answer Yearling Popular Question Good Answer Nice Answer Enlightened Popular Question Caucus Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Notable Question Caucus Popular Question Popular Question Yearling Documentation User Notable Question Census Popular Question Nice Question Guru Nice Answer Enlightened Notable Question Famous Question Nice Answer Notable Question python Famous Question Yearling Guru Nice Question Guru,NULL,NULL,0,NULL,NULL 59258,291189,992504,Civic Duty Custodian Yearling Caucus Constituent Census Announcer Yearling Announcer Popular Question Nice Answer Enlightened Popular Question Yearling,NULL,NULL,0,NULL,NULL 59259,139208,943436,Nice Answer Nice Answer Nice Answer Yearling Nice Answer Nice Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59260,1082265,755836,NULL,NULL,NULL,0,NULL,NULL 59261,223754,506654,NULL,NULL,NULL,0,NULL,NULL 59262,84414,546883,Yearling Tag Editor Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 59263,695600,1284560,Commentator Editor Self-Learner,NULL,NULL,0,NULL,NULL 59264,38768,1130377,Yearling Informed Nice Answer Nice Question Nice Answer Necromancer Notable Question Revival Caucus Popular Question Popular Question Yearling Popular Question Nice Answer Popular Question Good Answer Nice Answer Enlightened Caucus Famous Question Yearling Notable Question Nice Question Nice Question Popular Question,NULL,pAs long as the browser implements the lt base gt tag correctly which browsers tend to ppre codefunction resolve url base url var doc document old base doc getElementsByTagName base old href old base amp amp old base href doc head doc head doc getElementsByTagName head our base old base doc head appendChild doc createElement base resolver doc createElement resolved url our base href base url resolver href url resolved url resolver href browser magic at work here if old base old base href old href else doc head removeChild our base return resolved url code prepHere jsfiddle where you can experiment with it href http jsfiddle net ecmanaut RHdnZ rel noreferrer http jsfiddle net ecmanaut RHdnZ Good idea no reason not to have friendlier default behaviour for people not passing both parameters Integrated,0,NULL,NULL 59265,336488,1189406,NULL,NULL,NULL,0,NULL,NULL 59266,144622,223545,Revival Famous Question,NULL,NULL,0,NULL,NULL 59267,8993,10627,Yearling Caucus Yearling Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 59268,322452,1067630,Yearling,NULL,NULL,0,NULL,NULL 59269,459328,164174,NULL,NULL,NULL,0,NULL,NULL 59270,409424,67895,Popular Question Student,NULL,NULL,0,NULL,NULL 59271,138477,1249680,NULL,NULL,NULL,0,NULL,NULL 59272,556584,1401110,Notable Question,NULL,NULL,0,NULL,NULL 59273,13002,1397242,Student Popular Question,NULL,NULL,0,NULL,NULL 59274,1023096,575641,NULL,NULL,NULL,0,NULL,NULL 59275,68430,37208,Notable Question,NULL,NULL,0,NULL,NULL 59276,518502,1281929,Editor Student Supporter,NULL,NULL,0,NULL,NULL 59277,285184,1138517,NULL,NULL,NULL,0,NULL,NULL 59278,17270,128035,Necromancer Yearling Nice Answer Good Answer Nice Answer Nice Answer Great Answer Nice Answer Yearling Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59279,132752,201229,Popular Question,NULL,NULL,0,NULL,NULL 59280,43102,408121,NULL,NULL,NULL,0,NULL,NULL 59281,4576,983444,NULL,NULL,NULL,0,NULL,NULL 59282,243575,86171,Yearling Great Answer Guru Good Answer Famous Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 59283,555902,749250,NULL,NULL,NULL,0,NULL,NULL 59284,93128,821797,NULL,NULL,NULL,0,NULL,NULL 59285,498610,286619,Popular Question Notable Question Informed Caucus Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 59286,969473,498462,NULL,NULL,NULL,0,NULL,NULL 59287,1850317,638597,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59288,404973,638597,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59289,417983,381877,Caucus Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 59290,394249,392243,NULL,NULL,NULL,0,NULL,NULL 59291,27362,149133,NULL,NULL,NULL,0,NULL,NULL 59292,108706,391080,NULL,NULL,NULL,0,NULL,NULL 59293,371768,335615,Nice Answer Editor Excavator Popular Question Revival Caucus Constituent Yearling Caucus Constituent Necromancer Populist Good Answer Necromancer Census Yearling Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59294,1389475,1081623,Yearling,NULL,NULL,0,NULL,NULL 59295,1214698,312004,Teacher,NULL,NULL,0,NULL,NULL 59296,309666,463977,Yearling Popular Question,NULL,NULL,0,NULL,NULL 59297,632226,772064,NULL,NULL,NULL,0,NULL,NULL 59298,235514,452425,Nice Answer Popular Question Yearling Caucus Custodian Custodian Caucus Good Answer Yearling Good Answer Notable Question Custodian Good Answer Disciplined Yearling,NULL,NULL,0,NULL,NULL 59299,8769830,1048923,Informed,NULL,NULL,0,NULL,NULL 59300,160338,1048923,Informed,NULL,NULL,0,NULL,NULL 59301,884,646116,NULL,NULL,NULL,0,NULL,NULL 59302,1550760,250453,Nice Answer Yearling Informed Revival Caucus Constituent Census Citizen Patrol Announcer Necromancer,NULL,NULL,0,NULL,NULL 59303,127394,603042,Famous Question Yearling Notable Question Notable Question Nice Question Yearling Popular Question Nice Answer Yearling Tenacious,NULL,NULL,0,NULL,NULL 59304,133865,145989,Popular Question Popular Question Notable Question Notable Question Socratic Favorite Question Popular Question Custodian Custodian Revival Popular Question Popular Question Popular Question Proofreader Nice Answer Reviewer Nice Question Revival Popular Question Nice Question Necromancer Notable Question Notable Question Famous Question Nice Answer Notable Question Notable Question Yearling Popular Question Revival Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Caucus Famous Question Constituent Nice Answer Nice Question java Popular Question Popular Question Nice Answer Popular Question Nice Question Notable Question Necromancer Popular Question Nice Answer Archaeologist Famous Question Famous Question Necromancer Notable Question Nice Answer Nice Answer Nice Answer Good Question Famous Question Revival Popular Question Necromancer Notable Question Notable Question Necromancer Popular Question Popular Question Popular Question Great Question Enlightened Popular Question Revival Nice Answer Caucus Good Answer Yearling Nice Answer Popular Question Nice Answer Popular Question Nice Question Necromancer Popular Question Popular Question Pundit Popular Question Nice Question Necromancer Popular Question Notable Question Necromancer Notable Question Popular Question Necromancer Nice Answer Famous Question Revival Famous Question Notable Question Favorite Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Good Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Necromancer Nice Question Revival Revival Popular Question Notable Question Popular Question Popular Question Good Answer Nice Question Popular Question Good Question Necromancer Nice Answer Yearling Revival Popular Question Popular Question Notable Question Nice Question Nice Question Revival Necromancer Famous Question Nice Question Good Answer Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,Getting the source directory of Bash script from within bash directory pHow do get the path of the directory in which href http en wikipedia org wiki Bash 28Unix shell 29 rel noreferrer Bash script is located eminside em that script ppFor instance let say want to use Bash script as launcher for another application want to change the working directory to the one where the Bash script is located so can operate on the files in that directory like so ppre application pre wonder why this is not function of Bash itself pI made this one bit simpler but for latin based languages it should work fine with the ratio adjustment ppre code Guess whether given file is binary Just checks for anything under 0x09 public static boolean isBinaryFile File throws FileNotFoundException IOException FileInputStream in new FileInputStream int size in available if size gt 1024 size 1024 byte data new byte size in read data in close int ascii int other for int lt data length byte data if lt 0x09 return true if 0x09 0x0A 0x0C 0x0D ascii else if gt 0x20 amp amp lt 0x7E ascii else other if other return false return 100 other ascii other gt 95 code pre That possible feel free to edit to enhance for BOM Not sure if covering UTF 16 wouldn inflate it to full blown context characters parser,1,NULL,How to remove trailing whitespace of all files recursively bash whitespace pHow can you remove all of the trailing whitespace of an entire project Starting at root directory and removing the trailing whitespace from all files in all folders ppAlso want to to be able to modify the file directly and not just print everything to stdout p1 Many other answers use code code am not sure why as that href https stackoverflow com questions 3139126 whats the difference between sed and sed undocumented BSD compatibility option code code should be used instead pp2 Other answers use code code That should be just code code or code code if preffered because code code has the suffix right after pp3 Git specific solution ppre codegit config global alias check whitespace git diff tree check git hash object tree dev null HEAD git check whitespace grep trailing cut f1 uniq xargs sed in place code prepThe first one registers git alias codecheck whitespace code which lists the files with trailing whitespaces The second one runs codesed code on them ppI only use code code rather than code space code as don typically see vertical tabs form feeds and non breakable spaces Your measurement may vary 59305,1382,445809,NULL,NULL,NULL,0,NULL,NULL 59306,188046,175554,Notable Question Notable Question Necromancer Excavator Organizer,NULL,NULL,0,NULL,NULL 59307,18976,408717,Yearling Yearling Notable Question Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 59308,169960,1213405,NULL,NULL,NULL,0,NULL,NULL 59309,2835,675363,NULL,NULL,NULL,0,NULL,NULL 59310,440380,932098,NULL,NULL,NULL,0,NULL,NULL 59311,492232,1082698,NULL,NULL,NULL,0,NULL,NULL 59312,169222,1315375,Popular Question,NULL,NULL,0,NULL,NULL 59313,205196,1114645,Caucus Caucus Editor Yearling Necromancer Nice Answer Yearling Student,NULL,NULL,0,NULL,NULL 59314,73767,1375975,NULL,NULL,NULL,0,NULL,NULL 59315,59939,957011,Popular Question Notable Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 59316,530689,604479,Necromancer Revival,NULL,NULL,0,NULL,NULL 59317,161050,70547,Popular Question,NULL,NULL,0,NULL,NULL 59318,71850,117564,Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 59319,715396,1308273,NULL,NULL,NULL,0,NULL,NULL 59320,394280,59509,Popular Question,NULL,NULL,0,NULL,NULL 59321,113164,829365,Notable Question,NULL,NULL,0,NULL,NULL 59322,393521,263638,Revival,NULL,NULL,0,NULL,NULL 59323,1178243,1178960,Tumbleweed Commentator Yearling Critic Citizen Patrol,NULL,NULL,0,NULL,NULL 59324,3072,247685,NULL,NULL,NULL,0,NULL,NULL 59325,2372202,769321,Popular Question Yearling,NULL,NULL,0,NULL,NULL 59326,1027872,769321,Popular Question Yearling,NULL,NULL,0,NULL,NULL 59327,140525,53974,Yearling Announcer Custodian Nice Answer Necromancer Nice Answer Necromancer Necromancer Enthusiast Announcer Announcer Nice Answer Enlightened Announcer Yearling Nice Answer Nice Answer Guru Announcer Announcer Announcer Announcer Popular Question Announcer Announcer Yearling Announcer Necromancer Announcer Announcer Necromancer Necromancer,NULL,Getting the source directory of Bash script from within bash directory pHow do get the path of the directory in which href http en wikipedia org wiki Bash 28Unix shell 29 rel noreferrer Bash script is located eminside em that script ppFor instance let say want to use Bash script as launcher for another application want to change the working directory to the one where the Bash script is located so can operate on the files in that directory like so ppre application pre Then read that as avoid adding second hardlink to the file which think was clear in context and is standard abuse of language The Bash FAQ lists other and more relevant concerns though it seems more bent on discouraging this than describing when this is safe Break previous commit into multiple commits git pWithout creating branch and doing bunch of funky work on new branch is it possible to break single commit into few different commits after it been committed to the local repository The docs linked at the above comment are excellent better explained than the answers below,0,NULL,NULL 59328,837040,805469,Supporter Notable Question Commentator Teacher Revival Curious Popular Question Popular Question Nice Question Notable Question Caucus Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 59329,497710,1033808,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer dataframe Nice Answer Enlightened Nice Answer Popular Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Yearling Nice Answer Guru Good Answer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Good Answer Great Answer Notable Question Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Question Notable Question Nice Answer Yearling Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Self-Learner Nice Answer Enlightened Notable Question Nice Answer Good Answer Outspoken Yearling,NULL,pOr using the codedplyr code library ppre codelibrary dplyr set seed dat lt data frame ID sample letters 100 rep TRUE dat gt group by ID gt summarise no rows length ID code prepNote the use of code gt code which is similar to the use of pipes in bash Effectively the code above pipes codedat code into codegroup by code and the result of that operation is piped into codesummarise code ppThe result is ppre codeSource local data frame 26 ID no rows1 22 33 34 35 26 47 68 19 610 511 612 413 714 215 216 217 518 419 520 321 822 423 524 425 326 code prepSee the href http cran rstudio com web packages dplyr vignettes introduction html codedplyr code introduction for some more context and the documentation for details regarding the individual functions fail to see why limiting yourself to base is preferable By this logic you would favor using the base graphics over ggplot2 where ggplot2 is imo lot better can imagine situations where your argument could hold for example when for some reason you cannot install extra packages or are stuck with an old version of that does not support particular package However as blanket statement do not agree that base solutions are better than those using additional packages pOr using the codedplyr code library ppre codelibrary dplyr set seed dat lt data frame ID sample letters 100 rep TRUE dat gt group by ID gt summarise no rows length ID code prepNote the use of code gt code which is similar to the use of pipes in bash Effectively the code above pipes codedat code into codegroup by code and the result of that operation is piped into codesummarise code ppThe result is ppre codeSource local data frame 26 ID no rows1 22 33 34 35 26 47 68 19 610 511 612 413 714 215 216 217 518 419 520 321 822 423 524 425 326 code prepSee the href http cran rstudio com web packages dplyr vignettes introduction html codedplyr code introduction for some more context and the documentation for details regarding the individual functions think dplyr has merit over table especially if you consider the wider context of what dplyr can do pOr using the codedplyr code library ppre codelibrary dplyr set seed dat lt data frame ID sample letters 100 rep TRUE dat gt group by ID gt summarise no rows length ID code prepNote the use of code gt code which is similar to the use of pipes in bash Effectively the code above pipes codedat code into codegroup by code and the result of that operation is piped into codesummarise code ppThe result is ppre codeSource local data frame 26 ID no rows1 22 33 34 35 26 47 68 19 610 511 612 413 714 215 216 217 518 419 520 321 822 423 524 425 326 code prepSee the href http cran rstudio com web packages dplyr vignettes introduction html codedplyr code introduction for some more context and the documentation for details regarding the individual functions also feel for your argument but even in this case would not prefer table over dplyr For me using dplyr is default using base is the exception Also note that these kind of comments are not the ideal way to get across balanced point,0,NULL,NULL 59330,55398,344850,Yearling Student Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 59331,806960,103453,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 59332,963340,76313,Enthusiast,NULL,NULL,0,NULL,NULL 59333,243361,294579,Yearling Announcer Caucus Caucus Census,NULL,NULL,0,NULL,NULL 59334,15011,1469005,NULL,NULL,NULL,0,NULL,NULL 59335,184491,969979,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59336,165048,985717,NULL,NULL,NULL,0,NULL,NULL 59337,650496,1364064,NULL,NULL,NULL,0,NULL,NULL 59338,2363,1018680,NULL,NULL,NULL,0,NULL,NULL 59339,303652,1383323,NULL,NULL,NULL,0,NULL,NULL 59340,22416,252385,Yearling Census Yearling Great Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 59341,345995,290944,NULL,NULL,NULL,0,NULL,NULL 59342,8654,344911,Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 59343,96048,863028,Popular Question,NULL,NULL,0,NULL,NULL 59344,48987,644398,NULL,NULL,NULL,0,NULL,NULL 59345,1845258,926120,Notable Question Popular Question Popular Question Revival Notable Question Famous Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 59346,46352,818948,Yearling Revival Yearling Revival Popular Question Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 59347,1033369,367197,Yearling Great Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 59348,29519,431360,Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 59349,2953469,707926,Yearling Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 59350,808885,906146,NULL,NULL,NULL,0,NULL,NULL 59351,1043113,935553,NULL,NULL,NULL,0,NULL,NULL 59352,915963,576560,Yearling Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 59353,1228416,895160,NULL,NULL,NULL,0,NULL,NULL 59354,260948,521211,NULL,NULL,NULL,0,NULL,NULL 59355,744919,214439,NULL,NULL,NULL,0,NULL,NULL 59356,2403269,214439,NULL,NULL,NULL,0,NULL,NULL 59357,171183,647442,NULL,NULL,NULL,0,NULL,NULL 59358,307545,665771,NULL,NULL,NULL,0,NULL,NULL 59359,6487579,665771,NULL,NULL,NULL,0,NULL,NULL 59360,178288,906707,NULL,NULL,NULL,0,NULL,NULL 59361,70771,495637,Guru Nice Answer Good Answer Yearling Popular Question Nice Question Yearling Popular Question Notable Question Necromancer Civic Duty Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59362,1147746,261816,Notable Question Famous Question Popular Question Popular Question Yearling Caucus Promoter Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 59363,12205,479558,Good Answer Popular Question Notable Question Revival Yearling Nice Answer Notable Question Nice Question Notable Question Nice Answer Guru Yearling Popular Question Revival selenium Yearling Promoter,NULL,NULL,0,NULL,NULL 59364,13348,249161,Popular Question Yearling Peer Pressure Notable Question Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 59365,174372,1318290,Scholar Editor Informed Census,NULL,NULL,0,NULL,NULL 59366,291571,1472612,NULL,NULL,NULL,0,NULL,NULL 59367,460932,662141,NULL,NULL,NULL,0,NULL,NULL 59368,3031,513106,Notable Question Announcer,NULL,NULL,0,NULL,NULL 59369,651346,518033,NULL,NULL,NULL,0,NULL,NULL 59370,17787,165716,Popular Question Great Answer Nice Question Yearling Famous Question Notable Question Yearling Nice Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 59371,462680,485506,NULL,NULL,NULL,0,NULL,NULL 59372,933576,1234445,Notable Question Popular Question Caucus Constituent Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59373,463603,1402145,NULL,NULL,NULL,0,NULL,NULL 59374,3922452,698815,Popular Question Popular Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 59375,1627734,1206851,NULL,NULL,NULL,0,NULL,NULL 59376,1275,62976,NULL,NULL,NULL,0,NULL,NULL 59377,48691,66574,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 59378,378872,195906,Yearling,NULL,NULL,0,NULL,NULL 59379,226044,492627,NULL,NULL,NULL,0,NULL,NULL 59380,915287,498918,Nice Question,NULL,NULL,0,NULL,NULL 59381,20394,638674,Necromancer Autobiographer Quorum Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 59382,98357,980896,NULL,NULL,NULL,0,NULL,NULL 59383,31580,962401,Notable Question Popular Question Notable Question Popular Question Critic Notable Question Necromancer,NULL,NULL,0,NULL,NULL 59384,124146,1185411,Enthusiast Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 59385,1145477,603568,Popular Question Yearling Famous Question Notable Question Famous Question Guru Caucus Constituent Nice Answer Yearling Caucus Famous Question Popular Question Yearling Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 59386,428471,233080,NULL,NULL,NULL,0,NULL,NULL 59387,1032949,809228,Informed Autobiographer Necromancer Critic,NULL,NULL,0,NULL,NULL 59388,482202,258510,Yearling Necromancer Good Answer Nice Question Necromancer Necromancer Famous Question Yearling Custodian Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 59389,614281,1164017,NULL,NULL,NULL,0,NULL,NULL 59390,377681,299025,Civic Duty Informed Notable Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59391,76932,19329,Good Question Nice Answer Enlightened Yearling Popular Question Notable Question Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 59392,4892965,196469,Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59393,222817,196469,Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59394,105783,334852,Good Answer Yearling Guru Custodian Yearling Guru Census Necromancer Yearling Good Answer Great Answer,NULL,NULL,0,NULL,NULL 59395,237619,311791,Famous Question,NULL,NULL,0,NULL,NULL 59396,2831449,113608,Tenacious Self-Learner Yearling Nice Answer Good Answer Custodian Guru Popular Question django Yearling Caucus Constituent python Explainer Documentation User Census Custodian Caucus Constituent Necromancer Necromancer Yearling Nice Answer Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 59397,314536,1467345,NULL,NULL,NULL,0,NULL,NULL 59398,397219,12540,Famous Question Nice Answer Good Answer Good Question Yearling Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 59399,49904,688018,Yearling Good Answer Nice Answer Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 59400,179426,485536,NULL,NULL,NULL,0,NULL,NULL 59401,723965,1177404,Notable Question,NULL,NULL,0,NULL,NULL 59402,2395529,1177404,Notable Question,NULL,NULL,0,NULL,NULL 59403,3748605,1177404,Notable Question,NULL,NULL,0,NULL,NULL 59404,103856,707605,NULL,NULL,NULL,0,NULL,NULL 59405,235621,171116,Yearling,NULL,NULL,0,NULL,NULL 59406,284109,232797,Nice Answer Yearling Promoter Mortarboard Nice Question Good Answer,NULL,NULL,0,NULL,NULL 59407,945539,106342,Promoter Benefactor Popular Question Necromancer Guru Revival Nice Question Yearling Revival Revival Famous Question Popular Question Necromancer Necromancer Great Answer Notable Question Nice Answer Good Answer Necromancer Popular Question Yearling Popular Question Necromancer Notable Question Announcer Popular Question Good Question Necromancer Notable Question Yearling Good Answer Notable Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 59408,305093,106342,Promoter Benefactor Popular Question Necromancer Guru Revival Nice Question Yearling Revival Revival Famous Question Popular Question Necromancer Necromancer Great Answer Notable Question Nice Answer Good Answer Necromancer Popular Question Yearling Popular Question Necromancer Notable Question Announcer Popular Question Good Question Necromancer Notable Question Yearling Good Answer Notable Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 59409,1385829,1527186,NULL,NULL,NULL,0,NULL,NULL 59410,714528,706246,Notable Question Great Answer Yearling Notable Question Caucus Excavator Nice Question Good Answer Nice Answer Enlightened Yearling Custodian Nice Question Good Answer Caucus Constituent Guru Census Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 59411,495768,436474,NULL,NULL,NULL,0,NULL,NULL 59412,89329,819649,NULL,NULL,NULL,0,NULL,NULL 59413,264751,87451,Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Yearling Nice Answer scrapy,NULL,NULL,0,NULL,NULL 59414,264594,67606,Nice Answer Guru Guru Nice Answer Enlightened Nice Question Yearling Nice Answer Nice Answer Famous Question Nice Answer Enlightened xml Nice Answer Enlightened Popular Question Good Answer Popular Question Great Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Popular Question Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened mysql Nice Answer Nice Answer Guru Nice Answer Enlightened Yearling Famous Question Nice Answer Famous Question Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Notable Question Nice Answer Guru Good Answer django Nice Answer Nice Answer Nice Answer Good Question Nice Answer Nice Answer Good Answer Great Answer Nice Answer Enlightened Popular Question macos Good Answer Nice Answer Census Guru Announcer Nice Answer Enlightened Yearling Nice Answer Guru Popular Question Nice Answer Popular Question Nice Answer Refiner Good Answer Nice Answer Good Answer Popular Question Famous Question Nice Answer Popular Question Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 59415,1616144,1456112,NULL,NULL,NULL,0,NULL,NULL 59416,819062,1456112,NULL,NULL,NULL,0,NULL,NULL 59417,312612,236133,Famous Question Famous Question,NULL,NULL,0,NULL,NULL 59418,390651,561206,Critic,NULL,NULL,0,NULL,NULL 59419,159055,516450,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 59420,183481,1128300,Custodian Tumbleweed Student Supporter,NULL,NULL,0,NULL,NULL 59421,33379,43273,Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 59422,230458,1071730,NULL,NULL,NULL,0,NULL,NULL 59423,638016,1194509,NULL,NULL,NULL,0,NULL,NULL 59424,305432,379612,NULL,NULL,NULL,0,NULL,NULL 59425,140893,1223755,NULL,NULL,NULL,0,NULL,NULL 59426,113485,269606,Nice Answer Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 59427,655609,254307,Yearling Caucus Nice Answer Yearling Nice Answer Caucus Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59428,815530,272087,Custodian Yearling Popular Question Good Question Favorite Question Notable Question Nice Question Famous Question Famous Question Citizen Patrol Famous Question Caucus Yearling Popular Question Notable Question Good Question Popular Question Notable Question Notable Question Famous Question Caucus Popular Question Popular Question Yearling Caucus Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59429,47923,699757,NULL,NULL,NULL,0,NULL,NULL 59430,210687,1508473,Teacher,NULL,NULL,0,NULL,NULL 59431,61478,733049,NULL,NULL,NULL,0,NULL,NULL 59432,2721801,155817,Nice Question,NULL,NULL,0,NULL,NULL 59433,220017,155817,Nice Question,NULL,NULL,0,NULL,NULL 59434,50133,794535,NULL,NULL,NULL,0,NULL,NULL 59435,27107,705117,Commentator Yearling Scholar Caucus Popular Question,NULL,NULL,0,NULL,NULL 59436,25177,487922,Good Answer Yearling Necromancer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 59437,92057,609408,Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59438,269312,266326,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59439,303169,621779,NULL,NULL,NULL,0,NULL,NULL 59440,1669974,356483,Popular Question,NULL,NULL,0,NULL,NULL 59441,8850,1382294,Necromancer Nice Answer Caucus Constituent Critic Editor Informed,NULL,NULL,0,NULL,NULL 59442,88316,1534773,NULL,NULL,NULL,0,NULL,NULL 59443,94781,458365,Necromancer Necromancer Good Question android Guru Revival Popular Question Necromancer Nice Answer Yearling Caucus Necromancer Famous Question Necromancer Nice Answer Great Answer Announcer Necromancer Nice Answer Popular Question Popular Question Civic Duty Yearling Documentation User Notable Question Good Answer Nice Answer Census Custodian Tag Editor Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59444,319357,1411205,NULL,NULL,NULL,0,NULL,NULL 59445,34007,738919,NULL,NULL,NULL,0,NULL,NULL 59446,480436,1959,Nice Answer Nice Answer Necromancer Nice Question Necromancer Nice Answer Notable Question Yearling Pundit Famous Question Popular Question Necromancer Notable Question Civic Duty Enthusiast Nice Answer Yearling Notable Question Good Question Good Answer Necromancer Nice Answer Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 59447,175433,1478700,NULL,NULL,NULL,0,NULL,NULL 59448,338593,1272954,NULL,NULL,NULL,0,NULL,NULL 59449,310109,99288,Yearling Good Answer Commentator,NULL,pIf understand correctly what you need then the most simple example would be this ppThe controller ppre code class UploadController lt ApplicationController def new end def create name params upload file original filename path File join public images upload name File open path wb write params upload file read flash notice File uploaded redirect to upload new endend code prepThe view ppre code lt flash each do key msg gt lt content tag div msg class gt key message id gt notice key gt lt end gt lt form tag upload create multipart gt true do gt lt gt lt file field tag upload file gt lt gt lt gt lt submit tag Upload gt lt gt lt end gt code prepThis would let you upload any file without any checks or validations which in my opinion isn that usefull ppIf would do it myself then would use something like href http validatable rubyforge org rel nofollow noreferrer validatable gem or href http github com kennethkalmer activerecord tableless models rel nofollow noreferrer tableless gem just tableless is not supported anymore These gems would allow you to validate what you re uploading to make it more sane Sure that good tip Wrote this really long time ago Don think knew how to do that at the time Just used examples when coding so in one line use it On the other don Updating now,0,NULL,NULL 59450,440714,657057,NULL,NULL,NULL,0,NULL,NULL 59451,98932,435417,NULL,NULL,NULL,0,NULL,NULL 59452,1148338,1192563,NULL,NULL,NULL,0,NULL,NULL 59453,492273,1076752,NULL,NULL,NULL,0,NULL,NULL 59454,23460,446084,NULL,NULL,NULL,0,NULL,NULL 59455,311713,1504733,NULL,NULL,NULL,0,NULL,NULL 59456,33148,341900,Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59457,143920,49970,Notable Question Famous Question Popular Question Yearling Nice Question Notable Question Notable Question Yearling Notable Question Popular Question Benefactor Popular Question,NULL,NULL,0,NULL,NULL 59458,147600,203953,Scholar Supporter,NULL,NULL,0,NULL,NULL 59459,18233,310783,Good Answer Yearling Populist Nice Answer Popular Question Yearling Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 59460,369233,61989,Yearling Guru winforms Nice Answer Nice Answer Nice Answer Guru Guru Good Answer Nice Question Enlightened Guru Guru Yearling Good Answer Custodian Nice Answer Enlightened Good Answer Good Answer Nice Answer Necromancer Great Answer Nice Answer Famous Question Caucus Famous Question Announcer Reviewer Good Question Nice Answer Enlightened Famous Question Good Answer Guru Census Yearling Caucus Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Guru Good Answer,NULL,NULL,0,NULL,NULL 59461,431900,979344,Good Question Critic Yearling,NULL,NULL,0,NULL,NULL 59462,118288,1180827,NULL,NULL,NULL,0,NULL,NULL 59463,1588,667334,NULL,NULL,NULL,0,NULL,NULL 59464,148756,376241,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59465,359474,549241,NULL,NULL,NULL,0,NULL,NULL 59466,359137,67369,Nice Answer,NULL,NULL,0,NULL,NULL 59467,169336,1068321,Popular Question Popular Question Popular Question Nice Answer Enlightened Caucus Constituent Popular Question Notable Question Famous Question Yearling Caucus Famous Question,NULL,NULL,0,NULL,NULL 59468,201868,1341956,Yearling purescript Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Critic Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 59469,910979,458320,Good Question Custodian Nice Answer Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Yearling Notable Question Favorite Question Popular Question Notable Question Famous Question Famous Question Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59470,1048572,743497,NULL,NULL,NULL,0,NULL,NULL 59471,134524,9410,Great Answer Good Answer Good Answer Guru Yearling Good Answer Caucus Famous Question Nice Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Guru Nice Answer Populist Guru Great Answer Caucus Nice Answer Enlightened Great Answer Necromancer Yearling,NULL,pIf you have only just popped it and the terminal is still open you will href https stackoverflow com questions 89332 recover dropped stash in git 7844566 7844566 still have the hash value printed by codegit stash pop code on screen thanks Dolda ppOtherwise you can find it using this for Linux Unix or Git Bash for Windows ppre codegit fsck no reflog awk dangling commit print code prep or using Powershell for Windows ppre codegit fsck no reflog select string dangling commit foreach bits split echo bits code prepThis will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag every lost commit including every stash commit you’ve ever created will be somewhere in that graph ppThe easiest way to find the stash commit you want is probably to pass that list to codegitk code ppre codegitk all git fsck no reflog awk dangling commit print code prep or see href https stackoverflow com questions 89332 34666995 the answer from emragins if using Powershell for Windows ppThis will launch repository browser showing you emevery single commit in the repository ever em regardless of whether it is reachable or not ppYou can replace codegitk code there with something like codegit log graph oneline decorate code if you prefer nice graph on the console over separate GUI app ppTo spot stash commits look for commit messages of this form pp 160 160 160 160 WIP on isomebranch icommithash Some old commit message pp emNote em The commit message will only be in this form starting with WIP on if you did not supply message when you did codegit stash code ppOnce you know the hash of the commit you want you can apply it as stash ppre codegit stash apply stash hash code prepOr you can use the context menu in codegitk code to create branches for any unreachable commits you are interested in After that you can do whatever you want with them with all the normal tools When you’re done just blow those branches away again then your repository has problem and you get to fix it Just google that error message for answers about how pIf you have only just popped it and the terminal is still open you will href https stackoverflow com questions 89332 recover dropped stash in git 7844566 7844566 still have the hash value printed by codegit stash pop code on screen thanks Dolda ppOtherwise you can find it using this for Linux Unix or Git Bash for Windows ppre codegit fsck no reflog awk dangling commit print code prep or using Powershell for Windows ppre codegit fsck no reflog select string dangling commit foreach bits split echo bits code prepThis will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag every lost commit including every stash commit you’ve ever created will be somewhere in that graph ppThe easiest way to find the stash commit you want is probably to pass that list to codegitk code ppre codegitk all git fsck no reflog awk dangling commit print code prep or see href https stackoverflow com questions 89332 34666995 the answer from emragins if using Powershell for Windows ppThis will launch repository browser showing you emevery single commit in the repository ever em regardless of whether it is reachable or not ppYou can replace codegitk code there with something like codegit log graph oneline decorate code if you prefer nice graph on the console over separate GUI app ppTo spot stash commits look for commit messages of this form pp 160 160 160 160 WIP on isomebranch icommithash Some old commit message pp emNote em The commit message will only be in this form starting with WIP on if you did not supply message when you did codegit stash code ppOnce you know the hash of the commit you want you can apply it as stash ppre codegit stash apply stash hash code prepOr you can use the context menu in codegitk code to create branches for any unreachable commits you are interested in After that you can do whatever you want with them with all the normal tools When you’re done just blow those branches away again Git offers no way to “delete the current commit” I’m quite sure that your warning is incorrect and the result of some misunderstanding on your part If you wish to talk it out start by explaining what you do when you think you are “deleting” the current commit pIf you have only just popped it and the terminal is still open you will href https stackoverflow com questions 89332 recover dropped stash in git 7844566 7844566 still have the hash value printed by codegit stash pop code on screen thanks Dolda ppOtherwise you can find it using this for Linux Unix or Git Bash for Windows ppre codegit fsck no reflog awk dangling commit print code prep or using Powershell for Windows ppre codegit fsck no reflog select string dangling commit foreach bits split echo bits code prepThis will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag every lost commit including every stash commit you’ve ever created will be somewhere in that graph ppThe easiest way to find the stash commit you want is probably to pass that list to codegitk code ppre codegitk all git fsck no reflog awk dangling commit print code prep or see href https stackoverflow com questions 89332 34666995 the answer from emragins if using Powershell for Windows ppThis will launch repository browser showing you emevery single commit in the repository ever em regardless of whether it is reachable or not ppYou can replace codegitk code there with something like codegit log graph oneline decorate code if you prefer nice graph on the console over separate GUI app ppTo spot stash commits look for commit messages of this form pp 160 160 160 160 WIP on isomebranch icommithash Some old commit message pp emNote em The commit message will only be in this form starting with WIP on if you did not supply message when you did codegit stash code ppOnce you know the hash of the commit you want you can apply it as stash ppre codegit stash apply stash hash code prepOr you can use the context menu in codegitk code to create branches for any unreachable commits you are interested in After that you can do whatever you want with them with all the normal tools When you’re done just blow those branches away again Yup You have to work very hard to lose data with Git once you’ve at the very least added it to the index and even more so once you’ve put it in commit Things that have only ever existed in the working copy may vanish forever fairly easily but once you’ve made them thing in Git it takes lot of effort to lose them That’s the whole premise of this answer actually pIf you have only just popped it and the terminal is still open you will href https stackoverflow com questions 89332 recover dropped stash in git 7844566 7844566 still have the hash value printed by codegit stash pop code on screen thanks Dolda ppOtherwise you can find it using this for Linux Unix or Git Bash for Windows ppre codegit fsck no reflog awk dangling commit print code prep or using Powershell for Windows ppre codegit fsck no reflog select string dangling commit foreach bits split echo bits code prepThis will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag every lost commit including every stash commit you’ve ever created will be somewhere in that graph ppThe easiest way to find the stash commit you want is probably to pass that list to codegitk code ppre codegitk all git fsck no reflog awk dangling commit print code prep or see href https stackoverflow com questions 89332 34666995 the answer from emragins if using Powershell for Windows ppThis will launch repository browser showing you emevery single commit in the repository ever em regardless of whether it is reachable or not ppYou can replace codegitk code there with something like codegit log graph oneline decorate code if you prefer nice graph on the console over separate GUI app ppTo spot stash commits look for commit messages of this form pp 160 160 160 160 WIP on isomebranch icommithash Some old commit message pp emNote em The commit message will only be in this form starting with WIP on if you did not supply message when you did codegit stash code ppOnce you know the hash of the commit you want you can apply it as stash ppre codegit stash apply stash hash code prepOr you can use the context menu in codegitk code to create branches for any unreachable commits you are interested in After that you can do whatever you want with them with all the normal tools When you’re done just blow those branches away again since you are using bash try the Linux bash command line instead of the Windows PowerShell one,1,NULL,Git how to list ALL objects in the database git git show git rev list pIs there better way of getting raw list of SHA1s for ALL objects in repository than doing codels git objects code and codecat git objects pack idx git show index code ppI know about codegit rev list all code but that only lists commit objects that are referenced by git refs and looking for emeverything em including unreferenced objects that are created by git hash object git mktree etc pThis is more correct simpler and faster rendition of the script from the answers href https stackoverflow com 11956917 9410 by Mark and href https stackoverflow com 7390687 9410 by willkill pulli pIt uses coderev parse git path code to find the codeobjects code directory even in more complex Git repository setup in multi worktree situation or whatnot lili pIt avoids all unnecessary use of codefind code codegrep code codeperl code codesed code lili pIf works gracefully even if you have no loose objects or no packs or neither… if you’re inclined to run this on fresh repository lili pIt does however require Bash from this millennium 02 or newer specifically for the codeextglob code bit li ulpShare and enjoy ppre code bin bashset eshopt nullglob extglobcd git rev parse git path objects packed objectsfor in pack pack 9a idx do git show index lt cut done loose objectsfor in 9a 9a 9a do echo done code pre 59472,260660,227607,NULL,NULL,NULL,0,NULL,NULL 59473,109850,2657,Nice Question Notable Question Stellar Question Yearling Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 59474,532670,447884,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59475,74009,307525,Organizer Necromancer Custodian Custodian Curious Promoter Self-Learner Popular Question Necromancer Yearling Nice Answer Yearling Notable Question Necromancer Popular Question Nice Answer Yearling Popular Question Necromancer Nice Answer Revival Yearling Popular Question Necromancer Yearling Good Answer Nice Answer Necromancer Notable Question Yearling Nice Question Good Answer Notable Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 59476,892454,1013587,Teacher Supporter,NULL,NULL,0,NULL,NULL 59477,1518544,1100525,Yearling Notable Question Nice Question Nice Question Yearling Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59478,196863,646687,NULL,NULL,NULL,0,NULL,NULL 59479,68403,951662,Yearling Popular Question Popular Question Good Question Popular Question Yearling Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59480,52315,484866,Popular Question Popular Question Famous Question Popular Question Famous Question Popular Question Yearling Nice Question Famous Question Nice Question Notable Question Nice Question Yearling Popular Question Good Answer Popular Question Nice Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 59481,702608,264287,NULL,NULL,NULL,0,NULL,NULL 59482,85992,167980,Nice Answer Good Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Yearling Nice Answer Enlightened nest Nice Answer Enlightened Custodian Popular Question Good Answer Guru java Yearling,NULL,NULL,0,NULL,NULL 59483,36741,1002060,NULL,NULL,NULL,0,NULL,NULL 59484,434050,295068,NULL,NULL,NULL,0,NULL,NULL 59485,194519,478582,Popular Question,NULL,NULL,0,NULL,NULL 59486,218604,578139,NULL,NULL,NULL,0,NULL,NULL 59487,3541345,1138353,Popular Question Self-Learner Yearling Custodian Popular Question Popular Question Caucus Constituent Popular Question Notable Question Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59488,477895,1488897,Popular Question,NULL,NULL,0,NULL,NULL 59489,489367,533566,NULL,NULL,NULL,0,NULL,NULL 59490,450733,1229558,NULL,NULL,NULL,0,NULL,NULL 59491,462899,1029439,NULL,NULL,NULL,0,NULL,NULL 59492,11359,547775,Yearling,NULL,NULL,0,NULL,NULL 59493,2834606,1058879,NULL,NULL,NULL,0,NULL,NULL 59494,254302,1058879,NULL,NULL,NULL,0,NULL,NULL 59495,490186,1190298,Teacher Supporter,NULL,NULL,0,NULL,NULL 59496,125351,517101,Popular Question,NULL,NULL,0,NULL,NULL 59497,197381,1204941,NULL,NULL,NULL,0,NULL,NULL 59498,155329,494441,Civic Duty Nice Answer Great Answer Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 59499,67458,1377034,NULL,NULL,NULL,0,NULL,NULL 59500,2227089,450435,Tumbleweed Necromancer Critic,NULL,pIn modern browsers and node js you can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects String normalize rel nofollow noreferrer unicode normalization to decompose those characters followed by filtering regex pp codestr normalize NFKD replace code ppIf you wanted to allow characters such as whitespaces dashes etc you should extend the regex to allow them pp codestr normalize NFKD replace code pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar str áàâäãéèëêíìïîóòöôõúùüûñçăşţ xD var asciiStr str normalize NFKD replace xD console info str asciiStr code pre xD div xD div xD pp strongNOTES strong This method does not work with characters that do not have unicode composed varian codeø code and codeł code Thanks for the heads up have looked bit further into the topic and yes there are some characters that do not have composed form so they get lost after the regex Sadly there seems like the only option for those characters is translation table am afraid most of the characters of this list https unicode search net unicode namesearch pl term STROKE will be affected by the same problem,1,NULL,Replacing diacritics in Javascript javascript diacritics pHow can replace diacritics etc with their normal form in javascript pIn modern browsers and node js you can use href https developer mozilla org en US docs Web JavaScript Reference Global Objects String normalize rel nofollow noreferrer unicode normalization to decompose those characters followed by filtering regex pp codestr normalize NFKD replace code ppIf you wanted to allow characters such as whitespaces dashes etc you should extend the regex to allow them pp codestr normalize NFKD replace code pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar str áàâäãéèëêíìïîóòöôõúùüûñçăşţ xD var asciiStr str normalize NFKD replace xD console info str asciiStr code pre xD div xD div xD pp strongNOTES strong This method does not work with characters that do not have unicode composed varian codeø code and codeł code 59501,455057,286673,NULL,NULL,NULL,0,NULL,NULL 59502,125356,20476,Popular Question Nice Answer Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 59503,527357,560108,NULL,NULL,NULL,0,NULL,NULL 59504,732489,977509,NULL,NULL,NULL,0,NULL,NULL 59505,548744,793221,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 59506,503609,189942,NULL,NULL,NULL,0,NULL,NULL 59507,31889,240255,Nice Answer Popular Question Popular Question Promoter Benefactor Necromancer Caucus Proofreader Custodian Yearling Nice Answer Revival Custodian Popular Question Caucus Yearling Census Caucus Constituent Revival Custodian Revival,NULL,NULL,0,NULL,NULL 59508,3136719,1448443,NULL,NULL,NULL,0,NULL,NULL 59509,984450,691819,Popular Question Notable Question Civic Duty Custodian Yearling Yearling Nice Answer Nice Answer Enlightened Caucus Yearling Notable Question Famous Question Caucus Constituent Informed Organizer Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 59510,1674302,1200367,Editor Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 59511,39556,1200367,Editor Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 59512,592004,88355,Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 59513,222290,523296,Nice Question,NULL,NULL,0,NULL,NULL 59514,903787,1275556,NULL,NULL,NULL,0,NULL,NULL 59515,74998,1261575,Good Question Yearling Caucus Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 59516,167112,320546,Revival Yearling Nice Answer Enlightened Yearling Popular Question Yearling Custodian Enthusiast Good Answer,NULL,NULL,0,NULL,NULL 59517,220177,805545,NULL,NULL,NULL,0,NULL,NULL 59518,6956435,805545,NULL,NULL,NULL,0,NULL,NULL 59519,10063288,805545,NULL,NULL,NULL,0,NULL,NULL 59520,115105,1302440,NULL,NULL,NULL,0,NULL,NULL 59521,176851,1338441,Teacher,NULL,NULL,0,NULL,NULL 59522,314455,607636,Popular Question,NULL,NULL,0,NULL,NULL 59523,147184,717011,NULL,NULL,NULL,0,NULL,NULL 59524,1286142,1249468,NULL,NULL,NULL,0,NULL,NULL 59525,239677,12388,Popular Question Popular Question Great Question Necromancer Nice Answer Custodian Notable Question Guru Famous Question Nice Answer Nice Question Nice Question Yearling Nice Question Favorite Question Reviewer Guru Informed Caucus Notable Question Famous Question Constituent Nice Question Revival Good Answer Necromancer Famous Question Good Question Great Question Good Question Popular Question Notable Question Famous Question Nice Answer Famous Question Nice Question Popular Question Yearling Popular Question Good Question Nice Question Notable Question Caucus Constituent Popular Question Guru Yearling Archaeologist Nice Answer Popular Question Notable Question Good Answer Investor Altruist Necromancer,NULL,ulli href http web archive org web 20180411005433 http deron meranda us data census dist female first txt rel nofollow noreferrer http deron meranda us data census dist female first txt 4275 entries lili href http web archive org web 20180412091752 http deron meranda us 80 data census dist male first txt rel nofollow noreferrer http deron meranda us data census dist male first txt 1219 entries lili pmale and female names combined href http web archive org web 20180503212156 http deron meranda us 80 data census derived all first txt rel nofollow noreferrer http deron meranda us data census derived all first txt li ulpTo format it nicely ppre code curl http deron meranda us data census dist female first txt awk print code pre links are broken,0,NULL,NULL 59526,1106741,1253309,NULL,NULL,NULL,0,NULL,NULL 59527,265460,816189,NULL,NULL,NULL,0,NULL,NULL 59528,201846,180258,Custodian Nice Question Popular Question Necromancer Nice Answer Popular Question Notable Question Popular Question Nice Question Yearling Nice Answer Popular Question Nice Answer Nice Question Nice Question Popular Question Popular Question Popular Question Nice Answer Popular Question Yearling Nice Answer Notable Question Famous Question Nice Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 59529,16154,191368,Nice Answer Enlightened Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 59530,205000,194614,Yearling Necromancer Yearling Good Answer Necromancer Yearling Yearling Explainer,NULL,NULL,0,NULL,NULL 59531,698251,964594,Teacher Informed Critic Yearling Commentator Yearling Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 59532,1598038,745393,NULL,NULL,NULL,0,NULL,NULL 59533,32592,684864,NULL,NULL,NULL,0,NULL,NULL 59534,124875,1449156,NULL,NULL,NULL,0,NULL,NULL 59535,177116,1286441,NULL,NULL,NULL,0,NULL,NULL 59536,210119,651173,NULL,NULL,NULL,0,NULL,NULL 59537,128806,1116975,NULL,NULL,NULL,0,NULL,NULL 59538,125916,427733,Notable Question Good Answer Yearling Guru Good Answer Popular Question Good Answer Guru Nice Answer Great Answer Good Answer Famous Question Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Guru Yearling Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 59539,107039,958410,NULL,NULL,NULL,0,NULL,NULL 59540,47004,556549,NULL,NULL,NULL,0,NULL,NULL 59541,3572681,285711,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59542,557244,574326,Popular Question,NULL,NULL,0,NULL,NULL 59543,1165075,1409252,NULL,NULL,NULL,0,NULL,NULL 59544,85884,999462,NULL,NULL,NULL,0,NULL,NULL 59545,471792,1423275,android Yearling Notable Question Nice Answer Announcer Nice Answer Enlightened Famous Question Popular Question Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 59546,324055,359104,Popular Question Notable Question Populist Necromancer Yearling Announcer Popular Question Guru Nice Answer Famous Question Nice Answer Good Answer Yearling Caucus Famous Question Good Question Good Answer Yearling Taxonomist,NULL,NULL,0,NULL,NULL 59547,306499,658469,Popular Question Popular Question Good Answer Notable Question Good Answer Yearling ruby Good Question Guru Popular Question Revival Notable Question Necromancer Yearling ruby-on-rails Notable Question Popular Question Notable Question Famous Question Nice Question Popular Question Announcer Nice Question Popular Question Great Answer Tenacious Booster Nice Question Yearling Famous Question Popular Question Nice Answer Good Answer Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 59548,375523,1276680,NULL,NULL,NULL,0,NULL,NULL 59549,889821,862428,NULL,NULL,NULL,0,NULL,NULL 59550,1151423,1047421,NULL,NULL,NULL,0,NULL,NULL 59551,213184,1200526,NULL,NULL,NULL,0,NULL,NULL 59552,90226,375779,NULL,NULL,NULL,0,NULL,NULL 59553,1117728,1255198,NULL,NULL,NULL,0,NULL,NULL 59554,173506,912033,NULL,NULL,NULL,0,NULL,NULL 59555,258002,342293,Notable Question Yearling Self-Learner Famous Question Nice Answer Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Nice Question Nice Question Popular Question Yearling Notable Question Popular Question Good Answer Nice Question Notable Question Popular Question Yearling Announcer Good Question,NULL,NULL,0,NULL,NULL 59556,276547,826951,Yearling Good Question Tumbleweed Yearling Good Question Famous Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 59557,1544239,826951,Yearling Good Question Tumbleweed Yearling Good Question Famous Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 59558,1516917,723054,NULL,NULL,NULL,0,NULL,NULL 59559,126480,732100,NULL,NULL,NULL,0,NULL,NULL 59560,1723979,933675,NULL,NULL,NULL,0,NULL,NULL 59561,236019,933675,NULL,NULL,NULL,0,NULL,NULL 59562,158950,891946,NULL,NULL,NULL,0,NULL,NULL 59563,144773,860588,NULL,NULL,NULL,0,NULL,NULL 59564,154142,644312,NULL,NULL,NULL,0,NULL,NULL 59565,791557,1190277,Popular Question Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59566,6522282,1190277,Popular Question Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59567,62021,1466617,NULL,NULL,NULL,0,NULL,NULL 59568,247847,732396,Yearling Good Answer Yearling Announcer Popular Question Excavator Notable Question Nice Question Census Nice Answer Enlightened Yearling Nice Answer Nice Answer Suffrage,NULL,NULL,0,NULL,NULL 59569,99632,1459254,Critic Revival Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59570,1641871,1388688,Informed Enthusiast,NULL,NULL,0,NULL,NULL 59571,91059,838358,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 59572,162500,1331801,NULL,NULL,NULL,0,NULL,NULL 59573,550921,639995,NULL,NULL,NULL,0,NULL,NULL 59574,187977,1026535,Popular Question Famous Question Caucus Constituent Nice Question Notable Question Popular Question Notable Question Popular Question Caucus Constituent Critic Notable Question Yearling,NULL,NULL,0,NULL,NULL 59575,526,548311,NULL,NULL,NULL,0,NULL,NULL 59576,1917064,924917,Popular Question Yearling Curious Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 59577,330878,517752,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59578,174588,860020,NULL,NULL,NULL,0,NULL,NULL 59579,55658,859855,Popular Question,NULL,NULL,0,NULL,NULL 59580,584665,847883,Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 59581,1027764,469131,NULL,NULL,NULL,0,NULL,NULL 59582,42179,224140,NULL,NULL,NULL,0,NULL,NULL 59583,205776,1438479,Notable Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Favorite Question Notable Question Yearling Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 59584,136789,1000012,NULL,NULL,NULL,0,NULL,NULL 59585,1486654,1121339,Necromancer Caucus Constituent Notable Question Critic Yearling Revival Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 59586,92769,532524,Nice Answer Yearling Good Answer Nice Answer Enlightened Yearling Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 59587,87166,1225855,NULL,NULL,NULL,0,NULL,NULL 59588,429426,918327,NULL,NULL,NULL,0,NULL,NULL 59589,770222,1299057,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 59590,894610,306260,Popular Question,NULL,NULL,0,NULL,NULL 59591,239698,1083803,NULL,NULL,NULL,0,NULL,NULL 59592,815989,778720,Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 59593,1502352,778720,Notable Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 59594,97950,148420,NULL,NULL,NULL,0,NULL,NULL 59595,208935,1182586,NULL,NULL,NULL,0,NULL,NULL 59596,7907660,951582,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 59597,178073,17211,Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Favorite Question Pundit Popular Question Good Question Notable Question Popular Question Nice Answer Popular Question Nice Question Notable Question Famous Question Good Question Yearling Popular Question Great Question Notable Question Notable Question Popular Question Yearling Explainer Great Question Good Question Favorite Question Good Question Popular Question Notable Question Good Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 59598,344876,907448,NULL,NULL,NULL,0,NULL,NULL 59599,107844,195015,Yearling,NULL,NULL,0,NULL,NULL 59600,16567,1186753,NULL,NULL,NULL,0,NULL,NULL 59601,481326,547578,Necromancer Popular Question Good Question Notable Question Yearling Caucus Necromancer Announcer Yearling Famous Question Caucus Popular Question Documentation User Nice Question Notable Question Revival Caucus Necromancer Yearling Notable Question Announcer Revival Nice Question Yearling,NULL,pYou should not be logging to file based handler from multiple processes concurrently that is not supported as there is no portable OS support for it ppTo log to single destination from multiple processes you can use one of the following approaches pulliUse something like href https pypi python org pypi ConcurrentLogHandler codeConcurrentLogHandler code liliUse codeSysLogHandler code or codeNTEventLogHandler code on Windows liliUse codeSocketHandler code which sends the logs to separate process for writing to file liliUse codeQueueHandler code with codemultiprocessing Queue code as outlined href http plumberjack blogspot co uk 2010 09 using logging with multiprocessing html here li ul Is there timed rotating and concurrent log handler,0,NULL,NULL 59602,156496,532912,Editor Informed Autobiographer Supporter Student Scholar Announcer,NULL,NULL,0,NULL,NULL 59603,25168,1262067,Yearling Yearling,NULL,NULL,0,NULL,NULL 59604,350197,509533,NULL,NULL,NULL,0,NULL,NULL 59605,237188,395921,Popular Question Announcer Nice Question Notable Question Self-Learner Yearling Notable Question Caucus Popular Question Popular Question Good Answer Famous Question Explainer Nice Question Popular Question Populist Yearling Caucus Booster Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59606,3677347,395921,Popular Question Announcer Nice Question Notable Question Self-Learner Yearling Notable Question Caucus Popular Question Popular Question Good Answer Famous Question Explainer Nice Question Popular Question Populist Yearling Caucus Booster Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59607,322654,298887,NULL,NULL,NULL,0,NULL,NULL 59608,70086,737985,NULL,NULL,NULL,0,NULL,NULL 59609,3248,497364,c# Revival Nice Answer Enlightened Good Answer Nice Question Guru Nice Answer Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Caucus Constituent Nice Answer Enlightened Proofreader Pundit Yearling Good Answer Good Answer Caucus Constituent Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 59610,521890,479152,NULL,NULL,NULL,0,NULL,NULL 59611,147469,665706,Commentator,NULL,NULL,0,NULL,NULL 59612,120798,154907,NULL,NULL,NULL,0,NULL,NULL 59613,75053,1078384,NULL,NULL,NULL,0,NULL,NULL 59614,204788,1065592,NULL,NULL,NULL,0,NULL,NULL 59615,185607,493864,NULL,NULL,NULL,0,NULL,NULL 59616,62323,186373,NULL,NULL,NULL,0,NULL,NULL 59617,902874,972794,NULL,NULL,NULL,0,NULL,NULL 59618,250345,1312951,NULL,NULL,NULL,0,NULL,NULL 59619,918631,1474418,Informed Critic Yearling Investor Altruist Caucus Documentation User Census Caucus Student Custodian Editor,NULL,NULL,0,NULL,NULL 59620,248735,1259812,NULL,NULL,NULL,0,NULL,NULL 59621,137147,203908,Revival Notable Question,NULL,NULL,0,NULL,NULL 59622,1667504,1201874,Popular Question Notable Question Scholar,NULL,NULL,0,NULL,NULL 59623,151721,1519459,NULL,NULL,NULL,0,NULL,NULL 59624,2109416,456192,Supporter,NULL,NULL,0,NULL,NULL 59625,666035,456192,Supporter,NULL,NULL,0,NULL,NULL 59626,914649,984677,NULL,NULL,NULL,0,NULL,NULL 59627,508897,453024,Yearling Great Question Good Answer Yearling Census Notable Question Popular Question Custodian Yearling Notable Question Stellar Question Nice Answer Yearling,NULL,Filename too long in Git for Windows windows git pI using codeGit preview20140217 code for Windows As know this release should fix the issue with too long filenames But not for me ppSurely doing something wrong did codegit config core longpaths true code and codegit add code and then codegit commit code Everything went well But when now do codegit status code get list of files with codeFilename too long code for example ppre codenode modules grunt contrib imagemin node modules pngquant bin node modules bin wrapper node modules download node modules request node modules form data node modules combined stream node modules delayed stream test integration test handle source errors js Filename too long code prepIt is quite simple to reproduce for me just create href https en wikipedia org wiki Yeoman software rel noreferrer Yeoman web application with the Angular generator yo angular and remove codenode modules code from the code gitignore code file Then repeat the aforementioned Git commands ppWhat am missing here karbovnichy please read my question carefully already ran the command in the top voted answer But at the time asked the question the accepted answer was correct msys still had this character limitation Now that limitation is gone and git config core longpaths true works like it should,0,NULL,NULL 59628,538985,1349841,NULL,NULL,NULL,0,NULL,NULL 59629,374992,1158508,Popular Question,NULL,NULL,0,NULL,NULL 59630,98520,1106886,NULL,NULL,NULL,0,NULL,NULL 59631,447601,568580,NULL,NULL,NULL,0,NULL,NULL 59632,806699,964268,NULL,NULL,NULL,0,NULL,NULL 59633,210824,892621,Critic Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 59634,291338,1231982,NULL,NULL,NULL,0,NULL,NULL 59635,404928,1528064,NULL,NULL,NULL,0,NULL,NULL 59636,196621,284147,Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 59637,1378379,1205176,NULL,NULL,NULL,0,NULL,NULL 59638,251674,537363,NULL,NULL,NULL,0,NULL,NULL 59639,314112,146975,Guru Custodian Yearling Nice Answer Caucus Yearling Census Popular Question Necromancer Yearling javascript Custodian,NULL,NULL,0,NULL,NULL 59640,1030076,908352,NULL,NULL,NULL,0,NULL,NULL 59641,3213212,240324,Favorite Question Good Question Nice Answer Popular Question Nice Answer Nice Question Great Answer Notable Question Popular Question Popular Question Mortarboard Famous Question Nice Question Popular Question Popular Question Great Question Popular Question Yearling Notable Question Announcer Popular Question Popular Question Popular Question Famous Question Famous Question Popular Question Caucus Popular Question Notable Question php Popular Question Notable Question Good Answer Necromancer Yearling Good Answer Famous Question Notable Question Great Question Announcer Popular Question Good Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 59642,488380,240324,Favorite Question Good Question Nice Answer Popular Question Nice Answer Nice Question Great Answer Notable Question Popular Question Popular Question Mortarboard Famous Question Nice Question Popular Question Popular Question Great Question Popular Question Yearling Notable Question Announcer Popular Question Popular Question Popular Question Famous Question Famous Question Popular Question Caucus Popular Question Notable Question php Popular Question Notable Question Good Answer Necromancer Yearling Good Answer Famous Question Notable Question Great Question Announcer Popular Question Good Question Popular Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 59643,186468,185686,Yearling,NULL,NULL,0,NULL,NULL 59644,80577,213855,Notable Question Yearling Popular Question Nice Question Nice Question Notable Question Popular Question Yearling Favorite Question Caucus Good Answer Popular Question Yearling Good Question Famous Question Favorite Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59645,78353,336044,Informed,NULL,NULL,0,NULL,NULL 59646,87316,1059548,NULL,NULL,NULL,0,NULL,NULL 59647,251802,1236939,NULL,NULL,NULL,0,NULL,NULL 59648,1503821,336607,Nice Question,NULL,NULL,0,NULL,NULL 59649,30125,18396,Electorate Yearling Caucus Popular Question Caucus Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 59650,67035,1449620,Informed Autobiographer Editor Organizer Popular Question,NULL,NULL,0,NULL,NULL 59651,542240,937021,NULL,NULL,NULL,0,NULL,NULL 59652,814202,502914,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 59653,176679,871524,NULL,NULL,NULL,0,NULL,NULL 59654,1212197,256361,Good Answer Yearling Popular Question Necromancer Necromancer Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 59655,167580,774976,Popular Question,NULL,NULL,0,NULL,NULL 59656,902437,898888,NULL,NULL,NULL,0,NULL,NULL 59657,894659,911902,NULL,NULL,NULL,0,NULL,NULL 59658,1567181,460080,NULL,NULL,NULL,0,NULL,NULL 59659,668835,1368572,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 59660,43100,135458,Yearling Yearling Yearling Benefactor,NULL,NULL,0,NULL,NULL 59661,35494,1118922,NULL,NULL,NULL,0,NULL,NULL 59662,149764,815920,NULL,NULL,NULL,0,NULL,NULL 59663,52472,637654,Revival Critic Notable Question Yearling,NULL,NULL,0,NULL,NULL 59664,68602,645920,NULL,NULL,NULL,0,NULL,NULL 59665,118125,983584,Teacher Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 59666,147300,466030,Yearling Nice Answer Good Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59667,361699,1513045,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59668,151768,472,Popular Question Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 59669,116654,876320,NULL,NULL,NULL,0,NULL,NULL 59670,15741,165224,Popular Question Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 59671,342119,978310,Popular Question,NULL,NULL,0,NULL,NULL 59672,80868,1013296,NULL,NULL,NULL,0,NULL,NULL 59673,5942891,892404,Organizer Yearling Notable Question Inquisitive Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Autobiographer Famous Question Popular Question Popular Question Self-Learner Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59674,1091660,892404,Organizer Yearling Notable Question Inquisitive Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Autobiographer Famous Question Popular Question Popular Question Self-Learner Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59675,125190,273157,NULL,NULL,NULL,0,NULL,NULL 59676,297435,1162483,NULL,NULL,NULL,0,NULL,NULL 59677,175626,1505968,NULL,NULL,NULL,0,NULL,NULL 59678,3368586,129230,NULL,NULL,NULL,0,NULL,NULL 59679,376667,431121,Nice Answer Enlightened Popular Question Notable Question Yearling Caucus Yearling Great Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 59680,865090,368750,Teacher Popular Question,NULL,NULL,0,NULL,NULL 59681,139715,472783,Notable Question Critic Excavator Nice Question,NULL,NULL,0,NULL,NULL 59682,1716027,757171,NULL,NULL,NULL,0,NULL,NULL 59683,195474,757171,NULL,NULL,NULL,0,NULL,NULL 59684,835209,874727,NULL,NULL,NULL,0,NULL,NULL 59685,141967,550856,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59686,341419,735336,Guru Yearling Nice Answer Nice Answer Enlightened Nice Answer Great Answer Great Answer Reviewer Good Answer Great Answer Nice Answer Yearling Enlightened Autobiographer Nice Answer Custodian Steward Necromancer Guru Caucus Good Answer Yearling Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 59687,10985,396256,NULL,NULL,NULL,0,NULL,NULL 59688,171031,1052553,NULL,NULL,NULL,0,NULL,NULL 59689,200864,1052553,NULL,NULL,NULL,0,NULL,NULL 59690,181743,1326622,NULL,NULL,NULL,0,NULL,NULL 59691,22481,340323,NULL,NULL,NULL,0,NULL,NULL 59692,161070,655943,Great Answer Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 59693,552902,928426,NULL,NULL,NULL,0,NULL,NULL 59694,184966,472775,NULL,NULL,NULL,0,NULL,NULL 59695,33731,494328,Popular Question Yearling Nice Question Good Question Popular Question Popular Question Yearling Famous Question Popular Question Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 59696,88189,503589,NULL,NULL,NULL,0,NULL,NULL 59697,496638,1193642,NULL,NULL,NULL,0,NULL,NULL 59698,4259784,1193642,NULL,NULL,NULL,0,NULL,NULL 59699,328409,194672,Supporter Tumbleweed Necromancer Revival Nice Answer Critic,NULL,NULL,0,NULL,NULL 59700,101534,1077363,NULL,NULL,NULL,0,NULL,NULL 59701,10019095,700952,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59702,57120,700952,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59703,51996,716249,Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 59704,7718295,695019,NULL,NULL,NULL,0,NULL,NULL 59705,75682,904329,NULL,NULL,NULL,0,NULL,NULL 59706,667173,108288,NULL,NULL,NULL,0,NULL,NULL 59707,149474,41749,NULL,NULL,NULL,0,NULL,NULL 59708,72888,354850,NULL,NULL,NULL,0,NULL,NULL 59709,312923,394095,Yearling Good Question Notable Question Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 59710,553065,354683,Organizer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 59711,2229,486952,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59712,39625,560665,NULL,NULL,NULL,0,NULL,NULL 59713,177457,434848,Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 59714,267036,9750,NULL,NULL,NULL,0,NULL,NULL 59715,139720,181310,Notable Question Good Question Necromancer Popular Question Great Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Nice Answer Enlightened Yearling Nice Question Guru Nice Answer Enlightened Nice Question Popular Question Nice Answer Popular Question Popular Question Necromancer Nice Answer Enlightened Good Question Popular Question Notable Question Notable Question Yearling Popular Question Good Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Good Answer Popular Question Notable Question jquery Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 59716,8795,184492,NULL,NULL,NULL,0,NULL,NULL 59717,3384583,184492,NULL,NULL,NULL,0,NULL,NULL 59718,147334,732521,Popular Question Nice Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 59719,52943,1540331,Notable Question,NULL,NULL,0,NULL,NULL 59720,695770,1493287,NULL,NULL,NULL,0,NULL,NULL 59721,888201,195003,NULL,NULL,NULL,0,NULL,NULL 59722,710998,1089153,Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Famous Question Notable Question Notable Question Good Question Notable Question Yearling Nice Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59723,4057,34910,Good Question Notable Question Popular Question Popular Question Necromancer Notable Question Notable Question Nice Question Civic Duty Revival Yearling Announcer Notable Question Yearling Custodian Favorite Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59724,70697,1058882,NULL,NULL,NULL,0,NULL,NULL 59725,266595,626129,NULL,NULL,NULL,0,NULL,NULL 59726,91084,1036698,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Famous Question Popular Question Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 59727,531077,207824,NULL,NULL,NULL,0,NULL,NULL 59728,2512720,851063,NULL,NULL,NULL,0,NULL,NULL 59729,470920,851063,NULL,NULL,NULL,0,NULL,NULL 59730,258395,1495420,NULL,NULL,NULL,0,NULL,NULL 59731,3166642,1105124,NULL,NULL,NULL,0,NULL,NULL 59732,117129,924375,Nice Answer,NULL,NULL,0,NULL,NULL 59733,18116,909625,Nice Answer Enlightened Revival Announcer Yearling Good Answer Nice Answer Enlightened Yearling Yearling,NULL,SailsJS through association how to create association postgresql sails js waterline pI using strongSails 12 strong and strongpostgresql strong on Mac OSX 10 10 and attempting to implement href http sailsjs org documentation concepts models and orm associations through associations rel nofollow noreferrer through association ppI ve set up two models with third as the join table When attempt to test that it is all set up by creating relationship get this error pblockquotepre code Uncaught TypeError Cannot read property via of undefined code pre blockquotepHere my strongtest strong strongmocha chai strong think the error is actually in this method of creating the association since if create the model for the join as separate call it works ppre code describe with orgs function beforeEach function done var testEmail sue com var orgName Awesome Org Org create name orgName then function org return User create username testEmail orgs org then function user done catch done it populates empty list of orgs function done console log about to call find User find populate orgs then function users console log users users var user users assert isNotNull user orgs assert equal user orgs length done catch done code prepHere are my models pp strongUser js strong ppre codemodule exports attributes username type email orgs collection org via user through orgmembership code prep strongOrg js strong ppre codemodule exports attributes name string users collection user via org through orgmembership code prep strongOrgMembership js strong ppre codemodule exports tableName org membership attributes user model User columnName user id foreignKey true org model Org columnName org id foreignKey true code prepI ve posted the whole project on href https github com ultrasaurus sails many to many tree related postgres rel nofollow noreferrer github ppI found this href https stackoverflow com questions 34570740 how to implement many to many association using through in sails other stackoverflow question which seems to be doing the same thing and attempted to follow the same pattern but it not working for me ppI would appreciate any pointers or suggestions Thank you Looks like this was bug in Waterline and has been patched as of Waterline 11 tested with your project and it worked as expected,0,NULL,NULL 59734,104796,149899,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59735,349777,922752,NULL,NULL,NULL,0,NULL,NULL 59736,246692,474875,Student Commentator Popular Question Supporter Teacher Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 59737,533526,754036,Popular Question Teacher,NULL,NULL,0,NULL,NULL 59738,587662,896068,NULL,NULL,NULL,0,NULL,NULL 59739,88601,870982,NULL,NULL,NULL,0,NULL,NULL 59740,400623,691083,Popular Question Yearling Notable Question Notable Question Famous Question Nice Question Nice Question Popular Question Famous Question Notable Question Notable Question Yearling Nice Answer Yearling Informed Notable Question,NULL,NULL,0,NULL,NULL 59741,3021802,1334469,Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 59742,15229,106717,Peer Pressure Necromancer Good Question Nice Question Notable Question Yearling Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 59743,785484,383712,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 59744,41954,906877,Editor Informed Scholar,NULL,NULL,0,NULL,NULL 59745,208857,493640,NULL,NULL,NULL,0,NULL,NULL 59746,935589,493640,NULL,NULL,NULL,0,NULL,NULL 59747,2652884,493640,NULL,NULL,NULL,0,NULL,NULL 59748,256460,683889,Notable Question,NULL,NULL,0,NULL,NULL 59749,455328,92096,Famous Question Popular Question Nice Answer Enlightened Yearling Necromancer Notable Question Guru Nice Answer Popular Question ruby-on-rails Nice Answer php Custodian Popular Question Yearling Good Question Caucus Notable Question Revival Popular Question Taxonomist Yearling Revival,NULL,NULL,0,NULL,NULL 59750,281259,1336164,NULL,NULL,NULL,0,NULL,NULL 59751,168320,1049196,NULL,NULL,NULL,0,NULL,NULL 59752,128132,284267,NULL,NULL,NULL,0,NULL,NULL 59753,151824,1121564,NULL,NULL,NULL,0,NULL,NULL 59754,457210,1392658,Custodian Tag Editor Yearling Popular Question Self-Learner Caucus Nice Answer Enlightened Explainer redis Yearling Custodian Good Answer Caucus Nice Answer Nice Answer Enlightened Documentation User Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 59755,3320001,1392658,Custodian Tag Editor Yearling Popular Question Self-Learner Caucus Nice Answer Enlightened Explainer redis Yearling Custodian Good Answer Caucus Nice Answer Nice Answer Enlightened Documentation User Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 59756,530836,1291,Famous Question Good Answer Yearling Good Question Caucus Constituent Popular Question Custodian Nice Answer Caucus Yearling Documentation User Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 59757,3299698,319040,NULL,NULL,NULL,0,NULL,NULL 59758,49123,1531806,Revival Famous Question Nice Answer Enlightened Necromancer javascript Notable Question Revival Nice Question Good Answer Nice Answer Favorite Question Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Custodian Necromancer Good Answer Good Answer Good Answer Yearling Great Answer Great Question Populist Revival Populist Good Answer Famous Question Tumbleweed Yearling Peer Pressure Notable Question,NULL,NULL,0,NULL,NULL 59759,887758,1205443,NULL,NULL,NULL,0,NULL,NULL 59760,2573457,1474626,Teacher Informed Supporter,NULL,NULL,0,NULL,NULL 59761,161058,795505,NULL,NULL,NULL,0,NULL,NULL 59762,1550,104235,Commentator Yearling Documentation User,NULL,NULL,0,NULL,NULL 59763,18242,1181355,NULL,NULL,NULL,0,NULL,NULL 59764,244881,362947,Yearling,NULL,NULL,0,NULL,NULL 59765,36484,719142,Necromancer,NULL,NULL,0,NULL,NULL 59766,159511,1729,Census,NULL,NULL,0,NULL,NULL 59767,29082,414376,Good Answer Revival Famous Question Enlightened Inquisitive Guru Famous Question ruby-on-rails Yearling Announcer Announcer Notable Question Popular Question Yearling Necromancer Great Answer Notable Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 59768,11297,114623,Nice Answer Enlightened Popular Question Civic Duty Popular Question Famous Question Popular Question Yearling Popular Question Great Answer Nice Question Good Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 59769,65508,733201,NULL,NULL,NULL,0,NULL,NULL 59770,325581,253276,NULL,NULL,NULL,0,NULL,NULL 59771,1049944,253276,NULL,NULL,NULL,0,NULL,NULL 59772,697778,1185734,NULL,NULL,NULL,0,NULL,NULL 59773,206144,572141,Popular Question,NULL,NULL,0,NULL,NULL 59774,154654,1379569,NULL,NULL,NULL,0,NULL,NULL 59775,183782,530102,NULL,NULL,NULL,0,NULL,NULL 59776,373652,441812,NULL,NULL,NULL,0,NULL,NULL 59777,26356,1257500,NULL,NULL,NULL,0,NULL,NULL 59778,711540,1072744,Notable Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 59779,8359623,873347,NULL,NULL,NULL,0,NULL,NULL 59780,316332,847355,NULL,NULL,NULL,0,NULL,NULL 59781,139398,1320713,NULL,NULL,NULL,0,NULL,NULL 59782,204980,690942,NULL,NULL,NULL,0,NULL,NULL 59783,113844,933161,Civic Duty Yearling Citizen Patrol Custodian Necromancer Custodian Curious Nice Answer,NULL,pDocker originally used href http lxc sourceforge net rel noreferrer LinuX Containers LXC but later switched to href https github com opencontainers runc rel noreferrer runC formerly known as stronglibcontainer strong which runs in the same operating system as its host This allows it to share lot of the host operating system resources Also it uses layered filesystem href http aufs sourceforge net rel noreferrer AuFS and manages networking ppAuFS is layered file system so you can have read only part and write part which are merged together One could have the common parts of the operating system as read only and shared amongst all of your containers and then give each container its own mount for writing ppSo let say you have nbsp GB container image if you wanted to use full VM you would need to have nbsp GB times number of VMs you want With Docker and AuFS you can share the bulk of the nbsp GB between all the containers and if you have 1000 containers you still might only have little over nbsp GB of space for the containers OS assuming they are all running the same OS image ppA full virtualized system gets its own set of resources allocated to it and does minimal sharing You get more isolation but it is much heavier requires more resources With Docker you get less isolation but the containers are lightweight require fewer resources So you could easily run thousands of containers on host and it won even blink Try doing that with Xen and unless you have really big host don think it is possible ppA full virtualized system usually takes minutes to start whereas Docker LXC runC containers take seconds and often even less than second ppThere are pros and cons for each type of virtualized system If you want full isolation with guaranteed resources full VM is the way to go If you just want to isolate processes from each other and want to run ton of them on reasonably sized host then Docker LXC runC seems to be the way to go ppFor more information check out href http web archive org web 20150326185901 http blog dotcloud com under the hood linux kernels on dotcloud part rel noreferrer this set of blog posts which do good job of explaining how LXC works pblockquote pWhy is deploying software to docker image if that the right term easier than simply deploying to consistent production environment blockquotepDeploying consistent production environment is easier said than done Even if you use tools like href https en wikipedia org wiki Chef 28software 29 rel noreferrer Chef and href https en wikipedia org wiki Puppet 28software 29 rel noreferrer Puppet there are always OS updates and other things that change between hosts and environments ppDocker gives you the ability to snapshot the OS into shared image and makes it easy to deploy on other Docker hosts Locally dev qa prod etc all the same image Sure you can do this with other tools but not nearly as easily or fast ppThis is great for testing let say you have thousands of tests that need to connect to database and each test needs pristine copy of the database and will make changes to the data The classic approach to this is to reset the database after every test either with custom code or with tools like href https flywaydb org rel noreferrer Flyway this can be very time consuming and means that tests must be run serially However with Docker you could create an image of your database and run up one instance per test and then run all the tests in parallel since you know they will all be running against the same snapshot of the database Since the tests are running in parallel and in Docker containers they could run all on the same box at the same time and should finish much faster Try doing that with full VM ppFrom comments pblockquote pInteresting suppose still confused by the notion of snapshot ting the OS How does one do that without well making an image of the OS blockquotepWell let see if can explain You start with base image and then make your changes and commit those changes using docker and it creates an image This image contains only the differences from the base When you want to run your image you also need the base and it layers your image on top of the base using layered file system as mentioned above Docker uses AUFS AUFS merges the different layers together and you get what you want you just need to run it You can keep adding more and more images layers and it will continue to only save the diffs Since Docker typically builds on top of ready made images from href https registry hub docker com rel noreferrer registry you rarely have to snapshot the whole OS yourself You can get consistent environment with nixos nixpkgs,0,NULL,NULL 59784,18555,473132,Yearling Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 59785,53105,688931,NULL,NULL,NULL,0,NULL,NULL 59786,313932,661451,Popular Question,NULL,NULL,0,NULL,NULL 59787,224430,1402964,Autobiographer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 59788,32550,749101,NULL,NULL,NULL,0,NULL,NULL 59789,61876,399247,Informed,NULL,NULL,0,NULL,NULL 59790,732470,678096,NULL,NULL,NULL,0,NULL,NULL 59791,316558,653866,NULL,NULL,NULL,0,NULL,NULL 59792,67026,1368649,Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59793,468648,1053335,jquery Popular Question Nice Question Popular Question Yearling Notable Question Good Answer Nice Answer Enlightened php Yearling Good Answer Notable Question Nice Answer Guru Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59794,336806,1371081,Tumbleweed Editor,NULL,NULL,0,NULL,NULL 59795,35952,367697,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59796,110202,317429,Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Teacher Yearling Famous Question Notable Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 59797,130787,1240758,NULL,NULL,NULL,0,NULL,NULL 59798,1306172,271502,NULL,NULL,NULL,0,NULL,NULL 59799,181422,788355,Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 59800,21459,1166523,NULL,NULL,NULL,0,NULL,NULL 59801,616680,578676,Yearling Nice Answer Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 59802,640867,54500,Yearling Famous Question Nice Answer sphinx Yearling Good Question Census Yearling,NULL,NULL,0,NULL,NULL 59803,10647,54500,Yearling Famous Question Nice Answer sphinx Yearling Good Question Census Yearling,NULL,NULL,0,NULL,NULL 59804,1936325,112314,NULL,NULL,NULL,0,NULL,NULL 59805,254246,721741,NULL,NULL,NULL,0,NULL,NULL 59806,6326,53685,NULL,NULL,NULL,0,NULL,NULL 59807,62222,209813,NULL,NULL,NULL,0,NULL,NULL 59808,112948,745248,NULL,NULL,NULL,0,NULL,NULL 59809,166554,296641,NULL,NULL,NULL,0,NULL,NULL 59810,50820,920859,NULL,NULL,NULL,0,NULL,NULL 59811,629624,929434,Good Answer,NULL,NULL,0,NULL,NULL 59812,334931,1488940,Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 59813,1555733,1094810,NULL,NULL,NULL,0,NULL,NULL 59814,14229,81292,Popular Question Yearling Popular Question Famous Question Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 59815,2589437,1251850,NULL,NULL,NULL,0,NULL,NULL 59816,57247,1251850,NULL,NULL,NULL,0,NULL,NULL 59817,493873,290503,Nice Question Yearling Popular Question Popular Question Famous Question Good Question Popular Question Popular Question Popular Question Popular Question Great Answer Yearling Enlightened Popular Question Popular Question Documentation User Popular Question Yearling Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 59818,786774,1478343,NULL,NULL,NULL,0,NULL,NULL 59819,1519802,1412441,NULL,NULL,NULL,0,NULL,NULL 59820,430562,188632,Popular Question,NULL,NULL,0,NULL,NULL 59821,503088,259018,Yearling Nice Answer Necromancer Enlightened Caucus Tumbleweed Yearling Good Answer Notable Question Guru,NULL,NULL,0,NULL,NULL 59822,435113,729117,NULL,NULL,NULL,0,NULL,NULL 59823,1348845,1328342,Nice Question,NULL,NULL,0,NULL,NULL 59824,899366,1347611,NULL,NULL,NULL,0,NULL,NULL 59825,64285,1383350,NULL,NULL,NULL,0,NULL,NULL 59826,861175,1383350,NULL,NULL,NULL,0,NULL,NULL 59827,589023,262123,Yearling Good Question Nice Answer Enthusiast Custodian Caucus Yearling Necromancer Tag Editor Announcer Census Yearling Good Answer Necromancer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 59828,328408,631855,Curious Yearling Good Question Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 59829,1597325,1187701,Editor Teacher Citizen Patrol Supporter Explainer,NULL,NULL,0,NULL,NULL 59830,245816,417934,Yearling Good Answer Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59831,1569511,227685,NULL,NULL,NULL,0,NULL,NULL 59832,89308,376655,NULL,NULL,NULL,0,NULL,NULL 59833,7110,953859,NULL,NULL,NULL,0,NULL,NULL 59834,508007,928419,NULL,NULL,NULL,0,NULL,NULL 59835,106246,968201,Necromancer Nice Answer Yearling Nice Answer Enlightened Announcer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 59836,316051,1309020,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59837,7547,39589,Guru Yearling,NULL,NULL,0,NULL,NULL 59838,130926,825,Favorite Question Nice Answer Nice Answer Nice Answer Great Question Guru Favorite Question Yearling Nice Answer Great Question Famous Question Good Answer Yearling Great Answer Guru Stellar Question Pundit Documentation User Nice Answer Yearling Guru Nice Answer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 59839,208630,323999,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 59840,43225,1268913,NULL,NULL,NULL,0,NULL,NULL 59841,673092,594434,NULL,NULL,NULL,0,NULL,NULL 59842,704224,1316742,NULL,NULL,NULL,0,NULL,NULL 59843,215680,559282,Famous Question,NULL,NULL,0,NULL,NULL 59844,426773,605578,Custodian Citizen Patrol Custodian Custodian Popular Question Notable Question Civic Duty Famous Question Popular Question Caucus Custodian Notable Question Notable Question Self-Learner Yearling Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Famous Question Good Question Caucus Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 59845,495952,1236772,NULL,NULL,NULL,0,NULL,NULL 59846,1216959,243284,NULL,NULL,NULL,0,NULL,NULL 59847,176635,661708,Nice Question Yearling Commentator Good Question,NULL,NULL,0,NULL,NULL 59848,293094,1094508,Notable Question Yearling,NULL,NULL,0,NULL,NULL 59849,448356,772582,Yearling Guru Yearling Guru Census Yearling,NULL,NULL,0,NULL,NULL 59850,38445,1368812,NULL,NULL,NULL,0,NULL,NULL 59851,1069742,1243488,Notable Question Supporter,NULL,NULL,0,NULL,NULL 59852,110349,4046,Caucus Yearling Caucus Commentator,NULL,NULL,0,NULL,NULL 59853,143787,449686,Popular Question Announcer Good Question,NULL,NULL,0,NULL,NULL 59854,123689,169274,Explainer Nice Question Popular Question Notable Question Fanatic Nice Answer Notable Question Notable Question Nice Answer Enlightened Yearling Nice Question Popular Question Caucus Yearling Guru Good Answer Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 59855,202153,1110772,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59856,1321597,573484,NULL,NULL,NULL,0,NULL,NULL 59857,192855,715644,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59858,357452,948070,Popular Question Yearling Critic Enthusiast Fanatic Commentator Yearling,NULL,NULL,0,NULL,NULL 59859,206397,1020235,NULL,NULL,NULL,0,NULL,NULL 59860,88348,332931,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 59861,771,524265,NULL,NULL,NULL,0,NULL,NULL 59862,37479,596666,Notable Question,NULL,NULL,0,NULL,NULL 59863,18484,363797,Notable Question Popular Question Nice Question Famous Question Good Question Teacher Caucus Curious Census Yearling,NULL,NULL,0,NULL,NULL 59864,450088,1416180,Editor Student,NULL,NULL,0,NULL,NULL 59865,658378,541313,Yearling Good Answer Yearling Nice Answer Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 59866,315599,645288,Yearling Good Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 59867,187115,1001051,NULL,NULL,NULL,0,NULL,NULL 59868,6559,459329,Notable Question Notable Question Nice Answer Popular Question Notable Question Popular Question Taxonomist Notable Question Favorite Question Popular Question Notable Question Good Question Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Nice Question Famous Question Famous Question Yearling Good Question Popular Question Notable Question Famous Question Good Question Nice Question Notable Question Yearling Good Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 59869,129641,603994,NULL,NULL,NULL,0,NULL,NULL 59870,69431,1248381,Yearling Good Question,NULL,NULL,0,NULL,NULL 59871,137190,36,Nice Answer Yearling Good Answer Caucus Constituent Census Caucus Constituent Yearling Documentation User Census Good Question .net Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 59872,1515780,770453,NULL,NULL,NULL,0,NULL,NULL 59873,755571,1472643,NULL,NULL,NULL,0,NULL,NULL 59874,531263,1204648,NULL,NULL,NULL,0,NULL,NULL 59875,276624,908530,NULL,NULL,NULL,0,NULL,NULL 59876,199087,94120,Good Answer Revival Yearling Nice Question Nice Answer Enlightened Great Question Favorite Question Yearling Nice Question Notable Question Notable Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 59877,7332870,641673,NULL,NULL,NULL,0,NULL,NULL 59878,249634,1259762,NULL,NULL,NULL,0,NULL,NULL 59879,7530092,1259762,NULL,NULL,NULL,0,NULL,NULL 59880,150752,1389928,NULL,NULL,NULL,0,NULL,NULL 59881,603362,1509808,Notable Question Scholar Supporter,NULL,NULL,0,NULL,NULL 59882,4762187,947553,NULL,NULL,,0,, 59883,82805,935280,Nice Answer Yearling Good Question Caucus Constituent Nice Answer Enlightened Custodian Yearling Popular Question Census Necromancer Yearling,NULL,NULL,0,NULL,NULL 59884,4432335,935280,Nice Answer Yearling Good Question Caucus Constituent Nice Answer Enlightened Custodian Yearling Popular Question Census Necromancer Yearling,NULL,NULL,0,NULL,NULL 59885,149717,92596,NULL,NULL,NULL,0,NULL,NULL 59886,582908,1090483,NULL,NULL,NULL,0,NULL,NULL 59887,556402,385045,Tumbleweed Curious Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 59888,355997,731677,NULL,NULL,NULL,0,NULL,NULL 59889,26634,105880,NULL,NULL,NULL,0,NULL,NULL 59890,219071,192702,Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Popular Question Popular Question Inquisitive Popular Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Populist Nice Answer Enlightened Yearling Good Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Caucus phoenix-framework Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Favorite Question ruby-on-rails Good Answer Nice Answer Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Populist Great Answer Good Answer Pundit Necromancer Good Answer Nice Answer Nice Answer Good Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Famous Question Nice Answer Yearling Good Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Necromancer Caucus Good Answer Nice Answer Enlightened rspec Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Enlightened Good Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Yearling Enlightened,NULL,h3RSpec h3pRSpec href http rspec info blog 2014 05 notable changes in rspec new output matcher rel noreferrer added new codeoutput code matcher for this purpose ppre codeexpect my method to output my message to stdoutexpect my method to output my error to stderr code preh3Minitest h3pMinitest also has something called href http rubydoc info gems minitest Minitest Assertions capture io instance method rel noreferrer codecapture io code ppre codeout err capture io do my methodendassert equals my message outassert equals my error err code preh3RSpec lt and others h3pFor RSpec lt and other frameworks you can use the following helper This will allow you to capture whatever is sent to stdout and stderr respectively ppre coderequire stringio def capture stdout amp blk old stdout stdout fake StringIO new blk call fake stringensure stdout oldenddef capture stderr amp blk old stderr stderr fake StringIO new blk call fake stringensure stderr oldend code prepNow when you have method that should print something to the console ppre codedef my method print my message end code prepyou can write spec like this ppre codeit should print my message do printed capture stdout do my method do your actual method call end printed should eq my message end code pre yes blk is proc that contains the computations in the do end block passed to the method,1,NULL,Elixir how to deep merge maps elixir pWith codeMap merge code have ppre codeMap merge gt code prepbut actually want to ppre codeMap merge gt code prepIs there any native method without writing recursive boilerplate function for this case pAs suggested you can write function to recursively merge maps ppre codedefmodule MapUtils do def deep merge left right do Map merge left right amp deep resolve end Key exists in both maps and both values are maps as well These can be merged recursively defp deep resolve key left right do deep merge left right end Key exists in both maps but at least one of the values is NOT map We fall back to standard merge behavior preferring the value on the right defp deep resolve key left right do right endend code prepHere are some test cases to give you an idea how conflicts are resolved ppre codeExUnit startdefmodule MapUtils Test do use ExUnit Case test one level of maps without conflict do result MapUtils deep merge assert result end test two levels of maps without conflict do result MapUtils deep merge assert result end test three levels of maps without conflict do result MapUtils deep merge assert result end test non map value in left do result MapUtils deep merge assert result end test non map value in right do result MapUtils deep merge assert result end test non map value in both do result MapUtils deep merge assert result endend code pre 59891,442000,985022,NULL,NULL,NULL,0,NULL,NULL 59892,246069,1330280,NULL,NULL,NULL,0,NULL,NULL 59893,572790,394592,Census Critic Yearling,NULL,NULL,0,NULL,NULL 59894,909161,535038,NULL,NULL,NULL,0,NULL,NULL 59895,6662864,824032,Notable Question,NULL,NULL,0,NULL,NULL 59896,372870,359701,NULL,NULL,NULL,0,NULL,NULL 59897,238825,237686,NULL,NULL,NULL,0,NULL,NULL 59898,9317117,237686,NULL,NULL,NULL,0,NULL,NULL 59899,85792,668403,Curious Benefactor Necromancer Revival Nice Answer Yearling Popular Question Census Custodian Custodian Yearling Good Answer Nice Answer Caucus Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 59900,75479,417569,NULL,NULL,NULL,0,NULL,NULL 59901,1563098,1167568,Yearling Nice Answer Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 59902,536381,69196,NULL,NULL,NULL,0,NULL,NULL 59903,74497,23600,Great Question Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 59904,198439,1301538,NULL,NULL,NULL,0,NULL,NULL 59905,155775,220860,NULL,NULL,NULL,0,NULL,NULL 59906,148390,748888,Popular Question Notable Question Yearling Nice Answer Enlightened Notable Question Good Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 59907,401602,995939,NULL,NULL,NULL,0,NULL,NULL 59908,29189,461992,Notable Question Popular Question Notable Question Good Question Good Question Announcer Popular Question Famous Question Notable Question Yearling Popular Question Famous Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Census Popular Question Notable Question Nice Question Popular Question Caucus Constituent Yearling Good Question Custodian Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59909,3942,1133411,Yearling Revival,NULL,NULL,0,NULL,NULL 59910,296565,354168,NULL,NULL,NULL,0,NULL,NULL 59911,451739,955515,Editor Excavator,NULL,NULL,0,NULL,NULL 59912,135098,1256751,NULL,NULL,NULL,0,NULL,NULL 59913,106554,182901,Caucus Yearling,NULL,NULL,0,NULL,NULL 59914,70487,908440,Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Good Answer Yearling Custodian Guru,NULL,NULL,0,NULL,NULL 59915,32791,50920,NULL,NULL,NULL,0,NULL,NULL 59916,1548987,781872,NULL,NULL,NULL,0,NULL,NULL 59917,166443,1267862,NULL,NULL,NULL,0,NULL,NULL 59918,3918865,1163260,Popular Question Teacher Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 59919,81129,506786,NULL,NULL,NULL,0,NULL,NULL 59920,44885,245440,Yearling,NULL,NULL,0,NULL,NULL 59921,445409,622098,NULL,NULL,NULL,0,NULL,NULL 59922,46417,161182,Necromancer Good Answer Revival Yearling Nice Answer Great Answer Great Answer Yearling Great Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 59923,146326,31521,Citizen Patrol,NULL,NULL,0,NULL,NULL 59924,11482,791040,Informed Student Necromancer Critic Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 59925,36525,34892,NULL,NULL,NULL,0,NULL,NULL 59926,51580,1218898,NULL,NULL,NULL,0,NULL,NULL 59927,15332,107725,NULL,NULL,NULL,0,NULL,NULL 59928,531394,734557,Popular Question Informed Critic Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 59929,87672,2677,NULL,NULL,NULL,0,NULL,NULL 59930,88651,57626,Good Question Yearling Nice Question Explainer Notable Question Famous Question Yearling Nice Answer Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 59931,886286,1413462,Informed Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 59932,1106742,116829,NULL,NULL,NULL,0,NULL,NULL 59933,29713,916734,Yearling Informed Citizen Patrol Peer Pressure Autobiographer Enthusiast Explainer Yearling Caucus Constituent Necromancer Necromancer Nice Answer Announcer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 59934,592419,585977,Famous Question Good Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59935,68162,496992,Guru Necromancer Good Answer Yearling Necromancer Nice Answer Necromancer Pundit Favorite Question Yearling Popular Question Necromancer Announcer Nice Answer Yearling,NULL,pI surprised there no discussion of the incoming flags going to monitor this in the logs with the following ppre codeif null intent null intent getAction String source null intent intent action Log TAG source was null flags flags bits Integer toBinaryString flags return START STICKY code prepUpdate Flags were so there was nothing actionable there ve left the null check in there with no loss of function ppEdit Ok found it in the documentation of START STICKY of all places if there are not any pending start commands to be delivered to the service it will be called with null intent object so you must take care to check for this pp href http developer android com reference android app Service html http developer android com reference android app Service html you can just make intent to Intent Worked for me But then of course you need to correctly handle null intent,0,NULL,NULL 59936,145699,979784,Necromancer Notable Question Good Question Famous Question Revival Popular Question Yearling Necromancer Famous Question Notable Question Famous Question Informed Popular Question Nice Answer Popular Question Yearling Nice Question Famous Question Citizen Patrol Popular Question Nice Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 59937,43697,406263,NULL,NULL,NULL,0,NULL,NULL 59938,18775,691942,NULL,NULL,NULL,0,NULL,NULL 59939,224625,396048,NULL,NULL,NULL,0,NULL,NULL 59940,1204679,428614,NULL,NULL,NULL,0,NULL,NULL 59941,78741,527459,NULL,NULL,NULL,0,NULL,NULL 59942,121024,1133318,Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 59943,403762,598679,NULL,NULL,NULL,0,NULL,NULL 59944,1331853,1136759,NULL,NULL,NULL,0,NULL,NULL 59945,284499,269300,Civic Duty Caucus Yearling Nice Answer Announcer Revival Announcer Caucus,NULL,NULL,0,NULL,NULL 59946,394621,188549,Enthusiast Peer Pressure Nice Answer Revival Yearling Critic,NULL,NULL,0,NULL,NULL 59947,1351410,1156849,Curious Yearling Custodian,NULL,NULL,0,NULL,NULL 59948,18953,783663,Popular Question Good Question Yearling Nice Question Popular Question Nice Question Nice Question Popular Question Good Question Notable Question Famous Question Popular Question Good Question Notable Question Notable Question Nice Answer Enlightened Popular Question Yearling Popular Question Nice Question Good Question Popular Question Famous Question Excavator Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 59949,243152,1071663,NULL,NULL,NULL,0,NULL,NULL 59950,181921,885567,Teacher,NULL,NULL,0,NULL,NULL 59951,518059,1162421,NULL,NULL,NULL,0,NULL,NULL 59952,174854,853024,Scholar Popular Question Yearling,NULL,NULL,0,NULL,NULL 59953,5485,752724,NULL,NULL,NULL,0,NULL,NULL 59954,243417,415240,NULL,NULL,NULL,0,NULL,NULL 59955,190810,1512284,NULL,NULL,NULL,0,NULL,NULL 59956,162415,610279,Revival Yearling,NULL,NULL,0,NULL,NULL 59957,540501,1333978,Curious Census Informed Documentation User Census Excavator,NULL,NULL,0,NULL,NULL 59958,573,864187,Popular Question,NULL,NULL,0,NULL,NULL 59959,109396,343618,NULL,NULL,NULL,0,NULL,NULL 59960,1040903,1306023,NULL,NULL,NULL,0,NULL,NULL 59961,34907,998981,NULL,NULL,NULL,0,NULL,NULL 59962,34604,156555,Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 59963,847142,910564,Suffrage Vox Populi Popular Question,NULL,NULL,0,NULL,NULL 59964,64351,1475882,NULL,NULL,NULL,0,NULL,NULL 59965,1152266,106896,Informed,NULL,NULL,0,NULL,NULL 59966,485530,48700,Notable Question Notable Question Good Answer Great Answer Nice Answer Announcer Nice Answer Revival Documentation Pioneer Famous Question Caucus Constituent Necromancer Yearling Popular Question Census Famous Question Notable Question Famous Question Necromancer Announcer Good Answer Announcer Caucus Constituent Populist Good Answer Documentation User Strunk & White Good Question Nice Answer Yearling Census Notable Question Caucus Announcer Popular Question Famous Question Revival Good Answer,NULL,NULL,0,NULL,NULL 59967,94204,109926,Yearling Guru Notable Question Nice Answer Yearling Curious Nice Answer,NULL,NULL,0,NULL,NULL 59968,86135,8862,NULL,NULL,NULL,0,NULL,NULL 59969,545884,224585,Revival,NULL,NULL,0,NULL,NULL 59970,171639,223241,NULL,NULL,NULL,0,NULL,NULL 59971,7958373,223241,NULL,NULL,NULL,0,NULL,NULL 59972,87254,759117,Custodian Yearling Yearling Caucus Yearling Cleanup,NULL,NULL,0,NULL,NULL 59973,411361,661008,NULL,NULL,NULL,0,NULL,NULL 59974,6181914,461872,Popular Question Popular Question Notable Question Famous Question Citizen Patrol Popular Question Nice Question Good Question Notable Question Guru Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Nice Question Nice Answer Notable Question Famous Question Notable Question Notable Question Nice Question Notable Question node.js Popular Question Taxonomist Popular Question Good Answer Nice Question Popular Question Nice Question Notable Question Nice Question Famous Question Popular Question Famous Question Nice Question Famous Question Yearling Notable Question Good Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Yearling Guru Nice Answer Enlightened Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59975,10160,461872,Popular Question Popular Question Notable Question Famous Question Citizen Patrol Popular Question Nice Question Good Question Notable Question Guru Popular Question Notable Question Popular Question Famous Question Yearling Famous Question Nice Question Nice Answer Notable Question Famous Question Notable Question Notable Question Nice Question Notable Question node.js Popular Question Taxonomist Popular Question Good Answer Nice Question Popular Question Nice Question Notable Question Nice Question Famous Question Popular Question Famous Question Nice Question Famous Question Yearling Notable Question Good Question Notable Question Notable Question Notable Question Popular Question Notable Question Nice Question Yearling Guru Nice Answer Enlightened Notable Question Notable Question,NULL,NULL,0,NULL,NULL 59976,92942,230619,Revival Yearling,NULL,NULL,0,NULL,NULL 59977,408912,46187,Nice Answer Notable Question Great Answer Nice Answer Enlightened Good Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Good Answer Guru Yearling,NULL,pTo be clear created FakeItEasy so ll definitely not say whether one framework is better than the other what can do is point out some differences and motivate emwhy em created FakeItEasy Functionally there are no major differences between Moq and FakeItEasy ppFakeItEasy has no Verifiable or Expectations it has assertions however these are always explicitly stated at the very end of test believe this makes tests easier to read and understand It also helps beginners to avoid multiple asserts where they would set expectations on many calls or mock objects ppI used Rhino Mocks before and quite liked it especially after the AAA syntax was introduced did like the fluent API of Moq better though What didn like with Moq was the mock object where you have to use mock Object everywhere like the Rhino approach with natural mocks better Every instance looks and feels like normal instance of the faked type wanted the best of both worlds and also wanted to see what could do with the syntax when had absolutely free hands Personally obviously think created something that is good mix with the best from both world but that quite easy when you re standing on the shoulders of giants ppAs has been mentioned here one of the main differences is in the terminology FakeItEasy was first created to introduce TDD and mocking to beginners and having to worry about the differences between mocks and stubs up front the way you would have to in Rhino is not very useful in my opinion ppI ve put lot of focus into the exception messages it should be very easy to tell what whent wrong in test just looking at an exception message ppFakeItEasy has some extensibility features that the other frameworks don have but these aren very well documented yet ppFakeItEasy is hopefully little stronger in mocking classes that has constructor arguments since it has mechanism for resolving dummy values to use You can even specify your own dummy value definitions by implementing DummyDefinition Of class within your test project this will automatically be picked up by FakeItEasy ppThe syntax is an obvious difference which one is better is largely matter of taste ppI sure there are lots of other differences that forget about now and to be fair have never used Moq in production myself so my knowledge of it is limited do think these are the most important differences though éiro not sure there was consensus about that definition but guess really that itäs the best superset Ask the same question to Moq or JMockit for that reason they both support stubs as well and we all know that stubs and mocks are separate concepts,0,NULL,NULL 59978,12463,936,Good Answer Nice Answer Nice Answer Yearling Popular Question Notable Question Revival Nice Answer Enlightened Necromancer Caucus Nice Answer Enlightened Constituent Yearling Nice Answer Nice Answer Good Answer Caucus Announcer Yearling Nice Answer Popular Question,NULL,pThe codeFileSecurity code class is now part of the href https www nuget org packages System IO FileSystem AccessControl rel noreferrer System IO FileSystem AccessControl package for NET Core There is no longer codeFile GetAccessControl code method so you will need to instanciate the codeFileSecurity code instance yourself Yes my comment says that,1,NULL,How to modify file access control in NET Core file permissions net core pI trying to change the permissions of file in NET Core However it seems that href https msdn microsoft com en us library system io fileinfo setaccesscontrol vs 110 aspx rel noreferrer FileInfo doesn have any codeSetAccessControl code anymore ppre code Create new FileInfo object FileInfo fInfo new FileInfo FileName Get FileSecurity object that represents the current security settings FileSecurity fSecurity fInfo GetAccessControl Add the FileSystemAccessRule to the security settings fSecurity AddAccessRule new FileSystemAccessRule Account Rights ControlType Set the new access settings fInfo SetAccessControl fSecurity code prepThe goal is just to add execution right to the current owner of file which is not Windows or Unix specific feature ppAny clues on how to do that on NET Core pThe codeFileSecurity code class is now part of the href https www nuget org packages System IO FileSystem AccessControl rel noreferrer System IO FileSystem AccessControl package for NET Core There is no longer codeFile GetAccessControl code method so you will need to instanciate the codeFileSecurity code instance yourself 59979,268277,1234503,NULL,NULL,NULL,0,NULL,NULL 59980,364645,863965,NULL,NULL,NULL,0,NULL,NULL 59981,5335,716949,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 59982,25653,779578,NULL,NULL,NULL,0,NULL,NULL 59983,893754,931738,Popular Question Civic Duty Notable Question Inquisitive Popular Question Popular Question Popular Question Notable Question Good Answer Popular Question Notable Question Yearling Popular Question Famous Question Self-Learner Great Answer Yearling Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Notable Question Nice Question Famous Question Revival Yearling,NULL,NULL,0,NULL,NULL 59984,247940,539541,Famous Question Good Question,NULL,NULL,0,NULL,NULL 59985,486519,887527,NULL,NULL,NULL,0,NULL,NULL 59986,760094,879677,NULL,NULL,NULL,0,NULL,NULL 59987,790551,500124,NULL,NULL,NULL,0,NULL,NULL 59988,1548221,1290144,NULL,NULL,NULL,0,NULL,NULL 59989,649175,841264,NULL,NULL,NULL,0,NULL,NULL 59990,872333,571771,Famous Question,NULL,NULL,0,NULL,NULL 59991,88810,1204228,Popular Question,NULL,NULL,0,NULL,NULL 59992,292605,41604,NULL,NULL,NULL,0,NULL,NULL 59993,155852,345273,NULL,NULL,NULL,0,NULL,NULL 59994,324380,313314,NULL,NULL,NULL,0,NULL,NULL 59995,173847,313314,NULL,NULL,NULL,0,NULL,NULL 59996,1348914,916489,NULL,NULL,NULL,0,NULL,NULL 59997,422460,15554,Student Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 59998,6791,540869,NULL,NULL,NULL,0,NULL,NULL 59999,115353,247882,NULL,NULL,NULL,0,NULL,NULL 60000,242181,1353117,Informed,NULL,NULL,0,NULL,NULL 60001,431994,657416,Scholar Yearling Good Answer Yearling Documentation User Custodian Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 60002,606408,527644,Teacher Popular Question,NULL,NULL,0,NULL,NULL 60003,328081,236293,Nice Answer,NULL,NULL,0,NULL,NULL 60004,358684,418490,NULL,NULL,NULL,0,NULL,NULL 60005,731203,876161,Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 60006,297400,1285418,Nice Answer Enlightened Good Answer Yearling Necromancer Good Answer Good Answer Yearling Announcer Good Answer Announcer Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 60007,63357,440935,Nice Answer Famous Question Good Answer Great Answer Yearling Tumbleweed Enlightened Yearling Guru Custodian Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 60008,222844,766805,Yearling Popular Question,NULL,NULL,0,NULL,NULL 60009,103661,391397,Necromancer Nice Answer Yearling Nice Answer Yearling Good Answer Yearling Popular Question Yearling Revival Civic Duty Yearling Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 60010,122055,1078656,Necromancer Yearling,NULL,NULL,0,NULL,NULL 60011,794136,131875,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60012,210227,534462,NULL,NULL,NULL,0,NULL,NULL 60013,1343692,1037373,NULL,NULL,NULL,0,NULL,NULL 60014,181109,521952,Tenacious Yearling Yearling Popular Question Popular Question Notable Question Caucus Constituent Excavator Nice Question Popular Question Yearling Yearling Caucus Civic Duty Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 60015,358799,237622,NULL,NULL,NULL,0,NULL,NULL 60016,25896,1195938,Yearling Critic Nice Answer,NULL,NULL,0,NULL,NULL 60017,49185,48281,Synonymizer Yearling Nice Question Notable Question Nice Answer Yearling Pundit Good Answer Great Answer Good Answer Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 60018,401368,1185676,NULL,NULL,NULL,0,NULL,NULL 60019,30785,556617,Popular Question Popular Question Necromancer Good Question Popular Question Guru Nice Answer Caucus Necromancer Nice Answer Yearling Revival Nice Answer Enlightened ios Caucus Good Answer Revival Necromancer Custodian Guru Announcer Revival Yearling Announcer Nice Answer cocoapods Announcer Caucus firebase Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 60020,84274,104021,Nice Question Nice Question Popular Question Good Question Notable Question Great Answer Great Question Yearling Nice Answer Nice Answer Nice Question Nice Question Notable Question Nice Answer Notable Question Popular Question Necromancer Popular Question Nice Answer Nice Answer Nice Question Nice Question Nice Question Guru Nice Answer Famous Question Yearling Famous Question Announcer Notable Question Popular Question Popular Question Good Question Notable Question Revival Notable Question Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60021,115337,735941,NULL,NULL,NULL,0,NULL,NULL 60022,361359,61846,Good Question,NULL,NULL,0,NULL,NULL 60023,7693367,1525360,NULL,NULL,NULL,0,NULL,NULL 60024,114014,793026,NULL,NULL,NULL,0,NULL,NULL 60025,425328,859449,Yearling Yearling,NULL,NULL,0,NULL,NULL 60026,1632177,511287,Custodian Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Yearling Caucus Constituent Guru Nice Answer Enlightened Custodian Yearling Great Answer Census Great Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 60027,22662,961761,Tumbleweed Yearling Notable Question,NULL,NULL,0,NULL,NULL 60028,209770,800029,NULL,NULL,NULL,0,NULL,NULL 60029,241705,1320421,NULL,NULL,NULL,0,NULL,NULL 60030,62308,223210,Commentator Yearling Yearling Revival Editor Yearling Revival Necromancer Yearling Nice Answer Enlightened Nice Answer Revival,NULL,NULL,0,NULL,NULL 60031,69804,809358,NULL,NULL,NULL,0,NULL,NULL 60032,632040,490842,NULL,NULL,NULL,0,NULL,NULL 60033,105198,222163,Popular Question Popular Question Notable Question Quorum Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Census Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question c# Notable Question Documentation User Popular Question Popular Question Yearling Good Answer Census Notable Question Popular Question android Popular Question Revival Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 60034,116273,1085219,NULL,NULL,NULL,0,NULL,NULL 60035,68091,126953,Necromancer,NULL,NULL,0,NULL,NULL 60036,143669,64043,NULL,NULL,NULL,0,NULL,NULL 60037,252770,217497,Good Answer,NULL,NULL,0,NULL,NULL 60038,77590,213657,NULL,NULL,NULL,0,NULL,NULL 60039,372036,780271,Notable Question Popular Question Popular Question Notable Question Great Answer Yearling Nice Answer Enlightened Nice Answer Popular Question Famous Question Nice Question Good Answer Yearling Nice Question Notable Question Great Answer Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60040,896568,194921,Yearling Necromancer Civic Duty Custodian Custodian Yearling Famous Question Curious Popular Question,NULL,How do clone single branch in Git git branch git clone pI have local Git repository called skeleton that use for storing project skeletons It has few branches for different kinds of projects ppre codecasey Projects skeleton git branch master rails code prepIf want to check out the master branch for new project can do ppre codecasey Projects git clone skeleton newInitialized empty Git repository in Users casey Projects new git code prepand everything is how want it Specifically the new master branch points to the skeleton master branch and can push and pull to move around changes to the basic project setup ppWhat doesn work however is if want to clone another branch can get it so that only pull the branch want for instance the coderails code branch and then the new repository has codemaster code branch that pushes to and pulls from the skeleton repository coderails code branch by default ppIs there good way to go about doing this Or maybe this isn the way that Git wants me to structure things and certainly open to that Perhaps should have multiple repositories with the Ruby on Rails skeleton repository tracking the master skeleton repository And any individual project cloning the Ruby on Rails skeleton repository think what you are trying to do there is good idea and had exactly this question,0,NULL,NULL 60041,1522097,1333709,NULL,NULL,NULL,0,NULL,NULL 60042,41901,1412607,NULL,NULL,NULL,0,NULL,NULL 60043,1146079,202469,NULL,NULL,NULL,0,NULL,NULL 60044,182246,30023,NULL,NULL,NULL,0,NULL,NULL 60045,281085,333590,NULL,NULL,NULL,0,NULL,NULL 60046,10235,1207385,NULL,NULL,NULL,0,NULL,NULL 60047,83685,567863,Yearling Nice Question Announcer Good Answer Necromancer Nice Answer Guru Good Answer Nice Question Guru Nice Answer Nice Answer Enlightened Good Answer Guru Caucus Constituent Notable Question Yearling Notable Question Popular Question Announcer Good Question Populist Announcer Announcer Necromancer Announcer Famous Question Good Answer Yearling Nice Answer Enlightened Announcer Nice Answer Enlightened Caucus Constituent Good Answer Revival Popular Question Announcer Revival rspec Good Answer Announcer Nice Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 60048,243784,1526182,Supporter,NULL,NULL,0,NULL,NULL 60049,175426,967631,NULL,NULL,NULL,0,NULL,NULL 60050,1149191,1028961,NULL,NULL,NULL,0,NULL,NULL 60051,612588,1416125,Student,NULL,NULL,0,NULL,NULL 60052,370942,272171,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60053,681133,606376,Famous Question Nice Question Popular Question Custodian Popular Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Good Question Popular Question Critic Nice Question Famous Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60054,90804,502223,NULL,NULL,NULL,0,NULL,NULL 60055,1386412,5330,Yearling Good Question,NULL,NULL,0,NULL,NULL 60056,386398,607461,Yearling Revival Tumbleweed Yearling Student Revival Necromancer Self-Learner,NULL,NULL,0,NULL,NULL 60057,181509,388036,NULL,NULL,NULL,0,NULL,NULL 60058,389203,140606,NULL,NULL,NULL,0,NULL,NULL 60059,49480,170340,NULL,NULL,NULL,0,NULL,NULL 60060,301539,1487046,NULL,NULL,NULL,0,NULL,NULL 60061,49367,129506,Yearling,NULL,NULL,0,NULL,NULL 60062,86180,575826,Yearling Popular Question Nice Answer Excavator Notable Question Notable Question Yearling Nice Answer ruby-on-rails Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60063,65371,19636,NULL,NULL,NULL,0,NULL,NULL 60064,296685,346587,Notable Question Notable Question Nice Question Yearling Nice Answer Notable Question Custodian Yearling Peer Pressure Yearling Announcer Custodian,NULL,NULL,0,NULL,NULL 60065,177011,369874,Nice Question Nice Question Popular Question Revival Necromancer Yearling Great Answer Popular Question Nice Answer Good Answer Nice Answer python Explainer Nice Question Promoter Benefactor Yearling Nice Answer Enlightened Revival Organizer Popular Question Great Answer Census Custodian Yearling Notable Question,NULL,NULL,1,NULL,fatal error openssl os2 file not found in pypy python python cryptography pypy pyopenssl pWhen Run Command pypy pip install cryptography ppthen have got below Errors ppcc arch x86 64 O2 fPIC Wimplicit opt pypy include build temp macosx 10 10 x86 64 openssl build temp macosx 10 10 x86 64 build temp macosx 10 10 x86 64 openssl build temp macosx 10 10 x86 64 openssl 423 10 fatal error openssl os2 file not found include error generated error command cc failed with exit status ppre code code prepCommand usr local bin pypy import setuptools tokenize strongfile strong private var folders 8l tq9210xl4bzlhkspnv8br0000gn pip build Gjhf5l cryptography setup py exec compile getattr tokenize open open strongfile strong read replace strongfile strong exec install record var folders 8l tq9210xl4bzlhkspnv8br0000gn pip y8I9 record install record txt single version externally managed compile failed with error code in private var folders 8l tq9210xl4bzlhkspnv8br0000gn pip build Gjhf5l cryptography pOn OS PyPy you ll need to codebrew install openssl code or port install or whatever and then run the following command ppre codeLDFLAGS brew prefix openssl lib CFLAGS brew prefix openssl include pip install cryptography code prepIf you use ports modify the paths to point at the proper location 60066,499835,884004,NULL,NULL,NULL,0,NULL,NULL 60067,311338,1102855,Notable Question Yearling Nice Question Caucus Necromancer Good Answer Caucus Yearling Notable Question Famous Question Caucus,NULL,NULL,0,NULL,NULL 60068,501229,929217,Popular Question,NULL,NULL,0,NULL,NULL 60069,460740,90208,Yearling Nice Answer Guru Autobiographer Yearling Student Caucus Yearling,NULL,NULL,0,NULL,NULL 60070,967729,282954,NULL,NULL,NULL,0,NULL,NULL 60071,36685,446497,Great Answer Popular Question Nice Question Famous Question Good Question Necromancer Nice Question Good Answer Yearling Favorite Question Nice Answer Notable Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 60072,3466576,446497,Great Answer Popular Question Nice Question Famous Question Good Question Necromancer Nice Question Good Answer Yearling Favorite Question Nice Answer Notable Question Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 60073,22983,227542,Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 60074,475153,455667,Informed Autobiographer Revival Critic Editor Necromancer Commentator Announcer,NULL,NULL,0,NULL,NULL 60075,138554,1145527,NULL,NULL,NULL,0,NULL,NULL 60076,60785,581853,Yearling Commentator Yearling Caucus Editor Civic Duty Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 60077,1033281,1231408,Yearling Guru Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 60078,120263,358766,Famous Question,NULL,NULL,0,NULL,NULL 60079,112167,278153,NULL,NULL,NULL,0,NULL,NULL 60080,624154,616337,NULL,NULL,NULL,0,NULL,NULL 60081,261166,853777,Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 60082,540061,675897,Yearling Popular Question Yearling Guru Notable Question Yearling Popular Question Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 60083,310026,1472602,Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 60084,326831,1032220,NULL,NULL,NULL,0,NULL,NULL 60085,887143,1471580,Notable Question Tumbleweed Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60086,654762,541894,NULL,NULL,NULL,0,NULL,NULL 60087,147810,1077807,NULL,NULL,NULL,0,NULL,NULL 60088,204509,1180416,NULL,NULL,NULL,0,NULL,NULL 60089,359249,1112173,Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 60090,279179,1055186,NULL,NULL,NULL,0,NULL,NULL 60091,130896,755,Notable Question Notable Question Good Answer Popular Question Nice Question Good Question Notable Question Nice Question Popular Question Favorite Question Notable Question Yearling Famous Question Nice Question Popular Question Favorite Question Good Question Notable Question Famous Question Notable Question Popular Question Favorite Question Notable Question Guru Famous Question Good Question Popular Question Good Question Popular Question Yearling Nice Question Popular Question Good Question Necromancer Good Question Nice Question Notable Question Nice Question Notable Question Great Question Favorite Question Famous Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60092,111662,479343,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 60093,32949,255142,Yearling Good Answer Custodian Yearling Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60094,51998,256130,Yearling Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 60095,853325,1193634,Notable Question,NULL,NULL,0,NULL,NULL 60096,30719,666599,Editor Enthusiast Caucus Necromancer Critic Yearling Caucus Citizen Patrol Commentator Informed Caucus Nice Answer Revival,NULL,NULL,0,NULL,NULL 60097,9447813,666599,Editor Enthusiast Caucus Necromancer Critic Yearling Caucus Citizen Patrol Commentator Informed Caucus Nice Answer Revival,NULL,NULL,0,NULL,NULL 60098,181883,28672,Notable Question Famous Question Notable Question Popular Question Yearling Necromancer Good Question Nice Question Popular Question Great Answer Popular Question Yearling Great Question Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60099,136092,444829,Informed Yearling Critic Commentator Revival Yearling Yearling Yearling Yearling Custodian Custodian Custodian Yearling Citizen Patrol Tenacious Unsung Hero Explainer Nice Answer Enlightened Custodian Organizer Proofreader Reviewer Custodian react-router Good Answer Necromancer reactjs Fanatic Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Announcer Nice Answer Enlightened Good Answer Guru Caucus Nice Answer Enlightened react-router reactjs Yearling Nice Answer Enlightened Documentation User javascript Guru Nice Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Guru Great Answer Nice Answer,NULL,blockquote strongReact Router v4 strong blockquotepWith v4 of React Router there are three approaches that you can take to programmatic routing within components polliUse the codewithRouter code higher order component liliUse composition and render code lt Route gt code liliUse the codecontext code li olpReact Router is mostly wrapper around the href https github com ReactTraining history rel noreferrer codehistory code library codehistory code handles interaction with the browser href https developer mozilla org en US docs Web API Window history rel noreferrer codewindow history code for you with its browser and hash histories It also provides memory history which is useful for environments that don have global history This is particularly useful in mobile app development codereact native code and unit testing with Node ppA codehistory code instance has two methods for navigating codepush code and codereplace code If you think of the codehistory code as an array of visited locations codepush code will add new location to the array and codereplace code will replace the current location in the array with the new one Typically you will want to use the codepush code method when you are navigating ppIn earlier versions of React Router you had to create your own codehistory code instance but in v4 the code lt BrowserRouter gt code code lt HashRouter gt code and code lt MemoryRouter gt code components will created browser hash and memory instances for you React Router makes the properties and methods of the codehistory code instance associated with your router available through the context under the coderouter code object ph31 Use the codewithRouter code higher order component h3pThe codewithRouter code higher order component will inject the codehistory code object as prop of the component This allows you to access the codepush code and codereplace code methods without having to deal with the codecontext code ppre class lang js prettyprint override codeimport withRouter from react router dom this also works with react router nativeconst Button withRouter history gt lt button type button onClick gt history push new location gt Click Me lt button gt code preh32 Use composition and render code lt Route gt code h3pThe code lt Route gt code component isn just for matching locations You can render pathless route and strongit will always match the current location strong The code lt Route gt code component passes the same props as codewithRouter code so you will be able to access the codehistory code methods through the codehistory code prop ppre class lang js prettyprint override codeimport Route from react router dom const Button gt lt Route render history gt lt button type button onClick gt history push new location gt Click Me lt button gt gt code preh33 Use the context h3p strong But you probably should not strong ppThe last option is one that you should only use if you feel comfortable working with React href https facebook github io react docs context html rel noreferrer context model Although context is an option it should be stressed that context is an unstable API and React has section href https facebook github io react docs context html why not to use context rel noreferrer Why Not To Use Context in their documentation So use at your own risk ppre class lang js prettyprint override codeconst Button props context gt lt button type button onClick gt context history push history push context history push new location gt Click Me lt button gt you need to specify the context type so that it is available within the componentButton contextTypes history React PropTypes shape push React PropTypes func isRequired code prep1 and are the simplest choices to implement so for most use cases they are your best bets not sure what that code is supposed to do If you just want component to navigate when it mounts render Redirect blockquote strongReact Router v4 strong blockquotepWith v4 of React Router there are three approaches that you can take to programmatic routing within components polliUse the codewithRouter code higher order component liliUse composition and render code lt Route gt code liliUse the codecontext code li olpReact Router is mostly wrapper around the href https github com ReactTraining history rel noreferrer codehistory code library codehistory code handles interaction with the browser href https developer mozilla org en US docs Web API Window history rel noreferrer codewindow history code for you with its browser and hash histories It also provides memory history which is useful for environments that don have global history This is particularly useful in mobile app development codereact native code and unit testing with Node ppA codehistory code instance has two methods for navigating codepush code and codereplace code If you think of the codehistory code as an array of visited locations codepush code will add new location to the array and codereplace code will replace the current location in the array with the new one Typically you will want to use the codepush code method when you are navigating ppIn earlier versions of React Router you had to create your own codehistory code instance but in v4 the code lt BrowserRouter gt code code lt HashRouter gt code and code lt MemoryRouter gt code components will created browser hash and memory instances for you React Router makes the properties and methods of the codehistory code instance associated with your router available through the context under the coderouter code object ph31 Use the codewithRouter code higher order component h3pThe codewithRouter code higher order component will inject the codehistory code object as prop of the component This allows you to access the codepush code and codereplace code methods without having to deal with the codecontext code ppre class lang js prettyprint override codeimport withRouter from react router dom this also works with react router nativeconst Button withRouter history gt lt button type button onClick gt history push new location gt Click Me lt button gt code preh32 Use composition and render code lt Route gt code h3pThe code lt Route gt code component isn just for matching locations You can render pathless route and strongit will always match the current location strong The code lt Route gt code component passes the same props as codewithRouter code so you will be able to access the codehistory code methods through the codehistory code prop ppre class lang js prettyprint override codeimport Route from react router dom const Button gt lt Route render history gt lt button type button onClick gt history push new location gt Click Me lt button gt gt code preh33 Use the context h3p strong But you probably should not strong ppThe last option is one that you should only use if you feel comfortable working with React href https facebook github io react docs context html rel noreferrer context model Although context is an option it should be stressed that context is an unstable API and React has section href https facebook github io react docs context html why not to use context rel noreferrer Why Not To Use Context in their documentation So use at your own risk ppre class lang js prettyprint override codeconst Button props context gt lt button type button onClick gt context history push history push context history push new location gt Click Me lt button gt you need to specify the context type so that it is available within the componentButton contextTypes history React PropTypes shape push React PropTypes func isRequired code prep1 and are the simplest choices to implement so for most use cases they are your best bets you re most likely attempting to use the global history object instead of the one from React Router Make sure that you re grabbing the history from your props pYou just need to have module that exports codehistory code object Then you would import that object throughout your project ppre class lang js prettyprint override code history jsimport createBrowserHistory from history export default createBrowserHistory pass configuration object here if needed code prepThen instead of using one of the built in routers you would use the code lt Router gt code component ppre class lang js prettyprint override code index jsimport Router from react router dom import history from history import App from App ReactDOM render lt Router history history gt lt App gt lt Router gt holder code prepre class lang js prettyprint override code some other file jsimport history from history history push go here code pre The two potential issues that immediately come to mind are you are creating memory history instead of browser history or your app is running in an iframe pYou just need to have module that exports codehistory code object Then you would import that object throughout your project ppre class lang js prettyprint override code history jsimport createBrowserHistory from history export default createBrowserHistory pass configuration object here if needed code prepThen instead of using one of the built in routers you would use the code lt Router gt code component ppre class lang js prettyprint override code index jsimport Router from react router dom import history from history import App from App ReactDOM render lt Router history history gt lt App gt lt Router gt holder code prepre class lang js prettyprint override code some other file jsimport history from history history push go here code pre You could probably check if window is defined for the module to determine whether to create browser or memory history pYou just need to have module that exports codehistory code object Then you would import that object throughout your project ppre class lang js prettyprint override code history jsimport createBrowserHistory from history export default createBrowserHistory pass configuration object here if needed code prepThen instead of using one of the built in routers you would use the code lt Router gt code component ppre class lang js prettyprint override code index jsimport Router from react router dom import history from history import App from App ReactDOM render lt Router history history gt lt App gt lt Router gt holder code prepre class lang js prettyprint override code some other file jsimport history from history history push go here code pre the absolute import of history is importing from the history package http npmjs com package history while the local module history js is for your local history instance,1,NULL,Programmatically navigate using react router reactjs react router pWith codereact router code can use the codeLink code element to create links that are natively handled by react router ppI see internally it calls codethis context transitionTo code ppI want to do navigation but not from link from dropdown selection for example How can do this in code What is codethis context code ppI saw the codeNavigation code mixin but can do this without mixins blockquote strongReact Router v4 strong blockquotepWith v4 of React Router there are three approaches that you can take to programmatic routing within components polliUse the codewithRouter code higher order component liliUse composition and render code lt Route gt code liliUse the codecontext code li olpReact Router is mostly wrapper around the href https github com ReactTraining history rel noreferrer codehistory code library codehistory code handles interaction with the browser href https developer mozilla org en US docs Web API Window history rel noreferrer codewindow history code for you with its browser and hash histories It also provides memory history which is useful for environments that don have global history This is particularly useful in mobile app development codereact native code and unit testing with Node ppA codehistory code instance has two methods for navigating codepush code and codereplace code If you think of the codehistory code as an array of visited locations codepush code will add new location to the array and codereplace code will replace the current location in the array with the new one Typically you will want to use the codepush code method when you are navigating ppIn earlier versions of React Router you had to create your own codehistory code instance but in v4 the code lt BrowserRouter gt code code lt HashRouter gt code and code lt MemoryRouter gt code components will created browser hash and memory instances for you React Router makes the properties and methods of the codehistory code instance associated with your router available through the context under the coderouter code object ph31 Use the codewithRouter code higher order component h3pThe codewithRouter code higher order component will inject the codehistory code object as prop of the component This allows you to access the codepush code and codereplace code methods without having to deal with the codecontext code ppre class lang js prettyprint override codeimport withRouter from react router dom this also works with react router nativeconst Button withRouter history gt lt button type button onClick gt history push new location gt Click Me lt button gt code preh32 Use composition and render code lt Route gt code h3pThe code lt Route gt code component isn just for matching locations You can render pathless route and strongit will always match the current location strong The code lt Route gt code component passes the same props as codewithRouter code so you will be able to access the codehistory code methods through the codehistory code prop ppre class lang js prettyprint override codeimport Route from react router dom const Button gt lt Route render history gt lt button type button onClick gt history push new location gt Click Me lt button gt gt code preh33 Use the context h3p strong But you probably should not strong ppThe last option is one that you should only use if you feel comfortable working with React href https facebook github io react docs context html rel noreferrer context model Although context is an option it should be stressed that context is an unstable API and React has section href https facebook github io react docs context html why not to use context rel noreferrer Why Not To Use Context in their documentation So use at your own risk ppre class lang js prettyprint override codeconst Button props context gt lt button type button onClick gt context history push history push context history push new location gt Click Me lt button gt you need to specify the context type so that it is available within the componentButton contextTypes history React PropTypes shape push React PropTypes func isRequired code prep1 and are the simplest choices to implement so for most use cases they are your best bets How to get history on react router v4 reactjs react router pI having some little issue migrating from React Router v3 to v4 in v3 was able to do this anywhere ppre codeimport browserHistory from react router browserHistory push some path code prepHow do achieve this in v4 ppI know that could use the hoc codewithRouter code react context or event router props when you are in Component but it is not the case for me ppI am looking for the equivalence of href https github com ReactTraining react router blob ab4552d2ea0ec5c0cf3c534bca654a1af3ea0dec docs guides NavigatingOutsideOfComponents md rel noreferrer NavigatingOutsideOfComponents in v4 pYou just need to have module that exports codehistory code object Then you would import that object throughout your project ppre class lang js prettyprint override code history jsimport createBrowserHistory from history export default createBrowserHistory pass configuration object here if needed code prepThen instead of using one of the built in routers you would use the code lt Router gt code component ppre class lang js prettyprint override code index jsimport Router from react router dom import history from history import App from App ReactDOM render lt Router history history gt lt App gt lt Router gt holder code prepre class lang js prettyprint override code some other file jsimport history from history history push go here code pre 60100,310000,177708,NULL,NULL,NULL,0,NULL,NULL 60101,1660391,220808,Nice Question,NULL,NULL,0,NULL,NULL 60102,121162,416547,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60103,8644,105022,Yearling Yearling Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 60104,712219,445374,NULL,NULL,NULL,0,NULL,NULL 60105,8271,459860,Nice Answer Enlightened Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 60106,372049,453104,NULL,NULL,NULL,0,NULL,NULL 60107,3328567,453104,NULL,NULL,NULL,0,NULL,NULL 60108,208534,1278723,Necromancer,NULL,NULL,0,NULL,NULL 60109,348393,609991,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60110,89726,1034065,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60111,1512731,493862,NULL,NULL,NULL,0,NULL,NULL 60112,110625,837061,NULL,NULL,NULL,0,NULL,NULL 60113,170958,283460,Famous Question Yearling Caucus Notable Question Caucus Constituent Documentation User Custodian Citizen Patrol Notable Question Notable Question Caucus Constituent Nice Question Famous Question,NULL,What is the iBeacon Bluetooth Profile ios bluetooth bluetooth lowenergy reverse engineering ibeacon pI like to create my own iBeacon with some bluetooth low energy dev kits Apple has yet to release specification for iBeacons however few hardware developers have reverse Engineered the iBeacon from the AirLocate Sample code and started selling iBeacon dev kits pp strongSo what is the iBeacon Bluetooth Profile strong ppBluetooth Low Energy uses GATT for LE profile service discovery So think we need to know the Attribute Handle Attribute Type Attribute Value and maybe the Attribute Permissions of the iBeacon attribute So for an iBeacon with UUID of E2C56DB5 DFFB 48D2 B060 D0F5A71096E0 major value of and minor value of what would the Bluetooth GATT profile service be ppHeres some assumptions ve made from the discussion on Apple forums and through the docs polli pYou only need to see the profile service GATT of Bluetooth peripheral to know it is an iBeacon lili pThe Major and Minor keys are encoded somewhere in this profile service li olpHeres some companies with iBeacon Dev Kits that seem to have this figure out already pulli href http redbearlab com ibeacon http redbearlab com ibeacon lili href http kontakt io http kontakt io li ulpHopefully in time we will have profile posted on Bluetooth org like these href https www bluetooth org en us specification adopted specifications https www bluetooth org en us specification adopted specifications Great can you share that documentation here for future programmers when asked the question in 2013 it definitely did not exist yet,0,NULL,NULL 60114,1519623,1161396,NULL,NULL,NULL,0,NULL,NULL 60115,653324,1034793,NULL,NULL,NULL,0,NULL,NULL 60116,478594,233373,Famous Question Popular Question Nice Question Notable Question Notable Question Famous Question Promoter Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 60117,4698214,333904,NULL,NULL,NULL,0,NULL,NULL 60118,1566920,1156719,NULL,NULL,NULL,0,NULL,NULL 60119,19121,881451,NULL,NULL,NULL,0,NULL,NULL 60120,301761,956781,NULL,NULL,NULL,0,NULL,NULL 60121,103806,135282,NULL,NULL,NULL,0,NULL,NULL 60122,32584,1533432,NULL,NULL,NULL,0,NULL,NULL 60123,14825,430695,Yearling Necromancer Good Answer Guru Announcer Yearling Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60124,184725,803966,NULL,NULL,NULL,0,NULL,NULL 60125,366399,50959,Editor Scholar Commentator Informed Student Yearling,NULL,NULL,0,NULL,NULL 60126,593055,557663,NULL,NULL,NULL,0,NULL,NULL 60127,332498,122279,Critic Cleanup Revival Yearling,NULL,,0,, 60128,357333,165241,NULL,NULL,NULL,0,NULL,NULL 60129,3893,814245,NULL,NULL,NULL,0,NULL,NULL 60130,14741,1041539,NULL,NULL,NULL,0,NULL,NULL 60131,27297,560325,Yearling Yearling,NULL,NULL,0,NULL,NULL 60132,421824,106565,NULL,NULL,NULL,0,NULL,NULL 60133,27656,649094,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60134,87706,233514,Revival Good Answer Critic Necromancer Yearling Editor Yearling Custodian,NULL,Generate random string characters in JavaScript javascript random pI want character string composed of characters picked randomly from the set code zA Z0 code ppWhat the best way to do this with JavaScript Why do you need this string careful answer will undoubtedly lead to some form of need for uniqueness In that case you really need string representing specified entropy not string of specified length using some set of characters as stated To wit do you know you requested random string of 29 bits of entropy Why 29 bits Do you clearly understand what that number of bits gives you with respect to the probability of repeat in the generation of some number of these strings If this seems hazy check out entropy string https www npmjs com package entropy string,0,NULL,NULL 60135,70776,803904,NULL,NULL,NULL,0,NULL,NULL 60136,76936,857734,NULL,NULL,NULL,0,NULL,NULL 60137,1333056,1152664,Nice Answer Yearling Proofreader Autobiographer jquery Necromancer Enthusiast Nice Answer Enlightened Necromancer Revival Yearling Nice Answer Nice Answer Enlightened Good Answer Documentation User Nice Answer Enlightened Good Answer Custodian Nice Answer Yearling Good Answer,NULL,pI know the regex version has already been accepted but would bet this is faster than doing that complex of regex codeString replace code is quite fast ppre codevar isExternal function url var domain function url return url replace http replace https split return domain location href domain url code preh2Update h2pI decided to do little more research on this and found faster method that uses Regex ppre codevar isExternalRegexClosure function var domainRe https return function url function domain url return domainRe exec url return domain location href domain url code prepIn IE this is slightly faster than the codeString replace code method However in Chrome and Firefox it is about twice as fast Also defining the Regex only once inside the closure instead of just inside the function normally is about 30 faster in Firefox pp href http jsperf com fastest way to determine if the hostname is external rel noreferrer Here is jsperf examining four different ways of determining an external hostname ppIt is important to note that strongevery method ve tried takes less than 1ms strong to run even on an old phone So performance probably shouldn be your primary consideration unless you are doing some large batch processing Changed it to support in the hostname Thanks for the downvote over minor edge case in the second solution provided,0,NULL,NULL 60138,141886,195977,Nice Answer Enlightened Good Answer Yearling Good Question Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 60139,76562,552758,NULL,NULL,NULL,0,NULL,NULL 60140,474011,1129674,NULL,NULL,NULL,0,NULL,NULL 60141,191771,1063866,Editor Popular Question Commentator,NULL,NULL,0,NULL,NULL 60142,390396,333938,Good Answer Yearling Good Answer Guru Yearling Nice Answer Good Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60143,310237,335083,NULL,NULL,NULL,0,NULL,NULL 60144,80503,183350,Notable Question Nice Answer Yearling Nice Question Good Answer Yearling Guru Yearling Nice Answer Popular Question Yearling Yearling Organizer,NULL,NULL,0,NULL,NULL 60145,1511812,758375,Editor Popular Question Notable Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 60146,425348,703601,NULL,NULL,NULL,0,NULL,NULL 60147,260169,332192,NULL,NULL,NULL,0,NULL,NULL 60148,204686,1007055,Teacher,NULL,NULL,0,NULL,NULL 60149,65082,1442917,Nice Answer Revival Yearling Necromancer Nice Answer Explainer Necromancer Enlightened lua Excavator Nice Answer Necromancer Necromancer Necromancer Good Answer Yearling lua-table Nice Answer Enlightened Nice Answer Enlightened Announcer Taxonomist Yearling Announcer Nice Answer Nice Answer Enlightened Nice Answer,NULL,pMike solution is good but it can be improved on in several ways In its current form it doesn get to ipv6 address check but it easy to fix The ipv6 check fails on things like code 1050 300c 326b code and code 1050 600 300c 326babcdef code recognizing both as valid addresses and code 1050 600 1000 code recognizing it as string ppHere is the improved version IPv4 are assumed to be decimal numbers and IPv6 are assumed to be hexadecimal numbers ppre codefunction GetIPType ip local ERROR IPV4 IPV6 STRING if type ip string then return ERROR end check for format 11 111 111 for ipv4 local chunks ip match if chunks then for in pairs chunks do if tonumber gt 255 then return STRING end end return IPV4 end check for ipv6 format should be chunks of numbers letters without leading trailing chars or fewer than chunks but with only one group local chunks ip match fA F0 rep gsub if chunks or chunks lt and ip match and not ip gsub match then for in pairs chunks do if gt and tonumber 16 gt 65535 then return STRING end end return IPV6 end return STRINGend code prepThe script to check ppre codelocal IPType Error IPv4 IPv6 string local ips 128 ipv4 223 255 254 254 ipv4 999 12345 0001 invalid ipv4 1050 600 300c 326b ipv6 1050 300c 326b string 1050 600 300c 326babcdef string 1050 0000 0000 0000 0005 0600 300c 326b ipv6 fe80 0000 0000 0000 0202 b3ff fe1e 8329 ipv6 fe80 202 b3ff fe1e 8329 ipv6 fe80 202 b3ff fe1e 8329 ipv6 1050 600 1000 contracted ipv6 ipv6 ipv6 string 129 garbage string xxx127 error xxx1050 0000 0000 0000 0005 0600 300c 326b string 129 10 error for in pairs ips do print IPType GetIPType end code prepAnd the output ppre code128 IPv4223 255 254 254 IPv4999 12345 0001 string1050 600 300c 326b IPv61050 300c 326b string1050 600 300c 326babcdef string1050 0000 0000 0000 0005 0600 300c 326b IPv6fe80 0000 0000 0000 0202 b3ff fe1e 8329 IPv6fe80 202 b3ff fe1e 8329 IPv6fe80 202 b3ff fe1e 8329 IPv61050 600 1000 IPv6 IPv6 IPv6 string129 garbage stringxxx127 stringxxx1050 0000 0000 0000 0005 0600 300c 326b string129 Error code prepUpdated on 2018 to add handling of garbage before after addresses and checking for contracted ipv6 which allows for fewer than groups with one empty group of two consecutive colons Updated to address comment and to add support for one empty group in ipv6,0,NULL,NULL 60150,498170,1171444,Informed Commentator,NULL,NULL,0,NULL,NULL 60151,266000,92248,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 60152,649956,6230,Yearling Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 60153,1416249,99089,Nice Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Notable Question Notable Question Famous Question Notable Question Nice Question Popular Question Tag Editor Explainer Popular Question Nice Question Yearling Popular Question Notable Question Famous Question Nice Question Documentation User Nice Answer Notable Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 60154,382032,1392922,NULL,NULL,NULL,0,NULL,NULL 60155,1450283,571567,Yearling Revival Popular Question Yearling Great Answer Yearling Necromancer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 60156,155575,571567,Yearling Revival Popular Question Yearling Great Answer Yearling Necromancer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 60157,129322,84479,Necromancer Yearling Nice Answer Nice Answer Good Answer Notable Question,NULL,NULL,0,NULL,NULL 60158,218185,1287384,NULL,NULL,NULL,0,NULL,NULL 60159,2005065,613650,NULL,NULL,NULL,0,NULL,NULL 60160,77318,544586,NULL,NULL,NULL,0,NULL,NULL 60161,280260,728230,NULL,NULL,NULL,0,NULL,NULL 60162,34271,366596,Yearling Nice Answer Revival Yearling Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60163,67750,666083,NULL,NULL,NULL,0,NULL,NULL 60164,15792,1072288,Good Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60165,2323199,1072288,Good Answer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60166,103133,1351017,NULL,NULL,NULL,0,NULL,NULL 60167,91647,766316,Revival Necromancer,NULL,NULL,0,NULL,NULL 60168,4138503,1487136,NULL,NULL,NULL,0,NULL,NULL 60169,10548,1169947,Yearling Good Answer Good Answer Nice Answer Yearling Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 60170,1006164,1132657,Revival,NULL,NULL,0,NULL,NULL 60171,14327,1106534,Yearling Revival Guru Nice Answer javascript Autobiographer Yearling Caucus Nice Answer Cleanup Nice Answer Enlightened Student Promoter Benefactor Scholar Yearling Caucus Great Answer node.js,NULL,NULL,0,NULL,NULL 60172,57104,268371,Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Excavator Great Answer Yearling Caucus Great Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60173,50897,549337,NULL,NULL,NULL,0,NULL,NULL 60174,284041,664794,NULL,NULL,NULL,0,NULL,NULL 60175,24141,172576,NULL,NULL,NULL,0,NULL,NULL 60176,187311,495201,NULL,NULL,NULL,0,NULL,NULL 60177,1128653,673524,Editor Notable Question Notable Question Critic Yearling Popular Question,NULL,NULL,0,NULL,NULL 60178,208376,247217,Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 60179,428920,478631,NULL,NULL,NULL,0,NULL,NULL 60180,36486,1232668,Necromancer Yearling Unsung Hero Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 60181,37224,484337,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 60182,223022,471735,Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 60183,166860,11503,Guru Yearling,NULL,NULL,0,NULL,NULL 60184,3433244,959614,NULL,NULL,NULL,0,NULL,NULL 60185,1293889,155753,Yearling,NULL,NULL,0,NULL,NULL 60186,101671,57132,Yearling Favorite Question Notable Question Great Question Popular Question Good Question Popular Question Revival Nice Answer Good Question Famous Question Revival Yearling Good Answer Notable Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 60187,259630,397559,NULL,NULL,NULL,0,NULL,NULL 60188,83280,973292,Necromancer Nice Answer Enlightened Good Answer Yearling Revival Caucus Constituent Nice Answer Nice Answer Enlightened Necromancer Announcer Necromancer Revival Yearling Revival Good Answer Nice Answer Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 60189,87984,1030987,NULL,NULL,NULL,0,NULL,NULL 60190,218995,221617,Good Answer Revival Caucus Populist Yearling Caucus ios Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 60191,60477,37462,Yearling Good Answer Popular Question Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 60192,6877573,1144115,NULL,NULL,NULL,0,NULL,NULL 60193,395477,746092,NULL,NULL,NULL,0,NULL,NULL 60194,85376,488984,NULL,NULL,NULL,0,NULL,NULL 60195,432380,1167354,Informed Good Question Yearling Commentator Famous Question Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 60196,1172573,234112,NULL,NULL,NULL,0,NULL,NULL 60197,139280,377277,Necromancer,NULL,NULL,0,NULL,NULL 60198,22859,654416,Notable Question Nice Question Notable Question Yearling Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 60199,192953,697373,NULL,NULL,NULL,0,NULL,NULL 60200,42493,1138945,NULL,NULL,NULL,0,NULL,NULL 60201,593577,827116,Necromancer,NULL,NULL,0,NULL,NULL 60202,2718359,931896,Excavator,NULL,NULL,0,NULL,NULL 60203,26018,144965,NULL,NULL,NULL,0,NULL,NULL 60204,1429438,657177,Notable Question,NULL,NULL,0,NULL,NULL 60205,47664,1064718,NULL,NULL,NULL,0,NULL,NULL 60206,1092541,204596,NULL,NULL,NULL,0,NULL,NULL 60207,5132,432354,Popular Question Popular Question Famous Question Nice Answer Nice Question Nice Answer Notable Question Nice Question Good Question Notable Question Yearling Famous Question Caucus Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Yearling Good Question Notable Question Popular Question Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 60208,32342,726149,Custodian Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 60209,339335,154837,NULL,NULL,NULL,0,NULL,NULL 60210,421703,869762,NULL,NULL,NULL,0,NULL,NULL 60211,357156,467253,Great Answer Yearling Caucus Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 60212,19585,567663,Yearling Necromancer Caucus Constituent Yearling Revival Caucus Custodian Constituent Necromancer Yearling Census Necromancer Caucus Constituent Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 60213,1172373,800325,NULL,NULL,NULL,0,NULL,NULL 60214,89066,334479,Good Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 60215,621,260248,NULL,NULL,NULL,0,NULL,NULL 60216,402654,589312,NULL,NULL,NULL,0,NULL,NULL 60217,805455,537359,NULL,NULL,NULL,0,NULL,NULL 60218,11330180,872420,NULL,NULL,NULL,0,NULL,NULL 60219,212911,187350,Notable Question Notable Question Necromancer Necromancer Necromancer Nice Answer Enlightened Nice Answer Necromancer Yearling Good Question Disciplined Good Answer Necromancer Announcer Nice Answer c# Yearling Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 60220,954996,1391759,NULL,NULL,NULL,0,NULL,NULL 60221,1969094,787358,NULL,NULL,NULL,0,NULL,NULL 60222,65701,1391019,Good Answer Yearling,NULL,NULL,0,NULL,NULL 60223,1282808,1151015,Autobiographer,NULL,NULL,0,NULL,NULL 60224,170969,787648,Yearling Yearling Nice Answer Nice Question Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60225,207259,708320,Revival Informed Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60226,67722,666251,Yearling,NULL,NULL,0,NULL,NULL 60227,76873,374258,Nice Question Editor Popular Question Critic,NULL,NULL,0,NULL,NULL 60228,1739,886498,Necromancer Famous Question Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 60229,112200,1008522,Yearling,NULL,NULL,0,NULL,NULL 60230,38704,1451917,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60231,31721,663370,Nice Answer Yearling Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 60232,25778,285564,Yearling Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 60233,721922,1494163,NULL,NULL,NULL,0,NULL,NULL 60234,83293,366983,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60235,1156522,818345,NULL,NULL,NULL,0,NULL,NULL 60236,183229,1217760,Tag Editor,NULL,NULL,0,NULL,NULL 60237,67238,235816,NULL,NULL,NULL,0,NULL,NULL 60238,343674,144368,Popular Question Yearling Organizer Yearling Tumbleweed Nice Answer Enlightened Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 60239,219015,1103027,NULL,NULL,NULL,0,NULL,NULL 60240,151617,566136,Notable Question Popular Question Famous Question Yearling Favorite Question Great Question Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 60241,35718,1382455,Notable Question,NULL,NULL,0,NULL,NULL 60242,129769,144185,Yearling Caucus Enthusiast Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60243,200742,3122,Stellar Question Yearling Tumbleweed Yearling Favorite Question Popular Question Famous Question Popular Question Notable Question Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 60244,237600,319878,Nice Answer Enlightened Nice Answer Necromancer Excavator Yearling Guru Nice Answer Enlightened Good Answer Caucus Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Caucus Nice Answer Custodian Yearling Curious Announcer Tumbleweed,NULL,NULL,0,NULL,NULL 60245,709771,610490,NULL,NULL,NULL,0,NULL,NULL 60246,453970,1051849,Yearling Good Answer Nice Question Notable Question Famous Question Yearling Popular Question Civic Duty Notable Question Famous Question Famous Question Popular Question Notable Question Famous Question Popular Question Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60247,1345973,1222121,Nice Question Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 60248,709437,833769,Critic Popular Question,NULL,NULL,0,NULL,NULL 60249,16742,149060,Peer Pressure Notable Question Yearling Popular Question Notable Question Nice Question Good Answer Announcer Yearling Popular Question Popular Question Announcer Yearling Necromancer Announcer Announcer,NULL,NULL,0,NULL,NULL 60250,72760,254146,Necromancer Caucus Constituent Citizen Patrol Custodian Custodian Nice Answer Yearling Census Civic Duty,NULL,NULL,0,NULL,NULL 60251,233517,1265445,NULL,NULL,NULL,0,NULL,NULL 60252,324634,1094344,Critic Student,NULL,NULL,0,NULL,NULL 60253,230950,767624,Critic Yearling Self-Learner Notable Question Yearling,NULL,NULL,0,NULL,NULL 60254,511171,1192624,Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 60255,242686,146084,Necromancer Yearling Organizer Yearling Explainer Commentator,NULL,NULL,0,NULL,NULL 60256,218914,683947,Revival Yearling Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 60257,1745,184600,Nice Answer ruby Good Answer Good Answer jquery json Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Guru Nice Question Famous Question Notable Question Good Question Guru Nice Answer Guru Good Answer Notable Question Popular Question Popular Question Nice Answer Famous Question Yearling Famous Question Nice Answer Enlightened Guru Nice Question Guru Enlightened Nice Question Great Answer Nice Answer Generalist Nice Answer Enlightened Nice Answer Enlightened Famous Question Popular Question Notable Question Great Answer Popular Question Notable Question Good Answer Yearling Nice Answer Nice Answer Favorite Question Good Answer Great Answer Nice Answer Famous Question Nice Answer Popular Question Favorite Question Guru Good Question Guru Yearling,NULL,kbd href http jsbin com IgaXEVI 167 edit rel noreferrer jsbin com demo kbd ppYou ll see the demo code is just start stop reset millisecond counter If you want to do fanciful formatting on the time that completely up to you This should be more than enough to get you started ppThis was fun little project to work on Here how approach it ppre class lang js prettyprint override codevar Stopwatch function elem options var timer createTimer startButton createButton start start stopButton createButton stop stop resetButton createButton reset reset offset clock interval default options options options options delay options delay append elements elem appendChild timer elem appendChild startButton elem appendChild stopButton elem appendChild resetButton initialize reset private functions function createTimer return document createElement span function createButton action handler var document createElement href action innerHTML action addEventListener click function event handler event preventDefault return function start if interval offset Date now interval setInterval update options delay function stop if interval clearInterval interval interval null function reset clock render function update clock delta render function render timer innerHTML clock 1000 function delta var now Date now now offset offset now return public API this start start this stop stop this reset reset code prepGet some basic HTML wrappers for it ppre class lang html prettyprint override code lt create stopwatches gt lt div class stopwatch gt lt div gt lt div class stopwatch gt lt div gt lt div class stopwatch gt lt div gt code prepUsage is dead simple from there ppre class lang js prettyprint override codevar elems document getElementsByClassName stopwatch for var len elems length lt len new Stopwatch elems code prepAs bonus you get programmable API for the timers as well Here usage example ppre class lang js prettyprint override codevar elem document getElementById my stopwatch var timer new Stopwatch elem delay 10 start the timertimer start stop the timertimer stop reset the timertimer reset code prehrh3jQuery plugin h3pAs for the jQuery portion once you have nice code composition as above writing jQuery plugin is easy mode ppre code function var Stopwatch function elem options code from above fn stopwatch function options return this each function idx elem new Stopwatch elem options jQuery code prepjQuery plugin usage ppre code all elements with class stopwatch default delay ms stopwatch stopwatch specific element with id my stopwatch custom delay 10 ms my stopwatch stopwatch delay 10 code pre the timer will also stop working if the user restarts their computer or refreshes their browser tab These are not gotchas would not write code to address these issues unless there was some sort of justified extraneous requirement kbd href http jsbin com IgaXEVI 167 edit rel noreferrer jsbin com demo kbd ppYou ll see the demo code is just start stop reset millisecond counter If you want to do fanciful formatting on the time that completely up to you This should be more than enough to get you started ppThis was fun little project to work on Here how approach it ppre class lang js prettyprint override codevar Stopwatch function elem options var timer createTimer startButton createButton start start stopButton createButton stop stop resetButton createButton reset reset offset clock interval default options options options options delay options delay append elements elem appendChild timer elem appendChild startButton elem appendChild stopButton elem appendChild resetButton initialize reset private functions function createTimer return document createElement span function createButton action handler var document createElement href action innerHTML action addEventListener click function event handler event preventDefault return function start if interval offset Date now interval setInterval update options delay function stop if interval clearInterval interval interval null function reset clock render function update clock delta render function render timer innerHTML clock 1000 function delta var now Date now now offset offset now return public API this start start this stop stop this reset reset code prepGet some basic HTML wrappers for it ppre class lang html prettyprint override code lt create stopwatches gt lt div class stopwatch gt lt div gt lt div class stopwatch gt lt div gt lt div class stopwatch gt lt div gt code prepUsage is dead simple from there ppre class lang js prettyprint override codevar elems document getElementsByClassName stopwatch for var len elems length lt len new Stopwatch elems code prepAs bonus you get programmable API for the timers as well Here usage example ppre class lang js prettyprint override codevar elem document getElementById my stopwatch var timer new Stopwatch elem delay 10 start the timertimer start stop the timertimer stop reset the timertimer reset code prehrh3jQuery plugin h3pAs for the jQuery portion once you have nice code composition as above writing jQuery plugin is easy mode ppre code function var Stopwatch function elem options code from above fn stopwatch function options return this each function idx elem new Stopwatch elem options jQuery code prepjQuery plugin usage ppre code all elements with class stopwatch default delay ms stopwatch stopwatch specific element with id my stopwatch custom delay 10 ms my stopwatch stopwatch delay 10 code pre suggest you create new question for your specific issue You re more likely to get better answers that way,0,NULL,NULL 60258,134424,63011,Yearling Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Guru Nice Answer Enlightened Nice Answer Necromancer Great Answer Caucus Constituent Good Answer Nice Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Great Answer Caucus Great Answer Announcer Guru Nice Answer Nice Answer Enlightened Necromancer Documentation User Great Answer Census Great Answer Yearling Enlightened Guru Guru Populist Great Answer Good Answer Guru Nice Answer,NULL,pHere an example using href https developer mozilla org en US docs Web API FileReader rel noreferrer codeFileReader code pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction readSingleFile xD var file target files xD if file xD return xD xD var reader new FileReader xD reader onload function xD var contents target result xD displayContents contents xD xD reader readAsText file xD xD xD function displayContents contents xD var element document getElementById file content xD element textContent contents xD xD xD document getElementById file input xD addEventListener change readSingleFile false code pre xD pre class snippet code html lang html prettyprint override code lt input type file id file input gt xD lt h3 gt Contents of the file lt h3 gt xD lt pre id file content gt lt pre gt code pre xD div xD div xD phrh1Specs h1p href http dev w3 org 2006 webapi FileAPI rel noreferrer http dev w3 org 2006 webapi FileAPI ph1Browser compatibility h1ulliIE 10 liliFirefox liliChrome 13 liliSafari li ulp href http caniuse com feat fileapi rel noreferrer http caniuse com feat fileapi really good point My snippet is just an example but you re right it shouldn promote bad security habits replaced innerHTML with textContent Thanks for your comment,0,NULL,NULL 60259,1691776,94503,Good Answer Yearling Nice Question Civic Duty Famous Question Yearling,NULL,NULL,0,NULL,NULL 60260,1053653,94503,Good Answer Yearling Nice Question Civic Duty Famous Question Yearling,NULL,NULL,0,NULL,NULL 60261,467918,411392,NULL,NULL,NULL,0,NULL,NULL 60262,472188,1496137,NULL,NULL,NULL,0,NULL,NULL 60263,5504,1389965,NULL,NULL,NULL,0,NULL,NULL 60264,60840,297671,Yearling,NULL,NULL,0,NULL,NULL 60265,269207,1535138,NULL,NULL,NULL,0,NULL,NULL 60266,13138,425430,NULL,NULL,NULL,0,NULL,NULL 60267,164829,5128,Yearling Nice Answer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 60268,518350,1339502,Editor Student,NULL,NULL,0,NULL,NULL 60269,2013199,1339502,Editor Student,NULL,NULL,0,NULL,NULL 60270,204237,135051,Citizen Patrol Informed Custodian Custodian Autobiographer Organizer Custodian Commentator Peer Pressure Yearling Suffrage Vox Populi Census Excavator Revival Explainer Documentation User,NULL,NULL,0,NULL,NULL 60271,2263068,135051,Citizen Patrol Informed Custodian Custodian Autobiographer Organizer Custodian Commentator Peer Pressure Yearling Suffrage Vox Populi Census Excavator Revival Explainer Documentation User,NULL,NULL,0,NULL,NULL 60272,41310,1336887,NULL,NULL,NULL,0,NULL,NULL 60273,298093,618805,NULL,NULL,NULL,0,NULL,NULL 60274,180545,1035527,NULL,NULL,NULL,0,NULL,NULL 60275,147085,1864,Tumbleweed,NULL,NULL,0,NULL,NULL 60276,362146,1001566,Popular Question Commentator Yearling Critic Good Question,NULL,NULL,0,NULL,NULL 60277,1527823,839747,NULL,NULL,NULL,0,NULL,NULL 60278,216160,839747,NULL,NULL,NULL,0,NULL,NULL 60279,94887,444036,Tag Editor Nice Answer Nice Answer Enlightened Great Question Notable Question Nice Answer Nice Answer Good Answer Nice Answer Guru Yearling Good Answer Nice Answer Enlightened Popular Question Popular Question Guru Caucus Nice Answer Enlightened Constituent Nice Answer Nice Answer Census Good Answer Famous Question Nice Answer Nice Answer Enlightened Popular Question Guru Nice Answer Good Answer Popular Question Stellar Question Popular Question Good Answer Nice Question Caucus Guru Good Answer Constituent Good Answer Deputy Yearling Documentation User Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Good Answer Census python-3.x Caucus Revival Constituent Good Answer Nice Answer Enlightened Great Question Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Notable Question Nice Answer Guru Yearling Guru Notable Question,NULL,pOne liner returning list of lists given list and the chunk size ppre code gt gt gt lol lambda lst sz lst sz for in range len lst sz code prepTesting ppre code gt gt gt range 20 36 gt gt gt print 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 gt gt gt lol 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 gt gt gt lol 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 code prepUpdate pblockquote pI think the question is really asking is function which given list and number returns list containing number lists with the items of the original list evenly distributed So your example of lol should really return 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 markrian blockquotepWell in this case you can try ppre codedef slice list input size input size len input slice size input size size remain input size size result iterator iter input for in range size result append for in range slice size result append iterator next if remain result append iterator next remain return result code prepI sure this can be improved but feeling lazy ppre code gt gt gt slice list 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 code pre indeed range used to return list in Python while xrange returns generator like object The second is better if you are looping over it just once and throwing it away and the list is somewhat big but would have to profile it in order to see when the memory CPU trade off starts to pay pOne liner returning list of lists given list and the chunk size ppre code gt gt gt lol lambda lst sz lst sz for in range len lst sz code prepTesting ppre code gt gt gt range 20 36 gt gt gt print 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 gt gt gt lol 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 gt gt gt lol 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 code prepUpdate pblockquote pI think the question is really asking is function which given list and number returns list containing number lists with the items of the original list evenly distributed So your example of lol should really return 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 markrian blockquotepWell in this case you can try ppre codedef slice list input size input size len input slice size input size size remain input size size result iterator iter input for in range size result append for in range slice size result append iterator next if remain result append iterator next remain return result code prepI sure this can be improved but feeling lazy ppre code gt gt gt slice list 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 code pre Note since range now returns generator like object this range versus xrange is only concern if you are stuck with really old version of Python,0,NULL,NULL 60280,90924,563154,Yearling Custodian Famous Question Popular Question Popular Question Self-Learner Notable Question Yearling Nice Question Notable Question Popular Question Nice Question Yearling Notable Question Notable Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 60281,174144,1319757,NULL,NULL,NULL,0,NULL,NULL 60282,250564,646295,NULL,NULL,NULL,0,NULL,NULL 60283,4573,597349,Yearling Necromancer Revival Yearling Necromancer Civic Duty Famous Question Famous Question Census,NULL,NULL,0,NULL,NULL 60284,85734,1384863,NULL,NULL,NULL,0,NULL,NULL 60285,484896,972082,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 60286,181297,283387,NULL,NULL,NULL,0,NULL,NULL 60287,42403,363072,Announcer Census,NULL,NULL,1,NULL,Mongoose Trying to open unclosed connection node js mongodb mongoose pThis is simplified version of the problem but basically trying to open mongodb connections with mongoose and it giving me Trying to open unclosed connection error ppCode sample ppre codevar db1 require mongoose db1 connect my db ip address my db var db2 require mongoose db2 connect my db ip address my db db2 connection close db1 connection close code prepAny idea how to make it work pUsing href http mongoosejs com docs api html index Mongoose disconnect rel nofollow noreferrer mongoose disconnect fn ppre codemongoose disconnect gt here it would be possible reset models to fix OverwriteModelError errors mongoose models here comes your logic like registering Hapi plugins server register somePlugin callback code prepI found this question typing the error message and despite my problem is bit different believe it could be useful for those using Hapi More specifically href https hapijs com rel nofollow noreferrer Hapi href https jkheadley github io rest hapi rel nofollow noreferrer rest hapi href https mochajs org rel nofollow noreferrer mocha ppWhen running codemocha code with code watch code option was facing both codeOverwriteModelError code and codeError Trying to open unclosed connection errors code 60288,1080402,10335,Nice Answer Notable Question Nice Answer Popular Question Notable Question Popular Question Popular Question Favorite Question Popular Question Famous Question Popular Question Famous Question Yearling Notable Question Popular Question Notable Question Nice Answer Explainer Notable Question Revival Electorate Nice Answer Notable Question Popular Question Good Question Great Answer Good Answer Famous Question Great Question Notable Question Caucus Nice Question Nice Question Nice Answer Yearling Nice Question Good Answer Famous Question Popular Question Caucus Custodian Nice Question Constituent Necromancer Necromancer Favorite Question Famous Question Necromancer Good Answer Nice Answer Nice Question Nice Answer Popular Question Necromancer Pundit Popular Question Yearling Popular Question Necromancer,NULL,pYes using href http git scm com docs gitattributes attributes Put something like this in your code gitattributes code file create it if it doesn exist ppre code sln binary suo binary vcxproj binary code prepHere href http git scm com docs gitattributes defining macro attributes codebinary code is actually predefined macro equivalent to code diff merge text code ppIf you want to still be able to see the diff you can use ppre code sln merge text code prepThis way the code sln code files won be merged not have eol normalized but meanwhile diff able where is this file,0,NULL,NULL 60289,632262,611372,Commentator Scholar Yearling Autobiographer Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60290,47467,1418219,NULL,NULL,NULL,0,NULL,NULL 60291,165476,906021,NULL,NULL,NULL,0,NULL,NULL 60292,38775,843087,Supporter Scholar Editor Tumbleweed,NULL,NULL,0,NULL,NULL 60293,161590,21370,Nice Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 60294,52623,297915,Yearling,NULL,NULL,0,NULL,NULL 60295,186151,1015110,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60296,101218,39575,NULL,NULL,NULL,0,NULL,NULL 60297,806706,755343,Commentator Critic Suffrage Vox Populi Citizen Patrol Excavator Yearling Tag Editor Organizer Explainer Revival Yearling Custodian Tumbleweed Enthusiast Scholar Census Civic Duty Yearling Caucus Student Yearling Necromancer Necromancer Yearling Nice Answer Revival Announcer Yearling Revival Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 60298,17010,89872,Nice Answer Custodian Nice Answer Nice Answer Yearling Guru Necromancer Necromancer Pundit Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 60299,436510,1404692,NULL,NULL,NULL,0,NULL,NULL 60300,167208,260463,Yearling,NULL,NULL,0,NULL,NULL 60301,176693,919938,NULL,NULL,NULL,0,NULL,NULL 60302,500610,332271,NULL,NULL,NULL,0,NULL,NULL 60303,6157,599230,Necromancer Yearling Popular Question Nice Answer Caucus Autobiographer Announcer Yearling,NULL,NULL,0,NULL,NULL 60304,209499,1024142,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened elixir Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60305,47298,135850,Necromancer Nice Answer Yearling Good Answer Excavator Popular Question Guru Famous Question Popular Question Custodian php Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 60306,1013137,1524101,Informed,NULL,NULL,0,NULL,NULL 60307,140579,204546,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60308,2847,1072518,NULL,NULL,NULL,0,NULL,NULL 60309,1007627,338488,Nice Answer Yearling Popular Question Yearling Notable Question Good Answer Good Answer Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 60310,742783,603464,NULL,NULL,NULL,0,NULL,NULL 60311,78807,717268,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60312,471625,502921,Investor Notable Question Critic Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60313,432590,415352,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 60314,721524,624179,NULL,NULL,NULL,0,NULL,NULL 60315,9926,66492,NULL,NULL,NULL,0,NULL,NULL 60316,590879,1018455,Student,NULL,NULL,0,NULL,NULL 60317,134452,440499,NULL,NULL,NULL,0,NULL,NULL 60318,222735,215086,Great Answer Good Answer Good Answer Nice Answer Nice Answer Yearling Guru Popular Question Notable Question Good Answer Necromancer Yearling backbone.js Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60319,36472,339925,Nice Question Nice Question Revival Yearling Popular Question Self-Learner Tumbleweed Notable Question Caucus Popular Question Nice Answer Notable Question Yearling Nice Question Autobiographer,NULL,NULL,0,NULL,NULL 60320,120255,1386311,NULL,NULL,NULL,0,NULL,NULL 60321,399024,94816,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60322,325910,1465542,NULL,NULL,NULL,0,NULL,NULL 60323,371375,149019,NULL,NULL,NULL,0,NULL,NULL 60324,304152,115303,Popular Question,NULL,NULL,0,NULL,NULL 60325,122894,328857,NULL,NULL,NULL,0,NULL,NULL 60326,1564618,1487777,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 60327,263992,468460,Popular Question Popular Question Yearling Good Question Notable Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60328,331518,419712,Popular Question,NULL,NULL,0,NULL,NULL 60329,17414,816987,Guru Yearling Good Answer Caucus Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60330,25371,1391624,Announcer,NULL,NULL,0,NULL,NULL 60331,521943,502265,NULL,NULL,NULL,0,NULL,NULL 60332,597385,220771,Notable Question Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60333,230562,692484,NULL,NULL,NULL,0,NULL,NULL 60334,700868,1006943,NULL,NULL,NULL,0,NULL,NULL 60335,1455110,1044184,NULL,NULL,NULL,0,NULL,NULL 60336,43713,504456,NULL,NULL,NULL,0,NULL,NULL 60337,321463,838336,NULL,NULL,NULL,0,NULL,NULL 60338,9544794,935662,Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60339,1336146,935662,Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60340,38727,279562,Yearling Famous Question,NULL,NULL,0,NULL,NULL 60341,87688,1083428,Necromancer Yearling Revival Necromancer Yearling Necromancer Nice Answer Enlightened Nice Answer Custodian Necromancer Necromancer Revival Necromancer,NULL,NULL,0,NULL,NULL 60342,283847,882188,NULL,NULL,NULL,0,NULL,NULL 60343,121885,882188,NULL,NULL,NULL,0,NULL,NULL 60344,153045,441791,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 60345,30359,570075,NULL,NULL,NULL,0,NULL,NULL 60346,713600,1003008,Critic Caucus Nice Answer Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60347,173137,690309,NULL,NULL,NULL,0,NULL,NULL 60348,17943,304108,Informed,NULL,NULL,0,NULL,NULL 60349,95069,373167,NULL,NULL,NULL,0,NULL,NULL 60350,178009,1134118,NULL,NULL,NULL,0,NULL,NULL 60351,453517,360088,Yearling Famous Question,NULL,NULL,0,NULL,NULL 60352,420990,508759,NULL,NULL,NULL,0,NULL,NULL 60353,346832,996102,Commentator,NULL,NULL,0,NULL,NULL 60354,3452282,1406067,Yearling Notable Question Curious Caucus Yearling Caucus Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 60355,1427884,1406067,Yearling Notable Question Curious Caucus Yearling Caucus Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 60356,363257,45202,Yearling teamcity Good Answer Nice Answer Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 60357,2546080,1112240,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60358,494248,475045,Good Answer Yearling,NULL,NULL,0,NULL,NULL 60359,2146851,1376645,Critic,NULL,NULL,0,NULL,NULL 60360,491293,880326,Popular Question Guru Notable Question Guru Nice Question Notable Question Nice Answer Announcer Popular Question Good Answer Good Answer Notable Question Announcer Nice Answer Enlightened Yearling flask Nice Answer Enlightened Caucus Famous Question Publicist Constituent Good Answer python Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Announcer Announcer Announcer Caucus Yearling Good Question Announcer Announcer Announcer Guru Great Answer Notable Question Nice Answer Notable Question Great Answer Nice Answer Enlightened leaflet Caucus Guru Nice Answer Famous Question Nice Answer Enlightened Enlightened Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 60361,24523,341728,NULL,NULL,NULL,0,NULL,NULL 60362,386571,1403140,NULL,NULL,NULL,0,NULL,NULL 60363,487652,758900,NULL,NULL,NULL,0,NULL,NULL 60364,246541,1065806,Nice Answer Critic Revival Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 60365,11632,14131,Announcer Necromancer Good Answer Promoter Nice Question Benefactor Necromancer Guru Enlightened Guru Great Answer Famous Question Good Question Necromancer Yearling Nice Answer Tumbleweed Announcer Notable Question Good Answer Caucus Nice Answer Guru Notable Question Announcer Yearling Nice Question Nice Answer Necromancer Popular Question Necromancer Necromancer Caucus Nice Answer Nice Answer Nice Answer Popular Question Necromancer Notable Question Revival Popular Question Yearling Popular Question Booster,NULL,pFrom href https developers google com maps articles phpsqlsearch v3 rel noreferrer Google Code FAQ Creating Store Locator with PHP MySQL amp Google Maps pblockquote pHere the SQL statement that will find the closest 20 locations that are within radius of 25 miles to the 37 122 coordinate It calculates the distance based on the latitude longitude of that row and the target latitude longitude and then asks for only rows where the distance value is less than 25 orders the whole query by distance and limits it to 20 results To search by kilometers instead of miles replace 3959 with 6371 blockquotepre codeSELECT id 3959 acos cos radians 37 cos radians lat cos radians lng radians 122 sin radians 37 sin radians lat AS distance FROM markers HAVING distance lt 25 ORDER BY distance LIMIT 20 code pre To search by kilometres instead of miles replace 3959 with 6371,0,NULL,NULL 60366,287521,555431,NULL,NULL,NULL,0,NULL,NULL 60367,23102,345364,Yearling Popular Question Yearling Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 60368,6370158,235484,NULL,NULL,NULL,0,NULL,NULL 60369,341591,1285653,NULL,NULL,NULL,0,NULL,NULL 60370,1367073,549101,NULL,NULL,NULL,0,NULL,NULL 60371,101015,987913,NULL,NULL,NULL,0,NULL,NULL 60372,336028,1320989,NULL,NULL,NULL,0,NULL,NULL 60373,479694,908294,Revival Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 60374,1041676,913842,Editor Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 60375,308574,698663,Popular Question Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 60376,191724,682228,NULL,NULL,NULL,0,NULL,NULL 60377,110768,835310,Enthusiast,NULL,NULL,0,NULL,NULL 60378,59686,1142123,NULL,NULL,NULL,0,NULL,NULL 60379,489708,66517,Yearling Good Answer Yearling Custodian Custodian Tumbleweed Informed Taxonomist,NULL,NULL,0,NULL,NULL 60380,81547,33599,Notable Question Nice Question Famous Question Revival Nice Answer Nice Question Yearling Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 60381,138002,527807,Self-Learner Yearling Yearling Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 60382,549,1206368,NULL,NULL,NULL,0,NULL,NULL 60383,143026,648030,Necromancer Necromancer Yearling Popular Question Good Answer Necromancer Necromancer Yearling Good Answer Nice Answer Enlightened Necromancer Necromancer Necromancer Necromancer Good Answer Necromancer Necromancer Nice Answer Revival Nice Answer Yearling Good Answer Nice Answer Nice Answer Excavator Revival,NULL,pInfinite view pager by overriding adapter methods in your existing adapter class ppre code public int getCount return Integer MAX VALUE public CharSequence getPageTitle int position String title mTitleList get position mActualTitleListSize return title public Object instantiateItem ViewGroup container int position int virtualPosition position mActualTitleListSize return super instantiateItem container virtualPosition public void destroyItem ViewGroup container int position Object object int virtualPosition position mActualTitleListSize super destroyItem container virtualPosition object code pre no it won we are using same fragments again again MaxValue will just allows user to swipe that much of time,0,NULL,NULL 60384,296279,1103949,NULL,NULL,NULL,0,NULL,NULL 60385,48616,152593,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 60386,1522609,554036,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60387,518372,451594,Supporter Notable Question,NULL,NULL,0,NULL,NULL 60388,395746,585668,Supporter,NULL,NULL,0,NULL,NULL 60389,16770,454945,NULL,NULL,NULL,0,NULL,NULL 60390,801368,1274149,Yearling Civic Duty Yearling Necromancer Nice Answer Necromancer Yearling Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 60391,269113,131380,Custodian Yearling,NULL,NULL,0,NULL,NULL 60392,182249,1557157,Informed,NULL,NULL,0,NULL,NULL 60393,280211,287182,NULL,NULL,NULL,0,NULL,NULL 60394,857206,1013487,NULL,NULL,NULL,0,NULL,NULL 60395,1005485,919567,Teacher Editor Commentator Citizen Patrol Yearling Critic Yearling Custodian Custodian Yearling Yearling Custodian Organizer Tag Editor Explainer Custodian Excavator Reviewer Custodian Custodian Tenacious Enthusiast Deputy Civic Duty Yearling Caucus Constituent Nice Answer Enlightened symfony Caucus Constituent Yearling Announcer Documentation User Census Caucus Yearling,NULL,NULL,0,NULL,NULL 60396,493669,298345,Yearling Nice Answer Enlightened Excavator Revival Necromancer Census Yearling Great Answer Announcer Necromancer Nice Answer Good Answer Documentation User Guru Enlightened Necromancer Great Answer Nice Answer Good Answer Yearling Nice Answer Good Answer Civic Duty,NULL,NULL,0,NULL,NULL 60397,143859,693166,Good Answer Nice Answer Great Answer Yearling Nice Answer Strunk & White Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Populist Good Answer Documentation Pioneer Guru Nice Answer Enlightened Guru Census Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Documentation User Nice Answer Nice Answer Nice Answer Enlightened Electorate Guru Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened elixir Guru,NULL,NULL,0,NULL,NULL 60398,112584,657945,Custodian Citizen Patrol Yearling Caucus Revival Nice Answer Enlightened Yearling Student,NULL,NULL,0,NULL,NULL 60399,1208391,499768,Popular Question Excavator Famous Question Promoter Announcer Critic,NULL,NULL,0,NULL,NULL 60400,7906113,499768,Popular Question Excavator Famous Question Promoter Announcer Critic,NULL,NULL,0,NULL,NULL 60401,188197,677186,NULL,NULL,NULL,0,NULL,NULL 60402,916103,672181,NULL,NULL,NULL,0,NULL,NULL 60403,550366,1199156,Informed Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 60404,9310619,487801,NULL,NULL,NULL,0,NULL,NULL 60405,57411,1289738,NULL,NULL,NULL,0,NULL,NULL 60406,247374,3323,Popular Question Notable Question Yearling Self-Learner Nice Question Notable Question Nice Question Nice Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 60407,47196,1432596,NULL,NULL,NULL,0,NULL,NULL 60408,1518265,665696,NULL,NULL,NULL,0,NULL,NULL 60409,56205,1126626,NULL,NULL,NULL,0,NULL,NULL 60410,20567,1313530,NULL,NULL,NULL,0,NULL,NULL 60411,631770,1313530,NULL,NULL,NULL,0,NULL,NULL 60412,203471,224887,Necromancer Yearling,NULL,NULL,0,NULL,NULL 60413,214081,328190,Enthusiast Caucus Census Informed Autobiographer Yearling Popular Question,NULL,NULL,0,NULL,NULL 60414,743773,539481,Yearling Popular Question Revival Revival Popular Question Documentation User Nice Answer Yearling Announcer Autobiographer Informed Custodian Vox Populi Custodian Notable Question Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60415,390867,1030604,NULL,NULL,NULL,0,NULL,NULL 60416,82921,121595,Famous Question Favorite Question Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question Stellar Question Nice Question Popular Question Great Question Nice Answer Popular Question Notable Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Yearling Popular Question Nice Question Nice Question Famous Question Notable Question Famous Question Popular Question Nice Question Notable Question Good Question Caucus Yearling Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 60417,147763,793968,Yearling Caucus Custodian Informed Caucus Necromancer,NULL,NULL,0,NULL,NULL 60418,184799,1242901,Editor,NULL,NULL,0,NULL,NULL 60419,227057,123611,Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 60420,92288,1121523,Supporter,NULL,NULL,0,NULL,NULL 60421,182968,538169,Good Answer Popular Question Nice Answer Good Answer Guru Nice Answer Yearling android Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 60422,286775,507549,Popular Question Revival Yearling Informed Necromancer Notable Question Popular Question Caucus Citizen Patrol Custodian Yearling Custodian Caucus Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 60423,1351552,1396363,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 60424,78069,96454,NULL,NULL,NULL,0,NULL,NULL 60425,531493,619483,NULL,NULL,NULL,0,NULL,NULL 60426,786093,991529,NULL,NULL,NULL,0,NULL,NULL 60427,618889,59577,Excavator,NULL,NULL,0,NULL,NULL 60428,163828,794164,NULL,NULL,NULL,0,NULL,NULL 60429,286840,737033,Yearling Custodian Popular Question Popular Question Nice Answer Enlightened Yearling Notable Question Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 60430,310761,1546861,NULL,NULL,NULL,0,NULL,NULL 60431,137803,1119999,NULL,NULL,NULL,0,NULL,NULL 60432,179918,707551,Caucus Yearling,NULL,NULL,0,NULL,NULL 60433,511854,535643,NULL,NULL,NULL,0,NULL,NULL 60434,933781,965880,NULL,NULL,NULL,0,NULL,NULL 60435,719745,933479,NULL,NULL,NULL,0,NULL,NULL 60436,1083221,1018447,Popular Question Commentator Announcer,NULL,NULL,0,NULL,NULL 60437,1339394,816221,NULL,NULL,NULL,0,NULL,NULL 60438,341082,1078993,NULL,NULL,NULL,0,NULL,NULL 60439,155666,295402,NULL,NULL,NULL,0,NULL,NULL 60440,50590,681342,Popular Question,NULL,NULL,0,NULL,NULL 60441,515606,1292900,NULL,NULL,NULL,0,NULL,NULL 60442,49326,229069,Notable Question Supporter,NULL,NULL,0,NULL,NULL 60443,38117,1317409,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60444,193998,476893,NULL,NULL,NULL,0,NULL,NULL 60445,386864,482137,Teacher Revival,NULL,NULL,0,NULL,NULL 60446,210356,842758,NULL,NULL,NULL,0,NULL,NULL 60447,533940,87466,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60448,405939,1072169,Student Scholar,NULL,NULL,0,NULL,NULL 60449,1522731,1290196,Notable Question Notable Question Yearling Popular Question Announcer Necromancer Favorite Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 60450,124637,285528,Revival,NULL,NULL,0,NULL,NULL 60451,115403,197988,Revival,NULL,NULL,0,NULL,NULL 60452,536993,1040516,NULL,NULL,NULL,0,NULL,NULL 60453,2678344,1309122,NULL,NULL,NULL,0,NULL,NULL 60454,172149,422914,Notable Question,NULL,NULL,0,NULL,NULL 60455,30098,1278661,NULL,NULL,NULL,0,NULL,NULL 60456,105751,1034314,NULL,NULL,NULL,0,NULL,NULL 60457,185013,142205,NULL,NULL,NULL,0,NULL,NULL 60458,860641,1075027,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Good Answer Great Answer symfony symfony Caucus Constituent Guru Nice Question Nice Answer Enlightened Custodian Yearling Custodian Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 60459,670835,1047244,Commentator Informed,NULL,NULL,0,NULL,NULL 60460,187658,303833,Documentation User,NULL,NULL,0,NULL,NULL 60461,1438115,705483,Necromancer Popular Question Notable Question Yearling Revival Revival Popular Question Caucus Popular Question Popular Question Popular Question Yearling Necromancer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 60462,720282,1111778,NULL,NULL,NULL,0,NULL,NULL 60463,431440,804629,NULL,NULL,NULL,0,NULL,NULL 60464,13090,56424,NULL,NULL,NULL,0,NULL,NULL 60465,3869419,1121163,Editor Student Tumbleweed,NULL,NULL,0,NULL,NULL 60466,46314,7847,Yearling Announcer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 60467,164667,767026,NULL,NULL,NULL,0,NULL,NULL 60468,95743,112428,Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 60469,161181,682756,Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 60470,2659352,180302,NULL,NULL,NULL,0,NULL,NULL 60471,34697,415690,Good Question Notable Question Nice Answer Yearling Guru Nice Answer Nice Question Nice Answer Enlightened Popular Question Good Question Nice Answer Nice Answer Famous Question Yearling Nice Question Nice Answer Good Answer Famous Question Good Answer Popular Question Nice Answer Enlightened Popular Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 60472,210387,1024756,Necromancer Autobiographer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 60473,81405,61274,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60474,379251,1485768,NULL,NULL,NULL,0,NULL,NULL 60475,1503785,278442,Necromancer Nice Answer Yearling Nice Answer Good Answer Popular Question Yearling,NULL,NULL,1,NULL,Amazon S3 boto how to delete folder python amazon s3 boto pI have create folder in s3 named test and push test jpg test jpg into test ppNow want to use boto to delete folder test ppWhat should do pI feel that it been while and boto3 has few different ways of accomplishing this goal This assumes you want to delete the strongtest strong folder and all of its objects Here is one way ppre codes3 boto3 resource s3 objects to delete s3 meta client list objects Bucket MyBucket Prefix myfolder test delete keys Objects delete keys Objects Key for in obj Key for obj in objects to delete get Contents s3 meta client delete objects Bucket MyBucket Delete delete keys code prepThis should make two requests one to fetch the objects in the folder the second to delete all objects in said folder pp href https boto3 readthedocs org en latest reference services s3 html S3 Client delete objects https boto3 readthedocs org en latest reference services s3 html S3 Client delete objects 60476,77793,380169,NULL,NULL,NULL,0,NULL,NULL 60477,472804,687430,Famous Question,NULL,NULL,0,NULL,NULL 60478,730933,564274,Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 60479,36162,2464,Guru Yearling Revival Custodian Custodian Informed Electorate Yearling Necromancer Disciplined Announcer,NULL,NULL,0,NULL,NULL 60480,155556,1052574,Nice Question Critic,NULL,NULL,0,NULL,NULL 60481,5962,225184,NULL,NULL,NULL,0,NULL,NULL 60482,321634,236093,NULL,NULL,NULL,0,NULL,NULL 60483,8011979,846838,Popular Question,NULL,NULL,0,NULL,NULL 60484,5814,1286994,NULL,NULL,NULL,0,NULL,NULL 60485,430517,809150,Popular Question Nice Answer Notable Question Necromancer Nice Question Notable Question Yearling Popular Question Notable Question Nice Answer Nice Answer Good Answer Yearling Popular Question Notable Question Good Answer Notable Question Nice Answer Good Answer Populist Yearling Popular Question,NULL,NULL,0,NULL,NULL 60486,105121,1257662,Popular Question,NULL,NULL,0,NULL,NULL 60487,190448,39819,Guru Yearling objective-c Yearling Yearling,NULL,NULL,0,NULL,NULL 60488,115458,895277,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 60489,302077,308546,NULL,NULL,NULL,0,NULL,NULL 60490,217283,344155,Favorite Question Popular Question Popular Question Yearling Nice Answer Popular Question Notable Question Nice Question Popular Question Revival Organizer Yearling Nice Question Revival Great Question Popular Question Notable Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened,NULL,NULL,1,Heroku SSL install intermediate cert ssl heroku https pMy registrar gandi gave me an intermediate cert to install so have files polliPrivate key file server key liliCertificate file mycert crt liliIntermediate cert GandiSomething pem li olpI using the href https devcenter heroku com articles ssl beta rel noreferrer SSL Beta service on heroku The heroku CLI codeheroku certs add code takes exactly two arguments CRT and KEY how do install the intermediate cert,NULL 60491,63331,320858,Yearling Caucus Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 60492,7110318,1094349,NULL,NULL,NULL,0,NULL,NULL 60493,3183,1339820,Yearling Documentation Pioneer Caucus Caucus Documentation User Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60494,480001,1025174,NULL,NULL,NULL,0,NULL,NULL 60495,1246682,1275365,NULL,NULL,NULL,0,NULL,NULL 60496,80622,449477,Good Answer Yearling Student Scholar Yearling Yearling,NULL,NULL,0,NULL,NULL 60497,298124,678564,NULL,NULL,NULL,0,NULL,NULL 60498,1212870,978123,Editor Curious Scholar Tumbleweed Commentator Popular Question,NULL,NULL,0,NULL,NULL 60499,751405,659419,NULL,NULL,NULL,0,NULL,NULL 60500,1491946,339444,NULL,NULL,NULL,0,NULL,NULL 60501,86003,8925,Popular Question Necromancer Popular Question Yearling Good Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 60502,192875,423836,Nice Question Yearling,NULL,NULL,0,NULL,NULL 60503,82790,316805,Editor Revival,NULL,NULL,0,NULL,NULL 60504,537211,217649,Famous Question Famous Question Great Question Famous Question Famous Question Notable Question Popular Question Famous Question Notable Question Famous Question Famous Question Notable Question Nice Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Famous Question Stellar Question Notable Question Nice Question Popular Question Yearling Notable Question Favorite Question Famous Question Notable Question Famous Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Announcer Notable Question Famous Question Popular Question Notable Question Famous Question Famous Question Good Question Popular Question Popular Question Famous Question Popular Question Popular Question Documentation User Notable Question Popular Question Nice Question Notable Question Popular Question Yearling Famous Question Popular Question Nice Question Famous Question Popular Question Popular Question Good Question Nice Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Nice Answer Famous Question Notable Question Good Question Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 60505,341083,575181,NULL,NULL,NULL,0,NULL,NULL 60506,74056,297862,NULL,NULL,NULL,0,NULL,NULL 60507,887506,900834,Popular Question,NULL,NULL,0,NULL,NULL 60508,264298,194639,Popular Question Yearling Nice Answer Popular Question Nice Answer Popular Question Notable Question Famous Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 60509,628409,1291432,Yearling Revival,NULL,NULL,0,NULL,NULL 60510,502731,278277,NULL,NULL,NULL,0,NULL,NULL 60511,1545654,538575,Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 60512,122942,599585,Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 60513,408793,230412,NULL,NULL,NULL,0,NULL,NULL 60514,561344,767655,NULL,NULL,NULL,0,NULL,NULL 60515,275548,571448,Tumbleweed,NULL,NULL,0,NULL,NULL 60516,280538,1467153,Popular Question Critic Curious Commentator Popular Question,NULL,NULL,0,NULL,NULL 60517,191323,574826,Custodian Informed Autobiographer Nice Answer Enlightened Yearling Famous Question Yearling Yearling Enthusiast Nice Answer Caucus Yearling Organizer Custodian Citizen Patrol Custodian Yearling Good Answer Guru Nice Answer,NULL,NULL,0,NULL,NULL 60518,2266630,908800,NULL,NULL,NULL,0,NULL,NULL 60519,518118,1541615,Popular Question Peer Pressure Popular Question Popular Question Autobiographer Nice Question Famous Question Yearling Popular Question Notable Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 60520,283779,366712,Necromancer Revival Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60521,236767,755800,Necromancer,NULL,NULL,0,NULL,NULL 60522,679676,689381,NULL,NULL,NULL,0,NULL,NULL 60523,420140,217833,Famous Question Yearling Excavator Nice Answer ruby-on-rails-3 Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 60524,1351907,60989,Yearling Great Answer Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 60525,25155,699227,Scholar,NULL,NULL,0,NULL,NULL 60526,1515263,181856,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 60527,122358,699544,NULL,NULL,NULL,0,NULL,NULL 60528,297249,1247170,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 60529,149452,102077,Yearling Commentator Critic Informed Good Answer,NULL,NULL,0,NULL,NULL 60530,1512854,23223,NULL,NULL,NULL,0,NULL,NULL 60531,4497598,380323,Yearling,NULL,NULL,0,NULL,NULL 60532,368447,525757,NULL,NULL,NULL,0,NULL,NULL 60533,963228,1407130,NULL,NULL,NULL,0,NULL,NULL 60534,10575145,1407130,NULL,NULL,NULL,0,NULL,NULL 60535,357656,129032,Popular Question Notable Question Nice Answer Deputy Good Answer Good Answer Nice Answer Enlightened Nice Question Notable Question Yearling Nice Answer Enlightened Nice Question node.js Popular Question Nice Answer Enlightened Good Answer Caucus Constituent Nice Answer ecmascript-6 Popular Question Census Nice Answer Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Notable Question Yearling c++ Caucus Nice Answer Good Answer Constituent javascript Nice Answer Guru Guru Nice Answer typescript Reviewer Nice Answer Census Great Answer Nice Answer Popular Question Caucus Popular Question Good Answer Popular Question Good Answer Constituent Nice Answer Enlightened Popular Question Nice Answer Good Answer Yearling Yearling Yearling Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 60536,22643,218669,NULL,NULL,NULL,0,NULL,NULL 60537,186913,117357,Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 60538,439847,795273,NULL,NULL,NULL,0,NULL,NULL 60539,2154708,795273,NULL,NULL,NULL,0,NULL,NULL 60540,1411688,819665,NULL,NULL,NULL,0,NULL,NULL 60541,284142,474285,Student,NULL,NULL,0,NULL,NULL 60542,515984,632,Nice Answer Famous Question Notable Question Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Answer Enlightened Yearling Popular Question Popular Question Popular Question Notable Question Nice Answer Good Answer Nice Answer Enlightened Great Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 60543,139495,1185851,NULL,NULL,NULL,0,NULL,NULL 60544,2315505,1147780,NULL,NULL,NULL,0,NULL,NULL 60545,1128843,273910,Famous Question,NULL,NULL,0,NULL,NULL 60546,20439,357495,NULL,NULL,NULL,0,NULL,NULL 60547,229270,1176854,Announcer,NULL,NULL,0,NULL,NULL 60548,236311,1319594,NULL,NULL,NULL,0,NULL,NULL 60549,181514,190454,Yearling Yearling Notable Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 60550,1057867,1076564,Notable Question Yearling Popular Question Yearling Necromancer Nice Question Announcer Custodian Custodian Custodian Necromancer Nice Answer Yearling Necromancer Necromancer Yearling Nice Answer Documentation User Famous Question Yearling Autobiographer Suffrage Vox Populi Announcer Necromancer Promoter Benefactor Custodian Good Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60551,342979,871752,NULL,NULL,NULL,0,NULL,NULL 60552,1562354,1462161,Commentator Scholar Student Popular Question,NULL,NULL,0,NULL,NULL 60553,915400,1362915,NULL,NULL,NULL,0,NULL,NULL 60554,395785,293516,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 60555,292985,332204,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 60556,297157,492762,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 60557,132343,193585,NULL,NULL,NULL,0,NULL,NULL 60558,1351491,1259513,NULL,NULL,NULL,0,NULL,NULL 60559,42212,1217469,Good Answer Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 60560,6737049,1367027,Student Supporter,NULL,NULL,0,NULL,NULL 60561,4752881,138601,Famous Question Popular Question Notable Question Socratic Famous Question Popular Question Popular Question Nice Answer Notable Question Good Answer Nice Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Favorite Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Nice Question Good Answer Notable Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Caucus Nice Answer Notable Question Notable Question Popular Question Good Question ruby Necromancer Popular Question Great Question Popular Question Notable Question Notable Question Great Question Notable Question Famous Question Popular Question Good Question Favorite Question Nice Question Favorite Question Nice Question Notable Question Good Question Nice Question Great Question Notable Question Notable Question Nice Question Good Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Yearling Caucus Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Great Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Caucus Necromancer Notable Question Popular Question Electorate Nice Question Notable Question Nice Question Popular Question Famous Question Nice Question Famous Question Nice Question Nice Question Yearling Popular Question Popular Question Popular Question Nice Question Nice Answer Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 60562,181269,1362017,NULL,NULL,NULL,0,NULL,NULL 60563,1567758,1281313,NULL,NULL,NULL,0,NULL,NULL 60564,489910,432806,Nice Answer Enlightened Popular Question Nice Answer Nice Answer Nice Answer Yearling Nice Answer Good Answer Pundit Good Answer Popular Question Popular Question Nice Answer Enlightened Census Announcer Nice Answer Nice Answer Enlightened Good Answer Yearling Great Answer Nice Answer Enlightened Nice Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 60565,267360,886913,Teacher Revival Critic Yearling Commentator,NULL,NULL,0,NULL,NULL 60566,12210,794665,Yearling Yearling Custodian Custodian Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 60567,206736,281380,NULL,NULL,NULL,0,NULL,NULL 60568,126192,171465,NULL,NULL,NULL,0,NULL,NULL 60569,82355,936144,NULL,NULL,NULL,0,NULL,NULL 60570,1504498,1264186,Yearling,NULL,NULL,0,NULL,NULL 60571,226303,570236,Revival Caucus Caucus,NULL,NULL,0,NULL,NULL 60572,107134,1046244,Caucus Autobiographer,NULL,NULL,0,NULL,NULL 60573,358002,124850,Yearling Notable Question,NULL,NULL,0,NULL,NULL 60574,29750,72784,Yearling Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Announcer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60575,63970,448353,NULL,NULL,NULL,0,NULL,NULL 60576,253068,368689,Peer Pressure Nice Answer Yearling Revival Critic Popular Question Caucus Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60577,24309,530073,Yearling,NULL,NULL,0,NULL,NULL 60578,5064,609468,Student,NULL,NULL,0,NULL,NULL 60579,28340,795295,Popular Question,NULL,NULL,0,NULL,NULL 60580,171357,1150974,NULL,NULL,NULL,0,NULL,NULL 60581,442538,298624,Guru Popular Question Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Famous Question Yearling Good Answer Nice Answer Nice Answer Enlightened Necromancer Popular Question Nice Answer Nice Answer hash Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Notable Question Caucus Nice Answer Popular Question Good Answer Nice Answer Notable Question Nice Answer Enlightened Guru Guru Popular Question Nice Answer Yearling Good Answer Nice Answer Famous Question Guru Famous Question Nice Answer Good Question Nice Question Nice Answer Notable Question Nice Answer Caucus Nice Answer Enlightened Notable Question Famous Question Good Answer Popular Question Necromancer Good Answer Caucus Nice Answer Yearling Notable Question Custodian Popular Question Popular Question Notable Question Nice Question Great Answer Notable Question Nice Answer Enlightened Socratic Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 60582,53737,1258307,Necromancer Critic Yearling Caucus Nice Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 60583,649392,1240144,NULL,NULL,NULL,0,NULL,NULL 60584,2292370,409157,Yearling Yearling Yearling haskell,NULL,,0,, 60585,63950,409157,Yearling Yearling Yearling haskell,NULL,NULL,0,NULL,NULL 60586,119237,1304990,Teacher Editor,NULL,NULL,0,NULL,NULL 60587,366275,1126977,Editor Curious Teacher Informed Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 60588,440499,590115,NULL,NULL,NULL,0,NULL,NULL 60589,311514,220814,Excavator Yearling Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 60590,38031,134960,NULL,NULL,NULL,0,NULL,NULL 60591,41256,1510775,NULL,NULL,NULL,0,NULL,NULL 60592,582571,695507,Necromancer Caucus Constituent Custodian Custodian Custodian Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 60593,167909,1044838,NULL,NULL,NULL,0,NULL,NULL 60594,178712,959797,NULL,NULL,NULL,0,NULL,NULL 60595,7634,148039,NULL,NULL,NULL,0,NULL,NULL 60596,1433690,852209,NULL,NULL,NULL,0,NULL,NULL 60597,123339,1465814,Informed,NULL,NULL,0,NULL,NULL 60598,5382898,659641,Teacher,NULL,NULL,0,NULL,NULL 60599,100904,1236983,NULL,NULL,NULL,0,NULL,NULL 60600,17037,480674,Good Answer Announcer Nice Answer Enlightened Peer Pressure Nice Answer Guru Fanatic Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Custodian Yearling Nice Answer Enlightened Proofreader Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60601,405872,726220,Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 60602,78749,1243335,Teacher Supporter,NULL,NULL,0,NULL,NULL 60603,232137,886588,NULL,NULL,NULL,0,NULL,NULL 60604,181285,431184,NULL,NULL,NULL,0,NULL,NULL 60605,181296,467479,NULL,NULL,NULL,0,NULL,NULL 60606,105039,1286886,NULL,NULL,NULL,0,NULL,NULL 60607,117607,280374,NULL,NULL,NULL,0,NULL,NULL 60608,32665,358596,Informed Yearling Nice Answer Enlightened Publicist Yearling Caucus Constituent Census Yearling,NULL,NULL,0,NULL,NULL 60609,202849,618203,NULL,NULL,NULL,0,NULL,NULL 60610,4976449,1048300,Excavator,NULL,NULL,0,NULL,NULL 60611,923266,680756,NULL,NULL,NULL,0,NULL,NULL 60612,405334,216559,NULL,NULL,NULL,0,NULL,NULL 60613,10633272,216559,NULL,NULL,NULL,0,NULL,NULL 60614,230662,1189963,Notable Question Good Answer,NULL,NULL,0,NULL,NULL 60615,485687,1438007,Informed Census Editor Excavator,NULL,NULL,0,NULL,NULL 60616,99012,232861,Autobiographer,NULL,NULL,0,NULL,NULL 60617,1910466,1426163,NULL,NULL,NULL,0,NULL,NULL 60618,707312,5488,Famous Question Commentator Excavator,NULL,NULL,0,NULL,NULL 60619,735499,1121010,Favorite Question Necromancer Notable Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 60620,54960,945738,Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60621,688569,610196,Teacher Supporter Suffrage Vox Populi Critic Yearling Nice Answer Revival Editor Organizer Civic Duty Caucus Constituent Yearling Revival Census Caucus Constituent Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60622,14078,11099,Revival Necromancer Yearling Nice Answer Yearling Documentation User Yearling Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 60623,97040,38234,Notable Question Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 60624,10040413,38234,Notable Question Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 60625,396127,1332486,Notable Question Yearling Curious Critic Popular Question Popular Question Good Answer Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 60626,7110469,970551,Notable Question Supporter,NULL,NULL,0,NULL,NULL 60627,261128,496940,Custodian Commentator Citizen Patrol Custodian Critic Yearling Informed Excavator Caucus Constituent Good Answer Yearling Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60628,5537583,496940,Custodian Commentator Citizen Patrol Custodian Critic Yearling Informed Excavator Caucus Constituent Good Answer Yearling Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60629,1001371,108017,Yearling Nice Answer Good Question Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 60630,367117,364327,Yearling Revival Necromancer Good Answer Nice Answer Notable Question Yearling Taxonomist Nice Question Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 60631,194846,958898,Caucus,NULL,NULL,0,NULL,NULL 60632,102811,189270,Notable Question Popular Question Custodian Popular Question Notable Question Nice Question Revival Popular Question Yearling Notable Question Famous Question Revival Popular Question Popular Question Notable Question Notable Question Notable Question Great Question Popular Question Popular Question Notable Question Nice Answer Yearling Nice Question Popular Question Announcer Necromancer Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 60633,162208,909136,Editor Scholar Student,NULL,NULL,0,NULL,NULL 60634,271932,191969,Enlightened Announcer Popular Question Popular Question Notable Question Yearling Nice Question Notable Question Nice Answer Self-Learner Popular Question Nice Answer Popular Question Nice Answer Nice Question Notable Question Yearling Popular Question Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 60635,217704,522639,NULL,NULL,NULL,0,NULL,NULL 60636,916253,785713,NULL,NULL,NULL,0,NULL,NULL 60637,64327,816064,NULL,NULL,NULL,0,NULL,NULL 60638,1046715,725096,NULL,NULL,NULL,0,NULL,NULL 60639,1012798,570953,Yearling Popular Question Necromancer Custodian Good Question Tumbleweed javascript Yearling Notable Question Great Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60640,1547991,1191415,NULL,NULL,NULL,0,NULL,NULL 60641,35334,1187229,Yearling Famous Question,NULL,NULL,0,NULL,NULL 60642,262871,651248,NULL,NULL,NULL,0,NULL,NULL 60643,300925,763676,NULL,NULL,NULL,0,NULL,NULL 60644,232608,59242,Famous Question Yearling Nice Question Popular Question Popular Question Nice Answer Enlightened Notable Question Revival Notable Question Yearling Nice Question Custodian Popular Question Necromancer Famous Question Good Question Good Answer Good Question Nice Answer Good Question Yearling Famous Question Popular Question Stellar Question Famous Question Guru Famous Question,NULL,NULL,0,NULL,NULL 60645,1508145,447397,NULL,NULL,NULL,0,NULL,NULL 60646,65225,353692,Necromancer,NULL,NULL,0,NULL,NULL 60647,3198,368238,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 60648,715738,753486,NULL,NULL,NULL,0,NULL,NULL 60649,257932,38083,Famous Question Yearling,NULL,NULL,0,NULL,NULL 60650,318996,629685,Nice Question Good Answer Yearling Popular Question Stellar Question Necromancer Famous Question Nice Question Popular Question Notable Question Famous Question Notable Question Nice Answer Good Question Notable Question Good Question Caucus Notable Question Popular Question Popular Question Explainer Revival Necromancer Strunk & White Fanatic Yearling Necromancer Famous Question Nice Answer Necromancer Necromancer Famous Question Good Answer Favorite Question Famous Question Necromancer Popular Question Famous Question Notable Question Necromancer Popular Question Notable Question Notable Question go Good Question Custodian Nice Question Popular Question Nice Question Great Question Yearling Popular Question Notable Question Nice Answer Nice Answer Good Answer Great Question Nice Answer Electorate Popular Question Notable Question Good Question Nice Answer Enlightened Favorite Question Necromancer,NULL,pExport var ppre codeCC TEST REPORTER ID code prepRun ppre codefor pkg in go list grep vendor do go test coverprofile echo pkg tr cover pkgdoneecho mode set gt outgrep mode cover gt gt outrm cover cc test reporter after build code pre Your solution works perfectly Explain please this magic out file Does cc test reporter after build expect file with out name and concrete syntax,1,Codeclimate test coverage formatter for Golang go continuous integration code coverage code climate pNowhere in href https docs codeclimate com v1 docs setting up test coverage section supported languages and formats rel nofollow noreferrer Codeclimate docs written how to specify coverage formatter But when trying to send coverage to Codeclimate ppre code cc test reporter before build cc test reporter after build code prepIt is failing pblockquote pError could not find any viable formatter available formatters simplecov lcov coverage py clover gocov gcov cobertura jacoco blockquotepI have codegocov code installed Also generated report with codegoconv code ppre codegocov test coverprofile out code prepAnd tried to specify the report file to Codeclimate in various ways ppre code cc test reporter after build out cc test reporter after build lt out code prepBut had no luck ppI haven found any formatter related directives for code codeclimate yml code file The doc is written in super you know style so it didn help How to enable send test coverage with Codeclimate,NULL 60651,46112,161398,NULL,NULL,NULL,0,NULL,NULL 60652,208984,1254912,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 60653,22066,84670,NULL,NULL,NULL,0,NULL,NULL 60654,403430,967844,Necromancer Yearling Popular Question Nice Answer Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 60655,1152247,1299542,Revival,NULL,NULL,0,NULL,NULL 60656,4526,150710,NULL,NULL,NULL,0,NULL,NULL 60657,119597,1004847,NULL,NULL,NULL,0,NULL,NULL 60658,474250,1213623,NULL,NULL,NULL,0,NULL,NULL 60659,9293,20667,Custodian Nice Answer Yearling Revival Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 60660,796444,1294646,Revival,NULL,NULL,0,NULL,NULL 60661,25702,278535,Curious Caucus Revival Yearling Commentator Nice Question Popular Question,NULL,NULL,0,NULL,NULL 60662,129734,1277413,Yearling Yearling Tumbleweed Yearling,NULL,pMake sure you install the devkit ticking the checkboxes that will update the path You might need to reinstall ruby too pp strongInstall the DevKit strong ppDownload Development Kit from here href http rubyinstaller org downloads rel nofollow noreferrer http rubyinstaller org downloads ppDevKit url at this time For use with Ruby and href https github com downloads oneclick rubyinstaller DevKit tdm 32 20111229 1559 sfx exe rel nofollow noreferrer DevKit tdm 32 ppFor use with Ruby and above 32bits version only href http dl bintray com oneclick rubyinstaller DevKit mingw64 32 20130224 1151 sfx exe rel nofollow noreferrer DevKit mingw64 32 ppFor use with Ruby and above x64 64bits only href http dl bintray com oneclick rubyinstaller DevKit mingw64 64 20130224 1432 sfx exe rel nofollow noreferrer DevKit mingw64 64 ppFollow instructions href https github com oneclick rubyinstaller wiki development kit rel nofollow noreferrer here ppOr short instructions pblockquote pUnzip the zip popen command line and go to unzipped folder pruby dk rb init pruby dk rb install pgem install rdiscount platform ruby blockquote so happy to help years later,0,NULL,NULL 60663,118663,1062636,Popular Question Nice Answer Necromancer Popular Question Necromancer Nice Question Nice Question Nice Answer Good Question Nice Answer Yearling Notable Question Necromancer Disciplined Nice Answer Necromancer Nice Answer Populist Good Answer Notable Question Good Question Notable Question Yearling Caucus Tumbleweed Good Answer Nice Answer Famous Question Necromancer Popular Question Custodian Famous Question Popular Question Notable Question Nice Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 60664,1254995,1062636,Popular Question Nice Answer Necromancer Popular Question Necromancer Nice Question Nice Question Nice Answer Good Question Nice Answer Yearling Notable Question Necromancer Disciplined Nice Answer Necromancer Nice Answer Populist Good Answer Notable Question Good Question Notable Question Yearling Caucus Tumbleweed Good Answer Nice Answer Famous Question Necromancer Popular Question Custodian Famous Question Popular Question Notable Question Nice Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 60665,167395,586829,Revival,NULL,NULL,0,NULL,NULL 60666,132502,1351552,NULL,NULL,NULL,0,NULL,NULL 60667,111895,583686,Custodian Critic Famous Question Yearling Curious Caucus Nice Answer Enlightened Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 60668,69987,1125413,Yearling Notable Question Guru Notable Question Nice Question Nice Question Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Famous Question Notable Question Nice Question Announcer Popular Question Famous Question Notable Question Great Answer Notable Question Nice Answer Famous Question Popular Question Yearling Popular Question Good Answer Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 60669,300302,627494,NULL,NULL,NULL,0,NULL,NULL 60670,2662828,1428109,Popular Question Yearling Famous Question Promoter Benefactor Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Yearling Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 60671,830274,888286,NULL,NULL,NULL,0,NULL,NULL 60672,1182831,1290840,Popular Question Popular Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 60673,461840,683194,Yearling Good Question Notable Question Notable Question Nice Question Nice Question Famous Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60674,81143,65465,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60675,75940,1438944,NULL,NULL,NULL,0,NULL,NULL 60676,182428,714542,NULL,NULL,NULL,0,NULL,NULL 60677,144248,1210831,NULL,NULL,NULL,0,NULL,NULL 60678,425581,618683,NULL,NULL,NULL,0,NULL,NULL 60679,249914,531155,NULL,NULL,NULL,0,NULL,NULL 60680,97103,1066882,NULL,NULL,NULL,0,NULL,NULL 60681,77469,1140510,NULL,NULL,NULL,0,NULL,NULL 60682,213370,812879,Documentation Pioneer Necromancer Documentation User Critic Student Scholar Editor Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60683,912783,796118,NULL,NULL,NULL,0,NULL,NULL 60684,419818,22331,NULL,NULL,NULL,0,NULL,NULL 60685,96163,1424739,Notable Question Yearling Famous Question Notable Question Nice Question Yearling Famous Question Nice Question Custodian Yearling Critic Inquisitive Peer Pressure Supporter Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60686,315547,528095,NULL,NULL,NULL,0,NULL,NULL 60687,720288,4355,NULL,NULL,NULL,0,NULL,NULL 60688,18014,556680,NULL,NULL,NULL,0,NULL,NULL 60689,68878,886257,NULL,NULL,NULL,0,NULL,NULL 60690,56359,669647,Popular Question Popular Question Yearling Caucus Constituent Notable Question Caucus Documentation User,NULL,NULL,0,NULL,NULL 60691,2228703,1315634,Notable Question Nice Answer Enlightened Yearling javascript Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60692,27720,1315634,Notable Question Nice Answer Enlightened Yearling javascript Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60693,171027,620079,Notable Question Census,NULL,NULL,0,NULL,NULL 60694,845658,1064771,NULL,NULL,NULL,0,NULL,NULL 60695,240694,737304,NULL,NULL,NULL,0,NULL,NULL 60696,1035232,1162597,Necromancer Necromancer Caucus Documentation User,NULL,NULL,0,NULL,NULL 60697,60916,51357,NULL,NULL,NULL,0,NULL,NULL 60698,570167,842594,NULL,NULL,NULL,0,NULL,NULL 60699,92054,649237,NULL,NULL,NULL,0,NULL,NULL 60700,128219,403507,Yearling Guru,NULL,NULL,0,NULL,NULL 60701,308294,684384,NULL,NULL,NULL,0,NULL,NULL 60702,746597,1305816,Good Answer,NULL,NULL,0,NULL,NULL 60703,838632,545291,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60704,314751,448476,NULL,NULL,NULL,0,NULL,NULL 60705,43432,1065493,Revival Necromancer Critic Revival,NULL,NULL,0,NULL,NULL 60706,925581,938755,NULL,NULL,NULL,0,NULL,NULL 60707,193134,1310262,NULL,NULL,NULL,0,NULL,NULL 60708,39640,409149,Good Answer Good Answer Yearling Announcer Necromancer Yearling Guru Excavator Yearling,NULL,NULL,0,NULL,NULL 60709,181022,587894,Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 60710,1230362,1066335,NULL,NULL,NULL,0,NULL,NULL 60711,1372042,1126139,Popular Question Yearling,NULL,NULL,0,NULL,NULL 60712,1681744,795588,NULL,NULL,NULL,0,NULL,NULL 60713,2941405,350195,Scholar Yearling Notable Question Curious Commentator Good Answer Yearling Autobiographer Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 60714,118776,350195,Scholar Yearling Notable Question Curious Commentator Good Answer Yearling Autobiographer Nice Answer Popular Question Announcer,NULL,NULL,0,NULL,NULL 60715,407834,954281,NULL,NULL,NULL,0,NULL,NULL 60716,358158,543071,Necromancer Tumbleweed Student Scholar Critic Informed Yearling,NULL,NULL,0,NULL,NULL 60717,83741,799233,NULL,NULL,NULL,0,NULL,NULL 60718,556344,720213,Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 60719,325720,831480,Supporter,NULL,NULL,0,NULL,NULL 60720,16930,1280943,NULL,NULL,NULL,0,NULL,NULL 60721,625207,488972,NULL,NULL,NULL,0,NULL,NULL 60722,39223,1214181,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60723,286620,213645,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60724,409373,967986,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 60725,126993,188866,Popular Question,NULL,NULL,0,NULL,NULL 60726,1139309,1434776,NULL,NULL,NULL,0,NULL,NULL 60727,1565958,997815,NULL,NULL,NULL,0,NULL,NULL 60728,48233,26410,NULL,NULL,NULL,0,NULL,NULL 60729,136837,176060,Nice Answer Notable Question Guru Yearling Guru Popular Question Caucus Constituent Yearling Census Custodian Necromancer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60730,371566,692425,NULL,NULL,NULL,0,NULL,NULL 60731,4399695,333140,NULL,NULL,NULL,0,NULL,NULL 60732,6798850,333140,NULL,NULL,NULL,0,NULL,NULL 60733,1424604,1354643,NULL,NULL,NULL,0,NULL,NULL 60734,256985,382177,Good Answer Nice Answer Good Answer Revival Yearling Popular Question Necromancer Revival Yearling Self-Learner Necromancer Revival Custodian Popular Question Nice Answer Yearling Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 60735,115510,216842,Nice Question,NULL,NULL,0,NULL,NULL 60736,893473,1286449,NULL,NULL,NULL,0,NULL,NULL 60737,689994,1343711,Supporter Necromancer,NULL,NULL,0,NULL,NULL 60738,702521,280842,Popular Question Yearling Famous Question Necromancer Good Question Notable Question javascript Notable Question Necromancer Custodian Yearling Revival Good Question Announcer Nice Answer Popular Question Famous Question Popular Question Documentation User Popular Question Famous Question Announcer Nice Answer Yearling Nice Question Nice Question Taxonomist Notable Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 60739,83201,153424,Popular Question Self-Learner Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 60740,483324,989650,NULL,NULL,NULL,0,NULL,NULL 60741,10596413,1150810,Informed Notable Question Necromancer Yearling Caucus Tumbleweed Popular Question Notable Question Nice Question Documentation User Custodian,NULL,NULL,0,NULL,NULL 60742,189166,1150810,Informed Notable Question Necromancer Yearling Caucus Tumbleweed Popular Question Notable Question Nice Question Documentation User Custodian,NULL,NULL,0,NULL,NULL 60743,156421,577452,NULL,NULL,NULL,0,NULL,NULL 60744,303549,1557629,NULL,NULL,NULL,0,NULL,NULL 60745,6730,1017511,Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 60746,3352759,246162,Yearling Editor Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 60747,33097,246162,Yearling Editor Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 60748,106687,619292,Yearling Popular Question Yearling Famous Question Great Question Yearling Good Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 60749,3189659,1233808,NULL,NULL,NULL,0,NULL,NULL 60750,260845,922165,Good Question Teacher Revival Yearling Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 60751,264941,1314136,NULL,NULL,NULL,0,NULL,NULL 60752,187395,10601,Good Answer Inquisitive Good Answer Self-Learner Great Question Yearling Nice Answer Revival Stellar Question Nice Answer Nice Answer Notable Question Great Question Yearling Nice Question Nice Question Popular Question Nice Answer Enlightened Notable Question Announcer Popular Question Popular Question Good Answer Nice Question Good Question Guru Yearling Great Answer Popular Question Good Question,NULL,NULL,0,NULL,NULL 60753,760109,917708,Editor Popular Question,NULL,NULL,0,NULL,NULL 60754,74709,154687,NULL,NULL,NULL,0,NULL,NULL 60755,266492,403727,Popular Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 60756,3395368,612633,NULL,NULL,NULL,0,NULL,NULL 60757,97939,999311,Notable Question Scholar,NULL,NULL,0,NULL,NULL 60758,70618,316545,Yearling Good Answer Organizer Yearling Nice Answer Enlightened ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 60759,108758,203211,Critic Popular Question Inquisitive Informed Yearling Notable Question Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Caucus Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 60760,559241,20264,Scholar Editor Popular Question,NULL,NULL,0,NULL,NULL 60761,18304,112196,Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Guru Good Answer Nice Answer Enlightened Notable Question Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened c# Good Answer Yearling Revival Announcer Good Answer,NULL,NULL,0,NULL,NULL 60762,2171678,112196,Good Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Guru Good Answer Nice Answer Enlightened Notable Question Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened c# Good Answer Yearling Revival Announcer Good Answer,NULL,NULL,0,NULL,NULL 60763,726224,1391437,NULL,NULL,NULL,0,NULL,NULL 60764,205193,823360,NULL,NULL,NULL,0,NULL,NULL 60765,300693,490672,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 60766,138430,602053,Revival Revival Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 60767,203329,204388,Good Answer Yearling Guru Critic Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 60768,207499,1440272,NULL,NULL,NULL,0,NULL,NULL 60769,674673,1484411,Yearling Excavator Necromancer Popular Question Enthusiast Census Caucus,NULL,NULL,0,NULL,NULL 60770,6816770,568396,NULL,NULL,NULL,0,NULL,NULL 60771,364812,498121,NULL,NULL,NULL,0,NULL,NULL 60772,2101811,1469360,NULL,NULL,NULL,0,NULL,NULL 60773,1074578,1469360,NULL,NULL,NULL,0,NULL,NULL 60774,548726,468884,NULL,NULL,NULL,0,NULL,NULL 60775,527781,943659,NULL,NULL,NULL,0,NULL,NULL 60776,786137,495907,Commentator Citizen Patrol,NULL,NULL,0,NULL,NULL 60777,208494,858600,NULL,NULL,NULL,0,NULL,NULL 60778,59751,1256688,NULL,NULL,NULL,0,NULL,NULL 60779,446799,502174,NULL,NULL,NULL,0,NULL,NULL 60780,3254064,1105235,Good Answer Nice Question Nice Question Custodian Nice Question Famous Question Notable Question Nice Question Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 60781,1674914,1105235,Good Answer Nice Question Nice Question Custodian Nice Question Famous Question Notable Question Nice Question Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 60782,242015,574206,Tumbleweed,NULL,NULL,0,NULL,NULL 60783,321435,910393,NULL,NULL,NULL,0,NULL,NULL 60784,195672,1134973,Supporter Informed Editor Autobiographer Explainer Excavator Necromancer,NULL,NULL,0,NULL,NULL 60785,309480,1176448,Yearling Nice Answer Revival Caucus Yearling Caucus Constituent Announcer Caucus Constituent,NULL,NULL,0,NULL,NULL 60786,1023437,1108885,NULL,NULL,NULL,0,NULL,NULL 60787,98343,34020,NULL,NULL,NULL,0,NULL,NULL 60788,226221,597793,Autobiographer,NULL,NULL,0,NULL,NULL 60789,181622,320279,NULL,NULL,NULL,0,NULL,NULL 60790,1117614,787196,NULL,NULL,NULL,0,NULL,NULL 60791,781647,446821,NULL,NULL,NULL,0,NULL,NULL 60792,7454794,446821,NULL,NULL,NULL,0,NULL,NULL 60793,1198455,958490,Popular Question Popular Question Announcer Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Caucus Nice Answer Popular Question Popular Question Caucus Notable Question Necromancer Revival Yearling Nice Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 60794,700527,874648,NULL,NULL,NULL,0,NULL,NULL 60795,919493,1160311,NULL,NULL,NULL,0,NULL,NULL 60796,3919722,69420,NULL,NULL,NULL,0,NULL,NULL 60797,51927,20464,NULL,NULL,NULL,0,NULL,NULL 60798,23537,130076,NULL,NULL,NULL,0,NULL,NULL 60799,213771,686334,Enthusiast Supporter Self-Learner Editor Promoter Commentator Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 60800,281254,965672,NULL,NULL,NULL,0,NULL,NULL 60801,141705,732529,Revival Yearling,NULL,NULL,0,NULL,NULL 60802,8481188,822115,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60803,148787,81342,Popular Question Yearling,NULL,NULL,0,NULL,NULL 60804,116608,698335,NULL,NULL,NULL,0,NULL,NULL 60805,386474,106520,Notable Question,NULL,NULL,0,NULL,NULL 60806,4017890,234504,NULL,NULL,NULL,0,NULL,NULL 60807,362272,234504,NULL,NULL,NULL,0,NULL,NULL 60808,84624,1069307,Announcer Supporter Autobiographer Necromancer Caucus Critic Caucus Editor,NULL,NULL,0,NULL,NULL 60809,56762,287070,Yearling Favorite Question Nice Answer Enlightened Yearling Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 60810,69975,1211914,NULL,NULL,NULL,0,NULL,NULL 60811,63995,1518719,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 60812,8744255,1277985,NULL,NULL,NULL,0,NULL,NULL 60813,76930,1277985,NULL,NULL,NULL,0,NULL,NULL 60814,1103659,76644,Yearling Popular Question Popular Question Notable Question Tumbleweed Popular Question Revival Necromancer,NULL,NULL,0,NULL,NULL 60815,124524,82978,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60816,10534464,868136,NULL,NULL,NULL,0,NULL,NULL 60817,74344,116042,Yearling Popular Question Yearling Nice Answer Enlightened Critic,NULL,NULL,0,NULL,NULL 60818,114985,10407,Excavator Great Question Yearling Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 60819,38421,20971,Popular Question Notable Question Nice Question Popular Question Yearling Revival Notable Question Popular Question Notable Question Yearling Documentation User Famous Question Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 60820,76487,620989,NULL,NULL,NULL,0,NULL,NULL 60821,150580,364342,NULL,NULL,NULL,0,NULL,NULL 60822,205278,484190,Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 60823,63359,183140,Custodian Proofreader Yearling Excavator Custodian Citizen Patrol Informed Yearling Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 60824,158810,13472,NULL,NULL,NULL,0,NULL,NULL 60825,23982,384162,Good Answer Yearling Editor Excavator,NULL,NULL,0,NULL,NULL 60826,1373707,77350,Teacher,NULL,NULL,0,NULL,NULL 60827,44764,266795,Nice Answer Nice Answer Yearling Nice Answer Enlightened Good Answer Good Answer Good Answer Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer docker Nice Answer Nice Answer Enlightened Populist Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Necromancer Popular Question Popular Question Guru Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Necromancer Nice Question Notable Question asynchronous Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Great Answer Good Answer Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened pug Guru Great Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Populist Yearling Guru Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Guru Nice Answer Popular Question Good Answer Good Answer Nice Answer Enlightened Populist Announcer Nice Answer Enlightened Guru Nice Answer Enlightened jquery Guru Guru Custodian Necromancer Nice Answer Good Answer Good Answer Nice Answer Enlightened Announcer Necromancer Good Answer Good Answer Famous Question Nice Answer Enlightened Guru Announcer Census Guru Guru Yearling Nice Answer Nice Question Nice Answer Enlightened http Nice Answer Enlightened Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Guru Good Answer Popular Question Good Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened socket.io Great Answer linux Nice Answer Enlightened Nice Question Nice Answer Nice Answer Enlightened Nice Answer Peer Pressure Good Answer Good Answer,NULL,pBecause codehttps github com visionmedia express code is the URL of web page and not an npm module Use this flavor ppre class lang none prettyprint override codegit https git com visionmedia express git code prepor this flavor if you need SSH ppre class lang none prettyprint override codegit ssh git com visionmedia express git code pre You require it just by its base name the same as if it were from npm const reponame require reponame On disk the module does NOT end up in directory matching the github username they all just go in flat list directly in node modules pOK it been while and this is popular question so ve gone ahead and created scaffolding github repository with JavaScript code and long README about how like to structure medium sized express js application pp href https github com focusaurus express code structure rel noreferrer focusaurus express code structure is the repo with the latest code for this Pull requests welcome ppHere snapshot of the README since stackoverflow doesn like just link answers ll make some updates as this is new project that ll continue updating but ultimately the github repo will be the up to date place for this information phrh1Express Code Structure h1pThis project is an example of how to organize medium sized express js web application pp strongCurrent to at least express v4 14 December 2016 strong pp href https semaphoreci com focusaurus express code structure rel noreferrer img src https semaphoreci com api v1 projects 0de47c2f 0e4f 4a47 8822 5913023312e1 681770 badge svg alt Build Status pp href https github com feross standard rel noreferrer img src https cdn rawgit com feross standard master badge svg alt js standard style ph2How big is your application h2pWeb applications are not all the same and there not in my opinion single code structure that should be applied to all express js applications ppIf your application is small you don need such deep directory structure as exemplified here Just keep it simple and stick handful of code js code files in the root of your repository and you re done Voilà ppIf your application is huge at some point you need to break it up into distinct npm packages In general the node js approach seems to favor many small packages at least for libraries and you should build your application up by using several npm packages as that starts to make sense and justify the overhead So as your application grows and some portion of the code becomes clearly reusable outside of your application or is clear subsystem move it to it own git repository and make it into standalone npm package pp strongSo strong the focus of this project is to illustrate workable structure for medium sized application ph2What is your overall architecture h2pThere are many approaches to building web application such as pulliServer Side MVC la Ruby on Rails liliSingle Page Application style la MongoDB Express Angular Node MEAN liliBasic web site with some forms liliModels Operations Views Events style la href http cirw in blog time to move on html rel noreferrer MVC is dead it time to MOVE on liliand many others both current and historical li ulpEach of these fits nicely into different directory structure For the purposes of this example it just scaffolding and not fully working app but assuming the following key architecture points pulliThe site has some traditional static pages templates liliThe application portion of the site is developed as Single Page Application style liliThe application exposes REST JSON style API to the browser liliThe app models simple business domain in this case it car dealership application li ulh2And what about Ruby on Rails h2pIt will be theme throughout this project that many of the ideas embodied in Ruby on Rails and the Convention over Configuration decisions they have adopted though widely accepted and used are not actually very helpful and sometimes are the opposite of what this repository recommends ppMy main point here is that there are underlying principles to organizing code and based on those principles the Ruby on Rails conventions make sense mostly for the Ruby on Rails community However just thoughtlessly aping those conventions misses the point Once you grok the basic principles ALL of your projects will be well organized and clear shell scripts games mobile apps enterprise projects even your home directory ppFor the Rails community they want to be able to have single Rails developer switch from app to app to app and be familiar and comfortable with it each time This makes great sense if you are 37 signals or Pivotal Labs and has benefits In the server side JavaScript world the overall ethos is just way more wild west anything goes and we don really have problem with that That how we roll We re used to it Even within express js it close kin of Sinatra not Rails and taking conventions from Rails is usually not helping anything even say strongPrinciples over Convention over Configuration strong ph2Underlying Principles and Motivations h2ulliBe mentally manageableulliThe brain can only deal with and think about small number of related things at once That why we use directories It helps us deal with complexity by focusing on small portions li ul liliBe size appropriateulliDon create Mansion Directories where there just file all alone directories down You can see this happening in the href http www ansibleworks com docs playbooks best practices html rel noreferrer Ansible Best Practices that shames small projects into creating 10 directories to hold 10 files when directory with files would be much more appropriate You don drive bus to work unless you re bus driver but even then your driving bus AT work not TO work so don create filesystem structures that aren justified by the actual files inside them li ul liliBe modular but pragmaticulliThe node community overall favors small modules Anything that can cleanly be separated out from your app entirely should be extracted into module either for internal use or publicly published on npm However for the medium sized applications that are the scope here the overhead of this can add tedium to your workflow without commensurate value So for the time when you have some code that is factored out but not enough to justify completely separate npm module just consider it strongproto module strong with the expectation that when it crosses some size threshold it would be extracted out liliSome folks such as href https twitter com hij1nx rel noreferrer even include an codeapp node modules code directory and have codepackage json code files in the strongproto module strong directories to facilitate that transition and act as reminder li ul liliBe easy to locate codeulliGiven feature to build or bug to fix our goal is that developer has no struggle locating the source files involved liliNames are meaningful and accurate lilicrufty code is fully removed not left around in an orphan file or just commented out li ul liliBe search friendlyulliall first party source code is in the codeapp code directory so you can codecd code there are run find grep xargs ag ack etc and not be distracted by third party matches li ul liliUse simple and obvious namingullinpm now seems to require all lowercase package names find this mostly terrible but must follow the herd thus filenames should use codekebab case code even though the variable name for that in JavaScript must be codecamelCase code because code code is minus sign in JavaScript lilivariable name matches the basename of the module path but with codekebab case code transformed to codecamelCase code li ul liliGroup by Coupling Not by FunctionulliThis is major departure from the Ruby on Rails convention of codeapp views code codeapp controllers code codeapp models code etc liliFeatures get added to full stack so want to focus on full stack of files that are relevant to my feature When adding telephone number field to the user model don care about any controller other than the user controller and don care about any model other than the user model liliSo instead of editing files that are each in their own directory and ignoring tons of other files in those directories this repository is organized such that all the files need to build feature are colocated liliBy the nature of MVC the user view is coupled to the user controller which is coupled to the user model So when change the user model those files will often change together but the deals controller or customer controller are decoupled and thus not involved Same applies to non MVC designs usually as well liliMVC or MOVE style decoupling in terms of which code goes in which module is still encouraged but spreading the MVC files out into sibling directories is just annoying liliThus each of my routes files has the portion of the routes it owns rails style coderoutes rb code file is handy if you want an overview of all routes in the app but when actually building features and fixing bugs you only care about the routes relevant to the piece you are changing li ul liliStore tests next to the codeulliThis is just an instance of group by coupling but wanted to call it out specifically ve written many projects where the tests live under parallel filesystem called tests and now that ve started putting my tests in the same directory as their corresponding code never going back This is more modular and much easier to work with in text editors and alleviates lot of the path nonsense If you are in doubt try it on few projects and decide for yourself not going to do anything beyond this to convince you that it better li ul liliReduce cross cutting coupling with EventsulliIt easy to think OK whenever new Deal is created want to send an email to all the Salespeople and then just put the code to send those emails in the route that creates deals liliHowever this coupling will eventually turn your app into giant ball of mud liliInstead the DealModel should just fire create event and be entirely unaware of what else the system might do in response to that liliWhen you code this way it becomes much more possible to put all the user related code into codeapp users code because there not rat nest of coupled business logic all over the place polluting the purity of the user code base li ul liliCode flow is followableulliDon do magic things Don autoload files from magic directories in the filesystem Don be Rails The app starts at codeapp server js code and you can see everything it loads and executes by following the code liliDon make DSLs for your routes Don do silly metaprogramming when it is not called for liliIf your app is so big that doing codemagicRESTRouter route somecontroller except POST code is big win for you over basic codeapp get code codeapp put code codeapp del code calls you re probably building monolithic app that is too big to effectively work on Get fancy for BIG wins not for converting simple lines to complex line li ul lili pUse lower kebab case filenames pulliThis format avoids filesystem case sensitivity issues across platforms lilinpm forbids uppercase in new package names and this works well with thath2express js specifics h2 li ul lili pDon use codeapp configure code It almost entirely useless and you just don need it It is in lots of boilerplate due to mindless copypasta liliTHE ORDER OF MIDDLEWARE AND ROUTES IN EXPRESS MATTERS ulliAlmost every routing problem see on stackoverflow is out of order express middleware liliIn general you want your routes decoupled and not relying on order that much liliDon use codeapp use code for your entire application if you really only need that middleware for routes looking at you codebody parser code liliMake sure when all is said and done you have EXACTLY this order olliAny super important application wide middleware liliAll your routes and assorted route middlewares liliTHEN error handlers li ol li ul liliSadly being sinatra inspired express js mostly assumes all your routes will be in codeserver js code and it will be clear how they are ordered For medium sized application breaking things out into separate routes modules is nice but it does introduce peril of out of order middleware li ulh2The app symlink trick h2pThere are many approaches outlined and discussed at length by the community in the great gist href https gist github com branneman 8048520 rel noreferrer Better local require paths for Node js may soon decide to prefer either just deal with lots of or use the href https github com DSKrepps requireFrom rel noreferrer requireFrom modlue However at the moment ve been using the symlink trick detailed below ppSo one way to avoid intra project requires with annoying relative paths like coderequire config code is to use the following trick pullicreate symlink under node modules for your appullicd node modules amp amp ln nsf app li ul liliadd strongjust the node modules app symlink itself strong not the entire node modules folder to gitulligit add node modules app liliYes you should still have node modules in your code gitignore code file liliNo you should not put node modules into your git repository Some people will recommend you do this They are incorrect li ul liliNow you can require intra project modules using this prefixulli codevar config require app config code lili codevar DealModel require app deals deal model code li ul liliBasically this makes intra project requires work very similarly to requires for external npm modules liliSorry Windows users you need to stick with parent directory relative paths li ulh2Configuration h2pGenerally code modules and classes to expect only basic JavaScript codeoptions code object passed in Only codeapp server js code should load the codeapp config js code module From there it can synthesize small codeoptions code objects to configure subsystems as needed but coupling every subsystem to big global config module full of extra information is bad coupling ppTry to centralize creation of DB connections and pass those into subsystems as opposed to passing connection parameters and having subsystems make outgoing connections themselves ph3NODE ENV h3pThis is another enticing but terrible idea carried over from Rails There should be exactly place in your app codeapp config js code that looks at the codeNODE ENV code environment variable Everything else should take an explicit option as class constructor argument or module configuration parameter ppIf the email module has an option as to how to deliver emails SMTP log to stdout put in queue etc it should take an option like code deliver stdout code but it should absolutely not check codeNODE ENV code ph2Tests h2pI now keep my test files in the same directory as their corresponding code and use filename extension naming conventions to distinguish tests from production code pulli codefoo js code has the module foo code lili codefoo tape js code has the node based tests for foo and lives in the same dir lili codefoo btape js code can be used for tests that need to execute in browser environment li ulpI use filesystem globs and the codefind name tape js code command to get access to all my tests as necessary ph2How to organize code within each code js code module file h2pThis project scope is mostly about where files and directories go and don want to add much other scope but ll just mention that organize my code into distinct sections polliOpening block of CommonJS require calls to state dependencies liliMain code block of pure JavaScript No CommonJS pollution in here Don reference exports module or require liliClosing block of CommonJS to set up exports li ol Authentication is typically cross cutting application wide concern and therefore should not be stored within directory specific to particular model If you can imagine successfully changing your authentication logic while leaving your CRUD account logic unchanged they don belong in the same directory Generally name my model specific folders the plural of the model like app accounts pOK it been while and this is popular question so ve gone ahead and created scaffolding github repository with JavaScript code and long README about how like to structure medium sized express js application pp href https github com focusaurus express code structure rel noreferrer focusaurus express code structure is the repo with the latest code for this Pull requests welcome ppHere snapshot of the README since stackoverflow doesn like just link answers ll make some updates as this is new project that ll continue updating but ultimately the github repo will be the up to date place for this information phrh1Express Code Structure h1pThis project is an example of how to organize medium sized express js web application pp strongCurrent to at least express v4 14 December 2016 strong pp href https semaphoreci com focusaurus express code structure rel noreferrer img src https semaphoreci com api v1 projects 0de47c2f 0e4f 4a47 8822 5913023312e1 681770 badge svg alt Build Status pp href https github com feross standard rel noreferrer img src https cdn rawgit com feross standard master badge svg alt js standard style ph2How big is your application h2pWeb applications are not all the same and there not in my opinion single code structure that should be applied to all express js applications ppIf your application is small you don need such deep directory structure as exemplified here Just keep it simple and stick handful of code js code files in the root of your repository and you re done Voilà ppIf your application is huge at some point you need to break it up into distinct npm packages In general the node js approach seems to favor many small packages at least for libraries and you should build your application up by using several npm packages as that starts to make sense and justify the overhead So as your application grows and some portion of the code becomes clearly reusable outside of your application or is clear subsystem move it to it own git repository and make it into standalone npm package pp strongSo strong the focus of this project is to illustrate workable structure for medium sized application ph2What is your overall architecture h2pThere are many approaches to building web application such as pulliServer Side MVC la Ruby on Rails liliSingle Page Application style la MongoDB Express Angular Node MEAN liliBasic web site with some forms liliModels Operations Views Events style la href http cirw in blog time to move on html rel noreferrer MVC is dead it time to MOVE on liliand many others both current and historical li ulpEach of these fits nicely into different directory structure For the purposes of this example it just scaffolding and not fully working app but assuming the following key architecture points pulliThe site has some traditional static pages templates liliThe application portion of the site is developed as Single Page Application style liliThe application exposes REST JSON style API to the browser liliThe app models simple business domain in this case it car dealership application li ulh2And what about Ruby on Rails h2pIt will be theme throughout this project that many of the ideas embodied in Ruby on Rails and the Convention over Configuration decisions they have adopted though widely accepted and used are not actually very helpful and sometimes are the opposite of what this repository recommends ppMy main point here is that there are underlying principles to organizing code and based on those principles the Ruby on Rails conventions make sense mostly for the Ruby on Rails community However just thoughtlessly aping those conventions misses the point Once you grok the basic principles ALL of your projects will be well organized and clear shell scripts games mobile apps enterprise projects even your home directory ppFor the Rails community they want to be able to have single Rails developer switch from app to app to app and be familiar and comfortable with it each time This makes great sense if you are 37 signals or Pivotal Labs and has benefits In the server side JavaScript world the overall ethos is just way more wild west anything goes and we don really have problem with that That how we roll We re used to it Even within express js it close kin of Sinatra not Rails and taking conventions from Rails is usually not helping anything even say strongPrinciples over Convention over Configuration strong ph2Underlying Principles and Motivations h2ulliBe mentally manageableulliThe brain can only deal with and think about small number of related things at once That why we use directories It helps us deal with complexity by focusing on small portions li ul liliBe size appropriateulliDon create Mansion Directories where there just file all alone directories down You can see this happening in the href http www ansibleworks com docs playbooks best practices html rel noreferrer Ansible Best Practices that shames small projects into creating 10 directories to hold 10 files when directory with files would be much more appropriate You don drive bus to work unless you re bus driver but even then your driving bus AT work not TO work so don create filesystem structures that aren justified by the actual files inside them li ul liliBe modular but pragmaticulliThe node community overall favors small modules Anything that can cleanly be separated out from your app entirely should be extracted into module either for internal use or publicly published on npm However for the medium sized applications that are the scope here the overhead of this can add tedium to your workflow without commensurate value So for the time when you have some code that is factored out but not enough to justify completely separate npm module just consider it strongproto module strong with the expectation that when it crosses some size threshold it would be extracted out liliSome folks such as href https twitter com hij1nx rel noreferrer even include an codeapp node modules code directory and have codepackage json code files in the strongproto module strong directories to facilitate that transition and act as reminder li ul liliBe easy to locate codeulliGiven feature to build or bug to fix our goal is that developer has no struggle locating the source files involved liliNames are meaningful and accurate lilicrufty code is fully removed not left around in an orphan file or just commented out li ul liliBe search friendlyulliall first party source code is in the codeapp code directory so you can codecd code there are run find grep xargs ag ack etc and not be distracted by third party matches li ul liliUse simple and obvious namingullinpm now seems to require all lowercase package names find this mostly terrible but must follow the herd thus filenames should use codekebab case code even though the variable name for that in JavaScript must be codecamelCase code because code code is minus sign in JavaScript lilivariable name matches the basename of the module path but with codekebab case code transformed to codecamelCase code li ul liliGroup by Coupling Not by FunctionulliThis is major departure from the Ruby on Rails convention of codeapp views code codeapp controllers code codeapp models code etc liliFeatures get added to full stack so want to focus on full stack of files that are relevant to my feature When adding telephone number field to the user model don care about any controller other than the user controller and don care about any model other than the user model liliSo instead of editing files that are each in their own directory and ignoring tons of other files in those directories this repository is organized such that all the files need to build feature are colocated liliBy the nature of MVC the user view is coupled to the user controller which is coupled to the user model So when change the user model those files will often change together but the deals controller or customer controller are decoupled and thus not involved Same applies to non MVC designs usually as well liliMVC or MOVE style decoupling in terms of which code goes in which module is still encouraged but spreading the MVC files out into sibling directories is just annoying liliThus each of my routes files has the portion of the routes it owns rails style coderoutes rb code file is handy if you want an overview of all routes in the app but when actually building features and fixing bugs you only care about the routes relevant to the piece you are changing li ul liliStore tests next to the codeulliThis is just an instance of group by coupling but wanted to call it out specifically ve written many projects where the tests live under parallel filesystem called tests and now that ve started putting my tests in the same directory as their corresponding code never going back This is more modular and much easier to work with in text editors and alleviates lot of the path nonsense If you are in doubt try it on few projects and decide for yourself not going to do anything beyond this to convince you that it better li ul liliReduce cross cutting coupling with EventsulliIt easy to think OK whenever new Deal is created want to send an email to all the Salespeople and then just put the code to send those emails in the route that creates deals liliHowever this coupling will eventually turn your app into giant ball of mud liliInstead the DealModel should just fire create event and be entirely unaware of what else the system might do in response to that liliWhen you code this way it becomes much more possible to put all the user related code into codeapp users code because there not rat nest of coupled business logic all over the place polluting the purity of the user code base li ul liliCode flow is followableulliDon do magic things Don autoload files from magic directories in the filesystem Don be Rails The app starts at codeapp server js code and you can see everything it loads and executes by following the code liliDon make DSLs for your routes Don do silly metaprogramming when it is not called for liliIf your app is so big that doing codemagicRESTRouter route somecontroller except POST code is big win for you over basic codeapp get code codeapp put code codeapp del code calls you re probably building monolithic app that is too big to effectively work on Get fancy for BIG wins not for converting simple lines to complex line li ul lili pUse lower kebab case filenames pulliThis format avoids filesystem case sensitivity issues across platforms lilinpm forbids uppercase in new package names and this works well with thath2express js specifics h2 li ul lili pDon use codeapp configure code It almost entirely useless and you just don need it It is in lots of boilerplate due to mindless copypasta liliTHE ORDER OF MIDDLEWARE AND ROUTES IN EXPRESS MATTERS ulliAlmost every routing problem see on stackoverflow is out of order express middleware liliIn general you want your routes decoupled and not relying on order that much liliDon use codeapp use code for your entire application if you really only need that middleware for routes looking at you codebody parser code liliMake sure when all is said and done you have EXACTLY this order olliAny super important application wide middleware liliAll your routes and assorted route middlewares liliTHEN error handlers li ol li ul liliSadly being sinatra inspired express js mostly assumes all your routes will be in codeserver js code and it will be clear how they are ordered For medium sized application breaking things out into separate routes modules is nice but it does introduce peril of out of order middleware li ulh2The app symlink trick h2pThere are many approaches outlined and discussed at length by the community in the great gist href https gist github com branneman 8048520 rel noreferrer Better local require paths for Node js may soon decide to prefer either just deal with lots of or use the href https github com DSKrepps requireFrom rel noreferrer requireFrom modlue However at the moment ve been using the symlink trick detailed below ppSo one way to avoid intra project requires with annoying relative paths like coderequire config code is to use the following trick pullicreate symlink under node modules for your appullicd node modules amp amp ln nsf app li ul liliadd strongjust the node modules app symlink itself strong not the entire node modules folder to gitulligit add node modules app liliYes you should still have node modules in your code gitignore code file liliNo you should not put node modules into your git repository Some people will recommend you do this They are incorrect li ul liliNow you can require intra project modules using this prefixulli codevar config require app config code lili codevar DealModel require app deals deal model code li ul liliBasically this makes intra project requires work very similarly to requires for external npm modules liliSorry Windows users you need to stick with parent directory relative paths li ulh2Configuration h2pGenerally code modules and classes to expect only basic JavaScript codeoptions code object passed in Only codeapp server js code should load the codeapp config js code module From there it can synthesize small codeoptions code objects to configure subsystems as needed but coupling every subsystem to big global config module full of extra information is bad coupling ppTry to centralize creation of DB connections and pass those into subsystems as opposed to passing connection parameters and having subsystems make outgoing connections themselves ph3NODE ENV h3pThis is another enticing but terrible idea carried over from Rails There should be exactly place in your app codeapp config js code that looks at the codeNODE ENV code environment variable Everything else should take an explicit option as class constructor argument or module configuration parameter ppIf the email module has an option as to how to deliver emails SMTP log to stdout put in queue etc it should take an option like code deliver stdout code but it should absolutely not check codeNODE ENV code ph2Tests h2pI now keep my test files in the same directory as their corresponding code and use filename extension naming conventions to distinguish tests from production code pulli codefoo js code has the module foo code lili codefoo tape js code has the node based tests for foo and lives in the same dir lili codefoo btape js code can be used for tests that need to execute in browser environment li ulpI use filesystem globs and the codefind name tape js code command to get access to all my tests as necessary ph2How to organize code within each code js code module file h2pThis project scope is mostly about where files and directories go and don want to add much other scope but ll just mention that organize my code into distinct sections polliOpening block of CommonJS require calls to state dependencies liliMain code block of pure JavaScript No CommonJS pollution in here Don reference exports module or require liliClosing block of CommonJS to set up exports li ol That fine but probably have app auth js sitting in the top level app directory do require accounts account model as think in require is usually but not always code smell indicating poor organization boundaries olli pThe protocol is available as codereq protocol code href http expressjs com api html req protocol docs here polliBefore express the protocol you can assume to be codehttp code unless you see that codereq get Forwarded Protocol code is set and has the value codehttps code in which case you know that your protocol li ol lili pThe host comes from codereq get host code as Gopal has indicated lili pHopefully you don need non standard port in your URLs but if you did need to know it you have it in your application state because it whatever you passed to codeapp listen code at server startup time However in the case of local development on non standard port Chrome seems to include the port in the host header so codereq get host code returns codelocalhost 3000 code for example So at least for the cases of production site on standard port and browsing directly to your express app without reverse proxy the codehost code header seems to do the right thing regarding the port in the URL lili pThe path comes from codereq originalUrl code thanks Note this DOES include the query string href http expressjs com api html req originalUrl docs here on req url and req originalUrl Depending on what you intend to do with the URL codeoriginalUrl code may or may not be the correct value as compared to codereq url code li olpCombine those all together to reconstruct the absolute URL ppre code var fullUrl req protocol req get host req originalUrl code pre please post that as separate question strongUPDATE 2013 10 29 strong Please see my other answer as well whic,,, " has JavaScript instead of CoffeeScript by popular demand as well as boilerplate github repo and an extensive README detailing my latest recommendations on this topic pp strongConfig strong ppWhat you are doing is fine like to have my own config namespace set up in top level codeconfig coffee code file with nested namespace like this ppre code Set the current environment to true in the env objectcurrentEnv process env NODE ENV or development exports appName MyApp exports env production false staging false test false development falseexports env currentEnv trueexports log path dirname var log app currentEnv log exports server port 9600 In staging and production listen loopback nginx listens on the network ip 127 if currentEnv not in production staging exports enableTests true Listen on all IPs in dev test for testing from other machines exports server ip exports db URL mongodb localhost 27017 exports appName toLowerCase currentEnv code prepThis is friendly for sysadmin editing Then when need something like the DB connection info it ppre coderequire config db URL code prep strongRoutes Controllers strong ppI like to leave my routes with my controllers and organize them in an codeapp controllers code subdirectory Then can load them up and let them add whatever routes they need ppIn my codeapp server coffee code coffeescript file do ppre code api authorization authentication domains users stylesheets javascripts tests sales map controllerName gt controller require controllers controllerName controller setup app code prepSo have files like ppre codeapp controllers api coffeeapp controllers authorization coffeeapp controllers authentication coffeeapp controllers domains coffee code prepAnd for example in my domains controller have codesetup code function like this ppre codeexports setup app gt controller new exports DomainController route domains app post route controller create app put route api needId app delete route api needId route domains id app put route controller loadDomain controller update app del route controller loadDomain exports delete app get route controller loadDomain req res gt res sendJSON req domain status OK code prep strongViews strong ppPutting views in codeapp views code is becoming the customary place lay it out like this ppre codeapp views layout jadeapp views about jadeapp views user EditUser jadeapp views domain EditDomain jade code prep strongStatic Files strong ppGo in codepublic code subdirectory pp strongGithub Semver NPM strong ppPut README md markdown file at your git repo root for github ppPut package json file with href http semver org semantic version number in your git repo root for NPM In that file ve only defined the DomainController constructor function as property of the exports object so need that prefix to refer to it properly Defining it as property of exports makes it available to code outside the file It part of the CommonJS module system that node js uses Note there version of this answer coded in regular JavaScript which you should probably refer to as the CoffeeScript fad has ended""",nice answer nice answer yearle nice answer enlighten good answer good answer good answer revival nice answer enlighten nice answer enlighten nice answer nice answer enlighten nice answer enlighten good answer nice answer enlighten nice answer enlighten good answer docker nice answer nice answer enlighten populist nice answer nice answer enlighten good answer good answer nice answer necromancer popular question popular question guru great answer good answer nice answer enlighten nice answer enlighten nice answer enlighten popular question nice answer necromancer nice question notable question asynchronous great answer nice answer enlighten good answer nice answer enlighten nice answer guru great answer good answer necromancer good answer nice answer enlighten nice answer enlighten nice answer enlighten pug guru great answer nice answer enlighten nice answer good answer good answer nice answer enlighten good answer nice answer enlighten good answer populist yearle guru nice answer good answer nice answer good answer nice answer nice answer good answer nice answer nice answer enlighten guru good answer guru nice answer popular question good answer good answer nice answer enlighten populist announcer nice answer enlighten guru nice answer enlighten jquery guru guru custodian necromancer nice answer good answer good answer nice answer enlighten announcer necromancer good answer good answer famous question nice answer enlighten guru announcer census guru guru yearle nice answer nice question nice answer enlighten http nice answer enlighten revival nice answer enlighten nice answer enlighten nice answer guru good answer good answer guru good answer popular question good answer popular question good answer nice answer enlighten nice answer enlighten great answer nice answer enlighten nice question nice answer nice answer enlighten nice answer peer pressure good answer good answer pbecause codehttps github visionmedia express code url web page npm module flavor class lang prettyprint override codegit https git visionmedia express git code prepor flavor ssh class lang prettyprint override codegit ssh git visionmedia express git code require base npm const reponame require reponame disk module end directory match github username flat list directly node module pok popular question ahead create scaffolding github repository javascript code long readme structure medium sized express js application href https github focusaurus express code structure noreferrer focusaurus express code structure repo late code pull request pphere snapshot readme stackoverflow link answer make update project continue update ultimately github repo date place information code structure project organize medium sized express js web application strongcurrent express december strong href https semaphoreci focusaurus express code structure noreferrer img src https semaphoreci api project badge svg alt build status href https github feross standard noreferrer img src https cdn rawgit feross standard master badge svg alt js standard style big application application opinion single code structure apply express js application ppif application small deep directory structure exemplify simple stick handful code js code file root repository ppif application huge point break distinct npm package general node js approach favor small package library build application npm package start make sense justify overhead application grow portion code reusable application clear subsystem git repository make standalone npm package strongso strong focus project illustrate workable structure medium sized application architecture approach building web application pulliserver mvc ruby rail lilisingle page application style mongodb express angular node lilibasic web site form lilimodel operation view event style href http cirw blog time html noreferrer mvc dead time liliand current historical li ulpeach fit nicely directory structure purpose scaffolding fully work app assume key architecture point pullithe site traditional static page template lilithe application portion site develop single page application style lilithe application expose rest json style api browser lilithe app model simple business domain case car dealership application li ruby rail theme project idea embody ruby rail convention configuration decision adopt widely accept helpful opposite repository recommend ppmy main point underlie principle organize code base principle ruby rail convention make sense ruby rail community thoughtlessly aping convention miss point grok basic principle project organize clear shell script game mobile app enterprise project home directory ppfor rail community single rail developer switch app app app familiar comfortable time make great sense signal pivotal lab benefit server javascript world ethos wild west problem roll express js close sinatra rail take convention rail help convention configuration strong principle motivation mentally brain deal small number relate thing directory help deal complexity focus small portion li lilibe size create mansion directory file directory happen href http ansiblework docs playbook practice html noreferrer ansible practice shame small project create directory hold file directory file drive bus work bus driver drive bus work work create filesystem structure justify actual file li lilibe modular node community favor small module cleanly separate app extract module internal publicly publish npm medium sized application scope overhead add tedium workflow commensurate time code factor justify completely separate npm module strongproto module strong expectation crosse size threshold extract lilisome folk href https twitter noreferrer include codeapp node module code directory codepackage json code file strongproto module strong directory facilitate transition act reminder li lilibe easy locate codeulligiven feature build bug fix goal developer struggle locate source file involve liliname meaningful accurate lilicrufty code fully remove leave orphan file comment li lilibe search friendlyulliall party source code codeapp code directory codecd code run grep xarg ack distract party match li liliuse simple obvious namingullinpm require lowercase package name terrible follow herd filename codekebab case code variable javascript codecamelcase code code code sign javascript lilivariable match basename module path codekebab case code transform codecamelcase code li liligroup couple major departure ruby rail convention codeapp view code codeapp controller code codeapp model code lilifeature add stack focus stack file relevant feature add telephone number field user model care controller user controller care model user model liliso edit file directory ignore ton file directory repository organize file build feature colocate liliby nature mvc user view couple user controller couple user model change user model file change deal controller customer controller decouple involve apply mvc design lilimvc style decouple term code module encourage spread mvc file sible directory annoying lilithus route file portion route own rail style coderoute rb code file handy overview route app building feature fix bug care route relevant piece change li lilistore test codeullithis instance group couple want specifically write project test live parallel filesystem call test start put test directory code modular easy work text editor alleviate lot path nonsense doubt project decide convince li lilireduce cross cut couple eventsulliit easy deal create send email salesperson code send email route create deal lilihowever couple eventually turn app giant ball mud liliinstead dealmodel create event unaware response liliwhen code user relate code codeapp user code rat nest couple business logic place pollute purity user code base li flow magic thing autoload file magic directory filesystem rail app start codeapp server js code load execute code lilidon make dsls route silly metaprogramme call liliif app big route somecontroller post code big win basic codeapp code codeapp code codeapp code call building monolithic app big effectively work fancy big win convert simple line complex line li lili puse low kebab case filename format avoid filesystem case sensitivity issue platform lilinpm forbid uppercase package name work js specific li lili pdon codeapp configure code useless lot boilerplate mindless copypasta lilithe order middleware route express matter ullialmost route problem stackoverflow order express middleware liliin general route decouple rely order lilidon codeapp code entire application middleware route codebody parser code lilimake order olliany super important application wide middleware liliall route assort route middleware lilithen error handler li old li lilisadly sinatra inspire express js assume route codeserver js code clear order medium sized application break thing separate route module nice introduce peril order middleware li app symlink trick approach outline discuss length community great gist href https gist github branneman noreferrer local require path node js decide prefer deal lot href https github dskrepp noreferrer modlue moment symlink trick detail ppso avoid intra project require annoying relative path coderequire config code trick pullicreate symlink node module appullicd node module amp amp ln nsf app li strongjust node module app symlink strong entire node module folder gitulligit add node module app liliye node module code gitignore code file lilino node module git repository people recommend incorrect li lilinow require intra project module prefixulli codevar config require app config code lili codevar dealmodel require app deal deal model code li lilibasically make intra project require work similarly require external npm module lilisorry window user stick parent directory relative path li code module class expect basic javascript codeoption code object pass codeapp server js code load codeapp config js code module synthesize small codeoption code object configure subsystem need couple subsystem big global config module extra information bad couple pptry centralize creation db connection pass subsystem oppose pass connection parameter subsystem make outgoing connection env entice terrible idea carry rail place app codeapp config js code codenode env code environment variable explicit option class constructor argument module configuration parameter ppif email module option deliver email smtp log stdout queue option code deliver stdout code absolutely check codenode env code test file directory code filename extension name convention distinguish test production code pulli codefoo js code module foo code lili codefoo tape js code node base test foo life dir lili codefoo btape js code test execute browser environment li ulpi filesystem globs codefind tape js code command access test organize code code js code module file project scope file directory add scope mention organize code distinct section polliopene block commonjs require call state dependency lilimain code block pure javascript commonjs pollution reference export module require liliclose block commonjs set export li old authentication typically cross cut application wide concern store directory specific model imagine successfully change authentication logic leave crud account logic unchanged belong directory generally model specific folder plural model app account pok popular question ahead create scaffolding github repository javascript code long readme structure medium sized express js application href https github focusaurus express code structure noreferrer focusaurus express code structure repo late code pull request pphere snapshot readme stackoverflow link answer make update project continue update ultimately github repo date place information code structure project organize medium sized express js web application strongcurrent express december strong href https semaphoreci focusaurus express code structure noreferrer img src https semaphoreci api project badge svg alt build status href https github feross standard noreferrer img src https cdn rawgit feross standard master badge svg alt js standard style big application application opinion single code structure apply express js application ppif application small deep directory structure exemplify simple stick handful code js code file root repository ppif application huge point break distinct npm package general node js approach favor small package library build application npm package start make sense justify overhead application grow portion code reusable application clear subsystem git repository make standalone npm package strongso strong focus project illustrate workable structure medium sized application architecture approach building web application pulliserver mvc ruby rail lilisingle page application style mongodb express angular node lilibasic web site form lilimodel operation view event style href http cirw blog time html noreferrer mvc dead time liliand current historical li ulpeach fit nicely directory structure purpose scaffolding fully work app assume key architecture point pullithe site traditional static page template lilithe application portion site develop single page application style lilithe application expose rest json style api browser lilithe app model simple business domain case car dealership application li ruby rail theme project idea embody ruby rail convention configuration decision adopt widely accept helpful opposite repository recommend ppmy main point underlie principle organize code base principle ruby rail convention make sense ruby rail community thoughtlessly aping convention miss point grok basic principle project organize clear shell script game mobile app enterprise project home directory ppfor rail community single rail developer switch app app app familiar comfortable time make great sense signal pivotal lab benefit server javascript world ethos wild west problem roll express js close sinatra rail take convention rail help convention configuration strong principle motivation mentally brain deal small number relate thing directory help deal complexity focus small portion li lilibe size create mansion directory file directory happen href http ansiblework docs playbook practice html noreferrer ansible practice shame small project create directory hold file directory file drive bus work bus driver drive bus work work create filesystem structure justify actual file li lilibe modular node community favor small module cleanly separate app extract module internal publicly publish npm medium sized application scope overhead add tedium workflow commensurate time code factor justify completely separate npm module strongproto module strong expectation crosse size threshold extract lilisome folk href https twitter noreferrer include codeapp node module code directory codepackage json code file strongproto module strong directory facilitate transition act reminder li lilibe easy locate codeulligiven feature build bug fix goal developer struggle locate source file involve liliname meaningful accurate lilicrufty code fully remove leave orphan file comment li lilibe search friendlyulliall party source code codeapp code directory codecd code run grep xarg ack distract party match li liliuse simple obvious namingullinpm require lowercase package name terrible follow herd filename codekebab case code variable javascript codecamelcase code code code sign javascript lilivariable match basename module path codekebab case code transform codecamelcase code li liligroup couple major departure ruby rail convention codeapp view code codeapp controller code codeapp model code lilifeature add stack focus stack file relevant feature add telephone number field user model care controller user controller care model user model liliso edit file directory ignore ton file directory repository organize file build feature colocate liliby nature mvc user view couple user controller couple user model change user model file change deal controller customer controller decouple involve apply mvc design lilimvc style decouple term code module encourage spread mvc file sible directory annoying lilithus route file portion route own rail style coderoute rb code file handy overview route app building feature fix bug care route relevant piece change li lilistore test codeullithis instance group couple want specifically write project test live parallel filesystem call test start put test directory code modular easy work text editor alleviate lot path nonsense doubt project decide convince li lilireduce cross cut couple eventsulliit easy deal create send email salesperson code send email route create deal lilihowever couple eventually turn app giant ball mud liliinstead dealmodel create event unaware response liliwhen code user relate code codeapp user code rat nest couple business logic place pollute purity user code base li flow magic thing autoload file magic directory filesystem rail app start codeapp server js code load execute code lilidon make dsls route silly metaprogramme call liliif app big route somecontroller post code big win basic codeapp code codeapp code codeapp code call building monolithic app big effectively work fancy big win convert simple line complex line li lili puse low kebab case filename format avoid filesystem case sensitivity issue platform lilinpm forbid uppercase package name work js specific li lili pdon codeapp configure code useless lot boilerplate mindless copypasta lilithe order middleware route express matter ullialmost route problem stackoverflow order express middleware liliin general route decouple rely order lilidon codeapp code entire application middleware route codebody parser code lilimake order olliany super important application wide middleware liliall route assort route middleware lilithen error handler li old li lilisadly sinatra inspire express js assume route codeserver js code clear order medium sized application break thing separate route module nice introduce peril order middleware li app symlink trick approach outline discuss length community great gist href https gist github branneman noreferrer local require path node js decide prefer deal lot href https github dskrepp noreferrer modlue moment symlink trick detail ppso avoid intra project require annoying relative path coderequire config code trick pullicreate symlink node module appullicd node module amp amp ln nsf app li strongjust node module app symlink strong entire node module folder gitulligit add node module app liliye node module code gitignore code file lilino node module git repository people recommend incorrect li lilinow require intra project module prefixulli codevar config require app config code lili codevar dealmodel require app deal deal model code li lilibasically make intra project require work similarly require external npm module lilisorry window user stick parent directory relative path li code module class expect basic javascript codeoption code object pass codeapp server js code load codeapp config js code module synthesize small codeoption code object configure subsystem need couple subsystem big global config module extra information bad couple pptry centralize creation db connection pass subsystem oppose pass connection parameter subsystem make outgoing connection env entice terrible idea carry rail place app codeapp config js code codenode env code environment variable explicit option class constructor argument module configuration parameter ppif email module option deliver email smtp log stdout queue option code deliver stdout code absolutely check codenode env code test file directory code filename extension name convention distinguish test production code pulli codefoo js code module foo code lili codefoo tape js code node base test foo life dir lili codefoo btape js code test execute browser environment li ulpi filesystem globs codefind tape js code command access test organize code code js code module file project scope file directory add scope mention organize code distinct section polliopene block commonjs require call state dependency lilimain code block pure javascript commonjs pollution reference export module require liliclose block commonjs set export li old fine app auth js sit level app directory require account account model require code smell indicate poor organization boundary olli pthe protocol codereq protocol code href http expressjs api html protocol docs pollibefore express protocol assume codehttp code codereq forward protocol code set codehttps code case protocol li old lili pthe host codereq host code gopal lili phopefully standard port url application state pass codeapp listen code server startup time case local development standard port chrome include port host header codereq host code return codelocalhost code case production site standard port browse directly express app reverse proxy code header thing port url lili pthe path codereq originalurl code note include query string href http expressjs api html originalurl docs url originalurl depend intend url codeoriginalurl code correct compare codereq url code li olpcombine reconstruct absolute url code var fullurl protocol host originalurl code post separate question strongupdate strong answer javascript coffeescript popular demand boilerplate github repo extensive readme detail late recommendation topic strongconfig strong fine config namespace set level codeconfig coffee code file nest namespace code set current environment true env process env node env development export appname myapp export env production false stage false test false development falseexport env currentenv trueexport log path dirname var log app currentenv log export server port stage production listen loopback nginx listen network currentenv production stage export enabletest true listen dev test testing machine export server export db url mongodb localhost export appname tolowercase currentenv code prepthis friendly edit db connection info coderequire config db url code prep strongroute controller strong ppi leave route controller organize codeapp controller code subdirectory load add route ppin codeapp server coffee code coffeescript file code api authorization authentication domain user stylesheet javascript test sale map controllername controller require controller controllername controller setup app code prepso file codeapp controller api coffeeapp controller authorization coffeeapp controller authentication coffeeapp controller domain coffee code prepand domain controller codesetup code function codeexport setup app controller export route domain app post route controller create app route api needid app delete route api needid route domain app route controller loaddomain controller update app route controller loaddomain export delete app route controller loaddomain sendjson domain status code prep strongview strong ppputte view codeapp view code customary place lie codeapp view layout jadeapp view jadeapp view user edituser jadeapp view domain editdomain jade code prep strongstatic file strong ppgo codepublic code subdirectory stronggithub semver npm strong ppput readme markdown file git repo root github ppput package json file href http semver org semantic version number git repo root npm file define constructor function property export object prefix refer properly define property export make code file commonjs module node js note version answer code regular javascript refer coffeescript fad end,0,NULL,NULL,,,, 60828,1027,217320,NULL,NULL,NULL,0,NULL,NULL 60829,28562,373837,Critic Popular Question,NULL,NULL,0,NULL,NULL 60830,75956,451008,NULL,NULL,NULL,0,NULL,NULL 60831,86064,1295779,NULL,NULL,NULL,0,NULL,NULL 60832,251787,663105,NULL,NULL,NULL,0,NULL,NULL 60833,466527,984662,NULL,NULL,NULL,0,NULL,NULL 60834,314309,873156,NULL,NULL,NULL,0,NULL,NULL 60835,200702,263643,Student Scholar Yearling Necromancer Good Answer Critic Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 60836,460020,1020028,Popular Question,NULL,NULL,0,NULL,NULL 60837,312778,137125,NULL,NULL,NULL,0,NULL,NULL 60838,2820835,968008,NULL,NULL,NULL,0,NULL,NULL 60839,373474,580491,NULL,NULL,NULL,0,NULL,NULL 60840,54676,80795,Commentator,NULL,NULL,0,NULL,NULL 60841,334698,1437878,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 60842,200122,573798,NULL,NULL,NULL,0,NULL,NULL 60843,30446,469820,NULL,NULL,NULL,0,NULL,NULL 60844,338441,567616,NULL,NULL,NULL,0,NULL,NULL 60845,15472,1521491,Informed,NULL,NULL,0,NULL,NULL 60846,216531,607092,NULL,NULL,NULL,0,NULL,NULL 60847,219631,1480350,NULL,NULL,NULL,0,NULL,NULL 60848,85753,88396,Famous Question Good Answer Nice Answer Enlightened Yearling c++ Nice Question Notable Question Good Answer Great Question Popular Question Informed Yearling Popular Question Famous Question Notable Question Nice Answer Enlightened Nice Question Nice Question Tenacious Popular Question Revival Yearling Popular Question Nice Question Popular Question Nice Answer Necromancer Famous Question,NULL,NULL,0,NULL,NULL 60849,214282,824048,NULL,NULL,NULL,0,NULL,NULL 60850,11737,4937,Notable Question Notable Question Notable Question Famous Question Good Question Necromancer Popular Question Citizen Patrol Nice Answer Enlightened Nice Question Notable Question Nice Question Yearling Good Question Famous Question Good Question Popular Question Notable Question Great Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 60851,161547,186636,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer arrays Necromancer Revival Nice Answer Populist Yearling Nice Answer Good Answer Guru Popular Question Nice Answer Good Answer Good Answer Notable Question Nice Answer Nice Answer Guru Good Answer Notable Question Nice Answer Yearling Nice Answer Necromancer Guru Guru Popular Question Good Answer Announcer Notable Question Nice Answer Nice Answer Yearling Good Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 60852,268920,1067654,NULL,NULL,NULL,0,NULL,NULL 60853,134895,235825,Popular Question Good Answer Great Answer Nice Answer Guru Good Answer Nice Answer Nice Answer Guru Populist Guru Notable Question Nice Answer Popular Question Favorite Question Nice Answer Good Answer Famous Question Yearling Nice Answer Nice Answer Good Answer Nice Answer Census Good Answer Popular Question Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Nice Answer Yearling Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60854,229333,791094,Revival Notable Question Caucus Constituent Curious Custodian Informed Notable Question Excavator Necromancer,NULL,NULL,0,NULL,NULL 60855,311561,643854,Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 60856,273218,227081,Civic Duty Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 60857,34852,885978,NULL,NULL,NULL,0,NULL,NULL 60858,595634,229959,Nice Answer Notable Question Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 60859,47296,213191,Necromancer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 60860,94780,209574,Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Caucus Nice Question Famous Question,NULL,NULL,0,NULL,NULL 60861,1340924,825887,Popular Question,NULL,NULL,0,NULL,NULL 60862,496377,825887,Popular Question,NULL,NULL,0,NULL,NULL 60863,69457,1019584,NULL,NULL,NULL,0,NULL,NULL 60864,766838,216135,Popular Question Popular Question Popular Question Great Question Notable Question Popular Question Popular Question Yearling Nice Question Favorite Question Notable Question Popular Question Notable Question Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 60865,10879,566920,Yearling Nice Answer Enlightened Nice Answer Nice Answer Caucus Constituent Nice Answer Enlightened Yearling Custodian Guru Nice Answer Tumbleweed Scholar Student Great Answer Caucus Constituent Documentation User Nice Answer Enlightened Nice Answer Yearling Caucus Constituent svg Nice Answer,NULL,NULL,0,NULL,NULL 60866,464406,279151,Supporter,NULL,NULL,0,NULL,NULL 60867,1088401,244723,Nice Answer Caucus Caucus Critic,NULL,NULL,0,NULL,NULL 60868,351303,599251,Good Answer Yearling Nice Question Announcer Necromancer Popular Question Popular Question Yearling Famous Question Necromancer Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Great Answer Notable Question Notable Question Famous Question Nice Question Guru,NULL,NULL,0,NULL,NULL 60869,544214,645697,Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 60870,2560968,718954,NULL,NULL,NULL,0,NULL,NULL 60871,5460999,718954,NULL,NULL,NULL,0,NULL,NULL 60872,4094502,486883,Yearling Good Question,NULL,NULL,0,NULL,NULL 60873,1650654,388581,NULL,NULL,NULL,0,NULL,NULL 60874,267290,114198,Census Popular Question,NULL,NULL,0,NULL,NULL 60875,441768,134645,Yearling,NULL,NULL,0,NULL,NULL 60876,87,1337477,NULL,NULL,NULL,0,NULL,NULL 60877,100829,3397,Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Answer Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 60878,212085,640219,NULL,NULL,NULL,0,NULL,NULL 60879,46907,449828,NULL,NULL,NULL,0,NULL,NULL 60880,123054,359156,Revival Notable Question Necromancer Notable Question Yearling Notable Question Nice Answer Peer Pressure Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Revival Popular Question Famous Question Nice Question Yearling Taxonomist Popular Question,NULL,NULL,0,NULL,NULL 60881,95169,511367,NULL,NULL,NULL,0,NULL,NULL 60882,6716805,1024486,NULL,NULL,NULL,0,NULL,NULL 60883,349420,546432,NULL,NULL,NULL,0,NULL,NULL 60884,697140,219249,NULL,NULL,NULL,0,NULL,NULL 60885,210371,457225,NULL,NULL,NULL,0,NULL,NULL 60886,27304,1445544,Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 60887,144048,1013545,NULL,NULL,NULL,0,NULL,NULL 60888,374266,300367,NULL,NULL,NULL,0,NULL,NULL 60889,195491,860058,Supporter,NULL,NULL,0,NULL,NULL 60890,395189,1176601,Yearling Electorate Nice Question Revival Announcer Deputy Custodian Custodian Custodian Custodian Custodian Custodian Revival Announcer Nice Answer Nice Answer Nice Question Notable Question Popular Question Yearling Popular Question python Caucus Announcer Constituent Announcer Necromancer Census Yearling Nice Answer Enlightened Good Question Notable Question Pundit Popular Question Necromancer Announcer,NULL,pFirst of all you should know which statements are affected by the automatic semicolon insertion also known as ASI for brevity pulliempty statement lili codevar code statement liliexpression statement lili codedo while code statement lili codecontinue code statement lili codebreak code statement lili codereturn code statement lili codethrow code statement li ulpThe concrete rules of ASI are described in the specification href http www ecma international org ecma 262 index html sec rules of automatic semicolon insertion rel noreferrer sect 11 Rules of Automatic Semicolon Insertion ppThree cases are described polli pWhen token codeLineTerminator code or code code is encountered that is not allowed by the grammar semicolon is inserted before it if pulliThe token is separated from the previous token by at least one codeLineTerminator code liliThe token is code code li ulp eme em ppre code 12 code prepis transformed to ppre code code prepThe codeNumericLiteral code code1 code meets the first condition the following token is line terminator brThe code2 code meets the second condition the following token is code code lili pWhen the end of the input stream of tokens is encountered and the parser is unable to parse the input token stream as single complete Program then semicolon is automatically inserted at the end of the input stream pp eme em ppre codea code prepis transformed to ppre codea code pre lili pThis case occurs when token is allowed by some production of the grammar but the production is emrestricted production em semicolon is automatically inserted before the restricted token ppRestricted productions ppre codeUpdateExpression LeftHandSideExpression no LineTerminator here LeftHandSideExpression no LineTerminator here ContinueStatement continue continue no LineTerminator here LabelIdentifier BreakStatement break break no LineTerminator here LabelIdentifier ReturnStatement return return no LineTerminator here Expression ThrowStatement throw no LineTerminator here Expression ArrowFunction ArrowParameters no LineTerminator here gt ConciseBodyYieldExpression yield no LineTerminator here AssignmentExpression yield no LineTerminator here AssignmentExpression code prepThe classic example with the codeReturnStatement code ppre codereturn something code prepis transformed to ppre codereturn something code pre li ol please note ASI does not need to actually insert semicolons just to terminate the statement in an engine parser,0,NULL,NULL 60891,6514903,1176601,Yearling Electorate Nice Question Revival Announcer Deputy Custodian Custodian Custodian Custodian Custodian Custodian Revival Announcer Nice Answer Nice Answer Nice Question Notable Question Popular Question Yearling Popular Question python Caucus Announcer Constituent Announcer Necromancer Census Yearling Nice Answer Enlightened Good Question Notable Question Pundit Popular Question Necromancer Announcer,NULL,pFirst of all you should know which statements are affected by the automatic semicolon insertion also known as ASI for brevity pulliempty statement lili codevar code statement liliexpression statement lili codedo while code statement lili codecontinue code statement lili codebreak code statement lili codereturn code statement lili codethrow code statement li ulpThe concrete rules of ASI are described in the specification href http www ecma international org ecma 262 index html sec rules of automatic semicolon insertion rel noreferrer sect 11 Rules of Automatic Semicolon Insertion ppThree cases are described polli pWhen token codeLineTerminator code or code code is encountered that is not allowed by the grammar semicolon is inserted before it if pulliThe token is separated from the previous token by at least one codeLineTerminator code liliThe token is code code li ulp eme em ppre code 12 code prepis transformed to ppre code code prepThe codeNumericLiteral code code1 code meets the first condition the following token is line terminator brThe code2 code meets the second condition the following token is code code lili pWhen the end of the input stream of tokens is encountered and the parser is unable to parse the input token stream as single complete Program then semicolon is automatically inserted at the end of the input stream pp eme em ppre codea code prepis transformed to ppre codea code pre lili pThis case occurs when token is allowed by some production of the grammar but the production is emrestricted production em semicolon is automatically inserted before the restricted token ppRestricted productions ppre codeUpdateExpression LeftHandSideExpression no LineTerminator here LeftHandSideExpression no LineTerminator here ContinueStatement continue continue no LineTerminator here LabelIdentifier BreakStatement break break no LineTerminator here LabelIdentifier ReturnStatement return return no LineTerminator here Expression ThrowStatement throw no LineTerminator here Expression ArrowFunction ArrowParameters no LineTerminator here gt ConciseBodyYieldExpression yield no LineTerminator here AssignmentExpression yield no LineTerminator here AssignmentExpression code prepThe classic example with the codeReturnStatement code ppre codereturn something code prepis transformed to ppre codereturn something code pre li ol please note ASI does not need to actually insert semicolons just to terminate the statement in an engine parser,0,NULL,NULL 60892,15752,293066,NULL,NULL,NULL,0,NULL,NULL 60893,93049,851704,NULL,NULL,NULL,0,NULL,NULL 60894,30556,104143,Nice Question Nice Answer Nice Answer Good Answer Popular Question Yearling Good Answer Popular Question Good Question Caucus Constituent Notable Question Revival Yearling Announcer Nice Answer Caucus Announcer Guru Custodian Famous Question Yearling Good Answer Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 60895,89750,537331,NULL,NULL,NULL,0,NULL,NULL 60896,2836788,689637,Revival Critic Necromancer Nice Answer Yearling Yearling Revival Curious Necromancer Census Caucus Excavator Constituent Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 60897,630909,178078,Popular Question,NULL,NULL,0,NULL,NULL 60898,68649,162666,NULL,NULL,NULL,0,NULL,NULL 60899,69474,829926,Notable Question Revival Famous Question,NULL,NULL,0,NULL,NULL 60900,103364,57695,Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer simpledateformat Nice Answer Nice Answer Nice Answer Enlightened Good Answer random Nice Answer Enlightened Yearling Nice Answer list Nice Answer Nice Answer Notable Question Guru Nice Answer Nice Answer Good Answer stream Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer bufferedreader bytecode Good Answer arraylist immutability Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened jvm java-stream Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer java-8 Vox Populi concurrency biginteger java.util.concurrent file-io Nice Answer Enlightened Nice Answer Enlightened memory Nice Answer Nice Answer Necromancer Nice Answer Nice Answer date Popular Question Nice Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Good Answer Announcer Nice Answer Nice Answer Taxonomist Nice Answer Nice Answer Enlightened Good Answer char Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer comparator Guru Necromancer Nice Answer Great Answer Guru Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer datetime Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Great Answer Populist Nice Answer Nice Answer Nice Answer Enlightened Enlightened file Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Guru Nice Answer pointers Nice Answer Good Answer Announcer database Good Answer Nice Answer Good Answer Nice Answer Good Answer Populist Guru logging annotations Nice Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Good Answer Nice Answer Good Answer Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Revival Necromancer Nice Answer Nice Answer Good Answer Good Answer Good Answer treemap Nice Answer Nice Answer Nice Question Good Answer Guru jar Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Great Answer profiling Nice Answer Good Answer Nice Answer Yearling Nice Question Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Announcer Announcer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer hashset Nice Answer Announcer Nice Answer Enlightened Good Answer wait volatile Nice Answer Nice Answer Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer Announcer Nice Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Enlightened Necromancer Guru Nice Answer Enlightened Good Question heap-memory Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Great Answer Guru Good Question locking Good Answer Nice Answer collections Good Answer Nice Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Guru numbers Nice Answer Enlightened Good Answer Nice Answer Enlightened garbage-collection Nice Answer Great Answer abstract-class Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Guru Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer Announcer Necromancer Nice Answer Enlightened Good Answer Nice Answer Necromancer c Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Good Answer Populist Nice Answer Documentation User Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer security Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Necromancer runtime Good Answer Good Answer Nice Answer math Guru Nice Answer queue concurrenthashmap Announcer Nice Answer Announcer Guru unit-testing Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Announcer Nice Answer Good Answer Guru Notable Question Yearling Good Answer Nice Answer Good Answer Nice Answer Nice Answer Announcer Necromancer Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Announcer Announcer Nice Answer Enlightened Good Answer Nice Answer Announcer Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Announcer class Nice Answer Nice Answer Nice Answer Good Answer Good Answer Announcer Good Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Good Answer Announcer Nice Question Nice Answer Announcer Nice Answer Nice Answer Good Answer Great Answer Announcer Announcer Announcer Announcer Announcer Announcer Nice Question Announcer Good Answer Nice Answer Enlightened Nice Answer Announcer nio Announcer Nice Answer Enlightened Announcer Necromancer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Guru Nice Question Inquisitive optimization Nice Answer Nice Answer Enlightened Announcer Nice Question Nice Answer Announcer Good Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Announcer Great Answer Nice Answer Nice Answer Guru Announcer Announcer Custodian Announcer Announcer Announcer Announcer Announcer Announcer Good Question Announcer Good Answer while-loop Good Answer Popular Question Good Answer Nice Answer Nice Answer Nice Answer Good Answer Booster Nice Answer Necromancer Nice Answer Enlightened Announcer Nice Answer Announcer Announcer Nice Answer Nice Answer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Nice Question Nice Answer Nice Answer Necromancer,NULL,pIt behaves as it should it the remainder ppYou can do phrpThis expression works as the result of code code is necessarily lower than codeb code no matter if codea code is positive or negative Adding codeb code takes care of the negative values of codea code since code code is negative value between code code and code0 code code code is necessarily lower than codeb code and positive The last modulo is there in case codea code was positive to begin with since if codea code is positive code code would become larger than codeb code Therefore code code turns it into smaller than codeb code again and doesn affect negative codea code values using while would be slower if you really need it except you only need an if in which case it is actually faster pTo round up an integer division you can use ppre codeimport static java lang Math abs public static long roundUp long num long divisor int sign num gt divisor gt return sign abs num abs divisor abs divisor code prepor if both numbers are positive ppre codepublic static long roundUp long num long divisor return num divisor divisor code pre It is worth knowing this could be problem though as you say there is no simple way to do this without adding significant complexity pTo round up an integer division you can use ppre codeimport static java lang Math abs public static long roundUp long num long divisor int sign num gt divisor gt return sign abs num abs divisor abs divisor code prepor if both numbers are positive ppre codepublic static long roundUp long num long divisor return num divisor divisor code pre is unless there is an overflow The rounds up in all cases except when is multiple of Why does Math round 49999999999999994 return java floating point double rounding pIn the following program you can see that each value slightly less than code code is rounded down except for code0 code ppre codefor int 10 gt long Double doubleToLongBits double do Double longBitsToDouble System out println rounded is Math round while Math round gt code prepprints ppre code10 rounded is 1110 499999999999998 rounded is 109 rounded is 109 499999999999998 rounded is 98 rounded is 98 499999999999998 rounded is 87 rounded is 87 499999999999999 rounded is 76 rounded is 76 499999999999999 rounded is 65 rounded is 65 499999999999999 rounded is 54 rounded is 54 499999999999999 rounded is 43 rounded is 43 4999999999999996 rounded is 32 rounded is 32 4999999999999996 rounded is 21 rounded is 21 4999999999999998 rounded is 10 rounded is 10 49999999999999994 rounded is 10 4999999999999999 rounded is code prepI am using Java update 31 ëlRoy esp when work on the edge of it accuracy favourite example for me is is hard to explain Why does Math round 49999999999999994 return java floating point double rounding pIn the following program you can see that each value slightly less than code code is rounded down except for code0 code ppre codefor int 10 gt long Double doubleToLongBits double do Double longBitsToDouble System out println rounded is Math round while Math round gt code prepprints ppre code10 rounded is 1110 499999999999998 rounded is 109 rounded is 109 499999999999998 rounded is 98 rounded is 98 499999999999998 rounded is 87 rounded is 87 499999999999999 rounded is 76 rounded is 76 499999999999999 rounded is 65 rounded is 65 499999999999999 rounded is 54 rounded is 54 499999999999999 rounded is 43 rounded is 43 4999999999999996 rounded is 32 rounded is 32 4999999999999996 rounded is 21 rounded is 21 4999999999999998 rounded is 10 rounded is 10 49999999999999994 rounded is 10 4999999999999999 rounded is code prepI am using Java update 31 ëlRoy 49999999999999994 as double is true As it is less than it should round down pAnother way to implement Pair with pulliPublic immutable fields simple data structure liliComparable liliSimple hash and equals lili pSimple factory so you don have to provide the types Pair of hello ppre codepublic class Pair lt FIRST SECOND gt implements Comparable lt Pair lt FIRST SECOND gt gt public final FIRST first public final SECOND second private Pair FIRST first SECOND second this first first this second second public static lt FIRST SECOND gt Pair lt FIRST SECOND gt of FIRST first SECOND second return new Pair lt FIRST SECOND gt first second public int compareTo Pair lt FIRST SECOND gt int cmp compare first first return cmp compare second second cmp todo move this to helper class private static int compare Object o1 Object o2 return o1 null o2 null o2 null Comparable o1 compareTo o2 public int hashCode return 31 hashcode first hashcode second todo move this to helper class private static int hashcode Object return null hashCode public boolean equals Object obj if obj instanceof Pair return false if this obj return true return equal first Pair obj first amp amp equal second Pair obj second todo move this to helper class private boolean equal Object o1 Object o2 return o1 null o2 null o1 o2 o1 equals o2 public String toString return first second code pre li ul Java String hashCode used 31 has multiply prime long before eclipse was started How can process Java stream with more than the default number of threads java multithreading java stream forkjoinpool pBy default Java streams are processed by href https docs oracle com javase docs api java util concurrent ForkJoinPool html rel nofollow noreferrer common thread pool which is constructed with default parameters As has been answered in href https stackoverflow com questions 21163108 custom thread pool in java parallel stream another question one can adjust these defaults by specifying custom pool or by setting the codejava util concurrent ForkJoinPool common parallelism code system parameter ppHowever ve been unable to increase the number of threads allocated to stream processing by any of these two methods As an example consider the program below which processes list of IP addresses contained in file specified in its first argument and outputs the resolved addresses Running this on file with about 13000 unique IP addresses see using emOracle Java Mission Control em as few as 16 threads Of these only five are codeForkJoinPool code workers Yet this particular task would well benefit from many more threads because threads spend most of the time waiting for DNS responses So my question is how can actually increase the number of threads used ppI ve tried the program on three environments these are the OS reported number of threads pulliJava SE Runtime Environment build 73 b02 on an core machine running Windows 17 threads liliJava SE Runtime Environment build 66 b17 on core machine running OS Darwin 15 23 threads liliopenjdk version 72 on 24 core machine running FreeBSD 11 44 threads li ulpre codeimport java io IOException import java net InetAddress import java net UnknownHostException import java nio file Files import java nio file Files import java nio file Path import java nio file Paths import java util concurrent ForkJoinPool Resolve IP addresses in file args using 100 threads public class Resolve100 Resolve the passed IP address into name static String addressName String ipAddress try return InetAddress getByName ipAddress getHostName catch UnknownHostException return ipAddress public static void main String args Path path Paths get args ForkJoinPool fjp new ForkJoinPool 100 try fjp submit try Files lines path parallel map line addressName line forEach System out println catch IOException System err println Failed get catch Exception System err println Failed code pre suggest you add the lines to List before attempting to parallel it It does much better job when it knows how many entries there are in advance pI also suggest you try ByteBuffer ppre codebyte bytes short shorts new short bytes length to turn bytes to shorts as either big endian or little endian ByteBuffer wrap bytes order ByteOrder LITTLE ENDIAN asShortBuffer get shorts to turn shorts back to bytes byte bytes2 new byte shortsA length ByteBuffer wrap bytes2 order ByteOrder LITTLE ENDIAN asShortBuffer put shortsA code pre it short hand for byte bytes new byte pI also suggest you try ByteBuffer ppre codebyte bytes short shorts new short bytes length to turn bytes to shorts as either big endian or little endian ByteBuffer wrap bytes order ByteOrder LITTLE ENDIAN asShortBuffer get shorts to turn shorts back to bytes byte bytes2 new byte shortsA length ByteBuffer wrap bytes2 order ByteOrder LITTLE ENDIAN asShortBuffer put shortsA code pre use it all the time expect that what is generally used in the JDK code pLinux corrects for discrepancies between CPUs but Windows does not suggest you assume System nanoTime is only accurate to around micro second simple way to get longer timing is to call foo 1000 or more times and divide the time by 1000 summing 1000 events and adding them up is the same as the end to end time pLinux corrects for discrepancies between CPUs but Windows does not suggest you assume System nanoTime is only accurate to around micro second simple way to get longer timing is to call foo 1000 or more times and divide the time by 1000 System nanoTime is accurate to micro second or better not 100 000 microseconds on most systems Averaging many operations is only relevant when you get down to few micro seconds and only on certain systems pYou can get much simpler than using an codeenum code with no instances ppre codepublic enum MyLib public static void myHelperMethod code prepThis class is final with explicitly no instances and private constructor ppThis is detected by the compiler rather than as runtime error unlike throwing an exception an enum with no instances does exactly that it shows there is no instances Why do Xmx and Runtime maxMemory not agree java memory garbage collection jvm heap memory pWhen you add ppre code Xmx code prepto the command line the JVM gives you heap which is close to this value but can be out by up to 14 The JVM can give you figure much closer to what you want but only through trial and error ppre code System out println Runtime getRuntime maxMemory code prepprints ppre code Xmx1000m gt 932184064 Xmx1024m Xmx1g gt 954728448 Xmx1072m gt 999292928 Xmx1073m gt 1001390080 code prepI am running HotSpot Java update ppClearly the heap can be something just above code1000000000 code but why is this code Xmx1073m code instead of say code Xmx1000m code ppBTW code1g code code1024m code which suggests that code1g code should be 1024 which is higher than 1000 but you get something lower than 1000 phrpBeing off by so much suggests that am missing something fundamental about how the heap works If asked for Xmx1000m and it was code1001390080 code wouldn care would assume there is some allocation multiple it needs to adhere to but to give you code932184064 code suggests to me the heap is more complicated than can imagine phrpEDIT have found that ppre code Xmx1152m gives 1073741824 which is exactly 1024 code prepso it appears it is giving me exactly 128 MB less than asked for in this case cf the maxMemory phrpBTW 128 is my favourite number was in conference today at street number code128 code and the speaker quoted book from page code128 code For memory hardware vendors still say you have machine with GB 32 GB not 58 MB or MiB 34 MB or 32 MiB In Java GB GiB Gb gb all appears in the source always means 1024 Why do Xmx and Runtime maxMemory not agree java memory garbage collection jvm heap memory pWhen you add ppre code Xmx code prepto the command line the JVM gives you heap which is close to this value but can be out by up to 14 The JVM can give you figure much closer to what you want but only through trial and error ppre code System out println Runtime getRuntime maxMemory code prepprints ppre code Xmx1000m gt 932184064 Xmx1024m Xmx1g gt 954728448 Xmx1072m gt 999292928 Xmx1073m gt 1001390080 code prepI am running HotSpot Java update ppClearly the heap can be something just above code1000000000 code but why is this code Xmx1073m code instead of say code Xmx1000m code ppBTW code1g code code1024m code which suggests that code1g code should be 1024 which is higher than 1000 but you get something lower than 1000 phrpBeing off by so much suggests that am missing something fundamental about how the heap works If asked for Xmx1000m and it was code1001390080 code wouldn care would assume there is some allocation multiple it needs to adhere to but to give you code932184064 code suggests to me the heap is more complicated than can imagine phrpEDIT have found that ppre code Xmx1152m gives 1073741824 which is exactly 1024 code prepso it appears it is giving me exactly 128 MB less than asked for in this case cf the maxMemory phrpBTW 128 is my favourite number was in conference today at street number code128 code and the speaker quoted book from page code128 code The one which bugs me is people use for bytes and for bits If you ask some which is faster memory speed of 49 mb disk write of 50 mb or network of 100 mb The memory speed of course it most likely 49 MiB pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later agreed provided lambdas are used to make the code easier to read They can make it harder to read if over used We put our first major application written in Java in 2014 26 000 lines of code much of it using Streams and we found in some cases using traditional loop was cleaner when you are mutating data as you go or producing updating more than one collections for example pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later it good suggestion and have added an example for Java It not as simple it it might appear pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later meant there is gotcha in needing the try with resource pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later assume that even those who can write Java can read Java and know how to close file when finished with it wouldn assume people know how to read Java however and retro fit stream lambdas pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later what do you mean by doesn work and what is the problem you still have pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later if you have very long lines and very small amount of memory you may need to process just one line at time or portion of line at time If you run the example above do you get OOME or is it when you process those lines is the OOME occurring in your code of in this library pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later in that case would use the BufferedReader loop pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later think my answer is clearer as it uses try with resource See the second line of my answer pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later This is only holding one line at time so if you have an OOME you have really long line because that is all that is being retained pA common pattern is to use ppre codetry BufferedReader br new BufferedReader new FileReader file String line while line br readLine null process the line code prepYou can read the data faster if you assume there is no character encoding ASCII but it won make much difference It is highly likely that what you do with the data will take much longer ppEDIT less common pattern to use which avoids the scope of codeline code leaking ppre codetry BufferedReader br new BufferedReader new FileReader file for String line line br readLine null process the line line is not visible here code prehrpUPDATE In Java you can do ppre codetry Stream lt String gt stream Files lines Paths get fileName stream forEach System out println code prepNOTE You have to place the Stream in href https docs oracle com javase tutorial essential exceptions tryResourceClose html rel noreferrer try with resource block to ensure the close method is called on it otherwise the underlying file handle is never closed until GC does it much later for this to happen with BufferedReader you must be retaining data somewhere as only the line length matters otherwise,0,NULL,NULL 60901,172584,553985,NULL,NULL,NULL,0,NULL,NULL 60902,277523,527913,NULL,NULL,NULL,0,NULL,NULL 60903,254011,376489,Yearling Popular Question Popular Question Popular Question Promoter Nice Question Necromancer Popular Question Notable Question Nice Question Yearling Nice Answer Notable Question Nice Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 60904,1500134,1132556,NULL,NULL,NULL,0,NULL,NULL 60905,226950,349353,Civic Duty Nice Answer Enlightened Yearling Nice Answer Good Answer Nice Question Enlightened Good Answer Yearling Popular Question Good Answer Yearling Guru Great Answer,NULL,NULL,0,NULL,NULL 60906,396442,307296,NULL,NULL,NULL,0,NULL,NULL 60907,837061,752617,NULL,NULL,NULL,0,NULL,NULL 60908,235461,63733,Nice Answer Enlightened Yearling Necromancer Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Necromancer Nice Answer Enlightened Necromancer Good Answer Guru Good Answer Guru Good Answer Announcer Nice Answer Enlightened Notable Question Good Answer Guru Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Great Answer Nice Answer Enlightened c# Popular Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Popular Question Caucus Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Documentation User Good Answer Good Answer Announcer Nice Answer Announcer Good Answer Nice Answer Guru Favorite Question Yearling Necromancer Nice Answer Good Answer Caucus Announcer Announcer Famous Question Necromancer Nice Answer Guru Guru Nice Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Good Answer Guru Guru Great Answer Good Answer Announcer Guru Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 60909,565192,1459155,NULL,NULL,NULL,0,NULL,NULL 60910,9404342,1459155,NULL,NULL,NULL,0,NULL,NULL 60911,938088,595495,Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 60912,732930,1188636,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60913,481936,663320,Editor Critic,NULL,NULL,0,NULL,NULL 60914,343615,1130453,Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 60915,200934,179914,Great Answer Yearling Nice Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 60916,16718,71530,Yearling Popular Question Good Answer Popular Question Yearling Nice Answer Popular Question Nice Answer Popular Question Census Popular Question Custodian Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 60917,68928,1038644,Self-Learner Yearling Nice Answer Enlightened Cleanup Custodian,NULL,NULL,0,NULL,NULL 60918,320059,279199,Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 60919,782705,654789,Popular Question Announcer Popular Question Notable Question Popular Question Yearling Popular Question Nice Question Favorite Question Notable Question Notable Question Favorite Question Popular Question Notable Question Nice Question Popular Question Necromancer Notable Question Nice Question Popular Question Good Answer Notable Question Great Question Popular Question Nice Question Popular Question Famous Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Revival Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Notable Question Announcer Famous Question Notable Question Nice Answer Nice Question Notable Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Notable Question Popular Question Yearling Caucus Famous Question Notable Question Nice Question Popular Question Popular Question Famous Question Famous Question Famous Question Notable Question Famous Question Popular Question Notable Question Famous Question Good Question Famous Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 60920,211547,819046,Yearling Caucus Curious Revival,NULL,NULL,0,NULL,NULL 60921,117292,200516,Excavator Populist Nice Answer Good Answer Yearling Caucus Custodian Good Answer Custodian Revival Notable Question Nice Answer Guru Yearling Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 60922,438360,1313323,Popular Question,NULL,NULL,0,NULL,NULL 60923,138833,177614,Yearling Nice Answer Enlightened Yearling Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 60924,174845,39601,Nice Answer Custodian Critic Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 60925,1900595,1096296,Revival Popular Question Yearling Self-Learner Popular Question Necromancer Caucus Custodian Custodian Census Informed Yearling Nice Answer Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 60926,118837,919431,Notable Question Teacher Announcer Curious Census Critic Yearling Self-Learner Caucus Yearling,NULL,NULL,0,NULL,NULL 60927,530362,584406,NULL,NULL,NULL,0,NULL,NULL 60928,495529,207028,Necromancer Yearling Popular Question Guru Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 60929,1907922,402941,Famous Question Excavator Good Answer Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Famous Question Nice Question Popular Question Good Question Famous Question Notable Question Popular Question Popular Question Nice Question Caucus Yearling Nice Answer Enlightened Popular Question Documentation User Famous Question Caucus Constituent Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 60930,192298,1102547,Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 60931,510942,445474,NULL,NULL,NULL,0,NULL,NULL 60932,146199,1023222,NULL,NULL,NULL,0,NULL,NULL 60933,441593,573506,Yearling Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 60934,464369,255897,Yearling Necromancer,NULL,NULL,0,NULL,NULL 60935,375707,803351,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 60936,71666,1195496,Notable Question Popular Question Notable Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 60937,312218,76,Yearling Census Custodian Yearling Great Answer Census Curious Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 60938,231808,158302,Popular Question Popular Question Yearling Caucus Constituent Notable Question Nice Question,NULL,NULL,0,NULL,NULL 60939,889426,276328,Yearling Notable Question Popular Question Famous Question Notable Question Yearling Nice Answer Enlightened google-app-engine Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 60940,2694176,33939,NULL,NULL,NULL,0,NULL,NULL 60941,62139,740382,NULL,NULL,NULL,0,NULL,NULL 60942,12098,1427184,Enthusiast,NULL,NULL,0,NULL,NULL 60943,2655804,1427184,Enthusiast,NULL,NULL,0,NULL,NULL 60944,983259,1427184,Enthusiast,NULL,NULL,0,NULL,NULL 60945,81259,1489051,Self-Learner Critic Commentator Yearling,NULL,NULL,0,NULL,NULL 60946,467760,671946,NULL,NULL,NULL,0,NULL,NULL 60947,7989,964342,NULL,NULL,NULL,0,NULL,NULL 60948,832271,1213548,Popular Question Notable Question Yearling Notable Question Self-Learner Notable Question Popular Question Popular Question Popular Question Necromancer Popular Question Necromancer Popular Question Popular Question Yearling Popular Question Popular Question Nice Answer Caucus Constituent Notable Question Nice Answer Popular Question Documentation User Notable Question Yearling Caucus Nice Question Nice Answer Notable Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 60949,212116,1540109,NULL,NULL,NULL,0,NULL,NULL 60950,7674678,939260,NULL,NULL,NULL,0,NULL,NULL 60951,621747,137403,NULL,NULL,NULL,0,NULL,NULL 60952,15862,580204,NULL,NULL,NULL,0,NULL,NULL 60953,3876,181916,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60954,112297,975692,Yearling Popular Question,NULL,NULL,0,NULL,NULL 60955,996118,846145,Civic Duty Yearling Yearling Commentator Popular Question Necromancer Documentation User Good Answer Yearling,NULL,href https curl haxx se docs manpage html rel noreferrer codeman curl code ppre code header lt header gt HTTP Extra header to use when getting web page You may specify any number of extra headers Note that if you should add custom header that has the same name as one of the internal ones curl would use your externally set header will be used instead of the internal one This allows you to make even trickier stuff than curl would normally do You should not replace internally set headers without knowing perfectly well what you re doing Remove an internal header by giving replacement without content on the right side of the colon as in Host curl will make sure that each header you add replace get sent with the proper end of line marker you should thus not add that as part of the header content do not add newlines or carriage returns they will only mess things up for you See also the user agent and referer options This option can be used multiple times to add replace remove multi ple headers code preh1 strongExample strong h1pre codecurl header MyHeader 123 www google com code prepYou can see the request that curl sent by adding the code code option If people want examples ll just leave this here http bropages org,0,NULL,NULL 60956,267427,846145,Civic Duty Yearling Yearling Commentator Popular Question Necromancer Documentation User Good Answer Yearling,NULL,href https curl haxx se docs manpage html rel noreferrer codeman curl code ppre code header lt header gt HTTP Extra header to use when getting web page You may specify any number of extra headers Note that if you should add custom header that has the same name as one of the internal ones curl would use your externally set header will be used instead of the internal one This allows you to make even trickier stuff than curl would normally do You should not replace internally set headers without knowing perfectly well what you re doing Remove an internal header by giving replacement without content on the right side of the colon as in Host curl will make sure that each header you add replace get sent with the proper end of line marker you should thus not add that as part of the header content do not add newlines or carriage returns they will only mess things up for you See also the user agent and referer options This option can be used multiple times to add replace remove multi ple headers code preh1 strongExample strong h1pre codecurl header MyHeader 123 www google com code prepYou can see the request that curl sent by adding the code code option If people want examples ll just leave this here http bropages org,0,NULL,NULL 60957,62219,604260,Editor Teacher Supporter Necromancer Nice Answer,NULL,NULL,1,NULL,How to find the difference between two slices of strings in Golang go pHere is my desired outcome ppre codeslice1 string foo bar hello slice2 string foo bar difference slice1 slice2 gt hello code prepI am looking for the difference between the two string slices pAssuming Go maps are here is an difference function that works on unsorted slices ppre code difference returns the elements in that aren in bfunc difference string string mb map string bool for range mb true ab string for range if ok mb ok ab append ab return ab code pre 60958,241416,586285,NULL,NULL,NULL,0,NULL,NULL 60959,2964,718121,NULL,NULL,NULL,0,NULL,NULL 60960,321075,335938,NULL,NULL,NULL,0,NULL,NULL 60961,103504,9157,Teacher Yearling Critic Commentator Popular Question Yearling Explainer Yearling Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 60962,236640,216803,Editor,NULL,NULL,0,NULL,NULL 60963,792864,1279137,NULL,NULL,NULL,0,NULL,NULL 60964,147402,462620,Citizen Patrol Yearling Popular Question Good Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 60965,267438,31326,Nice Answer Nice Question Popular Question Notable Question Necromancer Popular Question Nice Question Yearling ios Popular Question Notable Question Good Answer Popular Question Civic Duty Popular Question Caucus Popular Question Yearling Announcer Popular Question Popular Question Popular Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 60966,455983,288878,Yearling Critic Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 60967,69010,592405,NULL,NULL,NULL,0,NULL,NULL 60968,81105,964765,NULL,NULL,NULL,0,NULL,NULL 60969,167907,232715,Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 60970,216187,401245,NULL,NULL,NULL,0,NULL,NULL 60971,243898,582982,NULL,NULL,NULL,0,NULL,NULL 60972,45652,46768,Famous Question Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Necromancer Notable Question Notable Question Nice Answer Enlightened Popular Question Enlightened Nice Question Nice Question Yearling Notable Question Necromancer Necromancer Nice Question Notable Question Nice Question Famous Question Popular Question Nice Question Notable Question Notable Question Notable Question Famous Question Notable Question Famous Question Popular Question Yearling Notable Question Popular Question Nice Answer Popular Question Nice Question Good Answer Stellar Question Good Question,NULL,NULL,0,NULL,NULL 60973,5775109,159378,Yearling Good Question,NULL,NULL,0,NULL,NULL 60974,168471,1314847,NULL,NULL,NULL,0,NULL,NULL 60975,240942,812679,NULL,NULL,NULL,0,NULL,NULL 60976,221359,194758,Scholar Announcer,NULL,NULL,0,NULL,NULL 60977,177353,1198040,Necromancer,NULL,NULL,0,NULL,NULL 60978,400289,1004626,Necromancer Supporter Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 60979,237058,221537,Great Answer Nice Answer Nice Answer Guru Yearling Nice Answer Necromancer Good Answer Pundit Revival Cleanup Nice Answer Enlightened Yearling Popular Question Nice Answer Guru Nice Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 60980,123972,698886,Popular Question,NULL,NULL,0,NULL,NULL 60981,33730,155859,Necromancer Yearling,NULL,NULL,0,NULL,NULL 60982,787112,1216802,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 60983,585407,173479,Nice Question Popular Question Favorite Question Famous Question Nice Question Notable Question Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 60984,39049,181278,NULL,NULL,NULL,0,NULL,NULL 60985,431321,307526,NULL,NULL,NULL,0,NULL,NULL 60986,446331,1317735,Supporter Revival Census,NULL,NULL,0,NULL,NULL 60987,60947,576993,NULL,NULL,NULL,0,NULL,NULL 60988,885558,983685,Scholar Student Commentator Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 60989,338513,509631,Nice Answer Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 60990,87785,647107,Yearling Custodian Popular Question Popular Question Popular Question Notable Question Popular Question Good Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Revival Popular Question Census Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 60991,288879,185596,Great Answer Popular Question Yearling Notable Question Popular Question Custodian Yearling Popular Question Necromancer Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 60992,723478,248432,Yearling multithreading Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Nice Answer Enlightened Great Answer Good Answer Guru google-cloud-datastore Nice Answer Enlightened Nice Answer Enlightened Nice Answer Caucus Nice Answer Nice Answer Nice Answer Enlightened Guru Populist Good Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru Generalist Guru Nice Answer Good Answer Nice Answer Guru Pundit Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Good Answer Guru Announcer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 60993,1123832,8513,Popular Question Nice Question Custodian Custodian Nice Answer Enlightened Yearling Caucus Popular Question Civic Duty Guru Notable Question Custodian Yearling Popular Question Census Nice Question Good Question Yearling Custodian,NULL,NULL,0,NULL,NULL 60994,130842,105293,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 60995,51887,410468,Yearling,NULL,NULL,0,NULL,NULL 60996,54534,237336,NULL,NULL,NULL,0,NULL,NULL 60997,19660,119750,Yearling Popular Question Famous Question Good Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 60998,49922,341087,NULL,NULL,NULL,0,NULL,NULL 60999,1087276,107210,NULL,NULL,NULL,0,NULL,NULL 61000,269880,269181,Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Yearling Famous Question Famous Question Notable Question Popular Question Famous Question Popular Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 61001,2526335,1144414,Editor Informed Supporter Autobiographer Custodian,NULL,NULL,0,NULL,NULL 61002,229828,1144414,Editor Informed Supporter Autobiographer Custodian,NULL,NULL,0,NULL,NULL 61003,323300,345716,Self-Learner Necromancer Nice Answer Popular Question Yearling Popular Question Caucus Popular Question Good Answer Custodian Custodian Notable Question Inquisitive Caucus Pundit Good Answer Necromancer Necromancer Yearling Notable Question Necromancer Revival Notable Question Caucus Popular Question Nice Answer Custodian Nice Answer Popular Question Famous Question Popular Question Custodian Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 61004,16495,84816,NULL,NULL,NULL,0,NULL,NULL 61005,254129,599052,NULL,NULL,NULL,0,NULL,NULL 61006,1177296,848706,Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Civic Duty Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Caucus Notable Question Nice Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Caucus Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 61007,60500,966027,NULL,NULL,NULL,0,NULL,NULL 61008,800666,1540902,Guru Yearling Nice Answer Enlightened Great Answer Reviewer Yearling Nice Answer Enlightened Nice Answer Census Yearling,NULL,NULL,0,NULL,NULL 61009,46807,113322,Yearling Nice Answer Enlightened Popular Question Caucus,NULL,NULL,0,NULL,NULL 61010,107639,336800,NULL,NULL,NULL,0,NULL,NULL 61011,469676,137368,Popular Question,NULL,NULL,0,NULL,NULL 61012,4950,369473,Nice Answer,NULL,NULL,0,NULL,NULL 61013,461948,266449,Yearling Census Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 61014,2370,281221,Custodian Guru Citizen Patrol Yearling Critic,NULL,NULL,0,NULL,NULL 61015,16588,194011,NULL,NULL,NULL,0,NULL,NULL 61016,802660,46942,Notable Question Guru Guru Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Nice Answer Enlightened Caucus Socratic Nice Answer Enlightened Yearling Custodian Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Popular Question Famous Question Yearling Popular Question Citizen Patrol Popular Question Popular Question Famous Question Taxonomist Famous Question Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Favorite Question Notable Question Popular Question Notable Question Great Answer Popular Question Notable Question Notable Question Notable Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 61017,100943,788200,Yearling Good Answer Necromancer Commentator Nice Answer Revival Revival Yearling Nice Answer Necromancer Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 61018,1685235,532206,Organizer Custodian Custodian Student Popular Question Guru Tenacious Fanatic Great Answer Nice Answer swift Caucus Great Answer Yearling Revival Popular Question Nice Answer Good Answer Revival Caucus Constituent Excavator Guru Yearling Notable Question Caucus Good Answer Self-Learner,NULL,pAdd these lines ppre codelayout minimumInteritemSpacing 0layout minimumLineSpacing code prepSo you have ppre code Do any additional setup after loading the view typically from nib let layout UICollectionViewFlowLayout UICollectionViewFlowLayout layout sectionInset UIEdgeInsets top 20 left bottom 10 right layout itemSize CGSize width screenWidth height screenWidth layout minimumInteritemSpacing layout minimumLineSpacing collectionView collectionViewLayout layout code prepThat will remove all the spaces and give you grid layout pp img src https stack imgur com CYQlZ jpg alt enter image description here ppIf you want the first column to have width equal to the screen width then add the following function ppre codefunc collectionView collectionView UICollectionView layout collectionViewLayout UICollectionViewLayout sizeForItemAtIndexPath indexPath NSIndexPath gt CGSize if indexPath row return CGSize width screenWidth height screenWidth return CGSize width screenWidth height screenWidth code prepGrid layout will now look like ve also added blue background to first cell img src https stack imgur com HHrAy jpg alt enter image description here hava look at https github com petetodd BGSEmbeddedCVSwift for an example In the storyboard size inspector you can change some of the collection view layout settings but you will probably need to do some calculations and set some layout values in the code pAdd these lines ppre codelayout minimumInteritemSpacing 0layout minimumLineSpacing code prepSo you have ppre code Do any additional setup after loading the view typically from nib let layout UICollectionViewFlowLayout UICollectionViewFlowLayout layout sectionInset UIEdgeInsets top 20 left bottom 10 right layout itemSize CGSize width screenWidth height screenWidth layout minimumInteritemSpacing layout minimumLineSpacing collectionView collectionViewLayout layout code prepThat will remove all the spaces and give you grid layout pp img src https stack imgur com CYQlZ jpg alt enter image description here ppIf you want the first column to have width equal to the screen width then add the following function ppre codefunc collectionView collectionView UICollectionView layout collectionViewLayout UICollectionViewLayout sizeForItemAtIndexPath indexPath NSIndexPath gt CGSize if indexPath row return CGSize width screenWidth height screenWidth return CGSize width screenWidth height screenWidth code prepGrid layout will now look like ve also added blue background to first cell img src https stack imgur com HHrAy jpg alt enter image description here you will need to adjust the size of the collection view cell the line return CGSize width screenWidth height screenWidth,0,NULL,NULL 61019,509684,1544200,Scholar Tumbleweed Announcer Student Announcer Supporter Teacher Self-Learner,NULL,NULL,0,NULL,NULL 61020,27509,346693,Nice Answer Enlightened Yearling Good Question Nice Answer Popular Question Great Question Famous Question Nice Answer Enlightened Guru Yearling Nice Answer Popular Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61021,297614,1091704,Necromancer,NULL,NULL,0,NULL,NULL 61022,530848,516833,Popular Question Good Question Popular Question Yearling Popular Question Notable Question Nice Question Nice Question Popular Question Autobiographer Yearling Good Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 61023,115546,1538451,Census Autobiographer,NULL,NULL,0,NULL,NULL 61024,83391,8229,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 61025,29158,25911,Nice Answer Enlightened Famous Question Famous Question Citizen Patrol Yearling Nice Question Good Answer Popular Question Notable Question Good Answer Nice Question Yearling Notable Question Notable Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 61026,679694,685880,NULL,NULL,NULL,0,NULL,NULL 61027,344000,416682,NULL,NULL,NULL,0,NULL,NULL 61028,227274,1426850,Yearling,NULL,NULL,0,NULL,NULL 61029,85890,1282804,NULL,NULL,NULL,0,NULL,NULL 61030,583834,556354,NULL,NULL,NULL,0,NULL,NULL 61031,589973,1633,Good Answer Yearling Excavator Good Answer Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 61032,9881,963831,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61033,32127,764036,NULL,NULL,NULL,0,NULL,NULL 61034,7589,143686,Custodian Good Answer Yearling Nice Answer Custodian Proofreader Custodian Reviewer Necromancer Revival Yearling Documentation User Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 61035,279336,220946,NULL,NULL,NULL,0,NULL,NULL 61036,504589,445639,Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Nice Question Good Answer Yearling Favorite Question Nice Question Notable Question Yearling Famous Question Famous Question Popular Question Popular Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 61037,210247,145585,Caucus Nice Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 61038,217677,197360,NULL,NULL,NULL,0,NULL,NULL 61039,123426,467512,Custodian Informed Autobiographer Custodian Revival Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61040,1664745,370876,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61041,100086,98530,Good Answer Nice Question Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Yearling Guru postgresql Good Answer Revival Nice Answer Nice Answer Enlightened Nice Answer Great Answer Populist Good Answer Guru Yearling Guru Good Answer Guru homebrew Nice Answer Enlightened Good Answer Famous Question Populist Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 61042,502943,744254,Supporter Teacher,NULL,NULL,0,NULL,NULL 61043,1076127,21365,Reviewer Yearling Great Answer Great Answer Revival Yearling Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61044,442510,685503,NULL,NULL,NULL,0,NULL,NULL 61045,213746,202803,Revival,NULL,NULL,0,NULL,NULL 61046,1717224,1196179,NULL,NULL,NULL,0,NULL,NULL 61047,511480,1198815,NULL,NULL,NULL,0,NULL,NULL 61048,310705,41223,Announcer Booster Famous Question Yearling Critic Revival Announcer Announcer Civic Duty Curious Informed Autobiographer Revival,NULL,NULL,0,NULL,NULL 61049,1348288,810966,NULL,NULL,NULL,0,NULL,NULL 61050,500014,335340,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61051,36482,258822,NULL,NULL,NULL,0,NULL,NULL 61052,25117,113938,Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Guru Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Informed Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Question Guru Nice Answer Enlightened Nice Answer Yearling Necromancer Nice Answer Good Answer Guru arrays Nice Answer Enlightened Guru Disciplined Documentation User Nice Answer Nice Answer Enlightened Nice Answer Census Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Question Yearling xpath Nice Answer Nice Answer Nice Answer Great Answer Good Answer,NULL,pBuilding on href https stackoverflow com questions 3338123 how do recursively delete directory and its entire contents filessub dirs comment 3477301 The Pixel Developer comment snippet using the SPL might look like ppre code files new RecursiveIteratorIterator new RecursiveDirectoryIterator dir RecursiveDirectoryIterator SKIP DOTS RecursiveIteratorIterator CHILD FIRST foreach files as fileinfo todo fileinfo gt isDir rmdir unlink todo fileinfo gt getRealPath rmdir dir code prep supNote It does strongno strong sanity checking and makes use of the SKIP DOTS flag introduced with the FilesystemIterator in PHP Of course the code todo code could be an codeif code codeelse code The important point is that codeCHILD FIRST code is used to iterate over the children files first before their parent folders sup no it won the FilesystemIterator is not recursive iterator,0,NULL,NULL 61053,256463,90630,Nice Question,NULL,NULL,0,NULL,NULL 61054,1102637,802438,NULL,NULL,NULL,0,NULL,NULL 61055,301490,1201867,Student Critic,NULL,NULL,0,NULL,NULL 61056,865706,1013562,Yearling Famous Question Popular Question Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 61057,259593,341629,NULL,NULL,NULL,0,NULL,NULL 61058,350263,941201,NULL,NULL,NULL,0,NULL,NULL 61059,296263,654619,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 61060,694426,1083814,Yearling Critic Revival Notable Question Popular Question Nice Answer Enlightened Informed,NULL,NULL,0,NULL,NULL 61061,197320,905970,NULL,NULL,NULL,0,NULL,NULL 61062,248176,66169,Nice Answer Enlightened Yearling Nice Answer Enlightened Revival Revival Nice Answer iis Nice Answer Tag Editor Nice Answer Enlightened Nice Answer asp.net Good Answer Revival Yearling Good Answer Announcer Nice Answer Enlightened Caucus Good Answer Notable Question Popular Question Guru Yearling Necromancer Nice Answer Enlightened Good Answer powershell,NULL,NULL,0,NULL,NULL 61063,178222,283925,Yearling Yearling Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 61064,227238,122446,Nice Question Custodian Notable Question Popular Question Yearling Popular Question Nice Question Popular Question Nice Answer Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Good Answer Famous Question Nice Question Popular Question Good Answer Popular Question Yearling Notable Question Guru Popular Question,NULL,NULL,0,NULL,NULL 61065,200722,733545,Notable Question Nice Answer Yearling Popular Question Notable Question Yearling Popular Question Populist Yearling,NULL,NULL,0,NULL,NULL 61066,17781,80237,Yearling Notable Question Caucus,NULL,NULL,0,NULL,NULL 61067,968815,810705,NULL,NULL,NULL,0,NULL,NULL 61068,847641,586904,NULL,NULL,NULL,0,NULL,NULL 61069,6359928,586904,NULL,NULL,NULL,0,NULL,NULL 61070,1135116,1020374,NULL,NULL,NULL,0,NULL,NULL 61071,42510,191090,Nice Question Famous Question Yearling Caucus Necromancer Necromancer Necromancer Nice Answer Good Answer Notable Question Yearling Nice Answer Custodian Nice Answer Yearling Guru Custodian,NULL,NULL,0,NULL,NULL 61072,66815,629282,Self-Learner,NULL,NULL,0,NULL,NULL 61073,864205,215600,Notable Question Notable Question Necromancer Popular Question Popular Question Great Answer Yearling Good Answer Great Answer Famous Question Nice Answer Nice Answer Yearling Necromancer Nice Answer Nice Answer Nice Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 61074,175273,929292,NULL,NULL,NULL,0,NULL,NULL 61075,1255528,1170932,Good Question Informed Popular Question Civic Duty Notable Question Yearling Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 61076,173757,471096,NULL,NULL,NULL,0,NULL,NULL 61077,93064,154048,Popular Question Curious,NULL,NULL,0,NULL,NULL 61078,205377,608962,NULL,NULL,NULL,0,NULL,NULL 61079,428606,1401811,NULL,NULL,NULL,0,NULL,NULL 61080,230170,948126,Popular Question,NULL,NULL,0,NULL,NULL 61081,372080,1525358,Yearling Yearling Peer Pressure Critic Yearling Popular Question Citizen Patrol Custodian Popular Question Caucus Self-Learner Yearling Caucus Notable Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61082,953905,1338281,Student,NULL,NULL,0,NULL,NULL 61083,243625,31531,Nice Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 61084,714925,546661,Popular Question Popular Question Famous Question Popular Question Popular Question Good Answer Guru Good Question Famous Question Good Answer Popular Question Notable Question Good Question Guru Notable Question Nice Answer Popular Question Nice Question Nice Question Nice Answer Nice Answer Enlightened Popular Question Great Answer Great Answer Famous Question Nice Answer Nice Question Good Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Announcer Popular Question Nice Answer Great Answer Caucus Popular Question Constituent Good Answer Yearling Good Question Notable Question Great Answer Popular Question Notable Question Popular Question Guru Good Question Nice Question Good Answer Nice Answer Enlightened Famous Question Popular Question Popular Question Great Answer Popular Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Caucus Good Question Constituent Good Answer Notable Question Good Answer Famous Question Nice Answer Popular Question Documentation User Nice Answer Notable Question Notable Question Notable Question Notable Question Yearling Famous Question arrays Great Question Census Favorite Question Popular Question Nice Question Nice Answer Guru Great Answer Caucus Guru Guru Popular Question Famous Question Nice Answer Enlightened Good Answer Great Question Good Answer Nice Answer Popular Question Popular Question Good Question Popular Question Popular Question Famous Question Nice Answer Notable Question Nice Question Nice Question Popular Question Great Question Famous Question Guru,NULL,pI don know how you are expecting codearray remove int code to behave There are three possibilities can think of that you might be wanting ppTo remove an element of an array at an index codei code ppre codearray splice code prepIf you want to remove every element with value codenumber code from the array ppre codefor var array length gt if array number array splice code prepIf you just want to make the element at index codei code no longer exist but you don want the indexes of the other elements to change ppre codedelete array code pre That part of the answer is at the very bottom It not my fault if people skip to the bottom and ignore the description describing what it does pI don know how you are expecting codearray remove int code to behave There are three possibilities can think of that you might be wanting ppTo remove an element of an array at an index codei code ppre codearray splice code prepIf you want to remove every element with value codenumber code from the array ppre codefor var array length gt if array number array splice code prepIf you just want to make the element at index codei code no longer exist but you don want the indexes of the other elements to change ppre codedelete array code pre Sorry disagree don see the need for this to be removed The text above clearly explains what it does and it helps people who don know what delete does to understand why it doesn work as they expect,0,NULL,NULL 61085,625791,784435,NULL,NULL,NULL,0,NULL,NULL 61086,644765,1107147,NULL,NULL,NULL,0,NULL,NULL 61087,90203,441512,Yearling Good Answer Famous Question Good Question,NULL,NULL,0,NULL,NULL 61088,264397,760781,Necromancer,NULL,NULL,0,NULL,NULL 61089,2025137,1226809,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 61090,210005,1270216,NULL,NULL,NULL,0,NULL,NULL 61091,62981,276143,NULL,NULL,NULL,0,NULL,NULL 61092,41024,779396,NULL,NULL,NULL,0,NULL,NULL 61093,547935,381697,Nice Answer Enlightened Yearling Yearling Popular Question Yearling Announcer Popular Question Documentation User Yearling Curious Announcer Yearling,NULL,NULL,0,NULL,NULL 61094,453857,974527,NULL,NULL,NULL,0,NULL,NULL 61095,54346,1186912,NULL,NULL,NULL,0,NULL,NULL 61096,202321,427923,Notable Question Yearling Custodian Custodian Custodian Critic,NULL,NULL,0,NULL,NULL 61097,254434,782920,Critic Announcer Announcer Yearling Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 61098,718368,1427048,NULL,NULL,NULL,0,NULL,NULL 61099,840521,356073,NULL,NULL,NULL,0,NULL,NULL 61100,68039,384109,Yearling,NULL,NULL,0,NULL,NULL 61101,1052034,884182,Informed,NULL,NULL,0,NULL,NULL 61102,160585,484837,NULL,NULL,NULL,0,NULL,NULL 61103,87847,564836,Popular Question Popular Question Nice Question Yearling Self-Learner Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 61104,434655,617552,Famous Question Famous Question Yearling Notable Question Caucus Constituent Revival Notable Question Caucus Constituent Notable Question Notable Question Popular Question Popular Question Caucus Constituent Inquisitive Notable Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 61105,1211714,866143,NULL,NULL,NULL,0,NULL,NULL 61106,19610,277260,Popular Question Notable Question Nice Answer Yearling Caucus Nice Question Notable Question Caucus Notable Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 61107,45119,941500,Good Answer,NULL,NULL,0,NULL,NULL 61108,486700,441894,Yearling Nice Answer Enlightened Curious Custodian Revival Necromancer Nice Question Necromancer Nice Answer Yearling Excavator Nice Answer Notable Question Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 61109,17245,140514,Nice Answer Enlightened Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 61110,1209644,293110,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61111,270047,895586,NULL,NULL,NULL,0,NULL,NULL 61112,171049,567537,NULL,NULL,NULL,0,NULL,NULL 61113,151750,567537,NULL,NULL,NULL,0,NULL,NULL 61114,105981,828414,Popular Question Popular Question Yearling Revival Notable Question Nice Question Self-Learner Famous Question Notable Question Famous Question Necromancer Nice Answer Enlightened Yearling Popular Question Caucus Nice Answer Popular Question Organizer Custodian Famous Question Yearling Custodian Good Question,NULL,NULL,0,NULL,NULL 61115,887253,1262350,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61116,80247,995876,Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Taxonomist Good Answer promise Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer jquery-selectors Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer scope Nice Answer Guru Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened character-encoding Nice Answer Good Answer Yearling Nice Answer q Nice Answer Nice Answer Enlightened Nice Answer Nice Answer asynchronous Enlightened Nice Answer Good Answer Guru java Great Answer Good Answer Nice Answer Nice Answer Guru javascript-events Good Answer Guru Good Answer Nice Answer Nice Answer Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Necromancer Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Great Answer Good Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Populist Great Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Guru Enlightened Great Answer Guru Good Answer Yearling Announcer Nice Answer Guru,NULL,NULL,0,NULL,NULL 61117,182411,182145,NULL,NULL,NULL,0,NULL,NULL 61118,748914,326645,NULL,NULL,NULL,0,NULL,NULL 61119,499251,1020811,Editor Student Informed Scholar,NULL,NULL,0,NULL,NULL 61120,29127,282931,NULL,NULL,NULL,0,NULL,NULL 61121,745589,381942,NULL,NULL,NULL,0,NULL,NULL 61122,510537,577640,NULL,NULL,NULL,0,NULL,NULL 61123,1168242,371707,Nice Question Popular Question Yearling Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 61124,233938,256008,Critic,NULL,NULL,0,NULL,NULL 61125,142554,1421292,Yearling,NULL,NULL,0,NULL,NULL 61126,171541,196206,Self-Learner Announcer Nice Answer Announcer Yearling Caucus Nice Answer Popular Question Revival Necromancer Necromancer Yearling Revival Custodian Good Answer Great Answer Announcer Nice Answer Announcer Nice Answer Necromancer Announcer Nice Answer Enlightened Custodian Nice Answer Nice Answer Necromancer Necromancer Yearling Popular Question Curious,NULL,pIf your dictionary is not nested you could make frozenset with the dict items and use href https docs python org library functions html hash rel noreferrer codehash code ppre codehash frozenset my dict items code prepThis is much less computationally intensive than generating the JSON string or representation of the dictionary That correct random seed for hash was introduced in Python for security reasons http stackoverflow com 27522708 196206 That renders this answer unusable except if you need hash stability only during single interpreter lifetime,0,NULL,NULL 61127,545365,888716,NULL,NULL,NULL,0,NULL,NULL 61128,344786,1333025,Nice Question Necromancer Nice Answer Notable Question Nice Answer Nice Answer Notable Question Nice Answer Notable Question Notable Question Nice Question Popular Question Necromancer Nice Answer Yearling Good Answer Nice Question Nice Answer monad-transformers Good Answer Popular Question Guru Notable Question Popular Question Nice Answer Good Answer Popular Question Notable Question Necromancer Popular Question Good Question Nice Answer Nice Answer Good Answer Popular Question Enlightened Good Question Necromancer Popular Question scala Good Question Necromancer Nice Answer Enlightened Nice Question Popular Question Popular Question Nice Question Notable Question Good Answer Announcer Popular Question Nice Answer Popular Question Good Question Popular Question Yearling Announcer Nice Answer Announcer Announcer Guru Good Answer Popular Question Nice Answer Enlightened Notable Question Good Question Notable Question Nice Question Great Answer Popular Question Popular Question Announcer Nice Question Nice Answer Nice Answer Announcer Good Question Announcer Notable Question Nice Answer Nice Question Good Question Nice Answer Popular Question Yearling Notable Question Good Question Popular Question Famous Question Nice Answer Good Answer Notable Question Nice Answer Announcer Popular Question Popular Question Good Question Popular Question Nice Question Announcer Popular Question Nice Answer Guru Good Answer Nice Answer Enlightened Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 61129,173394,686540,Nice Answer Nice Answer Announcer Announcer Yearling Announcer Good Answer Nice Answer Announcer Necromancer Announcer Good Answer Announcer Nice Question Announcer Necromancer Yearling Announcer Guru Caucus Popular Question Nice Answer Nice Answer Necromancer Yearling Guru Good Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 61130,65231,7806,Popular Question Nice Question c Good Answer Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Announcer Famous Question Yearling Documentation User Guru Census Announcer Announcer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 61131,20480,465732,Informed Autobiographer,NULL,NULL,0,NULL,NULL 61132,483587,190438,Nice Question Nice Question Great Answer Good Answer Necromancer Nice Answer Good Question Yearling Nice Question Nice Answer Nice Question Necromancer Inquisitive Popular Question Popular Question Necromancer Good Question Good Answer Good Question Custodian Famous Question Yearling Popular Question Notable Question Notable Question Announcer Yearling Announcer,NULL,Why are ES6 classes not hoisted javascript ecmascript pSince ES6 classes are just emsyntactical sugar over JavaScript existing prototype based inheritance em href https developer mozilla org en US docs Web JavaScript Reference Classes rel noreferrer it would IMO make sense to hoist it definition ppre codevar foo new Foo this worksfunction Foo this this code prepBut the following won work ppre codevar foo new Foo ReferenceErrorclass Foo constructor this this code prepWhy are ES6 classes not hoisted Crowder So do you think the ES6 committee just decided that hoisting as in ES6 functions is wrong,1,Why are ES6 classes not hoisted javascript ecmascript pSince ES6 classes are just emsyntactical sugar over JavaScript existing prototype based inheritance em href https developer mozilla org en US docs Web JavaScript Reference Classes rel noreferrer it would IMO make sense to hoist it definition ppre codevar foo new Foo this worksfunction Foo this this code prepBut the following won work ppre codevar foo new Foo ReferenceErrorclass Foo constructor this this code prepWhy are ES6 classes not hoisted,NULL 61133,62421,762026,Good Answer,NULL,NULL,0,NULL,NULL 61134,4516190,1300319,NULL,NULL,NULL,0,NULL,NULL 61135,481022,427520,NULL,NULL,NULL,0,NULL,NULL 61136,87356,209810,NULL,NULL,NULL,0,NULL,NULL 61137,1149391,1235925,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 61138,259621,1390910,Supporter,NULL,NULL,0,NULL,NULL 61139,241637,1184730,NULL,NULL,NULL,0,NULL,NULL 61140,44627,164999,Good Answer Yearling Guru jquery Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 61141,353668,688954,Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Custodian Enthusiast Popular Question Notable Question Documentation User Popular Question Notable Question Popular Question Notable Question Yearling Nice Question Popular Question Nice Question Custodian Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61142,403446,941314,Yearling Tumbleweed Custodian Notable Question Self-Learner Necromancer Popular Question Yearling Popular Question Popular Question Notable Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 61143,313367,646542,Yearling Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 61144,608109,933228,Revival Yearling Nice Answer Popular Question Yearling Good Answer Self-Learner Yearling Announcer Yearling Popular Question,NULL,NULL,1,How to get argparse to read arguments from file with an option after positional arguments python argparse pI would like to be able to put command line arguments in file and then pass them to python program with argparse using an option rather than prefix character for instance code python myprogram py foo somefile txt bar codeThis is almost the same as href https stackoverflow com questions 27433316 how to get argparse to read arguments from file with an option rather than pre this question except that need to have some positional arguments at the start when that solution calls codeparse args code it fails if the file does not have the positional arguments in it,NULL 61145,291058,1230775,Nice Question Yearling Explainer Notable Question,NULL,NULL,0,NULL,NULL 61146,1844736,487040,NULL,NULL,NULL,0,NULL,NULL 61147,286348,313554,Announcer Announcer Announcer Announcer Announcer Announcer Announcer Nice Answer Enlightened Yearling Announcer Revival Announcer Yearling Good Answer Announcer Necromancer Nice Question Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 61148,1438007,1256394,Necromancer Yearling Great Answer Tumbleweed Excavator Custodian Custodian Popular Question Yearling Revival Popular Question Notable Question python Nice Question Necromancer Yearling Revival Nice Answer Famous Question,NULL,pUse the strongstr translate strong method ppPresuming you will be doing this often pp Once create string containing all the characters you wish to delete ppre codedelchars join for in map chr range 256 if not isalnum code prep Whenever you want to scrunch string ppre codescrunched translate None delchars code prepThe setup cost probably compares favourably with re compile the marginal cost is way lower ppre codeC junk gt python26 python mtimeit import string join for in map chr range 256 if not isalnum string printable translate None 100000 loops best of 04 usec per loopC junk gt python26 python mtimeit import re string string printable re compile sub 100000 loops best of 34 usec per loop code prepNote strongUsing string printable as benchmark data gives the pattern an unfair advantage strong all the non alphanumeric characters are in one bunch in typical data there would be more than one substitution to do ppre codeC junk gt python26 python import string string printable print len repr 100 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ amp gt x0b x0c code prepHere what happens if you give re sub bit more work to do ppre codeC junk gt python26 python mtimeit join for in map chr range 256 if not isalnum foo 25 translate None 1000000 loops best of 97 usec per loopC junk gt python26 python mtimeit import re foo 25 re compile sub 10000 loops best of 26 usec per loop code pre Does not work with unicode either href https setuptools readthedocs io en latest pkg resources html entry points rel noreferrer title EntryPoints EntryPoints provide persistent filesystem based object name registration and name based direct object import mechanism implemented by the href http pypi python org pypi setuptools rel noreferrer setuptools package ppThey associate names of Python objects with free form identifiers So any other code using the same Python installation and knowing the identifier can access an object with the associated name no matter where the object is defined The strongassociated names can be any names existing in Python module strong for example name of class function or variable The entry point mechanism does not care what the name refers to as long as it is importable ppAs an example let use the name of function and an imaginary python module with fully qualified name myns mypkg mymodule ppre codedef the function function whose name is the function in mymodule module print hello from the function code prepEntry points are registered via an entry points declaration in setup py To register the function under entrypoint called my ep func ppre code entry points my ep group id my ep func myns mypkg mymodule the function code prepAs the example shows entry points are grouped there corresponding API to look up all entry points belonging to group example below ppUpon package installation ie running python setup py install the above declaration is parsed by setuptools It then writes the parsed information in special file After that the href https setuptools readthedocs io en latest pkg resources html api reference rel noreferrer pkg resources API part of setuptools can be used to look up the entry point and access the object with the associated name ppre codeimport pkg resourcesnamed objects for ep in pkg resources iter entry points group my ep group id named objects update ep name ep load code prepHere setuptools read the entry point information that was written in special files It found the entry point imported the module myns mypkg mymodule and retrieved the function defined there upon call to pkg resources load ppAssuming there were no other entry point registrations for the same group id calling the function would then be simple ppre code gt gt gt named objects my ep func hello from the function code prepThus while perhaps bit difficult to grasp at first the entry point mechanism is actually quite simple to use It provides an useful tool for pluggable Python software development The link is corrected now Thank you,0,NULL,NULL 61149,521540,1256394,Necromancer Yearling Great Answer Tumbleweed Excavator Custodian Custodian Popular Question Yearling Revival Popular Question Notable Question python Nice Question Necromancer Yearling Revival Nice Answer Famous Question,NULL,pUse the strongstr translate strong method ppPresuming you will be doing this often pp Once create string containing all the characters you wish to delete ppre codedelchars join for in map chr range 256 if not isalnum code prep Whenever you want to scrunch string ppre codescrunched translate None delchars code prepThe setup cost probably compares favourably with re compile the marginal cost is way lower ppre codeC junk gt python26 python mtimeit import string join for in map chr range 256 if not isalnum string printable translate None 100000 loops best of 04 usec per loopC junk gt python26 python mtimeit import re string string printable re compile sub 100000 loops best of 34 usec per loop code prepNote strongUsing string printable as benchmark data gives the pattern an unfair advantage strong all the non alphanumeric characters are in one bunch in typical data there would be more than one substitution to do ppre codeC junk gt python26 python import string string printable print len repr 100 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ amp gt x0b x0c code prepHere what happens if you give re sub bit more work to do ppre codeC junk gt python26 python mtimeit join for in map chr range 256 if not isalnum foo 25 translate None 1000000 loops best of 97 usec per loopC junk gt python26 python mtimeit import re foo 25 re compile sub 10000 loops best of 26 usec per loop code pre Does not work with unicode either href https setuptools readthedocs io en latest pkg resources html entry points rel noreferrer title EntryPoints EntryPoints provide persistent filesystem based object name registration and name based direct object import mechanism implemented by the href http pypi python org pypi setuptools rel noreferrer setuptools package ppThey associate names of Python objects with free form identifiers So any other code using the same Python installation and knowing the identifier can access an object with the associated name no matter where the object is defined The strongassociated names can be any names existing in Python module strong for example name of class function or variable The entry point mechanism does not care what the name refers to as long as it is importable ppAs an example let use the name of function and an imaginary python module with fully qualified name myns mypkg mymodule ppre codedef the function function whose name is the function in mymodule module print hello from the function code prepEntry points are registered via an entry points declaration in setup py To register the function under entrypoint called my ep func ppre code entry points my ep group id my ep func myns mypkg mymodule the function code prepAs the example shows entry points are grouped there corresponding API to look up all entry points belonging to group example below ppUpon package installation ie running python setup py install the above declaration is parsed by setuptools It then writes the parsed information in special file After that the href https setuptools readthedocs io en latest pkg resources html api reference rel noreferrer pkg resources API part of setuptools can be used to look up the entry point and access the object with the associated name ppre codeimport pkg resourcesnamed objects for ep in pkg resources iter entry points group my ep group id named objects update ep name ep load code prepHere setuptools read the entry point information that was written in special files It found the entry point imported the module myns mypkg mymodule and retrieved the function defined there upon call to pkg resources load ppAssuming there were no other entry point registrations for the same group id calling the function would then be simple ppre code gt gt gt named objects my ep func hello from the function code prepThus while perhaps bit difficult to grasp at first the entry point mechanism is actually quite simple to use It provides an useful tool for pluggable Python software development The link is corrected now Thank you,0,NULL,NULL 61150,22265,639276,Good Answer Yearling Curious Yearling Good Question Popular Question Nice Answer Favorite Question,NULL,NULL,0,NULL,NULL 61151,467356,2815,Famous Question Yearling Good Question Tumbleweed Nice Answer Nice Answer Enlightened Nice Question Announcer Nice Question Yearling,NULL,NULL,0,NULL,NULL 61152,219877,784260,Nice Answer Necromancer Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61153,35382,326220,NULL,NULL,NULL,0,NULL,NULL 61154,81856,90034,Great Question Yearling Custodian Yearling Editor Stellar Question Yearling,NULL,NULL,0,NULL,NULL 61155,654143,322900,Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Famous Question Popular Question Nice Answer Enlightened Popular Question Great Question Famous Question Popular Question Great Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61156,52632,1322364,NULL,NULL,NULL,0,NULL,NULL 61157,1277819,1206821,NULL,NULL,,0,, 61158,4477258,519539,Notable Question Good Answer Good Answer Notable Question Populist Popular Question Yearling Necromancer Popular Question Notable Question Notable Question Popular Question Guru Notable Question Yearling Caucus Popular Question Notable Question Explainer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 61159,190188,519539,Notable Question Good Answer Good Answer Notable Question Populist Popular Question Yearling Necromancer Popular Question Notable Question Notable Question Popular Question Guru Notable Question Yearling Caucus Popular Question Notable Question Explainer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 61160,3528507,870571,NULL,NULL,NULL,0,NULL,NULL 61161,625813,870571,NULL,NULL,NULL,0,NULL,NULL 61162,195587,915886,NULL,NULL,NULL,0,NULL,NULL 61163,702932,901249,Yearling Popular Question Notable Question Notable Question Caucus Nice Question Good Answer Caucus Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 61164,161608,639951,Popular Question,NULL,NULL,0,NULL,NULL 61165,767590,1301647,Popular Question,NULL,NULL,0,NULL,NULL 61166,1530257,2812,Yearling Caucus Nice Answer Guru Great Answer Yearling Good Answer Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 61167,38766,2812,Yearling Caucus Nice Answer Guru Great Answer Yearling Good Answer Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 61168,2192247,724284,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61169,1032835,724284,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61170,1463370,521957,Self-Learner Announcer Citizen Patrol Great Answer Popular Question Announcer Popular Question Populist Caucus Yearling Civic Duty Notable Question Census Necromancer Announcer Peer Pressure Critic Nice Answer Tumbleweed Curious Revival Caucus Necromancer Revival Yearling Custodian Enthusiast Caucus Disciplined Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 61171,214828,552710,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 61172,393007,597942,NULL,NULL,NULL,0,NULL,NULL 61173,1372723,1373312,NULL,NULL,NULL,0,NULL,NULL 61174,132930,615910,NULL,NULL,NULL,0,NULL,NULL 61175,259265,577682,NULL,NULL,NULL,0,NULL,NULL 61176,632643,22716,Necromancer Yearling Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 61177,307714,422848,Announcer Popular Question Revival Civic Duty,NULL,NULL,0,NULL,NULL 61178,386509,359866,Popular Question Popular Question Yearling Popular Question Popular Question Excavator Notable Question Great Question Guru Nice Question Famous Question Notable Question Good Question Popular Question Autobiographer Notable Question Popular Question Yearling Famous Question Announcer Popular Question Famous Question Famous Question Good Answer Favorite Question Good Answer Nice Question Popular Question Yearling Nice Answer Good Question Great Answer,NULL,NULL,0,NULL,NULL 61179,65127,140734,Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 61180,183420,1056491,Curious Enthusiast Informed Autobiographer Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61181,76421,431223,Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 61182,3927965,955018,NULL,NULL,NULL,0,NULL,NULL 61183,691130,301924,NULL,NULL,NULL,0,NULL,NULL 61184,23952,116186,Custodian Nice Answer Inquisitive Notable Question Notable Question Yearling Organizer Promoter Benefactor Popular Question Famous Question Citizen Patrol Notable Question Custodian Good Question Yearling Necromancer Nice Answer Popular Question Great Answer Popular Question Notable Question Necromancer Yearling Good Answer Nice Answer Revival Enthusiast Populist Excavator,NULL,NULL,1,NULL,Load Pretrained glove vectors in python python vector nlp pI have downloaded pretrained glove vector file from the internet It is txt file am unable to load and access it It is easy to load and access word vector binary file using gensim but don know how to do it when it is text file format ppThanks in advance pYou can do it much faster with pandas ppre codeimport pandas as pdimport csvwords pd read table glove data file sep index col header None quoting csv QUOTE NONE code prepThen to get the vector for word ppre codedef vec return words loc as matrix code prepAnd to find the closest word to vector ppre codewords matrix words as matrix def find closest word diff words matrix delta np sum diff diff axis np argmin delta return words iloc name code pre 61185,376629,327721,Critic Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 61186,318617,19526,Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 61187,240428,28841,Notable Question Notable Question Good Question Famous Question Famous Question Famous Question Great Question Yearling Custodian Custodian Popular Question Nice Question Yearling Popular Question Famous Question Notable Question Notable Question Revival Nice Question Yearling,NULL,NULL,0,NULL,NULL 61188,631212,257980,Famous Question Famous Question Yearling Notable Question Nice Answer Documentation User Custodian Popular Question,NULL,NULL,0,NULL,NULL 61189,32158,963612,Nice Answer,NULL,NULL,0,NULL,NULL 61190,261515,133153,Critic Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 61191,829227,967501,Tenacious Proofreader Peer Pressure Investor Altruist Electorate Nice Answer Nice Question Notable Question Notable Question Yearling Reviewer Deputy Famous Question Caucus Popular Question Tag Editor Popular Question Census Popular Question Popular Question Nice Question Caucus Notable Question Notable Question Yearling Documentation User Notable Question Notable Question Census Caucus Constituent Notable Question Necromancer Revival Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 61192,469143,1380065,NULL,NULL,NULL,0,NULL,NULL 61193,250037,732547,Scholar Editor Commentator,NULL,NULL,0,NULL,NULL 61194,1234659,1139543,NULL,NULL,NULL,0,NULL,NULL 61195,49156,165059,Nice Answer Enlightened Nice Answer Nice Answer Notable Question Good Question Good Answer Yearling Great Answer Populist Great Answer Good Answer Good Answer Good Question Yearling Good Answer Nice Answer Good Answer Notable Question Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61196,628872,1350443,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61197,1141023,646249,NULL,NULL,NULL,0,NULL,NULL 61198,208747,887858,Yearling,NULL,NULL,0,NULL,NULL 61199,270391,44639,Notable Question Nice Answer Notable Question Good Question Yearling python Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 61200,92946,452684,Nice Question Revival Notable Question Notable Question Popular Question Nice Question Famous Question Famous Question Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 61201,783755,697672,NULL,NULL,NULL,0,NULL,NULL 61202,140510,1143614,NULL,NULL,NULL,0,NULL,NULL 61203,63054,1308164,NULL,NULL,NULL,0,NULL,NULL 61204,88741,1141162,NULL,NULL,NULL,0,NULL,NULL 61205,138399,685291,Popular Question,NULL,NULL,0,NULL,NULL 61206,1171923,465850,NULL,NULL,NULL,0,NULL,NULL 61207,171863,1463744,Commentator Civic Duty Famous Question Nice Answer Good Question Informed Revival Necromancer Popular Question Curious Yearling Necromancer Critic Nice Answer Yearling Revival Nice Answer Necromancer Census Yearling Announcer,NULL,AWS Certificate Reimport reflection on CloudFront amazon web services ssl ssl certificate amazon cloudfront amazon acm pAs my SSL certificate expired ve received the renewal from the certificate authority and reimported on AWS Certificate Manager console and it promptly changed from codeExpired code back to codeIssued code It is directly linked to CloudFront distribution and it looks like after while won reflect that very change ve then checked it SSL Certificate Identifier which matches the correct ACM entry ve invalidated all the cache after that to make sure it would reflect even on anonymous window but there is no luck just yet ppI was unable to find on AWS documentation if it would take several hours to reflect or any other action is required in order to get it working One thing didn try was to clear local browser cache as understand that several users depend on that and somehow like this update to be transparent to all of them ppI appreciate any clues or tips on this matter Hi sqlbot the reimport was suggested by ACM console to renew as the certificate was expired Thanks anyway AWS Certificate Reimport reflection on CloudFront amazon web services ssl ssl certificate amazon cloudfront amazon acm pAs my SSL certificate expired ve received the renewal from the certificate authority and reimported on AWS Certificate Manager console and it promptly changed from codeExpired code back to codeIssued code It is directly linked to CloudFront distribution and it looks like after while won reflect that very change ve then checked it SSL Certificate Identifier which matches the correct ACM entry ve invalidated all the cache after that to make sure it would reflect even on anonymous window but there is no luck just yet ppI was unable to find on AWS documentation if it would take several hours to reflect or any other action is required in order to get it working One thing didn try was to clear local browser cache as understand that several users depend on that and somehow like this update to be transparent to all of them ppI appreciate any clues or tips on this matter sqlbot one advantage of reimport in this case is that no approval process is going to happen and in my situation it would take up to several days for that agree with you that it would be simpler to apply on CloudFront once approved thou As was able to figure an alternative way ve posted the answer below so others can use it in the future Keep Rocking,1,AWS Certificate Reimport reflection on CloudFront amazon web services ssl ssl certificate amazon cloudfront amazon acm pAs my SSL certificate expired ve received the renewal from the certificate authority and reimported on AWS Certificate Manager console and it promptly changed from codeExpired code back to codeIssued code It is directly linked to CloudFront distribution and it looks like after while won reflect that very change ve then checked it SSL Certificate Identifier which matches the correct ACM entry ve invalidated all the cache after that to make sure it would reflect even on anonymous window but there is no luck just yet ppI was unable to find on AWS documentation if it would take several hours to reflect or any other action is required in order to get it working One thing didn try was to clear local browser cache as understand that several users depend on that and somehow like this update to be transparent to all of them ppI appreciate any clues or tips on this matter,NULL 61208,54046,931329,NULL,NULL,NULL,0,NULL,NULL 61209,147767,66020,Yearling Custodian Guru Great Question Caucus Popular Question Yearling Custodian Nice Answer Census Custodian Custodian Yearling Stellar Question,NULL,NULL,0,NULL,NULL 61210,274130,349314,NULL,NULL,NULL,0,NULL,NULL 61211,126446,428407,NULL,NULL,NULL,0,NULL,NULL 61212,133326,654578,Necromancer,NULL,NULL,0,NULL,NULL 61213,117268,139544,Yearling Excavator Popular Question Notable Question Nice Question Yearling Necromancer Good Question Famous Question,NULL,NULL,0,NULL,NULL 61214,888905,1095795,Custodian Custodian Popular Question Caucus Constituent Census Popular Question Yearling Caucus Documentation User Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 61215,706412,1235310,Student Critic Scholar Supporter Caucus Census,NULL,NULL,0,NULL,NULL 61216,139356,115640,NULL,NULL,NULL,0,NULL,NULL 61217,101322,698495,Good Answer Yearling Great Answer Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 61218,156137,235969,Popular Question,NULL,NULL,0,NULL,NULL 61219,1245654,1154799,NULL,NULL,NULL,0,NULL,NULL 61220,292233,506223,Documentation User Commentator,NULL,pYou can use code python code option to npm like so ppre codenpm install python python2 code prepor set it to be used always ppre codenpm config set python python2 code prepNpm will in turn pass this option to node gyp when needed pp note the one who opened an issue on Github to have this included in the docs as there were so many questions about it as have python3 as global need to setup also python27 using this npm config set python Python27 python exe,0,NULL,NULL 61221,95825,691503,NULL,NULL,NULL,0,NULL,NULL 61222,117620,375343,Nice Answer Nice Answer Enlightened Necromancer Great Answer Necromancer Necromancer c-preprocessor Yearling Necromancer Good Question Organizer Nice Answer Populist Great Answer Necromancer Necromancer Announcer Popular Question Nice Answer Yearling Nice Answer Necromancer Great Answer Nice Answer Popular Question Yearling Announcer Good Answer Popular Question,NULL,pWhat you need to do is have the preprocessor generate reflection data about the fields This data can be stored as nested classes ppFirst to make it easier and cleaner to write it in the preprocessor we will use typed expression typed expression is just an expression that puts the type in parenthesis So instead of writing codeint code you will write code int code Here are some handy macros to help with typed expressions ppre code define REM VA ARGS define EAT Retrieve the type define TYPEOF DETAIL TYPEOF DETAIL TYPEOF PROBE define DETAIL TYPEOF DETAIL TYPEOF HEAD VA ARGS define DETAIL TYPEOF HEAD REM define DETAIL TYPEOF PROBE VA ARGS Strip off the type define STRIP EAT Show the type without parenthesis define PAIR REM code prepNext we define codeREFLECTABLE code macro to generate the data about each field plus the field itself This macro will be called like this ppre codeREFLECTABLE const char name int age code prepSo using href http www boost org doc libs 49 libs preprocessor doc index html rel noreferrer Boost PP we iterate over each argument and generate the data like this ppre code helper metafunction for adding const to typetemplate lt class class gt struct make const typedef type template lt class class gt struct make const lt const gt typedef typename boost add const lt gt type type define REFLECTABLE static const int fields BOOST PP VARIADIC SIZE VA ARGS friend struct reflector template lt int class Self gt struct field data BOOST PP SEQ FOR EACH REFLECT EACH data BOOST PP VARIADIC TO SEQ VA ARGS define REFLECT EACH data PAIR template lt class Self gt struct field data lt Self gt Self amp self field data Self amp self self self typename make const lt Self TYPEOF gt type amp get return self STRIP typename boost add const lt TYPEOF gt type amp get const return self STRIP const char name const return BOOST PP STRINGIZE STRIP code prepWhat this does is generate constant codefields code that is number of reflectable fields in the class Then it specializes the codefield data code for each field It also friends the codereflector code class this is so it can access the fields even when they are private ppre codestruct reflector Get field data at index template lt int class gt static typename template field data lt gt get field data amp return typename template field data lt gt Get the number of fields template lt class gt struct fields static const int fields code prepNow to iterate over the fields we use the visitor pattern We create an MPL range from to the number of fields and access the field data at that index Then it passes the field data on to the user provided visitor ppre codestruct field visitor template lt class class Visitor class gt void operator amp Visitor reflector get field data lt value gt template lt class class Visitor gt void visit each amp Visitor typedef boost mpl range lt int reflector fields lt gt gt range boost mpl for each lt range gt boost bind lt void gt field visitor boost ref code prepNow for the moment of truth we put it all together Here is how we can define the codePerson code class ppre codestruct Person Person const char name int age name name age age private REFLECTABLE const char name int age code prepHere is the generalized codeprint fields code function ppre codestruct print visitor template lt class FieldData gt void operator FieldData std cout lt lt name lt lt lt lt get lt lt std endl template lt class gt void print fields amp visit each print visitor code prepAn example ppre codeint main Person Tom 82 print fields return code prepWhich outputs ppre codename Tomage 82 code prepAnd voila we have just implemented reflection in in under 100 lines of code Yes it can be simplified little bit and remove the need for boost with 14 however there is still need for macros as there is no way to get member names as string See this talk here https www youtube com watch 9QGsEkB4Rfs that goes over the different techniques,0,NULL,NULL 61223,205712,285398,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61224,1850026,285398,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61225,75085,241542,Notable Question Yearling Nice Answer Enlightened Caucus Good Answer Yearling Necromancer Citizen Patrol Custodian Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61226,42456,790582,Good Answer Guru Yearling Custodian Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 61227,183713,249871,Yearling Necromancer Guru Good Question android Nice Answer Nice Question Good Question Nice Answer Guru Caucus Yearling Necromancer Good Answer Custodian Nice Answer Good Question Popular Question Great Answer Popular Question Good Answer Famous Question Caucus Constituent Good Answer Nice Answer Enlightened Yearling Good Answer Caucus Favorite Question Mortarboard Custodian,NULL,NULL,0,NULL,NULL 61228,204906,546539,NULL,NULL,NULL,0,NULL,NULL 61229,1067781,901123,NULL,NULL,NULL,0,NULL,NULL 61230,385395,382373,NULL,NULL,NULL,0,NULL,NULL 61231,1080140,467366,Nice Question Custodian Civic Duty Suffrage Vox Populi Organizer Custodian Custodian Enthusiast Explainer Custodian Excavator Custodian Proofreader Reviewer Notable Question Inquisitive Informed Custodian Strunk & White Popular Question Fanatic Quorum Popular Question Great Answer Yearling Custodian Custodian Census Nice Answer Popular Question Nice Question Popular Question Good Question Yearling Documentation User Electorate Popular Question Nice Question Notable Question Peer Pressure Tag Editor Yearling Popular Question Nice Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 61232,538186,699746,NULL,NULL,NULL,0,NULL,NULL 61233,437615,897392,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 61234,47147,152730,Popular Question,NULL,NULL,0,NULL,NULL 61235,1001301,1541027,NULL,NULL,NULL,0,NULL,NULL 61236,432355,158365,NULL,NULL,NULL,0,NULL,NULL 61237,116688,211716,Good Question,NULL,NULL,0,NULL,NULL 61238,780102,371043,NULL,NULL,NULL,0,NULL,NULL 61239,352648,266167,Good Answer Yearling Revival Nice Answer Necromancer Nice Answer Great Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 61240,19661,333022,NULL,NULL,NULL,0,NULL,NULL 61241,1433715,1023,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61242,24782,553995,Nice Answer Enlightened Good Answer Great Answer Famous Question Great Answer Good Answer Popular Question Yearling Notable Question Notable Question Guru Announcer Nice Answer Favorite Question Yearling Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Nice Question,NULL,NULL,0,NULL,NULL 61243,458458,1126072,Notable Question,NULL,NULL,0,NULL,NULL 61244,156087,459786,NULL,NULL,NULL,0,NULL,NULL 61245,2923655,855977,Popular Question Curious,NULL,NULL,0,NULL,NULL 61246,42081,450808,Necromancer Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 61247,36534,916221,Commentator,NULL,NULL,0,NULL,NULL 61248,911017,1026492,NULL,NULL,NULL,0,NULL,NULL 61249,355063,966023,Good Answer Nice Question Famous Question Notable Question Good Answer Nice Answer Guru Good Answer Notable Question Notable Question Good Question Popular Question Nice Answer Yearling Nice Answer simple-html-dom Popular Question Good Question Populist Necromancer Popular Question Favorite Question Nice Question Notable Question Notable Question Nice Question Nice Answer Enlightened Necromancer Great Answer Popular Question Great Answer Nice Answer Enlightened Yearling Nice Question Nice Question Popular Question Nice Answer Good Answer Necromancer Popular Question Notable Question Peer Pressure Nice Answer Popular Question Notable Question Good Answer Popular Question Good Answer Nice Answer Nice Answer Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61250,596726,25213,Nice Answer Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 61251,359997,871836,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 61252,14427,1073958,NULL,NULL,NULL,0,NULL,NULL 61253,25187,100358,NULL,NULL,NULL,0,NULL,NULL 61254,1530099,1310027,NULL,NULL,NULL,0,NULL,NULL 61255,13546,884340,Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Famous Question Popular Question Popular Question Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 61256,99868,507490,Supporter Informed Revival Critic Yearling Revival Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61257,488113,451246,Self-Learner Yearling Notable Question Necromancer Caucus Popular Question Necromancer,NULL,NULL,0,NULL,NULL 61258,55974,523064,NULL,NULL,NULL,0,NULL,NULL 61259,455995,658783,NULL,NULL,NULL,0,NULL,NULL 61260,114057,25224,Critic Tumbleweed,NULL,NULL,0,NULL,NULL 61261,204978,1004460,NULL,NULL,NULL,0,NULL,NULL 61262,461445,223002,Nice Answer Announcer Good Answer Necromancer Popular Question Nice Answer Yearling Revival Good Answer Necromancer Revival Necromancer Caucus Nice Answer Nice Answer Nice Answer Good Question Yearling Great Answer Nice Answer Caucus Good Answer,NULL,NULL,0,NULL,NULL 61263,8057694,223002,Nice Answer Announcer Good Answer Necromancer Popular Question Nice Answer Yearling Revival Good Answer Necromancer Revival Necromancer Caucus Nice Answer Nice Answer Nice Answer Good Question Yearling Great Answer Nice Answer Caucus Good Answer,NULL,NULL,0,NULL,NULL 61264,24225,357121,Yearling Popular Question Yearling Popular Question Yearling Census Yearling Nice Question Great Answer,NULL,NULL,0,NULL,NULL 61265,93764,771472,Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61266,296539,1221239,Good Answer Self-Learner Yearling,NULL,NULL,0,NULL,NULL 61267,1505331,1054119,Nice Question Nice Answer Yearling Famous Question,NULL,,0,, 61268,8009186,124085,Nice Answer Yearling Popular Question Caucus Notable Question Great Answer Yearling Popular Question Custodian Organizer Yearling Self-Learner Excavator,NULL,OpenSSL DH Key Too Small Error perl ssl openssl pI am trying to connect to closed off server an air conditioner using simple PERL script ppre code usr bin perluse 10 use warnings use strict use IO Socket SSL use IO Socket SSL qw debug3 my sock IO Socket SSL gt new PeerHost gt 192 168 PeerPort gt 2878 verify hostname gt SSL verify mode gt SSL VERIFY NONE SSL verifycn scheme gt undef or die failed connect or ssl handshake SSL ERROR print sock code prepNow this was all working well and good then updated OpenSSL libssl1 to be exact and all hell broke loose ppre codeDEBUG IO Socket SSL pm 220 set domain to 2DEBUG IO Socket SSL pm 1653 new ctx 1984680DEBUG IO Socket SSL pm 363 socket not yet connectedDEBUG IO Socket SSL pm 365 socket connectedDEBUG IO Socket SSL pm 383 ssl handshake not startedDEBUG IO Socket SSL pm 446 Net SSLeay connect gt 1DEBUG IO Socket SSL pm 1328 SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 452 fatal SSL error SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 1328 IO Socket INET6 configuration failed error 00000000 lib func reason DEBUG IO Socket SSL pm 1690 free ctx 1984680 open 1984680DEBUG IO Socket SSL pm 1698 OK free ctx 1984680failed connect or ssl handshake IO Socket INET6 configuration failed error 00000000 lib func reason at spare line code prepI am happy to use any alternative packages to get around this but do need to get around it as can update the certificate on the air conditioner ppI have looked in to using LWP and raw Net SSLeay but the problem seems to be in the underlying OpenSSL libs echo openssl client connect 192 168 2878 dev null openssl x509 text noout grep Public Key Public Key 1024 bit,1,OpenSSL DH Key Too Small Error perl ssl openssl pI am trying to connect to closed off server an air conditioner using simple PERL script ppre code usr bin perluse 10 use warnings use strict use IO Socket SSL use IO Socket SSL qw debug3 my sock IO Socket SSL gt new PeerHost gt 192 168 PeerPort gt 2878 verify hostname gt SSL verify mode gt SSL VERIFY NONE SSL verifycn scheme gt undef or die failed connect or ssl handshake SSL ERROR print sock code prepNow this was all working well and good then updated OpenSSL libssl1 to be exact and all hell broke loose ppre codeDEBUG IO Socket SSL pm 220 set domain to 2DEBUG IO Socket SSL pm 1653 new ctx 1984680DEBUG IO Socket SSL pm 363 socket not yet connectedDEBUG IO Socket SSL pm 365 socket connectedDEBUG IO Socket SSL pm 383 ssl handshake not startedDEBUG IO Socket SSL pm 446 Net SSLeay connect gt 1DEBUG IO Socket SSL pm 1328 SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 452 fatal SSL error SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 1328 IO Socket INET6 configuration failed error 00000000 lib func reason DEBUG IO Socket SSL pm 1690 free ctx 1984680 open 1984680DEBUG IO Socket SSL pm 1698 OK free ctx 1984680failed connect or ssl handshake IO Socket INET6 configuration failed error 00000000 lib func reason at spare line code prepI am happy to use any alternative packages to get around this but do need to get around it as can update the certificate on the air conditioner ppI have looked in to using LWP and raw Net SSLeay but the problem seems to be in the underlying OpenSSL libs,NULL 61269,333936,124085,Nice Answer Yearling Popular Question Caucus Notable Question Great Answer Yearling Popular Question Custodian Organizer Yearling Self-Learner Excavator,NULL,OpenSSL DH Key Too Small Error perl ssl openssl pI am trying to connect to closed off server an air conditioner using simple PERL script ppre code usr bin perluse 10 use warnings use strict use IO Socket SSL use IO Socket SSL qw debug3 my sock IO Socket SSL gt new PeerHost gt 192 168 PeerPort gt 2878 verify hostname gt SSL verify mode gt SSL VERIFY NONE SSL verifycn scheme gt undef or die failed connect or ssl handshake SSL ERROR print sock code prepNow this was all working well and good then updated OpenSSL libssl1 to be exact and all hell broke loose ppre codeDEBUG IO Socket SSL pm 220 set domain to 2DEBUG IO Socket SSL pm 1653 new ctx 1984680DEBUG IO Socket SSL pm 363 socket not yet connectedDEBUG IO Socket SSL pm 365 socket connectedDEBUG IO Socket SSL pm 383 ssl handshake not startedDEBUG IO Socket SSL pm 446 Net SSLeay connect gt 1DEBUG IO Socket SSL pm 1328 SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 452 fatal SSL error SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 1328 IO Socket INET6 configuration failed error 00000000 lib func reason DEBUG IO Socket SSL pm 1690 free ctx 1984680 open 1984680DEBUG IO Socket SSL pm 1698 OK free ctx 1984680failed connect or ssl handshake IO Socket INET6 configuration failed error 00000000 lib func reason at spare line code prepI am happy to use any alternative packages to get around this but do need to get around it as can update the certificate on the air conditioner ppI have looked in to using LWP and raw Net SSLeay but the problem seems to be in the underlying OpenSSL libs echo openssl client connect 192 168 2878 dev null openssl x509 text noout grep Public Key Public Key 1024 bit,1,OpenSSL DH Key Too Small Error perl ssl openssl pI am trying to connect to closed off server an air conditioner using simple PERL script ppre code usr bin perluse 10 use warnings use strict use IO Socket SSL use IO Socket SSL qw debug3 my sock IO Socket SSL gt new PeerHost gt 192 168 PeerPort gt 2878 verify hostname gt SSL verify mode gt SSL VERIFY NONE SSL verifycn scheme gt undef or die failed connect or ssl handshake SSL ERROR print sock code prepNow this was all working well and good then updated OpenSSL libssl1 to be exact and all hell broke loose ppre codeDEBUG IO Socket SSL pm 220 set domain to 2DEBUG IO Socket SSL pm 1653 new ctx 1984680DEBUG IO Socket SSL pm 363 socket not yet connectedDEBUG IO Socket SSL pm 365 socket connectedDEBUG IO Socket SSL pm 383 ssl handshake not startedDEBUG IO Socket SSL pm 446 Net SSLeay connect gt 1DEBUG IO Socket SSL pm 1328 SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 452 fatal SSL error SSL connect attempt failed with unknown error error 14082174 SSL routines SSL3 CHECK CERT AND ALGORITHM dh key too smallDEBUG IO Socket SSL pm 1328 IO Socket INET6 configuration failed error 00000000 lib func reason DEBUG IO Socket SSL pm 1690 free ctx 1984680 open 1984680DEBUG IO Socket SSL pm 1698 OK free ctx 1984680failed connect or ssl handshake IO Socket INET6 configuration failed error 00000000 lib func reason at spare line code prepI am happy to use any alternative packages to get around this but do need to get around it as can update the certificate on the air conditioner ppI have looked in to using LWP and raw Net SSLeay but the problem seems to be in the underlying OpenSSL libs,NULL 61270,101641,1098730,NULL,NULL,NULL,0,NULL,NULL 61271,580957,634025,Nice Answer Popular Question Yearling Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Enlightened Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Notable Question Announcer Nice Answer Good Answer Nice Answer Yearling Nice Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61272,2147194,628429,Necromancer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 61273,1735609,628429,Necromancer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 61274,284693,628429,Necromancer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 61275,4681,602581,Self-Learner Popular Question Popular Question Yearling Notable Question Necromancer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 61276,918113,933960,NULL,NULL,NULL,0,NULL,NULL 61277,227130,383079,Popular Question,NULL,NULL,0,NULL,NULL 61278,151992,1147918,Yearling Popular Question Yearling Nice Answer Yearling Nice Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 61279,7008026,933359,Editor Informed Autobiographer Commentator Student Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 61280,296839,373975,Informed Good Answer,NULL,NULL,0,NULL,NULL 61281,172846,701151,NULL,NULL,NULL,0,NULL,NULL 61282,10223051,1018747,NULL,NULL,NULL,0,NULL,NULL 61283,98958,1018747,NULL,NULL,NULL,0,NULL,NULL 61284,726273,21388,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61285,481391,546979,NULL,NULL,NULL,0,NULL,NULL 61286,106332,459794,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61287,6688929,949303,Supporter Enthusiast Commentator Popular Question Nice Question Notable Question Tumbleweed Famous Question Popular Question Notable Question Curious Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 61288,45985,240807,Popular Question,NULL,NULL,0,NULL,NULL 61289,115476,1506263,NULL,NULL,NULL,0,NULL,NULL 61290,141994,641478,Good Answer Necromancer Yearling Populist Notable Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 61291,902972,1405141,Popular Question Custodian,NULL,NULL,0,NULL,NULL 61292,375200,522451,NULL,NULL,NULL,0,NULL,NULL 61293,1137348,454523,NULL,NULL,NULL,0,NULL,NULL 61294,1516966,86202,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61295,756275,673580,NULL,NULL,NULL,0,NULL,NULL 61296,10290,927039,Nice Answer Revival,NULL,NULL,0,NULL,NULL 61297,1163,35070,Great Answer Good Answer Enlightened Great Answer Nice Question subprocess Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Great Answer Good Answer Good Answer Good Answer Good Answer Great Answer Popular Question Nice Answer Guru Good Answer Nice Answer Good Answer Nice Question Guru Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Guru Famous Question Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Guru Good Question Good Answer Nice Answer Enlightened Great Answer Great Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened function Nice Answer Enlightened Announcer Nice Answer Guru Good Answer java Guru Good Answer Yearling Guru Caucus Good Answer Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Great Answer Nice Answer Enlightened Announcer Guru Good Answer Nice Answer Good Answer Great Answer Good Answer Nice Answer Revival Custodian Nice Answer Necromancer Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Great Answer Good Answer Good Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Guru Good Answer Nice Answer Announcer Good Answer Good Answer Good Answer Announcer Nice Answer Popular Question Nice Question Good Answer Nice Answer Enlightened youtube-dl Nice Answer Enlightened Nice Answer Enlightened Good Answer Notable Question Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Popular Question Nice Answer Good Answer Nice Answer Census Nice Answer Enlightened Nice Answer Announcer Booster Good Answer Nice Answer Announcer Good Answer Nice Answer Enlightened Good Answer Populist Good Answer Good Answer Nice Answer Good Answer Notable Question Announcer Nice Answer Nice Answer Enlightened Announcer Caucus Nice Answer Announcer Constituent Nice Answer Enlightened Guru Announcer Good Question sockets Great Answer Famous Question Nice Answer Enlightened Nice Question Great Answer Nice Answer Good Answer Notable Question Good Answer Guru bash Nice Answer Nice Answer Enlightened Populist Nice Answer Nice Answer Guru Nice Answer Enlightened Notable Question Great Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Guru Great Answer Nice Answer Great Answer Guru Nice Answer Enlightened Announcer Notable Question Nice Answer youtube Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Announcer Nice Answer Enlightened,NULL,pThe href http docs python org library code html rel nofollow noreferrer code module provides an interactive console ppre codeimport readline optional will allow Up Down History in the consoleimport codevariables globals copy variables update locals shell code InteractiveConsole variables shell interact code pre Fixed the former point Since there still is significant number of Python3 users ll keep the dictionary compounding as is for now pThe href http docs python org library code html rel nofollow noreferrer code module provides an interactive console ppre codeimport readline optional will allow Up Down History in the consoleimport codevariables globals copy variables update locals shell code InteractiveConsole variables shell interact code pre That sounds like great question although you probably only need an interactive console not necessarily this specific module Go ahead and ask it https stackoverflow com questions ask pThe href http docs python org library code html rel nofollow noreferrer code module provides an interactive console ppre codeimport readline optional will allow Up Down History in the consoleimport codevariables globals copy variables update locals shell code InteractiveConsole variables shell interact code pre readline exists just fine even in the cutting edge Python https docs python org dev library readline html If it fails to import please ask new question and maybe point me to it pWhy not first apply the whole test and then add individual tests for characters and numbers Anyway if you want to do it all in one regexp use positive lookahead ppre code zA zA Z0 code pre Abbasi That sounds like great question Go ahead and ask it https stackoverflow com questions ask Make sure that your question is very precise on what you want do you want the overall length to be 11 It best to also mention couple of testcases and whether you want them to much Testcases such as 1234567890a1 1abcdefghijklmo 1234567890a pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and No this answer is finely tuned On Python json dump writes to text file not binary file You get TypeError if the file was opened with wb On older Python versions both nand wb work An explicit encoding is not necessary since the output of json dump is ASCII only by default If you can be sure that your code is never run on legacy Python versions and you and the handler of the JSON file can correctly handle non ASCII data you can specify one and set ensure ascii False pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and Can you elaborate why you think that The question asks about writing to file called data txt In any case the file name does not matter pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and Instead of data txt you can pass in any path of wherever you want the file For instance if your username is krazzyr on Ubuntu you can pass in home krazzyr Desktop myfile json and the file will appear on your desktop If the path does not start with slash it relative to your current working directory For instance if your working directory is home krazzyr and you pass in data txt the file name will be home krazzyr data txt In shell you can type pwd to print the working directory pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and How you access it depends on what you want to do Popular options include command line text editors like nano or vi graphical text editors like emacs kwrite gedit or sublime text IDEs editors like vscode and Eclipse command line output with cat or less and colored or filtered display with jq In general in command line type the program you want to run and then path Again paths can be relative or absolute For instance if you saved your file to home krazzyr Desktop myfile json and your working directory is home krazzyr gedit Desktop myfile json will do pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and Almost Absolute paths start with slash so the file will end up in home krazzyr note the leading slash But don be afraid of relative paths they re often more useful If you just specify data txt and run the program while you re in home krazzyr the default your file will end up in home krazzyr as well But when run your program while in home phihag stackoverflow it ll get it written to home phihag stackoverflow That useful because home krazzyr might not exist on my system and want the program output in sub directory anyway pYou forgot the actual JSON part codedata code is dictionary and not yet JSON encoded Write it like this ppre codeimport jsonwith open data json as outfile json dump data outfile code prepNote Works on both and That sounds like great question Go ahead and ask it on stackoverflow https stackoverflow com questions ask pPurchase it from href http www nextup com purchase html rel noreferrer NextUp com site pblockquote pNextUp com strongsells the best strong most strongnatural sounding strong Text to Speech voices with more than 20 languages and many accents available blockquoteulli href http www nextup com attnv html rel noreferrer Natural Voices from AT amp 35 00 lili href http www nch com au verbose rel noreferrer Verbose from NCH 29 99 lili href http nextup com ta3purchase html rel noreferrer TextAloud from NextUp 29 95 lili href http sites fastspring com nextup product realspeak store parameters rel noreferrer RealSpeak from Nuance ScanSoft 45 00 lili href http sites fastspring com nextup product acapela rel noreferrer Acapela from Acapela Group 35 00 lili href http www nextup com redir cepstral html rel noreferrer Cepstral from Cepstral LLC 29 99 li ulpThere are also pulli href http www reallusion com purchase ct asp rel noreferrer CrazyTalk6 PRO from Reallusion 149 95 lili href http www ivona com voices php rel noreferrer IVONA Voices from ivona 45 lili href http www nuance com for individuals by product dragon for pc index htm rel noreferrer Dragon Premium from Nuance 199 99 lili href http www neospeech com tts engine aspx rel noreferrer VoiceText from NeoSpeech about 74 95 lili href http www fonixspeech com tts php rel noreferrer FonixTalk from Fonix Speech about 45 00 lili href http www naturalreaders com order information htm rel noreferrer NaturalReader from NaturalSoft 199 50 lili href https www cereproc com rel noreferrer Cerevoice from Cereproc about 36 li ul Cerevoice sounds great especially the cloud service where installation is somebody else problem but little bit worried by the lack of licensing information Am allowed to modify or distribute the generated content For instance am currently working on project that at the moment needs to spell out digits only something even the free service is sufficient for pIn the context of computer science emword em is the concatenation of emsymbols em The used symbols are called the emalphabet em For example some words formed out of the alphabet code code would be code1 code code2 code code12 code code543 code code1000 code and code002 code ppA emlanguage em is then subset of all possible words For example we might want to define language that captures all elite MI6 agents Those all start with double so words in the language would be code007 code code001 code code005 code and code0012 code but not code07 code or code15 code For simplicity sake we say language is emover em an alphabet instead of subset of words formed by concatenation of symbols emin em an alphabet ppIn computer science we now want to classify languages We call language emregular em if it can be decided if word is in the language with an algorithm machine with constant finite memory by examining all symbols in the word one after another The language consisting just of the word code42 code is regular as you can decide whether word is in it without requiring arbitrary amounts of memory you just check whether the first symbol is whether the second is and whether any more numbers follow ppAll languages with finite number of words are regular because we can in theory just build control flow tree of constant size you can visualize it as bunch of nested codeif code statements that examine one digit after the other For example we can test whether word is in the prime numbers between 10 and 99 language with the following construct requiring no memory except the one to encode at which code line we re currently at ppre codeif word if word 11 return true accept word it in the language if word 13 return true return false code prepNote that all finite languages are regular but not all regular languages are finite our double language contains an infinite number of words code007 code code008 code but also code004242 code and code0012345 code but can be tested with constant memory To test whether word belongs in it check whether the first symbol is code0 code and whether the second symbol is code0 code If that the case accept it If the word is shorter than three or does not start with code00 code it not an MI6 code name ppFormally the construct of href http en wikipedia org wiki Deterministic finite state machine rel noreferrer finite state machine or href http en wikipedia org wiki Regular grammar rel noreferrer regular grammar is used to prove that language is regular These are similar to the codeif code statements above but allow for arbitrarily long words If there finite state machine there is also regular grammar and vice versa so it sufficient to show either For example the finite state machine for our double language is ppre codestart state if input then goto state 2start state if input then failstart state if input then fail state if input then acceptstate if input then failaccept for any input accept code prepThe equivalent regular grammar is ppre codestart BB acceptaccept acceptaccept accept code prepThe equivalent href http en wikipedia org wiki Regular expression Formal language theory rel noreferrer regular expression is ppre code00 code prepSome languages are emnot em regular For example the language of any number of code1 code followed by the same number of code2 code often written as 1supn sup2supn sup for an arbitrary emn em is not regular you need more than constant amount of memory constant number of states to store the number of code1 codes to decide whether or not word is in the language ppThis should usually be explained in the theoretical computer science course Luckily Wikipedia explains both href http en wikipedia org wiki Formal language rel noreferrer formal and href http en wikipedia org wiki Regular language rel noreferrer regular languages quite nicely like to imagine that as bureaucracy MI6 just associates everything starting with 00 with the 00 program so 00 is valid MI6 agent number pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl That sounds like problem with ffmpeg avconv Please post new question and do include your entire demo program the one you actually run can be identical to this answer as well as the entire output when you activate verbose the first line should be along the lines of debug System config pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl Have you tried removing the postprocessors by setting postprocessors to pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl No extract audio implies postprocessors pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl If the chosen audio format does not match the downloaded file there will certainly be re encoding Even if it does match there may be some lossless re encoding because not all video services always serve good files pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl If audio format has an effective value of best believe so Instead of speculating if you just want the downloaded file and don want it to be touched simply do not pass in extract audio pRead on in the href https github com rg3 youtube dl blob master README md embedding youtube dl developer instructions for an amended example ppre codefrom future import unicode literalsimport youtube dlydl opts format bestaudio best postprocessors key FFmpegExtractAudio preferredcodec mp3 preferredquality 192 with youtube dl YoutubeDL ydl opts as ydl ydl download http www youtube com watch BaW jenozKc code prepThis will download an audio file if possible supported If the file is not mp3 already the downloaded file be converted to mp3 using href https www ffmpeg org ffmpeg or href https libav org avconv html avconv For more information refer to the href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl options py L265 codeformat code and href https github com rg3 youtube dl blob 71b640cc5b2f15a6913a720b589bdd3ed318c154 youtube dl YoutubeDL py L184 codepostprocessors code documentation entries in current version of youtube dl Maybe ask new question You seem to be confused on what you actually want to do When you pass in bestaudio you are downloading an audio file there is no video to extract extract audio bestaudio only makes sense if you want to reencode to another format With audio format best the default there is believe in all cases no loss of quality Have you actually tried running youtube dl That should just work and not lose any quality,0,NULL,NULL 61298,3068556,1141225,NULL,NULL,NULL,0,NULL,NULL 61299,69635,62877,Popular Question Editor,NULL,NULL,0,NULL,NULL 61300,437183,1165827,NULL,NULL,NULL,0,NULL,NULL 61301,72052,138757,Notable Question Popular Question Pundit Notable Question Yearling Popular Question Notable Question Notable Question Notable Question Yearling Notable Question Announcer Nice Question Yearling Famous Question,NULL,pContent that is floating does not influence the height of its container The element contains no content that isn floating so nothing stops the height of the container being as if it were empty ppSetting codeoverflow hidden code on the container will avoid that by establishing new href https www w3 org TR CSS21 visuren html block formatting rel noreferrer block formatting context See href http web archive org web 20161207154227 http www ejeliot com blog 59 rel noreferrer methods for containing floats for other techniques and href http complexspiral com publications containing floats rel noreferrer containing floats for an explanation about why CSS was designed this way Here another approach https css tricks com snippets css clear fix for making containers contain floats that is solved in CSS without having to add elements to the page,0,NULL,NULL 61302,89541,46237,Notable Question Yearling,NULL,NULL,0,NULL,NULL 61303,1653015,1220502,NULL,NULL,NULL,0,NULL,NULL 61304,352705,62661,Yearling Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 61305,463322,331006,NULL,NULL,NULL,0,NULL,NULL 61306,46436,580412,Yearling Electorate Necromancer Necromancer Revival Good Answer Nice Answer Caucus Nice Answer Constituent Archaeologist Yearling Announcer Good Answer Good Answer Necromancer Caucus Constituent Nice Answer Documentation User Nice Answer Nice Question Necromancer Pundit Yearling Notable Question Caucus Constituent Announcer Necromancer Good Answer Announcer Necromancer Nice Answer Enlightened Necromancer Revival Good Answer Announcer Announcer,NULL,pHere bash snippet use to perform exponential back off ppre code Retries command configurable number of times with backoff The retry count is given by ATTEMPTS default the initial backoff timeout is given by TIMEOUT in seconds default Successive backoffs double the timeout function with backoff local max attempts ATTEMPTS local timeout TIMEOUT local attempt local exitCode while attempt lt max attempts do if then return else exitCode fi echo Failure Retrying in timeout gt amp sleep timeout attempt attempt timeout timeout done if exitCode then echo You ve failed me for the last time gt amp fi return exitCode code prepThen use it in conjunction with any command that properly sets failing exit code ppre codewith backoff curl http monkeyfeathers example com code pre Oh good grief Fixed thank you pThe history limit is pane attribute that is strongfixed at the time of pane creation and cannot be changed for existing panes strong The value is taken from the codehistory limit code session option the default value is 2000 ppTo create pane with different value you will need to set the appropriate codehistory limit code option before creating the pane ppTo establish different default you can put line like the following in your code tmux conf code file ppre codeset option history limit 3000 code prepNote Be careful setting very large default value it can easily consume lots of RAM if you create many panes ppFor new pane or the initial pane in new window in an existing session you can set that session’s codehistory limit code You might use command like this from shell ppre codetmux set option history limit 5000 new window code prepFor the initial pane of the initial window in new session you will need to set the “global” codehistory limit code before creating the session ppre codetmux set option history limit 5000 new session code prepNote If you do not re set the codehistory limit code value then the new value will be also used for other panes windows sessions created in the future there is currently no direct way to create single new pane window session with its own specific limit without at least temporarily changing codehistory limit code though codeshow option code especially in and later can help with retrieving the current value so that you restore it later If line really is just the characters within it then we can assume 128 bytes is reasonable line size in memory If willing to commit 32 MB to scroll back for single pane which suits me don use many panes then could increase my history limit to roughly 25 256K or 250 thousand lines pThe history limit is pane attribute that is strongfixed at the time of pane creation and cannot be changed for existing panes strong The value is taken from the codehistory limit code session option the default value is 2000 ppTo create pane with different value you will need to set the appropriate codehistory limit code option before creating the pane ppTo establish different default you can put line like the following in your code tmux conf code file ppre codeset option history limit 3000 code prepNote Be careful setting very large default value it can easily consume lots of RAM if you create many panes ppFor new pane or the initial pane in new window in an existing session you can set that session’s codehistory limit code You might use command like this from shell ppre codetmux set option history limit 5000 new window code prepFor the initial pane of the initial window in new session you will need to set the “global” codehistory limit code before creating the session ppre codetmux set option history limit 5000 new session code prepNote If you do not re set the codehistory limit code value then the new value will be also used for other panes windows sessions created in the future there is currently no direct way to create single new pane window session with its own specific limit without at least temporarily changing codehistory limit code though codeshow option code especially in and later can help with retrieving the current value so that you restore it later ended up settling on set option history limit 50000,0,NULL,NULL 61307,145288,332860,NULL,NULL,NULL,0,NULL,NULL 61308,2345158,332860,NULL,NULL,NULL,0,NULL,NULL 61309,6801556,332860,NULL,NULL,NULL,0,NULL,NULL 61310,309988,299209,Yearling Yearling Self-Learner Inquisitive Popular Question Revival Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61311,208173,931389,NULL,NULL,NULL,0,NULL,NULL 61312,1183836,413311,Student Census,NULL,NULL,0,NULL,NULL 61313,623677,1437206,Notable Question,NULL,NULL,0,NULL,NULL 61314,1190050,1437206,Notable Question,NULL,NULL,0,NULL,NULL 61315,629168,312163,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 61316,227014,550391,Yearling,NULL,NULL,0,NULL,NULL 61317,3264444,887314,Autobiographer,NULL,NULL,0,NULL,NULL 61318,73485,1526192,spring-boot Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Yearling Nice Answer java Good Answer Revival Guru Nice Answer Enlightened Yearling Caucus Guru Announcer Good Answer Caucus spring Yearling Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 61319,954321,71051,Yearling Popular Question Citizen Patrol Popular Question Popular Question Popular Question Census Yearling Nice Answer,NULL,pOne addition to Jonathan Wakely excellent answer why dlopen is problematic ppDue to the new exception handling pool in GCC see href https gcc gnu org bugzilla show bug cgi id 64535 rel noreferrer PR 64535 and href https gcc gnu org bugzilla show bug cgi id 65434 rel noreferrer PR 65434 if you dlopen and dlclose library that is statically linked to libstdc you will get memory leak of the pool object each time So if there any chance that you ll ever use dlopen it seems like really bad idea to statically link libstdc Note that this is real leak as opposed to the benign one mentioned in href https gcc gnu org bugzilla show bug cgi id 65434 rel noreferrer PR 65434 The function gnu cxx freeres seems to provide at least some help with this issue since it frees the internal buffer of the pool object But for me it is rather unclear which implication call to this function has with respect to exceptions accidentally thrown afterwards,0,NULL,NULL 61320,14584,428697,Yearling Critic,NULL,NULL,0,NULL,NULL 61321,539295,835379,NULL,NULL,NULL,0,NULL,NULL 61322,277542,13749,Popular Question Necromancer Revival,NULL,NULL,0,NULL,NULL 61323,248515,1079667,NULL,NULL,NULL,0,NULL,NULL 61324,8402204,1079667,NULL,NULL,NULL,0,NULL,NULL 61325,89860,347568,NULL,NULL,NULL,0,NULL,NULL 61326,268070,245019,NULL,NULL,NULL,0,NULL,NULL 61327,28816,1392481,Notable Question,NULL,NULL,0,NULL,NULL 61328,1331309,1475981,NULL,NULL,NULL,0,NULL,NULL 61329,264777,357012,Nice Answer Revival Yearling Revival Good Answer Scholar Self-Learner Yearling Student Necromancer Necromancer Necromancer Nice Answer Necromancer Popular Question Yearling Nice Answer,NULL,phere ppre codebool gluInvertMatrix const double 16 double invOut 16 double inv 16 det int inv 10 15 11 14 15 14 13 11 13 10 inv 10 15 11 14 15 14 12 11 12 10 inv 15 11 13 15 13 12 11 12 inv 12 14 10 13 14 13 12 10 12 inv 10 15 11 14 15 14 13 11 13 10 inv 10 15 11 14 15 14 12 11 12 10 inv 15 11 13 15 13 12 11 12 inv 13 14 10 13 14 13 12 10 12 inv 15 14 15 14 13 13 inv 15 14 15 14 12 12 inv 10 15 13 15 13 12 12 inv 14 14 13 14 13 12 12 inv 11 10 11 10 inv 11 10 11 10 inv 11 11 11 inv 15 10 10 det inv inv inv inv 12 if det return false det det for lt 16 invOut inv det return true code prepThis was lifted from href http www mesa3d org rel noreferrer MESA implementation of the GLU library From the looks of it it based on Minors cofactors and adjugate https www mathsisfun com algebra matrix inverse minors cofactors adjugate html The other method would be column and row operations but think this would be difficult to code as you have to use conditional logic,0,NULL,NULL 61330,100791,119671,Yearling Caucus Great Question,NULL,NULL,0,NULL,NULL 61331,1514508,779185,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61332,401147,250962,Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Good Question Nice Answer Popular Question Notable Question Yearling Nice Question Famous Question Famous Question Good Answer Popular Question Revival Announcer Popular Question Famous Question Popular Question Good Question Nice Question Good Question Popular Question Notable Question Popular Question Popular Question Notable Question Good Question Revival Notable Question Yearling Popular Question Popular Question Notable Question Announcer Nice Question Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question,NULL,blockquote emThese are the steps that were previously in the question they have been migrated to this answer em blockquotepHaving found that it is possible to generate Facebook Page Access Token that does not expire with help from here is clear step by step quide for all those looking to the same polliMake sure you are the admin of the FB page you wish to pull info from liliCreate FB App should be with the same user account that is the page admin liliHead over to the href http developers facebook com tools explorer rel noreferrer Facebook Graph API Explorer liliOn the top right select the FB App you created from the Application drop down list liliClick Get Access Token liliMake sure you add the codemanage pages code permission liliConvert this short lived access token into long lived one by making this Graph API call codehttps graph facebook com oauth access token client id lt your FB App ID gt amp client secret lt your FB App secret gt amp grant type fb exchange token amp fb exchange token lt your short lived access token gt code liliGrab the new long lived access token returned back liliMake Graph API call to see your accounts using the new long lived access token codehttps graph facebook com me accounts access token lt your long lived access token gt code liliGrab the codeaccess token code for the page you ll be pulling info from lili href https developers facebook com tools debug rel noreferrer Lint the token to see that it is set to codeExpires Never code li olpThat should do it You should now have Facebook Page Access Token that doesn expire unless pulliYou change your Facebook account password liliYou lose admin access for the target page liliYou delete or de authorize your Facebook App li ulpAny of these will cause the access token to become invalid ppIf you are getting code 100 Tried accessing nonexisting field accounts on node type Page code go to the href https developers facebook com tools debug access token rel noreferrer Access Token Debugger copy the value of codeUser ID code and use it to replace the me part of the URL in step assume that for step instead of Get Access Token it should now be Get User Access Token Either way having got my never expiring token using this method getting this error when trying to post to my page via the API 200 The user hasn authorized the application to perform this action blockquote emThese are the steps that were previously in the question they have been migrated to this answer em blockquotepHaving found that it is possible to generate Facebook Page Access Token that does not expire with help from here is clear step by step quide for all those looking to the same polliMake sure you are the admin of the FB page you wish to pull info from liliCreate FB App should be with the same user account that is the page admin liliHead over to the href http developers facebook com tools explorer rel noreferrer Facebook Graph API Explorer liliOn the top right select the FB App you created from the Application drop down list liliClick Get Access Token liliMake sure you add the codemanage pages code permission liliConvert this short lived access token into long lived one by making this Graph API call codehttps graph facebook com oauth access token client id lt your FB App ID gt amp client secret lt your FB App secret gt amp grant type fb exchange token amp fb exchange token lt your short lived access token gt code liliGrab the new long lived access token returned back liliMake Graph API call to see your accounts using the new long lived access token codehttps graph facebook com me accounts access token lt your long lived access token gt code liliGrab the codeaccess token code for the page you ll be pulling info from lili href https developers facebook com tools debug rel noreferrer Lint the token to see that it is set to codeExpires Never code li olpThat should do it You should now have Facebook Page Access Token that doesn expire unless pulliYou change your Facebook account password liliYou lose admin access for the target page liliYou delete or de authorize your Facebook App li ulpAny of these will cause the access token to become invalid ppIf you are getting code 100 Tried accessing nonexisting field accounts on node type Page code go to the href https developers facebook com tools debug access token rel noreferrer Access Token Debugger copy the value of codeUser ID code and use it to replace the me part of the URL in step solved my problem with this http stackoverflow com 29753647 250962 Since API v2 to publish posts to your page as your page you need to include the publish pages permission when getting the initial access token Docs https developers facebook com docs graph api reference v2 page feed pubperms,1,Using Ansible set fact to create dictionary from register results ansible pIn Ansible ve used coderegister code to save the results of task in the variable codepeople code Omitting the stuff don need it has this structure ppre class lang json prettyprint override code results item name Bob stdout male item name Thelma stdout female code prepI like to use subsequent codeset fact code task to generate new variable with dictionary like this ppre class lang json prettyprint override code Bob male Thelma female code prepI guess this might be possible but going round in circles with no luck so far,NULL 61333,7504,446765,NULL,NULL,NULL,0,NULL,NULL 61334,602947,1520747,Teacher,NULL,NULL,0,NULL,NULL 61335,499431,131854,Good Answer Yearling Notable Question Notable Question Great Question Famous Question Yearling Favorite Question Famous Question Necromancer Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 61336,7652,199552,Good Question Good Question Popular Question Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61337,43527,39904,Announcer Revival Nice Answer Enlightened Necromancer Good Answer Nice Answer Yearling Nice Answer Necromancer Famous Question Guru Good Answer Announcer Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 61338,372162,1200043,Enthusiast Yearling Reviewer Organizer Peer Pressure Yearling Student Fanatic Good Answer Yearling Nice Answer Yearling Tenacious Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61339,329760,228095,NULL,NULL,NULL,0,NULL,NULL 61340,344284,859250,NULL,NULL,NULL,0,NULL,NULL 61341,13647,1246547,Yearling Good Answer Popular Question Revival Necromancer Revival Revival Yearling Revival Necromancer Nice Answer Nice Answer Revival Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 61342,417086,391999,Yearling Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 61343,261063,1200150,Supporter,NULL,NULL,0,NULL,NULL 61344,187141,1091727,Popular Question,NULL,NULL,0,NULL,NULL 61345,107736,3784,Yearling Necromancer Explainer Yearling Notable Question Informed Popular Question Yearling,NULL,NULL,0,NULL,NULL 61346,7144,137067,Good Answer Necromancer Revival Announcer Nice Answer Nice Question Necromancer Nice Answer Nice Answer Yearling Good Answer Nice Answer Necromancer Famous Question Announcer Popular Question Favorite Question Good Answer Revival Nice Answer Announcer Announcer Yearling Popular Question Great Question Notable Question Nice Answer Necromancer Nice Question Necromancer Great Answer Nice Question Good Answer Famous Question Nice Answer Famous Question Revival Yearling,NULL,pAs mentioned in other answers you ll always get the QuotaExceededError in Safari Private Browser Mode on both iOS and OS when codelocalStorage setItem code or codesessionStorage setItem code is called ppOne solution is to do try catch or href https github com Modernizr Modernizr blob master feature detects storage localstorage js Modernizr check in each instance of using codesetItem code ppHowever if you want shim that simply globally stops this error being thrown to prevent the rest of your JavaScript from breaking you can use this pp href https gist github com philfreo 68ea3cd980d72383c951 https gist github com philfreo 68ea3cd980d72383c951 ppre code Safari in Private Browsing Mode looks like it supports localStorage but all calls to setItem throw QuotaExceededError We re going to detect this and just silently drop any calls to setItem to avoid the entire page breaking without having to do check at each usage of Storage if typeof localStorage object try localStorage setItem localStorage localStorage removeItem localStorage catch Storage prototype setItem Storage prototype setItem Storage prototype setItem function alert Your web browser does not support storing settings locally In Safari the most common cause of this is using Private Browsing Mode Some settings may not save or some features may not work properly for you code pre The point of my snippet is to simply ignore JS errors from being thrown if you want your app to not be totally broken in Safari private mode,0,NULL,NULL 61347,369643,1104947,NULL,NULL,NULL,0,NULL,NULL 61348,890495,172157,Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 61349,312111,568087,NULL,NULL,NULL,0,NULL,NULL 61350,277403,1285598,NULL,NULL,NULL,0,NULL,NULL 61351,1550293,1738,Nice Answer Yearling Caucus Constituent Popular Question Notable Question Yearling Nice Answer Enlightened Nice Answer Revival Census Caucus Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 61352,1023312,842577,NULL,NULL,NULL,0,NULL,NULL 61353,48535,963284,Necromancer Yearling Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 61354,159056,447303,Good Question Notable Question Notable Question Favorite Question Nice Question Yearling Famous Question Good Question Popular Question Yearling Popular Question Custodian Custodian Inquisitive Cleanup Yearling Great Question,NULL,NULL,0,NULL,NULL 61355,18386,531052,Good Answer Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 61356,636808,680502,Nice Question,NULL,NULL,0,NULL,NULL 61357,236369,487719,Yearling Necromancer Informed Good Answer Revival Necromancer Yearling Guru Nice Answer Nice Answer Notable Question Good Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 61358,23324,747847,Editor,NULL,NULL,0,NULL,NULL 61359,296894,1366257,Student,NULL,NULL,0,NULL,NULL 61360,134662,938456,NULL,NULL,NULL,0,NULL,NULL 61361,1680620,50637,NULL,NULL,NULL,0,NULL,NULL 61362,97045,174763,Notable Question Notable Question Tumbleweed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61363,760020,351471,NULL,NULL,NULL,0,NULL,NULL 61364,116704,441624,NULL,NULL,NULL,0,NULL,NULL 61365,52414,1566139,NULL,NULL,NULL,0,NULL,NULL 61366,606926,62658,NULL,NULL,NULL,0,NULL,NULL 61367,68615,1091191,NULL,NULL,NULL,0,NULL,NULL 61368,236463,61966,NULL,NULL,NULL,0,NULL,NULL 61369,194965,859702,Self-Learner Curious Popular Question Famous Question,NULL,NULL,0,NULL,NULL 61370,1545838,301700,NULL,NULL,NULL,0,NULL,NULL 61371,389235,144699,Yearling Nice Answer Custodian Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 61372,616624,1350573,Nice Answer Yearling Commentator Necromancer Nice Answer Enlightened Custodian Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 61373,313563,1413779,Popular Question Favorite Question Custodian Yearling Promoter Notable Question Caucus Popular Question Notable Question Popular Question Benefactor Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61374,112188,971945,Nice Answer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 61375,440910,467506,NULL,NULL,NULL,0,NULL,NULL 61376,167564,48707,NULL,NULL,NULL,0,NULL,NULL 61377,587850,1304404,Yearling Supporter Caucus Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 61378,213118,354857,NULL,NULL,NULL,0,NULL,NULL 61379,208462,643928,Yearling Nice Question Curious Great Answer Yearling Necromancer Famous Question Popular Question Nice Question Yearling,NULL,pYou can ialmost do it with ppre code link text transform lowercase link first letter text transform uppercase code prepIt will give you the output ppre codeSmall capsAll caps code pre correct that is why said it almost works It may not be exactly what the question asked but often your spec is flexible and simpler solution is preferable,0,NULL,NULL 61380,89799,228651,NULL,NULL,NULL,0,NULL,NULL 61381,476078,238297,NULL,NULL,NULL,0,NULL,NULL 61382,69331,172999,Necromancer Nice Answer Enlightened Good Answer Announcer Nice Question Good Answer Famous Question Nice Answer Enlightened Nice Answer Necromancer Nice Answer Nice Answer Good Answer Famous Question Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Caucus Constituent Notable Question Nice Answer Enlightened Good Answer gtk Nice Answer Census Notable Question Nice Answer c Nice Answer glib Caucus Guru Good Question Nice Answer Deputy Yearling autotools Good Answer Good Answer Announcer Famous Question gtkmm Guru Census Great Answer Nice Answer Nice Question Necromancer Nice Answer Nice Answer Caucus Nice Answer Enlightened user-interface Nice Answer Enlightened Popular Question Yearling python,NULL,NULL,1,NULL,Scale font size based on widget size in Gtk css gtk vala pI have label in Gtk using Vala that is styled with CSS like to scale the font size based on the widget size so that the font fills the widget label but never gets too big ppWhat is the best way to do that using the CSS approach Right now setting the font to ppre codefont size 5em code prepbut as far as can tell that does not scale with screen resolution ppFor example on lower resolution screen get this note the cut off clock pp href https stack imgur com kQRbh png rel nofollow noreferrer img src https stack imgur com kQRbh png alt enter image description here ppPreviously we used an absolute scaling see this diff for surprisingly concise href https github com pdfpc pdfpc pull 95 files rel nofollow noreferrer explanation but we like to stick with CSS pp href https github com pdfpc pdfpc issues 117 rel nofollow noreferrer more context if you re interested pIf you set font size in ems or it will base itself on the default font size The trick is to change the default font size according to the window size Connect to the window codeconfigure event code and set new default font size when the window is resized ppHere simplified example ppre codeconst string WINDOW CSS TEMPLATE mywindow font size fpx const string APPLICATION CSS mywindow label font size 5em void main string args Gtk init ref args var win new Gtk Window win name mywindow win default width 800 win default height 600 var label new Gtk Label Some text label halign Gtk Align END label valign Gtk Align END win add label win destroy connect Gtk main quit var win provider new Gtk CssProvider Gtk StyleContext add provider for screen Gdk Screen get default win provider Gtk STYLE PROVIDER PRIORITY APPLICATION var app provider new Gtk CssProvider try app provider load from data APPLICATION CSS catch Error Process exit Gtk StyleContext add provider for screen Gdk Screen get default app provider Gtk STYLE PROVIDER PRIORITY APPLICATION win configure event connect event gt try Replace this with your desired calculation of the base font size var target size double event height 600 12 var css WINDOW CSS TEMPLATE printf target size win provider load from data css catch Error Process exit return Gdk EVENT PROPAGATE win show all Gtk main code prepThis only cares about the height of the window so you ll get an unreadably tiny label if you resize the window to be much wider than it is high but you can plug in whatever calculation works for you 61383,490373,758461,Popular Question Student,NULL,NULL,0,NULL,NULL 61384,214778,1402017,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 61385,73174,876784,Teacher Necromancer,NULL,NULL,0,NULL,NULL 61386,166575,276952,Good Answer Yearling Populist Guru Yearling Nice Answer Nice Answer Popular Question Guru Guru Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 61387,138946,141765,Notable Question,NULL,NULL,0,NULL,NULL 61388,1508205,1121338,Nice Question Promoter Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 61389,531519,231541,Caucus Yearling Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 61390,217306,282458,NULL,NULL,NULL,0,NULL,NULL 61391,11065150,282458,NULL,NULL,NULL,0,NULL,NULL 61392,661171,613347,Informed,NULL,NULL,0,NULL,NULL 61393,709651,1303501,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61394,9275387,200113,Yearling Good Answer Nice Answer Peer Pressure Curious Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 61395,129598,200113,Yearling Good Answer Nice Answer Peer Pressure Curious Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 61396,8151830,1391516,Informed Autobiographer,NULL,NULL,0,NULL,NULL 61397,727642,834712,Popular Question Yearling Good Answer Nice Answer Enlightened Census Custodian,NULL,NULL,0,NULL,NULL 61398,1397,320419,Nice Answer Yearling Nice Answer Great Answer Good Answer Yearling Revival Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 61399,8716706,619474,Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 61400,429838,619474,Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 61401,115764,500739,NULL,NULL,NULL,0,NULL,NULL 61402,89518,322505,Promoter Custodian Census Yearling,NULL,PHP Azure OAuth JWT App Roles php azure oauth jwt azure active directory pI ve created an application in an Azure AD from manifest with several codeappRoles code inside of it and can assign users to these roles After user completes the single sign on returns to my application and then request JSON Web Token from their login The problem is there are no assigned roles listed in the token get back from Azure as it would suggest there supposed to be href https azure microsoft com en us documentation articles active directory token and claims roles rel nofollow noreferrer here ppIs there configuration option missing or is there an alternate way to find out their assigned role through the Azure Graph API phrp strongUpdate strong ppAfter specifying the coderesource code as the App ID URI when requesting the authorisation URL ve managed to get little further ppI now getting back the following error in the return URL ppre code The signed in user lt user email gt is not assigned to role for the application lt app client id gt code prepThe user has definitely been assigned role in the Azure AD control panel for the app and the app client id in the error message matches the app client id exactly phrpApplication config pp href https stack imgur com UaoAN png rel nofollow noreferrer img src https stack imgur com UaoAN png alt Azure AD Application config screen ppUser assigned role pp href https stack imgur com hBMJF png rel nofollow noreferrer img src https stack imgur com hBMJF png alt Azure AD Application user role assignments ppError message after logging in and returning to app pp href https stack imgur com LqAZy png rel nofollow noreferrer img src https stack imgur com LqAZy png alt Azure AD Authentication error message Thanks Gary but that actually the guide ve already been using and as far as aware ve followed it exactly Only exception being is my web app is written in PHP,1,PHP Azure OAuth JWT App Roles php azure oauth jwt azure active directory pI ve created an application in an Azure AD from manifest with several codeappRoles code inside of it and can assign users to these roles After user completes the single sign on returns to my application and then request JSON Web Token from their login The problem is there are no assigned roles listed in the token get back from Azure as it would suggest there supposed to be href https azure microsoft com en us documentation articles active directory token and claims roles rel nofollow noreferrer here ppIs there configuration option missing or is there an alternate way to find out their assigned role through the Azure Graph API phrp strongUpdate strong ppAfter specifying the coderesource code as the App ID URI when requesting the authorisation URL ve managed to get little further ppI now getting back the following error in the return URL ppre code The signed in user lt user email gt is not assigned to role for the application lt app client id gt code prepThe user has definitely been assigned role in the Azure AD control panel for the app and the app client id in the error message matches the app client id exactly phrpApplication config pp href https stack imgur com UaoAN png rel nofollow noreferrer img src https stack imgur com UaoAN png alt Azure AD Application config screen ppUser assigned role pp href https stack imgur com hBMJF png rel nofollow noreferrer img src https stack imgur com hBMJF png alt Azure AD Application user role assignments ppError message after logging in and returning to app pp href https stack imgur com LqAZy png rel nofollow noreferrer img src https stack imgur com LqAZy png alt Azure AD Authentication error message,NULL 61403,463522,321575,Caucus,NULL,NULL,0,NULL,NULL 61404,18608,1055602,Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 61405,1755679,1199370,NULL,NULL,NULL,0,NULL,NULL 61406,30776,381899,Caucus,NULL,NULL,0,NULL,NULL 61407,1507151,839848,Citizen Patrol Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61408,888677,207941,Yearling,NULL,NULL,0,NULL,NULL 61409,315189,1450255,NULL,NULL,NULL,0,NULL,NULL 61410,695102,314196,Excavator Informed Autobiographer,NULL,NULL,0,NULL,NULL 61411,42288,226933,Popular Question Nice Question Popular Question Notable Question Nice Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 61412,862255,463782,Notable Question Notable Question Yearling Notable Question Custodian Custodian Citizen Patrol Popular Question Necromancer Yearling Popular Question Necromancer Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61413,94418,1288177,NULL,NULL,NULL,0,NULL,NULL 61414,896353,1400373,NULL,NULL,NULL,0,NULL,NULL 61415,155173,76392,Nice Answer Yearling Nice Answer Good Question Notable Question Guru Necromancer Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 61416,178626,112756,Nice Answer Popular Question Popular Question Yearling Popular Question Famous Question Nice Answer Nice Question Notable Question Favorite Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 61417,69476,191722,Revival Necromancer Yearling Nice Answer Yearling Good Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 61418,1233018,1155950,Popular Question,NULL,NULL,0,NULL,NULL 61419,189348,1155950,Popular Question,NULL,NULL,0,NULL,NULL 61420,19693,290165,NULL,NULL,NULL,0,NULL,NULL 61421,15700,117015,Yearling,NULL,NULL,0,NULL,NULL 61422,260176,1142097,NULL,NULL,NULL,0,NULL,NULL 61423,33452,478460,Notable Question Good Question Notable Question Famous Question Favorite Question Nice Answer Enlightened Popular Question Yearling Cleanup Great Question Famous Question Nice Answer Enlightened Favorite Question Yearling Nice Answer Enlightened Popular Question Nice Answer Enlightened google-analytics Notable Question google-analytics-api Good Answer Yearling Revival Good Answer Good Question,NULL,Can you force React component to rerender without calling setState reactjs react jsx pI have an external to the component observable object that want to listen for changes on When the object is updated it emits change events and then want to rerender the component when any change is detected ppWith top level codeReact render code this has been possible but within component it doesn work which makes some sense since the coderender code method just returns an object ppHere code example ppre class lang js prettyprint override codeexport default class MyComponent extends React Component handleButtonClick this render render return lt div gt Math random lt button onClick this handleButtonClick bind this gt Click me lt button gt lt div gt code prepClicking the button internally calls codethis render code but that not what actually causes the rendering to happen you can see this in action because the text created by code Math random code doesn change However if simply call codethis setState code instead of codethis render code it works fine pp strongSo guess my question is strong do React components emneed em to have state in order to rerender Is there way to force the component to update on demand without changing the state The excepted answer answered my question at the time Is is technically the answer was looking for and still think the right answer The other answers think are good supplemental information for folks with the same question to be aware of,0,NULL,NULL 61424,268182,369659,NULL,NULL,NULL,0,NULL,NULL 61425,331457,124084,flash Yearling scorm Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61426,139235,91830,Yearling Explainer Nice Question Good Answer Notable Question Nice Answer Enlightened Census Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Guru Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61427,656048,234235,Popular Question Notable Question Curious Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 61428,109293,114823,Yearling Tenacious Necromancer Good Answer Yearling Nice Answer mysql-workbench Guru Nice Answer Enlightened Yearling mysql Custodian Yearling Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 61429,168476,700422,Yearling Necromancer Yearling Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61430,7967241,128619,NULL,NULL,NULL,0,NULL,NULL 61431,185328,1001934,NULL,NULL,NULL,0,NULL,NULL 61432,66364,1016598,NULL,NULL,NULL,0,NULL,NULL 61433,20147,1139340,NULL,NULL,NULL,0,NULL,NULL 61434,47300,19464,Nice Answer Yearling Caucus Yearling Nice Question Necromancer Tag Editor Good Answer Custodian Yearling,NULL,NULL,1,What LogFormat definition does AWStats require to parse Glassfish HTTP access logs glassfish glassfish awstats pI am attempting to use AWStats to parse Glassfish HTTP access logs Here is an example line pp code 65 112 10 87 NULL AUTH USER 06 Mar 2018 05 22 41 0500 GET HTTP 200 52598 code ppI running codeawstats updateall pl now code and getting the following error ppre codeRunning usr share awstats wwwroot cgi bin awstats pl update config localhost localdomain configdir etc awstats to update config localhost localdomainCreate Update database for config etc awstats awstats localhost localdomain conf by AWStats version build 971 From data in log file usr local glassfish4 glassfish domains domain1 logs access server access log 2018 03 06 txt Phase First bypass old records searching new record Searching new records from beginning of log file AWStats did not find any valid log lines that match your LogFormat parameter in the 50th first non commented lines read of your log Your log file usr local glassfish4 glassfish domains domain1 logs access server access log 2018 03 06 txt must have bad format or LogFormat parameter setup does not match this format Your AWStats LogFormat parameter is host otherquot time1 methodurl code bytesdThis means each line in your web server log file need to have the following personalized log format host otherquot time1 methodurl code bytesdAnd this is an example of records AWStats found in your log file the record number 50 in your log 65 112 10 87 NULL AUTH USER 06 Mar 2018 05 22 41 0500 GET HTTP 200 52598 Setup etc awstats awstats localhost localdomain conf file web server or permissions may be wrong Check config file permissions and AWStats documentation in docs directory code prepAs you can see above in the error my LogFormat is set to the following pp codeLogFormat host otherquot time1 methodurl code bytesd code ppI think the problem is that all the values in the Glassfish logs are quoted like this pp code 65 112 10 87 NULL AUTH USER 06 Mar 2018 05 22 41 0500 GET HTTP 200 52598 code pp href https serverfault com questions 829694 looking for logformat for awstats to read my custom apache logfiles 830071 https serverfault com questions 829694 looking for logformat for awstats to read my custom apache logfiles 830071 mentions syntax that appears to be trying to handle double quotes with coderef referer code for example but ve tried something similar for code time1 code and it doesn seem to work for me and can find any documentation on this syntax code time1 code doesn work either ppCan someone please help me figure out the right codeLogFormat code definition The options are described at href http www awstats org docs awstats config html LogFormat rel nofollow noreferrer http www awstats org docs awstats config html LogFormat but don see how deal with the host or timestamp being quoted and the timestamp isn in brackets,NULL 61435,66746,405865,Nice Answer Popular Question Yearling Nice Answer Yearling Nice Answer Nice Answer Necromancer Necromancer Necromancer Yearling Good Answer Reviewer,NULL,pYou can use codegit add patch lt filename gt code or code code for short and git will begin to break down your file into what it thinks are sensible hunks portions of the file It will then prompt you with this question ppre codeStage this hunk code prepHere is description of each option pulli kbdy kbd stage this hunk for the next commit lili kbdn kbd do not stage this hunk for the next commit lili kbdq kbd quit do not stage this hunk or any of the remaining hunks lili kbda kbd stage this hunk and all later hunks in the file lili kbdd kbd do not stage this hunk or any of the later hunks in the file lili kbdg kbd select hunk to go to lili kbd kbd search for hunk matching the given regex lili kbdj kbd leave this hunk undecided see next undecided hunk lili kbdJ kbd leave this hunk undecided see next hunk lili kbdk kbd leave this hunk undecided see previous undecided hunk lili kbdK kbd leave this hunk undecided see previous hunk lili kbds kbd split the current hunk into smaller hunks lili kbde kbd manually edit the current hunk lili kbd kbd print hunk help li ulpIf the file is not in the repository yet you can first do codegit add lt filename gt code Afterwards you can go on with codegit add lt filename gt code ppAfterwards you can use brcodegit diff staged code to check that you staged correct changesbrcodegit reset code to unstage mistakenly added hunksbrcodegit commit code to view your commit while you edit the commit message ppNote this is far different than the codegit format patch code command which purpose is to parse commit data into code patch code files ppReference for future href https git scm com book en v2 Git Tools Interactive Staging rel noreferrer https git scm com book en v2 Git Tools Interactive Staging Just looked up git diff staged as didn know the staged flag Turns out it synonym for cached,0,NULL,NULL 61436,71447,1311213,Nice Answer,NULL,NULL,0,NULL,NULL 61437,377501,1183794,NULL,NULL,NULL,0,NULL,NULL 61438,1720315,1026241,Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61439,158168,212247,NULL,NULL,NULL,0,NULL,NULL 61440,183323,875905,NULL,NULL,NULL,0,NULL,NULL 61441,449023,683415,Self-Learner Nice Question Famous Question Popular Question Yearling Popular Question Notable Question Yearling Notable Question Necromancer Custodian Custodian Notable Question Popular Question Census Custodian Yearling Custodian Popular Question Revival Necromancer Famous Question,NULL,NULL,0,NULL,NULL 61442,485820,683453,Good Answer Good Answer Yearling Good Answer java Guru Nice Answer Caucus Nice Answer Nice Answer Enlightened Enlightened Yearling Great Answer Populist Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61443,190388,156561,Necromancer Notable Question Necromancer Good Answer Nice Answer Yearling Necromancer Popular Question Nice Answer Popular Question Notable Question Great Answer Notable Question Nice Answer Yearling Good Answer Census Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 61444,34476,337988,Popular Question Yearling Popular Question Caucus Yearling Organizer Notable Question Notable Question Yearling Notable Question Famous Question Caucus Custodian Necromancer Great Question Caucus Excavator Constituent Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61445,200824,655676,NULL,NULL,NULL,0,NULL,NULL 61446,166518,1426326,NULL,NULL,NULL,0,NULL,NULL 61447,315039,196024,NULL,NULL,NULL,0,NULL,NULL 61448,336242,717355,Necromancer Popular Question Necromancer Yearling Popular Question Popular Question Nice Answer Good Answer Nice Answer Caucus Guru Popular Question Popular Question Nice Question Yearling Guru Nice Answer Caucus Nice Question Notable Question Favorite Question Announcer Announcer Caucus Famous Question git Yearling Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 61449,143239,470911,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61450,814528,485497,NULL,NULL,,0,, 61451,293748,114951,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 61452,780341,781709,Informed,NULL,NULL,0,NULL,NULL 61453,39077,183995,Announcer Announcer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 61454,212000,532034,NULL,NULL,NULL,0,NULL,NULL 61455,132570,1355832,NULL,NULL,NULL,0,NULL,NULL 61456,130831,1425701,Yearling Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 61457,201498,804796,Editor Teacher Informed Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 61458,19734,712116,NULL,NULL,NULL,0,NULL,NULL 61459,718820,1271598,Census Curious Popular Question,NULL,NULL,0,NULL,NULL 61460,273288,554414,NULL,NULL,NULL,0,NULL,NULL 61461,177374,545404,NULL,NULL,NULL,0,NULL,NULL 61462,63471,1097141,Informed Teacher Yearling Yearling,NULL,NULL,0,NULL,NULL 61463,8386,1313040,Announcer,NULL,NULL,0,NULL,NULL 61464,33816,230475,Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 61465,729955,469029,Necromancer Famous Question Yearling Necromancer Famous Question Popular Question Notable Question Popular Question Good Question Popular Question Nice Answer Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 61466,206586,711389,NULL,NULL,NULL,0,NULL,NULL 61467,402464,1102702,NULL,NULL,NULL,0,NULL,NULL 61468,262026,1480484,NULL,NULL,,0,, 61469,86600,1501241,NULL,NULL,NULL,0,NULL,NULL 61470,15390,510056,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Yearling Guru Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 61471,1393077,19206,NULL,NULL,NULL,0,NULL,NULL 61472,1279493,527760,NULL,NULL,NULL,0,NULL,NULL 61473,1386106,499917,Nice Answer Good Answer Nice Answer Nice Answer Enlightened html Guru Nice Answer Nice Answer Enlightened Organizer Nice Answer Enlightened Yearling Revival Good Answer Tumbleweed Good Answer Necromancer favicon Nice Answer Enlightened Student Yearling Nice Answer Caucus Constituent Great Answer Nice Answer Enlightened Necromancer Good Answer Necromancer Guru Guru Great Answer Yearling,NULL,href https developer apple com library ios documentation AppleApplications Reference SafariWebContent ConfiguringWebApplications ConfiguringWebApplications html Apple specs specify new sizes for iOS7 pulli60x60 lili76x76 lili120x120 lili152x152 li ulp href https developer apple com library ios documentation UserExperience Conceptual MobileHIG IconMatrix html And also for iOS8 pulli180x180 li ulpIn addition precomposed icons are deprecated ppAs consequence to support but new devices running iOS7 and older iOS6 and prior the generic code is ppre code lt link rel apple touch icon sizes 57x57 href apple touch icon 57x57 png gt lt link rel apple touch icon sizes 114x114 href apple touch icon 114x114 png gt lt link rel apple touch icon sizes 72x72 href apple touch icon 72x72 png gt lt link rel apple touch icon sizes 144x144 href apple touch icon 144x144 png gt lt link rel apple touch icon sizes 60x60 href apple touch icon 60x60 png gt lt link rel apple touch icon sizes 120x120 href apple touch icon 120x120 png gt lt link rel apple touch icon sizes 76x76 href apple touch icon 76x76 png gt lt link rel apple touch icon sizes 152x152 href apple touch icon 152x152 png gt lt link rel apple touch icon sizes 180x180 href apple touch icon 180x180 png gt code prepIn addition href http realfavicongenerator net faq why high res touch icon you should create 180x180 picture named apple touch icon png ppNote that iOS looks for URL like code apple touch icon 76x76 png code if it does not find interesting stuff in the HTML code bit like what IE is doing with code favicon ico code So it is important to keep the file names are they are above It is also important to consider that href http realfavicongenerator net favicon compatibility Android Chrome is also using these pictures ppYou might want to know that this href http realfavicongenerator net favicon generator can create all these pictures at once Full disclosure the author of this site That right you can totally use only one declaration As the founder of RealFaviconGenerator working on this one size fits all solution There is possible catch although iOS does good job iOS uses an algorithm similar to Mitchell to scale down the icons Depending of your specific design that may not be what you want ll update my answer once have more feedback on this href https developer apple com library ios documentation AppleApplications Reference SafariWebContent ConfiguringWebApplications ConfiguringWebApplications html Apple specs specify new sizes for iOS7 pulli60x60 lili76x76 lili120x120 lili152x152 li ulp href https developer apple com library ios documentation UserExperience Conceptual MobileHIG IconMatrix html And also for iOS8 pulli180x180 li ulpIn addition precomposed icons are deprecated ppAs consequence to support but new devices running iOS7 and older iOS6 and prior the generic code is ppre code lt link rel apple touch icon sizes 57x57 href apple touch icon 57x57 png gt lt link rel apple touch icon sizes 114x114 href apple touch icon 114x114 png gt lt link rel apple touch icon sizes 72x72 href apple touch icon 72x72 png gt lt link rel apple touch icon sizes 144x144 href apple touch icon 144x144 png gt lt link rel apple touch icon sizes 60x60 href apple touch icon 60x60 png gt lt link rel apple touch icon sizes 120x120 href apple touch icon 120x120 png gt lt link rel apple touch icon sizes 76x76 href apple touch icon 76x76 png gt lt link rel apple touch icon sizes 152x152 href apple touch icon 152x152 png gt lt link rel apple touch icon sizes 180x180 href apple touch icon 180x180 png gt code prepIn addition href http realfavicongenerator net faq why high res touch icon you should create 180x180 picture named apple touch icon png ppNote that iOS looks for URL like code apple touch icon 76x76 png code if it does not find interesting stuff in the HTML code bit like what IE is doing with code favicon ico code So it is important to keep the file names are they are above It is also important to consider that href http realfavicongenerator net favicon compatibility Android Chrome is also using these pictures ppYou might want to know that this href http realfavicongenerator net favicon generator can create all these pictures at once Full disclosure the author of this site Thank you Yep lighter package would be great That the spirit of the upcoming release https github com RealFaviconGenerator realfavicongenerator milestones Package 20v0 13 href https developer apple com library ios documentation AppleApplications Reference SafariWebContent ConfiguringWebApplications ConfiguringWebApplications html Apple specs specify new sizes for iOS7 pulli60x60 lili76x76 lili120x120 lili152x152 li ulp href https developer apple com library ios documentation UserExperience Conceptual MobileHIG IconMatrix html And also for iOS8 pulli180x180 li ulpIn addition precomposed icons are deprecated ppAs consequence to support but new devices running iOS7 and older iOS6 and prior the generic code is ppre code lt link rel apple touch icon sizes 57x57 href apple touch icon 57x57 png gt lt link rel apple touch icon sizes 114x114 href apple touch icon 114x114 png gt lt link rel apple touch icon sizes 72x72 href apple touch icon 72x72 png gt lt link rel apple touch icon sizes 144x144 href apple touch icon 144x144 png gt lt link rel apple touch icon sizes 60x60 href apple touch icon 60x60 png gt lt link rel apple touch icon sizes 120x120 href apple touch icon 120x120 png gt lt link rel apple touch icon sizes 76x76 href apple touch icon 76x76 png gt lt link rel apple touch icon sizes 152x152 href apple touch icon 152x152 png gt lt link rel apple touch icon sizes 180x180 href apple touch icon 180x180 png gt code prepIn addition href http realfavicongenerator net faq why high res touch icon you should create 180x180 picture named apple touch icon png ppNote that iOS looks for URL like code apple touch icon 76x76 png code if it does not find interesting stuff in the HTML code bit like what IE is doing with code favicon ico code So it is important to keep the file names are they are above It is also important to consider that href http realfavicongenerator net favicon compatibility Android Chrome is also using these pictures ppYou might want to know that this href http realfavicongenerator net favicon generator can create all these pictures at once Full disclosure the author of this site Thank you very much h1Short answer h1p href http msdn microsoft com en us library ie gg491740 28v vs 85 29 aspx The favicon is supposed to be set of 16x16 32x32 and 48x48 pictures in ICO format ICO format is different than PNG Non square pictures are not supported ppTo generate the favicon for many reasons explained below advise you to use this href http realfavicongenerator net favicon generator Full disclosure the author of this site ph1Long comprehensive answer h1pFavicon must be square Desktop browsers and Apple iOS do not support non square icons ppThe favicon is supported by several files pulliA codefavicon ico code icon liliSome other PNG icons li ulpIn order to get the best results across desktop browsers Windows IE MacOS Safari etc you need to combine both types of icons ph2 codefavicon ico code h2pAlthough all desktop browsers can deal with this icon it is primarily for older version of IE ppThe ICO format is different of the PNG format This point is tricky because some browsers are smart enough to process PNG picture correctly even when it was wrongly renamed with an ICO extension ppAn ICO file can contain several pictures and href http msdn microsoft com en us library ie gg491740 28v vs 85 29 aspx Microsoft recommends to put 16x16 32x32 and 48x48 versions of the icon in codefavicon ico code For example IE will use the 16x16 version for the address bar and the 32x32 for task bar shortcut ppDeclare the favicon with ppre code lt link rel icon href path to icons favicon ico gt code prepHowever it is recommended to href http realfavicongenerator net faq why icons in root place codefavicon ico code in the root directory of the web site and to href http realfavicongenerator net faq why ico not declared not declare it at all and let the modern browsers pick the PNG icons ph2PNG icons h2pModern desktop browsers IE11 recent versions of Chrome Firefox prefer to use PNG icons The usual expected sizes are href http realfavicongenerator net favicon compatibility 16x16 32x32 and as big as possible For example MacOS Safari uses the 196x196 icon if it is the biggest it can find ppWhat are the recommended sizes Pick your favorite platforms pulli href http realfavicongenerator net favicon compatibility Most desktop browsers 16x16 32x32 as big as possible lili href https developer chrome com multidevice android installtohomescreen Android Chrome 192x192 lili href https developers google com tv web docs design for tv favicons Google TV 96x96 lili and others that are more or less documented li ulpThe PNG icons are declared with ppre code lt link rel icon type image png href path to icons favicon 16x16 png sizes 16x16 gt lt link rel icon type image png href path to icons favicon 32x32 png sizes 32x32 gt code prepBeware href https bugzilla mozilla org show bug cgi id 751712 Firefox does not support the codesizes code attribute and uses the last PNG icon it finds Make sure to declare the 32x32 picture last it is good enough for Firefox and that will prevent it from downloading big picture it does not need ppAlso note that href https code google com chromium issues detail id 324820 Chrome does not support the codesizes code attribute and tends to load all declared icons Better not declare too many icons ph2Mobile platforms h2pThis question is about desktop favicon so there is no need to delve too much in this topic pp href https developer apple com library ios documentation AppleApplications Reference SafariWebContent ConfiguringWebApplications ConfiguringWebApplications html Apple defines touch icon for the iOS platform iOS does not support non square icon href http realfavicongenerator net blog apple touch icon the good the bad the ugly It simply rescales non square pictures to make them square look for the Kioskea example pp href https developer chrome com multidevice android installtohomescreen Android Chrome relies on the Apple touch icon and also defines 192x192 PNG icon pp href http blogs msdn com ie archive 2012 06 08 high quality visuals for pinned sites in windows aspx Microsoft defines the tile picture and the href http msdn microsoft com en us library ie dn455106 28v vs 85 29 aspx codebrowserconfig xml code file ph2Conclusion h2pGenerating favicon that works everywhere is quite complex advise you to use this href http realfavicongenerator net favicon generator Full disclosure the author of this site Thank you h1Short answer h1p href http msdn microsoft com en us library ie gg491740 28v vs 85 29 aspx The favicon is supposed to be set of 16x16 32x32 and 48x48 pictures in ICO format ICO format is different than PNG Non square pictures are not supported ppTo generate the favicon for many reasons explained below advise you to use this href http realfavicongenerator net favicon generator Full disclosure the author of this site ph1Long comprehensive answer h1pFavicon must be square Desktop browsers and Apple iOS do not support non square icons ppThe favicon is supported by several files pulliA codefavicon ico code icon liliSome other PNG icons li ulpIn order to get the best results across desktop browsers Windows IE MacOS Safari etc you need to combine both types of icons ph2 codefavicon ico code h2pAlthough all desktop browsers can deal with this icon it is primarily for older version of IE ppThe ICO format is different of the PNG format This point is tricky because some browsers are smart enough to process PNG picture correctly even when it was wrongly renamed with an ICO extension ppAn ICO file can contain several pictures and href http msdn microsoft com en us library ie gg491740 28v vs 85 29 aspx Microsoft recommends to put 16x16 32x32 and 48x48 versions of the icon in codefavicon ico code For example IE will use the 16x16 version for the address bar and the 32x32 for task bar shortcut ppDeclare the favicon with ppre code lt link rel icon href path to icons favicon ico gt code prepHowever it is recommended to href http realfavicongenerator net faq why icons in root place codefavicon ico code in the root directory of the web site and to href http realfavicongenerator net faq why ico not declared not declare it at all and let the modern browsers pick the PNG icons ph2PNG icons h2pModern desktop browsers IE11 recent versions of Chrome Firefox prefer to use PNG icons The usual expected sizes are href http realfavicongenerator net favicon compatibility 16x16 32x32 and as big as possible For example MacOS Safari uses the 196x196 icon if it is the biggest it can find ppWhat are the recommended sizes Pick your favorite platforms pulli href http realfavicongenerator net favicon compatibility Most desktop browsers 16x16 32x32 as big as possible lili href https developer chrome com multidevice android installtohomescreen Android Chrome 192x192 lili href https developers google com tv web docs design for tv favicons Google TV 96x96 lili and others that are more or less documented li ulpThe PNG icons are declared with ppre code lt link rel icon type image png href path to icons favicon 16x16 png sizes 16x16 gt lt link rel icon type image png href path to icons favicon 32x32 png sizes 32x32 gt code prepBeware href https bugzilla mozilla org show bug cgi id 751712 Firefox does not support the codesizes code attribute and uses the last PNG icon it finds Make sure to declare the 32x32 picture last it is good enough for Firefox and that will prevent it from downloading big picture it does not need ppAlso note that href https code google com chromium issues detail id 324820 Chrome does not support the codesizes code attribute and tends to load all declared icons Better not declare too many icons ph2Mobile platforms h2pThis question is about desktop favicon so there is no need to delve too much in this topic pp href https developer apple com library ios documentation AppleApplications Reference SafariWebContent ConfiguringWebApplications ConfiguringWebApplications html Apple defines touch icon for the iOS platform iOS does not support non square icon href http realfavicongenerator net blog apple touch icon the good the bad the ugly It simply rescales non square pictures to make them square look for the Kioskea example pp href https developer chrome com multidevice android installtohomescreen Android Chrome relies on the Apple touch icon and also defines 192x192 PNG icon pp href http blogs msdn com ie archive 2012 06 08 high quality visuals for pinned sites in windows aspx Microsoft defines the tile picture and the href http msdn microsoft com en us library ie dn455106 28v vs 85 29 aspx codebrowserconfig xml code file ph2Conclusion h2pGenerating favicon that works everywhere is quite complex advise you to use this href http realfavicongenerator net favicon generator Full disclosure the author of this site Thank you pJavascript will do it for you No need to create function no need to set basename ppre codevar link document createElement link href lib slider slider css alert link protocol link host link pathname link search link hash output will be http www yoursite com lib slider slider css code prepIf you need to have function just wrap this as function with lines of code ppre codevar absolutePath function href var link document createElement link href href return link protocol link host link pathname link search link hash code prep UPDATED brMore simpler version only if you need the absolute path ppre codevar absolutePath function href var link document createElement link href href return link href code pre Same here bit annoyed that this popular answer refers to protocol host etc whereas href looks simpler and safer Is there reason for this would like to know,0,NULL,NULL 61474,164007,162178,Informed Caucus,NULL,NULL,0,NULL,NULL 61475,311385,856311,Supporter Informed,NULL,NULL,0,NULL,NULL 61476,148395,112232,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61477,1131281,704439,Good Answer Yearling Guru Popular Question Popular Question Nice Answer Enlightened Great Answer Popular Question Caucus Custodian Notable Question Popular Question Yearling Popular Question Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 61478,8394,27219,Populist Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 61479,426003,197030,Autobiographer,NULL,NULL,0,NULL,NULL 61480,34025,466544,NULL,NULL,NULL,0,NULL,NULL 61481,116579,759510,NULL,NULL,NULL,0,NULL,NULL 61482,13150,1349691,Explainer Yearling Famous Question Yearling Nice Question Citizen Patrol Necromancer Popular Question Nice Question Nice Question Excavator Popular Question Notable Question Civic Duty Yearling Enthusiast Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61483,123551,885301,NULL,NULL,NULL,0,NULL,NULL 61484,1599042,983605,NULL,NULL,NULL,0,NULL,NULL 61485,15866,358642,Good Answer Popular Question Yearling Notable Question Good Question Notable Question Good Answer Nice Question Notable Question Popular Question Nice Answer Yearling Good Answer Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 61486,455696,113570,Good Answer Popular Question Good Answer Notable Question Guru Popular Question Inquisitive Yearling Good Answer Nice Question Good Answer Good Answer Nice Answer Enlightened Famous Question Nice Answer Good Answer Famous Question Good Answer Nice Question Popular Question Census .net Yearling Good Answer Good Answer Nice Answer Notable Question Nice Answer Great Answer Popular Question Good Answer Nice Answer Guru Announcer Famous Question Yearling Favorite Question Good Answer,NULL,pWays to clear an existing array codeA code pp strongMethod strong pp this was my original answer to the question ppre codeA code prepThis code will set the variable codeA code to new empty array This is perfect if you don have strongreferences to the original array codeA code strong anywhere else because this actually creates brand new empty array You should be careful with this method because if you have referenced this array from another variable or property the original array will remain unchanged Only use this if you only reference the array by its original variable codeA code ppThis is also the fastest solution ppThis code sample shows the issue you can encounter when using this method ppre codevar arr1 var arr2 arr1 Reference arr1 by another variable arr1 console log arr2 Output code prep strongMethod strong as href https stackoverflow com 1234337 113570 suggested by href https stackoverflow com users 2214 matthew crumley Matthew Crumley ppre codeA length code prepThis will clear the existing array by setting its length to Some have argued that this may not work in all implementations of JavaScript but it turns out that this is not the case It also works when using strict mode in ECMAScript because the length property of an array is read write property pp strongMethod strong as href https stackoverflow com 8134354 113570 suggested by href https stackoverflow com users 1047275 anthony Anthony ppre codeA splice length code prepUsing code splice code will work perfectly but since the code splice code function will return an array with all the removed items it will actually return copy of the original array Benchmarks suggest that this has no effect on performance whatsoever pp strongMethod strong as href https stackoverflow com 17306971 113570 suggested by href https stackoverflow com users 990356 tanguy tanguy ppre codewhile length gt pop code prepThis solution is not very succinct and it is also the slowest solution contrary to earlier benchmarks referenced in the original answer pp strongPerformance strong ppOf all the methods of clearing an strong emexisting array em strong methods and are very similar in performance and are lot faster than method See this href http jsben ch hyj65 rel noreferrer benchmark ppAs pointed out by href https stackoverflow com users 47401 diadistis Diadistis in their href https stackoverflow com 28548360 113570 answer below the original benchmarks that were used to determine the performance of the four methods described above were flawed The original benchmark reused the cleared array so the second iteration was clearing an array that was already empty ppThe following benchmark fixes this flaw href http jsben ch hyj65 rel noreferrer http jsben ch hyj65 It clearly shows that methods length property and splice are the fastest not counting method which doesn change the original array phr pThis has been hot topic and the cause of lot of controversy There are actually many correct answers and because this answer has been marked as the accepted answer for very long time will include all of the methods here If you vote for this answer please upvote the other answers that have referenced as well For normal arrays the length property is not read only in Typescript and setting it to will work just fine pWays to clear an existing array codeA code pp strongMethod strong pp this was my original answer to the question ppre codeA code prepThis code will set the variable codeA code to new empty array This is perfect if you don have strongreferences to the original array codeA code strong anywhere else because this actually creates brand new empty array You should be careful with this method because if you have referenced this array from another variable or property the original array will remain unchanged Only use this if you only reference the array by its original variable codeA code ppThis is also the fastest solution ppThis code sample shows the issue you can encounter when using this method ppre codevar arr1 var arr2 arr1 Reference arr1 by another variable arr1 console log arr2 Output code prep strongMethod strong as href https stackoverflow com 1234337 113570 suggested by href https stackoverflow com users 2214 matthew crumley Matthew Crumley ppre codeA length code prepThis will clear the existing array by setting its length to Some have argued that this may not work in all implementations of JavaScript but it turns out that this is not the case It also works when using strict mode in ECMAScript because the length property of an array is read write property pp strongMethod strong as href https stackoverflow com 8134354 113570 suggested by href https stackoverflow com users 1047275 anthony Anthony ppre codeA splice length code prepUsing code splice code will work perfectly but since the code splice code function will return an array with all the removed items it will actually return copy of the original array Benchmarks suggest that this has no effect on performance whatsoever pp strongMethod strong as href https stackoverflow com 17306971 113570 suggested by href https stackoverflow com users 990356 tanguy tanguy ppre codewhile length gt pop code prepThis solution is not very succinct and it is also the slowest solution contrary to earlier benchmarks referenced in the original answer pp strongPerformance strong ppOf all the methods of clearing an strong emexisting array em strong methods and are very similar in performance and are lot faster than method See this href http jsben ch hyj65 rel noreferrer benchmark ppAs pointed out by href https stackoverflow com users 47401 diadistis Diadistis in their href https stackoverflow com 28548360 113570 answer below the original benchmarks that were used to determine the performance of the four methods described above were flawed The original benchmark reused the cleared array so the second iteration was clearing an array that was already empty ppThe following benchmark fixes this flaw href http jsben ch hyj65 rel noreferrer http jsben ch hyj65 It clearly shows that methods length property and splice are the fastest not counting method which doesn change the original array phr pThis has been hot topic and the cause of lot of controversy There are actually many correct answers and because this answer has been marked as the accepted answer for very long time will include all of the methods here If you vote for this answer please upvote the other answers that have referenced as well Are you always this hostile added the comment about ECMAScript because there were people who claimed that setting the length doesn work when using strict mode in ECMAScript pWays to clear an existing array codeA code pp strongMethod strong pp this was my original answer to the question ppre codeA code prepThis code will set the variable codeA code to new empty array This is perfect if you don have strongreferences to the original array codeA code strong anywhere else because this actually creates brand new empty array You should be careful with this method because if you have referenced this array from another variable or property the original array will remain unchanged Only use this if you only reference the array by its original variable codeA code ppThis is also the fastest solution ppThis code sample shows the issue you can encounter when using this method ppre codevar arr1 var arr2 arr1 Reference arr1 by another variable arr1 console log arr2 Output code prep strongMethod strong as href https stackoverflow com 1234337 113570 suggested by href https stackoverflow com users 2214 matthew crumley Matthew Crumley ppre codeA length code prepThis will clear the existing array by setting its length to Some have argued that this may not work in all implementations of JavaScript but it turns out that this is not the case It also works when using strict mode in ECMAScript because the length property of an array is read write property pp strongMethod strong as href https stackoverflow com 8134354 113570 suggested by href https stackoverflow com users 1047275 anthony Anthony ppre codeA splice length code prepUsing code splice code will work perfectly but since the code splice code function will return an array with all the removed items it will actually return copy of the original array Benchmarks suggest that this has no effect on performance whatsoever pp strongMethod strong as href https stackoverflow com 17306971 113570 suggested by href https stackoverflow com users 990356 tanguy tanguy ppre codewhile length gt pop code prepThis solution is not very succinct and it is also the slowest solution contrary to earlier benchmarks referenced in the original answer pp strongPerformance strong ppOf all the methods of clearing an strong emexisting array em strong methods and are very similar in performance and are lot faster than method See this href http jsben ch hyj65 rel noreferrer benchmark ppAs pointed out by href https stackoverflow com users 47401 diadistis Diadistis in their href https stackoverflow com 28548360 113570 answer below the original benchmarks that were used to determine the performance of the four methods described above were flawed The original benchmark reused the cleared array so the second iteration was clearing an array that was already empty ppThe following benchmark fixes this flaw href http jsben ch hyj65 rel noreferrer http jsben ch hyj65 It clearly shows that methods length property and splice are the fastest not counting method which doesn change the original array phr pThis has been hot topic and the cause of lot of controversy There are actually many correct answers and because this answer has been marked as the accepted answer for very long time will include all of the methods here If you vote for this answer please upvote the other answers that have referenced as well no it doesn splice is not global function pWays to clear an existing array codeA code pp strongMethod strong pp this was my original answer to the question ppre codeA code prepThis code will set the variable codeA code to new empty array This is perfect if you don have strongreferences to the original array codeA code strong anywhere else because this actually creates brand new empty array You should be careful with this method because if you have referenced this array from another variable or property the original array will remain unchanged Only use this if you only reference the array by its original variable codeA code ppThis is also the fastest solution ppThis code sample shows the issue you can encounter when using this method ppre codevar arr1 var arr2 arr1 Reference arr1 by another variable arr1 console log arr2 Output code prep strongMethod strong as href https stackoverflow com 1234337 113570 suggested by href https stackoverflow com users 2214 matthew crumley Matthew Crumley ppre codeA length code prepThis will clear the existing array by setting its length to Some have argued that this may not work in all implementations of JavaScript but it turns out that this is not the case It also works when using strict mode in ECMAScript because the length property of an array is read write property pp strongMethod strong as href https stackoverflow com 8134354 113570 suggested by href https stackoverflow com users 1047275 anthony Anthony ppre codeA splice length code prepUsing code splice code will work perfectly but since the code splice code function will return an array with all the removed items it will actually return copy of the original array Benchmarks suggest that this has no effect on performance whatsoever pp strongMethod strong as href https stackoverflow com 17306971 113570 suggested by href https stackoverflow com users 990356 tanguy tanguy ppre codewhile length gt pop code prepThis solution is not very succinct and it is also the slowest solution contrary to earlier benchmarks referenced in the original answer pp strongPerformance strong ppOf all the methods of clearing an strong emexisting array em strong methods and are very similar in performance and are lot faster than method See this href http jsben ch hyj65 rel noreferrer benchmark ppAs pointed out by href https stackoverflow com users 47401 diadistis Diadistis in their href https stackoverflow com 28548360 113570 answer below the original benchmarks that were used to determine the performance of the four methods described above were flawed The original benchmark reused the cleared array so the second iteration was clearing an array that was already empty ppThe following benchmark fixes this flaw href http jsben ch hyj65 rel noreferrer http jsben ch hyj65 It clearly shows that methods length property and splice are the fastest not counting method which doesn change the original array phr pThis has been hot topic and the cause of lot of controversy There are actually many correct answers and because this answer has been marked as the accepted answer for very long time will include all of the methods here If you vote for this answer please upvote the other answers that have referenced as well splice is global function defined in the library used by jsfiddle It not part of Javascript Try the same in jsbin and you ll see it doesn work splice is not defined pWays to clear an existing array codeA code pp strongMethod strong pp this was my original answer to the question ppre codeA code prepThis code will set the variable codeA code to new empty array This is perfect if you don have strongreferences to the original array codeA code strong anywhere else because this actually creates brand new empty array You should be careful with this method because if you have referenced this array from another variable or property the original array will remain unchanged Only use this if you only reference the array by its original variable codeA code ppThis is also the fastest solution ppThis code sample shows the issue you can encounter when using this method ppre codevar arr1 var arr2 arr1 Reference arr1 by another variable arr1 console log arr2 Output code prep strongMethod strong as href https stackoverflow com 1234337 113570 suggested by href https stackoverflow com users 2214 matthew crumley Matthew Crumley ppre codeA length code prepThis will clear the existing array by setting its length to Some have argued that this may not work in all implementations of JavaScript but it turns out that this is not the case It also works when using strict mode in ECMAScript because the length property of an array is read write property pp strongMethod strong as href https stackoverflow com 8134354 113570 suggested by href https stackoverflow com users 1047275 anthony Anthony ppre codeA splice length code prepUsing code splice code will work perfectly but since the code splice code function will return an array with all the removed items it will actually return copy of the original array Benchmarks suggest that this has no effect on performance whatsoever pp strongMethod strong as href https stackoverflow com 17306971 113570 suggested by href https stackoverflow com users 990356 tanguy tanguy ppre codewhile length gt pop code prepThis solution is not very succinct and it is also the slowest solution contrary to earlier benchmarks referenced in the original answer pp strongPerformance strong ppOf all the methods of clearing an strong emexisting array em strong methods and are very similar in performance and are lot faster than method See this href http jsben ch hyj65 rel noreferrer benchmark ppAs pointed out by href https stackoverflow com users 47401 diadistis Diadistis in their href https stackoverflow com 28548360 113570 answer below the original benchmarks that were used to determine the performance of the four methods described above were flawed The original benchmark reused the cleared array so the second iteration was clearing an array that was already empty ppThe following benchmark fixes this flaw href http jsben ch hyj65 rel noreferrer http jsben ch hyj65 It clearly shows that methods length property and splice are the fastest not counting method which doesn change the original array phr pThis has been hot topic and the cause of lot of controversy There are actually many correct answers and because this answer has been marked as the accepted answer for very long time will include all of the methods here If you vote for this answer please upvote the other answers that have referenced as well Is that your contribution to StackOverflow This is not Reddit you know,0,NULL,NULL 61487,27221,1020248,NULL,NULL,NULL,0,NULL,NULL 61488,311816,1358726,NULL,NULL,NULL,0,NULL,NULL 61489,1074827,836862,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 61490,1354850,787531,NULL,NULL,NULL,0,NULL,NULL 61491,347444,691104,Yearling Promoter Benefactor Revival Necromancer Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 61492,645336,455928,NULL,NULL,NULL,0,NULL,NULL 61493,151045,837591,NULL,NULL,NULL,0,NULL,NULL 61494,263654,332911,Yearling Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 61495,69736,374882,Yearling,NULL,NULL,0,NULL,NULL 61496,32229,336304,NULL,NULL,NULL,0,NULL,NULL 61497,368127,419300,Popular Question,NULL,NULL,0,NULL,NULL 61498,1515357,299048,Notable Question Nice Question Yearling Famous Question Announcer Necromancer Popular Question Famous Question Revival Yearling Popular Question Good Question Popular Question Notable Question Census Yearling Revival,NULL,NULL,0,NULL,NULL 61499,897185,1349748,Popular Question,NULL,NULL,0,NULL,NULL 61500,1566640,1349748,Popular Question,NULL,NULL,0,NULL,NULL 61501,161441,226727,NULL,NULL,NULL,0,NULL,NULL 61502,491428,180885,NULL,NULL,NULL,0,NULL,NULL 61503,221519,20471,Notable Question Popular Question Favorite Question Nice Answer Popular Question Good Question Famous Question Good Question Good Question Nice Question Yearling Electorate Popular Question Great Answer Caucus Popular Question Great Question Census Custodian Nice Answer Custodian Fanatic Necromancer Great Answer Popular Question Nice Answer Necromancer Nice Answer Caucus Nice Answer Custodian Proofreader Popular Question Necromancer Favorite Question Yearling Documentation User Good Answer Nice Question c# Census Caucus Constituent Nice Question Nice Answer .net Custodian Yearling Great Answer,NULL,jQuery autocomplete tagging plug in like StackOverflow input tags jquery autocomplete tags pWhat solutions accomplish the same auto completion that SO uses for entering tags ppThere are plugins that can handle one word but haven seen any that handle multiple words Added it to the list in the first answer Unfortunately can link directly to codepen io due to not having any code in the answer jQuery autocomplete tagging plug in like StackOverflow input tags jquery autocomplete tags pWhat solutions accomplish the same auto completion that SO uses for entering tags ppThere are plugins that can handle one word but haven seen any that handle multiple words welp yours only has few days under its belt reorganized the list bit to honor the ones that are still available recently updated focused and mentioned Yours made it to,0,NULL,NULL 61504,768998,617108,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 61505,1144309,296298,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61506,246902,184055,Good Answer Yearling,NULL,NULL,0,NULL,NULL 61507,153077,30478,Famous Question Famous Question Notable Question Popular Question Nice Question Good Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Good Answer Famous Question Favorite Question Popular Question Yearling Famous Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Favorite Question Good Question Popular Question Popular Question Yearling Notable Question Popular Question Nice Question Famous Question Good Question Great Question Popular Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 61508,190401,207511,Guru Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 61509,78906,1009250,NULL,NULL,NULL,0,NULL,NULL 61510,79106,1009250,NULL,NULL,NULL,0,NULL,NULL 61511,751276,189514,Notable Question Notable Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61512,456097,116853,Tumbleweed,NULL,NULL,0,NULL,NULL 61513,1075653,272710,NULL,NULL,NULL,0,NULL,NULL 61514,77634,875342,Popular Question Popular Question Yearling Notable Question Necromancer Nice Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 61515,732029,1373760,NULL,NULL,NULL,0,NULL,NULL 61516,905842,105746,NULL,NULL,NULL,0,NULL,NULL 61517,462227,1070481,NULL,NULL,NULL,0,NULL,NULL 61518,72095,1377563,Popular Question Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 61519,379715,1518342,NULL,NULL,NULL,0,NULL,NULL 61520,360238,338871,Notable Question Teacher Custodian Popular Question,NULL,NULL,0,NULL,NULL 61521,190467,142266,Notable Question,NULL,NULL,0,NULL,NULL 61522,19328,93966,Popular Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Nice Question css Popular Question Nice Question Good Question Great Answer Notable Question Good Answer Populist Yearling Good Question Notable Question Nice Answer Popular Question Notable Question Notable Question Famous Question Famous Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Good Question Notable Question Popular Question Famous Question Nice Answer Favorite Question Notable Question Nice Question mysql Popular Question Nice Question Notable Question Yearling Notable Question Popular Question Popular Question Good Answer Famous Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Caucus Popular Question Notable Question Notable Question Nice Answer Enlightened Popular Question Nice Question Nice Answer Popular Question Notable Question Famous Question Notable Question Notable Question Good Question Popular Question Popular Question Good Question Notable Question Notable Question Famous Question Famous Question Nice Question Yearling Famous Question Nice Question Nice Answer Famous Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Nice Question Good Answer,NULL,NULL,0,NULL,NULL 61523,1568260,142733,NULL,NULL,NULL,0,NULL,NULL 61524,101558,28376,Good Answer Organizer Yearling Caucus Guru Custodian Excavator twilio javascript Nice Answer Custodian Cleanup Caucus ruby-on-rails Custodian twilio-api Informed Strunk & White Yearling Nice Answer Enlightened Citizen Patrol twilio-php Nice Answer php twilio Nice Answer node.js Announcer Yearling sms,NULL,pI know late to the party here but the accepted answer will break horribly when trying to work out the age of someone born on the 29th February on leap year This is because the call to codebirthday to date change year now year code creates an invalid date ppI used the following code in Rails project instead ppre codedef age dob now Time now utc to date now year dob year now month gt dob month now month dob month amp amp now day gt dob day end code pre it the one that works,0,NULL,NULL 61525,668029,1377224,Necromancer Steward Yearling Student Documentation Beta Caucus Census Yearling Caucus Announcer Documentation User Caucus Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 61526,69135,197862,Curious Tumbleweed,NULL,NULL,0,NULL,NULL 61527,29881,993864,NULL,NULL,NULL,0,NULL,NULL 61528,297980,596358,NULL,NULL,NULL,0,NULL,NULL 61529,112709,140242,NULL,NULL,NULL,0,NULL,NULL 61530,909777,701505,NULL,NULL,NULL,0,NULL,NULL 61531,3601168,701505,NULL,NULL,NULL,0,NULL,NULL 61532,371904,535022,Curious Necromancer Yearling,NULL,NULL,0,NULL,NULL 61533,74424,109864,Necromancer Popular Question Nice Answer Yearling Necromancer Nice Answer Necromancer Necromancer Nice Answer Yearling Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 61534,47975,485799,NULL,NULL,NULL,0,NULL,NULL 61535,1519624,845343,NULL,NULL,NULL,0,NULL,NULL 61536,18458,46190,Nice Question Notable Question Popular Question Good Answer Nice Answer Enlightened Notable Question Nice Answer Famous Question Yearling Populist Popular Question Popular Question Nice Answer Enlightened Popular Question Popular Question Good Question Popular Question Popular Question Yearling Census Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 61537,449209,1297449,NULL,NULL,NULL,0,NULL,NULL 61538,193750,319759,Student,NULL,NULL,0,NULL,NULL 61539,888375,181385,Yearling,NULL,NULL,0,NULL,NULL 61540,393153,346820,Popular Question Commentator,NULL,NULL,0,NULL,NULL 61541,327503,407575,NULL,NULL,NULL,0,NULL,NULL 61542,42034,408854,Great Question Yearling Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 61543,1108933,1080789,Yearling,NULL,NULL,0,NULL,NULL 61544,64846,632468,Notable Question,NULL,NULL,0,NULL,NULL 61545,352762,883278,Necromancer,NULL,NULL,0,NULL,NULL 61546,1152470,883278,Necromancer,NULL,NULL,0,NULL,NULL 61547,428340,325847,NULL,NULL,NULL,0,NULL,NULL 61548,267861,987304,NULL,NULL,NULL,0,NULL,NULL 61549,293692,934966,Electorate Nice Answer Enlightened Cleanup Yearling Custodian Caucus Nice Answer Enlightened Custodian Reviewer Yearling Census Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 61550,1506513,1074848,NULL,NULL,NULL,0,NULL,NULL 61551,938733,169635,Popular Question Popular Question Popular Question asp.net Notable Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Caucus Constituent Popular Question Popular Question Census Popular Question Nice Answer Enlightened Nice Answer Famous Question Caucus Constituent Yearling Popular Question Documentation User Notable Question Census Notable Question Nice Answer Enlightened Caucus Constituent Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61552,234795,169635,Popular Question Popular Question Popular Question asp.net Notable Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Caucus Constituent Popular Question Popular Question Census Popular Question Nice Answer Enlightened Nice Answer Famous Question Caucus Constituent Yearling Popular Question Documentation User Notable Question Census Notable Question Nice Answer Enlightened Caucus Constituent Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61553,125749,100731,Necromancer Yearling Notable Question Nice Answer Enlightened ruby Nice Answer Guru Nice Answer Enlightened Yearling Investor Caucus Nice Question Nice Answer Enlightened ruby-on-rails-4 Census Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Enlightened rspec Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61554,885583,196379,Good Question Popular Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61555,805497,1256140,Supporter,NULL,NULL,0,NULL,NULL 61556,97555,806200,NULL,NULL,NULL,0,NULL,NULL 61557,133283,687884,Nice Answer Yearling Guru Good Answer Caucus Constituent Custodian Yearling Nice Answer Nice Answer Notable Question Census Nice Answer Enlightened Custodian Yearling Nice Answer Custodian Popular Question,NULL,NULL,0,NULL,NULL 61558,909768,1259676,NULL,NULL,NULL,0,NULL,NULL 61559,43876,878785,NULL,NULL,NULL,0,NULL,NULL 61560,310126,1041226,NULL,NULL,NULL,0,NULL,NULL 61561,87852,1306194,NULL,NULL,NULL,0,NULL,NULL 61562,102169,1247587,Student Supporter Editor Commentator Popular Question,NULL,NULL,0,NULL,NULL 61563,145491,540652,NULL,NULL,NULL,0,NULL,NULL 61564,39797,304635,Student Scholar,NULL,NULL,0,NULL,NULL 61565,167593,262557,Supporter,NULL,NULL,0,NULL,NULL 61566,455075,452898,NULL,NULL,NULL,0,NULL,NULL 61567,315833,775461,Critic Yearling Caucus Commentator Yearling,NULL,NULL,0,NULL,NULL 61568,139717,1030827,NULL,NULL,NULL,0,NULL,NULL 61569,1142231,872294,Necromancer Caucus Announcer,NULL,NULL,0,NULL,NULL 61570,218950,561866,NULL,NULL,NULL,0,NULL,NULL 61571,42402,196121,NULL,NULL,NULL,0,NULL,NULL 61572,420926,356630,Nice Answer Yearling Notable Question Notable Question Excavator,NULL,NULL,0,NULL,NULL 61573,68326,554037,Custodian Yearling Excavator,NULL,NULL,0,NULL,NULL 61574,265921,1103397,Nice Answer Enlightened Citizen Patrol Custodian Custodian Custodian Yearling Enthusiast Curious Peer Pressure Yearling Caucus Constituent Excavator Caucus Popular Question Yearling Popular Question Census Popular Question Fanatic Caucus Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61575,319126,1103397,Nice Answer Enlightened Citizen Patrol Custodian Custodian Custodian Yearling Enthusiast Curious Peer Pressure Yearling Caucus Constituent Excavator Caucus Popular Question Yearling Popular Question Census Popular Question Fanatic Caucus Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61576,8456343,1103397,Nice Answer Enlightened Citizen Patrol Custodian Custodian Custodian Yearling Enthusiast Curious Peer Pressure Yearling Caucus Constituent Excavator Caucus Popular Question Yearling Popular Question Census Popular Question Fanatic Caucus Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61577,8625639,1103397,Nice Answer Enlightened Citizen Patrol Custodian Custodian Custodian Yearling Enthusiast Curious Peer Pressure Yearling Caucus Constituent Excavator Caucus Popular Question Yearling Popular Question Census Popular Question Fanatic Caucus Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61578,13976,33236,Announcer Custodian Custodian Nice Answer Popular Question Explainer Popular Question Nice Answer Notable Question Nice Question Popular Question Yearling Caucus Nice Question Popular Question Guru Nice Question Popular Question Necromancer Notable Question Nice Answer Famous Question Good Answer Good Question Good Question Organizer Cleanup Good Answer Yearling Notable Question Famous Question Popular Question Census Caucus Popular Question Favorite Question Great Question Nice Answer Revival Popular Question Famous Question Great Answer Yearling Popular Question,NULL,Escape command line arguments in net command line arguments h1Short version h1pIs it enough to wrap the argument in quotes and escape code code and code code ph1Code version h1pI want to pass the command line arguments codestring args code to another process using ProcessInfo Arguments ppre codeProcessStartInfo info new ProcessStartInfo info FileName Application ExecutablePath info UseShellExecute true info Verb runas Provides Run as Administratorinfo Arguments EscapeCommandLineArguments args Process Start info code prepThe problem is that get the arguments as an array and must merge them into single string An arguments could be crafted to trick my program ppre codemy exe Documents and Settings MyPath kill all humans except fry code prepAccording to href https stackoverflow com questions 653563 passing command line arguments in 653664 653664 this answer have created the following function to escape single argument but might have missed something ppre codeprivate static string EscapeCommandLineArguments string args string arguments foreach string arg in args arguments arg Replace Replace return arguments code prepIs this good enough or is there any framework function for this my understanding is that at the lowest level the arguments is just single string that the receiving end interpret as list This question is basically what algorithm is used in decoding the raw argument string into list of arguments Escape command line arguments in net command line arguments h1Short version h1pIs it enough to wrap the argument in quotes and escape code code and code code ph1Code version h1pI want to pass the command line arguments codestring args code to another process using ProcessInfo Arguments ppre codeProcessStartInfo info new ProcessStartInfo info FileName Application ExecutablePath info UseShellExecute true info Verb runas Provides Run as Administratorinfo Arguments EscapeCommandLineArguments args Process Start info code prepThe problem is that get the arguments as an array and must merge them into single string An arguments could be crafted to trick my program ppre codemy exe Documents and Settings MyPath kill all humans except fry code prepAccording to href https stackoverflow com questions 653563 passing command line arguments in 653664 653664 this answer have created the following function to escape single argument but might have missed something ppre codeprivate static string EscapeCommandLineArguments string args string arguments foreach string arg in args arguments arg Replace Replace return arguments code prepIs this good enough or is there any framework function for this that topic is an interesting question of its own won be able to contribute much to it but would read the results with interest,0,NULL,NULL 61579,462923,1004716,Popular Question,NULL,NULL,0,NULL,NULL 61580,27030,218249,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61581,237930,97220,Popular Question,NULL,NULL,0,NULL,NULL 61582,1583278,983773,Popular Question,NULL,NULL,0,NULL,NULL 61583,500659,1215020,Scholar Supporter,NULL,NULL,0,NULL,NULL 61584,4485329,1215020,Scholar Supporter,NULL,NULL,0,NULL,NULL 61585,1098442,542957,Necromancer Nice Answer Yearling Popular Question Student Yearling,NULL,NULL,0,NULL,NULL 61586,469395,345427,Famous Question Yearling Revival Critic Caucus Self-Learner Yearling Nice Answer Caucus Caucus Notable Question,NULL,NULL,0,NULL,NULL 61587,397595,77804,java Yearling Notable Question Good Answer Nice Answer Notable Question Popular Question Famous Question Good Question Popular Question Yearling Popular Question Popular Question Popular Question Guru Revival Nice Answer Custodian Popular Question Popular Question Proofreader Popular Question Yearling Custodian Caucus Nice Question Popular Question Good Answer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 61588,2091715,1279754,NULL,NULL,NULL,0,NULL,NULL 61589,356026,1279754,NULL,NULL,,0,, 61590,52002,228683,NULL,NULL,NULL,0,NULL,NULL 61591,693566,1140187,NULL,NULL,NULL,0,NULL,NULL 61592,20933,168034,Inquisitive Popular Question Popular Question Good Question Yearling Great Question Popular Question Nice Question Notable Question Electorate Announcer Announcer Notable Question Popular Question Yearling Popular Question Necromancer Announcer Announcer Famous Question Yearling,NULL,NULL,0,NULL,NULL 61593,13064,137100,Great Answer Notable Question Notable Question Yearling Nice Answer Notable Question Nice Question Nice Question Good Question Yearling Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 61594,2260275,972671,Notable Question Nice Answer Unsung Hero Popular Question Nice Question android Popular Question Popular Question Yearling Notable Question Caucus Constituent Notable Question Nice Question Popular Question Famous Question Popular Question Caucus Good Answer Nice Answer Yearling Documentation User Nice Answer Custodian Famous Question Proofreader Popular Question Nice Question Notable Question Good Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question Inquisitive Nice Question Yearling,NULL,NULL,0,NULL,NULL 61595,13128,1243628,Necromancer Yearling Nice Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 61596,151216,264259,Notable Question,NULL,NULL,0,NULL,NULL 61597,3776318,905426,NULL,NULL,NULL,0,NULL,NULL 61598,1606638,905426,NULL,NULL,NULL,0,NULL,NULL 61599,10213,244000,Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Nice Question Yearling Nice Answer Good Question Notable Question Favorite Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 61600,475745,1539247,NULL,NULL,NULL,0,NULL,NULL 61601,41800,511732,NULL,NULL,NULL,0,NULL,NULL 61602,2182577,511732,NULL,NULL,NULL,0,NULL,NULL 61603,29935,1326960,NULL,NULL,NULL,0,NULL,NULL 61604,98355,418828,Good Answer Nice Question Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 61605,707104,790784,Nice Answer Critic,NULL,NULL,0,NULL,NULL 61606,2610,98770,Good Question Revival Citizen Patrol Yearling Necromancer,NULL,NULL,0,NULL,NULL 61607,425544,1114074,NULL,NULL,NULL,0,NULL,NULL 61608,168076,902533,Student Scholar Nice Answer Enlightened Revival Yearling Caucus Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 61609,404806,821878,Suffrage Vox Populi windows Mortarboard Civic Duty Good Answer Talkative Reviewer Strunk & White Custodian Yearling Reviewer Outspoken Necromancer Necromancer powershell Caucus Nice Answer Constituent Yearling Caucus Announcer Documentation User Nice Answer Enlightened Announcer Pundit Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61610,559984,10956,NULL,NULL,NULL,0,NULL,NULL 61611,423733,804192,NULL,NULL,NULL,0,NULL,NULL 61612,30866,574815,Yearling Good Answer Revival Nice Answer Enlightened Notable Question Inquisitive Nice Question Caucus Nice Answer Nice Question Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Custodian Popular Question Census Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Custodian Proofreader,NULL,NULL,0,NULL,NULL 61613,244846,610245,NULL,NULL,NULL,0,NULL,NULL 61614,118137,1349983,Autobiographer Commentator,NULL,NULL,0,NULL,NULL 61615,257862,1215466,NULL,NULL,NULL,0,NULL,NULL 61616,104989,1359885,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61617,88329,251008,Yearling Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 61618,64075,483453,Civic Duty Necromancer Caucus Necromancer Yearling Caucus Revival Necromancer,NULL,NULL,0,NULL,NULL 61619,2990330,274426,Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Answer Yearling Nice Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61620,23973,1042461,Teacher Editor Supporter Informed Revival Commentator,NULL,NULL,0,NULL,NULL 61621,4283599,897696,NULL,NULL,NULL,0,NULL,NULL 61622,273390,897696,NULL,NULL,NULL,0,NULL,NULL 61623,53201,573177,Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61624,396005,622351,NULL,NULL,NULL,0,NULL,NULL 61625,1155094,793842,Good Question Good Question Necromancer Yearling Notable Question Caucus Constituent Yearling Popular Question Necromancer Popular Question Notable Question Necromancer Necromancer Yearling Popular Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 61626,218070,824611,Necromancer Yearling Critic Caucus Popular Question Constituent Caucus Student Yearling,NULL,NULL,0,NULL,NULL 61627,447916,862422,NULL,NULL,NULL,0,NULL,NULL 61628,38658,1091025,Peer Pressure Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61629,190129,1204375,Custodian Necromancer Nice Answer Documentation User Yearling Announcer Student Yearling Caucus Good Answer Yearling Critic Tumbleweed,NULL,NULL,0,NULL,NULL 61630,432243,906809,NULL,NULL,NULL,0,NULL,NULL 61631,25420,57812,Nice Question Popular Question Famous Question Notable Question Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 61632,1096727,703172,NULL,NULL,NULL,0,NULL,NULL 61633,244351,370796,Good Answer Critic Supporter Yearling,NULL,NULL,0,NULL,NULL 61634,12817,688330,NULL,NULL,NULL,0,NULL,NULL 61635,37791,439499,Citizen Patrol Civic Duty,NULL,NULL,0,NULL,NULL 61636,213703,575892,NULL,NULL,NULL,0,NULL,NULL 61637,313297,1531098,NULL,NULL,NULL,0,NULL,NULL 61638,280270,505059,NULL,NULL,NULL,0,NULL,NULL 61639,34009,158685,Popular Question Notable Question Investor,NULL,NULL,0,NULL,NULL 61640,114809,927347,NULL,NULL,NULL,0,NULL,NULL 61641,717405,59667,Popular Question Caucus,NULL,NULL,0,NULL,NULL 61642,48167,115722,Famous Question Famous Question Good Answer Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Necromancer Popular Question Popular Question Good Question Good Question Great Question Good Answer Yearling Nice Question Nice Question Notable Question Favorite Question Notable Question Notable Question Notable Question Nice Answer Notable Question Necromancer Nice Question Necromancer Nice Answer Stellar Question Nice Answer Famous Question Necromancer Notable Question Good Answer Favorite Question Popular Question Nice Answer Popular Question Famous Question Necromancer Nice Answer Nice Question Necromancer Popular Question Notable Question Notable Question Yearling Famous Question Nice Question Notable Question Great Question Caucus Notable Question Good Question Famous Question Notable Question Great Answer Nice Question Popular Question Popular Question Popular Question Nice Question Yearling Nice Answer Nice Question Good Answer Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61643,672949,1264102,NULL,NULL,NULL,0,NULL,NULL 61644,151938,935030,NULL,NULL,NULL,0,NULL,NULL 61645,759092,1257213,NULL,NULL,NULL,0,NULL,NULL 61646,4986,1329127,NULL,NULL,NULL,0,NULL,NULL 61647,172907,329241,Caucus,NULL,NULL,0,NULL,NULL 61648,645203,1336660,NULL,NULL,NULL,0,NULL,NULL 61649,1222558,1243197,NULL,NULL,NULL,0,NULL,NULL 61650,5843,1209951,Yearling Nice Answer Census,NULL,NULL,0,NULL,NULL 61651,54538,639495,Popular Question,NULL,NULL,0,NULL,NULL 61652,51305,890698,Yearling Good Question,NULL,NULL,0,NULL,NULL 61653,848626,1542169,NULL,NULL,NULL,0,NULL,NULL 61654,439462,1329456,NULL,NULL,NULL,0,NULL,NULL 61655,3573,701101,NULL,NULL,NULL,0,NULL,NULL 61656,158027,919641,Custodian Reviewer Yearling Caucus ruby-on-rails-3 Guru Announcer Great Answer Nice Answer Yearling Documentation User Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 61657,158029,1161766,NULL,NULL,NULL,0,NULL,NULL 61658,722570,860900,NULL,NULL,NULL,0,NULL,NULL 61659,55820,713881,Yearling Self-Learner Nice Question Mortarboard Yearling,NULL,NULL,0,NULL,NULL 61660,880777,637797,NULL,NULL,NULL,0,NULL,NULL 61661,883073,127810,Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 61662,124964,194592,Supporter,NULL,NULL,0,NULL,NULL 61663,28954,1565695,Supporter,NULL,NULL,0,NULL,NULL 61664,336047,275327,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61665,17922,35976,NULL,NULL,NULL,0,NULL,NULL 61666,148570,651142,Necromancer,NULL,NULL,0,NULL,NULL 61667,537458,261821,Yearling Nice Answer Enlightened Nice Answer Yearling Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 61668,199058,857461,Popular Question,NULL,NULL,0,NULL,NULL 61669,196875,626886,NULL,NULL,NULL,0,NULL,NULL 61670,139337,282840,Notable Question Revival Yearling Civic Duty Revival Nice Answer Yearling Good Answer Enlightened Nice Question Yearling,NULL,NULL,0,NULL,NULL 61671,151505,112514,Yearling,NULL,NULL,0,NULL,NULL 61672,135547,49808,Famous Question Famous Question Necromancer Nice Answer Enlightened Yearling Census Documentation User Yearling Notable Question,NULL,NULL,0,NULL,NULL 61673,325393,878921,Notable Question,NULL,NULL,0,NULL,NULL 61674,139342,1443973,NULL,NULL,NULL,0,NULL,NULL 61675,48371,258622,Necromancer Curious Yearling Notable Question Caucus,NULL,NULL,0,NULL,NULL 61676,49455,623331,NULL,NULL,NULL,0,NULL,NULL 61677,6924,400277,Necromancer Yearling Caucus Constituent Custodian Announcer Yearling Documentation User Necromancer Nice Answer Great Answer Excavator Yearling,NULL,NULL,0,NULL,NULL 61678,117410,1469061,Yearling Yearling,NULL,NULL,0,NULL,NULL 61679,285127,730014,NULL,NULL,NULL,0,NULL,NULL 61680,30384,818667,NULL,NULL,NULL,0,NULL,NULL 61681,27349,292431,Yearling Popular Question Yearling Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 61682,22927,282396,Popular Question Critic Popular Question Promoter Famous Question Notable Question,NULL,NULL,0,NULL,NULL 61683,277195,282098,Guru Popular Question Caucus Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 61684,606057,727124,Student,NULL,NULL,0,NULL,NULL 61685,324738,1541911,NULL,NULL,NULL,0,NULL,NULL 61686,102669,1556140,NULL,NULL,NULL,0,NULL,NULL 61687,600380,1525794,NULL,NULL,NULL,0,NULL,NULL 61688,472366,1064666,Necromancer Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 61689,831163,612220,Guru Yearling,NULL,NULL,0,NULL,NULL 61690,3064504,1438868,NULL,NULL,NULL,0,NULL,NULL 61691,389667,1259032,Informed,NULL,NULL,0,NULL,NULL 61692,49967,504173,Popular Question,NULL,NULL,0,NULL,NULL 61693,146482,429311,NULL,NULL,NULL,0,NULL,NULL 61694,1758102,1344303,Teacher Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61695,1183149,518801,Notable Question Notable Question Yearling Revival Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61696,644861,518801,Notable Question Notable Question Yearling Revival Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61697,382011,266528,Popular Question,NULL,NULL,0,NULL,NULL 61698,137142,1539920,Excavator,NULL,NULL,0,NULL,NULL 61699,272883,951123,Nice Answer Editor,NULL,NULL,0,NULL,NULL 61700,73176,951123,Nice Answer Editor,NULL,NULL,0,NULL,NULL 61701,86668,592339,Editor Critic Student Popular Question,NULL,NULL,0,NULL,NULL 61702,243089,243694,Yearling Nice Answer Enlightened Good Answer Yearling Famous Question Good Question Yearling Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 61703,130441,948378,Popular Question,NULL,NULL,0,NULL,NULL 61704,167735,880955,NULL,NULL,NULL,0,NULL,NULL 61705,95404,348350,Custodian Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 61706,74170,826759,Caucus,NULL,NULL,0,NULL,NULL 61707,298382,894334,Supporter,NULL,NULL,0,NULL,NULL 61708,2743838,314118,NULL,NULL,NULL,0,NULL,NULL 61709,1177329,994263,Popular Question Caucus Census Critic Revival Yearling Curious,NULL,NULL,0,NULL,NULL 61710,893235,395680,NULL,NULL,NULL,0,NULL,NULL 61711,87500,438122,Good Answer Yearling Good Answer Guru Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 61712,146874,1128657,NULL,NULL,NULL,0,NULL,NULL 61713,850357,587395,Yearling Revival Yearling Necromancer Nice Answer Deputy Guru Revival Yearling Necromancer Caucus Constituent Good Answer Yearling Documentation User Yearling Great Answer,NULL,NULL,0,NULL,NULL 61714,126850,210307,Nice Question Nice Answer Notable Question Yearling Notable Question Notable Question Tumbleweed Notable Question Revival Necromancer,NULL,NULL,0,NULL,NULL 61715,2170767,210307,Nice Question Nice Answer Notable Question Yearling Notable Question Notable Question Tumbleweed Notable Question Revival Necromancer,NULL,NULL,0,NULL,NULL 61716,16305,1122241,NULL,NULL,NULL,0,NULL,NULL 61717,744907,462936,Nice Answer Enlightened Nice Question Good Answer Yearling Guru Nice Answer Enlightened Yearling Census Caucus Custodian Popular Question Necromancer java Yearling Revival,NULL,NULL,0,NULL,NULL 61718,1206292,811867,Famous Question,NULL,NULL,0,NULL,NULL 61719,186231,257559,Teacher Critic,NULL,NULL,0,NULL,NULL 61720,18586,710865,NULL,NULL,NULL,0,NULL,NULL 61721,21950,495733,NULL,NULL,NULL,0,NULL,NULL 61722,242777,912504,NULL,NULL,NULL,0,NULL,NULL 61723,1256403,869940,Notable Question Famous Question Critic Caucus Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 61724,785193,913447,NULL,NULL,NULL,0,NULL,NULL 61725,60072,1238830,Famous Question,NULL,NULL,0,NULL,NULL 61726,13270,838346,Popular Question,NULL,NULL,0,NULL,NULL 61727,446334,557246,NULL,NULL,NULL,0,NULL,NULL 61728,504269,688778,Popular Question Notable Question Nice Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 61729,442972,649167,Nice Question Necromancer Mortarboard Yearling Notable Question Promoter Popular Question Nice Answer Famous Question Necromancer Popular Question Notable Question Notable Question Good Question Yearling Popular Question Popular Question Nice Question Good Answer Popular Question Famous Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61730,67602,689948,Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61731,629107,50185,Nice Answer Enlightened Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 61732,398469,816943,Necromancer Informed Yearling Nice Answer Enlightened Caucus Constituent Civic Duty Yearling Caucus Documentation User Good Answer Caucus Constituent Yearling python,NULL,NULL,0,NULL,NULL 61733,1570867,220852,NULL,NULL,NULL,0,NULL,NULL 61734,506546,1292120,Popular Question Yearling,NULL,NULL,0,NULL,NULL 61735,130228,707877,NULL,NULL,NULL,0,NULL,NULL 61736,80989,1385070,NULL,NULL,NULL,0,NULL,NULL 61737,435172,579762,NULL,NULL,NULL,0,NULL,NULL 61738,385435,218276,Necromancer Popular Question Curious Popular Question Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61739,754234,817003,NULL,NULL,NULL,0,NULL,NULL 61740,44809,847218,Yearling Necromancer Editor Excavator Caucus Yearling Tumbleweed Student Autobiographer,NULL,NULL,0,NULL,NULL 61741,757225,1398990,NULL,NULL,NULL,0,NULL,NULL 61742,407949,514749,Nice Answer php Notable Question Good Answer Great Answer Nice Answer Enlightened Guru Guru Good Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Good Answer Nice Answer Good Question Nice Answer Notable Question Guru Great Question Good Answer websocket Favorite Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Famous Question Famous Question Famous Question Nice Question Popular Question Good Question Great Answer Popular Question Announcer Guru Nice Answer Enlightened Guru Nice Answer Guru Great Answer Great Question Necromancer Famous Question Notable Question Famous Question Notable Question Great Answer Yearling Notable Question Good Question Good Answer Good Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Question Nice Question Good Answer Nice Answer Popular Question Great Answer Nice Answer Famous Question Notable Question Good Answer Favorite Question Nice Answer Nice Answer Enlightened Famous Question Nice Answer Guru Nice Answer Enlightened Guru Nice Question Nice Answer Nice Answer Enlightened Famous Question Notable Question Good Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Notable Question Nice Answer Guru Good Answer Good Answer Guru Good Question Nice Answer Notable Question Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Notable Question Favorite Question Good Question Nice Question Good Question Good Answer Nice Answer Famous Question Good Answer Great Answer Nice Answer Good Answer Good Question Populist Great Question Great Answer Good Answer Notable Question Notable Question Great Question Yearling Good Question,NULL,NULL,0,NULL,NULL 61743,432674,1147694,Notable Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 61744,984585,1041153,Notable Question Critic Famous Question Caucus Constituent Popular Question Enthusiast Nice Question Documentation User Yearling Caucus Constituent Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 61745,932574,1041153,Notable Question Critic Famous Question Caucus Constituent Popular Question Enthusiast Nice Question Documentation User Yearling Caucus Constituent Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 61746,199149,1245934,Notable Question Necromancer Popular Question Supporter,NULL,NULL,0,NULL,NULL 61747,316848,1108462,NULL,NULL,NULL,0,NULL,NULL 61748,20858,6326,NULL,NULL,NULL,0,NULL,NULL 61749,7948691,533480,Nice Answer Enlightened Yearling Nice Answer Popular Question Caucus Yearling Curious Great Answer,NULL,NULL,0,NULL,NULL 61750,261009,533480,Nice Answer Enlightened Yearling Nice Answer Popular Question Caucus Yearling Curious Great Answer,NULL,NULL,0,NULL,NULL 61751,30984,1558181,NULL,NULL,NULL,0,NULL,NULL 61752,163331,528536,Popular Question,NULL,NULL,0,NULL,NULL 61753,184310,764928,Popular Question,NULL,NULL,0,NULL,NULL 61754,174707,599471,Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 61755,180928,1247700,Autobiographer Informed,NULL,NULL,0,NULL,NULL 61756,372364,1247700,Autobiographer Informed,NULL,NULL,0,NULL,NULL 61757,481791,612011,NULL,NULL,NULL,0,NULL,NULL 61758,139503,884801,NULL,NULL,NULL,0,NULL,NULL 61759,148731,918537,NULL,NULL,NULL,0,NULL,NULL 61760,10657865,918537,NULL,NULL,NULL,0,NULL,NULL 61761,927868,255940,Inquisitive Notable Question Popular Question Nice Question Good Question Caucus Popular Question Notable Question Notable Question Nice Question Popular Question Custodian Popular Question Caucus Famous Question Famous Question Notable Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 61762,922220,987557,Teacher,NULL,NULL,0,NULL,NULL 61763,450879,1141839,Yearling Nice Answer Enlightened Nice Answer c# Nice Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Yearling ruby-on-rails ruby-on-rails-3 Good Answer Generalist Nice Answer Nice Answer Enlightened Caucus sql Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Census Yearling Custodian Caucus Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 61764,789859,1096471,NULL,NULL,NULL,0,NULL,NULL 61765,540032,1053067,Nice Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61766,290281,258453,Yearling javascript Nice Answer Caucus Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 61767,178052,1310388,NULL,NULL,NULL,0,NULL,NULL 61768,229927,733682,NULL,NULL,NULL,0,NULL,NULL 61769,240485,1200013,Necromancer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61770,71207,1137489,NULL,NULL,NULL,0,NULL,NULL 61771,89381,1468318,Necromancer Nice Answer Yearling Nice Answer Critic Revival Caucus Necromancer Popular Question,NULL,NULL,0,NULL,NULL 61772,61251,78305,Yearling Famous Question Nice Answer Caucus Constituent Yearling Custodian Nice Question Good Question Famous Question Caucus Constituent Nice Answer Documentation User Yearling Caucus Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 61773,394539,850057,NULL,NULL,NULL,0,NULL,NULL 61774,56034,65458,Yearling Popular Question Excavator Necromancer Nice Answer Popular Question Nice Answer Good Answer Yearling Popular Question Popular Question Explainer Yearling Caucus Quorum Notable Question Revival Popular Question Autobiographer Nice Answer Announcer Announcer Nice Question Cleanup Announcer Revival,NULL,pAlthough it not necessarily for coverage created this method to verify that the utility class is well defined and do bit of coverage as well ppre code Verifies that utility class is well defined clazz utility class to verify public static void assertUtilityClassWellDefined final Class lt gt clazz throws NoSuchMethodException InvocationTargetException InstantiationException IllegalAccessException Assert assertTrue class must be final Modifier isFinal clazz getModifiers Assert assertEquals There must be only one constructor clazz getDeclaredConstructors length final Constructor lt gt constructor clazz getDeclaredConstructor if constructor isAccessible Modifier isPrivate constructor getModifiers Assert fail constructor is not private constructor setAccessible true constructor newInstance constructor setAccessible false for final Method method clazz getMethods if Modifier isStatic method getModifiers amp amp method getDeclaringClass equals clazz Assert fail there exists non static method method code prepI have placed the full code and examples in href https github com trajano maven jee6 tree master maven jee6 test https github com trajano maven jee6 tree master maven jee6 test Why are you reverting accessibility with setAccessible false What you re modifying is your local reflective handle to the class constructor Resetting could have some sense except you re not using that handle anymore,0,NULL,NULL 61775,254090,1419508,NULL,NULL,NULL,0,NULL,NULL 61776,3303967,224612,Nice Answer Enlightened Caucus Yearling .net Good Answer Caucus Necromancer Nice Answer Enlightened Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 61777,8261082,224612,Nice Answer Enlightened Caucus Yearling .net Good Answer Caucus Necromancer Nice Answer Enlightened Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 61778,736987,1156583,NULL,NULL,NULL,0,NULL,NULL 61779,7926,497125,NULL,NULL,NULL,0,NULL,NULL 61780,526393,361583,Necromancer Critic,NULL,NULL,0,NULL,NULL 61781,178802,1208133,Autobiographer,NULL,NULL,0,NULL,NULL 61782,3825674,1208133,Autobiographer,NULL,NULL,0,NULL,NULL 61783,515840,155213,Proofreader Custodian Explainer Excavator Custodian Reviewer Mortarboard angularjs Fanatic Great Answer Organizer Electorate kotlin Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Caucus kotlin Constituent java android Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling Nice Answer Enlightened Nice Answer Enlightened javascript Good Answer Nice Answer Nice Answer Nice Answer Documentation User Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Good Answer Nice Answer Enlightened Census Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Caucus Constituent Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Great Answer Guru Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Curious,NULL,NULL,1,NULL,How to turn Mutable Collection into an Immutable one kotlin pI was writing small piece of code in which internally handle my data in mutable map which in turn has mutable lists ppI wanted to expose my data to the API user but to avoid any unsafe publication of my data wanted to expose it in immutable collections even when internally being handled by mutable ones ppre codeclass School val roster MutableMap lt Int MutableList lt String gt gt mutableMapOf lt Int MutableList lt String gt gt fun add name String grade Int Unit val students roster getOrPut grade mutableListOf if students contains name students add name fun sort Map lt Int List lt String gt gt return db mapValues entry gt entry value sorted toSortedMap fun grade grade Int db getOrElse grade listOf fun db Map lt Int List lt String gt gt roster Uh oh code prepI managed to expose only codeMap code and codeList code which are immutable in the public API of my class but the instances am actually exposing are emstill em inherently mutable ppWhich means an API user could simply cast my returned map as an ImmutableMap and gain access to the precious private data internal to my class which was intended to be protected of this kind of access ppI couldn find copy constructor in the collection factory methods codemutableMapOf code or codemutableListOf code and so was wondering what is the best and most efficient way to turn mutable collection into an immutable one ppAny advice or recommendations pCurrently in Kotlin stdlib there are no implementations of codeList lt gt code codeMap lt gt code that strongwould not also implement strong codeMutableList lt gt code codeMutableMap lt gt code However due to href https kotlinlang org docs reference delegation html Kotlin delegation feature the implementations become one liners ppre codeclass ImmutableList lt gt private val inner List lt gt List lt gt by innerclass ImmutableMap lt gt private val inner Map lt gt Map lt gt by inner code prepYou can also enhance the creation of the immutable counterparts with extension methods ppre codefun lt gt Map lt gt toImmutableMap Map lt gt if this is ImmutableMap lt gt return this else return ImmutableMap this fun lt gt List lt gt toImmutableList List lt gt if this is ImmutableList lt gt return this else return ImmutableList this code prepThe above prevents caller from modifying the codeList code codeMap code by casting to different class However there are still reasons to create copy of the original container to prevent subtle issues like href https docs oracle com javase docs api java util ConcurrentModificationException html ConcurrentModificationException ppre codeclass ImmutableList lt gt private constructor private val inner List lt gt List lt gt by inner companion object fun lt gt create inner List lt gt if inner is ImmutableList lt gt inner else ImmutableList inner toList class ImmutableMap lt gt private constructor private val inner Map lt gt Map lt gt by inner companion object fun lt gt create inner Map lt gt if inner is ImmutableMap lt gt inner else ImmutableMap hashMapOf inner toList toTypedArray fun lt gt Map lt gt toImmutableMap Map lt gt ImmutableMap create this fun lt gt List lt gt toImmutableList List lt gt ImmutableList create this code prepWhile the above is not hard to implement there are already implementations of immutable lists and maps in both href https github com google guava wiki ImmutableCollectionsExplained Guava and href https projects eclipse org proposals eclipse collections Eclipse Collections 61784,462014,413477,NULL,NULL,NULL,0,NULL,NULL 61785,41109,210588,Guru Nice Answer Enlightened Good Answer Nice Question Nice Answer Famous Question Famous Question Yearling Nice Answer Nice Answer Announcer Nice Answer Enlightened Yearling Good Question Good Answer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61786,134491,1380712,NULL,NULL,NULL,0,NULL,NULL 61787,1505456,720962,NULL,NULL,NULL,0,NULL,NULL 61788,13823,282051,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 61789,354297,1138993,NULL,NULL,NULL,0,NULL,NULL 61790,476496,1390173,NULL,NULL,NULL,0,NULL,NULL 61791,564479,1145331,Tumbleweed Notable Question Nice Question Commentator Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 61792,529425,1384751,NULL,NULL,NULL,0,NULL,NULL 61793,115389,1150795,Yearling Nice Answer Unsung Hero Nice Answer Good Answer Announcer Announcer Caucus android Nice Answer Yearling Excavator Populist Fanatic Nice Answer Enlightened Caucus Census Yearling Announcer Custodian Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 61794,125108,340720,Nice Answer Necromancer Student,NULL,NULL,0,NULL,NULL 61795,46114,597473,Excavator Yearling Custodian Yearling Organizer Yearling Custodian Tenacious clojure Explainer Civic Duty Mortarboard Nice Answer Enlightened Fanatic clojure Caucus Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Yearling Nice Answer Enlightened clojurescript Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,pI am not aware of public API to achive this However you might use href https github com clojure clojurescript blob f3955e95ab17da6e316dfca9ec8146a2d1cacec7 src main clojure cljs env cljc L16 L44 rel nofollow noreferrer codecljs env compiler code dynamic var in your macro to check the target platform NodeJS vs browser configured with code target code in your code compiler options code and either emit or suppress the code wrapped in the macro ppre class lang clj prettyprint override code defn nodejs target nodejs get in env compiler options target defmacro code for nodejs amp body when nodejs target do defmacro code for browser amp body when not nodejs target do code for nodejs def my variable Compiled for nodejs println Hello from nodejs code for browser def my variable Compiled for browser println Hello from browser code pre Hmm that might be an issue depending on how CLJS compiler handles it You might try to move require out of the ns form and move it to standalone require wrapped in one of the macros and see if it works Clojure calling Bytes from hbase utils returns non type matching result java hadoop clojure hbase byte pThere is functioncode defn gt bytes Bytes toBytes code ppwhere codeBytes code comes from the Apache Hbase Client Utils code org apache hadoop hbase util Bytes code from code org apache hbase hbase shaded client code ppcalling code seq gt bytes long 10 gt 10 codebut calling code seq Bytes toBytes long 10 gt 10 code ppI tried to print the type of codex code inside code gt bytes code and saw it was still java lang long ppTotally confused could not figure out what wrong phrpUpdate ppThis seems to be problem that is probabilty triggered everything worked fine as restarted the REPL but worked weird again when restarted the REPL again phrpUpdate pp code seq gt bytes Long MAX VALUE gt code seq Bytes toBytes Long 10 gives me java lang IllegalArgumentException More than one matching method found toBytes Is this exactly the code you are using Clojure calling Bytes from hbase utils returns non type matching result java hadoop clojure hbase byte pThere is functioncode defn gt bytes Bytes toBytes code ppwhere codeBytes code comes from the Apache Hbase Client Utils code org apache hadoop hbase util Bytes code from code org apache hbase hbase shaded client code ppcalling code seq gt bytes long 10 gt 10 codebut calling code seq Bytes toBytes long 10 gt 10 code ppI tried to print the type of codex code inside code gt bytes code and saw it was still java lang long ppTotally confused could not figure out what wrong phrpUpdate ppThis seems to be problem that is probabilty triggered everything worked fine as restarted the REPL but worked weird again when restarted the REPL again phrpUpdate pp code seq gt bytes Long MAX VALUE gt code have removed my answer as you have found the root cause in another SO question,1,NULL,How to define target env in compile time while building cljs node js clojurescript boot clj cljsbuild pI want to compile my code cljs code file for both browser and node js environments to get server side rendering As understand there no way to define cljs env in compile time with reader macro conditions like ppre code clj cljs code prepso can easily tell compiler to process something like code cljs node code in node js env ppSecond option see here is to develop macro file which will define env at compile time But how to define that current build is targeting node js May be could pass some params somehow to compiler or get code target code compiler param ppHere are my boot files ppapplication cljs edn ppre code require filemporium client core init fns filemporium client core init code prepapplication node cljs edn ppre code require filemporium ssr core init fns filemporium ssr core main compiler options preamble include js target nodejs optimizations simple code pre pI am not aware of public API to achive this However you might use href https github com clojure clojurescript blob f3955e95ab17da6e316dfca9ec8146a2d1cacec7 src main clojure cljs env cljc L16 L44 rel nofollow noreferrer codecljs env compiler code dynamic var in your macro to check the target platform NodeJS vs browser configured with code target code in your code compiler options code and either emit or suppress the code wrapped in the macro ppre class lang clj prettyprint override code defn nodejs target nodejs get in env compiler options target defmacro code for nodejs amp body when nodejs target do defmacro code for browser amp body when not nodejs target do code for nodejs def my variable Compiled for nodejs println Hello from nodejs code for browser def my variable Compiled for browser println Hello from browser code pre 61796,566156,1207817,NULL,NULL,NULL,0,NULL,NULL 61797,127911,588518,NULL,NULL,NULL,0,NULL,NULL 61798,625700,1265978,Yearling Nice Answer Enlightened Caucus Popular Question,NULL,NULL,0,NULL,NULL 61799,39693,137685,Good Question Teacher Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 61800,242610,1285863,Popular Question Supporter,NULL,NULL,0,NULL,NULL 61801,176719,155975,Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61802,5106314,155975,Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61803,173241,921673,NULL,NULL,NULL,0,NULL,NULL 61804,90210,740326,Popular Question Announcer,NULL,NULL,0,NULL,NULL 61805,925042,479592,NULL,NULL,NULL,0,NULL,NULL 61806,274863,216890,Tumbleweed Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 61807,51609,237783,Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 61808,325349,609972,Critic Notable Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 61809,130597,252627,Yearling Favorite Question Yearling Announcer Announcer Caucus Announcer Tag Editor Inquisitive Notable Question Custodian Nice Question Announcer Announcer Yearling Taxonomist Announcer Announcer Popular Question Necromancer Announcer Announcer Necromancer Famous Question Necromancer Announcer Civic Duty Informed Announcer,NULL,NULL,0,NULL,NULL 61810,817726,272465,NULL,NULL,NULL,0,NULL,NULL 61811,399588,369550,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 61812,27557,392725,Good Answer Custodian Yearling Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61813,45171,484460,Notable Question Popular Question Popular Question Citizen Patrol Yearling Notable Question Good Question Good Question Popular Question Nice Answer Popular Question Popular Question Yearling Custodian Popular Question Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 61814,1515235,761136,NULL,NULL,NULL,0,NULL,NULL 61815,29411,324234,Curious Yearling Autobiographer Popular Question Custodian Custodian Critic Notable Question,NULL,NULL,0,NULL,NULL 61816,220074,1410000,NULL,NULL,NULL,0,NULL,NULL 61817,195406,1005832,Popular Question,NULL,NULL,0,NULL,NULL 61818,1000333,369306,Necromancer Yearling Yearling Nice Answer Enlightened Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 61819,227378,427489,NULL,NULL,NULL,0,NULL,NULL 61820,210192,1223809,NULL,NULL,NULL,0,NULL,NULL 61821,46791,205826,Yearling,NULL,NULL,0,NULL,NULL 61822,37983,570345,Notable Question,NULL,NULL,0,NULL,NULL 61823,1803905,570345,Notable Question,NULL,NULL,0,NULL,NULL 61824,500431,207912,Tumbleweed,NULL,NULL,0,NULL,NULL 61825,549939,1200871,NULL,NULL,NULL,0,NULL,NULL 61826,73897,586382,Good Answer Yearling Caucus Guru Yearling Enthusiast Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 61827,529282,431285,Revival Enthusiast,NULL,NULL,0,NULL,NULL 61828,35281,357198,Notable Question Yearling Documentation Pioneer Great Question Caucus Constituent common-lisp Necromancer Popular Question Notable Question Yearling Announcer Famous Question Documentation User Nice Answer Enlightened Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 61829,1231487,966100,Custodian Yearling Reviewer Electorate Yearling Documentation User Nice Answer Enlightened Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61830,380576,1204039,NULL,NULL,NULL,0,NULL,NULL 61831,102986,396050,Yearling Popular Question Nice Answer Great Answer Yearling Notable Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 61832,356717,1034612,Scholar Citizen Patrol,NULL,NULL,0,NULL,NULL 61833,63367,202914,Nice Answer Custodian Nice Answer Enlightened Notable Question Guru Excavator Nice Answer Yearling Nice Answer Enlightened Yearling Great Answer Revival Announcer Yearling Good Answer,NULL,pPostgreSQL since version has href http www postgresql org docs devel static sql insert html rel noreferrer UPSERT syntax with strong href http www postgresql org docs current static sql insert html SQL ON CONFLICT rel noreferrer ON CONFLICT clause strong with the following syntax similar to MySQL ppre codeINSERT INTO the table id column column VALUES ON CONFLICT id DO UPDATE SET column excluded column column excluded column code prehrpSearching postgresql email group archives for upsert leads to finding href http www postgresql org docs current static plpgsql control structures html PLPGSQL UPSERT EXAMPLE rel noreferrer an example of doing what you possibly want to do in the manual pblockquote strongExample 38 Exceptions with UPDATE INSERT strong pThis example uses exception handling to perform either UPDATE or INSERT as appropriate blockquotepre codeCREATE TABLE db INT PRIMARY KEY TEXT CREATE FUNCTION merge db key INT data TEXT RETURNS VOID AS BEGIN LOOP first try to update the key note that must be unique UPDATE db SET data WHERE key IF found THEN RETURN END IF not there so try to insert the key if someone else inserts the same key concurrently we could get unique key failure BEGIN INSERT INTO db VALUES key data RETURN EXCEPTION WHEN unique violation THEN do nothing and loop to try the UPDATE again END END LOOP END LANGUAGE plpgsql SELECT merge db david SELECT merge db dennis code prehrpThere possibly an example of how to do this in bulk using CTEs in and above in the href http archives postgresql org pgsql hackers 2011 06 msg01826 php rel noreferrer hackers mailing list ppre codeWITH foos AS SELECT UNNEST foo updated as UPDATE foo SET foo foos RETURNING foo id INSERT INTO foo SELECT foos FROM foos LEFT JOIN updated USING id WHERE updated id IS NULL code prepSee href https stackoverflow com 8702291 642706 horse with no name answer for clearer example Another problem is that you will have to include all the NOT NULL columns to the INSERT statement even though you have no intention to update those columns otherwise you ll get constraint violation error,0,NULL,NULL 61834,80578,1501026,NULL,NULL,NULL,0,NULL,NULL 61835,1547,105544,Yearling Notable Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 61836,63917,241166,Good Answer Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 61837,92568,705668,NULL,NULL,NULL,0,NULL,NULL 61838,10102,1127414,NULL,NULL,NULL,0,NULL,NULL 61839,344782,484538,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61840,60409,42636,Notable Question Notable Question Nice Question Popular Question Favorite Question Good Question Good Question Famous Question Famous Question Notable Question Popular Question Notable Question Good Question Nice Question Famous Question Notable Question Great Question Notable Question Famous Question Popular Question Famous Question Notable Question Famous Question Good Question Great Question Popular Question Nice Question Famous Question Famous Question Good Question Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question Great Question Popular Question Notable Question Famous Question Famous Question Good Question Nice Question Famous Question Nice Question Favorite Question Nice Question Yearling Favorite Question Good Question Nice Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Favorite Question Famous Question Notable Question Notable Question Notable Question Famous Question Good Question Great Question Famous Question Popular Question Good Question Notable Question Popular Question Notable Question Notable Question Socratic Popular Question Nice Question Popular Question Great Question Famous Question Popular Question Popular Question Famous Question Notable Question Favorite Question Nice Answer Popular Question Famous Question Nice Question Popular Question Popular Question Famous Question Nice Question Famous Question Popular Question Yearling Popular Question Notable Question Great Question Great Question Famous Question Famous Question Nice Question Famous Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Good Question Famous Question Nice Question Notable Question Popular Question Popular Question Nice Question Famous Question Nice Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Favorite Question Nice Question Popular Question Notable Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 61841,411816,943612,Popular Question Yearling Fanatic Revival Nice Answer Nice Question Notable Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 61842,859376,731294,NULL,NULL,NULL,0,NULL,NULL 61843,26930,1064334,NULL,NULL,NULL,0,NULL,NULL 61844,300241,392881,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 61845,30882,946409,Revival Good Question Popular Question Yearling Revival Reviewer Inquisitive Caucus Popular Question Announcer Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Necromancer Nice Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 61846,384052,183921,NULL,NULL,NULL,0,NULL,NULL 61847,364957,1221439,Editor Informed,NULL,NULL,0,NULL,NULL 61848,37140,359219,Popular Question Popular Question Nice Question Popular Question Critic Famous Question Popular Question Notable Question Popular Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Great Question Popular Question Notable Question Popular Question Yearling Popular Question Caucus Popular Question Documentation User Cleanup Famous Question Popular Question Nice Question Notable Question Caucus Nice Question Yearling Enthusiast Notable Question Popular Question Popular Question Popular Question Favorite Question Nice Question Popular Question Nice Question Self-Learner,NULL,NULL,0,NULL,NULL 61849,172785,1506688,NULL,NULL,NULL,0,NULL,NULL 61850,76170,62918,Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 61851,415080,637692,NULL,NULL,NULL,0,NULL,NULL 61852,135587,223090,Popular Question Famous Question Great Answer Notable Question Yearling Custodian Popular Question Popular Question Popular Question Yearling Great Question Popular Question Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 61853,86680,528934,Famous Question Nice Answer Nice Question Notable Question Favorite Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 61854,312484,1056913,NULL,NULL,NULL,0,NULL,NULL 61855,5465,36303,Good Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 61856,603624,529143,NULL,NULL,NULL,0,NULL,NULL 61857,844896,229222,NULL,NULL,NULL,0,NULL,NULL 61858,316812,58505,Nice Question Yearling Notable Question Popular Question Nice Answer Popular Question Nice Answer Necromancer Notable Question Favorite Question ios Notable Question Popular Question Peer Pressure Popular Question Good Answer Notable Question Good Answer Nice Question Popular Question javascript Popular Question Popular Question Civic Duty Yearling Popular Question Good Answer Nice Answer Necromancer Popular Question Notable Question Announcer Notable Question Good Question Great Question Notable Question Popular Question Yearling Popular Question Nice Answer Nice Question Good Question,NULL,NULL,0,NULL,NULL 61859,398472,371201,NULL,NULL,NULL,0,NULL,NULL 61860,9479,499642,Commentator Scholar Yearling Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 61861,699220,958045,NULL,NULL,NULL,0,NULL,NULL 61862,6518429,937611,Popular Question,NULL,NULL,0,NULL,NULL 61863,267530,479524,Caucus Yearling,NULL,NULL,0,NULL,NULL 61864,132434,756048,Necromancer,NULL,NULL,0,NULL,NULL 61865,99918,315142,Student Yearling Self-Learner Commentator Popular Question,NULL,NULL,0,NULL,NULL 61866,80563,604417,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61867,4986547,604417,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 61868,167918,788899,NULL,NULL,NULL,0,NULL,NULL 61869,1991263,585512,Popular Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 61870,122368,262661,Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61871,108175,1102131,Popular Question,NULL,NULL,0,NULL,NULL 61872,144158,137777,NULL,NULL,NULL,0,NULL,NULL 61873,171370,39077,NULL,NULL,NULL,0,NULL,NULL 61874,94628,403367,Famous Question Notable Question Caucus Constituent Nice Question Notable Question Notable Question Caucus Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 61875,333375,190902,Good Answer Popular Question Popular Question Nice Question Great Answer Famous Question Yearling Famous Question Good Question Notable Question Good Answer Notable Question Nice Answer Enlightened Yearling Guru Nice Question Famous Question Popular Question Nice Question Famous Question Great Answer Civic Duty Yearling Favorite Question,NULL,NULL,0,NULL,NULL 61876,255396,597749,NULL,NULL,NULL,0,NULL,NULL 61877,427663,843346,NULL,NULL,NULL,0,NULL,NULL 61878,10997,1316250,Nice Answer Enlightened Good Answer Yearling Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 61879,511458,729433,Nice Answer,NULL,NULL,0,NULL,NULL 61880,141897,8002,Necromancer Custodian Nice Answer Good Answer Yearling Nice Answer Good Answer Popular Question Necromancer Yearling Nice Answer Caucus Good Answer Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 61881,1437540,551513,Yearling,NULL,NULL,0,NULL,NULL 61882,2125259,551513,Yearling,NULL,NULL,0,NULL,NULL 61883,685109,1193269,Custodian Yearling Great Question Notable Question Good Answer Nice Answer Enlightened Yearling android Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61884,701420,1111164,NULL,NULL,NULL,0,NULL,NULL 61885,582710,1186931,NULL,NULL,NULL,0,NULL,NULL 61886,65139,6812,Good Question Yearling,NULL,NULL,0,NULL,NULL 61887,597843,691612,NULL,NULL,NULL,0,NULL,NULL 61888,301398,1110169,Good Answer Yearling Critic Yearling Supporter,NULL,NULL,0,NULL,NULL 61889,7222,444705,Revival Necromancer Good Answer Yearling Scholar Necromancer Caucus Great Answer Announcer Census Caucus Yearling Documentation User Nice Answer Guru Census Guru Yearling,NULL,pSee code code href http vimdoc sourceforge net htmldoc insert html popupmenu keys rel nofollow noreferrer codepopupmenu keys code ppThere is no special set of mappings for the popup menu sub mode but you can make conditional insert mode mapping ppre codeinoremap lt expr gt pumvisible lt gt inoremap lt expr gt pumvisible lt gt code prepThis makes codej code codek code navigate the popup menu like code lt gt code code lt gt code while it is visible ppAddendum If you want to be able to hold in control while you type codej code and codek code you can replace them with code lt gt code and code lt gt code respectively See mwcz comment to this answer Good suggestion noted mwcz solution in the answer However don want to change the main answer because the question specifically asked for and,0,NULL,NULL 61890,39845,1261728,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 61891,1761415,19422,Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 61892,112734,19422,Nice Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 61893,576289,832044,NULL,NULL,NULL,0,NULL,NULL 61894,31260,157510,Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 61895,1007616,404831,Autobiographer,NULL,NULL,0,NULL,NULL 61896,97033,459820,Popular Question Famous Question Nice Question Yearling Popular Question Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61897,35260,1028049,NULL,NULL,NULL,0,NULL,NULL 61898,715463,177727,NULL,NULL,NULL,0,NULL,NULL 61899,247272,159554,Custodian Informed Popular Question Notable Question,NULL,NULL,0,NULL,NULL 61900,41462,1105283,Revival Necromancer Revival Census Revival Yearling Nice Answer Populist Yearling Good Answer Yearling Civic Duty Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 61901,260977,222942,Critic Curious Popular Question,NULL,NULL,0,NULL,NULL 61902,3275515,224295,Nice Answer Good Answer Yearling Popular Question Guru Yearling Notable Question Nice Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 61903,295497,224295,Nice Answer Good Answer Yearling Popular Question Guru Yearling Notable Question Nice Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 61904,3083156,521810,NULL,NULL,NULL,0,NULL,NULL 61905,530854,1252273,NULL,NULL,NULL,0,NULL,NULL 61906,66855,662632,Yearling Editor Revival Yearling,NULL,NULL,0,NULL,NULL 61907,241095,601571,NULL,NULL,NULL,0,NULL,NULL 61908,74219,365830,Critic Popular Question Necromancer,NULL,NULL,0,NULL,NULL 61909,75757,1166306,Citizen Patrol Yearling Custodian Custodian Notable Question Revival Necromancer Yearling Curious Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 61910,394916,1202421,Good Answer Yearling Good Answer Nice Answer Nice Question Guru Guru Notable Question Popular Question Necromancer Yearling Nice Answer Great Answer Excavator Popular Question Good Answer Populist Nice Answer Enlightened Announcer Nice Answer Nice Answer Popular Question Good Answer Announcer Popular Question api Nice Answer Guru Good Answer Great Answer Necromancer Pundit Yearling Popular Question Nice Answer Enlightened Necromancer Nice Answer Popular Question Nice Answer,NULL,,0,, 61911,575647,1422811,NULL,NULL,NULL,0,NULL,NULL 61912,461827,1011181,NULL,NULL,NULL,0,NULL,NULL 61913,102916,634020,Famous Question Yearling Nice Question Nice Question Popular Question Popular Question Yearling Notable Question Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61914,803768,19500,Famous Question Necromancer Revival Nice Answer Notable Question Yearling Caucus Nice Answer Popular Question Nice Question Nice Answer Notable Question Caucus Yearling Nice Answer Good Question .net Caucus Nice Answer Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 61915,74140,26023,Self-Learner,NULL,NULL,0,NULL,NULL 61916,298069,26023,Self-Learner,NULL,NULL,0,NULL,NULL 61917,107214,573153,Yearling morphia Nice Answer Notable Question Taxonomist Nice Answer Notable Question Caucus Notable Question Nice Question Yearling Famous Question Notable Question Revival Nice Answer Enlightened Caucus Popular Question Custodian Yearling Caucus java Announcer Announcer,NULL,NULL,0,NULL,NULL 61918,284839,792791,Popular Question Yearling Notable Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 61919,49726,403218,NULL,NULL,NULL,0,NULL,NULL 61920,95756,93498,Famous Question Nice Answer Enlightened Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 61921,279868,1353319,NULL,NULL,NULL,0,NULL,NULL 61922,230992,1246182,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 61923,914325,603538,NULL,NULL,NULL,0,NULL,NULL 61924,192631,764955,Autobiographer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61925,2634062,827184,NULL,NULL,NULL,0,NULL,NULL 61926,1354332,979636,NULL,NULL,NULL,0,NULL,NULL 61927,342271,1205010,NULL,NULL,NULL,0,NULL,NULL 61928,242942,7576,NULL,NULL,NULL,0,NULL,NULL 61929,1262693,628328,Notable Question,NULL,NULL,0,NULL,NULL 61930,126648,660815,NULL,NULL,NULL,0,NULL,NULL 61931,149554,471514,NULL,NULL,NULL,0,NULL,NULL 61932,5362,440132,NULL,NULL,NULL,0,NULL,NULL 61933,659303,364937,NULL,NULL,NULL,0,NULL,NULL 61934,103404,424110,Yearling Popular Question,NULL,NULL,0,NULL,NULL 61935,190419,1464696,Nice Answer Enlightened Nice Answer Announcer Yearling ckeditor Good Answer Guru Guru Investor Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Taxonomist Cleanup Caucus Constituent Popular Question Yearling Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 61936,620416,583722,NULL,NULL,NULL,0,NULL,NULL 61937,351946,455449,Necromancer Enlightened Civic Duty Nice Answer Great Answer Popular Question Necromancer Nice Answer Nice Question Yearling Notable Question Good Answer Yearling Necromancer Promoter Nice Question Organizer Yearling Custodian java Good Answer,NULL,NULL,0,NULL,NULL 61938,46271,1418796,Guru Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Great Answer Guru Good Answer Great Answer Announcer Good Answer Nice Answer Nice Answer Enlightened Guru Great Answer Great Answer Popular Question Announcer Good Answer Great Answer Guru Yearling Nice Answer Announcer Good Answer Nice Answer Enlightened Revival Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Publicist Great Answer Guru Nice Answer Enlightened Great Answer Announcer Announcer Nice Answer Enlightened Great Answer Good Answer Necromancer Good Answer Nice Answer Guru Announcer Booster Announcer Guru Guru Good Answer Publicist angular Good Answer Announcer Announcer Yearling Announcer Announcer Great Answer Nice Answer Enlightened Announcer Publicist Announcer Booster Booster Revival Nice Answer Nice Answer Enlightened ng-bootstrap Announcer Publicist Guru Announcer Necromancer Nice Answer Enlightened Good Answer Publicist Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Announcer Announcer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Announcer,NULL,NULL,0,NULL,NULL 61939,404455,133263,NULL,NULL,NULL,0,NULL,NULL 61940,731739,1043375,NULL,NULL,NULL,0,NULL,NULL 61941,122783,105622,NULL,NULL,NULL,0,NULL,NULL 61942,24011,339122,Announcer Yearling Popular Question Guru Nice Answer Popular Question Yearling Guru Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 61943,287611,596170,Famous Question Popular Question Notable Question Yearling Critic,NULL,NULL,0,NULL,NULL 61944,343773,654925,NULL,NULL,NULL,0,NULL,NULL 61945,4366,388900,NULL,NULL,NULL,0,NULL,NULL 61946,234590,339025,NULL,NULL,NULL,0,NULL,NULL 61947,117207,988849,NULL,NULL,NULL,0,NULL,NULL 61948,367482,162972,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 61949,315731,1364071,Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 61950,637627,441081,NULL,NULL,NULL,0,NULL,NULL 61951,463475,1231899,NULL,NULL,NULL,0,NULL,NULL 61952,69452,696361,Scholar,NULL,NULL,0,NULL,NULL 61953,362469,934015,Popular Question,NULL,NULL,0,NULL,NULL 61954,155052,1126209,NULL,NULL,NULL,0,NULL,NULL 61955,902675,600453,NULL,NULL,NULL,0,NULL,NULL 61956,129056,410231,NULL,NULL,NULL,0,NULL,NULL 61957,38561,835162,NULL,NULL,NULL,0,NULL,NULL 61958,6260,301051,Yearling Curious Tenacious Yearling Revival Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 61959,293185,482406,NULL,NULL,NULL,0,NULL,NULL 61960,5770,1415726,Yearling Yearling Guru Yearling Necromancer,NULL,NULL,0,NULL,NULL 61961,187195,1072913,NULL,NULL,NULL,0,NULL,NULL 61962,640372,1394307,Nice Answer Enlightened Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61963,46903,275339,Revival Civic Duty Yearling,NULL,NULL,0,NULL,NULL 61964,1201491,1287554,Famous Question Yearling Popular Question Famous Question Popular Question Popular Question Good Question Nice Answer Notable Question Yearling Good Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 61965,1478774,728502,NULL,NULL,NULL,0,NULL,NULL 61966,17047,486057,Nice Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Informed Peer Pressure java Nice Question Nice Question Guru Popular Question Great Question Popular Question Popular Question Notable Question Nice Question Famous Question Notable Question Yearling Famous Question Nice Answer Popular Question Notable Question Stellar Question Good Answer Popular Question Popular Question Nice Question Good Answer Popular Question Notable Question Popular Question Nice Answer Enlightened Nice Question Nice Question Popular Question Famous Question Notable Question Good Question Good Answer Popular Question Nice Question Documentation User Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Question Populist Nice Question Popular Question Popular Question Notable Question Nice Question Notable Question Good Question Nice Question Popular Question Notable Question Famous Question Popular Question Notable Question Good Answer Yearling Famous Question,NULL,pI have the following utility method for running commands ppre codeimport sys process def runCommand cmd Seq String Int String String val stdoutStream new ByteArrayOutputStream val stderrStream new ByteArrayOutputStream val stdoutWriter new PrintWriter stdoutStream val stderrWriter new PrintWriter stderrStream val exitValue cmd ProcessLogger stdoutWriter println stderrWriter println stdoutWriter close stderrWriter close exitValue stdoutStream toString stderrStream toString code prepAs you can see it captures stdout stderr and result code tested with the following script got output both times http pastebin com myvfwZWQ What do you use for testing this,0,NULL,NULL 61967,95998,604182,Enthusiast Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 61968,543480,471990,Announcer Notable Question,NULL,NULL,0,NULL,NULL 61969,273600,232424,Yearling Great Question Announcer Critic Caucus,NULL,NULL,0,NULL,NULL 61970,598946,1107448,Nice Answer Enlightened Good Answer Yearling Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 61971,883281,773620,Notable Question,NULL,NULL,0,NULL,NULL 61972,799527,891245,NULL,NULL,NULL,0,NULL,NULL 61973,859206,974407,Stellar Question Famous Question Popular Question Popular Question Famous Question Nice Answer Nice Answer Popular Question Nice Question Popular Question Notable Question Good Answer Notable Question Revival Popular Question Popular Question Great Question Necromancer Notable Question Favorite Question Nice Answer Popular Question Popular Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Good Answer Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Revival Notable Question Self-Learner Popular Question Notable Question Popular Question Popular Question Necromancer Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 61974,149069,603482,NULL,NULL,NULL,0,NULL,NULL 61975,6025,564855,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 61976,64289,772874,Yearling Caucus Yearling Good Answer Announcer Yearling Custodian,NULL,NULL,0,NULL,NULL 61977,230338,1018986,NULL,NULL,NULL,0,NULL,NULL 61978,90491,247695,Yearling Tag Editor Custodian Custodian Custodian Yearling Enthusiast Caucus Yearling Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 61979,497156,1399804,Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 61980,200664,179116,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 61981,389300,50299,Yearling Nice Answer Caucus Notable Question,NULL,NULL,0,NULL,NULL 61982,238031,1094317,NULL,NULL,NULL,0,NULL,NULL 61983,169153,978252,NULL,NULL,NULL,0,NULL,NULL 61984,48588,20288,NULL,NULL,NULL,0,NULL,NULL 61985,113787,384672,Yearling Famous Question Nice Question Nice Question Popular Question Popular Question Great Answer Famous Question Yearling Necromancer Notable Question Nice Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 61986,476202,343886,Good Answer Yearling Revival Yearling Revival Yearling Curious Popular Question,NULL,NULL,0,NULL,NULL 61987,323179,664472,NULL,NULL,NULL,0,NULL,NULL 61988,343193,530734,Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Custodian Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Nice Answer Guru,NULL,NULL,0,NULL,NULL 61989,69809,58082,Popular Question Notable Question Great Question Nice Question Yearling Good Answer Notable Question Nice Question Popular Question Popular Question Notable Question Notable Question Great Answer Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Nice Question Documentation Pioneer Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Peer Pressure Nice Answer Enlightened Famous Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Guru Populist Notable Question Popular Question Popular Question Notable Question Nice Question Documentation User Notable Question Popular Question Popular Question Notable Question Great Answer Famous Question Famous Question Census Yearling Famous Question Good Question Nice Question Popular Question Famous Question Announcer Guru Benefactor Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 61990,178724,381186,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 61991,341001,1174766,Necromancer Nice Answer Yearling Good Answer Yearling Yearling Popular Question Great Answer Yearling Caucus Excavator Revival Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 61992,2282117,1428973,NULL,NULL,NULL,0,NULL,NULL 61993,140532,191670,Popular Question Inquisitive Popular Question Notable Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 61994,840550,372224,Revival,NULL,NULL,0,NULL,NULL 61995,1175369,403979,NULL,NULL,NULL,0,NULL,NULL 61996,501976,321251,NULL,NULL,NULL,0,NULL,NULL 61997,883896,383198,NULL,NULL,NULL,0,NULL,NULL 61998,104095,1517753,NULL,NULL,NULL,0,NULL,NULL 61999,221269,1111943,NULL,NULL,NULL,0,NULL,NULL 62000,326571,433829,Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened dataframe Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Self-Learner Yearling Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Enlightened Good Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Caucus Nice Answer Enlightened string Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62001,105368,372341,NULL,NULL,NULL,0,NULL,NULL 62002,142113,1538032,NULL,NULL,NULL,0,NULL,NULL 62003,24660,1192998,Yearling Necromancer,NULL,NULL,0,NULL,NULL 62004,481070,1102495,Popular Question,NULL,NULL,0,NULL,NULL 62005,275612,250028,NULL,NULL,NULL,0,NULL,NULL 62006,14626,936204,Nice Answer Student Nice Answer Yearling Necromancer Scholar,NULL,NULL,0,NULL,NULL 62007,294912,1088139,Commentator,NULL,NULL,0,NULL,NULL 62008,260778,558079,Popular Question Famous Question Yearling Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 62009,9582310,1165776,Autobiographer,NULL,NULL,0,NULL,NULL 62010,1512586,1068323,Teacher Popular Question,NULL,NULL,0,NULL,NULL 62011,273812,944145,NULL,NULL,NULL,0,NULL,NULL 62012,71565,907125,Commentator Student Critic Curious Tumbleweed Yearling,NULL,pYou could write your own text object for this pretty easily ppre codeonoremap lt silent gt lt gt normal vt lt CR gt inside onoremap lt silent gt lt gt normal vf lt CR gt around code prepFor it to work with visual mode ppre codexnoremap lt silent gt lt gt normal vt lt CR gt inside xnoremap lt silent gt lt gt normal vf lt CR gt around code prepSimilarly you could also do for code code ppEdit Added info comments Just follow up to this wanted the same thing for matching regexes For the around flavor really wanted to take it one step further to match the regex flags as well so came up with this version xnoremap silent Unormal vf hCR gim eCR Seems to work so far pYou could write your own text object for this pretty easily ppre codeonoremap lt silent gt lt gt normal vt lt CR gt inside onoremap lt silent gt lt gt normal vf lt CR gt around code prepFor it to work with visual mode ppre codexnoremap lt silent gt lt gt normal vt lt CR gt inside xnoremap lt silent gt lt gt normal vf lt CR gt around code prepSimilarly you could also do for code code ppEdit Added info comments One more update to add flag and also clearing the search hi lighting after you re done xnoremap silent Unormal vf hCR gimy eCR UnohCRgv,0,NULL,NULL 62013,111395,425579,Informed,NULL,NULL,0,NULL,NULL 62014,551497,212846,Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Yearling Guru Good Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 62015,203952,1189688,NULL,NULL,NULL,0,NULL,NULL 62016,545396,1272391,NULL,NULL,NULL,0,NULL,NULL 62017,436477,502045,Yearling Popular Question Good Answer Custodian Nice Question Yearling Curious Yearling Informed Notable Question Caucus Constituent Yearling Custodian Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 62018,274083,399497,Popular Question,NULL,NULL,0,NULL,NULL 62019,709,101940,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 62020,21015,133048,NULL,NULL,NULL,0,NULL,NULL 62021,43299,635603,Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62022,1513908,822066,NULL,NULL,NULL,0,NULL,NULL 62023,1787628,822066,NULL,NULL,NULL,0,NULL,NULL 62024,622397,959501,NULL,NULL,NULL,0,NULL,NULL 62025,17359,361394,NULL,NULL,NULL,0,NULL,NULL 62026,606,1072101,NULL,NULL,NULL,0,NULL,NULL 62027,66599,1369055,Yearling Caucus Caucus Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 62028,59816,75173,Notable Question Yearling Notable Question Nice Question Nice Question Nice Question Famous Question Yearling Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 62029,412638,21414,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 62030,163243,1336708,NULL,NULL,NULL,0,NULL,NULL 62031,12188,620934,NULL,NULL,NULL,0,NULL,NULL 62032,304514,305817,NULL,NULL,NULL,0,NULL,NULL 62033,732099,798288,NULL,NULL,NULL,0,NULL,NULL 62034,71277,173429,Nice Question Yearling Census Critic,NULL,NULL,0,NULL,NULL 62035,1179921,1077142,NULL,NULL,NULL,0,NULL,NULL 62036,516268,1401060,NULL,NULL,NULL,0,NULL,NULL 62037,41037,383051,Yearling Nice Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62038,50208,600847,NULL,NULL,NULL,0,NULL,NULL 62039,195236,1484002,NULL,NULL,NULL,0,NULL,NULL 62040,132315,47348,Nice Answer Yearling Necromancer Nice Answer Good Answer Yearling Census Necromancer Nice Answer Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62041,464069,1103110,NULL,NULL,NULL,0,NULL,NULL 62042,11279,437,Nice Question Great Answer Good Answer Announcer Stellar Question Notable Question Good Answer Great Answer Nice Answer Yearling Nice Answer Nice Question Famous Question Famous Question Nice Answer Great Answer Necromancer Great Question Custodian Nice Answer Guru Pundit Nice Answer Favorite Question Nice Answer Popular Question Nice Question Yearling Nice Answer Great Answer Great Answer Good Question Necromancer Altruist Good Answer Famous Question Promoter Yearling Nice Question Benefactor Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 62043,4984,971445,Announcer,NULL,NULL,0,NULL,NULL 62044,1157910,1396359,NULL,NULL,NULL,0,NULL,NULL 62045,281154,508247,Nice Answer Revival Popular Question Yearling Caucus Notable Question Popular Question Nice Question Yearling Revival Caucus Constituent Popular Question Good Question Excavator Famous Question,NULL,NULL,0,NULL,NULL 62046,63911,107114,NULL,NULL,NULL,0,NULL,NULL 62047,353601,1476240,Nice Answer Organizer Good Answer Custodian Fanatic Necromancer Nice Answer Nice Answer Yearling python Informed Good Answer Good Answer Caucus Popular Question Necromancer Excavator Necromancer Great Answer Custodian Nice Answer Custodian Necromancer Notable Question Yearling Nice Answer Caucus Necromancer Nice Question Good Answer Documentation User Popular Question Necromancer Necromancer Custodian Guru Necromancer Census Populist Nice Answer Nice Answer Caucus Constituent Nice Answer Popular Question Yearling Great Answer,NULL,pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimizeimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code you have to use the sigma optional parameter in curve fit and pass it an array which has the errors for each of your data points pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimizeimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code also have updated this answer to perhaps make it more clear welcome any feedback you may have that can help improve the answer pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimizeimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code the p0 argument in fit bootstrap is array like So your function should be defined as def fit function numpy exp Let me know if that works for you pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimi,,, "eimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code what think is suspect is not the fact that the parameters can be obtained but that the parameter errors that are obtained are at the 10 value As the data is noisier was expecting larger errors on the fitted values of the parameter pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimizeimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code would say that comparing this to lock in detection is not fair comparison To do something like lock in detection you need to know the frequency of the source beforehand In this example the frequency of the sine wave is one of the parameters that we are estimating pUpdated on 2016 ph2Getting the correct errors in the fit parameters can be subtle in most cases h2pLet think about fitting function codey code for which you have set of data points code yerr code where codei code is an index that runs over each of your data points ppIn most physical measurements the error codeyerr code is systematic uncertainty of the measuring device or procedure and so it can be thought of as constant that does not depend on codei code ph3Which fitting function to use and how to obtain the parameter errors h3pThe codeoptimize leastsq code method will return the fractional covariance matrix Multiplying all elements of this matrix by the residual variance the reduced chi squared and taking the square root of the diagonal elements will give you an estimate of the standard deviation of the fit parameters have included the code to do that in one of the functions below ppOn the other hand if you use codeoptimize curvefit code the first part of the above procedure multiplying by the reduced chi squared is done for you behind the scenes You then need to take the square root of the diagonal elements of the covariance matrix to get an estimate of the standard deviation of the fit parameters ppFurthermore codeoptimize curvefit code provides optional parameters to deal with more general cases where the codeyerr code value is different for each data point From the href http docs scipy org doc scipy reference generated scipy optimize curve fit html rel nofollow noreferrer documentation ppre codesigma None or length sequence optional If not None the uncertainties in the ydata array These are used as weights in the least squares problem minimising np sum xdata popt ydata sigma If None the uncertainties are assumed to be absolute sigma bool optional If False sigma denotes relative weights of the data points The returned covariance matrix pcov is based on estimated errors in the data and is not affected by the overall magnitude of the values in sigma Only the relative magnitudes of the sigma values matter code preh3How can be sure that my errors are correct h3pDetermining proper estimate of the standard error in the fitted parameters is complicated statistical problem The results of the covariance matrix as implemented by codeoptimize curvefit code and codeoptimize leastsq code actually rely on assumptions regarding the probability distribution of the errors and the interactions between parameters interactions which may exist depending on your specific fit function codef code ppIn my opinion the best way to deal with complicated codef code is to use the bootstrap method which is outlined in href http phe rockefeller edu LogletLab whitepaper node17 html rel nofollow noreferrer this link ph3Let see some examples h3pFirst some boilerplate code Let define squiggly line function and generate some data with random errors We will generate dataset with small random error ppre codeimport numpy as npfrom scipy import optimizeimport randomdef p0 p1 p2 return p0 np sin p1 p2def ff return These are the true parametersp0 0p1 40p2 These are initial guesses for fits pstart p0 random random p1 random random p2 random random matplotlib inlineimport matplotlib pyplot as pltxvals np linspace 120 yvals xvals p0 p1 p2 Generate data with bit of randomness the noise less function that underlies the data is shown as blue line xdata np array xvals np random seed 42 err stdev 2yvals err np random normal err stdev len xdata ydata xdata p0 p1 p2 yvals errplt plot xvals yvals plt plot xdata ydata mfc None code prep href https stack imgur com msQU1 png rel nofollow noreferrer img src https stack imgur com msQU1 png alt fig01 ppNow let fit the function using the various methods available ph3 optimize leastsq h3pre codedef fit leastsq p0 datax datay function errfunc lambda function pfit pcov infodict errmsg success optimize leastsq errfunc p0 args datax datay full output epsfcn 0001 if len datay gt len p0 and pcov is not None sq errfunc pfit datax datay sum len datay len p0 pcov pcov sq else pcov np inf error for in range len pfit try error append np absolute pcov except error append 00 pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print Fit parameters and parameter errors from lestsq method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from lestsq method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 optimize curve fit h3pre codedef fit curvefit p0 datax datay function yerr err stdev kwargs Note As per the current documentation Scipy V1 sigma yerr must be None or length sequence or MxM array optional Therefore replace err stdev With err stdev for item in xdata Or similar to create an length sequence for this example pfit pcov optimize curve fit datax datay p0 p0 sigma yerr epsfcn 0001 kwargs error for in range len pfit try error append np absolute pcov except error append 00 pfit curvefit pfit perr curvefit np array error return pfit curvefit perr curvefit pfit perr fit curvefit pstart xdata ydata ff print Fit parameters and parameter errors from curve fit method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method pfit 04951642 39 98832634 95947613 perr 0584024 10597135 03376631 code prep br ph3 bootstrap h3pre codedef fit bootstrap p0 datax datay function yerr systematic errfunc lambda function Fit first time pfit perr optimize leastsq errfunc p0 args datax datay full output Get the stdev of the residuals residuals errfunc pfit datax datay sigma res np std residuals sigma err total np sqrt sigma res yerr systematic 100 random data sets are generated and fitted ps for in range 100 randomDelta np random normal sigma err total len datay randomdataY datay randomDelta randomfit randomcov optimize leastsq errfunc p0 args datax randomdataY full output ps append randomfit ps np array ps mean pfit np mean ps You can choose the confidence interval that you want for your parameter estimates Nsigma 1sigma gets approximately the same as methods above 1sigma corresponds to 68 confidence interval 2sigma corresponds to 95 44 confidence interval err pfit Nsigma np std ps pfit bootstrap mean pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print Fit parameters and parameter errors from bootstrap method print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from bootstrap method pfit 05058465 39 96530055 96074046 perr 06462981 1118803 03544364 code prep br ph2 Observations h2 pWe already start to see something interesting the parameters and error estimates for all three methods nearly agree That is good ppNow suppose we want to tell the fitting functions that there is some other uncertainty in our data perhaps systematic uncertainty that would contribute an additional error of twenty times the value of codeerr stdev code That is ema lot em of error in fact if we simulate some data with that kind of error it would look like this pp href https stack imgur com RRljw png rel nofollow noreferrer img src https stack imgur com RRljw png alt enter image description here ppThere is certainly no hope that we could recover the fit parameters with this level of noise ppTo begin with let realize that codeleastsq code does not even allow us to input this new systematic error information Let see what codecurve fit code does when we tell it about the error ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev print nFit parameters and parameter errors from curve fit method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from curve fit method 20x error pfit 04951642 39 98832633 95947613 perr 0584024 10597135 03376631 code prepWhaat This must certainly be wrong ppThis used to be the end of the story but recently codecurve fit code added the codeabsolute sigma code optional parameter ppre codepfit perr fit curvefit pstart xdata ydata ff yerr 20 err stdev absolute sigma True print Fit parameters and parameter errors from curve fit method 20x error absolute sigma print pfit pfit print perr perr code prep br ppre code Fit parameters and parameter errors from curve fit method 20x error absolute sigma pfit 04951642 39 98832633 95947613 perr 25570187 27847504 72600466 code prepThat is somewhat better but still little fishy codecurve fit code thinks we can get fit out of that noisy signal with level of 10 error in the codep1 code parameter Let see what codebootstrap code has to say ppre codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic 20 print nFit parameters and parameter errors from bootstrap method 20x error print pfit pfit print perr perr code prep br ppre codeFit parameters and parameter errors from bootstrap method 20x error pfit 54029171e 02 84313695e 01 55729825e 00 perr 41602813 13 22283345 6629705 code prepAh that is perhaps better estimate of the error in our fit parameter codebootstrap code thinks it knows codep1 code with about 34 uncertainty ph2 Summary h2 codeoptimize leastsq code and codeoptimize curvefit code provide us way to estimate errors in fitted parameters but we cannot just use these methods without questioning them little bit The codebootstrap code is statistical method which uses brute force and in my opinion it has tendency of working better in situations that may be harder to interpret ppI highly recommend looking at particular problem and trying codecurvefit code and codebootstrap code If they are similar then codecurvefit code is much cheaper to compute so probably worth using If they differ significantly then my money would be on the codebootstrap code By default the sigma values should be understood only as weights to the individual data points The weights will be used by curvefit and will have an effect on the fitted values but not on the covariance matrix When you say absolute sigma True you are telling curvefit that your sigmas are not only just weights but also actual uncertainties in the same units as In that case curvefit goes ahead and returns the un normalized covariance matrix in pcov That way you can take the square root of the diagonal entries in pcov to directly obtain the parameter errors""",nice answer organizer good answer custodian fanatic necromancer nice answer nice answer yearle python inform good answer good answer caucus popular question necromancer excavator necromancer great answer custodian nice answer custodian necromancer notable question yearle nice answer caucus necromancer nice question good answer documentation user popular question necromancer necromancer custodian guru necromancer census populist nice answer nice answer caucus constituent nice answer popular question yearle great answer pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code sigma optional parameter curve fit pass array error datum point pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code update answer make clear feedback improve answer pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code argument fit bootstrap array function define def fit function numpy exp work pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code suspect fact parameter obtain parameter error obtain datum noisy expect large error fit value parameter pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder,,,,,,, "interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code compare lock detection fair comparison lock detection frequency source frequency sine wave parameter estimate pupdate correct error fit parameter subtle case fit function codey code set datum point code yerr code codei code index run datum point ppin physical measurement error codeyerr code systematic uncertainty measure device procedure think constant depend codei code fit function obtain parameter error codeoptimize leastsq code method return fractional covariance matrix multiply element matrix residual variance reduce chi square take square root diagonal element estimate standard deviation fit parameter include code function ppon hand codeoptimize code procedure multiply reduce chi square scene square root diagonal element covariance matrix estimate standard deviation fit parameter ppfurthermore codeoptimize code optional parameter deal general case codeyerr code datum point href http docs scipy org doc scipy reference generate scipy optimize curve fit html nofollow noreferrer documentation codesigma length sequence optional uncertainty ydata array weight square problem minimise np sum xdata popt ydata sigma uncertainty assume absolute sigma bool optional false sigma denote relative weight datum point return covariance matrix pcov base estimate error datum affect magnitude value sigma relative magnitude sigma value matter code error correct proper estimate standard error fit parameter complicate statistical problem result covariance matrix implement codeoptimize code codeoptimize leastsq code rely assumption probability distribution error interaction parameter interaction exist depend specific fit function codef code ppin opinion deal complicate codef code bootstrap method outline href http rockefeller logletlab whitepaper html nofollow noreferrer link example boilerplate code define squiggly line function generate datum random error generate dataset small random error codeimport numpy scipy import optimizeimport randomdef return np sin ff return true initial guess fit pstart random random random random random random matplotlib inlineimport matplotlib pyplot pltxval np linspace yval xval generate datum bit randomness noise function underlie datum show blue line xdata np array xval np random seed err stdev err np random normal err stdev len xdata ydata xdata yval errplt plot xval yval plt plot xdata ydata mfc code prep href https stack imgur png nofollow noreferrer img src https stack imgur png alt ppnow fit function method optimize leastsq codedef fit leastsq datax datay function errfunc lambda function pfit pcov errmsg success optimize leastsq errfunc arg datax datay output epsfcn len datay len pcov errfunc pfit datax datay sum len datay len pcov pcov pcov np inf error range len pfit error append np absolute pcov error append pfit leastsq pfit perr leastsq np array error return pfit leastsq perr leastsq pfit perr fit leastsq pstart xdata ydata ff print fit parameter parameter error lestsq method print pfit pfit print perr perr code prep code fit parameter parameter error lestsq method pfit perr code prep optimize curve fit codedef fit datax datay function yerr err stdev kwarg note current documentation scipy sigma yerr length sequence array optional replace err stdev err stdev item xdata similar create length sequence pfit pcov optimize curve fit datax datay sigma yerr epsfcn kwarg error range len pfit error append np absolute pcov error append pfit pfit perr np array error return pfit perr pfit perr fit pstart xdata ydata ff print fit parameter parameter error curve fit method print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method pfit perr code prep bootstrap codedef fit bootstrap datax datay function yerr systematic errfunc lambda function fit time pfit perr optimize leastsq errfunc arg datax datay output stdev residual residual errfunc pfit datax datay sigma np std residual sigma err total np sqrt sigma yerr systematic random datum set generate fit range randomdelta np random normal sigma err total len datay randomdatay datay randomdelta randomfit randomcov optimize leastsq errfunc arg datax randomdatay output append randomfit np array pfit np choose confidence interval parameter estimate nsigma approximately method correspond confidence interval correspond confidence interval err pfit nsigma np std pfit bootstrap pfit perr bootstrap err pfit return pfit bootstrap perr bootstrap pfit perr fit bootstrap pstart xdata ydata ff print fit parameter parameter error bootstrap method print pfit pfit print perr perr code prep code fit parameter parameter error bootstrap method pfit perr code prep observation pwe start interesting parameter error estimate method agree good ppnow suppose fit function uncertainty datum systematic uncertainty contribute additional error time codeerr stdev code ema lot -PRON- error fact simulate datum kind error href https stack imgur rrljw png nofollow noreferrer img src https stack imgur rrljw png alt enter image description ppthere hope recover fit parameter level noise ppto begin realize codeleastsq code input systematic error information codecurve fit code error codepfit perr fit pstart xdata ydata ff yerr err stdev print nfit parameter parameter error curve fit method error print pfit pfit print perr perr code prep codefit parameter parameter error curve fit method error pfit perr code prepwhaat wrong ppthis end story recently codecurve fit code add codeabsolute sigma code optional parameter codepfit perr fit pstart xdata ydata ff yerr err stdev absolute sigma true print fit parameter parameter error curve fit method error absolute sigma print pfit pfit print perr perr code prep code fit parameter parameter error curve fit method error absolute sigma pfit perr code prepthat fishy codecurve fit code think fit noisy signal level error code parameter codebootstrap code codepfit perr fit bootstrap pstart xdata ydata ff yerr systematic print nfit parameter parameter error bootstrap method error print pfit pfit print perr perr code prep codefit parameter parameter error bootstrap method error pfit perr code prepah estimate error fit parameter codebootstrap code think code uncertainty summary codeoptimize leastsq code codeoptimize code provide estimate error fit parameter method question bit codebootstrap code statistical method brute force opinion tendency work situation harder interpret ppi highly recommend problem codecurvefit code codebootstrap code similar codecurvefit code cheap compute worth differ significantly money codebootstrap code default sigma value understand weight individual datum point weight effect fit value covariance matrix absolute sigma true tell sigma weight actual uncertainty unit case ahead return normalize covariance matrix pcov square root diagonal entry pcov directly obtain parameter error""",0,NULL,NULL,,,,, 62048,296844,156023,Revival,NULL,NULL,0,NULL,NULL 62049,180509,533536,NULL,NULL,NULL,0,NULL,NULL 62050,1029031,1284513,NULL,NULL,NULL,0,NULL,NULL 62051,4395250,1284513,NULL,NULL,NULL,0,NULL,NULL 62052,208490,1040154,Notable Question Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62053,1268554,144548,NULL,NULL,NULL,0,NULL,NULL 62054,191329,248194,NULL,NULL,NULL,0,NULL,NULL 62055,330581,1398784,NULL,NULL,NULL,0,NULL,NULL 62056,440982,736891,Notable Question,NULL,NULL,0,NULL,NULL 62057,279512,1552748,Good Answer Nice Answer Custodian Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer numpy Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru python Nice Answer Enlightened Nice Answer Caucus Nice Answer Revival Constituent Good Answer Cleanup Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Favorite Question Popular Question Good Answer Good Answer Pundit Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer seaborn Good Answer Necromancer Good Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Guru Good Answer Documentation User Good Answer Nice Answer Enlightened Nice Answer Good Answer Great Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Proofreader Great Answer Announcer dataframe Guru Popular Question Guru pandas Good Answer Good Answer Nice Answer Guru Guru Nice Answer Yearling Guru Popular Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Announcer Guru Good Answer Nice Answer Nice Answer Enlightened Announcer Guru Good Answer Good Answer Good Answer Good Answer,NULL,h2Update October 2015 h2pSeaborn handles this use case splendidly ppre codeimport numpy import pandasfrom matplotlib import pyplotimport seabornseaborn set style ticks numpy random seed 37 genders Female Male Non binary No Response df pandas DataFrame Height cm numpy random uniform low 130 high 200 size Weight kg numpy random uniform low 30 high 100 size Gender numpy random choice genders size fg seaborn FacetGrid data df hue Gender hue order genders aspect 61 fg map pyplot scatter Weight kg Height cm add legend code prepWhich immediately outputs pp href https stack imgur com GnmJP png img src https stack imgur com GnmJP png alt enter image description here ph2Old Answer h2pIn this case would use matplotlib directly ppre codeimport numpy as npimport matplotlib pyplot as pltimport pandas as pddef dfScatter df xcol Height ycol Weight catcol Gender fig ax plt subplots categories np unique df catcol colors np linspace len categories colordict dict zip categories colors df Color df catcol apply lambda colordict ax scatter df xcol df ycol df Color return figif df pd DataFrame Height np random normal size 10 Weight np random normal size 10 Gender Male Male Unknown Male Male Female Did not respond Unknown Female Female fig dfScatter df fig savefig fig1 png code prepAnd that gives me pp img src https stack imgur com hFLmZ png alt scalle plot with categorized colors As far as know that color column can be any matplotlib compatible color RBGA tuples HTML names hex values etc ppI having trouble getting anything but numerical values to work with the colormaps Your sequence does not have length equal to or,0,NULL,NULL 62058,686215,207371,Nice Answer Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 62059,16947,623433,NULL,NULL,NULL,0,NULL,NULL 62060,593625,907575,Necromancer Notable Question Revival Nice Answer Notable Question Good Question Popular Question Necromancer Necromancer Famous Question Yearling Nice Answer Revival Nice Question Electorate Necromancer Necromancer Nice Answer Revival Notable Question Notable Question Popular Question Good Answer Nice Answer Announcer Popular Question Caucus Announcer Yearling Notable Question Necromancer Necromancer Notable Question Good Answer Announcer Necromancer Nice Answer Nice Question Good Answer Necromancer Nice Answer Necromancer Popular Question Yearling Nice Question Good Answer Revival,NULL,NULL,0,NULL,NULL 62061,115264,234294,NULL,NULL,NULL,0,NULL,NULL 62062,156199,750051,Editor Supporter,NULL,NULL,0,NULL,NULL 62063,86268,375895,Editor Curious Teacher Self-Learner Popular Question Popular Question Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 62064,363389,202159,NULL,NULL,NULL,0,NULL,NULL 62065,120891,781248,NULL,NULL,NULL,0,NULL,NULL 62066,6449039,442732,Necromancer Scholar Supporter,NULL,NULL,0,NULL,NULL 62067,109681,51560,Yearling Nice Question Revival Caucus Yearling Enthusiast vert.x Yearling Caucus java Nice Question,NULL,NULL,0,NULL,NULL 62068,192477,1452865,Informed,NULL,NULL,0,NULL,NULL 62069,18056,339955,NULL,NULL,NULL,0,NULL,NULL 62070,73848,1211308,NULL,NULL,NULL,0,NULL,NULL 62071,1517384,852758,NULL,NULL,NULL,0,NULL,NULL 62072,328367,634629,Revival Yearling Yearling Popular Question Yearling Refiner,NULL,NULL,0,NULL,NULL 62073,464273,89594,Nice Answer Yearling Custodian Nice Answer Good Answer Necromancer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62074,142585,740014,Yearling Good Question Notable Question Yearling Famous Question Necromancer Good Question Yearling,NULL,NULL,0,NULL,NULL 62075,614887,751459,NULL,NULL,NULL,0,NULL,NULL 62076,31752,1251447,NULL,NULL,NULL,0,NULL,NULL 62077,634114,340350,NULL,NULL,NULL,0,NULL,NULL 62078,337020,965620,Tumbleweed Editor Promoter,NULL,NULL,0,NULL,NULL 62079,346226,1225231,NULL,NULL,NULL,0,NULL,NULL 62080,247566,1258131,NULL,NULL,NULL,0,NULL,NULL 62081,116227,1011878,NULL,NULL,NULL,0,NULL,NULL 62082,86797,1074361,Yearling Popular Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Great Answer Nice Answer Famous Question Nice Answer Quorum Popular Question Caucus Constituent Necromancer Explainer git Yearling Good Answer Caucus Nice Answer Enlightened Revival Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 62083,237376,1074361,Yearling Popular Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Great Answer Nice Answer Famous Question Nice Answer Quorum Popular Question Caucus Constituent Necromancer Explainer git Yearling Good Answer Caucus Nice Answer Enlightened Revival Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 62084,97145,146416,NULL,NULL,NULL,0,NULL,NULL 62085,226436,536801,Populist Caucus Constituent Nice Answer Enlightened Yearling Nice Answer Enlightened d3.js Custodian Nice Answer Enlightened Proofreader Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 62086,774831,830634,NULL,NULL,NULL,0,NULL,NULL 62087,273139,798224,Nice Answer Necromancer Nice Answer Announcer Necromancer Yearling Nice Answer Good Answer Nice Answer Nice Answer Necromancer Yearling Famous Question Guru Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 62088,893486,1007407,Good Answer Nice Answer Enlightened Populist Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Yearling Custodian Nice Answer Nice Answer Enlightened Good Answer Caucus Guru c++ Yearling,NULL,NULL,0,NULL,NULL 62089,2546621,1386171,NULL,NULL,NULL,0,NULL,NULL 62090,587085,702320,NULL,NULL,NULL,0,NULL,NULL 62091,203402,523170,NULL,NULL,NULL,0,NULL,NULL 62092,36109,143542,Notable Question Popular Question Yearling Nice Answer Notable Question Popular Question Yearling Favorite Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 62093,53461,84889,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened java Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Enlightened Guru Guru Guru task Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Populist Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer build.gradle Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened maven Nice Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer scala Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Answer Good Answer Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Great Answer Guru plugins Guru Great Answer Nice Answer Enlightened Good Answer Good Answer groovy Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Good Answer Great Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62094,1936,262092,Commentator Revival Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 62095,169515,794725,Editor Commentator,NULL,NULL,0,NULL,NULL 62096,791651,835293,Student,NULL,NULL,0,NULL,NULL 62097,251181,854980,Scholar Necromancer Caucus Yearling Census Citizen Patrol,NULL,NULL,0,NULL,NULL 62098,733744,593622,Popular Question Caucus Constituent Popular Question Census Popular Question Caucus Constituent Popular Question Yearling Census Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 62099,406875,465208,NULL,NULL,NULL,0,NULL,NULL 62100,1450571,911946,Notable Question Curious,NULL,NULL,0,NULL,NULL 62101,975881,911946,Notable Question Curious,NULL,NULL,0,NULL,NULL 62102,379404,1157281,Supporter Necromancer,NULL,NULL,0,NULL,NULL 62103,1407213,346484,Critic,NULL,NULL,0,NULL,NULL 62104,100843,80404,Good Answer Announcer Notable Question Popular Question Census Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 62105,773639,1257153,Famous Question,NULL,NULL,0,NULL,NULL 62106,321239,1036450,Popular Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 62107,617559,1031963,Student,NULL,NULL,0,NULL,NULL 62108,80270,1371176,Popular Question,NULL,NULL,0,NULL,NULL 62109,96043,377705,NULL,NULL,NULL,0,NULL,NULL 62110,183572,1077527,NULL,NULL,NULL,0,NULL,NULL 62111,7702,910791,NULL,NULL,NULL,0,NULL,NULL 62112,87235,639565,NULL,NULL,NULL,0,NULL,NULL 62113,235144,1284072,NULL,NULL,NULL,0,NULL,NULL 62114,20110,1392775,NULL,NULL,NULL,0,NULL,NULL 62115,3139705,224417,NULL,NULL,NULL,0,NULL,NULL 62116,267976,1341223,NULL,NULL,NULL,0,NULL,NULL 62117,492017,564498,Enthusiast Commentator,NULL,NULL,0,NULL,NULL 62118,370926,591118,Popular Question Notable Question Popular Question Curious,NULL,NULL,0,NULL,NULL 62119,935926,591118,Popular Question Notable Question Popular Question Curious,NULL,NULL,0,NULL,NULL 62120,888143,813291,NULL,NULL,NULL,0,NULL,NULL 62121,429076,860279,Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 62122,123285,103715,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62123,177455,696233,NULL,NULL,NULL,0,NULL,NULL 62124,93846,907383,NULL,NULL,NULL,0,NULL,NULL 62125,415380,1118583,Informed Enthusiast Autobiographer,NULL,NULL,0,NULL,NULL 62126,230326,418891,Necromancer Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 62127,26621,894867,NULL,NULL,NULL,0,NULL,NULL 62128,1023,715401,NULL,NULL,NULL,0,NULL,NULL 62129,691971,987161,Student,NULL,NULL,0,NULL,NULL 62130,4542734,698459,NULL,NULL,NULL,0,NULL,NULL 62131,97015,1017731,NULL,NULL,NULL,0,NULL,NULL 62132,58186,1357427,NULL,NULL,NULL,0,NULL,NULL 62133,2275608,1067543,Self-Learner Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 62134,521749,1067543,Self-Learner Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 62135,562574,1196393,NULL,NULL,NULL,0,NULL,NULL 62136,843271,817359,NULL,NULL,NULL,0,NULL,NULL 62137,1041777,764033,Informed Autobiographer,NULL,NULL,0,NULL,NULL 62138,22392,706960,NULL,NULL,NULL,0,NULL,NULL 62139,76911,351295,Popular Question Good Question Favorite Question Yearling Self-Learner Notable Question Nice Answer Enlightened Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62140,525344,551740,NULL,NULL,NULL,0,NULL,NULL 62141,143713,93308,Nice Question Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62142,76373,27020,Guru Peer Pressure Nice Answer Yearling Custodian Custodian Guru Famous Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 62143,197575,1374164,NULL,NULL,NULL,0,NULL,NULL 62144,3003,315663,Popular Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 62145,581461,375373,Popular Question Great Question Famous Question Famous Question Nice Question Famous Question Popular Question Great Question Yearling Nice Answer Notable Question Popular Question Popular Question Notable Question Notable Question Caucus Notable Question Good Question Famous Question Good Question Notable Question Notable Question Yearling Famous Question Popular Question Favorite Question Nice Question Census Nice Question Great Answer Good Answer Famous Question Famous Question Yearling Nice Answer Great Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62146,640338,1001538,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 62147,82571,1025594,NULL,NULL,NULL,0,NULL,NULL 62148,434523,994688,Critic Necromancer Yearling Caucus Caucus Commentator Popular Question Self-Learner Caucus,NULL,NULL,0,NULL,NULL 62149,376157,538332,Benefactor Self-Learner Yearling,NULL,NULL,0,NULL,NULL 62150,177757,698836,NULL,NULL,NULL,0,NULL,NULL 62151,188283,355715,Good Answer Necromancer Popular Question Revival Yearling Civic Duty Popular Question Nice Answer Custodian Yearling Organizer Explainer Yearling Caucus Revival Informed Suffrage Vox Populi Tag Editor Yearling Custodian Quorum Custodian Custodian Tenacious Notable Question Popular Question,NULL,strongUsing Python strong ppThis solution is not pure bash but it non invasive and handles unicode ppre codejson escape printf python import json sys print json dumps sys stdin read code prepNote that JSON is part of the standard python libraries and has been for long time so this is pretty minimal python dependency pp strongOr using PHP strong ppre codejson escape printf php echo json encode file get contents php stdin code prep strongUse like so strong ppre code json escape ヤホー u30e4 u30db u30fc code pre The first parameter should be just string that will be simple value in the output JSON not complex object itself just like in the original question If you want to insert complex value bash is almost certainly more trouble than it worth,0,NULL,NULL 62152,82341,933508,NULL,NULL,NULL,0,NULL,NULL 62153,746836,1097332,NULL,NULL,NULL,0,NULL,NULL 62154,68857,858474,NULL,NULL,NULL,0,NULL,NULL 62155,1043245,422231,Popular Question Good Answer Notable Question Yearling Nice Question Notable Question Nice Question Yearling Guru Nice Question Necromancer,NULL,NULL,0,NULL,NULL 62156,909811,1399051,NULL,NULL,NULL,0,NULL,NULL 62157,153951,1047903,Good Question Famous Question Organizer Yearling Caucus Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,1,NULL,Long single line ES6 string literal javascript ecmascript pThe google is full of blog posts and answers to question how one should benefit from ES6 string literals And almost every blog post explaining this feature in depth has some details on how to implement multiline strings ppre codelet foobar code prepBut can not find any details on how to implement long single line strings like the following ppre codelet This is very long single line string which might be used to display assertion messages or some text It has much more than 80 symbols so it would take more then one screen in your text editor to view it Hello world code prepAny clues or workarounds or should one stick to the es3 strings instead pYou can go on new line with string using code code The newline character code code will not appear in the string itself ppre codelet This is very long single line string which might be used to display assertion messages or some text It has much more than 80 symbols so it would take more then one screen in your text editor to view it Hello world code prepPay attention not to indent your string though or the indentation will be in the string ppre codelet Hello World Hello World true code pre 62158,4578,674051,Notable Question Nice Answer Popular Question Yearling Curious Popular Question Nice Question Popular Question Famous Question Notable Question Yearling Popular Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 62159,139027,38945,NULL,NULL,NULL,0,NULL,NULL 62160,149332,748733,NULL,NULL,NULL,0,NULL,NULL 62161,45116,8252,Good Answer Yearling Enthusiast Caucus Yearling Notable Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 62162,418040,1524255,NULL,NULL,NULL,0,NULL,NULL 62163,859801,1367194,NULL,NULL,NULL,0,NULL,NULL 62164,448505,287949,NULL,NULL,NULL,0,NULL,NULL 62165,205797,94348,Nice Question Nice Answer Yearling Good Question Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 62166,100415,164803,Citizen Patrol Notable Question Caucus Yearling Custodian Caucus Constituent Documentation User Custodian Nice Answer Civic Duty Informed Caucus,NULL,NULL,0,NULL,NULL 62167,454,302521,Nice Answer Explainer Organizer Autobiographer Yearling Revival Necromancer Caucus Constituent Necromancer Announcer Revival Caucus Custodian Revival Yearling Revival Announcer Tumbleweed Nice Answer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 62168,23885,827168,Yearling Favorite Question Announcer Nice Answer Announcer Yearling Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 62169,33626,1306233,Nice Answer Scholar,NULL,NULL,0,NULL,NULL 62170,67412,1014081,NULL,NULL,NULL,0,NULL,NULL 62171,59635,346977,Nice Question Nice Answer Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Famous Question Notable Question Nice Question Popular Question Notable Question Popular Question Notable Question Nice Question Good Question Nice Question Nice Question Famous Question Nice Question Notable Question Notable Question Notable Question Yearling Notable Question Good Question Good Question Popular Question Nice Question Famous Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 62172,302216,732702,NULL,NULL,NULL,0,NULL,NULL 62173,977266,952474,Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Caucus Autobiographer Notable Question Popular Question Popular Question Custodian Electorate,NULL,NULL,0,NULL,NULL 62174,54593,1126289,NULL,NULL,NULL,0,NULL,NULL 62175,146425,766432,NULL,NULL,NULL,0,NULL,NULL 62176,247430,1118900,NULL,NULL,NULL,0,NULL,NULL 62177,447684,1311093,Popular Question Yearling Notable Question Notable Question Popular Question Nice Question Self-Learner Famous Question Popular Question,NULL,NULL,0,NULL,NULL 62178,61315,444152,Editor,NULL,NULL,0,NULL,NULL 62179,1604274,527168,NULL,NULL,NULL,0,NULL,NULL 62180,119197,1008799,Revival Revival Caucus Necromancer Revival,NULL,NULL,0,NULL,NULL 62181,123657,197540,NULL,NULL,NULL,0,NULL,NULL 62182,1100807,1197380,Notable Question,NULL,NULL,0,NULL,NULL 62183,93890,1478580,Teacher Necromancer Yearling Nice Answer Civic Duty Caucus Yearling Necromancer Announcer Nice Answer Yearling,NULL,NULL,1,NULL,Get top most UIViewController swift uiviewcontroller pI can seem to get the top most codeUIViewController code without access to codeUINavigationController code Here is what have so far ppre codeUIApplication sharedApplication keyWindow rootViewController presentViewController vc animated true completion nil code prepHowever it does not seem to do anything The codekeyWindow code and coderootViewController code seem to be non nil values too so the optional chaining shouldn be an issue ppThanks in advance pp strongNOTE strong emIt is bad idea to do something like this It breaks the MVC pattern em pI loved href https stackoverflow com 30858591 1478580 answer and so here is the swift version of it It basically the same thing but his was missing curly brace and some of the syntax variable method names have changed So here it is ppre codeextension UIApplication class func topViewController base UIViewController UIApplication shared keyWindow rootViewController gt UIViewController if let nav base as UINavigationController return topViewController base nav visibleViewController if let tab base as UITabBarController if let selected tab selectedViewController return topViewController base selected if let presented base presentedViewController return topViewController base presented return base code prepUsage is still the exact same though ppre codeif let topController UIApplication topViewController print The view controller you re looking at is topController code pre 62184,307807,1321625,Necromancer,NULL,NULL,0,NULL,NULL 62185,548834,1275596,NULL,NULL,NULL,0,NULL,NULL 62186,647336,664442,Enthusiast,NULL,NULL,0,NULL,NULL 62187,823816,1233628,NULL,NULL,NULL,0,NULL,NULL 62188,370886,1382082,NULL,NULL,NULL,0,NULL,NULL 62189,469910,863378,Nice Answer Nice Question Yearling Great Answer Popular Question Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 62190,579221,139683,Yearling Good Answer Nice Question Yearling Popular Question Necromancer Self-Learner Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 62191,391757,413785,Tag Editor Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Census Famous Question Nice Question Popular Question Custodian Caucus Yearling Favorite Question Documentation User Promoter Inquisitive Custodian Taxonomist Popular Question Popular Question Good Question Great Question Announcer Popular Question Popular Question Announcer Yearling Revival Announcer Notable Question,NULL,pHere is pattern href http web archive org web 20161108071447 http blog osteele com posts 2007 12 cheap monads rel noreferrer picked up from Oliver Steele ppre codevar level3 test level1 level2 level3 alert level3 code prepIn fact that whole article is discussion of how you can do this in javascript He settles on using the above syntax which isn that hard to read once you get used to it as an idiom This is both hard to read and hard to type,0,NULL,NULL 62192,252767,926251,Announcer Yearling,NULL,NULL,0,NULL,NULL 62193,123108,955091,Yearling Informed Custodian Famous Question Excavator Caucus Favorite Question Yearling Quorum Revival Caucus Cleanup Popular Question Yearling Citizen Patrol Self-Learner Custodian Yearling Civic Duty Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 62194,494500,1363058,Popular Question,NULL,NULL,0,NULL,NULL 62195,210656,144981,Revival Nice Answer,NULL,NULL,0,NULL,NULL 62196,368849,1322612,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62197,197190,563353,Necromancer Student Yearling Nice Question Scholar Popular Question Good Question Yearling Good Answer Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 62198,18252,66180,Yearling,NULL,NULL,0,NULL,NULL 62199,344747,746914,Census,NULL,NULL,0,NULL,NULL 62200,1617716,1317295,Notable Question,NULL,NULL,0,NULL,NULL 62201,197976,1441311,Notable Question,NULL,NULL,0,NULL,NULL 62202,910784,1556,Great Question Famous Question Good Question Yearling Great Question Notable Question Yearling Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 62203,521842,516853,Yearling,NULL,NULL,0,NULL,NULL 62204,232500,1192725,Popular Question,NULL,NULL,0,NULL,NULL 62205,885011,1270003,Popular Question Yearling Notable Question Popular Question Nice Answer Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Famous Question Notable Question Notable Question Notable Question Good Answer c++ Notable Question Nice Question Popular Question Popular Question Popular Question Custodian Popular Question Popular Question Popular Question Notable Question Notable Question Custodian Notable Question Yearling Caucus Popular Question Notable Question Popular Question Notable Question Socratic Popular Question Notable Question Notable Question Popular Question Guru Popular Question Famous Question,NULL,NULL,0,NULL,NULL 62206,897503,757193,NULL,NULL,NULL,0,NULL,NULL 62207,40978,1175787,Custodian Tumbleweed Student Popular Question Notable Question Supporter Scholar Curious Editor,NULL,NULL,0,NULL,NULL 62208,380876,1472379,NULL,NULL,NULL,0,NULL,NULL 62209,317539,10311,Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Enthusiast Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Nice Answer Census Guru Investor Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer c# Caucus Yearling Announcer Nice Answer Guru Census Strunk & White Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62210,291512,1160830,NULL,NULL,NULL,0,NULL,NULL 62211,529148,1150812,NULL,NULL,NULL,0,NULL,NULL 62212,1220417,838609,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62213,2213,27009,Guru Notable Question Notable Question Necromancer Notable Question Necromancer Nice Question Revival Revival Nice Answer Revival Guru Famous Question Good Answer Nice Answer Announcer Guru Documentation Pioneer Popular Question Good Question Great Answer Nice Answer Necromancer Revival Yearling Guru Nice Answer Necromancer Nice Answer Necromancer Popular Question Revival Necromancer Census Favorite Question Necromancer Revival Nice Answer Popular Question Nice Answer Nice Answer Good Answer Nice Answer Generalist Notable Question Nice Answer Popular Question Popular Question Good Answer Good Answer Popular Question Good Answer Good Answer Good Question Steward Good Answer Documentation User Yearling Necromancer Revival Nice Answer Notable Question Revival Nice Answer Enlightened macos Great Question http-headers Nice Answer jpeg Nice Answer Nice Answer image-processing Announcer Necromancer Nice Answer Necromancer Good Answer Popular Question Strunk & White Revival Guru Famous Question Notable Question Nice Answer Good Question Nice Answer Revival Nice Answer Notable Question Notable Question Nice Answer Enlightened Revival Necromancer Yearling Revival rust Enlightened,NULL,pProbability of just two hashes accidentally colliding is strong1 2sup128 sup strong href http www wolframalpha com input 5E128 rel noreferrer which is in 340 undecillion 282 decillion 366 nonillion 920 octillion 938 septillion 463 sextillion 463 quintillion 374 quadrillion 607 trillion 431 billion 768 million 211 thousand 456 ppHowever if you keep all the hashes then the probability is bit higher thanks to href http en wikipedia org wiki Birthday paradox rel noreferrer birthday paradox To have 50 chance of any hash colliding with any other hash you need strong2sup64 sup strong hashes This means that to get collision on average you ll need to hash href http www google com search 5E64 2F100 2F 28seconds per year 29 rel noreferrer embillion em files emper second em for 100 years No that ridiculously impossible talking about generating 64 hashes out of 128 possible ones That one quadrillionth of percent of all possible hashes generated,0,NULL,NULL 62214,36492,867741,Curious Popular Question,NULL,NULL,0,NULL,NULL 62215,229767,468539,Popular Question Famous Question Popular Question Yearling Popular Question Great Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62216,162535,407436,NULL,NULL,NULL,0,NULL,NULL 62217,748854,797909,NULL,NULL,NULL,0,NULL,NULL 62218,5268551,834389,NULL,NULL,NULL,0,NULL,NULL 62219,155634,769886,NULL,NULL,NULL,0,NULL,NULL 62220,28908,1234818,NULL,NULL,NULL,0,NULL,NULL 62221,102905,1258531,NULL,NULL,NULL,0,NULL,NULL 62222,1633,348277,NULL,NULL,NULL,0,NULL,NULL 62223,199867,80426,Popular Question Yearling Caucus Good Answer Nice Answer Yearling Great Question Favorite Question Guru Yearling,NULL,NULL,0,NULL,NULL 62224,492129,183808,Teacher,NULL,NULL,0,NULL,NULL 62225,130085,3231,NULL,NULL,NULL,0,NULL,NULL 62226,1521023,1121517,NULL,NULL,NULL,0,NULL,NULL 62227,54594,96664,Critic Notable Question,NULL,NULL,0,NULL,NULL 62228,609634,901789,NULL,NULL,NULL,0,NULL,NULL 62229,280722,439466,Famous Question,NULL,NULL,0,NULL,NULL 62230,3656312,170881,Necromancer Revival Necromancer Yearling Necromancer Excavator Popular Question Necromancer Nice Answer Nice Answer Announcer Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 62231,1520986,170881,Necromancer Revival Necromancer Yearling Necromancer Excavator Popular Question Necromancer Nice Answer Nice Answer Announcer Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 62232,132204,503899,Popular Question Yearling Nice Question Self-Learner Caucus Nice Question Nice Answer Popular Question Yearling,NULL,NULL,1,Is google services json confidential android google analytics google analytics v4 google analytics android google services json pFollowing the guide on setting up Google Analytics in an Android app href https developers google com analytics devguides collection android v4 https developers google com analytics devguides collection android v4 am left wondering if this google services json file can safely be committed into source code versioning and pushed to public GitHub repository or if this file may contain credentials or secrets ppI cannot find definite answer elsewhere but can see that sample apps both commit the file href https github com google climb tracker blob master mobile google services json https github com google climb tracker blob master mobile google services json and others have added the file to their gitignore,NULL 62233,181145,1146207,Civic Duty Student Enthusiast Commentator Citizen Patrol Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 62234,1166125,1139291,NULL,NULL,NULL,0,NULL,NULL 62235,205837,188066,NULL,NULL,NULL,0,NULL,NULL 62236,364797,215904,Yearling Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 62237,220251,184844,Revival Nice Question Yearling Good Question Great Answer Notable Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 62238,35633,1243176,NULL,NULL,NULL,0,NULL,NULL 62239,1688153,308373,NULL,NULL,NULL,0,NULL,NULL 62240,263065,401687,NULL,NULL,NULL,0,NULL,NULL 62241,3000113,1017127,NULL,NULL,NULL,0,NULL,NULL 62242,129069,803870,NULL,NULL,NULL,0,NULL,NULL 62243,264901,136168,Revival Necromancer Revival Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 62244,401382,993078,NULL,NULL,NULL,0,NULL,NULL 62245,17418,254328,NULL,NULL,NULL,0,NULL,NULL 62246,122127,1083614,Notable Question Nice Question Famous Question Yearling Good Question Notable Question Famous Question Popular Question Nice Answer Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 62247,1827745,56832,NULL,NULL,NULL,0,NULL,NULL 62248,401639,344881,Editor Popular Question,NULL,NULL,0,NULL,NULL 62249,112966,814042,Teacher Supporter Autobiographer,NULL,NULL,0,NULL,NULL 62250,227841,1201538,NULL,NULL,NULL,0,NULL,NULL 62251,209427,805005,NULL,NULL,NULL,0,NULL,NULL 62252,45024,460750,Necromancer Necromancer Necromancer Notable Question Yearling Popular Question Nice Answer Necromancer Famous Question Notable Question Notable Question Caucus Notable Question Famous Question Revival Proofreader Census Famous Question Revival Good Question Popular Question Popular Question Popular Question Popular Question Yearling Nice Answer Notable Question Caucus Constituent Famous Question Good Answer Favorite Question Documentation User Custodian Announcer Popular Question Nice Answer Necromancer Notable Question Nice Answer Yearling Good Question Nice Question Popular Question Announcer Revival,NULL,pOne neat trick to disable margin collapsing that has no visual impact as far as know is setting the padding of the parent to code0 05px code ppre code parentClass padding 05px code prepThe padding is no longer so collapsing won occur anymore but at the same time the padding is small enough that visually it will round down to ppIf some other padding is desired then apply padding only to the direction in which margin collapsing is not desired for example codepadding top 05px code pp strongWorking example strongdiv class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code noCollapse xD padding 05px xD xD xD parent xD background color red xD width 150px xD xD xD children xD margin top 50px xD xD background color lime xD width 100px xD height 100px xD code pre xD pre class snippet code html lang html prettyprint override code lt h3 gt Border collapsing lt h3 gt xD lt div class parent gt xD lt div class children gt xD lt div gt xD lt div gt xD xD lt h3 gt No border collapsing lt h3 gt xD lt div class parent noCollapse gt xD lt div class children gt xD lt div gt xD lt div gt code pre xD div xD div xD pp strongEdit strong changed the value from code0 code to code0 05 code As Chris Morgan mentioned in comment bellow and from href https codepen io surdu pen GWMNZK rel nofollow noreferrer this small test it seems that indeed Firefox takes the code0 1px code padding into consideration Though code0 05px code seemes to do the trick Worked pretty nice so far for me but don claim to have tested it thoroughly in most browsers,0,NULL,NULL 62253,27700,1435983,Yearling,NULL,NULL,0,NULL,NULL 62254,33245,507119,NULL,NULL,NULL,0,NULL,NULL 62255,1520160,1030549,NULL,NULL,NULL,0,NULL,NULL 62256,160565,274830,NULL,NULL,NULL,0,NULL,NULL 62257,317020,457824,NULL,NULL,NULL,0,NULL,NULL 62258,54769,1454801,NULL,NULL,NULL,0,NULL,NULL 62259,55210,403035,NULL,NULL,NULL,0,NULL,NULL 62260,200665,226842,NULL,NULL,NULL,0,NULL,NULL 62261,333985,1084530,NULL,NULL,NULL,0,NULL,NULL 62262,977593,1084530,NULL,NULL,NULL,0,NULL,NULL 62263,51541,906491,Autobiographer Supporter Editor Enthusiast,NULL,NULL,0,NULL,NULL 62264,2875214,906491,Autobiographer Supporter Editor Enthusiast,NULL,NULL,0,NULL,NULL 62265,4753263,906491,Autobiographer Supporter Editor Enthusiast,NULL,NULL,0,NULL,NULL 62266,10146,174372,NULL,NULL,NULL,0,NULL,NULL 62267,320336,887323,Yearling Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 62268,3364140,1125049,NULL,NULL,NULL,0,NULL,NULL 62269,1385055,480283,NULL,NULL,NULL,0,NULL,NULL 62270,413079,278391,Promoter Good Answer Benefactor Necromancer Commentator Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 62271,63888,490006,Good Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 62272,429574,1088744,NULL,NULL,NULL,0,NULL,NULL 62273,425633,1496239,Revival Necromancer,NULL,NULL,0,NULL,NULL 62274,745557,482245,Popular Question Informed Custodian Caucus Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62275,9077543,918982,NULL,NULL,NULL,0,NULL,NULL 62276,139169,121515,Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 62277,1511628,801625,Popular Question,NULL,NULL,0,NULL,NULL 62278,244168,1419604,NULL,NULL,NULL,0,NULL,NULL 62279,897434,1395061,NULL,NULL,NULL,0,NULL,NULL 62280,358965,110214,Revival Yearling Revival Necromancer Nice Answer Documentation User Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 62281,169710,369609,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 62282,614586,469519,NULL,NULL,NULL,0,NULL,NULL 62283,440283,438722,Popular Question,NULL,NULL,0,NULL,NULL 62284,859902,1373218,Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62285,474841,416842,Yearling Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62286,78622,129190,Excavator Yearling Guru Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 62287,460061,1079966,Custodian Notable Question Editor Teacher Curious,NULL,NULL,0,NULL,NULL 62288,90096,561785,Civic Duty,NULL,NULL,0,NULL,NULL 62289,273578,706098,NULL,NULL,NULL,0,NULL,NULL 62290,25305,2907,Custodian Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 62291,356890,415324,Nice Answer Citizen Patrol Yearling Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 62292,19180,776243,NULL,NULL,NULL,0,NULL,NULL 62293,274407,29031,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 62294,140634,477051,NULL,NULL,NULL,0,NULL,NULL 62295,217888,190460,Yearling Revival Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62296,349700,1169509,Popular Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62297,175457,816683,Notable Question,NULL,NULL,0,NULL,NULL 62298,65651,446317,Popular Question Yearling ember.js Necromancer Yearling Organizer Yearling,NULL,NULL,0,NULL,NULL 62299,597436,759022,NULL,NULL,NULL,0,NULL,NULL 62300,426271,256788,Yearling,NULL,NULL,0,NULL,NULL 62301,70924,1405394,NULL,NULL,NULL,0,NULL,NULL 62302,5020380,610107,NULL,NULL,NULL,0,NULL,NULL 62303,62899,1265112,NULL,NULL,NULL,0,NULL,NULL 62304,184899,193343,NULL,NULL,NULL,0,NULL,NULL 62305,530752,302575,NULL,NULL,NULL,0,NULL,NULL 62306,1557260,58713,Good Question,NULL,NULL,0,NULL,NULL 62307,200579,872954,Teacher Necromancer,NULL,NULL,0,NULL,NULL 62308,544994,434152,NULL,NULL,NULL,0,NULL,NULL 62309,167288,1421074,NULL,NULL,NULL,0,NULL,NULL 62310,40558,1155446,NULL,NULL,NULL,0,NULL,NULL 62311,37379,1298487,NULL,NULL,NULL,0,NULL,NULL 62312,338616,407213,Popular Question Good Answer Nice Answer Good Answer Great Answer Necromancer Necromancer Nice Answer Yearling Necromancer Popular Question Nice Answer Necromancer Caucus Constituent Announcer Necromancer Archaeologist Informed Custodian Tag Editor Enthusiast Necromancer Great Answer javascript Proofreader Announcer Electorate Notable Question ruby Necromancer ruby-on-rails Necromancer Good Answer Announcer Revival Announcer Announcer Popular Question Yearling Necromancer Announcer Nice Answer Necromancer Announcer Revival Documentation User Necromancer Necromancer Nice Answer Nice Answer Revival Nice Answer Notable Question Announcer Necromancer Nice Answer Nice Answer Good Answer Notable Question Necromancer Necromancer Popular Question Necromancer Necromancer Pundit Necromancer Necromancer Necromancer Nice Answer Necromancer Necromancer Good Answer Popular Question Nice Answer Necromancer Yearling Popular Question Popular Question Necromancer Necromancer Necromancer Nice Answer Peer Pressure Revival Necromancer,NULL,What is reasonable code coverage for unit tests and why unit testing code coverage code metrics pIf you were to mandate minimum percentage code coverage for unit tests perhaps even as requirement for committing to repository what would it be ppPlease explain how you arrived at your answer since if all you did was pick number then could have done that all by myself 99 as it makes the unused code obvious How do call controller view methods from the console in Rails ruby on rails console pWhen load codescript console code some times want play with the output of controller or view helper method ppAre there ways to pullisimulate request lilicall methods from controller instance on said request lilitest helper methods either via said controller instance or another way li ul Thanks app get app post app response body just helped me so much Thanks lot to everybody on this thread pJust extend Julian table pp href https stack imgur com qbe46 png img src https stack imgur com qbe46 png alt enter image description here ppRef href http sibevin github io posts 2014 11 11 103928 rails empty vs blank vs nil empty blank nil 傻傻分不清楚 It doesn have to be tied with Rails https github com SamSaffron fast blank require fast blank blank pJonathan clever and cunning approach is great capable of slashing through hordes of symlinks with but mere flick of few asterisks muahaha However it has the unfortunate side effect of not returning immediate child matches An improved version might be ppre codeDir glob rb code prepWhich will in my tests do both follow one symlink and return immediate children Definitely works as it referenced in the source code popular open source project parralel spec https github com grosser parallel tests blob f680c77335dafe579022da7e76b4a168d92c8bf0 lib parallel tests test runner rb L221 L223 OpenSSL SSL SSLError SSL connect SYSCALL returned errno state SSLv3 read server hello ruby on rails ruby openssl net http pThe code below yields the following error OpenSSL SSL SSLError SSL connect SYSCALL returned errno state SSLv3 read server hello ppre coderequire net https uri URI parse https lt server gt com http Net HTTP new uri host uri port http use ssl truehttp ssl version SSLv3 http get uri request uri code prepAny idea why tried everything mentioned in all other questions still no luck pulliRuby 3p484 2013 11 22 revision 43786 x86 64 darwin13 liliOpenSSL 8y Feb 2013 li ulp strongUpdate strong ppTried the following pulliRuby 0p353 2013 11 22 revision 43784 x86 64 darwin13 liliOpenSSL 1i Aug 2014 li ulp strongUpdate II strong pulliForced ssl version to TLSv1 li ulpStill no luck pp strongUpdate III strong ppAlright here the final code thanks to Steffen see answer below ppre coderequire net https uri URI parse https lt server gt com http Net HTTP new uri host uri port http use ssl truehttp ssl version TLSv1http ciphers RC4 SHA http get uri request uri code prepI doubt that my question will be relevant to anyone else since it was related to remote misconfigured server Also on asknetsec https www reddit com AskNetsec comments 64ulgg what would be secure ssl configuration for the pA working example ppre code Add an event listenerdocument addEventListener name of event function console log detail Prints Example of an event Create the eventvar event new CustomEvent name of event detail Example of an event Dispatch Trigger Fire the eventdocument dispatchEvent event code prepFor older browsers href https developer mozilla org en US docs Web API CustomEvent CustomEvent Polyfill polyfill and more complex examples see href https developer mozilla org en US docs Web API CustomEvent MDN docs ppSee support tables for href http caniuse com feat dispatchevent codeEventTarget dispatchEvent code and href http caniuse com feat customevent codeCustomEvent code Because it was written after the previous one was already accepted and the person who wrote the question probably didn re read the answers,0,NULL,NULL 62313,211481,520364,Popular Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62314,2205745,520364,Popular Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62315,195377,1270625,NULL,NULL,NULL,0,NULL,NULL 62316,798553,363659,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62317,981176,464997,Notable Question Nice Question Notable Question Notable Question Yearling Famous Question Popular Question Notable Question Yearling Civic Duty Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62318,310460,464997,Notable Question Nice Question Notable Question Notable Question Yearling Famous Question Popular Question Notable Question Yearling Civic Duty Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62319,296852,254675,NULL,NULL,NULL,0,NULL,NULL 62320,93291,336950,Popular Question Notable Question Nice Question Census Famous Question,NULL,NULL,0,NULL,NULL 62321,60944,574213,Nice Question,NULL,NULL,0,NULL,NULL 62322,219113,650841,NULL,NULL,NULL,0,NULL,NULL 62323,173165,1109585,Teacher,NULL,NULL,0,NULL,NULL 62324,326599,649447,NULL,NULL,NULL,0,NULL,NULL 62325,96132,917128,NULL,NULL,NULL,0,NULL,NULL 62326,156604,1405853,Nice Answer Revival,NULL,NULL,0,NULL,NULL 62327,6441263,780912,NULL,NULL,NULL,0,NULL,NULL 62328,236739,780912,NULL,NULL,NULL,0,NULL,NULL 62329,1611866,685621,Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 62330,388475,841969,NULL,NULL,NULL,0,NULL,NULL 62331,225903,768930,NULL,NULL,NULL,0,NULL,NULL 62332,650696,290241,Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 62333,44850,442418,Tumbleweed Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62334,6145,14191,Stellar Question,NULL,NULL,0,NULL,NULL 62335,1509663,235961,Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 62336,1567217,1310038,Supporter Commentator Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62337,1249453,876633,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 62338,160529,1415379,NULL,NULL,NULL,0,NULL,NULL 62339,250586,554205,Necromancer Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 62340,378011,916076,NULL,NULL,NULL,0,NULL,NULL 62341,309887,1191568,NULL,NULL,NULL,0,NULL,NULL 62342,3120301,791235,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62343,1349209,1277990,NULL,NULL,NULL,0,NULL,NULL 62344,652151,142877,NULL,NULL,NULL,0,NULL,NULL 62345,409616,853160,NULL,NULL,NULL,0,NULL,NULL 62346,147052,1116500,NULL,NULL,NULL,0,NULL,NULL 62347,4304559,674258,NULL,NULL,NULL,0,NULL,NULL 62348,79315,1459140,Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 62349,483490,550013,Autobiographer,NULL,NULL,0,NULL,NULL 62350,36552,5558,Notable Question,NULL,NULL,0,NULL,NULL 62351,3153,555297,Popular Question Notable Question Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 62352,843181,1170333,Yearling Census Yearling Revival Taxonomist Caucus Announcer Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 62353,106826,377786,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62354,984448,1105788,Notable Question Popular Question Caucus Constituent Critic,NULL,,0,, 62355,10767042,1105788,Notable Question Popular Question Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 62356,114909,127511,Nice Question Favorite Question Popular Question Notable Question Famous Question Good Question Famous Question Popular Question Necromancer Notable Question Notable Question Yearling Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Favorite Question Popular Question Famous Question Notable Question Great Question Good Question Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Notable Question Nice Question Yearling Nice Question Popular Question Caucus Popular Question Popular Question Necromancer Famous Question Popular Question Nice Answer Popular Question Nice Question Popular Question Popular Question Popular Question Great Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62357,542725,854054,Caucus Popular Question Yearling Caucus Constituent Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62358,3787128,854054,Caucus Popular Question Yearling Caucus Constituent Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62359,7770517,1317769,NULL,NULL,NULL,0,NULL,NULL 62360,1167569,1349659,Yearling,NULL,NULL,0,NULL,NULL 62361,174714,446341,NULL,NULL,NULL,0,NULL,NULL 62362,166503,427069,Famous Question Notable Question Notable Question Popular Question Popular Question Famous Question Yearling Nice Question Nice Question Notable Question Notable Question Good Question Famous Question Notable Question Famous Question Yearling Nice Question Famous Question Popular Question Good Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62363,128730,223939,Yearling Notable Question Caucus Constituent Famous Question Nice Question Popular Question Notable Question Popular Question Caucus Notable Question Notable Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 62364,884360,817277,Nice Answer Enlightened Guru Nice Answer Quorum Famous Question Necromancer Yearling Popular Question Necromancer Caucus Popular Question Yearling Caucus Constituent Census Revival Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62365,10593063,817277,Nice Answer Enlightened Guru Nice Answer Quorum Famous Question Necromancer Yearling Popular Question Necromancer Caucus Popular Question Yearling Caucus Constituent Census Revival Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62366,930007,438639,NULL,NULL,NULL,0,NULL,NULL 62367,419859,707409,NULL,NULL,NULL,0,NULL,NULL 62368,680932,961411,Curious Famous Question Popular Question,NULL,NULL,0,NULL,NULL 62369,255734,150318,NULL,NULL,NULL,0,NULL,NULL 62370,214520,232932,Census,NULL,NULL,0,NULL,NULL 62371,577222,583764,NULL,NULL,NULL,0,NULL,NULL 62372,360185,1332464,NULL,NULL,NULL,0,NULL,NULL 62373,657122,711110,NULL,NULL,NULL,0,NULL,NULL 62374,725282,467413,Yearling Famous Question Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 62375,561117,721614,Caucus Constituent,NULL,NULL,0,NULL,NULL 62376,408016,1304569,Census,NULL,NULL,0,NULL,NULL 62377,427130,681928,NULL,NULL,NULL,0,NULL,NULL 62378,63495,877085,Curious Yearling Good Answer,NULL,NULL,0,NULL,NULL 62379,194663,18501,Good Answer Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 62380,2058509,1273407,Nice Answer Popular Question Yearling Notable Question Curious Yearling Good Answer Nice Answer Enlightened Popular Question Announcer Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62381,900001,1273407,Nice Answer Popular Question Yearling Notable Question Curious Yearling Good Answer Nice Answer Enlightened Popular Question Announcer Famous Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62382,12363,1171410,NULL,NULL,NULL,0,NULL,NULL 62383,2711408,892365,NULL,NULL,NULL,0,NULL,NULL 62384,8252,628399,Nice Question,NULL,NULL,0,NULL,NULL 62385,178774,350064,NULL,NULL,NULL,0,NULL,NULL 62386,1590879,638807,NULL,NULL,NULL,0,NULL,NULL 62387,38163,147992,Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62388,48752,701668,NULL,NULL,NULL,0,NULL,NULL 62389,402237,619938,NULL,NULL,NULL,0,NULL,NULL 62390,347861,648737,Popular Question Popular Question Popular Question Notable Question Teacher,NULL,NULL,0,NULL,NULL 62391,32651,85606,Booster Nice Question Yearling Explainer Proofreader Notable Question Famous Question Announcer Publicist Revival Informed Tag Editor Notable Question Famous Question Announcer Announcer Popular Question Tenacious Caucus Announcer Nice Question Notable Question Notable Question Nice Answer Yearling Announcer Announcer Guru Announcer Announcer Announcer Popular Question Popular Question Announcer Announcer Announcer Documentation User Announcer Announcer Popular Question Popular Question Notable Question Census Announcer Caucus Necromancer Yearling Popular Question Popular Question Nice Question Announcer xamarin Nice Answer Announcer Publicist Favorite Question Announcer Announcer,NULL,NULL,0,NULL,NULL 62392,59701,772884,Necromancer Popular Question Caucus Constituent Notable Question Caucus Constituent Documentation User Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 62393,828616,780505,Autobiographer Informed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62394,7632612,780505,Autobiographer Informed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62395,44604,927836,NULL,NULL,NULL,0,NULL,NULL 62396,104779,242262,Popular Question Notable Question Yearling Notable Question Popular Question Caucus Caucus,NULL,NULL,0,NULL,NULL 62397,346329,516982,Notable Question Famous Question Nice Question Good Question Inquisitive Yearling Popular Question Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 62398,369038,500773,Documentation Beta Yearling Yearling Yearling Yearling Custodian Custodian Organizer Citizen Patrol Custodian Critic Yearling Commentator Enthusiast Mortarboard Yearling Necromancer Custodian Documentation User Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 62399,8525030,554316,NULL,NULL,NULL,0,NULL,NULL 62400,1695242,788113,NULL,NULL,NULL,0,NULL,NULL 62401,174153,1279449,Yearling Curious Yearling Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Unsung Hero,NULL,NULL,0,NULL,NULL 62402,62906,213302,Critic,NULL,NULL,0,NULL,NULL 62403,16262,159478,Yearling Nice Answer Yearling Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 62404,185242,737792,NULL,NULL,NULL,0,NULL,NULL 62405,1265196,825799,NULL,NULL,NULL,0,NULL,NULL 62406,1232809,804169,NULL,NULL,NULL,0,NULL,NULL 62407,810549,396934,NULL,NULL,NULL,0,NULL,NULL 62408,924061,938911,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 62409,84832,58737,Nice Question Yearling Famous Question Nice Question Favorite Question Notable Question Great Answer Famous Question Famous Question Yearling Nice Answer Nice Answer Good Question Popular Question Guru Good Answer Good Question Famous Question Famous Question Nice Question Good Question Custodian Nice Question Good Answer Announcer Pundit Great Answer Good Answer Great Question Nice Question Electorate Yearling Famous Question Popular Question Good Question Nice Answer Popular Question Famous Question Nice Answer Nice Answer Favorite Question Nice Answer Announcer Popular Question,NULL,NULL,0,NULL,NULL 62410,656758,1381135,NULL,NULL,NULL,0,NULL,NULL 62411,29665,748865,Famous Question Good Question Popular Question Nice Answer Nice Question Yearling Notable Question Famous Question Good Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 62412,417629,354627,Informed,NULL,NULL,0,NULL,NULL 62413,26394,639946,NULL,NULL,NULL,0,NULL,NULL 62414,200364,430087,Popular Question Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 62415,775127,1121866,NULL,NULL,NULL,0,NULL,NULL 62416,524059,986226,Necromancer Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 62417,223487,649652,NULL,NULL,NULL,0,NULL,NULL 62418,123841,586163,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Question Famous Question Notable Question Yearling Notable Question Curious Tumbleweed Nice Answer python Notable Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 62419,271569,209189,NULL,NULL,NULL,0,NULL,NULL 62420,1348163,253894,NULL,NULL,NULL,0,NULL,NULL 62421,310494,525169,Custodian Yearling Suffrage Vox Populi Explainer Organizer Civic Duty Self-Learner Yearling Excavator Enthusiast Curious Yearling Reviewer Caucus Constituent Fanatic numpy python Yearling Custodian Custodian Proofreader Strunk & White Nice Answer Caucus Constituent Announcer Announcer Announcer Revival Documentation User Announcer Necromancer Yearling Electorate Census Nice Answer Custodian Custodian Caucus Notable Question Announcer Constituent Good Answer arrays Necromancer Nice Answer Yearling,NULL,NULL,1,IPython Remove spaces between input lines python ipython prompt This question is essentially href https stackoverflow com questions 2351857 ipython single line spacing possible this question but for IPython version ppI like to have classic prompt with IPython pp href https stackoverflow com questions 38275585 adding color to new style ipython v5 prompt This question helps customize my prompt In fact discovered that IPython has class definition for the href http ipython readthedocs io en latest api generated IPython terminal prompts html IPython terminal prompts ClassicPrompts rel nofollow noreferrer codeClassicPrompts code already ppAll need to do is to put the following in file called code00 classic prompts py code or some such in code ipython profile default startup code ppre codefrom IPython terminal prompts import ClassicPromptsip get ipython ip prompts ClassicPrompts ip code prepBut different prompt lines still render as ppre code gt gt gt print Hello world Hello world gt gt gt code prepWith an extra new line before every input prompt How can remove this,NULL 62422,206089,436797,NULL,NULL,NULL,0,NULL,NULL 62423,153078,230293,Great Answer Popular Question Popular Question Notable Question Custodian Yearling Census Popular Question Famous Question Popular Question Yearling Nice Question Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 62424,104863,1008837,Popular Question Notable Question Necromancer Nice Question ruby-on-rails Cleanup Necromancer Yearling Guru Necromancer Nice Question Popular Question Famous Question Documentation User Yearling Popular Question Necromancer Nice Answer Good Answer Nice Answer Good Answer Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 62425,152641,1154099,NULL,NULL,NULL,0,NULL,NULL 62426,373736,104708,Famous Question,NULL,NULL,0,NULL,NULL 62427,7907648,432903,Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Announcer Good Answer Nice Answer Famous Question Necromancer Popular Question Notable Question Necromancer Good Answer Nice Answer Notable Question Necromancer Notable Question Yearling Nice Answer Nice Answer Announcer Caucus Announcer Popular Question Announcer Notable Question Nice Answer Enlightened Popular Question Necromancer Guru android Famous Question Popular Question Necromancer Announcer Nice Answer Necromancer Notable Question Announcer Popular Question Announcer Nice Answer Revival Good Answer Necromancer Nice Answer scala Announcer Announcer Announcer Good Answer Yearling Guru Popular Question Nice Answer Nice Question Announcer Popular Question Necromancer Necromancer Necromancer Necromancer Great Answer Revival Popular Question Good Answer Announcer Necromancer Notable Question Necromancer Notable Question Nice Answer Announcer Necromancer Census Necromancer Popular Question Nice Answer Nice Answer Nice Question Necromancer elasticsearch Revival Nice Answer Nice Answer Announcer Announcer Announcer Necromancer Revival Notable Question Famous Question Popular Question Announcer Nice Answer Popular Question Announcer Revival Yearling Announcer java Notable Question Nice Answer Enlightened Good Answer Good Answer Popular Question Necromancer Notable Question,NULL,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre get Some as well in 12 No clue what recoverWith API stands for why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre Interesting that the issue you mentioned allows return None from collect function Is it that scala allows returning final type from anywhere in codebase Thats insane if true Whats the point of having function return type then why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre snytt interesting actually saw the post Don Use Return in Scala https tpolecat github io 2014 05 09 return html long ago never paid attention Now understand return is not following the definition of recoverWith instead the whole method like you said non local Did not expect scala allows breaking the whole flow and returning to the caller,1,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre,bitwise shift right with long not equaling zero scala pI was playing in the REPL and see this behavior for code gt gt code and code gt gt gt code It seems that Long should occupy 64 bits so shifting right by code64 code should always zero out the number ppre codescala gt 64 gt gt 64res22 Int 64scala gt 64 gt gt 65res23 Int 32scala gt 64 gt gt 66res24 Int 16scala gt 64 gt gt 67res25 Int 8scala gt 64 gt gt 68res26 Int 4scala gt 64 gt gt 69res27 Int 2scala gt 64 gt gt 70res28 Int 1scala gt 64 gt gt 71res29 Int 0scala gt 64 gt gt gt 64res30 Int 64scala gt 64 gt gt gt 65res31 Int 32 code prepWhat is this behavior in Scala pbinary for code64 code is code1000000 code ppyou have to right shift by to 31 to get ppre codescala gt import java lang Longimport java lang Longscala gt Long toBinaryString 64 res139 String 1000000scala gt Long toBinaryString 64 gt gt res140 String 1scala gt Long toBinaryString 64 gt gt res141 String code prep31 will give you the same result ppre codescala gt 64 gt gt 64res1 Int 64scala gt 64 gt gt 32res2 Int 64scala gt 64 gt gt 128res3 Int 64 code prepSame in codejava lang Long code or codescala Long code 62428,4718775,432903,Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Announcer Good Answer Nice Answer Famous Question Necromancer Popular Question Notable Question Necromancer Good Answer Nice Answer Notable Question Necromancer Notable Question Yearling Nice Answer Nice Answer Announcer Caucus Announcer Popular Question Announcer Notable Question Nice Answer Enlightened Popular Question Necromancer Guru android Famous Question Popular Question Necromancer Announcer Nice Answer Necromancer Notable Question Announcer Popular Question Announcer Nice Answer Revival Good Answer Necromancer Nice Answer scala Announcer Announcer Announcer Good Answer Yearling Guru Popular Question Nice Answer Nice Question Announcer Popular Question Necromancer Necromancer Necromancer Necromancer Great Answer Revival Popular Question Good Answer Announcer Necromancer Notable Question Necromancer Notable Question Nice Answer Announcer Necromancer Census Necromancer Popular Question Nice Answer Nice Answer Nice Question Necromancer elasticsearch Revival Nice Answer Nice Answer Announcer Announcer Announcer Necromancer Revival Notable Question Famous Question Popular Question Announcer Nice Answer Popular Question Announcer Revival Yearling Announcer java Notable Question Nice Answer Enlightened Good Answer Good Answer Popular Question Necromancer Notable Question,NULL,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre get Some as well in 12 No clue what recoverWith API stands for why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre Interesting that the issue you mentioned allows return None from collect function Is it that scala allows returning final type from anywhere in codebase Thats insane if true Whats the point of having function return type then why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre snytt interesting actually saw the post Don Use Return in Scala https tpolecat github io 2014 05 09 return html long ago never paid attention Now understand return is not following the definition of recoverWith instead the whole method like you said non local Did not expect scala allows breaking the whole flow and returning to the caller,1,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre,bitwise shift right with long not equaling zero scala pI was playing in the REPL and see this behavior for code gt gt code and code gt gt gt code It seems that Long should occupy 64 bits so shifting right by code64 code should always zero out the number ppre codescala gt 64 gt gt 64res22 Int 64scala gt 64 gt gt 65res23 Int 32scala gt 64 gt gt 66res24 Int 16scala gt 64 gt gt 67res25 Int 8scala gt 64 gt gt 68res26 Int 4scala gt 64 gt gt 69res27 Int 2scala gt 64 gt gt 70res28 Int 1scala gt 64 gt gt 71res29 Int 0scala gt 64 gt gt gt 64res30 Int 64scala gt 64 gt gt gt 65res31 Int 32 code prepWhat is this behavior in Scala pbinary for code64 code is code1000000 code ppyou have to right shift by to 31 to get ppre codescala gt import java lang Longimport java lang Longscala gt Long toBinaryString 64 res139 String 1000000scala gt Long toBinaryString 64 gt gt res140 String 1scala gt Long toBinaryString 64 gt gt res141 String code prep31 will give you the same result ppre codescala gt 64 gt gt 64res1 Int 64scala gt 64 gt gt 32res2 Int 64scala gt 64 gt gt 128res3 Int 64 code prepSame in codejava lang Long code or codescala Long code 62429,30607,432903,Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Announcer Good Answer Nice Answer Famous Question Necromancer Popular Question Notable Question Necromancer Good Answer Nice Answer Notable Question Necromancer Notable Question Yearling Nice Answer Nice Answer Announcer Caucus Announcer Popular Question Announcer Notable Question Nice Answer Enlightened Popular Question Necromancer Guru android Famous Question Popular Question Necromancer Announcer Nice Answer Necromancer Notable Question Announcer Popular Question Announcer Nice Answer Revival Good Answer Necromancer Nice Answer scala Announcer Announcer Announcer Good Answer Yearling Guru Popular Question Nice Answer Nice Question Announcer Popular Question Necromancer Necromancer Necromancer Necromancer Great Answer Revival Popular Question Good Answer Announcer Necromancer Notable Question Necromancer Notable Question Nice Answer Announcer Necromancer Census Necromancer Popular Question Nice Answer Nice Answer Nice Question Necromancer elasticsearch Revival Nice Answer Nice Answer Announcer Announcer Announcer Necromancer Revival Notable Question Famous Question Popular Question Announcer Nice Answer Popular Question Announcer Revival Yearling Announcer java Notable Question Nice Answer Enlightened Good Answer Good Answer Popular Question Necromancer Notable Question,NULL,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre get Some as well in 12 No clue what recoverWith API stands for why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre Interesting that the issue you mentioned allows return None from collect function Is it that scala allows returning final type from anywhere in codebase Thats insane if true Whats the point of having function return type then why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre snytt interesting actually saw the post Don Use Return in Scala https tpolecat github io 2014 05 09 return html long ago never paid attention Now understand return is not following the definition of recoverWith instead the whole method like you said non local Did not expect scala allows breaking the whole flow and returning to the caller,1,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre,bitwise shift right with long not equaling zero scala pI was playing in the REPL and see this behavior for code gt gt code and code gt gt gt code It seems that Long should occupy 64 bits so shifting right by code64 code should always zero out the number ppre codescala gt 64 gt gt 64res22 Int 64scala gt 64 gt gt 65res23 Int 32scala gt 64 gt gt 66res24 Int 16scala gt 64 gt gt 67res25 Int 8scala gt 64 gt gt 68res26 Int 4scala gt 64 gt gt 69res27 Int 2scala gt 64 gt gt 70res28 Int 1scala gt 64 gt gt 71res29 Int 0scala gt 64 gt gt gt 64res30 Int 64scala gt 64 gt gt gt 65res31 Int 32 code prepWhat is this behavior in Scala pbinary for code64 code is code1000000 code ppyou have to right shift by to 31 to get ppre codescala gt import java lang Longimport java lang Longscala gt Long toBinaryString 64 res139 String 1000000scala gt Long toBinaryString 64 gt gt res140 String 1scala gt Long toBinaryString 64 gt gt res141 String code prep31 will give you the same result ppre codescala gt 64 gt gt 64res1 Int 64scala gt 64 gt gt 32res2 Int 64scala gt 64 gt gt 128res3 Int 64 code prepSame in codejava lang Long code or codescala Long code 62430,184971,490524,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62431,63757,506361,Custodian Custodian Custodian Informed Custodian Yearling Necromancer Nice Answer Yearling Documentation User Good Answer Yearling,NULL,NULL,0,NULL,NULL 62432,902776,627620,NULL,NULL,NULL,0,NULL,NULL 62433,53921,28674,Necromancer Nice Answer Yearling Good Answer Popular Question Documentation User Yearling Revival,NULL,NULL,0,NULL,NULL 62434,144010,428732,Nice Answer Enlightened Editor Yearling,NULL,NULL,0,NULL,NULL 62435,421565,980990,NULL,NULL,NULL,0,NULL,NULL 62436,297329,815866,NULL,NULL,NULL,0,NULL,NULL 62437,1508904,1144470,NULL,NULL,NULL,0,NULL,NULL 62438,165082,524740,Excavator Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 62439,408095,398519,Good Answer Yearling Nice Answer Enlightened Nice Question Good Answer Great Answer Good Answer arrays Yearling Nice Answer Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 62440,49706,1148011,NULL,NULL,NULL,0,NULL,NULL 62441,1517919,569256,Critic,NULL,NULL,0,NULL,NULL 62442,104070,1380255,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Nice Question Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 62443,837486,1026764,Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Question Notable Question Popular Question Nice Question Famous Question Yearling Nice Question Favorite Question Good Question Nice Question Nice Question Popular Question Nice Question Famous Question Famous Question Notable Question Famous Question Yearling Famous Question Nice Question Nice Question Popular Question Nice Answer Famous Question Famous Question Popular Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 62444,219047,204396,Informed Autobiographer Scholar Announcer,NULL,Alamofire can get response closure to execute xcode swift alamofire pMac OS 10 11 El Capitan XCode Alamofire via Carthage ppTrying to get the most basic Alamofire example can think of to work Although seasoned developer am new to XCode so am sure am just missing something basic setup new project added Alamofire via Carthage added simple get request in main swift Code builds and runs but nothing from my response closure ever gets called added the sleep to try and be sure to wait long enough for the closure to get called have Little Snitch on and see that my project is calling httpbin org have tried variety of the response methods But closure never runs what am missing ph3main swift h3pre codeimport Alamofireprint Start var String main Alamofire request GET https httpbin org get responseString resp in print in response handler print response resp response sleep 90 print End code preh3Console Output h3pre codeStartEnd main code preh3XCode h3p href http stack imgur com REJII png rel nofollow xcode screenshot It is command line application project in XCode just hit Run from XCode and it runs whatever have in main swift At least that is what appears to happen Console output shows start and end print statements If set breakpoint to something not in the closure and debug the debugger does stop at that breakpoint Breakpoint inside the closure never gets triggered,1,Alamofire can get response closure to execute xcode swift alamofire pMac OS 10 11 El Capitan XCode Alamofire via Carthage ppTrying to get the most basic Alamofire example can think of to work Although seasoned developer am new to XCode so am sure am just missing something basic setup new project added Alamofire via Carthage added simple get request in main swift Code builds and runs but nothing from my response closure ever gets called added the sleep to try and be sure to wait long enough for the closure to get called have Little Snitch on and see that my project is calling httpbin org have tried variety of the response methods But closure never runs what am missing ph3main swift h3pre codeimport Alamofireprint Start var String main Alamofire request GET https httpbin org get responseString resp in print in response handler print response resp response sleep 90 print End code preh3Console Output h3pre codeStartEnd main code preh3XCode h3p href http stack imgur com REJII png rel nofollow xcode screenshot,NULL 62445,894061,301387,Student Custodian Supporter,NULL,NULL,0,NULL,NULL 62446,2647,43151,Notable Question Good Answer Good Answer Good Answer Good Answer Yearling Nice Answer Nice Answer Necromancer Nice Answer Civic Duty Good Answer Cleanup Guru Yearling Guru Nice Answer Guru,NULL,pHere way using only standard Java library note that the stream is not closed YMMV ppre codestatic String convertStreamToString java io InputStream is java util Scanner new java util Scanner is useDelimiter return hasNext next code prepI learned this trick from href https community oracle com blogs pat 2004 10 23 stupid scanner tricks rel noreferrer Stupid Scanner tricks article The reason it works is because href http download oracle com javase docs api java util Scanner html rel noreferrer Scanner iterates over tokens in the stream and in this case we separate tokens using beginning of the input boundary thus giving us only one token for the entire contents of the stream pp strongNote if you need to be specific about the input stream encoding you can provide the second argument to codeScanner code constructor that indicates what charset to use UTF strong ppHat tip goes also to href https stackoverflow com users 68127 jacob gabrielson Jacob who once pointed me to the said article pp strongEDITED strong Thanks to suggestion from href https stackoverflow com users 101272 patrick Patrick made the function more robust when handling an empty input stream strongOne more edit strong nixed try catch Patrick way is more laconic Scanner has built in stream reading logic and we re telling it that the stream has just one token special case of Scanner usage Fair game Good point though This stuff is clearly hack,0,NULL,NULL 62447,474326,1297781,NULL,NULL,NULL,0,NULL,NULL 62448,1567491,1222978,NULL,NULL,NULL,0,NULL,NULL 62449,1306519,691825,Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 62450,274850,399850,Nice Question Curious Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 62451,61039,76199,Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 62452,496191,444816,NULL,NULL,NULL,0,NULL,NULL 62453,17925,294421,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 62454,124105,305354,NULL,NULL,NULL,0,NULL,NULL 62455,391854,596307,NULL,NULL,NULL,0,NULL,NULL 62456,391860,596307,NULL,NULL,NULL,0,NULL,NULL 62457,261493,1194964,Popular Question Popular Question Informed Nice Question Yearling Notable Question Caucus Constituent Census Tumbleweed Census,NULL,NULL,0,NULL,NULL 62458,8729729,427342,Notable Question Yearling Popular Question Popular Question Famous Question Popular Question Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 62459,593980,1293704,Revival Yearling Notable Question Notable Question Nice Answer Caucus Constituent Yearling Caucus Constituent Announcer Caucus,NULL,NULL,0,NULL,NULL 62460,832517,1015513,Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62461,212691,1015513,Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62462,52247,789460,Yearling Commentator Custodian Yearling Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 62463,66312,333930,Yearling Revival,NULL,NULL,0,NULL,NULL 62464,1389830,1265199,NULL,NULL,NULL,0,NULL,NULL 62465,433978,105938,Great Answer Nice Question Good Answer Good Answer Yearling Nice Answer Enlightened Guru Good Answer Yearling Nice Answer Nice Answer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 62466,981361,583865,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62467,2562927,1232076,Supporter,NULL,NULL,0,NULL,NULL 62468,309288,834250,Revival Yearling Nice Answer Revival Revival Custodian Custodian Civic Duty Yearling Good Answer Revival Announcer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 62469,1207415,584979,Tumbleweed Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62470,169393,1112140,Revival Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 62471,83761,187311,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 62472,202101,1025031,NULL,NULL,NULL,0,NULL,NULL 62473,30639,1121552,Necromancer Curious Nice Answer Excavator Yearling Good Answer Documentation User Yearling Populist Popular Question,NULL,NULL,0,NULL,NULL 62474,87350,220439,NULL,NULL,NULL,0,NULL,NULL 62475,215316,105399,Editor Critic Yearling Commentator Informed Autobiographer Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 62476,275136,611577,Notable Question,NULL,NULL,0,NULL,NULL 62477,69776,22964,Nice Question Notable Question Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 62478,786892,1346705,Popular Question Popular Question Popular Question Famous Question Nice Answer Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Famous Question Caucus Popular Question Announcer Taxonomist Nice Answer Popular Question Notable Question Popular Question Revival Yearling Popular Question Nice Answer Good Answer Notable Question Announcer Popular Question Great Question Announcer Announcer Caucus Peer Pressure Nice Answer Guru Notable Question Notable Question Nice Answer Popular Question Announcer Announcer Nice Answer Popular Question Caucus Famous Question Popular Question Announcer Yearling Popular Question Nice Answer Favorite Question Popular Question Notable Question Announcer Notable Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 62479,335128,1428974,Famous Question Yearling,NULL,NULL,0,NULL,NULL 62480,174448,1353206,NULL,NULL,NULL,0,NULL,NULL 62481,333220,323404,Nice Question Yearling Notable Question Great Question Yearling Good Question Stellar Question Caucus Notable Question Custodian Custodian Good Question Nice Answer Good Answer Caucus Constituent Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 62482,38178,712663,NULL,NULL,NULL,0,NULL,NULL 62483,452435,1122351,Good Answer Yearling Nice Answer Curious Announcer php Good Question Yearling Self-Learner Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 62484,279686,321871,Great Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 62485,184478,70273,Supporter Tumbleweed Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 62486,178889,951442,NULL,NULL,NULL,0,NULL,NULL 62487,856097,1181261,Yearling Famous Question Popular Question Nice Answer Enlightened Notable Question Popular Question Popular Question Self-Learner Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Nice Question Caucus Popular Question Notable Question Notable Question Notable Question Popular Question Custodian Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Caucus Popular Question Famous Question Popular Question Documentation User Popular Question Famous Question Popular Question Yearling Good Question Announcer Notable Question Popular Question Famous Question Popular Question Disciplined Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62488,367709,255710,Good Answer Necromancer Custodian Good Answer Popular Question Popular Question Necromancer Famous Question Necromancer Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Necromancer Nice Answer Popular Question Notable Question Nice Answer Enlightened Notable Question Notable Question Popular Question Yearling Good Answer Famous Question vue.js Popular Question Nice Question Popular Question Nice Question Guru Nice Answer Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 62489,200512,720199,NULL,NULL,NULL,0,NULL,NULL 62490,599362,1058886,Popular Question,NULL,NULL,0,NULL,NULL 62491,136569,1403649,Good Answer,NULL,NULL,0,NULL,NULL 62492,1407106,647886,Good Question Yearling Nice Question Yearling Great Question Caucus Favorite Question Nice Question Yearling Caucus Excavator Custodian Yearling Favorite Question,NULL,NULL,0,NULL,NULL 62493,1669082,1519841,NULL,NULL,NULL,0,NULL,NULL 62494,1043595,311792,Famous Question Yearling Good Question Necromancer Yearling Caucus Good Question Nice Answer Enlightened Popular Question Yearling Famous Question Promoter,NULL,NULL,0,NULL,NULL 62495,140434,1171710,Documentation User Editor,NULL,NULL,0,NULL,NULL 62496,447895,219449,Good Question Great Question Famous Question Inquisitive Revival Caucus Yearling Notable Question Popular Question Nice Answer Popular Question Notable Question Popular Question Caucus Famous Question Popular Question Famous Question Good Answer Yearling Popular Question Popular Question Revival Good Question Yearling,NULL,Scrollable image with pinch to zoom react native pI trying to display an image in my React Native app Android and want to give users an ability to zoom that image in and out This also requires the image to be scrollable once zoomed in ppHow would go about it ppI tried to use codeScrollView code to display bigger image inside but on Android it can either scroll vertically or horizontally not both ways Even if that worked there is problem of making codepinch to zoom code work ppAs far as understand need to use codePanResponder code on custom view to zoom an image and position it accordingly Is there an easier way yes had to write my own component please see the answer Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers ve created git repo here https github com Leonti haskell memory so This one reads list of addresses the same amount as properties and geocodes them Strangely this one doesn exibit any memory issues see spikes up to 11M which correspond to calls to MapQuest Not even near to 800M Program without geocoding consumes 30M program with just geocoding consumes 11M If combine them get 800M Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers Guys here is the version which you can run and which has the memory problem https github com Leonti haskell memory so Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers think it might reduce the memory little but not by lot Version that just geocodes the addresses consumes only 11M at peaks using String and Data Aeson decode Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers not really those are the same addresses so in high consumption case it still processes around 780 addresses batches ve updates the version on github which reproduces the bug Could you take look at it,1,Scrollable image with pinch to zoom react native pI trying to display an image in my React Native app Android and want to give users an ability to zoom that image in and out This also requires the image to be scrollable once zoomed in ppHow would go about it ppI tried to use codeScrollView code to display bigger image inside but on Android it can either scroll vertically or horizontally not both ways Even if that worked there is problem of making codepinch to zoom code work ppAs far as understand need to use codePanResponder code on custom view to zoom an image and position it accordingly Is there an easier way Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers,NULL 62497,297280,1004211,Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Notable Question Popular Question Caucus Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 62498,902226,1263904,Popular Question Scholar Commentator Custodian Yearling,NULL,NULL,0,NULL,NULL 62499,51740,729729,Announcer Announcer,NULL,NULL,0,NULL,NULL 62500,357288,4748,Nice Answer Yearling Populist,NULL,NULL,0,NULL,NULL 62501,376534,1320760,Popular Question,NULL,NULL,0,NULL,NULL 62502,152967,400552,Nice Question Notable Question Yearling Good Answer Caucus Popular Question Popular Question Announcer Announcer Yearling Nice Question,NULL,NULL,0,NULL,NULL 62503,21269,381202,NULL,NULL,NULL,0,NULL,NULL 62504,217565,941035,NULL,NULL,NULL,0,NULL,NULL 62505,113851,929294,Autobiographer,NULL,NULL,0,NULL,NULL 62506,128887,205109,NULL,NULL,NULL,0,NULL,NULL 62507,268503,1135382,NULL,NULL,NULL,0,NULL,NULL 62508,579927,499660,NULL,NULL,NULL,0,NULL,NULL 62509,684464,1034358,NULL,NULL,NULL,0,NULL,NULL 62510,104638,57847,Yearling Great Question Notable Question Famous Question Favorite Question Famous Question Popular Question Nice Answer Good Answer Yearling Popular Question Guru Famous Question Nice Question Notable Question Yearling Notable Question Notable Question Guru Popular Question Famous Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62511,241249,436429,Popular Question Notable Question Good Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 62512,1346498,1470702,NULL,NULL,NULL,0,NULL,NULL 62513,1345131,1158440,NULL,NULL,NULL,0,NULL,NULL 62514,927204,1192706,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 62515,1737509,680270,NULL,NULL,NULL,0,NULL,NULL 62516,264347,623883,Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 62517,379910,1453047,Revival Yearling Self-Learner Caucus Constituent Popular Question Yearling Popular Question Caucus Census Notable Question Caucus,NULL,NULL,0,NULL,NULL 62518,35152,235591,Yearling,NULL,NULL,0,NULL,NULL 62519,609132,1470397,NULL,NULL,NULL,0,NULL,NULL 62520,619223,1045036,NULL,NULL,NULL,0,NULL,NULL 62521,79528,475525,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 62522,198843,118510,NULL,NULL,NULL,0,NULL,NULL 62523,881371,625391,Commentator Notable Question Tumbleweed Curious Critic,NULL,NULL,0,NULL,NULL 62524,1281505,844512,Popular Question Teacher,NULL,NULL,0,NULL,NULL 62525,351166,582106,NULL,NULL,NULL,0,NULL,NULL 62526,157532,1380177,Popular Question,NULL,NULL,0,NULL,NULL 62527,3639799,708837,NULL,NULL,NULL,0,NULL,NULL 62528,73716,147352,Notable Question Famous Question Popular Question Yearling Notable Question Notable Question Necromancer Nice Question Yearling,NULL,NULL,0,NULL,NULL 62529,176902,461229,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62530,1769523,169754,Great Answer Popular Question Enlightened Nice Answer Enlightened Popular Question Popular Question Nice Answer Notable Question Popular Question Good Answer Notable Question Popular Question Yearling Popular Question Nice Question Nice Answer Popular Question Nice Answer Notable Question Famous Question Popular Question Good Question Nice Question Popular Question Notable Question Yearling Stellar Question Famous Question Popular Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 62531,39300,169754,Great Answer Popular Question Enlightened Nice Answer Enlightened Popular Question Popular Question Nice Answer Notable Question Popular Question Good Answer Notable Question Popular Question Yearling Popular Question Nice Question Nice Answer Popular Question Nice Answer Notable Question Famous Question Popular Question Good Question Nice Question Popular Question Notable Question Yearling Stellar Question Famous Question Popular Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 62532,493308,307584,Necromancer Yearling Excavator Popular Question Popular Question Nice Answer Census Yearling Nice Answer Custodian Revival Necromancer Census Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 62533,264388,586918,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 62534,17806,340780,NULL,NULL,NULL,0,NULL,NULL 62535,604550,1039043,NULL,NULL,NULL,0,NULL,NULL 62536,1057961,408598,Good Question Popular Question Famous Question Nice Answer Notable Question Guru Yearling Popular Question Popular Question Nice Question Caucus Yearling Inquisitive Notable Question Famous Question Famous Question Popular Question Favorite Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62537,1425089,795636,Yearling Nice Answer Caucus Yearling Caucus Constituent Custodian Census Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 62538,235662,1007427,Necromancer,NULL,NULL,0,NULL,NULL 62539,351537,302512,Revival Self-Learner Yearling,NULL,NULL,0,NULL,NULL 62540,62721,283299,NULL,NULL,NULL,0,NULL,NULL 62541,28490,1089248,NULL,NULL,NULL,0,NULL,NULL 62542,291007,1296238,Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 62543,2649341,391659,Popular Question Notable Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62544,174357,687828,NULL,NULL,NULL,0,NULL,NULL 62545,1139422,96264,Scholar Commentator Curious Self-Learner,NULL,NULL,0,NULL,NULL 62546,136909,387018,Nice Question Notable Question Yearling Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 62547,202636,720694,Nice Question Curious Benefactor Commentator Editor Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Promoter Supporter Teacher Custodian Custodian Necromancer Inquisitive Critic Famous Question Famous Question Famous Question Famous Question Famous Question Yearling Yearling Yearling Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62548,513188,1166461,Critic,NULL,NULL,0,NULL,NULL 62549,16042,454499,NULL,NULL,NULL,0,NULL,NULL 62550,3457974,303939,Nice Answer Nice Answer Notable Question Popular Question Notable Question Yearling Nice Answer Notable Question Popular Question Notable Question php Nice Answer Nice Question Nice Question Caucus Nice Question Constituent Famous Question Popular Question Yearling Famous Question Nice Answer Caucus Constituent Nice Answer Documentation User Nice Question Census Caucus Good Question Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62551,155718,303939,Nice Answer Nice Answer Notable Question Popular Question Notable Question Yearling Nice Answer Notable Question Popular Question Notable Question php Nice Answer Nice Question Nice Question Caucus Nice Question Constituent Famous Question Popular Question Yearling Famous Question Nice Answer Caucus Constituent Nice Answer Documentation User Nice Question Census Caucus Good Question Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62552,68697,764797,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 62553,522332,1278404,Editor Informed Autobiographer Teacher Critic Investor Curious Yearling Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 62554,68125,142655,Yearling Notable Question Necromancer Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 62555,36233,552840,Good Answer Nice Answer Nice Answer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 62556,165055,1016590,NULL,NULL,NULL,0,NULL,NULL 62557,2960,889576,Necromancer Nice Answer Yearling Announcer Caucus Notable Question Popular Question Guru Good Answer Yearling Popular Question Popular Question Guru Custodian Organizer Custodian Proofreader Informed Reviewer Yearling Steward c++ Announcer,NULL,NULL,0,NULL,NULL 62558,309348,932367,NULL,NULL,NULL,0,NULL,NULL 62559,550976,234255,Supporter Critic,NULL,NULL,0,NULL,NULL 62560,20784,647622,Good Answer Yearling,NULL,NULL,0,NULL,NULL 62561,303481,1356594,Editor Tumbleweed Student,NULL,NULL,0,NULL,NULL 62562,155920,822881,Custodian Citizen Patrol Yearling Famous Question,NULL,NULL,0,NULL,NULL 62563,202067,427390,NULL,NULL,NULL,0,NULL,NULL 62564,352469,656408,Nice Answer Enlightened Popular Question Yearling Notable Question Good Question Announcer Notable Question Nice Answer Famous Question Curious Yearling google-cloud-datastore Popular Question Popular Question Caucus Notable Question Nice Question Popular Question Nice Answer Yearling Popular Question Notable Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 62565,122687,656408,Nice Answer Enlightened Popular Question Yearling Notable Question Good Question Announcer Notable Question Nice Answer Famous Question Curious Yearling google-cloud-datastore Popular Question Popular Question Caucus Notable Question Nice Question Popular Question Nice Answer Yearling Popular Question Notable Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 62566,347721,1222553,NULL,NULL,NULL,0,NULL,NULL 62567,2849385,755142,NULL,NULL,NULL,0,NULL,NULL 62568,1333149,809594,NULL,NULL,NULL,0,NULL,NULL 62569,1356524,1239193,Popular Question,NULL,NULL,0,NULL,NULL 62570,288389,214270,Yearling Informed Supporter Necromancer Census Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 62571,152754,446278,Custodian Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 62572,377720,960368,Notable Question Notable Question Notable Question Yearling Revival Caucus Constituent Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62573,6911493,939809,NULL,NULL,NULL,0,NULL,NULL 62574,1533280,939809,NULL,NULL,NULL,0,NULL,NULL 62575,433652,939809,NULL,NULL,NULL,0,NULL,NULL 62576,1363812,586288,Popular Question,NULL,NULL,0,NULL,NULL 62577,1011277,32990,Nice Answer,NULL,NULL,0,NULL,NULL 62578,221532,1188479,Nice Question Yearling Nice Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 62579,474730,318975,NULL,NULL,NULL,0,NULL,NULL 62580,1714669,811042,NULL,NULL,NULL,0,NULL,NULL 62581,240672,763489,NULL,NULL,NULL,0,NULL,NULL 62582,677632,1302075,Notable Question Yearling Nice Question Famous Question Yearling Good Question Nice Question,NULL,NULL,0,NULL,NULL 62583,5477243,622788,NULL,NULL,NULL,0,NULL,NULL 62584,734366,862225,Yearling Necromancer Notable Question Nice Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 62585,108527,566218,NULL,NULL,NULL,0,NULL,NULL 62586,2426986,281694,NULL,NULL,NULL,0,NULL,NULL 62587,168345,281694,NULL,NULL,NULL,0,NULL,NULL 62588,84327,790579,NULL,NULL,NULL,0,NULL,NULL 62589,5940286,790579,NULL,NULL,NULL,0,NULL,NULL 62590,70382,259646,NULL,NULL,NULL,0,NULL,NULL 62591,1467269,509963,NULL,NULL,NULL,0,NULL,NULL 62592,217188,501083,NULL,NULL,NULL,0,NULL,NULL 62593,25209,1005071,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Custodian Custodian Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 62594,184862,416841,NULL,NULL,NULL,0,NULL,NULL 62595,73539,455202,NULL,NULL,NULL,0,NULL,NULL 62596,123804,568211,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 62597,1051846,1111316,NULL,NULL,NULL,0,NULL,NULL 62598,41064,982381,NULL,NULL,NULL,0,NULL,NULL 62599,845543,1056530,NULL,NULL,NULL,0,NULL,NULL 62600,166815,767724,Yearling Famous Question Popular Question Popular Question Caucus Famous Question Yearling,NULL,pThis has recently been discussed in the href https groups google com msg nodejs NmL7jdeuw0M yTqI05DRQrIJ rel noreferrer node js mailing list ppAccording to Isaac Schlueter who created npm pblockquote the key will never be used by npm for any purpose and is reserved for comments If you want to use multiple line comment you can use either an array or multiple keys blockquotepWhen using your usual tools npm yarn etc multiple keys will be removed This survives ppre code first line second line code prepThis will not survive ppre code this is the first line of comment this is the second line of the comment code pre in my experience the key and its value get wiped eventually is there way to have permanent comments,0,NULL,NULL 62601,14131,1114941,Popular Question Popular Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62602,170653,663028,Good Answer Yearling Popular Question Caucus Talkative Popular Question Yearling Notable Question Good Answer Yearling Caucus Guru Custodian Nice Answer Enlightened ruby Nice Answer git,NULL,NULL,0,NULL,NULL 62603,48484,585610,Notable Question,NULL,NULL,0,NULL,NULL 62604,251488,612424,NULL,NULL,NULL,0,NULL,NULL 62605,10868,567080,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 62606,843784,1088318,NULL,NULL,NULL,0,NULL,NULL 62607,470577,880621,NULL,NULL,NULL,0,NULL,NULL 62608,698143,1498363,Yearling Critic,NULL,NULL,0,NULL,NULL 62609,620583,1232864,NULL,NULL,NULL,0,NULL,NULL 62610,1351843,824777,NULL,NULL,NULL,0,NULL,NULL 62611,99267,219272,Nice Answer Yearling Nice Answer Announcer Good Answer Enthusiast Yearling Caucus Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 62612,314485,663440,NULL,NULL,NULL,0,NULL,NULL 62613,122562,241521,Nice Answer Announcer Yearling Nice Question Yearling Enthusiast Popular Question Notable Question Great Answer,NULL,pAdvisory locking has been used for ages and it can be used in bash scripts prefer simple codeflock code from codeutil linux ng code over codelockfile code from codeprocmail code And always remember about trap on exit sigspec codeEXIT code or code0 code trapping specific signals is superfluous in those scripts ppIn 2009 released my lockable script boilerplate originally available at my wiki page nowadays available as href https gist github com 571091 rel noreferrer gist Transforming that into one instance per user is trivial Using it you can also easily write scripts for other scenarios requiring some locking or synchronization ppHere is the mentioned boilerplate for your convenience ppre code bin bash SPDX License Identifier MIT Copyright 2009 Przemyslaw Pawelczyk lt przemoc com gt This script is licensed under the terms of the MIT license https opensource org licenses MIT Lockable script boilerplate HEADER LOCKFILE var lock basename LOCKFD 99 PRIVATE lock flock LOCKFD no more locking lock lock xn amp amp rm LOCKFILE prepare locking eval exec LOCKFD gt LOCKFILE trap no more locking EXIT ON START prepare locking PUBLICexlock now lock xn obtain an exclusive lock immediately or failexlock lock obtain an exclusive lockshlock lock obtain shared lockunlock lock drop lock BEGIN OF SCRIPT Simplest example is avoiding running multiple instances of script exlock now exit Remember Lock file is removed when one of the scripts exits and it is the only script holding the lock or lock is not acquired at all code pre Thank you for the info planned to change the license long time ago so finally did it Hopefully ll introduce some other changes mentioned here or on gist in the near future,0,NULL,NULL 62614,129290,657889,NULL,NULL,NULL,0,NULL,NULL 62615,98701,1004632,NULL,NULL,NULL,0,NULL,NULL 62616,90813,894060,NULL,NULL,NULL,0,NULL,NULL 62617,441362,311936,NULL,NULL,NULL,0,NULL,NULL 62618,34611,243275,NULL,NULL,NULL,0,NULL,NULL 62619,60794,129737,Necromancer,NULL,NULL,0,NULL,NULL 62620,769401,1036888,Famous Question Critic Nice Question Nice Question Popular Question Nice Answer Enlightened Yearling Popular Question Caucus Nice Answer Good Answer Good Question Caucus mongodb Documentation User Yearling Nice Answer Enlightened Good Answer Guru Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 62621,14435,130687,Supporter Yearling,NULL,NULL,0,NULL,NULL 62622,4295121,1016309,NULL,NULL,NULL,0,NULL,NULL 62623,72503,1016309,NULL,NULL,NULL,0,NULL,NULL 62624,712836,1340211,NULL,NULL,NULL,0,NULL,NULL 62625,915405,367190,NULL,NULL,NULL,0,NULL,NULL 62626,1073413,207869,Nice Question Popular Question Popular Question Yearling Famous Question Notable Question Inquisitive,NULL,NULL,0,NULL,NULL 62627,501460,386998,Revival Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 62628,535894,1223591,Suffrage Editor,NULL,NULL,0,NULL,NULL 62629,64631,937891,Notable Question Announcer Popular Question Famous Question Popular Question Announcer Yearling Good Question Notable Question Announcer Caucus Constituent Announcer Caucus Custodian Census Necromancer Caucus Notable Question,NULL,NULL,0,NULL,NULL 62630,99083,771940,Popular Question Supporter Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62631,1463971,903501,Nice Question Commentator Famous Question Notable Question Caucus Tumbleweed Yearling Enthusiast Organizer,NULL,NULL,0,NULL,NULL 62632,386320,37598,NULL,NULL,NULL,0,NULL,NULL 62633,8550045,822129,NULL,NULL,NULL,0,NULL,NULL 62634,61577,551700,NULL,NULL,NULL,0,NULL,NULL 62635,247821,862373,Nice Question,NULL,NULL,0,NULL,NULL 62636,414744,1078614,Yearling Announcer Tumbleweed Popular Question Caucus Revival Yearling Self-Learner Civic Duty Census Popular Question Announcer Popular Question Revival,NULL,NULL,0,NULL,NULL 62637,687713,319798,NULL,NULL,NULL,0,NULL,NULL 62638,623048,646141,Supporter Autobiographer Scholar Teacher Yearling Informed Critic Commentator Excavator Caucus Constituent,NULL,NULL,0,NULL,NULL 62639,178505,382521,Good Answer Popular Question Yearling javascript Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62640,98782,705638,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 62641,142140,892174,Caucus,NULL,NULL,0,NULL,NULL 62642,308853,576809,NULL,NULL,NULL,0,NULL,NULL 62643,4439,773209,Custodian Custodian Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 62644,4094087,1130161,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 62645,136532,122115,Yearling,NULL,NULL,0,NULL,NULL 62646,239475,260298,Yearling Famous Question Famous Question Custodian Good Question Nice Answer Notable Question Popular Question Caucus Yearling Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 62647,114913,321392,Yearling Yearling ruby-on-rails,NULL,NULL,0,NULL,NULL 62648,1191550,751482,Yearling Nice Answer Enlightened Custodian Caucus Constituent android Notable Question Yearling Caucus Nice Answer Enlightened Good Answer Custodian Census Caucus Yearling,NULL,NULL,0,NULL,NULL 62649,5883,860525,NULL,NULL,NULL,0,NULL,NULL 62650,125759,1261158,Tenacious Custodian Citizen Patrol Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 62651,74174,1418077,NULL,NULL,NULL,0,NULL,NULL 62652,725193,568296,NULL,NULL,NULL,0,NULL,NULL 62653,163791,277792,NULL,NULL,NULL,0,NULL,NULL 62654,635400,131963,Popular Question,NULL,NULL,0,NULL,NULL 62655,372525,782793,NULL,NULL,NULL,0,NULL,NULL 62656,29567,339125,NULL,NULL,NULL,0,NULL,NULL 62657,103016,408184,NULL,NULL,NULL,0,NULL,NULL 62658,899521,667769,Yearling Commentator Notable Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 62659,411349,213908,NULL,NULL,NULL,0,NULL,NULL 62660,208020,175519,NULL,NULL,NULL,0,NULL,NULL 62661,8727963,112534,Good Question Yearling Notable Question Custodian Custodian Custodian Organizer Popular Question Explainer Yearling Yearling Caucus Constituent Favorite Question Yearling Famous Question Documentation User Favorite Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 62662,12421,112534,Good Question Yearling Notable Question Custodian Custodian Custodian Organizer Popular Question Explainer Yearling Yearling Caucus Constituent Favorite Question Yearling Famous Question Documentation User Favorite Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 62663,442572,232569,Yearling,NULL,NULL,0,NULL,NULL 62664,1171961,560602,Popular Question Famous Question Critic Famous Question,NULL,NULL,0,NULL,NULL 62665,345305,403511,NULL,NULL,NULL,0,NULL,NULL 62666,1506594,564045,Yearling Popular Question Notable Question Popular Question Notable Question Nice Question Nice Question Famous Question Self-Learner Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Popular Question Yearling Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Popular Question Nice Question Yearling Notable Question Announcer Notable Question Good Question Notable Question Good Question Famous Question Popular Question Popular Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 62667,190767,240916,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62668,9817,1344900,NULL,NULL,NULL,0,NULL,NULL 62669,29490,1390642,NULL,NULL,NULL,0,NULL,NULL 62670,582017,1353621,Scholar Supporter Commentator Editor Notable Question Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 62671,420088,866427,NULL,NULL,NULL,0,NULL,NULL 62672,91175,375874,Notable Question Socratic Nice Answer Enlightened Good Answer Popular Question Notable Question Famous Question Yearling Notable Question Good Question Notable Question Good Answer Nice Question Good Question Good Answer Notable Question Notable Question Nice Question Nice Answer Famous Question Famous Question Notable Question Popular Question Good Question Famous Question Popular Question Yearling Good Question Famous Question Nice Answer Enlightened Good Question Notable Question Famous Question python Nice Answer Guru Great Answer Notable Question Good Question Popular Question Notable Question Good Question Notable Question Notable Question Good Question Good Answer Notable Question Famous Question Popular Question Nice Question Yearling Notable Question Popular Question Nice Question Notable Question Famous Question Good Question Announcer Notable Question Nice Answer Popular Question Famous Question Notable Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 62673,581898,1255205,Yearling,NULL,NULL,0,NULL,NULL 62674,50956,46842,Yearling Nice Question Curious Popular Question Great Question Yearling Popular Question Yearling Critic,NULL,NULL,0,NULL,NULL 62675,930389,1260264,NULL,NULL,NULL,0,NULL,NULL 62676,1143680,1137357,Supporter Teacher,NULL,NULL,0,NULL,NULL 62677,285735,1072384,NULL,NULL,NULL,0,NULL,NULL 62678,267068,625629,NULL,NULL,NULL,0,NULL,NULL 62679,367362,469946,Necromancer Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 62680,1133653,638340,Commentator Tumbleweed Autobiographer,NULL,NULL,0,NULL,NULL 62681,298676,934585,Favorite Question Yearling Great Question Commentator Caucus Yearling Tumbleweed Teacher Yearling Necromancer Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 62682,2128530,934585,Favorite Question Yearling Great Question Commentator Caucus Yearling Tumbleweed Teacher Yearling Necromancer Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 62683,690,6373,NULL,NULL,NULL,0,NULL,NULL 62684,682095,744354,NULL,NULL,NULL,0,NULL,NULL 62685,176187,383393,Notable Question Famous Question Famous Question Famous Question Famous Question Popular Question Famous Question Nice Question Notable Question Nice Answer Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Notable Question Yearling Popular Question Notable Question Nice Question Notable Question Nice Question Nice Question Good Question Notable Question Famous Question Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62686,725070,507408,NULL,NULL,NULL,0,NULL,NULL 62687,261652,495183,NULL,NULL,NULL,0,NULL,NULL 62688,104152,209697,NULL,NULL,NULL,0,NULL,NULL 62689,51100,623359,Yearling,NULL,NULL,0,NULL,NULL 62690,423194,743029,Notable Question Yearling Popular Question Good Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 62691,840703,376280,Nice Question,NULL,NULL,0,NULL,NULL 62692,83798,457715,Yearling Critic Revival Yearling Caucus Revival Necromancer Nice Answer Yearling Census Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62693,14927,1513241,NULL,NULL,NULL,0,NULL,NULL 62694,598886,350890,Nice Answer Enlightened Nice Answer Enlightened Notable Question postgresql Great Answer Guru Good Answer Yearling java Popular Question Nice Answer Guru Caucus Constituent Nice Answer Good Answer Popular Question Nice Answer Good Answer Nice Question Great Answer Notable Question Yearling Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Good Answer Good Answer Good Question Famous Question Good Answer Notable Question Nice Answer Yearling Custodian Nice Answer Custodian,NULL,NULL,1,Why does django ignore HTTP FORWARDED PROTO from the wire but not in tests python django https django rest framework pWhy does django ignore the HTTP FORWARDED PROTO if it comes through the wire ppI added to the settings xml the following config ppre code make sure we know when we are secure when we are behind proxySECURE PROXY SSL HEADER HTTP FORWARDED PROTO https code prepI made test to test that if ppre codedef testHttpSupport self url reverse configuration list response self client get url HTTP FORWARDED PROTO https cfg response data cfg url cfg url self assertTrue cfg url startswith https code prepthis works fine The url of the return object starts with https pphowever if try ppre codecurl HTTP FORWARDED PROTO https http localhost 8000 api users gt GET api users HTTP gt Host localhost 8000 gt User Agent curl 51 gt Accept gt HTTP FORWARDED PROTO https gt HTTP assume close after body lt HTTP 200 OK lt Date Mon 03 Jul 2017 16 22 04 GMT lt Server WSGIServer CPython lt Content Type application json lt Allow GET POST OPTIONS lt Vary Accept Cookie lt Frame Options SAMEORIGIN lt Content Length 197 lt Curl http done called premature Closing connection url http localhost 8000 api users code prepHow come it does not return https based urls like in my unit test,NULL 62695,551881,184254,NULL,NULL,NULL,0,NULL,NULL 62696,167059,439559,Enthusiast,NULL,NULL,0,NULL,NULL 62697,201073,857840,NULL,NULL,NULL,0,NULL,NULL 62698,199826,1128839,NULL,NULL,NULL,0,NULL,NULL 62699,52635,312464,Revival,NULL,NULL,0,NULL,NULL 62700,74522,114833,Yearling Caucus Yearling Announcer Caucus Yearling Announcer Notable Question Guru,NULL,NULL,0,NULL,NULL 62701,2682975,783051,Student Notable Question Citizen Patrol Announcer Yearling Announcer Nice Answer Revival Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 62702,1067196,520314,NULL,NULL,NULL,0,NULL,NULL 62703,32420,927103,NULL,NULL,NULL,0,NULL,NULL 62704,299039,1325064,NULL,NULL,NULL,0,NULL,NULL 62705,101711,405906,Yearling Nice Answer Good Answer Popular Question Nice Answer Yearling Popular Question Nice Answer Enlightened Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 62706,118857,824417,NULL,NULL,NULL,0,NULL,NULL 62707,19295,744436,Self-Learner Popular Question Notable Question Famous Question Good Question Popular Question Notable Question Famous Question Yearling Nice Question Nice Question Necromancer Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Answer Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Favorite Question Popular Question Nice Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 62708,1045542,243899,Yearling Yearling Announcer Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 62709,735748,1302234,Yearling,NULL,NULL,0,NULL,NULL 62710,289349,436014,Popular Question Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Answer Famous Question Yearling Announcer Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62711,633870,901014,NULL,NULL,NULL,0,NULL,NULL 62712,6987,599803,NULL,NULL,NULL,0,NULL,NULL 62713,321362,91196,Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62714,1998910,1308890,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 62715,470744,1034080,Announcer Nice Question Notable Question Yearling Good Answer Famous Question Nice Answer Enlightened Yearling Famous Question Nice Question Yearling,NULL,,0,, 62716,46391,253098,Yearling Nice Question Popular Question Nice Answer Necromancer Good Answer Popular Question Necromancer Necromancer Popular Question Nice Answer Necromancer Notable Question Caucus Yearling Notable Question Good Answer Nice Answer Nice Question Good Question Revival Nice Answer Popular Question Announcer Revival Popular Question Yearling Famous Question Popular Question Popular Question Announcer Popular Question Popular Question Popular Question Announcer Popular Question Notable Question Necromancer Necromancer Popular Question Nice Question Famous Question,NULL,Extending console log without affecting log line javascript google chrome pI would like to extend the console log function to add additional information to its output but dont want to affect the script name line number information generated by the browser in the console window See how if create my own implementation get useless trace information should want to locate that region of code they all link to the log implementation not the actual script that caused the log message pp img src https stack imgur com 36dju png alt enter image description here ppBasically my application is very pluggable infrastructure were any log output may occur within any number of frames As such want every log message to include special unique identifier at the beginning of the log message ppI have tried replacing the console log method with my own but chrome complains with codeUncaught TypeError Illegal invocation code ppthis is how override it ppre codevar orig console log console log function message orig window top root window name message code prepAny ideas pp EDIT Note After fixing the illegal invocation problem it seems the filename linenumber is still polluted by the override pp EDIT It looks like the general answer is NO despite some confusing goose chases the desired functionality is NOT achievable in the current versions of browsers As of today your last EDIT is finally not valid See my answer http stackoverflow com 41328175 253098,0,NULL,NULL 62717,3243443,253098,Yearling Nice Question Popular Question Nice Answer Necromancer Good Answer Popular Question Necromancer Necromancer Popular Question Nice Answer Necromancer Notable Question Caucus Yearling Notable Question Good Answer Nice Answer Nice Question Good Question Revival Nice Answer Popular Question Announcer Revival Popular Question Yearling Famous Question Popular Question Popular Question Announcer Popular Question Popular Question Popular Question Announcer Popular Question Notable Question Necromancer Necromancer Popular Question Nice Question Famous Question,NULL,Extending console log without affecting log line javascript google chrome pI would like to extend the console log function to add additional information to its output but dont want to affect the script name line number information generated by the browser in the console window See how if create my own implementation get useless trace information should want to locate that region of code they all link to the log implementation not the actual script that caused the log message pp img src https stack imgur com 36dju png alt enter image description here ppBasically my application is very pluggable infrastructure were any log output may occur within any number of frames As such want every log message to include special unique identifier at the beginning of the log message ppI have tried replacing the console log method with my own but chrome complains with codeUncaught TypeError Illegal invocation code ppthis is how override it ppre codevar orig console log console log function message orig window top root window name message code prepAny ideas pp EDIT Note After fixing the illegal invocation problem it seems the filename linenumber is still polluted by the override pp EDIT It looks like the general answer is NO despite some confusing goose chases the desired functionality is NOT achievable in the current versions of browsers As of today your last EDIT is finally not valid See my answer http stackoverflow com 41328175 253098,0,NULL,NULL 62718,207498,188694,Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 62719,371262,1155451,NULL,NULL,NULL,0,NULL,NULL 62720,333,187362,Yearling Popular Question Nice Answer Great Answer Yearling Nice Answer Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 62721,65510,428550,NULL,NULL,NULL,0,NULL,NULL 62722,181381,214365,Popular Question Notable Question Good Question Popular Question Popular Question Popular Question Custodian Popular Question Great Question Notable Question Popular Question Yearling Great Question Notable Question Famous Question Famous Question Socratic Nice Question Popular Question Famous Question Nice Question Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62723,824224,603387,Yearling Notable Question Tumbleweed Popular Question Self-Learner Caucus Notable Question Announcer Notable Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 62724,269275,371530,Revival Popular Question Popular Question Notable Question Yearling Documentation Pioneer Quorum Steward Caucus Constituent Custodian Popular Question Census Inquisitive Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Nice Answer Enlightened Self-Learner Notable Question Documentation User Census Nice Question Caucus Constituent Popular Question Yearling Revival ruby-on-rails Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 62725,119215,319855,Announcer Announcer,NULL,NULL,0,NULL,NULL 62726,137140,135133,Good Answer Guru Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Yearling Announcer Cleanup Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Census Guru Nice Answer Custodian Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62727,50209,59020,Good Question Critic,NULL,NULL,0,NULL,NULL 62728,551927,171155,NULL,NULL,NULL,0,NULL,NULL 62729,610433,1111670,Notable Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 62730,416029,733717,Good Answer Populist,NULL,NULL,0,NULL,NULL 62731,229510,734776,Yearling Notable Question Nice Question Popular Question Excavator Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Good Question Popular Question Popular Question Notable Question Self-Learner Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Notable Question Notable Question Notable Question Notable Question Civic Duty Notable Question Popular Question Critic Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Socratic Popular Question Nice Question Notable Question Popular Question Notable Question Nice Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 62732,26334,405012,NULL,NULL,NULL,0,NULL,NULL 62733,467964,194258,NULL,NULL,NULL,0,NULL,NULL 62734,332232,985809,NULL,NULL,NULL,0,NULL,NULL 62735,578866,691169,Excavator Popular Question Yearling Notable Question Popular Question Revival Nice Question Yearling Notable Question Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 62736,143593,1373700,Popular Question,NULL,NULL,0,NULL,NULL 62737,261707,1210001,NULL,NULL,NULL,0,NULL,NULL 62738,1901699,300180,Necromancer,NULL,NULL,0,NULL,NULL 62739,916716,300180,Necromancer,NULL,NULL,0,NULL,NULL 62740,217010,764138,NULL,NULL,NULL,0,NULL,NULL 62741,62927,57719,Yearling Guru Good Answer Nice Question Nice Answer Enlightened Great Answer Good Answer java Yearling Nice Answer Nice Answer Nice Answer Critic Good Answer Documentation User Custodian Revival Good Answer Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 62742,1216955,1030573,Nice Question Yearling,NULL,NULL,0,NULL,NULL 62743,251513,543628,Notable Question,NULL,NULL,0,NULL,NULL 62744,189168,589420,NULL,NULL,NULL,0,NULL,NULL 62745,201368,693799,Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Necromancer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 62746,209159,645386,Yearling Caucus Famous Question Yearling Caucus Constituent Populist Great Answer Custodian Census Yearling Caucus Popular Question Custodian Custodian Popular Question Custodian Popular Question Citizen Patrol Nice Question,NULL,NULL,0,NULL,NULL 62747,89603,1096905,Nice Answer Steward Excavator Deputy Unsung Hero Nice Answer Investor Good Answer Necromancer Documentation Beta Nice Answer Enlightened Caucus Curious Constituent Yearling Nice Answer Proofreader Caucus Custodian Custodian Reviewer Documentation User Yearling Steward Census Guru Caucus Constituent Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62748,10379,472120,NULL,NULL,NULL,0,NULL,NULL 62749,237235,643109,Yearling Announcer Good Answer Informed Yearling Popular Question Caucus Yearling Nice Answer Enlightened ios,NULL,NULL,0,NULL,NULL 62750,313230,277413,Popular Question Famous Question Popular Question Famous Question Organizer Yearling Notable Question Notable Question Notable Question Nice Question Caucus Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Yearling Caucus Popular Question Notable Question Notable Question Notable Question Notable Question Favorite Question Popular Question Investor Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62751,127598,873331,Critic Necromancer Revival Caucus Caucus,NULL,NULL,0,NULL,NULL 62752,85260,534255,NULL,NULL,NULL,0,NULL,NULL 62753,131726,1377155,NULL,NULL,NULL,0,NULL,NULL 62754,55177,1097952,Yearling Notable Question Nice Question Popular Question Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62755,8829,1225068,Yearling Good Answer Nice Answer Yearling Necromancer Nice Answer Enlightened Caucus Nice Answer Guru python Yearling,NULL,NULL,0,NULL,NULL 62756,8473709,968512,NULL,NULL,NULL,0,NULL,NULL 62757,933261,968512,NULL,NULL,NULL,0,NULL,NULL 62758,202277,148631,Commentator Enthusiast Announcer Good Answer,NULL,NULL,0,NULL,NULL 62759,1519258,1199171,NULL,NULL,NULL,0,NULL,NULL 62760,44426,930038,Tenacious Necromancer Nice Answer Yearling Necromancer Nice Answer Nice Answer Yearling Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 62761,787579,934740,Notable Question Yearling Notable Question Great Answer Popular Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 62762,153587,160972,Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 62763,1579496,443889,Famous Question Nice Question Nice Question Yearling Famous Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62764,15403,764495,Commentator Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62765,1206561,183692,Notable Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Good Question Notable Question Good Question Famous Question Famous Question Notable Question Notable Question Favorite Question Nice Question Famous Question Good Question Yearling Famous Question Nice Question Revival Notable Question Famous Question Favorite Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 62766,484590,350837,Yearling Good Answer,NULL,NULL,0,NULL,NULL 62767,273969,1395702,NULL,NULL,NULL,0,NULL,NULL 62768,254120,1215006,NULL,NULL,NULL,0,NULL,NULL 62769,177985,112870,Yearling Great Answer Excavator Yearling Custodian Custodian Custodian Documentation User Yearling,NULL,NULL,0,NULL,NULL 62770,158335,1248695,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62771,79600,440813,NULL,NULL,NULL,0,NULL,NULL 62772,97911,936028,NULL,NULL,NULL,0,NULL,NULL 62773,23998,6068,Good Question Good Question Favorite Question Famous Question Popular Question Favorite Question Favorite Question Notable Question Great Question Nice Question Good Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Favorite Question Good Question Popular Question Notable Question Good Question Great Question Popular Question Nice Question Nice Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Good Question Good Question Popular Question Popular Question Good Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Famous Question Notable Question Famous Question Famous Question Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Favorite Question Notable Question Notable Question Famous Question Notable Question Notable Question Socratic Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Good Question Famous Question Great Question Nice Question Popular Question Nice Question Notable Question Famous Question Nice Question Yearling Good Question Nice Answer Nice Answer Nice Answer Enlightened Nice Question Popular Question Popular Question Nice Question Nice Question Famous Question Favorite Question Popular Question Notable Question Popular Question Famous Question Popular Question Good Question Favorite Question Nice Question Nice Question Notable Question Nice Question Notable Question Nice Question Good Answer Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Nice Question Good Question Nice Question Nice Question Nice Question Good Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Answer Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Nice Question Good Question Popular Question Notable Question Yearling Popular Question Famous Question Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question,NULL,getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties not using the class of the class so it should should be using the correct class loader getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties sort of see the module system might be into play so going to read up on that but not using getSystemResourceAsAStream nor the system class loader getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties in the root of the jar getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties also null getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties added that to the question Yes application properties is there Avoid reporting Broken Pipe errors to Sentry in Spring Boot application java spring spring boot sentry pI have Spring Boot application that uses Sentry for exception tracking and getting some errors that look like this ppre codeClientAbortExceptionorg apache catalina connector OutputBuffer in realWriteByteserrorjava io IOException Broken pipe code prepMy understanding is that it just networking error and thus should generally ignore them What want to do is report all other codeIOExceptions code and log broken pipes to Librato so can keep an eye on how many getting spike might mean there an issue with the client which is also developed by me in Java ppI came up with this ppre codee public class RestExceptionHandler ClientAbortException class HttpStatus SERVICE UNAVAILABLE public ResponseEntity lt gt handleClientAbortException ClientAbortException ex HttpServletRequest request Throwable rootCause ex while ex getCause null rootCause ex getCause if rootCause getMessage contains Broken pipe logger info count broken pipe else Sentry getStoredClient sendException ex return null code prepIs that an acceptable way to deal with this problem ppI have Sentry configured following the documentation this way ppre codeblic class FactoryBeanAppConfig public HandlerExceptionResolver sentryExceptionResolver return new SentryExceptionResolver public ServletContextInitializer sentryServletContextInitializer return new SentryServletContextInitializer code pre thank you for the comment added that information to the question Avoid reporting Broken Pipe errors to Sentry in Spring Boot application java spring spring boot sentry pI have Spring Boot application that uses Sentry for exception tracking and getting some errors that look like this ppre codeClientAbortExceptionorg apache catalina connector OutputBuffer in realWriteByteserrorjava io IOException Broken pipe code prepMy understanding is that it just networking error and thus should generally ignore them What want to do is report all other codeIOExceptions code and log broken pipes to Librato so can keep an eye on how many getting spike might mean there an issue with the client which is also developed by me in Java ppI came up with this ppre codee public class RestExceptionHandler ClientAbortException class HttpStatus SERVICE UNAVAILABLE public ResponseEntity lt gt handleClientAbortException ClientAbortException ex HttpServletRequest request Throwable rootCause ex while ex getCause null rootCause ex getCause if rootCause getMessage contains Broken pipe logger info count broken pipe else Sentry getStoredClient sendException ex return null code prepIs that an acceptable way to deal with this problem ppI have Sentry configured following the documentation this way ppre codeblic class FactoryBeanAppConfig public HandlerExceptionResolver sentryExceptionResolver return new SentryExceptionResolver public ServletContextInitializer sentryServletContextInitializer return new SentryServletContextInitializer code pre don know because it not easy to test,1,getResourceAsStream returning null in Java 10 java java 10 pI have an application that was working with Java 162 and in the process of upgrading it to Java 10 One of the issues having is that ppre codeappProperties getClass getResourceAsStream application properties code prepstarted returning null in Java 10 Any ideas why codeappProperties code is defined like this ppre codeappProperties new Properties code prepand this happens in static method in case that relevant ppThe file is present in codesrc main resources application properties code This happens whether running in from IntelliJ or from the jar produced by Maven ppI tried adding ppre code lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt resource gt lt resources gt code prepto my codepom xml code but that had no effect ppPrinting the class path with ppre codeSystem getProperty java class path code prepyields as the first entry ppre codeC Users pupeno Documents Dashman code dashman target classes code prepwhich contains application properties Avoid reporting Broken Pipe errors to Sentry in Spring Boot application java spring spring boot sentry pI have Spring Boot application that uses Sentry for exception tracking and getting some errors that look like this ppre codeClientAbortExceptionorg apache catalina connector OutputBuffer in realWriteByteserrorjava io IOException Broken pipe code prepMy understanding is that it just networking error and thus should generally ignore them What want to do is report all other codeIOExceptions code and log broken pipes to Librato so can keep an eye on how many getting spike might mean there an issue with the client which is also developed by me in Java ppI came up with this ppre codee public class RestExceptionHandler ClientAbortException class HttpStatus SERVICE UNAVAILABLE public ResponseEntity lt gt handleClientAbortException ClientAbortException ex HttpServletRequest request Throwable rootCause ex while ex getCause null rootCause ex getCause if rootCause getMessage contains Broken pipe logger info count broken pipe else Sentry getStoredClient sendException ex return null code prepIs that an acceptable way to deal with this problem ppI have Sentry configured following the documentation this way ppre codeblic class FactoryBeanAppConfig public HandlerExceptionResolver sentryExceptionResolver return new SentryExceptionResolver public ServletContextInitializer sentryServletContextInitializer return new SentryServletContextInitializer code pre,NULL 62774,92971,139081,NULL,NULL,NULL,0,NULL,NULL 62775,682682,990777,NULL,NULL,NULL,0,NULL,NULL 62776,197265,555066,Famous Question,NULL,NULL,0,NULL,NULL 62777,460124,987050,NULL,NULL,NULL,0,NULL,NULL 62778,408107,376873,javascript Guru Nice Answer Great Answer Nice Answer Enlightened Good Answer Guru Guru Yearling Good Answer Nice Answer Famous Question Notable Question Guru Nice Answer Nice Answer Great Answer Good Answer Nice Answer Yearling Nice Answer Guru Good Answer Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 62779,241797,648866,Notable Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Favorite Question Nice Answer Enlightened Yearling Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Good Question Good Question Nice Question Good Question Yearling Famous Question Famous Question Good Question Popular Question Great Question,NULL,,0,, 62780,6339443,648866,Notable Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Famous Question Favorite Question Nice Answer Enlightened Yearling Famous Question Popular Question Popular Question Popular Question Nice Question Notable Question Good Question Good Question Nice Question Good Question Yearling Famous Question Famous Question Good Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 62781,915270,1246519,Supporter Scholar Student Commentator Popular Question Necromancer Popular Question Notable Question Promoter Citizen Patrol Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 62782,421166,1382256,NULL,NULL,NULL,0,NULL,NULL 62783,2126041,680675,Notable Question Nice Question Nice Question Popular Question Promoter Benefactor Famous Question,NULL,NULL,0,NULL,NULL 62784,201400,1427758,Popular Question Nice Answer Notable Question Popular Question Notable Question Popular Question Yearling Proofreader Tag Editor Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Popular Question Necromancer Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Popular Question Revival Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Caucus Popular Question Famous Question Nice Question Nice Question Taxonomist Popular Question Popular Question Yearling Nice Question Popular Question Good Answer Notable Question Popular Question Custodian Popular Question Notable Question Notable Question Notable Question Notable Question,NULL,pI had the same problem in my Test projects installed the latest EF6 bits via NuGet and everytime invoke something EF related got pblockquote pThe Entity Framework provider type System Data Entity SqlServer SqlProviderServices EntityFramework SqlServer for the System Data SqlClient ADO NET provider could not be loaded Make sure the provider assembly is available to the running application See href http go microsoft com fwlink LinkId 260882 rel noreferrer http go microsoft com fwlink LinkId 260882 for more information blockquotepMy workaround placed this method inside my test project ppre codepublic void FixEfProviderServicesProblem The Entity Framework provider type System Data Entity SqlServer SqlProviderServices EntityFramework SqlServer for the System Data SqlClient ADO NET provider could not be loaded Make sure the provider assembly is available to the running application See http go microsoft com fwlink LinkId 260882 for more information var instance System Data Entity SqlServer SqlProviderServices Instance code prepThis method is never been called but think the compiler will remove all unnecessary assemblies and without using the EntityFramework SqlServer stuff the test fails ppAnyways Works on my machine ppNote href https stackoverflow com 29743758 52277 Instead of adding the method to test project you can ensure static reference to SqlProviderServices from your Model entity project Exactly where should place this code,0,NULL,NULL 62785,918865,1392670,NULL,NULL,NULL,0,NULL,NULL 62786,11314770,690573,Nice Question Excavator Notable Question Citizen Patrol Popular Question Popular Question Famous Question Notable Question Notable Question Caucus Yearling Good Answer Civic Duty Notable Question Popular Question Popular Question Yearling Notable Question Caucus Documentation User Notable Question Good Question Popular Question Notable Question Popular Question Caucus Yearling Popular Question Nice Question Famous Question Famous Question Notable Question Outspoken Notable Question,NULL,NULL,0,NULL,NULL 62787,796372,690573,Nice Question Excavator Notable Question Citizen Patrol Popular Question Popular Question Famous Question Notable Question Notable Question Caucus Yearling Good Answer Civic Duty Notable Question Popular Question Popular Question Yearling Notable Question Caucus Documentation User Notable Question Good Question Popular Question Notable Question Popular Question Caucus Yearling Popular Question Nice Question Famous Question Famous Question Notable Question Outspoken Notable Question,NULL,NULL,0,NULL,NULL 62788,301384,100208,Notable Question Notable Question Favorite Question Nice Question Famous Question Popular Question Nice Question Famous Question Nice Question Popular Question Yearling Famous Question Good Question Notable Question Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Good Answer Nice Question Notable Question Popular Question Nice Question Nice Question Notable Question Famous Question Famous Question Nice Question Nice Question Nice Question Good Question Yearling Notable Question Popular Question Nice Question Great Question Good Question Nice Answer Popular Question Notable Question Famous Question Favorite Question Nice Answer Famous Question Notable Question Notable Question Popular Question Nice Question Famous Question Census Famous Question Nice Question Custodian Famous Question Nice Question Yearling Great Answer Famous Question Famous Question Nice Question Good Question Notable Question Nice Question Popular Question Famous Question Notable Question,NULL,Construct minimum spanning tree covering specific subset of the vertices algorithm tree graph theory graph algorithm pI have an undirected positive edge weight graph em em for which want minimum spanning tree covering subset emk em of vertices emV em the Steiner tree problem ppI not limiting the size of the spanning tree to emk em vertices rather know exactly emwhich em emk em vertices must be included in the MST ppStarting from the entire MST could pare down edges nodes until get the smallest MST that contains all emk em ppI can use Prim algorithm to get the entire MST and start deleting edges nodes while the MST of subset is not destroyed alternatively can use Floyd Warshall to get all pairs shortest paths and somehow union the paths Are there better ways to approach this done haven looked at this in while but do you know if any of the other answers are correct,0,NULL,NULL 62789,83910,439281,NULL,NULL,NULL,0,NULL,NULL 62790,287600,563976,NULL,NULL,NULL,0,NULL,NULL 62791,804322,120668,NULL,NULL,NULL,0,NULL,NULL 62792,990369,215309,NULL,NULL,NULL,0,NULL,NULL 62793,1513077,1280259,Necromancer Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62794,2404731,1431971,Yearling Nice Answer Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 62795,1109911,1431971,Yearling Nice Answer Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 62796,89638,704997,Cleanup Custodian,NULL,NULL,0,NULL,NULL 62797,2539734,1474865,NULL,NULL,NULL,0,NULL,NULL 62798,494875,1215526,Notable Question,NULL,NULL,0,NULL,NULL 62799,392003,480686,Revival Enthusiast,NULL,NULL,0,NULL,NULL 62800,458674,997742,NULL,NULL,NULL,0,NULL,NULL 62801,2286478,997742,NULL,NULL,NULL,0,NULL,NULL 62802,637348,1194375,NULL,NULL,NULL,0,NULL,NULL 62803,845421,613797,NULL,NULL,NULL,0,NULL,NULL 62804,260585,320537,Commentator Announcer,NULL,NULL,0,NULL,NULL 62805,110186,1056278,NULL,NULL,NULL,0,NULL,NULL 62806,1407873,940077,NULL,NULL,NULL,0,NULL,NULL 62807,490376,992615,Famous Question Caucus Tumbleweed Yearling Popular Question Popular Question Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 62808,6883,1036439,Enthusiast Yearling,NULL,NULL,0,NULL,NULL 62809,99561,1088114,NULL,NULL,NULL,0,NULL,NULL 62810,53120,682658,NULL,NULL,NULL,0,NULL,NULL 62811,704368,1094040,NULL,NULL,NULL,0,NULL,NULL 62812,1044414,1438634,NULL,NULL,NULL,0,NULL,NULL 62813,116665,63541,Nice Answer,NULL,NULL,0,NULL,NULL 62814,274054,879061,NULL,NULL,NULL,0,NULL,NULL 62815,128306,834231,Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 62816,5452,1457217,Good Answer Yearling,NULL,NULL,0,NULL,NULL 62817,1177731,884114,NULL,NULL,NULL,0,NULL,NULL 62818,1287004,680795,Famous Question Famous Question Teacher Curious,NULL,NULL,0,NULL,NULL 62819,916890,1180224,NULL,NULL,NULL,0,NULL,NULL 62820,352304,466333,NULL,NULL,NULL,0,NULL,NULL 62821,83520,437282,Good Answer Nice Answer Enlightened Yearling Guru Yearling Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62822,277462,419448,Notable Question Notable Question Yearling Popular Question Nice Answer Notable Question Yearling Revival Popular Question Popular Question Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62823,11126,629263,Necromancer Yearling Caucus Yearling Unsung Hero Yearling Necromancer Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62824,265366,446261,Guru Necromancer Nice Answer Guru Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer Nice Question Nice Answer Yearling Necromancer Popular Question Good Answer Nice Question Nice Answer Enlightened Nice Answer Yearling Nice Answer,NULL,pWhether file can be read depends on number of factors do you have permissions whether the hard disk is broken would probably have gone the same route as you did ppHowever you do have to keep in mind that the information you get from this method is just snapshot If immediately after you call this method someone changes the permissions on the file accessing the file later in your code will still fail You should not depend on the result of this method ppJust suggestion the following code does the same but is bit more concise ppre codetry File Open this DataSourceFileName FileMode Open FileAccess Read Dispose return true catch IOException return false code prepSince you re not really using the stream you don have to hold on reference to it Instead you can just immediately dispose of the stream by calling dispose on the result of codeFile Open code pp strongEDIT strong ppSee href https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 rel nofollow noreferrer https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 for an explanation on why ve put the codeDispose code at the end of the codeFile Open code instead of using the codeusing code statement Nope the code actually is correct See https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 for an explanation why You re right in that you could use using but the above code does exactly the same and is shorter The reason the code can create resource leak is that when an exception occurs in File Open you won be able to access the return value anyway because if method throws it doesn return anything So it becomes the responsibility of the File Open method to clean up when it throws pWhether file can be read depends on number of factors do you have permissions whether the hard disk is broken would probably have gone the same route as you did ppHowever you do have to keep in mind that the information you get from this method is just snapshot If immediately after you call this method someone changes the permissions on the file accessing the file later in your code will still fail You should not depend on the result of this method ppJust suggestion the following code does the same but is bit more concise ppre codetry File Open this DataSourceFileName FileMode Open FileAccess Read Dispose return true catch IOException return false code prepSince you re not really using the stream you don have to hold on reference to it Instead you can just immediately dispose of the stream by calling dispose on the result of codeFile Open code pp strongEDIT strong ppSee href https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 rel nofollow noreferrer https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 for an explanation on why ve put the codeDispose code at the end of the codeFile Open code instead of using the codeusing code statement Well that what was trying to get at in my comment If the user doesn have permission File Open will throw an exception If any method throws an exception it doesn return anything so there is nothing to call Dispose on If you have method like public IDisposable Method throw new Exception Hi return something the return will never be executed and nothing will be returned Please have look at the link about using in the Windows documentation That page explains it better than can pWhether file can be read depends on number of factors do you have permissions whether the hard disk is broken would probably have gone the same route as you did ppHowever you do have to keep in mind that the information you get from this method is just snapshot If immediately after you call this method someone changes the permissions on the file accessing the file later in your code will still fail You should not depend on the result of this method ppJust suggestion the following code does the same but is bit more concise ppre codetry File Open this DataSourceFileName FileMode Open FileAccess Read Dispose return true catch IOException return false code prepSince you re not really using the stream you don have to hold on reference to it Instead you can just immediately dispose of the stream by calling dispose on the result of codeFile Open code pp strongEDIT strong ppSee href https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 rel nofollow noreferrer https gist github com pvginkel 56658191c6bf7dac23b3893fa59a35e8 for an explanation on why ve put the codeDispose code at the end of the codeFile Open code instead of using the codeusing code statement No problem Glad was able to clear this up,0,NULL,NULL 62825,81932,377456,Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Yearling Caucus Custodian Notable Question Good Question Yearling Caucus Constituent Documentation User Notable Question Great Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 62826,354930,855647,Organizer,NULL,NULL,0,NULL,NULL 62827,73458,1008818,NULL,NULL,NULL,0,NULL,NULL 62828,263619,929510,Yearling Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 62829,32830,294096,Popular Question Notable Question Yearling Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 62830,483192,1129935,NULL,NULL,NULL,0,NULL,NULL 62831,41332,975373,Commentator Popular Question Notable Question Teacher Nice Answer Popular Question Yearling Good Answer Notable Question Yearling Custodian Popular Question Curious Famous Question,NULL,NULL,0,NULL,NULL 62832,1568487,1090683,Supporter,NULL,NULL,0,NULL,NULL 62833,1705065,854506,Informed Student Supporter Scholar Nice Question Census,NULL,NULL,0,NULL,NULL 62834,183786,1191657,NULL,NULL,NULL,0,NULL,NULL 62835,817102,1232421,NULL,NULL,NULL,0,NULL,NULL 62836,151396,388657,Yearling Popular Question,NULL,NULL,0,NULL,NULL 62837,85990,344123,Census Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62838,240625,1159292,NULL,NULL,NULL,0,NULL,NULL 62839,725971,85,Nice Question Popular Question Famous Question Great Question Good Question Yearling Nice Answer Favorite Question Custodian Nice Question Favorite Question Great Question Good Question Notable Question Notable Question Good Question Nice Question Popular Question Notable Question Famous Question Famous Question Stellar Question Yearling Famous Question Popular Question Notable Question Famous Question Stellar Question Popular Question Famous Question Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 62840,417216,279943,NULL,NULL,NULL,0,NULL,NULL 62841,780736,1476726,NULL,NULL,NULL,0,NULL,NULL 62842,164859,291395,NULL,NULL,NULL,0,NULL,NULL 62843,804063,401339,Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 62844,567109,1231925,Popular Question Yearling Custodian Nice Question Popular Question Yearling Popular Question Custodian Documentation User Notable Question Yearling Famous Question Custodian Organizer Custodian Popular Question,NULL,NULL,0,NULL,NULL 62845,1372679,1178471,NULL,NULL,NULL,0,NULL,NULL 62846,14838,18769,Famous Question,NULL,NULL,0,NULL,NULL 62847,141235,700650,Popular Question Yearling Caucus Popular Question c++ Popular Question Caucus Yearling Nice Question Caucus Notable Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 62848,165814,710633,Popular Question Yearling Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 62849,38649,703646,Yearling Yearling Announcer Yearling Necromancer,NULL,NULL,0,NULL,NULL 62850,8802,1512534,NULL,NULL,NULL,0,NULL,NULL 62851,22915,19435,Great Answer Yearling Nice Answer Nice Answer Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 62852,79259,1004737,Tumbleweed Yearling Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62853,52638,93270,Good Question Organizer Yearling Tag Editor Good Question Famous Question Great Question Custodian Announcer Famous Question Announcer Yearling Taxonomist Yearling Great Question,NULL,NULL,0,NULL,NULL 62854,26719,237202,NULL,NULL,NULL,0,NULL,NULL 62855,1709914,312053,NULL,NULL,NULL,0,NULL,NULL 62856,511919,234644,Popular Question Nice Question Popular Question Famous Question Famous Question Caucus Yearling Cleanup Custodian Custodian Custodian Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 62857,167577,1123762,Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 62858,3703866,867975,Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62859,526498,867975,Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62860,420402,1052088,NULL,NULL,NULL,0,NULL,NULL 62861,986567,537495,Notable Question,NULL,NULL,0,NULL,NULL 62862,230018,466552,NULL,NULL,NULL,0,NULL,NULL 62863,67587,648197,NULL,NULL,NULL,0,NULL,NULL 62864,178529,600515,Nice Question Nice Question Popular Question Yearling Popular Question Notable Question Good Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 62865,355649,903627,NULL,NULL,NULL,0,NULL,NULL 62866,90585,900392,NULL,NULL,NULL,0,NULL,NULL 62867,87996,13919,Yearling,NULL,NULL,0,NULL,NULL 62868,1388343,967334,Popular Question Popular Question Yearling Nice Question Nice Question Nice Question Yearling Famous Question Stellar Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 62869,405491,21838,Notable Question Nice Answer Good Answer Good Answer Famous Question Yearling Good Question Nice Question Famous Question Good Answer Famous Question Popular Question Necromancer Famous Question Announcer Nice Question Popular Question Yearling Excavator Nice Question Notable Question Necromancer Custodian Guru Informed Proofreader Great Answer Nice Answer Great Answer Notable Question Great Question Nice Answer Yearling,NULL,pHere the same code in Java without the 12 100000000000001 bug other answers have ppI also removed repeated code changed codepower code to type integer to prevent floating issues when coden code is done and made the long intermediate more clear ppThe bug was caused by multiplying large number with small number Instead divide two numbers of similar size pp strongEDIT strong brFixed more bugs Added check for as it would result in NaN Made the function actually work with negative numbers The original code doesn handle negative numbers because log of negative number is complex number ppre codepublic static double roundToSignificantFigures double num int if num return final double Math ceil Math log10 num lt num num final int power int final double magnitude Math pow 10 power final long shifted Math round num magnitude return shifted magnitude code pre lol nice find,0,NULL,NULL 62870,108548,1014879,Nice Answer Announcer Yearling Disciplined Good Answer Yearling Announcer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 62871,221092,635879,Yearling Good Answer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 62872,3460,254766,NULL,NULL,NULL,0,NULL,NULL 62873,335559,1260331,NULL,NULL,NULL,0,NULL,NULL 62874,381128,1496903,NULL,NULL,NULL,0,NULL,NULL 62875,34862,180343,Popular Question Yearling Caucus Nice Question,NULL,NULL,0,NULL,NULL 62876,448836,424499,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 62877,47903,1213936,Yearling Popular Question Notable Question Nice Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 62878,159513,451972,Popular Question Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 62879,251655,84513,Yearling Popular Question Nice Answer Organizer Tag Editor Nice Answer Notable Question Yearling Notable Question Nice Answer Yearling Nice Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 62880,273922,1152167,NULL,NULL,NULL,0,NULL,NULL 62881,367695,20684,NULL,NULL,NULL,0,NULL,NULL 62882,716282,176367,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 62883,311806,808804,Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Good Question Nice Question Yearling Famous Question Notable Question Popular Question Caucus Popular Question Popular Question Famous Question Famous Question Good Question Nice Question Notable Question Good Question Notable Question Good Answer Notable Question Necromancer Notable Question Yearling Notable Question Notable Question Popular Question Census Good Question Famous Question Nice Answer Necromancer Yearling Good Question Popular Question Popular Question,NULL,pIn the standard library there is no cross platform way to create aware timezones without creating your own timezone class ppOn Windows there codewin32timezone utcnow code but that part of pywin32 would rather suggest to use the href http pytz sourceforge net rel noreferrer pytz library which has constantly updated database of most timezones ppWorking with local timezones can be very tricky see Further reading links below so you may rather want to use UTC throughout your application especially for arithmetic operations like calculating the difference between two time points ppYou can get the current date time like so ppre codeimport pytzfrom datetime import datetimedatetime utcnow replace tzinfo pytz utc code prepMind that codedatetime today code and codedatetime now code return the emlocal em time not the UTC time so applying code replace tzinfo pytz utc code to them would not be correct ppAnother nice way to do it is ppre codedatetime now pytz utc code prepwhich is bit shorter and does the same phrpFurther reading watching why to prefer UTC in many cases pulli href https pythonhosted org pytz rel noreferrer pytz documentation lili href http web archive org web 20160803154621 http www windward net blogs every developer know time rel noreferrer What Every Developer Should Know About Time development hints for many real life use cases lili href https www youtube com watch 5wpm gesOY rel noreferrer The Problem with Time amp Timezones Computerphile funny eye opening explanation about the complexity of working with timezones video li ul The What every developer should know about time link now redirects to windward homepage was the content the same as this one http blogs windwardreports com davidt 2009 11 what every developer should know about time html,0,NULL,NULL 62884,52232,71489,Yearling Nice Answer Yearling Nice Answer Enlightened Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 62885,52417,217275,Popular Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 62886,140344,1094452,Student,NULL,NULL,0,NULL,NULL 62887,4912846,354678,Editor Notable Question,NULL,NULL,0,NULL,NULL 62888,126458,354678,Editor Notable Question,NULL,NULL,0,NULL,NULL 62889,261381,1395389,NULL,NULL,NULL,0,NULL,NULL 62890,6690191,808737,Popular Question,NULL,NULL,0,NULL,NULL 62891,197844,642402,Good Question,NULL,NULL,0,NULL,NULL 62892,323850,550980,NULL,NULL,NULL,0,NULL,NULL 62893,1395018,1041023,NULL,NULL,NULL,0,NULL,NULL 62894,524733,549591,NULL,NULL,NULL,0,NULL,NULL 62895,293132,616976,NULL,NULL,NULL,0,NULL,NULL 62896,492086,827770,Popular Question Announcer Caucus Autobiographer Constituent Custodian Caucus Constituent,NULL,NULL,0,NULL,NULL 62897,402937,507584,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 62898,3787667,507584,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 62899,995314,1515768,NULL,NULL,NULL,0,NULL,NULL 62900,67443,1032963,NULL,NULL,NULL,0,NULL,NULL 62901,184742,706704,NULL,NULL,NULL,0,NULL,NULL 62902,95116,373102,Necromancer Caucus Yearling,NULL,NULL,0,NULL,NULL 62903,101640,670373,NULL,NULL,NULL,0,NULL,NULL 62904,67256,1261320,NULL,NULL,NULL,0,NULL,NULL 62905,192108,893547,NULL,NULL,NULL,0,NULL,NULL 62906,110015,403965,Notable Question Popular Question Favorite Question Notable Question Notable Question Famous Question Great Question Good Question Popular Question Good Question Yearling Great Question Talkative Good Question Nice Question Notable Question Favorite Question Nice Question Popular Question Popular Question Famous Question Notable Question Yearling Famous Question Favorite Question Famous Question Good Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 62907,1739632,793098,NULL,NULL,NULL,0,NULL,NULL 62908,762008,1101670,Revival Tumbleweed Supporter Necromancer,NULL,NULL,0,NULL,NULL 62909,80661,968262,Popular Question,NULL,NULL,0,NULL,NULL 62910,926321,1429791,Autobiographer,NULL,NULL,0,NULL,NULL 62911,527914,140561,NULL,NULL,NULL,0,NULL,NULL 62912,141430,742186,NULL,NULL,NULL,0,NULL,NULL 62913,94664,524966,Promoter Student Scholar Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 62914,265307,1293173,NULL,NULL,NULL,0,NULL,NULL 62915,262994,87,Famous Question Good Question Census Nice Question Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 62916,411886,280758,Yearling Custodian Popular Question Nice Question Popular Question Yearling Announcer Popular Question c++ Yearling Popular Question,NULL,NULL,0,NULL,NULL 62917,129773,407952,Notable Question Nice Question Popular Question Yearling Nice Answer Notable Question Notable Question Notable Question,NULL,NULL,1,How to find index of substring elixir pLooking for Elixir equivalent of Ruby ppre code john snow com index gt john snow com index domain gt 10 code pre,NULL 62918,177051,157253,NULL,NULL,NULL,0,NULL,NULL 62919,97453,926719,Yearling Popular Question Famous Question Yearling Great Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 62920,372474,395310,NULL,NULL,NULL,0,NULL,NULL 62921,26095,467717,NULL,NULL,NULL,0,NULL,NULL 62922,598728,1353623,Scholar,NULL,NULL,0,NULL,NULL 62923,178071,1144820,Informed,NULL,NULL,0,NULL,NULL 62924,379575,926339,NULL,NULL,NULL,0,NULL,NULL 62925,364761,785561,Popular Question,NULL,NULL,0,NULL,NULL 62926,1885999,941532,NULL,NULL,NULL,0,NULL,NULL 62927,12189,514660,NULL,NULL,NULL,0,NULL,NULL 62928,1217363,651317,NULL,NULL,NULL,0,NULL,NULL 62929,131885,1067531,NULL,NULL,NULL,0,NULL,NULL 62930,1349690,1355323,Popular Question,NULL,NULL,0,NULL,NULL 62931,25947,1033338,Famous Question Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 62932,167415,521327,NULL,NULL,NULL,0,NULL,NULL 62933,156334,1079885,Supporter,NULL,NULL,0,NULL,NULL 62934,883347,1006394,NULL,NULL,NULL,0,NULL,NULL 62935,29534,838375,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 62936,183158,1216336,NULL,NULL,NULL,0,NULL,NULL 62937,183197,1177529,NULL,NULL,NULL,0,NULL,NULL 62938,93501,702099,Yearling Necromancer Great Answer Yearling Great Answer Revival Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 62939,342493,945998,NULL,NULL,NULL,0,NULL,NULL 62940,169760,517534,NULL,NULL,NULL,0,NULL,NULL 62941,140300,842372,NULL,NULL,,0,, 62942,25461,1222419,NULL,NULL,NULL,0,NULL,NULL 62943,554509,953914,Supporter,NULL,NULL,0,NULL,NULL 62944,4857734,1233602,NULL,NULL,NULL,0,NULL,NULL 62945,139544,469797,NULL,NULL,NULL,0,NULL,NULL 62946,53348,595627,NULL,NULL,NULL,0,NULL,NULL 62947,885956,1126826,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 62948,790557,974349,Notable Question Yearling Caucus Notable Question Popular Question Notable Question Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 62949,148396,1176018,NULL,NULL,NULL,0,NULL,NULL 62950,1020442,1214033,Curious Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 62951,2588650,851099,Student Supporter Scholar Editor Excavator Announcer,NULL,NULL,0,NULL,NULL 62952,172940,851099,Student Supporter Scholar Editor Excavator Announcer,NULL,NULL,0,NULL,NULL 62953,129214,495865,Inquisitive Notable Question Notable Question Popular Question Nice Question Notable Question Necromancer Famous Question Popular Question Yearling Popular Question Good Question Caucus Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 62954,545813,750630,NULL,NULL,NULL,0,NULL,NULL 62955,95265,793878,Notable Question,NULL,NULL,0,NULL,NULL 62956,131626,939915,Good Question,NULL,NULL,0,NULL,NULL 62957,1577529,376753,Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Famous Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Notable Question Famous Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62958,1718619,376753,Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Famous Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Notable Question Famous Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62959,444499,376753,Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Famous Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Notable Question Famous Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62960,175106,376753,Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Famous Question Famous Question Famous Question Popular Question Notable Question Good Question Popular Question Famous Question Yearling Popular Question Notable Question Famous Question Notable Question Famous Question Yearling Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 62961,29688,395885,Notable Question,NULL,NULL,0,NULL,NULL 62962,890434,652701,NULL,NULL,NULL,0,NULL,NULL 62963,239035,644496,Fanatic Yearling Promoter Benefactor Documentation Pioneer Student Investor Altruist Scholar Proofreader Announcer Caucus Announcer Quorum Excavator Curious Yearling Announcer Documentation User Custodian Announcer Census Civic Duty Yearling Popular Question Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 62964,437579,537042,NULL,NULL,NULL,0,NULL,NULL 62965,1568,643991,NULL,NULL,NULL,0,NULL,NULL 62966,1554128,792004,Famous Question,NULL,NULL,0,NULL,NULL 62967,2869927,792004,Famous Question,NULL,NULL,0,NULL,NULL 62968,116573,466732,NULL,NULL,NULL,0,NULL,NULL 62969,649868,892470,NULL,NULL,NULL,0,NULL,NULL 62970,271967,612991,NULL,NULL,NULL,0,NULL,NULL 62971,616967,1134625,Yearling Great Answer Caucus Yearling Curious Yearling Custodian Census Caucus Constituent Popular Question,NULL,pPossible solution if you have no ability to increase memory on that machine is to add swap file ppre codesudo dd if dev zero of swapfile bs 1024 count 524288sudo chmod 600 swapfilesudo mkswap swapfilesudo swapon swapfile code prepfrom href https github com pydata pandas issues 1880 issuecomment 9920484 https github com pydata pandas issues 1880 issuecomment 9920484 ppThis worked for me on smallest digital ocean machine as specified by Aaron Ash you can just turn swap off with sudo swapoff swapfile and delete this swapfile like any other file,0,NULL,NULL 62972,236222,98904,NULL,NULL,NULL,0,NULL,NULL 62973,228477,72571,Nice Answer,NULL,NULL,0,NULL,NULL 62974,512405,544378,Famous Question,NULL,NULL,0,NULL,NULL 62975,170336,959477,NULL,NULL,NULL,0,NULL,NULL 62976,76369,925796,NULL,NULL,NULL,0,NULL,NULL 62977,50012,1208495,NULL,NULL,NULL,0,NULL,NULL 62978,212734,661681,NULL,NULL,NULL,0,NULL,NULL 62979,9148806,661681,NULL,NULL,NULL,0,NULL,NULL 62980,19148,110400,Excavator Announcer Nice Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 62981,23799,557080,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 62982,632487,625068,NULL,NULL,NULL,0,NULL,NULL 62983,301400,1081343,NULL,NULL,NULL,0,NULL,NULL 62984,183231,1276627,NULL,NULL,NULL,0,NULL,NULL 62985,212206,378436,NULL,NULL,NULL,0,NULL,NULL 62986,1089908,1523976,Popular Question Supporter,NULL,NULL,0,NULL,NULL 62987,826818,1098586,NULL,NULL,NULL,0,NULL,NULL 62988,351805,456601,NULL,NULL,NULL,0,NULL,NULL 62989,436230,667519,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 62990,1474380,364854,NULL,NULL,NULL,0,NULL,NULL 62991,146627,282536,Yearling Caucus Yearling Custodian Custodian Announcer Caucus Nice Answer Yearling Custodian Revival,NULL,pHere simple implementation that also handles the core named XML entities ppre class lang lua prettyprint override codefunction unescape str str string gsub str amp lt lt str string gsub str amp gt gt str string gsub str amp quot str string gsub str amp apos str string gsub str amp function return string char end str string gsub str amp function return string char tonumber 16 end str string gsub str amp amp amp Be sure to do this after all others return strendprint unescape amp 34 Hello amp quot amp apos World amp 39 gt Hello World code prepHowever note that this fails for one pathological case numeric ampersand entity followed by the text codeamp code ppre class lang lua prettyprint override codeprint unescape Ampersand entity is amp 38 amp gt Ampersand entity is amp The result should actually be Ampersand entity is amp amp code prepWe can fix this edge case by handling all entities at once but the code gets good bit uglier ppre class lang lua prettyprint override codefunction unescape str local map lt lt gt gt amp amp quot apos str string gsub str amp function orig return and map or and tonumber 16 and string char tonumber 16 or and tonumber and string char or orig end return strendprint unescape Ampersand entity is amp 38 amp gt Ampersand entity is amp amp code prepFinally we can unwrap it for little more speed ppre class lang lua prettyprint override codelocal gsub char string gsub string charlocal entityMap lt lt gt gt amp amp quot apos local entitySwap function orig return and entityMap or and tonumber and string char or and tonumber 16 and string char tonumber 16 or origendfunction unescape str return gsub str amp entitySwap end code pre Should check for the entityMap case or you could accidentally match xamp,0,NULL,NULL 62992,200536,28840,Famous Question Yearling Yearling Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 62993,1214290,1481508,Popular Question Yearling Nice Question Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 62994,7012641,1083878,NULL,NULL,NULL,0,NULL,NULL 62995,158558,1083878,NULL,NULL,NULL,0,NULL,NULL 62996,802137,13253,Good Answer Yearling java Revival Yearling Nice Answer Revival Organizer Great Question Yearling,NULL,NULL,0,NULL,NULL 62997,995942,11301,Famous Question Announcer Notable Question Inquisitive Great Question Yearling Famous Question Caucus Tumbleweed Nice Question Favorite Question Notable Question Caucus Yearling Great Answer Popular Question Nice Question Custodian Yearling Notable Question Nice Question,NULL,NULL,1,determine if mysql or percona or mariaDB mysql mariadb percona pHow can tell if server connecting to is Percona or MySQL or MariaDB Is there any standard way of doing this currently using codeSHOW VERSION code to test the server version but would also need to display the server name in the app working on,NULL 62998,303024,229738,NULL,NULL,NULL,0,NULL,NULL 62999,79358,232432,Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 63000,908865,932262,NULL,NULL,NULL,0,NULL,NULL 63001,485349,149125,Nice Question Popular Question Yearling Good Answer Notable Question Popular Question Caucus Yearling Popular Question Popular Question Famous Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63002,247234,1202533,NULL,NULL,NULL,0,NULL,NULL 63003,117999,414001,NULL,NULL,NULL,0,NULL,NULL 63004,48889,1081647,NULL,NULL,NULL,0,NULL,NULL 63005,80497,901096,Yearling,NULL,NULL,0,NULL,NULL 63006,334915,916772,NULL,NULL,NULL,0,NULL,NULL 63007,590615,146792,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Famous Question Notable Question Yearling Guru Good Answer Famous Question Caucus Constituent Nice Answer Great Answer Nice Answer Enlightened Caucus Yearling Guru Nice Answer Nice Answer Enlightened Nice Answer Good Answer Favorite Question Guru Custodian Caucus Popular Question Great Answer Revival Announcer Yearling Nice Answer Enlightened Guru Good Answer Nice Question Famous Question Famous Question Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63008,133645,697625,Curious Notable Question Announcer Excavator Commentator Census Critic Informed Autobiographer Yearling,NULL,NULL,0,NULL,NULL 63009,280200,993984,Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63010,316775,596623,Popular Question Curious Notable Question Census Notable Question,NULL,NULL,0,NULL,NULL 63011,5820231,596623,Popular Question Curious Notable Question Census Notable Question,NULL,NULL,0,NULL,NULL 63012,424393,771931,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63013,163046,188159,Revival Necromancer Commentator Yearling Revival Scholar Curious Self-Learner Necromancer Yearling Nice Answer Necromancer Necromancer Nice Answer Yearling Nice Answer Necromancer Yearling Announcer Nice Answer Yearling Necromancer Good Answer Popular Question Popular Question Yearling Announcer Nice Answer Custodian Nice Answer Nice Answer Yearling Notable Question Nice Answer Enlightened Good Answer Popular Question Yearling Popular Question,NULL,blockquote pI like that the long lines are displayed over more than one terminal line blockquotepThis sort of visual virtual line wrapping is enabled with the codewrap code window option ppre codeset wrap code preblockquote pI don’t like that vim inserts newlines into my actual text blockquotepTo turn off physical line wrapping clear both the codetextwidth code and codewrapmargin code buffer options ppre codeset textwidth wrapmargin code pre Thanks set textwidth wrapmargin works but if put it into vimrc it doesn have an effect for example for plain text files How do find out and eliminate the overwrite,0,NULL,NULL 63014,1164898,1235221,NULL,NULL,NULL,0,NULL,NULL 63015,173332,1296909,NULL,NULL,NULL,0,NULL,NULL 63016,6124651,910478,NULL,NULL,NULL,0,NULL,NULL 63017,332622,910478,NULL,NULL,NULL,0,NULL,NULL 63018,265493,669,Nice Answer Enlightened Yearling Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 63019,264068,857961,NULL,NULL,NULL,0,NULL,NULL 63020,1555732,1524449,NULL,NULL,NULL,0,NULL,NULL 63021,372337,1025911,Necromancer,NULL,NULL,0,NULL,NULL 63022,1211897,643885,Good Question Popular Question Yearling Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 63023,463848,823112,Good Question Popular Question Notable Question Famous Question Popular Question Yearling Notable Question Popular Question Caucus Popular Question Yearling Popular Question Popular Question Notable Question Nice Answer Yearling Great Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 63024,206979,560002,Teacher,NULL,NULL,0,NULL,NULL 63025,166392,1273771,NULL,NULL,NULL,0,NULL,NULL 63026,1051597,1284066,NULL,NULL,NULL,0,NULL,NULL 63027,189094,1525692,NULL,NULL,NULL,0,NULL,NULL 63028,13222,511123,Yearling Famous Question Documentation User Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 63029,681751,481584,Strunk & White Explainer Popular Question Popular Question Yearling Caucus Constituent Notable Question Popular Question Nice Question Famous Question Yearling Notable Question Census Custodian Good Question Curious Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 63030,133531,481584,Strunk & White Explainer Popular Question Popular Question Yearling Caucus Constituent Notable Question Popular Question Nice Question Famous Question Yearling Notable Question Census Custodian Good Question Curious Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 63031,209667,1100417,Yearling Good Answer Critic Yearling Guru Necromancer Nice Answer Caucus Nice Answer Yearling Caucus Custodian Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 63032,64695,635820,NULL,NULL,NULL,0,NULL,NULL 63033,300022,245871,NULL,NULL,NULL,0,NULL,NULL 63034,200875,195840,Supporter,NULL,NULL,0,NULL,NULL 63035,183831,794249,NULL,NULL,NULL,0,NULL,NULL 63036,363357,865531,NULL,NULL,NULL,0,NULL,NULL 63037,84192,619078,NULL,NULL,NULL,0,NULL,NULL 63038,391104,717732,Nice Answer Enlightened Good Answer Yearling Sportsmanship Guru Popular Question Nice Answer Good Answer Great Answer Revival Good Answer Refiner Yearling Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Announcer c# Revival Nice Answer Enlightened Announcer Necromancer Copy Editor .net Revival Announcer Yearling Necromancer Nice Answer Enlightened Nice Answer Announcer Revival Great Answer Fanatic Talkative Nice Answer Enlightened,NULL,pThis is based on href https stackoverflow com 7555658 706456 solution but implemented as an extension method ppBenefits pulliExtension method liliCovers corner cases liliSplits string with any chars numbers letters other symbols li ulpCode ppre codepublic static class EnumerableEx public static IEnumerable lt string gt SplitBy this string str int chunkLength if String IsNullOrEmpty str throw new ArgumentException if chunkLength lt throw new ArgumentException for int lt str Length chunkLength if chunkLength gt str Length chunkLength str Length yield return str Substring chunkLength code prepUsage ppre codevar result bobjoecat SplitBy bob joe cat code prepUnit tests removed for brevity see href https stackoverflow com revisions 8944374 previous revision personally like to call that method Chunkify It not mine don remember where have seen that name but it felt very nice to me,0,NULL,NULL 63039,234688,458257,Teacher,NULL,NULL,0,NULL,NULL 63040,323315,3193,Nice Answer Popular Question Yearling Famous Question Notable Question Good Question Great Answer Notable Question Nice Question Good Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 63041,368269,901746,Good Answer,NULL,NULL,0,NULL,NULL 63042,212711,592963,Popular Question,NULL,NULL,0,NULL,NULL 63043,335287,1352484,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63044,264156,601308,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63045,3082,462925,NULL,NULL,NULL,0,NULL,NULL 63046,234393,782306,Notable Question,NULL,NULL,0,NULL,NULL 63047,334703,1193176,Caucus Commentator Curious,NULL,NULL,0,NULL,NULL 63048,788550,708997,NULL,NULL,NULL,0,NULL,NULL 63049,162039,533372,NULL,NULL,NULL,0,NULL,NULL 63050,970250,1492456,NULL,NULL,NULL,0,NULL,NULL 63051,352333,198034,Notable Question Popular Question Popular Question Notable Question Popular Question Tumbleweed Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63052,503416,677195,NULL,NULL,NULL,0,NULL,NULL 63053,751584,677195,NULL,NULL,NULL,0,NULL,NULL 63054,34380,234486,NULL,NULL,NULL,0,NULL,NULL 63055,1541603,44940,NULL,NULL,NULL,0,NULL,NULL 63056,8473,515348,Revival Necromancer Scholar Commentator Yearling Student Necromancer Popular Question Custodian Custodian Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 63057,1071765,684855,Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63058,358802,1198300,NULL,NULL,NULL,0,NULL,NULL 63059,9698592,934604,NULL,NULL,NULL,0,NULL,NULL 63060,182435,916395,Curious Commentator Nice Question,NULL,NULL,0,NULL,NULL 63061,790300,738081,Yearling Necromancer Caucus Constituent Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 63062,1119781,1310710,NULL,NULL,NULL,0,NULL,NULL 63063,171171,1024662,NULL,NULL,NULL,0,NULL,NULL 63064,1358463,1024662,NULL,NULL,NULL,0,NULL,NULL 63065,287098,1411352,NULL,NULL,NULL,0,NULL,NULL 63066,1355339,1411352,NULL,NULL,NULL,0,NULL,NULL 63067,2205423,223290,Revival Critic Civic Duty Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 63068,1010235,1200726,NULL,NULL,NULL,0,NULL,NULL 63069,748552,1200726,NULL,NULL,NULL,0,NULL,NULL 63070,4924168,1200726,NULL,NULL,NULL,0,NULL,NULL 63071,797684,1200726,NULL,NULL,NULL,0,NULL,NULL 63072,342008,1337089,NULL,NULL,NULL,0,NULL,NULL 63073,1680815,1155949,NULL,NULL,NULL,0,NULL,NULL 63074,329028,1321646,NULL,NULL,NULL,0,NULL,NULL 63075,88347,25616,Famous Question Notable Question Necromancer Nice Question Nice Answer Notable Question Famous Question Yearling Good Question Good Answer Announcer Great Answer Popular Question Nice Question Investor Altruist Good Answer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63076,1141979,1231778,NULL,NULL,NULL,0,NULL,NULL 63077,93937,233562,NULL,NULL,NULL,0,NULL,NULL 63078,97791,1540485,Editor Excavator,NULL,NULL,0,NULL,NULL 63079,668334,1215670,NULL,NULL,NULL,0,NULL,NULL 63080,161027,205896,Notable Question,NULL,NULL,0,NULL,NULL 63081,78876,1388099,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63082,174395,1270459,Nice Question Popular Question Promoter Benefactor Famous Question Yearling Announcer Popular Question Popular Question Popular Question Popular Question Nice Question Famous Question Caucus Popular Question Notable Question Great Question Announcer Yearling Notable Question Notable Question Popular Question Notable Question Civic Duty Announcer Announcer Caucus Notable Question Popular Question Booster Popular Question Popular Question Popular Question Publicist Popular Question Custodian Announcer Notable Question Yearling Popular Question Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63083,7009152,1270459,Nice Question Popular Question Promoter Benefactor Famous Question Yearling Announcer Popular Question Popular Question Popular Question Popular Question Nice Question Famous Question Caucus Popular Question Notable Question Great Question Announcer Yearling Notable Question Notable Question Popular Question Notable Question Civic Duty Announcer Announcer Caucus Notable Question Popular Question Booster Popular Question Popular Question Popular Question Publicist Popular Question Custodian Announcer Notable Question Yearling Popular Question Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63084,448617,989221,NULL,NULL,NULL,0,NULL,NULL 63085,1060062,349165,NULL,NULL,NULL,0,NULL,NULL 63086,323836,14173,Yearling Good Answer,NULL,NULL,0,NULL,NULL 63087,6083716,14173,Yearling Good Answer,NULL,NULL,0,NULL,NULL 63088,475148,236593,Student,NULL,NULL,0,NULL,NULL 63089,899968,1491808,NULL,NULL,NULL,0,NULL,NULL 63090,2682340,1130751,NULL,NULL,NULL,0,NULL,NULL 63091,4062334,728308,NULL,NULL,NULL,0,NULL,NULL 63092,25816,757616,Popular Question Notable Question Nice Question Notable Question Enthusiast Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63093,127672,221104,NULL,NULL,NULL,0,NULL,NULL 63094,310560,1410892,NULL,NULL,NULL,0,NULL,NULL 63095,400739,379815,NULL,NULL,NULL,0,NULL,NULL 63096,1342689,1092917,NULL,NULL,NULL,0,NULL,NULL 63097,1662247,1063735,NULL,NULL,NULL,0,NULL,NULL 63098,367393,963818,NULL,NULL,NULL,0,NULL,NULL 63099,405049,382639,Popular Question,NULL,NULL,0,NULL,NULL 63100,78344,137599,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63101,268073,1178442,NULL,NULL,NULL,0,NULL,NULL 63102,190002,870409,Teacher Necromancer,NULL,NULL,0,NULL,NULL 63103,93066,486131,Guru Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 63104,129668,327317,Great Answer Good Answer Good Answer Nice Answer Yearling Pundit Nice Answer Guru Caucus Good Answer Good Answer Good Answer Good Answer Yearling Notable Question Nice Answer Enlightened Caucus Nice Answer Census Guru Guru Caucus Yearling Good Answer Great Answer,NULL,NULL,0,NULL,NULL 63105,219469,1217735,NULL,NULL,NULL,0,NULL,NULL 63106,261491,1545414,Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63107,95955,14102,Yearling Good Answer Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 63108,750862,1119459,Famous Question Custodian Custodian Yearling Notable Question Popular Question Yearling Census,NULL,NULL,0,NULL,NULL 63109,19840,965338,Yearling Nice Answer Popular Question Custodian Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63110,5662,269620,Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 63111,305236,909020,Curious Tumbleweed Popular Question Popular Question Commentator Teacher,NULL,NULL,1,NSOpenPanel NSSavePanel crashes in Swift macos swift3 macos sierra nsopenpanel nssavepanel pIn Swift Xcode8 10 12 am trying to use NSOpenPanel to get text file with the following code written by DenBeke ppre code func browseFile sender AnyObject let dialog NSOpenPanel dialog title Choose txt file dialog allowedFileTypes txt if dialog runModal NSModalResponseOK let result dialog url Pathname of the file if result nil let path result path print browseFile path path filename field stringValue path else User clicked on Cancel return code prepThe code opens open dialog as expected and can choose file Clicking the open button crashes the app In the console get pblockquote pFI TFloatingInputWindowController object 0x60800009c0c0 overreleased while already deallocating break on objc overrelease during dealloc error to debug blockquotepWhen run the code and open the dialog in the console get pblockquote default ERROR Failed getting container for URL file Users ruediheimlicher Documents LoggerdataDir Messungen error Error Domain BRCloudDocsErrorDomain Code 12 App library not found com apple Documents UserInfo NSDescription App library not found com apple Documents blockquotepbut this does not affect the app ppThere are more examples for NSOpen or NSSave dialogs on the net with slightly different code but with everyone get the same result Crash and the exact same error on the console ppIs there mistake in my code attempts or even an example that works with Swift3 sierra,NULL 63112,12410,566886,NULL,NULL,NULL,0,NULL,NULL 63113,179597,1534597,NULL,NULL,NULL,0,NULL,NULL 63114,2644788,842860,Popular Question Famous Question Civic Duty Inquisitive Popular Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Announcer Popular Question Nice Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63115,242552,818807,NULL,NULL,NULL,0,NULL,NULL 63116,1082253,235114,NULL,NULL,NULL,0,NULL,NULL 63117,9215,62525,Yearling Nice Answer Yearling Nice Answer Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 63118,154806,306445,NULL,NULL,NULL,0,NULL,NULL 63119,1022268,647766,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63120,488087,198577,NULL,NULL,NULL,0,NULL,NULL 63121,269616,758988,NULL,NULL,NULL,0,NULL,NULL 63122,955296,1560162,NULL,NULL,NULL,0,NULL,NULL 63123,1849772,1560162,NULL,NULL,NULL,0,NULL,NULL 63124,50248,163815,Popular Question Nice Answer Famous Question Yearling Good Answer Good Question Nice Answer Good Answer Famous Question Yearling Nice Question Necromancer Notable Question Good Question Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 63125,1058819,706716,NULL,NULL,NULL,0,NULL,NULL 63126,444595,348894,Famous Question,NULL,NULL,0,NULL,NULL 63127,54808,613198,Nice Answer Enlightened Necromancer Yearling Guru Necromancer Good Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Necromancer Populist Nice Answer Necromancer Necromancer Necromancer Good Answer Necromancer Nice Answer Nice Answer node.js Nice Answer Nice Answer Good Answer Great Answer Nice Answer Necromancer Necromancer Good Answer Nice Answer node.js Nice Answer Good Answer Good Answer Guru Census Necromancer Tenacious Yearling Announcer express Nice Answer Necromancer Good Answer socket.io Nice Answer Necromancer Nice Answer node.js ajax Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened json Great Answer Nice Answer Good Answer Nice Answer Necromancer Nice Answer Enlightened Necromancer Nice Answer Announcer Good Answer Announcer Good Answer Good Answer Good Answer npm Revival Necromancer Nice Answer Enlightened Necromancer Nice Answer Necromancer Necromancer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer mongodb Necromancer Nice Answer Yearling Guru Necromancer Nice Answer Enlightened Nice Answer Enlightened Revival Nice Answer Guru Good Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Guru Great Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Necromancer Good Answer Nice Answer Good Answer Nice Answer Enlightened Revival Nice Answer Enlightened http Nice Answer Enlightened Populist,NULL,h12016 Update h1h2 codequeryAll code was removed from the DOM spec h2pCurrently the most important difference between codequeryAll code and codequerySelectorAll code is that codequeryAll code as well as codequery code was strongremoved from the DOM specification strong ppThe current version of the DOM specification is available at pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulpNote href https www w3 org TR dom rel noreferrer https www w3 org TR dom is an outdated fork of the DOM Standard see href https wiki whatwg org wiki Fork tracking rel noreferrer Fork tracking on the href https wiki whatwg org wiki Main Page rel noreferrer WHATWG Wiki and href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 38245620 noredirect comment63923286 38245620 the comment by Domenic for more info ph2Last mention h2pThe last version that included codequery code and codequeryAll code was published on 15 March 2016 pulli href http web archive org web 20160315085447 https dom spec whatwg org rel noreferrer http web archive org web 20160315085447 https dom spec whatwg org aulliSee sectionsa href http web archive org web 20160315085447 https dom spec whatwg org interface parentnode rel noreferrer Interface ParentNode anda href http web archive org web 20160315085447 https dom spec whatwg org element collections rel noreferrer Collections Elements li ul li ulh2Removal h2pThe next version doesn mention codequery code or codequeryAll code anywhere pulli href http web archive org web 20160329233515 https dom spec whatwg org rel noreferrer http web archive org web 20160329233515 https dom spec whatwg org aulliSee sectiona href http web archive org web 20160329233515 https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode li ul li ulh2Current specification h2pAll occurances of codequery code or codequeryAll code in the DOM standard href https github com whatwg dom commit 10b6cf1ba02806220d5461a3bdb7939728b73635 rel noreferrer were commented out by Anne van Kesteren on March 29 2016 ppThe current DOM specification as of July 2016 doesn mention codequery code or codequeryAll code at all pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulp codequerySelector code and codequerySelectorAll code are in sectiona href https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode ppIt seems that currently the only reliable API is codequerySelector code and codequerySelectorAll code see href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more details and according to href https github com whatwg dom issues 39 issuecomment 231056316 rel noreferrer this discussion on GitHub codequery code and codequeryAll code will not be available until the JavaScript subclassing of built ins is implemented in the browsers and even then it will be unlikely to return live Elements array as described in href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 23270016 23270016 the answer by BoltClock ph2Browser support h2pAs of June 2016 there is no mention of codequery code and codequeryAll code on MDN pulli href https developer mozilla org en US search queryall rel noreferrer https developer mozilla org en US search queryall li ulpOn the other hand codequerySelector code and codequerySelectorAll code are well documented and widely supported pulli href https developer mozilla org en US docs Web API Document querySelector rel noreferrer https developer mozilla org en US docs Web API Document querySelector aa href https developer mozilla org en US docs Web API Document querySelectorAll rel noreferrer https developer mozilla org en US docs Web API Document querySelectorAll li ulpBrowser support of codequerySelector code codequerySelectorAll code according to href http caniuse com queryselector rel noreferrer Can use as of June 2016 pp href https stack imgur com cIQXF png rel noreferrer img src https stack imgur com cIQXF png alt caniuse com queryselector See href http caniuse com queryselector rel noreferrer http caniuse com queryselector for up to date info ppThere is no info available on the support of codequery code and codequeryAll code ph2More info h2pSee also href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more info on the usage and browser support of codequerySelector code and codequerySelectorAll code Thanks for the info updated the answer so that all links now point to dom spec whatwg org and added note on the outdated fork on w3c org didn know that the w3c fork is outdated Thanks for pointing it out h12017 Update line answer with vanilla JS h1pAll of the answers here are strongoverly complicated strong most of them take 20 lines of code or even more ppThis example uses just strongtwo lines of vanilla JavaScript strong no lodash underscore or other libraries ppre codelet gt concat map gt map gt concat let cartesian gt cartesian code preh3Update h3pThis is the same as above but improved to strictly follow the href http airbnb io javascript rel noreferrer Airbnb JavaScript Style Guide validated using href http eslint org rel noreferrer ESLint with href https www npmjs com package eslint config airbnb base rel noreferrer eslint config airbnb base ppre codeconst gt concat map gt map gt concat const cartesian gt cartesian code prepSpecial thanks to strongZuBB strong for letting me know about linter problems with the original code ph2Example h2pThis is the exact example from your question ppre codelet output cartesian 10 20 100 200 300 code preh2Output h2pThis is the output of that command ppre code 10 100 10 200 10 300 20 100 20 200 20 300 10 100 10 200 10 300 20 100 20 200 20 300 code preh2Demo h2pSee demos on pulli href http jsbin com vihibelome edit js console rel noreferrer JS Bin with Babel for old browsers lili href http jsbin com siwefuqina edit js console rel noreferrer JS Bin without Babel for modern browsers li ulh2Syntax h2pThe syntax that used here is nothing new My example uses the spread operator and the rest parameters features of JavaScript defined in the 6th edition of the ECMA 262 standard published on June 2015 and developed much earlier better known as ES6 or ES2015 See pulli href http www ecma international org ecma 262 rel noreferrer http www ecma international org ecma 262 lili href https developer mozilla org en docs Web JavaScript Reference Functions rest parameters rel noreferrer https developer mozilla org en docs Web JavaScript Reference Functions rest parameters lili href https developer mozilla org en docs Web JavaScript Reference Operators Spread operator rel noreferrer https developer mozilla org en docs Web JavaScript Reference Operators Spread operator li ulpIt makes code like this so simple that it sin not to use it For old platforms that don support it natively you can always use Babel or other tools to transpile it to older syntax and in fact my example transpiled by Babel is still shorter and simpler than most of the examples here but it doesn really matter because the output of transpilation is not something that you need to understand or maintain it just fact that found interesting ph2Conclusion h2pThere no need to write hundred of lines of code that is hard to maintain and there is no need to use entire libraries for such simple thing when two lines of vanilla JavaScript can easily get the job done As you can see it really pays off to use modern features of the language and in cases where you need to support archaic platforms with no native support of the modern features you can always use Babel or other tools to transpile the new syntax to the old one ph2Don code like it 1995 h2pJavaScript evolves and it does so for reason TC39 does an amazing job of the language design with adding new features and the browser vendors do an amazing job of implementing those features ppTo see the current state of native support of any given feature in the browsers see pulli href http caniuse com rel noreferrer http caniuse com lili href https kangax github io compat table rel noreferrer https kangax github io compat table li ulpTo see the support in Node versions see pulli href http node green rel noreferrer http node green li ulpTo use modern syntax on platforms that don support it natively use Babel pulli href https babeljs io rel noreferrer https babeljs io li ul Thanks for letting me know about the linter problems added version of the code that conforms to the Airbnb JavaScript Style Guide see the updated question Thanks h12015 Update h1pIt is an old question but other new questions like pulli href https stackoverflow com questions 30846357 how to validate if string is valid date in js How to validate if string is valid date in js li ulpget closed as duplicates of this one so think it important to add some fresh info here writing it because got scared thinking that people actually copy and paste some of the code posted here and use it in production ppMost of the answers here strongeither strong use some complex regular expressions that match only some very specific formats and actually do it incorrectly like matching January 32nd while not matching actual ISO date as advertised see href http jsbin com gecixucise edit html js console output rel noreferrer strongdemo strong strongor strong they try to pass anything to the codeDate code constructor and wish for the best ph2Using Moment h2pAs explained in href https stackoverflow com questions 30846357 how to validate if string is valid date in js 30846445 30846445 this answer there is currently library available for that href http momentjs com rel noreferrer Moment js ppIt is library to parse validate manipulate and display dates in JavaScript that has much richer API than the standard JavaScript date handling functions ppIt is 12kB minified gzipped and works in Node js and other places ppre codebower install moment save bowernpm install moment save npmInstall Package Moment js NuGetspm install moment save spmmeteor add momentjs moment meteor code prepUsing Moment you can be very specific about checking valid dates Sometimes it is very important to add some clues about the format that you expect For example date such as 06 22 2015 looks like valid date unless you use format DD MM YYYY in which case this date should be rejected as invalid There are few ways how you can tell Moment what format you expect for example ppre codemoment 06 22 2015 MM DD YYYY true isValid truemoment 06 22 2015 DD MM YYYY true isValid false code prepThe strong codetrue code strong argument is there so the Moment won try to parse the input if it doesn strongexactly strong conform to one of the formats provided it should be default behavior in my opinion ppYou can use an internally provided format ppre codemoment 2015 06 22T13 17 21 0000 moment ISO 8601 true isValid true code prepAnd you can use multiple formats as an array ppre codevar formats moment ISO 8601 MM DD YYYY HH mm ss moment 2015 06 22T13 17 21 0000 formats true isValid truemoment 06 22 2015 13 17 21 formats true isValid truemoment 06 22 2015 13 17 21 formats true isValid false code prepSee href http jsbin com picazehane edit html js console output rel noreferrer strongDEMO strong ph2Other libraries h2pIf you don want to use Moment js there are also other libraries pulli href http arshaw com xdate rel noreferrer XDate lili href https github com abritinthebay datejs rel noreferrer DateJS li ulh22016 Update h2pI created the href https www npmjs com package immoment rel noreferrer immoment module that is like subset of Moment but without surprises caused by mutation of existing objects see href https github com rsp node immoment readme rel noreferrer the docs for more info ph22018 Update h2pToday recommend using href https github com moment luxon rel noreferrer Luxon for date time manipulation instead of Moment which unlike Moment makes all object immutable so there are no nasty surprises related to implicit mutation of dates ph2More info h2pSee also pulli href http www sitepoint com managing dates times using moment js rel noreferrer Managing Dates and Times Using Moment js by Jay Raj lili href http sixrevisions com tutorials javascript dates moment js rel noreferrer Working with JavaScript Dates Using Moment js by Bradley Holbrook li ulpA series of articles by Rob Gravelle on JavaScript date parsing libraries pulli href http www htmlgoodies com html5 javascript roundup of popular javascript date parsing libraries moment js html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries Moment js lili href http www htmlgoodies com beyond javascript roundup of popular javascript date parsing libraries datejs html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries Datejs lili href http www htmlgoodies com beyond javascript js ref roundup of popular javascript date parsing libraries xdate html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries XDate li ulh2Bottom line h2pOf course anyone can try to reinvent the wheel write regular expression but strongplease strong actually read ISO 8601 and RFC 3339 before you do it or call buit in constructors with random data to parse error messages like code Invalid Date code Are you sure this message is strongexactly the same strong on all platforms In all locales In the future strongor strong you can use tested solution and use your time to improve it not reinvent it All of the libraries listed here are open source free software If you don know the expected date format then how can you validate anything The problem in guessing is that when you have 03 22 99 then you can guess it and you think it valid If you have 22 03 99 then it also obvious what the date but then you have problem with 03 04 99 or worse 03 04 05 because there are at least different ways how you can interpret it and if you don know the expected format then it doesn matter if you say that it valid if you don know what it means always recommend using an explicit format because of that preferably ISO string h12015 Update h1pIt is an old question but other new questions like pulli href https stackoverflow com questions 30846357 how to validate if string is valid date in js How to validate if string is valid date in js li ulpget closed as duplicates of this one so think it important to add some fresh info here writing it because got scared thinking that people actually copy and paste some of the code posted here and use it in production ppMost of the answers here strongeither strong use some complex regular expressions that match only some very specific formats and actually do it incorrectly like matching January 32nd while not matching actual ISO date as advertised see href http jsbin com gecixucise edit html js console output rel noreferrer strongdemo strong strongor strong they try to pass anything to the codeDate code constructor and wish for the best ph2Using Moment h2pAs explained in href https stackoverflow com questions 30846357 how to validate if string is valid date in js 30846445 30846445 this answer there is currently library available for that href http momentjs com rel noreferrer Moment js ppIt is library to parse validate manipulate and display dates in JavaScript that has much richer API than the standard JavaScript date handling functions ppIt is 12kB minified gzipped and works in Node js and other places ppre codebower install moment save bowernpm install moment save npmInstall Package Moment js NuGetspm install moment save spmmeteor add momentjs moment meteor code prepUsing Moment you can be very specific about checking valid dates Sometimes it is very important to add some clues about the format that you expect For example date such as 06 22 2015 looks like valid date unless you use format DD MM YYYY in which case this date should be rejected as invalid There are few ways how you can tell Moment what format you expect for example ppre codemoment 06 22 2015 MM DD YYYY true isValid truemoment 06 22 2015 DD MM YYYY true isValid false code prepThe strong codetrue code strong argument is there so the Moment won try to parse the input if it doesn strongexactly strong conform to one of the formats provided it should be default behavior in my opinion ppYou can use an internally provided format ppre codemoment 2015 06 22T13 17 21 0000 moment ISO 8601 true isValid true code prepAnd you can use multiple formats as an array ppre codevar formats moment ISO 8601 MM DD YYYY HH mm ss moment 2015 06 22T13 17 21 0000 formats true isValid truemoment 06 22 2015 13 17 21 formats true isValid truemoment 06 22 2015 13 17 21 formats true isValid false code prepSee href http jsbin com picazehane edit html js console output rel noreferrer strongDEMO strong ph2Other libraries h2pIf you don want to use Moment js there are also other libraries pulli href http arshaw com xdate rel noreferrer XDate lili href https github com abritinthebay datejs rel noreferrer DateJS li ulh22016 Update h2pI created the href https www npmjs com package immoment rel noreferrer immoment module that is like subset of Moment but without surprises caused by mutation of existing objects see href https github com rsp node immoment readme rel noreferrer the docs for more info ph22018 Update h2pToday recommend using href https github com moment luxon rel noreferrer Luxon for date time manipulation instead of Moment which unlike Moment makes all object immutable so there are no nasty surprises related to implicit mutation of dates ph2More info h2pSee also pulli href http www sitepoint com managing dates times using moment js rel noreferrer Managing Dates and Times Using Moment js by Jay Raj lili href http sixrevisions com tutorials javascript dates moment js rel noreferrer Working with JavaScript Dates Using Moment js by Bradley Holbrook li ulpA series of articles by Rob Gravelle on JavaScript date parsing libraries pulli href http www htmlgoodies com html5 javascript roundup of popular javascript date parsing libraries moment js html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries Moment js lili href http www htmlgoodies com beyond javascript roundup of popular javascript date parsing libraries datejs html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries Datejs lili href http www htmlgoodies com beyond javascript js ref roundup of popular javascript date parsing libraries xdate html rel noreferrer Roundup of Popular JavaScript Date Parsing Libraries XDate li ulh2Bottom line h2pOf course anyone can try to reinvent the wheel write regular expression but strongplease strong actually read ISO 8601 and RFC 3339 before you do it or call buit in constructors with random data to parse error messages like code Invalid Date code Are you sure this message is strongexactly the same strong on all platforms In all locales In the future strongor strong you can use tested solution and use your time to improve it not reinvent it All of the libraries listed here are open source free software If assumptions can be made that is valid date and so is April 1st 2015 then would recommend adding those formats and potentially much more to an explicit list of supported formats Note that that you mentioned is ambiguous without an explicit format h1Misconceptions h1pThere are few common misconceptions regarding WebSocket and Socket IO polli pThe first misconception is that using Socket IO is significantly easier than using WebSocket which doesn seem to be the case See examples below lili pThe second misconception is that WebSocket is not widely supported in the browsers See below for more info lili pThe third misconception is that Socket IO downgrades the connection as fallback on older browsers It actually assumes that the browser is old and starts an AJAX connection to the server that gets later upgraded on browsers supporting WebSocket after some traffic is exchanged See below for details li olh1My experiment h1pI wrote an npm module to demonstrate the difference between WebSocket and Socket IO pulli href https www npmjs com package websocket vs socket io https www npmjs com package websocket vs socket io lili href https github com rsp node websocket vs socket io https github com rsp node websocket vs socket io li ulpIt is simple example of server side and client side code the client connects to the server using either WebSocket or Socket IO and the server sends three messages in 1s intervals which are added to the DOM by the client ph1Server side h1pCompare the server side example of using WebSocket and Socket IO to do the same in an Express js app ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js https github com rsp node websocket vs socket io blob master ws js ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js https github com rsp node websocket vs socket io blob master si js ph1Client side h1pCompare the client side example of using WebSocket and Socket IO to do the same in the browser ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html https github com rsp node websocket vs socket io blob master ws html ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html https github com rsp node websocket vs socket io blob master si html ph1Network traffic h1pTo see the difference in network traffic you can href https github com rsp node websocket vs socket io readme run my test Here are the results that got ph2WebSocket Results h2h32 requests 50 KB 05 h3pFrom those requests polliHTML page itself liliconnection upgrade to WebSocket li olp The connection upgrade request is visible on the developer tools with 101 Switching Protocols response ph2Socket IO Results h2h36 requests 181 56 KB 25 h3pFrom those requests pollithe HTML page itself liliSocket IO JavaScript 180 kilobytes lilifirst long polling AJAX request lilisecond long polling AJAX request lilithird long polling AJAX request liliconnection upgrade to WebSocket li olh2Screenshots h2pWebSocket results that got on localhost pp href https stack imgur com e2yY5 png img src https stack imgur com e2yY5 png alt WebSocket results websocket vs socket io module ppSocket IO results that got on localhost pp href https stack imgur com RHymm png img src https stack imgur com RHymm png alt Socket IO results websocket vs socket io module ph2Test yourself h2pQuick start ppre code Install npm websocket vs socket io Run the server websocket vs socket io code prepOpen href http localhost 3001 http localhost 3001 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the WebSocket version ppOpen href http localhost 3002 http localhost 3002 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the Socket IO version ppTo uninstall ppre code Uninstall npm rm websocket vs socket io code preh1Browser compatibility h1pAs of June 2016 WebSocket works on everything except Opera Mini including IE higher than ppThis is the browser compatibility of WebSocket on href http caniuse com feat websockets Can Use as of June 2016 pp href https stack imgur com igTKM png img src https stack imgur com igTKM png alt enter image description here ppSee href http caniuse com websockets http caniuse com websockets for up to date info wouldn say that WebSocket is necessarily better It all depends on the requirements WebSocket advantages are that it is Web standard first under W3C and whatwg now under IETF with an RFC published years ago it is very lightweight because it is natively supported by the browsers but the browser support while being good is not universal Socket IO supports more browsers and has more functionality but also comes with some overhead Sometimes one is better sometimes the other It like choosing between querySelectorAll and jQuery the answer is not always the same Sidenote If you don need support for old browsers or any browsers for that matter since your client is native mobile app then you may consider using WebSocket which is an open standard Socket io is usually used to have WebSocket like functionality on browsers that don support WebSocket WebSocket on the other hand is an open standard has wide support not only in browsers and it has better performance See href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 this answer for more details ppNow since you are already using strongSocket io strong then here is how you can diagnose the problem would try to connect from browser which is main way to connect with Socket io and see if that works If it doesn then it would mean that there problem in your server code If it does then it could mean that there problem in your client That would be the first thing to check Going from there you can narrow the problem and hopefully fix it ppIf you want to have starting point with some working code using Socket io both server site Node js and client side browser vanilla JavaScript then you can see the examples that wrote originally for href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 this answer that are available href https github com rsp node websocket vs socket io rel nofollow on GitHub and href https www npmjs com package websocket vs socket io rel nofollow on npm ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js rel nofollow https github com rsp node websocket vs socket io blob master si js ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html rel nofollow https github com rsp node websocket vs socket io blob master si html ppYou can compare the same code with WebSocket versions ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js rel nofollow https github com rsp node websocket vs socket io blob master ws js ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html rel nofollow https github com rsp node websocket vs socket io blob master ws html ppI hope this can help you evaluate whether staying with Socket io or going with WebSocket is the right decision for you and will give you some working client side code to test your backend The code is href https github com rsp node websocket vs socket io license rel nofollow released under the MIT license open source free software so feel free to use it in your project Last time ve done some research when explaining some misconceptions about websocket vs socket io in this answer https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 the only browser not supporting websocket was opera mini See http caniuse com websockets for up to date info strong See update below for working example strong ph2TL DR example br href https github com rsp node live color rel nofollow noreferrer img src https cdnjs cloudflare com ajax libs webicons webicons webicon github svg height 32 href https heroku com deploy template https github com rsp node live color rel nofollow noreferrer img src https www herokucdn com deploy button png alt Deploy to Heroku h2h2Original answer h2pThere are few problems with your code polliyou re not checking for errors liliyou re using blocking functions liliyou re implicitly relying on file permissions but you re not checking it liliyou re using string concatenation instead of codepath join code to join paths liliyou re constantly polling for new data instead of waiting for it to change liliyou re not catching exceptions of functions that can raise exception liliyou re not waiting for async operations to finish and you don handle errors li olpThe main problem that you re experiencing right now is most likely with the file permissions The good news is that you don need any file access for what you re doing and using files for that is not optimal anyway All you need is to store the color in variable if you don need it it persist between server restarts and even if you do then would use simple database for that ppFor example ppre code some initial value var color ffffff app post message function request response var color request body Body response end get the saved color reading from disk app get color function request response response send color app get function request response response sendFile dirname views index html var listener app listen process env PORT function console log listening on port listener address port code prepThis is the first change that would use don rely on the file system permissions race conditions etc ppAnother problem that you had with your code was using blocking functions inside of request handlers You should never use any blocking function those with Sync in their name except the first tick of the event loop ppAnother improvement that would make would be using WebSocket or Socket io instead of polling for data on regular intervals This would be quite easy to code See this answer for examples pulli href https stackoverflow com questi,,, "ns 10112178 differences between socket io and websockets 38558531 38558531 Differences between socket io and websockets li ulpA plus of doing that would be that all of your students would get the color changed instantly and at the same time instead of in random moments spanning seconds ph2Update h2pI wrote an example of what was describing above ppThe POST endpoint is slightly different it uses code color code route and codecolor abcdef code instead of code message code and codeBody code but you can easily change it if you want see below ppServer code server js ppre code requires removed for brevityconst app express const server http Server app const io socket server let color ffffff app use bodyParser urlencoded extended false app use express static path join dirname html io on connection gt console log Socket io client connected emit color color app post color req res gt color req body color console log Changing color to color io emit color color res send color server listen 3338 gt console log Listening on 3338 code prepHTML page index html ppre code lt doctype html gt lt html lang en gt lt head gt lt meta charset utf gt lt meta name viewport content width device width initial scale gt lt title gt Node Live Color lt title gt lt link href style css rel stylesheet gt lt head gt lt body gt lt h1 gt Node Live Color lt h1 gt lt script src socket io socket io js gt lt script gt lt script src script js gt lt script gt lt body gt lt html gt code prepStyle sheet style css ppre codebody transition background color 2s ease background color fff code prepClient side JavaScript script js ppre codevar io on color function color document body style backgroundColor color code prepWhat is particularly interesting is how simple is the client side code ppFor your original endpoint use this in server js ppre codeapp post message req res gt color req body Body console log Changing color to color io emit color color res end code prepFull example is available on GitHub pulli href https github com rsp node live color rel nofollow noreferrer https github com rsp node live color li ulpI tested it locally and on Heroku You can click this button to deploy it on Heroku and test yourself pp href https heroku com deploy template https github com rsp node live color rel nofollow noreferrer img src https www herokucdn com deploy button png alt Deploy to Heroku ppEnjoy wrote full working example with Socket io see my updated answer strong See update below for working example strong ph2TL DR example br href https github com rsp node live color rel nofollow noreferrer img src https cdnjs cloudflare com ajax libs webicons webicons webicon github svg height 32 href https heroku com deploy template https github com rsp node live color rel nofollow noreferrer img src https www herokucdn com deploy button png alt Deploy to Heroku h2h2Original answer h2pThere are few problems with your code polliyou re not checking for errors liliyou re using blocking functions liliyou re implicitly relying on file permissions but you re not checking it liliyou re using string concatenation instead of codepath join code to join paths liliyou re constantly polling for new data instead of waiting for it to change liliyou re not catching exceptions of functions that can raise exception liliyou re not waiting for async operations to finish and you don handle errors li olpThe main problem that you re experiencing right now is most likely with the file permissions The good news is that you don need any file access for what you re doing and using files for that is not optimal anyway All you need is to store the color in variable if you don need it it persist between server restarts and even if you do then would use simple database for that ppFor example ppre code some initial value var color ffffff app post message function request response var color request body Body response end get the saved color reading from disk app get color function request response response send color app get function request response response sendFile dirname views index html var listener app listen process env PORT function console log listening on port listener address port code prepThis is the first change that would use don rely on the file system permissions race conditions etc ppAnother problem that you had with your code was using blocking functions inside of request handlers You should never use any blocking function those with Sync in their name except the first tick of the event loop ppAnother improvement that would make would be using WebSocket or Socket io instead of polling for data on regular intervals This would be quite easy to code See this answer for examples pulli href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 Differences between socket io and websockets li ulpA plus of doing that would be that all of your students would get the color changed instantly and at the same time instead of in random moments spanning seconds ph2Update h2pI wrote an example of what was describing above ppThe POST endpoint is slightly different it uses code color code route and codecolor abcdef code instead of code message code and codeBody code but you can easily change it if you want see below ppServer code server js ppre code requires removed for brevityconst app express const server http Server app const io socket server let color ffffff app use bodyParser urlencoded extended false app use express static path join dirname html io on connection gt console log Socket io client connected emit color color app post color req res gt color req body color console log Changing color to color io emit color color res send color server listen 3338 gt console log Listening on 3338 code prepHTML page index html ppre code lt doctype html gt lt html lang en gt lt head gt lt meta charset utf gt lt meta name viewport content width device width initial scale gt lt title gt Node Live Color lt title gt lt link href style css rel stylesheet gt lt head gt lt body gt lt h1 gt Node Live Color lt h1 gt lt script src socket io socket io js gt lt script gt lt script src script js gt lt script gt lt body gt lt html gt code prepStyle sheet style css ppre codebody transition background color 2s ease background color fff code prepClient side JavaScript script js ppre codevar io on color function color document body style backgroundColor color code prepWhat is particularly interesting is how simple is the client side code ppFor your original endpoint use this in server js ppre codeapp post message req res gt color req body Body console log Changing color to color io emit color color res end code prepFull example is available on GitHub pulli href https github com rsp node live color rel nofollow noreferrer https github com rsp node live color li ulpI tested it locally and on Heroku You can click this button to deploy it on Heroku and test yourself pp href https heroku com deploy template https github com rsp node live color rel nofollow noreferrer img src https www herokucdn com deploy button png alt Deploy to Heroku ppEnjoy Have you seen the updated answer Does it work for you Any comments""",nice answer enlighten necromancer yearle guru necromancer good answer nice answer good answer nice answer enlighten necromancer necromancer populist nice answer necromancer necromancer necromancer good answer necromancer nice answer nice answer nice answer nice answer good answer great answer nice answer necromancer necromancer good answer nice answer nice answer good answer good answer guru census necromancer tenacious yearle announcer express nice answer necromancer good answer nice answer necromancer nice answer ajax nice answer enlighten nice answer enlighten nice answer great answer good answer nice answer nice answer enlighten json great answer nice answer good answer nice answer necromancer nice answer enlighten necromancer nice answer announcer good answer announcer good answer good answer good answer npm revival necromancer nice answer enlighten necromancer nice answer necromancer necromancer nice answer nice answer nice answer enlighten nice answer good answer mongodb necromancer nice answer yearle guru necromancer nice answer enlighten nice answer enlighten revival nice answer guru good answer necromancer nice answer nice answer enlighten nice answer nice answer enlighten necromancer nice answer nice answer guru great answer good answer nice answer good answer nice answer good answer necromancer good answer nice answer good answer nice answer enlighten revival nice answer enlighten http nice answer enlighten populist difference queryall javascript dom selector api pthe href http dom spec whatwg org dom parentnode query noreferrer definition dom standard understand difference difference codequeryall code code ppthe evaluation logic dom standard smart understand strong codequery code amp codequeryall code strong pblockquote pto match relative selector string set run step plet result parse relative selector set selector pif failure throw javascript typeerror preturn result evaluate selector scope element set selector pthe query method return result run match relative selector string set consist context object null result list pthe queryall method return element array initialize result run match relative selector string set consist context object blockquotep strong code amp code strong pblockquote pto scope match selector string selector node run step plet result parse selector selector selector pif failure throw javascript typeerror preturn result evaluate selector node root scope root node scope method scope filter selector pthe queryselector selector method return result run scope match selector string selector context object null result list pthe selector method return static result run scope match selector string selector context object blockquote update codequeryall code remove dom spec important difference codequeryall code code codequeryall code codequery code strongremove dom specification strong ppthe current version dom specification pulli href http dom spec whatwg org noreferrer http dom spec whatwg org li ulpnote href https org dom noreferrer https org dom outdate fork dom standard href https wiki whatwg org wiki fork tracking noreferrer fork tracking href https wiki whatwg org wiki main page noreferrer whatwg wiki href https stackoverflow question s difference queryall noredirect comment domenic info mention version include codequery code codequeryall code publish march pulli href http web archive org web https dom spec whatwg org noreferrer http web archive org web https dom spec whatwg org aullisee sectionsa href http web archive org web https dom spec whatwg org interface parentnode noreferrer interface parentnode anda href http web archive org web https dom spec whatwg org element collection noreferrer collection element li li version mention codequery code codequeryall code pulli href http web archive org web https dom spec whatwg org noreferrer http web archive org web https dom spec whatwg org aullisee href http web archive org web https dom spec whatwg org interface parentnode noreferrer mixin parentnode li li specification occurance codequery code codequeryall code dom standard href https github whatwg dom commit noreferrer comment anne van kesteren march ppthe current dom specification july mention codequery code codequeryall code pulli href http dom spec whatwg org noreferrer http dom spec whatwg org li ulp code code href https dom spec whatwg org interface parentnode noreferrer mixin parentnode ppit reliable api code code href https stackoverflow question javascript getelement href answer detail href https github whatwg dom issue issuecomment noreferrer discussion github codequery code codequeryall code javascript subclasse build in implement browser return live element array href https stackoverflow question s difference queryall answer boltclock support june mention codequery code codequeryall code mdn pulli href https developer mozilla org search queryall noreferrer https developer mozilla org search queryall li ulpon hand code code document widely support pulli href https developer mozilla org docs web api document queryselector noreferrer https developer mozilla org docs web api document queryselector href https developer mozilla org docs web api document noreferrer https developer mozilla org docs web api document li ulpbrowser support code code href http queryselector noreferrer june href https stack imgur ciqxf png noreferrer img src https stack imgur ciqxf png alt queryselector href http queryselector noreferrer http queryselector date info ppthere info support codequery code codequeryall code info href https stackoverflow question javascript getelement href answer info usage browser support code code cartesian product multiple arrays javascript javascript algorithm functional programming pwhat difference socket websocket node js brare server push technology difference feel polli psocket allow send emit message event lili pin case socket message server reach client websocket force array connection loop send message client li olpalso web inspector chrome firebug fiddler unable catch message socket websocket server ppplease clarify common misconception websocket socket polli pthe misconception socket significantly easy websocket case example lili pthe misconception websocket widely support browser info lili pthe misconception socket downgrade connection fallback old browser assume browser start ajax connection server upgrade browser support websocket traffic exchange detail li experiment write npm module demonstrate difference websocket socket pulli href https npmj package websocket socket https npmj package websocket socket lili href https github rsp node websocket socket https github rsp node websocket socket li ulpit simple server client code client connect server websocket socket server send message interval add dom client server websocket socket express js app server server express js codevar path require path var app require express var require express app app console error express connection sendfile path join dirname html app console error websocket connection var lt settimeout send message server app listen console error listen http localhost console error websocket code prepsource href https github rsp node websocket socket blob master js https github rsp node websocket socket blob master js server server express js codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsource href https github rsp node websocket socket blob master si js https github rsp node websocket socket blob master si js client websocket socket browser client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening websocket connection var websocket window location host error function log error open function log websocket connection open message function log datum code prepsource href https github rsp node websocket socket blob master html https github rsp node websocket socket blob master html client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepsource href https github rsp node websocket socket blob master si html https github rsp node websocket socket blob master si html traffic difference network traffic href https github rsp node websocket socket readme run test result result request request pollihtml page liliconnection upgrade websocket li olp connection upgrade request visible developer tool switch protocol response result request request pollithe html page lilisocket javascript kilobyte lilifirst long polling ajax request lilisecond long polling ajax request lilithird long polling ajax request liliconnection upgrade websocket li result localhost href https stack imgur png img src https stack imgur png alt websocket result websocket socket module ppsocket result localhost href https stack imgur rhymm png img src https stack imgur rhymm png alt socket result websocket socket module start code install npm websocket socket run server websocket socket code prepopen href http localhost http localhost browser open developer tool shift ctrl open network tab reload page ctrl network traffic websocket version ppopen href http localhost http localhost browser open developer tool shift ctrl open network tab reload page ctrl network traffic socket version ppto uninstall code uninstall npm rm websocket socket code compatibility june websocket work opera mini include high ppthis browser compatibility websocket href http feat websocket june href https stack imgur igtkm png img src https stack imgur igtkm png alt enter image description ppsee href http websocket http websocket date info difference socket websocket node js google chrome firebug websocket socket pi frontend communicating node js backend socket point client connect server socket successfully pass simple piece code server codevar app require express var http require http var server http createserver app var require socket listen server connection function emit update console log connect update function emit update console log update server listen function console log listen code prep component codeimport component core import socket client selector main app template lt div lt button click foo style pad background red color white click lt button lt div export class appcomponent title bar socket null constructor socket connect http mysuperwebsite transport websocket socket update function datum console log datum foo socket emit update code prepi wrong guess ppedit finally problem lack parameter emit work pinstead debug code post work server server express js codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsource href https github rsp node websocket socket blob master si js nofollow https github rsp node websocket socket blob master si js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepsource href https github rsp node websocket socket blob master si html nofollow https github rsp node websocket socket blob master si html ppthat href https npmj package websocket socket nofollow instal npm href https github rsp node websocket socket nofollow download github simple work work backend test frontend ppit write href https stackoverflow question difference socket websocket answer mush info socket communication server client node js express angular socket pi nodej server js code strongfirst concept strong codevar http require http var express require express var app express var path require path var conn http createserver app listen function console log server run port var websocketserver require server var wss websocketserver server conn code prepand codeindex html code code java script code lt html lt body lt script src myscript js lt script lt body lt html code prepinside codemyscript js code codevar connection websocket localhost code prepthis work fine open codehttp localhost code browser strongsecond concept strong ppmy codeserver js code codevar websocketserver require server wss websocketserver port wss connection function connection wss listen function console log server start code prepand html client java script similar ppthis work open codehttp localhost code browser clarify doubt method work work pto specifically answer question emwhy web socket behave differently nodej -PRON- answer version code serve html js file client port browser download html ppif work expect serve html js file browser visit href http localhost nofollow noreferrer http localhost connect ppi write code server client websocket href https github rsp node websocket socket nofollow noreferrer github originally write answer href https stackoverflow question difference socket websocket difference socket websocket ppthe relevant part source code question server server express js codevar path require path var app require express var require express app app console error express connection sendfile path join dirname html app console error websocket connection var lt settimeout send message server app listen console error listen http localhost console error websocket code prepsource href https github rsp node websocket socket blob master js nofollow noreferrer https github rsp node websocket socket blob master js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening websocket connection var websocket window location host error function log error open function log websocket connection open message function log datum code prepsource href https github rsp node websocket socket blob master html nofollow noreferrer https github rsp node websocket socket blob master html ppinstead debug code work start work work feel free change project release href https github rsp node websocket socket license nofollow noreferrer mit license web socket behave differently nodej javascript java html node js websocket pi work socket swift client run iphone swift code code socket socketioclient socketurl url string http config log true forcepolle true socket connect socket connect datum ack print socket connect socket emit getdata datum code prepand server codevar express require express var app express var http require http server app var require socket http connection function socket console log user connect socket disconnect function console log user disconnect socket getdata function result console log result app listen function console log code prep xcode console proj log socketengine proj log polling proj log polling proj log socketengine message socket transport polling amp amp proj error socketioclient unknown error server socket transport polling amp amp code prepwhich demonstrate connection server successfully wrong sidenote support browser browser matter client native mobile app websocket open standard socket websocket functionality browser support websocket websocket hand open standard wide support browser performance href https stackoverflow question difference socket websocket answer detail ppnow strongsocket strong diagnose problem connect browser main connect socket work problem server code problem client thing check narrow problem fix ppif start point work code socket server site node js client browser vanilla javascript example write originally href https stackoverflow question difference socket websocket answer href https github rsp node websocket socket nofollow github href https npmj package websocket socket nofollow npm server server express js codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsource href https github rsp node websocket socket blob master si js nofollow https github rsp node websocket socket blob master si js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepsource href https github rsp node websocket socket blob master si html nofollow https github rsp node websocket socket blob master si html ppyou compare code websocket version server server express js codevar path require path var app require express var require express app app console error express connection sendfile path join dirname html app console error websocket connection var lt settimeout send message server app listen console error listen http localhost console error websocket code prepsource href https github rsp node websocket socket blob master js nofollow https github rsp node websocket socket blob master js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening websocket connection var websocket window location host error function log error open function log websocket connection open message function log datum code prepsource href https github rsp node websocket socket blob master html nofollow https github rsp node websocket socket blob master html ppi hope evaluate stay socket websocket decision work client code test backend code href https github rsp node websocket socket license nofollow release mit license open source free software feel free project error socket javascript io node js swift socket pi socket combine express js express application generator bri aswer href https stackoverflow question socket express express generator bin socket express express generator bin brmy problem make socket route folder app js bin js file route index js loading webpage long time give error brstrongbin js strong code create http server var server http createserver app var app ioio attach server code prep strongapp js strong code expressvar app express socket iovar socket app var route require route index code prep strongroute index js strong codemodule export function var app require express var router app router connection function socket console log user connect return router code phere simple socket express github pulli href https github rsp node websocket socket nofollow noreferrer https github rsp node websocket socket li ulpthe backend code codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsee href https github rsp node websocket socket blob master si js nofollow noreferrer https github rsp node websocket socket blob master si js ppas create express app codevar app require express code prepthen create http server app codevar http require http server app code prepand finally http server create socket instance codevar require socket http code prepafter run codehttp listen console error listen http localhost code prepit work ppyou entire github backend frontend code work express socket socket combine express js express application generator javascript node js express socket pi completely programming stage develop website set simple long polling request new message db client create messaging day save message need relation message user pphere div class snippet datum lang js datum hide false datum console true datum babel false xd div class snippet code xd class snippet code js lang js prettyprint override codevar express require express xd var router express router xd var conversation require model conversation xd var promise require promise xd xd homepage xd router function xd render index xd xd xd xd var message xd router inbox function xd var promise promise function resolve reject xd user conversation foreach function xd conversation function err conv xd conv xd message push conv xd message length user conversation length xd resolve message xd message xd xd xd console log err xd xd xd xd function object xd render inbox conver object xd catch function err xd console log err xd xd xd xd add message messagesarray mesgarray display xd var mesgarray xd var useridfor xd router post message function xd var convid body conversationid xd useridfor user xd var promise promise function resolve reject xd conversation convid function err conver xd err xd console log err xd xd conver message foreach function messa xd mesgarray push msg messa msg owner messa msgowner ownername messa msgownername xd mesgarray length conver message length xd resolve mesgarray xd xd xd xd xd function object xd send allmessage object useridfor xd mesgarray xd useridfor xd catch function err xd console log err xd xd xd xd save post message existent conversation xd router post savemsg function xd var conversationid body conversationid xd var messagetosave body message xd console log messagetosave xd console log conversationid xd conversation conversationid function err conversation xd err xd console log err xd xd conversation conversationid function err conversation xd err xd console log err xd xd conversation message push xd msg messagetosave xd msgowner user xd msgownername user firstname xd xd conversation save function err xd err xd console log err xd xd xd xd xd xd xd xd xd module export router code xd class snippet code html lang html prettyprint override code lt script src https ajax googleapi ajax libs jquery jquery min js lt script xd lt replay message box xd lt div class contact form container hide mode xd lt div class row hide contact text xd lt img src image close png xd lt div xd lt form xd lt div class inbox message container xd lt div class row inbox message xd lt message xd lt div xd lt div class row text center inbox send input xd lt div class col lg col col xd lt textarea class inbox message response txt placeholder type message lt textarea xd lt div xd lt div class col lg col col text center inbox message send xd lt class inbox message send msg send lt xd lt div xd lt div xd lt div xd lt form xd lt div xd lt script xd document ready function xd xd var convid xd inbox messager click function xd inbox message xd var conversationid getattribute datum conv xd convid conversationid xd ajax xd url message xd method post xd contenttype application json xd datum json stringify conversationid conversationid xd success function response xd response allmessage foreach function message xd message owner response xd inbox message append xd lt div class row inbox message structure menot xd lt div class row inbox message header xd lt div class inbox message ava col lg col col xd lt img src image avatar jpg class inbox message header ava img xd lt div xd lt div class inbox message header sendername col lg col col xd lt message ownername lt xd lt div xd lt div class col lg col lg offset col col offset col col offset inbox message header senttime text xd lt lt xd lt div xd lt div xd lt div class row inbox message body xd lt div class col lg col lg offset col col offset col col offset text leave xd lt message msg lt xd lt div xd lt div xd lt div xd xd xd xd inbox message append xd lt div class row inbox message structure xd lt div class row inbox message header xd lt div class inbox message ava col lg col col xd lt img src image client jpg class inbox message header ava img xd lt div xd lt div class inbox message header sendername col lg col col xd lt message ownername lt xd lt div xd lt div class col lg col lg offset col col offset col col offset inbox message header senttime text xd lt lt xd lt div xd lt div xd lt div class row inbox message body xd lt div class col lg col lg offset col col offset col col offset text leave tester xd lt message msg lt xd lt div xd lt div xd lt div xd xd xd xd inbox message append lt div lt div xd inbox message scrollto xd xd xd contact form container removeclass hide mode xd messenger contaner addclass stop scroll xd xd xd xd hide contact click function xd contact form container addclass hide mode xd messenger contaner removeclass stop scroll xd xd xd inbox message send msg click function xd var messagetosend inbox message response txt val xd ajax xd url savemsg xd method post xd contenttype application json xd datum json stringify message messagetosend conversationid convid xd success function response xd alert message bien enregistree xd xd xd xd xd xd lt script code xd div xd div xd ppnow send message store mongodb refresh page message set long polling request solution time set loop jquery code break page open conversation improve code set simple technology message refreshing page wonderful ppsorry bad english lot gee pif completely programming create functionality scratch trouble work solution idea ppyou socket sort thing long polling upgrade websocket support simple entire work server send request client codevar path require path var app require express var http require http server app var require socket http app sendfile path join dirname si html connection var lt settimeout emit message message server http listen console error listen http localhost code prepand entire javascript code client codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepfor example explanation href https github rsp node websocket socket nofollow noreferrer project github create demonstrate usage send message client ppsee relate question detail pulli href https stackoverflow question difference socket websocket difference socket websocket lili href https stackoverflow question socket communication server client socket communication server client lili href https stackoverflow question web socket behave differently nodej web socket behave differently nodej lili href https stackoverflow question error socket error socket lili href https stackoverflow question socket combine express js express application generat socket combine express js li node js long polling event loop break code ajax node js long polling pi logo reside public image logo gif nodej code codehttp createserver function writehead content type text plain end world listen code prepit work request localhost logo gif logo serve image update express express emactually work -PRON- question year strongevery answer problem strong example serve image polli codeexpress static code lili codeexpress code lili codeconnect code lili codehttp code lili code li olpall example github href https github rsp node static http server noreferrer https github rsp node static http server ppt result travi href https travi ci org rsp node static http server noreferrer https travi ci org rsp node static http server year question ask href https stackoverflow strongone correct answer strong strong answer problem code problem strongreception strong comment -PRON- explain rely job -PRON- fact people vote comment show lot thing clarification ppfirst good answer serve image node js implement strongstatic file server scratch strong badly good answer stronguse module strong express strongdoe job correctly strong ppanswere comment express -PRON- explain rely job -PRON- note codehttp code module strongalready strong rely job rely job strongat strong raw socket example ppa problem answer codehttp code module strongbroken strong introduce strongrace condition strong stronginsecure path resolution strong lead strongpath traversal vulnerability strong strongblocke strong completely strongfail serve concurrent request strong subtle problem completely break example question ask abstraction provide codehttp code module socket scratch claim ppif question implement static file server scratch learn exercise mean answer post expect strongcorrect strong unreasonable assume serve image serve image future argue write specific custom static file server serve single file hard code path shortsighte hard imagine search answer serve image content solution serve single image general solution serve image ppin short question serve image answer module strongsecure preformant reliable strong strongreadable maintainable future proof strong strongbest practice strong professional node development agree great addition answer show implement functionality manually sadly attempt fail write example ppafter short introduction example job level abstraction functionality serve file codepublic code directory support minumum functionality pullimime type common file liliserve html js css plain text image liliserve codeindex html code default directory index lilirespond error code miss file lilino path traversal vulnerability lilino race condition read file li ulpi test version node version codeexpress static code version href https expressjs starter static file html noreferrer codeexpress static code build middleware href https expressjs noreferrer codeexpress code module ppthis functionality code codevar path require path var express require express var app express var dir path join dirname public app express static dir app listen function console log listen http localhost code codeexpress code version href https expressjs noreferrer codeexpress code module codeexpress static code middleware serve static file implement single route handler stream ppthis simple path traversal countermeasure support limit set common mime type codevar path require path var express require express var app express var f require f var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript app function var file path join dir path replace index html file indexof dir path return status end forbid var type mime path extname file slice text plain var f file open function set content type type pipe error function set content type text plain status end app listen function console log listen http localhost code codeconnect code version href http senchalab github connect noreferrer codeconnect code module level abstraction low codeexpress code ppthis similar functionality codeexpress code version slightly low lever api codevar path require path var connect require connect var app connect var f require f var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript app function var reqpath url tostre split method statuscode setheader content type text plain return end method implement var file path join dir reqpath replace index html file indexof dir path statuscode setheader content type text plain return end forbid var type mime path extname file slice text plain var f file open function setheader content type type pipe error function setheader content type text plain statuscode end app listen function console log listen http localhost code codehttp code version href https nodej org api http html http http noreferrer codehttp code module low level api http node ppthis similar functionality codeconnect code version low level api codevar path require path var http require http var f require f var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript var server http createserver function var reqpath url tostre split method statuscode setheader content type text plain return end method implement var file path join dir reqpath replace index html file indexof dir path statuscode,,,,,,, "setheader content type text plain return end forbid var type mime path extname file slice text plain var f file open function setheader content type type pipe error function setheader content type text plain statuscode end server listen function console log listen http localhost code code version href https nodej org api net html net net noreferrer code module low level api socket node ppthis functionality codehttp code version minimal incomplete http protocol implement scratch support chunk encode load file memory serve size send response statte file loading introduce race condition codevar path require path var net require net var f require f var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript var server net createserver function var input datum function datum input datum input match var line input split split var method line url line pro line var reqpath url tostre split method var body method implement write http implement write content type text plain write content length body length write body destroy return var file path join dir reqpath replace index html file indexof dir path var body forbid write http forbid write content type text plain write content length body length write body destroy return var type mime path extname file slice text plain var f readfile file function err datum err var body write http write content type text plain write content length body length write body destroy write http write content type type write content length datum bytelength write datum destroy server listen function console log listen http localhost code example post example github explanation ppexample codeexpress static code codeexpress code codeconnect code codehttp code code pulli href https github rsp node static http server noreferrer https github rsp node static http server li ulpother project codeexpress static code pulli href https github rsp node express static noreferrer https github rsp node express static li result travi pulli href https travi ci org rsp node static http server noreferrer https travi ci org rsp node static http server li ulpeverythe test node version relate answer pulli href https stackoverflow question fail load resource directory redirect javascript fail load resource directory redirect javascript lili href https stackoverflow question onload js work node onload js work node lili href https stackoverflow question send folder content client express send folder content client express lili href https stackoverflow question loading partial fail server js loading partial fail server js lili href https stackoverflow question node js serve static image node js serve static image li update codequeryall code remove dom spec important difference codequeryall code code codequeryall code codequery code strongremove dom specification strong ppthe current version dom specification pulli href http dom spec whatwg org noreferrer http dom spec whatwg org li ulpnote href https org dom noreferrer https org dom outdate fork dom standard href https wiki whatwg org wiki fork tracking noreferrer fork tracking href https wiki whatwg org wiki main page noreferrer whatwg wiki href https stackoverflow question s difference queryall noredirect comment domenic info mention version include codequery code codequeryall code publish march pulli href http web archive org web https dom spec whatwg org noreferrer http web archive org web https dom spec whatwg org aullisee sectionsa href http web archive org web https dom spec whatwg org interface parentnode noreferrer interface parentnode anda href http web archive org web https dom spec whatwg org element collection noreferrer collection element li li version mention codequery code codequeryall code pulli href http web archive org web https dom spec whatwg org noreferrer http web archive org web https dom spec whatwg org aullisee href http web archive org web https dom spec whatwg org interface parentnode noreferrer mixin parentnode li li specification occurance codequery code codequeryall code dom standard href https github whatwg dom commit noreferrer comment anne van kesteren march ppthe current dom specification july mention codequery code codequeryall code pulli href http dom spec whatwg org noreferrer http dom spec whatwg org li ulp code code href https dom spec whatwg org interface parentnode noreferrer mixin parentnode ppit reliable api code code href https stackoverflow question javascript getelement href answer detail href https github whatwg dom issue issuecomment noreferrer discussion github codequery code codequeryall code javascript subclasse build in implement browser return live element array href https stackoverflow question s difference queryall answer boltclock support june mention codequery code codequeryall code mdn pulli href https developer mozilla org search queryall noreferrer https developer mozilla org search queryall li ulpon hand code code document widely support pulli href https developer mozilla org docs web api document queryselector noreferrer https developer mozilla org docs web api document queryselector href https developer mozilla org docs web api document noreferrer https developer mozilla org docs web api document li ulpbrowser support code code href http queryselector noreferrer june href https stack imgur ciqxf png noreferrer img src https stack imgur ciqxf png alt queryselector href http queryselector noreferrer http queryselector date info ppthere info support codequery code codequeryall code info href https stackoverflow question javascript getelement href answer info usage browser support code code info update answer link point dom spec whatwg org add note outdate fork org fork outdate point update line answer vanilla js answer strongoverly complicate strong line code ppthis strongtwo line vanilla javascript strong lodash underscore library codelet concat map map concat cartesian cartesian code improve strictly follow href http airbnb javascript noreferrer airbnb javascript style guide validate href http eslint org noreferrer eslint href https npmj package eslint config airbnb base noreferrer eslint config airbnb base codeconst concat map map concat const cartesian cartesian code prepspecial strongzubb strong let linter problem original code exact question codelet output cartesian code output command code code demo pulli href http jsbin vihibelome edit js console noreferrer js bin babel browser lili href http jsbin siwefuqina edit js console noreferrer js bin babel modern browser li syntax spread operator rest parameter feature javascript define edition ecma standard publish june develop earlier pulli href http ecma international org ecma noreferrer http ecma international org ecma lili href https developer mozilla org docs web javascript reference function rest parameter noreferrer https developer mozilla org docs web javascript reference function rest parameter lili href https developer mozilla org docs web javascript reference operator spread operator noreferrer https developer mozilla org docs web javascript reference operator spread operator li ulpit make code simple sin platform support natively babel tool transpile old syntax fact transpile babel short simple example matter output transpilation understand maintain fact interesting write line code hard maintain entire library simple thing line vanilla javascript easily job pay modern feature language case support archaic platform native support modern feature babel tool transpile syntax code evolve reason amazing job language design add feature browser vendor amazing job implement feature ppto current state native support feature browser pulli href http noreferrer http lili href https github compat table noreferrer https github compat table li ulpto support node version pulli href http node green noreferrer http node green li ulpto modern syntax platform support natively babel pulli href https babeljs noreferrer https babeljs li let linter problem add version code conform airbnb javascript style guide update question update question question pulli href https stackoverflow question validate string valid date js validate string valid date js li ulpget close duplicate important add fresh info write scare think people copy code post production ppmost answer strongeither strong complex regular expression match specific format incorrectly match january match actual iso date advertise href http jsbin gecixucise edit html js console output noreferrer strongdemo strong strongor strong pass codedate code constructor moment explain href https stackoverflow question validate string valid date js answer library href http momentj noreferrer moment js ppit library parse validate manipulate display date javascript rich api standard javascript date handle function ppit minify gzippe work node js place codebower install moment save bowernpm install moment save npminstall package moment js nugetspm install moment save spmmeteor add momentj moment meteor code prepuse moment specific check valid date important add clue format expect date valid date format mm yyyy case date reject invalid way moment format expect codemoment mm yyyy true isvalid truemoment mm yyyy true isvalid false code prepthe strong codetrue code strong argument moment parse input strongexactly strong conform format provide default behavior opinion ppyou internally provide format codemoment moment iso true isvalid true code prepand multiple format array codevar format moment iso mm yyyy hh mm ss moment format true isvalid truemoment format true isvalid truemoment format true isvalid false code prepsee href http jsbin picazehane edit html js console output noreferrer strongdemo strong library moment js library pulli href http arshaw xdate noreferrer xdate lili href https github abritinthebay datejs noreferrer datejs li update create href https npmj package immoment noreferrer immoment module subset moment surprise cause mutation exist object href https github rsp node immoment readme noreferrer docs info update recommend href https github moment luxon noreferrer luxon date time manipulation moment moment make object immutable nasty surprise relate implicit mutation date info pulli href http sitepoint manage date time moment js noreferrer manage date time moment js jay lili href http sixrevision tutorial javascript date moment js noreferrer work javascript date moment js bradley holbrook li ulpa series article rob gravelle javascript date parse library pulli href http htmlgoodie javascript roundup popular javascript date parse library moment js html noreferrer roundup popular javascript date parse library moment js lili href http htmlgoodie javascript roundup popular javascript date parse library datejs html noreferrer roundup popular javascript date parse library datejs lili href http htmlgoodie javascript js ref roundup popular javascript date parse library xdate html noreferrer roundup popular javascript date parse library xdate li line reinvent wheel write regular expression strongplease strong read iso rfc buit constructor random datum parse error message code invalid date code message strongexactly strong platform locale future strongor strong test solution time improve reinvent library list open source free software expect date format validate problem guess guess valid obvious date problem bad way interpret expect format matter valid mean recommend explicit format preferably iso string update question question pulli href https stackoverflow question validate string valid date js validate string valid date js li ulpget close duplicate important add fresh info write scare think people copy code post production ppmost answer strongeither strong complex regular expression match specific format incorrectly match january match actual iso date advertise href http jsbin gecixucise edit html js console output noreferrer strongdemo strong strongor strong pass codedate code constructor moment explain href https stackoverflow question validate string valid date js answer library href http momentj noreferrer moment js ppit library parse validate manipulate display date javascript rich api standard javascript date handle function ppit minify gzippe work node js place codebower install moment save bowernpm install moment save npminstall package moment js nugetspm install moment save spmmeteor add momentj moment meteor code prepuse moment specific check valid date important add clue format expect date valid date format mm yyyy case date reject invalid way moment format expect codemoment mm yyyy true isvalid truemoment mm yyyy true isvalid false code prepthe strong codetrue code strong argument moment parse input strongexactly strong conform format provide default behavior opinion ppyou internally provide format codemoment moment iso true isvalid true code prepand multiple format array codevar format moment iso mm yyyy hh mm ss moment format true isvalid truemoment format true isvalid truemoment format true isvalid false code prepsee href http jsbin picazehane edit html js console output noreferrer strongdemo strong library moment js library pulli href http arshaw xdate noreferrer xdate lili href https github abritinthebay datejs noreferrer datejs li update create href https npmj package immoment noreferrer immoment module subset moment surprise cause mutation exist object href https github rsp node immoment readme noreferrer docs info update recommend href https github moment luxon noreferrer luxon date time manipulation moment moment make object immutable nasty surprise relate implicit mutation date info pulli href http sitepoint manage date time moment js noreferrer manage date time moment js jay lili href http sixrevision tutorial javascript date moment js noreferrer work javascript date moment js bradley holbrook li ulpa series article rob gravelle javascript date parse library pulli href http htmlgoodie javascript roundup popular javascript date parse library moment js html noreferrer roundup popular javascript date parse library moment js lili href http htmlgoodie javascript roundup popular javascript date parse library datejs html noreferrer roundup popular javascript date parse library datejs lili href http htmlgoodie javascript js ref roundup popular javascript date parse library xdate html noreferrer roundup popular javascript date parse library xdate li line reinvent wheel write regular expression strongplease strong read iso rfc buit constructor random datum parse error message code invalid date code message strongexactly strong platform locale future strongor strong test solution time improve reinvent library list open source free software assumption valid date april recommend add format potentially explicit list support format note mention ambiguous explicit format common misconception websocket socket polli pthe misconception socket significantly easy websocket case example lili pthe misconception websocket widely support browser info lili pthe misconception socket downgrade connection fallback old browser assume browser start ajax connection server upgrade browser support websocket traffic exchange detail li experiment write npm module demonstrate difference websocket socket pulli href https npmj package websocket socket https npmj package websocket socket lili href https github rsp node websocket socket https github rsp node websocket socket li ulpit simple server client code client connect server websocket socket server send message interval add dom client server websocket socket express js app server server express js codevar path require path var app require express var require express app app console error express connection sendfile path join dirname html app console error websocket connection var lt settimeout send message server app listen console error listen http localhost console error websocket code prepsource href https github rsp node websocket socket blob master js https github rsp node websocket socket blob master js server server express js codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsource href https github rsp node websocket socket blob master si js https github rsp node websocket socket blob master si js client websocket socket browser client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening websocket connection var websocket window location host error function log error open function log websocket connection open message function log datum code prepsource href https github rsp node websocket socket blob master html https github rsp node websocket socket blob master html client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepsource href https github rsp node websocket socket blob master si html https github rsp node websocket socket blob master si html traffic difference network traffic href https github rsp node websocket socket readme run test result result request request pollihtml page liliconnection upgrade websocket li olp connection upgrade request visible developer tool switch protocol response result request request pollithe html page lilisocket javascript kilobyte lilifirst long polling ajax request lilisecond long polling ajax request lilithird long polling ajax request liliconnection upgrade websocket li result localhost href https stack imgur png img src https stack imgur png alt websocket result websocket socket module ppsocket result localhost href https stack imgur rhymm png img src https stack imgur rhymm png alt socket result websocket socket module start code install npm websocket socket run server websocket socket code prepopen href http localhost http localhost browser open developer tool shift ctrl open network tab reload page ctrl network traffic websocket version ppopen href http localhost http localhost browser open developer tool shift ctrl open network tab reload page ctrl network traffic socket version ppto uninstall code uninstall npm rm websocket socket code compatibility june websocket work opera mini include high ppthis browser compatibility websocket href http feat websocket june href https stack imgur igtkm png img src https stack imgur igtkm png alt enter image description ppsee href http websocket http websocket date info websocket necessarily depend requirement websocket advantage web standard whatwg ietf rfc publish year ago lightweight natively support browser browser support good universal socket support browser functionality overhead choose jquery answer sidenote support browser browser matter client native mobile app websocket open standard socket websocket functionality browser support websocket websocket hand open standard wide support browser performance href https stackoverflow question difference socket websocket answer detail ppnow strongsocket strong diagnose problem connect browser main connect socket work problem server code problem client thing check narrow problem fix ppif start point work code socket server site node js client browser vanilla javascript example write originally href https stackoverflow question difference socket websocket answer href https github rsp node websocket socket nofollow github href https npmj package websocket socket nofollow npm server server express js codevar path require path var app require express var http require http server app var require socket http app console error express connection sendfile path join dirname si html connection console error socket connection var lt settimeout emit message message server http listen console error listen http localhost console error socket code prepsource href https github rsp node websocket socket blob master si js nofollow https github rsp node websocket socket blob master si js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening socket connection var connect error function log error connect function log socket connection open message function log code prepsource href https github rsp node websocket socket blob master si html nofollow https github rsp node websocket socket blob master si html ppyou compare code websocket version server server express js codevar path require path var app require express var require express app app console error express connection sendfile path join dirname html app console error websocket connection var lt settimeout send message server app listen console error listen http localhost console error websocket code prepsource href https github rsp node websocket socket blob master js nofollow https github rsp node websocket socket blob master js client client vanilla javascript codevar document getelementbyid var log function var document createelement li innertext date toisostre appendchild log opening websocket connection var websocket window location host error function log error open function log websocket connection open message function log datum code prepsource href https github rsp node websocket socket blob master html nofollow https github rsp node websocket socket blob master html ppi hope evaluate stay socket websocket decision work client code test backend code href https github rsp node websocket socket license nofollow release mit license open source free software feel free project time research explain misconception websocket socket answer https stackoverflow question difference socket websocket browser support websocket opera mini http websocket date info strong update work strong href https github rsp node live color nofollow noreferrer img src https cdnjs cloudflare ajax libs webicon webicon webicon github svg height href https heroku deploy template https github rsp node live color nofollow noreferrer img src https herokucdn deploy button png alt deploy heroku answer problem code polliyou check error liliyou block function liliyou implicitly rely file permission check liliyou string concatenation codepath join code join path liliyou constantly polling datum wait change liliyou catch exception function raise exception liliyou wait async operation finish handle error li main problem experience file permission good news file access file optimal store color variable persist server restart simple database ppfor code initial var color ffffff app post message function request response var color request body body response end save color read disk app color function request response response send color app function request response response sendfile dirname view index html var listener app listen process env port function console log listen port listener address port code prepthis change rely file permission race condition ppanother problem code block function request handler block function sync tick event loop ppanother improvement make websocket socket polling datum regular interval easy code answer example pulli href https stackoverflow question difference socket websocket difference socket websocket li ulpa student color change instantly time random moment span second write describe ppthe post endpoint slightly code color code route codecolor code code message code codebody code easily change ppserver code server js code require remove brevityconst app express const server http server app const socket server color ffffff app bodyparser urlencode extend false app express static path join dirname html connection console log socket client connect emit color color app post color color body color console log change color color emit color color send color server listen console log listen code prephtml page index html code lt doctype html lt html lang lt head lt meta charset utf lt meta viewport content width device width initial scale lt title node live color lt title lt link href style css lt head lt body lt node live color lt lt script src socket socket js lt script lt script src script js lt script lt body lt html code prepstyle sheet style css codebody transition background color ease background color code prepclient javascript script js codevar color function color document body style backgroundcolor color code prepwhat interesting simple client code ppfor original endpoint server js codeapp post message color body body console log change color color emit color color end code prepfull github pulli href https github rsp node live color nofollow noreferrer https github rsp node live color li ulpi test locally heroku click button deploy heroku test href https heroku deploy template https github rsp node live color nofollow noreferrer img src https herokucdn deploy button png alt deploy heroku ppenjoy write work socket update answer strong update work strong href https github rsp node live color nofollow noreferrer img src https cdnjs cloudflare ajax libs webicon webicon webicon github svg height href https heroku deploy template https github rsp node live color nofollow noreferrer img src https herokucdn deploy button png alt deploy heroku answer problem code polliyou check error liliyou block function liliyou implicitly rely file permission check liliyou string concatenation codepath join code join path liliyou constantly polling datum wait change liliyou catch exception function raise exception liliyou wait async operation finish handle error li main problem experience file permission good news file access file optimal store color variable persist server restart simple database ppfor code initial var color ffffff app post message function request response var color request body body response end save color read disk app color function request response response send color app function request response response sendfile dirname view index html var listener app listen process env port function console log listen port listener address port code prepthis change rely file permission race condition ppanother problem code block function request handler block function sync tick event loop ppanother improvement make websocket socket polling datum regular interval easy code answer example pulli href https stackoverflow question difference socket websocket difference socket websocket li ulpa student color change instantly time random moment span second write describe ppthe post endpoint slightly code color code route codecolor code code message code codebody code easily change ppserver code server js code require remove brevityconst app express const server http server app const socket server color ffffff app bodyparser urlencode extend false app express static path join dirname html connection console log socket client connect emit color color app post color color body color console log change color color emit color color send color server listen console log listen code prephtml page index html code lt doctype html lt html lang lt head lt meta charset utf lt meta viewport content width device width initial scale lt title node live color lt title lt link href style css lt head lt body lt node live color lt lt script src socket socket js lt script lt script src script js lt script lt body lt html code prepstyle sheet style css codebody transition background color ease background color code prepclient javascript script js codevar color function color document body style backgroundcolor color code prepwhat interesting simple client code ppfor original endpoint server js codeapp post message color body body console log change color color emit color color end code prepfull github pulli href https github rsp node live color nofollow noreferrer https github rsp node live color li ulpi test locally heroku click button deploy heroku test href https heroku deploy template https github rsp node live color nofollow noreferrer img src https herokucdn deploy button png alt deploy heroku ppenjoy update answer work comment""",1,NULL,What the difference between queryAll and querySelectorAll javascript dom selectors api pThe href http dom spec whatwg org dom parentnode query rel noreferrer definitions from the DOM Standard seems almost exactly the same and don understand the difference ppWhat is the difference between codequeryAll code and codequerySelectorAll code ppThe evaluation logic from DOM standard is below but am not smart enough to understand it pp strong codequery code amp codequeryAll code strong pblockquote pTo match relative selectors string relativeSelectors against set run these steps pLet be the result of parse relative selector from relativeSelectors against set SELECTORS pIf is failure throw JavaScript TypeError pReturn the result of evaluate selector using scope elements set SELECTORS pThe query relativeSelectors method must return the first result of running match relative selectors string relativeSelectors against set consisting of context object and null if the result is an empty list pThe queryAll relativeSelectors method must return an Elements array initialized with the result of running match relative selectors string relativeSelectors against set consisting of context object blockquotep strong codequerySelector code amp codequerySelectorAll code strong pblockquote pTo scope match selectors string selectors against node run these steps pLet be the result of parse selector selectors SELECTORS pIf is failure throw JavaScript TypeError pReturn the result of evaluate selector against node root using scoping root node and scoping method scope filtered SELECTORS pThe querySelector selectors method must return the first result of running scope match selectors string selectors against the context object and null if the result is an empty list otherwise pThe querySelectorAll selectors method must return the static result of running scope match selectors string selectors against the context object blockquote h12016 Update h1h2 codequeryAll code was removed from the DOM spec h2pCurrently the most important difference between codequeryAll code and codequerySelectorAll code is that codequeryAll code as well as codequery code was strongremoved from the DOM specification strong ppThe current version of the DOM specification is available at pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulpNote href https www w3 org TR dom rel noreferrer https www w3 org TR dom is an outdated fork of the DOM Standard see href https wiki whatwg org wiki Fork tracking rel noreferrer Fork tracking on the href https wiki whatwg org wiki Main Page rel noreferrer WHATWG Wiki and href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 38245620 noredirect comment63923286 38245620 the comment by Domenic for more info ph2Last mention h2pThe last version that included codequery code and codequeryAll code was published on 15 March 2016 pulli href http web archive org web 20160315085447 https dom spec whatwg org rel noreferrer http web archive org web 20160315085447 https dom spec whatwg org aulliSee sectionsa href http web archive org web 20160315085447 https dom spec whatwg org interface parentnode rel noreferrer Interface ParentNode anda href http web archive org web 20160315085447 https dom spec whatwg org element collections rel noreferrer Collections Elements li ul li ulh2Removal h2pThe next version doesn mention codequery code or codequeryAll code anywhere pulli href http web archive org web 20160329233515 https dom spec whatwg org rel noreferrer http web archive org web 20160329233515 https dom spec whatwg org aulliSee sectiona href http web archive org web 20160329233515 https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode li ul li ulh2Current specification h2pAll occurances of codequery code or codequeryAll code in the DOM standard href https github com whatwg dom commit 10b6cf1ba02806220d5461a3bdb7939728b73635 rel noreferrer were commented out by Anne van Kesteren on March 29 2016 ppThe current DOM specification as of July 2016 doesn mention codequery code or codequeryAll code at all pulli href http dom spec whatwg org rel noreferrer http dom spec whatwg org li ulp codequerySelector code and codequerySelectorAll code are in sectiona href https dom spec whatwg org interface parentnode rel noreferrer Mixin ParentNode ppIt seems that currently the only reliable API is codequerySelector code and codequerySelectorAll code see href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more details and according to href https github com whatwg dom issues 39 issuecomment 231056316 rel noreferrer this discussion on GitHub codequery code and codequeryAll code will not be available until the JavaScript subclassing of built ins is implemented in the browsers and even then it will be unlikely to return live Elements array as described in href https stackoverflow com questions 23269785 whats the difference between queryall and queryselectorall 23270016 23270016 the answer by BoltClock ph2Browser support h2pAs of June 2016 there is no mention of codequery code and codequeryAll code on MDN pulli href https developer mozilla org en US search queryall rel noreferrer https developer mozilla org en US search queryall li ulpOn the other hand codequerySelector code and codequerySelectorAll code are well documented and widely supported pulli href https developer mozilla org en US docs Web API Document querySelector rel noreferrer https developer mozilla org en US docs Web API Document querySelector aa href https developer mozilla org en US docs Web API Document querySelectorAll rel noreferrer https developer mozilla org en US docs Web API Document querySelectorAll li ulpBrowser support of codequerySelector code codequerySelectorAll code according to href http caniuse com queryselector rel noreferrer Can use as of June 2016 pp href https stack imgur com cIQXF png rel noreferrer img src https stack imgur com cIQXF png alt caniuse com queryselector See href http caniuse com queryselector rel noreferrer http caniuse com queryselector for up to date info ppThere is no info available on the support of codequery code and codequeryAll code ph2More info h2pSee also href https stackoverflow com questions 10572735 javascript getelement by href 37820644 37820644 this answer for more info on the usage and browser support of codequerySelector code and codequerySelectorAll code Cartesian product of multiple arrays in JavaScript javascript algorithm functional programming pWhat are the differences between socket io and websockets in node js brAre they both server push technologies The only differences felt was polli psocket io allowed me to send emit messages by specifying an event name lili pIn the case of socket io message from server will reach on all clients but for the same in websockets was forced to keep an array of all connections and loop through it to send messages to all clients li olpAlso wonder why web inspectors like Chrome firebug fiddler are unable to catch these messages from socket io websocket from server ppPlease clarify this h1Misconceptions h1pThere are few common misconceptions regarding WebSocket and Socket IO polli pThe first misconception is that using Socket IO is significantly easier than using WebSocket which doesn seem to be the case See examples below lili pThe second misconception is that WebSocket is not widely supported in the browsers See below for more info lili pThe third misconception is that Socket IO downgrades the connection as fallback on older browsers It actually assumes that the browser is old and starts an AJAX connection to the server that gets later upgraded on browsers supporting WebSocket after some traffic is exchanged See below for details li olh1My experiment h1pI wrote an npm module to demonstrate the difference between WebSocket and Socket IO pulli href https www npmjs com package websocket vs socket io https www npmjs com package websocket vs socket io lili href https github com rsp node websocket vs socket io https github com rsp node websocket vs socket io li ulpIt is simple example of server side and client side code the client connects to the server using either WebSocket or Socket IO and the server sends three messages in 1s intervals which are added to the DOM by the client ph1Server side h1pCompare the server side example of using WebSocket and Socket IO to do the same in an Express js app ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js https github com rsp node websocket vs socket io blob master ws js ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js https github com rsp node websocket vs socket io blob master si js ph1Client side h1pCompare the client side example of using WebSocket and Socket IO to do the same in the browser ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html https github com rsp node websocket vs socket io blob master ws html ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html https github com rsp node websocket vs socket io blob master si html ph1Network traffic h1pTo see the difference in network traffic you can href https github com rsp node websocket vs socket io readme run my test Here are the results that got ph2WebSocket Results h2h32 requests 50 KB 05 h3pFrom those requests polliHTML page itself liliconnection upgrade to WebSocket li olp The connection upgrade request is visible on the developer tools with 101 Switching Protocols response ph2Socket IO Results h2h36 requests 181 56 KB 25 h3pFrom those requests pollithe HTML page itself liliSocket IO JavaScript 180 kilobytes lilifirst long polling AJAX request lilisecond long polling AJAX request lilithird long polling AJAX request liliconnection upgrade to WebSocket li olh2Screenshots h2pWebSocket results that got on localhost pp href https stack imgur com e2yY5 png img src https stack imgur com e2yY5 png alt WebSocket results websocket vs socket io module ppSocket IO results that got on localhost pp href https stack imgur com RHymm png img src https stack imgur com RHymm png alt Socket IO results websocket vs socket io module ph2Test yourself h2pQuick start ppre code Install npm websocket vs socket io Run the server websocket vs socket io code prepOpen href http localhost 3001 http localhost 3001 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the WebSocket version ppOpen href http localhost 3002 http localhost 3002 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the Socket IO version ppTo uninstall ppre code Uninstall npm rm websocket vs socket io code preh1Browser compatibility h1pAs of June 2016 WebSocket works on everything except Opera Mini including IE higher than ppThis is the browser compatibility of WebSocket on href http caniuse com feat websockets Can Use as of June 2016 pp href https stack imgur com igTKM png img src https stack imgur com igTKM png alt enter image description here ppSee href http caniuse com websockets http caniuse com websockets for up to date info Differences between socket io and websockets node js google chrome firebug websocket socket io pI currently trying to have an angular2 frontend communicating with node js backend with socket io The point is get the client connected to the server but after that no socket call can be successfully passed between them Here is simple piece code for the server ppre codevar app require express var http require http var server http createServer app var io require socket io listen server io on connection function io emit update console log Connected io on updated function io emit update console log Updated server listen 5000 function console log Listening on 5000 code prep and for the component ppre codeimport Component from core import as io from socket io client selector main app template lt div gt lt button click foo style padding 20px background red color white gt click me lt button gt lt div gt export class AppComponent title bar socket null constructor let self this self socket io connect http mysuperwebsite 5000 transports websocket self socket on update function data console log data foo let self this self socket emit updated code prepI can get what is wrong guess you will Thanks for your help ppEDIT Finally the problem seemed to come from the lack of second parameter in io emit Now it works thanks you very much pInstead of debugging your code ll post you an example that works and you can go from there ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js rel nofollow https github com rsp node websocket vs socket io blob master si js ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html rel nofollow https github com rsp node websocket vs socket io blob master si html ppThat example can be href https www npmjs com package websocket vs socket io rel nofollow installed from npm or href https github com rsp node websocket vs socket io rel nofollow downloaded from GitHub It as simple as it gets and it known to work so you can have working backend part to test your frontend with ppIt was written for href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 this answer you can find mush more info there socket io no communication between server and client node js express angular socket io pI have Nodejs Server js code pp strongfirst Concept strong ppre codevar http require http var express require express var app express var path require path var conn http createServer app listen 3000 function console log server Running at Port 3000 var WebSocketServer require ws Server var wss new WebSocketServer server conn code prepand have codeindex html code code with java script ppre code lt html gt lt body gt lt script src myscript js gt lt script gt lt body gt lt html gt code prepinside codemyscript js code have ppre codevar connection new WebSocket ws localhost 3000 code prepThis is working fine when open codehttp localhost 3000 code on browser pp strongsecond Concept strong ppmy codeserver js code ppre codevar WebSocketServer require ws Server wss new WebSocketServer port 3000 wss on connection function connection wss on listening function console log Server started code prepand HTML and client java script is similar as above ppThis is not working when open codehttp localhost 3000 code on browser why want to clarify my doubt Why the first method working and second is not working pTo specifically answer your question emwhy web socket behave differently on nodejs em the answer is It shouldn In the second version of your code you are not serving any HTML or JS files to the client on the port 3000 so the browser can download any HTML ppIf you want it to work as expected then you need to serve some HTML and JS files to the browser that visits href http localhost 3000 rel nofollow noreferrer http localhost 3000 or otherwise it will not be able to connect ppI wrote some example code both server side and client side on how to use WebSocket to do exactly what you are trying to do here It href https github com rsp node websocket vs socket io rel nofollow noreferrer available on GitHub and originally wrote it for this answer href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 Differences between socket io and websockets ppThe relevant parts of the source code for your question here are ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js rel nofollow noreferrer https github com rsp node websocket vs socket io blob master ws js ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html rel nofollow noreferrer https github com rsp node websocket vs socket io blob master ws html ppInstead of debugging code that it not working sometimes it better to start from something that works and go from there Take look at how it all works and feel free to change it and use it in your projects it released under href https github com rsp node websocket vs socket io license rel nofollow noreferrer MIT license why web socket behave differently on nodejs javascript java html node js websocket pI am currently working with socket io swift client Running on Iphone SE this is the swift code ppre code let socket SocketIOClient socketURL URL string http example com 4000 config log true forcePolling true socket connect socket on connect data ack in print socket is connected socket emit getData data code prepAnd on the server ppre codevar express require express var app express var http require http Server app var io require socket io http io on connection function socket console log user connected socket on disconnect function console log user disconnected socket on getData function result console log result app listen 4000 function console log on at 4000 code prep And on the Xcode console get ppre code2016 09 29 16 38 33 871895 proj 3070 1019256 LOG SocketEngine Handshaking2016 09 29 16 38 33 872301 proj 3070 1019256 LOG SocketEnginePolling Doing polling request2016 09 29 16 38 34 004312 proj 3070 1019256 LOG SocketEnginePolling Got polling response2016 09 29 16 38 34 004874 proj 3070 1019283 LOG SocketEngine Got message Cannot GET socket io transport polling amp amp b64 12016 09 29 16 38 34 005283 proj 3070 1019283 ERROR SocketIOClient Got unknown error from server Cannot GET socket io transport polling amp amp b64 code prepWhich demonstrates connection is made and the server is successfully found but something else is wrong Would appreciate any help Sidenote If you don need support for old browsers or any browsers for that matter since your client is native mobile app then you may consider using WebSocket which is an open standard Socket io is usually used to have WebSocket like functionality on browsers that don support WebSocket WebSocket on the other hand is an open standard has wide support not only in browsers and it has better performance See href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 this answer for more details ppNow since you are already using strongSocket io strong then here is how you can diagnose the problem would try to connect from browser which is main way to connect with Socket io and see if that works If it doesn then it would mean that there problem in your server code If it does then it could mean that there problem in your client That would be the first thing to check Going from there you can narrow the problem and hopefully fix it ppIf you want to have starting point with some working code using Socket io both server site Node js and client side browser vanilla JavaScript then you can see the examples that wrote originally for href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 this answer that are available href https github com rsp node websocket vs socket io rel nofollow on GitHub and href https www npmjs com package websocket vs socket io rel nofollow on npm ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js rel nofollow https github com rsp node websocket vs socket io blob master si js ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html rel nofollow https github com rsp node websocket vs socket io blob master si html ppYou can compare the same code with WebSocket versions ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js rel nofollow https github com rsp node websocket vs socket io blob master ws js ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html rel nofollow https github com rsp node websocket vs socket io blob master ws html ppI hope this can help you evaluate whether staying with Socket io or going with WebSocket is the right decision for you and will give you some working client side code to test your backend The code is href https github com rsp node websocket vs socket io license rel nofollow released under the MIT license open source free software so feel free to use it in your project getting an error when trying to use socket io javascript ios node js swift sockets pI trying to use Socket io combined with Express JS using Express application generator brI ve found some aswers how to do this href https stackoverflow com questions 24609991 using socket io in express and express generators bin www Using socket io in Express and express generator 39 bin www brMy problem is that cannot make use of the sockets inside the routes folder can use them in the app js and bin www js files When call the route index js it just keeps loading the webpage for long time without giving any errors br brstrongbin www js strong ppre code Create HTTP server var server http createServer app var io app ioio attach server code prep strongapp js strong ppre code Expressvar app express Socket iovar io socket io app io io var routes require routes index io code prep strongroutes index js strong ppre codemodule exports function io var app require express var router app Router io on connection function socket console log User connected return router code pre pHere is simple example on how to use Socket io with Express that made available on GitHub here pulli href https github com rsp node websocket vs socket io rel nofollow noreferrer https github com rsp node websocket vs socket io li ulpThe backend code is this ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSee href https github com rsp node websocket vs socket io blob master si js rel nofollow noreferrer https github com rsp node websocket vs socket io blob master si js ppAs you can see here am creating the express app with ppre codevar app require express code prepThen create an http server with that app with ppre codevar http require http Server app code prepAnd finally use that http server to create the Socket io instance ppre codevar io require socket io http code prepAfter running ppre codehttp listen 3002 gt console error listening on http localhost 3002 code prepit all works together ppYou can see the entire example on GitHub with both backend and frontend code that works It currently uses Express 14 and socket io How to use Socket io combined with Express JS using Express application generator javascript node js express socket io pI am completely new to programming and at this stage of developing my website need to set up simple long polling request to get the newest messages from the db and then show them to the client created messaging system last day and now it saves the messages with all needed relations between messages and users ppHere is what did pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar express require express xD var router express Router xD var Conversation require models conversation xD var Promise require promise xD xD Get Homepage xD router get function req res xD res render index xD xD xD xD var messages xD router get inbox function req res xD var promise new Promise function resolve reject xD req user conversations forEach function id xD Conversation getConversationById id function err conv xD if conv xD messages push conv xD if messages length req user conversations length xD resolve messages xD messages xD xD else xD console log err xD xD xD xD then function object xD res render inbox convers object xD catch function err xD console log err xD xD xD xD Add new messages to messagesArray gt mesgArray to display them xD var mesgArray xD var userIdFor xD router post messages function req res xD var convId req body conversationId xD userIdFor req user id xD var promise new Promise function resolve reject xD Conversation getConversationById convId function err conver xD if err xD console log err xD else xD conver messages forEach function messa xD mesgArray push msg messa msg owner messa msgOwner ownerName messa msgOwnerName xD if mesgArray length conver messages length xD resolve mesgArray xD xD xD xD xD then function object xD res send allMessages object userId userIdFor xD mesgArray xD userIdFor xD catch function err xD console log err xD xD xD xD Save posted message to existent conversation xD router post saveMsg function req res xD var conversationId req body conversationId xD var messageToSave req body message xD console log messageToSave xD console log conversationId xD Conversation getConversationById conversationId function err conversation xD if err xD console log err xD else xD Conversation getConversationById conversationId function err conversation xD if err xD console log err xD else xD conversation messages push xD msg messageToSave xD msgOwner req user id xD msgOwnerName req user firstName xD xD conversation save function err xD if err xD console log err xD xD xD xD xD xD xD xD xD module exports router code pre xD pre class snippet code html lang html prettyprint override code lt script src https ajax googleapis com ajax libs jquery jquery min js gt lt script gt xD lt REPLAY MESSAGE BOX gt xD lt div class contact form container hidden mode gt xD lt div class row hide contact text right gt xD lt img src images close png gt xD lt div gt xD lt form gt xD lt div class inbox all messages container gt xD lt div class row inbox all messages gt xD lt Here will be all the messages gt xD lt div gt xD lt div class row text center inbox send input gt xD lt div class col lg 11 col md 11 col sm 11 gt xD lt textarea class inbox message response txt placeholder Type your message here gt lt textarea gt xD lt div gt xD lt div class col lg col md col sm text center inbox message send btn gt xD lt class inbox message send msg btn gt Send lt gt xD lt div gt xD lt div gt xD lt div gt xD lt form gt xD lt div gt xD lt script gt xD document ready function xD xD var convId xD inbox messager on click function xD inbox all messages empty xD var conversationId this getAttribute data conv id xD convId conversationId xD ajax xD url messages xD method POST xD contentType application json xD data JSON stringify conversationId conversationId xD success function response xD response allMessages forEach function message xD if message owner response userId xD inbox all messages append xD lt div class row inbox message structure meNot gt xD lt div class row inbox message header gt xD lt div class inbox message ava col lg col md col sm gt xD lt img src images avatar jpg class inbox message header ava img gt xD lt div gt xD lt div class inbox message header senderName col lg col md col sm gt xD lt gt message ownerName lt gt xD lt div gt xD lt div class col lg col lg offset col md col md offset col sm col sm offset inbox message header sentTime text right gt xD lt gt 24 05 2016 lt gt xD lt div gt xD lt div gt xD lt div class row inbox message body gt ,,,,, "D lt div class col lg col lg offset col md col md offset col sm col sm offset text left gt xD lt gt message msg lt gt xD lt div gt xD lt div gt xD lt div gt xD xD xD else xD inbox all messages append xD lt div class row inbox message structure me gt xD lt div class row inbox message header gt xD lt div class inbox message ava col lg col md col sm gt xD lt img src images client jpg class inbox message header ava img gt xD lt div gt xD lt div class inbox message header senderName col lg col md col sm gt xD lt gt message ownerName lt gt xD lt div gt xD lt div class col lg col lg offset col md col md offset col sm col sm offset inbox message header sentTime text right gt xD lt gt 24 05 2016 lt gt xD lt div gt xD lt div gt xD lt div class row inbox message body gt xD lt div class col lg col lg offset col md col md offset col sm col sm offset text left tester gt xD lt gt message msg lt gt xD lt div gt xD lt div gt xD lt div gt xD xD xD xD inbox all messages append lt div id bottom gt lt div gt xD inbox all messages scrollTo bottom 100 max xD xD xD contact form container removeClass hidden mode xD messenger contaner addClass stop scroll xD xD xD xD hide contact on click function xD contact form container addClass hidden mode xD messenger contaner removeClass stop scroll xD xD xD inbox message send msg btn on click function xD var messageToSend inbox message response txt val xD ajax xD url saveMsg xD method POST xD contentType application json xD data JSON stringify message messageToSend conversationId convId xD success function response xD alert le message bien ete enregistree xD xD xD xD xD xD lt script gt code pre xD div xD div xD ppNow can send messages and store them in my mongoDB but need to refresh the page to get the new messages So am trying to set up long polling request but can find solution because each time set loop in my jQuery code it breaks the whole page and it can open conversation no more If someone can help me to improve my code and set up simple no technology to get the message without refreshing the page it would be so wonderful ppSorry for my bad English And thank you lot for geing there for us pIf you are completely new to programming as you said then instead of trying to create the functionality from scratch that you have trouble with maybe using working solution would be better idea ppYou can use Socket io for that sort of thing It uses long polling and tries to upgrade to WebSocket if it supported It very simple to use Here is an entire working example of server that sends requests to the client ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt res sendFile path join dirname si html io on connection gt for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 code prepAnd here is the entire JavaScript code on the client ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepFor more examples and better explanation see href https github com rsp node websocket vs socket io rel nofollow noreferrer the project on GitHub which created to demonstrate the usage of sending messages to the client ppSee also other related questions for more details pulli href https stackoverflow com questions 10112178 differences between socket io and websockets 38558531 38558531 Differences between socket io and websockets lili href https stackoverflow com questions 39619449 socket io no communication between server and client 39619862 39619862 socket io no communication between server and client lili href https stackoverflow com questions 39765427 why web socket behave differently on nodejs 39765994 39765994 why web socket behave differently on nodejs lili href https stackoverflow com questions 39786269 getting an error when trying to use socket io 39786373 39786373 getting an error when trying to use socket io lili href https stackoverflow com questions 40747828 how to use socket io combined with express js using express application generat 40747932 40747932 How to use Socket io combined with Express JS li ul Node js long polling event loop breaks the whole code ajax node js html5 long polling pI have logo that is residing at the public images logo gif Here is my nodejs code ppre codehttp createServer function req res res writeHead 200 Content Type text plain res end Hello World listen 8080 127 code prepIt works but when request for localhost 8080 logo gif then obviously don get the logo ppWhat changes need to do to serve an image h12016 Update h1h2Examples with Express and without Express that emactually work em h2pThis question is over years old but strongevery answer has some problems strong ph2TL DR h2pScroll down for examples to serve an image with polli codeexpress static code lili codeexpress code lili codeconnect code lili codehttp code lili codenet code li olpAll of the examples are also on GitHub href https github com rsp node static http servers rel noreferrer https github com rsp node static http servers ppTest results are available on Travis href https travis ci org rsp node static http servers rel noreferrer https travis ci org rsp node static http servers ph2Introduction h2pAfter over years since this question was asked there is only href https stackoverflow com 5823807 613198 strongone correct answer strong by stronggeneralhenry strong but even though that answer has no problems with the code it seems to have some problems with strongreception strong It was commented that it em doesn explain much other than how to rely on someone else to get the job done em and the fact how many people have voted this comment up clearly shows that lot of things need clarification ppFirst of all good answer to How to serve images using Node js is not implementing strongstatic file server from scratch strong and doing it badly good answer is strongusing module strong like Express that strongdoes the job correctly strong ppAnswering comments that say that using Express em doesn explain much other than how to rely on someone else to get the job done em it should be noted that using the codehttp code module strongalready strong relies on someone else to get the job done If someone doesn want to rely on anyone to get the job done then strongat least strong raw TCP sockets should be used instead which do in one of my examples below ppA more serious problem is that all of the answers here that use the codehttp code module are strongbroken strong They introduce strongrace conditions strong stronginsecure path resolution strong that will lead to strongpath traversal vulnerability strong strongblocking strong that will completely strongfail to serve any concurrent requests strong at all and other subtle problems they are completely broken as examples of what the question asks about and yet they already use the abstraction that is provided by the codehttp code module instead of using TCP sockets so they don even do everything from scratch as they claim ppIf the question was How to implement static file server from scratch as learning exercise then by all means answers how to do that should be posted but even then we should expect them to at least be strongcorrect strong Also it is not unreasonable to assume that someone who wants to serve an image might want to serve more images in the future so one could argue that writing specific custom static file server that can serve only one single file with hard coded path is somewhat shortsighted It seems hard to imagine that anyone who searches for an answer on how to serve an image would be content with solution that serves just single image instead of general solution to serve any image ppIn short the question is how to serve an image and an answer to that is to use an appropriate module to do that in strongsecure preformant and reliable way strong that is strongreadable maintainable and future proof strong while using the strongbest practice strong of professional Node development But agree that great addition to such an answer would be showing way to implement the same functionality manually but sadly every attempt to do that has failed so far And that is why wrote some new examples ppAfter this short introduction here are my five examples doing the job on different levels of abstraction ph2Minimum functionality h2pEvery example serves files from the codepublic code directory and supports the minumum functionality of pulliMIME types for most common files liliserves HTML JS CSS plain text and images liliserves codeindex html code as default directory index liliresponds with error codes for missing files lilino path traversal vulnerabilities lilino race conditions while reading files li ulpI tested every version on Node versions and ph2 codeexpress static code h2pThis version uses the href https expressjs com en starter static files html rel noreferrer codeexpress static code built in middleware of the href https expressjs com rel noreferrer codeexpress code module ppThis example has the most functionality and the least amount of code ppre codevar path require path var express require express var app express var dir path join dirname public app use express static dir app listen 3000 function console log Listening on http localhost 3000 code preh2 codeexpress code h2pThis version uses the href https expressjs com rel noreferrer codeexpress code module but without the codeexpress static code middleware Serving static files is implemented as single route handler using streams ppThis example has simple path traversal countermeasures and supports limited set of most common MIME types ppre codevar path require path var express require express var app express var fs require fs var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript app get function req res var file path join dir req path replace index html if file indexOf dir path sep return res status 403 end Forbidden var type mime path extname file slice text plain var fs createReadStream file on open function res set Content Type type pipe res on error function res set Content Type text plain res status 404 end Not found app listen 3000 function console log Listening on http localhost 3000 code preh2 codeconnect code h2pThis version uses the href http senchalabs github com connect rel noreferrer codeconnect code module which is one level of abstraction lower than codeexpress code ppThis example has similar functionality to the codeexpress code version but using slightly lower lever APIs ppre codevar path require path var connect require connect var app connect var fs require fs var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript app use function req res var reqpath req url toString split if req method GET res statusCode 501 res setHeader Content Type text plain return res end Method not implemented var file path join dir reqpath replace index html if file indexOf dir path sep res statusCode 403 res setHeader Content Type text plain return res end Forbidden var type mime path extname file slice text plain var fs createReadStream file on open function res setHeader Content Type type pipe res on error function res setHeader Content Type text plain res statusCode 404 res end Not found app listen 3000 function console log Listening on http localhost 3000 code preh2 codehttp code h2pThis version uses the href https nodejs org api http html http http rel noreferrer codehttp code module which is the lowest level API for HTTP in Node ppThis example has similar functionality to the codeconnect code version but using even more lower level APIs ppre codevar path require path var http require http var fs require fs var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript var server http createServer function req res var reqpath req url toString split if req method GET res statusCode 501 res setHeader Content Type text plain return res end Method not implemented var file path join dir reqpath replace index html if file indexOf dir path sep res statusCode 403 res setHeader Content Type text plain return res end Forbidden var type mime path extname file slice text plain var fs createReadStream file on open function res setHeader Content Type type pipe res on error function res setHeader Content Type text plain res statusCode 404 res end Not found server listen 3000 function console log Listening on http localhost 3000 code preh2 codenet code h2pThis version uses the href https nodejs org api net html net net rel noreferrer codenet code module which is the lowest level API for TCP sockets in Node ppThis example has some of the functionality of the codehttp code version but the minimal and incomplete HTTP protocol has been implemented from scratch Since it doesn support chunked encoding it loads the files into memory before serving them to know the size before sending response because statting the files and then loading would introduce race condition ppre codevar path require path var net require net var fs require fs var dir path join dirname public var mime html text html txt text plain css text css gif image gif jpg image jpeg png image png svg image svg xml js application javascript var server net createServer function con var input con on data function data input data if input match var line input split split var method line url line pro line var reqpath url toString split if method GET var body Method not implemented con write HTTP 501 Not Implemented con write Content Type text plain con write Content Length body length con write body con destroy return var file path join dir reqpath replace index html if file indexOf dir path sep var body Forbidden con write HTTP 403 Forbidden con write Content Type text plain con write Content Length body length con write body con destroy return var type mime path extname file slice text plain var fs readFile file function err data if err var body Not Found con write HTTP 404 Not Found con write Content Type text plain con write Content Length body length con write body con destroy else con write HTTP 200 OK con write Content Type type con write Content Length data byteLength con write data con destroy server listen 3000 function console log Listening on http localhost 3000 code preh2Download examples h2pI posted all of the examples on GitHub with more explanation ppExamples with codeexpress static code codeexpress code codeconnect code codehttp code and codenet code pulli href https github com rsp node static http servers rel noreferrer https github com rsp node static http servers li ulpOther project using only codeexpress static code pulli href https github com rsp node express static example rel noreferrer https github com rsp node express static example li ulh2Tests h2pTest results are available on Travis pulli href https travis ci org rsp node static http servers rel noreferrer https travis ci org rsp node static http servers li ulpEverything is tested on Node versions and ph2See also h2pOther related answers pulli href https stackoverflow com questions 38441863 failed to load resource from same directory when redirecting javascript 38442747 38442747 Failed to load resource from same directory when redirecting Javascript lili href https stackoverflow com questions 38587286 onload js call not working with node 38587729 38587729 onload js call not working with node lili href https stackoverflow com questions 40509666 sending whole folder content to client with express 40510339 40510339 Sending whole folder content to client with express lili href https stackoverflow com questions 40722476 loading partials fails on the server js 40722594 40722594 Loading partials fails on the server JS lili href https stackoverflow com questions 40837359 node js not serving the static image 40839534 40839534 Node JS not serving the static image li ul""",,,,,,,, 63128,698,123132,Good Question Popular Question Yearling Nice Answer Promoter,NULL,NULL,0,NULL,NULL 63129,142599,996913,Popular Question,NULL,NULL,0,NULL,NULL 63130,1349417,1355710,Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63131,304029,602045,NULL,NULL,NULL,0,NULL,NULL 63132,103453,425333,Popular Question,NULL,NULL,0,NULL,NULL 63133,315219,76957,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63134,429907,1081548,Student Scholar Yearling Necromancer Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 63135,3437,1218365,NULL,NULL,NULL,0,NULL,NULL 63136,52854,846055,NULL,NULL,NULL,0,NULL,NULL 63137,94641,1200924,NULL,NULL,NULL,0,NULL,NULL 63138,444707,1176115,NULL,NULL,NULL,0,NULL,NULL 63139,1148283,900120,NULL,NULL,NULL,0,NULL,NULL 63140,359066,1192320,NULL,NULL,NULL,0,NULL,NULL 63141,8773576,1192320,NULL,NULL,NULL,0,NULL,NULL 63142,502546,413340,NULL,NULL,NULL,0,NULL,NULL 63143,414708,288169,NULL,NULL,NULL,0,NULL,NULL 63144,104856,642576,NULL,NULL,NULL,0,NULL,NULL 63145,38441,1117029,Revival Popular Question Popular Question Revival Popular Question Notable Question Yearling Notable Question Yearling Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 63146,888288,1450182,Enthusiast,NULL,NULL,0,NULL,NULL 63147,661955,1353826,NULL,NULL,NULL,0,NULL,NULL 63148,88025,1169576,Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 63149,283048,400034,NULL,NULL,NULL,0,NULL,NULL 63150,55245,1347379,NULL,NULL,,0,, 63151,331820,1282357,Caucus,NULL,NULL,0,NULL,NULL 63152,483229,1354150,Student,NULL,NULL,0,NULL,NULL 63153,174633,1391217,NULL,NULL,NULL,0,NULL,NULL 63154,1553137,575042,NULL,NULL,NULL,0,NULL,NULL 63155,68813,1217957,NULL,NULL,NULL,0,NULL,NULL 63156,72632,204819,Popular Question Nice Answer Enlightened Announcer Nice Answer Nice Answer Necromancer Yearling Popular Question Custodian Custodian Nice Answer javascript Necromancer Caucus Yearling Nice Question Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 63157,694245,426476,NULL,NULL,NULL,0,NULL,NULL 63158,32857,417344,NULL,NULL,NULL,0,NULL,NULL 63159,71795,229824,Yearling flash Yearling,NULL,NULL,0,NULL,NULL 63160,357050,1360077,NULL,NULL,NULL,0,NULL,NULL 63161,396,12043,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 63162,6189609,12043,Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 63163,932317,298520,NULL,NULL,NULL,0,NULL,NULL 63164,463561,1373846,Popular Question,NULL,NULL,0,NULL,NULL 63165,71978,431891,Notable Question Popular Question Nice Answer Yearling Census Revival Necromancer Yearling Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 63166,44059,1304633,NULL,NULL,NULL,0,NULL,NULL 63167,194729,1304633,NULL,NULL,NULL,0,NULL,NULL 63168,73986,872230,NULL,NULL,NULL,0,NULL,NULL 63169,340210,720832,Revival Revival,NULL,NULL,0,NULL,NULL 63170,12909,597487,Informed Civic Duty Documentation User Census Teacher,NULL,NULL,0,NULL,NULL 63171,249010,130664,NULL,NULL,NULL,0,NULL,NULL 63172,52790,729146,Yearling Revival Yearling Revival Custodian Critic Caucus Student Scholar,NULL,NULL,0,NULL,NULL 63173,199112,1268384,NULL,NULL,NULL,0,NULL,NULL 63174,1173944,1008242,NULL,NULL,NULL,0,NULL,NULL 63175,1273179,301483,Yearling Great Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 63176,1501175,1071745,NULL,NULL,NULL,0,NULL,NULL 63177,271474,801761,NULL,NULL,NULL,0,NULL,NULL 63178,3933100,801761,NULL,NULL,NULL,0,NULL,NULL 63179,71386,435166,NULL,NULL,NULL,0,NULL,NULL 63180,249450,1020268,Necromancer,NULL,NULL,0,NULL,NULL 63181,28870,988225,NULL,NULL,NULL,0,NULL,NULL 63182,540145,476667,NULL,NULL,NULL,0,NULL,NULL 63183,1394673,377505,NULL,NULL,NULL,0,NULL,NULL 63184,469380,1255222,NULL,NULL,NULL,0,NULL,NULL 63185,2839495,1433022,Popular Question Notable Question Popular Question Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 63186,7047387,1433022,Popular Question Notable Question Popular Question Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 63187,1346927,817210,Notable Question Supporter Scholar,NULL,NULL,0,NULL,NULL 63188,326239,1249494,NULL,NULL,NULL,0,NULL,NULL 63189,254336,1556680,Notable Question Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 63190,1500855,960401,NULL,NULL,NULL,0,NULL,NULL 63191,403512,815120,NULL,NULL,NULL,0,NULL,NULL 63192,1572119,596110,NULL,NULL,NULL,0,NULL,NULL 63193,320128,423306,Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63194,147206,447479,NULL,NULL,NULL,0,NULL,NULL 63195,11712,981528,NULL,NULL,NULL,0,NULL,NULL 63196,323988,1006405,Popular Question,NULL,NULL,0,NULL,NULL 63197,3629868,1006405,Popular Question,NULL,NULL,0,NULL,NULL 63198,17535,471853,Yearling Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 63199,352685,134340,Popular Question Yearling Good Question Notable Question Notable Question Necromancer Notable Question Yearling Notable Question Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 63200,67157,379891,Necromancer Yearling Yearling Necromancer Yearling Guru Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 63201,324663,763491,NULL,NULL,NULL,0,NULL,NULL 63202,232572,993911,NULL,NULL,NULL,0,NULL,NULL 63203,493858,95763,Popular Question Announcer Revival Notable Question Custodian Critic Necromancer Booster,NULL,NULL,0,NULL,NULL 63204,30542,770939,NULL,NULL,NULL,0,NULL,NULL 63205,276185,666235,Editor,NULL,NULL,0,NULL,NULL 63206,947768,1034720,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 63207,867095,810485,NULL,NULL,NULL,0,NULL,NULL 63208,1931463,810485,NULL,NULL,NULL,0,NULL,NULL 63209,76152,1314848,Caucus Yearling,NULL,NULL,0,NULL,NULL 63210,98262,41282,Popular Question,NULL,NULL,0,NULL,NULL 63211,555263,752774,Custodian Necromancer Yearling Necromancer Necromancer Caucus Yearling Necromancer Necromancer Nice Answer Nice Answer Yearling Necromancer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 63212,36712,119959,Notable Question Good Question Notable Question Yearling Popular Question Notable Question Famous Question Notable Question Good Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 63213,4896,15245,Popular Question Custodian Great Answer Nice Answer Nice Answer Enlightened Great Answer Guru Good Answer Guru Necromancer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Guru Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Good Answer Nice Answer Guru Nice Answer Guru Popular Question Announcer Good Question Guru Nice Question Yearling Nice Answer Enlightened Famous Question Revival Necromancer Census Nice Answer Popular Question Guru Good Answer Nice Answer Notable Question Notable Question activerecord Nice Answer Nice Answer Benefactor Yearling Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 63214,94667,497388,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 63215,6203469,1003065,Yearling Notable Question,NULL,NULL,0,NULL,NULL 63216,1121811,1367643,NULL,NULL,NULL,0,NULL,NULL 63217,570290,966948,NULL,NULL,NULL,0,NULL,NULL 63218,1114779,1052771,NULL,NULL,NULL,0,NULL,NULL 63219,361514,861239,NULL,NULL,NULL,0,NULL,NULL 63220,265594,335717,Popular Question Notable Question Good Question Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Taxonomist Popular Question Notable Question Notable Question Necromancer Revival Revival Famous Question Good Question Notable Question Popular Question Yearling Good Question Necromancer Notable Question Notable Question Famous Question Nice Answer Nice Question Popular Question Popular Question Notable Question Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 63221,3491726,335717,Popular Question Notable Question Good Question Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Taxonomist Popular Question Notable Question Notable Question Necromancer Revival Revival Famous Question Good Question Notable Question Popular Question Yearling Good Question Necromancer Notable Question Notable Question Famous Question Nice Answer Nice Question Popular Question Popular Question Notable Question Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 63222,77842,56250,Notable Question Popular Question Popular Question Popular Question Necromancer Caucus Curious Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63223,635130,456715,Enlightened Nice Answer Great Answer Yearling Nice Answer Enlightened Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63224,113378,971630,Popular Question Popular Question Popular Question Yearling Caucus Popular Question Notable Question Popular Question Autobiographer Popular Question Notable Question Famous Question Popular Question Nice Question Nice Question Notable Question Nice Answer Popular Question,NULL,NULL,1,Cannot delete chat message via Slack API slack api slack pI have Slack team with public channel My goal is to use the channel only for announcements posted by bot ppI understand that it is not possible to configure Slack channel to be writable for only one person and read only for the rest created bot Python thing running on an external machine that monitors the channel via RTM and if there is any message not coming from bot bot task is to delete the message by calling chat delete href https api slack com methods chat delete rel nofollow https api slack com methods chat delete Bot is also in the channel ppUnfortunately bot is getting cant delete message which according to the chat delete doc means that he has no permissions ppHowever according to href https api slack com bot users rel nofollow https api slack com bot users chat delete is allowed for Custom Bots ppSo is my bot not Custom Bot If so what does Custom Bot actually is and how can create one ppOr what am doing wrong,NULL 63225,207527,247203,Nice Answer Yearling Notable Question Nice Question Notable Question Good Answer Good Answer Great Answer Announcer Yearling Good Question Nice Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 63226,187413,1159517,Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Good Question Popular Question Notable Question Popular Question Inquisitive Popular Question Notable Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 63227,166609,1361899,Popular Question,NULL,NULL,0,NULL,NULL 63228,764272,821652,NULL,NULL,NULL,0,NULL,NULL 63229,88330,821652,NULL,NULL,NULL,0,NULL,NULL 63230,34462,1499818,Nice Answer,NULL,NULL,0,NULL,NULL 63231,1146855,943792,Yearling Critic Caucus Constituent Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 63232,78057,348729,Supporter,NULL,NULL,0,NULL,NULL 63233,105804,831217,Self-Learner Notable Question Yearling Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 63234,1092748,771055,Yearling Nice Answer Enlightened Yearling java Yearling,NULL,NULL,0,NULL,NULL 63235,262711,93767,Yearling,NULL,NULL,0,NULL,NULL 63236,78486,665954,Notable Question Nice Answer Notable Question Nice Answer Yearling Good Answer Good Question python Notable Question Popular Question Good Question Revival Nice Question Yearling Popular Question Nice Answer Enlightened Good Answer gensim Yearling,NULL,NULL,0,NULL,NULL 63237,314482,1043659,NULL,NULL,NULL,0,NULL,NULL 63238,3242,777529,NULL,NULL,NULL,0,NULL,NULL 63239,121859,267540,Yearling Scholar Revival mysql django Mortarboard python Necromancer Nice Answer Necromancer Tag Editor Announcer Necromancer Documentation Pioneer Steward Student postgresql Pundit Refiner php django sql Caucus Constituent mysql Revival Necromancer Necromancer django-models Nice Answer python Revival Necromancer Census Yearling Revival Peer Pressure Nice Answer database Announcer Nice Answer Nice Answer Announcer Caucus Constituent Revival Announcer Nice Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened Announcer Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened android Nice Answer Yearling Popular Question Announcer Nice Answer Enlightened Announcer Necromancer django Caucus Constituent Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Nice Answer Enlightened python Good Answer Nice Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 63240,1155331,469275,NULL,NULL,NULL,0,NULL,NULL 63241,402876,327229,Nice Answer Yearling Good Answer Famous Question Excavator Yearling Good Answer Nice Answer Populist Yearling,NULL,NULL,0,NULL,NULL 63242,806382,961659,Teacher Supporter Custodian Scholar,NULL,NULL,0,NULL,NULL 63243,16346,437934,Announcer,NULL,NULL,0,NULL,NULL 63244,1907161,251942,Nice Answer,NULL,NULL,0,NULL,NULL 63245,26254,253299,NULL,NULL,NULL,0,NULL,NULL 63246,54899,287464,Nice Answer Enlightened Yearling Notable Question Yearling Nice Answer Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 63247,238832,211153,Civic Duty Revival Yearling Great Answer Yearling Announcer Documentation User Census Custodian,NULL,When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values is an interesting one as hash Hint the return value of is used to signal errors in CPython and thus reserved,0,NULL,NULL 63248,3011489,211153,Civic Duty Revival Yearling Great Answer Yearling Announcer Documentation User Census Custodian,NULL,When is hash in Python python python python hash python internals pI ve been playing with Python href https docs python org library functions html hash rel nofollow noreferrer hash function For small integers it appears codehash code always However this does not extend to large numbers ppre code gt gt gt hash 100 100False code prepI not surprised understand hash takes finite range of values What is that range ppI tried using href http codejamhelpers readthedocs io en latest codejamhelpers binary search rel nofollow noreferrer binary search to find the smallest number codehash code ppre code gt gt gt import codejamhelpers pip install codejamhelpers gt gt gt help codejamhelpers binary search Help on function binary search in module codejamhelpers binary search binary search Given an increasing function math find the greatest non negative integer math such that math le If math gt for all math ge return None gt gt gt lambda int hash gt gt gt codejamhelpers binary search gt gt gt hash 2305843009213693950 gt gt gt hash code prepWhat special about 2305843009213693951 note it less than codesys maxsize 9223372036854775807 code ppEdit using Python ran the same binary search on Python and got different result 2147483648 which note is codesys maxint code ppI also played with code hash random random for in range 10 code to estimate the range of hash function The max is consistently below above Comparing the min it seems Python hash is always positively valued whereas Python hash can take negative values is an interesting one as hash Hint the return value of is used to signal errors in CPython and thus reserved,0,NULL,NULL 63249,120772,802275,NULL,NULL,NULL,0,NULL,NULL 63250,134433,345085,Yearling Nice Question Great Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 63251,27475,802949,Popular Question Caucus Necromancer Yearling Nice Answer Yearling Curious Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63252,1521022,955094,Popular Question,NULL,NULL,0,NULL,NULL 63253,380527,813005,NULL,NULL,NULL,0,NULL,NULL 63254,18909,821706,Teacher Popular Question,NULL,NULL,0,NULL,NULL 63255,262496,1478256,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63256,169646,1306371,Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63257,36152,399707,Notable Question Good Question Popular Question Good Question Yearling Popular Question Notable Question Good Answer Notable Question Necromancer Popular Question Yearling Popular Question Custodian Popular Question Caucus Constituent Taxonomist Notable Question Popular Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 63258,169151,1547136,Census,NULL,NULL,0,NULL,NULL 63259,163317,380566,Supporter Organizer Commentator Critic Yearling Census Yearling Autobiographer,NULL,NULL,0,NULL,NULL 63260,299925,728023,Notable Question Self-Learner Inquisitive Popular Question Famous Question Yearling Good Question Popular Question Yearling Popular Question Popular Question Notable Question Famous Question Yearling Nice Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 63261,74835,622273,NULL,NULL,NULL,0,NULL,NULL 63262,134883,676458,Popular Question Critic Notable Question Popular Question Famous Question Notable Question Popular Question Caucus Yearling Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 63263,4674907,460484,Nice Answer Yearling Critic Good Answer Yearling Necromancer Nice Answer Yearling Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 63264,332843,1211683,NULL,NULL,NULL,0,NULL,NULL 63265,357988,408613,Necromancer Notable Question Self-Learner Popular Question Yearling Notable Question Nice Question Yearling Documentation User Notable Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 63266,1043136,874609,Revival Popular Question Caucus Necromancer Notable Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 63267,46955,239030,NULL,NULL,NULL,0,NULL,NULL 63268,141333,489354,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 63269,207194,202121,Announcer Good Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63270,206305,1370277,NULL,NULL,NULL,0,NULL,NULL 63271,663349,701720,NULL,NULL,NULL,0,NULL,NULL 63272,447818,537897,Yearling,NULL,NULL,0,NULL,NULL 63273,47973,981734,NULL,NULL,NULL,0,NULL,NULL 63274,200983,113470,Yearling,NULL,NULL,0,NULL,NULL 63275,475309,869739,Teacher,NULL,NULL,0,NULL,NULL 63276,7888,1067437,Commentator,NULL,NULL,0,NULL,NULL 63277,772950,1437005,Nice Answer Yearling Good Answer Nice Answer Yearling Famous Question Yearling Populist,NULL,NULL,0,NULL,NULL 63278,95755,470091,Necromancer Necromancer Necromancer Yearling Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63279,201216,1249823,NULL,NULL,NULL,0,NULL,NULL 63280,337941,993573,NULL,NULL,NULL,0,NULL,NULL 63281,159114,778156,NULL,NULL,NULL,0,NULL,NULL 63282,164619,1178808,NULL,NULL,NULL,0,NULL,NULL 63283,952231,1550902,NULL,NULL,NULL,0,NULL,NULL 63284,910867,710553,NULL,NULL,NULL,0,NULL,NULL 63285,1019289,975806,Editor Student Teacher,NULL,NULL,0,NULL,NULL 63286,695328,975806,Editor Student Teacher,NULL,NULL,0,NULL,NULL 63287,448846,1145839,NULL,NULL,NULL,0,NULL,NULL 63288,214158,953402,NULL,NULL,NULL,0,NULL,NULL 63289,439782,316888,NULL,NULL,NULL,0,NULL,NULL 63290,1981136,107894,Notable Question Yearling Necromancer Informed Tumbleweed Caucus Nice Answer,NULL,NULL,0,NULL,NULL 63291,12670,107894,Notable Question Yearling Necromancer Informed Tumbleweed Caucus Nice Answer,NULL,NULL,0,NULL,NULL 63292,900806,207363,Popular Question,NULL,NULL,0,NULL,NULL 63293,159743,736180,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63294,164931,1031628,NULL,NULL,NULL,0,NULL,NULL 63295,4679918,339827,NULL,NULL,NULL,0,NULL,NULL 63296,1321626,710411,Yearling Autobiographer Caucus Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 63297,269895,710411,Yearling Autobiographer Caucus Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 63298,139093,281204,Popular Question,NULL,NULL,0,NULL,NULL 63299,538658,315572,Yearling Nice Answer Revival Necromancer Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 63300,257821,773160,Student Teacher Documentation User,NULL,NULL,0,NULL,NULL 63301,17969,773160,Student Teacher Documentation User,NULL,NULL,0,NULL,NULL 63302,190928,1378647,NULL,NULL,NULL,0,NULL,NULL 63303,214611,322738,Famous Question Custodian Yearling Popular Question Popular Question Caucus Yearling Announcer Documentation User Yearling,NULL,NULL,0,NULL,NULL 63304,198878,602229,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 63305,73738,81328,Good Answer Yearling Revival Popular Question Nice Question Self-Learner Yearling Excavator Popular Question Notable Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 63306,128031,1340310,NULL,NULL,NULL,0,NULL,NULL 63307,324716,384023,NULL,NULL,NULL,0,NULL,NULL 63308,262740,280550,Nice Answer,NULL,NULL,0,NULL,NULL 63309,3115473,1102053,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63310,104459,1102053,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63311,98972,679049,Necromancer Yearling Student Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63312,10034380,679049,Necromancer Yearling Student Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63313,320753,901538,Popular Question,NULL,NULL,0,NULL,NULL 63314,18946,1242389,Yearling Good Answer html Nice Question Popular Question Nice Answer jquery Caucus Notable Question Census Revival Yearling Notable Question Popular Question Caucus Constituent Popular Question Documentation User Nice Question Census Enthusiast Yearling Caucus Constituent Nice Answer Popular Question Guru Cleanup,NULL,NULL,0,NULL,NULL 63315,121541,1010947,Curious Critic Popular Question,NULL,NULL,0,NULL,NULL 63316,7383524,571324,NULL,NULL,NULL,0,NULL,NULL 63317,16436,571324,NULL,NULL,NULL,0,NULL,NULL 63318,31789,345218,NULL,NULL,NULL,0,NULL,NULL 63319,450624,1447654,NULL,NULL,NULL,0,NULL,NULL 63320,488145,577258,NULL,NULL,NULL,0,NULL,NULL 63321,50371,635554,Popular Question,NULL,NULL,0,NULL,NULL 63322,6391336,1143771,Critic Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63323,4090882,1143771,Critic Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63324,945589,1442577,Notable Question Yearling Notable Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63325,169078,1442577,Notable Question Yearling Notable Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63326,249602,1127201,Yearling Critic Nice Question Popular Question Yearling Good Answer Editor,NULL,NULL,0,NULL,NULL 63327,687195,629187,Yearling Popular Question Yearling Census Custodian Yearling python Tumbleweed,NULL,NULL,0,NULL,NULL 63328,462367,440277,Tumbleweed Critic Self-Learner Caucus Census Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 63329,72765,1088230,Announcer Critic,NULL,NULL,0,NULL,NULL 63330,8153,696885,Editor Custodian Yearling Nice Answer Enlightened Organizer Guru Yearling Good Answer Yearling,NULL,NULL,1,NULL,ActiveRecord Migration deprecation warning asks for Rails version but not using Rails ruby on rails activerecord ruby on rails pThis is Ruby non web project that uses ActiveRecord to talk to the database ppThere is single file which contains the db connection code migration and model See here but it not necessary to read this to answer the question ppre coderequire sqlite3 require active record require yaml require active support all require securerandom BasePath File dirname FILE DATABASE FILENAME database sqlite DATABASE PATH BasePath DATABASE FILENAME SQLite3 Database new DATABASE PATH ActiveRecord Base establish connection adapter sqlite3 database DATABASE PATH class Migrations lt ActiveRecord Migration def up create table todos do string content boolean completed timestamps null false end end def down puts backing up database red on black if File file DATABASE PATH loop cp DATABASE PATH DATABASE PATH SecureRandom urlsafe base64 backup break rescue next sleep drop table todos puts dropped todos table endend Migrationsclass Todo lt ActiveRecord Baseend code prepThe question is about this line pp codeclass Migrations lt ActiveRecord Migration code ppWhen run the migration with codeMigrations migrate up code get deprecation warning ppre codeDEPRECATION WARNING Directly inheriting from ActiveRecord Migration is deprecated Please specify the Rails release the migration was written for class Migrations lt ActiveRecord Migration code prepLike it advises change my class definition to ppre code class Migrations lt ActiveRecord Migration code prepAnd then no longer get the warning ppI wondering if anyone can explain the purpose of this ppMy app doesn depend on any version of Rails Why would need ppto specify Rails version pBecause Active Record wants to know in which version the migrations were generated Sometimes default in migration can change between Rails releases when say Rails releases talking about the release of Rails the framework not rails the gem ppSo let say you have migration like ppre codecreate table todos do string contentend code prepAnd it was generated with Active Record and thus Rails release In Rails strings columns have the default size of bytes In Rails the Rails team decided to change the default size to bytes If you upgrade the gem to rollback this migration and run again now your database will have string column with bytes of size ppIf you specify the version in the migration no matter which version of Active Record you are using the column will always be generated with the size that were the default in the version of Rails that it was generated In my example if you specify as the version it will be always bytes string column 63331,29846,1243806,Famous Question Yearling Nice Question Necromancer Custodian Nice Answer Yearling Citizen Patrol Custodian Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 63332,223970,864044,NULL,NULL,NULL,0,NULL,NULL 63333,236654,839520,Nice Question Necromancer Necromancer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 63334,62617,1112697,NULL,NULL,NULL,0,NULL,NULL 63335,1173716,1259555,Popular Question Civic Duty Popular Question Popular Question Curious Nice Question Critic Notable Question Caucus Constituent Notable Question Census Caucus Yearling Commentator Nice Question,NULL,NULL,0,NULL,NULL 63336,590178,404312,NULL,NULL,NULL,0,NULL,NULL 63337,77974,1410845,NULL,NULL,NULL,0,NULL,NULL 63338,1890084,497305,Notable Question Commentator Critic Popular Question,NULL,NULL,0,NULL,NULL 63339,312671,678189,Informed Caucus Critic Popular Question Census,NULL,NULL,0,NULL,NULL 63340,438228,1550309,NULL,NULL,NULL,0,NULL,NULL 63341,106834,865215,NULL,NULL,NULL,0,NULL,NULL 63342,85268,455845,Popular Question,NULL,NULL,0,NULL,NULL 63343,289351,145189,Excavator Census Supporter,NULL,NULL,0,NULL,NULL 63344,182643,3182,Nice Question Yearling Self-Learner Good Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 63345,425394,1267239,NULL,NULL,NULL,0,NULL,NULL 63346,121220,252891,Nice Answer,NULL,NULL,0,NULL,NULL 63347,205192,167803,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 63348,432296,1380027,NULL,NULL,NULL,0,NULL,NULL 63349,454030,1475347,Informed Editor Teacher Supporter Critic,NULL,NULL,0,NULL,NULL 63350,67291,521872,Necromancer,NULL,NULL,0,NULL,NULL 63351,9063348,1198381,NULL,NULL,NULL,0,NULL,NULL 63352,1520014,1198381,NULL,NULL,NULL,0,NULL,NULL 63353,27775,1420065,NULL,NULL,NULL,0,NULL,NULL 63354,133387,1334364,Scholar Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 63355,1122042,761313,Nice Answer Yearling Good Answer Notable Question Yearling Notable Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 63356,230351,474009,Nice Question Notable Question Good Question Nice Question Yearling Notable Question Famous Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 63357,414261,1253334,Notable Question Commentator Critic Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63358,5735,365969,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 63359,173216,1254775,Yearling Great Question,NULL,NULL,0,NULL,NULL 63360,11945,399815,Notable Question Nice Answer Enlightened Notable Question Guru Nice Answer Enlightened Nice Answer Famous Question Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Yearling Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Popular Question Good Answer Nice Question Guru Nice Question Nice Answer Enlightened Generalist Notable Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Great Answer Nice Question Guru php Good Answer Popular Question Yearling Populist Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Popular Question Good Answer Nice Answer Nice Answer Great Answer Notable Question Nice Question Notable Question Nice Answer Yearling Notable Question Nice Answer Enlightened Good Answer Nice Answer Famous Question Favorite Question Good Answer,NULL,NULL,0,NULL,NULL 63361,60039,193158,NULL,NULL,NULL,0,NULL,NULL 63362,415120,86932,Yearling Nice Answer Enlightened Popular Question Popular Question Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 63363,512597,727191,NULL,NULL,NULL,0,NULL,NULL 63364,267583,1156618,NULL,NULL,NULL,0,NULL,NULL 63365,48990,1395825,Nice Question,NULL,NULL,0,NULL,NULL 63366,356808,960669,NULL,NULL,NULL,0,NULL,NULL 63367,176645,568704,NULL,NULL,NULL,0,NULL,NULL 63368,334807,315306,Guru Famous Question Popular Question Nice Answer Enlightened Yearling Famous Question Popular Question Nice Answer generics Good Answer Nice Answer Notable Question Yearling Famous Question Notable Question Nice Answer Caucus Nice Question Good Answer Nice Question Caucus Strunk & White Nice Answer Yearling Nice Question Good Answer Nice Question Announcer,NULL,NULL,0,NULL,NULL 63369,672372,109202,Popular Question Yearling,NULL,NULL,0,NULL,NULL 63370,3338792,109202,Popular Question Yearling,NULL,NULL,0,NULL,NULL 63371,398057,307490,NULL,NULL,NULL,0,NULL,NULL 63372,398902,1456728,NULL,NULL,NULL,0,NULL,NULL 63373,20546,563818,NULL,NULL,NULL,0,NULL,NULL 63374,441029,260435,NULL,NULL,NULL,0,NULL,NULL 63375,2547915,577443,NULL,NULL,NULL,0,NULL,NULL 63376,1498975,997566,Curious Citizen Patrol Custodian Popular Question Notable Question Yearling Necromancer Popular Question Yearling Popular Question Nice Answer Tumbleweed,NULL,Python module for converting PDF to text python pdf text extraction pdf scraping pWhich are the best Python modules to convert PDF files into text was looking for similar solution just need to read the text from the pdf file don need the images pdfminer is good choice but didn find simple example on how to extract the text Finally got this SO answer http stackoverflow com questions 5725278 how do use pdfminer as library 8325135 8325135 and now using it,0,NULL,NULL 63377,494640,1125061,Scholar Commentator Autobiographer Critic Informed Popular Question Tumbleweed Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 63378,60782,54157,Yearling Good Question Popular Question Good Answer Nice Answer Enlightened Good Question Yearling Notable Question Popular Question Good Answer Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 63379,1091471,1459971,NULL,NULL,NULL,0,NULL,NULL 63380,915276,84287,Good Answer Yearling,NULL,NULL,0,NULL,NULL 63381,268147,1034120,NULL,NULL,NULL,0,NULL,NULL 63382,446069,1134400,Famous Question Yearling Popular Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 63383,6896139,1123237,NULL,NULL,NULL,0,NULL,NULL 63384,88098,1123237,NULL,NULL,NULL,0,NULL,NULL 63385,2029546,1014779,Popular Question Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 63386,851278,1014779,Popular Question Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 63387,67346,149030,NULL,NULL,NULL,0,NULL,NULL 63388,279236,1133496,Teacher Documentation User,NULL,NULL,0,NULL,NULL 63389,173719,865694,Supporter Popular Question Nice Question Caucus Notable Question Commentator Critic,NULL,NULL,0,NULL,NULL 63390,10190608,1337474,Caucus Critic Yearling Necromancer Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 63391,55626,502852,NULL,NULL,NULL,0,NULL,NULL 63392,8619,1069068,Great Answer Guru Nice Answer Good Answer android-manifest Good Answer Nice Answer Great Answer Notable Question Nice Answer Enlightened Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Caucus Guru Self-Learner Constituent Yearling Booster Nice Question Announcer Good Answer google-play Guru Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened android-activity Nice Answer Great Answer Great Answer Good Answer Caucus Constituent Nice Answer Announcer Nice Answer Popular Question Nice Answer Good Answer Nice Answer Good Answer Documentation User Nice Answer Yearling Announcer Revival Great Answer Guru Caucus Good Answer Constituent Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 63393,308137,1301128,Teacher Editor Supporter Necromancer,NULL,NULL,0,NULL,NULL 63394,629241,923090,NULL,NULL,NULL,0,NULL,NULL 63395,377708,287085,Nice Answer Popular Question Notable Question Yearling Popular Question Popular Question Excavator Notable Question Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63396,20172,1042023,NULL,NULL,NULL,0,NULL,NULL 63397,1537273,581230,NULL,NULL,NULL,0,NULL,NULL 63398,1126291,1267662,NULL,NULL,NULL,0,NULL,NULL 63399,6096,105161,NULL,NULL,NULL,0,NULL,NULL 63400,70672,846407,NULL,NULL,NULL,0,NULL,NULL 63401,476064,434930,Necromancer,NULL,NULL,0,NULL,NULL 63402,106076,1105414,NULL,NULL,NULL,0,NULL,NULL 63403,480723,323733,Great Answer Yearling Good Answer Notable Question Yearling Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 63404,78607,196106,Nice Answer Custodian Famous Question Famous Question Excavator Yearling Stellar Question Famous Question Custodian Custodian Custodian Organizer Informed Nice Question Caucus Famous Question Yearling Self-Learner Custodian Custodian Citizen Patrol Custodian Proofreader Reviewer Reviewer Reviewer Caucus Reviewer Notable Question Yearling,NULL,NULL,0,NULL,NULL 63405,65048,737128,Editor,NULL,NULL,0,NULL,NULL 63406,152884,196265,Popular Question Yearling Self-Learner Nice Answer Necromancer Yearling Nice Question,NULL,NULL,0,NULL,NULL 63407,47090,15139,Necromancer Famous Question Necromancer Nice Answer Nice Answer Notable Question Custodian Nice Answer Nice Answer Popular Question Yearling Nice Question Good Answer Announcer Good Answer Yearling Documentation User Announcer Revival Popular Question Benefactor Nice Question Revival Yearling Notable Question,NULL,pFollowing the instructions laid out in Facebook href https developers facebook com docs facebook login access tokens extendingpagetokens rel noreferrer extending page tokens documentation was able to get page access token that does not expire ppI suggest using the href https developers facebook com tools explorer rel noreferrer Graph API Explorer for all of these steps except where otherwise stated ph30 Create Facebook App h3p strongIf you already have an app strong skip to step polliGo to href https developers facebook com apps rel noreferrer My Apps liliClick Add New App liliSetup website app li olpYou don need to change its permissions or anything You just need an app that wont go away before you re done with your access token ph31 Get User Short Lived Access Token h3olliGo to the href https developers facebook com tools explorer rel noreferrer Graph API Explorer liliSelect the application you want to get the access token for in the Application drop down menu not the My Apps menu liliClick Get Token Get User Access Token liliIn the pop up under the Extended Permissions tab check manage pages liliClick Get Access Token liliGrant access from Facebook account that has access to manage the target page Note that if this user loses access the final never expiring access token will likely stop working li olpThe token that appears in the Access Token field is your short lived access token ph32 Generate Long Lived Access Token h3pFollowing href https developers facebook com docs facebook login access tokens extending rel noreferrer these instructions from the Facebook docs make GET request to pblockquote href https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id rel noreferrer https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id strong app id strong amp client secret strong app secret strong amp fb exchange token strong short lived token strong blockquotepentering in your app ID and secret and the short lived token generated in the previous step ppYou strongcannot use the Graph API Explorer strong For some reason it gets stuck on this request think it because the response isn JSON but query string Since it GET request you can just go to the URL in your browser ppThe response should look like this pblockquote access token strongABC123 strong token type bearer expires in 5183791 blockquotep ABC123 will be your long lived access token You can put it into the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger to verify Under Expires it should have something like months ph33 Get User ID h3pUsing the long lived access token make GET request to pblockquote href https graph facebook com v2 10 me access token rel noreferrer https graph facebook com v2 10 me access token strong long lived access token strong blockquotepThe codeid code field is your account ID You ll need it for the next step ph34 Get Permanent Page Access Token h3pMake GET request to pblockquote href https graph facebook com v2 10 rel noreferrer https graph facebook com v2 10 strong account id strong accounts access token strong long lived access token strong blockquotepThe JSON response should have codedata code field under which is an array of items the user has access to Find the item for the page you want the permanent access token from The codeaccess token code field should have your permanent access token Copy it and test it in the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger Under Expires it should say Never works for v2 as well,1,Is it safe to ignore these proguard notes for kotlin android kotlin proguard pI don understand why getting these notes from proguard and if ve to do anything to address them ppre class lang none prettyprint override codeNote kotlin internal PlatformImplementationsKt can find dynamically referenced class kotlin internal jdk8 JDK8PlatformImplementations Note kotlin internal PlatformImplementationsKt can find dynamically referenced class kotlin internal JRE8PlatformImplementations Note kotlin internal PlatformImplementationsKt can find dynamically referenced class kotlin internal JRE7PlatformImplementations Note kotlin jvm internal Reflection can find dynamically referenced class kotlin reflect jvm internal ReflectionFactoryImpl code prepThree of them are for codekotlin internal PlatformImplementationKt code and one for codekotlin jvm internal Reflection code ph2My setup h2pre class lang none prettyprint override codekotlin 71Android Studio gradle plugin 0gradle 10 code pre,NULL 63408,83209,982284,Caucus,NULL,NULL,0,NULL,NULL 63409,312270,872302,Notable Question,NULL,NULL,0,NULL,NULL 63410,103356,57448,Yearling Nice Answer Good Answer Necromancer Self-Learner Notable Question Caucus Yearling Nice Question Nice Question Necromancer Notable Question Popular Question Yearling Popular Question Famous Question Nice Answer Popular Question Good Question,NULL,NULL,0,NULL,NULL 63411,38675,632258,Popular Question,NULL,NULL,0,NULL,NULL 63412,888498,790155,NULL,NULL,NULL,0,NULL,NULL 63413,1527916,790155,NULL,NULL,NULL,0,NULL,NULL 63414,168404,401653,NULL,NULL,NULL,0,NULL,NULL 63415,655305,617433,Yearling Good Answer Custodian Guru,NULL,NULL,0,NULL,NULL 63416,8565079,1047842,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63417,19733,156336,Yearling Popular Question Caucus Necromancer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 63418,834633,985051,Nice Answer Custodian Custodian Explainer Nice Answer Enlightened Great Question Famous Question Nice Question Notable Question Popular Question Yearling Popular Question Caucus Guru Necromancer Nice Answer Notable Question Caucus Yearling Census Caucus Popular Question Good Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 63419,1513760,1077707,NULL,NULL,NULL,0,NULL,NULL 63420,777837,260998,Popular Question Yearling Good Answer Good Question Famous Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Custodian Popular Question Necromancer Popular Question Great Question Yearling Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63421,6902,192247,Nice Answer Popular Question Great Answer Notable Question Popular Question Popular Question Good Answer Famous Question Great Question Nice Question Guru Nice Question Good Question Nice Answer Enlightened Famous Question Popular Question Nice Answer Famous Question Good Answer Popular Question Guru Great Answer Popular Question Nice Answer Famous Question Notable Question Popular Question Favorite Question Nice Answer Good Question Famous Question Popular Question Good Answer Good Answer Good Answer Notable Question Guru Nice Answer Good Answer Notable Question Notable Question Notable Question Yearling Popular Question Caucus Notable Question Notable Question Nice Question Notable Question Nice Question Famous Question Good Question Popular Question Good Question Good Answer Guru Good Answer Nice Question Good Question Notable Question arrays Good Answer Good Question Popular Question Good Answer Populist Great Question Notable Question Great Question Famous Question Good Question Good Question Populist Good Answer Good Question Nice Answer Nice Question Notable Question Nice Question Good Answer Popular Question Popular Question Good Answer Good Question Popular Question Yearling Nice Question Famous Question Promoter Guru Benefactor Guru Notable Question Favorite Question Nice Answer Populist Favorite Question Good Answer Famous Question Good Answer Popular Question Guru Famous Question Good Answer Famous Question Famous Question Nice Answer Nice Answer Good Question Famous Question Great Answer Good Question Popular Question Famous Question Famous Question Good Answer Good Question Notable Question Announcer Famous Question Yearling Notable Question,NULL,Why avoid method overloading scala method overloading pWhy does href http scalatips tumblr com rel noreferrer Jorge Ortiz advise to avoid method overloading think it gone,0,NULL,NULL 63422,769842,470970,NULL,NULL,NULL,0,NULL,NULL 63423,357060,260034,Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 63424,1189563,1079817,Civic Duty Student Caucus Yearling Documentation User Announcer Revival,NULL,NULL,0,NULL,NULL 63425,551200,1523998,Editor Excavator Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 63426,23481,635514,Notable Question Nice Answer Announcer Popular Question Necromancer Yearling Caucus Good Answer Necromancer Nice Answer Caucus Popular Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 63427,513456,405442,Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Popular Question Yearling Famous Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Famous Question Famous Question Popular Question Favorite Question Popular Question Notable Question Notable Question Great Question Popular Question Yearling Good Question Popular Question Notable Question Good Question Notable Question Notable Question Popular Question Notable Question Notable Question Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 63428,480664,808456,NULL,NULL,NULL,0,NULL,NULL 63429,241971,1452562,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63430,1087254,497667,Famous Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 63431,3842422,1000583,Teacher,NULL,NULL,0,NULL,NULL 63432,818754,545087,Revival,NULL,NULL,0,NULL,NULL 63433,108181,24424,Yearling Famous Question Famous Question Yearling Documentation User Notable Question Promoter Popular Question Nice Question Good Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 63434,196589,1219671,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 63435,1237938,887389,Autobiographer,NULL,NULL,0,NULL,NULL 63436,847671,1053604,NULL,NULL,NULL,0,NULL,NULL 63437,292027,1298176,Necromancer Yearling Necromancer Revival Tumbleweed Nice Answer Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 63438,20856,1298176,Necromancer Yearling Necromancer Revival Tumbleweed Nice Answer Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 63439,147089,1114763,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63440,905618,532220,NULL,NULL,NULL,0,NULL,NULL 63441,114827,997712,NULL,NULL,NULL,0,NULL,NULL 63442,293661,1396134,Yearling Popular Question,NULL,NULL,0,NULL,NULL 63443,251385,1239141,Nice Question,NULL,NULL,0,NULL,NULL 63444,359881,983893,NULL,NULL,NULL,0,NULL,NULL 63445,82170,1096001,Student Popular Question,NULL,NULL,0,NULL,NULL 63446,175157,1469038,Revival,NULL,NULL,0,NULL,NULL 63447,383429,116942,NULL,NULL,NULL,0,NULL,NULL 63448,10411914,116942,NULL,NULL,NULL,0,NULL,NULL 63449,56894,116942,NULL,NULL,NULL,0,NULL,NULL 63450,1553451,1529963,NULL,NULL,NULL,0,NULL,NULL 63451,574384,615862,NULL,NULL,NULL,0,NULL,NULL 63452,90819,772802,Supporter,NULL,NULL,0,NULL,NULL 63453,170951,898227,NULL,NULL,NULL,0,NULL,NULL 63454,26154,16829,Nice Answer Yearling Good Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63455,384261,67498,Yearling Nice Answer Enlightened Enthusiast Revival Good Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 63456,539405,1312725,Critic Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 63457,31040,590083,Popular Question Notable Question Yearling Famous Question Notable Question Famous Question Notable Question Nice Question Notable Question Stellar Question Nice Question Nice Question Popular Question Nice Answer Enlightened Notable Question Good Question Notable Question Famous Question Popular Question Popular Question Famous Question Famous Question Nice Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Good Question Good Question Notable Question Nice Answer Famous Question Good Question Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Good Question Popular Question Popular Question Nice Question Notable Question Good Question Popular Question Notable Question Good Question Yearling Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Good Question Nice Question Great Question Popular Question Notable Question Great Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 63458,383310,1447446,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 63459,462547,303712,NULL,NULL,NULL,0,NULL,NULL 63460,3139026,303712,NULL,NULL,NULL,0,NULL,NULL 63461,694545,1079436,NULL,NULL,NULL,0,NULL,NULL 63462,100662,561369,Notable Question,NULL,NULL,0,NULL,NULL 63463,556233,85611,Caucus Custodian Famous Question Yearling,NULL,NULL,0,NULL,NULL 63464,9589929,65177,Good Answer,NULL,NULL,0,NULL,NULL 63465,63743,65177,Good Answer,NULL,NULL,0,NULL,NULL 63466,313778,390011,NULL,NULL,NULL,0,NULL,NULL 63467,415973,267610,NULL,NULL,NULL,0,NULL,NULL 63468,219579,620254,NULL,NULL,NULL,0,NULL,NULL 63469,213877,581024,Necromancer Yearling Custodian Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 63470,889399,700940,Revival Supporter Informed,NULL,NULL,0,NULL,NULL 63471,783169,1117445,Yearling Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 63472,68370,1359666,NULL,NULL,NULL,0,NULL,NULL 63473,92754,297197,NULL,NULL,NULL,0,NULL,NULL 63474,508999,994835,NULL,NULL,NULL,0,NULL,NULL 63475,330082,756817,NULL,NULL,NULL,0,NULL,NULL 63476,13122,918494,NULL,NULL,NULL,0,NULL,NULL 63477,16946,1077672,Yearling Nice Answer Enlightened Necromancer Disciplined Organizer perl6 Enthusiast Nice Answer Enlightened Nice Answer Enlightened Civic Duty Explainer Yearling Citizen Patrol Nice Answer Nice Answer Nice Answer Announcer Fanatic Announcer Yearling Custodian Announcer Nice Answer Nice Answer Enlightened perl6 Nice Answer Enlightened Nice Answer Enlightened Talkative Nice Answer Announcer Nice Answer Informed Nice Answer raku,NULL,NULL,0,NULL,NULL 63478,132519,1486301,NULL,NULL,NULL,0,NULL,NULL 63479,8008,1486301,NULL,NULL,NULL,0,NULL,NULL 63480,135081,783911,Nice Answer Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 63481,675150,871648,NULL,NULL,NULL,0,NULL,NULL 63482,245776,1324140,NULL,NULL,NULL,0,NULL,NULL 63483,182440,1503664,Informed,NULL,NULL,0,NULL,NULL 63484,40977,645886,Yearling Good Answer Notable Question ruby-on-rails Pundit Caucus Nice Answer Enlightened Yearling Popular Question Nice Answer Popular Question Caucus Constituent ruby Nice Answer Nice Answer Popular Question Documentation User Guru Popular Question Nice Answer Good Answer Nice Answer Enlightened Yearling Caucus Announcer Guru Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63485,897203,645886,Yearling Good Answer Notable Question ruby-on-rails Pundit Caucus Nice Answer Enlightened Yearling Popular Question Nice Answer Popular Question Caucus Constituent ruby Nice Answer Nice Answer Popular Question Documentation User Guru Popular Question Nice Answer Good Answer Nice Answer Enlightened Yearling Caucus Announcer Guru Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63486,46744,688119,NULL,NULL,NULL,0,NULL,NULL 63487,60291,208248,Necromancer,NULL,NULL,0,NULL,NULL 63488,166825,795493,NULL,NULL,NULL,0,NULL,NULL 63489,1271868,595376,NULL,NULL,NULL,0,NULL,NULL 63490,18231,570804,NULL,NULL,NULL,0,NULL,NULL 63491,467606,1422778,Yearling Populist Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63492,40418,797002,Informed Nice Answer,NULL,NULL,0,NULL,NULL 63493,119082,58681,Popular Question Popular Question Notable Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 63494,33672,56465,Yearling Nice Answer Enlightened Popular Question Guru angularjs Promoter Tumbleweed Yearling Notable Question Good Answer Good Answer Curious Yearling Great Answer Famous Question,NULL,NULL,0,NULL,NULL 63495,169879,240410,Famous Question Popular Question Notable Question Popular Question Great Question Yearling Notable Question Famous Question Nice Question Notable Question Favorite Question Popular Question Famous Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 63496,182833,840096,NULL,NULL,NULL,0,NULL,NULL 63497,25576,277923,Yearling Famous Question Announcer,NULL,NULL,0,NULL,NULL 63498,1118171,674672,NULL,NULL,NULL,0,NULL,NULL 63499,522487,151760,Yearling,NULL,NULL,0,NULL,NULL 63500,121744,943646,Nice Answer Proofreader Popular Question Famous Question Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Notable Question Yearling Good Answer Nice Answer Census Notable Question Custodian Yearling Popular Question Tenacious Notable Question,NULL,NULL,0,NULL,NULL 63501,172000,878517,NULL,NULL,NULL,0,NULL,NULL 63502,1352,352290,Notable Question Organizer Popular Question,NULL,NULL,0,NULL,NULL 63503,940490,113316,Notable Question Caucus Constituent Custodian Citizen Patrol Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 63504,1396072,631096,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 63505,227863,211667,NULL,NULL,NULL,0,NULL,NULL 63506,273385,633295,NULL,NULL,NULL,0,NULL,NULL 63507,361948,163967,Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 63508,1887768,163967,Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 63509,895429,1332575,NULL,NULL,NULL,0,NULL,NULL 63510,366402,1107317,Good Answer Nice Answer Enlightened Caucus Yearling Good Answer Good Answer Nice Answer Guru Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63511,1521754,1158778,NULL,NULL,NULL,0,NULL,NULL 63512,1302668,268237,NULL,NULL,NULL,0,NULL,NULL 63513,46027,1490555,Curious Enthusiast Nice Answer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63514,492369,238012,Popular Question Enthusiast Good Question Popular Question Notable Question Popular Question Caucus Notable Question Famous Question Custodian Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Caucus Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 63515,246197,477713,NULL,NULL,NULL,0,NULL,NULL 63516,8143782,477713,NULL,NULL,NULL,0,NULL,NULL 63517,711282,457567,NULL,NULL,NULL,0,NULL,NULL 63518,189223,151151,NULL,NULL,NULL,0,NULL,NULL 63519,2075431,621909,Necromancer,NULL,NULL,0,NULL,NULL 63520,169970,353305,NULL,NULL,NULL,0,NULL,NULL 63521,403002,566434,Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 63522,1546378,468474,Notable Question,NULL,NULL,0,NULL,NULL 63523,1118861,1326616,NULL,NULL,NULL,0,NULL,NULL 63524,440726,1093047,Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63525,1255677,459197,Notable Question Notable Question Critic Notable Question Yearling Notable Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 63526,129241,459197,Notable Question Notable Question Critic Notable Question Yearling Notable Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 63527,346325,459197,Notable Question Notable Question Critic Notable Question Yearling Notable Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 63528,6235711,459197,Notable Question Notable Question Critic Notable Question Yearling Notable Question Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 63529,644431,1163776,Teacher,NULL,NULL,0,NULL,NULL 63530,960331,862024,Revival Yearling Curious Necromancer Popular Question,NULL,NULL,0,NULL,NULL 63531,2117477,862024,Revival Yearling Curious Necromancer Popular Question,NULL,NULL,0,NULL,NULL 63532,1335227,1315160,NULL,NULL,NULL,0,NULL,NULL 63533,270291,718091,Populist Yearling Popular Question Yearling Yearling,NULL,pFor the sake of others who are possibly looking for an answer like me ppIf you want to not add an extra compilation flag due to the fact that you might be upcasting an interview to void accidentally somewhere else you can use the following snippet to force cast from an int to void where you are sure you want it to happen and then the compiler won bug you about the cast ppre code define INT2VOIDP void uintptr code prepOf course be sure to include stdint so then you can do the following ppre codevoid val INT2VOIDP code pre Exactly what wanted thank you,0,NULL,NULL 63534,99182,997624,Famous Question Yearling Popular Question Benefactor Documentation User Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 63535,314207,300809,NULL,NULL,NULL,0,NULL,NULL 63536,3126231,383912,Nice Answer Enlightened Guru Popular Question Yearling Documentation Pioneer Good Answer Notable Question Yearling Documentation User Popular Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63537,185432,383912,Nice Answer Enlightened Guru Popular Question Yearling Documentation Pioneer Good Answer Notable Question Yearling Documentation User Popular Question Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63538,162941,974202,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 63539,258442,700849,Good Answer,NULL,NULL,0,NULL,NULL 63540,80632,765854,Notable Question Nice Answer Great Answer Yearling Popular Question Great Answer Nice Answer Notable Question Popular Question Notable Question Notable Question Caucus Constituent Notable Question Necromancer Self-Learner Yearling Popular Question Caucus Revival Nice Answer Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 63541,529515,1138261,NULL,NULL,NULL,0,NULL,NULL 63542,133779,20089,Yearling Nice Answer Notable Question Yearling Nice Question Notable Question Yearling,NULL,pre code sends request to the specified url from form this will change the window location string path the path to send the post request to object params the paramiters to add to the url string method post the method to use on the form function post path params method method method post Set method to post by default if not specified The rest of this code assumes you are not using library It can be made less wordy if you use one var form document createElement form form setAttribute method method form setAttribute action path for var key in params if params hasOwnProperty key var hiddenField document createElement input hiddenField setAttribute type hidden hiddenField setAttribute name key hiddenField setAttribute value params key form appendChild hiddenField document body appendChild form form submit code prepExample ppre codepost contact name Johnny Bravo code prep strongEDIT strong Since this has gotten upvoted so much guessing people will be copy pasting this lot So added the codehasOwnProperty code check to fix any inadvertent bugs It an optional argument and defaults to POST Changing methods doesn cost anything so just put it in there Feel free to remove it if it bothers you,0,NULL,NULL 63543,95623,403681,Popular Question Nice Question Necromancer Yearling Popular Question Caucus Nice Answer Notable Question Yearling Nice Question Electorate Notable Question Good Answer Quorum Yearling Popular Question Famous Question Caucus Constituent Good Question Yearling Documentation User Yearling Census Populist Caucus Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 63544,1247077,865868,Nice Question Custodian Good Question Good Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 63545,269945,149615,Custodian Custodian Notable Question Nice Answer Notable Question Nice Answer Necromancer Popular Question Yearling Guru Famous Question Excavator Cleanup Caucus Yearling Revival Popular Question Notable Question Explainer Nice Answer Enlightened Notable Question Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 63546,376574,1066336,Popular Question Yearling Nice Answer Yearling Critic Famous Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 63547,420391,214837,Nice Answer Good Answer Popular Question Popular Question Famous Question Enlightened Notable Question Popular Question Yearling Great Answer Announcer Famous Question Guru Guru Yearling Stellar Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 63548,53519,262850,Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 63549,179857,452015,Popular Question,NULL,NULL,0,NULL,NULL 63550,2006268,834406,NULL,NULL,NULL,0,NULL,NULL 63551,131023,834406,NULL,NULL,NULL,0,NULL,NULL 63552,119110,1023330,NULL,NULL,NULL,0,NULL,NULL 63553,444002,247159,Yearling Tumbleweed Popular Question Necromancer Yearling Curious Notable Question Nice Answer Yearling Civic Duty,NULL,NULL,0,NULL,NULL 63554,430697,1005478,NULL,NULL,NULL,0,NULL,NULL 63555,101299,1047236,NULL,NULL,NULL,0,NULL,NULL 63556,363370,28278,Notable Question Famous Question Nice Answer Nice Answer Nice Answer Notable Question Famous Question Good Answer javascript Notable Question Nice Answer Nice Question Popular Question Necromancer Popular Question Notable Question Great Answer Famous Question Good Question Nice Question Yearling Good Answer Nice Answer Disciplined Notable Question Nice Answer Mortarboard Nice Question Necromancer Nice Question Good Answer Nice Answer Revival Yearling Famous Question java Nice Question .net Nice Answer Nice Answer Enlightened Nice Answer Yearling css Notable Question,NULL,pIf you delete the DB file it still stays registered with SqlLocalDB Sometimes it fixes it to delete the DB You can do this from the command line polliOpen the Developer Command Propmpt for VisualStudio under your start programs menu lili pRun the following commands pp codesqllocaldb exe stop v11 code pp codesqllocaldb exe delete v11 code li ol For those that come across this all these years later v11 was the instance name used by SqlLocalDB back then This may have changed or be dependent on your version You should be able to use sqllocaldb exe info to find the instance name pIf you delete the DB file it still stays registered with SqlLocalDB Sometimes it fixes it to delete the DB You can do this from the command line polliOpen the Developer Command Propmpt for VisualStudio under your start programs menu lili pRun the following commands pp codesqllocaldb exe stop v11 code pp codesqllocaldb exe delete v11 code li ol if you read the original question asked deleting the mdf file manually is what seems to cause this issue in the first place JSobell answer may work better for you if you want to delete DB from an instance in my case couldn get anything to show up in the GUI to delete pI had the exact same problem was running my nginx in Virtualbox did not have caching turned on But looks like codesendfile code was set to codeon code in codenginx conf code and that was causing the problem mentioned it above in the comments ppWhen turned off codesendfile code it worked fine pp href https jeremyfelt com 2013 01 08 clear nginx cache in vagrant This is because pblockquote pSendfile is used to ‘copy data between one file descriptor and another‘ and apparently has some real trouble when run in virtual machine environment or at least when run through Virtualbox Turning this config off in nginx causes the static file to be served via different method and your changes will be reflected immediately and without question blockquote This is the only solution can find anywhere but actually need to use sendfile so can disable it pTL DR ppre codesudo apt get install nodejs legacy code prehrpFirst of all let me clarify the situation bit In summer 2012 Debian maintainers decided to rename Node js executable to prevent some kind of namespace collision with another package It was very hard decision for Debian Technical Committee because it breaks backward compatibility ppThe following is quote from Committee resolution draft published in Debian href http bugs debian org cgi bin bugreport cgi bug 614907 108 rel noreferrer mailing list pblockquote ol li pThe nodejs package shall be changed to provide usr bin nodejs not usr bin node The package should declare Breaks relationship with any packages in Debian that reference usr bin node li li pThe nodejs source package shall also provide nodejs legacy binary package at Priority extra that contains usr bin node as symlink to usr bin nodejs No package in the archive may depend on or recommend the nodejs legacy package which is provided solely for upstreambr compatibility This package declares shall also declare Conflicts relationship with the node package li ol lt blockquotepParagraph is the actual solution for OP issue OP should try to install this package instead of doing symlink by hand Here is link to this package in Debian package index href http packages debian org sid nodejs legacy rel noreferrer website ppIt can be installed using codesudo apt get install nodejs legacy code ppI have not found any information about adopting the whole thing by NPM developers but think codenpm code package will be fixed on some point and codenodejs legacy code become really legacy When try to apt get install nodejs legacy get The following packages have unmet dependencies nodejs legacy Depends nodejs 19 dfsg1 but it is not going to be installed pTL DR ppre codesudo apt get install nodejs legacy code prehrpFirst of all let me clarify the situation bit In summer 2012 Debian maintainers decided to rename Node js executable to prevent some kind of namespace collision with another package It was very hard decision for Debian Technical Committee because it breaks backward compatibility ppThe following is quote from Committee resolution draft published in Debian href http bugs debian org cgi bin bugreport cgi bug 614907 108 rel noreferrer mailing list pblockquote ol li pThe nodejs package shall be changed to provide usr bin nodejs not usr bin node The package should declare Breaks relationship with any packages in Debian that reference usr bin node li li pThe nodejs source package shall also provide nodejs legacy binary package at Priority extra that contains usr bin node as symlink to usr bin nodejs No package in the archive may depend on or recommend the nodejs legacy package which is provided solely for upstreambr compatibility This package declares shall also declare Conflicts relationship with the node package li ol lt blockquotepParagraph is the actual solution for OP issue OP should try to install this package instead of doing symlink by hand Here is link to this package in Debian package index href http packages debian org sid nodejs legacy rel noreferrer website ppIt can be installed using codesudo apt get install nodejs legacy code ppI have not found any information about adopting the whole thing by NPM developers but think codenpm code package will be fixed on some point and codenodejs legacy code become really legacy io It been while but the Node docs say that you want to install nodejs not nodejs legacy https nodejs org en download package manager debian and ubuntu based linux distributions then IIRC you have to manually symlink nodejs to node as mentioned in comment on the original post think that how got it eventually working,0,NULL,NULL 63557,67442,564098,Self-Learner,NULL,NULL,0,NULL,NULL 63558,356204,2463,NULL,NULL,NULL,0,NULL,NULL 63559,125874,791201,NULL,NULL,NULL,0,NULL,NULL 63560,474303,945315,NULL,NULL,NULL,0,NULL,NULL 63561,737508,575649,NULL,NULL,NULL,0,NULL,NULL 63562,144947,319124,Notable Question Notable Question Nice Question Popular Question Yearling Good Question Nice Question Popular Question Popular Question Nice Question Famous Question Popular Question Yearling Nice Answer Notable Question Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 63563,150427,648,Favorite Question Famous Question Good Question Notable Question Yearling Great Question Good Question Popular Question Yearling Custodian Custodian Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 63564,166255,753213,NULL,NULL,NULL,0,NULL,NULL 63565,1230315,1102139,NULL,NULL,NULL,0,NULL,NULL 63566,125760,198817,Famous Question Revival Yearling Necromancer Nice Answer Yearling Good Answer Yearling Caucus Guru,NULL,NULL,0,NULL,NULL 63567,10537,346724,Yearling,NULL,NULL,0,NULL,NULL 63568,178256,1020452,NULL,NULL,NULL,0,NULL,NULL 63569,24596,672539,NULL,NULL,NULL,0,NULL,NULL 63570,14521,1467079,Popular Question Curious Self-Learner Yearling,NULL,NULL,0,NULL,NULL 63571,99608,333793,NULL,NULL,NULL,0,NULL,NULL 63572,88239,436925,NULL,NULL,NULL,0,NULL,NULL 63573,1351332,436925,NULL,NULL,NULL,0,NULL,NULL 63574,1884969,1171315,Self-Learner Popular Question Critic Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63575,241683,1426109,Popular Question,NULL,NULL,0,NULL,NULL 63576,2105689,586368,NULL,NULL,NULL,0,NULL,NULL 63577,793748,1042958,NULL,NULL,NULL,0,NULL,NULL 63578,181373,1461694,NULL,NULL,NULL,0,NULL,NULL 63579,2931756,878336,Editor Excavator Famous Question Yearling Revival Nice Question Caucus Scholar Informed Caucus Tumbleweed Caucus Necromancer Autobiographer,NULL,NULL,0,NULL,NULL 63580,17955,207619,Commentator,NULL,NULL,0,NULL,NULL 63581,404491,321544,NULL,NULL,NULL,0,NULL,NULL 63582,132618,76701,Notable Question Popular Question Nice Question Nice Question Favorite Question Nice Question Popular Question Notable Question Yearling Popular Question Famous Question Famous Question Notable Question Notable Question Good Question Famous Question Good Question Popular Question Good Question Famous Question Announcer Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Popular Question Good Question Notable Question Notable Question Good Question Favorite Question Favorite Question Nice Question Notable Question Popular Question Nice Question Favorite Question Notable Question Notable Question Nice Question Good Question Popular Question Good Question Nice Question Nice Question Popular Question Good Question Notable Question Popular Question Notable Question Good Question Notable Question Notable Question Yearling Good Question Notable Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Great Question Pundit Good Question Favorite Question Famous Question Good Question Popular Question Favorite Question Favorite Question Famous Question Notable Question Famous Question Nice Question Famous Question Popular Question Notable Question Popular Question Great Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Great Question Notable Question Notable Question Notable Question Notable Question Great Question Nice Question Famous Question Nice Answer Nice Question Nice Answer Famous Question Popular Question Famous Question Notable Question Nice Question Good Question Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Great Question Popular Question Notable Question Popular Question Favorite Question Notable Question Famous Question Stellar Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Favorite Question Notable Question Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63583,492539,488830,Great Answer Nice Answer Nice Answer Yearling Nice Answer Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63584,44326,560028,Curious,NULL,NULL,0,NULL,NULL 63585,324497,1480830,Informed,NULL,NULL,0,NULL,NULL 63586,1563187,400463,NULL,NULL,NULL,0,NULL,NULL 63587,165275,891668,Supporter,NULL,NULL,0,NULL,NULL 63588,104886,198413,NULL,NULL,NULL,0,NULL,NULL 63589,1064384,998668,Guru Popular Question Yearling Notable Question Notable Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 63590,427798,7770,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 63591,487692,1363151,NULL,NULL,NULL,0,NULL,NULL 63592,728942,1333518,Custodian Student Informed Editor,NULL,NULL,0,NULL,NULL 63593,794937,755140,NULL,NULL,NULL,0,NULL,NULL 63594,1869232,1304884,NULL,NULL,NULL,0,NULL,NULL 63595,3968198,452455,NULL,NULL,NULL,0,NULL,NULL 63596,838142,452455,NULL,NULL,NULL,0,NULL,NULL 63597,299277,97572,Nice Question Good Answer Notable Question Notable Question Guru Nice Answer Guru Popular Question Popular Question Yearling Good Question Good Answer Socratic Notable Question Famous Question Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Caucus Nice Answer Enlightened Popular Question Notable Question Generalist Guru Good Answer Good Answer Nice Answer Enlightened Popular Question Yearling Notable Question Good Answer Notable Question Popular Question Nice Answer Popular Question Caucus Nice Answer Enlightened Nice Answer Notable Question nosql Nice Answer Enlightened Popular Question asp.net Nice Question Census Famous Question Great Answer Caucus Constituent Nice Question Revival Famous Question Popular Question Popular Question Yearling Nice Answer Great Answer Guru Nice Question Guru Notable Question Good Question Mortarboard Popular Question,NULL,NULL,0,NULL,NULL 63598,155111,654633,NULL,NULL,NULL,0,NULL,NULL 63599,75855,358545,NULL,NULL,NULL,0,NULL,NULL 63600,21242,90287,Yearling Guru Enlightened Necromancer Revival Citizen Patrol Revival Revival Good Answer Announcer Yearling Necromancer Revival Nice Answer Announcer Revival Nice Answer Revival Popular Question Revival Curious Necromancer Revival Announcer Caucus Constituent Revival Yearling c# Nice Answer Announcer Necromancer Revival Informed,NULL,NULL,0,NULL,NULL 63601,1567545,1059275,NULL,NULL,NULL,0,NULL,NULL 63602,294688,1169624,NULL,NULL,NULL,0,NULL,NULL 63603,19621,114838,Yearling,NULL,NULL,0,NULL,NULL 63604,191664,1268968,Yearling Nice Answer Good Question Necromancer,NULL,NULL,0,NULL,NULL 63605,171130,925829,Custodian Citizen Patrol Custodian Excavator Custodian Yearling Explainer Popular Question Documentation User Caucus,NULL,NULL,0,NULL,NULL 63606,641139,172776,Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Notable Question Notable Question Notable Question Famous Question Notable Question Nice Answer Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Notable Question Famous Question Notable Question Popular Question Nice Question Famous Question Notable Question Popular Question Yearling Nice Question Notable Question Notable Question Notable Question Good Answer Nice Question Notable Question Popular Question Popular Question Popular Question Famous Question Famous Question Yearling Good Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63607,1098462,1118998,NULL,NULL,NULL,0,NULL,NULL 63608,109801,1557855,Notable Question Necromancer Popular Question Yearling Curious Nice Answer,NULL,NULL,0,NULL,NULL 63609,468049,557206,Good Question Yearling,NULL,NULL,0,NULL,NULL 63610,326346,1299519,NULL,NULL,NULL,0,NULL,NULL 63611,199540,589889,NULL,NULL,NULL,0,NULL,NULL 63612,1352885,411116,NULL,NULL,NULL,0,NULL,NULL 63613,40663,98251,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 63614,166483,143769,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 63615,75768,918215,Popular Question Notable Question Popular Question Nice Answer Enlightened Yearling shiny Nice Answer Enlightened Good Answer Guru Necromancer Nice Answer Notable Question Great Answer Yearling Revival Nice Answer Revival Caucus python Good Answer Nice Answer Good Answer Revival Yearling Enlightened Good Answer Nice Answer Enlightened linear-programming,NULL,NULL,0,NULL,NULL 63616,212432,646670,NULL,NULL,NULL,0,NULL,NULL 63617,69709,235349,Nice Answer Enlightened Nice Question Great Answer Good Answer dataframe Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Populist Good Answer Good Answer Nice Answer Enlightened Notable Question Guru Guru Nice Answer Nice Answer Nice Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Good Answer Popular Question Nice Answer Enlightened Guru Good Question Guru Yearling Great Answer Nice Answer Nice Answer Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Nice Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 63618,8348,485671,Yearling Critic Good Answer,NULL,NULL,0,NULL,NULL 63619,49929,1559575,NULL,NULL,NULL,0,NULL,NULL 63620,4391030,581145,Yearling Autobiographer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63621,120529,117188,Yearling Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 63622,6584622,266589,NULL,NULL,NULL,0,NULL,NULL 63623,45061,199551,Scholar Organizer Yearling Explainer Yearling Popular Question Notable Question Necromancer Yearling Excavator Yearling Notable Question Revival,NULL,NULL,0,NULL,NULL 63624,82282,61018,Notable Question Yearling Popular Question Famous Question Nice Question Popular Question Popular Question Famous Question Popular Question Good Question Good Question Announcer Yearling Popular Question Notable Question Popular Question Yearling Necromancer Stellar Question Notable Question,NULL,NULL,0,NULL,NULL 63625,86027,240142,NULL,NULL,NULL,0,NULL,NULL 63626,1342947,826240,Popular Question,NULL,NULL,0,NULL,NULL 63627,919110,1111824,Popular Question Custodian Yearling Good Question Nice Answer Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 63628,123324,588852,Yearling Critic Informed Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63629,37903,159177,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 63630,52822,461629,Nice Question Custodian Organizer Documentation Pioneer Notable Question Revival Caucus Necromancer Yearling Nice Answer Custodian Citizen Patrol Documentation User Enlightened Yearling Yearling Nice Answer Autobiographer,NULL,NULL,0,NULL,NULL 63631,458417,211409,Necromancer Popular Question Nice Answer Yearling Caucus Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 63632,264583,395967,Notable Question,NULL,NULL,0,NULL,NULL 63633,1565897,1356430,Popular Question Popular Question Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63634,1077777,1221084,Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 63635,202266,521510,Nice Question Curious Popular Question Yearling Popular Question Revival Revival Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 63636,1144823,400575,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 63637,163524,676905,Good Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63638,322041,114666,Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 63639,1112457,137615,Good Answer Yearling Guru Popular Question Caucus Constituent Guru Yearling Announcer Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63640,136775,87535,Yearling Revival Great Question Nice Answer Popular Question Favorite Question Favorite Question Civic Duty Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 63641,180548,64038,NULL,NULL,NULL,0,NULL,NULL 63642,85365,728756,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 63643,509057,896814,NULL,NULL,NULL,0,NULL,NULL 63644,280138,259289,NULL,NULL,NULL,0,NULL,NULL 63645,112136,713312,NULL,NULL,NULL,0,NULL,NULL 63646,605325,1386335,NULL,NULL,NULL,0,NULL,NULL 63647,886903,803815,Necromancer,NULL,NULL,0,NULL,NULL 63648,252827,638703,NULL,NULL,NULL,0,NULL,NULL 63649,498697,474412,Popular Question,NULL,NULL,0,NULL,NULL 63650,7903680,1151359,Yearling,NULL,NULL,0,NULL,NULL 63651,323702,1151359,Yearling,NULL,NULL,0,NULL,NULL 63652,849397,36574,Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 63653,136177,176160,Revival Popular Question Caucus,NULL,NULL,0,NULL,NULL 63654,20191,945546,Yearling Announcer,NULL,NULL,0,NULL,NULL 63655,417419,1481215,Notable Question Notable Question Yearling Nice Answer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63656,1793964,1162629,NULL,NULL,NULL,0,NULL,NULL 63657,1638329,974063,Nice Question Good Question Notable Question Necromancer Nice Answer Notable Question Famous Question Yearling Nice Answer Enlightened c Nice Answer Good Answer Yearling Popular Question Nice Question Revival Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 63658,41316,240004,Nice Answer Notable Question Yearling Notable Question Good Answer Nice Question Documentation User Nice Answer Enlightened Yearling Great Question Notable Question Famous Question Announcer,NULL,strongTL DR use buffers to not use tons of memory strong ppWe get to the crux of your problem believe when we consider the memory implications of working with strongvery large files strong We don want this bad boy to churn through gigs of ram for gigabyte file so as href https stackoverflow com users 3059438 pasztorpisti pasztorpisti points out we gotta deal with those bigger files in chunks ppre codeimport sysimport hashlib BUF SIZE is totally arbitrary change for your app BUF SIZE 65536 lets read stuff in 64kb chunks md5 hashlib md5 sha1 hashlib sha1 with open sys argv rb as while True data read BUF SIZE if not data break md5 update data sha1 update data print MD5 format md5 hexdigest print SHA1 format sha1 hexdigest code prepWhat we ve done is we re updating our hashes of this bad boy in 64kb chunks as we go along with hashlib handy dandy href http docs python org library hashlib html hashlib hash update rel noreferrer update method This way we use lot less memory than the 2gb it would take to hash the guy all at once ppYou can test this with ppre code mkfile 2g bigfile python hashes py bigfileMD5 a981130cf2b7e09f4686dc273cf7187eSHA1 91d50642dd930e9542c39d36f0516d45f4e1af0d md5 bigfileMD5 bigfile a981130cf2b7e09f4686dc273cf7187e shasum bigfile91d50642dd930e9542c39d36f0516d45f4e1af0d bigfile code prepHope that helps ppAlso all of this is outlined in the linked question on the right hand side href https stackoverflow com questions 1131220 get md5 hash of big files in python Get MD5 hash of big files in Python phrh3Addendum h3pIn general when writing python it helps to get into the habit of following href http legacy python org dev peps pep 0008 rel noreferrer pep For example in python variables are typically underscore separated not camelCased But that just style and no one really cares about those things except people who have to read bad style which might be you reading this code years from now AFIAK the asymptotic like BigO style runtime is not different for files when using buffers vs when not using buffers The real runtime may indeed be different though It can take longer to allocate larger buffers but allocating buffer also has fixed constant cost of asking the operating system to do something for you You have to experiment to find something optimal It might be worth it to have one thread going through and getting the file sizes and setting up an optimal buffer size map as you re iterating through your files Beware premature optimizations though,0,NULL,NULL 63659,164583,78506,Nice Question Popular Question Famous Question Caucus Self-Learner Popular Question Custodian Good Question Yearling,NULL,NULL,0,NULL,NULL 63660,521585,1157592,Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63661,975547,79802,Yearling Custodian Great Answer Popular Question Yearling Yearling,NULL,Suppress stdout stderr print from Python functions python stdout pI have Python script that is using some closed box Python functions can edit these functions provided by my employer When call these functions they are printing output to my linux terminal that would like to suppress ve tried redirecting stdout stderr via ppre codeorig out sys stdoutsys stdout StringIO rogue function sys stdout orig out code prepbut this fails to catch the output think the functions calling via Python rogue function from above are really wrappers for compiled code which are actually doing the printing ppDoes anyone know of way can do deep capture of any print handed to stdout stderr by function and any sub functions that function calls pp strongUPDATE strong ppI ended up taking the method outlined in the selected answer below and writing context manager to supress stdout and stderr ppre code Define context manager to suppress stdout and stderr class suppress stdout stderr object context manager for doing deep suppression of stdout and stderr in Python will suppress all print even if the print originates in compiled Fortran sub function This will not suppress raised exceptions since exceptions are printed to stderr just before script exits and after the context manager has exited at least think that is why it lets exceptions through def init self Open pair of null files self null fds os open os devnull os RDWR for in range Save the actual stdout and stderr file descriptors self save fds os dup os dup def enter self Assign the null pointers to stdout and stderr os dup2 self null fds os dup2 self null fds def exit self Re assign the real stdout stderr back to and os dup2 self save fds os dup2 self save fds Close all file descriptors for fd in self null fds self save fds os close fd code prepTo use this you just ppre codewith suppress stdout stderr rogue function code prepThis works pretty good It does suppress the printout from the rogue functions that were cluttering up my script noticed in testing it that it lets through raised exceptions as well as some logger print and not entirely clear why think it has something to do with emwhen em these messages get sent to stdout stderr think it happens after my context manager exits If anyone can confirm this be interested in hearing the details Just note that edited this snippet slightly so all file descriptors are closed in exit Without closing the fd in self save fds this context manager was leaking two file descriptors every time it was called leading to running out of file descriptors in long running processes,0,NULL,NULL 63662,15991,416309,Popular Question,NULL,NULL,0,NULL,NULL 63663,1349311,1503413,Editor Teacher Scholar Supporter Student Commentator Tumbleweed Critic Caucus Popular Question Yearling Enthusiast Curious Yearling Necromancer Nice Question Yearling Caucus Nice Answer Nice Question Yearling Revival Nice Question Self-Learner Notable Question Yearling Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 63664,703439,1247099,NULL,NULL,NULL,0,NULL,NULL 63665,72409,1247099,NULL,NULL,NULL,0,NULL,NULL 63666,215784,955205,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 63667,47434,515585,Popular Question Popular Question Nice Answer Nice Question Necromancer Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Answer Notable Question Announcer Custodian Informed Autobiographer Popular Question Yearling Nice Question Famous Question Revival Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 63668,9092,1070419,NULL,NULL,NULL,0,NULL,NULL 63669,383760,205357,Nice Answer,NULL,NULL,0,NULL,NULL 63670,4411111,205357,Nice Answer,NULL,NULL,0,NULL,NULL 63671,1828633,332665,NULL,NULL,NULL,0,NULL,NULL 63672,65627,874354,NULL,NULL,NULL,0,NULL,NULL 63673,130718,1466107,Supporter,NULL,NULL,0,NULL,NULL 63674,273669,986061,Famous Question,NULL,NULL,0,NULL,NULL 63675,165170,238025,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63676,916336,29855,Yearling Notable Question,NULL,NULL,0,NULL,NULL 63677,326267,597740,NULL,NULL,NULL,0,NULL,NULL 63678,10473,836240,NULL,NULL,NULL,0,NULL,NULL 63679,2608965,155299,Good Answer Good Answer Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Caucus Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Explainer Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Caucus Good Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 63680,9010,155299,Good Answer Good Answer Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Caucus Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Explainer Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Guru Good Answer Nice Answer Enlightened Caucus Good Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 63681,122274,190543,NULL,NULL,NULL,0,NULL,NULL 63682,518605,843270,Popular Question Populist Good Answer,NULL,NULL,0,NULL,NULL 63683,1144409,188050,NULL,NULL,,0,, 63684,43673,452987,Yearling Census,NULL,NULL,0,NULL,NULL 63685,3807661,1040071,NULL,NULL,NULL,0,NULL,NULL 63686,427459,179638,NULL,NULL,NULL,0,NULL,NULL 63687,138054,1260527,NULL,NULL,NULL,0,NULL,NULL 63688,364349,143085,NULL,NULL,NULL,0,NULL,NULL 63689,2716068,531161,NULL,NULL,NULL,0,NULL,NULL 63690,319312,539770,NULL,NULL,NULL,0,NULL,NULL 63691,271230,1038897,NULL,NULL,NULL,0,NULL,NULL 63692,243965,161210,Critic,NULL,NULL,0,NULL,NULL 63693,5227,1062246,NULL,NULL,NULL,0,NULL,NULL 63694,656315,784175,Yearling,NULL,NULL,0,NULL,NULL 63695,155234,784175,Yearling,NULL,NULL,0,NULL,NULL 63696,1175550,1313913,Supporter Nice Answer Yearling Yearling Editor Caucus Good Answer Custodian,NULL,NULL,0,NULL,NULL 63697,1347616,493570,NULL,NULL,NULL,0,NULL,NULL 63698,740632,1425525,Announcer Critic Yearling Caucus Enthusiast Nice Answer Enlightened Announcer Caucus Yearling Commentator,NULL,NULL,0,NULL,NULL 63699,421874,1425525,Announcer Critic Yearling Caucus Enthusiast Nice Answer Enlightened Announcer Caucus Yearling Commentator,NULL,NULL,0,NULL,NULL 63700,148300,607341,Popular Question Notable Question Nice Question Nice Answer Enthusiast Yearling Popular Question,NULL,NULL,0,NULL,NULL 63701,4912085,873803,NULL,NULL,NULL,0,NULL,NULL 63702,921358,1201426,NULL,NULL,NULL,0,NULL,NULL 63703,148747,626590,Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63704,603391,1077344,NULL,NULL,NULL,0,NULL,NULL 63705,160997,1379514,Yearling Great Answer Necromancer Necromancer Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 63706,2081875,224444,NULL,NULL,NULL,0,NULL,NULL 63707,893206,1158568,NULL,NULL,NULL,0,NULL,NULL 63708,266650,1325853,NULL,NULL,NULL,0,NULL,NULL 63709,4777711,1378546,Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 63710,216762,1378546,Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 63711,707040,472391,Student Scholar,NULL,NULL,0,NULL,NULL 63712,168778,343410,NULL,NULL,NULL,0,NULL,NULL 63713,83080,255982,Nice Question Famous Question Revival Notable Question Yearling Nice Question Nice Answer Enlightened Popular Question Nice Answer Famous Question Announcer Popular Question Notable Question Yearling Popular Question Famous Question Notable Question Nice Answer Popular Question Popular Question Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 63714,510072,755763,Nice Answer Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 63715,51275,10272,Popular Question Popular Question Notable Question Nice Question Yearling Popular Question Nice Question Notable Question Famous Question Necromancer Popular Question Yearling Nice Answer Good Answer Notable Question Good Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63716,77896,848003,NULL,NULL,NULL,0,NULL,NULL 63717,2198485,1159061,Editor Teacher,NULL,NULL,0,NULL,NULL 63718,344411,776084,Nice Question Good Question Popular Question Popular Question Famous Question Announcer Notable Question Nice Answer Great Question Popular Question Notable Question Popular Question Notable Question Nice Answer Enlightened Famous Question Notable Question Notable Question Yearling Famous Question Nice Answer Nice Answer Enlightened Guru Announcer Popular Question Nice Answer Famous Question Nice Answer Caucus Notable Question Popular Question Notable Question Notable Question Notable Question Famous Question Good Question Popular Question Famous Question Notable Question Favorite Question Great Answer Great Answer Nice Question Good Answer Nice Answer Nice Answer Yearling Nice Question Popular Question Popular Question Good Answer Notable Question Nice Answer Stellar Question Good Question Notable Question Popular Question Good Answer Announcer Nice Answer Great Question Notable Question Nice Answer Announcer Favorite Question Nice Question Famous Question Nice Answer Popular Question Popular Question Good Answer Announcer Nice Answer Nice Question Popular Question Great Answer Famous Question Yearling Great Question Famous Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63719,165542,815284,NULL,NULL,NULL,0,NULL,NULL 63720,1351235,477568,NULL,NULL,NULL,0,NULL,NULL 63721,36838,1414014,NULL,NULL,NULL,0,NULL,NULL 63722,17054,331709,NULL,NULL,NULL,0,NULL,NULL 63723,69793,815822,Supporter,NULL,NULL,0,NULL,NULL 63724,792667,132396,Stellar Question Notable Question Yearling Famous Question Good Answer Necromancer Famous Question java Famous Question Yearling Revival Good Answer Inquisitive Yearling Popular Question Great Question Famous Question,NULL,NULL,0,NULL,NULL 63725,103799,5160,Popular Question Nice Answer Revival Good Question Yearling,NULL,NULL,0,NULL,NULL 63726,597700,976490,Notable Question Revival Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 63727,339477,1178481,Yearling Yearling Yearling Self-Learner,NULL,NULL,0,NULL,NULL 63728,213718,646621,Necromancer Revival,NULL,NULL,0,NULL,NULL 63729,357418,249116,NULL,NULL,NULL,0,NULL,NULL 63730,30127,311469,Famous Question Yearling Guru Tumbleweed Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 63731,2510209,1131458,NULL,NULL,NULL,0,NULL,NULL 63732,603347,1268182,NULL,NULL,NULL,0,NULL,NULL 63733,21341,840731,Editor Teacher Commentator Yearling Critic Organizer Yearling Citizen Patrol Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 63734,202154,630158,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 63735,75806,247162,NULL,NULL,NULL,0,NULL,NULL 63736,137792,595351,Notable Question Yearling Popular Question Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 63737,227547,851588,NULL,NULL,NULL,0,NULL,NULL 63738,1673365,470107,Caucus Critic Yearling Revival Caucus,NULL,NULL,0,NULL,NULL 63739,30532,862544,Necromancer Yearling Popular Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 63740,332115,562498,Yearling Good Answer Curious Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63741,145352,1379856,NULL,NULL,NULL,0,NULL,NULL 63742,712840,734923,Yearling Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63743,165784,1417628,NULL,NULL,NULL,0,NULL,NULL 63744,1156792,630998,Popular Question,NULL,NULL,0,NULL,NULL 63745,148358,251440,Good Answer Necromancer Good Answer Yearling Revival Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63746,475435,403633,NULL,NULL,NULL,0,NULL,NULL 63747,46258,175424,Good Answer Yearling Critic Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63748,128137,679352,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63749,48446,650203,Yearling Nice Answer Yearling Good Answer Necromancer Yearling Guru Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63750,1343472,546891,NULL,NULL,NULL,0,NULL,NULL 63751,27236,476816,NULL,NULL,NULL,0,NULL,NULL 63752,211538,1411346,NULL,NULL,NULL,0,NULL,NULL 63753,1202358,370171,NULL,NULL,NULL,0,NULL,NULL 63754,125884,194932,Yearling Enthusiast Citizen Patrol Custodian Famous Question Informed Autobiographer Yearling Custodian Custodian Yearling Tumbleweed Good Question Custodian,NULL,NULL,0,NULL,NULL 63755,475016,1543647,NULL,NULL,NULL,0,NULL,NULL 63756,742537,380229,Custodian Necromancer Yearling Necromancer Nice Answer Nice Answer Necromancer Yearling Announcer Necromancer Yearling Informed Necromancer Nice Answer Nice Answer Announcer Yearling Tag Editor Good Answer Good Answer Organizer Documentation User Revival Custodian Necromancer Necromancer Necromancer Great Answer Custodian Electorate Good Answer Populist Revival Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 63757,303900,232250,Yearling Popular Question Peer Pressure Nice Question Famous Question Notable Question Yearling Popular Question Announcer Popular Question Nice Answer,NULL,Invalid public keys when using the Ruby OpenSSL library ruby cryptography openssl pI trying to generate RSA keypairs in Ruby mostly using the examples from href http stuff things net 2009 12 11 generating rsa key pairs in ruby rel nofollow this blog post Here is my slightly modified code ppre codedef generate keypair passphrase rsa key OpenSSL PKey RSA new 2048 cipher OpenSSL Cipher Cipher new aes 256 cbc private key rsa key to pem cipher passphrase public key rsa key public key to pem return private key public keyend code prepThis successfully generates private key and public key and can write those out to files on the filesystem ppre codeirb main 002 gt private key1 public key1 generate keypair test output of keys irb main 003 gt File open key pem write private key1 gt 1766irb main 004 gt File open pubkey pem write public key1 gt 426 code prepHowever OpenSSL complains when try to use this public key ppre code openssl rsautl encrypt inkey pubkey pem pubin in text txt out text sslunable to load Public Key code prepIf use the codeopenssl code tool to extract the public key from the private key then everything works ppre code openssl rsa in key pem pubout out pubkey2 pemEnter pass phrase for key pem writing RSA key openssl rsautl encrypt inkey pubkey2 pem pubin in text txt out text ssl openssl rsautl decrypt inkey key pem in text ssl Enter pass phrase for key pem this is file thatneeds to beencrypted code prepThe public key that the Ruby OpenSSL library produced is different from the public key that the codeopenssl code cli tool extracted from the private key ppre code cat pubkey pem BEGIN RSA PUBLIC KEY MIIBCgKCAQEAzgNcsEL7yGBoLBYBXFYrDL6oLP8ZbW9 VwdoXyNG6Qt NEhEx4Ww5yOxtXAbqeUwyvbTUxRrJ02dQcb4FGcSMDgz2QHIZyCuDJkgC9Wj7KI1Q7g0GV 7DcZvLcwPZOhLXqUzlcZXjDWM1PZ az734qEribgyI 87LB8TujG8v5iOvdzT Je4JAllToZVGC3RddfTc6ww37gB39B FYNzPg nrIEU45KgEWPo2eJxBpX29lACh6qEEBCQr9xyLxOC2eomYIl3dG2dV7nGGH7Pur2HjppgJphBvNkwxIWUa pD6hAnOQ4MkDDFGwWv7eJLb4UZuZjafTbqokHved3bwIDAQAB END RSA PUBLIC KEY cat pubkey2 pem BEGIN PUBLIC KEY MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzgNcsEL7yGBoLBYBXFYrDL6oLP8ZbW9 VwdoXyNG6Qt NEhEx4Ww5yOxtXAbqeUwyvbTUxRrJ02dQcb4FGcSMDgz2QHIZyCuDJkgC9Wj7KI1Q7g0GV 7DcZvLcwPZOhLXqUzlcZXjDWM1PZ az734qEribgyI 87LB8TujG8v5iOvdzT Je4JAllToZVGC3RddfTc6ww37gB39B FYNzPg nrIEU45KgEWPo2eJxBpX29lACh6qEEBCQr9xyLxOC2eomYIl3dG2dV7nGGH7Pur2HjppgJphBvNkwxIWUa pD6hAnOQ4MkDDFGwWv7eJLb4UZuZjafTbqokHved3bwIDAQAB END PUBLIC KEY code prepI not quite sure what is going on here but it seems as if the Ruby OpenSSL library is producing an invalid public key pem file Am doing something wrong See the answer to my own similar question at http stackoverflow com 36302768 232250,1,NULL,SSH SubjectPublicKeyInfo from modulus and exponent ruby openssl rsa ssh keys pI extracting the modulus and exponent from public SSH key with the goal of generating PEM public key Here is my code so far ppre coderequire base64 require openssl def unpacked byte array ssh type encoded key prefix pack ssh type decoded Base64 decode64 encoded key Base64 decoding is too permissive so we should validate if encoding is correct unless Base64 encode64 decoded gsub encoded key amp amp decoded slice prefix length prefix raise PublicKeyError validation error end data until decoded empty front decoded slice size front unpack first segment decoded slice size unless front length amp amp segment length size raise PublicKeyError byte array too short end data lt lt OpenSSL BN new segment end return dataendmodule OpenSSL module PKey class RSA def self new from parameters self new self new 64 for ruby lt converted to OpenSSL BN automatically end end endende unpacked byte array ssh rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3RC8whKGFx b7BMTFtnIWl6t qyvOvnuqIrMNI9J8 1sEYv8Y pJRh0vAe2RaSKAgB2hyzXwSJ1Fh ooraUAJ q7P2gg2kQF1nCFeGVjtV9m4ZrV5kZARcQMhp0Bp67tPo2TCtnthPYZS YQG6u 6Aco1XZjPvuKujAQMGSgqNskhKBO9zfhhkAMIcKVryjKYHDfqbDUCCSNzlwFLts3nJ0Hfno6Hz XxuBIfKOGjHfbzFyUQ7smYnzF23jFs4XhvnjmIGQJcZT4kQAsRwQubyuyDuqmQXqa 2SuQfkKTaPOlVqyuEWJdG2weIF8g3YP12czsBgNppz3jsnhEgstnQ rsa OpenSSL PKey RSA new from parameters puts rsa code prepThe goal is to have pure Ruby implementation of what codessh keygen lt file gt pem code does ppNow comparing the results they look very similar but my code returns few more bytes at the beginning of the key ppre code ssh keygen ssh id rsa perso pub pem BEGIN RSA PUBLIC KEY MIIBCAKCAQEA3RC8whKGFx b7BMTFtnIWl6t qyvOvnuqIrMNI9J8 1sEYv8Y pJRh0vAe2RaSKAgB2hyzXwSJ1Fh ooraUAJ q7P2gg2kQF1nCFeGVjtV9m4ZrV5kZARcQMhp0Bp67tPo2TCtnthPYZS YQG6u 6Aco1XZjPvuKujAQMGSgqNskhKBO9zfhhkAMIcKVryjKYHDfqbDUCCSNzlwFLts3nJ0Hfno6Hz XxuBIfKOGjHfbzFyUQ7smYnzF23jFs4XhvnjmIGQJcZT4kQAsRwQubyuyDuqmQXqa 2SuQfkKTaPOlVqyuEWJdG2weIF8g3YP12czsBgNppz3jsnhEgstnQIBIw END RSA PUBLIC KEY ruby ssh2x509 rb BEGIN PUBLIC KEY MIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEA3RC8whKGFx b7BMTFtnIWl6t qyvOvnuqIrMNI9J8 1sEYv8Y pJRh0vAe2RaSKAgB2hyzXwSJ1Fh ooraUAJ q7P2gg2kQF1nCFeGVjtV9m4ZrV5kZARcQMhp0Bp67tPo2TCtnthPYZS YQG6u 6Aco1XZjPvuKujAQMGSgqNskhKBO9zfhhkAMIcKVryjKYHDfqbDUCCSNzlwFLts3nJ0Hfno6Hz XxuBIfKOGjHfbzFyUQ7smYnzF23jFs4XhvnjmIGQJcZT4kQAsRwQubyuyDuqmQXqa 2SuQfkKTaPOlVqyuEWJdG2weIF8g3YP12czsBgNppz3jsnhEgstnQIBIw END PUBLIC KEY code prepNotice my output has the content of the codessh keygen code output but with codeMIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0A code prepended ppWhat could cause these extra bytes and how could get the proper result pIt seems the output format for RSA keys in Ruby OpenSSL was changed in from PKCS used by OpenSSH to X509 used by OpenSSL post pp href https redmine ruby lang org issues 4421 rel nofollow https redmine ruby lang org issues 4421 ppWhat is suggested in this bug report is to href https gist github com emboss 2902696 rel nofollow emulate the PKCS with ppre codeary OpenSSL ASN1 Integer new OpenSSL ASN1 Integer new pub key OpenSSL ASN1 Sequence new ary base64 Base64 encode64 pub key to der This is the equivalent to the PKCS encoding used before 3pem BEGIN RSA PUBLIC KEY base64 END RSA PUBLIC KEY code prepThe monkey patching of codeOpenSSL PKey RSA code is thus not necessary 63758,340747,410015,NULL,NULL,NULL,0,NULL,NULL 63759,9103915,1144062,NULL,NULL,NULL,0,NULL,NULL 63760,310133,275413,Popular Question,NULL,NULL,0,NULL,NULL 63761,1353715,1391509,NULL,NULL,NULL,0,NULL,NULL 63762,334805,460916,NULL,NULL,NULL,0,NULL,NULL 63763,370199,1090744,Curious Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63764,278,100066,Famous Question Notable Question Famous Question Popular Question Famous Question Yearling Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63765,377742,1369234,NULL,NULL,NULL,0,NULL,NULL 63766,6399287,701459,NULL,NULL,NULL,0,NULL,NULL 63767,2917,295001,NULL,NULL,NULL,0,NULL,NULL 63768,14259,890205,Custodian Revival Citizen Patrol Yearling Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 63769,340293,1495215,NULL,NULL,NULL,0,NULL,NULL 63770,1634442,22465,NULL,NULL,NULL,0,NULL,NULL 63771,16108,1429653,NULL,NULL,NULL,0,NULL,NULL 63772,170460,771978,Notable Question Caucus Constituent Documentation User Yearling Civic Duty Caucus Constituent,NULL,NULL,0,NULL,NULL 63773,664692,994682,NULL,NULL,NULL,0,NULL,NULL 63774,4620531,1338435,NULL,NULL,NULL,0,NULL,NULL 63775,264075,430102,Notable Question Famous Question Popular Question Caucus Yearling Popular Question Self-Learner Popular Question Popular Question Nice Answer Enlightened Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63776,186107,1464463,NULL,NULL,NULL,0,NULL,NULL 63777,478716,1178674,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 63778,55590,1386856,NULL,NULL,NULL,0,NULL,NULL 63779,81863,815375,NULL,NULL,NULL,0,NULL,NULL 63780,1034616,815375,NULL,NULL,NULL,0,NULL,NULL 63781,1382394,1496144,NULL,NULL,NULL,0,NULL,NULL 63782,2167701,1043141,NULL,NULL,NULL,0,NULL,NULL 63783,50729,553341,Editor Yearling Caucus Revival Caucus Nice Question Caucus,NULL,NULL,0,NULL,NULL 63784,1829557,846036,NULL,NULL,NULL,0,NULL,NULL 63785,825443,1289868,NULL,NULL,NULL,0,NULL,NULL 63786,390452,118015,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63787,660404,1281256,NULL,NULL,NULL,0,NULL,NULL 63788,510014,1167241,Teacher,NULL,NULL,0,NULL,NULL 63789,587920,1069110,NULL,NULL,NULL,0,NULL,NULL 63790,1054741,1001848,Notable Question Notable Question Yearling Good Question Yearling Good Answer Popular Question Announcer Popular Question Great Answer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 63791,364941,572071,Yearling,NULL,,0,, 63792,153679,673363,Promoter Popular Question Nice Question,NULL,NULL,0,NULL,NULL 63793,341173,27106,Popular Question,NULL,NULL,0,NULL,NULL 63794,154219,379521,Tumbleweed,NULL,NULL,0,NULL,NULL 63795,19620,306467,Yearling,NULL,NULL,0,NULL,NULL 63796,1107337,829393,Good Question,NULL,NULL,0,NULL,NULL 63797,39058,283851,Nice Answer Yearling Nice Answer Good Answer Promoter Nice Question Good Answer Yearling Announcer Necromancer Nice Question Yearling Famous Question Necromancer Nice Answer Popular Question php Announcer,NULL,Import regular CSS file in SCSS file sass pIs there anyway to import regular CSS file with Sass code code command While not using all of the SCSS syntax from sass do still enjoy it combining compressing features and would like to be able to use it without renaming all of my files to scss the accepted answer is outdated it is implemented and available everywhere by now including libsass Please update the accepted answer to either of the two ones with 200 votes reading through dozen answers to get to the right one is not useful Import regular CSS file in SCSS file sass pIs there anyway to import regular CSS file with Sass code code command While not using all of the SCSS syntax from sass do still enjoy it combining compressing features and would like to be able to use it without renaming all of my files to scss łczewski done pFirst note that it is not possible to detect whether text belongs to specific undesired encoding You can only check whether string is valid in given encoding ppYou can make use of the UTF validity check that is available in href http php net manual en function preg match php codepreg match code sup strong PHP Manual strong sup since PHP It will return code0 code with no additional information if an invalid string is given ppre code isUTF8 preg match string code prepAnother possibility is href http www php net manual en function mb check encoding php codemb check encoding code sup strong PHP Manual strong sup ppre code validUTF8 mb check encoding string UTF code prepAnother function you can use is href http php net manual en function mb detect encoding php codemb detect encoding code sup strong PHP Manual strong sup ppre code validUTF8 false mb detect encoding string UTF true code prepIt important to set the codestrict code parameter to codetrue code ppAdditionally href http php net manual en function iconv php codeiconv code sup strong PHP Manual strong sup allows you to change drop invalid sequences on the fly However if codeiconv code encounters such sequence it generates notification this behavior cannot be changed ppre codeecho TRANSLIT iconv UTF ISO 8859 TRANSLIT string PHP EOL echo IGNORE iconv UTF ISO 8859 IGNORE string PHP EOL code prepYou can use code code and check the length of the return string ppre codestrlen string strlen UTF UTF IGNORE string code prepCheck the examples on the codeiconv code manual page as well ppYou have not shared the source code where the notice is resulting from You should add it if you want more concrete suggestion Good overview of all the options wrote micro benchmark https github com mindplay dk benchpress blob master example4 php to see which is faster preg match appears to be the fastest overall under PHP both for valid invalid and short long strings h1Misconceptions h1pThere are few common misconceptions regarding WebSocket and Socket IO polli pThe first misconception is that using Socket IO is significantly easier than using WebSocket which doesn seem to be the case See examples below lili pThe second misconception is that WebSocket is not widely supported in the browsers See below for more info lili pThe third misconception is that Socket IO downgrades the connection as fallback on older browsers It actually assumes that the browser is old and starts an AJAX connection to the server that gets later upgraded on browsers supporting WebSocket after some traffic is exchanged See below for details li olh1My experiment h1pI wrote an npm module to demonstrate the difference between WebSocket and Socket IO pulli href https www npmjs com package websocket vs socket io https www npmjs com package websocket vs socket io lili href https github com rsp node websocket vs socket io https github com rsp node websocket vs socket io li ulpIt is simple example of server side and client side code the client connects to the server using either WebSocket or Socket IO and the server sends three messages in 1s intervals which are added to the DOM by the client ph1Server side h1pCompare the server side example of using WebSocket and Socket IO to do the same in an Express js app ph2WebSocket Server h2pWebSocket server example using Express js ppre codevar path require path var app require express var ws require express ws app app get req res gt console error express connection res sendFile path join dirname ws html app ws req gt console error websocket connection for var lt setTimeout gt send message from server gt 1000 app listen 3001 gt console error listening on http localhost 3001 console error websocket example code prepSource href https github com rsp node websocket vs socket io blob master ws js https github com rsp node websocket vs socket io blob master ws js ph2Socket IO Server h2pSocket IO server example using Express js ppre codevar path require path var app require express var http require http Server app var io require socket io http app get req res gt console error express connection res sendFile path join dirname si html io on connection gt console error socket io connection for var lt setTimeout gt emit message message from server 1000 http listen 3002 gt console error listening on http localhost 3002 console error socket io example code prepSource href https github com rsp node websocket vs socket io blob master si js https github com rsp node websocket vs socket io blob master si js ph1Client side h1pCompare the client side example of using WebSocket and Socket IO to do the same in the browser ph2WebSocket Client h2pWebSocket client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening websocket connection var new WebSocket ws window location host addEventListener error function log error addEventListener open function log websocket connection open addEventListener message function log data code prepSource href https github com rsp node websocket vs socket io blob master ws html https github com rsp node websocket vs socket io blob master ws html ph2Socket IO Client h2pSocket IO client example using vanilla JavaScript ppre codevar document getElementById var log function var document createElement li innerText new Date toISOString appendChild log opening socket io connection var io on connect error function log error on connect function log socket io connection open on message function log code prepSource href https github com rsp node websocket vs socket io blob master si html https github com rsp node websocket vs socket io blob master si html ph1Network traffic h1pTo see the difference in network traffic you can href https github com rsp node websocket vs socket io readme run my test Here are the results that got ph2WebSocket Results h2h32 requests 50 KB 05 h3pFrom those requests polliHTML page itself liliconnection upgrade to WebSocket li olp The connection upgrade request is visible on the developer tools with 101 Switching Protocols response ph2Socket IO Results h2h36 requests 181 56 KB 25 h3pFrom those requests pollithe HTML page itself liliSocket IO JavaScript 180 kilobytes lilifirst long polling AJAX request lilisecond long polling AJAX request lilithird long polling AJAX request liliconnection upgrade to WebSocket li olh2Screenshots h2pWebSocket results that got on localhost pp href https stack imgur com e2yY5 png img src https stack imgur com e2yY5 png alt WebSocket results websocket vs socket io module ppSocket IO results that got on localhost pp href https stack imgur com RHymm png img src https stack imgur com RHymm png alt Socket IO results websocket vs socket io module ph2Test yourself h2pQuick start ppre code Install npm websocket vs socket io Run the server websocket vs socket io code prepOpen href http localhost 3001 http localhost 3001 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the WebSocket version ppOpen href http localhost 3002 http localhost 3002 in your browser open developer tools with Shift Ctrl open the Network tab and reload the page with Ctrl to see the network traffic for the Socket IO version ppTo uninstall ppre code Uninstall npm rm websocket vs socket io code preh1Browser compatibility h1pAs of June 2016 WebSocket works on everything except Opera Mini including IE higher than ppThis is the browser compatibility of WebSocket on href http caniuse com feat websockets Can Use as of June 2016 pp href https stack imgur com igTKM png img src https stack imgur com igTKM png alt enter image description here ppSee href http caniuse com websockets http caniuse com websockets for up to date info don think these examples are functionally equivalent though Socket io handles things like auto reconnecting when interrupted which happens on mobile devices and think there are security concerns around that which are handled for you Your plain WS examples while functionally equivalent do not have these properties,0,NULL,NULL 63798,12035,184070,NULL,NULL,NULL,0,NULL,NULL 63799,545410,476031,NULL,NULL,NULL,0,NULL,NULL 63800,3280548,476031,NULL,NULL,NULL,0,NULL,NULL 63801,71887,198185,NULL,NULL,NULL,0,NULL,NULL 63802,684852,371233,NULL,NULL,NULL,0,NULL,NULL 63803,103608,257808,Yearling Commentator Nice Question Yearling,NULL,NULL,0,NULL,NULL 63804,1074099,1310469,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63805,673901,64122,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 63806,237686,439326,Nice Answer Yearling Nice Answer asp.net-identity Nice Answer Enlightened Good Answer Yearling Necromancer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 63807,143953,65337,NULL,NULL,NULL,0,NULL,NULL 63808,206760,437294,NULL,NULL,NULL,0,NULL,NULL 63809,596471,720354,NULL,NULL,NULL,0,NULL,NULL 63810,1127411,744808,NULL,NULL,NULL,0,NULL,NULL 63811,1622424,1162467,Nice Question Famous Question Teacher Critic Yearling Tag Editor Citizen Patrol Caucus Constituent Enthusiast,NULL,NULL,0,NULL,NULL 63812,368262,605729,NULL,NULL,NULL,0,NULL,NULL 63813,674566,1265315,Good Answer Yearling Necromancer Good Answer Curious Notable Question Revival Nice Question Necromancer Popular Question Yearling Populist Famous Question Great Answer Yearling Custodian Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 63814,721585,1509805,Census Teacher,NULL,NULL,0,NULL,NULL 63815,1167059,1542791,Supporter,NULL,NULL,0,NULL,NULL 63816,220668,1542791,Supporter,NULL,NULL,0,NULL,NULL 63817,96881,355003,NULL,NULL,NULL,0,NULL,NULL 63818,3297,178827,Nice Answer Civic Duty Announcer Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 63819,614144,1020480,Nice Answer Census Caucus Yearling,NULL,NULL,0,NULL,NULL 63820,266095,268251,NULL,NULL,NULL,0,NULL,NULL 63821,1394092,649161,Notable Question Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 63822,362780,1122889,Teacher Custodian Supporter,NULL,NULL,0,NULL,NULL 63823,3718873,1053982,NULL,NULL,NULL,0,NULL,NULL 63824,60953,392345,Popular Question Yearling ruby-on-rails Yearling Yearling,NULL,NULL,0,NULL,NULL 63825,1127967,604464,Yearling,NULL,NULL,0,NULL,NULL 63826,1421801,1048433,Necromancer Yearling Necromancer Necromancer Good Answer Necromancer Announcer Necromancer Yearling Necromancer Necromancer Necromancer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 63827,478075,613466,NULL,NULL,NULL,0,NULL,NULL 63828,1094908,859758,NULL,NULL,NULL,0,NULL,NULL 63829,6548689,225995,NULL,NULL,NULL,0,NULL,NULL 63830,1900,225995,NULL,NULL,NULL,0,NULL,NULL 63831,252611,478940,NULL,NULL,NULL,0,NULL,NULL 63832,3961329,292585,NULL,NULL,NULL,0,NULL,NULL 63833,788519,292585,NULL,NULL,NULL,0,NULL,NULL 63834,14804,75194,Notable Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 63835,284240,608711,NULL,NULL,NULL,0,NULL,NULL 63836,543892,985477,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 63837,551501,70959,NULL,NULL,NULL,0,NULL,NULL 63838,956802,1378192,Popular Question,NULL,NULL,0,NULL,NULL 63839,1142635,249171,NULL,NULL,NULL,0,NULL,NULL 63840,894327,664753,NULL,NULL,NULL,0,NULL,NULL 63841,191162,647190,NULL,NULL,NULL,0,NULL,NULL 63842,290804,553880,NULL,NULL,NULL,0,NULL,NULL 63843,19370,721890,NULL,NULL,NULL,0,NULL,NULL 63844,368411,81717,Popular Question Yearling Notable Question Notable Question Caucus Yearling Notable Question Notable Question Yearling Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63845,306631,1386912,Famous Question,NULL,NULL,0,NULL,NULL 63846,555361,629609,NULL,NULL,NULL,0,NULL,NULL 63847,80893,875011,NULL,NULL,NULL,0,NULL,NULL 63848,142738,1410968,Supporter Necromancer,NULL,NULL,0,NULL,NULL 63849,30802,584249,Informed Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63850,1478601,1309835,Informed Tumbleweed Editor,NULL,NULL,0,NULL,NULL 63851,159922,1002641,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 63852,1133568,889969,NULL,NULL,NULL,0,NULL,NULL 63853,208452,284250,Popular Question Nice Question Tumbleweed Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63854,47009,1064897,NULL,NULL,NULL,0,NULL,NULL 63855,211980,324418,NULL,NULL,NULL,0,NULL,NULL 63856,17094,285848,Yearling Yearling Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 63857,723940,699723,NULL,NULL,NULL,0,NULL,NULL 63858,4025,282660,NULL,NULL,NULL,0,NULL,NULL 63859,137176,630910,Famous Question,NULL,NULL,0,NULL,NULL 63860,317760,383141,NULL,NULL,NULL,0,NULL,NULL 63861,288519,605386,NULL,NULL,NULL,0,NULL,NULL 63862,1569132,779177,Excavator Popular Question,NULL,NULL,0,NULL,NULL 63863,167085,329940,Popular Question,NULL,NULL,0,NULL,NULL 63864,811657,292119,NULL,NULL,NULL,0,NULL,NULL 63865,1748967,292119,NULL,NULL,NULL,0,NULL,NULL 63866,889856,608996,Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 63867,69176,179104,Guru Good Answer mysql Nice Answer Necromancer Populist Good Answer Good Answer Notable Question Good Answer Popular Question Nice Answer Good Answer Necromancer javascript Yearling Announcer Necromancer Popular Question Good Answer Good Answer Yearling Good Answer Great Answer Nice Answer Necromancer Nice Answer Booster Yearling,NULL,NULL,0,NULL,NULL 63868,1341,300313,Student Notable Question,NULL,NULL,0,NULL,NULL 63869,443882,615332,NULL,NULL,NULL,0,NULL,NULL 63870,892523,770119,Popular Question Notable Question Necromancer Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 63871,357759,536419,NULL,NULL,NULL,0,NULL,NULL 63872,510732,229385,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 63873,1040589,1474205,Scholar,NULL,NULL,0,NULL,NULL 63874,96569,198585,NULL,NULL,NULL,0,NULL,NULL 63875,375590,572246,Supporter,NULL,NULL,0,NULL,NULL 63876,20242,1257042,Notable Question,NULL,NULL,0,NULL,NULL 63877,240162,339974,Yearling Notable Question,NULL,NULL,0,NULL,NULL 63878,762500,198638,NULL,NULL,NULL,0,NULL,NULL 63879,390042,330429,Notable Question Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 63880,713295,1466561,NULL,NULL,NULL,0,NULL,NULL 63881,2126,964991,Supporter Revival Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 63882,2397057,1374171,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63883,226981,326154,Nice Answer Popular Question Notable Question Nice Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Custodian Citizen Patrol Notable Question Notable Question Famous Question Popular Question Notable Question Yearling Popular Question Favorite Question Great Question,NULL,NULL,0,NULL,NULL 63884,288436,647192,NULL,NULL,NULL,0,NULL,NULL 63885,3000,116020,Yearling Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63886,181879,754261,NULL,NULL,NULL,0,NULL,NULL 63887,1062631,812430,NULL,NULL,NULL,0,NULL,NULL 63888,489031,1398792,Census Notable Question,NULL,NULL,0,NULL,NULL 63889,449948,1289552,NULL,NULL,NULL,0,NULL,NULL 63890,356364,1111028,Yearling,NULL,NULL,0,NULL,NULL 63891,595449,910443,Autobiographer Promoter Benefactor Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63892,119202,926164,Organizer,NULL,NULL,0,NULL,NULL 63893,1486140,622367,NULL,NULL,NULL,0,NULL,NULL 63894,654981,622367,NULL,NULL,NULL,0,NULL,NULL 63895,3047540,622367,NULL,NULL,NULL,0,NULL,NULL 63896,53391,688480,Custodian Proofreader Yearling ruby Guru Good Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 63897,229103,587965,NULL,NULL,NULL,0,NULL,NULL 63898,46011,412087,Autobiographer Nice Answer Yearling Enlightened,NULL,NULL,1,NULL,Cancel saga when an action is dispatched with redux saga javascript redux redux saga pI start timer for stopwatch React component when START action is dispatched ppre codeimport babel polyfill import call put from redux saga effects import delay takeEvery takeLatest from redux saga import tick START TICK STOP from actions const ONE SECOND 1000export function timerTickWorkerSaga getState yield call delay ONE SECOND yield put tick export default function timerTickSaga yield takeEvery START TICK timerTickWorkerSaga yield takeLatest STOP cancel timerTickWorkerSaga The saga should start when either START or TICK is dispatched The saga should stop running when stop is dispatched code prepI have trouble stopping the saga when the codeSTOP code action is dispatched from my component have tried using codecancel code and codecancelled code effects from within my worker saga ppre codeif yield take STOP yield cancel timerTickWorkerSaga code prepas well as the approach in the first code block where try and stop the saga from the watching service pLooks like few things are going on here polliThe codecancel code side effect href https github com redux saga redux saga blob master docs api README md canceltask rel nofollow noreferrer takes codeTask code object as its argument What you re passing into it in the code above is just the codeGeneratorFunction code that creates the saga Generator object For great intro to generators and how they work check out href https davidwalsh name es6 generators rel nofollow noreferrer this article lili pYou re using codeyield code before the codetakeEvery code and codetakeLatest code generators Using codeyield code will href https github com redux saga redux saga blob master docs advanced SequencingSagas md rel nofollow noreferrer spread the whole sequence So you can think of it like this that it filling in the line pp codeyield takeEvery START TICK timerTickWorkerSaga code ppwith ppre codewhile true const action yield take START TICK yield fork timeTickWorkerSaga action code prepAnd don think this is what you re going for because believe this will end up blocking the second line of your codetimerTickSaga code Instead you probably want ppre codeyield fork takeEvery START TICK timerTickWorkerSaga code prepThis forks off the codetakeEvery code effect so it doesn block the next line lili pThe second argument you re passing into codetakeLatest code is just an object href https github com redux saga redux saga blob master docs api README md canceltask rel nofollow noreferrer CANCEL effect object The second argument to codetakeLatest code should actually be codeGeneratorFunction code which will be run when an action matching the codeSTOP code pattern is dispatched to the Redux store So that should really be saga function You want this to cancel the codefork takeEvery START TICK timerTickWorkerSaga code task so that future codeSTART code and codeTICK code actions will not cause the codetimerTickWorkerSaga code to run You can achieve this by having the saga run codeCANCEL code effect with the codeTask code object that resulted from the codefork takeEvery code effect We can the codeTask code object as an href https github com redux saga redux saga blob master docs api README md takelatestpattern saga args rel nofollow noreferrer additional argument to the codetakeLatest code saga So we end up with something along the lines of ppre codeexport default function timerTickSaga const workerTask yield fork takeEvery START TICK timerTickWorkerSaga yield fork takeLatest STOP cancelWorkerSaga workerTask function cancelWorkerSaga task yield cancel task code pre li olpFor additional reference check out the href https github com redux saga redux saga blob master docs advanced TaskCancellation md rel nofollow noreferrer task cancellation example in the redux saga docs If you look in the codemain code saga there you ll see how the codefork code effect yields codeTask code object descriptor that is used further down when yielding the codecancel code effect 63899,118167,62023,Student Scholar,NULL,NULL,0,NULL,NULL 63900,215828,2046,Notable Question,NULL,NULL,0,NULL,NULL 63901,140197,30658,NULL,NULL,NULL,0,NULL,NULL 63902,276969,1314047,Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 63903,160902,30089,Notable Question,NULL,NULL,0,NULL,NULL 63904,6604654,770945,NULL,NULL,NULL,0,NULL,NULL 63905,167585,976201,Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 63906,215950,147589,Nice Question Notable Question Civic Duty Autobiographer,NULL,NULL,0,NULL,NULL 63907,219380,937005,Self-Learner Yearling Good Answer Tumbleweed Great Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 63908,180935,591969,Notable Question Yearling Good Answer Popular Question Guru Nice Question Yearling,NULL,NULL,0,NULL,NULL 63909,4458,869809,Yearling Great Answer Popular Question Caucus Self-Learner Nice Question Yearling Announcer Documentation User Popular Question Popular Question Nice Answer Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 63910,69530,1011805,NULL,NULL,NULL,0,NULL,NULL 63911,243983,499296,Supporter,NULL,NULL,0,NULL,NULL 63912,552900,916515,Popular Question,NULL,NULL,0,NULL,NULL 63913,40355,70756,Notable Question,NULL,NULL,0,NULL,NULL 63914,258956,1001570,Editor Scholar,NULL,NULL,0,NULL,NULL 63915,125195,1170049,NULL,NULL,NULL,0,NULL,NULL 63916,65192,500594,Notable Question,NULL,NULL,0,NULL,NULL 63917,1515726,1089754,Notable Question,NULL,NULL,0,NULL,NULL 63918,173524,922081,NULL,NULL,NULL,0,NULL,NULL 63919,531178,1137389,NULL,NULL,NULL,0,NULL,NULL 63920,3281538,593413,Yearling Popular Question Famous Question Notable Question Nice Question Caucus Famous Question Nice Question Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 63921,1304550,593413,Yearling Popular Question Famous Question Notable Question Nice Question Caucus Famous Question Nice Question Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 63922,24199,1018653,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 63923,47674,485953,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 63924,150756,198096,Teacher Supporter,NULL,NULL,0,NULL,NULL 63925,1468689,152255,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 63926,125522,872307,NULL,NULL,NULL,0,NULL,NULL 63927,559820,1321873,Yearling android Announcer Promoter Student Nice Question Benefactor Nice Answer Announcer Announcer Announcer Good Answer Caucus Yearling Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Popular Question Caucus Investor Constituent Booster Tumbleweed Nice Question Announcer Custodian Announcer Announcer Announcer Announcer Announcer Revival Announcer Announcer Announcer Custodian Announcer Announcer Good Answer Yearling Announcer Nice Answer Booster Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 63928,230385,591884,Yearling Revival Revival Good Answer Revival Notable Question Revival ios Necromancer Yearling Nice Answer Necromancer Great Answer Yearling Notable Question Populist,NULL,NULL,0,NULL,NULL 63929,381129,776067,Supporter Caucus Caucus,NULL,NULL,0,NULL,NULL 63930,133004,88853,Editor,NULL,NULL,0,NULL,NULL 63931,45193,1190256,Popular Question Caucus Constituent Famous Question Yearling Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63932,303223,547160,Teacher,NULL,NULL,0,NULL,NULL 63933,1081136,711232,NULL,NULL,NULL,0,NULL,NULL 63934,1090090,310731,Populist Popular Question Yearling Popular Question Yearling Guru Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 63935,16849,279640,Notable Question,NULL,NULL,0,NULL,NULL 63936,680831,373882,Informed Supporter Teacher,NULL,NULL,0,NULL,NULL 63937,455840,3879,Famous Question Excavator Citizen Patrol Popular Question Caucus Popular Question Yearling Inquisitive Popular Question Popular Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 63938,61271,932414,Popular Question Popular Question Scholar,NULL,NULL,0,NULL,NULL 63939,14907,158415,Nice Question Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 63940,897007,384957,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 63941,2827544,896775,NULL,NULL,NULL,0,NULL,NULL 63942,9355,482630,NULL,NULL,NULL,0,NULL,NULL 63943,1744062,722263,Nice Question Popular Question Notable Question Good Question Nice Question Nice Question Excavator Nice Answer Enlightened Yearling Good Question sql Revival Popular Question Popular Question Popular Question Necromancer Famous Question Nice Answer Nice Answer Popular Question Nice Answer Enlightened Good Answer Popular Question Good Question Popular Question Good Question Famous Question apache Caucus Popular Question Notable Question Notable Question Nice Answer Famous Question Popular Question Popular Question Notable Question Great Answer Popular Question Yearling Famous Question Nice Question Nice Question Guru Notable Question Nice Answer Notable Question Popular Question Nice Answer Enlightened Nice Question Nice Question Good Answer Notable Question Famous Question Pundit Notable Question Popular Question Popular Question Popular Question Nice Question Nice Answer Popular Question Yearling Popular Question Nice Answer Enlightened Nice Answer Nice Question Nice Question Nice Answer Good Question Good Answer Notable Question Nice Question Good Answer Famous Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63944,45868,518296,NULL,NULL,NULL,0,NULL,NULL 63945,452498,669890,NULL,NULL,NULL,0,NULL,NULL 63946,237732,52160,Yearling Announcer Announcer Announcer Announcer javascript Announcer Announcer Announcer Yearling Announcer cordova Caucus Announcer Notable Question Yearling Excavator Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 63947,1472018,1313409,Yearling Caucus Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 63948,7126,933653,NULL,NULL,NULL,0,NULL,NULL 63949,101130,32767,Informed Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 63950,32492,230948,Notable Question,NULL,NULL,0,NULL,NULL 63951,370809,410872,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63952,295185,895974,Not a Robot,NULL,NULL,0,NULL,NULL 63953,91555,313566,NULL,NULL,NULL,0,NULL,NULL 63954,127779,1296336,Nice Answer Yearling Good Answer Yearling Necromancer Caucus Constituent Yearling Caucus Constituent Necromancer Famous Question Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 63955,136656,1363236,Good Answer Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 63956,109485,1483713,NULL,NULL,NULL,0,NULL,NULL 63957,440233,659354,Necromancer Popular Question Necromancer Yearling Popular Question Nice Answer Notable Question Nice Answer Notable Question Self-Learner Yearling Good Answer Famous Question Notable Question Famous Question Nice Question Notable Question Yearling java Popular Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 63958,108956,160381,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 63959,1208974,961657,NULL,NULL,NULL,0,NULL,NULL 63960,609076,495961,NULL,NULL,NULL,0,NULL,NULL 63961,255730,216552,Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 63962,297993,517595,Critic Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 63963,444636,163557,Tumbleweed Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 63964,75511,508694,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 63965,1439415,452319,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63966,199706,452319,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63967,1860737,452319,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63968,182150,636496,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 63969,804398,674713,Notable Question,NULL,NULL,0,NULL,NULL 63970,1248414,1170848,Editor Custodian Informed,NULL,NULL,0,NULL,NULL 63971,1030696,1013496,Popular Question,NULL,NULL,0,NULL,NULL 63972,298574,985329,NULL,NULL,NULL,0,NULL,NULL 63973,219740,1235402,Self-Learner Curious Informed,NULL,NULL,0,NULL,NULL 63974,109517,371342,Popular Question Yearling Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63975,501136,1153097,Announcer Popular Question Caucus Documentation User Announcer,NULL,NULL,0,NULL,NULL 63976,718537,704960,Yearling,NULL,NULL,0,NULL,NULL 63977,41556,733714,NULL,NULL,NULL,0,NULL,NULL 63978,138117,78601,Great Question Necromancer Notable Question Yearling Notable Question Disciplined Famous Question Popular Question Yearling Good Question Notable Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 63979,1496238,1353685,NULL,NULL,NULL,0,NULL,NULL 63980,63938,591674,Nice Answer,NULL,NULL,0,NULL,NULL 63981,239301,1373266,NULL,NULL,NULL,0,NULL,NULL 63982,179249,1452191,NULL,NULL,NULL,0,NULL,NULL 63983,486626,711720,NULL,NULL,NULL,0,NULL,NULL 63984,412416,228508,Yearling Yearling Yearling Nice Answer Enlightened Great Answer,NULL,NULL,0,NULL,NULL 63985,2909779,219032,NULL,NULL,NULL,0,NULL,NULL 63986,1510645,271505,Notable Question,NULL,NULL,0,NULL,NULL 63987,981013,326360,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 63988,401634,326360,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 63989,37778,259912,Yearling Notable Question Popular Question Good Question Nice Question Famous Question Famous Question Good Question Yearling Famous Question Notable Question Popular Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 63990,116510,1322654,Favorite Question Teacher Caucus Yearling Revival Yearling Great Question Necromancer,NULL,NULL,0,NULL,NULL 63991,2113019,1384030,Yearling Announcer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 63992,35396,158026,Citizen Patrol Caucus Custodian Informed Autobiographer Caucus Custodian Necromancer Yearling Census Caucus Nice Answer Excavator,NULL,NULL,0,NULL,NULL 63993,50548,197353,Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 63994,247375,63179,Nice Answer Enlightened Yearling Good Answer Great Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened visual-studio Good Answer Yearling Nice Answer Enlightened tfs Revival Good Answer Documentation User Revival Revival Yearling Announcer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 63995,730729,254011,Commentator,NULL,NULL,0,NULL,NULL 63996,101875,129801,Popular Question Nice Answer Enlightened Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 63997,50901,2305,Famous Question Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 63998,131295,395676,Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 63999,208519,1233120,Popular Question Announcer Announcer Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 64000,386888,84869,NULL,NULL,NULL,0,NULL,NULL 64001,132687,875915,Nice Question Nice Answer Nice Question Nice Answer Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Notable Question Popular Question Yearling Nice Answer Notable Question Good Question Cleanup Notable Question Notable Question Nice Question Archaeologist Custodian Good Answer Famous Question Notable Question Notable Question Notable Question Popular Question Nice Question Good Question Nice Question Nice Question Good Question Yearling Explainer Nice Question Nice Question Documentation User Notable Question Good Answer Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Popular Question Popular Question Notable Question Good Answer Nice Question Famous Question Famous Question Notable Question Yearling Famous Question Notable Question,NULL,pBeginning with href https github com git git blob master Documentation RelNotes txt L289 Git the server will send the actual branch name that codeHEAD code points to in the symref capability If you have both client and server newer than Git it will update codeHEAD code emcorrectly em ppPrior to that the client will guess what HEAD may have pointed to by comparing the object ID that HEAD ultimately points to with all the object IDs of all the branches It prefers branch named coderefs heads master code if both codeHEAD code and codemaster code point to the same object ID then clone will set the default branch in the new repository to codemaster code ppOtherwise the first branch with matching OID when the branches are sorted alphanumerically will be the default branch If no branches have matching OIDs then codeHEAD code will be set directly to the object ID ie detached HEAD Beginning with Git the server will send the actual branch name that HEAD points to don understand My understanding is that HEAD is reference to the last commit in the currently checked out branch This quote implies that HEAD is independent of checked out branch So which branch will be used beginning with Git,1,How to tell if any command in bash script failed non zero exit status bash sh exit code exitstatus pI want to know whether any commands in bash script exited with non zero status ppI want something similar to codeset code functionality except that don want it to exit when command exits with non zero status want it to run the whole script and then want to know that either ppa all commands exited with exit status 0br or brb one or more commands exited with non zero status pp br given the following ppre code bin bashcommand1 exits with status 1command2 exits with status 0command3 exits with status code prepI want all three commands to run After running the script want an indication that at least one of the commands exited with non zero status,NULL 64002,182278,208939,Great Question Nice Answer Notable Question Yearling Popular Question Revival Popular Question Custodian Informed Custodian Custodian Organizer Famous Question Nice Question Notable Question Notable Question Documentation User Nice Question Yearling Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 64003,180535,360930,Popular Question Commentator,NULL,NULL,0,NULL,NULL 64004,405317,973933,Popular Question,NULL,NULL,0,NULL,NULL 64005,404759,811798,NULL,NULL,NULL,0,NULL,NULL 64006,306108,1189610,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 64007,642149,1049872,NULL,NULL,NULL,0,NULL,NULL 64008,171455,758169,NULL,NULL,NULL,0,NULL,NULL 64009,422685,559551,Good Answer Yearling,NULL,NULL,0,NULL,NULL 64010,72679,47056,Yearling Popular Question Nice Answer Notable Question Notable Question Critic,NULL,NULL,0,NULL,NULL 64011,195140,1118469,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 64012,621944,1011869,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 64013,3024696,1011869,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 64014,1336129,364662,Good Question Popular Question Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 64015,28077,251860,Yearling Nice Answer Enlightened Popular Question Famous Question Nice Question Custodian Nice Question Yearling Good Answer Notable Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64016,12428,214464,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 64017,50561,766565,Supporter,NULL,NULL,0,NULL,NULL 64018,179565,13169,Great Answer Great Answer Notable Question Great Answer Famous Question Good Answer Good Question Yearling Nice Answer Tag Editor Notable Question Yearling Notable Question Nice Answer Enlightened Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64019,46860,194404,Yearling,NULL,NULL,0,NULL,NULL 64020,230888,1080723,Popular Question,NULL,NULL,0,NULL,NULL 64021,74492,41497,NULL,NULL,NULL,0,NULL,NULL 64022,655424,825584,Necromancer,NULL,NULL,0,NULL,NULL 64023,490565,1376006,NULL,NULL,NULL,0,NULL,NULL 64024,1572034,349918,NULL,NULL,NULL,0,NULL,NULL 64025,47864,29753,Census,NULL,NULL,0,NULL,NULL 64026,85063,158773,Yearling Guru Yearling Yearling Necromancer,NULL,pThere isn built in flag yet but you can use ppre codepip list outdated format freeze grep cut xargs n1 pip install code prepNote there are infinite potential variations for this trying to keep this answer short and simple but please do suggest variations in the comments ppIn older version of codepip code you can use this instead ppre codepip freeze local grep cut xargs n1 pip install code prepThe codegrep code is to skip editable package definitions as suggested by Yes you could replace codegrep code codecut code with codesed code or codeawk code or codeperl code or ppThe code n1 code flag for codexargs code prevents stopping everything if updating one package fails thanks href https stackoverflow com users 339505 andsens Perhaps ve never used pip review You ll notice that this answer is way older than pip review,0,NULL,NULL 64027,831018,879661,NULL,NULL,NULL,0,NULL,NULL 64028,171611,385604,NULL,NULL,NULL,0,NULL,NULL 64029,181414,792844,NULL,NULL,NULL,0,NULL,NULL 64030,1149143,153393,Yearling,NULL,NULL,0,NULL,NULL 64031,137021,263335,NULL,NULL,NULL,0,NULL,NULL 64032,40957,140430,Editor Excavator Supporter,NULL,NULL,0,NULL,NULL 64033,34582,793430,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64034,5984,962311,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 64035,4650469,783594,Revival Notable Question Nice Question,NULL,NULL,0,NULL,NULL 64036,65814,606819,NULL,NULL,NULL,0,NULL,NULL 64037,26897,798823,NULL,NULL,NULL,0,NULL,NULL 64038,1169128,1049857,NULL,NULL,NULL,0,NULL,NULL 64039,1348063,674027,Popular Question,NULL,NULL,0,NULL,NULL 64040,2575771,913509,NULL,NULL,NULL,0,NULL,NULL 64041,169328,913509,NULL,NULL,NULL,0,NULL,NULL 64042,130035,424301,Editor,NULL,NULL,0,NULL,NULL 64043,430532,318346,NULL,NULL,NULL,0,NULL,NULL 64044,499640,824881,NULL,NULL,NULL,0,NULL,NULL 64045,535836,631493,Yearling,NULL,NULL,0,NULL,NULL 64046,38854,156148,Nice Answer,NULL,NULL,0,NULL,NULL 64047,23554,1385252,Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Yearling Informed Enthusiast Nice Answer Nice Answer Enlightened Announcer Enlightened Nice Answer Necromancer Great Answer Yearling Necromancer Good Answer Good Question Populist Nice Answer,NULL,NULL,0,NULL,NULL 64048,408227,7530,Yearling,NULL,NULL,0,NULL,NULL 64049,22204,963821,NULL,NULL,NULL,0,NULL,NULL 64050,71429,702383,Citizen Patrol Teacher Caucus Constituent Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 64051,128008,230891,NULL,NULL,NULL,0,NULL,NULL 64052,1285382,726202,Commentator Informed Census Popular Question,NULL,NULL,0,NULL,NULL 64053,384493,945014,Editor Popular Question Necromancer,NULL,NULL,0,NULL,NULL 64054,3057626,848261,NULL,NULL,NULL,0,NULL,NULL 64055,377565,327320,NULL,NULL,NULL,0,NULL,NULL 64056,1733585,793592,NULL,NULL,NULL,0,NULL,NULL 64057,712378,340863,Nice Answer,NULL,NULL,0,NULL,NULL 64058,10916,1270371,Supporter,NULL,NULL,0,NULL,NULL 64059,2310585,1404157,Informed,NULL,NULL,0,NULL,NULL 64060,206875,1404157,Informed,NULL,NULL,0,NULL,NULL 64061,105605,16308,Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Cleanup Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 64062,93378,90642,Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 64063,110645,1009094,NULL,NULL,NULL,0,NULL,NULL 64064,323607,935083,Civic Duty Nice Answer Good Answer Yearling Caucus Nice Answer Enlightened Guru Announcer Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 64065,98957,321354,Good Answer Announcer Necromancer Guru Nice Answer Yearling Nice Answer Guru Documentation Pioneer Nice Answer Enlightened Good Answer Taxonomist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Question Caucus Enlightened Nice Answer Enlightened Nice Answer Enlightened Census Good Answer Nice Answer Good Answer Yearling Good Answer Documentation User Nice Answer Enlightened Famous Question Great Answer Good Answer Yearling Nice Question Great Answer Nice Answer Enlightened Great Answer,NULL,pI share the full implementation based on Beggins and code ppre codepublic abstract class AppBarStateChangeListener implements AppBarLayout OnOffsetChangedListener public enum State EXPANDED COLLAPSED IDLE private State mCurrentState State IDLE public final void onOffsetChanged AppBarLayout appBarLayout int if if mCurrentState State EXPANDED onStateChanged appBarLayout State EXPANDED mCurrentState State EXPANDED else if Math abs gt appBarLayout getTotalScrollRange if mCurrentState State COLLAPSED onStateChanged appBarLayout State COLLAPSED mCurrentState State COLLAPSED else if mCurrentState State IDLE onStateChanged appBarLayout State IDLE mCurrentState State IDLE public abstract void onStateChanged AppBarLayout appBarLayout State state code prepAnd then you can use it ppre codeappBarLayout addOnOffsetChangedListener new AppBarStateChangeListener public void onStateChanged AppBarLayout appBarLayout State state Log STATE state name code pre That correct But please not that using Proguard that enum is going to be translated in an integer value,0,NULL,NULL 64066,197663,154707,NULL,NULL,NULL,0,NULL,NULL 64067,169701,695186,Popular Question Popular Question Caucus Custodian Famous Question Custodian Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 64068,268611,193802,Excavator,NULL,NULL,0,NULL,NULL 64069,13076,607518,NULL,NULL,NULL,0,NULL,NULL 64070,6752251,607518,NULL,NULL,NULL,0,NULL,NULL 64071,99934,1408375,NULL,NULL,NULL,0,NULL,NULL 64072,830144,1255046,NULL,NULL,NULL,0,NULL,NULL 64073,192593,899558,Yearling Good Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 64074,430596,756814,NULL,NULL,NULL,0,NULL,NULL 64075,142055,511207,NULL,NULL,NULL,0,NULL,NULL 64076,899689,761532,Caucus Constituent Tumbleweed Popular Question Yearling Caucus Constituent Documentation User Custodian Custodian,NULL,NULL,0,NULL,NULL 64077,1763815,469454,NULL,NULL,NULL,0,NULL,NULL 64078,40138,18460,NULL,NULL,NULL,0,NULL,NULL 64079,103336,976905,NULL,NULL,NULL,0,NULL,NULL 64080,1125602,931250,NULL,NULL,NULL,0,NULL,NULL 64081,164419,933407,NULL,NULL,NULL,0,NULL,NULL 64082,1048,1428715,NULL,NULL,NULL,0,NULL,NULL 64083,162291,121442,Good Answer Yearling,NULL,NULL,0,NULL,NULL 64084,79453,1116215,Revival,NULL,NULL,0,NULL,NULL 64085,277782,1019798,Informed Editor Excavator Supporter,NULL,NULL,0,NULL,NULL 64086,50903,1125496,Yearling Popular Question Popular Question Notable Question Popular Question Custodian Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Yearling Nice Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64087,1512248,773585,NULL,NULL,NULL,0,NULL,NULL 64088,73482,1315988,NULL,NULL,NULL,0,NULL,NULL 64089,1437837,994570,NULL,NULL,NULL,0,NULL,NULL 64090,61133,883985,Critic,NULL,NULL,0,NULL,NULL 64091,232847,444817,NULL,NULL,NULL,0,NULL,NULL 64092,82159,626988,NULL,NULL,NULL,0,NULL,NULL 64093,417903,1150425,Revival Yearling Caucus Necromancer Good Answer,NULL,NULL,0,NULL,NULL 64094,1882178,1150425,Revival Yearling Caucus Necromancer Good Answer,NULL,NULL,0,NULL,NULL 64095,334950,1250284,Famous Question Popular Question Critic Civic Duty Yearling,NULL,NULL,0,NULL,NULL 64096,712186,961880,NULL,NULL,NULL,0,NULL,NULL 64097,8994345,961880,NULL,NULL,NULL,0,NULL,NULL 64098,1134775,297172,NULL,NULL,NULL,0,NULL,NULL 64099,16183,182848,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64100,67116,204910,NULL,NULL,NULL,0,NULL,NULL 64101,161958,851064,NULL,NULL,NULL,0,NULL,NULL 64102,266346,889928,NULL,NULL,NULL,0,NULL,NULL 64103,228378,1008846,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 64104,494458,1058885,NULL,NULL,NULL,0,NULL,NULL 64105,331806,871160,Yearling Good Question Commentator,NULL,NULL,0,NULL,NULL 64106,240987,990930,NULL,NULL,NULL,0,NULL,NULL 64107,31465,194175,Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Nice Question Nice Question Notable Question Notable Question Revival Nice Question Nice Answer Enlightened Electorate Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Nice Answer Popular Question Nice Answer express Revival Good Answer Good Question Notable Question Enlightened Good Answer authentication Guru Notable Question Notable Question Guru Nice Question Famous Question Nice Question Great Answer Popular Question Popular Question Good Answer Documentation User Yearling Nice Answer Nice Question Good Question Necromancer Enlightened Nice Answer Peer Pressure Famous Question Notable Question Famous Question Popular Question Popular Question Nice Answer Great Answer Famous Question Nice Answer Enlightened Nice Answer Famous Question Good Question Famous Question Yearling Popular Question Good Question Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64108,382132,40866,Famous Question Yearling Good Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 64109,46078,83475,Popular Question Necromancer Nice Question Nice Question Notable Question Popular Question Yearling Famous Question Popular Question Famous Question Famous Question Popular Question Great Question Stellar Question Famous Question Popular Question Nice Question Popular Question Famous Question Great Question Popular Question Popular Question Popular Question Famous Question Notable Question Good Answer Yearling Popular Question Popular Question Notable Question Good Question Nice Answer Yearling Nice Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 64110,31856,810367,NULL,NULL,NULL,0,NULL,NULL 64111,622707,1161124,NULL,NULL,NULL,0,NULL,NULL 64112,107739,463333,NULL,NULL,NULL,0,NULL,NULL 64113,14083,91551,Good Answer Yearling Good Answer Necromancer Popular Question Notable Question Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 64114,1352812,91551,Good Answer Yearling Good Answer Necromancer Popular Question Notable Question Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 64115,179610,647994,Autobiographer,NULL,NULL,0,NULL,NULL 64116,50359,315003,NULL,NULL,NULL,0,NULL,NULL 64117,38342,895378,Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Answer Yearling Popular Question Notable Question Nice Answer Enlightened Guru Good Question Famous Question Good Answer Guru Popular Question Good Answer Popular Question Nice Answer Guru Yearling Nice Answer Great Answer Nice Answer Notable Question Notable Question Good Question Nice Answer Caucus Guru Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 64118,48441,1327820,NULL,NULL,NULL,0,NULL,NULL 64119,69721,895795,Nice Question Notable Question Famous Question Nice Question Favorite Question Popular Question Yearling Pundit Popular Question Notable Question Popular Question Informed Great Answer Notable Question Popular Question Famous Question Famous Question Nice Answer Revival Notable Question Notable Question Yearling Popular Question Great Question Notable Question Famous Question Great Answer Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 64120,477635,618412,Enlightened Revival,NULL,NULL,0,NULL,NULL 64121,61890,264026,Necromancer,NULL,NULL,0,NULL,NULL 64122,222025,1152682,NULL,NULL,NULL,0,NULL,NULL 64123,6241770,753261,NULL,NULL,NULL,0,NULL,NULL 64124,271934,753261,NULL,NULL,NULL,0,NULL,NULL 64125,11634,273985,Yearling Popular Question Revival Nice Answer Popular Question Notable Question Necromancer Good Answer Yearling Necromancer javascript Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 64126,3407038,1398798,NULL,NULL,NULL,0,NULL,NULL 64127,60854,1398798,NULL,NULL,NULL,0,NULL,NULL 64128,186938,487867,NULL,NULL,NULL,0,NULL,NULL 64129,254020,646409,Critic Yearling,NULL,NULL,0,NULL,NULL 64130,130672,558639,Nice Question Popular Question Nice Answer Notable Question Good Answer Nice Question Nice Question Nice Answer Yearling Socratic Good Question Notable Question Famous Question Necromancer Revival Popular Question Popular Question Good Answer Popular Question Revival Announcer Good Question Quorum Nice Question Benefactor Nice Question Nice Answer Good Answer Popular Question Notable Question Revival Nice Question Caucus Guru Nice Question Necromancer Necromancer Popular Question Famous Question Nice Answer Popular Question Popular Question Nice Question Good Answer Nice Answer Popular Question Necromancer Good Answer Yearling Nice Answer Civic Duty Good Answer Popular Question Announcer Popular Question Nice Answer Revival Caucus Popular Question Popular Question Popular Question Revival Necromancer Popular Question Popular Question Nice Answer Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Good Answer Famous Question Popular Question Necromancer Notable Question Pundit Nice Answer Notable Question Notable Question Popular Question Cleanup Notable Question,NULL,h2update h2pAs href https stackoverflow com 1609688 558639 BrianCampbell points out here strongSQLite 11 and above now supports the simpler syntax of the original post strong However the approach shown is still appropriate if you want maximum compatibility across legacy databases ph2original answer h2pIf had privileges would bump href https stackoverflow com 1734067 356895 andy reply You strongcan strong insert multiple rows in SQLite you just need strongdifferent syntax strong To make it perfectly clear the OPs MySQL example ppre codeINSERT INTO tablename column1 column2 VALUES data1 data2 data1 data2 data1 data2 data1 data2 code prepThis can be recast into SQLite as ppre code INSERT INTO tablename SELECT data1 AS column1 data2 AS column2 UNION ALL SELECT data1 data2 UNION ALL SELECT data1 data2 UNION ALL SELECT data1 data2 code preh2a note on performance h2pI originally used this technique to efficiently load large datasets from Ruby on Rails strongHowever strong href https stackoverflow com 5209093 558639 as Jaime Cook points out it not clear this is any faster wrapping individual codeINSERTs code within single transaction ppre codeBEGIN TRANSACTION INSERT INTO tablename table VALUES data1 data2 INSERT INTO tablename table VALUES data3 data4 COMMIT code prepIf efficiency is your goal you should try this first ph2a note on UNION vs UNION ALL h2pAs several people commented if you use codeUNION ALL code as shown above all rows will be inserted so in this case you get four rows of codedata1 data2 code If you omit the codeALL code then duplicate rows will be eliminated and the operation will presumably be bit slower We re using UNION ALL since it more closely matches the semantics of the original post ph2in closing h2pP Please href https stackoverflow com 1734067 356895 andy reply not mine He presented the solution first if you want INSERT OR REPLACE and you re using SQLite 11 or later you might as well use the short format See http stackoverflow com 1609688 558639 and or the SQLite docs,0,NULL,NULL 64131,97079,1210523,NULL,NULL,NULL,0,NULL,NULL 64132,199158,12604,Good Answer Guru Necromancer Yearling Caucus Guru Explainer Good Answer Announcer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 64133,39312,357578,Nice Answer Popular Question Popular Question Guru Yearling Cleanup Revival Proofreader Popular Question Notable Question Nice Answer Yearling Great Answer Necromancer Popular Question Documentation User Census Yearling Necromancer Nice Question,NULL,NULL,0,NULL,NULL 64134,102217,839646,Nice Answer Populist Guru Nice Answer Enlightened Nice Answer rest Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling junit Guru Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer multithreading Nice Answer Guru Guru Nice Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Notable Question Revival Good Answer Guru Announcer Good Answer tomcat Guru Guru Announcer Good Answer Yearling Announcer Nice Answer Announcer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Necromancer Nice Answer Guru Guru Announcer spring Great Answer Nice Answer Enlightened eclipse Nice Answer Good Answer Enlightened Good Answer Nice Answer java-ee Good Answer Nice Answer Good Answer Good Question Yearling Nice Answer Enlightened Guru Guru,NULL,NULL,0,NULL,NULL 64135,117474,125241,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 64136,470549,279614,Yearling Good Answer Nice Answer Necromancer Guru Necromancer Yearling Good Answer Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 64137,113664,667008,NULL,NULL,NULL,0,NULL,NULL 64138,1157450,758110,NULL,NULL,NULL,0,NULL,NULL 64139,55483,728292,NULL,NULL,NULL,0,NULL,NULL 64140,6297540,105546,NULL,NULL,NULL,0,NULL,NULL 64141,232103,275023,NULL,NULL,NULL,0,NULL,NULL 64142,1245219,379517,Notable Question,NULL,NULL,0,NULL,NULL 64143,26108,5643,NULL,NULL,NULL,0,NULL,NULL 64144,244283,820113,Caucus Announcer Civic Duty Caucus Documentation User,NULL,NULL,0,NULL,NULL 64145,181922,1239901,NULL,NULL,NULL,0,NULL,NULL 64146,189114,1360105,NULL,NULL,NULL,0,NULL,NULL 64147,595339,301960,Notable Question Yearling Notable Question Popular Question Popular Question Good Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64148,7539729,1108030,Curious,NULL,NULL,0,NULL,NULL 64149,1081152,1108030,Curious,NULL,NULL,0,NULL,NULL 64150,185090,239790,Nice Answer Yearling Caucus Constituent Caucus Constituent Caucus Constituent Revival,NULL,NULL,0,NULL,NULL 64151,73498,627825,NULL,NULL,NULL,0,NULL,NULL 64152,312873,722758,Civic Duty Yearling Revival Notable Question Revival Autobiographer Great Answer Yearling Popular Question Taxonomist Yearling Necromancer,NULL,NULL,0,NULL,NULL 64153,641746,722758,Civic Duty Yearling Revival Notable Question Revival Autobiographer Great Answer Yearling Popular Question Taxonomist Yearling Necromancer,NULL,NULL,0,NULL,NULL 64154,1506086,462743,Teacher Commentator Revival,NULL,NULL,0,NULL,NULL 64155,890012,932278,Good Answer Yearling Yearling Guru Nice Answer Enlightened Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 64156,152766,23303,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64157,543001,977401,NULL,NULL,NULL,0,NULL,NULL 64158,70252,206390,NULL,NULL,NULL,0,NULL,NULL 64159,177829,506584,Popular Question Good Question Popular Question Inquisitive Yearling Popular Question Nice Question Popular Question Nice Answer Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 64160,394299,268448,Supporter,NULL,NULL,0,NULL,NULL 64161,89343,746403,Scholar Necromancer,NULL,NULL,0,NULL,NULL 64162,243379,585952,NULL,NULL,NULL,0,NULL,NULL 64163,2521837,493468,NULL,NULL,NULL,0,NULL,NULL 64164,167759,46459,Yearling Guru Necromancer,NULL,NULL,0,NULL,NULL 64165,534115,567163,NULL,NULL,NULL,0,NULL,NULL 64166,183569,525595,Nice Question Teacher Famous Question,NULL,NULL,0,NULL,NULL 64167,830137,785605,Nice Question,NULL,NULL,0,NULL,NULL 64168,425871,791143,NULL,NULL,NULL,0,NULL,NULL 64169,18420,683208,NULL,NULL,NULL,0,NULL,NULL 64170,832924,791311,Notable Question Self-Learner Commentator Curious Caucus,NULL,NULL,0,NULL,NULL 64171,700895,1033544,Popular Question,NULL,NULL,0,NULL,NULL 64172,913042,982400,NULL,NULL,NULL,0,NULL,NULL 64173,81243,1377229,NULL,NULL,NULL,0,NULL,NULL 64174,32312,782470,Yearling Nice Question Notable Question Popular Question Commentator Yearling,NULL,NULL,0,NULL,NULL 64175,223374,519545,NULL,NULL,NULL,0,NULL,NULL 64176,89155,577059,NULL,NULL,NULL,0,NULL,NULL 64177,106096,1511010,NULL,NULL,NULL,0,NULL,NULL 64178,98836,727666,NULL,NULL,NULL,0,NULL,NULL 64179,961994,1212048,NULL,NULL,NULL,0,NULL,NULL 64180,412970,913950,Enthusiast Yearling Revival Editor Revival Revival Necromancer Yearling Nice Answer Enlightened Excavator,NULL,NULL,0,NULL,NULL 64181,682556,1279592,NULL,NULL,NULL,0,NULL,NULL 64182,18685,489582,Popular Question,NULL,NULL,0,NULL,NULL 64183,234418,1228032,NULL,NULL,NULL,0,NULL,NULL 64184,270360,1232655,Enthusiast Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64185,3328279,1232655,Enthusiast Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64186,7221,1052325,python Announcer Nice Answer Enlightened Good Answer scrapy Yearling Good Answer Good Answer Announcer Nice Answer Announcer Yearling Announcer Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 64187,472602,687686,Notable Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64188,146271,555785,Popular Question Yearling Self-Learner Popular Question Notable Question Famous Question Famous Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64189,185579,272127,Notable Question Famous Question Critic Yearling,NULL,NULL,0,NULL,NULL 64190,144625,1235417,NULL,NULL,NULL,0,NULL,NULL 64191,180161,1480205,Announcer Necromancer Critic Yearling Supporter Scholar Necromancer,NULL,NULL,0,NULL,NULL 64192,137971,480761,NULL,NULL,NULL,0,NULL,NULL 64193,961397,519542,NULL,NULL,NULL,0,NULL,NULL 64194,1077629,702201,Yearling Custodian Popular Question Popular Question Good Answer Yearling Popular Question Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 64195,1585203,1014678,NULL,NULL,NULL,0,NULL,NULL 64196,10965,1197400,NULL,NULL,NULL,0,NULL,NULL 64197,83005,353985,Nice Answer Good Answer Famous Question Popular Question Famous Question Nice Question Famous Question Good Answer Popular Question Nice Answer Great Answer Notable Question Necromancer Yearling Necromancer Notable Question Popular Question Notable Question Popular Question Good Question Good Answer Custodian Notable Question Notable Question Yearling Good Answer Civic Duty Popular Question Notable Question Great Answer Announcer Good Question Popular Question Necromancer Notable Question Necromancer Yearling Nice Answer Nice Answer Famous Question Nice Question Benefactor Nice Question Famous Question Nice Answer Good Answer,NULL,pThe correct answer is that you are missing the static keyword on the inner class ppJust make sure that the static keyword is there ppRead href http www cowtowncoder com blog archives 2010 08 entry 411 html http www cowtowncoder com blog archives 2010 08 entry 411 html ppit takes you minutes but make you happy for the rest of the day it is matter of personal choice use nested static class when know it won be used elsewhere because it is tightly related to the hosting class If am going to use this class elsewhere put it in separate class for sure,0,NULL,NULL 64198,6220253,353985,Nice Answer Good Answer Famous Question Popular Question Famous Question Nice Question Famous Question Good Answer Popular Question Nice Answer Great Answer Notable Question Necromancer Yearling Necromancer Notable Question Popular Question Notable Question Popular Question Good Question Good Answer Custodian Notable Question Notable Question Yearling Good Answer Civic Duty Popular Question Notable Question Great Answer Announcer Good Question Popular Question Necromancer Notable Question Necromancer Yearling Nice Answer Nice Answer Famous Question Nice Question Benefactor Nice Question Famous Question Nice Answer Good Answer,NULL,pThe correct answer is that you are missing the static keyword on the inner class ppJust make sure that the static keyword is there ppRead href http www cowtowncoder com blog archives 2010 08 entry 411 html http www cowtowncoder com blog archives 2010 08 entry 411 html ppit takes you minutes but make you happy for the rest of the day it is matter of personal choice use nested static class when know it won be used elsewhere because it is tightly related to the hosting class If am going to use this class elsewhere put it in separate class for sure,0,NULL,NULL 64199,1105478,998384,NULL,NULL,NULL,0,NULL,NULL 64200,468902,864145,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 64201,83721,1354737,NULL,NULL,NULL,0,NULL,NULL 64202,719370,658488,NULL,NULL,NULL,0,NULL,NULL 64203,251657,202102,NULL,NULL,NULL,0,NULL,NULL 64204,303465,406470,Popular Question Popular Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 64205,7865817,607473,Supporter Famous Question,NULL,NULL,0,NULL,NULL 64206,356219,10115,Yearling Civic Duty Nice Answer Great Answer Yearling Benefactor Yearling,NULL,NULL,0,NULL,NULL 64207,207211,229606,NULL,NULL,NULL,0,NULL,NULL 64208,13712,775512,Notable Question,NULL,NULL,0,NULL,NULL 64209,156034,1364840,NULL,NULL,NULL,0,NULL,NULL 64210,1520478,437734,NULL,NULL,NULL,0,NULL,NULL 64211,119524,1470055,Informed,NULL,NULL,0,NULL,NULL 64212,231344,711386,Necromancer Caucus Constituent Popular Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 64213,75939,421273,NULL,NULL,NULL,0,NULL,NULL 64214,25718,1200827,Popular Question Popular Question Popular Question Teacher Yearling Notable Question Notable Question Popular Question Critic Yearling Notable Question Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64215,537709,331000,Famous Question Popular Question Yearling Famous Question Good Question Popular Question Notable Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 64216,1521579,1098823,NULL,NULL,NULL,0,NULL,NULL 64217,21890,735776,Notable Question Popular Question Scholar Curious,NULL,NULL,0,NULL,NULL 64218,176102,1019947,Notable Question Editor Scholar Census Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64219,915449,1090673,NULL,NULL,NULL,0,NULL,NULL 64220,3660202,1015722,Nice Question Notable Question Yearling Caucus Constituent Famous Question Good Question Caucus Nice Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64221,272868,1015722,Nice Question Notable Question Yearling Caucus Constituent Famous Question Good Question Caucus Nice Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64222,393203,461317,NULL,NULL,NULL,0,NULL,NULL 64223,314422,1462149,NULL,NULL,NULL,0,NULL,NULL 64224,677687,1084771,NULL,NULL,NULL,0,NULL,NULL 64225,80468,1247513,NULL,NULL,NULL,0,NULL,NULL 64226,254625,434352,NULL,NULL,NULL,0,NULL,NULL 64227,20686,713825,NULL,NULL,NULL,0,NULL,NULL 64228,224686,1298550,NULL,NULL,NULL,0,NULL,NULL 64229,307537,1378460,NULL,NULL,NULL,0,NULL,NULL 64230,160223,452965,Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 64231,413635,1469057,Notable Question,NULL,NULL,0,NULL,NULL 64232,103116,1091940,NULL,NULL,NULL,0,NULL,NULL 64233,257322,1708,Good Answer Yearling Commentator Popular Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 64234,1554679,594319,Yearling Yearling Popular Question Autobiographer Custodian Yearling,NULL,NULL,0,NULL,NULL 64235,1327509,1255857,NULL,NULL,NULL,0,NULL,NULL 64236,652149,342839,Popular Question Nice Answer Custodian Nice Answer Yearling Notable Question Notable Question Self-Learner Popular Question Popular Question Yearling Announcer Notable Question Announcer Popular Question Nice Question Yearling Notable Question,NULL,pRun the following command to retrieve your SSH key fingerprint code code means list instead of create new key code code means filename ppre code ssh keygen lf path to ssh key code prepSo for example on my machine the command ran was using RSA public key ppre code ssh keygen lf ssh id rsa pub2048 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff Users username ssh id rsa pub RSA code prepWith newer versions of ssh keygen run codessh keygen md5 lf lt fileName gt code if you want the same format as the old thanks Lloyd Dewolf ppBonus information pp codessh keygen lf code also works on codeknown hosts code and codeauthorized keys code files ppFind most public on Linux Unix OS nbsp system with codefind etc ssh home ssh Users ssh name pub name authorized keys name known hosts code If you want to see inside other users homedirs you ll have to be root or sudo ppThe codessh add code is very similar but lists the fingerprints of keys added to your agent OS nbsp users take note that magic passwordless SSH via Keychain is not the same as using ssh agent If you re comparing against fingerprints listed in the AWS console this will save you time https serverfault com questions 603982 why does my openssh key fingerprint not match the aws ec2 console keypair finger,0,NULL,NULL 64237,430371,342839,Popular Question Nice Answer Custodian Nice Answer Yearling Notable Question Notable Question Self-Learner Popular Question Popular Question Yearling Announcer Notable Question Announcer Popular Question Nice Question Yearling Notable Question,NULL,pRun the following command to retrieve your SSH key fingerprint code code means list instead of create new key code code means filename ppre code ssh keygen lf path to ssh key code prepSo for example on my machine the command ran was using RSA public key ppre code ssh keygen lf ssh id rsa pub2048 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff Users username ssh id rsa pub RSA code prepWith newer versions of ssh keygen run codessh keygen md5 lf lt fileName gt code if you want the same format as the old thanks Lloyd Dewolf ppBonus information pp codessh keygen lf code also works on codeknown hosts code and codeauthorized keys code files ppFind most public on Linux Unix OS nbsp system with codefind etc ssh home ssh Users ssh name pub name authorized keys name known hosts code If you want to see inside other users homedirs you ll have to be root or sudo ppThe codessh add code is very similar but lists the fingerprints of keys added to your agent OS nbsp users take note that magic passwordless SSH via Keychain is not the same as using ssh agent If you re comparing against fingerprints listed in the AWS console this will save you time https serverfault com questions 603982 why does my openssh key fingerprint not match the aws ec2 console keypair finger,0,NULL,NULL 64238,301711,291112,Revival Favorite Question Yearling,NULL,NULL,0,NULL,NULL 64239,3571,567512,Commentator,NULL,NULL,0,NULL,NULL 64240,638234,1373890,NULL,NULL,NULL,0,NULL,NULL 64241,187275,1307792,Student Scholar Supporter Informed Autobiographer Teacher Editor Necromancer Nice Answer Caucus Yearling Caucus Revival Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 64242,423355,818172,Good Answer Critic Supporter Commentator Scholar Editor Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 64243,251016,1457563,NULL,NULL,NULL,0,NULL,NULL 64244,9787,594232,Nice Answer,NULL,NULL,0,NULL,NULL 64245,227276,439332,Popular Question Revival Notable Question Notable Question Yearling Popular Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Caucus Notable Question Yearling Custodian Popular Question Nice Question Nice Question Census Excavator Popular Question Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 64246,53931,6062,Popular Question Nice Question Notable Question Nice Question Nice Answer Notable Question Yearling Custodian Necromancer Necromancer Favorite Question Famous Question Nice Answer Electorate Famous Question Yearling Documentation User Guru Great Answer Necromancer Great Question Yearling,NULL,NULL,0,NULL,NULL 64247,93398,1401336,Caucus Constituent Notable Question Famous Question Necromancer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64248,155576,5430,Informed,NULL,NULL,0,NULL,NULL 64249,64392,1553801,NULL,NULL,NULL,0,NULL,NULL 64250,146297,690938,NULL,NULL,NULL,0,NULL,NULL 64251,380771,239341,NULL,NULL,NULL,0,NULL,NULL 64252,1474445,1351826,NULL,NULL,NULL,0,NULL,NULL 64253,1045259,478415,NULL,NULL,NULL,0,NULL,NULL 64254,487569,1036513,Popular Question,NULL,NULL,0,NULL,NULL 64255,702279,525460,NULL,NULL,NULL,0,NULL,NULL 64256,1228661,1373578,Teacher Supporter,NULL,NULL,0,NULL,NULL 64257,260240,459261,NULL,NULL,NULL,0,NULL,NULL 64258,2284,319672,NULL,NULL,NULL,0,NULL,NULL 64259,144309,27955,Popular Question Census Caucus,NULL,NULL,0,NULL,NULL 64260,283207,492141,Guru Nice Answer Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 64261,342174,426444,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64262,694414,897292,Scholar,NULL,NULL,0,NULL,NULL 64263,235894,27479,NULL,NULL,NULL,0,NULL,NULL 64264,635853,420146,Popular Question,NULL,NULL,0,NULL,NULL 64265,27385,998003,NULL,NULL,NULL,0,NULL,NULL 64266,425678,103777,NULL,NULL,NULL,0,NULL,NULL 64267,1601138,631702,NULL,NULL,NULL,0,NULL,NULL 64268,43012,298231,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 64269,67338,1513205,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 64270,890840,1117872,NULL,NULL,NULL,0,NULL,NULL 64271,115924,1514119,NULL,NULL,NULL,0,NULL,NULL 64272,160844,577042,Yearling mysql Nice Answer Enlightened Good Answer Famous Question Popular Question Necromancer Yearling Notable Question Yearling Famous Question Nice Question Great Answer,NULL,NULL,0,NULL,NULL 64273,7923048,428867,NULL,NULL,NULL,0,NULL,NULL 64274,101610,428867,NULL,NULL,NULL,0,NULL,NULL 64275,463254,1221118,Yearling Popular Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64276,471524,914143,NULL,NULL,NULL,0,NULL,NULL 64277,80995,126214,Good Answer Nice Answer Good Answer Necromancer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Great Answer Nice Answer Guru Favorite Question Nice Answer Nice Answer Enlightened Guru Good Answer linux Nice Answer Good Answer Great Answer Yearling Good Answer Nice Answer Great Question Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Good Answer Guru Good Answer Caucus Good Answer Nice Answer Enlightened Great Answer Good Answer Guru Great Answer Good Answer Nice Answer Revival Guru Nice Answer Guru Popular Question Good Answer Good Answer Good Answer Guru Good Answer python-2.7 Nice Answer Enlightened Good Answer Populist Good Answer Good Answer Great Answer Great Answer Good Answer Nice Answer Guru Great Answer Good Answer Yearling Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Good Answer Great Answer Announcer Guru Great Answer Notable Question Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Great Answer Good Answer Notable Question Populist Guru Nice Answer oop Nice Answer Yearling Nice Answer Guru python-2.x Good Answer Nice Answer Great Answer Nice Answer Guru Great Answer Nice Answer Good Answer Good Answer Good Answer Guru,NULL,strongEdit Since Python the codeu code literal works again so the codeu code function isn needed strong ppThe best option is to make method that creates unicode objects from string objects in Python but leaves the string objects alone in Python as they are already unicode ppre codeimport sysif sys version lt import codecs def return codecs unicode escape decode else def return code prepYou would then use it like so ppre code gt gt gt print u00dcnic u00f6de Ünicöde gt gt gt print xdcnic Latin Small Letter with diaeresis de Ünicöde code pre In Python they are the same thing in Python they are not,0,NULL,NULL 64278,427195,532892,NULL,NULL,NULL,0,NULL,NULL 64279,189089,1256694,Yearling Caucus Constituent Census,NULL,NULL,0,NULL,NULL 64280,582678,895089,Teacher Editor Necromancer Nice Answer Caucus,NULL,NULL,0,NULL,NULL 64281,1123147,223032,NULL,NULL,NULL,0,NULL,NULL 64282,194208,112922,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64283,527270,357487,Yearling Critic Popular Question,NULL,NULL,0,NULL,NULL 64284,3742542,357487,Yearling Critic Popular Question,NULL,NULL,0,NULL,NULL 64285,55138,581908,Student Popular Question,NULL,NULL,0,NULL,NULL 64286,360743,180100,NULL,NULL,NULL,0,NULL,NULL 64287,173833,796686,NULL,NULL,NULL,0,NULL,NULL 64288,707926,124307,Yearling Census Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64289,167786,11983,Self-Learner Commentator Caucus Constituent Census Caucus Constituent,NULL,NULL,0,NULL,NULL 64290,1834042,1384804,NULL,NULL,NULL,0,NULL,NULL 64291,313666,1384804,NULL,NULL,NULL,0,NULL,NULL 64292,982138,434919,Popular Question Disciplined Revival Nice Answer Populist Good Answer Good Answer Popular Question Yearling Custodian Popular Question Notable Question Notable Question Notable Question Yearling Necromancer Necromancer Guru Nice Answer Nice Answer Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 64293,7054,1214628,NULL,NULL,NULL,0,NULL,NULL 64294,1162227,94990,Good Question Yearling Nice Answer Good Question Great Question Nice Question Necromancer Great Answer Necromancer Nice Answer Yearling Popular Question Nice Question Necromancer Necromancer Nice Answer Notable Question Famous Question Popular Question Notable Question Good Question Yearling Famous Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 64295,7030270,1298777,NULL,NULL,NULL,0,NULL,NULL 64296,482423,1298777,NULL,NULL,NULL,0,NULL,NULL 64297,89998,931775,Popular Question Yearling Caucus Good Answer Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 64298,131569,95636,Good Question Yearling Nice Question Yearling Famous Question Guru Yearling Good Question Benefactor,NULL,NULL,0,NULL,NULL 64299,211135,472852,Popular Question Curious,NULL,NULL,0,NULL,NULL 64300,427526,772437,Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Revival Self-Learner,NULL,NULL,0,NULL,NULL 64301,4668080,890096,NULL,NULL,NULL,0,NULL,NULL 64302,490957,1047852,Informed,NULL,NULL,0,NULL,NULL 64303,296453,445138,NULL,NULL,NULL,0,NULL,NULL 64304,167480,1186898,Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64305,216620,189929,Citizen Patrol Tumbleweed Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64306,283178,263029,Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64307,1792152,1117853,NULL,NULL,NULL,0,NULL,NULL 64308,147961,151678,NULL,NULL,NULL,0,NULL,NULL 64309,6099,147582,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64310,438969,3573,Necromancer Yearling Editor Necromancer Custodian Necromancer Civic Duty,NULL,Using DPAPI with Python python windows security encryption dpapi pIs there way to use the DPAPI Data Protection Application Programming Interface on Windows XP with Python ppI would prefer to use an existing module if there is one that can do it Unfortunately haven been able to find way with Google or Stack Overflow pp strongEDIT strong ve taken the example code pointed to by dF and tweaked it into standalone library which can be simply used at high level to crypt and decrypt using DPAPI in user mode Simply call dpapi cryptData text to encrypt which returns an encrypted string or the reverse decryptData encrypted data string which returns the plain text Here the library ppre code DPAPI access library This file uses code originally created by Crusher Joe http article gmane org gmane comp python ctypes 420 from ctypes import from ctypes wintypes import DWORDLocalFree windll kernel32 LocalFreememcpy cdll msvcrt memcpyCryptProtectData windll crypt32 CryptProtectDataCryptUnprotectData windll crypt32 CryptUnprotectDataCRYPTPROTECT UI FORBIDDEN 0x01extraEntropy cl ad13 0al 323kjd adl ajsd class DATA BLOB Structure fields cbData DWORD pbData POINTER char def getData blobOut cbData int blobOut cbData pbData blobOut pbData buffer buffer cbData memcpy buffer pbData cbData LocalFree pbData return buffer rawdef Win32CryptProtectData plainText entropy bufferIn buffer plainText len plainText blobIn DATA BLOB len plainText bufferIn bufferEntropy buffer entropy len entropy blobEntropy DATA BLOB len entropy bufferEntropy blobOut DATA BLOB if CryptProtectData byref blobIn python data byref blobEntropy None None CRYPTPROTECT UI FORBIDDEN byref blobOut return getData blobOut else return def Win32CryptUnprotectData cipherText entropy bufferIn buffer cipherText len cipherText blobIn DATA BLOB len cipherText bufferIn bufferEntropy buffer entropy len entropy blobEntropy DATA BLOB len entropy bufferEntropy blobOut DATA BLOB if CryptUnprotectData byref blobIn None byref blobEntropy None None CRYPTPROTECT UI FORBIDDEN byref blobOut return getData blobOut else return def cryptData text return Win32CryptProtectData text extraEntropy def decryptData cipher text return Win32CryptUnprotectData cipher text extraEntropy code pre This doesn work on Win7 64 bit python It returns an empty binary string,0,NULL,NULL 64311,12107,1429103,NULL,NULL,NULL,0,NULL,NULL 64312,79206,494150,Popular Question Famous Question Yearling Notable Question Good Question Notable Question Popular Question Nice Question Notable Question Popular Question Good Question Notable Question Notable Question Popular Question Yearling Famous Question Good Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Favorite Question Popular Question Popular Question Popular Question Great Question Notable Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64313,387247,1396857,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64314,528589,1098633,NULL,NULL,NULL,0,NULL,NULL 64315,2538849,1098633,NULL,NULL,NULL,0,NULL,NULL 64316,30050,1190049,Yearling Census,NULL,NULL,0,NULL,NULL 64317,161556,268763,NULL,NULL,NULL,0,NULL,NULL 64318,19504,244223,NULL,NULL,NULL,0,NULL,NULL 64319,7814,1159767,NULL,NULL,NULL,0,NULL,NULL 64320,94620,1429647,Nice Answer Announcer Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 64321,1330049,519296,NULL,NULL,NULL,0,NULL,NULL 64322,903561,234896,NULL,NULL,NULL,0,NULL,NULL 64323,449568,477657,NULL,NULL,NULL,0,NULL,NULL 64324,78290,204979,Nice Question,NULL,NULL,0,NULL,NULL 64325,308864,1390339,Revival Announcer Revival Yearling Revival,NULL,NULL,0,NULL,NULL 64326,200179,1040212,NULL,NULL,NULL,0,NULL,NULL 64327,275451,1218176,Popular Question,NULL,NULL,0,NULL,NULL 64328,548236,563647,Popular Question,NULL,NULL,0,NULL,NULL 64329,885815,991361,Yearling Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 64330,105644,87748,NULL,NULL,NULL,0,NULL,NULL 64331,390063,1460316,NULL,NULL,NULL,0,NULL,NULL 64332,95899,1056652,Citizen Patrol Revival Necromancer,NULL,NULL,0,NULL,NULL 64333,652660,800681,NULL,NULL,NULL,0,NULL,NULL 64334,367812,861306,Yearling Nice Answer Yearling Nice Answer Nice Question Disciplined Yearling,NULL,NULL,0,NULL,NULL 64335,1934442,537879,NULL,NULL,NULL,0,NULL,NULL 64336,529890,413581,Revival Necromancer,NULL,NULL,0,NULL,NULL 64337,50968,71435,NULL,NULL,NULL,0,NULL,NULL 64338,513507,1085580,NULL,NULL,NULL,0,NULL,NULL 64339,139206,216685,Nice Answer Yearling Popular Question Census Caucus Documentation User Yearling Custodian Enthusiast Necromancer Yearling,NULL,NULL,0,NULL,NULL 64340,1133333,920231,Critic Informed Tumbleweed Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 64341,95747,157043,NULL,NULL,NULL,0,NULL,NULL 64342,344707,216447,Good Answer Popular Question Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 64343,51083,27401,buildout Popular Question Yearling Custodian Informed Yearling Revival Nice Question Necromancer Nice Answer Yearling Booster,NULL,pThe main problem is that on your system matplotlib chooses an using backend by default just had the same problem on one of my servers The solution for me was to add the following code in place that gets read embefore em any other pylab matplotlib strongpyplot strong import ppre codeimport matplotlib Force matplotlib to not use any Xwindows backend matplotlib use Agg code prepThe alternative is to set it in your matplotlibrc it does work Like mentioned in my answer and in other comments you noeed to call matplotlib use before doing any other matplotlib import just like the error message says pThe main problem is that on your system matplotlib chooses an using backend by default just had the same problem on one of my servers The solution for me was to add the following code in place that gets read embefore em any other pylab matplotlib strongpyplot strong import ppre codeimport matplotlib Force matplotlib to not use any Xwindows backend matplotlib use Agg code prepThe alternative is to set it in your matplotlibrc For almost everybody it works So it is definitively possible Make sure you double check that you or some library isn import pyplot too early Perhaps the matplotlibrc config file helps in your case pThe main problem is that on your system matplotlib chooses an using backend by default just had the same problem on one of my servers The solution for me was to add the following code in place that gets read embefore em any other pylab matplotlib strongpyplot strong import ppre codeimport matplotlib Force matplotlib to not use any Xwindows backend matplotlib use Agg code prepThe alternative is to set it in your matplotlibrc In the end something somewhere you wrote has to get called first django settings file main py script etc If necessary write tiny wrapper script that runs whatever you normally run after the use call,0,NULL,NULL 64344,550615,611067,NULL,NULL,NULL,0,NULL,NULL 64345,429150,249462,NULL,NULL,NULL,0,NULL,NULL 64346,25476,1321695,Notable Question,NULL,NULL,0,NULL,NULL 64347,167484,945410,NULL,NULL,NULL,0,NULL,NULL 64348,1433523,842271,Census Documentation User Census Caucus,NULL,NULL,0,NULL,NULL 64349,1300947,764214,Custodian Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 64350,287788,841967,Popular Question,NULL,NULL,0,NULL,NULL 64351,88339,759523,NULL,NULL,NULL,0,NULL,NULL 64352,26922,653488,NULL,NULL,NULL,0,NULL,NULL 64353,1173756,819813,NULL,NULL,NULL,0,NULL,NULL 64354,815127,816132,NULL,NULL,NULL,0,NULL,NULL 64355,154865,296197,NULL,NULL,NULL,0,NULL,NULL 64356,33729,967549,NULL,NULL,NULL,0,NULL,NULL 64357,556236,1104982,NULL,NULL,NULL,0,NULL,NULL 64358,390776,1520544,NULL,NULL,NULL,0,NULL,NULL 64359,1256691,873533,NULL,NULL,NULL,0,NULL,NULL 64360,339795,197368,Great Answer Good Answer Great Answer Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Good Answer Guru Guru Enlightened Nice Answer Good Answer Generalist Great Answer Guru Nice Answer Yearling Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 64361,157682,72070,Scholar Nice Answer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 64362,438184,882828,NULL,NULL,NULL,0,NULL,NULL 64363,436623,342114,Famous Question Caucus,NULL,NULL,0,NULL,NULL 64364,139284,89211,Popular Question Good Answer Yearling Favorite Question Notable Question Inquisitive Necromancer Nice Question Famous Question Tag Editor Announcer Revival Yearling Announcer Announcer Famous Question Popular Question Custodian Custodian Caucus Yearling Nice Answer Tenacious,NULL,NULL,0,NULL,NULL 64365,19490,1052091,NULL,NULL,NULL,0,NULL,NULL 64366,639544,1300246,Revival Yearling Notable Question Promoter Benefactor Popular Question Revival Popular Question Popular Question Popular Question Popular Question Revival Notable Question Necromancer Nice Question Yearling Popular Question Nice Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 64367,106492,372058,NULL,NULL,NULL,0,NULL,NULL 64368,330525,1105842,NULL,NULL,NULL,0,NULL,NULL 64369,70773,639675,NULL,NULL,NULL,0,NULL,NULL 64370,619634,782080,Famous Question,NULL,NULL,0,NULL,NULL 64371,522358,142676,Popular Question,NULL,NULL,0,NULL,NULL 64372,133125,216255,Commentator Yearling Editor Caucus Good Answer Necromancer,NULL,NULL,0,NULL,NULL 64373,134306,1144194,Commentator Autobiographer,NULL,NULL,0,NULL,NULL 64374,376786,832536,NULL,NULL,NULL,0,NULL,NULL 64375,188553,1349639,NULL,NULL,NULL,0,NULL,NULL 64376,141260,1163804,Yearling Necromancer Necromancer Necromancer Nice Question Nice Answer Necromancer Necromancer Yearling Census Revival Self-Learner Yearling Good Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 64377,253539,856013,Supporter Famous Question,NULL,NULL,0,NULL,NULL 64378,1539462,915361,NULL,NULL,NULL,0,NULL,NULL 64379,1518532,1423486,NULL,NULL,NULL,0,NULL,NULL 64380,1204357,8169,Yearling Notable Question Custodian Necromancer Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Notable Question Civic Duty Revival Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64381,55321,114253,Popular Question Yearling,NULL,NULL,0,NULL,NULL 64382,47751,1186789,Popular Question Announcer,NULL,NULL,0,NULL,NULL 64383,52077,544304,Necromancer,NULL,NULL,0,NULL,NULL 64384,543584,1144833,NULL,NULL,NULL,0,NULL,NULL 64385,52054,142965,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64386,328372,1001992,Tumbleweed,NULL,NULL,0,NULL,NULL 64387,10864320,1001992,Tumbleweed,NULL,NULL,0,NULL,NULL 64388,527,711380,Announcer Nice Answer Revival Yearling Revival Announcer Yearling Promoter Caucus Constituent Announcer Custodian Custodian Custodian Good Answer Census Good Answer Caucus Nice Question Yearling Revival,NULL,pYou can just run codegit cat file sha code and check it returns commit You are right you don need to actually print the actual object for that ppI not 100 sure that what goes on behind the scene is more efficient though pp codetest git cat file sha commit code Branches are not objects Checking whether you entered ref or SHA can be done with rev parse git rev parse symbolic full name sha refs,0,NULL,NULL 64389,96725,729900,Custodian Yearling,NULL,NULL,0,NULL,NULL 64390,41655,1126353,NULL,NULL,NULL,0,NULL,NULL 64391,74833,448580,Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Nice Answer Good Answer Yearling Good Answer Good Answer Nice Answer asp.net-mvc-3 Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64392,240746,1066709,Revival,NULL,NULL,0,NULL,NULL 64393,587661,861206,Excavator Good Answer Yearling Caucus Constituent Revival Good Answer Caucus Yearling Announcer Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 64394,36982,205263,Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64395,232901,537994,Yearling Informed Autobiographer Editor Caucus Census Yearling,NULL,NULL,0,NULL,NULL 64396,168877,1295204,NULL,NULL,NULL,0,NULL,NULL 64397,1748661,1295204,NULL,NULL,NULL,0,NULL,NULL 64398,187364,1198091,NULL,NULL,NULL,0,NULL,NULL 64399,145621,775038,NULL,NULL,NULL,0,NULL,NULL 64400,62154,525241,NULL,NULL,NULL,0,NULL,NULL 64401,127534,113721,Popular Question Yearling Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 64402,2826710,976852,NULL,NULL,NULL,0,NULL,NULL 64403,200317,976852,NULL,NULL,NULL,0,NULL,NULL 64404,1512574,1143768,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 64405,11508,791408,NULL,NULL,NULL,0,NULL,NULL 64406,70025,686846,Tumbleweed Caucus Commentator,NULL,NULL,0,NULL,NULL 64407,246091,678983,Revival Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64408,25222,1275807,Editor,NULL,,0,, 64409,180842,1300897,Notable Question,NULL,NULL,0,NULL,NULL 64410,331791,944820,Popular Question Yearling Notable Question Notable Question Supporter,NULL,NULL,0,NULL,NULL 64411,675499,1071869,Notable Question Announcer Documentation User Explainer Popular Question,NULL,NULL,0,NULL,NULL 64412,959506,603188,NULL,NULL,NULL,0,NULL,NULL 64413,1225900,1036496,Guru Nice Answer Yearling Popular Question Popular Question Caucus Documentation User Yearling Census Great Answer Yearling,NULL,NULL,0,NULL,NULL 64414,591648,1432997,NULL,NULL,NULL,0,NULL,NULL 64415,792784,400434,Self-Learner Nice Question Famous Question Notable Question Nice Question Yearling Notable Question Famous Question Nice Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 64416,19452,188914,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64417,128213,256747,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64418,481233,503956,NULL,NULL,NULL,0,NULL,NULL 64419,17933,1125578,NULL,NULL,NULL,0,NULL,NULL 64420,598250,1297493,Teacher,NULL,NULL,0,NULL,NULL 64421,1564542,736266,NULL,NULL,NULL,0,NULL,NULL 64422,159092,1477511,NULL,NULL,NULL,0,NULL,NULL 64423,159716,405152,Nice Answer Yearling Nice Answer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64424,13715,667984,Informed Great Answer Yearling Good Answer Good Answer Great Answer Announcer rust Populist Guru Nice Answer Enlightened Yearling Populist Popular Question Nice Answer Enlightened Good Answer Yearling Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64425,159715,768010,NULL,NULL,NULL,0,NULL,NULL 64426,257523,1275007,Populist Good Answer Caucus Yearling Commentator Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 64427,1379585,1363662,NULL,NULL,NULL,0,NULL,NULL 64428,428643,289651,Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 64429,488584,1505638,NULL,NULL,NULL,0,NULL,NULL 64430,234305,514147,Nice Answer Student Yearling Commentator,NULL,NULL,0,NULL,NULL 64431,293658,1529695,Student,NULL,NULL,0,NULL,NULL 64432,1387466,1207125,NULL,NULL,NULL,0,NULL,NULL 64433,356519,1099010,Nice Question Yearling Necromancer Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 64434,317314,641216,NULL,NULL,NULL,0,NULL,NULL 64435,15405,343892,Investor Announcer Yearling Curious Yearling Caucus Announcer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Announcer Announcer Announcer,NULL,pCombining href https stackoverflow com 17936621 101152 this answer href https stackoverflow com 5251506 101152 this answer and href https github com bjyoungblood es6 error blob master src index js rel nofollow noreferrer this code have made this small helper class that seems to work fine ppre codeclass ExtendableError extends Error constructor message super this message message this stack new Error stack this name this constructor name now can extendclass MyError extends ExtendableError constructor super var myerror new MyError ll console log myerror message console log myerror instanceof Error console log myerror name console log myerror stack code prep href https babeljs io repl experimental true amp evaluate true amp loose false amp spec false amp code lz MYGwhgzhAECiAeAXApgOwCZgEYmbATvgPb7TJJrowHGkDeAUNNMEahIvgK7CIkAUAW2RQwAc2QBKaI2bMIXAA7J8 SQG4mcxAAsAlhAB0w0ROgBeaCYjjkmudF0HDHMMADWF6P1TIA7nCEApKSLohu7vba kaoYMJeTkas7Jw8fPiGccJRAL4MuQ4MDAD0JdCoRAEAkixgqGQUGMWgkDAAsgCeNCSNKBjUTZg4eEH0Wikc3LwCgtJ0clrySipCGlr5 QwAbmCkgp0qtF6 AV09qgBEICCX65NEuIYgRGJCh2PGIjYS92wQj2Qz1e7yOvT0qXqwGQRAAZoFaH92IDgW8DmDMtkpJoHk8XmiPrQwhENEA rel nofollow noreferrer Try in REPL same problem using instanceof CustomError doesn work what the point extending if you can use instanceof pCombining href https stackoverflow com 17936621 101152 this answer href https stackoverflow com 5251506 101152 this answer and href https github com bjyoungblood es6 error blob master src index js rel nofollow noreferrer this code have made this small helper class that seems to work fine ppre codeclass ExtendableError extends Error constructor message super this message message this stack new Error stack this name this constructor name now can extendclass MyError extends ExtendableError constructor super var myerror new MyError ll console log myerror message console log myerror instanceof Error console log myerror name console log myerror stack code prep href https babeljs io repl experimental true amp evaluate true amp loose false amp spec false amp code lz MYGwhgzhAECiAeAXApgOwCZgEYmbATvgPb7TJJrowHGkDeAUNNMEahIvgK7CIkAUAW2RQwAc2QBKaI2bMIXAA7J8 SQG4mcxAAsAlhAB0w0ROgBeaCYjjkmudF0HDHMMADWF6P1TIA7nCEApKSLohu7vba kaoYMJeTkas7Jw8fPiGccJRAL4MuQ4MDAD0JdCoRAEAkixgqGQUGMWgkDAAsgCeNCSNKBjUTZg4eEH0Wikc3LwCgtJ0clrySipCGlr5 QwAbmCkgp0qtF6 AV09qgBEICCX65NEuIYgRGJCh2PGIjYS92wQj2Qz1e7yOvT0qXqwGQRAAZoFaH92IDgW8DmDMtkpJoHk8XmiPrQwhENEA rel nofollow noreferrer Try in REPL oh see interesting,0,NULL,NULL 64436,234408,660398,NULL,NULL,NULL,0,NULL,NULL 64437,514673,574954,NULL,NULL,NULL,0,NULL,NULL 64438,50948,849172,Enthusiast Teacher,NULL,NULL,0,NULL,NULL 64439,161211,709147,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64440,29008,705533,Critic,NULL,NULL,0,NULL,NULL 64441,1330872,612744,NULL,NULL,NULL,0,NULL,NULL 64442,330731,516969,Notable Question Yearling Nice Question Popular Question Nice Question Civic Duty Notable Question,NULL,NULL,0,NULL,NULL 64443,199516,910645,NULL,NULL,NULL,0,NULL,NULL 64444,364401,786631,Yearling Yearling,NULL,NULL,0,NULL,NULL 64445,190337,966963,NULL,NULL,NULL,0,NULL,NULL 64446,1944349,796467,NULL,NULL,NULL,0,NULL,NULL 64447,65501,180275,Nice Answer Popular Question Notable Question Good Answer Nice Question Popular Question Famous Question oracle11g Popular Question Popular Question Nice Answer Enlightened Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Answer Famous Question Famous Question Notable Question Good Answer Popular Question Yearling Good Answer sql Notable Question Caucus Constituent Notable Question Popular Question Nice Answer Nice Answer Census Nice Question Popular Question Notable Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Caucus Constituent Great Answer Notable Question Nice Answer Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Guru Notable Question Nice Question Nice Answer Enlightened Caucus Famous Question Constituent Popular Question Nice Question Notable Question Necromancer Popular Question Notable Question Popular Question Popular Question Revival Nice Answer Enlightened Guru Good Answer Notable Question Necromancer Popular Question Notable Question Yearling Popular Question Announcer Nice Answer Nice Answer Notable Question,NULL,Vim What the difference between let and set vim pWhat the difference between codelet code and codeset code in the vim editor ppI ve always wondered why both of them exist ppAlso be interested to hear its historical background for boolean settings it arguably easier to just set noic or set ic As far as know set is also compatible with vi which let as assume is not,0,NULL,NULL 64448,68290,574200,Scholar Student,NULL,NULL,0,NULL,NULL 64449,89223,373379,NULL,NULL,NULL,0,NULL,NULL 64450,11069,347881,NULL,NULL,NULL,0,NULL,NULL 64451,180890,821039,NULL,NULL,NULL,0,NULL,NULL 64452,291967,1286210,Good Answer Yearling Nice Answer Enlightened Yearling Guru Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64453,1347577,518874,NULL,NULL,NULL,0,NULL,NULL 64454,97744,1320892,Yearling Great Question Favorite Question Yearling Yearling Commentator,NULL,NULL,0,NULL,NULL 64455,305306,1167107,NULL,NULL,NULL,0,NULL,NULL 64456,3203060,460616,Revival,NULL,NULL,0,NULL,NULL 64457,372275,1150757,NULL,NULL,NULL,0,NULL,NULL 64458,6550232,1150757,NULL,NULL,NULL,0,NULL,NULL 64459,133377,1516740,NULL,NULL,NULL,0,NULL,NULL 64460,645443,1379619,NULL,NULL,NULL,0,NULL,NULL 64461,17646,588688,Popular Question Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 64462,233408,342658,Great Question Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 64463,11156780,982843,Teacher Supporter,NULL,NULL,0,NULL,NULL 64464,173571,982843,Teacher Supporter,NULL,NULL,0,NULL,NULL 64465,129536,82303,Yearling Proofreader Nice Answer Explainer Census Yearling Census Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64466,215983,1092098,NULL,NULL,NULL,0,NULL,NULL 64467,1376693,437900,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64468,118191,478920,NULL,NULL,NULL,0,NULL,NULL 64469,473223,668420,NULL,NULL,NULL,0,NULL,NULL 64470,1667925,491053,Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 64471,1071894,607912,Notable Question,NULL,NULL,0,NULL,NULL 64472,141447,1381702,Necromancer,NULL,NULL,0,NULL,NULL 64473,263512,204100,NULL,NULL,NULL,0,NULL,NULL 64474,309301,1176502,Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Self-Learner Nice Question Notable Question Popular Question Nice Question Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Nice Question Popular Question Famous Question Famous Question Yearling Notable Question Famous Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64475,1557725,1176502,Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Self-Learner Nice Question Notable Question Popular Question Nice Question Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Nice Question Popular Question Famous Question Famous Question Yearling Notable Question Famous Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64476,8998,67447,NULL,NULL,NULL,0,NULL,NULL 64477,231675,780088,Yearling,NULL,NULL,0,NULL,NULL 64478,1191936,878938,Yearling Notable Question Great Question Yearling,NULL,NULL,0,NULL,NULL 64479,252971,1503869,Scholar Documentation User Commentator,NULL,NULL,0,NULL,NULL 64480,488314,886999,NULL,NULL,NULL,0,NULL,NULL 64481,326339,1204330,Notable Question Notable Question Notable Question Yearling Popular Question Yearling Custodian Popular Question Nice Answer Enlightened Popular Question Yearling Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 64482,11660,387564,Popular Question,NULL,NULL,0,NULL,NULL 64483,259378,260685,NULL,NULL,NULL,0,NULL,NULL 64484,893710,797127,Supporter,NULL,NULL,0,NULL,NULL 64485,918496,1186555,NULL,NULL,NULL,0,NULL,NULL 64486,15215,884402,NULL,NULL,NULL,0,NULL,NULL 64487,2131390,884402,NULL,NULL,NULL,0,NULL,NULL 64488,1527014,884402,NULL,NULL,NULL,0,NULL,NULL 64489,225588,1293763,Notable Question Yearling Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 64490,362067,165323,NULL,NULL,NULL,0,NULL,NULL 64491,6973076,165323,NULL,NULL,NULL,0,NULL,NULL 64492,8797676,165323,NULL,NULL,NULL,0,NULL,NULL 64493,6263089,165323,NULL,NULL,NULL,0,NULL,NULL 64494,9202196,165323,NULL,NULL,NULL,0,NULL,NULL 64495,96701,1284842,Editor Excavator,NULL,NULL,0,NULL,NULL 64496,711626,783839,NULL,NULL,NULL,0,NULL,NULL 64497,485258,606348,Yearling iphone objective-c Yearling Popular Question Tenacious Yearling Great Answer,NULL,NULL,0,NULL,NULL 64498,1011761,948323,Good Question Tenacious Popular Question Yearling Caucus Constituent Census Popular Question Caucus Constituent Yearling Excavator Self-Learner Favorite Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64499,152980,130224,Great Question Good Question Nice Answer Enlightened Nice Answer Enlightened Yearling Favorite Question Announcer Popular Question Nice Answer Enlightened Popular Question Announcer Popular Question Popular Question Yearling Announcer Popular Question Good Answer Nice Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 64500,45015,231150,Guru javascript Caucus Yearling Notable Question Notable Question Famous Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64501,946034,915294,NULL,NULL,NULL,0,NULL,NULL 64502,1128745,1115437,Notable Question,NULL,NULL,0,NULL,NULL 64503,123222,574268,NULL,NULL,NULL,0,NULL,NULL 64504,144941,150855,Yearling,NULL,NULL,0,NULL,NULL 64505,711256,1187976,NULL,NULL,NULL,0,NULL,NULL 64506,620410,1193727,Yearling Announcer Booster Nice Answer Yearling Good Answer Critic Announcer Necromancer Announcer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 64507,266189,1172409,Organizer Commentator Citizen Patrol Documentation User,NULL,pAs of vim you can use codeset colorcolumn 80 code codeset cc 80 code for short ppSince earlier versions do not support this my code vimrc code uses instead ppre codeif exists colorcolumn set colorcolumn 80else au BufWinEnter let m2 matchadd ErrorMsg gt 80v endif code prepSee also href http vimdoc sourceforge net htmldoc options html 27colorcolumn 27 rel noreferrer the online documentation on the codecolorcolumn code option You edit the theme or as would do place this command after where you set the colorscheme in vimrc so it overrides the theme rather than the other way around,0,NULL,NULL 64508,4274979,1172409,Organizer Commentator Citizen Patrol Documentation User,NULL,pAs of vim you can use codeset colorcolumn 80 code codeset cc 80 code for short ppSince earlier versions do not support this my code vimrc code uses instead ppre codeif exists colorcolumn set colorcolumn 80else au BufWinEnter let m2 matchadd ErrorMsg gt 80v endif code prepSee also href http vimdoc sourceforge net htmldoc options html 27colorcolumn 27 rel noreferrer the online documentation on the codecolorcolumn code option You edit the theme or as would do place this command after where you set the colorscheme in vimrc so it overrides the theme rather than the other way around,0,NULL,NULL 64509,2708236,297744,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 64510,475535,948054,NULL,NULL,NULL,0,NULL,NULL 64511,294901,1502452,Student Scholar,NULL,NULL,0,NULL,NULL 64512,776563,1399843,NULL,NULL,NULL,0,NULL,NULL 64513,836576,1399843,NULL,NULL,NULL,0,NULL,NULL 64514,449318,111140,NULL,NULL,NULL,0,NULL,NULL 64515,296620,264656,NULL,NULL,NULL,0,NULL,NULL 64516,200199,119493,Notable Question Nice Question Yearling Nice Question Caucus Constituent Nice Answer Enlightened Yearling Popular Question Caucus Documentation User Custodian Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64517,12183,571465,Autobiographer,NULL,NULL,0,NULL,NULL 64518,736575,742834,NULL,NULL,NULL,0,NULL,NULL 64519,569957,1080523,Revival Enthusiast Caucus Yearling Nice Answer Census Custodian Custodian Caucus Constituent Documentation User Announcer Yearling Census Nice Answer Enlightened Necromancer Nice Answer Enlightened,NULL,pSuppose we have case class which could have more than twelve members ppre codecase class Foo Int Char Symbol String code prepAnd that we re representing errors as strings and have defined type alias for convenience ppre codetype ErrorOr ValidationNel String code prepWe also have some validation results ppre codeval goodA ErrorOr Int successval goodB ErrorOr Char successval goodC ErrorOr Symbol successval goodD ErrorOr String successval badA ErrorOr Int failNelval badC ErrorOr Symbol failNel code prepNow we can write ppre codeval foo Foo apply curriedval good ErrorOr Foo goodD lt gt goodC lt gt goodB lt gt goodA map foo val bad ErrorOr Foo goodD lt gt badC lt gt goodB lt gt badA map foo code prepWhich gives us what we want ppre codescala gt println good Success Foo scala gt println bad Failure NonEmptyList code prepIn Haskell this would be href https stackoverflow com 11502894 334519 much prettier a—you just write ppre codeFoo lt gt goodA lt gt goodB lt gt goodC lt gt goodD code prepScala weaker type inference requires us to write the arguments in the wrong order unfortunately Is this lisp,0,NULL,NULL 64520,48732,1179505,Yearling Nice Answer Enlightened Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64521,497690,668201,NULL,NULL,NULL,0,NULL,NULL 64522,277334,1059650,Popular Question Popular Question Notable Question Nice Answer Yearling Notable Question Nice Answer Critic Yearling Nice Question Yearling Good Answer Tumbleweed Nice Question Famous Question Editor,NULL,NULL,0,NULL,NULL 64523,1582460,1219080,Tumbleweed,NULL,NULL,0,NULL,NULL 64524,4619896,765647,Good Question Popular Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 64525,15721,319233,Yearling ruby-on-rails Yearling Announcer Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64526,902493,1414127,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 64527,142592,403245,NULL,NULL,NULL,0,NULL,NULL 64528,170149,408556,Nice Answer Necromancer Yearling Tumbleweed Civic Duty Nice Answer Necromancer Yearling Necromancer Nice Answer Yearling Announcer Necromancer Yearling Necromancer Necromancer Nice Answer Necromancer python Nice Answer Nice Answer Nice Answer Custodian Necromancer Announcer Yearling Nice Answer Nice Answer,NULL,pAfter plenty of searching trial and error finally figured how to use href http twistedmatrix com documents current api twisted internet fdesc html rel nofollow codefdesc code ppre codefrom future import print functionfrom twisted internet task import reactfrom twisted internet import stdio protocolfrom twisted internet defer import Deferredfrom twisted internet fdesc import readFromFD setNonBlockingclass FileReader protocol Protocol def init self filename self open filename rb def dataReceived self data self transport write data def connectionMade self fd self fileno setNonBlocking fd readFromFD fd self dataReceived def connectionLost self reason self close def main reactor filename stdio StandardIO FileReader filename code prep Edit also just figured out simpler way that doesn require the use of protocol ppre codedef getFile filename with open filename as Deferred fd fileno setNonBlocking fd readFromFD fd callback return ddef main reactor filename getFile filename return addCallback print code prepRun either like so ppre codereact main path to file code pre Good point Maybe it be better to forgoe the context manager and explicitly close the file in the callback pAfter plenty of searching trial and error finally figured how to use href http twistedmatrix com documents current api twisted internet fdesc html rel nofollow codefdesc code ppre codefrom future import print functionfrom twisted internet task import reactfrom twisted internet import stdio protocolfrom twisted internet defer import Deferredfrom twisted internet fdesc import readFromFD setNonBlockingclass FileReader protocol Protocol def init self filename self open filename rb def dataReceived self data self transport write data def connectionMade self fd self fileno setNonBlocking fd readFromFD fd self dataReceived def connectionLost self reason self close def main reactor filename stdio StandardIO FileReader filename code prep Edit also just figured out simpler way that doesn require the use of protocol ppre codedef getFile filename with open filename as Deferred fd fileno setNonBlocking fd readFromFD fd callback return ddef main reactor filename getFile filename return addCallback print code prepRun either like so ppre codereact main path to file code pre Smith do you have link to any documentation stating this,0,NULL,NULL 64529,291867,635314,Commentator Tag Editor Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 64530,89511,585718,NULL,NULL,NULL,0,NULL,NULL 64531,509869,343614,Notable Question Yearling Notable Question Necromancer Notable Question Nice Answer Popular Question Popular Question Popular Question Necromancer Popular Question Notable Question Yearling Nice Answer Nice Answer Popular Question Popular Question Popular Question Famous Question Yearling Notable Question Necromancer Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 64532,4538024,346048,Yearling Famous Question,NULL,NULL,0,NULL,NULL 64533,3078,346048,Yearling Famous Question,NULL,NULL,0,NULL,NULL 64534,33953,122210,Good Question Notable Question Notable Question Tumbleweed Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64535,1088302,178673,Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 64536,1905446,948550,Popular Question Pundit Nice Question Necromancer Documentation Pioneer Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Guru Caucus Constituent Necromancer Necromancer Notable Question Census Popular Question Notable Question Popular Question Nice Answer Caucus Nice Answer Enlightened Good Answer Constituent Nice Answer python-3.x Necromancer Yearling Documentation User Good Answer Necromancer Nice Answer Nice Answer Nice Answer Census Nice Answer Enlightened python Nice Answer Good Answer Caucus Nice Answer Enlightened Nice Answer Announcer Popular Question python-2.7 Guru Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer,NULL,blockquote pWhy use deflate instead of gzip for text files served by Apache blockquotepThe simple answer is strongdon strong phrp href http www ietf org rfc rfc2616 txt rel nofollow noreferrer RFC 2616 defines deflate as pblockquote pdeflate The zlib format defined in RFC 1950 in combination with the deflate compression mechanism described in RFC 1951 blockquotepThe zlib format is defined in href http www ietf org rfc rfc1950 txt rel nofollow noreferrer RFC 1950 as ppre code CMF FLG more gt DICTID more gt compressed data ADLER32 code prepSo few headers and an ADLER32 checksum ppRFC 2616 defines gzip as pblockquote pgzip An encoding format produced by the file compression program gzip GNU zip as described in RFC 1952 25 This format is Lempel Ziv coding LZ77 with 32 bit CRC blockquotep href http www ietf org rfc rfc1952 txt rel nofollow noreferrer RFC 1952 defines the compressed data as pblockquote pThe format presently uses the DEFLATE method of compression but can be easily extended to use other compression methods blockquotepCRC 32 is href http en wikipedia org wiki Adler 32 rel nofollow noreferrer slower than ADLER32 pblockquote pCompared to cyclic redundancy check of the same length it trades reliability for speed preferring the latter blockquotepSo we have compression mechanisms that use the strongsame strong algorithm for compression but strongdifferent strong algorithm for headers and checksum ppNow the underlying TCP packets are already href http en wikipedia org wiki Transmission Control Protocol TCP checksum for IPv4 rel nofollow noreferrer pretty reliable so the issue here is not Adler 32 vs href http www gzip org zlib rfc gzip html rel nofollow noreferrer CRC 32 that GZIP uses phrpTurns out many browsers over the years implemented an incorrect deflate algorithm Instead of expecting the zlib header in RFC 1950 they simply expected the compressed payload Similarly various web servers made the same mistake ppSo over the years browsers started implementing strongfuzzy logic strong deflate implementation they try for zlib header and adler checksum if that fails they try for payload ppThe result of having complex logic like that is that it is often broken Verve Studio have href http www vervestudios co projects compression tests results rel nofollow noreferrer user contributed test section that show how bad the situation is ppFor example deflate works in Safari but is broken in Safari it also always has issues on IE phrpSo best thing to do is avoid deflate altogether the minor speed boost due to adler 32 is not worth the risk of broken payloads Your URI is broken,0,NULL,NULL 64537,86659,1142531,Yearling Nice Answer Enlightened Good Answer Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 64538,8203,370846,Caucus Custodian,NULL,NULL,0,NULL,NULL 64539,153200,379156,Popular Question,NULL,NULL,0,NULL,NULL 64540,817563,299864,NULL,NULL,NULL,0,NULL,NULL 64541,2154416,322259,NULL,NULL,NULL,0,NULL,NULL 64542,8855000,322259,NULL,NULL,NULL,0,NULL,NULL 64543,68743,1080665,Popular Question,NULL,NULL,0,NULL,NULL 64544,323552,950756,NULL,NULL,NULL,0,NULL,NULL 64545,9228216,887832,NULL,NULL,NULL,0,NULL,NULL 64546,163488,887832,NULL,NULL,NULL,0,NULL,NULL 64547,37703,136581,NULL,NULL,NULL,0,NULL,NULL 64548,1170110,1236138,NULL,NULL,NULL,0,NULL,NULL 64549,435186,145364,Yearling Caucus Good Answer Yearling Nice Answer Nice Answer Custodian Enlightened Census Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64550,213806,572308,NULL,NULL,NULL,0,NULL,NULL 64551,248964,210858,NULL,NULL,NULL,0,NULL,NULL 64552,947011,1181370,Civic Duty Critic Documentation User Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 64553,237968,798494,Nice Question,NULL,NULL,0,NULL,NULL 64554,475824,1375586,Editor Scholar Student Yearling Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64555,520192,1123818,Popular Question,NULL,NULL,0,NULL,NULL 64556,499999,1380892,NULL,NULL,NULL,0,NULL,NULL 64557,3042054,1380892,NULL,NULL,NULL,0,NULL,NULL 64558,74111,46429,Yearling Custodian Caucus Yearling Census,NULL,NULL,0,NULL,NULL 64559,101079,1330923,NULL,NULL,NULL,0,NULL,NULL 64560,511678,142385,NULL,NULL,NULL,0,NULL,NULL 64561,178667,624093,Citizen Patrol Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64562,160861,402112,NULL,NULL,NULL,0,NULL,NULL 64563,94997,884017,NULL,NULL,NULL,0,NULL,NULL 64564,68581,203633,Popular Question,NULL,NULL,0,NULL,NULL 64565,826630,545783,Yearling,NULL,NULL,0,NULL,NULL 64566,67667,1340959,Informed,NULL,NULL,0,NULL,NULL 64567,229936,11167,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 64568,4243,1156889,NULL,NULL,NULL,0,NULL,NULL 64569,149703,851116,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64570,313976,1110584,Citizen Patrol Yearling Good Answer,NULL,NULL,0,NULL,NULL 64571,835,385881,Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Revival Self-Learner Nice Question Notable Question Popular Question Popular Question Popular Question Civic Duty Popular Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64572,44564,158692,Student,NULL,NULL,0,NULL,NULL 64573,48961,514042,NULL,NULL,NULL,0,NULL,NULL 64574,162960,1188129,NULL,NULL,NULL,0,NULL,NULL 64575,1100103,861145,NULL,NULL,NULL,0,NULL,NULL 64576,201595,788887,Yearling Revival Popular Question Nice Answer Yearling Caucus Custodian Popular Question,NULL,NULL,0,NULL,NULL 64577,743083,338104,Curious,NULL,NULL,0,NULL,NULL 64578,110201,483744,NULL,NULL,NULL,0,NULL,NULL 64579,1134126,812794,NULL,NULL,NULL,0,NULL,NULL 64580,258701,1293728,NULL,NULL,NULL,0,NULL,NULL 64581,6485,212906,Commentator,NULL,NULL,0,NULL,NULL 64582,122810,1204682,NULL,NULL,NULL,0,NULL,NULL 64583,305126,534834,NULL,NULL,NULL,0,NULL,NULL 64584,274589,975403,Famous Question Notable Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 64585,516573,1434075,Caucus Constituent Yearling Excavator Census,NULL,NULL,0,NULL,NULL 64586,403913,1410672,Revival Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 64587,169390,1532136,Popular Question,NULL,NULL,0,NULL,NULL 64588,1513093,1146106,NULL,NULL,NULL,0,NULL,NULL 64589,163575,646162,Yearling Guru Nice Answer Enlightened Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 64590,568118,1173667,Yearling Nice Answer php Good Answer Yearling Good Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 64591,587973,1208559,NULL,NULL,NULL,0,NULL,NULL 64592,124466,10582,NULL,NULL,NULL,0,NULL,NULL 64593,50355,1174128,NULL,NULL,NULL,0,NULL,NULL 64594,223439,1489510,Investor Editor Student Commentator Scholar Revival Critic,NULL,NULL,0,NULL,NULL 64595,87396,5725,Famous Question Yearling Nice Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 64596,193315,512687,Yearling Supporter Yearling Editor,NULL,NULL,0,NULL,NULL 64597,128408,1241652,Necromancer,NULL,NULL,0,NULL,NULL 64598,632922,1164917,NULL,NULL,NULL,0,NULL,NULL 64599,158104,201601,Nice Answer Notable Question Yearling Caucus Nice Answer Popular Question Yearling Popular Question Census Nice Answer Nice Answer Enlightened Yearling Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 64600,41698,1060445,Good Answer,NULL,NULL,0,NULL,NULL 64601,1223225,1237612,NULL,NULL,NULL,0,NULL,NULL 64602,119458,1237612,NULL,NULL,NULL,0,NULL,NULL 64603,235508,128967,Famous Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Favorite Question Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Good Question Famous Question Popular Question Popular Question Famous Question Good Answer Nice Answer Popular Question Great Question Nice Answer Tag Editor Famous Question Good Question Favorite Question Notable Question Yearling Good Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Great Question Famous Question Nice Question Good Question Notable Question Famous Question Great Question Good Question Favorite Question Popular Question Famous Question Announcer Popular Question Notable Question Good Question Notable Question Good Question Notable Question Notable Question python Popular Question Popular Question Nice Question Popular Question Popular Question Good Question Famous Question Notable Question Famous Question Nice Question Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question Announcer Good Question Necromancer Notable Question Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Good Answer Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Famous Question Good Answer Popular Question Popular Question Popular Question Famous Question Nice Question Good Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Good Answer Famous Question Popular Question Nice Question Popular Question Good Question Good Question Popular Question Popular Question Great Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Good Answer Yearling Famous Question Notable Question Famous Question Nice Answer Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Question Popular Question Favorite Question Notable Question Popular Question Famous Question Notable Question Nice Answer Notable Question Notable Question Popular Question Favorite Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 64604,1145,715517,NULL,NULL,NULL,0,NULL,NULL 64605,553399,157110,Notable Question Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 64606,505712,322632,NULL,NULL,NULL,0,NULL,NULL 64607,378811,481614,NULL,NULL,NULL,0,NULL,NULL 64608,433777,959934,Famous Question Famous Question Popular Question Yearling Good Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 64609,558250,514802,Popular Question Yearling Investor Yearling Nice Answer Enlightened Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 64610,1126193,206487,NULL,NULL,NULL,0,NULL,NULL 64611,162437,265558,Popular Question Notable Question Popular Question Yearling Excavator,NULL,Shared variables in PostCSS postcss pIn Sass can define my variables in separate file code variables scss code then make those variables available anywhere code variables code Actually the variables are globally available after their first import With PostCSS can use codepostcss simple vars code or codepostcss css variables code to define variables local to single file like to define all most variables in single file then code code that file wherever need to use them ppI know the PostCSS plugins can have pre defined variables configured for the plugin but then cannot calculate contrasting color for given background phrpEdit probably wasn clear about what my question was strongIs there way to define PostCSS variables in CSS file such that the variables are not global but can be imported into another CSS file strong As mentioned above can use Sass but then all variables are effectively global not ideal Otherwise in PostCSS can define the variables in each stylesheet need them what the point emor em can define them in static JavaScript structure static in that they can reference other variables Ian Tearle it been while but think ended up going back to Sass for this project,0,NULL,NULL 64612,557890,802542,Popular Question Popular Question Teacher Good Question Notable Question Yearling Famous Question Popular Question Notable Question Popular Question Announcer Popular Question Inquisitive Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Yearling Self-Learner Popular Question Famous Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64613,20588,29576,Nice Question Popular Question Good Answer Necromancer Nice Answer Yearling Popular Question Popular Question Good Question Yearling Guru Notable Question Yearling Electorate Good Answer,NULL,NULL,0,NULL,NULL 64614,17385,205138,Popular Question,NULL,NULL,0,NULL,NULL 64615,43757,939606,Organizer Yearling Yearling,NULL,NULL,0,NULL,NULL 64616,269436,509741,NULL,NULL,NULL,0,NULL,NULL 64617,60892,631925,NULL,NULL,NULL,0,NULL,NULL 64618,232815,819823,NULL,NULL,NULL,0,NULL,NULL 64619,704690,957832,NULL,NULL,NULL,0,NULL,NULL 64620,563507,446049,Good Answer Yearling Caucus Caucus Constituent Yearling Civic Duty Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 64621,637477,369009,Popular Question Popular Question Revival Necromancer Popular Question Necromancer Yearling Popular Question Nice Answer Popular Question Nice Answer Enlightened Famous Question Popular Question Popular Question Notable Question Popular Question Good Answer Good Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Answer Revival Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Good Answer Notable Question Custodian Notable Question Necromancer c++ Famous Question Necromancer Yearling Favorite Question Custodian Nice Question Notable Question Popular Question Notable Question Nice Answer Announcer,NULL,NULL,0,NULL,NULL 64622,32713,36031,NULL,NULL,NULL,0,NULL,NULL 64623,240436,821169,NULL,NULL,NULL,0,NULL,NULL 64624,100875,469558,Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 64625,25200,49994,Nice Answer Good Answer Yearling Good Answer Guru Guru Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 64626,139011,322897,Yearling Popular Question Popular Question Good Question Popular Question Nice Question Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 64627,164401,523585,Yearling Famous Question Popular Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64628,4537618,523585,Yearling Famous Question Popular Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64629,823058,4779,Yearling Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 64630,76245,201073,NULL,NULL,NULL,0,NULL,NULL 64631,289192,392606,Yearling,NULL,NULL,0,NULL,NULL 64632,895226,678853,Curious,NULL,NULL,0,NULL,NULL 64633,218620,136903,Good Answer Yearling Famous Question Yearling Notable Question Guru Yearling,NULL,NULL,0,NULL,NULL 64634,209568,800040,NULL,NULL,NULL,0,NULL,NULL 64635,249057,1155107,Enthusiast,NULL,NULL,0,NULL,NULL 64636,62746,835828,NULL,NULL,NULL,0,NULL,NULL 64637,351767,480842,Self-Learner,NULL,NULL,0,NULL,NULL 64638,250666,1394086,Popular Question,NULL,NULL,0,NULL,NULL 64639,5099359,626713,NULL,NULL,NULL,0,NULL,NULL 64640,867542,1040771,NULL,NULL,NULL,0,NULL,NULL 64641,155861,246222,Announcer Autobiographer,NULL,NULL,0,NULL,NULL 64642,37549,484839,NULL,NULL,NULL,0,NULL,NULL 64643,108234,1154021,NULL,NULL,NULL,0,NULL,NULL 64644,1672107,1013719,Popular Question Nice Answer Nice Answer Nice Answer Good Answer Nice Question c++ Guru Notable Question Popular Question Famous Question Documentation Beta Nice Answer Enlightened Documentation Pioneer Good Answer Nice Answer Nice Question python Nice Question Popular Question Yearling Caucus Promoter Benefactor Nice Question Notable Question Famous Question Necromancer Popular Question Nice Answer Nice Answer Enlightened Announcer Good Answer Nice Question Good Question Popular Question Nice Question Caucus Constituent Popular Question Good Question Announcer Documentation User Yearling Popular Question Nice Answer Good Answer Notable Question Notable Question Good Answer Popular Question Census Nice Answer Nice Question Good Answer Popular Question Nice Question Caucus Constituent Nice Answer Enlightened Popular Question Popular Question Notable Question Notable Question Good Question python-3.x Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Good Answer,NULL,strongNo strong you emdon em cast the result since pulliIt is unnecessary as codevoid code is automatically and safely promoted to any other pointer type in this case liliIt adds clutter to the code casts are not very easy to read especially if the pointer type is long liliIt makes you repeat yourself which is generally bad liliIt can hide an error if you forgot to include code lt stdlib gt code This can cause crashes or worse emnot em cause crash until way later in some totally different part of the code Consider what happens if pointers and integers are differently sized then you re hiding warning by casting and might lose bits of your returned address Note as of C11 implicit functions are gone from and this point is no longer relevant since there no automatic assumption that undeclared functions return codeint code li ulpAs clarification note that said you don cast not you don emneed em to cast In my opinion it failure to include the cast even if you got it right There are simply no benefits to doing it but bunch of potential risks and including the cast indicates that you don know about the risks ppAlso note as commentators point out that the above talks about straight not very firmly believe in and as separate languages ppTo add further your code needlessly repeats the type information codeint code which can cause errors It better to dereference the pointer being used to store the return value to lock the two together ppre codeint sieve malloc length sizeof sieve code prepThis also moves the codelength code to the front for increased visibility and drops the redundant parentheses with codesizeof code they emare only needed em when the argument is type name Many people seem to not know or ignore this which makes their code more verbose Remember codesizeof code is not function phrpWhile moving codelength code to the front emmay em increase visibility in some rare cases one should also pay attention that in the general case it should be better to write the expression as ppre codeint sieve malloc sizeof sieve length code prepSince keeping the codesizeof code first in this case ensures multiplication is done with at least codesize code math ppCompare codemalloc sizeof sieve length width code vs codemalloc length width sizeof sieve code the second may overflow the codelength width code when codewidth code and codelength code are smaller types than codesize code comparing with double double 12 or unsigned int unsigned int 12 might make more sense Why should prefer static constexpr int in class over enum for class level integral constants 11 enums constexpr strongC 17 Update strongcodestatic constexpr code variables are implicitly codeinline code so there no external definition necessary phrpOriginal question ppLet say have list of constants such as ppre codestruct Cls static constexpr int 32 static constexpr int 64 code prepThis of course suggests that add definitions for these to avoid ODR usage issues that may occur so need ppre codeconstexpr int Cls constexpr int Cls code prepWhy strongshould strong prefer this over ppre codestruct Cls enum int 32 64 code prepWhich saves me of the ODR usage headaches since codeN code and codeM code are more truly just constants and not objects in their own right bigger deal if this is header only and is shorter could explicitly specify the type codeenum long long code or whatever if need be What is the advantage of the first done Why should prefer static constexpr int in class over enum for class level integral constants 11 enums constexpr strongC 17 Update strongcodestatic constexpr code variables are implicitly codeinline code so there no external definition necessary phrpOriginal question ppLet say have list of constants such as ppre codestruct Cls static constexpr int 32 static constexpr int 64 code prepThis of course suggests that add definitions for these to avoid ODR usage issues that may occur so need ppre codeconstexpr int Cls constexpr int Cls code prepWhy strongshould strong prefer this over ppre codestruct Cls enum int 32 64 code prepWhich saves me of the ODR usage headaches since codeN code and codeM code are more truly just constants and not objects in their own right bigger deal if this is header only and is shorter could explicitly specify the type codeenum long long code or whatever if need be What is the advantage of the first the question in that is Isn there some way to tell the compiler that constexpr int SOME VALUE 27 means that SOME VALUE should be treated only as compile time constant and never an object with external linkage and that is what the answers address am asking if there is any advantage to using static constexpr instead of enum that would motivate me to use them for class level constants kbdCtrl kbd kbdC kbd terminates the main thread but because your threads aren in daemon mode they keep running and that keeps the process alive We can make them daemons ppre codef FirstThread daemon Truef start SecondThread daemon Trues start code prepBut then there another problem once the main thread has started your threads there nothing else for it to do So it exits and the threads are destroyed instantly So let keep the main thread alive ppre codeimport timewhile True time sleep code prepNow it will keep print first and second until you hit kbdCtrl kbd kbdC kbd pp strongEdit strong as commenters have pointed out the daemon threads may not get chance to clean up things like temporary files If you need that then catch the codeKeyboardInterrupt code on the main thread and have it co ordinate cleanup and shutdown But in many cases letting daemon threads die suddenly is probably good enough Looks like in python3 you can pass daemon True https docs python org library threading html threading Thread to Thread init,1,Why should prefer static constexpr int in class over enum for class level integral constants 11 enums constexpr strongC 17 Update strongcodestatic constexpr code variables are implicitly codeinline code so there no external definition necessary phrpOriginal question ppLet say have list of constants such as ppre codestruct Cls static constexpr int 32 static constexpr int 64 code prepThis of course suggests that add definitions for these to avoid ODR usage issues that may occur so need ppre codeconstexpr int Cls constexpr int Cls code prepWhy strongshould strong prefer this over ppre codestruct Cls enum int 32 64 code prepWhich saves me of the ODR usage headaches since codeN code and codeM code are more truly just constants and not objects in their own right bigger deal if this is header only and is shorter could explicitly specify the type codeenum long long code or whatever if need be What is the advantage of the first,NULL 64645,370277,974907,Popular Question Necromancer Nice Answer Yearling Popular Question Popular Question Yearling Famous Question Caucus Popular Question Popular Question Popular Question Popular Question Yearling Good Answer Popular Question Notable Question Caucus Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 64646,470447,37605,Critic Notable Question,NULL,NULL,0,NULL,NULL 64647,451566,712605,Good Answer Necromancer Guru Populist Nice Answer Enlightened Electorate Good Answer Popular Question Yearling Good Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Great Answer Nice Question Guru Popular Question Great Answer Yearling Guru Nice Answer Popular Question Tag Editor Popular Question Popular Question Nice Answer Enlightened Nice Answer Notable Question Great Answer Good Question Nice Answer Enlightened Notable Question Yearling Nice Answer Guru Famous Question Popular Question Nice Question Good Answer Great Answer Good Answer,NULL,NULL,0,NULL,NULL 64648,10040893,712605,Good Answer Necromancer Guru Populist Nice Answer Enlightened Electorate Good Answer Popular Question Yearling Good Answer Great Answer Good Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Great Answer Nice Question Guru Popular Question Great Answer Yearling Guru Nice Answer Popular Question Tag Editor Popular Question Popular Question Nice Answer Enlightened Nice Answer Notable Question Great Answer Good Question Nice Answer Enlightened Notable Question Yearling Nice Answer Guru Famous Question Popular Question Nice Question Good Answer Great Answer Good Answer,NULL,NULL,0,NULL,NULL 64649,85434,159689,Nice Answer Good Answer Yearling Notable Question Guru Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 64650,306051,106586,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 64651,27856,235161,Yearling Good Answer Documentation User Yearling Taxonomist,NULL,NULL,0,NULL,NULL 64652,167700,613593,NULL,NULL,NULL,0,NULL,NULL 64653,176716,501448,NULL,NULL,NULL,0,NULL,NULL 64654,146516,754642,Yearling,NULL,NULL,0,NULL,NULL 64655,391454,1207734,NULL,NULL,NULL,0,NULL,NULL 64656,239695,610418,NULL,NULL,NULL,0,NULL,NULL 64657,823653,817184,NULL,NULL,NULL,0,NULL,NULL 64658,85736,875289,NULL,NULL,NULL,0,NULL,NULL 64659,1007,153896,Necromancer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 64660,193540,34487,Good Question Popular Question Notable Question Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 64661,298341,1083176,NULL,NULL,NULL,0,NULL,NULL 64662,2585,379573,Nice Answer Yearling Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64663,469670,389958,Yearling Popular Question Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 64664,237709,1014689,Informed Teacher,NULL,NULL,0,NULL,NULL 64665,116427,690450,Fanatic,NULL,NULL,0,NULL,NULL 64666,69700,614395,NULL,NULL,NULL,0,NULL,NULL 64667,31001,706797,NULL,NULL,NULL,0,NULL,NULL 64668,244576,477793,Yearling,NULL,NULL,0,NULL,NULL 64669,12502,414726,Yearling,NULL,NULL,0,NULL,NULL 64670,1032500,717608,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 64671,2085911,596865,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 64672,2764464,279516,Good Answer Good Answer Popular Question Nice Question Great Question Nice Question Popular Question Nice Answer Enlightened Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Announcer Notable Question Nice Question Popular Question Nice Answer Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Yearling Caucus Notable Question Nice Answer Popular Question Great Answer Popular Question Popular Question Great Answer Popular Question Popular Question Popular Question Nice Answer Nice Question Announcer Popular Question Great Question Nice Answer Enlightened Nice Question Nice Question Popular Question Famous Question Announcer Notable Question Notable Question Famous Question Popular Question Notable Question Strunk & White Popular Question Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Notable Question Famous Question Announcer Announcer Great Answer Popular Question Popular Question Popular Question Great Answer Popular Question Popular Question Popular Question Necromancer Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 64673,3093339,910794,NULL,NULL,NULL,0,NULL,NULL 64674,47543,910794,NULL,NULL,NULL,0,NULL,NULL 64675,334989,448199,NULL,NULL,NULL,0,NULL,NULL 64676,222371,39322,Tumbleweed Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64677,600043,460940,NULL,NULL,NULL,0,NULL,NULL 64678,121518,1540030,Popular Question Announcer,NULL,NULL,0,NULL,NULL 64679,1548187,1129616,Popular Question,NULL,NULL,0,NULL,NULL 64680,84031,154560,Revival Notable Question Necromancer Nice Question Nice Answer Yearling Notable Question Yearling Famous Question Great Question Nice Answer Nice Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 64681,623877,305540,Popular Question,NULL,NULL,0,NULL,NULL 64682,602954,608328,NULL,NULL,NULL,0,NULL,NULL 64683,66684,103640,Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Good Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 64684,1507817,700732,NULL,NULL,NULL,0,NULL,NULL 64685,43047,1219208,Yearling,NULL,NULL,0,NULL,NULL 64686,3574284,542853,NULL,NULL,NULL,0,NULL,NULL 64687,222043,17466,Good Question Yearling Notable Question Custodian Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 64688,392061,396897,Nice Answer Yearling Popular Question Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64689,7164538,396897,Nice Answer Yearling Popular Question Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64690,1367357,235575,Popular Question Editor Excavator Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64691,457627,1539826,Necromancer Popular Question Popular Question Nice Answer Yearling Nice Answer Self-Learner Popular Question Notable Question Revival Notable Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 64692,48456,1255799,NULL,NULL,NULL,0,NULL,NULL 64693,2912415,498421,NULL,NULL,NULL,0,NULL,NULL 64694,20521,140999,NULL,NULL,NULL,0,NULL,NULL 64695,100937,1276879,Revival Autobiographer Supporter Editor Student Scholar Nice Answer,NULL,NULL,0,NULL,NULL 64696,41643,64565,Yearling Popular Question Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64697,19003,1546377,NULL,NULL,NULL,0,NULL,NULL 64698,146979,599844,NULL,NULL,NULL,0,NULL,NULL 64699,132575,768110,Nice Answer Enlightened Popular Question Nice Question Disciplined Nice Answer Popular Question Nice Question Popular Question Nice Question Yearling Popular Question Nice Answer Good Answer Guru Popular Question Nice Question arrays Pundit Nice Answer Popular Question php Necromancer Nice Answer Enlightened Nice Question Caucus Nice Answer Notable Question Popular Question Yearling Caucus Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Sportsmanship Census c++ Good Question Guru Good Answer Famous Question Great Answer Caucus Yearling Nice Answer Enlightened Electorate Nice Answer Necromancer Announcer,NULL,NULL,0,NULL,NULL 64700,410104,440197,Popular Question Critic,NULL,NULL,0,NULL,NULL 64701,44365,918995,NULL,NULL,NULL,0,NULL,NULL 64702,670130,949844,NULL,NULL,NULL,0,NULL,NULL 64703,154808,966973,Yearling Nice Answer Critic,NULL,NULL,0,NULL,NULL 64704,676515,68391,Custodian Yearling Good Question Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 64705,69829,233629,NULL,NULL,NULL,0,NULL,NULL 64706,69940,233629,NULL,NULL,NULL,0,NULL,NULL 64707,105207,282902,Yearling Custodian Guru Yearling symfony Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 64708,148106,1040718,Popular Question Popular Question Popular Question Popular Question Socratic Famous Question Custodian Custodian Custodian Popular Question Popular Question Proofreader Fanatic Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Notable Question Nice Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Caucus Constituent Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Famous Question Good Answer Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Caucus Constituent Popular Question Nice Answer Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Nice Question Guru Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Caucus Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Nice Answer Notable Question Yearling,NULL,NULL,1,URL common name matching Python python regex pI trying to match domain with its common name When look at the certificate see the common name is code example com code Possible domains could be ppre codewww example com match the leftmost label of example comexample com match the leftmost label of example comhello example com match for the leftmost label of example comfoo bar example com Not match for the leftmost label of Not match for the leftmost label of example comwww com Not match for the leftmost label of example com code prep example com ppI was trying to create the following regex ppre codeimport recommon name example com regex common name replace url foo bar example com if re match regex url print yes else print no code prepWhat wrong on my Regex,NULL 64709,177903,1126880,Notable Question Popular Question Yearling Famous Question Popular Question Nice Answer Nice Answer Nice Question Yearling Nice Question Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 64710,1371216,778067,Promoter Tumbleweed Student Informed,NULL,NULL,0,NULL,NULL 64711,6831,443303,NULL,NULL,NULL,0,NULL,NULL 64712,219013,285659,Yearling Popular Question Good Question Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 64713,219635,651007,NULL,NULL,NULL,0,NULL,NULL 64714,1351017,651007,NULL,NULL,NULL,0,NULL,NULL 64715,182248,634985,NULL,NULL,NULL,0,NULL,NULL 64716,321853,1165926,NULL,NULL,NULL,0,NULL,NULL 64717,564715,1490409,NULL,NULL,NULL,0,NULL,NULL 64718,158760,382877,Popular Question Autobiographer Nice Question Yearling Notable Question Informed Famous Question Popular Question,NULL,pCaleb function was the nearest thing to the reverse of String inspect was able to find however it contained two bugs pulli was not handled correctly lili retained the backslash li ulpI fixed the above bugs and this is the updated version ppre codeUNESCAPES gt x07 gt x08 gt x09 gt x0a gt x0b gt x0c gt x0d gt x1b gt x5c gt x22 gt x27 def unescape str Escape all the things str gsub UNESCAPES keys join da fA da fA if if then else UNESCAPES end elsif escape u0000 unicode hex pack elsif escape 0xff or xff pack H2 end end To test itwhile true line STDIN gets puts unescape line end code pre This is the best answer found so far Just tip instead of using hexadecimal the actual escaped chars can be used For example instead of x0a it can be think this is more clear,0,NULL,NULL 64719,9690,539774,NULL,NULL,NULL,0,NULL,NULL 64720,1284465,539774,NULL,NULL,NULL,0,NULL,NULL 64721,14152,917813,Yearling,NULL,NULL,0,NULL,NULL 64722,5880,421827,Popular Question Necromancer Nice Question Curious Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 64723,112949,576608,NULL,NULL,NULL,0,NULL,NULL 64724,45099,1365731,Tumbleweed,NULL,NULL,0,NULL,NULL 64725,465755,1426982,NULL,NULL,NULL,0,NULL,NULL 64726,63824,48611,Nice Question Popular Question Good Question Famous Question Popular Question Popular Question Yearling Taxonomist Necromancer Popular Question Nice Answer Yearling Famous Question Custodian Popular Question Nice Question Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 64727,329519,678018,Tumbleweed,NULL,NULL,0,NULL,NULL 64728,388513,1387139,NULL,NULL,NULL,0,NULL,NULL 64729,116412,279555,Supporter,NULL,NULL,0,NULL,NULL 64730,496281,1321617,NULL,NULL,NULL,0,NULL,NULL 64731,514768,957066,NULL,NULL,NULL,0,NULL,NULL 64732,7930487,1392876,Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 64733,156867,1392876,Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 64734,267842,597599,Yearling,NULL,NULL,0,NULL,NULL 64735,13077,332429,Yearling Nice Answer Custodian Yearling Good Answer Guru Caucus Scholar Excavator Student Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 64736,5661905,519736,NULL,NULL,NULL,0,NULL,NULL 64737,372967,19224,Popular Question Nice Question Guru Nice Answer Enlightened Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Notable Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 64738,1362766,1418114,NULL,NULL,NULL,0,NULL,NULL 64739,162874,906921,NULL,NULL,NULL,0,NULL,NULL 64740,860461,204435,Necromancer,NULL,NULL,0,NULL,NULL 64741,3004427,204435,Necromancer,NULL,NULL,0,NULL,NULL 64742,568463,504930,Census Informed Organizer Yearling Announcer Popular Question Suffrage Enthusiast Custodian Civic Duty Custodian Yearling Tenacious Necromancer Yearling Explainer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64743,568467,504930,Census Informed Organizer Yearling Announcer Popular Question Suffrage Enthusiast Custodian Civic Duty Custodian Yearling Tenacious Necromancer Yearling Explainer Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64744,70464,18741,Necromancer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 64745,228180,649302,NULL,NULL,NULL,0,NULL,NULL 64746,398949,850756,Necromancer Census Editor Census,NULL,NULL,0,NULL,NULL 64747,131590,917338,Popular Question Popular Question Civic Duty Yearling Famous Question Notable Question Popular Question Popular Question Enthusiast Popular Question Notable Question Notable Question Nice Question Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 64748,202745,959277,NULL,NULL,NULL,0,NULL,NULL 64749,158979,883401,NULL,NULL,NULL,0,NULL,NULL 64750,35123,467019,Nice Answer Enlightened Nice Answer Enlightened jquery Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Popular Question Yearling Good Answer Nice Answer Nice Answer Nice Answer Guru Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 64751,13142,749921,Yearling Favorite Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64752,238020,469422,Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 64753,71676,1051259,Nice Answer Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 64754,142054,583064,Necromancer Notable Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 64755,313339,1390457,Tumbleweed Notable Question Student,NULL,NULL,0,NULL,NULL 64756,124267,607772,NULL,NULL,NULL,0,NULL,NULL 64757,150857,801376,Necromancer Popular Question Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 64758,115981,868074,Autobiographer,NULL,NULL,0,NULL,NULL 64759,900712,1305611,Supporter Good Answer Critic Nice Question Yearling Census Caucus,NULL,NULL,0,NULL,NULL 64760,287610,1145431,Notable Question,NULL,NULL,0,NULL,NULL 64761,174122,775351,Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64762,2404545,775351,Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64763,8606,1119460,NULL,NULL,NULL,0,NULL,NULL 64764,7843406,1364519,Notable Question,NULL,NULL,0,NULL,NULL 64765,528820,1173755,Curious Yearling Tumbleweed Popular Question Custodian Popular Question Necromancer Popular Question Revival Civic Duty Yearling Necromancer Announcer Self-Learner Announcer Booster Notable Question Popular Question Caucus Necromancer Constituent Necromancer Popular Question Announcer Nice Answer Notable Question Custodian Popular Question Census Popular Question Yearling Popular Question java Popular Question Inquisitive Caucus Nice Answer Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,1,Scala and annotation java scala dependency injection pI know that the best way to deal with dependency injection in Scala is using tools that were built specifically for the language but working on project that must integrate some Scala and Java code ppThen am using Google Guice that implements specification emJSR 330 em Fortunatly found no problem during integration of Guice and Scala am using emconstructor injection em because have to deal with immutability ppMy question is why in Scala we have to use the notation code code in front of the constructor parameter Why the code code paranthesis It follows an example ppre codeclass MyClass val another AnotherClass Body of the class code pre Getting an RDD of Failure from an RDD Try without compilation warning scala apache spark try catch rdd pI have an codeRDD Try code and want to trasnfcodeRDD code that contains only the element of type codeFailure code which means all the element for which the method codeisFailure code returns codetrue code By now found the following solution ppre coderows filter row gt row isFailure map case Failure gt Do something code prep emWarning 11 36 match may not be exhaustive It would fail on the following input Success map em ppIs there any method to obtain the same result without incurring in the compilation warning ppThanks lot MongoDB Collection update initialize document with default values mongodb time series upsert pI am trying to deal with emtime series em using MongoDB The common solution adopted by community is to use subdocuments to store information at different level of granularity see href https www mongodb com blog post schema design for time series data in mongodb rel nofollow noreferrer Schema Design for Time Series Data in MongoDB ppFor example take look at the following document ppre code timestamp minute ISODate 2013 10 10T23 06 00 000Z type “memory used” values 999999 second 1000000 nth second 1500000 1th second 2000000 60th code prepThe document is indexed by minute information and contains subdocument which store more detailed information for each second ppSo far so good This kind of approach requires an optimization to work properly pblockquote pAnother optimization is preallocating all documents for the upcoming time period This never causes an existing document to grow or be moved on disk blockquotepTo implement the above optimization one could use the code setOnInsert code property on the codeupdate code method ppre codedb getCollection aCollection update timestamp minute ISODate 2013 10 10T23 06 00 000Z type “memory used” setOnInsert values inc values 30 upsert true code prepThe problem is that it is not possible to use the same field in the same update in two different operation The above update istruction generates the following error ppre codeCannot update values and values 30 at the same time code prepThis problem is tracked on this href https jira mongodb org browse SERVER 10711 rel nofollow noreferrer issue pp strongMy question is is there any workaround strong prefix that can use any batch that preallocates empty documents because can know the value of the indexed fields ema priori em in the above example the values of the field codetype code ppThanks in advance,NULL 64766,59230,1515187,Popular Question Popular Question Good Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 64767,389783,459543,Famous Question Announcer Civic Duty,NULL,NULL,0,NULL,NULL 64768,350773,973302,NULL,NULL,NULL,0,NULL,NULL 64769,88649,1218146,Nice Question Critic Popular Question Editor Popular Question Nice Answer Famous Question Popular Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 64770,237284,1365925,Famous Question,NULL,NULL,0,NULL,NULL 64771,1036433,1209359,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64772,395109,20409,Popular Question Nice Answer Notable Question Yearling Popular Question Good Question Favorite Question Yearling Good Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 64773,9720,859851,Enthusiast,NULL,NULL,0,NULL,NULL 64774,1017302,859851,Enthusiast,NULL,NULL,0,NULL,NULL 64775,109045,383455,Critic,NULL,NULL,0,NULL,NULL 64776,685518,875622,NULL,NULL,NULL,0,NULL,NULL 64777,621658,401309,Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Inquisitive,NULL,NULL,0,NULL,NULL 64778,3326531,1428635,NULL,NULL,NULL,0,NULL,NULL 64779,101508,16511,Guru Notable Question Notable Question Famous Question Nice Answer Nice Question Good Answer Famous Question Notable Question Great Question Famous Question Popular Question Popular Question Nice Answer Nice Answer Populist Nice Question Nice Answer css3 Nice Answer Nice Answer Nice Question Popular Question jquery Nice Answer Enlightened Notable Question Notable Question Guru Stellar Question Nice Question Popular Question Necromancer Yearling Notable Question Nice Question Favorite Question Nice Answer Notable Question Popular Question Popular Question Famous Question Good Answer Notable Question Great Answer Popular Question Famous Question html Good Answer Popular Question Famous Question Yearling Great Question Good Answer Famous Question Nice Question Good Question Popular Question Popular Question css Good Answer Nice Answer Nice Answer Enlightened Popular Question Popular Question Notable Question Nice Answer Nice Answer Enlightened Famous Question Notable Question Famous Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 64780,156386,188399,Notable Question,NULL,NULL,0,NULL,NULL 64781,13071,103843,Yearling Famous Question,NULL,NULL,0,NULL,NULL 64782,398378,103843,Yearling Famous Question,NULL,NULL,0,NULL,NULL 64783,114082,180416,Popular Question Notable Question Good Answer Popular Question Nice Question Popular Question Notable Question Notable Question Civic Duty Nice Question Popular Question Nice Answer Yearling Nice Answer Popular Question Notable Question Good Answer Popular Question Notable Question Famous Question Notable Question Popular Question Nice Question Famous Question Notable Question Yearling Custodian Revival Popular Question Good Question Notable Question Popular Question Popular Question Notable Question Necromancer Necromancer Notable Question Popular Question Popular Question Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64784,207436,72305,Autobiographer Yearling,NULL,NULL,0,NULL,NULL 64785,501378,153327,Yearling Nice Answer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 64786,104386,768813,NULL,NULL,NULL,0,NULL,NULL 64787,42503,113834,Nice Answer Popular Question Yearling Custodian Nice Answer symfony Nice Answer Enlightened Great Answer Yearling Informed Documentation User Good Answer Good Answer Popular Question Nice Answer Enlightened Great Answer Great Answer Yearling,NULL,pYes you can do this via something similar to the following ppre codeuse Symfony Component EventDispatcher EventDispatcher Symfony Component Security Core Authentication Token UsernamePasswordToken Symfony Component Security Http Event InteractiveLoginEvent public function registerAction if this gt get request gt getMethod POST Do any password setting here etc em gt persist user em gt flush Here public is the name of the firewall in your security yml token new UsernamePasswordToken user user gt getPassword public user gt getRoles For older versions of Symfony use security context here this gt get security token storage gt setToken token Fire the login event Logging the user in above the way we do it doesn do this automatically event new InteractiveLoginEvent request token this gt get event dispatcher gt dispatch security interactive login event maybe redirect out here code prepThe event firing at the end isn automatically done when you set token into the context whereas it would be normally when using eg login form or similar Hence the reason for including it here You may need to adjust the type of token used depending on your use case the codeUsernamePasswordToken code shown above is core token but you can use others if required pp strongEdit strong Adjusted the above code to explain the public parameter and also add in the roles of the user into the token creation based on Franco comment below thanks for that this was back in the days think ll add comment to that effect do you know what version this would have stopped working from haven done Symfony dev on anything past recently,0,NULL,NULL 64788,204848,147284,Editor,NULL,NULL,0,NULL,NULL 64789,161250,320485,Yearling Necromancer Revival Necromancer Nice Answer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 64790,497632,999140,NULL,NULL,NULL,0,NULL,NULL 64791,177280,249390,Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Famous Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 64792,47183,195775,NULL,NULL,NULL,0,NULL,NULL 64793,225913,229232,Nice Answer Enlightened Necromancer Guru windows Revival Revival Yearling Announcer Revival Revival Revival Nice Answer Revival Famous Question Necromancer Necromancer Yearling Custodian Necromancer Necromancer Necromancer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Necromancer Good Question,NULL,NULL,0,NULL,NULL 64794,335762,513922,NULL,NULL,NULL,0,NULL,NULL 64795,22964,807258,NULL,NULL,NULL,0,NULL,NULL 64796,74290,93797,NULL,NULL,NULL,0,NULL,NULL 64797,542571,424197,NULL,NULL,NULL,0,NULL,NULL 64798,201828,49630,Announcer Announcer Good Answer Guru Necromancer Yearling Nice Answer Enlightened Revival scala Custodian Custodian Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 64799,1520355,1311075,NULL,NULL,NULL,0,NULL,NULL 64800,490082,448905,NULL,NULL,NULL,0,NULL,NULL 64801,10198047,512694,NULL,NULL,NULL,0,NULL,NULL 64802,9454,174030,Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 64803,1081541,910931,NULL,NULL,NULL,0,NULL,NULL 64804,156361,494737,NULL,NULL,NULL,0,NULL,NULL 64805,214766,216929,NULL,NULL,NULL,0,NULL,NULL 64806,1520882,1301825,NULL,NULL,NULL,0,NULL,NULL 64807,334457,1504383,Popular Question,NULL,NULL,0,NULL,NULL 64808,274200,1430005,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 64809,83443,428469,Yearling Custodian Favorite Question Peer Pressure Yearling Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64810,53459,127484,Popular Question Teacher Revival,NULL,NULL,0,NULL,NULL 64811,785279,621518,NULL,NULL,NULL,0,NULL,NULL 64812,7103183,621518,NULL,NULL,NULL,0,NULL,NULL 64813,248169,444244,Civic Duty Popular Question Documentation Pioneer Yearling Excavator Yearling Custodian Revival Announcer Yearling Announcer Announcer Necromancer Self-Learner Popular Question Documentation User Yearling Popular Question Necromancer Nice Question Announcer Yearling Nice Answer,NULL,pYou can do this with reflection you will have to maintain it when Microsoft make changes but it does work just tested it ppre codepublic class SqlExceptionCreator private static Construct lt gt params object var ctors typeof GetConstructors BindingFlags NonPublic BindingFlags Instance return ctors First ctor gt ctor GetParameters Length Length Invoke internal static SqlException NewSqlException int number SqlErrorCollection collection Construct lt SqlErrorCollection gt SqlError error Construct lt SqlError gt number byte byte server name error message proc 100 typeof SqlErrorCollection GetMethod Add BindingFlags NonPublic BindingFlags Instance Invoke collection new object error return typeof SqlException GetMethod CreateException BindingFlags NonPublic BindingFlags Static null CallingConventions ExplicitThis new typeof SqlErrorCollection typeof string new ParameterModifier Invoke null new object collection as SqlException code prepThis also allows you to control the Number of the SqlException which can be important Can this be made to work with dotnet core GetMethod no longer takes parameters https gist github com Boggin 7f5df031ec34d8fa2145739705031340,0,NULL,NULL 64814,618063,486840,Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 64815,185779,262689,NULL,NULL,NULL,0,NULL,NULL 64816,720957,600783,NULL,NULL,NULL,0,NULL,NULL 64817,1339329,555368,NULL,NULL,NULL,0,NULL,NULL 64818,4732722,269477,Popular Question Nice Answer Yearling Popular Question Good Answer,NULL,pFrom Terminal polli pAdd Fish to code etc shells code which will require an administrative password ppre codesudo echo usr local bin fish gt gt etc shells code pre lili pMake Fish your default shell with codechsh code ppre codechsh usr local bin fish code pre li olhrpFrom System Preferences polli pUser and Groups ctrl click on Current User Advanced Options lili pChange Login shell to code usr local bin fish code pp img src https stack imgur com I5jTk png alt login shell lili pPress OK log out and in again li ol Had to make slight tweak to step sudo sh echo usr local bin fish etc shells,0,NULL,NULL 64819,4275290,39709,Nice Question Good Answer Famous Question Nice Question Notable Question Popular Question Notable Question Marshal Nice Question Popular Question Popular Question Favorite Question Nice Answer Enlightened Guru Famous Question Popular Question Nice Answer Nice Answer Notable Question Nice Question Famous Question Good Question Popular Question Good Question Favorite Question Famous Question Famous Question Good Question Great Question Caucus Good Answer Yearling Notable Question Good Question Popular Question Good Answer Famous Question Nice Answer Famous Question Famous Question Favorite Question Famous Question Guru Nice Answer Nice Answer Nice Answer Popular Question Nice Question Caucus Great Question Great Question Nice Question Popular Question Famous Question Documentation User Nice Question Notable Question Good Answer Good Question Popular Question Yearling Great Question Necromancer Famous Question Caucus Popular Question Popular Question Good Question Notable Question Nice Question Popular Question Fanatic Famous Question Notable Question Popular Question Famous Question Notable Question Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 64820,44486,469000,NULL,NULL,NULL,0,NULL,NULL 64821,205308,469000,NULL,NULL,NULL,0,NULL,NULL 64822,245550,1470975,NULL,NULL,NULL,0,NULL,NULL 64823,77303,583022,NULL,NULL,NULL,0,NULL,NULL 64824,85786,559845,Yearling Caucus Yearling Famous Question Famous Question Documentation User Yearling Caucus,NULL,NULL,0,NULL,NULL 64825,137244,142229,Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 64826,20585,981284,Nice Question Great Answer Nice Answer Enlightened Popular Question Yearling Popular Question Guru Good Answer Popular Question Nice Question Caucus Constituent Good Question Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 64827,274217,1188453,Nice Answer Necromancer Yearling Commentator Nice Answer Enthusiast Yearling Promoter Good Answer Nice Question Yearling Custodian Custodian Custodian Critic Custodian Census Yearling Popular Question Caucus Good Answer Good Answer,NULL,NULL,0,NULL,NULL 64828,212282,1166929,Curious Popular Question Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 64829,328767,436013,NULL,NULL,NULL,0,NULL,NULL 64830,638532,791891,NULL,NULL,NULL,0,NULL,NULL 64831,119537,696195,NULL,NULL,NULL,0,NULL,NULL 64832,8045,1183222,NULL,NULL,NULL,0,NULL,NULL 64833,14902,310518,Popular Question,NULL,NULL,0,NULL,NULL 64834,1517970,690586,NULL,NULL,NULL,0,NULL,NULL 64835,67707,265232,Nice Answer Yearling Nice Question Guru node.js Yearling Custodian Popular Question Nice Answer Enlightened javascript Yearling Nice Answer Revival Popular Question,NULL,NULL,0,NULL,NULL 64836,4829,848695,NULL,NULL,NULL,0,NULL,NULL 64837,3583,9251,Nice Answer Yearling Good Answer Yearling c# Popular Question Yearling,NULL,NULL,0,NULL,NULL 64838,1894464,302732,NULL,NULL,NULL,0,NULL,NULL 64839,164153,232188,Famous Question Nice Question Caucus,NULL,NULL,0,NULL,NULL 64840,1559510,9539,Popular Question Good Answer Custodian Yearling Necromancer Good Answer Guru Yearling Popular Question Necromancer Great Answer Nice Answer Great Answer Yearling .net,NULL,NULL,1,NULL,Javascript Not Constructor Exception while creating objects javascript object constructor typeerror pI am defining an object like this ppre codefunction Project Attributes ProjectWidth ProjectHeight this ProjectHeight ProjectHeight this ProjectWidth ProjectWidth this ProjectScale this GetProjectScale this Attributes Attributes this currentLayout this CreateLayoutArray function code prepI then try to create and instance like this ppre codevar newProj new Project code prepBut this execption is thrown ppre codeProject is not constructor code prepWhat could be wrong googled around lot but still can figure out what am doing wrong pFor me it was the differences between codeimport code and coderequire code on ES6 ppE ppre code processor jsclass Processor export default Processor index jsconst Processor require processor const processor new Processor fails with the errorimport Processor from processor const processor new Processor succeeds code pre 64841,285047,920821,Announcer Yearling Necromancer Necromancer Revival,NULL,NULL,0,NULL,NULL 64842,292800,642149,NULL,NULL,NULL,0,NULL,NULL 64843,1467922,606338,NULL,NULL,NULL,0,NULL,NULL 64844,55460,4596,Notable Question Nice Answer Guru Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Great Answer Good Question Yearling Nice Answer Caucus Guru Constituent Good Answer Favorite Question Custodian Custodian Good Answer Good Answer Nice Answer Reviewer Guru Caucus Nice Answer Enlightened Constituent Yearling Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Guru Custodian Great Answer Strunk & White Good Answer Informed Yearling Nice Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 64845,602314,1511254,NULL,NULL,NULL,0,NULL,NULL 64846,7987,147390,Nice Question Notable Question ruby-on-rails Necromancer Yearling Notable Question Good Question Not a Robot Popular Question Notable Question Famous Question Popular Question Yearling Notable Question Good Answer Popular Question Popular Question Notable Question Nice Answer Notable Question Notable Question Announcer Stellar Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 64847,571063,381710,NULL,NULL,NULL,0,NULL,NULL 64848,183013,1105024,NULL,NULL,NULL,0,NULL,NULL 64849,567021,521792,NULL,NULL,NULL,0,NULL,NULL 64850,1249174,1003433,Caucus Yearling Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 64851,358070,25779,Yearling Popular Question Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 64852,30612,434439,Good Question Yearling,NULL,NULL,0,NULL,NULL 64853,584732,261281,NULL,NULL,NULL,0,NULL,NULL 64854,185340,592490,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64855,427626,174856,NULL,NULL,NULL,0,NULL,NULL 64856,376764,594642,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64857,134178,99542,Notable Question Popular Question Famous Question Notable Question Nice Question Yearling Notable Question Popular Question Custodian Popular Question Excavator Popular Question Nice Answer Popular Question Notable Question Yearling Famous Question Necromancer Citizen Patrol Great Question Notable Question Custodian Great Question Good Question Popular Question Caucus Custodian Yearling Famous Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 64858,4611058,99542,Notable Question Popular Question Famous Question Notable Question Nice Question Yearling Notable Question Popular Question Custodian Popular Question Excavator Popular Question Nice Answer Popular Question Notable Question Yearling Famous Question Necromancer Citizen Patrol Great Question Notable Question Custodian Great Question Good Question Popular Question Caucus Custodian Yearling Famous Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 64859,120268,1542382,NULL,NULL,NULL,0,NULL,NULL 64860,106022,631771,NULL,NULL,NULL,0,NULL,NULL 64861,68681,70746,Notable Question Yearling Popular Question Good Answer Yearling Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 64862,135622,346336,Nice Answer Enlightened Yearling Nice Answer Custodian Custodian Custodian Custodian Nice Answer Yearling semantic-web Revival Yearling,NULL,NULL,0,NULL,NULL 64863,156144,110010,Revival Popular Question Yearling Nice Answer Necromancer Notable Question Popular Question Necromancer Yearling Census Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 64864,245687,583721,Popular Question Yearling Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64865,2312,104959,Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 64866,9709,1263757,NULL,NULL,NULL,0,NULL,NULL 64867,1193019,724205,Popular Question,NULL,NULL,0,NULL,NULL 64868,236633,456366,Nice Answer Necromancer Nice Question Yearling Excavator Caucus Nice Answer Popular Question Nice Answer Great Answer Yearling Nice Answer Good Answer Nice Answer Enlightened Revival Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 64869,585851,85197,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 64870,63537,142848,Nice Answer Yearling Famous Question Notable Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64871,921914,234983,NULL,NULL,NULL,0,NULL,NULL 64872,48110,248997,NULL,NULL,NULL,0,NULL,NULL 64873,471178,257375,NULL,NULL,NULL,0,NULL,NULL 64874,153526,1081546,NULL,NULL,NULL,0,NULL,NULL 64875,1494,300278,Critic Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64876,31418,261533,NULL,NULL,NULL,0,NULL,NULL 64877,24121,333911,Notable Question Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 64878,497585,398879,NULL,NULL,NULL,0,NULL,NULL 64879,5920177,398879,NULL,NULL,NULL,0,NULL,NULL 64880,187876,216508,NULL,NULL,NULL,0,NULL,NULL 64881,321583,130886,Guru Notable Question Notable Question Yearling Nice Question Revival Guru Yearling Necromancer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 64882,1826898,635471,Popular Question Teacher Revival Popular Question Critic Notable Question Nice Question Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 64883,451062,635471,Popular Question Teacher Revival Popular Question Critic Notable Question Nice Question Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 64884,444633,1070069,Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 64885,867828,204335,NULL,NULL,NULL,0,NULL,NULL 64886,44724,173619,NULL,NULL,NULL,0,NULL,NULL 64887,1507018,346098,Self-Learner Scholar Yearling Popular Question Nice Answer Popular Question Nice Answer Nice Question Notable Question Good Answer Yearling Notable Question Popular Question Famous Question Good Question Documentation User Notable Question Nice Answer Custodian Necromancer Great Answer Yearling Curious Custodian,NULL,NULL,1,Swift how to use PREPROCESSOR Flags like if DEBUG to implement API keys swift xcode macros preprocessor pIn codeObjective code it was sometimes useful to use static string constants to define alternate API keys for example to differentiate between RELEASE and DEBUG keys for analytics packages like MixPanel Flurry or Crashlytics ppre code if DEBUGstatic NSString const API KEY KEY elsestatic NSString const API KEY KEY endif code prepand then ppre code Analytics startSession API KEY code prepHow does this translate to Swift since the Swift compiler no longer uses preprocessor,NULL 64888,139221,287444,NULL,NULL,NULL,0,NULL,NULL 64889,567986,3603,Guru Revival Notable Question Sportsmanship iis Taxonomist Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Popular Question Notable Question Good Answer Popular Question Popular Question Guru Great Answer Nice Answer Famous Question Yearling Nice Answer Enlightened Good Answer Good Answer Popular Question Popular Question Notable Question Good Answer Nice Answer Enlightened Nice Answer Necromancer Revival Nice Answer Nice Answer Good Answer Good Answer msdeploy Nice Question Caucus Nice Answer Enlightened Necromancer Yearling Custodian Revival system.reactive Popular Question Populist Guru Nice Question Necromancer Nice Answer Enlightened Great Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Yearling Revival Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 64890,665638,1480576,NULL,NULL,NULL,0,NULL,NULL 64891,56053,320050,Popular Question Revival,NULL,NULL,0,NULL,NULL 64892,135488,43356,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64893,594868,799964,NULL,NULL,NULL,0,NULL,NULL 64894,270111,1034667,Popular Question,NULL,NULL,0,NULL,NULL 64895,138270,536275,Popular Question Notable Question Notable Question Revival Commentator Yearling Citizen Patrol Revival,NULL,NULL,0,NULL,NULL 64896,255951,142293,Yearling Famous Question,NULL,NULL,0,NULL,NULL 64897,437366,270901,Yearling Nice Question Good Answer Necromancer Notable Question Nice Answer Announcer Yearling Revival Yearling Nice Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 64898,4404,919436,Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 64899,263250,147754,NULL,NULL,NULL,0,NULL,NULL 64900,158934,3410,Yearling Nice Answer Good Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 64901,448550,888448,NULL,NULL,NULL,0,NULL,NULL 64902,526188,887678,Popular Question,NULL,NULL,0,NULL,NULL 64903,1570762,1023852,NULL,NULL,NULL,0,NULL,NULL 64904,460030,151153,Good Answer Popular Question Popular Question Notable Question Suffrage Vox Populi Popular Question Famous Question Documentation User Custodian Yearling Autobiographer Tenacious Notable Question Yearling,NULL,NULL,0,NULL,NULL 64905,44070,416068,Yearling Famous Question Nice Answer Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 64906,523257,684343,Supporter,NULL,NULL,0,NULL,NULL 64907,88691,444134,Popular Question Good Answer Yearling Nice Answer Enlightened Notable Question Popular Question Popular Question Guru Yearling Census Yearling,NULL,NULL,0,NULL,NULL 64908,367727,1129889,Yearling Revival,NULL,NULL,0,NULL,NULL 64909,111600,200609,Nice Answer Enlightened Guru Guru Yearling Nice Answer Populist Good Answer Nice Answer Yearling Good Answer Populist Census Nice Answer Famous Question Announcer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 64910,9178,477347,Notable Question,NULL,NULL,0,NULL,NULL 64911,341880,1525109,Student Informed Explainer Enthusiast Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 64912,435985,654445,Notable Question Notable Question Popular Question Notable Question Notable Question Caucus Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 64913,709296,910157,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64914,387269,1268154,Caucus,NULL,NULL,0,NULL,NULL 64915,17427,155486,NULL,NULL,NULL,0,NULL,NULL 64916,97913,74496,Guru Yearling Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Nice Question Popular Question Good Question Curious Notable Question Great Answer Nice Answer Nice Answer Good Answer Yearling Necromancer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 64917,1136133,280277,Yearling,NULL,NULL,0,NULL,NULL 64918,29941,1098800,Nice Answer Yearling Popular Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 64919,46827,99795,Yearling Notable Question Yearling Yearling java,NULL,NULL,0,NULL,NULL 64920,84156,274350,Necromancer Yearling Nice Answer Good Answer Announcer Custodian Announcer Guru Popular Question Caucus Nice Answer Famous Question Announcer Yearling Good Answer Civic Duty Notable Question Caucus Constituent Documentation User Good Answer Custodian Tumbleweed Nice Question Yearling Caucus Guru Nice Question Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 64921,215550,780766,NULL,NULL,NULL,0,NULL,NULL 64922,1028534,692007,NULL,NULL,NULL,0,NULL,NULL 64923,1378123,1094092,Yearling Custodian Nice Question Notable Question Revival Famous Question Necromancer Famous Question Populist Notable Question Custodian Yearling Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 64924,2507,835428,Good Answer Announcer Yearling Yearling Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 64925,7530216,323157,NULL,NULL,NULL,0,NULL,NULL 64926,330657,894266,NULL,NULL,NULL,0,NULL,NULL 64927,90808,313588,Necromancer Yearling,NULL,NULL,0,NULL,NULL 64928,315142,476310,Famous Question Yearling Great Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 64929,277176,638513,Nice Answer Critic Yearling Caucus Caucus Scholar Yearling Caucus,NULL,NULL,0,NULL,NULL 64930,517509,122610,Yearling Populist Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 64931,40245,813029,NULL,NULL,NULL,0,NULL,NULL 64932,394824,920054,Supporter Editor Yearling Commentator,NULL,NULL,0,NULL,NULL 64933,414195,991548,Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 64934,1061416,1287029,NULL,NULL,NULL,0,NULL,NULL 64935,298033,974866,Editor Supporter Notable Question,NULL,NULL,0,NULL,NULL 64936,319779,144776,Good Question Yearling Notable Question Notable Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 64937,6462,600404,NULL,NULL,NULL,0,NULL,NULL 64938,507429,699984,NULL,NULL,NULL,0,NULL,NULL 64939,2808458,978967,NULL,NULL,NULL,0,NULL,NULL 64940,17100,198808,Yearling Yearling,NULL,NULL,0,NULL,NULL 64941,151540,113855,Notable Question Yearling,NULL,NULL,0,NULL,NULL 64942,816139,924591,NULL,NULL,NULL,0,NULL,NULL 64943,20656,1045663,Popular Question,NULL,NULL,0,NULL,NULL 64944,201533,1235536,NULL,NULL,NULL,0,NULL,NULL 64945,457328,101665,Yearling Nice Answer Famous Question Notable Question,NULL,NULL,0,NULL,NULL 64946,375100,362962,Informed Commentator Editor Critic Enthusiast Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 64947,1641,1150534,Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question Nice Question Notable Question Notable Question Famous Question Notable Question Famous Question Famous Question Famous Question Popular Question Favorite Question Popular Question Notable Question Nice Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Good Question Popular Question Popular Question Custodian Popular Question Nice Question Notable Question Notable Question Popular Question Excavator Popular Question Promoter Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Revival Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Yearling Famous Question Popular Question Socratic Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 64948,105394,249744,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 64949,721808,275749,NULL,NULL,NULL,0,NULL,NULL 64950,4247022,875701,Revival Yearling Caucus Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 64951,451597,538287,NULL,NULL,NULL,0,NULL,NULL 64952,1226328,631834,Nice Answer Announcer Yearling Critic,NULL,NULL,0,NULL,NULL 64953,823683,1511858,NULL,NULL,NULL,0,NULL,NULL 64954,40342,766973,NULL,NULL,NULL,0,NULL,NULL 64955,199791,329554,Notable Question,NULL,NULL,0,NULL,NULL 64956,1140974,1185878,NULL,NULL,NULL,0,NULL,NULL 64957,22377,667834,Revival Necromancer Announcer Necromancer Popular Question Necromancer Yearling Necromancer Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Yearling Nice Answer Census Yearling Announcer Notable Question,NULL,NULL,0,NULL,NULL 64958,10064,477942,Popular Question Good Answer Popular Question Favorite Question Yearling Popular Question Nice Answer Popular Question Necromancer Popular Question Popular Question Notable Question Yearling Custodian Nice Question Yearling,NULL,NULL,0,NULL,NULL 64959,205313,1064917,Yearling Self-Learner Custodian Custodian Nice Question Popular Question Yearling Popular Question Civic Duty Notable Question Revival Yearling Nice Question Inquisitive Citizen Patrol Popular Question Popular Question Necromancer Caucus Yearling Good Question Nice Answer Notable Question Nice Question Popular Question Notable Question Popular Question Caucus Constituent Famous Question Revival Nice Question Necromancer Excavator Yearling Popular Question Popular Question Revival Census Notable Question Popular Question Popular Question Good Answer Good Question Custodian Notable Question Nice Question Popular Question Nice Answer Famous Question Popular Question Notable Question Nice Question Good Question Notable Question Yearling,NULL,Does Ruby have Pair data type ruby pSometimes need to deal with key value data ppI dislike using Arrays because they are not constrained in size it too easy to accidentally add more than items plus you end up needing to validate size later on Furthermore indexes of code0 code and code1 code become magic numbers and do poor job of conveying meaning When say really mean codehead code ppHashes are also not appropriate as it is possible to accidentally add an extra entry ppI wrote the following class to solve the problem ppre codeclass Pair attr accessor head tail def initialize endend code prepIt works great and solves the problem but am curious to know does the Ruby standard library comes with such class already No although you could probably do that with my implementation if you wanted to,1,Does Ruby have Pair data type ruby pSometimes need to deal with key value data ppI dislike using Arrays because they are not constrained in size it too easy to accidentally add more than items plus you end up needing to validate size later on Furthermore indexes of code0 code and code1 code become magic numbers and do poor job of conveying meaning When say really mean codehead code ppHashes are also not appropriate as it is possible to accidentally add an extra entry ppI wrote the following class to solve the problem ppre codeclass Pair attr accessor head tail def initialize endend code prepIt works great and solves the problem but am curious to know does the Ruby standard library comes with such class already,NULL 64960,630675,767438,NULL,NULL,NULL,0,NULL,NULL 64961,1042692,444605,NULL,NULL,NULL,0,NULL,NULL 64962,280126,978451,NULL,NULL,NULL,0,NULL,NULL 64963,340703,822653,Editor Yearling,NULL,NULL,0,NULL,NULL 64964,47049,195864,NULL,NULL,NULL,0,NULL,NULL 64965,1434755,195864,NULL,NULL,NULL,0,NULL,NULL 64966,591718,820201,NULL,NULL,NULL,0,NULL,NULL 64967,9476,143375,Commentator,NULL,NULL,0,NULL,NULL 64968,385862,263803,Popular Question Popular Question Popular Question Census Nice Question Yearling Citizen Patrol Custodian Custodian Census Popular Question Caucus Custodian,NULL,NULL,0,NULL,NULL 64969,71994,4367,Yearling Popular Question Great Answer Caucus Constituent Caucus Yearling Custodian Custodian Custodian Census Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 64970,112906,1172751,NULL,NULL,NULL,0,NULL,NULL 64971,10401460,1172751,NULL,NULL,NULL,0,NULL,NULL 64972,36143,1233468,NULL,NULL,NULL,0,NULL,NULL 64973,140948,918845,NULL,NULL,NULL,0,NULL,NULL 64974,889547,1009008,NULL,NULL,NULL,0,NULL,NULL 64975,22886,974738,NULL,NULL,NULL,0,NULL,NULL 64976,1206654,877128,NULL,NULL,NULL,0,NULL,NULL 64977,128150,892959,NULL,NULL,NULL,0,NULL,NULL 64978,1367877,194412,NULL,NULL,NULL,0,NULL,NULL 64979,257994,342262,NULL,NULL,NULL,0,NULL,NULL 64980,17499,1103617,Custodian Good Answer Good Answer Revival Caucus Yearling Guru Caucus Constituent Promoter Custodian Student Yearling Census Caucus Constituent,NULL,NULL,0,NULL,NULL 64981,105149,843335,NULL,NULL,NULL,0,NULL,NULL 64982,906592,288354,NULL,NULL,NULL,0,NULL,NULL 64983,1214255,1506754,Necromancer,NULL,NULL,0,NULL,NULL 64984,432254,210874,Popular Question Curious Revival Yearling,NULL,NULL,0,NULL,NULL 64985,338276,210874,Popular Question Curious Revival Yearling,NULL,NULL,0,NULL,NULL 64986,452286,975103,NULL,NULL,NULL,0,NULL,NULL 64987,4049,535016,NULL,NULL,NULL,0,NULL,NULL 64988,1219287,1331664,NULL,NULL,NULL,0,NULL,NULL 64989,253477,221521,NULL,NULL,NULL,0,NULL,NULL 64990,2457774,1180958,NULL,NULL,NULL,0,NULL,NULL 64991,539935,1191011,NULL,NULL,NULL,0,NULL,NULL 64992,184705,415932,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 64993,14500,553770,Popular Question Notable Question Famous Question Nice Question Nice Question Notable Question Popular Question Yearling Nice Question Announcer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 64994,76905,266769,NULL,NULL,NULL,0,NULL,NULL 64995,168989,249224,Notable Question Excavator Critic,NULL,NULL,0,NULL,NULL 64996,476166,438136,Notable Question Teacher,NULL,NULL,0,NULL,NULL 64997,40525,931265,Yearling Necromancer Yearling Caucus Constituent Caucus Constituent Civic Duty Custodian Caucus Constituent Revival Necromancer,NULL,pThere are many good answers here already but wanted to share more complete example that both pullidoesn assume codeuname code exists on Windows lilialso detects the processor li ulpThe CCFLAGS defined here aren necessarily recommended or ideal they re just what the project to which was adding OS CPU auto detection happened to be using ppre codeifeq OS Windows NT CCFLAGS WIN32 ifeq PROCESSOR ARCHITEW6432 AMD64 CCFLAGS AMD64 else ifeq PROCESSOR ARCHITECTURE AMD64 CCFLAGS AMD64 endif ifeq PROCESSOR ARCHITECTURE x86 CCFLAGS IA32 endif endifelse UNAME shell uname ifeq UNAME Linux CCFLAGS LINUX endif ifeq UNAME Darwin CCFLAGS OSX endif UNAME shell uname ifeq UNAME x86 64 CCFLAGS AMD64 endif ifneq filter 86 UNAME CCFLAGS IA32 endif ifneq filter arm UNAME CCFLAGS ARM endifendif code pre uname on Cygwin returns with an OS version number uname returns Cygwin and works uname on Linux is GNU Linux and non standard So am just using for cygwin test,0,NULL,NULL 64998,853917,794291,Good Answer Autobiographer Yearling,NULL,NULL,0,NULL,NULL 64999,1472165,150568,Revival,NULL,NULL,0,NULL,NULL 65000,310972,664449,Yearling Good Answer Great Answer Announcer Guru Nice Answer Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 65001,251792,144230,Yearling,NULL,NULL,0,NULL,NULL 65002,594408,170677,Popular Question,NULL,NULL,0,NULL,NULL 65003,380833,884848,scala Nice Answer Enlightened Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Necromancer Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling Good Answer Nice Question Popular Question Necromancer Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 65004,1692737,1092820,Teacher Supporter Editor Citizen Patrol Critic Yearling Yearling Organizer Custodian Custodian Commentator Custodian Yearling Suffrage Yearling Tenacious Yearling Explainer Reviewer Yearling Quorum Unsung Hero Enthusiast Reviewer Civic Duty Excavator Custodian Custodian Custodian Deputy Vox Populi Proofreader Reviewer,NULL,NULL,0,NULL,NULL 65005,8207,133052,Popular Question,NULL,NULL,0,NULL,NULL 65006,89955,173074,Notable Question Yearling Populist Yearling Yearling,NULL,NULL,0,NULL,NULL 65007,1164986,1173224,NULL,NULL,NULL,0,NULL,NULL 65008,173437,1464041,NULL,NULL,NULL,0,NULL,NULL 65009,348569,362800,Critic,NULL,NULL,0,NULL,NULL 65010,96863,1270925,Scholar Editor,NULL,NULL,0,NULL,NULL 65011,2350574,1179073,Nice Answer Editor Yearling Critic Good Answer,NULL,NULL,0,NULL,NULL 65012,396925,620638,Yearling Popular Question Notable Question Popular Question Yearling Famous Question Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 65013,335101,157830,c# Yearling Popular Question Yearling Custodian Custodian Custodian Benefactor Yearling,NULL,NULL,0,NULL,NULL 65014,12031,1106202,NULL,NULL,NULL,0,NULL,NULL 65015,106364,796976,NULL,NULL,NULL,0,NULL,NULL 65016,474033,1366000,Informed Autobiographer,NULL,NULL,0,NULL,NULL 65017,543154,602463,NULL,NULL,NULL,0,NULL,NULL 65018,903386,965475,NULL,NULL,NULL,0,NULL,NULL 65019,222282,876908,NULL,NULL,NULL,0,NULL,NULL 65020,382001,1528187,NULL,NULL,NULL,0,NULL,NULL 65021,401701,264799,NULL,NULL,NULL,0,NULL,NULL 65022,13583,410926,Yearling Nice Answer,NULL,,0,, 65023,19346,653,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 65024,26323,490468,NULL,NULL,NULL,0,NULL,NULL 65025,263607,252079,Teacher,NULL,NULL,0,NULL,NULL 65026,125075,220408,Notable Question,NULL,NULL,0,NULL,NULL 65027,978455,266148,Curious Citizen Patrol Caucus Yearling Necromancer Good Question Popular Question Nice Answer Enlightened Yearling Tumbleweed Famous Question,NULL,pTo compare the current branch against codemaster code ppre code git diff name status master code prepTo compare any pair of branches ppre code git diff name status firstbranch yourBranchName code prepThat should do what you need if understand you correctly You can actually do better than that if your working directory is the compared branch git diff name status master,0,NULL,NULL 65028,36200,330922,NULL,NULL,NULL,0,NULL,NULL 65029,122625,576404,NULL,NULL,NULL,0,NULL,NULL 65030,749677,1472691,Curious Popular Question Notable Question Notable Question Critic Custodian Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65031,1331739,718746,NULL,NULL,NULL,0,NULL,NULL 65032,343786,588795,Notable Question Famous Question Good Answer Popular Question Yearling Benefactor Caucus Constituent Popular Question Caucus Constituent Notable Question Yearling Notable Question Popular Question Custodian Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65033,672232,907566,NULL,NULL,NULL,0,NULL,NULL 65034,156004,201058,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 65035,539479,918507,Nice Question Necromancer Necromancer Nice Answer Nice Answer Populist Nice Answer Enlightened Yearling Nice Answer Yearling Popular Question Custodian Civic Duty Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 65036,631412,251212,NULL,NULL,NULL,0,NULL,NULL 65037,267984,1221467,Notable Question,NULL,NULL,0,NULL,NULL 65038,24157,678437,Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65039,269974,1234193,NULL,NULL,NULL,0,NULL,NULL 65040,233298,250578,Yearling Good Answer Nice Question Necromancer Good Question Nice Question Nice Question Popular Question Caucus Yearling Popular Question Notable Question Famous Question Yearling Nice Answer Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65041,764066,994840,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65042,1430427,1478394,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 65043,1138449,121,Famous Question Yearling Stellar Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 65044,881736,462181,NULL,NULL,NULL,0,NULL,NULL 65045,103222,101,Stellar Question Yearling Custodian Nice Answer Yearling Nice Answer Guru Announcer Yearling,NULL,NULL,0,NULL,NULL 65046,455266,1236051,Popular Question Curious Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65047,885884,443935,Teacher,NULL,NULL,0,NULL,NULL 65048,785325,132935,Yearling Good Question,NULL,NULL,0,NULL,NULL 65049,433041,1481282,NULL,NULL,NULL,0,NULL,NULL 65050,433763,550399,NULL,NULL,NULL,0,NULL,NULL 65051,5621505,1131414,NULL,NULL,NULL,0,NULL,NULL 65052,682925,1131414,NULL,NULL,NULL,0,NULL,NULL 65053,281332,152295,Popular Question Commentator,NULL,NULL,0,NULL,NULL 65054,1151171,148337,Nice Question Scholar Informed Yearling Critic Editor Commentator Autobiographer Popular Question Documentation User Necromancer Caucus Custodian,NULL,NULL,0,NULL,NULL 65055,96333,789805,NULL,NULL,NULL,0,NULL,NULL 65056,50755,293731,Nice Answer Necromancer Notable Question Caucus Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 65057,10343909,1315076,NULL,NULL,NULL,0,NULL,NULL 65058,89861,182964,Teacher,NULL,NULL,0,NULL,NULL 65059,173282,1236015,NULL,NULL,NULL,0,NULL,NULL 65060,1506354,1135037,NULL,NULL,NULL,0,NULL,NULL 65061,169131,783994,Famous Question Yearling Notable Question Custodian,NULL,NULL,0,NULL,NULL 65062,227468,947503,NULL,NULL,NULL,0,NULL,NULL 65063,20333,1104387,Popular Question Nice Question Revival Nice Answer,NULL,NULL,0,NULL,NULL 65064,574680,100408,Yearling Popular Question,NULL,NULL,0,NULL,NULL 65065,824474,475726,Enlightened Yearling Famous Question Popular Question Yearling Nice Answer Enlightened Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 65066,1512148,1414449,NULL,NULL,NULL,0,NULL,NULL 65067,268772,871513,Popular Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 65068,6385137,87248,NULL,NULL,NULL,0,NULL,NULL 65069,143041,429086,Yearling Notable Question Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 65070,369422,782031,Good Answer Yearling Caucus Constituent Yearling Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 65071,485956,868479,Popular Question Popular Question Yearling Popular Question Yearling Notable Question Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 65072,248605,192940,Notable Question Nice Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 65073,1515972,970017,NULL,NULL,NULL,0,NULL,NULL 65074,469320,1102193,NULL,NULL,NULL,0,NULL,NULL 65075,267123,498916,Supporter Tumbleweed Custodian Popular Question Curious Teacher Self-Learner,NULL,NULL,0,NULL,NULL 65076,172078,829305,Necromancer Yearling Necromancer Civic Duty Nice Answer Notable Question Announcer Necromancer Yearling Necromancer Necromancer,NULL,How to transpose dataset in csv file python csv transpose pFor example would like to transform ppre codeName Time ScoreDan 68 20Suse 42 40Tracy 50 38 code prepInto ppre codeName Dan Suse TracyTime 68 42 50Score 20 40 38 code prepEDIT the original question used the term transpose incorrectly Excel calls this operation transpose And it is reflection in the diagonal top left to bottom right line as Wikipedia states Why isn it transposition,0,NULL,NULL 65077,359888,1403158,Popular Question,NULL,NULL,0,NULL,NULL 65078,1144856,1356990,NULL,NULL,NULL,0,NULL,NULL 65079,696970,1348682,NULL,NULL,NULL,0,NULL,NULL 65080,329859,1189656,Tumbleweed Scholar Custodian Commentator Critic Yearling Informed Yearling Custodian Citizen Patrol Caucus Constituent Organizer Yearling Yearling Documentation User Yearling Tenacious Custodian Custodian Census Autobiographer Enthusiast Civic Duty Yearling Caucus Suffrage Vox Populi Unsung Hero Mortarboard Fanatic python,NULL,NULL,0,NULL,NULL 65081,241984,523215,Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Custodian Guru android Nice Answer Yearling Nice Answer Enlightened Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 65082,8752354,1519106,Teacher Informed Supporter Autobiographer,NULL,NULL,0,NULL,NULL 65083,357162,1519106,Teacher Informed Supporter Autobiographer,NULL,NULL,0,NULL,NULL 65084,1228414,1519106,Teacher Informed Supporter Autobiographer,NULL,NULL,0,NULL,NULL 65085,107125,379798,Notable Question Notable Question Yearling Nice Question Nice Answer Enlightened Yearling Notable Question Yearling Tumbleweed Custodian Curious,NULL,NULL,0,NULL,NULL 65086,324318,372428,NULL,NULL,NULL,0,NULL,NULL 65087,351934,148616,Custodian Necromancer Nice Question Yearling Popular Question Nice Answer Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 65088,268752,52263,Yearling Great Question Good Answer Yearling Guru Census Yearling Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 65089,135724,542287,Popular Question Necromancer Yearling Necromancer Documentation User Famous Question Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 65090,179674,355744,Notable Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65091,598741,37370,Good Question Yearling Popular Question Notable Question Pundit Civic Duty Necromancer Popular Question,NULL,NULL,0,NULL,NULL 65092,43682,191810,NULL,NULL,NULL,0,NULL,NULL 65093,2017845,191810,NULL,NULL,NULL,0,NULL,NULL 65094,554980,496927,NULL,NULL,NULL,0,NULL,NULL 65095,917489,680968,Student,NULL,NULL,0,NULL,NULL 65096,12030,371240,Announcer Editor Teacher,NULL,NULL,0,NULL,NULL 65097,351848,257149,Custodian,NULL,NULL,0,NULL,NULL 65098,216030,773440,Famous Question Notable Question Nice Question Popular Question Notable Question Yearling Caucus Enlightened Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 65099,193044,6906,Good Answer,NULL,NULL,0,NULL,NULL 65100,159032,1403421,NULL,NULL,NULL,0,NULL,NULL 65101,5923125,587095,NULL,NULL,NULL,0,NULL,NULL 65102,394771,47366,Famous Question Nice Answer Yearling Famous Question Notable Question Notable Question Nice Answer Famous Question Nice Answer Yearling Popular Question Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65103,116942,692765,Yearling,NULL,NULL,0,NULL,NULL 65104,89738,1271919,Student,NULL,NULL,0,NULL,NULL 65105,217983,479625,Notable Question Famous Question Nice Question Popular Question Notable Question Notable Question Popular Question Nice Question Notable Question Self-Learner Caucus,NULL,NULL,0,NULL,NULL 65106,73261,1190275,NULL,NULL,NULL,0,NULL,NULL 65107,342675,1083603,NULL,NULL,NULL,0,NULL,NULL 65108,1518281,279167,NULL,NULL,NULL,0,NULL,NULL 65109,2639,264477,NULL,NULL,NULL,0,NULL,NULL 65110,567024,881982,NULL,NULL,NULL,0,NULL,NULL 65111,308747,970779,NULL,NULL,NULL,0,NULL,NULL 65112,778929,1046060,Good Answer Caucus Caucus Revival Popular Question,NULL,NULL,0,NULL,NULL 65113,140326,1265207,Yearling Nice Answer Caucus Notable Question Yearling Explainer Caucus Constituent Civic Duty Popular Question Yearling Caucus Popular Question Good Answer,NULL,ReactJS babelJS Webpack fails on Android reactjs webpack babeljs pI spent day debugging our ReactJS app build using the very common combination of codewebpack code and codebabeljs code under Android code4 code yo pp2 problems will probably arise for anybody in this situation polliThe app code will just fail to load throwing an error about codereadonly esModule property can be overwritten code liliTouch events won trigger Clicking button link etc will just break throwing codeillegal use constructor code li ol was indeed The solutions below fixed the issues,0,NULL,NULL 65114,758365,568071,NULL,NULL,NULL,0,NULL,NULL 65115,421068,479561,Nice Answer Yearling Informed,NULL,NULL,0,NULL,NULL 65116,893027,1302115,NULL,NULL,NULL,0,NULL,NULL 65117,13153,237285,Notable Question Popular Question Notable Question Nice Question Popular Question Great Question Caucus Good Question Yearling Notable Question Famous Question Notable Question Notable Question Announcer Nice Question Nice Question Popular Question Good Question Popular Question Yearling Nice Question Popular Question Notable Question Nice Question Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 65118,362999,203744,NULL,NULL,NULL,0,NULL,NULL 65119,75335,875588,NULL,NULL,NULL,0,NULL,NULL 65120,14936,428005,Enthusiast Informed,NULL,NULL,0,NULL,NULL 65121,20207,433400,NULL,NULL,NULL,0,NULL,NULL 65122,25425,570831,Popular Question Necromancer Notable Question Notable Question Curious Peer Pressure,NULL,NULL,0,NULL,NULL 65123,1484063,1235539,NULL,NULL,NULL,0,NULL,NULL 65124,152497,195710,NULL,NULL,NULL,0,NULL,NULL 65125,110386,429469,Yearling Yearling,NULL,NULL,0,NULL,NULL 65126,678478,1168499,NULL,NULL,NULL,0,NULL,NULL 65127,126225,607471,Yearling Revival Necromancer Yearling Organizer Revival Yearling Caucus Yearling Nice Answer Yearling Revival Notable Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Guru Custodian webpack Nice Answer Yearling javascript Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65128,821101,454466,Popular Question Yearling Informed Good Question Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 65129,212271,1445254,Supporter,NULL,NULL,0,NULL,NULL 65130,57996,585614,NULL,NULL,NULL,0,NULL,NULL 65131,171425,66945,Nice Answer Nice Answer Yearling Good Answer Nice Answer Caucus Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 65132,70594,656708,Teacher Critic Yearling Explainer Yearling Caucus Yearling Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 65133,172905,1557706,Tumbleweed Student,NULL,NULL,0,NULL,NULL 65134,239833,52704,Popular Question Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 65135,312934,1224075,Yearling Excavator Notable Question Nice Question Necromancer Famous Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65136,2653028,1281279,NULL,NULL,NULL,0,NULL,NULL 65137,50975,244120,Yearling,NULL,NULL,0,NULL,NULL 65138,143251,283509,Caucus,NULL,NULL,0,NULL,NULL 65139,211492,180471,NULL,NULL,NULL,0,NULL,NULL 65140,164670,521608,NULL,NULL,NULL,0,NULL,NULL 65141,155148,97921,NULL,NULL,NULL,0,NULL,NULL 65142,1503780,540937,Notable Question,NULL,NULL,0,NULL,NULL 65143,306372,1295346,Commentator Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 65144,982446,280178,NULL,NULL,NULL,0,NULL,NULL 65145,158985,1031875,Editor Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 65146,585822,201271,Yearling Yearling Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 65147,7549300,348829,NULL,NULL,NULL,0,NULL,NULL 65148,916212,348829,NULL,NULL,NULL,0,NULL,NULL 65149,456606,836456,NULL,NULL,NULL,0,NULL,NULL 65150,407055,1360088,NULL,NULL,NULL,0,NULL,NULL 65151,1079082,1045430,NULL,NULL,NULL,0,NULL,NULL 65152,62329,791354,NULL,NULL,NULL,0,NULL,NULL 65153,65178,1556543,Notable Question,NULL,NULL,0,NULL,NULL 65154,276225,700745,NULL,NULL,NULL,0,NULL,NULL 65155,2034626,867587,Notable Question,NULL,NULL,0,NULL,NULL 65156,231804,867587,Notable Question,NULL,NULL,0,NULL,NULL 65157,22168,567546,NULL,NULL,NULL,0,NULL,NULL 65158,844865,1119747,NULL,NULL,NULL,0,NULL,NULL 65159,582801,1156933,Citizen Patrol Civic Duty Critic Student Autobiographer Self-Learner Documentation User Yearling Popular Question Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 65160,270380,893184,NULL,NULL,NULL,0,NULL,NULL 65161,243057,147257,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 65162,655724,795294,Necromancer,NULL,NULL,0,NULL,NULL 65163,92922,298371,Notable Question Yearling Nice Answer Enlightened Custodian Yearling Nice Question Popular Question Good Answer cherrypy Nice Question python Caucus Constituent Guru Announcer Announcer Famous Question Yearling Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65164,1031456,926075,NULL,NULL,NULL,0,NULL,NULL 65165,1081623,514453,NULL,NULL,NULL,0,NULL,NULL 65166,187865,1146801,NULL,NULL,NULL,0,NULL,NULL 65167,413046,1527702,NULL,NULL,NULL,0,NULL,NULL 65168,603188,642000,NULL,NULL,NULL,0,NULL,NULL 65169,153103,2474,Nice Question Yearling Promoter Nice Question Good Answer Good Question Good Answer Notable Question Nice Question Nice Question Good Answer Notable Question Yearling Popular Question Good Question Yearling Popular Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 65170,207983,366639,NULL,NULL,NULL,0,NULL,NULL 65171,26343,140354,Good Answer,NULL,NULL,0,NULL,NULL 65172,183905,11581,Yearling Good Question Excavator Yearling Yearling,NULL,NULL,0,NULL,NULL 65173,85230,676321,NULL,NULL,NULL,0,NULL,NULL 65174,91261,1004535,NULL,NULL,NULL,0,NULL,NULL 65175,779492,272781,NULL,NULL,NULL,0,NULL,NULL 65176,7895562,790480,NULL,NULL,NULL,0,NULL,NULL 65177,32933,996363,NULL,NULL,NULL,0,NULL,NULL 65178,1121835,196017,Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 65179,186611,1030801,NULL,NULL,NULL,0,NULL,NULL 65180,7726154,1030801,NULL,NULL,NULL,0,NULL,NULL 65181,1899323,1214798,NULL,NULL,NULL,0,NULL,NULL 65182,121382,537663,NULL,NULL,NULL,0,NULL,NULL 65183,355686,1188240,NULL,NULL,NULL,0,NULL,NULL 65184,586434,1010887,Revival,NULL,NULL,0,NULL,NULL 65185,8204247,343330,NULL,NULL,NULL,0,NULL,NULL 65186,910747,1018786,NULL,NULL,NULL,0,NULL,NULL 65187,110118,634881,NULL,NULL,NULL,0,NULL,NULL 65188,393800,1040371,Revival Nice Answer Enlightened Good Answer Necromancer Yearling ruby-on-rails Nice Answer Enlightened Enlightened Nice Answer Yearling Nice Answer Enlightened Reversal Guru Yearling,NULL,NULL,0,NULL,NULL 65189,264363,251514,NULL,NULL,NULL,0,NULL,NULL 65190,34598,436444,NULL,NULL,NULL,0,NULL,NULL 65191,922792,448964,Popular Question,NULL,NULL,0,NULL,NULL 65192,322164,916677,NULL,NULL,NULL,0,NULL,NULL 65193,485238,1112563,NULL,NULL,NULL,0,NULL,NULL 65194,292449,465516,Necromancer,NULL,NULL,0,NULL,NULL 65195,1577,10478,Nice Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 65196,851773,336210,NULL,NULL,NULL,0,NULL,NULL 65197,874367,105687,Nice Question Yearling Revival Necromancer Yearling Nice Answer Guru Civic Duty Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 65198,23605,643512,Notable Question,NULL,NULL,0,NULL,NULL 65199,3765,1166939,NULL,NULL,NULL,0,NULL,NULL 65200,409567,170237,Necromancer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65201,31717,182640,Teacher Supporter Necromancer Nice Answer Yearling Good Answer Yearling Yearling Caucus Custodian Documentation User Citizen Patrol Custodian Custodian Yearling Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 65202,2042081,1556876,NULL,NULL,NULL,0,NULL,NULL 65203,1460175,1556876,NULL,NULL,NULL,0,NULL,NULL 65204,14058,495694,Revival Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 65205,430819,404292,NULL,NULL,NULL,0,NULL,NULL 65206,274274,1398895,NULL,NULL,NULL,0,NULL,NULL 65207,912,1091979,NULL,NULL,NULL,0,NULL,NULL 65208,230817,3408,Revival Proofreader Popular Question Good Answer Good Answer Custodian Popular Question Nice Answer Notable Question Custodian Great Question Necromancer Necromancer Announcer Yearling Good Answer Nice Answer Caucus Good Answer Guru Nice Answer Revival Popular Question Announcer Nice Answer Yearling Announcer html Necromancer Nice Answer Announcer Popular Question Census Popular Question Guru Caucus javascript Necromancer Good Answer Popular Question Nice Answer Enlightened Notable Question Yearling Nice Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 65209,131123,927478,NULL,NULL,NULL,0,NULL,NULL 65210,562624,425359,Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Announcer Good Answer Caucus Constituent Yearling Census Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 65211,10268491,1203639,NULL,NULL,NULL,0,NULL,NULL 65212,97609,1203639,NULL,NULL,NULL,0,NULL,NULL 65213,154108,365810,NULL,NULL,NULL,0,NULL,NULL 65214,1001004,1520090,NULL,NULL,NULL,0,NULL,NULL 65215,97923,6421,Great Answer Yearling Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 65216,45717,144682,Yearling Yearling,NULL,NULL,0,NULL,NULL 65217,38345,708369,Documentation Pioneer Student Scholar Documentation User Census Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 65218,281616,661339,Informed,NULL,NULL,0,NULL,NULL 65219,523039,949773,Scholar,NULL,NULL,0,NULL,NULL 65220,1178711,345441,Notable Question Teacher Revival Autobiographer Editor Necromancer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 65221,186841,1347177,Necromancer Popular Question Commentator,NULL,NULL,0,NULL,NULL 65222,173731,1148266,Notable Question Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 65223,350369,850188,Supporter,NULL,NULL,0,NULL,NULL 65224,265473,1109440,Editor Enthusiast Popular Question Revival,NULL,NULL,0,NULL,NULL 65225,653962,131540,Caucus,NULL,NULL,0,NULL,NULL 65226,69935,262458,Yearling Editor Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 65227,433934,891879,NULL,NULL,NULL,0,NULL,NULL 65228,1518101,871482,NULL,NULL,NULL,0,NULL,NULL 65229,34031,661014,NULL,NULL,NULL,0,NULL,NULL 65230,513637,838235,NULL,NULL,NULL,0,NULL,NULL 65231,478430,1391563,Student Editor Scholar Caucus Yearling Curious Tumbleweed Popular Question Caucus,NULL,NULL,0,NULL,NULL 65232,931840,882190,NULL,NULL,NULL,0,NULL,NULL 65233,65370,699026,Necromancer,NULL,NULL,0,NULL,NULL 65234,671889,574946,NULL,NULL,NULL,0,NULL,NULL 65235,653085,308062,Yearling Nice Answer Necromancer Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 65236,129739,1536520,NULL,NULL,NULL,0,NULL,NULL 65237,139018,1044147,NULL,NULL,NULL,0,NULL,NULL 65238,912971,1128315,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65239,1226326,1128315,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65240,1251610,649350,Popular Question Notable Question Editor Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65241,1215929,566677,NULL,NULL,NULL,0,NULL,NULL 65242,223475,564708,Nice Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 65243,6139,140752,Critic,NULL,NULL,0,NULL,NULL 65244,599252,663580,Yearling Yearling Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 65245,1180284,659135,NULL,NULL,NULL,0,NULL,NULL 65246,193030,706542,NULL,NULL,NULL,0,NULL,NULL 65247,2460354,1053866,NULL,NULL,NULL,0,NULL,NULL 65248,1567498,1298472,NULL,NULL,NULL,0,NULL,NULL 65249,2874019,633735,Popular Question Enthusiast Notable Question Yearling,NULL,NULL,0,NULL,NULL 65250,202006,847292,Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 65251,93498,318082,NULL,NULL,NULL,0,NULL,NULL 65252,430250,1102533,NULL,NULL,NULL,0,NULL,NULL 65253,70801,585726,NULL,NULL,NULL,0,NULL,NULL 65254,531903,312629,Yearling Caucus Constituent Student Revival Self-Learner Scholar Documentation User Caucus Good Answer Citizen Patrol Custodian Custodian,NULL,NULL,0,NULL,NULL 65255,87322,84324,NULL,NULL,NULL,0,NULL,NULL 65256,209551,186760,Curious Revival Popular Question Notable Question Caucus Census,NULL,NULL,0,NULL,NULL 65257,26542,65779,NULL,NULL,NULL,0,NULL,NULL 65258,337491,572954,Yearling Nice Answer Nice Question Famous Question Yearling Revival Nice Question,NULL,NULL,0,NULL,NULL 65259,324792,1359974,NULL,NULL,NULL,0,NULL,NULL 65260,243800,1053757,NULL,NULL,NULL,0,NULL,NULL 65261,274093,96003,Caucus,NULL,NULL,0,NULL,NULL 65262,181521,723068,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 65263,62754,148482,NULL,NULL,NULL,0,NULL,NULL 65264,130206,1549640,NULL,NULL,NULL,0,NULL,NULL 65265,22437,191210,Yearling Stellar Question Curious,NULL,NULL,0,NULL,NULL 65266,242219,1391546,NULL,NULL,NULL,0,NULL,NULL 65267,18756,487901,NULL,NULL,NULL,0,NULL,NULL 65268,371355,918638,Good Answer Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 65269,35336,56496,Populist Yearling Popular Question Curious,NULL,NULL,0,NULL,NULL 65270,1301575,830122,NULL,NULL,NULL,0,NULL,NULL 65271,421443,1342092,NULL,NULL,NULL,0,NULL,NULL 65272,45086,119314,Good Answer Yearling Yearling python Good Answer Custodian Informed Yearling Organizer Tag Editor Explainer Yearling Tenacious Yearling,NULL,NULL,0,NULL,NULL 65273,985324,823892,Popular Question,NULL,NULL,0,NULL,NULL 65274,4010053,84600,Yearling Documentation User Critic,NULL,NULL,0,NULL,NULL 65275,253146,388702,Nice Answer Yearling Yearling Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 65276,36202,264436,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65277,154776,1241113,Commentator,NULL,NULL,0,NULL,NULL 65278,56802,252731,NULL,NULL,NULL,0,NULL,NULL 65279,6335,1079728,Guru Popular Question Notable Question Announcer Nice Question Nice Answer Nice Question Revival Nice Answer Revival Yearling Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Good Answer Good Question,NULL,NULL,0,NULL,NULL 65280,200651,615234,Yearling Guru Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 65281,194486,539752,Caucus Constituent,NULL,NULL,0,NULL,NULL 65282,966758,318093,NULL,NULL,NULL,0,NULL,NULL 65283,122352,407404,Yearling Nice Answer Student Popular Question Yearling Notable Question Good Answer Necromancer,NULL,NULL,0,NULL,NULL 65284,1027909,114357,Guru Yearling Necromancer Yearling Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 65285,1530397,823462,NULL,NULL,NULL,0,NULL,NULL 65286,1532856,644816,Caucus Necromancer Yearling Famous Question,NULL,NULL,0,NULL,NULL 65287,62374,1500514,Informed,NULL,NULL,0,NULL,NULL 65288,536368,1461415,NULL,NULL,NULL,0,NULL,NULL 65289,393133,1160386,NULL,NULL,NULL,0,NULL,NULL 65290,48509,420947,Yearling Revival Necromancer Good Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 65291,505040,685808,Popular Question Yearling Necromancer Nice Question Good Answer Yearling Necromancer Nice Answer Nice Answer Yearling Nice Answer Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 65292,1515898,1439914,NULL,NULL,NULL,0,NULL,NULL 65293,35519,883458,NULL,NULL,NULL,0,NULL,NULL 65294,137935,1085026,NULL,NULL,NULL,0,NULL,NULL 65295,121537,1238484,NULL,NULL,NULL,0,NULL,NULL 65296,129959,2627,Famous Question Great Question Nice Question Notable Question Notable Question Nice Question Yearling Popular Question Nice Question Notable Question Famous Question Famous Question Notable Question Nice Question Nice Answer Yearling Popular Question Popular Question Famous Question Necromancer Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 65297,1123291,892545,Popular Question Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 65298,1323527,267934,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 65299,394995,1563234,Informed Notable Question Caucus Promoter Benefactor Autobiographer Caucus,NULL,NULL,0,NULL,NULL 65300,118864,519472,Necromancer,NULL,NULL,0,NULL,NULL 65301,13526,615855,Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Custodian Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65302,5712388,615855,Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Custodian Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65303,202797,1364200,NULL,NULL,NULL,0,NULL,NULL 65304,934312,1225182,Popular Question,NULL,NULL,0,NULL,NULL 65305,129832,868941,Nice Answer Famous Question Guru Famous Question java Popular Question Popular Question Popular Question Yearling Nice Answer Good Question Popular Question Popular Question Popular Question Necromancer Caucus Constituent Necromancer Good Question Necromancer Necromancer Notable Question Announcer Caucus Yearling Nice Answer Necromancer Inquisitive Documentation User Popular Question Necromancer Notable Question Announcer Revival Nice Answer Announcer Caucus Popular Question Good Answer Popular Question Necromancer Notable Question Popular Question Yearling Enlightened Popular Question Popular Question Nice Answer Citizen Patrol Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65306,603311,201613,Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 65307,5827,54468,NULL,NULL,NULL,0,NULL,NULL 65308,226995,35062,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 65309,682342,617714,NULL,NULL,NULL,0,NULL,NULL 65310,332854,1065601,NULL,NULL,NULL,0,NULL,NULL 65311,562854,22424,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 65312,155810,96561,Documentation User,NULL,NULL,0,NULL,NULL 65313,7629,987787,Enthusiast Informed,NULL,NULL,0,NULL,NULL 65314,73879,686553,NULL,NULL,NULL,0,NULL,NULL 65315,22282,594401,Nice Question Yearling Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 65316,1270282,1028117,NULL,NULL,NULL,0,NULL,NULL 65317,91977,619961,Quorum Caucus Scholar Necromancer Popular Question,NULL,NULL,0,NULL,NULL 65318,49261,594420,Good Answer Good Answer Guru Great Answer Guru Guru Yearling Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened kendo-ui Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Good Answer Nice Answer Enlightened Good Answer Enlightened,NULL,NULL,0,NULL,NULL 65319,12992,877073,NULL,NULL,NULL,0,NULL,NULL 65320,17380,950049,NULL,NULL,NULL,0,NULL,NULL 65321,673657,1000286,Supporter Yearling Yearling,NULL,NULL,0,NULL,NULL 65322,61352,506299,Notable Question,NULL,NULL,0,NULL,NULL 65323,180436,789431,Commentator Yearling Critic Caucus Editor Yearling Yearling Mortarboard Caucus Yearling Autobiographer,NULL,NULL,0,NULL,NULL 65324,754510,736306,Nice Question Notable Question Notable Question Nice Question Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 65325,9652,534827,NULL,NULL,NULL,0,NULL,NULL 65326,241943,136958,Nice Answer,NULL,NULL,0,NULL,NULL 65327,460546,153105,NULL,NULL,NULL,0,NULL,NULL 65328,371735,621990,NULL,NULL,NULL,0,NULL,NULL 65329,172978,293164,Popular Question,NULL,NULL,0,NULL,NULL 65330,21221,542153,Popular Question,NULL,NULL,0,NULL,NULL 65331,37530,908263,Critic Necromancer Informed Necromancer Yearling Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 65332,396232,200705,NULL,NULL,NULL,0,NULL,NULL 65333,135654,55151,Yearling Notable Question Nice Question Good Answer Yearling Popular Question Nice Answer Notable Question Yearling Census Nice Question Famous Question Good Question Great Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 65334,260481,1406288,NULL,NULL,NULL,0,NULL,NULL 65335,132726,903028,NULL,NULL,NULL,0,NULL,NULL 65336,25236,1044652,Revival,NULL,NULL,0,NULL,NULL 65337,2198122,1044652,Revival,NULL,NULL,0,NULL,NULL 65338,316918,24213,Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 65339,1092502,660882,NULL,NULL,NULL,0,NULL,NULL 65340,233014,978836,NULL,NULL,NULL,0,NULL,NULL 65341,15656,576298,NULL,NULL,NULL,0,NULL,NULL 65342,61465,418772,Yearling Critic Popular Question Yearling Necromancer Notable Question,NULL,How to efficiently concatenate strings in Go string go string concatenation pIn Go codestring code is primitive type which means it is read only and every manipulation of it will create new string ppSo if want to concatenate strings many times without knowing the length of the resulting string what the best way to do it ppThe naive way would be ppre codes for lt 1000 getShortStringFromSomewhere return code prepbut that does not seem very efficient It doesn just seem very inefficient it has specific problem that every new non CS hire we have ever gotten runs into in the first few weeks on the job It quadratic Think of the number sequence It the area of triangle of base You allocate size then size then size etc when you append immutable strings in loop This quadratic resource consumption manifests itself in more ways than just this,0,NULL,NULL 65343,582502,1342555,NULL,NULL,NULL,0,NULL,NULL 65344,1166687,563762,Yearling Nice Question Notable Question Famous Question Popular Question Notable Question Nice Question Good Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Good Question Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Good Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65345,531071,1457012,Necromancer Informed Nice Answer Cleanup Critic Yearling,NULL,NULL,0,NULL,NULL 65346,50684,418287,Necromancer,NULL,NULL,0,NULL,NULL 65347,2562493,418287,Necromancer,NULL,NULL,0,NULL,NULL 65348,552681,187367,NULL,NULL,NULL,0,NULL,NULL 65349,598700,265659,Yearling Revival Necromancer Nice Answer Commentator Tumbleweed Yearling Caucus Popular Question Good Answer,NULL,NULL,0,NULL,NULL 65350,234044,793143,Revival Nice Answer,NULL,NULL,0,NULL,NULL 65351,532917,48886,Famous Question Popular Question Nice Question Notable Question Taxonomist Notable Question Popular Question Good Answer Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Necromancer Good Question Nice Question Popular Question Nice Question Notable Question Popular Question Guru Notable Question Nice Question Famous Question Nice Question Popular Question Good Question Notable Question Excavator Custodian Investor Nice Answer Peer Pressure Altruist Yearling Notable Question Popular Question Notable Question Famous Question Good Answer Great Answer Good Answer Famous Question Popular Question Famous Question Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 65352,251301,1084470,Yearling Nice Answer Notable Question Commentator Yearling Famous Question Popular Question Caucus Popular Question Popular Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 65353,1279819,690194,NULL,NULL,NULL,0,NULL,NULL 65354,80813,829835,Notable Question Famous Question Famous Question Good Question Popular Question Popular Question Nice Answer Guru Popular Question Good Answer Custodian Necromancer Notable Question Famous Question Good Question Yearling Popular Question Caucus Constituent Nice Answer Notable Question Census Nice Answer Guru Popular Question Announcer Yearling Caucus Populist Popular Question Documentation User Nice Answer Enlightened Nice Question Census Nice Question Popular Question Good Question Popular Question Notable Question Caucus Constituent Yearling Nice Question Notable Question Nice Question Nice Answer Suffrage,NULL,pI wrote small function that traverses the stylesheets on the document looking for the matched selector then style ppThere is one caveat this will only work for style sheets defined with style tag or external sheets from the same domain ppIf the sheet is known you can pass it in and save yourself from having to look in multiple sheets faster and if you have colliding rules it more exact ppI only tested on jsFiddle with some weak test cases let me know if this works for you ppre codefunction getStyleRuleValue style selector sheet var sheets typeof sheet undefined sheet document styleSheets for var sheets length lt var sheet sheets if sheet cssRules continue for var sheet cssRules length lt var rule sheet cssRules if rule selectorText amp amp rule selectorText split indexOf selector return rule style style return null code prepexample usage ppre codevar color getStyleRuleValue color foo searches all sheets for the first foo rule and returns the set color style var color getStyleRuleValue color foo document styleSheets code preh2edit h2pI neglected to take into consideration grouped rules changed the selector check to this ppre codeif rule selectorText split indexOf selector code prepnow it will check if any of the selectors in grouped rules matches with your editor don see how you could read in the page sheet which isn loaded into the page,0,NULL,NULL 65355,379822,561965,Notable Question,NULL,NULL,0,NULL,NULL 65356,198511,111290,Nice Answer,NULL,NULL,0,NULL,NULL 65357,483652,49393,Yearling Yearling Yearling Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 65358,212874,982061,Informed Caucus Caucus,NULL,NULL,0,NULL,NULL 65359,635893,812922,Yearling Yearling Guru Necromancer Yearling,NULL,NULL,0,NULL,NULL 65360,271191,16445,Notable Question Famous Question Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 65361,457069,540121,Nice Question Popular Question Popular Question Nice Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 65362,544879,341616,Good Answer Guru c# Yearling Good Answer Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 65363,157649,233463,Popular Question Notable Question Curious Notable Question Self-Learner Critic,NULL,NULL,0,NULL,NULL 65364,507704,213315,Famous Question,NULL,NULL,0,NULL,NULL 65365,178164,24204,Notable Question Nice Answer Enlightened Yearling Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 65366,209236,460737,NULL,NULL,NULL,0,NULL,NULL 65367,1015125,141991,NULL,NULL,NULL,0,NULL,NULL 65368,77759,701412,NULL,NULL,NULL,0,NULL,NULL 65369,233115,298163,NULL,NULL,NULL,0,NULL,NULL 65370,1052,144524,NULL,NULL,NULL,0,NULL,NULL 65371,1125736,389473,Nice Answer,NULL,NULL,0,NULL,NULL 65372,88889,145217,Curious,NULL,NULL,0,NULL,NULL 65373,187775,613221,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65374,69908,530653,Necromancer Good Answer Nice Question Necromancer Pundit Yearling Good Answer Nice Answer Necromancer Nice Question Good Question Necromancer Yearling Nice Answer Necromancer Custodian Organizer,NULL,NULL,0,NULL,NULL 65375,151989,346741,Necromancer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Yearling Great Question Nice Answer Good Answer Popular Question Popular Question Yearling Stellar Question Notable Question Pundit Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 65376,14502,178831,Great Answer Great Answer Custodian Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 65377,296771,1080960,NULL,NULL,NULL,0,NULL,NULL 65378,8890286,1080960,NULL,NULL,NULL,0,NULL,NULL 65379,1517895,84783,Notable Question Yearling Revival Popular Question Yearling Notable Question Necromancer Custodian Electorate Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 65380,1262481,14952,Custodian Favorite Question Famous Question Necromancer Notable Question Yearling Nice Answer Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 65381,6398,23060,Informed Announcer Synonymizer Nice Answer Enlightened Yearling Explainer Guru Caucus slim Nice Answer Enlightened Great Answer Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65382,448508,84768,Revival Critic Nice Answer Yearling Custodian Citizen Patrol Custodian Custodian Caucus,NULL,NULL,0,NULL,NULL 65383,318261,535195,NULL,NULL,NULL,0,NULL,NULL 65384,186646,809587,NULL,NULL,NULL,0,NULL,NULL 65385,61755,24146,Nice Answer Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 65386,48486,842404,NULL,NULL,NULL,0,NULL,NULL 65387,416060,138256,Notable Question Notable Question Nice Answer Populist Popular Question Notable Question Yearling Popular Question Great Answer Revival Favorite Question arrays Good Question Famous Question Nice Question Inquisitive Popular Question Nice Answer Enlightened Good Question Notable Question Popular Question Yearling Caucus Good Question Famous Question Nice Answer Enlightened Documentation User Popular Question Census Nice Answer Enlightened Caucus Great Answer Popular Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 65388,61272,88178,Yearling Yearling Enlightened Nice Answer Custodian Yearling,NULL,pThis is arguably not the embest em way for most circumstances but it not been mentioned yet so perhaps it will help someone polli pBind mount host volume pp codeHost folder FOOBAR is mounted in container volume FOOBAR code lili pModify your container startup script to find GID of the volume you re interested in pp code TARGET GID stat volume FOOBAR code lili pEnsure your user belongs to group with this GID you may have to create new group For this example ll pretend my software runs as the codenobody code user when inside the container so want to ensure codenobody code belongs to group with group id equal to codeTARGET GID code li olpre code EXISTS cat etc group grep TARGET GID wc Create new group using target GID and add nobody user if EXISTS then groupadd TARGET GID tempgroup usermod tempgroup nobody else GID exists find group name and add GROUP getent group TARGET GID cut f1 usermod GROUP nobody fi code prepI like this because can easily modify group permissions on my host volumes and know that those updated permissions apply inside the docker container This happens without any permission or ownership modifications to my host folders files which makes me happy ppI don like this because it assumes there no danger in adding yourself to an arbitrary groups inside the container that happen to be using GID you want It cannot be used with codeUSER code clause in Dockerfile unless that user has root privileges suppose Also it screams hack job ppIf you want to be hardcore you can obviously extend this in many ways search for all groups on any subfiles multiple volumes etc think better grep for TARGET GID would be to use grep TARGET GID otherwise if the container has gid 10001 and your host is 1000 this check will pass but it shouldn,0,NULL,NULL 65389,197322,586932,Excavator Notable Question Self-Learner Yearling Necromancer Necromancer,NULL,pIn Python and later think better method would be using context manager like so ppre codeimport contextlibimport os contextmanagerdef pushd new dir previous dir os getcwd os chdir new dir yield os chdir previous dir code prepYou can then use it like the following ppre codewith pushd somewhere print os getcwd somewhere print os getcwd wherever you started code prepBy using context manager you will be exception and return value safe your code will always cd back to where it started from even if you throw an exception or return from inside the context block ppYou can also nest pushd calls in nested blocks without having to rely on global directory stack ppre codewith pushd somewhere do something with pushd another place do something else do something back in somewhere code pre there also the contextlib closing method which takes care of the try finally requirement for you https docs python org library contextlib html contextlib closing,1,NULL,Serving static media during Django development Why not MEDIA ROOT python django static media pI read href http docs djangoproject com en howto static files rel noreferrer this guide about serving static media with Django during development ppI noticed that codeMEDIA URL code and codeMEDIA ROOT code were not used in this Why What the difference ppI tried doing it with codeMEDIA URL code and codeMEDIA ROOT code and got weird results pThe Django docs recommend the following approach ve modified for my use case ppre codeurlpatterns url patterns from django conf import settingsif settings DEBUG from django conf urls static import static urlpatterns static settings MEDIA URL document root settings MEDIA ROOT code preblockquote pNote emthe above assumes you ve set your codeMEDIA URL code and codeMEDIA ROOT code correctly em blockquotep and here the href https docs djangoproject com en howto static files serving files uploaded by user during development rel noreferrer djangodocs linkslap 65390,354937,89582,Guru Yearling Custodian Custodian Custodian Excavator Yearling Good Question Yearling Cleanup Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 65391,44813,12421,Popular Question Census Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65392,489046,58797,NULL,NULL,NULL,0,NULL,NULL 65393,125094,99106,Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 65394,472239,85636,NULL,NULL,NULL,0,NULL,NULL 65395,166401,1268617,NULL,NULL,NULL,0,NULL,NULL 65396,66702,3396,Yearling Revival Yearling Census Nice Question,NULL,NULL,0,NULL,NULL 65397,1912178,3396,Yearling Revival Yearling Census Nice Question,NULL,NULL,0,NULL,NULL 65398,581816,231309,Nice Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 65399,14796,399346,Proofreader Organizer ruby-on-rails Reviewer Yearling Popular Question Curious Nice Answer Yearling Popular Question Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65400,136161,379354,Teacher Editor,NULL,NULL,0,NULL,NULL 65401,31586,893800,NULL,NULL,NULL,0,NULL,NULL 65402,302675,97938,Yearling Nice Answer Enlightened Yearling Yearling Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65403,6652984,229129,NULL,NULL,NULL,0,NULL,NULL 65404,207355,1261510,NULL,NULL,NULL,0,NULL,NULL 65405,74247,714296,NULL,NULL,NULL,0,NULL,NULL 65406,68896,714296,NULL,NULL,NULL,0,NULL,NULL 65407,851714,88311,Notable Question Yearling Notable Question Good Question Revival Caucus Constituent Notable Question Nice Answer Nice Answer Enlightened Civic Duty Caucus Constituent Custodian Census Caucus Yearling,NULL,NULL,0,NULL,NULL 65408,549614,1224285,NULL,NULL,NULL,0,NULL,NULL 65409,10850141,1224285,NULL,NULL,NULL,0,NULL,NULL 65410,1386969,256061,NULL,NULL,NULL,0,NULL,NULL 65411,19274,1315153,NULL,NULL,NULL,0,NULL,NULL 65412,65414,1315153,NULL,NULL,NULL,0,NULL,NULL 65413,159859,30827,Custodian Custodian Custodian Custodian Custodian Popular Question Custodian visual-studio Revival Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened nunit Yearling Caucus Nice Answer Constituent Nice Answer Enlightened Necromancer Good Answer Famous Question Nice Answer Enlightened Good Answer c# unit-testing Necromancer Good Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Census Nice Answer Popular Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 65414,83558,515664,NULL,NULL,NULL,0,NULL,NULL 65415,33094,211786,Tumbleweed Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65416,182083,448709,NULL,NULL,NULL,0,NULL,NULL 65417,292148,191406,NULL,NULL,NULL,0,NULL,NULL 65418,83072,430231,Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65419,48695,571436,Benefactor Yearling Nice Answer Yearling Popular Question Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 65420,63996,22832,Nice Answer,NULL,NULL,0,NULL,NULL 65421,136235,324978,Nice Answer Good Answer Notable Question Yearling Popular Question Revival Nice Answer Populist Good Answer Census javascript Necromancer Yearling Nice Answer Good Answer Nice Answer Enlightened Popular Question Guru Census Nice Question python Nice Answer Yearling Nice Answer Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65422,10500,105677,Excavator Notable Question,NULL,NULL,0,NULL,NULL 65423,65176,424591,NULL,NULL,NULL,0,NULL,NULL 65424,85576,136446,Popular Question Yearling,NULL,NULL,0,NULL,NULL 65425,48125,361417,Notable Question Nice Question Nice Question Census,NULL,NULL,0,NULL,NULL 65426,485164,184946,NULL,NULL,NULL,0,NULL,NULL 65427,199041,127769,Great Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 65428,290669,74169,Yearling Populist Good Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 65429,27354,3528,Nice Question Autobiographer Nice Answer Yearling Nice Answer Enlightened Yearling Notable Question Revival Popular Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 65430,457329,285549,Nice Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 65431,172359,531495,NULL,NULL,NULL,0,NULL,NULL 65432,380202,443288,NULL,NULL,NULL,0,NULL,NULL 65433,276712,989917,Nice Answer Yearling Popular Question Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 65434,182747,411945,NULL,NULL,NULL,0,NULL,NULL 65435,1346718,508727,NULL,NULL,NULL,0,NULL,NULL 65436,1434818,149,Nice Answer Nice Question Nice Question Yearling Nice Answer Notable Question Good Answer Caucus Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 65437,549667,471360,NULL,NULL,NULL,0,NULL,NULL 65438,247679,2595,Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 65439,467570,1665,php Revival Nice Question Popular Question Popular Question Great Answer Popular Question Favorite Question Famous Question Notable Question Famous Question Famous Question Notable Question Notable Question Popular Question Necromancer Popular Question Famous Question Nice Answer Popular Question Yearling Famous Question Popular Question Notable Question Notable Question Nice Question Famous Question Good Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Great Question Notable Question Popular Question Popular Question Popular Question Notable Question Great Question Yearling Favorite Question Famous Question Nice Question Popular Question Great Question Popular Question Favorite Question Popular Question Popular Question Favorite Question Notable Question Good Question Good Question Notable Question Notable Question Stellar Question Notable Question Yearling Notable Question Nice Question,NULL,DoError Using Ansble with Digital Ocean python ansible digital ocean pI ve read the posts ve seen the ticket about the codedopy code version and ve tried to do my due diligence but pblockquote pAn exception occurred during task execution To see the full traceback use vvv The error was NameError name DoError is not defined blockquotepThis is still kicking my arse running OS El Capitan ve installed python pip via Homebrew and ve tried installing Ansible via both Homebrew and pip still getting the error What am missing ppre code which python usr local bin python which pip usr local bin pip which ansible usr local bin ansible python versionPython 11 pip versionpip from usr local lib python2 site packages python ansible versionansible config file Users robwilkerson Development uw ansible servers ansible cfg configured module search path Default overrides pip list dopy code prepI ve tried everything can think of If use the system python and try to install pip without ansible get an OpenSSL error that known issue ppI could really use shove in the right direction it wasn dopy ticket but an Ansible ticket https github com ansible ansible modules core issues 2509 What other context can provide that might help Why is my MySQL import failing Ansible ansible ansible pI have playbook that needs to refresh database from upstream It deleting the existing database recreating it downloading the most recent backup of production in code sql gz code format and attempting to import it On that last step get this pblockquote pTASK deploy Database Load the database from upstream data fatal 54 236 190 225 FAILED changed false failed true msg ngzip stdout Broken pipe blockquotepThe task ppre code name Database Load the database from upstream data mysql db state import target tmp catalog 19 16 sql gz login host mysql host login port mysql port login user root login password mysql root password name mysql db code prepThe code tmp catalog 19 16 sql gz code file exists on the server ppWhat am be missing Well it works from the command line so ugh,1,DoError Using Ansble with Digital Ocean python ansible digital ocean pI ve read the posts ve seen the ticket about the codedopy code version and ve tried to do my due diligence but pblockquote pAn exception occurred during task execution To see the full traceback use vvv The error was NameError name DoError is not defined blockquotepThis is still kicking my arse running OS El Capitan ve installed python pip via Homebrew and ve tried installing Ansible via both Homebrew and pip still getting the error What am missing ppre code which python usr local bin python which pip usr local bin pip which ansible usr local bin ansible python versionPython 11 pip versionpip from usr local lib python2 site packages python ansible versionansible config file Users robwilkerson Development uw ansible servers ansible cfg configured module search path Default overrides pip list dopy code prepI ve tried everything can think of If use the system python and try to install pip without ansible get an OpenSSL error that known issue ppI could really use shove in the right direction Why is my MySQL import failing Ansible ansible ansible pI have playbook that needs to refresh database from upstream It deleting the existing database recreating it downloading the most recent backup of production in code sql gz code format and attempting to import it On that last step get this pblockquote pTASK deploy Database Load the database from upstream data fatal 54 236 190 225 FAILED changed false failed true msg ngzip stdout Broken pipe blockquotepThe task ppre code name Database Load the database from upstream data mysql db state import target tmp catalog 19 16 sql gz login host mysql host login port mysql port login user root login password mysql root password name mysql db code prepThe code tmp catalog 19 16 sql gz code file exists on the server ppWhat am be missing,NULL 65440,76315,103162,Student,NULL,NULL,0,NULL,NULL 65441,104077,660358,NULL,NULL,NULL,0,NULL,NULL 65442,27491,745084,Student Promoter Benefactor Scholar,NULL,NULL,0,NULL,NULL 65443,1176684,682915,Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 65444,75661,1151,NULL,NULL,NULL,0,NULL,NULL 65445,170584,108247,Yearling Good Answer Editor Excavator,NULL,NULL,0,NULL,NULL 65446,44701,1233367,NULL,NULL,NULL,0,NULL,NULL 65447,1057552,72930,Popular Question,NULL,NULL,0,NULL,NULL 65448,7463,692358,NULL,NULL,NULL,0,NULL,NULL 65449,109965,399997,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65450,246585,490136,Popular Question,NULL,NULL,0,NULL,NULL 65451,9958,311762,Yearling Yearling Yearling Nice Answer Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65452,240319,669664,Commentator Necromancer,NULL,NULL,0,NULL,NULL 65453,2425,1254854,Necromancer Announcer,NULL,NULL,0,NULL,NULL 65454,171555,418594,Teacher Necromancer,NULL,NULL,0,NULL,NULL 65455,47360,1100925,NULL,NULL,NULL,0,NULL,NULL 65456,60707,106906,Nice Question Necromancer Nice Answer Notable Question Popular Question ruby-on-rails Popular Question Yearling Great Answer Nice Answer Famous Question Popular Question Nice Answer Famous Question Popular Question Famous Question Custodian Necromancer Good Question Nice Question Yearling Nice Question Notable Question Great Question Nice Question Yearling Notable Question Necromancer Famous Question Custodian,NULL,NULL,0,NULL,NULL 65457,775026,52082,Tumbleweed,NULL,NULL,0,NULL,NULL 65458,2218048,164091,NULL,NULL,NULL,0,NULL,NULL 65459,417014,164091,NULL,NULL,NULL,0,NULL,NULL 65460,567558,833878,Critic,NULL,NULL,0,NULL,NULL 65461,199012,982410,NULL,NULL,NULL,0,NULL,NULL 65462,500859,637825,NULL,NULL,NULL,0,NULL,NULL 65463,60988,561854,NULL,NULL,NULL,0,NULL,NULL 65464,147445,1051438,NULL,NULL,NULL,0,NULL,NULL 65465,134677,282434,Autobiographer,NULL,NULL,0,NULL,NULL 65466,192272,766948,NULL,NULL,NULL,0,NULL,NULL 65467,152877,1050601,Tumbleweed Editor Revival,NULL,NULL,0,NULL,NULL 65468,1476981,1141491,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 65469,444857,1113096,NULL,NULL,NULL,0,NULL,NULL 65470,239744,908511,NULL,NULL,NULL,0,NULL,NULL 65471,295877,558659,NULL,NULL,NULL,0,NULL,NULL 65472,8149,136023,NULL,NULL,NULL,0,NULL,NULL 65473,1053728,1205376,NULL,NULL,NULL,0,NULL,NULL 65474,457154,877469,Popular Question,NULL,NULL,0,NULL,NULL 65475,155984,131360,NULL,NULL,NULL,0,NULL,NULL 65476,1240724,411270,Autobiographer,NULL,NULL,0,NULL,NULL 65477,158988,1247665,Supporter Caucus,NULL,NULL,0,NULL,NULL 65478,51430,222500,Custodian Civic Duty Yearling Nice Answer Necromancer Nice Answer Enlightened Autobiographer,NULL,NULL,0,NULL,NULL 65479,68927,1212813,Self-Learner Notable Question Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 65480,5038,198364,Yearling Informed,NULL,NULL,0,NULL,NULL 65481,90090,7778,Yearling Necromancer,NULL,NULL,0,NULL,NULL 65482,991649,1255162,Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 65483,734996,850346,NULL,NULL,NULL,0,NULL,NULL 65484,561976,790817,Popular Question,NULL,NULL,0,NULL,NULL 65485,172493,832,Famous Question Notable Question Great Answer Nice Answer Nice Answer Yearling Stellar Question Favorite Question Notable Question Great Answer Favorite Question Popular Question Yearling Nice Question Good Answer Nice Question Good Answer Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 65486,5151188,1069965,NULL,NULL,NULL,0,NULL,NULL 65487,1288366,1069965,NULL,NULL,NULL,0,NULL,NULL 65488,59934,497050,Popular Question,NULL,NULL,0,NULL,NULL 65489,749566,386805,Notable Question,NULL,NULL,0,NULL,NULL 65490,311081,284855,Revival Critic,NULL,NULL,0,NULL,NULL 65491,181913,828422,NULL,NULL,NULL,0,NULL,NULL 65492,307263,190165,Yearling Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 65493,328015,797261,NULL,NULL,NULL,0,NULL,NULL 65494,62728,325334,Critic Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 65495,1203,1273028,NULL,NULL,NULL,0,NULL,NULL 65496,1158489,139781,Necromancer Nice Question Yearling Nice Answer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 65497,298601,331749,Notable Question Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 65498,349265,509184,NULL,NULL,NULL,0,NULL,NULL 65499,140631,684182,NULL,NULL,NULL,0,NULL,NULL 65500,303113,338728,NULL,NULL,NULL,0,NULL,NULL 65501,27223,687968,Supporter,NULL,NULL,0,NULL,NULL 65502,1192337,1414897,NULL,NULL,NULL,0,NULL,NULL 65503,631159,754886,NULL,NULL,NULL,0,NULL,NULL 65504,18381,468180,Yearling Nice Answer Editor Yearling,NULL,NULL,0,NULL,NULL 65505,393509,237983,NULL,NULL,NULL,0,NULL,NULL 65506,1575319,624502,NULL,NULL,NULL,0,NULL,NULL 65507,326929,1412133,Yearling Nice Answer Critic Necromancer Caucus Constituent Yearling Nice Answer Census Custodian Civic Duty Caucus Constituent Good Answer Yearling,NULL,NULL,0,NULL,NULL 65508,78864,543743,Revival Yearling Notable Question Nice Answer Enlightened Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 65509,1002533,650123,Notable Question Popular Question Popular Question Revival Notable Question Nice Question Caucus Yearling Popular Question Notable Question Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 65510,53590,27561,Good Answer Announcer Yearling Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 65511,828897,354883,Commentator Editor,NULL,NULL,0,NULL,NULL 65512,635490,1191375,NULL,NULL,NULL,0,NULL,NULL 65513,135725,941465,Nice Question,NULL,NULL,0,NULL,NULL 65514,242450,367220,Nice Answer Good Answer Nice Answer Enlightened Good Answer Yearling Guru Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Necromancer express-checkout Famous Question Guru Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 65515,116841,882288,Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 65516,184785,1204216,Yearling Good Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 65517,1942868,514153,Yearling,NULL,NULL,0,NULL,NULL 65518,193029,514153,Yearling,NULL,NULL,0,NULL,NULL 65519,294305,9436,Nice Answer Yearling Necromancer Notable Question Nice Answer Nice Answer Good Answer Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 65520,1519313,1285767,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 65521,1194254,526040,Necromancer Nice Answer Yearling Necromancer Yearling Necromancer Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 65522,8644547,393031,Revival,NULL,NULL,0,NULL,NULL 65523,1345651,393031,Revival,NULL,NULL,0,NULL,NULL 65524,11842,163633,Nice Answer Yearling Great Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Pundit scipy Yearling,NULL,NULL,0,NULL,NULL 65525,314378,1281936,NULL,NULL,NULL,0,NULL,NULL 65526,110280,483418,Popular Question,NULL,NULL,0,NULL,NULL 65527,650148,164751,Citizen Patrol Custodian Custodian Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 65528,85977,75642,Good Answer Popular Question Popular Question Notable Question Nice Answer Enlightened Famous Question Necromancer Nice Answer Notable Question Notable Question Yearling Nice Answer Nice Answer Famous Question Guru Popular Question Nice Answer Popular Question Good Question Popular Question Guru Nice Answer Necromancer Popular Question Good Answer Popular Question Nice Question Nice Answer Great Question Notable Question Good Question Popular Question Good Answer Notable Question json Necromancer Famous Question Popular Question Nice Answer Popular Question sql Good Answer Caucus Nice Answer Notable Question Good Question Famous Question Good Answer Good Question angularjs Popular Question jquery Famous Question Notable Question Yearling Nice Answer Famous Question Stellar Question Good Answer Nice Answer Nice Question Notable Question Nice Question Popular Question Great Answer Nice Answer Popular Question Good Answer Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Nice Answer Enlightened Documentation User Nice Answer Famous Question Notable Question Census Popular Question Good Answer Custodian Famous Question Popular Question Yearling Caucus Revival Notable Question asp.net Famous Question Notable Question Nice Answer Popular Question Nice Question Announcer Nice Answer Nice Question Nice Question Nice Answer Notable Question Notable Question Popular Question Popular Question Nice Answer Great Answer Famous Question Great Answer Nice Question Necromancer entity-framework Famous Question Notable Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65529,280801,321734,Famous Question Nice Question Famous Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65530,61924,842673,Enthusiast,NULL,NULL,0,NULL,NULL 65531,6082,194060,Famous Question Good Question,NULL,NULL,0,NULL,NULL 65532,127372,113800,Yearling Nice Answer Enlightened Excavator Popular Question,NULL,NULL,0,NULL,NULL 65533,423504,1087704,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 65534,434453,429595,NULL,NULL,NULL,0,NULL,NULL 65535,481796,731718,Informed Teacher Editor Organizer Supporter,NULL,NULL,0,NULL,NULL 65536,1784209,1354889,NULL,NULL,NULL,0,NULL,NULL 65537,477554,1354889,NULL,NULL,NULL,0,NULL,NULL 65538,51743,667810,Steward Unsung Hero Announcer Necromancer Yearling Custodian Announcer Tumbleweed Nice Answer Enlightened Nice Answer android Popular Question Nice Answer Caucus Constituent Nice Question Yearling Curious Notable Question Booster tesseract Tag Editor Announcer Caucus Constituent Documentation User Nice Question Popular Question Necromancer Census Good Answer Caucus Yearling Constituent Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 65539,61143,358688,Documentation User,NULL,NULL,0,NULL,NULL 65540,243267,1084832,NULL,NULL,NULL,0,NULL,NULL 65541,156618,95496,Guru Yearling cmake Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 65542,2588954,1135897,Critic,NULL,NULL,0,NULL,NULL 65543,52353,945794,NULL,NULL,NULL,0,NULL,NULL 65544,881819,1396518,NULL,NULL,NULL,0,NULL,NULL 65545,2479203,1396518,NULL,NULL,NULL,0,NULL,NULL 65546,434630,83100,Pundit Yearling Custodian Notable Question Good Question Notable Question Yearling Great Answer Popular Question Good Answer Necromancer Documentation User Necromancer Nice Answer Yearling Nice Question Nice Answer Great Answer,NULL,NULL,0,NULL,NULL 65547,125663,112671,Nice Answer Notable Question Enlightened Notable Question Guru Popular Question Yearling Good Answer Nice Answer Nice Question Guru Good Answer Nice Question Good Answer Nice Answer Enlightened Notable Question Guru Nice Question Nice Answer Revival Popular Question Nice Answer Enlightened spring Popular Question Popular Question Nice Question Popular Question Famous Question Nice Answer Enlightened Famous Question Popular Question Famous Question Nice Answer Yearling Popular Question Famous Question Notable Question Popular Question Good Answer Great Answer Nice Question Nice Question Guru Notable Question mantis Nice Answer Notable Question Guru Nice Answer Popular Question Good Answer Guru Notable Question Famous Question Popular Question Good Answer Yearling Good Answer Guru Popular Question Good Answer Good Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 65548,26605,787145,Yearling Revival Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 65549,455336,556205,NULL,NULL,NULL,0,NULL,NULL 65550,1508727,204182,Yearling Notable Question Caucus Constituent Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65551,256660,352087,Announcer,NULL,NULL,0,NULL,NULL 65552,1328558,333606,Yearling Popular Question Notable Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 65553,148612,1263292,NULL,NULL,NULL,0,NULL,NULL 65554,219418,1122135,Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Excavator Populist Caucus Nice Answer Enlightened Announcer Yearling opengl Good Answer Yearling Guru Nice Answer Nice Answer Popular Question Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65555,274142,976136,Commentator Necromancer,NULL,NULL,0,NULL,NULL 65556,165220,48391,NULL,NULL,NULL,0,NULL,NULL 65557,1433991,1420333,NULL,NULL,NULL,0,NULL,NULL 65558,230533,1554423,NULL,NULL,NULL,0,NULL,NULL 65559,37794,288829,NULL,NULL,NULL,0,NULL,NULL 65560,236900,848967,Teacher Tumbleweed Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 65561,2316341,976609,NULL,NULL,NULL,0,NULL,NULL 65562,540075,269522,NULL,NULL,NULL,0,NULL,NULL 65563,1060753,471906,Popular Question,NULL,NULL,0,NULL,NULL 65564,392159,940610,Student Scholar,NULL,NULL,0,NULL,NULL 65565,6276,565049,Yearling Notable Question Notable Question Popular Question Yearling Notable Question Nice Answer Notable Question Nice Question Notable Question Popular Question Custodian Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65566,1894391,1149649,NULL,NULL,NULL,0,NULL,NULL 65567,77312,61113,Yearling Necromancer Necromancer Yearling Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 65568,757058,952459,NULL,NULL,NULL,0,NULL,NULL 65569,1129559,1254167,NULL,NULL,NULL,0,NULL,NULL 65570,83015,1105996,powershell Caucus Yearling Disciplined Census Yearling Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65571,218937,551726,Popular Question Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 65572,1122632,443406,NULL,NULL,NULL,0,NULL,NULL 65573,91125,214702,Nice Answer Yearling Necromancer Nice Answer Nice Answer Enlightened Caucus Constituent Yearling Necromancer Nice Answer Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 65574,988000,1562431,NULL,NULL,NULL,0,NULL,NULL 65575,161212,533975,Nice Answer Enlightened Yearling Nice Answer Nice Answer Nice Answer Enlightened mongodb-.net-driver Nice Answer Enlightened Nice Answer Enlightened c# Yearling Good Answer Nice Answer Nice Answer Nice Answer Populist,NULL,NULL,0,NULL,NULL 65576,323004,338468,Reviewer Nice Answer Custodian Announcer Notable Question Yearling Caucus Necromancer Great Answer Good Question Yearling Caucus Famous Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 65577,906797,262775,NULL,NULL,NULL,0,NULL,NULL 65578,118948,109538,Necromancer Nice Answer Necromancer Good Answer Nice Answer Enlightened Yearling Good Answer Announcer Nice Answer Notable Question Nice Answer Nice Answer Announcer Nice Answer Enlightened Good Answer Yearling Necromancer Nice Answer Enlightened Great Answer Necromancer Necromancer Nice Answer Civic Duty Great Answer Excavator Yearling Nice Answer Populist Great Answer Nice Answer,NULL,pFor an href https www ietf org rfc rfc4122 txt rel noreferrer RFC4122 version compliant solution this one liner ish solution is the most compact could come up with pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return xxxxxxxx xxxx 4xxx yxxx xxxxxxxxxxxx replace xy function xD var Math random 16 amp 0x3 0x8 xD return toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD pp strongUpdate 2015 06 02 strong Be aware that UUID uniqueness relies heavily on the underlying random number generator RNG The solution above uses codeMath random code for brevity however codeMath random code is emnot em guaranteed to be high quality RNG See Adam Hyland href http bocoup com weblog random numbers rel noreferrer excellent writeup on Math random for details For more robust solution consider something like href https github com kelektiv node uuid rel noreferrer the uuid module Disclaimer the author which uses higher quality RNG APIs where available pp strongUpdate 2015 08 26 strong As side note this href https gist githubusercontent com aristus f0c311df98d92e367df0 rel noreferrer gist describes how to determine how many IDs can be generated before reaching certain probability of collision For example with 26x10sup15 sup version RFC4122 UUIDs you have in million chance of collision pp strongUpdate 2017 06 28 strong href https v8project blogspot com 2015 12 theres mathrandom and then theres html rel noreferrer good article from Chrome developers discussing the state of Math random PRNG quality in Chrome Firefox and Safari tl dr As of late 2015 it pretty good but not cryptographic quality To address that issue here an updated version of the above solution that uses ES6 the codecrypto code API and href https gist github com jed 982883 rel noreferrer bit of JS wizardy can take credit for pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return 1e7 1e3 4e3 8e3 1e11 replace 018 gt xD crypto getRandomValues new Uint8Array amp 15 gt gt toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD Example here uses it because it ubiquitous so no need to feature detect node uuid prefers the crypto API if available which it usually is see rng js files at https github com kelektiv node uuid tree master lib pFor an href https www ietf org rfc rfc4122 txt rel noreferrer RFC4122 version compliant solution this one liner ish solution is the most compact could come up with pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return xxxxxxxx xxxx 4xxx yxxx xxxxxxxxxxxx replace xy function xD var Math random 16 amp 0x3 0x8 xD return toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD pp strongUpdate 2015 06 02 strong Be aware that UUID uniqueness relies heavily on the underlying random number generator RNG The solution above uses codeMath random code for brevity however codeMath random code is emnot em guaranteed to be high quality RNG See Adam Hyland href http bocoup com weblog random numbers rel noreferrer excellent writeup on Math random for details For more robust solution consider something like href https github com kelektiv node uuid rel noreferrer the uuid module Disclaimer the author which uses higher quality RNG APIs where available pp strongUpdate 2015 08 26 strong As side note this href https gist githubusercontent com aristus f0c311df98d92e367df0 rel noreferrer gist describes how to determine how many IDs can be generated before reaching certain probability of collision For example with 26x10sup15 sup version RFC4122 UUIDs you have in million chance of collision pp strongUpdate 2017 06 28 strong href https v8project blogspot com 2015 12 theres mathrandom and then theres html rel noreferrer good article from Chrome developers discussing the state of Math random PRNG quality in Chrome Firefox and Safari tl dr As of late 2015 it pretty good but not cryptographic quality To address that issue here an updated version of the above solution that uses ES6 the codecrypto code API and href https gist github com jed 982883 rel noreferrer bit of JS wizardy can take credit for pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codefunction uuidv4 xD return 1e7 1e3 4e3 8e3 1e11 replace 018 gt xD crypto getRandomValues new Uint8Array amp 15 gt gt toString 16 xD xD xD xD console log uuidv4 code pre xD div xD div xD Not really it stops being one liner and at that point you might as well just use https github com kelektiv node uuid,0,NULL,NULL 65579,521377,1546402,NULL,NULL,NULL,0,NULL,NULL 65580,416035,299370,NULL,NULL,NULL,0,NULL,NULL 65581,3326544,688965,Citizen Patrol Revival Student Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65582,216136,688965,Citizen Patrol Revival Student Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65583,51736,18110,NULL,NULL,NULL,0,NULL,NULL 65584,21538,2662,Good Answer Yearling Nice Answer Necromancer Revival Yearling Nice Answer Nice Answer Necromancer Announcer Custodian Yearling Custodian Populist Revival Good Answer Good Answer Civic Duty Yearling Good Answer,NULL,pExpanding on answer the following can be used to get any binary response content as Buffer which you can examine further in coderequest end code ppre codefunction binaryParser res callback res setEncoding binary res data res on data function chunk res data chunk res on end function callback null new Buffer res data binary example mocha testit my test function done request app get path to image png expect 200 expect Content Type image png buffer parse binaryParser end function err res if err return done err binary response data is in res body as buffer assert ok Buffer isBuffer res body console log res res body done code pre so buffer parse binaryParser,0,NULL,NULL 65585,113965,1218659,NULL,NULL,NULL,0,NULL,NULL 65586,486508,1468565,Informed,NULL,NULL,0,NULL,NULL 65587,35022,486544,Populist Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 65588,169850,1054966,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65589,174295,1221350,NULL,NULL,NULL,0,NULL,NULL 65590,1059835,967947,NULL,NULL,NULL,0,NULL,NULL 65591,162959,289219,Good Answer Populist Yearling Popular Question Famous Question Nice Answer Enlightened Nice Answer Good Answer Nice Question Popular Question Nice Answer Good Answer Nice Question Nice Answer Yearling Necromancer Good Answer Necromancer Notable Question Guru Good Answer Custodian Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 65592,614575,1277030,NULL,NULL,NULL,0,NULL,NULL 65593,3523900,1311751,Popular Question,NULL,NULL,0,NULL,NULL 65594,30045,500120,NULL,NULL,NULL,0,NULL,NULL 65595,10415,1144384,NULL,NULL,NULL,0,NULL,NULL 65596,80143,809037,NULL,NULL,NULL,0,NULL,NULL 65597,27523,904525,NULL,NULL,NULL,0,NULL,NULL 65598,1215035,312781,Famous Question Popular Question Yearling Nice Answer Popular Question Notable Question Good Question Notable Question Nice Question Favorite Question Popular Question Yearling Nice Question Nice Answer Enlightened Famous Question Documentation User Nice Question Notable Question Great Question Yearling Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 65599,13525,80582,Popular Question Good Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 65600,444071,345597,Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65601,818237,1546158,NULL,NULL,NULL,0,NULL,NULL 65602,360382,946873,NULL,NULL,NULL,0,NULL,NULL 65603,21058,110088,Popular Question Nice Answer Enlightened Good Answer asp.net Favorite Question Yearling Nice Answer Enlightened Nice Answer Good Answer Guru Yearling Great Answer Good Answer Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 65604,531605,428586,Yearling Scholar Organizer Editor Yearling Yearling Yearling Custodian Excavator Yearling Yearling Tenacious Yearling Yearling Explainer,NULL,NULL,0,NULL,NULL 65605,2767301,360722,NULL,NULL,NULL,0,NULL,NULL 65606,209144,1190782,NULL,NULL,NULL,0,NULL,NULL 65607,301988,333068,Revival Nice Answer Announcer,NULL,NULL,0,NULL,NULL 65608,354755,73538,NULL,NULL,NULL,0,NULL,NULL 65609,67687,383561,Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 65610,1148908,341710,Notable Question Good Answer,NULL,NULL,0,NULL,NULL 65611,231625,17864,Notable Question Popular Question Good Answer Popular Question Yearling Notable Question Good Answer Yearling Census Yearling,NULL,NULL,0,NULL,NULL 65612,2841,9457,Excavator Notable Question Notable Question Yearling Nice Answer Nice Answer Yearling Announcer Booster Nice Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 65613,376830,474989,NULL,NULL,NULL,0,NULL,NULL 65614,516238,474989,NULL,NULL,NULL,0,NULL,NULL 65615,1151386,1278300,Yearling Nice Answer Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 65616,1114295,1095695,Popular Question,NULL,NULL,0,NULL,NULL 65617,130334,777779,NULL,NULL,NULL,0,NULL,NULL 65618,583752,9022,Famous Question Yearling Notable Question Nice Question Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 65619,455116,261642,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 65620,78270,1003538,Custodian,NULL,NULL,0,NULL,NULL 65621,164585,371149,NULL,NULL,NULL,0,NULL,NULL 65622,1078337,774505,NULL,NULL,NULL,0,NULL,NULL 65623,373376,467905,NULL,NULL,NULL,0,NULL,NULL 65624,491137,374128,Yearling Yearling,NULL,NULL,0,NULL,NULL 65625,222192,411343,Tag Editor Convention Popular Question,NULL,NULL,0,NULL,NULL 65626,288484,807099,NULL,NULL,,0,, 65627,1316101,1084261,NULL,NULL,NULL,0,NULL,NULL 65628,31216,252324,Yearling Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65629,108553,597447,NULL,NULL,,0,, 65630,86597,8655,Good Answer Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Guru Yearling javascript Booster Enlightened Guru Caucus Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Nice Answer Caucus Constituent Great Answer Nice Answer Nice Answer Enlightened Yearling Good Answer Documentation User Announcer Nice Answer Enlightened Announcer Guru Good Answer Guru Booster Guru Revival Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Guru Nice Answer Enlightened Announcer Good Answer Guru Yearling Guru Guru Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 65631,1515080,202609,Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Good Question Notable Question Popular Question Caucus Nice Answer Popular Question Documentation User Yearling Notable Question Caucus Good Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 65632,432921,1467976,Critic Tenacious Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 65633,1371497,221129,NULL,NULL,NULL,0,NULL,NULL 65634,156330,721040,Cleanup Custodian Self-Learner Popular Question Nice Answer Yearling Popular Question Popular Question Peer Pressure Popular Question Caucus Constituent Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Custodian Custodian Caucus Yearling Constituent Notable Question Famous Question Notable Question Nice Question Caucus Constituent Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 65635,316671,567229,NULL,NULL,NULL,0,NULL,NULL 65636,243917,399198,Informed,NULL,NULL,0,NULL,NULL 65637,1240723,1200193,NULL,NULL,NULL,0,NULL,NULL 65638,123839,1107,Yearling Caucus Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 65639,372183,527128,Notable Question,NULL,NULL,0,NULL,NULL 65640,1032346,143,Nice Answer Enlightened Good Answer Yearling Famous Question Yearling Notable Question Nice Answer Enlightened Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 65641,32518,636798,Notable Question,NULL,NULL,0,NULL,NULL 65642,676696,863770,NULL,NULL,NULL,0,NULL,NULL 65643,28855,39223,Notable Question Yearling Explainer Caucus Constituent Yearling Reviewer Census Nice Answer Documentation User Census Enthusiast Yearling Caucus Fanatic,NULL,NULL,0,NULL,NULL 65644,92762,434243,Nice Answer Enlightened Good Answer Yearling Necromancer Necromancer Nice Answer Popular Question Yearling Nice Answer Announcer Critic Announcer Nice Answer Yearling,NULL,pOk currently extracting thousands of DOIs from free form text XML and realized that href https stackoverflow com 10300246 89771 my previous approach had few problems namely regarding encoded entities and trailing punctuation so went on reading href http www doi org doi handbook Numbering html rel noreferrer the specification and this is the best could come with phrblockquote pThe DOI prefix shall be composed of directory indicator followed by registrant code These two components shall be separated by full stop period pThe directory indicator shall be 10 The directory indicator distinguishes the entire set of character strings prefix and suffix as digital object identifiers within the resolution system blockquotepEasy enough the initial code code prevents us from matching DOI that doesn start with code10 code ppre code pattern 10 code prehrblockquote pThe second element of the DOI prefix shall be the registrant code The registrant code is unique string assigned to registrant blockquotepAlso all assigned registrant code are numeric and at least digits long so ppre code pattern 10 code prehrblockquote pThe registrant code may be further divided into sub elements for administrative convenience if desired Each sub element of the registrant code shall be preceded by full stop blockquotepre code pattern 10 code prehrblockquote pThe DOI syntax shall be made up of DOI prefix and DOI suffix separated by forward slash blockquotepHowever this isn absolutely necessary section states that uncommon suffix systems may use other conventions such as code10 1000 123456 code instead of code10 1000 123456 code but lets cut some slack ppre code pattern 10 code prehrblockquote pThe DOI name is case insensitive and can incorporate any printable characters from the legal graphic characters of Unicode The DOI suffix shall consist of character string of any length chosen by the registrant Each suffix shall be unique to the prefix element that precedes it The unique suffix can be sequential number or it might incorporate an identifier generated from or based on another system blockquotepNow this is where it gets trickier from all the DOIs have processed saw the following characters besides code 9a zA code of course in their strongsuffixes strong code code so while it doesn exist the DOI code10 1016 12 31 nature S0735 1097 98 2000 12 31 34 code is completely plausible ppThe logical choice would be to use code code or the code graph code PCRE POSIX class so lets do that ppre code pattern 10 or pattern 10 graph code prehrpNow we have difficult problem the code graph code class is super set of the code punct code class which includes characters easily found in free text or any markup language code amp lt gt code among others ppLets just filter the markup ones for now using negative lookahead ppre code pattern 10 amp lt gt or pattern 10 amp lt gt graph code prehrpThe above should cover encoded entities code amp code attribute quotes code code and open close tags code lt gt code ppUnlike markup languages free text usually doesn employ punctuation characters unless they are bounded by at least one space strong emor em strong placed at the end of sentence for instance pblockquote pThis is long DOI code10 1016 12 31 nature S0735 1097 98 2000 12 31 34 code strong strong blockquotepThe solution here is to close our capture group and assert another word boundary ppre code pattern 10 amp lt gt or pattern 10 amp lt gt graph code prepAnd emvoilá em href http regexpal com flags amp regex 5Cb 10 5B 5D 5B0 5D 7B4 2C 7D 3F 3A 5B 5D 5B0 5D 2B 2F 3F 3A 3F 5B 22 26 5C 39 3C 3E 5D 5CS 2B 5Cb amp input This 20is 20a 20short 20DOI 3A 2010 1000 2F123456 0AThis 20is 20NOT 20a 20DOI 3A 204210 1000 2F123456 0AThis 20is 20a 20long 20DOI 3A 2010 1016 12 31 2Fnature S0735 1097 98 2000 2F12 2F31 2F34 3A7 0A 0A10 1007 2F978 642 28108 19 0A10 1007 10 2F978 642 28108 19 20 fictitious 20example 2C 20see 20 40Ju9OR 20comment 0A10 1016 2FS0735 1097 98 00347 0A10 1579 2F0044 7447 2006 35 5C 5B89 3ARDUICP 5C 5D2 CO 3B2 0A 0AAlso 2C 20correctly 20discards 20some 20falsy 20 7CHT ML 20stuff 20like 3A 0A 0A 3Cgeo 20coords 3D 2210 4515260 2C51 1656910 22 3E 3C 2Fgeo 3E rel noreferrer here is demo Where did you get that JIM DOI from The DOI resolver at https www doi org fails to resolve it,0,NULL,NULL 65645,240579,226377,Commentator Documentation User,NULL,NULL,0,NULL,NULL 65646,694897,226377,Commentator Documentation User,NULL,NULL,0,NULL,NULL 65647,638380,688355,Yearling Popular Question Popular Question Citizen Patrol Popular Question Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Nice Answer Enlightened Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Answer Caucus Constituent Nice Question Yearling Notable Question Good Question Notable Question Custodian Nice Answer Popular Question Popular Question Popular Question Good Answer Caucus Popular Question Popular Question Notable Question Custodian Popular Question Popular Question Yearling Popular Question Census Nice Question Revival Notable Question Caucus Popular Question Notable Question Notable Question Famous Question Guru Good Question,NULL,NULL,0,NULL,NULL 65648,27919,307363,Tumbleweed Excavator Yearling Curious Commentator Critic Popular Question Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 65649,801971,629035,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65650,112616,1299787,Popular Question Tumbleweed Notable Question Popular Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65651,61685,96996,Popular Question Nice Question Notable Question Good Answer Yearling Custodian Yearling Nice Question Self-Learner Explainer Necromancer Famous Question Popular Question Yearling Popular Question Nice Answer Nice Answer Revival Custodian Popular Question,NULL,NULL,0,NULL,NULL 65652,335495,83446,Famous Question Yearling Nice Answer Nice Answer Good Answer Famous Question Revival Great Question Revival Custodian Yearling Notable Question Nice Question Necromancer Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 65653,505015,824082,NULL,NULL,NULL,0,NULL,NULL 65654,1061465,780516,NULL,NULL,NULL,0,NULL,NULL 65655,8415144,780516,NULL,NULL,NULL,0,NULL,NULL 65656,1217102,471745,Nice Answer Enlightened Enthusiast Nice Answer Popular Question Yearling Nice Question Notable Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 65657,1040920,888322,Popular Question,NULL,NULL,0,NULL,NULL 65658,6421963,813726,NULL,NULL,NULL,0,NULL,NULL 65659,437329,813726,NULL,NULL,NULL,0,NULL,NULL 65660,127368,926427,NULL,NULL,NULL,0,NULL,NULL 65661,64511,703144,Yearling Notable Question Civic Duty Caucus Yearling Citizen Patrol Necromancer Necromancer Guru Nice Answer Tumbleweed Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65662,50938,8581,Custodian Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 65663,158035,666539,Disciplined Supporter Enthusiast,NULL,NULL,0,NULL,NULL 65664,1149978,331349,NULL,NULL,NULL,0,NULL,NULL 65665,114683,1491079,NULL,NULL,NULL,0,NULL,NULL 65666,1111338,732570,Informed Autobiographer Enthusiast Notable Question Popular Question Yearling Popular Question Yearling Notable Question Census Notable Question Yearling Popular Question Nice Question Yearling Tenacious Nice Question Popular Question Popular Question Yearling Custodian Notable Question Notable Question Census Popular Question Nice Question Popular Question Notable Question Popular Question Civic Duty Famous Question Popular Question Yearling Inquisitive Custodian Nice Answer Enlightened Popular Question Nice Question,NULL,pUsing href http jsfiddle net josh3736 Z5pLM rel noreferrer simple test ppre codevar function inc inc inc code preh1Internet Explorer h1ulliIE6 1130 liliIE7 2553 liliIE8 1475 liliIE9 20678 liliIE10 20677 li ulh1Mozilla Firefox h1ulli3 3000 lili4 9015 lili5 9015 lili6 9015 lili7 65533 lili8b3 63485 lili17 50762 lili18 52596 lili19 52458 lili42 281810 li ulh1Google Chrome h1ulli14 26177 lili15 26168 lili16 26166 lili25 25090 lili47 20878 lili51 41753 li ulh1Safari h1ulli4 52426 lili5 65534 lili9 63444 li ulh1Opera h1ulli10 10 9999 lili10 62 32631 lili11 32631 lili12 32631 li ulhrpIn regard to your question use your browser developer tools to see the stack In IE hit kbdF12 kbd go to the Script tab and click Start Debugging It will break when an exception is thrown and you can see the call stack You can also use Chrome developer tools kbdCtrl kbd kbdShift kbd kbdJ kbd think that the numbers don map to the browser but to the memory currently reserved by the application because of this answers vary widely For exampl just ran that test and get 20922 for Chrome 56 with lot of extensions and 8921 for rather plain vanilla Firefox 49 With an absolutely stock edge browser get 16615,0,NULL,NULL 65667,106809,603073,NULL,NULL,NULL,0,NULL,NULL 65668,448713,309833,Student,NULL,NULL,0,NULL,NULL 65669,45848,438886,Nice Question Announcer Notable Question Nice Answer Enlightened Good Answer Necromancer Populist Announcer Nice Answer Enlightened Necromancer Good Answer Good Answer Yearling Nice Answer Revival Nice Answer Enlightened Good Answer Booster Investor Revival Nice Answer Enlightened Great Answer Necromancer Publicist Nice Answer Enlightened Announcer Yearling Populist Necromancer Good Answer Guru Announcer Nice Answer Enlightened Announcer Necromancer Yearling Nice Answer Necromancer Necromancer,NULL,NULL,1,make play json read the empty string as None for type of Option scala playframework scala option play json pI attempting to parse json from the GitHub API with play json and encountering problem with the codemerge commit sha code field on Pull Requests incidentally know this field is deprecated but don want to discuss that in this parsing problem Unfortunately codemerge commit sha code field comes back as the empty string in some cases ppre code merge commit sha code prepThis is how the field is href https github com rtyley play git hub blob 24db961 src main scala com madgag scalagithub model PullRequest scala L119 rel nofollow declared in my case class ppre codemerge commit sha Option ObjectId code prepI have an href https github com rtyley play git hub blob 25f2c4c7 src main scala com madgag scalagithub package scala L25 L34 rel nofollow implicit codeFormat ObjectId code which does not tolerate the empty string because that not valid value for Git hash id also using play json macro generated codeRead PullRequest code which like to keep on using in preference to individually declaring reads for every single field on pull requests ppAs ve declared the field to be an Option like code merge commit sha code to be read as the value codeNone code but this is not what currently happens string is present so the codeFormat ObjectId code is invoked and returns codeJsFailure code ppOne thing tried was declaring an implicit codeFormat Option ObjectId code with the required behaviour but it didn seem to get used by the macro generated codeRead PullRequest code,NULL 65670,282650,1060349,Popular Question Revival Nice Answer Popular Question Notable Question Caucus Constituent Yearling Nice Answer Enlightened Nice Answer Enlightened Necromancer Popular Question Good Answer Nice Answer Nice Answer Enlightened Great Answer Caucus Notable Question Necromancer Necromancer python Necromancer Yearling Census Notable Question Custodian Nice Answer Popular Question Caucus Nice Answer Constituent Custodian Necromancer Necromancer Popular Question Necromancer Necromancer Necromancer Popular Question Notable Question Nice Answer Necromancer Civic Duty Inquisitive Notable Question Yearling Nice Answer,NULL,pBuilding on the answers from conny and shadowmatter here code that will check if you are using SQLite3 before emitting the PRAGMA statement ppre codefrom sqlalchemy import eventfrom sqlalchemy engine import Enginefrom sqlite3 import Connection as SQLite3Connection listens for Engine connect def set sqlite pragma dbapi connection connection record if isinstance dbapi connection SQLite3Connection cursor dbapi connection cursor cursor execute PRAGMA foreign keys ON cursor close code pre this also does the magic for pandas to sql as well just copy it at the begining of the file that creates the session pUse the codeFigure savefig code method like so ppre codeax hist is an instance of Seriesfig ax get figure fig savefig path to figure pdf code prepIt doesn have to end in codepdf code there are many options Check out href http matplotlib org api figure api html highlight savefig matplotlib figure Figure savefig rel noreferrer the documentation ppAlternatively you can use the codepyplot code interface and just call the codesavefig code as function to save the most recently created figure ppre codeimport matplotlib pyplot as plts hist plt savefig path to figure pdf saves the current figure code pre if you are getting this error AttributeError numpy ndarray object has no attribute get figure then it is likely that you are plotting multiple columns hist columns colA colB In this case ax will be an array of all the axes You can try ax get figure or ax get figure,0,NULL,NULL 65671,852853,1452876,Critic Notable Question,NULL,NULL,0,NULL,NULL 65672,87196,543177,NULL,NULL,NULL,0,NULL,NULL 65673,14784,1397124,NULL,NULL,NULL,0,NULL,NULL 65674,166010,673904,NULL,NULL,NULL,0,NULL,NULL 65675,194154,1038962,Informed,NULL,NULL,0,NULL,NULL 65676,541399,1178157,Scholar Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 65677,464090,546950,Caucus Commentator Yearling Caucus Autobiographer Critic Informed Yearling Necromancer Student,NULL,NULL,0,NULL,NULL 65678,4460375,611109,NULL,NULL,NULL,0,NULL,NULL 65679,106300,325673,NULL,NULL,NULL,0,NULL,NULL 65680,82352,353790,Good Question Nice Answer Enlightened Good Answer Guru Good Answer Good Answer Yearling Nice Question Good Answer Necromancer Favorite Question Popular Question Popular Question Good Answer Popular Question Guru Nice Answer Guru Notable Question Yearling Nice Answer Famous Question Caucus Notable Question Nice Answer Famous Question Nice Answer Guru Nice Answer Nice Answer Famous Question Notable Question Great Answer Yearling Notable Question Popular Question Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 65681,534865,1072707,NULL,NULL,NULL,0,NULL,NULL 65682,346083,894165,NULL,NULL,NULL,0,NULL,NULL 65683,24750,24109,Popular Question Popular Question Notable Question Revival Nice Question Stellar Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question c# Popular Question Notable Question Nice Answer Yearling Necromancer Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Nice Answer Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Announcer Popular Question Popular Question Famous Question Famous Question Popular Question Nice Question Famous Question Yearling Nice Question Good Answer Nice Question Notable Question Popular Question Notable Question Favorite Question Nice Answer Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Great Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65684,403348,131208,Yearling,NULL,NULL,0,NULL,NULL 65685,258962,450163,Student,NULL,NULL,0,NULL,NULL 65686,41539,315117,Guru Yearling,NULL,NULL,0,NULL,NULL 65687,33196,305324,Yearling Nice Answer Popular Question Necromancer Popular Question Popular Question Yearling Necromancer Necromancer Notable Question Popular Question Announcer Yearling Popular Question Pundit Nice Answer,NULL,NULL,0,NULL,NULL 65688,298995,726378,Notable Question Nice Question Yearling Good Answer Popular Question Nice Answer Necromancer Yearling Nice Answer Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 65689,129809,892190,NULL,NULL,NULL,0,NULL,NULL 65690,429295,1052288,NULL,NULL,NULL,0,NULL,NULL 65691,434063,1202750,NULL,NULL,NULL,0,NULL,NULL 65692,399318,1301871,Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 65693,1366278,1380896,NULL,NULL,NULL,0,NULL,NULL 65694,86559,680394,Popular Question Nice Question Nice Answer Popular Question Necromancer Notable Question Civic Duty Revival Yearling,NULL,NULL,0,NULL,NULL 65695,31143,582333,Revival Necromancer Revival Commentator Revival Yearling Necromancer Organizer,NULL,NULL,0,NULL,NULL 65696,2296343,1347570,NULL,NULL,NULL,0,NULL,NULL 65697,230339,1279645,Nice Answer,NULL,NULL,0,NULL,NULL 65698,162408,1200671,NULL,NULL,NULL,0,NULL,NULL 65699,314023,1317808,NULL,NULL,NULL,0,NULL,NULL 65700,87195,1021500,Yearling,NULL,NULL,0,NULL,NULL 65701,97448,95667,Good Question Yearling Notable Question Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 65702,410551,991411,Nice Question Custodian Custodian Citizen Patrol Caucus Good Question,NULL,NULL,0,NULL,NULL 65703,269263,911547,NULL,NULL,NULL,0,NULL,NULL 65704,1517836,14183,Custodian,NULL,NULL,0,NULL,NULL 65705,469372,1403270,NULL,NULL,NULL,0,NULL,NULL 65706,269607,1112019,NULL,NULL,NULL,0,NULL,NULL 65707,448094,661137,NULL,NULL,NULL,0,NULL,NULL 65708,344690,462287,NULL,NULL,NULL,0,NULL,NULL 65709,129337,258813,Famous Question Notable Question Yearling Popular Question Notable Question Nice Answer Excavator Notable Question Revival Famous Question Nice Answer Popular Question Nice Question Nice Question Good Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Famous Question Popular Question Nice Answer Popular Question Popular Question Famous Question Nice Answer Notable Question Good Answer Popular Question Popular Question Yearling Famous Question java spring-mvc Notable Question Revival spring Popular Question Nice Question Famous Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65710,1508030,1104571,Census Yearling Guru Caucus Necromancer,NULL,NULL,0,NULL,NULL 65711,900698,929795,NULL,NULL,NULL,0,NULL,NULL 65712,116327,1058910,Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 65713,167493,1130977,NULL,NULL,NULL,0,NULL,NULL 65714,1716685,1122681,Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Enthusiast Popular Question Famous Question Necromancer Popular Question Famous Question Popular Question Notable Question Popular Question Yearling Necromancer Popular Question Notable Question Inquisitive Notable Question Popular Question Caucus Civic Duty Famous Question Popular Question Yearling Necromancer Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 65715,361611,208581,Autobiographer Revival Necromancer Nice Answer Revival Revival Necromancer Yearling Caucus Necromancer Nice Answer Good Answer Necromancer Necromancer Yearling Revival ebean Yearling,NULL,NULL,0,NULL,NULL 65716,109758,69047,Yearling Nice Answer Enlightened Popular Question Civic Duty Yearling Revival Custodian Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 65717,282622,1075486,NULL,NULL,NULL,0,NULL,NULL 65718,517305,641846,NULL,NULL,NULL,0,NULL,NULL 65719,168732,656527,Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 65720,53301,556934,NULL,NULL,NULL,0,NULL,NULL 65721,91388,511970,NULL,NULL,NULL,0,NULL,NULL 65722,1098624,220103,Famous Question,NULL,NULL,0,NULL,NULL 65723,1013325,220103,Famous Question,NULL,NULL,0,NULL,NULL 65724,44632,373968,Nice Answer,NULL,NULL,0,NULL,NULL 65725,99636,424991,Critic Editor Announcer,NULL,NULL,0,NULL,NULL 65726,161513,1389335,NULL,NULL,NULL,0,NULL,NULL 65727,42529,1313106,Student Autobiographer,NULL,NULL,0,NULL,NULL 65728,435052,1063997,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 65729,162921,1545472,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 65730,844282,965886,NULL,NULL,NULL,0,NULL,NULL 65731,216474,286171,Notable Question Necromancer Yearling Census Revival,NULL,NULL,0,NULL,NULL 65732,640238,278205,Famous Question Yearling Notable Question Notable Question Yearling Self-Learner Notable Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 65733,67988,974962,NULL,NULL,NULL,0,NULL,NULL 65734,843942,437742,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65735,146839,966616,NULL,NULL,NULL,0,NULL,NULL 65736,390077,1332093,NULL,NULL,NULL,0,NULL,NULL 65737,582881,1223804,NULL,NULL,NULL,0,NULL,NULL 65738,61361,489019,Good Answer Notable Question,NULL,NULL,0,NULL,NULL 65739,77843,1391329,NULL,NULL,NULL,0,NULL,NULL 65740,447812,461931,NULL,NULL,NULL,0,NULL,NULL 65741,30473,1152863,NULL,NULL,NULL,0,NULL,NULL 65742,259147,1375675,NULL,NULL,NULL,0,NULL,NULL 65743,1666842,1466972,NULL,NULL,NULL,0,NULL,NULL 65744,1666843,1466972,NULL,NULL,NULL,0,NULL,NULL 65745,210173,14405,Yearling Editor Nice Answer Scholar Revival Revival Yearling,NULL,NULL,1,NULL,Django postgres HStoreField order by django postgresql pCan order the results of QuerySet by values inside of HStoreField for example ve got model ppre codeclass Product model Models name CharField max length 100 properties HStoreField code prepAnd want to store some properties of my product in HStoreField like ppre code discount 10 color white code prepIn view want to order the resulting QuerySet by discount pThe above answer does not work Order transforms were never implemented for codeHStoreField code see href https code djangoproject com ticket 24747 rel nofollow noreferrer https code djangoproject com ticket 24747 ppBut the suggestion in href https code djangoproject com ticket 24592 rel nofollow noreferrer https code djangoproject com ticket 24592 works Here is some more detail ppre codefrom django contrib gis db models import TextField HStoreField Modelfrom django db models import Func Valueclass MyThing Model name TextField keys HStoreField things MyThing name foo MyThing name bar MyThing name baz things keys movie Jaws things keys movie Psycho things keys movie The Birds things keys rating 5things keys rating 4things keys year 1963 Informal searchMyThing objects filter keys has key rating order by Func keys Value movie function arg joiner gt output field TextField code prepThe formal search is exactly as described in the second link above Use the imports in the above snippet with that code 65746,43760,1154755,Supporter,NULL,NULL,0,NULL,NULL 65747,366919,1456,Yearling Nice Question Nice Answer Good Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 65748,86505,305973,Necromancer Necromancer Revival Nice Answer Enlightened Good Answer Necromancer Nice Answer Yearling Nice Answer Necromancer jgit Revival Nice Answer Nice Answer Enlightened Nice Answer Good Answer Pundit Necromancer Nice Answer Enlightened Nice Answer Curious Good Answer Great Answer Nice Answer Nice Answer Popular Question Nice Answer Necromancer Necromancer Guru Yearling Mortarboard Nice Answer Enlightened Guru Nice Answer Nice Answer Announcer Announcer Nice Answer Announcer Announcer Necromancer Documentation User Good Answer Nice Answer Revival Necromancer Nice Answer Nice Answer Nice Answer Yearling Good Answer Announcer Good Answer Nice Question Necromancer Nice Answer Necromancer Famous Question,NULL,pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code It finds 16db9fef5c581ab0c56137d04ef08ef1bf82b0b7 here when run it on your paste is that not expected What OS are you on pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code Can you try replacing sort with sort pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code out of ideas then you ll have to help me debug this Can you try to find Docker image that has the problem so can reproduce it tried with fedora pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code Wow thanks ll update my answer think is more appropriate in this case as otherwise we re mixing two different orderings pAdd this to your code gitconfig code ppre code alias find merge sh commit amp amp branch HEAD amp amp git rev list commit branch ancestry path cat git rev list commit branch first parent cat sort k2 uniq f1 sort tail cut f2 show merge sh merge git find merge amp amp merge amp amp git show merge code prepThen you can use the aliases like this ppre code current branchgit find merge lt SHA gt specify mastergit find merge lt SHA gt master code prepTo see the merge commit message and other details use codegit show merge code with the same arguments pp Based on href https stackoverflow com 8492711 305973 Gauthier answer Thanks to href https stackoverflow com users 1630648 rosen matev Rosen Matev and href https stackoverflow com users 452210 javabrett javabrett for correcting problem with codesort code Nothing it just one command instead of two for convenience,0,NULL,NULL 65749,403956,578483,Teacher Supporter Editor Scholar Student,NULL,NULL,0,NULL,NULL 65750,600190,993124,NULL,NULL,NULL,0,NULL,NULL 65751,490054,613540,Yearling Necromancer Revival Notable Question Popular Question Notable Question Notable Question Revival Nice Answer Nice Question Necromancer Nice Question Nice Question Popular Question Good Answer Announcer Yearling Necromancer Popular Question Pundit Notable Question javascript Caucus Nice Answer Popular Question Famous Question Necromancer Necromancer Good Answer Necromancer Yearling Nice Question Nice Answer Inquisitive Famous Question Nice Answer Popular Question Necromancer Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65752,427061,881975,NULL,NULL,NULL,0,NULL,NULL 65753,38601,1912,Favorite Question Notable Question Famous Question Good Question Popular Question Nice Question Nice Question Notable Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Yearling Nice Question Popular Question Famous Question Good Question Famous Question Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Nice Question Popular Question Famous Question Famous Question Favorite Question Notable Question Famous Question Popular Question Popular Question Notable Question Great Answer Popular Question Popular Question Famous Question Notable Question Nice Question Good Question Nice Question Notable Question Notable Question Yearling Great Question Good Question Good Question Nice Question Good Question Notable Question Notable Question Famous Question Notable Question Famous Question Nice Question Popular Question Popular Question Notable Question Nice Question Popular Question Nice Question Favorite Question Good Question Good Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 65754,69029,132317,Census Popular Question,NULL,NULL,0,NULL,NULL 65755,402967,931904,NULL,NULL,NULL,0,NULL,NULL 65756,8638,1561211,Nice Answer Commentator Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 65757,331496,426840,Yearling Nice Answer Necromancer Caucus Nice Answer Popular Question Nice Answer Enlightened Yearling Documentation User Popular Question Census Caucus Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 65758,74880,974272,Popular Question Good Question Famous Question Nice Answer Yearling Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Notable Question Great Answer Popular Question Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65759,12405,662170,NULL,NULL,NULL,0,NULL,NULL 65760,53633,713805,Good Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 65761,52970,136194,Popular Question Good Answer Nice Answer Yearling Nice Answer Nice Answer Yearling Popular Question Notable Question Custodian Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 65762,169447,1100580,Nice Answer,NULL,NULL,0,NULL,NULL 65763,1692619,1152213,Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 65764,486538,501420,NULL,NULL,NULL,0,NULL,NULL 65765,1288483,1349865,Yearling Favorite Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65766,150117,137627,Populist Yearling Popular Question Famous Question Necromancer Custodian Custodian Organizer Custodian Custodian Great Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 65767,392378,867923,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 65768,97199,427977,NULL,NULL,NULL,0,NULL,NULL 65769,153146,905675,NULL,NULL,NULL,0,NULL,NULL 65770,5098925,1238106,Necromancer,NULL,NULL,0,NULL,NULL 65771,903263,1378768,Yearling Custodian Tenacious Yearling Autobiographer Nice Answer Yearling Caucus Census Caucus Yearling Excavator Necromancer Yearling,NULL,NULL,0,NULL,NULL 65772,578825,869939,NULL,NULL,NULL,0,NULL,NULL 65773,1085452,586201,Famous Question,NULL,NULL,0,NULL,NULL 65774,141508,887778,Commentator Critic Necromancer Revival Notable Question Yearling Revival Necromancer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 65775,799493,1478353,NULL,NULL,NULL,0,NULL,NULL 65776,271381,110009,Famous Question Notable Question Yearling Nice Answer Popular Question Nice Question Notable Question Yearling Notable Question Nice Answer Good Answer Yearling Peer Pressure Necromancer,NULL,NULL,0,NULL,NULL 65777,453303,1236875,NULL,NULL,NULL,0,NULL,NULL 65778,3504660,112451,Nice Answer Famous Question Good Answer Notable Question Good Answer Popular Question Yearling Popular Question Notable Question Famous Question Populist Popular Question Nice Question Notable Question Yearling Nice Answer Enlightened Popular Question Popular Question Custodian Guru Notable Question Popular Question Caucus Nice Answer Enlightened Yearling Famous Question Nice Question Popular Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 65779,1044724,112451,Nice Answer Famous Question Good Answer Notable Question Good Answer Popular Question Yearling Popular Question Notable Question Famous Question Populist Popular Question Nice Question Notable Question Yearling Nice Answer Enlightened Popular Question Popular Question Custodian Guru Notable Question Popular Question Caucus Nice Answer Enlightened Yearling Famous Question Nice Question Popular Question Popular Question Great Answer,NULL,NULL,0,NULL,NULL 65780,1522884,101909,Popular Question Good Question Necromancer Good Answer Yearling Favorite Question Nice Question Nice Question Notable Question Excavator Popular Question Inquisitive Popular Question Notable Question Popular Question Yearling Nice Question Notable Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 65781,26227,67524,Popular Question Good Answer Revival Popular Question Yearling Notable Question Notable Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 65782,1552675,597336,NULL,NULL,NULL,0,NULL,NULL 65783,137531,386102,Famous Question Nice Question Famous Question Yearling Necromancer Nice Question Notable Question Famous Question Yearling Notable Question Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 65784,60396,689971,Necromancer Nice Answer Yearling Critic Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 65785,125871,129895,Famous Question Good Answer Inquisitive Yearling Popular Question Popular Question Popular Question Notable Question Caucus Popular Question Good Question Nice Question Custodian Nice Answer Enlightened Popular Question Yearling Caucus Nice Answer Enlightened Nice Question Nice Answer Enlightened Nice Answer visual-studio-code Enlightened Guru Nice Answer Enlightened Census Tenacious Caucus Popular Question Popular Question Notable Question Notable Question Yearling Nice Answer Good Answer Good Answer,NULL,NULL,0,NULL,NULL 65786,1424545,1247058,NULL,NULL,NULL,0,NULL,NULL 65787,447998,168152,NULL,NULL,NULL,0,NULL,NULL 65788,77610,340671,NULL,NULL,NULL,0,NULL,NULL 65789,523969,1212228,NULL,NULL,NULL,0,NULL,NULL 65790,114215,442584,Informed Autobiographer,NULL,NULL,0,NULL,NULL 65791,232489,257473,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65792,217670,625707,Notable Question Notable Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 65793,1348701,567591,NULL,NULL,NULL,0,NULL,NULL 65794,241012,1138239,NULL,NULL,NULL,0,NULL,NULL 65795,29866,97337,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Revival Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer swift2 Nice Answer Nice Answer Enlightened arrays cocoa Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened objective-c-blocks Good Answer core-animation Guru Great Answer Nice Answer Good Answer Announcer Nice Answer memory-leaks nstimer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened core-graphics Nice Answer Nice Answer nsdate Nice Answer Nice Answer Nice Answer Enlightened Revival Good Answer Popular Question Revival Nice Answer Enlightened Nice Answer Enlightened protocols Nice Answer Enlightened Nice Answer Nice Question Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Announcer Revival Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Populist Good Answer Nice Answer Caucus Nice Answer Nice Answer Enlightened cocoa-touch Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened aes swift3 Nice Answer Enlightened Revival Revival Nice Answer Guru Good Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Revival Guru Good Answer Revival Nice Answer Great Answer uilabel Nice Answer Guru Popular Question Nice Answer Good Answer string Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened key-value-observing Nice Answer Enlightened Documentation User Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer macos macos memory Census Nice Answer Enlightened initialization Revival Nice Answer Enlightened Nice Answer Guru nsmutablearray Caucus Nice Answer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Guru Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Favorite Question Nice Answer Yearling Good Answer function cryptography Nice Answer Enlightened swift4 Great Answer unix Great Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Notable Question Fanatic Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer generics Good Answer Populist Nice Answer Enlightened json Notable Question Epic Nice Answer Nice Answer Enlightened Nice Answer Enlightened Revival Nice Answer Enlightened Guru Necromancer optional Great Answer swift-protocols,NULL,is correct about the problem not going to discuss that further except to make one point yes for small values of coden code and large values of codeRAND MAX code the modulo bias can be very small But using bias inducing pattern means that you must consider the bias every time you calculate random number and choose different patterns for different cases And if you make the wrong choice the bugs it introduces are subtle and almost impossible to unit test Compared to just using the proper tool such as codearc4random uniform code that extra work not less work Doing more work and getting worse solution is terrible engineering especially when doing it right every time is easy on most platforms ppUnfortunately the implementations of the solution are all incorrect or less efficient than they should be Each solution has various comments explaining the problems but none of the solutions have been fixed to address them This is likely to confuse the casual answer seeker so providing known good implementation here ppAgain the best solution is just to use href http www openbsd org cgi bin man cgi query arc4random amp sektion rel noreferrer codearc4random uniform code on platforms that provide it or similar ranged solution for your platform such as href http docs oracle com javase docs api java util Random html nextInt 28 29 rel noreferrer codeRandom nextInt code on Java It will do the right thing at no code cost to you This is almost always the correct call to make ppIf you don have codearc4random uniform code then you can use the power of opensource to see exactly how it is implemented on top of wider range RNG codear4random code in this case but similar approach could also work on top of other RNGs ppHere is the href http www openbsd org cgi bin cvsweb src lib libc crypt arc4random rel noreferrer OpenBSD implementation ppre code Calculate uniformly distributed random number less than upper bound avoiding modulo bias Uniformity is achieved by generating new random numbers until the one returned is outside the range 32 upper bound This guarantees the selected random number will be inside 32 upper bound 32 which maps back to upper bound after reduction modulo upper bound int32 tarc4random uniform int32 upper bound int32 min if upper bound lt return 32 32 min upper bound upper bound This could theoretically loop forever but each retry has gt worst case usually far better of selecting number inside the range we need so it should rarely need to re roll for arc4random if gt min break return upper bound code prepIt is worth noting the latest commit comment on this code for those who need to implement similar things pblockquote pChange arc4random uniform to calculate code2 32 upper bound as code upper bound upper bound Simplifies the code and makes it the same on both ILP32 and LP64 architectures and also slightly faster on LP64 architectures by using 32 bit remainder instead of 64 bit remainder pPointed out by Jorden Verwer on tech ok deraadt no objections from djm or otto blockquotepThe Java implementation is also easily findable see previous link ppre codepublic int nextInt int if lt throw new IllegalArgumentException must be positive if amp is power of return int long next 31 gt gt 31 int bits val do bits next 31 val bits while bits val lt return val code pre On iOS and OS arc4random reads from dev random which is the highest quality entropy in the system The arc4 in the name is historic and preserved for compatibility pYou can run external programs using codeNSTask code For example from href http square the circle com 2014 08 03 executing system command from macos app swift Circle and Square ppre codeimport Foundationfunc executeCommand command String args String gt String let task NSTask task launchPath command task arguments args let pipe NSPipe task standardOutput pipe task launch let data pipe fileHandleForReading readDataToEndOfFile let output String NSString data data encoding NSUTF8StringEncoding return output let commandOutput executeCommand bin echo Hello am here println Command output commandOutput code pre It is not possible to run external tasks on iOS,0,NULL,NULL 65796,121257,634942,Supporter Editor Revival Quorum Necromancer,NULL,NULL,0,NULL,NULL 65797,952844,600851,Curious Teacher,NULL,NULL,0,NULL,NULL 65798,537464,1382213,NULL,NULL,NULL,0,NULL,NULL 65799,246302,947259,NULL,NULL,NULL,0,NULL,NULL 65800,455698,1048620,NULL,NULL,NULL,0,NULL,NULL 65801,1546252,63369,Popular Question Yearling Pundit Popular Question Civic Duty Notable Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 65802,162426,312671,Supporter Notable Question,NULL,NULL,0,NULL,NULL 65803,1531961,444864,NULL,NULL,NULL,0,NULL,NULL 65804,122771,858398,Student,NULL,NULL,0,NULL,NULL 65805,1030866,528857,NULL,NULL,NULL,0,NULL,NULL 65806,17883,111848,Yearling Enlightened Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65807,303041,779249,Popular Question Inquisitive Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 65808,571051,1621,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 65809,472396,672400,Yearling Nice Answer Popular Question Commentator Popular Question Self-Learner Notable Question Yearling Critic Necromancer Nice Answer Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 65810,16294,759682,Yearling Guru Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 65811,118141,1223759,NULL,NULL,NULL,0,NULL,NULL 65812,795913,702931,Curious Revival Necromancer Notable Question javascript Yearling Notable Question Good Question Populist Nice Question Popular Question Revival asp.net-mvc Revival Yearling Nice Answer Great Answer Great Answer Yearling node.js Necromancer Revival Popular Question,NULL,NULL,0,NULL,NULL 65813,17973,1326790,NULL,NULL,NULL,0,NULL,NULL 65814,242766,796669,NULL,NULL,NULL,0,NULL,NULL 65815,441055,700771,Notable Question,NULL,NULL,0,NULL,NULL 65816,455412,213320,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 65817,206359,488042,NULL,NULL,NULL,0,NULL,NULL 65818,1388869,826497,NULL,NULL,NULL,0,NULL,NULL 65819,86509,310385,Nice Question Yearling Notable Question Custodian Notable Question Necromancer Famous Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Good Question Popular Question Yearling Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 65820,881717,276238,NULL,NULL,NULL,0,NULL,NULL 65821,362147,331404,Student,NULL,NULL,0,NULL,NULL 65822,1018361,1348474,NULL,NULL,NULL,0,NULL,NULL 65823,874892,47818,Supporter,NULL,NULL,0,NULL,NULL 65824,372771,537235,Self-Learner,NULL,NULL,0,NULL,NULL 65825,137854,549094,Famous Question Nice Question Curious Popular Question Editor Popular Question Commentator Critic Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 65826,69242,1497248,NULL,NULL,NULL,0,NULL,NULL 65827,862822,1506086,Informed Teacher Self-Learner Editor Scholar Student Supporter,NULL,NULL,0,NULL,NULL 65828,300568,76430,NULL,NULL,NULL,0,NULL,NULL 65829,53,137780,NULL,NULL,NULL,0,NULL,NULL 65830,250148,1408329,Scholar Editor Student,NULL,NULL,0,NULL,NULL 65831,329377,560403,NULL,NULL,NULL,0,NULL,NULL 65832,981532,128456,NULL,NULL,NULL,0,NULL,NULL 65833,660142,903275,NULL,NULL,NULL,0,NULL,NULL 65834,1119835,1238088,NULL,NULL,NULL,0,NULL,NULL 65835,307064,1337418,NULL,NULL,NULL,0,NULL,NULL 65836,148356,326430,Yearling Good Question Notable Question Guru Famous Question Popular Question Yearling Notable Question Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 65837,765092,1195761,Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65838,72577,438175,NULL,NULL,NULL,0,NULL,NULL 65839,446482,225134,Yearling Yearling Custodian Yearling Nice Answer Popular Question Yearling Citizen Patrol Custodian Tumbleweed Yearling Enthusiast Good Answer Yearling Guru Self-Learner Popular Question Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 65840,160882,285863,NULL,NULL,NULL,0,NULL,NULL 65841,91032,1058718,NULL,NULL,NULL,0,NULL,NULL 65842,181056,953366,Revival,NULL,NULL,0,NULL,NULL 65843,166705,453750,NULL,NULL,NULL,0,NULL,NULL 65844,62289,834992,NULL,NULL,NULL,0,NULL,NULL 65845,444618,1307375,Popular Question,NULL,NULL,0,NULL,NULL 65846,1505287,1078685,Popular Question Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 65847,478967,149956,Custodian Excavator Civic Duty Yearling Popular Question Revival Caucus Announcer Yearling Nice Answer Enlightened Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 65848,208762,1501533,Popular Question,NULL,NULL,0,NULL,NULL 65849,35421,414072,NULL,NULL,NULL,0,NULL,NULL 65850,159725,189607,NULL,NULL,NULL,0,NULL,NULL 65851,169875,11324,Nice Question Good Question Famous Question Famous Question Great Question Famous Question Yearling Favorite Question Famous Question Famous Question Yearling Civic Duty Nice Question Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65852,443354,857159,Popular Question Commentator Curious,NULL,NULL,0,NULL,NULL 65853,77327,644707,NULL,NULL,NULL,0,NULL,NULL 65854,236374,1423912,NULL,NULL,NULL,0,NULL,NULL 65855,16771,386308,NULL,NULL,NULL,0,NULL,NULL 65856,877977,178680,Nice Question Yearling,NULL,NULL,0,NULL,NULL 65857,178417,549548,NULL,NULL,NULL,0,NULL,NULL 65858,294465,652553,NULL,NULL,NULL,0,NULL,NULL 65859,129828,229663,NULL,NULL,NULL,0,NULL,NULL 65860,1198492,108938,Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 65861,125090,430128,Necromancer Necromancer Necromancer Nice Question Great Answer Famous Question Necromancer Nice Answer Yearling Good Answer Nice Answer Enlightened Necromancer java Organizer Revival Necromancer Announcer Good Answer Necromancer Announcer Notable Question Nice Answer Enlightened Nice Answer Nice Question Nice Answer Revival Good Answer Custodian Custodian Nice Answer Nice Answer Necromancer Pundit Yearling Necromancer Documentation User Popular Question Nice Answer Guru Necromancer Popular Question Revival Good Answer Revival Nice Answer Enlightened Revival Good Answer Nice Answer Necromancer Announcer Nice Answer Good Answer Announcer Yearling Good Question,NULL,NULL,0,NULL,NULL 65862,13374,1423917,Teacher,NULL,NULL,0,NULL,NULL 65863,243489,941476,Critic Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 65864,471346,616623,NULL,NULL,NULL,0,NULL,NULL 65865,324278,670532,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 65866,207786,682968,Custodian Steward Yearling Guru Necromancer Popular Question Good Answer Yearling Caucus Nice Answer Good Answer python Nice Answer Enlightened Great Answer Notable Question Yearling Nice Answer Enlightened Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65867,1075617,494476,Yearling Caucus Constituent Nice Answer Yearling Caucus Documentation User,NULL,NULL,0,NULL,NULL 65868,205312,133198,Good Answer Yearling Good Answer Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 65869,898922,437121,Enthusiast Revival,NULL,NULL,0,NULL,NULL 65870,439356,1001281,NULL,NULL,NULL,0,NULL,NULL 65871,174111,685539,Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65872,4537272,818073,Necromancer Critic Nice Answer Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 65873,5875004,818073,Necromancer Critic Nice Answer Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 65874,790140,818073,Necromancer Critic Nice Answer Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 65875,663620,792399,NULL,NULL,NULL,0,NULL,NULL 65876,16374,631579,Yearling Good Answer Caucus Necromancer Yearling Caucus Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 65877,1679665,631579,Yearling Good Answer Caucus Necromancer Yearling Caucus Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 65878,1033545,1052231,NULL,NULL,NULL,0,NULL,NULL 65879,64171,588261,NULL,NULL,NULL,0,NULL,NULL 65880,63964,368617,NULL,NULL,NULL,0,NULL,NULL 65881,267943,475345,Popular Question Yearling Nice Answer Civic Duty Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 65882,243399,660027,NULL,NULL,NULL,0,NULL,NULL 65883,195532,856926,NULL,NULL,NULL,0,NULL,NULL 65884,99824,108301,Notable Question Nice Answer Notable Question Announcer Famous Question Custodian Census Citizen Patrol Famous Question,NULL,NULL,0,NULL,NULL 65885,844450,52938,Nice Answer Nice Question Notable Question Famous Question Yearling Great Question,NULL,NULL,0,NULL,NULL 65886,183065,1214560,NULL,NULL,NULL,0,NULL,NULL 65887,70578,737278,NULL,NULL,NULL,0,NULL,NULL 65888,89993,764463,Nice Answer Famous Question Popular Question Yearling Nice Question Popular Question Famous Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 65889,3827331,764463,Nice Answer Famous Question Popular Question Yearling Nice Question Popular Question Famous Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 65890,17485,1121343,NULL,NULL,NULL,0,NULL,NULL 65891,351662,632921,NULL,NULL,NULL,0,NULL,NULL 65892,39559,1236835,NULL,NULL,NULL,0,NULL,NULL 65893,41241,1134851,Yearling python Popular Question Caucus Notable Question Yearling Good Answer Excavator Caucus Documentation User Yearling Custodian Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 65894,67003,1221521,Informed,NULL,NULL,0,NULL,NULL 65895,105932,64633,Yearling Custodian Good Answer Guru Yearling Announcer Civic Duty Good Answer Famous Question Announcer Yearling Booster Nice Answer Booster Announcer,NULL,NULL,0,NULL,NULL 65896,95749,607989,NULL,NULL,NULL,0,NULL,NULL 65897,39507,123927,Notable Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Nice Question Popular Question Famous Question Popular Question Nice Question Nice Question Notable Question Notable Question Nice Question Popular Question Good Question Popular Question Necromancer Notable Question Notable Question Good Question Yearling Nice Question Informed Necromancer Popular Question Popular Question Necromancer Popular Question Famous Question Famous Question Nice Question Famous Question Popular Question Caucus Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Famous Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Revival Popular Question Notable Question Notable Question Notable Question Nice Question Famous Question Revival Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Pundit Favorite Question Notable Question Notable Question Notable Question Nice Answer Popular Question Notable Question Notable Question Nice Question Nice Answer Notable Question Yearling Notable Question Notable Question Notable Question Good Question Good Question Popular Question Popular Question Famous Question,NULL,NULL,1,Nodejs request HPE INVALID HEADER TOKEN node js http request pI receive codeHPE INVALID HEADER TOKEN code on certain page using coderequest code module From what ve found on Google this is caused by an incorrect malformed server response however the latter is not under my control Can configure request to ignore invalid headers or just give me the whole raw response for processing,NULL 65898,179776,358012,Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 65899,1031659,738273,NULL,NULL,NULL,0,NULL,NULL 65900,593794,901730,NULL,NULL,NULL,0,NULL,NULL 65901,71483,736486,Popular Question,NULL,NULL,0,NULL,NULL 65902,255486,7407,Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Yearling Favorite Question Notable Question Good Answer Great Answer Nice Answer Good Answer Yearling Nice Answer Civic Duty Famous Question Yearling,NULL,NULL,0,NULL,NULL 65903,234095,126597,Good Question Popular Question Yearling Popular Question Popular Question Yearling Popular Question Notable Question Populist Popular Question Popular Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 65904,298960,169045,Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Popular Question Popular Question Popular Question Famous Question Good Answer Yearling Guru Nice Answer Guru Nice Answer java Populist Notable Question Nice Answer Nice Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 65905,471666,823977,NULL,NULL,NULL,0,NULL,NULL 65906,151586,831892,NULL,NULL,NULL,0,NULL,NULL 65907,27280,522438,Informed,NULL,NULL,0,NULL,NULL 65908,1886712,405240,NULL,NULL,NULL,0,NULL,NULL 65909,395741,405240,NULL,NULL,NULL,0,NULL,NULL 65910,432821,1364656,NULL,NULL,NULL,0,NULL,NULL 65911,194502,288037,Notable Question Yearling Famous Question Notable Question Caucus Popular Question Nice Question,NULL,NULL,0,NULL,NULL 65912,1518628,940015,Teacher,NULL,NULL,0,NULL,NULL 65913,157796,513650,NULL,NULL,NULL,0,NULL,NULL 65914,181148,1069950,Yearling Yearling,NULL,NULL,0,NULL,NULL 65915,591253,162264,Commentator Yearling Informed Caucus Citizen Patrol,NULL,NULL,0,NULL,NULL 65916,161706,731039,NULL,NULL,NULL,0,NULL,NULL 65917,1102788,979108,NULL,NULL,NULL,0,NULL,NULL 65918,3514720,979108,NULL,NULL,NULL,0,NULL,NULL 65919,122697,581429,Yearling Good Answer,NULL,NULL,0,NULL,NULL 65920,367949,1214647,NULL,NULL,NULL,0,NULL,NULL 65921,3389865,1214647,NULL,NULL,NULL,0,NULL,NULL 65922,611871,492915,Revival Tumbleweed,NULL,NULL,0,NULL,NULL 65923,1121241,257372,Critic Census Self-Learner,NULL,NULL,0,NULL,NULL 65924,1530951,930149,NULL,NULL,NULL,0,NULL,NULL 65925,217022,930149,NULL,NULL,NULL,0,NULL,NULL 65926,939631,1182662,Notable Question,NULL,NULL,0,NULL,NULL 65927,66929,1182662,Notable Question,NULL,NULL,0,NULL,NULL 65928,29086,351122,Yearling Revival Nice Question Popular Question Good Answer Popular Question Custodian Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 65929,2836,190022,NULL,NULL,NULL,0,NULL,NULL 65930,1574163,1197449,Commentator Student Supporter,NULL,NULL,0,NULL,NULL 65931,217298,547943,Yearling,NULL,NULL,0,NULL,NULL 65932,8171407,793925,NULL,NULL,NULL,0,NULL,NULL 65933,277631,1073634,Notable Question Supporter Teacher Necromancer,NULL,NULL,0,NULL,NULL 65934,487818,480936,NULL,NULL,NULL,0,NULL,NULL 65935,281461,125967,Notable Question Nice Answer Nice Answer Yearling Famous Question Nice Answer Notable Question Nice Question Announcer Good Question Good Answer Yearling Necromancer Nice Question Great Answer Yearling Favorite Question Announcer,NULL,NULL,0,NULL,NULL 65936,1518574,1231068,Popular Question,NULL,NULL,0,NULL,NULL 65937,734642,1116465,Nice Question Popular Question Popular Question Notable Question Notable Question Inquisitive Yearling Popular Question Famous Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Self-Learner Popular Question Popular Question Notable Question Favorite Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65938,79343,1313751,NULL,NULL,NULL,0,NULL,NULL 65939,169857,73664,Critic,NULL,NULL,0,NULL,NULL 65940,52961,25612,Nice Answer Notable Question Yearling Popular Question Necromancer Documentation User Yearling,NULL,NULL,0,NULL,NULL 65941,7755,315920,NULL,NULL,NULL,0,NULL,NULL 65942,10821501,315920,NULL,NULL,NULL,0,NULL,NULL 65943,228243,974184,Teacher Documentation User Commentator,NULL,NULL,0,NULL,NULL 65944,12956,1105020,Yearling,NULL,NULL,0,NULL,NULL 65945,111221,594116,NULL,NULL,NULL,0,NULL,NULL 65946,145240,678010,NULL,NULL,NULL,0,NULL,NULL 65947,44513,734641,NULL,NULL,NULL,0,NULL,NULL 65948,502186,619681,NULL,NULL,NULL,0,NULL,NULL 65949,34229,269956,NULL,NULL,NULL,0,NULL,NULL 65950,547236,1368742,Teacher Yearling Excavator Yearling Promoter Nice Question Investor Enthusiast Famous Question Nice Answer Enlightened Documentation User,NULL,NULL,0,NULL,NULL 65951,153269,727861,NULL,NULL,NULL,0,NULL,NULL 65952,601680,757427,NULL,NULL,NULL,0,NULL,NULL 65953,42829,756232,NULL,NULL,NULL,0,NULL,NULL 65954,46658,1301437,NULL,NULL,NULL,0,NULL,NULL 65955,473028,740394,Notable Question Nice Answer Enlightened Yearling Popular Question Popular Question Notable Question Caucus Famous Question Notable Question Nice Answer Enlightened Notable Question Popular Question Famous Question Yearling Notable Question Popular Question Popular Question Famous Question Nice Question Documentation User Announcer Nice Question Nice Answer Popular Question Yearling Custodian Custodian ruby Explainer,NULL,NULL,0,NULL,NULL 65956,10483,633115,NULL,NULL,NULL,0,NULL,NULL 65957,337943,866439,Scholar Necromancer Editor,NULL,NULL,0,NULL,NULL 65958,232298,1431380,NULL,NULL,NULL,0,NULL,NULL 65959,447493,975437,NULL,NULL,NULL,0,NULL,NULL 65960,159704,1393847,NULL,NULL,NULL,0,NULL,NULL 65961,1142968,1393847,NULL,NULL,NULL,0,NULL,NULL 65962,14089,1080918,Editor Documentation User Critic Caucus,NULL,NULL,0,NULL,NULL 65963,33197,413570,Popular Question Notable Question Favorite Question Popular Question Notable Question Popular Question Notable Question Good Question Nice Question Popular Question Excavator Yearling Popular Question Nice Question Popular Question Popular Question Famous Question Popular Question Famous Question Good Question Popular Question Famous Question Popular Question Popular Question Yearling Notable Question Popular Question Favorite Question Good Question Nice Question Notable Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 65964,540259,191191,Popular Question Popular Question Good Answer Yearling Caucus Constituent Notable Question Nice Answer Curious Caucus Custodian Yearling Notable Question Custodian Census Strunk & White Populist Nice Question Caucus Constituent Proofreader Informed Autobiographer Necromancer Yearling,NULL,NULL,0,NULL,NULL 65965,809460,1245589,Caucus Custodian Custodian Census Caucus Custodian Good Answer Census Yearling Caucus,NULL,NULL,0,NULL,NULL 65966,126933,1183067,Popular Question,NULL,NULL,0,NULL,NULL 65967,314050,1235810,NULL,NULL,NULL,0,NULL,NULL 65968,684119,1094603,NULL,NULL,NULL,0,NULL,NULL 65969,101568,131264,Revival Good Answer Yearling Great Answer Caucus Constituent Necromancer Custodian Nice Answer Custodian Necromancer Necromancer Curious Yearling Caucus Explainer Custodian Autobiographer Custodian Documentation User Good Answer Notable Question Necromancer Electorate Necromancer Census Caucus Nice Answer Peer Pressure Yearling Nice Answer Nice Question Necromancer,NULL,strongAs an alias called codemyip code that should work everywhere strong ppre codealias myip python import socket print for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliWorks correctly with Python Python modern and old Linux distros OSX macOS and Windows for finding the current IPv4 address liliWill not return the correct result for machines with multiple IP addresses IPv6 no configured IP address or no internet access li ulhrp strongSame as above but only the Python code strong ppre codeimport socketprint for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliThis will throw an exception if no IP address is configured li ulhrp strongVersion that will also work on LANs without an internet connection strong ppre codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 or connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM no IP found code prep thanks href https stackoverflow com users 191246 ccpizza phrp strongBackground strong ppUsing codesocket gethostbyname socket gethostname code did not work here because one of the computers was on had an code etc hosts code with duplicate entries and references to itself codesocket gethostbyname code only returns the last entry in code etc hosts code ppThis was my initial attempt which weeds out all addresses starting with code 127 code ppre class lang py prettyprint override codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 code prepThis works with Python and on Linux and Windows but does not deal with several network devices or IPv6 However it stopped working on recent Linux distros so tried this alternative technique instead It tries to connect to the Google DNS server at code8 code at port code53 code ppre class lang py prettyprint override codeimport socketprint connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM code prepThen combined the two above techniques into one liner that should work everywhere and created the codemyip code alias and Python snippet at the top of this answer ppWith the increasing popularity of IPv6 and for servers with multiple network interfaces using third party Python module for finding the IP address is probably both more robust and reliable than any of the methods listed here Chris does it work if you try with port 53 instead strongAs an alias called codemyip code that should work everywhere strong ppre codealias myip python import socket print for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliWorks correctly with Python Python modern and old Linux distros OSX macOS and Windows for finding the current IPv4 address liliWill not return the correct result for machines with multiple IP addresses IPv6 no configured IP address or no internet access li ulhrp strongSame as above but only the Python code strong ppre codeimport socketprint for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliThis will throw an exception if no IP address is configured li ulhrp strongVersion that will also work on LANs without an internet connection strong ppre codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 or connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM no IP found code prep thanks href https stackoverflow com users 191246 ccpizza phrp strongBackground strong ppUsing codesocket gethostbyname socket gethostname code did not work here because one of the computers was on had an code etc hosts code with duplicate entries and references to itself codesocket gethostbyname code only returns the last entry in code etc hosts code ppThis was my initial attempt which weeds out all addresses starting with code 127 code ppre class lang py prettyprint override codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 code prepThis works with Python and on Linux and Windows but does not deal with several network devices or IPv6 However it stopped working on recent Linux distros so tried this alternative technique instead It tries to connect to the Google DNS server at code8 code at port code53 code ppre class lang py prettyprint override codeimport socketprint connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM code prepThen combined the two above techniques into one liner that should work everywhere and created the codemyip code alias and Python snippet at the top of this answer ppWith the increasing popularity of IPv6 and for servers with multiple network interfaces using third party Python module for finding the IP address is probably both more robust and reliable than any of the methods listed here guess you ll only be missing an alias in your shell config that you share among the systems you have access to regardless of OS presume that will work on all of them under normal circumstances strongAs an alias called codemyip code that should work everywhere strong ppre codealias myip python import socket print for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliWorks correctly with Python Python modern and old Linux distros OSX macOS and Windows for finding the current IPv4 address liliWill not return the correct result for machines with multiple IP addresses IPv6 no configured IP address or no internet access li ulhrp strongSame as above but only the Python code strong ppre codeimport socketprint for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliThis will throw an exception if no IP address is configured li ulhrp strongVersion that will also work on LANs without an internet connection strong ppre codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 or connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM no IP found code prep thanks href https stackoverflow com users 191246 ccpizza phrp strongBackground strong ppUsing codesocket gethostbyname socket gethostname code did not work here because one of the computers was on had an code etc hosts code with duplicate entries and references to itself codesocket gethostbyname code only returns the last entry in code etc hosts code ppThis was my initial attempt which weeds out all addresses starting with code 127 code ppre class lang py prettyprint override codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 code prepThis works with Python and on Linux and Windows but does not deal with several network devices or IPv6 However it stopped working on recent Linux distros so tried this alternative technique instead It tries to connect to the Google DNS server at code8 code at port code53 code ppre class lang py prettyprint override codeimport socketprint connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM code prepThen combined the two above techniques into one liner that should work everywhere and created the codemyip code alias and Python snippet at the top of this answer ppWith the increasing popularity of IPv6 and for servers with multiple network interfaces using third party Python module for finding the IP address is probably both more robust and reliable than any of the methods listed here It works as an alias on the command line If you want to do it properly you should use Python module that correctly handles IPv6 and multiple network interfaces in the first place strongAs an alias called codemyip code that should work everywhere strong ppre codealias myip python import socket print for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliWorks correctly with Python Python modern and old Linux distros OSX macOS and Windows for finding the current IPv4 address liliWill not return the correct result for machines with multiple IP addresses IPv6 no configured IP address or no internet access li ulhrp strongSame as above but only the Python code strong ppre codeimport socketprint for in ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM if code preulliThis will throw an exception if no IP address is configured li ulhrp strongVersion that will also work on LANs without an internet connection strong ppre codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 or connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM no IP found code prep thanks href https stackoverflow com users 191246 ccpizza phrp strongBackground strong ppUsing codesocket gethostbyname socket gethostname code did not work here because one of the computers was on had an code etc hosts code with duplicate entries and references to itself codesocket gethostbyname code only returns the last entry in code etc hosts code ppThis was my initial attempt which weeds out all addresses starting with code 127 code ppre class lang py prettyprint override codeimport socketprint ip for ip in socket gethostbyname ex socket gethostname if not ip startswith 127 code prepThis works with Python and on Linux and Windows but does not deal with several network devices or IPv6 However it stopped working on recent Linux distros so tried this alternative technique instead It tries to connect to the Google DNS server at code8 code at port code53 code ppre class lang py prettyprint override codeimport socketprint connect 53 getsockname close for in socket socket socket AF INET socket SOCK DGRAM code prepThen combined the two above techniques into one liner that should work everywhere and created the codemyip code alias and Python snippet at the top of this answer ppWith the increasing popularity of IPv6 and for servers with multiple network interfaces using third party Python module for finding the IP address is probably both more robust and reliable than any of the methods listed here guess you did not notice but version that you can include in python script is present If you want to use it in python program you should be using proper module that supports IPV6 and multiple IP addresses not code copied stackoverflow,0,NULL,NULL 65970,397541,1038348,NULL,NULL,NULL,0,NULL,NULL 65971,126600,192550,Necromancer Popular Question Popular Question Curious Yearling Notable Question Nice Answer Notable Question Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 65972,202199,1130804,NULL,NULL,NULL,0,NULL,NULL 65973,315393,928910,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65974,46084,730277,Citizen Patrol,NULL,NULL,0,NULL,NULL 65975,402158,566942,Yearling Nice Question Nice Question Notable Question Revival Notable Question Popular Question Notable Question Caucus Good Question Yearling Famous Question Popular Question Good Question Famous Question Good Question Tumbleweed Good Answer Yearling Famous Question Popular Question Favorite Question Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 65976,412471,79818,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 65977,1633030,318877,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Custodian Excavator,NULL,NULL,0,NULL,NULL 65978,1109772,318877,Nice Answer Yearling Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Custodian Excavator,NULL,NULL,0,NULL,NULL 65979,2939,1081179,Popular Question Revival Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 65980,188050,1081179,Popular Question Revival Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 65981,1466567,1304214,Popular Question Supporter Commentator Excavator,NULL,NULL,0,NULL,NULL 65982,602919,826102,Yearling Necromancer Announcer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 65983,1686460,826102,Yearling Necromancer Announcer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 65984,3620272,826102,Yearling Necromancer Announcer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 65985,363384,312686,Editor Commentator Supporter,NULL,NULL,0,NULL,NULL 65986,18757,385749,NULL,NULL,NULL,0,NULL,NULL 65987,15158,568233,Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 65988,294423,1179377,Yearling Famous Question Necromancer Good Answer Popular Question Announcer Good Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Census Necromancer Nice Answer Necromancer Nice Answer Enlightened Necromancer Good Answer Announcer Nice Answer Promoter Benefactor Announcer Yearling Popular Question Necromancer Necromancer Popular Question Nice Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 65989,1505824,458247,NULL,NULL,NULL,0,NULL,NULL 65990,339310,62931,NULL,NULL,NULL,0,NULL,NULL 65991,227712,1262213,Yearling,NULL,NULL,0,NULL,NULL 65992,3292439,149178,Yearling Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 65993,1614150,149178,Yearling Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 65994,355548,435303,NULL,NULL,NULL,0,NULL,NULL 65995,102629,437445,Supporter Autobiographer,NULL,NULL,0,NULL,NULL 65996,2205472,532259,NULL,NULL,NULL,0,NULL,NULL 65997,539651,274908,NULL,NULL,NULL,0,NULL,NULL 65998,46467,399459,Nice Question Famous Question Nice Answer Enlightened Popular Question Nice Question Yearling Stellar Question Nice Answer Notable Question Notable Question Good Answer Notable Question Notable Question Yearling Notable Question Famous Question Nice Question Popular Question Famous Question Popular Question Good Question Nice Question Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 65999,122520,310236,NULL,NULL,NULL,0,NULL,NULL 66000,90418,925889,Necromancer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66001,1192,961939,Revival Editor,NULL,NULL,0,NULL,NULL 66002,7293355,991469,NULL,NULL,NULL,0,NULL,NULL 66003,490703,543617,Popular Question Inquisitive Custodian Nice Answer Enlightened Notable Question Popular Question Yearling Popular Question Great Question Nice Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66004,257462,514845,Critic Yearling,NULL,NULL,0,NULL,NULL 66005,158373,625972,Revival Informed Cleanup Custodian Necromancer,NULL,NULL,0,NULL,NULL 66006,808467,576699,Popular Question Popular Question Notable Question Custodian Yearling Notable Question Popular Question Famous Question Notable Question Popular Question Caucus Self-Learner Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66007,603114,1528246,Popular Question Popular Question Custodian Famous Question Nice Question Nice Question Yearling Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66008,13313,880498,Yearling Great Answer Critic Yearling Revival,NULL,NULL,0,NULL,NULL 66009,25340,65338,Yearling Notable Question Nice Answer Notable Question Yearling Nice Answer Nice Question Notable Question Yearling Favorite Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 66010,349772,995621,NULL,NULL,NULL,0,NULL,NULL 66011,136053,995621,NULL,NULL,NULL,0,NULL,NULL 66012,750873,410183,Yearling,NULL,NULL,0,NULL,NULL 66013,1554336,1203124,Popular Question Nice Answer Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 66014,446929,1267649,NULL,NULL,NULL,0,NULL,NULL 66015,4979542,910414,NULL,NULL,NULL,0,NULL,NULL 66016,242935,910414,NULL,NULL,NULL,0,NULL,NULL 66017,372654,270310,Nice Answer Yearling Yearling Necromancer Commentator Yearling,NULL,NULL,0,NULL,NULL 66018,351335,415273,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 66019,176750,312079,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 66020,190344,973929,Curious Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 66021,156037,277900,Revival Nice Answer Enlightened Announcer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 66022,116701,122204,NULL,NULL,NULL,0,NULL,NULL 66023,168934,846594,NULL,NULL,NULL,0,NULL,NULL 66024,570833,1167541,Nice Answer,NULL,NULL,0,NULL,NULL 66025,618106,979300,Popular Question Yearling Caucus Custodian Yearling Enthusiast Yearling Caucus Constituent Notable Question Census Notable Question,NULL,NULL,0,NULL,NULL 66026,21063,1330750,Student Civic Duty Critic Autobiographer,NULL,NULL,0,NULL,NULL 66027,216185,750555,NULL,NULL,NULL,0,NULL,NULL 66028,2302846,615843,NULL,NULL,NULL,0,NULL,NULL 66029,1682335,498875,NULL,NULL,NULL,0,NULL,NULL 66030,163511,1493538,NULL,NULL,NULL,0,NULL,NULL 66031,81050,1134876,Supporter Popular Question,NULL,NULL,0,NULL,NULL 66032,8944,200404,Guru Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66033,237138,1318433,NULL,NULL,NULL,0,NULL,NULL 66034,346701,1212306,NULL,NULL,NULL,0,NULL,NULL 66035,21935,1235299,Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 66036,8035647,90614,Yearling Good Answer Curious Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 66037,52918,90614,Yearling Good Answer Curious Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 66038,796601,41344,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Famous Question Necromancer Nice Answer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66039,140633,1056845,NULL,NULL,NULL,0,NULL,NULL 66040,1451485,810301,NULL,NULL,NULL,0,NULL,NULL 66041,242635,145492,NULL,NULL,NULL,0,NULL,NULL 66042,14528,1142119,NULL,NULL,NULL,0,NULL,NULL 66043,322299,139245,Nice Answer Yearling c++ Nice Answer Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66044,30395,288425,Yearling Good Answer Good Answer Good Answer Good Answer Nice Answer Yearling Good Answer Guru Nice Answer Yearling Caucus Revival,NULL,NULL,0,NULL,NULL 66045,846831,155726,Good Question Notable Question Yearling Famous Question Notable Question Nice Question Famous Question Popular Question Popular Question Famous Question Good Question Popular Question Yearling Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 66046,319020,1280227,NULL,NULL,NULL,0,NULL,NULL 66047,193428,1242181,NULL,NULL,NULL,0,NULL,NULL 66048,311165,861073,NULL,NULL,NULL,0,NULL,NULL 66049,169931,650230,NULL,NULL,NULL,0,NULL,NULL 66050,432624,1336958,Scholar Notable Question,NULL,NULL,0,NULL,NULL 66051,14759,133012,NULL,NULL,NULL,0,NULL,NULL 66052,197285,443380,Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Nice Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 66053,640794,95876,Good Question Promoter Benefactor Famous Question Yearling Nice Question Notable Question Popular Question Nice Question Popular Question Famous Question Notable Question Yearling Nice Question Famous Question Popular Question Famous Question Yearling Famous Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 66054,572762,800927,NULL,NULL,NULL,0,NULL,NULL 66055,217515,1174661,NULL,NULL,NULL,0,NULL,NULL 66056,375852,724471,Custodian Yearling Good Answer Nice Answer Enlightened Yearling Popular Question Guru Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 66057,261784,429167,Popular Question Nice Answer Great Question Yearling Notable Question Notable Question Popular Question Good Answer Popular Question Yearling Good Question Notable Question Caucus ruby-on-rails Yearling Popular Question,NULL,NULL,0,NULL,NULL 66058,194718,748372,Yearling,NULL,NULL,0,NULL,NULL 66059,3799020,1489092,Popular Question,NULL,NULL,0,NULL,NULL 66060,3653986,1212126,Teacher Informed Editor,NULL,NULL,0,NULL,NULL 66061,7395380,121858,Popular Question Great Question Popular Question Yearling Great Question Popular Question Yearling Favorite Question Great Answer Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 66062,242169,121858,Popular Question Great Question Popular Question Yearling Great Question Popular Question Yearling Favorite Question Great Answer Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 66063,4465,251040,NULL,NULL,NULL,0,NULL,NULL 66064,676795,1429389,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66065,621840,881141,Student Census Supporter Popular Question,NULL,NULL,0,NULL,NULL 66066,181175,966710,Custodian Custodian Citizen Patrol Autobiographer Nice Question Popular Question Nice Question Yearling Necromancer Famous Question Nice Answer Notable Question Famous Question Popular Question Notable Question Popular Question Yearling Nice Answer Nice Question Notable Question Yearling Custodian Good Question Notable Question Famous Question Favorite Question Excavator Good Answer Favorite Question,NULL,NULL,0,NULL,NULL 66067,292135,383314,NULL,NULL,NULL,0,NULL,NULL 66068,427281,525762,NULL,NULL,NULL,0,NULL,NULL 66069,729614,525762,NULL,NULL,NULL,0,NULL,NULL 66070,840158,680754,NULL,NULL,NULL,0,NULL,NULL 66071,860777,1034512,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66072,1420416,248224,Yearling Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 66073,893050,859850,NULL,NULL,NULL,0,NULL,NULL 66074,222326,87181,Popular Question Revival Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 66075,14266,1534894,Enthusiast Famous Question Announcer Revival Announcer,NULL,NULL,0,NULL,NULL 66076,336914,291955,Yearling Populist Nice Answer Enlightened Nice Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 66077,5953,359120,Famous Question Popular Question Popular Question Nice Answer Revival Yearling Popular Question Notable Question Good Question Popular Question Nice Question Nice Answer Nice Answer Enlightened Yearling Popular Question Popular Question Documentation User Nice Question Good Answer Famous Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 66078,369014,1211755,NULL,NULL,NULL,0,NULL,NULL 66079,369026,1211755,NULL,NULL,NULL,0,NULL,NULL 66080,100653,389604,NULL,NULL,NULL,0,NULL,NULL 66081,163356,539495,Documentation User Popular Question,NULL,NULL,0,NULL,NULL 66082,372694,1039337,NULL,NULL,NULL,0,NULL,NULL 66083,134891,217244,Yearling Notable Question Yearling Yearling Investor,NULL,NULL,0,NULL,NULL 66084,270255,263434,Critic,NULL,NULL,0,NULL,NULL 66085,348267,384536,NULL,NULL,NULL,0,NULL,NULL 66086,836437,1029437,Teacher Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 66087,1270148,435467,NULL,NULL,NULL,0,NULL,NULL 66088,28138,917866,NULL,NULL,NULL,0,NULL,NULL 66089,77190,367069,Supporter Critic Yearling,NULL,NULL,0,NULL,NULL 66090,604347,1073941,NULL,NULL,NULL,0,NULL,NULL 66091,43498,605644,NULL,NULL,NULL,0,NULL,NULL 66092,1219253,5290,Yearling Caucus Nice Answer Good Answer Guru Yearling Documentation User sql Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 66093,11104908,911656,NULL,NULL,NULL,0,NULL,NULL 66094,809820,911656,NULL,NULL,NULL,0,NULL,NULL 66095,154858,1066459,NULL,NULL,NULL,0,NULL,NULL 66096,3570,1260736,NULL,NULL,NULL,0,NULL,NULL 66097,81987,30001,Informed Custodian Custodian Revival Tenacious Custodian Explainer Enthusiast Custodian Proofreader Mortarboard ember.js Custodian Yearling Caucus Constituent Announcer Civic Duty Revival Nice Answer Strunk & White Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent Documentation User Yearling Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66098,655397,412821,NULL,NULL,NULL,0,NULL,NULL 66099,252062,1168664,NULL,NULL,NULL,0,NULL,NULL 66100,69717,15965,Nice Answer Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 66101,60568,427117,Yearling Yearling,NULL,NULL,0,NULL,NULL 66102,252853,1085504,NULL,NULL,NULL,0,NULL,NULL 66103,2849,199979,NULL,NULL,NULL,0,NULL,NULL 66104,42693,671619,c# Yearling Popular Question Electorate Informed Autobiographer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Caucus Revival Constituent Revival Revival Guru orm Revival Yearling Necromancer Guru Nice Answer Census nhibernate Caucus Yearling Constituent Announcer hibernate Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened jpa Announcer,NULL,NULL,0,NULL,NULL 66105,473514,515509,Critic Announcer Excavator,NULL,NULL,0,NULL,NULL 66106,2003892,761677,NULL,NULL,NULL,0,NULL,NULL 66107,155771,557531,Scholar Supporter Documentation User,NULL,NULL,0,NULL,NULL 66108,181211,982909,NULL,NULL,NULL,0,NULL,NULL 66109,91381,267743,Popular Question,NULL,NULL,0,NULL,NULL 66110,1815244,563518,Necromancer Yearling,NULL,NULL,0,NULL,NULL 66111,193462,510519,NULL,NULL,NULL,0,NULL,NULL 66112,98122,1335671,Informed,NULL,NULL,0,NULL,NULL 66113,1519004,1180408,NULL,NULL,NULL,0,NULL,NULL 66114,719466,156626,Nice Question Enthusiast Notable Question Announcer Census Popular Question,NULL,NULL,0,NULL,NULL 66115,554400,436317,NULL,NULL,NULL,0,NULL,NULL 66116,250546,1502769,NULL,NULL,NULL,0,NULL,NULL 66117,3998029,1502769,NULL,NULL,NULL,0,NULL,NULL 66118,127192,762081,NULL,NULL,NULL,0,NULL,NULL 66119,18866,113246,Good Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 66120,180141,176462,Yearling Guru Enlightened Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 66121,162031,842354,Teacher Organizer Informed,NULL,NULL,0,NULL,NULL 66122,1068494,768536,Nice Question,NULL,NULL,0,NULL,NULL 66123,8782,157629,Good Question Nice Question Nice Question Necromancer Good Answer Good Answer Notable Question Yearling Nice Question Popular Question Popular Question Famous Question Famous Question Favorite Question Good Answer Notable Question Popular Question Notable Question Notable Question Nice Answer Good Answer Yearling Popular Question Custodian Popular Question Popular Question Good Answer Favorite Question Caucus Great Question Guru Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 66124,1055685,568075,NULL,NULL,NULL,0,NULL,NULL 66125,68903,657439,Yearling Nice Question Popular Question Nice Answer Yearling Popular Question Famous Question Popular Question Famous Question Popular Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 66126,15469,110081,Nice Answer Announcer Announcer Yearling Nice Answer Good Answer Nice Answer Announcer Nice Answer Announcer Inquisitive Nice Answer Enlightened Yearling Guru Announcer Popular Question Documentation User Announcer Good Answer Announcer Nice Question Notable Question Nice Answer Announcer Self-Learner Caucus Announcer Yearling Revival Nice Answer Guru Popular Question Nice Answer Announcer,NULL,pThe fact that you cannot construct the TestTree dynamically through resources is very much intentional As write href https ro che info articles 2013 12 29 tasty resources rel noreferrer here pblockquote pOne of the major problems with tests receiving the resource value directly as in ppre codewithResource IO gt gt IO gt gt TestTree gt TestTree code pre was that the resource could be used not only in the tests themselves but to emconstruct em the tests which is bad wrong for number of reasons For instance we don want to create the resources when we re not running tests but we still want to know which tests we have blockquotepSo resources shouldn be used to construct the test tree they are designed for different use case ppHow then can you construct test tree dynamically The trick is to realize that your codemain code can be more than just codedefaultMain code Indeed it can use the full power of IO to construct test tree and emthen em call codedefaultMain code with that dynamically constructed test tree ppSo ppre codemain do testTree lt constructTestTree defaultMain testTree code prepYou can see real world example of this in href https github com haskell suite haskell src exts blob master tests Runner hs L20 L23 rel noreferrer haskell src ext testsuite Kris good question You could ve done it with withResource had not specifically disallowed it https ro che info articles 2013 12 29 tasty resources Another option is to use MonadFix although not sure tasty is sufficiently lazy But we could try to make it so Feel free to open feature request on github although can promise quick resolution,0,NULL,NULL 66127,234431,1032745,Necromancer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 66128,11445,1040357,Yearling Critic Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 66129,283700,1453136,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 66130,372354,479308,NULL,NULL,NULL,0,NULL,NULL 66131,116308,1034000,NULL,NULL,NULL,0,NULL,NULL 66132,236701,1124448,Teacher Necromancer Editor,NULL,NULL,0,NULL,NULL 66133,6125532,860229,Necromancer,NULL,,0,, 66134,913047,860229,Necromancer,NULL,NULL,0,NULL,NULL 66135,720577,1360503,NULL,NULL,NULL,0,NULL,NULL 66136,4982424,1360503,NULL,NULL,NULL,0,NULL,NULL 66137,223259,1027789,NULL,NULL,NULL,0,NULL,NULL 66138,408842,318546,NULL,NULL,NULL,0,NULL,NULL 66139,162395,205127,NULL,NULL,NULL,0,NULL,NULL 66140,293779,334209,Popular Question Popular Question Great Answer Notable Question Famous Question Famous Question Revival Nice Answer Famous Question Notable Question Yearling Nice Question Popular Question Nice Question Popular Question Nice Question Announcer Revival Popular Question Necromancer Notable Question Good Question Notable Question Necromancer Famous Question Yearling Nice Question Announcer Nice Answer Popular Question Announcer Favorite Question Good Question Notable Question Popular Question Nice Answer Good Answer Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 66141,6575653,51473,Yearling Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 66142,35858,328974,Famous Question,NULL,NULL,0,NULL,NULL 66143,151434,63301,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 66144,42078,455485,Caucus,NULL,NULL,0,NULL,NULL 66145,636103,1536219,Yearling Caucus Constituent Critic,NULL,NULL,0,NULL,NULL 66146,577770,1263888,Enthusiast Organizer Tag Editor Yearling Critic,NULL,NULL,0,NULL,NULL 66147,62826,1263888,Enthusiast Organizer Tag Editor Yearling Critic,NULL,NULL,0,NULL,NULL 66148,30895,924376,NULL,NULL,NULL,0,NULL,NULL 66149,21381,761000,NULL,NULL,NULL,0,NULL,NULL 66150,521441,546861,Nice Answer Nice Answer Enlightened keyboard-shortcuts Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened vi Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Documentation Pioneer Great Answer Good Answer Nice Answer Nice Answer Good Answer Excavator Good Answer Populist Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Caucus Nice Answer Enlightened Nice Answer Yearling Nice Answer Necromancer Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened autocomplete Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Guru buffer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened ruby Caucus Nice Answer Enlightened Guru Enlightened Great Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Documentation User Nice Answer Enlightened Nice Answer vim-syntax-highlighting macos macos Yearling Census Nice Answer Nice Answer Enlightened tmux Good Answer Good Answer search Good Answer Nice Answer Enlightened Guru Caucus Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Announcer Nice Answer Good Answer Guru Guru Nice Answer Enlightened Great Answer syntax-highlighting Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Guru Nice Answer Nice Answer git Enlightened Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer,NULL,pAs ZyX said on vim this question sounds like em Why do Vim experts prefer tasty over warm em pp Vim experts don prefer buffers over tabs they use buffers as the file proxies they are and tab pages as the workspaces they are Buffers and tab pages have different purposes so strong empreferring one to the other makes no sense whatsoever em strong ppThe issue with buffers and tabs is one of emconfusion em caused by combination of independent facts polli pMost modern text editors and IDEs use emtab em metaphor to represent loaded files That metaphor acts as an information system it shows the user what files are opened and their state and as an interactive device it allows the user to manipulate reorder select close… those opened files Despite their many limitations tabs are everywhere and people are used to them and emexpect em them everywhere lili pVim introduced emtab pages em in as way for its users to create ad hoc workspaces Nothing in their features their specific options their specific commands or their code help code sections suggests that tab pages could or should be used as file proxies ppNothing except the name emand em the appearance of tab pages of course which leads to much confusion lili pWithout code set hidden code which is disabled by default and not very easy to find Vim makes it impossible to switch to another buffer without writing the current one or abandoning its changes New users unaware of that option have no choice but to turn to heavy windows use or to the closest tab like feature they can find tab pages li olp Tab page is an unfortunate name choice for that feature especially in an era dominated by the idea that reading documentation is waste of time ppIn Vim tab pages are an abstraction built on top of windows themselves an abstraction built on top of buffers Each new level adds useful features but restricts your workflow ph2The buffer way h2pWith buffer based workflow the files you are working with are distributed along single dimension You can cycle through your buffers you can access specific buffer by typing part of its name with completion or its number you can alternate between buffers you can target them pretty easily There basically no friction polli pEight buffers open only one visible pp href https stack imgur com KnFEs png rel noreferrer img src https stack imgur com KnFEs png alt Eight buffers open lili pSwitching by number pp href https stack imgur com Uy04R png rel noreferrer img src https stack imgur com Uy04R png alt Switching by number lili pSwitching by name pp href https stack imgur com Ed6JD png rel noreferrer img src https stack imgur com Ed6JD png alt Switching by name li olp strong emBuffers are Vim file proxies If you think in terms of files you think in terms of buffers em strong ph2The window way h2pWith window based workflow your files are both distributed along the same single virtual dimension as they would if you only used buffers emand em along two other physical dimensions But the cartesian spaces in which those dimensions are found are almost completely separated moving to another buffer still means moving to another file but moving to another window doesn The buffer that corresponds to the desired file may be displayed in that window but it could also be displayed in another one maybe in another tab page or not at all ppWith windows navigating between open files either becomes too complex or too simplistic even with code switchbuf code and code sb code Mostly because you are forced to use two sets of commands for what is essentially the same thing accessing buffer ppWindows have their use as described below but they don have what it takes to replace buffers in anybody workflow ppHere am working on Vim colorscheme The two windows are different views of the same buffer the top one serves as reference with table of the color codes used in the colorscheme and the bottom one is where work pp href https stack imgur com Bi4Yo png rel noreferrer img src https stack imgur com Bi4Yo png alt Working on colorscheme pp strong emWindows are not designed as file proxies and can be made into ones they are containers or viewports designed to offer you view into buffer No more no less em strong ph2The tab way h2pWith tab based workflow you essentially try to mimic the user experience you are used to from your previous editor while completely ignoring the very nature of Vim tab pages If we forget for moment that this strategy is generally emvery em unproductive it is also impossible just like with windows to force Vim to adhere to that one file one tab paradigm without losing stronga lot strong of flexibility ppStill working with the same files as above the tabline takes up significant space for virtually no benefit All my files and all my tabs are called codejavascript vim code so can do code3gt code and be confident ll end up at the right place and it is impossible to reach specific tab by name Add to that the fact that its label can very well be the very unhelpful but perfectly logical code Quickfix List code… Since there is no practical way to tie file buffer to tab page you are basically left with only one practical way to navigate between tab pages buffers files cycling ppAnd yeah my tabline is clobbered with only tabs imagine if had 20 polli pEight buffers open in eight tab pages strong wrong strong pp href https stack imgur com XrPz9 png rel noreferrer img src https stack imgur com XrPz9 png alt Wrong lili pTwo tabs for two specific tasks strong right strong pp href https stack imgur com pwpgW png rel noreferrer img src https stack imgur com pwpgW png alt Right li olp strong emTab pages are containers or viewports designed to contain one or more windows themselves also containers designed to contain buffers em strong ph2In conclusion h2p Vim experts let assume can speak as if was one strongdon prefer buffers over tabs strong they just use Vim as it was designed and are perfectly comfortable with that design pulli Vim experts have 30 or 97 buffers loaded and are very happy they don have to deal with spatial distribution lili pwhen they need to compare two files or work in one part of the current buffer while keeping another as reference Vim experts use windows because that how they are meant to be used lili pwhen they need to work for while on separate part of the project without messing with their current view Vim experts load brand new tab page li ul not aware of single program that deals with those two limitations in convincing manner Vim included The tab titles are always garbled in one way or another only the filename or what Vim does which is horrible the tabs themselves end up either stacked and unreadable or out of the viewport and unreadable the user is forced to use the mouse to hover over the tabs to get more information Tabs suck hard pAs ZyX said on vim this question sounds like em Why do Vim experts prefer tasty over warm em pp Vim experts don prefer buffers over tabs they use buffers as the file proxies they are and tab pages as the workspaces they are Buffers and tab pages have different purposes so strong empreferring one to the other makes no sense whatsoever em strong ppThe issue with buffers and tabs is one of emconfusion em caused by combination of independent facts polli pMost modern text editors and IDEs use emtab em metaphor to represent loaded files That metaphor acts as an information system it shows the user what files are opened and their state and as an interactive device it allows the user to manipulate reorder select close… those opened files Despite their many limitations tabs are everywhere and people are used to them and emexpect em them everywhere lili pVim introduced emtab pages em in as way for its users to create ad hoc workspaces Nothing in their features their specific options their specific commands or their code help code sections suggests that tab pages could or should be used as file proxies ppNothing except the name emand em the appearance of tab pages of course which leads to much confusion lili pWithout code set hidden code which is disabled by default and not very easy to find Vim makes it impossible to switch to another buffer without writing the current one or abandoning its changes New users unaware of that option have no choice but to turn to heavy windows use or to the closest tab like feature they can find tab pages li olp Tab page is an unfortunate name choice for that feature especially in an era dominated by the idea that reading documentation is waste of time ppIn Vim tab pages are an abstraction built on top of windows themselves an abstraction built on top of buffers Each new level adds useful features but restricts your workflow ph2The buffer way h2pWith buffer based workflow the files you are working with are distributed along single dimension You can cycle through your buffers you can access specific buffer by typing part of its name with completion or its number you can alternate between buffers you can target them pretty easily There basically no friction polli pEight buffers open only one visible pp href https stack imgur com KnFEs png rel noreferrer img src https stack imgur com KnFEs png alt Eight buffers open lili pSwitching by number pp href https stack imgur com Uy04R png rel noreferrer img src https stack imgur com Uy04R png alt Switching by number lili pSwitching by name pp href https stack imgur com Ed6JD png rel noreferrer img src https stack imgur com Ed6JD png alt Switching by name li olp strong emBuffers are Vim file proxies If you think in terms of files you think in terms of buffers em strong ph2The window way h2pWith window based workflow your files are both distributed along the same single virtual dimension as they would if you only used buffers emand em along two other physical dimensions But the cartesian spaces in which those dimensions are found are almost completely separated moving to another buffer still means moving to another file but moving to another window doesn The buffer that corresponds to the desired file may be displayed in that window but it could also be displayed in another one maybe in another tab page or not at all ppWith windows navigating between open files either becomes too complex or too simplistic even with code switchbuf code and code sb code Mostly because you are forced to use two sets of commands for what is essentially the same thing accessing buffer ppWindows have their use as described below but they don have what it takes to replace buffers in anybody workflow ppHere am working on Vim colorscheme The two windows are different views of the same buffer the top one serves as reference with table of the color codes used in the colorscheme and the bottom one is where work pp href https stack imgur com Bi4Yo png rel noreferrer img src https stack imgur com Bi4Yo png alt Working on colorscheme pp strong emWindows are not designed as file proxies and can be made into ones they are containers or viewports designed to offer you view into buffer No more no less em strong ph2The tab way h2pWith tab based workflow you essentially try to mimic the user experience you are used to from your previous editor while completely ignoring the very nature of Vim tab pages If we forget for moment that this strategy is generally emvery em unproductive it is also impossible just like with windows to force Vim to adhere to that one file one tab paradigm without losing stronga lot strong of flexibility ppStill working with the same files as above the tabline takes up significant space for virtually no benefit All my files and all my tabs are called codejavascript vim code so can do code3gt code and be confident ll end up at the right place and it is impossible to reach specific tab by name Add to that the fact that its label can very well be the very unhelpful but perfectly logical code Quickfix List code… Since there is no practical way to tie file buffer to tab page you are basically left with only one practical way to navigate between tab pages buffers files cycling ppAnd yeah my tabline is clobbered with only tabs imagine if had 20 polli pEight buffers open in eight tab pages strong wrong strong pp href https stack imgur com XrPz9 png rel noreferrer img src https stack imgur com XrPz9 png alt Wrong lili pTwo tabs for two specific tasks strong right strong pp href https stack imgur com pwpgW png rel noreferrer img src https stack imgur com pwpgW png alt Right li olp strong emTab pages are containers or viewports designed to contain one or more windows themselves also containers designed to contain buffers em strong ph2In conclusion h2p Vim experts let assume can speak as if was one strongdon prefer buffers over tabs strong they just use Vim as it was designed and are perfectly comfortable with that design pulli Vim experts have 30 or 97 buffers loaded and are very happy they don have to deal with spatial distribution lili pwhen they need to compare two files or work in one part of the current buffer while keeping another as reference Vim experts use windows because that how they are meant to be used lili pwhen they need to work for while on separate part of the project without messing with their current view Vim experts load brand new tab page li ul is pretty standard actually but corner cases are easy to come by IS not really handling it it more like avoiding it Sublime Ctrl like its predecessors and its imitators is itself much much better alternative to lists trees and tabs which all have numerous usability issues Buffers is definitely THE way to go In Vim and elsewhere pBuilding Vim on Mac OS is waste of time ppStep Download the appropriate MacVim build from href https github com b4winckler macvim releases there ppStep Put MacVim app into the code Applications code directory ppStep Put the bundled codemvim code script somewhere in your codePATH code ppDone ppTo run MacVim emin em your shell ppre code mvim filename code prepTo run MacVim emfrom em your shell ppre code mvim filename code pre lua is only used by handful of plugins pWhat Vim adds to the end of the last line in your file is the newline character which should not to be confused with new line ppThe newline character or more accurately end of line character code lt EOL gt code means whatever comes after this point must be considered to be on another line With this interpretation code lt EOL gt code is line emterminator em the last line of the file is effectively the last one with an code lt EOL gt code ppThe problem is that most editors and IDEs have different interpretation code lt EOL gt code is line emseparator em and logically default to emnot em add an code lt EOL gt code at the end of the last line of new file and when they encounter an code lt EOL gt code add superfluous new line after the real last line ppIn short Vim doesn add new line other editors interpret wrongly its newline as new line ppBut you can get around that issue by doing the following before you write your file do code set binary noeol code if you want it to stay code lt EOL gt code free ppHowever code binary code has lot to say about the perils of code set binary code so say that turning it on all the time sounds like bad idea ppTo illustrate the different behaviors this is what happens when you try to concatenate two files with code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le amet Le tramway jaune avance lentement dans le code prepand this is what happens when you try to concatenate two files without code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le ametLe tramway jaune avance lentement dans le code prepThe first behavior is somehow the expected behavior and the reason why Vim and many if not most UNIX programs default to the emterminator em interpretation and to adding an code lt EOL gt code character at the end of the last line ppThe picture below shows simple file with code lt EOL gt code created with codenano code it would be the same with Vim and opened in Eclipse TextMate Sublime Text Vim XCode and TextEdit pp img src https stack imgur com LCo7e png alt lt EOL gt pp edit strongThere is no line in this file strong and the only editor of the bunch that displays the file correctly is Vim line number column only purpose is to provide information on the buffer Showing lines where there are only is gross mistake endedit ppThis picture shows another simple file without code lt EOL gt code created with Sublime Text and opened in the same editors IDEs pp img src https stack imgur com DbnlK png alt No lt EOL gt That unhelpful VCS noise is direct consequence of the differences between editors explained in my answer so yeah it probably more relevant to you than you think pWhat Vim adds to the end of the last line in your file is the newline character which should not to be confused with new line ppThe newline character or more accurately end of line character code lt EOL gt code means whatever comes after this point must be considered to be on another line With this interpretation code lt EOL gt code is line emterminator em the last line of the file is effectively the last one with an code lt EOL gt code ppThe problem is that most editors and IDEs have different interpretation code lt EOL gt code is line emseparator em and logically default to emnot em add an code lt EOL gt code at the end of the last line of new file and when they encounter an code lt EOL gt code add superfluous new line after the real last line ppIn short Vim doesn add new line other editors interpret wrongly its newline as new line ppBut you can get around that issue by doing the following before you write your file do code set binary noeol code if you want it to stay code lt EOL gt code free ppHowever code binary code has lot to say about the perils of code set binary code so say that turning it on all the time sounds like bad idea ppTo illustrate the different behaviors this is what happens when you try to concatenate two files with code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le amet Le tramway jaune avance lentement dans le code prepand this is what happens when you try to concatenate two files without code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le ametLe tramway jaune avance lentement dans le code prepThe first behavior is somehow the expected behavior and the reason why Vim and many if not most UNIX programs default to the emterminator em interpretation and to adding an code lt EOL gt code character at the end of the last line ppThe picture below shows simple file with code lt EOL gt code created with codenano code it would be the same with Vim and opened in Eclipse TextMate Sublime Text Vim XCode and TextEdit pp img src https stack imgur com LCo7e png alt lt EOL gt pp edit strongThere is no line in this file strong and the only editor of the bunch that displays the file correctly is Vim line number column only purpose is to provide information on the buffer Showing lines where there are only is gross mistake endedit ppThis picture shows another simple file without code lt EOL gt code created with Sublime Text and opened in the same editors IDEs pp img src https stack imgur com DbnlK png alt No lt EOL gt it not my interpretation it has been the prevalent interpretation among text editor and CLI tool authors for decades Also Vim renders the final newline fine https imgur com PHOobJE png if you ask it to help list pWhat Vim adds to the end of the last line in your file is the newline character which should not to be confused with new line ppThe newline character or more accurately end of line character code lt EOL gt code means whatever comes after this point must be considered to be on another line With this interpretation code lt EOL gt code is line emterminator em the last line of the file is effectively the last one with an code lt EOL gt code ppThe problem is that most editors and IDEs have different interpretation code lt EOL gt code is line emseparator em and logically default to emnot em add an code lt EOL gt code at the end of the last line of new file and when they encounter an code lt EOL gt code add superfluous new line after the real last line ppIn short Vim doesn add new line other editors interpret wrongly its newline as new line ppBut you can get around that issue by doing the following before you write your file do code set binary noeol code if you want it to stay code lt EOL gt code free ppHowever code binary code has lot to say about the perils of code set binary code so say that turning it on all the time sounds like bad idea ppTo illustrate the different behaviors this is what happens when you try to concatenate two files with code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le amet Le tramway jaune avance lentement dans le code prepand this is what happens when you try to concatenate two files without code lt EOL gt code ppre code cat file1 cat file2 cat file1 file2lorem ipsum Le tramway jaune lorem ipsumdolor sit avance lentement dolor sitamet dans le ametLe tramway jaune avance lentement dans le code prepThe first behavior is somehow the expected behavior and the reason why Vim and many if not most UNIX programs default to the emterminator em interpretation and to adding an code lt EOL gt code character at the end of the last line ppThe picture below shows simple file with code lt EOL gt code created with codenano code it would be the same with Vim and opened in Eclipse TextMate Sublime Text Vim XCode and TextEdit pp img src https stack imgur com LCo7e png alt lt EOL gt pp edit strongThere is no line in this file strong and the only editor of the bunch that displays the file correctly is Vim line number column only purpose is to provide information on the buffer Showing lines where there are only is gross mistake endedit ppThis picture shows another simple file without code lt EOL gt code created with Sublime Text and opened in the same editors IDEs pp img src https stack imgur com DbnlK png alt No lt EOL gt would be tempted to consider it either as stream of some kind or as malformed file depending on the context pThe closest equivalent closest not exact to ST2 kbdCtrl kbd kbdP kbd is plugin called get ready… href http www vim org scripts script php script id 3736 rel noreferrer CtrlP There are other similar plugins like href http www vim org scripts script php script id 3025 rel noreferrer Command or href http www vim org scripts script php script id 1984 rel noreferrer FuzzyFinder ppI use CtrlP and love it but wholeheartedly support your decision to go plugin free It not the easiest way to go but it will pay off in the long run phrp strongOpening files strong ppThe most basic way to open file is code path to filename code Thankfully you get tab completion and wildcards the classic code code and special one code code which stands for any subdirectory ppCombining all of that you can do ppre code foo lt Tab gt code prepto choose from all the files containing codefoo code in their name under the working directory or ppre code foo bar lt Tab gt code prepto choose from all the files containing codebar code in their name under any subdirectory containing codefoo code in its name anywhere under the working directory ppOf course that works for code tabe dit code code sp lit code and code vs plit code too ppThose commands are limited to one file though Use code next code to open multiple files ppre code next js code prepand take look at code help arglist code phrp strongJumping between buffers strong pp code uffer code is the basic buffer switching command ppre code b4 switch to buffer number bn switch to next buffer in the buffer list bp switch to previous buffer in the buffer list bf switch to first buffer in the buffer list bl switch to last buffer in the buffer list foo lt Tab gt switch by buffer name with tab completion switch to the alternate file code prepNote that many of these commands and their relatives accept count ppThe code ls code command shows you list of loaded buffers It is bit special though buffers are assigned number when they are created so you can have list that looks like code1 code if you delete buffers This is bit awkward yes and that makes switching to buffer by its number bit too troublesome Prefer switching by partial name code foo lt Tab gt code or cycling code bn bp code ppAnyway here is cool mapping that lists all loaded buffers and populates the prompt for you waiting for you to type the number of buffer and press code lt enter gt code ppre codennoremap gb ls lt CR gt lt Space gt code prepWith this mapping switching to another buffer is as simple as ppre codegb quickly scanning the list lt CR gt code prepor ppre codegb quickly scanning the list foo lt tab gt lt CR gt code prepThe idea comes from this image href http of vim and vigor blogspot ro vim vigor comic html rel noreferrer taken from Bairui collection of Vim infographics pp img src https bp blogspot com d1GaUBk Y10 TyFhskmCYRI AAAAAAAAARQ CIEx1V7FLqg s1600 vim and vigor 004 flying is faster than cycling png alt Flying vs cycling ppVim also has code lt gt code or code lt gt code on some keyboards —the normal mode equivalent of code code—to jump between the current buffer and the previous one Use it if you often alternate between two buffers ppRead all about buffers in code help buffers code phrp strongGo to declaration strong ppWithin file you can use codegd code or codegD code ppWithin project Vim tags feature is your friend but you ll need an external code indexer like ctags or cscope The most basic commands are code tag foo code and code lt gt code with the cursor on method name Both tools are well integrated into Vim see code help tags code code help ctags code and code help cscope code ppFor what it worth use tag navigation extensively to move within project using CtrlP code CtrlPTag code and code CtrlPBufTag code commands mostly but the buit in ones too and my favorite generic buffer switching method is by name phrp strongDeploying your config strong ppA lot of Vim users put their config under version control which makes it emvery em quick and easy to install your own config on new machine Think about it phrp strong emEDIT em strong ppA few months ago had to work on remote machine with an outdated Vim could have installed proper Vim and cloned my own beloved config but decided to travel light this time in order to sharpen the saw quickly built minimalist code vimrc code and revisited couple of half forgotten native features After that gig decided CtrlP wasn that necessary and got rid of it native features and custom mappings are not as sexy but they get the job done without much dependencies phrp strongJuggling with files strong ppre codeset path nnoremap lt leader gt find nnoremap lt leader gt sfind nnoremap lt leader gt vert sfind nnoremap lt leader gt tabfind code prep code find code is truly great command as soon as you codeset path code correctly With my settings code ffoo lt Tab gt code will find all the files containing codefoo code under the current directory recursively It quick intuitive and lightweight Of course benefit from the same completion and wildcards as with code edit code and friends ppTo make the process even quicker the following mappings allow me to skip entire parts of the project and find files recursively under the directory of the current file ppre codennoremap lt leader gt find lt gt expand lt CR gt nnoremap lt leader gt sfind lt gt expand lt CR gt nnoremap lt leader gt vert sfind lt gt expand lt CR gt nnoremap lt leader gt tabfind lt gt expand lt CR gt code prep strongWARNING The codepath code option is emextremely em powerful The value above—code code—works emfor me em but the languages use don have standard library The emproper em value depends entirely on emyour em needs strong phrp strongJuggling with buffers strong ppre codeset wildcharm lt gt nnoremap lt leader gt buffer lt gt lt Tab gt nnoremap lt leader gt sbuffer lt gt lt Tab gt code prepThe mappings above list the available buffers in the wildmenu with an empty prompt allowing me to either navigate the menu with code lt Tab gt code or type few letters and code lt Tab gt code again to narrow down the list Like with the file mappings above the process is quick and almost friction less ppre codennoremap lt PageUp gt bprevious lt CR gt nnoremap lt PageDown gt bnext lt CR gt code prepThose mappings speak for themselves phrp strongJuggling with tags strong ppre codennoremap lt leader gt tjump code prepThis mapping uses regex search instead of whole word search so can do code jba lt Tab gt code to find tag codefoobarbaz code ppYes fuzzy matching is addictive but you can be just as productive without it And for fraction of the cost phrp strong emMORE EDIT em strong ppA couple of additional tips tricks… phrp strongWildmenu options strong ppThe wildmenu enabled with codeset wildmenu code makes file buffer navigation easier Its behavior is governed by bunch of options that are worth investigating pp codewildmode code tells Vim how you want the wildmenu to behave ppre codeset wildmode list full code prep codewildignore code filters out all the cruft ppre codeset wildignore swp bakset wildignore pyc class sln Master csproj csproj user cache dll pdb min set wildignore git hg svn set wildignore tagsset wildignore tar code prep codewildignorecase code allows you to search for codefoo code and find codeFoo code ppre codeset wildignorecase code prehrp strongFile marks strong ppre codeaugroup VIMRC autocmd autocmd BufLeave css normal mC autocmd BufLeave html normal mH autocmd BufLeave js normal mJ autocmd BufLeave php normal mPaugroup END code prepI recently found this gem in someone else code vimrc code It creates file mark at the exact position of the cursor whenever you leave buffer so that wherever you are code code jumps to the latest JavaScript buffer you edited Awesome Looks like you found me,1,NULL,vimgrep pattern and immediately open quickfix in split mode vim pNot sure if this has been ask if so can find it ppI want to run vimgrep to search for pattern ve been doing this And when it find match it seems to open up the first file right away ppThis is not what want want the quickfix window to be open in horizontal pane split for me to navigate through the matches This is my command in codevimrc code pp codecommand nargs Ngrep vimgrep lt args gt md code pAdd this snippet to your codevimrc code to tell Vim to automatically open the location quickfix window after code make code code grep code code lvimgrep code and friends if there are valid locations errors ppre codeaugroup myvimrc autocmd autocmd QuickFixCmdPost cwindow autocmd QuickFixCmdPost lwindowaugroup END code prepIf you don want Vim to jump to the first match use the codej code flag ppre code vimgrep foo md code prepas explained in code help vimgrep code How to force an option after it has been overriden by vim plugin vim vim plugin pI have classic settings to codeexpandtab code in my code etc vimrc code ppre codeset expandtabset tabstop 4set shiftwidth code prep strongHow do make sure they are not overridden by ANY plugin strong pp strongHow to force them ignoring ALL plugins strong ppSettings in code etc vimrc code are overwritten by language specific settings want the opposite any language specific settings is overwritten by strongmy strong settings in code etc vimrc code ppI appreciate the smart setting by filetype but they have just got too smart the default codevim code setup sets codenoexpandtab code on some unrelated files Even if can find the culprit plugin don want to fix them one by one there is always chance some new plugin will mess things up again would rather live with accidental spaces where tabs are expected then otherwise pThe only ways to satisfy your requirements emwhile still enabling filetype plugins em could think of involve overriding every possible filetype plugin ppThe simplest is probably to do it in code etc vimrc code with an autocommand ppre codeaugroup expandtabFTW autocmd autocmd FileType setlocal expandtabaugroup END code pre 66151,144792,643180,Scholar Student Necromancer Yearling Popular Question Caucus Notable Question Caucus Nice Question Editor Popular Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 66152,505255,1235413,Notable Question,NULL,NULL,0,NULL,NULL 66153,18080,441358,Good Question Famous Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66154,1353122,1162332,NULL,NULL,NULL,0,NULL,NULL 66155,128392,824878,NULL,NULL,NULL,0,NULL,NULL 66156,1054511,73432,Yearling Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 66157,45720,1376412,NULL,NULL,NULL,0,NULL,NULL 66158,495735,420499,NULL,NULL,NULL,0,NULL,NULL 66159,138279,275216,Guru Yearling,NULL,NULL,0,NULL,NULL 66160,1626842,337591,Notable Question Notable Question Popular Question Nice Answer Popular Question Revival Notable Question Yearling Popular Question Necromancer Notable Question Popular Question Yearling Nice Question Caucus Popular Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66161,227203,814234,NULL,NULL,NULL,0,NULL,NULL 66162,8114408,814234,NULL,NULL,NULL,0,NULL,NULL 66163,544394,41304,Famous Question Custodian Citizen Patrol Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 66164,33918,785134,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 66165,2165,454144,Popular Question Yearling Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 66166,87898,1437571,Guru Editor Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 66167,69195,432904,NULL,NULL,NULL,0,NULL,NULL 66168,167818,184934,NULL,NULL,NULL,0,NULL,NULL 66169,1506736,1150745,NULL,NULL,NULL,0,NULL,NULL 66170,362424,794755,Good Answer Yearling Popular Question Famous Question Yearling Popular Question Yearling Great Answer,NULL,pYou can use new href http developer android com guide topics graphics prop animation html rel noreferrer Property Animation Api for color animation ppre codeint colorFrom getResources getColor color red int colorTo getResources getColor color blue ValueAnimator colorAnimation ValueAnimator ofObject new ArgbEvaluator colorFrom colorTo colorAnimation setDuration 250 millisecondscolorAnimation addUpdateListener new AnimatorUpdateListener public void onAnimationUpdate ValueAnimator animator textView setBackgroundColor int animator getAnimatedValue colorAnimation start code prepFor backward compatibility with Android use href http nineoldandroids com rel noreferrer Nine Old Androids library from Jake Wharton ppThe codegetColor code method was deprecated in Android so you have two choices pulli pIf you use the support library you need to replace the codegetColor code calls with ppre codeContextCompat getColor this color red code pre lili pif you don use the support library you need to replace the codegetColor code calls with ppre codegetColor color red code pre li ul why do you think it now private Documentation does not agree with you,0,NULL,NULL 66171,372066,1095235,NULL,NULL,NULL,0,NULL,NULL 66172,381721,294103,Famous Question Famous Question Custodian Yearling Nice Question Notable Question Famous Question Popular Question Good Question Caucus Excavator Census Yearling Good Answer Notable Question Yearling Caucus Popular Question Good Question Favorite Question,NULL,NULL,0,NULL,NULL 66173,410136,1254487,Informed,NULL,NULL,0,NULL,NULL 66174,892041,196666,Nice Question Nice Answer Famous Question Nice Question Yearling Famous Question Famous Question Yearling Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 66175,322735,913049,NULL,NULL,NULL,0,NULL,NULL 66176,48629,382008,Yearling Caucus Constituent Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 66177,145395,927814,NULL,NULL,NULL,0,NULL,NULL 66178,150264,34134,Popular Question Nice Question Popular Question Notable Question Taxonomist Notable Question Popular Question Popular Question Nice Question Yearling Nice Question Nice Question Famous Question Popular Question Good Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 66179,168323,209899,Nice Answer Enlightened Revival Nice Answer Enlightened Nice Answer Enlightened Popular Question Caucus Popular Question Yearling Notable Question Notable Question Notable Question Explainer Nice Answer Nice Answer Enlightened Famous Question Informed Reviewer Good Question Caucus Constituent Famous Question Documentation User Yearling Custodian Census Caucus Constituent Nice Answer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 66180,1326943,606998,NULL,NULL,NULL,0,NULL,NULL 66181,8178664,580714,NULL,NULL,NULL,0,NULL,NULL 66182,11330,580714,NULL,NULL,NULL,0,NULL,NULL 66183,3353899,580714,NULL,NULL,NULL,0,NULL,NULL 66184,1406202,580714,NULL,NULL,NULL,0,NULL,NULL 66185,92912,109524,NULL,NULL,NULL,0,NULL,NULL 66186,323541,104044,NULL,NULL,NULL,0,NULL,NULL 66187,228078,478819,NULL,NULL,NULL,0,NULL,NULL 66188,497672,1349626,NULL,NULL,NULL,0,NULL,NULL 66189,4915,678451,NULL,NULL,NULL,0,NULL,NULL 66190,6175758,672990,NULL,NULL,NULL,0,NULL,NULL 66191,233430,672990,NULL,NULL,NULL,0,NULL,NULL 66192,7729731,272770,Yearling Organizer Nice Question Popular Question Great Question Yearling Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 66193,201111,272770,Yearling Organizer Nice Question Popular Question Great Question Yearling Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 66194,914857,1447099,Tenacious Yearling Yearling cassandra Yearling,NULL,NULL,0,NULL,NULL 66195,436447,676119,Nice Answer Editor Yearling Revival Promoter Necromancer Benefactor Nice Answer Necromancer Nice Answer Popular Question,NULL,pRSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM It does not include memory that is swapped out It does include memory from shared libraries as long as the pages from those libraries are actually in memory It does include all stack and heap memory ppVSZ is the Virtual Memory Size It includes all memory that the process can access including memory that is swapped out memory that is allocated but not used and memory that is from shared libraries ppSo if process has 500K binary and is linked to 2500K of shared libraries has 200K of stack heap allocations of which 100K is actually in memory rest is swapped or unused and it has only actually loaded 1000K of the shared libraries and 400K of its own binary then ppre codeRSS 400K 1000K 100K 1500KVSZ 500K 2500K 200K 3200K code prepSince part of the memory is shared many processes may use it so if you add up all of the RSS values you can easily end up with more space than your system has ppThe memory that is allocated also may not be in RSS until it is actually used by the program So if your program allocated bunch of memory up front then uses it over time you could see RSS going up and VSZ staying the same ppThere is also PSS proportional set size This is newer measure which tracks the shared memory as proportion used by the current process So if there were two processes using the same shared library from before ppre codePSS 400K 1000K 100K 400K 500K 100K 1000K code prepThreads all share the same address space so the RSS VSZ and PSS for each thread is identical to all of the other threads in the process Use ps or top to view this information in linux unix ppThere is way more to it than this to learn more check the following references pulli href http manpages ubuntu com manpages en man1 ps html rel noreferrer http manpages ubuntu com manpages en man1 ps html lili href https web archive org web 20120520221529 http emilics com blog article mconsumption html rel noreferrer https web archive org web 20120520221529 http emilics com blog article mconsumption html li ulpAlso see pulli href https stackoverflow com questions 118307 way to determine processs real memory usage private dirty rss way to determine process 39 real memory usage private dirty RSS li ul Is there command to return the PSS of process,0,NULL,NULL 66196,10704022,676119,Nice Answer Editor Yearling Revival Promoter Necromancer Benefactor Nice Answer Necromancer Nice Answer Popular Question,NULL,pRSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM It does not include memory that is swapped out It does include memory from shared libraries as long as the pages from those libraries are actually in memory It does include all stack and heap memory ppVSZ is the Virtual Memory Size It includes all memory that the process can access including memory that is swapped out memory that is allocated but not used and memory that is from shared libraries ppSo if process has 500K binary and is linked to 2500K of shared libraries has 200K of stack heap allocations of which 100K is actually in memory rest is swapped or unused and it has only actually loaded 1000K of the shared libraries and 400K of its own binary then ppre codeRSS 400K 1000K 100K 1500KVSZ 500K 2500K 200K 3200K code prepSince part of the memory is shared many processes may use it so if you add up all of the RSS values you can easily end up with more space than your system has ppThe memory that is allocated also may not be in RSS until it is actually used by the program So if your program allocated bunch of memory up front then uses it over time you could see RSS going up and VSZ staying the same ppThere is also PSS proportional set size This is newer measure which tracks the shared memory as proportion used by the current process So if there were two processes using the same shared library from before ppre codePSS 400K 1000K 100K 400K 500K 100K 1000K code prepThreads all share the same address space so the RSS VSZ and PSS for each thread is identical to all of the other threads in the process Use ps or top to view this information in linux unix ppThere is way more to it than this to learn more check the following references pulli href http manpages ubuntu com manpages en man1 ps html rel noreferrer http manpages ubuntu com manpages en man1 ps html lili href https web archive org web 20120520221529 http emilics com blog article mconsumption html rel noreferrer https web archive org web 20120520221529 http emilics com blog article mconsumption html li ulpAlso see pulli href https stackoverflow com questions 118307 way to determine processs real memory usage private dirty rss way to determine process 39 real memory usage private dirty RSS li ul Is there command to return the PSS of process,0,NULL,NULL 66197,69699,132987,Yearling Popular Question Guru Self-Learner Enlightened Popular Question,NULL,NULL,0,NULL,NULL 66198,196967,468986,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 66199,1057664,476845,NULL,NULL,NULL,0,NULL,NULL 66200,249063,476845,NULL,NULL,NULL,0,NULL,NULL 66201,515573,1140327,Popular Question Informed Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 66202,301971,1434158,Popular Question Revival,NULL,NULL,0,NULL,NULL 66203,914303,775534,NULL,NULL,NULL,0,NULL,NULL 66204,218210,1175629,Yearling Documentation User Caucus Informed,NULL,NULL,0,NULL,NULL 66205,353186,840592,NULL,NULL,NULL,0,NULL,NULL 66206,98667,524396,NULL,NULL,NULL,0,NULL,NULL 66207,195479,1348136,NULL,NULL,NULL,0,NULL,NULL 66208,108962,510287,Nice Answer Good Question Nice Question Popular Question Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 66209,22786,1478336,NULL,NULL,NULL,0,NULL,NULL 66210,400584,1404722,NULL,NULL,NULL,0,NULL,NULL 66211,1180081,867695,Critic Caucus Census Popular Question,NULL,NULL,0,NULL,NULL 66212,46822,726552,NULL,NULL,NULL,0,NULL,NULL 66213,519447,1055510,NULL,NULL,NULL,0,NULL,NULL 66214,62886,794061,Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 66215,1437947,1060667,Editor Scholar Student,NULL,NULL,0,NULL,NULL 66216,200853,1180211,NULL,NULL,NULL,0,NULL,NULL 66217,142760,1536870,NULL,NULL,NULL,0,NULL,NULL 66218,157066,1127515,NULL,NULL,NULL,0,NULL,NULL 66219,656837,910967,NULL,NULL,NULL,0,NULL,NULL 66220,77565,309375,NULL,NULL,NULL,0,NULL,NULL 66221,808165,1114170,Critic Civic Duty Yearling Necromancer Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 66222,888706,959439,NULL,NULL,NULL,0,NULL,NULL 66223,287789,883796,NULL,NULL,NULL,0,NULL,NULL 66224,316684,600545,Famous Question Yearling Notable Question Notable Question Notable Question Notable Question Nice Answer Necromancer Notable Question Famous Question Notable Question Nice Question Nice Question Popular Question Popular Question Yearling Announcer Popular Question Nice Answer Popular Question Popular Question Notable Question Notable Question Notable Question Good Question Nice Question Popular Question Notable Question Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 66225,1035556,931323,Nice Question Notable Question scala Nice Answer Enlightened Famous Question Yearling Necromancer Notable Question Nice Answer Notable Question Nice Answer Enlightened Yearling Good Answer Self-Learner Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 66226,52431,1438566,Informed Autobiographer,NULL,NULL,0,NULL,NULL 66227,1468937,663253,Scholar,NULL,NULL,0,NULL,NULL 66228,903942,555899,Great Answer Nice Answer Enlightened Necromancer Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 66229,1444613,592012,Notable Question Notable Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 66230,775394,1325644,NULL,NULL,NULL,0,NULL,NULL 66231,1989247,565126,Yearling Guru,NULL,NULL,0,NULL,NULL 66232,398915,220671,Necromancer Necromancer Yearling Nice Answer Revival Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 66233,418584,1565767,NULL,NULL,NULL,0,NULL,NULL 66234,115579,823909,NULL,NULL,NULL,0,NULL,NULL 66235,682780,1452287,NULL,NULL,NULL,0,NULL,NULL 66236,361468,165871,NULL,NULL,NULL,0,NULL,NULL 66237,15841,941106,Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 66238,316357,559390,NULL,NULL,NULL,0,NULL,NULL 66239,249505,286182,Nice Question Yearling Good Answer Necromancer Necromancer Notable Question Nice Answer Custodian Good Question Yearling Necromancer Good Answer Nice Answer Necromancer Popular Question Yearling Necromancer Populist Nice Answer Nice Answer Necromancer,NULL,pIf you don have to support lt IE8 you can do this which will generically intercept strongany strong AJAX globally and not screw up any callbacks etc that maybe have been assigned by any third party AJAX libraries The accepted answer does not yield the actual response because it is getting called too early ppre code function var origOpen XMLHttpRequest prototype open XMLHttpRequest prototype open function console log request started this addEventListener load function console log request completed console log this readyState will always be ajax is completed successfully console log this responseText whatever the response was origOpen apply this arguments code prepSome more docs of what you can do here with the addEventListener API here pp href https developer mozilla org en US docs Web API XMLHttpRequest Using XMLHttpRequest Monitoring progress https developer mozilla org en US docs Web API XMLHttpRequest Using XMLHttpRequest Monitoring progress Simply because ve searched bit for this The load event is only called on success If you don care about the result just that the query did end you can use the loadend event,0,NULL,NULL 66240,123823,1160651,NULL,NULL,NULL,0,NULL,NULL 66241,954354,319090,NULL,NULL,NULL,0,NULL,NULL 66242,136021,1203033,NULL,NULL,NULL,0,NULL,NULL 66243,554769,1203033,NULL,NULL,NULL,0,NULL,NULL 66244,9545779,1027222,Student,NULL,NULL,0,NULL,NULL 66245,1191256,1027222,Student,NULL,NULL,0,NULL,NULL 66246,432047,164552,Good Answer Popular Question Yearling Enlightened Good Answer Yearling Nice Answer Notable Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 66247,374803,453173,Popular Question Yearling,NULL,NULL,0,NULL,NULL 66248,313065,708709,Popular Question,NULL,NULL,0,NULL,NULL 66249,450715,114307,Good Answer Yearling Popular Question Nice Answer Popular Question Necromancer Guru Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 66250,129062,11236,Popular Question Nice Question Popular Question Announcer Nice Question Nice Question Good Question Notable Question Great Question Famous Question Notable Question Great Question Notable Question Famous Question Announcer Nice Question Nice Question Good Question Nice Question Good Question Notable Question Good Question Great Question Nice Question Notable Question Nice Question Popular Question Nice Question Popular Question Popular Question Socratic Notable Question Great Question Good Question Notable Question Good Question Popular Question Popular Question Notable Question Notable Question Good Question Great Question Popular Question Notable Question Popular Question Good Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Favorite Question Popular Question Favorite Question Great Question Notable Question Famous Question Nice Answer Nice Answer Revival Popular Question Nice Question Notable Question Popular Question Famous Question Nice Question Good Question Notable Question Nice Question Notable Question Famous Question Famous Question Nice Question Popular Question Good Question Nice Question Good Question Great Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Famous Question Nice Question Famous Question Notable Question Popular Question Nice Question Popular Question Famous Question Notable Question Nice Answer Nice Question Good Question Famous Question Announcer Yearling Nice Question Famous Question Notable Question Favorite Question Famous Question Nice Question Popular Question Notable Question Famous Question Famous Question Famous Question Popular Question Nice Question Favorite Question Notable Question Stellar Question Popular Question Famous Question Great Question Famous Question Good Question Notable Question Famous Question Notable Question Famous Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Great Question Notable Question Good Question Notable Question Nice Question Announcer Announcer Notable Question Notable Question Great Question Notable Question Nice Question Nice Question Good Question Custodian Famous Question Famous Question Famous Question Famous Question Popular Question Good Question Nice Question Popular Question Good Question Great Answer Good Question Good Question Notable Question Notable Question Good Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Notable Question Notable Question Great Question Notable Question Famous Question Notable Question Great Question Notable Question Famous Question Announcer Popular Question Good Question Favorite Question Popular Question Favorite Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Good Question Nice Question Famous Question Notable Question Famous Question Announcer Notable Question Famous Question Notable Question Good Question Popular Question Nice Question Popular Question Nice Question Favorite Question Notable Question Nice Question Announcer Yearling Nice Question Popular Question Great Question Famous Question Popular Question Popular Question Necromancer Nice Question Good Question Documentation User Announcer Nice Question Popular Question Notable Question Notable Question Famous Question Popular Question Famous Question Popular Question Famous Question Good Question Notable Question Famous Question Popular Question Nice Question Famous Question Good Question Popular Question Famous Question Notable Question Nice Question Good Question Good Question Favorite Question Good Question Favorite Question Famous Question Nice Question Good Question Notable Question Popular Question Famous Question Nice Question Great Question Popular Question Popular Question Popular Question Great Question Nice Question Notable Question Popular Question Announcer Famous Question Announcer Popular Question Good Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Good Question Notable Question Popular Question Great Question Nice Question Popular Question Popular Question Great Question Nice Question Nice Question Famous Question Yearling Popular Question Popular Question Notable Question Favorite Question Popular Question Famous Question Nice Question Famous Question Stellar Question Famous Question Good Question Notable Question Stellar Question Famous Question Famous Question Famous Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 66251,62577,741628,Nice Answer Yearling Nice Answer Notable Question Notable Question Nice Answer Yearling Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 66252,34761,1169514,NULL,NULL,NULL,0,NULL,NULL 66253,8196171,982529,Supporter Curious Enthusiast Fanatic Popular Question Notable Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 66254,139138,982529,Supporter Curious Enthusiast Fanatic Popular Question Notable Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 66255,160631,43381,NULL,NULL,NULL,0,NULL,NULL 66256,677992,1149253,NULL,NULL,NULL,0,NULL,NULL 66257,353690,1366833,Yearling Yearling Custodian Informed Autobiographer Custodian Custodian,NULL,NULL,0,NULL,NULL 66258,1962918,1205693,NULL,NULL,NULL,0,NULL,NULL 66259,65429,1205693,NULL,NULL,NULL,0,NULL,NULL 66260,310821,1135306,NULL,NULL,NULL,0,NULL,NULL 66261,1567690,1314950,NULL,NULL,NULL,0,NULL,NULL 66262,185436,591274,Custodian Caucus,NULL,NULL,0,NULL,NULL 66263,1262519,608257,NULL,NULL,NULL,0,NULL,NULL 66264,1352167,1298784,Popular Question Yearling Revival Curious Organizer Custodian Citizen Patrol Explainer Custodian Custodian Popular Question Yearling Necromancer Necromancer Caucus Constituent Notable Question Nice Answer Necromancer Famous Question Yearling Necromancer Nice Answer Popular Question Yearling Caucus Constituent Census Nice Answer Good Answer Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 66265,40521,1456872,NULL,NULL,NULL,0,NULL,NULL 66266,576833,529654,NULL,NULL,NULL,0,NULL,NULL 66267,991803,309959,Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 66268,887281,1043620,Editor,NULL,NULL,0,NULL,NULL 66269,692594,569598,NULL,NULL,NULL,0,NULL,NULL 66270,683782,569598,NULL,NULL,NULL,0,NULL,NULL 66271,568822,96175,Yearling Necromancer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 66272,3147084,760605,NULL,NULL,NULL,0,NULL,NULL 66273,209827,1217206,Informed Nice Question Yearling Citizen Patrol Revival Caucus Yearling Famous Question Caucus Good Question Popular Question,NULL,NULL,0,NULL,NULL 66274,161300,1281740,NULL,NULL,NULL,0,NULL,NULL 66275,35009,415389,Yearling Critic Populist Editor Excavator Yearling,NULL,NULL,0,NULL,NULL 66276,19873,490589,Nice Answer Revival Yearling Necromancer Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 66277,313595,546175,NULL,NULL,NULL,0,NULL,NULL 66278,134284,309249,NULL,NULL,NULL,0,NULL,NULL 66279,1763558,309249,NULL,NULL,NULL,0,NULL,NULL 66280,91680,214137,Necromancer Critic Commentator,NULL,NULL,0,NULL,NULL 66281,754016,1564592,NULL,NULL,NULL,0,NULL,NULL 66282,178742,1370680,Informed,NULL,NULL,0,NULL,NULL 66283,818117,1295474,Yearling Critic Caucus Popular Question Documentation User,NULL,NULL,0,NULL,NULL 66284,29653,552403,Yearling Self-Learner,NULL,NULL,0,NULL,NULL 66285,479329,1360396,NULL,NULL,NULL,0,NULL,NULL 66286,1148273,840889,Notable Question,NULL,NULL,0,NULL,NULL 66287,178541,1214229,NULL,NULL,NULL,0,NULL,NULL 66288,32520,377117,Yearling,NULL,NULL,0,NULL,NULL 66289,2827,380438,Census,NULL,NULL,0,NULL,NULL 66290,136342,910325,Nice Answer Great Answer Yearling Caucus Populist Caucus Constituent Yearling Good Answer Announcer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 66291,408131,319277,Yearling Critic Revival,NULL,NULL,0,NULL,NULL 66292,190676,1404685,NULL,NULL,NULL,0,NULL,NULL 66293,86976,904547,Teacher,NULL,NULL,0,NULL,NULL 66294,1388367,1460695,NULL,NULL,NULL,0,NULL,NULL 66295,427248,256357,Famous Question Famous Question Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Yearling Famous Question Famous Question Good Question Notable Question Famous Question Famous Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 66296,18829,330045,NULL,NULL,NULL,0,NULL,NULL 66297,124712,464560,NULL,NULL,NULL,0,NULL,NULL 66298,608896,791687,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66299,2094,539184,Yearling Yearling,NULL,NULL,0,NULL,NULL 66300,171395,1987,Nice Question Yearling Great Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 66301,35400,657336,NULL,NULL,NULL,0,NULL,NULL 66302,419453,831033,NULL,NULL,,0,, 66303,34331,273156,NULL,NULL,NULL,0,NULL,NULL 66304,50621,141688,Nice Answer Good Answer Nice Answer Enlightened Yearling Necromancer Excavator Necromancer Popular Question Nice Question Good Answer Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66305,170472,68674,Favorite Question Great Question Yearling Notable Question Notable Question Popular Question Popular Question Notable Question Caucus Notable Question Yearling Notable Question Guru Famous Question Nice Question Popular Question Caucus Promoter Benefactor Popular Question Custodian Popular Question Popular Question Yearling Good Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66306,258010,14114,Notable Question Proofreader Notable Question Nice Answer Self-Learner Yearling Nice Question Good Question Caucus Guru c++ Yearling Documentation User Good Answer Custodian Reviewer Strunk & White Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66307,51566,680662,Yearling,NULL,NULL,0,NULL,NULL 66308,150283,961703,Autobiographer,NULL,NULL,0,NULL,NULL 66309,708877,597632,NULL,NULL,NULL,0,NULL,NULL 66310,1486872,1033015,NULL,NULL,NULL,0,NULL,NULL 66311,1003885,47466,Notable Question,NULL,NULL,0,NULL,NULL 66312,924200,599699,Investor Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66313,147446,1333496,NULL,NULL,NULL,0,NULL,NULL 66314,334274,60336,Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66315,34933,263833,Necromancer Nice Answer Revival Critic Yearling,NULL,NULL,0,NULL,NULL 66316,629841,967031,Notable Question Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 66317,629851,967031,Notable Question Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 66318,1121715,536368,Necromancer Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 66319,71017,1120906,NULL,NULL,NULL,0,NULL,NULL 66320,281613,188083,Documentation User,NULL,NULL,0,NULL,NULL 66321,270468,20946,Nice Question Popular Question Famous Question Good Question Famous Question Popular Question Good Question Nice Question Famous Question Yearling Famous Question Notable Question Famous Question Favorite Question Nice Question Nice Question Good Question Guru Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer Good Question Yearling Famous Question Nice Question Socratic Popular Question Nice Answer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 66322,1609408,20946,Nice Question Popular Question Famous Question Good Question Famous Question Popular Question Good Question Nice Question Famous Question Yearling Famous Question Notable Question Famous Question Favorite Question Nice Question Nice Question Good Question Guru Famous Question Notable Question Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer Good Question Yearling Famous Question Nice Question Socratic Popular Question Nice Answer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 66323,922959,343155,Enthusiast Yearling Commentator Nice Answer Enlightened Custodian Self-Learner Yearling Census,NULL,NULL,0,NULL,NULL 66324,1132556,1265572,Popular Question Popular Question Yearling Notable Question Yearling Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 66325,425063,978841,NULL,NULL,NULL,0,NULL,NULL 66326,292968,252460,NULL,NULL,NULL,0,NULL,NULL 66327,455037,378386,Revival Yearling Necromancer Popular Question Self-Learner Caucus Constituent Popular Question Tag Editor Reviewer Popular Question Caucus Announcer Constituent Documentation User Yearling Necromancer Caucus Popular Question Necromancer,NULL,NULL,0,NULL,NULL 66328,627318,160976,Nice Question Popular Question Yearling Scholar,NULL,NULL,0,NULL,NULL 66329,187040,1048494,Yearling,NULL,NULL,0,NULL,NULL 66330,1510607,457430,NULL,NULL,NULL,0,NULL,NULL 66331,5638,1147097,Commentator Curious Popular Question Nice Answer Notable Question Critic,NULL,NULL,0,NULL,NULL 66332,324307,699971,Nice Answer Caucus Revival,NULL,NULL,0,NULL,NULL 66333,415373,550964,Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66334,441720,1114790,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66335,1155505,1041059,NULL,NULL,NULL,0,NULL,NULL 66336,105451,741730,Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 66337,1794328,741730,Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 66338,115537,1065566,NULL,NULL,NULL,0,NULL,NULL 66339,456,930743,NULL,NULL,NULL,0,NULL,NULL 66340,479487,1141160,Necromancer Promoter Notable Question Caucus Popular Question Famous Question Yearling Popular Question Caucus Civic Duty Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66341,231921,764458,NULL,NULL,NULL,0,NULL,NULL 66342,257836,223022,NULL,NULL,NULL,0,NULL,NULL 66343,190661,1461478,NULL,NULL,NULL,0,NULL,NULL 66344,1328769,176357,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 66345,402867,536601,NULL,NULL,NULL,0,NULL,NULL 66346,8906,578288,Nice Question Yearling Necromancer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Curious Nice Answer Enlightened Notable Question Custodian Popular Question Nice Answer Necromancer Documentation Pioneer Nice Answer Announcer Great Answer Caucus jquery Yearling Great Answer Revival Booster Nice Answer Announcer Nice Answer Custodian Announcer Announcer Caucus javascript Copy Editor Custodian Proofreader Notable Question Announcer Popular Question Notable Question Documentation User Necromancer Nice Question Popular Question Announcer Custodian Census Yearling Good Answer Cleanup Booster Good Answer Announcer Announcer Caucus Announcer Announcer git Announcer ruby Good Answer Revival Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 66347,325414,161922,Notable Question Good Question Famous Question Notable Question Famous Question Notable Question Good Question Popular Question Popular Question Nice Question Famous Question Notable Question Popular Question Famous Question Nice Question Famous Question Famous Question Nice Question Nice Question Nice Question Nice Answer Nice Question python Notable Question Popular Question Necromancer Notable Question Yearling Great Question Great Question Nice Question Nice Question Notable Question Great Question Famous Question Popular Question Caucus Notable Question Notable Question Good Question Notable Question Great Question Notable Question Popular Question Popular Question Popular Question Favorite Question Nice Question Notable Question Popular Question Famous Question Notable Question Famous Question Nice Question Nice Question Notable Question Electorate Popular Question Famous Question Yearling Famous Question Famous Question Popular Question Popular Question Famous Question Nice Question Notable Question Nice Question Popular Question Nice Question Popular Question Famous Question Famous Question Famous Question Necromancer Famous Question Notable Question Good Answer Great Question Great Question Famous Question Famous Question Notable Question Nice Answer Good Question Notable Question Favorite Question Nice Question Good Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Good Question Popular Question Good Question Popular Question Notable Question Nice Answer Yearling Good Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 66348,524453,994291,NULL,NULL,NULL,0,NULL,NULL 66349,918667,1178784,NULL,NULL,NULL,0,NULL,NULL 66350,14899,590848,Yearling Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 66351,1160277,154570,NULL,NULL,NULL,0,NULL,NULL 66352,175301,811189,Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 66353,226052,443787,NULL,NULL,NULL,0,NULL,NULL 66354,52264,268019,NULL,NULL,NULL,0,NULL,NULL 66355,2003045,498716,NULL,NULL,NULL,0,NULL,NULL 66356,68500,131935,Nice Question Yearling,NULL,NULL,0,NULL,NULL 66357,1313683,224592,NULL,NULL,NULL,0,NULL,NULL 66358,1322685,752891,Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 66359,211418,613967,Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66360,8060444,759231,NULL,NULL,NULL,0,NULL,NULL 66361,558039,649404,NULL,NULL,NULL,0,NULL,NULL 66362,284070,1468264,NULL,NULL,NULL,0,NULL,NULL 66363,306354,446453,Yearling Popular Question Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66364,1390723,1115239,Popular Question Informed Editor,NULL,NULL,0,NULL,NULL 66365,135985,121487,Yearling Custodian Revival Famous Question Yearling Famous Question Great Question,NULL,NULL,0,NULL,NULL 66366,315657,1017854,NULL,NULL,NULL,0,NULL,NULL 66367,435128,556644,Curious Necromancer Tumbleweed Necromancer Yearling Populist Nice Question Yearling Caucus Popular Question Necromancer,NULL,NULL,0,NULL,NULL 66368,36041,439449,NULL,NULL,NULL,0,NULL,NULL 66369,347876,1417663,NULL,NULL,NULL,0,NULL,NULL 66370,2083165,286103,Enthusiast Notable Question,NULL,NULL,0,NULL,NULL 66371,470169,1055815,NULL,NULL,NULL,0,NULL,NULL 66372,54963,104365,Caucus Critic,NULL,NULL,0,NULL,NULL 66373,3365312,1563656,NULL,NULL,NULL,0,NULL,NULL 66374,10803,156427,Nice Answer mongoengine Nice Answer Enlightened Popular Question Good Answer Good Answer Yearling Nice Answer Enlightened Custodian Nice Answer Enlightened Revival Nice Answer Good Answer Popular Question Yearling Nice Answer Enlightened Documentation User python Nice Answer Enlightened Nice Answer Nice Question Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 66375,1301031,778393,NULL,NULL,NULL,0,NULL,NULL 66376,4242987,778393,NULL,NULL,NULL,0,NULL,NULL 66377,89889,719818,NULL,NULL,NULL,0,NULL,NULL 66378,4493347,1165259,Scholar Yearling Reviewer Custodian Student Custodian Civic Duty Caucus Yearling Caucus Nice Answer Enlightened Census Yearling Suffrage Vox Populi Electorate Caucus Constituent,NULL,NULL,0,NULL,NULL 66379,1026876,1165259,Scholar Yearling Reviewer Custodian Student Custodian Civic Duty Caucus Yearling Caucus Nice Answer Enlightened Census Yearling Suffrage Vox Populi Electorate Caucus Constituent,NULL,NULL,0,NULL,NULL 66380,288712,1266426,Informed Autobiographer Popular Question Enthusiast Necromancer Editor Nice Answer Caucus Constituent Yearling Yearling Caucus Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 66381,68974,1389358,Yearling Supporter Critic Commentator Editor Yearling Yearling Yearling Yearling Yearling yocto openembedded,NULL,NULL,0,NULL,NULL 66382,22529,179015,Nice Question Nice Answer Great Answer Popular Question Notable Question Yearling Popular Question Explainer Good Answer Popular Question Good Answer Popular Question Yearling Famous Question Famous Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 66383,44025,2025,Nice Answer Popular Question Famous Question Famous Question Great Answer Notable Question Famous Question Great Question Nice Question Good Answer Popular Question Famous Question Famous Question Yearling Notable Question Popular Question Guru Notable Question Popular Question Nice Answer Famous Question Popular Question Nice Answer Nice Question Popular Question Notable Question Nice Question Yearling Nice Answer Nice Answer Great Question Custodian Peer Pressure Popular Question Famous Question Popular Question Nice Question Nice Question Nice Answer Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 66384,75471,612,Notable Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 66385,2800198,19147,Famous Question Yearling Good Question Favorite Question Notable Question Great Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 66386,230174,1038493,NULL,NULL,NULL,0,NULL,NULL 66387,51499,1308104,NULL,NULL,NULL,0,NULL,NULL 66388,109191,14794,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66389,403841,1084508,Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 66390,154756,1398719,NULL,NULL,NULL,0,NULL,NULL 66391,66096,583069,NULL,NULL,NULL,0,NULL,NULL 66392,220203,447603,Popular Question Popular Question Nice Question Famous Question Teacher Yearling Notable Question Popular Question Tumbleweed Good Question Nice Question,NULL,NULL,0,NULL,NULL 66393,1030583,1180822,Yearling Scholar Guru Suffrage Vox Populi Enthusiast Yearling Great Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66394,280486,150474,Yearling Popular Question,NULL,NULL,0,NULL,NULL 66395,87695,771838,Good Answer Revival Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Good Answer Census Yearling Scholar Student,NULL,Using acceptInsecureCerts with Headless Chrome and Selenium Webdriver macOS Rails Capybara google chrome selenium selenium webdriver capybara google chrome headless h3Question h3pDoes headless Chrome work with self signed certificates via the Selenium Webdriver on macOS ph3Info h3pI am attempting to get Rails system tests driven by headless Chrome over SSL ppI have locally self signed certificate that pass the the ruby Puma application server to terminate SSL requests In order to allow drivers to ignore SSL warnings on the locally signed certificate am using the codeacceptInsecureCerts code flag to configure the driver capabilities led to believe by href https bugs chromium org chromium issues detail id 721739 rel nofollow noreferrer this ticket in Chromium that this flag should be recognized as of Chrome 64 ppI can get tests to succeed with Chrome Firefox and headless Firefox Tests do not pass under headless Chrome am using at the time of this writing what believe to be the latest versions of Chrome and its variants ppThough folks in the href https bugs chromium org chromium issues detail id 721739 rel nofollow noreferrer Chromium ticket appear to be successfully running headless Chrome over locally signed SSL with the Selenium webdriver have not found this to work with the setup described here If my configuration is correct then am unsure if there is limitation in headless Chrome on macOS in Selenium webdriver ruby gem or something else haven considered If anyone has something similar working with Rails on macOS be interested to learn about your setup ph3Source h3pHere is some code to show how am configuring and running my RSpec Capybara tests ppTest setup ppre code rails helper rb standard rspec rails helper setup omitted Capybara register driver headless chrome do app options Selenium WebDriver Chrome Options new args headless disable gpu no sandbox disable web security capabilities Selenium WebDriver Remote Capabilities chrome acceptInsecureCerts true Capybara Selenium Driver new app browser chrome options options desired capabilities capabilities endRSpec configure do config config before each type system do driven by headless firefox endendmodule SystemTestHelpers def key file path Rails root join config ssl ssl lvh me key end def cert file path Rails root join config ssl ssl lvh me crt end def using app host host original host Capybara app host Capybara app host host Capybara server puma Host ssl Capybara server host key key file path amp cert cert file path yield ensure Capybara app host original host endendRSpec configure do config config include SystemTestHelpers type systemend code prepSample test ppre code spec system welcome spec rbrequire rails helper RSpec feature Welcome js type system do scenario Visit homepage do using app host https subdomain lvh me do visit expect page to have content Welcome expect page to have content Your domain subdomain lvh me expect page to have content Your protocol https end endend code prepPage content ppre code lt div gt lt h2 gt Welcome lt h2 gt lt gt Your protocol lt request protocol gt lt gt lt gt Your domain lt request host gt lt gt lt div gt code prepIf swap out the driver for headless Firefox configured as below the tests will pass ppre codeCapybara register driver headless firefox do app options Selenium WebDriver Firefox Options new args headless capabilities Selenium WebDriver Remote Capabilities firefox acceptInsecureCerts true Capybara Selenium Driver new app browser firefox options options desired capabilities capabilities end code prepThe complete source code for an app that reproduces the issue and includes the code above is located here href https bitbucket org rossta system test demo rel nofollow noreferrer https bitbucket org rossta system test demo ph3Debug output h3pHere link to some debug output from running the test in either headless Chrome or headless Firefox href https gist github com rossta b160204baa87a520e7888c19c8b1ed98 rel nofollow noreferrer https gist github com rossta b160204baa87a520e7888c19c8b1ed98 ppNote in the output that the session response does not include the acceptInsecureCerts capability for Chrome test headless chrome log line 15 while in Firefox we do see the session include the flag test headless firefox log line 22 ph3System h3ulliMacOS 10 13 liliRails liliRuby lili codecapybara code gem lili codeselenium webdriver code gem 14 lili codechromdriver helper code gem 34 liliChrome 68 3440 106 Have also triedulliGoogle Chrome 70 3524 canary liliChromium 70 3525 li ul li ul Edited using app host Thanks updated the permissions Also thanks for all your hard work on Capybara,1,Using acceptInsecureCerts with Headless Chrome and Selenium Webdriver macOS Rails Capybara google chrome selenium selenium webdriver capybara google chrome headless h3Question h3pDoes headless Chrome work with self signed certificates via the Selenium Webdriver on macOS ph3Info h3pI am attempting to get Rails system tests driven by headless Chrome over SSL ppI have locally self signed certificate that pass the the ruby Puma application server to terminate SSL requests In order to allow drivers to ignore SSL warnings on the locally signed certificate am using the codeacceptInsecureCerts code flag to configure the driver capabilities led to believe by href https bugs chromium org chromium issues detail id 721739 rel nofollow noreferrer this ticket in Chromium that this flag should be recognized as of Chrome 64 ppI can get tests to succeed with Chrome Firefox and headless Firefox Tests do not pass under headless Chrome am using at the time of this writing what believe to be the latest versions of Chrome and its variants ppThough folks in the href https bugs chromium org chromium issues detail id 721739 rel nofollow noreferrer Chromium ticket appear to be successfully running headless Chrome over locally signed SSL with the Selenium webdriver have not found this to work with the setup described here If my configuration is correct then am unsure if there is limitation in headless Chrome on macOS in Selenium webdriver ruby gem or something else haven considered If anyone has something similar working with Rails on macOS be interested to learn about your setup ph3Source h3pHere is some code to show how am configuring and running my RSpec Capybara tests ppTest setup ppre code rails helper rb standard rspec rails helper setup omitted Capybara register driver headless chrome do app options Selenium WebDriver Chrome Options new args headless disable gpu no sandbox disable web security capabilities Selenium WebDriver Remote Capabilities chrome acceptInsecureCerts true Capybara Selenium Driver new app browser chrome options options desired capabilities capabilities endRSpec configure do config config before each type system do driven by headless firefox endendmodule SystemTestHelpers def key file path Rails root join config ssl ssl lvh me key end def cert file path Rails root join config ssl ssl lvh me crt end def using app host host original host Capybara app host Capybara app host host Capybara server puma Host ssl Capybara server host key key file path amp cert cert file path yield ensure Capybara app host original host endendRSpec configure do config config include SystemTestHelpers type systemend code prepSample test ppre code spec system welcome spec rbrequire rails helper RSpec feature Welcome js type system do scenario Visit homepage do using app host https subdomain lvh me do visit expect page to have content Welcome expect page to have content Your domain subdomain lvh me expect page to have content Your protocol https end endend code prepPage content ppre code lt div gt lt h2 gt Welcome lt h2 gt lt gt Your protocol lt request protocol gt lt gt lt gt Your domain lt request host gt lt gt lt div gt code prepIf swap out the driver for headless Firefox configured as below the tests will pass ppre codeCapybara register driver headless firefox do app options Selenium WebDriver Firefox Options new args headless capabilities Selenium WebDriver Remote Capabilities firefox acceptInsecureCerts true Capybara Selenium Driver new app browser firefox options options desired capabilities capabilities end code prepThe complete source code for an app that reproduces the issue and includes the code above is located here href https bitbucket org rossta system test demo rel nofollow noreferrer https bitbucket org rossta system test demo ph3Debug output h3pHere link to some debug output from running the test in either headless Chrome or headless Firefox href https gist github com rossta b160204baa87a520e7888c19c8b1ed98 rel nofollow noreferrer https gist github com rossta b160204baa87a520e7888c19c8b1ed98 ppNote in the output that the session response does not include the acceptInsecureCerts capability for Chrome test headless chrome log line 15 while in Firefox we do see the session include the flag test headless firefox log line 22 ph3System h3ulliMacOS 10 13 liliRails liliRuby lili codecapybara code gem lili codeselenium webdriver code gem 14 lili codechromdriver helper code gem 34 liliChrome 68 3440 106 Have also triedulliGoogle Chrome 70 3524 canary liliChromium 70 3525 li ul li ul,NULL 66396,84916,1112094,NULL,NULL,NULL,0,NULL,NULL 66397,94004,1243466,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66398,4429650,1243466,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66399,241550,1344267,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66400,530754,766731,Tumbleweed Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66401,385090,1209636,Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 66402,597126,1134276,Nice Question Notable Question Citizen Patrol Notable Question,NULL,NULL,0,NULL,NULL 66403,318082,808632,Yearling Popular Question Guru Census Yearling Documentation User Custodian Custodian Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 66404,302743,362683,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66405,91240,1184158,NULL,NULL,NULL,0,NULL,NULL 66406,5951811,1184158,NULL,NULL,NULL,0,NULL,NULL 66407,579002,1167078,Editor Student Scholar,NULL,NULL,0,NULL,NULL 66408,6836897,1174103,NULL,NULL,NULL,0,NULL,NULL 66409,694284,997710,NULL,NULL,NULL,0,NULL,NULL 66410,349312,503260,Editor,NULL,NULL,0,NULL,NULL 66411,275178,1101887,NULL,NULL,NULL,0,NULL,NULL 66412,219728,626665,NULL,NULL,NULL,0,NULL,NULL 66413,1089444,1205537,NULL,NULL,NULL,0,NULL,NULL 66414,190449,941675,NULL,NULL,NULL,0,NULL,NULL 66415,166703,449291,NULL,NULL,NULL,0,NULL,NULL 66416,126208,1429058,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66417,1105933,810820,NULL,NULL,NULL,0,NULL,NULL 66418,144527,70881,Nice Answer Yearling Nice Answer Yearling Popular Question Custodian Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66419,204502,166235,Notable Question Good Answer Excavator Popular Question Yearling Guru Guru Custodian Nice Question Nice Answer Enlightened Notable Question Yearling Nice Answer Famous Question Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 66420,320701,651894,Yearling Famous Question Nice Answer Nice Question Yearling Notable Question Good Answer Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 66421,185661,11568,Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Good Question Nice Question Nice Answer Notable Question Good Answer Famous Question Good Question Good Answer Good Answer Great Answer Good Answer Yearling Good Answer Good Answer Popular Question Favorite Question Nice Answer Enlightened Nice Answer Announcer Famous Question Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 66422,8204383,769942,Notable Question Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 66423,271601,903807,NULL,NULL,NULL,0,NULL,NULL 66424,405095,197860,Good Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Good Answer Yearling Nice Question Famous Question Popular Question Popular Question Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66425,19739,642609,NULL,NULL,NULL,0,NULL,NULL 66426,45406,162325,Great Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Great Question Notable Question Nice Answer Enlightened Popular Question Favorite Question Caucus Famous Question Popular Question Popular Question Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 66427,421871,697570,NULL,NULL,NULL,0,NULL,NULL 66428,648541,387335,Notable Question,NULL,NULL,0,NULL,NULL 66429,554689,184288,NULL,NULL,NULL,0,NULL,NULL 66430,75654,201232,Yearling,NULL,NULL,0,NULL,NULL 66431,238642,346170,Famous Question,NULL,NULL,0,NULL,NULL 66432,885179,1168652,NULL,NULL,NULL,0,NULL,NULL 66433,416687,405115,Famous Question,NULL,NULL,0,NULL,NULL 66434,23043,501017,Tumbleweed Citizen Patrol Nice Answer Custodian Good Answer Nice Question Yearling Famous Question Revival Nice Answer Enlightened Custodian Yearling Excavator Popular Question Caucus Popular Question Inquisitive Popular Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 66435,740676,1318523,NULL,NULL,NULL,0,NULL,NULL 66436,316556,409407,NULL,NULL,NULL,0,NULL,NULL 66437,3021277,409407,NULL,NULL,NULL,0,NULL,NULL 66438,239313,965161,Good Answer Notable Question Yearling Caucus Informed Good Question Necromancer Caucus Popular Question Yearling Nice Answer Popular Question Caucus Nice Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 66439,347334,1120888,NULL,NULL,NULL,0,NULL,NULL 66440,32890,1161622,Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 66441,4288424,17215,Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 66442,238853,862613,NULL,NULL,NULL,0,NULL,NULL 66443,352954,175097,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66444,218584,433490,NULL,NULL,NULL,0,NULL,NULL 66445,105491,918764,Custodian Custodian Good Answer Yearling Caucus Yearling Guru Yearling Informed Autobiographer Civic Duty,NULL,pI just starting in Go and found it surprising that it has neither toFixed function as in JavaScript which would accomplish what you want nor even round function ppI picked up one liner round function from elsewhere and also made toFixed which depends on round ppre codefunc round num float64 int return int num math Copysign num func toFixed num float64 precision int float64 output math Pow 10 float64 precision return float64 round num output output code prepUsage ppre codefmt Println toFixed 2345678 1fmt Println toFixed 2345678 2fmt Println toFixed 2345678 23fmt Println toFixed 2345678 235 rounded up code pre Probably down voted because it makes slightly wrong answers in some cases and really wrong answers in others especially where high precision is requested toFixed 92234 14 92233 72036854776,0,NULL,NULL 66446,430482,90545,Popular Question Famous Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 66447,23522,972142,Yearling Revival Yearling Custodian,NULL,NULL,0,NULL,NULL 66448,317022,1286170,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66449,203045,1250810,Supporter Popular Question,NULL,NULL,0,NULL,NULL 66450,1237967,1521763,NULL,NULL,NULL,0,NULL,NULL 66451,161924,247989,Yearling Yearling Good Answer Yearling Great Answer Good Answer,NULL,NULL,0,NULL,NULL 66452,172481,1039180,Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 66453,3563799,1039180,Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 66454,184819,27928,Announcer Popular Question Famous Question Popular Question Good Question Yearling Popular Question Nice Question Notable Question Nice Question Notable Question Yearling Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66455,297824,1141278,NULL,NULL,NULL,0,NULL,NULL 66456,159003,352052,Notable Question Tumbleweed Curious Informed Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66457,4685,573364,NULL,NULL,NULL,0,NULL,NULL 66458,754232,1065210,NULL,NULL,NULL,0,NULL,NULL 66459,279183,594398,NULL,NULL,NULL,0,NULL,NULL 66460,147971,653233,Critic Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 66461,202211,448070,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 66462,1068883,794870,NULL,NULL,NULL,0,NULL,NULL 66463,10056,1262015,Popular Question,NULL,NULL,0,NULL,NULL 66464,324970,254063,NULL,NULL,NULL,0,NULL,NULL 66465,163126,440646,Yearling Popular Question Notable Question Nice Question Nice Question Famous Question Famous Question Notable Question Popular Question Popular Question Notable Question Great Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Nice Question Announcer Popular Question Favorite Question Notable Question Notable Question Notable Question Notable Question Great Question Notable Question Announcer Popular Question Yearling Popular Question Popular Question Popular Question Good Question Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question,NULL,NULL,1,Underscores font size mixin css sass underscores wp pI using the href https github com Automattic rel nofollow underscores starter theme for wordpress ppThey have this href https github com Automattic blob master sass mixins mixins master scss L2 rel nofollow mixin which ve no idea what it trying to do ppre code Rem output with px fallback font size sizeValue font size sizeValue 16 1px font size sizeValue 1rem code prepCan someone explain the math behind this brHow can make use of it if given font sizes in px,NULL 66466,109908,1090199,Teacher,NULL,NULL,0,NULL,NULL 66467,414117,1410310,Popular Question,NULL,NULL,0,NULL,NULL 66468,2767847,1080475,Nice Answer Enlightened Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 66469,372349,1080475,Nice Answer Enlightened Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 66470,143654,18426,Guru Yearling Yearling Autobiographer Yearling,NULL,NULL,0,NULL,NULL 66471,270432,1188271,NULL,NULL,NULL,0,NULL,NULL 66472,585210,411807,Notable Question Yearling Caucus Favorite Question Good Answer Promoter Benefactor Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66473,500562,994093,NULL,NULL,NULL,0,NULL,NULL 66474,271488,1172486,Nice Answer,NULL,NULL,0,NULL,NULL 66475,9035,263425,NULL,NULL,NULL,0,NULL,NULL 66476,267758,238781,NULL,NULL,NULL,0,NULL,NULL 66477,1038913,766531,NULL,NULL,NULL,0,NULL,NULL 66478,136166,766531,NULL,NULL,NULL,0,NULL,NULL 66479,237196,1542222,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66480,108786,1291563,Notable Question Yearling Nice Answer Inquisitive Informed Autobiographer Nice Question Necromancer Popular Question Popular Question Nice Answer Popular Question Notable Question Famous Question Custodian Custodian Good Question Custodian r Proofreader Enthusiast Yearling Excavator Suffrage Vox Populi Nice Question Organizer Popular Question Investor Custodian Altruist Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Answer Popular Question Nice Question Good Answer Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Favorite Question Reviewer Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66481,1228425,394669,Editor Investor Nice Question Teacher Altruist Critic Excavator Necromancer Yearling,NULL,NULL,0,NULL,NULL 66482,471261,1391527,Teacher Supporter,NULL,NULL,0,NULL,NULL 66483,395886,159597,Famous Question,NULL,NULL,0,NULL,NULL 66484,27097,1059865,Student,NULL,NULL,0,NULL,NULL 66485,552810,570824,NULL,NULL,NULL,0,NULL,NULL 66486,153013,1111660,Popular Question Teacher,NULL,NULL,0,NULL,NULL 66487,94657,802585,Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Favorite Question Great Question Notable Question Yearling Good Question Popular Question Popular Question Good Question Good Answer Stellar Question Notable Question Nice Question Famous Question Popular Question Nice Question Notable Question Famous Question Notable Question Peer Pressure Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Famous Question Yearling Notable Question Notable Question Caucus Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Socratic Popular Question Popular Question Nice Question Good Question Popular Question Yearling Good Question Popular Question Great Question Nice Question Popular Question Great Answer Popular Question,NULL,NULL,0,NULL,NULL 66488,784311,808751,Famous Question Notable Question Popular Question Yearling Notable Question Nice Question Famous Question Nice Question Popular Question Notable Question Notable Question Good Question Yearling Notable Question Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66489,548309,931010,NULL,NULL,NULL,0,NULL,NULL 66490,235927,1470927,NULL,NULL,NULL,0,NULL,NULL 66491,380295,644033,NULL,NULL,NULL,0,NULL,NULL 66492,596547,204604,Commentator Yearling Revival Editor Excavator,NULL,NULL,0,NULL,NULL 66493,355293,1159757,NULL,NULL,NULL,0,NULL,NULL 66494,168111,478577,NULL,NULL,NULL,0,NULL,NULL 66495,640123,252651,Supporter,NULL,NULL,0,NULL,NULL 66496,568823,1055430,NULL,NULL,NULL,0,NULL,NULL 66497,158920,141914,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 66498,500426,756644,Necromancer Critic Yearling,NULL,NULL,0,NULL,NULL 66499,911624,1414303,NULL,NULL,NULL,0,NULL,NULL 66500,104037,875700,NULL,NULL,NULL,0,NULL,NULL 66501,3935285,791270,NULL,NULL,NULL,0,NULL,NULL 66502,508313,609224,Populist Popular Question Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 66503,4285,265522,Announcer Autobiographer Yearling Nice Answer Custodian Custodian Announcer Yearling Announcer,NULL,pI ve made some CMake modules that peer into git repo for versioning and similar purposes they re all in my repository at href https github com rpavlik cmake modules https github com rpavlik cmake modules ppThe good thing about these functions is they will force re configure rerun of cmake before build every time the HEAD commit changes Unlike doing something just once with execute process you don need to remember to re cmake to update the hash definition ppFor this specific purpose you need at least the codeGetGitRevisionDescription cmake code and codeGetGitRevisionDescription cmake in code files Then in your main codeCMakeLists txt code file you have something like this ppre codelist APPEND CMAKE MODULE PATH CMAKE CURRENT SOURCE DIR whereYouPutMyModules include GetGitRevisionDescription get git head revision GIT REFSPEC GIT SHA1 code prepThen you could either add it as system wide definition which unfortunately would cause lots of rebuilding ppre codeadd definitions DGIT SHA1 GIT SHA1 code prepor my suggested alternative Make generated source file Create these two files in your source pp emGitSHA1 cpp in em ppre code define GIT SHA1 const char GIT SHA1 GIT SHA1 code prep emGitSHA1 em ppre codeextern const char GIT SHA1 code prepAdd this to your codeCMakeLists txt code assuming you have list of source files in SOURCES ppre codeconfigure file CMAKE CURRENT SOURCE DIR GitSHA1 cpp in CMAKE CURRENT BINARY DIR GitSHA1 cpp list APPEND SOURCES CMAKE CURRENT BINARY DIR GitSHA1 cpp GitSHA1 code prepThen you have global variable containing your SHA string the header with the extern doesn change when the SHA does so you can just include that any place you want to refer to the string and then only the generated CPP needs to be recompiled on every commit to give you access to the SHA everywhere believe so IIRC do think that have one additional step there that forcing the reconfigure too hard and that newer versions of CMake have command to just explicitly make given file change cause reconfigure but this script has been working well enough that haven looked into it An updated version is maintained on GitHub,0,NULL,NULL 66504,11760,352485,NULL,NULL,NULL,0,NULL,NULL 66505,64567,508080,Popular Question Yearling Announcer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 66506,625031,982451,NULL,NULL,NULL,0,NULL,NULL 66507,14248,4007,Nice Question Nice Answer Enlightened Good Answer Yearling Nice Answer Tag Editor Yearling Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 66508,2520945,112377,Popular Question Yearling Favorite Question Notable Question Yearling Nice Answer Popular Question Popular Question Famous Question Famous Question Great Question Nice Answer Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 66509,23005,112377,Popular Question Yearling Favorite Question Notable Question Yearling Nice Answer Popular Question Popular Question Famous Question Famous Question Great Question Nice Answer Notable Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 66510,130393,52310,Yearling Announcer Yearling Popular Question Popular Question Necromancer Nice Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 66511,84811,499445,Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 66512,1103139,276356,NULL,NULL,NULL,0,NULL,NULL 66513,197395,1534249,Nice Answer Yearling Enlightened Tumbleweed,NULL,NULL,0,NULL,NULL 66514,1638905,1161476,NULL,NULL,NULL,0,NULL,NULL 66515,377082,151195,Enthusiast Yearling Census Excavator Popular Question,NULL,NULL,0,NULL,NULL 66516,17202,455726,NULL,NULL,NULL,0,NULL,NULL 66517,309989,240308,Revival,NULL,NULL,0,NULL,NULL 66518,218978,353644,Popular Question Yearling Notable Question Popular Question Nice Question Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 66519,158126,161832,Good Answer Nice Answer Yearling Notable Question Caucus Guru Notable Question Yearling Nice Answer Enlightened Good Answer Famous Question Nice Answer Enlightened Great Answer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 66520,296846,655761,NULL,NULL,NULL,0,NULL,NULL 66521,647860,846270,Necromancer Yearling Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66522,599313,659636,NULL,NULL,NULL,0,NULL,NULL 66523,161562,1240480,NULL,NULL,NULL,0,NULL,NULL 66524,181532,1338945,Supporter Notable Question,NULL,NULL,0,NULL,NULL 66525,81193,569582,Yearling Necromancer Notable Question Nice Question Notable Question Famous Question Nice Answer Popular Question Notable Question Documentation User Yearling Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 66526,403204,1155201,Yearling Good Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 66527,276219,881175,NULL,NULL,NULL,0,NULL,NULL 66528,695615,355894,NULL,NULL,NULL,0,NULL,NULL 66529,857126,822923,NULL,NULL,NULL,0,NULL,NULL 66530,355888,1247364,NULL,NULL,NULL,0,NULL,NULL 66531,90676,912936,Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66532,1632719,714950,Citizen Patrol Notable Question Notable Question Popular Question Popular Question Yearling Caucus Popular Question Custodian Famous Question Notable Question Census Caucus Enthusiast Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66533,1022936,977206,Necromancer Popular Question Popular Question Popular Question Popular Question Notable Question Necromancer Nice Answer Nice Question Populist Notable Question Popular Question Notable Question Notable Question Notable Question Excavator Famous Question Nice Question Yearling Popular Question Inquisitive Popular Question Famous Question Good Answer Nice Question Necromancer Notable Question Necromancer Famous Question Nice Question Nice Question Populist Notable Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Yearling Popular Question Necromancer Famous Question Benefactor Nice Question Good Question Nice Answer Popular Question Famous Question Nice Question Yearling Popular Question Famous Question,NULL,pSimple solution for strongBootstrap strong using CSS3 animations ppPut the following in your CSS ppre code glyphicon spinning animation spin 1s infinite linear webkit animation spin2 1s infinite linear spin from transform scale rotate 0deg to transform scale rotate 360deg webkit keyframes spin2 from webkit transform rotate 0deg to webkit transform rotate 360deg code prepThen just add the codespinning code class to codeglyphicon code while loading to get your spinning icon ppre code lt button class btn btn lg btn warning gt lt span class glyphicon glyphicon refresh spinning gt lt span gt Loading lt button gt code prepBased on href http www bootply com 128062 http www bootply com 128062 pulliNote IE9 and below do not support CSS3 animations li ul örnBerkefeld according to shouldiprefix com http shouldiprefix com animations you only need these prefixes nor is there any mention for prefixes on the MDN page about animations https developer mozilla org en US docs Web CSS,0,NULL,NULL 66534,273566,1234870,NULL,NULL,NULL,0,NULL,NULL 66535,173624,972120,Notable Question,NULL,NULL,0,NULL,NULL 66536,1040250,701357,Yearling Good Answer,NULL,NULL,0,NULL,NULL 66537,36765,1024022,Famous Question Popular Question Quorum Nice Question,NULL,NULL,0,NULL,NULL 66538,88660,1041541,NULL,NULL,NULL,0,NULL,NULL 66539,313135,738567,NULL,NULL,NULL,0,NULL,NULL 66540,8338,557368,Yearling Excavator Necromancer Yearling Critic Caucus Nice Answer,NULL,NULL,1,NULL,webpack watch isn compiling changed files javascript webpack fsevents pI tried running codewebpack watch code and after editing my JS files it doesn trigger an auto recompilation ppI ve tried reinstalling codewebpack code using codenpm uninstall code but it still not working ppAny ideas pIf you are using Vim you should try setting backupcopy to yes rather than the default auto Otherwise Vim will sometimes rename the original file and create new one which will mess up with webpack watch pp href https github com webpack webpack issues 781 rel nofollow https github com webpack webpack issues 781 ppJust add this to your vim settings if this is the case ppset backupcopy yes 66541,29412,282821,Notable Question,NULL,NULL,0,NULL,NULL 66542,228428,70288,Yearling Popular Question Notable Question Notable Question Nice Question Famous Question Good Question Notable Question Good Question Nice Question Good Question Yearling Notable Question Popular Question Famous Question Popular Question Good Question Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 66543,133574,137869,Caucus,NULL,NULL,0,NULL,NULL 66544,160545,286449,Great Answer Notable Question Yearling Good Answer Yearling Good Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66545,452577,383283,Editor Notable Question,NULL,NULL,0,NULL,NULL 66546,183129,203654,Popular Question Nice Answer Yearling Good Question Critic Yearling Famous Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 66547,471719,1254737,Yearling Famous Question Famous Question Nice Question Caucus Stellar Question Yearling Popular Question Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66548,35056,1053328,Student,NULL,NULL,0,NULL,NULL 66549,230389,1192741,NULL,NULL,NULL,0,NULL,NULL 66550,438374,120316,NULL,NULL,NULL,0,NULL,NULL 66551,920095,599749,Famous Question,NULL,NULL,0,NULL,NULL 66552,4671,610433,NULL,NULL,NULL,0,NULL,NULL 66553,356818,167019,Necromancer Critic Yearling Famous Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66554,1906570,167019,Necromancer Critic Yearling Famous Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66555,235568,684701,NULL,NULL,NULL,0,NULL,NULL 66556,62786,719755,NULL,NULL,NULL,0,NULL,NULL 66557,235095,223326,Civic Duty Notable Question Notable Question Custodian Caucus Popular Question,NULL,NULL,0,NULL,NULL 66558,41818,775762,Popular Question Necromancer Necromancer Nice Answer Revival Yearling Great Question Popular Question Good Answer Civic Duty Yearling Custodian Great Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 66559,384967,1042456,NULL,NULL,,0,, 66560,438182,844790,NULL,NULL,NULL,0,NULL,NULL 66561,2854237,1135419,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66562,308333,578398,NULL,NULL,NULL,0,NULL,NULL 66563,178238,203129,Revival Excavator Custodian Revival,NULL,NULL,0,NULL,NULL 66564,347892,1251647,NULL,NULL,NULL,0,NULL,NULL 66565,56742,569229,Necromancer Necromancer,NULL,strongtl dr For 32 bits use href http supertech csail mit edu papers debruijn pdf rel noreferrer de Bruijn multiplication strong ppIt the href https blog codinghorror com there aint no such thing as the fastest code rel noreferrer fastest portable algorithm It is substantially faster and more correct than all the other portable 32 bit MSB algorithms in this thread ppThe de Bruijn algorithm also returns correct result when the input is zero emThe builtin clz and BitScanReverse instructions href https stackoverflow com questions 19527897 how undefined are builtin ctz0 or builtin clz0 return incorrect results when the input is zero em ppOn x86 64 emde Bruijn multiplication runs at speed comparable to the equivalent flawed hardware instructions em with performance difference of only around ppHere the code ppre codeu32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 code prepAll the other answers in this thread either run much more poorly than their authors suggest or don calculate the result correctly or both Let benchmark them all and let verify that they do what they claim to do ppHere simple 11 harness to test all these implementations It compiles clean on Visual Studio but should work on all modern compilers It allows you to run the benchmark in performance mode bVerifyResults false and in checking mode bVerifyResults true ppHere are the results in verification mode ppre codeVerification failed for msbNative64 input was output was 818af060 expected 0Verification failed for msbFfs input was 22df output was expected dVerification failed for msbPerformanceJunkie32 input was output was ffffffff expected 0Verification failed for msbNative32 input was output was 9ab07060 expected code prepThe performance junkie and the Microsoft native implementations do different things when the input is zero msbPerformanceJunkie32 produces and Microsoft BitScanReverse produces random number consistent with the underlying hardware instruction Also the msbPerformanceJunkie32 implementation produces result that is off by one from all the other answers ppHere are the results in performance mode running on my i7 4600 laptop compiled in release mode ppre codemsbLoop64 took 56751 seconds msbNative64 took 222197 seconds msbLoop32 took 43456 seconds msbFfs took 525097 seconds msbPerformanceJunkie32 took 07939 seconds msbDeBruijn32 took 224947 seconds msbNative32 took 218275 seconds code prepThe de Bruijn version beats the other implementations emsoundly em because it is branchless and therefore it runs well against inputs that produce an evenly distributed set of outputs All the other versions are slower against arbitrary inputs because of the penalties of branch misprediction on modern CPUs The smbFfs function produces incorrect results so it can be ignored ppSome of the implementations work on 32 bit inputs and some work on 64 bit inputs template will help us compare apples to apples regardless of the input size ppHere the code Download and run the benchmarks yourself if you like ppre code include lt iostream gt include lt chrono gt include lt random gt include lt cassert gt include lt string gt include lt limits gt ifdef MSC VER define MICROSOFT COMPILER include lt intrin gt endif MSC VERconst int iterations 100000000 bool bVerifyResults false std random device rd std default random engine re rd typedef unsigned int u32 typedef unsigned long long u64 class Timer public Timer beg clock now void reset beg clock now double elapsed const return std chrono duration cast lt second gt clock now beg count private typedef std chrono high resolution clock clock typedef std chrono duration lt double std ratio lt gt gt second std chrono time point lt clock gt beg unsigned int msbPerformanceJunkie32 u32 static const unsigned int bval unsigned int if amp 0xFFFF0000 16 gt gt 16 if amp 0x0000FF00 16 gt gt 16 if amp 0x000000F0 16 gt gt 16 return bval define FFS register int if 0xffff amp 16 if 0xff lt lt amp if 0xf lt lt amp if 0x3 lt lt amp if 0x1 lt lt amp return unsigned int msbFfs32 u32 FFS unsigned int msbLoop32 u32 int if lt return while gt gt return unsigned int msbLoop64 u64 int if lt return while gt gt return u32 msbDeBruijn32 u32 static const int MultiplyDeBruijnBitPosition 32 10 13 21 29 11 14 16 18 22 25 30 12 20 28 15 17 24 19 27 23 26 31 gt gt first round down to one less than power of gt gt gt gt gt gt gt gt 16 return MultiplyDeBruijnBitPosition u32 0x07C4ACDDU gt gt 27 ifdef MICROSOFT COMPILERu32 msbNative32 u32 val unsigned long result BitScanReverse amp result val return result u32 msbNative64 u64 val unsigned long result BitScanReverse64 amp result val return result endif MICROSOFT COMPILERtemplate lt typename InputType gt void test unsigned int msbFunc InputType const std string amp name const std vector lt InputType gt amp inputs std vector lt unsigned int gt amp results bool bIsReference false if bIsReference int for int lt iterations results msbFunc inputs InputType result if bVerifyResults bool bNotified false for int lt iterations result msbFunc inputs if result results amp amp bNotified std cout lt lt Verification failed for lt lt name lt lt lt lt input was lt lt std hex lt lt inputs lt lt output was lt lt result lt lt expected lt lt results lt lt std endl bNotified true else Timer for int lt iterations result msbFunc inputs double elapsed elapsed if bIsReference std cout lt lt name lt lt took lt lt elapsed lt lt seconds lt lt std endl if result 0f std cout lt lt this comparison only exists to keep the compiler from lt lt optimizing out the benchmark this branch will never be called void main std uniform int distribution lt u64 gt dist64 std numeric limits lt u64 gt max std uniform int distribution lt u32 gt shift64 63 std vector lt u64 gt inputs64 for int lt iterations inputs64 push back dist64 re gt gt shift64 re std vector lt u32 gt results64 results64 resize iterations test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 true test lt u64 gt msbLoop64 msbLoop64 inputs64 results64 false ifdef MICROSOFT COMPILER test lt u64 gt msbNative64 msbNative64 inputs64 results64 false endif MICROSOFT COMPILER std cout lt lt std endl std uniform int distribution lt u32 gt dist32 std numeric limits lt u32 gt max std uniform int distribution lt u32 gt shift32 31 std vector lt u32 gt inputs32 for int lt iterations inputs32 push back dist32 re gt gt shift32 re std vector lt u32 gt results32 results32 resize iterations test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 true test lt u32 gt msbLoop32 msbLoop32 inputs32 results32 false test lt u32 gt msbFfs32 msbFfs inputs32 results32 false test lt u32 gt msbPerformanceJunkie32 msbPerformanceJunkie32 inputs32 results32 false test lt u32 gt msbDeBruijn32 msbDeBruijn32 inputs32 results32 false ifdef MICROSOFT COMPILER test lt u32 gt msbNative32 msbNative32 inputs32 results32 false endif MICROSOFT COMPILER code pre This is great thanks noticed after some months of using the code that the comment that says round down to one less than power of should say round up to one less than power of it turns on bits by ORing so the value increases,0,NULL,NULL 66566,641928,181877,NULL,NULL,NULL,0,NULL,NULL 66567,300364,1228704,NULL,NULL,NULL,0,NULL,NULL 66568,211102,144633,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 66569,17112,295545,NULL,NULL,NULL,0,NULL,NULL 66570,163326,1144487,NULL,NULL,NULL,0,NULL,NULL 66571,10105546,542371,Critic Commentator,NULL,NULL,0,NULL,NULL 66572,205106,269753,Popular Question Nice Question Notable Question Necromancer Popular Question Yearling Notable Question Popular Question Necromancer Announcer Unsung Hero Notable Question Nice Question Famous Question Notable Question ios Announcer Nice Question Nice Answer Popular Question Announcer Good Question Famous Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Yearling objective-c Notable Question Favorite Question Famous Question Documentation User Notable Question Necromancer Yearling Announcer Great Question Announcer Good Answer Announcer Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 66573,790,237797,Yearling Good Question,NULL,NULL,0,NULL,NULL 66574,205538,201741,NULL,NULL,NULL,0,NULL,NULL 66575,249606,1274358,NULL,NULL,NULL,0,NULL,NULL 66576,530174,542911,Good Question Famous Question,NULL,NULL,0,NULL,NULL 66577,37698,9849,Nice Question Announcer Yearling Autobiographer Organizer Editor Yearling Famous Question Yearling Nice Answer Enlightened Good Answer Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 66578,1077832,296446,Good Answer Good Answer Great Answer Popular Question Good Question Quorum Necromancer Nice Question Popular Question Nice Answer Popular Question Yearling Necromancer Famous Question Necromancer Necromancer Popular Question Good Question Popular Question Notable Question Great Answer Nice Question Famous Question Famous Question Popular Question Good Answer Popular Question Good Answer Popular Question Favorite Question Popular Question Popular Question Good Answer Notable Question Notable Question Good Answer Guru Nice Answer Popular Question Necromancer Revival Nice Answer Popular Question Notable Question Popular Question Popular Question Famous Question Favorite Question Nice Answer Good Question Nice Answer Nice Question Populist Famous Question Revival Revival Nice Answer Popular Question Yearling Nice Answer Revival Good Answer Notable Question Necromancer Good Answer Revival Announcer Necromancer Notable Question Announcer Nice Answer Notable Question Popular Question Notable Question Notable Question Notable Question Nice Answer Famous Question Nice Question Good Answer Great Answer Popular Question Announcer Popular Question Popular Question Notable Question iphone Favorite Question Yearling Announcer Popular Question Nice Answer Necromancer Popular Question Good Question Announcer Popular Question Great Question Nice Question Announcer Good Question,NULL,pPreprocessor macros will not work you need to check the environment at runtime ppre codestatic BOOL isRunningTests void NSDictionary environment NSProcessInfo processInfo environment return environment XCInjectBundleInto nil code prep em Updated for Xcode em Thanks for the heads up Best thing to do is to check the the contents of the environment dictionary Seems like you can look for the XCInjectBundleInto key Ill update this shortly,0,NULL,NULL 66579,226070,1125660,Yearling Yearling Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 66580,157726,807436,NULL,NULL,NULL,0,NULL,NULL 66581,377404,137438,NULL,NULL,NULL,0,NULL,NULL 66582,83885,209295,NULL,NULL,NULL,0,NULL,NULL 66583,99669,955604,Supporter,NULL,NULL,0,NULL,NULL 66584,915076,59878,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66585,1533856,822828,NULL,NULL,NULL,0,NULL,NULL 66586,944298,243639,Announcer Yearling Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 66587,44406,224235,Yearling Nice Answer Enlightened Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 66588,1079101,210764,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 66589,297505,1029826,NULL,NULL,NULL,0,NULL,NULL 66590,465285,1371591,NULL,NULL,NULL,0,NULL,NULL 66591,39818,533391,NULL,NULL,NULL,0,NULL,NULL 66592,71433,585344,NULL,NULL,NULL,0,NULL,NULL 66593,253635,221124,NULL,NULL,NULL,0,NULL,NULL 66594,907615,1003283,NULL,NULL,NULL,0,NULL,NULL 66595,31666,662880,NULL,NULL,NULL,0,NULL,NULL 66596,1152253,430826,Good Question,NULL,NULL,0,NULL,NULL 66597,597369,586810,Popular Question,NULL,NULL,0,NULL,NULL 66598,108405,998293,Yearling Excavator Yearling Good Answer Guru Yearling Yearling Populist Yearling Great Answer Yearling Supporter Yearling,NULL,NULL,0,NULL,NULL 66599,278161,526133,Revival Good Question Popular Question Yearling Famous Question Popular Question Good Answer Yearling Custodian Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 66600,455631,410077,Good Answer Nice Answer Enlightened Yearling Yearling Popular Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 66601,459384,817993,Popular Question,NULL,NULL,0,NULL,NULL 66602,722622,799080,Notable Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 66603,871764,1127475,Notable Question Popular Question Notable Question Documentation User,NULL,NULL,0,NULL,NULL 66604,3936717,1483277,NULL,NULL,NULL,0,NULL,NULL 66605,17516,91768,Notable Question perl Yearling Notable Question Guru Tumbleweed Guru Notable Question Yearling Popular Question Notable Question Good Answer Nice Question Popular Question Notable Question Yearling Good Question Revival,NULL,NULL,0,NULL,NULL 66606,861478,577094,Revival Student,NULL,NULL,0,NULL,NULL 66607,115759,250470,Yearling Nice Answer Enlightened Notable Question Notable Question Nice Question Yearling Famous Question Yearling Good Answer Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66608,3490201,255231,Famous Question Yearling Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question Nice Question Favorite Question Great Question Yearling Notable Question Popular Question Popular Question Notable Question Yearling Custodian Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 66609,521510,1215970,NULL,NULL,NULL,0,NULL,NULL 66610,387103,4950,Nice Answer Notable Question Nice Question Popular Question Famous Question Notable Question Nice Answer Enlightened Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Constituent Guru Famous Question Good Answer Yearling Popular Question Notable Question Guru Nice Question Notable Question Socratic javascript Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 66611,301070,1535706,Civic Duty Yearling Necromancer Yearling Custodian Autobiographer Curious Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66612,1118683,34071,NULL,NULL,NULL,0,NULL,NULL 66613,141825,56029,NULL,NULL,NULL,0,NULL,NULL 66614,315693,1322314,NULL,NULL,NULL,0,NULL,NULL 66615,315985,1046641,Student Popular Question,NULL,NULL,0,NULL,NULL 66616,4190435,172854,Popular Question Yearling Necromancer Necromancer Nice Answer Yearling Civic Duty Custodian Popular Question,NULL,pThere are no direct way to get the information which you need Internally jqGrid uses href https github com tonytomov jqGrid blob v4 js grid base js L176 612 rel nofollow noreferrer jgrid from to filter local data The main code which uses code jgrid from code in inside of href https github com tonytomov jqGrid blob v4 js grid base js L1423 1575 rel nofollow noreferrer addLocalData To get results which you need without studying all the code suggest to use the fact that all filtered data will be returned by codeselect code method of code jgrid from code see href https github com tonytomov jqGrid blob v4 js grid base js L1559 rel nofollow noreferrer the line of code My suggestion is to catch the data before the data will be cut to the page size ppTo do this suggest to use sub classing overwriting of the method codeselect code method of code jgrid from code demonstrate the technique in the examples created for href https stackoverflow com 5822685 315935 the answer and href https stackoverflow com 9728073 315935 this one ppIn your case the code will be ppre class lang js prettyprint override codevar oldFrom jgrid from lastSelected jgrid from function source initalQuery var result oldFrom call this source initalQuery old select result select result select function lastSelected old select call this return lastSelected return result code prepNow the variable codelastSelected code will save the array of elements which are results of the last sorting or filtering operation Because code jgrid from code is global the data are not connected to the grid If you have more as one grid on the page it will be uncomfortable One can fix the small disadvantage with the following line in the code of codeloadComplate code of every grid ppre class lang js prettyprint override codeloadComplete function this lastSelected lastSelected set this lastSelected code prepIn the way we introduce new jqGrid parameter codelastSelected code which will have close structure as codedata code parameter but will hold only emlast filtered em data ppThe following code will display the ids of filtered data in codealert code message ppre class lang js prettyprint override code getIds click function var filteredData grid jqGrid getGridParam lastSelected ids idName grid jqGrid getGridParam localReader id if filteredData for filteredData length lt ids push filteredData idName alert tolal number of filtered data ids of filtered data ids join code prepI used href http www trirand com jqgridwiki doku php id wiki retrieving data array data rel nofollow noreferrer localReader id parameter because property name used for local data are typically codeid code or code id code The code id code will be used in case of data loaded from the server if one uses codeloadonce true code option pp href http www ok soft gmbh com jqGrid GetFilteredData htm rel nofollow noreferrer The demo demonstrate the approach If one filter for example only the data from FedEx and then clicks on Show Ids button one will see information about all filtered and not only about the data displayed on the current page pp img src https stack imgur com x7IND png alt enter image description here pp img src https stack imgur com U4t2W png alt enter image description here pp strongUPDATED strong href https github com free jqgrid jqGrid rel nofollow noreferrer free jqGrid provides new codelastSelectedData code option See href http www ok soft gmbh com jqGrid OK GetFilteredData htm rel nofollow noreferrer the demo in href https github com free jqgrid jqGrid blob v4 README md some demos which demonstrates new features rel nofollow noreferrer the list of demos You are star Kudos to you,0,NULL,NULL 66617,835961,1115199,Teacher,NULL,NULL,0,NULL,NULL 66618,1049966,345006,Yearling Good Answer Nice Answer Nice Answer Guru Yearling Necromancer Guru Custodian Yearling,NULL,NULL,0,NULL,NULL 66619,39228,527429,NULL,NULL,NULL,0,NULL,NULL 66620,162362,223897,Nice Answer Enlightened Announcer Announcer Yearling Great Answer Favorite Question Great Question Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 66621,239676,1276505,Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Constituent Yearling javascript Caucus Constituent Nice Answer Census Yearling Caucus Constituent Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 66622,543961,922072,Popular Question,NULL,NULL,0,NULL,NULL 66623,3618,942382,NULL,NULL,NULL,0,NULL,NULL 66624,281052,614760,NULL,NULL,NULL,0,NULL,NULL 66625,974221,657199,NULL,NULL,NULL,0,NULL,NULL 66626,1041023,1025011,NULL,NULL,NULL,0,NULL,NULL 66627,79889,220973,NULL,NULL,NULL,0,NULL,NULL 66628,1881753,1390946,NULL,NULL,NULL,0,NULL,NULL 66629,428646,800606,Nice Question,NULL,NULL,0,NULL,NULL 66630,954568,173208,Commentator Good Answer,NULL,NULL,0,NULL,NULL 66631,9686,480980,java Yearling Necromancer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 66632,429309,11197,Popular Question Notable Question Famous Question Popular Question Necromancer Revival Nice Answer Good Answer Notable Question Notable Question Announcer Nice Question Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Necromancer Notable Question Popular Question Civic Duty Nice Question Revival Nice Answer Popular Question Notable Question Notable Question Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Necromancer Yearling Notable Question Announcer Revival Enthusiast Notable Question Notable Question Good Question Nice Question Revival Necromancer Popular Question Famous Question Notable Question Popular Question Necromancer Popular Question Notable Question Notable Question Famous Question Nice Answer Nice Answer Nice Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question c# Popular Question Popular Question Yearling Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 66633,161990,149444,Good Answer Yearling Yearling Nice Answer Revival Yearling Guru Self-Learner Caucus Constituent Necromancer Announcer Custodian Necromancer Necromancer Popular Question Great Answer Announcer Yearling Nice Answer Nice Answer Nice Question Census Good Answer Good Answer Revival Nice Answer Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 66634,744371,338502,Necromancer Notable Question Good Answer Famous Question Yearling Popular Question Popular Question Caucus Popular Question Good Question Notable Question Popular Question Favorite Question Yearling Nice Question Notable Question Nice Question Great Question Notable Question Nice Question Yearling Famous Question Notable Question,NULL,NULL,1,Self referencing loop detected in ASP NET Core json net asp net core asp net core mvc pWhen try to serialize some domain objects using ASP NET Core Newsoft JSON NET it is throwing an exception because it is detecting self referencing loop ppIn ASP NET we used to fix it globally this way href https stackoverflow com questions 7397207 json net error self referencing loop detected for type JSON NET Error Self referencing loop detected for type ppHow can we fix this in ASP NET Core,NULL 66635,1079585,903263,NULL,NULL,NULL,0,NULL,NULL 66636,82633,349833,NULL,NULL,NULL,0,NULL,NULL 66637,307205,359181,Yearling Yearling Excavator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66638,304229,944760,Notable Question Commentator Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 66639,660785,1443314,NULL,NULL,NULL,0,NULL,NULL 66640,146236,973040,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66641,952503,1428449,NULL,NULL,NULL,0,NULL,NULL 66642,76213,87610,Notable Question Necromancer Yearling Notable Question Notable Question Famous Question Good Answer Famous Question Notable Question Nice Question Great Question Yearling Famous Question Notable Question Popular Question Popular Question Notable Question Nice Answer Notable Question Notable Question Favorite Question Popular Question Yearling Nice Question Good Question Nice Question Revival,NULL,NULL,0,NULL,NULL 66643,190833,1480320,NULL,NULL,NULL,0,NULL,NULL 66644,1101656,977394,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66645,70973,404650,Nice Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 66646,3354234,1282576,NULL,NULL,NULL,0,NULL,NULL 66647,4313297,207605,Good Answer Nice Question Notable Question Good Question Famous Question Notable Question Yearling Great Question Necromancer Yearling Good Answer Necromancer Inquisitive Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66648,595889,207605,Good Answer Nice Question Notable Question Good Question Famous Question Notable Question Yearling Great Question Necromancer Yearling Good Answer Necromancer Inquisitive Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66649,182127,1107077,NULL,NULL,NULL,0,NULL,NULL 66650,109225,624730,Teacher,NULL,NULL,0,NULL,NULL 66651,257846,302320,Popular Question,NULL,NULL,0,NULL,NULL 66652,119357,350523,NULL,NULL,NULL,0,NULL,NULL 66653,114743,1395140,NULL,NULL,NULL,0,NULL,NULL 66654,1505183,793837,Caucus,NULL,NULL,0,NULL,NULL 66655,220955,241510,Popular Question Citizen Patrol Popular Question Custodian Popular Question Popular Question Popular Question Yearling,NULL,Vanilla hello world app using web components javascript html5 web component custom element pI trying to build simple web component without any external dependencies Just two html files one index html and one webcomponent html ppI have some personal html projects where like to separate out the global html namespace into smaller files do not want ot use any external library like polymer for this Neither want to use any build system or webserver ppAll the examples found online either need an external build system or library Also they don tend to work without webserver For instance href https github com webcomponents hello world element rel nofollow noreferrer webcomponents hello world claims to use vanilla js But in fact it does not as it depends on Bower ppJust two html files which work in my local edit save refresh development cycle Is this actually possible If so how If not what the closest compromise possible If you provide an example including Bower the example is dependent on Bower It doesn matter if Bower is used for code or just build So the component indeed does not depend on Bower but the example does pIt actually quite doable without JS You can easily do this with flex box using little hack ppI worked on top of your flex box example you can see it yourself in this little pen made href http codepen io elleestcrimi pen LENQvr rel nofollow noreferrer http codepen io elleestcrimi pen LENQvr ppThe whole idea is this polliThe header has codeflex grow This only fills up space as much as the content code liliThe content has codeflex grow This way this fills up the space even if there is no content code liliPlace all the children of content into new div called code inner content code liliYou absolutely place the code inner content code to fill up code content code and you allow it to scroll liliTada li olpHere is code below ppre code header flex grow content overflow hidden flex grow position relative inner content position absolute top left right bottom overflow auto body display flex flex direction column code pre This is not valid html Please change your comment to use valid html5 and css,1,Vanilla hello world app using web components javascript html5 web component custom element pI trying to build simple web component without any external dependencies Just two html files one index html and one webcomponent html ppI have some personal html projects where like to separate out the global html namespace into smaller files do not want ot use any external library like polymer for this Neither want to use any build system or webserver ppAll the examples found online either need an external build system or library Also they don tend to work without webserver For instance href https github com webcomponents hello world element rel nofollow noreferrer webcomponents hello world claims to use vanilla js But in fact it does not as it depends on Bower ppJust two html files which work in my local edit save refresh development cycle Is this actually possible If so how If not what the closest compromise possible,NULL 66656,132682,172901,NULL,NULL,NULL,0,NULL,NULL 66657,1065529,663031,NULL,NULL,NULL,0,NULL,NULL 66658,49129,831878,Popular Question Good Answer Nice Answer Popular Question Good Answer Good Answer Good Answer Nice Question Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened java Nice Answer Nice Answer Yearling Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Guru Nice Question Popular Question Notable Question Populist Caucus Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Announcer html Popular Question Popular Question Popular Question Nice Answer Good Answer Nice Answer Nice Answer Enlightened Notable Question json Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling Announcer python Caucus Guru Good Answer Nice Answer Great Answer Nice Answer Enlightened node.js Good Answer Good Answer Good Answer Guru Good Answer Good Answer Nice Answer Enlightened Guru Notable Question Caucus Popular Question Good Answer Announcer Good Answer Popular Question Nice Answer Enlightened Yearling Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened Nice Answer Necromancer Popular Question Nice Answer Enlightened Good Answer Announcer,NULL,NULL,0,NULL,NULL 66659,5095634,598899,Student Informed Scholar Popular Question,NULL,NULL,0,NULL,NULL 66660,1564,645741,Guru Yearling,NULL,NULL,0,NULL,NULL 66661,169915,805008,Curious Popular Question,NULL,NULL,0,NULL,NULL 66662,83693,436641,Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Announcer Notable Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Populist Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Necromancer php Popular Question Revival Announcer Guru Guru Guru Revival Famous Question node.js arrays Necromancer Nice Question Nice Answer Good Question Yearling Nice Answer Enlightened Custodian Announcer javascript Nice Answer Enlightened Nice Answer Enlightened Necromancer Good Answer Good Answer Good Answer Notable Question Good Answer Good Answer Popular Question Caucus Nice Question google-maps-api-3 Nice Answer Enlightened Popular Question Great Answer Nice Answer Enlightened Great Answer Revival Nice Answer Nice Answer Enlightened Good Answer Yearling Pundit,NULL,NULL,0,NULL,NULL 66663,18525,405280,Popular Question Good Question Yearling Good Question Famous Question Census Nice Question Famous Question Yearling Cleanup Custodian Census Yearling Revival,NULL,NULL,0,NULL,NULL 66664,237515,205400,NULL,NULL,NULL,0,NULL,NULL 66665,297075,16787,Nice Answer Good Answer Yearling Great Answer Cleanup Caucus Yearling Custodian Guru Enlightened Yearling,NULL,NULL,0,NULL,NULL 66666,894767,1227217,NULL,NULL,NULL,0,NULL,NULL 66667,2175796,1048964,NULL,NULL,NULL,0,NULL,NULL 66668,1020494,205402,NULL,NULL,NULL,0,NULL,NULL 66669,100528,351219,NULL,NULL,NULL,0,NULL,NULL 66670,128710,1264925,NULL,NULL,NULL,0,NULL,NULL 66671,165146,1425163,NULL,NULL,NULL,0,NULL,NULL 66672,750728,638304,Popular Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 66673,4578890,1447671,NULL,NULL,NULL,0,NULL,NULL 66674,177681,1245880,Commentator Student,NULL,NULL,0,NULL,NULL 66675,222250,502225,NULL,NULL,NULL,0,NULL,NULL 66676,6793,203711,NULL,NULL,NULL,0,NULL,NULL 66677,157127,1381989,NULL,NULL,NULL,0,NULL,NULL 66678,1075502,558320,Yearling Yearling,NULL,NULL,0,NULL,NULL 66679,370887,1000064,Popular Question,NULL,NULL,0,NULL,NULL 66680,551054,1495608,NULL,NULL,NULL,0,NULL,NULL 66681,7743,525388,NULL,NULL,NULL,0,NULL,NULL 66682,159541,1006613,NULL,NULL,NULL,0,NULL,NULL 66683,50941,95504,Popular Question Yearling Good Answer Nice Question Popular Question Famous Question Nice Answer Good Question Good Question Notable Question Nice Answer Enlightened Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 66684,181546,1563333,NULL,NULL,NULL,0,NULL,NULL 66685,220685,1205041,Informed Student Popular Question,NULL,NULL,0,NULL,NULL 66686,139464,537596,NULL,NULL,NULL,0,NULL,NULL 66687,586987,697566,NULL,NULL,NULL,0,NULL,NULL 66688,388586,581416,NULL,NULL,NULL,0,NULL,NULL 66689,342042,90580,Nice Answer Popular Question Necromancer Yearling Popular Question Necromancer Famous Question Necromancer Nice Answer Caucus Popular Question Nice Answer Necromancer Necromancer Necromancer Popular Question Custodian Census Notable Question Yearling Popular Question Good Question Necromancer Popular Question Necromancer Necromancer Notable Question Necromancer Popular Question Notable Question Inquisitive Necromancer Revival Good Answer Necromancer Nice Answer Nice Answer Nice Answer Revival Popular Question Yearling Notable Question Necromancer Nice Question Necromancer Necromancer Popular Question Notable Question Necromancer Nice Answer Electorate Necromancer Notable Question Notable Question Necromancer Nice Answer Necromancer Revival Nice Answer Nice Answer Nice Question Necromancer Famous Question,NULL,pIn code vimrc code add an autocmd for codeBufWinEnter code to open all folds automatically like this ppre codeautocmd BufWinEnter silent foldopen code prepThat tell vim to execute the codesilent foldopen code after opening codeBunWinEnter code event see href http vimdoc sourceforge net htmldoc autocmd html BufWinEnter rel nofollow code BufWinEnter code The codesilent foldopen code will execute href http vimdoc sourceforge net htmldoc options html 27foldopen 27 rel nofollow codefoldopen code on the whole buffer thanks to the code code and will open all folds recursively because of the code code Any eventual error message will be suppressed by href http vimdoc sourceforge net htmldoc various html 3asilent rel nofollow codesilent code You could get error messages like codeE490 No fold found code if the buffer actually didn contain any fold yet ppNote You could use codeBufRead code instead of codeBufWinEnter code but then if the file has modeline that enables the folding that will override this autocmd mean codeBufRead code autocmds run before the modeline is processed and codeBufWinEnter code will run them after find the later to be more useful using autocmd here allows to open all folds for all files using modeline it just to apply to that file and assumes that you can modify the file it could be read only file The modeline would look like vim set foldlevel 99 at the top or bottom of the file,0,NULL,NULL 66690,1302745,1468127,Yearling Nice Answer Enlightened hbase Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 66691,241973,1474124,NULL,NULL,NULL,0,NULL,NULL 66692,1233477,1156402,NULL,NULL,NULL,0,NULL,NULL 66693,212665,1390892,Yearling Guru Great Answer Necromancer Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 66694,1960097,244746,Necromancer Yearling Nice Answer Census Nice Answer Census,NULL,NULL,0,NULL,NULL 66695,486384,244746,Necromancer Yearling Nice Answer Census Nice Answer Census,NULL,NULL,0,NULL,NULL 66696,23706,476820,Announcer Nice Question Announcer Informed Nice Answer Yearling Good Answer Famous Question Custodian Custodian Custodian Popular Question Civic Duty Custodian Notable Question Yearling Custodian Good Question Famous Question Popular Question Good Answer Yearling,NULL,pTo strongavoid the boilerplate strong for every different type of error combined the wisdom of some of the solutions into codecreateErrorType code function ppre codefunction createErrorType name init function message if Error captureStackTrace this stack new Error stack else Error captureStackTrace this this constructor this message message init amp amp init apply this arguments prototype new Error prototype name name prototype constructor return code prepThen you can strongdefine new error types easily strong as follows ppre codevar NameError createErrorType NameError function name invalidChar this message The name name may not contain invalidChar var UnboundError createErrorType UnboundError function variableName this message Variable variableName is not bound code pre Since name is already set on the prototype it not necessary anymore removed it Thanks pNo need to calculate the actual height of the contents you can just scroll down ema lot em ppre code function messageScrollArea scrollTop 1E10 code pre ammer So this means you have an easier solution pNo need to calculate the actual height of the contents you can just scroll down ema lot em ppre code function messageScrollArea scrollTop 1E10 code pre ammer Well you ll see my “overkill” method is shorter and faster but choose whichever you like pNo need to calculate the actual height of the contents you can just scroll down ema lot em ppre code function messageScrollArea scrollTop 1E10 code pre Quite the contrary having to first calculate height would lead to an extra step Regardless of what height you set the browser will always do bounds check anyway so this trick uses that bounds check to its advantage BTW unless you doing something several times per second which guess would not be the case with scrolling all the way down performance is not an issue pNo need to calculate the actual height of the contents you can just scroll down ema lot em ppre code function messageScrollArea scrollTop 1E10 code pre As wrote no additional performance impact However you don want to scroll an actual element multiple times per second with any solution What you re looking for is an infinite scroller such as https developers google com web updates 2016 07 infinite scroller,0,NULL,NULL 66697,78446,262572,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66698,137229,280146,NULL,NULL,NULL,0,NULL,NULL 66699,232037,256767,NULL,NULL,NULL,0,NULL,NULL 66700,137083,26919,Good Answer Great Answer Yearling Caucus Constituent Great Answer Revival Nice Answer Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 66701,236841,32713,Yearling Necromancer Notable Question Nice Question Yearling Announcer,NULL,NULL,0,NULL,NULL 66702,308026,920064,NULL,NULL,NULL,0,NULL,NULL 66703,75893,1126775,Commentator,NULL,NULL,0,NULL,NULL 66704,1071961,804519,Yearling,NULL,NULL,0,NULL,NULL 66705,307101,621886,Caucus Yearling,NULL,NULL,0,NULL,NULL 66706,12744,439427,Nice Answer Enlightened Good Answer Nice Answer Famous Question Enlightened Good Question Guru Nice Answer Informed Notable Question Disciplined Nice Answer Enlightened Announcer Refiner Nice Answer Nice Answer Revival Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Famous Question Nice Answer Good Answer Famous Question Documentation Pioneer Popular Question Notable Question Popular Question Good Question Guru Nice Answer Enlightened Nice Question Caucus Custodian Good Answer Necromancer Good Answer Nice Answer Enlightened Popular Question Necromancer Census Nice Answer Nice Question Good Answer Good Answer Nice Question Booster Good Answer Yearling Necromancer Announcer Great Answer Announcer Nice Answer Great Question Guru Guru Announcer Notable Question Announcer Famous Question Nice Question Nice Answer Famous Question Documentation User Nice Answer eloquent Announcer Nice Answer Announcer Yearling Popular Question Favorite Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 66707,120852,898958,NULL,NULL,NULL,0,NULL,NULL 66708,1195316,1441708,NULL,NULL,NULL,0,NULL,NULL 66709,199510,722949,Notable Question,NULL,NULL,0,NULL,NULL 66710,177342,1496384,NULL,NULL,NULL,0,NULL,NULL 66711,337738,666253,NULL,NULL,NULL,0,NULL,NULL 66712,57410,1550461,NULL,NULL,NULL,0,NULL,NULL 66713,141975,203292,Enthusiast Popular Question Nice Answer Famous Question Yearling Nice Question Popular Question Nice Answer Notable Question Famous Question Populist Popular Question Notable Question Yearling Favorite Question Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 66714,28462,149718,NULL,NULL,NULL,0,NULL,NULL 66715,354199,479167,Popular Question Nice Answer Yearling Caucus Constituent Good Answer Caucus Popular Question Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 66716,82176,347924,Notable Question Curious,NULL,NULL,0,NULL,NULL 66717,50495,277371,Self-Learner Yearling Great Question Necromancer Informed Custodian Custodian Custodian Editor Documentation User Announcer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66718,310915,1395810,Yearling Necromancer Caucus Popular Question Popular Question Caucus Yearling Popular Question Notable Question Custodian Caucus,NULL,NULL,0,NULL,NULL 66719,304572,1314319,NULL,NULL,NULL,0,NULL,NULL 66720,46290,817202,Informed Citizen Patrol Autobiographer Announcer Yearling Caucus Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 66721,192344,231021,NULL,NULL,NULL,0,NULL,NULL 66722,7727313,231021,NULL,NULL,NULL,0,NULL,NULL 66723,41413,472140,Enthusiast,NULL,NULL,0,NULL,NULL 66724,24590,7434,Investor Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 66725,3373,223196,Guru Good Answer Nice Answer Populist Great Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Good Answer Famous Question Yearling Great Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 66726,422248,836177,Yearling Nice Answer Nice Answer Scholar Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 66727,83975,802122,NULL,NULL,NULL,0,NULL,NULL 66728,975887,727646,Nice Answer Yearling Yearling Good Answer Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 66729,2677472,1066291,Good Question Notable Question Notable Question Nice Answer Popular Question Yearling Nice Answer Famous Question Nice Answer Announcer Popular Question Caucus Announcer Guru Yearling Necromancer Census Yearling,NULL,NULL,0,NULL,NULL 66730,104957,168618,NULL,NULL,NULL,0,NULL,NULL 66731,384726,1561194,NULL,NULL,NULL,0,NULL,NULL 66732,35413,169266,Revival Yearling Nice Answer Caucus Yearling Good Answer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 66733,6384255,169266,Revival Yearling Nice Answer Caucus Yearling Good Answer Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 66734,102674,67903,Notable Question Yearling Enthusiast,NULL,NULL,0,NULL,NULL 66735,119257,106506,Popular Question,NULL,NULL,0,NULL,NULL 66736,62392,811283,Autobiographer,NULL,NULL,0,NULL,NULL 66737,83044,819904,Critic Scholar Census Caucus Popular Question,NULL,NULL,0,NULL,NULL 66738,199830,219,Good Question Great Question Good Answer Great Answer Good Question Yearling Good Question Famous Question Popular Question Nice Answer Famous Question Yearling Popular Question Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 66739,417799,1177930,Popular Question,NULL,NULL,0,NULL,NULL 66740,80438,70276,NULL,NULL,NULL,0,NULL,NULL 66741,187118,1451411,Popular Question,NULL,NULL,0,NULL,NULL 66742,475953,481029,NULL,NULL,NULL,0,NULL,NULL 66743,535588,698179,Nice Answer Enlightened Popular Question Yearling Popular Question Nice Answer Nice Answer Nice Answer Enlightened Guru html Caucus Good Answer Nice Answer Nice Answer Yearling Good Answer Guru Pundit Good Answer c# Nice Answer Enlightened Nice Question Census Yearling Nice Answer .net Guru Nice Answer Popular Question Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 66744,165384,1110906,NULL,NULL,NULL,0,NULL,NULL 66745,384154,1258931,NULL,NULL,NULL,0,NULL,NULL 66746,197221,752216,NULL,NULL,NULL,0,NULL,NULL 66747,266412,1163697,NULL,NULL,NULL,0,NULL,NULL 66748,1001553,1265008,NULL,NULL,NULL,0,NULL,NULL 66749,898181,667260,Announcer Necromancer Nice Answer Yearling Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 66750,1348381,641170,Popular Question Popular Question Yearling Good Question Famous Question Notable Question java Civic Duty Popular Question Popular Question Popular Question Tenacious Popular Question Nice Question Necromancer Popular Question Census Yearling Notable Question Popular Question Popular Question Nice Answer Notable Question Nice Question Yearling Nice Answer Nice Question Popular Question Nice Question Peer Pressure Popular Question Nice Answer Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 66751,568530,1457553,NULL,NULL,NULL,0,NULL,NULL 66752,170576,595474,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 66753,106346,317166,NULL,NULL,NULL,0,NULL,NULL 66754,157592,168953,NULL,NULL,NULL,0,NULL,NULL 66755,1332667,570104,Notable Question,NULL,NULL,0,NULL,NULL 66756,151573,682134,Caucus Constituent Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 66757,1216336,795513,NULL,NULL,NULL,0,NULL,NULL 66758,216378,883718,NULL,NULL,NULL,0,NULL,NULL 66759,308656,1429089,NULL,NULL,NULL,0,NULL,NULL 66760,106137,991338,NULL,NULL,NULL,0,NULL,NULL 66761,6100,893347,NULL,NULL,NULL,0,NULL,NULL 66762,1894565,470328,NULL,NULL,NULL,0,NULL,NULL 66763,36961,576784,Good Question Famous Question,NULL,NULL,0,NULL,NULL 66764,1311309,584885,NULL,NULL,NULL,0,NULL,NULL 66765,900884,459338,Notable Question Great Answer Yearling Good Answer Good Answer Custodian Famous Question Guru Nice Answer Notable Question Nice Answer Nice Question Yearling Good Answer Nice Question Famous Question Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 66766,106810,1085167,NULL,NULL,NULL,0,NULL,NULL 66767,420707,1097336,NULL,NULL,NULL,0,NULL,NULL 66768,65352,914791,NULL,NULL,NULL,0,NULL,NULL 66769,307960,761094,NULL,NULL,NULL,0,NULL,NULL 66770,18435,203102,NULL,NULL,NULL,0,NULL,NULL 66771,42664,542825,Popular Question Popular Question Nice Question Notable Question Nice Question Cleanup Curious Commentator Critic,NULL,NULL,0,NULL,NULL 66772,177548,1178643,NULL,NULL,NULL,0,NULL,NULL 66773,348293,1175724,NULL,NULL,NULL,0,NULL,NULL 66774,248206,110287,Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Popular Question Documentation User Popular Question Famous Question Necromancer Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 66775,10229,179228,NULL,NULL,NULL,0,NULL,NULL 66776,530817,650618,NULL,NULL,NULL,0,NULL,NULL 66777,269215,449802,NULL,NULL,NULL,0,NULL,NULL 66778,1514878,1020805,NULL,NULL,NULL,0,NULL,NULL 66779,159780,70600,Cleanup Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Caucus Excavator Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Popular Question Good Question Popular Question Good Question Notable Question Announcer Notable Question Great Question Benefactor Popular Question Popular Question Custodian Nice Question Investor Popular Question Nice Question Socratic Nice Question Yearling Notable Question Disciplined Popular Question Good Question Favorite Question Good Question Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66780,11843,651450,NULL,NULL,NULL,0,NULL,NULL 66781,642603,49898,Famous Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 66782,81336,414017,Critic Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 66783,29577,885695,NULL,NULL,NULL,0,NULL,NULL 66784,22402,647418,NULL,NULL,NULL,0,NULL,NULL 66785,330106,260283,NULL,NULL,NULL,0,NULL,NULL 66786,163539,1022281,NULL,NULL,NULL,0,NULL,NULL 66787,3937608,741048,Popular Question,NULL,NULL,0,NULL,NULL 66788,5122674,741048,Popular Question,NULL,NULL,0,NULL,NULL 66789,511292,647106,NULL,NULL,NULL,0,NULL,NULL 66790,1082269,356778,Notable Question Famous Question Yearling Nice Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 66791,179479,518312,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66792,184945,965015,Critic,NULL,NULL,0,NULL,NULL 66793,312389,334865,Yearling Nice Answer Enlightened Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 66794,1230647,805355,Popular Question Yearling Yearling Favorite Question Peer Pressure Yearling Great Question,NULL,NULL,0,NULL,NULL 66795,186803,326257,Revival Good Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Caucus Notable Question Popular Question Necromancer Nice Question Notable Question Yearling Famous Question Documentation User Good Answer Notable Question Good Question Favorite Question Yearling Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 66796,324655,1179835,Revival,NULL,NULL,0,NULL,NULL 66797,71936,836672,NULL,NULL,NULL,0,NULL,NULL 66798,14417,164449,Nice Answer Necromancer Good Answer Necromancer Yearling Necromancer Nice Answer Nice Answer Yearling Good Answer Yearling Citizen Patrol Excavator,NULL,NULL,0,NULL,NULL 66799,227915,804017,NULL,NULL,NULL,0,NULL,NULL 66800,2241031,1348963,NULL,NULL,NULL,0,NULL,NULL 66801,168784,1411715,NULL,NULL,NULL,0,NULL,NULL 66802,269012,894744,Student,NULL,NULL,0,NULL,NULL 66803,426833,778962,NULL,NULL,NULL,0,NULL,NULL 66804,227149,973044,NULL,NULL,NULL,0,NULL,NULL 66805,61155,1062276,Popular Question Yearling Popular Question Curious,NULL,NULL,0,NULL,NULL 66806,8974,3434,Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Announcer Popular Question Nice Answer Yearling Revival Nice Answer Notable Question Custodian Custodian Nice Answer Nice Answer Enlightened Great Answer Yearling Documentation User Nice Answer Great Answer Good Answer Good Answer Caucus Tag Editor Great Answer Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Benefactor Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 66807,21539,591344,NULL,NULL,NULL,0,NULL,NULL 66808,313861,1009917,NULL,NULL,NULL,0,NULL,NULL 66809,707195,1236250,Commentator Revival Revival Yearling Excavator Great Answer Student Custodian Caucus Constituent Yearling Necromancer Census Notable Question Yearling Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 66810,644981,714959,NULL,NULL,NULL,0,NULL,NULL 66811,1408235,608642,Yearling Good Question Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 66812,54839,1000630,Custodian Custodian Informed Yearling Necromancer Yearling Custodian Yearling Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 66813,1577096,585560,NULL,NULL,NULL,0,NULL,NULL 66814,19551,585560,NULL,NULL,NULL,0,NULL,NULL 66815,83129,324180,Good Answer Yearling Announcer Custodian Announcer appharbor Yearling Yearling,NULL,NULL,0,NULL,NULL 66816,85330,700597,Popular Question Good Answer Nice Question Yearling Famous Question Nice Question Populist Popular Question Yearling,NULL,pAlright moving my comment to an answer Do note that there are multiple views of the codeIO code monad and these ideas You can achieve similar results with uniqueness types and whatnot ppI just happen to find this the simplest and coolest explanation ph2Faking Impurity h2pHaskell is purely functional language This should mean that evaluating Haskell program should always produce the same results However that doesn seem like the case Look at something like ppre code Echo hsmain IO main getLine gt gt putStrLn code prepThis seems to do something different depending on user input ppReally anything that lives in codeIO code looks like it can do wildly different things depending on everything from the state of the moon to the life insurance costs of Schrodinger cat ppMore over it seems like emany em language that can do anything useful must be impure Unless your interested in watching your CPU spin producing side effects is all that programs exist for after all ph2Evil Interpreters h2pIn fact this isn actually the case The appropriate mental model is to imagine codeIO code as something like ppre codedata IO PutStrLn String GetLine String gt code prepSo codeIO code could just be data structure representing sort of plan for the program to execute Then the evil impure Haskell runtime actually executes this plan producing the results you see ppThis isn just minor semantic quibble though we can do something like ppre coderunBackwards IO gt IO runBackwards foldr gt gt return reverse code prepIn other words we can manipulate our plans as normal first class values ppWe can evaluate them force them drop ton of bricks on them even say mean things about them behind their backs and they ll never produce side effect They can you see normal Haskell code can only build up codeIO code actions to be evaluated by the run time it incapable of doing anything noticeable ppIn way you can almost view Haskell program as the ultimate form of metaprogramming producing programs on the fly during runtime and having them evaluated by some interpreter ppSo when you say ppre code foo delay 20 code prepYou re not saying Delay this program for 20 whatevers you re saying In the program that this code builds pause its execution for 20 whatevers when it runs ph2Who Cares h2pIt fair to ask Who Cares if this code gets run at some point who cares who runs it What good does it do to be purely functional in this way It can actually have some interesting effects heh ppFor example think of something like href http www tryhaskell org http www tryhaskell org clearly it needs to run Haskell code but it also can just blindly execute whatever codeIO code it gets What it can do is provide different implementation of codeIO code while exposing an identical API ppThis new codeIO code builds up nice tree like datastructure which can be easily sanitized and checked by the web backend to ensure that it emnever runs something evil em We can even compile our fake codeIO code structure to the normal one that GHC provides and execute it efficiently on the server Since there never anything evil in their to begin with we only have to trust code we wrote ppNo more endless applet style security holes By replacing codeIO code we know beyond shadow of doubt that we can execute this code and it will never attempt to do something evil ph2Evil Interpreters Everywhere h2pIn fact this notion of building up data structures is useful for more than just codeIO code It great way to structure any project that aims to provide limited DSL Anything from pulliA query language liliGame scripting liliCode generation liliWriting client side haskell li ulpAll of these can be solved by building up normal datastructures and compiling them to the appropriate language The usual trick for this is to use href http www haskellforall com 2012 07 purify code using free monads html free monad If you re an intermediate Haskeller go learn about em As far as can see it possible to view Haskell program as one huge pure function that produces sequence of IO actions The IO actions when evaluated may produce different results given the same input but the Haskell program always produces the same sequence of IO actions given the same input which means that it pure,0,NULL,NULL 66817,25231,195121,Yearling Yearling Yearling Great Answer Yearling Guru Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 66818,123405,898231,NULL,NULL,NULL,0,NULL,NULL 66819,19759,870801,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66820,6266234,772843,Notable Question,NULL,NULL,0,NULL,NULL 66821,92858,1296466,Yearling Nice Answer Nice Answer Yearling Nice Answer Yearling Good Answer algorithm Good Answer,NULL,NULL,0,NULL,NULL 66822,117436,726935,NULL,NULL,NULL,0,NULL,NULL 66823,411315,30850,Notable Question Notable Question Nice Answer Nice Question Famous Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Good Answer Famous Question Notable Question Notable Question Notable Question Famous Question Popular Question c# Popular Question Nice Question Famous Question Nice Question Famous Question Yearling Popular Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 66824,1086308,1070088,NULL,NULL,NULL,0,NULL,NULL 66825,129630,158111,Good Answer Yearling Citizen Patrol Custodian Explainer python Yearling Nice Answer Caucus Constituent Guru Nice Answer Yearling Nice Answer Enlightened Announcer Custodian Yearling Custodian Great Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 66826,1131669,901950,NULL,NULL,NULL,0,NULL,NULL 66827,293543,1170470,NULL,NULL,NULL,0,NULL,NULL 66828,1021551,1413224,NULL,NULL,NULL,0,NULL,NULL 66829,19,210593,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66830,26957,1040649,Nice Answer,NULL,NULL,0,NULL,NULL 66831,7809416,1157577,NULL,NULL,NULL,0,NULL,NULL 66832,140577,692820,Popular Question Yearling Notable Question Nice Answer Good Answer Caucus Yearling Critic Yearling Good Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 66833,29852,159734,Famous Question Curious,NULL,NULL,0,NULL,NULL 66834,445018,236587,Favorite Question Good Question Popular Question Good Answer Necromancer Revival Yearling Famous Question Popular Question Popular Question Caucus Famous Question Nice Answer Nice Answer Yearling Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 66835,157511,228997,NULL,NULL,NULL,0,NULL,NULL 66836,1318577,791336,NULL,NULL,NULL,0,NULL,NULL 66837,133459,1253122,NULL,NULL,NULL,0,NULL,NULL 66838,128296,414279,Student Scholar Yearling Nice Answer Caucus Constituent Yearling Nice Answer Mortarboard Excavator Yearling Necromancer Tumbleweed Good Answer,NULL,Make autotools add std c11 to CFLAGS autotools c11 pThere is no href http www gnu org savannah checkouts gnu autoconf manual autoconf 69 html node Compiler html Compiler rel nofollow mention of codeAC PROG CC C11 code analogue to codeAC PROG CC C99 code ppHow can get my autotools project to put code std c11 code into codeCFLAGS code ve extracted the C11 probe to m4 c11 m4 at https github com rurban safeclib commit e57c5e2df3073be8ecc682daa1e9f6856f72415b Custom Search API for deprecated Patent Search API google custom search pGoogle just href http googledevelopers blogspot de 2016 01 retirement of certain google search apis html rel nofollow announced the retirement of some deprecated but pretty useful search API like Google Patent Search API Google News Search API Google Blog Search API Google Video Search API and Google Image Search APIand forwarded to the href https developers google com custom search utm campaign chrome deprication api 011516 amp utm source gdev amp utm medium blog rel nofollow Custom Search API as the recommended alternative ppWhat would now be the syntax for patent search with the custom search API ppe fora href https developers google com patent search utm campaign chrome deprication api 011516 amp utm source gdev rel nofollow https developers google com patent search utm campaign chrome deprication api 011516 amp utm source gdev athe patent search uri will be gone ppThe javascript API is the codegoogle search PatentSearch code class which assume will also be removed And don see anything like Patent Video or Images in the href https developers google com custom search docs ref prebuiltlabels rel nofollow https developers google com custom search docs ref prebuiltlabels tbm pts is part of the answer the rest is looking for patent related JSON fields,1,Custom Search API for deprecated Patent Search API google custom search pGoogle just href http googledevelopers blogspot de 2016 01 retirement of certain google search apis html rel nofollow announced the retirement of some deprecated but pretty useful search API like Google Patent Search API Google News Search API Google Blog Search API Google Video Search API and Google Image Search APIand forwarded to the href https developers google com custom search utm campaign chrome deprication api 011516 amp utm source gdev amp utm medium blog rel nofollow Custom Search API as the recommended alternative ppWhat would now be the syntax for patent search with the custom search API ppe fora href https developers google com patent search utm campaign chrome deprication api 011516 amp utm source gdev rel nofollow https developers google com patent search utm campaign chrome deprication api 011516 amp utm source gdev athe patent search uri will be gone ppThe javascript API is the codegoogle search PatentSearch code class which assume will also be removed And don see anything like Patent Video or Images in the href https developers google com custom search docs ref prebuiltlabels rel nofollow https developers google com custom search docs ref prebuiltlabels,NULL 66839,118647,1068040,Yearling Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 66840,682509,457544,NULL,NULL,NULL,0,NULL,NULL 66841,134764,262425,Yearling Announcer Civic Duty Popular Question Curious Popular Question Self-Learner Caucus Organizer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 66842,85357,780773,Teacher,NULL,NULL,0,NULL,NULL 66843,3067168,398193,Yearling,NULL,NULL,0,NULL,NULL 66844,194613,398193,Yearling,NULL,NULL,0,NULL,NULL 66845,297436,572758,NULL,NULL,NULL,0,NULL,NULL 66846,230062,1246927,NULL,NULL,NULL,0,NULL,NULL 66847,986549,991698,NULL,NULL,NULL,0,NULL,NULL 66848,370910,1143173,Critic Enthusiast Yearling Popular Question Good Answer Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 66849,334458,1468901,NULL,NULL,NULL,0,NULL,NULL 66850,3124781,1365433,NULL,NULL,NULL,0,NULL,NULL 66851,73412,502971,NULL,NULL,NULL,0,NULL,NULL 66852,165516,1028432,Teacher Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 66853,1724053,1028432,Teacher Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 66854,40420,333157,NULL,NULL,NULL,0,NULL,NULL 66855,1507505,937357,NULL,NULL,NULL,0,NULL,NULL 66856,20570,1373818,Student Popular Question,NULL,NULL,0,NULL,NULL 66857,703824,942521,Popular Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 66858,2008200,942521,Popular Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 66859,424558,452802,Yearling Necromancer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 66860,80829,1251585,Notable Question,NULL,NULL,0,NULL,NULL 66861,37167,301440,Yearling Yearling,NULL,NULL,0,NULL,NULL 66862,153471,956452,Curious,NULL,NULL,0,NULL,NULL 66863,389522,985310,Necromancer,NULL,NULL,0,NULL,NULL 66864,36305,782651,Yearling,NULL,NULL,0,NULL,NULL 66865,340255,115466,Notable Question Popular Question Yearling jquery Popular Question Cleanup Good Answer Popular Question Nice Answer Enlightened Guru Populist Yearling Popular Question Nice Question Good Answer Famous Question Famous Question Nice Answer Famous Question Nice Question Peer Pressure Popular Question Nice Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Yearling Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 66866,651153,668277,NULL,NULL,NULL,0,NULL,NULL 66867,217455,203742,Student Scholar,NULL,NULL,0,NULL,NULL 66868,17977,415562,NULL,NULL,NULL,0,NULL,NULL 66869,1230743,1108171,NULL,NULL,NULL,0,NULL,NULL 66870,209662,599216,NULL,NULL,NULL,0,NULL,NULL 66871,322204,879213,Popular Question,NULL,NULL,0,NULL,NULL 66872,489326,1162596,Popular Question,NULL,NULL,0,NULL,NULL 66873,1567320,546311,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66874,199282,52503,NULL,NULL,NULL,0,NULL,NULL 66875,644562,742236,NULL,NULL,NULL,0,NULL,NULL 66876,1726002,764027,Yearling Custodian Popular Question Nice Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66877,7570294,1083912,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 66878,1735573,339736,Popular Question Nice Question Yearling Notable Question Favorite Question Inquisitive Famous Question Nice Answer Yearling Nice Answer Popular Question Necromancer Nice Question Cleanup Custodian Caucus Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 66879,928897,1208416,NULL,NULL,NULL,0,NULL,NULL 66880,417317,1062441,Commentator Scholar Yearling Curious Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66881,49057,1062441,Commentator Scholar Yearling Curious Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66882,259128,475151,Yearling Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 66883,246993,113486,NULL,NULL,NULL,0,NULL,NULL 66884,722407,1370345,Custodian,NULL,NULL,0,NULL,NULL 66885,60538,278488,Yearling Nice Answer Good Answer Revival Good Answer Yearling Good Question Nice Answer Enlightened Documentation User Good Answer Guru Yearling Popular Question Custodian,NULL,NULL,0,NULL,NULL 66886,26358,13969,Popular Question Good Answer Nice Question Famous Question Popular Question Yearling Notable Question Taxonomist Famous Question Yearling Notable Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 66887,70714,2828,Popular Question Nice Question Popular Question Yearling Nice Answer Great Answer Notable Question Good Question Yearling Notable Question Notable Question Yearling Custodian,NULL,NULL,0,NULL,NULL 66888,236825,1332273,Tumbleweed Student Editor Supporter,NULL,NULL,0,NULL,NULL 66889,83622,930949,NULL,NULL,NULL,0,NULL,NULL 66890,324493,109102,Nice Answer Yearling Popular Question Famous Question Yearling Notable Question Yearling Good Answer Famous Question Great Answer Famous Question,NULL,NULL,0,NULL,NULL 66891,19805,324403,NULL,NULL,NULL,0,NULL,NULL 66892,287573,45843,Good Question Popular Question Nice Question Popular Question Popular Question Favorite Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Socratic Popular Question Nice Question Notable Question Nice Question Good Question Popular Question Custodian Popular Question Popular Question Notable Question Great Question Popular Question Yearling Famous Question Notable Question Popular Question Nice Question Notable Question Nice Question Notable Question Notable Question Good Question Famous Question Popular Question Popular Question Popular Question Good Question Enthusiast Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Popular Question Nice Question Good Question Nice Question Necromancer Revival Good Question Notable Question Popular Question Popular Question Necromancer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66893,243710,1355043,Yearling Student Suffrage Vox Populi Caucus Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 66894,243733,1355043,Yearling Student Suffrage Vox Populi Caucus Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 66895,510285,138993,Enlightened Revival,NULL,NULL,0,NULL,NULL 66896,1566878,445507,Notable Question Nice Question Yearling Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 66897,6619,218383,Commentator Popular Question Curious Yearling Editor,NULL,NULL,0,NULL,NULL 66898,40135,23224,Yearling Nice Answer Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 66899,439640,899339,NULL,NULL,NULL,0,NULL,NULL 66900,906416,157807,Supporter,NULL,NULL,0,NULL,NULL 66901,97133,1543978,NULL,NULL,NULL,0,NULL,NULL 66902,242179,176838,Notable Question Yearling Necromancer Nice Answer Enlightened Popular Question Nice Answer Yearling Yearling Good Answer Revival Yearling Necromancer Populist,NULL,NULL,0,NULL,NULL 66903,1032232,649144,Yearling Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 66904,47950,1114056,NULL,NULL,On mac clang fails to search usr local include and usr local lib by default xcode macos gcc clang pI on mac and used codehomebrew code to install codegmp code ppre codeKyumins iMac gcjlib math4tots main cpp lgmp lgmpxxIn file included from main cpp gcjlib hpp 10 fatal error gmpxx file not found include lt gmpxx gt error generated code prepSo then explicitly told codeg code to use code usr local include code ppre codeKyumins iMac gcjlib math4tots main cpp lgmp lgmpxx usr local includeld library not found for lgmpclang error linker command failed with exit code use to see invocation code prepSo then explicitly told codeg code to use code usr local lib code ppre codeKyumins iMac gcjlib math4tots main cpp lgmp lgmpxx usr local include usr local libKyumins iMac gcjlib math4tots out sum is 4444absolute value is 4444 code prepSo the only issue seems to be that codeg code fails to acknowledge code usr local code ppBut it is tedious to type all this out all the time especially when just writing small single file programs ppIs there way for me to get codeg code to acknowledge the stuff in code usr local code by default Is there standard way codehomebrew code users do this phrpI on OS 10 with Xcode in case it is relevant sudo rm rf Applications Xcode app worked for me in 10 12,0,NULL,NULL 66905,89686,1391553,Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Documentation User Famous Question Popular Question,NULL,NULL,0,NULL,NULL 66906,2684728,523272,Promoter Benefactor Famous Question Nice Question Notable Question Yearling Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 66907,122399,113501,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 66908,1550510,685950,NULL,NULL,NULL,0,NULL,NULL 66909,461994,662696,NULL,NULL,NULL,0,NULL,NULL 66910,39528,360666,NULL,NULL,NULL,0,NULL,NULL 66911,264079,1558368,NULL,NULL,NULL,0,NULL,NULL 66912,885161,485343,Nice Answer Necromancer Necromancer Nice Answer Nice Answer Nice Answer Custodian Necromancer Custodian Custodian Necromancer Nice Question Necromancer Famous Question Good Answer Popular Question Nice Answer Necromancer Reviewer Revival Suffrage Vox Populi Explainer c++ Autobiographer Nice Answer Enlightened Mortarboard Good Answer Electorate Nice Question Good Answer Good Answer Popular Question Yearling Nice Answer Enlightened Caucus Constituent Revival Nice Answer Popular Question Revival Nice Answer Popular Question Good Answer Necromancer Necromancer Disciplined Popular Question Nice Question Nice Answer Enlightened Nice Answer Good Answer Nice Question Nice Answer Notable Question Notable Question Notable Question Popular Question Nice Answer Popular Question Quorum Nice Answer Nice Answer Necromancer Popular Question Announcer Nice Answer Nice Answer Nice Answer Announcer Famous Question Necromancer Yearling Notable Question Notable Question Popular Question Announcer Necromancer Necromancer c++ Good Answer Revival Nice Answer Nice Answer Necromancer Nice Question Announcer Necromancer Good Answer Caucus java Notable Question Revival Nice Answer Necromancer Necromancer Nice Answer Nice Question Necromancer Nice Answer Nice Answer c++11 Enlightened Revival Nice Answer Necromancer Nice Answer Enlightened Good Answer Popular Question Nice Answer Guru Cleanup Notable Question Necromancer Revival Good Answer Necromancer Guru Nice Answer Enlightened Nice Answer Enlightened Necromancer Famous Question Nice Answer Popular Question Necromancer Nice Answer Revival Yearling Popular Question Good Question Nice Answer Good Answer Guru Great Answer performance c,NULL,NULL,0,NULL,NULL 66913,41892,1516544,Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 66914,1437568,1245995,Yearling,NULL,NULL,0,NULL,NULL 66915,1263495,575057,Curious Notable Question,NULL,NULL,0,NULL,NULL 66916,45876,655486,Scholar Yearling,NULL,NULL,0,NULL,NULL 66917,71731,1090162,Informed,NULL,NULL,0,NULL,NULL 66918,888631,5180,Necromancer Yearling,NULL,NULL,0,NULL,NULL 66919,52378,810734,NULL,NULL,NULL,0,NULL,NULL 66920,539574,809932,NULL,NULL,NULL,0,NULL,NULL 66921,27540,221392,Yearling Good Answer,NULL,NULL,0,NULL,NULL 66922,897524,776876,NULL,NULL,NULL,0,NULL,NULL 66923,184891,1393879,Teacher Supporter Revival Student Editor Custodian,NULL,NULL,0,NULL,NULL 66924,7854,217338,NULL,NULL,NULL,0,NULL,NULL 66925,132197,403909,Caucus Constituent,NULL,NULL,0,NULL,NULL 66926,45182,391865,Yearling Nice Answer Yearling Nice Answer Announcer Caucus Constituent Revival Revival Necromancer Necromancer Good Answer Revival Nice Answer Yearling Necromancer Documentation User Necromancer Revival Revival Nice Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 66927,264191,1514150,NULL,NULL,NULL,0,NULL,NULL 66928,11830,1541339,Yearling,NULL,NULL,0,NULL,NULL 66929,328700,817867,Informed,NULL,NULL,0,NULL,NULL 66930,17580,544547,NULL,NULL,NULL,0,NULL,NULL 66931,171460,648230,NULL,NULL,NULL,0,NULL,NULL 66932,136428,1433524,NULL,NULL,NULL,0,NULL,NULL 66933,304757,1433971,Notable Question Popular Question Famous Question Notable Question Famous Question Popular Question Yearling Notable Question Notable Question Notable Question Proofreader Great Answer Notable Question Famous Question Notable Question Great Answer Nice Answer Notable Question Popular Question Yearling Good Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 66934,226235,1075553,Teacher Supporter,NULL,NULL,0,NULL,NULL 66935,192817,118264,Necromancer Yearling Necromancer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 66936,1507033,899397,Popular Question,NULL,NULL,0,NULL,NULL 66937,543952,1167479,Editor Supporter Popular Question,NULL,NULL,0,NULL,NULL 66938,355343,1308678,Commentator Nice Question Popular Question,NULL,NULL,0,NULL,NULL 66939,564187,903544,Popular Question Good Answer Popular Question Popular Question Yearling Notable Question Guru Yearling Announcer abap Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 66940,223270,226565,Commentator,NULL,NULL,0,NULL,NULL 66941,327172,180578,NULL,NULL,NULL,0,NULL,NULL 66942,104824,1068704,Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 66943,2175678,179803,Popular Question Custodian,NULL,NULL,0,NULL,NULL 66944,1480284,1055286,NULL,NULL,NULL,0,NULL,NULL 66945,519255,577007,Yearling Nice Answer Caucus Caucus Yearling Excavator,NULL,NULL,0,NULL,NULL 66946,34759,1092942,Student Editor,NULL,NULL,0,NULL,NULL 66947,310539,981973,Yearling Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66948,155876,888714,Curious Necromancer Popular Question Nice Answer Yearling Notable Question Caucus Constituent Caucus Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 66949,176712,398614,NULL,NULL,NULL,0,NULL,NULL 66950,92761,77617,Pundit Nice Answer Yearling Nice Answer Guru Good Answer Nice Answer Nice Answer Caucus Great Answer Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 66951,195885,1039195,Popular Question Yearling Notable Question Popular Question Critic,NULL,NULL,0,NULL,NULL 66952,263618,315021,NULL,NULL,NULL,0,NULL,NULL 66953,1763103,1175620,Yearling Yearling Popular Question Custodian Necromancer,NULL,NULL,0,NULL,NULL 66954,278026,1473732,NULL,NULL,NULL,0,NULL,NULL 66955,393048,438025,Yearling Nice Answer Enlightened Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 66956,171454,430617,NULL,NULL,NULL,0,NULL,NULL 66957,468178,258397,Nice Answer Yearling jquery Yearling Nice Answer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 66958,142954,634581,Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 66959,12947,275375,Yearling Revival Necromancer Commentator Nice Answer Enlightened Excavator,NULL,NULL,0,NULL,NULL 66960,8983,1279710,Announcer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 66961,1274809,1279710,Announcer Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 66962,118845,577190,Revival Critic Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 66963,1002585,1171936,NULL,NULL,NULL,0,NULL,NULL 66964,423358,190376,Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Fanatic Nice Answer Necromancer haskell Nice Answer Enlightened Announcer Revival Nice Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 66965,142122,1301761,NULL,NULL,NULL,0,NULL,NULL 66966,700547,1556432,NULL,NULL,NULL,0,NULL,NULL 66967,600625,337921,NULL,NULL,NULL,0,NULL,NULL 66968,41577,581071,NULL,NULL,NULL,0,NULL,NULL 66969,127988,844725,NULL,NULL,NULL,0,NULL,NULL 66970,334759,21593,Popular Question Yearling Necromancer Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 66971,94440,1011779,NULL,NULL,NULL,0,NULL,NULL 66972,94300,348673,NULL,NULL,NULL,0,NULL,NULL 66973,435112,375102,NULL,NULL,NULL,0,NULL,NULL 66974,41860,224334,Self-Learner Guru Yearling Nice Answer Excavator Good Answer Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 66975,29642,894892,Organizer Custodian Nice Answer Yearling Explainer Revival Yearling Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 66976,484,1843,Popular Question Popular Question Good Question Notable Question Necromancer Nice Answer Nice Answer Yearling Good Question Popular Question Popular Question Popular Question Famous Question Popular Question Revival Yearling Popular Question Favorite Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 66977,25509,618087,Revival Revival Yearling Nice Answer Nice Answer Nice Answer Good Answer Student Scholar Nice Answer Enlightened spring Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer spring-boot Yearling Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Revival java Nice Answer Enlightened Good Answer Revival Revival Good Answer Popular Question Nice Answer Yearling Guru Self-Learner Nice Answer Good Answer Enlightened spring-security Nice Answer Enlightened Guru Necromancer Nice Answer Enlightened,NULL,NULL,1,NULL,How to remove Expires header with Spring cache control java spring http spring mvc spring security pSpring Security adds the following cache headers by default ppre codeCache Control no cache no store max age must revalidatePragma no cacheExpires code prepThat good setting for our HTML pages For static resources images CSS etc we would like to have them cached According to the href http docs spring io spring security site docs current reference htmlsingle headers cache control rel nofollow Spring documentation it can be configured like this ppre codelic class WebMvcConfiguration extends WebMvcConfigurerAdapter public void addResourceHandlers ResourceHandlerRegistry registry registry addResourceHandler resources addResourceLocations resources setCachePeriod 31556926 code prepThat results in the following HTTP headers ppre codeCache Control max age 604800Pragma Expires code prepThat good except for the codeExpires code header which still indicates that document should not be cached The standard says that codemax age code takes precedence over codeExpires code But our intermediate cache still treats it as non cacheable ppHow can we remove the codeExpires code header or set it to blank for cacheable documents Why doesn Spring remove it if we configure cache period pThis appears to be related to href https github com spring projects spring security pull 3759 rel nofollow spring security 3759 You can work around this by ignoring specific URLs as listed on somewhat unrelated href https jira spring io browse SPR 14005 rel nofollow SPR 14005 However this is not advised even if the URLs point to static resources since it means all security is disabled for the URLs ppInstead users should consider using this workaround ppre codetypublic class WebSecurityConfig extends WebSecurityConfigurerAdapter protected void configure HttpSecurity http throws Exception RequestMatcher notResourcesMatcher new NegatedRequestMatcher new AntPathRequestMatcher resources HeaderWriter notResourcesHeaderWriter new DelegatingRequestMatcherHeaderWriter notResourcesMatcher new CacheControlHeadersWriter http headers cacheControl disable addHeaderWriter notResourcesHeaderWriter code prepWhen Spring Security is released href https github com spring projects spring security pull 3759 rel nofollow spring security 3759 will be fixed and this should not be an issue 66978,443874,82337,Good Question,NULL,NULL,0,NULL,NULL 66979,53010,94574,Supporter,NULL,NULL,0,NULL,NULL 66980,145278,727558,NULL,NULL,NULL,0,NULL,NULL 66981,129652,635012,Teacher,NULL,NULL,0,NULL,NULL 66982,1512842,1009983,Student Scholar Editor Supporter,NULL,NULL,0,NULL,NULL 66983,5470974,1009983,Student Scholar Editor Supporter,NULL,NULL,0,NULL,NULL 66984,138103,1355260,NULL,NULL,NULL,0,NULL,NULL 66985,920573,1082400,Popular Question Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 66986,560354,94744,Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 66987,1616802,370092,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Critic Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 66988,59785,329886,Yearling Good Answer,NULL,NULL,0,NULL,NULL 66989,6901210,945853,NULL,NULL,NULL,0,NULL,NULL 66990,72880,798133,Popular Question Curious Custodian Yearling Revival Good Answer Notable Question Excavator Nice Answer Announcer Yearling Necromancer Civic Duty Yearling,NULL,NULL,0,NULL,NULL 66991,505737,763551,NULL,NULL,NULL,0,NULL,NULL 66992,666371,1374863,NULL,NULL,NULL,0,NULL,NULL 66993,5572785,123899,Tumbleweed Revival Necromancer Yearling Announcer,NULL,NULL,0,NULL,NULL 66994,102544,1233389,Teacher,NULL,NULL,0,NULL,NULL 66995,1451324,240401,NULL,NULL,NULL,0,NULL,NULL 66996,1347381,1246499,NULL,NULL,NULL,0,NULL,NULL 66997,296162,110305,Notable Question Yearling Nice Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 66998,513683,1042,Famous Question Notable Question Popular Question Popular Question Good Answer Notable Question Yearling Pundit Popular Question Nice Question Good Question Yearling Notable Question Notable Question Famous Question Notable Question Necromancer Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 66999,1408536,534254,Famous Question Good Question Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 67000,9757,352346,Necromancer Good Question Yearling Famous Question Famous Question Notable Question Popular Question Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 67001,52458,52561,NULL,NULL,NULL,0,NULL,NULL 67002,521343,52561,NULL,NULL,NULL,0,NULL,NULL 67003,1615845,890366,NULL,NULL,NULL,0,NULL,NULL 67004,253468,1274368,NULL,NULL,NULL,0,NULL,NULL 67005,465805,350941,NULL,NULL,NULL,0,NULL,NULL 67006,92548,700697,NULL,NULL,NULL,0,NULL,NULL 67007,678805,415488,NULL,NULL,NULL,0,NULL,NULL 67008,1443315,937365,Popular Question Yearling Necromancer Citizen Patrol Good Answer Yearling Popular Question Yearling Civic Duty Self-Learner Yearling Tumbleweed Notable Question Necromancer Custodian Custodian Excavator Necromancer Notable Question Autobiographer Necromancer Popular Question Popular Question Nice Question Great Answer Yearling Populist,NULL,NULL,0,NULL,NULL 67009,141841,83773,NULL,NULL,NULL,0,NULL,NULL 67010,98774,30896,NULL,NULL,NULL,0,NULL,NULL 67011,861675,238108,Stellar Question Popular Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67012,1922419,238108,Stellar Question Popular Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67013,74336,90395,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67014,231274,733580,NULL,NULL,NULL,0,NULL,NULL 67015,5833,599008,Popular Question,NULL,NULL,0,NULL,NULL 67016,554119,159005,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67017,391631,999155,NULL,NULL,NULL,0,NULL,NULL 67018,1344562,1532702,Popular Question,NULL,NULL,0,NULL,NULL 67019,433513,1339184,Yearling Guru Good Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 67020,1215921,713861,Yearling Critic Popular Question Caucus Notable Question Yearling Inquisitive Popular Question Nice Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 67021,214262,1227169,Student Supporter,NULL,NULL,0,NULL,NULL 67022,3002018,1227169,Student Supporter,NULL,NULL,0,NULL,NULL 67023,374034,956,Promoter Nice Answer Yearling Guru Notable Question Notable Question Yearling Nice Answer Enlightened Census Yearling Nice Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67024,277900,473819,Nice Answer Yearling Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 67025,1385507,475250,Scholar,NULL,NULL,0,NULL,NULL 67026,1509524,315651,Popular Question,NULL,NULL,0,NULL,NULL 67027,1187303,154101,Nice Answer,NULL,NULL,0,NULL,NULL 67028,127580,716005,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67029,180941,78291,NULL,NULL,NULL,0,NULL,NULL 67030,127295,712034,Good Answer Yearling Critic Yearling Caucus Yearling,NULL,,0,, 67031,266162,645672,NULL,NULL,NULL,0,NULL,NULL 67032,602848,483465,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 67033,21495,210,Good Answer Nice Answer Good Answer Yearling Good Answer Great Answer jquery Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Census Populist Yearling Custodian,NULL,NULL,0,NULL,NULL 67034,265431,913782,NULL,NULL,NULL,0,NULL,NULL 67035,168928,203142,Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 67036,42086,378383,NULL,NULL,NULL,0,NULL,NULL 67037,258022,868317,NULL,NULL,NULL,0,NULL,NULL 67038,196468,890421,Revival,NULL,NULL,0,NULL,NULL 67039,81613,292637,Popular Question Notable Question Yearling Famous Question Critic,NULL,NULL,0,NULL,NULL 67040,1361808,702735,NULL,NULL,NULL,0,NULL,NULL 67041,354710,173382,NULL,NULL,NULL,0,NULL,NULL 67042,790990,1311589,NULL,NULL,NULL,0,NULL,NULL 67043,19162,139444,Yearling Yearling,NULL,NULL,0,NULL,NULL 67044,88580,535924,NULL,NULL,NULL,0,NULL,NULL 67045,706,771782,NULL,NULL,NULL,0,NULL,NULL 67046,281986,754025,Yearling Yearling Custodian Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 67047,9211651,897137,Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 67048,509509,897137,Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 67049,1709205,1057479,NULL,NULL,NULL,0,NULL,NULL 67050,294822,408802,Popular Question,NULL,NULL,0,NULL,NULL 67051,574606,1549303,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 67052,1521003,7952,Popular Question Notable Question Yearling Notable Question Popular Question Yearling Favorite Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67053,2374079,1061227,NULL,NULL,NULL,0,NULL,NULL 67054,186763,363815,Nice Answer Enlightened Popular Question Guru Yearling Good Answer Famous Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Yearling Great Answer Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 67055,463843,1015533,NULL,NULL,NULL,0,NULL,NULL 67056,535149,1385358,Yearling Nice Answer Enlightened Nice Question Notable Question Promoter Popular Question Yearling Popular Question Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 67057,105089,492317,Yearling Caucus Yearling Census,NULL,NULL,0,NULL,NULL 67058,790700,871237,NULL,NULL,NULL,0,NULL,NULL 67059,1066887,117554,Popular Question Famous Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Good Question Favorite Question Notable Question Nice Answer Enlightened Yearling Popular Question Great Question Nice Question Popular Question Good Question Favorite Question Famous Question Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67060,64618,1281824,NULL,NULL,NULL,0,NULL,NULL 67061,1516048,1108737,NULL,NULL,NULL,0,NULL,NULL 67062,348228,78869,NULL,NULL,NULL,0,NULL,NULL 67063,87048,74552,Popular Question Good Question Yearling Popular Question Yearling Taxonomist Famous Question Yearling,NULL,NULL,0,NULL,NULL 67064,4133,677322,Populist Yearling Great Answer Yearling Good Answer Yearling Revival Great Question,NULL,NULL,0,NULL,NULL 67065,427909,567400,Notable Question,NULL,NULL,0,NULL,NULL 67066,268586,1088743,Yearling Good Answer,NULL,NULL,0,NULL,NULL 67067,3171283,1088743,Yearling Good Answer,NULL,NULL,0,NULL,NULL 67068,171585,184497,NULL,NULL,NULL,0,NULL,NULL 67069,273771,24736,NULL,NULL,NULL,0,NULL,NULL 67070,273713,631663,Notable Question Popular Question Teacher Yearling Good Question,NULL,NULL,0,NULL,NULL 67071,1325429,1481326,NULL,NULL,NULL,0,NULL,NULL 67072,501276,100260,NULL,NULL,NULL,0,NULL,NULL 67073,3777718,389029,NULL,NULL,NULL,0,NULL,NULL 67074,3128940,389029,NULL,NULL,NULL,0,NULL,NULL 67075,894651,389029,NULL,NULL,NULL,0,NULL,NULL 67076,32625,563420,Yearling Good Question Nice Question Necromancer Famous Question Favorite Question Popular Question Notable Question Nice Answer Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Necromancer Yearling Necromancer Good Answer Notable Question Good Question Popular Question Popular Question Inquisitive Necromancer Nice Answer Revival Popular Question Necromancer Popular Question Nice Answer Popular Question Notable Question Necromancer Nice Question Nice Answer Notable Question Famous Question Notable Question Nice Answer Famous Question Nice Answer Notable Question Necromancer Taxonomist Yearling Great Answer Popular Question Notable Question Popular Question Nice Question Popular Question Famous Question Notable Question Good Question Famous Question Necromancer Nice Answer Notable Question Electorate,NULL,pUntil API Gateway APIG supports edge caching via its internal use of CloudFormation CF have come up with workaround ppYou can indeed put CF dist in front of APIG the trick is to force HTTPS only Viewer Protocol Policy AND to not forward the HOST header because APIG needs SNI ppI setup my CF Default Cache Behavior Settings to not forward any headers and forced Viewer Protocol Policy to HTTPS Only and it works Hope this helps others ppHere is CloudFormation resource object that has all the required configuration Note use the convention code lt stage gt lt app name gt code for StackName ppre codeCloudFront Type AWS CloudFront Distribution Properties DistributionConfig Enabled true IPV6Enabled true HttpVersion http2 Comment Join Ref AWS StackName Cloud Front Aliases Ref CloudFrontCname ViewerCertificate AcmCertificateArn Ref AcmCertificateArn SslSupportMethod sni only Origins Id APIGOrigin DomainName Sub apigId execute api AWS Region amazonaws com apigId Ref ApiGatewayLambdaProxy OriginPath Sub Stage Stage Select Split Ref AWS StackName CustomOriginConfig HTTPPort 80 HTTPSPort 443 OriginProtocolPolicy https only OriginCustomHeaders HeaderName Verify From Cf HeaderValue Ref VerifyFromCfHeaderVal DefaultCacheBehavior AllowedMethods DELETE GET HEAD OPTIONS PATCH POST PUT CachedMethods GET HEAD OPTIONS ForwardedValues Headers Access Control Request Headers Access Control Request Method Origin Authorization Host APIG needs to use SNI QueryString true TargetOriginId APIGOrigin ViewerProtocolPolicy https only Compress true DefaultTTL CustomErrorResponses ErrorCachingMinTTL ErrorCode 400 ErrorCachingMinTTL ErrorCode 403 ErrorCachingMinTTL ErrorCode 500 DNSARecord Type AWS Route53 RecordSet Properties Comment Ref AWS StackName Name Ref CloudFrontCname Type HostedZoneName Join Select Split Ref CloudFrontCname Select Split Ref CloudFrontCname AliasTarget HostedZoneId Ref Route53HostedZoneId DNSName GetAtt CloudFront DomainName DNSAAAARecord Type AWS Route53 RecordSet Properties Comment Ref AWS StackName Name Ref CloudFrontCname Type AAAA HostedZoneName Join Select Split Ref CloudFrontCname Select Split Ref CloudFrontCname AliasTarget HostedZoneId Ref Route53HostedZoneId DNSName GetAtt CloudFront DomainName code prep strongUpdates strong polli codeOriginProtocolPolicy code to codehttps only code liliNow using YML liliMore production ready example SSL only codeDomainName code not hard coded custom header to verify requests come through CloudFront codeCustomErrorResponses code Edge Gzip Caching codeOPTIONS code li ol It will cost double Please reach out to your AWS rep asking for more CloudFront features exposed in APIG more people that ask the better,0,NULL,NULL 67077,1344691,796111,NULL,NULL,NULL,0,NULL,NULL 67078,291220,949364,Editor Commentator Teacher Curious Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67079,483418,13010,Notable Question,NULL,NULL,0,NULL,NULL 67080,9096,506845,Popular Question Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 67081,1157287,724304,NULL,NULL,NULL,0,NULL,NULL 67082,467013,102224,NULL,NULL,NULL,0,NULL,NULL 67083,901465,359898,NULL,NULL,,0,, 67084,106767,418639,Student,NULL,NULL,0,NULL,NULL 67085,1617991,338941,NULL,NULL,NULL,0,NULL,NULL 67086,6933121,1031280,NULL,NULL,NULL,0,NULL,NULL 67087,400586,757872,NULL,NULL,NULL,0,NULL,NULL 67088,13485,976058,NULL,NULL,NULL,0,NULL,NULL 67089,1094670,895893,NULL,NULL,NULL,0,NULL,NULL 67090,232832,417681,Promoter Benefactor Nice Question Notable Question Popular Question Famous Question Popular Question Yearling Nice Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 67091,13032,136550,Notable Question Notable Question Yearling Yearling Custodian,NULL,NULL,0,NULL,NULL 67092,232454,1541915,Organizer Yearling Revival Self-Learner Necromancer Yearling Necromancer Nice Answer Enlightened Yearling Nice Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 67093,2049620,1389165,NULL,NULL,NULL,0,NULL,NULL 67094,302602,1389165,NULL,NULL,NULL,0,NULL,NULL 67095,2503998,1389165,NULL,NULL,NULL,0,NULL,NULL 67096,67106,311289,Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 67097,98583,178035,Revival Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 67098,2594600,603506,NULL,NULL,NULL,0,NULL,NULL 67099,430600,1042290,NULL,NULL,NULL,0,NULL,NULL 67100,29083,667888,NULL,NULL,NULL,0,NULL,NULL 67101,209277,230185,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 67102,143240,925141,Scholar Nice Question Caucus Yearling Popular Question Good Answer Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 67103,370739,1267484,NULL,NULL,NULL,0,NULL,NULL 67104,1529950,354923,Yearling Nice Answer Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 67105,37514,354923,Yearling Nice Answer Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 67106,256615,54996,Yearling Notable Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 67107,133230,56560,Guru Yearling Yearling Enthusiast Commentator Yearling Necromancer,NULL,NULL,0,NULL,NULL 67108,82755,796552,NULL,NULL,NULL,0,NULL,NULL 67109,308186,421406,NULL,NULL,NULL,0,NULL,NULL 67110,106389,1627,Notable Question Good Answer Good Answer Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 67111,143938,370624,NULL,NULL,NULL,0,NULL,NULL 67112,5972,598818,Necromancer,NULL,NULL,0,NULL,NULL 67113,477219,909891,NULL,NULL,NULL,0,NULL,NULL 67114,527062,210107,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67115,30036,29831,Revival,NULL,NULL,0,NULL,NULL 67116,454419,310131,Popular Question Custodian Informed Yearling Autobiographer Yearling Good Answer Tenacious,NULL,NULL,0,NULL,NULL 67117,1119178,387952,Good Question Yearling,NULL,NULL,0,NULL,NULL 67118,73004,741892,Yearling Popular Question Announcer Good Answer,NULL,NULL,0,NULL,NULL 67119,1613,982530,Yearling,NULL,NULL,0,NULL,NULL 67120,2261190,1062252,NULL,NULL,NULL,0,NULL,NULL 67121,60963,1062252,NULL,NULL,NULL,0,NULL,NULL 67122,7588,155826,Nice Answer Explainer Yearling Self-Learner Organizer Enthusiast Excavator Popular Question ruby-on-rails Autobiographer Curious Good Answer Nice Answer ruby Yearling Notable Question Announcer Good Answer Caucus Nice Question Yearling,NULL,NULL,0,NULL,NULL 67123,420316,540763,NULL,NULL,NULL,0,NULL,NULL 67124,1169330,1225017,Notable Question Nice Question Popular Question Critic Notable Question,NULL,NULL,0,NULL,NULL 67125,866915,393353,Popular Question,NULL,NULL,0,NULL,NULL 67126,33370,185050,Student,NULL,NULL,0,NULL,NULL 67127,37119,858189,NULL,NULL,NULL,0,NULL,NULL 67128,41816,794420,NULL,NULL,NULL,0,NULL,NULL 67129,1063,148722,Yearling Good Answer Guru Nice Question Great Answer Yearling Scholar Guru Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 67130,59324,631167,NULL,NULL,NULL,0,NULL,NULL 67131,240149,576359,NULL,NULL,NULL,0,NULL,NULL 67132,22017,145837,Custodian,NULL,NULL,0,NULL,NULL 67133,79023,188078,NULL,NULL,NULL,0,NULL,NULL 67134,39702,277954,NULL,NULL,NULL,0,NULL,NULL 67135,863,265807,javascript Yearling Notable Question Necromancer Popular Question Nice Answer Enlightened Yearling Nice Answer Necromancer Custodian Yearling,NULL,NULL,0,NULL,NULL 67136,83553,191551,Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 67137,352552,1405733,NULL,NULL,NULL,0,NULL,NULL 67138,213358,98206,Census,NULL,NULL,0,NULL,NULL 67139,204895,773374,Yearling,NULL,NULL,0,NULL,NULL 67140,237638,127163,Custodian Custodian Editor Yearling Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67141,399962,623702,NULL,NULL,NULL,0,NULL,NULL 67142,172211,1046949,Yearling,NULL,NULL,0,NULL,NULL 67143,2627480,1132141,Teacher Supporter Editor,NULL,NULL,0,NULL,NULL 67144,486999,574463,NULL,NULL,NULL,0,NULL,NULL 67145,195483,862016,NULL,NULL,NULL,0,NULL,NULL 67146,2740515,862016,NULL,NULL,NULL,0,NULL,NULL 67147,1233,297144,Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67148,404113,378441,NULL,NULL,NULL,0,NULL,NULL 67149,238177,701127,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67150,663795,206349,Informed Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 67151,53161,806817,NULL,NULL,NULL,0,NULL,NULL 67152,729201,126411,Good Question Famous Question Famous Question Famous Question Yearling Popular Question Great Answer Caucus Notable Question Good Question Popular Question Popular Question Yearling Caucus Popular Question Caucus Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67153,193160,130556,Necromancer Popular Question Notable Question Notable Question Yearling Revival Notable Question Notable Question Announcer Popular Question Popular Question Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67154,39618,76427,Excavator Yearling Popular Question Good Answer Yearling Great Answer Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 67155,166011,144622,Notable Question,NULL,NULL,0,NULL,NULL 67156,300265,457478,Popular Question Nice Question Custodian Yearling Citizen Patrol Good Question Popular Question Great Question Popular Question Popular Question Yearling Popular Question Necromancer Nice Answer Popular Question Nice Question Notable Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 67157,252688,859085,Notable Question Critic Popular Question Great Answer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 67158,208110,859085,Notable Question Critic Popular Question Great Answer Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 67159,358474,49139,Enlightened Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 67160,39062,228514,Explainer php Guru Popular Question Yearling Nice Answer Necromancer Revival Revival Notable Question Yearling amazon-ec2 Nice Answer Revival Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67161,823274,1238729,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 67162,22730,525821,NULL,NULL,NULL,0,NULL,NULL 67163,1202691,458362,NULL,NULL,NULL,0,NULL,NULL 67164,90436,823,Popular Question Nice Answer Notable Question Nice Question Yearling Good Answer Notable Question Announcer Yearling Revival Documentation User Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 67165,357730,115540,Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 67166,105694,23854,NULL,NULL,NULL,0,NULL,NULL 67167,11248,558700,Guru ios Informed Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 67168,22869,294120,Famous Question Popular Question Popular Question Custodian Yearling Popular Question Notable Question Famous Question Popular Question Notable Question Nice Question Popular Question Nice Answer Nice Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Custodian Custodian Popular Question Yearling Famous Question Popular Question Nice Answer Enlightened Notable Question Popular Question Popular Question Custodian Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67169,733632,1442881,Famous Question Popular Question Yearling Revival Popular Question Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67170,339636,902810,Popular Question,NULL,NULL,0,NULL,NULL 67171,2627923,902810,Popular Question,NULL,NULL,0,NULL,NULL 67172,198934,817647,NULL,NULL,NULL,0,NULL,NULL 67173,205677,10876,Curious,NULL,NULL,0,NULL,NULL 67174,64978,70029,NULL,NULL,NULL,0,NULL,NULL 67175,120039,1185887,NULL,NULL,NULL,0,NULL,NULL 67176,1784207,1054338,NULL,NULL,NULL,0,NULL,NULL 67177,2296338,1054338,NULL,NULL,NULL,0,NULL,NULL 67178,50150,750930,NULL,NULL,NULL,0,NULL,NULL 67179,1311393,993890,Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 67180,29605,993890,Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 67181,1159262,608598,NULL,NULL,NULL,0,NULL,NULL 67182,34787,126768,Yearling Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67183,34711,406937,NULL,NULL,NULL,0,NULL,NULL 67184,132809,222121,NULL,NULL,NULL,0,NULL,NULL 67185,3932,14985,Scholar Student Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 67186,17120,53098,Nice Answer Yearling Nice Answer Enlightened,NULL,pProbability of just two hashes accidentally colliding is strong1 2sup128 sup strong href http www wolframalpha com input 5E128 rel noreferrer which is in 340 undecillion 282 decillion 366 nonillion 920 octillion 938 septillion 463 sextillion 463 quintillion 374 quadrillion 607 trillion 431 billion 768 million 211 thousand 456 ppHowever if you keep all the hashes then the probability is bit higher thanks to href http en wikipedia org wiki Birthday paradox rel noreferrer birthday paradox To have 50 chance of any hash colliding with any other hash you need strong2sup64 sup strong hashes This means that to get collision on average you ll need to hash href http www google com search 5E64 2F100 2F 28seconds per year 29 rel noreferrer embillion em files emper second em for 100 years This means that to get collision on average you ll need to hash billion files per second for 100 years incorrect this means that by the time you ve been hashing billion files per second for 100 years 50 of the hashes you are generating would collide with previously generated hashes,0,NULL,NULL 67187,651724,504523,Citizen Patrol Notable Question Famous Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67188,280407,479840,Announcer,NULL,NULL,0,NULL,NULL 67189,7984530,728996,NULL,NULL,NULL,0,NULL,NULL 67190,544819,398412,Popular Question Good Answer Popular Question Good Question Nice Answer Enlightened Yearling Popular Question Popular Question Good Answer Notable Question Notable Question Yearling Revival Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67191,2132305,204386,NULL,NULL,NULL,0,NULL,NULL 67192,415374,630455,NULL,NULL,NULL,0,NULL,NULL 67193,392574,918135,Editor Teacher Scholar,NULL,NULL,0,NULL,NULL 67194,407860,86242,NULL,NULL,NULL,0,NULL,NULL 67195,323581,1347381,Teacher,NULL,NULL,0,NULL,NULL 67196,7464132,1347381,Teacher,NULL,NULL,0,NULL,NULL 67197,258152,671915,Nice Answer Yearling Yearling Good Answer Great Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 67198,395890,468482,NULL,NULL,NULL,0,NULL,NULL 67199,217500,1179515,NULL,NULL,NULL,0,NULL,NULL 67200,1517580,258219,Popular Question Notable Question Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 67201,46808,68687,Self-Learner,NULL,NULL,0,NULL,NULL 67202,13765,129492,Custodian Custodian Good Answer salesforce Nice Answer Enlightened Revival Good Answer Yearling Revival Revival Custodian Custodian Yearling Announcer Nice Answer Enlightened Promoter Benefactor Nice Answer Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 67203,410776,384693,Nice Answer Nice Answer Enlightened Yearling Good Answer Custodian Custodian Caucus Constituent Nice Answer Enlightened Nice Answer Notable Question Yearling Announcer Documentation User Necromancer Popular Question Caucus Custodian Unsung Hero Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 67204,1455069,779325,NULL,NULL,NULL,0,NULL,NULL 67205,25329,666670,NULL,NULL,NULL,0,NULL,NULL 67206,20907,1527196,NULL,NULL,NULL,0,NULL,NULL 67207,861676,1132748,NULL,NULL,NULL,0,NULL,NULL 67208,2535299,1466380,Popular Question,NULL,NULL,0,NULL,NULL 67209,106556,495170,Popular Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 67210,46616,86553,NULL,NULL,NULL,0,NULL,NULL 67211,1231970,1301368,Nice Answer,NULL,NULL,0,NULL,NULL 67212,128446,61980,Yearling Nice Answer Nice Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 67213,190830,791936,Notable Question,NULL,NULL,0,NULL,NULL 67214,106564,1022132,NULL,NULL,NULL,0,NULL,NULL 67215,211964,1130889,NULL,NULL,NULL,0,NULL,NULL 67216,10281,1139098,NULL,NULL,NULL,0,NULL,NULL 67217,158801,507896,NULL,NULL,NULL,0,NULL,NULL 67218,320797,167402,Nice Answer Enlightened Yearling Nice Answer Tumbleweed Popular Question Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 67219,222928,386350,Student,NULL,NULL,0,NULL,NULL 67220,931173,310447,Popular Question Yearling Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 67221,54014,490544,NULL,NULL,NULL,0,NULL,NULL 67222,53842,7186,Famous Question Nice Answer Yearling Nice Answer Popular Question sql Yearling Documentation User Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 67223,990519,617171,NULL,NULL,NULL,0,NULL,NULL 67224,204702,617171,NULL,NULL,NULL,0,NULL,NULL 67225,477517,475121,Critic Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67226,165418,557839,NULL,NULL,NULL,0,NULL,NULL 67227,99920,581683,NULL,NULL,NULL,0,NULL,NULL 67228,210135,4953,NULL,NULL,NULL,0,NULL,NULL 67229,171003,176304,Civic Duty Critic Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 67230,295247,539705,Necromancer,NULL,NULL,0,NULL,NULL 67231,321129,522768,Citizen Patrol Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Self-Learner Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Caucus Notable Question Popular Question Notable Question Good Question Popular Question Notable Question Popular Question Famous Question Caucus Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67232,554785,522768,Citizen Patrol Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Self-Learner Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Notable Question Caucus Notable Question Popular Question Notable Question Good Question Popular Question Notable Question Popular Question Famous Question Caucus Popular Question Popular Question Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67233,242096,786136,Popular Question Revival Nice Question Popular Question Yearling Popular Question Popular Question Necromancer Nice Answer Yearling Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67234,37036,390407,Notable Question Good Question Famous Question Notable Question Nice Answer Nice Answer Notable Question Yearling Nice Question Famous Question Good Question Nice Answer Enlightened Notable Question Yearling Popular Question Notable Question Yearling Favorite Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67235,292372,973715,NULL,NULL,NULL,0,NULL,NULL 67236,1636633,969672,NULL,NULL,NULL,0,NULL,NULL 67237,269238,1024592,Popular Question Famous Question Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67238,617417,850752,NULL,NULL,NULL,0,NULL,NULL 67239,6831192,1188955,NULL,NULL,NULL,0,NULL,NULL 67240,23037,897583,NULL,NULL,NULL,0,NULL,NULL 67241,270736,132542,Critic Editor Popular Question Yearling,NULL,NULL,0,NULL,NULL 67242,1711711,786216,Explainer Civic Duty Autobiographer Custodian Custodian Custodian Suffrage Vox Populi Yearling Cleanup Yearling Enthusiast Tenacious Informed Curious Tag Editor Self-Learner Electorate Yearling Good Answer Necromancer Yearling Nice Answer Documentation User Popular Question Good Answer Yearling Popular Question,NULL,pYou can listen for strongclick strong event on codedocument code and then make sure code menucontainer code is not an ancestor or the target of the clicked element by using href http api jquery com closest rel noreferrer code closest code ppIf it is not then the clicked element is outside of the code menucontainer code and you can safely hide it ppre class lang js prettyprint override code document click function event if event target closest menucontainer length if menucontainer is visible menucontainer hide code preh3Edit 2017 06 23 h3pYou can also clean up after the event listener if you plan to dismiss the menu and want to stop listening for events This function will clean up only the newly created listener preserving any other click listeners on codedocument code With ES2015 syntax ppre class lang js prettyprint override codeexport function hideOnClickOutside selector const outsideClickListener event gt if event target closest selector length if selector is visible selector hide removeClickListener const removeClickListener gt document removeEventListener click outsideClickListener document addEventListener click outsideClickListener code preh3Edit 2018 03 11 h3pFor those who don want to use jQuery Here the above code in plain vanillaJS ECMAScript6 ppre class lang js prettyprint override codefunction hideOnClickOutside element const outsideClickListener event gt if element contains event target or use event target closest selector null if isVisible element element style display none removeClickListener const removeClickListener gt document removeEventListener click outsideClickListener document addEventListener click outsideClickListener const isVisible elem gt elem amp amp elem offsetWidth elem offsetHeight elem getClientRects length source 2018 03 11 https github com jquery jquery blob master src css hiddenVisibleSelectors js code prep strongNOTE strongThis is based on Alex comment to just use code element contains event target code instead of the jQuery part ppBut codeelement closest code is now also available in all major browsers the W3C version differs bit from the jQuery one Polyfills can be found here href https developer mozilla org en US docs Web API Element closest rel noreferrer https developer mozilla org en US docs Web API Element closest This seems to work but not on mobile can this be confirmed,0,NULL,NULL 67243,301393,117579,Famous Question Yearling Notable Question Nice Question Custodian Necromancer Stellar Question Famous Question Good Answer Nice Question Yearling Popular Question Custodian Excavator Famous Question Good Question Popular Question Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 67244,230776,968140,NULL,NULL,NULL,0,NULL,NULL 67245,3965748,1267705,NULL,NULL,NULL,0,NULL,NULL 67246,376609,951933,NULL,NULL,NULL,0,NULL,NULL 67247,8671346,1008161,Curious Popular Question Teacher Popular Question Informed Popular Question Popular Question Popular Question Self-Learner Notable Question Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67248,505966,1008161,Curious Popular Question Teacher Popular Question Informed Popular Question Popular Question Popular Question Self-Learner Notable Question Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67249,296035,522498,Caucus Popular Question Organizer Yearling Enthusiast Announcer Announcer Popular Question Announcer Announcer Revival Announcer Documentation User Yearling Self-Learner Necromancer Notable Question Yearling Necromancer,NULL,pThe cleanest way ve seen of doing this is described href http git 661346 n2 nabble com Revert single commit in single file tp6064050p6064406 html rel noreferrer here ppre codegit show some commit sha1 some file git apply code prepSimilar to VonC response but using codegit show code and codegit apply code Maybe obvious to most but ensure some file includes the path to the file if there is one otherwise you ll silently patch nothing,0,NULL,NULL 67250,3402549,1104780,Necromancer Popular Question Necromancer Notable Question Popular Question Nice Answer Yearling Revival Good Answer Civic Duty Yearling Nice Question Revival Enthusiast Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 67251,608434,539260,Popular Question Famous Question Popular Question Good Question Good Question Popular Question Yearling Good Question Famous Question Yearling Favorite Question Nice Question,NULL,,0,, 67252,1048387,1250727,NULL,NULL,NULL,0,NULL,NULL 67253,355113,1521101,NULL,NULL,NULL,0,NULL,NULL 67254,300521,1533538,NULL,NULL,NULL,0,NULL,NULL 67255,35556,738785,Yearling Good Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 67256,24697,1439899,NULL,NULL,NULL,0,NULL,NULL 67257,236373,859826,NULL,NULL,NULL,0,NULL,NULL 67258,355611,93979,Nice Answer Yearling Good Question Nice Answer Notable Question Notable Question Nice Question Famous Question Good Question Notable Question Great Answer Yearling Guru Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 67259,1403570,501158,NULL,NULL,NULL,0,NULL,NULL 67260,319105,1331018,Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 67261,208706,1440281,NULL,NULL,NULL,0,NULL,NULL 67262,92103,367479,Good Answer Yearling Nice Answer Enlightened Nice Answer Yearling Guru Nice Answer Enlightened Yearling Guru,NULL,NULL,0,NULL,NULL 67263,451745,239269,Nice Answer Informed,NULL,NULL,0,NULL,NULL 67264,43155,93743,Famous Question Yearling Popular Question Good Question Revival Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 67265,410825,208285,Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 67266,77027,444375,NULL,NULL,NULL,0,NULL,NULL 67267,241519,87908,Yearling Nice Question Good Question Famous Question Nice Question Yearling Famous Question Great Question Notable Question Yearling Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 67268,9203810,629190,NULL,NULL,NULL,0,NULL,NULL 67269,1337638,629190,NULL,NULL,NULL,0,NULL,NULL 67270,153901,1364654,NULL,NULL,NULL,0,NULL,NULL 67271,48081,14521,Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 67272,903321,633169,Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 67273,38629,770127,Popular Question Favorite Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Yearling Famous Question Famous Question Good Question Famous Question css Popular Question Notable Question Notable Question Popular Question Nice Question Promoter Nice Question Popular Question Popular Question Custodian Popular Question Great Answer Great Question Popular Question Popular Question Favorite Question Nice Question Nice Answer Taxonomist Notable Question Famous Question Notable Question Yearling Famous Question Popular Question Nice Question Announcer Famous Question Popular Question Nice Question Announcer Notable Question Documentation User Famous Question Notable Question Notable Question Great Question Notable Question Necromancer Good Question Notable Question Good Question Popular Question Good Question Yearling Notable Question Popular Question Popular Question Nice Question Famous Question Notable Question Great Answer Nice Question,NULL,h2 bCross browser href http dev w3 org csswg mediaqueries width rel noreferrer code width code and href http dev w3 org csswg mediaqueries height rel noreferrer code height code values nbsp h2pre codevar Math max document documentElement clientWidth window innerWidth var Math max document documentElement clientHeight window innerHeight code preh2 codewindow innerWidth code and code innerHeight code h2ulligets href http www w3 org TR CSS2 visuren html viewport rel noreferrer CSS viewport code width code and code height code which include scrollbars lili codeinitial scale code and zoom href https github com ryanve verge issues 13 rel noreferrer variations may cause mobile values to bwrongly scale down to what PPK calls the href http www quirksmode org mobile viewports2 html rel noreferrer visual viewport and be smaller than the code code values lilizoom may cause values to be 1px off due to native rounding lili codeundefined code in IE8 li ulh2 codedocument documentElement clientWidth code and code clientHeight code h2ulliequals CSS viewport width strongminus strong scrollbar width lilimatches code width code and code height code when there is strongno strong scrollbar lili href https github com jquery jquery blob src dimensions js L12 L17 rel noreferrer same as codejQuery window width code which href https api jquery com width rel noreferrer jQuery emcalls em the browser viewport lili href http www quirksmode org mobile tableViewport html rel noreferrer available cross browser lili href https github com ryanve verge issues 22 issuecomment 341944009 rel noreferrer inaccurate if doctype is missing li ulh2Resources h2ulli href http ryanve com lab dimensions rel noreferrer Live outputs for various dimensions lili href http github com ryanve verge rel noreferrer bverge uses cross browser viewport techniques lili href http github com ryanve actual rel noreferrer bactual uses codematchMedia code to obtain precise dimensions in any unit li ul what do you mean from within an SVG document h2 bCross browser href http dev w3 org csswg mediaqueries width rel noreferrer code width code and href http dev w3 org csswg mediaqueries height rel noreferrer code height code values nbsp h2pre codevar Math max document documentElement clientWidth window innerWidth var Math max document documentElement clientHeight window innerHeight code preh2 codewindow innerWidth code and code innerHeight code h2ulligets href http www w3 org TR CSS2 visuren html viewport rel noreferrer CSS viewport code width code and code height code which include scrollbars lili codeinitial scale code and zoom href https github com ryanve verge issues 13 rel noreferrer variations may cause mobile values to bwrongly scale down to what PPK calls the href http www quirksmode org mobile viewports2 html rel noreferrer visual viewport and be smaller than the code code values lilizoom may cause values to be 1px off due to native rounding lili codeundefined code in IE8 li ulh2 codedocument documentElement clientWidth code and code clientHeight code h2ulliequals CSS viewport width strongminus strong scrollbar width lilimatches code width code and code height code when there is strongno strong scrollbar lili href https github com jquery jquery blob src dimensions js L12 L17 rel noreferrer same as codejQuery window width code which href https api jquery com width rel noreferrer jQuery emcalls em the browser viewport lili href http www quirksmode org mobile tableViewport html rel noreferrer available cross browser lili href https github com ryanve verge issues 22 issuecomment 341944009 rel noreferrer inaccurate if doctype is missing li ulh2Resources h2ulli href http ryanve com lab dimensions rel noreferrer Live outputs for various dimensions lili href http github com ryanve verge rel noreferrer bverge uses cross browser viewport techniques lili href http github com ryanve actual rel noreferrer bactual uses codematchMedia code to obtain precise dimensions in any unit li ul Does the page you tested on have DOCTYPE DOCTYPE is required for document documentElement clientHeight to be accurate Otherwise can you give some example numbers just checked in Chrome Windows desktop and Chrome iPhone and the max technique still worked Compare to actual height px from https github com ryanve actual api JavaScript string newline character javascript newline pIs code code the universal newline character sequence in Javascript for all platforms If not how do determine the character for the current environment ppI not asking about the HTML newline element code lt BR gt code asking about the newline character sequence used within JavaScript strings Checkout https www npmjs com package eol,0,NULL,NULL 67274,2536010,29762,Notable Question Tenacious Informed Nice Answer Good Answer Yearling Good Answer Yearling Nice Answer .net Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67275,83347,473688,Famous Question Nice Question Teacher,NULL,NULL,0,NULL,NULL 67276,304899,20794,Popular Question Yearling Necromancer Nice Answer Announcer Famous Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 67277,2734270,976370,NULL,NULL,NULL,0,NULL,NULL 67278,181071,976370,NULL,NULL,NULL,0,NULL,NULL 67279,2425625,603588,Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Necromancer Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67280,39306,1332312,Popular Question Yearling Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67281,108580,171278,Popular Question Notable Question Notable Question Popular Question Notable Question Nice Answer Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Good Question Populist Popular Question Yearling Notable Question Popular Question Good Answer Popular Question Popular Question Notable Question Notable Question Notable Question Custodian Famous Question Great Answer Famous Question Good Question Yearling Nice Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 67282,607789,350964,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67283,137626,367786,Popular Question Popular Question Yearling Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67284,98076,772054,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67285,63294,537554,Populist Citizen Patrol Nice Answer Necromancer Great Answer Explainer git Quorum Fanatic Necromancer Revival Necromancer Great Answer Necromancer Good Answer Necromancer Nice Answer Yearling Good Answer Popular Question Nice Answer Necromancer Caucus Announcer Nice Answer Necromancer Nice Answer Good Answer Announcer Yearling Necromancer Nice Answer Necromancer Pundit Caucus Necromancer Nice Answer Necromancer Revival Necromancer Necromancer Necromancer Necromancer,NULL,Make the current commit the only initial commit in Git repository git github git commit pI currently have local Git repository which push to Github repository ppThe local repository has 10 commits and the Github repository is synchronised duplicate of this ppWhat like to do is remove ALL the version history from the local Git repository so the current contents of the repository appear as the only commit and therefore older versions of files within the repository are not stored ppI then like to push these changes to Github ppI have investigated Git rebase but this appears to be more suited to removing specific versions Another potential solution is to delete the local repo and create new one though this would probably create lot of work ppETA There are specific directories files that are untracked if possible would like to maintain the untracking of these files and this How to squash all git commits into one https stackoverflow com questions 1657017 how to squash all git commits into one h3One Liner h3pre codegit ls files grep code preh3Use Aliases h3pIMHO codegit hidden code is better for files marked as code assume unchanged code ppre codegit config global alias hidden git ls files grep code prepHere list of related aliases have in code gitconfig code ppre code alias hide update index assume unchanged unhide update index no assume unchanged unhide all update index really refresh hidden git ls files grep ignored git status ignored grep code prepTo make it work in strongsubdirectories strong and support strongarguments strong ppre code hidden git GIT PREFIX ls files grep ignored git GIT PREFIX status ignored grep code prepFor example ppre code cd target git ignored classes code preh3About File Status h3pFor me most emhidden em files are marked with flag codeh code though there re actually several other flags according to the manual of codegit ls files code strong code code strong pblockquotepre code Similar to but use lowercase letters for files that are marked as assume unchanged see git update index code pre blockquotepAbout codegit ls files code strong code code strong pblockquotepre codeThis option identifies the file status with the following tags followed by space at the start of each line cachedS skip worktreeM unmergedR removed deletedC modified changedK to be killed other code pre blockquote updated thank you,1,NULL,Can get list of files marked assume unchanged git pWhat have marked as code assume unchanged code Is there any way to find out what ve tucked away using that option ppI ve dug through the code git code directory and don see anything that looks like what expect but it must be somewhere ve forgotten what marked this way few weeks ago and now need to document those details for future developers h3One Liner h3pre codegit ls files grep code preh3Use Aliases h3pIMHO codegit hidden code is better for files marked as code assume unchanged code ppre codegit config global alias hidden git ls files grep code prepHere list of related aliases have in code gitconfig code ppre code alias hide update index assume unchanged unhide update index no assume unchanged unhide all update index really refresh hidden git ls files grep ignored git status ignored grep code prepTo make it work in strongsubdirectories strong and support strongarguments strong ppre code hidden git GIT PREFIX ls files grep ignored git GIT PREFIX status ignored grep code prepFor example ppre code cd target git ignored classes code preh3About File Status h3pFor me most emhidden em files are marked with flag codeh code though there re actually several other flags according to the manual of codegit ls files code strong code code strong pblockquotepre code Similar to but use lowercase letters for files that are marked as assume unchanged see git update index code pre blockquotepAbout codegit ls files code strong code code strong pblockquotepre codeThis option identifies the file status with the following tags followed by space at the start of each line cachedS skip worktreeM unmergedR removed deletedC modified changedK to be killed other code pre blockquote 67286,420146,970234,NULL,NULL,NULL,0,NULL,NULL 67287,1709537,970234,NULL,NULL,NULL,0,NULL,NULL 67288,237498,1006325,NULL,NULL,NULL,0,NULL,NULL 67289,30865,244843,Yearling Popular Question Good Question Nice Question Popular Question Good Question Nice Question Notable Question Famous Question Yearling Notable Question Popular Question Nice Question Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 67290,565620,865932,NULL,NULL,NULL,0,NULL,NULL 67291,82835,64257,Great Question Yearling Notable Question Popular Question Popular Question Necromancer Yearling Nice Answer Enlightened Good Answer Notable Question Announcer Announcer Great Answer Stellar Question Notable Question Yearling Necromancer Nice Answer Good Question,NULL,NULL,0,NULL,NULL 67292,416686,539956,NULL,NULL,NULL,0,NULL,NULL 67293,147328,454033,NULL,NULL,NULL,0,NULL,NULL 67294,1520083,1261560,Yearling Revival Popular Question Popular Question Nice Question Nice Answer Curious Critic,NULL,NULL,0,NULL,NULL 67295,50846,1069354,NULL,NULL,NULL,0,NULL,NULL 67296,45117,813758,Civic Duty Popular Question Popular Question Yearling Nice Answer Enlightened Notable Question Yearling Caucus Good Answer Nice Question Enthusiast Popular Question Yearling,NULL,NULL,0,NULL,NULL 67297,15094,691580,NULL,NULL,NULL,0,NULL,NULL 67298,392671,988380,NULL,NULL,NULL,0,NULL,NULL 67299,523846,945940,NULL,NULL,NULL,0,NULL,NULL 67300,34393,312208,Guru Yearling Nice Answer Enlightened javascript Good Answer Nice Answer Nice Answer Enlightened Census Nice Answer Good Answer Yearling Notable Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Curious Nice Answer Enlightened Census html Good Answer Yearling jquery Nice Answer Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 67301,23385,1349804,Yearling,NULL,NULL,0,NULL,NULL 67302,490194,1376082,Tumbleweed Popular Question Informed Notable Question,NULL,NULL,0,NULL,NULL 67303,2182148,1195014,NULL,NULL,NULL,0,NULL,NULL 67304,168294,684298,Teacher Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 67305,534295,232456,Nice Question Yearling Popular Question Self-Learner Nice Question Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67306,5064975,232456,Nice Question Yearling Popular Question Self-Learner Nice Question Famous Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67307,134093,347425,Popular Question,NULL,NULL,0,NULL,NULL 67308,252954,425517,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67309,168134,412350,Yearling,NULL,NULL,0,NULL,NULL 67310,419546,53721,Self-Learner,NULL,NULL,0,NULL,NULL 67311,165460,804932,NULL,NULL,NULL,0,NULL,NULL 67312,316158,179506,Notable Question Census,NULL,NULL,0,NULL,NULL 67313,532919,592900,NULL,NULL,NULL,0,NULL,NULL 67314,1174181,767799,Popular Question,NULL,NULL,0,NULL,NULL 67315,35266,1439126,NULL,NULL,NULL,0,NULL,NULL 67316,103047,720076,NULL,NULL,NULL,0,NULL,NULL 67317,29143,589500,NULL,NULL,NULL,0,NULL,NULL 67318,982073,293205,Yearling Popular Question Nice Question Famous Question Notable Question Nice Question Notable Question Good Question Nice Question Notable Question Nice Question Yearling Notable Question Famous Question Good Answer Notable Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67319,187882,1095947,NULL,NULL,NULL,0,NULL,NULL 67320,186636,365218,Yearling Excavator Necromancer Nice Question Announcer Notable Question Custodian Nice Answer Yearling Caucus Citizen Patrol,NULL,pNow the accepted way to set the humanized names and custom error messages is to href http guides rubyonrails org i18n html translations for active record models rel noreferrer use locales ppre code config locales en ymlen activerecord attributes user email mail address errors models user attributes email blank is required code prepNow the humanized name emand em the presence validation message for the email attribute have been changed ppValidation messages can be set for specific model attribute model attribute or globally http stackoverflow com 40254247 365218,0,NULL,NULL 67321,59923,538378,NULL,NULL,NULL,0,NULL,NULL 67322,170943,232018,Yearling Notable Question Yearling Notable Question Good Answer,NULL,NULL,0,NULL,NULL 67323,18288,614361,NULL,NULL,NULL,0,NULL,NULL 67324,44711,1326114,NULL,NULL,NULL,0,NULL,NULL 67325,3216,792608,NULL,NULL,NULL,0,NULL,NULL 67326,39324,591601,NULL,NULL,NULL,0,NULL,NULL 67327,1354503,1351732,NULL,NULL,NULL,0,NULL,NULL 67328,61538,1353698,NULL,NULL,NULL,0,NULL,NULL 67329,2436158,321555,Nice Question Notable Question Necromancer Nice Answer Famous Question Nice Answer Necromancer Yearling Notable Question Necromancer Necromancer Necromancer Popular Question Notable Question Popular Question Good Answer css Good Question Popular Question Yearling Famous Question Necromancer Necromancer Famous Question Cleanup Nice Answer Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 67330,135896,701674,Yearling,NULL,NULL,0,NULL,NULL 67331,443681,1481303,Popular Question Yearling Popular Question Curious Nice Answer Yearling Commentator Nice Answer Enlightened Yearling Notable Question Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 67332,9631550,1481303,Popular Question Yearling Popular Question Curious Nice Answer Yearling Commentator Nice Answer Enlightened Yearling Notable Question Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 67333,260528,849673,NULL,NULL,NULL,0,NULL,NULL 67334,11630,148036,NULL,NULL,NULL,0,NULL,NULL 67335,21214,808310,Curious Popular Question,NULL,NULL,0,NULL,NULL 67336,199796,378247,NULL,NULL,NULL,0,NULL,NULL 67337,41161,351445,NULL,NULL,NULL,0,NULL,NULL 67338,638657,721765,NULL,NULL,NULL,0,NULL,NULL 67339,800086,1389817,Supporter Student Critic Yearling,NULL,NULL,0,NULL,NULL 67340,5122691,1389817,Supporter Student Critic Yearling,NULL,NULL,0,NULL,NULL 67341,4290527,1423409,Yearling,NULL,NULL,0,NULL,NULL 67342,829019,1423409,Yearling,NULL,NULL,0,NULL,NULL 67343,1164958,887541,NULL,NULL,NULL,0,NULL,NULL 67344,49010,875950,NULL,NULL,NULL,0,NULL,NULL 67345,95157,25450,Good Answer Good Answer Nice Question Popular Question Notable Question Good Answer Good Answer Great Question Necromancer Nice Answer Announcer Yearling Custodian Nice Answer Good Answer Nice Answer Nice Question Good Answer Good Answer Great Answer Guru Nice Answer Nice Answer Enlightened Notable Question Popular Question Yearling Notable Question Famous Question Populist Good Answer Nice Answer Popular Question Good Answer Revival Yearling Revival Populist Nice Answer Enlightened Good Question,NULL,NULL,0,NULL,NULL 67346,127584,775938,Popular Question Notable Question Popular Question Notable Question Caucus Famous Question Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 67347,434727,611395,Student,NULL,NULL,0,NULL,NULL 67348,567329,742600,Nice Answer Yearling Good Answer Yearling Yearling Yearling Good Answer Caucus Constituent Yearling Census Yearling Great Answer Commentator Custodian Necromancer Popular Question,NULL,NULL,0,NULL,NULL 67349,275810,464988,Good Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer Guru Nice Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Question Good Answer Guru Good Answer Nice Answer Enlightened Yearling Notable Question Nice Answer Nice Answer Enlightened Good Answer Notable Question Nice Answer Enlightened Caucus Nice Answer Popular Question arrays file Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Nice Answer Custodian python Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Caucus Popular Question Self-Learner Announcer Yearling Nice Answer Documentation User Great Answer Guru Good Answer Good Answer Guru Nice Answer Enlightened Census Nice Answer Good Answer Nice Answer Famous Question Nice Answer Caucus Nice Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Guru Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer android-intent Necromancer Yearling Nice Answer Enlightened Announcer Good Answer Guru,NULL,NULL,0,NULL,NULL 67350,487907,1431187,NULL,NULL,NULL,0,NULL,NULL 67351,306842,971000,NULL,NULL,NULL,0,NULL,NULL 67352,650993,399431,Revival Revival Necromancer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 67353,810355,616439,NULL,NULL,NULL,0,NULL,NULL 67354,286031,477345,Supporter Notable Question,NULL,NULL,0,NULL,NULL 67355,47900,1080702,NULL,NULL,NULL,0,NULL,NULL 67356,1222305,1262239,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67357,10266793,1262239,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67358,248940,321318,Yearling Favorite Question Great Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67359,212102,247668,Custodian,NULL,NULL,0,NULL,NULL 67360,436677,434402,Popular Question Revival Yearling Guru Notable Question Yearling Announcer Popular Question Self-Learner Yearling Notable Question,NULL,NULL,0,NULL,NULL 67361,572212,481507,NULL,NULL,NULL,0,NULL,NULL 67362,143701,458947,Revival,NULL,NULL,0,NULL,NULL 67363,495692,498220,NULL,NULL,NULL,0,NULL,NULL 67364,199036,705597,NULL,NULL,NULL,0,NULL,NULL 67365,327697,229088,Civic Duty Nice Question Necromancer Caucus Constituent Yearling Announcer Yearling Custodian Custodian,NULL,pI think the preg replace function is the simpliest solution ppAs href https stackoverflow com 12807176 229088 comment17320341 12807176 EaterOfCode suggests read the href http en wikipedia org wiki Emoji rel noreferrer wiki page and coded new regex since none of SO or other websites answers seemed to work for Instagram photo captions API returning format Note identifier is mandatory to match unicode chars ppre codepublic static function removeEmoji text clean text Match Emoticons regexEmoticons 1F600 1F64F clean text preg replace regexEmoticons text Match Miscellaneous Symbols and Pictographs regexSymbols 1F300 1F5FF clean text preg replace regexSymbols clean text Match Transport And Map Symbols regexTransport 1F680 1F6FF clean text preg replace regexTransport clean text Match Miscellaneous Symbols regexMisc 2600 26FF clean text preg replace regexMisc clean text Match Dingbats regexDingbats 2700 27BF clean text preg replace regexDingbats clean text return clean text code prepThe function does not remove all emojis since there are many more but you get the point ppPlease refer to href http unicode org emoji charts full emoji list html rel noreferrer unicode org full emoji list thanks href https stackoverflow com questions 12807176 php writing simple removeemoji function comment67832624 12824140 Epoc ve posted verbose function for the sake of clarity pSince this question is getting lot of views and the tutorial linked in the most voted answer appears to be offline took the time to clean up this script ppSee it live here kbd href https jsfiddle net Lvwh3box rel noreferrer JSFiddle kbd ppJavaScript ppre code function var element follow scroll originalY element offset top Space between element and top of screen when scrolling var topMargin 20 Should probably be set in CSS but here just for emphasis element css position relative window on scroll function event var scrollTop window scrollTop element stop false false animate top scrollTop lt originalY scrollTop originalY topMargin 300 jQuery code pre Easy to implement,0,NULL,NULL 67366,965318,588709,Teacher Editor Revival Revival Popular Question,NULL,pYou need to delete the Tensorflow session to avoid that message The simplest probably is to use codewith code statement ppre codefrom keras import backend as Kdef main with get session train classify code pre this does not work for me,0,NULL,NULL 67367,11323547,1267167,NULL,NULL,NULL,0,NULL,NULL 67368,212165,1403198,NULL,NULL,NULL,0,NULL,NULL 67369,664341,683468,NULL,NULL,NULL,0,NULL,NULL 67370,250736,562465,Yearling Notable Question Notable Question Custodian Civic Duty Benefactor Inquisitive Yearling Popular Question Notable Question Necromancer Notable Question Famous Question Famous Question Popular Question Good Question Nice Answer Yearling Famous Question Popular Question Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 67371,3331938,562465,Yearling Notable Question Notable Question Custodian Civic Duty Benefactor Inquisitive Yearling Popular Question Notable Question Necromancer Notable Question Famous Question Famous Question Popular Question Good Question Nice Answer Yearling Famous Question Popular Question Nice Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 67372,201549,1283520,NULL,NULL,NULL,0,NULL,NULL 67373,3651,715906,NULL,NULL,NULL,0,NULL,NULL 67374,105010,234908,NULL,NULL,NULL,0,NULL,NULL 67375,7653,390808,Popular Question Popular Question Yearling Documentation Beta Caucus Constituent Good Answer Cleanup Good Answer Custodian Custodian Nice Answer Yearling Caucus Documentation User Nice Answer Enlightened Popular Question Self-Learner Announcer Caucus Nice Question Nice Answer Enlightened Yearling Good Answer Notable Question Guru,NULL,NULL,0,NULL,NULL 67376,53873,746804,Nice Answer Necromancer Necromancer Yearling Nice Answer Good Answer Necromancer Necromancer Great Answer Custodian Necromancer Disciplined Nice Answer Nice Answer Curious Yearling Nice Answer Nice Answer Popular Question Famous Question Necromancer Caucus Yearling Good Answer Great Answer,NULL,h2Extension for Swift h2pA more general solution is the following extension which works with Swift amp iOS ppre codeextension Double Rounds the double to decimal places value func roundToPlaces places Int gt Double let divisor pow 10 Double places return round self divisor divisor code prep br ph2Extension for Swift h2pIn Swift coderound code is replaced by coderounded code ppre codeextension Double Rounds the double to decimal places value func rounded toPlaces places Int gt Double let divisor pow 10 Double places return self divisor rounded divisor code prep br Example which returns Double rounded to decimal places ppre codelet Double 123456789 roundToPlaces becomes 1235 under Swift 2let Double 123456789 rounded toPlaces Swift version code pre updated the solution and added an extension for Swift,1,How to use Process in Swift for Linux swift ubuntu swift3 pThe following function executes process in Swift on macOS But if run the same code in Ubuntu get the error that codeProcess code is an unresolved identifier ppHow do run process task in Swift for Ubuntu and get its output ppre codeimport Foundation runs Shell command with arguments and returns the output or class func shell command String args String gt String let task Process task launchPath command task arguments args let pipe Pipe task standardOutput pipe task launch let data pipe fileHandleForReading readDataToEndOfFile let output String String data data encoding String Encoding utf8 task waitUntilExit if let output output if output isEmpty remove whitespaces and newline from start and end return output trimmingCharacters in whitespacesAndNewlines return code pre,NULL 67377,416848,494176,NULL,NULL,NULL,0,NULL,NULL 67378,296432,1412988,NULL,NULL,NULL,0,NULL,NULL 67379,585838,656984,Necromancer Yearling Citizen Patrol Nice Answer Enlightened Yearling Necromancer Revival Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 67380,219437,355017,NULL,NULL,NULL,0,NULL,NULL 67381,106243,103202,Nice Answer Nice Answer cakephp Yearling Popular Question Famous Question Popular Question Necromancer Nice Question Yearling Popular Question Nice Answer Good Answer Notable Question Census Guru Notable Question Popular Question Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67382,4695,585016,NULL,NULL,NULL,0,NULL,NULL 67383,417744,499631,Popular Question Good Question Yearling Caucus Popular Question Revival Nice Question Caucus Yearling Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 67384,509547,318575,Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 67385,915221,1007923,Popular Question,NULL,NULL,0,NULL,NULL 67386,105095,449058,Announcer Announcer,NULL,NULL,0,NULL,NULL 67387,1510811,1173119,NULL,NULL,NULL,0,NULL,NULL 67388,23824,598057,Necromancer Announcer Notable Question Necromancer Announcer Notable Question Popular Question Good Answer Announcer Revival Good Answer Revival Strunk & White Fanatic Good Question Popular Question ios Popular Question Notable Question Necromancer Favorite Question Necromancer Necromancer Popular Question Necromancer Popular Question Guru Yearling Popular Question Announcer Famous Question Popular Question Announcer Revival Nice Question Revival Announcer Announcer Announcer Nice Answer Necromancer Notable Question Yearling Popular Question Notable Question Necromancer Census Notable Question Nice Answer Necromancer Popular Question Caucus Notable Question Popular Question Necromancer Nice Answer Famous Question Great Answer Announcer Notable Question Yearling Announcer,NULL,Creating iOS OSX Frameworks is it necessary to codesign them before distributing to other developers ios code signing ios frameworks pI am learning how to create iOS and OSX frameworks Let take iOS for example the following steps work for me so far pollixcodebuild framework using sdk iphonesimulator and Build action lilixcodebuild framework using sdk iphoneos and Build action liliUse lipo tool to create universal binary so that codelipo info code produces expected li olblockquote pArchitectures in the fat file Foo framework Foo are i386 x86 64 armv7 arm64 blockquotepThe questions are polli pI read that my framework can be re signed by developer who is using it Code Sign on Copy but don understand what are preconditions for it strongshould add codesign step to codesign that universal binary with my signing identity before distributing it to other developers strong lili pif previous is positive should use my iPhone Distribution identity or iPhone Developer is enough so that my framework being part of some iOS project passes all kinds of validations especially App Store validation li olpBackground for my answer is the CodeSign error code signing is required for product type Framework in SDK iOS which have seen on number of third party frameworks and href https github com Carthage Carthage issues 235 Carthage 235 or code object is not signed at all one example issue reported on href https github com realm realm cocoa issues 1998 Realm 1998 ppSo want to be sure that users of my frameworks will not encounter any codesigning issues when they use them ppP This question gets even more interesting when applied not to single developer but to an organization which is framework vendor this is one way of how do it https stanislaw github io 2015 11 23 how to build static framework using make html,0,NULL,NULL 67389,313733,1336841,Nice Answer Enlightened Yearling Popular Question Nice Answer Nice Answer Enlightened java Good Answer Enthusiast Yearling Guru Notable Question Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 67390,352060,1053756,Popular Question Revival Nice Answer Nice Answer Enlightened Yearling Good Answer Custodian ruby-on-rails Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 67391,196085,56711,Critic Yearling Notable Question Good Answer Popular Question Yearling Famous Question Notable Question Popular Question Yearling Great Question Popular Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67392,77897,1325037,Yearling Scholar Yearling Student Guru Yearling,NULL,NULL,0,NULL,NULL 67393,1522303,742583,NULL,NULL,NULL,0,NULL,NULL 67394,236287,1035826,NULL,NULL,NULL,0,NULL,NULL 67395,537844,1495923,NULL,NULL,NULL,0,NULL,NULL 67396,1875562,279481,Notable Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 67397,385341,420787,Nice Question Peer Pressure Nice Answer Enlightened Yearling Nice Answer Popular Question Announcer Notable Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Inquisitive Famous Question Yearling Nice Question Documentation User Popular Question Popular Question Good Answer Popular Question Yearling Popular Question,NULL,emThe following is an excerpt from href http www strichnet com using git with 3d games rel noreferrer my personal blog em ph2Using Git with 3D Games h2p strongUpdate Oct 2015 strong GitHub has since released plugin for Git called href https git lfs github com rel noreferrer Git LFS that directly deals with the below problem You can now easily and efficiently version large binary files ppGit can work fine with 3D games out of the box However the main caveat here is that versioning large nbsp MB media files can be problem over the long term as your commit history bloats We have solved this potential issue in our projects by only versioning the binary asset when it is considered final Our 3D artists use href http en wikipedia org wiki Dropbox 28service 29 rel noreferrer Dropbox to work on href https en wikipedia org wiki Work in process rel noreferrer WIP assets both for the reason above and because it strongmuch strong faster and simpler not many artists will actively want to use Git ph2Git Workflow h2pYour Git workflow is very much something you need to decide for yourself given your own experiences as team and how you work together However would strongly recommend the appropriately named strongGit Flow strong methodology href http nvie com posts successful git branching model rel noreferrer as described by the original author here ppI won go into too much depth here on how the methodology works as the author describes it perfectly and in quite few words too so it easy to get through have been using with my team for awhile now and it the best workflow we ve tried so far ph2Git GUI Client Application h2pThis is really personal preference here as there are quite few options in terms of Git GUI or whether to use GUI at all But would like to suggest the free href http www sourcetreeapp com rel noreferrer SourceTree application as it plugs in perfectly with the Git Flow extension Read the href http blog sourcetreeapp com 2012 08 01 smart branching with sourcetree and git flow rel noreferrer SourceTree tutorial here on implementing the Git Flow methodology in their application ph2Unity3D Ignore Folders h2pFor an up to date version checkout href https github com github gitignore blob master Unity gitignore rel noreferrer Github maintained Unity gitignore file without OS specifics ppre code Unity generated Temp Library Visual Studio MonoDevelop generated ExportedObj obj svd userprefs csproj pidb suo sln user unityproj booproj OS generated DS Store DS Store Spotlight V100 Trashesehthumbs dbThumbs db code preh2Unity3D Settings h2pFor versions of Unity 3D v4 and up polli Skip this step in v4 and up Enable codeExternal code option in codeUnity Preferences Packages Repository code liliOpen the codeEdit code menu and pick codeProject Settings Editor code olliSwitch codeVersion Control Mode code to codeVisible Meta Files code liliSwitch codeAsset Serialization Mode code to codeForce Text code li ol liliSave the scene and project from codeFile code menu li olhrh2Want you migrate your existing repo to LFS h2pCheck out my blog post for steps href http www strichnet com migrating your project to git lfs rel noreferrer on how to do it here ph2Additional Configuration h2pOne of the few major annoyances one has with using Git with Unity3D projects is that Git doesn care about directories and will happily leave empty directories around after removing files from them Unity3D will make meta files for these directories and can cause bit of battle between team members when Git commits keep adding and removing these meta files pp href https github com strich git dir cleaner for unity3d rel noreferrer Add this Git post merge hook to the code git hooks code folder for repositories with Unity3D projects in them After any Git pull merge it will look at what files have been removed check if the directory it existed in is empty and if so delete it Nope They get regenerated by Unity as required,0,NULL,NULL 67398,973,925881,Popular Question Good Question Popular Question Yearling Famous Question Popular Question Famous Question Notable Question Famous Question Census Nice Question Caucus Constituent Yearling Popular Question Popular Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 67399,2503262,925881,Popular Question Good Question Popular Question Yearling Famous Question Popular Question Famous Question Notable Question Famous Question Census Nice Question Caucus Constituent Yearling Popular Question Popular Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 67400,123483,392253,NULL,NULL,NULL,0,NULL,NULL 67401,1038884,59283,NULL,NULL,NULL,0,NULL,NULL 67402,788960,59283,NULL,NULL,NULL,0,NULL,NULL 67403,9317,1282239,NULL,NULL,NULL,0,NULL,NULL 67404,2020216,1460556,NULL,NULL,NULL,0,NULL,NULL 67405,912526,875667,Yearling Critic Informed Custodian Announcer Caucus Necromancer Caucus Nice Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67406,63337,699670,NULL,NULL,NULL,0,NULL,NULL 67407,2367101,283485,NULL,NULL,NULL,0,NULL,NULL 67408,381911,1134435,NULL,NULL,NULL,0,NULL,NULL 67409,219149,572953,NULL,NULL,NULL,0,NULL,NULL 67410,1265046,1305056,NULL,NULL,NULL,0,NULL,NULL 67411,62593,1417451,Excavator Citizen Patrol Yearling Commentator Explainer Critic,NULL,NULL,0,NULL,NULL 67412,308879,1558431,NULL,NULL,NULL,0,NULL,NULL 67413,516496,1235262,Notable Question Yearling Good Answer Famous Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 67414,207023,864540,Enthusiast Fanatic,NULL,NULL,0,NULL,NULL 67415,379041,407052,NULL,NULL,NULL,0,NULL,NULL 67416,200899,563882,NULL,NULL,NULL,0,NULL,NULL 67417,118379,1095381,NULL,NULL,NULL,0,NULL,NULL 67418,500748,781609,NULL,NULL,NULL,0,NULL,NULL 67419,74634,763992,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 67420,2976215,1221887,Yearling Yearling Caucus Documentation User Caucus,NULL,NULL,0,NULL,NULL 67421,119079,833584,NULL,NULL,NULL,0,NULL,NULL 67422,119489,961601,Yearling Popular Question Popular Question Self-Learner Notable Question Yearling,NULL,NULL,0,NULL,NULL 67423,34497,1180271,NULL,NULL,NULL,0,NULL,NULL 67424,160152,632150,Student Documentation User Yearling Commentator Yearling Scholar Nice Answer Enlightened Revival Self-Learner,NULL,NULL,0,NULL,NULL 67425,308754,1098724,NULL,NULL,NULL,0,NULL,NULL 67426,359647,582704,Yearling Nice Question Guru Nice Answer Caucus Yearling Nice Question Enthusiast Good Answer Popular Question Yearling Investor Popular Question Necromancer,NULL,NULL,0,NULL,NULL 67427,455114,1032118,NULL,NULL,NULL,0,NULL,NULL 67428,22661,396862,Custodian Revival python Excavator Notable Question Yearling Good Answer Necromancer Yearling Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 67429,571084,312766,NULL,NULL,NULL,0,NULL,NULL 67430,420,1055840,NULL,NULL,NULL,0,NULL,NULL 67431,640955,713518,Nice Answer Enlightened Good Answer Yearling Custodian Custodian Guru Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 67432,84092,764334,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 67433,1476983,421755,Necromancer Yearling,NULL,NULL,0,NULL,NULL 67434,3001578,421755,Necromancer Yearling,NULL,NULL,0,NULL,NULL 67435,232000,722456,Good Question Famous Question Supporter Yearling Yearling,NULL,NULL,0,NULL,NULL 67436,96238,1167833,Popular Question Popular Question Nice Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 67437,380859,517159,NULL,NULL,NULL,0,NULL,NULL 67438,255902,1599,Nice Answer Enlightened Announcer Famous Question Yearling Nice Answer Nice Question Announcer Yearling Guru Yearling,NULL,pYou probably want the href http docs djangoproject com en dev ref templates builtins with rel noreferrer with template tag ppre code with World as name lt html gt lt div gt Hello name lt div gt lt html gt endwith code prep strongEDIT strong ppThe proper way to use href https docs djangoproject com en stable ref templates builtins with rel noreferrer the with tag is now older format is still supported ppre code with name World greeting Hello lt html gt lt div gt greeting name lt div gt lt html gt endwith code pre If you need to declare list use make list https docs djangoproject com en ref templates builtins make list,0,NULL,NULL 67439,56484,809067,Popular Question Commentator Nice Question,NULL,NULL,0,NULL,NULL 67440,66564,60934,Yearling Good Answer Yearling Yearling Organizer Tag Editor,NULL,pI think lucene syntax is supported so pp codehttp localhost 9200 foo search pretty true amp code ppsize defaults to 10 so you may also need code amp size BIGNUMBER code to get more than 10 items where BIGNUMBER equals number you believe is bigger than your dataset ppBUT elasticsearch documentation href https www elastic co guide en elasticsearch reference current search request search type html rel noreferrer suggests for large result sets using the scan search type ppEG ppre codecurl XGET localhost 9200 foo search search type scan amp scroll 10m amp size 50 query match all code prepand then keep requesting as per the documentation link above suggests ppEDIT codescan code Deprecated in pp codescan code does not provide any benefits over regular codescroll code request sorted by code doc code href https www elastic co guide en elasticsearch reference current search request search type html scan rel noreferrer link to elastic docs spotted by roussy thanks have added edit to answer,0,NULL,NULL 67441,142421,460267,NULL,NULL,NULL,0,NULL,NULL 67442,1220133,851712,NULL,NULL,NULL,0,NULL,NULL 67443,1353249,1448085,NULL,NULL,NULL,0,NULL,NULL 67444,900389,1561004,Autobiographer,NULL,NULL,0,NULL,NULL 67445,78444,4916,Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Great Answer Guru Great Question Nice Answer Enlightened Nice Answer Yearling Favorite Question Notable Question Notable Question Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 67446,228008,938263,Popular Question,NULL,NULL,0,NULL,NULL 67447,322453,641700,Famous Question,NULL,NULL,0,NULL,NULL 67448,36570,859944,NULL,NULL,NULL,0,NULL,NULL 67449,90094,20906,Commentator,NULL,NULL,0,NULL,NULL 67450,177224,111,Yearling Caucus Good Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67451,90107,709346,NULL,NULL,NULL,0,NULL,NULL 67452,1120385,1343951,NULL,NULL,NULL,0,NULL,NULL 67453,428069,916969,Popular Question Curious Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67454,1983,1436313,Notable Question Necromancer Yearling Popular Question Tumbleweed Peer Pressure Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 67455,25573,282285,NULL,NULL,NULL,0,NULL,NULL 67456,844915,782662,Informed,NULL,NULL,0,NULL,NULL 67457,1402797,1254209,NULL,NULL,NULL,0,NULL,NULL 67458,98922,548222,NULL,NULL,NULL,0,NULL,NULL 67459,336902,621603,NULL,NULL,NULL,0,NULL,NULL 67460,137842,693066,NULL,NULL,NULL,0,NULL,NULL 67461,343676,483997,Investor Necromancer Editor Tumbleweed,NULL,NULL,0,NULL,NULL 67462,2298200,1553002,NULL,NULL,NULL,0,NULL,NULL 67463,376465,1455265,NULL,NULL,NULL,0,NULL,NULL 67464,234942,1123778,NULL,NULL,NULL,0,NULL,NULL 67465,143179,205450,NULL,NULL,NULL,0,NULL,NULL 67466,927532,318673,Necromancer Yearling Necromancer Nice Answer Commentator Yearling Good Answer,NULL,pre codestat git FETCH HEAD code prepWill give you unix timestamp of the last modification of that file Git writes the FETCH HEAD file every time you pull or fetch even if there was nothing to pull this is actually the answer came to see have cron running git pull and actually want to know whether it ran without looking at sys cron logs,0,NULL,NULL 67467,825773,325848,NULL,NULL,NULL,0,NULL,NULL 67468,135662,808871,NULL,NULL,NULL,0,NULL,NULL 67469,771565,1107413,Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67470,311273,733537,Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67471,466190,1044790,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 67472,184571,1566691,NULL,NULL,NULL,0,NULL,NULL 67473,514718,768104,Popular Question Yearling,NULL,NULL,0,NULL,NULL 67474,14618,785807,Critic Commentator Supporter,NULL,NULL,0,NULL,NULL 67475,10541,1477714,Notable Question Yearling Nice Question Great Question Yearling Popular Question Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 67476,387902,1021571,NULL,NULL,NULL,0,NULL,NULL 67477,138538,339036,Famous Question Nice Question Yearling Notable Question Nice Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 67478,306978,538191,Popular Question Popular Question Popular Question Nice Question Famous Question Notable Question Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Famous Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67479,1198199,1251910,Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 67480,179337,611426,NULL,NULL,NULL,0,NULL,NULL 67481,25526,994569,NULL,NULL,NULL,0,NULL,NULL 67482,724636,219118,Good Answer Guru Nice Answer Enlightened Good Answer css Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Yearling Guru Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer Good Answer Yearling Tumbleweed Good Answer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 67483,915158,1035444,NULL,NULL,NULL,0,NULL,NULL 67484,4705913,829419,NULL,NULL,NULL,0,NULL,NULL 67485,220622,254954,Yearling Nice Answer Yearling Enthusiast Nice Answer Enlightened Nice Answer Enlightened Yearling Revival,NULL,NULL,0,NULL,NULL 67486,367228,593709,Good Answer Popular Question Great Answer Yearling Announcer Announcer Announcer android-layout Nice Answer Enlightened Nice Answer Announcer Announcer Guru Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Guru Good Answer Announcer Caucus Good Answer Constituent Nice Answer Enlightened Good Answer Yearling Enlightened Nice Answer Census Good Answer Nice Answer Enlightened Announcer Announcer Announcer Announcer Guru Caucus Nice Answer Enlightened Guru Announcer Publicist Announcer Announcer Great Answer Announcer Guru Nice Answer Enlightened Nice Answer Announcer Yearling Announcer Caucus Good Answer Announcer Announcer Guru Announcer Announcer Announcer Announcer Announcer Guru,NULL,NULL,0,NULL,NULL 67487,68100,82054,Yearling Revival Popular Question Popular Question Yearling Nice Question Notable Question Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 67488,444816,492817,NULL,NULL,NULL,0,NULL,NULL 67489,358512,1449084,NULL,NULL,NULL,0,NULL,NULL 67490,677682,629310,NULL,NULL,NULL,0,NULL,NULL 67491,165385,814446,Notable Question Nice Question Yearling Nice Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67492,168977,371538,NULL,NULL,NULL,0,NULL,NULL 67493,1276316,542532,Cleanup Revival Announcer Revival Necromancer android Yearling Yearling Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67494,92232,949289,Critic Organizer Caucus Yearling Nice Answer Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 67495,6216,433929,Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 67496,889062,747858,NULL,NULL,NULL,0,NULL,NULL 67497,181292,556111,NULL,NULL,NULL,0,NULL,NULL 67498,336070,665668,NULL,NULL,NULL,0,NULL,NULL 67499,14535,75267,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 67500,836233,1043241,NULL,NULL,NULL,0,NULL,NULL 67501,105237,495838,Custodian Custodian Custodian Citizen Patrol Notable Question Informed Necromancer Yearling Nice Answer Popular Question Self-Learner Good Answer Popular Question Necromancer Popular Question Popular Question Documentation User Yearling Necromancer Notable Question Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 67502,405269,725263,php Yearling Scholar Caucus Constituent Nice Answer Great Answer Popular Question Yearling Caucus Custodian Excavator Custodian Nice Answer Yearling,NULL,pMaybe you are trying to set it in Apache codephp ini code but your CLI Command Line Interface codephp ini code is not good ppFind your codephp ini code file with the following command ppre codephp grep php ini code prepAnd then search for codedate timezone code and set it to code Europe Amsterdam code all valid timezone will be found here href http php net manual en timezones php http php net manual en timezones php ppAnother way if the other does not work search for the file codeAppKernel php code which should be under the folder codeapp code of your emSymfony em project directory Overwrite the code construct code function below in the class codeAppKernel code ppre code lt php class AppKernel extends Kernel Other methods and variables Append this init function below public function construct environment debug date default timezone set Europe Paris parent construct environment debug code pre Thanks have added pMaybe you are trying to set it in Apache codephp ini code but your CLI Command Line Interface codephp ini code is not good ppFind your codephp ini code file with the following command ppre codephp grep php ini code prepAnd then search for codedate timezone code and set it to code Europe Amsterdam code all valid timezone will be found here href http php net manual en timezones php http php net manual en timezones php ppAnother way if the other does not work search for the file codeAppKernel php code which should be under the folder codeapp code of your emSymfony em project directory Overwrite the code construct code function below in the class codeAppKernel code ppre code lt php class AppKernel extends Kernel Other methods and variables Append this init function below public function construct environment debug date default timezone set Europe Paris parent construct environment debug code pre exactly don where is the bin php of xampp on mac please try to find it should be in the directory of xampp run DIR XAMPP bin php pMaybe you are trying to set it in Apache codephp ini code but your CLI Command Line Interface codephp ini code is not good ppFind your codephp ini code file with the following command ppre codephp grep php ini code prepAnd then search for codedate timezone code and set it to code Europe Amsterdam code all valid timezone will be found here href http php net manual en timezones php http php net manual en timezones php ppAnother way if the other does not work search for the file codeAppKernel php code which should be under the folder codeapp code of your emSymfony em project directory Overwrite the code construct code function below in the class codeAppKernel code ppre code lt php class AppKernel extends Kernel Other methods and variables Append this init function below public function construct environment debug date default timezone set Europe Paris parent construct environment debug code pre feel free to edit the answer,0,NULL,NULL 67503,8400854,877655,NULL,NULL,NULL,0,NULL,NULL 67504,108472,1003530,NULL,NULL,NULL,0,NULL,NULL 67505,12023,1377376,Teacher Supporter Autobiographer Commentator Yearling Mortarboard Critic Quorum Yearling Caucus Custodian Yearling Custodian Tenacious,NULL,NULL,0,NULL,NULL 67506,387156,291505,Yearling,NULL,NULL,0,NULL,NULL 67507,316641,345753,Yearling Autobiographer,NULL,NULL,0,NULL,NULL 67508,4455671,345753,Yearling Autobiographer,NULL,NULL,0,NULL,NULL 67509,304624,64023,Yearling Good Answer Yearling Famous Question Good Answer Great Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 67510,154204,37984,Notable Question Famous Question Good Answer Notable Question Yearling Good Question Notable Question Good Question Good Question Popular Question Great Question Famous Question Favorite Question Famous Question Yearling Famous Question Nice Question Notable Question Famous Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 67511,291675,1396663,NULL,NULL,NULL,0,NULL,NULL 67512,12709,68238,Guru Notable Question Yearling Custodian Custodian Proofreader Necromancer Notable Question Popular Question Good Question Yearling Nice Answer Nice Question Documentation User Census Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 67513,210237,836099,Popular Question,NULL,NULL,0,NULL,NULL 67514,130947,317862,Guru Yearling Popular Question Nice Question Guru Famous Question Necromancer Yearling Nice Answer Enlightened Yearling Good Question,NULL,NULL,0,NULL,NULL 67515,250349,1565974,Scholar Necromancer Critic Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67516,286645,673984,NULL,NULL,NULL,0,NULL,NULL 67517,253726,113413,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67518,121977,949664,Popular Question Popular Question Critic Census Nice Question Yearling Informed Popular Question Caucus Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67519,2215778,665592,Student Editor,NULL,NULL,0,NULL,NULL 67520,1172937,1553097,NULL,NULL,NULL,0,NULL,NULL 67521,210529,244482,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67522,453642,1230367,NULL,NULL,NULL,0,NULL,NULL 67523,1498797,1132283,Popular Question,NULL,NULL,0,NULL,NULL 67524,243339,237144,Good Answer,NULL,NULL,0,NULL,NULL 67525,176489,532511,NULL,NULL,NULL,0,NULL,NULL 67526,992,280310,Necromancer Nice Answer Commentator Yearling Yearling Yearling Editor Yearling Tumbleweed Announcer Yearling Revival,NULL,NULL,0,NULL,NULL 67527,301270,1085824,Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 67528,257669,840331,Editor,NULL,NULL,0,NULL,NULL 67529,702460,1211791,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67530,120050,246742,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 67531,219721,275728,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67532,525994,1478238,Promoter Curious Yearling Autobiographer Popular Question Caucus Popular Question Yearling Caucus Custodian Popular Question Tenacious Caucus Yearling,NULL,NULL,0,NULL,NULL 67533,64513,702626,Student,NULL,NULL,0,NULL,NULL 67534,57498,641662,Announcer Popular Question,NULL,NULL,0,NULL,NULL 67535,198761,368230,Yearling Notable Question Nice Question Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 67536,46972,494117,NULL,NULL,NULL,0,NULL,NULL 67537,177273,237033,Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Informed Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 67538,560693,1039932,ruby Nice Answer Enlightened Custodian Nice Question Good Answer Popular Question Notable Question Yearling Caucus Constituent Notable Question Necromancer Nice Answer Popular Question Caucus Constituent Popular Question Documentation User Yearling Revival ruby-on-rails Popular Question Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67539,796195,673432,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 67540,911894,711528,NULL,NULL,NULL,0,NULL,NULL 67541,680510,570568,Yearling,NULL,NULL,0,NULL,NULL 67542,221993,556000,NULL,NULL,NULL,0,NULL,NULL 67543,195121,952129,Popular Question Popular Question Yearling Nice Question Popular Question Favorite Question Famous Question Famous Question Great Question Nice Question Yearling Popular Question Notable Question Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 67544,154747,1171239,NULL,NULL,NULL,0,NULL,NULL 67545,219803,1008180,Caucus Necromancer,NULL,NULL,0,NULL,NULL 67546,286455,670297,NULL,NULL,NULL,0,NULL,NULL 67547,286310,1118095,Tumbleweed Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67548,196701,434408,Revival Notable Question Popular Question Notable Question Talkative Tenacious Yearling Popular Question Caucus Popular Question Famous Question Popular Question Inquisitive Famous Question Nice Question Caucus Constituent Yearling Famous Question Civic Duty Popular Question Nice Answer Documentation User Nice Answer Popular Question Nice Question Nice Answer Enlightened Popular Question Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 67549,332640,590300,NULL,NULL,NULL,0,NULL,NULL 67550,141313,1199283,NULL,NULL,NULL,0,NULL,NULL 67551,159164,1277026,Nice Answer Yearling Caucus Nice Answer Caucus,NULL,NULL,0,NULL,NULL 67552,1218206,630440,NULL,NULL,NULL,0,NULL,NULL 67553,48323,537576,NULL,NULL,NULL,0,NULL,NULL 67554,431829,385979,Nice Answer Civic Duty Announcer Nice Answer Nice Answer Nice Answer Notable Question Announcer Good Answer Necromancer Necromancer Yearling Nice Answer Necromancer Good Answer Nice Answer Good Answer Necromancer Populist Nice Answer Good Answer Caucus Good Answer Great Answer Good Answer Nice Answer Yearling Notable Question Nice Answer Custodian Custodian Notable Question Good Answer Pundit Announcer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 67555,473581,1425556,NULL,NULL,NULL,0,NULL,NULL 67556,9918,222786,NULL,NULL,NULL,0,NULL,NULL 67557,9011,22423,Yearling Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 67558,299913,360012,NULL,NULL,NULL,0,NULL,NULL 67559,15125,1174561,Yearling Nice Question Great Question Nice Answer Enlightened Guru Yearling Excavator Yearling Necromancer Stellar Question,NULL,NULL,0,NULL,NULL 67560,21111,289742,Census,NULL,NULL,0,NULL,NULL 67561,422878,176284,Nice Answer,NULL,NULL,0,NULL,NULL 67562,12014,200956,Informed Popular Question,NULL,NULL,0,NULL,NULL 67563,650686,840590,NULL,NULL,NULL,0,NULL,NULL 67564,9751,66428,Good Answer Critic Notable Question Commentator,NULL,NULL,0,NULL,NULL 67565,10308624,390150,Nice Question Notable Question Revival Popular Question Guru Yearling Popular Question Caucus Yearling Popular Question Notable Question Popular Question Inquisitive Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67566,151220,390150,Nice Question Notable Question Revival Popular Question Guru Yearling Popular Question Caucus Yearling Popular Question Notable Question Popular Question Inquisitive Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67567,251291,869929,NULL,NULL,NULL,0,NULL,NULL 67568,83803,135625,Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67569,199424,493067,Yearling,NULL,NULL,0,NULL,NULL 67570,559706,691364,Good Question Yearling,NULL,NULL,0,NULL,NULL 67571,338455,406330,Popular Question Self-Learner Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67572,424939,985176,Necromancer Notable Question Yearling Popular Question Caucus Nice Answer Necromancer Good Answer Nice Question Notable Question Famous Question Caucus Yearling Revival Revival Necromancer Nice Answer Caucus Good Question Yearling,NULL,NULL,0,NULL,NULL 67573,435830,578116,Yearling Popular Question Good Answer Nice Question Notable Question Yearling Yearling Self-Learner,NULL,NULL,0,NULL,NULL 67574,1814604,777824,NULL,NULL,NULL,0,NULL,NULL 67575,997531,1157720,Announcer Notable Question Yearling Census Citizen Patrol Nice Question Announcer Caucus Famous Question Enthusiast Yearling Announcer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 67576,42312,1490690,NULL,NULL,NULL,0,NULL,NULL 67577,1134373,717451,Teacher Critic Informed Caucus,NULL,NULL,0,NULL,NULL 67578,469270,1364248,NULL,NULL,NULL,0,NULL,NULL 67579,11081508,130533,Notable Question Necromancer Excavator Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67580,316879,130533,Notable Question Necromancer Excavator Nice Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67581,1182271,306471,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67582,74263,875605,NULL,NULL,NULL,0,NULL,NULL 67583,115515,1186799,NULL,NULL,NULL,0,NULL,NULL 67584,126286,629118,Yearling Nice Answer Nice Answer Announcer Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Announcer Announcer android Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 67585,319221,277132,Nice Answer Nice Answer Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 67586,627086,1034988,NULL,NULL,NULL,0,NULL,NULL 67587,30322,77996,Famous Question Yearling Famous Question Favorite Question Popular Question Yearling Nice Answer Caucus Favorite Question Custodian Yearling Caucus Nice Question,NULL,pThanks for the answers everybody recently had to get this to work and used your suggestions heavily However there were couple of tricky parts that did not work as expected mostly having to do with actually including the file which was an important part of the question There are lot of answers here already but think this may be useful to someone in the future could not find many clear examples of this online href http www briangrinstead com blog multipart form post in rel noreferrer wrote blog post that explains it little more ppBasically first tried to pass in the file data as UTF8 encoded string but was having problems with encoding files it worked fine for plain text file but when uploading Word Document for example if tried to save the file that was passed through to the posted form using Request Files SaveAs opening the file in Word did not work properly found that if you write the file data directly using Stream rather than StringBuilder it worked as expected Also made couple of modifications that made it easier for me to understand ppBy the way the href http www ietf org rfc rfc2388 txt rel noreferrer Multipart Forms Request for Comments and the href http www w3 org TR html401 interact forms html 17 13 rel noreferrer W3C Recommendation for mulitpart form data are couple of useful resources in case anyone needs reference for the specification ppI changed the WebHelpers class to be bit smaller and have simpler interfaces it is now called codeFormUpload code If you pass codeFormUpload FileParameter code you can pass the byte contents along with file name and content type and if you pass string it will treat it as standard name value combination pp strongHere is the FormUpload class strong ppre code Implements multipart form data POST in http www ietf org rfc rfc2388 txt http www briangrinstead com blog multipart form post in cpublic static class FormUpload private static readonly Encoding encoding Encoding UTF8 public static HttpWebResponse MultipartFormDataPost string postUrl string userAgent Dictionary lt string object gt postParameters string formDataBoundary String Format Guid NewGuid string contentType multipart form data boundary formDataBoundary byte formData GetMultipartFormData postParameters formDataBoundary return PostForm postUrl userAgent contentType formData private static HttpWebResponse PostForm string postUrl string userAgent string contentType byte formData HttpWebRequest request WebRequest Create postUrl as HttpWebRequest if request null throw new NullReferenceException request is not http request Set up the request properties request Method POST request ContentType contentType request UserAgent userAgent request CookieContainer new CookieContainer request ContentLength formData Length You could add authentication here as well if needed request PreAuthenticate true request AuthenticationLevel System Net Security AuthenticationLevel MutualAuthRequested request Headers Add Authorization Basic Convert ToBase64String System Text Encoding Default GetBytes username password Send the form data to the request using Stream requestStream request GetRequestStream requestStream Write formData formData Length requestStream Close return request GetResponse as HttpWebResponse private static byte GetMultipartFormData Dictionary lt string object gt postParameters string boundary Stream formDataStream new System IO MemoryStream bool needsCLRF false foreach var param in postParameters Thanks to feedback from commenters add CRLF to allow multiple parameters to be added Skip it on the first parameter add it to subsequent parameters if needsCLRF formDataStream Write encoding GetBytes encoding GetByteCount needsCLRF true if param Value is FileParameter FileParameter fileToUpload FileParameter param Value Add just the first part of this param since we will write the file data directly to the Stream string header string Format nContent Disposition form data name filename nContent Type boundary param Key fileToUpload FileName param Key fileToUpload ContentType application octet stream formDataStream Write encoding GetBytes header encoding GetByteCount header Write the file data directly to the Stream rather than serializing it to string formDataStream Write fileToUpload File fileToUpload File Length else string postData string Format nContent Disposition form data name boundary param Key param Value formDataStream Write encoding GetBytes postData encoding GetByteCount postData Add the end of the request Start with newline string footer boundary formDataStream Write encoding GetBytes footer encoding GetByteCount footer Dump the Stream into byte formDataStream Position byte formData new byte formDataStream Length formDataStream Read formData formData Length formDataStream Close return formData public class FileParameter public byte File get set public string FileName get set public string ContentType get set public FileParameter byte file this file null public FileParameter byte file string filename this file filename null public FileParameter byte file string filename string contenttype File file FileName filename ContentType contenttype code prep strongHere is the calling code which uploads file and few normal post parameters strong ppre code Read file dataFileStream fs new FileStream people doc FileMode Open FileAccess Read byte data new byte fs Length fs Read data data Length fs Close Generate post objectsDictionary lt string object gt postParameters new Dictionary lt string object gt postParameters Add filename People doc postParameters Add fileformat doc postParameters Add file new FormUpload FileParameter data People doc application msword Create request and receive responsestring postURL http localhost string userAgent Someone HttpWebResponse webResponse FormUpload MultipartFormDataPost postURL userAgent postParameters Process responseStreamReader responseReader new StreamReader webResponse GetResponseStream string fullResponse responseReader ReadToEnd webResponse Close Response Write fullResponse code pre Thanks million,0,NULL,NULL 67588,149435,756986,Popular Question Nice Answer Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67589,182593,330674,Supporter,NULL,NULL,0,NULL,NULL 67590,4073,274117,Famous Question Notable Question Good Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Good Question Popular Question Notable Question Popular Question Popular Question Good Question Famous Question Popular Question Famous Question Nice Question Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Documentation User Notable Question Popular Question Famous Question Famous Question Popular Question Nice Question Nice Question Yearling Popular Question Favorite Question Famous Question Famous Question Popular Question Popular Question Notable Question Notable Question Great Question Popular Question Nice Question Popular Question Favorite Question Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67591,259663,1370565,NULL,NULL,NULL,0,NULL,NULL 67592,468140,843964,NULL,NULL,NULL,0,NULL,NULL 67593,179264,566650,NULL,NULL,NULL,0,NULL,NULL 67594,78764,383974,NULL,NULL,NULL,0,NULL,NULL 67595,301342,152246,Custodian Caucus Documentation User,NULL,NULL,0,NULL,NULL 67596,291761,30726,Yearling Favorite Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 67597,234104,1124572,php Custodian Caucus Good Answer Yearling Caucus Yearling Good Answer Custodian,NULL,NULL,0,NULL,NULL 67598,592570,934041,Teacher Editor Commentator Enthusiast Yearling Supporter Custodian Critic Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 67599,262611,242882,Yearling Necromancer Self-Learner Caucus Constituent Popular Question Yearling Notable Question Popular Question Caucus ios Yearling Disciplined Notable Question,NULL,NULL,0,NULL,NULL 67600,74839,273397,Notable Question,NULL,NULL,0,NULL,NULL 67601,133532,534380,NULL,NULL,NULL,0,NULL,NULL 67602,538833,89876,Yearling Yearling Good Answer Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 67603,336166,587523,NULL,NULL,NULL,0,NULL,NULL 67604,97776,1155915,NULL,NULL,NULL,0,NULL,NULL 67605,820631,1376287,NULL,NULL,NULL,0,NULL,NULL 67606,32062,46411,Popular Question Popular Question Famous Question Famous Question Famous Question Notable Question Yearling Popular Question Popular Question Good Answer Nice Question Good Question Notable Question Nice Answer Notable Question Notable Question Good Question Notable Question Famous Question Famous Question Nice Question Yearling Nice Question Popular Question Notable Question Popular Question Favorite Question Popular Question Nice Question Notable Question Notable Question Guru,NULL,NULL,0,NULL,NULL 67607,7116114,1340410,NULL,NULL,NULL,0,NULL,NULL 67608,313779,782063,Notable Question Nice Question Yearling Notable Question Guru Nice Question Necromancer Popular Question Yearling Documentation User Nice Answer Nice Answer Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 67609,1413,279291,NULL,NULL,NULL,0,NULL,NULL 67610,240688,995280,Civic Duty,NULL,NULL,0,NULL,NULL 67611,639652,1563965,Notable Question,NULL,NULL,0,NULL,NULL 67612,141513,874904,Supporter Necromancer,NULL,NULL,0,NULL,NULL 67613,296128,1107398,Caucus Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 67614,63861,717600,Popular Question Yearling Self-Learner Caucus Necromancer Popular Question Yearling Peer Pressure Reviewer Civic Duty Caucus Nice Answer Popular Question Documentation User Census Notable Question Nice Answer Caucus Nice Answer Yearling Nice Question Popular Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 67615,390383,949772,Notable Question Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Custodian Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Yearling Popular Question Popular Question Famous Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67616,673494,109366,Yearling Popular Question Good Question Popular Question Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 67617,892444,630144,Notable Question,NULL,NULL,0,NULL,NULL 67618,881574,1287763,Famous Question,NULL,NULL,0,NULL,NULL 67619,245085,693440,Yearling Famous Question,NULL,NULL,0,NULL,NULL 67620,308255,591545,NULL,NULL,NULL,0,NULL,NULL 67621,94947,1082293,NULL,NULL,NULL,0,NULL,NULL 67622,100212,538570,Nice Answer Enlightened Popular Question Yearling Custodian Custodian Custodian Nice Answer Good Question Yearling Necromancer Census Famous Question,NULL,NULL,0,NULL,NULL 67623,155117,216575,Popular Question Notable Question Popular Question Notable Question Famous Question Nice Answer Notable Question Nice Question Good Answer Popular Question Yearling Great Question Famous Question Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Notable Question Good Answer Populist Popular Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67624,1210228,1222249,NULL,NULL,NULL,0,NULL,NULL 67625,1019827,419329,NULL,NULL,NULL,0,NULL,NULL 67626,725569,190481,NULL,NULL,NULL,0,NULL,NULL 67627,190290,444912,Notable Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 67628,869245,1294388,NULL,NULL,NULL,0,NULL,NULL 67629,885000,1101017,Teacher Popular Question,NULL,NULL,0,NULL,NULL 67630,159070,545116,NULL,NULL,NULL,0,NULL,NULL 67631,9492679,441294,Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 67632,222553,441294,Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 67633,1205875,130256,NULL,NULL,NULL,0,NULL,NULL 67634,359805,944441,NULL,NULL,NULL,0,NULL,NULL 67635,229175,290624,NULL,NULL,NULL,0,NULL,NULL 67636,117148,669661,NULL,NULL,NULL,0,NULL,NULL 67637,681037,634688,NULL,NULL,NULL,0,NULL,NULL 67638,475219,803083,Good Answer Great Question Nice Answer Revival Yearling Great Answer Yearling Caucus Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67639,24370,642827,Informed,NULL,NULL,0,NULL,NULL 67640,248295,922564,NULL,NULL,NULL,0,NULL,NULL 67641,263989,108452,Curious Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 67642,7457092,978027,NULL,NULL,NULL,0,NULL,NULL 67643,60222,530329,Nice Question Famous Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 67644,10116315,530329,Nice Question Famous Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 67645,134279,172805,Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67646,433705,1374288,Yearling android Great Answer Yearling Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 67647,29915,362006,Necromancer Nice Answer Nice Answer Strunk & White Necromancer Yearling Revival Great Answer Caucus Guru Nice Answer Yearling Great Answer Necromancer Necromancer Yearling Good Answer Nice Answer Good Answer Custodian,NULL,NULL,0,NULL,NULL 67648,467573,380154,Critic Popular Question,NULL,NULL,0,NULL,NULL 67649,498878,77069,Yearling Caucus Constituent Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67650,56739,1269640,Nice Question Yearling Notable Question Famous Question Nice Answer Nice Question Announcer Nice Question Popular Question Yearling Notable Question Nice Question Popular Question Revival Notable Question Notable Question Famous Question Popular Question Yearling Good Question Popular Question,NULL,NULL,1,What is the difference between crossinline and noinline in Kotlin kotlin olli pThis code strongcompiles with warning strong eminsignificant performance impact em ppre codeinline fun test noinline gt Unit thread block code pre lili pThis code strongdoes not compile strong emillegal usage of inline parameter em ppre codeinline fun test crossinline gt Unit thread block code pre lili pThis code strongcompiles with warning strong eminsignificant performance impact em ppre codeinline fun test noinline gt Unit thread code pre lili pThis code strongcompiles with no warning or error strong ppre codeinline fun test crossinline gt Unit thread code pre li olpHere are my questions pulliHow come does not compile but does liliWhat exactly is the difference between codenoinline code and codecrossinline code liliIf does not generates no performance improvements why would do li ul,NULL 67651,233287,759162,Self-Learner Yearling Custodian,NULL,NULL,0,NULL,NULL 67652,1522860,1259355,NULL,NULL,NULL,0,NULL,NULL 67653,41190,256745,Good Question Popular Question Good Question Yearling Critic,NULL,NULL,0,NULL,NULL 67654,181366,136132,Yearling Notable Question Yearling Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 67655,8385189,136132,Yearling Notable Question Yearling Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 67656,354872,1252221,NULL,NULL,NULL,0,NULL,NULL 67657,90966,1184431,Nice Question Scholar Commentator Critic Informed,NULL,NULL,0,NULL,NULL 67658,131316,101911,Nice Question Notable Question Yearling Nice Question Favorite Question Caucus Yearling Good Question Famous Question Announcer Yearling Announcer Great Answer,NULL,NULL,0,NULL,NULL 67659,282913,1306956,Nice Answer Nice Answer Great Question Revival Necromancer Nice Answer Nice Answer Nice Answer Good Answer Guru Yearling Good Answer Revival swift Nice Answer Enlightened Necromancer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Nice Question Nice Question Popular Question Great Answer Necromancer xcode Popular Question Popular Question Custodian Popular Question Necromancer Nice Answer Nice Answer Nice Answer Great Answer Notable Question Good Answer Revival Revival Revival Necromancer Pundit Necromancer Revival Nice Answer Yearling Revival Nice Answer Notable Question Popular Question Popular Question Notable Question Famous Question Revival Good Answer Necromancer Necromancer Nice Answer Necromancer Nice Answer Good Answer Good Answer Popular Question Good Answer Yearling Necromancer Necromancer Famous Question Good Answer Populist Necromancer Necromancer Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 67660,2461704,877225,Nice Answer Caucus Yearling Caucus Commentator Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 67661,422023,967871,NULL,NULL,NULL,0,NULL,NULL 67662,163550,640815,Informed,NULL,NULL,0,NULL,NULL 67663,746215,1281599,NULL,NULL,NULL,0,NULL,NULL 67664,583644,672850,NULL,NULL,NULL,0,NULL,NULL 67665,233873,906159,Student Popular Question,NULL,NULL,0,NULL,NULL 67666,329761,1203785,Enthusiast,NULL,NULL,0,NULL,NULL 67667,2408468,1151755,Notable Question Yearling,NULL,NULL,0,NULL,NULL 67668,124957,1151755,Notable Question Yearling,NULL,NULL,0,NULL,NULL 67669,172600,1439789,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 67670,49075,1148744,Civic Duty Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 67671,2480885,996425,NULL,NULL,NULL,0,NULL,NULL 67672,99827,220600,Famous Question Yearling,NULL,NULL,0,NULL,NULL 67673,17267,450158,Yearling Popular Question Nice Answer Yearling Scholar,NULL,NULL,0,NULL,NULL 67674,385544,1387645,Editor Student Teacher Self-Learner Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 67675,194799,953502,NULL,NULL,NULL,0,NULL,NULL 67676,6316873,953502,NULL,NULL,NULL,0,NULL,NULL 67677,52351,667812,NULL,NULL,NULL,0,NULL,NULL 67678,64732,667812,NULL,NULL,NULL,0,NULL,NULL 67679,125651,1165784,NULL,NULL,NULL,0,NULL,NULL 67680,522716,956620,Necromancer Yearling Revival Nice Answer Necromancer Yearling Necromancer Necromancer Populist Good Answer Yearling Revival Necromancer Nice Answer Enthusiast Necromancer Yearling Good Answer Tumbleweed Nice Answer Yearling Guru Citizen Patrol Custodian Custodian Custodian Autobiographer Organizer Custodian,NULL,NULL,0,NULL,NULL 67681,1353824,198277,Famous Question Commentator Curious,NULL,NULL,0,NULL,NULL 67682,43059,154462,Curious Good Answer Popular Question Yearling Famous Question Investor,NULL,NULL,0,NULL,NULL 67683,1330610,319670,NULL,NULL,NULL,0,NULL,NULL 67684,1503949,777425,Curious Popular Question Critic Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67685,7345112,51593,Yearling Good Answer Nice Answer Notable Question Good Answer Great Answer Caucus Yearling Good Answer Nice Answer Enlightened Caucus Necromancer Popular Question Nice Answer Enlightened Necromancer Yearling Caucus,NULL,pTry this demo which is capturing all audio video input devices pp href https www webrtc experiment com demos MediaStreamTrack getSources html https www webrtc experiment com demos MediaStreamTrack getSources html ppYou can capture any specific device using same API ppEdited at March 01 2014 ppre codeMediaStreamTrack getSources function media sources for var lt media sources length var media source media sources var constraints if audio device if media source kind audio constraints audio optional sourceId media source id if video device if media source kind video constraints video optional sourceId media source id invoke getUserMedia to capture this device navigator webkitGetUserMedia constraints function stream console log stream id stream console error code preh1Updated at Sep 05 2015 h1h3Now Microsoft Edge Chrome 44 Firefox 38 all these browsers are supporting codenavigator mediaDevices enumerateDevices code API h3pHere is reusable script that provides strongcross browser shim strong for all these media sources APIs It will work even in old chrome 43 and older even on Android devices ppre codeif navigator mediaDevices amp amp navigator mediaDevices enumerateDevices Firefox 38 Microsoft Edge and Chrome 44 seems having support of enumerateDevices navigator enumerateDevices function callback navigator mediaDevices enumerateDevices then callback function getAllAudioVideoDevices successCallback failureCallback if navigator enumerateDevices amp amp window MediaStreamTrack amp amp window MediaStreamTrack getSources navigator enumerateDevices window MediaStreamTrack getSources bind window MediaStreamTrack if navigator enumerateDevices amp amp navigator mediaDevices enumerateDevices navigator enumerateDevices navigator mediaDevices enumerateDevices bind navigator if navigator enumerateDevices failureCallback null Neither navigator mediaDevices enumerateDevices NOR MediaStreamTrack getSources are available return var allMdiaDevices var allAudioDevices var allVideoDevices var audioInputDevices var audioOutputDevices var videoInputDevices var videoOutputDevices navigator enumerateDevices function devices devices forEach function device var device for var in device device device make sure that we are not fetching duplicate devics var skip allMdiaDevices forEach function if id device id skip true if skip return if it is MediaStreamTrack getSources if device kind audio device kind audioinput if device kind video device kind videoinput if device deviceId device deviceId device id if device id device id device deviceId if device label device label Please invoke getUserMedia once if device kind audioinput device kind audio audioInputDevices push device if device kind audiooutput audioOutputDevices push device if device kind videoinput device kind video videoInputDevices push device if device kind indexOf audio allAudioDevices push device if device kind indexOf video allVideoDevices push device there is no videoouput in the spec so videoOutputDevices will always be empty allMdiaDevices push device if successCallback successCallback allMdiaDevices allMdiaDevices allVideoDevices allVideoDevices allAudioDevices allAudioDevices videoInputDevices videoInputDevices audioInputDevices audioInputDevices audioOutputDevices audioOutputDevices code preh3Here is how to use above reusable cross browser shim h3pre codegetAllAudioVideoDevices function result if result allMdiaDevices length console debug Number of audio video devices available result allMdiaDevices length if result allVideoDevices length console debug Number of video devices available result allVideoDevices length if result allAudioDevices length console debug Number of audio devices available result allAudioDevices length if result videoInputDevices length console debug Number of video input devices available result videoInputDevices length if result audioInputDevices length console debug Number of audio input devices available result audioInputDevices length if result audioOutputDevices length console debug Number of audio output devices available result audioOutputDevices length if result allMdiaDevices length amp amp result allMdiaDevices label Please invoke getUserMedia once console warn It seems you did not invoke navigator getUserMedia before using these API console info All audio input devices result audioInputDevices forEach function device console log Audio input device id device id Device label device label console info All audio output devices result audioOutputDevices forEach function device console log Audio output device id device id Device label device label console info All video input devices result videoInputDevices forEach function device console log Video input device id device id Device label device label function error alert error code pre Thanks for heads up haven looked at that example for while Will fix https webrtc github io samples has demos using the new API methods syntax,0,NULL,NULL 67686,367952,1440630,NULL,NULL,NULL,0,NULL,NULL 67687,432282,1350144,NULL,NULL,NULL,0,NULL,NULL 67688,4714717,1467869,NULL,NULL,NULL,0,NULL,NULL 67689,160027,1324744,NULL,NULL,NULL,0,NULL,NULL 67690,1001719,337263,Nice Answer Scholar,NULL,NULL,0,NULL,NULL 67691,164202,599277,Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 67692,206503,384039,Yearling,NULL,NULL,0,NULL,NULL 67693,815010,945795,Nice Question,NULL,NULL,0,NULL,NULL 67694,76343,1269893,Yearling Yearling Necromancer Great Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 67695,289295,1127633,Yearling,NULL,NULL,0,NULL,NULL 67696,19843,569213,Yearling Nice Question Nice Answer Notable Question Notable Question Notable Question Necromancer Notable Question Popular Question Popular Question Nice Answer Revival Popular Question Notable Question Nice Question Caucus Necromancer Constituent Nice Answer Famous Question Nice Question Yearling Nice Question Good Answer Popular Question Custodian Necromancer Notable Question Popular Question Caucus Constituent Famous Question Popular Question Good Question Popular Question Popular Question Yearling Tenacious Popular Question Caucus Notable Question Notable Question Nice Answer Enlightened Popular Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 67697,4993430,569213,Yearling Nice Question Nice Answer Notable Question Notable Question Notable Question Necromancer Notable Question Popular Question Popular Question Nice Answer Revival Popular Question Notable Question Nice Question Caucus Necromancer Constituent Nice Answer Famous Question Nice Question Yearling Nice Question Good Answer Popular Question Custodian Necromancer Notable Question Popular Question Caucus Constituent Famous Question Popular Question Good Question Popular Question Popular Question Yearling Tenacious Popular Question Caucus Notable Question Notable Question Nice Answer Enlightened Popular Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 67698,873794,417562,Guru Great Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Great Answer Good Answer Necromancer Guru Notable Question forms Guru Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Yearling Good Answer Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Great Answer Caucus Nice Answer Great Answer dom Nice Answer Enlightened Guru Great Answer Nice Answer Nice Answer Nice Answer Good Answer oop Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Great Answer Guru Guru Good Answer Good Answer class Great Answer Great Answer Nice Answer Nice Answer Enlightened Great Answer Guru Enlightened Yearling Nice Answer Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Good Answer Great Answer Guru Nice Answer Nice Answer Good Answer string Nice Answer Good Answer Good Answer Guru Great Answer Custodian css-selectors Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer arrays Nice Answer Guru Guru Nice Answer Enlightened Guru Good Answer Guru Nice Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Yearling Good Answer Nice Answer Nice Answer Enlightened Nice Answer Populist Great Answer Great Answer,NULL,pNo there is no way of specifying particular doctype to use or to modify the requirements of the existing one ppYour best workable solution is going to be to disable error reporting with href http www php net manual en function libxml use internal errors php rel noreferrer codelibxml use internal errors code ppre code dom new DOMDocument libxml use internal errors true dom gt loadHTML libxml clear errors code pre It all dependant on the underlying libxml library pThis is actually very simple It is much easier to find unique values if the values are sorted first ppre codefunction sort unique arr if arr length return arr arr arr sort function return var ret arr for var lt arr length Start loop at arr can never be duplicate if arr arr ret push arr return ret console log sort unique 237 124 255 124 366 255 124 237 255 366 code pre ki It had like 20 upvotes in 24 hours and have no idea why pYou can do this with reflection Specifically you can use the href http www php net manual en reflectionclass getshortname php rel noreferrer codeReflectionClass getShortName code method which gets the name of the class without its namespace ppFirst you need to build codeReflectionClass code instance and then call the codegetShortName code method of that instance ppre code reflect new ReflectionClass object if reflect gt getShortName Name do this code prepHowever can imagine many circumstances where this would be desirable If you want to require that the object is member of certain class the way to test it is with codeinstanceof code If you want more flexible way to signal certain constraints the way to do that is to write an interface and require that the code implement that interface Again the correct way to do this is with codeinstanceof code You can do it with codeReflectionClass code but it would have much worse performance Slow Possibly not actually https stackoverflow com 25472778 417562 But the relevant question is surely why do you need the class name as string It not often the right solution to problem pYou can do this with reflection Specifically you can use the href http www php net manual en reflectionclass getshortname php rel noreferrer codeReflectionClass getShortName code method which gets the name of the class without its namespace ppFirst you need to build codeReflectionClass code instance and then call the codegetShortName code method of that instance ppre code reflect new ReflectionClass object if reflect gt getShortName Name do this code prepHowever can imagine many circumstances where this would be desirable If you want to require that the object is member of certain class the way to test it is with codeinstanceof code If you want more flexible way to signal certain constraints the way to do that is to write an interface and require that the code implement that interface Again the correct way to do this is with codeinstanceof code You can do it with codeReflectionClass code but it would have much worse performance The question is Why do you want the class name as string,0,NULL,NULL 67699,278331,1289881,NULL,NULL,NULL,0,NULL,NULL 67700,434733,557999,NULL,NULL,NULL,0,NULL,NULL 67701,675265,82216,Informed Notable Question Nice Answer Notable Question Nice Question Yearling Announcer Notable Question Favorite Question Notable Question Yearling Announcer Announcer Notable Question Great Question Famous Question Electorate Nice Answer Famous Question Popular Question Caucus Yearling Popular Question Popular Question Nice Question Notable Question Nice Answer Enlightened Popular Question Famous Question,NULL,How do make Git ignore file mode chmod changes git ignore chmod pI have project in which have to change the mode of files with codechmod code to 777 while developing but which should not change in the main repo ppGit picks up on codechmod 777 code and marks all files as changed Is there way to make Git ignore mode changes that have been made to files For anyone who just wants to ignore permission changes for specific invocation of git diff and who therefore does not want to alter their Git configuration files you can use git diff per Zed https stackoverflow com users 19202 zed answer here https stackoverflow com 22389011 82216 How to use color words with git add patch git pWhen diffing files prefer to use codegit diff color words code Is there way to make this the default format for diffs when using codegit add patch code or codegit add interactive code OK if edit this question to cover word diff in addition to color words If so then my near duplicate question here https stackoverflow com 49058817 will be able to be closed as an exact duplicate of this one That will allow answers to be consolidated here which in turn will be more efficient for the community Comprehensive beginner virtualenv tutorial python virtualenv pI ve been hearing the buzz about virtualenv lately and interested But all ve heard is smattering of praise and don have clear understanding of what it is or how to use it ppI looking for ideally follow along tutorial that can take me from Windows or Linux with no Python on it and explain every step of in no particular order pulliwhat should do to be able to start using codevirtualenv code lilispecific reasons why using codevirtualenv code is good idea lilisituations where can can use codevirtualenv code lilisituations where should shouldn use codevirtualenv code li ulpAnd step through comprehensively couple sample situations of the should can variety ppSo what are some good tutorials to cover this stuff Or if you have the time and interest perhaps you can answer few of those questions here Either in your answer or as link to tutorials that answer it these are the things like to know The official user guide https virtualenv pypa io en stable userguide Preserving quotes in bash function parameters bash function arguments quotes pWhat like to do is take as an input to function line that may include quotes single or double and echo that line exactly as it was provided to the function For instance ppre codefunction doit printf eval printf 3d code prepWhich given the following input ppre codedoit VAR 42doit echo single quote VAR doit echo double quote VAR code prepYields the following ppre codeVAR 42 echo single quote VAR echo double quote 42 code prepSo the semantics of the variable expansion are preserved as expect but can not get the exact format of the line as it was provided to the function What like is to have codedoit echo single quote VAR code result in codeecho single quote VAR code ppI sure this has to do with bash processing the arguments before they are passed to the function just looking for way around that if possible ph1Edit h1pSo what had intended was to shadow the execution of script while providing an exact replica of the execution that could be used as diagnostic tool including exit status of each step ppWhile emcan em get the desired behavior described above by doing something like ppre codewhile read line do doit line done lt INPUT code prepThat approach fails in the face of control structures codeif code codewhile code etc thought about using codeset code but that has it limitations as well code code becomes code code and exit status is not visible for commands that fail Related How do use Bash variable string containing quotes in command https superuser com 360966 11574,0,NULL,NULL 67702,289654,315710,NULL,NULL,NULL,0,NULL,NULL 67703,153742,560330,NULL,NULL,NULL,0,NULL,NULL 67704,258929,220646,NULL,NULL,NULL,0,NULL,NULL 67705,327570,1556111,Popular Question,NULL,NULL,0,NULL,NULL 67706,197160,1158977,Yearling Popular Question Self-Learner Nice Question Great Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Caucus Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Nice Question Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Excavator Popular Question Notable Question Yearling Stellar Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Civic Duty Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,1,Resizing an input image in Keras Lambda layer python keras keras layer cv2 pI would like my codekeras code model to resize the input image using cv2 or similar ppI have seen the use of codeImageGenerator code but would prefer to write my own generator and simply resize the image in the first layer with codekeras layers core Lambda code ppHow would do this,NULL 67707,1522156,1358901,Student,NULL,NULL,0,NULL,NULL 67708,2419,1188663,NULL,NULL,NULL,0,NULL,NULL 67709,35619,17174,Good Answer Famous Question Good Answer Nice Answer Nice Answer Famous Question Guru Good Answer Notable Question Notable Question Nice Answer Enlightened Nice Answer Revival Good Answer Good Answer Good Answer Good Question Famous Question Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Question Nice Answer Great Question Nice Answer Enlightened Guru Notable Question Nice Answer Notable Question Popular Question Popular Question Good Question Notable Question Good Answer Revival Necromancer Great Answer Nice Question Yearling Great Question Good Answer Notable Question Good Question Nice Question Famous Question Guru Nice Answer Nice Answer Good Answer Nice Answer Popular Question Great Answer Guru Announcer Guru Popular Question Famous Question Favorite Question Popular Question Notable Question Nice Question Good Answer Caucus Constituent Nice Question Nice Answer Nice Answer Enlightened Notable Question Nice Answer Notable Question Famous Question Popular Question Yearling Famous Question Nice Answer Announcer Famous Question Guru Populist Great Answer Announcer Nice Answer Nice Question Stellar Question Announcer Good Answer Good Question Popular Question Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question Great Question Good Question Nice Answer Favorite Question Nice Answer Great Answer Good Answer Great Question Great Answer Nice Question Yearling Good Question,NULL,Safari in ios8 is scrolling screen when fixed elements get focus javascript ios css safari ios8 pIn IOS8 Safari there is new bug with position fixed ppIf you focus textarea that is in fixed panel safari will scroll you to the bottom of the page ppThis makes all sorts of UIs impossible to work with since you have no way of entering text into textareas without scrolling your page all the way down and losing your place ppIs there any way to workaround this bug cleanly ppre class lang css prettyprint override code height 10000px background linear gradient red blue position fixed bottom 20px left 10 width 100 height 300px textarea width 80 height 300px code prepre class lang html prettyprint override code lt html gt lt body gt lt div id gt lt div gt lt div id gt lt textarea gt lt textarea gt lt div gt lt body gt lt html gt code pre many times have zero confidence this will ever be fixed reached out on twitter tried everything,0,NULL,NULL 67710,290625,639488,NULL,NULL,NULL,0,NULL,NULL 67711,69434,1557556,Yearling Nice Answer Supporter,NULL,NULL,0,NULL,NULL 67712,186691,561426,Teacher Revival Nice Answer Enlightened Yearling Good Answer,NULL,NULL,1,NULL,Upload to Amazon S3 using Boto3 and return public url django models amazon s3 boto3 pIam trying to upload files to s3 using Boto3 and make that uploaded file public and return it as url ppre codeclass UtilResource BaseZMPResource class Meta BaseZMPResource Meta queryset Configuration objects none resource name util resource allowed methods get def post list self request kwargs fileToUpload request FILES write code to upload to amazone s3 see https boto3 readthedocs org en latest reference services s3 html self session Session aws access key id settings AWS KEY ID aws secret access key settings AWS ACCESS KEY region name settings AWS REGION client self session client s3 client upload file zango static fileToUpload url some test url return self create response request url url return public url of uploaded file code prepI searched whole documentation couldn find any links which describes how to do this can someone explain or provide any resource where can find the soultion pI in the same situation Not able to find anything in the Boto3 docs beyond generate presigned url which is not what need in my case since have public readable S3 Objects ppThe best came up with is ppre class lang py prettyprint override codebucket location boto3 client s3 get bucket location Bucket s3 bucket name object url https s3 amazonaws com format bucket location LocationConstraint s3 bucket name key name code prepYou might try posting on the href https github com boto boto3 issues rel noreferrer boto3 github issues list for better solution 67713,59880,256721,Yearling Popular Question Popular Question Famous Question Nice Answer Enlightened Notable Question Self-Learner Famous Question Yearling Notable Question Nice Answer Enlightened Popular Question Informed Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 67714,451245,5872,NULL,NULL,NULL,0,NULL,NULL 67715,33724,1544374,NULL,NULL,NULL,0,NULL,NULL 67716,309820,188183,Popular Question,NULL,NULL,0,NULL,NULL 67717,80635,765495,NULL,NULL,NULL,0,NULL,NULL 67718,211480,125945,Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 67719,90450,1065195,NULL,NULL,NULL,0,NULL,NULL 67720,33074,59730,Nice Question Yearling Great Question Good Question Yearling Stellar Question Great Question Caucus Popular Question Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 67721,684127,1560429,Teacher Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67722,8289,132467,Popular Question Nice Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67723,442304,1423371,NULL,NULL,NULL,0,NULL,NULL 67724,2065430,267382,NULL,NULL,NULL,0,NULL,NULL 67725,4720,267382,NULL,NULL,NULL,0,NULL,NULL 67726,118260,31168,Notable Question Notable Question Notable Question Revival Yearling Notable Question Good Question Popular Question Favorite Question Nice Question Nice Question Critic Nice Question,NULL,NULL,0,NULL,NULL 67727,26250,370286,Good Answer Good Answer Famous Question Nice Answer Great Answer Nice Answer Popular Question Yearling Nice Answer Notable Question Popular Question Notable Question Necromancer Favorite Question Good Answer Notable Question Nice Answer Yearling Famous Question Caucus Strunk & White Disciplined Vox Populi Good Answer Constituent Notable Question Necromancer Famous Question Necromancer Necromancer Necromancer Nice Question Guru Nice Answer Notable Question Notable Question Yearling Nice Answer Nice Question Notable Question Nice Answer,NULL,strongUPDATE January 2017 strong ppAccording to href http caniuse com feat user select none rel noreferrer Can use the codeuser select code is currently supported in all browsers except Internet nbsp Explorer and earlier versions but sadly emstill em needs vendor prefix phrpAll of the correct CSS variations are pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code noselect xD webkit touch callout none iOS Safari xD webkit user select none Safari xD khtml user select none Konqueror HTML xD moz user select none Firefox xD ms user select none Internet Explorer Edge xD user select none Non prefixed version currently xD supported by Chrome and Opera xD code pre xD pre class snippet code html lang html prettyprint override code lt gt xD Selectable text xD lt gt xD lt class noselect gt xD Unselectable text xD lt gt code pre xD div xD div xD phrpNote that it strongnon standard feature strong not part of any specification It is not guaranteed to work everywhere and there might be differences in implementation among browsers and in the future browsers can drop support for it phrpMore information can be found in href https developer mozilla org en US docs Web CSS user select rel noreferrer Mozilla Developer Network documentation rolling back since the question asks for valid css solution,0,NULL,NULL 67728,102063,1454976,NULL,NULL,NULL,0,NULL,NULL 67729,53674,28451,Yearling Good Answer Nice Answer Yearling Good Question Yearling Good Answer Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 67730,138481,681015,NULL,NULL,NULL,0,NULL,NULL 67731,19836,1109398,NULL,NULL,NULL,0,NULL,NULL 67732,1376115,575907,NULL,NULL,NULL,0,NULL,NULL 67733,155256,278611,NULL,NULL,NULL,0,NULL,NULL 67734,220893,604795,NULL,NULL,NULL,0,NULL,NULL 67735,14343,132260,Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 67736,199110,676251,NULL,NULL,NULL,0,NULL,NULL 67737,118348,1084217,Nice Question Yearling Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 67738,400776,1071423,Notable Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67739,111527,214602,Guru Popular Question Good Question Yearling Popular Question Good Answer Notable Question Nice Answer Notable Question Yearling javascript Yearling,NULL,NULL,0,NULL,NULL 67740,90429,1214514,Informed Necromancer,NULL,NULL,0,NULL,NULL 67741,177046,509081,Yearling Revival Necromancer Revival Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 67742,8446,78025,Yearling Necromancer Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 67743,153339,29319,Notable Question,NULL,NULL,0,NULL,NULL 67744,455410,462036,Yearling,NULL,NULL,0,NULL,NULL 67745,8587238,130468,Yearling Popular Question Popular Question Notable Question Notable Question Excavator Nice Question Yearling Popular Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 67746,439784,455029,Nice Answer Popular Question Yearling Favorite Question Great Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67747,246567,883,Yearling Yearling,NULL,NULL,0,NULL,NULL 67748,8889,261393,Commentator Informed Great Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 67749,659476,243941,Yearling Caucus Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 67750,205624,772569,Notable Question Curious Nice Answer Critic Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 67751,1619369,856179,Student Yearling Necromancer,NULL,NULL,0,NULL,NULL 67752,622342,856179,Student Yearling Necromancer,NULL,NULL,0,NULL,NULL 67753,269189,673479,NULL,NULL,NULL,0,NULL,NULL 67754,7170,149211,NULL,NULL,NULL,0,NULL,NULL 67755,6864,22890,Nice Answer Enlightened Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 67756,235723,151433,Notable Question Yearling Guru Revival Popular Question Revival Yearling Popular Question Nice Question Yearling Custodian Custodian Necromancer,NULL,NULL,0,NULL,NULL 67757,12191,209566,Nice Question Popular Question Documentation Pioneer Yearling Caucus Notable Question Notable Question Great Answer Nice Answer Caucus Documentation User Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 67758,3874702,273473,NULL,NULL,NULL,0,NULL,NULL 67759,64600,388980,spring-mvc Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer Yearling Custodian Enthusiast spring spring-test Good Answer Caucus Great Answer Nice Answer Nice Answer Enlightened Nice Answer Quorum junit Announcer Announcer Revival Nice Answer Revival Good Answer Yearling Caucus Good Answer spring-boot Announcer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Announcer junit5 Good Answer Nice Answer Nice Answer Enlightened java Announcer Nice Answer Enlightened Announcer Announcer Announcer Good Answer Announcer Announcer Nice Answer Enlightened Yearling Nice Answer Enlightened Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67760,96179,1281693,NULL,NULL,NULL,0,NULL,NULL 67761,107768,4927,Nice Answer Enlightened Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 67762,931295,771413,NULL,NULL,NULL,0,NULL,NULL 67763,88592,594760,Popular Question Yearling Nice Question Popular Question Good Question Necromancer,NULL,NULL,0,NULL,NULL 67764,47152,1244106,NULL,NULL,NULL,0,NULL,NULL 67765,1037194,1207620,NULL,NULL,NULL,0,NULL,NULL 67766,185965,679667,Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 67767,417536,363954,Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67768,133492,147549,NULL,NULL,NULL,0,NULL,NULL 67769,502541,600110,Nice Answer Yearling Announcer Nice Answer Enlightened Popular Question Yearling Nice Question Nice Answer Enlightened Announcer Nice Answer Yearling Good Answer Nice Answer,NULL,ZipFile testzip returning different results on Python and Python python python python unzip zipfile pUsing the codezipfile code module to unzip large data file in Python works correctly on Python but produces the following error on Python pp codeBadZipFile Bad CRC 32 for file myfile csv code ppI traced this to error handling code checking the CRC values ppUsing codeZipFile testzip code on Python returns nothing all files are fine Running it on Python returns code myfile csv code indicating problem with that file ppCode to reproduce on both Python and Python involves 300 MB download sorry ppre codeimport zipfileimport urllibimport sysurl https de iplantcollaborative org anon files iplant home shared commons repo curated Vertnet Amphibia Sep2016 VertNet Amphibia Sept2016 zip if sys version info gt urllib request urlretrieve url vertnet latest amphibians zip else urllib urlretrieve url vertnet latest amphibians zip archive zipfile ZipFile vertnet latest amphibians zip archive testzip code prepDoes anyone understand why this difference exists and if there way to get Python to properly extract the file using ppre codearchive extract vertnet latest amphibians csv code pre can recreate this with 12 working and failing ve got to leave this now but did verify that the CRC in the ZipInfo is the same in both Python versions so think this is difference in CRC32 computation As side note my version of zip which haven updated since 2010 also thinks this file is broken,0,NULL,NULL 67770,7594,140942,Yearling Yearling Scholar,NULL,NULL,0,NULL,NULL 67771,9308,118631,Populist Announcer Necromancer Notable Question Necromancer Guru Necromancer iphone Yearling Announcer Revival Necromancer Self-Learner Great Answer Necromancer Necromancer Nice Answer Necromancer Necromancer Necromancer Nice Answer Nice Answer Necromancer Announcer Yearling objective-c Necromancer Necromancer Necromancer Good Answer Yearling Populist,NULL,strongYou can go from scoped back to real Your best bet is converting all of them to scoped strong It pretty easy pblockquote href https graph facebook com ids REAL ID amp access token APP ID APP SECRET rel nofollow https graph facebook com ids REAL ID amp access token APP ID APP SECRET blockquotepHere some simple Ruby code that does this ppre coderequire open uri require json json JSON load open https graph facebook com ids real id amp access token FACEBOOK APP ID FACEBOOK APP SECRET scoped id app scoped user id match json real id to link code pre Haven used this since after months after posted this answer Best of luck,0,NULL,NULL 67772,880700,118631,Populist Announcer Necromancer Notable Question Necromancer Guru Necromancer iphone Yearling Announcer Revival Necromancer Self-Learner Great Answer Necromancer Necromancer Nice Answer Necromancer Necromancer Necromancer Nice Answer Nice Answer Necromancer Announcer Yearling objective-c Necromancer Necromancer Necromancer Good Answer Yearling Populist,NULL,strongYou can go from scoped back to real Your best bet is converting all of them to scoped strong It pretty easy pblockquote href https graph facebook com ids REAL ID amp access token APP ID APP SECRET rel nofollow https graph facebook com ids REAL ID amp access token APP ID APP SECRET blockquotepHere some simple Ruby code that does this ppre coderequire open uri require json json JSON load open https graph facebook com ids real id amp access token FACEBOOK APP ID FACEBOOK APP SECRET scoped id app scoped user id match json real id to link code pre Haven used this since after months after posted this answer Best of luck,0,NULL,NULL 67773,12028,151166,Necromancer Notable Question Yearling Famous Question,NULL,,0,, 67774,178174,1156601,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67775,751650,200269,Popular Question,NULL,NULL,0,NULL,NULL 67776,38510,1087001,Curious Revival Documentation Pioneer Yearling Yearling Custodian Custodian Yearling Yearling Popular Question Caucus Yearling Nice Answer Nice Answer Caucus Documentation User Good Answer Civic Duty Custodian go Nice Answer Enlightened Yearling Disciplined Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67777,6318,170336,Guru Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 67778,323092,577249,NULL,NULL,NULL,0,NULL,NULL 67779,37021,102036,Famous Question Census,NULL,NULL,0,NULL,NULL 67780,397810,204281,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 67781,797946,605721,Yearling Informed Populist Yearling Caucus,NULL,NULL,0,NULL,NULL 67782,205201,1012077,NULL,NULL,NULL,0,NULL,NULL 67783,335231,1159719,Yearling Necromancer Caucus Yearling Yearling Great Answer Custodian,NULL,NULL,0,NULL,NULL 67784,229341,370663,NULL,NULL,NULL,0,NULL,NULL 67785,834527,1295088,Yearling Notable Question Good Answer Necromancer Popular Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 67786,948444,143410,NULL,NULL,NULL,0,NULL,NULL 67787,160552,642227,NULL,NULL,NULL,0,NULL,NULL 67788,103237,91579,Popular Question Yearling Popular Question Custodian Notable Question Good Question Yearling Notable Question Famous Question Popular Question Yearling Famous Question Popular Question Notable Question Benefactor Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67789,1472447,428,Popular Question Famous Question Good Question Necromancer Yearling Popular Question Caucus Good Question Nice Answer Good Question Notable Question Yearling Nice Answer Custodian Popular Question Nice Question Nice Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 67790,203505,1121030,NULL,NULL,NULL,0,NULL,NULL 67791,218532,841535,NULL,NULL,NULL,0,NULL,NULL 67792,34902,1023607,Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 67793,1070190,1231166,Teacher Supporter,NULL,NULL,0,NULL,NULL 67794,896890,1322270,NULL,NULL,NULL,0,NULL,NULL 67795,82909,188039,Famous Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 67796,254517,1198179,NULL,NULL,NULL,0,NULL,NULL 67797,277337,584108,Yearling Good Question Notable Question Critic Famous Question Revival Popular Question Revival,NULL,NULL,0,NULL,NULL 67798,75088,1094517,NULL,NULL,NULL,0,NULL,NULL 67799,84818,1237494,Revival Yearling Nice Answer Good Answer Caucus Good Answer Famous Question Good Question Yearling Civic Duty Caucus Constituent Yearling Nice Answer Revival Tumbleweed,NULL,NULL,0,NULL,NULL 67800,203063,1130647,Supporter,NULL,NULL,0,NULL,NULL 67801,1173833,1533925,Popular Question,NULL,NULL,0,NULL,NULL 67802,331036,466713,Good Question,NULL,NULL,0,NULL,NULL 67803,307214,1111752,NULL,NULL,NULL,0,NULL,NULL 67804,2101321,706677,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67805,2421061,454748,NULL,NULL,NULL,0,NULL,NULL 67806,82679,454748,NULL,NULL,NULL,0,NULL,NULL 67807,677086,744180,Popular Question Notable Question Good Answer Yearling Popular Question Favorite Question Yearling Good Question Notable Question Famous Question Popular Question Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 67808,46970,1189398,Notable Question Enthusiast Famous Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 67809,51988,207434,Commentator Yearling Caucus,NULL,NULL,0,NULL,NULL 67810,920045,1485203,Student Scholar,NULL,NULL,0,NULL,NULL 67811,166602,1127302,Peer Pressure Commentator,NULL,NULL,0,NULL,NULL 67812,1252530,584696,NULL,NULL,NULL,0,NULL,NULL 67813,20157,721376,Famous Question Famous Question Guru Notable Question Guru Revival Yearling Popular Question Necromancer Good Question Nice Answer Good Answer Favorite Question Popular Question Yearling Nice Answer Notable Question Yearling Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 67814,742501,642245,Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 67815,89519,648193,Supporter,NULL,NULL,0,NULL,NULL 67816,2745785,285895,NULL,NULL,NULL,0,NULL,NULL 67817,374812,1183294,Yearling Notable Question Yearling Curious Yearling,NULL,NULL,0,NULL,NULL 67818,55705,445234,NULL,NULL,NULL,0,NULL,NULL 67819,75169,634331,Yearling Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67820,1526915,366075,Nice Question Popular Question Yearling Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 67821,394518,1522126,NULL,NULL,NULL,0,NULL,NULL 67822,177237,135396,Necromancer Yearling Nice Answer Nice Answer Peer Pressure Favorite Question Great Question Promoter Popular Question Great Answer Yearling Civic Duty Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 67823,217367,296439,Notable Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 67824,323821,436863,NULL,NULL,NULL,0,NULL,NULL 67825,311517,126132,Famous Question Popular Question Popular Question Yearling Census,NULL,NULL,0,NULL,NULL 67826,1101378,496944,NULL,NULL,NULL,0,NULL,NULL 67827,599772,498206,Popular Question,NULL,NULL,0,NULL,NULL 67828,8857,323659,Nice Answer Enlightened Popular Question Documentation User Announcer,NULL,NULL,0,NULL,NULL 67829,179900,376407,NULL,NULL,NULL,0,NULL,NULL 67830,894682,1294330,NULL,NULL,NULL,0,NULL,NULL 67831,68034,27153,Notable Question,NULL,NULL,0,NULL,NULL 67832,1086786,457413,Yearling,NULL,NULL,0,NULL,NULL 67833,471350,639349,Notable Question Promoter Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 67834,45740,1393211,Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67835,6335948,1393211,Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67836,150380,772109,NULL,NULL,NULL,0,NULL,NULL 67837,64994,188752,Self-Learner Yearling Caucus Good Answer Popular Question Nice Question Yearling Census Notable Question,NULL,pProbably the simplest way is to use PlistBuddy have Run Script phase that looks like this ppre codeBUILD NUMBER git rev list HEAD count INFO PLIST BUILT PRODUCTS DIR INFOPLIST PATH if BUILT PRODUCTS DIR INFOPLIST PATH then oldversion usr libexec PlistBuddy Print CFBundleVersion INFO PLIST fiif BUILD NUMBER oldversion then usr libexec PlistBuddy Set CFBundleVersion BUILD NUMBER INFO PLIST fi code prep Note that starting with Xcode you have to run this emafter em the Copy Bundle Resources phase because codeInfo plist code isn copied to the target location until then and PlistBuddy would fail ppEdit 01 17 Updated to avoid unnecessary copying or signing of targets You don’t want to touch Info plist unless something really changes otherwise Xcode will treat it and thus the target as modified Checking previous value codeCFBundleVersion code can significantly speed up builds it saved me several seconds on noop build It took me forever to figure out why my script worked for regular builds but failed on archive builds It has to run after Copy Bundle Resources Thank you,0,NULL,NULL 67838,497470,1295455,NULL,NULL,NULL,0,NULL,NULL 67839,1517244,618326,NULL,NULL,NULL,0,NULL,NULL 67840,750018,205643,NULL,NULL,NULL,0,NULL,NULL 67841,437323,265134,NULL,NULL,NULL,0,NULL,NULL 67842,6174,462601,Editor Caucus Announcer Yearling,NULL,NULL,0,NULL,NULL 67843,1508875,1247445,Student Supporter Informed Autobiographer Scholar Editor,NULL,NULL,0,NULL,NULL 67844,2437243,802914,NULL,NULL,NULL,0,NULL,NULL 67845,785489,1490703,NULL,NULL,NULL,0,NULL,NULL 67846,1852957,1383448,Revival Necromancer Nice Answer Yearling Good Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 67847,210573,669378,Tumbleweed Popular Question Promoter Benefactor Notable Question,NULL,NULL,0,NULL,NULL 67848,195743,611944,NULL,NULL,NULL,0,NULL,NULL 67849,1437966,174826,Editor Yearling Necromancer,NULL,NULL,0,NULL,NULL 67850,6577149,174826,Editor Yearling Necromancer,NULL,NULL,0,NULL,NULL 67851,929486,426919,NULL,NULL,NULL,0,NULL,NULL 67852,388975,969544,Supporter Popular Question,NULL,NULL,0,NULL,NULL 67853,53532,586050,NULL,NULL,NULL,0,NULL,NULL 67854,29052,450187,Notable Question,NULL,NULL,0,NULL,NULL 67855,154516,419810,NULL,NULL,NULL,0,NULL,NULL 67856,304557,448066,Popular Question,NULL,NULL,0,NULL,NULL 67857,2150944,1487135,Notable Question Good Question Popular Question Popular Question Yearling Critic Self-Learner Good Question Notable Question Citizen Patrol Custodian Custodian Yearling Inquisitive Autobiographer Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Custodian Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 67858,389395,947970,Guru Yearling Great Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 67859,338350,1236020,NULL,NULL,NULL,0,NULL,NULL 67860,35344,1311964,NULL,NULL,NULL,0,NULL,NULL 67861,820444,868533,Caucus Constituent Custodian Reviewer Yearling Deputy Yearling Caucus Constituent Yearling Documentation User Census Caucus Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 67862,222353,897002,Popular Question Notable Question Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 67863,171684,611896,NULL,NULL,NULL,0,NULL,NULL 67864,574972,376445,Famous Question Custodian Yearling Nice Question Popular Question Famous Question Notable Question Good Answer Famous Question Notable Question Nice Question Yearling Guru Famous Question Notable Question Good Question Popular Question Notable Question Yearling Famous Question Famous Question,NULL,pThe way ve done it is create fake responses this way you can test the parse function offline But you get the real situation by using real HTML ppA problem with this approach is that your local HTML file may not reflect the latest state online So if the HTML changes online you may have big bug but your test cases will still pass So it may not be the best way to test this way ppMy current workflow is whenever there is an error will sent an email to admin with the url Then for that specific error create html file with the content which is causing the error Then create unittest for it ppThis is the code use to create sample Scrapy http responses for testing from an local html file ppre code scrapyproject tests responses init pyimport osfrom scrapy http import Response Requestdef fake response from file file name url None Create Scrapy fake HTTP response from HTML file file name The relative filename from the responses directory but absolute paths are also accepted url The URL of the response returns scrapy HTTP response which can be used for unittesting if not url url http www example com request Request url url if not file name responses dir os path dirname os path realpath file file path os path join responses dir file name else file path file name file content open file path read response Response url url request request body file content response encoding utf return response code prepThe sample html file is located in scrapyproject tests responses osdir sample html ppThen the testcase could look as follows The test case location is scrapyproject tests test osdir py ppre codeimport unittestfrom scrapyproject spiders import osdir spiderfrom responses import fake response from fileclass OsdirSpiderTest unittest TestCase def setUp self self spider osdir spider DirectorySpider def test item results self results expected length count permalinks set for item in results self assertIsNotNone item content self assertIsNotNone item title self assertEqual count expected length def test parse self results self spider parse fake response from file osdir sample html self test item results results 10 code prepThat basically how test my parsing methods but its not only for parsing methods If it gets more complex suggest looking at href http code google com pymox Mox ruh well that depends where your spider is assume you wrote your own spider so you need to change the path to your own spider suggest re reading the answer and reading the scrapy docs You can just copy paste this answer you need to understand it Also this answer is from years ago there may be better ways to do it today with scrapy,0,NULL,NULL 67865,2395539,1309840,Teacher Necromancer Nice Answer Supporter,NULL,NULL,0,NULL,NULL 67866,3256432,1340563,Teacher Notable Question Custodian Popular Question Yearling Caucus Popular Question Popular Question Notable Question Critic Notable Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 67867,724278,1416079,NULL,NULL,NULL,0,NULL,NULL 67868,433078,1416079,NULL,NULL,NULL,0,NULL,NULL 67869,966405,494179,Popular Question Popular Question Citizen Patrol Popular Question Custodian Custodian Excavator Notable Question,NULL,NULL,0,NULL,NULL 67870,23935,1189471,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67871,49888,410810,Yearling Custodian Popular Question Caucus Constituent Notable Question Yearling,NULL,NULL,0,NULL,NULL 67872,519652,296542,Popular Question Famous Question Curious,NULL,NULL,0,NULL,NULL 67873,2978815,1044887,NULL,NULL,NULL,0,NULL,NULL 67874,278458,1044887,NULL,NULL,NULL,0,NULL,NULL 67875,13708,35700,Popular Question Yearling Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 67876,3594,120974,NULL,NULL,NULL,0,NULL,NULL 67877,1519663,1141679,Necromancer Popular Question Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 67878,304627,941306,NULL,NULL,NULL,0,NULL,NULL 67879,54028,523117,NULL,NULL,NULL,0,NULL,NULL 67880,283005,381750,NULL,NULL,NULL,0,NULL,NULL 67881,984252,1428699,NULL,NULL,NULL,0,NULL,NULL 67882,739628,573353,NULL,NULL,NULL,0,NULL,NULL 67883,688634,653229,NULL,NULL,NULL,0,NULL,NULL 67884,83244,1086907,Informed Teacher Scholar Student Supporter,NULL,NULL,0,NULL,NULL 67885,1131493,1115446,Popular Question Caucus Famous Question,NULL,NULL,0,NULL,NULL 67886,694360,266607,NULL,NULL,NULL,0,NULL,NULL 67887,147248,193181,Nice Answer Yearling Notable Question Yearling Stellar Question Yearling,NULL,NULL,0,NULL,NULL 67888,353476,399680,Yearling,NULL,NULL,0,NULL,NULL 67889,242098,413246,Necromancer,NULL,NULL,0,NULL,NULL 67890,31546,507220,NULL,NULL,NULL,0,NULL,NULL 67891,44373,621730,NULL,NULL,NULL,0,NULL,NULL 67892,156449,667182,NULL,NULL,NULL,0,NULL,NULL 67893,191981,1256796,NULL,NULL,NULL,0,NULL,NULL 67894,1377729,1316196,Student Popular Question,NULL,NULL,0,NULL,NULL 67895,1089993,394571,NULL,NULL,NULL,0,NULL,NULL 67896,127679,1130371,NULL,NULL,NULL,0,NULL,NULL 67897,467253,566280,NULL,NULL,NULL,0,NULL,NULL 67898,82637,390546,Supporter,NULL,NULL,0,NULL,NULL 67899,395000,754133,Editor,NULL,NULL,0,NULL,NULL 67900,1977037,1092799,NULL,NULL,NULL,0,NULL,NULL 67901,187048,631237,Notable Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 67902,36795,242066,Documentation User Good Answer,NULL,NULL,0,NULL,NULL 67903,874027,752601,Enthusiast Announcer,NULL,NULL,0,NULL,NULL 67904,155932,841344,Commentator Excavator Popular Question Critic Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67905,461476,1446590,NULL,NULL,NULL,0,NULL,NULL 67906,729408,363437,Popular Question Popular Question Nice Answer Enlightened Notable Question Yearling Great Answer Nice Answer Necromancer Caucus Nice Answer Enlightened Notable Question Inquisitive Notable Question Strunk & White Nice Answer Announcer Yearling Caucus Famous Question Nice Question Popular Question Census Announcer Notable Question Caucus Announcer Nice Answer .net Nice Answer Yearling Famous Question Notable Question,NULL,Transfer ownership of PyPI packages python pip pypi pAs per href https www python org dev peps pep 0541 rel noreferrer PEP 541 abandoned PyPI projects can now be claimed Has anyone done this Who to contact tried the href https mail python org pipermail distutils sig 2017 August 031226 html rel noreferrer dist utils mail list as well as filing href https sourceforge net pypi support requests 754 rel noreferrer ticket in the support forum but no response so far How does one actually request transfer of ownership in practice as outlined in PEP 541 Interesting How did you come up with that number Back in 2015 some cases were resolved within months Transfer ownership of PyPI packages python pip pypi pAs per href https www python org dev peps pep 0541 rel noreferrer PEP 541 abandoned PyPI projects can now be claimed Has anyone done this Who to contact tried the href https mail python org pipermail distutils sig 2017 August 031226 html rel noreferrer dist utils mail list as well as filing href https sourceforge net pypi support requests 754 rel noreferrer ticket in the support forum but no response so far How does one actually request transfer of ownership in practice as outlined in PEP 541 Yeah Wonder how to get it rolling again pShort answer ppre code dirname code prepor href http mywiki wooledge org BashFAQ 082 rel noreferrer preferably ppre code dirname code pre then nothing will,1,Transfer ownership of PyPI packages python pip pypi pAs per href https www python org dev peps pep 0541 rel noreferrer PEP 541 abandoned PyPI projects can now be claimed Has anyone done this Who to contact tried the href https mail python org pipermail distutils sig 2017 August 031226 html rel noreferrer dist utils mail list as well as filing href https sourceforge net pypi support requests 754 rel noreferrer ticket in the support forum but no response so far How does one actually request transfer of ownership in practice as outlined in PEP 541,NULL 67907,184667,1305302,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 67908,717597,480200,NULL,NULL,NULL,0,NULL,NULL 67909,261605,387716,Yearling Necromancer,NULL,NULL,0,NULL,NULL 67910,1358723,1380915,NULL,NULL,NULL,0,NULL,NULL 67911,106234,377907,Notable Question Yearling Popular Question Great Question Good Answer Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 67912,90266,264872,Yearling Good Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 67913,171048,402214,Caucus Announcer Announcer,NULL,,0,, 67914,214198,1364158,Popular Question Yearling Good Answer Nice Question Custodian Yearling Civic Duty Notable Question Notable Question Nice Question Good Answer Nice Answer Enlightened Nice Answer Yearling Inquisitive Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 67915,118790,560276,Yearling Civic Duty Tag Editor Yearling Proofreader Yearling,NULL,NULL,0,NULL,NULL 67916,233113,535605,NULL,NULL,NULL,0,NULL,NULL 67917,1561936,889627,NULL,NULL,NULL,0,NULL,NULL 67918,939496,1485766,NULL,NULL,NULL,0,NULL,NULL 67919,371972,712012,NULL,NULL,NULL,0,NULL,NULL 67920,851296,150999,Nice Answer Yearling Announcer Announcer Revival Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 67921,74870,1490006,Announcer Tumbleweed Supporter Autobiographer Announcer Necromancer,NULL,NULL,0,NULL,NULL 67922,66395,801247,Editor Teacher Commentator Supporter Yearling Critic Caucus Yearling Yearling Revival Custodian Yearling Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 67923,3441345,1438745,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 67924,192106,1438745,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 67925,315388,978111,NULL,NULL,NULL,0,NULL,NULL 67926,212125,1565174,NULL,NULL,NULL,0,NULL,NULL 67927,1225099,448493,NULL,NULL,NULL,0,NULL,NULL 67928,206190,687197,Editor Teacher Revival Necromancer Necromancer Nice Answer Supporter Yearling Yearling Commentator Nice Answer Yearling,NULL,NULL,0,NULL,NULL 67929,209782,101750,Yearling Nice Answer Enlightened Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 67930,175661,1012464,NULL,NULL,NULL,0,NULL,NULL 67931,239971,1078324,Custodian Tumbleweed Informed Scholar,NULL,NULL,0,NULL,NULL 67932,9640,996156,Announcer,NULL,NULL,0,NULL,NULL 67933,452398,1060205,Notable Question Nice Answer Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Nice Answer Notable Question Notable Question Good Question Famous Question Famous Question Good Question Good Question Yearling Famous Question Famous Question Popular Question Good Question Famous Question Popular Question Nice Answer Popular Question Good Question Custodian Necromancer Popular Question Yearling Great Question Notable Question Famous Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67934,212540,1166777,Tumbleweed Popular Question Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67935,366964,1085893,NULL,NULL,NULL,0,NULL,NULL 67936,1433598,1085886,NULL,NULL,NULL,0,NULL,NULL 67937,258109,604896,NULL,NULL,NULL,0,NULL,NULL 67938,186495,947020,NULL,NULL,NULL,0,NULL,NULL 67939,262414,258023,NULL,NULL,NULL,0,NULL,NULL 67940,664205,521921,Popular Question Yearling,NULL,NULL,0,NULL,NULL 67941,349900,501313,Notable Question,NULL,NULL,0,NULL,NULL 67942,415437,592658,NULL,NULL,NULL,0,NULL,NULL 67943,309943,134494,Enthusiast,NULL,NULL,0,NULL,NULL 67944,193202,891597,NULL,NULL,NULL,0,NULL,NULL 67945,84733,32465,Nice Answer Nice Answer Enlightened Guru Good Answer Great Answer Notable Question Yearling Nice Answer Great Answer Good Answer Nice Answer Great Answer Popular Question Nice Answer Nice Answer Great Answer Nice Answer Yearling Nice Answer Great Answer Great Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 67946,13843,256996,Popular Question Announcer Teacher Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 67947,78,8717,Curious Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 67948,1472169,8717,Curious Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 67949,3338070,573055,NULL,NULL,NULL,0,NULL,NULL 67950,204784,700682,NULL,NULL,NULL,0,NULL,NULL 67951,374828,640170,Caucus Census,NULL,NULL,0,NULL,NULL 67952,907528,1343622,NULL,NULL,NULL,0,NULL,NULL 67953,208209,962714,NULL,NULL,NULL,0,NULL,NULL 67954,637935,680427,NULL,NULL,NULL,0,NULL,NULL 67955,72356,211520,Critic Yearling Nice Answer Scholar Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 67956,1522976,193973,Notable Question Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67957,286954,964174,Informed Autobiographer,NULL,NULL,0,NULL,NULL 67958,42986,66815,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 67959,186170,15935,Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 67960,227308,719087,NULL,NULL,NULL,0,NULL,NULL 67961,161725,1335076,Promoter Tumbleweed Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67962,269564,1407497,Necromancer Supporter Tumbleweed Revival,NULL,NULL,0,NULL,NULL 67963,258023,112821,Informed Yearling Yearling Nice Answer Yearling Caucus Custodian Enlightened Organizer Commentator Nice Answer Yearling Nice Answer Good Answer Yearling Caucus Critic Custodian Documentation User Yearling Guru Yearling Good Answer amazon-ecs Caucus Yearling Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 67964,765973,1501303,NULL,NULL,NULL,0,NULL,NULL 67965,1538347,68880,Popular Question,NULL,NULL,0,NULL,NULL 67966,363633,565256,Popular Question,NULL,NULL,0,NULL,NULL 67967,2683300,1026424,Informed Supporter,NULL,NULL,0,NULL,NULL 67968,137901,435182,NULL,NULL,NULL,0,NULL,NULL 67969,103714,465398,Tumbleweed,NULL,NULL,0,NULL,NULL 67970,321684,933622,Yearling Great Answer,NULL,NULL,0,NULL,NULL 67971,409815,1408231,NULL,NULL,NULL,0,NULL,NULL 67972,614268,1565336,Self-Learner Notable Question Custodian Curious Popular Question Yearling,NULL,NULL,0,NULL,NULL 67973,662603,154573,Nice Answer Enlightened Popular Question Yearling Good Answer Yearling Good Answer Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 67974,455941,1013598,Nice Answer Enlightened Yearling Nice Answer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 67975,195966,1171096,Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 67976,6341451,1171096,Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 67977,50516,42751,Yearling Necromancer Notable Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 67978,183746,738503,Custodian Nice Answer Popular Question Yearling Notable Question Famous Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 67979,226185,1194903,NULL,NULL,NULL,0,NULL,NULL 67980,25603,87158,Famous Question Necromancer Necromancer Nice Question Notable Question Yearling Famous Question Nice Answer Enlightened Famous Question Guru Popular Question Nice Answer Nice Question Good Question Necromancer Notable Question Great Answer Popular Question Famous Question Famous Question Yearling Famous Question Altruist Good Question Good Question Good Answer Necromancer Popular Question Popular Question Great Answer Great Answer Yearling cocoa-touch,NULL,,0,, 67981,29926,503960,NULL,NULL,NULL,0,NULL,NULL 67982,548888,112828,NULL,NULL,NULL,0,NULL,NULL 67983,650847,576110,NULL,NULL,NULL,0,NULL,NULL 67984,528120,1154988,NULL,NULL,NULL,0,NULL,NULL 67985,1516539,4734,Great Question Custodian Yearling Great Answer Populist Good Answer Yearling Populist Census Good Answer Yearling,NULL,NULL,0,NULL,NULL 67986,1212912,1481273,NULL,NULL,NULL,0,NULL,NULL 67987,1054742,603136,Popular Question Popular Question Yearling Popular Question Yearling Good Answer Necromancer Caucus Custodian Famous Question Popular Question Yearling Necromancer Nice Question Custodian Custodian Peer Pressure Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 67988,357593,600987,NULL,NULL,NULL,0,NULL,NULL 67989,9733,604041,Great Answer Yearling Good Answer Nice Answer Student Nice Answer Guru Good Answer Announcer Yearling symfony Popular Question Good Answer Notable Question ruby Yearling Good Answer,NULL,NULL,0,NULL,NULL 67990,139595,658428,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 67991,2139233,795060,NULL,NULL,NULL,0,NULL,NULL 67992,1149545,1102846,Notable Question,NULL,NULL,0,NULL,NULL 67993,1333793,859949,NULL,NULL,NULL,0,NULL,NULL 67994,319635,101019,Necromancer Scholar Student Yearling Critic,NULL,NULL,0,NULL,NULL 67995,1210309,1271840,Good Answer Yearling Guru Yearling Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 67996,3449,861027,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 67997,2436872,840419,Curious Notable Question Popular Question Nice Question Yearling Popular Question Caucus Constituent Nice Answer Notable Question Critic Notable Question Caucus Constituent Popular Question Announcer Popular Question Nice Question Caucus Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 67998,34060,967358,Necromancer Necromancer Yearling Nice Answer Necromancer Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 67999,431642,644830,NULL,NULL,NULL,0,NULL,NULL 68000,925152,1564201,Yearling Good Answer,NULL,NULL,0,NULL,NULL 68001,230122,688509,NULL,NULL,NULL,0,NULL,NULL 68002,493078,441692,Yearling Nice Answer Caucus Constituent Yearling Caucus Constituent Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 68003,666683,334856,NULL,NULL,NULL,0,NULL,NULL 68004,200548,1226902,NULL,NULL,NULL,0,NULL,NULL 68005,75958,257327,NULL,NULL,NULL,0,NULL,NULL 68006,187469,398602,NULL,NULL,NULL,0,NULL,NULL 68007,6285092,981437,Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 68008,336682,981437,Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 68009,292673,898347,Necromancer Yearling Excavator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68010,428834,723453,NULL,NULL,NULL,0,NULL,NULL 68011,237378,797387,Nice Answer,NULL,NULL,0,NULL,NULL 68012,2197541,294552,Necromancer Great Question Yearling Popular Question Famous Question Nice Answer Caucus Yearling Popular Question Electorate Notable Question Notable Question Yearling Revival Stellar Question Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 68013,94143,294552,Necromancer Great Question Yearling Popular Question Famous Question Nice Answer Caucus Yearling Popular Question Electorate Notable Question Notable Question Yearling Revival Stellar Question Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 68014,165688,1467207,Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 68015,9228208,1467207,Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 68016,194719,942129,Editor,NULL,NULL,0,NULL,NULL 68017,370273,290232,NULL,NULL,NULL,0,NULL,NULL 68018,69636,172850,Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 68019,224086,233169,Notable Question,NULL,NULL,0,NULL,NULL 68020,163587,1044366,Custodian Custodian Yearling Caucus Constituent Good Answer Popular Question Good Question Guru Yearling Notable Question Stellar Question Yearling,NULL,NULL,0,NULL,NULL 68021,696543,1011343,NULL,NULL,NULL,0,NULL,NULL 68022,4927569,1011343,NULL,NULL,NULL,0,NULL,NULL 68023,226077,186617,NULL,NULL,NULL,0,NULL,NULL 68024,328831,1466540,NULL,NULL,NULL,0,NULL,NULL 68025,7653908,939284,Supporter Student,NULL,NULL,0,NULL,NULL 68026,92194,939284,Supporter Student,NULL,NULL,0,NULL,NULL 68027,6934702,1427640,NULL,NULL,NULL,0,NULL,NULL 68028,138838,1446823,NULL,NULL,NULL,0,NULL,NULL 68029,1852149,1132350,Popular Question,NULL,NULL,0,NULL,NULL 68030,186974,1308247,NULL,NULL,NULL,0,NULL,NULL 68031,417761,1004898,Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 68032,380919,997,Nice Question Popular Question Notable Question Yearling Civic Duty Notable Question Popular Question Good Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68033,99614,392825,NULL,NULL,NULL,0,NULL,NULL 68034,485541,813192,Nice Answer Nice Answer Enlightened Yearling ipv4 Enthusiast Civic Duty Nice Answer Enlightened Nice Answer Yearling Custodian ipv6 Yearling Good Answer Explainer,NULL,pFirst of all IPv6 doesn have network and broadcast addresses You can use all addresses in prefix Second On LAN the prefix length is always well 99 of the time 64 Routing 68 would break IPv6 features like stateless auto configuration ppBelow is verbose implementation of an IPv6 prefix calculator ppre code lt php This is definitely not the fastest way to do it An example prefix prefix 2001 db8 abc 1400 54 Split in address and prefix lengthlist firstaddrstr prefixlen explode prefix Parse the address into binary string firstaddrbin inet pton firstaddrstr Convert the binary string to string with hexadecimal characters unpack can be replaced with bin2hex unpack is used for symmetry with pack below firstaddrhex reset unpack firstaddrbin Overwriting first address string to make sure notation is optimal firstaddrstr inet ntop firstaddrbin Calculate the number of flexible bits flexbits 128 prefixlen Build the hexadecimal string of the last address lastaddrhex firstaddrhex We start at the end of the string which is always 32 characters long pos 31 while flexbits gt Get the character at this position orig substr lastaddrhex pos Convert it to an integer origval hexdec orig OR it with flexbits with flexbits limited to at time newval origval pow min flexbits Convert it back to hexadecimal character new dechex newval And put that character back in the string lastaddrhex substr replace lastaddrhex new pos We processed one nibble move to previous position flexbits pos Convert the hexadecimal string to binary string Using pack here Newer PHP version can use hex2bin lastaddrbin pack lastaddrhex And create an IPv6 address from the binary string lastaddrstr inet ntop lastaddrbin Report to userecho Prefix prefix echo First firstaddrstr echo Last lastaddrstr gt code prepIt should output ppre codePrefix 2001 db8 abc 1400 54First 2001 db8 abc 1400 Last 2001 db8 abc 17ff ffff ffff ffff ffff code pre Yes it does just checked,0,NULL,NULL 68035,526822,1383311,NULL,NULL,NULL,0,NULL,NULL 68036,36215,1558785,Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 68037,28596,1188666,NULL,NULL,NULL,0,NULL,NULL 68038,93752,695494,NULL,NULL,NULL,0,NULL,NULL 68039,459802,1490643,Notable Question,NULL,NULL,0,NULL,NULL 68040,768179,1136271,NULL,NULL,NULL,0,NULL,NULL 68041,1728556,215484,Teacher Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68042,61095,629873,Notable Question Necromancer Yearling Popular Question Good Answer Good Question Good Answer Nice Answer Yearling Nice Answer Necromancer Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 68043,164683,911202,Necromancer Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 68044,142945,464552,Nice Answer java Taxonomist Yearling Caucus Notable Question Necromancer Revival Revival Caucus Yearling Self-Learner Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 68045,1447891,684465,NULL,NULL,NULL,0,NULL,NULL 68046,85976,198990,Famous Question Good Question Popular Question Popular Question Yearling Caucus Guru Popular Question Great Answer Caucus Popular Question Yearling Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 68047,669479,277137,NULL,NULL,NULL,0,NULL,NULL 68048,776880,1218353,NULL,NULL,NULL,0,NULL,NULL 68049,117979,262534,Yearling Good Answer Notable Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 68050,55552,925964,Notable Question Yearling Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 68051,330566,437697,NULL,NULL,NULL,0,NULL,NULL 68052,562984,885789,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68053,335151,491711,Editor Informed Critic Documentation User,NULL,NULL,0,NULL,NULL 68054,1255972,1039517,Notable Question Benefactor Good Answer Famous Question Yearling Popular Question Popular Question Popular Question Necromancer Excavator Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 68055,243941,1057757,NULL,NULL,NULL,0,NULL,NULL 68056,2644475,1057757,NULL,NULL,NULL,0,NULL,NULL 68057,122126,274699,Nice Answer Yearling Yearling Civic Duty Famous Question Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 68058,2233416,1234424,Scholar,NULL,NULL,0,NULL,NULL 68059,304420,1068677,Nice Question Popular Question Notable Question Nice Question Notable Question Inquisitive Popular Question Popular Question Popular Question Yearling Famous Question Nice Question Popular Question Nice Answer Yearling Notable Question Popular Question symfony Famous Question Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 68060,137654,75239,Yearling Popular Question Notable Question Famous Question Taxonomist Popular Question Yearling Nice Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 68061,379067,286650,Yearling Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 68062,208381,1526558,NULL,NULL,NULL,0,NULL,NULL 68063,208395,1058929,NULL,NULL,NULL,0,NULL,NULL 68064,136423,62780,Popular Question Yearling Famous Question Popular Question Custodian Nice Question Yearling Custodian Yearling Custodian Caucus Excavator Nice Question,NULL,NULL,0,NULL,NULL 68065,12518,168702,Popular Question Yearling Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 68066,434954,1171049,Yearling Popular Question Caucus Yearling Popular Question Popular Question Civic Duty Announcer Nice Answer Enlightened Custodian Yearling Explainer Custodian Custodian Excavator Good Answer Caucus Constituent Guru Popular Question,NULL,NULL,0,NULL,NULL 68067,276322,568901,Civic Duty Yearling Critic Citizen Patrol Curious Autobiographer Popular Question Caucus Constituent Documentation User Notable Question Yearling Census Caucus Enthusiast,NULL,NULL,0,NULL,NULL 68068,193778,1306424,Teacher,NULL,NULL,0,NULL,NULL 68069,348023,244266,Necromancer,NULL,NULL,0,NULL,NULL 68070,479350,434135,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68071,165391,952106,NULL,NULL,NULL,0,NULL,NULL 68072,315292,1033452,NULL,NULL,NULL,0,NULL,NULL 68073,148684,52,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 68074,378015,792120,NULL,NULL,NULL,0,NULL,NULL 68075,894927,1239116,NULL,NULL,NULL,0,NULL,NULL 68076,1049853,1234517,Teacher,NULL,NULL,0,NULL,NULL 68077,72109,224139,Popular Question,NULL,NULL,0,NULL,NULL 68078,208273,810687,Editor Revival Necromancer Revival Yearling Nice Answer Caucus Yearling Critic Notable Question Necromancer Yearling Necromancer Good Answer Caucus Scholar Curious Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68079,60867,509408,Popular Question,NULL,NULL,0,NULL,NULL 68080,844011,1079107,NULL,NULL,NULL,0,NULL,NULL 68081,514353,431534,Popular Question Yearling Census Notable Question,NULL,NULL,0,NULL,NULL 68082,181582,1077218,NULL,NULL,NULL,0,NULL,NULL 68083,187406,360998,Yearling Yearling Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 68084,1083917,1057286,Yearling Yearling Peer Pressure Critic Autobiographer Caucus Popular Question Famous Question Caucus,NULL,NULL,0,NULL,NULL 68085,211902,1554179,NULL,NULL,NULL,0,NULL,NULL 68086,1064289,1513540,NULL,NULL,NULL,0,NULL,NULL 68087,375628,226179,NULL,NULL,NULL,0,NULL,NULL 68088,200752,153586,Nice Question Famous Question Notable Question Yearling Good Question Good Question Yearling Popular Question Notable Question Caucus Yearling Good Question Popular Question Custodian Popular Question Popular Question Inquisitive Census Revival Notable Question Revival Popular Question Caucus Famous Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Custodian Famous Question Civic Duty Notable Question Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 68089,604934,153586,Nice Question Famous Question Notable Question Yearling Good Question Good Question Yearling Popular Question Notable Question Caucus Yearling Good Question Popular Question Custodian Popular Question Popular Question Inquisitive Census Revival Notable Question Revival Popular Question Caucus Famous Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Custodian Famous Question Civic Duty Notable Question Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 68090,205249,1302266,Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68091,1517259,986475,Yearling Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 68092,199387,1006334,Notable Question,NULL,NULL,0,NULL,NULL 68093,118786,984556,Revival Necromancer,NULL,NULL,0,NULL,NULL 68094,95091,1047268,Famous Question Nice Answer Enlightened Tenacious Nice Answer Popular Question Yearling Self-Learner Nice Answer Enlightened Necromancer Custodian Popular Question Good Answer Nice Answer Announcer Documentation User Guru Popular Question Yearling Notable Question Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 68095,421186,1132465,NULL,NULL,NULL,0,NULL,NULL 68096,1507650,130934,Supporter,NULL,NULL,0,NULL,NULL 68097,44213,1103409,Citizen Patrol Popular Question Enthusiast Popular Question Popular Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 68098,207345,212416,NULL,NULL,NULL,0,NULL,NULL 68099,5481413,668063,NULL,NULL,NULL,0,NULL,NULL 68100,344862,668063,NULL,NULL,NULL,0,NULL,NULL 68101,329081,196207,Student Yearling Self-Learner,NULL,NULL,0,NULL,NULL 68102,113701,764853,NULL,NULL,NULL,0,NULL,NULL 68103,765109,930883,Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 68104,2532443,1313770,NULL,NULL,NULL,0,NULL,NULL 68105,383284,845613,NULL,NULL,NULL,0,NULL,NULL 68106,184583,1321329,NULL,NULL,NULL,0,NULL,NULL 68107,186265,923394,Popular Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68108,2601352,424288,NULL,NULL,NULL,0,NULL,NULL 68109,13947,317796,Documentation Pioneer Critic Popular Question Caucus Documentation User Notable Question Yearling Commentator Excavator Caucus Notable Question,NULL,NULL,0,NULL,NULL 68110,36719,491957,Popular Question Yearling Famous Question Nice Answer Enlightened Nice Question Popular Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 68111,14278,1035246,Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 68112,1072188,657843,NULL,NULL,NULL,0,NULL,NULL 68113,39196,158187,NULL,NULL,NULL,0,NULL,NULL 68114,740354,1553620,Revival Notable Question,NULL,NULL,0,NULL,NULL 68115,531211,1090198,Necromancer Revival Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 68116,38368,805366,Good Answer Yearling Announcer Editor Announcer,NULL,NULL,0,NULL,NULL 68117,341636,1359574,Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 68118,156995,679671,Yearling Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Famous Question Popular Question Favorite Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 68119,882384,838285,Popular Question,NULL,NULL,0,NULL,NULL 68120,1351119,247858,NULL,NULL,NULL,0,NULL,NULL 68121,551564,713322,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68122,113509,1006569,Nice Answer,NULL,NULL,0,NULL,NULL 68123,126883,817266,NULL,NULL,NULL,0,NULL,NULL 68124,860316,989227,Tag Editor Enthusiast Editor Excavator Scholar Critic Caucus Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 68125,131783,986725,NULL,NULL,NULL,0,NULL,NULL 68126,264590,753124,Supporter,NULL,NULL,0,NULL,NULL 68127,117245,281890,NULL,NULL,NULL,0,NULL,NULL 68128,195289,197376,Nice Question,NULL,NULL,0,NULL,NULL 68129,10483009,1135812,NULL,NULL,NULL,0,NULL,NULL 68130,392685,1135812,NULL,NULL,NULL,0,NULL,NULL 68131,90786,465879,NULL,NULL,NULL,0,NULL,NULL 68132,1169180,895972,NULL,NULL,NULL,0,NULL,NULL 68133,853367,1124271,Yearling,NULL,NULL,0,NULL,NULL 68134,521020,488191,Nice Question Custodian Yearling Quorum Documentation Pioneer Organizer Yearling Necromancer Revival Necromancer Famous Question Documentation User Yearling Necromancer Census Custodian Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 68135,141753,335549,Yearling Notable Question Notable Question Nice Answer Yearling Nice Answer Enlightened Revival Documentation User cq5 Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68136,668302,818104,Yearling Nice Answer Enlightened Caucus Caucus Yearling Promoter Nice Question Benefactor,NULL,NULL,0,NULL,NULL 68137,19704,1528522,Teacher,NULL,NULL,0,NULL,NULL 68138,621951,1285840,NULL,NULL,NULL,0,NULL,NULL 68139,1101752,436007,Nice Answer Enlightened Yearling Necromancer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 68140,233090,574962,NULL,NULL,NULL,0,NULL,NULL 68141,11005,164529,Yearling,NULL,NULL,0,NULL,NULL 68142,850212,1094267,NULL,NULL,NULL,0,NULL,NULL 68143,55840,154163,Famous Question Yearling Nice Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 68144,231446,1149918,NULL,NULL,NULL,0,NULL,NULL 68145,183416,884469,NULL,NULL,NULL,0,NULL,NULL 68146,126099,420791,Popular Question Good Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 68147,1757662,930881,NULL,NULL,NULL,0,NULL,NULL 68148,893225,1124299,NULL,NULL,NULL,0,NULL,NULL 68149,244038,186418,Popular Question Nice Question Yearling Notable Question Nice Question Famous Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 68150,3634,894264,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68151,33665,302831,Yearling Favorite Question Nice Question Notable Question Nice Answer Enlightened Notable Question python Popular Question Nice Question Nice Answer Nice Answer Famous Question Nice Answer Nice Answer Enlightened Good Answer Yearling Famous Question Good Answer Yearling Good Answer Good Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 68152,378409,115278,Famous Question Nice Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 68153,159108,349961,Good Question Good Answer Necromancer Popular Question Yearling Nice Answer Enlightened Nice Answer Famous Question Nice Answer ruby-on-rails Caucus Yearling Revival Documentation User Good Answer Notable Question Yearling Revival Nice Answer,NULL,NULL,0,NULL,NULL 68154,44108,509625,Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 68155,886150,1046278,Yearling Yearling Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 68156,40291,18382,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68157,8608154,361102,NULL,NULL,NULL,0,NULL,NULL 68158,138514,1207745,Yearling,NULL,NULL,0,NULL,NULL 68159,3246164,765273,NULL,NULL,NULL,0,NULL,NULL 68160,158561,125814,NULL,NULL,NULL,0,NULL,NULL 68161,356499,872314,Notable Question,NULL,NULL,0,NULL,NULL 68162,132761,899937,Yearling Good Answer Caucus Constituent Nice Answer Civic Duty Caucus Constituent Yearling Revival Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 68163,2805,530870,NULL,NULL,NULL,0,NULL,NULL 68164,131242,987337,Critic Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68165,259542,1152086,NULL,NULL,NULL,0,NULL,NULL 68166,401166,1047882,NULL,NULL,NULL,0,NULL,NULL 68167,1022286,982508,NULL,NULL,NULL,0,NULL,NULL 68168,233718,1087953,NULL,NULL,NULL,0,NULL,NULL 68169,42166,1118760,NULL,NULL,NULL,0,NULL,NULL 68170,9176,248133,NULL,NULL,NULL,0,NULL,NULL 68171,1517544,163352,Yearling Nice Question Nice Question Yearling Famous Question Good Question Good Question,NULL,NULL,0,NULL,NULL 68172,1072026,520820,NULL,NULL,NULL,0,NULL,NULL 68173,103022,1449924,NULL,NULL,NULL,0,NULL,NULL 68174,346724,41562,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 68175,1069278,116144,Nice Answer,NULL,NULL,0,NULL,NULL 68176,109429,797318,NULL,NULL,NULL,0,NULL,NULL 68177,207431,1015403,Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 68178,300388,1501349,NULL,NULL,NULL,0,NULL,NULL 68179,887957,402216,Notable Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 68180,60088,682349,Revival Yearling Popular Question Nice Answer Custodian Necromancer Tumbleweed Promoter Popular Question Caucus Notable Question Revival Nice Question Organizer Yearling Notable Question Revival Popular Question Census Necromancer Yearling Revival Nice Answer,NULL,NULL,1,SailsJS through association how to create association postgresql sails js waterline pI using strongSails 12 strong and strongpostgresql strong on Mac OSX 10 10 and attempting to implement href http sailsjs org documentation concepts models and orm associations through associations rel nofollow noreferrer through association ppI ve set up two models with third as the join table When attempt to test that it is all set up by creating relationship get this error pblockquotepre code Uncaught TypeError Cannot read property via of undefined code pre blockquotepHere my strongtest strong strongmocha chai strong think the error is actually in this method of creating the association since if create the model for the join as separate call it works ppre code describe with orgs function beforeEach function done var testEmail sue com var orgName Awesome Org Org create name orgName then function org return User create username testEmail orgs org then function user done catch done it populates empty list of orgs function done console log about to call find User find populate orgs then function users console log users users var user users assert isNotNull user orgs assert equal user orgs length done catch done code prepHere are my models pp strongUser js strong ppre codemodule exports attributes username type email orgs collection org via user through orgmembership code prep strongOrg js strong ppre codemodule exports attributes name string users collection user via org through orgmembership code prep strongOrgMembership js strong ppre codemodule exports tableName org membership attributes user model User columnName user id foreignKey true org model Org columnName org id foreignKey true code prepI ve posted the whole project on href https github com ultrasaurus sails many to many tree related postgres rel nofollow noreferrer github ppI found this href https stackoverflow com questions 34570740 how to implement many to many association using through in sails other stackoverflow question which seems to be doing the same thing and attempted to follow the same pattern but it not working for me ppI would appreciate any pointers or suggestions Thank you,NULL 68181,1566520,1376146,Good Answer Yearling Yearling Good Answer Announcer,NULL,NULL,0,NULL,NULL 68182,679960,186742,Popular Question Notable Question Yearling Notable Question Guru Self-Learner Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68183,418926,1359671,NULL,NULL,NULL,0,NULL,NULL 68184,366720,485193,Teacher,NULL,NULL,0,NULL,NULL 68185,7560,66801,Yearling Enlightened Great Answer Yearling Good Answer Guru Yearling Great Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 68186,101492,1425103,NULL,NULL,NULL,0,NULL,NULL 68187,124422,4140,Good Question Good Question Yearling Notable Question Caucus Nice Question Great Question Favorite Question Caucus Famous Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 68188,31259,53968,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 68189,31625,389324,Yearling Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 68190,200242,207057,Popular Question Nice Question Famous Question Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 68191,356521,960719,NULL,NULL,NULL,0,NULL,NULL 68192,1509726,1125645,Yearling Famous Question,NULL,NULL,0,NULL,NULL 68193,159574,241125,NULL,NULL,NULL,0,NULL,NULL 68194,285994,1139307,NULL,NULL,NULL,0,NULL,NULL 68195,620993,199461,NULL,NULL,NULL,0,NULL,NULL 68196,294622,1470469,Tumbleweed,NULL,NULL,0,NULL,NULL 68197,1653807,1278887,NULL,NULL,NULL,0,NULL,NULL 68198,307992,61239,Teacher Nice Question Famous Question Popular Question Yearling Great Question Census,NULL,NULL,0,NULL,NULL 68199,1415025,1312320,Curious Yearling Caucus Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 68200,59742,641101,Popular Question,NULL,NULL,0,NULL,NULL 68201,4979259,139459,Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Great Answer Favorite Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Guru Good Answer Guru Guru Good Answer Guru Popular Question Popular Question Notable Question Guru Nice Answer Great Answer Guru Popular Question Good Answer Nice Answer Enlightened Guru Great Answer css-selectors Nice Answer Good Answer Notable Question Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer Yearling Popular Question Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Enlightened frameworks Good Answer Good Answer Notable Question Nice Answer Nice Answer Notable Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Notable Question Nice Answer Nice Answer Enlightened Nice Question Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Great Answer Good Answer Guru Good Answer Good Answer Nice Answer Nice Answer Good Answer Guru Good Answer Notable Question Good Answer Good Answer Nice Answer checkbox Good Answer Enlightened Guru Good Answer select Guru Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Guru Nice Answer Enlightened Nice Answer Good Answer Nice Question Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer input Notable Question Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Popular Question Good Answer Good Question Good Answer Good Answer Good Question Nice Answer Good Answer Nice Answer Good Answer Nice Question Good Answer Great Answer Nice Answer Enlightened Great Question Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Great Answer Guru Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Good Answer css3 Good Answer Notable Question Guru Good Answer Nice Answer Good Answer Guru Great Answer Good Answer Good Answer Good Answer Great Answer Guru Nice Answer Nice Answer Good Answer Guru Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 68202,156096,139459,Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Great Answer Favorite Question Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer Guru Good Answer Guru Guru Good Answer Guru Popular Question Popular Question Notable Question Guru Nice Answer Great Answer Guru Popular Question Good Answer Nice Answer Enlightened Guru Great Answer css-selectors Nice Answer Good Answer Notable Question Guru Nice Answer Nice Answer Enlightened Good Answer Good Answer Yearling Popular Question Nice Answer Enlightened Guru Good Answer Nice Answer Nice Answer Enlightened frameworks Good Answer Good Answer Notable Question Nice Answer Nice Answer Notable Question Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Question Notable Question Nice Answer Nice Answer Enlightened Nice Question Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Great Answer Good Answer Guru Good Answer Good Answer Nice Answer Nice Answer Good Answer Guru Good Answer Notable Question Good Answer Good Answer Nice Answer checkbox Good Answer Enlightened Guru Good Answer select Guru Nice Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Guru Nice Answer Enlightened Nice Answer Good Answer Nice Question Great Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer input Notable Question Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Popular Question Good Answer Good Question Good Answer Good Answer Good Question Nice Answer Good Answer Nice Answer Good Answer Nice Question Good Answer Great Answer Nice Answer Enlightened Great Question Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Great Answer Guru Good Answer Guru Good Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Good Answer css3 Good Answer Notable Question Guru Good Answer Nice Answer Good Answer Guru Great Answer Good Answer Good Answer Good Answer Great Answer Guru Nice Answer Nice Answer Good Answer Guru Nice Answer Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 68203,2917661,809320,NULL,NULL,NULL,0,NULL,NULL 68204,7453,726122,Nice Answer Popular Question Yearling Citizen Patrol Populist Necromancer Yearling Popular Question Announcer Yearling Great Answer,NULL,NULL,0,NULL,NULL 68205,85420,1384652,Nice Question Popular Question Favorite Question Great Question Popular Question Popular Question Good Answer Good Question Popular Question Stellar Question Yearling Famous Question Popular Question Nice Answer Caucus Great Question Favorite Question Good Question Great Answer Popular Question Famous Question Great Question Notable Question Notable Question Famous Question Popular Question Good Question Nice Question Notable Question Yearling Popular Question Stellar Question Great Question Famous Question Famous Question Nice Question Great Question Famous Question Notable Question Famous Question Notable Question Nice Question Nice Question Notable Question Notable Question Popular Question Nice Question Yearling Famous Question Stellar Question Popular Question,NULL,NULL,0,NULL,NULL 68206,1345607,919207,Popular Question Nice Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 68207,17455,690649,NULL,NULL,NULL,0,NULL,NULL 68208,216178,937212,NULL,NULL,NULL,0,NULL,NULL 68209,309197,290893,Critic Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68210,315650,154112,Notable Question Nice Answer Guru Good Answer Necromancer image Revival Nice Answer Nice Answer html Good Answer Necromancer Good Answer Yearling html5-canvas Great Answer Nice Answer Notable Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Custodian Nice Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Guru Popular Question Good Question Populist Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 68211,280518,1078960,Nice Answer Famous Question Nice Question Famous Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 68212,676599,199420,NULL,NULL,NULL,0,NULL,NULL 68213,52505,965684,NULL,NULL,NULL,0,NULL,NULL 68214,164515,263787,NULL,NULL,NULL,0,NULL,NULL 68215,1245127,866206,Popular Question Great Answer Notable Question Notable Question Popular Question Nice Answer Good Answer Popular Question Popular Question Popular Question Civic Duty Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question javascript Nice Answer Popular Question Popular Question Famous Question Famous Question Notable Question Yearling Notable Question Great Answer Popular Question Notable Question Good Question Famous Question Popular Question Custodian Famous Question Famous Question Popular Question Popular Question Nice Answer Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Yearling Popular Question Popular Question Nice Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68216,121259,1495974,NULL,NULL,NULL,0,NULL,NULL 68217,485241,1044544,Notable Question Notable Question Famous Question Inquisitive Popular Question Popular Question Nice Question Caucus Famous Question Nice Question Nice Question Nice Answer Yearling Popular Question Popular Question Notable Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 68218,970696,895896,NULL,NULL,NULL,0,NULL,NULL 68219,284332,497448,NULL,NULL,NULL,0,NULL,NULL 68220,145548,966855,Popular Question Teacher,NULL,NULL,0,NULL,NULL 68221,353094,1179882,NULL,NULL,NULL,0,NULL,NULL 68222,1058796,892033,NULL,NULL,NULL,0,NULL,NULL 68223,304529,237312,Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Notable Question Announcer Popular Question Caucus Constituent Documentation User mysql Excavator Great Answer Yearling Self-Learner Popular Question Census Caucus Constituent Electorate,NULL,NULL,0,NULL,NULL 68224,72233,455765,Nice Question,NULL,NULL,0,NULL,NULL 68225,585112,1041722,Student Popular Question Commentator Autobiographer Excavator Notable Question,NULL,NULL,0,NULL,NULL 68226,466680,1104537,NULL,NULL,NULL,0,NULL,NULL 68227,107371,1545267,Commentator Editor Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68228,14209,550306,NULL,NULL,NULL,0,NULL,NULL 68229,212704,651612,Yearling Good Answer Yearling Editor,NULL,NULL,0,NULL,NULL 68230,3642,568203,Yearling Nice Question Famous Question Necromancer Nice Answer Taxonomist Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Documentation User Yearling Enlightened Nice Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 68231,18136,838044,Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 68232,44871,560329,Yearling Nice Answer Good Answer Nice Answer Yearling Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68233,51469,595940,NULL,NULL,NULL,0,NULL,NULL 68234,354986,845265,NULL,NULL,NULL,0,NULL,NULL 68235,215875,615282,cassandra Yearling Famous Question Popular Question Famous Question Good Answer Famous Question Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Question,NULL,NULL,0,NULL,NULL 68236,5568180,34249,NULL,NULL,NULL,0,NULL,NULL 68237,8027,34249,NULL,NULL,NULL,0,NULL,NULL 68238,1746641,1242284,Student,NULL,NULL,0,NULL,NULL 68239,488357,56872,Yearling Citizen Patrol Custodian Caucus Constituent Notable Question Famous Question Caucus Constituent Caucus Constituent Yearling Good Question,NULL,NULL,0,NULL,NULL 68240,6375507,56872,Yearling Citizen Patrol Custodian Caucus Constituent Notable Question Famous Question Caucus Constituent Caucus Constituent Yearling Good Question,NULL,NULL,0,NULL,NULL 68241,25591,1068229,NULL,NULL,NULL,0,NULL,NULL 68242,429744,480681,Famous Question,NULL,NULL,0,NULL,NULL 68243,45622,1169746,Guru Yearling Revival Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68244,168716,108758,Notable Question Custodian Custodian Citizen Patrol Organizer Caucus Necromancer Nice Question Famous Question Yearling Caucus Constituent Revival Custodian Yearling Revival Necromancer Necromancer,NULL,NULL,1,NULL,Alamofire No Such Module CocoaPods ios cocoapods alamofire pUsing Xcode ppI am trying to install Alamofire in sample project Have used the instructions from href http www raywenderlich com 97014 use cocoapods with swift rel noreferrer Ray Wenderlich page ppOnly change from above link is the podfile which is from GitHub page href https github com Alamofire Alamofire tree swift rel noreferrer here because the version has been updated have also used the Swift branch ppBelow is the snapshop of the error my pod file and my terminal post installing the pod pp href https stack imgur com wEFlB png rel noreferrer img src https stack imgur com wEFlB png alt pp strongPODFILE stronga href https stack imgur com W8PsP png rel noreferrer img src https stack imgur com W8PsP png alt enter image description here pp strongTERMINAL stronga href https stack imgur com q6JnX png rel noreferrer img src https stack imgur com q6JnX png alt enter image description here ppP want to use cocoapods to install Alamofire don want to download it from github page pFor reference to anyone who comes across this problem in the future pp strongSwift CocoaPods strong pp strongSymptoms strong build works in Xcode for debug configuration but fails when codexcodebuild code is executed from console using codepod lib lint code or similar command The result is codeerror no such module code pp strongSolution strong In codeMyProject podspec code add your dependencies without specifying versions ppre codespec dependency Alamofire code prepThe codePodfile code should also contain the same dependencies Then run ppre code pod install amp amp open MyProject xcworkspace code prepYou should open code xcworkspace code instead of code xcodeproj code The build will now work in both Xcode and console and codepod lib lint code passes validation ppI wrote this because was trying to publish new CocoaPods pod library and had similar issue but found no answer and also because Google leads to this question 68245,935394,108758,Notable Question Custodian Custodian Citizen Patrol Organizer Caucus Necromancer Nice Question Famous Question Yearling Caucus Constituent Revival Custodian Yearling Revival Necromancer Necromancer,NULL,NULL,1,NULL,Alamofire No Such Module CocoaPods ios cocoapods alamofire pUsing Xcode ppI am trying to install Alamofire in sample project Have used the instructions from href http www raywenderlich com 97014 use cocoapods with swift rel noreferrer Ray Wenderlich page ppOnly change from above link is the podfile which is from GitHub page href https github com Alamofire Alamofire tree swift rel noreferrer here because the version has been updated have also used the Swift branch ppBelow is the snapshop of the error my pod file and my terminal post installing the pod pp href https stack imgur com wEFlB png rel noreferrer img src https stack imgur com wEFlB png alt pp strongPODFILE stronga href https stack imgur com W8PsP png rel noreferrer img src https stack imgur com W8PsP png alt enter image description here pp strongTERMINAL stronga href https stack imgur com q6JnX png rel noreferrer img src https stack imgur com q6JnX png alt enter image description here ppP want to use cocoapods to install Alamofire don want to download it from github page pFor reference to anyone who comes across this problem in the future pp strongSwift CocoaPods strong pp strongSymptoms strong build works in Xcode for debug configuration but fails when codexcodebuild code is executed from console using codepod lib lint code or similar command The result is codeerror no such module code pp strongSolution strong In codeMyProject podspec code add your dependencies without specifying versions ppre codespec dependency Alamofire code prepThe codePodfile code should also contain the same dependencies Then run ppre code pod install amp amp open MyProject xcworkspace code prepYou should open code xcworkspace code instead of code xcodeproj code The build will now work in both Xcode and console and codepod lib lint code passes validation ppI wrote this because was trying to publish new CocoaPods pod library and had similar issue but found no answer and also because Google leads to this question 68246,83219,1163551,Yearling Great Answer Popular Question Popular Question Yearling Revival Caucus Constituent Popular Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 68247,338130,896541,NULL,NULL,NULL,0,NULL,NULL 68248,66469,410030,NULL,NULL,NULL,0,NULL,NULL 68249,428205,840125,NULL,NULL,NULL,0,NULL,NULL 68250,212087,1060743,Notable Question,NULL,NULL,0,NULL,NULL 68251,3274,1243089,NULL,NULL,NULL,0,NULL,NULL 68252,646881,220642,Popular Question Caucus,NULL,NULL,0,NULL,NULL 68253,140270,533054,NULL,NULL,NULL,0,NULL,NULL 68254,856198,1469789,Necromancer,NULL,NULL,0,NULL,NULL 68255,656465,814027,Supporter Peer Pressure Organizer,NULL,NULL,0,NULL,NULL 68256,456263,652934,NULL,NULL,NULL,0,NULL,NULL 68257,1136184,1460056,NULL,NULL,NULL,0,NULL,NULL 68258,274424,58220,Yearling Nice Answer Nice Answer Favorite Question Good Answer Nice Answer Good Answer Yearling Nice Answer Custodian Nice Answer Popular Question Guru Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 68259,909788,190940,Yearling Famous Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 68260,627,240220,Necromancer Yearling Civic Duty Excavator,NULL,NULL,0,NULL,NULL 68261,157329,697559,Informed,NULL,NULL,0,NULL,NULL 68262,91111,34235,Famous Question,NULL,NULL,0,NULL,NULL 68263,1427856,908057,NULL,NULL,NULL,0,NULL,NULL 68264,517269,1137788,Yearling Necromancer Popular Question Nice Question Famous Question Good Question Notable Question Yearling Notable Question Famous Question Popular Question Announcer Famous Question Popular Question Nice Question Yearling Notable Question Nice Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 68265,476690,681594,Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68266,76926,51402,Yearling Stellar Question Notable Question Good Question Notable Question Popular Question Good Question Good Question Notable Question Nice Question Famous Question Good Question Yearling Notable Question Nice Question Famous Question Good Question Popular Question Famous Question Nice Question Notable Question Civic Duty Yearling Famous Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 68267,901282,717582,NULL,NULL,NULL,0,NULL,NULL 68268,614149,555695,NULL,NULL,NULL,0,NULL,NULL 68269,1512686,207646,Notable Question Popular Question Nice Question Nice Answer Notable Question Great Question Notable Question Good Question Popular Question Yearling Great Question Notable Question Nice Question Nice Question Great Question Promoter Nice Question Nice Question Popular Question Popular Question Documentation User Yearling Nice Answer Enlightened Popular Question Popular Question Famous Question Popular Question Nice Answer Notable Question Nice Question Famous Question Nice Question Notable Question Good Answer Notable Question Famous Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68270,38506,92837,Guru Good Answer Nice Answer Self-Learner Yearling Nice Answer Enlightened Famous Question Good Answer Notable Question Caucus Nice Answer Enlightened Famous Question Famous Question Great Answer Census Nice Answer Notable Question Yearling Famous Question Good Question Announcer Pundit Caucus Constituent Announcer Good Answer Documentation User Nice Answer Enlightened Nice Answer Census Taxonomist Caucus Constituent Yearling Announcer Nice Question Necromancer,NULL,NULL,0,NULL,NULL 68271,98951,65348,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 68272,416098,1194913,NULL,NULL,NULL,0,NULL,NULL 68273,68216,1378535,NULL,NULL,NULL,0,NULL,NULL 68274,164093,1112937,NULL,NULL,NULL,0,NULL,NULL 68275,494883,1310426,NULL,NULL,NULL,0,NULL,NULL 68276,111073,654297,NULL,NULL,NULL,0,NULL,NULL 68277,75113,1179425,NULL,NULL,NULL,0,NULL,NULL 68278,106800,1219271,NULL,NULL,NULL,0,NULL,NULL 68279,2929054,763393,Yearling,NULL,NULL,0,NULL,NULL 68280,135923,3912,Yearling Stellar Question Popular Question Good Answer Yearling Notable Question Popular Question Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 68281,1253345,531178,NULL,NULL,NULL,0,NULL,NULL 68282,979254,140693,Popular Question Popular Question Yearling Nice Question Popular Question Nice Answer Yearling Notable Question Good Answer Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 68283,50737,252295,NULL,NULL,NULL,0,NULL,NULL 68284,259043,1327837,Critic Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68285,1198523,751323,NULL,NULL,NULL,0,NULL,NULL 68286,469364,399661,NULL,NULL,NULL,0,NULL,NULL 68287,285432,592404,Famous Question,NULL,NULL,0,NULL,NULL 68288,143036,795610,NULL,NULL,NULL,0,NULL,NULL 68289,234964,627993,NULL,NULL,NULL,0,NULL,NULL 68290,3226501,676559,NULL,NULL,NULL,0,NULL,NULL 68291,841920,1431114,NULL,NULL,NULL,0,NULL,NULL 68292,6986545,72005,Commentator Announcer Popular Question,NULL,,0,, 68293,70458,72005,Commentator Announcer Popular Question,NULL,NULL,0,NULL,NULL 68294,319653,1357519,NULL,NULL,NULL,0,NULL,NULL 68295,544165,452341,Necromancer Caucus Constituent Census Curious Informed Popular Question Caucus Constituent Yearling Nice Answer Revival Census Nice Answer Caucus Constituent,NULL,NULL,0,NULL,NULL 68296,2321,5619,Notable Question Famous Question Notable Question Yearling Favorite Question Yearling Announcer Necromancer Nice Answer Good Answer Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 68297,283615,1420038,Announcer Yearling Caucus,NULL,NULL,0,NULL,NULL 68298,817842,12790,Famous Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68299,336628,1014981,NULL,NULL,NULL,0,NULL,NULL 68300,1180872,456980,Good Question Yearling Citizen Patrol Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 68301,1187280,1035547,Notable Question Popular Question Famous Question Notable Question Notable Question Nice Question Yearling Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Nice Question Nice Question Necromancer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 68302,270660,1035547,Notable Question Popular Question Famous Question Notable Question Notable Question Nice Question Yearling Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Notable Question Nice Question Nice Question Necromancer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 68303,7959637,864773,NULL,NULL,NULL,0,NULL,NULL 68304,691010,220376,Necromancer Civic Duty Yearling,NULL,NULL,0,NULL,NULL 68305,191973,1186323,Notable Question Popular Question Popular Question Nice Question Peer Pressure Popular Question Popular Question Popular Question Popular Question Inquisitive Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Self-Learner Good Question Notable Question Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 68306,5739781,1123087,NULL,NULL,NULL,0,NULL,NULL 68307,3195553,1123087,NULL,NULL,NULL,0,NULL,NULL 68308,1606956,1123087,NULL,NULL,NULL,0,NULL,NULL 68309,162539,1069187,NULL,NULL,NULL,0,NULL,NULL 68310,2965,695387,NULL,NULL,NULL,0,NULL,NULL 68311,802749,1201013,Yearling Yearling,NULL,NULL,0,NULL,NULL 68312,434469,1201013,Yearling Yearling,NULL,NULL,0,NULL,NULL 68313,929414,395028,Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Informed Notable Question Popular Question Yearling Self-Learner Taxonomist Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Custodian Popular Question Notable Question Nice Question android Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 68314,1595940,1515071,NULL,NULL,NULL,0,NULL,NULL 68315,203623,1515071,NULL,NULL,NULL,0,NULL,NULL 68316,140263,1325211,Self-Learner Nice Question,NULL,NULL,0,NULL,NULL 68317,845638,7082,Civic Duty Custodian Good Question Popular Question Yearling Famous Question Excavator Caucus Constituent Enthusiast Yearling,NULL,NULL,0,NULL,NULL 68318,184291,1072355,NULL,NULL,NULL,0,NULL,NULL 68319,790794,534481,Yearling Notable Question Popular Question Inquisitive Good Question Benefactor Good Question Famous Question Good Answer Yearling Famous Question Announcer Famous Question Notable Question Yearling Census Nice Question Popular Question Popular Question Custodian Notable Question,NULL,Does Haskell have variables Or easiest way to read configuration data haskell immutability pI have written my medium sized Haskell app with hard coded config variables like Google OAuth ClientId amp ClientSecret Now that prepping the app for production deployment need to move all these config variable out of the source to either environment variables or plain text config file ppHere what the code currently look likes ppre codegoogleClientId TextgoogleClientId redacted googleClientSecret TextgoogleClientSecret redacted generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody code prepWhat the strongfastest easiest strong way to get codegoogleClientId code and codegoogleClientSecret code from an environment variable or config file tried the following ppre codegoogleClientId TextgoogleClientId undefinedgoogleClientSecret TextgoogleClientSecret undefinedmain IO main do googleClientId lt getEnv GOOGLE CLIENT ID googleClientSecret lt getENV GOOGLE CLIENT SECRET Start the main app which internally will call generateOAuthUserCode at some point code prepThe expectation was that the global codegoogleClientId code and codegoogleClientSecret code will be re bound but my editor immediately started showing warning that the binding shadows an existing binding indicating that Haskell is creating new binding instead of changing the existing one ppSo two questions here polliFirst the pragmatic one How to solve the problem at hand strongwithout strong getting into the Reader monad which might involve changing lot of function signatures across my app liliSecond the one oriented to learning Haskell has immutable emvalues em which is understood and appreciated Does it even have immutable emvariable binding em Is it not possible to get dynamic variable bindings like in Common Lisp li olp strongEdit strong What about the following approach ppwhat about the following approach ppre codeouterFunc String gt String gt IO outerFunc googleClientId googleClientSecret do more code comes here where generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody more functions depending upon the config variables code pre Reading https www joachim breitner de blog 443 Solution to the Configuration Problem in Haskell after posting this question Does Haskell have variables Or easiest way to read configuration data haskell immutability pI have written my medium sized Haskell app with hard coded config variables like Google OAuth ClientId amp ClientSecret Now that prepping the app for production deployment need to move all these config variable out of the source to either environment variables or plain text config file ppHere what the code currently look likes ppre codegoogleClientId TextgoogleClientId redacted googleClientSecret TextgoogleClientSecret redacted generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody code prepWhat the strongfastest easiest strong way to get codegoogleClientId code and codegoogleClientSecret code from an environment variable or config file tried the following ppre codegoogleClientId TextgoogleClientId undefinedgoogleClientSecret TextgoogleClientSecret undefinedmain IO main do googleClientId lt getEnv GOOGLE CLIENT ID googleClientSecret lt getENV GOOGLE CLIENT SECRET Start the main app which internally will call generateOAuthUserCode at some point code prepThe expectation was that the global codegoogleClientId code and codegoogleClientSecret code will be re bound but my editor immediately started showing warning that the binding shadows an existing binding indicating that Haskell is creating new binding instead of changing the existing one ppSo two questions here polliFirst the pragmatic one How to solve the problem at hand strongwithout strong getting into the Reader monad which might involve changing lot of function signatures across my app liliSecond the one oriented to learning Haskell has immutable emvalues em which is understood and appreciated Does it even have immutable emvariable binding em Is it not possible to get dynamic variable bindings like in Common Lisp li olp strongEdit strong What about the following approach ppwhat about the following approach ppre codeouterFunc String gt String gt IO outerFunc googleClientId googleClientSecret do more code comes here where generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody more functions depending upon the config variables code pre Added an alternative approach to my question,1,Does Haskell have variables Or easiest way to read configuration data haskell immutability pI have written my medium sized Haskell app with hard coded config variables like Google OAuth ClientId amp ClientSecret Now that prepping the app for production deployment need to move all these config variable out of the source to either environment variables or plain text config file ppHere what the code currently look likes ppre codegoogleClientId TextgoogleClientId redacted googleClientSecret TextgoogleClientSecret redacted generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody code prepWhat the strongfastest easiest strong way to get codegoogleClientId code and codegoogleClientSecret code from an environment variable or config file tried the following ppre codegoogleClientId TextgoogleClientId undefinedgoogleClientSecret TextgoogleClientSecret undefinedmain IO main do googleClientId lt getEnv GOOGLE CLIENT ID googleClientSecret lt getENV GOOGLE CLIENT SECRET Start the main app which internally will call generateOAuthUserCode at some point code prepThe expectation was that the global codegoogleClientId code and codegoogleClientSecret code will be re bound but my editor immediately started showing warning that the binding shadows an existing binding indicating that Haskell is creating new binding instead of changing the existing one ppSo two questions here polliFirst the pragmatic one How to solve the problem at hand strongwithout strong getting into the Reader monad which might involve changing lot of function signatures across my app liliSecond the one oriented to learning Haskell has immutable emvalues em which is understood and appreciated Does it even have immutable emvariable binding em Is it not possible to get dynamic variable bindings like in Common Lisp li olp strongEdit strong What about the following approach ppwhat about the following approach ppre codeouterFunc String gt String gt IO outerFunc googleClientId googleClientSecret do more code comes here where generateOAuthUserCode IO OAuthCodeResponse generateOAuthUserCode do lt asJSON lt lt post https accounts google com oauth2 device code client id googleClientId scope email profile Text return responseBody more functions depending upon the config variables code pre,NULL 68320,353041,303073,Notable Question Yearling Nice Answer Enlightened Nice Question Nice Question Nice Answer Enlightened Nice Question Nice Answer Great Question Caucus Nice Answer Enlightened Nice Answer Custodian Notable Question Yearling Popular Question xcode Popular Question Popular Question Great Answer Custodian Notable Question Yearling Caucus Notable Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 68321,72753,1056755,Popular Question Popular Question Popular Question Famous Question Promoter Benefactor,NULL,NULL,0,NULL,NULL 68322,187478,746744,NULL,NULL,NULL,0,NULL,NULL 68323,621771,998258,NULL,NULL,NULL,0,NULL,NULL 68324,57888,775156,Mortarboard Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 68325,111937,491239,Notable Question Notable Question Necromancer Nice Question Notable Question Nice Answer Enlightened Nice Answer Popular Question Great Answer Announcer Notable Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Question Good Answer Guru Notable Question Notable Question Nice Question Benefactor Famous Question Announcer Yearling Caucus Nice Question swift Tag Editor Guru Popular Question Popular Question Famous Question Nice Answer Popular Question Nice Answer Caucus Popular Question iphone Popular Question Popular Question Yearling Nice Answer Enlightened Caucus Constituent Nice Answer Announcer Yearling Announcer,NULL,NULL,0,NULL,NULL 68326,1023320,907840,Popular Question Self-Learner Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Popular Question Nice Question Famous Question Notable Question Famous Question Civic Duty,NULL,NULL,0,NULL,NULL 68327,103007,636574,NULL,NULL,NULL,0,NULL,NULL 68328,661098,1272557,NULL,NULL,NULL,0,NULL,NULL 68329,7036153,1226704,NULL,NULL,NULL,0,NULL,NULL 68330,1657855,1226704,NULL,NULL,NULL,0,NULL,NULL 68331,328,434036,NULL,NULL,NULL,0,NULL,NULL 68332,52137,909899,Yearling Necromancer,NULL,NULL,0,NULL,NULL 68333,118102,211204,Notable Question Nice Question Popular Question Good Answer Good Answer Nice Answer Good Question Yearling Notable Question Guru Guru Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 68334,270363,1053951,NULL,NULL,NULL,0,NULL,NULL 68335,2077002,1053951,NULL,NULL,NULL,0,NULL,NULL 68336,330886,141523,Good Question Yearling,NULL,NULL,0,NULL,NULL 68337,420893,661490,NULL,NULL,NULL,0,NULL,NULL 68338,103318,134973,Notable Question Notable Question Necromancer Yearling Notable Question Yearling Notable Question Yearling Famous Question Custodian Excavator qt Nice Answer,NULL,How to specify different Debug Release output directories in QMake pro file qt qmake pI have Qt project and would like to output compilation files outside the source tree ppI currently have the following directory structure ppre code build mylib include src resources code prepDepending on the configuration debug release will like to output the resulting files inside the build directory under build debug or build release directories ppHow can do that using pro file Thanks for pointing that out just changed the accepted answer,0,NULL,NULL 68339,354059,875547,NULL,NULL,NULL,0,NULL,NULL 68340,8794,206493,Good Answer Student Scholar,NULL,NULL,0,NULL,NULL 68341,378548,632972,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 68342,490015,1179675,NULL,NULL,NULL,0,NULL,NULL 68343,74420,446779,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68344,1557408,1366490,Supporter Enthusiast Informed Autobiographer,NULL,NULL,0,NULL,NULL 68345,261971,210029,Yearling Yearling Great Answer Necromancer Good Answer Necromancer Nice Answer Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 68346,118615,384417,Guru Necromancer Citizen Patrol Yearling Necromancer Custodian Nice Answer Good Answer Revival Yearling Caucus Constituent Documentation User Necromancer Great Answer Nice Answer Nice Question Good Answer Good Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 68347,136566,420121,Yearling Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 68348,729012,700364,Census,NULL,NULL,0,NULL,NULL 68349,22360,1048427,Notable Question Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 68350,28884,1454546,NULL,NULL,NULL,0,NULL,NULL 68351,918852,1415692,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 68352,238951,56242,Notable Question Yearling Nice Answer Popular Question Nice Answer Popular Question Famous Question Famous Question Good Answer Good Question Popular Question Famous Question Yearling Necromancer Revival Good Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 68353,352853,655765,Revival Revival,NULL,NULL,0,NULL,NULL 68354,180938,215218,NULL,NULL,NULL,0,NULL,NULL 68355,3291954,1524453,Autobiographer Supporter Teacher Editor Peer Pressure Scholar Commentator Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 68356,90279,1211883,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 68357,1246647,1256434,NULL,NULL,NULL,0,NULL,NULL 68358,4375,545870,Popular Question Announcer Nice Question Yearling Nice Answer Enlightened,NULL,NULL,1,NULL,Failed to install ruby thru rbenv macOS High Sierra ruby rbenv pI am using macOS High Sierra and have been trying to install ruby thru rbenv but keep getting error as following ppre codeApple LLVM version clang 900 39 Target x86 64 apple darwin17 0Thread model posixInstalledDir Applications Xcode app Contents Developer Toolchains XcodeDefault xctoolchain usr bincompiling main ccompiling dmydln ccompiling miniinit ccompiling dmyext ccompiling miniprelude ctranslating probes probes dcompiling bignum ccompiling class cerror error reading dev fd error generated clang error unable to remove file Operation not permitteddtrace failed to compile script probes Preprocessor failed to process input programmake probes Error 1make Waiting for unfinished jobs code prepI tried codebrew doctor code and codebrew upgrade rbenv ruby build code before install coderbenv install code ppstill getting the same error ppIs anyone know how to solve this issue pI had similar problem while installing ruby with ruby build used by rbenv and others and ve avoided it for now using following work around ppThis seems to be due to the codedtrace code being update with macOS 10 ppFirst try href https github com Homebrew legacy homebrew issues 32910 issuecomment 69740819 rel noreferrer this codesudo chmod usr sbin dtrace code ppIf that doesn work then href https github com rbenv ruby build issues 1061 issuecomment 366127345 rel noreferrer disable dtrace while installing ruby pp codeRUBY CONFIGURE OPTS disable dtrace rbenv install code ppYou can also codeexport RUBY CONFIGURE OPTS disable dtrace code to your code bashrc code or code zshrc code file ppThe maintaner of href https github com rbenv ruby build issues 1061 issuecomment 366671648 rel noreferrer rbenv ruby build has notified this to ruby core team and hopefully be fixed soon 68359,29777,38751,Famous Question Yearling Stellar Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 68360,17430,282870,NULL,NULL,NULL,0,NULL,NULL 68361,60421,1526904,NULL,NULL,NULL,0,NULL,NULL 68362,364963,983144,Yearling,NULL,NULL,0,NULL,NULL 68363,26188,496797,Good Answer Notable Question Famous Question Great Question Popular Question Yearling Popular Question Notable Question Yearling Notable Question Census Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 68364,328858,154202,NULL,NULL,NULL,0,NULL,NULL 68365,117253,105999,Informed Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Guru Booster Good Answer Yearling Nice Answer Nice Answer Great Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Great Answer Guru Nice Answer Nice Answer Enlightened Yearling Caucus Constituent Pundit Necromancer Nice Answer Caucus Great Answer Yearling Nice Answer Enlightened,NULL,pGreat question just posted very detailed blog entry about this at href http sedodream com 2010 05 01 WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles aspx rel noreferrer Web Deployment Tool MSDeploy Build Package including extra files or excluding specific files ppHere is the synopsis After including files show how to exclude files as well pp strongIncluding Extra Files strong ppIncluding extra files into the package is bit harder but still no bigee if you are comfortable with MSBuild and if you are not then read this In order to do this we need to hook into the part of the process that collects the files for packaging The target we need to extend is called CopyAllFilesToSingleFolder This target has dependency property PipelinePreDeployCopyAllFilesToOneFolderDependsOn that we can tap into and inject our own target So we will create target named CustomCollectFiles and inject that into the process We achieve this with the following remember after the import statement ppre class lang xml prettyprint override code lt PropertyGroup gt lt CopyAllFilesToSingleFolderForPackageDependsOn gt CustomCollectFiles CopyAllFilesToSingleFolderForPackageDependsOn lt CopyAllFilesToSingleFolderForPackageDependsOn gt lt CopyAllFilesToSingleFolderForMsdeployDependsOn gt CustomCollectFiles CopyAllFilesToSingleFolderForMsdeployDependsOn lt CopyAllFilesToSingleFolderForMsdeployDependsOn gt lt PropertyGroup gt code prepThis will add our target to the process now we need to define the target itself Let’s assume that you have folder named Extra Files that sits level above your web project You want to include all of those files Here is the CustomCollectFiles target and we discuss after that ppre class lang xml prettyprint override code lt Target Name CustomCollectFiles gt lt ItemGroup gt lt CustomFiles Include Extra Files gt lt FilesForPackagingFromProject Include CustomFiles Identity gt lt DestinationRelativePath gt Extra Files RecursiveDir Filename Extension lt DestinationRelativePath gt lt FilesForPackagingFromProject gt lt ItemGroup gt lt Target gt code prepHere what did was create the item CustomFiles and in the Include attribute told it to pick up all the files in that folder and any folder underneath it If by any chance you need to bexclude something from that list add an codeExclude code attribute to code CustomFiles code ppThen use this item to populate the FilesForPackagingFromProject item This is the item that MSDeploy actually uses to add extra files Also notice that declared the metadata DestinationRelativePath value This will determine the relative path that it will be placed in the package used the statement Extra Files RecursiveDir Filename Extension here What that is saying is to place it in the same relative location in the package as it is under the Extra Files folder pp strongExcluding files strong ppIf you open the project file of web application created with VS 2010 towards the bottom of it you will find line with ppre class lang xml prettyprint override code lt Import Project MSBuildExtensionsPath32 Microsoft VisualStudio v10 WebApplications Microsoft WebApplication targets gt code prepBTW you can open the project file inside of VS Right click on the project pick Unload Project Then right click on the unloaded project and select Edit Project ppThis statement will include all the targets and tasks that we need Most of our customizations should be after that import if you are not sure put if after So if you have files to exclude there is an item name ExcludeFromPackageFiles that can be used to do so For example let’s say that you have file named Sample Debug js which included in your web application but you want that file to be excluded from the created packages You can place the snippet below after that import statement ppre class lang xml prettyprint override code lt ItemGroup gt lt ExcludeFromPackageFiles Include Sample Debug xml gt lt FromTarget gt Project lt FromTarget gt lt ExcludeFromPackageFiles gt lt ItemGroup gt code prepBy declaring populating this item the files will automatically be excluded Note the usage of the FromTarget metadata here will not get into that here but you should know to always specify that looks good thanks pGreat question just posted very detailed blog entry about this at href http sedodream com 2010 05 01 WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles aspx rel noreferrer Web Deployment Tool MSDeploy Build Package including extra files or excluding specific files ppHere is the synopsis After including files show how to exclude files as well pp strongIncluding Extra Files strong ppIncluding extra files into the package is bit harder but still no bigee if you are comfortable with MSBuild and if you are not then read this In order to do this we need to hook into the part of the process that collects the files for packaging The target we need to extend is called CopyAllFilesToSingleFolder This target has dependency property PipelinePreDeployCopyAllFilesToOneFolderDependsOn that we can tap into and inject our own target So we will create target named CustomCollectFiles and inject that into the process We achieve this with the following remember after the import statement ppre class lang xml prettyprint override code lt PropertyGroup gt lt CopyAllFilesToSingleFolderForPackageDependsOn gt CustomCollectFiles CopyAllFilesToSingleFolderForPackageDependsOn lt CopyAllFilesToSingleFolderForPackageDependsOn gt lt CopyAllFilesToSingleFolderForMsdeployDependsOn gt CustomCollectFiles CopyAllFilesToSingleFolderForMsdeployDependsOn lt CopyAllFilesToSingleFolderForMsdeployDependsOn gt lt PropertyGroup gt code prepThis will add our target to the process now we need to define the target itself Let’s assume that you have folder named Extra Files that sits level above your web project You want to include all of those files Here is the CustomCollectFiles target and we discuss after that ppre class lang xml prettyprint override code lt Target Name CustomCollectFiles gt lt ItemGroup gt lt CustomFiles Include Extra Files gt lt FilesForPackagingFromProject Include CustomFiles Identity gt lt DestinationRelativePath gt Extra Files RecursiveDir Filename Extension lt DestinationRelativePath gt lt FilesForPackagingFromProject gt lt ItemGroup gt lt Target gt code prepHere what did was create the item CustomFiles and in the Include attribute told it to pick up all the files in that folder and any folder underneath it If by any chance you need to bexclude something from that list add an codeExclude code attribute to code CustomFiles code ppThen use this item to populate the FilesForPackagingFromProject item This is the item that MSDeploy actually uses to add extra files Also notice that declared the metadata DestinationRelativePath value This will determine the relative path that it will be placed in the package used the statement Extra Files RecursiveDir Filename Extension here What that is saying is to place it in the same relative location in the package as it is under the Extra Files folder pp strongExcluding files strong ppIf you open the project file of web application created with VS 2010 towards the bottom of it you will find line with ppre class lang xml prettyprint override code lt Import Project MSBuildExtensionsPath32 Microsoft VisualStudio v10 WebApplications Microsoft WebApplication targets gt code prepBTW you can open the project file inside of VS Right click on the project pick Unload Project Then right click on the unloaded project and select Edit Project ppThis statement will include all the targets and tasks that we need Most of our customizations should be after that import if you are not sure put if after So if you have files to exclude there is an item name ExcludeFromPackageFiles that can be used to do so For example let’s say that you have file named Sample Debug js which included in your web application but you want that file to be excluded from the created packages You can place the snippet below after that import statement ppre class lang xml prettyprint override code lt ItemGroup gt lt ExcludeFromPackageFiles Include Sample Debug xml gt lt FromTarget gt Project lt FromTarget gt lt ExcludeFromPackageFiles gt lt ItemGroup gt code prepBy declaring populating this item the files will automatically be excluded Note the usage of the FromTarget metadata here will not get into that here but you should know to always specify that it sounds like the Target copying files into the package directory is running after the package is created,0,NULL,NULL 68366,1187569,959640,Notable Question Popular Question Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 68367,978665,795164,NULL,NULL,NULL,0,NULL,NULL 68368,236145,511230,Popular Question Notable Question Yearling Nice Question Notable Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 68369,33675,1106301,Nice Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 68370,853017,1102860,Necromancer Nice Answer Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 68371,43305,1149937,NULL,NULL,NULL,0,NULL,NULL 68372,155177,1133993,NULL,NULL,NULL,0,NULL,NULL 68373,2548,598865,NULL,NULL,NULL,0,NULL,NULL 68374,233442,680001,Notable Question Famous Question Nice Question Good Question Yearling Popular Question Popular Question Excavator Famous Question Notable Question Popular Question Yearling Nice Question Nice Answer Good Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Good Question Nice Question Informed,NULL,NULL,0,NULL,NULL 68375,335412,1304235,NULL,NULL,NULL,0,NULL,NULL 68376,1215949,619544,Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Notable Question Famous Question Curious Nice Question,NULL,NULL,0,NULL,NULL 68377,130023,675083,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68378,223009,659932,Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68379,153570,477953,Popular Question Critic Yearling Informed Caucus Necromancer Census,NULL,NULL,0,NULL,NULL 68380,2223,84082,NULL,NULL,NULL,0,NULL,NULL 68381,990001,565623,NULL,NULL,NULL,0,NULL,NULL 68382,182128,620089,NULL,NULL,NULL,0,NULL,NULL 68383,258806,524827,Caucus Critic Custodian Custodian Yearling Enthusiast Popular Question Necromancer,NULL,NULL,0,NULL,NULL 68384,1297592,574116,NULL,NULL,NULL,0,NULL,NULL 68385,539938,586755,Enthusiast,NULL,NULL,0,NULL,NULL 68386,139438,104891,Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Good Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Guru Guru Good Answer Nice Answer Enlightened Guru Guru Good Answer Good Answer Yearling Great Answer Good Answer Guru Guru Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Populist Great Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Announcer Great Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Announcer Good Answer Good Answer Guru Guru Guru Guru Good Answer Guru Good Answer Guru Nice Answer Enlightened Nice Answer Good Answer Good Answer Announcer Good Answer Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Guru Guru Good Answer Guru Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Booster Nice Answer Announcer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Great Answer Nice Answer Enlightened Guru Good Answer Nice Answer Guru Guru Nice Answer Guru Guru Nice Answer Enlightened Guru Booster Announcer Nice Answer Enlightened Revival Informed Announcer Good Answer grails Great Answer Guru Announcer Nice Answer Enlightened Nice Answer scala Nice Answer Strunk & White Announcer Nice Answer Enlightened Epic Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Announcer Announcer Announcer Guru Announcer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Refiner Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Good Answer Announcer Nice Answer Enlightened Announcer Great Answer Nice Answer Enlightened Nice Answer Announcer Guru Guru Announcer Announcer Announcer Announcer Announcer Announcer Great Answer Booster Announcer Nice Answer Enlightened Good Answer Nice Answer Guru Announcer Caucus Nice Answer Enlightened Announcer Good Answer Nice Answer Good Answer Announcer Announcer Nice Answer Announcer Announcer Guru Announcer Guru Publicist Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Guru android-studio Announcer Announcer Guru Nice Answer Nice Answer Enlightened maven Good Answer Announcer Announcer Announcer Guru Announcer Good Answer Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Enlightened Announcer Announcer Announcer Good Answer Guru Enlightened Nice Answer Good Answer Guru Good Answer Guru Good Answer gradle Great Answer Good Answer Announcer Nice Answer Enlightened Guru Announcer Good Answer Nice Answer Enlightened Announcer Good Answer macos Nice Answer Announcer Census Announcer Announcer Good Answer Announcer Revival Announcer Announcer Announcer Announcer Announcer Enlightened Announcer Nice Answer Enlightened Good Answer Announcer Announcer Announcer Announcer Nice Answer Announcer Announcer Announcer Announcer Good Answer Nice Answer Enlightened Publicist Announcer Announcer Great Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Announcer Guru Constituent Guru Announcer Good Answer Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Guru Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Publicist Great Answer Announcer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Announcer Good Answer Great Answer Guru Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Announcer Announcer Good Answer Good Answer Announcer Announcer spring Announcer Guru Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Great Answer Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened jetbrains Nice Answer Nice Answer Enlightened Great Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Announcer Announcer Guru Good Answer Good Answer Nice Answer Enlightened Announcer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 68387,341094,148163,Yearling Good Answer Good Answer Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 68388,406065,1260665,Yearling Excavator,NULL,NULL,0,NULL,NULL 68389,332565,235239,NULL,NULL,NULL,0,NULL,NULL 68390,371929,958064,Popular Question Popular Question Nice Question Revival Necromancer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 68391,1007651,208210,NULL,NULL,NULL,0,NULL,NULL 68392,454284,975899,NULL,NULL,NULL,0,NULL,NULL 68393,153886,41966,Popular Question,NULL,NULL,0,NULL,NULL 68394,4951,125875,Popular Question Nice Question Nice Question Notable Question Yearling Famous Question Popular Question Notable Question Good Question Yearling Nice Question Cleanup Custodian Notable Question Famous Question Popular Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 68395,3609984,518331,NULL,NULL,NULL,0,NULL,NULL 68396,1856876,465175,Curious Announcer Critic Tumbleweed Commentator Famous Question Yearling Popular Question Notable Question Nice Question Revival Yearling Popular Question Civic Duty Announcer Popular Question Popular Question Good Question Famous Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68397,212314,823847,Popular Question,NULL,NULL,0,NULL,NULL 68398,436714,302012,NULL,NULL,NULL,0,NULL,NULL 68399,233363,155231,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 68400,17878,813169,NULL,NULL,NULL,0,NULL,NULL 68401,167603,96443,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 68402,5791,683152,NULL,NULL,NULL,0,NULL,NULL 68403,74372,1356317,NULL,NULL,NULL,0,NULL,NULL 68404,19369,43379,Good Question Yearling Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 68405,113019,1332819,Yearling Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 68406,4346717,1440121,Citizen Patrol,NULL,NULL,0,NULL,NULL 68407,305496,1440121,Citizen Patrol,NULL,NULL,0,NULL,NULL 68408,493578,1385794,NULL,NULL,NULL,0,NULL,NULL 68409,212316,533089,Autobiographer Notable Question Caucus,NULL,NULL,0,NULL,NULL 68410,525552,767415,Editor Supporter,NULL,NULL,0,NULL,NULL 68411,414746,1210792,Popular Question Custodian Self-Learner Yearling Caucus Curious,NULL,NULL,0,NULL,NULL 68412,113006,655661,NULL,NULL,NULL,0,NULL,NULL 68413,41505,145307,Necromancer Yearling Necromancer Revival Good Answer Yearling Revival Favorite Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 68414,286332,1003937,NULL,NULL,NULL,0,NULL,NULL 68415,504553,688038,NULL,NULL,NULL,0,NULL,NULL 68416,118657,271296,NULL,NULL,NULL,0,NULL,NULL 68417,154039,1227343,Notable Question Necromancer Popular Question Yearling Nice Answer Popular Question Yearling Nice Answer Enlightened Nice Question Popular Question,NULL,NULL,0,NULL,NULL 68418,281197,310982,Yearling Good Answer,NULL,NULL,0,NULL,NULL 68419,87018,1466060,Teacher Notable Question Nice Question Notable Question Famous Question Popular Question Yearling Caucus Notable Question Popular Question Popular Question Popular Question Inquisitive Notable Question Popular Question Caucus Popular Question Popular Question Caucus Notable Question Nice Question Yearling Popular Question Good Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 68420,384444,1459306,NULL,NULL,NULL,0,NULL,NULL 68421,85537,23208,Yearling Famous Question,NULL,NULL,0,NULL,NULL 68422,201511,403340,Guru Civic Duty Custodian Custodian Citizen Patrol Yearling Informed Yearling Notable Question Census,NULL,NULL,0,NULL,NULL 68423,123387,624840,NULL,NULL,NULL,0,NULL,NULL 68424,571210,395650,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68425,196452,561160,NULL,NULL,NULL,0,NULL,NULL 68426,1490091,1451345,NULL,NULL,NULL,0,NULL,NULL 68427,23315,965868,NULL,NULL,NULL,0,NULL,NULL 68428,131341,961426,NULL,NULL,NULL,0,NULL,NULL 68429,301483,51408,Commentator Critic Popular Question,NULL,NULL,0,NULL,NULL 68430,332274,1360171,Suffrage Vox Populi Excavator Teacher,NULL,NULL,0,NULL,NULL 68431,292681,1202880,Student Editor Scholar Informed Supporter Announcer Documentation User Announcer Commentator,NULL,NULL,0,NULL,NULL 68432,459662,1312009,NULL,NULL,NULL,0,NULL,NULL 68433,1603079,66465,Yearling Famous Question Altruist c++ Popular Question Nice Answer Enlightened Caucus Nice Question Yearling Nice Answer Notable Question Yearling Great Answer Notable Question,NULL,NULL,0,NULL,NULL 68434,304778,822703,Popular Question,NULL,NULL,0,NULL,NULL 68435,495764,856117,NULL,NULL,NULL,0,NULL,NULL 68436,137332,881330,Nice Answer Nice Answer Enlightened Yearling Notable Question Caucus Constituent Necromancer Curious Popular Question Yearling Nice Question Caucus Documentation User Custodian Citizen Patrol Custodian Custodian Yearling Caucus Necromancer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 68437,2475344,881330,Nice Answer Nice Answer Enlightened Yearling Notable Question Caucus Constituent Necromancer Curious Popular Question Yearling Nice Question Caucus Documentation User Custodian Citizen Patrol Custodian Custodian Yearling Caucus Necromancer Notable Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 68438,454004,1051560,Supporter,NULL,NULL,0,NULL,NULL 68439,910170,195566,NULL,NULL,NULL,0,NULL,NULL 68440,12530,1395834,Popular Question,NULL,NULL,0,NULL,NULL 68441,11177331,980709,NULL,NULL,NULL,0,NULL,NULL 68442,77694,980709,NULL,NULL,NULL,0,NULL,NULL 68443,212608,456567,NULL,NULL,NULL,0,NULL,NULL 68444,41415,1374589,NULL,NULL,NULL,0,NULL,NULL 68445,2495427,712889,Favorite Question Popular Question Popular Question Notable Question Yearling Good Question Census Yearling Notable Question Popular Question Announcer Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68446,66269,712889,Favorite Question Popular Question Popular Question Notable Question Yearling Good Question Census Yearling Notable Question Popular Question Announcer Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68447,301504,162846,NULL,NULL,NULL,0,NULL,NULL 68448,93019,266193,Editor Excavator Notable Question Notable Question Caucus Nice Answer Caucus,NULL,NULL,0,NULL,NULL 68449,420288,881310,NULL,NULL,NULL,0,NULL,NULL 68450,498500,856641,Tumbleweed,NULL,NULL,0,NULL,NULL 68451,400524,332844,Yearling Good Answer,NULL,NULL,0,NULL,NULL 68452,892727,741695,Popular Question Excavator Yearling Nice Answer Good Answer Yearling Great Question Caucus Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 68453,307444,193967,Student Popular Question Yearling,NULL,NULL,0,NULL,NULL 68454,130545,1094616,Nice Question Popular Question Enlightened Civic Duty Custodian Nice Answer Nice Question Notable Question Nice Question Inquisitive Nice Question Famous Question Popular Question Yearling Necromancer Revival Nice Question Popular Question Good Answer Famous Question Popular Question Notable Question Popular Question Notable Question Good Answer Good Question Good Answer Yearling Census Popular Question Good Question Necromancer Nice Answer Nice Question Good Question Nice Answer,NULL,pIt prevents href http haacked com archive 2009 06 25 json hijacking aspx rel noreferrer JSON hijacking major JSON security issue that is formally href https security stackexchange com questions 155518 why json hijacking attack doesnt work in modern browsers how was it fixed fixed in all major browsers href https caniuse com feat es5 rel noreferrer since 2011 with EMCA5 ppContrived example say Google has URL like codemail google com json action inbox code which returns the first 50 messages of your inbox in JSON format Evil websites on other domains can make AJAX requests to get this data due to the same origin policy but they can include the URL via code lt script gt code tag The URL is visited with emyour em cookies and by href http ejohn org blog re securing json rel noreferrer overriding the global array constructor or accessor methods they can have method called whenever an object array or hash attribute is set allowing them to read the JSON content ppThe codewhile code or code amp amp amp BLAH amp amp amp code prevents this an AJAX request at codemail google com code will have full access to the text content and can strip it away But code lt script gt code tag insertion blindly executes the JavaScript without any processing resulting in either an infinite loop or syntax error ppThis does not address the issue of href https en wikipedia org wiki Cross site request forgery rel noreferrer cross site request forgery So if visit compromised page Google drains my battery guess this is necessary due to the lack of synchronous sleep function in Javascript while sleep Number MAX SAFE INTEGER,0,NULL,NULL 68455,732894,1324969,NULL,NULL,NULL,0,NULL,NULL 68456,36337,566389,NULL,NULL,NULL,0,NULL,NULL 68457,79831,622398,NULL,NULL,NULL,0,NULL,NULL 68458,153989,539614,NULL,NULL,NULL,0,NULL,NULL 68459,614323,521461,NULL,NULL,NULL,0,NULL,NULL 68460,394258,766824,NULL,NULL,NULL,0,NULL,NULL 68461,215571,1192193,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 68462,108971,712630,NULL,NULL,NULL,0,NULL,NULL 68463,81176,1129144,NULL,NULL,NULL,0,NULL,NULL 68464,381296,1129144,NULL,NULL,NULL,0,NULL,NULL 68465,346860,594269,Nice Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 68466,654672,1014418,NULL,NULL,NULL,0,NULL,NULL 68467,62628,1204974,Notable Question,NULL,NULL,0,NULL,NULL 68468,72890,19929,Notable Question Famous Question Great Answer Yearling Famous Question Notable Question Notable Question Notable Question Famous Question Yearling Popular Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 68469,1001789,1483397,NULL,NULL,NULL,0,NULL,NULL 68470,3417497,593415,Yearling Revival Famous Question Nice Answer Caucus Notable Question Yearling Yearling Caucus Populist,NULL,NULL,0,NULL,NULL 68471,10005,119313,Yearling Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 68472,79798,451116,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68473,410589,361569,Yearling Yearling,NULL,NULL,0,NULL,NULL 68474,18309,221217,Proofreader Reviewer Good Answer Yearling Good Answer Custodian Guru Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 68475,333889,577347,NULL,NULL,NULL,0,NULL,NULL 68476,464629,355766,Great Question Yearling Stellar Question Yearling Yearling Civic Duty Editor Yearling Yearling,NULL,NULL,0,NULL,NULL 68477,520132,439067,NULL,NULL,NULL,0,NULL,NULL 68478,627451,824183,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 68479,416644,123674,Census Informed,NULL,NULL,0,NULL,NULL 68480,96967,895951,NULL,NULL,NULL,0,NULL,NULL 68481,212053,381734,Notable Question Notable Question Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 68482,127640,528041,Announcer,NULL,NULL,0,NULL,NULL 68483,895092,754459,NULL,NULL,NULL,0,NULL,NULL 68484,251990,420478,NULL,NULL,NULL,0,NULL,NULL 68485,803839,504356,Notable Question Necromancer Enthusiast Yearling Popular Question Nice Answer Popular Question Necromancer Famous Question Good Answer Yearling Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 68486,64153,331858,Nice Question Good Question Popular Question Nice Answer Announcer Yearling Notable Question Notable Question Necromancer Nice Question Good Question Necromancer Nice Answer Nice Answer Custodian Notable Question Yearling Custodian Civic Duty Good Answer Notable Question Nice Answer Nice Question Popular Question Notable Question Documentation User Nice Question Good Answer Guru Nice Answer Inquisitive Notable Question Good Question Yearling Popular Question Popular Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68487,1474334,1538976,NULL,NULL,NULL,0,NULL,NULL 68488,142340,325224,Notable Question Popular Question Notable Question Civic Duty Popular Question Nice Question Popular Question Popular Question Caucus Notable Question Popular Question Popular Question Famous Question Fanatic Custodian Yearling Caucus Constituent Notable Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 68489,178253,516309,NULL,NULL,NULL,0,NULL,NULL 68490,913180,1417604,NULL,NULL,NULL,0,NULL,NULL 68491,141378,298821,NULL,NULL,NULL,0,NULL,NULL 68492,88337,64444,Nice Answer Yearling Notable Question Necromancer Yearling Revival Organizer Nice Answer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 68493,68313,247002,Yearling Favorite Question Nice Question Popular Question Popular Question Famous Question Nice Question Notable Question Great Question Good Question Good Question Custodian Caucus Yearling Favorite Question Notable Question Good Question Caucus Notable Question Popular Question Yearling Nice Question Famous Question Notable Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 68494,1336727,541805,Curious Revival Necromancer Popular Question Autobiographer Yearling Excavator Popular Question Notable Question Necromancer Custodian Notable Question,NULL,NULL,0,NULL,NULL 68495,1460060,1125186,Notable Question Popular Question Nice Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 68496,14081,104252,Notable Question Good Answer Yearling Yearling Notable Question Guru Announcer Yearling,NULL,NULL,0,NULL,NULL 68497,233996,155616,Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 68498,330513,1181664,Popular Question,NULL,NULL,0,NULL,NULL 68499,1795588,1201309,NULL,NULL,NULL,0,NULL,NULL 68500,319311,815183,Yearling Great Answer Yearling Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68501,409541,591574,NULL,NULL,NULL,0,NULL,NULL 68502,186919,591574,NULL,NULL,NULL,0,NULL,NULL 68503,13084,1750,Guru Yearling Yearling Nice Answer Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 68504,65124,560519,NULL,NULL,NULL,0,NULL,NULL 68505,209500,182493,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68506,489272,3226,Popular Question Enthusiast Famous Question Yearling Popular Question Nice Answer Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Answer Good Answer Nice Question Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 68507,47021,1136300,Popular Question Caucus Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 68508,750676,730356,NULL,NULL,NULL,0,NULL,NULL 68509,774769,730356,NULL,NULL,NULL,0,NULL,NULL 68510,416681,480195,NULL,NULL,NULL,0,NULL,NULL 68511,6473,777370,Nice Answer Enlightened Yearling Good Answer Good Answer Guru Good Answer Yearling Nice Answer Enlightened Yearling jquery Good Answer,NULL,NULL,0,NULL,NULL 68512,1522876,1050018,Yearling Revival Nice Answer Enlightened Yearling Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 68513,798306,1524233,NULL,NULL,NULL,0,NULL,NULL 68514,257854,705144,NULL,NULL,NULL,0,NULL,NULL 68515,103801,1553047,Informed Editor Student Custodian Supporter Scholar,NULL,NULL,0,NULL,NULL 68516,3038987,1553047,Informed Editor Student Custodian Supporter Scholar,NULL,NULL,0,NULL,NULL 68517,107908,801281,NULL,NULL,NULL,0,NULL,NULL 68518,183952,334717,Editor Excavator Popular Question Census Citizen Patrol Custodian Custodian Announcer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 68519,128303,1303846,Yearling Nice Answer Revival Custodian Custodian Custodian Custodian Citizen Patrol Proofreader Excavator Custodian Yearling Civic Duty Documentation User Necromancer Yearling Revival Scholar Revival Custodian Custodian,NULL,NULL,0,NULL,NULL 68520,241446,1465345,NULL,NULL,NULL,0,NULL,NULL 68521,584958,440764,Popular Question Nice Answer Popular Question Nice Answer Custodian ruby Nice Answer Enlightened Nice Answer Enlightened Yearling Popular Question Popular Question Nice Answer Enlightened Yearling Enlightened Nice Answer Nice Answer php Good Answer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 68522,98114,291573,Announcer Necromancer Yearling Nice Answer Revival Necromancer Revival Announcer Yearling Announcer Revival Announcer Nice Question Announcer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 68523,6495,341306,Revival Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 68524,496820,1198768,NULL,NULL,NULL,0,NULL,NULL 68525,4708068,191870,Popular Question Popular Question Famous Question Census,NULL,NULL,0,NULL,NULL 68526,1024043,191870,Popular Question Popular Question Famous Question Census,NULL,NULL,0,NULL,NULL 68527,2036784,191870,Popular Question Popular Question Famous Question Census,NULL,NULL,0,NULL,NULL 68528,335577,1468744,NULL,NULL,NULL,0,NULL,NULL 68529,117784,940412,NULL,NULL,NULL,0,NULL,NULL 68530,3216629,940412,NULL,NULL,NULL,0,NULL,NULL 68531,901336,1392226,NULL,NULL,NULL,0,NULL,NULL 68532,1986518,482800,Promoter Benefactor Popular Question Popular Question Popular Question Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68533,1215928,215403,Student Scholar Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 68534,448470,716518,NULL,NULL,NULL,0,NULL,NULL 68535,1236211,716518,NULL,NULL,NULL,0,NULL,NULL 68536,1166088,873815,NULL,NULL,NULL,0,NULL,NULL 68537,163841,805875,Yearling Caucus Constituent Popular Question Custodian Enthusiast Yearling Custodian Custodian Custodian Caucus Constituent Fanatic Explainer Civic Duty lua Custodian Documentation User Announcer Yearling,NULL,NULL,0,NULL,NULL 68538,539488,189984,Census,NULL,NULL,0,NULL,NULL 68539,200490,685930,NULL,NULL,NULL,0,NULL,NULL 68540,230503,744249,Documentation User Editor,NULL,NULL,0,NULL,NULL 68541,384067,1358396,NULL,NULL,NULL,0,NULL,NULL 68542,106415,198172,Yearling Famous Question Notable Question Famous Question Popular Question Popular Question Popular Question Self-Learner Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 68543,630681,692224,Commentator Good Answer Yearling Revival Disciplined Revival Caucus Student Yearling Scholar Necromancer Nice Answer Nice Answer Enlightened Yearling Good Answer Yearling Necromancer Great Answer Citizen Patrol Necromancer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 68544,4435,1224303,NULL,NULL,NULL,0,NULL,NULL 68545,701323,1262995,Notable Question Necromancer Informed Self-Learner Caucus Famous Question Yearling Popular Question Caucus Custodian Custodian Autobiographer Constituent Popular Question,NULL,NULL,1,codesign keychain gets ignored ios xcode jenkins xcodebuild codesign pI am exporting App archives using the command line tools codexcodebuild code Essentially this is what running ppre codexcodebuild workspace WORKSPACE PATH scheme SCHEME NAME archivePath PROJECT ARCHIVE configuration CONFIGURATION sdk TARGET SDK DEVELOPMENT TEAM XXXXXXXX OTHER CODE SIGN FLAGS keychain Users user Library Keychains jenkins keychain archive code prepAnd this is the result ppre codeCheck dependenciesNo signing certificate iOS Development found No iOS Development signing certificate matching team ID XXXXXXX with private key was found Code signing is required for product type Application in SDK iOS 10 ARCHIVE FAILED The following build commands failed Check dependencies failure echo 65 code prepThe code signing fails because codecodesign code ignores the keychain parameter Now here is the interesting part The keychain want to use is codejenkins keychain db code as specified above That certainly does not work Here is my keychain search list ppre code security list keychains Users user Library Keychains login keychain db Library Keychains System keychain code prepObviously codejenkins keychain db code is not in there as it should be If am adding the codejenkins keychain db code in the search list it starts working pp strongUnfortunately this is not solution for me because do have multiple keychains with the same private keys and certificates That leads xcodebuild to pick up the first emright em certificate that it can find which will fails because the keychain is probably not unlocked strong,NULL 68546,677117,100170,Popular Question Curious Revival,NULL,NULL,0,NULL,NULL 68547,10224,1240001,Necromancer Necromancer Nice Answer Yearling Necromancer Necromancer Nice Answer Civic Duty Documentation Pioneer Informed Cleanup Caucus Good Answer Constituent Quorum Yearling Necromancer Good Answer Self-Learner Nice Answer Nice Answer Documentation User Nice Question Necromancer Nice Answer Yearling Caucus Necromancer Popular Question Custodian Great Answer Organizer Custodian Nice Question,NULL,strongSimple solution strong if you are not interested in coming back to the process just want it to keep running ppre codenohup node server js amp code prep strongPowerful solution strong allows you to reconnect to the process if it is interactive ppre codescreen code prepYou can then detach by pressing Ctrl and then attach back by running codescreen code ppAlso consider the newer alternative to screen tmux Please to anyone reading this running node js server inside screen or tmux session is an AMATEUR solution Don do that unless for quick tests To keep process running you need to daemonize it Use proper tools for it like forever https github com foreverjs forever pm2 http pm2 keymetrics io or the plain old init scripts http linux die net man init strongSimple solution strong if you are not interested in coming back to the process just want it to keep running ppre codenohup node server js amp code prep strongPowerful solution strong allows you to reconnect to the process if it is interactive ppre codescreen code prepYou can then detach by pressing Ctrl and then attach back by running codescreen code ppAlso consider the newer alternative to screen tmux why keep an interactive shell session and full terminal multiplexer if the intent is just to keep the process running It an amateur solution because it the wrong approach And it fragile it doesn work in the long run In real life already had colleagues doing exactly this and it ALWAYS ended badly Why is my app offline Where is my screen session and so on Screen and Tmux are awesome use them literally everyday but this is not what they were meant to strongSimple solution strong if you are not interested in coming back to the process just want it to keep running ppre codenohup node server js amp code prep strongPowerful solution strong allows you to reconnect to the process if it is interactive ppre codescreen code prepYou can then detach by pressing Ctrl and then attach back by running codescreen code ppAlso consider the newer alternative to screen tmux no this is totally different If you need to interact with the process you want to keep an interactive session around but without the risk of network disruptions or simply with the possibility to disconnect your laptop In this case screen and tmux are the right tools for the job pFor the sake of completeness just because none of the previous answers mentioned this method if you are working with Node js and don have to care about browser compatibility the desired effect is pretty easy to achieve with the built in codeinherits code of the codeutil code module href https nodejs org api util html util util inherits constructor superconstructor rel noreferrer official docs here ppFor example let suppose you want to create custom error class that takes an error code as the first argument and the error message as the second argument ppfile strongcustom error js strong ppre class lang js prettyprint override code use strict var util require util function CustomError code message Error captureStackTrace this CustomError this name CustomError name this code code this message message util inherits CustomError Error module exports CustomError code prepNow you can instantiate and pass throw your codeCustomError code ppre codevar CustomError require path to custom error pass as the first argument to your callbackcallback new CustomError 404 Not found or if you are working with try catch throw itthrow new CustomError 500 Server Error code prepNote that with this snippet the stack trace will have the correct file name and line and the error instance will have the correct name ppThis happens due to the usage of the codecaptureStackTrace code method which creates codestack code property on the target object in this case the codeCustomError code being instantiated For more details about how it works check the documentation href https nodejs org api errors html errors error capturestacktrace targetobject constructoropt rel noreferrer here Hey you are totally right It fixed now Thanks,1,NULL,What good way to extend Error in JavaScript javascript exception error handling pI want to throw some things in my JS code and want them to be instanceof Error but also want to have them be something else ppIn Python typically one would subclass Exception ppWhat the appropriate thing to do in JS pFor the sake of completeness just because none of the previous answers mentioned this method if you are working with Node js and don have to care about browser compatibility the desired effect is pretty easy to achieve with the built in codeinherits code of the codeutil code module href https nodejs org api util html util util inherits constructor superconstructor rel noreferrer official docs here ppFor example let suppose you want to create custom error class that takes an error code as the first argument and the error message as the second argument ppfile strongcustom error js strong ppre class lang js prettyprint override code use strict var util require util function CustomError code message Error captureStackTrace this CustomError this name CustomError name this code code this message message util inherits CustomError Error module exports CustomError code prepNow you can instantiate and pass throw your codeCustomError code ppre codevar CustomError require path to custom error pass as the first argument to your callbackcallback new CustomError 404 Not found or if you are working with try catch throw itthrow new CustomError 500 Server Error code prepNote that with this snippet the stack trace will have the correct file name and line and the error instance will have the correct name ppThis happens due to the usage of the codecaptureStackTrace code method which creates codestack code property on the target object in this case the codeCustomError code being instantiated For more details about how it works check the documentation href https nodejs org api errors html errors error capturestacktrace targetobject constructoropt rel noreferrer here 68548,1385611,1053083,NULL,NULL,NULL,0,NULL,NULL 68549,710839,1200938,NULL,NULL,NULL,0,NULL,NULL 68550,2104416,1253112,NULL,NULL,NULL,0,NULL,NULL 68551,1027313,1253112,NULL,NULL,NULL,0,NULL,NULL 68552,5087684,1253112,NULL,NULL,NULL,0,NULL,NULL 68553,114698,1141289,NULL,NULL,NULL,0,NULL,NULL 68554,181185,484382,Necromancer,NULL,NULL,0,NULL,NULL 68555,88931,1463740,Notable Question Popular Question Editor Promoter Benefactor Teacher Revival Announcer Announcer,NULL,NULL,0,NULL,NULL 68556,136448,1158541,NULL,NULL,NULL,0,NULL,NULL 68557,7532,1561486,NULL,NULL,NULL,0,NULL,NULL 68558,268012,445700,Commentator Caucus Critic Custodian Custodian Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 68559,2769518,745503,Census Nice Question,NULL,NULL,0,NULL,NULL 68560,363538,362634,Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Notable Question Notable Question Good Answer Announcer Popular Question Great Answer Popular Question Yearling Revival Famous Question javascript Popular Question Popular Question Caucus Good Answer Popular Question Notable Question Favorite Question Yearling Notable Question Caucus Good Question Notable Question Booster Nice Answer Enlightened Notable Question Custodian Notable Question Nice Question Caucus Nice Answer Enlightened Great Question Yearling Publicist Nice Question Good Answer,NULL,NULL,0,NULL,NULL 68561,238500,946155,Teacher,NULL,NULL,0,NULL,NULL 68562,84860,522643,NULL,NULL,NULL,0,NULL,NULL 68563,352569,679951,Tumbleweed Student,NULL,NULL,0,NULL,NULL 68564,231440,1094833,NULL,NULL,NULL,0,NULL,NULL 68565,367029,722738,Tumbleweed Civic Duty Yearling Necromancer Good Answer Quorum Self-Learner Custodian Necromancer Popular Question Necromancer Yearling Necromancer Nice Answer Notable Question Popular Question Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 68566,542661,977949,Student,NULL,NULL,0,NULL,NULL 68567,161205,1144022,Critic,NULL,NULL,0,NULL,NULL 68568,7103,14660,Good Answer Nice Answer Nice Answer linux mysql Great Answer Notable Question Custodian Nice Answer Nice Answer Enlightened Nice Answer c Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Good Question Yearling github Enlightened Popular Question arrays Revival Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer ruby Enlightened Refiner Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Announcer Nice Answer Nice Question Guru Generalist hash Great Answer Nice Answer Not a Robot Nice Answer Nice Answer Enlightened Nice Answer Caucus Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer database Famous Question Good Answer Good Answer Good Question string postgresql Nice Answer Enlightened Nice Answer Census git Nice Answer Good Answer Good Answer Nice Answer Nice Answer Talkative c Good Answer Enlightened Nice Question Nice Answer Enlightened Announcer Nice Answer Enlightened sql performance Guru Nice Answer Announcer Announcer Benefactor Popular Question Yearling perl-module Good Answer Nice Answer Notable Question bash Announcer Nice Answer Nice Answer Good Answer,NULL,pAccording to the ISO standard when you convert an integer to signed type and the value is outside the range of the target type the result is implementation defined Or an implementation defined signal can be raised but don know of any compilers that do this ppIn practice the most common behavior is that the high order bits are discarded So assuming codeint code is 32 bits and codeshort code is 16 bits converting the value code0x1248642 code will probably yield bit pattern that looks like code0x8642 code And assuming two complement representation for signed types which is used on almost all systems the high order bit is the sign bit so the numeric value of the result will be code 31166 code ppre codeint sx code prepThis also involves an implicit conversion from codeshort code to codeint code Since the range of codeint code is guaranteed to cover at least the entire range of codeshort code the value is unchanged Since in your example the value of codesx code happens to be negative this change of representation is likely to involve emsign extension em propagating the code1 code sign bit to all 16 high order bits of the result ppAs indicated none of these details are required by the language standard If you really want to truncate values to narrower type it probably best to use unsigned types which have language specified wraparound behavior and perhaps explicit masking operations like this ppre codeunsigned int 0x1248642 unsigned short sx amp 0xFFFF code prepIf you have 32 bit quantity that you want to shove into 16 bit variable the first thing you should do is decide how you want your code to behave if the value doesn fit Once you ve decided that you can figure out how to write code that does what you want Sometimes truncation happens to be what you want in which case your task is going to be easy especially if you re using unsigned types Sometimes an out of range value is an error in which case you need to check for it and decide how to handle the error Sometimes you might want the value to saturate rather than truncate so you ll need to write code to do that ppKnowing how conversions work in is important but if you emstart em with that question you just might be approaching your problem from the wrong direction If your code assumes will fit in short instead of masking you can assert USHRT MAX to enforce that assumption,0,NULL,NULL 68569,112385,765615,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68570,15161,1492054,NULL,NULL,NULL,0,NULL,NULL 68571,1157717,386809,NULL,NULL,NULL,0,NULL,NULL 68572,498047,1301195,NULL,NULL,NULL,0,NULL,NULL 68573,781255,1250251,Student Famous Question,NULL,NULL,0,NULL,NULL 68574,2816719,765344,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68575,154929,1464735,NULL,NULL,NULL,0,NULL,NULL 68576,103138,1065584,Notable Question Critic,NULL,NULL,0,NULL,NULL 68577,37649,233051,NULL,NULL,NULL,0,NULL,NULL 68578,612914,16045,Yearling,NULL,NULL,0,NULL,NULL 68579,786724,477453,Nice Answer Enlightened Yearling Promoter Nice Question Nice Answer Enlightened Announcer Announcer Yearling Census Nice Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68580,449043,564684,Good Question Notable Question Scholar Yearling Supporter,NULL,NULL,0,NULL,NULL 68581,1132939,1512081,NULL,NULL,NULL,0,NULL,NULL 68582,26678,365452,Good Answer Yearling,NULL,NULL,0,NULL,NULL 68583,306860,1250737,Student Revival Critic Popular Question Yearling Notable Question Scholar Nice Question Popular Question,NULL,NULL,0,NULL,NULL 68584,826993,826371,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 68585,380841,1420460,Enthusiast Critic Revival Yearling Caucus Constituent Nice Answer Caucus,NULL,NULL,0,NULL,NULL 68586,578620,22690,Yearling Popular Question,NULL,NULL,0,NULL,NULL 68587,59366,237733,Great Answer Famous Question Notable Question Good Question Famous Question Famous Question Good Answer Nice Question Famous Question Popular Question Yearling Good Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 68588,232091,311254,Nice Answer Enlightened Yearling Good Answer Populist Good Answer Nice Answer Enlightened Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 68589,8020361,1308147,Scholar Supporter Student,NULL,NULL,0,NULL,NULL 68590,1056368,1308147,Scholar Supporter Student,NULL,NULL,0,NULL,NULL 68591,233088,907073,NULL,NULL,NULL,0,NULL,NULL 68592,262977,252007,Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 68593,1515227,1040792,NULL,NULL,NULL,0,NULL,NULL 68594,44630,111777,Good Answer Favorite Question Good Answer Announcer Guru Famous Question Famous Question Good Answer Favorite Question Yearling Notable Question Notable Question Popular Question Nice Answer Nice Answer Notable Question Nice Answer Necromancer Good Question Nice Answer Enlightened Nice Answer Enlightened Yearling Great Answer Popular Question Popular Question Nice Question Popular Question Good Question Good Answer Nice Answer Enlightened Notable Question Guru Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 68595,393516,30701,Notable Question,NULL,NULL,0,NULL,NULL 68596,229446,823952,Good Answer Guru Necromancer Necromancer Yearling Curious Yearling Caucus Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 68597,45968,896677,NULL,NULL,NULL,0,NULL,NULL 68598,417019,547015,Popular Question,NULL,NULL,0,NULL,NULL 68599,107092,294907,NULL,NULL,NULL,0,NULL,NULL 68600,714601,1563179,NULL,NULL,NULL,0,NULL,NULL 68601,842665,889399,NULL,NULL,NULL,0,NULL,NULL 68602,183156,371974,Revival Popular Question Popular Question Popular Question Notable Question Revival Popular Question Popular Question Yearling Famous Question Announcer Popular Question Good Question Announcer Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68603,378293,860401,Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 68604,913483,471662,NULL,NULL,NULL,0,NULL,NULL 68605,111466,1387738,NULL,NULL,NULL,0,NULL,NULL 68606,1512260,1150666,NULL,NULL,NULL,0,NULL,NULL 68607,41822,797861,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 68608,8317,653802,NULL,NULL,NULL,0,NULL,NULL 68609,320087,423906,Scholar Yearling Necromancer Caucus Constituent Nice Answer Caucus,NULL,NULL,0,NULL,NULL 68610,571474,1560311,Informed,NULL,NULL,0,NULL,NULL 68611,145756,262012,NULL,NULL,NULL,0,NULL,NULL 68612,133193,469572,NULL,NULL,NULL,0,NULL,NULL 68613,463346,1158855,NULL,NULL,NULL,0,NULL,NULL 68614,117544,567750,NULL,NULL,NULL,0,NULL,NULL 68615,103495,1488779,NULL,NULL,NULL,0,NULL,NULL 68616,1485767,1009788,NULL,NULL,NULL,0,NULL,NULL 68617,845525,858297,NULL,NULL,NULL,0,NULL,NULL 68618,130386,1149264,NULL,NULL,NULL,0,NULL,NULL 68619,593709,945657,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68620,588661,926022,Scholar Student Necromancer,NULL,NULL,0,NULL,NULL 68621,97762,910553,Popular Question Yearling Notable Question Nice Question Notable Question Notable Question Famous Question Caucus Famous Question Good Answer Yearling Popular Question Nice Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68622,1221462,1284704,Student,NULL,NULL,0,NULL,NULL 68623,878316,935582,NULL,NULL,NULL,0,NULL,NULL 68624,1532388,1019092,Popular Question,NULL,NULL,0,NULL,NULL 68625,1202707,455095,Famous Question Famous Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 68626,116430,628531,NULL,NULL,NULL,0,NULL,NULL 68627,11032,143007,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 68628,217214,1471288,NULL,NULL,NULL,0,NULL,NULL 68629,371697,111337,Self-Learner Nice Answer Yearling Nice Answer Enlightened Nice Answer Curious Nice Question Yearling Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 68630,89771,766845,Nice Question,NULL,NULL,0,NULL,NULL 68631,25256,627623,Yearling Informed Critic Notable Question,NULL,NULL,0,NULL,NULL 68632,359170,629281,NULL,NULL,NULL,0,NULL,NULL 68633,367670,102446,Caucus Informed,NULL,NULL,0,NULL,NULL 68634,414819,467211,Notable Question,NULL,NULL,0,NULL,NULL 68635,210640,1404661,NULL,NULL,NULL,0,NULL,NULL 68636,186950,686644,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 68637,466030,932720,NULL,NULL,NULL,0,NULL,NULL 68638,1423584,1220218,NULL,NULL,NULL,0,NULL,NULL 68639,209388,1038427,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68640,227002,4028,Custodian Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 68641,190584,935537,Editor Revival,NULL,NULL,0,NULL,NULL 68642,422922,1394296,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68643,102908,2873,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 68644,74138,195550,Popular Question Yearling Announcer Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 68645,132014,470351,NULL,NULL,NULL,0,NULL,NULL 68646,96384,662515,NULL,NULL,NULL,0,NULL,NULL 68647,1566096,1308674,NULL,NULL,NULL,0,NULL,NULL 68648,160605,507511,NULL,NULL,NULL,0,NULL,NULL 68649,337645,814808,Revival,NULL,NULL,0,NULL,NULL 68650,199318,895273,NULL,NULL,NULL,0,NULL,NULL 68651,688853,76435,NULL,NULL,NULL,0,NULL,NULL 68652,588439,758467,NULL,NULL,NULL,0,NULL,NULL 68653,913430,1243641,Good Answer Yearling Enthusiast functional-programming ramda.js Nice Answer Enlightened Nice Question Nice Answer Enlightened Guru Announcer Caucus Peer Pressure Guru Nice Answer arrays Custodian Custodian Yearling Popular Question Cleanup Popular Question ramda.js Great Answer Talkative Notable Question Nice Answer javascript Yearling functional-programming Good Answer Caucus Sportsmanship Nice Answer Announcer Nice Answer Pundit Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,Good names for flipped versions of lt lte gt and gte javascript functional programming ramda js pI ve been working for some time on Javascript FP library called strong href https github com ramda ramda rel noreferrer Ramda strong and having slight problem with naming things You ve heard the old line right There are only two hard problems in Computer Science cache invalidation naming things and off by one errors ppIn this library almost every function of more than one parameter is automatically curried And this works well for most use cases But there are some issues with few functions which are non commutative binary operators The issue is that the English names often tend to imply something different than what happens when currying is applied For example ppre codevar div10 divide 10 code prep emsounds em like it should be function that divides its parameter by 10 But in fact it divides its parameter stronginto strong 10 which is pretty clear if you look at the definition ppre codevar divide curry function return code prepSo instead the expected ppre codediv10 50 gt NO code prepIn fact you get ppre codediv10 50 gt Correct but surprising code prepWe handle this by documenting the difference from people possible expectations and creating codedivideBy code which is just codeflip divide code and codesubtractN code which is codeflip subtract code But we haven found good equivalent for functions such as codelt code ppre codeR lt curry function return lt code prepor its cousins codelte code codegt code and codegte code ppMy own intuition would be that ppre codemap lt gt false false false false true true false code prepBut of course it actually returns ppre code gt true true true false false false true code prepSo like to do the same document and point to alternate name routine for codelt code and its ilk But haven been able to find good name The only real candidate has been codeltVal code and that doesn really work when called with both arguments We did strong href https github com ramda ramda issues 175 rel noreferrer discuss this issue strong but had no good conclusions ppHave others dealt with this and come up with good solutions Or even if not any good suggestions for name for the flipped versions of these functions phrp strongUpdate strong ppSomeone suggested that this be closed because unclear what you were asking and guess the question really emwas em lost bit in the explanation The simple question is ppWhat would be good intuitive name for flipped version of codelt code rth The converse of lt is gte but is quite right that what wanted here was gt which clearly equates to flip lt In any case we did try for short time to implement something like the suggestion made here It didn work well for us but it lead nonetheless to some very interesting changes in our library,0,NULL,NULL 68654,731072,554524,NULL,NULL,NULL,0,NULL,NULL 68655,8333873,1309547,Popular Question,NULL,NULL,0,NULL,NULL 68656,457835,1223583,NULL,NULL,NULL,0,NULL,NULL 68657,160767,550072,NULL,NULL,NULL,0,NULL,NULL 68658,44197,237091,Nice Question Popular Question Great Answer Popular Question Revival Necromancer Guru Necromancer Notable Question Revival Popular Question Necromancer Popular Question Good Answer Nice Answer Notable Question Nice Question Notable Question Necromancer Popular Question Famous Question Notable Question Nice Answer Popular Question Yearling Notable Question Good Answer Good Question Famous Question Popular Question Popular Question Populist Necromancer Good Question Good Answer Necromancer Revival Popular Question Favorite Question Nice Question Popular Question Nice Question Good Answer Notable Question python Nice Question Yearling Announcer Nice Question Popular Question Popular Question Guru Good Answer asp.net Revival Announcer Nice Answer Necromancer Good Question Good Answer Announcer,NULL,pThere are various ways to alter codestrftime code so that it handles pre 1900 dates pulliThere href http code activestate com recipes 306860 proleptic gregorian dates and strftime before 1900 rel noreferrer recipe at ASPN that gives you separate codestrftime code method that you can call with date object codeaspn recipe strftime dt fmt code if you set it up in module yourself liliAs href https stackoverflow com questions 10263956 use datetime strftime on years before 1900 require year 1900 32206673 comment13197466 10263956 rumbalski said the external href http www egenix com products python mxBase mxDateTime doc rel noreferrer mxDateTime package supports this but that using totally different date object system liliAs of version code1 code the href https pypi python org pypi virtualtime rel noreferrer virtualtime package will patch both codetime strftime code and codedatetime datetime strftime code to behave as in Python code3 code You can take advantage of this without enabling the other virtual time functions emDisclaimer work on this package em li ulpNote that Python code2 code code3 code and code3 code have errors before the year 1900 Python code3 code has errors before the year 1000 Additionally pre code3 code versions interpret years between code0 code and code99 code as between code1969 code and code2068 code Python versions from code3 code onward support all positive years in codedatetime code and negative years in codetime strftime code and codetime strftime code doesn do any mapping of years between code0 code and code99 code ppThe original href http bugs python org issue1777412 rel noreferrer Python bug explains that they decided that this was feature in Python presumably since it avoided lack of system codestrftime code support for these dates and then gradually worked on it in the Python series by reimplementing functionality tried the virtualtime monkeypatcher but can find any documentation and can figure out what need to do to make it go,0,NULL,NULL 68659,102747,931347,Informed Autobiographer Teacher,NULL,NULL,0,NULL,NULL 68660,84576,365873,Popular Question,NULL,NULL,0,NULL,NULL 68661,333326,738577,NULL,NULL,NULL,0,NULL,NULL 68662,333344,738577,NULL,NULL,NULL,0,NULL,NULL 68663,700794,787745,NULL,NULL,NULL,0,NULL,NULL 68664,29967,155740,Yearling Notable Question Announcer Caucus Yearling Popular Question Nice Question Great Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 68665,173450,37947,Necromancer Great Answer Good Question Good Answer Notable Question Popular Question Notable Question Popular Question Great Answer Notable Question Nice Question Famous Question Great Answer Popular Question Good Answer Nice Answer Revival Necromancer Nice Answer Notable Question mysql Notable Question Nice Question Famous Question Nice Answer Great Answer Notable Question Nice Question Popular Question Notable Question Popular Question Famous Question Famous Question Popular Question Nice Answer Caucus Nice Question Yearling Stellar Question Nice Question Good Answer Popular Question Nice Question Nice Answer Notable Question Nice Question Good Question Nice Question Popular Question Nice Question Good Question Good Answer Notable Question Famous Question Announcer Good Answer Nice Question Revival Stellar Question Necromancer Notable Question Good Question Notable Question Nice Answer Caucus Necromancer Nice Answer Popular Question Famous Question Good Answer Necromancer Good Answer Yearling Great Answer Famous Question Census Good Answer Caucus Nice Question Popular Question Revival Good Question Nice Question Investor Popular Question Altruist Good Answer Famous Question Great Question Notable Question Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 68666,41292,590053,Revival Yearling Announcer Necromancer Announcer,NULL,NULL,0,NULL,NULL 68667,440573,927944,NULL,NULL,NULL,0,NULL,NULL 68668,4279865,1264467,Popular Question,NULL,NULL,0,NULL,NULL 68669,2406242,1264467,Popular Question,NULL,NULL,0,NULL,NULL 68670,26689,65597,NULL,NULL,NULL,0,NULL,NULL 68671,860400,412569,Popular Question Notable Question Notable Question Yearling Good Question Popular Question Notable Question Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 68672,144839,425366,NULL,NULL,NULL,0,NULL,NULL 68673,536410,311434,NULL,NULL,NULL,0,NULL,NULL 68674,271583,17210,Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 68675,420312,981347,Yearling,NULL,NULL,0,NULL,NULL 68676,617437,507627,NULL,NULL,NULL,0,NULL,NULL 68677,291515,718210,NULL,NULL,NULL,0,NULL,NULL 68678,11863,262100,NULL,NULL,NULL,0,NULL,NULL 68679,425109,490602,NULL,NULL,NULL,0,NULL,NULL 68680,341859,41089,Famous Question Favorite Question Good Question Popular Question Yearling Famous Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 68681,730728,682958,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 68682,529203,652641,NULL,NULL,NULL,0,NULL,NULL 68683,529204,652641,NULL,NULL,NULL,0,NULL,NULL 68684,176503,1915,Custodian Nice Question Yearling Nice Question Popular Question Yearling Nice Answer Documentation User Necromancer Yearling,NULL,NULL,0,NULL,NULL 68685,42196,272643,Nice Answer,NULL,NULL,0,NULL,NULL 68686,367604,746681,Student,NULL,NULL,0,NULL,NULL 68687,190634,746681,Student,NULL,NULL,0,NULL,NULL 68688,1505751,971209,NULL,NULL,NULL,0,NULL,NULL 68689,234096,487380,NULL,NULL,NULL,0,NULL,NULL 68690,138906,1169633,NULL,NULL,NULL,0,NULL,NULL 68691,368974,1264433,NULL,NULL,NULL,0,NULL,NULL 68692,24156,433491,NULL,NULL,NULL,0,NULL,NULL 68693,294184,261286,NULL,NULL,NULL,0,NULL,NULL 68694,28923,6380,Popular Question Great Answer Nice Answer Enlightened Good Question Nice Answer Yearling Famous Question Yearling Popular Question Guru Yearling,NULL,NULL,0,NULL,NULL 68695,36021,489280,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 68696,175906,461272,Nice Answer Yearling Popular Question Yearling Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 68697,6009,564210,NULL,NULL,NULL,0,NULL,NULL 68698,760532,1346880,Good Answer Yearling,NULL,NULL,0,NULL,NULL 68699,101346,116443,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 68700,348741,1326518,Nice Question Popular Question Popular Question Self-Learner Documentation User Yearling Custodian Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 68701,387309,226884,Necromancer Yearling,NULL,NULL,0,NULL,NULL 68702,80025,236442,NULL,NULL,NULL,0,NULL,NULL 68703,193519,942755,NULL,NULL,NULL,0,NULL,NULL 68704,117453,613828,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 68705,324842,460100,NULL,NULL,NULL,0,NULL,NULL 68706,7937316,825262,Popular Question,NULL,NULL,0,NULL,NULL 68707,597444,642757,Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 68708,96290,298132,Good Answer Famous Question Yearling Populist,NULL,NULL,0,NULL,NULL 68709,322734,907621,NULL,NULL,NULL,0,NULL,NULL 68710,757,230498,Teacher,NULL,NULL,0,NULL,NULL 68711,352675,725596,Commentator Excavator Yearling Student Yearling Necromancer Revival Nice Answer Enlightened Nice Answer Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 68712,200620,431912,NULL,NULL,NULL,0,NULL,NULL 68713,1328751,1238775,NULL,NULL,NULL,0,NULL,NULL 68714,6521,319074,Nice Question,NULL,NULL,0,NULL,NULL 68715,238595,789310,NULL,NULL,NULL,0,NULL,NULL 68716,263147,77280,NULL,NULL,NULL,0,NULL,NULL 68717,438686,1829,NULL,NULL,NULL,0,NULL,NULL 68718,885283,1145698,Popular Question,NULL,NULL,0,NULL,NULL 68719,77796,492914,Yearling Stellar Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 68720,444661,822114,Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 68721,128329,1823,NULL,NULL,NULL,0,NULL,NULL 68722,1173567,487921,NULL,NULL,NULL,0,NULL,NULL 68723,550103,598833,NULL,NULL,NULL,0,NULL,NULL 68724,78439,149503,Nice Answer Revival Yearling Necromancer Yearling Necromancer Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 68725,13368,346196,Popular Question Popular Question Famous Question Notable Question Nice Answer Popular Question Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 68726,2097,828155,NULL,NULL,NULL,0,NULL,NULL 68727,344983,527107,NULL,NULL,NULL,0,NULL,NULL 68728,447760,527107,NULL,NULL,NULL,0,NULL,NULL 68729,93511,1354927,NULL,NULL,NULL,0,NULL,NULL 68730,100835,191877,Popular Question Popular Question Revival Caucus Yearling Revival Notable Question Notable Question Announcer Census,NULL,NULL,0,NULL,NULL 68731,501529,394182,NULL,NULL,NULL,0,NULL,NULL 68732,462234,366781,NULL,NULL,NULL,0,NULL,NULL 68733,996397,770104,Yearling Good Answer Yearling Popular Question Popular Question Self-Learner Curious,NULL,NULL,0,NULL,NULL 68734,2807438,14582,Notable Question Popular Question Popular Question Necromancer Notable Question Famous Question Nice Question Famous Question Yearling Nice Question Notable Question Nice Question Notable Question Popular Question Notable Question Notable Question Necromancer Notable Question Notable Question Yearling Notable Question Nice Question Nice Question Nice Answer Good Question Popular Question Famous Question Famous Question Popular Question Favorite Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 68735,39221,312807,Notable Question Popular Question Custodian Yearling Revival Nice Question Notable Question Yearling Revival Good Question Yearling Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 68736,177918,47291,Notable Question,NULL,NULL,0,NULL,NULL 68737,243979,1119731,NULL,NULL,NULL,0,NULL,NULL 68738,41610,688184,Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 68739,235097,363888,Popular Question,NULL,NULL,0,NULL,NULL 68740,427297,216742,Nice Answer,NULL,NULL,0,NULL,NULL 68741,115817,1479779,NULL,NULL,NULL,0,NULL,NULL 68742,286028,982670,Famous Question Yearling Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 68743,86220,282773,Yearling Nice Answer Enlightened Notable Question Nice Answer mongodb Nice Answer Enlightened Guru Yearling Good Answer Guru Guru Yearling,NULL,NULL,0,NULL,NULL 68744,630341,314111,NULL,NULL,NULL,0,NULL,NULL 68745,234683,397354,Popular Question Necromancer Yearling Nice Answer Nice Answer Yearling Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 68746,13692,1406334,NULL,NULL,NULL,0,NULL,NULL 68747,93629,245341,NULL,NULL,NULL,0,NULL,NULL 68748,2190382,1205262,NULL,NULL,NULL,0,NULL,NULL 68749,447076,1205262,NULL,NULL,NULL,0,NULL,NULL 68750,25579,1163051,Yearling Popular Question Notable Question Yearling Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 68751,25308,5207,Tumbleweed Revival Editor Scholar Necromancer Yearling Nice Answer Yearling Revival Self-Learner Popular Question Good Answer,NULL,NULL,0,NULL,NULL 68752,178354,273962,Supporter Editor Notable Question,NULL,NULL,0,NULL,NULL 68753,890146,717370,Popular Question,NULL,NULL,0,NULL,NULL 68754,315248,749405,NULL,NULL,NULL,0,NULL,NULL 68755,15835,59816,Critic Notable Question,NULL,NULL,0,NULL,NULL 68756,269092,808850,Necromancer Commentator,NULL,NULL,0,NULL,NULL 68757,18034,247678,Student,NULL,NULL,0,NULL,NULL 68758,721667,870981,Revival,NULL,NULL,0,NULL,NULL 68759,31553,160969,Nice Answer Critic,NULL,NULL,0,NULL,NULL 68760,11772,542861,NULL,NULL,NULL,0,NULL,NULL 68761,239528,1536258,Popular Question,NULL,NULL,0,NULL,NULL 68762,1650228,912751,NULL,NULL,NULL,0,NULL,NULL 68763,1179896,931288,NULL,NULL,NULL,0,NULL,NULL 68764,467724,87780,NULL,NULL,NULL,0,NULL,NULL 68765,14536,841484,NULL,NULL,NULL,0,NULL,NULL 68766,341457,1024826,NULL,NULL,NULL,0,NULL,NULL 68767,111033,68393,Notable Question Yearling Famous Question Good Question Notable Question Yearling Necromancer Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 68768,29199,676030,Yearling Nice Answer Enlightened Necromancer Necromancer Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer assembly Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 68769,1128536,965629,Popular Question Critic Nice Question,NULL,NULL,0,NULL,NULL 68770,11037526,983092,Necromancer,NULL,NULL,0,NULL,NULL 68771,774746,983092,Necromancer,NULL,NULL,0,NULL,NULL 68772,47071,95149,NULL,NULL,NULL,0,NULL,NULL 68773,3418,110539,Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68774,1036120,815815,NULL,NULL,NULL,0,NULL,NULL 68775,89391,152739,Notable Question Yearling Caucus Great Answer Nice Answer Enlightened Great Answer Nice Question Yearling Nice Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68776,234043,845441,NULL,NULL,NULL,0,NULL,NULL 68777,630361,478927,NULL,NULL,NULL,0,NULL,NULL 68778,7074672,478927,NULL,NULL,NULL,0,NULL,NULL 68779,199032,111238,Nice Answer Good Question Custodian Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 68780,241618,41177,Notable Question Yearling Popular Question Famous Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 68781,715832,1065824,NULL,NULL,NULL,0,NULL,NULL 68782,182416,1299533,Yearling Yearling cloudfoundry Yearling,NULL,NULL,0,NULL,NULL 68783,750523,1296764,Announcer Yearling Good Question,NULL,NULL,0,NULL,NULL 68784,110582,220330,Yearling Enthusiast Informed Custodian Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 68785,118769,733716,NULL,NULL,NULL,0,NULL,NULL 68786,11075,23820,Famous Question Yearling Revival Excavator Not a Robot Yearling Good Question Civic Duty Self-Learner Yearling Popular Question,NULL,NULL,0,NULL,NULL 68787,184522,1264470,NULL,NULL,NULL,0,NULL,NULL 68788,169994,809696,NULL,NULL,NULL,0,NULL,NULL 68789,46702,1053803,NULL,NULL,NULL,0,NULL,NULL 68790,4677,1089302,NULL,NULL,NULL,0,NULL,NULL 68791,473438,560042,Commentator,NULL,NULL,0,NULL,NULL 68792,253309,1221902,Yearling Good Question Yearling Famous Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 68793,285910,824832,NULL,NULL,NULL,0,NULL,NULL 68794,139232,451664,Popular Question Yearling Notable Question Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 68795,256360,303381,Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Critic Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 68796,459812,1262548,NULL,NULL,NULL,0,NULL,NULL 68797,1498678,321301,Yearling Necromancer Electorate Nice Question Yearling Custodian Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68798,173519,321301,Yearling Necromancer Electorate Nice Question Yearling Custodian Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68799,6801211,853269,NULL,NULL,NULL,0,NULL,NULL 68800,175173,1175515,NULL,NULL,NULL,0,NULL,NULL 68801,79056,1113565,NULL,NULL,NULL,0,NULL,NULL 68802,6995,694178,NULL,NULL,NULL,0,NULL,NULL 68803,25730,1050084,Necromancer Yearling,NULL,NULL,0,NULL,NULL 68804,914985,350208,Necromancer Famous Question,NULL,NULL,0,NULL,NULL 68805,154029,69338,NULL,NULL,NULL,0,NULL,NULL 68806,110752,458913,NULL,NULL,NULL,0,NULL,NULL 68807,843414,323235,NULL,NULL,NULL,0,NULL,NULL 68808,129267,83400,NULL,NULL,NULL,0,NULL,NULL 68809,53159,484666,Nice Answer Yearling Popular Question Announcer Guru Nice Answer Popular Question Caucus Constituent Yearling Announcer Census Booster Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 68810,6551254,921594,NULL,NULL,NULL,0,NULL,NULL 68811,124771,434526,NULL,NULL,NULL,0,NULL,NULL 68812,101793,333706,Popular Question,NULL,NULL,0,NULL,NULL 68813,66552,543179,NULL,NULL,NULL,0,NULL,NULL 68814,39318,106207,Good Answer Nice Answer Yearling Nice Answer Yearling Guru Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 68815,1659321,1139102,NULL,NULL,NULL,0,NULL,NULL 68816,362290,725685,Scholar Supporter Teacher,NULL,NULL,0,NULL,NULL 68817,992040,206345,NULL,NULL,NULL,0,NULL,NULL 68818,265497,473285,Yearling Caucus Revival Student Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer django Announcer Good Answer Yearling Announcer Great Answer,NULL,NULL,0,NULL,NULL 68819,1387942,660277,NULL,NULL,NULL,0,NULL,NULL 68820,190426,293248,Yearling Popular Question Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 68821,120900,890973,Populist Good Answer Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 68822,271855,1235442,NULL,NULL,NULL,0,NULL,NULL 68823,22848,458254,NULL,NULL,NULL,0,NULL,NULL 68824,1100587,228539,Good Question Necromancer Famous Question Nice Question Notable Question Popular Question Notable Question Yearling Enthusiast Nice Question Popular Question Custodian Yearling Popular Question Great Answer Popular Question Famous Question Announcer Good Question,NULL,pre codedef strictly increasing return all lt for in zip def strictly decreasing return all gt for in zip def non increasing return all gt for in zip def non decreasing return all lt for in zip code pre pairwise from the docs is nice https docs python org library itertools html though being in itertools itself would be even better,0,NULL,NULL 68825,452380,196393,Revival Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 68826,1534,385560,NULL,NULL,NULL,0,NULL,NULL 68827,427837,1406443,Tumbleweed Good Question Yearling Caucus Critic Curious Census Popular Question,NULL,NULL,0,NULL,NULL 68828,161702,1209416,Notable Question Nice Answer Yearling Good Answer Guru Famous Question Yearling Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68829,273178,295282,Nice Answer Yearling Popular Question Tumbleweed Nice Answer Yearling Nice Answer Notable Question Nice Answer Good Answer Yearling Guru Custodian Curious Revival,NULL,NULL,0,NULL,NULL 68830,6188747,295282,Nice Answer Yearling Popular Question Tumbleweed Nice Answer Yearling Nice Answer Notable Question Nice Answer Good Answer Yearling Guru Custodian Curious Revival,NULL,NULL,0,NULL,NULL 68831,438226,454590,NULL,NULL,NULL,0,NULL,NULL 68832,6822,5353,Nice Answer Notable Question Necromancer Nice Answer Good Answer Guru Nice Answer Enlightened Yearling Guru Great Answer Good Answer Nice Answer Nice Answer Great Answer Yearling Great Answer Nice Answer Nice Answer Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 68833,222576,411792,Critic Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 68834,1639836,1353986,NULL,NULL,NULL,0,NULL,NULL 68835,2657095,1021823,NULL,NULL,NULL,0,NULL,NULL 68836,2726783,854821,NULL,NULL,NULL,0,NULL,NULL 68837,1152,218042,NULL,NULL,NULL,0,NULL,NULL 68838,60429,671858,Nice Answer Guru uiscrollview Curious Good Answer uiimage Yearling Good Answer Nice Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Guru Guru Nice Answer Good Answer Necromancer Nice Answer Good Answer Yearling Nice Answer Nice Answer Enlightened Guru Good Answer Notable Question Nice Answer uiimageview Good Answer Documentation User macos Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer multithreading,NULL,NULL,0,NULL,NULL 68839,576635,1193473,NULL,NULL,NULL,0,NULL,NULL 68840,110271,136444,Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 68841,845292,476498,NULL,NULL,NULL,0,NULL,NULL 68842,1028505,1310488,NULL,NULL,NULL,0,NULL,NULL 68843,251281,20142,Popular Question,NULL,NULL,0,NULL,NULL 68844,50510,1099401,NULL,NULL,NULL,0,NULL,NULL 68845,1060730,1222088,Popular Question Famous Question Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68846,782827,567570,NULL,NULL,NULL,0,NULL,NULL 68847,6080,450565,NULL,NULL,NULL,0,NULL,NULL 68848,1933438,874263,NULL,NULL,NULL,0,NULL,NULL 68849,1267632,874263,NULL,NULL,NULL,0,NULL,NULL 68850,189016,269621,Yearling Necromancer,NULL,NULL,0,NULL,NULL 68851,2790298,269621,Yearling Necromancer,NULL,NULL,0,NULL,NULL 68852,73528,405295,Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 68853,1340620,623498,NULL,NULL,NULL,0,NULL,NULL 68854,497749,283894,NULL,NULL,NULL,0,NULL,NULL 68855,131356,248646,Custodian Yearling Yearling Yearling Great Answer Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 68856,34337,499805,NULL,NULL,NULL,0,NULL,NULL 68857,374212,433789,Good Answer Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 68858,141802,381589,NULL,NULL,NULL,0,NULL,NULL 68859,224568,1344473,NULL,NULL,NULL,0,NULL,NULL 68860,155136,124775,Teacher Popular Question,NULL,NULL,0,NULL,NULL 68861,46094,1080603,NULL,NULL,NULL,0,NULL,NULL 68862,45442,230283,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 68863,181666,462585,Revival Nice Answer,NULL,NULL,0,NULL,NULL 68864,415777,450677,NULL,NULL,NULL,0,NULL,NULL 68865,52307,835961,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68866,179384,102601,Revival Yearling Editor Critic Yearling Yearling Tenacious Yearling Yearling Yearling Organizer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68867,1351338,412888,NULL,NULL,NULL,0,NULL,NULL 68868,1508814,1095498,NULL,NULL,NULL,0,NULL,NULL 68869,139937,720489,Populist Yearling Caucus Popular Question Yearling Nice Question Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 68870,1716128,263457,Good Answer Yearling Yearling Guru Yearling Great Answer Custodian Announcer Popular Question Yearling Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 68871,488334,263457,Good Answer Yearling Yearling Guru Yearling Great Answer Custodian Announcer Popular Question Yearling Yearling Notable Question Announcer,NULL,NULL,0,NULL,NULL 68872,1513008,1267769,NULL,NULL,NULL,0,NULL,NULL 68873,152401,709467,Yearling Yearling,NULL,NULL,0,NULL,NULL 68874,54947,1526817,NULL,NULL,NULL,0,NULL,NULL 68875,440907,1526817,NULL,NULL,NULL,0,NULL,NULL 68876,677414,727434,NULL,NULL,NULL,0,NULL,NULL 68877,1455560,256559,Tumbleweed,NULL,NULL,0,NULL,NULL 68878,454906,618320,Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Caucus Civic Duty Famous Question Popular Question Notable Question Popular Question Yearling Famous Question Nice Question Famous Question Custodian Excavator Notable Question Yearling Necromancer Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Revival,NULL,pUpdate using the wonderful href http docs python requests org en latest rel noreferrer requests library Note we are using the HEAD request which should happen more quickly then full GET or POST request ppre codeimport requeststry requests head https stackoverflow com print status code prints the int of the status code Find more at httpstatusrappers com except requests ConnectionError print failed to connect code pre If you track the actual browser requests you ll see http for stackoverflow redirects you to secure https equivalent and the browser follows that 403 redirect instruction So actually they re exactly the same from both places it just that the browser goes ahead and forwards you to the redirect location pUpdate using the wonderful href http docs python requests org en latest rel noreferrer requests library Note we are using the HEAD request which should happen more quickly then full GET or POST request ppre codeimport requeststry requests head https stackoverflow com print status code prints the int of the status code Find more at httpstatusrappers com except requests ConnectionError print failed to connect code pre Ha That wasn what intended with my comment think it was perfectly fine and in this context people should try understand why it Just works in the browser but returns 403 in code when in actuality the same thing happening both places,0,NULL,NULL 68879,294216,874999,NULL,NULL,NULL,0,NULL,NULL 68880,701644,761658,NULL,NULL,NULL,0,NULL,NULL 68881,606024,983260,NULL,NULL,NULL,0,NULL,NULL 68882,258131,1282592,NULL,NULL,NULL,0,NULL,NULL 68883,5966,310192,Popular Question Necromancer Yearling Good Answer Populist Popular Question Popular Question Nice Question Notable Question Notable Question Necromancer Notable Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 68884,927812,106581,Yearling Citizen Patrol Good Answer Popular Question,NULL,NULL,0,NULL,NULL 68885,198597,191365,NULL,NULL,NULL,0,NULL,NULL 68886,32739,219352,Yearling Announcer Popular Question Notable Question Popular Question Revival Announcer Famous Question Booster,NULL,NULL,0,NULL,NULL 68887,363179,194065,Revival Popular Question Nice Question Necromancer Notable Question Announcer Popular Question Yearling Popular Question Caucus Nice Answer Guru Notable Question Popular Question Yearling Investor Good Answer Popular Question Popular Question Notable Question Famous Question Announcer Yearling,NULL,NULL,0,NULL,NULL 68888,227208,542800,NULL,NULL,NULL,0,NULL,NULL 68889,391478,1566787,NULL,NULL,NULL,0,NULL,NULL 68890,396654,654801,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Necromancer Revival apache-zookeeper Yearling Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Guru Yearling Guru Guru Necromancer,NULL,NULL,0,NULL,NULL 68891,412360,706491,Yearling,NULL,NULL,0,NULL,NULL 68892,384399,473571,NULL,NULL,NULL,0,NULL,NULL 68893,19361,134506,Popular Question Yearling Nice Question Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 68894,216144,1103246,NULL,NULL,NULL,0,NULL,NULL 68895,242861,834327,Critic Necromancer Census Yearling Student Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 68896,30089,836198,Necromancer,NULL,NULL,0,NULL,NULL 68897,301980,973489,NULL,NULL,NULL,0,NULL,NULL 68898,228469,178306,Populist Good Answer Famous Question Taxonomist Custodian Custodian Yearling Self-Learner Revival Nice Answer Announcer Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Guru Popular Question Yearling,NULL,NULL,0,NULL,NULL 68899,370990,742580,NULL,NULL,NULL,0,NULL,NULL 68900,332265,662849,NULL,NULL,NULL,0,NULL,NULL 68901,163957,159235,Announcer Yearling Guru Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 68902,236577,603788,NULL,NULL,NULL,0,NULL,NULL 68903,517996,1094868,Student,NULL,NULL,0,NULL,NULL 68904,172787,459471,Teacher,NULL,NULL,0,NULL,NULL 68905,123488,405148,NULL,NULL,NULL,0,NULL,NULL 68906,173200,902876,NULL,NULL,NULL,0,NULL,NULL 68907,1577730,902876,NULL,NULL,NULL,0,NULL,NULL 68908,1126407,1134275,Yearling Popular Question Popular Question Nice Answer Caucus Yearling Necromancer Necromancer Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 68909,1748680,223769,Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 68910,143349,545794,Announcer Critic Good Answer Yearling Populist Revival Good Answer Yearling Announcer,NULL,pI used highly customized vim and now use an even more customized emacs think you ll find every instance of keymapping in my keymapping config file href https github com mbriggs emacs oldv2 blob master init init keymaps el rel noreferrer https github com mbriggs emacs oldv2 blob master init init keymaps el ppKeep in mind am rebinding stuff that real emacs users would consider heresy so YMMV if you ever want to learn real emacs really don ppOne thing would recommend to any ex vimmer is this ppre code esc quits defun minibuffer keyboard quit Abort recursive edit In Delete Selection mode if the mark is active just deactivate it then it takes second keyboard quit to abort the minibuffer interactive if and delete selection mode transient mark mode mark active setq deactivate mark when get buffer Completions delete windows on Completions abort recursive edit define key evil normal state map escape keyboard quit define key evil visual state map escape keyboard quit define key minibuffer local map escape minibuffer keyboard quit define key minibuffer local ns map escape minibuffer keyboard quit define key minibuffer local completion map escape minibuffer keyboard quit define key minibuffer local must match map escape minibuffer keyboard quit define key minibuffer local isearch map escape minibuffer keyboard quit code prepso that esc actually quits pretty much anything like pending prompts in the minibuffer The link is broken believe this is the new one https github com mbriggs emacs blob master config keybinds el,0,NULL,NULL 68911,4839,162773,NULL,NULL,NULL,0,NULL,NULL 68912,64945,979708,NULL,NULL,NULL,0,NULL,NULL 68913,247474,86263,Popular Question Famous Question Good Answer Yearling Notable Question Nice Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Announcer Popular Question Announcer Popular Question Famous Question Popular Question Great Question Caucus Notable Question Yearling Popular Question Popular Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 68914,142361,1188644,NULL,NULL,NULL,0,NULL,NULL 68915,2231157,1188644,NULL,NULL,NULL,0,NULL,NULL 68916,1308220,14106,Nice Question Favorite Question Tumbleweed Yearling Curious Good Question Caucus Good Question,NULL,NULL,0,NULL,NULL 68917,2405348,360955,Notable Question,NULL,NULL,0,NULL,NULL 68918,771282,1112205,NULL,NULL,NULL,0,NULL,NULL 68919,668099,583395,NULL,NULL,NULL,0,NULL,NULL 68920,203,101059,Yearling Yearling Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 68921,710395,1135517,NULL,NULL,NULL,0,NULL,NULL 68922,23555,325217,Yearling Nice Question Notable Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 68923,53808,519401,NULL,NULL,NULL,0,NULL,NULL 68924,256795,13652,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 68925,4320,453122,Critic,NULL,NULL,0,NULL,NULL 68926,1172212,990151,Teacher,NULL,NULL,0,NULL,NULL 68927,62092,75924,Yearling Custodian Nice Answer Yearling Nice Answer Great Answer Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 68928,4782879,1315396,NULL,NULL,NULL,0,NULL,NULL 68929,528049,14232,Yearling Yearling,NULL,NULL,0,NULL,NULL 68930,129054,219828,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 68931,1778268,292,Popular Question Stellar Question Yearling Popular Question Good Answer Popular Question Famous Question Popular Question Great Answer Famous Question Famous Question Notable Question Favorite Question Good Answer Famous Question Yearling Good Question Nice Question Nice Question Famous Question Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 68932,2796,494804,Census,NULL,NULL,0,NULL,NULL 68933,73835,1044752,Nice Answer,NULL,NULL,0,NULL,NULL 68934,478783,1080753,NULL,NULL,NULL,0,NULL,NULL 68935,1224343,1546062,NULL,NULL,NULL,0,NULL,NULL 68936,322388,972051,NULL,NULL,NULL,0,NULL,NULL 68937,749674,345325,NULL,NULL,NULL,0,NULL,NULL 68938,43156,1371043,NULL,NULL,NULL,0,NULL,NULL 68939,11154,18315,Yearling,NULL,NULL,0,NULL,NULL 68940,347563,575872,Yearling modx Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Cleanup Popular Question Notable Question Famous Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68941,186883,429065,NULL,NULL,NULL,0,NULL,NULL 68942,267208,849162,Yearling Self-Learner Notable Question Popular Question Notable Question Yearling Good Answer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 68943,605110,21691,Nice Question Nice Question Famous Question Famous Question Yearling Notable Question Notable Question Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 68944,134898,736571,Great Answer Yearling Popular Question Organizer Reviewer Nice Answer Good Answer Yearling sql Necromancer Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 68945,36545,203384,NULL,NULL,NULL,0,NULL,NULL 68946,296002,424245,Good Answer Nice Answer Enlightened Nice Answer Yearling Revival Nice Answer squeak Yearling Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 68947,690325,363642,Scholar Census Census,NULL,NULL,0,NULL,NULL 68948,37092,435933,NULL,NULL,NULL,0,NULL,NULL 68949,103631,1056708,NULL,NULL,NULL,0,NULL,NULL 68950,63738,177379,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 68951,219291,187385,NULL,NULL,NULL,0,NULL,NULL 68952,150262,597562,NULL,NULL,NULL,0,NULL,NULL 68953,248986,91529,Popular Question,NULL,NULL,0,NULL,NULL 68954,337043,863971,NULL,NULL,NULL,0,NULL,NULL 68955,86850,1109088,NULL,NULL,NULL,0,NULL,NULL 68956,233451,795315,NULL,NULL,NULL,0,NULL,NULL 68957,249608,14495,Yearling Census,NULL,NULL,0,NULL,NULL 68958,146274,1076210,NULL,NULL,NULL,0,NULL,NULL 68959,138523,159305,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 68960,171600,369669,Nice Question Necromancer Curious Organizer Yearling Self-Learner Necromancer,NULL,NULL,0,NULL,NULL 68961,1780487,1090713,Necromancer,NULL,NULL,0,NULL,NULL 68962,717609,1537692,Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 68963,232748,608776,NULL,NULL,NULL,0,NULL,NULL 68964,4952,36607,NULL,NULL,NULL,0,NULL,NULL 68965,155237,1172297,NULL,NULL,NULL,0,NULL,NULL 68966,41681,497527,NULL,NULL,NULL,0,NULL,NULL 68967,89625,729,Necromancer Good Question Yearling Nice Answer Enlightened Census Yearling Yearling Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 68968,788061,706578,Yearling Mortarboard Yearling Critic Revival Yearling Caucus Constituent Nice Answer Enlightened Yearling Announcer Notable Question Caucus Famous Question Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 68969,313678,879885,NULL,NULL,NULL,0,NULL,NULL 68970,221624,823804,NULL,NULL,NULL,0,NULL,NULL 68971,17670,241955,Yearling Yearling Notable Question Yearling Civic Duty Yearling Self-Learner Tenacious Revival Inquisitive Informed Autobiographer Suffrage Vox Populi Popular Question Yearling Necromancer Famous Question Popular Question Necromancer Popular Question Yearling Notable Question Notable Question Popular Question Custodian Famous Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 68972,160697,525795,Yearling,NULL,NULL,0,NULL,NULL 68973,79372,972823,NULL,NULL,NULL,0,NULL,NULL 68974,129395,241355,Famous Question Notable Question Nice Question Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 68975,9368,478387,NULL,NULL,NULL,0,NULL,NULL 68976,18630,879238,NULL,NULL,NULL,0,NULL,NULL 68977,1858970,1176887,NULL,NULL,NULL,0,NULL,NULL 68978,117783,608884,Notable Question Yearling Popular Question Nice Answer Popular Question Yearling Notable Question Revival Yearling Popular Question Revival,NULL,NULL,0,NULL,NULL 68979,108963,761726,Populist Commentator Yearling Caucus Editor Yearling,NULL,NULL,0,NULL,NULL 68980,69169,40817,Yearling,NULL,NULL,0,NULL,NULL 68981,695608,84169,Good Question,NULL,NULL,0,NULL,NULL 68982,306455,503724,NULL,NULL,NULL,0,NULL,NULL 68983,252287,143717,NULL,NULL,NULL,0,NULL,NULL 68984,157529,244494,Yearling Notable Question Popular Question Notable Question Yearling Nice Question Good Answer Caucus Nice Question Yearling Notable Question Census Notable Question Revival Popular Question,NULL,NULL,0,NULL,NULL 68985,328867,1726,Popular Question Notable Question Famous Question Yearling Good Answer Popular Question Yearling Favorite Question Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 68986,10742,603502,Yearling Popular Question Enlightened Nice Answer Nice Answer Enlightened Yearling Popular Question Good Answer Notable Question Yearling Guru Popular Question Nice Question,NULL,NULL,0,NULL,NULL 68987,185748,356796,NULL,NULL,NULL,0,NULL,NULL 68988,223694,670428,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 68989,1037378,1311747,NULL,NULL,NULL,0,NULL,NULL 68990,424623,1311747,NULL,NULL,NULL,0,NULL,NULL 68991,252527,735050,NULL,NULL,NULL,0,NULL,NULL 68992,61693,347645,Revival Good Question Necromancer,NULL,NULL,0,NULL,NULL 68993,2164288,983050,Popular Question,NULL,NULL,0,NULL,NULL 68994,389328,272096,Notable Question Popular Question Yearling Famous Question Great Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 68995,76110,520842,NULL,NULL,NULL,0,NULL,NULL 68996,407814,1543437,Popular Question Nice Question Civic Duty Yearling Good Answer Nice Answer Enlightened Necromancer Good Answer Yearling Notable Question Self-Learner Notable Question Nice Answer Famous Question Nice Answer Enlightened Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 68997,214467,649348,NULL,NULL,NULL,0,NULL,NULL 68998,240317,44133,Great Question Nice Answer Famous Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 68999,176042,20291,NULL,NULL,NULL,0,NULL,NULL 69000,69824,459633,Nice Question Nice Answer Enlightened Popular Question Nice Question Popular Question Famous Question Yearling Nice Question Popular Question Inquisitive Announcer Documentation User Yearling Custodian Nice Question Famous Question Announcer Famous Question Civic Duty Enthusiast,NULL,NULL,0,NULL,NULL 69001,270414,367611,Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling Popular Question Guru Nice Answer Nice Answer Nice Answer Nice Answer activerecord Yearling Guru Guru Notable Question Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69002,212926,896989,NULL,NULL,NULL,0,NULL,NULL 69003,247024,329602,Yearling Famous Question Famous Question Notable Question Popular Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 69004,77225,1175266,Popular Question Curious Yearling Notable Question Nice Answer Enlightened Popular Question Yearling Nice Answer Enlightened Announcer Yearling Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69005,172330,556940,NULL,NULL,NULL,0,NULL,NULL 69006,161875,556603,NULL,NULL,NULL,0,NULL,NULL 69007,147302,690218,NULL,NULL,NULL,0,NULL,NULL 69008,270182,43662,Good Answer Notable Question Popular Question Notable Question Popular Question Nice Question Autobiographer Nice Answer Yearling Favorite Question Popular Question Good Answer Necromancer Necromancer Nice Answer Nice Question Yearling Good Answer Notable Question Great Question Notable Question Good Answer Announcer Popular Question Announcer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69009,3773,647727,NULL,NULL,NULL,0,NULL,NULL 69010,737606,1529598,Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 69011,551815,8313,Nice Answer Proofreader Nice Answer Enlightened Nice Answer Nice Answer Yearling Great Answer Announcer Yearling Custodian Autobiographer Documentation User Nice Answer Enlightened Nice Answer Necromancer Nice Answer Pundit Good Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 69012,492703,1064681,NULL,NULL,NULL,0,NULL,NULL 69013,2713,238431,Revival Notable Question,NULL,NULL,0,NULL,NULL 69014,279073,240162,NULL,NULL,NULL,0,NULL,NULL 69015,911291,1232650,NULL,NULL,NULL,0,NULL,NULL 69016,130090,210671,Nice Question,NULL,NULL,0,NULL,NULL 69017,46803,133998,Notable Question Popular Question Yearling Necromancer Notable Question Yearling Good Question Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69018,249420,1162501,docker Nice Answer Enlightened Yearling Notable Question Nice Answer Popular Question Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Yearling Nice Question Good Answer Popular Question Nice Answer Enlightened Nice Question Notable Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 69019,74017,1322427,Nice Question Tumbleweed Notable Question Famous Question Popular Question Popular Question Yearling Famous Question Notable Question Nice Question Popular Question Famous Question Self-Learner Guru Notable Question Notable Question Notable Question Famous Question Notable Question Inquisitive Nice Question Yearling Nice Question Notable Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Nice Question Custodian Census Notable Question Caucus Notable Question Famous Question Notable Question Yearling Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Popular Question Good Question Popular Question Famous Question Nice Question Nice Question Notable Question,NULL,NULL,1,Passing an event object to enzyme simulate javascript reactjs jestjs enzyme pI am using Jest and Enzyme to test React checkbox component ppThis is my test ppre codeit triggers checkbox onChange event gt const configs default true label My Label element myElement const checkbox shallow lt CheckBox configs configs gt checkbox find input simulate click code prepI get this error however when running the test ppre codeTypeError Cannot read property target of undefined code prepThis is the input for my component ppre code lt div className toggle btn sm gt lt input id this props configs element className toggle input round type checkbox defaultChecked this props defaultChecked onClick gt this onChange target gt lt input gt lt div gt code prepI emthink em that href https github com airbnb enzyme issues 592 issuecomment 246259252 rel noreferrer need to pass an event as the second object to codesimulate code but am not sure how to do this ppThanks,NULL 69020,1516702,1192437,NULL,NULL,NULL,0,NULL,NULL 69021,856910,880737,NULL,NULL,NULL,0,NULL,NULL 69022,692220,1117826,Popular Question Critic,NULL,NULL,0,NULL,NULL 69023,617882,1323016,NULL,NULL,NULL,0,NULL,NULL 69024,643405,212633,NULL,NULL,NULL,0,NULL,NULL 69025,849610,1517807,NULL,NULL,NULL,0,NULL,NULL 69026,643721,1243676,NULL,NULL,NULL,0,NULL,NULL 69027,716569,1105250,Necromancer,NULL,NULL,0,NULL,NULL 69028,53101,1034619,NULL,NULL,NULL,0,NULL,NULL 69029,310496,400427,NULL,NULL,NULL,0,NULL,NULL 69030,152335,424404,Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 69031,1467086,953680,Enthusiast Documentation User,NULL,NULL,0,NULL,NULL 69032,1509445,860529,NULL,NULL,NULL,0,NULL,NULL 69033,95229,1276256,NULL,NULL,NULL,0,NULL,NULL 69034,249585,873707,Notable Question,NULL,NULL,0,NULL,NULL 69035,417356,1231722,NULL,NULL,NULL,0,NULL,NULL 69036,147361,589978,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69037,6858824,589978,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69038,48005,871177,Yearling Good Answer Popular Question,NULL,NULL,0,NULL,NULL 69039,65752,184062,NULL,NULL,NULL,0,NULL,NULL 69040,1046956,689935,NULL,NULL,NULL,0,NULL,NULL 69041,1111766,1373562,NULL,NULL,NULL,0,NULL,NULL 69042,30177,459012,NULL,NULL,NULL,0,NULL,NULL 69043,219289,1236089,NULL,NULL,NULL,0,NULL,NULL 69044,119410,559140,Yearling Popular Question Revival Yearling Good Answer Necromancer Revival Nice Question Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 69045,291503,848811,Yearling Custodian Yearling Tenacious,NULL,NULL,0,NULL,NULL 69046,601802,545762,NULL,NULL,NULL,0,NULL,NULL 69047,1558454,545762,NULL,NULL,NULL,0,NULL,NULL 69048,12574,2429,Famous Question Good Question Notable Question Nice Question Famous Question Great Question Famous Question Favorite Question Popular Question Yearling Nice Question Popular Question Nice Question Great Question Famous Question Guru Caucus Constituent Nice Question Popular Question Good Question Favorite Question Great Question Popular Question Popular Question Necromancer Famous Question Yearling Good Question Guru Famous Question Good Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 69049,14067,1045559,NULL,NULL,NULL,0,NULL,NULL 69050,285056,503326,Commentator Nice Answer Revival Promoter Benefactor Revival Yearling Nice Answer Revival Necromancer Necromancer Revival Yearling Nice Answer Enlightened Necromancer Yearling,NULL,Tree Hash How to verify if range is tree hash aligned algorithm data structures binary tree amazon glacier Tree Hash is concept similar to Merkle Tree Tiger Hash Tree used by Amazon Glacier to verify the data integrity of subsets of given datastream ppIn order to receive tree hashes from Amazon Glacier when retrieving data the specified byte range has to be tree hash aligned pp href http docs aws amazon com amazonglacier latest dev checksum calculations range html rel nofollow The concept of tree hash aligned is described here ppQuoting from the developer documentation pblockquote pA range is tree hash aligned with respect to an archive if and only if when new tree hash is built over the root of the tree hash of that range is equivalent to node in the tree hash of the whole archive pConsider as the range query for an archive of megabytes MB and and are multiples of one MB Note that the actual inclusive range is MB MB byte but for simplicity we show it as With these considerations then ul liIf is an odd number there is only one possible tree hash aligned range—that is MB li liIf is an even number and is the maximum number where can be written as 2k then there are at most tree hash aligned ranges that start with is an integer greater than The tree hash aligned ranges fall in the following categories ul liFor each where lt lt and where 2i lt then 2i is tree hash aligned range li liP is the special case where lgN li ul li ul blockquotepNow the question How do verify programmatically if given range startByte endByte is tree hash aligned Programming language does not matter ppTest cases ppre code gt true gt true gt false gt true gt false gt true code pre sqlbot You re right edited the question,1,Tree Hash How to verify if range is tree hash aligned algorithm data structures binary tree amazon glacier Tree Hash is concept similar to Merkle Tree Tiger Hash Tree used by Amazon Glacier to verify the data integrity of subsets of given datastream ppIn order to receive tree hashes from Amazon Glacier when retrieving data the specified byte range has to be tree hash aligned pp href http docs aws amazon com amazonglacier latest dev checksum calculations range html rel nofollow The concept of tree hash aligned is described here ppQuoting from the developer documentation pblockquote pA range is tree hash aligned with respect to an archive if and only if when new tree hash is built over the root of the tree hash of that range is equivalent to node in the tree hash of the whole archive pConsider as the range query for an archive of megabytes MB and and are multiples of one MB Note that the actual inclusive range is MB MB byte but for simplicity we show it as With these considerations then ul liIf is an odd number there is only one possible tree hash aligned range—that is MB li liIf is an even number and is the maximum number where can be written as 2k then there are at most tree hash aligned ranges that start with is an integer greater than The tree hash aligned ranges fall in the following categories ul liFor each where lt lt and where 2i lt then 2i is tree hash aligned range li liP is the special case where lgN li ul li ul blockquotepNow the question How do verify programmatically if given range startByte endByte is tree hash aligned Programming language does not matter ppTest cases ppre code gt true gt true gt false gt true gt false gt true code pre,NULL 69051,21536,344023,NULL,NULL,NULL,0,NULL,NULL 69052,110380,1016549,Popular Question Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 69053,53638,1089727,Curious Nice Question,NULL,NULL,0,NULL,NULL 69054,460199,2593,Nice Answer Enlightened Nice Answer Yearling Nice Answer Yearling Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 69055,493424,161977,NULL,NULL,NULL,0,NULL,NULL 69056,340250,536444,NULL,NULL,NULL,0,NULL,NULL 69057,53207,506570,Great Answer Nice Question Nice Answer Enlightened Popular Question Good Answer Yearling Popular Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 69058,393964,1163964,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 69059,919098,1048733,Good Question Curious Yearling Caucus Teacher Popular Question Yearling Notable Question Popular Question Critic Caucus Constituent Nice Question Yearling,NULL,NULL,0,NULL,NULL 69060,328970,915570,NULL,NULL,NULL,0,NULL,NULL 69061,73946,295461,NULL,NULL,NULL,0,NULL,NULL 69062,124116,424653,Popular Question Census,NULL,NULL,0,NULL,NULL 69063,146389,597715,Yearling Popular Question Nice Question Popular Question Nice Answer Notable Question Nice Answer Popular Question Yearling Nice Answer Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69064,397114,161659,Yearling Yearling Explainer Organizer Yearling,NULL,NULL,0,NULL,NULL 69065,812958,655357,NULL,NULL,NULL,0,NULL,NULL 69066,1516253,591583,NULL,NULL,NULL,0,NULL,NULL 69067,4593767,1153981,NULL,NULL,NULL,0,NULL,NULL 69068,724694,894255,Famous Question,NULL,NULL,0,NULL,NULL 69069,347400,829133,Necromancer Revival Yearling Informed Custodian Yearling Caucus Nice Answer Enlightened Caucus Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 69070,42765,967,Editor Yearling Critic Yearling Commentator Yearling Custodian Informed Organizer Yearling Yearling Necromancer Yearling Tenacious Yearling Custodian amp-html Caucus Revival Yearling Yearling Nice Answer Enlightened Yearling Custodian Unsung Hero Synonymizer Necromancer,NULL,NULL,0,NULL,NULL 69071,757378,373988,Notable Question Supporter Teacher,NULL,NULL,0,NULL,NULL 69072,347822,360419,Popular Question Yearling Autobiographer,NULL,NULL,0,NULL,NULL 69073,161001,237893,NULL,NULL,NULL,0,NULL,NULL 69074,360890,92049,Commentator Informed Yearling Mortarboard Yearling Caucus Census Necromancer Popular Question Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69075,181553,45959,Popular Question Famous Question Nice Question Yearling Good Question Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 69076,120804,372562,Good Answer Nice Answer Good Answer Notable Question Notable Question Great Answer Yearling Good Answer Notable Question Good Answer symfony symfony Yearling Guru Necromancer Popular Question Nice Answer Enlightened Notable Question Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69077,491560,1106690,Yearling Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 69078,312573,755942,NULL,NULL,NULL,0,NULL,NULL 69079,201131,1146274,NULL,NULL,NULL,0,NULL,NULL 69080,1109280,515105,NULL,NULL,NULL,0,NULL,NULL 69081,154048,515105,NULL,NULL,NULL,0,NULL,NULL 69082,11177369,1072413,Editor,NULL,NULL,0,NULL,NULL 69083,1505562,1072413,Editor,NULL,NULL,0,NULL,NULL 69084,1007730,1268759,Critic Informed Yearling Enthusiast Excavator Suffrage Vox Populi Commentator Fanatic Civic Duty Documentation User Yearling Custodian Organizer Revival Caucus Constituent Student Electorate,NULL,NULL,0,NULL,NULL 69085,167697,166137,Yearling Good Answer Nice Answer Enlightened Census Yearling Good Answer Census Custodian Custodian Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 69086,283566,299894,Yearling Famous Question,NULL,NULL,0,NULL,NULL 69087,704937,11811,Guru ruby-on-rails Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69088,462189,406565,Necromancer Famous Question Nice Answer Yearling Commentator Good Answer Yearling,NULL,NULL,0,NULL,NULL 69089,7786258,406565,Necromancer Famous Question Nice Answer Yearling Commentator Good Answer Yearling,NULL,NULL,0,NULL,NULL 69090,15127,147792,Notable Question Yearling Civic Duty Favorite Question Yearling Notable Question Popular Question Popular Question Documentation User,NULL,NULL,0,NULL,NULL 69091,244972,1370003,NULL,NULL,NULL,0,NULL,NULL 69092,262068,1566484,NULL,NULL,NULL,0,NULL,NULL 69093,1503777,1092686,NULL,NULL,NULL,0,NULL,NULL 69094,1051659,1080517,Popular Question Custodian Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Yearling Notable Question Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 69095,1179703,479760,Nice Answer Enlightened Revival Necromancer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Popular Question Yearling Census Nice Answer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 69096,834481,913964,NULL,NULL,NULL,0,NULL,NULL 69097,13246,852165,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69098,875071,8922,Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru multithreading Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Nice Question Popular Question Curious Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer c++14 rust Informed Excavator Census language-lawyer Revival Nice Answer Enlightened Nice Answer Fanatic Caucus Nice Answer Notable Question Nice Answer Good Answer Good Answer Necromancer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer boost Yearling Nice Answer Nice Answer Popular Question Nice Answer,NULL,pThe simplest way is to just use Boost Iterators to implement your iterators which takes care of the tricky code ppBut the technique used by Boost Iterators isn that complicated It looks like this ppre codetemplate lt typename gt class proxy holder public proxy holder const amp operator gt const return amp class the iterator proxy holder lt my proxy gt operator gt const return proxy holder lt my proxy gt this code prepThis relies on the fact that arrow operators get chained if one arrow operator returns something that isn raw pointer the arrow operator is called on that thing in turn until you get to pointer That depends on whether you want your pointer like thing to have transitive constness or not Most smart pointers don const std unique ptrT doesn mean you can modify the it points to pLet break it down line by line ppre codelet s1 foobar code prepWe ve created literal string that is encoded in href https en wikipedia org wiki UTF rel noreferrer UTF UTF allows us to encode the 114 112 href https en wikipedia org wiki Code point rel noreferrer code points of href https en wikipedia org wiki Unicode rel noreferrer Unicode in manner that pretty compact if you come from region of the world that types in mostly characters found in href https en wikipedia org wiki ASCII rel noreferrer ASCII standard created in 1963 UTF is emvariable length em encoding which means that single code point might href https stackoverflow com 9533258 155423 take from to bytes The shorter encodings are reserved for ASCII but href https stackoverflow com 3678752 155423 many Kanji take bytes in UTF ppre codelet mut Vec lt char gt s1 chars collect code prepThis creates vector of codechar codeacters character is 32 bit number that directly maps to code point If we started with ASCII only text we ve quadrupled our memory requirements If we had bunch of characters from href https en wikipedia org wiki Plane Unicode rel noreferrer the astral plane then maybe we haven used that much more ppre codev to uppercase nth unwrap code prepThis grabs the first code point and requests that it be converted to an uppercase variant Unfortunately for those of us who grew up speaking English there href https stackoverflow com questions 7491680 unicode characters having asymmetric upper lower case why not always simple one to one mapping of small letter to big letter Side note we call them upper and lower case href https en wikipedia org wiki Letter case Type cases rel noreferrer because one box of letters was above the other box of letters back in the day ppThis code will panic when code point has no corresponding uppercase variant not sure if those exist actually It could also semantically fail when code point has an uppercase variant that has multiple characters such as the German codeß code Note that may never actually be capitalized in The Real World this is the just example can always remember and search for As of 2017 06 29 in fact the official rules of German spelling have been updated so that href http www rechtschreibrat com DOX rfdr PM 2017 06 29 Aktualisierung Regelwerk pdf rel noreferrer strongboth strong and SS are valid capitalizations ppre codelet s2 String into iter collect code prepHere we convert the characters back into UTF and require new allocation to store them in as the original variable was stored in constant memory so as to not take up memory at run time ppre codelet s3 amp s2 code prepAnd now we take reference to that codeString code pblockquote pIt simple problem blockquotepUnfortunately this is not true Perhaps we should endeavor to convert the world to href https en wikipedia org wiki Esperanto rel noreferrer Esperanto pblockquote pI presume codechar to uppercase code already properly handles Unicode blockquotepYes certainly hope so Unfortunately Unicode isn enough in all cases Thanks to href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 comment64297807 38406885 huon for pointing out the href https en wikipedia org wiki Dotted and dotless rel noreferrer Turkish where both the upper strongİ strong and lower case strongi strong versions have dot That is there is no emone em proper capitalization of the letter codei code it depends on the href https en wikipedia org wiki Locale computer software rel noreferrer locale of the the source text as well pblockquote pwhy the need for all data type conversions blockquotepBecause the data types you are working with are important when you are worried about correctness and performance codechar code is 32 bits and string is UTF encoded They are different things pblockquote pindexing could return multi byte Unicode character blockquotepThere may be some mismatched terminology here codechar code emis em multi byte Unicode character pp emSlicing em string is possible if you go byte by byte but the standard library will panic if you are not on character boundary ppOne of the reasons that indexing string to get character was never implemented is because so many people misuse strings as arrays of ASCII characters Indexing string to emset em character could never be efficient you have to be able to replace bytes with value that is also bytes causing the rest of the string to bounce around quite lot pblockquote codeto uppercase code could return an upper case character blockquotepAs mentioned above codeß code is single character that when capitalized becomes strongtwo characters strong phrpIf had to write the code it look like ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase chain collect fn main println some kind of uppercase first letter joe println some kind of uppercase first letter jill println some kind of uppercase first letter von Hagen println some kind of uppercase first letter code prepBut probably search for href https crates io search uppercase rel noreferrer uppercase or href https crates io search unicode rel noreferrer unicode on crates io and let someone smarter than me handle it phrpSpeaking of someone smarter than me href https stackoverflow com questions 38406793 why is capitalizing the first letter of string so convoluted in rust 38406885 noredirect comment65003459 38406885 Veedrac points out that it probably more efficient to convert the iterator back into slice after the first capital codepoints are accessed This allows for codememcpy code of the rest of the bytes ppre codefn some kind of uppercase first letter amp str gt String let mut chars match next None gt String new Some gt to uppercase collect lt String gt as str code pre By the way even single code point may not be the right unit to convert What if the first character is grapheme cluster that should receive special handling when upper casing It so happens that decomposed umlauts work if you just upper case the base character but don know if that is universally true,0,NULL,NULL 69099,37663,805166,NULL,NULL,NULL,0,NULL,NULL 69100,42804,782890,Popular Question Caucus Constituent Caucus Constituent Curious Documentation User Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 69101,31807,375209,Notable Question Great Answer Popular Question Nice Question Yearling Notable Question Nice Answer Enlightened Famous Question Reviewer Revival Popular Question Famous Question Famous Question Revival Nice Question Famous Question Notable Question Popular Question Announcer Yearling Caucus Famous Question Documentation User Nice Answer Enlightened Announcer Nice Question Notable Question Taxonomist Famous Question Nice Question Notable Question Popular Question Popular Question Popular Question Custodian Nice Question Nice Answer Enlightened Yearling Nice Question Notable Question Announcer,NULL,React Router Redirect drops param javascript reactjs routes react router pI am using the codenext code version of React Router and it seems to be dropping params expect the redirect below to retain the value of codechannelId code but the codeto code route uses the literal string code channelId code in the path instead ppre code lt Switch gt lt Route exact path component Landing gt lt Route path channels channelId modes modeId component Window gt lt Redirect from channels channelId to channels channelId modes window gt lt Switch gt code prepThis looks like href https github com ReactTraining react router issues 1034 issuecomment 113526156 rel noreferrer resolved issue but it not working Is there something else need to pass to the codeto code route Did you find the solution Matt,0,NULL,NULL 69102,956988,851592,NULL,NULL,NULL,0,NULL,NULL 69103,118113,780324,Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69104,509377,846163,Notable Question ruby Yearling Notable Question Caucus Tumbleweed Civic Duty Necromancer Nice Answer Necromancer Custodian Yearling Caucus Nice Answer Revival Popular Question Custodian Good Answer Popular Question Caucus Notable Question Self-Learner Nice Answer Revival Yearling Nice Question Necromancer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 69105,445803,898024,NULL,NULL,NULL,0,NULL,NULL 69106,530232,8686,NULL,NULL,NULL,0,NULL,NULL 69107,85656,1360803,java Yearling Proofreader Deputy Enthusiast Reviewer Excavator Explainer Nice Answer Mortarboard Good Answer Guru Custodian Custodian Nice Answer Nice Answer Fanatic Caucus Popular Question Good Answer Nice Answer Yearling Reviewer Nice Answer Caucus Good Answer Pundit Documentation User Caucus Nice Answer Yearling Convention Suffrage Vox Populi Nice Answer,NULL,NULL,0,NULL,NULL 69108,1085770,241750,Notable Question Nice Answer Popular Question Nice Question Yearling Famous Question Good Question Notable Question Yearling Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 69109,10321,644048,Yearling Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 69110,162198,871550,Necromancer,NULL,NULL,0,NULL,NULL 69111,636897,1302009,Critic Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 69112,670,88231,Yearling Necromancer Yearling Announcer Revival Yearling,NULL,NULL,0,NULL,NULL 69113,87133,435667,Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69114,100441,844458,NULL,NULL,NULL,0,NULL,NULL 69115,4103424,1343507,Popular Question Teacher Revival Supporter Editor,NULL,NULL,0,NULL,NULL 69116,648042,1306453,Yearling Good Answer,NULL,NULL,0,NULL,NULL 69117,706690,486409,NULL,NULL,NULL,0,NULL,NULL 69118,4597,76987,Yearling Announcer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69119,9686120,1000961,NULL,NULL,NULL,0,NULL,NULL 69120,66399,1565045,Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 69121,676614,192422,Notable Question Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 69122,80990,1490344,Caucus Census Caucus Nice Answer Enlightened Yearling Revival,NULL,NULL,0,NULL,NULL 69123,130786,1442708,NULL,NULL,NULL,0,NULL,NULL 69124,534273,177753,NULL,NULL,NULL,0,NULL,NULL 69125,137677,248734,Yearling Nice Question Nice Answer Yearling Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 69126,19499,1144818,NULL,NULL,NULL,0,NULL,NULL 69127,132537,153879,NULL,NULL,NULL,0,NULL,NULL 69128,131951,1289058,NULL,NULL,NULL,0,NULL,NULL 69129,78724,65778,Yearling Good Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 69130,972438,874948,NULL,NULL,NULL,0,NULL,NULL 69131,78528,455221,Nice Answer Enlightened Yearling Good Answer numpy Self-Learner python scipy Yearling Good Answer Nice Answer Nice Answer Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 69132,218325,30954,Famous Question Curious,NULL,NULL,0,NULL,NULL 69133,677419,1134134,Teacher Editor Student Supporter Self-Learner,NULL,NULL,0,NULL,NULL 69134,303108,301321,NULL,NULL,NULL,0,NULL,NULL 69135,1203946,497479,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 69136,283090,1068028,NULL,NULL,NULL,0,NULL,NULL 69137,277291,921224,Quorum Popular Question Famous Question Tumbleweed Cleanup Yearling Custodian Popular Question Caucus Constituent Notable Question Necromancer Popular Question Necromancer Great Answer Popular Question Announcer Good Question Yearling Caucus Nice Question Notable Question Popular Question Census Caucus Custodian Constituent Proofreader Famous Question Yearling Necromancer Necromancer,NULL,NULL,0,NULL,NULL 69138,87241,432681,javascript Popular Question Nice Question Necromancer Notable Question Notable Question Good Answer Revival Nice Question Revival Yearling Benefactor Caucus Good Answer Nice Answer Constituent Announcer Announcer Famous Question Announcer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer firebug Good Question Necromancer Announcer Popular Question Enlightened Nice Answer Good Answer Good Answer Famous Question Populist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Announcer Popular Question Guru Announcer Caucus Necromancer Electorate Constituent firefox-developer-tools Revival Announcer Yearling Announcer Necromancer Nice Answer Enlightened Announcer Nice Answer Enlightened Documentation User Booster Announcer Announcer Popular Question Notable Question Popular Question Caucus Constituent Nice Answer Enlightened Announcer Popular Question Notable Question firefox Nice Answer Enlightened Necromancer Nice Question Yearling Popular Question Announcer Good Answer,NULL,NULL,0,NULL,NULL 69139,10103,795466,Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 69140,55761,100822,Popular Question Yearling Inquisitive Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69141,78676,1145962,Yearling,NULL,NULL,0,NULL,NULL 69142,126074,853546,NULL,NULL,NULL,0,NULL,NULL 69143,56178,452877,Necromancer Yearling Nice Answer Nice Answer Yearling Good Answer Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 69144,277578,981735,Popular Question,NULL,NULL,0,NULL,NULL 69145,1504287,1256325,Yearling Popular Question Notable Question Nice Answer Yearling Citizen Patrol Custodian Custodian Custodian Caucus Constituent Popular Question Popular Question Good Answer Promoter Enthusiast Benefactor Popular Question Caucus Popular Question Documentation User Yearling Custodian Guru Popular Question Electorate Inquisitive Informed Yearling Popular Question,NULL,NULL,0,NULL,NULL 69146,434038,867673,NULL,NULL,NULL,0,NULL,NULL 69147,57580,738167,Revival,NULL,NULL,0,NULL,NULL 69148,348190,236282,NULL,NULL,NULL,0,NULL,NULL 69149,6205530,236282,NULL,NULL,NULL,0,NULL,NULL 69150,15948,201997,Guru Yearling,NULL,NULL,0,NULL,NULL 69151,669153,938682,NULL,NULL,NULL,0,NULL,NULL 69152,669154,938682,NULL,NULL,NULL,0,NULL,NULL 69153,111209,1242220,NULL,NULL,NULL,0,NULL,NULL 69154,176772,401357,Yearling,NULL,NULL,0,NULL,NULL 69155,449116,312598,Good Question Notable Question Notable Question Yearling Popular Question Necromancer Good Answer Necromancer Good Question Nice Question Notable Question Good Question Notable Question Notable Question Popular Question Famous Question Yearling Nice Question Popular Question Nice Answer Popular Question Popular Question Notable Question Nice Answer Good Answer Populist Yearling Guru Popular Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69156,65974,171621,NULL,NULL,NULL,0,NULL,NULL 69157,12331,220643,Nice Answer Nice Answer Enlightened mono Announcer xamarin xamarin.ios xamarin.ios xamarin.ios xamarin.android encryption Good Answer Announcer uiimage Announcer Announcer Nice Answer Nice Answer Enlightened Announcer Revival Guru Caucus Constituent Yearling Nice Answer Enlightened Nice Answer Announcer Announcer Nice Answer Enlightened Announcer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Booster Announcer Nice Answer Yearling Announcer Nice Answer Enlightened Necromancer Revival Announcer Announcer Guru Revival Yearling,NULL,NULL,0,NULL,NULL 69158,313818,1450669,NULL,NULL,NULL,0,NULL,NULL 69159,296554,1363680,NULL,NULL,NULL,0,NULL,NULL 69160,53180,1163698,Autobiographer Commentator Announcer Yearling,NULL,NULL,0,NULL,NULL 69161,22901,197944,Nice Answer Enlightened Announcer Announcer Necromancer Yearling Good Answer Critic Citizen Patrol Custodian Yearling Announcer Nice Answer Nice Answer Guru Yearling Announcer Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 69162,412885,1456346,NULL,NULL,NULL,0,NULL,NULL 69163,407621,1131058,Popular Question,NULL,NULL,0,NULL,NULL 69164,2282812,1131058,Popular Question,NULL,NULL,0,NULL,NULL 69165,122851,759688,NULL,NULL,NULL,0,NULL,NULL 69166,261392,569558,Notable Question Yearling Guru Notable Question Notable Question Nice Answer Notable Question Nice Answer Guru Necromancer Nice Answer Enlightened Good Answer java Notable Question Nice Question Nice Question Nice Question Good Question Popular Question Caucus Nice Answer Enlightened Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Great Question Notable Question Pundit Notable Question Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 69167,415896,690205,NULL,NULL,NULL,0,NULL,NULL 69168,318775,142772,Necromancer Yearling c# Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 69169,633537,1179379,Yearling Great Answer Yearling Commentator Citizen Patrol Yearling Necromancer Revival Necromancer Necromancer Nice Answer Excavator Revival,NULL,NULL,0,NULL,NULL 69170,178060,953352,NULL,NULL,NULL,0,NULL,NULL 69171,389578,651958,NULL,NULL,NULL,0,NULL,NULL 69172,208075,442167,NULL,NULL,NULL,0,NULL,NULL 69173,346516,840863,Revival Necromancer,NULL,NULL,0,NULL,NULL 69174,768922,883097,Teacher Revival Editor,NULL,NULL,0,NULL,NULL 69175,769008,883097,Teacher Revival Editor,NULL,NULL,0,NULL,NULL 69176,486239,1019982,NULL,NULL,NULL,0,NULL,NULL 69177,128214,358802,NULL,NULL,NULL,0,NULL,NULL 69178,429934,1460565,NULL,NULL,NULL,0,NULL,NULL 69179,307164,1461179,NULL,NULL,NULL,0,NULL,NULL 69180,640969,680604,Popular Question,NULL,NULL,0,NULL,NULL 69181,448732,117525,Good Answer Yearling Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 69182,209528,806368,Scholar Student,NULL,NULL,0,NULL,NULL 69183,911320,642596,NULL,NULL,NULL,0,NULL,NULL 69184,1417975,1504675,NULL,NULL,NULL,0,NULL,NULL 69185,279716,1175943,Yearling Necromancer Popular Question Notable Question Nice Answer Enlightened Popular Question Popular Question Notable Question Civic Duty Popular Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 69186,3470369,831514,NULL,NULL,NULL,0,NULL,NULL 69187,647008,831514,NULL,NULL,NULL,0,NULL,NULL 69188,112747,831514,NULL,NULL,NULL,0,NULL,NULL 69189,211923,64423,Nice Answer Custodian Necromancer Informed Yearling,NULL,NULL,0,NULL,NULL 69190,1521983,267398,Good Answer Good Answer Yearling Necromancer Vox Populi Electorate Good Answer Revival Yearling Notable Question Nice Answer Famous Question Popular Question Popular Question Yearling Necromancer Favorite Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 69191,676916,1517390,Informed Tag Editor,NULL,NULL,0,NULL,NULL 69192,5108,886620,Editor Excavator Yearling Caucus Caucus Commentator,NULL,NULL,0,NULL,NULL 69193,1201492,1195791,Student,NULL,NULL,0,NULL,NULL 69194,1511194,1195791,Student,NULL,NULL,0,NULL,NULL 69195,359896,1369648,Teacher,NULL,NULL,0,NULL,NULL 69196,17301,146210,Yearling Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69197,13955,1132200,Scholar,NULL,NULL,0,NULL,NULL 69198,682994,336838,NULL,NULL,NULL,0,NULL,NULL 69199,335578,20555,Nice Answer Good Answer Yearling Caucus Constituent Nice Answer Great Question Popular Question Nice Question Custodian Custodian Yearling Favorite Question Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 69200,654544,1262569,NULL,NULL,NULL,0,NULL,NULL 69201,437306,209924,NULL,NULL,NULL,0,NULL,NULL 69202,167478,1523768,Popular Question Revival Popular Question,NULL,NULL,0,NULL,NULL 69203,6221,62851,Yearling Good Answer Necromancer Favorite Question Guru Yearling Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 69204,482515,1468973,NULL,NULL,NULL,0,NULL,NULL 69205,847269,498862,NULL,NULL,NULL,0,NULL,NULL 69206,154875,182793,NULL,NULL,NULL,0,NULL,NULL 69207,1713,1398790,Notable Question,NULL,NULL,0,NULL,NULL 69208,390237,612120,NULL,NULL,NULL,0,NULL,NULL 69209,169129,1077848,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 69210,89422,322894,Popular Question,NULL,NULL,0,NULL,NULL 69211,236927,225555,Curious Notable Question Nice Answer Nice Answer Enlightened Nice Answer Caucus Yearling Caucus Constituent Tumbleweed Promoter Benefactor Documentation User Necromancer Yearling Necromancer Caucus Revival,NULL,NULL,0,NULL,NULL 69212,743629,1333068,Excavator Supporter Organizer Enthusiast Critic Necromancer Yearling Nice Answer Commentator,NULL,NULL,0,NULL,NULL 69213,7425652,1333068,Excavator Supporter Organizer Enthusiast Critic Necromancer Yearling Nice Answer Commentator,NULL,NULL,0,NULL,NULL 69214,193666,570128,Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 69215,38767,570128,Popular Question Autobiographer,NULL,NULL,0,NULL,NULL 69216,881591,439142,Caucus Self-Learner Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69217,682198,396365,NULL,NULL,NULL,0,NULL,NULL 69218,10487,1091693,Custodian Informed Organizer Yearling Revival Census Custodian Yearling,NULL,NULL,0,NULL,NULL 69219,201044,175880,NULL,NULL,NULL,0,NULL,NULL 69220,3071602,800533,NULL,NULL,NULL,0,NULL,NULL 69221,382614,922249,Commentator,NULL,NULL,0,NULL,NULL 69222,1414,145331,Popular Question,NULL,NULL,0,NULL,NULL 69223,216587,43397,Nice Answer Enlightened Enthusiast Revival,NULL,NULL,0,NULL,NULL 69224,358238,1409673,NULL,NULL,NULL,0,NULL,NULL 69225,811,1306326,NULL,NULL,NULL,0,NULL,NULL 69226,649955,1425130,NULL,NULL,NULL,0,NULL,NULL 69227,171707,401627,NULL,NULL,NULL,0,NULL,NULL 69228,819058,544326,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69229,240460,1137821,NULL,NULL,NULL,0,NULL,NULL 69230,334369,212508,Announcer,NULL,NULL,0,NULL,NULL 69231,543163,226716,Yearling Good Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 69232,379893,346564,Teacher Supporter,NULL,NULL,0,NULL,NULL 69233,404736,1317068,NULL,NULL,NULL,0,NULL,NULL 69234,52184,230719,Popular Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69235,2012777,230719,Popular Question Notable Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69236,33642,1492581,NULL,NULL,NULL,0,NULL,NULL 69237,346782,1250699,Announcer Caucus,NULL,NULL,0,NULL,NULL 69238,532935,396325,NULL,NULL,NULL,0,NULL,NULL 69239,172064,222926,Nice Question Caucus Good Answer Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69240,741563,127400,Yearling Nice Answer Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 69241,1514247,1161711,NULL,NULL,NULL,0,NULL,NULL 69242,80034,1286286,NULL,NULL,NULL,0,NULL,NULL 69243,5748203,1286286,NULL,NULL,NULL,0,NULL,NULL 69244,129698,1447074,Informed Autobiographer,NULL,NULL,0,NULL,NULL 69245,244611,1089289,Nice Answer Popular Question Popular Question Yearling Good Answer Announcer Announcer Popular Question Yearling Guru Caucus Notable Question Popular Question Yearling Popular Question android,NULL,NULL,0,NULL,NULL 69246,193507,932149,NULL,NULL,NULL,0,NULL,NULL 69247,161594,288828,NULL,NULL,NULL,0,NULL,NULL 69248,414944,26829,Revival Yearling Yearling Nice Answer Enthusiast Yearling,NULL,NULL,0,NULL,NULL 69249,440059,450040,Popular Question Promoter Curious Self-Learner,NULL,NULL,0,NULL,NULL 69250,2053620,557866,Popular Question,NULL,NULL,0,NULL,NULL 69251,1465962,983372,NULL,NULL,NULL,0,NULL,NULL 69252,377438,431296,Necromancer Revival Yearling Revival Announcer Necromancer android Caucus Necromancer Necromancer Nice Answer Nice Answer Revival Announcer Announcer Caucus Constituent Yearling Census Caucus Pundit Custodian Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 69253,83480,1178218,NULL,NULL,NULL,0,NULL,NULL 69254,246847,1282405,NULL,NULL,NULL,0,NULL,NULL 69255,91290,288067,NULL,NULL,NULL,0,NULL,NULL 69256,765896,1136762,NULL,NULL,NULL,0,NULL,NULL 69257,116862,1400891,NULL,NULL,NULL,0,NULL,NULL 69258,1027702,1443726,Census,NULL,NULL,0,NULL,NULL 69259,302470,500489,NULL,NULL,NULL,0,NULL,NULL 69260,274671,600598,NULL,NULL,NULL,0,NULL,NULL 69261,288754,1141933,NULL,NULL,NULL,0,NULL,NULL 69262,226269,209240,Student,NULL,NULL,0,NULL,NULL 69263,818211,1325096,Teacher Revival,NULL,NULL,0,NULL,NULL 69264,197262,1046569,Custodian Famous Question Announcer Yearling Famous Question Nice Question Necromancer Announcer Revival,NULL,NULL,0,NULL,NULL 69265,250772,1167080,Editor Revival,NULL,NULL,0,NULL,NULL 69266,492020,1126438,NULL,NULL,NULL,0,NULL,NULL 69267,25833,1195758,NULL,NULL,NULL,0,NULL,NULL 69268,34513,1380768,NULL,NULL,NULL,0,NULL,NULL 69269,901466,974797,NULL,NULL,NULL,0,NULL,NULL 69270,29700,264447,Nice Answer,NULL,NULL,0,NULL,NULL 69271,898213,1442914,Necromancer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Yearling Revival Nice Answer Good Answer Disciplined Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 69272,447575,212555,Famous Question Nice Question Guru Good Answer Famous Question Nice Answer Good Answer Guru Nice Question Good Question Nice Answer Popular Question Nice Answer Enlightened Notable Question Good Answer Popular Question Popular Question Nice Question Nice Answer Enlightened Famous Question Yearling Popular Question Famous Question Nice Answer Census Notable Question Good Answer Nice Answer Nice Answer Generalist Notable Question Popular Question Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer sql Nice Answer Yearling Nice Answer Notable Question Guru Great Answer Good Answer Good Answer Guru Guru Famous Question Nice Answer Enlightened Popular Question Popular Question Good Answer Good Answer Guru Announcer Nice Answer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 69273,3910868,120146,Yearling Good Question Enlightened Guru Yearling Good Answer Great Answer Notable Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 69274,311574,568181,NULL,NULL,NULL,0,NULL,NULL 69275,527229,803410,Popular Question Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 69276,22953,454312,Nice Answer ruby-on-rails Nice Answer ruby Yearling Caucus Custodian Yearling Good Answer Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 69277,105070,7518,Custodian Citizen Patrol Yearling Good Answer Yearling Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 69278,139549,541823,Autobiographer,NULL,NULL,0,NULL,NULL 69279,415753,1129050,Census Commentator Census,NULL,NULL,0,NULL,NULL 69280,1045160,604742,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69281,82177,829139,NULL,NULL,NULL,0,NULL,NULL 69282,777766,610501,NULL,NULL,NULL,0,NULL,NULL 69283,1278739,1049679,Famous Question Caucus Curious Caucus Good Question Enthusiast,NULL,NULL,0,NULL,NULL 69284,1178044,954741,Popular Question Popular Question Notable Question Popular Question Self-Learner Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69285,8006034,954741,Popular Question Popular Question Notable Question Popular Question Self-Learner Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69286,660119,174357,NULL,NULL,NULL,0,NULL,NULL 69287,925238,645423,NULL,NULL,NULL,0,NULL,NULL 69288,407150,300577,NULL,NULL,NULL,0,NULL,NULL 69289,483024,583251,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69290,76385,1232000,Yearling Announcer,NULL,NULL,0,NULL,NULL 69291,1371574,1372366,Student Scholar Tumbleweed Teacher Supporter Popular Question Commentator Census Notable Question Revival Self-Learner Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 69292,273482,1510930,NULL,NULL,NULL,0,NULL,NULL 69293,11219150,1302808,Supporter Scholar Popular Question Editor Tumbleweed Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69294,278718,1049890,NULL,NULL,NULL,0,NULL,NULL 69295,154627,1405835,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69296,5926735,1405835,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69297,118854,313915,NULL,NULL,NULL,0,NULL,NULL 69298,432465,898080,Notable Question,NULL,NULL,0,NULL,NULL 69299,5072258,898080,Notable Question,NULL,NULL,0,NULL,NULL 69300,917866,516509,NULL,NULL,NULL,0,NULL,NULL 69301,9899,199607,Nice Answer Good Answer Nice Question Great Question Nice Answer Great Answer Famous Question Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Good Answer Announcer Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69302,182683,509681,Investor Critic Popular Question Popular Question Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 69303,378704,645646,NULL,NULL,NULL,0,NULL,NULL 69304,442301,607095,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 69305,322139,578767,NULL,NULL,NULL,0,NULL,NULL 69306,355702,210271,Notable Question Notable Question Nice Question Yearling Notable Question Nice Answer Popular Question Yearling Good Question Great Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 69307,199165,344090,Nice Answer Yearling Nice Answer Enthusiast Yearling Revival,NULL,NULL,0,NULL,NULL 69308,95115,1215963,NULL,NULL,NULL,0,NULL,NULL 69309,10009409,976980,Popular Question,NULL,NULL,0,NULL,NULL 69310,379035,782810,Student Supporter,NULL,NULL,0,NULL,NULL 69311,90156,576199,NULL,NULL,NULL,0,NULL,NULL 69312,572449,893238,Notable Question,NULL,NULL,0,NULL,NULL 69313,155548,797657,NULL,NULL,NULL,0,NULL,NULL 69314,365045,626421,NULL,NULL,NULL,0,NULL,NULL 69315,27636,1232347,Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69316,599327,564642,Yearling Commentator,NULL,NULL,0,NULL,NULL 69317,13704,45824,Good Question Yearling,NULL,NULL,0,NULL,NULL 69318,299746,674442,Caucus Popular Question Census Caucus Constituent Yearling Curious Revival Popular Question Civic Duty Tumbleweed,NULL,NULL,0,NULL,NULL 69319,137395,610794,Editor Popular Question,NULL,NULL,0,NULL,NULL 69320,145085,658438,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69321,38246,653042,Revival Necromancer Popular Question Yearling Popular Question Nice Answer Revival Not a Robot Revival Nice Question Caucus Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69322,590067,1526024,NULL,NULL,NULL,0,NULL,NULL 69323,1426738,928067,Supporter Teacher Curious Necromancer Popular Question Nice Answer Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 69324,41528,1078728,NULL,NULL,NULL,0,NULL,NULL 69325,586468,1126942,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 69326,198625,1518310,NULL,NULL,NULL,0,NULL,NULL 69327,369681,1272777,Popular Question Popular Question Popular Question Curious Critic Popular Question,NULL,NULL,0,NULL,NULL 69328,626144,336718,NULL,NULL,NULL,0,NULL,NULL 69329,193937,322557,Nice Question Yearling Famous Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69330,105636,1461567,NULL,NULL,NULL,0,NULL,NULL 69331,952569,200195,Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 69332,360217,786236,Popular Question Caucus Popular Question Popular Question Popular Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 69333,1146925,501624,NULL,NULL,NULL,0,NULL,NULL 69334,441339,1518357,NULL,NULL,NULL,0,NULL,NULL 69335,276730,566751,NULL,NULL,NULL,0,NULL,NULL 69336,1561,362129,Editor Scholar,NULL,NULL,0,NULL,NULL 69337,1038226,570576,NULL,NULL,NULL,0,NULL,NULL 69338,185420,339725,Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Nice Answer Great Answer Popular Question Yearling Nice Question Popular Question Necromancer Famous Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69339,503464,1097295,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 69340,89576,1420625,Famous Question Nice Question Popular Question Notable Question Notable Question Notable Question Good Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Organizer Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Yearling php Tenacious Popular Question Unsung Hero Popular Question Caucus Constituent Popular Question Good Question Excavator Notable Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Good Question Notable Question Famous Question Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Caucus Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Answer Popular Question Yearling Nice Question Popular Question Notable Question Notable Question Nice Question Custodian Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69341,302750,1306466,Nice Question Yearling Good Question Yearling Popular Question Curious Excavator Enthusiast Critic,NULL,NULL,0,NULL,NULL 69342,41067,276205,NULL,NULL,NULL,0,NULL,NULL 69343,340416,464328,Nice Answer Necromancer android Self-Learner Necromancer Popular Question Excavator Yearling Notable Question Caucus Constituent Necromancer Nice Answer Caucus Citizen Patrol Popular Question Yearling Custodian Custodian Revival Census Revival Caucus Constituent Famous Question Nice Answer Custodian Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 69344,446335,127083,NULL,NULL,NULL,0,NULL,NULL 69345,9001,236655,Nice Question Notable Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Popular Question Yearling Notable Question Great Question Notable Question Popular Question Favorite Question Stellar Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69346,539712,334826,Yearling Popular Question Great Question Nice Answer Nice Question Yearling Yearling Favorite Question Nice Answer,NULL,NULL,0,NULL,NULL 69347,3268278,1151052,Necromancer Promoter Nice Question Popular Question Popular Question Notable Question Popular Question Necromancer Popular Question Notable Question Famous Question Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69348,18633,672073,NULL,NULL,NULL,0,NULL,NULL 69349,38142,457269,Notable Question Popular Question Yearling Notable Question Popular Question Yearling Great Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 69350,2813696,457269,Notable Question Popular Question Yearling Notable Question Popular Question Yearling Great Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 69351,84687,1162047,NULL,NULL,NULL,0,NULL,NULL 69352,82986,283837,Yearling Popular Question Necromancer Reviewer Popular Question Taxonomist Popular Question Cleanup Custodian Custodian Popular Question Custodian Nice Answer Enthusiast Popular Question Tag Editor Popular Question Self-Learner Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Caucus Notable Question Notable Question Popular Question Documentation User Popular Question Popular Question Popular Question Famous Question Custodian Notable Question Notable Question Notable Question Revival Yearling Good Answer Inquisitive Nice Question Strunk & White Autobiographer Popular Question Citizen Patrol Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 69353,448130,628867,NULL,NULL,NULL,0,NULL,NULL 69354,1683829,489373,NULL,NULL,NULL,0,NULL,NULL 69355,192594,582608,NULL,NULL,NULL,0,NULL,NULL 69356,327318,1114532,Informed,NULL,NULL,0,NULL,NULL 69357,2115187,939013,NULL,NULL,NULL,0,NULL,NULL 69358,561051,808245,NULL,NULL,NULL,0,NULL,NULL 69359,327354,966239,NULL,NULL,NULL,0,NULL,NULL 69360,628939,1350898,NULL,NULL,NULL,0,NULL,NULL 69361,445013,280839,NULL,NULL,NULL,0,NULL,NULL 69362,590964,335323,NULL,NULL,NULL,0,NULL,NULL 69363,355756,298851,Popular Question Yearling Caucus Constituent Famous Question Good Question Caucus Popular Question Good Question Yearling Census Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69364,279729,480079,NULL,NULL,NULL,0,NULL,NULL 69365,48210,718270,Tag Editor Supporter,NULL,NULL,0,NULL,NULL 69366,1309730,1204959,Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 69367,54388,1037872,NULL,NULL,NULL,0,NULL,NULL 69368,158096,886198,Necromancer,NULL,NULL,0,NULL,NULL 69369,665942,479133,Announcer Popular Question Nice Answer Enlightened Yearling Caucus Caucus Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 69370,397148,671575,Good Question Necromancer Yearling Notable Question Nice Answer Nice Question Famous Question Good Question Good Answer Tumbleweed Good Answer Yearling Famous Question Necromancer Caucus Nice Answer Census Nice Answer Yearling Popular Question Necromancer Custodian Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69371,15814,601739,NULL,NULL,NULL,0,NULL,NULL 69372,624058,582963,Yearling java Good Answer Nice Answer Nice Answer Necromancer Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 69373,887371,1059588,Commentator,NULL,NULL,0,NULL,NULL 69374,507260,1402438,Popular Question,NULL,NULL,0,NULL,NULL 69375,63009,354925,NULL,NULL,NULL,0,NULL,NULL 69376,1202698,273165,NULL,NULL,NULL,0,NULL,NULL 69377,327537,204702,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69378,27714,971031,Necromancer,NULL,NULL,0,NULL,NULL 69379,477638,1071513,NULL,NULL,NULL,0,NULL,NULL 69380,337705,956422,NULL,NULL,NULL,0,NULL,NULL 69381,570717,1260992,NULL,NULL,NULL,0,NULL,NULL 69382,25527,840108,Popular Question Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 69383,627776,263406,Yearling Necromancer,NULL,NULL,0,NULL,NULL 69384,546884,976827,Revival Revival Scholar Yearling Organizer Caucus Constituent Revival Peer Pressure Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 69385,9552513,958051,Nice Answer Nice Answer Electorate Nice Answer Yearling Nice Answer Caucus Constituent Notable Question Caucus Nice Answer Yearling Reviewer Good Answer Caucus Constituent Pundit c++ Nice Answer Yearling Good Answer Enlightened,NULL,NULL,0,NULL,NULL 69386,84741,329686,NULL,NULL,NULL,0,NULL,NULL 69387,8249367,405491,NULL,NULL,NULL,0,NULL,NULL 69388,1739584,1042463,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69389,64017,319883,NULL,NULL,NULL,0,NULL,NULL 69390,311192,111181,NULL,NULL,NULL,0,NULL,NULL 69391,298850,454186,NULL,NULL,NULL,0,NULL,NULL 69392,263538,681470,NULL,NULL,NULL,0,NULL,NULL 69393,88512,1293255,NULL,NULL,NULL,0,NULL,NULL 69394,414225,371576,Enthusiast,NULL,NULL,0,NULL,NULL 69395,156431,575608,NULL,NULL,NULL,0,NULL,NULL 69396,38728,6595,NULL,NULL,NULL,0,NULL,NULL 69397,97292,1289823,NULL,NULL,NULL,0,NULL,NULL 69398,53722,590286,NULL,NULL,NULL,0,NULL,NULL 69399,395988,129815,Revival Announcer Yearling,NULL,NULL,0,NULL,NULL 69400,23309,1312205,emmet Yearling Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 69401,53554,737291,NULL,NULL,NULL,0,NULL,NULL 69402,71364,195463,Good Answer Yearling Necromancer Revival Necromancer,NULL,NULL,0,NULL,NULL 69403,10320,158663,Yearling Good Question Good Question Popular Question Good Question Popular Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 69404,2521239,1042028,NULL,NULL,NULL,0,NULL,NULL 69405,766387,178085,Curious Commentator,NULL,NULL,0,NULL,NULL 69406,517033,609838,NULL,NULL,NULL,0,NULL,NULL 69407,203514,611145,Yearling,NULL,NULL,0,NULL,NULL 69408,5425793,611145,Yearling,NULL,NULL,0,NULL,NULL 69409,1372243,83729,Yearling Electorate Yearling Census Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69410,331452,435564,Editor Necromancer,NULL,NULL,0,NULL,NULL 69411,1564399,170830,Famous Question Famous Question Popular Question Notable Question Famous Question Suffrage Vox Populi Electorate Nice Question Famous Question Famous Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Good Question Popular Question Famous Question Nice Question Yearling Notable Question Notable Question Notable Question Caucus Popular Question Notable Question Nice Answer Popular Question Notable Question Great Question Nice Question Popular Question Famous Question Nice Question Nice Answer Enlightened Yearling Notable Question Good Question Favorite Question Famous Question Custodian Notable Question Custodian Investor Altruist Notable Question Great Question Caucus Constituent Notable Question Nice Question Good Question Nice Question Notable Question Famous Question Good Answer Good Answer Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 69412,791845,663067,Student Popular Question,NULL,NULL,0,NULL,NULL 69413,222770,226448,NULL,NULL,NULL,0,NULL,NULL 69414,146849,801758,NULL,NULL,NULL,0,NULL,NULL 69415,7833336,1433714,Popular Question,NULL,NULL,0,NULL,NULL 69416,84384,43547,Tumbleweed Famous Question Critic Curious Yearling Necromancer,NULL,NULL,0,NULL,NULL 69417,223523,1320541,Civic Duty Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69418,126252,125816,Guru Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Good Answer Guru Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Quorum Guru Nice Answer Guru Good Answer Guru Nice Answer Popular Question Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer ruby-on-rails-4 Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer performance Nice Answer Nice Answer Nice Answer Enlightened Guru Guru Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Populist Good Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Steward Nice Answer Caucus Constituent Nice Answer Nice Answer rspec Guru Nice Answer Enlightened Popular Question Great Answer nosql Nice Answer Enlightened Guru Guru Reviewer sidekiq Nice Answer Nice Answer Great Answer Good Answer Nice Question json Good Answer Notable Question Good Answer Nice Answer Good Answer Nice Answer Enlightened Enlightened Nice Answer Promoter Benefactor Nice Answer Nice Answer Enlightened Census Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru ruby-on-rails-5 devise javascript Archaeologist Caucus Legendary Constituent Revival Good Answer Great Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Question Great Answer Yearling Nice Answer Enlightened Popular Question Great Answer Good Answer Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Nice Answer Guru Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69419,102825,1189003,NULL,NULL,NULL,0,NULL,NULL 69420,246066,1354679,NULL,NULL,NULL,0,NULL,NULL 69421,499666,1354679,NULL,NULL,NULL,0,NULL,NULL 69422,490938,1032042,Nice Answer Enlightened Good Answer nginx Yearling Nice Answer Caucus Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69423,426261,664403,NULL,NULL,NULL,0,NULL,NULL 69424,456503,939775,Popular Question Teacher Necromancer,NULL,NULL,0,NULL,NULL 69425,429819,1191885,NULL,NULL,NULL,0,NULL,NULL 69426,1380235,1229718,NULL,NULL,NULL,0,NULL,NULL 69427,202431,1106920,NULL,NULL,NULL,0,NULL,NULL 69428,289641,1222686,Teacher Custodian Supporter Editor Commentator Yearling Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 69429,33011,98509,Yearling Nice Question Famous Question Cleanup Caucus Constituent couchbase Explainer Enthusiast Announcer Yearling Caucus Yearling Excavator,NULL,NULL,0,NULL,NULL 69430,106080,1389546,Caucus Critic,NULL,NULL,0,NULL,NULL 69431,3902810,939066,Supporter,NULL,NULL,0,NULL,NULL 69432,719518,851915,NULL,NULL,NULL,0,NULL,NULL 69433,719520,851915,NULL,NULL,NULL,0,NULL,NULL 69434,1026044,495750,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69435,53316,1149763,Student Nice Answer Enlightened Commentator,NULL,NULL,0,NULL,NULL 69436,153094,1490879,Critic Notable Question Commentator Popular Question,NULL,NULL,0,NULL,NULL 69437,201804,289686,Yearling Popular Question Caucus Guru Nice Question Yearling Civic Duty Notable Question Caucus Necromancer Autobiographer Custodian Yearling Caucus Cleanup Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 69438,1229199,289686,Yearling Popular Question Caucus Guru Nice Question Yearling Civic Duty Notable Question Caucus Necromancer Autobiographer Custodian Yearling Caucus Cleanup Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 69439,420130,1179976,NULL,NULL,NULL,0,NULL,NULL 69440,24571,199935,NULL,NULL,NULL,0,NULL,NULL 69441,305130,532252,Nice Answer Enlightened Popular Question Necromancer Yearling Good Answer Nice Answer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 69442,148012,991904,NULL,NULL,NULL,0,NULL,NULL 69443,273356,1192141,Yearling Tumbleweed Necromancer Caucus,NULL,NULL,0,NULL,NULL 69444,786858,1064458,NULL,NULL,NULL,0,NULL,NULL 69445,200613,1051754,Yearling Famous Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 69446,98010,174324,Notable Question Yearling Caucus Constituent Yearling Caucus,NULL,NULL,0,NULL,NULL 69447,668800,878298,Student Scholar Supporter Editor Commentator Curious Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69448,75387,350527,Nice Answer Enlightened Explainer Civic Duty Yearling Nice Answer cmake Caucus Nice Answer Yearling Caucus Constituent Good Answer Custodian Nice Answer Caucus Constituent Yearling Guru,NULL,NULL,0,NULL,NULL 69449,1218539,806803,Commentator Necromancer Nice Answer Supporter Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 69450,3328602,828229,NULL,NULL,NULL,0,NULL,NULL 69451,261518,828229,NULL,NULL,NULL,0,NULL,NULL 69452,11235,730195,Popular Question Yearling,NULL,NULL,0,NULL,NULL 69453,1382865,881369,NULL,NULL,NULL,0,NULL,NULL 69454,24794,936952,Student Popular Question,NULL,NULL,0,NULL,NULL 69455,194777,778244,NULL,NULL,NULL,0,NULL,NULL 69456,106617,23815,Good Answer Guru Nice Answer Nice Answer Good Answer Yearling Great Answer Great Question Great Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 69457,265174,1414324,NULL,NULL,NULL,0,NULL,NULL 69458,166901,169218,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 69459,25327,762371,NULL,NULL,NULL,0,NULL,NULL 69460,391119,1005230,qt Nice Answer Nice Answer Enlightened Revival Nice Answer Yearling Good Answer Popular Question Census Curious Yearling vim Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69461,7888765,1005230,qt Nice Answer Nice Answer Enlightened Revival Nice Answer Yearling Good Answer Popular Question Census Curious Yearling vim Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69462,225927,390111,Caucus Notable Question,NULL,NULL,0,NULL,NULL 69463,8713409,390111,Caucus Notable Question,NULL,NULL,0,NULL,NULL 69464,62975,495813,Nice Question,NULL,NULL,0,NULL,NULL 69465,59986,1044118,NULL,NULL,NULL,0,NULL,NULL 69466,10301,1168856,Good Answer,NULL,NULL,0,NULL,NULL 69467,1042427,1492606,NULL,NULL,NULL,0,NULL,NULL 69468,115274,1057324,NULL,NULL,NULL,0,NULL,NULL 69469,57898,1197705,NULL,NULL,NULL,0,NULL,NULL 69470,2716850,877537,NULL,NULL,NULL,0,NULL,NULL 69471,11043,162719,Notable Question Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 69472,2041723,1514462,Popular Question Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 69473,729414,1514462,Popular Question Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 69474,264295,923369,NULL,NULL,NULL,0,NULL,NULL 69475,296183,329254,NULL,NULL,NULL,0,NULL,NULL 69476,1257018,257323,Popular Question Notable Question Student Famous Question,NULL,NULL,0,NULL,NULL 69477,376739,694589,NULL,NULL,NULL,0,NULL,NULL 69478,208499,405065,NULL,NULL,NULL,0,NULL,NULL 69479,147793,1123082,Peer Pressure Student,NULL,NULL,0,NULL,NULL 69480,147805,1123082,Peer Pressure Student,NULL,NULL,0,NULL,NULL 69481,239446,350040,Yearling Nice Answer Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 69482,24538,1429683,NULL,NULL,NULL,0,NULL,NULL 69483,2596429,658601,Yearling Notable Question Nice Answer Caucus Constituent Famous Question Custodian Yearling Yearling Caucus Nice Question,NULL,NULL,0,NULL,NULL 69484,97251,658601,Yearling Notable Question Nice Answer Caucus Constituent Famous Question Custodian Yearling Yearling Caucus Nice Question,NULL,NULL,0,NULL,NULL 69485,565593,574401,NULL,NULL,NULL,0,NULL,NULL 69486,174729,1180673,Yearling Nice Answer Enlightened Caucus Critic,NULL,NULL,0,NULL,NULL 69487,496979,1248688,NULL,NULL,NULL,0,NULL,NULL 69488,739263,607870,Editor Informed Commentator Yearling Self-Learner Student Peer Pressure Scholar Excavator Citizen Patrol Critic Caucus Documentation User Census Popular Question,NULL,NULL,0,NULL,NULL 69489,50514,1533128,Informed Autobiographer Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 69490,215601,301431,Yearling Custodian Caucus Constituent Yearling Yearling,NULL,NULL,0,NULL,NULL 69491,274829,508116,NULL,NULL,NULL,0,NULL,NULL 69492,23124,825265,NULL,NULL,NULL,0,NULL,NULL 69493,23123,825265,NULL,NULL,NULL,0,NULL,NULL 69494,158651,446149,Necromancer Yearling Necromancer Commentator Caucus Constituent Yearling Custodian Citizen Patrol Critic Yearling Necromancer Enthusiast Announcer Yearling Autobiographer Nice Answer Fanatic Nice Answer Caucus Constituent Yearling Nice Question Popular Question Yearling Census Popular Question Nice Answer Enlightened Caucus Necromancer Curious Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 69495,107847,757289,NULL,NULL,NULL,0,NULL,NULL 69496,244599,9506,Yearling Popular Question Good Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Yearling Famous Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69497,2867285,871674,Informed Autobiographer,NULL,NULL,0,NULL,NULL 69498,12515,871674,Informed Autobiographer,NULL,NULL,0,NULL,NULL 69499,205222,1088462,NULL,NULL,NULL,0,NULL,NULL 69500,8839,620249,Nice Answer Enlightened Yearling Nice Answer svg Necromancer Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Yearling Caucus Necromancer Great Answer Yearling Enlightened Good Answer Nice Answer Nice Answer Necromancer,NULL,pThis is not something that SVG supports SVG does have the codetextArea code element with automatic word wrapping but it not implemented in all browsers SVG href https www w3 org Graphics SVG WG wiki SVG2 Requirements Input the textArea element does not plan on implementing codetextArea code but it does have href https svgwg org svg2 draft text html TextLayoutAuto auto wrapped text ppHowever given that you already know where your linebreaks should occur you can break your text into multiple code lt tspan gt codes each with codex code and codedy 4em code to simulate actual lines of text For example ppre code lt transform translate 123 456 gt lt replace with your target upper left corner coordinates gt lt text gt lt tspan dy 2em gt very long text lt tspan gt lt tspan dy 2em gt would like to linebreak lt tspan gt lt text gt lt gt code prepOf course since you want to do that from JavaScript you ll have to manually create and insert each element into the DOM is an absolute coordinate move the text fragment to the origin of the current coordinate system https www w3 org TR SVG coords html EstablishingANewUserSpace The transform attribute on the element defines new current coordinate system and assuming that the text is left aligned the tspan is moved to the left This acts like carriage return instruction dy 2em is relative coordinate move the text fragment by this amount relative to the current text fragment This acts like line feed instruction Combined you get CR LF pThis is not something that SVG supports SVG does have the codetextArea code element with automatic word wrapping but it not implemented in all browsers SVG href https www w3 org Graphics SVG WG wiki SVG2 Requirements Input the textArea element does not plan on implementing codetextArea code but it does have href https svgwg org svg2 draft text html TextLayoutAuto auto wrapped text ppHowever given that you already know where your linebreaks should occur you can break your text into multiple code lt tspan gt codes each with codex code and codedy 4em code to simulate actual lines of text For example ppre code lt transform translate 123 456 gt lt replace with your target upper left corner coordinates gt lt text gt lt tspan dy 2em gt very long text lt tspan gt lt tspan dy 2em gt would like to linebreak lt tspan gt lt text gt lt gt code prepOf course since you want to do that from JavaScript you ll have to manually create and insert each element into the DOM It does work however it has the slight disadvantage that you must compute the coordinates for each line yourself dy 2em is much simpler it the same for each line and doesn depend on the font size Another advantage is that if you want to move the whole text you can just update one pair of values in the group transform attribute instead of updating the coordinates of every tspan,0,NULL,NULL 69501,628879,503041,NULL,NULL,NULL,0,NULL,NULL 69502,187190,394585,Nice Question Nice Question Yearling Popular Question Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69503,339218,717433,NULL,NULL,NULL,0,NULL,NULL 69504,136527,730816,NULL,NULL,NULL,0,NULL,NULL 69505,267796,1188757,NULL,NULL,NULL,0,NULL,NULL 69506,222316,1047416,NULL,NULL,NULL,0,NULL,NULL 69507,201823,468268,NULL,NULL,NULL,0,NULL,NULL 69508,436431,464027,Enthusiast,NULL,NULL,0,NULL,NULL 69509,263519,1033566,Student,NULL,NULL,0,NULL,NULL 69510,1416190,816971,Yearling Notable Question Critic Necromancer,NULL,NULL,0,NULL,NULL 69511,174222,1299000,Revival,NULL,NULL,0,NULL,NULL 69512,168829,1368869,NULL,NULL,NULL,0,NULL,NULL 69513,147185,1216554,NULL,NULL,NULL,0,NULL,NULL 69514,381262,269992,Yearling,NULL,NULL,0,NULL,NULL 69515,742728,703921,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69516,1197171,826382,NULL,NULL,NULL,0,NULL,NULL 69517,780268,98627,Nice Answer Enlightened Necromancer Notable Question Famous Question Yearling Popular Question Yearling Popular Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 69518,235129,66636,NULL,NULL,NULL,0,NULL,NULL 69519,166009,188483,NULL,NULL,NULL,0,NULL,NULL 69520,198865,410556,python Good Answer Nice Answer Yearling Necromancer Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 69521,460415,1306062,Yearling Notable Question Curious Popular Question Popular Question Necromancer Benefactor Necromancer Yearling,NULL,NULL,0,NULL,NULL 69522,226487,1207417,NULL,NULL,NULL,0,NULL,NULL 69523,7951,585369,NULL,NULL,NULL,0,NULL,NULL 69524,808245,1087768,Great Answer Popular Question Notable Question Nice Answer Yearling Civic Duty Announcer Popular Question Excavator Yearling Necromancer Cleanup Custodian Nice Answer,NULL,NULL,1,Angular AOT Rollup Could not resolve app module ngfactory angular rollup pI am trying to complete Angular AOT tutorial bra href https angular io docs ts latest cookbook aot compiler html rel noreferrer https angular io docs ts latest cookbook aot compiler html ppUsing codengc code part works and it generates codeaot code folder However when it comes to tree shaking with coderollup code part bump into this error ppre codeError Could not resolve aot app app module ngfactory from app main aot js at Error native at node modules rollup plugin node resolve dist rollup plugin node resolve cjs js 78 21 at node modules resolve lib async js 56 18 at load node modules resolve lib async js 70 43 at onex node modules resolve lib async js 93 31 at node modules resolve lib async js 23 47 at FSReqWrap oncomplete fs js 82 15 code prepAm missing something pp 4brrollup 41,NULL 69525,99729,1075712,NULL,NULL,NULL,0,NULL,NULL 69526,446952,85094,Good Answer Yearling Famous Question Custodian Yearling,NULL,NULL,0,NULL,NULL 69527,1377,228869,NULL,NULL,NULL,0,NULL,NULL 69528,230777,945529,NULL,NULL,NULL,0,NULL,NULL 69529,206821,1332320,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 69530,341860,547271,Popular Question Yearling Notable Question Popular Question Notable Question Civic Duty Famous Question Popular Question Nice Answer Caucus Critic Good Question Famous Question Popular Question Famous Question Announcer Custodian Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69531,721021,819809,Teacher Notable Question,NULL,NULL,0,NULL,NULL 69532,134274,1134531,NULL,NULL,NULL,0,NULL,NULL 69533,922911,575576,NULL,NULL,NULL,0,NULL,NULL 69534,240628,931209,Yearling Nice Answer Enlightened Yearling Good Answer Necromancer Yearling Guru Notable Question Yearling,NULL,NULL,0,NULL,NULL 69535,274915,514570,NULL,NULL,NULL,0,NULL,NULL 69536,13423,447516,Popular Question Yearling Revival Critic,NULL,NULL,0,NULL,NULL 69537,673762,1323072,NULL,NULL,NULL,0,NULL,NULL 69538,147937,1003728,NULL,NULL,NULL,0,NULL,NULL 69539,2372777,1003728,NULL,NULL,NULL,0,NULL,NULL 69540,298194,1213047,Notable Question Notable Question Tumbleweed Notable Question Critic Popular Question,NULL,NULL,0,NULL,NULL 69541,733766,121576,Popular Question Critic Famous Question,NULL,NULL,0,NULL,NULL 69542,1192688,994339,Student,NULL,NULL,0,NULL,NULL 69543,4984412,994339,Student,NULL,NULL,0,NULL,NULL 69544,1404589,865114,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69545,11848,1438617,NULL,NULL,NULL,0,NULL,NULL 69546,242374,221569,Famous Question Yearling Notable Question Stellar Question Self-Learner Good Answer Yearling Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 69547,139360,213073,NULL,NULL,NULL,0,NULL,NULL 69548,23451,702821,Student Revival Self-Learner Necromancer Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69549,61940,503759,Supporter,NULL,NULL,0,NULL,NULL 69550,195044,1142289,NULL,NULL,NULL,0,NULL,NULL 69551,379139,146516,NULL,NULL,NULL,0,NULL,NULL 69552,744518,146516,NULL,NULL,NULL,0,NULL,NULL 69553,160056,115714,Revival,NULL,NULL,0,NULL,NULL 69554,70823,980943,NULL,NULL,NULL,0,NULL,NULL 69555,312365,163630,Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 69556,447038,213904,Necromancer,NULL,NULL,0,NULL,NULL 69557,861101,1348385,NULL,NULL,NULL,0,NULL,NULL 69558,107685,507648,Yearling Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 69559,448738,799976,NULL,NULL,NULL,0,NULL,NULL 69560,177645,1255103,Excavator Informed Nice Question,NULL,NULL,0,NULL,NULL 69561,8061,571513,Necromancer Yearling Caucus Civic Duty Constituent Critic Notable Question Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 69562,6978,127816,Student Critic Scholar Commentator Announcer Popular Question Nice Answer Enlightened Yearling Census Caucus Notable Question Nice Question,NULL,Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre zip won do because all three sources will produce at wildly different rates Use case is source1 is usually human interaction like click and the other sources are fetching data from various sources ajax response SSE stream etc,1,Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre,NULL 69563,10884,348414,NULL,NULL,NULL,0,NULL,NULL 69564,82722,1342119,NULL,NULL,NULL,0,NULL,NULL 69565,422711,866096,NULL,NULL,NULL,0,NULL,NULL 69566,4235892,118850,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 69567,500669,118850,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 69568,575178,270401,NULL,NULL,NULL,0,NULL,NULL 69569,21464,507685,Critic Nice Question Yearling,NULL,NULL,0,NULL,NULL 69570,1518660,23632,Good Question Popular Question Popular Question Yearling Notable Question Nice Question Famous Question Popular Question Yearling Guru Nice Question Yearling Good Answer Great Answer,NULL,NULL,0,NULL,NULL 69571,274398,605698,Good Answer Yearling Good Answer Popular Question Popular Question Guru Nice Question Yearling Nice Answer Nice Answer Notable Question Popular Question Yearling Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 69572,23256,1253615,NULL,NULL,NULL,0,NULL,NULL 69573,4205,458940,Populist Yearling Civic Duty Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 69574,8737,1481291,NULL,NULL,NULL,0,NULL,NULL 69575,602824,8590,Good Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Question Nice Answer Nice Answer Yearling Nice Answer Enlightened Great Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 69576,394933,388997,NULL,NULL,NULL,0,NULL,NULL 69577,53003,86485,Announcer Good Answer Popular Question Announcer Notable Question Yearling Nice Answer Enlightened Good Answer Guru Notable Question Announcer Popular Question Announcer Good Answer Caucus Good Answer Nice Answer Announcer Populist Popular Question Census Populist Announcer Nice Answer Enlightened Vox Populi Nice Answer Yearling Enlightened Good Answer Nice Answer Nice Answer Copy Editor Announcer Announcer Announcer Announcer Caucus Announcer Announcer Good Answer Good Answer Good Answer Custodian Custodian Custodian Nice Question Great Answer Popular Question Announcer Census Announcer Booster Announcer Caucus Yearling Booster Booster Announcer Revival Announcer Nice Answer Announcer Revival Publicist Announcer Guru Publicist Announcer,NULL,NULL,1,How do tell sbt to use nightly build of Scala 12 or 13 scala sbt nightly build pI want to test my code against the latest bleeding edge Scala nightlies ppThe href https stackoverflow com 13433470 86485 answer for Scala 10 doesn work anymore ppWhat do do,NULL 69578,3667,39383,NULL,NULL,NULL,0,NULL,NULL 69579,85435,213284,Good Answer Yearling,NULL,NULL,0,NULL,NULL 69580,423713,21722,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 69581,1534925,951796,Notable Question,NULL,NULL,0,NULL,NULL 69582,321945,834644,Nice Answer Enlightened Yearling Yearling Popular Question Yearling Nice Answer Enlightened,NULL,pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre Thanks No longer necessary as of Rake 11,0,NULL,NULL 69583,34649,477346,Popular Question,NULL,NULL,0,NULL,NULL 69584,291395,1140977,NULL,NULL,NULL,0,NULL,NULL 69585,66943,564683,Popular Question Yearling Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 69586,186546,504852,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69587,422845,665044,Self-Learner,NULL,NULL,0,NULL,NULL 69588,293536,497813,Custodian Commentator Necromancer Yearling,NULL,NULL,0,NULL,NULL 69589,1004,123471,Good Question Notable Question Notable Question Necromancer Good Answer Nice Question Good Answer Nice Question Yearling Popular Question Nice Question Socratic Popular Question Notable Question Nice Question Nice Answer Popular Question Nice Answer Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Answer Nice Answer Popular Question Popular Question Good Answer Notable Question Popular Question Nice Answer Good Question Popular Question Yearling Nice Question Nice Question Notable Question Notable Question Documentation User Notable Question Nice Question Nice Question Nice Answer Enlightened Popular Question Popular Question Nice Answer Nice Answer Notable Question Nice Answer Enlightened Nice Question Nice Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Answer Popular Question Good Question Good Answer Good Answer Notable Question Popular Question Good Question Popular Question Good Question Popular Question Nice Answer Enlightened Popular Question Nice Question Yearling Nice Question Popular Question Nice Question Popular Question Famous Question Famous Question Nice Question Notable Question Notable Question Notable Question Notable Question Popular Question Famous Question Nice Question Nice Question Good Answer Popular Question Notable Question Popular Question Good Answer Guru Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Answer Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Good Question Famous Question,NULL,NULL,1,How do do the frosted glass effect in Flutter dart flutter pI writing Flutter app and like to use implement the frosted glass effect that common on iOS How do do this How do build different versions of my Flutter app for qa dev prod dart flutter pI am building Flutter app and have variables with different values for different environments QA dev prod etc What good way to organize my app so can easily make build for QA dev prod and other environments,NULL 69590,695979,1013917,NULL,NULL,NULL,0,NULL,NULL 69591,6986,365738,Nice Answer Nice Answer Necromancer Popular Question Notable Question Popular Question Nice Answer Yearling Revival Nice Answer Enlightened Nice Answer Enlightened Famous Question Guru Caucus Revival Revival Nice Answer Enlightened Nice Question Guru Nice Answer Popular Question Notable Question Popular Question Yearling Nice Answer Enlightened Caucus Nice Answer Good Answer Documentation User Notable Question Census Nice Answer Enlightened Caucus Popular Question Revival Yearling Nice Answer Good Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 69592,1246,893653,NULL,NULL,NULL,0,NULL,NULL 69593,82945,1040196,NULL,NULL,NULL,0,NULL,NULL 69594,572831,965336,NULL,NULL,NULL,0,NULL,NULL 69595,51309,849762,NULL,NULL,NULL,0,NULL,NULL 69596,927562,249040,NULL,NULL,NULL,0,NULL,NULL 69597,265854,1012100,NULL,NULL,NULL,0,NULL,NULL 69598,1314416,366336,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 69599,1916970,1247311,NULL,NULL,NULL,0,NULL,NULL 69600,170503,987314,NULL,NULL,NULL,0,NULL,NULL 69601,1516976,376751,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 69602,22857,189031,NULL,NULL,NULL,0,NULL,NULL 69603,2892445,1122046,NULL,NULL,NULL,0,NULL,NULL 69604,601981,1152017,Yearling Popular Question Notable Question Yearling Yearling Necromancer Caucus Nice Answer,NULL,NULL,0,NULL,NULL 69605,223357,878524,NULL,NULL,NULL,0,NULL,NULL 69606,298575,382610,Civic Duty Popular Question Critic Enthusiast Nice Question Census Yearling,NULL,NULL,0,NULL,NULL 69607,153190,1566599,NULL,NULL,NULL,0,NULL,NULL 69608,885784,1367530,Supporter,NULL,NULL,0,NULL,NULL 69609,52686,1148270,NULL,NULL,NULL,0,NULL,NULL 69610,209406,277497,NULL,NULL,NULL,0,NULL,NULL 69611,160258,262351,NULL,NULL,NULL,0,NULL,NULL 69612,969550,1141166,NULL,NULL,NULL,0,NULL,NULL 69613,88211,424107,Famous Question Nice Question Benefactor Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69614,247534,503459,Famous Question Yearling,NULL,NULL,0,NULL,NULL 69615,29460,1039787,NULL,NULL,NULL,0,NULL,NULL 69616,24234,75377,Popular Question Yearling Stellar Question Yearling Yearling,NULL,NULL,0,NULL,NULL 69617,35757,97650,Yearling Custodian Famous Question Famous Question,NULL,NULL,0,NULL,NULL 69618,1323144,205147,Famous Question Popular Question Caucus Popular Question Nice Question Popular Question Popular Question Custodian Yearling Caucus Critic Notable Question Caucus Citizen Patrol Custodian Inquisitive Notable Question,NULL,NULL,0,NULL,NULL 69619,124767,1170358,NULL,NULL,NULL,0,NULL,NULL 69620,749755,326308,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 69621,1500847,835000,Yearling Popular Question Caucus Electorate Popular Question Yearling Caucus Excavator Necromancer Yearling Revival Notable Question,NULL,NULL,0,NULL,NULL 69622,1092381,758995,NULL,NULL,NULL,0,NULL,NULL 69623,437536,894885,Revival Necromancer Nice Answer Enlightened Popular Question Necromancer Nice Answer Enlightened Necromancer Nice Question Yearling java Notable Question Nice Answer Nice Answer Announcer Good Answer Nice Question Popular Question Yearling Popular Question Announcer Enlightened Yearling Nice Answer Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69624,168878,652311,NULL,NULL,NULL,0,NULL,NULL 69625,3909019,1304230,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69626,592751,1074834,Yearling Nice Answer Yearling Revival Revival Caucus Constituent Custodian Custodian Curious Good Answer Electorate Yearling Popular Question Necromancer Revival Caucus Constituent Necromancer Notable Question Yearling Notable Question Revival Nice Question Revival Yearling Necromancer Famous Question,NULL,pre codeprivate function downloadFile url path newfname path file fopen url rb if file newf fopen newfname wb if newf while feof file fwrite newf fread file 1024 1024 if file fclose file if newf fclose newf code pre NomanJaved you need to do auth request on login form first and reuse the same curl client or at least it headers and cookie for all further requests h2A rephrasal h2pAnother way to phrase the question is What is the nearest commit that resides on branch other than the current branch and which branch is that ph2A solution h2pYou can find it with little bit of command line magic ppre codegit show branch grep grep git rev parse abbrev ref HEAD head n1 sed sed code preh2Here how it works h2olliDisplay textual history of all commits including remote branches liliAncestors of the current commit are indicated by star Filter out everything else liliIgnore all the commits in the current branch liliThe first result will be the nearest ancestor branch Ignore the other results liliBranch names are displayed in brackets Ignore everything outside the brackets and the brackets liliSometimes the branch name will include or to indicate how many commits are between the referenced commit and the branch tip We don care Ignore them li olh2And the Result h2pRunning the above code on ppre code lt master lt develop lt topic code prepWill give you codedevelop code if you run it from and codemaster code if you run it from pp href https gist github com joechrysler 6073741 rel noreferrer The code is available as gist How to add this long command as an alias Doesn work in this way git config global alias parent show branch sed grep grep git rev parse abbrev ref HEAD head n1 sed Error about character,0,NULL,NULL 69627,7981,236598,Citizen Patrol Announcer Caucus Popular Question,NULL,NULL,0,NULL,NULL 69628,446957,1245080,NULL,NULL,NULL,0,NULL,NULL 69629,53542,42340,Nice Question Notable Question Popular Question Popular Question Necromancer Nice Answer Promoter Notable Question Nice Question Famous Question Yearling Famous Question Popular Question Notable Question Nice Question Popular Question Good Answer Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Yearling Notable Question Necromancer Notable Question Good Question Famous Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 69630,632956,557884,Revival Student Commentator Enthusiast Informed Critic Curious,NULL,NULL,0,NULL,NULL 69631,1715179,557884,Revival Student Commentator Enthusiast Informed Critic Curious,NULL,NULL,0,NULL,NULL 69632,244123,845020,NULL,NULL,NULL,0,NULL,NULL 69633,1535,1206034,Famous Question Popular Question Caucus Caucus Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69634,50132,300734,NULL,NULL,NULL,0,NULL,NULL 69635,1917777,1247301,Yearling Civic Duty Nice Answer Popular Question Yearling Excavator Nice Answer Enlightened Popular Question Tumbleweed Popular Question Yearling c++,NULL,NULL,0,NULL,NULL 69636,638297,1090194,NULL,NULL,NULL,0,NULL,NULL 69637,135764,124951,Nice Question Yearling Caucus Yearling Caucus Documentation User Curious Good Answer Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 69638,7285318,993592,Popular Question Popular Question Necromancer Necromancer Popular Question Excavator Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Necromancer Custodian Popular Question Nice Question Nice Answer Popular Question Famous Question Notable Question Yearling Nice Question Popular Question Famous Question Notable Question Popular Question Good Answer Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Organizer Popular Question Popular Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69639,194714,993592,Popular Question Popular Question Necromancer Necromancer Popular Question Excavator Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Necromancer Custodian Popular Question Nice Question Nice Answer Popular Question Famous Question Notable Question Yearling Nice Question Popular Question Famous Question Notable Question Popular Question Good Answer Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Organizer Popular Question Popular Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69640,60179,829989,Informed Autobiographer Organizer Yearling Commentator Citizen Patrol Yearling Tenacious Nice Answer Enlightened Caucus Yearling Constituent Enthusiast Revival,NULL,NULL,0,NULL,NULL 69641,10396884,829989,Informed Autobiographer Organizer Yearling Commentator Citizen Patrol Yearling Tenacious Nice Answer Enlightened Caucus Yearling Constituent Enthusiast Revival,NULL,NULL,0,NULL,NULL 69642,100283,145809,Yearling Good Question Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69643,8931,209190,Nice Answer Notable Question Nice Question Nice Answer Yearling Notable Question Nice Question Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 69644,921525,1233405,NULL,NULL,NULL,0,NULL,NULL 69645,16282,1311319,NULL,NULL,NULL,0,NULL,NULL 69646,1508670,744144,Caucus,NULL,NULL,0,NULL,NULL 69647,102644,605185,NULL,NULL,NULL,0,NULL,NULL 69648,704903,735952,Supporter Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 69649,1704202,1544006,Notable Question,NULL,NULL,0,NULL,NULL 69650,431951,1541568,Revival Popular Question Critic Documentation User,NULL,NULL,0,NULL,NULL 69651,30962,379512,Nice Answer Enlightened Nice Answer Famous Question Nice Answer Revival Notable Question Nice Answer Notable Question Nice Question Popular Question Notable Question Popular Question Good Answer Popular Question Notable Question Good Question Yearling Inquisitive Necromancer Great Question Popular Question Notable Question Famous Question Popular Question Nice Answer Favorite Question Notable Question Great Answer Popular Question Nice Question Nice Answer Enlightened Nice Question Popular Question Nice Question Popular Question Necromancer Notable Question Great Question Popular Question Popular Question Nice Answer Enlightened Nice Question Notable Question Popular Question Nice Question Notable Question Nice Answer Popular Question Popular Question Promoter Benefactor Notable Question Nice Question javascript Yearling Good Question Notable Question Famous Question Popular Question Notable Question Good Answer Good Question Nice Question Notable Question Famous Question Nice Answer Popular Question Famous Question Popular Question Good Question Notable Question Notable Question Popular Question Popular Question Good Question Famous Question Necromancer Famous Question Nice Question Famous Question Popular Question Necromancer Popular Question Popular Question Popular Question Guru Notable Question Nice Question Nice Question Good Question Great Question Nice Answer Famous Question Popular Question Famous Question Popular Question Nice Question Popular Question Nice Answer Yearling Notable Question Famous Question Nice Question Notable Question Notable Question Notable Question Great Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 69652,1352876,1307737,NULL,NULL,NULL,0,NULL,NULL 69653,10039010,1307737,NULL,NULL,NULL,0,NULL,NULL 69654,144165,241367,Explainer Necromancer Good Answer Necromancer Necromancer Necromancer Yearling Popular Question Electorate Announcer Nice Answer,NULL,NULL,0,NULL,NULL 69655,232510,177154,Great Answer Yearling Popular Question Excavator Yearling Informed Custodian Caucus Tenacious Yearling,NULL,NULL,0,NULL,NULL 69656,1218230,906757,NULL,NULL,NULL,0,NULL,NULL 69657,390346,1219256,Yearling,NULL,NULL,0,NULL,NULL 69658,390348,1219256,Yearling,NULL,NULL,0,NULL,NULL 69659,10760,138095,NULL,NULL,NULL,0,NULL,NULL 69660,107161,177524,Necromancer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 69661,117261,531488,NULL,NULL,NULL,0,NULL,NULL 69662,585911,893918,Good Answer Nice Answer Yearling Nice Answer Famous Question Yearling javascript Notable Question Yearling,NULL,NULL,0,NULL,NULL 69663,181318,445908,Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Necromancer ruby-on-rails Nice Answer Nice Answer Yearling Good Answer Guru Nice Answer Popular Question Necromancer Necromancer Necromancer Caucus Electorate Yearling Announcer Announcer Necromancer Good Answer Nice Answer Necromancer Announcer Good Answer Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 69664,1560325,621027,Good Answer,NULL,NULL,0,NULL,NULL 69665,67278,861149,NULL,NULL,NULL,0,NULL,NULL 69666,6700296,1076713,NULL,NULL,NULL,0,NULL,NULL 69667,1659555,1189553,NULL,NULL,NULL,0,NULL,NULL 69668,2061695,715366,NULL,NULL,NULL,0,NULL,NULL 69669,375598,271531,Popular Question,NULL,NULL,0,NULL,NULL 69670,271045,248991,NULL,NULL,NULL,0,NULL,NULL 69671,598974,286648,NULL,NULL,NULL,0,NULL,NULL 69672,514152,206309,NULL,NULL,NULL,0,NULL,NULL 69673,128385,508689,Famous Question,NULL,NULL,0,NULL,NULL 69674,1565711,1040835,NULL,NULL,NULL,0,NULL,NULL 69675,360076,606648,Caucus Necromancer Yearling Informed Autobiographer Nice Answer,NULL,NULL,0,NULL,NULL 69676,326637,1419585,Notable Question Necromancer Good Answer Notable Question Yearling Popular Question Popular Question Nice Question Famous Question Critic Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 69677,514876,230143,Popular Question Notable Question Commentator Nice Question,NULL,NULL,0,NULL,NULL 69678,226514,630925,NULL,NULL,NULL,0,NULL,NULL 69679,377122,372688,NULL,NULL,NULL,0,NULL,NULL 69680,13031,1121879,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69681,624794,1199202,NULL,NULL,NULL,0,NULL,NULL 69682,108648,260388,NULL,NULL,NULL,0,NULL,NULL 69683,73215,499449,Necromancer Nice Answer Nice Answer Famous Question Yearling Nice Answer Necromancer Nice Answer Notable Question Nice Answer Good Question Yearling Popular Question Good Answer Nice Answer Nice Answer Enlightened Pundit Popular Question Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 69684,321175,1163048,NULL,NULL,NULL,0,NULL,NULL 69685,1667593,1214588,NULL,NULL,NULL,0,NULL,NULL 69686,291351,436968,NULL,NULL,NULL,0,NULL,NULL 69687,715541,582914,NULL,NULL,NULL,0,NULL,NULL 69688,75676,3181,Yearling Tumbleweed Notable Question Custodian Famous Question Good Answer Necromancer Yearling Custodian Custodian c# Census Nice Question Tenacious Yearling Notable Question,NULL,NULL,0,NULL,NULL 69689,14373,169021,Disciplined Yearling,NULL,NULL,0,NULL,NULL 69690,311556,71519,Yearling Electorate Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69691,141758,211136,Guru Good Answer Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69692,101584,1258899,Informed,NULL,NULL,0,NULL,NULL 69693,139575,121828,Yearling Stellar Question Notable Question Yearling Good Question Necromancer Popular Question Yearling Nice Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 69694,783273,647296,Informed Revival,NULL,NULL,0,NULL,NULL 69695,501283,863653,Documentation User,NULL,NULL,0,NULL,NULL 69696,780867,1465770,NULL,NULL,NULL,0,NULL,NULL 69697,539212,190103,Necromancer,NULL,NULL,0,NULL,NULL 69698,352666,564967,NULL,NULL,NULL,0,NULL,NULL 69699,362410,652278,Teacher Informed Organizer,NULL,NULL,0,NULL,NULL 69700,283582,1226066,Yearling Nice Answer Enlightened Nice Answer Explainer Caucus Nice Answer Yearling Good Answer Popular Question Yearling Nice Answer Good Answer Excavator,NULL,NULL,0,NULL,NULL 69701,3104011,1226066,Yearling Nice Answer Enlightened Nice Answer Explainer Caucus Nice Answer Yearling Good Answer Popular Question Yearling Nice Answer Good Answer Excavator,NULL,NULL,0,NULL,NULL 69702,51326,468502,Custodian Autobiographer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69703,862543,1029395,NULL,NULL,NULL,0,NULL,NULL 69704,360276,341107,Notable Question,NULL,NULL,0,NULL,NULL 69705,243022,807540,Popular Question Popular Question Popular Question Notable Question Announcer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 69706,58164,157816,Necromancer Necromancer Nice Answer Necromancer Revival Yearling Announcer Good Answer Necromancer Nice Answer Enthusiast Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 69707,131305,1363905,Yearling Revival Critic,NULL,NULL,0,NULL,NULL 69708,55270,161775,Popular Question Notable Question Popular Question Popular Question Yearling Custodian Custodian Informed Autobiographer Necromancer Excavator,NULL,NULL,0,NULL,NULL 69709,151450,1172826,NULL,NULL,NULL,0,NULL,NULL 69710,406091,956195,Popular Question,NULL,NULL,0,NULL,NULL 69711,1289158,931939,NULL,NULL,NULL,0,NULL,NULL 69712,2044556,486231,NULL,NULL,NULL,0,NULL,NULL 69713,1348688,501348,Famous Question,NULL,NULL,0,NULL,NULL 69714,136237,1224180,Popular Question,NULL,NULL,0,NULL,NULL 69715,1503896,1827,Good Question,NULL,NULL,0,NULL,NULL 69716,1716882,753288,NULL,NULL,NULL,0,NULL,NULL 69717,51703,986196,Popular Question Yearling Notable Question Popular Question Notable Question Caucus Nice Question Nice Answer Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69718,6547304,774567,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69719,31027,712548,Good Answer Yearling Custodian Nice Answer Caucus Nice Answer Yearling Caucus Nice Answer Enlightened Good Question Nice Answer Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 69720,14556,8438,Necromancer Populist Good Answer Necromancer Popular Question Nice Answer Nice Answer Notable Question Nice Answer Enlightened Yearling Popular Question Nice Answer Notable Question Nice Question Nice Answer Explainer Civic Duty Good Answer Enthusiast Popular Question Necromancer Caucus Popular Question Notable Question Notable Question Announcer Nice Question Yearling Notable Question Documentation User Inquisitive Excavator Famous Question Announcer Great Answer Custodian Necromancer Caucus Nice Answer Notable Question Necromancer Notable Question Yearling django Custodian Revival,NULL,strongUpdate strong This is now first class feature of Travis href http blog travis ci com 2013 12 05 speed up your builds cache your dependencies rel noreferrer http blog travis ci com 2013 12 05 speed up your builds cache your dependencies ppI ve just been playing around with this and it looks like you can cache the virtualenv site packages like this update the path to your python version ppre codecache directories home travis virtualenv python2 lib python2 site packages code prepThere little issue that it doesn cache the codebin code or the codesrc code directories tried caching the whole virtualenv directory but get strange errors for dependencies installed via git into the codesrc code directory ppYou are still left with the problem of invalidating old requirements if you remove something from the requirements it will persist in the virtualenv so you either have to explicitly remove it with pip codepip remove foo code or wait until Travis create an API to invalidate the cache ppThe other option is to use the code download cache code option for pip then add that directory to the cache ppre codecache directories HOME pip cache install pip install requirements txt download cache HOME pip cache code prepThis will make the downloads faster but it will still have to compile and install all of the requirements Note this info is out of date now Using it throws DEPRECATION download cache has been deprecated and will be removed in the future Pip now automatically uses and configures its cache,0,NULL,NULL 69721,226366,1075806,Informed,NULL,NULL,0,NULL,NULL 69722,244409,367063,NULL,NULL,NULL,0,NULL,NULL 69723,211849,948312,Caucus Constituent Necromancer Caucus Necromancer Custodian Popular Question,NULL,NULL,0,NULL,NULL 69724,899497,225925,NULL,NULL,NULL,0,NULL,NULL 69725,90316,225959,Notable Question Teacher,NULL,NULL,0,NULL,NULL 69726,1902588,694159,NULL,NULL,NULL,0,NULL,NULL 69727,13304,1017504,NULL,NULL,NULL,0,NULL,NULL 69728,178805,753355,Nice Answer,NULL,NULL,0,NULL,NULL 69729,1029921,753355,Nice Answer,NULL,NULL,0,NULL,NULL 69730,2916839,753355,Nice Answer,NULL,NULL,0,NULL,NULL 69731,602949,1352823,NULL,NULL,NULL,0,NULL,NULL 69732,309756,811453,NULL,NULL,NULL,0,NULL,NULL 69733,11110789,796073,NULL,NULL,NULL,0,NULL,NULL 69734,40510,796073,NULL,NULL,NULL,0,NULL,NULL 69735,5962503,796073,NULL,NULL,NULL,0,NULL,NULL 69736,600183,606681,NULL,NULL,NULL,0,NULL,NULL 69737,156313,1091077,Good Question Yearling,NULL,NULL,0,NULL,NULL 69738,87770,1268215,Supporter Census Critic,NULL,NULL,0,NULL,NULL 69739,673281,1156920,NULL,NULL,NULL,0,NULL,NULL 69740,178054,1074002,Scholar Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69741,776697,369445,NULL,NULL,NULL,0,NULL,NULL 69742,13635,548243,NULL,NULL,NULL,0,NULL,NULL 69743,1553128,1002092,NULL,NULL,NULL,0,NULL,NULL 69744,1751491,1226605,Yearling Popular Question Nice Answer Enlightened Popular Question Good Question Popular Question Notable Question Notable Question Caucus Yearling Popular Question Notable Question Popular Question Necromancer Caucus Nice Answer Nice Answer java Organizer Census Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 69745,4414703,1051652,Editor Popular Question Necromancer,NULL,NULL,0,NULL,NULL 69746,1358652,835415,Notable Question Popular Question Nice Question Popular Question Famous Question Nice Question Notable Question Citizen Patrol Yearling Popular Question Self-Learner Famous Question Famous Question Revival Notable Question Notable Question Yearling Nice Answer Nice Answer Enlightened Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69747,122309,235217,Notable Question Yearling Popular Question Tumbleweed Popular Question Popular Question Nice Answer Yearling Informed Yearling,NULL,NULL,0,NULL,NULL 69748,719744,1122896,Census Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 69749,29565,46799,Notable Question Popular Question Famous Question Famous Question Announcer Popular Question Notable Question Nice Question Popular Question Favorite Question Popular Question Nice Question Announcer Yearling Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Famous Question Great Question Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69750,185785,322848,Popular Question Popular Question Nice Question Caucus Famous Question Popular Question Documentation User Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 69751,751953,805040,NULL,NULL,NULL,0,NULL,NULL 69752,105833,465511,Popular Question,NULL,NULL,0,NULL,NULL 69753,259741,83355,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 69754,75155,395322,Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 69755,381332,313200,Editor Tumbleweed Student Popular Question Yearling Notable Question Nice Answer Caucus,NULL,NULL,0,NULL,NULL 69756,771110,260165,Editor Autobiographer,NULL,NULL,0,NULL,NULL 69757,1373822,848049,NULL,NULL,NULL,0,NULL,NULL 69758,131425,126495,Yearling Popular Question Great Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 69759,35889,375011,Necromancer Nice Answer Yearling Revival Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 69760,855641,415749,Excavator Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 69761,322597,1418699,NULL,NULL,NULL,0,NULL,NULL 69762,8549045,1128852,Notable Question Popular Question Popular Question Enthusiast Popular Question Notable Question Popular Question Yearling Caucus Constituent Famous Question Notable Question Good Question Notable Question Popular Question Popular Question Notable Question Self-Learner Yearling Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69763,491533,1128852,Notable Question Popular Question Popular Question Enthusiast Popular Question Notable Question Popular Question Yearling Caucus Constituent Famous Question Notable Question Good Question Notable Question Popular Question Popular Question Notable Question Self-Learner Yearling Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69764,37225,465013,NULL,NULL,NULL,0,NULL,NULL 69765,30949,506307,Yearling Nice Answer Enlightened Caucus Scholar Student Yearling Commentator Good Answer Caucus Necromancer Excavator Nice Answer Yearling Necromancer,NULL,NULL,1,NULL,Split array into chunks javascript arrays split pLet say that have an Javascript array looking as following ppre code Element Element Element with close to hundred elements code prepWhat approach would be appropriate to chunk split the array into many smaller arrays with lets say 10 elements at its most pOne liner in ECMA ppre codeconst list chuckSize 10 11 12 13 14 15 new Array Math ceil list length chuckSize fill map gt list splice chuckSize code pre 69766,328891,211026,Notable Question Notable Question Yearling Popular Question Self-Learner Popular Question Famous Question Popular Question Caucus Census Notable Question Notable Question Good Question Popular Question Caucus Notable Question Census Popular Question,NULL,NULL,0,NULL,NULL 69767,165206,519680,Notable Question Notable Question Popular Question Notable Question Popular Question Caucus Yearling Popular Question Popular Question Necromancer Nice Question Yearling Famous Question Famous Question Caucus Famous Question Famous Question Nice Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69768,167322,662232,Guru Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 69769,636038,1485318,Popular Question,NULL,NULL,0,NULL,NULL 69770,365475,691099,NULL,NULL,NULL,0,NULL,NULL 69771,696695,691099,NULL,NULL,NULL,0,NULL,NULL 69772,533219,1418232,NULL,NULL,NULL,0,NULL,NULL 69773,243598,747092,Yearling,NULL,NULL,0,NULL,NULL 69774,116476,359107,NULL,NULL,NULL,0,NULL,NULL 69775,263084,764519,Nice Answer Popular Question Famous Question Caucus Nice Question Popular Question,NULL,NULL,0,NULL,NULL 69776,55655,185398,Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69777,404523,1105747,NULL,NULL,NULL,0,NULL,NULL 69778,286163,223571,NULL,NULL,NULL,0,NULL,NULL 69779,16001,170181,Custodian Custodian Yearling Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Great Answer Popular Question Popular Question Notable Question Nice Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 69780,487496,503957,NULL,NULL,NULL,0,NULL,NULL 69781,143554,657398,NULL,NULL,NULL,0,NULL,NULL 69782,128223,1526042,NULL,NULL,NULL,0,NULL,NULL 69783,60388,494674,Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 69784,690315,494674,Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 69785,242370,186888,Nice Question Popular Question Good Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 69786,70265,469544,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 69787,103251,118461,NULL,NULL,NULL,0,NULL,NULL 69788,911154,1493163,NULL,NULL,NULL,0,NULL,NULL 69789,3079,167262,Notable Question Yearling Popular Question Famous Question Yearling Documentation User Popular Question Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 69790,175540,297508,Yearling Caucus Constituent Yearling Caucus Constituent Good Answer Yearling Custodian Disciplined Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 69791,63353,428749,Nice Answer Critic Notable Question Yearling Caucus Popular Question Favorite Question Yearling Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 69792,97610,4001,Revival Yearling Good Answer Nice Question Nice Answer Notable Question Good Answer Nice Answer Nice Answer Yearling Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 69793,316426,48970,Informed Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 69794,214519,836610,NULL,NULL,NULL,0,NULL,NULL 69795,270958,108903,Yearling,NULL,NULL,0,NULL,NULL 69796,2294708,822697,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69797,1004308,1355059,NULL,NULL,NULL,0,NULL,NULL 69798,129080,534045,NULL,NULL,NULL,0,NULL,NULL 69799,760782,701328,Yearling Populist Great Answer Popular Question Yearling Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 69800,904805,285594,Popular Question Notable Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Necromancer Popular Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Good Answer Notable Question Nice Answer Popular Question Popular Question Notable Question Popular Question Nice Answer Popular Question Nice Question Popular Question Popular Question Favorite Question Nice Question Announcer Famous Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Caucus Popular Question Popular Question Announcer Notable Question Popular Question Famous Question Popular Question Announcer Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Good Answer Revival Popular Question Popular Question Great Question Necromancer Famous Question Strunk & White Revival Popular Question Popular Question Necromancer Nice Question Popular Question Popular Question Announcer Announcer Announcer Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Nice Answer Famous Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Caucus Nice Answer Announcer Popular Question Popular Question Notable Question Popular Question Great Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Announcer Popular Question Announcer Necromancer Popular Question Popular Question Notable Question Nice Question Announcer Publicist Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Nice Question Nice Question Notable Question Good Answer Popular Question Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Nice Question Popular Question Notable Question Caucus Necromancer Necromancer Notable Question Booster Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question python Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69801,28352,351232,NULL,NULL,NULL,0,NULL,NULL 69802,970322,333515,Famous Question,NULL,NULL,0,NULL,NULL 69803,93115,755308,NULL,NULL,NULL,0,NULL,NULL 69804,481640,977210,NULL,NULL,NULL,0,NULL,NULL 69805,1199950,258424,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69806,186925,163053,Good Answer Good Answer Guru Guru Nice Answer Enlightened dataframe Popular Question Great Answer Good Answer Good Answer Good Answer Good Answer Nice Question Guru Good Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Notable Question Nice Answer Yearling Great Question Great Answer Good Answer Great Answer Nice Answer Enlightened Famous Question Guru Good Answer Good Answer Great Answer Good Answer Nice Answer Stellar Question Good Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Guru Good Answer Good Answer Great Answer Good Answer Guru Notable Question Popular Question Nice Answer Enlightened Yearling Good Answer Good Answer Populist Good Answer Nice Answer Guru r-faq Good Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Guru Nice Answer Nice Question Good Answer Guru Good Answer Nice Answer Great Answer Yearling Custodian Guru Guru Guru Great Answer,NULL,NULL,0,NULL,NULL 69807,205586,654056,Necromancer Yearling Nice Answer Nice Answer Nice Answer Yearling Yearling python,NULL,NULL,0,NULL,NULL 69808,91504,279539,Tumbleweed,NULL,NULL,0,NULL,NULL 69809,150635,60247,Popular Question Yearling Notable Question Popular Question Popular Question Necromancer Yearling Notable Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 69810,97481,162981,Custodian Good Question Yearling Popular Question Nice Answer Notable Question Great Answer Good Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 69811,91538,185309,NULL,NULL,NULL,0,NULL,NULL 69812,61438,1115,Custodian Yearling Peer Pressure Yearling Yearling,NULL,NULL,0,NULL,NULL 69813,376211,826233,NULL,NULL,NULL,0,NULL,NULL 69814,1187872,144806,Yearling,NULL,NULL,0,NULL,NULL 69815,181364,144806,Yearling,NULL,NULL,0,NULL,NULL 69816,29573,2327,Favorite Question Famous Question Yearling Great Question,NULL,NULL,0,NULL,NULL 69817,2952372,852294,NULL,NULL,NULL,0,NULL,NULL 69818,827437,1080666,Necromancer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 69819,69067,198540,NULL,NULL,NULL,0,NULL,NULL 69820,66379,22436,Good Answer Notable Question Notable Question Nice Question Yearling Yearling Popular Question Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 69821,194616,1202433,NULL,NULL,NULL,0,NULL,NULL 69822,91173,319430,Yearling Yearling,NULL,NULL,0,NULL,NULL 69823,209941,39095,NULL,NULL,NULL,0,NULL,NULL 69824,2161147,548357,Popular Question,NULL,NULL,0,NULL,NULL 69825,95087,724070,Enthusiast,NULL,NULL,0,NULL,NULL 69826,205638,770233,Caucus Famous Question,NULL,NULL,0,NULL,NULL 69827,275291,117373,Yearling,NULL,NULL,0,NULL,NULL 69828,136476,370642,Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 69829,568202,68651,Notable Question Autobiographer Nice Question,NULL,NULL,0,NULL,NULL 69830,230384,234102,Yearling Great Question Notable Question,NULL,NULL,0,NULL,NULL 69831,1648473,1281298,NULL,NULL,NULL,0,NULL,NULL 69832,599326,920423,NULL,NULL,NULL,0,NULL,NULL 69833,248204,12503,Good Question Good Answer c# Enthusiast Famous Question Notable Question asp.net-mvc Yearling Nice Question Nice Question Good Question Popular Question Notable Question Census Popular Question Notable Question Famous Question Popular Question Electorate Popular Question Great Question Pundit Yearling Nice Question Great Answer Popular Question Notable Question Popular Question Famous Question Nice Question Notable Question Popular Question Notable Question Nice Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 69834,378871,953136,NULL,NULL,NULL,0,NULL,NULL 69835,92566,176331,NULL,NULL,NULL,0,NULL,NULL 69836,328631,310353,Necromancer Census,NULL,NULL,0,NULL,NULL 69837,396386,1354860,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69838,2754342,1354860,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69839,530222,811422,Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69840,286252,895988,NULL,NULL,NULL,0,NULL,NULL 69841,410795,1102930,NULL,NULL,NULL,0,NULL,NULL 69842,392736,971970,NULL,NULL,NULL,0,NULL,NULL 69843,1020800,875534,Teacher Supporter,NULL,NULL,0,NULL,NULL 69844,72590,875534,Teacher Supporter,NULL,NULL,0,NULL,NULL 69845,73232,1039071,NULL,NULL,NULL,0,NULL,NULL 69846,229678,1217969,NULL,NULL,NULL,0,NULL,NULL 69847,257289,636625,python Notable Question Popular Question Yearling Custodian Strunk & White django Popular Question Notable Question Nice Question Notable Question Good Question Refiner Famous Question Nice Question Nice Answer Enlightened Popular Question Popular Question Nice Question Popular Question django-models Popular Question Caucus Constituent Famous Question Notable Question Favorite Question Yearling Famous Question Notable Question Popular Question Nice Answer Enlightened Caucus Constituent Nice Question python Good Question Nice Answer Notable Question Documentation User Great Question Nice Answer Enlightened Nice Answer Enlightened Yearling Good Question Notable Question Popular Question Notable Question Notable Question Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 69848,889969,887552,NULL,NULL,NULL,0,NULL,NULL 69849,42003,766653,NULL,NULL,NULL,0,NULL,NULL 69850,279565,1541417,NULL,NULL,NULL,0,NULL,NULL 69851,292348,149673,Excavator Notable Question,NULL,NULL,0,NULL,NULL 69852,230049,526092,NULL,NULL,NULL,0,NULL,NULL 69853,887197,1367393,Notable Question,NULL,NULL,0,NULL,NULL 69854,4173222,1195958,Yearling Citizen Patrol Necromancer Nice Answer Enlightened Great Answer Custodian Yearling Civic Duty Yearling,NULL,NULL,0,NULL,NULL 69855,2256273,1049997,Popular Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 69856,6426,196449,Notable Question Yearling,NULL,NULL,0,NULL,NULL 69857,10108,785488,NULL,NULL,NULL,0,NULL,NULL 69858,279696,1222167,Popular Question Notable Question Notable Question Popular Question Nice Question Nice Question Good Question Popular Question Nice Question Yearling Popular Question Famous Question Notable Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 69859,275764,890077,Revival Yearling Student,NULL,NULL,0,NULL,NULL 69860,174790,1194538,Popular Question Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 69861,640839,1194538,Popular Question Popular Question Notable Question Revival,NULL,NULL,0,NULL,NULL 69862,199039,26453,Yearling,NULL,NULL,0,NULL,NULL 69863,151068,717804,Supporter,NULL,NULL,0,NULL,NULL 69864,120246,398705,NULL,NULL,NULL,0,NULL,NULL 69865,26465,1215240,NULL,NULL,NULL,0,NULL,NULL 69866,112836,89346,Yearling Nice Answer Good Answer Yearling Explainer Caucus Yearling python Yearling Necromancer Caucus Necromancer Custodian python-3.x Yearling Great Answer Custodian Custodian Custodian Good Answer Notable Question Revival Civic Duty,NULL,NULL,0,NULL,NULL 69867,514582,72672,NULL,NULL,NULL,0,NULL,NULL 69868,235941,139150,Socratic Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Famous Question Favorite Question Notable Question Favorite Question Famous Question Notable Question Nice Question Yearling Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Answer Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Good Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Answer Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Nice Question Nice Question Popular Question Notable Question Famous Question Good Question Notable Question Notable Question Popular Question Popular Question Yearling Great Question Popular Question Nice Question Good Question Good Question Notable Question Notable Question Popular Question Famous Question Notable Question Notable Question Guru Notable Question Notable Question Notable Question Good Answer Famous Question Popular Question Nice Question Popular Question Good Question Popular Question Notable Question Famous Question Famous Question Popular Question Nice Question Good Question Famous Question Famous Question Popular Question Popular Question Popular Question Favorite Question Good Question Famous Question Nice Question Popular Question Popular Question Notable Question Favorite Question Notable Question Notable Question Notable Question Popular Question Popular Question Nice Question Nice Question Famous Question Famous Question Famous Question Yearling Popular Question Popular Question Great Question Investor Notable Question Popular Question Popular Question Famous Question Nice Answer Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Suffrage,NULL,NULL,0,NULL,NULL 69869,651914,500175,NULL,NULL,NULL,0,NULL,NULL 69870,474634,783880,Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 69871,124554,596138,NULL,NULL,NULL,0,NULL,NULL 69872,88892,935815,NULL,NULL,NULL,0,NULL,NULL 69873,64256,1210806,Commentator Popular Question Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69874,1654706,1122532,Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 69875,1509098,1145658,NULL,NULL,NULL,0,NULL,NULL 69876,204987,171107,Nice Question,NULL,NULL,0,NULL,NULL 69877,248123,1305281,NULL,NULL,NULL,0,NULL,NULL 69878,887206,515965,Informed Popular Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 69879,1031380,831609,Yearling,NULL,NULL,0,NULL,NULL 69880,8255011,208277,NULL,NULL,NULL,0,NULL,NULL 69881,651012,1205926,NULL,NULL,NULL,0,NULL,NULL 69882,148430,178516,Caucus Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 69883,1191117,1266713,NULL,NULL,NULL,0,NULL,NULL 69884,753808,279096,Revival Famous Question Nice Question,NULL,NULL,0,NULL,NULL 69885,239880,279096,Revival Famous Question Nice Question,NULL,NULL,0,NULL,NULL 69886,921069,1427339,NULL,NULL,NULL,0,NULL,NULL 69887,11988,557823,Necromancer,NULL,NULL,0,NULL,NULL 69888,205079,1486568,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69889,92737,906385,Tumbleweed Caucus Yearling Commentator,NULL,NULL,0,NULL,NULL 69890,1310086,1182525,Revival,NULL,NULL,0,NULL,NULL 69891,1456578,75990,Peer Pressure Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69892,903053,536594,NULL,NULL,NULL,0,NULL,NULL 69893,197292,1476031,Popular Question,NULL,NULL,0,NULL,NULL 69894,1955971,347150,NULL,NULL,NULL,0,NULL,NULL 69895,1209566,674255,Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Yearling Notable Question Famous Question Popular Question Famous Question Notable Question Famous Question Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Famous Question Yearling Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Famous Question Nice Question Famous Question Nice Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 69896,8755100,508205,Popular Question,NULL,NULL,0,NULL,NULL 69897,4453,720351,NULL,NULL,NULL,0,NULL,NULL 69898,2052497,1328875,NULL,NULL,NULL,0,NULL,NULL 69899,148057,926450,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69900,109186,199122,Nice Answer Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 69901,257207,116540,Good Answer Notable Question Notable Question Yearling Popular Question Yearling Good Question Guru Nice Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 69902,473979,743373,Notable Question,NULL,NULL,0,NULL,NULL 69903,1044232,1235628,NULL,NULL,NULL,0,NULL,NULL 69904,234251,1270125,NULL,NULL,NULL,0,NULL,NULL 69905,218163,1108718,Notable Question,NULL,NULL,0,NULL,NULL 69906,265717,1007466,NULL,NULL,NULL,0,NULL,NULL 69907,798032,930000,Custodian Popular Question,NULL,NULL,0,NULL,NULL 69908,51032,1123509,Editor Excavator,NULL,NULL,0,NULL,NULL 69909,751570,1010885,NULL,NULL,NULL,0,NULL,NULL 69910,1238211,1253989,Informed Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 69911,1148299,82135,Popular Question Favorite Question Popular Question Nice Question Yearling Notable Question Popular Question Census Popular Question Famous Question Nice Question Yearling Nice Question Popular Question Nice Question Popular Question Famous Question Great Question Announcer Census Famous Question Yearling Famous Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 69912,378836,1448058,NULL,NULL,NULL,0,NULL,NULL 69913,454956,1348730,Student Supporter Editor Scholar Tumbleweed Census Teacher,NULL,NULL,0,NULL,NULL 69914,37504,1374935,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69915,156646,154047,Notable Question Notable Question Popular Question Nice Answer Yearling Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 69916,122007,541808,Nice Answer Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 69917,942628,1554732,NULL,NULL,NULL,0,NULL,NULL 69918,48785,1547764,NULL,NULL,NULL,0,NULL,NULL 69919,595996,1044472,NULL,NULL,NULL,0,NULL,NULL 69920,697033,1106524,NULL,NULL,NULL,0,NULL,NULL 69921,1731127,368563,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69922,1846210,820795,Nice Question Popular Question Famous Question Popular Question Yearling Notable Question Famous Question Good Question Yearling Caucus Popular Question Custodian Nice Question Inquisitive Famous Question Informed Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 69923,238718,985929,NULL,NULL,NULL,0,NULL,NULL 69924,54465,510139,Civic Duty Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 69925,183635,1042435,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 69926,622595,1023923,NULL,NULL,,0,, 69927,208901,866220,NULL,NULL,NULL,0,NULL,NULL 69928,120558,609015,NULL,NULL,NULL,0,NULL,NULL 69929,173308,655971,NULL,NULL,NULL,0,NULL,NULL 69930,1538608,1356692,Yearling Revival Caucus Constituent Documentation User Commentator,NULL,NULL,0,NULL,NULL 69931,412325,1020308,Tumbleweed Popular Question Popular Question Popular Question Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69932,135083,658799,Famous Question,NULL,NULL,0,NULL,NULL 69933,334438,1514600,Popular Question,NULL,NULL,0,NULL,NULL 69934,211437,297257,Yearling Popular Question Caucus Constituent Census Nice Answer Enlightened Yearling Caucus Constituent Necromancer Documentation User Strunk & White Census Custodian Custodian Necromancer Caucus Yearling Constituent Famous Question Necromancer Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 69935,4991788,947472,NULL,NULL,NULL,0,NULL,NULL 69936,3144433,947472,NULL,NULL,NULL,0,NULL,NULL 69937,609648,1146200,Popular Question Famous Question Curious Enthusiast Teacher Popular Question,NULL,NULL,0,NULL,NULL 69938,135435,679517,NULL,NULL,NULL,0,NULL,NULL 69939,1233667,526065,Editor,NULL,NULL,0,NULL,NULL 69940,3638640,526065,Editor,NULL,NULL,0,NULL,NULL 69941,177820,429253,Documentation User,NULL,NULL,0,NULL,NULL 69942,283374,868639,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 69943,698567,1053930,Taxonomist Popular Question Yearling Unsung Hero Custodian Popular Question Nice Answer Caucus Mortarboard Custodian Popular Question Custodian Yearling Popular Question Revival Nice Answer Enlightened Popular Question Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 69944,10169554,431154,Supporter,NULL,NULL,0,NULL,NULL 69945,146981,431154,Supporter,NULL,NULL,0,NULL,NULL 69946,199769,422,Guru Good Question Popular Question Favorite Question Good Answer Good Question Good Question Yearling Good Answer Good Question Guru Great Answer Guru Good Question Great Question Notable Question Nice Answer Enlightened Yearling Great Answer Famous Question Good Question Favorite Question Nice Answer Yearling Favorite Question Famous Question Favorite Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 69947,35786,1201764,NULL,NULL,NULL,0,NULL,NULL 69948,69443,258922,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69949,327617,786845,Yearling,NULL,NULL,0,NULL,NULL 69950,9143301,672407,NULL,NULL,NULL,0,NULL,NULL 69951,3516,442120,Yearling,NULL,NULL,0,NULL,NULL 69952,324615,761377,Autobiographer,NULL,NULL,0,NULL,NULL 69953,526024,962731,Informed Autobiographer,NULL,NULL,0,NULL,NULL 69954,567228,1338786,NULL,NULL,NULL,0,NULL,NULL 69955,90395,1092869,NULL,NULL,NULL,0,NULL,NULL 69956,80715,895707,NULL,NULL,NULL,0,NULL,NULL 69957,229533,1221753,NULL,NULL,NULL,0,NULL,NULL 69958,85787,1126986,NULL,NULL,NULL,0,NULL,NULL 69959,1360932,462175,Critic,NULL,NULL,0,NULL,NULL 69960,81001,47598,NULL,NULL,NULL,0,NULL,NULL 69961,812409,613010,Critic,NULL,NULL,0,NULL,NULL 69962,281362,357696,NULL,NULL,NULL,0,NULL,NULL 69963,1004250,1190283,NULL,NULL,NULL,0,NULL,NULL 69964,106405,914075,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69965,211762,768434,Critic Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 69966,1190465,1114044,Tumbleweed,NULL,NULL,0,NULL,NULL 69967,1470525,24245,linq-to-sql Yearling Self-Learner Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 69968,318021,79389,Yearling Custodian Custodian Critic Notable Question Excavator Caucus Nice Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 69969,5039,189163,c# Notable Question Good Answer Yearling Nice Answer Popular Question Good Answer Nice Answer Enlightened Yearling Popular Question Good Answer Nice Answer Enlightened Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 69970,171982,185942,Self-Learner Announcer Notable Question,NULL,NULL,0,NULL,NULL 69971,576376,435563,Popular Question Critic Yearling Popular Question Necromancer Nice Answer Popular Question Popular Question Popular Question Necromancer Good Answer Yearling Necromancer Notable Question Custodian Nice Answer Yearling Necromancer Popular Question,NULL,NULL,1,How do use concept in Nim nim pI wondering how to use concept in nim 13 have the following code ppre codetype concept is string T0 ref object string T1 ref object string stringproc echoT void echo hello amp aechoT T0 T0 echoT T1 T1 code prepHowever the compiler complains on the first call to echoT pp codet nim 21 Error type mismatch got T0 code ppShouldn this work the same as replacing the codeechoT code declaration with ppre codeproc echoT void echo hello amp code prep which does compile and run except that in the concept version the constraintcodet is string code is enforced ppHow do get the compiler to recognize the use of concept,NULL 69972,680613,1286440,NULL,NULL,NULL,0,NULL,NULL 69973,218090,963450,Yearling,NULL,NULL,0,NULL,NULL 69974,3208357,142317,Announcer Necromancer Yearling Necromancer Yearling Popular Question Nice Answer Good Answer Nice Answer Self-Learner Yearling Popular Question Caucus Popular Question Popular Question Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 69975,107589,142317,Announcer Necromancer Yearling Necromancer Yearling Popular Question Nice Answer Good Answer Nice Answer Self-Learner Yearling Popular Question Caucus Popular Question Popular Question Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 69976,237064,645683,NULL,NULL,NULL,0,NULL,NULL 69977,426868,230772,NULL,NULL,NULL,0,NULL,NULL 69978,121559,553708,Guru Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 69979,304661,129701,NULL,NULL,NULL,0,NULL,NULL 69980,2905,1144178,NULL,NULL,NULL,0,NULL,NULL 69981,262079,1395428,NULL,NULL,NULL,0,NULL,NULL 69982,241974,342221,NULL,NULL,NULL,0,NULL,NULL 69983,1957566,404760,Famous Question Famous Question Good Answer Famous Question Custodian Nice Question Yearling Nice Answer Enlightened Good Question Caucus Popular Question Good Question Popular Question Yearling Notable Question Popular Question Nice Answer Enlightened Nice Question Famous Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 69984,183043,476178,Informed,NULL,NULL,0,NULL,NULL 69985,18166,375071,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 69986,107775,850882,Yearling Nice Answer Enlightened Yearling Yearling Scholar,NULL,NULL,0,NULL,NULL 69987,120278,982450,Yearling,NULL,NULL,0,NULL,NULL 69988,672968,1004213,Tumbleweed,NULL,NULL,0,NULL,NULL 69989,27732,694884,NULL,NULL,NULL,0,NULL,NULL 69990,718715,1054961,Nice Answer Enlightened Announcer Announcer Yearling Custodian Yearling Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 69991,279905,802260,NULL,NULL,NULL,0,NULL,NULL 69992,226492,355039,Popular Question Nice Answer Enlightened Popular Question Custodian Yearling Necromancer Necromancer Nice Answer Nice Question Yearling Popular Question Necromancer Popular Question Good Answer Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 69993,201756,117176,NULL,NULL,NULL,0,NULL,NULL 69994,12911,1012061,Yearling Self-Learner Notable Question Critic Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 69995,122743,1546505,NULL,NULL,NULL,0,NULL,NULL 69996,319545,648921,NULL,NULL,NULL,0,NULL,NULL 69997,1036741,560072,NULL,NULL,NULL,0,NULL,NULL 69998,93731,575394,NULL,NULL,NULL,0,NULL,NULL 69999,74329,264512,NULL,NULL,NULL,0,NULL,NULL 70000,2614,266325,NULL,NULL,NULL,0,NULL,NULL 70001,355467,1515404,NULL,NULL,NULL,0,NULL,NULL 70002,61106,1192492,Yearling Peer Pressure Yearling Student,NULL,NULL,0,NULL,NULL 70003,5989,106716,Yearling Yearling Yearling Stellar Question,NULL,NULL,0,NULL,NULL 70004,1034674,771936,Nice Answer Analytical Editor Necromancer Supporter Tag Editor Yearling Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 70005,155630,86155,Custodian Custodian Necromancer Yearling Nice Answer Nice Answer Census,NULL,NULL,0,NULL,NULL 70006,347533,620605,NULL,NULL,NULL,0,NULL,NULL 70007,15335,1241333,Yearling Revival Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 70008,251464,1352019,Famous Question,NULL,NULL,0,NULL,NULL 70009,106763,162100,NULL,NULL,NULL,0,NULL,NULL 70010,16768,763172,NULL,NULL,NULL,0,NULL,NULL 70011,275889,40125,Yearling Tumbleweed silverlight Revival Popular Question Yearling Nice Answer Enlightened Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 70012,363110,847053,Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 70013,3430339,1536242,Custodian Citizen Patrol Revival Yearling Popular Question Caucus Constituent Popular Question Nice Question Tumbleweed Famous Question Caucus Constituent Necromancer Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 70014,1063476,863801,NULL,NULL,NULL,0,NULL,NULL 70015,460276,115845,Good Answer Good Answer Good Answer Good Answer Great Answer Favorite Question Good Answer Guru Popular Question Nice Answer Yearling Notable Question c Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Great Question Nice Answer Enlightened Good Answer Great Answer Guru Nice Answer Popular Question Caucus Nice Answer Great Answer Good Answer Good Answer Good Answer Good Answer Popular Question Good Answer Nice Answer Enlightened Yearling Guru Nice Answer Good Answer Populist Good Answer Guru Caucus Notable Question Constituent Good Answer Good Answer Good Answer Documentation User Announcer Guru Nice Answer Nice Answer Good Answer Popular Question Good Answer Nice Answer Guru Enlightened Nice Answer Enlightened Guru Nice Question Caucus Good Answer Guru Notable Question Yearling Guru Nice Answer Enlightened Great Answer Nice Answer Guru Good Answer Guru Guru Guru Nice Answer Enlightened Famous Question Notable Question Good Answer Nice Answer Guru Nice Answer,NULL,NULL,0,NULL,NULL 70016,113082,111580,NULL,NULL,NULL,0,NULL,NULL 70017,1123334,157949,Notable Question Nice Question Famous Question Nice Question Popular Question Notable Question Good Question Notable Question Autobiographer Notable Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Nice Question Notable Question Notable Question Nice Question Documentation User Self-Learner Popular Question Popular Question Popular Question Caucus Popular Question Notable Question Famous Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 70018,317676,1329760,NULL,NULL,NULL,0,NULL,NULL 70019,218970,253722,iphone Yearling Necromancer Nice Answer Popular Question Yearling ios Guru Yearling,NULL,NULL,0,NULL,NULL 70020,890740,1542074,Informed Scholar Editor Autobiographer Student Popular Question,NULL,NULL,0,NULL,NULL 70021,105231,664116,NULL,NULL,NULL,0,NULL,NULL 70022,42362,636526,NULL,NULL,NULL,0,NULL,NULL 70023,1331881,780286,Popular Question Commentator,NULL,NULL,0,NULL,NULL 70024,3137687,985152,NULL,NULL,NULL,0,NULL,NULL 70025,135557,810409,NULL,NULL,NULL,0,NULL,NULL 70026,26280,1022391,NULL,NULL,NULL,0,NULL,NULL 70027,563390,104775,Popular Question Yearling Popular Question Notable Question Popular Question Taxonomist Nice Question Popular Question Famous Question Yearling Good Answer Popular Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 70028,117517,554819,Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70029,889190,1525332,NULL,NULL,NULL,0,NULL,NULL 70030,1346474,1293466,NULL,NULL,NULL,0,NULL,NULL 70031,157469,532704,Student Famous Question,NULL,NULL,0,NULL,NULL 70032,187836,688487,NULL,NULL,NULL,0,NULL,NULL 70033,833142,734359,Yearling Nice Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 70034,1712513,734359,Yearling Nice Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 70035,2563575,884834,NULL,NULL,NULL,0,NULL,NULL 70036,607487,614559,NULL,NULL,NULL,0,NULL,NULL 70037,256188,1461452,Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 70038,7273,219684,Nice Answer Announcer Yearling Announcer Notable Question Student Yearling Yearling,NULL,NULL,0,NULL,NULL 70039,1126029,988810,Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 70040,1008344,469235,Tumbleweed Student Enthusiast,NULL,NULL,0,NULL,NULL 70041,149471,439982,NULL,NULL,NULL,0,NULL,NULL 70042,16950,636917,Custodian Yearling Good Question Notable Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70043,5123102,545139,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70044,477290,545139,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70045,1567044,1390098,NULL,NULL,NULL,0,NULL,NULL 70046,109562,67641,Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 70047,1901559,67641,Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 70048,481193,1139431,Yearling,NULL,NULL,0,NULL,NULL 70049,633975,986688,NULL,NULL,NULL,0,NULL,NULL 70050,3263605,992573,Popular Question Student,NULL,NULL,0,NULL,NULL 70051,248457,4915,Nice Answer Enlightened django Yearling Popular Question Yearling Popular Question Good Answer Stellar Question Yearling,NULL,NULL,0,NULL,NULL 70052,2713117,790510,NULL,NULL,NULL,0,NULL,NULL 70053,129550,1153787,Civic Duty Informed Autobiographer Yearling Caucus Editor Caucus,NULL,NULL,0,NULL,NULL 70054,170190,956600,Editor,NULL,NULL,0,NULL,NULL 70055,12819,1375435,NULL,NULL,NULL,0,NULL,NULL 70056,201949,530764,NULL,NULL,NULL,0,NULL,NULL 70057,892163,767530,Nice Answer Yearling Populist Yearling Civic Duty Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 70058,10849780,767530,Nice Answer Yearling Populist Yearling Civic Duty Good Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 70059,23295,1083832,NULL,NULL,NULL,0,NULL,NULL 70060,22872,1239183,NULL,NULL,NULL,0,NULL,NULL 70061,100162,122006,Yearling Caucus Constituent Citizen Patrol Custodian Custodian Notable Question,NULL,NULL,0,NULL,NULL 70062,288831,335266,NULL,NULL,NULL,0,NULL,NULL 70063,29240,383214,Curious Caucus Yearling Nice Question Excavator Investor Popular Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 70064,865465,494028,NULL,NULL,NULL,0,NULL,NULL 70065,551955,1481650,NULL,NULL,NULL,0,NULL,NULL 70066,450938,1195720,Popular Question Famous Question Popular Question Popular Question Commentator Custodian Notable Question Peer Pressure Notable Question,NULL,NULL,0,NULL,NULL 70067,30842,313568,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 70068,351194,1408305,NULL,NULL,NULL,0,NULL,NULL 70069,65644,1064870,Scholar Informed Student Teacher Editor,NULL,NULL,0,NULL,NULL 70070,161158,464704,NULL,NULL,NULL,0,NULL,NULL 70071,1431869,1145510,NULL,NULL,NULL,0,NULL,NULL 70072,165122,243709,Yearling Good Question Good Answer Famous Question Popular Question Announcer Famous Question Notable Question Notable Question Notable Question Yearling Popular Question Good Answer Nice Question Popular Question Announcer Announcer Announcer Announcer Yearling Census Notable Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 70073,266118,247038,Yearling Famous Question Popular Question Notable Question Notable Question Nice Answer Good Question Famous Question Yearling Popular Question Notable Question Notable Question Notable Question Yearling Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 70074,569930,711492,NULL,NULL,NULL,0,NULL,NULL 70075,472260,561813,Notable Question,NULL,NULL,0,NULL,NULL 70076,228350,149913,Civic Duty Yearling Notable Question Notable Question Nice Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 70077,1906976,149913,Civic Duty Yearling Notable Question Notable Question Nice Question Famous Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 70078,1200488,152099,Famous Question Popular Question Curious Tumbleweed Notable Question Nice Question,NULL,NULL,0,NULL,NULL 70079,234822,4835,Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70080,49602,162793,Popular Question Necromancer Necromancer Yearling Nice Answer Nice Answer Announcer Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70081,4400757,187481,NULL,NULL,NULL,0,NULL,NULL 70082,33323,252046,Nice Answer Yearling Nice Answer Nice Answer Enlightened Guru Yearling Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70083,208720,736019,NULL,NULL,NULL,0,NULL,NULL 70084,50924,1037216,Yearling Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 70085,532259,286294,Yearling Famous Question Popular Question Caucus Constituent Yearling Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 70086,269658,1441392,NULL,NULL,NULL,0,NULL,NULL 70087,28504,619306,NULL,NULL,NULL,0,NULL,NULL 70088,159853,1318648,Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Nice Answer Notable Question Nice Question Census Popular Question Caucus Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 70089,611095,1204635,NULL,NULL,NULL,0,NULL,NULL 70090,2066,916369,NULL,NULL,NULL,0,NULL,NULL 70091,234459,629842,Supporter Necromancer,NULL,NULL,0,NULL,NULL 70092,148172,397853,NULL,NULL,NULL,0,NULL,NULL 70093,218007,633473,Enthusiast Yearling,NULL,NULL,0,NULL,NULL 70094,397357,1565740,Notable Question,NULL,NULL,0,NULL,NULL 70095,859061,596425,NULL,NULL,NULL,0,NULL,NULL 70096,95252,596425,NULL,NULL,NULL,0,NULL,NULL 70097,1371605,428513,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70098,184783,38406,NULL,NULL,NULL,0,NULL,NULL 70099,1881016,691076,NULL,NULL,NULL,0,NULL,NULL 70100,358619,1009183,NULL,NULL,NULL,0,NULL,NULL 70101,371812,681249,NULL,NULL,NULL,0,NULL,NULL 70102,46743,1261655,NULL,NULL,NULL,0,NULL,NULL 70103,173298,595021,NULL,NULL,NULL,0,NULL,NULL 70104,18069,181866,NULL,NULL,NULL,0,NULL,NULL 70105,159248,98855,Necromancer Great Answer Civic Duty Yearling Good Answer Nice Answer Enlightened Good Answer Guru Informed Yearling Revival Famous Question Good Question Revival Tumbleweed Notable Question Yearling Announcer Revival,NULL,NULL,0,NULL,NULL 70106,563236,1296479,Teacher Commentator,NULL,NULL,0,NULL,NULL 70107,79145,26183,NULL,NULL,NULL,0,NULL,NULL 70108,547994,833622,Guru Good Answer Revival Good Answer Great Answer Good Answer Yearling Enlightened Announcer Good Answer Guru Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Great Answer Necromancer Great Answer Pundit Announcer Yearling Nice Answer Great Answer Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70109,181480,1155560,Scholar,NULL,NULL,0,NULL,NULL 70110,245724,807633,NULL,NULL,NULL,0,NULL,NULL 70111,1392258,1209851,NULL,NULL,NULL,0,NULL,NULL 70112,173244,277940,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70113,85469,1054082,NULL,NULL,NULL,0,NULL,NULL 70114,545537,37298,Favorite Question Famous Question Popular Question Notable Question Popular Question Famous Question Great Question Nice Answer Popular Question Notable Question Popular Question Nice Question Popular Question Revival Necromancer Notable Question Popular Question Famous Question Famous Question Yearling Notable Question Famous Question Nice Answer Enlightened Good Question Nice Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Famous Question Nice Question Popular Question Enlightened Yearling Good Question Nice Answer Popular Question Popular Question Popular Question Custodian Caucus Famous Question Popular Question Popular Question Popular Question Famous Question Notable Question Nice Answer Yearling Notable Question Famous Question,NULL,pI realize this is bit late but ve had success with annotating timestamp column with ppre code name timestamp columnDefinition TIMESTAMP DEFAULT CURRENT TIMESTAMP code prepThis should also work with codeCURRENT DATE code and codeCURRENT TIME code using JPA Hibernate with Oracle so YMMV This worked for us We combined it with insertable false updatable false,0,NULL,NULL 70115,234723,1164573,Notable Question Yearling Notable Question Notable Question Yearling Popular Question Good Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70116,47666,708005,NULL,NULL,NULL,0,NULL,NULL 70117,190504,443356,Teacher,NULL,NULL,0,NULL,NULL 70118,3352935,443356,Teacher,NULL,NULL,0,NULL,NULL 70119,234767,1115031,NULL,NULL,NULL,0,NULL,NULL 70120,322385,161455,Good Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Caucus Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened c++ Notable Question Good Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Census Nice Answer Pundit Nice Answer Caucus Announcer Nice Answer Nice Answer c# Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70121,18216,58262,Famous Question Yearling Census Yearling Nice Answer Good Answer Nice Question,NULL,NULL,0,NULL,NULL 70122,854033,993139,NULL,NULL,NULL,0,NULL,NULL 70123,273933,674250,Popular Question Editor Commentator Curious,NULL,NULL,0,NULL,NULL 70124,209970,309093,Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 70125,214794,379941,Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Caucus Civic Duty Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70126,275550,90597,Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 70127,126937,499975,NULL,NULL,NULL,0,NULL,NULL 70128,1495585,1039396,Revival,NULL,NULL,0,NULL,NULL 70129,7872,1404620,NULL,NULL,NULL,0,NULL,NULL 70130,21936,205651,NULL,NULL,NULL,0,NULL,NULL 70131,892919,196406,Popular Question Yearling,NULL,NULL,0,NULL,NULL 70132,178526,944096,Yearling Peer Pressure Organizer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70133,47847,382985,NULL,NULL,NULL,0,NULL,NULL 70134,162520,8162,NULL,NULL,NULL,0,NULL,NULL 70135,2752565,1363815,Excavator Announcer Nice Answer Enlightened Yearling Necromancer Revival Caucus Documentation User Announcer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 70136,228274,1219566,Autobiographer,NULL,NULL,0,NULL,NULL 70137,20985,1429036,NULL,NULL,NULL,0,NULL,NULL 70138,727236,289928,Popular Question,NULL,NULL,0,NULL,NULL 70139,280642,453150,NULL,NULL,NULL,0,NULL,NULL 70140,100123,918883,NULL,NULL,NULL,0,NULL,NULL 70141,48545,766923,Famous Question Good Answer Custodian Yearling Popular Question Necromancer Necromancer Nice Answer Necromancer Good Answer ruby Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 70142,1007127,1505925,NULL,NULL,NULL,0,NULL,NULL 70143,133906,646808,NULL,NULL,NULL,0,NULL,NULL 70144,202603,1507542,NULL,NULL,NULL,0,NULL,NULL 70145,440626,1373916,NULL,NULL,NULL,0,NULL,NULL 70146,69869,126346,Yearling Organizer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70147,914168,460368,Notable Question Guru Yearling Caucus Constituent Announcer Caucus Constituent Nice Answer Yearling Nice Answer Famous Question Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Nice Answer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70148,88856,246142,Yearling Excavator Notable Question Yearling Nice Question Yearling Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 70149,785523,141245,Enthusiast Commentator,NULL,NULL,0,NULL,NULL 70150,194545,387358,Yearling Popular Question Notable Question Popular Question Famous Question Good Question Yearling Favorite Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70151,151636,1503236,NULL,NULL,NULL,0,NULL,NULL 70152,227212,1199489,NULL,NULL,NULL,0,NULL,NULL 70153,18622,468843,NULL,NULL,NULL,0,NULL,NULL 70154,696,204131,Critic Popular Question Announcer,NULL,NULL,0,NULL,NULL 70155,439894,631309,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 70156,12611,936095,NULL,NULL,NULL,0,NULL,NULL 70157,449082,482519,Yearling Caucus Yearling Caucus Good Answer Yearling vim,NULL,NULL,0,NULL,NULL 70158,720197,482519,Yearling Caucus Yearling Caucus Good Answer Yearling vim,NULL,NULL,0,NULL,NULL 70159,79101,620836,NULL,NULL,NULL,0,NULL,NULL 70160,84710,1291367,Yearling Good Answer,NULL,NULL,0,NULL,NULL 70161,307080,1016298,NULL,NULL,NULL,0,NULL,NULL 70162,210303,1351893,NULL,NULL,NULL,0,NULL,NULL 70163,442965,821941,NULL,NULL,NULL,0,NULL,NULL 70164,1024904,918422,NULL,NULL,NULL,0,NULL,NULL 70165,1082417,543700,Yearling Popular Question Popular Question Inquisitive Revival Yearling Notable Question Revival Popular Question Notable Question Popular Question Nice Answer Famous Question Popular Question,NULL,NULL,0,NULL,NULL 70166,380134,879769,NULL,NULL,NULL,0,NULL,NULL 70167,142895,976420,NULL,NULL,NULL,0,NULL,NULL 70168,114780,1330637,NULL,NULL,NULL,0,NULL,NULL 70169,114721,869592,NULL,NULL,NULL,0,NULL,NULL 70170,336581,736854,NULL,NULL,NULL,0,NULL,NULL 70171,5687374,263119,NULL,NULL,NULL,0,NULL,NULL 70172,733423,263119,NULL,NULL,NULL,0,NULL,NULL 70173,1353789,190806,Yearling Popular Question Custodian Necromancer Famous Question Nice Question Popular Question Nice Question Good Question Yearling Famous Question Nice Answer Notable Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 70174,772810,303825,Yearling,NULL,NULL,0,NULL,NULL 70175,94514,390076,NULL,NULL,NULL,0,NULL,NULL 70176,12690,1321456,Curious Popular Question,NULL,NULL,0,NULL,NULL 70177,212434,1262351,NULL,NULL,NULL,0,NULL,NULL 70178,255209,1117499,NULL,NULL,NULL,0,NULL,NULL 70179,605562,1556551,NULL,NULL,NULL,0,NULL,NULL 70180,31909,762054,NULL,NULL,NULL,0,NULL,NULL 70181,7904,1029838,NULL,NULL,NULL,0,NULL,NULL 70182,265967,68512,Good Question,NULL,NULL,0,NULL,NULL 70183,115592,920848,Famous Question Notable Question Good Question Popular Question Yearling Good Question Famous Question Famous Question Nice Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70184,213012,1253200,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 70185,151544,376535,Nice Question Good Answer Popular Question Good Answer Nice Answer Nice Question Popular Question Nice Answer Enlightened Good Answer Famous Question Guru Nice Question Nice Answer Enlightened Nice Answer Enlightened Yearling Notable Question Nice Answer Guru Popular Question javascript Nice Answer Nice Question Nice Answer Good Answer Good Question Favorite Question Notable Question Good Answer Popular Question Notable Question Good Answer Nice Answer Notable Question Nice Answer Notable Question Nice Answer Nice Answer Famous Question Guru Famous Question Good Answer Yearling Notable Question Good Answer Popular Question Nice Answer Popular Question Nice Answer Popular Question Guru Good Answer Notable Question Notable Question Nice Answer Nice Answer Notable Question Nice Question Good Question Census Nice Answer Necromancer Nice Question Popular Question Popular Question Necromancer Popular Question Nice Answer Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Notable Question Great Answer Guru Yearling Nice Answer Good Answer python Good Answer,NULL,NULL,0,NULL,NULL 70186,1008845,1164779,NULL,NULL,NULL,0,NULL,NULL 70187,1506037,874951,NULL,NULL,NULL,0,NULL,NULL 70188,299284,182584,Nice Answer Nice Answer Announcer,NULL,NULL,0,NULL,NULL 70189,71016,1304746,Supporter,NULL,NULL,0,NULL,NULL 70190,164969,1122162,NULL,NULL,NULL,0,NULL,NULL 70191,2036151,1044474,NULL,NULL,NULL,0,NULL,NULL 70192,247715,1385572,Teacher Commentator Informed Editor Yearling Citizen Patrol Mortarboard Critic Supporter Yearling Yearling Custodian Yearling Enthusiast php Tenacious Organizer Unsung Hero Nice Answer Explainer Fanatic Caucus Excavator Yearling Custodian Civic Duty Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,1,NULL,Composer Fatal error Declaration of Fxp must be compatible with AbstractAssetsRepository php on line 334 php linux laravel command line composer php pI updated composer ppre codecomposer self update code prepI installed the newer version of the plugin ppre codecomposer global require fxp composer asset plugin code prepI try to install Laravel pp strongcomposer global require laravel installer strong ppre codeChanged current directory to Users Arthur AppData Roaming Composer Fatal error Declaration of Fxp Composer AssetPlugin Repository AbstractAssetsRe pository search must be compatible with Composer Repository RepositoryInterfa ce search query mode type NULL in Users Arthur AppData Roaming omposer vendor fxp composer asset plugin Repository AbstractAssetsRepository php on line 334 code prepNow all commands in composer not working ppre codecomposer lt any command gt code prepPlease help me to resolve it pYou can temporarily disable composer plugins with the code no plugins code option ppre codecomposer global remove fxp composer asset plugin no plugins code prepSee Composer docs href https getcomposer org doc 03 cli md global options rel noreferrer Global options pblockquote no plugins Disables plugins blockquote 70193,271505,225386,Necromancer Yearling Nice Answer Custodian Citizen Patrol Popular Question Nice Question Yearling Necromancer Notable Question Famous Question Popular Question Nice Answer Necromancer Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 70194,664274,829304,NULL,NULL,NULL,0,NULL,NULL 70195,349912,203173,Yearling Informed Autobiographer Necromancer Caucus Constituent Custodian Caucus Custodian Caucus,NULL,NULL,0,NULL,NULL 70196,102379,128661,Revival Yearling Good Answer Yearling Guru Custodian Yearling,NULL,pAssuming your URL is passed as first parameter to the script ppre code bin bash extract the protocolproto echo grep sed remove the protocolurl echo proto extract the user if any user echo url grep cut f1 extract the hosthost echo url user cut f1 by request try to extract the portport echo host sed extract the path if any path echo url grep cut f2 echo url url echo proto proto echo user user echo host host echo port port echo path path code prepI must admit this is not the cleanest solution but it doesn rely on another scriptinglanguage like perl or python Providing solution using one of them would produce cleaner results ppUsing your example the results are ppre codeurl user net some random path proto sftp user user host host net port path some random path code prepThis will also work for URLs without protocol username or path In this case the respective variable will contain an empty string pp strong EDIT strong brIf your bash version won cope with the substitutions proto try this ppre code bin bash extract the protocolproto echo grep sed remove the protocol updatedurl echo sed proto extract the user if any user echo url grep cut f1 extract the host updatedhost echo url sed user cut f1 by request try to extract the portport echo host sed extract the path if any path echo url grep cut f2 code pre updated to extract the port which is slightly more complex,0,NULL,NULL 70197,2100695,185908,Yearling Nice Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 70198,1326708,747194,Commentator,NULL,NULL,0,NULL,NULL 70199,16165,1497601,NULL,NULL,NULL,0,NULL,NULL 70200,2142294,900088,NULL,NULL,NULL,0,NULL,NULL 70201,850537,1188294,NULL,NULL,NULL,0,NULL,NULL 70202,335835,200603,Critic Yearling Revival Citizen Patrol,NULL,NULL,0,NULL,NULL 70203,934397,689471,NULL,NULL,NULL,0,NULL,NULL 70204,47580,689471,NULL,NULL,NULL,0,NULL,NULL 70205,309598,515335,Popular Question,NULL,NULL,0,NULL,NULL 70206,285219,399550,Popular Question,NULL,NULL,0,NULL,NULL 70207,492849,598231,NULL,NULL,NULL,0,NULL,NULL 70208,127028,932130,Notable Question Enthusiast Supporter,NULL,NULL,0,NULL,NULL 70209,202402,858926,Yearling Notable Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 70210,1004567,1179429,Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70211,435520,618,Good Answer Nice Question Nice Answer Yearling Nice Question Famous Question Guru Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 70212,178782,870538,NULL,NULL,NULL,0,NULL,NULL 70213,50943,1412655,Yearling Nice Answer Nice Answer Yearling Good Answer Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 70214,77837,1224904,NULL,NULL,NULL,0,NULL,NULL 70215,83560,478578,Popular Question Critic Nice Question Yearling,NULL,NULL,0,NULL,NULL 70216,116020,1176858,NULL,NULL,NULL,0,NULL,NULL 70217,1376954,1440074,Editor Commentator Popular Question Teacher,NULL,NULL,0,NULL,NULL 70218,312844,1492597,NULL,NULL,NULL,0,NULL,NULL 70219,298245,805948,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70220,33187,876545,NULL,NULL,NULL,0,NULL,NULL 70221,117204,1494298,NULL,NULL,NULL,0,NULL,NULL 70222,2795634,1087368,NULL,NULL,NULL,0,NULL,NULL 70223,195807,791856,NULL,NULL,NULL,0,NULL,NULL 70224,1133498,711895,NULL,NULL,NULL,0,NULL,NULL 70225,504973,271146,Revival Yearling Revival Notable Question Necromancer,NULL,NULL,0,NULL,NULL 70226,22012,889582,Student,NULL,NULL,0,NULL,NULL 70227,733390,956143,Popular Question,NULL,NULL,0,NULL,NULL 70228,1106409,1092516,Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 70229,115301,805377,NULL,NULL,NULL,0,NULL,NULL 70230,426711,1161001,NULL,NULL,NULL,0,NULL,NULL 70231,239533,850011,NULL,NULL,NULL,0,NULL,NULL 70232,125880,201014,Necromancer,NULL,NULL,0,NULL,NULL 70233,38570,603270,Great Question Pundit Yearling Revival android Guru Notable Question Self-Learner Popular Question Popular Question Announcer Nice Question Nice Question Announcer Famous Question Nice Question Caucus Announcer Nice Answer Enlightened Famous Question Yearling Stellar Question Popular Question Popular Question Popular Question Nice Answer Popular Question Good Answer Necromancer Announcer Caucus Popular Question Revival Popular Question Notable Question Popular Question Popular Question Famous Question java Yearling Notable Question Good Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 70234,881940,1460531,NULL,NULL,NULL,0,NULL,NULL 70235,72816,1246389,Nice Answer Enlightened Student,NULL,NULL,0,NULL,NULL 70236,408422,474002,Popular Question Nice Answer Yearling Notable Question Announcer Necromancer Caucus Revival Notable Question Revival Popular Question Yearling Announcer Nice Question Nice Answer Nice Question Revival Yearling,NULL,NULL,0,NULL,NULL 70237,9535,1262002,NULL,NULL,NULL,0,NULL,NULL 70238,87979,7709,Notable Question Yearling Great Answer Popular Question Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70239,472332,1027568,Custodian Excavator Nice Answer Enlightened Proofreader Civic Duty Informed Yearling Caucus Constituent Reviewer Explainer Custodian Good Answer Caucus Yearling Nice Answer Enlightened Census Yearling,NULL,NULL,0,NULL,NULL 70240,201070,146953,Famous Question Good Question,NULL,NULL,0,NULL,NULL 70241,374502,1028770,NULL,NULL,NULL,0,NULL,NULL 70242,62849,252348,Yearling Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 70243,150368,1178191,Revival Revival Popular Question Self-Learner Caucus Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70244,101767,601793,Peer Pressure,NULL,NULL,0,NULL,NULL 70245,3897212,790520,NULL,NULL,NULL,0,NULL,NULL 70246,1168385,1281715,NULL,NULL,NULL,0,NULL,NULL 70247,144279,585725,Yearling Curious Good Answer Yearling Custodian Great Answer Announcer Necromancer Necromancer Nice Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 70248,39426,123819,Yearling,NULL,NULL,0,NULL,NULL 70249,111420,1194324,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70250,342009,1431862,NULL,NULL,NULL,0,NULL,NULL 70251,1111207,860018,Student Necromancer,NULL,NULL,0,NULL,NULL 70252,9350,1275065,Yearling Excavator Revival Yearling Scholar Custodian Civic Duty Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70253,177417,1054195,Critic Caucus Popular Question Student Scholar Caucus Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70254,40971,390052,NULL,NULL,NULL,0,NULL,NULL 70255,202976,1262832,Critic,NULL,NULL,0,NULL,NULL 70256,157457,908231,Necromancer,NULL,NULL,0,NULL,NULL 70257,1394498,750086,Notable Question,NULL,NULL,0,NULL,NULL 70258,411150,108354,Good Answer Yearling Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Custodian Yearling Nice Answer javascript Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70259,28793,707848,Yearling Tumbleweed Student Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 70260,250469,1212944,NULL,NULL,NULL,0,NULL,NULL 70261,482865,881986,Critic Popular Question,NULL,NULL,0,NULL,NULL 70262,280656,1539572,NULL,NULL,NULL,0,NULL,NULL 70263,319283,298593,Famous Question Yearling Popular Question Custodian Notable Question Famous Question Notable Question Custodian Custodian Nice Answer,NULL,pI solved this issue on Yosemite by both installing and linking codelibxml2 code and codelibxslt code through brew ppre codebrew install libxml2brew install libxsltbrew link libxml2 forcebrew link libxslt force code prepIf you have solved the problem using this method but it pops up again at later time you might need to run this strongbefore strong the four lines above ppre codebrew unlink libxml2brew unlink libxslt code prepIf you are having permission errors with Homebrew especially on El Capitan href https github com Homebrew homebrew blob master share doc homebrew El Capitan and Homebrew md rel noreferrer this is helpful document In essence regardless of OS version try running ppre codesudo chown whoami admin usr local code pre This seems dangerous but it the only solution that actually worked livinontheedge,0,NULL,NULL 70264,105955,319006,Necromancer Popular Question Great Question Popular Question Notable Question Yearling Popular Question Notable Question Great Answer Guru Pundit Popular Question Nice Question Yearling Good Question Popular Question Popular Question Nice Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70265,155612,1536439,Nice Answer,NULL,NULL,0,NULL,NULL 70266,227204,1178822,Popular Question Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 70267,7746,995735,Great Answer Necromancer Yearling Caucus Constituent Caucus Constituent Populist Documentation User Yearling Census Good Answer Caucus Constituent Enthusiast Yearling,NULL,NULL,0,NULL,NULL 70268,910093,1441266,NULL,NULL,NULL,0,NULL,NULL 70269,235050,1432557,NULL,NULL,NULL,0,NULL,NULL 70270,498268,9611,Good Question Popular Question Nice Question Notable Question Popular Question Popular Question Guru Nice Question Notable Question Popular Question Popular Question Notable Question Nice Answer Popular Question Guru Nice Answer Notable Question Notable Question Popular Question Nice Answer Nice Answer Nice Answer Yearling Notable Question Good Answer Good Question Good Question Notable Question Good Question Nice Answer Notable Question Nice Answer Enlightened Notable Question Notable Question Nice Question Census Popular Question Nice Answer Enlightened Good Answer Notable Question Nice Answer Enlightened Good Answer Popular Question Notable Question Great Question Notable Question Yearling Popular Question Notable Question Famous Question Notable Question Popular Question Nice Question Census Famous Question Nice Question Good Question Popular Question Good Question Guru Popular Question Nice Question Popular Question Nice Answer Nice Answer Enlightened Famous Question Popular Question Popular Question Nice Answer Nice Answer Notable Question Popular Question Nice Question Famous Question Nice Answer Good Answer Nice Question Guru Yearling Notable Question Popular Question Good Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 70271,483064,480748,NULL,NULL,NULL,0,NULL,NULL 70272,206131,104015,Great Question Nice Question Good Question Good Question Nice Question Famous Question Great Question Favorite Question Notable Question Nice Question Popular Question Favorite Question Favorite Question Favorite Question Good Question Great Question Nice Question Great Question Yearling Notable Question Famous Question Notable Question Notable Question Good Question Nice Question Nice Question Notable Question Famous Question Good Question Popular Question Famous Question Popular Question Great Question Good Question Good Question Famous Question Necromancer Popular Question Nice Question Nice Question Great Question Famous Question Good Question Famous Question Notable Question Famous Question Famous Question Popular Question Notable Question Great Question Nice Question Popular Question Famous Question Nice Question Notable Question Notable Question Great Question Popular Question Famous Question Nice Question Famous Question Great Question Popular Question Good Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Great Question Great Question Famous Question Great Question Famous Question Favorite Question Favorite Question Nice Question Good Question Nice Question Famous Question Nice Question Nice Question Nice Question Notable Question Good Question Good Question Great Question Good Question Famous Question Yearling Nice Question Good Question Famous Question Stellar Question Stellar Question,NULL,NULL,0,NULL,NULL 70273,1564841,965147,NULL,NULL,NULL,0,NULL,NULL 70274,167924,945614,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 70275,276747,131583,Yearling Caucus Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 70276,1554799,311927,NULL,NULL,NULL,0,NULL,NULL 70277,232479,494279,NULL,NULL,NULL,0,NULL,NULL 70278,1472644,433879,Good Question Famous Question Nice Question Nice Question Famous Question Nice Answer Notable Question Yearling jquery html cakephp Popular Question Nice Answer Enlightened Good Answer Yearling javascript Nice Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Famous Question Nice Answer Nice Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 70279,274981,824071,NULL,NULL,NULL,0,NULL,NULL 70280,266021,560750,NULL,NULL,NULL,0,NULL,NULL 70281,43256,1455150,Yearling Nice Question Famous Question Popular Question Custodian Commentator Caucus Yearling Critic Good Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 70282,109577,1251340,Popular Question,NULL,NULL,0,NULL,NULL 70283,252180,245383,NULL,NULL,NULL,0,NULL,NULL 70284,471116,779167,NULL,NULL,NULL,0,NULL,NULL 70285,1118962,1162278,Popular Question Popular Question Informed Notable Question Yearling Popular Question Popular Question Revival Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70286,8793,138443,NULL,NULL,NULL,0,NULL,NULL 70287,144620,235277,Yearling,NULL,NULL,0,NULL,NULL 70288,426783,1316966,NULL,NULL,NULL,0,NULL,NULL 70289,297926,1515967,NULL,NULL,NULL,0,NULL,NULL 70290,1858641,1551107,Popular Question Editor Commentator Tumbleweed Caucus,NULL,NULL,0,NULL,NULL 70291,131638,839503,NULL,NULL,NULL,0,NULL,NULL 70292,915016,109000,Popular Question Explainer Nice Answer Yearling Revival Necromancer Popular Question Nice Answer Enlightened Custodian Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 70293,165145,924500,NULL,NULL,NULL,0,NULL,NULL 70294,105773,235055,Famous Question Notable Question Custodian Custodian Great Question Popular Question Caucus Yearling Census Notable Question Caucus Famous Question Great Question Notable Question Custodian Custodian Yearling Popular Question Good Question Popular Question Citizen Patrol Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 70295,4465984,235055,Famous Question Notable Question Custodian Custodian Great Question Popular Question Caucus Yearling Census Notable Question Caucus Famous Question Great Question Notable Question Custodian Custodian Yearling Popular Question Good Question Popular Question Citizen Patrol Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 70296,535041,235908,sml Notable Question Tumbleweed Nice Answer Strunk & White Necromancer Caucus Constituent Yearling Self-Learner Popular Question smlnj Custodian Necromancer Popular Question Revival Announcer Documentation User Necromancer Good Answer Yearling Census Custodian Announcer Electorate Caucus Refiner Notable Question Sportsmanship Nice Answer Enlightened Announcer haskell Nice Answer ml Nice Answer sml,NULL,NULL,0,NULL,NULL 70297,356051,1101534,Excavator Great Answer Yearling html Popular Question Notable Question Documentation User Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 70298,2405,254742,NULL,NULL,NULL,0,NULL,NULL 70299,46022,1013462,NULL,NULL,NULL,0,NULL,NULL 70300,9494,319598,Notable Question,NULL,NULL,0,NULL,NULL 70301,4878668,1475646,Editor Teacher Popular Question,NULL,NULL,0,NULL,NULL 70302,1347942,1114404,NULL,NULL,NULL,0,NULL,NULL 70303,932116,487894,Custodian Nice Question Yearling Caucus Caucus Custodian Documentation User Yearling Famous Question Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 70304,664865,487894,Custodian Nice Question Yearling Caucus Caucus Custodian Documentation User Yearling Famous Question Popular Question Popular Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 70305,164977,309374,Yearling Nice Answer Famous Question Popular Question Great Answer Notable Question Yearling Notable Question Census ruby-on-rails Yearling,NULL,NULL,0,NULL,NULL 70306,139155,170589,Popular Question Popular Question Nice Answer Yearling Popular Question Great Question Yearling Notable Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 70307,516825,340785,NULL,NULL,NULL,0,NULL,NULL 70308,900507,626038,Commentator Supporter Popular Question,NULL,NULL,0,NULL,NULL 70309,61022,1547498,Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Popular Question Caucus Custodian,NULL,NULL,0,NULL,NULL 70310,471097,579998,Nice Answer Enlightened Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 70311,415869,880823,NULL,NULL,NULL,0,NULL,NULL 70312,1311632,1258659,NULL,NULL,NULL,0,NULL,NULL 70313,1518318,1452348,NULL,NULL,NULL,0,NULL,NULL 70314,1315237,6466,NULL,NULL,NULL,0,NULL,NULL 70315,1129865,6328,Popular Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 70316,176691,912712,Notable Question Informed Yearling Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70317,221693,652647,Citizen Patrol Self-Learner Popular Question Nice Answer Yearling Notable Question Yearling Census,NULL,NULL,0,NULL,NULL 70318,10396,476824,NULL,NULL,NULL,0,NULL,NULL 70319,613228,455447,NULL,NULL,NULL,0,NULL,NULL 70320,747125,1168774,NULL,NULL,NULL,0,NULL,NULL 70321,89888,1094109,Teacher Necromancer Supporter Student Scholar Commentator,NULL,NULL,0,NULL,NULL 70322,1103734,1158382,NULL,NULL,NULL,0,NULL,NULL 70323,385135,309793,Notable Question Yearling Popular Question Popular Question Yearling Popular Question Caucus Popular Question Caucus Yearling Popular Question Taxonomist Notable Question,NULL,NULL,0,NULL,NULL 70324,978882,1495075,NULL,NULL,NULL,0,NULL,NULL 70325,8847,1288590,NULL,NULL,NULL,0,NULL,NULL 70326,18930,778678,NULL,NULL,NULL,0,NULL,NULL 70327,2712409,778678,NULL,NULL,NULL,0,NULL,NULL 70328,27926,1077445,Caucus Custodian,NULL,NULL,0,NULL,NULL 70329,406447,422395,Student,NULL,NULL,0,NULL,NULL 70330,286569,890786,NULL,NULL,NULL,0,NULL,NULL 70331,291410,588585,Necromancer Yearling Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 70332,318560,1285178,NULL,NULL,NULL,0,NULL,NULL 70333,2237489,475669,NULL,NULL,NULL,0,NULL,NULL 70334,552239,1369342,Notable Question Good Answer Notable Question Populist Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Nice Answer Yearling Popular Question Notable Question Great Question Revival Yearling Good Answer Nice Answer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 70335,360704,1541507,Popular Question Custodian Notable Question Yearling Necromancer Notable Question Famous Question Popular Question Yearling Nice Answer Great Answer Good Question Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 70336,745487,1366654,Popular Question Notable Question Notable Question Excavator Famous Question,NULL,NULL,0,NULL,NULL 70337,452685,1271617,Custodian Promoter Enthusiast Benefactor Student Scholar Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70338,562932,721998,Popular Question Yearling Famous Question Notable Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Yearling Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Promoter Nice Question Popular Question Yearling Caucus Constituent Popular Question Popular Question Notable Question Nice Answer Popular Question Popular Question Popular Question Favorite Question Good Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 70339,577091,82119,Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70340,101905,479016,Yearling Yearling Yearling Caucus Great Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 70341,16447,17597,Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 70342,23156,913751,Yearling Necromancer Nice Answer,NULL,FileNotFoundException while getting the InputStream object from HttpURLConnection java inputstream httpurlconnection filenotfoundexception pI am trying to send post request to url using HttpURLConnection for using cUrl in java The content of the request is xml and at the end point the application processes the xml and stores record to the database and then sends back response in form of xml string The app is hosted on apache tomcat locally ppWhen execute this code from the terminal row gets added to the db as expected But an exception is thrown as follows while getting the InputStream from the connection ppre codejava io FileNotFoundException http localhost 8080 myapp service generate at sun net www protocol http HttpURLConnection getInputStream HttpURLConnection java 1401 at org kodeplay helloworld HttpCurl main HttpCurl java 30 code prepHere is the code ppre codepublic class HttpCurl public static void main String args HttpURLConnection con try con HttpURLConnection new URL http localhost 8080 myapp service generate openConnection con setRequestMethod POST con setDoOutput true con setDoInput true File xmlFile new File test xml String xml ReadWriteTextFile getContents xmlFile con getOutputStream write xml getBytes UTF InputStream response con getInputStream BufferedReader reader new BufferedReader new InputStreamReader response for String line line reader readLine null System out println line reader close catch FileNotFoundException printStackTrace catch MalformedURLException printStackTrace catch IOException printStackTrace code prepIts confusing because the exception is traced to the line codeInputStream response con getInputStream code and there doesn seem to be any file involved for FileNotFoundException ppWhen try to open connection to an xml file directly it doesn throw this exception ppThe service app uses spring framework and Jaxb2Marshaller to create the response xml ppThe class ReadWriteTextFile is taken from href http www javapractices com topic TopicAction do Id 42 rel noreferrer here ppThanks pp strongEdit strongWell it saves the data in the DB and sends back 404 response status code at the same time ppI also tried doing curl using php and print out the codeCURLINFO HTTP CODE code which turns out to be 200 ppAny ideas on how do go about debugging this Both service and client are on the local server pp strongResolved strongI could solve the problem after referring to an href https stackoverflow com questions 941628 urlconnection filenotfoundexception for non standard http port sources 2274535 2274535 answer on SO itself ppIt seems HttpURLConnection always returns 404 response when connecting to url with non standard port ppAdding these lines solved it ppre codecon setRequestProperty User Agent Mozilla compatible con setRequestProperty Accept code pre Possible duplicate of Read error response body in Java http stackoverflow com questions 613307 read error response body in java,0,NULL,NULL 70343,805061,1015757,NULL,NULL,NULL,0,NULL,NULL 70344,141264,822317,Custodian Unsung Hero Civic Duty Yearling Tumbleweed Nice Answer Organizer Caucus Good Answer Nice Answer Good Answer Nice Answer Yearling Caucus Constituent Caucus Announcer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70345,4558,296263,Nice Question,NULL,NULL,0,NULL,NULL 70346,444366,935028,NULL,NULL,NULL,0,NULL,NULL 70347,32848,423625,Teacher,NULL,NULL,0,NULL,NULL 70348,42905,1350558,NULL,NULL,NULL,0,NULL,NULL 70349,173789,754395,NULL,NULL,NULL,0,NULL,NULL 70350,1115383,427060,NULL,NULL,NULL,0,NULL,NULL 70351,420766,1182739,NULL,NULL,NULL,0,NULL,NULL 70352,331243,352010,Critic Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 70353,601357,1080897,NULL,NULL,NULL,0,NULL,NULL 70354,38044,492865,Custodian Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Organizer Yearling Custodian Guru Nice Answer Enlightened Nice Answer Enlightened Caucus Constituent iphone Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 70355,325138,1537861,NULL,NULL,NULL,0,NULL,NULL 70356,769847,846702,Scholar,NULL,NULL,0,NULL,NULL 70357,1116584,846702,Scholar,NULL,NULL,0,NULL,NULL 70358,1287000,1208734,Yearling Caucus,NULL,NULL,0,NULL,NULL 70359,131077,515500,NULL,NULL,NULL,0,NULL,NULL 70360,51228,1160330,NULL,NULL,NULL,0,NULL,NULL 70361,635650,98831,Notable Question,NULL,NULL,0,NULL,NULL 70362,473236,1153942,NULL,NULL,NULL,0,NULL,NULL 70363,295132,408205,NULL,NULL,NULL,0,NULL,NULL 70364,206125,1104312,NULL,NULL,NULL,0,NULL,NULL 70365,267335,386737,NULL,NULL,NULL,0,NULL,NULL 70366,357594,1101148,Notable Question Popular Question Caucus Yearling Nice Question Documentation User Caucus,NULL,NULL,0,NULL,NULL 70367,383970,448328,NULL,NULL,NULL,0,NULL,NULL 70368,1067863,554300,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70369,105257,894534,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70370,439164,591318,Yearling Yearling,NULL,NULL,0,NULL,NULL 70371,1217094,604241,NULL,NULL,NULL,0,NULL,NULL 70372,2541736,343370,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 70373,35915,1141583,Notable Question,NULL,NULL,0,NULL,NULL 70374,32950,347631,Enthusiast,NULL,NULL,0,NULL,NULL 70375,331945,1084497,Necromancer Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70376,75272,566415,NULL,NULL,NULL,0,NULL,NULL 70377,1351933,421104,Popular Question,NULL,NULL,0,NULL,NULL 70378,262082,122736,Great Answer Custodian Yearling Yearling Promoter Student Yearling,NULL,NULL,0,NULL,NULL 70379,19331,995041,Investor Altruist Popular Question Self-Learner Notable Question Yearling Notable Question Caucus Documentation User Yearling Caucus Nice Answer Enlightened Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 70380,686923,45946,Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 70381,154157,897894,Popular Question,NULL,NULL,0,NULL,NULL 70382,1925183,390230,Popular Question Popular Question Famous Question Favorite Question Yearling Nice Question Famous Question Popular Question Guru Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70383,330426,1066748,Necromancer,NULL,NULL,0,NULL,NULL 70384,631484,1520781,NULL,NULL,NULL,0,NULL,NULL 70385,17250,850996,Necromancer Nice Answer Yearling Nice Answer Custodian Popular Question Announcer Announcer Yearling Announcer Documentation User Great Answer Announcer Custodian Yearling Necromancer,NULL,h1A more correct solution h1p emsince dates naturally have time zone information which can span regions with different day light savings adjustments em ppPrevious answers to this question don account for cases where the two dates in question span daylight saving time DST change The date on which the DST change happens will have duration in milliseconds which is code 1000 60 60 24 code so the typical calculation will fail ppYou can work around this by first normalizing the two dates to UTC and then calculating the difference between those two UTC dates ppNow the solution can be written as ppre codeconst MS PER DAY 1000 60 60 24 and are javascript Date objectsfunction dateDiffInDays Discard the time and time zone information const utc1 Date UTC getFullYear getMonth getDate const utc2 Date UTC getFullYear getMonth getDate return Math floor utc2 utc1 MS PER DAY test itconst new Date 2017 01 01 new Date 2017 07 25 difference dateDiffInDays code prepThis works because UTC time never observes DST See href https stackoverflow com questions 5495803 does utc observe daylight saving time Does UTC observe daylight saving time pp emp After discussing some of the comments on this answer once you ve understood the issues with javascript dates that span DST boundary there is likely more than just one way to solve it What provided above is simple and tested solution be interested to know if there is simple arithmetic math based solution instead of having to instantiate the two new Date objects That could potentially be faster em that is correct Depending on what you mean by rounding that is what the solution above does in way It takes any date and rounds it to UTC zoned date at 00 00 00 and then does the math to find the difference OP says they want the difference in full days Thinking about it more don know if there is any other definition for difference between two dates in days besides it being in full days h1A more correct solution h1p emsince dates naturally have time zone information which can span regions with different day light savings adjustments em ppPrevious answers to this question don account for cases where the two dates in question span daylight saving time DST change The date on which the DST change happens will have duration in milliseconds which is code 1000 60 60 24 code so the typical calculation will fail ppYou can work around this by first normalizing the two dates to UTC and then calculating the difference between those two UTC dates ppNow the solution can be written as ppre codeconst MS PER DAY 1000 60 60 24 and are javascript Date objectsfunction dateDiffInDays Discard the time and time zone information const utc1 Date UTC getFullYear getMonth getDate const utc2 Date UTC getFullYear getMonth getDate return Math floor utc2 utc1 MS PER DAY test itconst new Date 2017 01 01 new Date 2017 07 25 difference dateDiffInDays code prepThis works because UTC time never observes DST See href https stackoverflow com questions 5495803 does utc observe daylight saving time Does UTC observe daylight saving time pp emp After discussing some of the comments on this answer once you ve understood the issues with javascript dates that span DST boundary there is likely more than just one way to solve it What provided above is simple and tested solution be interested to know if there is simple arithmetic math based solution instead of having to instantiate the two new Date objects That could potentially be faster em lack of UTC requirements isn the issue The bug in the current accepted solution shows up if you are using it in time zone that has day light savings changes and the dates that are being used as inputs span such DST change HTH h1A more correct solution h1p emsince dates naturally have time zone information which can span regions with different day light savings adjustments em ppPrevious answers to this question don account for cases where the two dates in question span daylight saving time DST change The date on which the DST change happens will have duration in milliseconds which is code 1000 60 60 24 code so the typical calculation will fail ppYou can work around this by first normalizing the two dates to UTC and then calculating the difference between those two UTC dates ppNow the solution can be written as ppre codeconst MS PER DAY 1000 60 60 24 and are javascript Date objectsfunction dateDiffInDays Discard the time and time zone information const utc1 Date UTC getFullYear getMonth getDate const utc2 Date UTC getFullYear getMonth getDate return Math floor utc2 utc1 MS PER DAY test itconst new Date 2017 01 01 new Date 2017 07 25 difference dateDiffInDays code prepThis works because UTC time never observes DST See href https stackoverflow com questions 5495803 does utc observe daylight saving time Does UTC observe daylight saving time pp emp After discussing some of the comments on this answer once you ve understood the issues with javascript dates that span DST boundary there is likely more than just one way to solve it What provided above is simple and tested solution be interested to know if there is simple arithmetic math based solution instead of having to instantiate the two new Date objects That could potentially be faster em hello again haven followed your thinking to form complete answer to the question in my head Feel free to submit an edit or new answer Cheers and happy new year h1A more correct solution h1p emsince dates naturally have time zone information which can span regions with different day light savings adjustments em ppPrevious answers to this question don account for cases where the two dates in question span daylight saving time DST change The date on which the DST change happens will have duration in milliseconds which is code 1000 60 60 24 code so the typical calculation will fail ppYou can work around this by first normalizing the two dates to UTC and then calculating the difference between those two UTC dates ppNow the solution can be written as ppre codeconst MS PER DAY 1000 60 60 24 and are javascript Date objectsfunction dateDiffInDays Discard the time and time zone information const utc1 Date UTC getFullYear getMonth getDate const utc2 Date UTC getFullYear getMonth getDate return Math floor utc2 utc1 MS PER DAY test itconst new Date 2017 01 01 new Date 2017 07 25 difference dateDiffInDays code prepThis works because UTC time never observes DST See href https stackoverflow com questions 5495803 does utc observe daylight saving time Does UTC observe daylight saving time pp emp After discussing some of the comments on this answer once you ve understood the issues with javascript dates that span DST boundary there is likely more than just one way to solve it What provided above is simple and tested solution be interested to know if there is simple arithmetic math based solution instead of having to instantiate the two new Date objects That could potentially be faster em tested your case and looks like the result is correct Keep in mind when you create those dates javascript by default creates date time object at 00 00 00 hours on the given day So when you give it 2017 11 05 for instance it actually creating date object that represents midnight the previous day and when counting differences it won count the 05th If you want to include the 5th you should be doing h1A faster method h1pIf you are doing this repeatedly for example to pad values in an array and performance is factor the following approach can give you nearly strong100x advantage strong in speed href http jsperf com string padding performance jsPerf over other solution that are currently discussed on the inter webs The basic idea is that you are providing the pad function with fully padded empty string to use as buffer The pad function just appends to string to be added to this pre padded string one string concat and then slices or trims the result to the desired length ppre codefunction pad pad str padLeft if typeof str undefined return pad if padLeft return pad str slice pad length else return str pad substring pad length code prepFor example to zero pad number to length of 10 digits ppre codepad 0000000000 123 true code prepTo pad string with whitespace so the entire string is 255 characters ppre codevar padding Array 256 join make string of 255 spacespad padding 123 true code preh3Performance Test h3pSee the emjsPerf em test href http jsperf com string padding performance here ppAnd this is faster than ES6 codestring repeat code by 2x as well as shown by the revised JsPerf href http jsperf com string padding performance here As someone else proved out in later jsPerf links added above this approach is 2x faster than the ES6 string repeat method So if you are doing lot of string padding definitely try this,0,NULL,NULL 70386,1173308,612380,Enthusiast,NULL,NULL,0,NULL,NULL 70387,9027516,612380,Enthusiast,NULL,NULL,0,NULL,NULL 70388,2097809,1418852,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70389,851459,977581,NULL,NULL,NULL,0,NULL,NULL 70390,1033990,594844,Nice Question,NULL,NULL,0,NULL,NULL 70391,505752,358132,NULL,NULL,NULL,0,NULL,NULL 70392,72232,437245,NULL,NULL,NULL,0,NULL,NULL 70393,471899,330471,Popular Question Nice Answer Popular Question Nice Answer Popular Question Yearling Nice Answer Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Notable Question Taxonomist Popular Question Yearling Popular Question Notable Question Good Answer Necromancer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 70394,48480,711717,Nice Answer Yearling Good Answer Yearling Notable Question Self-Learner Guru Necromancer Yearling Great Answer Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 70395,194209,1213244,Editor Supporter Popular Question Notable Question Scholar,NULL,NULL,0,NULL,NULL 70396,244906,1047396,NULL,NULL,NULL,0,NULL,NULL 70397,3041909,593652,Critic Famous Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70398,49590,910886,NULL,NULL,NULL,0,NULL,NULL 70399,853774,446242,NULL,NULL,NULL,0,NULL,NULL 70400,18772,721215,Self-Learner Notable Question Yearling Popular Question Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 70401,516045,721215,Self-Learner Notable Question Yearling Popular Question Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 70402,41831,448816,Popular Question Popular Question Announcer Necromancer Nice Question Notable Question Popular Question Yearling Famous Question Popular Question Good Answer Announcer Announcer Excavator Notable Question Nice Answer Announcer Yearling Custodian Custodian Caucus Announcer Nice Answer Notable Question Famous Question Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 70403,1506564,1390284,NULL,NULL,NULL,0,NULL,NULL 70404,537327,1288484,NULL,NULL,NULL,0,NULL,NULL 70405,1367812,1349469,Tumbleweed,NULL,NULL,0,NULL,NULL 70406,5058693,284993,NULL,NULL,NULL,0,NULL,NULL 70407,42483,284993,NULL,NULL,NULL,0,NULL,NULL 70408,2841156,816231,NULL,NULL,NULL,0,NULL,NULL 70409,493748,746792,Nice Question Famous Question Teacher Commentator Tumbleweed,NULL,NULL,0,NULL,NULL 70410,310665,1412330,Teacher Informed Revival,NULL,NULL,0,NULL,NULL 70411,954269,232710,Nice Answer Enlightened ruby-on-rails Custodian Necromancer Notable Question Nice Answer Yearling Popular Question Nice Answer Great Answer Good Answer Yearling Popular Question,NULL,pJust extend Julian table pp href https stack imgur com qbe46 png img src https stack imgur com qbe46 png alt enter image description here ppRef href http sibevin github io posts 2014 11 11 103928 rails empty vs blank vs nil empty blank nil 傻傻分不清楚 Thanks for your reminder the table is updated,0,NULL,NULL 70412,832689,846226,Popular Question Popular Question Self-Learner Notable Question Notable Question Famous Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70413,245113,170997,Autobiographer Yearling Yearling Great Answer Yearling Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 70414,124289,1109420,NULL,NULL,NULL,0,NULL,NULL 70415,285093,333561,Informed Nice Answer Critic,NULL,NULL,0,NULL,NULL 70416,894788,1300526,NULL,NULL,NULL,0,NULL,NULL 70417,79896,1325574,Informed Announcer,NULL,NULL,0,NULL,NULL 70418,79138,1204312,Notable Question Organizer Yearling Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Inquisitive Fanatic Caucus Constituent Good Question Announcer Revival Talkative Yearling Revival Necromancer Popular Question Not a Robot Good Question Explainer Caucus Famous Question Nice Answer Yearling Popular Question Caucus Constituent Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 70419,3714463,1204312,Notable Question Organizer Yearling Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Inquisitive Fanatic Caucus Constituent Good Question Announcer Revival Talkative Yearling Revival Necromancer Popular Question Not a Robot Good Question Explainer Caucus Famous Question Nice Answer Yearling Popular Question Caucus Constituent Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 70420,10641775,1204312,Notable Question Organizer Yearling Notable Question Popular Question Popular Question Notable Question Nice Question Notable Question Inquisitive Fanatic Caucus Constituent Good Question Announcer Revival Talkative Yearling Revival Necromancer Popular Question Not a Robot Good Question Explainer Caucus Famous Question Nice Answer Yearling Popular Question Caucus Constituent Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 70421,166193,378843,Student Famous Question Scholar Custodian Curious Popular Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70422,380592,857801,NULL,NULL,NULL,0,NULL,NULL 70423,9982,244322,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 70424,76748,721564,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70425,168888,181052,Popular Question Notable Question Nice Question Nice Question Yearling Notable Question Nice Question Notable Question Yearling Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 70426,318540,272324,NULL,NULL,NULL,0,NULL,NULL 70427,122787,262972,Yearling Civic Duty Nice Question Famous Question Announcer Notable Question Great Answer Guru Notable Question Popular Question Nice Answer Yearling Announcer Popular Question Popular Question Popular Question Notable Question Nice Answer Enlightened Yearling Good Answer Famous Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 70428,232897,1044871,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70429,94825,549431,NULL,NULL,NULL,0,NULL,NULL 70430,1504250,746139,Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Teacher Popular Question Notable Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 70431,345181,671223,Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Nice Answer Popular Question Popular Question Nice Answer Popular Question Popular Question Famous Question Popular Question Nice Question Yearling Popular Question Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70432,78827,359455,Critic,NULL,NULL,0,NULL,NULL 70433,686502,179729,Yearling Famous Question Necromancer Popular Question Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 70434,455748,533550,Supporter,NULL,NULL,0,NULL,NULL 70435,223088,1499948,NULL,NULL,NULL,0,NULL,NULL 70436,45458,1447701,NULL,NULL,NULL,0,NULL,NULL 70437,84150,764923,NULL,NULL,NULL,0,NULL,NULL 70438,2477696,1411975,Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Caucus Constituent Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Caucus Popular Question Constituent Notable Question Good Question Notable Question Nice Question Notable Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question Notable Question Good Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70439,429681,708322,Yearling Caucus Constituent Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70440,1735138,1214301,Notable Question,NULL,NULL,0,NULL,NULL 70441,525402,1296958,NULL,NULL,NULL,0,NULL,NULL 70442,644537,975882,Notable Question Custodian Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70443,1649786,975882,Notable Question Custodian Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70444,358495,867122,Famous Question Nice Answer Yearling Great Answer Caucus Necromancer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70445,68707,126906,Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 70446,214196,181812,Popular Question,NULL,NULL,0,NULL,NULL 70447,93670,1169120,NULL,NULL,NULL,0,NULL,NULL 70448,1083010,686827,NULL,NULL,NULL,0,NULL,NULL 70449,496578,111641,NULL,NULL,NULL,0,NULL,NULL 70450,210080,514996,Teacher,NULL,NULL,0,NULL,NULL 70451,834480,558711,Popular Question Good Answer Popular Question Notable Question Good Answer Yearling Notable Question Good Answer Yearling Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70452,131339,85512,Famous Question Custodian Curious Good Question,NULL,NULL,0,NULL,NULL 70453,199238,777062,NULL,NULL,NULL,0,NULL,NULL 70454,70199,1166468,NULL,NULL,NULL,0,NULL,NULL 70455,157692,629148,NULL,NULL,NULL,0,NULL,NULL 70456,2601,159367,Famous Question,NULL,NULL,0,NULL,NULL 70457,2531951,123012,Notable Question Popular Question Yearling Popular Question Nice Answer Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 70458,84888,837101,NULL,NULL,NULL,0,NULL,NULL 70459,908825,1214867,Necromancer,NULL,NULL,0,NULL,NULL 70460,735053,1090606,Popular Question Notable Question Popular Question Notable Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Inquisitive Notable Question Notable Question Notable Question Nice Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 70461,7002789,537872,NULL,NULL,NULL,0,NULL,NULL 70462,84647,537872,NULL,NULL,NULL,0,NULL,NULL 70463,350277,1258167,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70464,1029975,400329,NULL,NULL,NULL,0,NULL,NULL 70465,213452,1022075,Good Answer Yearling Supporter Yearling Yearling Yearling Great Answer Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 70466,338502,28486,Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 70467,140712,688703,NULL,NULL,NULL,0,NULL,NULL 70468,54140,1554766,NULL,NULL,NULL,0,NULL,NULL 70469,147015,935977,Scholar,NULL,NULL,0,NULL,NULL 70470,7350,202023,Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 70471,1099230,1527004,NULL,NULL,NULL,0,NULL,NULL 70472,333439,677975,NULL,NULL,NULL,0,NULL,NULL 70473,109067,1356619,NULL,NULL,NULL,0,NULL,NULL 70474,22611,108009,Nice Question Revival Popular Question Good Answer Yearling Notable Question Notable Question Notable Question Yearling Notable Question Caucus Constituent Custodian Notable Question Nice Question Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 70475,837604,976883,Editor Student Supporter Scholar Commentator Curious Self-Learner Announcer Popular Question,NULL,NULL,0,NULL,NULL 70476,164590,944255,NULL,NULL,NULL,0,NULL,NULL 70477,98874,515545,NULL,NULL,NULL,0,NULL,NULL 70478,78194,512184,Revival Nice Answer,NULL,NULL,0,NULL,NULL 70479,227132,629506,Good Answer Notable Question Yearling Popular Question Promoter Documentation User Nice Question Benefactor Organizer Custodian Custodian Notable Question Custodian Census Nice Question Famous Question Custodian Citizen Patrol Yearling Good Question,NULL,NULL,0,NULL,NULL 70480,481797,542900,NULL,NULL,NULL,0,NULL,NULL 70481,75374,177796,Notable Question,NULL,NULL,0,NULL,NULL 70482,453925,13876,Yearling Popular Question,NULL,NULL,0,NULL,NULL 70483,33051,849459,Popular Question Caucus,NULL,NULL,0,NULL,NULL 70484,6287747,974066,Necromancer Student Popular Question,NULL,NULL,0,NULL,NULL 70485,150838,974066,Necromancer Student Popular Question,NULL,NULL,0,NULL,NULL 70486,121154,1123278,Popular Question Popular Question Good Answer Nice Answer Enlightened Taxonomist Nice Answer Enlightened Popular Question Popular Question Good Answer Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Guru Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70487,1116001,483533,NULL,NULL,NULL,0,NULL,NULL 70488,409266,1042512,NULL,NULL,NULL,0,NULL,NULL 70489,289088,1522350,NULL,NULL,NULL,0,NULL,NULL 70490,729629,216911,Yearling Nice Answer Excavator Yearling Nice Answer java Yearling,NULL,NULL,0,NULL,NULL 70491,822625,651597,Notable Question,NULL,NULL,0,NULL,NULL 70492,714651,317447,Editor Commentator,NULL,NULL,0,NULL,NULL 70493,122592,1083927,NULL,NULL,NULL,0,NULL,NULL 70494,523510,1498285,NULL,NULL,NULL,0,NULL,NULL 70495,765705,1381049,Scholar Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70496,1497457,689650,Student,NULL,NULL,0,NULL,NULL 70497,2497041,1044362,Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70498,1521234,1044362,Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70499,531051,319844,Notable Question,NULL,NULL,0,NULL,NULL 70500,169010,238999,NULL,NULL,NULL,0,NULL,NULL 70501,1332716,997873,NULL,NULL,NULL,0,NULL,NULL 70502,1140660,879726,Editor,NULL,NULL,0,NULL,NULL 70503,21044,651180,NULL,NULL,NULL,0,NULL,NULL 70504,364922,1165918,Yearling Necromancer,NULL,NULL,0,NULL,NULL 70505,308820,8019,NULL,NULL,NULL,0,NULL,NULL 70506,526337,606555,NULL,NULL,NULL,0,NULL,NULL 70507,555298,479330,Notable Question Good Question Caucus Necromancer Yearling Census Necromancer,NULL,NULL,0,NULL,NULL 70508,399799,498961,NULL,NULL,NULL,0,NULL,NULL 70509,378253,244981,Commentator Critic Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 70510,745669,1418400,Explainer Commentator,NULL,NULL,0,NULL,NULL 70511,930320,1125789,NULL,NULL,NULL,0,NULL,NULL 70512,110957,970199,NULL,NULL,NULL,0,NULL,NULL 70513,202474,447806,NULL,NULL,NULL,0,NULL,NULL 70514,359995,504078,Yearling Commentator Caucus Constituent Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 70515,350727,609795,NULL,NULL,NULL,0,NULL,NULL 70516,636073,817792,Nice Question Nice Question Famous Question Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Documentation User Popular Question Necromancer Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 70517,5764047,817792,Nice Question Nice Question Famous Question Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Documentation User Popular Question Necromancer Popular Question Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 70518,278988,1293233,NULL,NULL,NULL,0,NULL,NULL 70519,385751,645410,Yearling Popular Question Necromancer Notable Question Popular Question Popular Question Nice Answer Yearling Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Notable Question Popular Question Yearling Popular Question Good Answer Necromancer Popular Question Popular Question Notable Question Popular Question Famous Question Yearling Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 70520,840758,496441,NULL,NULL,NULL,0,NULL,NULL 70521,600730,412644,Self-Learner,NULL,NULL,0,NULL,NULL 70522,326568,1061232,NULL,NULL,NULL,0,NULL,NULL 70523,1438195,1061232,NULL,NULL,NULL,0,NULL,NULL 70524,990057,910376,Nice Answer Enlightened Yearling Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 70525,34485,140953,Popular Question,NULL,NULL,0,NULL,NULL 70526,3977584,1465142,NULL,NULL,NULL,0,NULL,NULL 70527,386197,174011,Nice Question Popular Question Necromancer Popular Question Nice Question Popular Question Notable Question Yearling Nice Answer Popular Question Notable Question Announcer Nice Question Notable Question Yearling Favorite Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70528,277845,850624,NULL,NULL,NULL,0,NULL,NULL 70529,890177,636433,NULL,NULL,NULL,0,NULL,NULL 70530,150834,668679,NULL,NULL,NULL,0,NULL,NULL 70531,659,825093,Popular Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 70532,43485,1084681,NULL,NULL,NULL,0,NULL,NULL 70533,100939,1429700,Informed,NULL,NULL,0,NULL,NULL 70534,957749,1220582,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70535,569085,853717,Popular Question Nice Question Popular Question Critic Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 70536,301953,46329,Good Answer Nice Answer Yearling Great Answer Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 70537,180138,948732,Notable Question Yearling Necromancer Nice Question Popular Question Yearling Famous Question Nice Answer Caucus Self-Learner Good Question Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 70538,192838,1338248,NULL,NULL,NULL,0,NULL,NULL 70539,1032789,361571,Notable Question Census,NULL,NULL,0,NULL,NULL 70540,650898,1011063,NULL,NULL,NULL,0,NULL,NULL 70541,239107,914818,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 70542,5009841,1179401,Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 70543,32822,1179401,Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 70544,202338,1179401,Notable Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 70545,301461,1441896,NULL,NULL,NULL,0,NULL,NULL 70546,906790,29614,NULL,NULL,NULL,0,NULL,NULL 70547,107303,492700,NULL,NULL,NULL,0,NULL,NULL 70548,110641,189812,NULL,NULL,NULL,0,NULL,NULL 70549,80739,853033,NULL,NULL,NULL,0,NULL,NULL 70550,24673,503402,Nice Answer Yearling Nice Answer Good Question Custodian Nice Answer Nice Question Self-Learner Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Census Nice Answer Great Answer Notable Question Guru Pundit Promoter Yearling,NULL,NULL,0,NULL,NULL 70551,2698634,1274672,NULL,NULL,NULL,0,NULL,NULL 70552,317250,1277287,NULL,NULL,NULL,0,NULL,NULL 70553,292287,1034536,Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 70554,509133,63228,NULL,NULL,NULL,0,NULL,NULL 70555,156898,320845,NULL,NULL,NULL,0,NULL,NULL 70556,43179,102242,Custodian Yearling Great Answer Caucus Good Answer python Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70557,652705,903908,Yearling,NULL,NULL,0,NULL,NULL 70558,142588,960875,Notable Question Popular Question Custodian Notable Question Excavator Popular Question Good Question Yearling Caucus Constituent Famous Question Caucus Strunk & White Popular Question Custodian Popular Question Yearling Documentation User Custodian Proofreader Custodian Popular Question Peer Pressure Reviewer Reviewer Popular Question Civic Duty Notable Question Census Self-Learner Tag Editor grails Popular Question Popular Question Popular Question Caucus Nice Question Constituent Taxonomist Inquisitive Nice Answer Popular Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70559,64565,1406791,NULL,NULL,NULL,0,NULL,NULL 70560,280775,763749,NULL,NULL,NULL,0,NULL,NULL 70561,563844,3718,Yearling Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 70562,853767,908329,Notable Question Popular Question Enthusiast Teacher,NULL,NULL,0,NULL,NULL 70563,277957,1518184,Popular Question Supporter,NULL,NULL,0,NULL,NULL 70564,287153,1141470,NULL,NULL,NULL,0,NULL,NULL 70565,165695,1092554,NULL,NULL,NULL,0,NULL,NULL 70566,177474,666789,Yearling Custodian Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 70567,399787,825444,Civic Duty Yearling Good Answer Custodian Yearling laravel-4 Announcer Necromancer Good Answer Yearling Populist Announcer,NULL,for Batarang ppAlso you can get the scope from any element in the DOM by executing the following from the console ppre codeangular element DOMNODE scope code prepWhere DOMNODE is of course reference to DOM node ppFor example in Chrome in the strongelements strong tab you can select the node where the codeng app code directive is and get the root scope with ppre codeangular element scope code pre It worth nothing that to debugInfoEnabled can be disabled for this,0,NULL,NULL 70568,107124,311109,Famous Question,NULL,NULL,0,NULL,NULL 70569,133627,546015,Yearling,NULL,NULL,0,NULL,NULL 70570,552015,1383916,NULL,NULL,NULL,0,NULL,NULL 70571,1539362,1383916,NULL,NULL,NULL,0,NULL,NULL 70572,77329,647924,Popular Question Yearling Popular Question Tumbleweed Yearling Explainer Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 70573,67015,87191,Great Answer Yearling Popular Question Nice Answer Popular Question Great Answer Popular Question Popular Question Necromancer Good Answer Yearling Popular Question Popular Question Nice Question Notable Question Good Answer Yearling Nice Question Famous Question Notable Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 70574,86084,159463,Famous Question Caucus,NULL,NULL,0,NULL,NULL 70575,446250,579793,NULL,NULL,NULL,0,NULL,NULL 70576,886693,975540,Critic Famous Question Documentation User Excavator Citizen Patrol,NULL,NULL,0,NULL,NULL 70577,472319,329496,Popular Question Nice Answer Revival Notable Question Necromancer Nice Answer Yearling Necromancer Necromancer Custodian Necromancer Revival Necromancer Necromancer Caucus Nice Answer Disciplined Announcer Yearling Announcer Popular Question Caucus Nice Question Announcer Necromancer Necromancer Census Popular Question Announcer Announcer Yearling Revival Popular Question Civic Duty Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70578,367167,962027,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 70579,278866,925694,NULL,NULL,NULL,0,NULL,NULL 70580,17161,300494,NULL,NULL,NULL,0,NULL,NULL 70581,401956,419449,Notable Question Popular Question Popular Question Favorite Question Famous Question Notable Question Yearling Notable Question Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Yearling Nice Answer Popular Question Nice Question Necromancer Revival Caucus Notable Question Popular Question Popular Question Famous Question Popular Question Yearling Necromancer Notable Question,NULL,pOr if you want to just disable the red underline and the autocorrect dialog you can override the codeisSuggestionsEnabled code method on codeTextView code ppThis will keep the keyboard autocomplete working return false,1,NULL,how to disable spellcheck Android edittext android pI want to remove the underlines from texts inside edittext fields img src https stack imgur com bDmhy png alt text fileds with underlined texts inside ppHow can do that pOr if you want to just disable the red underline and the autocorrect dialog you can override the codeisSuggestionsEnabled code method on codeTextView code ppThis will keep the keyboard autocomplete working 70582,6121276,669360,Yearling Good Question Famous Question Announcer Promoter Favorite Question Necromancer,NULL,NULL,0,NULL,NULL 70583,391067,669360,Yearling Good Question Famous Question Announcer Promoter Favorite Question Necromancer,NULL,NULL,0,NULL,NULL 70584,292950,446266,NULL,NULL,NULL,0,NULL,NULL 70585,983462,909097,NULL,NULL,NULL,0,NULL,NULL 70586,31044,656046,NULL,NULL,NULL,0,NULL,NULL 70587,6354262,342156,Yearling Synonymizer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70588,288918,860132,Yearling,NULL,NULL,0,NULL,NULL 70589,1686687,645078,NULL,NULL,NULL,0,NULL,NULL 70590,218111,645078,NULL,NULL,NULL,0,NULL,NULL 70591,134836,353483,Yearling Popular Question c# Notable Question Yearling Nice Answer Popular Question Notable Question Famous Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 70592,229797,476987,NULL,NULL,NULL,0,NULL,NULL 70593,339802,325075,Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 70594,416696,1267329,Nice Answer Enlightened Guru html Good Answer Nice Answer Enlightened datetime Guru Yearling Guru Good Answer Guru Nice Answer Nice Answer Enlightened Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Custodian unit-testing Nice Answer Enlightened mocking Nice Answer Nice Answer Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Nice Answer Enlightened django Good Answer Good Answer Caucus Great Answer Announcer Refiner Guru Guru Good Answer Good Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened Guru Great Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Caucus Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Great Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70595,188366,925759,NULL,NULL,NULL,0,NULL,NULL 70596,62583,925759,NULL,NULL,NULL,0,NULL,NULL 70597,103858,754400,Famous Question Guru Nice Answer Yearling Good Answer Custodian Nice Answer Popular Question Yearling Good Answer Nice Answer Guru Yearling Nice Answer Enlightened Nice Question Popular Question Revival ios,NULL,NULL,0,NULL,NULL 70598,81530,164471,Yearling,NULL,NULL,0,NULL,NULL 70599,688222,895416,NULL,NULL,NULL,0,NULL,NULL 70600,103233,282614,Notable Question c Yearling Good Answer Enlightened Excavator Necromancer Good Question Notable Question Popular Question Caucus Notable Question Popular Question Popular Question Good Question Good Answer Yearling Famous Question Custodian Pundit Famous Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Caucus Constituent Nice Answer Great Answer Notable Question Necromancer Quorum Revival,NULL,pI like to show an idea which is IMHO quite elegant The solution proposed by dubrownik shows pattern which is always the same you need the three layered wrapper regardless of what the decorator does ppSo thought this is job for meta decorator that is decorator for decorators As decorator is function it actually works as regular decorator with arguments ppre codedef parametrized dec def layer args kwargs def repl return dec args kwargs return repl return layer code prepThis can be applied to regular decorator in order to add parameters So for instance say we have the decorator which doubles the result of function ppre codedef double def aux xs kws return xs kws return aux function return 10 aprint function Prints 26 namely 10 code prepWith code code we can build generic code code decorator having parameter ppre code multiply def aux xs kws return xs kws return aux def function return 10 aprint function Prints 26 def function again return 10 aprint function Keeps printing 26print function again Prints 39 namely 10 code prepConventionally the first parameter of emparametrized em decorator is the function while the remaining arguments will correspond to the parameter of the parametrized decorator ppAn interesting usage example could be type safe assertive decorator ppre codeimport itertools as it types types def rep args for in zip args types it count if type is not raise TypeError Value has not type instead type return args return rep str int arg1 is str arg2 is intdef string multiply text times return text timesprint string multiply hello Prints hellohellohelloprint string multiply Fails miserably with TypeError code prepA final note here not using codefunctools wraps code for the wrapper functions but would recommend using it all the times could you share with us the kind of issues you had pI like to show an idea which is IMHO quite elegant The solution proposed by dubrownik shows pattern which is always the same you need the three layered wrapper regardless of what the decorator does ppSo thought this is job for meta decorator that is decorator for decorators As decorator is function it actually works as regular decorator with arguments ppre codedef parametrized dec def layer args kwargs def repl return dec args kwargs return repl return layer code prepThis can be applied to regular decorator in order to add parameters So for instance say we have the decorator which doubles the result of function ppre codedef double def aux xs kws return xs kws return aux function return 10 aprint function Prints 26 namely 10 code prepWith code code we can build generic code code decorator having parameter ppre code multiply def aux xs kws return xs kws return aux def function return 10 aprint function Prints 26 def function again return 10 aprint function Keeps printing 26print function again Prints 39 namely 10 code prepConventionally the first parameter of emparametrized em decorator is the function while the remaining arguments will correspond to the parameter of the parametrized decorator ppAn interesting usage example could be type safe assertive decorator ppre codeimport itertools as it types types def rep args for in zip args types it count if type is not raise TypeError Value has not type instead type return args return rep str int arg1 is str arg2 is intdef string multiply text times return text timesprint string multiply hello Prints hellohellohelloprint string multiply Fails miserably with TypeError code prepA final note here not using codefunctools wraps code for the wrapper functions but would recommend using it all the times Aha suspected that as it was the only possible fault that could spot Indeed changed my answer and appended mention about wraps True story pI like to show an idea which is IMHO quite elegant The solution proposed by dubrownik shows pattern which is always the same you need the three layered wrapper regardless of what the decorator does ppSo thought this is job for meta decorator that is decorator for decorators As decorator is function it actually works as regular decorator with arguments ppre codedef parametrized dec def layer args kwargs def repl return dec args kwargs return repl return layer code prepThis can be applied to regular decorator in order to add parameters So for instance say we have the decorator which doubles the result of function ppre codedef double def aux xs kws return xs kws return aux function return 10 aprint function Prints 26 namely 10 code prepWith code code we can build generic code code decorator having parameter ppre code multiply def aux xs kws return xs kws return aux def function return 10 aprint function Prints 26 def function again return 10 aprint function Keeps printing 26print function again Prints 39 namely 10 code prepConventionally the first parameter of emparametrized em decorator is the function while the remaining arguments will correspond to the parameter of the parametrized decorator ppAn interesting usage example could be type safe assertive decorator ppre codeimport itertools as it types types def rep args for in zip args types it count if type is not raise TypeError Value has not type instead type return args return rep str int arg1 is str arg2 is intdef string multiply text times return text timesprint string multiply hello Prints hellohellohelloprint string multiply Fails miserably with TypeError code prepA final note here not using codefunctools wraps code for the wrapper functions but would recommend using it all the times rety bit confused by your question Could you elaborate pI like to show an idea which is IMHO quite elegant The solution proposed by dubrownik shows pattern which is always the same you need the three layered wrapper regardless of what the decorator does ppSo thought this is job for meta decorator that is decorator for decorators As decorator is function it actually works as regular decorator with arguments ppre codedef parametrized dec def layer args kwargs def repl return dec args kwargs return repl return layer code prepThis can be applied to regular decorator in order to add parameters So for instance say we have the decorator which doubles the result of function ppre codedef double def aux xs kws return xs kws return aux function return 10 aprint function Prints 26 namely 10 code prepWith code code we can build generic code code decorator having parameter ppre code multiply def aux xs kws return xs kws return aux def function return 10 aprint function Prints 26 def function again return 10 aprint function Keeps printing 26print function again Prints 39 namely 10 code prepConventionally the first parameter of emparametrized em decorator is the function while the remaining arguments will correspond to the parameter of the parametrized decorator ppAn interesting usage example could be type safe assertive decorator ppre codeimport itertools as it types types def rep args for in zip args types it count if type is not raise TypeError Value has not type instead type return args return rep str int arg1 is str arg2 is intdef string multiply text times return text timesprint string multiply hello Prints hellohellohelloprint string multiply Fails miserably with TypeError code prepA final note here not using codefunctools wraps code for the wrapper functions but would recommend using it all the times repl stands for replacement When name it repl it means that it will effectively take the place of another function Assuming that you are talking about the parametrized decorator layer will replace the decorated decorator The dec parameter of parametrized is the decorator we are going to replace with layer Decorators take functions as parameter and indeed we pass to dec So ultimately repl is what replaces dec and works by applying the decorator dec so that it replaces hope that this comment makes it clearer but myself have to read it many times pMy two cents on this very popular question ppTo quote the href http linux die net man snprintf rel nofollow noreferrer manpage of codeprintf code like functions pblockquote pUpon successful return these functions return the number of characters printed excluding the null byte used to end output to strings pThe functions snprintf and vsnprintf do not write more than size bytes including the terminating null byte If the output was truncated due to this limit then the return value is the number of characters excluding the terminating null byte which would have been written to the final string if enough space had been available Thus return value of size or more means that the output was truncated blockquotepIn other words sane 11 implementation should be the following ppre code include lt string gt include lt cstdio gt template lt typename Ts gt std string fmt const std string amp fmt Ts vs char size required std snprintf amp fmt str vs See comments the is necessary while the first parameter can also be set to nullptr char bytes required std snprintf bytes required fmt str vs return std string bytes code prepIt works quite well ppVariadic templates are supported only in 11 The answer from pixelpoint show similar technique using older programming styles ppIt weird that does not have such thing out of the box They recently added href http www cplusplus com articles D9j2Nwbp cpp11 rel nofollow noreferrer codeto string code which in my opinion is great step forward wondering if they will add code format code operator to the codestd string code eventually ph2Edit h2pAs alexk7 pointed out code code is needed on the return value of codestd snprintf code since we need to have space for the code code byte Intuitively on most architectures missing the code code will cause the coderequired code integer to be partially overwritten with code0 code This will happen emafter em the evaluation of coderequired code as actual parameter for codestd snprintf code so the effect should not be visible ppThis problem could however change for instance with compiler optimization what if the compiler decides to use register for the coderequired code variable This is the kind of errors which sometimes result in security issues like to improve the answer with mention to your comment Could you elaborate more on the possible problems of using the stack how would it affect the application pYou need the double expansion trick ppre code define define define LINE LINE use LINE instead of LINE code prepAddendum years later It is good idea to go little out of one way to avoid operations that may allocate memory in exception handling paths Given the above you should be able to write ppre codethrow std runtime error exception at FILE LINE code prepwhich will do the string concatenation at compile time instead of runtime It will still construct std string implicitly at runtime but that unavoidable Yuck This preprocessor is awesome mean horrible mean awesome,0,NULL,NULL 70601,130498,222367,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70602,46585,854540,Enthusiast Yearling Caucus Nice Answer Excavator Yearling Census Notable Question,NULL,NULL,0,NULL,NULL 70603,52922,197131,Notable Question,NULL,NULL,0,NULL,NULL 70604,1366641,1296752,Informed Teacher,NULL,NULL,0,NULL,NULL 70605,281428,1448310,NULL,NULL,NULL,0,NULL,NULL 70606,181273,1479519,NULL,NULL,NULL,0,NULL,NULL 70607,900910,287954,Yearling Caucus Constituent Good Answer Yearling Good Question Popular Question Nice Question Caucus Constituent Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Guru,NULL,NULL,0,NULL,NULL 70608,1211612,242475,Necromancer,NULL,NULL,0,NULL,NULL 70609,1193061,734944,NULL,NULL,NULL,0,NULL,NULL 70610,1108211,890812,NULL,NULL,NULL,0,NULL,NULL 70611,307142,489394,NULL,NULL,NULL,0,NULL,NULL 70612,47217,858390,Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 70613,2569660,1511964,Custodian Informed Yearling Caucus Custodian Revival Revival Yearling Investor Altruist Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 70614,431093,1511964,Custodian Informed Yearling Caucus Custodian Revival Revival Yearling Investor Altruist Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 70615,298882,440992,NULL,NULL,NULL,0,NULL,NULL 70616,15873,233412,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70617,598752,233412,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70618,699046,741548,NULL,NULL,NULL,0,NULL,NULL 70619,85438,296639,Curious Citizen Patrol Yearling Announcer Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 70620,170651,180242,Yearling Caucus Nice Answer Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 70621,36406,229031,Custodian Custodian Unsung Hero Announcer Civic Duty Revival Caucus Yearling Necromancer Yearling Nice Answer Enlightened Announcer Guru,NULL,NULL,0,NULL,NULL 70622,303679,1201636,NULL,NULL,NULL,0,NULL,NULL 70623,123973,311966,Nice Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer Guru Caucus Popular Question Constituent Good Answer segmentation-fault Yearling struct Caucus Constituent Good Answer Announcer Guru Guru Good Answer Good Answer Caucus Yearling websocket Nice Answer Enlightened Populist Great Answer Nice Answer Great Answer Announcer,NULL,NULL,0,NULL,NULL 70624,206944,1258228,NULL,NULL,NULL,0,NULL,NULL 70625,104622,53158,Popular Question Nice Question Archaeologist Popular Question Nice Question Nice Answer Guru Good Question Popular Question Popular Question Necromancer Notable Question Good Answer Popular Question Popular Question Famous Question Good Answer Notable Question Notable Question Notable Question Nice Answer Popular Question Notable Question Great Question Good Question Nice Question Nice Question Popular Question Popular Question Good Question Popular Question Nice Answer Yearling Famous Question Famous Question Popular Question Necromancer Good Question Announcer Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Nice Answer Necromancer Notable Question Nice Question Popular Question Famous Question Famous Question Yearling Popular Question Popular Question Nice Answer Necromancer Caucus Nice Question Notable Question Announcer Nice Answer Nice Answer Notable Question Notable Question Famous Question Announcer Popular Question Necromancer,NULL,NULL,1,How do do an async ServiceController WaitForStatus net async await task servicecontroller pSo href https msdn microsoft com en us library system serviceprocess servicecontroller waitforstatus aspx rel nofollow ServiceController WaitForStatus is blocking call How can it be done Task Async manner,NULL 70626,1312240,1035854,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 70627,4620073,257785,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 70628,368852,1512465,NULL,NULL,NULL,0,NULL,NULL 70629,2226551,1507245,Notable Question,NULL,NULL,0,NULL,NULL 70630,801542,242530,Notable Question Student,NULL,NULL,0,NULL,NULL 70631,887612,810047,NULL,NULL,NULL,0,NULL,NULL 70632,468188,888392,Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70633,390082,428536,Notable Question Yearling Nice Answer Enlightened Critic Excavator Self-Learner Nice Answer Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 70634,3934,519878,Famous Question Good Question Popular Question Popular Question Yearling Notable Question Nice Question Yearling Yearling,NULL,NULL,0,NULL,NULL 70635,118530,744070,NULL,NULL,NULL,0,NULL,NULL 70636,735612,1035281,Necromancer,NULL,NULL,0,NULL,NULL 70637,478941,795759,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 70638,331226,340137,NULL,NULL,NULL,0,NULL,NULL 70639,457024,1515647,Informed,NULL,NULL,0,NULL,NULL 70640,74620,994,Popular Question,NULL,NULL,0,NULL,NULL 70641,196275,985224,NULL,NULL,NULL,0,NULL,NULL 70642,2171444,495800,Necromancer Necromancer Necromancer Popular Question Notable Question Yearling Nice Answer android Necromancer Nice Answer Popular Question Nice Answer Popular Question Yearling Necromancer Nice Answer Notable Question Good Answer Announcer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70643,662803,1165673,Caucus Census Caucus,NULL,NULL,0,NULL,NULL 70644,8831047,1165673,Caucus Census Caucus,NULL,NULL,0,NULL,NULL 70645,128836,177163,NULL,NULL,NULL,0,NULL,NULL 70646,821367,1186023,NULL,NULL,NULL,0,NULL,NULL 70647,84589,1057301,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70648,255914,189795,Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 70649,310342,328602,Tumbleweed Supporter Custodian Scholar,NULL,NULL,0,NULL,NULL 70650,231491,606641,NULL,NULL,NULL,0,NULL,NULL 70651,5721502,606641,NULL,NULL,NULL,0,NULL,NULL 70652,267275,503006,Curious,NULL,NULL,0,NULL,NULL 70653,237589,1359139,Informed Yearling Guru Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 70654,477749,477792,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70655,145417,318593,NULL,NULL,NULL,0,NULL,NULL 70656,10482,41679,Announcer Announcer Nice Answer Enlightened Notable Question Announcer ios Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Announcer Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 70657,167100,613898,Popular Question,NULL,NULL,0,NULL,NULL 70658,1036172,1022880,NULL,NULL,NULL,0,NULL,NULL 70659,14780,718981,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 70660,327302,984586,NULL,NULL,NULL,0,NULL,NULL 70661,1187298,555758,Yearling Yearling Yearling Great Answer Census Yearling,NULL,NULL,0,NULL,NULL 70662,62443,225876,Famous Question Tumbleweed Curious,NULL,NULL,0,NULL,NULL 70663,281240,1448587,Yearling Populist,NULL,NULL,0,NULL,NULL 70664,1407653,1493616,NULL,NULL,NULL,0,NULL,NULL 70665,86823,842314,NULL,NULL,NULL,0,NULL,NULL 70666,142080,601464,NULL,NULL,NULL,0,NULL,NULL 70667,624571,435366,NULL,NULL,NULL,0,NULL,NULL 70668,166014,39353,Great Answer Great Answer Guru Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 70669,427811,208746,Supporter Scholar Student Commentator Informed,NULL,NULL,0,NULL,NULL 70670,504362,543590,Yearling Tumbleweed Caucus Constituent Yearling Student Scholar,NULL,NULL,0,NULL,NULL 70671,462755,211104,Famous Question,NULL,NULL,0,NULL,NULL 70672,410116,1385226,Teacher Caucus Critic,NULL,NULL,0,NULL,NULL 70673,517442,1237621,Notable Question Notable Question Nice Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Famous Question Nice Question Famous Question Nice Question Famous Question Popular Question Popular Question Popular Question Revival Popular Question Yearling Caucus Good Question Popular Question Investor Altruist Popular Question,NULL,NULL,0,NULL,NULL 70674,26699,822249,Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70675,803889,822249,Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70676,2780506,822249,Scholar Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70677,492340,982314,Popular Question,NULL,NULL,0,NULL,NULL 70678,227559,1344764,NULL,NULL,NULL,0,NULL,NULL 70679,408923,128077,Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 70680,333577,833902,Supporter Informed Nice Question,NULL,NULL,0,NULL,NULL 70681,61880,863304,Yearling Tumbleweed Popular Question Civic Duty Promoter Benefactor Necromancer Good Answer Nice Answer Revival Yearling Popular Question Custodian Citizen Patrol Custodian Organizer Necromancer Popular Question Nice Question Good Answer Custodian Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Tag Editor,NULL,NULL,0,NULL,NULL 70682,269529,1364299,NULL,NULL,NULL,0,NULL,NULL 70683,135916,222245,Nice Answer Enlightened Necromancer Reviewer Necromancer Nice Answer Nice Answer Caucus Constituent Yearling Popular Question Caucus Yearling Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 70684,26643,1017611,Nice Question Necromancer Notable Question Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 70685,262408,71329,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 70686,145850,123696,Nice Answer Necromancer Nice Answer Yearling Tumbleweed Good Answer Yearling Yearling Custodian Documentation User Informed Citizen Patrol Yearling Yearling,NULL,href https developer mozilla org en US docs Web Guide API DOM Using full screen mode rel noreferrer It possible with JavaScript ppre codevar elem document getElementById myvideo if elem requestFullscreen elem requestFullscreen else if elem msRequestFullscreen elem msRequestFullscreen else if elem mozRequestFullScreen elem mozRequestFullScreen else if elem webkitRequestFullscreen elem webkitRequestFullscreen code pre If you prefer to smoothe over the various browser implementations try Screenfull js https sindresorhus com screenfull js it works treat,0,NULL,NULL 70687,473656,717082,NULL,NULL,NULL,0,NULL,NULL 70688,43200,263871,Guru Yearling Great Answer Guru Notable Question Guru Notable Question Yearling Good Answer Announcer python Nice Answer Enlightened Good Answer Yearling Disciplined Good Answer,NULL,NULL,0,NULL,NULL 70689,125152,1319600,NULL,NULL,NULL,0,NULL,NULL 70690,286007,5744,Notable Question Documentation Beta Yearling Favorite Question Caucus Nice Answer Popular Question Nice Answer Nice Question Notable Question Popular Question Nice Answer Enlightened Nice Answer Guru Popular Question Caucus Yearling Nice Answer Documentation User Tenacious Caucus Nice Answer Good Answer Yearling,NULL,,0,, 70691,85592,535692,NULL,NULL,NULL,0,NULL,NULL 70692,248185,147659,Enlightened Nice Answer Critic,NULL,NULL,0,NULL,NULL 70693,7048,412329,Popular Question Notable Question Self-Learner Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70694,266192,88123,Nice Answer Enlightened Yearling Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70695,341689,1165348,NULL,NULL,NULL,0,NULL,NULL 70696,100421,1044001,Popular Question,NULL,NULL,0,NULL,NULL 70697,338913,1156034,NULL,NULL,NULL,0,NULL,NULL 70698,33466,84401,Good Answer Yearling Nice Answer Yearling Documentation User Announcer Yearling,NULL,NULL,0,NULL,NULL 70699,190671,321695,NULL,NULL,NULL,0,NULL,NULL 70700,888305,749619,NULL,NULL,NULL,0,NULL,NULL 70701,812735,280473,Nice Answer Enlightened Yearling Nice Answer Good Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70702,143915,6083,Good Answer Favorite Question Yearling Good Question Custodian Popular Question Yearling Enthusiast Popular Question Yearling,NULL,NULL,0,NULL,NULL 70703,251409,2766,Good Answer Yearling Famous Question Populist Caucus Good Answer Great Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 70704,45078,725772,Caucus Constituent Caucus Notable Question Caucus,NULL,NULL,0,NULL,NULL 70705,645901,976686,Yearling Good Question Popular Question Popular Question Organizer Popular Question Famous Question Yearling Announcer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 70706,139962,222124,NULL,NULL,NULL,0,NULL,NULL 70707,773028,1012640,NULL,NULL,NULL,0,NULL,NULL 70708,37770,297776,Popular Question Notable Question Popular Question Nice Question Popular Question Famous Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Good Question Favorite Question Good Answer Famous Question Popular Question Popular Question Popular Question Notable Question Good Question Notable Question Nice Question Popular Question Nice Question scala Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Nice Answer Notable Question Nice Question Nice Answer Notable Question Nice Question Good Question Great Question Nice Question Famous Question Notable Question Popular Question Notable Question Good Question Nice Answer Notable Question Popular Question Notable Question Yearling Good Question Good Question Notable Question Nice Answer Notable Question Famous Question Famous Question Revival Good Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70709,1827689,221644,Autobiographer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 70710,2465908,221644,Autobiographer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 70711,68121,221644,Autobiographer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 70712,384144,1080650,Popular Question Famous Question Popular Question Popular Question Caucus Yearling Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Caucus Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre Yes am aware of this was using to prove the value was correct Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre Read question my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre Sure thang just updated Only included the bit that being naughty Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre Can you explain why the error object doesn follow don really want to go through 50 000 lines of code and replace each one when we ve just implemented in yml locales Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre Perfect that sorts it If you make into an answer ll accept Cheers,1,Rails i18n Attributes Not Working via JSON API ruby on rails internationalization rails i18n pWe have RoR API server and an AngularJS frontend ppI trying get the internationalism working and have setup my en yml as so ppre codeen activerecord attributes nas calledstationid AP Mac errors models nas attributes calledstationid blank invalid taken has already been added to location code prepWhen create nas with taken calledstationid expecting AP Mac has already been added to location ppInstead get calledstationid ppre codedef create Nas new calledstationid params box calledstationid respond to do format if save format json render template api v1 boxes show json jbuilder status 201 else errors format json render template api v1 shared index json jbuilder status 422 end endend code prepWhen use the bang can see the calledstationid strongis strong replaced with ap mac in the logs ppSo my question is why is the field name not being updated in the errors object And how can get this to work for multiple locales pp EDIT ppThe error object ppre code calledstationid gt has already been added to location gt code pre,NULL 70713,34769,629947,NULL,NULL,NULL,0,NULL,NULL 70714,1148632,1026035,NULL,NULL,NULL,0,NULL,NULL 70715,509564,1476960,NULL,NULL,NULL,0,NULL,NULL 70716,550965,1080331,NULL,NULL,NULL,0,NULL,NULL 70717,429036,1024807,NULL,NULL,NULL,0,NULL,NULL 70718,200493,16822,Popular Question Yearling Explainer Popular Question Notable Question Good Answer Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 70719,481813,352765,Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Yearling Guru Great Answer Nice Answer sql Nice Answer Enlightened Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Guru Caucus performance quirks-mode Nice Answer Great Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Good Answer Nice Answer Enlightened Nice Answer Enlightened Census Good Answer Nice Answer Great Answer Good Answer Nice Answer Good Answer mysql Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Yearling regex Guru Revival Nice Answer Nice Answer Caucus Guru Great Answer Good Answer Nice Answer Nice Answer Famous Question Nice Answer Announcer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Great Answer Good Answer Nice Answer Guru Guru Caucus Good Answer Constituent Nice Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Revival Good Answer Nice Answer Good Answer Guru Guru Nice Answer,NULL,Convert Array to Object javascript arrays node js object pWhat is the best way to convert ppre code code prepto ppre code code pre because map is method of Array https developer mozilla org en US docs Web JavaScript Reference Global Objects Array map,0,NULL,NULL 70720,485017,102210,NULL,NULL,NULL,0,NULL,NULL 70721,486057,946637,NULL,NULL,NULL,0,NULL,NULL 70722,141738,862765,NULL,NULL,NULL,0,NULL,NULL 70723,99946,1423522,Critic Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70724,10959,891910,Yearling Popular Question Tumbleweed Commentator Custodian Announcer,NULL,NULL,0,NULL,NULL 70725,70928,857141,Yearling Caucus,NULL,NULL,0,NULL,NULL 70726,156699,652694,NULL,NULL,NULL,0,NULL,NULL 70727,468855,1244804,NULL,NULL,NULL,0,NULL,NULL 70728,83165,359137,Good Answer Yearling Good Answer Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 70729,573603,1563373,Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Critic Caucus Yearling Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70730,11756,128280,NULL,NULL,NULL,0,NULL,NULL 70731,987596,128280,NULL,NULL,NULL,0,NULL,NULL 70732,1528,158028,Yearling Nice Question Caucus Yearling Revival Revival Popular Question Caucus Constituent Documentation User Notable Question,NULL,NULL,0,NULL,NULL 70733,747417,772831,NULL,NULL,NULL,0,NULL,NULL 70734,169115,472565,Famous Question Yearling Caucus Caucus Constituent Census Caucus Constituent,NULL,NULL,0,NULL,NULL 70735,129783,737896,Popular Question Necromancer Nice Answer Populist Yearling Famous Question Tumbleweed Nice Question Good Answer Revival Revival Good Answer Nice Answer Yearling Revival Popular Question Necromancer Curious Guru Necromancer Custodian Custodian Necromancer Great Answer Guru Yearling Popular Question Popular Question Notable Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 70736,78891,1139029,NULL,NULL,NULL,0,NULL,NULL 70737,550208,362105,NULL,NULL,NULL,0,NULL,NULL 70738,232557,221308,NULL,NULL,NULL,0,NULL,NULL 70739,288021,1309643,NULL,NULL,NULL,0,NULL,NULL 70740,217963,656410,Popular Question,NULL,NULL,0,NULL,NULL 70741,396755,1319173,NULL,NULL,NULL,0,NULL,NULL 70742,219479,602111,NULL,NULL,NULL,0,NULL,NULL 70743,178511,935474,Guru Nice Answer Yearling Yearling Good Answer Yearling html,NULL,NULL,0,NULL,NULL 70744,390889,984203,NULL,NULL,NULL,0,NULL,NULL 70745,72875,1215076,Nice Answer Enlightened http2 Good Answer Yearling Good Answer Guru Nice Answer Enlightened cometd Nice Answer Nice Answer Enlightened Good Answer Explainer Nice Answer Enlightened Yearling jetty java Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened http2 Excavator Yearling Caucus Good Answer http Custodian,NULL,NULL,0,NULL,NULL 70746,222041,32093,Nice Question Favorite Question Civic Duty Nice Answer Enlightened Notable Question Revival Yearling Necromancer Nice Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 70747,125229,967274,NULL,NULL,NULL,0,NULL,NULL 70748,62533,631182,Informed Census,NULL,NULL,0,NULL,NULL 70749,535019,303136,NULL,NULL,NULL,0,NULL,NULL 70750,51873,1293214,NULL,NULL,NULL,0,NULL,NULL 70751,200192,4724,Popular Question Popular Question Yearling Tumbleweed Popular Question Yearling Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70752,137030,793353,Tumbleweed Autobiographer Yearling Caucus Scholar Caucus Census,NULL,NULL,0,NULL,NULL 70753,286464,598211,Yearling Necromancer Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70754,1848413,598211,Yearling Necromancer Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70755,925343,7920,Good Question Famous Question Popular Question Famous Question Great Answer Yearling Nice Question Favorite Question Necromancer Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 70756,2105150,868434,NULL,NULL,NULL,0,NULL,NULL 70757,191825,1061764,NULL,NULL,NULL,0,NULL,NULL 70758,109857,1374860,NULL,NULL,NULL,0,NULL,NULL 70759,522659,638294,Notable Question,NULL,NULL,0,NULL,NULL 70760,606113,490647,Revival Popular Question Popular Question Notable Question Great Answer Yearling Famous Question Popular Question Revival Citizen Patrol Self-Learner Yearling Popular Question Census Good Question Announcer Yearling,NULL,NULL,0,NULL,NULL 70761,839936,990495,Supporter Notable Question,NULL,NULL,0,NULL,NULL 70762,83436,267174,Yearling Popular Question Good Answer Good Question Custodian Popular Question Popular Question Good Answer Notable Question Famous Question Popular Question Good Question Good Answer Yearling Nice Answer Notable Question Popular Question Yearling Notable Question Notable Question Guru Great Question,NULL,NULL,0,NULL,NULL 70763,17891,1224576,NULL,NULL,NULL,0,NULL,NULL 70764,4335454,658055,NULL,NULL,NULL,0,NULL,NULL 70765,987553,1246778,Necromancer Nice Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70766,318369,847652,Popular Question,NULL,NULL,0,NULL,NULL 70767,383753,96505,Popular Question Yearling Popular Question Good Question Popular Question Notable Question Popular Question Nice Answer Announcer Caucus Constituent Popular Question Census Popular Question Nice Answer Enlightened Popular Question Yearling Disciplined Nice Answer Enlightened Notable Question Quorum Caucus Announcer Constituent Notable Question Documentation User Popular Question Census Caucus Constituent Announcer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 70768,129707,1444821,Necromancer Commentator Informed Necromancer,NULL,NULL,0,NULL,NULL 70769,72225,88411,Revival Yearling Popular Question Nice Answer Necromancer Nice Answer Nice Answer Popular Question Famous Question Nice Answer Enlightened Nice Question Good Answer Necromancer Yearling Notable Question Revival Yearling Revival Good Answer Revival Nice Answer Nice Answer Enlightened Necromancer Necromancer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 70770,287145,1375809,NULL,NULL,NULL,0,NULL,NULL 70771,108331,304811,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70772,485179,460309,Necromancer Yearling,NULL,NULL,0,NULL,NULL 70773,1182538,914819,Teacher Yearling Good Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 70774,475163,119738,Nice Answer Nice Answer Guru Nice Answer Favorite Question Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Good Answer Guru Guru Nice Answer Yearling Good Answer Good Answer Self-Learner Announcer Great Question Good Answer Caucus Good Answer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 70775,533436,773554,Informed Caucus Caucus Yearling,NULL,NULL,0,NULL,NULL 70776,250850,981387,NULL,NULL,NULL,0,NULL,NULL 70777,1619156,1253097,Self-Learner Popular Question Yearling Famous Question Popular Question Popular Question Critic Excavator,NULL,NULL,0,NULL,NULL 70778,96553,697948,Scholar,NULL,NULL,0,NULL,NULL 70779,858866,851013,Popular Question Caucus Constituent Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 70780,1508760,1132118,NULL,NULL,NULL,0,NULL,NULL 70781,7824,428897,NULL,NULL,NULL,0,NULL,NULL 70782,436806,888881,Nice Answer Custodian Enthusiast Civic Duty Yearling Necromancer Curious Revival Altruist Announcer Announcer Revival Popular Question Announcer Necromancer Nice Answer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 70783,25492,1156340,Yearling Popular Question,NULL,NULL,0,NULL,NULL 70784,22227,1209866,NULL,NULL,NULL,0,NULL,NULL 70785,216765,828058,NULL,NULL,NULL,0,NULL,NULL 70786,64277,149470,Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70787,431930,42667,NULL,NULL,NULL,0,NULL,NULL 70788,1553543,1263392,NULL,NULL,NULL,0,NULL,NULL 70789,805296,624060,Teacher,NULL,NULL,0,NULL,NULL 70790,683355,105262,Commentator Yearling Good Question,NULL,NULL,0,NULL,NULL 70791,161143,880957,Editor,NULL,NULL,0,NULL,NULL 70792,58078,238300,Custodian Custodian Caucus Constituent Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 70793,470472,749517,Yearling Yearling Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 70794,79264,1008307,NULL,NULL,NULL,0,NULL,NULL 70795,625640,1068626,NULL,NULL,NULL,0,NULL,NULL 70796,174241,1405423,Yearling Popular Question Popular Question Yearling Civic Duty Popular Question Caucus Constituent Notable Question Inquisitive Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Promoter Popular Question Popular Question Peer Pressure Notable Question Custodian Caucus Popular Question Custodian Notable Question Popular Question Documentation User Popular Question Custodian Popular Question Caucus Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 70797,79280,1144780,NULL,NULL,NULL,0,NULL,NULL 70798,55534,9727,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70799,24434,315759,NULL,NULL,NULL,0,NULL,NULL 70800,47902,723963,Revival Popular Question,NULL,NULL,0,NULL,NULL 70801,15310,446286,Good Answer Critic Enthusiast Notable Question Tumbleweed Caucus Yearling,NULL,NULL,0,NULL,NULL 70802,22489,442116,Good Question Yearling Citizen Patrol Custodian Informed,NULL,NULL,0,NULL,NULL 70803,39541,847877,Teacher,NULL,NULL,0,NULL,NULL 70804,218137,51167,Yearling Nice Answer Nice Answer Enlightened Famous Question Notable Question Nice Question Nice Answer Necromancer Popular Question Great Question Nice Question Nice Answer Nice Question Favorite Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Caucus Popular Question Good Question Popular Question Popular Question Famous Question Yearling Nice Question Famous Question Nice Question Nice Question Nice Question Popular Question Custodian Popular Question Popular Question Notable Question Notable Question Popular Question Good Question Famous Question Popular Question Popular Question Popular Question Custodian Good Answer Notable Question Good Question Notable Question Yearling Popular Question Nice Question Famous Question Popular Question Good Answer Nice Question Notable Question Notable Question Popular Question Good Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Nice Answer Notable Question,NULL,Why is Apple Deprecating OpenSSL in MacOS 10 Lion openssl osx lion pApple has marked most but not all of the OpenSSL API as deprecated in MacOS 10 Has Apple made any statements explaining why they are moving from OpenSSL to Common Crypto Heartbleed didn have anything to do with this It was based on code quality lack of support for multi threading and Appleisms pHow about ppre codesubset data set data date data data tuples tuple for in subset values code pre Please see answer below for using itertuples which will be more efficient than getting the values as an array and urning them into tuple,0,NULL,NULL 70805,609583,1174747,NULL,NULL,NULL,0,NULL,NULL 70806,63444,2635,Nice Question Notable Question Great Question Good Question Popular Question Nice Answer Nice Answer Enlightened Nice Question Famous Question Great Answer Great Question Good Answer Yearling Nice Answer Notable Question Good Question Nice Answer Nice Question Favorite Question Good Question Famous Question Famous Question Yearling Great Question Stellar Question Famous Question Famous Question Stellar Question Stellar Question Good Answer Famous Question Nice Answer Good Answer Yearling Guru Stellar Question Nice Answer,NULL,NULL,0,NULL,NULL 70807,157379,681199,NULL,NULL,NULL,0,NULL,NULL 70808,8271998,681199,NULL,NULL,NULL,0,NULL,NULL 70809,118247,1361044,NULL,NULL,NULL,0,NULL,NULL 70810,394983,715583,NULL,NULL,NULL,0,NULL,NULL 70811,235102,836432,Nice Answer Enlightened Revival Revival Famous Question Popular Question Yearling Explainer Good Answer Caucus Excavator Good Question Nice Answer Yearling Caucus Documentation User Caucus Yearling Nice Answer Enlightened Good Answer Good Answer,NULL,NULL,0,NULL,NULL 70812,80567,604709,NULL,NULL,NULL,0,NULL,NULL 70813,70206,895239,Announcer Notable Question Necromancer Tumbleweed Good Answer Necromancer Yearling Nice Answer Custodian Necromancer Good Answer Civic Duty Necromancer Yearling Documentation User Necromancer Proofreader Census Custodian Caucus Constituent php Good Answer Necromancer Nice Answer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70814,9799285,693989,NULL,NULL,NULL,0,NULL,NULL 70815,280432,693989,NULL,NULL,NULL,0,NULL,NULL 70816,1027683,999418,NULL,NULL,NULL,0,NULL,NULL 70817,606189,1057447,NULL,NULL,NULL,0,NULL,NULL 70818,6162,596361,Necromancer Popular Question Notable Question Yearling Nice Answer Popular Question Nice Question Nice Answer Popular Question Popular Question Necromancer Popular Question Necromancer Nice Answer Popular Question Necromancer Popular Question Good Answer Necromancer Nice Answer Notable Question Notable Question Necromancer Popular Question Nice Question Notable Question Popular Question Nice Question Popular Question Famous Question Nice Question Yearling Popular Question Necromancer Notable Question Notable Question Announcer Notable Question Revival Announcer Necromancer Necromancer Announcer Necromancer Necromancer Documentation User Necromancer Notable Question Popular Question Announcer Announcer Popular Question Notable Question Popular Question Popular Question Announcer Good Question Necromancer Census Popular Question Yearling Necromancer Notable Question Nice Answer Notable Question Necromancer Popular Question Popular Question Announcer Popular Question Good Answer Popular Question Notable Question Nice Answer Nice Question Announcer Notable Question Notable Question Popular Question Booster Nice Question Popular Question Notable Question Great Answer,NULL,NULL,0,NULL,NULL 70819,287666,598847,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 70820,116356,956527,NULL,NULL,NULL,0,NULL,NULL 70821,9074,664955,Yearling Necromancer Popular Question Nice Question Yearling Nice Answer Self-Learner Revival Notable Question Yearling Popular Question Popular Question Announcer,NULL,Why should text files end with newline file unix text files newline pI assume everyone here is familiar with the adage that all text files should end with newline ve known of this rule for years but ve always wondered why Well yeah But why are you bringing this up now Why should text files end with newline file unix text files newline pI assume everyone here is familiar with the adage that all text files should end with newline ve known of this rule for years but ve always wondered why absolutely agree with you that the name is kind of terrible in regards to what it actually there for,0,NULL,NULL 70822,3871,64949,Great Question Guru Yearling Great Answer Great Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Great Answer Guru Popular Question Revival Great Answer Good Answer Good Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Announcer Nice Question Announcer Announcer Announcer Excavator Famous Question Notable Question Good Answer Popular Question Enlightened Announcer Revival Necromancer Announcer Announcer Announcer Announcer Announcer Great Answer Nice Answer Enlightened Yearling Announcer Nice Answer Enlightened Nice Question Announcer Nice Answer Guru Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70823,194706,740692,NULL,NULL,NULL,0,NULL,NULL 70824,723720,925844,NULL,NULL,NULL,0,NULL,NULL 70825,371257,322245,Informed,NULL,NULL,0,NULL,NULL 70826,130874,382700,Famous Question Nice Question Nice Answer Nice Answer Popular Question Yearling Notable Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 70827,162293,635627,NULL,NULL,NULL,0,NULL,NULL 70828,692374,1026011,NULL,NULL,NULL,0,NULL,NULL 70829,14693,46715,Good Question Nice Question Yearling Popular Question Yearling Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70830,2077183,1343332,NULL,NULL,NULL,0,NULL,NULL 70831,162961,722155,NULL,NULL,NULL,0,NULL,NULL 70832,200625,387099,Notable Question Yearling Caucus Notable Question Notable Question Yearling Popular Question Documentation User Popular Question Announcer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70833,622022,529057,NULL,NULL,NULL,0,NULL,NULL 70834,905952,1458255,NULL,NULL,NULL,0,NULL,NULL 70835,45418,367371,Curious Yearling Nice Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 70836,508166,708682,Enthusiast Civic Duty,NULL,NULL,0,NULL,NULL 70837,1326797,210263,NULL,NULL,NULL,0,NULL,NULL 70838,391880,215379,NULL,NULL,NULL,0,NULL,NULL 70839,129684,625543,NULL,NULL,NULL,0,NULL,NULL 70840,54877,290689,NULL,NULL,,0,, 70841,849398,1260786,NULL,NULL,NULL,0,NULL,NULL 70842,523214,1491065,NULL,NULL,NULL,0,NULL,NULL 70843,993182,1285311,NULL,NULL,NULL,0,NULL,NULL 70844,766077,124411,Good Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70845,771283,915242,NULL,NULL,NULL,0,NULL,NULL 70846,431450,668105,NULL,NULL,NULL,0,NULL,NULL 70847,157035,174385,Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 70848,181900,1111002,Tag Editor Informed Commentator Teacher Famous Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 70849,52010,71205,Yearling,NULL,NULL,0,NULL,NULL 70850,768800,1146018,Guru Yearling Enthusiast Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70851,97002,473763,Good Answer Famous Question Nice Question Nice Question Yearling Nice Question Famous Question Notable Question Nice Question Nice Answer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Good Question Guru Famous Question Good Answer Great Question Popular Question Popular Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 70852,414092,1294119,NULL,NULL,NULL,0,NULL,NULL 70853,151017,791674,Necromancer Documentation User Popular Question,NULL,NULL,0,NULL,NULL 70854,116224,578530,NULL,NULL,NULL,0,NULL,NULL 70855,3970069,180307,Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 70856,1050914,180307,Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 70857,422261,885904,NULL,NULL,NULL,0,NULL,NULL 70858,184871,568671,Caucus,NULL,NULL,0,NULL,NULL 70859,674981,460123,NULL,NULL,NULL,0,NULL,NULL 70860,160783,317273,Popular Question Yearling Nice Question Guru Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 70861,5758,1191610,Popular Question Announcer Census Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 70862,605994,415784,Stellar Question Famous Question Announcer Good Answer Nice Answer Guru Popular Question Great Answer Good Answer Nice Answer Guru Enlightened Good Question Nice Answer Famous Question Popular Question Good Question Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Popular Question Nice Answer Good Answer Nice Answer Nice Answer Famous Question Nice Answer Notable Question Good Answer Good Question Famous Question Good Question Nice Answer Nice Answer Enlightened Great Answer Popular Question Guru Nice Answer Good Answer Guru Good Answer Nice Answer Enlightened Necromancer Famous Question Nice Answer Good Answer Nice Answer Good Answer Nice Answer Great Answer Popular Question Good Question Nice Question Good Answer Necromancer Good Answer Notable Question Famous Question Nice Answer Good Answer Nice Answer Enlightened Good Question Good Answer Good Answer Guru Great Answer Good Answer Good Answer Nice Answer Enlightened Guru Good Answer Popular Question Yearling Guru Nice Answer Good Answer Nice Answer Famous Question Good Answer Popular Question Nice Answer Notable Question Nice Answer Good Answer Famous Question Guru Guru Enlightened Notable Question Nice Answer Nice Answer Nice Answer Populist Guru Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Famous Question Notable Question Famous Question Caucus Guru Nice Answer Enlightened Nice Answer Popular Question Good Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened Stellar Question Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Famous Question Nice Answer Famous Question Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Good Question Nice Answer Nice Answer Enlightened Nice Answer Good Question Good Question Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Notable Question Good Answer Guru Good Answer Nice Answer Guru Good Answer Good Answer Popular Question Great Question Good Answer Nice Answer Good Answer Nice Answer Good Answer Good Question Nice Answer Famous Question Good Answer Nice Answer Favorite Question Nice Answer Good Answer Guru Caucus Nice Answer Popular Question Nice Question Yearling Nice Question Populist Nice Answer Good Answer Famous Question Nice Answer Good Answer Great Question Good Answer Nice Answer Good Question Nice Question Famous Question Announcer Notable Question Nice Answer Good Answer Nice Question Nice Answer Famous Question Guru Nice Answer Great Answer Notable Question Nice Question Notable Question Nice Answer Enlightened Good Question Nice Answer list Good Answer Nice Question Great Answer Nice Answer Enlightened Popular Question Guru Good Answer Good Answer Guru Good Question Favorite Question Famous Question Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Popular Question enums Good Answer Nice Answer Nice Question Good Answer Caucus Guru Enlightened Populist Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Guru Popular Question Good Answer Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Good Question Nice Answer Nice Answer Good Answer Guru Good Answer Popular Question Great Answer Nice Question Notable Question Yearling Good Answer Good Answer Great Question Guru Nice Answer Enlightened Favorite Question Notable Question Guru Great Answer Nice Answer Enlightened Good Answer Great Answer Nice Question Famous Question Great Answer Notable Question Good Answer Good Answer Good Question Nice Answer Enlightened Guru Famous Question Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer,NULL,pIf you don want to change the items as well as want to emavoid em making copies then codeauto const amp code is the correct choice ppre codefor auto const amp vec code prepWhoever suggests you to use codeauto amp code is wrong Ignore them ppHere is recap pulliChoose codeauto code when you want to work with copies liliChoose codeauto amp code when you want to work with original items and may modify them liliChoose codeauto const amp code when you want to work with original items and will not modify them li ul the reference distinction apply to copies doesn make sense to me What do you mean by that As for what said in the answer applies to ALL types fundamental as well user defined types pIf you don want to change the items as well as want to emavoid em making copies then codeauto const amp code is the correct choice ppre codefor auto const amp vec code prepWhoever suggests you to use codeauto amp code is wrong Ignore them ppHere is recap pulliChoose codeauto code when you want to work with copies liliChoose codeauto amp code when you want to work with original items and may modify them liliChoose codeauto const amp code when you want to work with original items and will not modify them li ul cannot comment on the overall speed and think nobody can without profiling it first Frankly wont base my choice on the speed rather the clarity of the code If want immutability use const for sure However whether it would be auto const or auto const has little difference choose auto const just to be more consistent strongNote strong the following code is taken from an excellent utility called href http louisdx github com cxx prettyprint rel noreferrer pretty print written by href https stackoverflow com users 596781 kerrek sb SB href https stackoverflow com questions 4850473 pretty print stl containers topic on it at stackoverflow pp strongDisclaimer don know if allowed to copy and paste this code here without taking permission from the original author let me know if you ve any issue strong phrpYou can use this classs template ppre code template lt typename gt struct is container std integral constant lt bool has const iterator lt gt value amp amp has begin end lt gt beg value amp amp has begin end lt gt end value gt code prepUsage ppre code std cout lt lt is container lt std vector lt int gt gt value lt lt std endl true std cout lt lt is container lt std list lt int gt gt value lt lt std endl true std cout lt lt is container lt std map lt int gt gt value lt lt std endl true std cout lt lt is container lt std set lt int gt gt value lt lt std endl true std cout lt lt is container lt int gt value lt lt std endl false code prepNote that codeis container code needs following helper class templates ppre codetemplate lt typename gt struct has const iterator private typedef char yes typedef struct char array no template lt typename gt static yes test typename const iterator template lt typename gt static no test public static const bool value sizeof test lt gt sizeof yes typedef type template lt typename gt struct has begin end template lt typename gt static char amp typename std enable if lt std is same lt decltype static cast lt typename const iterator const gt amp begin typename const iterator const gt value void gt type template lt typename gt static char amp template lt typename gt static char amp typename std enable if lt std is same lt decltype static cast lt typename const iterator const gt amp end typename const iterator const gt value void gt type template lt typename gt static char amp static bool const beg value sizeof lt gt static bool const end value sizeof lt gt code pre ard The example is not designed to work with universal reference whose standard name is forwarding reference http www open std org jtc1 sc22 wg21 docs papers 2014 n4164 pdf BTW but you can modify it as per your need pI know that this answer is years late but really think the current answers do not provide enough information about href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters how prototypal inheritance is better than classical inheritance ppFirst let see the most common arguments JavaScript programmers state in defence of prototypal inheritance taking these arguments from the current pool of answers polliIt simple liliIt powerful liliIt leads to smaller less redundant code liliIt dynamic and hence it better for dynamic languages li olpNow these arguments are all valid but nobody has bothered explaining why It like telling child that studying Maths is important Sure it is but the child certainly doesn care and you can make child like Maths by saying that it important ppI think the problem with prototypal inheritance is that it explained from the perspective of JavaScript love JavaScript but prototypal inheritance in JavaScript is wrong Unlike classical inheritance there are two patterns of prototypal inheritance polliThe prototypal pattern of prototypal inheritance liliThe constructor pattern of prototypal inheritance li olpUnfortunately JavaScript uses the constructor pattern of prototypal inheritance This is because when JavaScript was created href https brendaneich com rel nofollow noreferrer title Brendan Eich Brendan Eich the creator of JS wanted it to look like Java which has classical inheritance pblockquote pAnd we were pushing it as little brother to Java as complementary language like Visual Basic was to in Microsoft’s language families at the time blockquotepThis is bad because when people use constructors in JavaScript they think of constructors inheriting from other constructors This is wrong In prototypal inheritance objects inherit from other objects Constructors never come into the picture This is what confuses most people ppPeople from languages like Java which has classical inheritance get even more confused because although constructors look like classes they don behave like classes As href http www crockford com rel nofollow noreferrer title Douglas Crockford 39 Wrrrld Wide Web Douglas Crockford stated pblockquote pThis indirection was intended to make the language seem more familiar to classically trained programmers but failed to do that as we can see from the very low opinion Java programmers have of JavaScript JavaScript’s constructor pattern did not appeal to the classical crowd It also obscured JavaScript’s true prototypal nature As result there are very few programmers who know how to use the language effectively blockquotepThere you have it Straight from the horse mouth ph1True Prototypal Inheritance h1pPrototypal inheritance is all about objects Objects inherit properties from other objects That all there is to it There are two ways of creating objects using prototypal inheritance polliCreate brand new object liliClone an existing object and extend it li olp strongNote strong JavaScript offers two ways to clone an object href http aaditmshah github io why prototypal inheritance matters toc rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters delegation and href http aaditmshah github io why prototypal inheritance matters toc 10 rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters concatenation Henceforth ll use the word clone to exclusively refer to inheritance via delegation and the word copy to exclusively refer to inheritance via concatenation ppEnough talk Let see some examples Say have circle of radius code5 code ppre codevar circle radius code prepWe can calculate the area and the circumference of the circle from its radius ppre codecircle area function var radius this radius return Math PI radius radius circle circumference function return Math PI this radius code prepNow want to create another circle of radius code10 code One way to do this would be ppre codevar circle2 radius 10 area circle area circumference circle circumference code prepHowever JavaScript provides better way href http aaditmshah github io why prototypal inheritance matters delegation or differential inheritance rel nofollow noreferrer delegation Crockford href http crockford com javascript prototypal html rel nofollow noreferrer title Prototypal Inheritance codeObject create code function is used to do this ppre codevar circle2 Object create circle circle2 radius 10 code prepThat all You just did prototypal inheritance in JavaScript Wasn that simple You take an object clone it change whatever you need to and hey presto you got yourself brand new object ppNow you might ask How is this simple Every time want to create new circle need to clone codecircle code and manually assign it radius Well the solution is to use function to do the heavy lifting for you ppre codefunction createCircle radius var newCircle Object create circle newCircle radius radius return newCircle var circle2 createCircle 10 code prepIn fact you can combine all of this into single object literal as follows ppre codevar circle radius create function radius var circle Object create this circle radius radius return circle area function var radius this radius return Math PI radius radius circumference function return Math PI this radius var circle2 circle create 10 code preh1Prototypal Inheritance in JavaScript h1pIf you notice in the above program the codecreate code function creates clone of codecircle code assigns new coderadius code to it and then returns it This is exactly what constructor does in JavaScript ppre codefunction Circle radius this radius radius Circle prototype area function var radius this radius return Math PI radius radius Circle prototype circumference function return Math PI this radius var circle new Circle var circle2 new Circle 10 code prepThe constructor pattern in JavaScript is the prototypal pattern inverted Instead of creating an object you create constructor The codenew code keyword binds the codethis code pointer inside the constructor to clone of the codeprototype code of the constructor ppSounds confusing It because the constructor pattern in JavaScript unnecessarily complicates things This is what most programmers find difficult to understand ppInstead of thinking of objects inheriting from other objects they think of constructors inheriting from other constructors and then become utterly confused ppThere whole bunch of other reasons why the constructor pattern in JavaScript should be avoided You can read about them in my blog post here href http aaditmshah github io why prototypal inheritance matters constructors vs prototypes rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Constructors vs Prototypes phrpSo what are the benefits of prototypal inheritance over classical inheritance Let go through the most common arguments again and explain emwhy em ph11 Prototypal Inheritance is Simple h1p href https stackoverflow com users 5445 cms title User CMS Stack Overflow CMS states in his answer pblockquote pIn my opinion the major benefit of prototypal inheritance is its simplicity blockquotepLet consider what we just did We created an object codecircle code which had radius of code5 code Then we cloned it and gave the clone radius of code10 code ppHence we only need two things to make prototypal inheritance work polliA way to create new object object literals liliA way to extend an existing object codeObject create code li olpIn contrast classical inheritance is much more complicated In classical inheritance you have polliClasses liliObject liliInterfaces liliAbstract Classes liliFinal Classes liliVirtual Base Classes liliConstructors liliDestructors li olpYou get the idea The point is that prototypal inheritance is easier to understand easier to implement and easier to reason about ppAs Steve Yegge puts it in his classical blog post href http steve yegge blogspot in 2008 02 portrait of n00b html rel nofollow noreferrer title Stevey 39 Blog Rants Portrait of N00b Portrait of N00b pblockquote pMetadata is any kind of description or model of something else The comments in your code are just natural language description of the computation What makes metadata meta data is that it not strictly necessary If have dog with some pedigree paperwork and lose the paperwork still have perfectly valid dog blockquotepIn the same sense classes are just meta data Classes aren strictly required for inheritance However some people usually n00bs find classes more comfortable to work with It gives them false sense of security pblockquote pWell we also know that static types are just metadata They re specialized kind of comment targeted at two kinds of readers programmers and compilers Static types tell story about the computation presumably to help both reader groups understand the intent of the program But the static types can be thrown away at runtime because in the end they re just stylized comments They re like pedigree paperwork it might make certain insecure personality type happier about their dog but the dog certainly doesn care blockquotepAs stated earlier classes give people false sense of security For example you get too many codeNullPointerException codes in Java even when your code is perfectly legible find classical inheritance usually gets in the way of programming but maybe that just Java Python has an amazing classical inheritance system ph12 Prototypal Inheritance is Powerful h1pMost programmers who come from classical background argue that classical inheritance is more powerful than prototypal inheritance because it has polliPrivate variables liliMultiple inheritance li olpThis claim is false We already know that JavaScript supports href http javascript crockford com private html rel nofollow noreferrer title Private Members in JavaScript private variables via closures but what about multiple inheritance Objects in JavaScript only have one prototype ppThe truth is that prototypal inheritance supports inheriting from multiple prototypes Prototypal inheritance simply means one object inheriting from another object There are actually href http aaditmshah github io why prototypal inheritance matters two methods of prototypal inheritance rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters two ways to implement prototypal inheritance polliDelegation or Differential Inheritance liliCloning or Concatenative Inheritance li olpYes JavaScript only allows objects to delegate to one other object However it allows you to copy the properties of an arbitrary number of objects For example href http underscorejs org extend rel nofollow noreferrer title Underscore js code extend code does just this ppOf course many programmers don consider this to be true inheritance because href https developer mozilla org en US docs Web JavaScript Reference Operators instanceof rel nofollow noreferrer title instanceof JavaScript MDN codeinstanceof code and href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object isPrototypeOf rel nofollow noreferrer title Object isPrototypeOf JavaScript MDN codeisPrototypeOf code say otherwise However this can be easily remedied by storing an array of prototypes on every object which inherits from prototype via concatenation ppre codefunction copyOf object prototype var prototypes object prototypes var prototypeOf Object isPrototypeOf return prototypes indexOf prototype gt prototypes some prototypeOf prototype code prepHence prototypal inheritance is just as powerful as classical inheritance In fact it much more powerful than classical inheritance because in prototypal inheritance you can hand pick which properties to copy and which properties to omit from different prototypes ppIn classical inheritance it impossible or at least very difficult to choose which properties you want to inherit They use virtual base classes and interfaces to solve href http en wikipedia org wiki Multiple inheritance The diamond problem rel nofollow noreferrer title Multiple inheritance Wikipedia the free encyclopedia the diamond problem ppIn JavaScript however you ll most likely never hear of the diamond problem because you can control exactly which properties you wish to inherit and from which prototypes ph13 Prototypal Inheritance is Less Redundant h1pThis point is little more difficult to explain because classical inheritance doesn necessarily lead to more redundant code In fact inheritance whether classical or prototypal is used to reduce the redundancy in code ppOne argument could be that most programming languages with classical inheritance are statically typed and require the user to explicitly declare types unlike Haskell which has implicit static typing Hence this leads to more verbose code ppJava is notorious for this behavior distinctly remember href https twitter com munificentbob rel nofollow noreferrer title Bob Nystrom munificentbob on Twitter Bob Nystrom mentioning the following anecdote in his blog post about href http journal stuffwithstuff com 2011 03 19 pratt parsers expression parsing made easy rel nofollow noreferrer title Pratt Parsers Expression Parsing Made Easy ndash journal stuffwithstuff com Pratt Parsers pblockquote pYou gotta love Java please sign it in quadruplicate level of bureaucracy here blockquotepAgain think that only because Java sucks so much ppOne valid argument is that not all languages which have classical inheritance support multiple inheritance Again Java comes to mind Yes Java has interfaces but that not sufficient Sometimes you really need multiple inheritance ppSince prototypal inheritance allows for multiple inheritance code which requires multiple inheritance is less redundant if written using prototypal inheritance rather than in language which has classical inheritance but no multiple inheritance ph14 Prototypal Inheritance is Dynamic h1pOne of the most important advantages of prototypal inheritance is that you can add new properties to prototypes after they are created This allows you to add new methods to prototype which will be automatically made available to all the objects which delegate to that prototype ppThis is not possible in classical inheritance because once class is created you can modify it at runtime This is probably the single biggest advantage of prototypal inheritance over classical inheritance and it should have been at the top However like saving the best for the end ph1Conclusion h1pPrototypal inheritance matters It important to educate JavaScript programmers on why to abandon the constructor pattern of prototypal inheritance in favor of the prototypal pattern of prototypal inheritance ppWe need to start teaching JavaScript correctly and that means showing new programmers how to write code using the prototypal pattern instead of the constructor pattern ppNot only will it be it easier to explain prototypal inheritance using the prototypal pattern but it will also make better programmers ppIf you liked this answer then you should also read my blog post on href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Why Prototypal Inheritance Matters Trust me you will not be disappointed dont understand how you could have prototypal inheritance in static language How would the compiler check for member and its semantic when it is going to be added at runtime assume prototypal inheritance allows you to add member at runtime if you however differ at this assumption then that is different matter altogether pI know that this answer is years late but really think the current answers do not provide enough information about href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters how prototypal inheritance is better than classical inheritance ppFirst let see the most common arguments JavaScript programmers state in defence of prototypal inheritance taking these arguments from the current pool of answers polliIt simple liliIt powerful liliIt leads to smaller less redundant code liliIt dynamic and hence it better for dynamic languages li olpNow these arguments are all valid but nobody has bothered explaining why It like telling child that studying Maths is important Sure it is but the child certainly doesn care and you can make child like Maths by saying that it important ppI think the problem with prototypal inheritance is that it explained from the perspective of JavaScript love JavaScript but prototypal inheritance in JavaScript is wrong Unlike classical inheritance there are two patterns of prototypal inheritance polliThe prototypal pattern of prototypal inheritance liliThe constructor pattern of prototypal inheritance li olpUnfortunately JavaScript uses the constructor pattern of prototypal inheritance This is because when JavaScript was created href https brendaneich com rel nofollow noreferrer title Brendan Eich Brendan Eich the creator of JS wanted it to look like Java which has classical inheritance pblockquote pAnd we were pushing it as little brother to Java as complementary language like Visual Basic was to in Microsoft’s language families at the time blockquotepThis is bad because when people use constructors in JavaScript they think of constructors inheriting from other constructors This is wrong In prototypal inheritance objects inherit from other objects Constructors never come into the picture This is what confuses most people ppPeople from languages like Java which has classical inheritance get even more confused because although constructors look like classes they don behave like classes As href http www crockford com rel nofollow noreferrer title Douglas Crockford 39 Wrrrld Wide Web Douglas Crockford stated pblockquote pThis indirection was intended to make the language seem more familiar to classically trained programmers but failed to do that as we can see from the very low opinion Java programmers have of JavaScript JavaScript’s constructor pattern did not appeal to the classical crowd It also obscured JavaScript’s true prototypal nature As result there are very few programmers who know how to use the language effectively blockquotepThere you have it Straight from the horse mouth ph1True Prototypal Inheritance h1pPrototypal inheritance is all about objects Objects inherit properties from other objects That all there is to it There are two ways of creating objects using prototypal inheritance polliCreate brand new object liliClone an existing object and extend it li olp strongNote strong JavaScript offers two ways to clone an object href http aaditmshah github io why prototypal inheritance matters toc rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters delegation and href http aaditmshah github io why prototypal inheritance matters toc 10 rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters concatenation Henceforth ll use the word clone to exclusively refer to inheritance via delegation and the word copy to exclusively refer to inheritance via concatenation ppEnough talk Let see some examples Say have circle of radius code5 code ppre codevar circle radius code prepWe can calculate the area and the circumference of the circle from its radius ppre codecircle area function var radius this radius return Math PI radius radius circle circumference function return Math PI this radius code prepNow want to create another circle of radius code10 code One way to do this would be ppre codevar circle2 radius 10 area circle area circumference circle circumference code prepHowever JavaScript provides better way href http aaditmshah github io why prototypal inheritance matters delegation or differential inheritance rel nofollow noreferrer delegation Crockford href http crockford com javascript prototypal html rel nofollow noreferrer title Prototypal Inheritance codeObject create code function is used to do this ppre codevar circle2 Object create circle circle2 radius 10 code prepThat all You just did prototypal inheritance in JavaScript Wasn that simple You take an object clone it change whatever you need to and hey presto you got yourself brand new object ppNow you might ask How is this simple Every time want to create new circle need to clone codecircle code and manually assign it radius Well the solution is to use function to do the heavy lifting for you ppre codefunction createCircle radius var newCircle Object create circle newCircle radius radius return newCircle var circle2 createCircle 10 code prepIn fact you can combine all of this into single object literal as follows ppre codevar circle radius create function radius var circle Object create this circle radius radius return circle area function var radius this radius return Math PI radius radius circumference function return Math PI this radius var circle2 circle create 10 code preh1Prototypal Inheritance in JavaScript h1pIf you notice in the above program the codecreate code function creates clone of codecircle code assigns new coderadius code to it and then returns it This is exactly what constructor does in JavaScript ppre codefunction Circle radius this radius radius Circle prototype area function var radius this radius return Math PI radius radius Circle prototype circumference function return Math PI this radius var circle new Circle var circle2 new Circle 10 code prepThe constructor pattern in JavaScript is the prototypal pattern inverted Instead of creating an object you create constructor The codenew code keyword binds the codethis code pointer inside the constructor to clone of the codeprototype code of the constructor ppSounds confusing It because the constructor pattern in JavaScript unnecessarily complicates things This is what most programmers find difficult to understand ppInstead of thinking of objects inheriting from other objects they think of constructors inheriting from other constructors and then become utterly confused ppThere whole bunch of other reasons why the constructor pattern in JavaScript should be avoided You can read about them in my blog post here href http aaditmshah github io why prototypal inheritance matters constructors vs prototypes rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Constructors vs Prototypes phrpSo what are the benefits of prototypal inheritance over classical inheritance Let go through the most common arguments again and explain emwhy em ph11 Prototypal Inheritance is Simple h1p href https stackoverflow com users 5445 cms title User CMS Stack Overflow CMS states in his answer pblockquote pIn my opinion the major benefit of prototypal inheritance is its simplicity blockquotepLet consider what we just did We created an object codecircle code which had radius of code5 code Then we cloned it and gave the clone radius of code10 code ppHence we only need two things to make prototypal inheritance work polliA way to create new object object literals liliA way to extend an existing object codeObject create code li olpIn contrast classical inheritance is much more complicated In classical inheritance you have polliClasses liliObject liliInterfaces liliAbstract Classes liliFinal Classes liliVirtual Base Classes liliConstructors liliDestructors li olpYou get the idea The point is that prototypal inheritance is easier to understand easier to implement and easier to reason about ppAs Steve Yegge puts it in his classical blog post href http steve yegge blogspot in 2008 02 portrait of n00b html rel nofollow noreferrer title Stevey 39 Blog Rants Portrait of N00b Portrait of N00b pblockquote pMetadata is any kind of description or model of something else The comments in your code are just natural language description of the computation What makes metadata meta data is that it not strictly necessary If have dog with some pedigree paperwork and lose the paperwork still have perfectly valid dog blockquotepIn the same sense classes are just meta data Classes aren strictly required for inheritance However some people usually n00bs find classes more comfortable to work with It gives them false sense of security pblockquote pWell we also know that static types are just metadata They re specialized kind of comment targeted at two kinds of readers programmers and compilers Static types tell story about the computation presumably to help both reader groups understand the intent of the program But the static types can be thrown away at runtime because in the end they re just stylized comments They re like pedigree paperwork it might make certain insecure personality type happier about their dog but the dog certainly doesn care blockquotepAs stated earlier classes give people false sense of security For example you get too many codeNullPointerException codes in Java even when your code is perfectly legible find classical inheritance usually gets in the way of programming but maybe that just Java Python has an amazing classical inheritance system ph12 Prototypal Inheritance is Powerful h1pMost programmers who come from classical background argue that classical inheritance is more powerful than prototypal inheritance because it has polliPrivate variables liliMultiple inheritance li olpThis claim is false We already know that JavaScript supports href http javascript crockford com private html rel nofollow noreferrer title Private Members in JavaScript private variables via closures but what about multiple inheritance Objects in JavaScript only have one prototype ppThe truth is that prototypal inheritance supports inheriting from multiple prototypes Prototypal inheritance simply means one object inheriting from another object There are actually href http aaditmshah github io why prototypal inheritance matters two methods of prototypal inheritance rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters two ways to implement prototypal inheritance polliDelegation or Differential Inheritance liliCloning or Concatenative Inheritance li olpYes JavaScript only allows objects to delegate to one other object However it allows you to copy the properties of an arbitrary number of objects For example href http underscorejs org extend rel nofollow noreferrer title Underscore js code extend code does just this ppOf course many programmers don consider this to be true inheritance because href https developer mozilla org en US docs Web JavaScript Reference Operators instanceof rel nofollow noreferrer title instanceof JavaScript MDN codeinstanceof code and href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object isPrototypeOf rel nofollow noreferrer title Object isPrototypeOf JavaScript MDN codeisPrototypeOf code say otherwise However this can be easily remedied by storing an array of prototypes on every object which inherits from prototype via concatenation ppre codefunction copyOf object prototype var prototypes object prototypes var prototypeOf Object isPrototypeOf return prototypes indexOf prototype gt prototypes some prototypeOf prototype code prepHence prototypal inheritance is just as powerful as classical inheritance In fact it much more powerful than classical inheritance because in prototypal inheritance you can hand pick which properties to copy and which properties to omit from different prototypes ppIn classical inheritance it impossible or at least very difficult to choose which properties you want to inherit They use virtual base classes and interfaces to solve href http en wikipedia org wiki Multiple inheritance The diamond problem rel nofollow noreferrer title Multiple inheritance Wikipedia the free encyclopedia the diamond problem ppIn JavaScript however you ll most likely never hear of the diamond problem because you can control exactly which properties you wish to inherit and from which prototypes ph13 Prototypal Inheritance is Less Redundant h1pThis point is little more difficult to explain because classical inheritance doesn necessarily lead to more redundant code In fact inheritance whether classical or prototypal is used to reduce the redundancy in code ppOne argument could be that most programming languages with classical inheritance are statically typed and require the user to explicitly declare types unlike Haskell which has implicit static typing Hence this leads to more verbose code ppJava is notorious for this behavior distinctly remember href https twitter com munificentbob rel nofollow noreferrer title Bob Nystrom munificentbob on Twitter Bob Nystrom mentioning the following anecdote in his blog post about href http journal stuffwithstuff com 2011 03 19 pratt parsers expression parsing made easy rel nofollow noreferrer title Pratt Parsers Expression Parsing Made Easy ndash journal stuffwithstuff com Pra,,, "t Parsers pblockquote pYou gotta love Java please sign it in quadruplicate level of bureaucracy here blockquotepAgain think that only because Java sucks so much ppOne valid argument is that not all languages which have classical inheritance support multiple inheritance Again Java comes to mind Yes Java has interfaces but that not sufficient Sometimes you really need multiple inheritance ppSince prototypal inheritance allows for multiple inheritance code which requires multiple inheritance is less redundant if written using prototypal inheritance rather than in language which has classical inheritance but no multiple inheritance ph14 Prototypal Inheritance is Dynamic h1pOne of the most important advantages of prototypal inheritance is that you can add new properties to prototypes after they are created This allows you to add new methods to prototype which will be automatically made available to all the objects which delegate to that prototype ppThis is not possible in classical inheritance because once class is created you can modify it at runtime This is probably the single biggest advantage of prototypal inheritance over classical inheritance and it should have been at the top However like saving the best for the end ph1Conclusion h1pPrototypal inheritance matters It important to educate JavaScript programmers on why to abandon the constructor pattern of prototypal inheritance in favor of the prototypal pattern of prototypal inheritance ppWe need to start teaching JavaScript correctly and that means showing new programmers how to write code using the prototypal pattern instead of the constructor pattern ppNot only will it be it easier to explain prototypal inheritance using the prototypal pattern but it will also make better programmers ppIf you liked this answer then you should also read my blog post on href http aaditmshah github io why prototypal inheritance matters rel nofollow noreferrer title Aadit Shah Why Prototypal Inheritance Matters Why Prototypal Inheritance Matters Trust me you will not be disappointed agree that it can be done and that is what is sorta done by Javascript or Python using prototype py https github com airportyh prototype py But then once you have such language the language is no more static language which in turn means the things static analysis auto complete pop up documentation you talked about in one of your comment are not available to you at least in this context pConsider this code ppre codeint some int 100 while some int 100 your code code prepWhen this program gets compiled the compiler may optimize this code if it finds that the program strongnever strong ever makes any attempt to change the value of codesome int code so it may be tempted to optimize the codewhile code loop by changing it from codewhile some int 100 code to simply codewhile true code so that the execution could be fast since the condition in codewhile code loop appears to be codetrue code always em if the compiler doesn optimize it then it has to fetch the value of codesome int code if it not loaded on register and compare it with 100 each time which obviously is little bit slow em ppHowever sometimes optimization of some parts of your program may be strongundesirable strong because it may be that someone else is changing the value of codesome int code from strongoutside the program which compiler is not aware of strong since it can see it but it how you ve designed it In that case compiler optimization would strongnot strong produce the desired result ppSo to ensure the desired result you need to somehow stop the compiler from optimizing the codewhile code loop That is where the codevolatile code keyword plays its role All you need to do is this ppre codevolatile int some int 100 note the volatile qualifier now code prehrpIn others words would explain this as follows pp codevolatile code tells the compiler that pblockquote Hey compiler volatile and you know can be changed by some XYZ that you re not even aware of That XYZ could be anything Maybe some alien outside this planet called program Maybe some lighting some form of interrupt volcanoes etc can mutate me Maybe You never know who is going to change me So you ignorant stop playing an all knowing god and don dare touch the code where present Okay blockquotepWell that is how codevolatile code prevents compiler from optimizing code Now search the web to see some sample examples phrpQuoting from the Standard pblockquote volatile is hint to the implementation to strongavoid aggressive optimization involving the object strong because the value of the object might be changed by means undetectable by an implementation blockquotepRelated topic pp href https stackoverflow com questions 4479597 does making struct volatile make all its members volatile 4479652 Does making struct volatile make all its members volatile Java and are not the same language So please dont mix them pConsider this code ppre codeint some int 100 while some int 100 your code code prepWhen this program gets compiled the compiler may optimize this code if it finds that the program strongnever strong ever makes any attempt to change the value of codesome int code so it may be tempted to optimize the codewhile code loop by changing it from codewhile some int 100 code to simply codewhile true code so that the execution could be fast since the condition in codewhile code loop appears to be codetrue code always em if the compiler doesn optimize it then it has to fetch the value of codesome int code if it not loaded on register and compare it with 100 each time which obviously is little bit slow em ppHowever sometimes optimization of some parts of your program may be strongundesirable strong because it may be that someone else is changing the value of codesome int code from strongoutside the program which compiler is not aware of strong since it can see it but it how you ve designed it In that case compiler optimization would strongnot strong produce the desired result ppSo to ensure the desired result you need to somehow stop the compiler from optimizing the codewhile code loop That is where the codevolatile code keyword plays its role All you need to do is this ppre codevolatile int some int 100 note the volatile qualifier now code prehrpIn others words would explain this as follows pp codevolatile code tells the compiler that pblockquote Hey compiler volatile and you know can be changed by some XYZ that you re not even aware of That XYZ could be anything Maybe some alien outside this planet called program Maybe some lighting some form of interrupt volcanoes etc can mutate me Maybe You never know who is going to change me So you ignorant stop playing an all knowing god and don dare touch the code where present Okay blockquotepWell that is how codevolatile code prevents compiler from optimizing code Now search the web to see some sample examples phrpQuoting from the Standard pblockquote volatile is hint to the implementation to strongavoid aggressive optimization involving the object strong because the value of the object might be changed by means undetectable by an implementation blockquotepRelated topic pp href https stackoverflow com questions 4479597 does making struct volatile make all its members volatile 4479652 Does making struct volatile make all its members volatile dont think anybody has time to come up with sample code to verify this concept because that is difficult task Note that absence of volatile doesn guarantee that the loading of variable will be optimised away It is just that presence of volatile ensures that it is NOT optimised away even though it is quite possible without the keyword as well the difference is that absence doesn ensure that pConsider this code ppre codeint some int 100 while some int 100 your code code prepWhen this program gets compiled the compiler may optimize this code if it finds that the program strongnever strong ever makes any attempt to change the value of codesome int code so it may be tempted to optimize the codewhile code loop by changing it from codewhile some int 100 code to simply codewhile true code so that the execution could be fast since the condition in codewhile code loop appears to be codetrue code always em if the compiler doesn optimize it then it has to fetch the value of codesome int code if it not loaded on register and compare it with 100 each time which obviously is little bit slow em ppHowever sometimes optimization of some parts of your program may be strongundesirable strong because it may be that someone else is changing the value of codesome int code from strongoutside the program which compiler is not aware of strong since it can see it but it how you ve designed it In that case compiler optimization would strongnot strong produce the desired result ppSo to ensure the desired result you need to somehow stop the compiler from optimizing the codewhile code loop That is where the codevolatile code keyword plays its role All you need to do is this ppre codevolatile int some int 100 note the volatile qualifier now code prehrpIn others words would explain this as follows pp codevolatile code tells the compiler that pblockquote Hey compiler volatile and you know can be changed by some XYZ that you re not even aware of That XYZ could be anything Maybe some alien outside this planet called program Maybe some lighting some form of interrupt volcanoes etc can mutate me Maybe You never know who is going to change me So you ignorant stop playing an all knowing god and don dare touch the code where present Okay blockquotepWell that is how codevolatile code prevents compiler from optimizing code Now search the web to see some sample examples phrpQuoting from the Standard pblockquote volatile is hint to the implementation to strongavoid aggressive optimization involving the object strong because the value of the object might be changed by means undetectable by an implementation blockquotepRelated topic pp href https stackoverflow com questions 4479597 does making struct volatile make all its members volatile 4479652 Does making struct volatile make all its members volatile If it does not need actual memory space where will the value get stored Think in terms of this volatile int val 10 then does val point to valid address""",stellar question famous question announcer good answer nice answer guru popular question great answer good answer nice answer guru enlighten good question nice answer famous question popular question good question nice question nice answer enlighten good answer nice answer enlighten popular question nice answer good answer nice answer nice answer famous question nice answer notable question good answer good question famous question good question nice answer nice answer enlighten great answer popular question guru nice answer good answer guru good answer nice answer enlighten necromancer famous question nice answer good answer nice answer good answer nice answer great answer popular question good question nice question good answer necromancer good answer notable question famous question nice answer good answer nice answer enlighten good question good answer good answer guru great answer good answer good answer nice answer enlighten guru good answer popular question yearle guru nice answer good answer nice answer famous question good answer popular question nice answer notable question nice answer good answer famous question guru guru enlighten notable question nice answer nice answer nice answer populist guru popular question nice answer nice answer enlighten good answer nice answer enlighten guru good answer nice answer famous question notable question famous question caucus guru nice answer enlighten nice answer popular question good answer popular question nice answer good answer nice answer enlighten stellar question good answer nice answer good answer nice answer nice answer nice answer enlighten nice answer nice answer nice answer nice answer enlighten nice answer nice answer enlighten famous question nice answer famous question guru nice answer nice answer nice answer enlighten nice answer enlighten nice answer enlighten good answer guru good question nice answer nice answer enlighten nice answer good question good question nice answer nice answer enlighten nice answer great answer good answer notable question good answer guru good answer nice answer guru good answer good answer popular question great question good answer nice answer good answer nice answer good answer good question nice answer famous question good answer nice answer favorite question nice answer good answer guru caucus nice answer popular question nice question yearle nice question populist nice answer good answer famous question nice answer good answer great question good answer nice answer good question nice question famous question announcer notable question nice answer good answer nice question nice answer famous question guru nice answer great answer notable question nice question notable question nice answer enlighten good question nice answer list good answer nice question great answer nice answer enlighten popular question guru good answer good answer guru good question favorite question famous question nice answer enlighten nice answer nice answer nice answer nice answer nice answer nice answer enlighten popular question enum good answer nice answer nice question good answer caucus guru enlighten populist good answer good answer nice answer enlighten good answer nice answer nice answer guru popular question good answer good answer good answer good answer good answer nice answer nice answer nice answer guru nice answer nice answer nice answer good question nice answer nice answer good answer guru good answer popular question great answer nice question notable question yearle good answer good answer great question guru nice answer enlighten favorite question notable question guru great answer nice answer enlighten good answer great answer nice question famous question great answer notable question good answer good answer good question nice answer enlighten guru famous question great answer nice answer enlighten good answer nice answer enlighten nice answer pif change item emavoid -PRON- make copy codeauto const amp code correct choice codefor auto const amp vec code prepwhoever suggest codeauto amp code wrong ignore pphere recap pullichoose codeauto code work copy lilichoose codeauto amp code work original item modify lilichoose codeauto const amp code work original item modify li reference distinction apply copy make sense answer apply type fundamental user define type pif change item emavoid -PRON- make copy codeauto const amp code correct choice codefor auto const amp vec code prepwhoever suggest codeauto amp code wrong ignore pphere recap pullichoose codeauto code work copy lilichoose codeauto amp code work original item modify lilichoose codeauto const amp code work original item modify li comment speed profile frankly not base choice speed clarity code immutability const auto const auto const difference choose auto const consistent strongnote strong code excellent utility call href http louisdx github cxx prettyprint noreferrer pretty print write href https stackoverflow user kerrek sb sb href https stackoverflow question pretty print stl container topic stackoverflow allow copy code take permission original author issue strong classs template code template lt typename struct container std integral constant lt bool const iterator lt amp amp begin end lt beg amp amp begin end lt end code prepusage code std cout lt lt container lt std vector lt int lt lt std endl true std cout lt lt container lt std list lt int lt lt std endl true std cout lt lt container lt std map lt int lt lt std endl true std cout lt lt container lt std set lt int lt lt std endl true std cout lt lt container lt int lt lt std endl false code prepnote codei container code helper class template codetemplate lt typename struct const iterator private typedef char typedef struct char array template lt typename static test typename const iterator template lt typename static test public static const bool sizeof test lt sizeof typedef type template lt typename struct begin end template lt typename static char amp typename std lt std lt decltype static cast lt typename const iterator const amp begin typename const iterator const void type template lt typename static char amp template lt typename static char amp typename std lt std lt decltype static cast lt typename const iterator const amp end typename const iterator const void type template lt typename static char amp static bool const beg sizeof lt static bool const end sizeof lt code ard design work universal reference standard forward reference http open std org docs paper pdf btw modify pi answer year late current answer provide information href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance classical inheritance ppfirst common argument javascript programmer state defence prototypal inheritance take argument current pool answer polliit simple liliit powerful liliit lead small redundant code liliit dynamic dynamic language li olpnow argument valid bother explain tell child study math important child care make child math important ppi problem prototypal inheritance explain perspective javascript love javascript prototypal inheritance javascript wrong classical inheritance pattern prototypal inheritance pollithe prototypal pattern prototypal inheritance lilithe constructor pattern prototypal inheritance li javascript constructor pattern prototypal inheritance javascript create href https brendaneich nofollow noreferrer title brendan eich brendan eich creator js want java classical inheritance pblockquote pand push brother java complementary language visual basic microsoft language family time blockquotepthis bad people constructor javascript constructor inherit constructor wrong prototypal inheritance object inherit object constructor picture confuse people pppeople language java classical inheritance confuse constructor class behave class href http crockford nofollow noreferrer title crockford wrrrld wide web crockford state pblockquote indirection intend make language familiar classically train programmer fail low opinion java programmer javascript javascript constructor pattern appeal classical crowd obscure javascript true prototypal nature result programmer language effectively straight horse mouth prototypal inheritance inheritance object object inherit property object way create object prototypal inheritance pollicreate brand object liliclone exist object extend li olp strongnote strong javascript offer way clone object href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter delegation href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter concatenation henceforth word clone exclusively refer inheritance delegation word copy exclusively refer inheritance concatenation ppenough talk example circle radius code codevar circle radius code prepwe calculate area circumference circle radius codecircle area function var radius radius return math pi radius radius circle circumference function return math pi radius code prepnow create circle radius code codevar radius area circle area circumference circle circumference code prephowever javascript href http aaditmshah github prototypal inheritance matter delegation differential inheritance nofollow noreferrer delegation crockford href http crockford javascript prototypal html nofollow noreferrer title prototypal inheritance codeobject create code function codevar object create circle radius code prepthat prototypal inheritance javascript simple object clone change hey presto brand object ppnow simple time create circle clone codecircle code manually assign radius solution function heavy lifting codefunction createcircle radius var newcircle object create circle newcircle radius radius return newcircle var createcircle code prepin fact combine single object literal codevar circle radius create function radius var circle object create circle radius radius return circle area function var radius radius return math pi radius radius circumference function return math pi radius var circle create code inheritance javascript notice program codecreate code function create clone codecircle code assign coderadius code return constructor javascript codefunction circle radius radius radius circle prototype area function var radius radius return math pi radius radius circle prototype circumference function return math pi radius var circle circle var circle code prepthe constructor pattern javascript prototypal pattern invert create object create constructor codenew code keyword bind codethis code pointer constructor clone codeprototype code constructor ppsound confuse constructor pattern javascript unnecessarily complicate thing programmer difficult understand ppinstead think object inherit object constructor inherit constructor utterly confuse ppthere bunch reason constructor pattern javascript avoid read blog post href http aaditmshah github prototypal inheritance matter constructor prototype nofollow noreferrer title aadit shah prototypal inheritance matter constructor prototype phrpso benefit prototypal inheritance classical inheritance common argument explain emwhy -PRON- prototypal inheritance simple href https stackoverflow user cms title user cms stack overflow cms state answer pblockquote pin opinion major benefit prototypal inheritance simplicity blockquoteplet create object codecircle code radius code clone give clone radius code pphence thing make prototypal inheritance work pollia create object object literal lilia extend exist object codeobject create code li olpin contrast classical inheritance complicate classical inheritance polliclasse liliobject liliinterface liliabstract class lilifinal class lilivirtual base class lilidestructor li idea point prototypal inheritance easy understand easy implement easy reason ppas steve yegge put classical blog post href http steve yegge blogspot portrait html nofollow noreferrer title stevey blog rant portrait portrait pblockquote pmetadata kind description model comment code natural language description computation make metadata meta datum strictly dog pedigree paperwork lose paperwork perfectly valid dog blockquotepin sense class meta datum class strictly require inheritance people class comfortable work false sense security pblockquote pwell static type metadata specialize kind comment target kind reader programmer compiler static type story computation reader group understand intent program static type throw runtime end stylize comment pedigree paperwork make insecure personality type happy dog dog care blockquotepas state earlier class people false sense security code java code perfectly legible classical inheritance programming java python amazing classical inheritance prototypal inheritance powerful programmer classical background argue classical inheritance powerful prototypal inheritance polliprivate variable lilimultiple inheritance li olpthis claim false javascript support href http javascript crockford private html nofollow noreferrer title private member javascript private variable closure multiple inheritance object javascript prototype ppthe truth prototypal inheritance support inherit multiple prototype prototypal inheritance simply mean object inherit object href http aaditmshah github prototypal inheritance matter method prototypal inheritance nofollow noreferrer title aadit shah prototypal inheritance matter way implement prototypal inheritance pollidelegation differential inheritance liliclone concatenative inheritance li olpye javascript object delegate object copy property arbitrary number object href http underscorejs org extend nofollow noreferrer title underscore js code extend code ppof programmer true inheritance href https developer mozilla org docs web javascript reference operator instanceof nofollow noreferrer title instanceof javascript mdn codeinstanceof code href https developer mozilla org docs web javascript reference global object object isprototypeof nofollow noreferrer title object isprototypeof javascript mdn code easily remedie store array prototype object inherit prototype concatenation codefunction copyof object prototype var prototype object prototype var prototypeof object isprototypeof return prototype indexof prototype prototype prototypeof prototype code prephence prototypal inheritance powerful classical inheritance fact powerful classical inheritance prototypal inheritance hand pick property copy property omit prototype ppin classical inheritance impossible difficult choose property inherit virtual base class interface solve href http wikipedia org wiki multiple inheritance diamond problem nofollow noreferrer title multiple inheritance wikipedia free encyclopedia diamond problem ppin javascript hear diamond problem control property inherit prototype prototypal inheritance redundant point difficult explain classical inheritance necessarily lead redundant code fact inheritance classical prototypal reduce redundancy code ppone argument programming language classical inheritance statically type require user explicitly declare type haskell implicit static type lead verbose code ppjava notorious behavior distinctly remember href https twitter munificentbob nofollow noreferrer title bob nystrom munificentbob twitter bob nystrom mention anecdote blog post href http journal stuffwithstuff pratt parser expression parse easy nofollow noreferrer title pratt parser expression parse easy ndash journal stuffwithstuff pratt parser pblockquote pyou love java sign quadruplicate level bureaucracy java suck ppone valid argument language classical inheritance support multiple inheritance java mind java interface sufficient multiple inheritance ppsince prototypal inheritance multiple inheritance code require multiple inheritance redundant write prototypal inheritance language classical inheritance multiple inheritance prototypal inheritance dynamic important advantage prototypal inheritance add property prototype create add method prototype automatically object delegate prototype ppthis classical inheritance class create modify runtime single big advantage prototypal inheritance classical inheritance save end inheritance matter important educate javascript programmer abandon constructor pattern prototypal inheritance favor prototypal pattern prototypal inheritance ppwe start teaching javascript correctly mean show programmer write code prototypal pattern constructor pattern ppnot easy explain prototypal inheritance prototypal pattern make programmer ppif answer read blog post href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance matter trust disappoint do not understand prototypal inheritance static language compiler check member semantic add runtime assume prototypal inheritance add member runtime differ assumption matter altogether pi answer year late current answer provide information href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance classical inheritance ppfirst common argument javascript programmer state defence prototypal inheritance take argument current pool answer polliit simple liliit powerful liliit lead small redundant code liliit dynamic dynamic language li olpnow argument valid bother explain tell child study math important child care make child math important ppi problem prototypal inheritance explain perspective javascript love javascript prototypal inheritance javascript wrong classical inheritance pattern prototypal inheritance pollithe prototypal pattern prototypal inheritance lilithe constructor pattern prototypal inheritance li javascript constructor pattern prototypal inheritance javascript create href https brendaneich nofollow noreferrer title brendan eich brendan eich creator js want java classical inheritance pblockquote pand push brother java complementary language visual basic microsoft language family time blockquotepthis bad people constructor javascript constructor inherit constructor wrong prototypal inheritance object inherit object constructor picture confuse people pppeople language java classical inheritance confuse constructor class behave class href http crockford nofollow noreferrer title crockford wrrrld wide web crockford state pblockquote indirection intend make language familiar classically train programmer fail low opinion java programmer javascript javascript constructor pattern appeal classical crowd obscure javascript true prototypal nature result programmer language effectively straight horse mouth prototypal inheritance inheritance object object inherit property object way create object prototypal inheritance pollicreate brand object liliclone exist object extend li olp strongnote strong javascript offer way clone object href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter delegation href http aaditmshah github prototypal inheritance matter toc nofollow noreferrer title aadit shah prototypal inheritance matter concatenation henceforth word clone exclusively refer inheritance delegation word copy exclusively refer inheritance concatenation ppenough talk example circle radius code codevar circle radius code prepwe calculate area circumference circle radius codecircle area function var radius radius return math pi radius radius circle circumference function return math pi radius code prepnow create circle radius code codevar radius area circle area circumference circle circumference code prephowever javascript href http aaditmshah github prototypal inheritance matter delegation differential inheritance nofollow noreferrer delegation crockford href http crockford javascript prototypal html nofollow noreferrer title prototypal inheritance codeobject create code function codevar object create circle radius code prepthat prototypal inheritance javascript simple object clone change hey presto brand object ppnow simple time create circle clone codecircle code manually assign radius solution function heavy lifting codefunction createcircle radius var newcircle object create circle newcircle radius radius return newcircle var createcircle code prepin fact combine single object literal codevar circle radius create function radius var circle object create circle radius radius return circle area function var radius radius return math pi radius radius circumference function return math pi radius var circle create code inheritance javascript notice program codecreate code function create clone codecircle code assign coderadius code return constructor javascript codefunction circle radius radius radius circle prototype area function var radius radius return math pi radius radius circle prototype circumference function return math pi radius var circle circle var circle code prepthe constructor pattern javascript prototypal pattern invert create object create constructor codenew code keyword bind codethis code pointer constructor clone codeprototype code constructor ppsound confuse constructor pattern javascript unnecessarily complicate thing programmer difficult understand ppinstead think object inherit object constructor inherit constructor utterly confuse ppthere bunch reason constructor pattern javascript avoid read blog post href http aaditmshah github prototypal inheritance matter constructor prototype nofollow noreferrer title aadit shah prototypal inheritance matter constructor prototype phrpso benefit prototypal inheritance classical inheritance common argument explain emwhy -PRON- prototypal inheritance simple href https stackoverflow user cms title user cms stack overflow cms state answer pblockquote pin opinion major benefit prototypal inheritance simplicity blockquoteplet create object codecircle code radius code clone give clone radius code pphence thing make prototypal inheritance work pollia create object object literal lilia extend exist object codeobject create code li olpin contrast classical inheritance complicate classical inheritance polliclasse liliobject liliinterface liliabstract class lilifinal class lilivirtual base class lilidestructor li idea point prototypal inheritance easy understand easy implement easy reason ppas steve yegge put classical blog post href http steve yegge blogspot portrait html nofollow noreferrer title stevey blog rant portrait portrait pblockquote pmetadata kind description model comment code natural language description computation make metadata meta datum strictly dog pedigree paperwork lose paperwork perfectly valid dog blockquotepin sense class meta datum class strictly require inheritance people class comfortable work false sense security pblockquote pwell static type metadata specialize kind comment target kind reader programmer compiler static type story computation reader group understand intent program static type throw runtime end stylize comment pedigree paperwork make insecure personality type happy dog dog care blockquotepas state earlier class people false sense security code java code perfectly legible classical inheritance programming java python amazing classical inheritance prototypal inheritance powerful programmer classical background argue classical inheritance powerful prototypal inheritance polliprivate variable lilimultiple inheritance li olpthis claim false javascript support href http javascript crockford private html nofollow noreferrer title private member javascript private variable closure multiple inheritance object javascript prototype ppthe truth prototypal inheritance support inherit multiple prototype prototypal inheritance simply mean object inherit object href http aaditmshah github prototypal inheritance matter method prototypal inheritance nofollow noreferrer title aadit shah prototypal inheritance matter way implement prototypal inheritance pollidelegation differential inheritance liliclone concatenative inheritance li olpye javascript object delegate object copy property arbitrary number object href http underscorejs org extend nofollow noreferrer title underscore js code extend code ppof programmer true inheritance href https developer mozilla org docs web javascript reference operator instanceof nofollow noreferrer title instanceof javascript mdn codeinstanceof code href https developer mozilla org docs web javascript reference global object object isprototypeof nofollow noreferrer title object isprototypeof javascript mdn code easily remedie store array prototype object inherit prototype concatenation codefunction copyof object prototype var prototype object prototype var prototypeof object isprototypeof return prototype indexof prototype prototype prototypeof prototype code prephence prototypal inheritance powerful classical inheritance fact powerful classical inheritance prototypal inheritance hand pick property copy property omit prototype ppin classical inheritance impossible difficult choose property inherit virtual base class interface solve href http wikipedia org wiki multiple inheritance diamond problem nofollow noreferrer title multiple inheritance wikipedia free encyclopedia diamond problem ppin javascript hear diamond problem control property inherit prototype prototypal inheritance redundant point difficult explain classical inheritance necessarily lead redundant code fact inheritance classical prototypal reduce redundancy code ppone argument programming language classical inheritance statically type require user explicitly declare type haskell implicit static type lead verbose code ppjava notorious behavior distinctly remember href https twitter munificentbob nofollow noreferrer title bob nystrom munificentbob twitter bob nystrom mention anecdote blog post href http journal stuffwithstuff pratt parser expression parse easy nofollow noreferrer title pratt parser expression parse easy ndash journal stuffwithstuff pratt parser pblockquote pyou love java sign quadruplicate level bureaucracy java suck ppone valid argument language classical inheritance support multiple inheritance java mind java interface sufficient multiple inheritance ppsince prototypal inheritance multiple inheritance code require multiple inheritance redundant write prototypal inheritance language classical inheritance multiple inheritance prototypal inheritance dynamic important advantage prototypal inheritance add property prototype create add method prototype automatically object delegate prototype ppthis classical inheritance class create modify runtime single big advantage prototypal inheritance classical inheritance save end inheritance matter important educate javascript programmer abandon constructor pattern prototypal inheritance favor prototypal pattern prototypal inheritance ppwe start teaching javascript correctly mean show programmer write code prototypal pattern constructor pattern ppnot easy explain prototypal inheritance prototypal pattern make programmer ppif answer read blog post href http aaditmshah github prototypal inheritance matter nofollow noreferrer title aadit shah prototypal inheritance matter prototypal inheritance matter trust disappoint agree sorta javascript python prototype py https github airportyh prototype py language language static language turn mean thing static analysis auto complete pop documentation talk comment context pconsider code codeint int int code code prepwhen program compile compiler optimize code find program strongnever strong make attempt change codesome int code tempt optimize codewhile code loop change codewhile int code simply codewhile true code execution fast condition codewhile code loop appear codetrue code -PRON- compiler optimize fetch codesome int code load register compare time bit slow -PRON- pphowever optimization part program strong change codesome int code strongoutside program compiler aware strong design case compiler optimization strongnot strong produce desire result ppso ensure desire result stop compiler optimize codewhile code loop codevolatile code keyword play role codevolatile int int note volatile qualifier code prehrpin word explain codevolatile code tell compiler pblockquote hey compiler volatile change aware alien planet call program lighting form interrupt volcano mutate change ignorant stop play know god dare touch code present blockquotepwell codevolatile code prevent compiler optimize code search web sample example phrpquote standard pblockquote volatile hint implementation strongavoid aggressive optimization involve object strong object change mean undetectable implementation topic href https stackoverflow question make struct volatile make member volatile make struct volatile make member volatile java language do not mix pconsider code codeint int int code code prepwhen program compile compiler optimize code find program strongnever strong make attempt change codesome int code tempt optimize codewhile code loop change codewhile int code simply codewhile true code execution fast condition codewhile code loop appear codetrue code -PRON- compiler optimize fetch codesome int code load register compare time bit slow -PRON- pphowever optimization part program strong change codesome int code strongoutside program compiler aware strong design case compiler optimization strongnot strong produce desire result ppso ensure desire result stop compiler optimize codewhile code loop codevolatile code keyword play role codevolatile int int note volatile qualifier code prehrpin word explain codevolatile code tell compiler pblockquote hey compiler volatile change aware alien planet call program lighting form interrupt volcano mutate change ignorant stop play know god dare touch code present blockquotepwell codevolatile code prevent compiler optimize code search web sample example phrpquote standard pblockquote volatile hint implementation strongavoid aggressive optimization involve object strong object change mean undetectable implementation topic href https stackoverflow question make struct volatile make member volatile make struct volatile make member volatile do not time sample code verify concept difficult task note absence volatile guarantee loading variable optimise presence volatile ensure optimise keyword difference absence ensure pconsider code codeint int int code code prepwhen program compile compiler optimize code find program strongnever strong make attempt change codesome int code tempt optimize codewhile code loop change codewhile int code simply codewhile true code execution fast condition codewhile code loop appear codetrue code -PRON- compiler optimize fetch codesome int code load register compare time bit slow -PRON- pphowever optimization part program strong change codesome int code strongoutside program compiler aware strong design case compiler optimization strongnot strong produce desire result ppso ensure desire result stop compiler optimize codewhile code loop codevolatile code keyword play role codevolatile int int note volatile qualifier code prehrpin word explain codevolatile code tell compiler pblockquote hey compiler volatile change aware alien planet call program lighting form interrupt volcano mutate change ignorant stop play know god dare touch code present blockquotepwell codevolatile code prevent compiler optimize code search web sample example phrpquote standard pblockquote volatile hint implementation strongavoid aggressive optimization involve object strong object change mean undetectable implementation topic href https stackoverflow question make struct volatile make member volatile make struct volatile make member volatile actual memory space store term volatile int val val point valid address,0,NULL,NULL,,,, 70863,219797,434443,Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Guru Yearling Great Answer,NULL,NULL,0,NULL,NULL 70864,171715,435134,NULL,NULL,NULL,0,NULL,NULL 70865,241709,645132,Popular Question Popular Question Yearling Nice Answer Notable Question Famous Question Notable Question Nice Answer Enlightened Favorite Question Good Question Talkative Good Answer Popular Question Yearling Popular Question Popular Question Nice Answer Enlightened Notable Question Nice Question Popular Question Popular Question Custodian Census Notable Question Yearling Nice Answer Explainer Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70866,1567048,1291715,NULL,NULL,NULL,0,NULL,NULL 70867,120606,371213,Popular Question,NULL,NULL,0,NULL,NULL 70868,39150,475477,Good Question Yearling Notable Question Necromancer Nice Answer Popular Question Yearling Popular Question Necromancer Yearling Nice Answer Yearling Good Answer Notable Question Announcer Yearling,NULL,NULL,0,NULL,NULL 70869,171925,542422,NULL,NULL,NULL,0,NULL,NULL 70870,1892739,748257,Popular Question Good Question Caucus Popular Question Yearling Critic Custodian Promoter Benefactor,NULL,NULL,0,NULL,NULL 70871,195083,7965,Notable Question Popular Question Custodian Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Nice Question Yearling Notable Question Notable Question Caucus Notable Question Notable Question Good Question Good Question Good Question Famous Question Good Question Popular Question Yearling Popular Question Documentation User Favorite Question Popular Question Popular Question Popular Question Good Question Notable Question Famous Question Popular Question Favorite Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 70872,10869003,862794,NULL,NULL,NULL,0,NULL,NULL 70873,909757,1299679,NULL,NULL,NULL,0,NULL,NULL 70874,603683,1014132,Critic Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70875,592979,1463454,Notable Question Teacher,NULL,NULL,0,NULL,NULL 70876,641053,677779,Informed Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 70877,43612,823137,Yearling,NULL,NULL,0,NULL,NULL 70878,86124,662957,NULL,NULL,NULL,0,NULL,NULL 70879,1513357,879910,NULL,NULL,NULL,0,NULL,NULL 70880,333004,918766,NULL,NULL,NULL,0,NULL,NULL 70881,1058487,657669,Yearling Popular Question,NULL,NULL,0,NULL,NULL 70882,2263023,375357,NULL,NULL,NULL,0,NULL,NULL 70883,194558,605159,NULL,NULL,NULL,0,NULL,NULL 70884,451417,1093494,Popular Question Necromancer Nice Answer Popular Question Nice Answer Notable Question Popular Question Popular Question Yearling Popular Question Citizen Patrol Custodian Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 70885,396743,824874,Popular Question Caucus Caucus,NULL,NULL,0,NULL,NULL 70886,744888,762292,NULL,NULL,NULL,0,NULL,NULL 70887,15914,143253,Guru Famous Question Popular Question Yearling Popular Question Famous Question Famous Question Good Question Census Good Answer Famous Question Good Answer Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Famous Question Yearling Notable Question Famous Question Nice Answer Guru,NULL,NULL,0,NULL,NULL 70888,396829,212335,Necromancer Nice Answer Good Answer Inquisitive Yearling Famous Question Famous Question Popular Question Famous Question Excavator Caucus Constituent Custodian Popular Question Famous Question Promoter Benefactor Yearling Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Yearling,NULL,pI not entirely sure what you want and your last line of code does not help either but anyway pp Chained filtering is done by chaining the criteria in the boolean index ppre codeIn 96 dfOut 96 Da 1b 2c 0d 6In 99 df df amp df Out 99 Dd code prepIf you want to chain methods you can add your own mask method and use that one ppre codeIn 90 def mask df key value return df df key value In 92 pandas DataFrame mask maskIn 93 df pandas DataFrame np random randint 10 index list abcd columns list ABCD In 95 df ix df ix In 96 dfOut 96 Da 1b 2c 0d 6In 97 df mask Out 97 Da 1d 6In 98 df mask mask Out 98 Dd code pre Out of curiosity why does it matter if he imports it as pd or uses it as pandas Is it just style preference or is there more,0,NULL,NULL 70889,177431,33380,Yearling Yearling Census Yearling,NULL,NULL,0,NULL,NULL 70890,271202,1225300,NULL,NULL,NULL,0,NULL,NULL 70891,460827,278865,Nice Answer Yearling Critic,NULL,NULL,0,NULL,NULL 70892,290841,990663,NULL,NULL,NULL,0,NULL,NULL 70893,59634,149274,Famous Question Popular Question Necromancer Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 70894,2446,181697,Yearling Commentator Caucus Caucus Informed,NULL,NULL,0,NULL,NULL 70895,249099,1412007,NULL,NULL,NULL,0,NULL,NULL 70896,4381,121760,Popular Question,NULL,NULL,0,NULL,NULL 70897,132923,834325,NULL,NULL,NULL,0,NULL,NULL 70898,888979,1031541,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70899,16387,73744,Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Census Yearling Custodian Pundit Reviewer Revival Nice Answer Enlightened Strunk & White Steward Caucus Steward Nice Answer Documentation User Revival Cleanup Marshal Census Yearling Good Answer Caucus Revival Necromancer Nice Answer Enlightened lucene,NULL,NULL,0,NULL,NULL 70900,529503,73744,Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Census Yearling Custodian Pundit Reviewer Revival Nice Answer Enlightened Strunk & White Steward Caucus Steward Nice Answer Documentation User Revival Cleanup Marshal Census Yearling Good Answer Caucus Revival Necromancer Nice Answer Enlightened lucene,NULL,NULL,0,NULL,NULL 70901,26271,422535,NULL,NULL,NULL,0,NULL,NULL 70902,109911,1374427,Popular Question Autobiographer Curious,NULL,NULL,0,NULL,NULL 70903,30622,1165139,NULL,NULL,NULL,0,NULL,NULL 70904,521239,1232074,NULL,NULL,NULL,0,NULL,NULL 70905,447143,1461133,Teacher,NULL,NULL,0,NULL,NULL 70906,305284,450234,NULL,NULL,,0,, 70907,650432,145899,Custodian Popular Question Popular Question Nice Answer Necromancer Custodian Tumbleweed Yearling Caucus Good Answer Nice Question Famous Question Yearling Revival Popular Question Necromancer Famous Question Good Answer Notable Question Necromancer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 70908,202140,636265,Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 70909,455246,496346,NULL,NULL,NULL,0,NULL,NULL 70910,1280111,613139,NULL,NULL,NULL,0,NULL,NULL 70911,293569,1450570,Popular Question,NULL,NULL,0,NULL,NULL 70912,210710,32024,Nice Answer,NULL,NULL,0,NULL,NULL 70913,688350,216534,Revival Caucus Notable Question,NULL,NULL,0,NULL,NULL 70914,51201,359505,NULL,NULL,NULL,0,NULL,NULL 70915,43039,947065,Supporter Investor,NULL,NULL,0,NULL,NULL 70916,74572,346136,NULL,NULL,NULL,0,NULL,NULL 70917,583807,65313,Nice Question Popular Question Yearling Famous Question Nice Question Famous Question Great Answer Famous Question Famous Question Nice Question Famous Question Nice Answer Notable Question Nice Question Famous Question Notable Question Good Question Pundit Nice Question Good Question Notable Question Popular Question Good Answer Necromancer Famous Question Popular Question Notable Question Nice Question Good Question Nice Question Great Question Notable Question Announcer Necromancer Famous Question Yearling Nice Question Favorite Question Favorite Question Popular Question Famous Question Necromancer Great Answer Notable Question Popular Question Nice Question Necromancer Notable Question Necromancer Popular Question Nice Question Good Answer Good Question Popular Question Nice Question Famous Question Necromancer Popular Question Famous Question Nice Answer Announcer Famous Question Famous Question Famous Question Notable Question Great Answer Revival Yearling Nice Question Great Question Favorite Question Announcer Great Question Notable Question Necromancer Notable Question Benefactor Announcer Favorite Question Famous Question,NULL,NULL,0,NULL,NULL 70918,153582,1277895,NULL,NULL,NULL,0,NULL,NULL 70919,1117696,1288836,NULL,NULL,NULL,0,NULL,NULL 70920,191167,801343,Popular Question Notable Question Famous Question Good Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 70921,84011,126235,Nice Answer Popular Question Critic Nice Question Populist,NULL,NULL,0,NULL,NULL 70922,429815,634759,NULL,NULL,NULL,0,NULL,NULL 70923,145251,576928,NULL,NULL,NULL,0,NULL,NULL 70924,683099,905014,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70925,83237,755932,Notable Question Notable Question Nice Answer Enlightened Good Question Nice Question Yearling Notable Question Nice Answer Enlightened Custodian Famous Question Nice Question Notable Question Excavator Popular Question Popular Question Nice Answer Nice Answer Enlightened Popular Question Nice Question Good Question Necromancer Good Answer java Popular Question Guru spring Popular Question Inquisitive Nice Answer Notable Question Yearling Famous Question Notable Question Autobiographer Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Good Answer Notable Question Nice Answer Great Answer Yearling Notable Question Popular Question Popular Question spring-boot Guru Popular Question,NULL,NULL,0,NULL,NULL 70926,161537,835614,Custodian Commentator,NULL,NULL,0,NULL,NULL 70927,181058,649285,Nice Answer,NULL,NULL,0,NULL,NULL 70928,728770,1465411,NULL,NULL,NULL,0,NULL,NULL 70929,709660,670,Notable Question Good Question,NULL,NULL,0,NULL,NULL 70930,29400,145766,Supporter Yearling,NULL,NULL,0,NULL,NULL 70931,356547,1390901,NULL,NULL,NULL,0,NULL,NULL 70932,53577,304330,Notable Question Revival Yearling Nice Answer Nice Answer Necromancer Guru Necromancer Yearling Popular Question Revival Revival Necromancer Enlightened Revival Good Answer Nice Answer Revival Nice Answer java Yearling Popular Question Necromancer Necromancer Announcer Popular Question Good Answer,NULL,NULL,0,NULL,NULL 70933,275253,152092,Notable Question Famous Question Notable Question Famous Question Good Question Revival Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70934,76194,1151320,Revival Editor Commentator Revival Revival,NULL,NULL,0,NULL,NULL 70935,268502,775241,Yearling Civic Duty Critic Custodian Informed Great Answer Caucus Constituent Yearling Caucus Census Autobiographer Yearling Custodian,NULL,NULL,0,NULL,NULL 70936,157293,633559,Famous Question,NULL,NULL,0,NULL,NULL 70937,168923,300372,Notable Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70938,228019,1402069,Nice Question Cleanup,NULL,NULL,0,NULL,NULL 70939,65314,1220134,NULL,NULL,NULL,0,NULL,NULL 70940,168444,389122,Notable Question Famous Question Famous Question Good Question Yearling Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Critic Necromancer Good Question Great Question Popular Question Favorite Question Yearling Famous Question Popular Question Favorite Question Nice Question Famous Question Yearling Notable Question Nice Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 70941,47095,158252,Necromancer Necromancer Yearling Necromancer Caucus Organizer Necromancer Explainer Yearling Necromancer Nice Answer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 70942,642318,1530272,Nice Answer Enlightened Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 70943,286271,581490,Teacher,NULL,NULL,0,NULL,NULL 70944,308389,76113,Good Answer,NULL,NULL,0,NULL,NULL 70945,146340,338727,NULL,NULL,NULL,0,NULL,NULL 70946,2130,423153,Popular Question Announcer Yearling Nice Answer Enlightened Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 70947,8274068,423153,Popular Question Announcer Yearling Nice Answer Enlightened Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 70948,529142,375958,Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question Famous Question Famous Question Famous Question Caucus Constituent Popular Question Census Notable Question Custodian Popular Question Popular Question Popular Question Notable Question Good Answer Yearling Caucus Constituent Necromancer Announcer Popular Question Popular Question Nice Question Cleanup Nice Answer Announcer Caucus Necromancer Notable Question Yearling c# Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 70949,1227817,338495,NULL,NULL,NULL,0,NULL,NULL 70950,602379,1382106,Popular Question,NULL,NULL,0,NULL,NULL 70951,9810572,1207867,Yearling Popular Question Civic Duty Caucus Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70952,726673,1207867,Yearling Popular Question Civic Duty Caucus Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70953,1831962,1207867,Yearling Popular Question Civic Duty Caucus Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 70954,7090308,1296990,NULL,NULL,NULL,0,NULL,NULL 70955,153442,1296990,NULL,NULL,NULL,0,NULL,NULL 70956,50615,937715,Nice Question Notable Question Nice Answer Nice Answer Announcer Nice Answer Enlightened Nice Answer Nice Question Notable Question Announcer Popular Question Announcer Nice Question Famous Question Popular Question Popular Question Revival Yearling Good Answer Announcer Caucus android Notable Question Announcer Notable Question Popular Question Announcer Nice Answer Electorate Necromancer Good Answer Good Answer Notable Question Good Question java Notable Question Announcer Notable Question Caucus Nice Answer Good Answer Nice Answer Announcer Yearling Famous Question Popular Question Nice Question Announcer Announcer Announcer Nice Question Caucus Revival Revival Announcer Announcer Nice Question Nice Answer Enlightened Popular Question Popular Question Yearling Announcer Necromancer,NULL,pApparently the names of the Google APIs system images and ABI parameters changed pulliABI codearmeabi v7a code to codegoogle apis armeabi v7a code liliSystem image codesys img armeabi v7a android 21 code to codesys img armeabi v7a addon google apis google 21 code li ulpI fixed this by updating both my codeANDROID ABI code variable and component name for the system image new values are ppre code ANDROID ABI google apis armeabi v7a Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepHere the whole section in context ppre codeenv global ANDROID API LEVEL 21 ANDROID BUILD TOOLS VERSION 21 ANDROID ABI google apis armeabi v7aandroid components platform tools tools build tools ANDROID BUILD TOOLS VERSION android ANDROID API LEVEL For Google Maps API v1 addon google apis google ANDROID API LEVEL Google Play Services extra google google play services Support library extra android support Latest artifacts in local repository extra google m2repository extra android m2repository Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepAfter these changes it href https travis ci org OneBusAway onebusaway android builds 52310298 rel noreferrer builds successfully pp strongEDIT Sept 12th 2016 strong ppApparently there was another change in mid 2016 that causes this same problem For example href https travis ci org barbeau android maps utils builds 134484281 rel noreferrer here failed build with the same error message ppThe following changes were needed to fix Travis builds pulliAdd separate codeANDOID TAG ABI code tag variable liliDuplicate tools to get the new coderepository 11 xml code and to install Android SDK tools 25 liliChange system image names to match new Android SDK liliChange emulator start command to use new ABI tag variable to specify Google APIs li ulpFor example pp code ANDROID ABI google apis armeabi v7a code pp changed to pp code ANDROID ABI armeabi v7a code pp code ANDROID TAG google apis code pp code tools code needs to be listed twice ppThe system images pp code sys img armeabi v7a addon google apis google 23 code pp code sys img armeabi v7a addon google apis google 23 code pp needed to be changed to pp code sys img armeabi v7a google apis 23 code pp code sys img armeabi v7a google apis 23 code ppThe line to start the emulator changed from pp code echo no android create avd force test Google Inc Google APIs 23 abi ANDROID ABI code pp to pp code echo no android create avd force test android 23 abi ANDROID ABI tag ANDROID TAG code ppSee href https github com googlemaps android maps utils pull 299 commits 741b25b4014b2c923e9414790ddd6b66dcfdc13d rel noreferrer this commit for changeset of what needs to be changed href https github com barbeau android maps utils blob 741b25b4014b2c923e9414790ddd6b66dcfdc13d travis yml rel noreferrer this file for fully working script and see href https github com travis ci travis ci issues 6122 issuecomment 239073557 rel noreferrer https github com travis ci travis ci issues 6122 issuecomment 239073557 for details ppThanks to for the fixes pp strongEDIT Nov 28th 2016 strong ppI seems that API Level 23 emulator is currently not working on Travis with the above codeandroid create avd force test android 23 abi armeabi v7a tag google apis code yields the error codeError Invalid tag google apis for the selected target code For more details see href https github com OneBusAway onebusaway android issues 720 rel noreferrer https github com OneBusAway onebusaway android issues 720 ppAlso apparently ARM ABIs aren currently available for API Level 24 or 25 Android see href https github com OneBusAway onebusaway android issues 720 issuecomment 263402921 rel noreferrer this issue for screenshot of SDK Manager ppPosted issue to Android Studio Google Community here href https plus google com SeanBarbeau posts adNGGtJFhvi sfc true rel noreferrer https plus google com SeanBarbeau posts adNGGtJFhvi sfc true Thanks Yes haven been able to get API 23 25 working in the last few days just updated the answer to reflect this If you figure it out let me know pApparently the names of the Google APIs system images and ABI parameters changed pulliABI codearmeabi v7a code to codegoogle apis armeabi v7a code liliSystem image codesys img armeabi v7a android 21 code to codesys img armeabi v7a addon google apis google 21 code li ulpI fixed this by updating both my codeANDROID ABI code variable and component name for the system image new values are ppre code ANDROID ABI google apis armeabi v7a Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepHere the whole section in context ppre codeenv global ANDROID API LEVEL 21 ANDROID BUILD TOOLS VERSION 21 ANDROID ABI google apis armeabi v7aandroid components platform tools tools build tools ANDROID BUILD TOOLS VERSION android ANDROID API LEVEL For Google Maps API v1 addon google apis google ANDROID API LEVEL Google Play Services extra google google play services Support library extra android support Latest artifacts in local repository extra google m2repository extra android m2repository Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepAfter these changes it href https travis ci org OneBusAway onebusaway android builds 52310298 rel noreferrer builds successfully pp strongEDIT Sept 12th 2016 strong ppApparently there was another change in mid 2016 that causes this same problem For example href https travis ci org barbeau android maps utils builds 134484281 rel noreferrer here failed build with the same error message ppThe following changes were needed to fix Travis builds pulliAdd separate codeANDOID TAG ABI code tag variable liliDuplicate tools to get the new coderepository 11 xml code and to install Android SDK tools 25 liliChange system image names to match new Android SDK liliChange emulator start command to use new ABI tag variable to specify Google APIs li ulpFor example pp code ANDROID ABI google apis armeabi v7a code pp changed to pp code ANDROID ABI armeabi v7a code pp code ANDROID TAG google apis code pp code tools code needs to be listed twice ppThe system images pp code sys img armeabi v7a addon google apis google 23 code pp code sys img armeabi v7a addon google apis google 23 code pp needed to be changed to pp code sys img armeabi v7a google apis 23 code pp code sys img armeabi v7a google apis 23 code ppThe line to start the emulator changed from pp code echo no android create avd force test Google Inc Google APIs 23 abi ANDROID ABI code pp to pp code echo no android create avd force test android 23 abi ANDROID ABI tag ANDROID TAG code ppSee href https github com googlemaps android maps utils pull 299 commits 741b25b4014b2c923e9414790ddd6b66dcfdc13d rel noreferrer this commit for changeset of what needs to be changed href https github com barbeau android maps utils blob 741b25b4014b2c923e9414790ddd6b66dcfdc13d travis yml rel noreferrer this file for fully working script and see href https github com travis ci travis ci issues 6122 issuecomment 239073557 rel noreferrer https github com travis ci travis ci issues 6122 issuecomment 239073557 for details ppThanks to for the fixes pp strongEDIT Nov 28th 2016 strong ppI seems that API Level 23 emulator is currently not working on Travis with the above codeandroid create avd force test android 23 abi armeabi v7a tag google apis code yields the error codeError Invalid tag google apis for the selected target code For more details see href https github com OneBusAway onebusaway android issues 720 rel noreferrer https github com OneBusAway onebusaway android issues 720 ppAlso apparently ARM ABIs aren currently available for API Level 24 or 25 Android see href https github com OneBusAway onebusaway android issues 720 issuecomment 263402921 rel noreferrer this issue for screenshot of SDK Manager ppPosted issue to Android Studio Google Community here href https plus google com SeanBarbeau posts adNGGtJFhvi sfc true rel noreferrer https plus google com SeanBarbeau posts adNGGtJFhvi sfc true Yes can do that Looks like the new issue hasn been triaged yet so maybe there is hope pApparently the names of the Google APIs system images and ABI parameters changed pulliABI codearmeabi v7a code to codegoogle apis armeabi v7a code liliSystem image codesys img armeabi v7a android 21 code to codesys img armeabi v7a addon google apis google 21 code li ulpI fixed this by updating both my codeANDROID ABI code variable and component name for the system image new values are ppre code ANDROID ABI google apis armeabi v7a Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepHere the whole section in context ppre codeenv global ANDROID API LEVEL 21 ANDROID BUILD TOOLS VERSION 21 ANDROID ABI google apis armeabi v7aandroid components platform tools tools build tools ANDROID BUILD TOOLS VERSION android ANDROID API LEVEL For Google Maps API v1 addon google apis google ANDROID API LEVEL Google Play Services extra google google play services Support library extra android support Latest artifacts in local repository extra google m2repository extra android m2repository Specify at least one system image sys img armeabi v7a addon google apis google ANDROID API LEVEL code prepAfter these changes it href https travis ci org OneBusAway onebusaway android builds 52310298 rel noreferrer builds successfully pp strongEDIT Sept 12th 2016 strong ppApparently there was another change in mid 2016 that causes this same problem For example href https travis ci org barbeau android maps utils builds 134484281 rel noreferrer here failed build with the same error message ppThe following changes were needed to fix Travis builds pulliAdd separate codeANDOID TAG ABI code tag variable liliDuplicate tools to get the new coderepository 11 xml code and to install Android SDK tools 25 liliChange system image names to match new Android SDK liliChange emulator start command to use new ABI tag variable to specify Google APIs li ulpFor example pp code ANDROID ABI google apis armeabi v7a code pp changed to pp code ANDROID ABI armeabi v7a code pp code ANDROID TAG google apis code pp code tools code needs to be listed twice ppThe system images pp code sys img armeabi v7a addon google apis google 23 code pp code sys img armeabi v7a addon google apis google 23 code pp needed to be changed to pp code sys img armeabi v7a google apis 23 code pp code sys img armeabi v7a google apis 23 code ppThe line to start the emulator changed from pp code echo no android create avd force test Google Inc Google APIs 23 abi ANDROID ABI code pp to pp code echo no android create avd force test android 23 abi ANDROID ABI tag ANDROID TAG code ppSee href https github com googlemaps android maps utils pull 299 commits 741b25b4014b2c923e9414790ddd6b66dcfdc13d rel noreferrer this commit for changeset of what needs to be changed href https github com barbeau android maps utils blob 741b25b4014b2c923e9414790ddd6b66dcfdc13d travis yml rel noreferrer this file for fully working script and see href https github com travis ci travis ci issues 6122 issuecomment 239073557 rel noreferrer https github com travis ci travis ci issues 6122 issuecomment 239073557 for details ppThanks to for the fixes pp strongEDIT Nov 28th 2016 strong ppI seems that API Level 23 emulator is currently not working on Travis with the above codeandroid create avd force test android 23 abi armeabi v7a tag google apis code yields the error codeError Invalid tag google apis for the selected target code For more details see href https github com OneBusAway onebusaway android issues 720 rel noreferrer https github com OneBusAway onebusaway android issues 720 ppAlso apparently ARM ABIs aren currently available for API Level 24 or 25 Android see href https github com OneBusAway onebusaway android issues 720 issuecomment 263402921 rel noreferrer this issue for screenshot of SDK Manager ppPosted issue to Android Studio Google Community here href https plus google com SeanBarbeau posts adNGGtJFhvi sfc true rel noreferrer https plus google com SeanBarbeau posts adNGGtJFhvi sfc true ve had more success posting to Google in the past so tried that here https plus google com SeanBarbeau posts adNGGtJFhvi sfc true In my experience Android Studio team is more responsive than any other Android group so tried that community first,0,NULL,NULL 70957,276123,499290,NULL,NULL,NULL,0,NULL,NULL 70958,7539143,499290,NULL,NULL,NULL,0,NULL,NULL 70959,45784,710265,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 70960,525918,1123156,Enthusiast Editor Citizen Patrol Announcer Teacher Revival Popular Question Informed Autobiographer Necromancer,NULL,NULL,0,NULL,NULL 70961,5719,338803,Good Answer Guru Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Notable Question Great Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Good Answer Guru Nice Answer Yearling c++ Revival Guru Guru Nice Answer Enlightened Good Answer Yearling jquery Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 70962,1223939,577281,NULL,NULL,NULL,0,NULL,NULL 70963,10093153,1258986,NULL,NULL,NULL,0,NULL,NULL 70964,71190,1258986,NULL,NULL,NULL,0,NULL,NULL 70965,180051,515008,NULL,NULL,NULL,0,NULL,NULL 70966,1501066,805774,NULL,NULL,NULL,0,NULL,NULL 70967,272903,661156,NULL,NULL,NULL,0,NULL,NULL 70968,233847,1500360,Supporter Informed,NULL,NULL,0,NULL,NULL 70969,163886,1198741,NULL,NULL,NULL,0,NULL,NULL 70970,487170,221527,Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 70971,75339,235261,Yearling,NULL,NULL,0,NULL,NULL 70972,80521,108800,NULL,NULL,NULL,0,NULL,NULL 70973,344665,84270,Nice Answer Good Answer Nice Answer Nice Answer Enlightened unicode Nice Answer Yearling Nice Answer Enlightened Great Answer Great Answer Good Answer Good Answer Guru Good Answer Guru Nice Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Informed Revival Good Answer Nice Answer Nice Answer Nice Answer Good Answer character-encoding Guru Nice Answer Nice Answer Good Answer Nice Answer Good Answer Yearling Good Answer Guru Good Answer Nice Answer Revival Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Guru Good Answer Great Answer python-3.x Good Answer dictionary,NULL,pUse the strongstr translate strong method ppPresuming you will be doing this often pp Once create string containing all the characters you wish to delete ppre codedelchars join for in map chr range 256 if not isalnum code prep Whenever you want to scrunch string ppre codescrunched translate None delchars code prepThe setup cost probably compares favourably with re compile the marginal cost is way lower ppre codeC junk gt python26 python mtimeit import string join for in map chr range 256 if not isalnum string printable translate None 100000 loops best of 04 usec per loopC junk gt python26 python mtimeit import re string string printable re compile sub 100000 loops best of 34 usec per loop code prepNote strongUsing string printable as benchmark data gives the pattern an unfair advantage strong all the non alphanumeric characters are in one bunch in typical data there would be more than one substitution to do ppre codeC junk gt python26 python import string string printable print len repr 100 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ amp gt x0b x0c code prepHere what happens if you give re sub bit more work to do ppre codeC junk gt python26 python mtimeit join for in map chr range 256 if not isalnum foo 25 translate None 1000000 loops best of 97 usec per loopC junk gt python26 python mtimeit import re foo 25 re compile sub 10000 loops best of 26 usec per loop code pre more or less pUse the strongstr translate strong method ppPresuming you will be doing this often pp Once create string containing all the characters you wish to delete ppre codedelchars join for in map chr range 256 if not isalnum code prep Whenever you want to scrunch string ppre codescrunched translate None delchars code prepThe setup cost probably compares favourably with re compile the marginal cost is way lower ppre codeC junk gt python26 python mtimeit import string join for in map chr range 256 if not isalnum string printable translate None 100000 loops best of 04 usec per loopC junk gt python26 python mtimeit import re string string printable re compile sub 100000 loops best of 34 usec per loop code prepNote strongUsing string printable as benchmark data gives the pattern an unfair advantage strong all the non alphanumeric characters are in one bunch in typical data there would be more than one substitution to do ppre codeC junk gt python26 python import string string printable print len repr 100 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ amp gt x0b x0c code prepHere what happens if you give re sub bit more work to do ppre codeC junk gt python26 python mtimeit join for in map chr range 256 if not isalnum foo 25 translate None 1000000 loops best of 97 usec per loopC junk gt python26 python mtimeit import re foo 25 re compile sub 10000 loops best of 26 usec per loop code pre Python str translate just works differently pUse the strongstr translate strong method ppPresuming you will be doing this often pp Once create string containing all the characters you wish to delete ppre codedelchars join for in map chr range 256 if not isalnum code prep Whenever you want to scrunch string ppre codescrunched translate None delchars code prepThe setup cost probably compares favourably with re compile the marginal cost is way lower ppre codeC junk gt python26 python mtimeit import string join for in map chr range 256 if not isalnum string printable translate None 100000 loops best of 04 usec per loopC junk gt python26 python mtimeit import re string string printable re compile sub 100000 loops best of 34 usec per loop code prepNote strongUsing string printable as benchmark data gives the pattern an unfair advantage strong all the non alphanumeric characters are in one bunch in typical data there would be more than one substitution to do ppre codeC junk gt python26 python import string string printable print len repr 100 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ amp gt x0b x0c code prepHere what happens if you give re sub bit more work to do ppre codeC junk gt python26 python mtimeit join for in map chr range 256 if not isalnum foo 25 translate None 1000000 loops best of 97 usec per loopC junk gt python26 python mtimeit import re foo 25 re compile sub 10000 loops best of 26 usec per loop code pre Py2 unicode translate just works differently pAs Lott says you should be opening your files in rb mode not rU mode However that may NOT be causing your current problem As far as know using rU mode would mess you up if there are embedded code code in the data but not cause any other dramas also note that you have several files all opened with rU but only one causing problem ppIf the csv module says that you have NULL silly message should be NUL byte in your file then you need to check out what is in your file would suggest that you do this even if using rb makes the problem go away pp coderepr code is or wants to be your debugging friend It will show unambiguously what you ve got in platform independant fashion which is helpful to helpers who are unaware what codeod code is or does Do this ppre codeprint repr open my csv rb read 200 dump 1st 200 bytes of file code prepand carefully copy paste don retype the result into an edit of your question not into comment ppAlso note that if the file is really dodgy no or within reasonable distance from the start of the file the line number reported by codereader line num code will be unhelpfully Find where the first code x00 code is if any by doing ppre codedata open my csv rb read print data find x00 code prepand make sure that you dump at least that many bytes with repr or od ppWhat does codedata count x00 code tell you If there are many you may want to do something like ppre codefor in enumerate data if x00 print repr data 30 NUL repr data 31 code prepso that you can see the NUL bytes in context ppIf you can see code x00 code in the output or code code in your codeod code output then you definitely have NUL byte in the file and you will need to do something like this ppre codefi open my csv rb data fi read fi close fo open mynew csv wb fo write data replace x00 fo close code prepBy the way have you looked at the file including the last few lines with text editor Does it actually look like reasonable CSV file like the other no NULL byte exception files od is unix utility program name is short for octal dump,0,NULL,NULL 70974,128509,110388,NULL,NULL,NULL,0,NULL,NULL 70975,239026,59527,Yearling Good Answer Yearling Famous Question Custodian Custodian Caucus Yearling Peer Pressure,NULL,NULL,0,NULL,NULL 70976,2162096,519530,NULL,NULL,NULL,0,NULL,NULL 70977,262491,519530,NULL,NULL,NULL,0,NULL,NULL 70978,7140493,781088,Popular Question Nice Question Editor Notable Question,NULL,NULL,0,NULL,NULL 70979,130469,5852,Guru Good Answer Good Answer Yearling Guru Good Answer Nice Answer Enlightened Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 70980,320397,906482,NULL,NULL,NULL,0,NULL,NULL 70981,99644,525726,Curious,NULL,NULL,0,NULL,NULL 70982,60232,572027,Announcer,NULL,NULL,0,NULL,NULL 70983,1281945,572027,Announcer,NULL,NULL,0,NULL,NULL 70984,29131,455392,NULL,NULL,NULL,0,NULL,NULL 70985,182695,313633,Nice Question Good Question Popular Question Notable Question Yearling Notable Question Necromancer Announcer,NULL,NULL,0,NULL,NULL 70986,7981412,85466,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70987,7718788,85466,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 70988,180510,1120321,Nice Answer Enlightened Necromancer Nice Answer Yearling Critic Caucus Constituent Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 70989,399029,1462664,Excavator Teacher Popular Question Commentator,NULL,NULL,0,NULL,NULL 70990,64484,223213,Announcer Announcer Announcer Yearling Nice Answer Enlightened Documentation User Yearling,NULL,NULL,0,NULL,NULL 70991,316844,1125172,Critic Yearling Yearling Organizer Caucus Revival Necromancer Popular Question Custodian Custodian Custodian Enthusiast Yearling Necromancer Popular Question Necromancer Caucus Constituent Documentation User Curious Notable Question Nice Question Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 70992,13375,232358,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 70993,83858,1391220,Custodian Vox Populi python Civic Duty Fanatic Yearling Custodian Good Answer Caucus Constituent Nice Answer Yearling Good Answer Caucus Custodian Constituent Guru Census Caucus Yearling,NULL,NULL,0,NULL,NULL 70994,208291,557019,Tumbleweed Custodian Nice Question Yearling Nice Answer javascript Good Answer Documentation User Custodian Yearling Critic Famous Question Nice Answer Enlightened Good Question Yearling Curious,NULL,NULL,0,NULL,NULL 70995,800303,223297,Enthusiast,NULL,NULL,0,NULL,NULL 70996,304202,831178,NULL,NULL,NULL,0,NULL,NULL 70997,144192,1068394,NULL,NULL,NULL,0,NULL,NULL 70998,17784,282144,Favorite Question Yearling Great Question Notable Question Popular Question Good Answer Famous Question Popular Question Notable Question Good Answer Yearling Popular Question Yearling Popular Question Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 70999,433349,184223,Popular Question Nice Question Commentator Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71000,28636,195457,Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71001,333888,975693,NULL,NULL,NULL,0,NULL,NULL 71002,1103145,669555,NULL,NULL,NULL,0,NULL,NULL 71003,179671,963203,Notable Question Student,NULL,NULL,0,NULL,NULL 71004,6168030,963203,Notable Question Student,NULL,NULL,0,NULL,NULL 71005,427558,828379,Announcer Tumbleweed Popular Question Teacher,NULL,NULL,0,NULL,NULL 71006,456496,1132101,Yearling Tumbleweed Revival Self-Learner Nice Answer Curious Yearling Notable Question Necromancer Yearling Announcer Necromancer Popular Question Announcer Necromancer,NULL,NULL,0,NULL,NULL 71007,122101,304175,Cleanup Yearling Nice Question ruby Famous Question Popular Question Notable Question Necromancer Necromancer Notable Question Yearling Nice Answer Necromancer Necromancer Nice Answer Enlightened Announcer Great Answer Nice Answer Yearling Necromancer Necromancer Necromancer Necromancer Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 71008,1072067,545408,Nice Answer,NULL,NULL,0,NULL,NULL 71009,288015,563964,NULL,NULL,NULL,0,NULL,NULL 71010,159551,533474,NULL,NULL,NULL,0,NULL,NULL 71011,609340,291188,NULL,NULL,NULL,0,NULL,NULL 71012,304382,1147811,NULL,NULL,NULL,0,NULL,NULL 71013,710396,1076662,Popular Question Editor Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71014,1352142,578587,NULL,NULL,NULL,0,NULL,NULL 71015,1018246,1028452,Necromancer Civic Duty Yearling Necromancer Excavator Critic Organizer Citizen Patrol Custodian Custodian,NULL,pTurns out that to copy complete directory structure codegulp code needs to be provided with base for your codegulp src code method ppSo codegulp src files base code can be used in the structure above to copy all the directories recursively ppIf like me you may forget this then try ppre codegulp copy function src dest return gulp src src base pipe gulp dest dest code pre Add cwd configuration to set current working directory,0,NULL,NULL 71016,1504896,644828,NULL,NULL,NULL,0,NULL,NULL 71017,188033,96984,Yearling Popular Question Famous Question Caucus Yearling,NULL,,0,, 71018,108823,1085961,NULL,NULL,NULL,0,NULL,NULL 71019,52280,201257,NULL,NULL,NULL,0,NULL,NULL 71020,126788,113674,Great Question Popular Question Yearling Famous Question Notable Question Nice Question Favorite Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 71021,2876687,954607,Caucus,NULL,NULL,0,NULL,NULL 71022,311683,179120,Good Answer Notable Question Nice Answer Great Question vim Popular Question Guru Yearling Nice Answer Nice Answer Popular Question Notable Question Nice Question Famous Question Famous Question Popular Question Nice Question Yearling Notable Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71023,787697,210134,NULL,NULL,NULL,0,NULL,NULL 71024,106497,210134,NULL,NULL,NULL,0,NULL,NULL 71025,2573257,661911,Critic Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 71026,174158,1060514,NULL,NULL,NULL,0,NULL,NULL 71027,300940,578867,NULL,NULL,NULL,0,NULL,NULL 71028,915260,980420,NULL,NULL,NULL,0,NULL,NULL 71029,48868,921319,Teacher Nice Question Popular Question Yearling Caucus Popular Question Popular Question Census Caucus Critic Curious Constituent,NULL,NULL,0,NULL,NULL 71030,247213,258686,NULL,NULL,NULL,0,NULL,NULL 71031,325304,275641,Notable Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 71032,788278,190113,Popular Question Yearling Documentation User,NULL,NULL,0,NULL,NULL 71033,4903,844765,Yearling,NULL,NULL,0,NULL,NULL 71034,98918,264075,NULL,NULL,NULL,0,NULL,NULL 71035,244978,1501911,NULL,NULL,NULL,0,NULL,NULL 71036,100284,128816,Notable Question Nice Question Famous Question Yearling Great Question Popular Question Yearling Famous Question Notable Question Famous Question Popular Question Nice Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 71037,190580,667528,Supporter Editor Critic Nice Answer Informed Yearling Revival Excavator Necromancer Yearling Caucus Documentation User Necromancer Census Nice Answer Enlightened Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 71038,280227,849756,NULL,NULL,NULL,0,NULL,NULL 71039,228339,158971,Popular Question,NULL,NULL,0,NULL,NULL 71040,212111,819322,NULL,NULL,NULL,0,NULL,NULL 71041,10679,49376,Guru Popular Question Notable Question Popular Question Nice Question Good Answer Famous Question Popular Question Notable Question Great Answer Nice Question Popular Question Nice Question Notable Question Nice Answer Popular Question Nice Answer Notable Question Good Answer Guru Guru Famous Question Guru Nice Answer Good Question Yearling Famous Question Nice Question Nice Question Stellar Question Nice Answer Favorite Question Good Question Notable Question Great Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened Good Answer Notable Question Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Notable Question Good Answer Nice Question Good Answer Yearling Good Question Favorite Question Good Question Nice Answer Enlightened Good Answer Famous Question Great Answer Notable Question Famous Question Guru Good Question Popular Question Famous Question Nice Answer Good Answer Nice Answer Good Question,NULL,NULL,0,NULL,NULL 71042,218161,988302,Good Question Nice Question Popular Question Notable Question Yearling Notable Question Popular Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 71043,245336,801078,NULL,NULL,NULL,0,NULL,NULL 71044,335616,636967,Famous Question Yearling Popular Question Popular Question Popular Question Revival Nice Answer Popular Question Popular Question Nice Question Popular Question Yearling Great Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Favorite Question Nice Question,NULL,NULL,0,NULL,NULL 71045,191960,998085,NULL,NULL,NULL,0,NULL,NULL 71046,837653,998085,NULL,NULL,NULL,0,NULL,NULL 71047,1147459,1401063,Revival Revival Student,NULL,NULL,0,NULL,NULL 71048,2065063,755976,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 71049,1346695,532128,NULL,NULL,NULL,0,NULL,NULL 71050,358797,615702,NULL,NULL,NULL,0,NULL,NULL 71051,208535,904195,Commentator,NULL,NULL,0,NULL,NULL 71052,7099744,1118876,NULL,NULL,NULL,0,NULL,NULL 71053,120372,1118876,NULL,NULL,NULL,0,NULL,NULL 71054,642366,209786,Good Question Famous Question Popular Question Yearling Notable Question Announcer Announcer Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71055,176585,647351,Popular Question Yearling Good Answer Student Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 71056,7469047,647351,Popular Question Yearling Good Answer Student Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 71057,34818,14572,Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 71058,136475,962920,NULL,NULL,,0,, 71059,320197,838308,Yearling Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71060,617827,732295,NULL,NULL,NULL,0,NULL,NULL 71061,197985,930374,NULL,NULL,NULL,0,NULL,NULL 71062,428498,517694,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71063,18814,1036938,NULL,NULL,NULL,0,NULL,NULL 71064,718901,872437,Popular Question Revival Self-Learner Great Answer Yearling Caucus Yearling Nice Answer Enlightened Necromancer Nice Answer Yearling Popular Question Excavator,NULL,NULL,0,NULL,NULL 71065,23757,869878,NULL,NULL,NULL,0,NULL,NULL 71066,186775,632133,d3.js Yearling Curious Nice Answer Good Answer Nice Answer Nice Answer Nice Question Nice Answer Nice Question Popular Question Quorum Notable Question Good Answer Caucus Census Yearling Famous Question Caucus Good Answer Nice Answer Enlightened Good Question Documentation User Guru Nice Answer Enlightened Custodian Census Nice Answer Yearling Caucus Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 71067,1506751,708744,NULL,NULL,NULL,0,NULL,NULL 71068,534101,1500795,Notable Question,NULL,NULL,0,NULL,NULL 71069,177214,3205,Nice Answer Good Answer Nice Answer Enlightened Revival Nice Answer Enlightened Notable Question Yearling Caucus Popular Question Revival Constituent Announcer Necromancer Good Answer Pundit Census Guru Famous Question Necromancer Popular Question Good Answer Caucus Constituent Nice Question Great Answer Yearling Nice Answer Announcer Good Answer Stellar Question Notable Question Booster Nice Answer Enlightened Caucus Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 71070,68856,646507,Supporter Informed Documentation User,NULL,NULL,0,NULL,NULL 71071,209486,454167,Excavator,NULL,NULL,0,NULL,NULL 71072,21696,1040605,Nice Question Critic Yearling Scholar Census Excavator Announcer,NULL,NULL,0,NULL,NULL 71073,171397,859351,NULL,NULL,NULL,0,NULL,NULL 71074,1560139,456208,Notable Question,NULL,NULL,0,NULL,NULL 71075,443188,1167775,Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 71076,437155,821818,Student,NULL,NULL,0,NULL,NULL 71077,1057050,470058,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71078,238545,957253,Necromancer Popular Question Popular Question Nice Answer Notable Question Popular Question Yearling Necromancer Popular Question Caucus Nice Answer Necromancer Yearling Famous Question Revival Revival Notable Question Good Answer Necromancer Yearling Nice Question,NULL,NULL,0,NULL,NULL 71079,223153,225178,NULL,NULL,NULL,0,NULL,NULL 71080,79169,648729,Notable Question,NULL,NULL,0,NULL,NULL 71081,4601808,273012,NULL,NULL,NULL,0,NULL,NULL 71082,71394,739,Nice Answer Nice Answer Nice Answer Nice Answer Yearling Guru Nice Answer Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 71083,91345,112955,Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Good Answer Good Answer Revival Guru Good Answer Good Answer Self-Learner Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened Guru Caucus Good Answer Popular Question Guru Nice Question cmake Popular Question Nice Answer Excavator Good Answer Guru Good Answer Nice Answer Enlightened macos Notable Question Nice Answer Good Answer Census Nice Answer Enlightened Nice Answer Popular Question Nice Answer Enlightened Caucus Popular Question Constituent Good Answer Good Answer Nice Question Good Answer Notable Question Yearling Popular Question Guru Nice Answer Enlightened Investor Guru Necromancer Notable Question Famous Question Nice Answer Nice Answer Enlightened Nice Answer,NULL,pIn MSBuild you can use inline tasks to avoid needing to compile and deploy custom task in separate assembly ppre code lt UsingTask TaskName DownloadFile TaskFactory CodeTaskFactory AssemblyFile MSBuildToolsPath Microsoft Build Tasks v4 dll gt lt ParameterGroup gt lt Address ParameterType System String Required true gt lt FileName ParameterType System String Required true gt lt ParameterGroup gt lt Task gt lt Reference Include System gt lt Code Type Fragment Language cs gt lt CDATA new System Net WebClient DownloadFile Address FileName gt lt Code gt lt Task gt lt UsingTask gt lt Target Name DownloadSomething gt lt DownloadFile Address http somewebsite remotefile FileName localfilepath gt lt Target gt code pre Unluckily this does not work with the dotnet core version of MSBuild csproj copy files depending on operating system net net core csproj pI am using NET Core to build cross platform class library Depending on the operating system that the NET Core project is built for using csproj file need to copy native library to the project output directory for OS want to copy dylib file for Windows want to copy DLL file for Linux want to copy so file ppHow can do this with Condition clause in csproj ItemGroup ppre code lt ItemGroup gt lt Content Include libNative dylib Condition Configuration Platform Debug OSX gt lt CopyToOutputDirectory gt PreserveNewest lt CopyToOutputDirectory gt lt Content gt lt ItemGroup gt code prep code Platform code does not seem to work Is there different variable can use Platform AnyCPU but that the same for Windows and Linux builds csproj copy files depending on operating system net net core csproj pI am using NET Core to build cross platform class library Depending on the operating system that the NET Core project is built for using csproj file need to copy native library to the project output directory for OS want to copy dylib file for Windows want to copy DLL file for Linux want to copy so file ppHow can do this with Condition clause in csproj ItemGroup ppre code lt ItemGroup gt lt Content Include libNative dylib Condition Configuration Platform Debug OSX gt lt CopyToOutputDirectory gt PreserveNewest lt CopyToOutputDirectory gt lt Content gt lt ItemGroup gt code prep code Platform code does not seem to work Is there different variable can use Is there some example project which shows how to do that,1,csproj copy files depending on operating system net net core csproj pI am using NET Core to build cross platform class library Depending on the operating system that the NET Core project is built for using csproj file need to copy native library to the project output directory for OS want to copy dylib file for Windows want to copy DLL file for Linux want to copy so file ppHow can do this with Condition clause in csproj ItemGroup ppre code lt ItemGroup gt lt Content Include libNative dylib Condition Configuration Platform Debug OSX gt lt CopyToOutputDirectory gt PreserveNewest lt CopyToOutputDirectory gt lt Content gt lt ItemGroup gt code prep code Platform code does not seem to work Is there different variable can use,NULL 71084,10831281,1148292,Popular Question,NULL,NULL,0,NULL,NULL 71085,356429,1295776,NULL,NULL,NULL,0,NULL,NULL 71086,227605,216847,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71087,1118996,1298675,Student,NULL,NULL,0,NULL,NULL 71088,49574,75956,Yearling Nice Answer Nice Answer Enlightened Good Answer Yearling Revival Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Yearling Guru python Good Answer Custodian Strunk & White,NULL,NULL,0,NULL,NULL 71089,481319,616530,NULL,NULL,NULL,0,NULL,NULL 71090,350821,1198436,NULL,NULL,NULL,0,NULL,NULL 71091,40153,1466028,Notable Question Popular Question Yearling Famous Question Notable Question Tumbleweed Yearling Necromancer Nice Question Great Question Yearling Favorite Question,NULL,Swift Compiler Error Expression too complex on string concatenation ios xcode swift compiler errors functional programming pI find this amusing more than anything ve fixed it but wondering about the cause Here is the error codeDataManager swift 51 90 Expression was too complex to be solved in reasonable time consider breaking up the expression into distinct sub expressions code Why is it complaining It seems like one of the most simple expressions possible ppThe compiler points to the codecolumns code section ppre codefunc tableName gt String return users func createTableStatement schema String gt String var schema schema schema append id string schema append created integer schema append updated integer schema append model blob var columns String join schema var statement create table if not exists self tableName columns return statement code prepthe fix is ppre codevar statement create table if not exists self tableName statement columns code prepthis also works via but don like it as much because think the code code get lost pp codevar statement create table if not exists self tableName columns code Swift is among other things functional language The implicit typing system is based on implicit typing in functional languages compilers think the purpose of tags it to be accurate but also to put the question in front of people who are likely to have an answer thought functional language programmers were more likely to know the answer At the time asked people only wrote Swift for iOS apps If you have better suggestions let me know,0,NULL,NULL 71092,400117,361104,Yearling Great Question Custodian Yearling Enthusiast,NULL,NULL,0,NULL,NULL 71093,249592,859909,Census Informed Famous Question,NULL,NULL,0,NULL,NULL 71094,2235642,333760,Supporter Scholar Student,NULL,NULL,0,NULL,NULL 71095,136688,422936,NULL,NULL,NULL,0,NULL,NULL 71096,160750,1102378,NULL,NULL,NULL,0,NULL,NULL 71097,1542181,310378,Editor Commentator Nice Question Popular Question Teacher Critic Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 71098,1433848,1292556,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71099,478089,172590,Popular Question Famous Question Yearling Notable Question Notable Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 71100,2648670,796910,Notable Question Popular Question Popular Question Self-Learner Famous Question Notable Question Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71101,345680,815525,Editor Famous Question Yearling Revival Popular Question,NULL,NULL,0,NULL,NULL 71102,15039,864605,NULL,NULL,NULL,0,NULL,NULL 71103,203110,560600,Yearling Announcer Nice Answer Necromancer Nice Answer Good Answer Caucus Popular Question Popular Question Great Answer Yearling Popular Question Announcer Pundit Caucus Self-Learner Popular Question Investor Altruist Notable Question Nice Answer Nice Question Yearling Good Question Good Answer Caucus Famous Question Announcer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71104,109425,242897,Yearling Good Answer Great Answer Great Question Nice Answer Yearling Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 71105,164496,811081,Teacher,NULL,NULL,0,NULL,NULL 71106,614773,646730,NULL,NULL,NULL,0,NULL,NULL 71107,48139,1081826,Supporter,NULL,NULL,0,NULL,NULL 71108,14074,599871,Supporter Student Enthusiast,NULL,NULL,0,NULL,NULL 71109,54,1429824,NULL,NULL,NULL,0,NULL,NULL 71110,95065,1261911,NULL,NULL,NULL,0,NULL,NULL 71111,368237,799020,NULL,NULL,NULL,0,NULL,NULL 71112,21822,157415,Good Question Yearling,NULL,NULL,0,NULL,NULL 71113,16178,503844,NULL,NULL,NULL,0,NULL,NULL 71114,988686,989449,NULL,NULL,NULL,0,NULL,NULL 71115,7940,541700,NULL,NULL,NULL,0,NULL,NULL 71116,180135,177293,Popular Question Popular Question Popular Question Nice Question Popular Question Necromancer Famous Question Yearling Notable Question Nice Answer Popular Question Notable Question Nice Answer Enlightened Popular Question Nice Question Notable Question Popular Question Yearling Nice Answer Nice Answer Necromancer Famous Question Nice Question Custodian Nice Answer Cleanup Notable Question Peer Pressure python Custodian Nice Answer Popular Question Yearling Announcer Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71117,137432,975629,NULL,NULL,NULL,0,NULL,NULL 71118,300572,804819,Nice Answer Notable Question Excavator Disciplined Yearling Good Question Good Question Notable Question Yearling Revival Favorite Question Popular Question Popular Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71119,733176,956540,NULL,NULL,NULL,0,NULL,NULL 71120,70705,1113549,NULL,NULL,NULL,0,NULL,NULL 71121,267476,278322,Civic Duty Caucus Constituent Informed Yearling Caucus Notable Question Necromancer Custodian Organizer Revival Yearling Necromancer Nice Answer Yearling Necromancer Necromancer Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 71122,469375,911398,NULL,NULL,NULL,0,NULL,NULL 71123,4517826,814928,Announcer,NULL,NULL,0,NULL,NULL 71124,62683,44240,NULL,NULL,NULL,0,NULL,NULL 71125,898462,520368,NULL,NULL,NULL,0,NULL,NULL 71126,10004543,520368,NULL,NULL,NULL,0,NULL,NULL 71127,143609,222167,Yearling Critic Necromancer Enthusiast Nice Answer Enlightened Caucus Curious Caucus Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 71128,250933,1030904,Necromancer,NULL,NULL,0,NULL,NULL 71129,224220,308004,Yearling,NULL,NULL,0,NULL,NULL 71130,344583,1066605,NULL,NULL,NULL,0,NULL,NULL 71131,201931,906723,NULL,NULL,NULL,0,NULL,NULL 71132,8197594,906723,NULL,NULL,NULL,0,NULL,NULL 71133,1774238,887171,NULL,NULL,NULL,0,NULL,NULL 71134,267265,811567,Notable Question Revival Nice Question Popular Question Yearling Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71135,790198,1346752,NULL,NULL,NULL,0,NULL,NULL 71136,287365,1548707,NULL,NULL,NULL,0,NULL,NULL 71137,160238,264622,Popular Question Nice Question Yearling Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71138,338986,548583,NULL,NULL,NULL,0,NULL,NULL 71139,224080,1072479,NULL,NULL,NULL,0,NULL,NULL 71140,214558,1003487,NULL,NULL,NULL,0,NULL,NULL 71141,209117,1027507,Necromancer Necromancer Yearling Caucus Nice Answer Popular Question Critic Caucus Yearling Necromancer Census Announcer,NULL,NULL,0,NULL,NULL 71142,653362,566004,NULL,NULL,NULL,0,NULL,NULL 71143,55421,66289,Notable Question Yearling Famous Question Good Question Popular Question Good Question Good Answer Famous Question Yearling Nice Question Famous Question Inquisitive Notable Question Yearling Famous Question Good Answer Notable Question Notable Question Good Answer Good Question Popular Question,NULL,NULL,0,NULL,NULL 71144,862623,621857,NULL,NULL,NULL,0,NULL,NULL 71145,3737943,323384,Popular Question Yearling Notable Question Good Answer Nice Question Popular Question ruby Yearling Notable Question Nice Answer Popular Question Nice Answer Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 71146,138224,323384,Popular Question Yearling Notable Question Good Answer Nice Question Popular Question ruby Yearling Notable Question Nice Answer Popular Question Nice Answer Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 71147,17021,1310265,Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71148,4262146,1310265,Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71149,153638,265559,NULL,NULL,NULL,0,NULL,NULL 71150,66893,517403,Critic Yearling Teacher Self-Learner Yearling Popular Question Popular Question Good Question Popular Question Inquisitive Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question,NULL,pYou can add to the crontab as follows ppre code write out current crontabcrontab gt mycron echo new cron into cron fileecho 00 09 echo hello gt gt mycron install new cron filecrontab mycronrm mycron code prehrh2Cron line explaination h2pre code command to be executed Day of week Sunday or Month 12 Day of month 31 Hour 23 Minute 59 code prepSource href http www cyberciti biz faq how do add jobs to cron under linux or unix oses rel noreferrer nixCraft hi what do do if want to make sure no same cronjob are added twice pYou can add to the crontab as follows ppre code write out current crontabcrontab gt mycron echo new cron into cron fileecho 00 09 echo hello gt gt mycron install new cron filecrontab mycronrm mycron code prehrh2Cron line explaination h2pre code command to be executed Day of week Sunday or Month 12 Day of month 31 Hour 23 Minute 59 code prepSource href http www cyberciti biz faq how do add jobs to cron under linux or unix oses rel noreferrer nixCraft thanks It works,0,NULL,NULL 71151,199133,753130,NULL,NULL,NULL,0,NULL,NULL 71152,61135,1242157,Excavator Tag Editor Explainer Autobiographer Yearling scala Custodian Nice Answer Enlightened Revival Nice Answer Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71153,96416,915948,Strunk & White Self-Learner Nice Answer Popular Question Revival Custodian Tumbleweed Promoter Curious Custodian Explainer Caucus,NULL,NULL,0,NULL,NULL 71154,39446,807591,Commentator,NULL,NULL,0,NULL,NULL 71155,1071819,1069572,Student Enthusiast,NULL,NULL,0,NULL,NULL 71156,652966,740786,NULL,NULL,NULL,0,NULL,NULL 71157,566131,4433,Nice Answer java Guru Nice Answer Yearling Nice Question Nice Answer Enlightened Famous Question Yearling Documentation User Good Answer Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 71158,2171163,1335752,NULL,NULL,NULL,0,NULL,NULL 71159,184513,976040,NULL,NULL,NULL,0,NULL,NULL 71160,495129,1292052,Nice Answer Yearling Nice Answer Enlightened Nice Answer Popular Question Yearling Curious Documentation User Nice Answer Nice Answer Enlightened Yearling Popular Question Custodian Nice Answer php,NULL,NULL,0,NULL,NULL 71161,337846,967982,Famous Question Popular Question Notable Question Nice Answer Enlightened Civic Duty Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71162,218961,72766,Good Question,NULL,NULL,0,NULL,NULL 71163,867667,47645,Favorite Question Necromancer Famous Question Good Question Guru Necromancer Nice Question Notable Question Popular Question Popular Question Famous Question Popular Question Nice Answer Yearling Great Question Nice Answer Notable Question Nice Question Popular Question Popular Question Nice Question Notable Question Famous Question Good Question Yearling Nice Answer Nice Question Notable Question,NULL,NULL,0,NULL,NULL 71164,67052,19124,Popular Question Yearling Self-Learner Custodian Caucus Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 71165,11801,21014,NULL,NULL,NULL,0,NULL,NULL 71166,496689,432573,Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 71167,42055,515162,Yearling Custodian Announcer,NULL,NULL,0,NULL,NULL 71168,20442,174954,NULL,NULL,NULL,0,NULL,NULL 71169,1406834,1087788,Popular Question,NULL,NULL,0,NULL,NULL 71170,410134,352708,Nice Question Notable Question Nice Answer Necromancer Yearling Guru Nice Answer Strunk & White Caucus spring Good Answer Announcer Yearling Announcer Nice Answer Announcer Famous Question Custodian Documentation User Popular Question Notable Question bean-validation Nice Answer Nice Answer Nice Answer Enlightened Yearling Necromancer Nice Answer Nice Answer Enlightened,NULL,href http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis rel noreferrer http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis provides an overview of this issue from PostgreSQL perspective ppIs DDL transactional according to this document pulliPostgreSQL yes liliMySQL no DDL causes an implicit commit liliOracle Database 11g Release and above by default no but an alternative called edition based redefinition exists liliOlder versions of Oracle no DDL causes an implicit commit liliSQL Server yes liliSybase Adaptive Server yes liliDB2 yes liliInformix yes liliFirebird Interbase yes li ulpSQLite also appears to have transactional DDL as well was able to codeROLLBACK code codeCREATE TABLE code statement in SQLite Its codeCREATE TABLE code documentation does not mention any special transactional gotchas H2 no most data definition language DDL statements such as create table commit the current transaction,0,NULL,NULL 71171,503435,1211164,NULL,NULL,NULL,0,NULL,NULL 71172,445918,599852,Critic,NULL,NULL,0,NULL,NULL 71173,130420,946841,Teacher Informed Supporter Autobiographer Editor,NULL,NULL,0,NULL,NULL 71174,566506,1258236,NULL,NULL,NULL,0,NULL,NULL 71175,17138,554907,Yearling Good Answer,NULL,NULL,0,NULL,NULL 71176,4686018,713961,Nice Question Notable Question Notable Question Popular Question Nice Answer Yearling Nice Question Famous Question Good Question Popular Question Popular Question Nice Answer Enlightened Nice Question Popular Question Good Question Caucus Notable Question Announcer Notable Question Notable Question Announcer Yearling Notable Question Popular Question Announcer Notable Question Nice Answer Census Notable Question Nice Answer Popular Question Yearling Announcer Favorite Question Nice Question Popular Question Popular Question Notable Question Nice Answer Enlightened,NULL,Passing shared ptrDerived as shared ptrBase casting 11 shared ptr smart pointers pWhat is the best method to go about passing codeshared ptr code of derived type to function that takes codeshared ptr code of base type ppI generally pass codeshared ptr codes by reference to avoid needless copy ppre codeint foo const shared ptr lt bar gt amp ptr code prepbut this doesn work if try to do something like ppre codeint foo const shared ptr lt Base gt amp ptr shared ptr lt Derived gt bar make shared lt Derived gt foo bar code prepI could use ppre codefoo dynamic pointer cast lt Base Derived gt bar code prepbut this seems sub optimal for two reasons pulliA codedynamic cast code seems bit excessive for simple derived to base cast liliAs understand it codedynamic pointer cast code creates copy albeit temporary one of the pointer to pass to the function li ulpIs there better solution ph2Update for posterity h2pIt turned out to be an issue of missing header file Also what was trying to do here is considered an antipattern Generally pulli pFunctions that don impact an object lifetime the object remains valid for the duration of the function should take plain reference or pointer codeint foo bar amp code lili pFunctions that emconsume em an object are the final users of given object should take codeunique ptr code by value codeint foo unique ptr lt bar gt code Callers should codestd move code the value into the function lili pFunctions that extend the lifetime of an object should take codeshared ptr code by value codeint foo shared ptr lt bar gt code The usual advice to avoid href https en wikipedia org wiki Circular reference rel noreferrer circular references applies li ulpSee Herb Sutter href https www youtube com watch xnqTKD8uD64 rel noreferrer Back to Basics talk for details This was years ago at this point but believe forgot to include the header of one of the types was wrapping in shared ptr Since the shared ptr template needs to know the size of the object it wrapping this causes issues Passing shared ptrDerived as shared ptrBase casting 11 shared ptr smart pointers pWhat is the best method to go about passing codeshared ptr code of derived type to function that takes codeshared ptr code of base type ppI generally pass codeshared ptr codes by reference to avoid needless copy ppre codeint foo const shared ptr lt bar gt amp ptr code prepbut this doesn work if try to do something like ppre codeint foo const shared ptr lt Base gt amp ptr shared ptr lt Derived gt bar make shared lt Derived gt foo bar code prepI could use ppre codefoo dynamic pointer cast lt Base Derived gt bar code prepbut this seems sub optimal for two reasons pulliA codedynamic cast code seems bit excessive for simple derived to base cast liliAs understand it codedynamic pointer cast code creates copy albeit temporary one of the pointer to pass to the function li ulpIs there better solution ph2Update for posterity h2pIt turned out to be an issue of missing header file Also what was trying to do here is considered an antipattern Generally pulli pFunctions that don impact an object lifetime the object remains valid for the duration of the function should take plain reference or pointer codeint foo bar amp code lili pFunctions that emconsume em an object are the final users of given object should take codeunique ptr code by value codeint foo unique ptr lt bar gt code Callers should codestd move code the value into the function lili pFunctions that extend the lifetime of an object should take codeshared ptr code by value codeint foo shared ptr lt bar gt code The usual advice to avoid href https en wikipedia org wiki Circular reference rel noreferrer circular references applies li ulpSee Herb Sutter href https www youtube com watch xnqTKD8uD64 rel noreferrer Back to Basics talk for details Hmm Forward declarations seem to work in some cases and not in others Perhaps this has something to do with how lazily implements templates the compiler doesn bother checking template code that isn instantiated elsewhere At any rate speaking beyond my expertise and The code above is poor practice to begin with Functions that take ownership should take copy of the shared ptr and functions that do not should just take const reference,0,NULL,NULL 71177,312891,713961,Nice Question Notable Question Notable Question Popular Question Nice Answer Yearling Nice Question Famous Question Good Question Popular Question Popular Question Nice Answer Enlightened Nice Question Popular Question Good Question Caucus Notable Question Announcer Notable Question Notable Question Announcer Yearling Notable Question Popular Question Announcer Notable Question Nice Answer Census Notable Question Nice Answer Popular Question Yearling Announcer Favorite Question Nice Question Popular Question Popular Question Notable Question Nice Answer Enlightened,NULL,Passing shared ptrDerived as shared ptrBase casting 11 shared ptr smart pointers pWhat is the best method to go about passing codeshared ptr code of derived type to function that takes codeshared ptr code of base type ppI generally pass codeshared ptr codes by reference to avoid needless copy ppre codeint foo const shared ptr lt bar gt amp ptr code prepbut this doesn work if try to do something like ppre codeint foo const shared ptr lt Base gt amp ptr shared ptr lt Derived gt bar make shared lt Derived gt foo bar code prepI could use ppre codefoo dynamic pointer cast lt Base Derived gt bar code prepbut this seems sub optimal for two reasons pulliA codedynamic cast code seems bit excessive for simple derived to base cast liliAs understand it codedynamic pointer cast code creates copy albeit temporary one of the pointer to pass to the function li ulpIs there better solution ph2Update for posterity h2pIt turned out to be an issue of missing header file Also what was trying to do here is considered an antipattern Generally pulli pFunctions that don impact an object lifetime the object remains valid for the duration of the function should take plain reference or pointer codeint foo bar amp code lili pFunctions that emconsume em an object are the final users of given object should take codeunique ptr code by value codeint foo unique ptr lt bar gt code Callers should codestd move code the value into the function lili pFunctions that extend the lifetime of an object should take codeshared ptr code by value codeint foo shared ptr lt bar gt code The usual advice to avoid href https en wikipedia org wiki Circular reference rel noreferrer circular references applies li ulpSee Herb Sutter href https www youtube com watch xnqTKD8uD64 rel noreferrer Back to Basics talk for details This was years ago at this point but believe forgot to include the header of one of the types was wrapping in shared ptr Since the shared ptr template needs to know the size of the object it wrapping this causes issues Passing shared ptrDerived as shared ptrBase casting 11 shared ptr smart pointers pWhat is the best method to go about passing codeshared ptr code of derived type to function that takes codeshared ptr code of base type ppI generally pass codeshared ptr codes by reference to avoid needless copy ppre codeint foo const shared ptr lt bar gt amp ptr code prepbut this doesn work if try to do something like ppre codeint foo const shared ptr lt Base gt amp ptr shared ptr lt Derived gt bar make shared lt Derived gt foo bar code prepI could use ppre codefoo dynamic pointer cast lt Base Derived gt bar code prepbut this seems sub optimal for two reasons pulliA codedynamic cast code seems bit excessive for simple derived to base cast liliAs understand it codedynamic pointer cast code creates copy albeit temporary one of the pointer to pass to the function li ulpIs there better solution ph2Update for posterity h2pIt turned out to be an issue of missing header file Also what was trying to do here is considered an antipattern Generally pulli pFunctions that don impact an object lifetime the object remains valid for the duration of the function should take plain reference or pointer codeint foo bar amp code lili pFunctions that emconsume em an object are the final users of given object should take codeunique ptr code by value codeint foo unique ptr lt bar gt code Callers should codestd move code the value into the function lili pFunctions that extend the lifetime of an object should take codeshared ptr code by value codeint foo shared ptr lt bar gt code The usual advice to avoid href https en wikipedia org wiki Circular reference rel noreferrer circular references applies li ulpSee Herb Sutter href https www youtube com watch xnqTKD8uD64 rel noreferrer Back to Basics talk for details Hmm Forward declarations seem to work in some cases and not in others Perhaps this has something to do with how lazily implements templates the compiler doesn bother checking template code that isn instantiated elsewhere At any rate speaking beyond my expertise and The code above is poor practice to begin with Functions that take ownership should take copy of the shared ptr and functions that do not should just take const reference,0,NULL,NULL 71178,786371,917613,Editor Census,NULL,NULL,0,NULL,NULL 71179,883457,620949,NULL,NULL,NULL,0,NULL,NULL 71180,162115,1801,Favorite Question Notable Question Nice Answer Yearling Famous Question Revival Famous Question Notable Question Popular Question Yearling Announcer Notable Question Documentation User Nice Answer Enlightened Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71181,84218,1010011,Editor,NULL,NULL,0,NULL,NULL 71182,448142,940681,Autobiographer Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 71183,188708,1008939,Nice Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 71184,1523144,644805,NULL,NULL,NULL,0,NULL,NULL 71185,42863,190446,Nice Question Good Question Good Answer Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Taxonomist Popular Question Yearling Caucus Famous Question Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Popular Question Popular Question Good Question Notable Question Popular Question Popular Question Socratic Famous Question ruby Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Guru Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71186,282676,3475,Popular Question Popular Question Good Question Populist Guru Notable Question Good Question Yearling Good Answer Famous Question Yearling Custodian Notable Question Documentation User Revival Great Answer Good Question Custodian Caucus Constituent Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 71187,1514382,856661,NULL,NULL,NULL,0,NULL,NULL 71188,313358,269380,NULL,NULL,NULL,0,NULL,NULL 71189,762190,733614,NULL,NULL,NULL,0,NULL,NULL 71190,270636,342475,NULL,NULL,NULL,0,NULL,NULL 71191,1134175,1323165,Notable Question Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 71192,128409,763094,Popular Question Notable Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71193,920970,885490,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71194,412370,97950,NULL,NULL,NULL,0,NULL,NULL 71195,336027,774248,NULL,NULL,NULL,0,NULL,NULL 71196,110028,1138328,Yearling Good Answer,NULL,NULL,0,NULL,NULL 71197,256489,1147032,Popular Question,NULL,NULL,0,NULL,NULL 71198,504437,141527,Teacher,NULL,NULL,0,NULL,NULL 71199,927031,572750,NULL,NULL,NULL,0,NULL,NULL 71200,797362,500224,NULL,NULL,NULL,0,NULL,NULL 71201,1167848,526585,NULL,NULL,NULL,0,NULL,NULL 71202,874474,1320588,Yearling Popular Question,NULL,NULL,0,NULL,NULL 71203,85716,223904,NULL,NULL,NULL,0,NULL,NULL 71204,1562323,1224243,Supporter Scholar Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71205,25347,270794,Necromancer Announcer,NULL,NULL,0,NULL,NULL 71206,46814,610072,NULL,NULL,NULL,0,NULL,NULL 71207,256347,1061928,NULL,NULL,NULL,0,NULL,NULL 71208,285862,469300,Popular Question Nice Answer Nice Question Good Answer Nice Answer Popular Question Notable Question Popular Question Popular Question Nice Question Electorate Good Answer Popular Question Famous Question Good Question Nice Answer Guru Famous Question Favorite Question Yearling Notable Question Popular Question Caucus javascript Good Answer node.js Nice Answer Enlightened Popular Question Nice Question Nice Question Popular Question Necromancer Popular Question Notable Question Nice Answer Popular Question Popular Question Nice Answer python Nice Question Great Question Good Answer Cleanup Popular Question Nice Answer Enlightened Nice Question Yearling Disciplined Nice Answer Nice Answer Notable Question Notable Question Nice Answer Enlightened Nice Answer Famous Question c Nice Question Nice Answer Popular Question Good Answer Great Answer Popular Question Nice Answer Enlightened Nice Question Nice Answer Yearling Notable Question Great Answer Notable Question Guru Good Answer,NULL,pYou can break from codeforEach code can think of three ways to fake it though pp strong1 The Ugly Way strong pass second argument to codeforEach code to href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array forEach example rel noreferrer use as context and store boolean in there then use an codeif code This looks awful pp strong2 The Controversial Way strong surround the whole thing in codetry catch code block and throw an exception when you want to break This looks pretty bad and href https stackoverflow com questions 19727905 in javascript is it expensive to use try catch blocks even if an exception is may affect performance but can be encapsulated pp strong3 The Fun Way strong use strong href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array every rel noreferrer codeevery code strong ppre code every function element index Do your thing then if you want to break return false else return true code prepYou can use strong href https developer mozilla org en US docs Web JavaScript Reference Global Objects Array some rel noreferrer codesome code strong instead if you rather codereturn true code to break The second argument to forEach callback context is the context object which can be accessed as this from within the callback You could put an object there with property that tells you whether items should be processed or not This still implies linear walk down the array unless you throw,0,NULL,NULL 71209,195314,1313547,Yearling Notable Question Excavator Popular Question,NULL,NULL,0,NULL,NULL 71210,506700,962915,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71211,7551823,1266123,Yearling Nice Answer Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 71212,137799,884294,NULL,NULL,NULL,0,NULL,NULL 71213,373495,884294,NULL,NULL,NULL,0,NULL,NULL 71214,13344,83761,Great Answer Good Answer Yearling Yearling Good Answer Guru Documentation User Yearling,NULL,NULL,0,NULL,NULL 71215,706671,412473,Yearling Good Question Custodian Yearling Popular Question Announcer Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71216,104381,105669,Yearling Nice Answer Enlightened Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71217,315544,449954,NULL,NULL,NULL,0,NULL,NULL 71218,243449,259809,Yearling Good Answer,NULL,NULL,0,NULL,NULL 71219,76429,1207429,Revival Yearling Revival Commentator Yearling Nice Answer Necromancer Documentation User Scholar,NULL,NULL,0,NULL,NULL 71220,751615,667220,Supporter,NULL,NULL,0,NULL,NULL 71221,49737,159522,Notable Question Popular Question Nice Question Popular Question Nice Question Favorite Question Notable Question Notable Question Great Question Good Answer Notable Question Popular Question Popular Question Yearling Popular Question Nice Answer Famous Question Notable Question Notable Question Notable Question Popular Question Popular Question Custodian Popular Question Taxonomist Famous Question Caucus Popular Question Notable Question Yearling Notable Question Nice Question Favorite Question Popular Question Nice Answer Popular Question Nice Question Nice Question Popular Question Popular Question Great Question Popular Question Famous Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 71222,245102,1283731,NULL,NULL,NULL,0,NULL,NULL 71223,42353,727602,NULL,NULL,NULL,0,NULL,NULL 71224,169000,72179,NULL,NULL,NULL,0,NULL,NULL 71225,904160,310030,NULL,NULL,,0,, 71226,43985,843024,NULL,NULL,NULL,0,NULL,NULL 71227,34457,589725,NULL,NULL,NULL,0,NULL,NULL 71228,188526,144790,Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 71229,975985,906111,NULL,NULL,NULL,0,NULL,NULL 71230,70577,137635,Yearling Necromancer Yearling Caucus Popular Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 71231,413752,429992,NULL,NULL,NULL,0,NULL,NULL 71232,114706,587527,NULL,NULL,NULL,0,NULL,NULL 71233,257266,1534218,Nice Answer Enlightened Nice Answer Yearling Caucus Constituent Yearling Documentation User Nice Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 71234,385404,710774,NULL,NULL,NULL,0,NULL,NULL 71235,743292,501825,Yearling Critic Caucus,NULL,NULL,0,NULL,NULL 71236,2360870,501825,Yearling Critic Caucus,NULL,NULL,0,NULL,NULL 71237,1531474,1424316,NULL,NULL,NULL,0,NULL,NULL 71238,66925,904990,NULL,NULL,NULL,0,NULL,NULL 71239,322085,1316600,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 71240,785029,1508413,NULL,NULL,NULL,0,NULL,NULL 71241,37101,990261,Popular Question,NULL,NULL,0,NULL,NULL 71242,489492,573477,NULL,NULL,NULL,0,NULL,NULL 71243,1033035,518926,NULL,NULL,NULL,0,NULL,NULL 71244,2715138,1295070,NULL,NULL,NULL,0,NULL,NULL 71245,1340,1404276,Good Answer,NULL,NULL,0,NULL,NULL 71246,43871,488565,Notable Question,NULL,NULL,0,NULL,NULL 71247,389154,366411,Curious Necromancer Yearling Necromancer Yearling Popular Question Tumbleweed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71248,225055,8220,Good Answer Good Answer Guru Famous Question Guru Popular Question Popular Question Yearling Good Answer Popular Question Nice Answer Guru Nice Answer Inquisitive Yearling Guru Guru Nice Answer Enlightened Good Question Guru Nice Answer Enlightened Popular Question Yearling Good Question Nice Question,NULL,NULL,0,NULL,NULL 71249,63603,314027,Yearling Nice Answer Enlightened Student Peer Pressure Popular Question Autobiographer Notable Question Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 71250,13025,335125,NULL,NULL,NULL,0,NULL,NULL 71251,584798,49960,Yearling Revival Notable Question Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 71252,462151,21199,Popular Question Notable Question Notable Question Yearling Popular Question Yearling Nice Question Popular Question Yearling Nice Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 71253,209595,526402,Nice Question,NULL,NULL,0,NULL,NULL 71254,24653,472104,NULL,NULL,NULL,0,NULL,NULL 71255,190930,1218503,NULL,NULL,NULL,0,NULL,NULL 71256,446076,605119,Necromancer,NULL,NULL,0,NULL,NULL 71257,591471,1210858,Excavator,NULL,NULL,0,NULL,NULL 71258,21051,872069,NULL,NULL,NULL,0,NULL,NULL 71259,4199888,821991,Popular Question,NULL,NULL,0,NULL,NULL 71260,362987,749656,NULL,NULL,NULL,0,NULL,NULL 71261,2962843,473781,Notable Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71262,444430,473781,Notable Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71263,392225,629063,NULL,NULL,NULL,0,NULL,NULL 71264,814656,1361997,NULL,NULL,NULL,0,NULL,NULL 71265,725237,235700,Civic Duty Nice Answer Enlightened Enthusiast Yearling Custodian Nice Answer Nice Answer Documentation User Yearling Census Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71266,459399,1043276,Yearling Scholar,NULL,NULL,0,NULL,NULL 71267,4004286,318106,NULL,NULL,NULL,0,NULL,NULL 71268,686507,210676,NULL,NULL,NULL,0,NULL,NULL 71269,66659,126398,Yearling Nice Question Yearling Necromancer Famous Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71270,47822,965434,NULL,NULL,NULL,0,NULL,NULL 71271,549243,441719,NULL,NULL,NULL,0,NULL,NULL 71272,138176,732888,Guru Yearling Notable Question Notable Question Popular Question Nice Question Good Question Yearling Favorite Question Favorite Question Great Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71273,745168,993951,NULL,NULL,NULL,0,NULL,NULL 71274,300562,585084,NULL,NULL,NULL,0,NULL,NULL 71275,589370,430360,Yearling Necromancer Yearling Announcer Caucus Nice Answer Nice Answer Popular Question Custodian Yearling Good Answer Popular Question Nice Answer Pundit,NULL,NULL,0,NULL,NULL 71276,372731,704951,NULL,NULL,NULL,0,NULL,NULL 71277,658538,533518,NULL,NULL,NULL,0,NULL,NULL 71278,532610,705160,NULL,NULL,NULL,0,NULL,NULL 71279,477,1248952,Necromancer Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 71280,1385510,1117729,NULL,NULL,NULL,0,NULL,NULL 71281,18341,475284,NULL,NULL,NULL,0,NULL,NULL 71282,503905,576527,NULL,NULL,NULL,0,NULL,NULL 71283,559066,1108686,NULL,NULL,NULL,0,NULL,NULL 71284,8364,208684,Editor Supporter,NULL,NULL,0,NULL,NULL 71285,925344,796181,Yearling Popular Question Notable Question Yearling Nice Answer Enlightened Tumbleweed Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 71286,1146160,887589,Student,NULL,NULL,0,NULL,NULL 71287,206098,485954,Teacher Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 71288,163116,735704,NULL,NULL,NULL,0,NULL,NULL 71289,855804,339096,NULL,NULL,NULL,0,NULL,NULL 71290,185956,450909,NULL,NULL,NULL,0,NULL,NULL 71291,25123,214196,Popular Question Popular Question Popular Question Notable Question Documentation Pioneer Good Question Yearling Good Answer Guru Announcer Announcer Caucus Documentation User Nice Question Popular Question Yearling Notable Question Nice Answer Favorite Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71292,176595,239876,NULL,NULL,NULL,0,NULL,NULL 71293,479494,1006564,Good Answer,NULL,NULL,0,NULL,NULL 71294,394966,519477,Custodian Critic Informed Caucus Yearling Popular Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71295,89757,1457248,Civic Duty,NULL,NULL,0,NULL,NULL 71296,391994,394418,Notable Question Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71297,47350,693944,Popular Question,NULL,NULL,0,NULL,NULL 71298,736323,1153628,NULL,NULL,NULL,0,NULL,NULL 71299,450970,227715,Tumbleweed,NULL,NULL,0,NULL,NULL 71300,28645,479805,Inquisitive Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Yearling Necromancer Nice Question Caucus Popular Question Favorite Question Notable Question Yearling Great Question Popular Question Necromancer Nice Answer Notable Question Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71301,275073,579226,Revival Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71302,323950,782787,Necromancer Supporter,NULL,NULL,0,NULL,NULL 71303,148177,94559,Nice Answer Enlightened Revival Nice Answer Guru Yearling Mortarboard Cleanup javascript Custodian Guru python Nice Answer Enlightened Strunk & White Generalist php Pundit Nice Answer Great Answer Informed Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Civic Duty Good Answer Nice Answer python Nice Answer Enlightened Nice Answer Nice Answer azure-storage azure-table-storage azure-storage Documentation User Nice Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened arrays Nice Answer Nice Answer Enlightened Yearling Revival Nice Answer Enlightened Refiner Good Answer Nice Answer Enlightened Disciplined javascript,NULL,NULL,1,NULL,Trying to replicate Python struct unpack in JavaScript with TypedArrays javascript python pI am trying to reproduce the following Python code in JavaScript ppre codeimport structval struct unpack gt MACS code prep codeval code is now code1296122707 code the same as code0x4d414353 code Trying the same with codehtk1 code gives code1752460081 code the same as code0x68746b31 code ppI was trying to bring this to JavaScript so got to studying and came across this documentation on Python href https docs python org library stdtypes html int from bytes rel nofollow noreferrer codeclassmethod int from bytes code ppSo the above is the same as ppre codeint from bytes MACS big code prepHowever am not able to port it to JavaScript How can make start on doing so or is it already available out there ppHere was my attempt ppre codefunction unpackL fourCharCode var buf new ArrayBuffer var view new DataView buf view setUint8 String charCodeAt fourCharCode true view setUint8 String charCodeAt fourCharCode true view setUint8 String charCodeAt fourCharCode true view setUint8 String charCodeAt fourCharCode true return new Uint32Array buf code prepHowever codeunpackL htk1 code gives me codeUint32Array 7602280 3211371 code pHere function that does this returning undefined if the string is the wrong length ppre codefunction stringToUnsignedInt string if string length return undefined return string charCodeAt lt lt 24 string charCodeAt lt lt 16 string charCodeAt lt lt string charCodeAt console log stringToUnsignedInt MACS 1296122707 trueconsole log stringToUnsignedInt htk1 1752460081 true code pre 71304,67207,10556,Nice Answer Enlightened Good Answer Good Answer Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71305,883753,689018,NULL,NULL,NULL,0,NULL,NULL 71306,1506247,699991,NULL,NULL,NULL,0,NULL,NULL 71307,423101,73563,NULL,NULL,NULL,0,NULL,NULL 71308,173339,858138,Yearling Scholar,NULL,NULL,0,NULL,NULL 71309,422831,575598,Popular Question,NULL,NULL,0,NULL,NULL 71310,244119,40786,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 71311,722261,766700,NULL,NULL,NULL,0,NULL,NULL 71312,112528,29115,Popular Question,NULL,NULL,0,NULL,NULL 71313,41675,494317,NULL,NULL,NULL,0,NULL,NULL 71314,1072232,379633,NULL,NULL,NULL,0,NULL,NULL 71315,182707,138636,NULL,NULL,NULL,0,NULL,NULL 71316,218491,747275,Popular Question Notable Question Popular Question Yearling Self-Learner Caucus Constituent Popular Question Notable Question Popular Question Caucus Popular Question Famous Question Yearling Notable Question Civic Duty Nice Question Popular Question Popular Question Popular Question Yearling Necromancer Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71317,483275,24193,Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 71318,71110,56951,Nice Question,NULL,NULL,0,NULL,NULL 71319,88028,550448,NULL,NULL,NULL,0,NULL,NULL 71320,106865,1170344,NULL,NULL,NULL,0,NULL,NULL 71321,897613,420156,Notable Question Yearling Census Notable Question Announcer Investor Necromancer Popular Question Census Nice Answer Announcer Civic Duty Announcer Popular Question,NULL,NULL,0,NULL,NULL 71322,513505,1355212,NULL,NULL,NULL,0,NULL,NULL 71323,1555846,1378612,NULL,NULL,NULL,0,NULL,NULL 71324,6695172,522373,Informed,NULL,NULL,0,NULL,NULL 71325,213188,1315355,NULL,NULL,NULL,0,NULL,NULL 71326,174318,416848,NULL,NULL,NULL,0,NULL,NULL 71327,968879,1092324,Good Answer Yearling Yearling Self-Learner,NULL,pYou need to verify the permissions of the codeauthorized keys code file and the folder parent folders in which it is located ppre codechmod 700 sshchmod 600 ssh authorized keys code prepFor more information see href https web archive org web 20140327182105 http www openssh org faq html 14 rel noreferrer this page ppYou may also need to change verify the permissions of your home directory to remove write access for the group and others ppre codechmod go code pre Sonofab the chmod on the home directory was it for me Who would have thought of that Grr Thanks for the answer,0,NULL,NULL 71328,417392,845390,NULL,NULL,NULL,0,NULL,NULL 71329,143076,626340,NULL,NULL,NULL,0,NULL,NULL 71330,10438,1089161,Critic python Yearling Yearling,NULL,NULL,0,NULL,NULL 71331,533749,520619,NULL,NULL,NULL,0,NULL,NULL 71332,169969,832819,NULL,NULL,NULL,0,NULL,NULL 71333,468452,221943,Critic Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 71334,868299,586660,Yearling Famous Question Guru Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71335,32392,143280,Good Answer Nice Answer Yearling Good Answer Yearling Revival Good Answer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 71336,10762,1263403,Popular Question Notable Question Announcer Civic Duty Notable Question Yearling Popular Question Good Question Notable Question Famous Question Yearling Critic Popular Question Caucus,NULL,NULL,0,NULL,NULL 71337,543436,439649,Popular Question,NULL,NULL,0,NULL,NULL 71338,8302,247,Nice Answer Necromancer Nice Answer Enlightened Nice Question Nice Answer Yearling Famous Question Good Answer Yearling Benefactor Yearling Favorite Question,NULL,NULL,0,NULL,NULL 71339,151120,1457221,Yearling Revival Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 71340,61225,1040396,Yearling,NULL,NULL,0,NULL,NULL 71341,2164753,1040396,Yearling,NULL,NULL,0,NULL,NULL 71342,3758581,911824,NULL,NULL,NULL,0,NULL,NULL 71343,2825162,1030953,Good Answer Caucus Notable Question Yearling Guru Enlightened Popular Question,NULL,NULL,0,NULL,NULL 71344,814412,192414,Supporter Informed,NULL,NULL,0,NULL,NULL 71345,71250,193413,NULL,NULL,NULL,0,NULL,NULL 71346,415010,1204015,NULL,NULL,NULL,0,NULL,NULL 71347,125338,207478,NULL,NULL,NULL,0,NULL,NULL 71348,808739,561334,NULL,NULL,NULL,0,NULL,NULL 71349,201176,1435622,Revival Necromancer Critic,NULL,NULL,0,NULL,NULL 71350,690071,1191983,NULL,NULL,NULL,0,NULL,NULL 71351,390943,583938,NULL,NULL,NULL,0,NULL,NULL 71352,304254,403041,NULL,NULL,NULL,0,NULL,NULL 71353,659511,599050,Yearling Guru Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71354,201416,700387,Popular Question Popular Question Custodian Informed Autobiographer Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71355,131221,262565,NULL,NULL,NULL,0,NULL,NULL 71356,279394,141458,Yearling Caucus Student Necromancer,NULL,NULL,0,NULL,NULL 71357,1002214,1184256,NULL,NULL,NULL,0,NULL,NULL 71358,373541,1303559,Yearling,NULL,NULL,0,NULL,NULL 71359,900886,848168,Yearling Editor Excavator Yearling,NULL,NULL,0,NULL,NULL 71360,131133,867505,Popular Question Popular Question Notable Question Yearling Nice Answer Nice Question Caucus Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Nice Question Good Answer Popular Question Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 71361,194036,214084,NULL,NULL,NULL,0,NULL,NULL 71362,1217304,1407571,Teacher Enthusiast Commentator Yearling Custodian Fanatic Caucus Yearling Caucus Supporter Caucus,NULL,NULL,0,NULL,NULL 71363,11205,897487,NULL,NULL,NULL,0,NULL,NULL 71364,22658,1021783,Student,NULL,NULL,0,NULL,NULL 71365,468441,439299,Popular Question Tumbleweed Popular Question Notable Question Notable Question Popular Question Notable Question Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 71366,218060,197577,NULL,NULL,NULL,0,NULL,NULL 71367,399738,83646,Good Question Yearling Notable Question Notable Question Popular Question Yearling Populist Yearling Great Answer,NULL,NULL,0,NULL,NULL 71368,1795587,1161982,Yearling Yearling,NULL,NULL,0,NULL,NULL 71369,430809,922658,NULL,NULL,NULL,0,NULL,NULL 71370,194451,1393947,NULL,NULL,NULL,0,NULL,NULL 71371,199030,100454,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71372,410771,1350282,NULL,NULL,NULL,0,NULL,NULL 71373,133026,191215,Revival Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer qr-code Nice Answer Guru Nice Answer Necromancer Notable Question Caucus Good Answer Yearling xcode Guru Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 71374,59440,1188341,Critic Notable Question Good Question,NULL,NULL,0,NULL,NULL 71375,1276350,70365,Yearling Nice Question Nice Question Good Question Famous Question Yearling Notable Question Notable Question Documentation User Yearling,NULL,NULL,0,NULL,NULL 71376,448972,207110,NULL,NULL,NULL,0,NULL,NULL 71377,124380,728734,Yearling Self-Learner Popular Question Popular Question Nice Answer Caucus Notable Question,NULL,NULL,0,NULL,NULL 71378,8046108,895567,Supporter,NULL,NULL,0,NULL,NULL 71379,1202433,550163,NULL,NULL,NULL,0,NULL,NULL 71380,7297330,294331,NULL,NULL,NULL,0,NULL,NULL 71381,27177,1209110,NULL,NULL,NULL,0,NULL,NULL 71382,279693,575061,NULL,NULL,NULL,0,NULL,NULL 71383,933703,1287501,Teacher,NULL,NULL,0,NULL,NULL 71384,187415,1421772,Teacher Supporter,NULL,NULL,0,NULL,NULL 71385,91534,443925,NULL,NULL,NULL,0,NULL,NULL 71386,306746,575092,Popular Question Yearling Nice Question Custodian Custodian Informed Good Answer,NULL,NULL,0,NULL,NULL 71387,340431,396161,Popular Question,NULL,NULL,0,NULL,NULL 71388,1504813,674723,NULL,NULL,NULL,0,NULL,NULL 71389,1172941,264052,Peer Pressure Popular Question Nice Question Popular Question Necromancer Great Answer Nice Question Good Question Good Question Explainer Notable Question Yearling Notable Question Popular Question Notable Question Famous Question Nice Question Famous Question Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question Famous Question Necromancer Nice Question Notable Question Nice Answer Popular Question Famous Question Nice Question Notable Question Famous Question Famous Question Famous Question Popular Question Good Question Popular Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question Necromancer Popular Question Popular Question Notable Question Notable Question Good Question Favorite Question Nice Answer Notable Question Good Answer Popular Question Nice Question Notable Question Necromancer Famous Question Notable Question Popular Question Notable Question Socratic Famous Question Nice Question Notable Question Notable Question Necromancer Famous Question Custodian Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question Good Question Nice Question Popular Question Famous Question Nice Question Notable Question Necromancer Famous Question Nice Question Nice Question Popular Question Good Question Notable Question Notable Question Popular Question Nice Question Nice Answer Popular Question Good Question Nice Question Nice Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Nice Question Popular Question Good Question Popular Question Necromancer Popular Question Popular Question Popular Question Notable Question Favorite Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Popular Question Popular Question Favorite Question Notable Question Nice Answer Nice Question Famous Question Notable Question Nice Question Nice Question Notable Question Nice Question Necromancer Notable Question Popular Question Notable Question Popular Question Notable Question Good Question Good Question Popular Question Popular Question Notable Question Notable Question Famous Question Good Question Good Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question Notable Question Nice Answer Good Answer Popular Question Nice Question Notable Question Nice Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Necromancer Popular Question Popular Question Notable Question Notable Question Good Question Famous Question Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Popular Question Favorite Question Yearling Famous Question Notable Question Popular Question Famous Question Popular Question Popular Question Custodian Popular Question Popular Question Popular Question Cleanup Notable Question Caucus Notable Question Famous Question Popular Question Popular Question Popular Question Necromancer Great Question Favorite Question Popular Question Good Question Notable Question Notable Question Good Question Notable Question Nice Question Notable Question Stellar Question Popular Question Popular Question Famous Question Favorite Question Good Question Popular Question Popular Question Popular Question Famous Question Popular Question Necromancer Nice Question Popular Question Popular Question Famous Question Pundit Good Question Notable Question Custodian Favorite Question Favorite Question Popular Question Notable Question Nice Question Famous Question Good Question Necromancer Nice Question Notable Question Nice Question Necromancer Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Famous Question Popular Question Great Question Popular Question Favorite Question Popular Question Popular Question Famous Question Notable Question,NULL,pTwo choices ppre code git rev parse abbrev ref symbolic full name origin mainline code prepor ppre code git for each ref format upstream short git symbolic ref HEAD origin mainline code pre This is precise answer But hard to remember answer,0,NULL,NULL 71390,609649,522135,NULL,NULL,NULL,0,NULL,NULL 71391,111730,485719,NULL,NULL,NULL,0,NULL,NULL 71392,6421739,835710,NULL,NULL,NULL,0,NULL,NULL 71393,1245534,1167074,Popular Question,NULL,NULL,0,NULL,NULL 71394,21351,714650,Popular Question,NULL,NULL,0,NULL,NULL 71395,108316,1378868,Enlightened Yearling Guru Nice Answer Custodian Yearling Nice Answer haskell Enlightened Scholar Yearling Excavator Electorate,NULL,NULL,0,NULL,NULL 71396,159442,259829,Supporter,NULL,NULL,0,NULL,NULL 71397,7243117,162671,Nice Answer Refiner Revival .net Documentation Pioneer Yearling Good Answer Nice Answer Caucus Constituent Nice Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Census Nice Answer Enlightened Good Answer Nice Answer Enlightened Revival Good Answer Caucus Yearling Documentation User Nice Answer Enlightened Guru Good Answer Guru Guru Nice Question Nice Answer Enlightened Good Answer Caucus Great Answer Nice Answer Enlightened Yearling Famous Question Great Answer Great Answer,NULL,NULL,0,NULL,NULL 71398,746555,420311,NULL,NULL,NULL,0,NULL,NULL 71399,518854,418646,NULL,NULL,NULL,0,NULL,NULL 71400,915193,943109,NULL,NULL,NULL,0,NULL,NULL 71401,364965,1427480,NULL,NULL,NULL,0,NULL,NULL 71402,270271,215922,Curious Necromancer Populist Nice Answer Good Answer Yearling Nice Question Notable Question Popular Question Custodian Nice Answer Necromancer Necromancer Nice Answer Yearling Popular Question Yearling Necromancer,NULL,emThe following is an excerpt from href http www strichnet com using git with 3d games rel noreferrer my personal blog em ph2Using Git with 3D Games h2p strongUpdate Oct 2015 strong GitHub has since released plugin for Git called href https git lfs github com rel noreferrer Git LFS that directly deals with the below problem You can now easily and efficiently version large binary files ppGit can work fine with 3D games out of the box However the main caveat here is that versioning large nbsp MB media files can be problem over the long term as your commit history bloats We have solved this potential issue in our projects by only versioning the binary asset when it is considered final Our 3D artists use href http en wikipedia org wiki Dropbox 28service 29 rel noreferrer Dropbox to work on href https en wikipedia org wiki Work in process rel noreferrer WIP assets both for the reason above and because it strongmuch strong faster and simpler not many artists will actively want to use Git ph2Git Workflow h2pYour Git workflow is very much something you need to decide for yourself given your own experiences as team and how you work together However would strongly recommend the appropriately named strongGit Flow strong methodology href http nvie com posts successful git branching model rel noreferrer as described by the original author here ppI won go into too much depth here on how the methodology works as the author describes it perfectly and in quite few words too so it easy to get through have been using with my team for awhile now and it the best workflow we ve tried so far ph2Git GUI Client Application h2pThis is really personal preference here as there are quite few options in terms of Git GUI or whether to use GUI at all But would like to suggest the free href http www sourcetreeapp com rel noreferrer SourceTree application as it plugs in perfectly with the Git Flow extension Read the href http blog sourcetreeapp com 2012 08 01 smart branching with sourcetree and git flow rel noreferrer SourceTree tutorial here on implementing the Git Flow methodology in their application ph2Unity3D Ignore Folders h2pFor an up to date version checkout href https github com github gitignore blob master Unity gitignore rel noreferrer Github maintained Unity gitignore file without OS specifics ppre code Unity generated Temp Library Visual Studio MonoDevelop generated ExportedObj obj svd userprefs csproj pidb suo sln user unityproj booproj OS generated DS Store DS Store Spotlight V100 Trashesehthumbs dbThumbs db code preh2Unity3D Settings h2pFor versions of Unity 3D v4 and up polli Skip this step in v4 and up Enable codeExternal code option in codeUnity Preferences Packages Repository code liliOpen the codeEdit code menu and pick codeProject Settings Editor code olliSwitch codeVersion Control Mode code to codeVisible Meta Files code liliSwitch codeAsset Serialization Mode code to codeForce Text code li ol liliSave the scene and project from codeFile code menu li olhrh2Want you migrate your existing repo to LFS h2pCheck out my blog post for steps href http www strichnet com migrating your project to git lfs rel noreferrer on how to do it here ph2Additional Configuration h2pOne of the few major annoyances one has with using Git with Unity3D projects is that Git doesn care about directories and will happily leave empty directories around after removing files from them Unity3D will make meta files for these directories and can cause bit of battle between team members when Git commits keep adding and removing these meta files pp href https github com strich git dir cleaner for unity3d rel noreferrer Add this Git post merge hook to the code git hooks code folder for repositories with Unity3D projects in them After any Git pull merge it will look at what files have been removed check if the directory it existed in is empty and if so delete it After following these steps cloning the repo to new location and opening the newly cloned project in Unity the hierarchy window may display with only the Main Camera If you see this two items to check first verify you are on the correct git branch if using branches Second you may need to select scene in the project window and double click,0,NULL,NULL 71403,1196711,106532,Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 71404,2774,572404,NULL,NULL,NULL,0,NULL,NULL 71405,31286,355189,NULL,NULL,NULL,0,NULL,NULL 71406,1343551,788011,NULL,NULL,NULL,0,NULL,NULL 71407,96138,448956,Revival Famous Question,NULL,NULL,0,NULL,NULL 71408,182920,654666,Nice Answer Enlightened Excavator Notable Question Notable Question Yearling Good Answer swift Nice Answer Guru Peer Pressure Nice Answer Caucus Nice Answer Popular Question Popular Question Nice Answer Good Answer Nice Answer Enlightened ios Yearling Nice Answer Enlightened Popular Question Nice Answer Famous Question Nice Answer Enlightened Caucus Nice Answer Nice Answer Good Answer Nice Answer Enlightened Notable Question Guru Yearling Caucus Good Answer Famous Question Explainer Popular Question Nice Answer,NULL,NULL,1,NULL,Search for all txt files in directory Swift swift file search stronga strong How should get all the txt files in directory ppi got path of directory and now should find all the txt files and change every one little ppi try to run over all the files ppre codelet fileManager NSFileManager defaultManager let enumerator NSDirectoryEnumerator fileManager enumeratorAtPath folderPath while let element enumerator nextObject as String code prepbut stuck there How can check if the filetype is text pp strongb strong When get to directory in the directory run want get in and search there too and in the end get out to the place was and continue pp codea code is much more important to me but if get an answer to codeb code too it will be nice pYou can use for in syntax of swift to enumerate through NSEnumerator ppHere is simple function wrote to extract all file of some extension inside folder ppre codefunc extractAllFile atPath path String withExtension fileExtension String gt String let pathURL NSURL fileURLWithPath path isDirectory true var allFiles String let fileManager NSFileManager defaultManager if let enumerator fileManager enumeratorAtPath path for file in enumerator if let path NSURL fileURLWithPath file as String relativeToURL pathURL path where path hasSuffix fileExtension allFiles append path return allFiles let folderPath NSBundle mainBundle pathForResource Files ofType nil let allTextFiles extractAllFile atPath folder withExtension txt returns file path of all the text files inside the folder code pre 71409,861958,1281371,NULL,NULL,NULL,0,NULL,NULL 71410,1213527,1127210,NULL,NULL,NULL,0,NULL,NULL 71411,373451,908629,NULL,NULL,NULL,0,NULL,NULL 71412,432798,691173,Notable Question Yearling Notable Question Notable Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71413,498570,82906,Notable Question Yearling Notable Question Nice Question Popular Question Popular Question Yearling Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 71414,19216,1177696,NULL,NULL,NULL,0,NULL,NULL 71415,1236751,812981,Nice Answer,NULL,NULL,0,NULL,NULL 71416,3446729,1434766,NULL,NULL,NULL,0,NULL,NULL 71417,136155,1434766,NULL,NULL,NULL,0,NULL,NULL 71418,1517517,1078328,NULL,NULL,NULL,0,NULL,NULL 71419,107753,221829,NULL,NULL,NULL,0,NULL,NULL 71420,77332,931578,Revival,NULL,NULL,0,NULL,NULL 71421,161691,287762,NULL,NULL,NULL,0,NULL,NULL 71422,151890,1077621,Yearling Good Answer,NULL,NULL,0,NULL,NULL 71423,1589646,1051716,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71424,34494,281119,Yearling Nice Answer Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 71425,82671,945810,NULL,NULL,NULL,0,NULL,NULL 71426,384327,926456,NULL,NULL,NULL,0,NULL,NULL 71427,1784635,925858,Editor,NULL,NULL,0,NULL,NULL 71428,354709,669805,Caucus,NULL,NULL,0,NULL,NULL 71429,892121,354895,Popular Question Editor,NULL,NULL,0,NULL,NULL 71430,280334,977106,NULL,NULL,NULL,0,NULL,NULL 71431,1660812,334984,Popular Question,NULL,NULL,0,NULL,NULL 71432,549003,605195,Yearling Great Question,NULL,NULL,0,NULL,NULL 71433,66906,1063976,NULL,NULL,NULL,0,NULL,NULL 71434,1566601,574631,Popular Question,NULL,NULL,0,NULL,NULL 71435,24583,321147,Good Answer,NULL,NULL,0,NULL,NULL 71436,444321,200244,Nice Question Famous Question Notable Question Yearling Famous Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 71437,522972,997425,NULL,NULL,NULL,0,NULL,NULL 71438,87377,241320,NULL,NULL,NULL,0,NULL,NULL 71439,199538,229189,Popular Question Yearling Favorite Question Great Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 71440,756320,855858,NULL,NULL,NULL,0,NULL,NULL 71441,441486,1034880,Teacher,NULL,NULL,0,NULL,NULL 71442,188031,743791,NULL,NULL,NULL,0,NULL,NULL 71443,557953,576232,NULL,NULL,NULL,0,NULL,NULL 71444,4684298,210605,Notable Question,NULL,NULL,0,NULL,NULL 71445,375792,1431181,NULL,NULL,NULL,0,NULL,NULL 71446,622386,1075568,NULL,NULL,NULL,0,NULL,NULL 71447,538850,327471,Critic Announcer,NULL,NULL,0,NULL,NULL 71448,257866,980292,NULL,NULL,NULL,0,NULL,NULL 71449,476023,1535880,Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71450,6929,398820,Yearling Guru Necromancer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 71451,372321,578700,Yearling Custodian Informed Autobiographer Citizen Patrol Yearling Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 71452,139497,1216965,Student Popular Question Tumbleweed Curious Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 71453,210057,1430838,NULL,NULL,NULL,0,NULL,NULL 71454,262209,808385,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71455,402076,791512,Necromancer Editor,NULL,NULL,0,NULL,NULL 71456,93337,458465,NULL,NULL,NULL,0,NULL,NULL 71457,252613,1538814,Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 71458,1408734,470867,NULL,NULL,NULL,0,NULL,NULL 71459,395716,146283,Famous Question Proofreader Notable Question django Good Question Yearling Famous Question Notable Question Caucus Constituent Good Answer Notable Question Popular Question Famous Question Yearling Popular Question Good Answer Famous Question Good Answer Caucus Popular Question Notable Question Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 71460,423160,1433029,Nice Answer,NULL,NULL,0,NULL,NULL 71461,147188,385436,Notable Question Famous Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 71462,286851,1122305,NULL,NULL,NULL,0,NULL,NULL 71463,6127,1122305,NULL,NULL,NULL,0,NULL,NULL 71464,924294,1009460,NULL,NULL,NULL,0,NULL,NULL 71465,96561,879524,Nice Answer Enlightened Yearling Good Question,NULL,pThere is now correct mechanism in Rails ppre code gt gt Model none gt lt ActiveRecord Relation gt code pre er that is not correct at least in Model all class is ActiveRecord Relation as well as Model none class So it safe to pass on to other methods that will transform the query,0,NULL,NULL 71466,1549952,881638,NULL,NULL,NULL,0,NULL,NULL 71467,2409,881638,NULL,NULL,NULL,0,NULL,NULL 71468,393679,575303,NULL,NULL,NULL,0,NULL,NULL 71469,173340,957078,NULL,NULL,NULL,0,NULL,NULL 71470,775447,315089,NULL,NULL,NULL,0,NULL,NULL 71471,1508826,836735,NULL,NULL,NULL,0,NULL,NULL 71472,702042,14091,Revival Yearling Nice Answer Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 71473,222329,1062607,Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 71474,168024,1082551,NULL,NULL,NULL,0,NULL,NULL 71475,235865,380066,Great Answer Yearling Popular Question Caucus Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 71476,1230260,100040,Popular Question,NULL,NULL,0,NULL,NULL 71477,609521,657659,NULL,NULL,NULL,0,NULL,NULL 71478,14848,684949,NULL,NULL,NULL,0,NULL,NULL 71479,881936,1060714,Popular Question Yearling Favorite Question Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71480,4923846,1060714,Popular Question Yearling Favorite Question Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71481,200249,878078,NULL,NULL,NULL,0,NULL,NULL 71482,110197,398634,Yearling Popular Question Revival Necromancer Caucus Announcer Nice Answer Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 71483,450418,625631,NULL,NULL,NULL,0,NULL,NULL 71484,781285,625631,NULL,NULL,NULL,0,NULL,NULL 71485,546636,324390,Notable Question Caucus Constituent Popular Question Popular Question Caucus Constituent Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71486,1339073,938785,Good Answer Yearling Critic Yearling Custodian,NULL,NULL,0,NULL,NULL 71487,276,854361,NULL,NULL,NULL,0,NULL,NULL 71488,645173,768350,NULL,NULL,NULL,0,NULL,NULL 71489,164800,102940,Nice Answer Nice Answer Notable Question Yearling Guru Custodian Critic Revival Necromancer Popular Question Yearling Nice Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71490,103175,298819,NULL,NULL,NULL,0,NULL,NULL 71491,1023757,458195,NULL,NULL,NULL,0,NULL,NULL 71492,1023825,458195,NULL,NULL,NULL,0,NULL,NULL 71493,839637,1418884,Commentator Nice Answer,NULL,NULL,0,NULL,NULL 71494,896005,395476,NULL,NULL,NULL,0,NULL,NULL 71495,266923,1060874,NULL,NULL,NULL,0,NULL,NULL 71496,80265,1207952,Popular Question Student Informed Autobiographer Editor Caucus,NULL,NULL,0,NULL,NULL 71497,596,372600,NULL,NULL,NULL,0,NULL,NULL 71498,920751,1548705,NULL,NULL,NULL,0,NULL,NULL 71499,2214868,1458109,NULL,NULL,NULL,0,NULL,NULL 71500,668207,1458109,NULL,NULL,NULL,0,NULL,NULL 71501,4737,746183,NULL,NULL,NULL,0,NULL,NULL 71502,121211,1412100,Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 71503,159163,953966,Peer Pressure Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 71504,1156559,270821,Yearling Nice Answer Caucus Civic Duty Yearling Necromancer Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 71505,1005893,912230,NULL,NULL,NULL,0,NULL,NULL 71506,662442,8123,Nice Answer Nice Answer Popular Question Notable Question Favorite Question Notable Question Guru Stellar Question Popular Question Nice Answer Yearling Guru Notable Question Popular Question Nice Answer Popular Question Notable Question Popular Question Nice Question Good Answer Revival Good Answer Great Answer Announcer Popular Question Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Notable Question Caucus Good Answer Notable Question Stellar Question Popular Question Nice Answer Nice Answer Yearling Good Answer Popular Question Famous Question Nice Answer Good Answer Nice Answer Good Question Good Answer Benefactor Revival Yearling,NULL,NULL,0,NULL,NULL 71507,61401,188044,Popular Question Nice Answer Great Question Popular Question Notable Question Yearling Informed Revival Announcer Notable Question Notable Question Popular Question Nice Answer Good Answer Populist Yearling Good Answer Nice Answer Popular Question Good Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 71508,181728,726743,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 71509,220227,1401554,NULL,NULL,NULL,0,NULL,NULL 71510,2286789,1401554,NULL,NULL,NULL,0,NULL,NULL 71511,264895,893373,Popular Question,NULL,NULL,0,NULL,NULL 71512,16177,136908,Notable Question Yearling Good Answer Popular Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 71513,167466,432328,NULL,NULL,NULL,0,NULL,NULL 71514,203558,617028,Teacher Revival Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 71515,266057,483305,NULL,NULL,NULL,0,NULL,NULL 71516,237462,614753,Student Citizen Patrol,NULL,NULL,0,NULL,NULL 71517,891710,1233331,Census,NULL,NULL,0,NULL,NULL 71518,142424,322683,Popular Question Notable Question Yearling Nice Question Popular Question Self-Learner Popular Question Revival Necromancer Good Question Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 71519,1996366,1265294,Popular Question Popular Question Organizer Yearling Popular Question Popular Question Caucus Promoter Peer Pressure Enthusiast Yearling Popular Question,NULL,NULL,0,NULL,NULL 71520,55110,388889,Nice Answer Enlightened Necromancer Yearling Nice Answer Caucus Constituent Yearling Documentation User Good Answer Necromancer Caucus Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71521,387784,452278,Yearling Nice Answer Yearling Nice Answer Enlightened Yearling Good Answer Announcer Guru Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 71522,1517239,1076032,NULL,NULL,NULL,0,NULL,NULL 71523,1043196,1110583,NULL,NULL,NULL,0,NULL,NULL 71524,900893,890337,Informed Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 71525,1994966,591020,NULL,NULL,NULL,0,NULL,NULL 71526,9134,434733,Yearling Editor Autobiographer Yearling,NULL,NULL,0,NULL,NULL 71527,2646135,251198,NULL,NULL,NULL,0,NULL,NULL 71528,313731,251198,NULL,NULL,NULL,0,NULL,NULL 71529,2296599,280437,NULL,NULL,NULL,0,NULL,NULL 71530,387106,1293223,NULL,NULL,NULL,0,NULL,NULL 71531,563558,914960,NULL,NULL,NULL,0,NULL,NULL 71532,183961,898056,NULL,NULL,NULL,0,NULL,NULL 71533,223194,530498,NULL,NULL,NULL,0,NULL,NULL 71534,44977,809227,Famous Question Great Answer Nice Question Yearling Nice Answer Great Question Famous Question Custodian Good Question Popular Question Yearling Yearling Notable Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 71535,755867,369957,Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71536,914926,12295,NULL,NULL,NULL,0,NULL,NULL 71537,441597,1245748,Student,NULL,NULL,0,NULL,NULL 71538,824512,612696,NULL,NULL,NULL,0,NULL,NULL 71539,222756,68172,Popular Question Yearling Popular Question Popular Question Popular Question Good Answer Popular Question Notable Question Good Question Nice Question Nice Question Notable Question Caucus Good Question Notable Question Yearling Famous Question Nice Answer Famous Question Good Answer Documentation User Nice Question Famous Question Yearling Guru Good Answer Guru Inquisitive Good Question,NULL,NULL,0,NULL,NULL 71540,906031,481081,Yearling Yearling,NULL,NULL,0,NULL,NULL 71541,475751,485112,NULL,NULL,NULL,0,NULL,NULL 71542,580475,1468097,Curious Tumbleweed Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 71543,267092,956431,Yearling Caucus Necromancer Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 71544,199131,343299,Yearling Yearling Custodian Citizen Patrol Organizer Custodian Suffrage Vox Populi Yearling Excavator Civic Duty Autobiographer Informed Yearling Cleanup Documentation Pioneer Yearling Yearling Tag Editor Explainer Enthusiast Fanatic Caucus Electorate swift rx-swift Yearling Popular Question Popular Question Announcer Announcer Documentation User Popular Question Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Popular Question Revival Popular Question Nice Answer Enlightened Nice Answer Enlightened Self-Learner ios Yearling Nice Question Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71545,436298,522580,NULL,NULL,NULL,0,NULL,NULL 71546,1743370,1027799,Notable Question,NULL,NULL,0,NULL,NULL 71547,506792,1076076,Popular Question,NULL,NULL,0,NULL,NULL 71548,25348,8903,NULL,NULL,NULL,0,NULL,NULL 71549,251213,868480,Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 71550,384090,517004,Nice Answer Commentator Revival Yearling Custodian Yearling Good Answer Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 71551,7763,280030,Yearling Popular Question Popular Question Popular Question Notable Question Yearling Great Question Yearling Notable Question Notable Question Notable Question Favorite Question Nice Answer,NULL,NULL,0,NULL,NULL 71552,361492,1030853,Famous Question Notable Question Nice Question Famous Question Nice Question Famous Question Notable Question Popular Question Good Question Yearling Caucus,NULL,NULL,0,NULL,NULL 71553,1446849,1091021,NULL,NULL,NULL,0,NULL,NULL 71554,2818210,482868,Popular Question Popular Question Caucus Popular Question Popular Question Citizen Patrol Custodian Organizer Announcer Caucus Yearling Yearling Custodian Custodian Explainer Yearling Yearling Suffrage Yearling Quorum Tenacious Unsung Hero Popular Question Custodian Notable Question Informed Notable Question Inquisitive Electorate Nice Question Popular Question Revival Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71555,27731,482868,Popular Question Popular Question Caucus Popular Question Popular Question Citizen Patrol Custodian Organizer Announcer Caucus Yearling Yearling Custodian Custodian Explainer Yearling Yearling Suffrage Yearling Quorum Tenacious Unsung Hero Popular Question Custodian Notable Question Informed Notable Question Inquisitive Electorate Nice Question Popular Question Revival Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71556,270315,803273,NULL,NULL,NULL,0,NULL,NULL 71557,462118,1276351,NULL,NULL,NULL,0,NULL,NULL 71558,142748,680764,Self-Learner Yearling Good Question Yearling Critic Nice Answer Enlightened Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 71559,894320,1429492,NULL,NULL,NULL,0,NULL,NULL 71560,31529,229520,NULL,NULL,NULL,0,NULL,NULL 71561,354448,895671,Excavator,NULL,NULL,0,NULL,NULL 71562,64340,669020,Nice Answer Enlightened Popular Question Yearling Inquisitive Nice Answer Nice Question Nice Answer Good Answer Yearling Notable Question Good Answer Famous Question Nice Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 71563,186811,847878,NULL,NULL,NULL,0,NULL,NULL 71564,753914,493273,NULL,NULL,NULL,0,NULL,NULL 71565,1241546,873952,Yearling Good Answer Popular Question Necromancer Yearling Guru Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 71566,49148,1296806,Popular Question Announcer Yearling Nice Answer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Enlightened Announcer Nice Answer Revival Announcer Disciplined Nice Question Announcer Nice Answer Good Question Popular Question Favorite Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Yearling Announcer Nice Answer Enlightened Announcer Announcer Announcer Caucus Constituent Nice Answer Enlightened Announcer Good Answer Nice Answer Announcer Custodian Announcer Nice Answer Enlightened Announcer Pundit Announcer Announcer Announcer Yearling Nice Answer Announcer Announcer Announcer Good Answer Announcer Announcer java Notable Question Nice Answer Revival Announcer Popular Question,NULL,why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre You always return from named method result It non local return an exception why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre https tpolecat github io 2014 05 09 return html why scala allows return from recoverWith scala pI am surprised that scala allows return from codeTry recoverWith code ppExample following code makes sense because recovering with codeSuccess code ppre codescala gt import scala util Try Success import scala util Try Success scala gt def result Option Int Try recoverWith case gt Success toOptionresult Option Int scala gt resultres7 Option Int Some code prepBut following code with return does not make any sense at least to me Which is not even making an effect because toOption still returns codeNone code not codeSome code ppre codescala gt def result Option Int Try recoverWith case gt return Some toOptionresult Option Int scala gt resultres11 Option Int None code prep strongWhy is the second example even valid code in scala strong because the definition of recoverWith is returning codeTry code ppre codedef recoverWith gt pf PartialFunction Throwable Try Try code prepAnd if remove codetoOption code part compilation fails which tells there is something between recoverWith and toOption ppre codescala gt def Try recoverWith case gt return Some lt console gt 13 error method applyOrElse has return statement needs result type def Try recoverWith case gt return Some code prepI using scala 12 ppre code scala versionScala code runner version 12 Copyright 2002 2017 LAMP EPFL and Lightbend Inc code pre This lint warning was just proposed then closed temporarily https github com scala scala pull 6515,1,NULL,How to properly use scalac Xlint scala compiler flags scalac scala compiler pscalax Xlint help provides the following info ppre code scalac Xlint helpEnable or disable specific warnings adapted args Warn if an argument list is modified to match the receiver nullary unit Warn when nullary methods return Unit inaccessible Warn about inaccessible types in method signatures nullary override Warn when non nullary def overrides nullary def infer any Warn when type argument is inferred to be Any missing interpolator string literal appears to be missing an interpolator id doc detached Scaladoc comment appears to be detached from its element private shadow private field or class parameter shadows superclass field type parameter shadow local type parameter shadows type already in scope poly implicit overload Parameterized overloaded implicit methods are not visible as view bounds option implicit Option apply used implicit view delayedinit select Selecting member of DelayedInit by name right associative By name parameter of right associative operator package object classes Class or object defined in package object unsound match Pattern match may not be typesafe stars align Pattern sequence wildcard must align with sequence component code prepIs there way to enable all checks What the semantic of codescalac Xlint code will it enable all default set which Won do anything pblockquote pNote Scala 11 and sbt 13 pIf newer versions provide different behaviour features let me know as updating them is not problem blockquote code Xlint code href https github com scala scala blob v2 12 M4 src compiler scala tools nsc settings Warnings scala L102 rel noreferrer currently means code Xlint code but that needs href https issues scala lang org browse SI 9832 rel noreferrer to be made explicit ppHistorically there have always been warnings that are too noisy or unreliable to enable by default so there have always been warnings excluded from code Xlint code ppCurrently there href https github com scala scala blob v2 12 M4 src compiler scala tools nsc settings Warnings scala L30 rel noreferrer one such lintable but it not hooked up to the command line option ppThere used to be code Ywarn all code that meant code Xlint code plus those other warnings It not obvious why that option went away ppAt one point code Xlint code was going to mean code Ywarn all code with code Xlint code to mean recommended subset but it turns out that people like to disable one or two lint rules with code Xlint annoying code which is harder to do if that enables arbitrarily many other noisy lint rules ppNormally codescalac code shows defaults but probably codescalac Xlint help code will be improved to show its default behavior That default is nontrivial for something like code Yopt code ppre code scalac helpUsage scalac lt options gt lt source files gt where possible standard options include Print synopsis of advanced options scalac XUsage scalac lt options gt lt source files gt Notes on option parsing Boolean settings are always false unless set Where multiple values are accepted they should be comma separated example Xplugin option1 option2 lt phases gt means one or comma separated list of partial phase names phase ids phase id ranges or the string all example Xprint all prints all phases example Xprint expl 24 26 prints phases explicitouter closelim dce jvm example Xprint prints only the phases up to typer Possible advanced options include Xlint lt warning warning gt Enable or disable specific warnings for all Xlint help to list code pre 71567,2859474,616905,NULL,NULL,NULL,0,NULL,NULL 71568,16245,59190,NULL,NULL,NULL,0,NULL,NULL 71569,503284,420096,Popular Question Yearling Revival Enthusiast Custodian Curious Informed Custodian Custodian Civic Duty Yearling Citizen Patrol Necromancer Suffrage Vox Populi Fanatic Caucus Constituent Promoter Benefactor Census Yearling Tenacious Caucus Constituent Documentation User Nice Answer Famous Question Census Caucus Popular Question Constituent Yearling Announcer,NULL,NULL,0,NULL,NULL 71570,84935,119694,Tumbleweed Nice Answer Yearling Yearling Revival c# Yearling,NULL,NULL,0,NULL,NULL 71571,269332,849669,Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Notable Question Famous Question Yearling Taxonomist Popular Question Famous Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Nice Question Notable Question Popular Question Yearling Famous Question Notable Question Notable Question Nice Question Nice Question Nice Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 71572,796476,521843,NULL,NULL,NULL,0,NULL,NULL 71573,1530965,807064,Nice Question Notable Question Revival Necromancer Notable Question Popular Question Yearling Necromancer Notable Question Popular Question Nice Answer Good Answer Yearling Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71574,762198,1432174,Necromancer Yearling Notable Question Popular Question Nice Answer Caucus Good Answer Yearling Census,NULL,NULL,0,NULL,NULL 71575,67413,90276,NULL,NULL,NULL,0,NULL,NULL 71576,49595,918824,NULL,NULL,NULL,0,NULL,NULL 71577,200666,683982,Nice Answer Revival Yearling Necromancer Editor Necromancer Excavator Student,NULL,NULL,0,NULL,NULL 71578,7104948,683982,Nice Answer Revival Yearling Necromancer Editor Necromancer Excavator Student,NULL,NULL,0,NULL,NULL 71579,911239,1102767,Notable Question,NULL,NULL,0,NULL,NULL 71580,1752497,280822,NULL,NULL,NULL,0,NULL,NULL 71581,1173356,280822,NULL,NULL,NULL,0,NULL,NULL 71582,250931,897947,Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 71583,104504,602551,NULL,NULL,NULL,0,NULL,NULL 71584,1350863,853147,NULL,NULL,NULL,0,NULL,NULL 71585,634835,379571,NULL,NULL,NULL,0,NULL,NULL 71586,87121,636603,Revival Editor Critic,NULL,NULL,0,NULL,NULL 71587,66008,123781,Popular Question Announcer Self-Learner Popular Question Popular Question Famous Question Yearling Popular Question Great Question Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 71588,86742,920391,Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71589,2957354,340810,Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 71590,4906657,1177270,NULL,NULL,NULL,0,NULL,NULL 71591,151786,270854,Yearling Popular Question Caucus Documentation User,NULL,NULL,0,NULL,NULL 71592,712095,1478636,Popular Question Nice Question Notable Question Nice Question Necromancer Notable Question Yearling Popular Question Nice Answer Famous Question Inquisitive Announcer Popular Question Notable Question Caucus Popular Question Famous Question Notable Question Famous Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Good Question Documentation User Popular Question Custodian Announcer Yearling Announcer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71593,444611,251129,NULL,NULL,NULL,0,NULL,NULL 71594,238472,1548228,NULL,NULL,NULL,0,NULL,NULL 71595,362259,1438120,NULL,NULL,NULL,0,NULL,NULL 71596,98513,498238,Yearling Custodian Popular Question Caucus Constituent Organizer Yearling Revival Caucus Constituent Revival Nice Answer Enlightened Necromancer Yearling Civic Duty Caucus Announcer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 71597,298186,1447876,Notable Question Famous Question Student,NULL,NULL,0,NULL,NULL 71598,103174,1319023,Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71599,1135353,405459,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71600,193408,552776,NULL,NULL,NULL,0,NULL,NULL 71601,149897,218439,Nice Answer Yearling Nice Answer Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 71602,1029666,1352525,NULL,NULL,NULL,0,NULL,NULL 71603,245748,540593,NULL,NULL,NULL,0,NULL,NULL 71604,149594,870878,NULL,NULL,NULL,0,NULL,NULL 71605,21386,1555465,NULL,NULL,NULL,0,NULL,NULL 71606,1101172,971278,NULL,NULL,NULL,0,NULL,NULL 71607,82072,614563,Necromancer Self-Learner Good Question Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71608,691132,1460233,Revival,NULL,NULL,0,NULL,NULL 71609,334066,875791,NULL,NULL,NULL,0,NULL,NULL 71610,593551,388325,Popular Question Popular Question Notable Question Popular Question Notable Question Nice Question Yearling Notable Question Nice Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71611,6103207,1376321,NULL,NULL,NULL,0,NULL,NULL 71612,242073,1376321,NULL,NULL,NULL,0,NULL,NULL 71613,190950,1142797,NULL,NULL,NULL,0,NULL,NULL 71614,155417,868232,NULL,NULL,NULL,0,NULL,NULL 71615,1558791,13337,Popular Question Yearling Notable Question Notable Question Notable Question Yearling Stellar Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 71616,526330,620399,Nice Answer Yearling Good Answer Great Answer Nice Answer Nice Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Necromancer Populist Yearling Good Answer Necromancer Great Answer Nice Answer Nice Answer Good Answer Nice Answer Necromancer Yearling Nice Answer Nice Answer Good Answer Great Answer Good Answer Guru Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71617,590700,632081,Famous Question,NULL,NULL,0,NULL,NULL 71618,82350,191027,Critic Yearling Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 71619,370477,540852,Popular Question Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 71620,107241,1023776,NULL,NULL,NULL,0,NULL,NULL 71621,35439,123493,NULL,NULL,NULL,0,NULL,NULL 71622,355809,500961,NULL,NULL,NULL,0,NULL,NULL 71623,2189823,500961,NULL,NULL,NULL,0,NULL,NULL 71624,887584,1174830,NULL,NULL,NULL,0,NULL,NULL 71625,210376,690464,NULL,NULL,NULL,0,NULL,NULL 71626,26696,1028379,Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71627,238551,160755,Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71628,319320,19993,Yearling Necromancer Necromancer Student Yearling Necromancer Yearling,NULL,pAny field with the href https docs djangoproject com en ref models fields django db models DateField auto now rel noreferrer codeauto now code attribute set will also inherit codeeditable False code and therefore will not show up in the admin panel There has been talk in the past about making the codeauto now code and href https docs djangoproject com en ref models fields django db models DateField auto now add rel noreferrer codeauto now add code arguments go away and although they still exist feel you re better off just using href https docs djangoproject com en topics db models overriding model methods rel noreferrer custom codesave code method ppSo to make this work properly would recommend not using codeauto now code or codeauto now add code and instead define your own codesave code method to make sure that codecreated code is only updated if codeid code is not set such as when the item is first created and have it update codemodified code every time the item is saved ppI have done the exact same thing with other projects have written using Django and so your codesave code would look like this ppre codefrom django utils import timezoneclass User models Model created models DateTimeField editable False modified models DateTimeField def save self args kwargs On save update timestamps if not self id self created timezone now self modified timezone now return super User self save args kwargs code prepHope this helps pp strongEdit in response to comments strong ppThe reason why just stick with overloading codesave code vs relying on these field arguments is two fold polliThe aforementioned ups and downs with their reliability These arguments are heavily reliant on the way each type of database that Django knows how to interact with treats date time stamp field and seems to break and or change between every release Which believe is the impetus behind the call to have them removed altogether liliThe fact that they only work on DateField DateTimeField and TimeField and by using this technique you are able to automatically populate any field type every time an item is saved liliUse codedjango utils timezone now code vs codedatetime datetime now code because it will return TZ aware or naive codedatetime datetime code object depending on codesettings USE TZ code li olpTo address why the OP saw the error don know exactly but it looks like codecreated code isn even being populated at all despite having codeauto now add True code To me it stands out as bug and underscores item in my little list above codeauto now code and codeauto now add code are flaky at best Note Shai Berger answer below,0,NULL,NULL 71629,588097,495811,NULL,NULL,NULL,0,NULL,NULL 71630,15794,276128,Famous Question Popular Question Civic Duty Notable Question Nice Question,NULL,NULL,0,NULL,NULL 71631,320241,171378,NULL,NULL,NULL,0,NULL,NULL 71632,8673,17176,Nice Question Yearling Notable Question Good Question Census Popular Question Yearling Good Answer Nice Question Census Famous Question Notable Question Benefactor Popular Question Yearling,NULL,NULL,0,NULL,NULL 71633,514766,1134880,NULL,NULL,NULL,0,NULL,NULL 71634,642459,955092,NULL,NULL,NULL,0,NULL,NULL 71635,724924,1173832,NULL,NULL,NULL,0,NULL,NULL 71636,1520672,1199320,NULL,NULL,NULL,0,NULL,NULL 71637,432745,1199320,NULL,NULL,NULL,0,NULL,NULL 71638,218051,287904,Supporter Autobiographer Teacher Notable Question,NULL,NULL,0,NULL,NULL 71639,1372373,921012,NULL,NULL,NULL,0,NULL,NULL 71640,894985,1210360,NULL,NULL,NULL,0,NULL,NULL 71641,9965,45773,Guru Announcer Announcer Good Answer Good Answer Good Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Great Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Revival Nice Answer Enlightened Announcer Nice Answer Nice Answer Revival Good Answer Nice Answer Nice Answer Announcer Announcer Good Answer Necromancer Yearling Good Answer Nice Answer Enlightened Revival Nice Answer Necromancer Nice Answer Good Answer Nice Answer Revival Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Good Answer Announcer Announcer Nice Answer Revival Announcer Nice Answer Enlightened Announcer Great Answer Necromancer Yearling Nice Answer Enlightened Good Answer Nice Answer Pundit Announcer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Announcer Revival Revival Nice Answer Nice Answer Nice Answer Good Answer Necromancer Guru Good Answer Announcer Good Answer Announcer,NULL,NULL,0,NULL,NULL 71642,121137,265946,NULL,NULL,NULL,0,NULL,NULL 71643,100003,459555,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 71644,509653,1134217,Yearling Editor Critic Commentator Yearling,NULL,NULL,0,NULL,NULL 71645,125677,1310643,NULL,NULL,NULL,0,NULL,NULL 71646,901661,697489,Revival Necromancer Yearling Popular Question Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 71647,67364,709417,NULL,NULL,NULL,0,NULL,NULL 71648,387509,266486,Nice Question,NULL,NULL,0,NULL,NULL 71649,631285,968744,Notable Question,NULL,NULL,0,NULL,NULL 71650,830,235480,Teacher,NULL,NULL,0,NULL,NULL 71651,1939615,1502088,NULL,NULL,NULL,0,NULL,NULL 71652,85672,586041,NULL,NULL,NULL,0,NULL,NULL 71653,197686,413890,NULL,NULL,NULL,0,NULL,NULL 71654,244614,1528372,NULL,NULL,NULL,0,NULL,NULL 71655,131866,1026245,NULL,NULL,NULL,0,NULL,NULL 71656,635743,9222,Famous Question Notable Question Notable Question Popular Question Nice Question Notable Question Yearling Good Question Caucus Constituent Popular Question Popular Question Nice Question Notable Question Popular Question Census Revival Caucus Yearling Popular Question Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 71657,299964,1129115,NULL,NULL,NULL,0,NULL,NULL 71658,969364,281434,Popular Question Nice Question Notable Question Yearling Famous Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Good Question Great Question Yearling Famous Question Famous Question Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71659,17861,845452,NULL,NULL,NULL,0,NULL,NULL 71660,33710,94564,Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 71661,835916,877037,NULL,NULL,NULL,0,NULL,NULL 71662,254599,1005887,NULL,NULL,NULL,0,NULL,NULL 71663,122316,386973,Student Scholar Enthusiast Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 71664,147737,434980,Enthusiast Popular Question Necromancer Yearling Great Answer Great Answer Great Answer Nice Answer Great Answer Announcer Nice Answer Good Question Yearling Custodian Nice Answer Caucus Necromancer Necromancer Necromancer Favorite Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71665,587325,1327422,Supporter Popular Question,NULL,NULL,0,NULL,NULL 71666,183605,973028,NULL,NULL,NULL,0,NULL,NULL 71667,134359,73824,Favorite Question,NULL,NULL,0,NULL,NULL 71668,615137,555313,NULL,NULL,NULL,0,NULL,NULL 71669,36414,413004,Nice Answer,NULL,NULL,0,NULL,NULL 71670,276420,1415798,NULL,NULL,NULL,0,NULL,NULL 71671,332890,534495,Announcer Necromancer Nice Answer Revival Popular Question,NULL,NULL,0,NULL,NULL 71672,191647,1370901,NULL,NULL,NULL,0,NULL,NULL 71673,147451,1242839,NULL,NULL,NULL,0,NULL,NULL 71674,477277,653941,Yearling java Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 71675,346065,275221,Favorite Question Good Question Yearling Notable Question Popular Question Popular Question Good Question Nice Question Notable Question Nice Question Popular Question Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Caucus Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Caucus Popular Question Notable Question Popular Question Great Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Caucus Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71676,2562056,275221,Favorite Question Good Question Yearling Notable Question Popular Question Popular Question Good Question Nice Question Notable Question Nice Question Popular Question Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Caucus Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Notable Question Caucus Popular Question Notable Question Popular Question Great Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Caucus Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71677,442872,946049,Necromancer Good Answer Critic,NULL,NULL,0,NULL,NULL 71678,1152184,961031,NULL,NULL,NULL,0,NULL,NULL 71679,1640802,410724,Curious Self-Learner Yearling Popular Question Nice Answer Nice Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71680,44905,1270774,Announcer,NULL,NULL,0,NULL,NULL 71681,98854,502367,Informed Autobiographer,NULL,NULL,0,NULL,NULL 71682,7224896,1236851,NULL,NULL,NULL,0,NULL,NULL 71683,535508,231590,Popular Question Yearling Organizer Tumbleweed Civic Duty Popular Question Announcer Famous Question Citizen Patrol Self-Learner Yearling Notable Question Popular Question Notable Question Necromancer Yearling Nice Answer Notable Question Popular Question Necromancer Yearling,NULL,emOnSwipeTouchListener java em ppre codeimport android content Context import android view GestureDetector import android view GestureDetector SimpleOnGestureListener import android view MotionEvent import android view View import android view View OnTouchListener public class OnSwipeTouchListener implements OnTouchListener private final GestureDetector gestureDetector public OnSwipeTouchListener Context ctx gestureDetector new GestureDetector ctx new GestureListener public boolean onTouch View MotionEvent event return gestureDetector onTouchEvent event private final class GestureListener extends SimpleOnGestureListener private static final int SWIPE THRESHOLD 100 private static final int SWIPE VELOCITY THRESHOLD 100 public boolean onDown MotionEvent return true public boolean onFling MotionEvent e1 MotionEvent e2 float velocityX float velocityY boolean result false try float diffY e2 getY e1 getY float diffX e2 getX e1 getX if Math abs diffX gt Math abs diffY if Math abs diffX gt SWIPE THRESHOLD amp amp Math abs velocityX gt SWIPE VELOCITY THRESHOLD if diffX gt onSwipeRight else onSwipeLeft result true else if Math abs diffY gt SWIPE THRESHOLD amp amp Math abs velocityY gt SWIPE VELOCITY THRESHOLD if diffY gt onSwipeBottom else onSwipeTop result true catch Exception exception exception printStackTrace return result public void onSwipeRight public void onSwipeLeft public void onSwipeTop public void onSwipeBottom code prepUsage ppre codeimageView setOnTouchListener new OnSwipeTouchListener MyActivity this public void onSwipeTop Toast makeText MyActivity this top Toast LENGTH SHORT show public void onSwipeRight Toast makeText MyActivity this right Toast LENGTH SHORT show public void onSwipeLeft Toast makeText MyActivity this left Toast LENGTH SHORT show public void onSwipeBottom Toast makeText MyActivity this bottom Toast LENGTH SHORT show code pre how did you make scrolling in ListView work emOnSwipeTouchListener java em ppre codeimport android content Context import android view GestureDetector import android view GestureDetector SimpleOnGestureListener import android view MotionEvent import android view View import android view View OnTouchListener public class OnSwipeTouchListener implements OnTouchListener private final GestureDetector gestureDetector public OnSwipeTouchListener Context ctx gestureDetector new GestureDetector ctx new GestureListener public boolean onTouch View MotionEvent event return gestureDetector onTouchEvent event private final class GestureListener extends SimpleOnGestureListener private static final int SWIPE THRESHOLD 100 private static final int SWIPE VELOCITY THRESHOLD 100 public boolean onDown MotionEvent return true public boolean onFling MotionEvent e1 MotionEvent e2 float velocityX float velocityY boolean result false try float diffY e2 getY e1 getY float diffX e2 getX e1 getX if Math abs diffX gt Math abs diffY if Math abs diffX gt SWIPE THRESHOLD amp amp Math abs velocityX gt SWIPE VELOCITY THRESHOLD if diffX gt onSwipeRight else onSwipeLeft result true else if Math abs diffY gt SWIPE THRESHOLD amp amp Math abs velocityY gt SWIPE VELOCITY THRESHOLD if diffY gt onSwipeBottom else onSwipeTop result true catch Exception exception exception printStackTrace return result public void onSwipeRight public void onSwipeLeft public void onSwipeTop public void onSwipeBottom code prepUsage ppre codeimageView setOnTouchListener new OnSwipeTouchListener MyActivity this public void onSwipeTop Toast makeText MyActivity this top Toast LENGTH SHORT show public void onSwipeRight Toast makeText MyActivity this right Toast LENGTH SHORT show public void onSwipeLeft Toast makeText MyActivity this left Toast LENGTH SHORT show public void onSwipeBottom Toast makeText MyActivity this bottom Toast LENGTH SHORT show code pre switched from ListView to RecyclerView and it helped,1,Using JDK that is bundled inside Android Studio as JAVA HOME on Mac macos android studio openjdk java home pI tried to open Android Device Monitor and the Studio showed me this message href https stack imgur com SUlHl png rel noreferrer img src https stack imgur com SUlHl png alt need to install Java SE runtime error ppIt surprised me because how have been able to develop Android apps if didn have any Java installed Actually Android Studio comes with bundled JDK JRE located in code Applications Android Studio app Contents jre jdk Contents Home code but it is not found by the system executed codeusr libexec java home code gives ppre codeUnable to find any JVMs matching version null No Java runtime present try request to install code prepSetting code JAVA HOME code to code Applications Android Studio app Contents jre jdk Contents Home code did not help codesource bash profile code doesn like that it directory ppQUESTION don want to install new JDK if already have one inside Android Studio How do set it as system default,NULL 71684,1014851,1509394,Popular Question Nice Answer Enlightened Yearling Promoter Yearling Documentation User Popular Question Excavator Yearling Revival,NULL,NULL,0,NULL,NULL 71685,1044711,1060504,Famous Question,NULL,NULL,0,NULL,NULL 71686,212105,117544,Popular Question Yearling Notable Question Popular Question Famous Question Famous Question Self-Learner Famous Question,NULL,NULL,0,NULL,NULL 71687,340684,208943,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 71688,107475,1414375,NULL,NULL,NULL,0,NULL,NULL 71689,778945,592424,NULL,NULL,NULL,0,NULL,NULL 71690,160582,592424,NULL,NULL,NULL,0,NULL,NULL 71691,1668456,438154,Nice Answer Nice Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Nice Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Enlightened Famous Question Nice Answer Enlightened Nice Question java-stream Good Answer Popular Question Guru Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Custodian unit-testing Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Famous Question Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened jpa Enlightened Nice Answer Enlightened Good Answer Good Answer Convention Good Answer Nice Question Famous Question Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question Outspoken Popular Question Yearling Notable Question Famous Question Revival Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Famous Question Notable Question Nice Answer Enlightened Nice Answer serialization Nice Answer Good Answer Necromancer Nice Answer Enlightened Notable Question Good Answer Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Guru Notable Question gson Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened maven spring-boot Nice Question Good Answer Good Answer Constituent Nice Question Nice Answer Good Question Nice Answer Enlightened Popular Question Nice Answer Notable Question spring-java-config Good Answer Notable Question Nice Answer jsp jackson Guru Nice Answer Popular Question Enlightened Nice Answer Nice Answer Nice Answer Enlightened Good Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Question Good Answer Census guava Nice Answer Enlightened Revival Nice Answer Enlightened Popular Question Good Answer json Nice Answer Good Answer Nice Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened jdbc Good Answer Good Answer Nice Answer Enlightened Nice Question Guru concurrency Great Answer Nice Answer Enlightened spring-security Guru xml Nice Answer Enlightened Guru Notable Question constructor Nice Answer Enlightened Good Answer Guru Notable Question Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened spring-aop Nice Answer Enlightened Nice Answer Nice Answer Enlightened Generalist Nice Answer Enlightened Popular Question Nice Answer Enlightened Notable Question exception-handling Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Good Answer Good Answer Notable Question autowired Nice Answer Notable Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened hibernate Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Enlightened Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer reflection Announcer Nice Answer Nice Answer Caucus Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Notable Question Guru thymeleaf Constituent Notable Question Good Answer Famous Question Nice Answer Notable Question Nice Answer Good Answer Guru Guru Nice Answer Enlightened Announcer Famous Question Nice Answer Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Good Answer Nice Answer Enlightened Announcer Famous Question Famous Question Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Notable Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Great Answer Nice Answer Good Answer Nice Answer Enlightened Enlightened Enlightened Announcer Good Answer Nice Answer Good Answer Guru Announcer Popular Question Good Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened logging Nice Answer Nice Answer Enlightened Nice Answer Popular Question Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Famous Question Notable Question Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Enlightened Announcer Revival Good Answer Nice Question Guru Good Question Favorite Question Popular Question Notable Question Caucus Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Guru Good Answer Constituent Nice Answer Enlightened Famous Question Revival Good Answer Nice Answer Enlightened Guru Nice Question Great Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Peer Pressure Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Popular Question Nice Answer Enlightened casting Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Popular Question Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Enlightened Notable Question Popular Question Nice Answer Nice Answer Guru Good Answer Guru Guru Good Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Nice Answer Guru Enlightened,NULL,NULL,0,NULL,NULL 71692,1019687,498880,NULL,NULL,NULL,0,NULL,NULL 71693,3130,453227,Popular Question Yearling Popular Question Nice Question Popular Question Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 71694,155683,626199,NULL,NULL,NULL,0,NULL,NULL 71695,1063811,1249655,Popular Question Yearling Popular Question Notable Question Revival Popular Question Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 71696,146064,963238,Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71697,1229195,1393687,Yearling Nice Answer Documentation User Necromancer,NULL,NULL,0,NULL,NULL 71698,83681,887972,Revival,NULL,NULL,0,NULL,NULL 71699,408957,144345,Popular Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 71700,542797,411162,Informed,NULL,NULL,0,NULL,NULL 71701,175120,893580,NULL,NULL,NULL,0,NULL,NULL 71702,554678,252164,NULL,NULL,NULL,0,NULL,NULL 71703,1235254,505493,Notable Question Popular Question Notable Question Notable Question Famous Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71704,3183371,305907,Popular Question,NULL,NULL,0,NULL,NULL 71705,235257,117844,Yearling Organizer Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened torch Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling lua Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 71706,381037,598170,Yearling Good Answer Yearling Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 71707,963842,577537,NULL,NULL,NULL,0,NULL,NULL 71708,203886,943933,Nice Question Popular Question Yearling Nice Answer Popular Question Popular Question Yearling Caucus Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 71709,148555,1007776,NULL,NULL,NULL,0,NULL,NULL 71710,963130,1139996,NULL,NULL,NULL,0,NULL,NULL 71711,649366,831359,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 71712,677567,241640,NULL,NULL,NULL,0,NULL,NULL 71713,277501,178902,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 71714,385753,349086,Teacher Popular Question,NULL,NULL,0,NULL,NULL 71715,75875,1484274,NULL,NULL,NULL,0,NULL,NULL 71716,138259,219755,Nice Answer Nice Answer Popular Question Pundit Yearling Notable Question Notable Question Nice Answer Necromancer Great Question Yearling Necromancer Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 71717,11546,135870,Good Answer Popular Question Yearling Stellar Question Great Answer Notable Question Yearling Nice Question Yearling Good Answer Good Answer Pundit,NULL,NULL,0,NULL,NULL 71718,895712,972577,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71719,590132,1176918,NULL,NULL,NULL,0,NULL,NULL 71720,42367,650700,Popular Question Notable Question Critic Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 71721,141892,516995,NULL,NULL,NULL,0,NULL,NULL 71722,279789,191007,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71723,321206,447681,Famous Question,NULL,NULL,0,NULL,NULL 71724,1348574,442465,Nice Question Nice Answer Popular Question Popular Question Yearling Famous Question Popular Question Yearling Revival Good Question Famous Question Good Answer Popular Question Necromancer Civic Duty Notable Question Nice Question Notable Question Nice Answer Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 71725,524109,295375,NULL,NULL,NULL,0,NULL,NULL 71726,109597,1004702,Editor Supporter,NULL,NULL,0,NULL,NULL 71727,1070170,1507521,Caucus,NULL,NULL,0,NULL,NULL 71728,758353,26512,NULL,NULL,NULL,0,NULL,NULL 71729,16184,1192566,Notable Question,NULL,NULL,0,NULL,NULL 71730,630491,1281369,Necromancer,NULL,NULL,0,NULL,NULL 71731,535958,1241204,NULL,NULL,NULL,0,NULL,NULL 71732,280672,1184879,NULL,NULL,NULL,0,NULL,NULL 71733,45625,130854,Nice Answer Good Answer html Promoter Nice Question Yearling Good Answer javascript Necromancer Popular Question Nice Answer Notable Question Guru Yearling Self-Learner Nice Answer Good Answer Popular Question Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 71734,47993,984156,Notable Question Critic Electorate Suffrage,NULL,NULL,0,NULL,NULL 71735,203182,414330,Nice Answer Popular Question Notable Question Custodian Famous Question Informed Popular Question Yearling,NULL,NULL,0,NULL,NULL 71736,333469,359640,Stellar Question Popular Question Great Question Yearling Custodian Excavator Caucus Yearling Autobiographer Enthusiast Custodian Organizer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 71737,319969,255829,Organizer Popular Question Yearling Good Answer Census Yearling Guru,NULL,NULL,0,NULL,NULL 71738,460250,609500,NULL,NULL,NULL,0,NULL,NULL 71739,101917,538718,Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Yearling Good Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Nice Answer Guru Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71740,152107,924041,NULL,NULL,NULL,0,NULL,NULL 71741,526589,964510,NULL,NULL,NULL,0,NULL,NULL 71742,343236,825563,Excavator Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 71743,9260565,1355018,NULL,NULL,NULL,0,NULL,NULL 71744,705294,623080,Enthusiast Supporter,NULL,NULL,0,NULL,NULL 71745,218622,352061,Notable Question Guru Notable Question Yearling Nice Answer Enlightened Nice Answer Enlightened Good Answer Popular Question Nice Question Good Question Yearling Good Answer Nice Answer Nice Answer Popular Question Yearling Investor Popular Question Guru,NULL,NULL,0,NULL,NULL 71746,348706,1070273,Student Supporter Scholar Autobiographer,NULL,NULL,0,NULL,NULL 71747,3631383,344515,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71748,927046,905256,Excavator Citizen Patrol Informed Civic Duty Critic,NULL,NULL,0,NULL,NULL 71749,383520,1386816,NULL,NULL,NULL,0,NULL,NULL 71750,54675,449433,NULL,NULL,,0,, 71751,448188,642291,NULL,NULL,NULL,0,NULL,NULL 71752,1571099,375825,NULL,NULL,NULL,0,NULL,NULL 71753,357776,776381,NULL,NULL,NULL,0,NULL,NULL 71754,439020,1353152,NULL,NULL,NULL,0,NULL,NULL 71755,203803,227646,Announcer Announcer Yearling Announcer Notable Question Caucus Constituent Custodian Nice Answer Enlightened Caucus Constituent Announcer,NULL,NULL,0,NULL,NULL 71756,1115727,394717,NULL,NULL,NULL,0,NULL,NULL 71757,497674,319537,NULL,NULL,NULL,0,NULL,NULL 71758,1528352,319537,NULL,NULL,NULL,0,NULL,NULL 71759,7516,356990,Student Scholar Necromancer,NULL,NULL,0,NULL,NULL 71760,1514981,1026990,Organizer Notable Question Revival Popular Question Announcer Popular Question Nice Question Revival Popular Question Notable Question Popular Question Yearling Notable Question Notable Question Caucus Constituent Nice Question Good Question Caucus Popular Question Popular Question Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71761,1974080,93327,Critic Popular Question Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71762,1080604,1541203,NULL,NULL,NULL,0,NULL,NULL 71763,30431,6251,Notable Question Notable Question Popular Question Notable Question Good Question Yearling Good Answer Good Answer Famous Question Yearling Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71764,10794011,63779,Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71765,156804,794741,NULL,NULL,NULL,0,NULL,NULL 71766,186969,275887,NULL,NULL,NULL,0,NULL,NULL 71767,183054,503599,NULL,NULL,NULL,0,NULL,NULL 71768,10785476,81410,Yearling Popular Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 71769,45535,804381,NULL,NULL,NULL,0,NULL,NULL 71770,162640,1143931,Census Informed Revival Necromancer Critic Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 71771,288511,1185023,Caucus Constituent Census Caucus,NULL,NULL,0,NULL,NULL 71772,317701,1372972,NULL,NULL,NULL,0,NULL,NULL 71773,2533245,1261232,Yearling Editor Yearling Scholar Custodian Cleanup Caucus Yearling Tenacious Critic Yearling Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 71774,609436,831292,NULL,NULL,NULL,0,NULL,NULL 71775,80152,572449,Citizen Patrol Supporter,NULL,NULL,0,NULL,NULL 71776,320667,589277,NULL,NULL,NULL,0,NULL,NULL 71777,87036,1527836,NULL,NULL,NULL,0,NULL,NULL 71778,545390,422924,NULL,NULL,NULL,0,NULL,NULL 71779,321237,227403,Yearling Nice Answer Enlightened Yearling Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 71780,81006,814669,Famous Question Popular Question Famous Question Favorite Question Popular Question Yearling Famous Question Popular Question Great Question Famous Question Popular Question Famous Question Civic Duty Popular Question Nice Answer Popular Question Yearling Popular Question Notable Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71781,314262,357967,Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 71782,687523,161357,Critic Yearling Peer Pressure,NULL,NULL,0,NULL,NULL 71783,1114126,984186,NULL,NULL,NULL,0,NULL,NULL 71784,666400,1278725,Notable Question Yearling Nice Question Good Answer Popular Question java Yearling Nice Question Famous Question Nice Question Popular Question Caucus Notable Question Good Question Notable Question Yearling Caucus,NULL,NULL,0,NULL,NULL 71785,23558,108121,NULL,NULL,NULL,0,NULL,NULL 71786,1509656,473401,NULL,NULL,NULL,0,NULL,NULL 71787,115626,613415,Editor,NULL,NULL,0,NULL,NULL 71788,305693,517561,Nice Answer Enlightened Nice Answer Notable Question Yearling Guru Nice Answer Nice Answer Yearling Announcer Announcer android-layout Yearling,NULL,NULL,0,NULL,NULL 71789,595518,13675,Curious Informed Nice Answer Good Answer Yearling Caucus Yearling Notable Question Announcer Announcer Nice Answer Yearling Nice Answer,NULL,Multiple github accounts on the same computer git version control github pTrying to work on my both my actual work repos and my personal repos on git hub from my computer ppThe work account was set up first and everything works flawlessly ppMy personal account however cannot seem to push to my personal repo which is set up under different account email ppI ve tried copying my work key up to my personal account but that throws an error because of course key can be only attached to one account ppHow can push pull to and from both accounts from their respective github credentials because of course key can be only attached to one account of course why,0,NULL,NULL 71790,3836,437277,Great Answer Yearling Good Question Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 71791,1520368,1332382,Supporter Notable Question,NULL,NULL,0,NULL,NULL 71792,493266,435736,NULL,NULL,NULL,0,NULL,NULL 71793,463273,1307836,NULL,NULL,NULL,0,NULL,NULL 71794,200904,429096,NULL,NULL,NULL,0,NULL,NULL 71795,1212312,1206905,NULL,NULL,NULL,0,NULL,NULL 71796,8986515,1206905,NULL,NULL,NULL,0,NULL,NULL 71797,264828,855899,NULL,NULL,NULL,0,NULL,NULL 71798,139905,1280357,NULL,NULL,NULL,0,NULL,NULL 71799,10091,461263,Supporter Yearling Announcer Disciplined Caucus,NULL,NULL,0,NULL,NULL 71800,1122043,664496,NULL,NULL,NULL,0,NULL,NULL 71801,23943,54175,Yearling Nice Answer Good Answer Nice Answer Good Answer Notable Question Yearling Nice Answer Good Answer Nice Answer Caucus Constituent Proofreader Custodian Reviewer Good Answer Yearling Nice Answer Caucus Constituent Guru Suffrage Vox Populi Good Question,NULL,NULL,0,NULL,NULL 71802,1505896,781572,NULL,NULL,NULL,0,NULL,NULL 71803,610420,418832,Good Question Popular Question Famous Question Notable Question Yearling Famous Question Famous Question Notable Question Famous Question Nice Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Popular Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 71804,121618,532359,Teacher Supporter Editor Commentator Caucus Yearling Yearling Autobiographer Caucus,NULL,NULL,0,NULL,NULL 71805,840961,276594,NULL,NULL,NULL,0,NULL,NULL 71806,142889,323899,Nice Answer Yearling Custodian Informed Caucus Constituent Census,NULL,NULL,0,NULL,NULL 71807,1234490,1160873,Not a Robot Revival Necromancer,NULL,NULL,0,NULL,NULL 71808,290984,1262522,Notable Question,NULL,NULL,0,NULL,NULL 71809,1005037,791482,NULL,NULL,NULL,0,NULL,NULL 71810,85726,236116,Popular Question Yearling Citizen Patrol Custodian Informed Custodian Suffrage Vox Populi Tumbleweed Notable Question Popular Question Popular Question Famous Question Popular Question Yearling Necromancer,NULL,,0,, 71811,179397,1030636,NULL,NULL,NULL,0,NULL,NULL 71812,3123635,1477552,Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 71813,3103115,1531822,Caucus Constituent Census Announcer Caucus Constituent Yearling Tenacious Documentation User Civic Duty Nice Answer Enlightened Caucus Constituent,NULL,NULL,0,NULL,NULL 71814,107769,39584,Popular Question Popular Question Notable Question Notable Question Yearling Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 71815,462003,265839,NULL,NULL,NULL,0,NULL,NULL 71816,33970,444518,NULL,NULL,NULL,0,NULL,NULL 71817,2336,866690,NULL,NULL,NULL,0,NULL,NULL 71818,177504,880991,Custodian,NULL,NULL,0,NULL,NULL 71819,814462,666814,NULL,NULL,NULL,0,NULL,NULL 71820,814464,666814,NULL,NULL,NULL,0,NULL,NULL 71821,50452,133875,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71822,666780,472739,Popular Question Talkative,NULL,NULL,0,NULL,NULL 71823,1473257,1245834,Nice Answer,NULL,NULL,0,NULL,NULL 71824,819919,1066424,Nice Answer Enlightened Nice Question Good Answer Popular Question Yearling Famous Question Guru Popular Question Notable Question Good Answer Yearling Good Answer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71825,53941,821244,Yearling Notable Question Notable Question Famous Question Notable Question Good Question Nice Question Nice Question Yearling,NULL,,0,, 71826,154988,625683,Popular Question,NULL,NULL,0,NULL,NULL 71827,28825,2497,Nice Answer Enlightened Yearling ruby Yearling Yearling,NULL,NULL,0,NULL,NULL 71828,20055,398309,Organizer Revival Nice Answer Popular Question Notable Question Popular Question Popular Question Yearling Nice Answer Caucus Constituent Popular Question Necromancer Revival Popular Question Notable Question Yearling Caucus Revival Enlightened Revival Necromancer java Caucus Constituent Nice Answer Necromancer Yearling Revival Famous Question Nice Answer Notable Question Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 71829,1520373,621299,Popular Question,NULL,NULL,0,NULL,NULL 71830,982287,1439260,Good Answer Commentator Scholar Yearling Yearling Editor Nice Answer Enlightened Yearling Good Answer Excavator Yearling Tumbleweed Guru Yearling Student Civic Duty,NULL,NULL,0,NULL,NULL 71831,28247,550221,Great Question Famous Question Notable Question Popular Question Notable Question Popular Question Famous Question Popular Question Good Question Famous Question Notable Question Notable Question Yearling Nice Question Popular Question Notable Question Good Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Notable Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 71832,412204,249235,Necromancer,NULL,NULL,0,NULL,NULL 71833,29741,944935,NULL,NULL,NULL,0,NULL,NULL 71834,553870,863448,NULL,NULL,NULL,0,NULL,NULL 71835,1218565,396204,NULL,NULL,NULL,0,NULL,NULL 71836,4924,636788,NULL,NULL,NULL,0,NULL,NULL 71837,783011,115563,Good Question Popular Question Famous Question Yearling Popular Question Notable Question php Necromancer Nice Answer Enlightened Popular Question Custodian Famous Question Notable Question Yearling Nice Answer Documentation User Popular Question Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71838,156290,1198218,NULL,NULL,NULL,0,NULL,NULL 71839,3270536,253176,Supporter Enthusiast,NULL,NULL,0,NULL,NULL 71840,94670,446470,NULL,NULL,NULL,0,NULL,NULL 71841,1438033,282817,NULL,NULL,NULL,0,NULL,NULL 71842,160239,244178,Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 71843,263122,585787,Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71844,258037,1481755,Teacher Citizen Patrol Revival Yearling Yearling Curious Critic Popular Question Excavator Caucus Popular Question Self-Learner Custodian Custodian Necromancer Yearling Caucus Popular Question Popular Question,NULL,pAs href https stackoverflow com users 661591 substack corrected me in href http webchat freenode net channels node js rel noreferrer node the new href http nodejs org api stream html rel noreferrer streams API in Node v10 makes this easier ppre codeconst Readable require stream Readable const new Readable read gt redundant see update belows push your text here push null code prep… after which you can freely href http nodejs org api stream html stream readable pipe destination options rel noreferrer pipe it or otherwise pass it to your intended consumer ppIt not as clean as the href https github com substack resumer rel noreferrer resumer one liner but it does avoid the extra dependency pp emUpdate em in v0 10 26 through v9 so far call to codepush code directly from the REPL prompt will crash with codenot implemented code exception if you didn set code read code It won crash inside function or script If inconsistency makes you nervous include the codenoop code am trying to use this example with readline interface example https nodejs org api readline html readline rl close apicontent In my case need to use the line event and close event The line event is triggering but can seem to get the close event to fire Any ideas pAs href https stackoverflow com users 661591 substack corrected me in href http webchat freenode net channels node js rel noreferrer node the new href http nodejs org api stream html rel noreferrer streams API in Node v10 makes this easier ppre codeconst Readable require stream Readable const new Readable read gt redundant see update belows push your text here push null code prep… after which you can freely href http nodejs org api stream html stream readable pipe destination options rel noreferrer pipe it or otherwise pass it to your intended consumer ppIt not as clean as the href https github com substack resumer rel noreferrer resumer one liner but it does avoid the extra dependency pp emUpdate em in v0 10 26 through v9 so far call to codepush code directly from the REPL prompt will crash with codenot implemented code exception if you didn set code read code It won crash inside function or script If inconsistency makes you nervous include the codenoop code If anyone comes across the same issue that had found solution From inside the line event had to manually call rl close when came across given criteria rl on line line if line indexOf rl close Why doesn console log work in the JSC environment but it works in Safari debug console javascript safari javascriptcore pWhen use the JSC JavaScriptCore engine provided in the System Library it acts differently then when using Safari debug console ppre code System Library Frameworks JavaScriptCore framework Versions Resources jsc gt gt gt console log hello Exception TypeError undefined is not an object evaluating console log code prepWhen codeconsole log hello code works perfectly fine in Safari can you convert this to an answer so can accept it Thanks Why doesn console log work in the JSC environment but it works in Safari debug console javascript safari javascriptcore pWhen use the JSC JavaScriptCore engine provided in the System Library it acts differently then when using Safari debug console ppre code System Library Frameworks JavaScriptCore framework Versions Resources jsc gt gt gt console log hello Exception TypeError undefined is not an object evaluating console log code prepWhen codeconsole log hello code works perfectly fine in Safari the problem has nothing to do with an Objective or environment but JSC environment,1,Why doesn console log work in the JSC environment but it works in Safari debug console javascript safari javascriptcore pWhen use the JSC JavaScriptCore engine provided in the System Library it acts differently then when using Safari debug console ppre code System Library Frameworks JavaScriptCore framework Versions Resources jsc gt gt gt console log hello Exception TypeError undefined is not an object evaluating console log code prepWhen codeconsole log hello code works perfectly fine in Safari,NULL 71845,61108,5219,Yearling Custodian Yearling Great Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 71846,93988,918255,Teacher Popular Question Nice Question Notable Question Critic Cleanup Popular Question Promoter Custodian Excavator Notable Question Quorum Tag Editor Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 71847,110695,814570,Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Excavator Notable Question Popular Question Notable Question Enthusiast Popular Question Popular Question Custodian Popular Question Caucus Popular Question Yearling Notable Question Inquisitive,NULL,NULL,0,NULL,NULL 71848,575591,1264679,Teacher,NULL,NULL,0,NULL,NULL 71849,10546382,1264679,Teacher,NULL,NULL,0,NULL,NULL 71850,272058,1179341,Nice Answer Census Nice Answer Caucus Constituent Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 71851,458590,609176,Yearling Announcer Nice Answer Enlightened Nice Answer Enlightened Notable Question Great Answer Nice Answer Caucus Enlightened Census Yearling Necromancer Nice Answer Enlightened Popular Question Announcer Famous Question Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 71852,114457,724357,Nice Answer Enlightened Guru Yearling Nice Answer Good Answer Nice Answer Notable Question Good Answer Nice Answer Enlightened Popular Question Notable Question Great Answer Guru Nice Question Yearling Notable Question Notable Question Famous Question Famous Question Notable Question Popular Question Nice Answer python Yearling Nice Answer Enlightened Nice Question Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 71853,539665,1564583,Popular Question,NULL,NULL,0,NULL,NULL 71854,316195,697748,Supporter,NULL,NULL,0,NULL,NULL 71855,336882,1281592,Popular Question Informed,NULL,NULL,0,NULL,NULL 71856,908598,1320634,Student,NULL,NULL,0,NULL,NULL 71857,369308,158897,Good Answer Nice Answer Necromancer Guru Yearling Nice Answer Popular Question Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 71858,244859,1154968,NULL,NULL,NULL,0,NULL,NULL 71859,573022,894046,NULL,NULL,NULL,0,NULL,NULL 71860,411628,310477,Yearling Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 71861,64208,1205211,NULL,NULL,NULL,0,NULL,NULL 71862,634717,1154686,NULL,NULL,NULL,0,NULL,NULL 71863,71155,799433,Popular Question,NULL,NULL,0,NULL,NULL 71864,331307,1466791,NULL,NULL,NULL,0,NULL,NULL 71865,298003,14528,Famous Question Popular Question Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 71866,804509,610677,NULL,NULL,NULL,0,NULL,NULL 71867,435914,1254059,NULL,NULL,NULL,0,NULL,NULL 71868,1559587,1107404,NULL,NULL,NULL,0,NULL,NULL 71869,78259,322911,NULL,NULL,NULL,0,NULL,NULL 71870,7122,49485,Great Answer Nice Answer Famous Question Famous Question Nice Answer Enlightened Guru Good Question Great Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Guru Great Answer Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Nice Question Populist Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer Announcer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Notable Question Great Answer Great Answer Good Answer Great Answer Guru Great Answer Nice Answer Enlightened Guru Yearling Great Answer Notable Question Revival Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Question Revival Great Answer Great Answer Famous Question Nice Answer Good Answer Good Answer Guru Great Answer Famous Question Popular Question Good Answer Good Answer Nice Answer Enlightened Good Answer Yearling Necromancer Good Question Good Answer Nice Answer Nice Answer Nice Answer Enlightened Announcer Good Question Nice Answer Enlightened Guru Famous Question Announcer Necromancer Good Answer Announcer Favorite Question,NULL,NULL,1,NULL,How do copy Request object with different URL javascript fetch api pI writing wrapper around codefetch code that would like to add something to the URL before making the request identifying query parameters can figure out how to make copy of given codeRequest code object with different URL than the original My code looks like ppre code My function which tries to modify the URL of the requestfunction addLangParameter request const newUrl request url lang lang return new Request newUrl not sure what to put here My fetch wrapperfunction myFetch input init Normalize the input into Request object return Promise resolve new Request input init Call my modifier function then addLangParameter Make the actual request then request gt fetch request code prepI tried putting the original request as the second arguent to the codeRequest code constructor like so ppre codefunction addLangParameter request const newUrl request url lang lang return new Request newUrl request code prepwhich seems to copy most of the attributes of the old request but doesn seem to preserve the codebody code of the old request For example ppre codeconst request1 new Request method POST body test const request2 new Request new request1 request2 text then body gt console log body code prepI would expect to log test but instead it logs the empty string because the body is not copied over ppDo need to do something more explicit to copy all of the attributes correctly or is there nice shortcut that will do something reasonable for me ppI using the href https github com github fetch github fetch polyfill but have tested with both the polyfill and the native codefetch code implementation in the lastest Chrome pIt looks like your best bet is to read the body using the codeBody code interface that Requests implement pp href https fetch spec whatwg org body rel noreferrer https fetch spec whatwg org body ppThis can only be done asynchronously since the underlying consume body operation always reads asynchronously and returns promise Something like this should work ppre codeconst request new Request old method GET const bodyP request headers get Content Type request blob Promise resolve undefined const newRequestP bodyP then body gt new Request new method request method headers request headers body body referrer request referrer referrerPolicy request referrerPolicy mode request mode credentials request credentials cache request cache redirect request redirect integrity request integrity code prepAfter doing that codenewRequestP code will be promise that resolves to the request you want Luckily fetch is asynchronous anyway so your wrapper shouldn be significantly hampered by this pp Note Reading the body using code blob code off of request that does not have body seems to return zero length Blob object but it incorrect to specify any body even zero length one on GET or HEAD request believe that checking if the original request had codeContent Type code set is an accurate proxy for whether it has body which is what we really need to determine 71871,246281,1388685,NULL,NULL,NULL,0,NULL,NULL 71872,210720,268419,NULL,NULL,NULL,0,NULL,NULL 71873,180297,658467,NULL,NULL,NULL,0,NULL,NULL 71874,79417,194664,Yearling Caucus Necromancer Caucus Announcer Yearling Caucus,NULL,NULL,0,NULL,NULL 71875,296961,143887,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 71876,1071523,131326,Yearling Notable Question Investor Altruist Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 71877,181160,614091,Supporter,NULL,NULL,0,NULL,NULL 71878,70565,1298735,NULL,NULL,NULL,0,NULL,NULL 71879,1229936,933550,NULL,NULL,NULL,0,NULL,NULL 71880,64608,191438,Nice Answer Custodian Popular Question Popular Question Popular Question Yearling Popular Question Yearling Notable Question Announcer Famous Question Great Answer Popular Question Yearling Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 71881,63306,17891,Nice Question Notable Question Yearling Nice Question Nice Question Notable Question Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 71882,305760,608365,Yearling Necromancer,NULL,NULL,0,NULL,NULL 71883,87017,229734,NULL,NULL,NULL,0,NULL,NULL 71884,103378,44760,NULL,NULL,NULL,0,NULL,NULL 71885,1511066,723212,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 71886,202194,1025258,NULL,NULL,NULL,0,NULL,NULL 71887,35409,138629,Census,NULL,NULL,0,NULL,NULL 71888,1587249,752696,Necromancer Yearling Nice Answer Yearling Good Answer Revival Good Answer Custodian Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 71889,2030189,1419625,NULL,NULL,NULL,0,NULL,NULL 71890,3485447,1281357,NULL,NULL,NULL,0,NULL,NULL 71891,76347,1281357,NULL,NULL,NULL,0,NULL,NULL 71892,2412048,624050,NULL,NULL,NULL,0,NULL,NULL 71893,328978,1359839,NULL,NULL,NULL,0,NULL,NULL 71894,686424,582717,Popular Question,NULL,NULL,0,NULL,NULL 71895,6105485,453735,Popular Question Good Answer Popular Question Yearling Nice Question Popular Question Nice Answer Famous Question Notable Question Nice Question Nice Answer Enlightened Announcer Yearling Good Answer Notable Question Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 71896,6203,453735,Popular Question Good Answer Popular Question Yearling Nice Question Popular Question Nice Answer Famous Question Notable Question Nice Question Nice Answer Enlightened Announcer Yearling Good Answer Notable Question Famous Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 71897,284934,565635,Nice Answer Enlightened Yearling Nice Question Popular Question Nice Answer Nice Answer Great Answer Nice Answer Good Answer Guru Great Answer Popular Question Nice Answer Enlightened Nice Answer Notable Question Nice Answer Nice Answer Enlightened Popular Question Favorite Question Notable Question Good Answer Notable Question Nice Answer Enlightened Good Answer Guru Nice Answer Good Answer Nice Answer Nice Answer Notable Question Popular Question Nice Answer Enlightened Good Question Nice Answer Enlightened Nice Answer Guru Notable Question Guru Notable Question Popular Question Nice Answer Enlightened Yearling Good Answer Good Answer Popular Question Popular Question Famous Question Nice Answer Enlightened Nice Answer Notable Question Popular Question Nice Answer Enlightened dictionary Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Popular Question Popular Question Notable Question Nice Question Nice Answer Great Answer Nice Answer Enlightened Nice Question Guru Famous Question Guru Popular Question Yearling Nice Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Guru Popular Question Announcer Nice Answer Notable Question Famous Question Notable Question Notable Question Great Question Popular Question Favorite Question Notable Question Good Answer Popular Question Revival Nice Answer Nice Question Notable Question Nice Question Notable Question,NULL,pThis works ppre codestd string remove extension const std string amp filename size lastdot filename find last of if lastdot std string npos return filename return filename substr lastdot code pre Depends on your definition of fail The function accepts file name not path function that would work on any path would definitely be more useful though pI implemented Yehuda Vardi and Cun Hui Zhang algorithm for the geometric median described in their paper href http www pnas org content 97 1423 full pdf rel noreferrer The multivariate L1 median and associated data depth Everything is vectorized in numpy so should be very fast didn implement weights only unweighted points ppre codeimport numpy as npfrom scipy spatial distance import cdist euclideandef geometric median eps 1e np mean while True cdist nonzeros Dinv nonzeros Dinvs np sum Dinv Dinv Dinvs np sum nonzeros num zeros len np sum nonzeros if num zeros y1 elif num zeros len return else Dinvs np linalg norm rinv if else num zeros y1 max rinv min rinv if euclidean y1 lt eps return y1 y1 code prepIn addition to the default SO license terms release the code above under the zlib license if you so prefer not certain what you even want me to explain You want to know why it differs by 1m don have access to their code so have no clue what they re doing And even if did there many reasons in both my and their code numerical instability floating point errors multiple possible median candidates bug in the algorithm or implementation and can really be bothered to find out which it is pI implemented Yehuda Vardi and Cun Hui Zhang algorithm for the geometric median described in their paper href http www pnas org content 97 1423 full pdf rel noreferrer The multivariate L1 median and associated data depth Everything is vectorized in numpy so should be very fast didn implement weights only unweighted points ppre codeimport numpy as npfrom scipy spatial distance import cdist euclideandef geometric median eps 1e np mean while True cdist nonzeros Dinv nonzeros Dinvs np sum Dinv Dinv Dinvs np sum nonzeros num zeros len np sum nonzeros if num zeros y1 elif num zeros len return else Dinvs np linalg norm rinv if else num zeros y1 max rinv min rinv if euclidean y1 lt eps return y1 y1 code prepIn addition to the default SO license terms release the code above under the zlib license if you so prefer Oh like that Sorry don think commenting line by line would be very useful you can read the paper that ve linked pI implemented Yehuda Vardi and Cun Hui Zhang algorithm for the geometric median described in their paper href http www pnas org content 97 1423 full pdf rel noreferrer The multivariate L1 median and associated data depth Everything is vectorized in numpy so should be very fast didn implement weights only unweighted points ppre codeimport numpy as npfrom scipy spatial distance import cdist euclideandef geometric median eps 1e np mean while True cdist nonzeros Dinv nonzeros Dinvs np sum Dinv Dinv Dinvs np sum nonzeros num zeros len np sum nonzeros if num zeros y1 elif num zeros len return else Dinvs np linalg norm rinv if else num zeros y1 max rinv min rinv if euclidean y1 lt eps return y1 y1 code prepIn addition to the default SO license terms release the code above under the zlib license if you so prefer It been while since wrote the code but assume the same format as in the question,0,NULL,NULL 71898,274091,903337,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 71899,92027,1190568,Informed Autobiographer Editor Excavator Supporter,NULL,NULL,0,NULL,NULL 71900,52590,801117,Self-Learner Yearling Caucus Nice Answer Revival Revival Necromancer Caucus Revival Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71901,316142,176191,Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Notable Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71902,950775,176191,Popular Question Notable Question Yearling Popular Question Nice Question Famous Question Notable Question Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71903,554684,699859,NULL,NULL,NULL,0,NULL,NULL 71904,1995844,557418,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 71905,28003,146779,NULL,NULL,NULL,0,NULL,NULL 71906,170452,269697,NULL,NULL,NULL,0,NULL,NULL 71907,919157,871285,NULL,NULL,NULL,0,NULL,NULL 71908,1515737,1312869,NULL,NULL,NULL,0,NULL,NULL 71909,543953,1088345,Yearling Yearling,NULL,NULL,0,NULL,NULL 71910,612341,81524,Notable Question,NULL,NULL,0,NULL,NULL 71911,200907,602357,NULL,NULL,NULL,0,NULL,NULL 71912,437463,1227760,NULL,NULL,NULL,0,NULL,NULL 71913,153357,308013,Revival,NULL,NULL,0,NULL,NULL 71914,261970,234697,NULL,NULL,NULL,0,NULL,NULL 71915,110423,409051,NULL,NULL,NULL,0,NULL,NULL 71916,415806,108741,Famous Question Yearling Popular Question Nice Answer Popular Question Notable Question Nice Answer Popular Question Nice Question Popular Question Nice Answer Good Answer Yearling Popular Question Good Answer Famous Question Stellar Question Popular Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Popular Question Good Question Yearling Notable Question Good Answer Nice Answer Enlightened Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 71917,458392,1037165,Custodian Notable Question Yearling Nice Answer Critic Tumbleweed,NULL,NULL,0,NULL,NULL 71918,70616,388158,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 71919,28771,157240,NULL,NULL,NULL,0,NULL,NULL 71920,3377884,32816,Nice Question Notable Question Notable Question Good Question Stellar Question Famous Question Notable Question Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Good Question Yearling Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Famous Question Famous Question Necromancer Famous Question Nice Question Yearling Famous Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 71921,27511,32816,Nice Question Notable Question Notable Question Good Question Stellar Question Famous Question Notable Question Notable Question Notable Question Nice Question Notable Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Good Question Yearling Nice Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question Famous Question Famous Question Necromancer Famous Question Nice Question Yearling Famous Question Popular Question Famous Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Famous Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 71922,726048,572460,Necromancer,NULL,NULL,0,NULL,NULL 71923,1342056,563986,Popular Question,NULL,NULL,0,NULL,NULL 71924,351998,1486145,Caucus Constituent Critic Caucus Suffrage Vox Populi Census Caucus Constituent,NULL,NULL,0,NULL,NULL 71925,3803000,1082786,NULL,NULL,NULL,0,NULL,NULL 71926,348893,808727,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 71927,1031209,808727,Yearling Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 71928,321207,610538,NULL,NULL,NULL,0,NULL,NULL 71929,200623,604729,Editor Informed Autobiographer Supporter,NULL,NULL,0,NULL,NULL 71930,263356,1103964,Yearling Nice Answer Guru Excavator Yearling,NULL,NULL,0,NULL,NULL 71931,68735,282350,Yearling Tumbleweed Custodian Commentator,NULL,NULL,0,NULL,NULL 71932,693347,1350408,Popular Question Notable Question Popular Question Popular Question Notable Question Census Yearling Notable Question Peer Pressure,NULL,NULL,0,NULL,NULL 71933,296356,480075,NULL,NULL,NULL,0,NULL,NULL 71934,540333,573262,NULL,NULL,NULL,0,NULL,NULL 71935,3344961,143095,Self-Learner Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 71936,28875,29691,Nice Answer Enlightened Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 71937,576291,527662,Notable Question Popular Question Curious Popular Question,NULL,NULL,0,NULL,NULL 71938,194086,812815,NULL,NULL,NULL,0,NULL,NULL 71939,584338,465260,Editor,NULL,NULL,0,NULL,NULL 71940,189335,814875,NULL,NULL,NULL,0,NULL,NULL 71941,1385580,950185,NULL,NULL,NULL,0,NULL,NULL 71942,334669,1176126,Scholar Caucus Constituent Popular Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 71943,56931,77706,Yearling Caucus,NULL,NULL,0,NULL,NULL 71944,222922,1131882,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 71945,1140962,108560,Yearling Popular Question Popular Question Nice Question Yearling Notable Question Popular Question Custodian Famous Question Census Good Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 71946,644048,45364,Necromancer Yearling Good Answer Nice Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 71947,501970,337075,NULL,NULL,NULL,0,NULL,NULL 71948,618582,718372,NULL,NULL,NULL,0,NULL,NULL 71949,301753,856977,Editor,NULL,NULL,0,NULL,NULL 71950,152989,15790,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 71951,2174997,1065232,Announcer Critic,NULL,NULL,0,NULL,NULL 71952,227523,787382,NULL,NULL,NULL,0,NULL,NULL 71953,128689,731592,Yearling Nice Question Good Answer,NULL,NULL,0,NULL,NULL 71954,288546,33379,NULL,NULL,NULL,0,NULL,NULL 71955,431836,805975,NULL,NULL,NULL,0,NULL,NULL 71956,1219990,984607,NULL,NULL,NULL,0,NULL,NULL 71957,593510,1258685,NULL,NULL,NULL,0,NULL,NULL 71958,894696,801835,Popular Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 71959,215741,665122,Popular Question Commentator Critic Autobiographer Teacher Editor,NULL,NULL,0,NULL,NULL 71960,42187,48571,Popular Question Yearling,NULL,NULL,0,NULL,NULL 71961,453150,772743,Nice Answer java Revival Nice Answer Necromancer Yearling apache-spark Cleanup Nice Answer Revival Good Answer Necromancer Notable Question Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Necromancer Civic Duty Census Informed Necromancer Yearling Nice Answer Revival,NULL,NULL,0,NULL,NULL 71962,488727,591697,Curious Informed Yearling,NULL,NULL,0,NULL,NULL 71963,717411,405080,NULL,NULL,NULL,0,NULL,NULL 71964,37115,626823,NULL,NULL,NULL,0,NULL,NULL 71965,274456,1427907,Popular Question,NULL,NULL,0,NULL,NULL 71966,35885,93380,Great Answer Notable Question Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 71967,66451,1553500,NULL,NULL,NULL,0,NULL,NULL 71968,310165,339767,Census,NULL,NULL,0,NULL,NULL 71969,249320,932861,NULL,NULL,NULL,0,NULL,NULL 71970,3506506,1394669,NULL,NULL,NULL,0,NULL,NULL 71971,201787,857190,NULL,NULL,NULL,0,NULL,NULL 71972,64231,1044841,NULL,NULL,NULL,0,NULL,NULL 71973,47389,1090284,Custodian google-drive-sdk Yearling Popular Question Nice Answer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 71974,61019,583480,Editor Excavator Revival,NULL,NULL,0,NULL,NULL 71975,68385,460396,NULL,NULL,NULL,0,NULL,NULL 71976,150681,7754,Announcer Yearling Caucus Announcer Yearling Announcer Documentation User Yearling,NULL,NULL,0,NULL,NULL 71977,3173,1126703,NULL,NULL,NULL,0,NULL,NULL 71978,222529,1390288,NULL,NULL,NULL,0,NULL,NULL 71979,797738,714747,NULL,NULL,NULL,0,NULL,NULL 71980,690409,827696,NULL,NULL,NULL,0,NULL,NULL 71981,1259330,454948,NULL,NULL,NULL,0,NULL,NULL 71982,51960,337091,NULL,NULL,NULL,0,NULL,NULL 71983,88659,935110,Editor,NULL,NULL,0,NULL,NULL 71984,205479,967489,NULL,NULL,NULL,0,NULL,NULL 71985,410745,1539051,NULL,NULL,NULL,0,NULL,NULL 71986,181539,937506,Great Answer Great Question Documentation Pioneer Yearling Notable Question Curious Yearling Documentation User Nice Question Yearling,NULL,NULL,0,NULL,NULL 71987,2577255,937506,Great Answer Great Question Documentation Pioneer Yearling Notable Question Curious Yearling Documentation User Nice Question Yearling,NULL,NULL,0,NULL,NULL 71988,183250,1210366,Supporter Informed,NULL,NULL,0,NULL,NULL 71989,21342,420537,NULL,NULL,NULL,0,NULL,NULL 71990,41309,1260534,NULL,NULL,NULL,0,NULL,NULL 71991,692944,1562603,NULL,NULL,NULL,0,NULL,NULL 71992,859873,627919,Yearling,NULL,pYou should ensure that you strongread until the response is complete strong before calling codeClose code ppe ppre coderes client Do req io Copy ioutil Discard res Body res Body Close code prepTo ensure codehttp Client code connection reuse be sure to do two things pulliRead until Response is complete codeioutil ReadAll resp Body code liliCall codeBody Close code li ul one interesting note is that the read step appears to be necessary and sufficient The read step alone will return the connection to the pool but the close alone will not the connection would end up in TCP WAIT Also ran into trouble because was using json NewDecoder to read the response Body which did not fully read it Make sure to include the io Copy ioutil Discard res Body if you re not sure,0,NULL,NULL 71993,270578,1481175,NULL,NULL,NULL,0,NULL,NULL 71994,50624,87279,Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 71995,386285,625590,NULL,NULL,NULL,0,NULL,NULL 71996,98541,560664,NULL,NULL,NULL,0,NULL,NULL 71997,602493,512100,Notable Question Notable Question Popular Question Good Question Custodian Custodian Citizen Patrol Caucus Constituent Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 71998,1796940,834983,Scholar Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 71999,340191,834983,Scholar Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 72000,163903,299986,NULL,NULL,NULL,0,NULL,NULL 72001,196959,773004,NULL,NULL,NULL,0,NULL,NULL 72002,1191793,1518465,NULL,NULL,NULL,0,NULL,NULL 72003,888279,977500,Famous Question,NULL,NULL,0,NULL,NULL 72004,204242,1155030,NULL,NULL,NULL,0,NULL,NULL 72005,1107166,853022,NULL,NULL,NULL,0,NULL,NULL 72006,174805,365445,Custodian Yearling Popular Question Popular Question Taxonomist Popular Question Yearling Popular Question Notable Question Caucus Constituent Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72007,210848,881947,NULL,NULL,NULL,0,NULL,NULL 72008,239756,334743,Notable Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 72009,2366107,1238413,Popular Question Yearling Popular Question Self-Learner Necromancer Notable Question Nice Answer Famous Question Yearling Popular Question Curious Documentation User Civic Duty Custodian Custodian Yearling Nice Answer Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 72010,123982,801669,Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 72011,114077,1191838,Notable Question Caucus Curious Caucus Documentation User Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72012,5289785,1191838,Notable Question Caucus Curious Caucus Documentation User Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72013,60637,760910,NULL,NULL,NULL,0,NULL,NULL 72014,441662,1104674,Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 72015,533130,260706,NULL,NULL,NULL,0,NULL,NULL 72016,701335,836596,NULL,NULL,NULL,0,NULL,NULL 72017,579884,506645,Famous Question Good Question Popular Question Notable Question Caucus Citizen Patrol Yearling Nice Answer Popular Question Famous Question Census Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 72018,898870,558398,Scholar Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72019,722755,1320736,Notable Question Popular Question Good Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72020,1523173,475523,NULL,NULL,NULL,0,NULL,NULL 72021,8306594,929470,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72022,28638,929470,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72023,543402,1346785,Commentator Teacher Enthusiast Caucus Critic,NULL,NULL,0,NULL,NULL 72024,16784,206506,Good Question Famous Question Popular Question Popular Question Good Question Great Question Yearling Good Answer Popular Question Yearling Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 72025,100880,7424,NULL,NULL,NULL,0,NULL,NULL 72026,1408065,1348904,NULL,NULL,NULL,0,NULL,NULL 72027,2502429,285680,Civic Duty Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 72028,4712,285680,Civic Duty Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 72029,333382,375239,NULL,NULL,NULL,0,NULL,NULL 72030,68829,758262,NULL,NULL,NULL,0,NULL,NULL 72031,68634,225903,Yearling Citizen Patrol Civic Duty Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72032,1328912,225903,Yearling Citizen Patrol Civic Duty Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72033,236484,477587,Famous Question,NULL,NULL,0,NULL,NULL 72034,858542,1184535,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72035,1164754,1184535,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72036,900899,459027,NULL,NULL,NULL,0,NULL,NULL 72037,932697,830261,NULL,NULL,NULL,0,NULL,NULL 72038,1583910,769553,NULL,NULL,NULL,0,NULL,NULL 72039,378021,1020459,NULL,NULL,NULL,0,NULL,NULL 72040,42411,603619,Yearling Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 72041,9124680,55246,Popular Question Yearling Great Question Famous Question Notable Question Nice Question Famous Question Popular Question Famous Question Great Question Notable Question Stellar Question Popular Question Popular Question Famous Question Guru Popular Question Revival Good Question Notable Question Nice Question Famous Question Stellar Question Popular Question Nice Question Famous Question Yearling Favorite Question Nice Question Announcer Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Favorite Question Popular Question Good Question Caucus Nice Question Favorite Question Popular Question Popular Question Good Question Nice Question Great Question Favorite Question Notable Question Notable Question Yearling Socratic Announcer Stellar Question Guru Famous Question Famous Question Notable Question Populist Great Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 72042,280492,622966,NULL,NULL,NULL,0,NULL,NULL 72043,361490,792794,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 72044,81773,368026,Necromancer Famous Question Nice Question Revival Caucus Yearling Necromancer Custodian Custodian Citizen Patrol Custodian Census Caucus Informed Yearling,NULL,NULL,0,NULL,NULL 72045,1104819,106783,Notable Question Caucus Notable Question Nice Question Yearling Caucus Famous Question Popular Question,NULL,NULL,0,NULL,NULL 72046,1393606,438253,Popular Question,NULL,NULL,0,NULL,NULL 72047,84684,1353868,Popular Question Yearling Custodian Critic Caucus Nice Question Famous Question Excavator,NULL,NULL,0,NULL,NULL 72048,70422,426365,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72049,135010,901286,NULL,NULL,NULL,0,NULL,NULL 72050,347860,1376931,Supporter,NULL,NULL,0,NULL,NULL 72051,1022359,1026811,Notable Question Critic Popular Question,NULL,NULL,0,NULL,NULL 72052,132050,809086,NULL,NULL,NULL,0,NULL,NULL 72053,235977,103955,Good Question Favorite Question Popular Question Popular Question Famous Question Yearling Popular Question Self-Learner Famous Question Peer Pressure,NULL,NULL,0,NULL,NULL 72054,161405,1209022,NULL,NULL,NULL,0,NULL,NULL 72055,84188,157662,NULL,NULL,NULL,0,NULL,NULL 72056,470362,647447,NULL,NULL,NULL,0,NULL,NULL 72057,5691987,837671,Notable Question,NULL,NULL,0,NULL,NULL 72058,362656,1228224,Popular Question,NULL,NULL,0,NULL,NULL 72059,1172134,697957,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72060,120659,114801,Popular Question Yearling Custodian Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 72061,486585,377737,Teacher Supporter,NULL,NULL,0,NULL,NULL 72062,187531,566978,Popular Question,NULL,NULL,0,NULL,NULL 72063,161443,689541,NULL,NULL,NULL,0,NULL,NULL 72064,49403,637366,Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 72065,689220,1041190,Yearling,NULL,NULL,0,NULL,NULL 72066,393329,1189226,Popular Question,NULL,NULL,0,NULL,NULL 72067,277446,1448,Good Answer Famous Question Guru Popular Question Custodian Good Question Yearling Good Answer Great Question Nice Question Famous Question Necromancer Yearling Notable Question Great Answer Yearling Great Question Announcer,NULL,NULL,0,NULL,NULL 72068,734877,567499,Yearling Yearling Yearling Guru Great Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 72069,89816,1179729,NULL,NULL,NULL,0,NULL,NULL 72070,2644,674855,Necromancer Yearling Necromancer Revival Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 72071,408060,674855,Necromancer Yearling Necromancer Revival Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 72072,20390,156225,Notable Question Popular Question Yearling Good Question Popular Question Caucus Census Nice Answer Yearling Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Famous Question Taxonomist,NULL,NULL,0,NULL,NULL 72073,4513634,156225,Notable Question Popular Question Yearling Good Question Popular Question Caucus Census Nice Answer Yearling Popular Question Popular Question Nice Question Notable Question Popular Question Yearling Famous Question Taxonomist,NULL,NULL,0,NULL,NULL 72074,313057,1395446,Popular Question,NULL,NULL,0,NULL,NULL 72075,1149441,997166,NULL,NULL,NULL,0,NULL,NULL 72076,44018,161176,Nice Answer Notable Question Good Answer Nice Question Nice Question Yearling Notable Question Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 72077,271117,406462,NULL,NULL,NULL,0,NULL,NULL 72078,2380623,642368,Notable Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 72079,178779,642368,Notable Question Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 72080,1508088,1088119,Popular Question Yearling,NULL,NULL,0,NULL,NULL 72081,185943,661191,Yearling Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 72082,83344,175069,Student Scholar Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72083,4249479,321712,Popular Question,NULL,NULL,0,NULL,NULL 72084,165124,871130,NULL,NULL,NULL,0,NULL,NULL 72085,486638,165118,Supporter,NULL,NULL,0,NULL,NULL 72086,65166,509921,NULL,NULL,NULL,0,NULL,NULL 72087,246114,407756,Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Famous Question Yearling Notable Question Nice Question Popular Question Famous Question Famous Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 72088,376597,769645,NULL,NULL,NULL,0,NULL,NULL 72089,287711,377612,Notable Question,NULL,NULL,0,NULL,NULL 72090,65456,1541247,Caucus Yearling,NULL,NULL,0,NULL,NULL 72091,1520775,662962,NULL,NULL,NULL,0,NULL,NULL 72092,168473,1040318,NULL,NULL,NULL,0,NULL,NULL 72093,652945,498502,NULL,NULL,NULL,0,NULL,NULL 72094,1076965,185251,NULL,NULL,NULL,0,NULL,NULL 72095,368737,395737,Revival Nice Answer Enlightened Nice Answer Yearling Caucus Constituent Custodian Necromancer Yearling Caucus Constituent Documentation User Great Answer Caucus Constituent Yearling Good Answer Notable Question Custodian Custodian,NULL,NULL,0,NULL,NULL 72096,6605548,545017,Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 72097,114046,545017,Revival Yearling Yearling,NULL,,0,, 72098,24700,193435,Nice Answer Nice Answer Enlightened Nice Answer Great Answer Yearling Revival Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 72099,115234,290197,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72100,180103,563990,Student Commentator,NULL,NULL,0,NULL,NULL 72101,332696,592221,Popular Question Popular Question Yearling Commentator Notable Question,NULL,NULL,0,NULL,NULL 72102,101172,1329431,NULL,NULL,NULL,0,NULL,NULL 72103,75745,763459,Popular Question Famous Question Nice Question Guru Nice Answer Popular Question Revival Yearling Good Answer Popular Question Popular Question Famous Question Caucus Good Question Popular Question Notable Question Yearling Notable Question Notable Question Caucus Famous Question Documentation User Great Answer Census Popular Question Caucus Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 72104,63047,374672,NULL,NULL,NULL,0,NULL,NULL 72105,9049553,374672,NULL,NULL,NULL,0,NULL,NULL 72106,3143407,931959,Commentator Custodian Yearling Informed Yearling Nice Answer Caucus Nice Answer Enlightened Documentation User Editor Yearling Custodian Revival Good Answer Yearling Necromancer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 72107,171038,645682,Popular Question,NULL,NULL,0,NULL,NULL 72108,64465,283231,Excavator Great Question Yearling Famous Question Yearling Popular Question Good Question Famous Question Famous Question Nice Answer Enlightened Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 72109,1177326,97095,Yearling Necromancer Nice Answer Notable Question Caucus Yearling Caucus Good Answer Popular Question,NULL,NULL,0,NULL,NULL 72110,970213,666694,NULL,NULL,NULL,0,NULL,NULL 72111,94578,722147,Teacher Supporter Editor,NULL,NULL,0,NULL,NULL 72112,326569,215576,Announcer Caucus Yearling Constituent Census Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Revival Yearling Census Necromancer Caucus Constituent Custodian Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 72113,1516845,1225139,NULL,NULL,NULL,0,NULL,NULL 72114,494848,1502304,NULL,NULL,NULL,0,NULL,NULL 72115,31923,589095,Documentation User Revival,NULL,NULL,0,NULL,NULL 72116,99216,1127485,Yearling Announcer Necromancer Necromancer Necromancer Necromancer Great Answer Nice Answer Enlightened Necromancer git Nice Answer Popular Question Nice Answer Good Answer Necromancer Caucus Good Answer Revival Guru Popular Question Yearling Nice Answer Enlightened Announcer Necromancer Great Answer Popular Question Good Answer Good Answer Popular Question Mortarboard Nice Answer Caucus Announcer Nice Answer Enlightened Revival Necromancer Announcer Necromancer Popular Question Necromancer Nice Answer Guru Nice Answer Enlightened Announcer Revival Nice Answer Revival Announcer Populist Yearling Notable Question Necromancer Nice Answer gradle Caucus Announcer Announcer Nice Answer Nice Answer Great Answer Announcer Nice Answer Enlightened Announcer Popular Question Announcer Necromancer Popular Question Nice Answer Good Answer Guru Nice Answer Necromancer,NULL,How can use Array delete while iterating over the array ruby arrays iteration pI have an array that want to iterate over and delete some of the elements This doesn work ppre codea each do next if lt delete do something with xenda gt code prepI want codea code to be code code How can get around this Possible duplicate of Deleting While Iterating in Ruby http stackoverflow com questions 2933366 deleting while iterating in ruby pUsing NET href http msdn microsoft com en us library system text utf8encoding aspx rel noreferrer codeUTF8Encoding code class and passing code False code to the constructor seems to work ppre code MyFile Get Content MyPath Utf8NoBomEncoding New Object System Text UTF8Encoding False System IO File WriteAllLines MyPath MyFile Utf8NoBomEncoding code pre Note that WriteAllLines seems to require MyPath to be absolute pUsing NET href http msdn microsoft com en us library system text utf8encoding aspx rel noreferrer codeUTF8Encoding code class and passing code False code to the constructor seems to work ppre code MyFile Get Content MyPath Utf8NoBomEncoding New Object System Text UTF8Encoding False System IO File WriteAllLines MyPath MyFile Utf8NoBomEncoding code pre It works but the file ends up being in some weird directory not relative to the current working directory IIRC it was the path of the PowerShell interpreter binary,0,NULL,NULL 72117,365368,107339,Custodian Yearling Scholar Yearling Popular Question Yearling Custodian Custodian Popular Question,NULL,NULL,0,NULL,NULL 72118,373401,1060729,NULL,NULL,NULL,0,NULL,NULL 72119,498131,669358,NULL,NULL,NULL,0,NULL,NULL 72120,218336,1309872,NULL,NULL,NULL,0,NULL,NULL 72121,984244,880335,NULL,NULL,NULL,0,NULL,NULL 72122,1122390,898497,NULL,NULL,NULL,0,NULL,NULL 72123,1483421,566773,NULL,NULL,NULL,0,NULL,NULL 72124,395264,54937,Yearling Notable Question Good Question Great Answer Nice Answer Nice Question Popular Question Great Answer Necromancer Necromancer Announcer Guru Good Answer Guru Popular Question Famous Question Popular Question Caucus Constituent Popular Question Notable Question Yearling Custodian Census Popular Question Custodian Good Answer Good Question Announcer Famous Question Announcer Favorite Question Documentation User Guru Census Yearling Good Answer Caucus Constituent Good Question Famous Question Famous Question Revival,NULL,How can simulate click to an anchor tag javascript html dom pI want to simulate click to an anchor tag with all extras like correct target handling ppThere seems to be click method for anchor DOM object but not all browsers support that Firefox throws this error pblockquote pError anchorObj click is not function blockquotepIt also works strangely on Opera 10 and Konqueror causing infinite clicks to happen when it called inside onclick handler of surrounding div guess only IE8 works fine with it Anyway don want it since major browsers mostly have problems with it ppI found this alternate solution for Firefox in Mozilla forums ppre codevar evt document createEvent MouseEvents evt initMouseEvent click true true window false false false false null anchorObj dispatchEvent evt code prepThis seems too ugly and cumbersome for me don know how compatible it is and want to avoid writing browser specific code as much as possible ppI can use location href anchorObj href because it doesn handle target attribute can do some hard coding based on target value but like to avoid that as well ppThere is suggestion of switching to JQuery but not sure how well it handles target property either since haven worked with it before Possible duplicate of JavaScript Invoking click event of an anchor tag from javascript http stackoverflow com questions 980709 javascript invoking click event of an anchor tag from javascript,0,NULL,NULL 72125,454631,54937,Yearling Notable Question Good Question Great Answer Nice Answer Nice Question Popular Question Great Answer Necromancer Necromancer Announcer Guru Good Answer Guru Popular Question Famous Question Popular Question Caucus Constituent Popular Question Notable Question Yearling Custodian Census Popular Question Custodian Good Answer Good Question Announcer Famous Question Announcer Favorite Question Documentation User Guru Census Yearling Good Answer Caucus Constituent Good Question Famous Question Famous Question Revival,NULL,How can simulate click to an anchor tag javascript html dom pI want to simulate click to an anchor tag with all extras like correct target handling ppThere seems to be click method for anchor DOM object but not all browsers support that Firefox throws this error pblockquote pError anchorObj click is not function blockquotepIt also works strangely on Opera 10 and Konqueror causing infinite clicks to happen when it called inside onclick handler of surrounding div guess only IE8 works fine with it Anyway don want it since major browsers mostly have problems with it ppI found this alternate solution for Firefox in Mozilla forums ppre codevar evt document createEvent MouseEvents evt initMouseEvent click true true window false false false false null anchorObj dispatchEvent evt code prepThis seems too ugly and cumbersome for me don know how compatible it is and want to avoid writing browser specific code as much as possible ppI can use location href anchorObj href because it doesn handle target attribute can do some hard coding based on target value but like to avoid that as well ppThere is suggestion of switching to JQuery but not sure how well it handles target property either since haven worked with it before Possible duplicate of JavaScript Invoking click event of an anchor tag from javascript http stackoverflow com questions 980709 javascript invoking click event of an anchor tag from javascript,0,NULL,NULL 72126,187085,1064568,NULL,NULL,NULL,0,NULL,NULL 72127,830087,444225,Tumbleweed Yearling Critic Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 72128,271091,848397,Critic,NULL,NULL,0,NULL,NULL 72129,1422139,848397,Critic,NULL,NULL,0,NULL,NULL 72130,1286211,328475,Yearling Popular Question Nice Answer Yearling Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 72131,894238,185514,Inquisitive Popular Question Yearling Autobiographer Notable Question Caucus Notable Question Good Question Self-Learner Yearling Peer Pressure Popular Question Caucus Popular Question Custodian Custodian Notable Question Popular Question Popular Question Excavator Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72132,12301,1533043,NULL,NULL,NULL,0,NULL,NULL 72133,772685,1226465,NULL,NULL,NULL,0,NULL,NULL 72134,587276,1226465,NULL,NULL,NULL,0,NULL,NULL 72135,486555,717583,NULL,NULL,NULL,0,NULL,NULL 72136,6109602,220304,NULL,NULL,NULL,0,NULL,NULL 72137,118533,1333026,NULL,NULL,NULL,0,NULL,NULL 72138,131108,497008,NULL,NULL,NULL,0,NULL,NULL 72139,79513,373547,Student Custodian,NULL,NULL,0,NULL,NULL 72140,77051,1384498,NULL,NULL,NULL,0,NULL,NULL 72141,131959,150400,Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 72142,50554,532677,NULL,NULL,NULL,0,NULL,NULL 72143,262326,525157,NULL,NULL,NULL,0,NULL,NULL 72144,337717,1404463,Yearling Popular Question Revival Census Popular Question,NULL,NULL,0,NULL,NULL 72145,83037,381140,Great Answer Yearling Caucus Constituent Necromancer Announcer Yearling Caucus Caucus Constituent Yearling Custodian,NULL,NULL,0,NULL,NULL 72146,109893,572086,NULL,NULL,NULL,0,NULL,NULL 72147,200086,1313954,Popular Question Famous Question Popular Question Famous Question Notable Question Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 72148,335498,525997,NULL,NULL,NULL,0,NULL,NULL 72149,116564,574294,NULL,NULL,NULL,0,NULL,NULL 72150,152353,1065562,NULL,NULL,NULL,0,NULL,NULL 72151,106029,1491191,NULL,NULL,NULL,0,NULL,NULL 72152,381242,589130,NULL,NULL,NULL,0,NULL,NULL 72153,5453560,1261204,Famous Question Yearling Nice Question Popular Question Famous Question Caucus Yearling Informed Popular Question Caucus Notable Question Good Question,NULL,NULL,0,NULL,NULL 72154,9319,1464496,NULL,NULL,NULL,0,NULL,NULL 72155,70913,535827,Necromancer Yearling Popular Question Good Answer Yearling Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72156,2122,1192913,Yearling Nice Answer Enlightened Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 72157,930901,412553,Notable Question Commentator,NULL,NULL,0,NULL,NULL 72158,22589,379574,NULL,NULL,NULL,0,NULL,NULL 72159,104702,818350,NULL,NULL,NULL,0,NULL,NULL 72160,23085,713410,NULL,NULL,NULL,0,NULL,NULL 72161,184963,657274,NULL,NULL,NULL,0,NULL,NULL 72162,1965989,1189354,NULL,NULL,NULL,0,NULL,NULL 72163,179649,851414,Teacher,NULL,NULL,0,NULL,NULL 72164,252577,1164959,NULL,NULL,NULL,0,NULL,NULL 72165,936848,213712,Caucus Popular Question,NULL,NULL,0,NULL,NULL 72166,337080,1497059,Steward Steward Steward Good Answer Yearling Revival Student Scholar maven Explainer Custodian Yearling Announcer Guru Necromancer java Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72167,777478,1046621,NULL,NULL,NULL,0,NULL,NULL 72168,261562,76734,Yearling Nice Question Famous Question Popular Question Custodian Custodian Custodian Yearling Populist Famous Question Good Question Yearling Notable Question Popular Question Good Answer Famous Question Popular Question Taxonomist php Nice Answer,NULL,NULL,0,NULL,NULL 72169,4242,230717,Nice Question Notable Question Notable Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Nice Answer Popular Question Nice Answer Popular Question Good Question Good Question Nice Question Notable Question Yearling Nice Question Necromancer Stellar Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Famous Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Good Question Popular Question Notable Question Famous Question Good Question,NULL,NULL,1,Passing props to generic children javascript reactjs pIs there way to pass props to generic child not component that you know ahead ppSomething that would make codeWrapper code be able to pass codefoo code to children ppre codevar Wrapper React createClass render function return lt div gt this props children foo lt div gt var App React createClass render function return lt Wrapper gt this props foo lt Wrapper gt code prep href https jsfiddle net czLym0nv rel nofollow jsfiddle,NULL 72170,370235,1181285,NULL,NULL,NULL,0,NULL,NULL 72171,177988,947174,Popular Question Notable Question Notable Question Notable Question Nice Question Investor Commentator,NULL,NULL,0,NULL,NULL 72172,413626,150094,Popular Question Popular Question Notable Question Notable Question Nice Question Nice Question Notable Question Popular Question Popular Question Great Answer Good Answer Notable Question Yearling Popular Question Popular Question Nice Question Popular Question Famous Question Good Question Popular Question Popular Question Yearling Necromancer Popular Question Popular Question Notable Question Great Question Notable Question Nice Question Yearling Announcer Nice Question Notable Question,NULL,pHere shorter syncronous version of href https stackoverflow com 18112359 406249 this answer that can list all directories hidden or not in the current directory ppre codeconst lstatSync readdirSync require fs const join require path const isDirectory source gt lstatSync source isDirectory const getDirectories source gt readdirSync source map name gt join source name filter isDirectory code pre Note this breaks if there are symlinks in the directory Use lstatSync instead,0,NULL,NULL 72173,157460,493408,NULL,NULL,NULL,0,NULL,NULL 72174,146978,573918,NULL,NULL,NULL,0,NULL,NULL 72175,302595,946930,Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 72176,4775,205004,NULL,NULL,NULL,0,NULL,NULL 72177,240988,178761,Good Answer Good Answer Nice Answer Nice Question Great Answer Nice Answer Enlightened Necromancer Nice Answer Nice Answer Nice Answer Yearling Great Answer Great Answer Nice Answer Necromancer Good Answer shell Good Answer Nice Answer Nice Answer Good Answer Guru Populist Nice Answer Nice Answer Yearling Guru Great Answer Good Answer Good Answer Nice Answer latex Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72178,3943510,1089891,NULL,NULL,NULL,0,NULL,NULL 72179,148447,1089891,NULL,NULL,NULL,0,NULL,NULL 72180,505640,522919,NULL,NULL,NULL,0,NULL,NULL 72181,65613,870914,Popular Question Caucus Constituent Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72182,80887,1040385,NULL,NULL,NULL,0,NULL,NULL 72183,407151,691556,NULL,NULL,NULL,0,NULL,NULL 72184,23320,897783,Teacher Popular Question Supporter Student Notable Question,NULL,NULL,0,NULL,NULL 72185,75840,538176,NULL,NULL,NULL,0,NULL,NULL 72186,307107,169292,Popular Question Good Answer,NULL,NULL,0,NULL,NULL 72187,1212435,1230797,Editor Teacher Supporter Informed Revival Necromancer,NULL,NULL,0,NULL,NULL 72188,272059,675512,NULL,NULL,NULL,0,NULL,NULL 72189,959509,1326624,NULL,NULL,NULL,0,NULL,NULL 72190,5456,1410827,NULL,NULL,NULL,0,NULL,NULL 72191,128650,534343,Student,NULL,NULL,0,NULL,NULL 72192,296655,644505,NULL,NULL,NULL,0,NULL,NULL 72193,384517,1492393,Teacher Notable Question Promoter Curious Nice Question Benefactor Nice Question Commentator Popular Question Yearling Popular Question Citizen Patrol Announcer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72194,809402,881262,NULL,NULL,NULL,0,NULL,NULL 72195,317617,1069389,Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Autobiographer Self-Learner Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72196,450622,1318192,NULL,NULL,NULL,0,NULL,NULL 72197,33102,1272316,NULL,NULL,NULL,0,NULL,NULL 72198,81631,684888,Popular Question Good Answer Yearling Popular Question Notable Question Popular Question Yearling Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 72199,285689,638331,Yearling Enthusiast Investor Altruist Great Question Revival Yearling,NULL,NULL,0,NULL,NULL 72200,162491,622026,NULL,NULL,NULL,0,NULL,NULL 72201,59273,1248376,NULL,NULL,NULL,0,NULL,NULL 72202,204068,160104,Notable Question Notable Question Critic Famous Question Necromancer Documentation User,NULL,NULL,0,NULL,NULL 72203,780763,160104,Notable Question Notable Question Critic Famous Question Necromancer Documentation User,NULL,NULL,0,NULL,NULL 72204,162869,600183,NULL,NULL,NULL,0,NULL,NULL 72205,133513,59913,Popular Question Popular Question Yearling Necromancer Necromancer Announcer Necromancer Announcer Yearling Explainer Announcer Revival Necromancer Popular Question Yearling Nice Answer Nice Answer Revival,NULL,pHere the general idea ppre codefrom os import curdirfrom os path import join as pjoinfrom http server import BaseHTTPRequestHandler HTTPServerclass StoreHandler BaseHTTPRequestHandler store path pjoin curdir store json def do GET self if self path store json with open self store path as fh self send response 200 self send header Content type text json self end headers self wfile write fh read encode def do POST self if self path store json length self headers content length data self rfile read int length with open self store path as fh fh write data decode self send response 200 server HTTPServer 8080 StoreHandler server serve forever code prepre class lang bsh prettyprint override code curl POST data one two three four localhost 8080 store json curl GET localhost 8080 store json one two three four code pre To get it to work had to change self path to self store path in the if stateent Like this if self store path store json,0,NULL,NULL 72206,217907,529858,NULL,NULL,NULL,0,NULL,NULL 72207,257869,1481283,Tumbleweed,NULL,NULL,0,NULL,NULL 72208,311374,605816,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 72209,133321,114101,Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 72210,358623,246972,NULL,NULL,NULL,0,NULL,NULL 72211,2206776,1017751,Student Scholar Custodian Nice Question Good Question Popular Question Yearling Mortarboard Yearling Notable Question Editor Excavator Critic Caucus Census Caucus Commentator,NULL,NULL,0,NULL,NULL 72212,104187,1251924,NULL,NULL,NULL,0,NULL,NULL 72213,176621,773210,Popular Question Notable Question Popular Question Notable Question Nice Answer Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Notable Question Excavator Popular Question Yearling Popular Question Famous Question Notable Question Nice Answer Nice Question Notable Question Nice Question Nice Question Nice Question Good Answer Famous Question Yearling Good Question Famous Question Good Answer Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 72214,401525,98299,Popular Question Good Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Nice Question Famous Question Notable Question Notable Question Good Question Famous Question Popular Question Notable Question Famous Question Famous Question Notable Question Popular Question Yearling Famous Question Good Question Notable Question Notable Question Popular Question Notable Question Popular Question Yearling Good Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 72215,907473,119341,Yearling Yearling Great Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 72216,189355,425221,NULL,NULL,NULL,0,NULL,NULL 72217,150741,713844,Notable Question Yearling Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72218,47283,100785,Yearling Populist Yearling Yearling Great Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 72219,289598,801435,NULL,NULL,NULL,0,NULL,NULL 72220,187902,919235,NULL,NULL,NULL,0,NULL,NULL 72221,2405888,787675,Popular Question Notable Question Supporter Popular Question Notable Question Famous Question Teacher Curious,NULL,NULL,0,NULL,NULL 72222,1505758,1326469,NULL,NULL,NULL,0,NULL,NULL 72223,538054,790852,NULL,NULL,NULL,0,NULL,NULL 72224,146187,434331,NULL,NULL,NULL,0,NULL,NULL 72225,602663,1018095,NULL,NULL,NULL,0,NULL,NULL 72226,156027,126784,NULL,NULL,NULL,0,NULL,NULL 72227,83149,657279,NULL,NULL,NULL,0,NULL,NULL 72228,18397,471393,Good Answer Nice Answer Notable Question Yearling Custodian python Popular Question Yearling Popular Question Notable Question Good Answer Necromancer Nice Answer Nice Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 72229,97726,712595,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72230,257479,1419458,Commentator Yearling Critic Informed Suffrage Vox Populi Census Documentation User,NULL,NULL,0,NULL,NULL 72231,531824,1259494,NULL,NULL,NULL,0,NULL,NULL 72232,105379,1166848,Nice Question Scholar,NULL,NULL,0,NULL,NULL 72233,71445,482225,Citizen Patrol Critic Yearling Revival Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72234,164797,410160,NULL,NULL,NULL,0,NULL,NULL 72235,185060,1140374,NULL,NULL,NULL,0,NULL,NULL 72236,49880,758504,NULL,NULL,NULL,0,NULL,NULL 72237,552047,989912,NULL,NULL,NULL,0,NULL,NULL 72238,149025,324339,NULL,NULL,NULL,0,NULL,NULL 72239,297242,556548,Curious,NULL,NULL,0,NULL,NULL 72240,263951,1111616,Famous Question Necromancer,NULL,NULL,0,NULL,NULL 72241,373787,647449,Notable Question Yearling Necromancer Popular Question Popular Question Good Question Popular Question,NULL,pYou can use codegit add patch lt filename gt code or code code for short and git will begin to break down your file into what it thinks are sensible hunks portions of the file It will then prompt you with this question ppre codeStage this hunk code prepHere is description of each option pulli kbdy kbd stage this hunk for the next commit lili kbdn kbd do not stage this hunk for the next commit lili kbdq kbd quit do not stage this hunk or any of the remaining hunks lili kbda kbd stage this hunk and all later hunks in the file lili kbdd kbd do not stage this hunk or any of the later hunks in the file lili kbdg kbd select hunk to go to lili kbd kbd search for hunk matching the given regex lili kbdj kbd leave this hunk undecided see next undecided hunk lili kbdJ kbd leave this hunk undecided see next hunk lili kbdk kbd leave this hunk undecided see previous undecided hunk lili kbdK kbd leave this hunk undecided see previous hunk lili kbds kbd split the current hunk into smaller hunks lili kbde kbd manually edit the current hunk lili kbd kbd print hunk help li ulpIf the file is not in the repository yet you can first do codegit add lt filename gt code Afterwards you can go on with codegit add lt filename gt code ppAfterwards you can use brcodegit diff staged code to check that you staged correct changesbrcodegit reset code to unstage mistakenly added hunksbrcodegit commit code to view your commit while you edit the commit message ppNote this is far different than the codegit format patch code command which purpose is to parse commit data into code patch code files ppReference for future href https git scm com book en v2 Git Tools Interactive Staging rel noreferrer https git scm com book en v2 Git Tools Interactive Staging do not see split hunk as an option why is that,0,NULL,NULL 72242,501803,899052,Popular Question Teacher Nice Question Popular Question,NULL,NULL,0,NULL,NULL 72243,1829563,1315897,NULL,NULL,NULL,0,NULL,NULL 72244,781649,368294,Civic Duty Popular Question Nice Answer Enlightened Documentation User Notable Question,NULL,NULL,0,NULL,NULL 72245,1986172,680815,Nice Question Popular Question Teacher Curious Notable Question Caucus Yearling Enthusiast Popular Question,NULL,pre codeC gt netstat code prep add strong strong to stop it trying to resolve hostnames which will make it lot faster ppNote Dane recommendation for href http technet microsoft com en us sysinternals bb897437 aspx rel noreferrer TCPView Looks very useful pp strong strong Displays all connections and listening ports pp strong strong Displays the executable involved in creating each connection or listening port In some cases well known executables host multiple independent components and in these cases the sequence of components involved in creating the connection or listening port is displayed In this case the executable name is in at the bottom on top is the component it called and so forth until TCP IP was reached Note that this option can be time consuming and will fail unless you have sufficient permissions pp strong strong Displays addresses and port numbers in numerical form pp strong strong Displays the owning process ID associated with each connection Sometimes can run my Apache httpd server because PID is taking port 80 for some reason Problem is the process with PID is well The System Restart helps but if anyone knows the reason or way to find out why System is taking port 80 all ears pre codeC gt netstat code prep add strong strong to stop it trying to resolve hostnames which will make it lot faster ppNote Dane recommendation for href http technet microsoft com en us sysinternals bb897437 aspx rel noreferrer TCPView Looks very useful pp strong strong Displays all connections and listening ports pp strong strong Displays the executable involved in creating each connection or listening port In some cases well known executables host multiple independent components and in these cases the sequence of components involved in creating the connection or listening port is displayed In this case the executable name is in at the bottom on top is the component it called and so forth until TCP IP was reached Note that this option can be time consuming and will fail unless you have sufficient permissions pp strong strong Displays addresses and port numbers in numerical form pp strong strong Displays the owning process ID associated with each connection Wait does that mean Windows has some kind of HTTP API,0,NULL,NULL 72246,326172,1503918,Supporter Editor Popular Question Curious,NULL,NULL,0,NULL,NULL 72247,1332453,1355231,Scholar,NULL,NULL,0,NULL,NULL 72248,23328,754305,Popular Question,NULL,NULL,0,NULL,NULL 72249,175242,547263,NULL,NULL,NULL,0,NULL,NULL 72250,22397,24608,Good Answer Popular Question Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72251,355698,93921,Excavator Necromancer Yearling Unsung Hero Popular Question Organizer Famous Question Yearling Notable Question Nice Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72252,41807,425709,NULL,NULL,NULL,0,NULL,NULL 72253,704370,686341,NULL,NULL,NULL,0,NULL,NULL 72254,695623,1061154,NULL,NULL,NULL,0,NULL,NULL 72255,5612338,215056,Notable Question Nice Question Popular Question Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 72256,1509638,1457982,NULL,NULL,NULL,0,NULL,NULL 72257,203778,809916,NULL,NULL,NULL,0,NULL,NULL 72258,312317,1536964,NULL,NULL,NULL,0,NULL,NULL 72259,137876,192092,Custodian Yearling Populist Great Answer Revival Excavator Critic Necromancer Yearling Necromancer Announcer Necromancer Yearling,NULL,NULL,0,NULL,NULL 72260,8831,1028607,Necromancer Commentator Yearling Revival Necromancer Yearling Nice Answer Necromancer Necromancer,NULL,NULL,0,NULL,NULL 72261,443540,566682,NULL,NULL,NULL,0,NULL,NULL 72262,931151,460138,Necromancer Popular Question Altruist Good Question Organizer Nice Answer Yearling Famous Question Good Question Announcer Tumbleweed Popular Question Nice Answer Benefactor Popular Question,NULL,NULL,0,NULL,NULL 72263,66382,821910,NULL,NULL,NULL,0,NULL,NULL 72264,1566408,647911,NULL,NULL,NULL,0,NULL,NULL 72265,455990,958782,Autobiographer,NULL,NULL,0,NULL,NULL 72266,746844,277089,Famous Question Nice Question Nice Question Yearling Critic Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 72267,146117,195286,Yearling,NULL,NULL,0,NULL,NULL 72268,924686,1127650,Necromancer Yearling Caucus Nice Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72269,165265,1063416,Supporter,NULL,NULL,0,NULL,NULL 72270,95800,716437,NULL,NULL,NULL,0,NULL,NULL 72271,24185,1245760,NULL,NULL,NULL,0,NULL,NULL 72272,1015700,1490647,NULL,NULL,NULL,0,NULL,NULL 72273,488891,773645,NULL,NULL,NULL,0,NULL,NULL 72274,1942745,1195285,NULL,NULL,NULL,0,NULL,NULL 72275,48106,175536,NULL,NULL,NULL,0,NULL,NULL 72276,420277,928736,NULL,NULL,NULL,0,NULL,NULL 72277,34610,268293,NULL,NULL,NULL,0,NULL,NULL 72278,148604,383476,Yearling Revival,NULL,NULL,0,NULL,NULL 72279,11429,230778,Popular Question Popular Question Good Question Guru Nice Answer Popular Question Famous Question Popular Question Notable Question Yearling Nice Answer Popular Question Necromancer Yearling Famous Question Custodian Great Answer Popular Question,NULL,NULL,0,NULL,NULL 72280,1129051,1222606,NULL,NULL,NULL,0,NULL,NULL 72281,136432,301629,NULL,NULL,NULL,0,NULL,NULL 72282,79605,1403956,NULL,NULL,NULL,0,NULL,NULL 72283,1022868,493324,NULL,NULL,NULL,0,NULL,NULL 72284,437496,703725,Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 72285,2371,527450,Editor Teacher,NULL,NULL,0,NULL,NULL 72286,95979,281041,NULL,NULL,NULL,0,NULL,NULL 72287,80423,951881,Custodian Yearling Nice Answer Enlightened scheme Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 72288,427733,940427,NULL,NULL,NULL,0,NULL,NULL 72289,241645,188852,Census,NULL,NULL,0,NULL,NULL 72290,103343,465736,Yearling Caucus,NULL,NULL,0,NULL,NULL 72291,154997,1080651,Scholar Necromancer Critic Not a Robot,NULL,NULL,0,NULL,NULL 72292,60277,1029371,Necromancer Good Answer Necromancer Nice Answer Yearling Nice Question Good Answer Necromancer Yearling Notable Question Necromancer Nice Answer Famous Question Yearling,NULL,pEven simpler with codepipe code and coderequest code Package ppre codevar request require request app use api function req res var url apiUrl req url req pipe request url pipe res code prepIt pipes the whole request to the API and pipes the response back to the requestor This also handles POST PUT DELETE and all other requests ppIf you also care about query string you should pipe it as well ppre codereq pipe request qs req query uri url pipe res code pre Thanks for the tip updated the answer accordingly,0,NULL,NULL 72293,232418,1395822,NULL,NULL,NULL,0,NULL,NULL 72294,340376,250611,Good Answer Yearling,NULL,NULL,0,NULL,NULL 72295,1718849,250611,Good Answer Yearling,NULL,NULL,0,NULL,NULL 72296,217270,83030,Good Question Yearling Enthusiast Announcer,NULL,NULL,0,NULL,NULL 72297,226949,431839,NULL,NULL,NULL,0,NULL,NULL 72298,167798,99244,Popular Question,NULL,NULL,0,NULL,NULL 72299,486950,263387,Caucus Constituent,NULL,NULL,0,NULL,NULL 72300,26433,19556,Guru Nice Answer Nice Answer Good Answer python Yearling Good Answer Custodian Custodian Custodian Caucus Necromancer Yearling Documentation User Caucus Popular Question Yearling Guru Good Answer,NULL,NULL,0,NULL,NULL 72301,559134,427101,Notable Question,NULL,NULL,0,NULL,NULL 72302,9772525,1540493,NULL,NULL,NULL,0,NULL,NULL 72303,17875,486419,NULL,NULL,NULL,0,NULL,NULL 72304,81693,1460969,NULL,NULL,NULL,0,NULL,NULL 72305,675963,587279,Yearling Good Question Popular Question Famous Question Custodian Popular Question Good Answer Caucus Constituent Yearling Popular Question Announcer Good Question Notable Question Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 72306,4613220,624174,NULL,NULL,NULL,0,NULL,NULL 72307,131384,894712,Yearling Famous Question,NULL,NULL,0,NULL,NULL 72308,1012411,1104639,Teacher Popular Question,NULL,NULL,0,NULL,NULL 72309,2772335,795792,NULL,NULL,NULL,0,NULL,NULL 72310,368958,1320451,NULL,NULL,NULL,0,NULL,NULL 72311,288909,307826,Announcer Yearling Caucus Constituent Enthusiast Announcer Announcer Documentation User,NULL,NULL,0,NULL,NULL 72312,44274,550349,Nice Answer Necromancer Nice Answer Necromancer Nice Answer ruby Nice Answer Enlightened Yearling Nice Answer Guru Strunk & White Explainer Caucus javascript Revival Great Answer Reviewer Yearling Nice Answer Caucus Constituent Good Answer Good Answer Great Answer,NULL,NULL,0,NULL,NULL 72313,392491,816806,NULL,NULL,NULL,0,NULL,NULL 72314,60821,593463,Informed Autobiographer,NULL,NULL,0,NULL,NULL 72315,1356489,946190,NULL,NULL,NULL,0,NULL,NULL 72316,72714,1241172,NULL,NULL,NULL,0,NULL,NULL 72317,961926,1259996,Tumbleweed,NULL,NULL,0,NULL,NULL 72318,277950,943276,NULL,NULL,NULL,0,NULL,NULL 72319,167182,635523,Yearling Popular Question Electorate Good Question Popular Question Good Answer Organizer Notable Question Notable Question Census Yearling Nice Question Famous Question Caucus Nice Question Popular Question Yearling Necromancer Notable Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 72320,475189,818594,NULL,NULL,NULL,0,NULL,NULL 72321,86538,65782,Enthusiast Popular Question Caucus Yearling Fanatic Necromancer Nice Answer Yearling Commentator Yearling Good Answer,NULL,NULL,0,NULL,NULL 72322,131880,805385,Notable Question,NULL,NULL,0,NULL,NULL 72323,1437776,706033,NULL,NULL,NULL,0,NULL,NULL 72324,569120,273390,Popular Question,NULL,NULL,0,NULL,NULL 72325,97331,266268,Yearling Yearling Notable Question Good Answer Great Answer Great Answer Good Answer Nice Answer Yearling Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72326,734033,1286117,Yearling,NULL,NULL,0,NULL,NULL 72327,45851,1565026,Necromancer,NULL,NULL,0,NULL,NULL 72328,305458,971329,Necromancer Popular Question Necromancer Popular Question Necromancer Nice Question Notable Question Announcer Nice Answer Yearling Revival Yearling Necromancer Necromancer Nice Answer Yearling Nice Answer Announcer Yearling Good Answer Self-Learner Yearling Good Answer,NULL,pI think there bug somewhere on iOS regarding the timing of codeUITableViewController code or plain codeUIViewController code containing codeUITableView code codedealloc code when dealing with transition animations Somehow the view controller is already deallocated but the table view is still trying to send messages to its strongdelegate strong ppAs workaround you can implement the codedealloc code method on the codeUITableViewController code like this ppre code void dealloc self tableView delegate nil self tableView dataSource nil code pre Great answer This solved our problems Can file radar and post the ID here ll duplicate it then,0,NULL,NULL 72329,238244,1497220,NULL,NULL,NULL,0,NULL,NULL 72330,1504297,634573,NULL,NULL,NULL,0,NULL,NULL 72331,353248,923507,Famous Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72332,120839,136870,Good Answer Yearling Yearling Yearling ruby,NULL,NULL,0,NULL,NULL 72333,122873,1432115,NULL,NULL,NULL,0,NULL,NULL 72334,277274,1180412,Popular Question,NULL,NULL,0,NULL,NULL 72335,251162,194264,Yearling,NULL,NULL,0,NULL,NULL 72336,481341,473020,NULL,NULL,NULL,0,NULL,NULL 72337,184831,81096,Nice Answer,NULL,NULL,0,NULL,NULL 72338,98681,278817,Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 72339,24204,615276,Yearling Citizen Patrol Revival,NULL,NULL,0,NULL,NULL 72340,707115,1194143,Yearling,NULL,NULL,0,NULL,NULL 72341,90276,1391542,Nice Answer Enlightened Critic Yearling Famous Question Informed Autobiographer Tumbleweed Documentation User Promoter Benefactor Notable Question,NULL,NULL,0,NULL,NULL 72342,44224,1203052,NULL,NULL,NULL,0,NULL,NULL 72343,478111,853892,Notable Question Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 72344,429633,826697,Notable Question,NULL,NULL,0,NULL,NULL 72345,210703,671238,Yearling Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72346,395305,1275027,Good Answer,NULL,NULL,0,NULL,NULL 72347,269404,1275027,Good Answer,NULL,NULL,0,NULL,NULL 72348,311048,360365,Yearling Great Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 72349,180984,547072,NULL,NULL,NULL,0,NULL,NULL 72350,169905,1048563,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72351,13999,178892,Yearling Yearling,NULL,NULL,0,NULL,NULL 72352,145624,316617,Nice Answer Enlightened Yearling Famous Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 72353,667790,456625,Student Citizen Patrol Editor,NULL,NULL,0,NULL,NULL 72354,427025,1517328,Tumbleweed Notable Question Teacher,NULL,NULL,0,NULL,NULL 72355,271856,1175166,Yearling Nice Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Nice Question Taxonomist Notable Question Popular Question Famous Question Notable Question Notable Question Popular Question Yearling Great Question Good Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question,NULL,Find bridge days in list of days elixir phoenix framework pI want to find bridge days from list of days The list ppre codedays value 2017 04 01 categories weekend value 2017 04 02 categories weekend value 2017 04 03 categories value 2017 04 04 categories value 2017 04 13 categories bank holiday value 2017 04 14 categories bank holiday value 2017 04 15 categories weekend value 2017 04 16 categories weekend bank holiday code prepThe month as rendered on the webpage pp href https stack imgur com wW2wB png rel nofollow noreferrer img src https stack imgur com wW2wB png alt Screenshot of April in the calendar ppSomebody who wants to maximize his her vacation days would take vacation on the 10th 11th and 12th because that would result in 10 day vacation 8th 17th for an investment of just vacation days ppI want to write function codebridge days days number of invested vacation days code which results in list of those three days code 2017 04 10 2017 04 11 2017 04 12 code when called with codebridge days days code being the number of invested vacation days ppAn other month example pp href https stack imgur com VJhU5 png rel nofollow noreferrer img src https stack imgur com VJhU5 png alt Screenshot of Mai in the calendar pp codebridge days days code would result in code 2017 05 26 code because an investment of vacation day results in days of vacation ppActually codebridge days code would often result in list of lists because many times there are multiple options ppMy approach is to loop through the list comparing and of each day The problem is that it takes for ever to do ppIs there more clever way than using this kind of brute force to solve this problem have the feeling that there might be Elixir Like solution for the given problem which haven found searching for an elegant and fast solution,1,Find bridge days in list of days elixir phoenix framework pI want to find bridge days from list of days The list ppre codedays value 2017 04 01 categories weekend value 2017 04 02 categories weekend value 2017 04 03 categories value 2017 04 04 categories value 2017 04 13 categories bank holiday value 2017 04 14 categories bank holiday value 2017 04 15 categories weekend value 2017 04 16 categories weekend bank holiday code prepThe month as rendered on the webpage pp href https stack imgur com wW2wB png rel nofollow noreferrer img src https stack imgur com wW2wB png alt Screenshot of April in the calendar ppSomebody who wants to maximize his her vacation days would take vacation on the 10th 11th and 12th because that would result in 10 day vacation 8th 17th for an investment of just vacation days ppI want to write function codebridge days days number of invested vacation days code which results in list of those three days code 2017 04 10 2017 04 11 2017 04 12 code when called with codebridge days days code being the number of invested vacation days ppAn other month example pp href https stack imgur com VJhU5 png rel nofollow noreferrer img src https stack imgur com VJhU5 png alt Screenshot of Mai in the calendar pp codebridge days days code would result in code 2017 05 26 code because an investment of vacation day results in days of vacation ppActually codebridge days code would often result in list of lists because many times there are multiple options ppMy approach is to loop through the list comparing and of each day The problem is that it takes for ever to do ppIs there more clever way than using this kind of brute force to solve this problem,NULL 72356,1098763,141281,Informed,NULL,NULL,0,NULL,NULL 72357,479759,141281,Informed,NULL,NULL,0,NULL,NULL 72358,3106514,1347415,NULL,NULL,NULL,0,NULL,NULL 72359,613631,1347415,NULL,NULL,NULL,0,NULL,NULL 72360,336373,221815,Necromancer,NULL,NULL,0,NULL,NULL 72361,132290,56837,Popular Question Yearling Nice Answer Nice Answer Nice Question Good Answer Necromancer swift Nice Question Nice Answer Nice Answer Enlightened Notable Question Notable Question Revival Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Popular Question Nice Answer Nice Answer Yearling xcode Popular Question Good Answer uiwebview ios Nice Question Booster wkwebview Nice Answer Enlightened Necromancer Revival Guru Great Answer Good Answer Popular Question Yearling Populist Guru,NULL,NULL,0,NULL,NULL 72362,55619,158701,Nice Answer Enlightened Nice Question Good Answer Nice Answer Enlightened Famous Question Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Question Nice Answer Famous Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Yearling Notable Question Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened Enlightened Announcer Good Answer database Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72363,402415,1035516,NULL,NULL,NULL,0,NULL,NULL 72364,465480,331559,NULL,NULL,NULL,0,NULL,NULL 72365,19260,223717,Nice Answer Guru Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 72366,336165,411766,Notable Question Famous Question Nice Answer Popular Question Yearling Good Question Caucus Popular Question Yearling Good Answer Notable Question Necromancer Nice Answer Necromancer Necromancer Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 72367,212630,927483,NULL,NULL,NULL,0,NULL,NULL 72368,26545,659248,Enlightened Nice Answer Yearling Guru Nice Answer Nice Answer Enlightened Cleanup Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Guru Enlightened Nice Answer Quorum Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Caucus Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Citizen Patrol Good Answer Good Answer Yearling Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Announcer Nice Answer Nice Answer,NULL,pTim Holy answer is quite correct but ll elaborate bit First let define some terms you may disagree with my definitions but at least you ll know what saying The primary difference between static and dynamic languages in my view is this in static languages expressions have types in dynamic languages values have types ppIn static language there are rules for determining the type of every expression in program The types of expressions dictate the behavior of the program program that doesn admit consistent type to be determined for every expression is considered incorrect and will not compile In the presence of polymorphism the type of an expression may not be single concrete type parametric polymorphism can be thought of as way of letting the same code describe whole family of concretely typed algorithms indexed by the parameters of the types subtype polymorphism can be thought of as introducing limited amount of dynamic behavior into an otherwise static language ppDynamic languages on the other hand do not have rules for assigning types to expressions types are implied by the way data flows through the program emas it executes em In general expressions can potentially produce values of any type at all Because of this type theorists sometimes describe dynamic languages as unityped from the static perspective where type is inherently property of an expression all expressions in dynamic language have the type codeAny code Of course that applying the static notion of type which is only meaningful for expressions to language where the notion of type is only meaningful for values ppJulia is squarely in the dynamic camp types are property of values not expressions The result type of code is determined by how values flow through it when it executes the language does not include any rules for assigning types to expressions before executing them Unlike many dynamic languages however Julia has fairly sophisticated language for talking about types and you can annotate expressions with types For example codex code is an assertion that codex code is value of type codeT code if that is true codex code evaluates to the value of codex code otherwise an error is raised and the expression returns no value Type annotations in method signatures have slightly different meaning instead of asserting the type of an existing value they indicate that the method only applies if the corresponding argument is of the indicated type In either case the following code can safely assume that the value of codex code is of type codeT code pp Aside In some languages with gradual or optional typing type annotations switch the language from dynamic to static mode methods without type annotations are dynamic methods with type annotations are static In static code there are rules for assigning types to all expressions and the code must satisfy those This is not the way Julia works code with type annotations is still dynamic and has the same semantics as code without type annotations ppType inference in languages like OCaml or Haskell is part of how the types of expressions are determined If the compiler cannot infer the type of any expression your program is broken and will not compile These languages all use some form of Hindley Milner type inference which is very clever way to derive the types of expressions from the structure of the code without having to write out explicit types compare this to dynamic languages where the types are implied by execution of the code Much of the time no type annotations are required at all which is quite pleasant compared to the verbose type declarations which can be necessary in languages like and Java This is very different however from dynamic languages like Julia and Python where no type annotations are required simply because it is perfectly acceptable for expressions not to have predetermined type In Hindley Milner languages you may not have to write as many types as in or Java but every expression has predetermined type that the compiler can compute ppJulia compiler does type inference but it is very different it is not necessary for every expression to have an inferrable type The compiler analyzes code to try to predict the types of expressions and uses that information to generate more efficient machine code But if it can determine the type of an expression it no big deal the compiler just emits generic code that will work anyway using run time type information For the most part in Julia type inference is just an optimization your code will work the same way with or without it but with successful type inference it will run lot faster don believe my answer says or implies that type annotations have no semantic significance does it pTim Holy answer is quite correct but ll elaborate bit First let define some terms you may disagree with my definitions but at least you ll know what saying The primary difference between static and dynamic languages in my view is this in static languages expressions have types in dynamic languages values have types ppIn static language there are rules for determining the type of every expression in program The types of expressions dictate the behavior of the program program that doesn admit consistent type to be determined for every expression is considered incorrect and will not compile In the presence of polymorphism the type of an expression may not be single concrete type parametric polymorphism can be thought of as way of letting the same code describe whole family of concretely typed algorithms indexed by the parameters of the types subtype polymorphism can be thought of as introducing limited amount of dynamic behavior into an otherwise static language ppDynamic languages on the other hand do not have rules for assigning types to expressions types are implied by the way data flows through the program emas it executes em In general expressions can potentially produce values of any type at all Because of this type theorists sometimes describe dynamic languages as unityped from the static perspective where type is inherently property of an expression all expressions in dynamic language have the type codeAny code Of course that applying the static notion of type which is only meaningful for expressions to language where the notion of type is only meaningful for values ppJulia is squarely in the dynamic camp types are property of values not expressions The result type of code is determined by how values flow through it when it executes the language does not include any rules for assigning types to expressions before executing them Unlike many dynamic languages however Julia has fairly sophisticated language for talking about types and you can annotate expressions with types For example codex code is an assertion that codex code is value of type codeT code if that is true codex code evaluates to the value of codex code otherwise an error is raised and the expression returns no value Type annotations in method signatures have slightly different meaning instead of asserting the type of an existing value they indicate that the method only applies if the corresponding argument is of the indicated type In either case the following code can safely assume that the value of codex code is of type codeT code pp Aside In some languages with gradual or optional typing type annotations switch the language from dynamic to static mode methods without type annotations are dynamic methods with type annotations are static In static code there are rules for assigning types to all expressions and the code must satisfy those This is not the way Julia works code with type annotations is still dynamic and has the same semantics as code without type annotations ppType inference in languages like OCaml or Haskell is part of how the types of expressions are determined If the compiler cannot infer the type of any expression your program is broken and will not compile These languages all use some form of Hindley Milner type inference which is very clever way to derive the types of expressions from the structure of the code without having to write out explicit types compare this to dynamic languages where the types are implied by execution of the code Much of the time no type annotations are required at all which is quite pleasant compared to the verbose type declarations which can be necessary in languages like and Java This is very different however from dynamic languages like Julia and Python where no type annotations are required simply because it is perfectly acceptable for expressions not to have predetermined type In Hindley Milner languages you may not have to write as many types as in or Java but every expression has predetermined type that the compiler can compute ppJulia compiler does type inference but it is very different it is not necessary for every expression to have an inferrable type The compiler analyzes code to try to predict the types of expressions and uses that information to generate more efficient machine code But if it can determine the type of an expression it no big deal the compiler just emits generic code that will work anyway using run time type information For the most part in Julia type inference is just an optimization your code will work the same way with or without it but with successful type inference it will run lot faster By behaves the same meant has the same semantics but yes could clarify that distinction,1,NULL,None value in Julia julia lang pWhat is the Julia equivalent of the codeNone code value in Python As shown href https docs python org library constants html rel noreferrer here in built in constants pThe Julia equivalent of codeNone code is the constant codenothing code value that is returned by expressions and functions which don have anything interesting to return In both languages this value is not printed at an interactive prompt when an expression evaluates to it but is otherwise just normal value There nothing magical about it other than the printing behavior and the fact that people agree by convention that it is the value one returns when there is nothing interesting to return The type of codenothing code is called codeVoid code after the return type of functions with nothing interesting to return ppJulia type system can also express the concept that an expression cannot produce any value if it throws an error or is part of basic block that cannot execute dead code The type of an expression that can never produce value is the empty union type codeUnion code union of zero types of which no values are instances This is distinct from the type of codenothing code since codenothing code is normal but uninteresting value so it cannot be an instance of codeUnion code pp strongSee Also strong pulli href https docs julialang org en stable manual faq Nothingness and missing values rel noreferrer https docs julialang org en stable manual faq Nothingness and missing values li ul 72369,31854,744256,NULL,NULL,NULL,0,NULL,NULL 72370,37009,222232,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72371,147169,169267,Revival Good Answer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72372,322449,1181102,Yearling Citizen Patrol Caucus Yearling Popular Question Documentation User Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 72373,6965,693140,Custodian Citizen Patrol Custodian Yearling Revival Yearling Good Answer Caucus Necromancer Yearling Guru Announcer Organizer Yearling Enthusiast Documentation User Civic Duty Caucus Yearling Nice Answer Promoter Custodian Nice Question Revival,NULL,NULL,0,NULL,NULL 72374,395769,873007,NULL,NULL,NULL,0,NULL,NULL 72375,609651,738345,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 72376,651219,916275,Commentator Yearling Popular Question Revival Notable Question,NULL,NULL,1,Return custom response with mitmproxy mitmproxy pI trying to return custom response when using mitmproxy with the following code ppre codefrom libmproxy models import HTTPResponsefrom netlib http import Headersdef request context flow if flow request pretty url endswith example com index php resp HTTPResponse 200 OK Headers Content Type text html lt html gt lt body gt hello world lt body gt lt html gt flow reply resp code prepBut the result is not as expected in browser it shows up with http status codes headers och body as clear text ppre code 200 OKContent Type text html lt html gt lt body gt hello world lt body gt lt html gt code prephow can return it as actual http response so that chrome render it as html,NULL 72377,31144,711146,NULL,NULL,NULL,0,NULL,NULL 72378,327923,1108766,NULL,NULL,NULL,0,NULL,NULL 72379,1460851,1146226,NULL,NULL,NULL,0,NULL,NULL 72380,569809,1021858,Informed Autobiographer Census,NULL,NULL,0,NULL,NULL 72381,345836,875735,Necromancer,NULL,NULL,0,NULL,NULL 72382,165446,1551965,Census Custodian Custodian Citizen Patrol Custodian Caucus Documentation User Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 72383,2710398,914657,NULL,NULL,NULL,0,NULL,NULL 72384,483671,864308,NULL,NULL,NULL,0,NULL,NULL 72385,732995,214597,Famous Question Popular Question Notable Question Yearling Necromancer Caucus Yearling Popular Question Nice Answer Good Question Popular Question Good Question Yearling,NULL,h1Simple diff without lib h1pre code Get diff between two dates date1 the oldest date date2 the newest date timeUnit the unit in which you want the diff the diff value in the provided unit public static long getDateDiff Date date1 Date date2 TimeUnit timeUnit long diffInMillies date2 getTime date1 getTime return timeUnit convert diffInMillies TimeUnit MILLISECONDS code prepAnd then can you call ppre codegetDateDiff date1 date2 TimeUnit MINUTES code prepto get the diff of the dates in minutes unit pp codeTimeUnit code is codejava util concurrent TimeUnit code standard Java enum going from nanos to days phrh1Human readable diff without lib h1pre codepublic static Map lt TimeUnit Long gt computeDiff Date date1 Date date2 long diffInMillies date2 getTime date1 getTime List lt TimeUnit gt units new ArrayList lt TimeUnit gt EnumSet allOf TimeUnit class Collections reverse units Map lt TimeUnit Long gt result new LinkedHashMap lt TimeUnit Long gt long milliesRest diffInMillies for TimeUnit unit units long diff unit convert milliesRest TimeUnit MILLISECONDS long diffInMilliesForUnit unit toMillis diff milliesRest milliesRest diffInMilliesForUnit result put unit diff return result code prep href http ideone com 5dXeu6 rel noreferrer http ideone com 5dXeu6 ppThe output is something like codeMap DAYS HOURS MINUTES 46 SECONDS 40 MILLISECONDS MICROSECONDS NANOSECONDS code with the units ordered ppYou just have to convert that map to an user friendly string phrh1Warning h1pThe above code snippets compute simple diff between instants It can cause problems during daylight saving switch like explained in href http tripoverit blogspot fr 2007 07 01 archive html rel noreferrer this post This means if you compute the diff between dates with no time you may have missing day hour ppIn my opinion the date diff is kind of subjective especially on days You may pulli pcount the number of 24h elapsed time day day day 24h lili pcount the number of elapsed time taking care of daylight savings day day 24h but using midnight time and daylight savings it could be day and 23h lili pcount the number of codeday switches code which means day 1pm day 11am day even if the elapsed time is just 2h or 1h if there is daylight saving li ulpMy answer is valid if your definition of date diff on days match the 1st case ph1With JodaTime h1pIf you are using JodaTime you can get the diff for instants millies backed ReadableInstant dates with ppre codeInterval interval new Interval oldInstant new Instant code prepBut you can also get the diff for Local dates times ppre code returns because of the leap year of 366 daysnew Period LocalDate now LocalDate now plusDays 365 PeriodType years getYears this time it returns 5new Period LocalDate now LocalDate now plusDays 365 PeriodType years getYears And you can also use these static methodsYears yearsBetween LocalDate now LocalDate now plusDays 365 getYears code pre the blog post you refer to cannot be viewed unfortunately,0,NULL,NULL 72386,561447,846560,Supporter,NULL,NULL,0,NULL,NULL 72387,753372,1131804,Yearling Announcer Documentation User,NULL,NULL,0,NULL,NULL 72388,285464,78182,Nice Answer Enlightened Nice Question Guru Nice Answer Nice Question Notable Question Popular Question Good Answer Popular Question Good Answer Guru Yearling Popular Question Good Question Notable Question Popular Question Nice Answer Guru Good Answer Popular Question Nice Answer Nice Question Notable Question Good Answer Popular Question Popular Question Guru Notable Question Guru Popular Question Notable Question Notable Question Famous Question Nice Answer Popular Question Notable Question Notable Question Notable Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Good Question Popular Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Nice Answer Nice Question Good Question Popular Question Nice Question Enlightened Popular Question Popular Question Famous Question Yearling Famous Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Good Question Notable Question Good Answer Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Nice Question Notable Question Good Answer Nice Question Socratic Famous Question Good Answer Popular Question Notable Question Nice Question Popular Question Nice Question Nice Question Notable Question Popular Question Notable Question Nice Answer Enlightened Notable Question Notable Question Popular Question Nice Answer Yearling Nice Answer Enlightened Nice Question Nice Question Guru Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72389,455511,149664,Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Good Question Yearling Good Question Popular Question Notable Question Popular Question Great Question Necromancer Nice Question Popular Question Socratic Famous Question Popular Question Famous Question Good Question Nice Question Good Question Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Caucus Notable Question Nice Question Self-Learner Notable Question Nice Question Yearling Notable Question Popular Question Notable Question Popular Question,NULL,pFrom href https developers google com maps articles phpsqlsearch v3 rel noreferrer Google Code FAQ Creating Store Locator with PHP MySQL amp Google Maps pblockquote pHere the SQL statement that will find the closest 20 locations that are within radius of 25 miles to the 37 122 coordinate It calculates the distance based on the latitude longitude of that row and the target latitude longitude and then asks for only rows where the distance value is less than 25 orders the whole query by distance and limits it to 20 results To search by kilometers instead of miles replace 3959 with 6371 blockquotepre codeSELECT id 3959 acos cos radians 37 cos radians lat cos radians lng radians 122 sin radians 37 sin radians lat AS distance FROM markers HAVING distance lt 25 ORDER BY distance LIMIT 20 code pre There now an error on the original google page The code snippet still has 37 and 122 as lat lng in the query but the text now says Here the SQL statement that finds the closest 20 locations within radius of 25 miles to the 33 151 coordinate this makes it pretty confusing,0,NULL,NULL 72390,546984,65502,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 72391,483466,708274,Notable Question Famous Question Nice Question Yearling Favorite Question Famous Question Good Question Popular Question Popular Question Good Question Famous Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Notable Question Notable Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 72392,84442,78374,Nice Question Great Answer Yearling Notable Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Good Question Nice Question Famous Question Good Answer Guru Notable Question Famous Question Guru Nice Question Famous Question Nice Answer Good Question Notable Question Popular Question Famous Question Notable Question Nice Answer Enlightened Favorite Question Nice Answer Good Question Notable Question Popular Question Notable Question Notable Question Guru Notable Question Nice Answer Good Answer Nice Question Good Question Nice Question Notable Question Nice Question Notable Question Popular Question Great Question Great Question Popular Question Famous Question Good Question Popular Question Famous Question Yearling Great Question Popular Question Notable Question Nice Answer Enlightened Notable Question Notable Question Nice Answer Good Answer Favorite Question Guru Great Question Nice Answer Good Answer Notable Question Famous Question Notable Question Popular Question Nice Answer Nice Answer Necromancer Notable Question Notable Question Notable Question Notable Question Famous Question Popular Question Great Question Famous Question Nice Question Nice Answer Notable Question Popular Question Popular Question Nice Question Popular Question Good Answer Good Question Popular Question Nice Question Notable Question Notable Question Nice Question Popular Question Famous Question Favorite Question Nice Question Famous Question Favorite Question Yearling Nice Question Popular Question Great Answer Great Question Notable Question Notable Question Popular Question Famous Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Notable Question Good Question Famous Question Popular Question Stellar Question Notable Question Nice Question Famous Question Nice Question Nice Answer Popular Question Nice Question Popular Question Famous Question,NULL,pAll package managers have many downsides You just have to pick which you can live with ph2History h2p href https www npmjs org rel noreferrer npm started out managing node js modules that why packages go into codenode modules code by default but it works for the front end too when combined with href http browserify org rel noreferrer Browserify or WebPack pp href http bower io rel noreferrer Bower is created solely for the front end and is optimized with that in mind ph2Size of repo h2pnpm is much much larger than bower including general purpose JavaScript like codecountry data code for country information or codesorts code for sorting functions that is usable on the front end or the back end ppBower has much smaller amount of packages ph2Handling of styles etc h2pBower includes styles etc ppnpm is focused on JavaScript Styles are either downloaded seperately or required by something like codenpm sass code or codesass npm code ph2Dependency handling h2pThe biggest difference is that npm does nested dependencies but is flat by default while Bower requires flat dependency tree em puts the burden of dependency resolution on the user em ppA nested dependency tree means that your dependencies can have their own dependencies which can have their own and so on This allows for two modules to require different versions of the same depndency and still work Note since npm v3 the dependency tree will by flat by default saving space and only nest where needed eg if two dependencies need their own version of Underscore ppSome projects use both is that they use Bower for front end packages and npm for developer tools like Yeoman Grunt Gulp JSHint CoffeeScript etc phrh2Resources h2ulli href http maxogden com nested dependencies html rel noreferrer Nested Dependencies Insight into why node modules works the way it does li ul as person who knows nothing about these technologies came here from google don want to sound offensive but could not understand damn thing You give too many things for established,0,NULL,NULL 72393,248693,196722,Informed Teacher Necromancer Supporter Enthusiast Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 72394,168367,528262,Good Answer Good Answer Nice Answer Enlightened mootools Nice Answer Enlightened Caucus Notable Question Yearling javascript Good Answer Nice Answer Caucus Constituent Nice Answer Custodian Announcer Documentation User Yearling Census Caucus Guru Constituent html Great Answer Good Answer Nice Answer Good Answer Announcer Announcer Good Answer,NULL,NULL,0,NULL,NULL 72395,4602366,106545,NULL,NULL,NULL,0,NULL,NULL 72396,22828,526444,Good Question Notable Question Yearling Civic Duty Necromancer Nice Answer Famous Question Caucus Popular Question Popular Question Revival Nice Question Caucus Nice Question Popular Question Notable Question Popular Question Caucus Yearling Autobiographer,NULL,NULL,0,NULL,NULL 72397,113353,389262,Notable Question Nice Question Guru Yearling Caucus Popular Question Popular Question Popular Question Yearling Notable Question Autobiographer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 72398,328906,1073910,Self-Learner,NULL,NULL,0,NULL,NULL 72399,219442,1074102,NULL,NULL,NULL,0,NULL,NULL 72400,718957,417656,Popular Question,NULL,NULL,0,NULL,NULL 72401,26007,733602,NULL,NULL,NULL,0,NULL,NULL 72402,70972,620282,Caucus Yearling,NULL,NULL,0,NULL,NULL 72403,219658,849035,Autobiographer Census Census,NULL,NULL,0,NULL,NULL 72404,26,499456,NULL,NULL,NULL,0,NULL,NULL 72405,190652,467297,Census Notable Question,NULL,NULL,0,NULL,NULL 72406,2439273,467297,Census Notable Question,NULL,NULL,0,NULL,NULL 72407,206999,203856,Electorate Caucus Constituent Good Answer Announcer Yearling Caucus Nice Answer Reviewer Yearling Documentation User,NULL,NULL,0,NULL,NULL 72408,19899,1098626,Yearling,NULL,NULL,0,NULL,NULL 72409,3328165,1098626,Yearling,NULL,NULL,0,NULL,NULL 72410,1682180,398159,Yearling,NULL,NULL,0,NULL,NULL 72411,3650940,1027266,Popular Question,NULL,NULL,0,NULL,NULL 72412,86156,137406,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72413,1507601,299991,Notable Question Favorite Question Notable Question Yearling Famous Question Notable Question Nice Question Famous Question Famous Question Teacher Popular Question Notable Question Enthusiast,NULL,NULL,0,NULL,NULL 72414,853676,939049,NULL,NULL,NULL,0,NULL,NULL 72415,334359,445543,Nice Question Popular Question Popular Question Necromancer Necromancer Nice Question Popular Question Popular Question Nice Question Famous Question Good Answer Nice Question Notable Question Popular Question Nice Answer Notable Question Nice Question Enlightened Nice Answer Enlightened Great Answer Yearling Notable Question Notable Question Stellar Question Popular Question Famous Question Nice Answer Popular Question Nice Answer Enlightened Notable Question Nice Question Famous Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Popular Question Good Answer Guru Famous Question Guru Notable Question Nice Answer Notable Question Necromancer Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Favorite Question Popular Question Nice Answer Notable Question Yearling Nice Question Nice Question Census Notable Question Nice Answer Necromancer Nice Answer Nice Answer Yearling Great Answer Good Answer,NULL,NULL,0,NULL,NULL 72416,1070825,225097,NULL,NULL,NULL,0,NULL,NULL 72417,309702,767876,NULL,NULL,NULL,0,NULL,NULL 72418,89395,429536,NULL,NULL,NULL,0,NULL,NULL 72419,408496,913686,NULL,NULL,NULL,0,NULL,NULL 72420,1072642,135811,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 72421,434478,488981,NULL,NULL,NULL,0,NULL,NULL 72422,166801,430373,NULL,NULL,NULL,0,NULL,NULL 72423,139607,1100731,Supporter Teacher,NULL,NULL,0,NULL,NULL 72424,998100,173036,Popular Question Nice Question Notable Question Yearling Good Question Good Question Famous Question Favorite Question Notable Question Yearling Popular Question Enthusiast Good Answer Yearling Self-Learner Yearling,NULL,NULL,0,NULL,NULL 72425,917684,598153,Teacher Curious Nice Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 72426,755321,1396557,Tumbleweed Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72427,1514271,1065554,NULL,NULL,NULL,0,NULL,NULL 72428,1461998,870139,NULL,NULL,NULL,0,NULL,NULL 72429,36718,889864,Critic Announcer Revival Caucus,NULL,NULL,0,NULL,NULL 72430,75429,145701,Notable Question Notable Question Popular Question Notable Question Yearling Famous Question Nice Question Yearling Nice Answer Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72431,75308,1126786,Yearling,NULL,NULL,0,NULL,NULL 72432,516267,387177,Custodian Excavator Yearling Nice Answer Enlightened Caucus Quorum Census Yearling Caucus soap Citizen Patrol Documentation User Custodian Caucus Self-Learner Announcer Good Answer Yearling ruby,NULL,NULL,0,NULL,NULL 72433,137146,847266,NULL,NULL,NULL,0,NULL,NULL 72434,9101766,444959,Revival Necromancer Editor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72435,405914,444959,Revival Necromancer Editor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72436,31065,1017255,NULL,NULL,NULL,0,NULL,NULL 72437,57449,201863,Nice Answer Enlightened Nice Answer Enlightened Notable Question sprite-kit xcode Nice Answer Enlightened Guru Good Answer Notable Question Good Question Nice Answer Enlightened Notable Question Nice Answer Good Answer Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Good Question Nice Answer Enlightened Nice Answer Nice Answer Notable Question Nice Answer Enlightened Popular Question Yearling Popular Question Nice Answer Enlightened Good Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Good Answer Good Question Popular Question Nice Answer Yearling Nice Question Popular Question Famous Question Nice Answer Enlightened Announcer Popular Question Popular Question Famous Question Notable Question Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 72438,415540,462816,Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72439,251065,458387,NULL,NULL,NULL,0,NULL,NULL 72440,204067,1249398,Notable Question Yearling,NULL,NULL,0,NULL,NULL 72441,381971,1064142,NULL,NULL,NULL,0,NULL,NULL 72442,1968047,1071244,NULL,NULL,NULL,0,NULL,NULL 72443,136139,328146,NULL,NULL,NULL,0,NULL,NULL 72444,5351,676980,Informed Editor,NULL,NULL,0,NULL,NULL 72445,653227,895997,Notable Question Famous Question Famous Question Good Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 72446,89504,835347,NULL,NULL,NULL,0,NULL,NULL 72447,287133,1281104,NULL,NULL,NULL,0,NULL,NULL 72448,3084,828646,NULL,NULL,NULL,0,NULL,NULL 72449,577140,480550,NULL,NULL,NULL,0,NULL,NULL 72450,1227535,471146,NULL,NULL,NULL,0,NULL,NULL 72451,104130,1239032,Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 72452,233641,469373,NULL,NULL,NULL,0,NULL,NULL 72453,698795,477311,Popular Question Yearling Nice Question Nice Question Notable Question Famous Question Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72454,5471908,1354404,NULL,NULL,NULL,0,NULL,NULL 72455,357405,531397,NULL,NULL,NULL,0,NULL,NULL 72456,465900,387698,NULL,NULL,NULL,0,NULL,NULL 72457,2033,365877,Revival Yearling Self-Learner Notable Question Yearling Commentator Editor Nice Answer Yearling Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 72458,1550730,978592,NULL,NULL,NULL,0,NULL,NULL 72459,1049306,1424650,NULL,NULL,NULL,0,NULL,NULL 72460,7059,83160,Announcer Nice Question Yearling Revival Revival Revival Revival Famous Question Announcer Caucus Announcer Yearling Announcer Nice Question Good Answer Notable Question Yearling Excavator Announcer Announcer,NULL,NULL,0,NULL,NULL 72461,77988,79071,NULL,NULL,NULL,0,NULL,NULL 72462,11224,104287,Famous Question Famous Question Yearling Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 72463,489938,1301321,Informed,NULL,NULL,0,NULL,NULL 72464,241656,758140,NULL,NULL,NULL,0,NULL,NULL 72465,48880,790540,NULL,NULL,NULL,0,NULL,NULL 72466,2456956,932171,NULL,NULL,NULL,0,NULL,NULL 72467,131509,313854,NULL,NULL,NULL,0,NULL,NULL 72468,509003,383026,NULL,NULL,NULL,0,NULL,NULL 72469,527396,840060,NULL,NULL,NULL,0,NULL,NULL 72470,527397,564733,NULL,NULL,NULL,0,NULL,NULL 72471,250255,716075,Nice Answer Yearling Revival Disciplined Yearling Civic Duty Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 72472,379473,597178,NULL,NULL,NULL,0,NULL,NULL 72473,203348,1433597,Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72474,19865,339479,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 72475,705192,1031941,NULL,NULL,NULL,0,NULL,NULL 72476,68724,752035,NULL,NULL,NULL,0,NULL,NULL 72477,159171,479586,NULL,NULL,NULL,0,NULL,NULL 72478,2160329,1044928,NULL,NULL,NULL,0,NULL,NULL 72479,448377,88112,Notable Question Popular Question Popular Question Yearling Nice Answer Enlightened Popular Question Nice Question Caucus Custodian Famous Question Nice Answer Documentation User Yearling Famous Question Caucus Good Question Famous Question Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 72480,139365,256010,NULL,NULL,NULL,0,NULL,NULL 72481,514068,1339834,Nice Question Popular Question Notable Question Curious Caucus,NULL,NULL,0,NULL,NULL 72482,35673,983834,NULL,NULL,NULL,0,NULL,NULL 72483,5603853,1201969,NULL,NULL,NULL,0,NULL,NULL 72484,204089,1201969,NULL,NULL,NULL,0,NULL,NULL 72485,3001942,1201969,NULL,NULL,NULL,0,NULL,NULL 72486,101311,1401913,Teacher Informed Organizer Supporter Revival Revival,NULL,NULL,0,NULL,NULL 72487,134086,6573,NULL,NULL,NULL,0,NULL,NULL 72488,8430,529913,NULL,NULL,NULL,0,NULL,NULL 72489,270605,592246,NULL,NULL,NULL,0,NULL,NULL 72490,192645,899255,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 72491,1496365,899255,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 72492,643993,593799,Necromancer Commentator,NULL,NULL,0,NULL,NULL 72493,1517966,1006572,Nice Question Popular Question Teacher Popular Question,NULL,NULL,0,NULL,NULL 72494,85328,1065394,Yearling Informed,NULL,NULL,0,NULL,NULL 72495,725874,476746,Necromancer,NULL,NULL,0,NULL,NULL 72496,35306,213730,Notable Question Nice Question Popular Question Popular Question Popular Question Yearling Popular Question Famous Question Famous Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 72497,369753,360672,NULL,NULL,NULL,0,NULL,NULL 72498,28773,206393,Excavator,NULL,NULL,0,NULL,NULL 72499,115991,1109619,NULL,NULL,NULL,0,NULL,NULL 72500,146647,604294,Yearling Great Answer Nice Answer Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 72501,308527,427081,Critic,NULL,NULL,0,NULL,NULL 72502,41638,870474,NULL,NULL,NULL,0,NULL,NULL 72503,83324,447022,NULL,NULL,NULL,0,NULL,NULL 72504,611495,1223019,NULL,NULL,NULL,0,NULL,NULL 72505,151383,811010,Popular Question Revival Yearling Supporter Citizen Patrol,NULL,NULL,0,NULL,NULL 72506,262168,457059,Nice Question Revival Notable Question Notable Question Great Answer Good Answer Favorite Question Famous Question Nice Answer Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Necromancer Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Nice Question Notable Question Necromancer Guru Announcer Necromancer Popular Question Yearling Electorate Famous Question Custodian Custodian Caucus Necromancer Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72507,1043438,993018,Announcer Announcer,NULL,NULL,0,NULL,NULL 72508,574081,573957,Nice Answer Yearling Good Answer Notable Question Yearling Populist Custodian Notable Question,NULL,NULL,0,NULL,NULL 72509,116009,1009292,NULL,NULL,NULL,0,NULL,NULL 72510,96207,23760,Suffrage Vox Populi Tag Editor Custodian Notable Question Nice Answer Enlightened Notable Question Yearling Popular Question Nice Answer Good Answer Pundit Famous Question Guru Yearling Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 72511,517215,447469,Popular Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 72512,3915663,544588,NULL,NULL,NULL,0,NULL,NULL 72513,44090,224129,Great Answer Guru Notable Question Famous Question Nice Question Yearling Nice Answer Enlightened Great Answer Notable Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 72514,399659,754697,Yearling Nice Answer Nice Answer Yearling Caucus Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72515,57891,444955,Custodian Custodian Citizen Patrol Yearling Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 72516,858263,1398743,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 72517,98103,521620,Nice Answer,NULL,NULL,0,NULL,NULL 72518,3811457,521620,Nice Answer,NULL,NULL,0,NULL,NULL 72519,1043503,565336,Yearling Necromancer Favorite Question Popular Question Great Question Notable Question Popular Question Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 72520,32671,718952,NULL,NULL,NULL,0,NULL,NULL 72521,571134,273343,Caucus Custodian Critic Informed Citizen Patrol Custodian Custodian Documentation User Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72522,570916,914232,Famous Question,NULL,NULL,0,NULL,NULL 72523,1573884,287030,Notable Question Yearling Revival Autobiographer Good Question Notable Question Necromancer Yearling Necromancer Popular Question Nice Question Announcer Yearling,NULL,NULL,0,NULL,NULL 72524,298549,593552,NULL,NULL,NULL,0,NULL,NULL 72525,327424,361534,NULL,NULL,NULL,0,NULL,NULL 72526,69277,1005553,NULL,NULL,NULL,0,NULL,NULL 72527,203277,156415,Popular Question Popular Question Yearling Nice Question Census Nice Question Nice Answer Enlightened Necromancer Announcer Popular Question Yearling Documentation User Popular Question Popular Question Great Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72528,75108,1368274,NULL,NULL,NULL,0,NULL,NULL 72529,801792,540948,NULL,NULL,NULL,0,NULL,NULL 72530,563960,540948,NULL,NULL,NULL,0,NULL,NULL 72531,117680,861527,NULL,NULL,NULL,0,NULL,NULL 72532,855884,1084295,NULL,NULL,NULL,0,NULL,NULL 72533,1124481,536138,Famous Question Yearling Commentator Critic Excavator Yearling Good Question Nice Answer Enlightened Civic Duty Caucus Yearling,NULL,NULL,0,NULL,NULL 72534,447714,1005732,NULL,NULL,NULL,0,NULL,NULL 72535,47561,521502,NULL,NULL,,0,, 72536,185763,251696,NULL,NULL,NULL,0,NULL,NULL 72537,536599,831770,NULL,NULL,NULL,0,NULL,NULL 72538,216190,1226118,Yearling,NULL,NULL,0,NULL,NULL 72539,66343,261061,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72540,65049,1092067,NULL,NULL,NULL,0,NULL,NULL 72541,115286,1033759,Supporter,NULL,NULL,0,NULL,NULL 72542,113587,1052539,Popular Question Famous Question Investor Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 72543,351900,802472,NULL,NULL,NULL,0,NULL,NULL 72544,1176890,1305673,NULL,NULL,NULL,0,NULL,NULL 72545,7891750,1009649,NULL,NULL,NULL,0,NULL,NULL 72546,102318,1009649,NULL,NULL,NULL,0,NULL,NULL 72547,92277,1386822,NULL,NULL,NULL,0,NULL,NULL 72548,2972434,970737,NULL,NULL,NULL,0,NULL,NULL 72549,16707,603497,Student Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72550,1052285,767328,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 72551,82940,1279791,NULL,NULL,NULL,0,NULL,NULL 72552,7102004,1321758,Nice Answer Yearling Citizen Patrol Custodian Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72553,81864,1321758,Nice Answer Yearling Citizen Patrol Custodian Custodian Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72554,151480,1351020,NULL,NULL,NULL,0,NULL,NULL 72555,11362,152119,Notable Question Yearling Nice Question Good Question Notable Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 72556,175238,239846,NULL,NULL,NULL,0,NULL,NULL 72557,428481,455013,Nice Answer Excavator,NULL,NULL,0,NULL,NULL 72558,789123,608330,Supporter,NULL,NULL,0,NULL,NULL 72559,6944,475079,NULL,NULL,NULL,0,NULL,NULL 72560,256564,804309,NULL,NULL,NULL,0,NULL,NULL 72561,45445,346343,NULL,NULL,NULL,0,NULL,NULL 72562,384855,1127125,NULL,NULL,NULL,0,NULL,NULL 72563,877288,886544,Popular Question,NULL,NULL,0,NULL,NULL 72564,1963175,533585,Revival Custodian Caucus Yearling Popular Question Enthusiast Good Answer Yearling Notable Question Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 72565,889798,533585,Revival Custodian Caucus Yearling Popular Question Enthusiast Good Answer Yearling Notable Question Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 72566,2049722,155862,Good Answer Guru Yearling Enlightened Yearling Nice Answer Guru Yearling Great Answer,NULL,NULL,0,NULL,NULL 72567,353272,1324875,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72568,1540178,1370022,Tag Editor Yearling,NULL,NULL,0,NULL,NULL 72569,255917,454507,NULL,NULL,NULL,0,NULL,NULL 72570,91637,1050666,NULL,NULL,NULL,0,NULL,NULL 72571,10009,178043,Yearling Famous Question Favorite Question Great Question Yearling Tumbleweed Popular Question Curious,NULL,NULL,0,NULL,NULL 72572,1161894,931078,Enthusiast Census Notable Question,NULL,NULL,0,NULL,NULL 72573,136302,429688,NULL,NULL,NULL,0,NULL,NULL 72574,9756,899803,NULL,NULL,NULL,0,NULL,NULL 72575,1061168,830576,NULL,NULL,NULL,0,NULL,NULL 72576,25867,88258,Good Answer Yearling,NULL,NULL,0,NULL,NULL 72577,302927,1857,NULL,NULL,NULL,0,NULL,NULL 72578,17432,759667,NULL,NULL,NULL,0,NULL,NULL 72579,1209339,224398,Yearling,NULL,NULL,0,NULL,NULL 72580,318352,941729,Popular Question Popular Question Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 72581,11927,1121100,NULL,NULL,NULL,0,NULL,NULL 72582,295018,989033,NULL,NULL,NULL,0,NULL,NULL 72583,282011,217754,Nice Answer django Nice Answer Enlightened Good Answer Notable Question Yearling Custodian Nice Answer Nice Question Custodian Custodian Famous Question Yearling Nice Answer Custodian Notable Question Yearling,NULL,NULL,0,NULL,NULL 72584,16928,787115,Revival Yearling Good Answer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72585,42867,186093,Necromancer Yearling Talkative Revival Necromancer Nice Answer Yearling Unsung Hero Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 72586,246650,573203,Good Question,NULL,NULL,0,NULL,NULL 72587,501936,147226,Notable Question Notable Question Nice Question Nice Question Notable Question Famous Question Self-Learner Famous Question Notable Question,NULL,NULL,0,NULL,NULL 72588,863549,391858,NULL,NULL,NULL,0,NULL,NULL 72589,722438,957662,Yearling Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72590,236483,419831,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 72591,1195153,920744,NULL,NULL,NULL,0,NULL,NULL 72592,292097,814008,Autobiographer Tumbleweed Commentator Curious,NULL,NULL,0,NULL,NULL 72593,257133,236255,Good Answer Nice Answer Nice Answer Nice Answer Enlightened Necromancer Popular Question Populist Necromancer Nice Answer Enlightened Popular Question Nice Answer Announcer Notable Question Notable Question Nice Answer Popular Question Popular Question Yearling Popular Question Nice Answer Nice Answer Nice Question Nice Answer Notable Question Popular Question Good Answer Nice Question Popular Question Necromancer Necromancer Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 72594,293322,1483656,NULL,NULL,NULL,0,NULL,NULL 72595,338799,246760,Informed,NULL,NULL,0,NULL,NULL 72596,72202,218779,NULL,NULL,NULL,0,NULL,NULL 72597,135450,365579,NULL,NULL,NULL,0,NULL,NULL 72598,150608,735653,NULL,NULL,NULL,0,NULL,NULL 72599,3249169,672128,Revival,NULL,NULL,0,NULL,NULL 72600,2054597,672128,Revival,NULL,NULL,0,NULL,NULL 72601,426874,171959,NULL,NULL,NULL,0,NULL,NULL 72602,4185,331067,NULL,NULL,NULL,0,NULL,NULL 72603,235045,598952,NULL,NULL,NULL,0,NULL,NULL 72604,207887,11721,Great Answer Favorite Question Yearling Nice Answer Nice Answer Yearling Necromancer Great Answer Nice Answer Caucus Great Answer Yearling,NULL,NULL,0,NULL,NULL 72605,247637,582271,NULL,NULL,NULL,0,NULL,NULL 72606,331417,468536,Yearling Nice Answer Enlightened Revival Custodian Custodian,NULL,NULL,0,NULL,NULL 72607,200355,296955,Scholar,NULL,NULL,0,NULL,NULL 72608,1777895,892558,NULL,NULL,NULL,0,NULL,NULL 72609,483035,959345,Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72610,290058,959345,Necromancer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72611,21501,43217,Popular Question Nice Question Famous Question Nice Answer Enlightened Famous Question Great Question Revival Nice Question Good Question Notable Question Yearling Announcer Popular Question Popular Question Nice Question Popular Question Yearling Announcer Announcer Popular Question Notable Question Revival Popular Question Notable Question Nice Answer Popular Question Famous Question,NULL,Best practices around generating OAuth tokens security encryption oauth hash pI realize that the href http oauth net core 0a rfc section rel nofollow noreferrer OAuth spec doesn specify anything about the origin of the ConsumerKey ConsumerSecret AccessToken RequestToken TokenSecret or Verifier code but curious if there are any best practices for creating significantly secure tokens especially Token Secret combinations ppAs see it there are few approaches to creating the tokens polliJust use random bytes store in DB associated with consumer user liliHash some user consumer specific data store in DB associated with consumer user liliEncrypt user consumer specific data li olpAdvantages to are the database is the only source of the information which seems the most secure It would be harder to run an attack against than or ppHashing real data would allow re generating the token from presumably already known data Might not really provide any advantages to since would need to store lookup anyway More CPU intensive than ppEncrypting real data would allow decrypting to know information This would require less storage amp potentially fewer lookups than amp but potentially less secure as well ppAre there any other approaches advantages disadvantages that should be considered pp strongEDIT strong another consideration is that there MUST be some sort of random value in the Tokens as there must exist the ability to expire and reissue new tokens so it must not be only comprised of real data pp strongFollow On Questions strong ppIs there minimum Token length to make significantly cryptographically secure As understand it longer Token Secrets would create more secure signatures Is this understanding correct ppAre there advantages to using particular encoding over another from hashing perspective For instance see lot of APIs using hex encodings GUID strings In the OAuth signing algorithm the Token is used as string With hex string the available character set would be much smaller more predictable than say with Base64 encoding It seems to me that for two strings of equal length the one with the larger character set would have better wider hash distribution This seems to me that it would improve the security Is this assumption correct ppThe OAuth spec raises this very issue in href http oauth net core 0a rfc section 11 10 rel nofollow noreferrer 11 10 Entropy of Secrets It has been years since asked the question honestly can remember Best practices around generating OAuth tokens security encryption oauth hash pI realize that the href http oauth net core 0a rfc section rel nofollow noreferrer OAuth spec doesn specify anything about the origin of the ConsumerKey ConsumerSecret AccessToken RequestToken TokenSecret or Verifier code but curious if there are any best practices for creating significantly secure tokens especially Token Secret combinations ppAs see it there are few approaches to creating the tokens polliJust use random bytes store in DB associated with consumer user liliHash some user consumer specific data store in DB associated with consumer user liliEncrypt user consumer specific data li olpAdvantages to are the database is the only source of the information which seems the most secure It would be harder to run an attack against than or ppHashing real data would allow re generating the token from presumably already known data Might not really provide any advantages to since would need to store lookup anyway More CPU intensive than ppEncrypting real data would allow decrypting to know information This would require less storage amp potentially fewer lookups than amp but potentially less secure as well ppAre there any other approaches advantages disadvantages that should be considered pp strongEDIT strong another consideration is that there MUST be some sort of random value in the Tokens as there must exist the ability to expire and reissue new tokens so it must not be only comprised of real data pp strongFollow On Questions strong ppIs there minimum Token length to make significantly cryptographically secure As understand it longer Token Secrets would create more secure signatures Is this understanding correct ppAre there advantages to using particular encoding over another from hashing perspective For instance see lot of APIs using hex encodings GUID strings In the OAuth signing algorithm the Token is used as string With hex string the available character set would be much smaller more predictable than say with Base64 encoding It seems to me that for two strings of equal length the one with the larger character set would have better wider hash distribution This seems to me that it would improve the security Is this assumption correct ppThe OAuth spec raises this very issue in href http oauth net core 0a rfc section 11 10 rel nofollow noreferrer 11 10 Entropy of Secrets Reading again hashing and encryption were two different approaches suggested Encryption would allow server to get some info without DB lookup It was one trade off among many,0,NULL,NULL 72612,251030,847286,NULL,NULL,NULL,0,NULL,NULL 72613,63449,1425486,NULL,NULL,NULL,0,NULL,NULL 72614,75543,970346,Necromancer Necromancer Nice Answer Yearling Nice Answer Revival Announcer Announcer Caucus Necromancer Yearling Good Answer Necromancer Announcer Nice Answer Organizer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72615,6328,228315,Notable Question Necromancer Yearling Nice Answer Necromancer Notable Question Favorite Question Good Answer Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 72616,54798,270041,Popular Question Yearling Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 72617,33742,1212209,Popular Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 72618,559001,1452428,NULL,NULL,NULL,0,NULL,NULL 72619,74837,14648,Guru Nice Answer Great Answer Nice Answer Nice Answer Notable Question Yearling Populist Guru Good Answer Yearling Great Answer Great Answer Famous Question Good Question Yearling Good Answer,NULL,pThis is way to traverse every file and directory in directory tree ppre codeimport osfor dirname dirnames filenames in os walk print path to all subdirectories first for subdirname in dirnames print os path join dirname subdirname print path to all filenames for filename in filenames print os path join dirname filename Advanced usage editing the dirnames list will stop os walk from recursing into there if git in dirnames don go into any git directories dirnames remove git code pre You ve misunderstood You ve given code snippet for not printing out the name of the git directory Removing it from dirnames causes the code to not recurse into the git subdirectory,0,NULL,NULL 72620,59620,99646,Yearling Necromancer Good Answer Citizen Patrol,NULL,NULL,0,NULL,NULL 72621,895264,1309246,NULL,NULL,NULL,0,NULL,NULL 72622,32863,2712,Yearling Revival Popular Question Necromancer Necromancer Nice Answer Enlightened Nice Question Yearling Popular Question Good Answer,NULL,NULL,0,NULL,NULL 72623,143639,2998,Guru Nice Answer objective-c Nice Answer Enlightened Nice Answer Enlightened Nice Question Good Answer Popular Question Nice Answer Nice Answer Guru Yearling Announcer Nice Answer Good Answer Guru Caucus Constituent Announcer Custodian Nice Answer Enlightened core-data Notable Question Popular Question Guru Great Answer Yearling Popular Question Announcer Good Answer Great Answer Nice Answer Notable Question Nice Answer Yearling Popular Question Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 72624,4940778,886874,Popular Question Tumbleweed Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 72625,3122509,906437,Popular Question Excavator Famous Question,NULL,NULL,0,NULL,NULL 72626,313423,906437,Popular Question Excavator Famous Question,NULL,NULL,0,NULL,NULL 72627,18396,629147,Informed,NULL,NULL,0,NULL,NULL 72628,36559,336515,Yearling,NULL,NULL,0,NULL,NULL 72629,684183,201836,NULL,NULL,NULL,0,NULL,NULL 72630,768512,362582,NULL,NULL,NULL,0,NULL,NULL 72631,6515526,821471,Civic Duty Caucus Constituent Famous Question Caucus Nice Question Custodian Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 72632,71840,821471,Civic Duty Caucus Constituent Famous Question Caucus Nice Question Custodian Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 72633,1143400,51488,Yearling Custodian Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 72634,144624,515646,NULL,NULL,NULL,0,NULL,NULL 72635,51114,83609,Yearling Guru Good Question Revival Good Question Guru Yearling Nice Answer Popular Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 72636,251833,227863,Famous Question Famous Question Notable Question Nice Answer Favorite Question Pundit Popular Question Popular Question Nice Answer Favorite Question Great Question Good Answer Notable Question Popular Question Notable Question Nice Answer Enlightened Popular Question Good Answer Good Question Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question Good Answer Nice Question Popular Question Yearling Notable Question Nice Question Nice Answer Popular Question css Good Question Notable Question Popular Question Famous Question Notable Question Popular Question Notable Question Popular Question Good Question Populist Popular Question Popular Question Good Question Yearling Nice Answer Notable Question Good Answer Popular Question Famous Question Popular Question Famous Question Notable Question Good Question Popular Question Nice Answer Nice Question Custodian Revival,NULL,NULL,0,NULL,NULL 72637,573933,859858,Popular Question Civic Duty Yearling Caucus Announcer Yearling Great Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72638,832697,813905,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72639,988410,227352,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72640,311293,1261808,NULL,NULL,NULL,0,NULL,NULL 72641,259098,893854,Autobiographer Necromancer Nice Question Yearling Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Civic Duty Explainer Populist Caucus Yearling Fanatic Notable Question Custodian Caucus Nice Question Yearling Excavator,NULL,NULL,0,NULL,NULL 72642,375372,566214,NULL,NULL,NULL,0,NULL,NULL 72643,132311,248670,Popular Question,NULL,NULL,0,NULL,NULL 72644,893538,237684,NULL,NULL,NULL,0,NULL,NULL 72645,277307,1005914,NULL,NULL,NULL,0,NULL,NULL 72646,96155,343815,Nice Question Notable Question Nice Answer Yearling Popular Question Notable Question Nice Question Good Answer Popular Question Tumbleweed Yearling Popular Question Popular Question Notable Question Famous Question Guru Yearling Excavator Custodian Custodian,NULL,NULL,0,NULL,NULL 72647,4001376,343815,Nice Question Notable Question Nice Answer Yearling Popular Question Notable Question Nice Question Good Answer Popular Question Tumbleweed Yearling Popular Question Popular Question Notable Question Famous Question Guru Yearling Excavator Custodian Custodian,NULL,NULL,0,NULL,NULL 72648,99021,682185,Popular Question Yearling,NULL,NULL,0,NULL,NULL 72649,11861,327455,Yearling Editor Commentator Yearling,NULL,NULL,0,NULL,NULL 72650,297782,879292,NULL,NULL,NULL,0,NULL,NULL 72651,4954,1186625,Yearling,NULL,NULL,0,NULL,NULL 72652,149805,624272,Notable Question Revival Notable Question Notable Question,NULL,NULL,0,NULL,NULL 72653,398829,548502,NULL,NULL,NULL,0,NULL,NULL 72654,80427,459620,NULL,NULL,NULL,0,NULL,NULL 72655,2897862,1171405,Popular Question Notable Question Popular Question Inquisitive Popular Question Popular Question Nice Question Yearling Self-Learner Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Nice Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 72656,240412,118135,Teacher,NULL,NULL,0,NULL,NULL 72657,71732,481649,Commentator Necromancer Yearling Revival Organizer Yearling Curious Yearling Self-Learner Citizen Patrol Yearling Necromancer Popular Question Tumbleweed Popular Question Popular Question Necromancer Nice Answer Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 72658,17408,754586,NULL,NULL,NULL,0,NULL,NULL 72659,206282,1418098,Commentator Informed Autobiographer Tumbleweed Critic Yearling Organizer Yearling Custodian Caucus Constituent Yearling Necromancer Nice Answer Popular Question Caucus Yearling Popular Question Documentation User Good Answer Populist Yearling Caucus Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 72660,100211,611822,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72661,233121,195656,Nice Question Famous Question Civic Duty Yearling,NULL,NULL,0,NULL,NULL 72662,364740,849112,NULL,NULL,NULL,0,NULL,NULL 72663,382661,819644,NULL,NULL,NULL,0,NULL,NULL 72664,894676,1228807,Nice Answer Yearling Good Answer Popular Question Popular Question Popular Question Necromancer Nice Answer Popular Question Custodian Popular Question Revival Good Answer android Yearling Nice Answer Good Answer Popular Question Notable Question Yearling Civic Duty Custodian,NULL,NULL,0,NULL,NULL 72665,581854,766251,Famous Question Nice Question Notable Question Nice Question Self-Learner Famous Question Yearling Notable Question Famous Question Popular Question Good Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Yearling Famous Question Notable Question Popular Question Famous Question Notable Question Good Question Famous Question Notable Question Popular Question Famous Question Popular Question Yearling Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 72666,210228,578833,NULL,NULL,NULL,0,NULL,NULL 72667,61168,250389,Yearling,NULL,NULL,0,NULL,NULL 72668,662218,587300,Supporter Scholar Editor,NULL,NULL,0,NULL,NULL 72669,316852,809022,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 72670,156627,290678,NULL,NULL,NULL,0,NULL,NULL 72671,9074825,732703,NULL,NULL,NULL,0,NULL,NULL 72672,1051282,732703,NULL,NULL,NULL,0,NULL,NULL 72673,8689274,732703,NULL,NULL,NULL,0,NULL,NULL 72674,1166300,1000105,NULL,NULL,NULL,0,NULL,NULL 72675,822764,1510365,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 72676,597392,570124,NULL,NULL,NULL,0,NULL,NULL 72677,159278,912811,NULL,NULL,NULL,0,NULL,NULL 72678,277587,1210520,.net Yearling Reviewer Announcer Caucus Yearling Nice Answer Good Answer Caucus Nice Answer Enlightened c# Documentation User Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 72679,68893,498662,NULL,NULL,NULL,0,NULL,NULL 72680,83113,6440,Nice Answer Guru Great Answer Nice Answer Good Answer Guru Good Answer Yearling Nice Answer Notable Question Popular Question Nice Answer Enlightened Yearling Good Question Great Answer Guru Good Answer Nice Answer Famous Question Yearling,NULL,pYou can use codedocument getElementById divId className split code to get you an array of class names ppThen you can iterate and find the one you want ppre codevar classList document getElementById divId className split for var lt classList length if classList someClass do something code prepjQuery does not really help you here ppre codevar classList divId attr class split each classList function index item if item someClass do something code pre Konkov note the date prop was not pYou can use codedocument getElementById divId className split code to get you an array of class names ppThen you can iterate and find the one you want ppre codevar classList document getElementById divId className split for var lt classList length if classList someClass do something code prepjQuery does not really help you here ppre codevar classList divId attr class split each classList function index item if item someClass do something code pre depends what version of jq they are using problem no with SO,0,NULL,NULL 72681,8293,223159,Nice Answer,NULL,NULL,0,NULL,NULL 72682,4361,388669,NULL,NULL,NULL,0,NULL,NULL 72683,278321,106801,Yearling Stellar Question Popular Question Favorite Question Famous Question Good Answer Popular Question Popular Question Yearling Popular Question Famous Question Nice Question Good Question Nice Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 72684,202765,420957,NULL,NULL,NULL,0,NULL,NULL 72685,686772,561637,Critic Yearling Excavator Caucus Populist Commentator Yearling Curious Self-Learner Caucus Constituent Good Answer Autobiographer Caucus,NULL,NULL,0,NULL,NULL 72686,190397,801978,NULL,NULL,NULL,0,NULL,NULL 72687,199939,1578,Excavator Yearling Proofreader Great Question Nice Answer Notable Question Good Answer Nice Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72688,452716,15947,Famous Question Good Question Notable Question Yearling Nice Answer Enlightened Great Question Famous Question Favorite Question Favorite Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Inquisitive Custodian Nice Answer Famous Question Yearling,NULL,pExpanding on great answer here method for generating an arced path ppre codefunction polarToCartesian centerX centerY radius angleInDegrees var angleInRadians angleInDegrees 90 Math PI 180 return centerX radius Math cos angleInRadians centerY radius Math sin angleInRadians function describeArc radius startAngle endAngle var start polarToCartesian radius endAngle var end polarToCartesian radius startAngle var largeArcFlag endAngle startAngle lt 180 var start start radius radius largeArcFlag end end join return code prepto use ppre codedocument getElementById arc1 setAttribute describeArc 200 400 100 180 code prepand in your html ppre code lt path id arc1 fill none stroke 446688 stroke width 20 gt code prep href http jsbin com quhujowota edit html js output Live demo This only works correctly when endAngle startAngle had to add while endAngle startAngle endAngle 360 There may be more clever way to handle it,0,NULL,NULL 72689,395697,606674,Yearling Nice Answer Nice Answer Guru Nice Answer Yearling Tag Editor Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72690,90010,638931,Famous Question,NULL,NULL,0,NULL,NULL 72691,68134,289156,Nice Question Notable Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 72692,145847,575905,NULL,NULL,NULL,0,NULL,NULL 72693,309313,206914,ruby-on-rails-3 Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Nice Answer Great Answer Good Answer Yearling Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 72694,138323,806925,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 72695,1105378,1485875,Popular Question,NULL,NULL,0,NULL,NULL 72696,348115,296829,Nice Answer Famous Question Nice Question Yearling Necromancer Popular Question Popular Question Informed Announcer Great Answer Necromancer Revival Revival Nice Question Yearling Notable Question Good Answer Nice Answer Necromancer Announcer Yearling Good Question Necromancer,NULL,pUse this ppre codefind type print0 tar czvf backup tar gz null code prepIt will pullideal with files with spaces newlines leading dashes and other funniness lilihandle an unlimited number of files liliwon repeatedly overwrite your backup tar gz like using codetar code with codexargs code will do when you have large number of files li ulpAlso see pulli href http www gnu org software tar manual tar html SEC107 rel noreferrer GNU tar manual lili href https stackoverflow com questions 2597875 how can build tar from stdin How can build tar from stdin search for null li ul Sure thing it parameter to and it means read the file names from standard input If you give single dash as file name for files from you specify either files from or then the file names are read from standard input pUse this ppre codefind type print0 tar czvf backup tar gz null code prepIt will pullideal with files with spaces newlines leading dashes and other funniness lilihandle an unlimited number of files liliwon repeatedly overwrite your backup tar gz like using codetar code with codexargs code will do when you have large number of files li ulpAlso see pulli href http www gnu org software tar manual tar html SEC107 rel noreferrer GNU tar manual lili href https stackoverflow com questions 2597875 how can build tar from stdin How can build tar from stdin search for null li ul carstensen it handles the null separated file names generated by the print0 arg to find which makes all this able to handle filenames with spaces newlines etc,0,NULL,NULL 72697,58948,819191,NULL,NULL,NULL,0,NULL,NULL 72698,67204,1913,Nice Answer Enlightened Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 72699,63352,172106,Electorate Notable Question Necromancer,NULL,NULL,0,NULL,NULL 72700,10437697,1404902,Notable Question,NULL,NULL,0,NULL,NULL 72701,1342886,200434,Great Answer Great Answer python sql Good Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened sql-server Nice Answer Yearling Great Answer Custodian Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 72702,598149,843718,Popular Question,NULL,NULL,0,NULL,NULL 72703,496872,1483113,NULL,NULL,NULL,0,NULL,NULL 72704,2211828,817760,NULL,NULL,NULL,0,NULL,NULL 72705,3441,480822,NULL,NULL,NULL,0,NULL,NULL 72706,1521915,1173736,NULL,NULL,NULL,0,NULL,NULL 72707,40271,15526,Caucus Constituent Yearling Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 72708,206806,803857,Notable Question,NULL,NULL,0,NULL,NULL 72709,284090,459703,NULL,NULL,NULL,0,NULL,NULL 72710,160488,415961,NULL,NULL,NULL,0,NULL,NULL 72711,99621,711766,Famous Question,NULL,NULL,0,NULL,NULL 72712,29285,1085614,NULL,NULL,NULL,0,NULL,NULL 72713,607936,852561,Notable Question Popular Question Popular Question Notable Question Famous Question Nice Question Popular Question Yearling Famous Question Nice Question Inquisitive Famous Question Notable Question Notable Question Notable Question Popular Question Good Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72714,98795,432533,NULL,NULL,NULL,0,NULL,NULL 72715,19186,278976,Necromancer Nice Answer Necromancer Yearling Necromancer Good Answer Necromancer Nice Answer Popular Question Populist Revival Popular Question Good Answer Revival Good Answer Yearling Nice Answer Popular Question Nice Answer Necromancer Yearling Popular Question Announcer Nice Answer Enlightened Notable Question Announcer Necromancer Notable Question Announcer,NULL,NULL,0,NULL,NULL 72716,138622,1527378,NULL,NULL,NULL,0,NULL,NULL 72717,431365,1414630,NULL,NULL,NULL,0,NULL,NULL 72718,103595,1306222,NULL,NULL,NULL,0,NULL,NULL 72719,243475,513116,Great Answer Famous Question,NULL,NULL,0,NULL,NULL 72720,1249069,148260,Student Yearling Caucus Scholar Critic Yearling Documentation User Popular Question Caucus Excavator Notable Question Nice Question Yearling Proofreader,NULL,NULL,0,NULL,NULL 72721,713145,369765,Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72722,889108,131725,NULL,NULL,NULL,0,NULL,NULL 72723,901811,106437,NULL,NULL,NULL,0,NULL,NULL 72724,79085,1087962,Necromancer Yearling Nice Answer Critic Yearling Curious Caucus Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 72725,1506305,827371,Popular Question Notable Question Notable Question Popular Question Yearling Nice Answer Popular Question Popular Question Popular Question Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 72726,254580,609057,NULL,NULL,NULL,0,NULL,NULL 72727,44835,366381,Yearling Nice Question Announcer Scholar Announcer,NULL,NULL,0,NULL,NULL 72728,217934,290585,Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72729,72085,101846,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72730,36621,63013,Yearling Excavator Yearling Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 72731,1533671,937935,NULL,NULL,NULL,0,NULL,NULL 72732,190637,1334855,Good Answer Critic Informed Yearling,NULL,NULL,0,NULL,NULL 72733,53091,401145,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 72734,77331,624821,plone Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 72735,364113,501947,NULL,NULL,NULL,0,NULL,NULL 72736,17642,342159,NULL,NULL,NULL,0,NULL,NULL 72737,1892224,710713,NULL,NULL,NULL,0,NULL,NULL 72738,111948,28901,Popular Question Revival Great Question Great Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Favorite Question Popular Question Popular Question Notable Question Great Question Popular Question Favorite Question Notable Question Documentation User Yearling Popular Question Necromancer Notable Question Custodian Yearling Favorite Question,NULL,NULL,0,NULL,NULL 72739,44620,473580,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 72740,220191,1388705,NULL,NULL,NULL,0,NULL,NULL 72741,68017,129957,NULL,NULL,NULL,0,NULL,NULL 72742,1207376,466866,NULL,NULL,NULL,0,NULL,NULL 72743,1027238,135303,Notable Question Yearling Guru Yearling Good Answer Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 72744,245386,1121454,NULL,NULL,NULL,0,NULL,NULL 72745,739892,1060443,NULL,NULL,NULL,0,NULL,NULL 72746,82461,1082300,Nice Answer Enlightened Quorum Good Answer Curious Nice Answer Enlightened hibernate Necromancer Guru Good Answer Yearling Necromancer Necromancer Yearling Good Answer Guru Good Answer Revival,NULL,pDo you have associations in this graph that cascade persist back to the thing being deleted If so the JPA spec states clearly that the provider is to cancel the delete in such case If this is the case Hibernate writes out log statement saying un scheduling entity deletion You could see that by enabling trace logging on the codeorg hibernate event internal DefaultPersistEventListener code logger ppIf this is the situation you ll need to clean up those associations as required by JPA specification guess it depends if you call logging message silent There is not really anything more we can do here the spec says this has to be the behavior,0,NULL,NULL 72747,162436,293635,Yearling Popular Question Civic Duty Popular Question Custodian Custodian,NULL,NULL,0,NULL,NULL 72748,44931,1298132,NULL,NULL,NULL,0,NULL,NULL 72749,172692,296673,NULL,NULL,NULL,0,NULL,NULL 72750,368596,505148,Informed Student Organizer Critic Commentator Caucus Constituent Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 72751,9295,241791,Yearling Excavator Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 72752,277360,1566862,NULL,NULL,NULL,0,NULL,NULL 72753,4648,692806,Editor,NULL,NULL,0,NULL,NULL 72754,358971,40307,Nice Answer Famous Question Revival Good Question Favorite Question Necromancer Nice Answer Yearling Nice Answer Notable Question Great Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72755,244482,585241,NULL,NULL,NULL,0,NULL,NULL 72756,169607,610224,Student Editor Informed Autobiographer Scholar Excavator,NULL,NULL,0,NULL,NULL 72757,527626,262108,Editor Necromancer Citizen Patrol Yearling Student Scholar Necromancer Excavator Caucus Necromancer,NULL,NULL,0,NULL,NULL 72758,973152,41717,Nice Question Notable Question Popular Question Nice Answer Enlightened Yearling Popular Question Popular Question Yearling Nice Answer Enlightened Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 72759,213502,1134098,Notable Question Popular Question Notable Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72760,17644,1562641,Notable Question,NULL,NULL,0,NULL,NULL 72761,23644,3779,Popular Question Popular Question Good Question Famous Question Good Answer Explainer Nice Answer Good Answer Yearling Cleanup Yearling Announcer Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 72762,31318,1079956,NULL,NULL,NULL,0,NULL,NULL 72763,132301,598760,NULL,NULL,NULL,0,NULL,NULL 72764,476994,825364,Good Answer Necromancer Nice Answer Revival Yearling Explainer Good Answer Announcer Revival Nice Answer Nice Answer Good Answer Revival Announcer Necromancer Yearling Custodian Good Answer Revival Good Answer Yearling Great Answer Necromancer Populist,NULL,NULL,0,NULL,NULL 72765,63441,349423,Yearling Nice Question Announcer Popular Question Necromancer Guru Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Good Answer Popular Question Revival Custodian Custodian,NULL,NULL,0,NULL,NULL 72766,577173,1396260,NULL,NULL,NULL,0,NULL,NULL 72767,141689,894589,Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 72768,444893,600636,NULL,NULL,NULL,0,NULL,NULL 72769,53484,83456,NULL,NULL,NULL,0,NULL,NULL 72770,4955,528422,Tumbleweed Revival Census Revival,NULL,NULL,0,NULL,NULL 72771,6116,247020,Yearling Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Yearling Yearling Nice Answer,NULL,strongUpdate strong Install the codemove text code package from Marmalade or href http melpa milkbox net rel noreferrer MELPA to get the following code ppHere what use which works on both regions and individual lines ppre code defun move text internal arg cond and mark active transient mark mode if gt point mark exchange point and mark let column current column text delete and extract region point mark forward line arg move to column column set mark point insert text exchange point and mark setq deactivate mark nil let column current column beginning of line when or gt arg not bobp forward line when or lt arg not eobp transpose lines arg when and eval when compile and gt emacs major version 24 gt emacs minor version lt arg forward line forward line move to column column defun move text down arg Move region transient mark mode active or current line arg lines down interactive move text internal arg defun move text up arg Move region transient mark mode active or current line arg lines up interactive move text internal arg global set key up move text up global set key down move text down code pre Then your up must be bound to different command in that mode Press up to find out what it is bound to there strongUpdate strong Install the codemove text code package from Marmalade or href http melpa milkbox net rel noreferrer MELPA to get the following code ppHere what use which works on both regions and individual lines ppre code defun move text internal arg cond and mark active transient mark mode if gt point mark exchange point and mark let column current column text delete and extract region point mark forward line arg move to column column set mark point insert text exchange point and mark setq deactivate mark nil let column current column beginning of line when or gt arg not bobp forward line when or lt arg not eobp transpose lines arg when and eval when compile and gt emacs major version 24 gt emacs minor version lt arg forward line forward line move to column column defun move text down arg Move region transient mark mode active or current line arg lines down interactive move text internal arg defun move text up arg Move region transient mark mode active or current line arg lines up interactive move text internal arg global set key up move text up global set key down move text down code pre You will have to load the file too and set up the keybindings There are instructions in move text el for doing so Hard to help you from here sorry but it sounds like your question is just related to general set up of new elisp libraries If you have recent Emacs try using package install to install move text then move text default keybindings pHere trick href https github com purcell emacs blob master init exec path el use to ensure my GUI Emacs always sees the same code PATH code that get inside shell ppre code defun set exec path from shell PATH let path from shell replace regexp in string shell command to string SHELL login echo PATH setenv PATH path from shell setq eshell path env path from shell for eshell users setq exec path split string path from shell path separator when window system set exec path from shell PATH code prepSpecifically on OS graphical Emacs will not pick up the user shell definition of code PATH code so this trick helps me on that platform pp strongUpdate this code has now been published as an elisp library called href https github com purcell exec path from shell exec path from shell and installable packages are available in href http melpa milkbox net MELPA strong Emacs will never use your bash aliases sorry those are only available inside bash sessions This code and the exec path from shell package simply allow Emacs to reliably locate the same executable files and scripts that are visible in your bash sessions,0,NULL,NULL 72772,108768,307745,Yearling Famous Question Notable Question Popular Question Famous Question Nice Question Yearling Nice Question Great Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72773,1149380,501409,Nice Answer Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Nice Question Nice Question Famous Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72774,25614,661721,Yearling Guru Supporter Yearling Yearling,NULL,NULL,0,NULL,NULL 72775,177216,789857,NULL,NULL,NULL,0,NULL,NULL 72776,170055,588176,NULL,NULL,NULL,0,NULL,NULL 72777,103792,1087660,Great Answer Yearling Notable Question Necromancer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 72778,50533,90934,Yearling Guru Necromancer Notable Question Yearling Famous Question Great Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 72779,335621,813831,NULL,NULL,NULL,0,NULL,NULL 72780,30257,97602,Yearling Proofreader Nice Answer Enlightened Yearling Caucus Constituent Documentation User Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72781,692909,406000,NULL,NULL,NULL,0,NULL,NULL 72782,564683,430634,Tumbleweed Popular Question Popular Question Popular Question Popular Question Nice Answer Yearling Notable Question Caucus Custodian Good Answer Good Answer Nice Answer Caucus Informed Yearling Popular Question Census Popular Question Famous Question Nice Question Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 72783,42079,28038,Notable Question Nice Question Yearling Nice Answer Nice Question Popular Question Yearling Popular Question Stellar Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 72784,1045028,1544596,NULL,NULL,NULL,0,NULL,NULL 72785,192811,804713,Excavator Necromancer Yearling Custodian Custodian Announcer Nice Answer Yearling Nice Answer Custodian Curious Popular Question Yearling Civic Duty,NULL,NULL,0,NULL,NULL 72786,53636,915781,NULL,NULL,NULL,0,NULL,NULL 72787,625183,516320,Notable Question,NULL,NULL,0,NULL,NULL 72788,17141,24817,Good Question Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Custodian Custodian Necromancer Caucus Popular Question Nice Answer Announcer Yearling Documentation User Excavator Nice Answer Enlightened Good Answer Census rust Nice Answer Enlightened Custodian Self-Learner Necromancer Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 72789,216015,160821,Nice Question Announcer Revival Yearling Notable Question Popular Question Popular Question Good Answer Nice Answer Good Question Yearling Nice Question Nice Question Necromancer Yearling Announcer,NULL,NULL,1,NULL,django debug toolbar Template object has no attribute engine python django templates django debug toolbar pI ve just tried running an existing Django project on new computer and having trouble with django debug toolbar It seems to be something to do with Jinja2 Here the stack trace ppre codeTraceback File path to myrepo env local lib python2 site packages django core handlers base py in get response 223 response middleware method request response File path to myrepo env local lib python2 site packages debug toolbar middleware py in process response 120 panel generate stats request response File path to myrepo env local lib python2 site packages debug toolbar panels templates panel py in generate stats 175 context processors self templates context processors Exception Type AttributeError at first page Exception Value Template object has no attribute engine code prepI using django jinja2 to integrate Jinja2 into my project and this worked okay before but it now seems to be expecting this codetemplate code variable to be normal Django template In my codeTEMPLATES code setting have both Jinja2 and DjangoTemplates set up with Jinja2 using specific extension tmpl to make sure only those templates are used by Jinja2 and everything else can go through the DjangoTemplates backend ppHas anyone seen this error before when using django debug toolbar with Jinja2 can post more settings if needed ppEDIT As requested here my TEMPLATES settings ppre codeTEMPLATES BACKEND django template backends jinja2 Jinja2 BACKEND django jinja backend Jinja2 NAME jinja2 DIRS os path join DEPLOY PATH templates APP DIRS True OPTIONS debug DEBUG match extension tmpl environment jinja2 Environment extensions jinja2 ext with jinja2 ext i18n django jinja builtins extensions UrlsExtension django jinja builtins extensions CsrfExtension pipeline templatetags ext PipelineExtension context processors django contrib auth context processors auth django core context processors debug django core context processors i18n django core context processors media django core context processors static django contrib messages context processors messages django core context processors request BACKEND django template backends django DjangoTemplates DIRS os path join DEPLOY PATH templates APP DIRS True OPTIONS debug DEBUG context processors django contrib auth context processors auth django core context processors debug django core context processors i18n django core context processors media django core context processors static django contrib messages context processors messages django core context processors request code prep strongUpdate strong ve fixed the issue by making small code change in the debug toolbar source changing line 175 in codedebug toolbar panels templates panel py code from ppre codetemplate dirs self templates template engine dirs code prepto ppre codeif hasattr self templates template engine template dirs self templates template engine dirselif hasattr self templates template backend template dirs self templates template backend dirselse raise RuntimeError Couldn find engine or backend for template format self templates template code prepI haven looked into why this works for some people this combination of debug toolbar and django jinja works fine but noticed that Jinja2 templates have the codebackend code attribute and the Django templates have the codeengine code attribute and both appear to be used for the same thing pI get this too you can hack it fixed based on your suggestion without hacking core by supplying your own panel class pp strongdebug py strong ppre codefrom debug toolbar panels templates import TemplatesPanel as BaseTemplatesPanelclass TemplatesPanel BaseTemplatesPanel def generate stats self args template self templates template if not hasattr template engine and hasattr template backend template engine template backend return super generate stats args code prep strongsettings py strong ppre codeDEBUG TOOLBAR PANELS debug toolbar panels versions VersionsPanel debug toolbar panels timer TimerPanel debug toolbar panels settings SettingsPanel debug toolbar panels headers HeadersPanel debug toolbar panels request RequestPanel debug toolbar panels sql SQLPanel debug toolbar panels staticfiles StaticFilesPanel myapp debug TemplatesPanel original broken by django jinja remove this whole block later debug toolbar panels cache CachePanel debug toolbar panels signals SignalsPanel debug toolbar panels logging LoggingPanel debug toolbar panels redirects RedirectsPanel code pre 72790,426763,513422,NULL,NULL,NULL,0,NULL,NULL 72791,412,13498,Good Answer Yearling Nice Answer Good Answer Yearling Pundit Yearling Guru,NULL,NULL,0,NULL,NULL 72792,45082,546608,NULL,NULL,NULL,0,NULL,NULL 72793,83079,720502,Notable Question Yearling Good Question Popular Question Revival Yearling Popular Question Popular Question Yearling Popular Question Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Famous Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 72794,105147,414306,Revival Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 72795,184732,464883,Popular Question Popular Question Notable Question Scholar,NULL,NULL,0,NULL,NULL 72796,671351,310391,Excavator Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 72797,332507,119872,NULL,NULL,NULL,0,NULL,NULL 72798,216128,587440,Notable Question,NULL,NULL,0,NULL,NULL 72799,274818,352423,NULL,NULL,NULL,0,NULL,NULL 72800,14164,813273,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 72801,221468,1394142,NULL,NULL,NULL,0,NULL,NULL 72802,129980,564165,Commentator Yearling Informed Documentation User Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 72803,2980766,512524,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72804,10006130,512524,Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72805,82914,20150,Yearling Revival Famous Question Nice Answer Enlightened Famous Question Famous Question Popular Question Yearling Nice Question,NULL,,0,, 72806,9800,476111,Excavator Nice Answer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 72807,296240,588868,Notable Question Yearling Popular Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Good Question Nice Answer Notable Question Good Answer Nice Question Popular Question Popular Question Nice Answer Enlightened Great Answer Nice Question Popular Question Notable Question Popular Question Nice Answer Popular Question Popular Question Nice Question Caucus Good Question Yearling Popular Question Socratic Good Question Popular Question Popular Question Popular Question Popular Question Nice Question Documentation User Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Announcer Yearling Popular Question Popular Question Popular Question Popular Question Guru Popular Question Benefactor Popular Question Popular Question c# Famous Question Nice Question Famous Question Popular Question,NULL,pIn Tools Options Environment Tabs and Windows you can disable it by unckecking Solution explorer under Preview tab ppI find it using the Quick launch new feature Simply type preview and link to the setting will be suggested Great new feature of VS years later want to say you re welcome How to decode image with ASCIIHexDecode itext invalidargumentexception pdfobject pI trying to extract images from PDF files using iTextSharp ppThe process is working for most of PDF files have but fails with some others ppEspecially observe that failing PDF has images with filter code ASCIIHexDecode code and code CCITTFaxDecode code ppHow to decode images with this filters ppFYI my image extraction routine is codepg code object is get using codePdfReader GetPageN code ppre codeprivate static FindImages PdfReader reader PdfDictionary pdfPage var imgPdfObject FindImageInPDFDictionary pdfPage foreach var image in imgPdfObject var xrefIndex PRIndirectReference image Number var stream reader GetPdfObject xrefIndex Exception occurs here var pdfImage new PdfImageObject PRStream stream img Bitmap pdfImage GetDrawingImage Do something with the image private static IEnumerable lt PdfObject gt FindImageInPDFDictionary PdfDictionary pg PdfDictionary res PdfDictionary PdfReader GetPdfObject pg Get PdfName RESOURCES PdfDictionary xobj PdfDictionary PdfReader GetPdfObject res Get PdfName XOBJECT if xobj null foreach PdfName name in xobj Keys PdfObject obj xobj Get name if obj IsIndirect PdfDictionary tg PdfDictionary PdfReader GetPdfObject obj PdfName type PdfName PdfReader GetPdfObject tg Get PdfName SUBTYPE image at the root of the pdf if PdfName IMAGE Equals type yield return obj image inside form else if PdfName FORM Equals type foreach var nestedObj in FindImageInPDFDictionary tg yield return nestedObj image inside group else if PdfName GROUP Equals type foreach var nestedObj in FindImageInPDFDictionary tg yield return nestedObj code prepThe exact exception is ppre codeiTextSharp text exceptions InvalidImageException Invalid code encountered while decoding 2D group compressed data iTextSharp text pdf codec TIFFFaxDecoder DecodeT6 Byte buffer Byte compData Int32 startX Int32 height Int64 tiffT6Options iTextSharp text pdf FilterHandlers Filter CCITTFAXDECODE Decode Byte PdfName filterName PdfObject decodeParams PdfDictionary streamDictionary iTextSharp text pdf PdfReader DecodeBytes Byte PdfDictionary streamDictionary IDictionary filterHandlers iTextSharp text pdf parser PdfImageObject ctor PdfDictionary dictionary Byte samples PdfDictionary colorSpaceDic iTextSharp text pdf parser PdfImageObject ctor PRStream stream MyProject MyClass MyMethod PdfReader reader PdfDictionary pdfPage dans sopmewhere PdfProcessor cs ligne 161 code prepFYI here is sample PDF that is causing trouble href https 1drv ms AjcEvFO aWLMkbtXNVl rmUXv6nnBQ rel nofollow noreferrer test pdf ve updated the repro code that was missing actual failing code and sample PDF that is causing trouble,1,How to decode image with ASCIIHexDecode itext invalidargumentexception pdfobject pI trying to extract images from PDF files using iTextSharp ppThe process is working for most of PDF files have but fails with some others ppEspecially observe that failing PDF has images with filter code ASCIIHexDecode code and code CCITTFaxDecode code ppHow to decode images with this filters ppFYI my image extraction routine is codepg code object is get using codePdfReader GetPageN code ppre codeprivate static FindImages PdfReader reader PdfDictionary pdfPage var imgPdfObject FindImageInPDFDictionary pdfPage foreach var image in imgPdfObject var xrefIndex PRIndirectReference image Number var stream reader GetPdfObject xrefIndex Exception occurs here var pdfImage new PdfImageObject PRStream stream img Bitmap pdfImage GetDrawingImage Do something with the image private static IEnumerable lt PdfObject gt FindImageInPDFDictionary PdfDictionary pg PdfDictionary res PdfDictionary PdfReader GetPdfObject pg Get PdfName RESOURCES PdfDictionary xobj PdfDictionary PdfReader GetPdfObject res Get PdfName XOBJECT if xobj null foreach PdfName name in xobj Keys PdfObject obj xobj Get name if obj IsIndirect PdfDictionary tg PdfDictionary PdfReader GetPdfObject obj PdfName type PdfName PdfReader GetPdfObject tg Get PdfName SUBTYPE image at the root of the pdf if PdfName IMAGE Equals type yield return obj image inside form else if PdfName FORM Equals type foreach var nestedObj in FindImageInPDFDictionary tg yield return nestedObj image inside group else if PdfName GROUP Equals type foreach var nestedObj in FindImageInPDFDictionary tg yield return nestedObj code prepThe exact exception is ppre codeiTextSharp text exceptions InvalidImageException Invalid code encountered while decoding 2D group compressed data iTextSharp text pdf codec TIFFFaxDecoder DecodeT6 Byte buffer Byte compData Int32 startX Int32 height Int64 tiffT6Options iTextSharp text pdf FilterHandlers Filter CCITTFAXDECODE Decode Byte PdfName filterName PdfObject decodeParams PdfDictionary streamDictionary iTextSharp text pdf PdfReader DecodeBytes Byte PdfDictionary streamDictionary IDictionary filterHandlers iTextSharp text pdf parser PdfImageObject ctor PdfDictionary dictionary Byte samples PdfDictionary colorSpaceDic iTextSharp text pdf parser PdfImageObject ctor PRStream stream MyProject MyClass MyMethod PdfReader reader PdfDictionary pdfPage dans sopmewhere PdfProcessor cs ligne 161 code prepFYI here is sample PDF that is causing trouble href https 1drv ms AjcEvFO aWLMkbtXNVl rmUXv6nnBQ rel nofollow noreferrer test pdf,NULL 72808,462437,688336,NULL,NULL,NULL,0,NULL,NULL 72809,99302,1168573,NULL,NULL,NULL,0,NULL,NULL 72810,529625,524007,Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 72811,2894449,516378,Revival,NULL,NULL,0,NULL,NULL 72812,1292004,1462708,Yearling Custodian Yearling Scholar Caucus Student Self-Learner Informed,NULL,pre codeaugroup BWCCreateDir autocmd autocmd BufWritePre if expand lt afile gt amp amp isdirectory expand execute silent mkdir shellescape expand redraw endifaugroup END code prepNote the conditions codeexpand lt afile gt code will prevent vim from creating directories for files like codeftp code and code isdirectory code will prevent expensive mkdir call pp strongUpdate strong sligtly better solution that also checks for non empty buftype and uses codemkdir code ppre codefunction MkNonExDir file buf if empty getbufvar buf amp buftype amp amp file let dir fnamemodify file if isdirectory dir call mkdir dir endif endifendfunctionaugroup BWCCreateDir autocmd autocmd BufWritePre call MkNonExDir expand lt afile gt expand lt abuf gt augroup END code pre recommend using function instead of function so that your vimrc file can be reloaded edit the answer to add it but don have enough privileges on SO yet,0,NULL,NULL 72813,6633989,1462708,Yearling Custodian Yearling Scholar Caucus Student Self-Learner Informed,NULL,pre codeaugroup BWCCreateDir autocmd autocmd BufWritePre if expand lt afile gt amp amp isdirectory expand execute silent mkdir shellescape expand redraw endifaugroup END code prepNote the conditions codeexpand lt afile gt code will prevent vim from creating directories for files like codeftp code and code isdirectory code will prevent expensive mkdir call pp strongUpdate strong sligtly better solution that also checks for non empty buftype and uses codemkdir code ppre codefunction MkNonExDir file buf if empty getbufvar buf amp buftype amp amp file let dir fnamemodify file if isdirectory dir call mkdir dir endif endifendfunctionaugroup BWCCreateDir autocmd autocmd BufWritePre call MkNonExDir expand lt afile gt expand lt abuf gt augroup END code pre recommend using function instead of function so that your vimrc file can be reloaded edit the answer to add it but don have enough privileges on SO yet,0,NULL,NULL 72814,446058,764635,Notable Question,NULL,NULL,0,NULL,NULL 72815,18711,268602,Informed Popular Question Announcer Nice Question Famous Question Critic,NULL,NULL,0,NULL,NULL 72816,232628,735468,Famous Question Supporter Teacher,NULL,NULL,0,NULL,NULL 72817,90884,524472,NULL,NULL,NULL,0,NULL,NULL 72818,169358,329911,Revival Yearling Nice Answer Enlightened Custodian Revival,NULL,NULL,0,NULL,NULL 72819,285565,324625,Nice Answer Enlightened Yearling Reviewer Good Answer Necromancer Curious Nice Answer Caucus Custodian Yearling Guru Announcer Necromancer Nice Answer Census Yearling Announcer,NULL,NULL,0,NULL,NULL 72820,621836,697147,NULL,NULL,NULL,0,NULL,NULL 72821,32745,406272,NULL,NULL,NULL,0,NULL,NULL 72822,2863,793696,NULL,NULL,NULL,0,NULL,NULL 72823,51721,1336205,Editor Supporter,NULL,NULL,0,NULL,NULL 72824,304215,271679,NULL,NULL,NULL,0,NULL,NULL 72825,23140,868718,Popular Question Yearling Self-Learner Notable Question Revival Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72826,412532,473338,Necromancer Good Answer Yearling Caucus Great Answer Revival Good Answer Caucus Constituent Nice Answer Enlightened Yearling Great Answer Nice Answer Nice Answer Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 72827,83233,585894,NULL,NULL,NULL,0,NULL,NULL 72828,668782,1115413,Popular Question Necromancer Good Answer Self-Learner Nice Answer Nice Question Yearling Necromancer Notable Question Popular Question Popular Question Necromancer Yearling Notable Question Notable Question Nice Answer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 72829,25485,179110,Necromancer,NULL,NULL,0,NULL,NULL 72830,25971,98624,Necromancer Good Question Yearling Necromancer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 72831,1382742,604006,Supporter Popular Question Yearling Curious Self-Learner Popular Question Critic Popular Question Yearling,NULL,NULL,1,Is it possible to script the configuration of Azure App Service Authentication powershell azure authentication azure resource manager pAzure App Service includes turnkey authentication solution under the Authentication Authorization settings blade This allowed me to configure Active Directory authentication for my App Service web api have provisioning script for setting up my environment and would like to automate the configuration of App Service Authentication either through an ARM template or through Powershell commands ppI ve tried using resource azure com to view the setup of my site but couldn see AD related config ve tried searching for ARM templates that do this without success also couldn see an Azure Resource Manager commandlet that could do this ppDoes anyone know how to automate the configuration of App Service Authentication specifically for AD authentication,NULL 72832,857046,1222208,NULL,NULL,NULL,0,NULL,NULL 72833,1342812,413252,Popular Question,NULL,NULL,0,NULL,NULL 72834,472927,612704,Necromancer Yearling Nice Answer Revival Necromancer Yearling Census Caucus,NULL,NULL,0,NULL,NULL 72835,154160,3831,Nice Answer Famous Question Nice Question Nice Answer Yearling Notable Question Yearling Notable Question Nice Answer Popular Question Nice Question Nice Answer Good Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 72836,13334,1023821,Nice Answer,NULL,NULL,0,NULL,NULL 72837,1134635,617148,NULL,NULL,NULL,0,NULL,NULL 72838,1508956,1404217,NULL,NULL,NULL,0,NULL,NULL 72839,236711,384641,Notable Question Notable Question Popular Question Necromancer Popular Question Yearling Nice Question Nice Question Custodian Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72840,182131,1318400,NULL,NULL,NULL,0,NULL,NULL 72841,122888,624075,Famous Question Notable Question Nice Question Famous Question Famous Question Yearling Custodian Notable Question Good Answer Notable Question Good Question Yearling Good Question,NULL,NULL,0,NULL,NULL 72842,260762,560788,Necromancer Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72843,271979,1130350,NULL,NULL,NULL,0,NULL,NULL 72844,75157,145072,Notable Question Yearling Curious,NULL,NULL,0,NULL,NULL 72845,5476,299730,NULL,NULL,NULL,0,NULL,NULL 72846,125923,784224,NULL,NULL,NULL,0,NULL,NULL 72847,235885,311745,Yearling Notable Question Nice Answer Enlightened Nice Answer Enlightened Famous Question Custodian Yearling Good Answer Nice Answer Famous Question Yearling Good Question Great Answer,NULL,NULL,0,NULL,NULL 72848,897079,461285,NULL,NULL,NULL,0,NULL,NULL 72849,242741,560803,Yearling,NULL,NULL,0,NULL,NULL 72850,258279,1467820,Popular Question Popular Question Yearling Famous Question Self-Learner Revival Popular Question,NULL,NULL,0,NULL,NULL 72851,149750,210672,NULL,NULL,NULL,0,NULL,NULL 72852,644311,590790,Yearling Nice Question Notable Question Popular Question Good Question Good Answer Great Question Popular Question Notable Question Popular Question Necromancer Announcer Nice Question Notable Question Popular Question Announcer Caucus Notable Question Good Question Yearling Necromancer Informed Announcer Pundit Nice Question Nice Question Popular Question Revival Announcer Caucus Announcer Nice Question Nice Answer Announcer Popular Question Announcer Popular Question Announcer c# Yearling Announcer Caucus Nice Question Notable Question Popular Question Announcer Announcer Populist Announcer Popular Question,NULL,pThe currently accepted answer does not work for me when internet explorer is set as the default browser On my Windows PC the codeHKEY CLASSES ROOT http shell open command code is not updated for IE The reason behind this might be changes introduced starting from Windows Vista in how default programs are handled ppYou can find the default chosen browser in the registry key codeSoftware Microsoft Windows Shell Associations UrlAssociations http UserChoice code with value codeProgid code href https stackoverflow com 12358432 590790 thanks goes to Broken Pixels ppre codeconst string userChoice Software Microsoft Windows Shell Associations UrlAssociations http UserChoice string progId BrowserApplication browser using RegistryKey userChoiceKey Registry CurrentUser OpenSubKey userChoice if userChoiceKey null browser BrowserApplication Unknown break object progIdValue userChoiceKey GetValue Progid if progIdValue null browser BrowserApplication Unknown break progId progIdValue ToString switch progId case IE HTTP browser BrowserApplication InternetExplorer break case FirefoxURL browser BrowserApplication Firefox break case ChromeHTML browser BrowserApplication Chrome break case OperaStable browser BrowserApplication Opera break case SafariHTML browser BrowserApplication Safari break case AppXq0fevzme2pys62n3e0fbqa7peapykr8v browser BrowserApplication Edge break default browser BrowserApplication Unknown break code prepIn case you also need the path to the executable of the browser you can access it as follows using the codeProgid code to retrieve it from codeClassesRoot code ppre codeconst string exeSuffix exe string path progId shell open command FileInfo browserPath using RegistryKey pathKey Registry ClassesRoot OpenSubKey path if pathKey null return Trim parameters try path pathKey GetValue null ToString ToLower Replace if path EndsWith exeSuffix path path Substring path LastIndexOf exeSuffix StringComparison Ordinal exeSuffix Length browserPath new FileInfo path catch Assume the registry value is set incorrectly or some funky browser is used which currently is unknown code pre Thank you for including Opera Safari and Edge What the hell is up with Edge name in the registry though Are you certain this is the same identifier on all systems it seems like random string How do you handle multiple submit buttons in ASP NET MVC Framework html asp net asp net mvc http post form submit pIs there some easy way to handle multiple submit buttons from the same form Example ppre code lt Html BeginForm MyAction MyController FormMethod Post gt lt input type submit value Send gt lt input type submit value Cancel gt lt Html EndForm gt code prepAny idea how to do this in ASP NET Framework Beta All examples ve googled for have single buttons in them Worth mentioning starting from ASP NET Core there are much easier solutions around http stackoverflow com questions 36555265 asp net mvc core multiple submit buttons than the ones listed here,0,NULL,NULL 72853,209450,507870,NULL,NULL,NULL,0,NULL,NULL 72854,302089,566980,NULL,NULL,NULL,0,NULL,NULL 72855,504795,650500,NULL,NULL,NULL,0,NULL,NULL 72856,38546,1147751,Revival,NULL,NULL,0,NULL,NULL 72857,283957,87356,Yearling Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 72858,784027,937726,Famous Question Notable Question Civic Duty Nice Answer Yearling Caucus Notable Question Nice Question,NULL,NULL,0,NULL,NULL 72859,28646,99069,Tumbleweed,NULL,NULL,0,NULL,NULL 72860,349457,664095,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 72861,98907,111347,NULL,NULL,NULL,0,NULL,NULL 72862,49786,574576,Yearling Nice Question Nice Question Revival Popular Question Notable Question Yearling Civic Duty Good Answer Necromancer Famous Question Yearling Notable Question Good Answer,NULL,pThese are utilities that use to download files cross browser The nifty thing about this is that you can actually set the codedownload code property of link to the name you want your filename to be ppFYI the mimeType for binary is codeapplication octet stream code ppre codevar downloadBlob downloadURL downloadBlob function data fileName mimeType var blob url blob new Blob data type mimeType url window URL createObjectURL blob downloadURL url fileName setTimeout function return window URL revokeObjectURL url 1000 downloadURL function data fileName var document createElement href data download fileName document body appendChild style display none click remove code prepUsage ppre codedownloadBlob myBinaryBlob some file bin application octet stream code pre the example uses downloadBlob the first function that then calls downloadURL so the args reflect the first function not the 2nd one,0,NULL,NULL 72863,114303,191521,Yearling Census Popular Question Notable Question Yearling Census Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 72864,86131,228221,Famous Question Favorite Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 72865,41405,10393,Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Great Question Notable Question Yearling Nice Question Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 72866,693571,437942,NULL,NULL,NULL,0,NULL,NULL 72867,627860,1001911,Yearling Supporter Critic Yearling Announcer Commentator Yearling,NULL,NULL,0,NULL,NULL 72868,676748,825305,Supporter,NULL,NULL,0,NULL,NULL 72869,599245,270468,NULL,NULL,NULL,0,NULL,NULL 72870,336044,100052,Nice Question Yearling Good Answer Nice Answer Nice Answer Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 72871,42420,100052,Nice Question Yearling Good Answer Nice Answer Nice Answer Notable Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 72872,260676,1422740,NULL,NULL,NULL,0,NULL,NULL 72873,471984,217844,Great Answer Inquisitive Great Question Notable Question Famous Question Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Booster Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Cleanup Custodian Popular Question Necromancer Announcer Famous Question Necromancer Nice Answer Yearling,NULL,pThe Qt toolkit is packaged using the Qt Installer Framework QtIFW QtIFW installers support code script code option that allows you to programatically control the installation via the href http doc qt io qtinstallerframework noninteractive html rel nofollow noreferrer Controller Scripting API Here codeqt installer noninteractive qs code file to install Qt non interactively ppre code Emacs mode hint mode JavaScript function Controller installer autoRejectMessageBoxes installer installationFinished connect function gui clickButton buttons NextButton Controller prototype WelcomePageCallback function click delay here because the next button is initially disabled for second gui clickButton buttons NextButton 3000 Controller prototype CredentialsPageCallback function gui clickButton buttons NextButton Controller prototype IntroductionPageCallback function gui clickButton buttons NextButton Controller prototype TargetDirectoryPageCallback function gui currentPageWidget TargetDirectoryLineEdit setText installer value HomeDir Qt gui clickButton buttons NextButton Controller prototype ComponentSelectionPageCallback function var widget gui currentPageWidget widget deselectAll widget selectComponent qt 55 gcc 64 widget selectComponent qt 55 qtquickcontrols widget deselectComponent qt tools qtcreator widget deselectComponent qt 55 qt3d widget deselectComponent qt 55 qtcanvas3d widget deselectComponent qt 55 qtlocation widget deselectComponent qt 55 qtquick1 widget deselectComponent qt 55 qtscript widget deselectComponent qt 55 qtwebengine widget deselectComponent qt extras widget deselectComponent qt tools doc widget deselectComponent qt tools examples gui clickButton buttons NextButton Controller prototype LicenseAgreementPageCallback function gui currentPageWidget AcceptLicenseRadioButton setChecked true gui clickButton buttons NextButton Controller prototype StartMenuDirectoryPageCallback function gui clickButton buttons NextButton Controller prototype ReadyForInstallationPageCallback function gui clickButton buttons NextButton Controller prototype FinishedPageCallback function var checkBoxForm gui currentPageWidget LaunchQtCreatorCheckBoxForm if checkBoxForm amp amp checkBoxForm launchQtCreatorCheckBox checkBoxForm launchQtCreatorCheckBox checked false gui clickButton buttons FinishButton code prepThis script demonstrates how to select deselect certain components Customize for your needs or just remove the lines entirely for default installation Likewise you may want to customize or remove the codeTargetDirectoryLineEdit code line Run the Qt installer like ppre codeqt opensource linux x64 run script qt installer noninteractive qs code prepAdd code platform minimal code for headless installation Future installers based on newer versions of QtIFW should be able to use code silent code option instead see href https bugreports qt io browse QTIFW 166 rel nofollow noreferrer QTIFW 166 ppAdd code verbose code for more verbose console output helpful for gleaning component names wizard page names etc href https github com qtproject qtsdk tree master packaging tools configurations pkg templates rel nofollow noreferrer This link is also helpful for figuring out component names With qt opensource linux x64 android run platform minimal fails with Unknown option platform minimal fails with Unknown option platform and silent fails with Unknown option silent plus QXcbConnection Could not connect to display and Aborted core dumped on systems without UI pThe solution is to use code string code for example ppre code STR Hello nWorld echo STR HelloWorld code prepHere is an excerpt from the Bash manual page ppre class lang none prettyprint override code Words of the form string are treated specially The word expands to string with backslash escaped characters replaced as specified by the ANSI standard Backslash escape sequences if present are decoded as follows alert bell backspace an escape character form feed new line carriage return horizontal tab vertical tab backslash single quote double quote nnn the eight bit character whose value is the octal value nnn one to three digits xHH the eight bit character whose value is the hexadecimal value HH one or two hex digits cx control character The expanded result is single quoted as if the dollar sign had not been present double quoted string preceded by dollar sign string will cause the string to be translated according to the current locale If the current locale is or POSIX the dollar sign is ignored If the string is translated and replaced the replacement is double quoted code pre This does indeed work with literal strings as the OP asked but fails as soon as variables are to be substituted STR Hello nWorld simply prints Hello nWorld pThe solution is to use code string code for example ppre code STR Hello nWorld echo STR HelloWorld code prepHere is an excerpt from the Bash manual page ppre class lang none prettyprint override code Words of the form string are treated specially The word expands to string with backslash escaped characters replaced as specified by the ANSI standard Backslash escape sequences if present are decoded as follows alert bell backspace an escape character form feed new line carriage return horizontal tab vertical tab backslash single quote double quote nnn the eight bit character whose value is the octal value nnn one to three digits xHH the eight bit character whose value is the hexadecimal value HH one or two hex digits cx control character The expanded result is single quoted as if the dollar sign had not been present double quoted string preceded by dollar sign string will cause the string to be translated according to the current locale If the current locale is or POSIX the dollar sign is ignored If the string is translated and replaced the replacement is double quoted code pre and miken32 Thanks for the extra explanation much appreciated Makes for ugly code but works,0,NULL,NULL 72874,337793,1563851,NULL,NULL,NULL,0,NULL,NULL 72875,922868,664717,Self-Learner Citizen Patrol Yearling Enthusiast Popular Question Nice Question Notable Question Caucus Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 72876,7443,56937,Yearling Notable Question Nice Answer Enlightened Nice Question Yearling Yearling Nice Question Revival,NULL,NULL,0,NULL,NULL 72877,3342548,982663,Supporter,NULL,NULL,0,NULL,NULL 72878,41931,251077,Nice Question,NULL,NULL,0,NULL,NULL 72879,261857,386733,NULL,NULL,NULL,0,NULL,NULL 72880,645956,927329,NULL,NULL,NULL,0,NULL,NULL 72881,254549,487474,NULL,NULL,NULL,0,NULL,NULL 72882,271151,687294,Nice Question Famous Question Yearling Famous Question Enthusiast Popular Question Yearling Census Yearling Good Question,NULL,NULL,0,NULL,NULL 72883,496028,1483421,NULL,NULL,NULL,0,NULL,NULL 72884,1520703,1421808,NULL,NULL,NULL,0,NULL,NULL 72885,42850,877502,NULL,NULL,NULL,0,NULL,NULL 72886,456785,946869,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 72887,488754,289971,NULL,NULL,NULL,0,NULL,NULL 72888,46904,118906,Good Answer Yearling Populist Caucus Popular Question Necromancer Yearling,NULL,pYou can do this fairly easily without codegit rebase code or codegit merge squash code In this example we ll squash the last commits ppIf you want to write the new commit message from scratch this suffices ppre codegit reset soft HEAD amp amp git commit code prepIf you want to start editing the new commit message with concatenation of the existing commit messages similar to what pick squash squash squash codegit rebase code instruction list would start you with then you need to extract those messages and pass them to codegit commit code ppre codegit reset soft HEAD amp amp git commit edit git log format reverse HEAD HEAD code prepBoth of those methods squash the last three commits into single new commit in the same way The soft reset just re points HEAD to the last commit that you do not want to squash Neither the index nor the working tree are touched by the soft reset leaving the index in the desired state for your new commit it already has all the changes from the commits that you are about to “throw away” want to upvote this but can bring myself to be the one who changes the upvoted count from 1337,0,NULL,NULL 72889,757915,1459244,NULL,NULL,NULL,0,NULL,NULL 72890,161081,248423,Nice Answer,NULL,NULL,0,NULL,NULL 72891,311814,1204711,Enthusiast,NULL,NULL,0,NULL,NULL 72892,3127,304339,NULL,NULL,NULL,0,NULL,NULL 72893,1196205,351772,Notable Question,NULL,NULL,0,NULL,NULL 72894,1178784,475181,NULL,NULL,NULL,0,NULL,NULL 72895,113434,748034,NULL,NULL,NULL,0,NULL,NULL 72896,144708,145684,Nice Question Popular Question Nice Question Promoter Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Famous Question Popular Question Famous Question Famous Question Popular Question Good Question Yearling Announcer Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 72897,126051,553092,Yearling Yearling,NULL,NULL,0,NULL,NULL 72898,188335,967878,NULL,NULL,NULL,0,NULL,NULL 72899,337136,1809,NULL,NULL,NULL,0,NULL,NULL 72900,545241,385536,Custodian Good Answer Popular Question Yearling Caucus Informed Commentator Organizer Yearling Autobiographer,NULL,NULL,0,NULL,NULL 72901,63386,908341,Yearling,NULL,NULL,0,NULL,NULL 72902,733727,919716,Nice Question Nice Answer Nice Answer Good Question Popular Question Nice Question Nice Question Notable Question Yearling Popular Question Cleanup Good Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Famous Question Good Question Popular Question Yearling Popular Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 72903,323877,203137,Notable Question Popular Question Good Question Nice Question Nice Question Famous Question Notable Question Famous Question Guru Nice Answer Nice Question Popular Question Yearling Notable Question Nice Answer Enlightened Notable Question Good Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Yearling Peer Pressure Nice Answer Nice Answer Enlightened Famous Question Good Answer Popular Question Famous Question Yearling Notable Question Custodian,NULL,NULL,0,NULL,NULL 72904,140061,375856,Nice Answer,NULL,NULL,0,NULL,NULL 72905,124248,1073233,Autobiographer,NULL,NULL,0,NULL,NULL 72906,905198,454242,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 72907,144116,688340,NULL,NULL,NULL,0,NULL,NULL 72908,4782814,1191389,NULL,NULL,NULL,0,NULL,NULL 72909,411781,1504996,Yearling,NULL,NULL,0,NULL,NULL 72910,304054,1225263,Scholar Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 72911,10668,380582,NULL,NULL,NULL,0,NULL,NULL 72912,259339,295276,NULL,NULL,NULL,0,NULL,NULL 72913,1161979,93004,Notable Question Famous Question Yearling Nice Question Famous Question Nice Question Famous Question Popular Question Nice Question Popular Question Yearling Notable Question Stellar Question Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 72914,308959,787633,NULL,NULL,NULL,0,NULL,NULL 72915,111065,390717,NULL,NULL,NULL,0,NULL,NULL 72916,371057,285897,NULL,NULL,NULL,0,NULL,NULL 72917,4524,518588,NULL,NULL,NULL,0,NULL,NULL 72918,33886,797238,Necromancer Yearling Popular Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 72919,474847,191719,NULL,NULL,NULL,0,NULL,NULL 72920,1352165,952456,NULL,NULL,NULL,0,NULL,NULL 72921,134389,683548,Revival Popular Question,NULL,NULL,0,NULL,NULL 72922,614647,789734,NULL,NULL,NULL,0,NULL,NULL 72923,593060,622355,Editor Teacher Informed Autobiographer Citizen Patrol Scholar Critic Student Yearling,NULL,NULL,0,NULL,NULL 72924,123987,1150796,NULL,NULL,NULL,0,NULL,NULL 72925,100416,258857,NULL,NULL,NULL,0,NULL,NULL 72926,895989,243969,NULL,NULL,NULL,0,NULL,NULL 72927,456069,57743,Good Answer Yearling Populist Caucus Yearling Caucus Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 72928,563976,591797,NULL,NULL,NULL,0,NULL,NULL 72929,209130,1218797,NULL,NULL,NULL,0,NULL,NULL 72930,974732,1308647,NULL,NULL,NULL,0,NULL,NULL 72931,1066297,407376,Self-Learner,NULL,NULL,0,NULL,NULL 72932,210670,433193,NULL,NULL,NULL,0,NULL,NULL 72933,167837,921074,NULL,NULL,NULL,0,NULL,NULL 72934,12505,80566,Revival Yearling Revival Notable Question Popular Question Popular Question Popular Question Yearling Peer Pressure Popular Question Famous Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 72935,463408,972246,NULL,NULL,NULL,0,NULL,NULL 72936,337124,733658,NULL,NULL,NULL,0,NULL,NULL 72937,1174925,733658,NULL,NULL,NULL,0,NULL,NULL 72938,169940,1039350,Yearling Curious Census Documentation User Census Popular Question,NULL,NULL,0,NULL,NULL 72939,134659,474856,NULL,NULL,NULL,0,NULL,NULL 72940,12593,247274,NULL,NULL,NULL,0,NULL,NULL 72941,3169769,1127047,NULL,NULL,NULL,0,NULL,NULL 72942,376294,1127047,NULL,NULL,NULL,0,NULL,NULL 72943,914629,1536614,NULL,NULL,NULL,0,NULL,NULL 72944,1207833,685018,Nice Answer Nice Question Nice Question,NULL,NULL,0,NULL,NULL 72945,465172,1504847,Nice Answer Enlightened Yearling Nice Answer Enlightened Guru Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 72946,1012376,1489409,Teacher,NULL,NULL,0,NULL,NULL 72947,589569,1200830,Supporter Census,NULL,NULL,0,NULL,NULL 72948,5687553,1200830,Supporter Census,NULL,NULL,0,NULL,NULL 72949,909550,1005443,NULL,NULL,NULL,0,NULL,NULL 72950,800350,406931,NULL,NULL,NULL,0,NULL,NULL 72951,20730,211045,Editor Autobiographer Supporter Teacher Popular Question,NULL,NULL,0,NULL,NULL 72952,143189,22648,Famous Question,NULL,NULL,0,NULL,NULL 72953,288347,958902,NULL,NULL,NULL,0,NULL,NULL 72954,15046,1072501,NULL,NULL,NULL,0,NULL,NULL 72955,57497,29314,NULL,NULL,NULL,0,NULL,NULL 72956,385922,715966,NULL,NULL,NULL,0,NULL,NULL 72957,47225,1892,Nice Answer Nice Question Yearling Nice Question Nice Answer Notable Question Popular Question Notable Question Necromancer Yearling Nice Answer Nice Question Self-Learner Notable Question Notable Question Nice Answer Nice Answer Nice Answer Famous Question Yearling Nice Question Good Answer,NULL,How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container found the code in Jersey that adds the User Agent for requests and didn see any code nearby that adds an Accept header so no that not when it gets added know exactly what the Accept header is for and ve read the RFCs and refer to them lot have no idea what you mean by overriding the Accept header in the Resource class The Resource class is what is on the server there is nothing in the Jersey docs about overriding headers and not trying to replace the Accept header that am receiving want to see what the Accept header was or if there was none How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container tested the endpoint separately with curl and there is no Accept header generated added note to the ticket so the generated Accept header must be happening in the Jersey Test Client code somewhere How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container never did beyond Update above did learn that the Jersey and related library code is underdocumented and overly complex Recommend avoid Jersey Sadly we re too far invested but save yourself,1,How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container,NULL 72958,4307516,1892,Nice Answer Nice Question Yearling Nice Question Nice Answer Notable Question Popular Question Notable Question Necromancer Yearling Nice Answer Nice Question Self-Learner Notable Question Notable Question Nice Answer Nice Answer Nice Answer Famous Question Yearling Nice Question Good Answer,NULL,How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container found the code in Jersey that adds the User Agent for requests and didn see any code nearby that adds an Accept header so no that not when it gets added know exactly what the Accept header is for and ve read the RFCs and refer to them lot have no idea what you mean by overriding the Accept header in the Resource class The Resource class is what is on the server there is nothing in the Jersey docs about overriding headers and not trying to replace the Accept header that am receiving want to see what the Accept header was or if there was none How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container tested the endpoint separately with curl and there is no Accept header generated added note to the ticket so the generated Accept header must be happening in the Jersey Test Client code somewhere How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container never did beyond Update above did learn that the Jersey and related library code is underdocumented and overly complex Recommend avoid Jersey Sadly we re too far invested but save yourself,1,How do get Jersey Test Client to not fill in default Accept header java jersey jersey client jersey test framework pI trying to handle request with no codeAccept code header in particular way but Jersey seems hell bent on filling one in no matter what do so it always looks like the request has an codeAccept code header even if it doesn ppre codeimport org glassfish jersey server ResourceConfig import org glassfish jersey test JerseyTest import org junit Test import javax ws rs GET import javax ws rs Path import javax ws rs core Application import javax ws rs core Context import javax ws rs core HttpHeaders import static org junit Assert assertEquals public class JerseyTestTest extends JerseyTest hello public static class HelloResource public String getHello HttpHeaders httpHeaders String acceptHeader httpHeaders getHeaderString HttpHeaders ACCEPT return acceptHeader null acceptHeader No Accept Header protected Application configure return new ResourceConfig HelloResource class public void test final String hello target hello request header HttpHeaders ACCEPT null null means remove header get String class assertEquals No Accept Header hello code prepThis test results in ppre codeorg junit ComparisonFailure Expected No Accept HeaderActual text html image gif image jpeg code prepSomehow there is default codeAccept code header of codetext html image gif image jpeg code that gets set somewhere It not documented and would love to figure out how to disable it ve looked through the Jersey source but can seem to locate where this is happening or why ppUpdate when use curl to hit an endpoint without an Accept header there is no generated Accept header so the problem lies in Jersey Client or the Jersey Test environment somehow ppUpdate This bug exhibits when using the default Grizzly2 test container or the JDK test container but NOT with the In Memory test container,NULL 72959,18383,119849,Popular Question,NULL,NULL,0,NULL,NULL 72960,448352,681566,Teacher Necromancer Supporter,NULL,NULL,0,NULL,NULL 72961,85155,1343538,Critic Yearling,NULL,NULL,0,NULL,NULL 72962,763820,1460224,NULL,NULL,NULL,0,NULL,NULL 72963,180001,1522482,NULL,NULL,NULL,0,NULL,NULL 72964,1040681,1005194,Notable Question Good Answer Nice Answer Famous Question Good Answer Custodian Excavator Investor Altruist Yearling Caucus Popular Question Necromancer Necromancer Nice Answer Great Answer Nice Answer Caucus Nice Question Constituent Revival Nice Question Notable Question Yearling Custodian Custodian Caucus Constituent Necromancer Self-Learner Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72965,686068,279401,Good Question,NULL,NULL,0,NULL,NULL 72966,554750,114092,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 72967,637552,595265,Famous Question,NULL,NULL,0,NULL,NULL 72968,610666,912088,NULL,NULL,NULL,0,NULL,NULL 72969,885709,1445577,Caucus,NULL,NULL,0,NULL,NULL 72970,1044694,1031282,NULL,NULL,NULL,0,NULL,NULL 72971,235446,829327,NULL,NULL,NULL,0,NULL,NULL 72972,7434463,584528,NULL,NULL,NULL,0,NULL,NULL 72973,339996,584528,NULL,NULL,NULL,0,NULL,NULL 72974,1563628,222815,Favorite Question Nice Question Favorite Question Yearling Revival Nice Answer Guru Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 72975,367322,870426,NULL,NULL,NULL,0,NULL,NULL 72976,446480,1255271,Teacher Revival Student Supporter Scholar Enthusiast,NULL,NULL,0,NULL,NULL 72977,679847,253785,NULL,NULL,NULL,0,NULL,NULL 72978,222662,47424,Popular Question Popular Question Popular Question Yearling Great Question Caucus Constituent Yearling Famous Question,NULL,NULL,0,NULL,NULL 72979,200246,884203,Notable Question Nice Question Famous Question Good Question Yearling Yearling Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 72980,197187,858974,NULL,NULL,NULL,0,NULL,NULL 72981,403109,940303,NULL,NULL,NULL,0,NULL,NULL 72982,218,940303,NULL,NULL,NULL,0,NULL,NULL 72983,9349,209649,Curious,NULL,NULL,0,NULL,NULL 72984,1351154,1089756,Popular Question,NULL,NULL,0,NULL,NULL 72985,443518,1091618,Popular Question,NULL,NULL,0,NULL,NULL 72986,903804,186417,Supporter Informed Autobiographer Teacher,NULL,NULL,0,NULL,NULL 72987,138060,629749,Famous Question Favorite Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 72988,712380,1433156,NULL,NULL,NULL,0,NULL,NULL 72989,2443671,131444,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 72990,418287,17389,Nice Answer Guru Popular Question Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Notable Question Nice Answer Enlightened python html Nice Answer Nice Answer Enlightened Nice Answer Enlightened subroutine Nice Answer Enlightened Nice Answer Yearling Famous Question Nice Answer Caucus Constituent Nice Answer Nice Answer Nice Answer Good Answer c Generalist Nice Answer Nice Answer Enlightened Good Answer Caucus Nice Answer bash Announcer Yearling Nice Answer Good Answer Popular Question performance Nice Answer unix Nice Answer Caucus Good Answer Good Answer Yearling Guru Nice Answer Nice Answer Famous Question Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 72991,720383,599547,NULL,NULL,NULL,0,NULL,NULL 72992,251971,441282,NULL,NULL,NULL,0,NULL,NULL 72993,700427,203449,Yearling Necromancer,NULL,NULL,0,NULL,NULL 72994,296657,1358165,NULL,NULL,NULL,0,NULL,NULL 72995,1304861,1219796,Notable Question Yearling Notable Question Popular Question Famous Question Custodian Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 72996,109433,736595,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 72997,48872,168538,Notable Question,NULL,NULL,0,NULL,NULL 72998,353967,1368104,NULL,NULL,NULL,0,NULL,NULL 72999,19199,1060909,NULL,NULL,NULL,0,NULL,NULL 73000,1783103,1173725,NULL,NULL,NULL,0,NULL,NULL 73001,322066,1173725,NULL,NULL,NULL,0,NULL,NULL 73002,592824,1181431,NULL,NULL,NULL,0,NULL,NULL 73003,13227,746692,Popular Question,NULL,NULL,0,NULL,NULL 73004,179061,965836,NULL,NULL,NULL,0,NULL,NULL 73005,1941875,351718,Yearling,NULL,NULL,0,NULL,NULL 73006,937842,351718,Yearling,NULL,NULL,0,NULL,NULL 73007,77654,351718,Yearling,NULL,NULL,0,NULL,NULL 73008,226675,376422,NULL,NULL,NULL,0,NULL,NULL 73009,570188,1125859,NULL,NULL,NULL,0,NULL,NULL 73010,1903,5950,Informed Notable Question Yearling Yearling Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 73011,26435,139301,Yearling,NULL,NULL,0,NULL,NULL 73012,6957570,1168032,Nice Question,NULL,NULL,0,NULL,NULL 73013,1238468,1032286,Notable Question Popular Question Yearling Notable Question Announcer Caucus Notable Question Necromancer Documentation User Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73014,184207,1032286,Notable Question Popular Question Yearling Notable Question Announcer Caucus Notable Question Necromancer Documentation User Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73015,436994,245454,NULL,NULL,NULL,0,NULL,NULL 73016,64275,733300,Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 73017,312681,387496,Popular Question Famous Question Yearling Popular Question Self-Learner Popular Question Benefactor,NULL,NULL,0,NULL,NULL 73018,76845,705761,Necromancer Good Answer Populist Necromancer,NULL,NULL,0,NULL,NULL 73019,3127729,382816,Tumbleweed Informed Commentator,NULL,NULL,0,NULL,NULL 73020,6574474,382816,Tumbleweed Informed Commentator,NULL,NULL,0,NULL,NULL 73021,295670,382816,Tumbleweed Informed Commentator,NULL,NULL,0,NULL,NULL 73022,1111426,383731,Notable Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 73023,682972,478466,Notable Question,NULL,NULL,0,NULL,NULL 73024,1205229,235381,NULL,NULL,NULL,0,NULL,NULL 73025,197054,672403,NULL,NULL,NULL,0,NULL,NULL 73026,431516,647917,NULL,NULL,NULL,0,NULL,NULL 73027,1146323,592871,NULL,NULL,NULL,0,NULL,NULL 73028,102875,641359,NULL,NULL,NULL,0,NULL,NULL 73029,224901,706313,NULL,NULL,NULL,0,NULL,NULL 73030,2920082,706313,NULL,NULL,NULL,0,NULL,NULL 73031,7393970,892624,NULL,NULL,NULL,0,NULL,NULL 73032,402327,892624,NULL,NULL,NULL,0,NULL,NULL 73033,1310529,1427443,Yearling Notable Question Guru Nice Answer Caucus Yearling Popular Question Caucus Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 73034,230136,361,Famous Question Favorite Question Good Answer Notable Question Nice Answer Popular Question Nice Answer Notable Question Favorite Question Notable Question Yearling Popular Question Famous Question Custodian Popular Question Famous Question Notable Question Famous Question Popular Question Popular Question Nice Answer Enlightened Good Answer Popular Question Nice Question Popular Question Popular Question Notable Question Yearling Famous Question Great Question Popular Question Announcer Nice Question Popular Question Stellar Question Yearling Necromancer Nice Question Good Question,NULL,NULL,0,NULL,NULL 73035,192488,1021464,Revival Nice Answer Enlightened Famous Question Custodian Custodian Yearling Caucus Documentation User Yearling Census Good Question Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 73036,901980,1536890,NULL,NULL,NULL,0,NULL,NULL 73037,96633,355072,NULL,NULL,NULL,0,NULL,NULL 73038,228364,1323684,NULL,NULL,NULL,0,NULL,NULL 73039,338386,72676,Nice Answer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 73040,89216,338710,Notable Question Notable Question Yearling Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 73041,1078212,436453,NULL,NULL,NULL,0,NULL,NULL 73042,70644,1211900,NULL,NULL,NULL,0,NULL,NULL 73043,85264,1460859,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 73044,142507,1224971,NULL,NULL,NULL,0,NULL,NULL 73045,10789839,154830,Critic Good Question,NULL,NULL,0,NULL,NULL 73046,279014,195479,Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 73047,3608916,804714,Commentator Yearling Yearling Critic Custodian Citizen Patrol Organizer Explainer Custodian Yearling Custodian Yearling Reviewer Caucus,NULL,NULL,0,NULL,NULL 73048,63326,761921,NULL,NULL,NULL,0,NULL,NULL 73049,292134,151382,Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Caucus Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Caucus Necromancer Yearling Good Question Popular Question Nice Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73050,532260,151382,Notable Question Popular Question Popular Question Yearling Popular Question Notable Question Famous Question Caucus Popular Question Popular Question Popular Question Nice Answer Enlightened Popular Question Caucus Necromancer Yearling Good Question Popular Question Nice Question Popular Question Notable Question Notable Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73051,6960454,920407,Organizer Caucus Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 73052,185159,920407,Organizer Caucus Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 73053,242286,673254,Famous Question,NULL,NULL,0,NULL,NULL 73054,333850,1143753,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73055,82488,642738,NULL,NULL,NULL,0,NULL,NULL 73056,154720,969342,NULL,NULL,NULL,0,NULL,NULL 73057,66042,1104719,Supporter,NULL,NULL,0,NULL,NULL 73058,241292,529785,NULL,NULL,NULL,0,NULL,NULL 73059,1003629,939963,Nice Question Critic Excavator Commentator Curious Caucus Documentation User Popular Question Caucus Popular Question Yearling Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 73060,207815,784738,NULL,NULL,NULL,0,NULL,NULL 73061,109427,1555252,Teacher,NULL,NULL,0,NULL,NULL 73062,177726,1351318,NULL,NULL,NULL,0,NULL,NULL 73063,893906,313757,Notable Question Yearling Notable Question Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 73064,403894,1031315,NULL,NULL,NULL,0,NULL,NULL 73065,203149,1031315,NULL,NULL,NULL,0,NULL,NULL 73066,115054,664150,Yearling Commentator Revival Yearling,NULL,NULL,0,NULL,NULL 73067,4844,1289261,NULL,NULL,NULL,0,NULL,NULL 73068,12104,1334811,NULL,NULL,NULL,0,NULL,NULL 73069,939407,1167788,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73070,1124901,1049542,Notable Question Custodian Critic Yearling Revival Tag Editor Popular Question Revival Caucus Enthusiast Popular Question Yearling Necromancer Famous Question Caucus Revival Census Caucus Yearling Necromancer Necromancer Necromancer Nice Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 73071,151595,1049542,Notable Question Custodian Critic Yearling Revival Tag Editor Popular Question Revival Caucus Enthusiast Popular Question Yearling Necromancer Famous Question Caucus Revival Census Caucus Yearling Necromancer Necromancer Necromancer Nice Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 73072,7109093,1049542,Notable Question Custodian Critic Yearling Revival Tag Editor Popular Question Revival Caucus Enthusiast Popular Question Yearling Necromancer Famous Question Caucus Revival Census Caucus Yearling Necromancer Necromancer Necromancer Nice Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 73073,149887,840425,Autobiographer,NULL,NULL,0,NULL,NULL 73074,512181,503460,Yearling Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 73075,7865,820120,Yearling,NULL,NULL,0,NULL,NULL 73076,621073,1126455,NULL,NULL,NULL,0,NULL,NULL 73077,142896,997245,NULL,NULL,NULL,0,NULL,NULL 73078,88915,124491,NULL,NULL,NULL,0,NULL,NULL 73079,102367,1549658,NULL,NULL,NULL,0,NULL,NULL 73080,226481,763127,Necromancer Good Answer Custodian Nice Answer Enlightened Investor Altruist Proofreader Custodian Custodian Reviewer Promoter Benefactor Yearling Informed Excavator Suffrage Necromancer Great Answer Caucus Nice Answer javascript Yearling Organizer Revival Nice Answer Nice Answer Pundit Great Answer Documentation User Nice Answer Enlightened Populist Yearling,NULL,NULL,0,NULL,NULL 73081,306330,819399,NULL,NULL,NULL,0,NULL,NULL 73082,469401,661105,NULL,NULL,NULL,0,NULL,NULL 73083,310172,1160766,Nice Question,NULL,NULL,0,NULL,NULL 73084,1172820,864357,NULL,NULL,NULL,0,NULL,NULL 73085,375982,122,Nice Question Good Question Guru Nice Question Famous Question Guru Yearling Nice Answer Enlightened Good Answer Stellar Question Nice Question Stellar Question Good Answer Good Answer Good Answer Nice Question Nice Answer Good Answer Great Answer Yearling Popular Question Good Question Good Question Nice Question Good Question Yearling,NULL,NULL,0,NULL,NULL 73086,307,81017,NULL,NULL,NULL,0,NULL,NULL 73087,758389,872013,Nice Answer Yearling Notable Question Popular Question Yearling Census Self-Learner Great Answer Yearling,NULL,NULL,0,NULL,NULL 73088,167530,1510804,NULL,NULL,NULL,0,NULL,NULL 73089,1374218,1191546,NULL,NULL,NULL,0,NULL,NULL 73090,7062,1111479,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73091,64661,639041,NULL,NULL,NULL,0,NULL,NULL 73092,1520268,1374074,NULL,NULL,NULL,0,NULL,NULL 73093,16020,254065,NULL,NULL,NULL,0,NULL,NULL 73094,143999,796007,Notable Question,NULL,NULL,0,NULL,NULL 73095,320990,87042,NULL,NULL,NULL,0,NULL,NULL 73096,611784,1344028,Self-Learner Caucus Critic,NULL,NULL,0,NULL,NULL 73097,1074234,1552103,NULL,NULL,NULL,0,NULL,NULL 73098,211219,704284,Critic Popular Question,NULL,NULL,0,NULL,NULL 73099,1033633,873537,NULL,NULL,NULL,0,NULL,NULL 73100,411971,1278676,NULL,NULL,NULL,0,NULL,NULL 73101,438509,769138,NULL,NULL,NULL,0,NULL,NULL 73102,55068,1088956,NULL,NULL,NULL,0,NULL,NULL 73103,522697,739009,Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73104,936855,1294632,NULL,NULL,NULL,0,NULL,NULL 73105,52846,721109,Student,NULL,NULL,0,NULL,NULL 73106,917153,1361027,NULL,NULL,NULL,0,NULL,NULL 73107,1507683,456316,NULL,NULL,NULL,0,NULL,NULL 73108,564360,493584,NULL,NULL,NULL,0,NULL,NULL 73109,94981,889039,Scholar Autobiographer Tumbleweed Critic Popular Question,NULL,NULL,0,NULL,NULL 73110,88865,270087,Revival Necromancer,NULL,NULL,0,NULL,NULL 73111,169125,923933,Teacher,NULL,NULL,0,NULL,NULL 73112,187107,886957,NULL,NULL,NULL,0,NULL,NULL 73113,231753,156172,Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 73114,264367,930716,Good Answer Yearling Caucus Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 73115,215831,435526,NULL,NULL,NULL,0,NULL,NULL 73116,1198771,245750,Census,NULL,NULL,0,NULL,NULL 73117,82361,974998,NULL,NULL,NULL,0,NULL,NULL 73118,82325,39992,Populist Guru Good Answer Nice Answer Enlightened Good Answer Notable Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Famous Question Notable Question Nice Answer Enlightened Nice Question Good Answer Nice Answer Yearling Nice Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Guru Famous Question Necromancer Famous Question Yearling Good Answer Nice Answer Nice Answer Nice Answer Nice Question Nice Question Nice Answer Enlightened Nice Answer Good Answer Nice Question Famous Question Good Answer Famous Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 73119,1146501,363731,Yearling,NULL,NULL,0,NULL,NULL 73120,37636,1339631,Yearling Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 73121,137105,815351,NULL,NULL,NULL,0,NULL,NULL 73122,398650,1413996,NULL,NULL,NULL,0,NULL,NULL 73123,169947,74012,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 73124,9664,1221742,Quorum Student Scholar,NULL,NULL,0,NULL,NULL 73125,123599,284708,Investor Suffrage Vox Populi Altruist Proofreader Popular Question Yearling Revival Yearling Nice Question Necromancer Nice Answer Necromancer Yearling,NULL,strongA strong Have look at the href https github com mikeal node utils tree master file file module It has function called walk pblockquote strongfile walk start callback strong pNavigates file tree calling callback for each directory passing in null dirPath dirs files blockquotepThis may be for you And yes it is async However think you would have to aggregate the full path yourself if you needed them pp strongB strong An alternative and even one of my favourites use the unix codefind code for that Why do something again that has already been programmed Maybe not exactly what you need but still worth checking out ppre codevar execFile require child process execFile execFile find somepath function err stdout stderr var file list stdout split now you ve got list with full path file names code prepFind has nice build in caching mechanism that makes subsequent searches very fast as long as only few folder have changed By the way No is not Unix only Only is Unix only However Windows 10 now comes with Linux subsystem So even would just work on Windows nowadays,0,NULL,NULL 73126,2906957,1450875,NULL,NULL,NULL,0,NULL,NULL 73127,337345,377341,Notable Question Self-Learner Informed Custodian Citizen Patrol Custodian Custodian Popular Question Popular Question Caucus Constituent Popular Question Notable Question Nice Question Caucus Constituent Nice Question Yearling,NULL,NULL,0,NULL,NULL 73128,852520,522846,NULL,NULL,NULL,0,NULL,NULL 73129,486362,193418,Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 73130,109249,360593,Favorite Question Necromancer Announcer Popular Question Famous Question Popular Question Nice Question Popular Question Notable Question Nice Question Yearling Tumbleweed Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73131,3299149,1268843,Nice Answer Enlightened Yearling Good Answer Guru Yearling Documentation User Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73132,177095,1183800,NULL,NULL,NULL,0,NULL,NULL 73133,733587,1236964,NULL,NULL,NULL,0,NULL,NULL 73134,622064,1102457,NULL,NULL,NULL,0,NULL,NULL 73135,351527,542146,Peer Pressure Commentator Curious,NULL,NULL,0,NULL,NULL 73136,898094,962579,NULL,NULL,NULL,0,NULL,NULL 73137,337061,688685,NULL,NULL,NULL,0,NULL,NULL 73138,287746,555244,NULL,NULL,NULL,0,NULL,NULL 73139,292016,910548,Yearling Popular Question Announcer Popular Question Caucus Civic Duty Yearling Announcer Popular Question,NULL,NULL,0,NULL,NULL 73140,1503621,1380169,Teacher Curious Popular Question Revival Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73141,88103,122211,Popular Question Curious Notable Question Critic,NULL,NULL,0,NULL,NULL 73142,654761,1048542,NULL,NULL,NULL,0,NULL,NULL 73143,1211782,1135296,Nice Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 73144,220623,1126947,NULL,NULL,NULL,0,NULL,NULL 73145,1861945,571988,NULL,NULL,NULL,0,NULL,NULL 73146,10641480,687739,Popular Question Custodian Good Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Notable Question Favorite Question Notable Question Famous Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Popular Question Great Question Notable Question Good Question Popular Question Nice Answer Notable Question Popular Question Famous Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73147,142631,687739,Popular Question Custodian Good Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Notable Question Favorite Question Notable Question Famous Question Popular Question Notable Question Nice Question Yearling Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Nice Question Popular Question Great Question Notable Question Good Question Popular Question Nice Answer Notable Question Popular Question Famous Question Nice Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73148,740117,496619,NULL,NULL,NULL,0,NULL,NULL 73149,2666,250006,Yearling,NULL,NULL,0,NULL,NULL 73150,20377,13289,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 73151,1957354,1112354,Nice Answer Caucus Constituent Yearling Caucus Constituent Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 73152,119342,226341,NULL,NULL,NULL,0,NULL,NULL 73153,240917,212072,NULL,NULL,NULL,0,NULL,NULL 73154,1175292,774522,NULL,NULL,NULL,0,NULL,NULL 73155,226628,5918,Good Answer Notable Question Notable Question Yearling Caucus Good Answer Yearling Census Custodian Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 73156,838524,1243360,NULL,NULL,NULL,0,NULL,NULL 73157,84111,526390,Notable Question Nice Question Civic Duty Yearling Notable Question Notable Question Famous Question Popular Question Nice Answer Yearling Nice Question Favorite Question Notable Question Notable Question Popular Question Great Question Yearling,NULL,monitoring node js server node js pI am looking for way to get some sort of monitoring statistic or management data out of node js server instance not sure what to search for or where to start Any advice appreciated ppStats would be requests processed if applicable number of connections and so on Have try of https keymetrics io node js Code Protection javascript node js source code protection pI want to use node js in my next project but my boss does not like that our competitors can read the source code ppIs there way to protect the JavaScript code Seems to be nice algorithm for Node js projects http enclosejs com How to run shell script at startup linux node js init forever pOn an amazon linux instance have two scripts called codestart my app code and codestop my app code which start and stop em href https www npmjs com package forever rel noreferrer forever em which in turn runs my node js app use these scripts to manually start and stop my node app So far so good ppMy problem also want to set it up such that codestart my app code is run whenever the system boots up know that need to add file inside codeinit code and know how to symlink it to the proper directory within coderc code but can figure out what actually needs to go inside the file that place in codeinit code thinking it should be just one line like codestart my app code but that hasn been working for me pm2 start my app pm2 startup pm2 savehttps github com Unitech pm2,0,NULL,NULL 73158,447337,526390,Notable Question Nice Question Civic Duty Yearling Notable Question Notable Question Famous Question Popular Question Nice Answer Yearling Nice Question Favorite Question Notable Question Notable Question Popular Question Great Question Yearling,NULL,monitoring node js server node js pI am looking for way to get some sort of monitoring statistic or management data out of node js server instance not sure what to search for or where to start Any advice appreciated ppStats would be requests processed if applicable number of connections and so on Have try of https keymetrics io node js Code Protection javascript node js source code protection pI want to use node js in my next project but my boss does not like that our competitors can read the source code ppIs there way to protect the JavaScript code Seems to be nice algorithm for Node js projects http enclosejs com How to run shell script at startup linux node js init forever pOn an amazon linux instance have two scripts called codestart my app code and codestop my app code which start and stop em href https www npmjs com package forever rel noreferrer forever em which in turn runs my node js app use these scripts to manually start and stop my node app So far so good ppMy problem also want to set it up such that codestart my app code is run whenever the system boots up know that need to add file inside codeinit code and know how to symlink it to the proper directory within coderc code but can figure out what actually needs to go inside the file that place in codeinit code thinking it should be just one line like codestart my app code but that hasn been working for me pm2 start my app pm2 startup pm2 savehttps github com Unitech pm2,0,NULL,NULL 73159,695679,737303,Nice Answer Revival Good Question Autobiographer Yearling Necromancer Notable Question Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 73160,10120,783498,NULL,NULL,NULL,0,NULL,NULL 73161,716026,795394,NULL,NULL,NULL,0,NULL,NULL 73162,410869,208706,Nice Question Yearling,NULL,NULL,0,NULL,NULL 73163,246565,585865,Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 73164,107738,89025,Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 73165,106083,137041,Notable Question Notable Question Good Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73166,354714,250427,NULL,NULL,NULL,0,NULL,NULL 73167,25960,1456939,Yearling Announcer Yearling Editor Yearling,NULL,NULL,0,NULL,NULL 73168,1076652,1052755,Enthusiast Autobiographer Census,NULL,NULL,0,NULL,NULL 73169,185372,1143618,NULL,NULL,NULL,0,NULL,NULL 73170,602416,21379,Yearling Custodian Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73171,50026,12606,Good Answer Necromancer Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 73172,2658682,12606,Good Answer Necromancer Yearling Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 73173,89944,1517515,Supporter Informed Autobiographer,NULL,NULL,0,NULL,NULL 73174,16472,201201,Popular Question,NULL,NULL,0,NULL,NULL 73175,85307,947464,NULL,NULL,NULL,0,NULL,NULL 73176,530877,1143489,NULL,NULL,NULL,0,NULL,NULL 73177,167959,11470,Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73178,167125,1503387,NULL,NULL,NULL,0,NULL,NULL 73179,29555,477010,NULL,NULL,NULL,0,NULL,NULL 73180,3796251,406057,Necromancer,NULL,NULL,0,NULL,NULL 73181,390785,694184,Nice Question Nice Question Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Nice Answer Famous Question Good Answer Yearling Guru Notable Question Nice Question Nice Answer Enlightened Popular Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 73182,301816,636890,NULL,NULL,NULL,0,NULL,NULL 73183,319640,689692,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73184,31498,941325,NULL,NULL,NULL,0,NULL,NULL 73185,400720,22111,Yearling,NULL,NULL,0,NULL,NULL 73186,105520,217652,Yearling Nice Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 73187,961698,217652,Yearling Nice Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 73188,35174,354519,Editor Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 73189,270000,272190,NULL,NULL,NULL,0,NULL,NULL 73190,61051,1118299,NULL,NULL,NULL,0,NULL,NULL 73191,108871,86463,Nice Question Yearling Nice Answer Good Answer Yearling Nice Answer Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 73192,481051,1533863,Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73193,422647,1034922,NULL,NULL,NULL,0,NULL,NULL 73194,152087,432389,NULL,NULL,NULL,0,NULL,NULL 73195,157919,1398840,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73196,658776,315711,Yearling Notable Question Famous Question Popular Question Popular Question Notable Question Nice Question Nice Question Good Question Popular Question Notable Question Notable Question Yearling Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 73197,175786,108848,Yearling Organizer Revival Yearling Excavator Popular Question Census Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 73198,223338,96242,Census Yearling Famous Question,NULL,NULL,0,NULL,NULL 73199,235103,111849,Yearling Custodian Custodian Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 73200,39283,34799,Good Answer Popular Question Pundit Nice Answer Notable Question Good Answer Announcer Yearling Populist Famous Question Popular Question Good Question Revival Guru Popular Question Necromancer Nice Answer Popular Question Notable Question Announcer Popular Question Necromancer Necromancer Notable Question Necromancer Necromancer Announcer Yearling Revival Notable Question Announcer Nice Answer Announcer Nice Answer Announcer Famous Question Good Question Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73201,382108,274008,Yearling Nice Answer Enlightened Nice Answer Popular Question Nice Answer Yearling Good Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 73202,206507,65934,Yearling Notable Question Famous Question Good Question Famous Question Notable Question Popular Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 73203,770298,460612,Documentation User Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73204,611303,684363,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 73205,343318,573029,NULL,NULL,NULL,0,NULL,NULL 73206,164880,457565,Yearling Popular Question Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 73207,363815,330871,NULL,NULL,NULL,0,NULL,NULL 73208,81534,537741,NULL,NULL,NULL,0,NULL,NULL 73209,4400243,345304,NULL,NULL,NULL,0,NULL,NULL 73210,102736,345304,NULL,NULL,NULL,0,NULL,NULL 73211,271574,347334,Caucus,NULL,NULL,0,NULL,NULL 73212,79370,33647,Yearling Yearling,NULL,NULL,0,NULL,NULL 73213,263939,88605,Tumbleweed Popular Question Nice Question Yearling Nice Question Popular Question Popular Question Notable Question Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 73214,323551,489961,NULL,NULL,NULL,0,NULL,NULL 73215,1201850,274313,NULL,NULL,NULL,0,NULL,NULL 73216,505876,836451,NULL,NULL,NULL,0,NULL,NULL 73217,187442,567676,Commentator Nice Question Yearling Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 73218,8648594,1007365,NULL,NULL,NULL,0,NULL,NULL 73219,94857,256355,Yearling Yearling Favorite Question,NULL,NULL,0,NULL,NULL 73220,456039,516418,Necromancer Commentator Excavator Nice Answer Yearling Announcer Critic,NULL,NULL,0,NULL,NULL 73221,223324,983578,NULL,NULL,NULL,0,NULL,NULL 73222,157231,220974,NULL,NULL,NULL,0,NULL,NULL 73223,21974,785113,NULL,NULL,NULL,0,NULL,NULL 73224,487391,113329,Necromancer Yearling Popular Question Yearling Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 73225,155908,187228,NULL,NULL,NULL,0,NULL,NULL 73226,100818,5556,Notable Question Great Answer Yearling Yearling Great Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 73227,204285,572344,NULL,NULL,NULL,0,NULL,NULL 73228,716600,597635,Tumbleweed Good Answer Famous Question,NULL,NULL,0,NULL,NULL 73229,258409,936853,NULL,NULL,NULL,0,NULL,NULL 73230,1547970,459516,Good Answer Nice Answer Enlightened Yearling Popular Question Yearling Announcer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 73231,419301,1482513,NULL,NULL,NULL,0,NULL,NULL 73232,380654,530339,Informed Nice Answer Enlightened Guru Yearling Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 73233,1091145,1437026,NULL,NULL,NULL,0,NULL,NULL 73234,133682,1084647,Civic Duty Tenacious Yearling Guru Custodian Nice Question Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Popular Question Explainer Organizer Nice Answer,NULL,NULL,0,NULL,NULL 73235,89795,464244,NULL,NULL,NULL,0,NULL,NULL 73236,513874,1146128,Autobiographer Caucus,NULL,NULL,0,NULL,NULL 73237,356043,366493,Popular Question Guru Popular Question java Famous Question Yearling Great Answer Custodian Yearling Notable Question Notable Question Curious Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 73238,906943,1164649,NULL,NULL,NULL,0,NULL,NULL 73239,626790,209835,Teacher Popular Question,NULL,NULL,0,NULL,NULL 73240,467928,16318,Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 73241,166049,505299,Notable Question Investor,NULL,NULL,0,NULL,NULL 73242,1758969,390692,Editor,NULL,NULL,0,NULL,NULL 73243,18618,452057,Enthusiast,NULL,NULL,0,NULL,NULL 73244,379561,443513,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 73245,3331968,639241,NULL,NULL,NULL,0,NULL,NULL 73246,183748,913034,NULL,NULL,NULL,0,NULL,NULL 73247,289859,1246739,Revival Editor Commentator Nice Question Popular Question Caucus Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 73248,312801,1554265,Editor Excavator,NULL,NULL,0,NULL,NULL 73249,1441340,1554265,Editor Excavator,NULL,NULL,0,NULL,NULL 73250,844804,1315498,Good Question Pundit Yearling Famous Question Electorate Custodian Custodian Popular Question Popular Question Inquisitive Popular Question Popular Question Caucus Constituent Popular Question Popular Question Notable Question Famous Question Census Popular Question Favorite Question Popular Question Yearling Notable Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Favorite Question Notable Question Documentation User Notable Question Popular Question Popular Question Popular Question Popular Question Census Caucus Yearling Popular Question Notable Question Enlightened Nice Answer Popular Question Popular Question Popular Question Great Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73251,11063,194044,Custodian Steward Yearling Famous Question Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 73252,70653,502409,NULL,NULL,NULL,0,NULL,NULL 73253,528025,534943,Citizen Patrol Custodian Informed Organizer Yearling Custodian Custodian Suffrage Vox Populi Yearling Autobiographer Yearling Enthusiast Explainer Guru Reviewer Custodian Custodian Custodian Tenacious Civic Duty Deputy Excavator Proofreader Revival Strunk & White Reviewer Reviewer Unsung Hero Reviewer Reviewer javascript Talkative Steward Custodian Custodian Fanatic Yearling meteor Caucus,NULL,NULL,0,NULL,NULL 73254,133552,1393005,NULL,NULL,NULL,0,NULL,NULL 73255,169991,1151466,NULL,NULL,NULL,0,NULL,NULL 73256,4492,270274,Nice Answer Yearling Necromancer Notable Question Popular Question Nice Answer Caucus Necromancer Great Answer Enthusiast Good Answer Favorite Question Good Question Yearling Notable Question Famous Question Nice Question javascript Necromancer Investor Nice Answer Altruist Electorate Caucus Popular Question Critic Necromancer Necromancer Notable Question Documentation User Nice Question Good Answer Popular Question Nice Question Yearling Notable Question Popular Question Great Answer Notable Question Nice Answer Nice Answer,NULL,pI recently came across the same issue wanted hook so that push from my git submodule would commit the new submodule reference in the superproject ppAs Chris mentioned the best way is to just use git alias like this ppre code git config alias xpush git push amp amp update server sh remember the backslash before the if your shell requires it code prepThis adds the following to your git config file ppre code alias xpush git push amp amp update server sh code prepAnd so now if you type ppre code git xpush code prepyour changes will be pushed and then update server sh will be executed Note that overriding an existing command is not possible with git alias see https stackoverflow com questions 3538774 is it possible to override git command by git alias How to check whether script is running under node js javascript node js commonjs pI have script am requiring from node js script which want to keep javascript engine independent ppSo for example want to do ppre codeexports code preponly if it running under node js how can perform this test pp strongEdit strong When posting this question didn know the node js modules feature is based on href http www commonjs org rel noreferrer commonjs ppFor the specific example gave more accurate question would ve been ppHow can script tell whether it has been required as commonjs module See https stackoverflow com questions 17575790 environment detection node js or browser,1,NULL,use transition on webkit scrollbar css webkit scrollbar css transitions pis it possible to use transitions on webkit scrollbars tried ppre codediv main webkit scrollbar thumb background rgba 255 204 102 25 webkit transition background 1s transition background 1s div main hover webkit scrollbar thumb background rgba 255 204 102 code prepbut it isn working Or is it possible to create similar effect without javascript pp href http jsfiddle net Cjj6v Here is jsfiddle showing the rgba transition problem pIt is fairly easy to achieve using Mari codebackground color inherit code technique in addition with code webkit background clip text code ppLive demo href https jsfiddle net s10f04du rel noreferrer https jsfiddle net s10f04du ppre code screen and webkit min device pixel ratio container overflow scroll overflow hidden background color rgba webkit background clip text transition background color 8s container hover background color rgba 18 container webkit scrollbar thumb background color inherit code pre 73257,180632,304337,Popular Question,NULL,NULL,0,NULL,NULL 73258,142780,713077,Popular Question Yearling Good Question Curious,NULL,NULL,0,NULL,NULL 73259,33587,145781,Yearling,NULL,NULL,0,NULL,NULL 73260,4041705,145781,Yearling,NULL,NULL,0,NULL,NULL 73261,98698,85800,Nice Question Yearling Nice Question Good Answer Popular Question Yearling Famous Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 73262,4393035,1369766,NULL,NULL,NULL,0,NULL,NULL 73263,150679,1375086,Informed,NULL,NULL,0,NULL,NULL 73264,844892,983185,Popular Question,NULL,NULL,0,NULL,NULL 73265,1518007,1204307,NULL,NULL,NULL,0,NULL,NULL 73266,428319,1279879,NULL,NULL,NULL,0,NULL,NULL 73267,3190947,1233922,Fanatic Notable Question Excavator Electorate Yearling Popular Question Necromancer Caucus Census Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 73268,388773,1086033,NULL,NULL,NULL,0,NULL,NULL 73269,202110,519814,Self-Learner Necromancer Good Answer Popular Question Nice Answer Nice Question Popular Question Great Answer Good Answer Yearling Good Answer android Good Answer Nice Answer Popular Question Popular Question Nice Answer Necromancer Popular Question Documentation User Revival Yearling Popular Question Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 73270,352593,1381039,Investor Notable Question Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Teacher Promoter Popular Question,NULL,NULL,0,NULL,NULL 73271,1140706,1005756,NULL,NULL,NULL,0,NULL,NULL 73272,1518579,329879,Yearling Editor Curious Commentator Announcer,NULL,NULL,0,NULL,NULL 73273,48442,114770,Nice Answer Nice Answer Notable Question Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened Revival Necromancer Good Answer Generalist Nice Answer Enlightened Yearling Nice Answer Documentation User Good Answer Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 73274,276646,731066,NULL,NULL,NULL,0,NULL,NULL 73275,122515,94947,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 73276,1372056,1446753,NULL,NULL,NULL,0,NULL,NULL 73277,165518,1062359,Enthusiast Notable Question Curious Caucus Yearling Popular Question Critic,NULL,NULL,0,NULL,NULL 73278,540844,911834,NULL,NULL,NULL,0,NULL,NULL 73279,17102,471094,NULL,NULL,NULL,0,NULL,NULL 73280,889377,17514,Yearling Yearling Student Good Answer,NULL,NULL,0,NULL,NULL 73281,105051,301994,NULL,NULL,NULL,0,NULL,NULL 73282,365060,478962,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 73283,154314,866411,NULL,NULL,NULL,0,NULL,NULL 73284,1023476,1177910,Notable Question,NULL,NULL,0,NULL,NULL 73285,954443,1477738,Editor Famous Question Teacher,NULL,NULL,0,NULL,NULL 73286,87761,871922,Editor,NULL,NULL,0,NULL,NULL 73287,32037,1295614,NULL,NULL,NULL,0,NULL,NULL 73288,41599,1021845,NULL,NULL,NULL,0,NULL,NULL 73289,435906,1192967,NULL,NULL,NULL,0,NULL,NULL 73290,557346,982957,NULL,NULL,NULL,0,NULL,NULL 73291,66089,24949,Popular Question Popular Question Popular Question Notable Question Revival Famous Question Popular Question Announcer Nice Question Nice Question Good Question Notable Question Popular Question Famous Question Famous Question Popular Question Nice Question Notable Question Popular Question Favorite Question Announcer Notable Question Yearling Nice Question Popular Question Famous Question Popular Question Favorite Question Nice Question Popular Question Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Famous Question Famous Question Popular Question Yearling Nice Question Popular Question Famous Question Famous Question Notable Question Necromancer Great Question Nice Question Announcer Great Answer Good Question Nice Answer Enlightened Favorite Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 73292,677895,991198,Notable Question Yearling Popular Question Popular Question Popular Question Necromancer Popular Question Announcer Nice Answer Custodian Popular Question Yearling Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 73293,41962,70914,NULL,NULL,NULL,0,NULL,NULL 73294,2358947,1049244,NULL,NULL,NULL,0,NULL,NULL 73295,77046,424246,NULL,NULL,NULL,0,NULL,NULL 73296,3741551,1444752,Peer Pressure Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73297,3741712,1444752,Peer Pressure Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73298,183774,1444752,Peer Pressure Teacher Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73299,894667,1105556,Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Famous Question Nice Answer Popular Question Notable Question Popular Question Notable Question Notable Question Nice Question Yearling Popular Question Popular Question Famous Question Notable Question Popular Question Yearling Famous Question Popular Question Nice Answer Popular Question Popular Question Nice Question Good Answer Yearling Famous Question Notable Question,NULL,NULL,0,NULL,NULL 73300,158273,169182,Tumbleweed Commentator Caucus Caucus Custodian Curious Revival Self-Learner,NULL,NULL,0,NULL,NULL 73301,378339,657845,Nice Question,NULL,NULL,0,NULL,NULL 73302,35256,73831,Good Question Yearling Good Question Nice Answer Good Question Good Answer Famous Question Notable Question Necromancer Notable Question Nice Question Popular Question Nice Answer Nice Question Popular Question Yearling Popular Question Popular Question Famous Question Notable Question Civic Duty Good Answer Nice Answer Census Nice Question Notable Question Yearling Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 73303,369176,265117,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73304,390015,903593,Notable Question Good Answer,NULL,NULL,0,NULL,NULL 73305,379000,1103154,Notable Question Revival Commentator Popular Question Necromancer,NULL,NULL,0,NULL,NULL 73306,927231,156896,Yearling Caucus Caucus Civic Duty Caucus Announcer Populist,NULL,NULL,0,NULL,NULL 73307,83041,493356,Commentator Necromancer Caucus Critic Informed Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73308,83897,1013142,Yearling Organizer Investor Custodian Custodian Yearling Excavator Custodian Explainer Yearling Yearling Tenacious Caucus Constituent Enthusiast Documentation User Yearling Census Caucus Strunk & White Unsung Hero Custodian Yearling,NULL,NULL,0,NULL,NULL 73309,306894,341461,NULL,NULL,NULL,0,NULL,NULL 73310,501478,878252,NULL,NULL,NULL,0,NULL,NULL 73311,76866,1507200,NULL,NULL,NULL,0,NULL,NULL 73312,544058,582326,Yearling Critic Excavator Necromancer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 73313,192820,1301551,NULL,NULL,NULL,0,NULL,NULL 73314,132817,1400101,NULL,NULL,NULL,0,NULL,NULL 73315,269687,1459474,NULL,NULL,NULL,0,NULL,NULL 73316,580335,1163034,NULL,NULL,NULL,0,NULL,NULL 73317,538979,670206,Teacher Supporter Suffrage Organizer Excavator Commentator Critic Yearling Vox Populi Yearling Citizen Patrol Custodian Custodian Custodian Civic Duty Yearling Yearling Reviewer Enthusiast Tenacious Deputy Electorate Explainer Reviewer Custodian Custodian Mortarboard Custodian Strunk & White Tag Editor matlab Unsung Hero Refiner Talkative Nice Answer Enlightened Yearling Cleanup python Nice Answer Enlightened matlab Custodian Custodian Proofreader Reviewer Reviewer Reviewer Steward Fanatic matlab-figure Copy Editor Nice Answer Enlightened Revival Necromancer Nice Answer Enlightened Nice Answer Enlightened Outspoken Steward Reviewer matlab Steward Steward Pundit matrix Reviewer Epic Steward arrays Steward image-processing Nice Answer Enlightened plot Caucus Marshal Constituent Nice Answer Announcer octave Nice Answer Enlightened Necromancer Census Good Answer matplotlib Good Answer Yearling matlab-figure Nice Answer Enlightened matlab-struct Nice Answer Guru numpy Caucus Constituent Nice Answer Nice Answer Enlightened python Documentation User Taxonomist Nice Answer Nice Answer Great Answer Census Announcer Nice Answer Enlightened Curious Caucus Announcer Yearling Announcer Good Answer Nice Answer Enlightened,NULL,NULL,1,NULL,Replace quiver arrowheads with images matlab matlab figure pI have circular lattice and on the lattice sites plot normalized arrows that remain in the same magnitude and change direction according to simulation the details of which don matter ppMy plots look like this pp href https stack imgur com ba5eZ png rel noreferrer img src https stack imgur com ba5eZ png alt enter image description here ppIs it possible to replace the arrow in the quiver plot by an jpg bmp gif png image or by any other command ppIdeally it would look something like this although not necessarily arrows pp href https stack imgur com z5ggO png rel noreferrer img src https stack imgur com z5ggO png alt enter image description here h1Explanation h1pOne way that you can do this would be to use href http www mathworks com help matlab ref surf html refresh true rel noreferrer surface object with href http www mathworks com help matlab visualize coloring mesh and surface plots html f0 9250 rel noreferrer texture map as the codeFaceColor code ppIn MATLAB you can create simple rectangular surface You can set the href http www mathworks com help matlab ref primitivesurface properties html property facecolor rel noreferrer codeFaceColor code to be codetexturemap code which will cause the value assigned to href http www mathworks com help matlab ref primitivesurface properties html property cdata rel noreferrer codeCData code to be mapped across the surface ppThen to get transparency you can also set the href http www mathworks com help matlab ref primitivesurface properties html property facealpha rel noreferrer codeFaceAlpha code value to be codetexturemap code and set the href http www mathworks com help matlab ref primitivesurface properties html property alphadata rel noreferrer codeAlphaData code and those transparency values will be mapped across the extent of the surface as well ppFor this to be applied to your case you want to set the codeCData code to the image that you want to use to replace your arrows And you will want the codeAlphaData code to be the same size as your image data with values of where you want it to be opaque and where you want it to be transparent This will allow it to not look like the image that you have posted where you can clearly see the bounding box Then you will need to draw one of these surfaces where each of the arrows would go and scale position it appropriately ph1Implementation h1p strongUpdate more polished version of this code codeImageQuiver code is now available on href https github com suever ImageQuiver rel noreferrer Github as well as the href http www mathworks com matlabcentral fileexchange 56139 imagequiver rel noreferrer MATLAB File Exchange strong ppAs demonstration of what talking about have created the following function which essentially does just this It accepts the same inputs as codequiver code with the image data being supplied first and an optional codeAlphaData code parameter at the end and creates surface at all of the requested coordinates pointing in the requested direction and scaled by the specified amount ppre codefunction quiverpic im dX dY scale alpha im RGB or indexed image positions positions dX direction vector dY direction vector scale Any scaling Default alpha Transparency same size as im if not specified isnan im hggroup if exist scale var By default there is no scaling scale end if exist alpha var By default any NaN will be transparent alpha isnan im end Determine aspect ratio of the source image width to height size im size im for numel Determine angle from displacement vectors theta atan2 dY dX Subtract pi to is considered up theta theta pi Setup surface plot boundary xx yy meshgrid width to height Scale depending on magnitude of dX and dY this scale scale sqrt dX dY Scale and components prior to rotating xx xx this scale yy yy this scale Rotate to align with the desired direction xdata xx cos theta yy sin theta ydata xx sin theta yy cos theta Determine what is considered the anchor of the graphic For now this is assumed to be the bottom middle xoffset mean xdata yoffset mean ydata Actually plot the surface surf xdata xoffset ydata yoffset zeros Parent FaceColor texture EdgeColor none CData im FaceAlpha texture AlphaData double alpha endend code preh1Example h1pI wrote little test script to show how this can be used and to show the results ppre codet linspace pi 13 dX cos end dY sin end dX dY scale Load the MATLAB logo as an example imagepng fullfile matlabroot toolbox matlab icons matlabicon gif im map imread png im ind2rgb im map Determine alpha channel based on upper left hand corner pixelflatim reshape im alpha ismember flatim squeeze im rows alpha reshape alpha size im Plot some things prior to creating the quiverpic objectfig figure hax axes Parent fig axis hax equal Plot full circlet linspace pi 100 plot cos sin hold hax on Plot markers at all the quiver centersplot MarkerFaceColor Plot random image behind everything to demonstrate transparencyhim imagesc rand uistack him bottom axis hax equal colormap fig gray set hax clim Now plot the quiverpich quiverpic im dX dY alpha axis hax tight code preh1Results h1p href https stack imgur com X7uJ0 png rel noreferrer img src https stack imgur com X7uJ0 png alt enter image description here ph1Absurdity h1pSame image with varying vectors and scaling pp href https stack imgur com 2yc84 gif rel noreferrer img src https stack imgur com 2yc84 gif alt enter image description here ppAny image of any aspect ratio will work just fine pp href https imgur com 2P2EqbD gif rel noreferrer img src https imgur com 2P2EqbD gif alt enter image description here 73318,1346070,9241,Yearling Self-Learner Nice Answer Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 73319,379812,1096818,NULL,NULL,NULL,0,NULL,NULL 73320,887219,1032038,NULL,NULL,NULL,0,NULL,NULL 73321,6484848,1032038,NULL,NULL,NULL,0,NULL,NULL 73322,5479,1133177,Yearling Explainer Custodian Informed Custodian Citizen Patrol Census Enthusiast,NULL,NULL,0,NULL,NULL 73323,77807,22466,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 73324,99055,917579,NULL,NULL,NULL,0,NULL,NULL 73325,31217,319179,NULL,NULL,NULL,0,NULL,NULL 73326,95878,1153157,Enthusiast,NULL,NULL,0,NULL,NULL 73327,257843,673592,Popular Question Yearling Necromancer Tumbleweed Custodian Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73328,217563,792235,NULL,NULL,NULL,0,NULL,NULL 73329,1548851,1061294,NULL,NULL,NULL,0,NULL,NULL 73330,43401,1246488,NULL,NULL,NULL,0,NULL,NULL 73331,1786232,209834,Custodian Popular Question Popular Question Revival Popular Question Revival Necromancer Popular Question Yearling Good Answer Nice Answer Necromancer Popular Question Nice Answer Enlightened Custodian Yearling Good Answer Popular Question Taxonomist Great Question Nice Answer Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 73332,140502,1383983,NULL,NULL,NULL,0,NULL,NULL 73333,368312,171520,Popular Question Popular Question Caucus Notable Question Yearling Nice Question Caucus Revival Nice Question Self-Learner Yearling Caucus Popular Question Nice Question Necromancer Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 73334,150593,1178921,Custodian Famous Question Yearling Custodian Proofreader Explainer Reviewer Announcer Revival Excavator Caucus Constituent Yearling Good Answer Custodian Census Yearling Caucus Promoter Necromancer Nice Answer,NULL,pIt been while since asked this question and much more familiar with the cryptographic theory now so here is the more modern approach ph2Reasoning h2ulliDon use md5 Don use single cycle of sha family quick hashes Quick hashes help attackers so you don want that liliUse resource intensive hash like bcrypt instead Bcrypt is time tested and scales up to be future proof able liliDon bother rolling your own salt you might screw up your own security or portability rely on gen salt to generate it awesome unique to each use salts on it own liliIn general don be an idiot don try to write your own homegrown crypto just use what smart people have provided li ulh2Debian Ubuntu install packages h2pre codesudo apt get install postgresql of course sudo apt get install postgresql contrib libpq dev gets bcrypt crypt and gen salt sudo apt get install php5 pgsql optional if you re using postgresql with php code preh2Activate crypt and bcrypt in postgresql in your database h2pre code Create your database first then cd pg config sharedir Move to the postgres directory that holds these scripts echo create extension pgcrypto psql yOuRdATaBaSeNaMe enable the pgcrypo extension code preh2Use crypt and gen salt in queries h2pCompare pass to existing hash with ppre codeselect from accounts where password hash crypt pass password hash note how the existing hash is used as its own individualized salt code prepCreate hash of password with great random salt ppre codeinsert into accounts password values crypt password gen salt bf the is the work factor code preh2From in Php bcrypt hashing is slightly preferrable h2pThere are codepassword code functions in php and above that allow trivially simple password hashing with bcrypt about time and there is backward compatibility library for versions below that emGenerally em that hashing falls back to wrapping linux system call for lower CPU usage anyway though you may want to ensure it installed on your server See href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat requires php ph2Be careful of logging h2pNote that with pg crypto the passwords are in plaintext all during the transmission from the browser to php to the database This means they can be logged emin plaintext em from queries if you re not careful with your database logs having postgresql slow query log could catch and log the password from login query in progress ph2In Summary h2pUse php bcrypt if you can it ll lessen the time that the password remains unhashed Try to ensure your linux system has bcrypt installed in it codecrypt code so that is performant Upgrade to at least php is highly recommended as php implementation is slightly buggy from php to and inappropriately falls back to the broken codeDES code without warning in php and lower ppIf you want need in postgres hashing installing bcrypt is the way to go as the default installed hashes are old and broken md5 etc ppHere are references for more reading on the topic pulli href http codahale com how to safely store password rel noreferrer http codahale com how to safely store password lili href http www postgresql org docs static pgcrypto html rel noreferrer http www postgresql org docs static pgcrypto html lili href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat li ul had GIANT freakout and rewrote bunch of code after reading about the logging issue here Then realized that was using parameterized queries which meant that my db logs didn have plaintext content in them Notably when using pgp encryption needed to pass my public private key string as parameter as well to avoid logging,0,NULL,NULL 73335,741193,1178921,Custodian Famous Question Yearling Custodian Proofreader Explainer Reviewer Announcer Revival Excavator Caucus Constituent Yearling Good Answer Custodian Census Yearling Caucus Promoter Necromancer Nice Answer,NULL,pIt been while since asked this question and much more familiar with the cryptographic theory now so here is the more modern approach ph2Reasoning h2ulliDon use md5 Don use single cycle of sha family quick hashes Quick hashes help attackers so you don want that liliUse resource intensive hash like bcrypt instead Bcrypt is time tested and scales up to be future proof able liliDon bother rolling your own salt you might screw up your own security or portability rely on gen salt to generate it awesome unique to each use salts on it own liliIn general don be an idiot don try to write your own homegrown crypto just use what smart people have provided li ulh2Debian Ubuntu install packages h2pre codesudo apt get install postgresql of course sudo apt get install postgresql contrib libpq dev gets bcrypt crypt and gen salt sudo apt get install php5 pgsql optional if you re using postgresql with php code preh2Activate crypt and bcrypt in postgresql in your database h2pre code Create your database first then cd pg config sharedir Move to the postgres directory that holds these scripts echo create extension pgcrypto psql yOuRdATaBaSeNaMe enable the pgcrypo extension code preh2Use crypt and gen salt in queries h2pCompare pass to existing hash with ppre codeselect from accounts where password hash crypt pass password hash note how the existing hash is used as its own individualized salt code prepCreate hash of password with great random salt ppre codeinsert into accounts password values crypt password gen salt bf the is the work factor code preh2From in Php bcrypt hashing is slightly preferrable h2pThere are codepassword code functions in php and above that allow trivially simple password hashing with bcrypt about time and there is backward compatibility library for versions below that emGenerally em that hashing falls back to wrapping linux system call for lower CPU usage anyway though you may want to ensure it installed on your server See href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat requires php ph2Be careful of logging h2pNote that with pg crypto the passwords are in plaintext all during the transmission from the browser to php to the database This means they can be logged emin plaintext em from queries if you re not careful with your database logs having postgresql slow query log could catch and log the password from login query in progress ph2In Summary h2pUse php bcrypt if you can it ll lessen the time that the password remains unhashed Try to ensure your linux system has bcrypt installed in it codecrypt code so that is performant Upgrade to at least php is highly recommended as php implementation is slightly buggy from php to and inappropriately falls back to the broken codeDES code without warning in php and lower ppIf you want need in postgres hashing installing bcrypt is the way to go as the default installed hashes are old and broken md5 etc ppHere are references for more reading on the topic pulli href http codahale com how to safely store password rel noreferrer http codahale com how to safely store password lili href http www postgresql org docs static pgcrypto html rel noreferrer http www postgresql org docs static pgcrypto html lili href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat li ul had GIANT freakout and rewrote bunch of code after reading about the logging issue here Then realized that was using parameterized queries which meant that my db logs didn have plaintext content in them Notably when using pgp encryption needed to pass my public private key string as parameter as well to avoid logging,0,NULL,NULL 73336,164178,1508181,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73337,1135306,777128,NULL,NULL,NULL,0,NULL,NULL 73338,490398,705542,Teacher,NULL,NULL,0,NULL,NULL 73339,182934,746680,Yearling Peer Pressure Caucus Nice Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73340,891774,408738,Famous Question Yearling Nice Answer Popular Question Good Answer Popular Question Yearling Notable Question Popular Question Popular Question Yearling Guru Great Question,NULL,NULL,0,NULL,NULL 73341,4397384,812448,NULL,NULL,NULL,0,NULL,NULL 73342,463762,812448,NULL,NULL,NULL,0,NULL,NULL 73343,519369,630733,NULL,NULL,NULL,0,NULL,NULL 73344,1370023,1436578,Nice Answer Necromancer Yearling Tumbleweed Notable Question Caucus Nice Answer Custodian Caucus Popular Question,NULL,NULL,0,NULL,NULL 73345,37727,231834,NULL,NULL,NULL,0,NULL,NULL 73346,360945,572292,NULL,NULL,NULL,0,NULL,NULL 73347,109636,1261883,Custodian Yearling Tenacious Notable Question Yearling Revival Revival Custodian Revival Caucus Constituent Census Yearling Caucus Constituent Census Caucus Constituent,NULL,NULL,0,NULL,NULL 73348,1084878,244687,NULL,NULL,NULL,0,NULL,NULL 73349,180211,697577,NULL,NULL,NULL,0,NULL,NULL 73350,621186,634977,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 73351,658119,493262,NULL,NULL,NULL,0,NULL,NULL 73352,10753,751756,Nice Answer Tumbleweed,NULL,NULL,0,NULL,NULL 73353,447049,914502,Famous Question Yearling Popular Question Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 73354,133595,227176,Investor Altruist Announcer Announcer Necromancer Popular Question node.js Great Answer Nice Answer Caucus Yearling Announcer Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Announcer Announcer Notable Question Documentation User Good Answer Good Answer Notable Question Popular Question Yearling Custodian Promoter Benefactor Famous Question Custodian Good Answer javascript Nice Answer Enlightened Nice Answer,NULL,Update git commit author date when amending git pI found myself amending my commits quite often don codestash code so much because tend to forget did so especially when want to save what did before leave or before weekend so do draft commit Only thing is when amend the commit it is still set to the original author date Is there simple way to update it when amending This is especially useful when you perform interactive rebase and expect GitHub to display the commits in the Pull Request in tree order instead of date order,0,NULL,NULL 73355,3518840,797141,Informed Necromancer,NULL,NULL,0,NULL,NULL 73356,1158622,797141,Informed Necromancer,NULL,NULL,0,NULL,NULL 73357,62961,198957,Nice Answer,NULL,NULL,0,NULL,NULL 73358,197125,98537,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73359,579129,539620,Popular Question,NULL,NULL,0,NULL,NULL 73360,1347776,1217317,Caucus Notable Question Famous Question Caucus,NULL,NULL,0,NULL,NULL 73361,826549,730403,Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73362,86759,590864,Announcer Critic,NULL,NULL,0,NULL,NULL 73363,40786,1530970,NULL,NULL,NULL,0,NULL,NULL 73364,28956,446220,Necromancer Yearling Caucus Nice Answer Nice Question Popular Question Good Question Yearling Notable Question Yearling Curious Civic Duty Custodian Good Answer Revival Yearling,NULL,NULL,0,NULL,NULL 73365,167694,587096,NULL,NULL,NULL,0,NULL,NULL 73366,4483235,1244042,NULL,NULL,NULL,0,NULL,NULL 73367,461215,1244042,NULL,NULL,NULL,0,NULL,NULL 73368,196162,1432517,NULL,NULL,NULL,0,NULL,NULL 73369,257492,1413050,Yearling Yearling Great Answer Caucus Self-Learner Yearling,NULL,NULL,0,NULL,NULL 73370,426632,1290232,NULL,NULL,NULL,0,NULL,NULL 73371,458598,696836,Notable Question Self-Learner Yearling Popular Question Cleanup Revival Inquisitive Popular Question Nice Question Popular Question Yearling Revival Popular Question Custodian Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73372,478228,1203129,Notable Question Yearling Nice Answer Nice Answer Enlightened Popular Question Famous Question Necromancer Nice Answer Notable Question Popular Question Yearling Nice Question Announcer Nice Answer Enlightened Documentation User Nice Question Notable Question Yearling Popular Question Nice Answer Nice Answer Great Question Nice Question Good Answer,NULL,Unlink of file Failed Should try again git unlink pSomething wrong is going on with one of the files in my local git repository When trying to change the branch it says ppre codeUnlink of file templates media container html failed Should try again code prepWhat could that mean Given that this now shows as the first result on Google search and the question and the answers here have gotten 10x more views and upvotes than the other questions linked above would venture that this has now become the de facto reference QA for the unlink of file failed question,0,NULL,NULL 73373,298727,761886,Popular Question,NULL,NULL,0,NULL,NULL 73374,349300,627870,Yearling Caucus Tumbleweed,NULL,NULL,0,NULL,NULL 73375,164616,381409,Yearling,NULL,NULL,0,NULL,NULL 73376,142106,149987,NULL,NULL,NULL,0,NULL,NULL 73377,368313,404275,NULL,NULL,NULL,0,NULL,NULL 73378,216653,1102092,Notable Question Notable Question Notable Question Famous Question Famous Question Notable Question Notable Question Nice Question Famous Question Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73379,169517,284024,NULL,NULL,NULL,0,NULL,NULL 73380,263194,1003729,NULL,NULL,NULL,0,NULL,NULL 73381,2442231,470229,Yearling Critic Popular Question Famous Question Great Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 73382,805435,470229,Yearling Critic Popular Question Famous Question Great Question Yearling Popular Question Notable Question Famous Question Popular Question Popular Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 73383,44626,283455,NULL,NULL,NULL,0,NULL,NULL 73384,334169,745973,NULL,NULL,NULL,0,NULL,NULL 73385,269299,455694,NULL,NULL,NULL,0,NULL,NULL 73386,455372,802092,Notable Question Popular Question Popular Question Famous Question Notable Question Yearling Popular Question Notable Question Notable Question Citizen Patrol Caucus Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 73387,169936,132347,Notable Question Famous Question Yearling Great Question Popular Question Notable Question Yearling Custodian Notable Question Nice Question,NULL,NULL,0,NULL,NULL 73388,97539,681516,NULL,NULL,NULL,0,NULL,NULL 73389,887962,1493995,Tumbleweed,NULL,NULL,0,NULL,NULL 73390,277033,1548009,NULL,NULL,NULL,0,NULL,NULL 73391,160321,577984,NULL,NULL,NULL,0,NULL,NULL 73392,171174,195575,Nice Question Editor Famous Question,NULL,NULL,0,NULL,NULL 73393,155483,980712,NULL,NULL,NULL,0,NULL,NULL 73394,185151,324738,Notable Question Yearling Notable Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 73395,341548,40759,Famous Question Famous Question Popular Question Yearling Nice Question Popular Question Popular Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 73396,406768,1377141,NULL,NULL,NULL,0,NULL,NULL 73397,1567337,693540,NULL,NULL,NULL,0,NULL,NULL 73398,662272,121659,NULL,NULL,NULL,0,NULL,NULL 73399,73182,259815,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73400,50929,1134850,Yearling Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 73401,261061,1164223,NULL,NULL,NULL,0,NULL,NULL 73402,860490,1164223,NULL,NULL,NULL,0,NULL,NULL 73403,2747,455508,NULL,NULL,NULL,0,NULL,NULL 73404,77883,1089115,Student,NULL,NULL,0,NULL,NULL 73405,174265,1417921,NULL,NULL,NULL,0,NULL,NULL 73406,34618,811306,Editor Announcer Critic Yearling Announcer Revival Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 73407,263490,659143,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 73408,30740,120075,Yearling Necromancer Guru Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 73409,323058,1059085,NULL,NULL,NULL,0,NULL,NULL 73410,4722037,405313,Notable Question,NULL,NULL,0,NULL,NULL 73411,767164,256142,NULL,NULL,NULL,0,NULL,NULL 73412,370534,700570,NULL,NULL,NULL,0,NULL,NULL 73413,617799,460168,NULL,NULL,NULL,0,NULL,NULL 73414,41741,528230,NULL,NULL,NULL,0,NULL,NULL 73415,197369,1136740,NULL,NULL,NULL,0,NULL,NULL 73416,327389,375093,Popular Question Famous Question Yearling Documentation User Necromancer Popular Question Nice Answer Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73417,1731253,762815,NULL,NULL,NULL,0,NULL,NULL 73418,111728,762815,NULL,NULL,NULL,0,NULL,NULL 73419,233487,1220170,NULL,NULL,NULL,0,NULL,NULL 73420,234275,584816,NULL,NULL,NULL,0,NULL,NULL 73421,1088703,278726,Editor Teacher,NULL,NULL,0,NULL,NULL 73422,73313,178567,NULL,NULL,NULL,0,NULL,NULL 73423,81008,698697,Civic Duty,NULL,NULL,0,NULL,NULL 73424,77029,1131344,NULL,NULL,NULL,0,NULL,NULL 73425,154895,557580,Yearling Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 73426,346380,460046,NULL,NULL,NULL,0,NULL,NULL 73427,485034,694874,NULL,NULL,NULL,0,NULL,NULL 73428,51291,698482,NULL,NULL,NULL,0,NULL,NULL 73429,445687,663322,Notable Question Notable Question Critic Commentator,NULL,NULL,0,NULL,NULL 73430,1794812,1487766,Custodian Custodian Citizen Patrol Yearling Nice Answer Notable Question Yearling Caucus Famous Question Popular Question Popular Question Famous Question Census Popular Question Nice Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 73431,31093,705320,NULL,NULL,NULL,0,NULL,NULL 73432,343650,485704,Nice Answer Revival Yearling Necromancer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73433,1333749,276608,NULL,NULL,NULL,0,NULL,NULL 73434,727144,1317589,Popular Question,NULL,NULL,0,NULL,NULL 73435,216114,298752,Popular Question Yearling,NULL,NULL,0,NULL,NULL 73436,6254,339885,Famous Question Yearling,NULL,NULL,0,NULL,NULL 73437,578397,952273,NULL,NULL,NULL,0,NULL,NULL 73438,284461,1004201,NULL,NULL,NULL,0,NULL,NULL 73439,50247,499194,Teacher,NULL,NULL,0,NULL,NULL 73440,67432,1495271,Popular Question,NULL,NULL,0,NULL,NULL 73441,199109,1417458,NULL,NULL,NULL,0,NULL,NULL 73442,170231,570735,Necromancer,NULL,NULL,0,NULL,NULL 73443,7691,1549432,NULL,NULL,NULL,0,NULL,NULL 73444,18160,47441,Populist Necromancer,NULL,NULL,0,NULL,NULL 73445,548851,1412497,NULL,NULL,NULL,0,NULL,NULL 73446,1115258,471998,NULL,NULL,NULL,0,NULL,NULL 73447,165467,781333,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73448,2879,397528,NULL,NULL,NULL,0,NULL,NULL 73449,49035,311657,Proofreader Yearling Nice Answer Enlightened Great Answer Necromancer Caucus Necromancer Yearling Necromancer Nice Answer Caucus Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 73450,126018,1049869,NULL,NULL,NULL,0,NULL,NULL 73451,106615,777573,NULL,NULL,NULL,0,NULL,NULL 73452,836031,780855,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73453,271066,652835,Yearling,NULL,NULL,0,NULL,NULL 73454,741881,448840,NULL,NULL,NULL,0,NULL,NULL 73455,377101,1406024,Curious Announcer Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73456,1201370,805485,NULL,NULL,NULL,0,NULL,NULL 73457,691651,1471856,Supporter Census Necromancer,NULL,NULL,0,NULL,NULL 73458,4615830,1099477,Caucus Constituent Notable Question Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 73459,397046,1099477,Caucus Constituent Notable Question Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 73460,2016496,1099477,Caucus Constituent Notable Question Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 73461,204504,986944,Popular Question Notable Question Yearling Nice Answer Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 73462,165620,532492,Yearling Good Answer Yearling Enthusiast Yearling Guru,NULL,NULL,0,NULL,NULL 73463,128844,392826,Famous Question,NULL,NULL,0,NULL,NULL 73464,362783,1033676,NULL,NULL,NULL,0,NULL,NULL 73465,68752,1201409,NULL,NULL,NULL,0,NULL,NULL 73466,1920807,834074,Critic Yearling Yearling Great Answer Yearling Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 73467,2461200,834074,Critic Yearling Yearling Great Answer Yearling Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 73468,85070,269705,NULL,NULL,NULL,0,NULL,NULL 73469,8088027,269705,NULL,NULL,NULL,0,NULL,NULL 73470,543605,1141066,NULL,NULL,NULL,0,NULL,NULL 73471,20152,893550,NULL,NULL,NULL,0,NULL,NULL 73472,4921,1145694,Informed Autobiographer,NULL,NULL,0,NULL,NULL 73473,6166800,1514440,NULL,NULL,NULL,0,NULL,NULL 73474,364125,1514440,NULL,NULL,NULL,0,NULL,NULL 73475,86947,59352,Yearling Nice Answer Good Answer Good Answer Populist Yearling Nice Answer Enlightened Good Answer Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 73476,37556,753382,Necromancer Yearling Necromancer Yearling Nice Answer Nice Answer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 73477,569014,514277,NULL,NULL,NULL,0,NULL,NULL 73478,126671,481489,NULL,NULL,NULL,0,NULL,NULL 73479,230794,1069602,NULL,NULL,NULL,0,NULL,NULL 73480,541948,127817,Notable Question Favorite Question Popular Question Famous Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73481,293282,347508,Nice Answer Yearling Pundit Good Answer Necromancer Yearling Necromancer Announcer Reviewer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 73482,301350,25031,Famous Question,NULL,NULL,0,NULL,NULL 73483,110627,989851,Student Editor Census,NULL,NULL,0,NULL,NULL 73484,1522725,1221407,NULL,NULL,NULL,0,NULL,NULL 73485,891324,772295,Revival ios Necromancer Necromancer Nice Answer Necromancer Revival Yearling Nice Answer Necromancer Nice Answer Necromancer Necromancer Necromancer Nice Answer Revival Enlightened Nice Answer Necromancer objective-c Custodian Necromancer Good Answer Necromancer Yearling Nice Answer Nice Answer Necromancer Nice Answer Good Answer Nice Answer Cleanup Good Answer swift Necromancer Nice Answer Necromancer Necromancer Yearling Notable Question Good Answer Guru Necromancer Nice Answer Nice Answer Revival Populist,NULL,NULL,1,NULL,Draw simple circle uiimage ios uiimage core graphics circle cgcontext pI try to make 20x20 UIImage with simple blue circle try with this function but the result is blue circle in black square How do remove the black square around the circle ppFunction ppre code UIImage blueCircle static UIImage blueCircle nil static dispatch once onceToken dispatch once amp onceToken UIGraphicsBeginImageContextWithOptions CGSizeMake 20 20 YES 0f CGContextRef ctx UIGraphicsGetCurrentContext CGContextSaveGState ctx CGRect rect CGRectMake 20 20 CGContextSetFillColorWithColor ctx UIColor cyanColor CGColor CGContextFillEllipseInRect ctx rect CGContextRestoreGState ctx blueCircle UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return blueCircle code prepactual result img src https stack imgur com uXSwB png alt enter image description here pThanks for the amp Swift code as below ppre codeextension UIImage class func circle diameter CGFloat color UIColor gt UIImage UIGraphicsBeginImageContextWithOptions CGSizeMake diameter diameter false let ctx UIGraphicsGetCurrentContext CGContextSaveGState ctx let rect CGRectMake diameter diameter CGContextSetFillColorWithColor ctx color CGColor CGContextFillEllipseInRect ctx rect CGContextRestoreGState ctx let img UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return img code prepSwift version provided by Schemetrical ppre codeextension UIImage class func circle diameter CGFloat color UIColor gt UIImage UIGraphicsBeginImageContextWithOptions CGSize width diameter height diameter false let ctx UIGraphicsGetCurrentContext ctx saveGState let rect CGRect width diameter height diameter ctx setFillColor color cgColor ctx fillEllipse in rect ctx restoreGState let img UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return img code pre 73486,153005,632894,NULL,NULL,NULL,0,NULL,NULL 73487,4147,262432,Yearling Organizer Tag Editor Commentator Yearling Citizen Patrol Custodian Custodian Custodian Yearling Announcer Yearling Yearling Scholar Civic Duty Announcer Yearling Announcer Explainer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73488,1194955,1437622,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73489,400295,1007201,NULL,NULL,NULL,0,NULL,NULL 73490,716586,1349114,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 73491,556690,438719,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73492,1348050,227951,Revival,NULL,NULL,0,NULL,NULL 73493,3358,452173,NULL,NULL,NULL,0,NULL,NULL 73494,178726,353132,Yearling Notable Question,NULL,NULL,0,NULL,NULL 73495,17374,432,Famous Question Nice Answer Inquisitive Notable Question Nice Answer Necromancer Popular Question Nice Question Yearling Favorite Question Nice Answer Announcer Announcer Necromancer Notable Question Announcer Nice Answer Great Question Nice Question Nice Answer Necromancer Notable Question Notable Question Yearling Necromancer Announcer Famous Question Announcer Good Question Nice Question Famous Question Famous Question Electorate Revival Famous Question Nice Question Revival Yearling Good Question,NULL,How do you create static class in oop class syntax static pHow do you create static class in should be able to do something like ppre codecout lt lt bit is lt lt BitParser getBitAt buffer lt lt endl code prepAssuming created the codeBitParser code class What would the codeBitParser code class definition look like years later and now have my own programming language that doesn even have classes ziglang org,0,NULL,NULL 73496,3275614,432,Famous Question Nice Answer Inquisitive Notable Question Nice Answer Necromancer Popular Question Nice Question Yearling Favorite Question Nice Answer Announcer Announcer Necromancer Notable Question Announcer Nice Answer Great Question Nice Question Nice Answer Necromancer Notable Question Notable Question Yearling Necromancer Announcer Famous Question Announcer Good Question Nice Question Famous Question Famous Question Electorate Revival Famous Question Nice Question Revival Yearling Good Question,NULL,How do you create static class in oop class syntax static pHow do you create static class in should be able to do something like ppre codecout lt lt bit is lt lt BitParser getBitAt buffer lt lt endl code prepAssuming created the codeBitParser code class What would the codeBitParser code class definition look like years later and now have my own programming language that doesn even have classes ziglang org,0,NULL,NULL 73497,784163,1210547,NULL,NULL,NULL,0,NULL,NULL 73498,328896,753769,Nice Answer Enlightened Yearling Popular Question Notable Question Necromancer Yearling Notable Question Necromancer Notable Question Revival Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 73499,365067,335348,NULL,NULL,NULL,0,NULL,NULL 73500,1524575,963345,Notable Question,NULL,NULL,0,NULL,NULL 73501,19592,1043054,NULL,NULL,NULL,0,NULL,NULL 73502,397981,928529,Yearling,NULL,NULL,0,NULL,NULL 73503,164005,514603,NULL,NULL,NULL,0,NULL,NULL 73504,140534,1183687,Popular Question Notable Question Tumbleweed Yearling Popular Question,NULL,NULL,0,NULL,NULL 73505,1564575,515368,Good Question Documentation Pioneer Popular Question Yearling Good Question Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 73506,104103,355444,Yearling Revival Necromancer Commentator Yearling,NULL,NULL,0,NULL,NULL 73507,48820,653930,Revival Yearling Critic,NULL,NULL,0,NULL,NULL 73508,5105502,392076,NULL,NULL,NULL,0,NULL,NULL 73509,670018,983377,Notable Question,NULL,NULL,0,NULL,NULL 73510,2343069,1126834,NULL,NULL,NULL,0,NULL,NULL 73511,1516555,1448921,NULL,NULL,NULL,0,NULL,NULL 73512,739601,444917,Necromancer Necromancer Notable Question Necromancer Nice Answer Necromancer Great Answer Yearling Electorate Nice Answer Necromancer Popular Question Necromancer Necromancer Popular Question Nice Answer Necromancer Nice Answer Yearling Popular Question Nice Answer Nice Answer Necromancer Famous Question Necromancer Necromancer Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 73513,3104380,444917,Necromancer Necromancer Notable Question Necromancer Nice Answer Necromancer Great Answer Yearling Electorate Nice Answer Necromancer Popular Question Necromancer Necromancer Popular Question Nice Answer Necromancer Nice Answer Yearling Popular Question Nice Answer Nice Answer Necromancer Famous Question Necromancer Necromancer Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 73514,770704,593559,Revival Necromancer Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 73515,7376867,1557834,NULL,NULL,NULL,0,NULL,NULL 73516,125548,1358075,NULL,NULL,NULL,0,NULL,NULL 73517,168852,1071086,Famous Question,NULL,NULL,0,NULL,NULL 73518,421562,1381397,NULL,NULL,NULL,0,NULL,NULL 73519,117461,817068,NULL,NULL,NULL,0,NULL,NULL 73520,6735263,680873,NULL,NULL,NULL,0,NULL,NULL 73521,110021,680873,NULL,NULL,NULL,0,NULL,NULL 73522,46898,388335,Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 73523,1066808,374824,NULL,NULL,NULL,0,NULL,NULL 73524,696721,374824,NULL,NULL,NULL,0,NULL,NULL 73525,438339,570100,NULL,NULL,NULL,0,NULL,NULL 73526,361286,587992,NULL,NULL,NULL,0,NULL,NULL 73527,117937,618023,NULL,NULL,NULL,0,NULL,NULL 73528,900623,536125,NULL,NULL,NULL,0,NULL,NULL 73529,298181,343457,NULL,NULL,NULL,0,NULL,NULL 73530,201676,11182,Nice Answer Nice Answer Enlightened Necromancer Great Answer visual-studio-2012 .net Revival Necromancer Guru Nice Answer Good Answer Nice Answer Enlightened Yearling c# Necromancer Pundit msbuild Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Caucus Constituent Disciplined Nice Answer Revival Custodian Nice Answer Enlightened Yearling Documentation User Nice Answer Enlightened Necromancer .net-core Census Necromancer Revival Good Answer Nice Answer Enlightened Nice Answer Necromancer Caucus Revival Nice Answer iis asp.net Good Answer Nice Answer Enlightened xamarin Good Answer asp.net-core Revival iis-7 Yearling .net Electorate Nice Answer Guru Nice Answer Nice Answer Necromancer Informed,NULL,Merging NET Standard assemblies net net core net standard pI couldn find any documentation on the possibility to merge two or more NET Standard assemblies either using emILRepack em or emILMerge em Both of the tools are merging assemblies of the NET profiles and but believe they re not compatible with NET standard profile ppHas anyone any experience with that Anyone can point to any documentation of the feature ppThanks Both tools are open source right now at GitHub So even if they don support such merging now you can go ahead and make it work At least it is still MSIL manipulation and MSIL hasn changed Merging NET Standard assemblies net net core net standard pI couldn find any documentation on the possibility to merge two or more NET Standard assemblies either using emILRepack em or emILMerge em Both of the tools are merging assemblies of the NET profiles and but believe they re not compatible with NET standard profile ppHas anyone any experience with that Anyone can point to any documentation of the feature ppThanks it seems that you are referring to NET Native It still has long way to come to the arena pIt is so strange that nobody links to the blog entry em href http blogs microsoft co il blogs sasha archive 2012 04 04 what anycpu really means as of net and visual studio 11 aspx rel noreferrer What AnyCPU Really Means As Of NET and Visual Studio 11 em pblockquote pIn NET and Visual Studio 11 the cheese has been moved The default for most NET projects is again AnyCPU but there is more than one meaning to AnyCPU now There is an additional sub type of AnyCPU “Any CPU 32 bit preferred” which is the new default overall there are now five options for the platform compiler switch x86 Itanium x64 anycpu and anycpu32bitpreferred When using the Prefer 32 Bit flavor of AnyCPU the semantics are as follows ul liIf the process runs on 32 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on 64 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on an ARM Windows system it runs as 32 bit process IL is compiled to ARM machine code li ul strongThe difference then between “Any CPU 32 bit preferred” and “x86” is only this NET application compiled to x86 will fail to run on an ARM Windows system but an “Any CPU 32 bit preferred” application will run successfully strong blockquote there is if you set false to 32 but preferred and set x64 or Any CPU on 64 bit machine,1,NULL,Unity garbage collector Why non generational and non compacting net unity3d garbage collection mono pI ve just read in href https docs unity3d com Manual BestPracticeUnderstandingPerformanceInUnity4 html ga 229794458 7281837 1506548901 930081816 1478720731 rel nofollow noreferrer Unity docs that pblockquote pUnity’s garbage collection which uses the Boehm GC algorithm is non generational and non compacting “Non generational” means that the GC must sweep through the entire heap when performing collection pass and its performance therefore degrades as the heap expands “Non compacting” means that objects in memory are not relocated in order to close gaps between objects blockquotepDoes anyone of You knows or assumes why Unity aborts using standard Net GC with generations and compacting made some tests and really surprised that even objects from LOH are in generation and probably GC trying to collect them with small objects pYou paid attention to the details so here comes story of the details you deserve ppIt was in early 2008 that Unity and Mono announced their collaboration and at that time Unity licensed the Mono runtime GPL covered for open source usage so as to embed it And the Boehm GC was the primary GC in Mono then ppTime passed and Mono by default uses SGen GC with generational compacting features However Unity did not want to pay the licensing again Thus you see the documentation remains it was ppMicrosoft acquired Xamarin in 2016 and hence gained control of Mono core assets It republished the code base under MIT so solving the licensing issue for ever Unity joined NET Foundation and started to work with Microsoft Xamarin to incorporate the latest Mono runtime into the game engine ppThat effort is still undergoing and should soon reach maturity currently an experimental feature ppBTW Unity cannot use the standard NET GC yet Microsoft does not open source its GC in NET Framework but version in NET Core That GC is different from Mono and would require more efforts to be embedded into Unity guess that why Mono was chosen to be integrated right now Maybe in the future Unity would migrate to the NET Core GC ppSome of the events can be found in the href http corefx strikingly com rel noreferrer NET timeline 73531,1989470,11182,Nice Answer Nice Answer Enlightened Necromancer Great Answer visual-studio-2012 .net Revival Necromancer Guru Nice Answer Good Answer Nice Answer Enlightened Yearling c# Necromancer Pundit msbuild Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Caucus Constituent Disciplined Nice Answer Revival Custodian Nice Answer Enlightened Yearling Documentation User Nice Answer Enlightened Necromancer .net-core Census Necromancer Revival Good Answer Nice Answer Enlightened Nice Answer Necromancer Caucus Revival Nice Answer iis asp.net Good Answer Nice Answer Enlightened xamarin Good Answer asp.net-core Revival iis-7 Yearling .net Electorate Nice Answer Guru Nice Answer Nice Answer Necromancer Informed,NULL,Merging NET Standard assemblies net net core net standard pI couldn find any documentation on the possibility to merge two or more NET Standard assemblies either using emILRepack em or emILMerge em Both of the tools are merging assemblies of the NET profiles and but believe they re not compatible with NET standard profile ppHas anyone any experience with that Anyone can point to any documentation of the feature ppThanks Both tools are open source right now at GitHub So even if they don support such merging now you can go ahead and make it work At least it is still MSIL manipulation and MSIL hasn changed Merging NET Standard assemblies net net core net standard pI couldn find any documentation on the possibility to merge two or more NET Standard assemblies either using emILRepack em or emILMerge em Both of the tools are merging assemblies of the NET profiles and but believe they re not compatible with NET standard profile ppHas anyone any experience with that Anyone can point to any documentation of the feature ppThanks it seems that you are referring to NET Native It still has long way to come to the arena pIt is so strange that nobody links to the blog entry em href http blogs microsoft co il blogs sasha archive 2012 04 04 what anycpu really means as of net and visual studio 11 aspx rel noreferrer What AnyCPU Really Means As Of NET and Visual Studio 11 em pblockquote pIn NET and Visual Studio 11 the cheese has been moved The default for most NET projects is again AnyCPU but there is more than one meaning to AnyCPU now There is an additional sub type of AnyCPU “Any CPU 32 bit preferred” which is the new default overall there are now five options for the platform compiler switch x86 Itanium x64 anycpu and anycpu32bitpreferred When using the Prefer 32 Bit flavor of AnyCPU the semantics are as follows ul liIf the process runs on 32 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on 64 bit Windows system it runs as 32 bit process IL is compiled to x86 machine code li liIf the process runs on an ARM Windows system it runs as 32 bit process IL is compiled to ARM machine code li ul strongThe difference then between “Any CPU 32 bit preferred” and “x86” is only this NET application compiled to x86 will fail to run on an ARM Windows system but an “Any CPU 32 bit preferred” application will run successfully strong blockquote there is if you set false to 32 but preferred and set x64 or Any CPU on 64 bit machine,1,NULL,Unity garbage collector Why non generational and non compacting net unity3d garbage collection mono pI ve just read in href https docs unity3d com Manual BestPracticeUnderstandingPerformanceInUnity4 html ga 229794458 7281837 1506548901 930081816 1478720731 rel nofollow noreferrer Unity docs that pblockquote pUnity’s garbage collection which uses the Boehm GC algorithm is non generational and non compacting “Non generational” means that the GC must sweep through the entire heap when performing collection pass and its performance therefore degrades as the heap expands “Non compacting” means that objects in memory are not relocated in order to close gaps between objects blockquotepDoes anyone of You knows or assumes why Unity aborts using standard Net GC with generations and compacting made some tests and really surprised that even objects from LOH are in generation and probably GC trying to collect them with small objects pYou paid attention to the details so here comes story of the details you deserve ppIt was in early 2008 that Unity and Mono announced their collaboration and at that time Unity licensed the Mono runtime GPL covered for open source usage so as to embed it And the Boehm GC was the primary GC in Mono then ppTime passed and Mono by default uses SGen GC with generational compacting features However Unity did not want to pay the licensing again Thus you see the documentation remains it was ppMicrosoft acquired Xamarin in 2016 and hence gained control of Mono core assets It republished the code base under MIT so solving the licensing issue for ever Unity joined NET Foundation and started to work with Microsoft Xamarin to incorporate the latest Mono runtime into the game engine ppThat effort is still undergoing and should soon reach maturity currently an experimental feature ppBTW Unity cannot use the standard NET GC yet Microsoft does not open source its GC in NET Framework but version in NET Core That GC is different from Mono and would require more efforts to be embedded into Unity guess that why Mono was chosen to be integrated right now Maybe in the future Unity would migrate to the NET Core GC ppSome of the events can be found in the href http corefx strikingly com rel noreferrer NET timeline 73532,64417,413495,Notable Question Notable Question Notable Question Curious,NULL,NULL,0,NULL,NULL 73533,83579,759298,Yearling Nice Answer Yearling Good Answer Custodian Citizen Patrol Yearling Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 73534,1755444,542768,NULL,NULL,NULL,0,NULL,NULL 73535,375229,385008,Census,NULL,NULL,0,NULL,NULL 73536,163792,69897,NULL,NULL,NULL,0,NULL,NULL 73537,481959,1183275,NULL,NULL,NULL,0,NULL,NULL 73538,10886139,1183275,NULL,NULL,NULL,0,NULL,NULL 73539,59746,614704,Supporter Editor Student Self-Learner Scholar Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73540,1022318,356790,Notable Question Popular Question Nice Question Popular Question Nice Question Famous Question Nice Question Notable Question Nice Question Notable Question Nice Question Famous Question Good Question Nice Question Popular Question Popular Question Famous Question Notable Question Famous Question Great Question Nice Question Popular Question Yearling Nice Question Informed Notable Question Popular Question Famous Question Popular Question Notable Question Nice Question Famous Question Notable Question Nice Question Notable Question Notable Question Nice Question Custodian Popular Question Notable Question Great Question Famous Question Caucus Notable Question Famous Question Popular Question Nice Question Good Answer Famous Question Famous Question Popular Question Nice Question Notable Question Notable Question Good Question Nice Question Notable Question Good Question Nice Question Revival Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Good Answer Popular Question Popular Question Nice Question Notable Question Notable Question Caucus Notable Question Great Question Good Question Custodian Nice Question Popular Question Popular Question Custodian Popular Question Good Question Popular Question Famous Question Famous Question Popular Question Popular Question Nice Question Notable Question Nice Question Notable Question Caucus Notable Question Notable Question Famous Question Yearling Good Question Popular Question Great Question Notable Question Stellar Question Nice Question Famous Question Great Question Nice Question,NULL,JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor Example added sorry for not including it originally JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor it should throw an exception or more specifically JsonConvert DeserializeObjectDog jsonString should throw JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor If there more than one constructor then json NET should do whatever it doing now Looking for the constructor with the most number of matches Least number My types typically don have multiple constructors because typically find that its code smell but good question for completeness JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor confused if there constructor parameter and thus constructor then how can json net call the default constructor There is no default constructor If there constructor then JSON net has to use the constructor to new up the object After that any remaining unmapped properties would be mapped to the type properties JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor the code smell is that your object is possibly trying to do encapsulate too much Agreed that it smell to not use chaining when you can but before you even get there you have to ask yourself whether the object has too much responsibiliy state etc JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor Let us continue this discussion in chat http chat stackoverflow com rooms 112815 discussion between sfun28 and falanwe,1,JSON net should not use default values for constructor parameters should use default for properties net json net pIs there way to tell JSON net that when it attempts to deserialize using constructor if there is no default constructor that it should NOT assign default value to constructor parameters and that it should only call constructor if every constructor parameter is represented in the JSON string This same serializer SHOULD use default values when calling property field setters the rule is only scoped to constructors None of the enum values here seem to be appropriate href http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm rel noreferrer http www newtonsoft com json help html Newtonsoft Json DefaultValueHandling htm pp strongThe solution should NOT rely on applying any attributes to the types being deserialized strong ppfor example the json string code code will deserialize to an object of type codeDog code by setting the Dog age to the default value for an int like to generalized not attribute based solution to prevent this from happening In this case code age code would work because codeage code is specified in the JSON string and corresponds to the constructor parameter ppre codepublic class Dog public Dog int age this Age age public int Age get code prepHowever if codeDog code is specified as such then code code emshould em deserialize to Dog with Age because the Dog is not being created using constructor ppre codepublic class Dog public int Age get set code prepAnd to head off any questions about why would you want to do this Objects with constructors are typically qualitatively different than POCOs as it relates to their properties Using constuctor to store property values instead of settable properties on POCO typically means that you want to validate constrain the property values So it reasonable not to allow deserialization with default values in the presence of constuctor,NULL 73541,48858,517284,NULL,NULL,NULL,0,NULL,NULL 73542,112477,1055715,Yearling Notable Question Nice Question Notable Question Announcer Necromancer Nice Answer Yearling Necromancer Necromancer Yearling Necromancer Necromancer Nice Answer Nice Answer Necromancer Nice Answer Necromancer Nice Answer Autobiographer Yearling,NULL,Can git tell me if merge will conflict without actually merging git pIs it possible to know if merge will conflict or not without touching the working tree don want to touch the working tree because don want to have it checked out That would take long time if want to see this information for several branches This question should not be marked as duplicated at all,0,NULL,NULL 73543,1512303,240546,Good Question Critic Yearling,NULL,NULL,0,NULL,NULL 73544,1135551,784977,Supporter,NULL,NULL,0,NULL,NULL 73545,166004,784977,Supporter,NULL,NULL,0,NULL,NULL 73546,103065,397899,NULL,NULL,NULL,0,NULL,NULL 73547,420091,562413,Popular Question,NULL,NULL,0,NULL,NULL 73548,7486275,1318072,NULL,NULL,NULL,0,NULL,NULL 73549,7895045,1425246,NULL,NULL,NULL,0,NULL,NULL 73550,423849,1425246,NULL,NULL,NULL,0,NULL,NULL 73551,212521,1406737,Teacher Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 73552,488410,1319016,NULL,NULL,NULL,0,NULL,NULL 73553,912361,1503228,NULL,NULL,NULL,0,NULL,NULL 73554,469524,1312055,NULL,NULL,NULL,0,NULL,NULL 73555,1712519,683280,NULL,NULL,NULL,0,NULL,NULL 73556,1712545,683280,NULL,NULL,NULL,0,NULL,NULL 73557,1197499,683280,NULL,NULL,NULL,0,NULL,NULL 73558,271375,306532,NULL,NULL,NULL,0,NULL,NULL 73559,340186,242231,Yearling Guru Yearling Tumbleweed Custodian Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 73560,950073,1250933,Nice Question Notable Question Custodian Tumbleweed,NULL,NULL,0,NULL,NULL 73561,731115,326905,Popular Question Notable Question Famous Question Nice Question Caucus Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 73562,39282,1557887,Popular Question,NULL,NULL,0,NULL,NULL 73563,5591199,1142479,NULL,NULL,NULL,0,NULL,NULL 73564,395902,1142479,NULL,NULL,NULL,0,NULL,NULL 73565,2727,792059,NULL,NULL,NULL,0,NULL,NULL 73566,622318,1320189,NULL,NULL,NULL,0,NULL,NULL 73567,240286,1268272,Famous Question Good Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 73568,893362,1051425,Yearling Excavator Good Answer Revival Necromancer Yearling Caucus Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 73569,46145,64626,Yearling Nice Answer Nice Question Good Answer Yearling Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 73570,392099,367539,NULL,NULL,NULL,0,NULL,NULL 73571,239354,445344,NULL,NULL,NULL,0,NULL,NULL 73572,286993,975775,NULL,NULL,NULL,0,NULL,NULL 73573,324153,370682,NULL,NULL,NULL,0,NULL,NULL 73574,407354,954670,NULL,NULL,NULL,0,NULL,NULL 73575,107363,1140242,Informed,NULL,NULL,0,NULL,NULL 73576,306070,354161,Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Revival Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Famous Question Notable Question Notable Question Yearling Necromancer Good Question Popular Question Famous Question Famous Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Yearling Good Question Favorite Question Popular Question Notable Question Popular Question Notable Question Great Question,NULL,NULL,0,NULL,NULL 73577,283246,277848,Yearling Notable Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 73578,885317,1387405,NULL,NULL,NULL,0,NULL,NULL 73579,987211,123498,Commentator Critic Yearling Citizen Patrol,NULL,NULL,0,NULL,NULL 73580,237374,270216,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73581,192650,626687,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73582,587101,905226,NULL,NULL,NULL,0,NULL,NULL 73583,96195,688454,NULL,NULL,NULL,0,NULL,NULL 73584,384820,337522,Popular Question Popular Question Popular Question Famous Question Nice Question Yearling Notable Question Nice Question Notable Question Nice Question Notable Question Nice Answer Enlightened Popular Question Nice Question Popular Question Popular Question Caucus Constituent Great Answer Popular Question Famous Question Famous Question Popular Question Guru Yearling Good Question Popular Question Popular Question Popular Question Notable Question Famous Question Great Question Notable Question Nice Question Notable Question Popular Question Famous Question Nice Question Yearling Famous Question Nice Answer Nice Question Popular Question Popular Question Stellar Question,NULL,NULL,0,NULL,NULL 73585,1020324,1232447,Yearling Popular Question Civic Duty Explainer Nice Answer Popular Question Caucus Yearling Notable Question Nice Answer Enlightened Caucus Nice Answer Favorite Question Revival Yearling Caucus Constituent Good Answer Great Question Nice Answer,NULL,NULL,0,NULL,NULL 73586,315924,1239232,Popular Question,NULL,NULL,0,NULL,NULL 73587,760643,295987,Tumbleweed Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73588,10398,1465943,Popular Question,NULL,NULL,0,NULL,NULL 73589,882230,1526584,NULL,NULL,NULL,0,NULL,NULL 73590,895059,746312,Informed,NULL,NULL,0,NULL,NULL 73591,746274,728380,NULL,NULL,NULL,0,NULL,NULL 73592,3638950,728380,NULL,NULL,NULL,0,NULL,NULL 73593,1615602,1061851,Famous Question Notable Question Famous Question Notable Question Inquisitive Yearling Popular Question Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 73594,31281,1342972,NULL,NULL,NULL,0,NULL,NULL 73595,132427,662683,NULL,NULL,NULL,0,NULL,NULL 73596,98091,996552,NULL,NULL,NULL,0,NULL,NULL 73597,775958,531029,NULL,NULL,NULL,0,NULL,NULL 73598,22252,1251295,Informed,NULL,NULL,0,NULL,NULL 73599,25789,187628,Yearling,NULL,NULL,0,NULL,NULL 73600,4664317,883549,NULL,NULL,NULL,0,NULL,NULL 73601,2735936,485172,Famous Question,NULL,NULL,0,NULL,NULL 73602,475164,485172,Famous Question,NULL,NULL,0,NULL,NULL 73603,2422503,1319818,NULL,NULL,NULL,0,NULL,NULL 73604,3618437,1319818,NULL,NULL,NULL,0,NULL,NULL 73605,353822,1319818,NULL,NULL,NULL,0,NULL,NULL 73606,16376,126216,Famous Question Yearling,NULL,NULL,0,NULL,NULL 73607,804253,1417588,Guru Nice Answer google-maps-api-3 Yearling javascript Caucus Necromancer Good Answer Yearling Caucus Nice Answer Enlightened Custodian Announcer Good Answer Nice Answer Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 73608,38339,693955,NULL,NULL,NULL,0,NULL,NULL 73609,174499,837260,NULL,NULL,NULL,0,NULL,NULL 73610,222551,77868,Nice Answer Yearling Popular Question Necromancer Nice Answer Yearling Yearling python Necromancer Good Answer Good Answer Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 73611,299583,1115958,NULL,NULL,NULL,0,NULL,NULL 73612,94516,545576,NULL,NULL,NULL,0,NULL,NULL 73613,499942,1123769,NULL,NULL,NULL,0,NULL,NULL 73614,150103,1006799,Popular Question,NULL,NULL,0,NULL,NULL 73615,604492,684735,NULL,NULL,NULL,0,NULL,NULL 73616,265727,1200823,NULL,NULL,NULL,0,NULL,NULL 73617,1521020,1196908,Popular Question Yearling ios Nice Answer Necromancer Notable Question Popular Question Necromancer Good Question Notable Question Nice Answer Nice Answer Notable Question Popular Question Taxonomist Popular Question Good Answer Popular Question Nice Answer Caucus Popular Question Constituent Stellar Question Popular Question Popular Question Nice Answer Enlightened swift Yearling Census Popular Question Nice Answer Popular Question Good Answer Caucus Constituent Popular Question Nice Answer Enlightened Revival Documentation User Notable Question Census Revival Great Answer Yearling Caucus Constituent Guru Necromancer Necromancer Nice Answer Good Answer Popular Question,NULL,How to add parameters to HttpURLConnection using POST using NameValuePair android post http post httpurlconnection basicnamevaluepair pI am trying to do strongPOST strong with codeHttpURLConnection code need to use it this way can use codeHttpPost code and like to add parameters to that connection such as ppre codepost setEntity new UrlEncodedFormEntity nvp code prepwhere ppre codenvp new ArrayList lt NameValuePair gt code prephaving some data stored in can find way how to add this codeArrayList code to my codeHttpURLConnection code which is here ppre codeHttpsURLConnection https HttpsURLConnection url openConnection https setHostnameVerifier DO NOT VERIFY http https http setRequestMethod POST http setDoInput true http setDoOutput true code prepThe reason for that awkward https and http combination is the need for emnot verifying em the certificate That is not problem though it posts the server well But need it to post with arguments ppAny ideas phrp strongDuplicate Disclaimer strong ppBack in 2012 had no idea how parameters were inserted into an strongHTTP POST strong request was hanging on to codeNameValuePair code because it was in tutorial This question might seem like duplicate however my 2012 self read that em href https stackoverflow com questions 4205980 java sending http parameters via post method easily other em question and it was strongNOT strong using codeNameValuePair code It did not in fact solve my problem why marking this question as duplicate when you linked your answer from 2015 to an answer that is here Exactly for the reason posted in this question in 2012 usage of NameValuePair,0,NULL,NULL 73618,597437,1221977,NULL,NULL,NULL,0,NULL,NULL 73619,62895,866669,NULL,NULL,NULL,0,NULL,NULL 73620,68746,542702,NULL,NULL,NULL,0,NULL,NULL 73621,243700,154392,Revival Popular Question Self-Learner Popular Question Popular Question Necromancer Yearling Announcer Good Question Famous Question Popular Question Organizer,NULL,NULL,0,NULL,NULL 73622,18452,485302,NULL,NULL,NULL,0,NULL,NULL 73623,1760198,485302,NULL,NULL,NULL,0,NULL,NULL 73624,190640,193489,NULL,NULL,NULL,0,NULL,NULL 73625,855821,632163,Nice Question,NULL,NULL,0,NULL,NULL 73626,1158120,437164,Nice Answer Yearling Yearling Great Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 73627,212715,298296,NULL,NULL,NULL,0,NULL,NULL 73628,235868,592153,Revival Yearling Curious Nice Answer Enlightened Necromancer Notable Question Nice Answer Enlightened Good Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 73629,17962,43919,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73630,1068923,402626,Popular Question,NULL,NULL,0,NULL,NULL 73631,184535,1252968,Critic Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 73632,180993,351680,Nice Answer Supporter Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73633,128197,562809,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 73634,170697,629978,NULL,NULL,NULL,0,NULL,NULL 73635,68503,461710,NULL,NULL,NULL,0,NULL,NULL 73636,167177,522943,Nice Answer,NULL,NULL,0,NULL,NULL 73637,8893,797605,NULL,NULL,NULL,0,NULL,NULL 73638,1223574,1032644,NULL,NULL,NULL,0,NULL,NULL 73639,162818,814792,NULL,NULL,NULL,0,NULL,NULL 73640,106549,771806,Popular Question,NULL,NULL,0,NULL,NULL 73641,14149,1241230,NULL,NULL,NULL,0,NULL,NULL 73642,218587,80416,Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73643,239456,901265,NULL,NULL,NULL,0,NULL,NULL 73644,659325,440909,NULL,NULL,NULL,0,NULL,NULL 73645,66115,536768,Nice Question Notable Question Notable Question Nice Answer Famous Question Nice Question Notable Question Popular Question Good Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question Notable Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Good Question Notable Question Notable Question Notable Question Nice Question Popular Question Popular Question Good Question Notable Question Famous Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Famous Question Necromancer Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Nice Question Popular Question Good Question Notable Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Famous Question Popular Question Popular Question Favorite Question Notable Question Nice Question Popular Question Notable Question Notable Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73646,319801,268352,NULL,NULL,NULL,0,NULL,NULL 73647,1019111,1302217,NULL,NULL,NULL,0,NULL,NULL 73648,91552,77111,NULL,NULL,NULL,0,NULL,NULL 73649,71946,460544,Yearling Caucus Constituent Popular Question Popular Question Revival Census Popular Question Popular Question Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 73650,300124,844217,NULL,NULL,NULL,0,NULL,NULL 73651,891199,1300892,Nice Answer Yearling Documentation Pioneer Nice Answer Enlightened Caucus Popular Question Yearling Good Answer Good Answer Necromancer Nice Answer Nice Answer Nice Answer Documentation User Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 73652,1509367,1084087,NULL,NULL,NULL,0,NULL,NULL 73653,1054035,83117,Critic Editor Revival Necromancer Yearling Nice Answer Caucus Constituent Yearling Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 73654,500730,213388,Announcer Yearling Popular Question Mortarboard Yearling Curious Yearling Necromancer Nice Answer Census Yearling Necromancer Guru Caucus Documentation User Yearling Census Good Answer Yearling,NULL,NULL,0,NULL,NULL 73655,6190891,848569,Announcer,NULL,NULL,0,NULL,NULL 73656,236286,848569,Announcer,NULL,NULL,0,NULL,NULL 73657,215492,485994,NULL,NULL,NULL,0,NULL,NULL 73658,5821763,319787,NULL,NULL,NULL,0,NULL,NULL 73659,715404,1156839,NULL,NULL,NULL,0,NULL,NULL 73660,82527,935015,Critic Yearling Necromancer Nice Answer Curious Nice Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 73661,1317232,255373,Curious,NULL,NULL,0,NULL,NULL 73662,95776,871835,NULL,NULL,NULL,0,NULL,NULL 73663,385099,519397,NULL,NULL,NULL,0,NULL,NULL 73664,2049631,1152858,NULL,NULL,NULL,0,NULL,NULL 73665,186813,1152858,NULL,NULL,NULL,0,NULL,NULL 73666,398754,1148095,NULL,NULL,NULL,0,NULL,NULL 73667,988580,387273,Necromancer Yearling Revival Nice Answer Enlightened Nice Answer Enlightened Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 73668,366362,363930,NULL,NULL,NULL,0,NULL,NULL 73669,226174,1216234,Yearling Critic Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 73670,540630,1435994,NULL,NULL,NULL,0,NULL,NULL 73671,101771,971815,NULL,NULL,NULL,0,NULL,NULL 73672,391624,1404975,Teacher Editor Supporter,NULL,NULL,0,NULL,NULL 73673,2295697,993797,Famous Question Editor Custodian Popular Question,NULL,NULL,0,NULL,NULL 73674,475747,38247,NULL,NULL,NULL,0,NULL,NULL 73675,211576,985100,NULL,NULL,NULL,0,NULL,NULL 73676,273309,707138,Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 73677,1542762,1533823,Student Teacher Supporter,NULL,NULL,0,NULL,NULL 73678,813278,1291833,NULL,NULL,NULL,0,NULL,NULL 73679,66610,1445238,NULL,NULL,NULL,0,NULL,NULL 73680,424932,1117841,NULL,NULL,NULL,0,NULL,NULL 73681,300576,917188,NULL,NULL,NULL,0,NULL,NULL 73682,1354507,703990,NULL,NULL,NULL,0,NULL,NULL 73683,173146,5935,Nice Answer Guru Good Answer Yearling Nice Answer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73684,1193481,700757,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73685,897281,1557894,Yearling Notable Question Famous Question Nice Question Yearling Nice Question Nice Answer Good Question,NULL,NULL,0,NULL,NULL 73686,1171638,1372320,Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73687,181571,774655,NULL,NULL,NULL,0,NULL,NULL 73688,898199,931469,NULL,NULL,NULL,0,NULL,NULL 73689,437031,1107824,Custodian Critic Caucus Yearling Commentator Revival Caucus Constituent Revival Yearling,NULL,NULL,0,NULL,NULL 73690,326454,1249147,Famous Question Yearling,NULL,NULL,0,NULL,NULL 73691,192714,709660,NULL,NULL,NULL,0,NULL,NULL 73692,629634,617631,Popular Question Yearling Nice Answer Great Question Yearling Notable Question Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 73693,343656,1231398,NULL,NULL,NULL,0,NULL,NULL 73694,1509932,845859,Popular Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 73695,1022536,177489,Popular Question Necromancer Necromancer Notable Question Revival Necromancer Necromancer Necromancer Great Answer Yearling Populist Nice Answer Nice Answer Enlightened ruby Nice Answer Custodian Good Answer Popular Question Nice Answer Yearling Nice Answer Enthusiast Civic Duty Custodian Revival Necromancer Necromancer Nice Question Good Question Popular Question Notable Question Necromancer Nice Answer Famous Question Great Question Necromancer Necromancer Popular Question ruby-on-rails-3 Nice Answer Nice Answer Yearling Necromancer Necromancer Necromancer Guru,NULL,NULL,0,NULL,NULL 73696,54894,515371,NULL,NULL,NULL,0,NULL,NULL 73697,137634,1387769,Yearling Popular Question Popular Question Notable Question Good Question Notable Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 73698,36374,4869,Publicist Custodian Yearling Nice Answer Famous Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 73699,470578,285079,NULL,NULL,NULL,0,NULL,NULL 73700,129527,9942,Popular Question Yearling Necromancer Notable Question Self-Learner Notable Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 73701,289702,1144520,NULL,NULL,NULL,0,NULL,NULL 73702,119960,1306891,NULL,NULL,NULL,0,NULL,NULL 73703,200951,251174,Yearling sql Famous Question Caucus Constituent Yearling Popular Question Announcer Caucus Announcer Yearling Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 73704,915084,698317,NULL,NULL,NULL,0,NULL,NULL 73705,89270,1200805,Yearling Yearling Yearling Excavator,NULL,NULL,0,NULL,NULL 73706,514300,613212,Teacher,NULL,NULL,0,NULL,NULL 73707,254234,427793,Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Revival Famous Question Notable Question Yearling Revival Custodian Revival Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Nice Question Notable Question Announcer Good Answer Popular Question Notable Question Necromancer Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Famous Question Popular Question Notable Question Necromancer Mortarboard Necromancer Necromancer Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Custodian Popular Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 73708,73689,813602,Necromancer Reviewer Nice Answer Good Answer Nice Answer Popular Question Nice Answer Enlightened Steward Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened Steward Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Guru Nice Answer Enlightened windows Nice Answer Good Answer Reviewer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Caucus Necromancer Constituent plugins Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Enlightened Nice Answer Good Answer Enlightened vi Steward Good Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer shell Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Guru regex Yearling Nice Answer Nice Answer Enlightened vim-plugin Great Answer Good Answer Nice Answer Nice Answer Populist Good Answer Good Answer Caucus Constituent Revival autocomplete Good Answer Nice Answer Guru Nice Answer Enlightened Documentation User Nice Answer Enlightened Guru Revival Guru Nice Answer Good Answer Nice Answer Enlightened c++ Nice Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened Caucus Constituent Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Necromancer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Revival nerdtree Revival Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Guru Nice Answer,NULL,pYou can use my href http www vim org scripts script php script id 4168 SyntaxRange plugin for that ppEither explicitly assign the range ppre code 10 20SyntaxInclude bnf code prepor automatically based on the delimiting patterns ppre code call SyntaxRange Include lt BNF gt lt BNF gt bnf code pre not sure you ll get support from some arbitrary owner of clone of my plugin Additionally you have simple installation issue you need my ingo library plugin http www vim org scripts script php script id 4433 dependency too This is documented in the plugin help,0,NULL,NULL 73709,616175,1205735,NULL,NULL,NULL,0,NULL,NULL 73710,70831,581410,NULL,NULL,NULL,0,NULL,NULL 73711,251424,556994,NULL,NULL,NULL,0,NULL,NULL 73712,1980872,846786,NULL,NULL,NULL,0,NULL,NULL 73713,1140527,1175762,Popular Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73714,216971,1175762,Popular Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73715,2350263,1294118,Scholar Popular Question,NULL,NULL,0,NULL,NULL 73716,597772,1294118,Scholar Popular Question,NULL,NULL,0,NULL,NULL 73717,29668,1505992,NULL,NULL,NULL,0,NULL,NULL 73718,2440819,561039,NULL,NULL,NULL,0,NULL,NULL 73719,480855,561039,NULL,NULL,NULL,0,NULL,NULL 73720,60071,620441,Popular Question Good Answer Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73721,120285,522421,NULL,NULL,NULL,0,NULL,NULL 73722,554746,468404,NULL,NULL,NULL,0,NULL,NULL 73723,1117084,1131286,NULL,NULL,NULL,0,NULL,NULL 73724,293505,1108505,Necromancer Promoter Nice Question Yearling Custodian Critic Citizen Patrol Benefactor Yearling Notable Question Revival Curious Yearling Necromancer Organizer Notable Question Documentation User Notable Question Yearling Nice Answer Necromancer Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 73725,888328,1286330,NULL,NULL,NULL,0,NULL,NULL 73726,387539,753151,NULL,NULL,NULL,0,NULL,NULL 73727,251544,1181115,NULL,NULL,NULL,0,NULL,NULL 73728,391130,1498034,Editor,NULL,NULL,0,NULL,NULL 73729,3044442,1498034,Editor,NULL,NULL,0,NULL,NULL 73730,261776,1332897,NULL,NULL,NULL,0,NULL,NULL 73731,235961,907784,Notable Question,NULL,NULL,0,NULL,NULL 73732,45294,145402,NULL,NULL,NULL,0,NULL,NULL 73733,874259,1081570,NULL,NULL,NULL,0,NULL,NULL 73734,88367,945349,NULL,NULL,NULL,0,NULL,NULL 73735,391088,444773,NULL,NULL,NULL,0,NULL,NULL 73736,563050,1269580,NULL,NULL,NULL,0,NULL,NULL 73737,9279,859657,NULL,NULL,NULL,0,NULL,NULL 73738,130457,202602,NULL,NULL,NULL,0,NULL,NULL 73739,36782,1248928,NULL,NULL,NULL,0,NULL,NULL 73740,81272,202250,Nice Question Yearling Famous Question Civic Duty Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 73741,250633,204452,Informed Caucus Documentation User Scholar Announcer Autobiographer,NULL,NULL,0,NULL,NULL 73742,111870,570461,Notable Question,NULL,NULL,0,NULL,NULL 73743,826620,381646,Yearling Caucus Nice Question Yearling Critic Census Caucus,NULL,NULL,0,NULL,NULL 73744,1094277,1108969,Yearling Commentator Tumbleweed,NULL,NULL,0,NULL,NULL 73745,348047,1040241,NULL,NULL,NULL,0,NULL,NULL 73746,1537914,856988,Popular Question,NULL,NULL,0,NULL,NULL 73747,1341349,140377,Nice Question Good Answer Custodian Good Answer Yearling Nice Question Yearling Nice Answer Enlightened Nice Question Popular Question Census Necromancer Nice Answer Enlightened Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73748,241024,541209,Notable Question,NULL,NULL,0,NULL,NULL 73749,772046,1144507,NULL,NULL,NULL,0,NULL,NULL 73750,1939266,397898,Unsung Hero Famous Question Popular Question Yearling Notable Question Popular Question Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 73751,34799,337446,Excavator Yearling Guru Good Question Famous Question Yearling Documentation User Custodian Revival Yearling Custodian Popular Question Nice Question Civic Duty,NULL,NULL,0,NULL,NULL 73752,821296,596487,Notable Question,NULL,NULL,0,NULL,NULL 73753,46774,514213,NULL,NULL,NULL,0,NULL,NULL 73754,22036,818314,Yearling,NULL,NULL,0,NULL,NULL 73755,95217,289360,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73756,198742,491733,NULL,NULL,NULL,0,NULL,NULL 73757,164480,197948,NULL,NULL,NULL,0,NULL,NULL 73758,218634,585538,Informed,NULL,NULL,0,NULL,NULL 73759,6398042,1482521,NULL,NULL,NULL,0,NULL,NULL 73760,109790,2007,Good Question Yearling,NULL,NULL,0,NULL,NULL 73761,2625021,1112917,Good Answer Yearling Notable Question Great Question Guru Yearling jquery,NULL,NULL,0,NULL,NULL 73762,754905,1112917,Good Answer Yearling Notable Question Great Question Guru Yearling jquery,NULL,NULL,0,NULL,NULL 73763,797985,893314,Enthusiast Teacher Excavator Necromancer,NULL,NULL,0,NULL,NULL 73764,416820,325829,Nice Answer Famous Question Yearling Notable Question Good Question Famous Question Citizen Patrol Custodian Nice Question Caucus Popular Question Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 73765,222760,1060807,NULL,NULL,NULL,0,NULL,NULL 73766,21104,1007243,NULL,NULL,NULL,0,NULL,NULL 73767,75103,485411,NULL,NULL,NULL,0,NULL,NULL 73768,182906,754141,Nice Question Notable Question Famous Question Tumbleweed Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 73769,2675679,961772,NULL,NULL,NULL,0,NULL,NULL 73770,465961,849328,Popular Question Informed,NULL,NULL,0,NULL,NULL 73771,449102,795267,Famous Question Yearling Guru Popular Question Popular Question Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 73772,1211894,26003,Good Answer Disciplined Yearling Caucus Good Answer Nice Answer Revival Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73773,241740,43496,Famous Question Popular Question Good Question Great Question Notable Question Popular Question Caucus Famous Question Good Question Yearling Famous Question Notable Question Notable Question Yearling Nice Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73774,415273,5838,Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 73775,268660,660549,Nice Question,NULL,NULL,0,NULL,NULL 73776,606582,1292050,Popular Question Custodian Popular Question Self-Learner Yearling Autobiographer Popular Question Popular Question Necromancer Popular Question Nice Answer Popular Question Popular Question Popular Question Nice Question Notable Question Good Answer Notable Question Announcer Yearling Inquisitive Notable Question Revival Announcer Notable Question Revival Necromancer Citizen Patrol Announcer Promoter Popular Question Necromancer Nice Answer Benefactor Notable Question javascript Necromancer Necromancer Informed Notable Question Necromancer Announcer Yearling Popular Question Nice Answer Announcer Announcer Announcer Necromancer Nice Answer Popular Question Popular Question Popular Question Revival Popular Question Good Answer Notable Question Revival Popular Question Great Answer Famous Question Popular Question Necromancer,NULL,NULL,1,NULL,What is the meaning of No bundle URL present in react native ios reactjs react native pWhen run react native project get error codeno bundle URL present code but don know what mistakes do was very confused pp href https stack imgur com SUaiY png rel noreferrer img src https stack imgur com SUaiY png alt enter image description here pAssuming that you are using codenvm code and multiple versions of node installed here is the solution polliSay that you run codenpm install react native cli code in codenode v6 code liliNow make codenode v6 code as default by running codenvm alias default code liliNow run codereact native run ios code li olpThe problem is you have multiple versions of node installed via codenvm code and to install codereact native cli code you have switched or installed latest version of node which is not marked as default node to point in codenvm code yet When you run codereact native run ios code this opens up another new terminal window in which default codenvm code is not pointed to the node version where you have installed codereact native cli code Just follow the above setup hope that should help 73777,37417,1224496,NULL,NULL,NULL,0,NULL,NULL 73778,250182,576641,Popular Question Popular Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 73779,1244804,670644,NULL,NULL,NULL,0,NULL,NULL 73780,96546,712683,NULL,NULL,NULL,0,NULL,NULL 73781,230021,53850,Yearling Nice Answer Guru Popular Question Yearling Great Answer Nice Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Good Answer Nice Answer Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 73782,250677,1110958,NULL,NULL,NULL,0,NULL,NULL 73783,232688,313920,NULL,NULL,NULL,0,NULL,NULL 73784,2564014,1220276,NULL,NULL,NULL,0,NULL,NULL 73785,81010,796384,NULL,NULL,NULL,0,NULL,NULL 73786,1359377,903829,Yearling Good Answer Yearling Census Good Answer Yearling,NULL,NULL,0,NULL,NULL 73787,312505,410607,Yearling Guru,NULL,NULL,0,NULL,NULL 73788,255886,419130,NULL,NULL,NULL,0,NULL,NULL 73789,536507,709627,Yearling Revival Nice Answer Enlightened Necromancer Yearling Necromancer Yearling Student Revival,NULL,NULL,0,NULL,NULL 73790,48373,1296275,NULL,NULL,NULL,0,NULL,NULL 73791,613589,140836,NULL,NULL,NULL,0,NULL,NULL 73792,279784,145583,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73793,2476200,608770,Yearling Custodian Self-Learner Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73794,9715,961114,NULL,NULL,NULL,0,NULL,NULL 73795,111360,418653,NULL,NULL,NULL,0,NULL,NULL 73796,76412,1281021,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73797,151654,1561574,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73798,121294,983714,Good Answer,NULL,NULL,0,NULL,NULL 73799,43931,23652,NULL,NULL,NULL,0,NULL,NULL 73800,143863,1533454,Scholar,NULL,NULL,0,NULL,NULL 73801,67446,720146,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73802,202635,221702,NULL,NULL,NULL,0,NULL,NULL 73803,22258,201780,Yearling Necromancer Popular Question,NULL,NULL,0,NULL,NULL 73804,280818,110238,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73805,1676471,589015,Yearling Critic,NULL,NULL,0,NULL,NULL 73806,196402,1349216,NULL,NULL,NULL,0,NULL,NULL 73807,121390,1361259,Informed,NULL,NULL,0,NULL,NULL 73808,267441,1171132,Yearling Nice Answer Nice Question Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73809,13751,1112693,Custodian Nice Answer Enlightened Nice Answer Enlightened Revival Yearling linkedin Yearling,NULL,NULL,0,NULL,NULL 73810,89031,533198,Informed,NULL,NULL,0,NULL,NULL 73811,61120,1016653,NULL,NULL,NULL,0,NULL,NULL 73812,860602,984667,NULL,NULL,NULL,0,NULL,NULL 73813,45994,483573,Necromancer Critic,NULL,NULL,0,NULL,NULL 73814,835074,455198,Supporter,NULL,NULL,0,NULL,NULL 73815,37318,1157534,Yearling Good Answer Nice Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73816,193866,985102,NULL,NULL,NULL,0,NULL,NULL 73817,1508165,818683,NULL,NULL,NULL,0,NULL,NULL 73818,552516,408940,Popular Question Yearling Excavator Notable Question Tumbleweed Revival Necromancer,NULL,NULL,0,NULL,NULL 73819,113573,1330835,NULL,NULL,NULL,0,NULL,NULL 73820,1300506,743754,Caucus Caucus,NULL,NULL,0,NULL,NULL 73821,151616,838930,NULL,NULL,NULL,0,NULL,NULL 73822,449231,1231202,Necromancer,NULL,NULL,0,NULL,NULL 73823,10100,859471,Commentator Yearling,NULL,NULL,0,NULL,NULL 73824,68462,789774,Yearling Good Answer Popular Question Popular Question Good Question Nice Question Yearling Caucus Yearling Notable Question Custodian Yearling Notable Question Good Question Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 73825,765666,1241602,NULL,NULL,NULL,0,NULL,NULL 73826,193664,197536,Necromancer Disciplined,NULL,NULL,0,NULL,NULL 73827,367291,458207,NULL,NULL,NULL,0,NULL,NULL 73828,29348,1108511,NULL,NULL,NULL,0,NULL,NULL 73829,134397,497055,Announcer,NULL,NULL,0,NULL,NULL 73830,1360591,485223,NULL,NULL,NULL,0,NULL,NULL 73831,129228,559263,NULL,NULL,,0,, 73832,4636253,1503534,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73833,147110,1503534,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73834,303842,903194,Necromancer Nice Answer Great Answer Nice Answer Yearling Good Answer Good Answer Good Answer Yearling Guru Nice Answer Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 73835,24025,579932,Yearling Supporter,NULL,NULL,0,NULL,NULL 73836,856925,635508,Critic Curious,NULL,NULL,0,NULL,NULL 73837,158093,11827,Popular Question Popular Question Nice Question Famous Question Popular Question Yearling Famous Question Notable Question Popular Question Yearling Famous Question Popular Question Notable Question Popular Question Favorite Question Notable Question Notable Question Yearling,NULL,pThe href https github com robots txt rel noreferrer https github com robots txt file of GitHub allows the indexing of the blobs in the master branch but restricts all other branches So if you don have master branch Google is not supposed to index your pages ppHow to remove the master branch ppIn your clone create new branch let call it main and push it to GitHub ppre codegit checkout maingit push origin main code prepOn GitHub change the default branch see in the Settings section of your repository or here href https github com blog 421 pick your default branch rel noreferrer https github com blog 421 pick your default branch ppThen remove the master branch from your clone and from GitHub ppre codegit branch mastergit push origin master code prepGet other people who might have already forked your repository to do the same ppAlternatively if you like to financially support GitHub you can go private href https help github com articles making public repository private rel noreferrer https help github com articles making public repository private as far as know the github pages are served from the gh pages branch if it exists https help github com articles creating project pages manually Nothing to do with the master branch,0,NULL,NULL 73838,146448,277790,NULL,NULL,NULL,0,NULL,NULL 73839,1321270,203487,Custodian Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 73840,3392,203487,Custodian Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 73841,2918012,1410117,Revival,NULL,NULL,0,NULL,NULL 73842,464753,1410117,Revival,NULL,NULL,0,NULL,NULL 73843,788454,718545,Popular Question Yearling Popular Question Promoter Benefactor Notable Question,NULL,NULL,0,NULL,NULL 73844,888921,1419534,Tumbleweed Notable Question Yearling,NULL,NULL,0,NULL,NULL 73845,91435,576749,Yearling Nice Answer Yearling Nice Answer Famous Question Nice Question Guru Nice Answer Curious Nice Answer Yearling Good Answer Notable Question Great Answer Famous Question,NULL,NULL,0,NULL,NULL 73846,19719,974671,NULL,NULL,NULL,0,NULL,NULL 73847,455074,438561,NULL,NULL,NULL,0,NULL,NULL 73848,1343045,801831,NULL,NULL,NULL,0,NULL,NULL 73849,233953,210785,Great Answer ffmpeg Nice Answer Enlightened Enthusiast streaming Nice Answer Civic Duty Nice Answer Enlightened Caucus Yearling Nice Answer Nice Answer Enlightened Nice Answer Caucus video-streaming Guru Fanatic Yearling Nice Answer Census Announcer c++ h.264 Electorate Good Answer Yearling,NULL,pFirst off it important to understand that there is no single standard 264 elementary bitstream format The specification document does contain an Annex specifically Annex that describes one possible format but it is not an actual requirement The standard specifies how video is encoded into individual packets How these packets are stored and transmitted is left open to the integrator phrh11 Annex h1h2Network Abstraction Layer Units h2pThe packets are called Network Abstraction Layer Units Often abbreviated NALU or sometimes just NAL each packet can be individually parsed and processed The first byte of each NALU contains the NALU type specifically bits through bit is always off and bits indicate whether NALU is referenced by another NALU ppThere are 19 different NALU types defined separated into two categories VCL and non VCL pulliVCL or Video Coding Layer packets contain the actual visual information liliNon VCLs contain metadata that may or may not be required to decode the video li ulpA single NALU or even VCL NALU is NOT the same thing as frame frame can be ‘sliced’ into several NALUs Just like you can slice pizza One or more slices are then virtually grouped into Access Units AU that contain one frame Slicing does come at slight quality cost so it is not often used ppBelow is table of all defined NALUs ppre code0 Unspecified non VCL1 Coded slice of non IDR picture VCL2 Coded slice data partition VCL3 Coded slice data partition VCL4 Coded slice data partition VCL5 Coded slice of an IDR picture VCL6 Supplemental enhancement information SEI non VCL7 Sequence parameter set non VCL8 Picture parameter set non VCL9 Access unit delimiter non VCL10 End of sequence non VCL11 End of stream non VCL12 Filler data non VCL13 Sequence parameter set extension non VCL14 Prefix NAL unit non VCL15 Subset sequence parameter set non VCL16 Depth parameter set non VCL17 18 Reserved non VCL19 Coded slice of an auxiliary coded picture without partitioning non VCL20 Coded slice extension non VCL21 Coded slice extension for depth view components non VCL22 23 Reserved non VCL24 31 Unspecified non VCL code prepThere are couple of NALU types where having knowledge of may be helpful later pulli strongSequence Parameter Set SPS strong This non VCL NALU contains information required to configure the decoder such as profile level resolution frame rate lili strongPicture Parameter Set PPS strong Similar to the SPS this non VCL contains information on entropy coding mode slice groups motion prediction and deblocking filters lili strongInstantaneous Decoder Refresh IDR strong This VCL NALU is self contained image slice That is an IDR can be decoded and displayed without referencing any other NALU save SPS and PPS lili strongAccess Unit Delimiter AUD strong An AUD is an optional NALU that can be use to delimit frames in an elementary stream It is not required unless otherwise stated by the container protocol like TS and is often not included in order to save space but it can be useful to finds the start of frame without having to fully parse each NALU li ulh2NALU Start Codes h2pA NALU does not contain is its size Therefore simply concatenating the NALUs to create stream will not work because you will not know where one stops and the next begins ppThe Annex specification solves this by requiring ‘Start Codes’ to precede each NALU start code is or code0x00 code bytes followed with code0x01 code byte code0x000001 code or code0x00000001 code ppThe byte variation is useful for transmission over serial connection as it is trivial to byte align the stream by looking for 31 zero bits followed by one If the next bit is because every NALU starts with bit it is the start of NALU The byte variation is usually only used for signaling random access points in the stream such as SPS PPS AUD and IDR Where as the byte variation is used everywhere else to save space ph2Emulation Prevention Bytes h2pStart codes work because the four byte sequences code0x000000 code code0x000001 code code0x000002 code and code0x000003 code are illegal within non RBSP NALU So when creating NALU care is taken to escape these values that could otherwise be confused with start code This is accomplished by inserting an ‘Emulation Prevention’ byte code0x03 code so that code0x000001 code becomes code0x00000301 code ppWhen decoding it is important to look for and ignore emulation prevention bytes Because emulation prevention bytes can occur almost anywhere within NALU it is often more convenient in documentation to assume they have already been removed representation without emulation prevention bytes is called Raw Byte Sequence Payload RBSP ph2Example h2pLet look at complete example ppre code0x0000 00 00 00 01 67 64 00 0A AC 72 84 44 26 84 00 000x0010 03 00 04 00 00 03 00 CA 3C 48 96 11 80 00 00 000x0020 01 68 E8 43 8F 13 21 30 00 00 01 65 88 81 00 050x0030 4E 7F 87 DF 61 A5 8B 95 EE A4 E9 38 B7 6A 30 6A0x0040 71 B9 55 60 0B 76 2E B5 0E E4 80 59 27 B8 67 A90x0050 63 37 5E 82 20 55 FB E4 6A E9 37 35 72 E2 22 910x0060 9E 4D FF 60 86 CE 7E 42 B7 95 CE 2A E1 26 BE 870x0070 73 84 26 BA 16 36 F4 E6 9F 17 DA D8 64 75 54 B10x0080 F3 45 0C 0B 3C 74 B3 9D BC EB 53 73 87 C3 0E 620x0090 47 48 62 CA 59 EB 86 3F 3A FA 86 B5 BF A8 6D 060x00A0 16 50 82 C4 CE 62 9E 4E E6 4C C7 30 3E DE A1 0B0x00B0 D8 83 0B B6 B8 28 BC A9 EB 77 43 FC 7A 17 94 850x00C0 21 CA 37 6B 30 95 B5 46 77 30 60 B7 12 D6 8C C50x00D0 54 85 29 D8 69 A9 6F 12 4E 71 DF E3 E2 B1 6B 6B0x00E0 BF 9F FB 2E 57 30 A9 69 76 C4 46 A2 DF FA 91 D90x00F0 50 74 55 1D 49 04 5A 1C D6 86 68 7C B6 61 48 6C0x0100 96 E6 12 4C 27 AD BA C7 51 99 8E D0 F0 ED 8E F60x0110 65 79 79 A6 12 A1 95 DB C8 AE E3 B6 35 E6 8D BC0x0120 48 A3 7F AF 4A 28 8A 53 E2 7E 68 08 9F 67 77 980x0130 52 DB 50 84 D6 5E 25 E1 4A 99 58 34 C7 11 D6 430x0140 FF C4 FD 9A 44 16 D1 B2 FB 02 DB A1 89 69 34 C20x0150 32 55 98 F9 9B B2 31 3F 49 59 0C 06 8C DB A5 B20x0160 9D 7E 12 2F D0 87 94 44 E4 0A 76 EF 99 2D 91 180x0170 39 50 3B 29 3B F5 2C 97 73 48 91 83 B0 A6 F3 4B0x0180 70 2F 1C 8F 3B 78 23 C6 AA 86 46 43 1D D7 2A 230x0190 5E 2C D9 48 0A F5 F5 2C D1 FB 3F F0 4B 78 37 E90x01A0 45 DD 72 CF 80 35 C3 95 07 F3 D9 06 E5 4A 58 760x01B0 03 6C 81 20 62 45 65 44 73 BC FE C1 9F 31 E5 DB0x01C0 89 5C 6B 79 D8 68 90 D7 26 A8 A1 88 86 81 DC 9A0x01D0 4F 40 A5 23 C7 DE BE 6F 76 AB 79 16 51 21 67 830x01E0 2E F3 D6 27 1A 42 C2 94 D1 5D 6C DB 4A 7A E2 CB0x01F0 0B B0 68 0B BE 19 59 00 50 FC C0 BD 9D F5 F5 F80x0200 A8 17 19 D6 B3 E9 74 BA 50 E5 2C 45 7B F9 93 EA0x0210 5A F9 A9 30 B1 6F 5B 36 24 1E 8D 55 57 F4 CC 670x0220 B2 65 6A A9 36 26 D0 06 B8 E2 E3 73 8B D1 C0 1C0x0230 52 15 CA B5 AC 60 3E 36 42 F1 2C BD 99 77 AB A80x0240 A9 A4 8E 9C 8B 84 DE 73 F0 91 29 97 AE DB AF D60x0250 F8 5E 9B 86 B3 B3 03 B3 AC 75 6F A6 11 69 2F 3D0x0260 3A CE FA 53 86 60 95 6C BB C5 4E F3 code prepThis is complete AU containing NALUs As you can see we begin with Start code followed by an SPS SPS starts with 67 Within the SPS you will see two Emulation Prevention bytes Without these bytes the illegal sequence code0x000000 code would occur at these positions Next you will see start code followed by PPS PPS starts with 68 and one final start code followed by an IDR slice This is complete 264 stream If you type these values into hex editor and save the file with code 264 code extension you will be able to convert it to this image pp img src https stack imgur com Szfku png alt Lena ppAnnex is commonly used in live and streaming formats such as transport streams over the air broadcasts and DVDs In these formats it is common to repeat the SPS and PPS periodically usually preceding every IDR thus creating random access point for the decoder This enables the ability to join stream already in progress phrh12 AVCC h1pThe other common method of storing an 264 stream is the AVCC format In this format each NALU is preceded with its length in big endian format This method is easier to parse but you lose the byte alignment features of Annex Just to complicate things the length may be encoded using or bytes This value is stored in header object This header is often called ‘extradata’ or ‘sequence header’ Its basic format is as follows ppre codebits version always 0x01 avc profile sps avc compatibility sps avc level sps reserved all bits on NALULengthSizeMinusOne3 reserved all bits on number of SPS NALUs usually repeated once per SPS 16 SPS size variable SPS NALU data8 number of PPS NALUs usually repeated once per PPS 16 PPS size variable PPS NALU data code prepUsing the same example above the AVCC extradata will look like this ppre code0x0000 01 64 00 0A FF E1 00 19 67 64 00 0A AC 72 84 440x0010 26 84 00 00 03 00 04 00 00 03 00 CA 3C 48 96 110x0020 80 01 00 07 68 E8 43 8F 13 21 30 code prepYou will notice SPS and PPS is now stored out of band That is separate from the elementary stream data Storage and transmission of this data is the job of the file container and beyond the scope of this document Notice that even though we are not using start codes emulation prevention bytes are still inserted ppAdditionally there is new variable called codeNALULengthSizeMinusOne code This confusingly named variable tells us how many bytes to use to store the length of each NALU So if codeNALULengthSizeMinusOne code is set to then each NALU is preceded with single byte indicating its length Using single byte to store the size the max size of NALU is 255 bytes That is obviously pretty small Way too small for an entire key frame Using bytes gives us 64k per NALU It would work in our example but is still pretty low limit bytes would be perfect but for some reason is not universally supported Therefore bytes is by far the most common and it is what we used here ppre code0x0000 00 00 02 41 65 88 81 00 05 4E 7F 87 DF 61 A5 8B0x0010 95 EE A4 E9 38 B7 6A 30 6A 71 B9 55 60 0B 76 2E0x0020 B5 0E E4 80 59 27 B8 67 A9 63 37 5E 82 20 55 FB0x0030 E4 6A E9 37 35 72 E2 22 91 9E 4D FF 60 86 CE 7E0x0040 42 B7 95 CE 2A E1 26 BE 87 73 84 26 BA 16 36 F40x0050 E6 9F 17 DA D8 64 75 54 B1 F3 45 0C 0B 3C 74 B30x0060 9D BC EB 53 73 87 C3 0E 62 47 48 62 CA 59 EB 860x0070 3F 3A FA 86 B5 BF A8 6D 06 16 50 82 C4 CE 62 9E0x0080 4E E6 4C C7 30 3E DE A1 0B D8 83 0B B6 B8 28 BC0x0090 A9 EB 77 43 FC 7A 17 94 85 21 CA 37 6B 30 95 B50x00A0 46 77 30 60 B7 12 D6 8C C5 54 85 29 D8 69 A9 6F0x00B0 12 4E 71 DF E3 E2 B1 6B 6B BF 9F FB 2E 57 30 A90x00C0 69 76 C4 46 A2 DF FA 91 D9 50 74 55 1D 49 04 5A0x00D0 1C D6 86 68 7C B6 61 48 6C 96 E6 12 4C 27 AD BA0x00E0 C7 51 99 8E D0 F0 ED 8E F6 65 79 79 A6 12 A1 950x00F0 DB C8 AE E3 B6 35 E6 8D BC 48 A3 7F AF 4A 28 8A0x0100 53 E2 7E 68 08 9F 67 77 98 52 DB 50 84 D6 5E 250x0110 E1 4A 99 58 34 C7 11 D6 43 FF C4 FD 9A 44 16 D10x0120 B2 FB 02 DB A1 89 69 34 C2 32 55 98 F9 9B B2 310x0130 3F 49 59 0C 06 8C DB A5 B2 9D 7E 12 2F D0 87 940x0140 44 E4 0A 76 EF 99 2D 91 18 39 50 3B 29 3B F5 2C0x0150 97 73 48 91 83 B0 A6 F3 4B 70 2F 1C 8F 3B 78 230x0160 C6 AA 86 46 43 1D D7 2A 23 5E 2C D9 48 0A F5 F50x0170 2C D1 FB 3F F0 4B 78 37 E9 45 DD 72 CF 80 35 C30x0180 95 07 F3 D9 06 E5 4A 58 76 03 6C 81 20 62 45 650x0190 44 73 BC FE C1 9F 31 E5 DB 89 5C 6B 79 D8 68 900x01A0 D7 26 A8 A1 88 86 81 DC 9A 4F 40 A5 23 C7 DE BE0x01B0 6F 76 AB 79 16 51 21 67 83 2E F3 D6 27 1A 42 C20x01C0 94 D1 5D 6C DB 4A 7A E2 CB 0B B0 68 0B BE 19 590x01D0 00 50 FC C0 BD 9D F5 F5 F8 A8 17 19 D6 B3 E9 740x01E0 BA 50 E5 2C 45 7B F9 93 EA 5A F9 A9 30 B1 6F 5B0x01F0 36 24 1E 8D 55 57 F4 CC 67 B2 65 6A A9 36 26 D00x0200 06 B8 E2 E3 73 8B D1 C0 1C 52 15 CA B5 AC 60 3E0x0210 36 42 F1 2C BD 99 77 AB A8 A9 A4 8E 9C 8B 84 DE0x0220 73 F0 91 29 97 AE DB AF D6 F8 5E 9B 86 B3 B3 030x0230 B3 AC 75 6F A6 11 69 2F 3D 3A CE FA 53 86 60 950x0240 6C BB C5 4E F3 code prepAn advantage to this format is the ability to configure the decoder at the start and jump into the middle of stream This is common use case where the media is available on random access medium such as hard drive and is therefore used in common container formats such as MP4 and MKV good catch fixed pFirst off it important to understand that there is no single standard 264 elementary bitstream format The specification document does contain an Annex specifically Annex that describes one possible format but it is not an actual requirement The standard specifies how video is encoded into individual packets How these packets are stored and transmitted is left open to the integrator phrh11 Annex h1h2Network Abstraction Layer Units h2pThe packets are called Network Abstraction Layer Units Often abbreviated NALU or sometimes just NAL each packet can be individually parsed and processed The first byte of each NALU contains the NALU type specifically bits through bit is always off and bits indicate whether NALU is referenced by another NALU ppThere are 19 different NALU types defined separated into two categories VCL and non VCL pulliVCL or Video Coding Layer packets contain the actual visual information liliNon VCLs contain metadata that may or may not be required to decode the video li ulpA single NALU or even VCL NALU is NOT the same thing as frame frame can be ‘sliced’ into several NALUs Just like you can slice pizza One or more slices are then virtually grouped into Access Units AU that contain one frame Slicing does come at slight quality cost so it is not often used ppBelow is table of all defined NALUs ppre code0 Unspecified non VCL1 Coded slice of non IDR picture VCL2 Coded slice data partition VCL3 Coded slice data partition VCL4 Coded slice data partition VCL5 Coded slice of an IDR picture VCL6 Supplemental enhancement information SEI non VCL7 Sequence parameter set non VCL8 Picture parameter set non VCL9 Access unit delimiter non VCL10 End of sequence non VCL11 End of stream non VCL12 Filler data non VCL13 Sequence parameter set extension non VCL14 Prefix NAL unit non VCL15 Subset sequence parameter set non VCL16 Depth parameter set non VCL17 18 Reserved non VCL19 Coded slice of an auxiliary coded picture without partitioning non VCL20 Coded slice extension non VCL21 Coded slice extension for depth view components non VCL22 23 Reserved non VCL24 31 Unspecified non VCL code prepThere are couple of NALU types where having knowledge of may be helpful later pulli strongSequence Parameter Set SPS strong This non VCL NALU contains information required to configure the decoder such as profile level resolution frame rate lili strongPicture Parameter Set PPS strong Similar to the SPS this non VCL contains information on entropy coding mode slice groups motion prediction and deblocking filters lili strongInstantaneous Decoder Refresh IDR strong This VCL NALU is self contained image slice That is an IDR can be decoded and displayed without referencing any other NALU save SPS and PPS lili strongAccess Unit Delimiter AUD strong An AUD is an optional NALU that can be use to delimit frames in an elementary stream It is not required unless otherwise stated by the container protocol like TS and is often not included in order to save space but it can be useful to finds the start of frame without having to fully parse each NALU li ulh2NALU Start Codes h2pA NALU does not contain is its size Therefore simply concatenating the NALUs to create stream will not work because you will not know where one stops and the next begins ppThe Annex specification solves this by requiring ‘Start Codes’ to precede each NALU start code is or code0x00 code bytes followed with code0x01 code byte code0x000001 code or code0x00000001 code ppThe byte variation is useful for transmission over serial connection as it is trivial to byte align the stream by looking for 31 zero bits followed by one If the next bit is because every NALU starts with bit it is the start of NALU The byte variation is usually only used for signaling random access points in the stream such as SPS PPS AUD and IDR Where as the byte variation is used everywhere else to save space ph2Emulation Prevention Bytes h2pStart codes work because the four byte sequences code0x000000 code code0x000001 code code0x000002 code and code0x000003 code are illegal within non RBSP NALU So when creating NALU care is taken to escape these values that could otherwise be confused with start code This is accomplished by inserting an ‘Emulation Prevention’ byte code0x03 code so that code0x000001 code becomes code0x00000301 code ppWhen decoding it is important to look for and ignore emulation prevention bytes Because emulation prevention bytes can occur almost anywhere within NALU it is often more convenient in documentation to assume they have already been removed representation without emulation prevention bytes is called Raw Byte Sequence Payload RBSP ph2Example h2pLet look at complete example ppre code0x0000 00 00 00 01 67 64 00 0A AC 72 84 44 26 84 00 000x0010 03 00 04 00 00 03 00 CA 3C 48 96 11 80 00 00 000x0020 01 68 E8 43 8F 13 21 30 00 00 01 65 88 81 00 050x0030 4E 7F 87 DF 61 A5 8B 95 EE A4 E9 38 B7 6A 30 6A0x0040 71 B9 55 60 0B 76 2E B5 0E E4 80 59 27 B8 67 A90x0050 63 37 5E 82 20 55 FB E4 6A E9 37 35 72 E2 22 910x0060 9E 4D FF 60 86 CE 7E 42 B7 95 CE 2A E1 26 BE 870x0070 73 84 26 BA 16 36 F4 E6 9F 17 DA D8 64 75 54 B10x0080 F3 45 0C 0B 3C 74 B3 9D BC EB 53 73 87 C3 0E 620x0090 47 48 62 CA 59 EB 86 3F 3A FA 86 B5 BF A8 6D 060x00A0 16 50 82 C4 CE 62 9E 4E E6 4C C7 30 3E DE A1 0B0x00B0 D8 83 0B B6 B8 28 BC A9 EB 77 43 FC 7A 17 94 850x00C0 21 CA 37 6B 30 95 B5 46 77 30 60 B7 12 D6 8C C50x00D0 54 85 29 D8 69 A9 6F 12 4E 71 DF E3 E2 B1 6B 6B0x00E0 BF 9F FB 2E 57 30 A9 69 76 C4 46 A2 DF FA 91 D90x00F0 50 74 55 1D 49 04 5A 1C D6 86 68 7C B6 61 48 6C0x0100 96 E6 12 4C 27 AD BA C7 51 99 8E D0 F0 ED 8E F60x0110 65 79 79 A6 12 A1 95 DB C8 AE E3 B6 35 E6 8D BC0x0120 48 A3 7F AF 4A 28 8A 53 E2 7E 68 08 9F 67 77 980x0130 52 DB 50 84 D6 5E 25 E1 4A 99 58 34 C7 11 D6 430x0140 FF C4 FD 9A 44 16 D1 B2 FB 02 DB A1 89 69 34 C20x0150 32 55 98 F9 9B B2 31 3F 49 59 0C 06 8C DB A5 B20x0160 9D 7E 12 2F D0 87 94 44 E4 0A 76 EF 99 2D 91 180x0170 39 50 3B 29 3B F5 2C 97 73 48 91 83 B0 A6 F3 4B0x0180 70 2F 1C 8F 3B 78 23 C6 AA 86 46 43 1D D7 2A 230x0190 5E 2C D9 48 0A F5 F5 2C D1 FB 3F F0 4B 78 37 E90x01A0 45 DD 72 CF 80 35 C3 95 07 F3 D9 06 E5 4A 58 760x01B0 03 6C 81 20 62 45 65 44 73 BC FE C1 9F 31 E5 DB0x01C0 89 5C 6B 79 D8 68 90 D7 26 A8 A1 88 86 81 DC 9A0x01D0 4F 40 A5 23 C7 DE BE 6F 76 AB 79 16 51 21 67 830x01E0 2E F3 D6 27 1A 42 C2 94 D1 5D 6C DB 4A 7A E2 CB0x01F0 0B B0 68 0B BE 19 59 00 50 FC C0 BD 9D F5 F5 F80x0200 A8 17 19 D6 B3 E9 74 BA 50 E5 2C 45 7B F9 93 EA0x0210 5A F9 A9 30 B1 6F 5B 36 24 1E 8D 55 57 F4 CC 670x0220 B2 65 6A A9 36 26 D0 06 B8 E2 E3 73 8B D1 C0 1C0x0230 52 15 CA B5 AC 60 3E 36 42 F1 2C BD 99 77 AB A80x0240 A9 A4 8E 9C 8B 84 DE 73 F0 91 29 97 AE DB AF D60x0250 F8 5E 9B 86 B3 B3 03 B3 AC 75 6F A6 11 69 2F 3D0x0260 3A CE FA 53 86 60 95 6C BB C5 4E F3 code prepThis is complete AU containing NALUs As you can see we begin with Start code followed by an SPS SPS starts with 67 Within the SPS you will see two Emulation Prevention bytes Without these bytes the illegal sequence code0x000000 code would occur at these positions Next you will see start code followed by PPS PPS starts with 68 and one final start code followed by an IDR slice This is complete 264 stream If you type these values into hex editor and save the file with code 264 code extension you will be able to convert it to this image pp img src https stack imgur com Szfku png alt Lena ppAnnex is commonly used in live and streaming formats such as transport streams over the air broadcasts and DVDs In these formats it is common to repeat the SPS and PPS periodically usually preceding every IDR thus creating random access point for the decoder This enables the ability to join stream already in progress phrh12 AVCC h1pThe other common method of storing an 264 stream is the AVCC format In this format each NALU is preceded with its length in big endian format This method is easier to parse but you lose the byte alignment features of Annex Just to complicate things the length may be encoded using or bytes This value is stored in header object This header is often called ‘extradata’ or ‘sequence header’ Its basic format is as follows ppre codebits version always 0x01 avc profile sps avc compatibility sps avc level sps reserved all bits on NALULengthSizeMinusOne3 reserved all bits on number of SPS NALUs usually repeated once per SPS 16 SPS size variable SPS NALU data8 number of PPS NALUs usually repeated once per PPS 16 PPS size variable PPS NALU data code prepUsing the same example above the AVCC extradata will look like this ppre code0x0000 01 64 00 0A FF E1 00 19 67 64 00 0A AC 72 84 440x0010 26 84 00 00 03 00 04 00 00 03 00 CA 3C 48 96 110x0020 80 01 00 07 68 E8 43 8F 13 21 30 code prepYou will notice SPS and PPS is now stored out of band That is separate from the elementary stream data Storage and transmission of this data is the job of the file container and beyond the scope of this document Notice that even though we are not using start codes emulation prevention bytes are still inserted ppAdditionally there is new variable called codeNALULengthSizeMinusOne code This confusingly named variable tells us how many bytes to use to store the length of each NALU So if codeNALULengthSizeMinusOne code is set to then each NALU is preceded with single byte indicating its length Using single byte to store the size the max size of NALU is 255 bytes That is obviously pretty small Way too small for an entire key frame Using bytes gives us 64k per NALU It would work in our example but is still pretty low limit bytes would be perfect but for some reason is not universally supported Therefore bytes is by far the most common and it is what we used here ppre code0x0000 00 00 02 41 65 88 81 00 05 4E 7F 87 DF 61 A5 8B0x0010 95 EE A4 E9 38 B7 6A 30 6A 71 B9 55 60 0B 76 2E0x0020 B5 0E E4 80 59 27 B8 67 A9 63 37 5E 82 20 55 FB0x0030 E4 6A E9 37 35 72 E2 22 91 9E 4D FF 60 86 CE 7E0x0040 42 B7 95 CE 2A E1 26 BE 87 73 84 26 BA 16 36 F40x0050 E6 9F 17 DA D8 64 75 54 B1 F3 45 0C 0B 3C 74 B30x0060 9D BC EB 53 73 87 C3 0E 62 47 48 62 CA 59 EB 860x0070 3F 3A FA 86 B5 BF A8 6D 06 16 50 82 C4 CE 62 9E0x0080 4E E6 4C C7 30 3E DE A1 0B D8 83 0B B6 B8 28 BC0x0090 A9 EB 77 43 FC 7A 17 94 85 21 CA 37 6B 30 95 B50x00A0 46 77 30 60 B7 12 D6 8C C5 54 85 29 D8 69 A9 6F0x00B0 12 4E 71 DF E3 E2 B1 6B 6B BF 9F FB 2E 57 30 A90x00C0 69 76 C4 46 A2 DF FA 91 D9 50 74 55 1D 49 04 5A0x00D0 1C D6 86 68 7C B6 61 48 6C 96 E6 12 4C 27 AD BA0x00E0 C7 51 99 8E D0 F0 ED 8E F6 65 79 79 A6 12 A1 950x00F0 DB C8 AE E3 B6 35 E6 8D BC 48 A3 7F AF 4A 28 8A0x0100 53 E2 7E 68 08 9F 67 77 98 52 DB 50 84 D6 5E 250x0110 E1 4A 99 58 34 C7 11 D6 43 FF C4 FD 9A 44 16 D10x0120 B2 FB 02 DB A1 89 69 34 C2 32 55 98 F9 9B B2 310x0130 3F 49 59 0C 06 8C DB A5 B2 9D 7E 12 2F D0 87 940x0140 44 E4 0A 76 EF 99 2D 91 18 39 50 3B 29 3B F5 2C0x0150 97 73 48 91 83 B0 A6 F3 4B 70 2F 1C 8F 3B 78 230x0160 C6 AA 86 46 43 1D D7 2A 23 5E 2C D9 48 0A F5 F50x0170 2C D1 FB 3F F0 4B 78 37 E9 45 DD 72 CF 80 35 C30x0180 95 07 F3 D9 06 E5 4A 58 76 03 6C 81 20 62 45 650x0190 44 73 BC FE C1 9F 31 E5 DB 89 5C 6B 79 D8 68 900x01A0 D7 26 A8 A1 88 86 81 DC 9A 4F 40 A5 23 C7 DE BE0x01B0 6F 76 AB 79 16 51 21 67 83 2E F3 D6 27 1A 42 C20x01C0 94 D1 5D 6C DB 4A 7A E2 CB 0B B0 68 0B BE 19 590x01D0 00 50 FC C0 BD 9D F5 F5 F8 A8 17 19 D6 B3 E9 740x01E0 BA 50 E5 2C 45 7B F9 93 EA 5A F9 A9 30 B1 6F 5B0x01F0 36 24 1E 8D 55 57 F4 CC 67 B2 65 6A A9 36 26 D00x0200 06 B8 E2 E3 73 8B D1 C0 1C 52 15 CA B5 AC 60 3E0x0210 36 42 F1 2C BD 99 77 AB A8 A9 A4 8E 9C 8B 84 DE0x0220 73 F0 91 29 97 AE DB AF D6 F8 5E 9B 86 B3 B3 030x0230 B3 AC 75 6F A6 11 69 2F 3D 3A CE FA 53 86 60 950x0240 6C BB C5 4E F3 code prepAn advantage to this format is the ability to configure the decoder at the start and jump into the middle of stream This is common use case where the media is available on random access medium such as hard drive and is therefore used in common container formats such as MP4 and MKV They are always used Probablly just to simplify the decoder so it can assume they always exist The sequence is used in transport stream headers as well so it can simplify deserializing those,1,NULL,How to hardcode MP4 stream file with iOS VideoToolbox and FFMPEG ios ffmpeg hardcode video toolbox pGuys ppI have found demo in github that is href https github com adison VideoToolboxDemo blob master testFrameExtractor testFrameExtractor SuperVideoFrameExtractor rel nofollow noreferrer VideoToolboxDemo And also found question in stackoverflow href https stackoverflow com questions 29525000 how to use videotoolbox to decompress 264 video stream how to use videotoolbox to decompress 264 video stream which someone has implemented in github https github com lileilei1119 VTDemo ppBut there is different between they in finding SPS and PPS ppThe VideoToolboxDemo is ppre codeuint8 data pCodecCtx gt extradata int size pCodecCtx gt extradata size code prepit uses extradata of pCodecCtx from FFMPEG to find start code like 0x00 00 01 or 0x00 00 00 01 ppbut the introduction in stackoverflow is ppre code h264Decoder decodeFrame packet data withSize packet size code prepuse data of packet ppI have try these two ways but still can find start code of SPS and PPS Does anyone know why Is there something wrong in my file ppMy mp4 file is http 7u2m53 com1 z0 glb clouddn com 201601131107187320 mp4 pVideotoolbox does not use annex hence does not produce start code Read more here href https stackoverflow com questions 24884827 possible locations for sequence picture parameter sets for 264 stream Possible Locations for Sequence Picture Parameter Set for 264 Stream 73850,19203,524026,NULL,NULL,NULL,0,NULL,NULL 73851,372987,1149992,Yearling Famous Question Good Answer Necromancer Yearling Custodian Nice Question Popular Question Yearling Custodian Popular Question Notable Question Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 73852,771815,1533819,NULL,NULL,NULL,0,NULL,NULL 73853,623498,986580,Teacher Supporter,NULL,NULL,0,NULL,NULL 73854,228663,131552,java Nice Answer Yearling Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Guru Good Answer Yearling,NULL,NULL,0,NULL,NULL 73855,3752717,334458,Editor Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73856,507474,140367,Good Answer Famous Question Necromancer Custodian Popular Question Good Answer Notable Question Famous Question Popular Question Talkative Notable Question Revival Nice Question Mortarboard Yearling Popular Question Popular Question Popular Question Necromancer Stellar Question Good Question Notable Question Notable Question Nice Answer Popular Question Nice Question Nice Answer Notable Question Good Question Nice Answer Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question c# Notable Question Notable Question Yearling Caucus Necromancer Notable Question Notable Question Popular Question Nice Answer Notable Question Good Answer Nice Answer Enlightened Taxonomist Guru Good Question Caucus Constituent Popular Question Good Question Popular Question Popular Question Nice Answer Enlightened Yearling Announcer Famous Question Announcer c++ Popular Question,NULL,NULL,0,NULL,NULL 73857,45867,845142,NULL,NULL,NULL,0,NULL,NULL 73858,277807,332050,Nice Answer,NULL,NULL,0,NULL,NULL 73859,840537,211347,NULL,NULL,NULL,0,NULL,NULL 73860,1923519,646567,NULL,NULL,NULL,0,NULL,NULL 73861,242617,7202,Necromancer Yearling Popular Question Good Question Yearling Good Question,NULL,NULL,0,NULL,NULL 73862,77138,736932,Yearling Tumbleweed Good Answer Guru Yearling Popular Question,NULL,NULL,0,NULL,NULL 73863,352266,950152,Nice Answer,NULL,NULL,0,NULL,NULL 73864,142436,695132,Nice Question Notable Question Informed Nice Question Good Question Nice Question Popular Question Nice Question Popular Question Good Question Yearling Popular Question Famous Question Good Question Famous Question Popular Question Nice Question Notable Question Good Question Good Answer Popular Question Nice Question Notable Question Promoter Benefactor Strunk & White Notable Question Yearling Announcer Famous Question Popular Question Notable Question Nice Answer Nice Question Popular Question Peer Pressure Nice Question Good Question Popular Question Nice Question Popular Question Good Question Announcer Announcer Popular Question Nice Question Notable Question Yearling Notable Question Notable Question Popular Question Nice Question Announcer Notable Question Popular Question Outspoken Popular Question Nice Question Announcer,NULL,NULL,0,NULL,NULL 73865,1196332,832376,NULL,NULL,NULL,0,NULL,NULL 73866,96325,466581,NULL,NULL,NULL,0,NULL,NULL 73867,226857,1033519,Tumbleweed Informed Autobiographer Editor Commentator Famous Question Teacher,NULL,NULL,0,NULL,NULL 73868,152111,104865,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 73869,4553,261673,Good Question Good Question Yearling Nice Question Custodian Popular Question Famous Question Popular Question Yearling Popular Question Famous Question Notable Question Popular Question Announcer Yearling Popular Question,NULL,NULL,0,NULL,NULL 73870,478107,1466059,NULL,NULL,NULL,0,NULL,NULL 73871,590567,513686,Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Yearling Notable Question Notable Question Popular Question Nice Answer Popular Question Popular Question Necromancer Yearling Popular Question Notable Question Famous Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 73872,133418,1085511,Nice Answer Enlightened Caucus Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Revival Caucus Yearling django-models,NULL,NULL,0,NULL,NULL 73873,234802,1065260,Census Census,NULL,NULL,0,NULL,NULL 73874,305650,536711,Nice Question,NULL,NULL,0,NULL,NULL 73875,198616,1176158,NULL,NULL,NULL,0,NULL,NULL 73876,550442,794997,Famous Question Promoter Teacher Critic Popular Question Notable Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 73877,136638,183918,Yearling Nice Answer Guru Census Nice Answer Notable Question Nice Answer Yearling Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 73878,39701,408011,Nice Answer Nice Answer Yearling Necromancer Good Answer Caucus Nice Answer Revival Nice Answer Nice Answer Enlightened Nice Answer Yearling Good Answer Nice Answer Enlightened Custodian Nice Answer Enlightened Famous Question Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 73879,610811,828765,Yearling,NULL,NULL,0,NULL,NULL 73880,1378233,1495516,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 73881,53681,513554,Good Answer Tumbleweed Curious Necromancer Necromancer Necromancer Nice Answer Caucus Yearling Civic Duty Informed Announcer Necromancer Caucus Constituent Necromancer Announcer Necromancer Yearling Custodian Custodian Caucus Constituent Revival Announcer Self-Learner Popular Question Nice Answer Nice Answer Popular Question Revival Necromancer Custodian Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73882,480421,1203773,Good Answer Yearling Scholar Nice Answer Nice Answer Caucus Popular Question Yearling jquery Nice Answer Good Answer Popular Question Yearling Nice Answer Guru,NULL,NULL,0,NULL,NULL 73883,140189,910307,NULL,NULL,NULL,0,NULL,NULL 73884,181338,478584,Necromancer Yearling Necromancer Nice Answer Announcer Enthusiast Necromancer Curious Popular Question Good Answer Caucus Good Answer Nice Question Constituent Nice Answer Good Answer Good Answer Yearling Popular Question Notable Question Announcer Caucus Revival Nice Answer Necromancer Nice Answer Notable Question Yearling Good Question Good Answer Necromancer Famous Question,NULL,NULL,0,NULL,NULL 73885,303664,1052567,NULL,NULL,NULL,0,NULL,NULL 73886,614657,1492914,Notable Question Famous Question Popular Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 73887,13944,166612,Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question Popular Question Self-Learner Famous Question Popular Question Notable Question Famous Question Popular Question Notable Question Good Question Famous Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Nice Question Notable Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73888,272928,80840,Notable Question Popular Question Yearling Popular Question Great Answer Notable Question Nice Question Popular Question Notable Question Notable Question Nice Answer Enlightened Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Famous Question Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 73889,331810,1412410,NULL,NULL,NULL,0,NULL,NULL 73890,28141,199635,Supporter,NULL,NULL,0,NULL,NULL 73891,37749,116472,Necromancer Nice Answer Enlightened gwt-super-dev-mode Guru Nice Answer Enlightened Yearling Great Answer Necromancer Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Announcer rpc Announcer Announcer Yearling html Nice Answer Enlightened Nice Answer Nice Answer Enlightened Booster Announcer Good Answer Nice Answer Enlightened Nice Answer Enlightened Populist Nice Answer Enlightened Yearling Enlightened Nice Answer maven Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 73892,354657,812272,Notable Question Nice Question Notable Question Yearling Popular Question Popular Question Popular Question Caucus Yearling Nice Answer Inquisitive Documentation User Popular Question Popular Question Nice Question Notable Question Notable Question Good Answer Caucus Famous Question Famous Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73893,765178,679897,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 73894,165592,1261853,Nice Question,NULL,NULL,0,NULL,NULL 73895,1133600,648302,Yearling Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 73896,70288,994197,Nice Answer Popular Question Popular Question Popular Question Yearling Enlightened Popular Question Good Question Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 73897,84600,365241,Yearling,NULL,NULL,0,NULL,NULL 73898,1459987,498253,Popular Question Nice Answer Notable Question Popular Question Revival Yearling Popular Question Nice Question Popular Question Announcer Yearling Announcer Famous Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 73899,636997,537149,Popular Question Yearling Citizen Patrol Custodian Yearling Civic Duty Yearling Stellar Question,NULL,NULL,0,NULL,NULL 73900,1284673,416103,Tumbleweed Yearling Notable Question Popular Question Popular Question Custodian Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 73901,276045,812076,Caucus Yearling Documentation User Nice Answer Enlightened Census Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 73902,385788,1401219,Revival Popular Question,NULL,NULL,0,NULL,NULL 73903,59881,206723,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 73904,3711888,1439390,NULL,NULL,NULL,0,NULL,NULL 73905,1182089,1439390,NULL,NULL,NULL,0,NULL,NULL 73906,393677,674791,Yearling Popular Question Nice Answer Enlightened Yearling Great Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 73907,194073,1080415,NULL,NULL,NULL,0,NULL,NULL 73908,1203186,1080415,NULL,NULL,NULL,0,NULL,NULL 73909,378767,1556435,Yearling Popular Question Notable Question Popular Question Revival,NULL,NULL,0,NULL,NULL 73910,371809,1484115,Popular Question Yearling Editor Student Commentator Nice Answer Yearling Caucus Yearling Custodian Good Answer Necromancer Caucus Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73911,164502,640532,NULL,NULL,NULL,0,NULL,NULL 73912,539386,722989,Nice Question Editor,NULL,NULL,0,NULL,NULL 73913,30426,905878,Revival,NULL,NULL,0,NULL,NULL 73914,67797,55549,Good Answer,NULL,NULL,0,NULL,NULL 73915,477862,518639,Popular Question,NULL,NULL,0,NULL,NULL 73916,263976,518639,Popular Question,NULL,NULL,0,NULL,NULL 73917,1843870,536613,NULL,NULL,NULL,0,NULL,NULL 73918,484340,859486,NULL,NULL,NULL,0,NULL,NULL 73919,72901,1292462,NULL,NULL,NULL,0,NULL,NULL 73920,233481,1238978,Popular Question Notable Question Yearling Nice Question Popular Question Notable Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 73921,1168406,456423,Yearling Popular Question Popular Question Notable Question Notable Question Nice Answer Popular Question Popular Question Famous Question Popular Question Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 73922,1351118,1289899,NULL,NULL,NULL,0,NULL,NULL 73923,3064746,1289899,NULL,NULL,NULL,0,NULL,NULL 73924,330563,808486,Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Popular Question Good Answer Yearling Nice Answer Popular Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Great Answer Guru Famous Question Famous Question arrays Good Answer Good Answer Nice Answer Popular Question Notable Question Yearling .net Good Answer Great Answer Nice Answer Enlightened Nice Question Good Answer Nice Question Nice Answer Enlightened Good Answer Good Answer Popular Question Promoter Benefactor Yearling Good Answer Popular Question Good Answer Guru Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 73925,45972,528787,Yearling,NULL,NULL,0,NULL,NULL 73926,23428,323300,Enlightened Nice Answer Enlightened Yearling Nice Answer Necromancer Caucus Constituent Nice Answer Enlightened Custodian Yearling Caucus Peer Pressure Constituent Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73927,129215,546535,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73928,509406,998011,NULL,NULL,NULL,0,NULL,NULL 73929,631046,750918,Student Popular Question,NULL,NULL,0,NULL,NULL 73930,23152,225037,Caucus Yearling Census Guru Caucus Constituent Yearling Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 73931,486689,1503861,NULL,NULL,NULL,0,NULL,NULL 73932,6919052,1173540,NULL,NULL,NULL,0,NULL,NULL 73933,500530,1173540,NULL,NULL,NULL,0,NULL,NULL 73934,83304,340368,NULL,NULL,NULL,0,NULL,NULL 73935,217244,127977,Yearling Yearling Good Answer Popular Question Revival,NULL,NULL,0,NULL,NULL 73936,143145,1447848,NULL,NULL,NULL,0,NULL,NULL 73937,20536,301517,NULL,NULL,NULL,0,NULL,NULL 73938,632690,746952,NULL,NULL,NULL,0,NULL,NULL 73939,701624,568630,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 73940,9592606,1209378,NULL,NULL,NULL,0,NULL,NULL 73941,3966,850026,NULL,NULL,NULL,0,NULL,NULL 73942,152773,91127,Excavator Custodian Yearling Nice Answer Not a Robot Yearling Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 73943,893159,1336566,Popular Question Notable Question Supporter,NULL,NULL,0,NULL,NULL 73944,984716,242520,Yearling Guru c# Necromancer Nice Answer Nice Answer Announcer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Question Announcer Nice Answer Yearling Nice Answer Enlightened Census Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Peer Pressure Guru Nice Answer Caucus Nice Answer Announcer Nice Answer Good Answer Announcer Announcer Necromancer Yearling Announcer Announcer Caucus Guru Nice Answer Necromancer Announcer Announcer Great Answer Announcer,NULL,NULL,0,NULL,NULL 73945,1885528,240614,NULL,NULL,NULL,0,NULL,NULL 73946,1616062,240614,NULL,NULL,NULL,0,NULL,NULL 73947,200840,227242,NULL,NULL,NULL,0,NULL,NULL 73948,1106661,1253189,Notable Question Famous Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 73949,1002572,257898,Popular Question,NULL,NULL,0,NULL,NULL 73950,1196687,313414,Nice Question Popular Question Notable Question Yearling Notable Question Popular Question Yearling Popular Question Quorum Popular Question Cleanup Yearling Famous Question Notable Question Inquisitive Deputy,NULL,NULL,0,NULL,NULL 73951,11554,1363406,Yearling Great Answer Popular Question Yearling Necromancer Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73952,213147,543808,Critic Famous Question,NULL,NULL,0,NULL,NULL 73953,8136,1546887,Nice Answer Revival ruby-on-rails Revival Yearling Nice Answer Enlightened Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 73954,15470,787939,Informed,NULL,NULL,0,NULL,NULL 73955,111495,413470,NULL,NULL,NULL,0,NULL,NULL 73956,238142,969058,NULL,NULL,NULL,0,NULL,NULL 73957,191112,635915,NULL,NULL,NULL,0,NULL,NULL 73958,2768189,703653,NULL,NULL,NULL,0,NULL,NULL 73959,160324,703653,NULL,NULL,NULL,0,NULL,NULL 73960,429534,990166,Popular Question Yearling ruby-on-rails Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 73961,274777,994782,NULL,NULL,NULL,0,NULL,NULL 73962,8121,1096834,NULL,NULL,NULL,0,NULL,NULL 73963,84842,1036887,NULL,NULL,NULL,0,NULL,NULL 73964,45555,831993,NULL,NULL,NULL,0,NULL,NULL 73965,280519,1278284,Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 73966,1826579,1036514,NULL,NULL,NULL,0,NULL,NULL 73967,284570,1036514,NULL,NULL,NULL,0,NULL,NULL 73968,197657,594980,NULL,NULL,NULL,0,NULL,NULL 73969,201074,1325832,Announcer Critic,NULL,NULL,0,NULL,NULL 73970,1639,291906,NULL,NULL,NULL,0,NULL,NULL 73971,413141,736578,Famous Question,NULL,NULL,0,NULL,NULL 73972,110838,607236,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 73973,582729,78551,Nice Question Notable Question Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 73974,81462,358813,Nice Answer php Nice Answer Nice Question Yearling Notable Question Necromancer Necromancer Nice Answer Great Question Good Answer Yearling Necromancer Yearling Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 73975,92511,219912,Popular Question Nice Answer Enlightened Notable Question Popular Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 73976,269424,946707,Yearling Revival Yearling Good Question,NULL,NULL,0,NULL,NULL 73977,57932,1058798,Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 73978,92162,1152759,Nice Question Custodian Informed Caucus Constituent Yearling Notable Question Enthusiast Caucus Constituent Civic Duty Census Caucus Good Question,NULL,NULL,0,NULL,NULL 73979,131833,520601,Nice Answer Caucus Famous Question Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 73980,206923,843067,Excavator Nice Answer Civic Duty Yearling Necromancer Yearling Caucus Announcer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 73981,300393,1382079,Supporter Autobiographer Yearling Critic Yearling Commentator Yearling Custodian Citizen Patrol Custodian Excavator Caucus Yearling Organizer Announcer,NULL,NULL,0,NULL,NULL 73982,16307,675982,NULL,NULL,NULL,0,NULL,NULL 73983,1256885,1392296,NULL,NULL,NULL,0,NULL,NULL 73984,29060,1477948,NULL,NULL,NULL,0,NULL,NULL 73985,3156172,1010666,Custodian Popular Question Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 73986,168948,105206,Guru Yearling Nice Answer Enlightened Yearling Popular Question Caucus Yearling Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 73987,2399918,105206,Guru Yearling Nice Answer Enlightened Yearling Popular Question Caucus Yearling Nice Answer Enlightened Benefactor,NULL,NULL,0,NULL,NULL 73988,35139,1214892,Yearling Good Answer Good Answer Custodian Guru Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 73989,255880,1243451,NULL,NULL,NULL,0,NULL,NULL 73990,1216374,359197,Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 73991,21847,303241,Yearling Famous Question,NULL,NULL,0,NULL,NULL 73992,244002,259517,Popular Question Famous Question Yearling Census Documentation User Good Question Citizen Patrol Custodian Explainer Yearling Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 73993,203704,392812,Student Scholar,NULL,NULL,0,NULL,NULL 73994,518127,901348,Popular Question Notable Question Curious Caucus Constituent,NULL,NULL,0,NULL,NULL 73995,8825170,801231,NULL,NULL,NULL,0,NULL,NULL 73996,699608,495241,NULL,NULL,NULL,0,NULL,NULL 73997,238403,676366,Commentator Informed Yearling Yearling Yearling Custodian Citizen Patrol Custodian Tenacious Enthusiast Unsung Hero Yearling Fanatic Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 73998,298221,1359926,NULL,NULL,NULL,0,NULL,NULL 73999,211327,618796,NULL,NULL,NULL,0,NULL,NULL 74000,123337,833093,Commentator Yearling Peer Pressure Necromancer Caucus Constituent Yearling Revival Announcer Necromancer Tumbleweed Yearling Cleanup Necromancer Necromancer Curious Custodian Necromancer Necromancer,NULL,NULL,0,NULL,NULL 74001,164808,677024,Good Question Yearling Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 74002,355181,844331,Nice Answer Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 74003,409708,1541044,NULL,NULL,NULL,0,NULL,NULL 74004,1332957,905049,Custodian Census Critic,NULL,NULL,0,NULL,NULL 74005,624221,905049,Custodian Census Critic,NULL,NULL,0,NULL,NULL 74006,227218,1015346,NULL,NULL,NULL,0,NULL,NULL 74007,41724,1089845,NULL,NULL,NULL,0,NULL,NULL 74008,935901,428664,Notable Question Popular Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74009,183734,1289488,NULL,NULL,NULL,0,NULL,NULL 74010,36512,768823,Notable Question Yearling Nice Question Nice Answer Caucus Constituent Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 74011,180179,364803,Revival,NULL,NULL,0,NULL,NULL 74012,88699,534684,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74013,154070,376482,Popular Question Notable Question Popular Question Good Question Nice Answer Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 74014,59815,75953,NULL,NULL,NULL,0,NULL,NULL 74015,83039,1223304,Teacher Yearling Popular Question,NULL,NULL,0,NULL,NULL 74016,21174,1263093,NULL,NULL,NULL,0,NULL,NULL 74017,724908,1464606,NULL,NULL,NULL,0,NULL,NULL 74018,745260,1055777,NULL,NULL,NULL,0,NULL,NULL 74019,54581,1010256,NULL,NULL,NULL,0,NULL,NULL 74020,422230,814866,NULL,NULL,NULL,0,NULL,NULL 74021,309812,1533347,NULL,NULL,NULL,0,NULL,NULL 74022,3044103,873443,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74023,412551,100328,Custodian Custodian Yearling Editor Excavator Census,NULL,NULL,0,NULL,NULL 74024,83368,808237,Notable Question Custodian Revival Organizer Yearling Revival Notable Question Yearling Popular Question Caucus Excavator Yearling Notable Question Revival,NULL,NULL,0,NULL,NULL 74025,3264,569534,Teacher,NULL,NULL,0,NULL,NULL 74026,391575,505857,NULL,NULL,NULL,0,NULL,NULL 74027,509623,944321,Student Yearling Scholar Revival,NULL,NULL,0,NULL,NULL 74028,1046563,804508,NULL,NULL,NULL,0,NULL,NULL 74029,960382,1383531,Notable Question Supporter Teacher,NULL,NULL,0,NULL,NULL 74030,246504,1386131,NULL,NULL,NULL,0,NULL,NULL 74031,1199510,603134,NULL,NULL,NULL,0,NULL,NULL 74032,173005,1522536,NULL,NULL,NULL,0,NULL,NULL 74033,492840,269351,NULL,NULL,NULL,0,NULL,NULL 74034,318126,217678,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 74035,250465,616909,Tumbleweed Good Question Notable Question Announcer,NULL,NULL,0,NULL,NULL 74036,1289593,758348,NULL,NULL,NULL,0,NULL,NULL 74037,121781,586526,Teacher,NULL,NULL,0,NULL,NULL 74038,1193570,1297336,Editor Announcer Announcer,NULL,NULL,0,NULL,NULL 74039,54477,1297336,Editor Announcer Announcer,NULL,NULL,0,NULL,NULL 74040,10342165,872755,Good Answer Good Answer ruby-on-rails Yearling Nice Answer Enlightened Popular Question Autobiographer Yearling Custodian Custodian Custodian Tenacious Popular Question Explainer Caucus Yearling Guru Guru Popular Question Custodian,NULL,NULL,0,NULL,NULL 74041,328935,872755,Good Answer Good Answer ruby-on-rails Yearling Nice Answer Enlightened Popular Question Autobiographer Yearling Custodian Custodian Custodian Tenacious Popular Question Explainer Caucus Yearling Guru Guru Popular Question Custodian,NULL,NULL,0,NULL,NULL 74042,243106,760308,NULL,NULL,NULL,0,NULL,NULL 74043,1018641,929790,NULL,NULL,NULL,0,NULL,NULL 74044,86492,688623,NULL,NULL,NULL,0,NULL,NULL 74045,199408,1423057,NULL,NULL,NULL,0,NULL,NULL 74046,158787,976917,Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74047,338720,238153,NULL,NULL,NULL,0,NULL,NULL 74048,6841,860976,NULL,NULL,NULL,0,NULL,NULL 74049,650018,860976,NULL,NULL,NULL,0,NULL,NULL 74050,252940,660386,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74051,231000,796826,NULL,NULL,NULL,0,NULL,NULL 74052,144247,1025516,NULL,NULL,NULL,0,NULL,NULL 74053,31907,1152290,NULL,NULL,NULL,0,NULL,NULL 74054,165475,1358528,NULL,NULL,NULL,0,NULL,NULL 74055,52489,1179347,NULL,NULL,NULL,0,NULL,NULL 74056,338,1199146,NULL,NULL,NULL,0,NULL,NULL 74057,140559,1158304,NULL,NULL,NULL,0,NULL,NULL 74058,1575851,1232979,Popular Question,NULL,NULL,0,NULL,NULL 74059,175065,1232979,Popular Question,NULL,NULL,0,NULL,NULL 74060,1680333,1446551,Popular Question Notable Question Good Answer Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 74061,2377621,1446551,Popular Question Notable Question Good Answer Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 74062,42977,1446551,Popular Question Notable Question Good Answer Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 74063,2383436,1446551,Popular Question Notable Question Good Answer Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 74064,117360,910906,Enthusiast Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 74065,306864,627867,NULL,NULL,NULL,0,NULL,NULL 74066,529401,917779,Supporter,NULL,NULL,0,NULL,NULL 74067,356835,992963,NULL,NULL,NULL,0,NULL,NULL 74068,1504061,51145,Yearling Nice Answer Good Answer Yearling Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74069,36721,791629,Notable Question Curious Good Answer Yearling Necromancer Guru Yearling Documentation User Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74070,487375,610841,NULL,NULL,NULL,0,NULL,NULL 74071,63696,967009,Editor Teacher Supporter Student Scholar,NULL,NULL,0,NULL,NULL 74072,46051,1003499,Popular Question Announcer,NULL,NULL,0,NULL,NULL 74073,909642,322949,NULL,NULL,NULL,0,NULL,NULL 74074,37755,1095222,Scholar,NULL,NULL,0,NULL,NULL 74075,212534,1016427,NULL,NULL,NULL,0,NULL,NULL 74076,11836,434217,Nice Answer Revival Good Answer Good Answer Strunk & White Nice Answer Enlightened Nice Answer Enlightened Guru Great Answer Enlightened Nice Answer Good Answer Good Answer cx-freeze Yearling Nice Answer Nice Answer Enlightened Good Answer ipython Nice Answer Nice Answer Enlightened Taxonomist Guru Nice Answer Enlightened Guru Guru Yearling Guru ipython-notebook Announcer Documentation User Nice Answer Enlightened Good Answer Populist Synonymizer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Good Answer Guru Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74077,904483,1125434,Teacher Curious Nice Question,NULL,NULL,0,NULL,NULL 74078,303771,1130106,NULL,NULL,NULL,0,NULL,NULL 74079,115536,1159317,NULL,NULL,NULL,0,NULL,NULL 74080,1139520,1032301,NULL,NULL,NULL,0,NULL,NULL 74081,61547,102032,NULL,NULL,NULL,0,NULL,NULL 74082,79150,816142,NULL,NULL,NULL,0,NULL,NULL 74083,325631,526985,Announcer Nice Answer Enlightened Yearling Caucus,NULL,NULL,0,NULL,NULL 74084,478994,479911,NULL,NULL,NULL,0,NULL,NULL 74085,608623,338039,Nice Answer Yearling Custodian Custodian Nice Answer Citizen Patrol,NULL,NULL,0,NULL,NULL 74086,123827,20103,Notable Question Custodian,NULL,NULL,0,NULL,NULL 74087,282669,654413,NULL,NULL,NULL,0,NULL,NULL 74088,266462,554342,Notable Question,NULL,NULL,0,NULL,NULL 74089,147404,323631,Commentator Yearling Revival Critic Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 74090,563713,50926,Yearling Nice Answer Announcer Necromancer Great Answer Civic Duty Nice Answer Popular Question Yearling Nice Answer Necromancer Necromancer Yearling Nice Answer Enlightened Necromancer ocaml Popular Question,NULL,NULL,0,NULL,NULL 74091,990800,3332,Good Question Popular Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 74092,6458161,1026609,Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 74093,1206,177116,Notable Question Necromancer Notable Question Good Answer Nice Answer Yearling Caucus Constituent Popular Question Notable Question Good Answer Good Question Announcer Caucus Constituent Yearling Nice Question Census Caucus Good Question Popular Question Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 74094,2771,635846,Popular Question,NULL,NULL,0,NULL,NULL 74095,312478,124968,Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 74096,8508067,578576,Notable Question Famous Question Notable Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 74097,42047,844476,Self-Learner Notable Question Critic,NULL,NULL,0,NULL,NULL 74098,1484,1547603,Announcer,NULL,NULL,0,NULL,NULL 74099,1448256,1547603,Announcer,NULL,NULL,0,NULL,NULL 74100,37844,57490,Necromancer Yearling Announcer Nice Answer Necromancer Guru Guru Revival Nice Answer Necromancer Good Answer Necromancer Revival Nice Answer Necromancer Revival Scholar Nice Answer Nice Answer Yearling Custodian Pundit Custodian Good Answer Custodian Custodian Revival Custodian Custodian Reviewer Necromancer Caucus Revival Documentation User Student Good Answer Self-Learner Yearling Great Answer Necromancer Revival Good Answer Announcer Necromancer,NULL,NULL,0,NULL,NULL 74101,128346,603495,NULL,NULL,NULL,0,NULL,NULL 74102,2611935,603495,NULL,NULL,NULL,0,NULL,NULL 74103,1020698,1065323,Yearling,NULL,NULL,0,NULL,NULL 74104,936704,1062546,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74105,116993,250986,Student Popular Question Yearling,NULL,NULL,0,NULL,NULL 74106,6836,1546577,NULL,NULL,NULL,0,NULL,NULL 74107,68237,490925,Yearling Notable Question,NULL,NULL,0,NULL,NULL 74108,198673,10996,Famous Question Caucus Yearling Announcer Caucus Documentation User Custodian Caucus,NULL,NULL,0,NULL,NULL 74109,295187,1507926,NULL,NULL,NULL,0,NULL,NULL 74110,85538,289578,NULL,NULL,NULL,0,NULL,NULL 74111,1967808,696178,NULL,NULL,NULL,0,NULL,NULL 74112,237349,1100141,Informed Autobiographer Teacher Scholar Editor Excavator Notable Question,NULL,NULL,0,NULL,NULL 74113,52392,1149472,NULL,NULL,NULL,0,NULL,NULL 74114,555191,444774,Caucus Constituent Good Answer Yearling Revival Electorate Caucus,NULL,pJust an FYI save and open page works courtesy of the wonderful people of these links This is what have at the bottom of my spec helper rb to make it work ppre code to allow CSS and Javascript to be loaded when we use save and open page the development server must be running at localhost 3000 as specified below or wherever you want See original issue here https github com jnicklas capybara pull 609 and final resolution here https github com jnicklas capybara pull 958Capybara asset host http localhost 3000 code prepenjoy and thank you sdhull and jnicklas and all who worked on it ppHani Tip Make sure you have your DEVELOPMENT server running like the code comments say Or it will appear to do nothing read it too quickly the first time,0,NULL,NULL 74115,208691,880669,NULL,NULL,NULL,0,NULL,NULL 74116,86441,1391330,Popular Question,NULL,NULL,0,NULL,NULL 74117,118882,1235644,NULL,NULL,NULL,0,NULL,NULL 74118,463099,999668,NULL,NULL,NULL,0,NULL,NULL 74119,682902,441211,Informed,NULL,NULL,0,NULL,NULL 74120,168745,1246221,NULL,NULL,NULL,0,NULL,NULL 74121,169439,1421853,NULL,NULL,NULL,0,NULL,NULL 74122,401893,292000,NULL,NULL,NULL,0,NULL,NULL 74123,169575,225501,NULL,NULL,NULL,0,NULL,NULL 74124,1381971,973308,Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Famous Question Nice Answer Enlightened Yearling Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Popular Question Yearling Stellar Question Great Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 74125,1384737,1207929,Supporter Popular Question,NULL,NULL,0,NULL,NULL 74126,185044,457818,NULL,NULL,NULL,0,NULL,NULL 74127,141132,1392104,Commentator Tumbleweed Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74128,36792,1261323,Excavator,NULL,NULL,0,NULL,NULL 74129,1307349,94334,Good Answer Yearling Good Answer Nice Question Necromancer Famous Question Yearling Famous Question Necromancer Nice Answer Notable Question Guru Yearling Famous Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 74130,235156,159850,NULL,NULL,NULL,0,NULL,NULL 74131,162336,859704,NULL,NULL,NULL,0,NULL,NULL 74132,578455,485241,Famous Question Excavator Notable Question Great Question Yearling Enthusiast Stellar Question Notable Question Organizer Custodian Custodian Famous Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74133,395334,382253,Scholar Enthusiast Supporter,NULL,NULL,0,NULL,NULL 74134,98902,983353,NULL,NULL,NULL,0,NULL,NULL 74135,680230,1062890,NULL,NULL,NULL,0,NULL,NULL 74136,332335,975610,Scholar,NULL,NULL,0,NULL,NULL 74137,4587,259381,NULL,NULL,NULL,0,NULL,NULL 74138,13140,1333357,NULL,NULL,NULL,0,NULL,NULL 74139,30082,1285617,NULL,NULL,NULL,0,NULL,NULL 74140,55849,545556,NULL,NULL,NULL,0,NULL,NULL 74141,441620,287321,NULL,NULL,NULL,0,NULL,NULL 74142,2442623,1320683,NULL,NULL,NULL,0,NULL,NULL 74143,342415,209509,NULL,NULL,NULL,0,NULL,NULL 74144,38752,833268,NULL,NULL,NULL,0,NULL,NULL 74145,1858297,1331528,NULL,NULL,NULL,0,NULL,NULL 74146,428629,758105,Popular Question,NULL,NULL,0,NULL,NULL 74147,439097,217628,Notable Question,NULL,NULL,0,NULL,NULL 74148,1383040,1376242,Popular Question,NULL,NULL,0,NULL,NULL 74149,1125298,446007,NULL,NULL,NULL,0,NULL,NULL 74150,42773,820606,Student,NULL,NULL,0,NULL,NULL 74151,231909,635542,NULL,NULL,NULL,0,NULL,NULL 74152,238380,822417,Popular Question,NULL,NULL,0,NULL,NULL 74153,381058,1005616,NULL,NULL,NULL,0,NULL,NULL 74154,45675,346410,NULL,NULL,NULL,0,NULL,NULL 74155,530700,436545,NULL,NULL,NULL,0,NULL,NULL 74156,654635,1509565,Popular Question,NULL,NULL,0,NULL,NULL 74157,2455,831057,Yearling Famous Question,NULL,NULL,0,NULL,NULL 74158,740267,1129054,NULL,NULL,NULL,0,NULL,NULL 74159,335403,137040,Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Notable Question Popular Question Notable Question Caucus Constituent Notable Question Popular Question Caucus Nice Question Popular Question Custodian Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 74160,27505,780308,Tumbleweed Student Scholar,NULL,NULL,0,NULL,NULL 74161,307978,680130,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 74162,4715,293527,Revival Nice Answer Nice Answer Yearling Yearling Good Answer Yearling Good Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 74163,259527,1122361,NULL,NULL,NULL,0,NULL,NULL 74164,648984,1122361,NULL,NULL,NULL,0,NULL,NULL 74165,219162,1082216,NULL,NULL,NULL,0,NULL,NULL 74166,303681,1127335,NULL,NULL,NULL,0,NULL,NULL 74167,251360,1076889,Good Answer Popular Question Nice Answer Nice Answer Enlightened Documentation Pioneer Famous Question Caucus Constituent Yearling Notable Question Nice Question Caucus Good Answer Nice Answer git Nice Answer Documentation User Famous Question Popular Question Popular Question Yearling Caucus Notable Question Popular Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 74168,9802,1035056,NULL,NULL,NULL,0,NULL,NULL 74169,859569,585888,Caucus Student Yearling Yearling,NULL,NULL,0,NULL,NULL 74170,109310,262216,NULL,NULL,NULL,0,NULL,NULL 74171,923372,614234,NULL,NULL,NULL,0,NULL,NULL 74172,29660,139531,Popular Question,NULL,NULL,0,NULL,NULL 74173,1506307,771549,NULL,NULL,NULL,0,NULL,NULL 74174,33827,794761,NULL,NULL,NULL,0,NULL,NULL 74175,144847,830738,Popular Question,NULL,NULL,0,NULL,NULL 74176,119996,1068145,Student Editor Scholar,NULL,NULL,0,NULL,NULL 74177,86286,196356,NULL,NULL,NULL,0,NULL,NULL 74178,285031,617458,Popular Question Notable Question Critic Informed Caucus Constituent Popular Question Citizen Patrol,NULL,NULL,0,NULL,NULL 74179,243205,101855,Famous Question Yearling Notable Question Notable Question Good Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 74180,928197,1041105,Tag Editor Yearling Yearling Nice Answer Enlightened Yearling Caucus Nice Answer Enlightened Good Answer vapor Nice Answer Organizer swift Nice Question Nice Answer Nice Question Notable Question Nice Answer Enlightened Popular Question Popular Question Nice Answer Yearling Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 74181,28563,95092,Civic Duty Popular Question,NULL,NULL,0,NULL,NULL 74182,1305499,1140633,Popular Question,NULL,NULL,0,NULL,NULL 74183,30786,844107,NULL,NULL,NULL,0,NULL,NULL 74184,118519,1423782,Supporter,NULL,NULL,0,NULL,NULL 74185,23112,112393,NULL,NULL,NULL,0,NULL,NULL 74186,81517,964694,NULL,NULL,NULL,0,NULL,NULL 74187,219343,11812,NULL,NULL,NULL,0,NULL,NULL 74188,360621,1532185,Revival,NULL,NULL,0,NULL,NULL 74189,177240,1473915,Yearling Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 74190,1509547,1089698,Peer Pressure Tumbleweed Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74191,341450,1300084,NULL,NULL,NULL,0,NULL,NULL 74192,77030,675740,Notable Question Yearling Nice Answer Good Question Good Answer Famous Question Announcer Yearling Guru Notable Question Famous Question Guru Notable Question Popular Question Not a Robot Yearling Famous Question Nice Answer Notable Question Custodian Custodian,NULL,NULL,0,NULL,NULL 74193,1044052,894322,Revival Popular Question Necromancer,NULL,NULL,0,NULL,NULL 74194,319520,1243239,NULL,NULL,NULL,0,NULL,NULL 74195,200044,972353,NULL,NULL,NULL,0,NULL,NULL 74196,370959,250375,NULL,NULL,NULL,0,NULL,NULL 74197,584,827393,NULL,NULL,NULL,0,NULL,NULL 74198,174404,674069,Tumbleweed Popular Question Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 74199,899657,682577,NULL,NULL,NULL,0,NULL,NULL 74200,99647,1291067,NULL,NULL,NULL,0,NULL,NULL 74201,180090,207204,Notable Question Yearling Popular Question Nice Answer Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 74202,39696,467489,NULL,NULL,NULL,0,NULL,NULL 74203,310404,1069544,NULL,NULL,NULL,0,NULL,NULL 74204,243969,343022,Famous Question Nice Question Good Answer Popular Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74205,327349,595093,NULL,NULL,NULL,0,NULL,NULL 74206,7439,944917,NULL,NULL,NULL,0,NULL,NULL 74207,229574,695474,NULL,NULL,NULL,0,NULL,NULL 74208,69572,1049481,Good Answer Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened three.js Yearling,NULL,NULL,0,NULL,NULL 74209,523259,720644,Teacher Curious Documentation User,NULL,NULL,0,NULL,NULL 74210,1104136,486878,NULL,NULL,NULL,0,NULL,NULL 74211,40392,856955,Teacher,NULL,NULL,0,NULL,NULL 74212,3679538,828553,NULL,NULL,NULL,0,NULL,NULL 74213,556299,875475,NULL,NULL,NULL,0,NULL,NULL 74214,1520063,1316215,NULL,NULL,NULL,0,NULL,NULL 74215,68127,417815,Editor Supporter,NULL,NULL,0,NULL,NULL 74216,492822,1100050,NULL,NULL,NULL,0,NULL,NULL 74217,234117,407443,Popular Question Necromancer Nice Question Notable Question Yearling Nice Answer Necromancer Organizer Excavator Populist Nice Answer Popular Question Famous Question Yearling Popular Question Custodian Custodian Nice Answer Nice Question Necromancer Famous Question Good Answer Necromancer Notable Question Good Answer Yearling Famous Question Revival Notable Question,NULL,NULL,0,NULL,NULL 74218,1568029,1468627,Informed,NULL,NULL,0,NULL,NULL 74219,676151,456482,NULL,NULL,NULL,0,NULL,NULL 74220,282437,727037,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 74221,264327,126529,Notable Question Nice Answer Yearling Good Answer Tag Editor Popular Question Nice Answer Popular Question Nice Answer Necromancer Nice Answer Enlightened Necromancer Yearling Notable Question Popular Question Popular Question Notable Question Necromancer Announcer Good Answer Popular Question Yearling Necromancer Necromancer Good Question Necromancer Necromancer Famous Question,NULL,pYou can absolutely do that just remove the code code annotation Spring will cleanly bind your request parameters to your class instance ppre codepublic List lt MyObject gt myAction value page required false int page MyObject myObject code pre Is there way to control default values and required for MyObject then in similar way we can do with,0,NULL,NULL 74222,227085,684374,Nice Question,NULL,NULL,0,NULL,NULL 74223,63582,172894,Nice Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74224,10033,707228,Notable Question Tag Editor Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 74225,123523,922143,Commentator Announcer Announcer Self-Learner Announcer Caucus Yearling Critic Nice Question Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 74226,1229127,1254880,Good Answer Yearling Notable Question Custodian Necromancer Caucus Popular Question Curious Tumbleweed Yearling Nice Question Enthusiast Caucus Necromancer Electorate Documentation User Custodian Informed Autobiographer Yearling Caucus Necromancer Famous Question Good Answer Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 74227,156038,1231727,Popular Question,NULL,NULL,0,NULL,NULL 74228,101551,1361115,NULL,NULL,NULL,0,NULL,NULL 74229,774804,280852,Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74230,175760,1280902,NULL,NULL,NULL,0,NULL,NULL 74231,133592,520755,NULL,NULL,NULL,0,NULL,NULL 74232,549220,539065,Popular Question Notable Question Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 74233,46804,75749,Civic Duty Caucus Constituent Caucus Documentation User Nice Answer Enlightened Caucus Yearling,NULL,NULL,0,NULL,NULL 74234,2579728,1392731,Enthusiast Census Student,NULL,NULL,0,NULL,NULL 74235,469646,1392731,Enthusiast Census Student,NULL,NULL,0,NULL,NULL 74236,1643698,602697,Commentator Teacher Supporter Tumbleweed,NULL,NULL,0,NULL,NULL 74237,359161,402901,NULL,NULL,NULL,0,NULL,NULL 74238,2537172,1315408,Popular Question Tumbleweed Notable Question Guru Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Nice Question Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 74239,259290,1199708,Yearling Necromancer Informed Nice Answer Curious Yearling Autobiographer Citizen Patrol Caucus Yearling Necromancer Revival Nice Answer Popular Question Necromancer Nice Answer Nice Answer Notable Question Caucus Good Answer Popular Question Yearling Necromancer Good Answer Custodian Notable Question Custodian Nice Answer Popular Question Excavator,NULL,NULL,0,NULL,NULL 74240,4765,928862,NULL,NULL,NULL,0,NULL,NULL 74241,183618,837132,NULL,NULL,NULL,0,NULL,NULL 74242,724783,879633,NULL,NULL,NULL,0,NULL,NULL 74243,597221,1295171,Yearling Nice Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question Good Question Notable Question Yearling Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74244,298391,125508,Revival Notable Question,NULL,NULL,0,NULL,NULL 74245,1564322,844727,NULL,NULL,NULL,0,NULL,NULL 74246,439310,1453121,NULL,NULL,NULL,0,NULL,NULL 74247,1555379,1226864,NULL,NULL,NULL,0,NULL,NULL 74248,64547,161266,Notable Question Popular Question Nice Question Favorite Question Notable Question Famous Question Nice Question Yearling Famous Question Good Question Notable Question Great Question Famous Question Nice Question Great Question Stellar Question Popular Question Famous Question Great Question Popular Question Yearling Nice Question Nice Answer Enlightened Popular Question Famous Question Good Question Nice Question Notable Question Good Question Nice Question Famous Question Favorite Question Good Question Yearling Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74249,53372,962811,Student Scholar Documentation User,NULL,NULL,0,NULL,NULL 74250,4573102,962811,Student Scholar Documentation User,NULL,NULL,0,NULL,NULL 74251,309853,631246,Student,NULL,NULL,0,NULL,NULL 74252,168001,1120221,Popular Question Nice Question Popular Question Notable Question Nice Answer Enlightened Notable Question Notable Question Popular Question Nice Question Notable Question Good Question Nice Answer Enlightened Notable Question Great Question Nice Answer Enlightened Famous Question java Great Question Notable Question Nice Question javafx-2 Favorite Question Yearling Nice Question Self-Learner Popular Question Good Answer Famous Question Popular Question Electorate Nice Question Good Question Great Question Popular Question Caucus Popular Question Good Question Popular Question Favorite Question Nice Question Popular Question Famous Question Popular Question Notable Question Yearling Nice Answer Popular Question Popular Question Caucus Famous Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 74253,5085726,589590,Yearling Guru Civic Duty Caucus Constituent Informed Yearling Custodian Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 74254,24640,589590,Yearling Guru Civic Duty Caucus Constituent Informed Yearling Custodian Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 74255,388698,10176,Necromancer Civic Duty Nice Answer Necromancer Nice Answer Nice Answer Yearling Necromancer Great Question Nice Answer Caucus Good Answer Nice Answer Good Question Necromancer Good Answer Popular Question Notable Question Good Answer Good Answer Necromancer Great Answer Populist Caucus Constituent Famous Question Good Answer Yearling Revival Necromancer Revival Custodian Guru Caucus Good Answer Nice Answer Popular Question Yearling Popular Question Custodian Necromancer Necromancer,NULL,pThere are some problems pulliWhy do you print out count when it didn divide by It doesn mean it prime it means only that this particular doesn divide it lili codecontinue code moves to the next loop iteration but you really want to stop it using codebreak code li ulpHere your code with few fixes it prints out only primes ppre codeimport mathdef main count while True isprime True for in range int math sqrt count if count isprime False break if isprime print count count code prepFor much more efficient prime generation see the Sieve of Erastothenes as others have suggested Here nice optimized implementation with many comments ppre code Sieve of Eratosthenes Code by David Eppstein UC Irvine 28 Feb 2002 http code activestate com recipes 117119 def gen primes Generate an infinite sequence of prime numbers Maps composites to primes witnessing their compositeness This is memory efficient as the sieve is not run forward indefinitely but only as long as required by the current number being tested The running integer that checked for primeness while True if not in is new prime Yield it and mark its first multiple that isn already marked in previous iterations yield else is composite is the list of primes that divide it Since we ve reached we no longer need it in the map but we ll mark the next multiples of its witnesses to prepare for larger numbers for in setdefault append del code prepNote that it returns generator This dynamic sieve is very cool For calibration making it able to run an infinite generator like this makes it about times slower than regular static sieve which pre populates the sieve up to sqrt max prime pThere are some problems pulliWhy do you print out count when it didn divide by It doesn mean it prime it means only that this particular doesn divide it lili codecontinue code moves to the next loop iteration but you really want to stop it using codebreak code li ulpHere your code with few fixes it prints out only primes ppre codeimport mathdef main count while True isprime True for in range int math sqrt count if count isprime False break if isprime print count count code prepFor much more efficient prime generation see the Sieve of Erastothenes as others have suggested Here nice optimized implementation with many comments ppre code Sieve of Eratosthenes Code by David Eppstein UC Irvine 28 Feb 2002 http code activestate com recipes 117119 def gen primes Generate an infinite sequence of prime numbers Maps composites to primes witnessing their compositeness This is memory efficient as the sieve is not run forward indefinitely but only as long as required by the current number being tested The running integer that checked for primeness while True if not in is new prime Yield it and mark its first multiple that isn already marked in previous iterations yield else is composite is the list of primes that divide it Since we ve reached we no longer need it in the map but we ll mark the next multiples of its witnesses to prepare for larger numbers for in setdefault append del code prepNote that it returns generator And the postponed version Will Ness links to takes about the time of simple static sieve How do determine if my python shell is executing in 32bit or 64bit mode on OS python macos pI need way to tell what mode the shell is in from within the shell ppI ve tried looking at the href http docs python org library platform html rel noreferrer platform module but it seems only to tell you about about the bit architecture and the linkage format used for the executable the binary is compiled as 64bit though running on OS 10 so it seems to always report 64bit even though using the methods href https developer apple com mac library documentation Darwin Reference ManPages man1 python html rel noreferrer described here to force 32bit mode like to know because when use something like PyInstaller to create stand alone binary distributable to give to users who might not have the right version of Python installed the binary produce will be 32 64 bit depending on the Python run PyInstaller with Ideally thinking like to automatically name the resulting binary archive file with 32 or 64 in the filename rather than having to manually rename the files depending on where execute the make command from count non blank lines of code in bash bash unix count lines nonblank pIn Bash how do count the number of non blank lines of code in project OP here When first asked this problem cloc didn do very good job on Python code Nowadays it great pTo expand on what Ignacio said pp codea code and codea code test whether two objects have the same emvalue em You can override an object code eq code and code ne code methods to determine what that means pp codea is code and codea is not code test whether two objects are the same thing It like doing codeid id code Interesting to be reminded that this breaks my normal mental rule of thumb that not has higher precedence than everything else It is parsed as is not instead where is not is an atomic operator pTry the following ppre codeLD LIBRARY PATH usr local lib usr local bin python code prepReplace code usr local lib code with the folder where you have installed codelibpython2 so code if it is not in code usr local lib code ppIf this works and you want to make the changes permanent you have two options polli pAdd codeexport LD LIBRARY PATH usr local lib code to your code profile code in your home directory this works only if you are using shell which loads this file when new shell instance is started This setting will affect your user only lili pAdd code usr local lib code to code etc ld so conf code and run codeldconfig code This is system wide setting of course li ol LD LIBRARY PATH usr local lib usr local bin python gives bash usr local bin python No such file or directory on Ubuntu 14 04 pFuzzyFinder on itself is pretty useless to me use it in combination with FuzzyFinder TextMate and Ruby library that traverses all files and emsubdirectories em to find file much like the Cmd option for TextMate on Mac You can see it in action href http s3 amazonaws com buckblog videos fuzzyfinder textmate mov rel nofollow noreferrer here ppUnfortunately it takes some effort to get it to work since the original author stopped maintaining the script There are still some people regularly posting updates to github though You will need two scripts href http github com jamis fuzzyfinder textmate rel nofollow noreferrer codefuzzyfinder textmate vim code and href http github com jamis fuzzy file finder rel nofollow noreferrer codefuzzy file finder rb code ppThe latest versions work without problem in combination with Vim FuzzyFinder 22 Your Vim has to be compiled with Ruby support otherwise it will not work The href http weblog jamisbuck org 2008 10 10 coming home to vim rel nofollow noreferrer blog of the original author contains more information on how to use it properly Alternatively have look at my href http github com ton vim rel nofollow noreferrer Vim setup to see how it can be used The setup defines two keymappings code code and code code to fuzzy find file and open it in new window or the current window respectively ppre codefunction IdeFindTextMate let FuzzyFinderOptions Base key open lt CR gt let FuzzyFinderOptions Base key open split lt gt exe FuzzyFinderTextMate endfunctionfunction IdeSplitFindTextMate let FuzzyFinderOptions Base key open lt gt let FuzzyFinderOptions Base key open split lt CR gt exe FuzzyFinderTextMate endfunctionlet mapleader map lt silent gt lt leader gt call IdeFindTextMate lt CR gt map lt silent gt lt leader gt call IdeSplitFindTextMate lt CR gt code prep bUpdate ppRight now use the excellent href https wincent com products command rel nofollow noreferrer Command plugin instead of FuzzyFinder Have look at href https superuser com questions 9164 most useful vim plugin 200693 200693 this superuser answer of mine for the reasons why ve been using fuzzy finder for many years haven updated in all that time and only ever need to type part of the filename OR path in order to display all files for which the full pathname matches what was typed pFuzzyFinder on itself is pretty useless to me use it in combination with FuzzyFinder TextMate and Ruby library that traverses all files and emsubdirectories em to find file much like the Cmd option for TextMate on Mac You can see it in action href http s3 amazonaws com buckblog videos fuzzyfinder textmate mov rel nofollow noreferrer here ppUnfortunately it takes some effort to get it to work since the original author stopped maintaining the script There are still some people regularly posting updates to github though You will need two scripts href http github com jamis fuzzyfinder textmate rel nofollow noreferrer codefuzzyfinder textmate vim code and href http github com jamis fuzzy file finder rel nofollow noreferrer codefuzzy file finder rb code ppThe latest versions work without problem in combination with Vim FuzzyFinder 22 Your Vim has to be compiled with Ruby support otherwise it will not work The href http weblog jamisbuck org 2008 10 10 coming home to vim rel nofollow noreferrer blog of the original author contains more information on how to use it properly Alternatively have look at my href http github com ton vim rel nofollow noreferrer Vim setup to see how it can be used The setup defines two keymappings code code and code code to fuzzy find file and open it in new window or the current window respectively ppre codefunction IdeFindTextMate let FuzzyFinderOptions Base key open lt CR gt let FuzzyFinderOptions Base key open split lt gt exe FuzzyFinderTextMate endfunctionfunction IdeSplitFindTextMate let FuzzyFinderOptions Base key open lt gt let FuzzyFinderOptions Base key open split lt CR gt exe FuzzyFinderTextMate endfunctionlet mapleader map lt silent gt lt leader gt call IdeFindTextMate lt CR gt map lt silent gt lt leader gt call IdeSplitFindTextMate lt CR gt code prep bUpdate ppRight now use the excellent href https wincent com products command rel nofollow noreferrer Command plugin instead of FuzzyFinder Have look at href https superuser com questions 9164 most useful vim plugin 200693 200693 this superuser answer of mine for the reasons why can just type the start of the filename and immediately see files in subdirectories have bound key to FufFile Perhaps the trailing punctuation is important pFuzzyFinder on itself is pretty useless to me use it in combination with FuzzyFinder TextMate and Ruby library that traverses all files and emsubdirectories em to find file much like the Cmd option for TextMate on Mac You can see it in action href http s3 amazonaws com buckblog videos fuzzyfinder textmate mov rel nofollow noreferrer here ppUnfortunately it takes some effort to get it to work since the original author stopped maintaining the script There are still some people regularly posting updates to github though You will need two scripts href http github com jamis fuzzyfinder textmate rel nofollow noreferrer codefuzzyfinder textmate vim code and href http github com jamis fuzzy file finder rel nofollow noreferrer codefuzzy file finder rb code ppThe latest versions work without problem in combination with Vim FuzzyFinder 22 Your Vim has to be compiled with Ruby support otherwise it will not work The href http weblog jamisbuck org 2008 10 10 coming home to vim rel nofollow noreferrer blog of the original author contains more information on how to use it properly Alternatively have look at my href http github com ton vim rel nofollow noreferrer Vim setup to see how it can be used The setup defines two keymappings code code and code code to fuzzy find file and open it in new window or the current window respectively ppre codefunction IdeFindTextMate let FuzzyFinderOptions Base key open lt CR gt let FuzzyFinderOptions Base key open split lt gt exe FuzzyFinderTextMate endfunctionfunction IdeSplitFindTextMate let FuzzyFinderOptions Base key open lt gt let FuzzyFinderOptions Base key open split lt CR gt exe FuzzyFinderTextMate endfunctionlet mapleader map lt silent gt lt leader gt call IdeFindTextMate lt CR gt map lt silent gt lt leader gt call IdeSplitFindTextMate lt CR gt code prep bUpdate ppRight now use the excellent href https wincent com products command rel nofollow noreferrer Command plugin instead of FuzzyFinder Have look at href https superuser com questions 9164 most useful vim plugin 200693 200693 this superuser answer of mine for the reasons why Your link to this has fallen victim to SO overzealous delete anything that isn what we envisage police have also recently lost some comprehensive answers wrote presumably because they were in response to questions that were subsequently deleted My commiserations Removing python module installed in develop mode python setuptools pHi was trying the python packaging using setuptools and to test installed the module in develop mode ppre codepython setup py develop code prepThis has added my modules directory to sys path Now want to remove the module is there any way to do this ppThanks in advance Right you are thanks for correcting my silly mistake,0,NULL,NULL 74256,1346679,822956,Notable Question,NULL,NULL,0,NULL,NULL 74257,396780,120959,Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 74258,249586,437125,Nice Question,NULL,NULL,0,NULL,NULL 74259,981570,1021339,NULL,NULL,NULL,0,NULL,NULL 74260,221245,198053,Student Popular Question,NULL,NULL,0,NULL,NULL 74261,213033,744038,NULL,NULL,NULL,0,NULL,NULL 74262,1710041,753418,Notable Question Critic Good Question Nice Question Yearling Necromancer Caucus Notable Question Notable Question Yearling Famous Question Famous Question Nice Answer Enlightened Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74263,429975,753418,Notable Question Critic Good Question Nice Question Yearling Necromancer Caucus Notable Question Notable Question Yearling Famous Question Famous Question Nice Answer Enlightened Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74264,1620471,1167219,NULL,NULL,NULL,0,NULL,NULL 74265,214815,132270,Nice Answer Yearling Nice Question Guru Great Question Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 74266,81553,130596,Announcer,NULL,NULL,0,NULL,NULL 74267,1400445,409054,Enthusiast Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 74268,649353,660773,NULL,NULL,NULL,0,NULL,NULL 74269,1950937,1256648,NULL,NULL,NULL,0,NULL,NULL 74270,35935,311227,Editor Tumbleweed Student,NULL,NULL,0,NULL,NULL 74271,86309,562895,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74272,1483951,665279,NULL,NULL,NULL,0,NULL,NULL 74273,1983364,673782,NULL,NULL,NULL,0,NULL,NULL 74274,742134,673782,NULL,NULL,NULL,0,NULL,NULL 74275,685360,258194,Yearling Famous Question Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling Popular Question Caucus Custodian Good Answer Yearling Caucus Constituent python,NULL,NULL,0,NULL,NULL 74276,85270,106997,Great Answer Yearling Popular Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74277,1040119,1079200,Necromancer Nice Answer Yearling Necromancer Necromancer Yearling Nice Answer,NULL,h1ULTIMATE YOUTUBE REGEX h1h2Cherry picking h2pBecause the explanation is getting longer and longer place the final result at the top Feel free to copy paste and go on your way For detailed explanation read em the full story em below ppre code JavaScript function to match and return the video Id of any valid Youtube Url given as input string Stephan Schmitz lt eyecatchup com gt https stackoverflow com 10315969 624466 function ytVidId url var https www youtu be youtube com embed watch watch amp 11 return url match RegExp false code preh2The full story h2p href https stackoverflow com 2964758 624466 Amarghosh regex looks good at first sight But it pollidoesn match video id that include dashes lilidoesn validate the id length codev aa code and codev aaaaaaaaaaaaaaaaaa code return to be valid liliand doesn match secured URLs at all httpstrongs strong youtube com watch valid params li olpTo match https the dash character and to validate the id length this was my initial suggestion of modified version of Amarghosh regex pp code https www youtube com watch 11 code ph2UPDATE URLs versus Strings h2pAfter posted the above pattern was asked em What if the strongURL strong is like this brcodeyoutube com watch gl US amp hl en US amp bQVoAWSP7k4 code em ppFirst of please note that this not strongURL strong at all href http tools ietf org html rfc3986 page 16 rel noreferrer RFC compliant URLs must start with the scheme ppAnyway to match any kind of strongstring strong that indicates to refer to YouTube video updated my answer to exclude the URL scheme being required So my second suggestion was as follows pp code https www youtube com watch 11 code ph2UPDATE The ultimate regex h2pThen was asked to add support for special case the emyoutu be em short urls Initially did not add these since it wasn specifically part of the question However updated my answer now with strongall strong possible em special cases em This means that not only have added support for youtu be links but also the request paths and embed ppSo may introduce My final and ultimate Youtube regex pp code https www youtu be youtube com embed watch watch amp 11 code ph2What strings are matched h2pNow this pattern will work for any strings formatted as follows pp strongWithout scheme and subdomain Domain youtu be Path strong ppre codeyoutu be lt video id gt code prep strongWithout scheme with subdomain Domain youtu be Path strong ppre codewww youtu be lt video id gt code prep strongWith HTTP scheme without subdomain Domain youtu be Path strong ppre codehttp youtu be lt video id gt code prep strongWith HTTP scheme and subdomain Domain youtu be Path strong ppre codehttp www youtu be lt video id gt code prep strongWith HTTPS scheme without subdomain Domain youtu be Path strong ppre codehttps youtu be lt video id gt code prep strongWith HTTPS scheme and subdomain Domain youtu be Path strong ppre codehttps www youtu be lt video id gt code prep strongWithout scheme and subdomain Domain youtube com Path embed strong ppre codeyoutube com embed lt video id gt youtube com embed lt video id gt amp other params code prep strongWithout scheme with subdomain Domain youtube com Path embed strong ppre codewww youtube com embed lt video id gt www youtube com embed lt video id gt amp other params code prep strongWith HTTP scheme without subdomain Domain youtube com Path embed strong ppre codehttp youtube com embed lt video id gt http youtube com embed lt video id gt amp other params code prep strongWith HTTP scheme and subdomain Domain youtube com Path embed strong ppre codehttp www youtube com embed lt video id gt http www youtube com embed lt video id gt amp other params code prep strongWith HTTPS scheme without subdomain Domain youtube com Path embed strong ppre codehttps youtube com embed lt video id gt https youtube com embed lt video id gt amp other params code prep strongWith HTTPS scheme and subdomain Domain youtube com Path embed strong ppre codehttps www youtube com embed lt video id gt https www youtube com embed lt video id gt amp other params code prep strongWithout scheme and subdomain Domain youtube com Path strong ppre codeyoutube com lt video id gt youtube com lt video id gt amp other params code prep strongWithout scheme with subdomain Domain youtube com Path strong ppre codewww youtube com lt video id gt www youtube com lt video id gt amp other params code prep strongWith HTTP scheme without subdomain Domain youtube com Path strong ppre codehttp youtube com lt video id gt http youtube com lt video id gt amp other params code prep strongWith HTTP scheme and subdomain Domain youtube com Path strong ppre codehttp www youtube com lt video id gt http www youtube com lt video id gt amp other params code prep strongWith HTTPS scheme without subdomain Domain youtube com Path strong ppre codehttps youtube com lt video id gt https youtube com lt video id gt amp other params code prep strongWith HTTPS scheme and subdomain Domain youtube com Path strong ppre codehttps www youtube com lt video id gt https www youtube com lt video id gt amp other params code prep strongWithout scheme and subdomain Domain youtube com Path watch strong ppre codeyoutube com watch lt video id gt youtube com watch lt video id gt amp other params youtube com watch other params amp lt video id gt youtube com watch other params amp lt video id gt amp more params code prep strongWithout scheme with subdomain Domain youtube com Path watch strong ppre codewww youtube com watch lt video id gt www youtube com watch lt video id gt amp other params www youtube com watch other params amp lt video id gt www youtube com watch other params amp lt video id gt amp more params code prep strongWith HTTP scheme without subdomain Domain youtube com Path watch strong ppre codehttp youtube com watch lt video id gt http youtube com watch lt video id gt amp other params http youtube com watch other params amp lt video id gt http youtube com watch other params amp lt video id gt amp more params code prep strongWith HTTP scheme and subdomain Domain youtube com Path watch strong ppre codehttp www youtube com watch lt video id gt http www youtube com watch lt video id gt amp other params http www youtube com watch other params amp lt video id gt http www youtube com watch other params amp lt video id gt amp more params code prep strongWith HTTPS scheme without subdomain Domain youtube com Path watch strong ppre codehttps youtube com watch lt video id gt https youtube com watch lt video id gt amp other params https youtube com watch other params amp lt video id gt https youtube com watch other params amp lt video id gt amp more params code prep strongWith HTTPS scheme and subdomain Domain youtube com Path watch strong ppre codehttps www youtube com watch lt video id gt https www youtube com watch lt video id gt amp other params https www youtube com watch other params amp lt video id gt https www youtube com watch other params amp lt video id gt amp more params code preh2FUNCTIONAL USAGE h2pThe most easy way to use the pattern is to wrap it into function such as this one pp div class snippet data lang js data hide false data console false data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override code xD JavaScript function to match and return the video Id xD of any valid Youtube Url given as input string xD Stephan Schmitz lt eyecatchup com gt xD https stackoverflow com 10315969 624466 xD xD function ytVidId url xD var https www youtu be youtube com embed watch watch amp 11 xD return url match RegExp false xD xD xD for example snippet only xD document body addEventListener click function xD if target className yt url amp amp undefined target value xD var ytId ytVidId target value xD alert target value nResult ytId false ytId xD xD false code pre xD pre class snippet code html lang html prettyprint override code lt Click the buttons to probe URLs gt xD lt input type button value https www youtube com watch e2G VcTms amp feature logo amp context G29aead6FOAAAAAAABAA class yt url gt xD lt input type button value https www youtube com latest class yt url gt code pre xD div xD div xD ppIf the type of the function result value must be boolean value just replace codeRegExp code by codetrue code That it pp strongOne final note on the video Id length strong One asked if the ids have fixed length of 11 chars and if it might change in the future ppThe best answer to that question is probably also the only official statement that ve found href https groups google com forum fromgroups topic youtube api gdata oAztQ3f1tcM rel noreferrer here and which says em don see anywhere in the documentation where we officially commit to standard length of 11 characters for YouTube video ids It one of those things where we have current implementation and it may stay that way indefinitely But we re not offering any official commitment to that so proceed at your own risk em RegExp is Deprecated https developer mozilla org en US docs Web JavaScript Reference Deprecated and obsolete features RegExp Properties,0,, 74278,172624,276569,Notable Question Popular Question Popular Question Notable Question Custodian Good Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 74279,113946,211747,Nice Answer Enlightened c# Yearling Notable Question Nice Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 74280,74021,80979,Yearling,NULL,NULL,0,NULL,NULL 74281,112174,694714,NULL,NULL,NULL,0,NULL,NULL 74282,1526635,1161863,Supporter,NULL,NULL,0,NULL,NULL 74283,1501807,1161863,Supporter,NULL,NULL,0,NULL,NULL 74284,142317,1501945,NULL,NULL,NULL,0,NULL,NULL 74285,281482,508978,NULL,NULL,NULL,0,NULL,NULL 74286,891049,1321647,Popular Question,NULL,NULL,0,NULL,NULL 74287,106741,1059921,NULL,NULL,NULL,0,NULL,NULL 74288,1352450,1140081,NULL,NULL,NULL,0,NULL,NULL 74289,453659,102076,Yearling Editor Informed Nice Answer Student Scholar Enthusiast Caucus Constituent Fanatic Excavator,NULL,NULL,0,NULL,NULL 74290,240339,265099,NULL,NULL,NULL,0,NULL,NULL 74291,136130,1290668,Popular Question Famous Question Notable Question Popular Question Popular Question Yearling Famous Question Good Question Nice Question Notable Question Notable Question Caucus Popular Question Custodian Notable Question Yearling Good Question Good Answer Nice Answer Notable Question Famous Question Great Question Yearling Favorite Question Necromancer Great Question,NULL,NULL,0,NULL,NULL 74292,1047819,613661,NULL,NULL,NULL,0,NULL,NULL 74293,255741,397902,python Nice Answer Good Question Nice Question Notable Question Yearling Guru Popular Question Notable Question Popular Question Nice Question Yearling Good Answer Famous Question Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 74294,192145,1035213,NULL,NULL,NULL,0,NULL,NULL 74295,240006,606871,NULL,NULL,NULL,0,NULL,NULL 74296,3363695,606871,NULL,NULL,NULL,0,NULL,NULL 74297,33725,63347,Yearling Necromancer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 74298,420836,926829,NULL,NULL,NULL,0,NULL,NULL 74299,2645,657807,NULL,NULL,NULL,0,NULL,NULL 74300,161557,317908,Autobiographer Caucus Yearling Announcer Documentation User Census Caucus,NULL,NULL,0,NULL,NULL 74301,599099,789495,Nice Answer Revival Caucus Constituent Critic Autobiographer Citizen Patrol Custodian Custodian Yearling Documentation User,NULL,,0,, 74302,290379,1399085,NULL,NULL,NULL,0,NULL,NULL 74303,33889,1446338,NULL,NULL,NULL,0,NULL,NULL 74304,254093,1135801,Editor Teacher,NULL,NULL,0,NULL,NULL 74305,212840,173715,Yearling Caucus Constituent Caucus Constituent Yearling Census Nice Answer Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 74306,8349875,1224493,Popular Question Student,NULL,NULL,0,NULL,NULL 74307,887116,1224493,Popular Question Student,NULL,NULL,0,NULL,NULL 74308,269525,862118,NULL,NULL,NULL,0,NULL,NULL 74309,13544,235176,NULL,NULL,NULL,0,NULL,NULL 74310,7328,109217,Yearling Caucus Popular Question Yearling Notable Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 74311,904226,1267584,NULL,NULL,NULL,0,NULL,NULL 74312,318772,573044,Yearling Custodian Nice Answer Caucus Yearling Yearling Custodian Custodian Caucus Nice Answer,NULL,NULL,0,NULL,NULL 74313,424301,1455038,Yearling Good Answer Caucus Yearling Excavator Yearling,NULL,NULL,0,NULL,NULL 74314,42594,785356,NULL,NULL,NULL,0,NULL,NULL 74315,37902,229998,Popular Question Necromancer Revival Notable Question Nice Answer Enlightened Caucus Nice Answer Constituent Yearling Popular Question Caucus Necromancer Nice Question Custodian Yearling Caucus Revival Nice Answer Enlightened Popular Question Popular Question,NULL,Have withLatestFrom wait until all sources have produced one value rxjs pI making use of the codewithLatestFrom code operator in RxJS in the normal way ppre codevar combined source1 withLatestFrom source2 source3 code prep to actively collect the most recent emission from codesource2 code and codesource3 code and to emit all three value only when codesource1 code emits ppBut cannot guarantee that codesource2 code or codesource3 code will have produced values embefore em codesource1 code produces value Instead need to wait until all three sources produce at least one value each before letting codewithLatestFrom code do its thing ppThe contract needs to be if codesource1 code emits then codecombined code will strongalways strong eventually emit when the other sources finally produce If codesource1 code emits multiple times while waiting for the other sources we can use the latest value and discard the previous values strongEdit strong as marble diagram ppre code source other1 other2 1ax 2by source other1 other2 1ax 2by source other1 other2 1ax 2by code prepI can make custom operator for this but want to make sure not missing an obvious way to do this using the vanilla operators It feels almost like want codecombineLatest code for the initial emit and then to emswitch em to codewithLatestFrom code from then on but haven been able to figure out how to do that pp strongEdit strong Full code example from final solution ppre codevar Dispatcher new Rx Subject var source1 Dispatcher filter gt foo var source2 Dispatcher filter gt bar var source3 Dispatcher filter gt baz var combined source1 publish function s1 return source2 publish function s2 return source3 publish function s3 var cL s1 combineLatest s2 s3 take do gt console log cL var wLF s1 skip withLatestFrom s2 s3 do gt console log wLF return Rx Observable merge cL wLF var sub1 combined subscribe gt console log These can arrive in any order and we can get multiple values from any one Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo Dispatcher onNext baz combineLatest triggers once we have all values cL foo bar baz withLatestFrom takes over from there Dispatcher onNext foo Dispatcher onNext bar Dispatcher onNext foo wLF foo bar baz wLF foo bar baz code pre In my experience withLatestFrom does wait for every source to produce but that means it skips any events which occurred before that state happened experiencing similar issue to the OP where S1 emits most or all of its values before S2 emits one want it to wait for S2 and then emit for each S1 value with that value but it just skips all by the last S1 value,0,NULL,NULL 74316,26029,910917,NULL,NULL,NULL,0,NULL,NULL 74317,127037,1286978,NULL,NULL,NULL,0,NULL,NULL 74318,754176,1549011,Editor,NULL,NULL,0,NULL,NULL 74319,24514,1477823,NULL,NULL,NULL,0,NULL,NULL 74320,1448741,651159,Notable Question,NULL,NULL,0,NULL,NULL 74321,613996,1462199,NULL,NULL,NULL,0,NULL,NULL 74322,116592,1170407,Necromancer Yearling Enthusiast Announcer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 74323,32944,1269951,Nice Answer Yearling Good Answer Great Answer Student Yearling Good Answer Yearling,NULL,pOS uses mix of BSD and GNU tools so best always check the documentation although had it that codeless code didn even conform to the OS manpage pp href https developer apple com legacy library documentation Darwin Reference ManPages man1 sed html rel noreferrer https developer apple com legacy library documentation Darwin Reference ManPages man1 sed html ppsed takes the argument after code code as the extension for backups Provide an empty string code code for no backups ppThe following should do pp codefind type name txt exec sed this that code ppThe code type code is just good practice sed will complain if you give it directory or so code exec code is preferred over codexargs code you needn bother with code print0 code or anything The code code at the end means that codefind code will append all results as arguments to one instance of the called command instead of re running it for each result One exception is when the maximal number of command line arguments allowed by the OS is breached in that case codefind code will run more than one instance find type name txt name js exec for multiple extensions Simple leave out the name part for all files pOS uses mix of BSD and GNU tools so best always check the documentation although had it that codeless code didn even conform to the OS manpage pp href https developer apple com legacy library documentation Darwin Reference ManPages man1 sed html rel noreferrer https developer apple com legacy library documentation Darwin Reference ManPages man1 sed html ppsed takes the argument after code code as the extension for backups Provide an empty string code code for no backups ppThe following should do pp codefind type name txt exec sed this that code ppThe code type code is just good practice sed will complain if you give it directory or so code exec code is preferred over codexargs code you needn bother with code print0 code or anything The code code at the end means that codefind code will append all results as arguments to one instance of the called command instead of re running it for each result One exception is when the maximal number of command line arguments allowed by the OS is breached in that case codefind code will run more than one instance Unix is ambiguous as nearly nobody uses the original Unix nowadays Ubuntu is based on Debian which in turn is GNU based operating system like most Linux distros and the code will work on GNU,0,NULL,NULL 74324,87429,120220,Popular Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74325,475132,239378,Notable Question Notable Question Nice Question Nice Answer Popular Question Nice Question Popular Question Popular Question Nice Answer Enlightened Famous Question Yearling Nice Answer Nice Answer Great Answer Notable Question Good Question Nice Answer Nice Question Yearling Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 74326,1228233,176644,NULL,NULL,NULL,0,NULL,NULL 74327,376474,1009277,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened python Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Enlightened Yearling Caucus Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened excel-formula Nice Answer Guru Guru Guru Guru Yearling Good Answer Nice Answer Enlightened Guru Good Answer Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Revival Yearling,NULL,NULL,0,NULL,NULL 74328,3673866,317937,Revival Necromancer Good Question Nice Question Nice Answer Enlightened Booster Yearling Notable Question Famous Question Notable Question Good Question Notable Question Necromancer Notable Question Popular Question Yearling Good Answer Nice Question Notable Question Nice Question Nice Question Notable Question Notable Question Good Question Revival Great Question Yearling Great Question Great Answer Popular Question Notable Question Notable Question Notable Question Popular Question Guru Good Answer,NULL,NULL,0,NULL,NULL 74329,14754,317937,Revival Necromancer Good Question Nice Question Nice Answer Enlightened Booster Yearling Notable Question Famous Question Notable Question Good Question Notable Question Necromancer Notable Question Popular Question Yearling Good Answer Nice Question Notable Question Nice Question Nice Question Notable Question Notable Question Good Question Revival Great Question Yearling Great Question Great Answer Popular Question Notable Question Notable Question Notable Question Popular Question Guru Good Answer,NULL,NULL,0,NULL,NULL 74330,1518387,1174740,NULL,NULL,NULL,0,NULL,NULL 74331,1717115,1174740,NULL,NULL,NULL,0,NULL,NULL 74332,338267,1183778,Necromancer,NULL,NULL,0,NULL,NULL 74333,97379,1319820,NULL,NULL,NULL,0,NULL,NULL 74334,1497772,840949,Custodian Notable Question Electorate Notable Question,NULL,NULL,0,NULL,NULL 74335,91073,471839,Revival Revival Yearling Necromancer Announcer Nice Answer Revival Yearling Student Scholar Necromancer Autobiographer Yearling Necromancer Good Answer Announcer Commentator Yearling Popular Question Popular Question Necromancer Good Answer Necromancer Yearling Nice Answer Enlightened,NULL,pThe Qt toolkit is packaged using the Qt Installer Framework QtIFW QtIFW installers support code script code option that allows you to programatically control the installation via the href http doc qt io qtinstallerframework noninteractive html rel nofollow noreferrer Controller Scripting API Here codeqt installer noninteractive qs code file to install Qt non interactively ppre code Emacs mode hint mode JavaScript function Controller installer autoRejectMessageBoxes installer installationFinished connect function gui clickButton buttons NextButton Controller prototype WelcomePageCallback function click delay here because the next button is initially disabled for second gui clickButton buttons NextButton 3000 Controller prototype CredentialsPageCallback function gui clickButton buttons NextButton Controller prototype IntroductionPageCallback function gui clickButton buttons NextButton Controller prototype TargetDirectoryPageCallback function gui currentPageWidget TargetDirectoryLineEdit setText installer value HomeDir Qt gui clickButton buttons NextButton Controller prototype ComponentSelectionPageCallback function var widget gui currentPageWidget widget deselectAll widget selectComponent qt 55 gcc 64 widget selectComponent qt 55 qtquickcontrols widget deselectComponent qt tools qtcreator widget deselectComponent qt 55 qt3d widget deselectComponent qt 55 qtcanvas3d widget deselectComponent qt 55 qtlocation widget deselectComponent qt 55 qtquick1 widget deselectComponent qt 55 qtscript widget deselectComponent qt 55 qtwebengine widget deselectComponent qt extras widget deselectComponent qt tools doc widget deselectComponent qt tools examples gui clickButton buttons NextButton Controller prototype LicenseAgreementPageCallback function gui currentPageWidget AcceptLicenseRadioButton setChecked true gui clickButton buttons NextButton Controller prototype StartMenuDirectoryPageCallback function gui clickButton buttons NextButton Controller prototype ReadyForInstallationPageCallback function gui clickButton buttons NextButton Controller prototype FinishedPageCallback function var checkBoxForm gui currentPageWidget LaunchQtCreatorCheckBoxForm if checkBoxForm amp amp checkBoxForm launchQtCreatorCheckBox checkBoxForm launchQtCreatorCheckBox checked false gui clickButton buttons FinishButton code prepThis script demonstrates how to select deselect certain components Customize for your needs or just remove the lines entirely for default installation Likewise you may want to customize or remove the codeTargetDirectoryLineEdit code line Run the Qt installer like ppre codeqt opensource linux x64 run script qt installer noninteractive qs code prepAdd code platform minimal code for headless installation Future installers based on newer versions of QtIFW should be able to use code silent code option instead see href https bugreports qt io browse QTIFW 166 rel nofollow noreferrer QTIFW 166 ppAdd code verbose code for more verbose console output helpful for gleaning component names wizard page names etc href https github com qtproject qtsdk tree master packaging tools configurations pkg templates rel nofollow noreferrer This link is also helpful for figuring out component names The Unknown option message is incorrectly printed it bug The command still succeeds pThe Qt toolkit is packaged using the Qt Installer Framework QtIFW QtIFW installers support code script code option that allows you to programatically control the installation via the href http doc qt io qtinstallerframework noninteractive html rel nofollow noreferrer Controller Scripting API Here codeqt installer noninteractive qs code file to install Qt non interactively ppre code Emacs mode hint mode JavaScript function Controller installer autoRejectMessageBoxes installer installationFinished connect function gui clickButton buttons NextButton Controller prototype WelcomePageCallback function click delay here because the next button is initially disabled for second gui clickButton buttons NextButton 3000 Controller prototype CredentialsPageCallback function gui clickButton buttons NextButton Controller prototype IntroductionPageCallback function gui clickButton buttons NextButton Controller prototype TargetDirectoryPageCallback function gui currentPageWidget TargetDirectoryLineEdit setText installer value HomeDir Qt gui clickButton buttons NextButton Controller prototype ComponentSelectionPageCallback function var widget gui currentPageWidget widget deselectAll widget selectComponent qt 55 gcc 64 widget selectComponent qt 55 qtquickcontrols widget deselectComponent qt tools qtcreator widget deselectComponent qt 55 qt3d widget deselectComponent qt 55 qtcanvas3d widget deselectComponent qt 55 qtlocation widget deselectComponent qt 55 qtquick1 widget deselectComponent qt 55 qtscript widget deselectComponent qt 55 qtwebengine widget deselectComponent qt extras widget deselectComponent qt tools doc widget deselectComponent qt tools examples gui clickButton buttons NextButton Controller prototype LicenseAgreementPageCallback function gui currentPageWidget AcceptLicenseRadioButton setChecked true gui clickButton buttons NextButton Controller prototype StartMenuDirectoryPageCallback function gui clickButton buttons NextButton Controller prototype ReadyForInstallationPageCallback function gui clickButton buttons NextButton Controller prototype FinishedPageCallback function var checkBoxForm gui currentPageWidget LaunchQtCreatorCheckBoxForm if checkBoxForm amp amp checkBoxForm launchQtCreatorCheckBox checkBoxForm launchQtCreatorCheckBox checked false gui clickButton buttons FinishButton code prepThis script demonstrates how to select deselect certain components Customize for your needs or just remove the lines entirely for default installation Likewise you may want to customize or remove the codeTargetDirectoryLineEdit code line Run the Qt installer like ppre codeqt opensource linux x64 run script qt installer noninteractive qs code prepAdd code platform minimal code for headless installation Future installers based on newer versions of QtIFW should be able to use code silent code option instead see href https bugreports qt io browse QTIFW 166 rel nofollow noreferrer QTIFW 166 ppAdd code verbose code for more verbose console output helpful for gleaning component names wizard page names etc href https github com qtproject qtsdk tree master packaging tools configurations pkg templates rel nofollow noreferrer This link is also helpful for figuring out component names Are you using commercial license If not there is no need to enter username and password,0,NULL,NULL 74336,234995,1274282,Yearling Announcer,NULL,NULL,0,NULL,NULL 74337,872256,666711,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74338,518451,950910,NULL,NULL,NULL,0,NULL,NULL 74339,2408884,1308573,NULL,NULL,NULL,0,NULL,NULL 74340,674873,136945,Nice Answer Enlightened Notable Question Yearling Nice Answer Enlightened Nice Answer c# Great Answer Nice Answer Nice Answer Yearling Good Answer Cleanup Yearling,NULL,NULL,0,NULL,NULL 74341,373224,666516,Necromancer Famous Question Yearling,NULL,NULL,0,NULL,NULL 74342,367984,597980,Famous Question,NULL,NULL,0,NULL,NULL 74343,4997348,1352647,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74344,4883687,1352647,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74345,282848,1352647,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74346,240133,1215104,NULL,NULL,NULL,0,NULL,NULL 74347,28974,416354,Nice Question Good Answer Favorite Question Notable Question Popular Question Yearling Famous Question Nice Question Notable Question Guru Nice Question Good Question Notable Question Yearling Popular Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 74348,1544994,1427143,NULL,NULL,NULL,0,NULL,NULL 74349,212011,286635,Editor Critic Tenacious Yearling Commentator Caucus Constituent Yearling Caucus Yearling Custodian Custodian Census Yearling Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74350,2601293,1177200,Notable Question Teacher Necromancer Critic Yearling Notable Question Nice Answer Yearling Census Excavator Caucus Custodian Custodian Citizen Patrol Custodian Informed Autobiographer Organizer Good Answer,NULL,pSame error for me and didn experience it until downloaded OS 10 Mavericks Sigh another OS upgrade headache ppHere how fixed it with homebrew pulliInstall another build of Xcode Tools typing codebrew update code in the terminal will prompt you to update the Xcode build tools lili codebrew update code lili codebrew install postgresql code li ulpAfter that codegem install pg code worked for me Chiming in like the others with huge thank you,0,NULL,NULL 74351,121950,1008026,NULL,NULL,NULL,0,NULL,NULL 74352,34048,671987,NULL,NULL,NULL,0,NULL,NULL 74353,78968,1238811,NULL,NULL,NULL,0,NULL,NULL 74354,1981126,1152889,NULL,NULL,NULL,0,NULL,NULL 74355,6071646,1460296,Supporter,NULL,NULL,0,NULL,NULL 74356,2221970,1460296,Supporter,NULL,NULL,0,NULL,NULL 74357,216044,1460296,Supporter,NULL,NULL,0,NULL,NULL 74358,581996,594298,NULL,NULL,NULL,0,NULL,NULL 74359,454794,735832,Popular Question Yearling Good Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 74360,59218,460417,Necromancer Taxonomist Nice Answer Explainer Nice Answer Enlightened Revival Yearling Necromancer Nice Answer Enlightened Great Answer Yearling Documentation User Good Answer Revival Necromancer Necromancer Nice Answer Enlightened Caucus Nice Answer Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 74361,7344156,1226567,NULL,NULL,NULL,0,NULL,NULL 74362,226832,1226567,NULL,NULL,NULL,0,NULL,NULL 74363,191895,303984,Student Scholar,NULL,NULL,0,NULL,NULL 74364,318513,249330,NULL,NULL,NULL,0,NULL,NULL 74365,121295,454473,Yearling Popular Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 74366,38234,1250610,NULL,NULL,NULL,0,NULL,NULL 74367,78173,373623,NULL,NULL,NULL,0,NULL,NULL 74368,1190264,839148,Notable Question,NULL,NULL,0,NULL,NULL 74369,491728,897929,Nice Question Popular Question Famous Question Notable Question Favorite Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 74370,172723,429926,NULL,NULL,NULL,0,NULL,NULL 74371,81012,1215736,NULL,NULL,NULL,0,NULL,NULL 74372,41814,112858,Famous Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74373,1611598,507016,Notable Question Popular Question Nice Question Yearling Favorite Question Notable Question Great Question Famous Question Popular Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 74374,1376091,824050,NULL,NULL,NULL,0,NULL,NULL 74375,554372,961600,NULL,NULL,NULL,0,NULL,NULL 74376,1522558,1130184,Good Question Yearling Editor Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 74377,369497,447908,Notable Question,NULL,NULL,0,NULL,NULL 74378,588131,77278,Yearling Famous Question Notable Question Nice Question Yearling Famous Question Famous Question Great Question java Notable Question Yearling Good Answer Famous Question,NULL,NULL,0,NULL,NULL 74379,472312,352705,Famous Question Yearling Guru Yearling Popular Question Good Question Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 74380,786850,417625,Notable Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74381,8262,656812,Yearling Great Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 74382,512035,946964,NULL,NULL,NULL,0,NULL,NULL 74383,609095,1248924,NULL,NULL,NULL,0,NULL,NULL 74384,1554497,424446,Good Answer Nice Answer Yearling Good Answer Good Answer Caucus Constituent Guru Custodian Yearling Nice Answer jquery Good Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74385,447289,424446,Good Answer Nice Answer Yearling Good Answer Good Answer Caucus Constituent Guru Custodian Yearling Nice Answer jquery Good Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74386,1518231,934943,NULL,NULL,NULL,0,NULL,NULL 74387,49674,1444967,NULL,NULL,NULL,0,NULL,NULL 74388,782808,1488651,NULL,NULL,NULL,0,NULL,NULL 74389,2054,163059,Nice Answer Enlightened Yearling Caucus,NULL,NULL,0,NULL,NULL 74390,625939,539321,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 74391,322764,1375241,Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 74392,156368,1981,NULL,NULL,NULL,0,NULL,NULL 74393,21722,616413,Famous Question Yearling Caucus Necromancer Critic Census Caucus,NULL,NULL,0,NULL,NULL 74394,1158887,279511,Yearling Popular Question Self-Learner Popular Question Popular Question Notable Question Caucus Constituent Nice Question Good Question Famous Question Yearling Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Census Custodian Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 74395,676914,1186958,NULL,NULL,NULL,0,NULL,NULL 74396,304380,1031703,NULL,NULL,NULL,0,NULL,NULL 74397,416538,605471,Good Answer Excavator Yearling Famous Question Cleanup Custodian Yearling,NULL,NULL,0,NULL,NULL 74398,112263,1466158,Necromancer Supporter,NULL,NULL,0,NULL,NULL 74399,89609,1078606,NULL,NULL,NULL,0,NULL,NULL 74400,946576,950689,NULL,NULL,NULL,0,NULL,NULL 74401,249508,966619,NULL,NULL,NULL,0,NULL,NULL 74402,42717,1104081,NULL,NULL,NULL,0,NULL,NULL 74403,195877,679455,NULL,NULL,NULL,0,NULL,NULL 74404,360900,380231,Nice Answer Enlightened Good Answer Good Answer Good Answer Good Answer Nice Answer Nice Answer Necromancer Guru Necromancer Nice Answer Enlightened Good Answer Guru pandas Nice Answer Enlightened Necromancer Nice Answer Nice Answer Enlightened Notable Question Necromancer Yearling Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Caucus Good Answer Constituent Necromancer Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Guru Nice Answer Sportsmanship Great Answer Nice Answer Populist Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer plot Nice Answer Good Answer Revival Good Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Guru Good Answer Nice Answer Yearling Enlightened Nice Answer Good Answer Good Answer Caucus Nice Answer Enlightened Constituent Nice Answer Enlightened Good Answer animation Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Documentation User Revival python-3.x Popular Question Good Answer Nice Answer Announcer Guru Nice Answer Enlightened Census Announcer Guru Guru Nice Answer Good Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Taxonomist Good Answer Nice Answer Enlightened Nice Answer Great Answer Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Great Answer Great Answer Nice Answer Enlightened Populist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Revival Nice Answer Enlightened,NULL,pAccording to the href http ipython readthedocs org en stable interactive plotting html rel noreferrer documentation you should be able to switch back and forth like this ppre codeIn matplotlib inline In plot In matplotlib qt wx gtk osx tk empty uses defaultIn plot code prepand that will pop up regular plot window restart on the notebook may be necessary ppI hope this helps The issue is that the GUI windows are opening on your kernel server not on your client,0,NULL,NULL 74405,113703,1156665,NULL,NULL,NULL,0,NULL,NULL 74406,3930331,795751,NULL,NULL,NULL,0,NULL,NULL 74407,201588,795751,NULL,NULL,NULL,0,NULL,NULL 74408,449409,373225,Nice Question Popular Question Notable Question Nice Answer Popular Question Critic Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74409,200508,69993,Notable Question Famous Question Necromancer Famous Question Yearling Good Question Nice Question Notable Question php Notable Question Nice Answer Documentation Pioneer Nice Answer Great Answer Custodian Custodian Custodian Nice Question Famous Question Popular Question Popular Question Nice Question Popular Question Strunk & White Popular Question Necromancer Yearling Popular Question Nice Answer Popular Question Notable Question Popular Question Favorite Question Nice Question Custodian Notable Question Notable Question Popular Question Documentation User Famous Question Yearling Caucus Nice Question Nice Question Announcer Famous Question Nice Answer Electorate Popular Question Notable Question Necromancer,NULL,pYou re looking for href https docs angularjs org api ng service anchorScroll rel nofollow noreferrer code anchorScroll code pp href https docs angularjs org api ng service anchorScroll rel nofollow noreferrer Here the crappy documentation pp href https github com angular angular js blob master src ng anchorScroll js rel nofollow noreferrer And here the source ppBasically you just inject it and call it in your controller and it will scroll you to any element with the id found in code location hash code ppre codeapp controller TestCtrl function scope location anchorScroll scope scrollTo function id location hash id anchorScroll lt ng click scrollTo foo gt Foo lt gt lt div id foo gt Here you are lt div gt code prep href http plnkr co edit PCO051UJS8EHbdkmFV40 preview rel nofollow noreferrer Here is plunker to demonstrate pp strongEDIT to use this with routing strong ppSet up your angular routing as usual then just add the following code ppre codeapp run function rootScope location anchorScroll routeParams when the route is changed scroll to the proper element rootScope on routeChangeSuccess function newRoute oldRoute location hash routeParams scrollTo anchorScroll code prepand your link would look like this ppre code lt href test scrollTo foo gt Test Foo lt gt code prepHere is href http plnkr co edit De6bBrkHpojgAbEvHszu rel nofollow noreferrer Plunker demonstrating scrolling with routing and anchorScroll pp strongAnd even simpler strong ppre codeapp run function rootScope location anchorScroll when the route is changed scroll to the proper element rootScope on routeChangeSuccess function newRoute oldRoute if location hash anchorScroll code prepand your link would look like this ppre code lt href test foo gt Test Foo lt gt code pre found that simply passing the id to anchorScroll avoided an unfortunate page reload,0,NULL,NULL 74410,35900,636149,NULL,NULL,NULL,0,NULL,NULL 74411,463197,1546785,Necromancer Yearling Popular Question Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 74412,359454,608464,NULL,NULL,NULL,0,NULL,NULL 74413,42695,418211,Popular Question Yearling Caucus Constituent Custodian Custodian c# Excavator Custodian Proofreader Reviewer Nice Answer Enlightened Caucus Yearling Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 74414,173068,894789,NULL,NULL,NULL,0,NULL,NULL 74415,4434297,381633,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 74416,1039331,1358105,Census,NULL,NULL,0,NULL,NULL 74417,305214,7376,Good Answer python Nice Answer Enlightened Necromancer Popular Question Necromancer Notable Question Yearling Announcer Custodian Nice Question Popular Question Nice Answer Popular Question Necromancer Popular Question Announcer Necromancer Guru Necromancer Popular Question Yearling Nice Answer Documentation User Nice Answer Census Nice Answer Nice Answer Announcer Announcer Announcer Famous Question Yearling Nice Answer Enlightened Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 74418,50241,183362,Necromancer Yearling Popular Question Taxonomist Self-Learner Nice Answer Enlightened Favorite Question Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 74419,680888,1345614,NULL,NULL,NULL,0,NULL,NULL 74420,84521,771378,NULL,NULL,NULL,0,NULL,NULL 74421,117110,844876,Yearling,NULL,NULL,0,NULL,NULL 74422,263180,988617,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74423,727398,1241305,NULL,NULL,NULL,0,NULL,NULL 74424,142457,824055,NULL,NULL,NULL,0,NULL,NULL 74425,76301,452156,NULL,NULL,NULL,0,NULL,NULL 74426,69110,1173927,NULL,NULL,NULL,0,NULL,NULL 74427,753694,767980,NULL,NULL,NULL,0,NULL,NULL 74428,30742,181668,Commentator,NULL,NULL,0,NULL,NULL 74429,36128,67600,NULL,NULL,NULL,0,NULL,NULL 74430,5283127,386082,Great Answer Nice Answer Custodian Custodian Excavator Citizen Patrol Custodian Custodian Organizer Proofreader Custodian Informed Reviewer Popular Question Popular Question Yearling Caucus Popular Question Yearling Great Answer Census Yearling,NULL,NULL,0,NULL,NULL 74431,21527,648680,NULL,NULL,NULL,0,NULL,NULL 74432,214258,154598,Custodian Popular Question Notable Question Notable Question Famous Question Notable Question Good Question Notable Question Yearling Census Popular Question Yearling Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 74433,499751,1011856,Scholar Yearling Census Enthusiast Caucus Necromancer Custodian,NULL,NULL,0,NULL,NULL 74434,425361,854953,NULL,NULL,NULL,0,NULL,NULL 74435,34605,33165,Nice Answer Great Answer Nice Answer Notable Question Notable Question Nice Answer Yearling Caucus Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Yearling Popular Question Popular Question Census Popular Question Good Question Inquisitive Yearling,NULL,How to check if Apple Maps is installed ios mapkit ios10 pAnyone aware how to check whether Apple Maps is installed or not could not find anything in the docs ppWith iOS10 users can delete the Apple Maps application While for Google Maps we can use codeUIApplication shared canOpenURL code to check if it installed am not aware of such thing exists to check for Apple Maps ppOf course one can check if opening codeMKMapItem code with codemapItem openInMaps code fails but that does not help for checking in advance canOpenUrl http maps apple com also returns true if the Maps app is not installed How to check if Apple Maps is installed ios mapkit ios10 pAnyone aware how to check whether Apple Maps is installed or not could not find anything in the docs ppWith iOS10 users can delete the Apple Maps application While for Google Maps we can use codeUIApplication shared canOpenURL code to check if it installed am not aware of such thing exists to check for Apple Maps ppOf course one can check if opening codeMKMapItem code with codemapItem openInMaps code fails but that does not help for checking in advance MapKit fails to open the location in case the app is deleted Be that real deleted or not actually deleted How to check if Apple Maps is installed ios mapkit ios10 pAnyone aware how to check whether Apple Maps is installed or not could not find anything in the docs ppWith iOS10 users can delete the Apple Maps application While for Google Maps we can use codeUIApplication shared canOpenURL code to check if it installed am not aware of such thing exists to check for Apple Maps ppOf course one can check if opening codeMKMapItem code with codemapItem openInMaps code fails but that does not help for checking in advance exactly but that why the real or not actually deleted does not matter here,1,How to check if Apple Maps is installed ios mapkit ios10 pAnyone aware how to check whether Apple Maps is installed or not could not find anything in the docs ppWith iOS10 users can delete the Apple Maps application While for Google Maps we can use codeUIApplication shared canOpenURL code to check if it installed am not aware of such thing exists to check for Apple Maps ppOf course one can check if opening codeMKMapItem code with codemapItem openInMaps code fails but that does not help for checking in advance,NULL 74436,24065,408951,Yearling Caucus Census Caucus Yearling Documentation User Census Caucus Yearling Explainer Custodian Custodian Custodian Tenacious,NULL,NULL,0,NULL,NULL 74437,317425,600942,Scholar Supporter,NULL,NULL,0,NULL,NULL 74438,1017669,1065124,NULL,NULL,NULL,0,NULL,NULL 74439,52762,20486,NULL,NULL,NULL,0,NULL,NULL 74440,516518,652209,NULL,NULL,NULL,0,NULL,NULL 74441,219350,406323,Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Good Answer Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74442,562325,618487,Supporter,NULL,NULL,0,NULL,NULL 74443,1499203,732965,NULL,NULL,NULL,0,NULL,NULL 74444,141800,196399,Yearling Great Question,NULL,NULL,0,NULL,NULL 74445,63609,474513,NULL,NULL,NULL,0,NULL,NULL 74446,1120956,636826,NULL,NULL,NULL,0,NULL,NULL 74447,2276241,423489,NULL,NULL,NULL,0,NULL,NULL 74448,854931,862181,NULL,NULL,NULL,0,NULL,NULL 74449,337755,257239,Student,NULL,NULL,0,NULL,NULL 74450,376007,975053,NULL,NULL,NULL,0,NULL,NULL 74451,21173,121873,NULL,NULL,NULL,0,NULL,NULL 74452,20181,421393,Popular Question,NULL,NULL,0,NULL,NULL 74453,1513351,1028071,NULL,NULL,NULL,0,NULL,NULL 74454,169185,19528,NULL,NULL,NULL,0,NULL,NULL 74455,191123,1429538,NULL,NULL,NULL,0,NULL,NULL 74456,1350907,968956,NULL,NULL,NULL,0,NULL,NULL 74457,232647,368481,NULL,NULL,NULL,0,NULL,NULL 74458,113298,786746,NULL,NULL,NULL,0,NULL,NULL 74459,278712,656652,Popular Question Notable Question Nice Question Famous Question Civic Duty Yearling Good Question Popular Question Caucus Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74460,405236,433580,Popular Question,NULL,pThis seem to be regression on macOS Sierra solution that worked for me has been mentioned by href https github com joshuamcginnis Josh McGinnis href https github com tmux tmux issues 543 https github com tmux tmux issues 543 pp codebrew install reattach to user namespace code ppEnsure the following is set in tmux conf ppre codeset default shell SHELL set default command reattach to user namespace SHELL code prepIn vimrc or config nvim init vim for Neovim ppre codeset clipboard unnamed code prepNow all is well and can copy paste between system lt vim sessions using vim keybindings and or system ctrl ctrl set clipboard unnamed worked for me Thanks not even using tmux,0,NULL,NULL 74461,123434,74772,Nice Answer Popular Question Yearling Nice Answer Notable Question Nice Answer Notable Question Good Answer Good Answer Good Answer Yearling Good Answer Announcer Notable Question Good Question Nice Answer Famous Question Yearling Guru Stellar Question Notable Question Guru Famous Question,NULL,NULL,0,NULL,NULL 74462,33225,714357,Great Question Yearling Yearling Announcer Yearling,NULL,,0,, 74463,203929,580951,Nice Answer Yearling Great Answer Nice Answer Good Answer Nice Question Nice Question linq Notable Question Booster Revival Nice Answer Enlightened Yearling Nice Answer Popular Question Good Answer Famous Question Good Answer c# Strunk & White Nice Answer Announcer Guru Good Answer Yearling Popular Question Nice Answer Caucus Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Famous Question Nice Answer Nice Answer Enlightened list Popular Question Nice Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 74464,839476,821013,NULL,NULL,NULL,0,NULL,NULL 74465,65543,160356,Notable Question Nice Question Popular Question Popular Question Good Question Popular Question Yearling Popular Question Nice Question Notable Question Notable Question Famous Question Notable Question Popular Question Famous Question Nice Question Popular Question Self-Learner Popular Question Yearling Good Question Nice Question Popular Question Popular Question Nice Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74466,11268,1200284,NULL,NULL,NULL,0,NULL,NULL 74467,878846,370084,NULL,NULL,NULL,0,NULL,NULL 74468,191134,753065,NULL,NULL,NULL,0,NULL,NULL 74469,20613,293215,Yearling Custodian Excavator Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 74470,147141,873110,NULL,NULL,NULL,0,NULL,NULL 74471,366714,438550,Popular Question,NULL,NULL,0,NULL,NULL 74472,895389,846545,Curious,NULL,NULL,0,NULL,NULL 74473,615442,549354,Nice Question,NULL,NULL,0,NULL,NULL 74474,331292,929583,NULL,NULL,NULL,0,NULL,NULL 74475,5840,237354,NULL,NULL,NULL,0,NULL,NULL 74476,87346,23308,Civic Duty Yearling Revival,NULL,NULL,0,NULL,NULL 74477,440094,938718,NULL,NULL,NULL,0,NULL,NULL 74478,740398,874577,Popular Question,NULL,NULL,0,NULL,NULL 74479,102841,174642,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 74480,601365,1164682,Necromancer,NULL,NULL,0,NULL,NULL 74481,257678,1164682,Necromancer,NULL,NULL,0,NULL,NULL 74482,2781352,1365458,NULL,NULL,NULL,0,NULL,NULL 74483,429400,242101,Yearling Necromancer,NULL,NULL,0,NULL,NULL 74484,7813886,1094962,Necromancer Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 74485,80011,1094962,Necromancer Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 74486,1099871,1231939,NULL,NULL,NULL,0,NULL,NULL 74487,115815,257476,Notable Question Popular Question Self-Learner Critic,NULL,NULL,0,NULL,NULL 74488,903617,1108866,Critic Student Editor Organizer Yearling,NULL,NULL,0,NULL,NULL 74489,645433,855741,NULL,NULL,NULL,0,NULL,NULL 74490,335922,1322806,NULL,NULL,NULL,0,NULL,NULL 74491,1508358,577061,Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74492,429564,423257,NULL,NULL,NULL,0,NULL,NULL 74493,39668,1411429,NULL,NULL,NULL,0,NULL,NULL 74494,313613,1216009,Popular Question Teacher,NULL,NULL,0,NULL,NULL 74495,1563,26342,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74496,577509,677650,NULL,NULL,NULL,0,NULL,NULL 74497,703663,1543662,NULL,NULL,NULL,0,NULL,NULL 74498,853027,235308,Guru Popular Question Nice Answer php Yearling Notable Question Great Answer Necromancer Yearling Popular Question Good Answer Great Answer,NULL,NULL,0,NULL,NULL 74499,218086,856144,Informed Tumbleweed Autobiographer Citizen Patrol Critic,NULL,NULL,0,NULL,NULL 74500,2143994,428823,Caucus Informed Caucus,NULL,NULL,0,NULL,NULL 74501,202637,1290530,Yearling Nice Answer Enlightened Great Answer Citizen Patrol Custodian Custodian Revival Revival Revival Custodian Yearling Caucus Documentation User Revival Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 74502,719552,354482,NULL,NULL,NULL,0,NULL,NULL 74503,131558,239247,Notable Question Popular Question Guru Nice Answer Nice Question Custodian Notable Question Nice Answer Revival Necromancer Popular Question Inquisitive Notable Question Good Answer Necromancer Cleanup Strunk & White Necromancer Reviewer Good Answer Caucus Announcer Constituent Notable Question Yearling Necromancer Good Answer Census Popular Question Good Question Popular Question Custodian Necromancer Necromancer Necromancer Popular Question Necromancer python Good Answer Popular Question Popular Question Necromancer Famous Question Popular Question Famous Question Nice Answer Necromancer Caucus Necromancer Good Answer Popular Question Nice Answer Necromancer Popular Question Documentation User Nice Answer Announcer Popular Question Popular Question Yearling Announcer Necromancer Great Answer Popular Question Popular Question Necromancer Notable Question Necromancer Necromancer Nice Answer Populist Good Answer Necromancer Announcer Nice Answer Notable Question Popular Question Popular Question Nice Answer Good Answer Announcer Nice Answer Nice Answer Popular Question Popular Question,NULL,Is it possible to add PyQt4 PySide packages on Virtualenv sandbox python pyqt4 virtualenv pyside pI using href http pypi python org pypi virtualenv rel noreferrer Virtualenv with profit on my development environment with codeweb py code codesimplejson code and other web oriented packages brI going to develop simple python client using Qt to reuse some Api developed with web py ppDoes anybody here had succesfully installed PyQt4 with Virtualenv brIs it possible ppI ve downloaded all the binaries and have codePyQt4 code installed globally on my python2 directory brIf don use code no site packages code option Virtualenv correctly includes codePyQt4 code in my new sandbox but obviously with all the global packages that don need ppIs there clean way to prepare new sandbox with code no site packages code option and then add codePyQt4 code or codePySide code using codepip code codeeasy install code or some other magic trick For PySide just use pip install pyside without any magic tricks Tested on pIf you don know the encoding then to read binary input into string in Python and Python compatible way use ancient MS DOS href https en wikipedia org wiki Code page 437 rel noreferrer cp437 encoding ppre codePY3K sys version info gt lines for line in stream if not PY3K lines append line else lines append line decode cp437 code prepBecause encoding is unknown expect non English symbols to translate to characters of codecp437 code English chars are not translated because they match in most single byte encodings and UTF ppDecoding arbitrary binary input to UTF is unsafe because you may get this ppre code gt gt gt x00 x01 xffsd decode utf Traceback most recent call last File lt stdin gt line in lt module gt UnicodeDecodeError utf codec can decode byte 0xff in position invalidstart byte code prepThe same applies to codelatin code which was popular default for Python See the missing points in href https en wikipedia org wiki ISO IEC 8859 Codepage layout rel noreferrer Codepage Layout it is where Python chokes with infamous codeordinal not in range code pp strongUPDATE 20150604 strong There are rumors that Python has codesurrogateescape code error strategy for encoding stuff into binary data without data loss and crashes but it needs conversion tests code binary gt str gt binary code to validate both performance and reliability pp strongUPDATE 20170116 strong Thanks to comment by Nearoo there is also possibility to slash escape all unknown bytes with codebackslashreplace code error handler That works only for Python so even with this workaround you will still get inconsistent output from different Python versions ppre codePY3K sys version info gt lines for line in stream if not PY3K lines append line else lines append line decode utf backslashreplace code prepSee href https docs python org howto unicode html python unicode support rel noreferrer https docs python org howto unicode html python unicode support for details pp strongUPDATE 20170119 strong decided to implement slash escaping decode that works for both Python and Python It should be slower that codecp437 code solution but it should produce strongidentical results strong on every Python version ppre code preparationimport codecsdef slashescape err codecs error handler err is UnicodeDecode instance return tuple with replacement for the unencodable part of the input and position where encoding should continue print err dir err err start err end err object err start thebyte err object err start err end repl hex ord thebyte return repl err end codecs register error slashescape slashescape processingstream x80abc lines for line in stream lines append line decode utf slashescape code pre updated the answer Unfortunately it doesn work with Python see https stackoverflow com questions 25442954 how should decode bytes using ascii without losing any junk bytes if xmlch Access overridden field in constructor without templates python inheritance override pI can access field overridden in child class from parent constructor and can not use templates because upstream project doesn use them ppThis is working Python prototype that try to reimplement in The code contains two driver classes one child and one parent and parent prints codename code of the class during initialization ppre codeclass Driver object name Unknown def init self print self name class SpecificDriver Driver name Specific def init self super SpecificDriver self init Driver SpecificDriver code prepThis prints two strings to console ppre codeUnknownSpecific code prepLooks like in can access overridden codename code because the codename code doesn exist at this point href https stackoverflow com questions 36807653 call child method from parent constructor Call child method from parent constructor So maybe there is another way to get driver codename code printed on initialization pp strongUPDATE 2018 strong The original title for this question was Print overridden child field during initialization in without templates and it was closed as too broad πάνταῥεῖ does that requires using templates In the codebase am patching don see them and it doesn look simple at all Access overridden field in constructor without templates python inheritance override pI can access field overridden in child class from parent constructor and can not use templates because upstream project doesn use them ppThis is working Python prototype that try to reimplement in The code contains two driver classes one child and one parent and parent prints codename code of the class during initialization ppre codeclass Driver object name Unknown def init self print self name class SpecificDriver Driver name Specific def init self super SpecificDriver self init Driver SpecificDriver code prepThis prints two strings to console ppre codeUnknownSpecific code prepLooks like in can access overridden codename code because the codename code doesn exist at this point href https stackoverflow com questions 36807653 call child method from parent constructor Call child method from parent constructor So maybe there is another way to get driver codename code printed on initialization pp strongUPDATE 2018 strong The original title for this question was Print overridden child field during initialization in without templates and it was closed as too broad πάνταῥεῖ am trying to patch this project for debugging and the code doesn use templates https github com godotengine godot pull 4352 Access overridden field in constructor without templates python inheritance override pI can access field overridden in child class from parent constructor and can not use templates because upstream project doesn use them ppThis is working Python prototype that try to reimplement in The code contains two driver classes one child and one parent and parent prints codename code of the class during initialization ppre codeclass Driver object name Unknown def init self print self name class SpecificDriver Driver name Specific def init self super SpecificDriver self init Driver SpecificDriver code prepThis prints two strings to console ppre codeUnknownSpecific code prepLooks like in can access overridden codename code because the codename code doesn exist at this point href https stackoverflow com questions 36807653 call child method from parent constructor Call child method from parent constructor So maybe there is another way to get driver codename code printed on initialization pp strongUPDATE 2018 strong The original title for this question was Print overridden child field during initialization in without templates and it was closed as too broad no solution in PR works tests do not pass or the string printed is wrong Access overridden field in constructor without templates python inheritance override pI can access field overridden in child class from parent constructor and can not use templates because upstream project doesn use them ppThis is working Python prototype that try to reimplement in The code contains two driver classes one child and one parent and parent prints codename code of the class during initialization ppre codeclass Driver object name Unknown def init self print self name class SpecificDriver Driver name Specific def init self super SpecificDriver self init Driver SpecificDriver code prepThis prints two strings to console ppre codeUnknownSpecific code prepLooks like in can access overridden codename code because the codename code doesn exist at this point href https stackoverflow com questions 36807653 call child method from parent constructor Call child method from parent constructor So maybe there is another way to get driver codename code printed on initialization pp strongUPDATE 2018 strong The original title for this question was Print overridden child field during initialization in without templates and it was closed as too broad πάνταῥεῖ if CRTP templates is the only way to do this in constructor then can accept this as an answer that it is impossible to do this in without templates can access child property from parent inheritance pCan anybody explain why codeDriver code codeinit code method is unable to print codename code property overridden in child ppre code include lt iostream gt include lt string gt class Driver public std string name Unknown void init std cout lt lt name lt lt std endl need public here to inherit init class SpecificDriver public Driver public std string name Specific int main Driver SpecificDriver sd this gives Unknown Unknown init sd init code prepThis gives ppre codeUnknownUnknown code prepAnd should be ppre codeUnknownSpecific code prep href http coliru stacked crooked com ae5380798d9a4731 rel nofollow kbdLive Demo kbd need to value of property to be different the name of driver is only needed to be output in debug mode and all debug code is in parent init can access child property from parent inheritance pCan anybody explain why codeDriver code codeinit code method is unable to print codename code property overridden in child ppre code include lt iostream gt include lt string gt class Driver public std string name Unknown void init std cout lt lt name lt lt std endl need public here to inherit init class SpecificDriver public Driver public std string name Specific int main Driver SpecificDriver sd this gives Unknown Unknown init sd init code prepThis gives ppre codeUnknownUnknown code prepAnd should be ppre codeUnknownSpecific code prep href http coliru stacked crooked com ae5380798d9a4731 rel nofollow kbdLive Demo kbd and readability is important too still not able to read understand the code with initializers reading tutorial right now,1,Access overridden field in constructor without templates python inheritance override pI can access field overridden in child class from parent constructor and can not use templates because upstream project doesn use them ppThis is working Python prototype that try to reimplement in The code contains two driver classes one child and one parent and parent prints codename code of the class during initialization ppre codeclass Driver object name Unknown def init self print self name class SpecificDriver Driver name Specific def init self super SpecificDriver self init Driver SpecificDriver code prepThis prints two strings to console ppre codeUnknownSpecific code prepLooks like in can access overridden codename code because the codename code doesn exist at this point href https stackoverflow com questions 36807653 call child method from parent constructor Call child method from parent constructor So maybe there is another way to get driver codename code printed on initialization pp strongUPDATE 2018 strong The original title for this question was Print overridden child field during initialization in without templates and it was closed as too broad can access child property from parent inheritance pCan anybody explain why codeDriver code codeinit code method is unable to print codename code property overridden in child ppre code include lt iostream gt include lt string gt class Driver public std string name Unknown void init std cout lt lt name lt lt std endl need public here to inherit init class SpecificDriver public Driver public std string name Specific int main Driver SpecificDriver sd this gives Unknown Unknown init sd init code prepThis gives ppre codeUnknownUnknown code prepAnd should be ppre codeUnknownSpecific code prep href http coliru stacked crooked com ae5380798d9a4731 rel nofollow kbdLive Demo kbd,Reading binary data from stdin python python pIs it possible to read stdin as binary data in Python If so how ppI see in the href http docs python org py3k library sys html rel nofollow noreferrer Python documentation that this is fairly simple but the facilities for doing this in don seem to be there ppIf the methods described in aren available is there way to close stdin and reopen in in binary mode pp strongUpdate strong ppJust to be clear am using type in MS DOS shell to pipe the contents of binary file to my python code This should be the equivalent of Unix cat command as far as understand But when test this out always get one byte less than the expected file size pp strongUpdate strong ppFirst off thanks for all the answers slowly working towards real usable solution here In the end still trying to build self contained JAR file that executes my Python code automatically passing through all the command line arguments untainted ppThe reason going the Java JAR Jython route is because one of my main external libraries is only available as Java JAR But unfortunately had started my work as Python It might have been easier to convert my code over to Java while ago but since this stuff was all supposed to be compatible figured would try trucking through it and prove it could be done ppIn case anyone was wondering this is also related to the question asked few days ago pp href https stackoverflow com questions 2827771 packaging and deploying jython program from eclipse Packaging and deploying Jython program from Eclipse ppSome of that question was answered in this href https stackoverflow com questions 1252965 distributing my python scripts as jars with jython question ppSo ll try to update my original question with some notes on what have figured out so far pHere is the final cut for Linux Windows Python compatible code to read data from stdin without corruption ppre codeimport sysPY3K sys version info gt if PY3K source sys stdin bufferelse Python on Windows opens sys stdin in text mode and binary data that read from it becomes corrupted on if sys platform win32 set sys stdin to binary mode import os msvcrt msvcrt setmode sys stdin fileno os BINARY source sys stdinb source read code pre 74504,1567106,1351508,NULL,NULL,NULL,0,NULL,NULL 74505,113895,248647,Yearling Favorite Question,NULL,NULL,0,NULL,NULL 74506,174366,1060013,NULL,NULL,NULL,0,NULL,NULL 74507,366550,795767,NULL,NULL,NULL,0,NULL,NULL 74508,1518511,1049441,NULL,NULL,NULL,0,NULL,NULL 74509,742244,586583,Critic,NULL,NULL,0,NULL,NULL 74510,49244,200571,NULL,NULL,NULL,0,NULL,NULL 74511,703618,366686,NULL,NULL,NULL,0,NULL,NULL 74512,273068,1464922,Curious,NULL,NULL,0,NULL,NULL 74513,1822385,75182,Yearling Custodian Necromancer Nice Answer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74514,70749,75182,Yearling Custodian Necromancer Nice Answer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74515,419065,1502700,NULL,NULL,NULL,0,NULL,NULL 74516,277855,69326,Necromancer Good Answer Yearling Revival Revival Nice Answer Necromancer Necromancer Guru Yearling Nice Answer Revival Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 74517,179544,390993,NULL,NULL,NULL,0,NULL,NULL 74518,25140,241677,Notable Question Notable Question Notable Question Popular Question Nice Answer Notable Question Popular Question Nice Question Popular Question Nice Question Yearling Notable Question Popular Question Nice Question Necromancer Famous Question Announcer Yearling Good Answer Necromancer Popular Question Good Question Inquisitive Nice Question,NULL,NULL,0,NULL,NULL 74519,265503,1236226,NULL,NULL,NULL,0,NULL,NULL 74520,431841,880850,NULL,NULL,NULL,0,NULL,NULL 74521,566375,1303769,NULL,NULL,NULL,0,NULL,NULL 74522,36671,333795,Revival,NULL,NULL,0,NULL,NULL 74523,506851,1489775,NULL,NULL,NULL,0,NULL,NULL 74524,78039,417764,NULL,NULL,NULL,0,NULL,NULL 74525,438782,604982,Editor Excavator,NULL,NULL,0,NULL,NULL 74526,294131,42633,NULL,NULL,NULL,0,NULL,NULL 74527,431095,1335365,NULL,NULL,NULL,0,NULL,NULL 74528,45991,1399781,NULL,NULL,NULL,0,NULL,NULL 74529,241272,1238727,NULL,NULL,NULL,0,NULL,NULL 74530,294106,822025,NULL,NULL,NULL,0,NULL,NULL 74531,82585,1048545,NULL,NULL,NULL,0,NULL,NULL 74532,162858,246743,Yearling Necromancer Popular Question Popular Question Guru Announcer Great Answer Nice Question Notable Question Yearling Announcer Yearling Good Question Famous Question Good Answer Great Answer,NULL,NULL,0,NULL,NULL 74533,2720592,712967,NULL,NULL,NULL,0,NULL,NULL 74534,90046,1524154,NULL,NULL,NULL,0,NULL,NULL 74535,459186,1087871,NULL,NULL,NULL,0,NULL,NULL 74536,58015,152339,NULL,NULL,NULL,0,NULL,NULL 74537,591419,544429,Notable Question Scholar,NULL,NULL,0,NULL,NULL 74538,336000,313299,Notable Question Nice Question Famous Question Nice Question Famous Question Famous Question Famous Question Nice Answer Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 74539,10969,386020,Notable Question Yearling Famous Question Benefactor Popular Question,NULL,NULL,0,NULL,NULL 74540,1259724,464937,Inquisitive Notable Question Great Answer Custodian Custodian Excavator Famous Question Suffrage Notable Question Yearling Great Question Caucus Popular Question Popular Question Popular Question Good Question Popular Question Nice Answer Notable Question Famous Question Yearling Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 74541,351883,439543,NULL,NULL,NULL,0,NULL,NULL 74542,622052,1424117,Yearling,NULL,NULL,0,NULL,NULL 74543,246594,955915,NULL,NULL,NULL,0,NULL,NULL 74544,196371,899105,NULL,NULL,NULL,0,NULL,NULL 74545,323341,313607,NULL,NULL,NULL,0,NULL,NULL 74546,3984121,212774,Commentator Informed,NULL,NULL,0,NULL,NULL 74547,137791,212774,Commentator Informed,NULL,NULL,0,NULL,NULL 74548,18599,627197,Nice Answer,NULL,NULL,0,NULL,NULL 74549,483752,1145738,NULL,NULL,NULL,0,NULL,NULL 74550,103873,134583,Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 74551,423846,547042,Editor Tumbleweed,NULL,NULL,0,NULL,NULL 74552,1188253,623581,Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Good Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 74553,262047,138069,Critic Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 74554,1321505,1185152,Teacher Supporter Nice Answer Enlightened Yearling Yearling Critic Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 74555,323657,77339,NULL,NULL,NULL,0,NULL,NULL 74556,238652,273704,Yearling Revival,NULL,NULL,0,NULL,NULL 74557,395111,907534,Popular Question,NULL,NULL,0,NULL,NULL 74558,13488,965602,NULL,NULL,NULL,0,NULL,NULL 74559,231647,17949,Custodian c++ Yearling Necromancer Nice Question Yearling Necromancer Documentation User Census Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 74560,307728,201880,NULL,NULL,NULL,0,NULL,NULL 74561,63691,456838,Tumbleweed Enthusiast,NULL,NULL,0,NULL,NULL 74562,828003,876080,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74563,18463,969597,Popular Question Proofreader Notable Question Yearling Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 74564,629753,106288,Yearling Nice Answer Enlightened Famous Question Guru Yearling Nice Answer Nice Answer Enlightened Good Answer Yearling Famous Question swift,NULL,NULL,0,NULL,NULL 74565,759460,351716,Yearling Caucus Constituent Yearling Nice Answer Necromancer Caucus Custodian Yearling Necromancer,NULL,NULL,0,NULL,NULL 74566,295308,797074,Custodian Yearling Nice Answer Yearling Scholar Student,NULL,NULL,0,NULL,NULL 74567,212863,976199,NULL,NULL,NULL,0,NULL,NULL 74568,119705,41803,Notable Question Famous Question Famous Question Nice Question Yearling Popular Question Good Question Nice Question Popular Question Great Question Yearling Custodian Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 74569,602766,720417,NULL,NULL,NULL,0,NULL,NULL 74570,174539,10541,Critic,NULL,NULL,0,NULL,NULL 74571,82812,495679,Necromancer Nice Answer Notable Question Necromancer Electorate Good Answer Yearling Revival Notable Question Nice Question Nice Answer Notable Question Yearling python Informed Great Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 74572,2687627,19419,Caucus,NULL,NULL,0,NULL,NULL 74573,175620,1267290,NULL,NULL,NULL,0,NULL,NULL 74574,508441,1492826,Teacher Editor Documentation Pioneer Yearling Yearling Yearling Yearling Supporter Tumbleweed Critic Enthusiast Documentation User,NULL,NULL,0,NULL,NULL 74575,433678,256344,NULL,NULL,NULL,0,NULL,NULL 74576,122645,832965,NULL,NULL,NULL,0,NULL,NULL 74577,259803,1283573,NULL,NULL,NULL,0,NULL,NULL 74578,30119,413672,Autobiographer Informed Commentator Editor Critic Yearling Enthusiast Caucus Yearling Self-Learner Nice Answer,NULL,NULL,0,NULL,NULL 74579,440465,993374,Supporter,NULL,NULL,0,NULL,NULL 74580,582075,374153,NULL,NULL,NULL,0,NULL,NULL 74581,3645703,374153,NULL,NULL,NULL,0,NULL,NULL 74582,1314782,1337574,NULL,NULL,NULL,0,NULL,NULL 74583,142109,77438,Nice Answer Notable Question Notable Question Yearling Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74584,202007,471737,NULL,NULL,NULL,0,NULL,NULL 74585,937091,715474,Nice Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74586,299061,715474,Nice Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74587,869894,194325,Famous Question,NULL,NULL,0,NULL,NULL 74588,222008,109890,Supporter Scholar,NULL,NULL,0,NULL,NULL 74589,828655,1124880,NULL,NULL,NULL,0,NULL,NULL 74590,166414,255051,Yearling Nice Answer Yearling Good Answer Citizen Patrol Custodian Announcer Yearling,NULL,NULL,0,NULL,NULL 74591,384109,837948,NULL,NULL,NULL,0,NULL,NULL 74592,124282,1191180,NULL,NULL,NULL,0,NULL,NULL 74593,2859038,1191180,NULL,NULL,NULL,0,NULL,NULL 74594,149719,333565,NULL,NULL,NULL,0,NULL,NULL 74595,2734201,1497565,Necromancer Custodian Citizen Patrol Yearling Popular Question Revival Civic Duty Necromancer Caucus Constituent Revival Good Answer Necromancer Popular Question Guru Yearling Caucus Necromancer Nice Answer Notable Question Caucus Nice Answer Necromancer Necromancer Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 74596,20568,112222,Nice Question Popular Question Famous Question Nice Answer Enlightened Yearling Famous Question Stellar Question Popular Question Good Question Famous Question Good Answer Yearling Nice Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74597,74614,295607,NULL,NULL,NULL,0,NULL,NULL 74598,477767,791230,Good Question Yearling Nice Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 74599,202998,1166892,Popular Question,NULL,NULL,0,NULL,NULL 74600,1491366,1103049,NULL,NULL,NULL,0,NULL,NULL 74601,195352,1103049,NULL,NULL,NULL,0,NULL,NULL 74602,2527983,1134801,Editor Supporter,NULL,NULL,0,NULL,NULL 74603,1089020,570696,NULL,NULL,NULL,0,NULL,NULL 74604,87571,116858,Popular Question Notable Question Nice Question Yearling Notable Question Notable Question Popular Question Good Question Notable Question Popular Question Popular Question Yearling Nice Question Caucus Popular Question Popular Question Nice Question Custodian Popular Question Custodian Yearling Famous Question,NULL,NULL,0,NULL,NULL 74605,172680,1109265,NULL,NULL,NULL,0,NULL,NULL 74606,18984,645251,Yearling Notable Question Notable Question Yearling Notable Question Stellar Question Yearling Promoter Curious Necromancer Nice Question,NULL,xcode select active developer directory error xcode macos npm npm install command line tool pSaw the following error when running an codenpm install code which required codenode gyp code but could be triggered by anything which requires codexcode select code pblockquote pxcode select error tool xcodebuild requires Xcode but active developer directory Library Developer CommandLineTools is command line tools instance blockquotepWhat is the problem Works for Mavericks too xcode select active developer directory error xcode macos npm npm install command line tool pSaw the following error when running an codenpm install code which required codenode gyp code but could be triggered by anything which requires codexcode select code pblockquote pxcode select error tool xcodebuild requires Xcode but active developer directory Library Developer CommandLineTools is command line tools instance blockquotepWhat is the problem Works for Sierra too xcode select active developer directory error xcode macos npm npm install command line tool pSaw the following error when running an codenpm install code which required codenode gyp code but could be triggered by anything which requires codexcode select code pblockquote pxcode select error tool xcodebuild requires Xcode but active developer directory Library Developer CommandLineTools is command line tools instance blockquotepWhat is the problem Works for High Sierra too href https nodejs org docs latest api buffer html buffer buffers and typedarray rel noreferrer Instances of codeBuffer code are also instances of codeUint8Array code in node js and higher Thus the most efficient solution is to access the codebuf buffer code property directly as per href https stackoverflow com 31394257 1375574 https stackoverflow com 31394257 1375574 The Buffer constructor also takes an ArrayBufferView argument if you need to go the other direction ppNote that this will not create copy which means that writes to any ArrayBufferView will write through to the original Buffer instance pp hrIn older versions node js has both ArrayBuffer as part of v8 but the Buffer class provides more flexible API In order to read or write to an ArrayBuffer you only need to create view and copy across ppFrom Buffer to ArrayBuffer ppre codefunction toArrayBuffer buf var ab new ArrayBuffer buf length var view new Uint8Array ab for var lt buf length view buf return ab code prepFrom ArrayBuffer to Buffer ppre codefunction toBuffer ab var buf new Buffer ab byteLength var view new Uint8Array ab for var lt buf length buf view return buf code pre TypedArrays have buffer property which is an ArrayBuffer so there is no need to iterate through each index,0,NULL,NULL 74607,513560,867365,Popular Question Good Answer Notable Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 74608,1328654,38136,NULL,NULL,NULL,0,NULL,NULL 74609,72195,671553,Yearling,NULL,NULL,0,NULL,NULL 74610,1569,243559,Yearling Good Answer Good Answer Yearling Good Answer Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 74611,141393,483812,NULL,NULL,NULL,0,NULL,NULL 74612,510056,1529003,Autobiographer Caucus Constituent Citizen Patrol Suffrage Caucus Constituent Vox Populi Civic Duty Documentation User Custodian Caucus Constituent Yearling Necromancer,NULL,NULL,0,NULL,NULL 74613,1375192,180370,NULL,NULL,NULL,0,NULL,NULL 74614,116247,870207,Necromancer Necromancer Yearling Nice Answer Necromancer Necromancer Good Answer Yearling Tumbleweed Nice Answer Good Answer Necromancer Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 74615,167925,1301775,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74616,905472,1360267,Teacher Supporter Informed Necromancer,NULL,NULL,0,NULL,NULL 74617,7878,83656,NULL,NULL,NULL,0,NULL,NULL 74618,146544,403029,NULL,NULL,NULL,0,NULL,NULL 74619,349925,246624,Yearling Good Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74620,61057,26702,Good Answer Populist Informed Guru Nice Answer Enlightened Good Answer Good Answer Talkative Documentation Pioneer Yearling Caucus Good Question Custodian Good Answer Announcer Nice Answer Famous Question Documentation User Yearling Famous Question Good Answer Populist Nice Answer Nice Question Caucus Good Answer Favorite Question Yearling,NULL,NULL,0,NULL,NULL 74621,285496,1272621,Teacher,NULL,NULL,0,NULL,NULL 74622,1349527,388832,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74623,49660,1381613,NULL,NULL,NULL,0,NULL,NULL 74624,185954,735912,Nice Answer Yearling Custodian Civic Duty Informed Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74625,166379,427184,Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74626,244041,659247,Good Question,NULL,NULL,0,NULL,NULL 74627,645014,1526238,Editor Student Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 74628,52440,1370716,NULL,NULL,NULL,0,NULL,NULL 74629,475084,1525480,Yearling Good Answer,NULL,NULL,0,NULL,NULL 74630,105139,427579,Popular Question,NULL,NULL,0,NULL,NULL 74631,5953836,49470,NULL,NULL,NULL,0,NULL,NULL 74632,51964,743387,Yearling Good Answer Caucus Custodian Guru Yearling Caucus Constituent Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 74633,179892,753786,Notable Question Yearling Great Question Popular Question Yearling Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Custodian Custodian Stellar Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 74634,230108,807265,NULL,NULL,NULL,0,NULL,NULL 74635,312613,1385146,NULL,NULL,NULL,0,NULL,NULL 74636,35032,73957,Yearling Custodian Organizer Nice Answer Famous Question Electorate Explainer Nice Answer Yearling Informed Vox Populi Proofreader Custodian Revival python Nice Answer Yearling Revival Caucus eventlet Custodian Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74637,9102,872093,NULL,NULL,NULL,0,NULL,NULL 74638,23925,43615,Cleanup Announcer Revival Nice Answer Popular Question Taxonomist Yearling Popular Question Notable Question Nice Answer Nice Question Good Answer Popular Question Popular Question Announcer Popular Question Announcer Announcer Popular Question Strunk & White Necromancer Popular Question Documentation User Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Announcer Popular Question Announcer Popular Question Notable Question Popular Question Custodian,NULL,pHere some code that use it based on the Growl source ppre code BOOL willStartAtLogin NSURL itemURL Boolean foundIt false LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr foundIt CFEqual URL itemURL CFRelease URL if foundIt break CFRelease loginItems return BOOL foundIt void setStartAtLogin NSURL itemURL enabled BOOL enabled OSStatus status LSSharedFileListItemRef existingItem NULL LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr Boolean foundIt CFEqual URL itemURL CFRelease URL if foundIt existingItem item break if enabled amp amp existingItem NULL LSSharedFileListInsertItemURL loginItems kLSSharedFileListItemBeforeFirst NULL NULL CFURLRef itemURL NULL NULL else if enabled amp amp existingItem NULL LSSharedFileListItemRemove loginItems existingItem CFRelease loginItems code prepIf you want an easy to implement checkbox make code BOOL startAtLogin code in one of your classes and implement it as follows Just bind the checkbox value to the property and it should all work seamlessly ppre code NSURL appURL return NSURL fileURLWithPath NSBundle mainBundle bundlePath BOOL startAtLogin return LoginItem willStartAtLogin self appURL void setStartAtLogin BOOL enabled self willChangeValueForKey startAtLogin LoginItem setStartAtLogin self appURL enabled enabled self didChangeValueForKey startAtLogin code pre This example like most similar in existence does not deal with the case where the app got deleted and then re installed in another place after having been added to the Login Items because it will then add another entry without removing the dead one To do this right before adding new one one should first look at all entries and remove any whose names start with the app name pHere some code that use it based on the Growl source ppre code BOOL willStartAtLogin NSURL itemURL Boolean foundIt false LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr foundIt CFEqual URL itemURL CFRelease URL if foundIt break CFRelease loginItems return BOOL foundIt void setStartAtLogin NSURL itemURL enabled BOOL enabled OSStatus status LSSharedFileListItemRef existingItem NULL LSSharedFileListRef loginItems LSSharedFileListCreate NULL kLSSharedFileListSessionLoginItems NULL if loginItems UInt32 seed 0U NSArray currentLoginItems NSMakeCollectable LSSharedFileListCopySnapshot loginItems amp seed autorelease for id itemObject in currentLoginItems LSSharedFileListItemRef item LSSharedFileListItemRef itemObject UInt32 resolutionFlags kLSSharedFileListNoUserInteraction kLSSharedFileListDoNotMountVolumes CFURLRef URL NULL OSStatus err LSSharedFileListItemResolve item resolutionFlags amp URL outRef NULL if err noErr Boolean foundIt CFEqual URL itemURL CFRelease URL if foundIt existingItem item break if enabled amp amp existingItem NULL LSSharedFileListInsertItemURL loginItems kLSSharedFileListItemBeforeFirst NULL NULL CFURLRef itemURL NULL NULL else if enabled amp amp existingItem NULL LSSharedFileListItemRemove loginItems existingItem CFRelease loginItems code prepIf you want an easy to implement checkbox make code BOOL startAtLogin code in one of your classes and implement it as follows Just bind the checkbox value to the property and it should all work seamlessly ppre code NSURL appURL return NSURL fileURLWithPath NSBundle mainBundle bundlePath BOOL startAtLogin return LoginItem willStartAtLogin self appURL void setStartAtLogin BOOL enabled self willChangeValueForKey startAtLogin LoginItem setStartAtLogin self appURL enabled enabled self didChangeValueForKey startAtLogin code pre Nick looking for the exact name is not good because even if you only unzip an app twice you already get appended and users then may end up starting that one Users may also be inclined to rename your app we re not on Windows after all Usually the name will be appended to But if your app name is unique enough look for your anywhere in the login items last path component Or even locate each one and check their bundle ids that even more foolproof Just be aware that some links may be dead How to find all serial devices ttyS ttyUSB on Linux without opening them linux serial port pWhat is the proper way to get list of all available serial ports devices on Linux system ppIn other words when iterate over all devices in code dev code how do tell which ones are serial ports in the classic way that is those usually supporting baud rates and href http en wikipedia org wiki RS 232 RTS 2FCTS handshaking rel noreferrer RTS CTS flow control ppThe solution would be coded in ppI ask because am using third party library that does this clearly wrong It appears to only iterate over code dev ttyS code The problem is that there are for instance serial ports over USB provided by USB RS232 adapters and those are listed under dev ttyUSB And reading the href http www linux org docs ldp howto Serial HOWTO html rel noreferrer Serial HOWTO at Linux org get the idea that there ll be other name spaces as well as time comes ppSo need to find the official way to detect serial devices The problem is that none appears to be documented or can find it ppI imagine one way would be to open all files from code dev tty code and call specific codeioctl code on them that is only available on serial devices Would that be good solution though ph3Update h3p emhrickards em suggested to look at the source for setserial Its code does exactly what had in mind ppFirst it opens device with ppre codefd open path RDWR NONBLOCK code prepThen it invokes ppre codeioctl fd TIOCGSERIAL amp serinfo code prepIf that call returns no error then it serial device apparently ppI found similar code in em href http en wikibooks org wiki Serial Programming Unix termios rel noreferrer Serial Programming termios em which suggested to also add the codeO NOCTTY code option pp strongThere is one problem with this approach though strong ppWhen tested this code on BSD Unix that is Mac nbsp OS nbsp it worked as well strong emHowever em strong serial devices that are provided through Bluetooth cause the system driver to try to connect to the Bluetooth device which takes while before it ll return with timeout error This is caused by just opening the device And can imagine that similar things can happen on Linux as well ideally should not need to open the device to figure out its type wonder if there also way to invoke codeioctl code functions without an open or open device in way that it does not cause connections to be made ppWhat should do Someone anonymous had suggested this edit which was rejected so leave it here as comment instead If you use the TIOCGSERIAL flag in the ioctl call instead of TIOCMGET then the call do not return error with some wrong paths that do not refer to COM serial port With TIOCMGET flag ioctl works only with the COM ports available to access in both TTY and TTYUSB possible paths,0,NULL,NULL 74639,215800,823242,Nice Answer Notable Question Curious,NULL,NULL,0,NULL,NULL 74640,776130,348783,Yearling Revival Yearling Great Answer,NULL,NULL,0,NULL,NULL 74641,1511822,1363094,NULL,NULL,NULL,0,NULL,NULL 74642,9712468,1109152,Popular Question,NULL,NULL,0,NULL,NULL 74643,135718,1109152,Popular Question,NULL,NULL,0,NULL,NULL 74644,60653,325029,NULL,NULL,NULL,0,NULL,NULL 74645,21848,198287,NULL,NULL,NULL,0,NULL,NULL 74646,122913,1230440,NULL,NULL,NULL,0,NULL,NULL 74647,81870,103144,NULL,NULL,NULL,0,NULL,NULL 74648,1563177,459342,Popular Question,NULL,NULL,0,NULL,NULL 74649,247388,1330209,NULL,NULL,NULL,0,NULL,NULL 74650,167767,534246,Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 74651,100273,345434,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 74652,194253,1480384,Revival,NULL,NULL,0,NULL,NULL 74653,7396068,557231,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74654,40850,557231,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74655,4679,126446,Popular Question Curious,NULL,NULL,0,NULL,NULL 74656,390857,77301,Yearling Great Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 74657,16153,1507937,NULL,NULL,NULL,0,NULL,NULL 74658,77991,655247,Editor Informed Autobiographer,NULL,NULL,0,NULL,NULL 74659,156970,384462,NULL,NULL,NULL,0,NULL,NULL 74660,94221,737165,Critic,NULL,NULL,0,NULL,NULL 74661,895137,636658,Popular Question Yearling Necromancer Editor Caucus Student,NULL,NULL,0,NULL,NULL 74662,332516,392880,NULL,NULL,NULL,0,NULL,NULL 74663,175817,185870,Proofreader Yearling Explainer Scholar Reviewer Custodian ruby Nice Answer Enlightened Caucus Nice Answer Yearling Documentation User Census Caucus Yearling,NULL,NULL,0,NULL,NULL 74664,427945,975772,NULL,NULL,NULL,0,NULL,NULL 74665,649281,410966,NULL,NULL,NULL,0,NULL,NULL 74666,1961175,1145775,Revival,NULL,NULL,0,NULL,NULL 74667,1071150,1202083,NULL,NULL,NULL,0,NULL,NULL 74668,217788,992006,Self-Learner Yearling Enthusiast,NULL,NULL,0,NULL,NULL 74669,226451,460419,NULL,NULL,NULL,0,NULL,NULL 74670,833487,795831,NULL,NULL,NULL,0,NULL,NULL 74671,91494,1145024,Informed Autobiographer Editor,NULL,NULL,0,NULL,NULL 74672,172246,395972,Favorite Question Favorite Question Great Question Yearling Notable Question Announcer Notable Question Notable Question Yearling Census Yearling,NULL,NULL,0,NULL,NULL 74673,468534,694959,NULL,NULL,NULL,0,NULL,NULL 74674,327002,1271263,Popular Question Notable Question Promoter Informed Benefactor Popular Question Nice Question Enthusiast Notable Question Notable Question Caucus Revival Revival,NULL,NULL,0,NULL,NULL 74675,4499094,197503,Yearling Guru Yearling Popular Question Yearling Yearling Great Answer Yearling Notable Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 74676,101962,7745,Necromancer Nice Answer Revival Yearling Favorite Question Necromancer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 74677,93644,949718,NULL,NULL,NULL,0,NULL,NULL 74678,1050966,554983,Popular Question,NULL,NULL,0,NULL,NULL 74679,88658,428988,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 74680,898763,43108,Editor Teacher Supporter Commentator Critic Yearling Enthusiast Informed Autobiographer Tenacious Yearling Scholar Yearling,NULL,NULL,0,NULL,NULL 74681,190585,330546,Popular Question Editor Excavator Teacher Informed,NULL,NULL,0,NULL,NULL 74682,119069,698270,NULL,NULL,NULL,0,NULL,NULL 74683,127514,29519,Good Question Notable Question Yearling Nice Question Notable Question Nice Answer Yearling Popular Question Nice Answer Popular Question Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 74684,28008,344107,Nice Answer Nice Answer Nice Answer Enlightened Yearling Notable Question Nice Answer Enlightened Guru Caucus Nice Answer Enlightened Yearling Custodian Caucus Yearling Critic Civic Duty,NULL,NULL,0,NULL,NULL 74685,463145,1453173,NULL,NULL,NULL,0,NULL,NULL 74686,468479,987438,NULL,NULL,NULL,0,NULL,NULL 74687,326442,1549364,NULL,NULL,NULL,0,NULL,NULL 74688,83130,80361,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74689,117676,676184,NULL,NULL,NULL,0,NULL,NULL 74690,119550,449171,NULL,NULL,NULL,0,NULL,NULL 74691,41139,1525900,Necromancer Yearling,NULL,NULL,0,NULL,NULL 74692,572617,1461239,Notable Question,NULL,NULL,0,NULL,NULL 74693,517546,1209614,Autobiographer,NULL,NULL,0,NULL,NULL 74694,2309131,1209614,Autobiographer,NULL,NULL,0,NULL,NULL 74695,1522407,1366154,NULL,NULL,NULL,0,NULL,NULL 74696,2850370,929167,NULL,NULL,NULL,0,NULL,NULL 74697,10911408,929167,NULL,NULL,NULL,0,NULL,NULL 74698,383409,830641,Self-Learner Yearling Caucus Yearling Popular Question Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 74699,137745,138406,NULL,NULL,NULL,0,NULL,NULL 74700,170241,708023,NULL,NULL,NULL,0,NULL,NULL 74701,35917,1411249,Yearling Yearling Caucus Cleanup Custodian Great Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 74702,44357,823086,NULL,NULL,NULL,0,NULL,NULL 74703,71018,1015155,Revival Critic Yearling,NULL,NULL,0,NULL,NULL 74704,104933,55623,Nice Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 74705,901580,238128,Good Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74706,162781,523094,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74707,1022427,1307050,NULL,NULL,NULL,0,NULL,NULL 74708,500665,656421,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 74709,291082,94175,Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74710,34873,349193,NULL,NULL,NULL,0,NULL,NULL 74711,138118,45839,Nice Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 74712,235152,263651,Yearling Popular Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Famous Question Census Yearling Notable Question Custodian Notable Question Notable Question,NULL,NULL,0,NULL,NULL 74713,3777931,820707,NULL,NULL,NULL,0,NULL,NULL 74714,176060,820707,NULL,NULL,NULL,0,NULL,NULL 74715,1396258,820707,NULL,NULL,NULL,0,NULL,NULL 74716,60185,544478,NULL,NULL,NULL,0,NULL,NULL 74717,93578,1168023,Critic,NULL,NULL,0,NULL,NULL 74718,42924,1156887,Editor Commentator Nice Answer Scholar Yearling Necromancer Critic,NULL,NULL,0,NULL,NULL 74719,155352,662495,NULL,NULL,NULL,0,NULL,NULL 74720,216168,324529,Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 74721,166466,636280,NULL,NULL,NULL,0,NULL,NULL 74722,524427,272846,Popular Question Popular Question Notable Question Notable Question Teacher Caucus Notable Question Yearling Caucus Nice Question Popular Question Caucus Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 74723,161544,405735,Yearling Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 74724,334756,772403,Yearling Curious,NULL,NULL,0,NULL,NULL 74725,1244527,1199041,Nice Answer Editor Critic Caucus Caucus Documentation User Yearling,NULL,NULL,0,NULL,NULL 74726,1487031,383251,Revival Yearling Popular Question,NULL,NULL,0,NULL,NULL 74727,1130323,843727,NULL,NULL,NULL,0,NULL,NULL 74728,12535,1031382,NULL,NULL,NULL,0,NULL,NULL 74729,394328,833136,Notable Question Popular Question Notable Question Notable Question Yearling Caucus Nice Question Caucus Notable Question,NULL,pThe notion that regex doesn support inverse matching is not entirely true You can mimic this behavior by using negative look arounds ppre code hede code prepThe regex above will match any string or line without line break strongnot strong containing the sub string hede As mentioned this is not something regex is good at or should do but still it emis em possible ppAnd if you need to match line break chars as well use the href http perldoc perl org perlre html Modifiers rel noreferrer DOT ALL modifier the trailing codes code in the following pattern ppre code hede code prepor use it inline ppre code hede code prep em where the code code are the regex delimiters not part of the pattern em ppIf the DOT ALL modifier is not available you can mimic the same behavior with the character class code code ppre code hede code preh2Explanation h2pA string is just list of coden code characters Before and after each character there an empty string So list of coden code characters will have coden code empty strings Consider the string code ABhedeCD code ppre code ┌──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┬───┬──┐S │e1│ │e2│ │e3│ │e4│ │e5│ │e6│ │e7│ │e8│ │e9│ └──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┘index code prepwhere the codee code are the empty strings The regex code hede code looks ahead to see if there no substring code hede code to be seen and if that is the case so something else is seen then the code code dot will match any character except line break Look arounds are also called emzero width assertions em because they don emconsume em any characters They only assert validate something ppSo in my example every empty string is first validated to see if there no code hede code up ahead before character is consumed by the code code dot The regex code hede code will do that only once so it is wrapped in group and repeated zero or more times code hede code Finally the start and end of input are anchored to make sure the entire input is consumed code hede code ppAs you can see the input code ABhedeCD code will fail because on codee3 code the regex code hede code fails there emis em code hede code up ahead Hi can you please tell me how to do this for re2 from google https github com google re2https support google com answer 1346938 hl en,0,NULL,NULL 74730,1140333,691955,NULL,NULL,NULL,0,NULL,NULL 74731,251484,841767,Revival Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74732,486537,160990,Notable Question Popular Question Guru Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Question Yearling Notable Question Nice Answer Famous Question Popular Question Popular Question Notable Question Popular Question Nice Answer Yearling Guru Nice Answer Enlightened Nice Question Nice Answer Nice Answer Yearling Nice Question php Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74733,150680,585370,Commentator Nice Question Notable Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74734,119390,932754,NULL,NULL,NULL,0,NULL,NULL 74735,3385849,932754,NULL,NULL,NULL,0,NULL,NULL 74736,506702,162046,NULL,NULL,NULL,0,NULL,NULL 74737,1032285,162046,NULL,NULL,NULL,0,NULL,NULL 74738,6907044,162046,NULL,NULL,NULL,0,NULL,NULL 74739,547372,56206,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 74740,1333636,484683,NULL,NULL,NULL,0,NULL,NULL 74741,3335296,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74742,7955054,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74743,936671,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74744,3147526,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74745,7024483,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74746,5481436,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74747,347941,21004,Notable Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74748,385898,519183,NULL,NULL,NULL,0,NULL,NULL 74749,1323161,519183,NULL,NULL,NULL,0,NULL,NULL 74750,628031,739858,NULL,NULL,NULL,0,NULL,NULL 74751,230331,380741,NULL,NULL,NULL,0,NULL,NULL 74752,1631944,35872,NULL,NULL,NULL,0,NULL,NULL 74753,2741183,1082150,NULL,NULL,NULL,0,NULL,NULL 74754,164717,791433,NULL,NULL,NULL,0,NULL,NULL 74755,713553,737072,NULL,NULL,NULL,0,NULL,NULL 74756,9398053,663896,NULL,NULL,NULL,0,NULL,NULL 74757,279005,663896,NULL,NULL,NULL,0,NULL,NULL 74758,9593,1243487,Revival Civic Duty Caucus Constituent Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 74759,12788,468556,Revival,NULL,NULL,0,NULL,NULL 74760,1085259,1388570,NULL,NULL,NULL,0,NULL,NULL 74761,212136,1240355,Student Scholar Supporter Tumbleweed Enthusiast Editor,NULL,NULL,0,NULL,NULL 74762,502445,139742,NULL,NULL,NULL,0,NULL,NULL 74763,119227,668085,NULL,NULL,NULL,0,NULL,NULL 74764,476318,363132,Guru Yearling Notable Question Notable Question Proofreader Caucus Yearling Caucus Custodian Yearling,NULL,NULL,0,NULL,NULL 74765,622058,789355,Notable Question,NULL,NULL,0,NULL,NULL 74766,512834,618702,Famous Question Yearling Good Answer Announcer Yearling Good Question Famous Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 74767,537987,967306,Editor Teacher Self-Learner Supporter Informed,NULL,NULL,0,NULL,NULL 74768,54972,1070832,Teacher Revival Tumbleweed,NULL,NULL,0,NULL,NULL 74769,1395969,1398936,NULL,NULL,NULL,0,NULL,NULL 74770,916359,557255,Popular Question,NULL,NULL,0,NULL,NULL 74771,35991,22927,Notable Question Guru Good Answer Popular Question Necromancer Nice Answer Enlightened Populist Nice Answer Nice Answer Popular Question Good Answer Guru Popular Question Revival Necromancer Good Answer Revival Yearling Great Question Popular Question Nice Answer Popular Question Nice Answer Caucus Nice Answer Announcer Popular Question Nice Answer Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Necromancer Famous Question Nice Answer Yearling Guru Popular Question Stellar Question Nice Answer Enlightened Notable Question Nice Answer Nice Question Nice Answer Yearling Nice Question,NULL,pIn iOS the keyboard uses new undocumented animation curve While some have noted that using an undocumented value for the animation option works prefer to use the following ppre code UIView beginAnimations nil context NULL UIView setAnimationDuration notification userInfo UIKeyboardAnimationDurationUserInfoKey doubleValue UIView setAnimationCurve notification userInfo UIKeyboardAnimationCurveUserInfoKey unsignedIntegerValue UIView setAnimationBeginsFromCurrentState YES work UIView commitAnimations code prepWhile block based animations are the recommendation the animation curve returned from the keyboard notification is an codeUIViewAnimationCurve code while the option you would need to pass to block based animations is an codeUIViewAnimationOptions code Using the traditional UIView animation methods allows you to pipe the value directly in strongMost importantly this will use the new undocumented animation curve integer value of and cause the animation to match the keyboard strong And it will work just as well on iOS and To those who think this step backwards You could always wrap this in method and make your method take and execute block Then your frequently repeated code is nice at least,0,NULL,NULL 74772,34728,1358428,NULL,NULL,NULL,0,NULL,NULL 74773,315899,1353910,NULL,NULL,NULL,0,NULL,NULL 74774,542048,1119766,Notable Question,NULL,NULL,0,NULL,NULL 74775,413258,1090454,NULL,NULL,NULL,0,NULL,NULL 74776,368706,689368,NULL,NULL,NULL,0,NULL,NULL 74777,418552,700978,NULL,NULL,NULL,0,NULL,NULL 74778,209691,639676,Yearling Nice Question Popular Question Famous Question Popular Question Famous Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Caucus Popular Question Self-Learner Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74779,427792,597102,Popular Question,NULL,NULL,0,NULL,NULL 74780,194322,1523027,NULL,NULL,NULL,0,NULL,NULL 74781,1530165,534066,NULL,NULL,NULL,0,NULL,NULL 74782,61519,1456801,NULL,NULL,NULL,0,NULL,NULL 74783,147105,493359,NULL,NULL,NULL,0,NULL,NULL 74784,794442,1314283,NULL,NULL,NULL,0,NULL,NULL 74785,310151,1079709,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 74786,253962,454623,Popular Question Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 74787,112036,167425,Mortarboard Nice Answer Enlightened Civic Duty Revival Custodian Notable Question Yearling Caucus Necromancer Caucus Yearling Revival Census Popular Question Caucus Constituent Nice Answer Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 74788,92994,266875,Yearling Good Answer Good Answer Guru Yearling Revival Excavator Necromancer Yearling Custodian Great Answer,NULL,NULL,0,NULL,NULL 74789,329310,796419,Good Question Guru autolayout Good Answer Enlightened Great Answer Necromancer Yearling Revival Revival Popular Question Good Question Good Answer Yearling Civic Duty Documentation User Nice Answer Announcer Nice Answer Nice Answer Announcer Nice Answer Nice Answer Enlightened Yearling Good Question Great Answer,NULL,NULL,0,NULL,NULL 74790,216260,368248,Nice Question Famous Question Yearling Popular Question Tumbleweed Notable Question Curious Yearling,NULL,NULL,0,NULL,NULL 74791,131483,229976,Yearling ruby-on-rails Revival Custodian Custodian Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 74792,344437,361295,Nice Answer Enlightened Yearling Caucus Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 74793,613998,438344,NULL,NULL,NULL,0,NULL,NULL 74794,385364,845914,NULL,NULL,NULL,0,NULL,NULL 74795,468935,19013,Notable Question Yearling Populist Populist Nice Answer Yearling Revival Necromancer Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 74796,145010,1232796,Yearling Self-Learner Popular Question Nice Answer Enlightened Announcer Necromancer Caucus Constituent Yearling Enthusiast Explainer Organizer Custodian Necromancer Census Notable Question Yearling Nice Answer Caucus Nice Answer Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 74797,456667,1363224,Student,NULL,NULL,0,NULL,NULL 74798,275466,522159,Yearling Critic Popular Question Popular Question Famous Question Nice Question Notable Question Commentator Yearling,NULL,NULL,0,NULL,NULL 74799,396586,976825,NULL,NULL,NULL,0,NULL,NULL 74800,432252,1272603,Popular Question,NULL,NULL,0,NULL,NULL 74801,10266,124603,Great Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 74802,370004,810633,Critic Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 74803,257356,2314,Good Answer Yearling Nice Answer Famous Question Nice Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 74804,572586,417042,NULL,NULL,NULL,0,NULL,NULL 74805,4602,633116,NULL,NULL,NULL,0,NULL,NULL 74806,194768,1272393,Nice Answer Good Question,NULL,NULL,0,NULL,NULL 74807,513263,1317827,NULL,NULL,NULL,0,NULL,NULL 74808,1054775,675741,Popular Question,NULL,NULL,0,NULL,NULL 74809,367887,676563,NULL,NULL,NULL,0,NULL,NULL 74810,223660,955912,NULL,NULL,NULL,0,NULL,NULL 74811,43797,1533437,Commentator Yearling,NULL,NULL,0,NULL,NULL 74812,12149,128328,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74813,1175121,737195,Notable Question Famous Question Popular Question Yearling Nice Question Popular Question Caucus Constituent Notable Question Nice Question Popular Question Nice Answer Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74814,25597,1168524,Enthusiast Editor Tumbleweed Yearling Popular Question Yearling Citizen Patrol Notable Question Nice Question Nice Question Curious Yearling Famous Question Civic Duty Good Question Yearling Necromancer Popular Question Favorite Question Yearling Organizer Yearling Great Question Notable Question Yearling Necromancer,NULL,NULL,1,How can generate an apk that can run without server with react native javascript android react native mobile application pI ve built my app can run it on my local simulator and also on my android device within the same network by changing debug server ppHowever want to build an apk that can send to someone without access to development server and want them to be able to test application ppI see there is section Using offline bundle on iOS section of the documentation But couldn figure out how to accomplish same for android Is this possible If so how pp strongUPDATE strong On the answer to this question href https stackoverflow com questions 32572399 react native android failed to load js bundle react native android failed to load JS bundle it is said that offline bundle can be downloaded from development server But when obtain the bundle from development server the image files can be loaded,NULL 74815,2139982,142303,Critic,NULL,NULL,0,NULL,NULL 74816,784889,743803,Necromancer Popular Question Promoter Popular Question Popular Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 74817,201539,219324,smalltalk Necromancer Custodian Nice Answer Caucus Constituent Yearling Famous Question Electorate Caucus Constituent Nice Answer Enlightened Yearling Nice Answer Enlightened Census Caucus Constituent Announcer Custodian Yearling,NULL,NULL,0,NULL,NULL 74818,227878,1436178,Notable Question,NULL,NULL,0,NULL,NULL 74819,218827,1451198,NULL,NULL,NULL,0,NULL,NULL 74820,723544,645106,NULL,NULL,NULL,0,NULL,NULL 74821,1363541,944006,Good Answer Yearling Guru Nice Question Yearling Citizen Patrol Announcer javascript,NULL,NULL,0,NULL,NULL 74822,15701,1150903,Self-Learner,NULL,NULL,0,NULL,NULL 74823,179365,137063,NULL,NULL,NULL,0,NULL,NULL 74824,3020,810286,Popular Question Informed Autobiographer,NULL,NULL,0,NULL,NULL 74825,156349,164439,Nice Answer Necromancer Yearling Great Answer Famous Question Necromancer Good Answer php Necromancer Announcer Nice Question Nice Answer Yearling Documentation User Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 74826,1770509,104603,NULL,NULL,NULL,0,NULL,NULL 74827,148452,211782,NULL,NULL,NULL,0,NULL,NULL 74828,193704,495974,NULL,NULL,NULL,0,NULL,NULL 74829,153320,24500,Popular Question Famous Question Popular Question Popular Question Notable Question Nice Answer Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74830,393997,836985,Nice Question,NULL,NULL,0,NULL,NULL 74831,330190,1445931,NULL,NULL,NULL,0,NULL,NULL 74832,925675,1473554,NULL,NULL,NULL,0,NULL,NULL 74833,807548,383149,Yearling Popular Question,NULL,NULL,0,NULL,NULL 74834,239384,383149,Yearling Popular Question,NULL,NULL,0,NULL,NULL 74835,181877,1227001,Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Civic Duty Yearling Stellar Question Notable Question Great Question Notable Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74836,201750,1120739,NULL,NULL,NULL,0,NULL,NULL 74837,186866,65875,Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74838,10573456,393521,Nice Question Famous Question Curious Popular Question Popular Question Notable Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 74839,9041205,393521,Nice Question Famous Question Curious Popular Question Popular Question Notable Question Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 74840,23523,1319545,Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 74841,773390,835591,Necromancer Popular Question Yearling Nice Answer Informed Notable Question Yearling Nice Question Custodian Yearling Good Question Popular Question Yearling Famous Question Custodian Nice Answer Enlightened Citizen Patrol Nice Answer Census Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 74842,932950,52898,Nice Answer,NULL,NULL,0,NULL,NULL 74843,798081,1227485,Necromancer Revival Yearling Good Answer Yearling Notable Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 74844,163829,514230,Tumbleweed Curious Popular Question Yearling Informed Promoter Benefactor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74845,1387318,647270,NULL,NULL,NULL,0,NULL,NULL 74846,407734,156459,Popular Question Cleanup Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74847,288829,143708,Tag Editor,NULL,NULL,0,NULL,NULL 74848,564310,947859,NULL,NULL,NULL,0,NULL,NULL 74849,236824,567941,NULL,NULL,NULL,0,NULL,NULL 74850,126069,919992,NULL,NULL,NULL,0,NULL,NULL 74851,256271,865906,NULL,NULL,NULL,0,NULL,NULL 74852,693522,1314616,Teacher Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 74853,550240,901065,NULL,NULL,NULL,0,NULL,NULL 74854,161020,1178716,NULL,NULL,NULL,0,NULL,NULL 74855,134888,264936,Yearling Guru Popular Question Yearling Great Answer Famous Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 74856,469723,1319324,Popular Question,NULL,NULL,0,NULL,NULL 74857,923368,321548,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 74858,219862,1287386,Nice Answer Yearling Revival Popular Question Explainer Necromancer Revival Tumbleweed Nice Answer Yearling Nice Answer Enlightened Caucus Documentation User Nice Answer Popular Question Necromancer Nice Answer Yearling Popular Question Curious Good Answer Revival,NULL,NULL,0,NULL,NULL 74859,722325,312167,Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 74860,834808,907604,Census,NULL,NULL,0,NULL,NULL 74861,416824,730252,Guru Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 74862,89908,942144,Revival Caucus Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 74863,496546,1104108,NULL,NULL,NULL,0,NULL,NULL 74864,435738,1104108,NULL,NULL,NULL,0,NULL,NULL 74865,143585,1060333,Autobiographer Popular Question Civic Duty Informed Revival,NULL,NULL,0,NULL,NULL 74866,234217,412407,NULL,NULL,NULL,0,NULL,NULL 74867,583978,203898,Nice Question Favorite Question Famous Question Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 74868,8499276,679794,NULL,NULL,NULL,0,NULL,NULL 74869,700545,679794,NULL,NULL,NULL,0,NULL,NULL 74870,419988,818867,Student,NULL,NULL,0,NULL,NULL 74871,253031,152853,Famous Question Yearling Nice Question Caucus Announcer Popular Question Yearling Good Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 74872,168303,673962,Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74873,163209,1253685,NULL,NULL,NULL,0,NULL,NULL 74874,6930,1347886,NULL,NULL,NULL,0,NULL,NULL 74875,685415,737026,NULL,NULL,NULL,0,NULL,NULL 74876,9463,76951,Informed,NULL,NULL,0,NULL,NULL 74877,254819,92825,Popular Question,NULL,NULL,0,NULL,NULL 74878,271352,195061,Necromancer Nice Answer Guru Good Answer Necromancer Notable Question Yearling Nice Answer Popular Question Nice Question Announcer Yearling Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 74879,324810,862957,NULL,NULL,NULL,0,NULL,NULL 74880,22044,1121958,Popular Question Popular Question Notable Question Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 74881,68861,50360,Custodian Citizen Patrol Popular Question Notable Question,NULL,NULL,0,NULL,NULL 74882,40356,569032,Critic Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 74883,529287,40996,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 74884,294097,998296,Teacher Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 74885,1519733,536977,NULL,NULL,NULL,0,NULL,NULL 74886,550539,472174,NULL,NULL,NULL,0,NULL,NULL 74887,156916,1365273,Notable Question,NULL,NULL,0,NULL,NULL 74888,1350304,1484279,NULL,NULL,NULL,0,NULL,NULL 74889,342964,1228412,NULL,NULL,NULL,0,NULL,NULL 74890,233776,325339,NULL,NULL,NULL,0,NULL,NULL 74891,125717,622041,Yearling Announcer Popular Question Great Question Announcer Necromancer Yearling Necromancer Announcer Yearling Custodian Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 74892,1749167,931850,NULL,NULL,NULL,0,NULL,NULL 74893,105813,609168,NULL,NULL,NULL,0,NULL,NULL 74894,429631,1339890,NULL,NULL,NULL,0,NULL,NULL 74895,4218816,1339890,NULL,NULL,NULL,0,NULL,NULL 74896,69187,242169,Yearling Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Caucus Nice Answer Enlightened Yearling Great Answer Yearling Curious,NULL,NULL,0,NULL,NULL 74897,1623033,1254586,Excavator,NULL,NULL,0,NULL,NULL 74898,297709,483762,NULL,NULL,NULL,0,NULL,NULL 74899,1806085,483762,NULL,NULL,NULL,0,NULL,NULL 74900,309693,406438,NULL,NULL,NULL,0,NULL,NULL 74901,562348,500874,Necromancer Yearling,NULL,NULL,0,NULL,NULL 74902,41193,631276,Yearling Tenacious Yearling Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 74903,1431026,69059,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 74904,281463,1295125,Student Popular Question Revival,NULL,NULL,0,NULL,NULL 74905,85635,366672,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 74906,982239,855599,Popular Question Citizen Patrol Custodian Custodian Caucus Informed Custodian Yearling Notable Question Documentation User Necromancer Caucus Popular Question,NULL,NULL,0,NULL,NULL 74907,436630,1140466,Notable Question Guru Notable Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 74908,253960,36053,Notable Question Notable Question Notable Question Populist Notable Question Yearling Famous Question Popular Question Revival Popular Question Yearling Famous Question Popular Question Popular Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 74909,179094,783711,Student Tumbleweed Custodian Organizer Custodian Yearling Documentation User Nice Answer Enlightened Revival,NULL,NULL,0,NULL,NULL 74910,346123,456281,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 74911,170862,798888,Enthusiast Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 74912,162009,484520,NULL,NULL,NULL,0,NULL,NULL 74913,1000480,857620,NULL,NULL,NULL,0,NULL,NULL 74914,117137,614944,Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Informed Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Nice Question Good Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Stellar Question Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Famous Question Popular Question Nice Question Popular Question Nice Question Notable Question Popular Question Nice Question Notable Question Notable Question Peer Pressure Notable Question Notable Question Famous Question Popular Question Nice Question Good Question Yearling Famous Question Popular Question Popular Question Notable Question Notable Question Good Question Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Great Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 74915,783960,31151,Editor Caucus Caucus Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 74916,64705,250025,Organizer Critic Popular Question Explainer Yearling Yearling Custodian Caucus Yearling Citizen Patrol Popular Question Yearling Popular Question,NULL,pWhitespace is not ppre code code prepSee if this works It accepts values out side the allowed range for lats and longs eg 91 181,0,NULL,NULL 74917,12729,645174,Student,NULL,NULL,0,NULL,NULL 74918,232356,1044613,NULL,NULL,NULL,0,NULL,NULL 74919,189241,425436,Notable Question,NULL,NULL,0,NULL,NULL 74920,370878,733454,Popular Question Nice Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 74921,300356,133900,Famous Question Yearling Notable Question Nice Question Good Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 74922,52213,148585,Yearling Civic Duty Commentator Caucus Yearling Yearling Revival Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 74923,1187645,85140,Popular Question Nice Question Nice Question Famous Question Nice Question Nice Question Nice Answer Yearling Popular Question Notable Question Popular Question Notable Question Good Question Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Good Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question c++ Favorite Question Popular Question Famous Question Popular Question Yearling Popular Question Famous Question Nice Question Nice Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Great Question Nice Question Notable Question Popular Question Popular Question Popular Question Necromancer Good Question Yearling Notable Question Popular Question Notable Question Nice Answer Famous Question Notable Question Popular Question python,NULL,NULL,0,NULL,NULL 74924,134855,332151,NULL,NULL,NULL,0,NULL,NULL 74925,581166,1322878,Yearling Census Custodian Citizen Patrol Custodian Custodian Yearling Caucus Documentation User Yearling Great Question Favorite Question Reviewer Yearling,NULL,NULL,0,NULL,NULL 74926,490715,574751,Popular Question,NULL,NULL,0,NULL,NULL 74927,4478659,1196475,NULL,NULL,NULL,0,NULL,NULL 74928,165001,495912,Popular Question,NULL,NULL,0,NULL,NULL 74929,702862,252742,NULL,NULL,NULL,0,NULL,NULL 74930,65316,1089104,NULL,NULL,NULL,0,NULL,NULL 74931,38363,1427654,Popular Question,NULL,NULL,0,NULL,NULL 74932,423377,762032,NULL,NULL,NULL,0,NULL,NULL 74933,133846,1255759,NULL,NULL,NULL,0,NULL,NULL 74934,111030,86422,NULL,NULL,NULL,0,NULL,NULL 74935,343794,307810,Revival Supporter,NULL,NULL,0,NULL,NULL 74936,360018,41324,Yearling Guru Commentator Editor Yearling Excavator Yearling Revival Documentation User Necromancer Yearling Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 74937,366777,354941,Popular Question,NULL,NULL,0,NULL,NULL 74938,227099,1336468,Notable Question,NULL,NULL,0,NULL,NULL 74939,237918,562557,Yearling Famous Question Nice Answer Enlightened Investor Revival Yearling Nice Answer Enlightened Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 74940,331234,986618,Good Answer Yearling Nice Answer Popular Question Yearling Good Answer Nice Answer Nice Question Populist jquery Yearling,NULL,NULL,0,NULL,NULL 74941,161340,836918,NULL,NULL,NULL,0,NULL,NULL 74942,543174,16507,Citizen Patrol Critic Custodian,NULL,NULL,0,NULL,NULL 74943,763379,1381065,NULL,NULL,NULL,0,NULL,NULL 74944,96686,451785,NULL,NULL,NULL,0,NULL,NULL 74945,269504,28298,Popular Question Popular Question Famous Question Popular Question Notable Question Good Question Good Question Yearling Famous Question Revival Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 74946,290419,711775,NULL,NULL,NULL,0,NULL,NULL 74947,1210111,991541,Necromancer,NULL,NULL,0,NULL,NULL 74948,648329,979075,NULL,NULL,NULL,0,NULL,NULL 74949,324239,357151,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74950,481265,1204526,NULL,NULL,NULL,0,NULL,NULL 74951,563254,1048561,NULL,NULL,NULL,0,NULL,NULL 74952,653933,1260277,NULL,NULL,NULL,0,NULL,NULL 74953,162768,462094,Notable Question,NULL,NULL,0,NULL,NULL 74954,514735,1023978,NULL,NULL,NULL,0,NULL,NULL 74955,193169,399874,NULL,NULL,NULL,0,NULL,NULL 74956,555944,1095737,NULL,NULL,NULL,0,NULL,NULL 74957,13679,55074,Nice Answer Yearling Self-Learner Nice Question Notable Question Popular Question Nice Answer Nice Answer Enlightened Popular Question Great Question Nice Question Good Answer Nice Question Popular Question Announcer Announcer Announcer Nice Question Yearling Necromancer Popular Question Nice Question Famous Question Nice Answer Enlightened Good Answer Famous Question Announcer Popular Question Good Question Popular Question Popular Question Yearling Notable Question Famous Question Announcer Popular Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 74958,734392,27587,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 74959,417848,1183102,NULL,NULL,NULL,0,NULL,NULL 74960,197941,1330184,Informed Autobiographer,NULL,NULL,0,NULL,NULL 74961,1468996,355689,Popular Question Yearling Popular Question Nice Answer Popular Question Nice Question Good Question Yearling Good Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74962,47125,643644,Student Popular Question,NULL,NULL,0,NULL,NULL 74963,1439421,151526,Popular Question Popular Question Yearling Popular Question Notable Question Benefactor Notable Question,NULL,NULL,0,NULL,NULL 74964,168693,448761,Nice Question Promoter,NULL,NULL,0,NULL,NULL 74965,164280,148410,Revival Yearling Tumbleweed Revival Necromancer Revival Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 74966,1489208,502608,Popular Question,NULL,NULL,0,NULL,NULL 74967,224891,1368519,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 74968,106383,136349,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 74969,2476073,781290,NULL,NULL,NULL,0,NULL,NULL 74970,2801045,407879,Nice Answer Enlightened Good Answer Nice Question Popular Question Yearling c++ Pundit Famous Question Popular Question Notable Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 74971,46918,360397,Great Answer Nice Answer Nice Answer Custodian Custodian Yearling Guru Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 74972,1100772,856312,Yearling Commentator Critic,NULL,NULL,0,NULL,NULL 74973,39597,182738,Popular Question Yearling Critic Popular Question Yearling Great Answer Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 74974,628087,1341681,NULL,NULL,NULL,0,NULL,NULL 74975,400979,1067721,Curious Yearling Good Answer Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 74976,25401,1054567,NULL,NULL,NULL,0,NULL,NULL 74977,628139,815110,Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Notable Question Popular Question Custodian Yearling,NULL,pA long liner that works with any number of items ppre codeecho join and array filter array merge array join array slice array array slice array strlen code prepOr if you emreally em prefer the verboseness ppre code last array slice array first join array slice array both array filter array merge array first last strlen echo join and both code prepThe point is that this slicing merging filtering and joining handles emall em cases including and items correctly without extra codeif else code statements And it happens to be collapsible into one liner Nah don listen to the one liner haters All those complaints are easily handled by abstracting the calls out to well named function StringUtils implodeWithPrefixOnLast array and,0,NULL,NULL 74978,161054,617605,Popular Question Yearling Nice Answer Enlightened Tumbleweed,NULL,NULL,0,NULL,NULL 74979,66086,278457,Yearling Census Yearling Necromancer Nice Answer Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 74980,180079,95302,NULL,NULL,NULL,0,NULL,NULL 74981,666359,95302,NULL,NULL,NULL,0,NULL,NULL 74982,22862,685394,NULL,NULL,NULL,0,NULL,NULL 74983,246297,1336483,NULL,NULL,NULL,0,NULL,NULL 74984,2298379,1336483,NULL,NULL,NULL,0,NULL,NULL 74985,99511,406358,Announcer Yearling Nice Answer Notable Question Yearling Self-Learner Announcer Necromancer Yearling Revival Good Answer Necromancer,NULL,PHP and Enumerations php enumeration pI know that PHP doesn have native Enumerations But have become accustomed to them from the Java world would love to use enums as way to give predefined values which IDEs auto completion features could understand ppConstants do the trick but there the namespace collision problem and or actually embecause em they re global Arrays don have the namespace problem but they re too vague they can be overwritten at runtime and IDEs rarely never know how to autofill their keys ppAre there any solutions workarounds you commonly use Does anyone recall whether the PHP guys have had any thoughts or decisions around enums Do you mind sharing bit more about Constants problem Constants do the trick but there the namespace collision problem and or actually because they re global Finding cartesian product with PHP associative arrays php algorithm associative array cartesian product pSay that have an array like the following ppre codeArray arm gt Array gt gt gt gender gt Array gt Female gt Male location gt Array gt Vancouver gt Calgary code prepHow can find the cartesian product while preserving the keys of the outer associative array and using them in the inner ones The result of the algorithm should be this ppre codeArray gt Array arm gt gender gt Female location gt Vancouver gt Array arm gt gender gt Female location gt Calgary gt Array arm gt gender gt Male location gt Vancouver etc code prepI ve looked up quite number of cartesian product algorithms but getting stuck on the specifics of how to preserve the associative keys The current algorithm am using gives numerical indices only ppre code result array foreach map as if empty result result continue res array foreach result as foreach as res array merge array array result res print result code prepAny help would be appreciated This seems like transpose action instead of cartesian product,0,NULL,NULL 74986,1238,324085,Yearling Nice Question Caucus Constituent Popular Question Yearling Documentation User Custodian Yearling,NULL,NULL,0,NULL,NULL 74987,357957,1399126,Yearling magento Good Answer Necromancer Yearling Guru Revival Yearling Good Answer,NULL,NULL,0,NULL,NULL 74988,242390,240515,Necromancer Nice Answer Nice Answer Yearling Yearling Announcer Announcer Booster,NULL,NULL,0,NULL,NULL 74989,743029,145954,Yearling Notable Question,NULL,NULL,0,NULL,NULL 74990,660455,593105,Yearling Nice Answer Nice Answer Nice Answer Nice Answer Enlightened node.js Nice Answer Nice Answer Nice Answer Enlightened Yearling Census Nice Answer Nice Answer Enlightened Nice Answer javascript Good Answer Nice Answer Enlightened Census Yearling Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 74991,745872,355742,Notable Question Popular Question Popular Question Notable Question Notable Question Yearling Popular Question Self-Learner Notable Question Popular Question,NULL,NULL,0,NULL,NULL 74992,314296,428877,Yearling Good Answer Yearling Caucus,NULL,NULL,0,NULL,NULL 74993,1096643,920162,NULL,NULL,NULL,0,NULL,NULL 74994,471731,715539,NULL,NULL,NULL,0,NULL,NULL 74995,105522,682251,Notable Question,NULL,NULL,0,NULL,NULL 74996,574439,173292,Nice Answer Nice Answer Enlightened Popular Question Notable Question Nice Answer Famous Question Good Answer Nice Question Notable Question Yearling Popular Question Nice Answer Nice Question Good Answer Guru python Nice Answer Good Question Notable Question Popular Question Announcer Popular Question Notable Question Yearling Notable Question Nice Answer Popular Question Good Answer Nice Answer Notable Question Nice Question Yearling Popular Question Great Answer,NULL,NULL,0,NULL,NULL 74997,346735,245034,Popular Question,NULL,NULL,0,NULL,NULL 74998,4015918,1232919,NULL,NULL,NULL,0,NULL,NULL 74999,87512,1232919,NULL,NULL,NULL,0,NULL,NULL 75000,10812,846888,NULL,NULL,NULL,0,NULL,NULL 75001,8751992,325923,Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 75002,166385,938077,Yearling Nice Answer Yearling Yearling Editor Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 75003,1182311,1152337,Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 75004,922467,817196,Yearling,NULL,NULL,0,NULL,NULL 75005,143707,517606,Yearling Necromancer Popular Question Necromancer Nice Answer Notable Question Nice Answer Yearling Good Answer Census Good Answer Yearling Necromancer Yearling Populist Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75006,1548068,1367776,Informed Autobiographer Supporter Editor Tumbleweed Census Critic,NULL,NULL,0,NULL,NULL 75007,764602,808461,NULL,NULL,NULL,0,NULL,NULL 75008,5874152,1526925,NULL,NULL,NULL,0,NULL,NULL 75009,152355,1414192,Informed,NULL,NULL,0,NULL,NULL 75010,285630,764784,NULL,NULL,NULL,0,NULL,NULL 75011,1040037,19521,Favorite Question Popular Question Nice Question Yearling Popular Question Notable Question Famous Question Popular Question Yearling Good Answer Populist Favorite Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75012,207857,1438111,Popular Question,NULL,NULL,0,NULL,NULL 75013,577212,1360985,Yearling Nice Question Great Question Famous Question Famous Question Yearling Yearling Notable Question Good Question,NULL,NULL,0,NULL,NULL 75014,1190505,1192731,NULL,NULL,NULL,0,NULL,NULL 75015,1353823,1224006,Notable Question,NULL,NULL,0,NULL,NULL 75016,283775,278434,Self-Learner Popular Question Caucus Popular Question Nice Question,NULL,NULL,0,NULL,NULL 75017,173034,750413,NULL,NULL,NULL,0,NULL,NULL 75018,838459,852822,Popular Question,NULL,NULL,0,NULL,NULL 75019,3106,86803,Popular Question Notable Question Notable Question Revival Yearling Famous Question Popular Question Self-Learner Nice Question Popular Question Good Question Notable Question Yearling Inquisitive Famous Question Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Good Question Popular Question Notable Question Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 75020,636016,699536,Popular Question,NULL,NULL,0,NULL,NULL 75021,1821907,426822,Notable Question Good Answer Yearling Popular Question Nice Answer Famous Question Notable Question Nice Question Inquisitive Popular Question Yearling Popular Question Nice Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75022,88646,1334352,Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 75023,1011017,10109,NULL,NULL,NULL,0,NULL,NULL 75024,44370,295856,Popular Question Yearling Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Good Question Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 75025,195127,802407,Civic Duty Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75026,240880,218013,Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 75027,1995405,532737,Civic Duty Yearling,NULL,NULL,0,NULL,NULL 75028,255688,1394731,Notable Question Nice Question Yearling Popular Question Caucus Constituent Famous Question Notable Question Necromancer Yearling Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 75029,1125273,1292791,Curious Revival Yearling Popular Question Nice Question Necromancer Popular Question Yearling Nice Answer Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75030,204911,436767,NULL,NULL,NULL,0,NULL,NULL 75031,62800,550653,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75032,743405,1137906,NULL,NULL,NULL,0,NULL,NULL 75033,735078,1137906,NULL,NULL,NULL,0,NULL,NULL 75034,603392,644289,Scholar Necromancer Popular Question Editor Caucus Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 75035,21629,350205,NULL,NULL,NULL,0,NULL,NULL 75036,1353205,1399901,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 75037,320706,265629,Popular Question Yearling Notable Question Nice Question Nice Question Famous Question Notable Question Popular Question Good Question Notable Question Popular Question Notable Question Great Question Nice Question Notable Question Popular Question Popular Question Good Question Notable Question Notable Question Nice Question Popular Question Favorite Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Famous Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Famous Question Nice Question Good Question Favorite Question Nice Answer Enlightened Popular Question Popular Question Nice Question Notable Question Great Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Good Question Favorite Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Great Question Favorite Question,NULL,NULL,0,NULL,NULL 75038,1426662,1391761,NULL,NULL,NULL,0,NULL,NULL 75039,100196,367916,Notable Question Necromancer Yearling Nice Question Nice Answer Yearling Notable Question Nice Answer Announcer Yearling Pundit,NULL,NULL,0,NULL,NULL 75040,116574,321060,NULL,NULL,NULL,0,NULL,NULL 75041,38944,173787,Favorite Question Notable Question Popular Question Yearling Self-Learner Good Question Popular Question Famous Question Notable Question Yearling Notable Question Great Question Census Notable Question Yearling,NULL,NULL,0,NULL,NULL 75042,2840465,539176,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75043,766749,958004,Citizen Patrol Yearling Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 75044,146513,316346,NULL,NULL,NULL,0,NULL,NULL 75045,196203,759886,NULL,NULL,NULL,0,NULL,NULL 75046,33692,223569,Necromancer Good Answer Notable Question Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 75047,430901,701501,NULL,NULL,NULL,0,NULL,NULL 75048,300359,1013614,NULL,NULL,NULL,0,NULL,NULL 75049,272799,1311850,NULL,NULL,NULL,0,NULL,NULL 75050,633030,1212550,Good Answer Yearling Notable Question Popular Question Famous Question Good Question Necromancer Yearling Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75051,61566,481537,Critic Informed Citizen Patrol Organizer Explainer Student Commentator Yearling Caucus Scholar Tumbleweed Excavator Caucus Yearling Constituent Custodian Custodian Documentation User Caucus Constituent Necromancer Yearling,NULL,NULL,0,NULL,NULL 75052,76467,124674,Nice Answer Yearling Good Answer Good Answer Nice Answer Enlightened Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 75053,114047,12874,Yearling Nice Answer Notable Question Yearling Documentation User Custodian Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 75054,324164,1213946,NULL,NULL,NULL,0,NULL,NULL 75055,31790,408168,Favorite Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75056,54882,1008748,spotify Nice Answer Enlightened Yearling Suffrage Proofreader Nice Answer Enlightened Documentation User Yearling Civic Duty Nice Answer Nice Answer Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75057,17866,1086418,NULL,NULL,NULL,0,NULL,NULL 75058,110273,174466,Good Answer,NULL,NULL,0,NULL,NULL 75059,2784220,492862,NULL,NULL,NULL,0,NULL,NULL 75060,308495,1067550,Yearling,NULL,NULL,0,NULL,NULL 75061,460575,576725,Yearling Nice Answer Yearling Notable Question Notable Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 75062,3328689,949407,Teacher Nice Question Revival Supporter Good Question,NULL,NULL,0,NULL,NULL 75063,61216,949407,Teacher Nice Question Revival Supporter Good Question,NULL,NULL,0,NULL,NULL 75064,1333610,1049919,Revival Yearling Mortarboard Necromancer Excavator Supporter Commentator Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 75065,403961,1049919,Revival Yearling Mortarboard Necromancer Excavator Supporter Commentator Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 75066,47590,730368,NULL,NULL,NULL,0,NULL,NULL 75067,15747,336085,Popular Question,NULL,NULL,0,NULL,NULL 75068,70963,59114,Nice Question Yearling Good Answer Nice Answer Famous Question Yearling Popular Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 75069,208420,488663,Famous Question Notable Question Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 75070,1962608,122139,Peer Pressure Revival Revival Investor Altruist Copy Editor Yearling Necromancer Popular Question Caucus Necromancer Famous Question Popular Question Necromancer Announcer Yearling Popular Question Notable Question Notable Question Notable Question Nice Answer Announcer Caucus Nice Answer Popular Question Yearling Nice Answer Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 75071,1343491,333223,Yearling Notable Question Famous Question Popular Question Popular Question Self-Learner Inquisitive Yearling Notable Question Famous Question Notable Question Nice Answer Enlightened Notable Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 75072,289444,730464,NULL,NULL,NULL,0,NULL,NULL 75073,63142,135429,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75074,467199,1301346,NULL,NULL,NULL,0,NULL,NULL 75075,904390,554070,Curious Notable Question Yearling Citizen Patrol Revival Yearling Documentation User Necromancer Informed Tumbleweed Census Popular Question,NULL,NULL,0,NULL,NULL 75076,9546,871132,Good Answer Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 75077,46425,922593,Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75078,371663,727411,Self-Learner Yearling Popular Question Student Nice Answer Enlightened Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 75079,236982,449426,Commentator Census,NULL,NULL,0,NULL,NULL 75080,340370,339273,Informed,NULL,NULL,0,NULL,NULL 75081,91257,159834,Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Guru Announcer Nice Answer Yearling Good Answer Census Guru Nice Answer Enlightened Yearling,NULL,pYes using href http git scm com docs gitattributes attributes Put something like this in your code gitattributes code file create it if it doesn exist ppre code sln binary suo binary vcxproj binary code prepHere href http git scm com docs gitattributes defining macro attributes codebinary code is actually predefined macro equivalent to code diff merge text code ppIf you want to still be able to see the diff you can use ppre code sln merge text code prepThis way the code sln code files won be merged not have eol normalized but meanwhile diff able Everywhere gitignore file can be located as per the documentation provided by the link in the given answer,0,NULL,NULL 75082,831859,266669,NULL,NULL,NULL,0,NULL,NULL 75083,114202,305082,Notable Question Yearling Caucus Constituent Good Question Census Caucus,NULL,NULL,0,NULL,NULL 75084,217135,323215,Supporter Nice Question,NULL,NULL,0,NULL,NULL 75085,739125,1543941,Supporter Notable Question Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 75086,530075,1044229,NULL,NULL,NULL,0,NULL,NULL 75087,540146,19911,Yearling Nice Answer Caucus Yearling Populist Not a Robot Revival Yearling,NULL,NULL,0,NULL,NULL 75088,260426,872144,NULL,NULL,NULL,0,NULL,NULL 75089,1050374,576620,NULL,NULL,NULL,0,NULL,NULL 75090,341105,1260395,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 75091,242509,886411,NULL,NULL,NULL,0,NULL,NULL 75092,362336,214849,Notable Question Notable Question Nice Answer Curious Tumbleweed Caucus Popular Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 75093,1085659,347480,Popular Question,NULL,NULL,0,NULL,NULL 75094,742183,280038,NULL,NULL,NULL,0,NULL,NULL 75095,13870,406249,Revival Great Answer Yearling Nice Answer Announcer Quorum Caucus Nice Answer Enlightened Census Nice Answer Necromancer Caucus Constituent Yearling Nice Answer Nice Answer Enlightened Census Revival Revival Caucus Good Answer Announcer Good Answer Yearling Pundit,NULL,pBuilding Vim on Mac OS is waste of time ppStep Download the appropriate MacVim build from href https github com b4winckler macvim releases there ppStep Put MacVim app into the code Applications code directory ppStep Put the bundled codemvim code script somewhere in your codePATH code ppDone ppTo run MacVim emin em your shell ppre code mvim filename code prepTo run MacVim emfrom em your shell ppre code mvim filename code pre Are the Lua flags necessary for any of the built in features or are they just for custom scripts plugins,1,NULL,How to automatically install Emacs packages by specifying list of package names emacs install package pI am using codepackage code to manage my Emacs extensions In order to synchronize my Emacs settings on different computers like way to specify list of package names in code emacs code file and then codepackage code could automatically search and install the packages so that don need to install them manually by calling codeM package list packages code How to do that pEmacs 25 will automatically keep track of user installed packages in the customizable codepackage selected packages code variable codepackage install code will update the customize variable and you can install all selected packages with the codepackage install selected packages code function ppAnother convenient advantage of this approach is that you can use codepackage autoremove code to automatically remove packages that are not included in codepackage selected packages code though it will preserve dependencies ppre code package initialize unless package archive contents package refresh contents package install selected packages code prepSource href http endlessparentheses com new in package el in emacs 25 user selected packages html rel noreferrer http endlessparentheses com new in package el in emacs 25 user selected packages html 75096,3469049,406249,Revival Great Answer Yearling Nice Answer Announcer Quorum Caucus Nice Answer Enlightened Census Nice Answer Necromancer Caucus Constituent Yearling Nice Answer Nice Answer Enlightened Census Revival Revival Caucus Good Answer Announcer Good Answer Yearling Pundit,NULL,pBuilding Vim on Mac OS is waste of time ppStep Download the appropriate MacVim build from href https github com b4winckler macvim releases there ppStep Put MacVim app into the code Applications code directory ppStep Put the bundled codemvim code script somewhere in your codePATH code ppDone ppTo run MacVim emin em your shell ppre code mvim filename code prepTo run MacVim emfrom em your shell ppre code mvim filename code pre Are the Lua flags necessary for any of the built in features or are they just for custom scripts plugins,1,NULL,How to automatically install Emacs packages by specifying list of package names emacs install package pI am using codepackage code to manage my Emacs extensions In order to synchronize my Emacs settings on different computers like way to specify list of package names in code emacs code file and then codepackage code could automatically search and install the packages so that don need to install them manually by calling codeM package list packages code How to do that pEmacs 25 will automatically keep track of user installed packages in the customizable codepackage selected packages code variable codepackage install code will update the customize variable and you can install all selected packages with the codepackage install selected packages code function ppAnother convenient advantage of this approach is that you can use codepackage autoremove code to automatically remove packages that are not included in codepackage selected packages code though it will preserve dependencies ppre code package initialize unless package archive contents package refresh contents package install selected packages code prepSource href http endlessparentheses com new in package el in emacs 25 user selected packages html rel noreferrer http endlessparentheses com new in package el in emacs 25 user selected packages html 75097,577141,666525,NULL,NULL,NULL,0,NULL,NULL 75098,210377,1547746,Nice Answer Yearling Nice Answer Enlightened Custodian Explainer Guru ruby Nice Answer Yearling Nice Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75099,61451,1236447,Yearling Nice Answer Enlightened Guru hbase Caucus Yearling Caucus Tumbleweed Yearling Promoter Student,NULL,NULL,0,NULL,NULL 75100,1506284,1551947,Revival,NULL,NULL,0,NULL,NULL 75101,328871,1424608,NULL,NULL,NULL,0,NULL,NULL 75102,139977,1109,Good Answer Nice Answer Enlightened Good Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer java Nice Answer Populist Popular Question Good Question Great Answer Yearling Guru Guru Nice Question Good Answer Nice Answer Famous Question Nice Answer Good Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Populist Good Answer Nice Answer Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Notable Question Popular Question Revival Famous Question Good Answer Nice Answer Enlightened Yearling Popular Question Great Answer,NULL,NULL,0,NULL,NULL 75103,11527,1339816,NULL,NULL,NULL,0,NULL,NULL 75104,148912,1223490,Informed,NULL,NULL,0,NULL,NULL 75105,97105,1198285,NULL,NULL,NULL,0,NULL,NULL 75106,140787,569481,NULL,NULL,NULL,0,NULL,NULL 75107,234409,598807,Civic Duty Commentator,NULL,NULL,0,NULL,NULL 75108,1835430,430062,Good Answer Announcer Peer Pressure Custodian Great Answer Proofreader Popular Question Announcer Yearling Good Question Nice Answer Enlightened Popular Question Great Question Good Question Favorite Question Favorite Question Yearling Good Answer Announcer Custodian Notable Question Custodian Yearling Custodian Necromancer,NULL,NULL,0,NULL,NULL 75109,124661,491886,Notable Question Curious,NULL,NULL,0,NULL,NULL 75110,72033,96140,Peer Pressure Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Yearling Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Popular Question Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Good Question Popular Question Famous Question Caucus Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Caucus Popular Question Popular Question Famous Question Yearling Popular Question Notable Question Popular Question Popular Question Custodian Nice Question Popular Question Popular Question Famous Question,NULL,NULL,1,Yocto cross compiling creating symbolic link for ld linux armhf so cross compiling ld yocto pI have pre compiled libraries that must include already cross compiled for right arch in my yocto image The recipe is created and the libraries are all present ppHowever my vendor provided the libraries which reference lib ld linux so My yocto image only has lib ld linux armhf so Because of this when running codebitbake code get codeCan install my recipe r0neon no package provides ld linux so GLIBC code ppHow can rectify this Have my vendor provide libs which reference ld linux armhf so Create symbolic link at lib ld linux so If so how do do this in Yocto,NULL 75111,3766643,1137699,Supporter Teacher Citizen Patrol Editor,NULL,NULL,0,NULL,NULL 75112,169895,1240305,Popular Question Notable Question Yearling Revival Self-Learner Nice Question Notable Question Notable Question Necromancer Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 75113,227191,113937,NULL,NULL,NULL,0,NULL,NULL 75114,358963,888566,NULL,NULL,NULL,0,NULL,NULL 75115,1521177,704719,NULL,NULL,NULL,0,NULL,NULL 75116,4443,757838,NULL,NULL,NULL,0,NULL,NULL 75117,232299,544763,NULL,NULL,NULL,0,NULL,NULL 75118,259628,60549,Yearling Good Answer Guru Yearling Custodian Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 75119,701061,589857,NULL,NULL,NULL,0,NULL,NULL 75120,783217,124259,Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Nice Answer Yearling Nice Answer Enlightened c# Nice Answer Enlightened Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 75121,414204,435956,Announcer Necromancer Editor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75122,222612,380277,Popular Question Yearling Popular Question Notable Question Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75123,235311,73480,Tumbleweed,NULL,NULL,0,NULL,NULL 75124,438855,201828,Nice Answer Good Answer Necromancer Notable Question Great Answer Self-Learner Necromancer Necromancer Necromancer Guru Announcer Yearling Citizen Patrol Nice Answer Good Answer Necromancer Good Answer Nice Answer Great Answer Necromancer Revival Pundit Necromancer Yearling Good Answer Announcer Nice Answer Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75125,10784,232232,Commentator Critic Caucus Enthusiast Caucus Constituent Informed,NULL,NULL,0,NULL,NULL 75126,119207,1324958,NULL,NULL,NULL,0,NULL,NULL 75127,7030,920424,NULL,NULL,NULL,0,NULL,NULL 75128,171878,804314,Announcer Student Editor,NULL,NULL,0,NULL,NULL 75129,47556,85616,Nice Answer Enlightened Nice Answer Yearling Popular Question Nice Question Good Question Famous Question Famous Question Popular Question Favorite Question Good Question Yearling Famous Question Notable Question Nice Question Yearling Great Question,NULL,NULL,0,NULL,NULL 75130,61270,344387,Nice Answer,NULL,NULL,0,NULL,NULL 75131,1595232,1298181,Informed Autobiographer,NULL,NULL,0,NULL,NULL 75132,267387,1298181,Informed Autobiographer,NULL,NULL,0,NULL,NULL 75133,32856,850637,NULL,NULL,NULL,0,NULL,NULL 75134,28811,900476,Guru Yearling,NULL,NULL,0,NULL,NULL 75135,294865,906035,NULL,NULL,NULL,0,NULL,NULL 75136,26400,802245,NULL,NULL,NULL,0,NULL,NULL 75137,209463,402022,Strunk & White Revival Nice Answer Enlightened Nice Answer php Good Answer Necromancer javascript Yearling Nice Answer Caucus Constituent Nice Answer Nice Answer Nice Answer Revival Nice Answer Enlightened Good Answer Mortarboard Guru Nice Answer Enlightened Announcer Caucus Yearling Nice Answer Enlightened Documentation User Revival Good Answer Electorate Nice Answer Census Great Answer Necromancer Caucus Great Answer c# Yearling Announcer,NULL,NULL,0,NULL,NULL 75138,415225,3654,Nice Question Yearling Good Question,NULL,NULL,0,NULL,NULL 75139,17812,137641,Yearling Popular Question Investor Altruist Notable Question,NULL,NULL,0,NULL,NULL 75140,205741,227271,Yearling,NULL,NULL,0,NULL,NULL 75141,277748,756056,Good Answer Famous Question Guru Announcer Yearling Excavator Notable Question Revival Popular Question Announcer Yearling Great Answer Notable Question Necromancer Custodian Civic Duty Yearling,NULL,NULL,0,NULL,NULL 75142,638098,678329,Notable Question Not a Robot Popular Question,NULL,NULL,0,NULL,NULL 75143,480447,1524998,NULL,NULL,NULL,0,NULL,NULL 75144,93502,734153,Popular Question Necromancer Yearling Nice Question Popular Question Popular Question Nice Answer Excavator Popular Question Tumbleweed Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Announcer Notable Question Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 75145,777930,435729,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75146,946396,444810,Excavator Autobiographer Yearling Popular Question Nice Answer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 75147,663443,832598,NULL,NULL,NULL,0,NULL,NULL 75148,198922,910296,Popular Question,NULL,NULL,0,NULL,NULL 75149,117396,600247,Yearling Nice Question Notable Question Nice Question Good Answer Popular Question Yearling Custodian Famous Question Nice Answer Enlightened Famous Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Good Question Good Answer Nice Question Popular Question python,NULL,NULL,0,NULL,NULL 75150,624039,286233,NULL,NULL,NULL,0,NULL,NULL 75151,296079,468290,NULL,NULL,NULL,0,NULL,NULL 75152,637095,1144588,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 75153,92755,97524,Notable Question Famous Question Nice Answer Popular Question Yearling Nice Answer Enlightened Famous Question Popular Question Nice Question Excavator Yearling Nice Answer Popular Question Popular Question Notable Question Inquisitive Announcer Custodian Popular Question Yearling Good Question Revival,NULL,NULL,0,NULL,NULL 75154,261175,955216,NULL,NULL,NULL,0,NULL,NULL 75155,540789,725452,Census,NULL,NULL,0,NULL,NULL 75156,779890,633142,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75157,489347,881577,Informed,NULL,NULL,0,NULL,NULL 75158,664664,496146,Notable Question,NULL,NULL,0,NULL,NULL 75159,39204,1150924,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75160,730361,932162,NULL,NULL,NULL,0,NULL,NULL 75161,7659,366997,NULL,NULL,NULL,0,NULL,NULL 75162,88173,952785,NULL,NULL,NULL,0,NULL,NULL 75163,192866,48417,Yearling Revival Good Answer Popular Question,NULL,NULL,0,NULL,NULL 75164,99305,7546,Nice Answer java Caucus,NULL,NULL,0,NULL,NULL 75165,487174,1142682,Necromancer,NULL,NULL,0,NULL,NULL 75166,1512444,1084466,NULL,NULL,NULL,0,NULL,NULL 75167,96358,95313,Necromancer Nice Answer Enlightened Guru Yearling Nice Answer Good Answer Nice Answer Revival Good Answer Guru Yearling Good Answer Great Answer Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 75168,696837,52273,Yearling Necromancer Popular Question Nice Answer Enlightened Notable Question Revival Proofreader python Nice Answer Popular Question Notable Question Yearling Custodian Custodian Notable Question Inquisitive Nice Question Custodian Yearling Nice Question Great Answer Custodian Notable Question Custodian Nice Answer Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75169,1173244,364982,NULL,NULL,NULL,0,NULL,NULL 75170,334149,910004,NULL,NULL,NULL,0,NULL,NULL 75171,12445,83235,Nice Answer Enlightened Necromancer Informed,NULL,NULL,0,NULL,NULL 75172,263722,760608,NULL,NULL,NULL,0,NULL,NULL 75173,1119298,744375,Popular Question,NULL,NULL,0,NULL,NULL 75174,591949,1434375,NULL,NULL,NULL,0,NULL,NULL 75175,298982,919280,Notable Question Famous Question Popular Question Notable Question Yearling Popular Question Inquisitive Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Famous Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 75176,10008849,113797,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75177,15954,113797,Nice Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75178,763098,1305330,Teacher,NULL,NULL,0,NULL,NULL 75179,415161,251185,Yearling Nice Answer Yearling Yearling Necromancer,NULL,NULL,0,NULL,NULL 75180,297916,948721,NULL,NULL,NULL,0,NULL,NULL 75181,199607,8054,NULL,NULL,NULL,0,NULL,NULL 75182,16573,1005614,NULL,NULL,NULL,0,NULL,NULL 75183,1349747,1270545,NULL,NULL,NULL,0,NULL,NULL 75184,6465,476138,NULL,NULL,NULL,0,NULL,NULL 75185,360768,682475,NULL,NULL,NULL,0,NULL,NULL 75186,1354468,823231,Yearling Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 75187,47106,25192,Commentator Announcer Announcer Necromancer Caucus Announcer,NULL,NULL,0,NULL,NULL 75188,657086,956714,Good Question Yearling Supporter Commentator,NULL,NULL,1,How to reliably measure time of sess run in TensorFlow python caching tensorflow profiling timeit pMy problem is that if the arguments of an operation are constant TF caches the results ppre codea tf constant np random randn 100 101 tf constant np random randn 100 102 tf constant np random randn 101 102 Some expensive operation res tf einsum si sj ij gt timeit sess run res code preblockquote pThe slowest run took 577 76 times longer than the fastest This could mean that an intermediate result is being cached 10000 loops best of 137 µs per loop blockquotepIf generating the tensors from scratch on each run then also counting the overhead on tensor generation ppre codea tf random normal 100 101 tf random normal 100 102 tf random normal 101 102 res tf einsum si sj ij gt timeit sess run res code preblockquote pThe slowest run took 07 times longer than the fastest This could mean that an intermediate result is being cached 10 loops best of 28 ms per loop blockquotepMaybe in this particular example the overhead is not large but for cheaper operations it can be significant ppIs there any way to freeze the arguments so they will not be recomputed on each sess run but suppress all other caching,NULL 75189,169919,800789,NULL,NULL,NULL,0,NULL,NULL 75190,191327,8543,Curious Investor Necromancer,NULL,NULL,0,NULL,NULL 75191,456636,1032780,Revival,NULL,NULL,0,NULL,NULL 75192,76112,385913,Guru Notable Question Good Question Revival Yearling Famous Question Famous Question Guru Nice Answer Disciplined Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Guru Notable Question Yearling Popular Question Good Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 75193,749322,822837,Popular Question Good Question Popular Question Citizen Patrol Notable Question Nice Answer Notable Question Yearling Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 75194,85044,1207998,Yearling Enthusiast Famous Question Good Question Custodian Citizen Patrol Curious Informed,NULL,NULL,0,NULL,NULL 75195,3097,1202327,NULL,NULL,NULL,0,NULL,NULL 75196,602920,1015916,Nice Question Popular Question Yearling Critic,NULL,NULL,0,NULL,NULL 75197,30527,106891,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75198,154218,17801,Citizen Patrol Great Answer Custodian Yearling Necromancer Yearling Yearling,NULL,pThe best definition ve found so far is href http jamesshore com Blog Dependency Injection Demystified html rel noreferrer one by James Shore pblockquote Dependency Injection is 25 dollar term for cent concept Dependency injection means giving an object its instance variables blockquotepThere is href http martinfowler com articles injection html rel noreferrer an article by Martin Fowler that may prove useful too ppDependency injection is basically providing the objects that an object needs its dependencies instead of having it construct them itself It very useful technique for testing since it allows dependencies to be mocked or stubbed out ppDependencies can be injected into objects by many means such as constructor injection or setter injection One can even use specialized dependency injection frameworks Spring to do that but they certainly aren required You don need those frameworks to have dependency injection Instantiating and passing objects dependencies explicitly is just as good an injection as injection by framework For the same reason that every framework gets or at least should get written because there is lot of repeated boilerplate code that needs to be written once you reach certain complexity The problem is many times folks will reach for framework even when it isn strictly needed,0,NULL,NULL 75199,5003,971869,NULL,NULL,NULL,0,NULL,NULL 75200,164862,287604,Nice Answer Revival Yearling Custodian,NULL,NULL,0,NULL,NULL 75201,998,933120,NULL,NULL,NULL,0,NULL,NULL 75202,382878,420033,NULL,NULL,NULL,0,NULL,NULL 75203,191163,1021936,ruby Yearling Yearling Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 75204,1955,491604,Notable Question Stellar Question Popular Question Great Question Notable Question Popular Question Notable Question Yearling Famous Question Famous Question Famous Question Nice Question Yearling Nice Question Good Question Inquisitive Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 75205,516200,835576,NULL,NULL,NULL,0,NULL,NULL 75206,51339,957034,NULL,NULL,NULL,0,NULL,NULL 75207,3245191,818113,NULL,NULL,NULL,0,NULL,NULL 75208,260321,818113,NULL,NULL,NULL,0,NULL,NULL 75209,180894,817726,NULL,NULL,NULL,0,NULL,NULL 75210,830351,292719,NULL,NULL,NULL,0,NULL,NULL 75211,3891,54364,Yearling Nice Answer Caucus Constituent Yearling Caucus Documentation User Yearling Nice Answer Enlightened Caucus,NULL,NULL,0,NULL,NULL 75212,469536,926688,Informed Editor Enthusiast Revival Citizen Patrol Organizer,NULL,NULL,0,NULL,NULL 75213,287678,1486434,NULL,NULL,NULL,0,NULL,NULL 75214,68090,551932,Supporter Yearling Critic Editor,NULL,pExport var ppre codeCC TEST REPORTER ID code prepRun ppre codefor pkg in go list grep vendor do go test coverprofile echo pkg tr cover pkgdoneecho mode set gt outgrep mode cover gt gt outrm cover cc test reporter after build code pre read on gocov readme https github com axw gocov gocov convert,1,NULL,Codeclimate test coverage formatter for Golang go continuous integration code coverage code climate pNowhere in href https docs codeclimate com v1 docs setting up test coverage section supported languages and formats rel nofollow noreferrer Codeclimate docs written how to specify coverage formatter But when trying to send coverage to Codeclimate ppre code cc test reporter before build cc test reporter after build code prepIt is failing pblockquote pError could not find any viable formatter available formatters simplecov lcov coverage py clover gocov gcov cobertura jacoco blockquotepI have codegocov code installed Also generated report with codegoconv code ppre codegocov test coverprofile out code prepAnd tried to specify the report file to Codeclimate in various ways ppre code cc test reporter after build out cc test reporter after build lt out code prepBut had no luck ppI haven found any formatter related directives for code codeclimate yml code file The doc is written in super you know style so it didn help How to enable send test coverage with Codeclimate pExport var ppre codeCC TEST REPORTER ID code prepRun ppre codefor pkg in go list grep vendor do go test coverprofile echo pkg tr cover pkgdoneecho mode set gt outgrep mode cover gt gt outrm cover cc test reporter after build code pre 75215,269470,705110,NULL,NULL,NULL,0,NULL,NULL 75216,1973652,301773,Popular Question Enthusiast Notable Question Revival Notable Question,NULL,NULL,0,NULL,NULL 75217,74685,1431833,Notable Question,NULL,NULL,0,NULL,NULL 75218,211163,1424910,NULL,NULL,NULL,0,NULL,NULL 75219,292143,1336746,NULL,NULL,NULL,0,NULL,NULL 75220,1028969,576761,NULL,NULL,NULL,0,NULL,NULL 75221,299376,1086792,NULL,NULL,NULL,0,NULL,NULL 75222,47065,282289,Notable Question Yearling,NULL,NULL,0,NULL,NULL 75223,634198,626978,Notable Question Great Question Yearling Notable Question Popular Question Yearling Popular Question Supporter Popular Question Famous Question Caucus Yearling Notable Question Nice Question Yearling Stellar Question,NULL,NULL,0,NULL,NULL 75224,84372,690156,Informed Autobiographer Scholar Editor,NULL,NULL,0,NULL,NULL 75225,219867,1447539,NULL,NULL,NULL,0,NULL,NULL 75226,168704,1296536,Curious Yearling Caucus,NULL,NULL,0,NULL,NULL 75227,88778,1538299,Scholar Editor Student Supporter Tumbleweed Teacher,NULL,NULL,0,NULL,NULL 75228,308545,1423225,NULL,NULL,NULL,0,NULL,NULL 75229,472755,636472,Custodian Revival Yearling Notable Question Famous Question Popular Question Popular Question Notable Question Notable Question Necromancer Caucus Nice Question Yearling Inquisitive Notable Question Nice Question Nice Question Nice Answer Yearling Nice Question Revival Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75230,37126,304053,NULL,NULL,NULL,0,NULL,NULL 75231,18089,304053,NULL,NULL,NULL,0,NULL,NULL 75232,366537,782567,Critic Caucus Commentator Documentation User Yearling Caucus,NULL,NULL,0,NULL,NULL 75233,13569,5903,Favorite Question Notable Question Nice Answer Yearling Notable Question Custodian Yearling Nice Answer Yearling,NULL,pThis is not the most efficient way to do it but it easier to read if you are not familiar with log maths and should be fast enough for most scenarios ppre codestring sizes KB MB GB TB double len new FileInfo filename Length int order while len gt 1024 amp amp order lt sizes Length order len len 1024 Adjust the format string to your preferences For example would show single decimal place and no space string result String Format len sizes order code pre True ve updated the code snippet Thank you pThis is not the most efficient way to do it but it easier to read if you are not familiar with log maths and should be fast enough for most scenarios ppre codestring sizes KB MB GB TB double len new FileInfo filename Length int order while len gt 1024 amp amp order lt sizes Length order len len 1024 Adjust the format string to your preferences For example would show single decimal place and no space string result String Format len sizes order code pre You are right knew should have double checked this edit but was short on time Thanks bunch,0,NULL,NULL 75234,532195,1258084,NULL,NULL,NULL,0,NULL,NULL 75235,586100,968829,Scholar,NULL,NULL,0,NULL,NULL 75236,621232,1014300,Announcer,NULL,NULL,0,NULL,NULL 75237,427673,782469,Notable Question,NULL,NULL,0,NULL,NULL 75238,14686,1028571,NULL,NULL,NULL,0,NULL,NULL 75239,491541,1235507,NULL,NULL,NULL,0,NULL,NULL 75240,30370,20302,Yearling Necromancer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 75241,149763,447074,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75242,159607,1325049,NULL,NULL,NULL,0,NULL,NULL 75243,257422,1189089,Popular Question Tumbleweed Good Question Famous Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Yearling Favorite Question Famous Question Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75244,111306,423791,Yearling Nice Question Critic Popular Question Nice Question,NULL,NULL,0,NULL,NULL 75245,206981,681979,NULL,NULL,NULL,0,NULL,NULL 75246,43123,1556257,NULL,NULL,NULL,0,NULL,NULL 75247,1913997,1556257,NULL,NULL,NULL,0,NULL,NULL 75248,1367311,801776,Revival Notable Question,NULL,NULL,0,NULL,NULL 75249,28618,459441,NULL,NULL,NULL,0,NULL,NULL 75250,213520,315365,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75251,394821,668739,NULL,NULL,NULL,0,NULL,NULL 75252,473303,865542,NULL,NULL,NULL,0,NULL,NULL 75253,7492199,447223,NULL,NULL,NULL,0,NULL,NULL 75254,96112,447223,NULL,NULL,NULL,0,NULL,NULL 75255,165377,389927,NULL,NULL,NULL,0,NULL,NULL 75256,87874,630639,NULL,NULL,NULL,0,NULL,NULL 75257,568483,1168921,Teacher,NULL,NULL,0,NULL,NULL 75258,3146275,1168921,Teacher,NULL,NULL,0,NULL,NULL 75259,212637,1415605,NULL,NULL,NULL,0,NULL,NULL 75260,193791,1084008,NULL,NULL,NULL,0,NULL,NULL 75261,439105,66086,Custodian Yearling Custodian Popular Question Self-Learner Custodian Yearling Nice Question Nice Question Documentation User Nice Answer Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75262,907720,1406,Nice Question Notable Question Yearling Good Question Popular Question Famous Question Famous Question Nice Answer Good Answer Notable Question Yearling Documentation User Popular Question Notable Question Notable Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75263,52480,178343,Famous Question Yearling Nice Answer Necromancer Yearling Popular Question Nice Answer Nice Question Yearling Nice Answer,NULL,How to implement the activity stream in social network design patterns architecture stream social networking pI developing my own social network and haven found on the web examples of implementation the stream of users actions For example how to filter actions for each users How to store the action events Which data model and object model can use for the actions stream and for the actions itselves In terms of personalization it based on analytics and machine learning Also see http getstream io personalization,0,NULL,NULL 75264,606093,1285656,NULL,NULL,NULL,0,NULL,NULL 75265,548852,81961,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 75266,2859371,81961,Notable Question Famous Question,NULL,NULL,0,NULL,NULL 75267,86675,746559,Popular Question,NULL,NULL,0,NULL,NULL 75268,300243,471780,Yearling Announcer Popular Question Nice Question Yearling Notable Question Tag Editor Caucus Constituent Custodian Custodian Self-Learner Good Question Yearling Popular Question Popular Question Famous Question Documentation User Necromancer Announcer Booster Census Notable Question,NULL,NULL,0,NULL,NULL 75269,1366033,980087,Popular Question Notable Question Necromancer Popular Question Famous Question Yearling Famous Question Caucus Famous Question Popular Question Popular Question Caucus Yearling Documentation User Notable Question Census Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75270,3732105,1395344,Critic Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 75271,662802,1034087,Editor Yearling Revival,NULL,NULL,0,NULL,NULL 75272,1126342,435336,Popular Question Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 75273,101039,435336,Popular Question Necromancer Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 75274,31460,14955,Guru multithreading Nice Answer objective-c reflection Favorite Question Nice Answer Enlightened Deputy Good Answer Guru Revival ios Nice Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Good Question Good Answer Guru Nice Answer Enlightened Nice Answer Nice Answer Great Question Nice Answer Enlightened Good Answer Good Answer Famous Question Nice Question Favorite Question Popular Question Nice Answer Enlightened Nice Question Good Answer Good Question Necromancer Good Answer Nice Answer Enlightened Famous Question Good Answer Nice Question Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Guru Guru c++ Yearling Notable Question Nice Answer Famous Question Popular Question Nice Answer Enlightened Good Answer Guru Guru Nice Question Famous Question Nice Answer Famous Question Notable Question Nice Question Notable Question Guru Good Answer Guru Stellar Question Good Answer Guru Nice Question Nice Answer Enlightened Nice Question scala Nice Answer Nice Answer Enlightened Nice Answer Famous Question Nice Answer indexing Popular Question Good Answer Favorite Question Guru Famous Question Good Answer Nice Answer Enlightened Great Question Nice Answer Notable Question Guru Nice Answer Good Answer Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Great Question Good Answer Nice Answer Enlightened Nice Answer Announcer Famous Question Populist Guru Announcer Notable Question Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Enlightened interface Good Answer Popular Question Famous Question Nice Answer Popular Question Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Famous Question Nice Answer Announcer Great Answer Nice Answer Yearling Announcer Nice Answer Enlightened Popular Question Nice Answer Great Answer Good Answer Famous Question Nice Answer Enlightened Nice Question Popular Question Announcer Nice Answer file Notable Question Announcer Notable Question Announcer Nice Question Notable Question Guru Nice Answer Enlightened Popular Question Good Answer Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Famous Question Nice Answer arrays Announcer Nice Answer Great Answer Nice Answer hashmap Nice Answer Announcer Good Answer Nice Answer Nice Question Good Answer Popular Question Good Answer Good Answer Announcer Nice Answer Nice Answer Popular Question Nice Answer Popular Question Nice Answer Good Question Nice Answer Announcer Nice Answer Enlightened Announcer Announcer Nice Answer Great Answer Guru Announcer Notable Question Notable Question Notable Question Nice Answer Enlightened Announcer Good Answer Yearling Good Answer Good Answer Announcer Notable Question Guru Good Answer Popular Question Announcer Announcer Nice Answer Good Answer Nice Answer Announcer Nice Answer Enlightened,NULL,pThis is the name of the database that has the collection with the user credentials pp href https docs mongodb com manual reference connection string connections connection options rel noreferrer https docs mongodb com manual reference connection string connections connection options ppThis is where the usernames and passwords are set up No it the name of the database not the collection And it defaults to the database you are trying to connect to Does it work without the parameter How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre byte is signed in Java so you will have to live with this Why do you have to use byte Where is the int coming from How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre so the library already gives you 127 Why do you need to convert it It does not make difference unless you use it numerically If you are sure the library really meant 128 instead you could use short or int on your end of things convert by doing 255 for negative numbers How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre Array indexes are int You can convert from your unsigned byte by doing int 255 How to correctly handle Byte values greater than 127 in Kotlin types type conversion kotlin pImagine have Kotlin program with variable codeb code of type codeByte code into which an external system writes values greater than code127 code External means that cannot change the type of the value it returns pp codeval Int 128val Byte toByte code ppBoth codea toByte code and codeb toInt code return code 128 code ppImagine want to get the correct value code128 code from the variable codeb code How can do it ppIn other words What implementation of codemagicallyExtractRightValue code would make the following test run ppre code testByteConversion val Int 128 val Byte toByte System out println toByte System out println toInt val Int magicallyExtractRightValue Assertions assertThat isEqualTo 128 private fun magicallyExtractRightValue Byte Int throw UnsupportedOperationException not implemented code prep strongUpdate strong This solution suggested by href https stackoverflow com users 14955 thilo Thilo seems to work ppre codeprivate fun magicallyExtractRightValue Byte Int when toInt lt gt 255 toInt else gt toInt code pre http stackoverflow com questions 4266756 can we make unsigned byte in java,1,NULL,What does authSource means in mongo database url node js mongodb robo3t pi am trying to connect to my mongo database with following connection string ppre codevar Mongo url mongodb MyUSer tech 27017 chatme authSource admin code prepI am getting error as ppre code assertionError null MongoError Authentication failed name MongoError message Authentication failed ok code 18 code prepCould anyone please clear this authSource admin thing to me pThis is the name of the database that has the collection with the user credentials pp href https docs mongodb com manual reference connection string connections connection options rel noreferrer https docs mongodb com manual reference connection string connections connection options ppThis is where the usernames and passwords are set up 75275,138576,157752,Good Answer Nice Answer php Good Answer Good Answer Popular Question Yearling Nice Question Good Answer Nice Answer Nice Answer Enlightened Good Answer Guru Yearling Notable Question Nice Answer Enlightened Nice Answer Famous Question Guru Yearling Guru,NULL,NULL,0,NULL,NULL 75276,650019,1037388,NULL,NULL,NULL,0,NULL,NULL 75277,3749468,669608,NULL,NULL,NULL,0,NULL,NULL 75278,800586,669608,NULL,NULL,NULL,0,NULL,NULL 75279,882349,865498,Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 75280,40893,1536456,NULL,NULL,NULL,0,NULL,NULL 75281,49864,239938,Popular Question Nice Question Curious Notable Question Editor Yearling Critic Caucus Popular Question Caucus Informed,NULL,NULL,0,NULL,NULL 75282,197611,842392,Yearling Popular Question,NULL,NULL,0,NULL,NULL 75283,38719,1077598,NULL,NULL,NULL,0,NULL,NULL 75284,231822,137954,Notable Question Good Question Custodian Popular Question Yearling Notable Question Necromancer Nice Answer Nice Answer Enlightened Nice Answer Famous Question Popular Question Necromancer Notable Question Yearling Caucus Nice Answer Notable Question Popular Question Good Answer Popular Question Notable Question Nice Question Popular Question Nice Question Famous Question Self-Learner Yearling Good Question Nice Question,NULL,Check if package is installed and then install it if it not bash shell apt get pI working on Ubuntu system and currently this is what doing ppre codeif which command gt dev null then echo Command not found Install read if REPLY then sudo apt get install command fifi code prepIs this what most people would do Or is there more elegant solution comment should be an answer that would get the most votes,0,NULL,NULL 75285,348042,453796,NULL,NULL,NULL,0,NULL,NULL 75286,18906,656409,NULL,NULL,NULL,0,NULL,NULL 75287,116935,259465,Yearling ruby-on-rails Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75288,191227,425551,NULL,NULL,NULL,0,NULL,NULL 75289,910298,761189,Necromancer,NULL,NULL,0,NULL,NULL 75290,75220,1005963,Popular Question Popular Question Teacher,NULL,NULL,0,NULL,NULL 75291,590408,1103701,NULL,NULL,NULL,0,NULL,NULL 75292,71491,379160,Necromancer Yearling Nice Answer Necromancer Guru Necromancer css Nice Answer Electorate Yearling Popular Question Custodian Announcer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 75293,86294,374774,NULL,NULL,NULL,0,NULL,NULL 75294,1326204,1089272,NULL,NULL,NULL,0,NULL,NULL 75295,264609,682168,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 75296,170600,1299368,Enthusiast Nice Answer,NULL,NULL,0,NULL,NULL 75297,1376175,1370302,NULL,NULL,NULL,0,NULL,NULL 75298,128464,631675,NULL,NULL,NULL,0,NULL,NULL 75299,110495,262117,NULL,NULL,NULL,0,NULL,NULL 75300,499799,689493,NULL,NULL,NULL,0,NULL,NULL 75301,294545,979559,NULL,NULL,NULL,0,NULL,NULL 75302,292137,160258,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75303,194436,1035768,NULL,NULL,NULL,0,NULL,NULL 75304,460249,507519,Nice Answer Nice Answer Enlightened Nice Answer Good Answer Notable Question Nice Answer Enlightened Nice Answer gcc Nice Answer Popular Question Nice Answer Enlightened Nice Question Popular Question Good Answer Nice Question Nice Answer Enlightened Guru Popular Question linux Good Answer Good Answer Good Question Yearling Caucus Constituent Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Good Answer sqlite Nice Question Good Answer Notable Question Good Answer Nice Answer Nice Answer Popular Question Nice Question Guru Good Answer Guru Notable Question Revival java Good Answer Notable Question Guru Nice Answer Yearling Nice Answer Nice Answer Enlightened Notable Question Populist Good Answer Notable Question Nice Answer Guru Great Answer Announcer Announcer Announcer Popular Question Nice Answer Enlightened Famous Question Nice Answer Enlightened Guru Good Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 75305,330655,1103180,Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75306,987308,599526,Yearling Critic Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 75307,354838,1551690,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75308,187199,788581,NULL,NULL,NULL,0,NULL,NULL 75309,1042759,610736,Caucus,NULL,NULL,0,NULL,NULL 75310,909901,1496587,NULL,NULL,NULL,0,NULL,NULL 75311,262773,561285,Yearling Custodian Notable Question Caucus Yearling Popular Question Nice Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 75312,3299381,924255,NULL,NULL,NULL,0,NULL,NULL 75313,495799,823675,NULL,NULL,NULL,0,NULL,NULL 75314,296224,650221,NULL,NULL,NULL,0,NULL,NULL 75315,577918,956691,Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 75316,509012,60373,Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 75317,213313,126963,Yearling Commentator Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 75318,993118,360494,Notable Question Yearling,NULL,NULL,0,NULL,NULL 75319,3933092,360494,Notable Question Yearling,NULL,NULL,0,NULL,NULL 75320,64137,654273,NULL,NULL,NULL,0,NULL,NULL 75321,253848,854740,NULL,NULL,NULL,0,NULL,NULL 75322,855888,1191555,NULL,NULL,NULL,0,NULL,NULL 75323,93609,9358,NULL,NULL,NULL,0,NULL,NULL 75324,880782,821481,NULL,NULL,NULL,0,NULL,NULL 75325,452173,821481,NULL,NULL,NULL,0,NULL,NULL 75326,99367,969807,Yearling Nice Question Famous Question Necromancer Famous Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 75327,79385,24618,Good Question Popular Question Custodian Investor Yearling Announcer Popular Question Yearling Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 75328,1354140,770239,NULL,NULL,NULL,0,NULL,NULL 75329,164903,496134,NULL,NULL,NULL,0,NULL,NULL 75330,125061,348216,Notable Question Yearling Nice Question Yearling Famous Question Guru Yearling,NULL,NULL,0,NULL,NULL 75331,28651,934675,NULL,NULL,NULL,0,NULL,NULL 75332,475906,1483640,NULL,NULL,NULL,0,NULL,NULL 75333,475911,1483640,NULL,NULL,NULL,0,NULL,NULL 75334,716604,869688,Notable Question Teacher Supporter,NULL,NULL,0,NULL,NULL 75335,66041,118567,Nice Answer,NULL,NULL,0,NULL,NULL 75336,9243,848054,NULL,NULL,NULL,0,NULL,NULL 75337,137967,1234490,Yearling Necromancer,NULL,NULL,0,NULL,NULL 75338,190255,419034,Supporter,NULL,NULL,0,NULL,NULL 75339,113355,231417,Popular Question Favorite Question Great Question Notable Question Popular Question Nice Question Notable Question android Guru Yearling Popular Question Announcer Notable Question Good Answer Nice Answer Enlightened Notable Question Notable Question Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 75340,501696,340885,Nice Question Yearling Notable Question Popular Question Custodian Nice Question Critic Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75341,116651,142880,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 75342,1806354,727274,NULL,NULL,NULL,0,NULL,NULL 75343,762782,935304,Informed Autobiographer Census,NULL,NULL,0,NULL,NULL 75344,86707,560831,Notable Question Yearling Popular Question Notable Question Yearling Popular Question Inquisitive Notable Question Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75345,268917,643302,Yearling Popular Question Revival Caucus Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75346,226956,173076,Popular Question,NULL,NULL,0,NULL,NULL 75347,167506,708238,NULL,NULL,NULL,0,NULL,NULL 75348,175019,1294769,Teacher,NULL,NULL,0,NULL,NULL 75349,513474,760031,Popular Question Supporter,NULL,NULL,0,NULL,NULL 75350,30202,622510,Yearling Custodian Yearling Nice Answer Good Answer Custodian Census Yearling Caucus Enthusiast,NULL,NULL,0,NULL,NULL 75351,24241,147163,Nice Question Good Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 75352,71341,695107,Scholar,NULL,NULL,0,NULL,NULL 75353,39733,880080,NULL,NULL,NULL,0,NULL,NULL 75354,63248,1182876,NULL,NULL,NULL,0,NULL,NULL 75355,379204,1374652,NULL,NULL,NULL,0,NULL,NULL 75356,423762,575816,NULL,NULL,NULL,0,NULL,NULL 75357,403948,365159,NULL,NULL,NULL,0,NULL,NULL 75358,169150,764982,NULL,NULL,NULL,0,NULL,NULL 75359,3774728,764982,NULL,NULL,NULL,0,NULL,NULL 75360,297306,607935,NULL,NULL,NULL,0,NULL,NULL 75361,604116,1056295,NULL,NULL,NULL,0,NULL,NULL 75362,1571829,1359274,Notable Question,NULL,pIt depends on what you want to test strong emexactly em strong ph3Information schema h3pTo find whether the table exists emno matter who asking em querying the information schema codeinformation schema tables code is strongincorrect strong strictly speaking because href http www postgresql org docs current interactive infoschema tables html rel noreferrer per documentation pblockquote pOnly those tables and views are shown that the current user has access to by way of being the owner or having some privilege blockquotepThe query href https stackoverflow com 20584058 939860 demonstrated by can return codeFALSE code but the table can still exist It answers the question pp strong emHow to check whether table or view exists and the current user has access to it em strong ppre codeSELECT EXISTS SELECT FROM information schema tables WHERE table schema schema name AND table name table name code prepThe information schema is mainly useful to stay portable across major versions and across different RDBMS But the implementation is slow because Postgres has to use sophisticated views to comply to the standard codeinformation schema tables code is rather simple example And some information like OIDs gets lost in translation from the system catalogs which emactually em carry all information ph3System catalogs h3pYour question was pp strong emHow to check whether table exists em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name AND relkind only tables code prepUse the system catalogs codepg class code and codepg namespace code directly which is also considerably faster However href http www postgresql org docs current interactive catalog pg class html rel noreferrer per documentation on codepg class code pblockquote pThe catalog codepg class code catalogs tables and most everything else that has columns or is otherwise similar to table This includes strongindexes strong but see also codepg index code strongsequences strong strongviews strong strongmaterialized views strong strongcomposite types strong and strongTOAST tables strong blockquotepFor this particular question you can also use the href https www postgresql org docs current static view pg tables html rel noreferrer system view strong codepg tables code strong bit simpler and more portable across major Postgres versions which is hardly of concern for this basic query ppre codeSELECT EXISTS SELECT FROM pg tables WHERE schemaname schema name AND tablename table name code prepIdentifiers have to be unique among emall em objects mentioned above If you want to ask pp strong emHow to check whether name for table or similar object in given schema is taken em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name code preulli href https dba stackexchange com questions 75015 query to return output column names and data types of query table or view 75124 75124 Related answer on dba SE discussing strong Information schema vs system catalogs strong li ulh2Alternative cast to href http www postgresql org docs current interactive datatype oid html rel noreferrer strong coderegclass code strong h2pre codeSELECT schema name table name regclass code prepThis emraises an exception em if the optionally schema qualified table or other object occupying that name does not exist ppIf you do not schema qualify the table name cast to coderegclass code defaults to the href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 strong codesearch path code strong and returns the OID for the first table found or an exception if the table is in none of the listed schemas Note that the system schemas codepg catalog code and codepg temp code the schema for temporary objects of the current session are automatically part of the codesearch path code ppYou can use that and catch possible exception in function Example pulli href https stackoverflow com questions 11905868 Check if sequence exists in Postgres plpgsql 11919600 11919600 Check if sequence exists in Postgres plpgsql li ulpA query like above avoids possible exceptions and is therefore slightly faster ph2 href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer codeto regclass rel name code in Postgres h2pMuch simpler now ppre codeSELECT to regclass schema name table name code prepSame as the cast href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer strongbut strong it returns pblockquote null rather than throwing an error if the name is not found blockquote You will get that error if you try to use the to regclass function on version of postgres older than Must have,0,NULL,NULL 75363,4075778,1359274,Notable Question,NULL,pIt depends on what you want to test strong emexactly em strong ph3Information schema h3pTo find whether the table exists emno matter who asking em querying the information schema codeinformation schema tables code is strongincorrect strong strictly speaking because href http www postgresql org docs current interactive infoschema tables html rel noreferrer per documentation pblockquote pOnly those tables and views are shown that the current user has access to by way of being the owner or having some privilege blockquotepThe query href https stackoverflow com 20584058 939860 demonstrated by can return codeFALSE code but the table can still exist It answers the question pp strong emHow to check whether table or view exists and the current user has access to it em strong ppre codeSELECT EXISTS SELECT FROM information schema tables WHERE table schema schema name AND table name table name code prepThe information schema is mainly useful to stay portable across major versions and across different RDBMS But the implementation is slow because Postgres has to use sophisticated views to comply to the standard codeinformation schema tables code is rather simple example And some information like OIDs gets lost in translation from the system catalogs which emactually em carry all information ph3System catalogs h3pYour question was pp strong emHow to check whether table exists em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name AND relkind only tables code prepUse the system catalogs codepg class code and codepg namespace code directly which is also considerably faster However href http www postgresql org docs current interactive catalog pg class html rel noreferrer per documentation on codepg class code pblockquote pThe catalog codepg class code catalogs tables and most everything else that has columns or is otherwise similar to table This includes strongindexes strong but see also codepg index code strongsequences strong strongviews strong strongmaterialized views strong strongcomposite types strong and strongTOAST tables strong blockquotepFor this particular question you can also use the href https www postgresql org docs current static view pg tables html rel noreferrer system view strong codepg tables code strong bit simpler and more portable across major Postgres versions which is hardly of concern for this basic query ppre codeSELECT EXISTS SELECT FROM pg tables WHERE schemaname schema name AND tablename table name code prepIdentifiers have to be unique among emall em objects mentioned above If you want to ask pp strong emHow to check whether name for table or similar object in given schema is taken em strong ppre codeSELECT EXISTS SELECT FROM pg catalog pg class JOIN pg catalog pg namespace ON oid relnamespace WHERE nspname schema name AND relname table name code preulli href https dba stackexchange com questions 75015 query to return output column names and data types of query table or view 75124 75124 Related answer on dba SE discussing strong Information schema vs system catalogs strong li ulh2Alternative cast to href http www postgresql org docs current interactive datatype oid html rel noreferrer strong coderegclass code strong h2pre codeSELECT schema name table name regclass code prepThis emraises an exception em if the optionally schema qualified table or other object occupying that name does not exist ppIf you do not schema qualify the table name cast to coderegclass code defaults to the href https stackoverflow com questions 9067335 how to create table inside specific schema by default in postgres 9067777 9067777 strong codesearch path code strong and returns the OID for the first table found or an exception if the table is in none of the listed schemas Note that the system schemas codepg catalog code and codepg temp code the schema for temporary objects of the current session are automatically part of the codesearch path code ppYou can use that and catch possible exception in function Example pulli href https stackoverflow com questions 11905868 Check if sequence exists in Postgres plpgsql 11919600 11919600 Check if sequence exists in Postgres plpgsql li ulpA query like above avoids possible exceptions and is therefore slightly faster ph2 href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer codeto regclass rel name code in Postgres h2pMuch simpler now ppre codeSELECT to regclass schema name table name code prepSame as the cast href http www postgresql org docs current interactive functions info html FUNCTIONS INFO CATALOG TABLE rel noreferrer strongbut strong it returns pblockquote null rather than throwing an error if the name is not found blockquote You will get that error if you try to use the to regclass function on version of postgres older than Must have,0,NULL,NULL 75364,478610,1280124,Notable Question,NULL,NULL,0,NULL,NULL 75365,909786,581289,Yearling Caucus,NULL,NULL,0,NULL,NULL 75366,418886,581289,Yearling Caucus,NULL,NULL,0,NULL,NULL 75367,288837,1452232,NULL,NULL,NULL,0,NULL,NULL 75368,429479,686379,NULL,NULL,NULL,0,NULL,NULL 75369,149821,1058435,NULL,NULL,NULL,0,NULL,NULL 75370,1523591,717161,NULL,NULL,NULL,0,NULL,NULL 75371,333302,511146,NULL,NULL,NULL,0,NULL,NULL 75372,1186561,247778,Commentator Yearling Popular Question,NULL,NULL,0,NULL,NULL 75373,128178,253614,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75374,136510,653358,Commentator Scholar Student,NULL,NULL,0,NULL,NULL 75375,279647,307961,NULL,NULL,NULL,0,NULL,NULL 75376,130119,1303258,NULL,NULL,NULL,0,NULL,NULL 75377,229956,339820,Caucus Critic Yearling,NULL,NULL,0,NULL,NULL 75378,468281,413172,Documentation User,NULL,NULL,0,NULL,NULL 75379,413712,65928,Yearling Popular Question Famous Question Notable Question Good Question Popular Question Nice Question Yearling Favorite Question Nice Question Famous Question Famous Question Famous Question Famous Question Popular Question Yearling Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 75380,836834,1416987,NULL,NULL,NULL,0,NULL,NULL 75381,401958,661112,Good Answer Yearling,NULL,NULL,0,NULL,NULL 75382,2867,150577,Pundit Yearling Good Answer Caucus Yearling Yearling Nice Answer Enlightened,NULL,Git Symlinks in Windows windows git symlink pOur developers use mix of Windows and Unix based OS Therefore symlinks created on Unix machines become problem for Windows developers In windows msysgit the symlink is converted to text file with path to the file it points to Instead like to convert the symlink into an actual Windows symlink ppThe strongupdated strong solution have to this is pulliWrite post checkout script that will recursively look for symlink text files liliReplace them with windows symlink using mklink with same name and extension as dummy symlink liliIgnore these windows symlink by adding entry into git info exclude li ulpI have not implemented this but believe this is solid approach to this problem ppQuestions polliWhat if any downsides do you see to this approach liliIs this post checkout script even implementable can recursively find out the dummy symlink files git creates liliHas anybody already worked on such script li ol mingw msys is old enough that it was originally designed with working on Win9x in mind Win9x doesn have anything resembling symlink,0,NULL,NULL 75383,120876,540873,Investor Altruist Guru Good Answer machine-learning Good Answer Guru Caucus Nice Answer Enlightened Yearling Caucus hdfs Documentation User Yearling Revival Great Answer Caucus Constituent Good Answer Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 75384,236753,261687,NULL,NULL,NULL,0,NULL,NULL 75385,84571,205903,Popular Question Notable Question Popular Question Informed Census,NULL,NULL,0,NULL,NULL 75386,193200,627542,NULL,NULL,NULL,0,NULL,NULL 75387,38257,237690,Notable Question Nice Question Nice Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Necromancer Nice Question Favorite Question Popular Question Popular Question Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Notable Question Yearling Nice Answer Notable Question Famous Question Notable Question Notable Question Notable Question Popular Question Great Question Popular Question Famous Question Good Question Nice Answer Notable Question Announcer Announcer Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Nice Question Notable Question Famous Question Popular Question Favorite Question Nice Answer Popular Question Famous Question Notable Question Notable Question Notable Question Nice Question Notable Question Famous Question Notable Question Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 75388,119053,1290957,Student Teacher,NULL,NULL,0,NULL,NULL 75389,212956,217756,Tumbleweed Good Question Popular Question Yearling Famous Question Nice Answer Necromancer Necromancer Caucus Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 75390,616436,409875,Nice Answer Yearling Promoter Custodian Nice Question Good Answer Excavator Yearling Popular Question Nice Answer Custodian Good Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 75391,326438,3985,Nice Answer,NULL,NULL,0,NULL,NULL 75392,274682,1501636,NULL,NULL,NULL,0,NULL,NULL 75393,557449,983702,NULL,NULL,NULL,0,NULL,NULL 75394,228170,540929,Yearling Necromancer Great Answer Yearling Commentator Yearling Census Custodian Nice Answer,NULL,NULL,0,NULL,NULL 75395,116678,1100774,NULL,NULL,NULL,0,NULL,NULL 75396,1247099,391290,Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75397,3149140,691551,Popular Question Popular Question Self-Learner Popular Question Yearling Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75398,3149892,691551,Popular Question Popular Question Self-Learner Popular Question Yearling Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75399,190682,931625,Yearling Necromancer Necromancer Civic Duty Yearling Popular Question Good Answer Populist Yearling Yearling Custodian Citizen Patrol Yearling,NULL,olli pChecking for code iter code works on sequence types but it would fail on strings strongin Python strong would like to know the right answer too until then here is one possibility which would work on strings too ppre codetry some object iterator iter some object except TypeError as te print some object is not iterable code prepThe codeiter code built in checks for the code iter code method or in the case of strings the code getitem code method lili pAnother general pythonic approach is to assume an iterable then fail gracefully if it does not work on the given object The Python glossary pblockquote pPythonic programming style that determines an object type by inspection of its method or attribute signature rather than by explicit relationship to some type object If it looks like strongduck strong and quacks like strongduck strong it must be strongduck strong By emphasizing interfaces rather than specific types well designed code improves its flexibility by allowing polymorphic substitution Duck typing avoids tests using type or isinstance strongInstead it typically employs the EAFP Easier to Ask Forgiveness than Permission style of programming strong ppre codetry for in my object except TypeError print my object is not iterable code pre blockquote lili pThe href http docs python org library collections html abcs abstract base classes rel noreferrer codecollections code module provides some abstract base classes which allow to ask classes or instances if they provide particular functionality for example ppre codeimport collectionsif isinstance collections Iterable is iterable code prepHowever this does not check for classes that are iterable through code getitem code li ol side effect of checking if an object is iterable by iterating on it as per is that you will consume the first item of generator iterator which can have some undesirable consequences,0,NULL,NULL 75400,121380,525380,Critic Yearling,NULL,NULL,0,NULL,NULL 75401,90547,722303,Popular Question,NULL,NULL,0,NULL,NULL 75402,781166,606108,Electorate Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 75403,189175,717916,NULL,NULL,NULL,0,NULL,NULL 75404,344547,1140501,NULL,NULL,NULL,0,NULL,NULL 75405,468883,623073,NULL,NULL,NULL,0,NULL,NULL 75406,588429,704040,NULL,NULL,NULL,0,NULL,NULL 75407,144841,951607,Good Answer ruby-on-rails Guru Nice Answer Yearling Nice Answer Necromancer Nice Answer Nice Answer Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 75408,176589,1338691,Caucus Yearling Nice Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 75409,40643,899892,NULL,NULL,NULL,0,NULL,NULL 75410,2167726,1326256,Enthusiast,NULL,NULL,0,NULL,NULL 75411,297176,1379875,NULL,NULL,NULL,0,NULL,NULL 75412,452934,842572,Commentator Necromancer,NULL,NULL,0,NULL,NULL 75413,838251,1316461,NULL,NULL,NULL,0,NULL,NULL 75414,71414,180783,Notable Question Famous Question Famous Question Nice Question Notable Question Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Nice Question Popular Question Good Question Yearling Great Answer Good Question Nice Question Notable Question Popular Question Notable Question Famous Question Great Question Notable Question Popular Question Notable Question Famous Question Good Question Nice Question Notable Question Popular Question Famous Question Popular Question Nice Question Famous Question Yearling Great Question Famous Question Favorite Question Famous Question Popular Question Nice Question Notable Question Famous Question Nice Question Good Question Famous Question Good Question Popular Question Popular Question Favorite Question Nice Question Popular Question Popular Question Notable Question Nice Question Yearling Popular Question Notable Question Famous Question,NULL,Un broadcasting Numpy arrays python arrays numpy numpy broadcasting pIn large code base am using codenp broadcast to code to broadcast arrays just using simple examples here ppre codeIn np array In np broadcast to In shapeOut code prepElsewhere in the code use third party functions that can operate in vectorized way on Numpy arrays but that are not ufuncs These functions don understand broadcasting which means that calling such function on arrays like codey code is inefficient Solutions such as Numpy codevectorize code aren good either because while they understand broadcasting they introduce codefor code loop over the array elements which is then very inefficient ppIdeally what like to be able to do is to have function which we can call codeunbroadcast code that returns an array with minimal shape that can be broadcasted back to the full size if needed So ppre codeIn unbroadcast In shapeOut code prepI can then run the third party functions on codez code then broadcast the result back to codey shape code ppIs there way to implement codeunbroadcast code that relies on Numpy public API If not are there any hacks that would produce the desired result mean the minimal shape that still contains all the required data to broadcast it back to the full array So in the example above shape is not,1,Un broadcasting Numpy arrays python arrays numpy numpy broadcasting pIn large code base am using codenp broadcast to code to broadcast arrays just using simple examples here ppre codeIn np array In np broadcast to In shapeOut code prepElsewhere in the code use third party functions that can operate in vectorized way on Numpy arrays but that are not ufuncs These functions don understand broadcasting which means that calling such function on arrays like codey code is inefficient Solutions such as Numpy codevectorize code aren good either because while they understand broadcasting they introduce codefor code loop over the array elements which is then very inefficient ppIdeally what like to be able to do is to have function which we can call codeunbroadcast code that returns an array with minimal shape that can be broadcasted back to the full size if needed So ppre codeIn unbroadcast In shapeOut code prepI can then run the third party functions on codez code then broadcast the result back to codey shape code ppIs there way to implement codeunbroadcast code that relies on Numpy public API If not are there any hacks that would produce the desired result,NULL 75415,810112,1235521,Popular Question Revival Popular Question Peer Pressure Critic Popular Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 75416,380220,222205,Editor,NULL,NULL,0,NULL,NULL 75417,370854,459579,Organizer Nice Answer Popular Question Scholar Yearling Caucus java Constituent Necromancer Steward Custodian Custodian Custodian Revival Necromancer Custodian Unsung Hero Caucus Yearling android Notable Question Nice Answer Yearling nfc,NULL,NULL,0,NULL,NULL 75418,78499,1486002,NULL,NULL,NULL,0,NULL,NULL 75419,350166,214919,Nice Answer Good Answer Informed Good Answer Necromancer Good Answer Good Answer Popular Question Good Answer Yearling Nice Answer Custodian Guru Guru Yearling Guru Nice Answer Great Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 75420,310250,220672,Nice Answer Yearling Good Answer Yearling Yearling Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 75421,10861028,776552,NULL,NULL,NULL,0,NULL,NULL 75422,1121881,776552,NULL,NULL,NULL,0,NULL,NULL 75423,541367,388187,Popular Question Teacher Revival Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 75424,536327,388187,Popular Question Teacher Revival Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 75425,329462,1208895,Nice Answer Yearling Good Answer Yearling Nice Answer Populist Great Answer Custodian Good Answer Yearling Necromancer Necromancer Yearling Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 75426,655593,382763,Necromancer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Revival Revival Notable Question Nice Answer Enlightened Nice Answer Enlightened Populist mysql Nice Answer Enlightened Guru Yearling Nice Answer Nice Answer Enlightened Pundit Guru Caucus Constituent Great Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Question Good Answer Great Answer Notable Question Notable Question Benefactor Yearling Nice Answer Enlightened Nice Answer Nice Answer Custodian Nice Answer sql Nice Answer Enlightened Good Answer Good Answer Revival Nice Answer Nice Answer java Nice Answer Great Answer Great Answer Caucus Good Answer Revival Nice Answer Enlightened Guru Yearling Good Answer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened,NULL,pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed what is an uniform length in the context of integers pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed sounds like different question to me truncating formatting an integer to fixed number of digits base 10 pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed as you can see the basic design is similar for 32 and 64 bits guess for different sizes the same design can be used As for which constants to use you would need to test that yourself You could use my test program https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java as starting point pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed sorry will not be able to help you You will need to read the code and try to adopt it for your use case pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed afraid don know but think no as it not using shift by 32 Also not sure if there are no conflicts that way pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed think the 64 bit version is reversible as well but it more complicated 31 is revered using 31 62 will try to write and test special reverse function That would kind of proof it is bijective right pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed added the unhash methods for both 32 bit and 64 bit now pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed from what read shouldn yield negative integers https stackoverflow com questions 2811319 difference between and Could you re check pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed yields positive or Yes the hash function may return negative numbers in Java that desired Java only has signed integers and the sign is really bit 31 highest bit the lowest bit being bit It is desired to return 32 bits For you could use unsigned integers pI found the following algorithm provides very good statistical distribution Each input bit affects each output bit with about 50 probability There are no collisions each input results in different output The algorithm is fast except if the CPU doesn have built in integer multiplication unit code assuming codeint code is 32 bit for Java replace code gt gt code with code gt gt gt code and remove codeunsigned code ppre codeunsigned int hash unsigned int gt gt 16 0x45d9f3b gt gt 16 0x45d9f3b gt gt 16 return code prepThe magic number was calculated using href https github com h2database h2database blob master h2 src test org h2 test store CalculateHashConstant java rel noreferrer special multi threaded test program that ran for many hours which calculates the avalanche effect the number of output bits that change if single input bit is changed should be nearly 16 on average independence of output bit changes output bits should not depend on each other and the probability of change in each output bit if any input bit is changed The calculated values are better than the 32 bit finalizer used by href https code google com smhasher wiki MurmurHash3 rel noreferrer MurmurHash and nearly as good not quite as when using href http en wikipedia org wiki Advanced Encryption Standard rel noreferrer AES slight advantage is that the same constant is used twice it did make it slightly faster the last time tested not sure if it still the case ppYou can reverse the process get the input value from the hash if you replace the code0x45d9f3b code with code0x119de1f3 code the href https lemire me blog 2017 09 18 computing the inverse of odd integers rel noreferrer multiplicative inverse ppre codeunsigned int unhash unsigned int gt gt 16 0x119de1f3 gt gt 16 0x119de1f3 gt gt 16 return code prepFor 64 bit numbers suggest to use the following even thought it might not be the fastest This one is based on href http xorshift di unimi it splitmix64 rel noreferrer splitmix64 which seems to be based on the blog article href http zimbry blogspot it 2011 09 better bit mixing improving on html rel noreferrer Better Bit Mixing mix 13 ppre codeuint64 hash uint64 gt gt 30 UINT64 0xbf58476d1ce4e5b9 gt gt 27 UINT64 0x94d049bb133111eb gt gt 31 return code prepFor Java use codelong code add codeL code to the constant replace code gt gt code with code gt gt gt code and remove codeunsigned code In this case reversing is more complicated ppre codeuint64 unhash uint64 gt gt 31 gt gt 62 UINT64 0x319642b2d24d8ec3 gt gt 27 gt gt 54 UINT64 0x96de1b173f119089 gt gt 30 gt gt 60 return code prepUpdate You may also want to look at the href https github com skeeto hash prospector rel noreferrer Hash Function Prospector project where other possibly better constants are listed The 32 bit hash is modelled after the 64 bit hash just simpler for speed and with different magic number which was found as described in the answer The 64 bit hash is based on splitmix64 see link in the answer pre codepublic static byte serialize Object obj throws IOException ByteArrayOutputStream out new ByteArrayOutputStream ObjectOutputStream os new ObjectOutputStream out os writeObject obj return out toByteArray public static Object deserialize byte data throws IOException ClassNotFoundException ByteArrayInputStream in new ByteArrayInputStream data ObjectInputStream is new ObjectInputStream in return is readObject code pre Yes those operations can run out of memory specially deserialize it relatively easy to construct small byte array that will be deserialized into extremely large object which will cause out of memory There is also security risk to deserialize any byte array but this answer is not about security aspects pre codepublic static byte serialize Object obj throws IOException ByteArrayOutputStream out new ByteArrayOutputStream ObjectOutputStream os new ObjectOutputStream out os writeObject obj return out toByteArray public static Object deserialize byte data throws IOException ClassNotFoundException ByteArrayInputStream in new ByteArrayInputStream data ObjectInputStream is new ObjectInputStream in return is readObject code pre probably because you tried to deserialize but the input the byte array contains JSON text file starting with st That won work You can only deserialize things that were serialized with the above method To read JSON file try searching for convert JSON to Java object or similar pre codepublic static byte serialize Object obj throws IOException ByteArrayOutputStream out new ByteArrayOutputStream ObjectOutputStream os new ObjectOutputStream out os writeObject obj return out toByteArray public static Object deserialize byte data throws IOException ClassNotFoundException ByteArrayInputStream in new ByteArrayInputStream data ObjectInputStream is new ObjectInputStream in return is readObject code pre think you are not using it correctly Please ask new question How to find out if debug mode is enabled java eclipse debugging pHow can Java program find out if it is running in debug mode ppThe application should behave bit different in regular “full speed” mode than in “debug mode” when debugger is attached when running in debug mode The application communicates over TCP with either another computer another process or within itself My co worker wants us to use codeSocket setSoTimeout 1000 code by default so that reads from the socket can block for at most second When debugging this is not enough of course and the application stops working as it should So solution would be to set the codeSO TIMEOUT code higher but just in debug mode for example unlimited Now don always set breakpoints or don want use debug build where could set the “debug” property myself Sometimes attach the debugger remote debugging mainly using Eclipse so solution that just works there is OK ppPossible answers include polli pTo find out if run in debug mode use the following method in codejava lang management code or codejavax management code lili pYour co worker is wrong for reason you shouldn set codeSO TIMEOUT code to second by default li olh2Update h2pI know about the system property approach but leave the question open to solve my original question Your definition of debug mode does not match my definition and you have very different use case In your case assume using configuration setting system property or other is just fine For my use case it not,0,NULL,NULL 75427,568625,834633,NULL,NULL,NULL,0,NULL,NULL 75428,563720,848951,NULL,NULL,NULL,0,NULL,NULL 75429,1018314,1220637,NULL,NULL,NULL,0,NULL,NULL 75430,168756,57505,Yearling Guru Nice Answer Yearling Notable Question Guru Enlightened Nice Question Notable Question Good Answer Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 75431,607181,611472,NULL,NULL,NULL,0,NULL,NULL 75432,129310,1222108,Commentator Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75433,64211,528009,Popular Question,NULL,NULL,0,NULL,NULL 75434,3328670,806977,NULL,NULL,NULL,0,NULL,NULL 75435,478262,596540,Revival,NULL,NULL,0,NULL,NULL 75436,477722,605586,Yearling Custodian Custodian Necromancer Self-Learner Necromancer Caucus Constituent Announcer Necromancer Yearling Popular Question Nice Answer Caucus Necromancer Announcer Documentation User Yearling Caucus Notable Question Announcer Nice Answer,NULL,NULL,0,NULL,NULL 75437,1032539,857337,NULL,NULL,NULL,0,NULL,NULL 75438,484760,166161,Notable Question Necromancer,NULL,NULL,0,NULL,NULL 75439,232412,594880,NULL,NULL,NULL,0,NULL,NULL 75440,383264,1081939,NULL,NULL,NULL,0,NULL,NULL 75441,313189,653038,NULL,NULL,NULL,0,NULL,NULL 75442,230815,212303,Good Answer Popular Question,NULL,NULL,0,NULL,NULL 75443,1517560,690350,Good Answer Popular Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 75444,124563,30700,Notable Question Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75445,248069,183763,Yearling Revival Yearling Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 75446,714363,496554,Yearling Yearling Caucus Custodian Yearling,NULL,pHere is my solution to the problem bit late perhaps But it could maybe help others ppre code Javascript to enable link to tabvar url document location toString if url match nav tabs href url split tab show Change hash for page reload nav tabs on shown bs tab function window location hash target hash code pre AnalogWeapon It four year since wrote this answer But am guessing you are absolutely correct window hash could probably be used on both places,0,NULL,NULL 75447,28770,1418846,NULL,NULL,NULL,0,NULL,NULL 75448,705220,529959,Supporter,NULL,NULL,0,NULL,NULL 75449,140596,690994,NULL,NULL,NULL,0,NULL,NULL 75450,512355,1418223,NULL,NULL,NULL,0,NULL,NULL 75451,393823,115355,Famous Question Good Answer Yearling Famous Question Popular Question Popular Question Yearling Popular Question Good Question Favorite Question Good Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75452,384309,115355,Famous Question Good Answer Yearling Famous Question Popular Question Popular Question Yearling Popular Question Good Question Favorite Question Good Answer Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75453,438435,1177804,NULL,NULL,NULL,0,NULL,NULL 75454,41382,176484,Popular Question Nice Answer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75455,203342,59953,Good Answer Yearling,NULL,NULL,0,NULL,NULL 75456,1294,240976,Popular Question Popular Question Necromancer Yearling Popular Question Notable Question Popular Question Famous Question Notable Question Yearling Popular Question Custodian Organizer Tag Editor Informed Citizen Patrol Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 75457,97431,412816,NULL,NULL,NULL,0,NULL,NULL 75458,269480,216150,Good Answer Yearling Nice Answer Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 75459,233758,198843,Notable Question Famous Question Yearling Critic Caucus Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 75460,400297,1485784,Commentator Caucus Popular Question Nice Question Notable Question Yearling Caucus Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 75461,396615,438024,Yearling Yearling Nice Question Nice Question,NULL,NULL,0,NULL,NULL 75462,146393,332760,Notable Question,NULL,NULL,0,NULL,NULL 75463,1008381,44123,Good Answer,NULL,NULL,0,NULL,NULL 75464,408883,622417,Good Answer,NULL,NULL,0,NULL,NULL 75465,51079,103396,Yearling Yearling Excavator Good Answer Announcer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 75466,470598,1118117,NULL,NULL,NULL,0,NULL,NULL 75467,3107998,785202,NULL,NULL,NULL,0,NULL,NULL 75468,1238474,344792,Nice Answer Enlightened Nice Answer Popular Question Yearling Nice Answer Enlightened Self-Learner Popular Question Caucus Yearling Documentation User Popular Question Caucus Yearling Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75469,593985,941996,NULL,NULL,NULL,0,NULL,NULL 75470,96722,1364154,NULL,NULL,NULL,0,NULL,NULL 75471,810585,759762,java Nice Answer Yearling Custodian Nice Answer Curious Yearling Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75472,384138,804840,Necromancer Nice Answer Yearling Caucus Good Answer Yearling Necromancer Yearling Documentation User Good Answer Caucus Yearling Scholar,NULL,NULL,0,NULL,NULL 75473,239864,124983,Good Answer Good Answer Yearling Popular Question Nice Answer Caucus Famous Question Nice Answer Nice Answer Enlightened Yearling Announcer Great Answer Nice Answer Enlightened Good Question Popular Question Caucus Great Answer Nice Answer Yearling Good Answer Great Answer,NULL,NULL,0,NULL,NULL 75474,1520686,996446,Popular Question,NULL,NULL,0,NULL,NULL 75475,45455,279920,Necromancer,NULL,NULL,0,NULL,NULL 75476,186707,664214,Supporter Editor Excavator,NULL,NULL,0,NULL,NULL 75477,84666,581102,NULL,NULL,NULL,0,NULL,NULL 75478,12386,328043,Nice Answer Tumbleweed Critic,NULL,NULL,0,NULL,NULL 75479,110872,373007,Student Notable Question,NULL,NULL,0,NULL,NULL 75480,477734,870511,NULL,NULL,NULL,0,NULL,NULL 75481,1650966,334485,Nice Answer Enlightened Popular Question r Yearling Nice Question Good Answer Good Answer Famous Question Good Answer Yearling Popular Question Guru Notable Question Yearling Guru,NULL,NULL,0,NULL,NULL 75482,377510,176860,Good Question Notable Question,NULL,NULL,0,NULL,NULL 75483,141081,998068,NULL,NULL,NULL,0,NULL,NULL 75484,424854,486990,Announcer Yearling Popular Question Caucus Popular Question Announcer Caucus Announcer Yearling Caucus Yearling Pundit Popular Question,NULL,NULL,0,NULL,NULL 75485,261095,497139,NULL,NULL,NULL,0,NULL,NULL 75486,11164310,1345877,Popular Question,NULL,NULL,0,NULL,NULL 75487,187073,1176768,NULL,NULL,NULL,0,NULL,NULL 75488,892868,1300276,NULL,NULL,NULL,0,NULL,NULL 75489,21694,768440,Commentator Yearling Documentation User Yearling Tenacious Citizen Patrol Yearling Explainer Yearling Unsung Hero Yearling Revival,NULL,NULL,0,NULL,NULL 75490,893333,1428412,NULL,NULL,NULL,0,NULL,NULL 75491,281951,1333604,Supporter Notable Question,NULL,NULL,0,NULL,NULL 75492,304397,515153,Necromancer Popular Question Necromancer Caucus Yearling Nice Answer Enlightened Announcer Yearling Organizer Yearling,NULL,NULL,0,NULL,NULL 75493,25489,580675,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75494,316506,758765,Yearling Popular Question Announcer Caucus Organizer Yearling Civic Duty Nice Question Custodian Promoter Self-Learner Citizen Patrol Excavator Necromancer Yearling Suffrage elmah Custodian Proofreader Reviewer,NULL,NULL,0,NULL,NULL 75495,50559,398212,Notable Question Nice Answer Enlightened Nice Answer Popular Question Yearling Great Answer Yearling Nice Answer Necromancer Nice Answer Enlightened Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 75496,415488,1322402,NULL,NULL,NULL,0,NULL,NULL 75497,5526562,298240,Nice Answer Yearling Popular Question Necromancer Nice Answer Yearling Announcer Notable Question Nice Answer Enlightened Nice Answer Notable Question Custodian Self-Learner Caucus Yearling Constituent,NULL,NULL,0,NULL,NULL 75498,33719,281570,Editor Yearling Critic Commentator Census Yearling Census Popular Question Caucus Popular Question,NULL,href http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis rel noreferrer http wiki postgresql org wiki Transactional DDL in PostgreSQL Competitive Analysis provides an overview of this issue from PostgreSQL perspective ppIs DDL transactional according to this document pulliPostgreSQL yes liliMySQL no DDL causes an implicit commit liliOracle Database 11g Release and above by default no but an alternative called edition based redefinition exists liliOlder versions of Oracle no DDL causes an implicit commit liliSQL Server yes liliSybase Adaptive Server yes liliDB2 yes liliInformix yes liliFirebird Interbase yes li ulpSQLite also appears to have transactional DDL as well was able to codeROLLBACK code codeCREATE TABLE code statement in SQLite Its codeCREATE TABLE code documentation does not mention any special transactional gotchas The somewhat limited ALTER TABLE statement of SQLite is also able to be rolled back It is not explicitly mentioned in the documentation https sqlite org lang altertable html What is mentioned there is how to perform advanced changes inside transaction Git fatal The current branch master has multiple upstream branches refusing to push git pI have this strange issue whenever do codegit push code it refuses to do anything pp codefatal The current branch master has multiple upstream branches refusing to push code ppWhen do codegit push origin master code it seem to set it as tracking branch pp codeBranch master set up to track remote branch master from origin code ppBut the next time try codegit push code it refuses to do this again tried to google but it seems the problem is fairly new and couldn find any explanation for this behaviour Ideas pp strongUpdate strong code git config code ppre code remote origin fetch refs heads refs remotes origin url gitosis xx milk git branch master remote origin merge refs heads master code prep strongUpdate2 strong Solved with codegit config remote origin push HEAD code the following line appeared in code git config code to code remote origin code section ppre code push HEAD code prep strongUpdate3 strong ppre code git branch vv billing 633c796 origin billing behind 889 links master 1a0de50 origin master ahead more fixes new master 3b880d7 origin new master branches diverged photo stacks 29c8f0d origin photo stacks 1st try responsive 1dad980 origin responsive update git pushfatal The current branch master has multiple upstream branches refusing to push code pre had similar issue with our LIVE branch When it was checked out could not push it if was on master and did git push all it worked Editing the git config file by removing the duplicate entry for the branch that also was not listed by git branch vv fixed the issue,0,NULL,NULL 75499,308691,940967,Popular Question,NULL,NULL,0,NULL,NULL 75500,430691,1344432,NULL,NULL,NULL,0,NULL,NULL 75501,9791,1049368,NULL,NULL,NULL,0,NULL,NULL 75502,6170,1244907,NULL,NULL,NULL,0,NULL,NULL 75503,1545415,1541322,NULL,NULL,NULL,0,NULL,NULL 75504,392272,701583,Famous Question,NULL,NULL,0,NULL,NULL 75505,391480,575981,Famous Question Yearling,NULL,NULL,0,NULL,NULL 75506,3746664,1009387,Necromancer Curious Yearling Popular Question Nice Answer Yearling Populist Good Answer Citizen Patrol Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 75507,244934,1009387,Necromancer Curious Yearling Popular Question Nice Answer Yearling Populist Good Answer Citizen Patrol Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 75508,1512268,330830,NULL,NULL,NULL,0,NULL,NULL 75509,373100,356956,NULL,NULL,NULL,0,NULL,NULL 75510,2546,57858,Announcer,NULL,NULL,0,NULL,NULL 75511,165682,346653,NULL,NULL,NULL,0,NULL,NULL 75512,57766,1422581,NULL,NULL,NULL,0,NULL,NULL 75513,3358589,107049,Nice Answer Enlightened Great Answer Strunk & White Good Answer Nice Answer Enlightened Enlightened Necromancer Guru Good Answer Guru Notable Question Guru Necromancer Good Answer Nice Answer Enlightened Curious Yearling Nice Answer Self-Learner Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Great Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Disciplined Good Answer Great Answer Investor Nice Answer Nice Answer Enlightened Yearling Announcer Good Answer Caucus Constituent Good Answer Nice Answer Enlightened Nice Answer Enlightened Altruist Nice Answer Enlightened Guru Nice Answer Documentation User Nice Answer Enlightened Taxonomist Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Caucus Announcer Constituent Yearling Fanatic Nice Answer Announcer Good Answer Nice Answer Guru Good Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 75514,3358590,107049,Nice Answer Enlightened Great Answer Strunk & White Good Answer Nice Answer Enlightened Enlightened Necromancer Guru Good Answer Guru Notable Question Guru Necromancer Good Answer Nice Answer Enlightened Curious Yearling Nice Answer Self-Learner Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Great Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Disciplined Good Answer Great Answer Investor Nice Answer Nice Answer Enlightened Yearling Announcer Good Answer Caucus Constituent Good Answer Nice Answer Enlightened Nice Answer Enlightened Altruist Nice Answer Enlightened Guru Nice Answer Documentation User Nice Answer Enlightened Taxonomist Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Caucus Announcer Constituent Yearling Fanatic Nice Answer Announcer Good Answer Nice Answer Guru Good Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 75515,3358591,107049,Nice Answer Enlightened Great Answer Strunk & White Good Answer Nice Answer Enlightened Enlightened Necromancer Guru Good Answer Guru Notable Question Guru Necromancer Good Answer Nice Answer Enlightened Curious Yearling Nice Answer Self-Learner Announcer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Great Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Caucus Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Disciplined Good Answer Great Answer Investor Nice Answer Nice Answer Enlightened Yearling Announcer Good Answer Caucus Constituent Good Answer Nice Answer Enlightened Nice Answer Enlightened Altruist Nice Answer Enlightened Guru Nice Answer Documentation User Nice Answer Enlightened Taxonomist Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Good Answer Caucus Announcer Constituent Yearling Fanatic Nice Answer Announcer Good Answer Nice Answer Guru Good Answer Guru Good Answer,NULL,NULL,0,NULL,NULL 75516,181745,755954,NULL,NULL,NULL,0,NULL,NULL 75517,322131,1303303,NULL,NULL,NULL,0,NULL,NULL 75518,2263130,1204074,NULL,NULL,NULL,0,NULL,NULL 75519,305452,1204074,NULL,NULL,NULL,0,NULL,NULL 75520,81054,420038,Commentator Yearling Necromancer Caucus Yearling Popular Question,NULL,NULL,0,NULL,NULL 75521,421521,1054352,NULL,NULL,NULL,0,NULL,NULL 75522,1377674,1094760,Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Good Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75523,10810881,1094760,Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Good Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75524,8300758,1094760,Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Notable Question Popular Question Good Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75525,2635507,1214595,NULL,NULL,NULL,0,NULL,NULL 75526,27392,1160332,NULL,NULL,NULL,0,NULL,NULL 75527,3693946,621461,NULL,NULL,NULL,0,NULL,NULL 75528,691197,681370,NULL,NULL,NULL,0,NULL,NULL 75529,565730,533102,NULL,NULL,NULL,0,NULL,NULL 75530,26066,54378,Yearling,NULL,NULL,0,NULL,NULL 75531,296203,261950,Revival Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Notable Question asp.net Great Answer Popular Question Nice Answer Nice Question c# Great Answer Yearling Excavator Nice Answer Popular Question Nice Answer Enlightened Good Answer Nice Answer Announcer Yearling Good Answer Popular Question Nice Answer Enlightened Revival Popular Question,NULL,NULL,0,NULL,NULL 75532,126363,617281,NULL,NULL,NULL,0,NULL,NULL 75533,3937262,1054268,Popular Question Popular Question Yearling Popular Question Yearling Nice Answer Reviewer Peer Pressure Unsung Hero Tumbleweed Custodian Custodian Proofreader Reviewer Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 75534,419265,810987,Editor,NULL,NULL,0,NULL,NULL 75535,3590595,810987,Editor,NULL,NULL,0,NULL,NULL 75536,1046350,1345239,Yearling Yearling Great Answer Commentator Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75537,2754715,1345239,Yearling Yearling Great Answer Commentator Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75538,354699,88198,Announcer Benefactor Good Answer Yearling Necromancer Yearling Nice Answer Nice Answer Custodian Yearling Good Answer,NULL,NULL,0,NULL,NULL 75539,306316,1039,Necromancer Nice Answer Revival Nice Answer Yearling Popular Question Nice Answer Populist Popular Question Disciplined Nice Answer Nice Question Yearling Good Answer Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75540,569347,65201,Necromancer Yearling Civic Duty Good Answer Nice Answer Nice Answer Suffrage Vox Populi Yearling Caucus Good Answer Excavator Necromancer Caucus Constituent Yearling Documentation User Reviewer Census Caucus Constituent Yearling Custodian Nice Answer,NULL,superscript in markdown Github flavored github markdown pFollowing this href http blog jochmann me post 24465337253 tumblr markdown footnote superscript css rel noreferrer lead tried this in Github README md ppre code lt span style vertical align baseline position relative top 5em gt text in superscript lt span gt code prepDoes not work the text appears as normal Help For those who end up here but are using pandoc try superscript https pandoc org MANUAL html superscripts and subscripts,0,NULL,NULL 75541,336163,456485,NULL,NULL,NULL,0,NULL,NULL 75542,47673,1185761,NULL,NULL,NULL,0,NULL,NULL 75543,17101,739050,Revival,NULL,NULL,0,NULL,NULL 75544,229440,1526546,Yearling Electorate Good Answer Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 75545,8295181,151252,NULL,NULL,NULL,0,NULL,NULL 75546,1505604,532954,Good Answer Yearling Critic Editor Excavator,NULL,NULL,0,NULL,NULL 75547,47734,1517087,NULL,NULL,NULL,0,NULL,NULL 75548,21098,1228135,NULL,NULL,NULL,0,NULL,NULL 75549,10070069,1346690,Famous Question Notable Question Popular Question Famous Question Nice Question Nice Answer Yearling Famous Question Nice Question Popular Question Nice Question Yearling Popular Question Good Answer Popular Question Notable Question Yearling Popular Question Good Question Yearling Good Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75550,860137,1346690,Famous Question Notable Question Popular Question Famous Question Nice Question Nice Answer Yearling Famous Question Nice Question Popular Question Nice Question Yearling Popular Question Good Answer Popular Question Notable Question Yearling Popular Question Good Question Yearling Good Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75551,234060,871907,Editor Informed Teacher Supporter Revival,NULL,NULL,0,NULL,NULL 75552,359657,1035555,Popular Question,NULL,NULL,0,NULL,NULL 75553,207123,151004,Notable Question Great Answer Explainer java Yearling Necromancer Nice Question Nice Answer Popular Question Yearling Popular Question android Guru Citizen Patrol Necromancer Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 75554,296612,503668,Yearling Excavator Caucus Constituent Yearling Good Answer Caucus Constituent Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 75555,57610,1406993,Teacher Supporter,NULL,NULL,0,NULL,NULL 75556,1009844,53897,Yearling Notable Question Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Question Nice Answer Enlightened Announcer Good Answer Nice Answer Guru Good Answer Custodian Good Answer Nice Answer Nice Answer Famous Question Nice Answer Nice Answer Popular Question Nice Question Popular Question maven Notable Question Guru Nice Answer Enlightened Nice Answer Notable Question Notable Question Good Answer Yearling Announcer Nice Question Nice Answer Nice Question Nice Question Good Question Notable Question Popular Question Populist Famous Question optimization Nice Answer Nice Answer Nice Answer Nice Answer c# Announcer Nice Answer Nice Question Nice Answer Nice Answer Good Answer Announcer Nice Answer Good Answer Nice Answer Good Answer Good Answer eclipse Popular Question Popular Question Nice Answer Good Answer Famous Question Popular Question Yearling Good Answer Nice Answer Announcer Famous Question Guru Good Answer Necromancer Nice Answer Nice Answer performance Notable Question Enlightened Nice Answer slf4j Nice Question Famous Question Nice Answer Famous Question Popular Question Popular Question Nice Answer Popular Question Good Answer Notable Question Nice Question Favorite Question Nice Answer Popular Question Notable Question Famous Question Good Answer Guru Good Answer Announcer Nice Answer Enlightened Notable Question Good Question Good Answer,NULL,pSince log4net does great job at not clogging up the resources tend to be little verbose on logging because when you have to change to debug mode the more info you have the better Here what typically log pp strongDEBUG Level strong pulliAny parameters passed into themethod liliAny row counts from result sets retrieve liliAny datarows that may contain suspicious data when being passed down to the method liliAny generated file paths connection strings or other values that could get mungled up when being pieced together by the environment li ulp strongINFO Level strong pulliThe start and end of the method liliThe start and end of any major loops liliThe start of any major case switch statements li ulp strongERROR Level strong pulliHandled exceptions liliInvalid login attempts if security is an issue liliBad data that have intercepted forreporting li ulp strongFATAL Level strong pulliUnhandled exceptions li ulpAlso having lot of logging details prevents me from asking the user what they were doing when they got the error message can easily piece it together think you should reread both this question and the blog entry you are referring to to get the apropriate context would guess that Jeff was in an excellent situation to reproduce any issues and therefore my comment does not apply to him Also would guess you have not tried doing the exercise yourself pThe best definition ve found so far is href http jamesshore com Blog Dependency Injection Demystified html rel noreferrer one by James Shore pblockquote Dependency Injection is 25 dollar term for cent concept Dependency injection means giving an object its instance variables blockquotepThere is href http martinfowler com articles injection html rel noreferrer an article by Martin Fowler that may prove useful too ppDependency injection is basically providing the objects that an object needs its dependencies instead of having it construct them itself It very useful technique for testing since it allows dependencies to be mocked or stubbed out ppDependencies can be injected into objects by many means such as constructor injection or setter injection One can even use specialized dependency injection frameworks Spring to do that but they certainly aren required You don need those frameworks to have dependency injection Instantiating and passing objects dependencies explicitly is just as good an injection as injection by framework the configuration files are just the Postpone the decision carried to its extreme Postpone the decision until actual runtime Dagger and especially Dagger have in my opinion found the sweet spot Postpone the decision until application assembly time Proper fix for Java 10 complaining about illegal reflection access by jaxb impl java maven jaxb java 10 jaxb impl pWe are looking at upgrading some legacy code to Java 10 As JAXB is not visible by default EDIT and the proper long term solution is emnot em to circumvent the symptom using various JVM flags but fix it properly have added this snippet to my pom xml ppre code lt https mvnrepository com artifact javax xml bind jaxb api gt lt dependency gt lt groupId gt javax xml bind lt groupId gt lt artifactId gt jaxb api lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb core lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb impl lt artifactId gt lt version gt lt version gt lt dependency gt code prepUnfortunately there is still warning printed at startup to stderr Apparently this is not the correct fix ppre codeWARNING An illegal reflective access operation has occurredWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int WARNING Please consider reporting this to the maintainers of com sun xml bind v2 runtime reflect opt InjectorWARNING Use illegal access warn to enable warnings of further illegal reflective access operationsWARNING All illegal access operations will be denied in future release code prepThe full output from code illegal access debug code is ppre codeWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader resolveClass java lang Class at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader findLoadedClass java lang String at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 code prepWhat are the proper dependencies to use here to resolve this problem Bug is only three days old so it did not exist when researched this initially hope that it prompts the JAXB maintainers to create proper fix Proper fix for Java 10 complaining about illegal reflection access by jaxb impl java maven jaxb java 10 jaxb impl pWe are looking at upgrading some legacy code to Java 10 As JAXB is not visible by default EDIT and the proper long term solution is emnot em to circumvent the symptom using various JVM flags but fix it properly have added this snippet to my pom xml ppre code lt https mvnrepository com artifact javax xml bind jaxb api gt lt dependency gt lt groupId gt javax xml bind lt groupId gt lt artifactId gt jaxb api lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb core lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb impl lt artifactId gt lt version gt lt version gt lt dependency gt code prepUnfortunately there is still warning printed at startup to stderr Apparently this is not the correct fix ppre codeWARNING An illegal reflective access operation has occurredWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int WARNING Please consider reporting this to the maintainers of com sun xml bind v2 runtime reflect opt InjectorWARNING Use illegal access warn to enable warnings of further illegal reflective access operationsWARNING All illegal access operations will be denied in future release code prepThe full output from code illegal access debug code is ppre codeWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader resolveClass java lang Class at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader findLoadedClass java lang String at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 code prepWhat are the proper dependencies to use here to resolve this problem Added requested output,1,Proper fix for Java 10 complaining about illegal reflection access by jaxb impl java maven jaxb java 10 jaxb impl pWe are looking at upgrading some legacy code to Java 10 As JAXB is not visible by default EDIT and the proper long term solution is emnot em to circumvent the symptom using various JVM flags but fix it properly have added this snippet to my pom xml ppre code lt https mvnrepository com artifact javax xml bind jaxb api gt lt dependency gt lt groupId gt javax xml bind lt groupId gt lt artifactId gt jaxb api lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb core lt artifactId gt lt version gt lt version gt lt dependency gt lt dependency gt lt groupId gt com sun xml bind lt groupId gt lt artifactId gt jaxb impl lt artifactId gt lt version gt lt version gt lt dependency gt code prepUnfortunately there is still warning printed at startup to stderr Apparently this is not the correct fix ppre codeWARNING An illegal reflective access operation has occurredWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int WARNING Please consider reporting this to the maintainers of com sun xml bind v2 runtime reflect opt InjectorWARNING Use illegal access warn to enable warnings of further illegal reflective access operationsWARNING All illegal access operations will be denied in future release code prepThe full output from code illegal access debug code is ppre codeWARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader defineClass java lang String byte int int at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader resolveClass java lang Class at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 WARNING Illegal reflective access by com sun xml bind v2 runtime reflect opt Injector file home tra m2 repository com sun xml bind jaxb impl jaxb impl jar to method java lang ClassLoader findLoadedClass java lang String at com sun xml bind v2 runtime reflect opt Injector getMethod Injector java 222 at com sun xml bind v2 runtime reflect opt Injector access 000 Injector java 74 at com sun xml bind v2 runtime reflect opt Injector run Injector java 175 at com sun xml bind v2 runtime reflect opt Injector run Injector java 172 at java base java security AccessController doPrivileged Native Method at com sun xml bind v2 runtime reflect opt Injector lt clinit gt Injector java 171 at com sun xml bind v2 runtime reflect opt AccessorInjector prepare AccessorInjector java 81 at com sun xml bind v2 runtime reflect opt OptimizedAccessorFactory get OptimizedAccessorFactory java 179 at com sun xml bind v2 runtime reflect Accessor FieldReflection optimize Accessor java 285 at com sun xml bind v2 runtime property ArrayProperty lt init gt ArrayProperty java 68 at com sun xml bind v2 runtime property ArrayERProperty lt init gt ArrayERProperty java 88 at com sun xml bind v2 runtime property ArrayElementProperty lt init gt ArrayElementProperty java 100 at com sun xml bind v2 runtime property ArrayElementNodeProperty lt init gt ArrayElementNodeProperty java 62 at com sun xml bind v2 runtime property PropertyFactory create PropertyFactory java 128 at com sun xml bind v2 runtime ClassBeanInfoImpl lt init gt ClassBeanInfoImpl java 181 at com sun xml bind v2 runtime JAXBContextImpl getOrCreate JAXBContextImpl java 514 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 331 at com sun xml bind v2 runtime JAXBContextImpl lt init gt JAXBContextImpl java 139 at com sun xml bind v2 runtime JAXBContextImpl JAXBContextBuilder build JAXBContextImpl java 1156 at com sun xml bind v2 ContextFactory createContext ContextFactory java 165 at javax xml bind ContextFinder newInstance ContextFinder java 297 at javax xml bind ContextFinder newInstance ContextFinder java 286 at javax xml bind ContextFinder find ContextFinder java 409 at javax xml bind JAXBContext newInstance JAXBContext java 721 at javax xml bind JAXBContext newInstance JAXBContext java 662 at dk statsbiblioteket medieplatform autonomous PremisManipulatorFactory lt init gt PremisManipulatorFactory java 28 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule providePremisManipulatorFactory DomsModule java 182 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 32 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvidePremisManipulatorFactoryFactory get DomsModule ProvidePremisManipulatorFactoryFactory java 11 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 56 at dk statsbiblioteket digital pligtaflevering aviser tools modules DomsModule ProvideSBOIEventIndexFactory get DomsModule ProvideSBOIEventIndexFactory java 12 at dk statsbiblioteket digital pligtaflevering aviser doms DomsRepository Factory get DomsRepository Factory java 53 code prepWhat are the proper dependencies to use here to resolve this problem,NULL 75557,875,355419,Yearling Tenacious Caucus Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 75558,117956,1282131,Notable Question Popular Question Critic Civic Duty Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 75559,213607,1303945,NULL,NULL,NULL,0,NULL,NULL 75560,66846,453083,Nice Answer Yearling Necromancer Nice Question Good Answer Yearling Caucus Yearling Nice Answer Announcer Notable Question Yearling Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 75561,243576,76173,Yearling Necromancer Necromancer Nice Answer Revival Caucus Revival Popular Question Nice Answer Enlightened Yearling Booster Custodian Notable Question Revival Nice Answer Yearling Caucus Constituent Famous Question Taxonomist Inquisitive Custodian Explainer Custodian,NULL,pThere is little difference codeObject getOwnPropertyNames code returns emall em own properties of the object codea code codeObject keys code returns emall enumerable em own properties It means that if you define your object properties without making some of them codeenumerable false code these two methods will give you the same result ppIt easy to test ppre codevar Object defineProperties one enumerable true value one two enumerable false value two Object keys one Object getOwnPropertyNames one two code prepIf you define property without providing property attributes descriptor meaning you don use codeObject defineProperties code for example ppre codea test 21 code prepthen such property becomes an enumerable automatically and both methods produce the same array the result of Object getOwnPropertyNames anyArray includes length,0,NULL,NULL 75562,51710,3250,Yearling,NULL,NULL,0,NULL,NULL 75563,222132,642981,Yearling Popular Question Curious Yearling Necromancer Popular Question Yearling Nice Question Necromancer,NULL,NULL,0,NULL,NULL 75564,292701,354491,Student,NULL,NULL,0,NULL,NULL 75565,1559129,354491,Student,NULL,NULL,0,NULL,NULL 75566,147155,714827,NULL,NULL,NULL,0,NULL,NULL 75567,52745,216425,NULL,NULL,NULL,0,NULL,NULL 75568,214232,216425,NULL,NULL,NULL,0,NULL,NULL 75569,125502,1156006,Nice Answer Yearling Good Answer Nice Answer Necromancer Nice Answer Enlightened Nice Answer Yearling Nice Answer Guru Good Answer Nice Question Guru Nice Answer Nice Answer Nice Answer Nice Answer Yearling Good Answer Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 75570,77175,697079,Nice Question Pundit Nice Answer Famous Question Notable Question Yearling angularjs Good Question Notable Question Necromancer Good Answer Notable Question Famous Question Good Question Good Answer Caucus Famous Question Yearling Notable Question Notable Question Popular Question Popular Question Caucus Popular Question Tumbleweed Popular Question Notable Question Nice Answer Nice Answer Enlightened Notable Question Nice Question Necromancer Census Caucus Excavator Yearling Popular Question html Cleanup Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 75571,26533,227667,NULL,NULL,NULL,0,NULL,NULL 75572,64797,19258,Yearling Notable Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 75573,220457,773574,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75574,5765,46443,Notable Question Guru Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 75575,86049,328935,Popular Question Editor Custodian,NULL,NULL,0,NULL,NULL 75576,183415,1136905,Popular Question Nice Answer Yearling Famous Question Popular Question Caucus Constituent Caucus Notable Question Popular Question Popular Question Good Answer Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 75577,500365,304774,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75578,107523,1106405,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 75579,1518915,533889,NULL,NULL,NULL,0,NULL,NULL 75580,6478037,533889,NULL,NULL,NULL,0,NULL,NULL 75581,1634028,27460,NULL,NULL,NULL,0,NULL,NULL 75582,644068,1155092,NULL,NULL,NULL,0,NULL,NULL 75583,1255963,557771,Custodian Informed Custodian Guru Notable Question Yearling Popular Question Nice Answer Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75584,5033839,916562,NULL,NULL,NULL,0,NULL,NULL 75585,20495,1123451,NULL,NULL,NULL,0,NULL,NULL 75586,163239,34460,Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 75587,975955,595628,NULL,NULL,NULL,0,NULL,NULL 75588,69976,1438317,NULL,NULL,NULL,0,NULL,NULL 75589,613835,770938,Good Answer Guru Yearling Yearling Nice Answer Necromancer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 75590,1281108,1246637,NULL,NULL,NULL,0,NULL,NULL 75591,45736,1346200,NULL,NULL,NULL,0,NULL,NULL 75592,637610,518356,NULL,NULL,NULL,0,NULL,NULL 75593,978767,1131045,NULL,NULL,NULL,0,NULL,NULL 75594,526072,248612,NULL,NULL,NULL,0,NULL,NULL 75595,403230,689345,Popular Question,NULL,NULL,0,NULL,NULL 75596,326950,794702,Yearling Yearling,NULL,NULL,0,NULL,NULL 75597,1601954,342352,NULL,NULL,NULL,0,NULL,NULL 75598,711325,342352,NULL,NULL,NULL,0,NULL,NULL 75599,678399,697095,Tumbleweed Informed Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 75600,36626,231282,NULL,NULL,NULL,0,NULL,NULL 75601,429413,968154,NULL,NULL,NULL,0,NULL,NULL 75602,407699,428767,Nice Answer Nice Question Nice Answer Yearling Popular Question Popular Question Famous Question Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75603,240899,1194126,Teacher,NULL,NULL,0,NULL,NULL 75604,1566700,1210211,NULL,NULL,NULL,0,NULL,NULL 75605,1529880,440080,NULL,NULL,NULL,0,NULL,NULL 75606,408713,1232709,Necromancer Yearling,NULL,NULL,0,NULL,NULL 75607,209122,286714,Notable Question Popular Question Notable Question Yearling Popular Question Great Answer Notable Question Notable Question Great Question Yearling Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 75608,17777,168710,Critic,NULL,NULL,0,NULL,NULL 75609,159594,98691,NULL,NULL,NULL,0,NULL,NULL 75610,180034,1083611,Self-Learner Necromancer Nice Answer Enlightened Revival Revival Custodian Good Answer Necromancer Nice Answer Popular Question Revival Revival Necromancer Revival Nice Answer Organizer android Necromancer Necromancer Caucus Proofreader Necromancer Yearling Notable Question Curious Necromancer Citizen Patrol Necromancer Good Answer Necromancer Nice Answer Custodian Necromancer Nice Answer Popular Question Necromancer Nice Question Nice Answer Good Answer Revival Notable Question Nice Answer Explainer Good Answer Revival Nice Answer Necromancer Fanatic Yearling Good Answer Nice Answer Nice Answer Good Answer Caucus Necromancer Necromancer Nice Answer Enlightened Necromancer Necromancer Reviewer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75611,122856,1159582,NULL,NULL,NULL,0,NULL,NULL 75612,64678,1090513,Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Self-Learner Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 75613,280202,762091,Popular Question,NULL,NULL,0,NULL,NULL 75614,672532,1255213,NULL,NULL,NULL,0,NULL,NULL 75615,111906,1388363,Informed,NULL,NULL,0,NULL,NULL 75616,607424,790673,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75617,23616,625415,Nice Answer Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 75618,142010,75265,Popular Question Notable Question Nice Answer Nice Question Popular Question Famous Question Notable Question Notable Question Nice Answer Nice Question Popular Question Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 75619,3194713,957982,Popular Question,NULL,NULL,0,NULL,NULL 75620,212215,623112,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 75621,489912,339591,NULL,NULL,NULL,0,NULL,NULL 75622,3899370,603354,Yearling,NULL,NULL,0,NULL,NULL 75623,10136675,603354,Yearling,NULL,NULL,0,NULL,NULL 75624,232968,437893,NULL,NULL,NULL,0,NULL,NULL 75625,282082,1127987,NULL,NULL,NULL,0,NULL,NULL 75626,181708,180962,Necromancer Custodian Yearling Tenacious Revival Nice Answer Revival Nice Answer Enlightened graph Unsung Hero Yearling graph-tool Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75627,139628,1442067,Student Scholar Supporter,NULL,NULL,0,NULL,NULL 75628,1130494,61959,NULL,NULL,NULL,0,NULL,NULL 75629,47468,984519,NULL,NULL,NULL,0,NULL,NULL 75630,50382,686304,Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 75631,478205,1514576,Popular Question Popular Question Census Notable Question,NULL,NULL,0,NULL,NULL 75632,163741,646367,Custodian Necromancer Yearling Notable Question Revival Nice Answer Revival Yearling Good Answer Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 75633,627807,749319,NULL,NULL,NULL,0,NULL,NULL 75634,257674,957355,NULL,NULL,NULL,0,NULL,NULL 75635,1329466,1365763,Informed Editor Student Popular Question,NULL,NULL,0,NULL,NULL 75636,430661,564554,Caucus Custodian Census Documentation User Popular Question,NULL,NULL,0,NULL,NULL 75637,553583,890007,Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 75638,111021,1178297,NULL,NULL,NULL,0,NULL,NULL 75639,268249,1009914,NULL,NULL,NULL,0,NULL,NULL 75640,590457,1215062,Nice Question Popular Question Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 75641,29751,76871,Documentation User,NULL,NULL,0,NULL,NULL 75642,47676,325072,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75643,5489137,353906,NULL,NULL,NULL,0,NULL,NULL 75644,316835,572540,NULL,NULL,NULL,0,NULL,NULL 75645,34660,478100,NULL,NULL,NULL,0,NULL,NULL 75646,1227804,478100,NULL,NULL,NULL,0,NULL,NULL 75647,170108,1484718,NULL,NULL,NULL,0,NULL,NULL 75648,167156,1305150,NULL,NULL,NULL,0,NULL,NULL 75649,1352414,359781,Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75650,297873,262296,Yearling Notable Question Popular Question Yearling Great Question Popular Question Popular Question Good Answer Notable Question Documentation User Popular Question Yearling Custodian Custodian Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75651,360157,910622,NULL,NULL,NULL,0,NULL,NULL 75652,46926,1133676,NULL,NULL,NULL,0,NULL,NULL 75653,2747988,1165003,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75654,376,424592,Famous Question Popular Question Yearling Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75655,49586,235983,Yearling Necromancer Commentator Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75656,1668659,507663,NULL,NULL,NULL,0,NULL,NULL 75657,196410,1415751,Yearling Nice Answer Enlightened Caucus Yearling Good Answer Constituent Famous Question Notable Question Popular Question Nice Question Notable Question Caucus Constituent Popular Question Yearling Guru Notable Question Caucus Constituent,NULL,NULL,0,NULL,NULL 75658,343817,1235943,Yearling Popular Question Nice Answer Popular Question Popular Question Yearling Popular Question Notable Question Caucus Excavator Popular Question Nice Question Popular Question Yearling Nice Answer Enlightened Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 75659,330754,1137262,NULL,NULL,NULL,0,NULL,NULL 75660,488778,1423783,Popular Question,NULL,NULL,0,NULL,NULL 75661,393427,43991,Nice Question,NULL,NULL,0,NULL,NULL 75662,595536,806766,NULL,NULL,NULL,0,NULL,NULL 75663,329574,1228937,Custodian,NULL,NULL,0,NULL,NULL 75664,493337,1130139,NULL,NULL,NULL,0,NULL,NULL 75665,448205,1211586,NULL,NULL,NULL,0,NULL,NULL 75666,448764,286467,Notable Question,NULL,NULL,0,NULL,NULL 75667,244346,1202128,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 75668,1517038,1234266,NULL,NULL,NULL,0,NULL,NULL 75669,73340,1378398,NULL,NULL,NULL,0,NULL,NULL 75670,183982,1073882,Supporter,NULL,NULL,0,NULL,NULL 75671,349163,1459731,NULL,NULL,NULL,0,NULL,NULL 75672,415761,887198,Informed Supporter Organizer Teacher Commentator Tag Editor Citizen Patrol Critic Documentation User,NULL,NULL,0,NULL,NULL 75673,150805,1072060,NULL,NULL,NULL,0,NULL,NULL 75674,801286,672989,Investor Popular Question Yearling Notable Question Nice Question Revival Necromancer Nice Question Notable Question Necromancer Popular Question Necromancer Necromancer Nice Question Nice Answer Inquisitive Caucus Popular Question Popular Question Constituent Announcer Custodian Necromancer Good Answer Yearling Necromancer Revival Revival Announcer Popular Question Necromancer Nice Question Caucus Announcer Good Question Revival Popular Question Notable Question Popular Question Notable Question Necromancer Notable Question Popular Question Popular Question Announcer Popular Question Necromancer Announcer Necromancer Caucus Necromancer Populist Yearling Nice Answer Nice Question Strunk & White Notable Question Revival Great Answer Nice Answer Nice Question Famous Question Nice Answer Announcer Popular Question Populist Popular Question Good Answer Notable Question Nice Question Famous Question,NULL,pThe solution to this is actually very easy but not at emall em obvious You have to trigger something called block formatting context BFC which interacts with floats in specific way ppJust take that second div remove the float and give it codeoverflow hidden code instead Any overflow value other than visible makes the block it set on become BFC BFCs don allow descendant floats to escape them nor do they allow sibling ancestor floats to intrude into them The net effect here is that the floated div will do it thing then the second div will be an ordinary block taking up all available width emexcept that occupied by the float em ppThis should work across all current browsers though you may have to trigger hasLayout in IE6 and can recall pp strongDemos strong pulliFixed Left href http jsfiddle net A8zLY rel noreferrer http jsfiddle net A8zLY liliFixed Right href http jsfiddle net A8zLY rel noreferrer http jsfiddle net A8zLY li ul Is there way to make both columns always the same height and valign the content http jsfiddle net A8zLY 3334 emIn the examples below the client is the browser and the server is the webserver hosting the website em ppBefore you can understand these technologies you have to understand emclassic em HTTP web traffic first ph2Regular HTTP h2olliA client requests webpage from server liliThe server calculates the response liliThe server sends the response to the client li olp img src https stack imgur com TK1ZG png alt HTTP ph2Ajax Polling h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which requests file from the server at regular intervals seconds liliThe server calculates each response and sends it back just like normal HTTP traffic li olp img src https stack imgur com qlMEU png alt Ajax Polling ph2Ajax Long Polling h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which requests file from the server liliThe server does not immediately respond with the requested information but waits until there strongnew strong information available liliWhen there new information available the server responds with the new information liliThe client receives the new information and immediately sends another request to the server re starting the process li olp img src https stack imgur com zLnOU png alt Ajax Long Polling ph2HTML5 Server Sent Events SSE EventSource h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which opens connection to the server lili pThe server sends an event to the client when there new information available pulliReal time traffic from server to client mostly that what you ll need liliYou ll want to use server that has an event loop liliNot possible to connect with server from another domain liliIf you want to read more found these very useful href https developer mozilla org en US docs Server sent events Using server sent events rel noreferrer article href http html5doctor com server sent events api rel noreferrer article href http www html5rocks com en tutorials eventsource basics rel noreferrer article href http jaxenter com tutorial jsf and html5 server sent events 42932 html rel noreferrer tutorial li ul li olp img src https stack imgur com ziR5h png alt HTML5 SSE ph2HTML5 Websockets h2olliA client requests webpage from server using regular http see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which opens connection with the server lili pThe server and the client can now send each other messages when new data on either side is available pulliReal time traffic from the server to the client strongand strong from the client to the server liliYou ll want to use server that has an event loop liliWith WebSockets it is possible to connect with server from another domain liliIt is also possible to use third party hosted websocket server for example href http pusher com rel noreferrer Pusher or href http www leggetter co uk real time web technologies guide rel noreferrer others This way you ll only have to implement the client side which is very easy liliIf you want to read more found these very useful href http www developerfusion com article 143158 an introduction to websockets rel noreferrer article href https developer mozilla org en US docs WebSockets Writing WebSocket client applications rel noreferrer article href http net tutsplus com tutorials javascript ajax start using html5 websockets today rel noreferrer tutorial li ul li olp img src https stack imgur com CgDlc png alt HTML5 WebSockets ph2Comet h2pComet is collection of techniques prior to HTML5 which use streaming and long polling to achieve real time applications Read more on href http en wikipedia org wiki Comet 28programming 29 rel noreferrer wikipedia or href http www ibm com developerworks web library wa reverseajax1 index html rel noreferrer this article phrblockquote pNow which one of them should use for realtime app that need to code have been hearing lot about websockets with socket io node js library but why not PHP blockquotepYou can use PHP with WebSockets check out href http socketo me rel noreferrer Ratchet did you read the last paragraph and followed the url to more info about comet emIn the examples below the client is the browser and the server is the webserver hosting the website em ppBefore you can understand these technologies you have to understand emclassic em HTTP web traffic first ph2Regular HTTP h2olliA client requests webpage from server liliThe server calculates the response liliThe server sends the response to the client li olp img src https stack imgur com TK1ZG png alt HTTP ph2Ajax Polling h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which requests file from the server at regular intervals seconds liliThe server calculates each response and sends it back just like normal HTTP traffic li olp img src https stack imgur com qlMEU png alt Ajax Polling ph2Ajax Long Polling h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which requests file from the server liliThe server does not immediately respond with the requested information but waits until there strongnew strong information available liliWhen there new information available the server responds with the new information liliThe client receives the new information and immediately sends another request to the server re starting the process li olp img src https stack imgur com zLnOU png alt Ajax Long Polling ph2HTML5 Server Sent Events SSE EventSource h2olliA client requests webpage from server using regular HTTP see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which opens connection to the server lili pThe server sends an event to the client when there new information available pulliReal time traffic from server to client mostly that what you ll need liliYou ll want to use server that has an event loop liliNot possible to connect with server from another domain liliIf you want to read more found these very useful href https developer mozilla org en US docs Server sent events Using server sent events rel noreferrer article href http html5doctor com server sent events api rel noreferrer article href http www html5rocks com en tutorials eventsource basics rel noreferrer article href http jaxenter com tutorial jsf and html5 server sent events 42932 html rel noreferrer tutorial li ul li olp img src https stack imgur com ziR5h png alt HTML5 SSE ph2HTML5 Websockets h2olliA client requests webpage from server using regular http see HTTP above liliThe client receives the requested webpage and executes the JavaScript on the page which opens connection with the server lili pThe server and the client can now send each other messages when new data on either side is available pulliReal time traffic from the server to the client strongand strong from the client to the server liliYou ll want to use server that has an event loop liliWith WebSockets it is possible to connect with server from another domain liliIt is also possible to use third party hosted websocket server for example href http pusher com rel noreferrer Pusher or href http www leggetter co uk real time web technologies guide rel noreferrer others This way you ll only have to implement the client side which is very easy liliIf you want to read more found these very useful href http www developerfusion com article 143158 an introduction to websockets rel noreferrer article href https developer mozilla org en US docs WebSockets Writing WebSocket client applications rel noreferrer article href http net tutsplus com tutorials javascript ajax start using html5 websockets today rel noreferrer tutorial li ul li olp img src https stack imgur com CgDlc png alt HTML5 WebSockets ph2Comet h2pComet is collection of techniques prior to HTML5 which use streaming and long polling to achieve real time applications Read more on href http en wikipedia org wiki Comet 28programming 29 rel noreferrer wikipedia or href http www ibm com developerworks web library wa reverseajax1 index html rel noreferrer this article phrblockquote pNow which one of them should use for realtime app that need to code have been hearing lot about websockets with socket io node js library but why not PHP blockquotepYou can use PHP with WebSockets check out href http socketo me rel noreferrer Ratchet think it should be the client executes the JavaScript on the page so this is the browser not the sever Clear pYou could just use some HTML in your Markdown ppre class lang html prettyprint override code lt img src drawing jpg alt drawing width 200 gt code prepOr via codestyle code attribute strongnot supported by GitHub strong ppre class lang html prettyprint override code lt img src drawing jpg alt drawing style width 200px gt code prepOr you could use custom CSS file as described in this answer on em href https stackoverflow com questions 255170 markdown and image alignment answer 5054055 Markdown and image alignment em ppre code drawing drawing jpg code prepCSS in another file ppre class lang css prettyprint override codeimg alt drawing width 200px code pre Well not if you provide decent alt label right pYou could just use some HTML in your Markdown ppre class lang html prettyprint override code lt img src drawing jpg alt drawing width 200 gt code prepOr via codestyle code attribute strongnot supported by GitHub strong ppre class lang html prettyprint override code lt img src drawing jpg alt drawing style width 200px gt code prepOr you could use custom CSS file as described in this answer on em href https stackoverflow com questions 255170 markdown and image alignment answer 5054055 Markdown and image alignment em ppre code drawing drawing jpg code prepCSS in another file ppre class lang css prettyprint override codeimg alt drawing width 200px code pre you re right Thanks Updated,0,NULL,NULL 75675,256598,1201060,Informed Autobiographer,NULL,NULL,0,NULL,NULL 75676,110634,108616,Great Answer Custodian Yearling Famous Question Popular Question Notable Question Nice Answer Revival Famous Question Explainer Necromancer Yearling Necromancer Documentation User Custodian Necromancer Famous Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75677,7861,427651,NULL,NULL,NULL,0,NULL,NULL 75678,801604,1099347,Enthusiast,NULL,NULL,0,NULL,NULL 75679,661526,1442280,Supporter Necromancer Nice Answer Caucus Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 75680,293566,791619,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75681,68122,137410,Caucus Constituent Documentation User Popular Question,NULL,NULL,0,NULL,NULL 75682,184999,733327,NULL,NULL,NULL,0,NULL,NULL 75683,156557,920213,NULL,NULL,NULL,0,NULL,NULL 75684,476274,580578,NULL,NULL,NULL,0,NULL,NULL 75685,107418,3962,Caucus Yearling,NULL,NULL,0,NULL,NULL 75686,598526,476763,NULL,NULL,NULL,0,NULL,NULL 75687,167581,1067956,Editor Yearling,NULL,NULL,0,NULL,NULL 75688,25933,84423,Curious Nice Answer Nice Answer Notable Question Good Question Yearling,NULL,NULL,0,NULL,NULL 75689,289080,518439,NULL,NULL,NULL,0,NULL,NULL 75690,357275,521016,NULL,NULL,NULL,0,NULL,NULL 75691,403611,1019917,NULL,NULL,NULL,0,NULL,NULL 75692,217332,279611,Popular Question Nice Answer Yearling Caucus Constituent Good Answer Yearling Nice Question Popular Question Enlightened Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75693,15735,21699,Great Answer Nice Question Good Question Notable Question Popular Question ruby Favorite Question Yearling Popular Question Popular Question Nice Answer Custodian Custodian Good Answer Caucus Constituent Nice Answer Enlightened Nice Answer Yearling Guru Census Notable Question Popular Question Famous Question Famous Question Nice Answer Enlightened Famous Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75694,41496,1377507,Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Yearling,NULL,NULL,0,NULL,NULL 75695,366707,1053847,NULL,NULL,NULL,0,NULL,NULL 75696,693941,752568,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75697,293519,1376084,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75698,177071,1021751,Necromancer Yearling Yearling Good Answer Yearling,NULL,pMy solution is not specific to certain ad network and is very lightweight ve been running it in production for few years AdBlock blocks all URLs containing the word ads So this is what did ppI added small js file to my webroot with the name codeads js code ppThis is the only line of code in that file ppre class lang js prettyprint override codevar canRunAds true code prepThen somewhere in my page ppre class lang html prettyprint override code lt html gt lt head gt lt script src js ads js gt lt script gt lt head gt lt body gt lt script gt if window canRunAds undefined adblocker detected show fallback showFallbackImage lt script gt lt body gt lt html gt code prepFiles like ads js are blocked by at least these adblockers on Chrome pulliAdBlock liliAdblock Plus liliAdblock Pro li ulp Yes these are completely different browser extensions ppThis does not work with pulliGhostery Only blocks actual doubleclick appnexus urls li ul an AdBlocker is installed client side so the detection can only be done there You can of course set cookie through JS and detect that serverside later on but that cookie can only be ready on the second page load,0,NULL,NULL 75699,319596,730096,Supporter Notable Question,NULL,NULL,0,NULL,NULL 75700,9496247,525677,NULL,NULL,NULL,0,NULL,NULL 75701,173,332427,NULL,NULL,NULL,0,NULL,NULL 75702,4660470,1513438,NULL,NULL,NULL,0,NULL,NULL 75703,305127,267690,NULL,NULL,NULL,0,NULL,NULL 75704,20657,612295,NULL,NULL,NULL,0,NULL,NULL 75705,584466,325598,Yearling Caucus Yearling Popular Question Caucus Custodian Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 75706,60909,304533,Notable Question Custodian Good Answer Yearling Guru Yearling Yearling Great Answer Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75707,617462,1262692,NULL,NULL,NULL,0,NULL,NULL 75708,306617,576087,NULL,NULL,NULL,0,NULL,NULL 75709,239831,438796,Popular Question,NULL,NULL,0,NULL,NULL 75710,703114,646832,NULL,NULL,NULL,0,NULL,NULL 75711,137981,131171,Nice Answer,NULL,NULL,0,NULL,NULL 75712,573243,872535,Notable Question Good Answer Nice Answer Nice Question Good Answer Yearling Notable Question Guru Good Answer Popular Question Yearling Nice Answer Enlightened Custodian Nice Answer Enlightened Nice Question Popular Question Good Answer Great Answer Custodian Yearling Custodian Famous Question Popular Question,NULL,NULL,0,NULL,NULL 75713,288173,834985,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 75714,222825,122594,Yearling Popular Question Guru Notable Question,NULL,NULL,0,NULL,NULL 75715,920391,1291169,NULL,NULL,NULL,0,NULL,NULL 75716,82871,384534,Yearling Notable Question Self-Learner Nice Answer,NULL,NULL,0,NULL,NULL 75717,269897,61296,Guru,NULL,NULL,0,NULL,NULL 75718,1206571,877258,NULL,NULL,NULL,0,NULL,NULL 75719,260673,119725,Good Answer Favorite Question Guru Yearling Great Question Necromancer Necromancer Good Answer Yearling Nice Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75720,110995,677684,Good Answer Necromancer Good Answer Yearling Electorate ruby-on-rails Necromancer Nice Answer Notable Question Necromancer Caucus Notable Question Nice Answer Enlightened Promoter Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Popular Question Good Answer Good Answer Necromancer Nice Answer Nice Question Guru Great Answer Caucus Constituent Yearling Notable Question Popular Question Nice Answer Guru Good Answer Popular Question,NULL,NULL,0,NULL,NULL 75721,234331,76663,Yearling Caucus Good Question Popular Question,NULL,NULL,0,NULL,NULL 75722,28200,207547,Yearling Notable Question Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 75723,298537,362489,NULL,NULL,NULL,0,NULL,NULL 75724,2736984,1082530,Supporter Teacher Autobiographer,NULL,NULL,0,NULL,NULL 75725,236048,602004,NULL,NULL,NULL,0,NULL,NULL 75726,48831,1211684,Nice Answer,NULL,NULL,0,NULL,NULL 75727,7022775,1211684,Nice Answer,NULL,NULL,0,NULL,NULL 75728,207395,176270,Great Answer Yearling Revival Yearling Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 75729,702568,389828,Nice Answer Nice Question Yearling Announcer Notable Question Caucus Popular Question Yearling Caucus Nice Answer Popular Question Notable Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 75730,146866,1415085,Necromancer,NULL,NULL,0,NULL,NULL 75731,193902,587034,NULL,NULL,NULL,0,NULL,NULL 75732,208817,633330,Necromancer,NULL,NULL,0,NULL,NULL 75733,1517606,521760,Yearling,NULL,NULL,0,NULL,NULL 75734,2447239,1810,Great Answer Nice Question Good Answer Yearling Great Answer Good Answer windows Nice Answer Enlightened Yearling Nice Answer Populist Good Answer Nice Question Yearling Good Answer Famous Question,NULL,pAfter trying almost every key on my keyboard ppre codeC Users Tim gt cd Mehr DesktopC Users Tim Desktop gt code prepSo it seems to be the key Using the same very scientific method accent grave,0,NULL,NULL 75735,226892,19688,NULL,NULL,NULL,0,NULL,NULL 75736,51280,279204,Notable Question Notable Question Yearling Nice Question Favorite Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question Nice Answer Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Explainer Unsung Hero Census Custodian Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75737,1945679,333417,Scholar Editor,NULL,NULL,0,NULL,NULL 75738,1550696,830760,Popular Question Good Answer Yearling Popular Question Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Guru Yearling Nice Answer core-data Notable Question Popular Question Yearling Good Answer Custodian Nice Question,NULL,NULL,0,NULL,NULL 75739,239265,14481,Good Question Famous Question Yearling Favorite Question Famous Question Famous Question Good Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75740,292103,768409,NULL,NULL,NULL,0,NULL,NULL 75741,487244,470808,Notable Question Yearling,NULL,NULL,0,NULL,NULL 75742,165760,281710,NULL,NULL,NULL,0,NULL,NULL 75743,270353,718175,Enthusiast Critic Nice Answer Caucus Informed Yearling Yearling,NULL,NULL,0,NULL,NULL 75744,237969,861906,NULL,NULL,NULL,0,NULL,NULL 75745,673322,611910,NULL,NULL,NULL,0,NULL,NULL 75746,1254559,1104035,NULL,NULL,NULL,0,NULL,NULL 75747,10219656,32133,Nice Answer Enlightened Guru Good Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Notable Question Great Answer Guru Good Answer Yearling Good Answer Nice Answer Great Answer winforms Nice Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Tumbleweed Good Answer Custodian Custodian Popular Question Nice Answer Yearling Guru Good Answer Good Answer Great Answer Great Answer Good Answer Guru Great Answer Enlightened Self-Learner Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75748,229692,32133,Nice Answer Enlightened Guru Good Answer Good Answer Notable Question Nice Answer Nice Answer Enlightened Notable Question Great Answer Guru Good Answer Yearling Good Answer Nice Answer Great Answer winforms Nice Answer Good Answer Nice Answer Enlightened Nice Question Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Tumbleweed Good Answer Custodian Custodian Popular Question Nice Answer Yearling Guru Good Answer Good Answer Great Answer Great Answer Good Answer Guru Great Answer Enlightened Self-Learner Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75749,524936,187399,Census Revival Yearling Self-Learner Popular Question Necromancer,NULL,NULL,0,NULL,NULL 75750,1346947,1469659,Popular Question,NULL,NULL,0,NULL,NULL 75751,221380,1179251,NULL,NULL,NULL,0,NULL,NULL 75752,282604,1100089,Popular Question Caucus Constituent Census Citizen Patrol Notable Question Caucus Constituent Documentation User Custodian Custodian Curious Electorate,NULL,NULL,0,NULL,NULL 75753,62862,264043,Yearling Good Answer Yearling Great Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 75754,84594,63147,Nice Answer Yearling Guru Good Answer Great Answer Great Answer Nice Answer Guru Nice Answer Enlightened Guru Yearling Good Answer Great Answer Great Answer Guru Good Answer Yearling Good Answer Guru Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 75755,91357,1070428,NULL,NULL,NULL,0,NULL,NULL 75756,133913,576216,Notable Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 75757,194509,393980,NULL,NULL,NULL,0,NULL,NULL 75758,561358,632422,NULL,NULL,NULL,0,NULL,NULL 75759,89964,611899,NULL,NULL,NULL,0,NULL,NULL 75760,1475548,990211,Civic Duty Critic,NULL,NULL,0,NULL,NULL 75761,20653,43043,Custodian Tumbleweed Great Answer Yearling Nice Question Yearling Enthusiast Nice Answer,NULL,How does Scrum work when you have multiple projects project management agile scrum pI fairly well read in the benefits and processes of Scrum get the ideas on the backlog burndown charts iterations using user stories and other various concepts of the Scrum framework ppWith that said work for web development firm that manages multiple projects at one time with six team members that make up the production team ppHow does Scrum work with having multiple projects Do you still just schedule an iteration for single project in certain amount of time and the entire team works on it and then you move on to the next project with new iteration when that iteration is completed Or is there an agile way in managing multiple projects with their own iterations with only one team at the same time one thing to consider here is that this question is successfully years old and came long before most of the sub Stack Exchanges existed So while the topic may now best be served by something like the Project Management Stack Exchange at the time question on Scrum’s practices was incredibly relevant to developers and their methodologies in how to best get work done,0,NULL,NULL 75762,339247,254706,NULL,NULL,NULL,0,NULL,NULL 75763,1217136,730362,NULL,NULL,NULL,0,NULL,NULL 75764,766,207596,Proofreader Custodian Famous Question Announcer Yearling Announcer Documentation User Yearling Yearling,NULL,NULL,0,NULL,NULL 75765,220130,890684,NULL,NULL,NULL,0,NULL,NULL 75766,399812,62802,Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75767,756403,32,Yearling Great Question,NULL,NULL,0,NULL,NULL 75768,187389,206268,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75769,26473,892666,NULL,NULL,NULL,0,NULL,NULL 75770,69349,627446,Notable Question,NULL,NULL,0,NULL,NULL 75771,137929,135186,Yearling,NULL,NULL,0,NULL,NULL 75772,210681,1015177,Popular Question Yearling Self-Learner Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75773,1011378,982492,Popular Question Famous Question Notable Question Good Question Nice Question Notable Question Tumbleweed Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75774,249980,649152,NULL,NULL,NULL,0,NULL,NULL 75775,1478729,1063109,Supporter Informed,NULL,NULL,0,NULL,NULL 75776,3459447,517489,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 75777,747656,892455,NULL,NULL,NULL,0,NULL,NULL 75778,300341,232010,NULL,NULL,NULL,0,NULL,NULL 75779,464844,260768,NULL,NULL,NULL,0,NULL,NULL 75780,43075,603486,NULL,NULL,NULL,0,NULL,NULL 75781,96119,1449640,Autobiographer Nice Question,NULL,NULL,0,NULL,NULL 75782,32391,155987,Announcer Yearling Necromancer,NULL,NULL,0,NULL,NULL 75783,5862,524518,Nice Answer Enlightened Revival Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75784,171012,747913,Teacher,NULL,NULL,0,NULL,NULL 75785,2558739,857030,Notable Question Nice Question Teacher Notable Question Yearling Popular Question Popular Question Popular Question Critic Census Popular Question Notable Question Caucus Notable Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75786,5123600,857030,Notable Question Nice Question Teacher Notable Question Yearling Popular Question Popular Question Popular Question Critic Census Popular Question Notable Question Caucus Notable Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75787,6169386,857030,Notable Question Nice Question Teacher Notable Question Yearling Popular Question Popular Question Popular Question Critic Census Popular Question Notable Question Caucus Notable Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75788,149529,725650,Revival Caucus Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 75789,8585,14107,Yearling Commentator Nice Answer,NULL,NULL,0,NULL,NULL 75790,236140,761063,Good Question Notable Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 75791,11952,1486211,Notable Question,NULL,NULL,0,NULL,NULL 75792,535364,319771,NULL,NULL,NULL,0,NULL,NULL 75793,379333,401035,NULL,NULL,NULL,0,NULL,NULL 75794,729723,519820,Supporter,NULL,NULL,0,NULL,NULL 75795,946125,271779,NULL,NULL,NULL,0,NULL,NULL 75796,157922,16562,Guru Popular Question Famous Question Popular Question Yearling Nice Question Famous Question Yearling Notable Question Famous Question Nice Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 75797,152830,890214,NULL,NULL,NULL,0,NULL,NULL 75798,27724,215773,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75799,53462,6509,Good Answer Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Informed Nice Answer date Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Guru Good Answer Nice Answer Nice Answer xmlslurper collections Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Necromancer Disciplined Nice Answer Enlightened Great Answer Guru Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Constituent Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Enlightened Great Answer Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru Guru Nice Answer Enlightened Good Answer Good Answer Custodian Good Answer Good Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Good Answer spock Good Answer Good Answer Good Answer Good Answer Good Answer Good Answer jenkins Good Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Constituent Announcer Nice Answer Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Announcer Nice Answer Guru Guru Nice Answer Enlightened Good Answer Good Answer Census Nice Answer Great Answer gradle Announcer Nice Answer Enlightened Announcer Caucus Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Constituent Nice Answer Nice Answer Announcer Great Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened xml Guru Enlightened Guru Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Nice Answer Good Answer Guru Great Answer Nice Answer Guru Great Answer Nice Answer Nice Answer Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 75800,461630,805449,Supporter Revival,NULL,NULL,0,NULL,NULL 75801,424313,956747,NULL,NULL,NULL,0,NULL,NULL 75802,1159832,1321228,NULL,NULL,NULL,0,NULL,NULL 75803,497240,1370095,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 75804,125041,100107,NULL,NULL,NULL,0,NULL,NULL 75805,10093,708163,NULL,NULL,NULL,0,NULL,NULL 75806,101841,502322,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75807,418872,174963,Notable Question Famous Question Popular Question Yearling Good Question Famous Question Proofreader Notable Question Yearling Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75808,1166472,531362,Curious Revival Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75809,127889,207828,NULL,NULL,NULL,0,NULL,NULL 75810,1465279,1311260,NULL,NULL,NULL,0,NULL,NULL 75811,893158,1193003,NULL,NULL,NULL,0,NULL,NULL 75812,493774,395123,NULL,NULL,NULL,0,NULL,NULL 75813,250202,413307,NULL,NULL,NULL,0,NULL,NULL 75814,278911,1505891,Yearling Caucus Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75815,270234,626717,NULL,NULL,NULL,0,NULL,NULL 75816,3080,726136,NULL,NULL,NULL,0,NULL,NULL 75817,19122,726136,NULL,NULL,NULL,0,NULL,NULL 75818,1060912,703089,Good Answer Yearling Critic,NULL,NULL,0,NULL,NULL 75819,250269,223335,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75820,8613,639006,Teacher Supporter,NULL,NULL,0,NULL,NULL 75821,300403,729815,NULL,NULL,NULL,0,NULL,NULL 75822,15170,1157648,Yearling,NULL,NULL,0,NULL,NULL 75823,910652,342069,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 75824,22442,301899,NULL,NULL,NULL,0,NULL,NULL 75825,152615,71549,Necromancer,NULL,NULL,0,NULL,NULL 75826,304652,1013661,Famous Question Announcer Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 75827,304513,33514,Nice Question,NULL,NULL,0,NULL,NULL 75828,1093856,662208,Yearling,NULL,NULL,0,NULL,NULL 75829,428984,55225,Yearling Good Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 75830,45008,286057,NULL,NULL,NULL,0,NULL,NULL 75831,428874,796579,NULL,NULL,NULL,0,NULL,NULL 75832,312284,320438,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75833,414166,1505323,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 75834,976085,1074761,NULL,NULL,NULL,0,NULL,NULL 75835,325432,1233000,NULL,NULL,NULL,0,NULL,NULL 75836,755999,741300,NULL,NULL,NULL,0,NULL,NULL 75837,1038958,619978,Nice Answer Enlightened Nice Answer Nice Answer Yearling Notable Question Notable Question Popular Question Notable Question Good Answer Caucus Census Popular Question Yearling Notable Question Notable Question Notable Question Caucus Constituent Nice Answer Enlightened Revival Yearling Caucus Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 75838,114581,619978,Nice Answer Enlightened Nice Answer Nice Answer Yearling Notable Question Notable Question Popular Question Notable Question Good Answer Caucus Census Popular Question Yearling Notable Question Notable Question Notable Question Caucus Constituent Nice Answer Enlightened Revival Yearling Caucus Nice Answer Enlightened Necromancer,NULL,NULL,0,NULL,NULL 75839,745039,528365,NULL,NULL,NULL,0,NULL,NULL 75840,272770,285283,Nice Question Yearling Favorite Question Popular Question Popular Question Great Question Yearling Good Answer Yearling Famous Question Famous Question Stellar Question,NULL,NULL,0,NULL,NULL 75841,159072,394881,Popular Question,NULL,NULL,0,NULL,NULL 75842,32206,35844,Announcer,NULL,NULL,0,NULL,NULL 75843,36107,1176077,NULL,NULL,NULL,0,NULL,NULL 75844,7519175,109175,Populist Yearling Revival Famous Question Yearling Announcer Custodian Announcer Tag Editor Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 75845,60424,109175,Populist Yearling Revival Famous Question Yearling Announcer Custodian Announcer Tag Editor Yearling Announcer Good Answer,NULL,NULL,0,NULL,NULL 75846,2505640,920816,Nice Answer,NULL,NULL,0,NULL,NULL 75847,847083,920816,Nice Answer,NULL,NULL,0,NULL,NULL 75848,416598,1030528,Necromancer,NULL,NULL,0,NULL,NULL 75849,507995,955866,NULL,NULL,NULL,0,NULL,NULL 75850,6094515,84026,Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Custodian Notable Question Yearling Nice Question Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 75851,366703,84026,Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Custodian Notable Question Yearling Nice Question Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 75852,68212,292947,Nice Question Curious Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 75853,315627,199210,Notable Question Nice Question Great Question Popular Question Yearling Nice Answer Notable Question Favorite Question Nice Answer Yearling Popular Question Notable Question Famous Question Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 75854,890320,1159230,NULL,NULL,NULL,0,NULL,NULL 75855,94851,122343,NULL,NULL,NULL,0,NULL,NULL 75856,65487,821661,NULL,NULL,NULL,0,NULL,NULL 75857,1348619,634406,NULL,NULL,NULL,0,NULL,NULL 75858,3750,282175,Yearling Yearling Announcer Necromancer Yearling Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 75859,1157810,1369310,NULL,NULL,NULL,0,NULL,NULL 75860,779332,447945,NULL,NULL,NULL,0,NULL,NULL 75861,84854,913663,Nice Answer Enlightened Civic Duty Revival Custodian Census,NULL,NULL,0,NULL,NULL 75862,1053913,767120,NULL,NULL,NULL,0,NULL,NULL 75863,6898,767120,NULL,NULL,NULL,0,NULL,NULL 75864,68368,309101,NULL,NULL,NULL,0,NULL,NULL 75865,230297,413744,Populist Great Answer Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 75866,255943,112943,Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 75867,162123,218817,NULL,NULL,NULL,0,NULL,NULL 75868,59281,705,Nice Answer Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75869,20759,487544,Announcer Civic Duty Necromancer Census Yearling Announcer Documentation User,NULL,NULL,0,NULL,NULL 75870,60651,208817,Announcer Yearling Announcer Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 75871,60657,208817,Announcer Yearling Announcer Nice Answer Enlightened Yearling Necromancer,NULL,NULL,0,NULL,NULL 75872,1341265,91101,Revival,NULL,NULL,0,NULL,NULL 75873,78505,247316,Yearling Guru Citizen Patrol Good Answer Yearling Famous Question Yearling Great Answer Guru Popular Question,NULL,NULL,0,NULL,NULL 75874,278501,596969,NULL,NULL,NULL,0,NULL,NULL 75875,68056,45531,Good Answer Notable Question Nice Question Famous Question Famous Question sms Notable Question Nice Answer Nice Answer Nice Answer Good Question Yearling Famous Question Nice Question Revival Nice Answer Famous Question Yearling Census Notable Question Good Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 75876,349111,146438,Necromancer Good Question,NULL,NULL,0,NULL,NULL 75877,90220,164344,Popular Question Custodian Custodian Critic Self-Learner Yearling Informed Custodian Notable Question Yearling Caucus Yearling Constituent Reviewer Suffrage Vox Populi Deputy Yearling Civic Duty Reviewer Steward Curious Nice Answer Tenacious Notable Question Nice Answer Nice Question Yearling Caucus Yearling Electorate Explainer Popular Question Documentation User Custodian Custodian Custodian Census Popular Question Excavator Proofreader Caucus Constituent Yearling Good Answer,NULL,Detect Ubuntu on Windows vs native Ubuntu from bash script bash windows subsystem for linux pCan bash script detect if it running in Ubuntu on Windows vs native Ubuntu If so how ppI ran codeenv code on both machines and didn see any obvious environmental variable differences could test for the existence of the code mnt code directory but that is not foolproof because that directory could potentially also be present on native Ubuntu uname output from Ubuntu on Windows Linux COMPUTER PREEMPT Thu Aug 17 06 05 CST 2013 x86 64 x86 64 x86 64 GNU Linux,1,Detect Ubuntu on Windows vs native Ubuntu from bash script bash windows subsystem for linux pCan bash script detect if it running in Ubuntu on Windows vs native Ubuntu If so how ppI ran codeenv code on both machines and didn see any obvious environmental variable differences could test for the existence of the code mnt code directory but that is not foolproof because that directory could potentially also be present on native Ubuntu,NULL 75878,17731,197498,Good Answer Announcer Notable Question Yearling,NULL,NULL,0,NULL,NULL 75879,252628,379391,NULL,NULL,NULL,0,NULL,NULL 75880,537473,708122,NULL,NULL,NULL,0,NULL,NULL 75881,730365,924074,NULL,NULL,NULL,0,NULL,NULL 75882,70228,602193,Informed Autobiographer Self-Learner Editor Organizer Citizen Patrol Yearling Critic Commentator Popular Question,NULL,NULL,0,NULL,NULL 75883,6826,509989,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 75884,494085,171357,NULL,NULL,NULL,0,NULL,NULL 75885,21120,431850,Famous Question Notable Question Caucus Nice Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 75886,92975,277408,Popular Question,NULL,NULL,0,NULL,NULL 75887,450546,1075046,Supporter,NULL,NULL,0,NULL,NULL 75888,329716,10245,Notable Question Nice Answer Nice Answer Announcer Favorite Question Nice Answer Necromancer Nice Answer Popular Question Necromancer Necromancer Yearling Nice Question Investor Nice Answer Necromancer Nice Answer Announcer Announcer Good Answer Necromancer Announcer Nice Answer Nice Question Announcer Announcer Announcer Announcer Notable Question Notable Question Announcer Nice Answer Announcer Yearling Announcer Booster Announcer Populist Custodian Nice Answer Good Answer Announcer Necromancer Announcer Good Answer Announcer Announcer Necromancer Announcer Pundit Nice Answer Announcer Popular Question Announcer Booster Necromancer Yearling Good Answer Nice Answer Announcer Great Question Announcer,NULL,How to apply unmerged upstream pull requests from other forks into my fork git github pull request pA project on GitHub that have fork of has new pull requests that want to pull into my fork that the author has not pulled in yet ppIs there simple way to apply pull request from other forks into my fork Is there something else here that am missing Might also be interesting to find all the branches too https stackoverflow com 47798937 10245 pExplicit cursors are rarely needed in plpgsql Just use the simpler and faster strongimplicit cursor strong of href http www postgresql org docs current interactive plpgsql control structures html PLPGSQL RECORDS ITERATING rel nofollow noreferrer strong codeFOR code strong loop pp strongNote strong Since table names are not unique per database you have to schema qualify table names to be sure Also limit the function to the default schema public Adapt to your needs but be sure to exclude the system schemas codepg code and codeinformation schema code ppBe strongvery careful strong with these functions They nuke your database added child safety device Comment the codeRAISE NOTICE code line and uncomment codeEXECUTE code to prime the bomb ppre codeCREATE OR REPLACE FUNCTION truncate tables username text RETURNS void AS func DECLARE tbl text sch text BEGIN FOR sch tbl IN SELECT schemaname tablename FROM pg tables WHERE tableowner username AND schemaname public LOOP RAISE NOTICE EXECUTE dangerous test before you execute format TRUNCATE TABLE CASCADE sch tbl END LOOP END func LANGUAGE plpgsql code prep href http www postgresql org docs current interactive functions string html FUNCTIONS STRING FORMAT rel nofollow noreferrer codeformat code requires Postgres or later In older versions concatenate the query string like this ppre code TRUNCATE TABLE quote ident sch quote ident tbl CASCADE code preh3Single command no loop h3pSince we can href http www postgresql org docs current interactive sql truncate html rel nofollow noreferrer strong codeTRUNCATE code strong multiple tables at once we don need any cursor or loop at all pulli href https stackoverflow com questions 23723851 passing table names in an array 23729229 23729229 Passing table names in an array li ulpAggregate all table names and execute single statement Simpler faster ppre codeCREATE OR REPLACE FUNCTION truncate tables username text RETURNS void AS func BEGIN RAISE NOTICE EXECUTE dangerous test before you execute SELECT TRUNCATE TABLE string agg format schemaname tablename CASCADE FROM pg tables WHERE tableowner username AND schemaname public END func LANGUAGE plpgsql code prepCall ppre codeSELECT truncate tables postgres code preh3Refined query h3pYou don even need function In Postgres you can execute dynamic commands in href http www postgresql org docs current interactive sql do html rel nofollow noreferrer strong codeDO code strong statement And in Postgres the syntax can be even simpler ppre codeDO func BEGIN RAISE NOTICE EXECUTE SELECT TRUNCATE TABLE string agg oid regclass text CASCADE FROM pg class WHERE relkind only tables AND relnamespace public regnamespace END func code prepAbout the difference between codepg class code codepg tables code and codeinformation schema tables code pulli href https stackoverflow com questions 20582500 how to check if table exists in given schema 24089729 24089729 How to check if table exists in given schema li ulpAbout coderegclass code and quoted table names pulli href https stackoverflow com questions 10705616 table name as postgresql function parameter 10711349 10711349 Table name as PostgreSQL function parameter li ulh2For repeated use h2pIt might be simpler and much faster to create template database let name it codemy template code with your vanilla structure and all empty tables Then go through strong codeDROP code href http www postgresql org docs current interactive sql createdatabase html rel nofollow noreferrer codeCREATE DATABASE code strong cycle ppre codeDROP DATABASE mydb CREATE DATABASE mydb bTEMPLATE my template code prepThis is strong emextremely em fast strong because Postgres copies the whole structure on the file level No concurrency issues or other overhead slowing you down fixed your refined query it had wayward extra semicolon that my postgres choked on ERROR mismatched parentheses at or near LINE AND relnamespace public regnamespace,0,NULL,NULL 75889,5998,253544,Supporter,NULL,NULL,0,NULL,NULL 75890,100261,23987,Necromancer Custodian Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 75891,1513039,722182,NULL,NULL,NULL,0,NULL,NULL 75892,151583,1086020,NULL,NULL,NULL,0,NULL,NULL 75893,727683,371754,NULL,NULL,NULL,0,NULL,NULL 75894,189856,599344,Yearling ios Citizen Patrol Good Answer Excavator Synonymizer Nice Answer swift Suffrage Vox Populi Civic Duty Electorate Enthusiast Good Question Guru Explainer Nice Answer Enlightened Caucus Tag Editor Constituent Mortarboard Nice Answer Enlightened Self-Learner Yearling realm Proofreader Custodian Census Nice Question Nice Answer Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Popular Question Caucus Notable Question ios Fanatic Popular Question Nice Answer Popular Question Nice Answer Nice Answer Enlightened Census Yearling swift Caucus Constituent Nice Answer Enlightened Nice Answer Enlightened objective-c Good Answer Good Answer,NULL,NULL,0,NULL,NULL 75895,923339,1073446,NULL,NULL,NULL,0,NULL,NULL 75896,6019,1106496,NULL,NULL,NULL,0,NULL,NULL 75897,881226,947443,NULL,NULL,NULL,0,NULL,NULL 75898,113650,430676,NULL,NULL,NULL,0,NULL,NULL 75899,46024,1038764,Nice Answer,NULL,NULL,0,NULL,NULL 75900,1205367,803146,NULL,NULL,NULL,0,NULL,NULL 75901,181050,775751,Informed,NULL,NULL,0,NULL,NULL 75902,3273718,204013,NULL,NULL,NULL,0,NULL,NULL 75903,239100,204013,NULL,NULL,NULL,0,NULL,NULL 75904,560755,736518,Nice Question Necromancer Benefactor Civic Duty Popular Question Necromancer Popular Question Nice Answer Yearling Revival Famous Question Necromancer Good Answer Necromancer Nice Answer Caucus Informed Constituent Necromancer Self-Learner Notable Question Good Answer Yearling Announcer Nice Answer Announcer Yearling Nice Answer Enlightened Notable Question Notable Question Popular Question,NULL,pif you really need to do it via codessh code this is working with docker ppinit docker ppre codeeval docker machine env default code prepget the IP from your default docker machine ppre codedocker machine ip default code prepthis prints something like this out code192 168 99 100 code ppre codessh docker 168 99 100 code preppassword is codetcuser code but you can also use the identity file see other answer found somewhere else but you can see it also here https github com docker machine search utf8 E2 9C 93 tcuser pif you really need to do it via codessh code this is working with docker ppinit docker ppre codeeval docker machine env default code prepget the IP from your default docker machine ppre codedocker machine ip default code prepthis prints something like this out code192 168 99 100 code ppre codessh docker 168 99 100 code preppassword is codetcuser code but you can also use the identity file see other answer here is an issue about the topic https github com docker machine issues 1615,0,NULL,NULL 75905,1142367,328161,Tumbleweed Good Question Critic Yearling Popular Question Curious Notable Question,NULL,NULL,0,NULL,NULL 75906,125023,1543619,NULL,NULL,NULL,0,NULL,NULL 75907,196617,1252537,NULL,NULL,NULL,0,NULL,NULL 75908,37061,263969,Yearling Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 75909,241444,99021,Popular Question Yearling Famous Question Citizen Patrol Nice Answer Announcer Notable Question,NULL,NULL,0,NULL,NULL 75910,29729,613267,NULL,NULL,NULL,0,NULL,NULL 75911,82779,606424,NULL,NULL,NULL,0,NULL,NULL 75912,622766,1464140,Popular Question,NULL,NULL,0,NULL,NULL 75913,13993,1049975,Notable Question Nice Question Popular Question Famous Question Curious Popular Question,NULL,NULL,0,NULL,NULL 75914,8637,183863,Curious Yearling Popular Question Caucus Popular Question Popular Question Yearling Custodian Necromancer Yearling,NULL,NULL,0,NULL,NULL 75915,16726,162291,Popular Question Yearling,NULL,NULL,0,NULL,NULL 75916,4089402,162291,Popular Question Yearling,NULL,NULL,0,NULL,NULL 75917,525335,781167,NULL,NULL,NULL,0,NULL,NULL 75918,592149,1405169,Autobiographer Teacher,NULL,NULL,0,NULL,NULL 75919,429689,763365,NULL,NULL,NULL,0,NULL,NULL 75920,205348,523568,Nice Answer Enlightened Nice Answer Good Answer Nice Answer Guru Custodian Yearling Custodian Custodian Custodian Yearling Announcer Revival Revival Great Answer Yearling,NULL,NULL,0,NULL,NULL 75921,7071,519617,Notable Question Populist javascript Yearling jquery Favorite Question Famous Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 75922,421504,1125548,Curious Commentator Yearling Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 75923,368812,1470962,NULL,NULL,NULL,0,NULL,NULL 75924,170375,903340,NULL,NULL,NULL,0,NULL,NULL 75925,459537,105019,zend-framework Yearling Famous Question Popular Question Popular Question Notable Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Popular Question Good Answer Nice Answer Census Nice Answer Enlightened Yearling Nice Answer Enlightened Informed Nice Question,NULL,NULL,0,NULL,NULL 75926,733657,100609,Nice Answer Enlightened Tumbleweed,NULL,NULL,0,NULL,NULL 75927,143,452141,NULL,NULL,NULL,0,NULL,NULL 75928,156997,330821,NULL,NULL,NULL,0,NULL,NULL 75929,652245,87990,Favorite Question Necromancer Yearling Good Answer Guru Yearling Great Question Census Yearling Good Question,NULL,NULL,0,NULL,NULL 75930,146530,235614,Yearling Commentator Caucus Good Answer,NULL,NULL,0,NULL,NULL 75931,299446,483151,Informed Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 75932,317544,784553,Nice Question,NULL,NULL,0,NULL,NULL 75933,183468,768828,Nice Answer,NULL,NULL,0,NULL,NULL 75934,733767,768828,Nice Answer,NULL,NULL,0,NULL,NULL 75935,143861,352560,Curious Caucus,NULL,NULL,0,NULL,NULL 75936,237279,140985,Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75937,199364,1139207,NULL,NULL,NULL,0,NULL,NULL 75938,1382337,190303,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 75939,523644,849331,Notable Question Notable Question Popular Question Caucus Critic Caucus Notable Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 75940,162129,977205,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 75941,1164607,1062707,Yearling,NULL,NULL,0,NULL,NULL 75942,226075,1424123,Popular Question,NULL,NULL,0,NULL,NULL 75943,278535,1112306,NULL,NULL,NULL,0,NULL,NULL 75944,110949,24558,Popular Question,NULL,pHere is fast and easy way of parsing query strings in JavaScript ppre codefunction getQueryVariable variable var query window location search substring var vars query split amp for var lt vars length var pair vars split if decodeURIComponent pair variable return decodeURIComponent pair console log Query variable not found variable code prepNow make request to strongpage html Hello strong ppre codeconsole log getQueryVariable code pre éeGroleau and Perl perl print join split,0,NULL,NULL 75945,35653,935398,Nice Question,NULL,NULL,0,NULL,NULL 75946,1436799,320320,Great Answer Yearling Notable Question Popular Question Yearling Nice Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 75947,430818,722626,NULL,NULL,NULL,0,NULL,NULL 75948,273615,282794,NULL,NULL,NULL,0,NULL,NULL 75949,603620,1015288,NULL,NULL,NULL,0,NULL,NULL 75950,36937,128055,Necromancer Notable Question,NULL,NULL,0,NULL,NULL 75951,177017,415901,Nice Question,NULL,NULL,0,NULL,NULL 75952,28182,379576,Necromancer,NULL,NULL,0,NULL,NULL 75953,1191132,1347084,NULL,NULL,NULL,0,NULL,NULL 75954,73461,826797,Custodian Yearling Famous Question Documentation User Good Question Census,NULL,NULL,0,NULL,NULL 75955,480653,1319720,NULL,NULL,NULL,0,NULL,NULL 75956,384244,901381,Critic Nice Answer,NULL,NULL,0,NULL,NULL 75957,402079,27488,Nice Answer Yearling Nice Answer Commentator Yearling Good Question Nice Answer Famous Question Good Answer,NULL,NULL,0,NULL,NULL 75958,1515450,1493611,NULL,NULL,NULL,0,NULL,NULL 75959,155896,5569,Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 75960,130191,202785,NULL,NULL,NULL,0,NULL,NULL 75961,381411,916854,NULL,NULL,NULL,0,NULL,NULL 75962,1621615,1322770,NULL,NULL,NULL,0,NULL,NULL 75963,33228,874729,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 75964,99331,1280515,NULL,NULL,NULL,0,NULL,NULL 75965,473290,1079793,NULL,NULL,NULL,0,NULL,NULL 75966,1461147,616246,NULL,NULL,NULL,0,NULL,NULL 75967,150935,317253,NULL,NULL,NULL,0,NULL,NULL 75968,2886709,181759,Famous Question Popular Question Yearling Census Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 75969,11322013,1160292,NULL,NULL,NULL,0,NULL,NULL 75970,1211621,1160292,NULL,NULL,NULL,0,NULL,NULL 75971,201102,1220546,NULL,NULL,NULL,0,NULL,NULL 75972,107857,628153,NULL,NULL,NULL,0,NULL,NULL 75973,994343,543347,Informed Documentation User Custodian,NULL,NULL,0,NULL,NULL 75974,156167,278712,Civic Duty Critic Tumbleweed Caucus Constituent Caucus Autobiographer Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 75975,335019,1028534,NULL,NULL,NULL,0,NULL,NULL 75976,207619,234108,NULL,NULL,NULL,0,NULL,NULL 75977,2108998,241513,Notable Question Notable Question Good Answer Notable Question Good Answer Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Yearling Nice Answer Popular Question Good Question Popular Question Yearling Popular Question Custodian Caucus Constituent Popular Question Famous Question,NULL,NULL,0,NULL,NULL 75978,137127,783100,Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 75979,588667,1182875,NULL,NULL,NULL,0,NULL,NULL 75980,6650631,644831,Yearling Yearling Popular Question plone,NULL,NULL,0,NULL,NULL 75981,3801384,943504,NULL,NULL,NULL,0,NULL,NULL 75982,152896,322068,NULL,NULL,NULL,0,NULL,NULL 75983,180692,1509817,NULL,NULL,NULL,0,NULL,NULL 75984,340755,837167,NULL,NULL,NULL,0,NULL,NULL 75985,1034364,283136,Promoter Necromancer Nice Question Necromancer Nice Answer Yearling Famous Question Good Answer Nice Question Popular Question Notable Question Famous Question Yearling Announcer Famous Question Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 75986,445215,794139,NULL,NULL,NULL,0,NULL,NULL 75987,3627120,653154,NULL,NULL,NULL,0,NULL,NULL 75988,698606,744842,NULL,NULL,NULL,0,NULL,NULL 75989,427766,845187,NULL,NULL,NULL,0,NULL,NULL 75990,307710,428331,NULL,NULL,NULL,0,NULL,NULL 75991,234746,75320,Revival Yearling Nice Question Great Answer Caucus Documentation User Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 75992,128349,638352,NULL,NULL,NULL,0,NULL,NULL 75993,120290,1086817,NULL,NULL,NULL,0,NULL,NULL 75994,10785887,647343,Civic Duty Commentator Yearling Critic Curious Caucus Constituent Yearling Popular Question Documentation User Revival Notable Question Caucus Notable Question Announcer,NULL,NULL,0,NULL,NULL 75995,186136,647343,Civic Duty Commentator Yearling Critic Curious Caucus Constituent Yearling Popular Question Documentation User Revival Notable Question Caucus Notable Question Announcer,NULL,NULL,0,NULL,NULL 75996,124424,445565,Necromancer Yearling Popular Question Popular Question Nice Answer Caucus Yearling Nice Answer Nice Question Necromancer Yearling Organizer Tag Editor r Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 75997,60459,7869,Good Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 75998,841081,1563437,Yearling Caucus,NULL,NULL,0,NULL,NULL 75999,899221,1141570,Curious,NULL,NULL,0,NULL,NULL 76000,538184,3877,NULL,NULL,NULL,0,NULL,NULL 76001,3686141,3877,NULL,NULL,NULL,0,NULL,NULL 76002,290792,1305414,NULL,NULL,NULL,0,NULL,NULL 76003,33987,503826,Announcer Popular Question Popular Question Announcer Good Answer Popular Question Notable Question Yearling Announcer Nice Answer Notable Question Announcer Notable Question Good Answer Popular Question Yearling Nice Answer Census Popular Question Nice Question Popular Question Popular Question Nice Question Great Answer Famous Question Famous Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 76004,5057224,313689,Nice Question Yearling Notable Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 76005,47637,313689,Nice Question Yearling Notable Question Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 76006,140193,16634,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76007,3597,387361,Popular Question Yearling,NULL,NULL,0,NULL,NULL 76008,220811,182484,Yearling Popular Question Nice Question Notable Question Revival Popular Question Notable Question Nice Question Famous Question Notable Question Notable Question Nice Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76009,462606,1191576,Popular Question,NULL,NULL,0,NULL,NULL 76010,867265,175827,Promoter Notable Question,NULL,NULL,0,NULL,NULL 76011,183537,1285079,NULL,NULL,NULL,0,NULL,NULL 76012,32309,547078,NULL,NULL,NULL,0,NULL,NULL 76013,160764,405348,NULL,NULL,NULL,0,NULL,NULL 76014,343975,604808,NULL,NULL,NULL,0,NULL,NULL 76015,161398,943604,Guru Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76016,47433,890735,NULL,NULL,NULL,0,NULL,NULL 76017,105718,158334,Proofreader Popular Question Notable Question Fanatic Tumbleweed Notable Question clojure Yearling Nice Answer Caucus Constituent Necromancer Caucus Yearling Nice Answer clojurescript Electorate Yearling,NULL,NULL,0,NULL,NULL 76018,273853,438720,Yearling Caucus Constituent Caucus Constituent Good Answer Caucus Nice Answer,NULL,NULL,0,NULL,NULL 76019,707541,854427,NULL,NULL,NULL,0,NULL,NULL 76020,4014270,1385583,NULL,NULL,NULL,0,NULL,NULL 76021,380098,1461624,Popular Question Notable Question Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76022,446244,500999,Good Answer Necromancer Yearling Popular Question Yearling Necromancer Announcer Nice Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76023,2722116,752865,NULL,NULL,NULL,0,NULL,NULL 76024,400397,1153996,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76025,38618,713431,NULL,NULL,NULL,0,NULL,NULL 76026,99396,1012875,Caucus Constituent Caucus Constituent,NULL,NULL,0,NULL,NULL 76027,271864,1078521,Yearling Popular Question Yearling Critic,NULL,NULL,0,NULL,NULL 76028,5557059,996879,Nice Question Yearling Famous Question Self-Learner Good Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76029,1580166,504077,Popular Question,NULL,NULL,0,NULL,NULL 76030,22700,1247428,NULL,NULL,NULL,0,NULL,NULL 76031,79298,427710,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76032,30041,887735,NULL,NULL,NULL,0,NULL,NULL 76033,908563,474806,NULL,NULL,NULL,0,NULL,NULL 76034,73218,595363,Enlightened,NULL,NULL,0,NULL,NULL 76035,193177,780108,Teacher,NULL,NULL,0,NULL,NULL 76036,376395,1102081,NULL,NULL,NULL,0,NULL,NULL 76037,493118,1332038,NULL,NULL,NULL,0,NULL,NULL 76038,256610,741771,NULL,NULL,NULL,0,NULL,NULL 76039,131100,809377,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76040,234461,756095,Nice Answer Enlightened Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76041,302290,1311499,NULL,NULL,NULL,0,NULL,NULL 76042,189321,307303,Yearling Supporter Critic Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76043,28241,1268757,NULL,NULL,NULL,0,NULL,NULL 76044,2416407,950549,NULL,NULL,NULL,0,NULL,NULL 76045,395179,1326795,NULL,NULL,NULL,0,NULL,NULL 76046,448312,656559,NULL,NULL,NULL,0,NULL,NULL 76047,935631,462884,NULL,NULL,NULL,0,NULL,NULL 76048,349865,658536,Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 76049,13086,786918,NULL,NULL,NULL,0,NULL,NULL 76050,1514769,743533,Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 76051,661927,936768,Popular Question Popular Question Disciplined Caucus,NULL,NULL,0,NULL,NULL 76052,31278,1214738,Scholar,NULL,NULL,0,NULL,NULL 76053,32624,1284179,Enthusiast,NULL,NULL,0,NULL,NULL 76054,818480,246071,NULL,NULL,NULL,0,NULL,NULL 76055,889262,215642,Yearling youtube-api Yearling Necromancer Nice Answer Enlightened Great Answer Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 76056,421573,1522104,Informed Editor Excavator,NULL,NULL,0,NULL,NULL 76057,337957,1051105,Teacher Popular Question Necromancer Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 76058,85651,782822,Guru Disciplined Yearling Nice Answer Great Answer Guru Good Answer Good Answer Caucus node.js Constituent Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Nice Answer Good Answer Caucus Nice Answer Nice Answer Enlightened Guru Documentation User Announcer Nice Answer Announcer Census Caucus Populist Yearling Nice Answer Good Answer Announcer,NULL,NULL,0,NULL,NULL 76059,558281,1283303,NULL,NULL,NULL,0,NULL,NULL 76060,451588,1159890,NULL,NULL,NULL,0,NULL,NULL 76061,328477,13822,Popular Question Nice Question Famous Question Yearling Custodian Custodian Suffrage Proofreader Excavator Investor Yearling Documentation User Yearling Popular Question Tenacious,NULL,NULL,0,NULL,NULL 76062,2055972,203870,NULL,NULL,NULL,0,NULL,NULL 76063,757044,895525,NULL,NULL,NULL,0,NULL,NULL 76064,1741684,895525,NULL,NULL,NULL,0,NULL,NULL 76065,153490,107734,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76066,781147,1346860,NULL,NULL,NULL,0,NULL,NULL 76067,200178,554046,Commentator,NULL,NULL,0,NULL,NULL 76068,294566,429998,Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 76069,546003,919128,NULL,NULL,NULL,0,NULL,NULL 76070,163996,1262051,Tumbleweed Informed Yearling,NULL,NULL,0,NULL,NULL 76071,1070035,985180,Revival Notable Question,NULL,NULL,0,NULL,NULL 76072,91762,985180,Revival Notable Question,NULL,NULL,0,NULL,NULL 76073,275652,183926,Tumbleweed Curious Revival Critic Self-Learner Popular Question Popular Question Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 76074,10769,728831,NULL,NULL,NULL,0,NULL,NULL 76075,642479,121290,Yearling,NULL,NULL,0,NULL,NULL 76076,741608,900681,NULL,NULL,NULL,0,NULL,NULL 76077,104014,770742,NULL,NULL,NULL,0,NULL,NULL 76078,376283,314537,Famous Question Tumbleweed Promoter Benefactor Explainer Announcer,NULL,NULL,0,NULL,NULL 76079,842739,582122,NULL,NULL,NULL,0,NULL,NULL 76080,63012,1137004,Yearling Notable Question Popular Question Nice Answer Enlightened Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 76081,449483,757845,Revival Nice Answer Popular Question Popular Question Yearling Notable Question Organizer Caucus Nice Answer Notable Question Yearling Good Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 76082,295517,1031450,NULL,NULL,NULL,0,NULL,NULL 76083,400439,1214581,NULL,NULL,NULL,0,NULL,NULL 76084,63877,691502,Popular Question,NULL,NULL,0,NULL,NULL 76085,201062,1554566,NULL,NULL,NULL,0,NULL,NULL 76086,147442,332282,NULL,NULL,NULL,0,NULL,NULL 76087,1504667,1052855,Yearling Good Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 76088,295221,825623,Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76089,291151,129553,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76090,779160,851354,Notable Question,NULL,NULL,0,NULL,NULL 76091,198941,1064792,NULL,NULL,NULL,0,NULL,NULL 76092,1347145,471472,NULL,NULL,NULL,0,NULL,NULL 76093,195550,238880,Notable Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Good Question Citizen Patrol Nice Answer Nice Question Popular Question Nice Answer Famous Question Notable Question Yearling Popular Question Guru Popular Question Notable Question Notable Question Popular Question Announcer Popular Question Popular Question Notable Question Notable Question Notable Question Nice Answer Enlightened Popular Question Yearling Nice Question Revival Custodian Popular Question Notable Question Necromancer Notable Question Nice Answer Notable Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 76094,882173,1160117,NULL,NULL,NULL,0,NULL,NULL 76095,333638,336673,NULL,NULL,NULL,0,NULL,NULL 76096,318695,750495,Popular Question Popular Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 76097,161029,1317245,NULL,NULL,NULL,0,NULL,NULL 76098,3359229,1317245,NULL,NULL,NULL,0,NULL,NULL 76099,569145,1478959,NULL,NULL,NULL,0,NULL,NULL 76100,670448,645685,Informed Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 76101,911604,1456221,Popular Question,NULL,NULL,0,NULL,NULL 76102,3446884,1155897,NULL,NULL,NULL,0,NULL,NULL 76103,173973,1370499,NULL,NULL,NULL,0,NULL,NULL 76104,487771,341227,Organizer Critic,NULL,NULL,0,NULL,NULL 76105,105448,220487,Good Question,NULL,NULL,0,NULL,NULL 76106,1426765,1078596,NULL,NULL,NULL,0,NULL,NULL 76107,83153,997493,Tumbleweed,NULL,NULL,0,NULL,NULL 76108,132906,150569,NULL,NULL,NULL,0,NULL,NULL 76109,245419,1306367,NULL,NULL,NULL,0,NULL,NULL 76110,102347,14322,Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 76111,176555,1152487,Informed,NULL,NULL,0,NULL,NULL 76112,52987,269518,Informed,NULL,NULL,0,NULL,NULL 76113,156134,614277,Caucus Notable Question Caucus Citizen Patrol Civic Duty Yearling Organizer Yearling Peer Pressure Custodian Popular Question,NULL,pUsing the strongpost update strong file below polliCopy over your git directory to your web server lili pOn your local copy modify your git config file and add your web server as remote ppre code remote production url username path to htdocs git code pre lili pOn the server replace git hooks post update with file below lili pAdd execute access to the file again on the server ppre codechmod git hooks post update code pre lili pNow just locally push to your web server and it should automatically update the working copy ppre codegit push production code pre li olpre class lang bash prettyprint override code bin sh This hook does two things update the info files that allow the list of references to be queries over dumb transports such as http if this repository looks like it is non bare repository and the checked out branch is pushed to then update the working copy This makes push function somewhat similarly to darcs and bzr To enable this hook make this file executable by chmod post update git update server info is bare git config get bool core bare if is bare then for compatibility sake guess git dir full cd GIT DIR pwd case git dir full in git is bare false is bare true esacfi update wc ref echo Push to checked out branch ref gt amp if GIT DIR logs HEAD then echo push to non bare repository requires HEAD reflog gt amp exit fi if cd GIT WORK TREE git diff files exit code gt dev null then wc dirty else echo unstaged changes found in working copy gt amp wc dirty desc working copy fi if git diff index cached HEAD gt dev null then index dirty else echo uncommitted staged changes found gt amp index dirty if desc then desc desc and index else desc index fi fi if wc dirty ne index dirty ne then new git rev parse HEAD echo stashing dirty desc see git stash gt amp trap echo trapped git symbolic ref HEAD ref 13 15 ERR EXIT git update ref no deref HEAD HEAD cd GIT WORK TREE git stash save dirty desc before update to new git symbolic ref HEAD ref fi eye candy show the WC updates echo Updating working copy gt amp cd GIT WORK TREE git diff index name status HEAD gt amp git reset hard HEAD if is bare false then active branch git symbolic ref HEAD export GIT DIR cd GIT DIR pwd GIT WORK TREE GIT WORK TREE for ref do if ref active branch then update wc ref fi donefi code pre in any case you are going to write shell commands if you are using git so instead of writing script in another language and constantly juggle between that language and shell writing it all in shell seems logical don you think,0,NULL,NULL 76114,2067088,1176238,NULL,NULL,NULL,0,NULL,NULL 76115,41519,387413,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 76116,26103,1373932,Custodian Nice Answer Yearling Guru Civic Duty Great Answer Good Answer Yearling Documentation User Good Answer Yearling Good Answer Guru Great Answer,NULL,NULL,0,NULL,NULL 76117,93999,874601,NULL,NULL,NULL,0,NULL,NULL 76118,67265,861184,Promoter Nice Question Yearling,NULL,NULL,0,NULL,NULL 76119,888983,214853,NULL,NULL,NULL,0,NULL,NULL 76120,193976,120475,NULL,NULL,NULL,0,NULL,NULL 76121,33649,104513,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 76122,1954,382168,Yearling,NULL,NULL,0,NULL,NULL 76123,363725,859123,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76124,736598,713192,NULL,NULL,NULL,0,NULL,NULL 76125,1351867,825486,NULL,NULL,NULL,0,NULL,NULL 76126,1412454,854959,Autobiographer,NULL,NULL,0,NULL,NULL 76127,280180,847731,NULL,NULL,NULL,0,NULL,NULL 76128,18105,363793,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76129,143736,37207,Nice Answer Yearling Caucus Nice Question Popular Question Great Answer Good Answer Nice Answer Caucus Popular Question Yearling Popular Question Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 76130,162342,55954,Yearling Guru Nice Answer Enlightened Yearling Good Answer Informed Enlightened Yearling,NULL,NULL,0,NULL,NULL 76131,1856001,875319,NULL,NULL,NULL,0,NULL,NULL 76132,372836,697851,Yearling Famous Question Popular Question Popular Question Famous Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 76133,427073,331893,NULL,NULL,NULL,0,NULL,NULL 76134,162983,1187723,Census Caucus,NULL,NULL,0,NULL,NULL 76135,84401,104,Yearling Popular Question Good Question Good Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 76136,1299533,8547,Notable Question Popular Question Notable Question Yearling Good Question Famous Question Popular Question Notable Question Yearling Famous Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 76137,299087,783167,NULL,NULL,NULL,0,NULL,NULL 76138,529060,654740,NULL,NULL,NULL,0,NULL,NULL 76139,105036,200066,Nice Question Popular Question Popular Question Nice Question Notable Question Famous Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 76140,146648,959727,NULL,NULL,NULL,0,NULL,NULL 76141,200415,593432,NULL,NULL,NULL,0,NULL,NULL 76142,131711,241642,Popular Question Famous Question Yearling Nice Answer Nice Question Yearling Revival,NULL,NULL,0,NULL,NULL 76143,133421,134301,Nice Answer Enlightened Yearling Good Answer Yearling Documentation User Guru Yearling,NULL,NULL,0,NULL,NULL 76144,82081,164468,Notable Question Yearling Notable Question Notable Question Good Question Popular Question Popular Question Good Question Famous Question Good Question Yearling Nice Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76145,3883061,823896,Critic,NULL,NULL,0,NULL,NULL 76146,389340,1176170,NULL,NULL,NULL,0,NULL,NULL 76147,22115,719696,NULL,NULL,NULL,0,NULL,NULL 76148,69571,279809,NULL,NULL,NULL,0,NULL,NULL 76149,157145,1096083,Critic Yearling Necromancer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 76150,156468,844583,Popular Question Self-Learner Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 76151,560725,663153,NULL,NULL,NULL,0,NULL,NULL 76152,801349,854645,NULL,NULL,NULL,0,NULL,NULL 76153,188361,1047890,NULL,NULL,NULL,0,NULL,NULL 76154,297481,1327865,Scholar Supporter,NULL,NULL,0,NULL,NULL 76155,853172,192175,NULL,NULL,NULL,0,NULL,NULL 76156,55504,360774,Yearling Revival,NULL,NULL,0,NULL,NULL 76157,282957,843058,Popular Question,NULL,NULL,0,NULL,NULL 76158,193917,522446,NULL,NULL,NULL,0,NULL,NULL 76159,787777,985397,Guru Yearling,NULL,NULL,0,NULL,NULL 76160,18581,413290,NULL,NULL,NULL,0,NULL,NULL 76161,334818,1448821,NULL,NULL,NULL,0,NULL,NULL 76162,420552,835246,NULL,NULL,NULL,0,NULL,NULL 76163,113519,322887,NULL,NULL,NULL,0,NULL,NULL 76164,20236,986350,Editor Necromancer,NULL,NULL,0,NULL,NULL 76165,180921,894341,NULL,NULL,NULL,0,NULL,NULL 76166,197252,1148913,NULL,NULL,NULL,0,NULL,NULL 76167,164214,411376,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76168,23356,175320,Yearling Nice Answer Nice Answer Enlightened python Yearling Nice Answer Good Answer Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 76169,325494,1449926,Yearling Popular Question Revival Caucus Popular Question Popular Question Popular Question Caucus Constituent Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76170,113008,1474338,NULL,NULL,NULL,0,NULL,NULL 76171,838701,160714,Critic Editor,NULL,NULL,0,NULL,NULL 76172,173799,1073625,Popular Question,NULL,NULL,0,NULL,NULL 76173,978655,438503,Enthusiast,NULL,NULL,0,NULL,NULL 76174,83290,134321,Yearling,NULL,NULL,0,NULL,NULL 76175,48412,339515,Yearling Popular Question Popular Question Yearling Popular Question Popular Question Good Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76176,151204,1154626,Notable Question Supporter,NULL,NULL,0,NULL,NULL 76177,10302,820835,NULL,NULL,NULL,0,NULL,NULL 76178,858523,406803,NULL,NULL,NULL,0,NULL,NULL 76179,132573,406803,NULL,NULL,NULL,0,NULL,NULL 76180,241394,577012,NULL,NULL,NULL,0,NULL,NULL 76181,140490,985828,NULL,NULL,,0,, 76182,387150,1009949,NULL,NULL,NULL,0,NULL,NULL 76183,960722,1211121,NULL,NULL,NULL,0,NULL,NULL 76184,678810,889200,Necromancer,NULL,NULL,0,NULL,NULL 76185,274662,124090,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76186,2268,1076949,Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 76187,37345,11148,Yearling Enthusiast,NULL,NULL,0,NULL,NULL 76188,612950,4925,NULL,NULL,NULL,0,NULL,NULL 76189,64356,206824,NULL,NULL,NULL,0,NULL,NULL 76190,409640,1230374,Critic,NULL,NULL,0,NULL,NULL 76191,13677,137750,Tumbleweed Nice Question,NULL,NULL,0,NULL,NULL 76192,408485,601736,NULL,NULL,NULL,0,NULL,NULL 76193,380242,642486,Notable Question,NULL,NULL,0,NULL,NULL 76194,53027,950493,NULL,NULL,NULL,0,NULL,NULL 76195,217356,1026762,NULL,NULL,NULL,0,NULL,NULL 76196,621123,476697,Nice Answer Revival Yearling Caucus Constituent Caucus Yearling Necromancer Custodian Caucus Yearling,NULL,NULL,0,NULL,NULL 76197,195998,675775,Revival Yearling,NULL,NULL,0,NULL,NULL 76198,1251473,133852,Yearling Revival Popular Question Necromancer Yearling Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 76199,25854,518803,Teacher Revival Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 76200,93362,114353,Popular Question Yearling,NULL,NULL,0,NULL,NULL 76201,52421,1304061,Student Supporter Scholar Nice Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 76202,140594,1475062,Supporter,NULL,,0,, 76203,492779,14942,Nice Question Great Answer Yearling Famous Question Good Answer Yearling Informed Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76204,1225469,996772,NULL,NULL,NULL,0,NULL,NULL 76205,4404189,538646,Nice Question Popular Question Famous Question Favorite Question Notable Question Yearling Nice Question Yearling Popular Question Good Question Announcer Good Question,NULL,NULL,0,NULL,NULL 76206,1877252,24000,NULL,NULL,NULL,0,NULL,NULL 76207,114988,200710,NULL,NULL,NULL,0,NULL,NULL 76208,485380,1306877,Custodian Fanatic Yearling Documentation Pioneer Necromancer Critic Scholar Caucus Constituent Caucus Constituent Documentation User Announcer Caucus Constituent Popular Question Yearling,NULL,NULL,0,NULL,NULL 76209,235430,648040,NULL,NULL,NULL,0,NULL,NULL 76210,2411898,823132,Yearling Custodian Custodian Custodian Explainer Mortarboard Tenacious Yearling Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 76211,167122,710233,NULL,NULL,NULL,0,NULL,NULL 76212,4340903,97443,Notable Question Necromancer Good Answer Necromancer Yearling Popular Question Popular Question Notable Question Nice Answer Popular Question Nice Question Great Answer Revival Yearling Notable Question Necromancer Yearling Great Answer,NULL,NULL,0,NULL,NULL 76213,175628,535574,NULL,NULL,NULL,0,NULL,NULL 76214,62544,113,Notable Question Nice Answer Announcer Yearling Promoter Popular Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 76215,1065917,1344732,Notable Question Nice Answer Yearling Nice Answer Enlightened Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Popular Question Notable Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76216,7738,774863,Editor Teacher Popular Question Student,NULL,NULL,0,NULL,NULL 76217,104806,1458774,Scholar Documentation User,NULL,NULL,0,NULL,NULL 76218,88563,774886,NULL,NULL,NULL,0,NULL,NULL 76219,443030,714452,Famous Question,NULL,NULL,0,NULL,NULL 76220,7295396,412049,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 76221,227066,1056992,NULL,NULL,NULL,0,NULL,NULL 76222,261435,611911,Caucus Yearling Caucus Constituent Excavator Custodian Scholar,NULL,NULL,0,NULL,NULL 76223,659291,566559,Tumbleweed Student Informed Popular Question,NULL,NULL,0,NULL,NULL 76224,385498,589679,NULL,NULL,NULL,0,NULL,NULL 76225,256655,589679,NULL,NULL,NULL,0,NULL,NULL 76226,639917,312705,NULL,NULL,NULL,0,NULL,NULL 76227,28821,526525,Announcer,NULL,NULL,0,NULL,NULL 76228,26821,805268,NULL,NULL,NULL,0,NULL,NULL 76229,108394,1099150,NULL,NULL,NULL,0,NULL,NULL 76230,1393382,1099150,NULL,NULL,NULL,0,NULL,NULL 76231,267412,909800,Teacher Supporter,NULL,NULL,0,NULL,NULL 76232,74341,63516,Commentator Organizer Editor Excavator Yearling Yearling Census Critic Revival,NULL,NULL,0,NULL,NULL 76233,183729,379550,Notable Question Popular Question .net Informed Good Answer Yearling asp.net Caucus Nice Answer Yearling Caucus c# Nice Answer Enlightened Documentation User Custodian Favorite Question Nice Answer Custodian Nice Answer Enlightened Nice Answer Great Answer Famous Question Yearling android Famous Question,NULL,NULL,0,NULL,NULL 76234,1070606,500262,NULL,NULL,NULL,0,NULL,NULL 76235,1235906,562838,NULL,NULL,NULL,0,NULL,NULL 76236,453022,1399835,Notable Question,NULL,NULL,0,NULL,NULL 76237,332821,201202,Good Answer Stellar Question Popular Question Famous Question Yearling Popular Question Good Question Notable Question Yearling Famous Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 76238,228370,403820,Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76239,5015836,960378,NULL,NULL,NULL,0,NULL,NULL 76240,403507,960378,NULL,NULL,NULL,0,NULL,NULL 76241,322129,286702,NULL,NULL,NULL,0,NULL,NULL 76242,1144418,922222,Supporter,NULL,NULL,0,NULL,NULL 76243,50482,1216232,Yearling Yearling Supporter Yearling Yearling,NULL,NULL,0,NULL,NULL 76244,526469,62600,Necromancer Nice Answer Nice Answer Yearling Nice Answer Enlightened Necromancer Great Answer Necromancer Necromancer Famous Question Necromancer Popular Question Notable Question Necromancer Necromancer Tag Editor Necromancer Nice Answer Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened c# Nice Answer Enlightened Necromancer Revival Populist Pundit Revival Notable Question Nice Answer Good Answer asp.net Necromancer Announcer Yearling Good Question Popular Question Announcer Guru dotnet-httpclient Announcer Announcer Announcer Good Answer Announcer Necromancer Notable Question Nice Answer Announcer Good Answer Popular Question Good Answer Nice Answer Necromancer Announcer Good Answer Necromancer Famous Question Revival Nice Answer Great Answer Famous Question Popular Question Guru Nice Answer Nice Answer Nice Answer Enlightened Necromancer Announcer asp.net-web-api Nice Answer Enlightened Yearling Famous Question Nice Answer Announcer Announcer Nice Answer Enlightened Notable Question Good Question Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Good Answer Nice Question Announcer Booster Announcer Announcer Necromancer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Necromancer Good Answer Good Answer,NULL,How do lock when the ideal scope of the lock object is known only at runtime locking pThe requirement is fairly straightforward want to make sure multiple threads aren modifying an object at the same time The tricky part is that the object is coming from factory whose implementation is unknown until runtime It may return singleton may create new instance each time or may have pool of shared instances ppre codevar thing factory Get lock modify thing code prepI understand it not safe to lock on publicly visible object that other code could potentially lock on thus creating possibility for deadlocks In other words shouldn codelock thing code But ideally want to lock on emsomething em with the same known only at runtime scope of codething code ppOne potential solution came up with is to use codeConcurrentDictionary code of objects keyed by codething code hash code ppre codeprivate static ConcurrentDictionary lt int object gt thingLocks new ConcurrentDictionary lt int object gt var thing factory Get var thingLock thingLocks GetOrAdd thing GetHashCode new object lock thingLock modify thing code prepIntuitively think this should work because the locks themselves are private so nothing external could also be locking on them and lock instances are emhighly likely em to be to with codething code instances But since this sort of code is very difficult to test wanted to ask is this correct and appropriate solution Is there better preferred method of locking on scope that is known only at runtime pp As noted in the comments that not guaranteed but in the unlikely event of collision it just means codething codes can be modified at the same time which is less than ideal but perfectly safe if all thing are the same type AND it reference type AND know that GetHashCode hasn been overridden then can assume hash codes are unique All safe assumptions in this case Oh and that there aren more than int MaxValue instances hanging around could even key the dictionary by thing rather than thing GetHashCode if that any better although think it effectively the same How do lock when the ideal scope of the lock object is known only at runtime locking pThe requirement is fairly straightforward want to make sure multiple threads aren modifying an object at the same time The tricky part is that the object is coming from factory whose implementation is unknown until runtime It may return singleton may create new instance each time or may have pool of shared instances ppre codevar thing factory Get lock modify thing code prepI understand it not safe to lock on publicly visible object that other code could potentially lock on thus creating possibility for deadlocks In other words shouldn codelock thing code But ideally want to lock on emsomething em with the same known only at runtime scope of codething code ppOne potential solution came up with is to use codeConcurrentDictionary code of objects keyed by codething code hash code ppre codeprivate static ConcurrentDictionary lt int object gt thingLocks new ConcurrentDictionary lt int object gt var thing factory Get var thingLock thingLocks GetOrAdd thing GetHashCode new object lock thingLock modify thing code prepIntuitively think this should work because the locks themselves are private so nothing external could also be locking on them and lock instances are emhighly likely em to be to with codething code instances But since this sort of code is very difficult to test wanted to ask is this correct and appropriate solution Is there better preferred method of locking on scope that is known only at runtime pp As noted in the comments that not guaranteed but in the unlikely event of collision it just means codething codes can be modified at the same time which is less than ideal but perfectly safe Right you are actually looked at that page earlier and must have skimmed through it too quickly thanks How do lock when the ideal scope of the lock object is known only at runtime locking pThe requirement is fairly straightforward want to make sure multiple threads aren modifying an object at the same time The tricky part is that the object is coming from factory whose implementation is unknown until runtime It may return singleton may create new instance each time or may have pool of shared instances ppre codevar thing factory Get lock modify thing code prepI understand it not safe to lock on publicly visible object that other code could potentially lock on thus creating possibility for deadlocks In other words shouldn codelock thing code But ideally want to lock on emsomething em with the same known only at runtime scope of codething code ppOne potential solution came up with is to use codeConcurrentDictionary code of objects keyed by codething code hash code ppre codeprivate static ConcurrentDictionary lt int object gt thingLocks new ConcurrentDictionary lt int object gt var thing factory Get var thingLock thingLocks GetOrAdd thing GetHashCode new object lock thingLock modify thing code prepIntuitively think this should work because the locks themselves are private so nothing external could also be locking on them and lock instances are emhighly likely em to be to with codething code instances But since this sort of code is very difficult to test wanted to ask is this correct and appropriate solution Is there better preferred method of locking on scope that is known only at runtime pp As noted in the comments that not guaranteed but in the unlikely event of collision it just means codething codes can be modified at the same time which is less than ideal but perfectly safe still wonder if keying the dictionary on thing itself rather than its hash code is any better Practically speaking it doesn really matter In the highly unlikely event of collision just be over locking which is better than under locking Even singleton lock though not ideal is probably acceptable here lock that is highly likely to be unique per thing is obviously much better How do lock when the ideal scope of the lock object is known only at runtime locking pThe requirement is fairly straightforward want to make sure multiple threads aren modifying an object at the same time The tricky part is that the object is coming from factory whose implementation is unknown until runtime It may return singleton may create new instance each time or may have pool of shared instances ppre codevar thing factory Get lock modify thing code prepI understand it not safe to lock on publicly visible object that other code could potentially lock on thus creating possibility for deadlocks In other words shouldn codelock thing code But ideally want to lock on emsomething em with the same known only at runtime scope of codething code ppOne potential solution came up with is to use codeConcurrentDictionary code of objects keyed by codething code hash code ppre codeprivate static ConcurrentDictionary lt int object gt thingLocks new ConcurrentDictionary lt int object gt var thing factory Get var thingLock thingLocks GetOrAdd thing GetHashCode new object lock thingLock modify thing code prepIntuitively think this should work because the locks themselves are private so nothing external could also be locking on them and lock instances are emhighly likely em to be to with codething code instances But since this sort of code is very difficult to test wanted to ask is this correct and appropriate solution Is there better preferred method of locking on scope that is known only at runtime pp As noted in the comments that not guaranteed but in the unlikely event of collision it just means codething codes can be modified at the same time which is less than ideal but perfectly safe That sounds like an interesting approach Could you post the implementation as an answer,1,How do lock when the ideal scope of the lock object is known only at runtime locking pThe requirement is fairly straightforward want to make sure multiple threads aren modifying an object at the same time The tricky part is that the object is coming from factory whose implementation is unknown until runtime It may return singleton may create new instance each time or may have pool of shared instances ppre codevar thing factory Get lock modify thing code prepI understand it not safe to lock on publicly visible object that other code could potentially lock on thus creating possibility for deadlocks In other words shouldn codelock thing code But ideally want to lock on emsomething em with the same known only at runtime scope of codething code ppOne potential solution came up with is to use codeConcurrentDictionary code of objects keyed by codething code hash code ppre codeprivate static ConcurrentDictionary lt int object gt thingLocks new ConcurrentDictionary lt int object gt var thing factory Get var thingLock thingLocks GetOrAdd thing GetHashCode new object lock thingLock modify thing code prepIntuitively think this should work because the locks themselves are private so nothing external could also be locking on them and lock instances are emhighly likely em to be to with codething code instances But since this sort of code is very difficult to test wanted to ask is this correct and appropriate solution Is there better preferred method of locking on scope that is known only at runtime pp As noted in the comments that not guaranteed but in the unlikely event of collision it just means codething codes can be modified at the same time which is less than ideal but perfectly safe,What the difference between EscapeUriString and EscapeDataString net urlencode pIf only deal with url encoding should use href https msdn microsoft com en us library system uri escapeuristring vs 110 aspx EscapeUriString pComments in the href https github com dotnet corefx blob 8b4fd5fccf19c2e342ddc3eb25f62507f300c778 src System Private Uri src System UriExt cs L530 L569 rel noreferrer source address the difference clearly Why this info isn brought forward via XML documentation comments is mystery to me pp strongEscapeUriString strong pblockquote pThis method will escape any character that is not reserved or unreserved character including percent signs Note that EscapeUriString will also do not escape sign blockquotep strongEscapeDataString strong pblockquote pThis method will escape any character that is not an unreserved character including percent signs blockquotepSo the difference is in how they handle emreserved em characters codeEscapeDataString code escapes them codeEscapeUriString code does not ppAccording to the href https tools ietf org html rfc3986 section rel noreferrer RFC the reserved characters are code amp code ppFor completeness the unreserved characters are alphanumeric and code code ppBoth methods escape characters that are neither reserved nor unreserved ppI disagree with the general href https stackoverflow com 34189188 62600 notion that codeEscapeUriString code is evil think method that escapes only emillegal em characters such as spaces and not emreserved em characters is useful But it does have quirk in how it handles the code code character Percent encoded characters code code followed by hex digits are emlegal em in URI think codeEscapeUriString code would be far more useful if it detected this pattern and avoided encoding code code when it immediately proceeded by hex digits 76245,477184,335874,Curious Yearling Notable Question Yearling Nice Question Good Answer Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 76246,212474,998709,NULL,NULL,NULL,0,NULL,NULL 76247,1872701,1200320,Teacher,NULL,NULL,0,NULL,NULL 76248,340368,685947,Editor,NULL,NULL,0,NULL,NULL 76249,171584,120216,Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76250,3129547,888084,NULL,NULL,NULL,0,NULL,NULL 76251,198665,776774,Yearling,NULL,NULL,0,NULL,NULL 76252,100833,598869,Excavator,NULL,NULL,0,NULL,NULL 76253,249044,999971,NULL,NULL,NULL,0,NULL,NULL 76254,200821,365242,Popular Question,NULL,NULL,0,NULL,NULL 76255,1352293,347002,Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76256,1284219,911449,NULL,NULL,NULL,0,NULL,NULL 76257,288839,676663,NULL,NULL,NULL,0,NULL,NULL 76258,1848320,499624,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76259,3786076,499624,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76260,463639,1324881,NULL,NULL,NULL,0,NULL,NULL 76261,46591,1009576,NULL,NULL,NULL,0,NULL,NULL 76262,128803,29470,Yearling Nice Answer ruby-on-rails Autobiographer Announcer Announcer Yearling Announcer Census Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 76263,180797,141639,Commentator Popular Question Popular Question Popular Question Yearling Caucus Editor Notable Question,NULL,NULL,0,NULL,NULL 76264,311989,307727,NULL,NULL,NULL,0,NULL,NULL 76265,8984,132273,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76266,211319,723329,NULL,NULL,NULL,0,NULL,NULL 76267,460672,539635,NULL,NULL,NULL,0,NULL,NULL 76268,111250,698204,Curious,NULL,NULL,0,NULL,NULL 76269,61913,132424,Popular Question,NULL,NULL,0,NULL,NULL 76270,406002,1324715,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76271,289480,693360,Notable Question,NULL,NULL,0,NULL,NULL 76272,153213,366234,Nice Answer Guru Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Guru Nice Answer Enlightened Yearling Great Answer Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76273,184621,678947,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76274,74843,738914,Commentator,NULL,NULL,0,NULL,NULL 76275,193513,576927,NULL,NULL,NULL,0,NULL,NULL 76276,658437,371778,NULL,NULL,NULL,0,NULL,NULL 76277,1204311,346972,Favorite Question Notable Question Popular Question Popular Question Caucus Constituent Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76278,150118,346972,Favorite Question Notable Question Popular Question Popular Question Caucus Constituent Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76279,150126,346972,Favorite Question Notable Question Popular Question Popular Question Caucus Constituent Popular Question Famous Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76280,177669,1184955,NULL,NULL,NULL,0,NULL,NULL 76281,159087,244790,NULL,NULL,NULL,0,NULL,NULL 76282,202798,160402,NULL,NULL,NULL,0,NULL,NULL 76283,500638,754012,Popular Question,NULL,NULL,0,NULL,NULL 76284,64727,1411178,Yearling Popular Question,NULL,NULL,0,NULL,NULL 76285,3665865,929309,Famous Question Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 76286,162409,719754,Nice Answer,NULL,NULL,0,NULL,NULL 76287,140779,1502011,Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 76288,1553749,1178984,NULL,NULL,NULL,0,NULL,NULL 76289,297996,158749,Popular Question Notable Question Notable Question Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 76290,41290,329337,NULL,NULL,NULL,0,NULL,NULL 76291,23667,196972,Notable Question Custodian Yearling Informed Tenacious Populist Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 76292,166032,703458,Nice Answer,NULL,NULL,0,NULL,NULL 76293,1504712,899011,NULL,NULL,NULL,0,NULL,NULL 76294,1257383,814628,Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Promoter Good Question Notable Question Yearling Nice Question Notable Question Civic Duty Popular Question Good Question Nice Question Popular Question Popular Question Yearling Notable Question Popular Question,NULL,,0,, 76295,592321,302890,NULL,NULL,NULL,0,NULL,NULL 76296,48804,537239,NULL,NULL,NULL,0,NULL,NULL 76297,920609,688280,NULL,NULL,NULL,0,NULL,NULL 76298,307563,485992,NULL,NULL,NULL,0,NULL,NULL 76299,539011,347333,NULL,NULL,NULL,0,NULL,NULL 76300,38694,148890,NULL,NULL,NULL,0,NULL,NULL 76301,354315,1208629,NULL,NULL,NULL,0,NULL,NULL 76302,304171,119937,Civic Duty Necromancer Announcer Custodian Announcer Yearling openlayers-3 Explainer Curious Popular Question Revival Yearling Announcer Popular Question Announcer Custodian Census Necromancer javascript Famous Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76303,29431,428148,Enthusiast Self-Learner Commentator Yearling Informed,NULL,NULL,0,NULL,NULL 76304,436992,883741,Yearling Nice Answer Great Answer Caucus Yearling Revival Custodian Self-Learner Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 76305,126284,666502,NULL,NULL,NULL,0,NULL,NULL 76306,300379,234093,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76307,289650,780605,NULL,NULL,NULL,0,NULL,NULL 76308,431899,607079,Notable Question Popular Question Notable Question Popular Question Famous Question Notable Question Nice Question Notable Question Popular Question Popular Question Teacher Yearling Popular Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 76309,1361586,868090,Popular Question Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 76310,30867,733951,NULL,NULL,NULL,0,NULL,NULL 76311,1147947,1205780,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76312,503604,1017615,NULL,NULL,NULL,0,NULL,NULL 76313,469557,1317787,NULL,NULL,NULL,0,NULL,NULL 76314,641824,532570,Popular Question Yearling Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76315,1198381,138557,Famous Question Nice Question Notable Question Notable Question Notable Question Popular Question Nice Question Famous Question Popular Question Good Question Nice Question Famous Question Good Question ruby Notable Question Notable Question Yearling Good Question Pundit Notable Question Good Question Popular Question Popular Question Notable Question Good Question Popular Question Popular Question Guru ruby-on-rails Good Question Good Question Famous Question Popular Question Popular Question Popular Question Popular Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Nice Answer Great Question Nice Answer Enlightened Nice Question Good Question Yearling Good Question Popular Question Notable Question Nice Question Notable Question Necromancer,NULL,Why doesn URI escape escape single quotes ruby url uri pWhy doesn codeURI escape code escape single quotes ppre codeURI escape foo bar baz gt foo bar 22 20baz code pre FWIW here because AWS Cloudfront expects single quotes in URIs to be escaped to 27 when you try to run an invalidation So it legal to some and not legal to others guess,0,NULL,NULL 76316,225604,939820,NULL,NULL,NULL,0,NULL,NULL 76317,86030,1539703,NULL,NULL,NULL,0,NULL,NULL 76318,937115,626968,NULL,NULL,NULL,0,NULL,NULL 76319,17022,413735,Popular Question Nice Answer Nice Question Yearling Nice Question Notable Question Notable Question Notable Question Yearling Good Answer Nice Answer Notable Question Popular Question Enlightened Great Question Favorite Question Popular Question Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 76320,134951,88106,Popular Question Notable Question Nice Question Yearling Popular Question Famous Question Popular Question Good Question Popular Question Notable Question Popular Question Custodian Critic Yearling Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76321,22885,106471,Yearling,NULL,NULL,0,NULL,NULL 76322,290638,1506197,NULL,NULL,NULL,0,NULL,NULL 76323,1184656,1436852,NULL,NULL,NULL,0,NULL,NULL 76324,249413,958208,NULL,NULL,NULL,0,NULL,NULL 76325,190949,1528211,Necromancer Editor Nice Answer,NULL,NULL,0,NULL,NULL 76326,148298,420431,Yearling Caucus Constituent Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 76327,83734,46871,Nice Answer Enlightened Nice Question Nice Question Popular Question Popular Question Popular Question Popular Question Good Answer Caucus Yearling Popular Question Famous Question Caucus Nice Answer Enlightened Popular Question Nice Question Yearling Census Caucus Inquisitive Good Question Guru Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76328,17576,235990,rrdtool Tag Editor Citizen Patrol Necromancer Yearling Nice Answer Populist Good Answer Explainer Yearling Revival,NULL,NULL,0,NULL,NULL 76329,26395,1445455,NULL,NULL,NULL,0,NULL,NULL 76330,347085,533750,Yearling,NULL,NULL,0,NULL,NULL 76331,219468,381415,NULL,NULL,NULL,0,NULL,NULL 76332,813445,1525503,Nice Answer Notable Question Yearling Populist Good Answer Tumbleweed Popular Question Revival Yearling,NULL,NULL,0,NULL,NULL 76333,61586,384293,Popular Question Reviewer ruby-on-rails Famous Question Yearling ruby Good Answer Yearling Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76334,103970,606048,NULL,NULL,NULL,0,NULL,NULL 76335,144211,1062435,Popular Question,NULL,NULL,0,NULL,NULL 76336,328421,500359,NULL,NULL,NULL,0,NULL,NULL 76337,192667,543475,Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 76338,1123571,666148,Famous Question Yearling Announcer Good Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 76339,8199,648111,NULL,NULL,NULL,0,NULL,NULL 76340,493745,882101,NULL,NULL,NULL,0,NULL,NULL 76341,86984,350748,NULL,NULL,NULL,0,NULL,NULL 76342,404655,522860,NULL,NULL,NULL,0,NULL,NULL 76343,1284545,1163750,NULL,NULL,NULL,0,NULL,NULL 76344,77856,799945,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 76345,105015,639124,NULL,NULL,NULL,0,NULL,NULL 76346,205006,716159,NULL,NULL,NULL,0,NULL,NULL 76347,44622,382190,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 76348,468233,1104307,Yearling Good Answer Nice Answer Notable Question Caucus Yearling Good Question Popular Question Popular Question Curious Yearling Custodian,NULL,NULL,0,NULL,NULL 76349,2453212,54527,Popular Question Excavator Curious Notable Question Popular Question Yearling Steward Caucus Census Famous Question Popular Question Documentation User Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 76350,594514,54527,Popular Question Excavator Curious Notable Question Popular Question Yearling Steward Caucus Census Famous Question Popular Question Documentation User Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 76351,127603,1137483,Necromancer Nice Answer Yearling Good Answer Yearling Commentator Caucus Scholar Yearling Revival Autobiographer Yearling,NULL,NULL,0,NULL,NULL 76352,215904,1474553,NULL,NULL,NULL,0,NULL,NULL 76353,1132104,1429287,NULL,NULL,NULL,0,NULL,NULL 76354,433131,1523648,Notable Question Necromancer Nice Answer Enlightened Nice Question Popular Question Yearling Necromancer Nice Answer Enlightened Notable Question Popular Question Popular Question Revival Popular Question Notable Question tycho Popular Question Yearling Good Answer Tumbleweed Notable Question Popular Question Popular Question Notable Question Announcer Announcer Census Revival Revival Nice Answer Custodian eclipse-plugin Nice Answer Enlightened Yearling Notable Question Announcer Notable Question Necromancer Popular Question Nice Answer Nice Answer Announcer Announcer,NULL,NULL,0,NULL,NULL 76355,118298,1477415,Civic Duty,NULL,NULL,0,NULL,NULL 76356,20693,884770,Nice Answer Enlightened Notable Question Nice Answer Enlightened Good Answer Great Answer Announcer Nice Question Nice Question Nice Answer Enlightened Guru Yearling Nice Answer Announcer Announcer Stellar Question node.js Popular Question Popular Question Good Answer Nice Answer Yearling Announcer Nice Question Announcer Announcer Notable Question Famous Question Announcer Announcer Nice Answer Enlightened Good Answer Yearling Famous Question Popular Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 76357,227889,236736,NULL,NULL,NULL,0,NULL,NULL 76358,61905,1393797,Informed,NULL,NULL,0,NULL,NULL 76359,456533,777232,NULL,NULL,NULL,0,NULL,NULL 76360,168747,557221,NULL,NULL,NULL,0,NULL,NULL 76361,141526,799295,Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76362,1417301,108238,Tag Editor Nice Answer Good Answer Yearling Notable Question Nice Question Nice Answer Necromancer Necromancer Caucus Good Answer Nice Answer Necromancer Yearling Popular Question Nice Question Announcer Necromancer Nice Question Notable Question Inquisitive Necromancer Good Question Pundit Nice Question Famous Question Yearling Popular Question Nice Answer,NULL,Can comments be used in JSON json comments pCan use comments inside JSON file If so how If you want language for configuration with comments see TOML https github com toml lang toml,0,NULL,NULL 76363,425918,969,Revival Notable Question Yearling Census Nice Question Nice Answer Yearling Popular Question Yearling Popular Question Self-Learner,NULL,NULL,1,Writing custom Lombok Annotation handlers java lombok pI want to write custom Lombok Annotation handlers know href http notatube blogspot de 2010 12 project lombok creating custom html http notatube blogspot de 2010 12 project lombok creating custom html But the current lombok jar file does not contain many class files but files named SCL lombok instead ppI found the SCL lombok files are the class files the build script of Lombok does rename them while generating the jar file and the href https github com rzwitserloot lombok blob master src launch lombok launch ShadowClassLoader java ShadowClassLoader is capable of loading these classes and the acronym SCL seems to come from this It seems the reason for this is just to Avoid contaminating the namespace of any project using an SCL based jar Autocompleters in IDEs will NOT suggest anything other than actual public API ppI was only able to compile my custom handler by pulliunpacking the contents of the lombok jar lilirenaming the SCL lombok files to class liliadding the resulting directory to the compile classpath li ulpIn addition to be able to use my custom handler needed to create new fat jar containing both the lombok classes and my custom handler The custom lombok class loader essentially prevents adding custom handlers in other multiple jars ppIs this the only way to extend Lombok Or am missing something ppI am using the following buildscript ppre codeapply plugin java repositories jcenter configurations lombok compileOnly def unpackedAndRenamedLombokDir file buildDir lombok task unpackAndRenameLombok inputs files configurations lombok outputs dir unpackedAndRenamedLombokDir doFirst mkdir unpackedAndRenamedLombokDir delete unpackedAndRenamedLombokDir listFiles doLast copy from zipTree configurations lombok singleFile into unpackedAndRenamedLombokDir rename SCL lombok class sourceSets main compileClasspath configurations compileOnly output dir unpackedAndRenamedLombokDir builtBy unpackAndRenameLombok tasks compileJava dependsOn unpackAndRenameLombok dependencies compile files System properties java home lib tools jar compile org eclipse jdt org eclipse jdt core 10 compile javax inject javax inject lombok org projectlombok lombok 16 compileOnly files unpackedAndRenamedLombokDir code pre,NULL 76364,125289,438670,Nice Answer Enlightened Nice Answer Organizer Yearling,NULL,NULL,0,NULL,NULL 76365,264640,223005,Nice Answer,NULL,NULL,0,NULL,NULL 76366,1437704,932352,NULL,NULL,NULL,0,NULL,NULL 76367,464939,915428,Revival Revival,NULL,NULL,0,NULL,NULL 76368,1245776,259512,NULL,NULL,NULL,0,NULL,NULL 76369,352720,557315,NULL,NULL,NULL,0,NULL,NULL 76370,294840,638437,NULL,NULL,NULL,0,NULL,NULL 76371,629635,3036,Yearling Yearling Great Answer Census,NULL,NULL,0,NULL,NULL 76372,26618,166053,Editor Commentator Yearling Necromancer,NULL,NULL,0,NULL,NULL 76373,378430,896344,NULL,NULL,NULL,0,NULL,NULL 76374,1091644,1137674,Nice Answer Yearling Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 76375,57301,372019,Yearling Nice Answer Necromancer Yearling Caucus Constituent Custodian Custodian Critic Informed Yearling Good Answer Caucus Constituent Yearling Documentation User Caucus Constituent Yearling Revival Yearling Necromancer Yearling Mortarboard docker Nice Answer,NULL,NULL,0,NULL,NULL 76376,74515,789597,NULL,NULL,NULL,0,NULL,NULL 76377,578880,1365242,NULL,NULL,NULL,0,NULL,NULL 76378,2096,930838,NULL,NULL,NULL,0,NULL,NULL 76379,79770,350206,NULL,NULL,NULL,0,NULL,NULL 76380,3722939,350206,NULL,NULL,NULL,0,NULL,NULL 76381,278888,1405020,NULL,NULL,NULL,0,NULL,NULL 76382,496073,816355,NULL,NULL,NULL,0,NULL,NULL 76383,542280,1158499,Commentator Critic Yearling Informed Organizer Suffrage Vox Populi,NULL,NULL,0,NULL,NULL 76384,76897,78921,Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 76385,427731,1115696,NULL,NULL,NULL,0,NULL,NULL 76386,6859510,1065468,Popular Question Caucus Self-Learner,NULL,NULL,0,NULL,NULL 76387,100251,1065468,Popular Question Caucus Self-Learner,NULL,NULL,0,NULL,NULL 76388,56033,274461,NULL,NULL,NULL,0,NULL,NULL 76389,70556,524041,Popular Question Yearling Notable Question Great Question Favorite Question Popular Question Good Answer Popular Question Yearling Tumbleweed Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 76390,4529731,915098,NULL,NULL,NULL,0,NULL,NULL 76391,383616,547122,Nice Answer Guru Yearling Good Answer Yearling Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 76392,594107,1161334,NULL,NULL,NULL,0,NULL,NULL 76393,80483,48002,Nice Answer Good Answer Custodian Popular Question Yearling Yearling Commentator Notable Question,NULL,NULL,0,NULL,NULL 76394,14428,801030,NULL,NULL,NULL,0,NULL,NULL 76395,25278,879027,NULL,NULL,NULL,0,NULL,NULL 76396,296891,53726,Yearling Nice Answer Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76397,198808,462335,Good Answer Notable Question Necromancer Guru Nice Answer Enlightened Good Answer Nice Answer Populist Guru Necromancer Great Answer Nice Answer Popular Question Good Question Nice Question Yearling Guru Notable Question Popular Question Announcer Good Answer Good Answer Yearling Good Answer,NULL,Getting file extension in string file pHow do you get file extension like code tiff code from filename in ppThanks Possible duplicate of Getting file extension in language http stackoverflow com questions 3035225 getting file extension in language pThe number of kilometers per degree of longitude is approximately ppre code pi 360 earth cos theta code prepwhere codetheta code is the latitude in degrees and coder earth code is approximately 6378 km ppThe number of kilometers per degree of latitude is approximately the same at all locations approx ppre code pi 360 earth 111 km degree code prepSo you can do ppre codenew latitude latitude dy earth 180 pi new longitude longitude dx earth 180 pi cos latitude pi 180 code prepAs long as codedx code and codedy code are small compared to the radius of the earth and you don get too close to the poles The earth is not perfectly spherical so using single value for radius is an approximation Wikipedia says distances from points on the surface to the center range from 353 km to 384 km It also says Several different ways of modeling the Earth as sphere each yield mean radius of 371 km which indicates your value Really if this correction is significant in your application you should be using better algorithm anyway,0,NULL,NULL 76398,378412,94540,Notable Question Commentator Informed,NULL,NULL,0,NULL,NULL 76399,170002,877151,Notable Question Nice Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76400,153513,5422,Notable Question Guru Yearling Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 76401,153592,1532124,NULL,NULL,NULL,0,NULL,NULL 76402,333049,1130414,NULL,NULL,NULL,0,NULL,NULL 76403,31673,1264826,Yearling Popular Question Custodian Guru Yearling Popular Question Custodian Custodian Guru Custodian Custodian Great Answer Excavator Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76404,155524,944708,NULL,NULL,NULL,0,NULL,NULL 76405,821927,1151009,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76406,1120568,442210,NULL,NULL,NULL,0,NULL,NULL 76407,408,267943,Yearling,NULL,NULL,0,NULL,NULL 76408,147049,1480895,Informed,NULL,NULL,0,NULL,NULL 76409,53047,45891,Yearling,NULL,NULL,0,NULL,NULL 76410,203145,197302,Popular Question Custodian Notable Question Popular Question Good Answer Notable Question Popular Question Yearling Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Custodian Yearling Organizer,NULL,NULL,0,NULL,NULL 76411,139939,233266,Necromancer Necromancer Nice Answer java Great Question Famous Question Nice Question Yearling Necromancer Popular Question Inquisitive Popular Question Popular Question Custodian Revival Notable Question Caucus Popular Question Documentation User Yearling Notable Question Proofreader Popular Question Nice Answer Popular Question Necromancer,NULL,strongSeperating Concurrency for your Class strong ppTesting stuff concurrently is hard tm href http www growing object oriented software com rel nofollow noreferrer GOOS amongst other people recommending separating the concurrency part from the parts that are doing some work So for example if you had some codeScheduler code which is supposed to schedule some task on one or more threads You can pass in the part that is responsible for the threading to your scheduler and just test the scheduler collaborates with this object correctly This is more in classic unit testing style ppAn example with Scheduler is href https github com tobyweston tempus fugit blob 39636ac15f91cd3ab818aafe4f55efffaebbb658 src test java com google code tempusfugit concurrency ConcurrentSchedulerTest java rel nofollow noreferrer here this uses mocking framework to help If you re not familiar with those ideas don worry they re probably not relevant for your test ppHaving said that you might actually want to run your class in context in multi threaded way This seems to be the kind of test you re writing above The trick here is to keep the test deterministic Well say that theres couple of choices pp strongDeterministic strong ppIf you can setup your test to progress in deterministic way waiting at key points for conditions to be met before moving forward you can try to simulate specific condition to test This means understanding exactly what you want to test for example forcing the code into deadlock and stepping through deterministically for example using abstractions like codeCountdownLatches code etc to synchronise the moving parts ppWhen you attempt to make some multi threaded test syncrhonise its moving parts you can use whatever concurrency abstraction is available to you but it difficult because its concurrent things could happen in an unexpected order You re trying to mitegate this in your test by using the codesleep code calls We generally don like to sleep in test because it ll make the test run slower and when you ve got thousands of tests to run every ms counts If you lower the sleep period too much the test become non deterministic and ordering isn guaranteed ppSome examples include pulli href https github com tobyweston tempus fugit blob 39636ac15f91cd3ab818aafe4f55efffaebbb658 src test java com google code tempusfugit concurrency DeadlockDetectorTest java rel nofollow noreferrer Forcing deadlock using codeCountdownLatch code lili href https github com tobyweston tempus fugit blob 39636ac15f91cd3ab818aafe4f55efffaebbb658 src test java com google code tempusfugit concurrency ThreadUtilsTest java rel nofollow noreferrer Setting up thread to be interuptted li ulpYou ve spotted one of the gotchas where the main test thread will finish before the newly spawned threads under test complete using the codejoin code Another way is to wait for condition for example using href https github com tobyweston tempus fugit blob 39636ac15f91cd3ab818aafe4f55efffaebbb658 src main java com google code tempusfugit temporal WaitFor java rel nofollow noreferrer WaitFor pp strongSoak Load Testing strong ppAnother choice is to setup test to setup run and spam your classes in an attempt to overload them and force them to betray some subtle concurrency issue Here just as in the other style you ll need to setup up specific assertion so that you can tell if and when the classes did betray themselves ppFor you re test then suggest coming up with an assertion so that you can see both positive and negative runs against your class and replacing the codesleep code and codesystem out code calls If you can running your test from something like JUnit is more idiosyncratic ppFor example strongbasic strong test in the style you ve started down might look like this ppre codepublic class TestDriver private static final CyclicBarrier barrier new CyclicBarrier private static final AtomicInteger counter new AtomicInteger static class Runnable1 implements Runnable public void run try barrier await counter getAndIncrement catch Exception ie throw new RuntimeException timeout 200 public void shouldContinueAfterBarrier throws InterruptedException Thread t1 new Thread new Runnable1 Thread t2 new Thread new Runnable1 Thread t3 new Thread new Runnable1 t1 start t2 start t3 start t1 join t2 join t3 join assertThat counter get is code prepIf possible adding timeout to your Barrier is good practice and would help write negative test like this ppre codepublic class TestDriver private static final CyclicBarrier barrier new CyclicBarrier private static final AtomicInteger counter new AtomicInteger static class Runnable1 implements Runnable public void run try barrier await 10 MILLISECONDS counter getAndIncrement catch Exception ie throw new RuntimeException timeout 200 public void shouldTimeoutIfLastBarrierNotReached throws InterruptedException Thread t1 new Thread new Runnable1 Thread t2 new Thread new Runnable1 t1 start t2 start t1 join t2 join assertThat counter get is not code prepIf you wanted to post your implementation we might be able to suggest more alternatives Hope that gives you some ideas though ppEDIT Another choice is to reach into your barrier object for finer grained assertions for example ppre code timeout 200 public void shouldContinueAfterBarrier throws InterruptedException TimeoutException Thread t1 new Thread new BarrierThread barrier Thread t2 new Thread new BarrierThread barrier Thread t3 new Thread new BarrierThread barrier assertThat barrier getNumberWaiting is t1 start t2 start waitForBarrier t3 start waitForBarrier private static void waitForBarrier final int barrierCount throws InterruptedException TimeoutException waitOrTimeout new Condition public boolean isSatisfied return barrier getNumberWaiting barrierCount timeout millis 500 code prepEDIT wrote some of this up at href http tempusfugitlibrary org recipes 2012 05 20 testing concurrent code rel nofollow noreferrer http tempusfugitlibrary org recipes 2012 05 20 testing concurrent code ve updated them so they should all work now Thanks,0,NULL,NULL 76412,155385,627804,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 76413,117841,21902,NULL,NULL,NULL,0,NULL,NULL 76414,288154,1197675,NULL,NULL,NULL,0,NULL,NULL 76415,283253,259164,NULL,NULL,NULL,0,NULL,NULL 76416,251415,384471,Yearling Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 76417,1519994,241566,NULL,NULL,NULL,0,NULL,NULL 76418,74079,76452,Yearling Yearling Excavator Revival Necromancer Nice Answer Nice Answer Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 76419,105936,6244,Popular Question Popular Question Notable Question Popular Question Nice Answer Nice Question Convention Yearling Popular Question Popular Question Notable Question Caucus Constituent Nice Question Necromancer Notable Question Census Revival Notable Question Notable Question Popular Question Notable Question Yearling Nice Answer Necromancer Documentation User Popular Question Census Popular Question Nice Answer Announcer Caucus Constituent Famous Question Popular Question Yearling Reviewer Popular Question,NULL,NULL,0,NULL,NULL 76420,141268,257436,Notable Question,NULL,NULL,0,NULL,NULL 76421,141108,257436,Notable Question,NULL,NULL,0,NULL,NULL 76422,207318,833307,Caucus,NULL,NULL,0,NULL,NULL 76423,23556,14971,Great Question Popular Question Popular Question Great Answer Popular Question Notable Question Famous Question Nice Answer Enlightened Great Answer ruby Good Answer php Popular Question Yearling Notable Question Popular Question Revival Notable Question Popular Question Famous Question Notable Question Popular Question Good Answer Notable Question Yearling Notable Question Census Good Question Popular Question Necromancer Notable Question Populist Nice Question Popular Question Nice Answer Enlightened Notable Question Good Answer Popular Question Notable Question Good Answer Popular Question Yearling Nice Question Good Question,NULL,NULL,0,NULL,NULL 76424,373982,466099,Notable Question Notable Question Nice Question Yearling Good Question Popular Question Famous Question Popular Question Yearling Popular Question Custodian Good Question Notable Question Notable Question Promoter Benefactor Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76425,1515551,793602,Supporter Nice Question Notable Question Curious,NULL,NULL,0,NULL,NULL 76426,2970994,793602,Supporter Nice Question Notable Question Curious,NULL,NULL,0,NULL,NULL 76427,129636,706946,NULL,NULL,NULL,0,NULL,NULL 76428,1671427,267080,Critic,NULL,NULL,0,NULL,NULL 76429,692473,1466033,Notable Question Commentator Teacher,NULL,NULL,0,NULL,NULL 76430,2082255,1004160,NULL,NULL,NULL,0,NULL,NULL 76431,181411,892683,Good Question Famous Question Yearling Good Answer Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 76432,146707,234855,Informed Caucus Constituent Enthusiast Commentator Caucus Constituent Census Yearling Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 76433,218071,1030707,NULL,NULL,NULL,0,NULL,NULL 76434,548613,1030707,NULL,NULL,NULL,0,NULL,NULL 76435,464306,221735,NULL,NULL,NULL,0,NULL,NULL 76436,169949,585454,NULL,NULL,NULL,0,NULL,NULL 76437,301264,223165,Caucus Nice Question Popular Question Yearling Notable Question Famous Question Notable Question Popular Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 76438,3833105,1212573,Informed Student,NULL,NULL,0,NULL,NULL 76439,49321,1212573,Informed Student,NULL,NULL,0,NULL,NULL 76440,62696,34934,Reviewer Custodian Popular Question Suffrage Notable Question Vox Populi Electorate Popular Question Steward Notable Question Popular Question Nice Question Favorite Question Popular Question Popular Question Famous Question Good Question Yearling Caucus Constituent Nice Answer Popular Question Famous Question Notable Question Nice Question Nice Question Famous Question Famous Question Popular Question Yearling Notable Question Notable Question Good Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 76441,100473,279900,NULL,NULL,NULL,0,NULL,NULL 76442,160240,724415,NULL,NULL,NULL,0,NULL,NULL 76443,453628,54858,Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Nice Answer Yearling Student Guru Good Answer Guru Yearling Good Answer Good Answer,NULL,NULL,0,NULL,NULL 76444,408803,349179,Yearling Revival Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76445,369950,269581,Yearling Nice Answer Enlightened Good Answer javascript Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Popular Question Guru Good Answer Yearling Popular Question Guru Documentation User Census Yearling Good Answer Enlightened Great Answer Nice Answer Enlightened Great Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76446,709635,1509449,Yearling,NULL,NULL,0,NULL,NULL 76447,141659,233305,Organizer Revival Excavator Explainer Yearling Revival,NULL,NULL,0,NULL,NULL 76448,41760,567390,Yearling Nice Answer Enlightened Enthusiast Good Question Famous Question Nice Question Famous Question Caucus Constituent Good Answer Nice Answer Yearling Notable Question Good Question Famous Question Yearling Popular Question Nice Answer Enlightened Popular Question Good Answer,NULL,NULL,0,NULL,NULL 76449,169075,144609,Critic Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76450,436027,622061,Commentator Popular Question Popular Question Notable Question Famous Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76451,3815743,666725,NULL,NULL,NULL,0,NULL,NULL 76452,320238,666725,NULL,NULL,NULL,0,NULL,NULL 76453,42753,871247,NULL,NULL,NULL,0,NULL,NULL 76454,786596,752585,NULL,NULL,NULL,0,NULL,NULL 76455,234101,573398,NULL,NULL,NULL,0,NULL,NULL 76456,148252,1017532,Popular Question,NULL,NULL,0,NULL,NULL 76457,63452,898905,Yearling Curious Nice Answer Enlightened Civic Duty Custodian,NULL,NULL,0,NULL,NULL 76458,7555,203773,Yearling Great Answer Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76459,270465,198222,NULL,NULL,NULL,0,NULL,NULL 76460,91280,900979,NULL,NULL,NULL,0,NULL,NULL 76461,1120922,504978,NULL,NULL,NULL,0,NULL,NULL 76462,1059779,1219952,NULL,NULL,NULL,0,NULL,NULL 76463,9679,1252807,NULL,NULL,NULL,0,NULL,NULL 76464,368246,947371,NULL,NULL,NULL,0,NULL,NULL 76465,4684376,947371,NULL,NULL,NULL,0,NULL,NULL 76466,355022,183082,NULL,NULL,NULL,0,NULL,NULL 76467,245086,1252523,NULL,NULL,NULL,0,NULL,NULL 76468,93819,625426,NULL,NULL,NULL,0,NULL,NULL 76469,199608,581722,Nice Answer Yearling Critic Yearling,NULL,NULL,0,NULL,NULL 76470,117076,648783,NULL,NULL,NULL,0,NULL,NULL 76471,997200,717858,Yearling Popular Question Inquisitive Popular Question Popular Question Popular Question Notable Question Nice Answer Yearling Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76472,334389,396697,Famous Question Necromancer,NULL,NULL,0,NULL,NULL 76473,345031,415290,NULL,NULL,NULL,0,NULL,NULL 76474,584132,415290,NULL,NULL,NULL,0,NULL,NULL 76475,268973,761767,Supporter Editor Commentator Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76476,43136,205865,NULL,NULL,NULL,0,NULL,NULL 76477,927760,1177914,Notable Question Good Question Yearling Necromancer Notable Question Nice Answer Good Question Yearling,NULL,NULL,0,NULL,NULL 76478,266780,748999,NULL,NULL,NULL,0,NULL,NULL 76479,593986,250816,Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 76480,3115915,561677,Curious Yearling Civic Duty Caucus Custodian Popular Question Announcer Notable Question Yearling Announcer Popular Question Notable Question Announcer Yearling Announcer,NULL,pThis is the code use ppSuccessfully tested on Windows x64 Windows 10 x64 Mac OS 10 10 10 10 11 and Ubuntu 14 04 14 10 15 04 15 10 with both Python and Python ppre codeimport sysimport globimport serialdef serial ports Lists serial port names raises EnvironmentError On unsupported or unknown platforms returns list of the serial ports available on the system if sys platform startswith win ports COM for in range 256 elif sys platform startswith linux or sys platform startswith cygwin this excludes your current terminal dev tty ports glob glob dev tty Za elif sys platform startswith darwin ports glob glob dev tty else raise EnvironmentError Unsupported platform result for port in ports try serial Serial port close result append port except OSError serial SerialException pass return resultif name main print serial ports code pre had to add an except IOError on Linux,0,NULL,NULL 76481,54002,505994,NULL,NULL,NULL,0,NULL,NULL 76482,6525522,205945,NULL,NULL,NULL,0,NULL,NULL 76483,30016,205945,NULL,NULL,NULL,0,NULL,NULL 76484,595439,216646,Critic,NULL,NULL,0,NULL,NULL 76485,945145,400470,Supporter,NULL,NULL,0,NULL,NULL 76486,23416,1433303,Critic,NULL,NULL,0,NULL,NULL 76487,1160838,975047,Famous Question,NULL,NULL,0,NULL,NULL 76488,67058,659424,NULL,NULL,NULL,0,NULL,NULL 76489,322963,778649,Popular Question,NULL,NULL,0,NULL,NULL 76490,549319,1219516,NULL,NULL,NULL,0,NULL,NULL 76491,13779,1175083,Popular Question Nice Question Yearling Notable Question Notable Question Nice Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Good Question Great Question Yearling Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76492,30074,25968,Notable Question Good Answer Good Answer Good Answer Popular Question Popular Question Popular Question Nice Question Yearling Favorite Question Good Question Good Question Popular Question Census Good Answer Notable Question Notable Question Great Question Notable Question Good Answer Nice Answer Enlightened Nice Answer Nice Question Nice Question Yearling Notable Question Famous Question Good Answer Popular Question Nice Question Nice Answer Favorite Question Popular Question Necromancer Good Answer Guru Yearling,NULL,NULL,0,NULL,NULL 76493,122746,514015,Popular Question Notable Question Notable Question Curious,NULL,NULL,0,NULL,NULL 76494,2266319,514015,Popular Question Notable Question Notable Question Curious,NULL,NULL,0,NULL,NULL 76495,241116,1116804,Notable Question,NULL,NULL,0,NULL,NULL 76496,923026,1386520,NULL,NULL,NULL,0,NULL,NULL 76497,1016430,1380068,NULL,NULL,NULL,0,NULL,NULL 76498,435810,1048255,Excavator Critic Caucus Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 76499,310754,181200,Census Informed,NULL,NULL,0,NULL,NULL 76500,49536,470515,NULL,NULL,NULL,0,NULL,NULL 76501,168673,1084999,NULL,NULL,NULL,0,NULL,NULL 76502,284811,1087379,NULL,NULL,NULL,0,NULL,NULL 76503,34474,756865,Enthusiast Editor Excavator Announcer Student,NULL,NULL,0,NULL,NULL 76504,48549,1189467,NULL,NULL,NULL,0,NULL,NULL 76505,621473,1173069,NULL,NULL,NULL,0,NULL,NULL 76506,1392401,441684,Necromancer Yearling Necromancer Good Question Nice Answer Enlightened Good Answer Announcer Yearling Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 76507,167378,1087438,Student Critic Commentator Necromancer Informed Autobiographer Caucus,NULL,NULL,0,NULL,NULL 76508,400551,1221858,NULL,NULL,NULL,0,NULL,NULL 76509,422126,1164505,Supporter Curious Commentator Promoter Popular Question Popular Question Notable Question Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 76510,126589,1100806,Popular Question Commentator,NULL,NULL,0,NULL,NULL 76511,3564702,1396479,NULL,NULL,NULL,0,NULL,NULL 76512,8163253,876196,Student,NULL,NULL,0,NULL,NULL 76513,8895211,876196,Student,NULL,NULL,0,NULL,NULL 76514,286305,876196,Student,NULL,NULL,0,NULL,NULL 76515,1086613,864894,NULL,NULL,NULL,0,NULL,NULL 76516,108607,1054004,NULL,NULL,NULL,0,NULL,NULL 76517,505585,509936,Caucus Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 76518,109377,509936,Caucus Yearling Nice Answer Caucus,NULL,NULL,0,NULL,NULL 76519,1138859,737263,Popular Question Popular Question Popular Question Electorate Famous Question Notable Question Yearling Notable Question Notable Question Popular Question Nice Question Popular Question Yearling Popular Question Nice Question Notable Question Notable Question Nice Answer Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76520,280860,49733,Popular Question Nice Question Notable Question Nice Question Great Question Famous Question Popular Question Yearling Notable Question Popular Question Notable Question Good Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76521,631848,515902,Popular Question Notable Question Notable Question Nice Question Nice Question Popular Question Caucus Constituent Yearling Organizer Notable Question Nice Question Good Answer Famous Question Good Question Famous Question Necromancer Announcer Popular Question Popular Question Announcer Caucus Constituent Notable Question Notable Question Popular Question Notable Question Custodian Custodian Notable Question Yearling Notable Question Caucus Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 76522,130853,69948,Yearling Good Answer Popular Question Necromancer Popular Question Yearling Popular Question Nice Question Necromancer iphone Good Answer Nice Answer Yearling Popular Question Popular Question Popular Question Guru Nice Answer,NULL,NULL,0,NULL,NULL 76523,1276967,1352061,NULL,NULL,NULL,0,NULL,NULL 76524,2961876,1337204,Scholar Student Explainer Yearling Caucus Self-Learner Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 76525,132267,1337204,Scholar Student Explainer Yearling Caucus Self-Learner Yearling Nice Answer Nice Answer Enlightened Yearling Popular Question,NULL,NULL,0,NULL,NULL 76526,1418518,539936,NULL,NULL,NULL,0,NULL,NULL 76527,139585,663729,Informed,NULL,NULL,0,NULL,NULL 76528,78638,434502,Yearling Teacher Popular Question Popular Question Popular Question Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 76529,11922,595863,NULL,NULL,NULL,0,NULL,NULL 76530,353104,996319,Famous Question Good Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 76531,104513,108105,Nice Answer Nice Answer Revival Good Answer Yearling Popular Question Guru Nice Answer Enlightened Good Answer Nice Answer Yearling Great Answer Nice Answer Enlightened Announcer Nice Answer Enlightened Yearling Notable Question,NULL,NULL,0,NULL,NULL 76532,20068,615320,NULL,NULL,NULL,0,NULL,NULL 76533,322102,15769,Nice Answer Yearling Popular Question Nice Question Yearling Notable Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76534,153445,6101,Notable Question Yearling Nice Answer Enlightened Nice Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 76535,889716,387201,Notable Question,NULL,NULL,0,NULL,NULL 76536,158137,1064515,NULL,NULL,NULL,0,NULL,NULL 76537,19091,403747,NULL,NULL,NULL,0,NULL,NULL 76538,111909,1414411,NULL,NULL,NULL,0,NULL,NULL 76539,44300,1166986,Popular Question,NULL,NULL,0,NULL,NULL 76540,619183,911429,NULL,NULL,NULL,0,NULL,NULL 76541,126910,1380174,NULL,NULL,NULL,0,NULL,NULL 76542,757474,582763,Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76543,62648,420688,Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76544,8421025,847186,NULL,NULL,NULL,0,NULL,NULL 76545,15222,847186,NULL,NULL,NULL,0,NULL,NULL 76546,297302,1052534,NULL,NULL,NULL,0,NULL,NULL 76547,604809,150359,Announcer Scholar Curious Editor Caucus Notable Question,NULL,NULL,0,NULL,NULL 76548,120173,22850,Yearling Notable Question Cleanup Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 76549,1334022,456506,Yearling Great Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 76550,109096,1479864,NULL,NULL,NULL,0,NULL,NULL 76551,152304,1502122,NULL,NULL,NULL,0,NULL,NULL 76552,171499,755671,Popular Question Self-Learner Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Documentation User Popular Question Good Question Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 76553,377394,882674,NULL,NULL,NULL,0,NULL,NULL 76554,3315755,1088240,NULL,NULL,NULL,0,NULL,NULL 76555,106337,851791,NULL,NULL,NULL,0,NULL,NULL 76556,524424,996309,Popular Question java Yearling Nice Answer Nice Answer Nice Answer Yearling Popular Question Notable Question Necromancer Custodian Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 76557,1090933,1026444,NULL,NULL,NULL,0,NULL,NULL 76558,517566,158429,Nice Answer,NULL,NULL,0,NULL,NULL 76559,288061,154303,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76560,445290,812924,NULL,NULL,NULL,0,NULL,NULL 76561,703546,642014,NULL,NULL,NULL,0,NULL,NULL 76562,974212,3715,Good Question Nice Question Famous Question Necromancer Pundit Good Question Good Answer Good Question Nice Answer Yearling Famous Question Custodian Revival Stellar Question python Nice Question Good Question Yearling Famous Question Nice Answer Stellar Question Nice Answer Necromancer Popular Question Notable Question Nice Answer Great Question Yearling Great Answer Necromancer,NULL,NULL,0,NULL,NULL 76563,1825305,637459,Tumbleweed Student Teacher Supporter Necromancer,NULL,NULL,0,NULL,NULL 76564,34941,737157,Revival Citizen Patrol,NULL,NULL,0,NULL,NULL 76565,44196,56679,Nice Answer Popular Question Nice Question Yearling Notable Question Popular Question Famous Question Nice Question Necromancer Famous Question Notable Question Popular Question Great Answer Necromancer Notable Question Stellar Question Notable Question Nice Answer Civic Duty Yearling Nice Question Populist Good Question Custodian Nice Question Good Answer Good Question Custodian Custodian Notable Question Popular Question Documentation User Yearling Notable Question Nice Answer Nice Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76566,978798,617010,NULL,NULL,NULL,0,NULL,NULL 76567,209529,1091897,Notable Question,NULL,NULL,0,NULL,NULL 76568,309014,25068,Nice Question Great Question Nice Question Notable Question Famous Question Good Question Favorite Question Popular Question Good Question Notable Question Nice Question Popular Question Popular Question Famous Question Good Question Famous Question Famous Question Popular Question Great Question Popular Question Nice Question Popular Question Favorite Question Notable Question Good Question Yearling Notable Question Famous Question Notable Question Nice Question Nice Question Popular Question Famous Question Notable Question Notable Question Popular Question Famous Question Notable Question Famous Question Notable Question Notable Question Famous Question Popular Question Famous Question Nice Question Great Question Yearling Popular Question Popular Question Nice Question Nice Question Good Question Popular Question Popular Question Famous Question Notable Question Famous Question Notable Question Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 76569,78620,1055219,Good Answer Nice Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer eclipse Yearling Populist javafx-2 Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 76570,700583,510598,NULL,NULL,NULL,0,NULL,NULL 76571,616772,861668,NULL,NULL,NULL,0,NULL,NULL 76572,324502,1433560,Supporter,NULL,NULL,0,NULL,NULL 76573,322756,508524,Notable Question Self-Learner Popular Question Famous Question Popular Question Yearling Notable Question Notable Question Famous Question Nice Question Great Answer Notable Question Yearling Popular Question Popular Question Yearling,NULL,pUse codefor code loop to iterate through your array For each string create new codeoption code element assign the string as its codeinnerHTML code and codevalue code and then append it to the codeselect code element ppre codevar cuisines Chinese Indian var sel document getElementById CuisineList for var lt cuisines length var opt document createElement option opt innerHTML cuisines opt value cuisines sel appendChild opt code prep href http jsfiddle net jackwanders kGgkE rel noreferrer strongDEMO strong pp strongUPDATE Using codecreateDocumentFragment code and codeforEach code strong ppIf you have very large list of elements that you want to append to document it can be non performant to append each new element individually The codeDocumentFragment code acts as light weight document object that can be used to collect elements Once all your elements are ready you can execute single codeappendChild code operation so that the DOM only updates once instead of coden code times ppre codevar cuisines Chinese Indian var sel document getElementById CuisineList var fragment document createDocumentFragment cuisines forEach function cuisine index var opt document createElement option opt innerHTML cuisine opt value cuisine fragment appendChild opt sel appendChild fragment code prep href http jsfiddle net jackwanders 1qja2vg2 rel noreferrer strongDEMO strong is there way to stop the select element showing up empty for split second before the options are added,0,NULL,NULL 76574,1523042,187206,Nice Question Famous Question Famous Question Nice Answer Revival Great Question Good Answer Popular Question Good Question Nice Question Popular Question Popular Question Famous Question Yearling Notable Question Nice Answer Popular Question Nice Answer Good Question Nice Question Famous Question Notable Question Guru Notable Question Notable Question Notable Question Popular Question Nice Answer Good Question Popular Question Yearling Good Answer Custodian Good Question Popular Question Caucus Popular Question Nice Question Yearling Nice Question Great Answer,NULL,NULL,1,How to re run only failed JUnit test classes using Gradle gradle junit pInspired by href https discuss gradle org testng rerun failed tests 7004 rel nofollow noreferrer this neat TestNG task and href https stackoverflow com questions 42701300 how to re run failed testng tests using gradle this SO question thought whip up something quick for re running of only failed JUnit tests from Gradle ppBut after searching around for awhile couldn find anything analogous which was quite as convenient ppI came up with the following which seems to work pretty well and adds code lt testTaskName gt Rerun code task for each task of type codeTest code in my project ppre codeimport static groovy io FileType FILESimport java nio file Filesimport java nio file Paths And add task for each test task to rerun just the failing testssubprojects afterEvaluate subproject gt Need to store tasks in static temp collection else new tasks will be picked up by live collection leading to StackOverflow def testTasks subproject tasks withType Test testTasks each testTask gt task testTask name Rerun type Test group Verification description Re run ONLY the failing tests from the previous run of testTask name Depend on anything the existing test task depended on dependsOn testTask dependsOn Copy runtime setup from existing test task testClassesDirs testTask testClassesDirs classpath testTask classpath Check the output directory for failing tests File textXMLDir subproject file testTask reports junitXml destination logger info Scanning textXMLDir for failed tests Find all failed classes Set lt String gt allFailedClasses as Set if textXMLDir exists textXMLDir eachFileRecurse FILES gt See http marxsoftware blogspot com 2015 02 determining file types in java html String fileType try fileType Files probeContentType toPath catch IOException logger debug Exception when probing content type of logger debug Couldn determine this to be an XML file That fine skip this one return logger debug Filetype of is fileType if text xml application xml contains fileType logger debug Found testsuite file def testSuite new XmlSlurper parse def failedTestCases testSuite testcase findAll testCase gt testCase children find it name failure if failedTestCases isEmpty logger info Found failures in file failedTestCases each failedTestCase gt def className failedTestCase logger info Failure className allFailedClasses lt lt className toString if allFailedClasses isEmpty Re run all tests in any class with any failures allFailedClasses each gt def testPath replaceAll class include testPath doFirst logger warn Re running the following tests allFailedClasses each gt logger warn outputs upToDateWhen false Always attempt to re run failing tests Only re run if there were any failing tests else just print warning onlyIf def shouldRun allFailedClasses isEmpty if shouldRun logger warn No failed tests found for previous run of task subproject path testTask name return shouldRun code prepIs there any easier way to do this from Gradle Is there any way to get JUnit to output consolidated list of failures somehow so don have to slurp the XML reports ppI using JUnit 12 and Gradle,NULL 76575,100848,147127,NULL,NULL,NULL,0,NULL,NULL 76576,315452,665778,Necromancer Revival Yearling,NULL,NULL,0,NULL,NULL 76577,3562662,77643,Yearling Popular Question Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Documentation User Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76578,483377,539769,NULL,NULL,NULL,0,NULL,NULL 76579,287488,1161449,NULL,NULL,NULL,0,NULL,NULL 76580,157502,67393,Yearling Caucus Yearling Good Answer Yearling Nice Answer,NULL,href http blog sadphaeton com 2009 01 19 sqlalchemy recipeuuid column html rel noreferrer wrote this and the domain is gone but here the guts ppRegardless of how my colleagues who really care about proper database design feel about UUID and GUIDs used for key fields often find need to do it think it has some advantages over autoincrement that make it worth it ppI ve been refining UUID column type for the past few months and think ve finally got it solid ppre codefrom sqlalchemy import typesfrom sqlalchemy dialects mysql base import MSBinaryfrom sqlalchemy schema import Columnimport uuidclass UUID types TypeDecorator impl MSBinary def init self self impl length 16 types TypeDecorator init self length self impl length def process bind param self value dialect None if value and isinstance value uuid UUID return value bytes elif value and not isinstance value uuid UUID raise ValueError value is not valid uuid UUID value else return None def process result value self value dialect None if value return uuid UUID bytes value else return None def is mutable self return Falseid column name id def id column import uuid return Column id column name UUID primary key True default uuid uuid4 Usagemy table Table test metadata id column Column parent id UUID ForeignKey table parent id code prepI believe storing as binary 16 bytes should end up being more efficient than the string representation 36 bytes And there seems to be some indication that indexing 16 byte blocks should be more efficient in mysql than strings wouldn expect it to be worse anyway ppOne disadvantage ve found is that at least in phpymyadmin you can edit records because it implicitly tries to do some sort of character conversion for the select from table where id and there miscellaneous display issues ppOther than that everything seems to work fine and so throwing it out there Leave comment if you see glaring error with it welcome any suggestions for improving it ppUnless missing something the above solution will work if the underlying database has UUID type If it doesn you would likely get errors when the table is created The solution came up with was targeting MSSqlServer originally and then went MySql in the end so think my solution is little more flexible as it seems to work fine on mysql and sqlite Haven bothered checking postgres yet updated the example to reflect sqlalchemy updates,0,NULL,NULL 76581,55103,67393,Yearling Caucus Yearling Good Answer Yearling Nice Answer,NULL,href http blog sadphaeton com 2009 01 19 sqlalchemy recipeuuid column html rel noreferrer wrote this and the domain is gone but here the guts ppRegardless of how my colleagues who really care about proper database design feel about UUID and GUIDs used for key fields often find need to do it think it has some advantages over autoincrement that make it worth it ppI ve been refining UUID column type for the past few months and think ve finally got it solid ppre codefrom sqlalchemy import typesfrom sqlalchemy dialects mysql base import MSBinaryfrom sqlalchemy schema import Columnimport uuidclass UUID types TypeDecorator impl MSBinary def init self self impl length 16 types TypeDecorator init self length self impl length def process bind param self value dialect None if value and isinstance value uuid UUID return value bytes elif value and not isinstance value uuid UUID raise ValueError value is not valid uuid UUID value else return None def process result value self value dialect None if value return uuid UUID bytes value else return None def is mutable self return Falseid column name id def id column import uuid return Column id column name UUID primary key True default uuid uuid4 Usagemy table Table test metadata id column Column parent id UUID ForeignKey table parent id code prepI believe storing as binary 16 bytes should end up being more efficient than the string representation 36 bytes And there seems to be some indication that indexing 16 byte blocks should be more efficient in mysql than strings wouldn expect it to be worse anyway ppOne disadvantage ve found is that at least in phpymyadmin you can edit records because it implicitly tries to do some sort of character conversion for the select from table where id and there miscellaneous display issues ppOther than that everything seems to work fine and so throwing it out there Leave comment if you see glaring error with it welcome any suggestions for improving it ppUnless missing something the above solution will work if the underlying database has UUID type If it doesn you would likely get errors when the table is created The solution came up with was targeting MSSqlServer originally and then went MySql in the end so think my solution is little more flexible as it seems to work fine on mysql and sqlite Haven bothered checking postgres yet updated the example to reflect sqlalchemy updates,0,NULL,NULL 76582,207432,1108163,NULL,NULL,NULL,0,NULL,NULL 76583,2265816,1015395,Popular Question,NULL,NULL,0,NULL,NULL 76584,239462,592259,NULL,NULL,NULL,0,NULL,NULL 76585,76512,556058,NULL,NULL,NULL,0,NULL,NULL 76586,393658,900944,Nice Answer Enlightened Nice Answer Enlightened Yearling Critic Revival Yearling Commentator Yearling,NULL,NULL,0,NULL,NULL 76587,266815,129889,Notable Question Nice Question Nice Question Custodian Yearling Nice Answer Civic Duty Popular Question Nice Question Nice Answer Good Answer Yearling Custodian Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76588,267472,65130,Revival Nice Question Yearling Revival Notable Question Popular Question Revival Promoter Necromancer Notable Question Yearling Revival Great Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 76589,1442452,353107,Popular Question,NULL,NULL,0,NULL,NULL 76590,155274,353107,Popular Question,NULL,NULL,0,NULL,NULL 76591,1873965,200655,Popular Question Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 76592,127013,1195416,NULL,NULL,NULL,0,NULL,NULL 76593,14566,894361,Necromancer Custodian,NULL,NULL,0,NULL,NULL 76594,217099,1167830,NULL,NULL,NULL,0,NULL,NULL 76595,1757,805631,valgrind Good Answer Guru Guru Yearling Guru Good Answer Guru Yearling Good Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76596,11826,241212,Yearling Yearling,NULL,NULL,0,NULL,NULL 76597,781183,789848,Good Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 76598,61902,692055,Commentator Good Answer,NULL,NULL,0,NULL,NULL 76599,28573,159317,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76600,16792,1476931,NULL,NULL,NULL,0,NULL,NULL 76601,13553,45350,Famous Question Good Question Great Question Popular Question Famous Question Notable Question Nice Question Popular Question Popular Question Yearling Famous Question Popular Question Nice Question Nice Question Notable Question Yearling Famous Question Popular Question Stellar Question Custodian,NULL,NULL,0,NULL,NULL 76602,64972,914170,Notable Question,NULL,NULL,0,NULL,NULL 76603,18332,166128,Caucus Caucus Commentator Census Yearling Nice Question,NULL,NULL,0,NULL,NULL 76604,222134,249733,Yearling Custodian Custodian Civic Duty Good Answer Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 76605,1190741,1204260,NULL,NULL,NULL,0,NULL,NULL 76606,357945,223201,Notable Question Notable Question Popular Question Popular Question Great Question Necromancer Good Answer Popular Question Necromancer Favorite Question Yearling Popular Question Nice Question Notable Question Notable Question Good Answer Notable Question Nice Question Great Answer Yearling c Notable Question Popular Question Guru Nice Question Popular Question,NULL,NULL,0,NULL,NULL 76607,289138,1234199,NULL,NULL,NULL,0,NULL,NULL 76608,8628,144913,NULL,NULL,NULL,0,NULL,NULL 76609,300337,109503,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76610,91122,791662,Notable Question Supporter,NULL,NULL,0,NULL,NULL 76611,6695,710202,NULL,NULL,NULL,0,NULL,NULL 76612,167683,26777,NULL,NULL,NULL,0,NULL,NULL 76613,418778,93559,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76614,284958,53170,Yearling Nice Question Yearling Famous Question Yearling Guru,NULL,NULL,0,NULL,NULL 76615,91321,1146647,Teacher Revival,NULL,NULL,0,NULL,NULL 76616,782417,127808,Notable Question Famous Question Curious,NULL,NULL,0,NULL,NULL 76617,184727,738137,NULL,NULL,NULL,0,NULL,NULL 76618,1360250,477021,NULL,NULL,NULL,0,NULL,NULL 76619,71033,249524,NULL,NULL,NULL,0,NULL,NULL 76620,149584,2597,Custodian Popular Question Popular Question Necromancer Self-Learner Yearling Guru Popular Question Notable Question Nice Answer Popular Question Yearling Guru Documentation User Famous Question Announcer Nice Answer Nice Answer Popular Question Nice Question Guru Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76621,270352,850975,Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 76622,145351,616023,NULL,NULL,NULL,0,NULL,NULL 76623,343089,656736,Nice Answer Yearling Good Answer Yearling Yearling Tumbleweed Student,NULL,NULL,0,NULL,NULL 76624,23530,254356,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76625,17248,33483,Popular Question Curious Caucus Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 76626,61786,101970,Guru Good Answer Notable Question Nice Answer Nice Answer Yearling Good Answer Nice Answer Nice Answer Revival Enlightened Yearling database Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 76627,529343,833144,NULL,NULL,NULL,0,NULL,NULL 76628,105512,916334,Good Question Notable Question Nice Question Nice Answer Yearling Enlightened Good Answer,NULL,NULL,0,NULL,NULL 76629,64971,7126,Great Answer Nice Answer Good Answer Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 76630,39440,389684,Necromancer Yearling Nice Answer Editor Necromancer Necromancer Necromancer Custodian Commentator Yearling Revival Yearling Yearling Critic Nice Answer Enlightened apostrophe-cms Tenacious Yearling,NULL,NULL,0,NULL,NULL 76631,100572,272802,Yearling Good Answer Notable Question Nice Answer Enlightened Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76632,54116,8435,Nice Answer Enlightened Nice Question Notable Question Nice Answer Yearling Famous Question Great Answer Popular Question Guru Nice Answer Enlightened Great Answer Nice Answer Good Answer Yearling Great Answer Nice Question Nice Answer Enlightened Good Answer Nice Answer Popular Question Yearling Guru,NULL,NULL,0,NULL,NULL 76633,15944,327209,Documentation User Popular Question,NULL,NULL,0,NULL,NULL 76634,108538,763004,NULL,NULL,NULL,0,NULL,NULL 76635,119097,763004,NULL,NULL,NULL,0,NULL,NULL 76636,126085,1010653,Yearling Necromancer Excavator Yearling Yearling,NULL,NULL,0,NULL,NULL 76637,131293,162963,Necromancer Yearling,NULL,NULL,0,NULL,NULL 76638,3885,1090705,NULL,NULL,NULL,0,NULL,NULL 76639,86383,9618,NULL,NULL,NULL,0,NULL,NULL 76640,41280,384938,Popular Question Yearling Favorite Question Critic Curious Notable Question,NULL,NULL,0,NULL,NULL 76641,787072,188306,Necromancer Necromancer Popular Question Yearling Critic Notable Question,NULL,NULL,0,NULL,NULL 76642,374538,846729,NULL,NULL,NULL,0,NULL,NULL 76643,354762,43839,Yearling Revival Necromancer Announcer Citizen Patrol Popular Question Custodian Custodian Announcer Civic Duty Yearling Quorum Notable Question Popular Question Pundit Popular Question Nice Answer Popular Question Announcer Yearling,NULL,How can lazily read multiple JSON values from file stream in Python python json serialization pI like to read multiple JSON objects from file stream in Python one at time Unfortunately codejson load code just code read codes until end of file there doesn seem to be any way to use it to read single object or to lazily iterate over the objects ppIs there any way to do this Using the standard library would be ideal but if there third party library use that instead ppAt the moment putting each object on separate line and using codejson loads readline code but would really prefer not to need to do this ph2Example Use h2h3example py h3pre class lang python prettyprint override codeimport my json as jsonimport sysfor in json iterload sys stdin print Working on type code preh3in txt h3pre class lang js prettyprint override code foo bar baz code preh3example session h3pre class lang none prettyprint override code python3 example py lt in txtWorking on dictWorking on intWorking on intWorking on listWorking on intWorking on intWorking on int code pre ijson doesn do it It expects everything to be included in one huge object or list,1,Cython build can find 11 STL files but only when called from setup py python 11 cython pWhen compile my code from setup py it can find the 11 include file code lt array gt code but 11 compiler features do work ppWhen paste the same command line that setup py generates into my shell it all compiles perfectly well ppCode demonstrating this behavior can be seen href https github com rec simple cython rel nofollow here and is also pasted below phrpTerminal session ppre code python setup py build extrunning build extbuilding simple extensioncreating buildcreating build temp macosx 10 intel usr bin clang fno strict aliasing Werror declaration after statement fno common dynamic DNDEBUG fwrapv O3 Wall Wstrict prototypes arch i386 arch x86 64 Isrc Library Frameworks Python framework Versions include python3 4m simple cpp build temp macosx 10 intel simple Wno unused function std 11In file included from simple cpp 289 simple 10 fatal error array file not found include lt array gt error generated error command usr bin clang failed with exit status usr bin clang fno strict aliasing Werror declaration after statement fno common dynamic DNDEBUG fwrapv O3 Wall Wstrict prototypes arch i386 arch x86 64 Isrc Library Frameworks Python framework Versions include python3 4m simple cpp build temp macosx 10 intel simple Wno unused function std 11 no error usr bin clang versionApple LLVM version clang 503 40 based on LLVM 4svn Target x86 64 apple darwin13 0Thread model posix code prehrpsetup py ppre code usr bin env python3import platform distutils core distutils extension Cython BuildEXTENSION distutils extension Extension name simple sources simple pyx extra compile args Wno unused function std 11 language EXT MODULES Cython Build cythonize EXTENSION language distutils core setup name simple ext modules EXT MODULES code prehrpsimple pyx ppre codecdef extern from simple namespace fcolor4 struct Simple int code prehrpsimple ppre codeint foo auto works so must be 11 return include lt string gt works so must find some STL include lt array gt fails code pre,NULL 76644,320457,809928,NULL,NULL,NULL,0,NULL,NULL 76645,144290,272176,Yearling Good Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 76646,212034,50151,Famous Question Nice Question Notable Question Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Announcer Famous Question Nice Answer Caucus Yearling Custodian Reviewer Nice Question Census Notable Question Peer Pressure Notable Question Popular Question Popular Question Popular Question Caucus Constituent Documentation User Popular Question Announcer Yearling Custodian Reviewer Census Popular Question Popular Question Caucus Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Announcer Announcer Good Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 76647,304124,528058,NULL,NULL,NULL,0,NULL,NULL 76648,837700,570279,NULL,NULL,NULL,0,NULL,NULL 76649,9841,546283,NULL,NULL,NULL,0,NULL,NULL 76650,22450,670639,Yearling Documentation Beta Yearling Documentation User Yearling,NULL,NULL,0,NULL,NULL 76651,821910,303368,NULL,NULL,NULL,0,NULL,NULL 76652,5940330,860528,Notable Question Popular Question Popular Question Informed Autobiographer Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76653,1090406,860528,Notable Question Popular Question Popular Question Informed Autobiographer Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76654,6810456,860528,Notable Question Popular Question Popular Question Informed Autobiographer Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76655,25391,954111,NULL,NULL,NULL,0,NULL,NULL 76656,137275,12124,Notable Question Popular Question Popular Question Notable Question Nice Question Nice Question Nice Question Yearling Notable Question Famous Question Popular Question Nice Answer Popular Question Custodian Nice Question Good Question Famous Question Famous Question Revival Notable Question Yearling Documentation User Popular Question Informed Popular Question Benefactor Good Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 76657,17912,216397,Guru Nice Answer Yearling Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 76658,77805,238008,NULL,NULL,NULL,0,NULL,NULL 76659,72694,596689,Good Answer Yearling Revival Guru Good Answer Good Answer Good Answer Populist Great Answer Good Answer Good Answer Great Answer Nice Answer Enlightened Caucus Good Answer Yearling Good Answer Guru Nice Answer Enlightened Guru Guru Good Answer Good Answer Guru Guru Yearling Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 76660,3937,926126,NULL,NULL,NULL,0,NULL,NULL 76661,35280,69125,Good Answer Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 76662,17971,473217,NULL,NULL,NULL,0,NULL,NULL 76663,759048,376919,Popular Question Popular Question Nice Question Famous Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 76664,31695,790621,NULL,NULL,NULL,0,NULL,NULL 76665,9696640,790621,NULL,NULL,NULL,0,NULL,NULL 76666,85951,20,Nice Answer Enlightened Favorite Question Good Answer Nice Answer Nice Answer Good Answer Yearling Great Question Good Question Good Answer Yearling Good Answer Nice Question Nice Answer Yearling Guru,NULL,NULL,0,NULL,NULL 76667,6072,167435,Famous Question Yearling Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76668,114933,1380901,Popular Question Autobiographer Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76669,2440,290115,Commentator Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76670,230244,594138,Yearling Necromancer Proofreader Nice Answer Enlightened Caucus Constituent Vox Populi Reviewer Yearling Custodian Custodian Census Nice Answer Necromancer Caucus Documentation User Custodian Census Nice Answer Enlightened Yearling Caucus Constituent Fanatic Electorate Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 76671,587397,311594,NULL,NULL,NULL,0,NULL,NULL 76672,75996,19079,Taxonomist Yearling Announcer Nice Answer Notable Question Benefactor,NULL,NULL,0,NULL,NULL 76673,54289,677283,Notable Question Popular Question Nice Question Good Question Popular Question Popular Question Popular Question Famous Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76674,273674,1359876,Commentator Tumbleweed Yearling Notable Question,NULL,NULL,0,NULL,NULL 76675,446547,335960,NULL,NULL,NULL,0,NULL,NULL 76676,256743,1299556,Yearling Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 76677,17816,181793,Yearling Announcer Announcer Critic Yearling Commentator Good Question Editor,NULL,NULL,0,NULL,NULL 76678,277290,167299,Popular Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 76679,36434,476257,NULL,NULL,NULL,0,NULL,NULL 76680,316124,904311,Good Answer Caucus Custodian Caucus Constituent Custodian Yearling,NULL,NULL,0,NULL,NULL 76681,1516897,1178860,NULL,NULL,NULL,0,NULL,NULL 76682,96850,1277068,Teacher Informed,NULL,NULL,0,NULL,NULL 76683,212252,1015625,NULL,NULL,NULL,0,NULL,NULL 76684,491487,522325,NULL,NULL,NULL,0,NULL,NULL 76685,1227773,269221,Yearling Good Answer Notable Question Necromancer Altruist Yearling Nice Answer Enlightened Nice Answer Good Answer Guru Yearling Custodian,NULL,NULL,0,NULL,NULL 76686,21503,1324588,Tumbleweed Yearling Popular Question Necromancer Notable Question,NULL,NULL,0,NULL,NULL 76687,2354705,1553296,NULL,NULL,NULL,0,NULL,NULL 76688,116047,188899,Editor,NULL,NULL,0,NULL,NULL 76689,902632,1415016,NULL,NULL,NULL,0,NULL,NULL 76690,1183,1566374,NULL,NULL,NULL,0,NULL,NULL 76691,88557,191682,Necromancer,NULL,NULL,0,NULL,NULL 76692,1239998,878365,NULL,NULL,NULL,0,NULL,NULL 76693,2307382,878365,NULL,NULL,NULL,0,NULL,NULL 76694,4082635,1138344,NULL,NULL,NULL,0,NULL,NULL 76695,108083,868184,Notable Question Necromancer Popular Question Popular Question Popular Question Caucus,NULL,NULL,0,NULL,NULL 76696,151237,538776,Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Self-Learner Popular Question Notable Question Yearling Nice Answer Famous Question Popular Question Caucus Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 76697,66182,982921,Yearling Popular Question Curious Yearling Notable Question Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 76698,75276,1180155,NULL,NULL,NULL,0,NULL,NULL 76699,82774,1075783,Curious Commentator Critic Notable Question,NULL,NULL,0,NULL,NULL 76700,263997,1217982,NULL,NULL,NULL,0,NULL,NULL 76701,899767,1081413,NULL,NULL,NULL,0,NULL,NULL 76702,6096133,1535540,Popular Question Yearling Great Answer Popular Question Notable Question Custodian Announcer Citizen Patrol Informed Custodian Autobiographer Excavator Custodian Organizer Revival Yearling Necromancer Enthusiast Nice Answer Nice Question Custodian Necromancer Good Answer Yearling Nice Answer,NULL,NULL,1,NULL,correct usage of reduce reducers redux reducers pI don understand what is href https github com acdlite reduce reducers rel nofollow noreferrer reduce reducers meant for Shall it be used in case that have reducer function containing the same action ppre codefunction reducerA state action switch action type case SAME ACTION state field state field function reducerB state action switch action type case SAME ACTION state field state field code prepSo if call codereduceReducer code on codereducerA code and codereducerB code and action SAME ACTION is invoked for code field code then would have next state code field code ppAlso it seems to me that it kind of concatenates reducers meaning merging them under one key ppAm right or does codereduceReducer code serve different purpose pThe difference is pulli codecombineReducers code creates strongnested strong state lili codereduceReducers code creates strongflat strong state li ulpConsider following reducers There are no action types to make things simpler ppre class lang js prettyprint override code this reducer adds payload to state sum and tracks total number of operationsfunction reducerAdd state payload if state state sum totalOperations if payload return state return state sum state sum payload totalOperations state totalOperations this reducer multiplies state product by payload and tracks total number of operationsfunction reducerMult state payload if state state product totalOperations if payload return state product might be undefined because of small caveat in reduceReducers see below const prev state product return state product prev payload totalOperations state totalOperations code preh2combineReducers h2pEach reducer gets an independent piece of state see also href http redux js org docs api combineReducers html rel noreferrer http redux js org docs api combineReducers html ppre class lang js prettyprint override codeconst rootReducer combineReducers add reducerAdd mult reducerMult const initialState rootReducer undefined add sum totalOperations mult product totalOperations const first rootReducer initialState add sum totalOperations mult product totalOperations This isn interesting let look at second call const second rootReducer first add sum totalOperations mult product 16 totalOperations Now it obvious that both reducers get their own piece of state to work with code preh2reduceReducers h2pAll reducers strongshare strong the same state ppre class lang js prettyprint override codeconst addAndMult reducerReduce reducerAdd reducerMult const initial addAndMult undefined sum totalOperations First reducerAdd is called which gives us initial state sum Second reducerMult is called which doesn have payload so it just returns state unchanged That why there isn any product prop const next addAndMult initial sum product totalOperations First reducerAdd is called which changes sum Second reducerMult is called which changes product Both reducers modify totalOperations const final addAndMult next sum product 16 totalOperations code preh2Use cases h2ulli codecombineReducers code each reducer manage own slice of state codestate todos code and codestate logging code This is useful when creating emroot em reducer lili codereduceReducers code each reducer manage the same state This is useful when chaining several reducers which are supposed to operate over the same state this might happen for example when combining several reducer created using codehandleAction code from href https github com acdlite redux actions handleactiontype reducer reducermap identity defaultstate rel noreferrer redux actions li ulpThe difference is obvious from the final state shape ph2Caveats h2pThere small caveat in codereduceReducers code When final reducer is called with codestate undefined code it should return the initial state However only the first reducer in chain gets codeundefined code all other reducers will receive state from first one 76703,438254,1535540,Popular Question Yearling Great Answer Popular Question Notable Question Custodian Announcer Citizen Patrol Informed Custodian Autobiographer Excavator Custodian Organizer Revival Yearling Necromancer Enthusiast Nice Answer Nice Question Custodian Necromancer Good Answer Yearling Nice Answer,NULL,NULL,1,NULL,correct usage of reduce reducers redux reducers pI don understand what is href https github com acdlite reduce reducers rel nofollow noreferrer reduce reducers meant for Shall it be used in case that have reducer function containing the same action ppre codefunction reducerA state action switch action type case SAME ACTION state field state field function reducerB state action switch action type case SAME ACTION state field state field code prepSo if call codereduceReducer code on codereducerA code and codereducerB code and action SAME ACTION is invoked for code field code then would have next state code field code ppAlso it seems to me that it kind of concatenates reducers meaning merging them under one key ppAm right or does codereduceReducer code serve different purpose pThe difference is pulli codecombineReducers code creates strongnested strong state lili codereduceReducers code creates strongflat strong state li ulpConsider following reducers There are no action types to make things simpler ppre class lang js prettyprint override code this reducer adds payload to state sum and tracks total number of operationsfunction reducerAdd state payload if state state sum totalOperations if payload return state return state sum state sum payload totalOperations state totalOperations this reducer multiplies state product by payload and tracks total number of operationsfunction reducerMult state payload if state state product totalOperations if payload return state product might be undefined because of small caveat in reduceReducers see below const prev state product return state product prev payload totalOperations state totalOperations code preh2combineReducers h2pEach reducer gets an independent piece of state see also href http redux js org docs api combineReducers html rel noreferrer http redux js org docs api combineReducers html ppre class lang js prettyprint override codeconst rootReducer combineReducers add reducerAdd mult reducerMult const initialState rootReducer undefined add sum totalOperations mult product totalOperations const first rootReducer initialState add sum totalOperations mult product totalOperations This isn interesting let look at second call const second rootReducer first add sum totalOperations mult product 16 totalOperations Now it obvious that both reducers get their own piece of state to work with code preh2reduceReducers h2pAll reducers strongshare strong the same state ppre class lang js prettyprint override codeconst addAndMult reducerReduce reducerAdd reducerMult const initial addAndMult undefined sum totalOperations First reducerAdd is called which gives us initial state sum Second reducerMult is called which doesn have payload so it just returns state unchanged That why there isn any product prop const next addAndMult initial sum product totalOperations First reducerAdd is called which changes sum Second reducerMult is called which changes product Both reducers modify totalOperations const final addAndMult next sum product 16 totalOperations code preh2Use cases h2ulli codecombineReducers code each reducer manage own slice of state codestate todos code and codestate logging code This is useful when creating emroot em reducer lili codereduceReducers code each reducer manage the same state This is useful when chaining several reducers which are supposed to operate over the same state this might happen for example when combining several reducer created using codehandleAction code from href https github com acdlite redux actions handleactiontype reducer reducermap identity defaultstate rel noreferrer redux actions li ulpThe difference is obvious from the final state shape ph2Caveats h2pThere small caveat in codereduceReducers code When final reducer is called with codestate undefined code it should return the initial state However only the first reducer in chain gets codeundefined code all other reducers will receive state from first one 76704,205030,112000,Notable Question Necromancer Good Question Yearling Good Answer Famous Question Census Famous Question Famous Question Nice Question Yearling Popular Question Popular Question Good Question Documentation User Nice Answer Enlightened Announcer Famous Question Nice Question Pundit Census Good Answer Nice Answer Notable Question Yearling Nice Answer,NULL,Is there any good dynamic SQL builder library in Java java sql sqlbuilder pAnyone knows some good SQL builder library for Java like href http code google com squiggle sql Squiggle not maintained anymore it seems Preferably project in active development ppPreferably with syntax like href http framework zend com manual en zend db select html Zend Db Select something that will allow to make query like ppre codeString query db select from products order product id code pre think https github com alexfu SQLiteQueryBuilder is almost exactly what you are looking for pActually rebase saves your starting point to codeORIG HEAD code so this is usually as simple as ppre codegit reset hard ORIG HEAD code prepHowever the codereset code coderebase code and codemerge code all save your original codeHEAD code pointer into codeORIG HEAD code so if you ve done any of those commands since the rebase you re trying to undo then you ll have to use the reflog This should be the accepted answer IMO,0,NULL,NULL 76705,136965,650567,NULL,NULL,NULL,0,NULL,NULL 76706,490867,221312,Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Nice Question Nice Answer Enlightened Popular Question Nice Question,NULL,NULL,0,NULL,NULL 76707,234111,280693,Nice Answer Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Good Answer Nice Answer Notable Question Popular Question Good Answer Popular Question Nice Question Famous Question Yearling Notable Question Notable Question Popular Question Notable Question Nice Question Famous Question Notable Question Custodian Yearling Popular Question Nice Answer Socratic Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76708,697572,703929,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76709,135218,927469,NULL,NULL,NULL,0,NULL,NULL 76710,160609,596607,Informed,NULL,NULL,0,NULL,NULL 76711,244511,38055,Popular Question Notable Question Popular Question Popular Question Necromancer Popular Question Nice Question Socratic Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Great Question Good Answer Famous Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Nice Answer Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Answer Famous Question Popular Question Announcer Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Yearling Popular Question Good Question Notable Question Notable Question Notable Question Notable Question Good Answer Notable Question Notable Question Notable Question Nice Answer Popular Question Popular Question Nice Question Good Answer Favorite Question Popular Question Revival Notable Question Notable Question Notable Question Favorite Question Generalist Popular Question Famous Question Popular Question Popular Question Nice Answer Nice Answer Notable Question Nice Answer Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Great Question Popular Question Popular Question Popular Question Popular Question Famous Question Good Answer Nice Question Famous Question Nice Question Popular Question Yearling Nice Answer Enlightened Popular Question Popular Question Popular Question Famous Question Notable Question Nice Question Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Nice Question Popular Question Notable Question Nice Question Popular Question Investor Altruist Good Question Nice Question Nice Question Notable Question Popular Question Popular Question Famous Question Nice Answer Notable Question Notable Question Notable Question Popular Question Nice Answer Enlightened Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Guru Nice Question Popular Question Popular Question Notable Question Famous Question Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 76712,513823,1398225,NULL,NULL,NULL,0,NULL,NULL 76713,1328132,338416,Popular Question,NULL,NULL,0,NULL,NULL 76714,1504957,473040,Great Answer Populist Popular Question Necromancer Guru Nice Answer Necromancer Necromancer Notable Question Necromancer Popular Question Popular Question Necromancer Popular Question Yearling Popular Question Good Answer ruby-on-rails-3 Announcer Famous Question Announcer Good Answer Notable Question Good Question Nice Answer Nice Question Popular Question Nice Question Popular Question Civic Duty Revival Necromancer Necromancer Necromancer Announcer Documentation User Yearling Announcer Announcer Good Answer Nice Answer Good Answer Nice Answer Popular Question Notable Question Popular Question Necromancer Necromancer Popular Question Nice Answer Enlightened Necromancer Nice Question Necromancer Popular Question Revival Announcer Announcer Yearling Popular Question,NULL,preal life example notify href https airbrake io docs api create deploy v4 rel noreferrer Airbrake API about new deployment via NetHttps ppre coderequire uri require net https require json class MakeHttpsRequest def call url hash json uri URI parse url req Net HTTP Post new uri to req body hash json to json req Content Type application json set more request headers response https uri request req response body end private def https uri Net HTTP new uri host uri port tap do http http use ssl true http verify mode OpenSSL SSL VERIFY NONE end endendproject id yyyyyy project key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx url https airbrake io api v4 projects project id deploys key project key body hash environment production username tomas repository https github com equivalent scrapbook2 revision live 20160905 0001 version v2 puts MakeHttpsRequest new call url body hash code prepNotes ppin case you doing authentication via Authorisation header set header codereq Authorization Token xxxxxxxxxxxx code or href http api rubyonrails org classes ActionController HttpAuthentication Token html rel noreferrer http api rubyonrails org classes ActionController HttpAuthentication Token html but honestly this is cool and all but in real live would just use HTTParty https stackoverflow com 14491995 473040 especially if you are dealing with https handling PATCH method blocked by firewall rest firewall pHi anyone ever had situation that codePATCH code method over codeXHR code AJAX requests was blocked by firewall ppBasically we had situation where client was complaining that he couldn update stuff on our app We checked it everywhere in the world it was working we connected via codeVPN code several places ppThen they provided us remote desktop latest Windows latest chrome so we tried it for our self from their network and they were right All PATCH methods via codeAJAX code calls ended up with 405 but all codePUT POST DELETE GET code methods were fine We tried to track these PATCH requests in application and codeNginx code logs but it seems they never hit our server So conclusion is that their firewall newer let the request leave the building ppnormal ppre code Laptop PATCH gt Clients Firewal gt Load Balancer gt Nginx proxy gt Rails app 200 response code prepthis firewall case ppre code Laptop PATCH gt Clients Firewal 405 response code prepDue to lack of time to investigate this we just changed some of these problematic endpoints from PATCH to PUT and everything was working ppmy only explanation in that because PATCH is part of another later introduced RFC their firewall must be super old and not registering PATCH as valid method Their sys admin have no idea why this could be But one clue is that the application is EdTech and clients are Schools they not necessarily may have the latest technology on their networking stack Also nanny software may be preset ppcross reference to Reddit discussion on same question href https www reddit com rest comments 5gkvba patch blocked by firewall rel noreferrer https www reddit com rest comments 5gkvba patch blocked by firewall sorry cannot The support and information knowledge from the client we received was pretty much in sense we don know Only thing we were able to do is to try the calls from remote desktop Unfortunately no longer have the header information but one thing remember is that when the 405 occurred the header had Squid header So could it be that Squid cached PATCH as PATCH is cachable PATCH method blocked by firewall rest firewall pHi anyone ever had situation that codePATCH code method over codeXHR code AJAX requests was blocked by firewall ppBasically we had situation where client was complaining that he couldn update stuff on our app We checked it everywhere in the world it was working we connected via codeVPN code several places ppThen they provided us remote desktop latest Windows latest chrome so we tried it for our self from their network and they were right All PATCH methods via codeAJAX code calls ended up with 405 but all codePUT POST DELETE GET code methods were fine We tried to track these PATCH requests in application and codeNginx code logs but it seems they never hit our server So conclusion is that their firewall newer let the request leave the building ppnormal ppre code Laptop PATCH gt Clients Firewal gt Load Balancer gt Nginx proxy gt Rails app 200 response code prepthis firewall case ppre code Laptop PATCH gt Clients Firewal 405 response code prepDue to lack of time to investigate this we just changed some of these problematic endpoints from PATCH to PUT and everything was working ppmy only explanation in that because PATCH is part of another later introduced RFC their firewall must be super old and not registering PATCH as valid method Their sys admin have no idea why this could be But one clue is that the application is EdTech and clients are Schools they not necessarily may have the latest technology on their networking stack Also nanny software may be preset ppcross reference to Reddit discussion on same question href https www reddit com rest comments 5gkvba patch blocked by firewall rel noreferrer https www reddit com rest comments 5gkvba patch blocked by firewall this was happening under HTTPs unfortunately entire app is under https but good idea doh pI think reading CSRF value from DOM is not good solution it just workaround ppHere is document form angularJS official website href https docs angularjs org api ng service http cross site request forgery xsrf protection rel noreferrer http docs angularjs org api ng http pblockquote pSince only JavaScript that runs on your domain could read the cookie your server can be assured that the XHR came from JavaScript running on your domain pTo take advantage of this CSRF Protection your server needs to set token in JavaScript readable session cookie called XSRF TOKEN on first HTTP GET request On subsequent non GET requests the server can verify that the cookie matches XSRF TOKEN HTTP header blockquotepHere is my solution based on those instructions ppFirst set the cookie ppre code app controllers application controller rb Turn on request forgery protectionprotect from forgeryafter action set csrf cookiedef set csrf cookie cookies XSRF TOKEN form authenticity token if protect against forgery end code prepThen we should verify the token on every non GET request brSince Rails has already built with the similar method we can just simply override it to append our logic ppre code app controllers application controller rbprotected In Rails and above def verified request super valid authenticity token session request headers XSRF TOKEN end In Rails and below def verified request super form authenticity token request headers XSRF TOKEN end code pre sorry but It sounds to me that CSRF cookie would not solve this scenario http guides rubyonrails org security html cross site request forgery csrf can you expand on that pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre nice there goes my minutes of fame pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre hmmm guess by that time most of gems will fix this code dependency,1,PATCH method blocked by firewall rest firewall pHi anyone ever had situation that codePATCH code method over codeXHR code AJAX requests was blocked by firewall ppBasically we had situation where client was complaining that he couldn update stuff on our app We checked it everywhere in the world it was working we connected via codeVPN code several places ppThen they provided us remote desktop latest Windows latest chrome so we tried it for our self from their network and they were right All PATCH methods via codeAJAX code calls ended up with 405 but all codePUT POST DELETE GET code methods were fine We tried to track these PATCH requests in application and codeNginx code logs but it seems they never hit our server So conclusion is that their firewall newer let the request leave the building ppnormal ppre code Laptop PATCH gt Clients Firewal gt Load Balancer gt Nginx proxy gt Rails app 200 response code prepthis firewall case ppre code Laptop PATCH gt Clients Firewal 405 response code prepDue to lack of time to investigate this we just changed some of these problematic endpoints from PATCH to PUT and everything was working ppmy only explanation in that because PATCH is part of another later introduced RFC their firewall must be super old and not registering PATCH as valid method Their sys admin have no idea why this could be But one clue is that the application is EdTech and clients are Schools they not necessarily may have the latest technology on their networking stack Also nanny software may be preset ppcross reference to Reddit discussion on same question href https www reddit com rest comments 5gkvba patch blocked by firewall rel noreferrer https www reddit com rest comments 5gkvba patch blocked by firewall Selecting value from list of tuples Elixir elixir pI trying to extract values from list of tuples ppre codes3 headers headers amz id yQKurzVIApkxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFBINsPxe 7Vc amz request id 82xxxxxxxxx23 Date Thu 25 May 2017 22 03 09 GMT Last Modified Thu 25 May 2017 21 42 28 GMT ETag 6f04733333333333333368997 amz meta original name Screenshot from 2016 11 27 17 32 03 png Accept Ranges bytes Content Type Content Length 612391 Server AmazonS3 status code 200 code prepThe way how manage to do it so far is like this ppre code amz meta original name original name s3 headers gt List keyfind amz meta original name Content Length content length s3 headers gt List keyfind Content Length Content Type content length s3 headers gt List keyfind Content Type code prepIt feels like overcomplication can you recommend better way,Ruby send JSON request ruby json httprequest pHow do send JSON request in ruby have JSON object but dont think can just do code send code Do have to have javascript send the form ppOr can use the net http class in ruby ppWith header content type json and body the json object preal life example notify href https airbrake io docs api create deploy v4 rel noreferrer Airbrake API about new deployment via NetHttps ppre coderequire uri require net https require json class MakeHttpsRequest def call url hash json uri URI parse url req Net HTTP Post new uri to req body hash json to json req Content Type application json set more request headers response https uri request req response body end private def https uri Net HTTP new uri host uri port tap do http http use ssl true http verify mode OpenSSL SSL VERIFY NONE end endendproject id yyyyyy project key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx url https airbrake io api v4 projects project id deploys key project key body hash environment production username tomas repository https github com equivalent scrapbook2 revision live 20160905 0001 version v2 puts MakeHttpsRequest new call url body hash code prepNotes ppin case you doing authentication via Authorisation header set header codereq Authorization Token xxxxxxxxxxxx code or href http api rubyonrails org classes ActionController HttpAuthentication Token html rel noreferrer http api rubyonrails org classes ActionController HttpAuthentication Token html NoMethodError undefined method last comment after upgrading to rake 11 ruby on rails ruby on rails rake pWhen running any coderake code task get pblockquote pNoMethodError undefined method last comment for h1 h1 blockquotepThis was after codebundle update code which pulled in the new version of rake version code11 code ppre code grep rake Gemfile lock rake rake gt rake 11 rake bundle update bundle exec rake db drop any rake task code preblockquote pNoMethodError undefined method last comment for lt Rake Application 0x007ff0cf37be38 blockquotep strongVersions strong pulliRails 11 liliRake 11 li ul pin Rails quick fix can be edit code Rakefile code in your app folder ppand add these lines before calling codeRails application load tasks code ppre codemodule TempFixForRakeLastComment def last comment last description end endRake Application send include TempFixForRakeLastComment code prepso entire codeRakefile code might look like ppre code require File expand path config application FILE require rake require resque tasks temp fix for NoMethodError undefined method last comment remove when fixed in Rake 11 module TempFixForRakeLastComment def last comment last description end end Rake Application send include TempFixForRakeLastComment end of temfix task resque preload gt environment Rails application load tasks code pre 76715,493985,594349,Yearling Necromancer Nice Answer Good Answer Yearling Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76716,12452,657943,NULL,NULL,NULL,0,NULL,NULL 76717,2559354,680015,NULL,NULL,NULL,0,NULL,NULL 76718,20470,680015,NULL,NULL,NULL,0,NULL,NULL 76719,262837,1222079,Popular Question,NULL,NULL,0,NULL,NULL 76720,43990,17279,Nice Answer Good Answer Good Answer Famous Question Nice Question Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Good Question Notable Question xcode Custodian Nice Answer Enlightened Popular Question Popular Question Nice Answer Enlightened ios Notable Question Good Question Notable Question Nice Question Nice Answer Guru Revival Popular Question Yearling Great Answer Popular Question Nice Question Nice Question Nice Answer Enlightened Famous Question Nice Answer Nice Answer Necromancer Guru Investor Altruist Nice Answer Good Answer Guru Nice Answer Famous Question Popular Question Popular Question Nice Question Notable Question Benefactor Good Answer Great Answer Famous Question Good Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Revival Yearling Documentation User Popular Question Nice Answer Popular Question Guru Notable Question Nice Question Nice Question Nice Question macos Popular Question Notable Question Nice Answer Census Socratic Stellar Question Nice Answer Great Answer Nice Answer Enlightened Favorite Question Good Answer Necromancer Popular Question Nice Answer Nice Question Caucus Constituent Popular Question Nice Answer Enlightened Good Question Famous Question Nice Answer Enlightened Nice Answer Popular Question Great Answer Nice Answer Enlightened Popular Question Popular Question Notable Question Nice Answer swift Announcer Good Answer Popular Question Nice Answer Notable Question Yearling Notable Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 76721,322674,388916,Popular Question Popular Question Nice Question Nice Question Famous Question Famous Question Nice Answer Popular Question Notable Question Nice Question Nice Question Nice Answer Nice Question Nice Answer Enlightened Good Answer Nice Question Popular Question Famous Question Famous Question Nice Question Notable Question Announcer Notable Question Popular Question Nice Answer Nice Question Good Answer Popular Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Question Yearling Good Answer Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Great Question Favorite Question Good Answer Popular Question Nice Question Nice Question Notable Question Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Answer Enlightened Popular Question Popular Question Nice Question Popular Question Great Question Popular Question Famous Question Famous Question Good Question Revival Popular Question Popular Question Famous Question Popular Question Famous Question Notable Question Good Question Notable Question Good Question Notable Question Nice Question Notable Question Famous Question Guru Good Question Nice Question Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Announcer Famous Question Nice Question Nice Answer Notable Question Yearling Notable Question Famous Question Famous Question Good Answer Notable Question Popular Question Notable Question Popular Question Good Question Nice Answer Enlightened Nice Answer Nice Question Popular Question Nice Answer Enlightened Popular Question Famous Question Popular Question Documentation User Notable Question Nice Question Announcer Notable Question Famous Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Famous Question Revival Nice Answer Enlightened Good Question Popular Question Good Question Popular Question Famous Question Nice Question Famous Question Famous Question Notable Question Famous Question Announcer Notable Question Good Question Notable Question Necromancer Notable Question Nice Question Yearling Good Answer Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Famous Question Notable Question Nice Answer,NULL,pHere is simple way to mock it with Jasmine ppre codebeforeEach function var store spyOn localStorage getItem andCallFake function key return store key spyOn localStorage setItem andCallFake function key value return store key value spyOn localStorage clear andCallFake function store code prepIf you want to mock the local storage in all your tests declare the codebeforeEach code function shown above in the global scope of your tests the usual place is emspecHelper js em script What about mocking key in localStorage pEdit Since this is the accepted answer can delete it so posting here answer ppre codegit log since 6am code prepAnd of course you can adjust the time to whatever is morning enough for you Also times like 06 00 work for those that don like AM PM,0,NULL,NULL 76722,4498559,388916,Popular Question Popular Question Nice Question Nice Question Famous Question Famous Question Nice Answer Popular Question Notable Question Nice Question Nice Question Nice Answer Nice Question Nice Answer Enlightened Good Answer Nice Question Popular Question Famous Question Famous Question Nice Question Notable Question Announcer Notable Question Popular Question Nice Answer Nice Question Good Answer Popular Question Notable Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Question Yearling Good Answer Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Great Question Favorite Question Good Answer Popular Question Nice Question Nice Question Notable Question Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Nice Answer Enlightened Popular Question Popular Question Nice Question Popular Question Great Question Popular Question Famous Question Famous Question Good Question Revival Popular Question Popular Question Famous Question Popular Question Famous Question Notable Question Good Question Notable Question Good Question Notable Question Nice Question Notable Question Famous Question Guru Good Question Nice Question Famous Question Good Question Popular Question Popular Question Nice Question Nice Question Popular Question Popular Question Announcer Famous Question Nice Question Nice Answer Notable Question Yearling Notable Question Famous Question Famous Question Good Answer Notable Question Popular Question Notable Question Popular Question Good Question Nice Answer Enlightened Nice Answer Nice Question Popular Question Nice Answer Enlightened Popular Question Famous Question Popular Question Documentation User Notable Question Nice Question Announcer Notable Question Famous Question Popular Question Good Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Famous Question Revival Nice Answer Enlightened Good Question Popular Question Good Question Popular Question Famous Question Nice Question Famous Question Famous Question Notable Question Famous Question Announcer Notable Question Good Question Notable Question Necromancer Notable Question Nice Question Yearling Good Answer Famous Question Notable Question Popular Question Popular Question Nice Question Popular Question Famous Question Popular Question Famous Question Notable Question Nice Answer,NULL,pHere is simple way to mock it with Jasmine ppre codebeforeEach function var store spyOn localStorage getItem andCallFake function key return store key spyOn localStorage setItem andCallFake function key value return store key value spyOn localStorage clear andCallFake function store code prepIf you want to mock the local storage in all your tests declare the codebeforeEach code function shown above in the global scope of your tests the usual place is emspecHelper js em script What about mocking key in localStorage pEdit Since this is the accepted answer can delete it so posting here answer ppre codegit log since 6am code prepAnd of course you can adjust the time to whatever is morning enough for you Also times like 06 00 work for those that don like AM PM,0,NULL,NULL 76723,355935,1529452,NULL,NULL,NULL,0,NULL,NULL 76724,250507,412070,Notable Question,NULL,NULL,0,NULL,NULL 76725,140886,883894,Announcer,NULL,NULL,0,NULL,NULL 76726,4035,2239,Good Answer Stellar Question Yearling Good Question Good Question Yearling Famous Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 76727,70978,33518,arrays Revival Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened f#-3.0 Great Answer Nice Answer Nice Answer Nice Answer tail-recursion tuples Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer inline Generalist Nice Answer Nice Answer Enlightened deedle Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Steward Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Great Answer Guru Necromancer Caucus type-providers Nice Answer Enlightened Nice Answer Constituent Nice Answer Enlightened Nice Answer parallel-processing Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Great Answer Good Answer Census Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Caucus Nice Answer Good Answer Nice Answer Enlightened visual-studio Nice Answer Nice Answer Enlightened asynchronous Nice Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Reviewer Nice Answer Enlightened computation-expression Good Answer Guru Guru Guru Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Good Answer Populist Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened,NULL,pThere is number of concepts here ppFor tail recursive function the compiler can optimize it into loop and so it does not need any stack or heap space You can rewrite your codecount code function into simple tail recursive function by writing ppre codelet rec count acc if then acc else count acc code prepThis will be compiled into method with codewhile code loop that makes no recursive calls ppContinuations are generally needed when function emcannot em be written as tail recursive Then you need to keep some state emeither em on the stack emor em on the heap Ignoring the fact that codefib code can be written more efficiently the naïve recursive implementation would be ppre codelet fib if lt then else fib fib code prepThis needs emstack em space to remember what needs to happen after the first recursive call returns the result we then need to call the other recursive call and add the results Using continuations you can turn this into heap allocated functions ppre codelet fib cont if lt then cont else fib fun r1 gt fib fun r2 gt cont r1 r2 code prepThis allocates one continuation function value for each recursive call but it is tail recursive so it will not exhaust the available stack space The trick is that tail calls can eliminate stack space not only for tail recursive calls but for any calls in tail call position So the call to cont will be also tail call tail calls are not limited to recursive calls pThe codeViewBag code property is just wrapper that exposes the codeViewData code collection as property of type codedynamic code so that it can be accessed dynamically from using property set syntax You could use implementation of code code based on DLR to do that see href https stackoverflow com questions 5057672 looking for robust general op dynamic implementation this discussion at SO but it is easier to define code code operator that adds data directly to codeViewDataDictionary code which is exposed by the codeViewData code property ppre codelet lt viewData ViewDataDictionary name string value viewData Add name box value code prepThen you should be able to write ppre codex ViewData Message lt Hello code pre It is not general features the compiler treats in special way and there is no way for defining similar operators on your own,1,NULL,Does the continuation tail recursion trick actually trade stack space for heap space optimization functional programming tail recursion continuations pThere is this CPS trick in functional programming to take non tail recursive function and rewrite it in continuation passing style CPS thus trivially making it tail recursive lot of questions actually cover this like pulli href https lorgonblog wordpress com 2008 04 05 catamorphisms part one rel nofollow noreferrer https lorgonblog wordpress com 2008 04 05 catamorphisms part one lili href https stackoverflow com questions 34363645 in which memory area is the continuation stored stack or heap In which memory area is the continuation stored stack or heap lili href https stackoverflow com questions 15746230 why do continuations avoid stackoverflow why do continuations avoid stackoverflow li ulpTake some example ppre codelet rec count if then else count let rec countCPS cont if then cont else countCPS fun ret gt cont ret code prepThe first version of codecount code will accumulate stack frames in each recursive call producing stack overflow at around coden 60000 code on my computer ppThe idea of the CPS trick is that the codecountCPS code implementation is tail recursive so that the computation ppre codelet countCPS 60000 code prepwill actually be optimized to run as loop and work without problems Instead of stack frames the continuation to be run will accumulate in every step but this is an honest object on the heap where memory doesn cause problems strongSo the CPS style is said to trade stack space for heap space But skeptical it does even do that strong ppHere why Evaluating the computation by actually running the continuation as codecountCPS 60000 fun gt code blows my stack Each call ppre codecountCPS fun ret gt cont ret code prepgenerates new continuation closure from the old one and running it involves one function application So when evaluating codecountCPS 60000 fun gt code we invoke nested sequence of 60000 closures and even though their data lies on the heap we have function applications nontheless so there are the stack frames again ppLet dive into the generated code disassembled into ppFor codecountCPS code we get ppre codepublic static countCPS lt gt int FSharpFunc lt int gt cont while int arg 1B cont new Program lt gt countCPS cont arg 1B return cont Invoke code prepThere we go tail recursion actually got optimized away However the closure class looks like ppre codeinternal class countCPS lt gt FSharpFunc lt int gt public FSharpFunc lt int gt cont internal countCPS FSharpFunc lt int gt cont this cont cont public override Invoke int ret return this cont Invoke ret code prepSo running the outermost closure will cause it to code Invoke code its child closure then it child closure again and again strongWe really have 60000 nested function calls again strong ppSo don see how the continuation trick is actually able to do what being advertized ppNow we could argue that the codethis cont Invoke code is sort of tail call again so it doesn need stack frame Does NET perform this kind of optimization What about more complicated examples like ppre codelet rec fib cps match with gt gt fib cps fun gt fib cps fun gt code prepAt least we would have to argue why we can optimize away the nested function calls captured in the continuation phrh1Edit h1pre code interface FSharpFunc lt gt Invoke arg class Closure lt gt FSharpFunc lt int gt public FSharpFunc lt int gt cont public Closure FSharpFunc lt int gt cont this cont cont public Invoke int arg return cont Invoke arg class Identity lt gt FSharpFunc lt gt public Invoke arg return arg static void Main string args FSharpFunc lt int int gt computation new Identity lt int gt for int 10 gt computation new Closure lt int gt computation Console WriteLine computation Invoke code prepTo be even more precise we model the closure that the CPS style function builds up in ppClearly the data lie on the heap However evaluating codecomputation Invoke code results in cascade of nested codeInvoke codes to the child closures Just put break point on codeIdentity Invoke code and look at the stack trace So how does the built up computation trade stack for heap space if it in fact heavily uses both pThere is number of concepts here ppFor tail recursive function the compiler can optimize it into loop and so it does not need any stack or heap space You can rewrite your codecount code function into simple tail recursive function by writing ppre codelet rec count acc if then acc else count acc code prepThis will be compiled into method with codewhile code loop that makes no recursive calls ppContinuations are generally needed when function emcannot em be written as tail recursive Then you need to keep some state emeither em on the stack emor em on the heap Ignoring the fact that codefib code can be written more efficiently the naïve recursive implementation would be ppre codelet fib if lt then else fib fib code prepThis needs emstack em space to remember what needs to happen after the first recursive call returns the result we then need to call the other recursive call and add the results Using continuations you can turn this into heap allocated functions ppre codelet fib cont if lt then cont else fib fun r1 gt fib fun r2 gt cont r1 r2 code prepThis allocates one continuation function value for each recursive call but it is tail recursive so it will not exhaust the available stack space 76728,5782748,1545598,Popular Question Tumbleweed Informed Autobiographer Notable Question,NULL,NULL,0,NULL,NULL 76729,440129,1214764,Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 76730,2504029,1214764,Popular Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 76731,17663,10292,Enlightened Guru Yearling Nice Answer Enlightened Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 76732,76428,1007542,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 76733,106820,1307373,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76734,106751,668833,NULL,NULL,NULL,0,NULL,NULL 76735,300229,282730,Yearling,NULL,NULL,0,NULL,NULL 76736,458430,1269040,Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 76737,922064,292216,Yearling Great Question Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 76738,259591,852938,NULL,NULL,NULL,0,NULL,NULL 76739,2508134,1385282,Student Editor Supporter Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 76740,1051966,504295,NULL,NULL,NULL,0,NULL,NULL 76741,177219,799847,NULL,NULL,NULL,0,NULL,NULL 76742,114919,551955,NULL,NULL,NULL,0,NULL,NULL 76743,149965,781199,Famous Question Nice Question Revival Yearling Popular Question Tumbleweed Yearling Announcer Yearling Notable Question,NULL,NULL,0,NULL,NULL 76744,892611,1062414,Revival,NULL,NULL,0,NULL,NULL 76745,1318574,471548,Tumbleweed Curious Popular Question Popular Question Revival Notable Question Popular Question Popular Question Informed Critic Yearling Organizer Explainer Yearling Excavator,NULL,NULL,0,NULL,NULL 76746,303349,48140,Yearling Caucus,NULL,NULL,0,NULL,NULL 76747,5574645,48140,Yearling Caucus,NULL,NULL,0,NULL,NULL 76748,9558075,1565611,NULL,NULL,NULL,0,NULL,NULL 76749,210392,1384631,NULL,NULL,NULL,0,NULL,NULL 76750,17260,1155892,Yearling Investor Altruist Self-Learner Popular Question Yearling,NULL,NULL,0,NULL,NULL 76751,585795,575512,NULL,NULL,NULL,0,NULL,NULL 76752,55544,548696,Good Answer Booster Popular Question Guru Nice Answer Enlightened Nice Answer Guru Great Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Great Answer Nice Answer Guru Nice Answer Nice Answer Guru Nice Answer json Great Answer Nice Answer Enlightened Caucus Good Answer Yearling Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Good Answer Announcer Nice Answer Great Answer Nice Answer Enlightened Great Answer Good Answer Good Answer Good Answer Good Answer Guru Announcer Notable Question Nice Answer Notable Question Announcer Popular Question Yearling Good Answer Good Answer Announcer Nice Answer Nice Answer Enlightened Popular Question Notable Question Good Answer Announcer Nice Answer Enlightened Notable Question Nice Answer Enlightened Publicist Nice Answer Nice Answer Guru Nice Answer Guru Great Answer,NULL,strongNo strong there is none but strongyou can make one strong ph2JavaScript implementation of Python coderange code h2pTrying to strongemulate how it works in Python strong would create function similar to this ppre class lang js prettyprint override codefunction range start stop step if typeof stop undefined one param defined stop start start if typeof step undefined step if step gt amp amp start gt stop step lt amp amp start lt stop return var result for var start step gt lt stop gt stop step result push return result code prepSee href http jsfiddle net Luc4E this jsfiddle for proof ph2Comparison between coderange code in JavaScript and Python h2pIt works in the following way pulli coderange code returns code code lili coderange code returns code code lili coderange 10 code returns code code lili coderange 10 code returns code 10 code lili coderange code returns code code lili coderange code returns code code lili coderange code returns code code lili coderange code returns code code lili coderange code returns code code li ulpand its Python counterpart strongworks exactly the same way strong at least in the mentioned cases ppre code gt gt gt range gt gt gt range gt gt gt range 10 gt gt gt range 10 10 gt gt gt range gt gt gt range gt gt gt range gt gt gt range gt gt gt range code prepSo if you need function to work similarly to Python coderange code you can use above mentioned solution In such case current JS approach will return empty array If you have proposal on how to approach it feel free to suggest edits would like RangeError https developer mozilla org en US docs Web JavaScript Reference Global Objects RangeError to be used for raising exception,0,NULL,NULL 76753,312761,574046,Popular Question,NULL,NULL,0,NULL,NULL 76754,936843,764737,Curious,NULL,NULL,0,NULL,NULL 76755,273602,908142,Student Tumbleweed,NULL,NULL,0,NULL,NULL 76756,698445,1121188,Commentator Nice Answer Yearling Good Answer Yearling,NULL,pHere how you can detect event you are looking for ppDeclarations and initialization ppre codeprivate Timer timer new Timer private final long DELAY 1000 in ms code prepListener in onCreate ppre codeEditText editText EditText findViewById id editTextStopId editText addTextChangedListener new TextWatcher public void beforeTextChanged CharSequence int start int count int after public void onTextChanged final CharSequence int start int before int count if timer null timer cancel public void afterTextChanged final Editable avoid triggering event when text is too short if length gt timer new Timer timer schedule new TimerTask public void run TODO do what you need here refresh list you will probably need to use runOnUiThread Runnable action for some specific actions queryDB DELAY code prepSo when text is changed the timer is starting to wait for any next changes to happen When they occure timer is cancelled and then started once again How is that possible It will run only once but there is risk that writing another letter after the run fired will fire it once again To cope with that input can be temporarily disabled,0,NULL,NULL 76757,8219,1025502,Informed Autobiographer Scholar,NULL,NULL,0,NULL,NULL 76758,1153637,1025502,Informed Autobiographer Scholar,NULL,NULL,0,NULL,NULL 76759,243285,386405,Student Critic Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 76760,1504875,413177,NULL,NULL,NULL,0,NULL,NULL 76761,62159,948832,NULL,NULL,NULL,0,NULL,NULL 76762,103398,129289,Notable Question Popular Question Nice Answer Enlightened Yearling Nice Answer Notable Question Popular Question Caucus Notable Question Good Answer Notable Question Good Question Yearling Custodian Popular Question Nice Question Good Answer Caucus Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 76763,341133,115328,Nice Question Good Answer Yearling Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 76764,131766,1098351,NULL,NULL,NULL,0,NULL,NULL 76765,66701,176186,python Good Answer Populist Popular Question Populist Notable Question Good Answer Yearling Nice Answer Enlightened Nice Question Nice Answer Good Answer Nice Answer Good Answer Notable Question Yearling Nice Answer Announcer Great Answer Good Answer Yearling Guru Famous Question,NULL,NULL,0,NULL,NULL 76766,574031,213755,NULL,NULL,NULL,0,NULL,NULL 76767,124221,126030,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76768,17031,174786,node.js Nice Answer Enlightened Revival Yearling Nice Answer Enlightened Mortarboard iisnode Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 76769,147960,692712,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76770,593911,355800,Nice Question Great Answer Yearling Notable Question Popular Question Nice Answer Yearling Custodian Curious Yearling,NULL,NULL,0,NULL,NULL 76771,230855,1493357,NULL,NULL,NULL,0,NULL,NULL 76772,78696,114561,NULL,NULL,NULL,0,NULL,NULL 76773,86014,1038228,Teacher,NULL,NULL,0,NULL,NULL 76774,1153539,1102633,Notable Question,NULL,NULL,0,NULL,NULL 76775,133929,377095,Nice Answer Good Answer Yearling Good Question Guru Popular Question Notable Question Yearling Notable Question Nice Answer Guru Nice Answer Yearling Yearling Yearling Famous Question Good Answer,NULL,NULL,0,NULL,NULL 76776,150076,1501827,Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 76777,1506295,533739,NULL,NULL,NULL,0,NULL,NULL 76778,104737,253151,Yearling Guru Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 76779,60725,1033977,NULL,NULL,NULL,0,NULL,NULL 76780,958484,393689,Popular Question,NULL,NULL,0,NULL,NULL 76781,7777108,370020,Popular Question Teacher,NULL,NULL,0,NULL,NULL 76782,28741,118322,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76783,417350,458729,Nice Question Notable Question Caucus Constituent Famous Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76784,332644,795744,Notable Question,NULL,NULL,0,NULL,NULL 76785,411119,245370,Famous Question Famous Question Famous Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 76786,124850,247351,NULL,NULL,NULL,0,NULL,NULL 76787,67304,650114,NULL,NULL,NULL,0,NULL,NULL 76788,1533691,1256138,Scholar Supporter Popular Question,NULL,NULL,0,NULL,NULL 76789,18707,599025,NULL,NULL,NULL,0,NULL,NULL 76790,142154,517655,NULL,NULL,NULL,0,NULL,NULL 76791,746587,977490,NULL,NULL,NULL,0,NULL,NULL 76792,215411,221071,NULL,NULL,NULL,0,NULL,NULL 76793,1374918,1560266,NULL,NULL,NULL,0,NULL,NULL 76794,452237,565550,Custodian Popular Question Documentation User Custodian Popular Question Caucus,NULL,NULL,0,NULL,NULL 76795,210759,1230986,Tumbleweed,NULL,NULL,0,NULL,NULL 76796,186480,266220,Popular Question Census,NULL,NULL,0,NULL,NULL 76797,163794,331392,NULL,NULL,NULL,0,NULL,NULL 76798,221277,122861,Yearling Yearling Caucus Documentation User,NULL,NULL,0,NULL,NULL 76799,1096765,325519,Popular Question Custodian Nice Question Yearling Notable Question Notable Question Popular Question Enthusiast Favorite Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 76800,162602,897494,Editor Necromancer,NULL,NULL,0,NULL,NULL 76801,77795,1526117,NULL,NULL,NULL,0,NULL,NULL 76802,28437,910723,NULL,NULL,NULL,0,NULL,NULL 76803,4847413,910723,NULL,NULL,NULL,0,NULL,NULL 76804,23956,735526,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76805,122762,515241,Nice Answer Yearling Commentator Necromancer Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 76806,89714,249819,Famous Question Promoter Benefactor Popular Question Custodian Popular Question Caucus Revival Popular Question Caucus Caucus Excavator,NULL,NULL,0,NULL,NULL 76807,444081,1136318,Revival,NULL,NULL,0,NULL,NULL 76808,1370824,790683,NULL,NULL,NULL,0,NULL,NULL 76809,44567,585768,Yearling Caucus Good Answer,NULL,NULL,0,NULL,NULL 76810,119646,139456,Revival Yearling Editor Necromancer Yearling Popular Question Caucus Tumbleweed Revival,NULL,NULL,0,NULL,NULL 76811,230306,268282,NULL,NULL,NULL,0,NULL,NULL 76812,121615,912225,Mortarboard elixir Nice Question Good Answer Civic Duty Yearling Self-Learner Caucus Popular Question Nice Answer Enlightened Caucus Yearling Nice Question Guru Nice Answer Enlightened Notable Question Famous Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 76813,70822,1565775,Informed Autobiographer,NULL,NULL,0,NULL,NULL 76814,559196,201720,Notable Question Nice Answer Enlightened Disciplined Yearling Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76815,2036318,201720,Notable Question Nice Answer Enlightened Disciplined Yearling Nice Answer Enlightened Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 76816,41038,438912,Supporter Editor Scholar Informed,NULL,NULL,0,NULL,NULL 76817,314823,1300524,NULL,NULL,NULL,0,NULL,NULL 76818,5509711,1074436,NULL,NULL,NULL,0,NULL,NULL 76819,672470,321588,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76820,87049,438270,Yearling Guru Informed Yearling Yearling Caucus Citizen Patrol Yearling Revival Necromancer,NULL,NULL,0,NULL,NULL 76821,137077,1397049,NULL,NULL,NULL,0,NULL,NULL 76822,290282,935572,NULL,NULL,NULL,0,NULL,NULL 76823,37952,350202,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76824,109028,668480,Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 76825,365701,641558,Necromancer Necromancer Editor Census Commentator Necromancer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 76826,154105,725715,Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 76827,162716,72372,NULL,NULL,NULL,0,NULL,NULL 76828,122487,1344951,Nice Answer,NULL,NULL,0,NULL,NULL 76829,126998,916636,NULL,NULL,NULL,0,NULL,NULL 76830,38801,1279800,NULL,NULL,NULL,0,NULL,NULL 76831,306799,1002334,Editor Teacher Necromancer Nice Answer Supporter,NULL,NULL,0,NULL,NULL 76832,249206,248539,Good Question Yearling,NULL,NULL,0,NULL,NULL 76833,151138,1114938,Revival Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 76834,601435,1026349,Good Answer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76835,128801,161557,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76836,252547,83455,Informed Editor,NULL,NULL,0,NULL,NULL 76837,530774,190333,Autobiographer Informed Popular Question Student,NULL,NULL,0,NULL,NULL 76838,1302225,631079,NULL,NULL,NULL,0,NULL,NULL 76839,537258,660828,Custodian Custodian Popular Question Nice Question Proofreader Yearling Necromancer Reviewer Strunk & White Good Answer Good Answer Popular Question Necromancer Notable Question Disciplined Caucus Constituent Nice Answer Yearling Famous Question Caucus Constituent php Notable Question Good Question Custodian Reviewer Reviewer Tumbleweed Steward Census Steward Good Answer Yearling Steward Caucus Constituent Custodian Custodian,NULL,NULL,0,NULL,NULL 76840,434047,847857,Notable Question Yearling Popular Question Notable Question Yearling Announcer,NULL,NULL,0,NULL,NULL 76841,576887,429104,Popular Question,NULL,NULL,0,NULL,NULL 76842,243447,561719,Popular Question Nice Answer Curious Informed Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 76843,44190,768003,NULL,NULL,NULL,0,NULL,NULL 76844,168077,1059391,Necromancer,NULL,NULL,0,NULL,NULL 76845,1529,1297767,Popular Question Student,NULL,NULL,0,NULL,NULL 76846,258939,218107,Yearling Yearling Caucus Explainer Yearling Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 76847,18519,45974,Notable Question Famous Question Popular Question Notable Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Nice Question Good Question Famous Question Notable Question Popular Question Famous Question Notable Question Notable Question Good Question Notable Question Yearling Popular Question Nice Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Good Question Yearling Notable Question Popular Question Announcer Notable Question Notable Question Popular Question Nice Question Good Question Notable Question Nice Question Famous Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 76848,361691,848866,NULL,NULL,NULL,0,NULL,NULL 76849,187688,433297,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 76850,128677,206367,Nice Answer Enlightened Nice Answer Great Question Steward Custodian Guru Enlightened Informed c Nice Answer Pundit Good Answer Nice Answer Enlightened android Popular Question Caucus Yearling Good Answer Constituent Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Caucus Constituent Documentation User Nice Answer Enlightened Yearling Notable Question Nice Answer Talkative Nice Answer Guru Caucus Constituent Guru Yearling,NULL,NULL,0,NULL,NULL 76851,1371441,785280,NULL,NULL,NULL,0,NULL,NULL 76852,3126143,785280,NULL,NULL,NULL,0,NULL,NULL 76853,17486,133416,Popular Question Popular Question Popular Question Revival Popular Question Yearling Notable Question,NULL,,0,, 76854,82385,337493,Nice Answer Yearling Popular Question Popular Question Nice Question Great Question Nice Question Famous Question Nice Question Notable Question Yearling Nice Answer Good Question Necromancer Famous Question Necromancer Famous Question Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76855,275893,786740,Supporter Informed,NULL,NULL,0,NULL,NULL 76856,234739,233516,Popular Question Nice Answer Notable Question Yearling Nice Question Famous Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 76857,21056,646494,NULL,NULL,NULL,0,NULL,NULL 76858,788787,456632,NULL,NULL,NULL,0,NULL,NULL 76859,274792,307262,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76860,181433,534005,Notable Question Custodian Promoter Nice Question Popular Question Popular Question Good Question Yearling Popular Question Famous Question Popular Question Nice Question Notable Question Popular Question Popular Question Inquisitive Nice Answer Notable Question Yearling Popular Question Nice Answer Notable Question Popular Question Good Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 76861,341588,242489,Yearling Nice Answer Enlightened Nice Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 76862,246433,36632,NULL,NULL,,0,, 76863,57767,788379,Popular Question,NULL,NULL,0,NULL,NULL 76864,579832,94231,NULL,NULL,NULL,0,NULL,NULL 76865,10478,878602,android Favorite Question Yearling Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76866,264290,276504,Popular Question,NULL,NULL,0,NULL,NULL 76867,1055958,15418,NULL,NULL,NULL,0,NULL,NULL 76868,313935,173445,NULL,NULL,NULL,0,NULL,NULL 76869,125216,73067,Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 76870,36318,263502,NULL,NULL,NULL,0,NULL,NULL 76871,900059,1245279,Popular Question,NULL,NULL,0,NULL,NULL 76872,26921,408557,Popular Question Yearling Custodian Necromancer Popular Question Necromancer Yearling Autobiographer Good Answer Revival Popular Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 76873,284177,870461,Curious Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 76874,2071420,1304503,NULL,NULL,NULL,0,NULL,NULL 76875,154236,1304503,NULL,NULL,NULL,0,NULL,NULL 76876,103756,1454154,Famous Question Good Question,NULL,NULL,0,NULL,NULL 76877,210756,273979,Popular Question Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 76878,88780,1460632,NULL,NULL,NULL,0,NULL,NULL 76879,593618,824263,NULL,NULL,NULL,0,NULL,NULL 76880,212471,620972,NULL,NULL,NULL,0,NULL,NULL 76881,111896,779651,NULL,NULL,NULL,0,NULL,NULL 76882,24144,1564445,NULL,NULL,NULL,0,NULL,NULL 76883,136463,994283,Revival Popular Question Curious Yearling,NULL,NULL,0,NULL,NULL 76884,705057,31250,NULL,NULL,NULL,0,NULL,NULL 76885,161772,845834,Commentator Documentation User Revival,NULL,NULL,0,NULL,NULL 76886,747497,549948,NULL,NULL,NULL,0,NULL,NULL 76887,293709,396595,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76888,340187,1127774,NULL,NULL,NULL,0,NULL,NULL 76889,299371,1314254,NULL,NULL,NULL,0,NULL,NULL 76890,304204,568114,NULL,NULL,NULL,0,NULL,NULL 76891,460912,1389017,Informed Autobiographer Citizen Patrol Scholar,NULL,NULL,0,NULL,NULL 76892,249598,123144,Nice Question Yearling Famous Question Great Question Favorite Question Great Answer Yearling Famous Question Nice Question Great Question Custodian Yearling Popular Question,NULL,NULL,0,NULL,NULL 76893,2159520,393406,Popular Question Famous Question Notable Question Popular Question Popular Question Guru Popular Question Notable Question Popular Question Good Question Popular Question Notable Question Nice Question Nice Question Yearling Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Nice Answer Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Custodian Popular Question Notable Question Popular Question Notable Question Good Question Yearling Good Question Notable Question Famous Question Famous Question Famous Question Famous Question Notable Question Popular Question Custodian Famous Question Good Question Census Popular Question Nice Question Nice Question Yearling Benefactor Notable Question Nice Question,NULL,NULL,0,NULL,NULL 76894,60514,246647,NULL,NULL,NULL,0,NULL,NULL 76895,10206225,710402,NULL,NULL,NULL,0,NULL,NULL 76896,629211,226495,NULL,NULL,NULL,0,NULL,NULL 76897,883722,1237194,NULL,NULL,NULL,0,NULL,NULL 76898,300654,222485,NULL,NULL,NULL,0,NULL,NULL 76899,616640,1084479,Popular Question,NULL,NULL,0,NULL,NULL 76900,1037554,190466,Nice Answer Necromancer Necromancer Good Answer Yearling Good Answer Necromancer Popular Question Curious Yearling Yearling,NULL,NULL,0,NULL,NULL 76901,2298345,580347,NULL,NULL,NULL,0,NULL,NULL 76902,43817,198996,Famous Question Custodian Custodian Custodian Tenacious Notable Question Famous Question Announcer Popular Question Nice Answer Enlightened Yearling Famous Question Nice Question Announcer Good Answer Documentation User Yearling Revival Necromancer Famous Question Nice Answer Announcer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 76903,1353150,458311,Necromancer Notable Question Good Question Notable Question Yearling Caucus Famous Question Custodian Informed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 76904,269392,634449,NULL,NULL,NULL,0,NULL,NULL 76905,53852,385476,NULL,NULL,NULL,0,NULL,NULL 76906,160490,8179,Census,NULL,NULL,0,NULL,NULL 76907,1635924,1119924,NULL,NULL,NULL,0,NULL,NULL 76908,511509,1420382,Nice Answer Enlightened Yearling Custodian Good Answer Informed Revival Announcer Guru Yearling Fanatic Announcer Revival Great Answer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 76909,511515,1420382,Nice Answer Enlightened Yearling Custodian Good Answer Informed Revival Announcer Guru Yearling Fanatic Announcer Revival Great Answer Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 76910,1158919,217159,NULL,NULL,NULL,0,NULL,NULL 76911,371659,55959,Yearling Yearling Great Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 76912,29360,85121,Revival Yearling Disciplined Caucus Nice Answer,NULL,NULL,0,NULL,NULL 76913,386735,1234558,NULL,NULL,NULL,0,NULL,NULL 76914,1386864,1270187,Notable Question Yearling Notable Question Nice Question Notable Question Nice Question Notable Question Notable Question Popular Question Famous Question Custodian Famous Question Caucus,NULL,NULL,0,NULL,NULL 76915,194466,477788,Notable Question,NULL,NULL,0,NULL,NULL 76916,376136,1083062,Caucus Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 76917,203053,1069379,Student Supporter Teacher,NULL,NULL,0,NULL,NULL 76918,248494,510512,NULL,NULL,NULL,0,NULL,NULL 76919,182990,297398,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76920,2244,943820,NULL,NULL,NULL,0,NULL,NULL 76921,448641,914766,NULL,NULL,NULL,0,NULL,NULL 76922,133973,728244,Nice Question Popular Question Citizen Patrol Notable Question Notable Question Good Question Notable Question Yearling Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Necromancer Notable Question Popular Question Taxonomist Popular Question Yearling Nice Answer Popular Question Popular Question Good Question Notable Question Famous Question Notable Question Yearling Famous Question Good Answer Favorite Question,NULL,NULL,0,NULL,NULL 76923,752506,671801,Editor Citizen Patrol Enthusiast Commentator Caucus Documentation User,NULL,NULL,0,NULL,NULL 76924,158849,361692,Supporter Yearling Necromancer,NULL,NULL,0,NULL,NULL 76925,202175,1328720,NULL,NULL,NULL,0,NULL,NULL 76926,195820,1170567,NULL,NULL,NULL,0,NULL,NULL 76927,853239,445099,Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 76928,238146,65456,Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 76929,61441,497221,NULL,NULL,NULL,0,NULL,NULL 76930,45576,552466,Good Answer Yearling,NULL,NULL,0,NULL,NULL 76931,294114,557193,NULL,NULL,NULL,0,NULL,NULL 76932,346987,23728,NULL,NULL,NULL,0,NULL,NULL 76933,103600,1267548,NULL,NULL,NULL,0,NULL,NULL 76934,52286,135510,Yearling,NULL,NULL,0,NULL,NULL 76935,353806,818420,Guru Yearling Yearling Great Answer Popular Question Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 76936,148721,1000458,Editor Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 76937,1174664,438186,Popular Question Necromancer Famous Question Yearling Curious Census Excavator Good Answer Yearling Nice Answer,NULL,pI simplified Lasnv answer bit ppIt also fixes the bug that WebDeb describes ppHere it is ppre codevar regExp youtu be embed watch amp amp var match url match regExp if match amp amp match length 11 return match else error code prepHere is regexer link to play with href http regexr com 3dnqv http regexr com 3dnqv not fan of the overly permissive can we use slightly stricter or zA Z0 11 12 to allow for 12 character ids some time in the future pI simplified Lasnv answer bit ppIt also fixes the bug that WebDeb describes ppHere it is ppre codevar regExp youtu be embed watch amp amp var match url match regExp if match amp amp match length 11 return match else error code prepHere is regexer link to play with href http regexr com 3dnqv http regexr com 3dnqv This solves the problems with the urls listed below by JW youtu be vi embed vi vi pI simplified Lasnv answer bit ppIt also fixes the bug that WebDeb describes ppHere it is ppre codevar regExp youtu be embed watch amp amp var match url match regExp if match amp amp match length 11 return match else error code prepHere is regexer link to play with href http regexr com 3dnqv http regexr com 3dnqv don know what their schema for generating ids is If it were merely based on unique numbers in base 62 or whatever they wouldn need 11 character ids would they The larger point was that if you re expecting 11 characters of particular type put that in the search,0,NULL,NULL 76938,213110,904872,NULL,NULL,NULL,0,NULL,NULL 76939,99775,1046667,NULL,NULL,NULL,0,NULL,NULL 76940,8030,805461,NULL,NULL,NULL,0,NULL,NULL 76941,219788,572578,Autobiographer Informed,NULL,NULL,0,NULL,NULL 76942,60604,1032036,Yearling Custodian Citizen Patrol Custodian Yearling Good Answer Yearling Documentation User Caucus Yearling,NULL,NULL,0,NULL,NULL 76943,243861,968193,NULL,NULL,NULL,0,NULL,NULL 76944,159246,206820,Yearling Populist Yearling Notable Question Caucus Popular Question Yearling Yearling Great Answer Announcer,NULL,NULL,0,NULL,NULL 76945,687365,1087242,NULL,NULL,NULL,0,NULL,NULL 76946,166685,951591,NULL,NULL,NULL,0,NULL,NULL 76947,55146,727410,Teacher Revival,NULL,NULL,0,NULL,NULL 76948,340269,824231,NULL,NULL,NULL,0,NULL,NULL 76949,307006,977749,Notable Question Good Answer Revival Yearling Popular Question Custodian Yearling Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 76950,113957,79111,Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question Nice Question Famous Question Proofreader Caucus Custodian Yearling Custodian Custodian Notable Question Famous Question Popular Question Famous Question Inquisitive Good Answer Nice Answer Good Question Yearling Nice Question Famous Question Revival,NULL,NULL,0,NULL,NULL 76951,49675,300080,NULL,NULL,,0,, 76952,543117,576393,NULL,NULL,NULL,0,NULL,NULL 76953,369387,1420667,NULL,NULL,NULL,0,NULL,NULL 76954,1036867,210469,Notable Question,NULL,NULL,0,NULL,NULL 76955,8064,615047,NULL,NULL,NULL,0,NULL,NULL 76956,109622,472178,Supporter,NULL,NULL,0,NULL,NULL 76957,421771,1537335,NULL,NULL,NULL,0,NULL,NULL 76958,192884,124071,Popular Question,NULL,NULL,0,NULL,NULL 76959,518038,454773,Nice Answer Notable Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Notable Question Nice Question Nice Question Announcer Yearling Famous Question Announcer Announcer Inquisitive Citizen Patrol Announcer Popular Question Famous Question Good Question Famous Question Announcer Popular Question Nice Question Necromancer Yearling Announcer Nice Question Notable Question Announcer Necromancer Civic Duty Announcer Necromancer Popular Question Announcer Announcer Nice Answer Announcer Necromancer Popular Question Notable Question Enlightened Favorite Question Yearling,NULL,NULL,0,NULL,NULL 76960,1486225,1476372,Nice Question Famous Question Self-Learner Yearling Tumbleweed Good Question Yearling,NULL,NULL,0,NULL,NULL 76961,235408,1476372,Nice Question Famous Question Self-Learner Yearling Tumbleweed Good Question Yearling,NULL,NULL,0,NULL,NULL 76962,587855,1105169,NULL,NULL,NULL,0,NULL,NULL 76963,2166800,1389321,Editor Informed Autobiographer Teacher Supporter Scholar Commentator,NULL,NULL,0,NULL,NULL 76964,2732016,929861,Critic Famous Question Popular Question Curious Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 76965,606273,929861,Critic Famous Question Popular Question Curious Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 76966,3593780,929861,Critic Famous Question Popular Question Curious Commentator Yearling Yearling,NULL,NULL,0,NULL,NULL 76967,713011,652747,NULL,NULL,NULL,0,NULL,NULL 76968,9280162,825296,NULL,NULL,NULL,0,NULL,NULL 76969,922048,800453,NULL,NULL,NULL,0,NULL,NULL 76970,155819,439681,NULL,NULL,NULL,0,NULL,NULL 76971,246882,1337408,Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 76972,786689,12838,Populist Custodian Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 76973,867311,895715,NULL,NULL,NULL,0,NULL,NULL 76974,427896,895715,NULL,NULL,NULL,0,NULL,NULL 76975,3314497,1532752,NULL,NULL,NULL,0,NULL,NULL 76976,206137,1077868,Teacher,NULL,NULL,0,NULL,NULL 76977,1188470,563433,NULL,NULL,NULL,0,NULL,NULL 76978,925449,990558,NULL,NULL,NULL,0,NULL,NULL 76979,83418,1069677,NULL,NULL,NULL,0,NULL,NULL 76980,115878,600838,NULL,NULL,NULL,0,NULL,NULL 76981,887419,1079043,NULL,NULL,NULL,0,NULL,NULL 76982,196795,290768,NULL,NULL,NULL,0,NULL,NULL 76983,301795,538337,NULL,NULL,NULL,0,NULL,NULL 76984,47769,30363,Yearling,NULL,NULL,0,NULL,NULL 76985,324653,273628,Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 76986,557357,436102,NULL,NULL,NULL,0,NULL,NULL 76987,253471,1417488,NULL,NULL,NULL,0,NULL,NULL 76988,136706,1510452,Autobiographer,NULL,NULL,0,NULL,NULL 76989,292321,623949,Notable Question Popular Question Popular Question Nice Question Popular Question Notable Question Famous Question Good Question Documentation User Popular Question Census Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 76990,331461,678313,NULL,NULL,NULL,0,NULL,NULL 76991,73944,92540,NULL,NULL,NULL,0,NULL,NULL 76992,250697,346778,NULL,NULL,NULL,0,NULL,NULL 76993,142069,972280,NULL,NULL,,0,, 76994,8104,758334,Civic Duty Necromancer Nice Answer Yearling Announcer Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 76995,1044728,1327728,NULL,NULL,NULL,0,NULL,NULL 76996,46108,967426,Yearling Necromancer Popular Question Necromancer Good Answer Yearling Good Answer Notable Question Revival Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 76997,8456,63580,Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 76998,973723,438379,NULL,NULL,NULL,0,NULL,NULL 76999,644478,776875,NULL,NULL,NULL,0,NULL,NULL 77000,191333,1186373,Notable Question Nice Question Curious Popular Question,NULL,NULL,0,NULL,NULL 77001,12544,361971,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 77002,175459,1289490,Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 77003,491745,370670,Critic,NULL,NULL,0,NULL,NULL 77004,203285,391538,Nice Answer Enlightened Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 77005,798477,340404,Popular Question Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 77006,541802,963683,Nice Answer,NULL,NULL,0,NULL,NULL 77007,140037,900411,NULL,NULL,NULL,0,NULL,NULL 77008,135311,169231,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77009,1213709,1096537,Nice Question Yearling Enthusiast Good Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77010,222585,333780,NULL,NULL,NULL,0,NULL,NULL 77011,33191,174907,Yearling Popular Question Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 77012,909779,174907,Yearling Popular Question Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 77013,42197,1255132,Yearling,NULL,NULL,0,NULL,NULL 77014,884274,1067213,Yearling Nice Question Notable Question Popular Question Custodian Self-Learner Caucus Constituent Famous Question Notable Question Yearling Promoter Good Question Benefactor Notable Question Census Popular Question Custodian Caucus Constituent Tumbleweed Custodian Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77015,39536,627684,Nice Question Necromancer Yearling Popular Question Good Question Good Answer Necromancer Necromancer Nice Answer Famous Question Popular Question Notable Question Nice Question Inquisitive Yearling Nice Question Popular Question Nice Question Good Question Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 77016,186004,139078,Popular Question Curious Famous Question,NULL,NULL,0,NULL,NULL 77017,125330,553221,Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 77018,4270,344007,Nice Answer Yearling Popular Question Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 77019,361726,1496934,NULL,NULL,NULL,0,NULL,NULL 77020,184936,437452,NULL,NULL,NULL,0,NULL,NULL 77021,370611,899276,Popular Question Notable Question Notable Question Yearling Popular Question Famous Question Nice Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 77022,841603,743788,NULL,NULL,NULL,0,NULL,NULL 77023,8295,718453,Yearling Necromancer Booster Nice Answer Commentator Yearling Enthusiast Caucus Necromancer Notable Question Good Answer Yearling Guru Necromancer Caucus Nice Answer Yearling Publicist Great Answer,NULL,pYou can use the href https www python org dev peps pep 0508 environment markers rel noreferrer environment markers to achieve this in coderequirements txt code since codepip code ppre codeSomeProject python version lt SomeProject sys platform win32 code prepIt is supported by setuptools too by declaring extra requirements in codesetup py code ppre codesetup install requires six humanize extras require python version ipaddress code prepSee also href http pip readthedocs org en stable reference pip install requirement specifiers rel noreferrer requirement specifiers éCaron Have you tried to upgrade setuptools,0,NULL,NULL 77024,19416,569223,NULL,NULL,NULL,0,NULL,NULL 77025,161532,526888,NULL,NULL,NULL,0,NULL,NULL 77026,263253,1549892,NULL,NULL,NULL,0,NULL,NULL 77027,1398802,1549892,NULL,NULL,NULL,0,NULL,NULL 77028,124743,1009442,Self-Learner Necromancer Notable Question Enthusiast Famous Question Yearling Good Question Caucus Yearling Necromancer Popular Question Necromancer Nice Question Popular Question Custodian Caucus Promoter Benefactor Famous Question Yearling Notable Question Popular Question Census Nice Question Popular Question Caucus Yearling Nice Question Favorite Question Necromancer Notable Question Popular Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 77029,894205,1092990,NULL,NULL,NULL,0,NULL,NULL 77030,997474,862303,NULL,NULL,NULL,0,NULL,NULL 77031,234777,35389,Notable Question Yearling Census Nice Question Revival Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 77032,134324,219837,Revival Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Famous Question Notable Question Notable Question Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 77033,114939,905910,NULL,NULL,NULL,0,NULL,NULL 77034,1446,692499,Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Popular Question Popular Question Great Question Notable Question Notable Question Notable Question Nice Question Yearling Popular Question Notable Question Stellar Question Notable Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77035,1226349,949728,Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 77036,433806,697836,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77037,17470,25398,Revival Nice Answer Guru ruby-on-rails Nice Answer Guru Yearling Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer Enlightened Census Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Yearling Peer Pressure postgresql,NULL,NULL,0,NULL,NULL 77038,139674,777005,NULL,NULL,NULL,0,NULL,NULL 77039,2241339,1564652,Popular Question Popular Question Notable Question Popular Question Tenacious Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Notable Question Nice Question Notable Question Inquisitive Popular Question Popular Question Self-Learner Caucus Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77040,67451,161575,Necromancer Necromancer Popular Question Yearling Revival Nice Answer Caucus Nice Answer Nice Answer Famous Question Tumbleweed Good Answer Good Answer Enlightened Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 77041,167284,1145865,NULL,NULL,NULL,0,NULL,NULL 77042,190669,311194,NULL,NULL,NULL,0,NULL,NULL 77043,6106,89376,Necromancer Famous Question Yearling Announcer Custodian Notable Question,NULL,NULL,0,NULL,NULL 77044,247003,859130,Yearling Caucus Caucus Yearling Constituent Yearling,NULL,NULL,0,NULL,NULL 77045,1566438,1155164,NULL,NULL,NULL,0,NULL,NULL 77046,6065,1391587,NULL,NULL,NULL,0,NULL,NULL 77047,83013,1002339,NULL,NULL,NULL,0,NULL,NULL 77048,478614,1219806,Quorum Tenacious Reviewer Nice Answer Yearling Popular Question Good Answer Notable Question Famous Question Necromancer Nice Question Excavator Caucus Constituent Tag Editor Guru Yearling Famous Question Great Answer Custodian Custodian Good Question Caucus Constituent Documentation User Notable Question Taxonomist Census Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 77049,1625230,1192704,NULL,NULL,NULL,0,NULL,NULL 77050,810729,531255,NULL,NULL,NULL,0,NULL,NULL 77051,511938,131159,Self-Learner Curious Notable Question Yearling,NULL,NULL,0,NULL,NULL 77052,429093,1264341,Supporter,NULL,NULL,0,NULL,NULL 77053,208379,1264341,Supporter,NULL,NULL,0,NULL,NULL 77054,160117,229766,NULL,NULL,NULL,0,NULL,NULL 77055,413799,432385,NULL,NULL,NULL,0,NULL,NULL 77056,473599,716752,Necromancer Custodian Custodian Yearling Popular Question Caucus Constituent Nice Answer Promoter Benefactor Popular Question Yearling Documentation User Proofreader Caucus Constituent Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77057,239710,816892,Enthusiast Notable Question Yearling Popular Question Caucus Popular Question Popular Question Popular Question Popular Question Yearling Caucus Constituent Famous Question Documentation User Famous Question Popular Question Nice Question Census Popular Question Popular Question Popular Question Caucus Constituent Famous Question Popular Question Nice Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77058,113103,1110135,NULL,NULL,NULL,0,NULL,NULL 77059,535360,408070,Popular Question Famous Question Yearling Great Answer Famous Question Notable Question Notable Question Famous Question Yearling Popular Question Notable Question Popular Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 77060,134142,183293,NULL,NULL,NULL,0,NULL,NULL 77061,309377,979891,Student Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 77062,99112,853831,NULL,NULL,NULL,0,NULL,NULL 77063,171491,954398,NULL,NULL,NULL,0,NULL,NULL 77064,133869,621066,Popular Question,NULL,NULL,0,NULL,NULL 77065,489299,228936,Guru Guru Good Answer Good Answer Necromancer Great Answer Yearling Nice Question Good Answer Good Answer Enlightened Nice Answer Famous Question Nice Answer Nice Answer Good Question Nice Answer Necromancer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Yearling Great Answer Custodian Guru Great Answer,NULL,NULL,0,NULL,NULL 77066,369342,592039,NULL,NULL,NULL,0,NULL,NULL 77067,288953,846283,NULL,NULL,NULL,0,NULL,NULL 77068,3956650,846283,NULL,NULL,NULL,0,NULL,NULL 77069,1117658,383371,NULL,NULL,NULL,0,NULL,NULL 77070,290914,2701,Popular Question Popular Question Popular Question Famous Question Great Question Notable Question Popular Question Popular Question Notable Question Nice Question Famous Question Good Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Good Question Yearling Famous Question Good Answer Famous Question Popular Question Favorite Question Popular Question Popular Question Nice Answer Enlightened Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Popular Question Good Question Popular Question Nice Question Notable Question Nice Question Famous Question Notable Question Famous Question Yearling Nice Question Popular Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Guru Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Great Answer Popular Question Popular Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77071,273000,135066,Great Answer Yearling,NULL,NULL,0,NULL,NULL 77072,99924,1458299,NULL,NULL,NULL,0,NULL,NULL 77073,924079,531489,NULL,NULL,NULL,0,NULL,NULL 77074,337054,176414,Revival,NULL,NULL,0,NULL,NULL 77075,1112889,588243,Notable Question Custodian Informed Custodian Custodian Suffrage Yearling Civic Duty Popular Question Nice Question Nice Question Popular Question Custodian Reviewer Documentation Pioneer Yearling Announcer Vox Populi Caucus Constituent Popular Question Electorate Yearling Census Nice Question Announcer Caucus Deputy Custodian Custodian Proofreader Reviewer Nice Question Famous Question Nice Question Good Question Documentation User Fanatic Nice Question Popular Question Census Inquisitive Yearling Notable Question Caucus Notable Question Constituent Nice Answer Nice Question,NULL,Limit display of char in natvis file to specific length visual studio visual studio 2015 natvis pI ve got custom data structure holding codechar code buffer with two lengths associated maximum and actual length ppre codestruct MyData char data int length int capacity code prepIn the Visual Studio 2015 debugger visualizer only want to display the first codelength code elements of the codedata code buffer and not the usually uninitialized remaining elements ppI ve the following rule in my custom code natvis code file for displaying my custom data structure ppre class lang xml prettyprint override code lt Type Name MyData gt lt DisplayString gt content data su length length lt DisplayString gt lt Type gt code prepIs it possible to only display codedata code as codesu code encoded string from codedata code to codedata length code Unfortunately this legacy code working on hasn always terminated strings know little scary Limit display of char in natvis file to specific length visual studio visual studio 2015 natvis pI ve got custom data structure holding codechar code buffer with two lengths associated maximum and actual length ppre codestruct MyData char data int length int capacity code prepIn the Visual Studio 2015 debugger visualizer only want to display the first codelength code elements of the codedata code buffer and not the usually uninitialized remaining elements ppI ve the following rule in my custom code natvis code file for displaying my custom data structure ppre class lang xml prettyprint override code lt Type Name MyData gt lt DisplayString gt content data su length length lt DisplayString gt lt Type gt code prepIs it possible to only display codedata code as codesu code encoded string from codedata code to codedata length code know that the member variable length is the correct length of used occupied elements in data and want to display only those Something in the form of an pseudo expression of content data length,1,Limit display of char in natvis file to specific length visual studio visual studio 2015 natvis pI ve got custom data structure holding codechar code buffer with two lengths associated maximum and actual length ppre codestruct MyData char data int length int capacity code prepIn the Visual Studio 2015 debugger visualizer only want to display the first codelength code elements of the codedata code buffer and not the usually uninitialized remaining elements ppI ve the following rule in my custom code natvis code file for displaying my custom data structure ppre class lang xml prettyprint override code lt Type Name MyData gt lt DisplayString gt content data su length length lt DisplayString gt lt Type gt code prepIs it possible to only display codedata code as codesu code encoded string from codedata code to codedata length code,NULL 77076,10057302,224705,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77077,213612,188596,Yearling,NULL,NULL,0,NULL,NULL 77078,63685,1149807,NULL,NULL,NULL,0,NULL,NULL 77079,68805,22621,Custodian Custodian Custodian Nice Question Famous Question Yearling Stellar Question Good Answer Yearling Notable Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77080,190686,106173,Famous Question,NULL,NULL,0,NULL,NULL 77081,141494,498591,NULL,NULL,NULL,0,NULL,NULL 77082,38715,1434022,Student Tumbleweed Scholar Promoter Curious Yearling,NULL,NULL,0,NULL,NULL 77083,460379,309826,Popular Question,NULL,NULL,0,NULL,NULL 77084,708588,810442,NULL,NULL,,0,, 77085,1026463,317706,Famous Question Favorite Question,NULL,NULL,0,NULL,NULL 77086,120627,40313,NULL,NULL,NULL,0,NULL,NULL 77087,1373857,863592,NULL,NULL,NULL,0,NULL,NULL 77088,74305,1234218,Caucus,NULL,NULL,0,NULL,NULL 77089,245717,128108,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 77090,133716,923093,Critic Census,NULL,NULL,0,NULL,NULL 77091,184691,1205164,Scholar,NULL,NULL,0,NULL,NULL 77092,256601,506445,NULL,NULL,NULL,0,NULL,NULL 77093,127733,27220,Yearling Yearling Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 77094,208235,167837,Yearling,NULL,NULL,0,NULL,NULL 77095,148477,1064434,Notable Question,NULL,NULL,0,NULL,NULL 77096,1566760,11672,Yearling Nice Question Famous Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77097,732519,473615,NULL,NULL,NULL,0,NULL,NULL 77098,697730,857009,Popular Question,NULL,NULL,0,NULL,NULL 77099,52272,12345,Yearling,NULL,NULL,0,NULL,NULL 77100,87258,189529,NULL,NULL,NULL,0,NULL,NULL 77101,409000,596828,NULL,NULL,NULL,0,NULL,NULL 77102,574979,409865,Popular Question Notable Question Yearling Popular Question Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77103,99745,416983,Critic Nice Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77104,85472,1205852,NULL,NULL,NULL,0,NULL,NULL 77105,324582,446256,Student Editor Yearling,NULL,NULL,0,NULL,NULL 77106,313045,382023,Caucus Good Question Notable Question Yearling Custodian Self-Learner Popular Question Famous Question,NULL,NULL,0,NULL,NULL 77107,14203,278705,Enlightened,NULL,NULL,0,NULL,NULL 77108,651107,1183737,Teacher Supporter,NULL,NULL,0,NULL,NULL 77109,271272,1171329,Popular Question,NULL,NULL,0,NULL,NULL 77110,275428,559442,NULL,NULL,NULL,0,NULL,NULL 77111,147216,1271692,Announcer,NULL,NULL,0,NULL,NULL 77112,53584,1287813,NULL,NULL,NULL,0,NULL,NULL 77113,934249,1177580,NULL,NULL,NULL,0,NULL,NULL 77114,182675,392710,Nice Answer Caucus,NULL,NULL,0,NULL,NULL 77115,340802,442755,NULL,NULL,NULL,0,NULL,NULL 77116,5079886,1213316,Critic Census Caucus,NULL,NULL,0,NULL,NULL 77117,99851,826410,NULL,NULL,NULL,0,NULL,NULL 77118,386,403939,Yearling Proofreader Informed Civic Duty Great Answer Organizer Caucus Yearling Custodian Custodian Custodian Reviewer Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77119,223251,328130,NULL,NULL,NULL,0,NULL,NULL 77120,146237,895490,Popular Question,NULL,NULL,0,NULL,NULL 77121,137647,945193,Student Teacher Supporter,NULL,NULL,0,NULL,NULL 77122,113274,632004,NULL,NULL,NULL,0,NULL,NULL 77123,57602,1536272,NULL,NULL,NULL,0,NULL,NULL 77124,72039,1344539,NULL,NULL,NULL,0,NULL,NULL 77125,83069,998659,NULL,NULL,NULL,0,NULL,NULL 77126,2938,137834,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 77127,279341,586472,Civic Duty Documentation User Census,NULL,NULL,0,NULL,NULL 77128,743617,656651,NULL,NULL,NULL,0,NULL,NULL 77129,138907,359217,Notable Question,NULL,NULL,0,NULL,NULL 77130,87291,754417,Enthusiast,NULL,NULL,0,NULL,NULL 77131,412267,136976,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 77132,62079,1363047,Notable Question,NULL,NULL,0,NULL,NULL 77133,164711,442219,Nice Answer Yearling Good Answer Nice Question Nice Answer Nice Answer Revival Nice Answer Enlightened Yearling Famous Question Nice Answer Necromancer Famous Question Guru Necromancer Good Answer Necromancer Necromancer Yearling Necromancer Nice Answer Nice Question Good Answer Curious Good Answer,NULL,pNo properties order in objects is not guaranteed in JavaScript you need to use an codeArray code ppDefinition of an Object from href http www ecma international org publications files ECMA ST ARCH ECMA 262 203rd 20edition 20December 201999 pdf rel noreferrer ECMAScript Third Edition pdf pblockquote h34 Object h3 pAn object is member of the type Object strongIt is an unordered collection of properties strong each of which contains primitive value object or function function stored in property of an object is called method blockquotep strongSince ECMAScript 2015 strong using href https developer mozilla org en US docs Web JavaScript Reference Global Objects Map rel noreferrer the codeMap code object could be an alternative codeMap code shares some similarities with an codeObject code and href https developer mozilla org en US docs Web JavaScript Reference Global Objects Map Objects and maps compared rel noreferrer guarantees the keys order pblockquote pA Map iterates its elements in insertion order whereas iteration order is not specified for Objects blockquote oh no you got confused by yet another js trap Arrays are also Objects When you do val you insert into the Array and that is obviously ordered at index When you do key1 val or equivalent key1 val you are adding new property to the Object which is not guaranteed to be ordered Think of it as the Array elements and the Object properties An array object has both but they are not the same collection pNo such method does not exist but is trivial to write ppre codefunc contains int int bool for range if return true return false code prepYou can use map if that lookup is an important part of your code but maps have cost too trivial lines of code including loop branch if statement and comparison think missing something here,0,NULL,NULL 77134,299400,182921,NULL,NULL,NULL,0,NULL,NULL 77135,463029,1271698,NULL,NULL,NULL,0,NULL,NULL 77136,799333,206911,NULL,NULL,NULL,0,NULL,NULL 77137,88086,826972,NULL,NULL,NULL,0,NULL,NULL 77138,1624294,826972,NULL,NULL,NULL,0,NULL,NULL 77139,356349,115612,Notable Question Curious Critic Caucus Yearling Notable Question,NULL,NULL,0,NULL,NULL 77140,294578,15929,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 77141,34377,600061,Yearling Self-Learner Nice Answer Yearling Popular Question Caucus Tenacious Popular Question Yearling Popular Question Announcer,NULL,NULL,0,NULL,NULL 77142,106790,955177,NULL,NULL,NULL,0,NULL,NULL 77143,538992,458735,Informed Autobiographer,NULL,NULL,0,NULL,NULL 77144,45619,1105982,NULL,NULL,NULL,0,NULL,NULL 77145,223037,861571,Supporter Student Necromancer Documentation User,NULL,NULL,0,NULL,NULL 77146,397067,28482,Notable Question Popular Question Popular Question Nice Answer Popular Question Famous Question java Notable Question Good Question Popular Question Popular Question Yearling Famous Question Favorite Question Famous Question Good Question Popular Question Nice Question Announcer Popular Question Popular Question Nice Question Popular Question Good Answer Notable Question Yearling Famous Question Good Question Popular Question Nice Question Notable Question Notable Question Notable Question Famous Question Good Question Notable Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77147,350318,1008957,Popular Question Yearling Caucus Popular Question Good Answer Popular Question Popular Question Yearling Notable Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77148,433232,73729,NULL,NULL,NULL,0,NULL,NULL 77149,103814,123011,Popular Question Notable Question Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Nice Question Notable Question Yearling Great Answer Yearling Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 77150,77348,622081,Popular Question Yearling Notable Question Notable Question Necromancer Notable Question Popular Question Nice Question Booster Caucus Nice Question Revival Yearling Famous Question Popular Question Good Question Favorite Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 77151,51159,974320,NULL,NULL,NULL,0,NULL,NULL 77152,217282,344927,Nice Answer Enlightened Nice Question Yearling Yearling Notable Question Popular Question Nice Answer Yearling Notable Question,NULL,NULL,0,NULL,NULL 77153,48864,100215,Popular Question Self-Learner Announcer,NULL,NULL,0,NULL,NULL 77154,24193,1064233,NULL,NULL,NULL,0,NULL,NULL 77155,93127,477370,NULL,NULL,NULL,0,NULL,NULL 77156,82054,85432,Editor,NULL,NULL,0,NULL,NULL 77157,106691,1282571,Scholar Informed Autobiographer Teacher Student Revival Necromancer Nice Answer Peer Pressure Editor Revival Yearling Tumbleweed Good Answer Yearling Populist,NULL,NULL,0,NULL,NULL 77158,212367,1191262,NULL,NULL,NULL,0,NULL,NULL 77159,75160,842752,NULL,NULL,NULL,0,NULL,NULL 77160,1447237,1125570,NULL,NULL,NULL,0,NULL,NULL 77161,523517,583169,Caucus Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 77162,858543,230643,Good Question,NULL,NULL,0,NULL,NULL 77163,389664,903260,NULL,NULL,NULL,0,NULL,NULL 77164,92123,304141,Popular Question Famous Question Popular Question Nice Question Popular Question Yearling Notable Question Taxonomist Notable Question Popular Question Notable Question Famous Question Announcer Caucus Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Notable Question Popular Question Announcer Benefactor Notable Question,NULL,NULL,0,NULL,NULL 77165,175679,1262700,NULL,NULL,NULL,0,NULL,NULL 77166,269129,1389273,Curious Critic Popular Question Popular Question Commentator Yearling Promoter Benefactor,NULL,NULL,0,NULL,NULL 77167,526321,746116,NULL,NULL,NULL,0,NULL,NULL 77168,200755,1103601,Good Answer Yearling c# Student Scholar Yearling Popular Question,NULL,NULL,0,NULL,NULL 77169,235491,333253,Nice Answer Guru Nice Answer Enlightened Guru Yearling Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened c# Yearling Nice Answer asp.net-mvc Enlightened Yearling Guru Enlightened asp.net Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 77170,105529,355655,NULL,NULL,NULL,0,NULL,NULL 77171,83742,31278,Notable Question Popular Question Yearling Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 77172,8729041,813045,NULL,NULL,NULL,0,NULL,NULL 77173,111276,813045,NULL,NULL,NULL,0,NULL,NULL 77174,393908,43832,Great Answer Nice Answer Civic Duty Pundit Nice Answer Enlightened Guru Announcer Guru Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Necromancer Nice Answer Nice Answer Enlightened Announcer Nice Answer nsmanagedobjectcontext Nice Answer Good Answer Yearling Good Answer Fanatic Revival icloud Guru Nice Answer Nice Answer Nice Answer Nice Answer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Necromancer cocoa swift Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Necromancer Nice Answer Enlightened Nice Answer Enlightened Good Answer Yearling Good Answer Notable Question nsmanagedobject Nice Question Announcer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru swift3 Good Answer Nice Answer Nice Answer Enlightened Cleanup Popular Question Popular Question Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Popular Question Guru Guru xcode Good Question Good Answer Popular Question Popular Question Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Nice Answer Enlightened Excavator Good Answer,NULL,pYou do it using codeNSPersistentStoreDescription code which is where all those options moved to in the Swift updates Do this before the call to codeloadPersistentStores code ppre codelet description NSPersistentStoreDescription description shouldInferMappingModelAutomatically truedescription shouldMigrateStoreAutomatically truecontainer persistentStoreDescriptions description code pre You should ask question that describes your problem because my app is crashing is too vague to get useful answer,1,NULL,Enabling core data lightweight migration in Swift ios swift xcode core data swift3 pAccording to the articles have read the correct way to enable core data light weight migrations is by passing options to codeaddPersistentStoreWithType code ppre codelet mOptions NSMigratePersistentStoresAutomaticallyOption true NSInferMappingModelAutomaticallyOption true try coordinator addPersistentStoreWithType NSSQLiteStoreType configuration nil URL url options mOptions code prepBut in my codeXcode code codeSwift code project can find where codeaddPersistentStoreWithType code is called This is the only codecore data code code that was generated when created my project ppre code MARK Core Data stacklazy var persistentContainer NSPersistentContainer The persistent container for the application This implementation creates and returns container having loaded the store for the application to it This property is optional since there are legitimate error conditions that could cause the creation of the store to fail let container NSPersistentContainer name Habits container loadPersistentStores completionHandler storeDescription error in if let error error as NSError Replace this implementation with code to handle the error appropriately fatalError causes the application to generate crash log and terminate You should not use this function in shipping application although it may be useful during development Typical reasons for an error here include The parent directory does not exist cannot be created or disallows writing The persistent store is not accessible due to permissions or data protection when the device is locked The device is out of space The store could not be migrated to the current model version Check the error message to determine what the actual problem was fatalError Unresolved error error error userInfo return container MARK Core Data Saving supportfunc saveContext let context persistentContainer viewContext if context hasChanges do try context save catch Replace this implementation with code to handle the error appropriately fatalError causes the application to generate crash log and terminate You should not use this function in shipping application although it may be useful during development let nserror error as NSError fatalError Unresolved error nserror nserror userInfo code prep strongHow do enable lightweight migrations in Xcode using Swift strong pYou do it using codeNSPersistentStoreDescription code which is where all those options moved to in the Swift updates Do this before the call to codeloadPersistentStores code ppre codelet description NSPersistentStoreDescription description shouldInferMappingModelAutomatically truedescription shouldMigrateStoreAutomatically truecontainer persistentStoreDescriptions description code pre 77175,80564,914922,Autobiographer Informed Editor,NULL,NULL,0,NULL,NULL 77176,695273,1284794,NULL,NULL,NULL,0,NULL,NULL 77177,143808,1167846,Yearling,NULL,NULL,0,NULL,NULL 77178,99546,227878,Caucus Caucus Nice Answer,NULL,NULL,0,NULL,NULL 77179,28155,158557,Nice Answer Notable Question Good Question Nice Answer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77180,626115,1165571,NULL,NULL,NULL,0,NULL,NULL 77181,616305,1048871,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77182,1423507,902165,NULL,NULL,NULL,0,NULL,NULL 77183,5499645,620213,Custodian Yearling Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 77184,1212938,620213,Custodian Yearling Revival Caucus Yearling,NULL,NULL,0,NULL,NULL 77185,7134748,357898,Supporter,NULL,NULL,0,NULL,NULL 77186,290557,856565,Necromancer Custodian Citizen Patrol Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77187,373098,1017368,Notable Question,NULL,NULL,0,NULL,NULL 77188,265319,393575,NULL,NULL,NULL,0,NULL,NULL 77189,141257,599194,Popular Question Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 77190,514422,567016,Teacher Revival Supporter Nice Question Editor Critic Scholar Yearling Necromancer,NULL,NULL,0,NULL,NULL 77191,10565,567016,Teacher Revival Supporter Nice Question Editor Critic Scholar Yearling Necromancer,NULL,NULL,0,NULL,NULL 77192,1507700,1376015,NULL,NULL,NULL,0,NULL,NULL 77193,1476429,807078,NULL,NULL,NULL,0,NULL,NULL 77194,111398,807078,NULL,NULL,NULL,0,NULL,NULL 77195,199391,1198330,NULL,NULL,NULL,0,NULL,NULL 77196,52937,639491,Revival Excavator Announcer Popular Question,NULL,NULL,0,NULL,NULL 77197,345306,1499255,NULL,NULL,NULL,0,NULL,NULL 77198,74655,87702,Nice Answer Yearling Yearling Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 77199,668472,661730,NULL,NULL,NULL,0,NULL,NULL 77200,226761,926516,NULL,NULL,NULL,0,NULL,NULL 77201,329654,1068812,NULL,NULL,NULL,0,NULL,NULL 77202,203142,561598,NULL,NULL,NULL,0,NULL,NULL 77203,121353,1085345,Teacher Editor Scholar Student,NULL,NULL,0,NULL,NULL 77204,1107493,1187761,NULL,NULL,NULL,0,NULL,NULL 77205,210690,573467,NULL,NULL,NULL,0,NULL,NULL 77206,396947,1400882,NULL,NULL,NULL,0,NULL,NULL 77207,232120,468449,NULL,NULL,NULL,0,NULL,NULL 77208,758422,1340245,NULL,NULL,NULL,0,NULL,NULL 77209,2368146,1384148,NULL,NULL,NULL,0,NULL,NULL 77210,46340,1083120,Yearling,NULL,NULL,0,NULL,NULL 77211,2722,75073,Good Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 77212,113553,270942,NULL,NULL,NULL,0,NULL,NULL 77213,385137,1224424,Supporter,NULL,NULL,0,NULL,NULL 77214,867770,1390635,NULL,NULL,NULL,0,NULL,NULL 77215,1263288,412554,Nice Question Critic Famous Question,NULL,NULL,0,NULL,NULL 77216,167836,1202397,Yearling,NULL,NULL,0,NULL,NULL 77217,319473,599922,Yearling Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 77218,161101,904711,Popular Question Informed,NULL,NULL,0,NULL,NULL 77219,188190,890750,Caucus Informed Revival Tumbleweed Curious Caucus Yearling Yearling Yearling Nice Answer Enlightened Great Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 77220,73533,52233,Yearling Nice Answer Nice Answer Nice Answer php Nice Answer Guru Yearling Notable Question Great Answer Good Answer Great Answer Caucus Yearling Caucus Nice Answer Good Answer Custodian Custodian,NULL,NULL,0,NULL,NULL 77221,718193,1352424,NULL,NULL,NULL,0,NULL,NULL 77222,9076,1013997,NULL,NULL,NULL,0,NULL,NULL 77223,254584,264803,NULL,NULL,NULL,0,NULL,NULL 77224,3997309,1248870,Yearling Great Answer Popular Question Yearling Yearling Famous Question,NULL,NULL,0,NULL,NULL 77225,141420,621975,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 77226,734872,945808,Yearling Good Answer Yearling Yearling Popular Question Nice Answer Enlightened Popular Question Announcer Yearling Announcer Necromancer Good Answer Citizen Patrol,NULL,NULL,0,NULL,NULL 77227,142184,911164,Good Question Nice Question Notable Question Notable Question Great Question Popular Question Yearling Nice Answer Favorite Question Popular Question Notable Question Popular Question Necromancer Notable Question Caucus Popular Question Popular Question Popular Question Nice Question Yearling Notable Question Autobiographer Famous Question Popular Question Famous Question Good Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77228,359828,914414,Curious Notable Question,NULL,NULL,0,NULL,NULL 77229,473399,446755,Autobiographer Teacher Supporter Commentator Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77230,195706,122830,Famous Question Yearling,NULL,NULL,0,NULL,NULL 77231,18499,295416,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 77232,2043,291314,NULL,NULL,NULL,0,NULL,NULL 77233,1374517,1476239,Yearling,NULL,NULL,0,NULL,NULL 77234,1758572,498575,Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 77235,429927,498575,Citizen Patrol Popular Question,NULL,NULL,0,NULL,NULL 77236,500464,551457,Notable Question Commentator Yearling Curious Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77237,637265,233019,NULL,NULL,NULL,0,NULL,NULL 77238,828002,457636,NULL,NULL,NULL,0,NULL,NULL 77239,527816,502640,NULL,NULL,NULL,0,NULL,NULL 77240,2503722,105456,Student Scholar Necromancer,NULL,NULL,0,NULL,NULL 77241,90009,105456,Student Scholar Necromancer,NULL,NULL,0,NULL,NULL 77242,1512701,427387,Tenacious Good Question Quorum Custodian Custodian Custodian Nice Question Civic Duty Yearling Informed Autobiographer Explainer Notable Question Popular Question Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 77243,664601,1148473,NULL,NULL,NULL,0,NULL,NULL 77244,114298,1291979,NULL,NULL,NULL,0,NULL,NULL 77245,172440,649039,Good Question,NULL,NULL,0,NULL,NULL 77246,6830385,1040639,NULL,NULL,NULL,0,NULL,NULL 77247,339567,1509082,Necromancer Yearling Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Nice Answer Student Good Answer javascript Custodian Guru Yearling,NULL,NULL,0,NULL,NULL 77248,43262,185140,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 77249,96087,1489655,Yearling Great Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 77250,3172687,1304284,NULL,NULL,NULL,0,NULL,NULL 77251,758973,1304284,NULL,NULL,NULL,0,NULL,NULL 77252,787142,1096391,Tumbleweed Self-Learner Yearling Commentator Necromancer,NULL,NULL,0,NULL,NULL 77253,107488,1218605,Yearling Nice Answer Enlightened Revival Announcer Announcer Yearling Nice Answer Necromancer Yearling Caucus Announcer,NULL,NULL,0,NULL,NULL 77254,2721,372787,NULL,NULL,NULL,0,NULL,NULL 77255,380851,254162,NULL,NULL,NULL,0,NULL,NULL 77256,706723,573825,NULL,NULL,NULL,0,NULL,NULL 77257,168132,396746,Good Answer Nice Answer Notable Question topshelf Nice Answer Enlightened Yearling .net Revival Guru Nice Question Good Answer Curious Yearling Famous Question Documentation User Nice Answer Enlightened Tumbleweed Caucus Announcer Yearling Good Question,NULL,NULL,0,NULL,NULL 77258,412344,766741,NULL,NULL,NULL,0,NULL,NULL 77259,8228186,766741,NULL,NULL,NULL,0,NULL,NULL 77260,196891,1335044,Enlightened Yearling,NULL,NULL,0,NULL,NULL 77261,13129,1436347,NULL,NULL,NULL,0,NULL,NULL 77262,352474,910578,NULL,NULL,NULL,0,NULL,NULL 77263,518703,291180,Famous Question Disciplined Popular Question Good Question Yearling Famous Question Nice Answer Enlightened Nice Answer Popular Question Notable Question Announcer Yearling Popular Question Announcer Announcer Announcer Nice Question Good Answer Nice Answer Enlightened Notable Question Nice Answer Nice Answer node.js Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 77264,449018,547785,Nice Question Teacher,NULL,NULL,0,NULL,NULL 77265,925366,1487235,NULL,NULL,NULL,0,NULL,NULL 77266,513796,908499,Notable Question,NULL,NULL,0,NULL,NULL 77267,204669,822245,Famous Question Popular Question Critic Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 77268,441956,1561210,NULL,NULL,NULL,0,NULL,NULL 77269,103346,303031,NULL,NULL,NULL,0,NULL,NULL 77270,182468,868465,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77271,3392376,262553,Autobiographer,NULL,NULL,0,NULL,NULL 77272,1350708,1336963,NULL,NULL,NULL,0,NULL,NULL 77273,347466,222185,Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 77274,395623,519265,NULL,NULL,NULL,0,NULL,NULL 77275,4141,635004,Necromancer,NULL,NULL,0,NULL,NULL 77276,6552362,172214,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 77277,126082,172214,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 77278,259664,73397,Yearling,NULL,NULL,0,NULL,NULL 77279,146404,334519,Announcer Enlightened Good Answer Nice Question Good Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Guru Nice Answer Enlightened Nice Answer Announcer Necromancer Good Answer Announcer Nice Answer Enlightened Announcer Booster Nice Answer Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Announcer Announcer Nice Answer Nice Answer Guru Announcer Nice Answer Enlightened Necromancer Guru Announcer Announcer Nice Answer Enlightened Announcer Yearling scala-collections Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Enlightened Booster Nice Answer Populist Nice Answer Enlightened Announcer Nice Answer Enlightened Guru Good Question Necromancer Nice Answer Nice Answer Enlightened Notable Question Good Answer Nice Answer Good Answer Good Answer Good Question Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Enlightened Nice Answer Enlightened Enlightened Good Answer Announcer Nice Answer Enlightened Nice Question Announcer Nice Answer Enlightened Caucus Announcer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Guru Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Announcer Good Answer Announcer Announcer Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Announcer Nice Answer Nice Answer Enlightened Announcer Announcer Enlightened Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Enlightened Announcer Good Answer Announcer Announcer Announcer Nice Answer Nice Answer Announcer Nice Answer Nice Question Good Answer Announcer Nice Answer Announcer Nice Answer Nice Answer Enlightened Yearling Nice Answer Announcer Announcer Announcer Nice Answer Enlightened Announcer Good Answer Nice Answer Nice Answer Announcer Nice Answer Enlightened Caucus Nice Question Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Answer Enlightened Announcer Nice Answer Nice Answer Announcer Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Documentation User Notable Question Announcer Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Announcer Nice Answer Good Answer Announcer Announcer Necromancer Announcer Nice Answer Enlightened Announcer Announcer Announcer Announcer Nice Answer Notable Question Nice Answer Guru Announcer Announcer Nice Answer Enlightened Caucus Good Answer Announcer Good Answer Good Answer Nice Answer Nice Question circe Nice Answer Nice Answer Nice Answer Enlightened Notable Question Announcer Good Answer Guru Nice Answer Enlightened Nice Question Yearling Nice Answer Enlightened Nice Answer Good Answer Good Question Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Notable Question Nice Question Good Answer Announcer Great Answer Great Answer Nice Answer Enlightened Nice Question Popular Question Nice Answer Nice Answer Enlightened Good Answer Nice Question Announcer Good Answer Good Answer Popular Question Nice Answer Enlightened Announcer Nice Answer Nice Answer,NULL,href https github com travisbrown circe circe does with automatic codec derivation supported by href https github com milessabin shapeless Shapeless Note that unlike json4s case class decoding there no runtime reflection happening here ppre codecase class Foo Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int import io circe generic auto io circe jawn decodeval json 10 11 12 13 14 15 16 17 18 19 20 21 22 23 val result cats data Xor io circe Error Foo decode Foo json code prepHere minimal codebuild sbt code file ppre codescalaVersion 11 addCompilerPlugin org scalamacros paradise M5 cross CrossVersion full libraryDependencies Seq io circe circe core io circe circe generic io circe circe jawn code prepThe upcoming release currently available as snapshot includes lot of improvements to generic derivation but for simple example like this the behavior is the same Sorry for the long delay in responding but the failure is legitimate— Entities is required in your Users case class but in your example JSON it missing in at least one case Making the Entities member optional in Users fixes the issue,1,NULL,spray json failing for Seq of Eithers json scala covariance spray json pNot sure this is bug but the following demo fails on the final cases ppre codeimport spray json import DefaultJsonProtocol object SprayTest toJson toJson Left Either Int String toJson Right Either Int String toJson Seq toJson Seq toJson Seq Left Right toJson Seq Left Right toJson seqFormat eitherFormat IntJsonFormat StringJsonFormat code prepSo all the building blocks appear to work but the composition of the format for codeSeq code and codeEither code fails even if try to spoon feed it ppI see the following errors ppre code error SprayTest scala 11 Cannot find JsonWriter or JsonFormat type class for Seq Product with Serializable with scala util Either Int String error Seq Left Right toJson error error SprayTest scala 12 type mismatch error found spray json DefaultJsonProtocol JF Either Int String error which expands to spray json JsonFormat Either Int String error required spray json JsonFormat Product with Serializable with scala util Either Int String error Note Either Int String gt Product with Serializable with scala util Either Int String and spray json DefaultJsonProtocol JF Either Int String lt spray json JsonFormat Either Int String but trait JsonFormat is invariant in type error You may wish to define as instead SLS error Seq Left Right toJson seqFormat eitherFormat IntJsonFormat StringJsonFormat code prepAny idea what gives pThis is one of the most annoying things about codeEither code—the codeLeft code and codeRight code constructors both extend codeProduct code and codeSerializable code but codeEither code itself doesn which leads to awful inferred types ppre codescala gt Seq Left Right res0 Seq Product with Serializable with scala util Either Int String List Left Right code prepBecause codeJsonFormat code is invariant in its type parameter the fact that you have an instance for codeA code doesn mean you have an instance for codeProduct with Serializable with code In your case specifically there is actually an instance for codeEither Int String code but the extra garbage in the inferred type means the compiler can find it ppA similar thing happens if you don have codeRight code in the sequence ppre codescala gt Seq Left Left toJson lt console gt 18 error Cannot find JsonWriter or JsonFormat type class for Seq scala util Left Int Nothing Seq Left Left toJson code prepYou can fix both problems by providing type instead of using the inferred one ppre codescala gt val xs Seq Either Int String Seq Left Right xs Seq Either Int String List Left Right scala gt xs toJsonres1 spray json JsValue code prepIn many cases this isn an issue since you ll often get your codeEither code values from methods that explicitly return an codeEither code instead of using codeLeft code and codeRight code directly in ways that lead to this problem ppAs footnote this is why you should always have your root sealed trait or sealed class extend codeProduct with Serializable code when you re defining your own ADTs We all be lot better off if the standard library designers had followed that advice Circe instances for encoding decoding sealed trait instances of arity scala circe pI using sealed traits as enums for exhaustive pattern matching In cases where have case objects instead of case classes extending my trait like to encode and decode via href http circe io Circe as just plain string ppFor example ppre codesealed trait Statecase object On extends Statecase object Off extends Stateval State State Offa asJson noSpaces trying for Off decode State On should be State On code prepI understand that this will be configurable in but can anyone help me write something to tide me over until that released pTo highlight the problem—assuming this ADT ppre codesealed trait Statecase object On extends Statecase object Off extends State code prepcirce generic derivation will currently produce the following encodings ppre codescala gt import io circe generic auto io circe syntax import io circe generic auto import io circe syntax scala gt On asJson noSpacesres0 String scala gt On State asJson noSpacesres1 String On code prepThis is because the generic derivation mechanism is built on Shapeless codeLabelledGeneric code which represents case objects as empty codeHList codes This will probably always be the default behavior since it clean simple and consistent but it not always what you want as you note the href https meta plasm us posts 2016 01 14 configuring generic derivation rel noreferrer configuration options that are coming soon will support alternatives ppYou can override this behavior by providing your own generic instances for case objects ppre codeimport io circe Encoderimport shapeless Generic HNil implicit def encodeCaseObject lt Product implicit gen Generic Aux HNil Encoder Encoder String contramap productPrefix code prepThis says if the generic representation of codeA code is an empty codeHList code encode it as its name as JSON string And it works as we expect for case objects that are statically typed as themselves ppre codescala gt On asJson noSpacesres2 String On code prepWhen the value is statically typed as the base type the story is little different ppre codescala gt On State asJson noSpacesres3 String On On code prepWe get generically derived instance for codeState code and it respects our manually defined generic instance for case objects but it still wraps them in an object This makes some sense if you think about it—the ADT emcould em contain case classes which can only reasonably be represented as JSON object and so the object wrapper with constructor name key approach is arguably the most reasonable thing to do ppIt not the only thing we can do though since we emdo em know statically whether the ADT contains case classes or only case objects First we need new type class that witnesses that an ADT is made up only of case objects note that assuming fresh start here but it should be possible to make this work alongside generic derivation ppre codeimport shapeless import shapeless labelled FieldType field trait IsEnum lt Coproduct def to String def from String Option object IsEnum implicit val cnilIsEnum IsEnum CNil new IsEnum CNil def to CNil String sys error Impossible def from String Option CNil None implicit def cconsIsEnum lt Symbol lt Product lt Coproduct implicit witK Witness Aux witH Witness Aux gen Generic Aux HNil tie IsEnum IsEnum FieldType new IsEnum FieldType def to FieldType String match case Inl gt witK value name case Inr gt tie to def from String Option FieldType if witK value name Some Inl field witH value else tie from map Inr code prepAnd then our generic codeEncoder code instances ppre codeimport io circe Encoderimplicit def encodeEnum lt Coproduct implicit gen LabelledGeneric Aux rie IsEnum Encoder Encoder String contramap gt rie to gen to code prepMight as well go ahead and write the decoder too ppre codeimport cats data Xor io circe Decoderimplicit def decodeEnum lt Coproduct implicit gen LabelledGeneric Aux rie IsEnum Decoder Decoder String emap gt Xor fromOption rie from map gen from enum code prepAnd then ppre codescala gt import io circe jawn decodeimport io circe jawn decodescala gt import io circe syntax import io circe syntax scala gt On State asJson noSpacesres0 String On scala gt Off State asJson noSpacesres1 String Off scala gt decode State On res2 cats data Xor io circe Error State Right On scala gt decode State Off res3 cats data Xor io circe Error State Right Off code prepWhich is what we wanted 77280,3388620,548344,NULL,NULL,NULL,0,NULL,NULL 77281,2625206,1232059,Popular Question Famous Question Curious Critic Popular Question Custodian Popular Question Famous Question,NULL,NULL,0,NULL,NULL 77282,42045,560215,Yearling Curious Guru Good Answer Good Answer Popular Question Nice Answer Nice Answer Nice Answer Announcer ruby-on-rails-4 Guru Nice Answer Revival Caucus Nice Answer Necromancer Nice Question Yearling Guru Census Nice Answer rspec Nice Answer Enlightened Documentation User Popular Question Good Answer php ruby Yearling Census Guru Good Answer Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 77283,6731505,560215,Yearling Curious Guru Good Answer Good Answer Popular Question Nice Answer Nice Answer Nice Answer Announcer ruby-on-rails-4 Guru Nice Answer Revival Caucus Nice Answer Necromancer Nice Question Yearling Guru Census Nice Answer rspec Nice Answer Enlightened Documentation User Popular Question Good Answer php ruby Yearling Census Guru Good Answer Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 77284,368834,1320623,NULL,NULL,NULL,0,NULL,NULL 77285,701227,112445,Famous Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 77286,226703,565027,Popular Question Famous Question Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77287,285253,490733,Popular Question,NULL,NULL,0,NULL,NULL 77288,185986,326753,NULL,NULL,NULL,0,NULL,NULL 77289,3178154,828678,NULL,NULL,NULL,0,NULL,NULL 77290,252183,828678,NULL,NULL,NULL,0,NULL,NULL 77291,326435,1310769,NULL,NULL,NULL,0,NULL,NULL 77292,312531,678050,Revival,NULL,NULL,0,NULL,NULL 77293,155846,690680,Popular Question,NULL,NULL,0,NULL,NULL 77294,1359034,993316,NULL,NULL,NULL,0,NULL,NULL 77295,72858,138513,Quorum Popular Question Popular Question Popular Question Socratic Popular Question Nice Question Notable Question Nice Question Favorite Question Popular Question Notable Question Notable Question Nice Question Yearling Good Answer Notable Question Great Question Popular Question Popular Question Caucus Necromancer Popular Question Nice Question Nice Question Popular Question Notable Question Cleanup Popular Question Good Question Popular Question Yearling Popular Question Caucus Popular Question java Notable Question Popular Question Popular Question Necromancer Popular Question Caucus Famous Question Notable Question Popular Question Popular Question Notable Question Yearling Popular Question Popular Question Famous Question Notable Question Popular Question,NULL,pJDK is not available as portable ZIP file unfortunately However you can follow these steps pulliCreate working JDK directory codeC JDK code in this case lili href http www oracle com technetwork java javase downloads jdk8 downloads 2133151 html rel noreferrer Download latest version of JDK from Oracle for example codejdk 7u7 windows x64 exe code lili href http www zip org download html rel noreferrer Download and install Zip or download href https portableapps com apps utilities zip portable rel noreferrer Zip portable version if you are not administrator liliWith Zip extract all the files from codejdk XuXX windows x64 exe code into the directory codeC JDK code liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 code lili codeextrac32 111 code li ul liliUnpack codeC JDK rsrc 1033 JAVA CAB10 tools zip code with zip liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 tools code lili codefor in pack do bin unpack200 dx px nx jar code this will convert all code pack code files into code jar code files li ul liliCopy all contents of codeC JDK rsrc 1033 JAVA CAB10 tools code where you want your JDK to be liliSetup codeJAVA HOME code and codePATH code manually to point to your JDK dir and its BIN subdirectory li ul don have an RCDATA directory in rsrc after extracting the same file just now pJDK is not available as portable ZIP file unfortunately However you can follow these steps pulliCreate working JDK directory codeC JDK code in this case lili href http www oracle com technetwork java javase downloads jdk8 downloads 2133151 html rel noreferrer Download latest version of JDK from Oracle for example codejdk 7u7 windows x64 exe code lili href http www zip org download html rel noreferrer Download and install Zip or download href https portableapps com apps utilities zip portable rel noreferrer Zip portable version if you are not administrator liliWith Zip extract all the files from codejdk XuXX windows x64 exe code into the directory codeC JDK code liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 code lili codeextrac32 111 code li ul liliUnpack codeC JDK rsrc 1033 JAVA CAB10 tools zip code with zip liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 tools code lili codefor in pack do bin unpack200 dx px nx jar code this will convert all code pack code files into code jar code files li ul liliCopy all contents of codeC JDK rsrc 1033 JAVA CAB10 tools code where you want your JDK to be liliSetup codeJAVA HOME code and codePATH code manually to point to your JDK dir and its BIN subdirectory li ul downloaded that exact file today and get rsrc 1033 JAVA CAB10 with no RCDATA in the path pJDK is not available as portable ZIP file unfortunately However you can follow these steps pulliCreate working JDK directory codeC JDK code in this case lili href http www oracle com technetwork java javase downloads jdk8 downloads 2133151 html rel noreferrer Download latest version of JDK from Oracle for example codejdk 7u7 windows x64 exe code lili href http www zip org download html rel noreferrer Download and install Zip or download href https portableapps com apps utilities zip portable rel noreferrer Zip portable version if you are not administrator liliWith Zip extract all the files from codejdk XuXX windows x64 exe code into the directory codeC JDK code liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 code lili codeextrac32 111 code li ul liliUnpack codeC JDK rsrc 1033 JAVA CAB10 tools zip code with zip liliExecute the following commands in codecmd exe code ulli codecd JDK rsrc 1033 JAVA CAB10 tools code lili codefor in pack do bin unpack200 dx px nx jar code this will convert all code pack code files into code jar code files li ul liliCopy all contents of codeC JDK rsrc 1033 JAVA CAB10 tools code where you want your JDK to be liliSetup codeJAVA HOME code and codePATH code manually to point to your JDK dir and its BIN subdirectory li ul Maybe difference between Windows and macOS builds of zip Why is Double MIN VALUE in not negative java numbers floating point pCan anyone shed some light on why codeDouble MIN VALUE code is not actually the minimum value that Doubles can take It is positive value and Double can of course be negative ppI understand why it useful number but it seems very unintuitive name especially when compared to codeInteger MIN VALUE code Calling it codeDouble SMALLEST POSITIVE code or codeMIN INCREMENT code or similar would have clearer semantics ppAlso what is the minimum value that Doubles can take Is it code Double MAX VALUE code The docs don seem to say guessing because it written by the same geniuses who called method writeBytes which takes String How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this had look at params merge at least and it doesn Maybe link to does in which case could potentially call this Rails fault don really know This is exactly why stack trace would be useful would rather not have to dig through library sources to figure out who broke something How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this Debugger suggests that link to calls it but stepped in to investigate and it goes pretty deep managed to verify that url for calls it but can figure out where So should my view be that they shouldn be doing that in their own library mean have passed Parameters object into something that generates link from parameters It seems like it should be OK to do this How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this Then be calling the method they re telling me not to call guess can use to unsafe though pAuthor of the linked article here Here an attempt to clear up the confusion going off of answer ppIn Ruby you have to require every code rb code file in order to have its code run However notice how in Rails you never specifically require any of your models controllers or other files in the codeapp code dir Why is that That because in Rails codeapp code is in codeautoload paths code This means that when you run your rails app in development for example via coderails console code none of the models and controllers are actually required by ruby yet Rails uses special magical feature of ruby to actually wait until the code mentions constant say codeBook code and only then it would run coderequire book code which it finds in one of the codeautoload paths code This gives you faster console and server startup in development because nothing gets required when you start it only when code actually needs it ppNow this behavior is good for local development but what about production Imagine that in production your server does the same type of magical constant loading autoloading It not the end of the world really you start your server in production and people start browsing your pages slightly slower because some of the files will need to be autoloaded Yes it slower for those few initial requests while the server warms up but it not that bad Except that not the end of the story ppIf you are running on ruby if recall correctly then auto requiring files like that is not thread safe So if you are using server like puma you will run into problems Even if you aren using multi threaded server you are still probably better off having your whole application get required proactively on startup This means that in production you want every model every controller etc all fully required as you start your app and you don mind the longer startup time This is called eager loading All ruby files get eagerly loaded get it But how can you do that if your rails app doesn have single coderequire code statement That where codeeager load paths code come in Whatever you put in them all the files in all the directories underneath those paths will be required at startup in production Hope this clears it up ppIt important to note that codeeager load paths code are not active in development environment so whatever you put in them will not be eagerly required immediately in development only in production ppIt also important to note that just putting something into codeautoload paths code will not make it eager loaded in production Unfortunately You have to explicitly put it into codeeager load paths code as well ppAnother interesting quirk is that in every rails app all directories under codeapp code are automatically in both codeautoload paths code and codeeager load paths code meaning that adding directory there requires no further actions Is it true that everything under app is eagerly loaded Because have an active question http stackoverflow com questions 39695129 where our production server isn finding classes in app lib which seems to me should fall under this app pattern Is there any way to verify what paths Rails is actually using once it running already noticed that the console seems to find my class even in production mode,1,How do resolve the deprecation warning Method to hash is deprecated and will be removed in Rails ruby on rails ruby ruby on rails pI trying to update to Rails getting the following deprecation warning pblockquote pDEPRECATION WARNING Method to hash is deprecated and will be removed in Rails as codeActionController Parameters code no longer inherits from hash Using this deprecated behavior exposes potential security problems If you continue to use this method you may be creating security vulnerability in your app that can be exploited Instead consider using one of these documented methods which are not deprecated href http api rubyonrails org v5 classes ActionController Parameters html rel noreferrer http api rubyonrails org v5 classes ActionController Parameters html called from column header at Data Projects portal trunk app helpers application helper rb 114 blockquotepThe line the warning is on looks like this ppre code link to name action action name params params merge order key page nil title Sort by this field code prepAs you can see not calling codeto hash code Maybe Rails is Maybe some other gem is have no way to tell because they didn think it was worth providing stack trace Pro tip it usually emis em worth providing stack trace ppSo anyway followed the link planning to find replacement and href http api rubyonrails org v5 classes ActionController Parameters html method merge rel noreferrer the codemerge code method does not emappear em to be deprecated but maybe they simply forgot to document deprecated status so can really be sure ppSo what am supposed to do to clear this,NULL 77296,98717,399355,NULL,NULL,,0,, 77297,785530,118561,Popular Question Yearling Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 77298,62724,118561,Popular Question Yearling Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 77299,482892,614825,Necromancer Yearling Enthusiast Nice Answer Revival Nice Answer Favorite Question Nice Answer Custodian Good Answer Good Question Yearling Nice Answer Popular Question Caucus Yearling Caucus Constituent Necromancer Curious Tag Editor Good Answer Notable Question Necromancer Taxonomist,NULL,Using bitwise OR to floor number javascript floating point bit manipulation pA colleague of mine stumbled upon method to floor float numbers using bitwise or ppre codevar 13 13 code prepWe were talking about it and wondering few things pulliHow does it work Our theory was that using such an operator casts the number to an integer thus removing the fractional part liliDoes it have any advantages over doing codeMath floor code Maybe it bit faster pun not intended liliDoes it have any disadvantages Maybe it doesn work in some cases Clarity is an obvious one since we had to figure it out and well writting this question li ulpThanks it not rounding either just like answer said it is casting to an int The correct way to state this when seeing is simply truncating to int IMHO,0,NULL,NULL 77300,79015,1148662,NULL,NULL,NULL,0,NULL,NULL 77301,405637,559584,NULL,NULL,NULL,0,NULL,NULL 77302,100497,834466,NULL,NULL,NULL,0,NULL,NULL 77303,106019,901340,NULL,NULL,NULL,0,NULL,NULL 77304,11557,1472502,NULL,NULL,NULL,0,NULL,NULL 77305,31496,426543,Notable Question,NULL,NULL,0,NULL,NULL 77306,8835,122384,NULL,NULL,NULL,0,NULL,NULL 77307,178598,913018,Popular Question,NULL,NULL,0,NULL,NULL 77308,615700,384834,Commentator Editor,NULL,NULL,0,NULL,NULL 77309,628088,549808,Notable Question Popular Question Popular Question Nice Question Notable Question Self-Learner Caucus Popular Question,NULL,NULL,0,NULL,NULL 77310,52919,131589,NULL,NULL,NULL,0,NULL,NULL 77311,102443,1546662,Teacher Editor Organizer Commentator Yearling,NULL,NULL,0,NULL,NULL 77312,446319,1255994,NULL,NULL,NULL,0,NULL,NULL 77313,45648,110840,Yearling Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 77314,298837,801683,Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77315,1058072,269732,NULL,NULL,NULL,0,NULL,NULL 77316,1404010,610035,NULL,NULL,NULL,0,NULL,NULL 77317,31284,591166,Yearling Great Answer Revival Guru Nice Answer Enlightened Nice Question Yearling Critic Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 77318,336179,785541,Necromancer Nice Answer Announcer Nice Answer Nice Answer Enlightened Good Answer Good Answer Guru Nice Answer Good Answer Guru Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Documentation Pioneer Nice Answer Enlightened Guru html Good Answer Necromancer python Caucus Constituent Good Answer Nice Answer Great Answer Nice Answer Enlightened Nice Answer Yearling Caucus Constituent Nice Answer Great Answer Documentation User Nice Answer Guru Census Good Answer css jquery Caucus Constituent Nice Answer Revival Nice Answer Yearling Announcer firefox Nice Answer Enlightened Announcer,NULL,pWell the problem is that the variable codei code within each of your anonymous functions is bound to the same variable outside of the function ph1Classic solution Closures h1pWhat you want to do is bind the variable within each function to separate unchanging value outside of the function pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar funcs xD xD function createfunc xD return function console log My value xD xD xD for var lt xD funcs createfunc xD xD xD for var lt xD funcs and now let run each one to see xD code pre xD div xD div xD ppSince there is no block scope in JavaScript only function scope by wrapping the function creation in new function you ensure that the value of remains as you intended phrh12015 Solution forEach h1pWith the relatively widespread availability of the codeArray prototype forEach code function in 2015 it worth noting that in those situations involving iteration primarily over an array of values code forEach code provides clean natural way to get distinct closure for every iteration That is assuming you ve got some sort of array containing values DOM references objects whatever and the problem arises of setting up callbacks specific to each element you can do this ppre codevar someArray whatever someArray forEach function arrayElement code code code for this one element someAsynchronousFunction arrayElement function arrayElement doSomething code prepThe idea is that each invocation of the callback function used with the code forEach code loop will be its own closure The parameter passed in to that handler is the array element specific to that particular step of the iteration If it used in an asynchronous callback it won collide with any of the other callbacks established at other steps of the iteration ppIf you happen to be working in jQuery the code each code function gives you similar capability phrh1ES6 solution codelet code h1pECMAScript ES6 the newest version of JavaScript is now starting to be implemented in many evergreen browsers and backend systems There are also transpilers like href http babeljs io rel noreferrer Babel that will convert ES6 to ES5 to allow usage of new features on older systems ppES6 introduces new codelet code and codeconst code keywords that are scoped differently than codevar code based variables For example in loop with codelet code based index each iteration through the loop will have new value of codei code where each value is scoped inside the loop so your code would work as you expect There are many resources but recommend href http www 2ality com 2015 02 es6 scoping html rel noreferrer 2ality block scoping post as great source of information ppre codefor let lt funcs function console log My value code prepBeware though that IE9 IE11 and Edge prior to Edge 14 support codelet code but get the above wrong they don create new codei code each time so all the functions above would log like they would if we used codevar code Edge 14 finally gets it right This question is about creating instances of particular function bound to specific parameters this is exactly what Function bind is good for The loop merely demonstrates the principle it simply about binding variables that can change after the fact In an actual loop you could use let statement by now of course but support for it is only now becoming sufficient to be used unfortunately pRemove these two lines ppre codexmlHttp setRequestHeader Content length params length xmlHttp setRequestHeader Connection close code prepXMLHttpRequest isn allowed to set these headers they are being set automatically by the browser The reason is that by manipulating these headers you might be able to trick the server into accepting second request through the same connection one that wouldn go through the usual security checks that would be security vulnerability in the browser You don These two headers are set automatically by the browser and cannot be changed pMost answers given here have huge disadvantage if the string you are trying to convert isn trusted then you will end up with href https developer mozilla org en US docs Web API Element innerHTML Security considerations rel noreferrer Cross Site Scripting XSS vulnerability For the function in the href https stackoverflow com 1912522 785541 accepted answer consider the following ppre codehtmlDecode lt img src dummy onerror alert xss gt code prepThe string here contains an unescaped HTML tag so instead of decoding anything the codehtmlDecode code function will actually run JavaScript code specified inside the string ppThis can be avoided by using href https developer mozilla org en US docs Web API DOMParser rel noreferrer DOMParser which is supported in href https developer mozilla org en US docs Web API DOMParser Browser compatibility rel noreferrer all modern browsers ppre codefunction htmlDecode input var doc new DOMParser parseFromString input text html return doc documentElement textContent This returns lt img src myimage jpg gt htmlDecode amp lt img src myimage jpg amp gt This returns htmlDecode lt img src dummy onerror alert xss gt code prepThis function is guaranteed to not run any JavaScript code as side effect Any HTML tags will be ignored only text content will be returned pp emCompatibility note em Parsing HTML with codeDOMParser code requires at least Chrome 30 Firefox 12 Opera 17 Internet Explorer 10 Safari or Microsoft Edge So all browsers without support are way past their EOL and as of 2017 the only ones that can still be seen in the wild occasionally are older Internet Explorer and Safari versions usually these still aren numerous enough to bother Who cares about Firefox 12 in 2016 The problematic ones are Internet Explorer up to and Safari up to If one can afford not supporting them which will hopefully be everybody soon then DOMParser is the best choice If not yes processing entities only would be an option pMost answers given here have huge disadvantage if the string you are trying to convert isn trusted then you will end up with href https developer mozilla org en US docs Web API Element innerHTML Security considerations rel noreferrer Cross Site Scripting XSS vulnerability For the function in the href https stackoverflow com 1912522 785541 accepted answer consider the following ppre codehtmlDecode lt img src dummy onerror alert xss gt code prepThe string here contains an unescaped HTML tag so instead of decoding anything the codehtmlDecode code function will actually run JavaScript code specified inside the string ppThis can be avoided by using href https developer mozilla org en US docs Web API DOMParser rel noreferrer DOMParser which is supported in href https developer mozilla org en US docs Web API DOMParser Browser compatibility rel noreferrer all modern browsers ppre codefunction htmlDecode input var doc new DOMParser parseFromString input text html return doc documentElement textContent This returns lt img src myimage jpg gt htmlDecode amp lt img src myimage jpg amp gt This returns htmlDecode lt img src dummy onerror alert xss gt code prepThis function is guaranteed to not run any JavaScript code as side effect Any HTML tags will be ignored only text content will be returned pp emCompatibility note em Parsing HTML with codeDOMParser code requires at least Chrome 30 Firefox 12 Opera 17 Internet Explorer 10 Safari or Microsoft Edge So all browsers without support are way past their EOL and as of 2017 the only ones that can still be seen in the wild occasionally are older Internet Explorer and Safari versions usually these still aren numerous enough to bother script tags not being executed isn security mechanism this rule merely avoids the tricky timing issues if setting innerHTML could run synchronous scripts as side effect Sanitizing HTML code is tricky affair and innerHTML doesn even try already because the web page might actually intend to set inline event handlers This simply isn mechanism intended for unsafe data full stop pMost answers given here have huge disadvantage if the string you are trying to convert isn trusted then you will end up with href https developer mozilla org en US docs Web API Element innerHTML Security considerations rel noreferrer Cross Site Scripting XSS vulnerability For the function in the href https stackoverflow com 1912522 785541 accepted answer consider the following ppre codehtmlDecode lt img src dummy onerror alert xss gt code prepThe string here contains an unescaped HTML tag so instead of decoding anything the codehtmlDecode code function will actually run JavaScript code specified inside the string ppThis can be avoided by using href https developer mozilla org en US docs Web API DOMParser rel noreferrer DOMParser which is supported in href https developer mozilla org en US docs Web API DOMParser Browser compatibility rel noreferrer all modern browsers ppre codefunction htmlDecode input var doc new DOMParser parseFromString input text html return doc documentElement textContent This returns lt img src myimage jpg gt htmlDecode amp lt img src myimage jpg amp gt This returns htmlDecode lt img src dummy onerror alert xss gt code prepThis function is guaranteed to not run any JavaScript code as side effect Any HTML tags will be ignored only text content will be returned pp emCompatibility note em Parsing HTML with codeDOMParser code requires at least Chrome 30 Firefox 12 Opera 17 Internet Explorer 10 Safari or Microsoft Edge So all browsers without support are way past their EOL and as of 2017 the only ones that can still be seen in the wild occasionally are older Internet Explorer and Safari versions usually these still aren numerous enough to bother Premature optimization is the root of all evil don want to make assumptions about whether and how this code will be used and don mean to encourage cargo cult programming either pMost answers given here have huge disadvantage if the string you are trying to convert isn trusted then you will end up with href https developer mozilla org en US docs Web API Element innerHTML Security considerations rel noreferrer Cross Site Scripting XSS vulnerability For the function in the href https stackoverflow com 1912522 785541 accepted answer consider the following ppre codehtmlDecode lt img src dummy onerror alert xss gt code prepThe string here contains an unescaped HTML tag so instead of decoding anything the codehtmlDecode code function will actually run JavaScript code specified inside the string ppThis can be avoided by using href https developer mozilla org en US docs Web API DOMParser rel noreferrer DOMParser which is supported in href https developer mozilla org en US docs Web API DOMParser Browser compatibility rel noreferrer all modern browsers ppre codefunction htmlDecode input var doc new DOMParser parseFromString input text html return doc documentElement textContent This returns lt img src myimage jpg gt htmlDecode amp lt img src myimage jpg amp gt This returns htmlDecode lt img src dummy onerror alert xss gt code prepThis function is guaranteed to not run any JavaScript code as side effect Any HTML tags will be ignored only text content will be returned pp emCompatibility note em Parsing HTML with codeDOMParser code requires at least Chrome 30 Firefox 12 Opera 17 Internet Explorer 10 Safari or Microsoft Edge So all browsers without support are way past their EOL and as of 2017 the only ones that can still be seen in the wild occasionally are older Internet Explorer and Safari versions usually these still aren numerous enough to bother What is newElement If it is something like textarea or script element contents are interpreted differently for those not safe either however Also there will be no alert if you run this code on about blank rather than regular webpage has something to do with the way relative URLs are resolved you have to use an absolute URL rather than dummy,0,NULL,NULL 77319,247390,285879,NULL,NULL,NULL,0,NULL,NULL 77320,972376,204786,Necromancer Custodian Caucus Yearling Tenacious Necromancer Custodian Enthusiast Yearling,NULL,NULL,0,NULL,NULL 77321,47660,79168,Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 77322,127169,890145,Famous Question,NULL,NULL,0,NULL,NULL 77323,97851,1116899,NULL,NULL,NULL,0,NULL,NULL 77324,1376673,422019,NULL,NULL,NULL,0,NULL,NULL 77325,204094,190108,Notable Question Nice Question Popular Question Nice Answer Notable Question Nice Question Famous Question Popular Question Yearling Good Question Nice Question Nice Answer Popular Question Good Answer Popular Question Yearling Famous Question Nice Answer Inquisitive Yearling,NULL,NULL,0,NULL,NULL 77326,507846,1348533,NULL,NULL,NULL,0,NULL,NULL 77327,1101152,779459,Good Answer Yearling,NULL,NULL,0,NULL,NULL 77328,281824,586621,Explainer Guru node.js Yearling Nice Answer Famous Question Necromancer Nice Answer Enlightened Tumbleweed Nice Answer Enlightened Announcer Caucus Constituent Nice Answer Yearling Great Question Revival Good Answer Announcer Announcer Caucus Nice Answer Enlightened Favorite Question Good Question Populist Yearling Nice Answer Enlightened Revival Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77329,129516,1232820,Popular Question,NULL,NULL,0,NULL,NULL 77330,98661,434081,Nice Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 77331,1227564,1000156,Famous Question,NULL,NULL,0,NULL,NULL 77332,208785,910524,NULL,NULL,NULL,0,NULL,NULL 77333,8662,358920,NULL,NULL,NULL,0,NULL,NULL 77334,139213,1155285,NULL,NULL,NULL,0,NULL,NULL 77335,166164,242797,NULL,NULL,NULL,0,NULL,NULL 77336,1005248,929862,Autobiographer Tumbleweed Revival,NULL,NULL,0,NULL,NULL 77337,71628,1072440,Yearling Commentator,NULL,NULL,0,NULL,NULL 77338,589771,123336,Necromancer Necromancer Good Question Nice Answer Nice Question Famous Question Necromancer Yearling Popular Question Necromancer Good Answer Revival Revival Necromancer Nice Question Revival Popular Question Necromancer Necromancer Nice Answer Revival Yearling Good Answer Nice Answer Notable Question Notable Question Necromancer Nice Answer Good Question Good Answer Nice Answer Revival Nice Answer Nice Answer Nice Answer Nice Question Nice Question Yearling Good Answer Famous Question,NULL,NULL,1,NULL,SSH Agent Forwarding with Ansible git ssh ansible ssh agent pI’m using Ansible and Git with ssh agent forwarding href https help github com articles using ssh agent forwarding https help github com articles using ssh agent forwarding can log into the server that am managing with Ansible and test that my connection to git is correctly configured ppre codeubuntu ssh git comHi gituser You ve successfully authenticated but GitHub does not provide shell access code prepI can also clone and update one of my repos using this account so my git configuration looks good and uses ssh forwarding when log into my server directly via ssh ppThe problem When attempt the same test shown above using the Ansible command module It fails with “Permission denied” Part of the Ansible output with verbose logging looks like this ppre codefailed xxx xxxxx com gt changed true cmd ssh git com delta 00 00 585481 end 2014 06 09 14 11 37 410907 rc 255 start 2014 06 09 14 11 36 825426 stderr Permission denied publickey code prepHere is the simple playbook that runs this command ppre code hosts webservers sudo yes remote user ubuntu tasks name Test that git ssh connection is working command ssh git com code prepThe question why does everything work correctly when manually log in via ssh and run the command but fail when the same command is run as the same user via Ansible ppI will post the answer shortly if no one else beats me to it Although am using git to demonstrate the problem it could occur with any module that depends on ssh agent forwarding It is not specific to Ansible but suspect many will first encounter the problem in this scenario pThere are some very helpful partial answers here but after running into this issue number of times think an overview would be helpful ppFirst you need to make sure that SSH agent forwarding is enabled when connecting from your client running Ansible to the target machine Even with codetransport smart code SSH agent forwarding may not be automatically enabled depending on your client SSH configuration To ensure that it is you can update your code ansible cfg code to include this section ppre code ssh connection ssh args ControlMaster auto ControlPersist 60s ControlPath tmp ansible ssh ForwardAgent yes code prepNext you ll likely have to deal with the fact that codebecome yes code and codebecome user root code will generally disable agent forwarding because the codeSSH AUTH SOCK code environment variable is reset find it shocking that href https docs ansible com ansible become html becoming an unprivileged user rel noreferrer Ansible seems to assume that people will SSH as root since that makes any useful auditing impossible There are few ways to deal with this As of Ansible the easiest approach is to preserve the whole environment when using codesudo code by specifying the code code flag ppre codebecome flags code prepHowever this can have unwanted side effects by preserving variables like codePATH code The cleanest approach is to only preserve codeSSH AUTH SOCK code by including it in codeenv keep code in your code etc sudoers code file ppre codeDefaults env keep SSH AUTH SOCK code prepTo do this with Ansible ppre code name enable SSH forwarding for sudo lineinfile dest etc sudoers insertafter Defaults env keep line Defaults env keep SSH AUTH SOCK code prepThis playbook task is little more conservative than some of the others suggested since it adds this after any other default codeenv keep code settings or at the end of the file if none are found without changing any existing codeenv keep code settings or assuming codeSSH AUTH SOCK code is already present 77339,4396707,1483664,NULL,NULL,NULL,0,NULL,NULL 77340,678107,1483664,NULL,NULL,NULL,0,NULL,NULL 77341,167906,710141,NULL,NULL,NULL,0,NULL,NULL 77342,223141,1167698,NULL,NULL,NULL,0,NULL,NULL 77343,249561,29036,Critic,NULL,NULL,0,NULL,NULL 77344,279500,1080664,NULL,NULL,NULL,0,NULL,NULL 77345,325023,118403,Popular Question Nice Answer Necromancer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 77346,144175,18107,Nice Question Popular Question Notable Question Notable Question Necromancer Yearling Famous Question Favorite Question Popular Question Nice Answer Favorite Question Popular Question Nice Answer Notable Question Yearling Great Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77347,22359,66226,Yearling Nice Question Great Question Necromancer Necromancer Popular Question Good Question Popular Question Notable Question Good Question Guru Famous Question Nice Answer Famous Question Notable Question Notable Question Famous Question Good Answer Good Answer Guru Nice Answer Nice Answer Nice Answer Good Answer Yearling Famous Question Famous Question Famous Question Popular Question Nice Question Nice Question Famous Question Nice Answer Notable Question Announcer Yearling Nice Question Great Question Good Question Guru Nice Answer,NULL,NULL,0,NULL,NULL 77348,44512,711902,Good Answer Nice Answer Nice Answer Enlightened Popular Question Nice Answer Yearling Nice Answer Enlightened Revival Popular Question Nice Answer Popular Question Nice Answer Popular Question Famous Question Famous Question Nice Answer Enlightened Good Answer Caucus Good Question Nice Question Nice Answer Popular Question Necromancer Nice Answer jquery Popular Question Yearling Popular Question Populist Good Answer Notable Question Nice Answer Good Answer Good Answer Nice Answer Popular Question Announcer Good Answer Announcer Nice Answer Guru Nice Answer Enlightened Nice Question Notable Question Necromancer Notable Question Popular Question Yearling Custodian Nice Answer Notable Question Nice Answer Notable Question Nice Question Announcer Famous Question Notable Question,NULL,pHere an extremely simple CSV parser that handles quoted fields with commas new lines and escaped double quotation marks There no splitting or RegEx It scans the input string characters at time and builds an array ppTest it at href http jsfiddle net vHKYH rel noreferrer http jsfiddle net vHKYH ppre codefunction parseCSV str var arr var quote false true means we re inside quoted field iterate over each character keep track of current row and column of the returned array for var row col lt str length var cc str nc str current character next character arr row arr row create new row if necessary arr row col arr row col create new column start with empty string if necessary If the current character is quotation mark and we re inside quoted field and the next character is also quotation mark add quotation mark to the current column and skip the next character if cc amp amp quote amp amp nc arr row col cc continue If it just one quotation mark begin end quoted field if cc quote quote continue If it comma and we re not in quoted field move on to the next column if cc amp amp quote col continue If it newline CRLF and we re not in quoted field skip the next character and move on to the next row and move to column of that new row if cc amp amp nc amp amp quote row col continue If it newline LF or CR and we re not in quoted field move on to the next row and move to column of that new row if cc amp amp quote row col continue if cc amp amp quote row col continue Otherwise append the current character to the current column arr row col cc return arr code pre Another user postelnicu helpfully published companion function to turn the result into dictionary object http jsfiddle net 8t2po6wh,0,NULL,NULL 77349,86491,886160,NULL,NULL,NULL,0,NULL,NULL 77350,475965,1538357,Critic,NULL,NULL,0,NULL,NULL 77351,7623,65311,Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Famous Question Caucus Popular Question Notable Question Popular Question Notable Question Nice Question,NULL,NULL,1,Ensure Kubernetes Deployment has completed and all pods are updated and available bash kubernetes href http kubernetes io docs user guide deployments the status of deployment rel noreferrer The status of deployment indicates that you can look at deployments codeobservedGeneration code vs codegeneration code and when codeobservedGeneration gt generation code then the deployment succeeded That fine but interested in knowing when the new container is actually running in emall em of my pods so that if hit service know for sure hitting server that represents the latest deployed container ppAnother tip from K8S Slack member ppre codekubectl get deployments grep lt deployment name gt sed cut code prepI deployed bad image resulting in codeErrImagePull code yet the deployment still reported the correct number of up date date replicas available replicas was,NULL 77352,585886,990379,Autobiographer Yearling,NULL,NULL,0,NULL,NULL 77353,25257,712469,NULL,NULL,NULL,0,NULL,NULL 77354,4031622,712469,NULL,NULL,NULL,0,NULL,NULL 77355,403502,864032,NULL,NULL,NULL,0,NULL,NULL 77356,912961,1487014,Famous Question Notable Question Popular Question Self-Learner Popular Question Yearling Popular Question Yearling Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 77357,1566992,1178746,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 77358,584577,419977,NULL,NULL,NULL,0,NULL,NULL 77359,7734,719841,Popular Question Popular Question Popular Question Yearling Nice Question Caucus Popular Question Notable Question Nice Question Good Question Popular Question Popular Question Notable Question Yearling Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77360,69478,190988,Nice Answer Good Answer Yearling Organizer Nice Answer Great Answer Yearling Taxonomist aws-sdk Nice Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 77361,1351062,1015180,Nice Question,NULL,NULL,0,NULL,NULL 77362,905025,75093,NULL,NULL,NULL,0,NULL,NULL 77363,7160054,1349118,NULL,NULL,NULL,0,NULL,NULL 77364,893722,1349118,NULL,NULL,NULL,0,NULL,NULL 77365,184505,1356532,NULL,NULL,NULL,0,NULL,NULL 77366,93466,99015,Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77367,566644,272079,Promoter Nice Question Revival Necromancer Necromancer Necromancer Yearling Nice Question Revival Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77368,70857,395946,NULL,NULL,NULL,0,NULL,NULL 77369,1983360,1028229,NULL,NULL,NULL,0,NULL,NULL 77370,462599,953104,NULL,NULL,NULL,0,NULL,NULL 77371,185354,162424,NULL,NULL,NULL,0,NULL,NULL 77372,71584,146807,Popular Question Yearling Good Question Nice Question Notable Question Favorite Question Yearling Great Question Yearling,NULL,NULL,0,NULL,NULL 77373,323486,902136,Yearling Yearling Stellar Question Yearling Revival,NULL,NULL,0,NULL,NULL 77374,1463086,1051738,NULL,NULL,NULL,0,NULL,NULL 77375,10852870,709619,Yearling Yearling Caucus Caucus Yearling Populist,NULL,NULL,0,NULL,NULL 77376,3610432,709619,Yearling Yearling Caucus Caucus Yearling Populist,NULL,NULL,0,NULL,NULL 77377,631613,1187107,NULL,NULL,NULL,0,NULL,NULL 77378,158013,432929,Notable Question Yearling Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 77379,389980,546190,NULL,NULL,NULL,0,NULL,NULL 77380,23652,1135231,Revival Yearling Census Necromancer,NULL,NULL,0,NULL,NULL 77381,1249824,468654,NULL,NULL,NULL,0,NULL,NULL 77382,131504,843165,Popular Question Editor Custodian,NULL,NULL,0,NULL,NULL 77383,679793,1484641,NULL,NULL,NULL,0,NULL,NULL 77384,440505,293091,NULL,NULL,NULL,0,NULL,NULL 77385,1512042,1121428,NULL,NULL,NULL,0,NULL,NULL 77386,916496,322643,Notable Question,NULL,NULL,0,NULL,NULL 77387,454062,1201037,Teacher Supporter,NULL,NULL,0,NULL,NULL 77388,298844,590387,NULL,NULL,NULL,0,NULL,NULL 77389,113908,1541713,NULL,NULL,NULL,0,NULL,NULL 77390,221467,51184,NULL,NULL,NULL,0,NULL,NULL 77391,2777336,564784,Necromancer,NULL,NULL,0,NULL,NULL 77392,187676,74650,Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77393,96748,1233291,Editor Commentator Yearling Autobiographer Critic Supporter Informed Yearling Student Enthusiast Yearling Caucus Tenacious Revival Custodian Popular Question Caucus Constituent Yearling Caucus Custodian Notable Question,NULL,NULL,0,NULL,NULL 77394,4519448,1054916,NULL,NULL,NULL,0,NULL,NULL 77395,146861,21221,Nice Answer Census,NULL,NULL,0,NULL,NULL 77396,147613,1294175,Supporter,NULL,NULL,0,NULL,NULL 77397,426494,310013,NULL,NULL,NULL,0,NULL,NULL 77398,393888,378506,Popular Question Revival Yearling Excavator Popular Question Yearling Necromancer Necromancer Necromancer Popular Question Citizen Patrol Custodian,NULL,pI recommend using Homebrew to install codegnu getopt code and then adding code FLAGS GETOPT CMD code to your code bash profile code file to specify the cmd path for getopt pointing at the homebrew location like so ppre codebrew install gnu getoptsudo echo export FLAGS GETOPT CMD brew prefix gnu getopt bin getopt gt gt bash profile bash profile code pre love how people downvote but provide ZERO comments as to why tsk tsk,1,NULL,How can make bash deal with long param using getopt command in mac macos bash gnu pI want to make my bash script deal with long parameters found codegetopt code but it isn supported in OS Can anyone tell me why codegetopt code was implemented by BSD but not GNU tried building codegetopt code in GNU lib but it failed for my poor skills with Linux ppDid anyone do this work pI recommend using Homebrew to install codegnu getopt code and then adding code FLAGS GETOPT CMD code to your code bash profile code file to specify the cmd path for getopt pointing at the homebrew location like so ppre codebrew install gnu getoptsudo echo export FLAGS GETOPT CMD brew prefix gnu getopt bin getopt gt gt bash profile bash profile code pre 77399,1130731,863843,NULL,NULL,NULL,0,NULL,NULL 77400,147812,1561101,NULL,NULL,NULL,0,NULL,NULL 77401,1675992,143459,Notable Question Yearling Notable Question Nice Question Good Question Yearling Notable Question Good Question Yearling Popular Question Great Question Good Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 77402,604661,1181307,NULL,NULL,NULL,0,NULL,NULL 77403,85943,949051,Editor Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77404,213096,766638,NULL,NULL,NULL,0,NULL,NULL 77405,373139,670205,NULL,NULL,NULL,0,NULL,NULL 77406,1148,263836,NULL,NULL,NULL,0,NULL,NULL 77407,3129,420852,Enlightened,NULL,NULL,0,NULL,NULL 77408,84152,1332035,NULL,NULL,NULL,0,NULL,NULL 77409,519211,743234,NULL,NULL,NULL,0,NULL,NULL 77410,261431,26,Notable Question Popular Question Famous Question Nice Answer Good Question Notable Question Nice Answer Nice Question Nice Question Yearling Nice Answer Nice Question Nice Question Good Question c# Famous Question Notable Question Enlightened Popular Question Notable Question Nice Answer Enlightened Yearling Nice Question Popular Question Famous Question Notable Question Notable Question Nice Answer Yearling Great Question,NULL,NULL,0,NULL,NULL 77411,36311,318071,Nice Answer Enlightened Notable Question Yearling Famous Question Nice Answer Enlightened Nice Answer Nice Question Popular Question Famous Question Nice Answer Popular Question Notable Question Popular Question Popular Question Notable Question Famous Question Popular Question symfony Nice Question Nice Answer Popular Question Yearling Nice Answer Popular Question Nice Answer Enlightened Notable Question Good Question Popular Question Famous Question Census Famous Question Popular Question Yearling Organizer Explainer Good Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 77412,328022,91166,Autobiographer,NULL,NULL,0,NULL,NULL 77413,152384,1565225,NULL,NULL,NULL,0,NULL,NULL 77414,667579,377182,Census Popular Question Popular Question Caucus Constituent Popular Question Documentation User Self-Learner Census Nice Question Yearling,NULL,NULL,0,NULL,NULL 77415,888732,1359175,Teacher Supporter,NULL,NULL,0,NULL,NULL 77416,281158,436895,Teacher,NULL,NULL,0,NULL,NULL 77417,159084,1271953,NULL,NULL,NULL,0,NULL,NULL 77418,69859,1265854,NULL,NULL,NULL,0,NULL,NULL 77419,68206,530570,Announcer Yearling Critic Notable Question,NULL,NULL,0,NULL,NULL 77420,52576,278871,Yearling,NULL,NULL,0,NULL,NULL 77421,74335,772122,Nice Answer Enlightened Nice Answer Populist Popular Question Popular Question Guru Yearling Popular Question Good Answer Yearling Custodian Populist Yearling,NULL,NULL,0,NULL,NULL 77422,216305,1211844,NULL,NULL,NULL,0,NULL,NULL 77423,154089,521431,NULL,NULL,NULL,0,NULL,NULL 77424,18695,128703,Yearling Yearling Yearling Yearling Great Answer Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 77425,560394,692244,NULL,NULL,NULL,0,NULL,NULL 77426,39090,305668,Yearling Necromancer Nice Question Popular Question Yearling Nice Answer Enlightened Popular Question Notable Question Good Question Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 77427,115086,181677,Necromancer,NULL,NULL,0,NULL,NULL 77428,1035201,181677,Necromancer,NULL,NULL,0,NULL,NULL 77429,1229931,517219,Popular Question,NULL,NULL,0,NULL,NULL 77430,1118121,733465,NULL,NULL,NULL,0,NULL,NULL 77431,29381,260457,Yearling Commentator Yearling Custodian Documentation User Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Constituent,NULL,NULL,0,NULL,NULL 77432,198936,40883,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 77433,530172,1383999,Informed Autobiographer,NULL,NULL,0,NULL,NULL 77434,468055,835539,Popular Question Popular Question Pundit Yearling Guru Good Answer Yearling Populist Necromancer,NULL,ptl dr use OSX native process launcher and manager codelaunchd code ppTo do so make codelaunchctl code daemon You ll have full control over all aspects of the script You can run once or keep alive as daemon In most cases this is the way to go polliCreate code plist code file according to the href http developer apple com library mac documentation MacOSX Conceptual BPSystemStartup Chapters CreatingLaunchdJobs html apple ref doc uid 10000172i SW7 BCIEDDBJ rel noreferrer instructions in the Apple Dev docs here or more detail below liliPlace in code Library LaunchAgents code liliLog in or run manually via codelaunchctl load filename plist code li olpFor more on codelaunchd code href http en wikipedia org wiki Launchd rel noreferrer the wikipedia article is quite good and describes the system and its advantages over other older systems phrpHere the specific plist file to run script emat login em pblockquote pUpdated 2017 09 25 for OSX El Capitan and newer credit to href https stackoverflow com users 2520926 jos C3 A9 messias jr José Messias Jr blockquotepre code lt xml version encoding UTF gt lt DOCTYPE plist PUBLIC Apple Computer DTD PLIST EN http www apple com DTDs PropertyList dtd gt lt plist version gt lt dict gt lt key gt Label lt key gt lt string gt com user loginscript lt string gt lt key gt ProgramArguments lt key gt lt array gt lt string gt path to executable script sh lt string gt lt array gt lt key gt RunAtLoad lt key gt lt true gt lt dict gt lt plist gt code prepReplace the code lt string gt code after the Program key with your desired command ppSave as code Library LaunchAgents com user loginscript plist code ppRun codelaunchctl load Library LaunchAgents com user loginscript plist code and log out in to test or to test directly run codelaunchctl start com user loginscript code ppTail code var log system log code for error messages ppThe key is that this is User specific launchd entry so it will be run on login for the given user System specific launch daemons placed in code Library LaunchDaemons code are run on boot ppIf you want script to run on login for all users believe LoginHook is your only option and that probably the reason it exists Hi did you see the updates for the newer OSX versions ve updated the instructions so all the code is up to date so please try again and see if it works with the present example,0,NULL,NULL 77435,116307,1252169,Yearling Nice Answer Enlightened Nice Answer Enlightened Revival Good Answer Populist Yearling Nice Answer Enlightened Good Answer javascript Yearling Caucus Necromancer Custodian Student Scholar Guru,NULL,NULL,0,NULL,NULL 77436,412979,1247335,NULL,NULL,NULL,0,NULL,NULL 77437,91840,228309,NULL,NULL,NULL,0,NULL,NULL 77438,1155712,924713,NULL,NULL,NULL,0,NULL,NULL 77439,70779,251987,NULL,NULL,NULL,0,NULL,NULL 77440,127260,1326646,NULL,NULL,NULL,0,NULL,NULL 77441,233706,483815,Popular Question Necromancer Yearling Revival Caucus,NULL,NULL,0,NULL,NULL 77442,889789,1168209,NULL,NULL,NULL,0,NULL,NULL 77443,238378,191088,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77444,275894,19789,Yearling Nice Question Popular Question Popular Question Excavator Notable Question,NULL,NULL,0,NULL,NULL 77445,3848,134482,Great Question Notable Question Great Question Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 77446,30085,742317,NULL,NULL,NULL,0,NULL,NULL 77447,251068,632338,NULL,NULL,NULL,0,NULL,NULL 77448,331480,430712,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77449,1060373,448317,Popular Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77450,80681,18180,Nice Answer Popular Question Nice Question Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Question Notable Question Great Question Famous Question Yearling Popular Question Revival Nice Answer Enlightened Nice Answer Generalist Good Answer Nice Answer Good Answer Guru Great Answer Necromancer Notable Question Yearling Good Answer Good Answer Census Nice Question Nice Answer Necromancer Nice Answer Enlightened Good Question Nice Answer Notable Question Nice Answer Enlightened Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 77451,90201,216254,Commentator Yearling Famous Question Caucus Census Caucus Revival,NULL,NULL,0,NULL,NULL 77452,896003,206656,NULL,NULL,NULL,0,NULL,NULL 77453,836888,763387,NULL,NULL,NULL,0,NULL,NULL 77454,442002,880060,NULL,NULL,NULL,0,NULL,NULL 77455,341356,519514,NULL,NULL,NULL,0,NULL,NULL 77456,32023,721710,Yearling Caucus Yearling Announcer Nice Answer Yearling Announcer,NULL,NULL,0,NULL,NULL 77457,406553,959857,NULL,NULL,NULL,0,NULL,NULL 77458,168037,676536,NULL,NULL,NULL,0,NULL,NULL 77459,32967,230783,NULL,NULL,NULL,0,NULL,NULL 77460,1727987,735967,NULL,NULL,NULL,0,NULL,NULL 77461,268524,1338003,NULL,NULL,NULL,0,NULL,NULL 77462,50210,291430,Editor Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77463,6659367,291430,Editor Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77464,545339,817584,NULL,NULL,NULL,0,NULL,NULL 77465,190736,1389392,NULL,NULL,NULL,0,NULL,NULL 77466,901431,107977,Nice Question Popular Question Notable Question Yearling Good Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 77467,181243,225743,Necromancer,NULL,NULL,0,NULL,NULL 77468,3011707,98046,Nice Question Good Answer Yearling Notable Question Great Answer Yearling Caucus Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77469,164081,98046,Nice Question Good Answer Yearling Notable Question Great Answer Yearling Caucus Nice Question Notable Question Popular Question Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77470,1344942,745929,Popular Question,NULL,NULL,0,NULL,NULL 77471,103135,56604,Yearling Good Answer Popular Question Nice Answer Yearling Popular Question Famous Question Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 77472,113025,979583,NULL,NULL,NULL,0,NULL,NULL 77473,285627,454344,Yearling Necromancer Great Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 77474,297490,208319,Revival,NULL,NULL,0,NULL,NULL 77475,371603,291753,Nice Answer Enlightened Yearling Nice Answer Critic Yearling Guru Announcer,NULL,NULL,0,NULL,NULL 77476,23505,901061,NULL,NULL,NULL,0,NULL,NULL 77477,1691945,901061,NULL,NULL,NULL,0,NULL,NULL 77478,251238,452212,NULL,NULL,NULL,0,NULL,NULL 77479,281697,1561404,Self-Learner Announcer Yearling Notable Question Nice Question Revival Famous Question Famous Question,NULL,NULL,0,NULL,NULL 77480,213923,167911,Notable Question Popular Question Famous Question Good Question Necromancer Yearling Nice Question Notable Question Good Question Caucus Notable Question Constituent Notable Question Revival Taxonomist Necromancer Good Question Popular Question Popular Question Favorite Question Popular Question Yearling Famous Question Good Question Notable Question Nice Answer Revival Necromancer Popular Question Yearling Popular Question,NULL,Can JavaScript object property refer to another property of the same object javascript object properties declaration variable assignment pI recently tried to create an object like this ppre codevar carousel slider carousel1 slider panes carousel slider children length code prepMy intentions were to improve jQuery selector performance by caching the results of code carousel1 slider code in an object property and to keep the code concise and relatively DRY ppHowever this didn work When the code executed it threw an exception when trying to parse the value of codepanes code complaining that codecarousel code was undefined ppThis makes sense since assume that codecarousel code isn fully declared until the assignment statement has been fully executed However like to avoid resorting to this ppre codevar carousel carousel slider carousel1 slider carousel panes carousel slider children length code prepThat not too much worse but the codecarousel code object will have several more properties that rely on the values of other properties so that could quickly become verbose ppI tried using codethis code but to no avail may well not have been using it correctly or that may not be valid approach anyway ppIs there way for properties of an object to refer to other properties of the same object while that object is still being declared phr pBased on Matthew Flaschen and casablanca answers thanks guys think these are the versions of my actual code that end up with based on each approach ppre code Matthew Flaschenvar carousel new function this carousel carousel this carousel window this carousel find window this carousel slider this carousel find slider this first pane this carousel find slider children first child this panes this carousel slider children length this pane gap this first pane css margin right code prepand ppre code casablancavar carousel carousel carousel slider carousel find slider first pane carousel find slider children first child var properties carousel window carousel find window panes carousel slider children length pane gap first pane css margin right properties carousel carousel properties carousel slider carousel slider properties first pane first pane code prepAssuming those are both correct haven tested them it kind of tough call think slightly prefer Matthew Flaschen approach since the code is contained to structure that more closely resembles an object declaration There also ultimately only one variable created However there lot of codethis code in there which seems repetitive although that may be just the price to pay Thanks for clarifying that makes sense Will remove my update,0,NULL,NULL 77481,819673,26244,Yearling,NULL,NULL,0,NULL,NULL 77482,144502,1197707,NULL,NULL,NULL,0,NULL,NULL 77483,891711,710492,NULL,NULL,NULL,0,NULL,NULL 77484,8097,267962,NULL,NULL,NULL,0,NULL,NULL 77485,31968,1172072,NULL,NULL,NULL,0,NULL,NULL 77486,365426,431243,Nice Answer Necromancer Revival Revival Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Scholar Custodian Custodian Informed Civic Duty Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 77487,999905,867349,Announcer Announcer Necromancer Nice Answer Yearling Nice Answer Enlightened Caucus Constituent Necromancer Custodian Nice Answer Nice Answer Announcer Caucus Yearling Nice Answer Announcer Revival Nice Answer Census Caucus Announcer Nice Answer Enlightened Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 77488,587857,1068567,Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77489,597351,574754,Popular Question Excavator Notable Question,NULL,NULL,0,NULL,NULL 77490,804467,515582,NULL,NULL,NULL,0,NULL,NULL 77491,317327,859962,NULL,NULL,NULL,0,NULL,NULL 77492,424229,42489,Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 77493,1625836,42489,Popular Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 77494,63171,5047,Revival Custodian,NULL,NULL,0,NULL,NULL 77495,42657,581584,Yearling Notable Question Yearling Yearling Caucus,NULL,NULL,0,NULL,NULL 77496,29334,103211,Yearling Notable Question Popular Question Caucus Yearling Good Answer Promoter Nice Question,NULL,NULL,0,NULL,NULL 77497,1166152,1261964,Yearling Enthusiast Revival Caucus Caucus Necromancer,NULL,NULL,0,NULL,NULL 77498,14565,150687,NULL,NULL,NULL,0,NULL,NULL 77499,150245,629686,NULL,NULL,NULL,0,NULL,NULL 77500,41053,335026,NULL,NULL,NULL,0,NULL,NULL 77501,446941,883355,NULL,NULL,NULL,0,NULL,NULL 77502,24306,495302,Nice Answer clojure Yearling Announcer Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 77503,1084780,754803,Notable Question Nice Question Yearling Popular Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 77504,862258,53212,Yearling Nice Answer Nice Answer Good Answer Famous Question Nice Answer Enlightened Popular Question Good Answer Necromancer Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Necromancer Good Answer Notable Question Nice Answer Good Answer Great Answer Good Answer Famous Question Caucus Yearling php Census Necromancer http Good Question Nice Answer Famous Question Great Answer Notable Question Good Answer Nice Answer Good Answer Great Answer Yearling Announcer Good Answer Nice Answer Guru Necromancer Guru Good Answer Guru Nice Answer Good Question Nice Answer Popular Question,NULL,What the difference between utf8 general ci and utf8 unicode ci mysql unicode pBetween codeutf8 general ci code and codeutf8 unicode ci code are there any differences in terms of performance don know how feel about that instead of fixing their implementation to follow the latest Unicode standard they keep the obsolete version as the default and people have to add 520 to use the proper one now And it not forwards and backwards compatible because you can use the 520 version on older MySQL versions Why couldn they have just updated their existing collation Same with mb4 really What code really depended on the old limited obsolete behaviour to justify keeping that as the default How to efficiently concatenate strings in Go string go string concatenation pIn Go codestring code is primitive type which means it is read only and every manipulation of it will create new string ppSo if want to concatenate strings many times without knowing the length of the resulting string what the best way to do it ppThe naive way would be ppre codes for lt 1000 getShortStringFromSomewhere return code prepbut that does not seem very efficient Note This question and most answers seem to have been written before append came into the language which is good solution for this It will perform fast like copy but will grow the slice first even if that means allocating new backing array if the capacity isn enough bytes Buffer still makes sense if you want its additional convenience methods or if the package you re using expects it pThe method jQuery v1 10 uses to find this is ppre codevar doc document documentElement var left window pageXOffset doc scrollLeft doc clientLeft var top window pageYOffset doc scrollTop doc clientTop code prepThat is pulliIt tests for codewindow pageXOffset code first and uses that if it exists liliOtherwise it uses codedocument documentElement scrollLeft code liliIt then subtracts codedocument documentElement clientLeft code if it exists li ulpThe subtraction of codedocument documentElement clientLeft code codeTop code only appears to be required to correct for situations where you have applied border not padding or margin but actual border to the root element and at that possibly only in certain browsers As said above this is from jQuery jQuery fn offset function though it is paraphrased rather than copied directly pThe method jQuery v1 10 uses to find this is ppre codevar doc document documentElement var left window pageXOffset doc scrollLeft doc clientLeft var top window pageYOffset doc scrollTop doc clientTop code prepThat is pulliIt tests for codewindow pageXOffset code first and uses that if it exists liliOtherwise it uses codedocument documentElement scrollLeft code liliIt then subtracts codedocument documentElement clientLeft code if it exists li ulpThe subtraction of codedocument documentElement clientLeft code codeTop code only appears to be required to correct for situations where you have applied border not padding or margin but actual border to the root element and at that possibly only in certain browsers scrollY has no support in IE and potentially poor support in Edge and Safari pAll arrays in JavaScript contain codearray length code elements starting with codearray code up until codearray array length code By definition an array element with index codei code is said to be part of the array if codei code is between code0 code and codearray length code inclusive ppThat is JavaScript arrays are linear starting with zero and going to maximum and arrays don have mechanism for excluding certain values or ranges from the array To find out if value exists at given position index where index is or positive integer you literally just use ppre codeif index lt array length do stuff code prepHowever it emis em possible for some array values to be null codeundefined code codeNaN code codeInfinity code or whole host of different values For example if you add array values by increasing the codearray length code property any new values will be codeundefined code ppTo determine if given value is something meaningful or has been defined That is strongnot strong codeundefined code or codenull code ppre codeif typeof array index undefined code prepor ppre codeif typeof array index undefined amp amp array index null code prepInterestingly because of JavaScript comparison rules my last example can be optimised down to ppre codeif array index null The and operator consider null equal to only null or undefined code pre array length does not iterate over anything it just single number pThese two collations are both for the UTF character encoding The differences are in how text is sorted and compared pp emNote Since MySQL you should use href https dev mysql com doc refman en charset unicode utf8mb4 html rel noreferrer codeutf8mb4 code rather than codeutf8 code They both refer to the UTF encoding but the older codeutf8 code had MySQL specific limitation preventing use of characters numbered above 0xFFFD em pulli strongAccuracy strong pp codeutf8mb4 unicode ci code is based on the Unicode standard for sorting and comparison which sorts accurately in very wide range of languages pp codeutf8mb4 general ci code fails to implement all of the Unicode sorting rules which will result in undesirable sorting in some situations such as when using particular languages or characters lili strongPerformance strong pp codeutf8mb4 general ci code is faster at comparisons and sorting because it takes bunch of performance related shortcuts ppOn modern servers this performance boost will be all but negligible It was devised in time when servers had tiny fraction of the CPU performance of today computers pp codeutf8mb4 unicode ci code which uses the Unicode rules for sorting and comparison employs fairly complex algorithm for correct sorting in wide range of languages and when using wide range of special characters These rules need to take into account language specific conventions not everybody sorts their characters in what we would call alphabetical order li ulpAs far as Latin ie European languages go there is not much difference between the Unicode sorting and the simplified codeutf8mb4 general ci code sorting in MySQL but there are still few differences pulli pFor examples the Unicode collation sorts like ss and like OE as people using those characters would normally want whereas codeutf8mb4 general ci code sorts them as single characters presumably like and respectively lili pSome Unicode characters are defined as ignorable which means they shouldn count toward the sort order and the comparison should move on to the next character instead codeutf8mb4 unicode ci code handles these properly li ulpIn non latin languages such as Asian languages or languages with different alphabets there may be lot emmore em differences between Unicode sorting and the simplified codeutf8mb4 general ci code sorting The suitability of codeutf8mb4 general ci code will depend heavily on the language used For some languages it ll be quite inadequate pp strongWhat should you use strong ppThere is almost certainly no reason to use codeutf8mb4 general ci code anymore as we have left behind the point where CPU speed is low enough that the performance difference would be important Your database will almost certainly be limited by other bottlenecks than this ppThe difference in performance is only going to be measurable in extremely specialised situations and if that you you probably already know about it If you re experiencing slow sorting in almost all cases it ll be an issue with your indexes query plan Changing your collation function should not be high on the list of things to troubleshoot ppIn the past some people recommended to use codeutf8mb4 general ci code except when accurate sorting was going to be important enough to justify the performance cost Today that performance cost has all but disappeared and developers are treating internationalization more seriously ppOne other thing ll add is that even if you know your application only supports the English language it may still need to deal with people names which can often contain characters used in other languages in which it is just as important to sort correctly Using the Unicode rules for everything helps add peace of mind that the very smart Unicode people have worked very hard to make sorting work properly Thanks for the helpful edit pThese two collations are both for the UTF character encoding The differences are in how text is sorted and compared pp emNote Since MySQL you should use href https dev mysql com doc refman en charset unicode utf8mb4 html rel noreferrer codeutf8mb4 code rather than codeutf8 code They both refer to the UTF encoding but the older codeutf8 code had MySQL specific limitation preventing use of characters numbered above 0xFFFD em pulli strongAccuracy strong pp codeutf8mb4 unicode ci code is based on the Unicode standard for sorting and comparison which sorts accurately in very wide range of languages pp codeutf8mb4 general ci code fails to implement all of the Unicode sorting rules which will result in undesirable sorting in some situations such as when using particular languages or characters lili strongPerformance strong pp codeutf8mb4 general ci code is faster at comparisons and sorting because it takes bunch of performance related shortcuts ppOn modern servers this performance boost will be all but negligible It was devised in time when servers had tiny fraction of the CPU performance of today computers pp codeutf8mb4 unicode ci code which uses the Unicode rules for sorting and comparison employs fairly complex algorithm for correct sorting in wide range of languages and when using wide range of special characters These rules need to take into account language specific conventions not everybody sorts their characters in what we would call alphabetical order li ulpAs far as Latin ie European languages go there is not much difference between the Unicode sorting and the simplified codeutf8mb4 general ci code sorting in MySQL but there are still few differences pulli pFor examples the Unicode collation sorts like ss and like OE as people using those characters would normally want whereas codeutf8mb4 general ci code sorts them as single characters presumably like and respectively lili pSome Unicode characters are defined as ignorable which means they shouldn count toward the sort order and the comparison should move on to the next character instead codeutf8mb4 unicode ci code handles these properly li ulpIn non latin languages such as Asian languages or languages with different alphabets there may be lot emmore em differences between Unicode sorting and the simplified codeutf8mb4 general ci code sorting The suitability of codeutf8mb4 general ci code will depend heavily on the language used For some languages it ll be quite inadequate pp strongWhat should you use strong ppThere is almost certainly no reason to use codeutf8mb4 general ci code anymore as we have left behind the point where CPU speed is low enough that the performance difference would be important Your database will almost certainly be limited by other bottlenecks than this ppThe difference in performance is only going to be measurable in extremely specialised situations and if that you you probably already know about it If you re experiencing slow sorting in almost all cases it ll be an issue with your indexes query plan Changing your collation function should not be high on the list of things to troubleshoot ppIn the past some people recommended to use codeutf8mb4 general ci code except when accurate sorting was going to be important enough to justify the performance cost Today that performance cost has all but disappeared and developers are treating internationalization more seriously ppOne other thing ll add is that even if you know your application only supports the English language it may still need to deal with people names which can often contain characters used in other languages in which it is just as important to sort correctly Using the Unicode rules for everything helps add peace of mind that the very smart Unicode people have worked very hard to make sorting work properly ᵀᴹ no 0xFFFD Old versions of MySQL didn support characters outside the basic multilingual plane BMP pThese two collations are both for the UTF character encoding The differences are in how text is sorted and compared pp emNote Since MySQL you should use href https dev mysql com doc refman en charset unicode utf8mb4 html rel noreferrer codeutf8mb4 code rather than codeutf8 code They both refer to the UTF encoding but the older codeutf8 code had MySQL specific limitation preventing use of characters numbered above 0xFFFD em pulli strongAccuracy strong pp codeutf8mb4 unicode ci code is based on the Unicode standard for sorting and comparison which sorts accurately in very wide range of languages pp codeutf8mb4 general ci code fails to implement all of the Unicode sorting rules which will result in undesirable sorting in some situations such as when using particular languages or characters lili strongPerformance strong pp codeutf8mb4 general ci code is faster at comparisons and sorting because it takes bunch of performance related shortcuts ppOn modern servers this performance boost will be all but negligible It was devised in time when servers had tiny fraction of the CPU performance of today computers pp codeutf8mb4 unicode ci code which uses the Unicode rules for sorting and comparison employs fairly complex algorithm for correct sorting in wide range of languages and when using wide range of special characters These rules need to take into account language specific conventions not everybody sorts their characters in what we would call alphabetical order li ulpAs far as Latin ie European languages go there is not much difference between the Unicode sorting and the simplified codeutf8mb4 general ci code sorting in MySQL but there are still few differences pulli pFor examples the Unicode collation sorts like ss and like OE as people using those characters would normally want whereas codeutf8mb4 general ci code sorts them as single characters presumably like and respectively lili pSome Unicode characters are defined as ignorable which means they shouldn count toward the sort order and the comparison should move on to the next character instead codeutf8mb4 unicode ci code handles these properly li ulpIn non latin languages such as Asian languages or languages with different alphabets there may be lot emmore em differences between Unicode sorting and the simplified codeutf8mb4 general ci code sorting The suitability of codeutf8mb4 general ci code will depend heavily on the language used For some languages it ll be quite inadequate pp strongWhat should you use strong ppThere is almost certainly no reason to use codeutf8mb4 general ci code anymore as we have left behind the point where CPU speed is low enough that the performance difference would be important Your database will almost certainly be limited by other bottlenecks than this ppThe difference in performance is only going to be measurable in extremely specialised situations and if that you you probably already know about it If you re experiencing slow sorting in almost all cases it ll be an issue with your indexes query plan Changing your collation function should not be high on the list of things to troubleshoot ppIn the past some people recommended to use codeutf8mb4 general ci code except when accurate sorting was going to be important enough to justify the performance cost Today that performance cost has all but disappeared and developers are treating internationalization more seriously ppOne other thing ll add is that even if you know your application only supports the English language it may still need to deal with people names which can often contain characters used in other languages in which it is just as important to sort correctly Using the Unicode rules for everything helps add peace of mind that the very smart Unicode people have worked very hard to make sorting work properly deliberately changed all instances of utf8 to utf8mb4 Since MySQL years ago now there is no justification for using the buggy utf8 variants and utf8 vs utf8mb4 is not what being discussed here this is about utf8mb4 general ci vs utf8mb4 unicode ci curse whoever made the choice to come up with the confusing name utf8mb4 and not just fix the problem but well ve had years to come to terms with it,0,NULL,NULL 77505,26302,1305633,NULL,NULL,NULL,0,NULL,NULL 77506,167301,128876,Popular Question,NULL,NULL,0,NULL,NULL 77507,4031508,718265,NULL,NULL,NULL,0,NULL,NULL 77508,364024,470215,NULL,NULL,NULL,0,NULL,NULL 77509,362223,1468493,NULL,NULL,NULL,0,NULL,NULL 77510,40995,1030588,Famous Question,NULL,NULL,0,NULL,NULL 77511,1216847,1259085,Nice Answer Editor,NULL,NULL,0,NULL,NULL 77512,20320,482533,Nice Answer Revival Caucus Custodian Custodian Custodian Revival Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 77513,431015,744068,NULL,NULL,NULL,0,NULL,NULL 77514,446682,1331781,Necromancer Yearling Nice Answer Citizen Patrol Custodian Custodian Popular Question Curious,NULL,NULL,0,NULL,NULL 77515,887431,1141425,Editor,NULL,NULL,0,NULL,NULL 77516,958738,137483,Popular Question Nice Answer Popular Question Nice Answer Good Answer Yearling Caucus Promoter Benefactor Yearling Good Answer Notable Question Caucus Constituent Necromancer Yearling Notable Question Guru,NULL,NULL,0,NULL,NULL 77517,21908,432068,Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77518,316622,413560,Supporter,NULL,NULL,0,NULL,NULL 77519,578490,150636,Yearling Curious,NULL,NULL,0,NULL,NULL 77520,243755,644887,NULL,NULL,NULL,0,NULL,NULL 77521,118958,463065,Famous Question Popular Question Notable Question Notable Question Popular Question Favorite Question Guru Announcer Notable Question Announcer Good Answer Popular Question Popular Question Nice Question Nice Answer Enlightened html Popular Question python Popular Question Nice Question Nice Answer Famous Question Yearling Notable Question Nice Question Stellar Question Favorite Question javascript Nice Question Popular Question Famous Question Notable Question Notable Question Notable Question Notable Question Good Question Nice Answer Notable Question Caucus Popular Question Popular Question Yearling Great Question Famous Question Nice Answer Enlightened Popular Question Popular Question Notable Question Favorite Question Famous Question Notable Question Popular Question Famous Question Great Question Nice Answer Notable Question Yearling Great Question,NULL,NULL,0,NULL,NULL 77522,165137,189174,NULL,NULL,NULL,0,NULL,NULL 77523,7440638,28543,Famous Question Famous Question Notable Question Nice Question Nice Answer Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Answer Enlightened Famous Question Nice Question Popular Question Popular Question Guru Famous Question Yearling Good Question Nice Answer Enlightened Notable Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Revival Famous Question Nice Answer Nice Question Notable Question Nice Question Nice Answer Good Question Nice Question Favorite Question Yearling Famous Question Good Question Good Question Nice Question Famous Question Great Question Popular Question Notable Question Good Question Great Question Nice Answer Enlightened Famous Question Famous Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77524,1114305,300616,NULL,NULL,NULL,0,NULL,NULL 77525,1576323,530544,NULL,NULL,NULL,0,NULL,NULL 77526,124006,608870,NULL,NULL,NULL,0,NULL,NULL 77527,9345381,1030207,Notable Question Autobiographer Curious Popular Question,NULL,NULL,0,NULL,NULL 77528,122183,1030207,Notable Question Autobiographer Curious Popular Question,NULL,NULL,0,NULL,NULL 77529,1177620,523390,Yearling Popular Question,NULL,NULL,0,NULL,NULL 77530,205892,497300,Yearling Good Answer Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 77531,98270,1494761,NULL,NULL,NULL,0,NULL,NULL 77532,1471183,1494761,NULL,NULL,NULL,0,NULL,NULL 77533,3625,246711,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77534,628635,1324150,NULL,NULL,NULL,0,NULL,NULL 77535,562106,306192,Necromancer,NULL,NULL,0,NULL,NULL 77536,48155,235221,NULL,NULL,NULL,0,NULL,NULL 77537,1117573,1302484,Yearling Commentator Citizen Patrol Custodian Autobiographer Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 77538,1934577,549993,Yearling Curious Popular Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77539,382063,399104,Notable Question Popular Question Good Question Inquisitive Famous Question Great Question Notable Question Yearling Popular Question Famous Question Good Question Popular Question Great Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Notable Question Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77540,1768474,760386,NULL,NULL,NULL,0,NULL,NULL 77541,157735,760386,NULL,NULL,NULL,0,NULL,NULL 77542,580419,1326678,Revival Yearling,NULL,NULL,0,NULL,NULL 77543,1185594,1326678,Revival Yearling,NULL,NULL,0,NULL,NULL 77544,153298,1236540,Yearling Great Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 77545,451424,473665,NULL,NULL,NULL,0,NULL,NULL 77546,112215,610386,NULL,NULL,NULL,0,NULL,NULL 77547,330168,245133,NULL,NULL,NULL,0,NULL,NULL 77548,21084,55808,Nice Answer Yearling Good Answer Nice Answer Nice Question Nice Question Nice Answer Enlightened Nice Answer Nice Answer Famous Question Nice Answer Enlightened Favorite Question Popular Question Famous Question Yearling Guru Famous Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Yearling Nice Answer Good Question Good Answer,NULL,NULL,0,NULL,NULL 77549,64694,1416709,NULL,NULL,NULL,0,NULL,NULL 77550,3982879,1155495,NULL,NULL,NULL,0,NULL,NULL 77551,32650,328194,Proofreader Yearling Announcer Census Announcer Yearling Caucus Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77552,50273,441843,NULL,NULL,NULL,0,NULL,NULL 77553,134108,431493,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 77554,2782307,1346597,NULL,NULL,NULL,0,NULL,NULL 77555,33849,245614,Yearling Curious Custodian Caucus Constituent Yearling Caucus Constituent Documentation User Announcer Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 77556,122798,1011164,NULL,NULL,NULL,0,NULL,NULL 77557,372075,548014,Necromancer Popular Question Yearling,NULL,NULL,0,NULL,NULL 77558,592225,1342733,NULL,NULL,NULL,0,NULL,NULL 77559,116915,1313536,NULL,NULL,NULL,0,NULL,NULL 77560,334832,344988,NULL,NULL,NULL,0,NULL,NULL 77561,27302,688704,NULL,NULL,NULL,0,NULL,NULL 77562,554670,630659,NULL,NULL,NULL,0,NULL,NULL 77563,271712,209652,Critic Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 77564,585869,1109371,Popular Question Revival Popular Question Good Question Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77565,61134,59501,serialization Good Answer Guru Yearling Good Answer Good Answer Nice Question Guru Good Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Great Answer Necromancer Nice Answer Nice Answer Nice Answer Good Answer Famous Question Nice Answer Famous Question Good Answer Nice Answer Enlightened Caucus Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened jax-rs Good Answer Nice Answer Yearling Good Answer Nice Answer Necromancer Notable Question Nice Answer Enlightened Guru Guru Great Answer Good Answer Nice Answer Nice Answer Good Answer Nice Answer Great Answer Good Answer Guru Caucus Great Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Custodian Popular Question Yearling Nice Answer Great Answer Populist Guru Caucus Great Answer Nice Question Nice Answer Guru Popular Question Guru annotations Nice Answer Notable Question Necromancer Nice Answer Good Answer Nice Answer Popular Question,NULL,pYes that is safe and recommended ppThe only caveat from the page you referred is that you can be modifying configuration of the mapper once it is shared but you are not changing configuration so that is fine If you did need to change configuration you would do that from the static block and it would be fine as well pp strongEDIT strong 2013 10 ppWith and above above can be augmented by noting that there is an even better way use codeObjectWriter code and codeObjectReader code objects which can be constructed by codeObjectMapper code They are fully immutable thread safe meaning that it is not even theoretically possible to cause thread safety issues which can occur with codeObjectMapper code if code tries to re configure instance have you looked at ObjectMapper at all Methods are named writer and reader and some readerFor writerFor pYes that is safe and recommended ppThe only caveat from the page you referred is that you can be modifying configuration of the mapper once it is shared but you are not changing configuration so that is fine If you did need to change configuration you would do that from the static block and it would be fine as well pp strongEDIT strong 2013 10 ppWith and above above can be augmented by noting that there is an even better way use codeObjectWriter code and codeObjectReader code objects which can be constructed by codeObjectMapper code They are fully immutable thread safe meaning that it is not even theoretically possible to cause thread safety issues which can occur with codeObjectMapper code if code tries to re configure instance There is no mapper with call since with in Jackson implies construction of new instance and thread safe execution But regarding config changes no checking is made so config access to ObjectMapper must be guarded As to copy yes that creates fresh new copy that may be fully re configured according to same rules fully configure it first then use and that is fine There is non trivial cost associated since copy can not use any of cached handlers but it is the safe way yes pYes that is safe and recommended ppThe only caveat from the page you referred is that you can be modifying configuration of the mapper once it is shared but you are not changing configuration so that is fine If you did need to change configuration you would do that from the static block and it would be fine as well pp strongEDIT strong 2013 10 ppWith and above above can be augmented by noting that there is an even better way use codeObjectWriter code and codeObjectReader code objects which can be constructed by codeObjectMapper code They are fully immutable thread safe meaning that it is not even theoretically possible to cause thread safety issues which can occur with codeObjectMapper code if code tries to re configure instance and as to why not see if someone tries to reconfig that would require additional state keeping synchronization For Jackson it may make sense to use builder pattern make ObjectMapper immutable similar to ObjectReader ObjectWriter but that major API change so can be done with Another way to protect against reconfig is to only expose ObjectReader and ObjectWriter keep access to mapper only available to small part of system,0,NULL,NULL 77566,2943,75561,Caucus,NULL,NULL,0,NULL,NULL 77567,185184,342017,Notable Question,NULL,NULL,0,NULL,NULL 77568,558449,829065,NULL,NULL,NULL,0,NULL,NULL 77569,219688,1097028,Notable Question Popular Question Popular Question Nice Answer Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 77570,1506195,445327,Popular Question Notable Question Nice Question Tumbleweed Editor,NULL,NULL,0,NULL,NULL 77571,195429,1469937,NULL,NULL,NULL,0,NULL,NULL 77572,191495,154739,Yearling Notable Question Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 77573,91660,487210,NULL,NULL,NULL,0,NULL,NULL 77574,146332,1204324,NULL,NULL,NULL,0,NULL,NULL 77575,59296,517791,NULL,NULL,NULL,0,NULL,NULL 77576,107883,73417,Nice Question Famous Question Notable Question Necromancer Famous Question Yearling Good Question Notable Question Necromancer Nice Question,NULL,NULL,0,NULL,NULL 77577,413313,29493,Necromancer Popular Question Great Answer Popular Question Good Answer Revival Popular Question Yearling Necromancer Great Answer Necromancer Popular Question Necromancer Popular Question Popular Question Popular Question Great Answer Nice Answer Enlightened Announcer Nice Answer Notable Question Yearling Notable Question Notable Question Popular Question Revival Necromancer Necromancer Nice Answer Good Answer Nice Answer Nice Question Famous Question Populist Nice Question Necromancer Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 77578,279181,100213,Yearling Popular Question Yearling Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 77579,1509785,1132938,Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 77580,30151,287462,NULL,NULL,NULL,0,NULL,NULL 77581,66172,546926,NULL,NULL,NULL,0,NULL,NULL 77582,113318,1274421,Famous Question,NULL,NULL,0,NULL,NULL 77583,680063,769747,NULL,NULL,NULL,0,NULL,NULL 77584,900351,95461,Editor Nice Question Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 77585,168466,450876,NULL,NULL,NULL,0,NULL,NULL 77586,1710955,1516237,NULL,NULL,NULL,0,NULL,NULL 77587,205605,984427,NULL,NULL,NULL,0,NULL,NULL 77588,65085,248332,NULL,NULL,NULL,0,NULL,NULL 77589,231743,908666,NULL,NULL,NULL,0,NULL,NULL 77590,378354,724554,NULL,NULL,NULL,0,NULL,NULL 77591,214442,982170,NULL,NULL,NULL,0,NULL,NULL 77592,107167,442785,NULL,NULL,NULL,0,NULL,NULL 77593,190976,321731,Nice Question Yearling Nice Answer Notable Question Notable Question Good Question Notable Question Favorite Question Necromancer Popular Question Notable Question Popular Question Nice Question Famous Question Notable Question Good Question Popular Question Popular Question Famous Question Yearling Popular Question Popular Question Notable Question Good Question Notable Question Famous Question Documentation User Popular Question Popular Question Famous Question Good Question Popular Question Nice Answer Enlightened Announcer Famous Question Famous Question Yearling Nice Question Famous Question Notable Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 77594,162045,471335,Good Answer Commentator Yearling Notable Question Nice Answer Enlightened Guru Yearling Popular Question Census,NULL,NULL,0,NULL,NULL 77595,794452,201797,NULL,NULL,NULL,0,NULL,NULL 77596,194645,737918,NULL,NULL,NULL,0,NULL,NULL 77597,1014938,1120077,NULL,NULL,NULL,0,NULL,NULL 77598,133352,1078443,NULL,NULL,NULL,0,NULL,NULL 77599,481483,556298,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77600,824515,784802,NULL,NULL,NULL,0,NULL,NULL 77601,387899,1438559,NULL,NULL,NULL,0,NULL,NULL 77602,32457,1420102,NULL,NULL,NULL,0,NULL,NULL 77603,95869,1662,Popular Question Yearling Nice Question Nice Question Yearling Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77604,462037,220529,Notable Question Popular Question Popular Question Popular Question Yearling Nice Question Nice Answer Popular Question Popular Question Famous Question Yearling Good Question Custodian Enlightened Notable Question Yearling,NULL,NULL,0,NULL,NULL 77605,1450717,23136,Famous Question Good Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 77606,76317,1011400,NULL,NULL,NULL,0,NULL,NULL 77607,8749615,916278,Excavator Popular Question Yearling Popular Question Popular Question Caucus Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 77608,118760,916278,Excavator Popular Question Yearling Popular Question Popular Question Caucus Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 77609,891834,856976,Tumbleweed Caucus Constituent Documentation User Yearling Electorate Curious,NULL,NULL,0,NULL,NULL 77610,81660,429048,Necromancer Necromancer Yearling Necromancer Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77611,1179768,214083,Notable Question,NULL,NULL,0,NULL,NULL 77612,1325967,18347,NULL,NULL,NULL,0,NULL,NULL 77613,344042,1511481,Curious Self-Learner Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 77614,155463,69730,Popular Question,NULL,NULL,0,NULL,NULL 77615,739793,1357018,Autobiographer,NULL,NULL,0,NULL,NULL 77616,238621,1457798,Favorite Question Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 77617,94431,45509,Yearling,NULL,NULL,0,NULL,NULL 77618,790067,1046210,NULL,NULL,NULL,0,NULL,NULL 77619,129542,373856,NULL,NULL,NULL,0,NULL,NULL 77620,399875,674488,Commentator Popular Question Nice Question Necromancer Famous Question,NULL,NULL,0,NULL,NULL 77621,11192,153100,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77622,1022601,823192,NULL,NULL,NULL,0,NULL,NULL 77623,411120,1014596,NULL,NULL,NULL,0,NULL,NULL 77624,245204,1053396,NULL,NULL,NULL,0,NULL,NULL 77625,124004,936243,NULL,NULL,NULL,0,NULL,NULL 77626,264961,774177,Yearling Nice Question Nice Question Famous Question Good Question Yearling Notable Question Yearling Good Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 77627,1113583,949385,NULL,NULL,NULL,0,NULL,NULL 77628,466517,445603,NULL,NULL,NULL,0,NULL,NULL 77629,83856,845048,Yearling Popular Question Necromancer Yearling Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77630,18513,970426,Custodian Critic Informed Autobiographer Caucus Constituent Yearling Citizen Patrol Excavator,NULL,NULL,0,NULL,NULL 77631,98372,1241549,NULL,NULL,NULL,0,NULL,NULL 77632,1073726,214279,NULL,NULL,NULL,0,NULL,NULL 77633,145168,626209,Famous Question,NULL,NULL,0,NULL,NULL 77634,240134,288570,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77635,375761,644026,NULL,NULL,NULL,0,NULL,NULL 77636,914876,508989,NULL,NULL,NULL,0,NULL,NULL 77637,159871,1001338,Announcer,NULL,NULL,0,NULL,NULL 77638,47142,1029465,NULL,NULL,NULL,0,NULL,NULL 77639,645608,388481,NULL,NULL,NULL,0,NULL,NULL 77640,223249,226491,Famous Question Famous Question Popular Question Yearling Good Question Popular Question Nice Question Notable Question Popular Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 77641,61415,929522,Student Editor Scholar,NULL,NULL,0,NULL,NULL 77642,819535,1342016,Popular Question Tumbleweed Nice Question Popular Question Revival Notable Question,NULL,NULL,0,NULL,NULL 77643,64870,850357,NULL,NULL,NULL,0,NULL,NULL 77644,561037,850357,NULL,NULL,NULL,0,NULL,NULL 77645,46057,324098,Yearling Curious Yearling Yearling,NULL,NULL,0,NULL,NULL 77646,234900,613907,NULL,NULL,NULL,0,NULL,NULL 77647,37913,260303,Informed Notable Question Necromancer Yearling Popular Question Nice Answer Excavator Announcer Revival Autobiographer Yearling Notable Question Popular Question Announcer Notable Question Nice Question Revival Necromancer Tumbleweed Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77648,9860,325314,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 77649,382292,104170,objective-c Great Answer Yearling Revival Good Answer Popular Question Yearling iphone Caucus Documentation User Custodian Caucus Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 77650,358816,892135,NULL,NULL,NULL,0,NULL,NULL 77651,208710,253793,Yearling Necromancer Nice Answer Announcer Notable Question Nice Answer Famous Question Yearling Nice Answer Announcer Good Answer Announcer Notable Question Popular Question Guru Yearling Popular Question javascript Popular Question Great Answer,NULL,NULL,0,NULL,NULL 77652,346138,1396550,NULL,NULL,NULL,0,NULL,NULL 77653,820591,465448,Popular Question Yearling Good Question Popular Question Famous Question Popular Question Popular Question Popular Question Good Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77654,1504004,485467,NULL,NULL,NULL,0,NULL,NULL 77655,205615,712607,NULL,NULL,NULL,0,NULL,NULL 77656,69566,14637,Guru Nice Answer Nice Answer Nice Answer Popular Question Good Answer Revival Good Answer Booster Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Great Answer Guru Nice Answer Notable Question Famous Question Good Answer Nice Answer unix Famous Question Nice Answer Famous Question Nice Answer Enlightened Good Answer Nice Question Nice Answer Nice Answer Enlightened Yearling Nice Question Good Answer Good Answer Nice Question Good Answer Nice Answer Enlightened Great Answer Publicist Good Question Nice Answer Nice Answer Nice Question Notable Question Notable Question Guru Notable Question Famous Question Good Answer Nice Question Nice Question Nice Answer Guru Famous Question Guru Nice Answer Enlightened Nice Answer Notable Question Nice Answer Nice Answer Enlightened winapi Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Great Answer Nice Answer Popular Question Famous Question Notable Question Good Answer Guru multithreading Custodian Popular Question Nice Answer Guru Announcer Necromancer Nice Question Yearling Popular Question Good Answer Nice Answer Enlightened Nice Answer file latex Nice Answer Popular Question Good Answer Great Answer Popular Question Nice Answer Notable Question Guru Good Question Revival Great Answer Custodian Nice Answer Nice Answer Notable Question Good Question Great Answer Caucus Good Question Nice Answer Enlightened Nice Answer Great Answer Good Answer Good Answer Popular Question Good Answer python Necromancer Nice Answer Guru Good Answer Revival Popular Question Nice Answer Enlightened Great Answer Good Answer Yearling Good Question Good Answer Nice Question Notable Question Necromancer Nice Answer Enlightened Guru,NULL,How to add git repo as submodule of itself Or How to generate GitHub Pages programmatically git github git submodules pI want to start using href http pages github com rel noreferrer GitHub Pages for my project website This simply requires branch subtree named codegh pages code in the repo and serves up its content The problem is that part of the website manual changelog download page is auto generated by the build system so want to find the best way to commit these changes to the codegh pages code branch while the main repo remains on codemaster code or wherever ppTo commit to the codegh pages code branch could write script that clones the repo into temporary directory makes the modifications commits them and then pushes them back to the main repo But this sounds like an error prone process so hoping there is an easier way ppA friend suggested that might add the codegh pages code branch as submodule to the main repository ran little experiment but it doesn quite work ppre code git init mainInitialized empty Git repository in tmp main git cd main touch main txt git add git commit Initial commit in main branch master root commit 1c52a4e Initial commit in main branch files changed insertions deletions create mode 100644 main txt git symbolic ref HEAD refs heads gh pages rm git index git clean fdxRemoving main txt touch index html git add git commit Initial commit in website branch gh pages root commit 94b10f2 Initial commit in website branch files changed insertions deletions create mode 100644 index html git checkout masterSwitched to branch master git submodule add gh pages gh pagesrepo URL must be absolute or begin with git submodule add gh pages gh pagesremote origin does not have url defined in git config code prepI new to submodules have done some reading of course but don understand this behaviour Why does it need an codeorigin code remote Ideally want the submodule to always reference the repo that it resides in so it should not reference codeorigin code or any other remotes If somebody clones the repo and runs codegit submodule init git submodule update code it should ideally pull from the newly cloned repo ppIs it possible to add repo as submodule of itself Is it desirable Are there any pitfalls that need to be aware of Is there better way to achieve what want That branch doesn exist yet This is way to create new branch that is unrelated to any existing one guess googled this incantation somewhere pre codegrep Fxq FILENAME my list txt code prepThe exit status is true if the name was found false if not so ppre codeif grep Fxq FILENAME my list txtthen code if foundelse code if not foundfi code prepHere are the relevant sections of href http unixhelp ed ac uk CGI man cgi grep rel noreferrer the man page for codegrep code ppre codegrep options PATTERN FILE fixed strings Interpret PATTERN as list of fixed strings separated by new lines any of which is to be matched line regexp Select only those matches that exactly match the whole line quiet silent Quiet do not write anything to standard output Exit immedi ately with zero status if any match is found even if an error was detected Also see the or no messages option code pre That really weird and suggests that your grep is not POSIX compliant see here http pubs opengroup org onlinepubs 009604499 utilities grep html What OS distro grep are you using What does grep Fxq foo echo foo echo output get How about grep Fxq foo echo bar echo get,0,NULL,NULL 77657,730730,546416,Yearling Necromancer Necromancer Nice Question Yearling Necromancer Popular Question Good Question Revival,NULL,NULL,0,NULL,NULL 77658,620670,1031421,NULL,NULL,NULL,0,NULL,NULL 77659,303352,570946,NULL,NULL,NULL,0,NULL,NULL 77660,19619,318619,Yearling Revival Nice Answer Yearling Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 77661,187222,904857,NULL,NULL,NULL,0,NULL,NULL 77662,666156,812117,NULL,NULL,NULL,0,NULL,NULL 77663,474307,599743,Necromancer Commentator Announcer Critic Popular Question Curious,NULL,NULL,0,NULL,NULL 77664,2368,183823,Popular Question Necromancer Necromancer,NULL,NULL,0,NULL,NULL 77665,51975,1043757,Popular Question Yearling Necromancer Curious Nice Answer Popular Question Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 77666,117179,1222582,NULL,NULL,NULL,0,NULL,NULL 77667,233368,282658,Taxonomist Nice Answer Yearling Favorite Question Famous Question Nice Answer Nice Answer Nice Answer Guru Nice Answer programming-languages Yearling Famous Question Nice Answer Good Answer Yearling Favorite Question Good Answer Popular Question Guru,NULL,NULL,0,NULL,NULL 77668,199265,826317,NULL,NULL,NULL,0,NULL,NULL 77669,38129,630974,NULL,NULL,NULL,0,NULL,NULL 77670,240052,317394,NULL,NULL,NULL,0,NULL,NULL 77671,149649,397113,NULL,NULL,NULL,0,NULL,NULL 77672,799725,1169171,Informed Announcer Autobiographer,NULL,NULL,0,NULL,NULL 77673,308782,1396259,Teacher,NULL,NULL,0,NULL,NULL 77674,102496,826306,NULL,NULL,NULL,0,NULL,NULL 77675,98302,1171229,NULL,NULL,NULL,0,NULL,NULL 77676,1134275,1080845,NULL,NULL,NULL,0,NULL,NULL 77677,43216,750768,Necromancer Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 77678,51428,1028790,NULL,NULL,NULL,0,NULL,NULL 77679,741269,280909,Caucus Yearling Informed,NULL,NULL,0,NULL,NULL 77680,21071,637611,NULL,NULL,NULL,0,NULL,NULL 77681,881737,1332725,NULL,NULL,NULL,0,NULL,NULL 77682,85353,226697,Good Answer,NULL,NULL,0,NULL,NULL 77683,410841,659671,NULL,NULL,NULL,0,NULL,NULL 77684,5355614,659671,NULL,NULL,NULL,0,NULL,NULL 77685,549460,1485401,Popular Question Critic Commentator Curious Informed Yearling Autobiographer Organizer Enthusiast Popular Question Citizen Patrol Fanatic Self-Learner Civic Duty,NULL,NULL,0,NULL,NULL 77686,107155,2501,Notable Question,NULL,NULL,0,NULL,NULL 77687,207351,588041,NULL,NULL,NULL,0,NULL,NULL 77688,280776,1522045,Popular Question Informed Scholar Supporter Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 77689,2409597,850524,Nice Question,NULL,NULL,0,NULL,NULL 77690,2613319,1049472,NULL,NULL,NULL,0,NULL,NULL 77691,474256,587976,NULL,NULL,NULL,0,NULL,NULL 77692,1663,598272,NULL,NULL,NULL,0,NULL,NULL 77693,700917,98525,Yearling Reviewer Custodian Announcer Taxonomist Custodian Nice Answer Enthusiast Announcer Favorite Question Peer Pressure Popular Question Yearling Announcer Great Answer Documentation User Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 77694,650483,1084344,NULL,NULL,NULL,0,NULL,NULL 77695,47937,619231,Proofreader Yearling Revival Good Answer Enthusiast Caucus Constituent Notable Question Guru Yearling Nice Answer Enlightened Census Yearling Nice Answer Notable Question Custodian,NULL,NULL,0,NULL,NULL 77696,3256391,1133521,NULL,NULL,NULL,0,NULL,NULL 77697,1042833,1531742,NULL,NULL,NULL,0,NULL,NULL 77698,164138,1111898,Citizen Patrol,NULL,NULL,0,NULL,NULL 77699,465992,1037528,NULL,NULL,NULL,0,NULL,NULL 77700,54397,709315,NULL,NULL,NULL,0,NULL,NULL 77701,103410,1146875,NULL,NULL,NULL,0,NULL,NULL 77702,195440,924535,Teacher Autobiographer Yearling Good Question Popular Question Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 77703,267599,557195,NULL,NULL,NULL,0,NULL,NULL 77704,319142,54623,Favorite Question Notable Question Yearling Nice Question Popular Question Famous Question Necromancer Yearling Popular Question Nice Question Famous Question Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77705,1348662,1334930,Yearling Popular Question Revival Custodian Census Necromancer Necromancer Census Yearling Caucus Constituent Explainer Autobiographer Nice Answer Notable Question,NULL,strongUPDATE 2013 10 29 strong Please see my other answer as well which has JavaScript instead of CoffeeScript by popular demand as well as boilerplate github repo and an extensive README detailing my latest recommendations on this topic pp strongConfig strong ppWhat you are doing is fine like to have my own config namespace set up in top level codeconfig coffee code file with nested namespace like this ppre code Set the current environment to true in the env objectcurrentEnv process env NODE ENV or development exports appName MyApp exports env production false staging false test false development falseexports env currentEnv trueexports log path dirname var log app currentEnv log exports server port 9600 In staging and production listen loopback nginx listens on the network ip 127 if currentEnv not in production staging exports enableTests true Listen on all IPs in dev test for testing from other machines exports server ip exports db URL mongodb localhost 27017 exports appName toLowerCase currentEnv code prepThis is friendly for sysadmin editing Then when need something like the DB connection info it ppre coderequire config db URL code prep strongRoutes Controllers strong ppI like to leave my routes with my controllers and organize them in an codeapp controllers code subdirectory Then can load them up and let them add whatever routes they need ppIn my codeapp server coffee code coffeescript file do ppre code api authorization authentication domains users stylesheets javascripts tests sales map controllerName gt controller require controllers controllerName controller setup app code prepSo have files like ppre codeapp controllers api coffeeapp controllers authorization coffeeapp controllers authentication coffeeapp controllers domains coffee code prepAnd for example in my domains controller have codesetup code function like this ppre codeexports setup app gt controller new exports DomainController route domains app post route controller create app put route api needId app delete route api needId route domains id app put route controller loadDomain controller update app del route controller loadDomain exports delete app get route controller loadDomain req res gt res sendJSON req domain status OK code prep strongViews strong ppPutting views in codeapp views code is becoming the customary place lay it out like this ppre codeapp views layout jadeapp views about jadeapp views user EditUser jadeapp views domain EditDomain jade code prep strongStatic Files strong ppGo in codepublic code subdirectory pp strongGithub Semver NPM strong ppPut README md markdown file at your git repo root for github ppPut package json file with href http semver org semantic version number in your git repo root for NPM am new to Node and am trying to understand the full context of the setup method Also this part controller new exports DomainController why exactly DomainController is prefixed with exports,0,NULL,NULL 77706,1368589,1123007,Editor Excavator Scholar,NULL,NULL,0,NULL,NULL 77707,9019755,1146023,Yearling Popular Question Nice Question Nice Answer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 77708,50376,727444,Yearling Good Answer Yearling Custodian,NULL,NULL,0,NULL,NULL 77709,361648,244960,NULL,NULL,NULL,0,NULL,NULL 77710,20551,143585,Nice Answer Yearling Nice Answer Great Answer Nice Question Good Answer Guru Good Answer Guru Popular Question Notable Question Good Question Yearling Good Answer Good Answer Documentation User Notable Question Caucus Good Answer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 77711,165311,1182254,NULL,NULL,NULL,0,NULL,NULL 77712,320974,242908,NULL,NULL,NULL,0,NULL,NULL 77713,400466,1549474,Informed Yearling Yearling Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 77714,651468,1475220,Notable Question Notable Question Yearling Good Question Nice Question Notable Question Nice Question Famous Question Famous Question Nice Question Famous Question Good Question Yearling Popular Question Good Question Famous Question Popular Question Popular Question Popular Question Favorite Question Popular Question Yearling Popular Question Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 77715,13770,911563,NULL,NULL,NULL,0,NULL,NULL 77716,13705,59968,Notable Question Notable Question Notable Question Good Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77717,237545,59547,NULL,NULL,NULL,0,NULL,NULL 77718,925547,806374,Popular Question Yearling Caucus Critic Famous Question Caucus Constituent Documentation User Custodian Good Answer Custodian Caucus Famous Question,NULL,NULL,0,NULL,NULL 77719,83561,896841,NULL,NULL,NULL,0,NULL,NULL 77720,322251,1509803,Notable Question,NULL,NULL,0,NULL,NULL 77721,144283,61761,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 77722,1951698,566783,Notable Question Notable Question Yearling Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 77723,33722,826076,Popular Question Notable Question Commentator,NULL,NULL,0,NULL,NULL 77724,381044,876621,NULL,NULL,NULL,0,NULL,NULL 77725,9311176,188574,Critic Popular Question Informed Self-Learner Popular Question Popular Question Yearling Popular Question Revival Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 77726,69467,188574,Critic Popular Question Informed Self-Learner Popular Question Popular Question Yearling Popular Question Revival Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 77727,1314016,578005,NULL,NULL,NULL,0,NULL,NULL 77728,3518910,578005,NULL,NULL,NULL,0,NULL,NULL 77729,69742,954031,Yearling Critic Caucus Good Answer,NULL,NULL,0,NULL,NULL 77730,437014,95357,Nice Question Yearling Necromancer Nice Answer Enlightened Populist Pundit Nice Answer Revival Revival Yearling Necromancer Announcer Good Answer Necromancer Guru Great Answer Nice Answer Yearling Necromancer Great Answer Nice Answer Popular Question Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 77731,437013,36955,NULL,NULL,NULL,0,NULL,NULL 77732,48038,831285,NULL,NULL,NULL,0,NULL,NULL 77733,91639,454972,Informed,NULL,NULL,0,NULL,NULL 77734,119464,462518,Nice Answer,NULL,NULL,0,NULL,NULL 77735,2620106,676404,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 77736,219404,401353,Good Answer Good Answer Notable Question Nice Question Guru Nice Question Commentator Yearling Revival Notable Question Famous Question Great Answer Caucus Nice Answer Popular Question Good Question Nice Question Nice Question Notable Question Popular Question Necromancer Good Question Nice Answer Enlightened Nice Question Popular Question Popular Question Yearling Nice Answer Notable Question Good Question Popular Question Popular Question Famous Question Popular Question Good Question Self-Learner Notable Question Good Answer Nice Answer Notable Question Yearling Favorite Question Nice Question Necromancer angular Notable Question,NULL,NULL,0,NULL,NULL 77737,135611,1115286,NULL,NULL,NULL,0,NULL,NULL 77738,246990,881195,Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 77739,12732,929950,NULL,NULL,NULL,0,NULL,NULL 77740,60210,46040,Good Answer Famous Question Nice Answer Nice Answer Yearling Good Question Necromancer Necromancer Yearling Necromancer Census Good Answer,NULL,NULL,0,NULL,NULL 77741,340587,218501,NULL,NULL,NULL,0,NULL,NULL 77742,63622,324658,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 77743,443572,272742,Announcer Announcer Yearling Popular Question Announcer Announcer Announcer Booster Nice Question Announcer Booster Popular Question Famous Question Booster Booster Popular Question Announcer Popular Question Famous Question Booster Announcer Notable Question Booster Yearling Documentation User Popular Question Announcer Booster Announcer Announcer Good Question Popular Question Announcer Booster Yearling,NULL,NULL,0,NULL,NULL 77744,315823,1008409,Yearling Popular Question Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 77745,243308,56315,Good Answer Disciplined Organizer Yearling Excavator,NULL,NULL,0,NULL,NULL 77746,371860,188027,NULL,NULL,NULL,0,NULL,NULL 77747,914847,757445,Critic,NULL,NULL,0,NULL,NULL 77748,147523,82733,Popular Question Favorite Question Popular Question Yearling Popular Question Notable Question Popular Question Good Answer Popular Question Popular Question Notable Question Notable Question Famous Question Good Question Popular Question Nice Question Yearling Popular Question Popular Question Great Question Popular Question Favorite Question Yearling Great Question Popular Question Famous Question Notable Question Favorite Question,NULL,NULL,0,NULL,NULL 77749,9537124,539992,NULL,NULL,NULL,0,NULL,NULL 77750,236670,418595,Popular Question Notable Question Popular Question Curious,NULL,NULL,0,NULL,NULL 77751,243691,470535,Yearling Nice Answer Notable Question Nice Answer Enlightened Yearling Announcer Autobiographer Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77752,38893,4773,Yearling,NULL,NULL,0,NULL,NULL 77753,40987,1564223,Commentator Famous Question Popular Question Caucus Critic Curious Yearling Nice Question Yearling Popular Question Good Question Nice Question Notable Question Caucus Revival Promoter,NULL,NULL,0,NULL,NULL 77754,26973,1176415,Notable Question,NULL,NULL,0,NULL,NULL 77755,312874,551157,Popular Question,NULL,NULL,0,NULL,NULL 77756,460915,676086,NULL,NULL,NULL,0,NULL,NULL 77757,79716,857046,NULL,NULL,NULL,0,NULL,NULL 77758,1452107,1126887,NULL,NULL,NULL,0,NULL,NULL 77759,775323,1126887,NULL,NULL,NULL,0,NULL,NULL 77760,237485,436055,Yearling Nice Answer Nice Answer Enlightened Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 77761,934248,238723,Yearling,NULL,NULL,0,NULL,NULL 77762,31894,471420,Revival Notable Question Yearling Popular Question Necromancer Popular Question Caucus,NULL,NULL,0,NULL,NULL 77763,94644,649522,NULL,NULL,NULL,0,NULL,NULL 77764,87111,202358,NULL,NULL,NULL,0,NULL,NULL 77765,1513650,1314475,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77766,714775,431021,NULL,NULL,NULL,0,NULL,NULL 77767,289072,843008,Yearling Organizer Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77768,140822,580633,NULL,NULL,NULL,0,NULL,NULL 77769,409725,427892,NULL,NULL,NULL,0,NULL,NULL 77770,15968,429082,Announcer Yearling Nice Answer Enlightened Famous Question Yearling Documentation User Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 77771,208327,942590,NULL,NULL,NULL,0,NULL,NULL 77772,128386,800075,Curious,NULL,NULL,0,NULL,NULL 77773,1538,356060,Yearling Nice Answer Popular Question Announcer Necromancer Announcer Announcer Yearling Announcer Announcer Announcer ruby-on-rails Tenacious Yearling,NULL,NULL,0,NULL,NULL 77774,745750,1503060,Popular Question,NULL,NULL,0,NULL,NULL 77775,10000,76440,Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 77776,3870494,612492,NULL,NULL,NULL,0,NULL,NULL 77777,378713,612492,NULL,NULL,NULL,0,NULL,NULL 77778,101605,1270776,Supporter Popular Question,NULL,NULL,0,NULL,NULL 77779,752888,90629,NULL,NULL,NULL,0,NULL,NULL 77780,12937,24433,Nice Answer Custodian Fanatic Enlightened Nice Answer Yearling php slim Guru Great Answer Yearling Documentation User Popular Question Yearling,NULL,pHere how you can debug CORS requests using curl pp strongSending regular CORS request using cUrl strong ppre codecurl Origin http example com verbose https www googleapis com discovery v1 apis fields code prepThe code Origin http example com code flag is the third party domain making the request Substitute in whatever your domain is ppThe code verbose code flag prints out the entire response so you can see the request and response headers ppThe url using above is sample request to Google API that supports CORS but you can substitute in whatever url you are testing ppThe response should include the codeAccess Control Allow Origin code header pp strongSending preflight request using cUrl strong ppre codecurl Origin http example com Access Control Request Method POST Access Control Request Headers Requested With OPTIONS verbose https www googleapis com discovery v1 apis fields code prepThis looks similar to the regular CORS request with few additions ppThe code code flags send additional preflight request headers to the server ppThe code OPTIONS code flag indicates that this is an HTTP OPTIONS request ppIf the preflight request is successful the response should include the codeAccess Control Allow Origin code codeAccess Control Allow Methods code and codeAccess Control Allow Headers code response headers If the preflight request was not successful these headers shouldn appear or the HTTP response won be 200 ppYou can also specify additional headers such as codeUser Agent code by using the code code flag Use include to see the headers,0,NULL,NULL 77781,821961,136725,Notable Question Enlightened Yearling Good Answer Yearling Caucus Guru Yearling,NULL,NULL,0,NULL,NULL 77782,898360,249587,NULL,NULL,NULL,0,NULL,NULL 77783,390169,1362749,Notable Question,NULL,NULL,0,NULL,NULL 77784,51702,248874,Yearling Yearling Famous Question Good Answer Yearling Good Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77785,43284,1119997,Popular Question Popular Question Nice Answer Notable Question Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question Nice Answer Caucus Nice Question Yearling Popular Question Good Answer Popular Question Famous Question Nice Answer Caucus Constituent Necromancer Notable Question Popular Question Yearling Good Answer Popular Question Popular Question Announcer Popular Question Nice Answer Popular Question Popular Question Good Question Popular Question Notable Question Necromancer,NULL,NULL,0,NULL,NULL 77786,30184,958058,NULL,NULL,NULL,0,NULL,NULL 77787,311069,11594,Student Supporter,NULL,NULL,0,NULL,NULL 77788,101268,992332,Revival,NULL,NULL,0,NULL,NULL 77789,353748,430706,Critic Citizen Patrol Informed,NULL,NULL,0,NULL,NULL 77790,780151,734863,NULL,NULL,NULL,0,NULL,NULL 77791,103706,1199168,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 77792,1261924,650619,Notable Question,NULL,NULL,0,NULL,NULL 77793,90138,277222,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 77794,218646,624243,NULL,NULL,NULL,0,NULL,NULL 77795,159061,994210,Yearling Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 77796,187759,574418,NULL,NULL,NULL,0,NULL,NULL 77797,1569979,1496579,Necromancer Revival Nice Answer,NULL,NULL,0,NULL,NULL 77798,42352,1154423,Supporter Documentation User,NULL,NULL,0,NULL,NULL 77799,894151,1154423,Supporter Documentation User,NULL,NULL,0,NULL,NULL 77800,334026,1150857,Popular Question Critic,NULL,NULL,0,NULL,NULL 77801,109139,1096779,NULL,NULL,NULL,0,NULL,NULL 77802,98614,668937,NULL,NULL,NULL,0,NULL,NULL 77803,368764,229146,NULL,NULL,NULL,0,NULL,NULL 77804,131388,17175,jni Revival Nice Answer Yearling Custodian Good Answer Yearling Nice Answer Enlightened Nice Answer Revival Yearling Revival Custodian,NULL,NULL,0,NULL,NULL 77805,65763,1057940,Nice Question Nice Answer Notable Question Yearling,NULL,NULL,0,NULL,NULL 77806,53682,102386,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 77807,54547,375616,Famous Question Popular Question Popular Question Yearling Famous Question Good Question Good Answer Notable Question Popular Question Notable Question Critic Popular Question Popular Question Yearling,NULL,NULL,1,Howto include clojure spec functions in test suite unit testing clojure generative testing pIs there anyway to include clojure spec functions in generalized test suite know we can href http clojure org guides spec registry rel noreferrer register specs and directly href http clojure org guides spec spec ing functions rel noreferrer spec functions ppre code ns foo require clojure spec as clojure spec test as stest defn average list sum list count list sum list count fdef average args and cat list sum float list count integer not zero list count ret number code prepAnd later if want to run generative tests against that spec function can use codestest check code ppre code gt stest check average spec object clojure spec fspec impl reify 14282 0x68e9f37c clojure spec fspec impl reify 14282 clojure spec test check ret result true num tests 1000 seed 1479587517232 sym edgar core analysis lagging average code prepBut strong emi em strong is there anyway to include these test runs in my general test suite thinking of the kind of codeclojure test code integration that href https github com clojure test check clojuretest integration rel noreferrer test check has The closest thing that can see strong emii em strong is the codestest instrument code see href http clojure github io clojure branch master clojure spec api html clojure spec test instrument rel noreferrer here function But that seems to just let us turn on checking at the repl Not quite what want Also strong emiii em strong are function specs registered ppre code defspec foo test 100 NOT this prop for all but THIS stest some unknown spec fn foo code pre,NULL 77808,1233813,441475,NULL,NULL,NULL,0,NULL,NULL 77809,90594,657606,Yearling,NULL,NULL,0,NULL,NULL 77810,1377673,242925,Yearling Nice Answer Caucus Yearling Popular Question Self-Learner Custodian Yearling Popular Question Caucus Constituent,NULL,NULL,0,NULL,NULL 77811,446138,1555103,NULL,NULL,NULL,0,NULL,NULL 77812,1184926,402565,NULL,NULL,NULL,0,NULL,NULL 77813,3749764,108796,Nice Answer javascript Nice Answer Custodian Famous Question Good Answer Good Answer Populist Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Guru Guru Yearling Popular Question Nice Answer Nice Answer Guru Guru Nice Answer Census linq Yearling Good Answer Nice Answer Enlightened Documentation User Good Answer Nice Answer Guru Guru Good Answer Yearling Good Answer Nice Answer Enlightened Great Answer Nice Answer Popular Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 77814,532149,1177686,NULL,NULL,NULL,0,NULL,NULL 77815,337121,448857,NULL,NULL,NULL,0,NULL,NULL 77816,356143,446815,NULL,NULL,NULL,0,NULL,NULL 77817,229957,372489,NULL,NULL,NULL,0,NULL,NULL 77818,460847,300823,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 77819,888937,116639,Guru Nice Answer Nice Answer Enlightened Guru Nice Answer Good Answer Nice Answer Nice Answer Enlightened Yearling Guru Nice Answer Nice Answer Populist Great Answer Necromancer Necromancer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Good Answer Nice Answer Famous Question Good Answer Announcer Yearling Nice Answer Enlightened Good Answer Nice Question database Favorite Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Census Nice Answer Great Question Announcer Guru Nice Answer Great Answer Yearling Announcer Good Answer Nice Answer Nice Answer,NULL,NULL,0,NULL,NULL 77820,1203427,567673,NULL,NULL,NULL,0,NULL,NULL 77821,692766,1518970,NULL,NULL,NULL,0,NULL,NULL 77822,692759,1016806,Nice Question Good Question Popular Question Popular Question Popular Question Popular Question Popular Question Scholar Self-Learner Student Supporter Teacher Notable Question Notable Question Notable Question Yearling Commentator Yearling Curious Famous Question Popular Question,NULL,NULL,0,NULL,NULL 77823,232962,265832,NULL,NULL,NULL,0,NULL,NULL 77824,486074,159876,Notable Question Great Answer Yearling Yearling Nice Question Yearling Custodian,NULL,NULL,0,NULL,NULL 77825,2951962,906372,NULL,NULL,NULL,0,NULL,NULL 77826,1130694,906372,NULL,NULL,NULL,0,NULL,NULL 77827,910808,1564172,NULL,NULL,NULL,0,NULL,NULL 77828,24307,34746,Popular Question Popular Question Yearling Notable Question Documentation Pioneer Nice Question Documentation User,NULL,NULL,0,NULL,NULL 77829,175596,929796,Popular Question Yearling Notable Question Necromancer Yearling Nice Answer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 77830,1264299,1007830,NULL,NULL,NULL,0,NULL,NULL 77831,6789,149089,NULL,NULL,NULL,0,NULL,NULL 77832,2056910,331759,Civic Duty Necromancer Yearling Necromancer Revival Yearling Necromancer Caucus Nice Answer Enlightened Necromancer Custodian Popular Question Citizen Patrol Custodian Yearling Custodian Custodian Notable Question,NULL,NULL,0,NULL,NULL 77833,159645,1069099,NULL,NULL,NULL,0,NULL,NULL 77834,193151,136328,Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 77835,227431,730123,Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 77836,170402,1237050,NULL,NULL,NULL,0,NULL,NULL 77837,106409,929851,Yearling Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 77838,108169,349099,NULL,NULL,NULL,0,NULL,NULL 77839,775184,904245,Teacher Informed Commentator Notable Question,NULL,NULL,0,NULL,NULL 77840,231532,213897,NULL,NULL,NULL,0,NULL,NULL 77841,162036,732812,NULL,NULL,NULL,0,NULL,NULL 77842,131346,1161320,NULL,NULL,NULL,0,NULL,NULL 77843,211353,354642,Yearling Good Answer Self-Learner,NULL,NULL,0,NULL,NULL 77844,45760,1255626,Teacher Supporter Student Scholar,NULL,NULL,0,NULL,NULL 77845,1566596,939857,Supporter Scholar Teacher Curious Enthusiast Commentator,NULL,NULL,0,NULL,NULL 77846,287594,1016201,NULL,NULL,NULL,0,NULL,NULL 77847,575844,1016201,NULL,NULL,NULL,0,NULL,NULL 77848,741799,763451,NULL,NULL,NULL,0,NULL,NULL 77849,63693,540238,NULL,NULL,NULL,0,NULL,NULL 77850,378357,722484,NULL,NULL,NULL,0,NULL,NULL 77851,209424,822380,NULL,NULL,NULL,0,NULL,NULL 77852,692270,644781,NULL,NULL,NULL,0,NULL,NULL 77853,2957,1232702,NULL,NULL,NULL,0,NULL,NULL 77854,21705,986971,Popular Question Yearling Notable Question Popular Question Notable Question Caucus Peer Pressure Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77855,4961252,309545,Curious Notable Question,NULL,NULL,0,NULL,NULL 77856,85052,1413581,NULL,NULL,NULL,0,NULL,NULL 77857,420063,1558005,NULL,NULL,NULL,0,NULL,NULL 77858,43206,1135878,Supporter Revival,NULL,NULL,0,NULL,NULL 77859,195470,1262854,Teacher,NULL,NULL,0,NULL,NULL 77860,2252297,1262854,Teacher,NULL,NULL,0,NULL,NULL 77861,44428,435472,NULL,NULL,NULL,0,NULL,NULL 77862,6001,509053,NULL,NULL,NULL,0,NULL,NULL 77863,26315,216314,Necromancer Good Answer Necromancer Good Question Revival Good Answer Notable Question Great Answer Necromancer Yearling Popular Question Revival Good Answer Good Answer Notable Question Popular Question Popular Question Caucus Nice Question Custodian Notable Question Notable Question Yearling Popular Question Nice Answer Famous Question Peer Pressure Necromancer Nice Answer Necromancer Guru Populist Good Answer Yearling,NULL,NULL,0,NULL,NULL 77864,196091,1516036,NULL,NULL,NULL,0,NULL,NULL 77865,447884,1333503,NULL,NULL,NULL,0,NULL,NULL 77866,530562,650159,NULL,NULL,NULL,0,NULL,NULL 77867,181181,184052,NULL,NULL,NULL,0,NULL,NULL 77868,9807,743245,Nice Answer Yearling Notable Question Nice Answer Enlightened Custodian Census Yearling Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 77869,329368,1032692,NULL,NULL,NULL,0,NULL,NULL 77870,290348,401060,Yearling Good Answer Necromancer Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 77871,251620,207415,Nice Answer Enlightened Nice Answer Documentation User Yearling,NULL,NULL,0,NULL,NULL 77872,2675458,627040,Popular Question,NULL,NULL,0,NULL,NULL 77873,3350693,730075,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 77874,2084871,730075,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 77875,426964,292345,NULL,NULL,NULL,0,NULL,NULL 77876,331053,768270,Revival Revival Autobiographer,NULL,NULL,0,NULL,NULL 77877,352672,299275,NULL,NULL,NULL,0,NULL,NULL 77878,169768,1050340,NULL,NULL,NULL,0,NULL,NULL 77879,525006,129686,Yearling Caucus Organizer Good Question Commentator Excavator Citizen Patrol Custodian,NULL,NULL,0,NULL,NULL 77880,745296,977886,NULL,NULL,NULL,0,NULL,NULL 77881,556586,1023216,Famous Question Nice Answer Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Custodian Custodian Custodian Revival Nice Question Notable Question Yearling Caucus Constituent Guru Famous Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Good Question Notable Question Notable Question Caucus Nice Question Constituent Famous Question Nice Question Yearling Popular Question Notable Question Notable Question Caucus Popular Question Constituent Popular Question Necromancer Popular Question Nice Question Necromancer Popular Question Good Answer Yearling Good Question Popular Question,NULL,NULL,0,NULL,NULL 77882,33525,456551,Good Answer Custodian Documentation User Custodian Yearling Commentator Necromancer Civic Duty Enthusiast,NULL,NULL,0,NULL,NULL 77883,394379,710047,Tumbleweed Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 77884,73319,862862,Revival Custodian Necromancer Good Answer Necromancer Nice Answer Necromancer Revival Notable Question Guru Revival Nice Answer Yearling Revival Nice Answer Good Answer Nice Answer Necromancer Popular Question Necromancer Nice Answer Populist Notable Question Revival Necromancer Necromancer Good Answer Revival Good Answer Necromancer Revival Necromancer Nice Answer Necromancer Nice Answer Necromancer Excavator Nice Answer Necromancer Necromancer Necromancer Necromancer Necromancer Nice Answer Good Answer Yearling Announcer Nice Answer Nice Answer Good Answer Necromancer Necromancer Necromancer Necromancer Announcer Necromancer Necromancer Necromancer Necromancer Nice Answer Nice Answer Good Answer Populist Nice Answer Nice Answer Nice Answer Necromancer Revival Nice Answer Nice Answer Nice Question Necromancer Yearling Necromancer Nice Answer Necromancer Announcer Necromancer Populist,NULL,pypi UserWarning Unknown distribution option install requires python distutils pypi pDoes anybody encounter this warning when executing codepython setup py install code of PyPI package pp codeinstall requires code defines what the package requires lot of PyPI packages have this option How can it be an unknown distribution option maybe but this question was asked earlier than that one pypi UserWarning Unknown distribution option install requires python distutils pypi pDoes anybody encounter this warning when executing codepython setup py install code of PyPI package pp codeinstall requires code defines what the package requires lot of PyPI packages have this option How can it be an unknown distribution option if you read this thread carefully you will realize that there isn perfect answer at all So don know which answer to accept don want to mislead people by selecting an answer which cannot even convince myself,0,NULL,NULL 77885,299104,1363300,NULL,NULL,NULL,0,NULL,NULL 77886,112882,1185503,NULL,NULL,NULL,0,NULL,NULL 77887,419540,509035,Good Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77888,113634,1475039,Yearling,NULL,NULL,0,NULL,NULL 77889,487926,1273008,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77890,131663,918618,NULL,NULL,NULL,0,NULL,NULL 77891,12180,535846,NULL,NULL,NULL,0,NULL,NULL 77892,241778,296553,NULL,NULL,NULL,0,NULL,NULL 77893,20165,43278,NULL,NULL,NULL,0,NULL,NULL 77894,96852,498975,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 77895,61645,835817,NULL,NULL,NULL,0,NULL,NULL 77896,20300,551579,Supporter,NULL,NULL,0,NULL,NULL 77897,159781,313660,NULL,NULL,NULL,0,NULL,NULL 77898,63584,720942,NULL,NULL,NULL,0,NULL,NULL 77899,28193,761641,NULL,NULL,NULL,0,NULL,NULL 77900,88423,63598,Famous Question Yearling Enthusiast,NULL,NULL,0,NULL,NULL 77901,3297879,1386203,NULL,NULL,NULL,0,NULL,NULL 77902,514628,770340,NULL,NULL,NULL,0,NULL,NULL 77903,16332,492952,NULL,NULL,NULL,0,NULL,NULL 77904,318566,325237,NULL,NULL,NULL,0,NULL,NULL 77905,73805,310292,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77906,774515,963930,NULL,NULL,NULL,0,NULL,NULL 77907,190591,707226,Tumbleweed,NULL,NULL,0,NULL,NULL 77908,64954,47472,Famous Question Notable Question Notable Question Nice Question Famous Question Nice Question Famous Question Famous Question Yearling Good Question Necromancer Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 77909,431068,527227,Nice Answer Nice Answer Enlightened Guru Popular Question Yearling Good Answer Nice Answer Nice Answer Yearling Nice Answer Notable Question Guru Great Answer Yearling,NULL,NULL,0,NULL,NULL 77910,2785958,304435,Yearling Famous Question Notable Question Nice Question Notable Question Popular Question Favorite Question Inquisitive Peer Pressure Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 77911,507762,304435,Yearling Famous Question Notable Question Nice Question Notable Question Popular Question Favorite Question Inquisitive Peer Pressure Popular Question Great Question Yearling,NULL,NULL,0,NULL,NULL 77912,463010,1183452,Curious Custodian Popular Question Revival Tumbleweed Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 77913,17542,791590,Census,NULL,NULL,0,NULL,NULL 77914,205297,82993,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 77915,87933,1026482,Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 77916,333518,1144397,Census,NULL,NULL,0,NULL,NULL 77917,331611,1287514,NULL,NULL,NULL,0,NULL,NULL 77918,207894,1071836,NULL,NULL,NULL,0,NULL,NULL 77919,916677,935275,NULL,NULL,NULL,0,NULL,NULL 77920,198537,641675,NULL,NULL,NULL,0,NULL,NULL 77921,1204123,929303,NULL,NULL,NULL,0,NULL,NULL 77922,72975,341541,Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer cassandra Yearling Popular Question Taxonomist Yearling Guru python Yearling Investor Altruist Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77923,244130,732598,NULL,NULL,NULL,0,NULL,NULL 77924,7384684,1062977,NULL,NULL,NULL,0,NULL,NULL 77925,231041,1062977,NULL,NULL,NULL,0,NULL,NULL 77926,252544,154044,Nice Answer Yearling Nice Question Famous Question,NULL,NULL,0,NULL,NULL 77927,91146,8873,Nice Question Yearling Nice Question Famous Question Yearling Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 77928,1050599,824026,Editor,NULL,NULL,0,NULL,NULL 77929,905229,971553,NULL,NULL,NULL,0,NULL,NULL 77930,3328678,612367,Yearling Guru Nice Question Yearling Nice Answer Famous Question Nice Answer Nice Answer Custodian Yearling Notable Question Nice Answer Nice Answer Popular Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77931,212623,612367,Yearling Guru Nice Question Yearling Nice Answer Famous Question Nice Answer Nice Answer Custodian Yearling Notable Question Nice Answer Nice Answer Popular Question Good Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77932,752673,785406,NULL,NULL,NULL,0,NULL,NULL 77933,87142,362790,Announcer Yearling Autobiographer Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 77934,233447,1207860,Popular Question,NULL,NULL,0,NULL,NULL 77935,12138,1069913,NULL,NULL,NULL,0,NULL,NULL 77936,25948,511651,NULL,NULL,NULL,0,NULL,NULL 77937,240928,635174,NULL,NULL,NULL,0,NULL,NULL 77938,9371953,595292,NULL,NULL,NULL,0,NULL,NULL 77939,518603,595292,NULL,NULL,NULL,0,NULL,NULL 77940,635451,37814,NULL,NULL,NULL,0,NULL,NULL 77941,1483360,1319870,Informed Student Necromancer,NULL,NULL,0,NULL,NULL 77942,1076445,501325,Commentator Popular Question Teacher Notable Question Nice Question,NULL,NULL,0,NULL,NULL 77943,61729,527630,Yearling,NULL,NULL,0,NULL,NULL 77944,505489,385070,NULL,NULL,NULL,0,NULL,NULL 77945,2382594,828686,NULL,NULL,NULL,0,NULL,NULL 77946,1230455,828686,NULL,NULL,NULL,0,NULL,NULL 77947,53387,64667,Yearling Nice Answer Good Question,NULL,NULL,0,NULL,NULL 77948,119585,1473618,NULL,NULL,NULL,0,NULL,NULL 77949,1327404,1006319,NULL,NULL,NULL,0,NULL,NULL 77950,115172,219604,Custodian Popular Question Great Question Popular Question Custodian Autobiographer Revival Revival Yearling Popular Question Good Answer Self-Learner Famous Question Famous Question Notable Question Notable Question Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 77951,720587,258065,Yearling Excavator Notable Question Popular Question Yearling Nice Answer Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 77952,37468,258065,Yearling Excavator Notable Question Popular Question Yearling Nice Answer Famous Question Yearling Announcer,NULL,NULL,0,NULL,NULL 77953,129512,701317,Scholar Commentator Student,NULL,NULL,0,NULL,NULL 77954,157142,765357,Great Answer Famous Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Famous Question Popular Question Popular Question Nice Question Yearling Notable Question Notable Question Popular Question Nice Answer Famous Question Good Question Famous Question Nice Question Notable Question Nice Question Nice Question Notable Question Nice Question Popular Question Popular Question Nice Question Popular Question Notable Question Yearling Notable Question Good Question Nice Question Popular Question Nice Question Good Answer Nice Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Famous Question Yearling Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Good Question,NULL,Temporarily unscope model associations ruby on rails activerecord pAssume you have two models ppre codeclass Walrus lt ActiveRecord Base default scope where destroyed at IS NULL has many bubbles dependent destroyendclass Bubble lt ActiveRecord Base default scope where destroyed at IS NULL belongs to walrusend code prepNow if destroy walrus it will also destroy their bubbles set the codedestroyed at code of the codeWalrus code and associated codeBubble code models If want to find destroyed codeWalrus code records can do this ppre codefrank Walrus create frank bubbles create frank destroy Destroys both the walrus and bubble recordsWalrus unscoped do frank Walrus first gt lt Walrus frank bubbles gt end code prepWhat need is way to also unscope associations ppThe real world application is model with lots of associations returned through an API so can manually go through each one and unscope the association МалъСкрылевъ that doesn solve the problem Everywhere we currently use the default scope would have to be switched to recursively apply the where destroyed at nil scope That the same issue we have here,1,Temporarily unscope model associations ruby on rails activerecord pAssume you have two models ppre codeclass Walrus lt ActiveRecord Base default scope where destroyed at IS NULL has many bubbles dependent destroyendclass Bubble lt ActiveRecord Base default scope where destroyed at IS NULL belongs to walrusend code prepNow if destroy walrus it will also destroy their bubbles set the codedestroyed at code of the codeWalrus code and associated codeBubble code models If want to find destroyed codeWalrus code records can do this ppre codefrank Walrus create frank bubbles create frank destroy Destroys both the walrus and bubble recordsWalrus unscoped do frank Walrus first gt lt Walrus frank bubbles gt end code prepWhat need is way to also unscope associations ppThe real world application is model with lots of associations returned through an API so can manually go through each one and unscope the association,NULL 77955,817,858524,NULL,NULL,NULL,0,NULL,NULL 77956,52504,1181988,NULL,NULL,NULL,0,NULL,NULL 77957,251309,922574,Commentator,NULL,NULL,0,NULL,NULL 77958,18335,641317,Necromancer Nice Question Commentator Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 77959,4704482,1068897,NULL,NULL,NULL,0,NULL,NULL 77960,223268,514004,Yearling Popular Question Notable Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 77961,566699,891772,Yearling Excavator Necromancer Custodian Promoter Benefactor Custodian Informed Yearling Tenacious Yearling,NULL,NULL,0,NULL,NULL 77962,395908,788260,Benefactor Necromancer Nice Answer Popular Question javascript Good Answer Guru Notable Question Notable Question Nice Answer Yearling Nice Answer Famous Question reactjs Popular Question Nice Answer Enlightened Nice Question Nice Question Popular Question Guru Nice Answer Enlightened Good Answer Popular Question Notable Question Popular Question Caucus Notable Question Popular Question Nice Answer Nice Answer Enlightened Popular Question Nice Answer Guru Yearling Caucus Nice Answer Popular Question Good Question Documentation User Popular Question Caucus Famous Question Yearling Great Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 77963,87303,250336,NULL,NULL,NULL,0,NULL,NULL 77964,222405,840658,NULL,NULL,NULL,0,NULL,NULL 77965,427791,463645,NULL,NULL,NULL,0,NULL,NULL 77966,243499,870687,Popular Question,NULL,NULL,0,NULL,NULL 77967,300254,39934,NULL,NULL,NULL,0,NULL,NULL 77968,775813,101136,Yearling Popular Question,NULL,NULL,0,NULL,NULL 77969,316456,97358,Great Answer Electorate Yearling Revival Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 77970,331208,583366,Commentator Tumbleweed,NULL,NULL,0,NULL,NULL 77971,5420654,203857,Necromancer Scholar,NULL,NULL,0,NULL,NULL 77972,366915,364095,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 77973,18517,720168,NULL,NULL,NULL,0,NULL,NULL 77974,1235735,1204466,Notable Question Revival Census,NULL,NULL,0,NULL,NULL 77975,575971,1204466,Notable Question Revival Census,NULL,NULL,0,NULL,NULL 77976,144118,1010232,NULL,NULL,NULL,0,NULL,NULL 77977,213132,1215250,Necromancer,NULL,NULL,0,NULL,NULL 77978,5599839,1486100,Necromancer Census Organizer Custodian Custodian Yearling Custodian Caucus Constituent Documentation User Caucus Curious,NULL,NULL,0,NULL,NULL 77979,310177,1381351,NULL,NULL,NULL,0,NULL,NULL 77980,1111366,165697,Famous Question Yearling Notable Question Notable Question Nice Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 77981,66733,153264,Notable Question Famous Question Good Answer Yearling Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 77982,2113267,923364,Supporter,NULL,NULL,0,NULL,NULL 77983,1883482,752752,NULL,NULL,NULL,0,NULL,NULL 77984,129682,768137,NULL,NULL,NULL,0,NULL,NULL 77985,27906,1331333,NULL,NULL,NULL,0,NULL,NULL 77986,253215,106396,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 77987,79597,180604,Necromancer Yearling,NULL,NULL,0,NULL,NULL 77988,676781,428483,NULL,NULL,NULL,0,NULL,NULL 77989,3527620,830747,NULL,NULL,NULL,0,NULL,NULL 77990,9464425,830747,NULL,NULL,NULL,0,NULL,NULL 77991,918206,830747,NULL,NULL,NULL,0,NULL,NULL 77992,805114,561967,NULL,NULL,NULL,0,NULL,NULL 77993,81463,811342,NULL,NULL,NULL,0,NULL,NULL 77994,162352,399297,NULL,NULL,NULL,0,NULL,NULL 77995,1373310,180091,Editor Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 77996,752982,1550100,NULL,NULL,NULL,0,NULL,NULL 77997,1506458,400768,NULL,NULL,NULL,0,NULL,NULL 77998,913664,1081178,NULL,NULL,NULL,0,NULL,NULL 77999,419129,526887,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78000,415814,412786,Announcer Documentation User Popular Question,NULL,NULL,0,NULL,NULL 78001,11912,1012227,NULL,NULL,NULL,0,NULL,NULL 78002,34844,768147,NULL,NULL,NULL,0,NULL,NULL 78003,192658,343276,Teacher Revival Supporter,NULL,NULL,0,NULL,NULL 78004,185086,135020,Nice Answer Yearling Notable Question Yearling Guru Custodian Custodian Custodian Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78005,271176,1517949,NULL,NULL,NULL,0,NULL,NULL 78006,358665,1015549,Guru Yearling,NULL,NULL,0,NULL,NULL 78007,166803,1466255,Yearling,NULL,NULL,0,NULL,NULL 78008,181284,430911,NULL,NULL,NULL,0,NULL,NULL 78009,164950,1260034,NULL,NULL,NULL,0,NULL,NULL 78010,243958,494324,NULL,NULL,NULL,0,NULL,NULL 78011,769695,531468,NULL,NULL,NULL,0,NULL,NULL 78012,2880,454997,Documentation User Announcer,NULL,NULL,0,NULL,NULL 78013,697897,514695,NULL,NULL,NULL,0,NULL,NULL 78014,2327286,839217,NULL,NULL,NULL,0,NULL,NULL 78015,803794,1043518,Teacher Supporter Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78016,379703,565003,NULL,NULL,NULL,0,NULL,NULL 78017,386328,868555,Census,NULL,NULL,0,NULL,NULL 78018,6135,868555,Census,NULL,NULL,0,NULL,NULL 78019,251437,548706,Popular Question Nice Question Caucus Notable Question Curious Custodian Documentation User Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 78020,901247,656302,Popular Question Yearling Notable Question Famous Question Caucus Constituent Yearling Good Question Civic Duty Yearling Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 78021,3276,656302,Popular Question Yearling Notable Question Famous Question Caucus Constituent Yearling Good Question Civic Duty Yearling Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 78022,264516,177498,Nice Question Notable Question Civic Duty Necromancer python Nice Question Necromancer Notable Question Popular Question Necromancer Yearling Nice Answer Nice Answer Popular Question Nice Answer Necromancer Nice Answer Necromancer Notable Question Notable Question Caucus Constituent Nice Question Popular Question Yearling Announcer Custodian Announcer Nice Answer Custodian Custodian Famous Question Custodian Notable Question Custodian Good Question Notable Question Popular Question Necromancer Revival Revival Necromancer Popular Question Informed Yearling Notable Question Necromancer,NULL,NULL,0,NULL,NULL 78023,263987,509551,Famous Question Yearling Nice Question Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 78024,323801,841564,NULL,NULL,NULL,0,NULL,NULL 78025,5534,533541,NULL,NULL,NULL,0,NULL,NULL 78026,263077,231903,NULL,NULL,NULL,0,NULL,NULL 78027,571493,658593,NULL,NULL,NULL,0,NULL,NULL 78028,919602,820473,Student Scholar,NULL,NULL,0,NULL,NULL 78029,979348,1229992,NULL,NULL,NULL,0,NULL,NULL 78030,443785,219546,NULL,NULL,NULL,0,NULL,NULL 78031,296802,564420,NULL,NULL,NULL,0,NULL,NULL 78032,1518599,1423637,NULL,NULL,NULL,0,NULL,NULL 78033,428275,1175439,NULL,NULL,NULL,0,NULL,NULL 78034,372368,1419950,Supporter,NULL,NULL,0,NULL,NULL 78035,319659,181106,Good Answer Necromancer Notable Question Popular Question Notable Question Yearling Nice Answer Great Answer Nice Answer Enlightened Nice Answer Popular Question Notable Question Electorate Good Answer Enlightened Popular Question Yearling Good Answer Good Answer Popular Question Taxonomist Great Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 78036,34564,144278,Nice Question Yearling Popular Question Good Question Nice Question Caucus Census Notable Question Popular Question Custodian Custodian Custodian Custodian Citizen Patrol Custodian Organizer Custodian Excavator Proofreader Yearling Documentation User Popular Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 78037,213472,73544,Notable Question,NULL,NULL,0,NULL,NULL 78038,152649,690567,Yearling Guru Yearling Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78039,191168,981616,Good Answer git ruby-on-rails Yearling Caucus Announcer Nice Answer Enlightened Great Answer Tag Editor Caucus Constituent Good Answer Yearling Custodian Announcer Famous Question Caucus Popular Question Yearling,NULL,pBecause Active Record wants to know in which version the migrations were generated Sometimes default in migration can change between Rails releases when say Rails releases talking about the release of Rails the framework not rails the gem ppSo let say you have migration like ppre codecreate table todos do string contentend code prepAnd it was generated with Active Record and thus Rails release In Rails strings columns have the default size of bytes In Rails the Rails team decided to change the default size to bytes If you upgrade the gem to rollback this migration and run again now your database will have string column with bytes of size ppIf you specify the version in the migration no matter which version of Active Record you are using the column will always be generated with the size that were the default in the version of Rails that it was generated In my example if you specify as the version it will be always bytes string column Wow thanks for explaining here,0,NULL,NULL 78040,427271,813789,NULL,NULL,NULL,0,NULL,NULL 78041,3140417,762213,Editor Necromancer Caucus Constituent Caucus,NULL,NULL,0,NULL,NULL 78042,46105,187496,NULL,NULL,NULL,0,NULL,NULL 78043,636786,336492,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78044,560462,499974,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 78045,215796,209852,Nice Answer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 78046,9543,151350,Nice Answer msmq Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 78047,152386,697018,Yearling Nice Answer Yearling android Nice Question Yearling,NULL,NULL,0,NULL,NULL 78048,77387,57952,Good Answer Yearling Nice Answer Revival Nice Answer Revival Necromancer Necromancer Nice Answer Enlightened Nice Answer Enlightened Good Answer Revival Necromancer Necromancer Necromancer Nice Answer Popular Question Notable Question python Nice Answer Good Answer Caucus Popular Question Nice Question Custodian Informed Custodian Custodian Yearling Nice Answer Enlightened Custodian Custodian django Custodian Strunk & White Necromancer Fanatic Nice Answer Enlightened Nice Answer Nice Answer Enlightened Caucus Revival Good Answer Good Answer Good Answer Nice Answer python-asyncio Announcer Documentation User Announcer Good Answer Yearling Announcer Good Answer Nice Answer Enlightened Guru Caucus Guru Electorate Popular Question Guru Necromancer Nice Answer Enlightened Taxonomist Necromancer Nice Answer Enlightened,NULL,How to test Python asyncio code python unit testing python python unittest python asyncio pWhat the best way to write unit tests for code using the Python codeasyncio code library Assume want to test TCP client codeSocketConnection code ppre codeimport asyncioimport unittestclass TestSocketConnection unittest TestCase def setUp self self mock server MockServer localhost 1337 self socket connection SocketConnection localhost 1337 coroutine def test sends handshake after connect self yield from self socket connection connect self assertTrue self mock server received handshake code prepWhen running this test case with the default test runner the test will always succeed as the method executes only up until the first codeyield from code instruction after which it returns before executing any assertions This causes tests to always succeed ppIs there prebuilt test runner that is able to handle asynchronous code like this For python async def and await syntax see http stackoverflow com questions 41263988 test calling python coroutine async def from regular function,0,NULL,NULL 78049,166840,847828,NULL,NULL,NULL,0,NULL,NULL 78050,182854,401125,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78051,261829,49821,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 78052,435420,6907,NULL,NULL,NULL,0,NULL,NULL 78053,93276,778972,NULL,NULL,NULL,0,NULL,NULL 78054,312483,639373,NULL,NULL,NULL,0,NULL,NULL 78055,62847,123673,NULL,NULL,NULL,0,NULL,NULL 78056,152521,356594,Popular Question Popular Question Popular Question Nice Answer Necromancer Yearling Favorite Question Notable Question Nice Answer Nice Answer Famous Question Famous Question Guru Yearling Popular Question Documentation User Nice Answer Enlightened Popular Question javascript Nice Answer Enlightened Notable Question Yearling Good Answer Famous Question Nice Answer Enlightened,NULL,emI already posted this in another thread but think it fits better in this one em ph2UPDATE 30 07 2014 h2pI re run the the benchmark on our new HPC Both the hardware as well as the software stack changed from the setup in the original answer ppI put the results in href https docs google com spreadsheets 1jq0fDv 0ySMCF6qB22A13Aqf0TjAn449c6 TWrfViJ0 edit usp sharing rel noreferrer google spreadsheet contains also the results from the original answer ph2Hardware h2pOur HPC has two different nodes one with Intel Sandy Bridge CPUs and one with the newer Ivy Bridge CPUs pp strongSandy strong MKL OpenBLAS ATLAS pulli strongCPU strong 16 Intel Xeon E2560 Sandy Bridge 00GHz 16 Cores lili strongRAM strong 64 GB li ulp strongIvy strong MKL OpenBLAS ATLAS pulli strongCPU strong 20 Intel Xeon E2680 V2 Ivy Bridge 80GHz 20 Cores with HT 40 Cores lili strongRAM strong 256 GB li ulh2Software h2pThe software stack is for both nodes the sam Instead of strongGotoBLAS2 strong strongOpenBLAS strong is used and there is also strongmulti threaded ATLAS strong BLAS that is set to threads hardcoded pulli strongOS strong Suse lili strongIntel Compiler strong ictce lili strongNumpy strong lili strongOpenBLAS strong lili strongATLAS strong li ulh2Dot Product Benchmark h2pBenchmark code is the same as below However for the new machines also ran the benchmark for matrix sizes strong5000 strong and strong8000 strong brThe table below includes the benchmark results from the original answer renamed MKL Nehalem MKL Netlib Blas Nehalem Netlib BLAS etc pp img src https stack imgur com ZU7u4 png alt Matrix multiplication sizes 1000 2000 3000 5000 8000 pp strongSingle threaded performance strongimg src https stack imgur com mUNpH png alt single threaded performance pp strongMulti threaded performance threads strong img src https stack imgur com 4LvPO png alt multi threaded threads performance pp strongThreads vs Matrix size Ivy Bridge MKL strong img src https stack imgur com zOXom png alt Matrix size vs threads ph2Benchmark Suite h2p img src https stack imgur com Ne8bn png alt benchmark suite pp strongSingle threaded performance strongimg src https stack imgur com VhqbC png alt enter image description here pp strongMulti threaded threads performance strongimg src https stack imgur com x66dO png alt enter image description here ph2Conclusion h2pThe new benchmark results are similar to the ones in the original answer strongOpenBLAS strong and strongMKL strong perform on the same level with the exception of strongEigenvalue strong test The strongEigenvalue strong test performs only reasonably well on strongOpenBLAS strong in strongsingle threaded mode strong In multi threaded mode the performance is worse ppThe strong Matrix size vs threads chart strong also show that although MKL as well as OpenBLAS generally scale well with number of cores threads it depends on the size of the matrix For small matrices adding more cores won improve performance very much ppThere is also approximately 30 performance increase from strongSandy Bridge strong to strongIvy Bridge strong which might be either due to higher clock rate Ghz and or better architecture phrh2Original Answer 04 10 2011 h2pSome time ago had to optimize some linear algebra calculations algorithms which were written in python using numpy and BLAS so benchmarked tested different numpy BLAS configurations ppSpecifically tested pulliNumpy with ATLAS liliNumpy with href http www tacc utexas edu tacc projects gotoblas2 rel noreferrer GotoBlas2 13 liliNumpy with MKL 11 073 liliNumpy with Accelerate Framework Mac OS li ulpI did run two different benchmarks pollisimple dot product of matrices with different sizes liliBenchmark suite which can be found href http dpinte wordpress com 2010 01 15 numpy performance improvement with the mkl rel noreferrer here li olpHere are my results ph2Machines h2p strongLinux strong MKL ATLAS No MKL GotoBlas2 pulli strongOS strong Ubuntu Lucid 10 64 Bit lili strongCPU strong Intel Xeon E5504 00GHz Cores lili strongRAM strong 24 GB lili strongIntel Compiler strong 11 073 lili strongScipy strong lili strongNumpy strong li ulp strongMac Book Pro strong Accelerate Framework pulli strongOS strong Mac OS Snow Leopard 10 lili strongCPU strong Intel Core Duo 93 Ghz Cores lili strongRAM strong GB lili strongScipy strong lili strongNumpy strong li ulp strongMac Server strong Accelerate Framework pulli strongOS strong Mac OS Snow Leopard Server 10 lili strongCPU strong Intel Xeon E5520 26 Ghz Cores lili strongRAM strong GB lili strongScipy strong lili strongNumpy strong li ulh2Dot product benchmark h2p strongCode strong ppre codeimport numpy as npa np random random sample size size np random random sample size size timeit np dot code prep strongResults strong ppre System size 1000 size 2000 size 3000 netlib BLAS 1350 ms 10900 ms 39200 ms ATLAS CPU 314 ms 2560 ms 8700 ms MKL CPUs 268 ms 2110 ms 7120 ms MKL CPUs 3660 ms MKL CPUs 39 ms 319 ms 1000 ms GotoBlas2 CPU 266 ms 2100 ms 7280 ms GotoBlas2 CPUs 139 ms 1009 ms 3690 ms GotoBlas2 CPUs 54 ms 389 ms 1250 ms Mac OS CPU 143 ms 1060 ms 3605 ms Mac Server CPU 92 ms 714 ms 2130 ms prep img src https stack imgur com b9w3c png alt Dot product benchmark chart ph2Benchmark Suite h2p strongCode strong brFor additional information about the benchmark suite see href http dpinte wordpress com 2010 01 15 numpy performance improvement with the mkl rel noreferrer here pp strongResults strong ppre System eigenvalues svd det inv dot netlib BLAS 1688 ms 13102 ms 438 ms 2155 ms 3522 ms ATLAS CPU 1210 ms 5897 ms 170 ms 560 ms 893 ms MKL CPUs 691 ms 4475 ms 141 ms 450 ms 736 ms MKL CPUs 552 ms 2718 ms 96 ms 267 ms 423 ms MKL CPUs 525 ms 1679 ms 60 ms 137 ms 197 ms GotoBlas2 CPU 2124 ms 4636 ms 147 ms 456 ms 743 ms GotoBlas2 CPUs 1560 ms 3278 ms 116 ms 295 ms 460 ms GotoBlas2 CPUs 741 ms 2914 ms 82 ms 262 ms 192 ms Mac OS CPU 948 ms 4339 ms 151 ms 318 ms 566 ms Mac Server CPU 1033 ms 3645 ms 99 ms 232 ms 342 ms prep img src https stack imgur com eHKHu png alt Benchmark suite chart ph2Installation h2pInstallation of strongMKL strong included installing the complete Intel Compiler Suite which is pretty straight forward However because of some bugs issues configuring and compiling numpy with MKL support was bit of hassle pp strongGotoBlas2 strong is small package which can be easily compiled as shared library However because of href http geekeeway blogspot com 2010 06 install and link gotoblas in eclipse html rel noreferrer bug you have to re create the shared library after building it in order to use it with numpy brIn addition to this building it for multiple target plattform didn work for some reason So had to create an strong so strong file for each platform for which want to have an optimized stronglibgoto2 so strong file ppIf you install numpy from Ubuntu repository it will automatically install and configure numpy to use strongATLAS strong Installing strongATLAS strong from source can take some time and requires some additional steps fortran etc ppIf you install numpy on Mac OS machine with strongFink strong or strongMac Ports strong it will either configure numpy to use strongATLAS strong or strongApple Accelerate Framework strong You can check by either running ldd on the strongnumpy core dotblas strong file or calling strongnumpy show config strong ph2Conclusions h2p strongMKL strong performs best closely followed by strongGotoBlas2 strong brIn the strongeigenvalue strong test GotoBlas2 performs surprisingly worse than expected Not sure why this is the case brstrongApple Accelerate Framework strong performs really good especially in single threaded mode compared to the other BLAS implementations ppBoth strongGotoBlas2 strong and strongMKL strong scale very well with number of threads So if you have to deal with big matrices running it on multiple threads will help lot ppIn any case don use the default strongnetlib blas strong implementation because it is way too slow for any serious computational work ppOn our cluster also installed strongAMD ACML strong and performance was similar to strongMKL strong and strongGotoBlas2 strong don have any numbers tough ppI personally would recommend to use strongGotoBlas2 strong because it easier to install and it free ppIf you want to code in also check out href http eigen tuxfamily org index php title Main Page rel noreferrer Eigen3 which is supposed to outperform strongMKL GotoBlas2 strong in some href http eigen tuxfamily org index php title Benchmark rel noreferrer cases and is also pretty easy to use Thanks will give it shot as soon as have bit of time emI already posted this in another thread but think it fits better in this one em ph2UPDATE 30 07 2014 h2pI re run the the benchmark on our new HPC Both the hardware as well as the software stack changed from the setup in the original answer ppI put the results in href https docs google com spreadsheets 1jq0fDv 0ySMCF6qB22A13Aqf0TjAn449c6 TWrfViJ0 edit usp sharing rel noreferrer google spreadsheet contains also the results from the original answer ph2Hardware h2pOur HPC has two different nodes one with Intel Sandy Bridge CPUs and one with the newer Ivy Bridge CPUs pp strongSandy strong MKL OpenBLAS ATLAS pulli strongCPU strong 16 Intel Xeon E2560 Sandy Bridge 00GHz 16 Cores lili strongRAM strong 64 GB li ulp strongIvy strong MKL OpenBLAS ATLAS pulli strongCPU strong 20 Intel Xeon E2680 V2 Ivy Bridge 80GHz 20 Cores with HT 40 Cores lili strongRAM strong 256 GB li ulh2Software h2pThe software stack is for both nodes the sam Instead of strongGotoBLAS2 strong strongOpenBLAS strong is used and there is also strongmulti threaded ATLAS strong BLAS that is set to threads hardcoded pulli strongOS strong Suse lili strongIntel Compiler strong ictce lili strongNumpy strong lili strongOpenBLAS strong lili strongATLAS strong li ulh2Dot Product Benchmark h2pBenchmark code is the same as below However for the new machines also ran the benchmark for matrix sizes strong5000 strong and strong8000 strong brThe table below includes the benchmark results from the original answer renamed MKL Nehalem MKL Netlib Blas Nehalem Netlib BLAS etc pp img src https stack imgur com ZU7u4 png alt Matrix multiplication sizes 1000 2000 3000 5000 8000 pp strongSingle threaded performance strongimg src https stack imgur com mUNpH png alt single threaded performance pp strongMulti threaded performance threads strong img src https stack imgur com 4LvPO png alt multi threaded threads performance pp strongThreads vs Matrix size Ivy Bridge MKL strong img src https stack imgur com zOXom png alt Matrix size vs threads ph2Benchmark Suite h2p img src https stack imgur com Ne8bn png alt benchmark suite pp strongSingle threaded performance strongimg src https stack imgur com VhqbC png alt enter image description here pp strongMulti threaded threads performance strongimg src https stack imgur com x66dO png alt enter image description here ph2Conclusion h2pThe new benchmark results are similar to the ones in the original answer strongOpenBLAS strong and strongMKL strong perform on the same level with the exception of strongEigenvalue strong test The strongEigenvalue strong test performs only reasonably well on strongOpenBLAS strong in strongsingle threaded mode strong In multi threaded mode the performance is worse ppThe strong Matrix size vs threads chart strong also show that although MKL as well as OpenBLAS generally scale well with number of cores threads it depends on the size of the matrix For small matrices adding more cores won improve performance very much ppThere is also approximately 30 performance increase from strongSandy Bridge strong to strongIvy Bridge strong which might be either due to higher clock rate Ghz and or better architecture phrh2Original Answer 04 10 2011 h2pSome time ago had to optimize some linear algebra calculations algorithms which were written in python using numpy and BLAS so benchmarked tested different numpy BLAS configurations ppSpecifically tested pulliNumpy with ATLAS liliNumpy with href http www tacc utexas edu tacc projects gotoblas2 rel noreferrer GotoBlas2 13 liliNumpy with MKL 11 073 liliNumpy with Accelerate Framework Mac OS li ulpI did run two different benchmarks pollisimple dot product of matrices with different sizes liliBenchmark suite which can be found href http dpinte wordpress com 2010 01 15 numpy performance improvement with the mkl rel noreferrer here li olpHere are my results ph2Machines h2p strongLinux strong MKL ATLAS No MKL GotoBlas2 pulli strongOS strong Ubuntu Lucid 10 64 Bit lili strongCPU strong Intel Xeon E5504 00GHz Cores lili strongRAM strong 24 GB lili strongIntel Compiler strong 11 073 lili strongScipy strong lili strongNumpy strong li ulp strongMac Book Pro strong Accelerate Framework pulli strongOS strong Mac OS Snow Leopard 10 lili strongCPU strong Intel Core Duo 93 Ghz Cores lili strongRAM strong GB lili strongScipy strong lili strongNumpy strong li ulp strongMac Server strong Accelerate Framework pulli strongOS strong Mac OS Snow Leopard Server 10 lili strongCPU strong Intel Xeon E5520 26 Ghz Cores lili strongRAM strong GB lili strongScipy strong lili strongNumpy strong li ulh2Dot product benchmark h2p strongCode strong ppre codeimport numpy as npa np random random sample size size np random random sample size size timeit np dot code prep strongResults strong ppre System size 1000 size 2000 size 3000 netlib BLAS 1350 ms 10900 ms 39200 ms ATLAS CPU 314 ms 2560 ms 8700 ms MKL CPUs 268 ms 2110 ms 7120 ms MKL CPUs 3660 ms MKL CPUs 39 ms 319 ms 1000 ms GotoBlas2 CPU 266 ms 2100 ms 7280 ms GotoBlas2 CPUs 139 ms 1009 ms 3690 ms GotoBlas2 CPUs 54 ms 389 ms 1250 ms Mac OS CPU 143 ms 1060 ms 3605 ms Mac Server CPU 92 ms 714 ms 2130 ms prep img src https stack imgur com b9w3c png alt Dot product benchmark chart ph2Benchmark Suite h2p strongCode strong brFor additional information about the benchmark suite see href http dpinte wordpress com 2010 01 15 numpy performance improvement with the mkl rel noreferrer here pp strongResults strong ppre System eigenvalues svd det inv dot netlib BLAS 1688 ms 13102 ms 438 ms 2155 ms 3522 ms ATLAS CPU 1210 ms 5897 ms 170 ms 560 ms 893 ms MKL CPUs 691 ms 4475 ms 141 ms 450 ms 736 ms MKL CPUs 552 ms 2718 ms 96 ms 267 ms 423 ms MKL CPUs 525 ms 1679 ms 60 ms 137 ms 197 ms GotoBlas2 CPU 2124 ms 4636 ms 147 ms 456 ms 743 ms GotoBlas2 CPUs 1560 ms 3278 ms 116 ms 295 ms 460 ms GotoBlas2 CPUs 741 ms 2914 ms 82 ms 262 ms 192 ms Mac OS CPU 948 ms 4339 ms 151 ms 318 ms 566 ms Mac Server CPU 1033 ms 3645 ms 99 ms 232 ms 342 ms prep img src https stack imgur com eHKHu png alt Benchmark suite chart ph2Installation h2pInstallation of strongMKL strong included installing the complete Intel Compiler Suite which is pretty straight forward However because of some bugs issues configuring and compiling numpy with MKL support was bit of hassle pp strongGotoBlas2 strong is small package which can be easily compiled as shared library However because of href http geekeeway blogspot com 2010 06 install and link gotoblas in eclipse html rel noreferrer bug you have to re create the shared library after building it in order to use it with numpy brIn addition to this building it for multiple target plattform didn work for some reason So had to create an strong so strong file for each platform for which want to have an optimized stronglibgoto2 so strong file ppIf you install numpy from Ubuntu repository it will automatically install and configure numpy to use strongATLAS strong Installing strongATLAS strong from source can take some time and requires some additional steps fortran etc ppIf you install numpy on Mac OS machine with strongFink strong or strongMac Ports strong it will either configure numpy to use strongATLAS strong or strongApple Accelerate Framework strong You can check by either running ldd on the strongnumpy core dotblas strong file or calling strongnumpy show config strong ph2Conclusions h2p strongMKL strong performs best closely followed by strongGotoBlas2 strong brIn the strongeigenvalue strong test GotoBlas2 performs surprisingly worse than expected Not sure why this is the case brstrongApple Accelerate Framework strong performs really good especially in single threaded mode compared to the other BLAS implementations ppBoth strongGotoBlas2 strong and strongMKL strong scale very well with number of threads So if you have to deal with big matrices running it on multiple threads will help lot ppIn any case don use the default strongnetlib blas strong implementation because it is way too slow for any serious computational work ppOn our cluster also installed strongAMD ACML strong and performance was similar to strongMKL strong and strongGotoBlas2 strong don have any numbers tough ppI personally would recommend to use strongGotoBlas2 strong because it easier to install and it free ppIf you want to code in also check out href http eigen tuxfamily org index php title Main Page rel noreferrer Eigen3 which is supposed to outperform strongMKL GotoBlas2 strong in some href http eigen tuxfamily org index php title Benchmark rel noreferrer cases and is also pretty easy to use After doing bit of more research https groups google com forum topic blis devel gwSOFLUz2g0 don think BLIS will give us different results than the BLAS libraries at least not for the benchmark we are running dot product etc,0,NULL,NULL 78057,6098083,925861,Good Answer Necromancer Revival Popular Question Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78058,529420,926020,NULL,NULL,NULL,0,NULL,NULL 78059,256363,1313783,Nice Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 78060,146876,527145,NULL,NULL,NULL,0,NULL,NULL 78061,74923,1034662,NULL,NULL,NULL,0,NULL,NULL 78062,216140,795305,NULL,NULL,NULL,0,NULL,NULL 78063,194983,700015,Custodian Yearling Caucus Constituent Popular Question Teacher Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 78064,1753,352778,Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 78065,318011,323547,Nice Answer Revival Yearling Notable Question Necromancer Nice Answer Popular Question Pundit Yearling Nice Answer Documentation User Yearling Popular Question Nice Answer python,NULL,NULL,0,NULL,NULL 78066,885299,271767,Notable Question Famous Question Documentation User,NULL,NULL,0,NULL,NULL 78067,103201,526426,Yearling Nice Answer Good Answer Popular Question Yearling Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78068,586583,821322,NULL,NULL,NULL,0,NULL,NULL 78069,118898,1528285,NULL,NULL,NULL,0,NULL,NULL 78070,1362518,1543797,NULL,NULL,NULL,0,NULL,NULL 78071,2570416,225767,Electorate Nice Question Organizer Famous Question Nice Question Yearling Notable Question Custodian Documentation User Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 78072,632379,225767,Electorate Nice Question Organizer Famous Question Nice Question Yearling Notable Question Custodian Documentation User Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 78073,61257,326984,Great Answer Revival Good Answer Nice Answer Yearling Announcer Notable Question Nice Answer Enlightened Popular Question Popular Question Great Answer Popular Question Custodian Popular Question Yearling Nice Answer Documentation User Yearling Populist Civic Duty,NULL,NULL,0,NULL,NULL 78074,210580,1046343,Popular Question,NULL,NULL,0,NULL,NULL 78075,83224,1283807,NULL,NULL,NULL,0,NULL,NULL 78076,698848,1229778,Autobiographer Teacher Announcer,NULL,NULL,0,NULL,NULL 78077,177156,276098,NULL,NULL,NULL,0,NULL,NULL 78078,47205,799777,Yearling Caucus,NULL,NULL,0,NULL,NULL 78079,685494,1464329,Notable Question,NULL,NULL,0,NULL,NULL 78080,89937,391229,Yearling Necromancer Nice Question Popular Question Good Answer Populist Yearling Necromancer Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 78081,657318,471861,Nice Answer Yearling Famous Question Critic Yearling,NULL,NULL,0,NULL,NULL 78082,1074215,481453,NULL,NULL,NULL,0,NULL,NULL 78083,292061,1310886,NULL,NULL,,0,, 78084,114856,459706,Yearling Notable Question Caucus Famous Question Yearling Census Favorite Question Nice Question,NULL,NULL,0,NULL,NULL 78085,1682581,544724,NULL,NULL,NULL,0,NULL,NULL 78086,841871,1110996,NULL,NULL,NULL,0,NULL,NULL 78087,134996,501398,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78088,105864,394013,Tag Editor Tenacious Yearling Notable Question Nice Answer Enlightened Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Documentation User Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 78089,42611,813781,NULL,NULL,NULL,0,NULL,NULL 78090,234267,292318,NULL,NULL,NULL,0,NULL,NULL 78091,306014,1269475,NULL,NULL,NULL,0,NULL,NULL 78092,599506,835492,NULL,NULL,NULL,0,NULL,NULL 78093,67772,477908,Nice Answer Nice Answer Yearling Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 78094,756446,1252618,NULL,NULL,NULL,0,NULL,NULL 78095,47410,253291,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78096,633711,1246582,NULL,NULL,NULL,0,NULL,NULL 78097,101055,513316,Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 78098,398025,70350,Yearling Popular Question Notable Question Famous Question Necromancer Yearling Famous Question Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78099,1048365,769844,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 78100,73976,531179,Necromancer Announcer Nice Answer Good Answer Good Question Yearling Famous Question Nice Answer Enlightened Famous Question Disciplined Popular Question Nice Question Popular Question Yearling Custodian Nice Answer Nice Answer Enlightened Necromancer Good Question Revival Famous Question Announcer Great Question Nice Answer Nice Answer Enlightened c++ Necromancer,NULL,NULL,0,NULL,NULL 78101,53511,504170,NULL,NULL,NULL,0,NULL,NULL 78102,371982,1528292,NULL,NULL,NULL,0,NULL,NULL 78103,134651,688469,NULL,NULL,NULL,0,NULL,NULL 78104,903194,438148,Nice Answer Enlightened Yearling Commentator Good Answer Yearling,NULL,NULL,0,NULL,NULL 78105,237277,1137475,Yearling Announcer Announcer Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 78106,2426,25724,Revival Good Answer Yearling Nice Answer Necromancer Notable Question Necromancer Notable Question Guru Yearling Documentation User Civic Duty Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 78107,719587,1316660,NULL,NULL,NULL,0,NULL,NULL 78108,181343,479242,Good Question,NULL,NULL,0,NULL,NULL 78109,103506,50890,Yearling Famous Question Notable Question Notable Question Great Answer Nice Question Good Question Good Answer Nice Answer Yearling c# Caucus Good Answer Nice Question Yearling Good Answer Guru Notable Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 78110,525569,1269006,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 78111,62599,535387,Popular Question Yearling Popular Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 78112,144480,396671,Student,NULL,NULL,0,NULL,NULL 78113,29939,1081705,NULL,NULL,NULL,0,NULL,NULL 78114,660994,855627,Yearling Popular Question Popular Question Tumbleweed Popular Question Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 78115,436261,103192,Notable Question Popular Question Yearling Popular Question Nice Question Custodian Citizen Patrol Popular Question Nice Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 78116,170980,71049,Famous Question,NULL,NULL,0,NULL,NULL 78117,1532711,396183,Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Famous Question Yearling Popular Question Notable Question Nice Question Popular Question Notable Question Nice Question Notable Question Popular Question Notable Question Good Question Yearling Notable Question Notable Question Famous Question Popular Question Famous Question Good Question Popular Question Famous Question Nice Question Yearling Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78118,66735,112757,Popular Question Popular Question Good Question Yearling Notable Question Favorite Question Notable Question Popular Question Popular Question Yearling Revival Good Answer Popular Question Necromancer Necromancer Notable Question Popular Question Notable Question Inquisitive Yearling,NULL,NULL,0,NULL,NULL 78119,915147,855872,Student Excavator Custodian Promoter Scholar Benefactor Popular Question Notable Question Autobiographer,NULL,NULL,0,NULL,NULL 78120,673203,890304,Notable Question Notable Question Civic Duty,NULL,NULL,0,NULL,NULL 78121,361510,842782,Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78122,1773,1232913,NULL,NULL,NULL,0,NULL,NULL 78123,324487,1344923,Census,NULL,NULL,0,NULL,NULL 78124,433188,345813,Guru Yearling Yearling Notable Question Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 78125,149827,921032,Famous Question,NULL,NULL,0,NULL,NULL 78126,771763,892165,NULL,NULL,NULL,0,NULL,NULL 78127,383301,1302635,NULL,NULL,NULL,0,NULL,NULL 78128,137262,887883,Caucus,NULL,NULL,0,NULL,NULL 78129,5739280,1085625,NULL,NULL,NULL,0,NULL,NULL 78130,963393,1209029,NULL,NULL,NULL,0,NULL,NULL 78131,24047,194040,Yearling Necromancer,NULL,NULL,0,NULL,NULL 78132,1150995,1459370,Yearling Popular Question Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 78133,47810,168621,Yearling Famous Question Notable Question Curious Notable Question Scholar Popular Question Good Answer Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 78134,818898,873184,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78135,106162,499744,Nice Answer Custodian eclipse Good Answer Yearling Caucus Nice Answer Enlightened Yearling Guru Custodian Good Answer Yearling,NULL,pre codeSELECT TOP Id Name FROM customerNamesORDER BY NEWID code prepThat said everybody seems to come to this page for the more general answer to your question ph2 href http www petefreitag com item 466 cfm rel noreferrer Selecting random row in SQL h2h3Select random row with MySQL h3pre codeSELECT column FROM tableORDER BY RAND LIMIT code preh3Select random row with PostgreSQL h3pre codeSELECT column FROM tableORDER BY RANDOM LIMIT code preh3Select random row with Microsoft SQL Server h3pre codeSELECT TOP column FROM tableORDER BY NEWID code preh3Select random row with IBM DB2 h3pre codeSELECT column RAND as IDX FROM table ORDER BY IDX FETCH FIRST ROWS ONLY code preh3Select random record with Oracle h3pre codeSELECT column FROM SELECT column FROM tableORDER BY dbms random value WHERE rownum code preh3Select random row with sqlite h3pre codeSELECT column FROM table ORDER BY RANDOM LIMIT code pre You Genius hate you so much because didn see this until gone and written an insanely long query with sub queries and row numbers,0,NULL,NULL 78136,1095564,429673,NULL,NULL,NULL,0,NULL,NULL 78137,9359,177056,Custodian Famous Question Enthusiast Necromancer Popular Question Famous Question Necromancer Popular Question Notable Question Necromancer php Good Question Famous Question Popular Question Notable Question Necromancer Notable Question Good Answer Yearling Necromancer Popular Question Nice Question Good Question Good Question Revival Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Nice Answer Notable Question Caucus Nice Question Nice Answer Good Question Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 78138,68867,840595,Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78139,285785,1118408,Curious Popular Question Teacher Critic,NULL,NULL,0,NULL,NULL 78140,213646,848163,Yearling Yearling Nice Answer Enlightened Yearling knockout.js,NULL,NULL,0,NULL,NULL 78141,363500,565708,Revival,NULL,NULL,0,NULL,NULL 78142,496024,961324,NULL,NULL,NULL,0,NULL,NULL 78143,259179,526513,NULL,NULL,NULL,0,NULL,NULL 78144,726587,1025893,Curious Popular Question,NULL,NULL,0,NULL,NULL 78145,231827,1223736,NULL,NULL,NULL,0,NULL,NULL 78146,724914,832969,Nice Answer,NULL,NULL,0,NULL,NULL 78147,22234,729153,Yearling Nice Answer Guru Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 78148,428820,73476,Yearling Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 78149,134255,194747,NULL,NULL,NULL,0,NULL,NULL 78150,708530,1136333,NULL,NULL,NULL,0,NULL,NULL 78151,61782,1463667,NULL,NULL,NULL,0,NULL,NULL 78152,1345907,569195,Civic Duty Documentation User Notable Question,NULL,NULL,0,NULL,NULL 78153,65428,3462,NULL,NULL,NULL,0,NULL,NULL 78154,960948,1157945,NULL,NULL,NULL,0,NULL,NULL 78155,319772,733880,Critic Famous Question,NULL,pIf your data may contain multi byte sequences not plain ASCII sequence and your browser has href https developer mozilla org en US docs Web API TextDecoder rel nofollow noreferrer TextDecoder then you should use that to decode your data specify the required encoding for the TextDecoder ppre codevar u8 new Uint8Array 65 66 67 68 var decoder new TextDecoder utf8 var b64encoded btoa decoder decode u8 code prepIf you need to support href http caniuse com search TextDecoder rel nofollow noreferrer browsers that do not have TextDecoder currently just IE and Edge then the best option is to use href https github com inexorabletash text encoding rel nofollow noreferrer TextDecoder polyfill ppIf your data contains plain ASCII not multibyte Unicode UTF then there is simple alternative using codeString fromCharCode code that should be fairly universally supported ppre codevar ascii new Uint8Array 65 66 67 68 var b64encoded btoa String fromCharCode apply null ascii code prepAnd to decode the base64 string back to Uint8Array ppre codevar u8 new Uint8Array atob b64encoded split map function return charCodeAt code prepIf you have very large array buffers then the apply may fail and you may need to chunk the buffer based on the one posted by Again note that this is only correct if your buffer only contains non multibyte ASCII characters ppre codefunction Uint8ToString u8a var CHUNK SZ 0x8000 var for var lt u8a length CHUNK SZ push String fromCharCode apply null u8a subarray CHUNK SZ return join Usagevar u8 new Uint8Array 65 66 67 68 var b64encoded btoa Uint8ToString u8 code pre The TextDecoder solution fails for me for any value in the Uint8Array 127 The String fromCharCode however works perfectly,0,NULL,NULL 78156,138710,568855,Custodian Custodian Documentation Pioneer Popular Question Yearling Good Question Documentation User Popular Question,NULL,NULL,0,NULL,NULL 78157,37016,1009797,Citizen Patrol Caucus Custodian,NULL,NULL,0,NULL,NULL 78158,695486,696653,Popular Question,NULL,NULL,0,NULL,NULL 78159,1106208,8146,NULL,NULL,NULL,0,NULL,NULL 78160,75881,1104684,Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78161,1353332,1494650,NULL,NULL,NULL,0,NULL,NULL 78162,1141556,532899,NULL,NULL,NULL,0,NULL,NULL 78163,682656,532899,NULL,NULL,NULL,0,NULL,NULL 78164,433637,190833,Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78165,3952447,190833,Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78166,563321,1031304,Caucus Critic Disciplined Suffrage Vox Populi Yearling Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78167,17187,559492,Good Answer,NULL,NULL,0,NULL,NULL 78168,2468067,611116,Famous Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Good Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Notable Question Favorite Question Popular Question Yearling Great Answer Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78169,4567680,611116,Famous Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Good Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Notable Question Favorite Question Popular Question Yearling Great Answer Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78170,357982,611116,Famous Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Good Question Yearling Notable Question Popular Question Popular Question Notable Question Notable Question Notable Question Popular Question Great Question Notable Question Favorite Question Popular Question Yearling Great Answer Popular Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78171,263673,111191,NULL,NULL,NULL,0,NULL,NULL 78172,818729,893916,NULL,NULL,NULL,0,NULL,NULL 78173,1447054,589871,NULL,NULL,NULL,0,NULL,NULL 78174,237666,600307,NULL,NULL,NULL,0,NULL,NULL 78175,65682,230220,Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 78176,2397134,598184,Commentator Student,NULL,NULL,0,NULL,NULL 78177,411556,151234,Electorate Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 78178,41775,83998,Informed Yearling Revival Curious Critic Commentator Self-Learner Popular Question Popular Question Caucus Notable Question Yearling Nice Answer Notable Question Famous Question Nice Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 78179,169787,1299695,Necromancer Popular Question Caucus Yearling Nice Answer Popular Question Announcer Announcer,NULL,NULL,0,NULL,NULL 78180,1132735,322784,Nice Question Custodian Curious Notable Question Yearling Revival Nice Question Peer Pressure Nice Answer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78181,212842,965960,NULL,NULL,NULL,0,NULL,NULL 78182,347959,341730,Informed Autobiographer Explainer Nice Answer Enlightened sqlalchemy Yearling Fanatic Pundit Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Necromancer python Custodian Nice Answer Enlightened Nice Answer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Good Answer Announcer sqlalchemy Yearling Nice Answer Enlightened Nice Answer mysql,NULL,NULL,0,NULL,NULL 78183,2027292,988497,NULL,NULL,NULL,0,NULL,NULL 78184,440236,991274,NULL,NULL,NULL,0,NULL,NULL 78185,113270,618403,NULL,NULL,NULL,0,NULL,NULL 78186,123053,294237,Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78187,69534,23915,Custodian Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Good Answer Good Answer Revival Good Answer ruby Great Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Announcer Nice Answer Custodian Guru Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 78188,45349,218168,Yearling Caucus Constituent Excavator,NULL,NULL,0,NULL,NULL 78189,284915,1117306,NULL,NULL,NULL,0,NULL,NULL 78190,696240,274949,NULL,NULL,NULL,0,NULL,NULL 78191,915437,1332862,NULL,NULL,NULL,0,NULL,NULL 78192,271783,1236287,Supporter,NULL,NULL,0,NULL,NULL 78193,285732,1375293,Yearling Yearling Good Answer Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 78194,1440951,516642,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 78195,319952,635221,NULL,NULL,NULL,0,NULL,NULL 78196,74630,409100,NULL,NULL,NULL,0,NULL,NULL 78197,37670,971680,NULL,NULL,NULL,0,NULL,NULL 78198,886755,735751,NULL,NULL,NULL,0,NULL,NULL 78199,419462,231069,NULL,NULL,NULL,0,NULL,NULL 78200,205009,600868,NULL,NULL,NULL,0,NULL,NULL 78201,248125,1381275,NULL,NULL,NULL,0,NULL,NULL 78202,215479,563349,NULL,NULL,NULL,0,NULL,NULL 78203,155284,107609,Yearling Self-Learner Popular Question Popular Question Caucus Nice Answer Notable Question Yearling Nice Answer Caucus Popular Question Nice Question Popular Question Nice Answer Famous Question Good Answer Census Announcer Famous Question Notable Question Yearling Good Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 78204,10742557,933186,Notable Question Notable Question Yearling ios Caucus Constituent Popular Question Caucus Constituent Yearling Documentation User Popular Question Notable Question Caucus Constituent Popular Question Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 78205,201367,933186,Notable Question Notable Question Yearling ios Caucus Constituent Popular Question Caucus Constituent Yearling Documentation User Popular Question Notable Question Caucus Constituent Popular Question Yearling Custodian Popular Question,NULL,NULL,0,NULL,NULL 78206,882155,537695,NULL,NULL,NULL,0,NULL,NULL 78207,760480,371709,NULL,NULL,NULL,0,NULL,NULL 78208,339480,832792,NULL,NULL,NULL,0,NULL,NULL 78209,441070,1149396,NULL,NULL,NULL,0,NULL,NULL 78210,1245,245994,NULL,NULL,NULL,0,NULL,NULL 78211,643677,665902,NULL,NULL,NULL,0,NULL,NULL 78212,647014,561828,NULL,NULL,NULL,0,NULL,NULL 78213,193235,281797,NULL,NULL,NULL,0,NULL,NULL 78214,1573717,507968,NULL,NULL,NULL,0,NULL,NULL 78215,642850,1259375,NULL,NULL,NULL,0,NULL,NULL 78216,503795,298248,NULL,NULL,NULL,0,NULL,NULL 78217,1128438,1315274,NULL,NULL,NULL,0,NULL,NULL 78218,261246,1314732,Yearling Popular Question Popular Question Custodian Self-Learner Good Question Caucus Notable Question Yearling Famous Question Popular Question Notable Question Popular Question Critic,NULL,NULL,0,NULL,NULL 78219,10223110,1314732,Yearling Popular Question Popular Question Custodian Self-Learner Good Question Caucus Notable Question Yearling Famous Question Popular Question Notable Question Popular Question Critic,NULL,NULL,0,NULL,NULL 78220,1651133,1206361,Informed Autobiographer Yearling,NULL,NULL,0,NULL,NULL 78221,359222,726178,Tumbleweed Yearling Custodian Custodian Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 78222,931462,551005,NULL,NULL,NULL,0,NULL,NULL 78223,606885,268250,Revival Nice Question Popular Question Nice Answer Popular Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78224,144495,633233,Teacher,NULL,NULL,0,NULL,NULL 78225,704801,1100090,NULL,NULL,NULL,0,NULL,NULL 78226,46092,1088680,Tumbleweed,NULL,NULL,0,NULL,NULL 78227,581211,151111,Custodian Yearling Revival Guru Caucus jquery Caucus Yearling Good Answer Notable Question Notable Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 78228,6901,275067,Yearling Nice Answer Enlightened Nice Question,NULL,NULL,0,NULL,NULL 78229,203576,1017392,NULL,NULL,NULL,0,NULL,NULL 78230,1292294,526739,NULL,NULL,NULL,0,NULL,NULL 78231,164197,53670,NULL,NULL,NULL,0,NULL,NULL 78232,592566,268038,NULL,NULL,NULL,0,NULL,NULL 78233,126504,434903,Commentator Yearling Revival,NULL,NULL,0,NULL,NULL 78234,71615,576345,NULL,NULL,NULL,0,NULL,NULL 78235,1741427,997484,NULL,NULL,NULL,0,NULL,NULL 78236,104555,1376863,Tumbleweed Announcer Curious Informed Caucus Yearling Announcer,NULL,NULL,0,NULL,NULL 78237,285157,1207904,NULL,NULL,NULL,0,NULL,NULL 78238,129545,561122,NULL,NULL,NULL,0,NULL,NULL 78239,7006588,561122,NULL,NULL,NULL,0,NULL,NULL 78240,2547865,1398145,Informed Autobiographer Editor Supporter Yearling Enthusiast Critic Caucus Constituent Fanatic Student Caucus Constituent Commentator Census,NULL,NULL,0,NULL,NULL 78241,112176,4936,Popular Question Yearling Popular Question Notable Question Yearling Popular Question Guru Yearling Notable Question,NULL,NULL,0,NULL,NULL 78242,173821,1155235,Popular Question Caucus Explainer Notable Question Caucus Excavator Nice Answer Custodian Custodian Custodian Yearling Caucus,NULL,NULL,0,NULL,NULL 78243,11423,1237837,NULL,NULL,NULL,0,NULL,NULL 78244,204822,762975,NULL,NULL,NULL,0,NULL,NULL 78245,536499,785869,NULL,NULL,NULL,0,NULL,NULL 78246,160994,22687,Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 78247,910785,1120015,Nice Answer Enlightened Nice Answer Enlightened ruby-on-rails-4 Notable Question Revival Popular Question Popular Question Nice Answer Enlightened Popular Question Good Answer Nice Answer Enlightened Good Answer Documentation Beta Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Pundit Yearling hash Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Documentation User Nice Answer Enlightened Nice Answer Yearling Nice Question Popular Question Great Answer Announcer Announcer Announcer Nice Answer Enlightened rspec Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78248,111824,194106,Necromancer Revival Nice Answer Notable Question Yearling Popular Question Nice Question Good Answer Popular Question Yearling Notable Question Inquisitive Custodian Revival Yearling,NULL,NULL,0,NULL,NULL 78249,186270,1426570,Necromancer Announcer Organizer Revival Announcer Yearling Announcer Announcer Yearling Announcer Guru Yearling,NULL,NULL,0,NULL,NULL 78250,137179,510187,Popular Question Self-Learner Notable Question Yearling Popular Question Notable Question Good Question Famous Question Nice Question Famous Question Famous Question Nice Answer Enlightened Notable Question Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 78251,8787200,1045977,NULL,NULL,NULL,0,NULL,NULL 78252,39713,776138,NULL,NULL,NULL,0,NULL,NULL 78253,141129,1278940,NULL,NULL,NULL,0,NULL,NULL 78254,44087,830623,Nice Answer Good Question Nice Question Announcer Famous Question Nice Question Notable Question Popular Question Revival Yearling Nice Answer Enlightened Announcer Nice Question Popular Question Notable Question Necromancer Notable Question Great Answer Necromancer Good Answer Famous Question Good Answer Popular Question Popular Question Notable Question Yearling Necromancer Nice Answer Announcer Good Question Favorite Question Famous Question Announcer Yearling Nice Question Announcer,NULL,NULL,0,NULL,NULL 78255,47770,1045568,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78256,494865,234581,NULL,NULL,NULL,0,NULL,NULL 78257,299359,1036485,NULL,NULL,NULL,0,NULL,NULL 78258,68833,749406,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 78259,4714,147188,Revival Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 78260,390963,669128,NULL,NULL,NULL,0,NULL,NULL 78261,435040,1429562,Supporter Caucus,NULL,NULL,0,NULL,NULL 78262,237400,514418,NULL,NULL,NULL,0,NULL,NULL 78263,73779,382333,NULL,NULL,NULL,0,NULL,NULL 78264,2517324,615504,NULL,NULL,NULL,0,NULL,NULL 78265,521082,171910,NULL,NULL,NULL,0,NULL,NULL 78266,1595374,1409828,NULL,NULL,NULL,0,NULL,NULL 78267,144507,416626,Popular Question Notable Question Famous Question Great Answer Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Notable Question Custodian Popular Question Notable Question Popular Question Notable Question Census Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Nice Question Good Question Popular Question Self-Learner Popular Question Announcer Popular Question Nice Answer Yearling Nice Question Popular Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78268,911513,1081551,Revival Yearling Necromancer Notable Question Nice Answer Nice Answer Revival Popular Question Yearling Yearling Necromancer Necromancer Popular Question Revival Notable Question Popular Question Civic Duty Nice Question,NULL,pYou can wrap the disabled button and put the tooltip on the wrapper ppre code lt div class tooltip wrapper data title Dieser Link führt zu Google gt lt button class btn btn default disabled gt button disabled lt button gt lt div gt code prepIf the wrapper has codedisplay inline code then the tooltip doesn seem to work Using codedisplay block code and codedisplay inline block code seem to work fine It also appears to work fine with floated wrapper ppUPDATE Here an updated JSFiddle that works with the latest Bootstrap Thanks to for suggesting codepointer events none code for the disabled button pp href http jsfiddle net cSSUA 209 http jsfiddle net cSSUA 209 hint made it work for me,1,Java Date and Time parse ISO 8601 string without colon in offset java datetime iso8601 timezoneoffset datetime parsing pWe try to parse the following ISO 8601 DateTime String with timezone offset ppre class lang java prettyprint override codefinal String input 2022 03 17T23 00 00 000 0000 OffsetDateTime parse input LocalDateTime parse input DateTimeFormatter ISO OFFSET DATE TIME code prepBoth approaches fail which makes sense as codeOffsetDateTime code also use the codeDateTimeFormatter ISO OFFSET DATE TIME code because of the colon in the timezone offset pblockquote pjava time format DateTimeParseException Text 2022 03 17T23 00 00 000 0000 could not be parsed at index 23 blockquotepBut according to href https en wikipedia org wiki ISO 8601 Time zone designators rel noreferrer Wikipedia there are valid formats for timezone offset ppre code lt time gt lt time gt ±hh mm lt time gt ±hhmm lt time gt ±hh code prepOther frameworks languages can parse this string without any issues the Javascript codeDate code or Jacksons codeISO8601Utils code they discuss this issue href https github com FasterXML jackson databind issues 919 rel noreferrer here ppNow we could write our own codeDateTimeFormatter code with complex RegEx but in my opinion the codejava time code library should be able to parse this valid ISO 8601 string by default as it is valid one ppFor now we use Jacksons codeISO8601DateFormat code but we would prefer to use the official codedate time code library to work with What would be your approach to tackle this issue,NULL 78269,18070,264332,Caucus,NULL,NULL,0,NULL,NULL 78270,414718,1397243,Commentator Notable Question Popular Question Supporter,NULL,NULL,0,NULL,NULL 78271,109982,794443,NULL,NULL,NULL,0,NULL,NULL 78272,77794,624673,Notable Question Critic Popular Question Yearling,NULL,NULL,0,NULL,NULL 78273,174943,1388740,Informed,NULL,NULL,0,NULL,NULL 78274,823632,265267,NULL,NULL,NULL,0,NULL,NULL 78275,88454,1211392,Critic Popular Question Yearling Curious Civic Duty,NULL,NULL,0,NULL,NULL 78276,313659,1432558,NULL,NULL,NULL,0,NULL,NULL 78277,440015,888747,NULL,NULL,NULL,0,NULL,NULL 78278,1141199,538695,Popular Question Famous Question Popular Question Caucus Yearling Census Caucus Constituent Yearling Caucus Constituent Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78279,270670,115944,Yearling Yearling Curious Necromancer Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 78280,77296,148781,NULL,NULL,NULL,0,NULL,NULL 78281,299240,1060476,NULL,NULL,NULL,0,NULL,NULL 78282,611500,231345,NULL,NULL,NULL,0,NULL,NULL 78283,3437624,390927,Notable Question,NULL,NULL,0,NULL,NULL 78284,218447,942662,Census,NULL,NULL,0,NULL,NULL 78285,152459,258512,Famous Question Yearling,NULL,NULL,0,NULL,NULL 78286,229909,471682,Popular Question,NULL,NULL,0,NULL,NULL 78287,268616,1557109,NULL,NULL,NULL,0,NULL,NULL 78288,3186516,10006,NULL,NULL,NULL,0,NULL,NULL 78289,178284,10006,NULL,NULL,NULL,0,NULL,NULL 78290,2250535,10006,NULL,NULL,NULL,0,NULL,NULL 78291,1587910,10006,NULL,NULL,NULL,0,NULL,NULL 78292,98305,1559206,NULL,NULL,NULL,0,NULL,NULL 78293,901236,1258360,Scholar Teacher Supporter Revival Student Tumbleweed Popular Question Notable Question Editor Nice Question Yearling,NULL,NULL,0,NULL,NULL 78294,91237,653517,NULL,NULL,NULL,0,NULL,NULL 78295,239033,585496,NULL,NULL,NULL,0,NULL,NULL 78296,83456,658370,NULL,NULL,NULL,0,NULL,NULL 78297,371884,658370,NULL,NULL,NULL,0,NULL,NULL 78298,233456,488053,Student Popular Question,NULL,NULL,0,NULL,NULL 78299,705991,535610,Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 78300,1356075,876264,Supporter Necromancer Nice Answer Yearling Caucus Critic,NULL,NULL,0,NULL,NULL 78301,4429496,876264,Supporter Necromancer Nice Answer Yearling Caucus Critic,NULL,NULL,0,NULL,NULL 78302,2956859,254358,NULL,NULL,NULL,0,NULL,NULL 78303,411273,753533,Revival Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 78304,6571843,753533,Revival Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 78305,7871,91580,NULL,NULL,NULL,0,NULL,NULL 78306,62964,1295416,NULL,NULL,NULL,0,NULL,NULL 78307,50298,1027823,NULL,NULL,NULL,0,NULL,NULL 78308,71481,490786,NULL,NULL,NULL,0,NULL,NULL 78309,294945,1009079,NULL,NULL,NULL,0,NULL,NULL 78310,246673,361032,NULL,NULL,NULL,0,NULL,NULL 78311,9126,123984,Nice Answer Enlightened Popular Question Yearling Popular Question Nice Answer Enlightened Nice Question Nice Answer Yearling Custodian Caucus Yearling Great Answer,NULL,NULL,0,NULL,NULL 78312,1115714,442878,NULL,NULL,NULL,0,NULL,NULL 78313,2741,828590,NULL,NULL,NULL,0,NULL,NULL 78314,430725,517316,Popular Question Popular Question Nice Question Revival Popular Question Notable Question Nice Question Nice Answer Yearling Popular Question Notable Question Custodian Good Answer Good Question Popular Question Popular Question Inquisitive Good Answer Custodian Yearling Notable Question Popular Question Notable Question Nice Answer Good Question Announcer Notable Question Necromancer Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 78315,2738,601668,NULL,NULL,NULL,0,NULL,NULL 78316,984895,472416,Guru Nice Answer Good Answer Good Question Nice Answer Custodian python Popular Question Nice Answer Popular Question Nice Answer Enlightened Yearling Good Question Nice Answer Nice Answer Famous Question Great Answer Nice Answer Enlightened Famous Question Necromancer Nice Answer Nice Answer Yearling Great Answer Nice Answer Nice Answer Popular Question Nice Answer Good Answer Nice Answer Custodian Good Answer Yearling Nice Answer Enlightened Good Answer Good Answer Notable Question,NULL,NULL,0,NULL,NULL 78317,36582,200764,Commentator Necromancer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 78318,229014,1264894,Popular Question,NULL,NULL,0,NULL,NULL 78319,518197,1085693,NULL,NULL,NULL,0,NULL,NULL 78320,843028,1085693,NULL,NULL,NULL,0,NULL,NULL 78321,84166,1502784,NULL,NULL,NULL,0,NULL,NULL 78322,234708,231917,Nice Answer Necromancer Revival Nice Answer Good Question Notable Question Announcer Necromancer Famous Question Nice Answer Favorite Question Notable Question Famous Question Notable Question Nice Answer Popular Question Nice Question Caucus Notable Question Nice Answer Nice Question Yearling Guru ruby Nice Question Famous Question Notable Question Good Answer Good Question Famous Question Good Answer Nice Answer Enlightened Popular Question Announcer Good Question Famous Question Announcer Caucus Announcer Good Answer Nice Answer Famous Question Good Answer Guru Nice Answer Yearling Famous Question Caucus Good Answer Notable Question Nice Question Good Question Famous Question Good Question Good Answer Notable Question Famous Question Nice Answer Enlightened Favorite Question Great Question Popular Question,NULL,NULL,0,NULL,NULL 78323,3144,324786,NULL,NULL,NULL,0,NULL,NULL 78324,203078,1348836,NULL,NULL,NULL,0,NULL,NULL 78325,834074,520209,Popular Question Popular Question Notable Question Critic Teacher Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78326,886424,1087065,NULL,NULL,NULL,0,NULL,NULL 78327,6728675,1087065,NULL,NULL,NULL,0,NULL,NULL 78328,153617,529743,Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Custodian Popular Question Yearling,NULL,NULL,0,NULL,NULL 78329,390578,360120,Nice Answer Popular Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 78330,51994,639096,NULL,NULL,NULL,0,NULL,NULL 78331,18680,183527,Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Caucus Nice Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Caucus Yearling Popular Question Popular Question Caucus Nice Question Yearling,NULL,NULL,0,NULL,NULL 78332,558173,1218669,NULL,NULL,NULL,0,NULL,NULL 78333,863545,697058,NULL,NULL,NULL,0,NULL,NULL 78334,128761,115997,NULL,NULL,NULL,0,NULL,NULL 78335,163343,314056,Popular Question Nice Answer Enlightened Great Answer Disciplined Popular Question Nice Answer Enlightened Popular Question Notable Question Famous Question Good Question Yearling Nice Answer Taxonomist Great Answer Guru Nice Answer Good Answer Popular Question Famous Question Nice Answer Nice Answer Caucus Popular Question Notable Question Popular Question Notable Question Popular Question Famous Question Nice Question Guru Notable Question Popular Question Revival Yearling Good Question Notable Question Popular Question Good Answer Popular Question Popular Question Necromancer Notable Question Nice Answer Good Answer Nice Answer Enlightened Notable Question Popular Question Nice Question Custodian Notable Question Yearling Notable Question Announcer Notable Question Good Answer Famous Question Archaeologist Nice Answer Enlightened Popular Question,NULL,PHP eval and capturing errors as much as possible php exception parsing eval strong emDisclaimer strong fully aware of the pitfalls and evils of eval including but not limited to performance issues security portability etc em pp strongThe problem strong ppReading the PHP manual on eval pblockquote peval returns NULL unless return is called in the evaluated code in which case the value passed to return is returned If there is parse error in the evaluated code eval returns FALSE and execution of the following code continues normally It is not possible to catch parse error in eval using set error handler blockquotepIn short no error capture except returning false which is very helpful but sur eI could do way better pp strongThe reason strong ppA part of the site functionality working on relies on executing expressions like not to pass through the path of sandbox or execution modules so ve ended using eval Before you shout what if the client turned bad know that the client is pretty much trusted he wouldn want to break his own site and anyone getting access to this functionality pretty much owns the server regardless of eval ppThe client knows about expressions like in Excel and it isn problem explaining the little differences however having some form of warning is pretty much standard functionality ppThis is what have so far ppre codedefine CR chr 13 define LF chr 10 function test cond cond trim cond if cond return Success condition was empty result false cond result str replace array CR LF cond try success eval cond if success false return Error could not run expression return Success condition return result true false catch Exception return Error exception get class gt getMessage code prep strongNotes strong pulliThe function returns message string in any event liliThe code expression should be single line piece of PHP without PHP tags and without an ending semicolon liliNew lines are converted to spaces liliA variable is added to contain the result expression should return either true or false and in order not to conflict with eval return temp variable is used li ulpSo what would you add to further aide the user Is there any further parsing functions which might better pinpoint possible errors issues ppChris that being said recommend using symfony expression language https github com symfony expression language nowadays it was not available back in 10 Is header Content Type text plain necessary at all php head pI didn see any difference with or without this head information yet answers that pretty much say the same thing none of which are selected as correct answer,0,NULL,NULL 78336,1593407,739993,NULL,NULL,NULL,0,NULL,NULL 78337,230054,586198,Yearling Necromancer Critic Necromancer Caucus Yearling Necromancer Caucus Constituent Documentation User Nice Answer,NULL,NULL,0,NULL,NULL 78338,10273,1562213,Notable Question Popular Question Notable Question Notable Question Notable Question Yearling Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Famous Question Nice Answer Yearling Famous Question Yearling Guru Nice Question,NULL,NULL,0,NULL,NULL 78339,440651,713722,NULL,NULL,NULL,0,NULL,NULL 78340,619887,1518032,Notable Question Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78341,183215,704889,NULL,NULL,NULL,0,NULL,NULL 78342,123120,388040,Notable Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78343,36514,472640,Notable Question,NULL,NULL,0,NULL,NULL 78344,772285,309938,NULL,NULL,NULL,0,NULL,NULL 78345,6966154,659094,NULL,NULL,NULL,0,NULL,NULL 78346,364688,1306271,Student Scholar Custodian Curious Enthusiast Commentator Critic Informed Yearling Caucus Constituent Popular Question Caucus Documentation User Popular Question Popular Question Civic Duty Caucus Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 78347,323343,716327,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78348,20593,1041282,Popular Question Notable Question Nice Answer Yearling Notable Question Documentation Pioneer Civic Duty Notable Question Notable Question Benefactor Notable Question Popular Question Notable Question Documentation User Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78349,52928,49107,Nice Answer Notable Question Nice Answer Enlightened Notable Question Nice Answer Enlightened Popular Question Notable Question Yearling Enlightened Necromancer Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78350,26109,691302,NULL,NULL,NULL,0,NULL,NULL 78351,192178,990297,NULL,NULL,NULL,0,NULL,NULL 78352,750415,153308,Good Answer Yearling,NULL,NULL,0,NULL,NULL 78353,1558870,606248,NULL,NULL,NULL,0,NULL,NULL 78354,1018307,1541188,Popular Question Popular Question Nice Answer Famous Question Popular Question Notable Question Yearling Notable Question Good Answer Good Answer Popular Question Popular Question Popular Question Great Answer Nice Question Nice Question Popular Question Nice Answer Civic Duty Yearling Custodian Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Yearling Popular Question Great Question Good Question,NULL,NULL,0,NULL,NULL 78355,1351438,643566,NULL,NULL,NULL,0,NULL,NULL 78356,38433,442793,Notable Question Popular Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 78357,807578,1117301,NULL,NULL,NULL,0,NULL,NULL 78358,1345526,1040231,NULL,NULL,NULL,0,NULL,NULL 78359,338931,415885,Peer Pressure Notable Question Promoter Inquisitive Benefactor Revival Nice Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78360,886798,1346390,Nice Question Yearling Popular Question Famous Question Popular Question Good Answer Yearling Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 78361,76968,85332,NULL,NULL,NULL,0,NULL,NULL 78362,4781327,601841,Good Question Notable Question Popular Question Notable Question Yearling Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Good Answer,NULL,NULL,0,NULL,NULL 78363,205226,777755,NULL,NULL,NULL,0,NULL,NULL 78364,280348,1047345,NULL,NULL,NULL,0,NULL,NULL 78365,113416,351802,Revival,NULL,NULL,0,NULL,NULL 78366,234661,1290844,NULL,NULL,NULL,0,NULL,NULL 78367,990168,1525679,NULL,NULL,NULL,0,NULL,NULL 78368,735399,262555,Nice Question Enthusiast Revival,NULL,NULL,0,NULL,NULL 78369,359196,783142,Nice Answer Nice Answer Enlightened Custodian Yearling Good Answer Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 78370,737647,863631,NULL,NULL,NULL,0,NULL,NULL 78371,129685,29364,Revival Notable Question Nice Question Revival Popular Question Popular Question Yearling Revival Notable Question Necromancer Notable Question Necromancer Famous Question Popular Question Inquisitive Necromancer Necromancer Yearling Nice Answer Necromancer Custodian Necromancer Nice Answer Yearling Nice Answer Popular Question,NULL,pThis can be done fairly easily using codemigrations SeparateDatabaseAndState code Basically we use database operation to rename the table concurrently with two state operations to remove the model from one app history and create it in another ph2Remove from old app h2pre codepython manage py makemigrations old app empty code prepIn the migration ppre codeclass Migration migrations Migration dependencies database operations migrations AlterModelTable TheModel newapp themodel state operations migrations DeleteModel TheModel operations migrations SeparateDatabaseAndState database operations database operations state operations state operations code preh2Add to new app h2pFirst copy the model to the new app model py then ppre codepython manage py makemigrations new app code prepThis will generate migration with naive codeCreateModel code operation as the sole operation Wrap that in codeSeparateDatabaseAndState code operation such that we don try to recreate the table Also include the prior migration as dependency ppre codeclass Migration migrations Migration dependencies old app above migration state operations migrations CreateModel name TheModel fields id models AutoField verbose name ID serialize False auto created True primary key True options db table newapp themodel bases models Model operations migrations SeparateDatabaseAndState state operations state operations code pre Why not simply move model definition class between apps and just keep Meta db table oldapp modelname Will this work don see why not You can also then add RenameTable migration to rename database table if you wish,0,NULL,NULL 78372,887324,1316784,NULL,NULL,NULL,0,NULL,NULL 78373,570439,1461696,Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 78374,368479,1565379,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 78375,184685,185698,Notable Question,NULL,NULL,0,NULL,NULL 78376,117946,558333,Yearling Nice Answer Caucus Editor Curious Self-Learner Nice Answer,NULL,NULL,0,NULL,NULL 78377,125465,819764,Necromancer Nice Answer Enthusiast Revival Custodian Good Answer Revival Necromancer Yearling Great Answer Necromancer Autobiographer Populist Yearling Caucus Constituent Custodian Tag Editor Custodian Citizen Patrol Nice Answer Revival Caucus Constituent Popular Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78378,1513195,1152630,NULL,NULL,NULL,0,NULL,NULL 78379,124062,1254211,Curious Popular Question Popular Question Notable Question Caucus Popular Question Yearling Announcer Nice Question Famous Question Electorate Nice Question Notable Question Enthusiast Nice Answer Enlightened Census Caucus Popular Question Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 78380,316418,1428462,Informed,NULL,NULL,0,NULL,NULL 78381,2516144,1428462,Informed,NULL,NULL,0,NULL,NULL 78382,42392,995310,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78383,75673,1032534,NULL,NULL,NULL,0,NULL,NULL 78384,7286384,1032534,NULL,NULL,NULL,0,NULL,NULL 78385,5073617,1032534,NULL,NULL,NULL,0,NULL,NULL 78386,208436,1041513,Commentator Revival Necromancer Caucus Caucus,NULL,NULL,0,NULL,NULL 78387,153750,1474181,NULL,NULL,NULL,0,NULL,NULL 78388,417051,143918,Revival,NULL,NULL,0,NULL,NULL 78389,384662,448562,NULL,NULL,NULL,0,NULL,NULL 78390,48130,856164,Supporter Student Popular Question Excavator Commentator Suffrage Vox Populi Informed Documentation User Custodian Citizen Patrol Organizer Critic Yearling Enthusiast Census Caucus Constituent Revival Civic Duty Yearling,NULL,NULL,0,NULL,NULL 78391,2398274,856164,Supporter Student Popular Question Excavator Commentator Suffrage Vox Populi Informed Documentation User Custodian Citizen Patrol Organizer Critic Yearling Enthusiast Census Caucus Constituent Revival Civic Duty Yearling,NULL,NULL,0,NULL,NULL 78392,131420,1023225,Yearling Explainer Yearling,NULL,NULL,0,NULL,NULL 78393,558854,559942,NULL,NULL,NULL,0,NULL,NULL 78394,88125,539781,NULL,NULL,NULL,0,NULL,NULL 78395,52382,1118636,NULL,NULL,NULL,0,NULL,NULL 78396,4242005,330781,NULL,NULL,NULL,0,NULL,NULL 78397,9111,1506701,NULL,NULL,NULL,0,NULL,NULL 78398,391876,382381,Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 78399,544027,791207,NULL,NULL,NULL,0,NULL,NULL 78400,174830,1431429,NULL,NULL,NULL,0,NULL,NULL 78401,5496654,1033990,NULL,NULL,NULL,0,NULL,NULL 78402,9242294,1401255,Yearling Critic Editor Scholar Student,NULL,NULL,0,NULL,NULL 78403,404532,1401255,Yearling Critic Editor Scholar Student,NULL,NULL,0,NULL,NULL 78404,324530,1243219,NULL,NULL,NULL,0,NULL,NULL 78405,1796500,1243219,NULL,NULL,NULL,0,NULL,NULL 78406,148007,581710,Informed Documentation User Peer Pressure,NULL,NULL,0,NULL,NULL 78407,390449,962458,Good Answer Yearling Editor Caucus,NULL,NULL,0,NULL,NULL 78408,183434,558469,Curious Notable Question Enthusiast Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78409,1089966,580137,NULL,NULL,NULL,0,NULL,NULL 78410,3904597,580137,NULL,NULL,NULL,0,NULL,NULL 78411,898786,1089805,Critic Necromancer Curious Excavator Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 78412,227008,398749,Famous Question Announcer Nice Answer Nice Answer Yearling Good Question Famous Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 78413,277197,461338,Reviewer Notable Question Caucus Constituent Civic Duty Caucus Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 78414,31110,623220,Tenacious Yearling Yearling,NULL,NULL,0,NULL,NULL 78415,5334,1031794,Yearling Scholar Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78416,52377,144588,NULL,NULL,NULL,0,NULL,NULL 78417,317688,683647,Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78418,54736,97300,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 78419,150683,1305378,NULL,NULL,NULL,0,NULL,NULL 78420,44453,412668,NULL,NULL,NULL,0,NULL,NULL 78421,1192095,239424,NULL,NULL,NULL,0,NULL,NULL 78422,38946,1360914,NULL,NULL,NULL,0,NULL,NULL 78423,828387,201467,NULL,NULL,NULL,0,NULL,NULL 78424,895528,825158,Yearling Tenacious Civic Duty Custodian Notable Question Yearling Caucus Constituent Revival Caucus Curious Self-Learner Necromancer,NULL,NULL,0,NULL,NULL 78425,15717,267161,Necromancer Nice Answer Yearling Supporter Scholar Tumbleweed Necromancer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 78426,384167,1199307,Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 78427,30859,1142650,NULL,NULL,NULL,0,NULL,NULL 78428,464402,158633,Self-Learner Notable Question Promoter Yearling Popular Question Popular Question Enthusiast Notable Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78429,148117,1349473,NULL,NULL,NULL,0,NULL,NULL 78430,367989,1004488,NULL,NULL,NULL,0,NULL,NULL 78431,79190,26980,Nice Answer Stellar Question Yearling Citizen Patrol Self-Learner Documentation User Yearling Taxonomist cocoa Nice Answer Benefactor Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78432,129746,1250873,Good Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Guru Yearling Great Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78433,586157,445810,Popular Question Commentator Tumbleweed Curious Revival,NULL,NULL,0,NULL,NULL 78434,239144,945947,Documentation User Yearling Good Answer,NULL,NULL,0,NULL,NULL 78435,331812,1060421,Supporter Critic,NULL,NULL,0,NULL,NULL 78436,2504215,1088045,NULL,NULL,NULL,0,NULL,NULL 78437,900371,125904,Nice Question Popular Question Notable Question Notable Question Yearling Notable Question Informed Popular Question Yearling Notable Question Nice Question Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 78438,320518,670586,Editor Teacher,NULL,NULL,0,NULL,NULL 78439,109306,223675,Popular Question Notable Question Civic Duty Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Nice Answer Notable Question Nice Answer Nice Question Socratic Popular Question Yearling Notable Question Notable Question Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Popular Question Yearling Good Question Popular Question Notable Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 78440,28493,617,Census,NULL,NULL,0,NULL,NULL 78441,884229,1354647,Informed,NULL,NULL,0,NULL,NULL 78442,963841,1321107,NULL,NULL,NULL,0,NULL,NULL 78443,3077282,1321107,NULL,NULL,NULL,0,NULL,NULL 78444,103687,328639,NULL,NULL,NULL,0,NULL,NULL 78445,278280,872824,NULL,NULL,NULL,0,NULL,NULL 78446,98448,129232,Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78447,726261,471605,Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78448,78302,1487526,NULL,NULL,NULL,0,NULL,NULL 78449,987479,1487526,NULL,NULL,NULL,0,NULL,NULL 78450,2375247,1487526,NULL,NULL,NULL,0,NULL,NULL 78451,4261996,1066662,NULL,NULL,NULL,0,NULL,NULL 78452,2771480,820363,Teacher Popular Question,NULL,NULL,0,NULL,NULL 78453,49519,363254,Notable Question Yearling,NULL,NULL,0,NULL,NULL 78454,798156,1335594,Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Notable Question Notable Question Nice Answer Notable Question Popular Question Notable Question Popular Question Nice Question Notable Question Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78455,325814,817399,Popular Question Famous Question Yearling Good Question Popular Question Popular Question Popular Question Nice Answer Popular Question Custodian Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78456,325843,817399,Popular Question Famous Question Yearling Good Question Popular Question Popular Question Popular Question Nice Answer Popular Question Custodian Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78457,1154275,1218123,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78458,121182,1131489,Famous Question,NULL,NULL,0,NULL,NULL 78459,15631,919581,NULL,NULL,NULL,0,NULL,NULL 78460,166005,124910,Yearling Nice Answer Enlightened Commentator Yearling Custodian Organizer Custodian Custodian Great Answer Yearling Necromancer Yearling Custodian,NULL,NULL,0,NULL,NULL 78461,838212,1083934,NULL,NULL,NULL,0,NULL,NULL 78462,282245,1193096,NULL,NULL,NULL,0,NULL,NULL 78463,1455430,1193096,NULL,NULL,NULL,0,NULL,NULL 78464,151482,724547,NULL,NULL,NULL,0,NULL,NULL 78465,1257256,1330347,NULL,NULL,NULL,0,NULL,NULL 78466,722516,1287335,NULL,NULL,NULL,0,NULL,NULL 78467,163446,745943,Famous Question,NULL,NULL,0,NULL,NULL 78468,3796668,745943,Famous Question,NULL,NULL,0,NULL,NULL 78469,329287,13793,Yearling Caucus Constituent Census Good Answer Yearling Good Answer Nice Answer Caucus Constituent Yearling c#,NULL,NULL,0,NULL,NULL 78470,749155,759122,Census,NULL,NULL,0,NULL,NULL 78471,1805174,635716,NULL,NULL,NULL,0,NULL,NULL 78472,74206,1027996,Popular Question Popular Question Good Question Yearling Notable Question Popular Question Good Question Popular Question Notable Question Famous Question Popular Question Popular Question Nice Question Favorite Question Nice Question Yearling Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 78473,4718567,554057,Necromancer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 78474,23339,554057,Necromancer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 78475,430514,523119,Yearling Popular Question Notable Question Nice Question Notable Question Popular Question Self-Learner Good Answer,NULL,NULL,0,NULL,NULL 78476,392806,668209,NULL,NULL,NULL,0,NULL,NULL 78477,204925,49889,Caucus Constituent Revival,NULL,NULL,0,NULL,NULL 78478,614314,434783,Yearling Civic Duty Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 78479,957203,488518,NULL,NULL,NULL,0,NULL,NULL 78480,119516,488518,NULL,NULL,NULL,0,NULL,NULL 78481,121375,1278596,NULL,NULL,NULL,0,NULL,NULL 78482,65250,1023849,NULL,NULL,NULL,0,NULL,NULL 78483,1046009,842797,NULL,NULL,NULL,0,NULL,NULL 78484,72255,272871,Supporter,NULL,NULL,0,NULL,NULL 78485,162287,467285,Necromancer Yearling Guru,NULL,NULL,0,NULL,NULL 78486,163782,553003,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Caucus Yearling Good Answer Caucus Documentation User Nice Answer Enlightened Nice Answer Nice Answer Enlightened Yearling Good Answer Caucus Announcer Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78487,42892,356366,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78488,47640,6289,NULL,NULL,NULL,0,NULL,NULL 78489,292743,301167,NULL,NULL,NULL,0,NULL,NULL 78490,145412,496389,Yearling Fanatic Necromancer Nice Answer Necromancer Nice Answer Necromancer Necromancer Good Answer Necromancer Curious Nice Answer Custodian Revival Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Nice Question Self-Learner Necromancer ios Popular Question Necromancer Yearling Necromancer Caucus Good Answer Good Answer Good Answer Necromancer Necromancer Revival Announcer Guru Nice Answer Necromancer Necromancer Caucus Necromancer Documentation User Yearling Necromancer Nice Answer Nice Answer Nice Answer Nice Answer Notable Question Electorate Yearling Announcer,NULL,NULL,0,NULL,NULL 78491,332393,698244,Popular Question,NULL,NULL,0,NULL,NULL 78492,2642004,1008015,NULL,NULL,NULL,0,NULL,NULL 78493,2469497,331464,Supporter,NULL,NULL,0,NULL,NULL 78494,372764,607037,NULL,NULL,NULL,0,NULL,NULL 78495,4936,1047730,Citizen Patrol Necromancer Informed Yearling Student Yearling,NULL,NULL,0,NULL,NULL 78496,3468541,1095626,Informed Necromancer,NULL,NULL,0,NULL,NULL 78497,334718,1559113,Editor,NULL,NULL,0,NULL,NULL 78498,8806,993186,NULL,NULL,NULL,0,NULL,NULL 78499,487378,119347,Yearling Good Answer,NULL,NULL,0,NULL,NULL 78500,120851,217952,Autobiographer,NULL,NULL,0,NULL,NULL 78501,343495,954934,Revival Disciplined,NULL,NULL,0,NULL,NULL 78502,343408,874634,Famous Question Good Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 78503,559968,1449065,Famous Question,NULL,NULL,0,NULL,NULL 78504,222480,333265,Student,NULL,NULL,0,NULL,NULL 78505,620608,1418799,NULL,NULL,NULL,0,NULL,NULL 78506,599584,163274,Nice Answer Yearling Commentator Yearling Yearling Great Answer Yearling Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 78507,1566561,1214779,Popular Question Nice Question Popular Question Famous Question Popular Question Teacher Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 78508,265810,1263442,Informed Autobiographer Supporter Teacher,NULL,NULL,0,NULL,NULL 78509,115530,1503418,NULL,NULL,NULL,0,NULL,NULL 78510,46408,314546,Yearling Custodian Necromancer Revival Nice Answer Yearling macos Yearling,NULL,NULL,0,NULL,NULL 78511,119316,214620,Yearling Custodian Popular Question Yearling Curious Documentation User Popular Question Yearling Necromancer Great Answer Yearling,NULL,NULL,0,NULL,NULL 78512,1476806,1018686,Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Caucus Civic Duty Notable Question Enthusiast Caucus Notable Question Famous Question Famous Question Famous Question Popular Question Autobiographer Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78513,738913,848511,NULL,NULL,NULL,0,NULL,NULL 78514,121399,444320,Teacher Scholar,NULL,NULL,0,NULL,NULL 78515,475283,271641,Yearling Caucus Constituent Custodian Proofreader Unsung Hero Excavator python Yearling Enthusiast Informed Custodian Autobiographer Custodian Custodian Custodian Reviewer Custodian Caucus Constituent Custodian Explainer Custodian Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 78516,181754,643522,NULL,NULL,NULL,0,NULL,NULL 78517,2150590,685331,NULL,NULL,NULL,0,NULL,NULL 78518,353115,685331,NULL,NULL,NULL,0,NULL,NULL 78519,6844322,671744,NULL,NULL,NULL,0,NULL,NULL 78520,68289,1030494,Yearling Autobiographer Citizen Patrol Nice Answer Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 78521,346538,876314,Popular Question Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 78522,786932,582569,Yearling,NULL,NULL,0,NULL,NULL 78523,319193,158049,Popular Question Notable Question Yearling Census Famous Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 78524,270533,159557,NULL,NULL,NULL,0,NULL,NULL 78525,181451,792257,NULL,NULL,NULL,0,NULL,NULL 78526,1317728,1024052,Teacher Tag Editor Supporter Critic Revival Informed Suffrage Student Quorum Editor Commentator Yearling Vox Populi Yearling Talkative Tumbleweed Organizer Custodian Yearling Enthusiast Citizen Patrol Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78527,102359,193403,NULL,NULL,NULL,0,NULL,NULL 78528,7012736,376653,NULL,NULL,NULL,0,NULL,NULL 78529,470106,1329615,Yearling Custodian Citizen Patrol Custodian Caucus,NULL,NULL,0,NULL,NULL 78530,1097084,115072,Famous Question,NULL,NULL,0,NULL,NULL 78531,62098,42507,NULL,NULL,NULL,0,NULL,NULL 78532,116266,274937,Yearling Good Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 78533,441992,1386610,Yearling Census Yearling Excavator Necromancer,NULL,NULL,0,NULL,NULL 78534,319248,832116,NULL,NULL,NULL,0,NULL,NULL 78535,278057,391411,Popular Question Yearling Good Answer Popular Question Yearling Popular Question Famous Question Self-Learner Nice Answer Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78536,877146,1464512,NULL,NULL,NULL,0,NULL,NULL 78537,8298,1464512,NULL,NULL,NULL,0,NULL,NULL 78538,156998,1063186,NULL,NULL,NULL,0,NULL,NULL 78539,338717,207240,Famous Question Famous Question Famous Question Notable Question Notable Question Yearling Popular Question Notable Question Good Answer Nice Question Famous Question,NULL,NULL,0,NULL,NULL 78540,578882,495337,Famous Question Good Question,NULL,NULL,0,NULL,NULL 78541,1869026,889855,NULL,NULL,NULL,0,NULL,NULL 78542,5312169,889855,NULL,NULL,NULL,0,NULL,NULL 78543,1201832,857777,NULL,NULL,NULL,0,NULL,NULL 78544,30869,104344,Nice Answer Enlightened Nice Answer Good Answer Good Answer Announcer Yearling Popular Question Popular Question Revival Nice Answer Guru Notable Question Yearling Guru Custodian Nice Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Yearling Necromancer Famous Question,NULL,NULL,0,NULL,NULL 78545,1670381,1228347,NULL,NULL,NULL,0,NULL,NULL 78546,507605,309130,Revival Editor Commentator Yearling Tumbleweed Student Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 78547,16250,933525,NULL,NULL,NULL,0,NULL,NULL 78548,724229,632055,Notable Question Good Question Nice Question Popular Question Yearling Nice Question Notable Question Favorite Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78549,550708,464268,NULL,NULL,NULL,0,NULL,NULL 78550,589302,1473765,Popular Question Nice Answer Popular Question Caucus Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 78551,205323,184680,NULL,NULL,NULL,0,NULL,NULL 78552,301232,611518,NULL,NULL,NULL,0,NULL,NULL 78553,149014,256138,Good Answer Notable Question Yearling Good Question Nice Question Guru Popular Question Popular Question Nice Answer Good Answer Notable Question Nice Answer Enlightened Revival Popular Question Nice Question Notable Question Nice Question Famous Question Famous Question Notable Question cmake Notable Question Guru Popular Question Good Answer Necromancer Populist Nice Answer Nice Answer Mortarboard Good Answer Nice Answer Great Answer mingw Nice Question Popular Question Nice Question Peer Pressure Popular Question Nice Answer Popular Question c Caucus Revival Nice Answer Good Question gcc Guru Good Answer Necromancer Announcer Yearling Notable Question Great Answer Famous Question Revival Nice Question Nice Answer Enlightened Nice Answer Guru Notable Question Notable Question Popular Question Notable Question Nice Answer Enlightened Nice Question Good Answer Popular Question Nice Answer Enlightened Announcer Popular Question Notable Question Great Question Nice Question Announcer Nice Answer Nice Answer Announcer Necromancer Nice Answer Good Answer Good Answer Caucus Nice Question Famous Question Popular Question Famous Question Announcer Popular Question Famous Question Popular Question Nice Answer Enlightened g++ Popular Question templates Nice Answer Popular Question Announcer Notable Question Notable Question Popular Question Announcer Yearling Favorite Question Nice Question Famous Question Popular Question Nice Answer Enlightened Good Answer Nice Answer Popular Question Popular Question Nice Answer Nice Answer Famous Question stl Nice Question Announcer Populist Announcer Popular Question Nice Question Popular Question Popular Question Good Answer Nice Answer Announcer Nice Answer Notable Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Nice Question Nice Answer Nice Question Popular Question Popular Question Nice Answer Enlightened Popular Question Notable Question,NULL,How to assert if std mutex is locked linux gcc 11 pWith GCC on Linux Debian Sid 64 bits or GCC when available in 11 have some mutex ppre codestd mutex gmtx code prep supactually it is codestatic code member in some class codeFoo code containing both codealpha code and codebeta code methods below sup ppit is locked in codealpha code like ppre codevoid alpha void std lock guard lt std mutex gt gmtx beta void some other work code prepand want to check in codebeta code that indeed codegmtx code is locked ppre codevoid beta void assert gmtx is locked some real work code prep sup notice that codeis locked code is only called inside codeassert code It can be very inefficient or even sometimes inaccurate sup ppOf course have other functions calling codebeta code ppre codevoid gamma void std lock guard lt std mutex gt gmtx beta some other work code prepbut codeis locked code does not exist How should define it actually would like to be sure that the mutex has been locked in the same thread by some indirect caller pp the reason want to test that with codeassert code is that codebeta code could be called elsewhere ppI cannot use codetry lock code unless using recursive mutexes because in the common case it would lock an already locked mutex locked in the same thread by caller and this is not only undefined behavior but blocks entirely ppI want to avoid recursive mutexes more costly than plain mutexes unless really have to phrp supNB The real program is bit more complex Actually all the methods are inside class which maintain naming bi directional relation on items So have inside that class map from items to names and another from names to items codebeta code would be the internal method adding really naming and codealpha code and codegamma code would be the methods finding or adding an item by its name or name by its item sup pp supPS the real program is not yet released but should become part of href http gcc melt org rel noreferrer MELT its future href http gcc gnu org ml jit 2013 q4 msg00025 html rel noreferrer monitor you can download it alpha stage very buggy from href http starynkevitch net Basile monimelt 19feb2014 tgz rel noreferrer here temporary location sup Wrap the lock in class that maintains locked boolean variable and check that pI have done some more digging and found these resources polli pAn codesh code tutorial located href https web archive org web 20170207130846 http porkmail org era unix shell html rel nofollow noreferrer here lili pA Bash book containing Bash BNF grammar gone from href http www teiser gr icd staff nikolaid learning the bash shell pdf rel nofollow noreferrer here with the relevant appendix href http my safaribooksonline com book operating systems and server administration unix 1565923472 syntax lbs appd div rel nofollow noreferrer still here li olpI have looked through the sources of codebash code codepdksh code and codeposh code but haven found anything remotely at the level of abstraction need found another copy and saved that to the WayBackMachine should increase the link longevity pUnfortunately the MinGW w64 installer you used sometimes has this issue myself am not sure about why this happens think it has something to do with Sourceforge URL redirection or whatever that the installer currently can handle properly enough ppAnyways if you re already planning on using MSYS2 there no need for that installer polli pDownload MSYS2 from href https msys2 github io rel noreferrer this page choose 32 or 64 bit according to what version of Windows you are going to use it on not what kind of executables you want to build both versions can build both 32 and 64 bit binaries lili pAfter the install completes click on the newly created MSYS2 Shell option under either codeMSYS2 64 bit code or codeMSYS2 32 bit code in the Start menu Update MSYS2 according to the wiki although just do codepacman Syu code ignore all errors and close the window and open new one this is not recommended and you should do what the wiki page says lili pInstall toolchain ppa for 32 bit ppre codepacman mingw w64 i686 gcc code prepb for 64 bit ppre codepacman mingw w64 x86 64 gcc code pre lili pinstall any libraries tools you may need You can search the repositories by doing ppre codepacman Ss name of something want to install code prepe ppre codepacman Ss gsl code prepand install using ppre codepacman package name of something want to install code prepe ppre codepacman mingw w64 x86 64 gsl code prepand from then on the GSL library is automatically found by your MinGW w64 64 bit compiler lili pOpen MinGW w64 shell ppa To build 32 bit things open the MinGW w64 32 bit Shell ppb To build 64 bit things open the MinGW w64 64 bit Shell lili pVerify that the compiler is working by doing ppre codegcc code pre li olpIf you want to use the toolchains with installed libraries outside of the MSYS2 environment all you need to do is add code lt MSYS2 root gt mingw32 bin code or code lt MSYS2 root gt mingw64 bin code to your codePATH code agree they take the Arch Way in explaining things read the Arch wiki on pacman and you know nearly the same beginner setup might be useful although it is now on SO which should turn up on Google quite quickly read this as keep upvoting this answer pUnfortunately the MinGW w64 installer you used sometimes has this issue myself am not sure about why this happens think it has something to do with Sourceforge URL redirection or whatever that the installer currently can handle properly enough ppAnyways if you re already planning on using MSYS2 there no need for that installer polli pDownload MSYS2 from href https msys2 github io rel noreferrer this page choose 32 or 64 bit according to what version of Windows you are going to use it on not what kind of executables you want to build both versions can build both 32 and 64 bit binaries lili pAfter the install completes click on the newly created MSYS2 Shell option under either codeMSYS2 64 bit code or codeMSYS2 32 bit code in the Start menu Update MSYS2 according to the wiki although just do codepacman Syu code ignore all errors and close the window and open new one this is not recommended and you should do what the wiki page says lili pInstall toolchain ppa for 32 bit ppre codepacman mingw w64 i686 gcc code prepb for 64 bit ppre codepacman mingw w64 x86 64 gcc code pre lili pinstall any libraries tools you may need You can search the repositories by doing ppre codepacman Ss name of something want to install code prepe ppre codepacman Ss gsl code prepand install using ppre codepacman package name of something want to install code prepe ppre codepacman mingw w64 x86 64 gsl code prepand from then on the GSL library is automatically found by your MinGW w64 64 bit compiler lili pOpen MinGW w64 shell ppa To build 32 bit things open the MinGW w64 32 bit Shell ppb To build 64 bit things open the MinGW w64 64 bit Shell lili pVerify that the compiler is working by doing ppre codegcc code pre li olpIf you want to use the toolchains with installed libraries outside of the MSYS2 environment all you need to do is add code lt MSYS2 root gt mingw32 bin code or code lt MSYS2 root gt mingw64 bin code to your codePATH code you need to work on your reading skills https wiki archlinux org index php Pacman Installing specific packages,0,NULL,NULL 78554,72283,54740,Yearling Good Question Yearling Civic Duty Yearling Necromancer,NULL,NULL,0,NULL,NULL 78555,556535,1104452,NULL,NULL,NULL,0,NULL,NULL 78556,205112,622437,NULL,NULL,NULL,0,NULL,NULL 78557,41965,279363,Yearling Guru Civic Duty Famous Question Caucus Yearling Custodian Nice Answer Yearling Custodian Notable Question Good Answer Good Answer Revival,NULL,NULL,0,NULL,NULL 78558,1183107,232966,Nice Question Notable Question Popular Question Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 78559,82843,594939,Nice Answer Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 78560,1754265,1560712,NULL,NULL,NULL,0,NULL,NULL 78561,719896,990043,Famous Question Notable Question Nice Question Good Answer Yearling Nice Answer Enlightened Revival Necromancer Yearling Famous Question Good Question Investor Nice Question Yearling,NULL,NULL,0,NULL,NULL 78562,304145,1079360,laravel php Great Answer Yearling Excavator Custodian Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 78563,291662,157204,NULL,NULL,NULL,0,NULL,NULL 78564,917931,656581,NULL,NULL,NULL,0,NULL,NULL 78565,197442,340984,NULL,NULL,NULL,0,NULL,NULL 78566,207022,468456,NULL,NULL,NULL,0,NULL,NULL 78567,35447,1083475,NULL,NULL,NULL,0,NULL,NULL 78568,34966,319935,Good Answer Yearling Announcer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 78569,35395,34258,Nice Answer Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Good Answer Populist Yearling Good Answer Nice Answer Nice Answer Nice Answer Yearling Guru Great Answer Guru Yearling,NULL,NULL,0,NULL,NULL 78570,77349,627308,Yearling Good Answer Curious Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 78571,696894,941793,NULL,NULL,NULL,0,NULL,NULL 78572,887393,1233696,NULL,NULL,NULL,0,NULL,NULL 78573,37249,508871,NULL,NULL,NULL,0,NULL,NULL 78574,901455,51011,Necromancer,NULL,NULL,0,NULL,NULL 78575,278019,370347,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78576,364289,1230861,NULL,NULL,NULL,0,NULL,NULL 78577,130203,603910,NULL,NULL,NULL,0,NULL,NULL 78578,1504238,586274,Famous Question,NULL,NULL,0,NULL,NULL 78579,184753,366332,Revival Custodian Yearling Yearling Caucus Custodian Great Answer Census Proofreader Caucus Vox Populi Constituent Electorate Yearling Announcer,NULL,NULL,0,NULL,NULL 78580,345882,648555,NULL,NULL,NULL,0,NULL,NULL 78581,296775,1371044,NULL,NULL,NULL,0,NULL,NULL 78582,222350,65087,Yearling Popular Question Nice Question Popular Question Notable Question Civic Duty Yearling Notable Question Good Question Popular Question Favorite Question Popular Question Notable Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78583,193543,569995,NULL,NULL,NULL,0,NULL,NULL 78584,200197,368206,Yearling,NULL,NULL,0,NULL,NULL 78585,1177102,147736,Editor Yearling Popular Question Yearling Populist,NULL,NULL,0,NULL,NULL 78586,867851,28585,Good Question Yearling,NULL,NULL,0,NULL,NULL 78587,384018,1448937,NULL,NULL,NULL,0,NULL,NULL 78588,247680,351151,Yearling Yearling,NULL,NULL,0,NULL,NULL 78589,49349,99024,Nice Answer Notable Question Revival Necromancer Yearling Necromancer Necromancer Nice Answer Nice Answer Necromancer Custodian Custodian Custodian Popular Question Nice Answer Good Answer Good Answer Notable Question Necromancer Nice Answer Tag Editor Good Answer Guru Yearling Necromancer Nice Answer Caucus Nice Question Notable Question Necromancer Nice Answer Necromancer Nice Answer Nice Answer Notable Question Documentation User Famous Question Necromancer Necromancer Good Answer Announcer Announcer Populist Good Answer Caucus Guru Revival javascript Yearling Revival Nice Answer Notable Question Popular Question Nice Answer,NULL,How to find indices of groups in JavaScript regular expressions match javascript regex pWhen write regular expression like ppre codevar exec this is hello to you console log code prepI get match object containing the following ppre code is hello index input this is hello to you code prepI know the index of the entire match from the codeindex code property but also need to know the start and end of the groups matched Using simple search won work In this example it will find the first instead of the one found in the group ppIs there any way to get the offset of matched group Possible duplicate of Get index of each capture in JavaScript regex http stackoverflow com questions 15934353 get index of each capture in javascript regex,0,NULL,NULL 78590,308020,628521,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78591,298445,1160268,NULL,NULL,NULL,0,NULL,NULL 78592,191700,664430,NULL,NULL,NULL,0,NULL,NULL 78593,1604099,664430,NULL,NULL,NULL,0,NULL,NULL 78594,362672,876794,Necromancer Nice Answer Yearling Good Answer Yearling Autobiographer Great Answer Nice Answer Yearling Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 78595,165757,805222,Notable Question,NULL,NULL,0,NULL,NULL 78596,439965,798306,NULL,NULL,NULL,0,NULL,NULL 78597,141772,569015,Yearling Yearling Great Question Notable Question Necromancer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78598,7032891,569015,Yearling Yearling Great Question Notable Question Necromancer Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 78599,1490107,1511603,NULL,NULL,NULL,0,NULL,NULL 78600,223257,636283,Critic Commentator,NULL,NULL,0,NULL,NULL 78601,1705577,1232147,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78602,488535,1300124,NULL,NULL,NULL,0,NULL,NULL 78603,354033,15721,Necromancer Popular Question Nice Answer Nice Answer Guru Necromancer Nice Question Nice Answer Good Answer Notable Question Famous Question Good Question Good Answer Notable Question Great Answer Popular Question Good Answer Great Answer Yearling Nice Answer Popular Question Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Stellar Question Good Answer Popular Question Nice Answer Notable Question Nice Answer Popular Question Notable Question Famous Question Good Question Guru Good Answer Popular Question Notable Question Good Answer Popular Question Yearling Good Question Famous Question Good Answer Popular Question Nice Answer Nice Question Nice Answer Famous Question Good Answer Popular Question Nice Question Nice Answer Populist Famous Question Nice Answer Enlightened Yearling Guru Popular Question Popular Question Notable Question Good Answer Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 78604,288906,541244,Notable Question,NULL,NULL,0,NULL,NULL 78605,6757043,541244,Notable Question,NULL,NULL,0,NULL,NULL 78606,277110,1794,Cleanup Yearling Stellar Question Yearling Yearling,NULL,NULL,0,NULL,NULL 78607,1718829,977237,NULL,NULL,NULL,0,NULL,NULL 78608,140045,630337,Teacher,NULL,NULL,0,NULL,NULL 78609,927070,1491013,NULL,NULL,NULL,0,NULL,NULL 78610,6176815,695392,Notable Question,NULL,NULL,0,NULL,NULL 78611,3704,450607,NULL,NULL,NULL,0,NULL,NULL 78612,148850,608167,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78613,237992,608167,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78614,1340804,602524,Yearling Popular Question Famous Question Good Question Nice Question Notable Question Notable Question Popular Question Notable Question Popular Question Famous Question Famous Question Yearling Popular Question Popular Question Good Question Popular Question Yearling Notable Question Nice Question Famous Question Famous Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 78615,617952,1227596,NULL,NULL,NULL,0,NULL,NULL 78616,1270469,578129,Editor Scholar,NULL,NULL,0,NULL,NULL 78617,559401,1419760,Supporter,NULL,NULL,0,NULL,NULL 78618,775065,1168007,NULL,NULL,NULL,0,NULL,NULL 78619,166721,542576,Necromancer Yearling Famous Question Booster Famous Question Investor Altruist Popular Question,NULL,NULL,0,NULL,NULL 78620,21698,95967,Nice Answer Necromancer Yearling Tenacious Revival Nice Answer Scholar Caucus Custodian Yearling Caucus Necromancer Nice Answer Documentation User Good Answer Necromancer Custodian Necromancer Caucus Yearling Necromancer Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 78621,887557,701723,Tumbleweed Notable Question Necromancer,NULL,NULL,0,NULL,NULL 78622,157684,1086196,Yearling,NULL,NULL,0,NULL,NULL 78623,873790,665170,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 78624,138342,368253,NULL,NULL,NULL,0,NULL,NULL 78625,193875,631593,Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Popular Question Documentation User Notable Question,NULL,NULL,0,NULL,NULL 78626,268537,999467,Popular Question Teacher Notable Question Nice Question,NULL,NULL,0,NULL,NULL 78627,2277798,934191,Popular Question Popular Question Nice Answer Yearling Caucus Nice Answer Great Question Notable Question Nice Answer Good Answer Notable Question Caucus Yearling Nice Answer Enlightened Documentation User Famous Question Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 78628,1748542,367848,NULL,NULL,NULL,0,NULL,NULL 78629,278003,213506,NULL,NULL,NULL,0,NULL,NULL 78630,176797,189742,Great Answer Popular Question Notable Question Yearling Nice Answer Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 78631,1350757,1032647,NULL,NULL,NULL,0,NULL,NULL 78632,431838,1365008,Yearling Good Answer Good Question Caucus Caucus Announcer,NULL,NULL,0,NULL,NULL 78633,10681680,616663,Caucus Notable Question Notable Question,NULL,NULL,0,NULL,NULL 78634,283175,881080,NULL,NULL,NULL,0,NULL,NULL 78635,39068,295761,Guru Yearling Notable Question Popular Question Yearling Caucus Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 78636,36466,162909,Famous Question Famous Question Famous Question Nice Question Popular Question Nice Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 78637,172550,543640,Famous Question Critic Informed Citizen Patrol Yearling Popular Question,NULL,NULL,0,NULL,NULL 78638,79959,71160,NULL,NULL,NULL,0,NULL,NULL 78639,306673,505196,Famous Question Famous Question Nice Question Popular Question Popular Question Yearling Notable Question Custodian Tag Editor Documentation User Custodian Explainer Yearling Tenacious Revival Good Question Popular Question Popular Question Popular Question Good Question Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78640,776910,706206,NULL,NULL,NULL,0,NULL,NULL 78641,96602,645579,NULL,NULL,NULL,0,NULL,NULL 78642,10832538,645579,NULL,NULL,NULL,0,NULL,NULL 78643,320836,1257451,NULL,NULL,NULL,0,NULL,NULL 78644,836552,226416,NULL,NULL,NULL,0,NULL,NULL 78645,1374417,965997,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78646,173548,576519,Yearling Necromancer Caucus Yearling Yearling Nice Answer Enlightened Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78647,120691,1328863,Nice Answer,NULL,NULL,0,NULL,NULL 78648,43107,462216,Good Answer Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 78649,752562,715336,Supporter Teacher Yearling,NULL,NULL,0,NULL,NULL 78650,52572,354067,Yearling Nice Answer Pundit Good Answer Famous Question Good Answer Notable Question Nice Answer Nice Answer Enlightened Good Answer Great Answer Guru Nice Question Yearling Nice Answer Enlightened Nice Answer Enlightened Popular Question Notable Question Yearling Popular Question Guru Guru Guru,NULL,NULL,0,NULL,NULL 78651,324488,1291118,Notable Question Notable Question Popular Question Nice Question Yearling Famous Question Famous Question Caucus Popular Question Announcer Good Question Notable Question Popular Question Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78652,1913197,1291118,Notable Question Notable Question Popular Question Nice Question Yearling Famous Question Famous Question Caucus Popular Question Announcer Good Question Notable Question Popular Question Good Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78653,398323,188321,NULL,NULL,NULL,0,NULL,NULL 78654,860381,542552,NULL,NULL,NULL,0,NULL,NULL 78655,777670,436593,Yearling,NULL,NULL,0,NULL,NULL 78656,187643,1419132,Editor,NULL,NULL,0,NULL,NULL 78657,290057,1196334,Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 78658,329510,1491264,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78659,10725479,959521,Commentator,NULL,NULL,0,NULL,NULL 78660,10725513,959521,Commentator,NULL,NULL,0,NULL,NULL 78661,10725565,959521,Commentator,NULL,NULL,0,NULL,NULL 78662,10725633,959521,Commentator,NULL,NULL,0,NULL,NULL 78663,10795115,959521,Commentator,NULL,NULL,0,NULL,NULL 78664,235150,959521,Commentator,NULL,NULL,0,NULL,NULL 78665,85371,325461,NULL,NULL,NULL,0,NULL,NULL 78666,621661,1004617,Nice Answer Enlightened Yearling Caucus rspec Nice Answer Caucus Yearling Custodian Caucus ruby Yearling,NULL,NULL,0,NULL,NULL 78667,120726,451636,NULL,NULL,,0,, 78668,1615651,1233755,NULL,NULL,NULL,0,NULL,NULL 78669,732206,1280490,Scholar,NULL,NULL,0,NULL,NULL 78670,469466,1032631,Custodian Custodian Informed Excavator Custodian Yearling Caucus Yearling Custodian Yearling,NULL,NULL,0,NULL,NULL 78671,277369,1415587,NULL,NULL,NULL,0,NULL,NULL 78672,297448,569916,Popular Question Popular Question Yearling Curious Critic,NULL,NULL,0,NULL,NULL 78673,1107387,378161,NULL,NULL,NULL,0,NULL,NULL 78674,222332,198005,NULL,NULL,NULL,0,NULL,NULL 78675,408500,436079,NULL,NULL,NULL,0,NULL,NULL 78676,349144,308973,Self-Learner Popular Question Critic Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78677,714548,268245,NULL,NULL,NULL,0,NULL,NULL 78678,10370,366243,Student,NULL,NULL,0,NULL,NULL 78679,1503924,828788,NULL,NULL,NULL,0,NULL,NULL 78680,1574518,783739,NULL,NULL,NULL,0,NULL,NULL 78681,415497,1307013,NULL,NULL,NULL,0,NULL,NULL 78682,4596291,962518,NULL,NULL,NULL,0,NULL,NULL 78683,70529,1238269,Yearling Good Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 78684,507504,200578,Popular Question Commentator,NULL,NULL,0,NULL,NULL 78685,428449,1360979,Famous Question Scholar Tumbleweed Teacher Curious Commentator Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 78686,176545,438921,NULL,NULL,NULL,0,NULL,NULL 78687,179676,509897,NULL,NULL,NULL,0,NULL,NULL 78688,219892,940229,Popular Question Necromancer Yearling Nice Answer Yearling Critic Caucus Necromancer,NULL,NULL,0,NULL,NULL 78689,17302,773999,Good Answer Yearling Popular Question Yearling Great Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 78690,122036,76890,Yearling Great Question Yearling Yearling Favorite Question Yearling,NULL,NULL,0,NULL,NULL 78691,228387,1027843,Informed Autobiographer Supporter Teacher Editor Critic Commentator Suffrage Organizer Yearling Citizen Patrol Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78692,1838676,927373,NULL,NULL,NULL,0,NULL,NULL 78693,2977361,783316,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78694,3037199,783316,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78695,1505730,893086,Popular Question Supporter,NULL,NULL,0,NULL,NULL 78696,36672,79370,Census,NULL,NULL,0,NULL,NULL 78697,27652,127036,Popular Question Yearling Popular Question Notable Question Yearling Caucus Yearling Good Question,NULL,NULL,0,NULL,NULL 78698,375646,152229,Editor Popular Question Yearling Notable Question Caucus Announcer,NULL,NULL,0,NULL,NULL 78699,528401,115130,Popular Question,NULL,NULL,0,NULL,NULL 78700,187698,51026,Revival Yearling,NULL,NULL,0,NULL,NULL 78701,327888,9641,Necromancer Yearling Nice Answer Nice Answer Self-Learner Good Answer Great Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78702,25270,330692,NULL,NULL,NULL,0,NULL,NULL 78703,770449,1300969,NULL,NULL,NULL,0,NULL,NULL 78704,107919,299771,Critic,NULL,NULL,0,NULL,NULL 78705,447022,260191,Famous Question,NULL,NULL,0,NULL,NULL 78706,495964,599813,Yearling Popular Question Yearling Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78707,1541089,599813,Yearling Popular Question Yearling Popular Question Popular Question Notable Question Necromancer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78708,91,440012,NULL,NULL,NULL,0,NULL,NULL 78709,435102,276287,Nice Answer Yearling Supporter Yearling Custodian Commentator Notable Question Autobiographer Yearling Informed Self-Learner,NULL,NULL,0,NULL,NULL 78710,101062,936203,NULL,NULL,NULL,0,NULL,NULL 78711,347084,355241,Yearling Editor Good Answer Yearling Populist Caucus Critic Yearling Caucus Curious Necromancer Yearling,NULL,NULL,0,NULL,NULL 78712,839490,1254886,Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 78713,261498,1071069,Necromancer,NULL,NULL,0,NULL,NULL 78714,4179687,862747,NULL,NULL,NULL,0,NULL,NULL 78715,141868,476865,NULL,NULL,NULL,0,NULL,NULL 78716,21004,686225,NULL,NULL,NULL,0,NULL,NULL 78717,281864,1390405,Revival Yearling Critic Informed Autobiographer Caucus Peer Pressure Custodian Citizen Patrol Custodian Caucus Nice Answer Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 78718,35459,719292,Yearling Famous Question Nice Answer Enlightened Revival Yearling Yearling,NULL,NULL,0,NULL,NULL 78719,32301,175652,Informed Student Scholar Supporter Editor,NULL,NULL,0,NULL,NULL 78720,161038,142901,Yearling Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 78721,106552,1402881,Notable Question,NULL,NULL,0,NULL,NULL 78722,36370,859468,NULL,NULL,NULL,0,NULL,NULL 78723,97926,71358,Necromancer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 78724,136698,389197,Popular Question Popular Question Guru Notable Question Yearling Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Yearling Famous Question Notable Question Notable Question Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78725,1088612,378679,NULL,NULL,NULL,0,NULL,NULL 78726,4189685,442839,NULL,NULL,NULL,0,NULL,NULL 78727,104605,391315,Nice Answer Great Answer Nice Answer Yearling Nice Answer Popular Question Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 78728,9079,1340524,NULL,NULL,NULL,0,NULL,NULL 78729,435387,680111,Yearling Curious Critic Popular Question Commentator,NULL,NULL,0,NULL,NULL 78730,1182856,1514059,NULL,NULL,NULL,0,NULL,NULL 78731,50800,1339504,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 78732,372788,979994,NULL,NULL,NULL,0,NULL,NULL 78733,391759,1085015,Tumbleweed Documentation User,NULL,NULL,0,NULL,NULL 78734,257463,197974,NULL,NULL,NULL,0,NULL,NULL 78735,379355,1224152,Nice Answer Critic Yearling,NULL,NULL,0,NULL,NULL 78736,494018,976238,NULL,NULL,NULL,0,NULL,NULL 78737,901989,1423992,NULL,NULL,NULL,0,NULL,NULL 78738,33422,230881,NULL,NULL,NULL,0,NULL,NULL 78739,292767,659947,NULL,NULL,NULL,0,NULL,NULL 78740,161315,694542,NULL,NULL,NULL,0,NULL,NULL 78741,390510,969098,NULL,NULL,NULL,0,NULL,NULL 78742,208822,630368,Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 78743,617953,748982,NULL,NULL,NULL,0,NULL,NULL 78744,25500,235960,Good Answer Nice Question Yearling Guru Nice Answer Nice Answer Popular Question Yearling Nice Question Nice Question,NULL,NULL,0,NULL,NULL 78745,80587,198244,Great Answer Nice Answer Nice Answer Good Answer Nice Answer Nice Answer Good Answer Yearling Enlightened Nice Answer Good Answer Guru Great Answer Announcer Great Answer Documentation User Nice Answer Enlightened Yearling Good Answer Great Answer Nice Answer Census Guru Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 78746,718695,855419,Guru Supporter Yearling,NULL,NULL,0,NULL,NULL 78747,382461,804807,NULL,NULL,NULL,0,NULL,NULL 78748,72971,762326,Teacher Supporter Editor Commentator Informed Autobiographer Organizer Critic Yearling Caucus Yearling Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78749,307762,547311,Student Notable Question Teacher,NULL,NULL,0,NULL,NULL 78750,855008,1008216,NULL,NULL,NULL,0,NULL,NULL 78751,1507831,1162608,Notable Question,NULL,NULL,0,NULL,NULL 78752,15486,213561,NULL,NULL,NULL,0,NULL,NULL 78753,428854,132256,NULL,NULL,NULL,0,NULL,NULL 78754,195425,1325509,Popular Question,NULL,NULL,0,NULL,NULL 78755,220255,35720,Yearling Critic Revival,NULL,NULL,0,NULL,NULL 78756,297533,803026,Good Answer Yearling,NULL,NULL,0,NULL,NULL 78757,1089364,548350,NULL,NULL,NULL,0,NULL,NULL 78758,178076,1222319,Autobiographer,NULL,NULL,0,NULL,NULL 78759,73397,511631,NULL,NULL,NULL,0,NULL,NULL 78760,212281,581395,Necromancer Yearling Nice Answer Guru Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78761,182518,241869,Announcer,NULL,NULL,0,NULL,NULL 78762,111680,905045,NULL,NULL,NULL,0,NULL,NULL 78763,1279412,1192642,Teacher,NULL,NULL,0,NULL,NULL 78764,493125,1192642,Teacher,NULL,NULL,0,NULL,NULL 78765,71763,750955,Critic Popular Question Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 78766,1119892,1307985,Yearling Commentator Yearling Revival Enthusiast Informed Organizer Necromancer Yearling Scholar Announcer Nice Answer Caucus Revival Caucus Yearling Revival Good Answer,NULL,NULL,0,NULL,NULL 78767,3278154,1405341,NULL,NULL,NULL,0,NULL,NULL 78768,19923,497330,Teacher,NULL,NULL,0,NULL,NULL 78769,1057289,314612,NULL,NULL,NULL,0,NULL,NULL 78770,111776,592235,Good Question Yearling Popular Question Good Question Notable Question Good Question Notable Question Nice Question Nice Question Nice Question Popular Question Nice Question Famous Question Nice Question Popular Question Caucus Constituent Excavator Popular Question Notable Question Yearling Notable Question Nice Question python Notable Question Nice Answer Enlightened Popular Question Good Answer Nice Question Notable Question Necromancer Popular Question Good Question Custodian Notable Question Famous Question Famous Question Famous Question Census Yearling Famous Question Notable Question Popular Question Necromancer Caucus Good Question Popular Question Popular Question Popular Question Notable Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 78771,83342,281971,NULL,NULL,NULL,0,NULL,NULL 78772,487318,1473581,NULL,NULL,NULL,0,NULL,NULL 78773,517144,470363,NULL,NULL,NULL,0,NULL,NULL 78774,241695,6048,Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 78775,1123673,1525972,Yearling,NULL,NULL,0,NULL,NULL 78776,2289474,629789,Good Question Yearling,NULL,NULL,0,NULL,NULL 78777,3952832,202507,Nice Answer Nice Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 78778,6200404,513434,Popular Question,NULL,NULL,0,NULL,NULL 78779,426187,247095,Yearling Popular Question Nice Question Famous Question Notable Question Popular Question Nice Question Good Question Nice Question Notable Question Notable Question Notable Question Notable Question Yearling Notable Question Great Question Nice Question Popular Question Popular Question Revival Yearling Census Nice Answer Caucus Notable Question,NULL,NULL,0,NULL,NULL 78780,103025,956615,NULL,NULL,NULL,0,NULL,NULL 78781,3124494,290501,Yearling Citizen Patrol Yearling Caucus Revival Caucus Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78782,1046254,1058540,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 78783,455725,1342533,NULL,NULL,NULL,0,NULL,NULL 78784,244631,188315,Notable Question,NULL,NULL,0,NULL,NULL 78785,613770,705298,NULL,NULL,NULL,0,NULL,NULL 78786,3177639,990985,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78787,897636,300345,NULL,NULL,NULL,0,NULL,NULL 78788,240468,448668,Good Question,NULL,NULL,0,NULL,NULL 78789,324001,1033193,Autobiographer Commentator Informed Teacher Self-Learner Yearling Tumbleweed Critic Suffrage Civic Duty Caucus Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78790,598035,1166710,Yearling Curious Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 78791,900457,1166710,Yearling Curious Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 78792,3778044,1166710,Yearling Curious Yearling Good Answer Caucus,NULL,NULL,0,NULL,NULL 78793,2836121,1206262,NULL,NULL,NULL,0,NULL,NULL 78794,1430757,783047,NULL,NULL,NULL,0,NULL,NULL 78795,846499,126782,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 78796,199865,221001,Great Question Yearling Teacher Popular Question Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 78797,317540,1073364,NULL,NULL,NULL,0,NULL,NULL 78798,1166316,498537,Nice Answer Popular Question Popular Question Yearling Notable Question Notable Question Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 78799,26003,522341,NULL,NULL,NULL,0,NULL,NULL 78800,596387,540074,Notable Question,NULL,NULL,0,NULL,NULL 78801,783362,1040354,NULL,NULL,NULL,0,NULL,NULL 78802,78611,940845,NULL,NULL,NULL,0,NULL,NULL 78803,80116,543344,NULL,NULL,NULL,0,NULL,NULL 78804,443671,1557754,NULL,NULL,NULL,0,NULL,NULL 78805,107042,1391892,NULL,NULL,NULL,0,NULL,NULL 78806,817812,1079328,Popular Question Notable Question Supporter Popular Question,NULL,NULL,0,NULL,NULL 78807,1566838,1362340,Nice Question,NULL,NULL,0,NULL,NULL 78808,1344730,1424454,Popular Question Notable Question Notable Question Yearling Notable Question Nice Question Notable Question Popular Question Nice Question Nice Question Nice Answer Yearling Popular Question Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 78809,203972,739853,Yearling Caucus Constituent Nice Answer,NULL,NULL,0,NULL,NULL 78810,297684,894012,NULL,NULL,NULL,0,NULL,NULL 78811,412719,190390,NULL,NULL,NULL,0,NULL,NULL 78812,164341,817458,NULL,NULL,NULL,0,NULL,NULL 78813,619222,1344725,NULL,NULL,NULL,0,NULL,NULL 78814,222584,192961,Popular Question Yearling Nice Question Popular Question Notable Question Popular Question Custodian Informed Autobiographer Nice Question Yearling Announcer Good Answer Necromancer Promoter Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 78815,899824,693862,Yearling,NULL,NULL,0,NULL,NULL 78816,53525,295708,NULL,NULL,NULL,0,NULL,NULL 78817,10106458,295708,NULL,NULL,NULL,0,NULL,NULL 78818,2073783,1384926,Teacher Self-Learner Supporter,NULL,NULL,0,NULL,NULL 78819,3644941,236017,NULL,NULL,NULL,0,NULL,NULL 78820,1015375,555535,NULL,NULL,NULL,0,NULL,NULL 78821,1145472,1413887,NULL,NULL,NULL,0,NULL,NULL 78822,35438,633864,Quorum Good Answer Yearling Nice Answer Necromancer Necromancer Custodian Necromancer Caucus Custodian Custodian Custodian Custodian php Nice Answer Yearling symfony Necromancer Necromancer Tenacious Necromancer Strunk & White Nice Answer Caucus Necromancer Constituent Nice Answer Necromancer Necromancer Documentation User Nice Answer Custodian Custodian Proofreader Necromancer Peer Pressure Necromancer Popular Question Nice Answer Nice Answer Yearling Nice Answer Caucus Constituent Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 78823,82495,188912,Yearling Notable Question Nice Question Nice Question Famous Question Yearling Famous Question Popular Question Nice Question Famous Question Famous Question Good Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 78824,52959,758490,Favorite Question Yearling Popular Question Nice Question Notable Question Caucus Investor Altruist Popular Question Famous Question,NULL,NULL,0,NULL,NULL 78825,119753,223910,NULL,NULL,NULL,0,NULL,NULL 78826,282651,505942,NULL,NULL,NULL,0,NULL,NULL 78827,1105624,747621,NULL,NULL,NULL,0,NULL,NULL 78828,51367,415986,Critic,NULL,NULL,0,NULL,NULL 78829,1505879,1541382,NULL,NULL,NULL,0,NULL,NULL 78830,1523114,982901,Yearling Informed Popular Question Citizen Patrol Caucus Explainer Organizer Constituent Custodian Custodian Custodian Enthusiast Civic Duty Fanatic Famous Question Popular Question,NULL,NULL,0,NULL,NULL 78831,206771,521911,NULL,NULL,NULL,0,NULL,NULL 78832,1074415,745812,Notable Question,NULL,NULL,0,NULL,NULL 78833,281155,349309,NULL,NULL,NULL,0,NULL,NULL 78834,907871,196324,NULL,NULL,NULL,0,NULL,NULL 78835,22650,1337081,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 78836,333449,312065,NULL,NULL,NULL,0,NULL,NULL 78837,94370,1041052,Supporter,NULL,NULL,0,NULL,NULL 78838,25152,954914,NULL,NULL,NULL,0,NULL,NULL 78839,6655468,606373,NULL,NULL,NULL,0,NULL,NULL 78840,558179,1243501,NULL,NULL,NULL,0,NULL,NULL 78841,41182,211906,Yearling,NULL,NULL,0,NULL,NULL 78842,297802,1237384,NULL,NULL,NULL,0,NULL,NULL 78843,80532,1360912,NULL,NULL,NULL,0,NULL,NULL 78844,292254,182233,Supporter Tumbleweed Commentator,NULL,NULL,0,NULL,NULL 78845,240748,850473,Necromancer,NULL,NULL,0,NULL,NULL 78846,129743,1214286,Informed,NULL,NULL,0,NULL,NULL 78847,152112,647793,NULL,NULL,NULL,0,NULL,NULL 78848,285066,1368428,Necromancer Favorite Question Yearling Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Yearling Notable Question Great Question,NULL,How to add new audio not mixing into video using ffmpeg audio video ffmpeg pI used command like ppre codeffmpeg video avi audio mp3 vcodec codec acodec codec output video avi newaudio code prepin latest version for adding new audio track to video not mix ppBut updated the ffmpeg to the newest version strongffmpeg version git 2012 06 16 809d71d strong and now in this version the parameter code newaudio code doesn work ppTell me please how can add new audio to my video not mix using codeffmpeg code Yes you are right And answer is already given Just read this thread This question is years old,0,NULL,NULL 78849,6680820,1368428,Necromancer Favorite Question Yearling Popular Question Popular Question Popular Question Popular Question Yearling Famous Question Yearling Notable Question Great Question,NULL,How to add new audio not mixing into video using ffmpeg audio video ffmpeg pI used command like ppre codeffmpeg video avi audio mp3 vcodec codec acodec codec output video avi newaudio code prepin latest version for adding new audio track to video not mix ppBut updated the ffmpeg to the newest version strongffmpeg version git 2012 06 16 809d71d strong and now in this version the parameter code newaudio code doesn work ppTell me please how can add new audio to my video not mix using codeffmpeg code Yes you are right And answer is already given Just read this thread This question is years old,0,NULL,NULL 78850,898847,1255846,NULL,NULL,NULL,0,NULL,NULL 78851,720622,1019773,Yearling Guru,NULL,NULL,0,NULL,NULL 78852,595317,174908,Yearling Notable Question Popular Question Famous Question Notable Question Popular Question Yearling Popular Question Favorite Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 78853,104799,231364,Notable Question,NULL,NULL,0,NULL,NULL 78854,187227,104779,Yearling Quorum Yearling Popular Question Popular Question Caucus Revival Yearling Notable Question Caucus Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 78855,403068,408727,Nice Answer Enlightened Yearling Nice Question Nice Answer Yearling Popular Question Census Yearling,NULL,NULL,0,NULL,NULL 78856,495458,191777,NULL,NULL,NULL,0,NULL,NULL 78857,127518,109414,Notable Question Popular Question Yearling Popular Question Nice Question Custodian Popular Question Popular Question Inquisitive Yearling Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 78858,882684,200445,Civic Duty http Popular Question Yearling Nice Answer Enlightened Great Answer Announcer Popular Question Nice Answer Enlightened Custodian Yearling Good Answer Census Nice Answer Nice Answer Enlightened Guru Revival Yearling,NULL,NULL,0,NULL,NULL 78859,912240,24279,Notable Question Nice Answer Nice Question Famous Question Yearling Great Question Notable Question Notable Question Nice Answer Yearling Documentation User Nice Answer Yearling,NULL,NULL,0,NULL,NULL 78860,319040,743337,Yearling Caucus Yearling Enthusiast Custodian Custodian Yearling Tenacious Popular Question Yearling Critic Informed Autobiographer Yearling Tag Editor,NULL,NULL,0,NULL,NULL 78861,3168368,743337,Yearling Caucus Yearling Enthusiast Custodian Custodian Yearling Tenacious Popular Question Yearling Critic Informed Autobiographer Yearling Tag Editor,NULL,NULL,0,NULL,NULL 78862,349869,92812,Popular Question Good Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78863,631401,149227,NULL,NULL,NULL,0,NULL,NULL 78864,153020,225444,NULL,NULL,NULL,0,NULL,NULL 78865,372274,1464790,Informed Autobiographer,NULL,NULL,0,NULL,NULL 78866,470276,498806,NULL,NULL,NULL,0,NULL,NULL 78867,68006,116632,Yearling Scholar Popular Question,NULL,NULL,0,NULL,NULL 78868,511,341267,Announcer Caucus,NULL,NULL,0,NULL,NULL 78869,651802,116818,Commentator Curious Informed Autobiographer Revival Necromancer Yearling Census Popular Question Announcer Census Notable Question,NULL,NULL,0,NULL,NULL 78870,8729344,781029,NULL,NULL,NULL,0,NULL,NULL 78871,54402,517832,Good Answer Good Answer Yearling Great Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Yearling Guru Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 78872,84026,938205,Necromancer,NULL,NULL,0,NULL,NULL 78873,551687,66098,Nice Question Yearling Nice Question Notable Question Notable Question Yearling Good Question Notable Question Notable Question Notable Question Notable Question Popular Question Popular Question Great Question Popular Question Great Question Notable Question Notable Question Yearling Notable Question Nice Question Famous Question Great Answer,NULL,NULL,0,NULL,NULL 78874,861138,1123529,Editor Teacher Commentator Self-Learner Yearling Nice Answer Nice Question Yearling Popular Question Citizen Patrol Custodian Popular Question Notable Question Critic Yearling Notable Question Documentation User Nice Answer Custodian,NULL,NULL,0,NULL,NULL 78875,275168,1330808,NULL,NULL,NULL,0,NULL,NULL 78876,238140,1022925,Yearling,NULL,NULL,0,NULL,NULL 78877,1505630,609460,NULL,NULL,NULL,0,NULL,NULL 78878,175632,805613,Citizen Patrol Famous Question Yearling,NULL,NULL,0,NULL,NULL 78879,117954,343006,Popular Question Nice Question Famous Question Popular Question Critic Yearling,NULL,NULL,0,NULL,NULL 78880,1980215,696130,Announcer Famous Question Yearling Notable Question Nice Question Famous Question Necromancer Announcer Yearling Nice Question Notable Question Good Answer android Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78881,1206724,696130,Announcer Famous Question Yearling Notable Question Nice Question Famous Question Necromancer Announcer Yearling Nice Question Notable Question Good Answer android Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78882,251018,696130,Announcer Famous Question Yearling Notable Question Nice Question Famous Question Necromancer Announcer Yearling Nice Question Notable Question Good Answer android Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 78883,72967,208766,NULL,NULL,NULL,0,NULL,NULL 78884,422120,449991,NULL,NULL,NULL,0,NULL,NULL 78885,37714,913279,Civic Duty Necromancer Popular Question Necromancer Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 78886,125756,326153,Commentator Yearling,NULL,NULL,0,NULL,NULL 78887,69071,266720,Good Answer Yearling Notable Question Popular Question Famous Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Taxonomist Popular Question Nice Answer Good Answer Famous Question Popular Question Popular Question Famous Question Nice Question Good Question Notable Question Nice Question Famous Question Yearling Great Answer Good Question Populist Notable Question Popular Question Necromancer Custodian Revival Necromancer Notable Question Notable Question Popular Question Guru Caucus Famous Question Documentation User Notable Question Revival Popular Question Popular Question Nice Question Famous Question Census Yearling Nice Question Revival Popular Question Popular Question Popular Question Notable Question Nice Answer Notable Question Nice Question Popular Question Nice Question Popular Question Popular Question,NULL,pI found this question by Googling for the same thing don like the idea of calling sscanf or strtol since it feels like overkill wrote quick function which does not validate that the text is indeed the hexadecimal presentation of byte stream but will handle odd number of hex digits ppre codeuint8 tallymarker hextobin const char str uint8 bytes size blen uint8 pos uint8 idx0 uint8 idx1 mapping of ASCII characters to hex values const uint8 hashmap 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 amp 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 01234567 0x08 0x09 0x00 0x00 0x00 0x00 0x00 0x00 89 lt gt 0x00 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 HIJKLMNO 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 PQRSTUVW 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 XYZ 0x00 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x00 abcdefg 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 hijklmno 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 pqrstuvw 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 xyz 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 bzero bytes blen for pos pos lt blen amp amp pos lt strlen str pos idx0 uint8 str pos idx1 uint8 str pos bytes pos uint8 hashmap idx0 lt lt hashmap idx1 return code pre Posted as gist https gist github com vi dd3b5569af8a26b97c8e20ae06e804cb Not checked although,0,NULL,NULL 78888,148946,226367,Custodian Yearling Civic Duty Good Answer Yearling Census Good Answer,NULL,NULL,0,NULL,NULL 78889,17783,603591,NULL,NULL,NULL,0,NULL,NULL 78890,376743,980399,Necromancer Informed Editor Excavator,NULL,NULL,0,NULL,NULL 78891,45982,536113,Nice Answer Caucus Constituent Necromancer Nice Answer Yearling Documentation User Yearling Good Answer,NULL,NULL,0,NULL,NULL 78892,736580,1202385,Notable Question Necromancer Popular Question Nice Answer Yearling Caucus Famous Question Yearling Good Answer Nice Question Yearling Good Answer Civic Duty,NULL,NULL,0,NULL,NULL 78893,339850,1482224,NULL,NULL,NULL,0,NULL,NULL 78894,155023,1016507,NULL,NULL,NULL,0,NULL,NULL 78895,481558,1120424,NULL,NULL,NULL,0,NULL,NULL 78896,203161,518936,Popular Question Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Civic Duty Tumbleweed,NULL,NULL,0,NULL,NULL 78897,21087,344728,Revival Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 78898,254965,384459,Editor,NULL,NULL,0,NULL,NULL 78899,141446,629454,NULL,NULL,NULL,0,NULL,NULL 78900,105420,321086,NULL,NULL,NULL,0,NULL,NULL 78901,18451,593620,Popular Question,NULL,NULL,0,NULL,NULL 78902,185331,1287888,NULL,NULL,NULL,0,NULL,NULL 78903,537599,377459,NULL,NULL,NULL,0,NULL,NULL 78904,576750,513717,NULL,NULL,NULL,0,NULL,NULL 78905,120544,245463,NULL,NULL,,0,, 78906,585291,707981,Necromancer,NULL,NULL,0,NULL,NULL 78907,62400,1311201,Revival,NULL,NULL,0,NULL,NULL 78908,3444112,786374,Yearling Yearling,NULL,NULL,0,NULL,NULL 78909,317618,286994,Announcer Announcer Teacher Commentator Yearling Critic Peer Pressure Popular Question,NULL,NULL,0,NULL,NULL 78910,2975351,1289923,Popular Question Notable Question Notable Question Yearling Citizen Patrol Good Question,NULL,NULL,0,NULL,NULL 78911,93290,369278,Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 78912,496950,1206743,Notable Question Notable Question Yearling Nice Question Announcer Necromancer,NULL,NULL,0,NULL,NULL 78913,211579,1168930,NULL,NULL,NULL,0,NULL,NULL 78914,729615,88400,Notable Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Yearling Enthusiast Inquisitive Popular Question Popular Question Yearling Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question Notable Question Notable Question Popular Question Popular Question Notable Question Famous Question Notable Question Yearling Popular Question Famous Question Necromancer Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Notable Question Good Question Popular Question Notable Question Popular Question Popular Question Notable Question Nice Answer Notable Question Famous Question Popular Question Nice Question Popular Question Custodian Notable Question Notable Question Yearling Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 78915,4432676,265972,Informed,NULL,NULL,0,NULL,NULL 78916,885433,1289690,NULL,NULL,NULL,0,NULL,NULL 78917,249221,1031399,Yearling,NULL,NULL,0,NULL,NULL 78918,1457353,815211,NULL,NULL,NULL,0,NULL,NULL 78919,201814,833221,NULL,NULL,NULL,0,NULL,NULL 78920,517761,653713,NULL,NULL,NULL,0,NULL,NULL 78921,245778,504611,Guru Nice Answer Necromancer Announcer Announcer Announcer Necromancer Announcer Nice Answer Enlightened Revival Great Answer Populist Announcer Popular Question Announcer Nice Answer Announcer Necromancer Booster Yearling Necromancer Necromancer Booster Announcer Publicist Necromancer Necromancer Nice Answer Announcer Announcer Announcer Good Answer Nice Answer Documentation User Announcer Yearling Good Answer Notable Question Announcer Good Question Nice Answer Necromancer Great Answer Announcer Yearling,NULL,pThe answer as given is to use format patch but since the question was how to cherry pick from another folder here is piece of code to do just that ppre class lang bash prettyprint override code git git dir lt some other repo gt git format patch stdout lt commit SHA gt git am code preblockquote explanation from ma pThe codegit format patch code command creates patch from codesome other repo code commit specified by its SHA code code for one single commit alone This patch is piped to codegit am code which applies the patch locally code code means trying the three way merge if the patch fails to apply cleanly Hope that explains blockquote Can stash be specified in place of the commit SHA In most git commands they are interchangeable just want to confirm if that is true here as well Especially since stashes are slightly different in that they have parents like merge commits,0,NULL,NULL 78922,1531396,492839,NULL,NULL,NULL,0,NULL,NULL 78923,34602,764773,NULL,NULL,NULL,0,NULL,NULL 78924,224499,591336,Yearling Notable Question Nice Question,NULL,pThis is great use for custom generator pp strongPython strong ppre codedef char range c1 c2 Generates the characters from c1 to c2 inclusive for in xrange ord c1 ord c2 yield chr code prepthen ppre codefor in char range print code prehrp strongPython strong ppre codedef char range c1 c2 Generates the characters from c1 to c2 inclusive for in range ord c1 ord c2 yield chr code prepthen ppre codefor in char range print code pre Beautiful For anyone who going to copy this keep in mind that range iterates values and and not three but char range will iterate and,0,NULL,NULL 78925,331925,1007867,NULL,NULL,NULL,0,NULL,NULL 78926,14608,1069001,NULL,NULL,NULL,0,NULL,NULL 78927,1518874,668152,Nice Question Critic Caucus,NULL,NULL,0,NULL,NULL 78928,264326,728199,Editor Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 78929,2239720,66703,Popular Question Nice Answer Revival Yearling Nice Question Good Answer Yearling Benefactor Famous Question,NULL,NULL,0,NULL,NULL 78930,2819404,662680,NULL,NULL,NULL,0,NULL,NULL 78931,48709,662680,NULL,NULL,NULL,0,NULL,NULL 78932,457816,865528,Nice Answer Enlightened Necromancer Revival Nice Answer Yearling Nice Answer Yearling Supporter,NULL,NULL,0,NULL,NULL 78933,295493,570313,Popular Question Tumbleweed Revival Critic Commentator Yearling Autobiographer Caucus Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 78934,1345510,1268869,Supporter Commentator Teacher Popular Question,NULL,NULL,0,NULL,NULL 78935,257041,96588,Nice Answer Enlightened Notable Question Popular Question Nice Question Notable Question Necromancer Yearling Notable Question Nice Question bash Popular Question Peer Pressure Popular Question Good Answer Notable Question Notable Question Nice Answer Notable Question Popular Question Popular Question Nice Answer Good Answer Nice Answer Enlightened Revival Socratic Popular Question shell Good Answer Famous Question Nice Answer Enlightened Famous Question Yearling Notable Question Popular Question Famous Question Cleanup Nice Question Famous Question Nice Answer Nice Answer Famous Question Good Answer Famous Question Famous Question Documentation User Popular Question Good Question Nice Answer Enlightened Popular Question Nice Answer Famous Question Popular Question Popular Question Tag Editor Notable Question Popular Question Popular Question Yearling Nice Answer Popular Question Good Answer Notable Question Necromancer Good Question Nice Question Announcer Notable Question Enthusiast,NULL,pYou should use strong code usr bin env bash code strong for href https en wikipedia org wiki Shebang 28Unix 29 Portability rel noreferrer portability different nixes put codebash code in different places and using code usr bin env code is workaround to run the first codebash code found on the codePATH code And strong href https mywiki wooledge org BashGuide CommandsAndArguments Scripts rel noreferrer codesh code is not codebash code strong Portability isn absolute it is mathematically impossible to make any script that will do the same thing on every platform As of 2012 through 2018 usr bin env exists on more machines than either of bin bash xor usr bin bash so script that starts with this line will do the expected thing on as many machines as possible,0,NULL,NULL 78936,15854,163347,Popular Question Notable Question Yearling Caucus Nice Question Notable Question Popular Question Notable Question Caucus Yearling Notable Question Census Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 78937,149815,935135,NULL,NULL,NULL,0,NULL,NULL 78938,3631182,1376828,Curious Civic Duty,NULL,NULL,0,NULL,NULL 78939,31714,1376828,Curious Civic Duty,NULL,NULL,0,NULL,NULL 78940,802348,1557367,NULL,NULL,NULL,0,NULL,NULL 78941,156399,487984,Critic Yearling Editor,NULL,NULL,0,NULL,NULL 78942,1505864,667630,NULL,NULL,NULL,0,NULL,NULL 78943,44727,942565,Editor,NULL,NULL,0,NULL,NULL 78944,287612,283960,Nice Question Yearling Nice Answer Enlightened Nice Answer Enlightened Famous Question Notable Question Notable Question Yearling Caucus Nice Answer Yearling Custodian Good Answer Famous Question,NULL,NULL,0,NULL,NULL 78945,9536627,283960,Nice Question Yearling Nice Answer Enlightened Nice Answer Enlightened Famous Question Notable Question Notable Question Yearling Caucus Nice Answer Yearling Custodian Good Answer Famous Question,NULL,NULL,0,NULL,NULL 78946,267587,171187,Nice Answer Yearling Popular Question Famous Question Notable Question Popular Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 78947,15142,1236946,NULL,NULL,NULL,0,NULL,NULL 78948,267369,806203,NULL,NULL,NULL,0,NULL,NULL 78949,1529464,979227,NULL,NULL,NULL,0,NULL,NULL 78950,157508,229181,Nice Question Yearling Organizer Tag Editor Famous Question Custodian Good Question Yearling Caucus Constituent Nice Question Revival,NULL,NULL,0,NULL,NULL 78951,35384,970168,Teacher,NULL,NULL,0,NULL,NULL 78952,832021,1266504,NULL,NULL,NULL,0,NULL,NULL 78953,527864,980609,NULL,NULL,NULL,0,NULL,NULL 78954,119804,455638,Supporter Popular Question,NULL,NULL,0,NULL,NULL 78955,62902,796571,NULL,NULL,NULL,0,NULL,NULL 78956,181780,500051,NULL,NULL,NULL,0,NULL,NULL 78957,841060,447967,Yearling Nice Question Nice Question Popular Question Popular Question Famous Question Custodian Citizen Patrol Good Question Yearling Notable Question Census Yearling Famous Question,NULL,NULL,0,NULL,NULL 78958,42836,1275505,Yearling Good Answer Yearling Informed Caucus Yearling Populist Custodian Citizen Patrol Yearling Caucus Constituent Yearling Documentation User Custodian Critic Census Great Answer Caucus Yearling Editor,NULL,NULL,0,NULL,NULL 78959,29791,1050253,NULL,NULL,NULL,0,NULL,NULL 78960,282849,794103,Supporter,NULL,NULL,0,NULL,NULL 78961,263944,132652,Revival Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 78962,18208,407615,Famous Question Self-Learner Nice Question Popular Question Famous Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Caucus Popular Question Popular Question Notable Question Excavator Famous Question Yearling Nice Question Nice Question Notable Question Notable Question Popular Question Yearling Custodian,NULL,NULL,0,NULL,NULL 78963,1559474,1218443,Yearling Revival Populist Good Answer,NULL,NULL,0,NULL,NULL 78964,1161385,1203951,NULL,NULL,NULL,0,NULL,NULL 78965,5799,90958,Revival Informed Not a Robot Editor Critic Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78966,566007,248296,Yearling Necromancer Notable Question Nice Answer Popular Question Popular Question Nice Answer Revival Nice Answer Nice Question Nice Answer Nice Question Good Answer Notable Question Great Answer Nice Answer Necromancer Notable Question Nice Question Nice Answer Popular Question python-3.x Nice Answer Notable Question Nice Answer Good Answer Notable Question Nice Question Popular Question Nice Answer scrapy Good Answer Nice Answer Enlightened Nice Question Popular Question Nice Answer Caucus Constituent Nice Answer Enlightened Notable Question Popular Question python-2.7 Necromancer Good Question Yearling Necromancer Popular Question Notable Question Notable Question Good Answer Guru Nice Answer Good Answer Popular Question Nice Answer Good Answer Nice Answer Good Question Famous Question Popular Question Famous Question Notable Question Famous Question Guru Famous Question Caucus Constituent Good Answer Nice Answer Announcer Nice Answer Necromancer Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question web-crawler Popular Question Necromancer Announcer Popular Question Famous Question Famous Question Good Question Good Answer Notable Question Popular Question Yearling Census Guru Nice Question Nice Answer Announcer Caucus Good Answer Guru Constituent Notable Question Popular Question Famous Question Good Question Announcer Popular Question Announcer Good Answer Necromancer Nice Question Notable Question Nice Answer Enlightened Great Answer Famous Question Good Question Famous Question Notable Question Necromancer Socratic Popular Question Notable Question Great Answer Notable Question Good Question Necromancer Good Question Popular Question,NULL,NULL,1,NULL,Finding median of list in Python python list sorting median pHow do you find the median of list in Python The list can be of any size and the numbers are not guaranteed to be in any particular order ppIf the list contains an even number of elements the function should return the average of the middle two ppHere are some examples sorted for display purposes ppre codemedian 1median 1median 5median 6median code pre pre codedef median array Calculate median of the given list TODO use statistics median in Python array sorted array half odd divmod len array if odd return array half return array half array half code pre 78967,201435,402429,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 78968,1541610,1069483,NULL,NULL,NULL,0,NULL,NULL 78969,436138,243089,Yearling Custodian Yearling Pundit Revival Good Answer Yearling Caucus Curious,NULL,Vim What the difference between let and set vim pWhat the difference between codelet code and codeset code in the vim editor ppI ve always wondered why both of them exist ppAlso be interested to hear its historical background éNyffenegger That still doesn justify the existence of set all you said is that let can do things set cannot but can set do things let can Unless there are disjunctive features one of the commands is unnecessary Vim What the difference between let and set vim pWhat the difference between codelet code and codeset code in the vim editor ppI ve always wondered why both of them exist ppAlso be interested to hear its historical background éNyffenegger Good point,0,NULL,NULL 78970,62688,471164,Nice Question Notable Question Famous Question Announcer Nice Answer Necromancer Necromancer string Good Question Popular Question Good Question Announcer Necromancer Nice Answer Nice Answer Necromancer Nice Question Good Answer Necromancer Announcer Popular Question Nice Answer Nice Answer Notable Question Yearling Famous Question Nice Question Nice Question Guru Nice Answer Popular Question Notable Question Nice Answer Good Question Nice Answer Nice Answer Nice Answer Announcer Notable Question Nice Answer Enlightened Popular Question Good Question Popular Question Good Question Nice Answer Guru Yearling Announcer Good Question Revival Nice Question Announcer Good Question Census Announcer Nice Answer Nice Answer Announcer Notable Question Nice Answer Great Answer Announcer Nice Question Good Answer Booster Announcer Good Question Announcer Popular Question Necromancer Announcer Popular Question Announcer Popular Question Nice Question Famous Question Announcer Great Answer Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 78971,436348,1524318,NULL,NULL,NULL,0,NULL,NULL 78972,339764,1085978,Excavator Critic Curious Caucus Informed Caucus Yearling,NULL,NULL,0,NULL,NULL 78973,75907,1454545,NULL,NULL,NULL,0,NULL,NULL 78974,142312,861793,Editor Excavator,NULL,NULL,0,NULL,NULL 78975,1047664,1164519,Notable Question,NULL,NULL,0,NULL,NULL 78976,29486,1072389,NULL,NULL,NULL,0,NULL,NULL 78977,1696465,934993,Peer Pressure,NULL,NULL,0,NULL,NULL 78978,75764,446536,Necromancer Good Answer Nice Answer Nice Answer Yearling Necromancer Guru Nice Answer Necromancer Famous Question Yearling Good Answer Custodian Revival Custodian Yearling Good Question,NULL,pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead Any specific question that wasn answered in the blog post pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead After thinking about it some more think it makes sense The default behaviour is for each div to expand to contain all of it children so there won be any overflow to hide at the leaf nodes You need to force overflow hidden all the way from the top of the DOM so no parent has the chance to accommodate it children until you are down to the node you want to overflow and scroll,1,NULL,Scrolling flexbox with overflowing content css css3 layout multiple columns flexbox img src https stack imgur com LzsBQ png alt enter image description here pp href http codepen io JosephSilber pen qGebw rel noreferrer Here the code using to achieve the above layout pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code css lang css prettyprint override code header xD height 50px xD xD xD body xD position absolute xD top 50px xD right xD bottom xD left xD display flex xD xD xD sidebar xD width 140px xD xD xD main xD flex xD display flex xD flex direction column xD xD xD content xD flex xD display flex xD xD xD column xD padding 20px xD border right 1px solid 999 xD code pre xD pre class snippet code html lang html prettyprint override code lt div class header gt Main header lt div gt xD lt div class body gt xD lt div class sidebar gt Sidebar lt div gt xD xD lt div class main gt xD lt div class page header gt Page Header Content columns are below lt div gt xD lt div class content gt xD lt div class column gt Column lt div gt xD lt div class column gt Column lt div gt xD lt div class column gt Column lt div gt xD lt div gt xD lt div gt xD lt div gt code pre xD div xD div xD ppI omitted the code used for styling You can see all of it in href http codepen io JosephSilber pen qGebw rel noreferrer the pen phrpThe above works but when the codecontent code area content overflows it makes the whole page scroll only want the content area itself to scroll so href http codepen io JosephSilber pen buwGD rel noreferrer added codeoverflow auto code to the codecontent code div ppThe problem with this now is that the columns themselves don extend beyond their parents height so the borders are cut off there too pp href http codepen io JosephSilber pen buwGD rel noreferrer Here the pen showing the scrolling issue pp strongHow can set the codecontent code area to scroll independently while still having its children extend beyond the codecontent code box height strong pI just solved this problem very elegantly after lot of trial and error ppCheck out my blog post href http geon github io programming 2016 02 24 flexbox full page web app layout http geon github io programming 2016 02 24 flexbox full page web app layout ppBasically to make flexbox cell scrollable you have to make all its emparents em codeoverflow hidden code or it will just ignore your overflow settings and make the parent larger instead 78979,486607,799247,Popular Question Popular Question Commentator,NULL,NULL,0,NULL,NULL 78980,169440,1491799,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 78981,1697644,841995,NULL,NULL,NULL,0,NULL,NULL 78982,858945,1214729,Civic Duty Enthusiast Necromancer Yearling Nice Answer Yearling Good Answer Good Answer Announcer Self-Learner Yearling Caucus Necromancer Necromancer Yearling Nice Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 78983,278579,1247454,NULL,NULL,NULL,0,NULL,NULL 78984,150684,142627,Nice Answer,NULL,NULL,0,NULL,NULL 78985,5520502,360186,Notable Question Tumbleweed Yearling Popular Question Famous Question Census Nice Question Notable Question Nice Question Documentation User Nice Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 78986,168690,360186,Notable Question Tumbleweed Yearling Popular Question Famous Question Census Nice Question Notable Question Nice Question Documentation User Nice Question Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 78987,164882,158540,Autobiographer,NULL,NULL,0,NULL,NULL 78988,156619,340886,NULL,NULL,NULL,0,NULL,NULL 78989,76387,21668,Notable Question Notable Question Nice Question Famous Question Yearling Popular Question Famous Question Famous Question Nice Question Popular Question Notable Question Popular Question Famous Question Nice Question Popular Question Yearling Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 78990,1248175,790548,NULL,NULL,NULL,0,NULL,NULL 78991,4480,353540,NULL,NULL,NULL,0,NULL,NULL 78992,423602,1262904,Student Supporter Commentator Teacher Critic Popular Question Necromancer Autobiographer Yearling,NULL,NULL,0,NULL,NULL 78993,26251,239314,NULL,NULL,NULL,0,NULL,NULL 78994,367446,591770,NULL,NULL,NULL,0,NULL,NULL 78995,1089712,361737,NULL,NULL,NULL,0,NULL,NULL 78996,1295723,596034,NULL,NULL,NULL,0,NULL,NULL 78997,841281,1419650,NULL,NULL,NULL,0,NULL,NULL 78998,301488,887920,Custodian Yearling Self-Learner Nice Answer Yearling Nice Question Popular Question Good Answer Popular Question Popular Question Yearling Notable Question Good Question Revival,NULL,NULL,0,NULL,NULL 78999,540825,1494532,NULL,NULL,NULL,0,NULL,NULL 79000,215480,1494532,NULL,NULL,NULL,0,NULL,NULL 79001,349132,96326,Yearling,NULL,NULL,1,How to list all commands in Sublime Text sublimetext3 pI like to get list of all available commands in sublime text built in and from packages ppWhat trying to do ph2Create shortcuts h2pI trying to create shortcut for package command but don know the name of the command can find the command and use it using codealt shift code but then when trying to add the shortcut to my code sublime keymap code file not sure that to put on the code command code bit be great if could just list all commands and grep for what looking for then just copy paste the formal command name into the keymap file ph2Explore h2pI like to explore all the commands that are available built in and from packages to understand Sublime Text capabilities Rather than searching for commands within sublime or reading tutorials online like to ask my editor pblockquote pWhat can you do blockquoteprather than pblockquote pCan you do this blockquote,NULL 79002,246804,1186038,Tumbleweed Caucus Announcer Yearling Nice Answer Famous Question Popular Question Documentation User Popular Question Notable Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 79003,479244,217197,Popular Question Great Answer Famous Question Nice Answer Notable Question Yearling Popular Question Popular Question Notable Question Yearling Custodian Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 79004,419099,601920,NULL,NULL,NULL,0,NULL,NULL 79005,162423,359721,NULL,NULL,NULL,0,NULL,NULL 79006,486369,871890,NULL,NULL,NULL,0,NULL,NULL 79007,2578869,871890,NULL,NULL,NULL,0,NULL,NULL 79008,3434248,871890,NULL,NULL,NULL,0,NULL,NULL 79009,208308,697892,NULL,NULL,NULL,0,NULL,NULL 79010,283620,1329432,NULL,NULL,NULL,0,NULL,NULL 79011,232186,170223,NULL,NULL,NULL,0,NULL,NULL 79012,202981,170223,NULL,NULL,NULL,0,NULL,NULL 79013,1330035,442911,NULL,NULL,NULL,0,NULL,NULL 79014,439007,458568,NULL,NULL,NULL,0,NULL,NULL 79015,263112,302090,Custodian Critic Popular Question,NULL,NULL,0,NULL,NULL 79016,135152,234610,NULL,NULL,NULL,0,NULL,NULL 79017,688724,166000,Notable Question Notable Question Popular Question Yearling Promoter Famous Question,NULL,NULL,0,NULL,NULL 79018,6952,342013,Yearling Yearling Revival Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79019,418724,1318909,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 79020,524149,1352918,NULL,NULL,NULL,0,NULL,NULL 79021,1519268,530949,NULL,NULL,NULL,0,NULL,NULL 79022,1302456,814362,NULL,NULL,NULL,0,NULL,NULL 79023,256809,1324133,NULL,NULL,NULL,0,NULL,NULL 79024,777356,1276782,Supporter Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 79025,507102,313907,NULL,NULL,NULL,0,NULL,NULL 79026,112202,1151121,NULL,NULL,NULL,0,NULL,NULL 79027,232267,496902,NULL,NULL,NULL,0,NULL,NULL 79028,53221,689568,Popular Question,NULL,NULL,0,NULL,NULL 79029,169990,834459,Popular Question Custodian Custodian Custodian Organizer Tumbleweed Popular Question Notable Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 79030,346294,813665,Popular Question Notable Question Nice Answer Yearling Notable Question Good Question Famous Question Nice Question Announcer Notable Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question Nice Question Notable Question Popular Question Yearling Nice Question Nice Question Good Question Nice Answer Favorite Question Notable Question Popular Question Nice Answer Famous Question Good Answer Great Question Favorite Question Notable Question Yearling Good Question,NULL,Cartesian product of multiple arrays in JavaScript javascript algorithm functional programming pHow would you implement the Cartesian product of multiple arrays in JavaScript ppAs an example ppre codecartesian 10 20 100 200 300 should be 10 100 10 200 10 300 10 100 10 200 code pre fixed thanks Cartesian product of multiple arrays in JavaScript javascript algorithm functional programming pHow would you implement the Cartesian product of multiple arrays in JavaScript ppAs an example ppre codecartesian 10 20 100 200 300 should be 10 100 10 200 10 300 10 100 10 200 code pre agree about underscore js but not sure see how removing functional programming tag will help pHere is functional solution to the problem without any strongmutable variable strong using codereduce code and codeflatten code provided by codeunderscore js code ppre codefunction cartesianProductOf return reduce arguments function return flatten map function return map function return concat true cartesianProductOf code prepRemark This solution was inspired by href http cwestblog com 2011 05 02 cartesian product of multiple arrays rel noreferrer http cwestblog com 2011 05 02 cartesian product of multiple arrays mutability is not holy and your remark is very relevant The point of my answer was to demonstrate an elegant idiomatic functional solution to this complex problem The double forEach solution is probably more efficient pHere is functional solution to the problem without any strongmutable variable strong using codereduce code and codeflatten code provided by codeunderscore js code ppre codefunction cartesianProductOf return reduce arguments function return flatten map function return map function return concat true cartesianProductOf code prepRemark This solution was inspired by href http cwestblog com 2011 05 02 cartesian product of multiple arrays rel noreferrer http cwestblog com 2011 05 02 cartesian product of multiple arrays please provide working code snippet,0,NULL,NULL 79031,19536,1106063,NULL,NULL,NULL,0,NULL,NULL 79032,821381,1660,Notable Question,NULL,NULL,0,NULL,NULL 79033,1512097,1321606,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 79034,622910,513404,Popular Question Yearling Famous Question Nice Question Notable Question Notable Question Famous Question Popular Question Famous Question Famous Question Notable Question Yearling Nice Question Nice Question Nice Question Popular Question Famous Question Notable Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79035,368751,644780,NULL,NULL,NULL,0,NULL,NULL 79036,289092,1221938,NULL,NULL,NULL,0,NULL,NULL 79037,273003,1527562,Yearling Yearling Announcer Census Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79038,701941,116673,Popular Question,NULL,NULL,0,NULL,NULL 79039,39268,1226873,Teacher,NULL,NULL,0,NULL,NULL 79040,127894,827024,Curious Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79041,2557182,601271,NULL,NULL,NULL,0,NULL,NULL 79042,175292,601271,NULL,NULL,NULL,0,NULL,NULL 79043,381170,883832,Excavator Popular Question Custodian Benefactor Famous Question Yearling Notable Question Great Question Self-Learner Popular Question Great Answer Popular Question Caucus Yearling Popular Question Yearling Popular Question,NULL,pIf your document is unicode you only need to escape the same ones as for XML in your text sup href http www w3 org TR html4 intro sgmltut html rel noreferrer spec href http www w3 org International questions qa escapes use rel noreferrer doc sup ppre class lang none prettyprint override code amp becomes amp amp lt becomes amp lt gt becomes amp gt code prepIn attribute values you must also escape the quote character sup href http www w3 org TR html4 charset html rel noreferrer spec sup ppre code becomes amp quot becomes amp 39 code prepIf your document is ASCII or another non Unicode encoding and you re using characters that aren supported you ll need to escape them Otherwise you re finesup1 sup ppYou usually do not want to escape spaces as code amp nbsp code code amp nbsp code is not normal space it non breaking space sup href http en wikipedia org wiki Non breaking space rel noreferrer wiki sup You can use these instead of normal spaces to prevent line break from being inserted between two words or to insert nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp extra nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp space nbsp nbsp nbsp nbsp nbsp nbsp nbsp without it being automatically collapsed but you won need to do this very often phrp sup1 sup You re fine as long as you re inserting the escaped text somewhere that it makes sense to insert ordinary text not inside code lt style gt code or code lt script gt code tag and not inside an attribute value Otherwise you must take other precautions as mentioned in href https stackoverflow com 7382443 1114 daxelrod answer and href https www owasp org index php XSS 28Cross Site Scripting 29 Prevention Cheat Sheet XSS Prevention Rules rel noreferrer described here by the Open Web Application Security Project see no reason to escape when we escape,0,NULL,NULL 79044,5645,538764,NULL,NULL,NULL,0,NULL,NULL 79045,18910,214930,NULL,NULL,NULL,0,NULL,NULL 79046,1828462,536177,NULL,NULL,NULL,0,NULL,NULL 79047,389956,1481262,Custodian Popular Question Yearling Caucus Yearling Documentation User Popular Question Custodian Famous Question Yearling,NULL,NULL,0,NULL,NULL 79048,2716,370815,NULL,NULL,NULL,0,NULL,NULL 79049,98597,333806,NULL,NULL,NULL,0,NULL,NULL 79050,119488,209,Popular Question Good Question Famous Question Famous Question Yearling Notable Question Nice Question Famous Question Notable Question Nice Question Necromancer Good Question Electorate Popular Question Announcer Yearling Documentation User Famous Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 79051,73447,458890,Critic,NULL,NULL,0,NULL,NULL 79052,1388062,498790,NULL,NULL,NULL,0,NULL,NULL 79053,648503,863075,NULL,NULL,NULL,0,NULL,NULL 79054,23468,27474,Pundit Nice Answer Enlightened Yearling Popular Question Electorate Suffrage Notable Question Notable Question Famous Question Guru Notable Question Notable Question Caucus Good Answer Documentation User Yearling Nice Question Guru Notable Question Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 79055,219288,158965,Nice Question Notable Question Popular Question Nice Question Yearling Critic Popular Question Nice Question,NULL,NULL,0,NULL,NULL 79056,689213,1295013,Teacher Supporter,NULL,NULL,0,NULL,NULL 79057,15299,1327995,Notable Question,NULL,NULL,0,NULL,NULL 79058,1034253,170272,NULL,NULL,NULL,0,NULL,NULL 79059,795069,838244,NULL,NULL,NULL,0,NULL,NULL 79060,1339944,1196896,Yearling,NULL,NULL,0,NULL,NULL 79061,20741,301590,Notable Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 79062,1286242,1390226,NULL,NULL,NULL,0,NULL,NULL 79063,88018,1219124,Student Scholar Census Excavator,NULL,NULL,0,NULL,NULL 79064,425031,1219124,Student Scholar Census Excavator,NULL,NULL,0,NULL,NULL 79065,629422,654104,NULL,NULL,NULL,0,NULL,NULL 79066,132150,1323642,NULL,NULL,NULL,0,NULL,NULL 79067,1212098,368375,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 79068,387245,336748,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79069,212856,1070168,Famous Question Enthusiast Curious,NULL,NULL,0,NULL,NULL 79070,726903,342409,Caucus,NULL,NULL,0,NULL,NULL 79071,4209,973048,Revival,NULL,NULL,0,NULL,NULL 79072,9670515,553709,NULL,NULL,NULL,0,NULL,NULL 79073,201967,532283,NULL,NULL,NULL,0,NULL,NULL 79074,881664,882700,Editor Supporter Teacher Scholar Popular Question Popular Question Notable Question Notable Question Nice Question Commentator,NULL,NULL,0,NULL,NULL 79075,1194419,799227,Nice Answer Yearling Popular Question Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 79076,349429,415865,Notable Question Famous Question Famous Question Notable Question Yearling Notable Question Popular Question Nice Question Great Answer Informed Popular Question Famous Question Nice Answer Good Question Necromancer Popular Question Good Question Nice Question Stellar Question Yearling Notable Question Famous Question Announcer Nice Answer Popular Question Announcer Nice Question Famous Question Good Answer Notable Question Favorite Question Great Question Yearling Famous Question Favorite Question Good Question Notable Question,NULL,pYou did great job of summarizing what awesome about Node js My feeling is that Node js is especially suited for applications where you like to maintain persistent connection from the browser back to the server Using technique known as href http en wikipedia org wiki Push technology Long polling rel noreferrer long polling you can write an application that sends updates to the user in real time Doing long polling on many of the web giants like href http en wikipedia org wiki Ruby on Rails rel noreferrer Ruby on Rails or href http en wikipedia org wiki Django 28web framework 29 rel noreferrer Django would create immense load on the server because each active client eats up one server process This situation amounts to href http en wikipedia org wiki Tarpit networking rel noreferrer tarpit attack When you use something like Node js the server has no need of maintaining separate threads for each open connection ppThis means you can create href https github com rivalslayer node chat rel noreferrer browser based chat application in Node js that takes almost no system resources to serve great many clients Any time you want to do this sort of long polling Node js is great option ppIt worth mentioning that Ruby and Python both have tools to do this sort of thing href http rubyeventmachine com rel noreferrer eventmachine and href https twistedmatrix com trac rel noreferrer twisted respectively but that Node js does it exceptionally well and from the ground up JavaScript is exceptionally well situated to callback based concurrency model and it excels here Also being able to serialize and deserialize with JSON native to both the client and the server is pretty nifty ppI look forward to reading other answers here this is fantastic question ppIt worth pointing out that Node js is also great for situations in which you ll be reusing lot of code across the client server gap The href http meteor com rel noreferrer Meteor framework makes this really easy and lot of folks are suggesting this might be the future of web development can say from experience that it whole lot of fun to write code in Meteor and big part of this is spending less time thinking about how you re going to restructure your data so the code that runs in the browser can easily manipulate it and pass it back ppHere an article on Pyramid and long polling which turns out to be very easy to set up with little help from gevent href http michael merickel org 2011 21 tictactoe and long polling with pyramid rel noreferrer emTicTacToe and Long Polling with Pyramid em My short answer is background process Request and response including rest API all can be achieved with any other language and server So for those who are thinking to convert their web projects in node Think again its the same thing Use the node as background process like reading emails with imap image processing uploading files to cloud or any lengthy or never ending processes which are mostly event oriented,0,NULL,NULL 79077,1537457,1514424,Informed,NULL,NULL,0,NULL,NULL 79078,658878,790371,NULL,NULL,NULL,0,NULL,NULL 79079,3532060,274679,NULL,NULL,NULL,0,NULL,NULL 79080,118405,1483078,NULL,NULL,NULL,0,NULL,NULL 79081,218583,365523,Nice Question Notable Question Famous Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 79082,1016770,769407,Popular Question,NULL,NULL,0,NULL,NULL 79083,559448,1130505,Editor Excavator Necromancer Yearling Critic Yearling Nice Answer Enlightened Nice Answer Investor,NULL,NULL,0,NULL,NULL 79084,420404,572528,Yearling Civic Duty Caucus Constituent,NULL,NULL,0,NULL,NULL 79085,233230,257349,Yearling,NULL,NULL,0,NULL,NULL 79086,335607,487114,Nice Answer,NULL,NULL,0,NULL,NULL 79087,985726,776977,Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 79088,212453,1358446,NULL,NULL,NULL,0,NULL,NULL 79089,28262,487018,Yearling Nice Answer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79090,34272,82116,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79091,577792,1262000,Critic Yearling Investor Notable Question Popular Question Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Announcer Notable Question Famous Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 79092,359499,1262000,Critic Yearling Investor Notable Question Popular Question Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Announcer Notable Question Famous Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 79093,7520749,1262000,Critic Yearling Investor Notable Question Popular Question Necromancer Popular Question Notable Question Popular Question Yearling Popular Question Announcer Notable Question Famous Question Yearling Popular Question Favorite Question,NULL,NULL,0,NULL,NULL 79094,122928,1487614,NULL,NULL,NULL,0,NULL,NULL 79095,859928,523602,NULL,NULL,NULL,0,NULL,NULL 79096,1221364,1072818,NULL,NULL,NULL,0,NULL,NULL 79097,1595399,207712,Popular Question,NULL,NULL,0,NULL,NULL 79098,25268,407691,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79099,604896,407691,Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79100,193201,2245,Nice Answer Enlightened Famous Question Custodian Custodian Notable Question Famous Question Custodian Popular Question Popular Question Popular Question Caucus Popular Question Documentation User Yearling Notable Question,NULL,NULL,0,NULL,NULL 79101,488494,1435737,NULL,NULL,NULL,0,NULL,NULL 79102,3765028,1435737,NULL,NULL,NULL,0,NULL,NULL 79103,202260,1448759,NULL,NULL,NULL,0,NULL,NULL 79104,167762,458893,NULL,NULL,NULL,0,NULL,NULL 79105,123570,974381,Curious Yearling Announcer Announcer Announcer Announcer Nice Answer Enlightened Yearling Announcer Announcer Caucus Announcer Announcer Announcer Yearling Nice Answer Enlightened Announcer,NULL,NULL,0,NULL,NULL 79106,800056,931325,Notable Question Notable Question Popular Question Popular Question Popular Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 79107,653571,162030,NULL,NULL,NULL,0,NULL,NULL 79108,4389017,1156547,NULL,NULL,NULL,0,NULL,NULL 79109,207036,1156547,NULL,NULL,NULL,0,NULL,NULL 79110,38136,227803,Good Answer Nice Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened akka scala Yearling Great Answer Nice Answer Famous Question Great Answer Autobiographer Nice Answer Announcer Announcer Nice Answer Enlightened Announcer Good Answer Announcer Nice Answer Yearling Good Answer Announcer Nice Answer concurrency,NULL,NULL,0,NULL,NULL 79111,83546,335468,NULL,NULL,NULL,0,NULL,NULL 79112,544516,166044,Popular Question Popular Question Notable Question Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 79113,801764,659451,NULL,NULL,NULL,0,NULL,NULL 79114,218702,1092689,Informed,NULL,NULL,0,NULL,NULL 79115,523948,1501573,Yearling Popular Question Popular Question Caucus Self-Learner Curious Caucus Notable Question Yearling Notable Question Popular Question Custodian,NULL,NULL,0,NULL,NULL 79116,307113,620349,NULL,NULL,NULL,0,NULL,NULL 79117,44555,245493,Yearling Nice Question Popular Question Good Question Good Answer Notable Question Yearling Popular Question Notable Question Notable Question Inquisitive Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 79118,736192,214429,Great Answer Yearling Custodian Yearling Necromancer Nice Answer Good Answer Student Yearling,NULL,NULL,0,NULL,NULL 79119,812018,1166813,Yearling Nice Question Necromancer Famous Question Notable Question Yearling Custodian Custodian Good Question Revival Announcer android Custodian Good Answer Census Yearling,NULL,NULL,0,NULL,NULL 79120,1349097,1406887,NULL,NULL,NULL,0,NULL,NULL 79121,885152,641672,ruby-on-rails-3 Yearling Popular Question Necromancer ruby Popular Question Good Answer Notable Question Notable Question Nice Answer Enlightened ruby-on-rails Yearling Good Answer Guru Notable Question Popular Question Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79122,1149278,1364383,NULL,NULL,NULL,0,NULL,NULL 79123,332671,1208553,Notable Question Caucus Nice Answer Necromancer Famous Question,NULL,NULL,0,NULL,NULL 79124,359729,269409,Popular Question,NULL,NULL,0,NULL,NULL 79125,444526,1072309,NULL,NULL,NULL,0,NULL,NULL 79126,1152834,648580,Notable Question Civic Duty Enthusiast Census Popular Question Popular Question Suffrage,NULL,NULL,0,NULL,NULL 79127,748538,713744,NULL,NULL,NULL,0,NULL,NULL 79128,107562,975827,Revival Nice Answer Critic Caucus Revival Yearling Necromancer Citizen Patrol Necromancer Caucus Yearling Necromancer Revival,NULL,NULL,0,NULL,NULL 79129,1235217,7226,Nice Answer Enlightened Revival Yearling Caucus Constituent Nice Answer Caucus Yearling Revival Caucus Constituent Necromancer Nice Answer Enlightened Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 79130,48842,7226,Nice Answer Enlightened Revival Yearling Caucus Constituent Nice Answer Caucus Yearling Revival Caucus Constituent Necromancer Nice Answer Enlightened Good Answer Yearling Revival,NULL,NULL,0,NULL,NULL 79131,13037,382093,NULL,NULL,NULL,0,NULL,NULL 79132,209191,767685,Notable Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 79133,100888,1480413,Editor,NULL,NULL,0,NULL,NULL 79134,1367467,362310,Nice Answer Necromancer Nice Answer Nice Answer Revival Necromancer Necromancer Necromancer Yearling Necromancer Nice Answer Notable Question Nice Answer Enlightened Necromancer Caucus Nice Answer Notable Question Necromancer Necromancer Revival Yearling Revival Popular Question Revival Popular Question Nice Answer Good Answer Nice Answer Strunk & White Good Answer Nice Answer Necromancer Nice Answer Necromancer Necromancer Necromancer Announcer Necromancer Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 79135,362781,1167345,Yearling Custodian Great Answer Custodian Yearling Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 79136,1271475,490138,NULL,NULL,NULL,0,NULL,NULL 79137,14286,1379833,Yearling Popular Question Caucus Constituent Citizen Patrol Notable Question Caucus Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 79138,275385,516343,NULL,NULL,NULL,0,NULL,NULL 79139,75558,985188,NULL,NULL,NULL,0,NULL,NULL 79140,328530,1553025,NULL,NULL,NULL,0,NULL,NULL 79141,564902,959701,NULL,NULL,NULL,0,NULL,NULL 79142,310477,200325,Necromancer Yearling Citizen Patrol Custodian Revival Civic Duty Yearling Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 79143,420223,1256791,Autobiographer Revival,NULL,NULL,0,NULL,NULL 79144,160405,1261377,Popular Question Student,NULL,NULL,0,NULL,NULL 79145,167271,21126,Popular Question Necromancer Yearling Nice Answer Enlightened Famous Question Great Question Announcer Guru Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79146,1677284,1339415,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 79147,761896,267826,Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79148,1307697,1087982,NULL,NULL,NULL,0,NULL,NULL 79149,582701,678205,NULL,NULL,NULL,0,NULL,NULL 79150,30111,571873,Enthusiast,NULL,NULL,0,NULL,NULL 79151,137276,27736,Notable Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 79152,181575,969898,NULL,NULL,NULL,0,NULL,NULL 79153,71520,440944,Nice Answer,NULL,NULL,0,NULL,NULL 79154,10006131,514775,Critic Excavator Caucus,NULL,NULL,0,NULL,NULL 79155,758511,514775,Critic Excavator Caucus,NULL,NULL,0,NULL,NULL 79156,19356,899560,NULL,NULL,NULL,0,NULL,NULL 79157,792323,807911,NULL,NULL,NULL,0,NULL,NULL 79158,885109,593505,NULL,NULL,NULL,0,NULL,NULL 79159,52936,122741,NULL,NULL,NULL,0,NULL,NULL 79160,134982,1124071,NULL,NULL,NULL,0,NULL,NULL 79161,120298,947116,Necromancer,NULL,NULL,0,NULL,NULL 79162,47874,1088911,NULL,NULL,NULL,0,NULL,NULL 79163,368351,516942,Excavator Autobiographer Citizen Patrol Organizer Notable Question Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 79164,1155944,898462,Popular Question,NULL,NULL,0,NULL,NULL 79165,1037555,545935,Caucus Yearling Good Answer Famous Question Yearling Nice Question Custodian Custodian,NULL,NULL,0,NULL,NULL 79166,41245,485589,Great Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Announcer Excavator Good Answer Yearling Good Answer Revival Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 79167,544276,1306244,Commentator Tumbleweed Popular Question Supporter Informed Notable Question Teacher,NULL,NULL,0,NULL,NULL 79168,484627,825855,Documentation User,NULL,NULL,0,NULL,NULL 79169,2094072,1427309,Guru Nice Answer Enlightened Notable Question Nice Answer Yearling Nice Answer Enlightened Popular Question Good Question Caucus Nice Answer Enlightened Famous Question Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Enlightened react-native Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Yearling javascript Guru,NULL,NULL,0,NULL,NULL 79170,1219259,920804,NULL,NULL,NULL,0,NULL,NULL 79171,1361110,1275696,NULL,NULL,NULL,0,NULL,NULL 79172,61889,118903,javascript Guru Enlightened Good Answer Good Answer Guru Nice Answer Enlightened Good Answer Nice Answer Guru Guru Yearling Good Answer Nice Answer Guru Nice Answer Nice Answer Enlightened Caucus Great Answer Nice Answer Great Answer Nice Answer Good Answer Great Answer Good Answer Good Answer Guru Great Answer Nice Answer Guru logging Good Answer Nice Answer Enlightened Yearling Good Answer Nice Answer Caucus Good Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Guru Nice Answer Custodian Custodian Caucus Good Answer Nice Answer Guru Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Good Answer Nice Answer multithreading Nice Answer Nice Answer Revival Necromancer Guru,NULL,pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting Just because you have to draw the line somewhere pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting Actually the line may have been drawn too far already SMTP can be notoriously laggy so you are actually better off using something like QueueHandler and doing the emailing in separate thread or process Certainly in web application logging to SMTP could cause the response to be sluggish or even appear to hang while the SMTP connection times out pYou might want to use or adapt the codeBufferingSMTPHandler code which is in href https gist github com 1379446 rel noreferrer this test script ppIn general you don need to add handler to logger if it the target of MemoryHandler handler which has been added to logger If you set the level of handler that will affect what the handler actually processes it won process anything which is less severe than its level setting it should be though would recommend using the dictConfig API rather than fileConfig for better configuration coverage of the logging APIs,0,NULL,NULL 79173,45174,1246550,Promoter Benefactor Necromancer Caucus Good Question Famous Question Popular Question Revival Yearling Notable Question Nice Answer Caucus Popular Question,NULL,NULL,0,NULL,NULL 79174,540078,1305903,Editor,NULL,NULL,0,NULL,NULL 79175,197128,718666,NULL,NULL,NULL,0,NULL,NULL 79176,301555,818208,NULL,NULL,NULL,0,NULL,NULL 79177,744629,631147,Good Answer Yearling Guru Populist Informed Yearling Revival Nice Answer Notable Question Necromancer Yearling Custodian Custodian Custodian,NULL,NULL,0,NULL,NULL 79178,907476,528313,Good Answer Nice Answer Nice Answer Popular Question Guru Good Question Notable Question Nice Answer Enlightened Yearling Popular Question Announcer Yearling Famous Question Great Answer Good Answer Nice Question Popular Question Popular Question Revival,NULL,NULL,0,NULL,NULL 79179,187018,484284,NULL,NULL,NULL,0,NULL,NULL 79180,299620,542255,Editor Informed Autobiographer Yearling Mortarboard Yearling Custodian Critic Documentation User Citizen Patrol,NULL,NULL,0,NULL,NULL 79181,152898,477676,Nice Answer Necromancer Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 79182,106713,208453,NULL,NULL,NULL,0,NULL,NULL 79183,200537,272313,Nice Answer Populist Nice Answer Yearling Nice Answer Enlightened Yearling Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 79184,478991,1153681,Autobiographer Curious Yearling Teacher Popular Question Popular Question Notable Question Yearling Organizer Critic Excavator Explainer Citizen Patrol Custodian Mortarboard angular Revival Notable Question Nice Answer Enlightened Popular Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Announcer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Good Answer Popular Question Notable Question Yearling Good Answer Popular Question Popular Question Nice Question Nice Answer Notable Question Good Answer Guru typescript angular Notable Question Good Answer Guru Nice Question Notable Question Nice Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79185,7012168,869577,NULL,NULL,NULL,0,NULL,NULL 79186,408245,34871,Necromancer Announcer Yearling Census Announcer Good Answer Nice Answer Enlightened Yearling Census Populist Good Answer Yearling,NULL,NULL,0,NULL,NULL 79187,68441,356287,Popular Question Good Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 79188,230795,1386605,NULL,NULL,NULL,0,NULL,NULL 79189,281374,953686,NULL,NULL,,0,, 79190,77019,378979,Popular Question Popular Question Notable Question Yearling Nice Answer Necromancer Revival Popular Question Popular Question Nice Answer Yearling Necromancer Caucus Custodian Custodian Custodian Constituent Popular Question Documentation User Tumbleweed Custodian Nice Answer Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79191,90652,1130,Excavator Yearling Good Question Caucus Good Answer Yearling Great Question Census Good Question Good Question Yearling,NULL,NULL,0,NULL,NULL 79192,398752,218577,Revival Yearling Nice Answer Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 79193,3090287,1183115,NULL,NULL,NULL,0,NULL,NULL 79194,30305,866886,Popular Question Popular Question Nice Question Notable Question Famous Question Custodian Popular Question Popular Question Yearling Nice Answer Notable Question Popular Question Inquisitive Necromancer Popular Question Good Answer Notable Question Nice Answer Necromancer Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Good Answer Notable Question Yearling Caucus Famous Question Announcer Necromancer Notable Question Notable Question Revival Notable Question Nice Question Necromancer Famous Question Popular Question Good Question Nice Answer Popular Question Notable Question Nice Answer Popular Question Nice Question Popular Question Popular Question Nice Answer Notable Question Nice Question Yearling Popular Question Nice Question Famous Question Famous Question Nice Question Notable Question Good Answer Necromancer Necromancer,NULL,pFrom ES6 ES2015 default parameters is in the language specification ppre codefunction read file file delete after false Code code prepjust works ppReference href https developer mozilla org en docs Web JavaScript Reference Functions default parameters rel noreferrer Default Parameters MDN pblockquote pDefault function parameters allow formal parameters to be initialized with default values if strongno value strong or strongundefined strong is passed blockquotepYou can also href http exploringjs com es6 ch parameter handling html sec named parameters rel noreferrer simulate default emnamed em parameters via destructuring ppre code the below lets you call the function without any parametersfunction myFor start end step Use the variables start end and step here ··· code prep strongPre ES2015 strong ppThere are lot of ways but this is my preferred method it lets you pass in anything you want including false or null codetypeof null object code ppre codefunction foo typeof undefined 42 typeof undefined default code pre Is there reason why you don use positive if typeof undefined 42 mean instead of pHere is the end of my settings file ppre codeclass DisableMigrations object def contains self item return True def getitem self item return NoneTESTS IN PROGRESS Falseif test in sys argv or jenkins in sys argv logging disable logging CRITICAL PASSWORD HASHERS django contrib auth hashers MD5PasswordHasher DEBUG False TEMPLATE DEBUG False TESTS IN PROGRESS True MIGRATION MODULES DisableMigrations code prepbased on this href https gist github com NotSqrt 5f3c76cd15e40ef62d09 rel noreferrer snippet ppI disabled migrations only when tests are running in parallel mode you probably want to use the solution from rlmv,0,NULL,NULL 79195,5603016,665145,Popular Question,NULL,NULL,0,NULL,NULL 79196,524391,440612,NULL,NULL,NULL,0,NULL,NULL 79197,192011,682826,NULL,NULL,NULL,0,NULL,NULL 79198,642357,1057801,NULL,NULL,NULL,0,NULL,NULL 79199,71860,137053,Yearling Yearling,NULL,NULL,0,NULL,NULL 79200,112401,1553405,NULL,NULL,NULL,0,NULL,NULL 79201,67430,942490,NULL,NULL,NULL,0,NULL,NULL 79202,76380,117191,Notable Question Notable Question Popular Question Notable Question Notable Question Critic Notable Question,NULL,NULL,0,NULL,NULL 79203,361259,600146,Popular Question Autobiographer Yearling Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79204,1437688,1389164,Popular Question Popular Question Student,NULL,NULL,0,NULL,NULL 79205,67307,1022469,NULL,NULL,NULL,0,NULL,NULL 79206,163542,442303,NULL,NULL,NULL,0,NULL,NULL 79207,497853,1021768,Good Answer Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 79208,229422,1201851,NULL,NULL,NULL,0,NULL,NULL 79209,783722,165758,NULL,NULL,NULL,0,NULL,NULL 79210,66228,262387,Yearling Supporter,NULL,NULL,0,NULL,NULL 79211,121391,153102,Popular Question Supporter Revival,NULL,NULL,0,NULL,NULL 79212,274652,335505,Nice Question Nice Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79213,762701,916596,Scholar Student,NULL,NULL,0,NULL,NULL 79214,88120,533219,Supporter Informed,NULL,NULL,0,NULL,NULL 79215,1210685,477712,NULL,NULL,NULL,0,NULL,NULL 79216,333248,296293,Teacher,NULL,NULL,0,NULL,NULL 79217,23889,1364650,Yearling Good Answer Custodian Necromancer Yearling Necromancer Announcer Cleanup Custodian Documentation User Nice Answer Nice Question Citizen Patrol Yearling Nice Answer Famous Question Curious,NULL,NULL,0,NULL,NULL 79218,1084791,1435322,Reviewer Notable Question Yearling Caucus Constituent Census Notable Question Yearling Caucus Constituent Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 79219,491851,1100192,NULL,NULL,NULL,0,NULL,NULL 79220,16287,337737,NULL,NULL,NULL,0,NULL,NULL 79221,7745037,1086408,NULL,NULL,NULL,0,NULL,NULL 79222,380724,1086408,NULL,NULL,NULL,0,NULL,NULL 79223,2413527,1086408,NULL,NULL,NULL,0,NULL,NULL 79224,1040943,495783,Notable Question Yearling,NULL,NULL,1,Securing an Azure Function azure azure active directory azure functions pI trying to apply the least privilege principle to an Azure Function What want is to make FunctionApp have only read access to for example storage queue What ve tried so far is pulliEnable managed identity in the FunctionApp liliCreate role that only allows read access to the queues role definition below liliGo to the storage queue IAM permissions and add new role assignment using the new role and the Function App li ulpBut it didn work If try to write to that queue from my function using an output binding the item is written when expected failure ve tried using the builtin role Storage Queue Data Reader Preview with the same result ppWhat the right way to add remove permissions of Function App ppRole definition ppre code Name Reader WorkingSA TestQueue Queue IsCustom true Description Read TestQueue queue on WorkingSA storage accoung actions Microsoft Storage storageAccounts queueServices queues read dataActions Microsoft Storage storageAccounts queueServices queues messages read notActions notDataActions AssignableScopes subscriptions XXXXXXXX XXXX XXXX XXXX XXXXXXXXXXXX resourceGroups TestAuth dev rg code pre,NULL 79225,678832,786125,Notable Question Notable Question Notable Question Popular Question Famous Question Yearling Notable Question Notable Question Popular Question Caucus Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 79226,436178,901318,NULL,NULL,NULL,0,NULL,NULL 79227,520091,959164,NULL,NULL,NULL,0,NULL,NULL 79228,59525,672268,NULL,NULL,NULL,0,NULL,NULL 79229,3665073,672268,NULL,NULL,NULL,0,NULL,NULL 79230,3709652,672268,NULL,NULL,NULL,0,NULL,NULL 79231,1497940,590930,NULL,NULL,NULL,0,NULL,NULL 79232,154186,1512203,Popular Question,NULL,NULL,0,NULL,NULL 79233,896446,47603,Popular Question Custodian Famous Question Revival Notable Question Good Question Necromancer Yearling Census Popular Question Popular Question Necromancer Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 79234,13413,354007,Popular Question Famous Question Popular Question Supporter Curious Commentator Notable Question Documentation User Self-Learner Peer Pressure Yearling Yearling Popular Question Popular Question Nice Answer Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79235,545308,618206,Yearling Notable Question Popular Question Nice Answer Enlightened Popular Question Nice Question Nice Answer Notable Question Caucus Constituent Good Answer Notable Question Yearling Popular Question Famous Question Announcer jquery Yearling Notable Question Famous Question Popular Question Notable Question,NULL,pA little trick that doesn require setting locales or having huge translation tables ppre codefunction Unaccent string if strpos string htmlentities string ENT QUOTES UTF amp false string html entity decode preg replace amp acute cedil circ grave lig orn ring slash tilde uml string ENT QUOTES UTF return string code prepThe only requirement for it to work properly is to save your files in UTF as you should already Works great for hungarian,0,NULL,NULL 79236,816100,189019,NULL,NULL,NULL,0,NULL,NULL 79237,718880,18406,Yearling Yearling Yearling Nice Question,NULL,NULL,0,NULL,NULL 79238,71484,369862,Nice Answer Yearling,NULL,pThis should do it ppre codefunction absolute base relative var stack base split parts relative split stack pop remove current file name or empty string omit if base is the current folder without trailing slash for var lt parts length if parts continue if parts stack pop else stack push parts return stack join code pre This solution has problem when the relative url starts with for example some css correct implementation would in such case remove all of the items in the stack after the domain name,0,NULL,NULL 79239,67070,10514,Yearling Good Answer Necromancer,NULL,NULL,0,NULL,NULL 79240,5061846,1244386,Notable Question,NULL,NULL,0,NULL,NULL 79241,1722644,743290,Notable Question Reviewer Necromancer Nice Answer Popular Question Yearling Nice Answer Caucus Nice Answer Enlightened Notable Question Good Answer Self-Learner Yearling Caucus Documentation User Famous Question Caucus Yearling Popular Question Popular Question Guru,NULL,NULL,0,NULL,NULL 79242,303232,877264,NULL,NULL,NULL,0,NULL,NULL 79243,5066326,215293,NULL,NULL,NULL,0,NULL,NULL 79244,419357,215293,NULL,NULL,NULL,0,NULL,NULL 79245,1266712,401088,Tumbleweed Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79246,328672,1080075,Notable Question Nice Question Nice Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79247,2705,309288,NULL,NULL,NULL,0,NULL,NULL 79248,759028,456479,NULL,NULL,NULL,0,NULL,NULL 79249,173171,602614,Notable Question,NULL,NULL,0,NULL,NULL 79250,337644,883113,Popular Question Yearling Yearling Good Answer Popular Question Nice Question Announcer Popular Question Good Answer Popular Question Yearling Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 79251,2801223,1331745,NULL,NULL,NULL,0,NULL,NULL 79252,86788,1331745,NULL,NULL,NULL,0,NULL,NULL 79253,372325,592546,NULL,NULL,NULL,0,NULL,NULL 79254,185855,1122056,NULL,NULL,NULL,0,NULL,NULL 79255,911666,1216027,Scholar,NULL,NULL,0,NULL,NULL 79256,597371,1035691,Good Question Yearling Popular Question Yearling Popular Question Popular Question Favorite Question Yearling Yearling Promoter Yearling Custodian Notable Question Notable Question Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79257,159198,1208060,Notable Question,NULL,NULL,0,NULL,NULL 79258,12334,198353,Yearling Custodian Scholar,NULL,NULL,0,NULL,NULL 79259,268297,513401,Popular Question Popular Question Explainer Popular Question Popular Question Caucus Notable Question Citizen Patrol Custodian Custodian Yearling Nice Answer Popular Question Popular Question,NULL,How to add commands to VisualStudio console visual studio powershell console pEntity Framework and Nuget both do this They add powershell commandlets that can be launched from the visual studio package manager console pp img src https content screencast com users togakangaroo folders Jing media 5d6e3387 47b9 4401 a10f ded8854a3281 2015 01 06 1515 png alt Comands in the Visual Studio Console ppIt would be really great if could write some project centric utilities that could be committed to my source control and be available for all developers from that console ppHow do do this ppNote that not looking for 3rd party solution eg StudioShell and that aware that can just write normal powershell scripts to do many things interested specifically in how to write functions that are first class citizens in the Visual Studio package manager console like codeGet Package code and codeUpdate Database code got any solution for this How to add commands to VisualStudio console visual studio powershell console pEntity Framework and Nuget both do this They add powershell commandlets that can be launched from the visual studio package manager console pp img src https content screencast com users togakangaroo folders Jing media 5d6e3387 47b9 4401 a10f ded8854a3281 2015 01 06 1515 png alt Comands in the Visual Studio Console ppIt would be really great if could write some project centric utilities that could be committed to my source control and be available for all developers from that console ppHow do do this ppNote that not looking for 3rd party solution eg StudioShell and that aware that can just write normal powershell scripts to do many things interested specifically in how to write functions that are first class citizens in the Visual Studio package manager console like codeGet Package code and codeUpdate Database code looks good will try something similar Thanks,0,NULL,NULL 79260,90089,1096492,Necromancer,NULL,NULL,0,NULL,NULL 79261,23392,859112,Yearling Caucus Constituent Notable Question,NULL,NULL,0,NULL,NULL 79262,259680,1224865,NULL,NULL,NULL,0,NULL,NULL 79263,113083,832415,Teacher,NULL,NULL,0,NULL,NULL 79264,292546,150679,Enthusiast Yearling Revival Necromancer Revival Revival Yearling Popular Question Revival Revival Yearling Necromancer Necromancer Revival Peer Pressure Nice Answer Yearling Nice Answer Custodian Popular Question c++ Custodian Organizer Yearling,NULL,NULL,0,NULL,NULL 79265,148339,150679,Enthusiast Yearling Revival Necromancer Revival Revival Yearling Popular Question Revival Revival Yearling Necromancer Necromancer Revival Peer Pressure Nice Answer Yearling Nice Answer Custodian Popular Question c++ Custodian Organizer Yearling,NULL,NULL,0,NULL,NULL 79266,756568,402273,NULL,NULL,NULL,0,NULL,NULL 79267,75500,1111095,NULL,NULL,NULL,0,NULL,NULL 79268,3123265,1009876,NULL,NULL,NULL,0,NULL,NULL 79269,26899,827437,Nice Answer Enlightened Excavator Yearling Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 79270,33527,347942,Nice Answer Yearling Census Yearling Civic Duty Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79271,1087983,1284545,Notable Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 79272,720850,752397,Popular Question Self-Learner Yearling Caucus Necromancer Necromancer Caucus Famous Question Yearling Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 79273,245604,230501,NULL,NULL,NULL,0,NULL,NULL 79274,124780,409228,Nice Answer Enlightened Nice Answer Enlightened Yearling Caucus Constituent Nice Answer Enlightened Announcer Yearling Nice Answer Enlightened Good Answer Announcer Yearling erlang,NULL,NULL,0,NULL,NULL 79275,1276768,251291,NULL,NULL,NULL,0,NULL,NULL 79276,561597,483255,Nice Answer Yearling Notable Question Good Answer Popular Question Popular Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79277,225857,304487,NULL,NULL,NULL,0,NULL,NULL 79278,2856232,530616,NULL,NULL,NULL,0,NULL,NULL 79279,1685536,530616,NULL,NULL,NULL,0,NULL,NULL 79280,76066,186836,Informed Enthusiast Custodian Necromancer Revival Promoter Nice Answer Enlightened Popular Question Nice Answer Enlightened Yearling Popular Question Caucus Notable Question Nice Answer Revival Popular Question Notable Question Nice Answer Caucus Inquisitive Yearling Nice Answer Enlightened Revival Notable Question Census Nice Answer Enlightened Popular Question Nice Answer Enlightened Popular Question Notable Question Popular Question typescript Yearling,NULL,NULL,0,NULL,NULL 79281,1157754,935331,NULL,NULL,NULL,0,NULL,NULL 79282,195189,1113981,Scholar Curious Commentator Tumbleweed Enthusiast Nice Answer Yearling Caucus Popular Question Good Answer Yearling Popular Question Necromancer Yearling Popular Question,NULL,,0,, 79283,1091189,1437995,NULL,NULL,NULL,0,NULL,NULL 79284,622410,884077,Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 79285,145205,209123,Organizer Good Question Peer Pressure Notable Question Great Answer Famous Question Popular Question Nice Answer Enlightened Nice Question Popular Question Yearling Good Question Civic Duty Good Answer Good Question Notable Question Notable Question Nice Question Good Question Popular Question Yearling Good Question Famous Question Necromancer Favorite Question Notable Question Notable Question Famous Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 79286,1037577,1276889,NULL,NULL,NULL,0,NULL,NULL 79287,66927,300694,Yearling Great Answer Yearling Yearling Great Answer Famous Question,NULL,NULL,0,NULL,NULL 79288,267073,999524,NULL,NULL,NULL,0,NULL,NULL 79289,2927765,1263761,NULL,NULL,NULL,0,NULL,NULL 79290,440174,1368270,NULL,NULL,NULL,0,NULL,NULL 79291,1434508,1020464,NULL,NULL,NULL,0,NULL,NULL 79292,1308410,1215287,NULL,NULL,NULL,0,NULL,NULL 79293,257742,1215287,NULL,NULL,NULL,0,NULL,NULL 79294,239624,250455,Popular Question Yearling Good Question Stellar Question Popular Question Notable Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 79295,173323,1346697,NULL,NULL,NULL,0,NULL,NULL 79296,1566287,1063185,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79297,1933822,574781,Popular Question,NULL,NULL,0,NULL,NULL 79298,64341,1192374,Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 79299,128317,681335,NULL,NULL,NULL,0,NULL,NULL 79300,79566,1402350,Supporter Caucus,NULL,NULL,0,NULL,NULL 79301,159191,1432573,Citizen Patrol,NULL,NULL,0,NULL,NULL 79302,143659,1188452,NULL,NULL,NULL,0,NULL,NULL 79303,724605,936305,Editor,NULL,NULL,0,NULL,NULL 79304,1099181,106095,Notable Question Famous Question Popular Question Popular Question Great Answer Yearling Popular Question Popular Question Notable Question Popular Question Popular Question Stellar Question Yearling Famous Question Good Answer Notable Question Notable Question Notable Question Notable Question Great Question Famous Question Yearling Nice Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 79305,685052,1018027,NULL,NULL,NULL,0,NULL,NULL 79306,3743805,878618,NULL,NULL,NULL,0,NULL,NULL 79307,568663,589581,Yearling Popular Question,NULL,NULL,0,NULL,NULL 79308,151547,348436,Popular Question,NULL,NULL,0,NULL,NULL 79309,53458,176203,Caucus,NULL,NULL,0,NULL,NULL 79310,333240,314186,NULL,NULL,NULL,0,NULL,NULL 79311,649660,1472233,NULL,NULL,NULL,0,NULL,NULL 79312,1183659,921681,NULL,NULL,NULL,0,NULL,NULL 79313,332800,1088577,Caucus Constituent Yearling Suffrage Vox Populi Yearling Custodian Popular Question Caucus Announcer Good Answer Popular Question Citizen Patrol Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 79314,292931,992008,NULL,NULL,NULL,0,NULL,NULL 79315,644603,74144,Necromancer Yearling Nice Answer Notable Question Caucus,NULL,NULL,0,NULL,NULL 79316,157515,492048,Great Answer Nice Answer Yearling Guru Custodian Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 79317,875267,176886,Nice Question Popular Question Nice Question Famous Question Popular Question Notable Question Revival Yearling Good Question Popular Question Self-Learner Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 79318,233717,259172,Yearling Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 79319,384553,780077,Editor Commentator,NULL,NULL,0,NULL,NULL 79320,797652,1198984,NULL,NULL,NULL,0,NULL,NULL 79321,1385259,1554535,NULL,NULL,NULL,0,NULL,NULL 79322,47153,30521,Revival Good Question Yearling,NULL,NULL,0,NULL,NULL 79323,1519887,594200,Notable Question Notable Question Nice Question Yearling Caucus Famous Question Popular Question Necromancer Notable Question Famous Question,NULL,NULL,0,NULL,NULL 79324,342032,1035370,Enthusiast Documentation User Informed,NULL,NULL,0,NULL,NULL 79325,3383,1077005,Yearling,NULL,NULL,0,NULL,NULL 79326,181822,916140,Notable Question Excavator Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 79327,319307,587337,Famous Question Yearling Popular Question Announcer Revival Nice Answer Enlightened Notable Question Critic Self-Learner,NULL,NULL,1,Angular Http Observables and recursive requests angular rxjs observable angular2 http pI have REST endpoint that returns list of items max 1000 items at time If there are more than 1000 items the response has HTTP status 206 and there codeNext Range code header that can use in my next request for getting more items ppI working on strongan Angular application strong and trying to implement this with codeHttp code and codeObservable code My problem is that don know stronghow to merge multiple codeObservable codes strong depending on how many pages of items there are and strongfinally return one codeObservable code strong that my component can subscribe to ppHere where ve got with my current TypeScript implementation ppre class lang js prettyprint override code NOTE Non working example getAllItems Observable lt any gt array of all items possibly received with multiple requests const allItems any inner function for getting range of items const getRange range string gt const headers Headers new Headers if range headers set Range range return this http get http api endpoint headers map res Response gt add all to received items maybe not needed if the responses can be merged some other way allItems push apply allItems res json partial content if res status 206 const nextRange res headers get Next Range get next range of items return getRange nextRange return allItems get first range return getRange code prepHowever this doesn work If understood it correctly an codeObservable code is returned as the value of the initial codeObservable code and not the array of items,NULL 79328,974311,1534381,Nice Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 79329,857579,1007030,NULL,NULL,NULL,0,NULL,NULL 79330,212300,433799,Informed Census Caucus,NULL,NULL,0,NULL,NULL 79331,695863,1071932,NULL,NULL,NULL,0,NULL,NULL 79332,146410,898746,NULL,NULL,NULL,0,NULL,NULL 79333,2402015,907596,Curious Informed,NULL,NULL,0,NULL,NULL 79334,220910,225728,Good Answer Yearling,NULL,NULL,0,NULL,NULL 79335,413277,616105,Popular Question Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 79336,167401,197473,Famous Question Good Question Notable Question Notable Question Notable Question Notable Question Popular Question Yearling Famous Question Great Answer Good Question Famous Question Good Question Nice Question Nice Question Announcer Famous Question Famous Question Notable Question Popular Question Popular Question Nice Answer Announcer Yearling Notable Question Announcer Good Question Good Answer Announcer java Announcer Announcer Nice Question Nice Question Great Answer Yearling Popular Question Peer Pressure,NULL,NULL,0,NULL,NULL 79337,417627,860407,NULL,NULL,NULL,0,NULL,NULL 79338,10853,763508,NULL,NULL,NULL,0,NULL,NULL 79339,923641,343734,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 79340,243699,1005460,Necromancer,NULL,NULL,0,NULL,NULL 79341,201296,1092006,NULL,NULL,NULL,0,NULL,NULL 79342,215490,911212,Good Question Editor Critic Favorite Question Yearling,NULL,Maximizing profit for given stock quotes algorithm recursion dynamic programming pI was asked this question while interviewing for startup and saw this again in the recent contest at pp href https systems interviewstreet com challenges rel noreferrer Code Sprint systems pp The question ppYou are given the stock prices for set of days Each day you can either buy one unit of stock sell any number of stock units you have already bought or do nothing What is the maximum profit you can obtain by planning your trading strategy optimally ppExamples The input the no of days can vary pp5 profit since the price decreases each day the max profit we can make pp1 100 profit 197 pp1 profit we buy at sell at then we buy at and sell at total profit ppMy Solution ppa Find the day when the stock price was largest Keep buying unit of stock till that day ppb If that day is the last day then quit ppelse Sell all the stocks on that day and split the array after that day and recurse on the remaining elementsbrc merge the profits ppe 3bra highest stock price on day so we buy stock on day and sell it on day profit then we recurse on the remaining days ppb Max price is on day so we keep buying stock on day and day and sell on day profit ppc Total profit ppThe complexity for this turns out to be this solution passed 10 of the 11 cases but exceeded the time limit on last test case the largest input pp emSo my question is can anyone think of more efficient solution to this problem em Is there dynamic programming solution ppP this is the first time am asking question here so please let me know if need to improve add things to this question PeitiPeterLi This is years late but yes your are right fixed,0,NULL,NULL 79343,533574,1297190,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 79344,212520,1219463,Popular Question Yearling Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question Nice Question Popular Question Notable Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 79345,111621,773390,Editor Student Supporter,NULL,NULL,0,NULL,NULL 79346,222547,385450,Popular Question,NULL,NULL,0,NULL,NULL 79347,1173524,214037,Notable Question,NULL,NULL,0,NULL,NULL 79348,494649,739451,Popular Question Excavator Census Critic Documentation User Yearling Popular Question,NULL,NULL,0,NULL,NULL 79349,740158,940266,Popular Question Caucus Nice Answer Documentation User,NULL,NULL,0,NULL,NULL 79350,669618,386478,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79351,16520,64381,Popular Question,NULL,NULL,0,NULL,NULL 79352,1319,1301868,NULL,NULL,NULL,0,NULL,NULL 79353,324887,1032449,Editor Supporter Student,NULL,NULL,0,NULL,NULL 79354,122557,197101,Popular Question Notable Question Yearling Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 79355,1918117,736149,Revival Yearling Commentator Necromancer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79356,135016,736149,Revival Yearling Commentator Necromancer Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79357,8660385,193344,Announcer Yearling Good Answer,NULL,NULL,0,NULL,NULL 79358,10004225,1425098,Nice Question Yearling Famous Question Popular Question Yearling Good Question Good Answer Caucus Favorite Question Yearling,NULL,NULL,0,NULL,NULL 79359,315363,742370,Yearling,NULL,NULL,0,NULL,NULL 79360,5081431,568286,Yearling Nice Answer Enlightened Yearling Custodian Custodian Custodian Custodian Caucus Constituent Documentation User Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 79361,35727,568286,Yearling Nice Answer Enlightened Yearling Custodian Custodian Custodian Custodian Caucus Constituent Documentation User Yearling Nice Answer Enlightened Custodian,NULL,NULL,0,NULL,NULL 79362,1776929,421197,NULL,NULL,NULL,0,NULL,NULL 79363,382795,1040243,NULL,NULL,NULL,0,NULL,NULL 79364,201493,863162,Nice Answer Caucus Critic Informed Yearling,NULL,NULL,0,NULL,NULL 79365,364355,455811,NULL,NULL,NULL,0,NULL,NULL 79366,1662417,1345758,NULL,NULL,NULL,0,NULL,NULL 79367,230048,191580,Yearling Good Answer Populist Critic Yearling,NULL,NULL,0,NULL,NULL 79368,796053,626424,Supporter Documentation User,NULL,NULL,0,NULL,NULL 79369,319551,416514,Necromancer Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79370,186806,228114,Famous Question Nice Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79371,142669,774334,NULL,NULL,NULL,0,NULL,NULL 79372,35405,1073731,NULL,NULL,NULL,0,NULL,NULL 79373,1209872,333161,NULL,NULL,NULL,0,NULL,NULL 79374,389069,1207225,NULL,NULL,NULL,0,NULL,NULL 79375,1038539,1165131,NULL,NULL,NULL,0,NULL,NULL 79376,344035,247013,Yearling Good Answer Custodian Nice Answer Good Question Nice Answer Guru Yearling Announcer Announcer Cleanup Popular Question Good Answer Yearling Great Question Notable Question Popular Question Famous Question,NULL,pAsyncTask uses thread pool pattern for running the stuff from doInBackground The issue is initially in early Android OS versions the pool size was just meaning no parallel computations for bunch of AsyncTasks But later they fixed that and now the size is so at most AsyncTasks can run simultaneously Unfortunately don remember in what version exactly they changed that pp strongUPDATE strong ppHere is what current 2012 01 27 API says on this pblockquote pWhen first introduced AsyncTasks were executed serially on single background thread Starting with DONUT this was changed to pool of threads allowing multiple tasks to operate in parallel After HONEYCOMB it is planned to change this back to single thread to avoid common application errors caused by parallel execution If you truly want parallel execution you can use the executeOnExecutor Executor Params version of this method with THREAD POOL EXECUTOR however see commentary there for warnings on its use blockquotepDONUT is Android HONEYCOMB is Android pp strongUPDATE strong ppSee the comment by codekabuko code from codeMar at 27 code ppIt turns out that for APIs where pool of threads allowing multiple tasks to operate in parallel is used starting from and ending on the number of simultaneously running AsyncTasks depends on how many tasks have been passed for execution already but have not finished their codedoInBackground code yet ppThis is tested confirmed by me on Suppose you have custom AsyncTask that just sleeps second in codedoInBackground code AsyncTasks use fixed size queue internally for storing delayed tasks Queue size is 10 by default If you start 15 your custom tasks in row then first will enter their codedoInBackground code but the rest will wait in queue for free worker thread As soon as any of the first finishes and thus releases worker thread task from the queue will start execution So in this case at most tasks will run simultaneously However if you start 16 your custom tasks in row then first will enter their codedoInBackground code the rest 10 will get into the queue but for the 16th new worker thread will be created so it ll start execution immediately So in this case at most tasks will run simultaneously ppThere is limit of how many tasks can be run simultaneously Since codeAsyncTask code uses thread pool executor with limited max number of worker threads 128 and the delayed tasks queue has fixed size 10 if you try to execute more than 138 your custom tasks the app will crash with codejava util concurrent RejectedExecutionException code ppStarting from the API allows to use your custom thread pool executor via codeAsyncTask executeOnExecutor Executor exec Params params code method This allows for instance to configure the size of the delayed tasks queue if default 10 is not what you need ppAs mentions there is an option to use codeAsyncTaskCompat executeParallel task params code from support library to run tasks in parallel without bothering with API level This method became deprecated in API level 26 pp strongUPDATE strong ppHere is simple test app to play with number of tasks serial vs parallel execution href https github com vitkhudenko test asynctask rel noreferrer https github com vitkhudenko test asynctask pp strongUPDATE strong thanks for pointing this out ppStarting from Android codeAsyncTask code behaves differently from what was described in strongUPDATE strong section There href https android googlesource com platform frameworks base 719c44e03b97e850a46136ba336d729f5fbd1f47 5E 21 F0 rel noreferrer is fix to prevent codeAsyncTask code from creating too many threads ppBefore Android API 19 codeAsyncTask code had the following fields ppre codeprivate static final int CORE POOL SIZE private static final int MAXIMUM POOL SIZE 128 private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 10 code prepIn Android API 19 the above fields are changed to this ppre codeprivate static final int CPU COUNT Runtime getRuntime availableProcessors private static final int CORE POOL SIZE CPU COUNT private static final int MAXIMUM POOL SIZE CPU COUNT private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 128 code prepThis change increases the size of the queue to 128 items and reduces the maximum number of threads to the number of CPU cores Apps can still submit the same number of tasks thanks for pointing that out but please bear in mind that in real world you will most likely want to split tasks in several groups networking DB or whatever criteria and to run group on dedicated thread pool versus running all tasks in one pool pAsyncTask uses thread pool pattern for running the stuff from doInBackground The issue is initially in early Android OS versions the pool size was just meaning no parallel computations for bunch of AsyncTasks But later they fixed that and now the size is so at most AsyncTasks can run simultaneously Unfortunately don remember in what version exactly they changed that pp strongUPDATE strong ppHere is what current 2012 01 27 API says on this pblockquote pWhen first introduced AsyncTasks were executed serially on single background thread Starting with DONUT this was changed to pool of threads allowing multiple tasks to operate in parallel After HONEYCOMB it is planned to change this back to single thread to avoid common application errors caused by parallel execution If you truly want parallel execution you can use the executeOnExecutor Executor Params version of this method with THREAD POOL EXECUTOR however see commentary there for warnings on its use blockquotepDONUT is Android HONEYCOMB is Android pp strongUPDATE strong ppSee the comment by codekabuko code from codeMar at 27 code ppIt turns out that for APIs where pool of threads allowing multiple tasks to operate in parallel is used starting from and ending on the number of simultaneously running AsyncTasks depends on how many tasks have been passed for execution already but have not finished their codedoInBackground code yet ppThis is tested confirmed by me on Suppose you have custom AsyncTask that just sleeps second in codedoInBackground code AsyncTasks use fixed size queue internally for storing delayed tasks Queue size is 10 by default If you start 15 your custom tasks in row then first will enter their codedoInBackground code but the rest will wait in queue for free worker thread As soon as any of the first finishes and thus releases worker thread task from the queue will start execution So in this case at most tasks will run simultaneously However if you start 16 your custom tasks in row then first will enter their codedoInBackground code the rest 10 will get into the queue but for the 16th new worker thread will be created so it ll start execution immediately So in this case at most tasks will run simultaneously ppThere is limit of how many tasks can be run simultaneously Since codeAsyncTask code uses thread pool executor with limited max number of worker threads 128 and the delayed tasks queue has fixed size 10 if you try to execute more than 138 your custom tasks the app will crash with codejava util concurrent RejectedExecutionException code ppStarting from the API allows to use your custom thread pool executor via codeAsyncTask executeOnExecutor Executor exec Params params code method This allows for instance to configure the size of the delayed tasks queue if default 10 is not what you need ppAs mentions there is an option to use codeAsyncTaskCompat executeParallel task params code from support library to run tasks in parallel without bothering with API level This method became deprecated in API level 26 pp strongUPDATE strong ppHere is simple test app to play with number of tasks serial vs parallel execution href https github com vitkhudenko test asynctask rel noreferrer https github com vitkhudenko test asynctask pp strongUPDATE strong thanks for pointing this out ppStarting from Android codeAsyncTask code behaves differently from what was described in strongUPDATE strong section There href https android googlesource com platform frameworks base 719c44e03b97e850a46136ba336d729f5fbd1f47 5E 21 F0 rel noreferrer is fix to prevent codeAsyncTask code from creating too many threads ppBefore Android API 19 codeAsyncTask code had the following fields ppre codeprivate static final int CORE POOL SIZE private static final int MAXIMUM POOL SIZE 128 private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 10 code prepIn Android API 19 the above fields are changed to this ppre codeprivate static final int CPU COUNT Runtime getRuntime availableProcessors private static final int CORE POOL SIZE CPU COUNT private static final int MAXIMUM POOL SIZE CPU COUNT private static final BlockingQueue lt Runnable gt sPoolWorkQueue new LinkedBlockingQueue lt Runnable gt 128 code prepThis change increases the size of the queue to 128 items and reduces the maximum number of threads to the number of CPU cores Apps can still submit the same number of tasks Thanks for pointing out updated Initially feeling its redundancy did not want to mention it at all like they got rid of it pTo workaround you need to remember the last selected position Then inside of your spinner listener compare the last selected position with the new one If they are different then process the event and also update the last selected position with new position value else just skip the event processing ppIf somewhere within the code you are going to programatically change spinner selected position and you don want the listener to process the event then just reset the last selected position to the one you re going to set ppYes Spinner in Android is painful even say pain starts from its name Spinner Isn it bit misleading As far as we re talking about it you should also be aware there bug Spinner may not restore not always its state on device rotation so make sure you handle Spinner state manually ásCarrasco it was years ago simply can not recall the context but definitely had no issues with the solution Probably consider using as starting value for the last selected position,0,NULL,NULL 79377,1354093,127878,Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 79378,1795170,705805,NULL,NULL,NULL,0,NULL,NULL 79379,118631,1306262,Informed Teacher Supporter Enthusiast,NULL,NULL,0,NULL,NULL 79380,49179,1293196,Yearling Guru Yearling Supporter Commentator Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 79381,219240,252358,Commentator,NULL,NULL,0,NULL,NULL 79382,568962,1393942,NULL,NULL,NULL,0,NULL,NULL 79383,428308,1396170,NULL,NULL,NULL,0,NULL,NULL 79384,60092,1355533,Yearling Nice Question Popular Question Curious Caucus Notable Question Good Question,NULL,NULL,0,NULL,NULL 79385,115378,1355533,Yearling Nice Question Popular Question Curious Caucus Notable Question Good Question,NULL,NULL,0,NULL,NULL 79386,972040,6647,Yearling,NULL,NULL,0,NULL,NULL 79387,11380,74235,Yearling Popular Question Revival Popular Question Famous Question Popular Question Good Question Popular Question Notable Question Yearling Nice Question Nice Question Necromancer Notable Question Yearling Nice Answer Stellar Question,NULL,NULL,0,NULL,NULL 79388,39576,1031804,Necromancer Yearling Necromancer Necromancer Editor Announcer Yearling Caucus Yearling Nice Answer Necromancer Nice Answer Nice Answer Good Answer Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79389,6451378,1031804,Necromancer Yearling Necromancer Necromancer Editor Announcer Yearling Caucus Yearling Nice Answer Necromancer Nice Answer Nice Answer Good Answer Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79390,8682,1031804,Necromancer Yearling Necromancer Necromancer Editor Announcer Yearling Caucus Yearling Nice Answer Necromancer Nice Answer Nice Answer Good Answer Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79391,6284,1031804,Necromancer Yearling Necromancer Necromancer Editor Announcer Yearling Caucus Yearling Nice Answer Necromancer Nice Answer Nice Answer Good Answer Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79392,2253707,1493617,NULL,NULL,NULL,0,NULL,NULL 79393,669939,1005661,Yearling Announcer,NULL,NULL,0,NULL,NULL 79394,471443,1097384,Student Promoter Scholar Benefactor Caucus Yearling Announcer Nice Question Announcer Yearling Custodian Custodian Caucus xmpp Excavator Popular Question,NULL,NULL,0,NULL,NULL 79395,1364151,350461,Yearling,NULL,NULL,0,NULL,NULL 79396,188493,141922,NULL,NULL,NULL,0,NULL,NULL 79397,3155077,642857,NULL,NULL,NULL,0,NULL,NULL 79398,297671,509291,NULL,NULL,NULL,0,NULL,NULL 79399,1647101,941518,Necromancer Nice Answer Popular Question Notable Question Yearling Nice Answer Caucus Famous Question Popular Question Popular Question Nice Answer Nice Question Caucus Yearling Nice Question Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 79400,95226,1402150,Good Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79401,47466,364103,Popular Question,NULL,NULL,0,NULL,NULL 79402,497649,648128,Popular Question Famous Question Inquisitive Caucus Popular Question,NULL,NULL,0,NULL,NULL 79403,249009,536503,Scholar Informed Autobiographer Editor Teacher Supporter,NULL,NULL,0,NULL,NULL 79404,203801,97929,Critic Necromancer Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 79405,6223720,97929,Critic Necromancer Yearling Popular Question Good Question,NULL,NULL,0,NULL,NULL 79406,138631,995912,NULL,NULL,NULL,0,NULL,NULL 79407,394425,1497556,NULL,NULL,NULL,0,NULL,NULL 79408,811019,868019,NULL,NULL,NULL,0,NULL,NULL 79409,3854,310442,Yearling Yearling Good Answer Notable Question Yearling Nice Answer Enlightened Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79410,744134,1394768,Notable Question Notable Question Curious,NULL,NULL,0,NULL,NULL 79411,375461,1011272,Yearling Popular Question Yearling Famous Question Popular Question Explainer Custodian Yearling Tag Editor Yearling Custodian Announcer Citizen Patrol Informed Organizer Tenacious Nice Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 79412,221952,1244072,NULL,NULL,NULL,0,NULL,NULL 79413,169955,372969,Nice Question,NULL,NULL,0,NULL,NULL 79414,49207,551652,NULL,NULL,NULL,0,NULL,NULL 79415,161630,361343,Famous Question Yearling Nice Answer Enlightened Suffrage,NULL,NULL,0,NULL,NULL 79416,87345,831954,NULL,NULL,NULL,0,NULL,NULL 79417,898507,423727,Teacher,NULL,NULL,0,NULL,NULL 79418,180289,1244740,NULL,NULL,NULL,0,NULL,NULL 79419,746071,377439,Necromancer Yearling,NULL,NULL,0,NULL,NULL 79420,727661,384846,Self-Learner Notable Question,NULL,NULL,0,NULL,NULL 79421,850433,971330,NULL,NULL,NULL,0,NULL,NULL 79422,787610,1444065,Enthusiast,NULL,NULL,0,NULL,NULL 79423,78785,1162785,NULL,NULL,NULL,0,NULL,NULL 79424,266480,1494641,NULL,NULL,NULL,0,NULL,NULL 79425,894932,10756,Nice Question Popular Question Popular Question Popular Question Nice Question Notable Question Nice Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Notable Question Nice Question Revival Famous Question Stellar Question Nice Question Famous Question Yearling Popular Question Popular Question Famous Question Famous Question Popular Question Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 79426,120309,1499579,NULL,NULL,NULL,0,NULL,NULL 79427,498925,1078729,NULL,NULL,NULL,0,NULL,NULL 79428,459908,808418,NULL,NULL,NULL,0,NULL,NULL 79429,30222,535844,NULL,NULL,NULL,0,NULL,NULL 79430,246278,737170,NULL,NULL,NULL,0,NULL,NULL 79431,510662,1089251,Scholar,NULL,NULL,0,NULL,NULL 79432,484153,1074585,NULL,NULL,NULL,0,NULL,NULL 79433,32497,1125467,Nice Question Popular Question Civic Duty Popular Question Caucus Notable Question Popular Question Popular Question Yearling Popular Question Announcer Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79434,222949,952552,NULL,NULL,NULL,0,NULL,NULL 79435,51230,608382,Yearling Notable Question Notable Question Famous Question Yearling Good Answer Yearling Popular Question Popular Question Guru,NULL,NULL,0,NULL,NULL 79436,190841,803072,Supporter Autobiographer Editor,NULL,NULL,0,NULL,NULL 79437,10637625,803072,Supporter Autobiographer Editor,NULL,NULL,0,NULL,NULL 79438,278245,1280000,NULL,NULL,NULL,0,NULL,NULL 79439,410495,556739,NULL,NULL,NULL,0,NULL,NULL 79440,36522,1065716,NULL,NULL,NULL,0,NULL,NULL 79441,557823,369388,Commentator,NULL,NULL,0,NULL,NULL 79442,374473,208041,Yearling Nice Answer Notable Question Notable Question Yearling Curious Promoter Caucus Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 79443,322961,973508,Yearling Announcer Editor Tumbleweed Promoter Popular Question Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79444,151952,200257,NULL,NULL,NULL,0,NULL,NULL 79445,127448,263004,Popular Question Good Answer Notable Question Guru Yearling Good Answer Nice Answer Notable Question Nice Answer Enlightened Notable Question Guru Nice Answer Enlightened Famous Question Nice Answer Nice Answer Famous Question Nice Answer Enlightened Good Answer Guru Popular Question Nice Answer Popular Question Nice Answer Enlightened Nice Answer Nice Answer Socratic Notable Question Nice Answer Enlightened Popular Question Nice Answer Nice Answer Popular Question Good Question Notable Question Popular Question c# Nice Answer Popular Question Caucus Nice Answer Popular Question Famous Question Yearling Nice Question Great Answer Popular Question Enlightened Nice Answer Popular Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Popular Question Notable Question Good Answer Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Question Popular Question Popular Question Good Answer Notable Question Great Answer Nice Answer Nice Answer Enlightened Notable Question Famous Question Notable Question Good Answer Nice Answer Nice Answer Popular Question Guru Good Answer Good Answer Nice Answer Nice Answer Popular Question Nice Answer Enlightened Nice Answer Enlightened Census Nice Question Yearling Populist Nice Answer Enlightened Notable Question Nice Answer Nice Question Good Answer Popular Question Popular Question Nice Answer Popular Question Nice Answer Good Answer Nice Answer Enlightened function Notable Question Favorite Question Notable Question Nice Question Good Answer Good Answer Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 79446,915262,389557,Revival Necromancer Revival Yearling Scholar Student Critic Yearling Revival Nice Answer Popular Question Necromancer Caucus Necromancer Notable Question Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79447,111683,634309,Yearling,NULL,NULL,0,NULL,NULL 79448,34100,881212,Commentator Famous Question,NULL,NULL,0,NULL,NULL 79449,42294,546681,NULL,NULL,NULL,0,NULL,NULL 79450,3735205,704793,NULL,NULL,NULL,0,NULL,NULL 79451,609075,510768,NULL,NULL,NULL,0,NULL,NULL 79452,86521,232122,Good Answer Yearling Great Answer Nice Answer Yearling Great Answer Excavator Great Answer Notable Question,NULL,NULL,0,NULL,NULL 79453,1538849,473746,Popular Question Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79454,638348,789876,NULL,NULL,NULL,0,NULL,NULL 79455,3431555,948428,NULL,NULL,NULL,0,NULL,NULL 79456,9285,69379,Yearling Nice Answer Revival Yearling,NULL,NULL,0,NULL,NULL 79457,787784,1376707,Teacher Supporter Student Commentator,NULL,NULL,0,NULL,NULL 79458,1044068,975049,NULL,NULL,NULL,0,NULL,NULL 79459,5628787,975049,NULL,NULL,NULL,0,NULL,NULL 79460,288973,87055,Popular Question Civic Duty Yearling Caucus Constituent Documentation User Enthusiast Custodian Caucus Constituent Popular Question Nice Question,NULL,NULL,0,NULL,NULL 79461,3543,1115756,Revival Nice Answer,NULL,NULL,0,NULL,NULL 79462,270409,248356,NULL,NULL,NULL,0,NULL,NULL 79463,32740,576295,NULL,NULL,NULL,0,NULL,NULL 79464,918775,530121,NULL,NULL,NULL,0,NULL,NULL 79465,84546,762239,Nice Answer,NULL,NULL,0,NULL,NULL 79466,661060,1392453,Teacher Revival,NULL,NULL,0,NULL,NULL 79467,101813,1037920,NULL,NULL,NULL,0,NULL,NULL 79468,7901,918930,Supporter,NULL,NULL,0,NULL,NULL 79469,422642,382852,Yearling Notable Question Yearling javascript,NULL,NULL,0,NULL,NULL 79470,868932,165614,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79471,542524,471790,Popular Question Popular Question Curious Yearling Census Nice Question Popular Question,NULL,NULL,0,NULL,NULL 79472,628891,937430,Editor Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 79473,4403860,937430,Editor Student Supporter Popular Question,NULL,NULL,0,NULL,NULL 79474,363129,232686,NULL,NULL,NULL,0,NULL,NULL 79475,110665,961147,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79476,146122,779856,Tumbleweed Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79477,892915,995525,NULL,NULL,NULL,0,NULL,NULL 79478,506136,749067,Notable Question Critic Notable Question,NULL,NULL,0,NULL,NULL 79479,3059583,697690,Popular Question,NULL,NULL,0,NULL,NULL 79480,107189,167517,Yearling,NULL,NULL,0,NULL,NULL 79481,3933766,219939,Yearling Nice Answer Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 79482,901823,988297,NULL,NULL,NULL,0,NULL,NULL 79483,270241,724798,NULL,NULL,NULL,0,NULL,NULL 79484,253601,1034263,Yearling,NULL,NULL,0,NULL,NULL 79485,474523,647226,NULL,NULL,NULL,0,NULL,NULL 79486,6859566,1300258,NULL,NULL,NULL,0,NULL,NULL 79487,365501,1175549,NULL,NULL,NULL,0,NULL,NULL 79488,36099,1096210,NULL,NULL,NULL,0,NULL,NULL 79489,137840,555516,Curious Yearling Custodian Announcer Caucus,NULL,NULL,0,NULL,NULL 79490,2201007,759851,Notable Question Notable Question Popular Question Popular Question Yearling Custodian Notable Question Necromancer Caucus Nice Answer Famous Question Famous Question Yearling Nice Question Notable Question,NULL,NULL,0,NULL,NULL 79491,422269,6671,Yearling Popular Question Caucus Necromancer Nice Answer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 79492,571780,1378499,NULL,NULL,NULL,0,NULL,NULL 79493,27978,337540,Revival Notable Question,NULL,NULL,0,NULL,NULL 79494,52703,921921,NULL,NULL,NULL,0,NULL,NULL 79495,1287049,114389,Popular Question Notable Question Notable Question Famous Question Notable Question Self-Learner Popular Question Yearling Popular Question Good Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79496,10408,93300,Yearling Notable Question Famous Question Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 79497,20783,345182,Informed,NULL,NULL,0,NULL,NULL 79498,283662,1498373,NULL,NULL,NULL,0,NULL,NULL 79499,406413,465383,Popular Question Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79500,1012773,1401343,Critic,NULL,NULL,0,NULL,NULL 79501,111093,93688,Yearling,NULL,NULL,0,NULL,NULL 79502,8549298,1175766,Editor Informed Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79503,742347,1339506,NULL,NULL,NULL,0,NULL,NULL 79504,9556842,1339506,NULL,NULL,NULL,0,NULL,NULL 79505,434936,1239484,Revival Nice Answer Famous Question Popular Question Yearling Excavator Popular Question Notable Question Documentation User Census Necromancer Popular Question,NULL,NULL,0,NULL,NULL 79506,153343,786770,NULL,NULL,,0,, 79507,157080,484421,NULL,NULL,NULL,0,NULL,NULL 79508,2589272,434759,NULL,NULL,NULL,0,NULL,NULL 79509,3737847,434759,NULL,NULL,NULL,0,NULL,NULL 79510,112975,324846,Necromancer Student Yearling Nice Answer Announcer Custodian Citizen Patrol Revival Custodian,NULL,NULL,0,NULL,NULL 79511,715014,761362,NULL,NULL,NULL,0,NULL,NULL 79512,708376,647925,Supporter,NULL,NULL,0,NULL,NULL 79513,185208,1189776,Nice Answer Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 79514,72999,554460,Organizer Popular Question Notable Question Yearling Custodian Notable Question Notable Question Tumbleweed Popular Question Popular Question Yearling Revival,NULL,NULL,0,NULL,NULL 79515,741110,840318,Caucus Caucus Popular Question Nice Answer Excavator,NULL,NULL,0,NULL,NULL 79516,138232,1203761,Editor Student Scholar Supporter,NULL,NULL,0,NULL,NULL 79517,33761,307100,NULL,NULL,NULL,0,NULL,NULL 79518,112965,1245643,NULL,NULL,NULL,0,NULL,NULL 79519,103295,941045,Investor Popular Question Custodian Famous Question,NULL,NULL,0,NULL,NULL 79520,167079,940990,Notable Question Nice Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79521,10960398,940990,Notable Question Nice Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79522,11477,990920,NULL,NULL,NULL,0,NULL,NULL 79523,92356,1281980,Notable Question Popular Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Good Question Yearling Popular Question Necromancer Famous Question Good Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79524,480740,971039,NULL,NULL,NULL,0,NULL,NULL 79525,282805,259983,NULL,NULL,NULL,0,NULL,NULL 79526,735705,448449,Nice Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 79527,302972,598530,NULL,NULL,NULL,0,NULL,NULL 79528,36579,268774,Popular Question Yearling Good Question Yearling Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79529,1497818,429425,Commentator Nice Answer Revival Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 79530,530376,653192,Popular Question Popular Question Notable Question Critic Yearling Informed Autobiographer Nice Question Yearling Organizer Notable Question,NULL,NULL,0,NULL,NULL 79531,158972,350621,NULL,NULL,NULL,0,NULL,NULL 79532,70855,111995,Famous Question Great Answer Yearling Nice Answer Nice Answer Notable Question Autobiographer Famous Question Enlightened Announcer Yearling Revival Necromancer Announcer Great Answer Necromancer Guru Good Question Popular Question Popular Question Yearling Good Answer Necromancer Necromancer Necromancer Necromancer,NULL,pI found more generic deep merge algorithm href http www ruby forum com topic 142809 here and used it like so ppre codeclass Hash def deep merge second merger proc key v1 v2 Hash v1 amp amp Hash v2 v1 merge v2 amp merger v2 self merge second amp merger endenda deep merge code pre Note for arrays inside hash it just overwrites existing array value answer by for more sofisticated array handling,0,NULL,NULL 79533,2666584,655292,Scholar Promoter Student Citizen Patrol Benefactor,NULL,NULL,0,NULL,NULL 79534,198866,883281,NULL,NULL,NULL,0,NULL,NULL 79535,262087,612997,NULL,NULL,NULL,0,NULL,NULL 79536,542887,541068,Supporter Nice Question Popular Question,NULL,NULL,0,NULL,NULL 79537,1069128,467874,Notable Question Nice Question Popular Question Great Answer Famous Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Nice Question Good Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79538,9196599,467874,Notable Question Nice Question Popular Question Great Answer Famous Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Nice Question Good Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79539,326806,467874,Notable Question Nice Question Popular Question Great Answer Famous Question Popular Question Yearling Notable Question Notable Question Notable Question Notable Question Nice Question Good Question Yearling Famous Question Popular Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79540,103395,860382,Guru Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 79541,1206786,1172180,Popular Question Famous Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79542,465381,722110,NULL,NULL,NULL,0,NULL,NULL 79543,190829,1167620,NULL,NULL,NULL,0,NULL,NULL 79544,486794,242843,Editor Tumbleweed Enthusiast,NULL,NULL,0,NULL,NULL 79545,751535,486661,NULL,NULL,NULL,0,NULL,NULL 79546,5869778,1341596,Popular Question Curious Popular Question Notable Question Self-Learner Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79547,343025,1341596,Popular Question Curious Popular Question Notable Question Self-Learner Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79548,52367,565185,Commentator Custodian,NULL,NULL,0,NULL,NULL 79549,445237,665791,Nice Question Yearling Good Question Notable Question Notable Question Popular Question Popular Question Nice Question Famous Question Caucus Constituent Notable Question Popular Question Good Question Yearling Popular Question Popular Question Famous Question Famous Question Notable Question Documentation User Popular Question Inquisitive Notable Question Yearling Caucus Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 79550,205015,1315583,NULL,NULL,NULL,0,NULL,NULL 79551,28169,65047,NULL,NULL,NULL,0,NULL,NULL 79552,192960,1520775,Caucus Editor Caucus Necromancer,NULL,NULL,0,NULL,NULL 79553,238805,1555823,Guru Inquisitive Yearling Nice Question Popular Question c++ Popular Question Nice Question Nice Question Good Question Popular Question Popular Question Nice Question Popular Question Nice Question Popular Question Good Question Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Nice Question Notable Question Popular Question Popular Question Revival Popular Question Popular Question Nice Question Popular Question Necromancer Popular Question Popular Question Nice Answer Enlightened Yearling Popular Question Notable Question Popular Question Popular Question Necromancer Revival Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79554,1872101,961357,NULL,NULL,NULL,0,NULL,NULL 79555,1518772,1339618,NULL,NULL,NULL,0,NULL,NULL 79556,3723,1039742,Nice Answer Enlightened Tag Editor Yearling Civic Duty Revival,NULL,NULL,0,NULL,NULL 79557,29443,1033378,NULL,NULL,NULL,0,NULL,NULL 79558,151848,701237,Popular Question,NULL,NULL,0,NULL,NULL 79559,903937,606791,NULL,NULL,NULL,0,NULL,NULL 79560,359128,1392136,Popular Question Popular Question Popular Question Favorite Question Yearling Caucus Popular Question Popular Question Famous Question Caucus Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79561,413976,945882,NULL,NULL,NULL,0,NULL,NULL 79562,922304,1074136,NULL,NULL,NULL,0,NULL,NULL 79563,2337,308070,Critic,NULL,NULL,0,NULL,NULL 79564,641068,519067,Famous Question Yearling Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 79565,748396,836646,Good Answer Necromancer Popular Question Guru Yearling Popular Question Popular Question Revival Nice Answer Caucus Notable Question Constituent Nice Answer Enlightened Popular Question Nice Answer Great Answer Nice Answer Enlightened Notable Question Nice Answer Yearling Caucus Constituent Documentation User Famous Question Good Answer Notable Question Caucus Nice Answer Yearling Nice Answer Great Answer Necromancer,NULL,NULL,0,NULL,NULL 79566,9403,289317,Nice Answer Necromancer Nice Answer Popular Question Good Answer Yearling Necromancer Necromancer Necromancer Necromancer Pundit Nice Answer Necromancer Nice Answer Nice Answer Enlightened Caucus Necromancer Good Answer Populist Nice Answer Great Answer Notable Question Nice Answer Necromancer Yearling Tag Editor Strunk & White Necromancer Cleanup Nice Answer Necromancer Guru Documentation User Necromancer php Good Answer Yearling Nice Answer Revival Necromancer Necromancer Quorum Necromancer Announcer Good Answer Necromancer,NULL,pThis should always work even when code SERVER HTTPS code is undefined ppre codefunction isSecure return empty SERVER HTTPS amp amp SERVER HTTPS off SERVER SERVER PORT 443 code prepThe code is compatible with IIS ppFrom the href http www php net manual en reserved variables server php rel noreferrer PHP net documentation and user comments pblockquote p1 Set to non empty value if the script was queried through the HTTPS protocol p2 Note that when using ISAPI with IIS the value will be off if the request was not made through the HTTPS protocol Same behaviour has been reported for IIS7 running PHP as Fast CGI application blockquotepAlso Apache servers and broken installations might not have code SERVER HTTPS code defined even if connecting securely Although not guaranteed connections on port 443 are by href http tools ietf org html rfc2818 section rel noreferrer convention likely using href http en wikipedia org wiki Secure Sockets Layer rel noreferrer secure sockets hence the additional port check Interesting could you please tell what is the server pIn addition to codeautocomplete off code you could also have your form fields names be randomized by the code that generates the page perhaps by adding some session specific string to the end of the names ppWhen the form is submitted you can strip that part off before processing them on the server side This would prevent the web browser from finding context for your field and also might help prevent XSRF attacks because an attacker wouldn be able to guess the field names for form submission This solution may be dangerous because the browser would still save these values to some file such as formhistory sqlite just like the regular autocomplete values pTo complement Jon Lin answer here is no trailing slash technique that also works if the website is located in directory like example org blog ppre codeRewriteCond REQUEST FILENAME dRewriteCond REQUEST URI RewriteRule 301 code prep brFor the sake of completeness here is an alternative emphasizing that codeREQUEST URI code starts with slash at least in code htaccess code files ppre codeRewriteCond REQUEST FILENAME dRewriteCond REQUEST URI RewriteRule 301 lt added slash here too don forget it code prepJust strongdon use strong code REQUEST URI code Because in the root directory codeREQUEST URI code equals code code the leading slash and it would be misinterpreted as trailing slash pp brIf you are interested in more reading pulli href https github com laravel laravel pull 3145 rel noreferrer PR 3145 for Laravel lili href https github com laravel laravel commit 343c31e5dbb3f7ebd2f764721a8b0461792b2dc6 rel noreferrer discussion on commit 343c31e li ulp update this technique is now href https github com laravel laravel pull 4344 rel noreferrer implemented in Laravel had thought about this too Though the result is correct and considering it an edge case preferred code simplicity pTo complement Jon Lin answer here is no trailing slash technique that also works if the website is located in directory like example org blog ppre codeRewriteCond REQUEST FILENAME dRewriteCond REQUEST URI RewriteRule 301 code prep brFor the sake of completeness here is an alternative emphasizing that codeREQUEST URI code starts with slash at least in code htaccess code files ppre codeRewriteCond REQUEST FILENAME dRewriteCond REQUEST URI RewriteRule 301 lt added slash here too don forget it code prepJust strongdon use strong code REQUEST URI code Because in the root directory codeREQUEST URI code equals code code the leading slash and it would be misinterpreted as trailing slash pp brIf you are interested in more reading pulli href https github com laravel laravel pull 3145 rel noreferrer PR 3145 for Laravel lili href https github com laravel laravel commit 343c31e5dbb3f7ebd2f764721a8b0461792b2dc6 rel noreferrer discussion on commit 343c31e li ulp update this technique is now href https github com laravel laravel pull 4344 rel noreferrer implemented in Laravel Indeed it has been added to Laravel… finally Refs https github com laravel laravel pull 4344 Thanks for the notice,0,NULL,NULL 79567,1212193,1279300,Notable Question,NULL,NULL,0,NULL,NULL 79568,1327091,1461632,NULL,NULL,NULL,0,NULL,NULL 79569,132960,242056,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79570,64469,875523,NULL,NULL,NULL,0,NULL,NULL 79571,158292,137350,Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Guru Nice Answer Great Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Good Answer Great Answer Nice Answer Great Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Nice Answer iphone-sdk-3.0 Guru Nice Answer swift Great Answer Nice Answer Populist Guru Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Necromancer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Guru Great Answer Yearling Caucus Guru Good Answer Good Answer Nice Answer Nice Answer Enlightened Guru Populist Good Answer Good Answer Nice Answer Enlightened Good Answer Good Question Nice Answer Enlightened Great Answer Populist Yearling Nice Answer Nice Answer Enlightened Guru,NULL,NULL,0,NULL,NULL 79572,108819,439394,NULL,NULL,NULL,0,NULL,NULL 79573,157321,570166,NULL,NULL,NULL,0,NULL,NULL 79574,116043,180697,Notable Question Good Answer Nice Question Yearling Necromancer Yearling Nice Answer Yearling Popular Question,NULL,pThere race condition in all examples listed if there time change NTP or user modified the code will race and the clock is no longer monotonic ppThe correct implementation is ppre code include lt sys sysctl gt static int64 us since boot struct timeval boottime int mib CTL KERN KERN BOOTTIME size size sizeof boottime int rc sysctl mib amp boottime amp size NULL if rc return return int64 boottime tv sec 1000000 int64 boottime tv usec int64 us uptime int64 before now int64 after now struct timeval now after now us since boot do before now after now gettimeofday amp now NULL after now us since boot while after now before now return int64 now tv sec 1000000 int64 now tv usec before now code pre you re right It probably better to call it boot timestamp pThere race condition in all examples listed if there time change NTP or user modified the code will race and the clock is no longer monotonic ppThe correct implementation is ppre code include lt sys sysctl gt static int64 us since boot struct timeval boottime int mib CTL KERN KERN BOOTTIME size size sizeof boottime int rc sysctl mib amp boottime amp size NULL if rc return return int64 boottime tv sec 1000000 int64 boottime tv usec int64 us uptime int64 before now int64 after now struct timeval now after now us since boot do before now after now gettimeofday amp now NULL after now us since boot while after now before now return int64 now tv sec 1000000 int64 now tv usec before now code pre you re right CLOCK MONOTONIC RAW APPROX is probably the better API from performance perspective or CLOCK MONOTONIC RAW if you need the absolute accurate timestamp worked with high precision timestamps think one would be hard pressed to find scenario where RAW is the better choice It sounds like CLOCK MONOTONIC might still be affected by time frequency adjustements,1,NULL,Getting iOS system uptime that doesn pause when asleep ios kernel clock uptime pI looking for way to get an absolute always incrementing system uptime on iOS ppIt should return the time since the device was last rebooted and not be affected by changes to the system date ppAll the methods can find either pause when the device is asleep codeCACurrentMediaTime code code NSProcessInfo systemUptime code codemach absolute time code or are changed when the system date changes codesysctl KERN BOOTTIME code ppAny ideas pThere race condition in all examples listed if there time change NTP or user modified the code will race and the clock is no longer monotonic ppThe correct implementation is ppre code include lt sys sysctl gt static int64 us since boot struct timeval boottime int mib CTL KERN KERN BOOTTIME size size sizeof boottime int rc sysctl mib amp boottime amp size NULL if rc return return int64 boottime tv sec 1000000 int64 boottime tv usec int64 us uptime int64 before now int64 after now struct timeval now after now us since boot do before now after now gettimeofday amp now NULL after now us since boot while after now before now return int64 now tv sec 1000000 int64 now tv usec before now code pre 79575,452986,1176555,Famous Question Nice Question Teacher,NULL,NULL,0,NULL,NULL 79576,1107107,982887,NULL,NULL,NULL,0,NULL,NULL 79577,69314,1350426,NULL,NULL,NULL,0,NULL,NULL 79578,387534,815089,NULL,NULL,NULL,0,NULL,NULL 79579,221445,974891,NULL,NULL,NULL,0,NULL,NULL 79580,15162,694229,Yearling,NULL,NULL,0,NULL,NULL 79581,137206,1290192,Curious Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79582,481981,1111634,Necromancer,NULL,NULL,0,NULL,NULL 79583,300348,265634,Yearling Notable Question Nice Answer Enlightened Famous Question,NULL,NULL,0,NULL,NULL 79584,280838,570271,NULL,NULL,NULL,0,NULL,NULL 79585,6302110,522938,NULL,NULL,NULL,0,NULL,NULL 79586,415687,121883,NULL,NULL,NULL,0,NULL,NULL 79587,166224,118652,Yearling Yearling Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 79588,48587,397877,NULL,NULL,NULL,0,NULL,NULL 79589,9090237,387028,Good Answer Popular Question Yearling Necromancer Popular Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 79590,394875,387028,Good Answer Popular Question Yearling Necromancer Popular Question Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 79591,343793,1174076,Yearling Popular Question Popular Question Reviewer Famous Question Notable Question Custodian Nice Answer Enlightened Yearling Nice Question Revival Nice Answer Good Answer Popular Question Nice Answer Enlightened Popular Question Yearling Popular Question Nice Question Famous Question Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79592,216668,89159,Yearling Good Question Popular Question Popular Question Nice Question Popular Question Caucus Popular Question Yearling Good Answer Nice Question Notable Question Great Answer Caucus Custodian Yearling Notable Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 79593,402916,960827,Supporter,NULL,NULL,0,NULL,NULL 79594,162345,519306,NULL,NULL,NULL,0,NULL,NULL 79595,46124,288161,NULL,NULL,NULL,0,NULL,NULL 79596,65406,1057411,Yearling Notable Question Critic,NULL,NULL,0,NULL,NULL 79597,2469742,1408536,NULL,NULL,NULL,0,NULL,NULL 79598,814120,659684,NULL,NULL,NULL,0,NULL,NULL 79599,53553,343985,Yearling,NULL,NULL,0,NULL,NULL 79600,146303,53911,Yearling Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 79601,890468,780427,NULL,NULL,NULL,0,NULL,NULL 79602,20976,227698,Popular Question Good Question Notable Question Popular Question Notable Question Guru Notable Question Nice Answer Enlightened Good Answer Yearling Nice Question Famous Question Nice Answer Notable Question Good Answer Nice Question Famous Question Popular Question Nice Question Notable Question Good Answer Popular Question Documentation User Popular Question xcode Yearling Nice Question uitableview Popular Question Nice Question Popular Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 79603,1817318,826599,NULL,NULL,NULL,0,NULL,NULL 79604,68717,241895,NULL,NULL,NULL,0,NULL,NULL 79605,413067,891285,NULL,NULL,NULL,0,NULL,NULL 79606,579965,1526554,Famous Question,NULL,NULL,0,NULL,NULL 79607,368192,737525,Popular Question,NULL,NULL,0,NULL,NULL 79608,132624,195902,NULL,NULL,NULL,0,NULL,NULL 79609,236001,1136503,NULL,NULL,NULL,0,NULL,NULL 79610,309703,324790,Announcer Popular Question Commentator,NULL,NULL,1,NULL,Sampling unsigned integers from 1D texture using integer texture coordinates opengl glsl texture1d pI want to pass big array of codeunsigned short code tuples rect geometries to my Fragment Shader and be able to sample them as is using integer texture coordinates to do this trying with 1D texture as follows but get just blank values ppTexture creation and initialization ppre codeGLushort data 128 omitted array initializationGLuint tex glGenTextures amp tex glBindTexture GL TEXTURE 1D tex glTexParameteri GL TEXTURE 1D GL TEXTURE BASE LEVEL glTexParameteri GL TEXTURE 1D GL TEXTURE MAX LEVEL glTexImage1D GL TEXTURE 1D GL RG16UI 128 GL RG INTEGER GL UNSIGNED SHORT data code prepTexture passing to shader ppre codeint tex unit glActiveTexture GL TEXTURE0 tex unit glBindTexture GL TEXTURE 1D tex glUniform1iv loc amp tex unit code prepDebug fragment shader ppre code version 330 coreout vec4 out color uniform usampler1D tex void main uvec4 rect texelFetch tex 70 uint rect uint rect out color gt 0u vec4 vec4 code prepThings that work for sure non zero data in codedata code array texture image unit setup and sampler uniform initialization ppOpenGL OSX 10 11 El Capitan pAfter some googling and by trial and error discovered href https www opengl org discussion boards showthread php 183785 Integer Texture Filtering rel nofollow this post which states that with integer texture formats for example codeGL RG16UI code internal format codeGL LINEAR code filtering cannot be specified and only codeGL NEAREST code applies thus everything worked out with the following texture creation code ppre codeGLuint tex glGenTextures amp tex glBindTexture GL TEXTURE 1D tex glTexParameteri GL TEXTURE 1D GL TEXTURE MAG FILTER GL NEAREST glTexParameteri GL TEXTURE 1D GL TEXTURE MIN FILTER GL NEAREST glTexParameteri GL TEXTURE 1D GL TEXTURE BASE LEVEL glTexParameteri GL TEXTURE 1D GL TEXTURE MAX LEVEL glTexImage1D GL TEXTURE 1D GL RG16UI 128 GL RG INTEGER GL UNSIGNED BYTE data code pre 79611,3263909,1481607,NULL,NULL,NULL,0,NULL,NULL 79612,163460,1069647,NULL,NULL,NULL,0,NULL,NULL 79613,1442759,1069647,NULL,NULL,NULL,0,NULL,NULL 79614,238701,213529,Yearling Editor Necromancer Informed Self-Learner Yearling Caucus Nice Answer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79615,180751,232926,NULL,NULL,NULL,0,NULL,NULL 79616,1121966,721778,Notable Question,NULL,NULL,0,NULL,NULL 79617,65076,526775,NULL,NULL,NULL,0,NULL,NULL 79618,889552,1520964,Informed,NULL,NULL,0,NULL,NULL 79619,248157,234179,Notable Question Notable Question Famous Question Nice Answer Enlightened Nice Question Documentation User Yearling Nice Question Custodian Good Question,NULL,NULL,0,NULL,NULL 79620,452724,1447200,NULL,NULL,NULL,0,NULL,NULL 79621,986,531342,Necromancer karma-runner Yearling Nice Answer Nice Answer Good Answer Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 79622,268154,301848,Caucus Famous Question Nice Question Nice Question Yearling Famous Question Notable Question Famous Question,NULL,pGit supports this From the href https github com gitster git blob master Documentation RelNotes txt rel noreferrer release notes ppre git branch edit description can be used to add descriptive text to explain what topic branch is about prepYou can see that feature introduced back in September 2011 with commits href https github com git git commit 6f9a332144cda5f4d7e6e03c37fb17f8ffac1fe3 rel noreferrer 6f9a332 href https github com git git commit 739453a3fb74ade725243ac972f02ba1aedabdf6 rel noreferrer 739453a3 href https github com git git commit b7200e839737491dfe8f0297fba54621fd7d7583 rel noreferrer b7200e8 ppre codestruct branch desc cb const char config name const char value edit description code preblockquote pOpen an editor and edit the text to explain what the branch is for to be used by various other commands coderequest pull code blockquotepNote that it won work for detached HEAD branch ppThat description is used by the script request pull see href https github com git git commit c0168147831fce00975949213eef3471b7a2b76b rel noreferrer commit c016814783 but also href https github com git git commit 898eacd8ada2d012f977948350ed60845e238037 rel noreferrer codegit merge log code pblockquote href https github com git git blob master Documentation git request pull txt rel noreferrer coderequest pull code is script used to summarizes the changes between two commits to the standard output and includes the given URL in the generated summary blockquotep From Unfortunately you can push descriptions since they re stored in your config making it useless for the sake of documenting branches in team You can show description with little hack GIT EDITOR cat git branch edit description,0,NULL,NULL 79623,153688,1128564,Informed Autobiographer Student Scholar,NULL,NULL,0,NULL,NULL 79624,54549,1360886,NULL,NULL,NULL,0,NULL,NULL 79625,435592,422747,NULL,NULL,NULL,0,NULL,NULL 79626,10217,565716,NULL,NULL,NULL,0,NULL,NULL 79627,1977575,786102,Popular Question Self-Learner Notable Question Nice Answer Yearling Nice Answer Caucus Yearling Good Answer Pundit Custodian Enlightened Notable Question Yearling Necromancer Excavator,NULL,NULL,0,NULL,NULL 79628,444931,786102,Popular Question Self-Learner Notable Question Nice Answer Yearling Nice Answer Caucus Yearling Good Answer Pundit Custodian Enlightened Notable Question Yearling Necromancer Excavator,NULL,NULL,0,NULL,NULL 79629,720261,995380,NULL,NULL,NULL,0,NULL,NULL 79630,27084,304321,Famous Question Yearling Nice Question Notable Question Popular Question Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 79631,138511,172486,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79632,906006,891978,NULL,NULL,NULL,0,NULL,NULL 79633,81287,20326,NULL,NULL,NULL,0,NULL,NULL 79634,54446,450029,Citizen Patrol Editor,NULL,NULL,0,NULL,NULL 79635,75313,1311716,Editor Enthusiast Notable Question Necromancer Nice Answer Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 79636,47019,235600,ruby Notable Question Yearling Taxonomist Necromancer Notable Question Yearling Famous Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 79637,1169658,1011302,NULL,NULL,NULL,0,NULL,NULL 79638,312773,781743,Notable Question Famous Question Popular Question Notable Question Notable Question Nice Question Self-Learner Good Question Yearling Peer Pressure Nice Question Nice Question Favorite Question Caucus Constituent Popular Question Famous Question Famous Question Popular Question Enthusiast Popular Question Popular Question Popular Question Custodian Nice Question Yearling Famous Question Nice Answer Notable Question Popular Question Good Question Documentation User Custodian Popular Question Announcer Popular Question Nice Question Popular Question Caucus Notable Question Yearling Notable Question Notable Question Popular Question Notable Question,NULL,Variable number of arguments in variadic functions pHow can write function that accepts variable number of arguments Is this possible how ballo there is afaik no way to do it in in case you need forced argument type no construction like foo int values If you don care about types then yes variadic templates in 11 works great,0,NULL,NULL 79639,166939,1022854,NULL,NULL,NULL,0,NULL,NULL 79640,1504047,1142690,Popular Question,NULL,NULL,0,NULL,NULL 79641,261823,722658,Revival Necromancer Yearling Documentation User Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 79642,14446,1278899,Notable Question Yearling Self-Learner Popular Question Announcer Popular Question Necromancer Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 79643,69273,907356,Teacher Supporter Nice Answer Editor,NULL,NULL,0,NULL,NULL 79644,97056,718403,Nice Answer Enlightened Explainer Yearling Custodian Tenacious Enthusiast Yearling Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 79645,33035,935109,NULL,NULL,NULL,0,NULL,NULL 79646,1508199,1363956,NULL,NULL,NULL,0,NULL,NULL 79647,553798,1565832,Announcer Yearling Announcer Announcer,NULL,NULL,0,NULL,NULL 79648,1522171,861380,Editor Popular Question Popular Question Supporter Notable Question,NULL,NULL,0,NULL,NULL 79649,122315,404989,NULL,NULL,NULL,0,NULL,NULL 79650,226276,894108,Popular Question Commentator Yearling Caucus Notable Question,NULL,NULL,0,NULL,NULL 79651,770592,439723,NULL,NULL,NULL,0,NULL,NULL 79652,849859,1146500,NULL,NULL,NULL,0,NULL,NULL 79653,1573755,124115,Self-Learner Revival Yearling Popular Question Notable Question Popular Question Yearling Caucus Nice Answer Good Answer Yearling Custodian Nice Answer,NULL,NULL,0,NULL,NULL 79654,4413383,929240,NULL,NULL,NULL,0,NULL,NULL 79655,72358,1445272,NULL,NULL,NULL,0,NULL,NULL 79656,124835,105539,Organizer Notable Question Popular Question Notable Question Enthusiast Announcer Popular Question Necromancer Nice Answer Popular Question Announcer Popular Question Tag Editor Famous Question javascript Yearling Nice Answer Announcer Popular Question Famous Question Popular Question Notable Question Announcer Nice Question Notable Question Socratic Famous Question Notable Question Popular Question Nice Answer Famous Question Informed Popular Question Popular Question Nice Answer Necromancer Yearling Notable Question Popular Question Notable Question Notable Question Announcer Great Answer Nice Answer Popular Question Announcer Popular Question Necromancer Revival Announcer Necromancer Announcer Notable Question Popular Question Announcer Announcer Announcer Announcer php Popular Question Nice Question Necromancer Nice Question Popular Question Announcer Necromancer Yearling Nice Answer Announcer Nice Answer Popular Question Popular Question Announcer Good Answer Nice Answer Popular Question Announcer Necromancer Notable Question Popular Question Notable Question Nice Answer,NULL,pUse href http fi2 php net manual en function sprintf php rel noreferrer codesprintf code ppre codesprintf 08d 1234567 code prepAlternatively you can also use href http www php net manual en function str pad php rel noreferrer codestr pad code ppre codestr pad value STR PAD LEFT code pre Wanted to add that sprintf 03d 00 UTC where is 12 to 12 will print or as needed and will also put leading zeros for numbers less than digits Great for making timezone SELECT in HTML,1,NULL,Is there way to generate Braintree token without having to add PHP script to my server javascript php commerce braintree pCurrently my Javascript jQuery has to do the following in order to generate nonce to be used with my payment forms with Braintree ppre code lt script type text javascript gt jQuery document ready function get http me com braintree gen token php function sData var clientToken trim sData braintree setup clientToken custom id checkout lt script gt code prepThis requires that do an extra step on my server to create that token ppre code lt phperror reporting ALL ini set display errors On require once braintree lib Braintree php change me whether live or notBraintree Configuration environment sandbox change the next threeBraintree Configuration merchantId 4444hjxm5h27zxdb Braintree Configuration publicKey 444443c8qcf2wq5p Braintree Configuration privateKey 4444b76e4bbf8a6f03cb7ace0e812ba echo clientToken Braintree ClientToken generate code prepIs there way can skip the server step for that nonce ppEDIT Yes can also add this code to the top of the form page in the PHP section before HTML is displayed and have it set the token via code lt clientToken gt code That another way to do this pActually there is pp href https developers braintreepayments com guides authorization tokenization key javascript v2 rel nofollow https developers braintreepayments com guides authorization tokenization key javascript v2 ppYou login to your Braintree Dashboard then go to Account My User View Authorizations Tokenization Keys and click Generate New Tokenization Key This will give you hard coded one You can then switch your code like so ppre code lt script type text javascript gt function invalidForm use the Stripe or Braintree credit card form validator and any other form validations you want here Braintree https github com braintree card validator Stripe https github com stripe jquery payment return string value of the problem return jQuery document ready function FORM checkout append lt input type hidden id token name token gt var clientToken sandbox 555555 555555555555555 braintree setup clientToken custom id checkout onPaymentMethodReceived function paymentMethod Braintree docs fail to mention this happens only on form submit btnPurchase addClass disabled attr disabled var sErr invalidForm if sErr alert sErr obviously do something better than this btnPurchase removeClass disabled removeAttr disabled return false else token val paymentMethod nonce FORM checkout submit return true lt script gt code prepNow on the receiving end of your form post you can process code POST token code instead of code POST payment method nonce code but it the same thing just named differently Note that you shouldn change the field name to payment method nonce because for some odd reason the Braintree API erases the value ppNote in your question you had it wrong because you were going to submit the form without client side card validation So see the comment above and use either the Stripe or Braintree Javascript code that validates credit card ppNote that your credit card form must not have name attributes on these fields Cardholder Name Credit Card Number Expiration Date MM YY or CVV CVC If you did then you will require PCI compliance which is pain Instead you must use these attributes on those fields ppre codedata braintree name cardholder name data braintree name number data braintree name expiration date data braintree name cvv code prepOn the server you then do the charge like the following My example below requires you to change it as necessary such as receiving POST fields for name email phon billing and shipping instead of hard coding them ppre code lt phperror reporting ALL ini set display errors On header Content Type text plain sToken POST token require once braintree lib Braintree php modify if going liveBraintree Configuration environment sandbox change the next three per your configurationBraintree Configuration merchantId 4444hjxm5h27zxdb Braintree Configuration publicKey 444443c8qcf2wq5p Braintree Configuration privateKey 4444b76e4bbf8a6f03cb7ace0e812ba result Braintree Transaction sale paymentMethodNonce gt sToken amount gt 100 00 currency not required because it determined by the merchant account settings customer gt firstName gt John lastName gt Doe phone gt 614 111 2222 email gt example com billing gt firstName gt John lastName gt Doe streetAddress gt 100 Main Street extendedAddress gt Apt locality gt Columbus region gt OH postalCode gt 43085 countryCodeAlpha2 gt US shipping gt firstName gt John lastName gt Doe streetAddress gt 100 Main Street extendedAddress gt Apt locality gt Columbus region gt OH postalCode gt 43085 countryCodeAlpha2 gt US options gt submitForSettlement gt TRUE print result code pre Braintree dropin form issue nonce string not being generated javascript html asp net mvc forms braintree pI trying to use the href https developers braintreepayments com start hello client javascript v2 demo rel nofollow noreferrer dropin form from braintree but it produces weird behaviour ppI can successfully place the form in view ppre code lt form id createTransactionForm method post action gt lt div id payment form gt lt div gt lt input type submit value Test Pay gt lt form gt lt script gt var braintreeToken Raw Json Encode Model brainTreeToken braintree setup braintreeToken dropin container payment form code prepHere the result pp href https stack imgur com Fbf10 png rel nofollow noreferrer img src https stack imgur com Fbf10 png alt Braintree DropIn UI Form ppThey state in their href https developers braintreepayments com start hello client javascript v2 send payment method nonce to server rel nofollow noreferrer documentation 3rd paragraph that codebraintree js will add hidden input named payment method nonce to your form code ppOn my controller got the action method to catch the form collection and there codepayment method nonce code key in the form collection with an empty string as value but no other keys no other form fields are caught here was expecting the card number and the expiration date as seen in the picture above ppUsing the inspector see that the braintree dropin cretes an HTML structure with nested forms pp href https stack imgur com l2AWG png rel nofollow noreferrer img src https stack imgur com l2AWG png alt Nested forms ppMy question is how can use the braintree dropin form and catch all their form input values in the action method ph1EDIT h1pOK so thanks to learned that don need to catch the CC values in the controller method just the nonce string that supposedly generated from them However am getting an empty string ppFrom his suggestion tried to add to the form specific value for the action attribute ppre code lt form id createTransactionForm method post action Action MyMethod MyController gt code prepBut the result is the same an empty string for the nonce pWhen you get an empty nonce was having the same trouble However in my case was doing custom instead of dropin did lots of tests in all kinds of scenarios such as creating static tokenization token from the dashboard or generating one on the fly when the page loaded They have some anti fraud measures in place suspect and it creates odd scenarios where the form submits no matter what even if form validation routines fail Or the form submits and you get no nonce The docs are also extremely confusing on this So this is the fix that finally got going href https developers braintreepayments com reference client reference javascript v2 configuration rel nofollow What they don tell you in the docs is that the codeonPaymentMethodReceived code is only called on form submit operation The other remarkable discovery made was that if use the following code and add code lt input type hidden name payment method nonce id payment method nonce gt code to the form and then replace the code token code line below with call to update the codepayment method nonce code hidden field the Braintree API erases it right before form submit So the fix on that is to rename that hidden field to token and then on the form submit code in PHP can process code POST token code instead of code POST payment method nonce code but treat it like nonce ppre codefunction invalidForm use the Stripe or Braintree credit card form validator and any other form validations you want here Braintree https github com braintree card validator Stripe https github com stripe jquery payment return string value of the problem return jQuery document ready function FORM checkout append lt input type hidden id token name token gt Generate the static client token from your dashboard gt Account gt My User gt Authorizations gt Tokenization Keys var clientToken sandbox 555555 555555555555 braintree setup clientToken custom id checkout onPaymentMethodReceived function paymentMethod btnPurchase addClass disabled attr disabled var sErr invalidForm if sErr alert sErr obviously do something better than this btnPurchase removeClass disabled removeAttr disabled return false else token val paymentMethod nonce FORM checkout submit return true code pre 79657,1123153,4206,Custodian Popular Question Popular Question java Yearling Popular Question Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 79658,7121125,4206,Custodian Popular Question Popular Question java Yearling Popular Question Custodian Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 79659,1530519,150126,Popular Question Custodian Critic Guru Commentator Caucus Constituent,NULL,NULL,0,NULL,NULL 79660,1142147,661229,Yearling Revival Revival Nice Answer Enlightened Necromancer Great Answer Popular Question Yearling Nice Answer Custodian Necromancer Necromancer Caucus Enthusiast Nice Answer Notable Question Necromancer Yearling Nice Answer Good Answer Populist Custodian Custodian,NULL,NULL,0,NULL,NULL 79661,38990,764308,Curious Popular Question,NULL,NULL,0,NULL,NULL 79662,249263,973740,Civic Duty Steward Yearling Caucus Constituent Steward Guru Caucus Constituent Yearling Documentation User Nice Answer Census Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 79663,294902,852334,Necromancer Yearling Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79664,140146,197789,Custodian Necromancer Yearling Guru Custodian Necromancer Announcer Nice Answer Announcer Yearling Great Answer Good Answer Announcer Yearling,NULL,NULL,0,NULL,NULL 79665,213322,82322,Favorite Question Yearling Good Answer Good Answer Famous Question Nice Answer Nice Answer Good Question Yearling Great Question Nice Answer Famous Question Favorite Question Good Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Favorite Question Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 79666,8331,254973,Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Caucus Constituent Popular Question Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Census Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Announcer Caucus Announcer Constituent Nice Answer Enlightened Announcer Announcer Good Answer Announcer Yearling Nice Answer Enlightened Nice Answer Enlightened Caucus Guru Nice Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 79667,232992,1221402,NULL,NULL,NULL,0,NULL,NULL 79668,98377,1332764,Necromancer Great Answer Yearling Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 79669,12717,113683,Custodian Notable Question Yearling Popular Question Yearling Caucus Popular Question Popular Question Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 79670,1088506,144746,Popular Question Nice Question Popular Question Popular Question Nice Answer Popular Question Nice Question Good Answer algorithm Popular Question Yearling Notable Question Good Answer Notable Question Cleanup Nice Answer Popular Question java Nice Answer Enlightened Revival Popular Question Nice Answer Notable Question Caucus Nice Answer Good Answer Nice Answer Good Answer Notable Question Guru Notable Question Nice Answer Good Answer Popular Question Nice Answer Notable Question Nice Answer Great Answer Caucus Yearling Notable Question Nice Answer Notable Question Popular Question Nice Answer Nice Answer Enlightened Popular Question Popular Question Notable Question Guru Popular Question Nice Question Notable Question Nice Question Caucus Notable Question Good Question Famous Question Notable Question Nice Question Popular Question Popular Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79671,610180,829811,Yearling Enlightened Nice Answer Good Answer Yearling Nice Answer Enlightened Popular Question Guru Good Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79672,361545,1169032,NULL,NULL,NULL,0,NULL,NULL 79673,314363,900927,Nice Answer,NULL,NULL,0,NULL,NULL 79674,203933,1132467,Popular Question Tumbleweed Notable Question Student,NULL,NULL,0,NULL,NULL 79675,31557,561790,NULL,NULL,NULL,0,NULL,NULL 79676,121506,35719,Notable Question,NULL,NULL,0,NULL,NULL 79677,152807,515806,Notable Question,NULL,NULL,0,NULL,NULL 79678,289751,1077295,NULL,NULL,NULL,0,NULL,NULL 79679,262051,991471,NULL,NULL,NULL,0,NULL,NULL 79680,497429,546115,Tumbleweed Notable Question Promoter Benefactor Popular Question Popular Question Self-Learner,NULL,NULL,1,URL path for multi language spring spring mvc internationalization pI have the existing web app Spring MVC need to make i18n for all the contents ppThe requirement for managing the language is to use language code directly in the URL So for existing URL ppre codehttp example com product1 code prepI will need to create emvirtual em URLs like ppre codehttp example com EN product1http example com FR product1 code prepI investigating the different option to achieve this One dirty solution found is to use the interceptor which will check the language code in the URL removing the language code to make valid URL and set the Redirect But it so ugly ppWhat is the best approach to implement this,NULL 79681,52418,213804,Famous Question Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79682,35696,1169620,NULL,NULL,NULL,0,NULL,NULL 79683,140430,504500,sphinx Good Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 79684,755062,285205,NULL,NULL,NULL,0,NULL,NULL 79685,69092,70896,NULL,NULL,NULL,0,NULL,NULL 79686,505246,427225,Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened android Nice Answer Yearling Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Enlightened wpf Yearling Nice Answer Good Answer Announcer Announcer Yearling Announcer Announcer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79687,2867596,1072626,Notable Question Popular Question Guru Notable Question Notable Question Popular Question Announcer Popular Question Nice Answer Nice Question Popular Question Caucus Nice Question Nice Answer Popular Question Yearling Custodian Nice Question Peer Pressure Announcer Notable Question Explainer Census Necromancer Quorum Notable Question Custodian Nice Answer Announcer Popular Question Fanatic c# Nice Question Famous Question Famous Question Announcer Good Answer Inquisitive Caucus Constituent Announcer Announcer Necromancer Famous Question Nice Answer Popular Question Nice Answer Notable Question Announcer Yearling Great Answer Necromancer Necromancer Popular Question Census Good Answer Popular Question Tag Editor Popular Question Revival Caucus Announcer Notable Question Nice Question Nice Answer Notable Question Popular Question Popular Question Revival Notable Question Nice Answer Yearling,NULL,Simple file server to serve current directory python ruby perl node js shell pI looking for dead simple bin that can launch up in the shell and have it serve the current directory preferably not with maybe code code for specifying port As it should be development server it should by default allow connections from localhost only maybe with an option to specify otherwise The simpler the better ppNot sure which tags to use here Questions about software tools commonly used by programmers are on topic When you do web development and even other types of development nowadays you end up needing to access local files via HTTP Perhaps this is still off topic because it is asking for tool recommendation but disagree on the closure reason given pGiven that JSON and YAML are pretty similar beasts you could make use of href http json schema org JSON Schema to validate sizable subset of YAML Here code snippet you ll need href http pyyaml org wiki PyYAML PyYAML and href https github com Julian jsonschema jsonschema installed ppre codefrom jsonschema import validateimport yamlschema type objectproperties testing type array items enum this is test good instance testing this is test validate yaml load good instance yaml load schema passes Now let try bad instance bad instance testing this is bad test validate yaml load bad instance yaml load schema Fails with ValidationError bad is not one of this is test Failed validating enum in schema properties testing items enum this is test On instance testing bad code prepOne problem with this is that if your schema spans multiple files and you use code ref code to reference the other files then those other files will need to be JSON think But there are probably ways around that In my own project playing with specifying the schema using JSON files whilst the instances are YAML built website to track tooling support for to using JSON Schema with YAML https json schema everywhere github io yaml Currently there is editor support in Visual Studio Code via extension and command line validation tool,0,NULL,NULL 79688,781512,1407768,Popular Question,NULL,NULL,0,NULL,NULL 79689,136518,446535,Notable Question,NULL,NULL,0,NULL,NULL 79690,1563643,1499795,NULL,NULL,NULL,0,NULL,NULL 79691,207037,231402,Yearling Nice Question Famous Question Famous Question,NULL,NULL,0,NULL,NULL 79692,34878,223876,Popular Question Popular Question Nice Question Famous Question Popular Question Popular Question Popular Question Famous Question Nice Question Famous Question Good Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79693,898624,1043171,NULL,NULL,NULL,0,NULL,NULL 79694,201107,1264131,Teacher,NULL,NULL,0,NULL,NULL 79695,1091668,1453592,NULL,NULL,NULL,0,NULL,NULL 79696,1507757,849968,NULL,NULL,NULL,0,NULL,NULL 79697,303574,670908,NULL,NULL,NULL,0,NULL,NULL 79698,8550,212158,NULL,NULL,NULL,0,NULL,NULL 79699,2988162,212158,NULL,NULL,NULL,0,NULL,NULL 79700,889565,1180920,NULL,NULL,NULL,0,NULL,NULL 79701,315387,1180920,NULL,NULL,NULL,0,NULL,NULL 79702,118729,369348,Yearling Necromancer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79703,268786,482636,NULL,NULL,NULL,0,NULL,NULL 79704,245408,672752,Notable Question Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 79705,543540,1548163,NULL,NULL,NULL,0,NULL,NULL 79706,206348,993557,NULL,NULL,NULL,0,NULL,NULL 79707,110827,6254,Nice Question Notable Question Popular Question Yearling Notable Question Good Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Caucus Yearling Nice Question Custodian Yearling Favorite Question,NULL,NULL,0,NULL,NULL 79708,5064368,501319,NULL,NULL,NULL,0,NULL,NULL 79709,517492,1230551,NULL,NULL,NULL,0,NULL,NULL 79710,850558,1160013,NULL,NULL,NULL,0,NULL,NULL 79711,790740,405120,Yearling Editor Excavator Nice Answer Necromancer Yearling Great Answer Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 79712,120459,1134282,NULL,NULL,NULL,0,NULL,NULL 79713,33356,1201790,Scholar,NULL,NULL,0,NULL,NULL 79714,134398,426880,NULL,NULL,NULL,0,NULL,NULL 79715,1734154,422093,NULL,NULL,NULL,0,NULL,NULL 79716,57004,18642,Popular Question Nice Answer Notable Question Notable Question Famous Question Yearling Popular Question Notable Question Nice Answer Notable Question Yearling Notable Question Good Answer Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79717,250965,72944,Civic Duty Benefactor Popular Question Informed Popular Question Caucus Documentation User Popular Question Census Yearling Revival Popular Question Necromancer Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 79718,292838,1048499,NULL,NULL,NULL,0,NULL,NULL 79719,233709,202840,NULL,NULL,NULL,0,NULL,NULL 79720,254759,1103944,NULL,NULL,NULL,0,NULL,NULL 79721,355085,1273883,NULL,NULL,NULL,0,NULL,NULL 79722,908781,1335012,NULL,NULL,NULL,0,NULL,NULL 79723,78612,382736,Yearling Revival Explainer Caucus Popular Question Yearling Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 79724,1041234,331468,NULL,NULL,NULL,0,NULL,NULL 79725,374499,247198,NULL,NULL,NULL,0,NULL,NULL 79726,172168,185762,NULL,NULL,NULL,0,NULL,NULL 79727,691900,1496069,NULL,NULL,NULL,0,NULL,NULL 79728,39122,687098,NULL,NULL,NULL,0,NULL,NULL 79729,2020398,687098,NULL,NULL,NULL,0,NULL,NULL 79730,274725,1312271,NULL,NULL,NULL,0,NULL,NULL 79731,215932,99219,Teacher Informed Editor,NULL,NULL,0,NULL,NULL 79732,183314,842411,Popular Question Famous Question Popular Question Caucus Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79733,156855,504041,NULL,NULL,NULL,0,NULL,NULL 79734,100704,1275808,NULL,NULL,NULL,0,NULL,NULL 79735,306367,622619,Yearling Nice Answer Nice Answer Yearling Census Caucus Popular Question Good Answer,NULL,NULL,0,NULL,NULL 79736,3376572,332899,NULL,NULL,NULL,0,NULL,NULL 79737,4619802,1022142,NULL,NULL,NULL,0,NULL,NULL 79738,103688,1022142,NULL,NULL,NULL,0,NULL,NULL 79739,708913,574309,NULL,NULL,NULL,0,NULL,NULL 79740,535355,491940,NULL,NULL,NULL,0,NULL,NULL 79741,114453,571858,NULL,NULL,NULL,0,NULL,NULL 79742,203982,596946,Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 79743,333586,983928,Editor Yearling Caucus Caucus Caucus Necromancer,NULL,NULL,0,NULL,NULL 79744,88794,130910,Nice Answer Notable Question Announcer Necromancer Yearling Nice Answer Necromancer Custodian Popular Question Pundit Announcer Good Answer Popular Question Revival Nice Answer Popular Question Yearling Notable Question Notable Question Notable Question Necromancer Nice Answer Notable Question Notable Question Yearling Good Answer Necromancer Nice Answer,NULL,pTaken from the href http manpages ubuntu com manpages precise en man1 cp html rel noreferrer man page ppre code no clobber do not overwrite an existing file overrides previous option code prepExample ppre codecp myoldfile txt mycopiedfile txt code pre rsync is slow though https unix stackexchange com questions 91382 rsync is very slow factor to 10 compared to cp on copying files from nfs sha Git refname master is ambiguous git pI ve looked at all of the other ambiguous refname questions and none of them seem to help Why am getting this warning ppre code git checkout masterwarning refname master is ambiguous git show ref mastereef61c00da690f093063ac5a728e22fd21648104 refs heads master git branch checkers exercises master git remote code pre method of preventing this is to develop convention in your codebase org that ensures you never create overlapping refs use the following For non origin local branches use local remote master For release branches and tags use something like release for release branches git flow feature freeze and release tag for tagging deployed released code and to disallow naming branch release release tag or the name of an origin,1,NULL,window not defined error when using extract text webpack plugin React reactjs webpack pI using webpack to build my react components and trying to use the codeextract text webpack plugin code to separate my css from my generated js file However when attempt to build the component get the following error codeModule build failed ReferenceError window is not defined code ppMy webpack config js file looks like this ppre class lang js prettyprint override codevar webpack require webpack var ExtractTextPlugin require extract text webpack plugin module exports entry MainComponent src main js output libraryTarget var library MainComponent path build filename name js module loaders test css loader ExtractTextPlugin extract style loader css loader plugins new ExtractTextPlugin styles css code pre pDidn see an explanation of the cause so have posted this answer here ppFrom href https github com webpack extract text webpack plugin api https github com webpack extract text webpack plugin api pblockquote codeExtractTextPlugin extract notExtractLoader loader options code Creates an extracting loader from an existing loader codenotExtractLoader code optional the loader that should be used when the css is not extracted in an additional chunk when allChunks false codeloader code the loader that should be used for converting the resource to css exporting module codeoptions code codepublicPath code override the publicPath setting for this loader blockquotepThe code extract code method should receive loader that outputs codecss code What was happening was that it was receiving codestyle loader code which outputs emjavascript code em which is intended to be injected into webpage This code would try to access codewindow code ppYou should not pass loader string with codestyle code to code extract code However if you set codeallChunks false code then it will not build CSS files for non initial chunks Therefore it needs to know what loader to use to inject into the page ppTip Webpack is tool that really needs to be understood in depth or you can run into lots of strange issues 79745,578395,1025872,NULL,NULL,NULL,0,NULL,NULL 79746,1022901,191914,Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 79747,394923,516292,NULL,NULL,NULL,0,NULL,NULL 79748,476179,1329815,NULL,NULL,NULL,0,NULL,NULL 79749,219830,684128,Promoter Student Nice Question Yearling Nice Answer Enlightened Caucus Constituent Custodian Custodian Scholar Yearling Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 79750,13619,1154512,NULL,NULL,NULL,0,NULL,NULL 79751,475082,1313586,NULL,NULL,NULL,0,NULL,NULL 79752,278346,857525,Nice Answer Enlightened Revival Census Excavator,NULL,NULL,0,NULL,NULL 79753,186959,147427,Notable Question Famous Question Yearling Good Answer Yearling Good Answer Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 79754,70335,10511,Popular Question Notable Question Tumbleweed Documentation User Notable Question,NULL,NULL,0,NULL,NULL 79755,702732,1475939,NULL,NULL,NULL,0,NULL,NULL 79756,158351,62715,Informed,NULL,NULL,0,NULL,NULL 79757,15630,977052,Nice Answer Enlightened Necromancer common-lisp Yearling Yearling Nice Answer Enlightened Nice Answer Nice Answer Yearling Revival,NULL,NULL,0,NULL,NULL 79758,641293,1317490,NULL,NULL,NULL,0,NULL,NULL 79759,144532,99256,Nice Answer Notable Question Nice Answer Custodian Popular Question Good Question Popular Question Famous Question Nice Question Necromancer Nice Question Yearling Nice Question Nice Question Notable Question Nice Answer Enlightened Notable Question Popular Question Nice Answer Necromancer Popular Question Nice Answer Famous Question Nice Question Nice Answer Nice Answer Popular Question Revival Notable Question Famous Question Popular Question Popular Question Necromancer Popular Question Popular Question Notable Question Famous Question Caucus Good Question Notable Question Nice Answer Nice Question Revival Notable Question Good Question Popular Question Notable Question Nice Answer Enlightened Famous Question Good Answer Popular Question Nice Question Popular Question Good Question Nice Question Notable Question Notable Question Famous Question Nice Question Yearling Good Answer Notable Question Famous Question Announcer Popular Question Caucus Good Answer Notable Question Nice Answer Archaeologist Popular Question Popular Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer typescript Nice Question Popular Question Nice Answer Enlightened Popular Question Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Popular Question Nice Question Caucus Constituent Famous Question Nice Answer Enlightened Yearling Good Answer Popular Question Popular Question Announcer Good Answer,NULL,NULL,0,NULL,NULL 79760,39550,1507762,NULL,NULL,NULL,0,NULL,NULL 79761,454003,179697,Necromancer Populist Yearling Necromancer,NULL,NULL,0,NULL,NULL 79762,194356,842168,NULL,NULL,NULL,0,NULL,NULL 79763,147086,744656,NULL,NULL,NULL,0,NULL,NULL 79764,55411,771589,Curious Yearling Popular Question Revival Yearling Caucus Famous Question Census Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 79765,542740,147510,Census,NULL,NULL,0,NULL,NULL 79766,67148,237188,Investor Necromancer Revival Nice Answer Yearling Necromancer Revival Civic Duty Nice Answer Yearling Guru Good Answer Necromancer,NULL,NULL,0,NULL,NULL 79767,81022,580048,NULL,NULL,NULL,0,NULL,NULL 79768,56007,185585,Populist Good Answer Yearling,NULL,NULL,0,NULL,NULL 79769,253837,609945,Scholar Supporter,NULL,NULL,0,NULL,NULL 79770,370156,387041,Good Answer Yearling Yearling Popular Question Popular Question Nice Answer Enlightened Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79771,395035,725007,Supporter,NULL,NULL,0,NULL,NULL 79772,45540,246098,Good Answer Yearling Yearling Suffrage Civic Duty,NULL,NULL,0,NULL,NULL 79773,520104,1558432,NULL,NULL,NULL,0,NULL,NULL 79774,255351,1161440,NULL,NULL,NULL,0,NULL,NULL 79775,70409,195713,Yearling,NULL,NULL,0,NULL,NULL 79776,421014,1078119,NULL,NULL,NULL,0,NULL,NULL 79777,1095254,1276731,Supporter Nice Answer,NULL,NULL,0,NULL,NULL 79778,50230,206020,Nice Answer Enlightened Notable Question Yearling Nice Answer Caucus Yearling Good Question Guru Yearling,NULL,NULL,0,NULL,NULL 79779,8333618,1186820,NULL,NULL,NULL,0,NULL,NULL 79780,495926,1316789,NULL,NULL,NULL,0,NULL,NULL 79781,2360485,702772,Citizen Patrol Yearling Necromancer Popular Question Caucus Nice Answer Yearling Necromancer Yearling,NULL,NULL,0,NULL,NULL 79782,80531,445161,NULL,NULL,NULL,0,NULL,NULL 79783,660973,983370,Informed Teacher Autobiographer Tumbleweed Revival Necromancer Investor Altruist Nice Answer Yearling Caucus Good Answer Yearling Custodian Guru Yearling Promoter Student Commentator Yearling,NULL,NULL,0,NULL,NULL 79784,10296553,117193,Great Question Yearling Great Answer Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79785,16473,117193,Great Question Yearling Great Answer Yearling Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 79786,69590,412867,Necromancer Popular Question Caucus,NULL,NULL,0,NULL,NULL 79787,291251,1273950,NULL,NULL,NULL,0,NULL,NULL 79788,1049129,131458,Yearling c# Great Question Nice Answer Custodian Yearling Favorite Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79789,892990,895284,NULL,NULL,NULL,0,NULL,NULL 79790,409532,395591,NULL,NULL,NULL,0,NULL,NULL 79791,762020,61825,NULL,NULL,NULL,0,NULL,NULL 79792,34238,678705,NULL,NULL,NULL,0,NULL,NULL 79793,113551,7883,Famous Question Notable Question Notable Question Famous Question Good Question Favorite Question Good Question Favorite Question Famous Question Yearling Great Question Notable Question Notable Question Notable Question Popular Question Promoter Custodian Benefactor Notable Question Favorite Question Nice Question Yearling Stellar Question Popular Question Famous Question Caucus Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79794,435535,433386,Great Answer Tumbleweed Popular Question Nice Question Famous Question Yearling Notable Question Favorite Question Notable Question Yearling Great Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 79795,465141,1366535,Editor Popular Question,NULL,NULL,0,NULL,NULL 79796,312656,929777,NULL,NULL,NULL,0,NULL,NULL 79797,49951,366634,Popular Question Notable Question Caucus Popular Question Popular Question Necromancer Notable Question Caucus Popular Question Yearling,NULL,NULL,1,setlocale stuck on Windows windows visual studio winapi codesetlocale LC ALL uk UA code sometimes hangs deadlocks for me with unknown reason Call stack is ppre codentdll dll ZwWaitForSingleObject Unknownntdll dll RtlpWaitOnCriticalSection Unknownntdll dll RtlEnterCriticalSection Unknownntdll dll LdrpLoadDll Unknownntdll dll LdrLoadDll UnknownKernelBase dll LoadLibraryExW Unknownucrtbased dll crt findfile traits get invalid value void Unknownucrtbased dll acrt lock and call lt class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt gt enum acrt lock id class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt amp amp Unknownucrtbased dll acrt lock and call lt class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt gt enum acrt lock id class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt amp amp Unknownucrtbased dll acrt lock and call lt class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt gt enum acrt lock id class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt amp amp Unknownucrtbased dll acrt lock and call lt class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt gt enum acrt lock id class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt amp amp Unknownucrtbased dll acrt lock and call lt class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt gt enum acrt lock id class lt lambda a463b7b0560cfcaf9b17f27c6ef46564 gt amp amp Unknownucrtbased dll acrt can use vista locale apis Unknownucrtbased dll expandlocale Unknownucrtbased dll wsetlocale Unknownucrtbased dll crt call and cleanup lt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt gt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt amp amp class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt amp amp Unknownucrtbased dll crt seh guarded call lt void gt operator lt class lt lambda 0f92d0c5a8007722f95b3b6c71cd8e3e gt class lt lambda 321f9d61c14d59ff00145e45db1313e0 gt amp class lt lambda 3298c911d7b53f44106027a7fde9a80a gt gt class lt lambda 0f92d0c5a8007722f95b3b6c71cd8e3e gt amp amp class lt lambda 321f9d61c14d59ff00145e45db1313e0 gt amp class lt lambda 3298c911d7b53f44106027a7fde9a80a gt amp amp Unknownucrtbased dll acrt lock and call lt class lt lambda 321f9d61c14d59ff00145e45db1313e0 gt gt enum acrt lock id class lt lambda 321f9d61c14d59ff00145e45db1313e0 gt amp amp Unknownucrtbased dll crt call and cleanup lt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt gt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt amp amp class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt amp amp Unknownucrtbased dll crt seh guarded call lt void gt operator lt class lt lambda 507d9fd6b66e39451a8852ba73f804a7 gt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt amp class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt amp gt class lt lambda 507d9fd6b66e39451a8852ba73f804a7 gt amp amp class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt amp class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt amp Unknownucrtbased dll crt call and cleanup lt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt gt class lt lambda 565169b3e3b494427ce1bebdd17b54ac gt amp amp class lt lambda f51fe5fd7c79a33db34fc9310f277369 gt amp amp Unknownucrtbased dll wsetlocale Unknownucrtbased dll acrt update multibyte info Unknownucrtbased dll setlocale Unknown code prepSometimes it works but sometimes it never returns from it can not identify the reason use Visual Studio 2015 and Windows,NULL 79798,43076,307611,Nice Question Popular Question Yearling Nice Question Yearling Popular Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 79799,64136,715248,NULL,NULL,NULL,0,NULL,NULL 79800,26824,1375553,Nice Question Revival Nice Answer Enlightened Announcer google-maps Nice Answer Good Answer Necromancer Revival Nice Answer Enlightened sharepoint-2010 Necromancer Revival Famous Question Necromancer Nice Answer Yearling Nice Answer Nice Answer Revival Revival Popular Question Revival rest Revival Revival Necromancer Revival Revival angularjs Revival javascript Necromancer Caucus Revival Constituent Good Answer Good Question Necromancer Revival Necromancer google-maps-api-3 Necromancer Good Answer Popular Question Nice Answer Revival jquery Nice Answer Yearling Revival Necromancer Necromancer Nice Answer Nice Answer Announcer Necromancer Revival c# Necromancer google-visualization Nice Answer Caucus Announcer Revival Necromancer Revival Documentation User Nice Answer Necromancer Enlightened Nice Answer Nice Answer Necromancer Nice Answer Census Notable Question Revival Necromancer Revival Necromancer office365 Nice Answer Enlightened Caucus Constituent Yearling Revival Nice Answer Enlightened sharepoint-online Announcer sharepoint-2013 Necromancer Revival Announcer Revival Nice Answer Enlightened Revival Good Answer sharepoint Necromancer Necromancer Nice Answer Enlightened Nice Answer Enlightened Nice Answer,NULL,NULL,1,NULL,Decoding Google Maps API Encoded Overview Polyline with Javascript for use in Mapbox javascript mapbox geojson google polyline pHave been searching for various JS functions that can decode an encoded polyline to geoJSON string and all that try come up with really odd lat lng points Usually starting in the correct location but then wandering way off course ppHere one of the functions found at href https github com jhermsmeier node google polyline blob master lib decode js rel nofollow noreferrer https github com jhermsmeier node google polyline blob master lib decode js ppre code function decode value var values decode integers value var points for var lt values length points push values values 1e5 values values 1e5 return points decode sign function value return value amp value gt gt gt value gt gt gt decode integers function value var values var byte var current var bits for var lt value length byte value charCodeAt 63 current current byte amp 0x1F lt lt bits bits bits if byte lt 0x20 values push decode sign current current bits return values module exports decode code prepWhen using this encoded polyline ppre code nccIj EnIuBdAo BLqA Ij QfAj TMJKnEcKpAiCbCoF BoFt BmFjBkFh RUj mAVwA ExBaJvDaKrAqCzA BcEfDyHf Bp FfEh nBd AF Bo ErAaEjBaDd Gf AcBEAAG IBEB Fa AcE FfDoIdBiEp BaCqCgAiASMq INmKAgAGy DqQgHFaE oKZ DfA IVaCDw oEWaHI Ac AYe DqA CiAeCaA BSs FaH LyEyHyaHM ASa dCiIl AeEn BuE BuE Bd BU CUmBg BW WcC AmA BiDQQ AU EKE AiGLqABs yDDmBFQFEXCt jBOjABfCR PEPKVYXo cBt AmL CRgCHmBDoBCaEMoCQqBUeB cB gA cAMq RMRARFTD ALGv BsAfGiDrCsBn AA AAA Rm eAhA DJ IBQFGHCFBDH BaFR ATJtBx AHaAFYXm code prepwhich is based in the UK get this collection of lat lng positions ppre code 53 10718 9927 53 1055 99211 53 10515 99187 53 10497 99167 53 10479 99138 53 10468 99114 53 10445 99048 53 10425 98986 53 10418 98945 53 10417 98875 53 10378 98562 53 10374 98546 53 10362 98524 53 1035 98514 53 1034 98512 53 10179 98534 53 09876 9857 53 09854 9857 53 09843 98563 53 09837 98557 53 09733 98363 53 09692 98294 53 09626 98174 53 09562 98054 53 09535 97993 53 09486 97874 53 09432 97756 53 09411 97721 53 09393 97696 53 09372 97677 53 09348 97661 53 09327 97646 53 09317 97635 53 09295 97604 53 09274 97563 53 09313 97575 53 09357 97608 53 09467 97669 53 09644 97761 53 09837 97803 53 0991 97849 53 09974 97912 53 10072 97996 53 10229 98016 53 10284 98042 53 10382 9806 53 10436 98082 53 10499 98107 53 10558 9822 53 10458 98241 53 10442 98297 53 10423 9833 53 10419 98379 53 10443 98398 53 10449 98459 53 10437 98473 53 10441 98571 53 10594 98624 53 10705 98666 53 10802 9872 53 10883 98739 53 10908 98771 53 10937 98814 53 10966 98837 53 10974 98847 53 10975 98857 53 1098 98871 53 10992 98908 53 11026 98884 53 10884 9892 53 10875 98884 53 10884 98908 53 11026 98928 53 11103 98899 53 11118 98873 53 11142 98849 53 11165 98794 53 11211 98776 53 1123 98754 53 11257 98718 53 11295 98663 53 11364 98529 53 11516 98528 53 11514 98526 53 11512 98523 53 11513 98522 53 11517 98522 53 11522 98524 53 11525 98526 53 11525 9853 53 11542 98573 53 11629 98608 53 11702 98621 53 11732 98635 53 11757 98686 53 11867 98734 53 11965 98799 53 12091 98883 53 12259 98934 53 1236 98959 53 12426 9899 53 12497 99013 53 12547 99045 53 1261 9898 53 12683 98944 53 1272 98934 53 12727 98909 53 12737 98902 53 12742 98896 53 12749 98891 53 12757 98886 53 12777 98878 53 12836 98866 53 1301 98874 53 13209 98873 53 13245 98869 53 13274 98862 53 13308 98852 53 13336 98805 53 1343 9878 53 13481 9877 53 13507 98761 53 13539 98755 53 13578 9875 53 13623 98748 53 13706 98755 53 13986 98746 53 14134 9875 53 14231 98766 53 14431 9878 53 14526 98816 53 14701 98828 53 14766 98831 53 14794 9883 53 14844 98827 53 14868 98821 53 14889 98799 53 14942 98795 53 14961 98792 53 14987 9879 53 15096 98789 53 15201 98787 53 15298 98793 53 1537 98825 53 15543 98835 53 15657 9884 53 15757 98833 53 15914 98825 53 16039 98814 53 16143 98802 53 16288 98797 53 16319 98786 53 16361 98768 53 16402 98754 53 16426 9874 53 16443 98733 53 16452 9868 53 16498 98662 53 16514 98613 53 1656 986 53 16579 98598 53 16587 98601 53 1661 98609 53 16635 98621 53 16669 98627 53 16688 9863 53 16722 98634 53 1677 98636 53 16905 98639 53 1697 9864 53 17018 98636 53 17062 98628 53 17128 98618 53 17169 98603 53 172 98539 53 17295 98498 53 17359 98461 53 17426 98428 53 17489 98397 53 17552 98387 53 17578 98379 53 17607 98367 53 17682 98364 53 17726 98365 53 17765 98371 53 17896 9837 53 17925 98362 53 17962 98352 53 17993 98339 53 18017 98255 53 18144 9811 53 18366 98001 53 18523 97972 53 18568 9794 53 18627 97928 53 18653 9791 53 18711 97897 53 18768 97892 53 18804 97887 53 18858 97879 53 19021 97867 53 19166 9786 53 19213 9785 53 1923 97843 53 19239 97848 53 19253 97915 53 19418 97938 53 19474 98039 53 19693 98139 53 19907 98187 53 20006 98211 53 20048 98275 53 20155 98339 53 20262 98371 53 20319 98396 53 20382 98415 53 20443 98432 53 20519 98443 53 20596 98447 53 20644 98448 53 20744 98445 53 20806 98434 53 20885 98423 53 2094 98403 53 21014 98389 53 21062 98377 53 21093 98362 53 21122 98305 53 21218 98259 53 2128 98229 53 21318 98207 53 21344 98193 53 21356 98127 53 21403 98088 53 21433 98036 53 21485 97758 53 21796 97668 53 21897 97605 53 21982 97596 53 21991 97581 53 22002 97503 53 22048 97492 53 22062 97489 53 22068 97486 53 22083 97486 53 22109 97493 53 22141 97519 53 22226 97533 53 22291 97566 53 22424 97573 53 22465 97575 53 22491 97575 53 22584 97578 53 22639 97582 53 22648 97586 53 22651 97599 53 22653 97626 53 22654 97699 53 22668 97753 53 22676 97791 53 22674 97859 53 22664 97859 53 22655 97856 53 22646 9785 53 22634 97837 53 22621 97813 53 22571 97675 53 22489 97494 53 22476 97463 53 22453 97394 53 22427 97321 53 22396 97246 53 22382 97219 53 2236 97189 53 22291 97105 53 22143 96942 53 22119 96909 53 22103 96884 53 22075 9683 53 22065 96802 53 22049 96752 53 22022 96629 53 21975 96414 53 21959 96336 53 21949 96268 53 21944 96213 53 21941 96157 53 21943 9606 53 2195 95988 53 21959 95931 53 2197 9588 53 21984 9583 53 21999 95784 53 22013 95748 53 22044 95681 53 22059 95647 53 22066 95622 53 22073 95591 53 22077 9554 53 2208 95503 53 22079 95482 53 22067 95428 53 22065 95408 53 22065 95385 53 22068 95376 53 2207 95363 53 22069 95335 53 22066 95322 53 22056 95308 53 22046 95301 53 22036 953 53 22026 95304 53 22015 95307 53 22016 95314 53 2202 95342 53 22042 95395 53 22083 95459 53 22125 95591 53 2221 95665 53 22268 95689 53 22286 95689 53 22287 95688 53 22287 95688 53 22288 95687 53 22289 95687 53 22291 95688 53 22294 9569 53 22295 95691 53 22294 95692 53 22293 95692 53 22292 95705 53 22302 95716 53 22316 95726 53 22339 95691 53 22302 95596 53 22296 95566 53 22286 95542 53 22286 95537 53 22284 95528 53 2228 95524 53 22275 95522 53 22271 95524 53 22268 95529 53 22267 95533 53 22261 95538 53 22245 95558 53 22229 95578 53 22115 9576 53 22096 95791 53 22086 95803 53 22076 95806 53 22069 95803 53 22063 95798 53 22094 95812 53 22133 95825 53 22181 95832 53 22213 95843 53 22261 9586 53 22331 95882 53 22416 95886 53 22432 95891 53 2244 95899 53 2245 95911 53 22451 95918 53 2245 95921 53 22449 95932 53 22461 95954 53 22485 95971 53 22501 96006 53 22546 96018 53 22566 96042 53 22613 96091 53 22726 96101 53 22758 96112 53 22752 96171 53 22723 96176 53 22717 96189 53 22694 96271 53 22646 96276 53 22679 9628 53 22692 96293 53 22715 96299 53 22753 96303 53 2279 null code prepThe result using this website href https developers google com maps documentation utilities polylineutility rel nofollow noreferrer https developers google com maps documentation utilities polylineutility is very different when plotted and is the correct path ppAny help appreciated ppThanks href https github com jieter Leaflet encoded rel nofollow noreferrer codeLeaflet encoded code plugin supports to encode to and decode from Google maps polyline encoding here is the example for provided encoded path pblockquote pNote backslashes code code in the provided encoded string needs to be escaped overwise it will be interpreted as escape character The encoded path has been updated accordingly blockquotep strongExample strong pp div class snippet data lang js data hide false data console true data babel false xD div class snippet code xD pre class snippet code js lang js prettyprint override codevar encoded nccIj EnIuBdAo BLqA Ij QfAj TMJKnEcKpAiCbCoF BoFt BmFjBkFh RUj mAVwA ExBaJvDaKrAqCzA BcEfDyHf Bp FfEh nBd AF Bo ErAaEjBaDd Gf AcBEAAG IBEB Fa AcE FfDoIdBiEp BaCqCgAiASMq INmKAgAGy DqQgHFaE oKZ DfA IVaCDw oEWaHI Ac AYe DqA CiAeCaA BSs FaH LyEyHyaHM ASa dCiIl AeEn BuE BuE Bd BU CUmBg BW WcC AmA BiDQQ AU EKE AiGLqABs yDDmBFQFEXCt jBOjABfCR PEPKVYXo cBt AmL CRgCHmBDoBCaEMoCQqBUeB cB gA cAMq RMRARFTD ALGv BsAfGiDrCsBn AA AAA Rm eAhA DJ IBQFGHCFBDH BaFR ATJtBx AHaAFYXm xD var coordinates Polyline fromEncoded encoded getLatLngs xD console log coordinates xD xD xD var map map map setView 53 07 85 11 xD tileLayer xD http tile openstreetmap org png xD maxZoom 18 xD addTo map xD xD var polyline polyline xD coordinates xD xD color red xD weight 10 xD opacity xD dashArray 20 15 xD lineJoin round xD xD addTo map code pre xD pre class snippet code html lang html prettyprint override code lt script src http cdn leafletjs com leaflet leaflet js gt lt script gt xD lt script type text javascript src https rawgit com jieter Leaflet encoded master Polyline encoded js gt lt script gt xD lt link rel stylesheet href http cdn leafletjs com leaflet leaflet css gt xD lt div id map style width 600px height 400px gt lt div gt xD lt script type text javascript src app js gt lt script gt code pre xD div xD div xD Microsoft IdentityModel Clients ActiveDirectory UserCredential does not take parameters azure adal pI using ADAL in my code One thing want to use is to use different credentials so can authorize different users against Azure AD in the console program ppre codeMicrosoft IdentityModel Clients ActiveDirectory UserCredential cred new Microsoft IdentityModel Clients ActiveDirectory UserCredential username password code prepThis is the line use to create the user credential use nuget get the latest ADAL However this line shows error pblockquote pThe best overloaded method match for Microsoft IdentityModel Clients ActiveDirectory UserCredential UserCredential string Microsoft IdentityModel Clients ActiveDirectory UserAuthType has some invalid arguments blockquotepHowever according toa href https msdn microsoft com en us library microsoft identitymodel clients activedirectory usercredential aspx rel nofollow noreferrer https msdn microsoft com en us library microsoft identitymodel clients activedirectory usercredential aspx ppre codeUserCredential String String Constructor to create credential with client id and secret code prepAnyone knows what did wrong ppThanks pIn href https www nuget org packages Microsoft IdentityModel Clients ActiveDirectory rel noreferrer ADAL NET v3 href https msdn microsoft com en us library mt473752 aspx rel noreferrer codeUserCredential Constructor code is no longer supports the second parameter codepassword code instead you need to use href https github com AzureAD azure activedirectory library for dotnet blob c5c66c097a6499e0c646f5ed1db1d6d278683104 src ADAL PCL Desktop UserPasswordCredential cs rel noreferrer codeUserPasswordCredential code class pp strongExample strong ppre codevar credentials new UserPasswordCredential userName password var context new AuthenticationContext authorityUri var authResult context AcquireTokenAsync resource clientId credentials Result code pre 79801,886863,886481,NULL,NULL,NULL,0,NULL,NULL 79802,434621,1132969,NULL,NULL,NULL,0,NULL,NULL 79803,102613,1244215,Notable Question Yearling Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 79804,325784,72469,Informed Tumbleweed Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79805,82918,1035646,Popular Question Notable Question Notable Question Good Question Good Question Famous Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Nice Question Nice Question Yearling Notable Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 79806,465377,432358,Nice Answer Nice Answer Mortarboard Nice Answer Enlightened Nice Answer Cleanup Enthusiast c++ Yearling Nice Answer Nice Answer vector Nice Answer Good Answer Caucus Constituent c Nice Answer stl Necromancer Good Answer Caucus Constituent Nice Answer Enlightened Yearling Nice Answer Nice Answer Promoter Benefactor multithreading Nice Answer Caucus Nice Answer pointers Nice Answer Popular Question Guru Nice Answer Good Answer Nice Answer Enlightened Guru Yearling Deputy Nice Answer Popular Question Nice Answer Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 79807,27552,92396,Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 79808,277277,49197,Nice Answer Strunk & White Nice Answer Electorate Tag Editor Nice Answer Enlightened Caucus Constituent erlang Nice Answer Enlightened Yearling Pundit Announcer Announcer Nice Answer Enlightened Good Answer Yearling Census Famous Question Caucus Constituent Good Answer,NULL,NULL,0,NULL,NULL 79809,211835,517149,Editor,NULL,NULL,0,NULL,NULL 79810,3667630,489164,NULL,NULL,NULL,0,NULL,NULL 79811,50357,1165373,Informed,NULL,NULL,0,NULL,NULL 79812,1493154,756842,NULL,NULL,NULL,0,NULL,NULL 79813,223382,675631,Popular Question Necromancer Popular Question Popular Question Good Question Yearling Nice Question Notable Question Good Answer Self-Learner Notable Question Revival Famous Question Yearling Nice Question Famous Question Nice Answer Popular Question Notable Question Popular Question Yearling Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 79814,73833,1377243,NULL,NULL,NULL,0,NULL,NULL 79815,85823,1253057,NULL,NULL,NULL,0,NULL,NULL 79816,2153997,113868,NULL,NULL,NULL,0,NULL,NULL 79817,132524,113868,NULL,NULL,NULL,0,NULL,NULL 79818,124017,1331183,NULL,NULL,NULL,0,NULL,NULL 79819,4860,791329,Yearling Necromancer,NULL,NULL,0,NULL,NULL 79820,960529,692076,Yearling Custodian Informed Yearling Mortarboard Yearling Revival Necromancer Custodian Custodian Nice Answer Enlightened Caucus Yearling Good Answer Custodian Nice Answer Nice Answer Enlightened Custodian Guru kubernetes,NULL,NULL,0,NULL,NULL 79821,395319,595813,Supporter,NULL,NULL,0,NULL,NULL 79822,38573,1178311,NULL,NULL,NULL,0,NULL,NULL 79823,1375462,1125425,Necromancer,NULL,NULL,0,NULL,NULL 79824,51623,204343,Necromancer Yearling Necromancer Nice Answer Revival Caucus Constituent Citizen Patrol Yearling Civic Duty,NULL,NULL,0,NULL,NULL 79825,355029,1339963,Popular Question Nice Answer Notable Question Custodian Yearling Good Answer Necromancer Nice Question Yearling Nice Answer Famous Question Good Question Nice Answer Yearling Critic Great Answer Custodian Yearling Necromancer Nice Answer Favorite Question Custodian,NULL,NULL,0,NULL,NULL 79826,52836,843854,Popular Question Famous Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 79827,1423682,261340,Popular Question Notable Question Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 79828,141004,606536,NULL,NULL,NULL,0,NULL,NULL 79829,742169,936887,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79830,964093,580733,Yearling,NULL,NULL,0,NULL,NULL 79831,218398,1448303,NULL,NULL,NULL,0,NULL,NULL 79832,250971,1448303,NULL,NULL,NULL,0,NULL,NULL 79833,286185,101430,Yearling Good Answer Custodian Civic Duty Explainer Yearling Yearling,NULL,NULL,1,Returning arguments in SWIG Python python swig typemaps pAccording to Swig docs and the marvelous explanation at href https stackoverflow com questions 21373259 swig in typemap works but argout does not SWIG in typemap works but argout does not by the codeargout code typemap turns reference arguments into return values in Python ppI have scenario in which pass codedict code which then is converted to an codeunordered map code in codetypemap in code which then gets populated in the lib Stepping through the code can see the mapping changed after it returned from so wonder why there is not possibility to just convert the codeunordered map code back in place in to the codedict code that was passed Or is it possible by now and just overlooking something ppThanks,NULL 79834,2852227,1014691,Supporter Editor Popular Question,NULL,NULL,0,NULL,NULL 79835,2134435,1014691,Supporter Editor Popular Question,NULL,NULL,0,NULL,NULL 79836,1517929,1219139,Teacher,NULL,NULL,0,NULL,NULL 79837,285797,1357280,NULL,NULL,NULL,0,NULL,NULL 79838,1709563,243192,Yearling Popular Question Nice Answer Notable Question Good Answer Nice Question Nice Answer Enlightened Guru Notable Question Yearling Guru swift Yearling Nice Question Great Answer Nice Answer Enlightened Popular Question Cleanup,NULL,NULL,0,NULL,NULL 79839,1582343,934801,Caucus Caucus Notable Question Famous Question Nice Answer,NULL,NULL,0,NULL,NULL 79840,12024,1347553,Yearling Critic Revival,NULL,NULL,0,NULL,NULL 79841,443139,1082594,NULL,NULL,NULL,0,NULL,NULL 79842,946787,685208,NULL,NULL,NULL,0,NULL,NULL 79843,303458,1467024,NULL,NULL,NULL,0,NULL,NULL 79844,540529,157873,Good Answer Proofreader Yearling Caucus Constituent Nice Answer Enlightened Caucus Constituent Yearling Necromancer Announcer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 79845,408937,554142,Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 79846,771559,1148579,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 79847,3345,1502146,NULL,NULL,NULL,0,NULL,NULL 79848,6332,237219,Good Answer Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 79849,97176,347727,Famous Question Popular Question Good Question Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 79850,420863,516629,Famous Question Famous Question Popular Question Famous Question Nice Answer javascript Famous Question Nice Question Nice Question Nice Question Notable Question Popular Question Nice Question Good Question Nice Answer Nice Question Popular Question Nice Question Revival Notable Question Famous Question Notable Question Yearling Notable Question Popular Question Notable Question Notable Question Good Question Nice Question Notable Question Favorite Question Yearling Popular Question Famous Question Famous Question Good Question Notable Question Famous Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 79851,164294,149868,Nice Answer Enlightened Good Answer Nice Question Notable Question Yearling Good Question Popular Question Good Answer Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 79852,898367,626347,Teacher Critic Popular Question,NULL,NULL,0,NULL,NULL 79853,264504,1256105,NULL,NULL,NULL,0,NULL,NULL 79854,243653,1049604,NULL,NULL,NULL,0,NULL,NULL 79855,663292,1335452,Teacher Necromancer Supporter Nice Answer,NULL,NULL,0,NULL,NULL 79856,370378,275297,Popular Question Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 79857,198632,351748,Notable Question Popular Question Nice Question Popular Question Popular Question Nice Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 79858,90960,88168,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 79859,154633,674936,NULL,NULL,NULL,0,NULL,NULL 79860,93052,1134306,Teacher,NULL,NULL,0,NULL,NULL 79861,1146290,49128,Good Question Famous Question Notable Question Popular Question Notable Question Notable Question Notable Question Popular Question Custodian Popular Question Yearling Notable Question Popular Question Nice Question Notable Question Popular Question Famous Question Famous Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79862,315536,380592,Yearling Notable Question,NULL,NULL,0,NULL,NULL 79863,241203,443469,NULL,NULL,NULL,0,NULL,NULL 79864,36000,188569,NULL,NULL,NULL,0,NULL,NULL 79865,26363,544243,NULL,NULL,NULL,0,NULL,NULL 79866,686142,1023998,NULL,NULL,NULL,0,NULL,NULL 79867,373169,790079,Yearling Yearling Student Announcer objective-c Yearling,NULL,NULL,0,NULL,NULL 79868,1028070,1270662,NULL,NULL,NULL,0,NULL,NULL 79869,96031,608858,Good Question Yearling,NULL,NULL,0,NULL,NULL 79870,538123,1546302,Nice Answer Yearling Nice Answer Great Answer Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 79871,351114,452186,Nice Question Critic Necromancer Notable Question Caucus Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 79872,283637,275249,Good Question Notable Question Popular Question Popular Question Notable Question Popular Question Inquisitive Yearling Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79873,8125164,301730,Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 79874,42707,301730,Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 79875,291713,15141,Famous Question Nice Question Caucus Constituent Caucus Announcer,NULL,NULL,0,NULL,NULL 79876,1755717,1472644,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79877,74591,1472644,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79878,2479541,1472644,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79879,939868,607543,NULL,NULL,NULL,0,NULL,NULL 79880,321482,153006,Necromancer Critic Yearling Tumbleweed Revival,NULL,NULL,0,NULL,NULL 79881,442853,558362,Nice Answer,NULL,NULL,0,NULL,NULL 79882,159010,79191,Yearling Yearling Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 79883,100763,12306,NULL,NULL,NULL,0,NULL,NULL 79884,146454,771708,NULL,NULL,NULL,0,NULL,NULL 79885,1686067,893283,NULL,NULL,NULL,0,NULL,NULL 79886,6123442,999125,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 79887,40915,999125,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 79888,892276,842974,Caucus Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 79889,597229,1140611,Teacher Civic Duty Revival Caucus Commentator,NULL,NULL,0,NULL,NULL 79890,67504,810231,NULL,NULL,NULL,0,NULL,NULL 79891,187985,1185075,NULL,NULL,NULL,0,NULL,NULL 79892,603501,1462478,NULL,NULL,NULL,0,NULL,NULL 79893,12266,736606,Nice Answer Yearling Good Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 79894,288989,1263644,NULL,NULL,NULL,0,NULL,NULL 79895,263455,964570,NULL,NULL,NULL,0,NULL,NULL 79896,495448,1267765,Informed Teacher Editor Autobiographer Supporter Yearling Commentator Citizen Patrol Yearling Critic Census Custodian Custodian Caucus Custodian Nice Answer Enlightened Yearling Nice Answer Enlightened Enthusiast Organizer Excavator Explainer Yearling Revival Revival,NULL,NULL,0,NULL,NULL 79897,414148,1426056,Popular Question Good Answer Necromancer Notable Question Popular Question Nice Answer Popular Question Good Answer Nice Question dataframe Nice Answer Popular Question Good Answer Yearling Popular Question Good Question Guru Enlightened Good Answer Nice Answer Good Answer Nice Answer Enlightened Popular Question Good Answer Nice Question Good Answer Popular Question Famous Question Popular Question Famous Question Guru Good Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Notable Question Nice Question Great Answer Famous Question Notable Question Guru Popular Question Nice Question Nice Answer Nice Answer Notable Question Yearling Good Question Famous Question Good Answer Notable Question Good Answer Popular Question Famous Question Guru Nice Answer Enlightened Nice Question Famous Question Favorite Question Notable Question Nice Answer Notable Question Nice Answer Enlightened Great Question Popular Question Guru Guru Nice Answer Enlightened Famous Question Famous Question Yearling Good Answer Popular Question Great Answer Good Question Guru Guru Popular Question Good Answer Nice Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 79898,451592,794495,NULL,NULL,NULL,0,NULL,NULL 79899,788383,420389,NULL,NULL,NULL,0,NULL,NULL 79900,61020,582305,Editor,NULL,NULL,0,NULL,NULL 79901,841780,1460641,Notable Question Notable Question Nice Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 79902,256247,1166321,Commentator Teacher Documentation User Autobiographer,NULL,NULL,0,NULL,NULL 79903,665159,195297,Tumbleweed Student Nice Question Yearling Scholar Commentator,NULL,NULL,0,NULL,NULL 79904,16493,283500,NULL,NULL,NULL,0,NULL,NULL 79905,451333,777006,NULL,NULL,NULL,0,NULL,NULL 79906,488781,658552,Teacher,NULL,NULL,0,NULL,NULL 79907,169118,109545,Popular Question Popular Question Critic,NULL,NULL,0,NULL,NULL 79908,884279,1356636,NULL,NULL,NULL,0,NULL,NULL 79909,62567,450811,Great Answer Popular Question Notable Question Good Answer Yearling Necromancer Popular Question Caucus Popular Question Yearling Great Answer Reviewer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 79910,327536,1149495,Guru Yearling Refiner Announcer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened composer-php Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Caucus Good Answer Great Answer Good Answer Nice Answer Great Answer Yearling Good Answer Nice Answer Nice Answer symfony symfony symfony Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Necromancer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Documentation User Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Nice Answer Enlightened Caucus Good Answer Enlightened Nice Answer Enlightened Great Answer Good Answer Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 79911,888463,974564,NULL,NULL,NULL,0,NULL,NULL 79912,4643668,266309,Yearling Nice Answer Nice Answer Yearling Autobiographer Yearling Announcer Announcer Famous Question Documentation User Necromancer Good Question Yearling Necromancer Announcer Announcer Pundit Announcer Self-Learner Announcer Custodian,NULL,pFor all unstaged files in current working directory use ppre codegit checkout code prepFor specific file use ppre codegit checkout path to file to revert code prep code code here to remove href https git scm com docs git checkout argument disambiguation rel noreferrer argument ambiguation łTrybus to clean the whole repository regardless of where you are inside it you can use git checkout was looking for this myself pA reliable check is to use the codeCMAKE lt LANG gt COMPILER ID code variables to check the compiler ppre codeif CMAKE CXX COMPILER ID STREQUAL Clang using Clangelseif CMAKE CXX COMPILER ID STREQUAL GNU using GCCelseif CMAKE CXX COMPILER ID STREQUAL Intel using Intel elseif CMAKE CXX COMPILER ID STREQUAL MSVC using Visual Studio endif code prepThese also work correctly if compiler wrapper like href http ccache samba org rel noreferrer ccache is used ppAs of CMake the codeCMAKE lt LANG gt COMPILER ID code value for Apple provided Clang is now codeAppleClang code To test for both the Apple provided Clang and the regular Clang use the following if condition ppre codeif CMAKE CXX COMPILER ID MATCHES Clang using regular Clang or AppleClangendif code prepAlso see the href http www cmake org cmake help v3 policy CMP0025 html policy CMP0025 rel noreferrer AppleClang policy description Note that the CMAKE CXX COMPILER ID variable is only available after the command project Foo CXX,0,NULL,NULL 79913,128497,266309,Yearling Nice Answer Nice Answer Yearling Autobiographer Yearling Announcer Announcer Famous Question Documentation User Necromancer Good Question Yearling Necromancer Announcer Announcer Pundit Announcer Self-Learner Announcer Custodian,NULL,pFor all unstaged files in current working directory use ppre codegit checkout code prepFor specific file use ppre codegit checkout path to file to revert code prep code code here to remove href https git scm com docs git checkout argument disambiguation rel noreferrer argument ambiguation łTrybus to clean the whole repository regardless of where you are inside it you can use git checkout was looking for this myself pA reliable check is to use the codeCMAKE lt LANG gt COMPILER ID code variables to check the compiler ppre codeif CMAKE CXX COMPILER ID STREQUAL Clang using Clangelseif CMAKE CXX COMPILER ID STREQUAL GNU using GCCelseif CMAKE CXX COMPILER ID STREQUAL Intel using Intel elseif CMAKE CXX COMPILER ID STREQUAL MSVC using Visual Studio endif code prepThese also work correctly if compiler wrapper like href http ccache samba org rel noreferrer ccache is used ppAs of CMake the codeCMAKE lt LANG gt COMPILER ID code value for Apple provided Clang is now codeAppleClang code To test for both the Apple provided Clang and the regular Clang use the following if condition ppre codeif CMAKE CXX COMPILER ID MATCHES Clang using regular Clang or AppleClangendif code prepAlso see the href http www cmake org cmake help v3 policy CMP0025 html policy CMP0025 rel noreferrer AppleClang policy description Note that the CMAKE CXX COMPILER ID variable is only available after the command project Foo CXX,0,NULL,NULL 79914,334187,586923,NULL,NULL,NULL,0,NULL,NULL 79915,422066,401717,NULL,NULL,NULL,0,NULL,NULL 79916,3088,179585,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79917,174794,179585,Yearling Nice Answer,NULL,NULL,0,NULL,NULL 79918,292074,1530410,Good Question Nice Answer Yearling Popular Question Popular Question Nice Answer Caucus Constituent Good Answer Nice Question Famous Question Tumbleweed Yearling Caucus Constituent Nice Answer ruby Nice Answer Necromancer Caucus Constituent Nice Answer Good Question Yearling Notable Question Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 79919,306540,155407,NULL,NULL,NULL,0,NULL,NULL 79920,7904673,1268937,Yearling Self-Learner Documentation User,NULL,NULL,0,NULL,NULL 79921,33092,1268937,Yearling Self-Learner Documentation User,NULL,NULL,0,NULL,NULL 79922,324584,1312825,NULL,NULL,NULL,0,NULL,NULL 79923,15157,152848,NULL,NULL,NULL,0,NULL,NULL 79924,909780,458426,Student Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 79925,23977,895931,Caucus,NULL,NULL,0,NULL,NULL 79926,7524524,895931,Caucus,NULL,NULL,0,NULL,NULL 79927,125402,526860,Teacher Announcer Announcer Editor Excavator Yearling,NULL,NULL,0,NULL,NULL 79928,199615,925209,Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 79929,1381195,1466828,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79930,2312646,1466828,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79931,165279,1388032,NULL,NULL,NULL,0,NULL,NULL 79932,272823,655707,Popular Question,NULL,NULL,0,NULL,NULL 79933,1124736,1088768,NULL,NULL,NULL,0,NULL,NULL 79934,375141,643254,NULL,NULL,NULL,0,NULL,NULL 79935,1823356,1039503,NULL,NULL,NULL,0,NULL,NULL 79936,456655,1248164,NULL,NULL,NULL,0,NULL,NULL 79937,353497,950600,Notable Question Yearling Excavator Popular Question Popular Question Good Question Civic Duty Famous Question,NULL,NULL,0,NULL,NULL 79938,1519233,516423,NULL,NULL,NULL,0,NULL,NULL 79939,708627,145145,NULL,NULL,NULL,0,NULL,NULL 79940,1261347,475104,Scholar Supporter Student Editor Informed,NULL,NULL,0,NULL,NULL 79941,162356,52170,Yearling Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 79942,1498626,1469978,NULL,NULL,NULL,0,NULL,NULL 79943,756124,568644,NULL,NULL,NULL,0,NULL,NULL 79944,78890,487526,NULL,NULL,NULL,0,NULL,NULL 79945,610961,102970,Nice Answer,NULL,NULL,0,NULL,NULL 79946,783413,771818,NULL,NULL,NULL,0,NULL,NULL 79947,417864,320417,Promoter Benefactor Nice Question Popular Question Yearling Caucus Constituent Custodian Custodian Good Answer Revival Yearling Custodian jquery Guru Yearling,NULL,NULL,0,NULL,NULL 79948,605775,1122955,Popular Question,NULL,NULL,0,NULL,NULL 79949,899707,674821,NULL,NULL,NULL,0,NULL,NULL 79950,103430,103085,NULL,NULL,NULL,0,NULL,NULL 79951,275676,1148464,NULL,NULL,NULL,0,NULL,NULL 79952,1592,1376564,NULL,NULL,NULL,0,NULL,NULL 79953,13880,240134,NULL,NULL,NULL,0,NULL,NULL 79954,150329,1654,Yearling Great Question Yearling Guru Census Notable Question Yearling,NULL,NULL,0,NULL,NULL 79955,38355,531848,Yearling Yearling,NULL,NULL,0,NULL,NULL 79956,142007,405911,Nice Answer Yearling Popular Question Nice Answer Enlightened Necromancer Notable Question Yearling Custodian Census Custodian ios Custodian Yearling,NULL,NULL,0,NULL,NULL 79957,2555022,1538057,NULL,NULL,NULL,0,NULL,NULL 79958,67611,226709,Self-Learner Yearling Yearling,NULL,NULL,0,NULL,NULL 79959,443846,1207355,NULL,NULL,,0,, 79960,5695426,1260977,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 79961,301116,686227,Popular Question Curious Popular Question Popular Question Notable Question Notable Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 79962,523299,1441055,NULL,NULL,NULL,0,NULL,NULL 79963,417037,15075,Yearling Famous Question Custodian Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 79964,892229,1207027,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79965,561909,1432109,NULL,NULL,NULL,0,NULL,NULL 79966,149029,1373605,NULL,NULL,NULL,0,NULL,NULL 79967,3110231,123827,Yearling Nice Answer Good Answer Yearling Custodian Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 79968,163885,123827,Yearling Nice Answer Good Answer Yearling Custodian Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 79969,492324,790951,NULL,NULL,NULL,0,NULL,NULL 79970,183053,163936,Caucus Announcer Announcer,NULL,NULL,0,NULL,NULL 79971,85146,204413,Supporter,NULL,NULL,0,NULL,NULL 79972,3032,281819,Famous Question Curious Famous Question,NULL,NULL,0,NULL,NULL 79973,206226,1263750,NULL,NULL,NULL,0,NULL,NULL 79974,918,1340144,NULL,NULL,NULL,0,NULL,NULL 79975,58212,1544770,NULL,NULL,NULL,0,NULL,NULL 79976,59848,562746,Necromancer,NULL,NULL,0,NULL,NULL 79977,707590,1065097,NULL,NULL,NULL,0,NULL,NULL 79978,196648,912429,Popular Question Yearling Teacher Promoter Nice Question Benefactor Good Question Famous Question Revival Famous Question Explainer Necromancer Good Question Organizer Investor Necromancer Popular Question Popular Question Popular Question Popular Question Nice Answer,NULL,RuntimeError in solving equation using SymPy python runtime error sympy equation href https stack imgur com ZBiJl png rel nofollow noreferrer img src https stack imgur com ZBiJl png alt enter image description here ppI have equation to solve The equation can be described as the formula above and are constants for example 201 and use sympy in python to solve it The python script is given as following ppre codefrom sympy import Symbol print solve 200 code prepHowever there is strongRuntimeError maximum recursion depth exceeded in instancecheck strong ppI have also tried to use Mathematica and it can output result of 963 pp href http www wolframalpha com input 2F200 20 20x 20 202 20 3D 200 rel nofollow noreferrer http www wolframalpha com input 2F200 strong strongx 3D pp href https stack imgur com ybxtB png rel nofollow noreferrer img src https stack imgur com ybxtB png alt enter image description here ppAny suggestion is welcome Thanks is the real entropy in mobility predictability research For each person we can estimate it Thus for an individual can be viewed as constant ranging from to Here we let just for an example Yajl parse error with githubarchive org JSON stream in Python python json yajl pI trying to parse GitHub archive file with yajl py believe the basic format of the file is stream of JSON objects so the file itself is not valid JSON but it contains objects which are ppTo test this out installed codeyajl py code and then used their example parser from href https github com pykler yajl py blob master examples yajl py example py rel noreferrer https github com pykler yajl py blob master examples yajl py example py to try to parse file ppre codepython yajl py example py lt 2012 03 12 json code prepwhere code2012 03 12 json code is one of the GitHub archive files that been decompressed ppIt appears this sort of thing should work from their reference implementation in Ruby Do the Python packages not handle JSON streams ppBy the way here the error get ppre codeyajl yajl common YajlError parse error trailing garbage 9478bbc3 type PushEvent repository url https right here code pre http stackoverflow com questions 36967236 parse multiple json objects that are in one line This is helpful,1,RuntimeError in solving equation using SymPy python runtime error sympy equation href https stack imgur com ZBiJl png rel nofollow noreferrer img src https stack imgur com ZBiJl png alt enter image description here ppI have equation to solve The equation can be described as the formula above and are constants for example 201 and use sympy in python to solve it The python script is given as following ppre codefrom sympy import Symbol print solve 200 code prepHowever there is strongRuntimeError maximum recursion depth exceeded in instancecheck strong ppI have also tried to use Mathematica and it can output result of 963 pp href http www wolframalpha com input 2F200 20 20x 20 202 20 3D 200 rel nofollow noreferrer http www wolframalpha com input 2F200 strong strongx 3D pp href https stack imgur com ybxtB png rel nofollow noreferrer img src https stack imgur com ybxtB png alt enter image description here ppAny suggestion is welcome Thanks,How do convert img tags in markdown cells when exporting in Jupyter html image markdown jupyter nbconvert pI ve got large report like notebook which has got many images Instead of using the code title link code syntax ve had to use code lt img src link align right width 100 gt code instead so have better control on them ppWhile this works inside the notebook in Jupyter Server the stronginline code lt img gt code tags get rendered verbatim instead of showing up as images strong ppI figure the problem resides with the codenbconvert code module which handles the conversion but it seems as though href https github com jupyter nbconvert issues 328 rel noreferrer similar issue has already been resolved ppMy links were originally linking directly to codehttp code links but ve pulled them all locally and am still getting verbatim HTML code instead of images phrp href https stack imgur com Louef png rel noreferrer img src https stack imgur com Louef png alt In Jupyter vs rendered HTML phrulliJupyter version code4 code lilinbconvert version code5 code liliPython code3 code liliDistribution Anaconda liliPlatform Windows li ul pDowngrading mistune solves the problem for me ppre codeconda install mistune code pre 79979,197057,520832,Notable Question,NULL,NULL,0,NULL,NULL 79980,396137,1333961,NULL,NULL,NULL,0,NULL,NULL 79981,195640,1485362,NULL,NULL,NULL,0,NULL,NULL 79982,232680,554610,NULL,NULL,NULL,0,NULL,NULL 79983,1367464,1224012,NULL,NULL,NULL,0,NULL,NULL 79984,173250,870324,NULL,NULL,NULL,0,NULL,NULL 79985,403551,1196085,NULL,NULL,NULL,0,NULL,NULL 79986,686838,1268835,NULL,NULL,NULL,0,NULL,NULL 79987,34368,1230036,Notable Question Notable Question Yearling Popular Question Notable Question Nice Question Nice Answer Yearling Popular Question Popular Question Famous Question Caucus Nice Question Yearling Notable Question Popular Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 79988,98145,445475,Nice Answer Enlightened Yearling Nice Answer Notable Question Caucus Popular Question Yearling Good Answer Famous Question Popular Question Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 79989,1218342,1386523,NULL,NULL,NULL,0,NULL,NULL 79990,327163,1536573,Student,NULL,NULL,0,NULL,NULL 79991,716606,942652,Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 79992,323057,667438,NULL,NULL,NULL,0,NULL,NULL 79993,1227875,1239287,NULL,NULL,NULL,0,NULL,NULL 79994,396966,1239287,NULL,NULL,NULL,0,NULL,NULL 79995,2114798,610855,NULL,NULL,NULL,0,NULL,NULL 79996,202316,1488533,Popular Question Notable Question Popular Question Nice Question Popular Question Good Answer Civic Duty Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Famous Question Popular Question Popular Question Yearling Notable Question Caucus Popular Question Good Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Great Answer Famous Question Famous Question Yearling Notable Question Autobiographer Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 79997,612635,1027966,Popular Question Yearling Civic Duty Nice Answer Popular Question Announcer Announcer Announcer Yearling Nice Question Announcer Popular Question Nice Answer Popular Question Announcer Famous Question Nice Answer Enlightened Notable Question Yearling Revival,NULL,NULL,0,NULL,NULL 79998,427472,710995,NULL,NULL,NULL,0,NULL,NULL 79999,501156,880387,NULL,NULL,NULL,0,NULL,NULL 80000,501164,880387,NULL,NULL,NULL,0,NULL,NULL 80001,562305,670423,NULL,NULL,NULL,0,NULL,NULL 80002,175559,1318978,NULL,NULL,NULL,0,NULL,NULL 80003,713054,562154,Yearling Nice Question Necromancer Necromancer Notable Question Yearling Necromancer Custodian Necromancer Explainer Popular Question Revival Custodian Yearling Notable Question Nice Answer Revival Nice Answer Custodian Popular Question,NULL,NULL,0,NULL,NULL 80004,738041,1501494,NULL,NULL,NULL,0,NULL,NULL 80005,79274,1079723,NULL,NULL,NULL,0,NULL,NULL 80006,2169653,423629,NULL,NULL,NULL,0,NULL,NULL 80007,29815,423629,NULL,NULL,NULL,0,NULL,NULL 80008,2343,397718,Popular Question,NULL,NULL,0,NULL,NULL 80009,2841410,1475184,Editor Teacher,NULL,NULL,0,NULL,NULL 80010,115505,654952,Nice Question Caucus Necromancer Announcer Announcer Caucus Yearling,NULL,NULL,0,NULL,NULL 80011,1977803,549487,Necromancer Notable Question Popular Question Informed Caucus Popular Question Good Answer Popular Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 80012,14471,549487,Necromancer Notable Question Popular Question Informed Caucus Popular Question Good Answer Popular Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 80013,7308,984752,NULL,NULL,NULL,0,NULL,NULL 80014,105315,1109271,NULL,NULL,NULL,0,NULL,NULL 80015,180033,1102075,NULL,NULL,NULL,0,NULL,NULL 80016,595496,1059528,NULL,NULL,NULL,0,NULL,NULL 80017,379892,1289668,NULL,NULL,NULL,0,NULL,NULL 80018,4445,933930,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 80019,242572,1064435,Nice Question,NULL,NULL,0,NULL,NULL 80020,3976816,575099,NULL,NULL,NULL,0,NULL,NULL 80021,115178,575099,NULL,NULL,NULL,0,NULL,NULL 80022,170532,633951,NULL,NULL,NULL,0,NULL,NULL 80023,390312,1255531,NULL,NULL,NULL,0,NULL,NULL 80024,684079,832530,NULL,NULL,NULL,0,NULL,NULL 80025,25102,540850,Revival Yearling Revival fuelphp Yearling Enthusiast,NULL,NULL,0,NULL,NULL 80026,66383,1456502,NULL,NULL,NULL,0,NULL,NULL 80027,9755,576301,NULL,NULL,NULL,0,NULL,NULL 80028,466978,226773,Curious Yearling Yearling Nice Answer Enlightened Yearling Yearling Popular Question Notable Question Famous Question Nice Answer Enlightened Yearling Nice Question,NULL,NULL,0,NULL,NULL 80029,314848,58008,Yearling Yearling Nice Answer Yearling Great Answer,NULL,NULL,0,NULL,NULL 80030,277739,44669,Yearling Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 80031,892740,1318629,NULL,NULL,NULL,0,NULL,NULL 80032,12531,268874,Nice Answer Enlightened xamarin Nice Answer Enlightened Yearling Nice Answer Enlightened sharpdevelop Revival Nice Answer Enlightened nuget Good Answer visual-studio Good Answer Nice Answer powershell Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer visual-studio-2012 Good Answer Caucus Guru Necromancer Nice Answer Nice Answer Enlightened Yearling Guru Nice Answer Enlightened Nice Answer mono Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened xamarin-studio c# Good Answer Nice Answer Enlightened Populist Nice Answer Enlightened nuget-package-restore Organizer Custodian Census Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened visual-studio-2010 Nice Answer msbuild Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer .net,NULL,NULL,0,NULL,NULL 80033,1677309,602525,Notable Question Yearling Good Answer Famous Question Nice Question Popular Question Popular Question Nice Question Yearling Notable Question Nice Question Nice Question Mortarboard Yearling Famous Question Excavator,NULL,NULL,0,NULL,NULL 80034,85356,411495,Civic Duty Caucus Revival Caucus,NULL,NULL,0,NULL,NULL 80035,68812,1418423,NULL,NULL,NULL,0,NULL,NULL 80036,28026,127401,Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question Nice Question Popular Question Good Question Yearling,NULL,NULL,1,gcloud preview app deploy process takes minutes is this normal google app engine google cloud platform gcloud pTrying out new flexible app engine runtime In this case custom Ruby on Rails runtime based on the google provided ruby runtime ppWhen firing of codegcloud preview app deploy code the whole process takes minutes most of which is updating service Is this normal And more importantly how can speed it up ppRegards ppWard,NULL 80037,24379,426905,NULL,NULL,NULL,0,NULL,NULL 80038,798665,561290,NULL,NULL,NULL,0,NULL,NULL 80039,299342,1163152,NULL,NULL,NULL,0,NULL,NULL 80040,424891,541695,NULL,NULL,NULL,0,NULL,NULL 80041,181246,1040299,NULL,NULL,NULL,0,NULL,NULL 80042,111092,1075844,NULL,NULL,NULL,0,NULL,NULL 80043,7559942,1075844,NULL,NULL,NULL,0,NULL,NULL 80044,445760,751510,Popular Question,NULL,NULL,0,NULL,NULL 80045,1201799,751510,Popular Question,NULL,NULL,0,NULL,NULL 80046,154457,1441245,NULL,NULL,NULL,0,NULL,NULL 80047,12021,225850,Revival,NULL,NULL,0,NULL,NULL 80048,221985,274865,Yearling Famous Question Nice Answer Enlightened Famous Question Yearling Great Answer Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 80049,15103,116087,Popular Question Yearling Notable Question Necromancer Yearling Enlightened Yearling,NULL,NULL,0,NULL,NULL 80050,319172,1162351,NULL,NULL,NULL,0,NULL,NULL 80051,19225,117131,NULL,NULL,NULL,0,NULL,NULL 80052,798548,534452,Notable Question,NULL,NULL,0,NULL,NULL 80053,210575,148970,Yearling,NULL,NULL,0,NULL,NULL 80054,3761968,535703,Revival Necromancer Yearling Revival Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 80055,181789,535703,Revival Necromancer Yearling Revival Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 80056,648967,209073,Yearling Critic Revival Necromancer Yearling,NULL,NULL,0,NULL,NULL 80057,87540,1217358,Nice Answer Enlightened Guru Good Answer Guru Yearling Pundit Good Answer Good Answer Nice Answer Good Answer Nice Answer Enlightened Nice Answer matrix scipy Nice Answer Good Answer Nice Answer Enlightened Guru python-3.x Good Answer Strunk & White statistics Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Good Answer Good Answer Nice Answer Guru Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Revival Good Answer performance Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer signal-processing Good Answer Nice Answer Enlightened Quorum Nice Answer Enlightened Guru pandas Nice Answer Caucus Nice Answer arrays Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer matlab Nice Answer Guru Nice Answer Nice Answer Sportsmanship Yearling Guru Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Nice Answer Necromancer Revival Nice Answer Nice Answer Good Answer sparse-matrix Nice Answer Enlightened Nice Answer vectorization Nice Answer Nice Answer Enlightened Good Answer Necromancer Electorate Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Autobiographer Nice Answer Enlightened Nice Answer Enlightened Good Answer Great Answer Nice Answer Nice Answer Enlightened,NULL,pThe href https en wikipedia org wiki Poisson distribution rel nofollow noreferrer Poisson distribution implemented in scipy as href http docs scipy org doc scipy reference generated scipy stats poisson html rel nofollow noreferrer codescipy stats poisson code is href http mathworld wolfram com DiscreteDistribution html rel nofollow noreferrer emdiscrete em distribution The discrete distributions in scipy do not have codefit code method ppI not very familiar with the href https stanford edu mwaskom software seaborn generated seaborn distplot html rel nofollow noreferrer codeseaborn distplot code function but it appears to assume that the data comes from continuous distribution If that is the case then even if codescipy stats poisson code had codefit code method it would not be an appropriate distribution to pass to codedistplot code phrpThe question title is How to fit poisson distribution with seaborn so for the sake of completeness here one way to get plot of the data and its fit codeseaborn code is only used for the bar plot using suggestion to use codeseaborn countplot code The fitting is actually trivial because the maximum likelihood estimation for the Poisson distribution is simply the mean of the data ppFirst the imports ppre codeIn 136 import numpy as npIn 137 from scipy stats import poissonIn 138 import matplotlib pyplot as pltIn 139 import seaborn code prepGenerate some data to work with ppre codeIn 140 poisson rvs size 100 code prepThese are the values in the codex code ppre codeIn 141 np arange max In 142 kOut 142 array code prepUse codeseaborn countplot code to plot the data ppre codeIn 143 seaborn countplot order color alpha Out 143 lt matplotlib axes subplots AxesSubplot at 0x114700490 gt code prepThe maximum likelihood estimation of the Poisson parameter is simply the mean of the data ppre codeIn 144 mlest mean code prepUse codepoisson pmf code to get the expected probability and multiply by the size of the data set to get the expected counts and then plot using codematplotlib code The bars are the counts of the actual data and the dots are the expected counts of the fitted distribution ppre codeIn 145 plt plot poisson pmf mlest len go markersize Out 145 lt matplotlib lines Line2D at 0x114da74d0 gt code prep href https stack imgur com J2I40 png rel nofollow noreferrer img src https stack imgur com J2I40 png alt plot Thanks for the tip added plot generated with countplot to the answer pYou could skip the use of buttord and instead just pick an order for the filter and see if it meets your filtering criterion To generate the filter coefficients for bandpass filter give butter the filter order the cutoff frequencies codeWn low high code expressed as the fraction of the Nyquist frequency which is half the sampling frequency and the band type codebtype band code ppHere script that defines couple convenience functions for working with Butterworth bandpass filter When run as script it makes two plots One shows the frequency response at several filter orders for the same sampling rate and cutoff frequencies The other plot demonstrates the effect of the filter with order on sample time series ppre codefrom scipy signal import butter lfilterdef butter bandpass lowcut highcut fs order nyq fs low lowcut nyq high highcut nyq butter order low high btype band return adef butter bandpass filter data lowcut highcut fs order butter bandpass lowcut highcut fs order order lfilter data return yif name main import numpy as np import matplotlib pyplot as plt from scipy signal import freqz Sample rate and desired cutoff frequencies in Hz fs 5000 lowcut 500 highcut 1250 Plot the frequency response for few different orders plt figure plt clf for order in butter bandpass lowcut highcut fs order order freqz worN 2000 plt plot fs np pi abs label order order plt plot fs np sqrt np sqrt label sqrt plt xlabel Frequency Hz plt ylabel Gain plt grid True plt legend loc best Filter noisy signal 05 nsamples fs np linspace nsamples endpoint False 02 f0 600 np sin np pi np sqrt 01 np cos np pi 312 np cos np pi f0 11 03 np cos np pi 2000 plt figure plt clf plt plot label Noisy signal butter bandpass filter lowcut highcut fs order plt plot label Filtered signal Hz f0 plt xlabel time seconds plt hlines linestyles plt grid True plt axis tight plt legend loc upper left plt show code prepHere are the plots that are generated by this script pp img src https stack imgur com DZJox png alt Frequency response for several filter orders pp img src https stack imgur com VQNYG png alt enter image description here That the phase delay of the filter at that frequency The phase delay sinusoid through Butterworth filter depends nonlinearly on the frequency For zero phase delay yes you can used filtfilt My answer here http stackoverflow com questions 28536191 how to filter smooth with scipy numpy 28541805 28541805 includes an example of using filtfilt to avoid lag induced by the filter pYou could skip the use of buttord and instead just pick an order for the filter and see if it meets your filtering criterion To generate the filter coefficients for bandpass filter give butter the filter order the cutoff frequencies codeWn low high code expressed as the fraction of the Nyquist frequency which is half the sampling frequency and the band type codebtype band code ppHere script that defines couple convenience functions for working with Butterworth bandpass filter When run as script it makes two plots One shows the frequency response at several filter orders for the same sampling rate and cutoff frequencies The other plot demonstrates the effect of the filter with order on sample time series ppre codefrom scipy signal import butter lfilterdef butter bandpass lowcut highcut fs order nyq fs low lowcut nyq high highcut nyq butter order low high btype band return adef butter bandpass filter data lowcut highcut fs order butter bandpass lowcut highcut fs order order lfilter data return yif name main import numpy as np import matplotlib pyplot as plt from scipy signal import freqz Sample rate and desired cutoff frequencies in Hz fs 5000 lowcut 500 highcut 1250 Plot the frequency response for few different orders plt figure plt clf for order in butter bandpass lowcut highcut fs order order freqz worN 2000 plt plot fs np pi abs label order order plt plot fs np sqrt np sqrt label sqrt plt xlabel Frequency Hz plt ylabel Gain plt grid True plt legend loc best Filter noisy signal 05 nsamples fs np linspace nsamples endpoint False 02 f0 600 np sin np pi np sqrt 01 np cos np pi 312 np cos np pi f0 11 03 np cos np pi 2000 plt figure plt clf plt plot label Noisy signal butter bandpass filter lowcut highcut fs order plt plot label Filtered signal Hz f0 plt xlabel time seconds plt hlines linestyles plt grid True plt axis tight plt legend loc upper left plt show code prepHere are the plots that are generated by this script pp img src https stack imgur com DZJox png alt Frequency response for several filter orders pp img src https stack imgur com VQNYG png alt enter image description here Hey Jason recommend asking questions about signal processing theory over at https dsp stackexchange com If you have question about some code you wrote that isn working as expected you can start new question here on stackoverflow,1,NULL,How to fit poisson distribution with seaborn scipy seaborn poisson pI try to fit my data to poisson distribution ppre codeimport seaborn as snsimport scipy stats as statssns distplot kde False fit stats poisson code prepBut get this error ppAttributeError poisson gen object has no attribute fit ppOther distribution gamma etc de work well pThe href https en wikipedia org wiki Poisson distribution rel nofollow noreferrer Poisson distribution implemented in scipy as href http docs scipy org doc scipy reference generated scipy stats poisson html rel nofollow noreferrer codescipy stats poisson code is href http mathworld wolfram com DiscreteDistribution html rel nofollow noreferrer emdiscrete em distribution The discrete distributions in scipy do not have codefit code method ppI not very familiar with the href https stanford edu mwaskom software seaborn generated seaborn distplot html rel nofollow noreferrer codeseaborn distplot code function but it appears to assume that the data comes from continuous distribution If that is the case then even if codescipy stats poisson code had codefit code method it would not be an appropriate distribution to pass to codedistplot code phrpThe question title is How to fit poisson distribution with seaborn so for the sake of completeness here one way to get plot of the data and its fit codeseaborn code is only used for the bar plot using suggestion to use codeseaborn countplot code The fitting is actually trivial because the maximum likelihood estimation for the Poisson distribution is simply the mean of the data ppFirst the imports ppre codeIn 136 import numpy as npIn 137 from scipy stats import poissonIn 138 import matplotlib pyplot as pltIn 139 import seaborn code prepGenerate some data to work with ppre codeIn 140 poisson rvs size 100 code prepThese are the values in the codex code ppre codeIn 141 np arange max In 142 kOut 142 array code prepUse codeseaborn countplot code to plot the data ppre codeIn 143 seaborn countplot order color alpha Out 143 lt matplotlib axes subplots AxesSubplot at 0x114700490 gt code prepThe maximum likelihood estimation of the Poisson parameter is simply the mean of the data ppre codeIn 144 mlest mean code prepUse codepoisson pmf code to get the expected probability and multiply by the size of the data set to get the expected counts and then plot using codematplotlib code The bars are the counts of the actual data and the dots are the expected counts of the fitted distribution ppre codeIn 145 plt plot poisson pmf mlest len go markersize Out 145 lt matplotlib lines Line2D at 0x114da74d0 gt code prep href https stack imgur com J2I40 png rel nofollow noreferrer img src https stack imgur com J2I40 png alt plot How to create random orthonormal matrix in python numpy python numpy linear algebra orthogonal pIs there method that can call to create random orthonormal matrix in python Possibly using numpy Or is there way to create orthonormal matrix using multiple numpy methods Thanks pVersion 18 of scipy has href http scipy github io devdocs generated scipy stats ortho group html rel noreferrer codescipy stats ortho group code and href http scipy github io devdocs generated scipy stats special ortho group html rel noreferrer codescipy stats special ortho group code The pull request where it was added is href https github com scipy scipy pull 5622 rel noreferrer https github com scipy scipy pull 5622 ppFor example ppre codeIn 24 from scipy stats import ortho group Requires version 18 of scipyIn 25 ortho group rvs dim In 26 mOut 26 array 23939017 58743526 77305379 81921268 30515101 48556508 52113619 74953498 40818426 In 27 np set printoptions suppress True In 28 dot Out 28 array code pre 80058,437693,3871,Favorite Question Yearling,NULL,NULL,0,NULL,NULL 80059,55801,828469,NULL,NULL,NULL,0,NULL,NULL 80060,1530803,700004,NULL,NULL,NULL,0,NULL,NULL 80061,435151,333898,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80062,970144,863840,NULL,NULL,NULL,0,NULL,NULL 80063,1857378,1345275,NULL,NULL,NULL,0,NULL,NULL 80064,11129516,1345275,NULL,NULL,NULL,0,NULL,NULL 80065,114222,374400,Popular Question,NULL,NULL,0,NULL,NULL 80066,105868,1237476,NULL,NULL,NULL,0,NULL,NULL 80067,866648,1080527,NULL,NULL,NULL,0,NULL,NULL 80068,120468,116952,Popular Question Popular Question Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 80069,765253,531036,Reviewer Nice Answer python Good Answer Nice Answer Enlightened Caucus Yearling Guru Nice Answer Enlightened beautifulsoup Nice Answer Enlightened Good Answer Yearling Necromancer Announcer Popular Question Guru Good Answer list,NULL,NULL,0,NULL,NULL 80070,209219,640126,NULL,NULL,NULL,0,NULL,NULL 80071,504490,792916,Yearling Nice Answer Civic Duty,NULL,NULL,0,NULL,NULL 80072,19930,272034,Good Answer Yearling Nice Answer Good Answer Nice Answer Guru Guru Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80073,1124264,876614,NULL,NULL,NULL,0,NULL,NULL 80074,1197350,1399509,NULL,NULL,NULL,0,NULL,NULL 80075,48584,1024897,NULL,NULL,NULL,0,NULL,NULL 80076,225576,869736,Nice Answer Good Answer Nice Answer Enlightened Nice Answer java-8 Popular Question Nice Answer Enlightened Nice Answer Enlightened Good Answer functional-programming Nice Question Popular Question Nice Answer Enlightened Good Answer Nice Answer double Populist Nice Answer Enlightened Nice Answer set Good Answer casting Nice Answer Enlightened Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Guru Great Answer Nice Answer Guru Nice Answer Good Answer enums Nice Question Populist Yearling Nice Answer Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Enlightened Guru Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Popular Question Nice Answer Nice Answer Good Answer iterator Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Enlightened Great Answer Nice Answer Enlightened Good Answer Guru Good Answer java-stream Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Notable Question Notable Question Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened memory Nice Answer Enlightened Nice Answer Popular Question Good Answer interface Nice Answer Enlightened Nice Answer Enlightened hash Announcer Yearling Nice Answer Enlightened inheritance Nice Answer Enlightened Good Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Good Answer arraylist Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Notable Question Good Answer Nice Answer Enlightened Caucus Popular Question Announcer Nice Answer Publicist Nice Answer comparator Nice Answer Good Answer Guru Nice Answer Good Answer Necromancer bigdecimal Necromancer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Guru Nice Answer Great Question Great Answer Guru Good Answer Nice Answer Enlightened Good Answer Good Answer Great Answer,NULL,Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM the OP isn doing on two NaNs they re doing on two long Java Math rint not behaving as expected when using NaN java floating point nan pThe javadoc for codeMath rint code says If the argument is NaN or an infinity or positive zero or negative zero then the result is the same as the argument However the following is false ppre class lang java prettyprint override codepublic static void main String args throws Throwable double nan Double NaN System out println Double doubleToRawLongBits nan Double doubleToRawLongBits Math rint nan code prepI am writing compiler and need the bits on NaN preserved Is this bug in the docs or in the runtime Or does same not mean the same to me as it does in Java ppI assume have to codeDouble isNaN code before the coderint code call and actually keep the same arguments to preserve my compiler semantics ppEDIT This is not duplicate of href https stackoverflow com questions 25050133 are the bit patterns of nans really hardware dependent this question My question is about the javadoc and or the JVM being wrong in its coderint code implementation that one is about whether something is cross platform Please do not mark the question as duplicate just because both deal alternate forms of NaN on the JVM Definitely there are many possible outputs on NaNs and that what the OP is running into would be moderately surprised if there were anything that could be done about this and if Java cared about the exact NaN that got returned,0,NULL,NULL 80077,1071304,1324481,NULL,NULL,NULL,0,NULL,NULL 80078,6644862,328632,NULL,NULL,NULL,0,NULL,NULL 80079,136050,111375,Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Guru Good Question Disciplined Nice Question Guru Nice Question Nice Answer Good Answer Popular Question Popular Question Custodian Custodian Custodian Popular Question Citizen Patrol Yearling Notable Question django Famous Question Documentation User Popular Question Census Yearling Nice Question Stellar Question Good Question Notable Question Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 80080,250970,1378351,NULL,NULL,NULL,0,NULL,NULL 80081,695321,1518632,NULL,NULL,NULL,0,NULL,NULL 80082,228587,1128701,Not a Robot,NULL,NULL,0,NULL,NULL 80083,1316450,839564,NULL,NULL,NULL,0,NULL,NULL 80084,887515,1456386,NULL,NULL,NULL,0,NULL,NULL 80085,139052,369833,Yearling Guru Excavator Caucus Yearling Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 80086,240632,345336,NULL,NULL,NULL,0,NULL,NULL 80087,107780,182069,Yearling Popular Question,NULL,NULL,0,NULL,NULL 80088,63404,334575,NULL,NULL,NULL,0,NULL,NULL 80089,16700,383349,Popular Question,NULL,NULL,0,NULL,NULL 80090,424860,29025,NULL,NULL,NULL,0,NULL,NULL 80091,62894,4682,Famous Question Good Question Nice Question Yearling Great Answer Nice Answer Yearling Yearling Civic Duty,NULL,NULL,0,NULL,NULL 80092,58193,178774,Commentator Critic Notable Question Self-Learner Caucus,NULL,NULL,0,NULL,NULL 80093,341986,773072,NULL,NULL,NULL,0,NULL,NULL 80094,722996,908463,NULL,NULL,NULL,0,NULL,NULL 80095,13271,47158,NULL,NULL,NULL,0,NULL,NULL 80096,137300,846909,NULL,NULL,NULL,0,NULL,NULL 80097,716713,687928,NULL,NULL,NULL,0,NULL,NULL 80098,39505,746057,Yearling Yearling,NULL,NULL,0,NULL,NULL 80099,54876,229999,Necromancer Nice Answer Yearling Guru Guru Yearling Good Answer,NULL,NULL,0,NULL,NULL 80100,296470,1256804,Notable Question,NULL,NULL,0,NULL,NULL 80101,174228,1078247,NULL,NULL,NULL,0,NULL,NULL 80102,827002,1146983,Popular Question,NULL,NULL,0,NULL,NULL 80103,104516,327830,NULL,NULL,NULL,0,NULL,NULL 80104,91287,866026,markdown Critic Custodian Custodian Custodian Nice Answer Custodian Custodian Yearling Explainer Announcer Announcer Revival Announcer Nice Answer Announcer Nice Answer Enlightened Good Answer Booster Announcer Announcer Yearling Booster Announcer Publicist Booster python Announcer Revival Announcer Nice Answer Enlightened Announcer Announcer Announcer markdown Necromancer Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Nice Answer Enlightened Announcer Announcer Great Answer Guru Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Booster Announcer Yearling Popular Question Announcer github,NULL,NULL,0,NULL,NULL 80105,2201480,428225,Necromancer Nice Answer Yearling Necromancer,NULL,NULL,0,NULL,NULL 80106,752108,241782,Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 80107,46749,1032941,NULL,NULL,NULL,0,NULL,NULL 80108,27882,337789,NULL,NULL,NULL,0,NULL,NULL 80109,142073,587912,NULL,NULL,NULL,0,NULL,NULL 80110,864183,587912,NULL,NULL,NULL,0,NULL,NULL 80111,855859,127566,Caucus Notable Question,NULL,NULL,0,NULL,NULL 80112,1190451,381336,NULL,NULL,NULL,0,NULL,NULL 80113,102510,1072902,NULL,NULL,NULL,0,NULL,NULL 80114,621343,25690,NULL,NULL,NULL,0,NULL,NULL 80115,21022,156888,NULL,NULL,NULL,0,NULL,NULL 80116,340879,204523,NULL,NULL,NULL,0,NULL,NULL 80117,1725529,38403,Custodian Notable Question Great Question Good Question Popular Question Yearling Nice Answer Famous Question Famous Question Nice Question Good Question Electorate Caucus Constituent Good Question Yearling Census Caucus Tag Editor Yearling,NULL,NULL,0,NULL,NULL 80118,207837,514781,Popular Question Yearling Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 80119,7740963,697831,Teacher Necromancer Tumbleweed Nice Answer Supporter,NULL,NULL,0,NULL,NULL 80120,390588,697831,Teacher Necromancer Tumbleweed Nice Answer Supporter,NULL,NULL,0,NULL,NULL 80121,41811,365701,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 80122,387319,534356,NULL,NULL,NULL,0,NULL,NULL 80123,406743,540737,NULL,NULL,NULL,0,NULL,NULL 80124,12640,492876,NULL,NULL,NULL,0,NULL,NULL 80125,192400,451194,NULL,NULL,NULL,0,NULL,NULL 80126,7967345,451194,NULL,NULL,NULL,0,NULL,NULL 80127,487100,268581,Nice Question Electorate Famous Question Notable Question Yearling Popular Question Popular Question Popular Question Necromancer Nice Answer Nice Question Popular Question Yearling Notable Question Famous Question Popular Question Revival Popular Question Nice Answer Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 80128,557550,341106,Yearling Famous Question Famous Question Caucus Constituent Good Answer Yearling Notable Question Notable Question Notable Question Nice Question Yearling Good Answer Nice Answer Enlightened Revival Good Answer Guru,NULL,NULL,0,NULL,NULL 80129,7730642,267416,Yearling Good Question Famous Question Custodian Notable Question Guru Famous Question Notable Question Favorite Question Popular Question Self-Learner Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Custodian Yearling Notable Question Popular Question Popular Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,1,Know what event triggered the after commit of an ActiveRecord model ruby on rails ruby ruby on rails activerecord rails activerecord pI have the following snippet ppre codeclass Product after commit do something on update create def do something if update else create end endend code prep strongHow to know what event triggered the after commit here strong ppPlease don tell me to have after commits like ppre codeafter commit do something on update on updateafter commit do something on create on create code pre,NULL 80130,516327,267416,Yearling Good Question Famous Question Custodian Notable Question Guru Famous Question Notable Question Favorite Question Popular Question Self-Learner Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Custodian Yearling Notable Question Popular Question Popular Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,1,Know what event triggered the after commit of an ActiveRecord model ruby on rails ruby ruby on rails activerecord rails activerecord pI have the following snippet ppre codeclass Product after commit do something on update create def do something if update else create end endend code prep strongHow to know what event triggered the after commit here strong ppPlease don tell me to have after commits like ppre codeafter commit do something on update on updateafter commit do something on create on create code pre,NULL 80131,163567,267416,Yearling Good Question Famous Question Custodian Notable Question Guru Famous Question Notable Question Favorite Question Popular Question Self-Learner Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Notable Question Custodian Yearling Notable Question Popular Question Popular Question Good Question Great Question Famous Question Popular Question Popular Question Nice Answer Notable Question Popular Question,NULL,NULL,1,Know what event triggered the after commit of an ActiveRecord model ruby on rails ruby ruby on rails activerecord rails activerecord pI have the following snippet ppre codeclass Product after commit do something on update create def do something if update else create end endend code prep strongHow to know what event triggered the after commit here strong ppPlease don tell me to have after commits like ppre codeafter commit do something on update on updateafter commit do something on create on create code pre,NULL 80132,1153,869815,NULL,NULL,NULL,0,NULL,NULL 80133,841148,706399,NULL,NULL,NULL,0,NULL,NULL 80134,18310,293461,Teacher Tumbleweed Curious,NULL,NULL,0,NULL,NULL 80135,284397,1535112,Popular Question,NULL,NULL,0,NULL,NULL 80136,1258804,1333931,Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Nice Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 80137,1710966,1333931,Popular Question Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Nice Question Caucus Yearling Famous Question,NULL,NULL,0,NULL,NULL 80138,324822,1272997,NULL,NULL,NULL,0,NULL,NULL 80139,33131,1045897,Revival Yearling Critic Necromancer Editor Enthusiast Peer Pressure Yearling Necromancer,NULL,NULL,0,NULL,NULL 80140,699594,1059310,NULL,NULL,NULL,0,NULL,NULL 80141,340010,187784,NULL,NULL,NULL,0,NULL,NULL 80142,4430640,1084869,NULL,NULL,NULL,0,NULL,NULL 80143,672951,426557,Good Answer,NULL,NULL,0,NULL,NULL 80144,439718,39666,Excavator Popular Question Good Question Notable Question Yearling Popular Question Nice Question Stellar Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 80145,40884,1525767,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 80146,34538,181669,Commentator Good Question,NULL,NULL,0,NULL,NULL 80147,1521973,1138455,Yearling Custodian Nice Answer Popular Question Notable Question Yearling Notable Question Custodian Famous Question Popular Question Caucus Constituent Notable Question Popular Question Nice Question Tag Editor Yearling Caucus Constituent Popular Question Notable Question Self-Learner Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80148,406216,1299271,Popular Question,NULL,NULL,0,NULL,NULL 80149,468418,815141,NULL,NULL,NULL,0,NULL,NULL 80150,256009,1553198,NULL,NULL,NULL,0,NULL,NULL 80151,304324,334348,NULL,NULL,NULL,0,NULL,NULL 80152,235342,1449981,NULL,NULL,NULL,0,NULL,NULL 80153,217911,1480571,Teacher,NULL,NULL,0,NULL,NULL 80154,53297,386279,Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Question Nice Question Good Question Famous Question Nice Answer Famous Question Famous Question Yearling Nice Answer Popular Question Good Question Nice Answer Famous Question Popular Question Nice Answer Notable Question Popular Question Nice Question Nice Question Good Answer Nice Answer Necromancer Nice Question Favorite Question Good Question Favorite Question Yearling Famous Question Good Question Notable Question Good Question Documentation User Famous Question Popular Question Favorite Question Announcer Announcer Notable Question Good Answer Popular Question Nice Question Good Question Good Question Announcer Good Answer Popular Question Notable Question Announcer Necromancer Yearling Great Question Popular Question Great Question Nice Question,NULL,NULL,0,NULL,NULL 80155,1387089,1465135,NULL,NULL,NULL,0,NULL,NULL 80156,105229,388173,Commentator Announcer,NULL,NULL,0,NULL,NULL 80157,247183,1058853,Famous Question Yearling Popular Question Nice Answer Enlightened Notable Question Yearling Nice Answer Enlightened Good Question Yearling,NULL,NULL,0,NULL,NULL 80158,320782,674371,NULL,NULL,NULL,0,NULL,NULL 80159,74291,935514,Yearling Nice Answer Enlightened Revival Necromancer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 80160,116717,475044,Excavator Popular Question Organizer Teacher,NULL,NULL,0,NULL,NULL 80161,201099,1017912,NULL,NULL,,0,, 80162,795193,792945,NULL,NULL,NULL,0,NULL,NULL 80163,8415,953675,NULL,NULL,NULL,0,NULL,NULL 80164,8450,953675,NULL,NULL,NULL,0,NULL,NULL 80165,9730,927657,NULL,NULL,NULL,0,NULL,NULL 80166,175020,1240752,NULL,NULL,NULL,0,NULL,NULL 80167,206041,1239738,NULL,NULL,NULL,0,NULL,NULL 80168,407168,1431655,NULL,NULL,NULL,0,NULL,NULL 80169,1427259,807836,Yearling Yearling Guru Great Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80170,749050,1485484,NULL,NULL,NULL,0,NULL,NULL 80171,297588,186648,NULL,NULL,NULL,0,NULL,NULL 80172,297192,133028,NULL,NULL,NULL,0,NULL,NULL 80173,11131,1242090,NULL,NULL,NULL,0,NULL,NULL 80174,11996,127305,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 80175,7725112,127305,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 80176,279771,168701,NULL,NULL,NULL,0,NULL,NULL 80177,1140381,181,Favorite Question Popular Question Nice Answer Yearling Good Question Notable Question Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80178,1234256,310268,NULL,NULL,NULL,0,NULL,NULL 80179,233903,720585,Revival,NULL,NULL,0,NULL,NULL 80180,1085181,628626,NULL,NULL,NULL,0,NULL,NULL 80181,27917,813698,NULL,NULL,NULL,0,NULL,NULL 80182,11942,222893,Suffrage Reviewer Popular Question Yearling Revival Necromancer Notable Question Necromancer Caucus Custodian Custodian Custodian Constituent Custodian Notable Question Explainer Revival Citizen Patrol Great Answer Yearling Census Caucus Constituent Nice Question,NULL,h3To push all branches to all remotes h3pre codegit remote xargs L1 git push all code preh3Or if you want to push specific branch to all remotes h3pReplace codemaster code with the branch you want to push ppre codegit remote xargs L1 git push master code preh3 Bonus To make git alias for the command h3pre codegit config global alias pushall git remote xargs L1 git push all code prepRunning codegit pushall code will now push all branches to all remotes In git alias syntax means the following is not an internal git command but an external shell command,0,NULL,NULL 80183,296841,1171712,NULL,NULL,NULL,0,NULL,NULL 80184,446070,886987,NULL,NULL,NULL,0,NULL,NULL 80185,239098,668805,Supporter,NULL,NULL,0,NULL,NULL 80186,338851,171685,Yearling,NULL,NULL,0,NULL,NULL 80187,212897,400956,NULL,NULL,NULL,0,NULL,NULL 80188,213131,184100,Famous Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 80189,101688,1024714,NULL,NULL,NULL,0,NULL,NULL 80190,436162,1503385,Teacher Supporter,NULL,NULL,0,NULL,NULL 80191,139559,62421,Yearling Disciplined Necromancer Custodian Nice Answer Guru Custodian django Yearling Nice Question Nice Answer Announcer Good Answer Caucus Constituent Nice Answer Documentation User Popular Question Booster Yearling Great Answer,NULL,NULL,0,NULL,NULL 80192,12960,399175,Good Answer Yearling Yearling Commentator Custodian Critic,NULL,NULL,0,NULL,NULL 80193,615887,938962,NULL,NULL,NULL,0,NULL,NULL 80194,291457,248848,Popular Question Yearling Popular Question Popular Question Nice Question Nice Question Notable Question Famous Question Great Question Popular Question Nice Answer Good Answer Popular Question Nice Question Popular Question Good Question Yearling Nice Question Notable Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Nice Question Famous Question Nice Answer Nice Question Yearling Nice Question Popular Question Good Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 80195,99518,41874,Necromancer Yearling Nice Answer Enlightened Nice Answer Enlightened Necromancer Nice Answer Yearling Good Answer Good Answer Good Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 80196,266555,358948,NULL,NULL,NULL,0,NULL,NULL 80197,111043,1364614,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80198,162899,91874,Popular Question Famous Question Notable Question Notable Question Famous Question Famous Question Good Question,NULL,NULL,0,NULL,NULL 80199,54867,949444,Yearling,NULL,NULL,0,NULL,NULL 80200,1105254,549437,NULL,NULL,NULL,0,NULL,NULL 80201,350071,683583,NULL,NULL,NULL,0,NULL,NULL 80202,2288361,1273624,NULL,NULL,NULL,0,NULL,NULL 80203,27218,582430,NULL,NULL,NULL,0,NULL,NULL 80204,224964,23335,Yearling Good Question Popular Question Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 80205,12761,435224,Popular Question Popular Question Famous Question Popular Question Famous Question Yearling Nice Question Nice Question Popular Question Notable Question Good Question Yearling Popular Question Popular Question Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80206,123931,560465,Critic Tag Editor Informed Tumbleweed Yearling Commentator Caucus Caucus Popular Question,NULL,NULL,0,NULL,NULL 80207,486676,631540,Supporter Critic Popular Question,NULL,NULL,0,NULL,NULL 80208,948283,1427261,Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 80209,8306598,1427261,Popular Question Caucus Notable Question,NULL,NULL,0,NULL,NULL 80210,83249,550096,Popular Question,NULL,NULL,0,NULL,NULL 80211,928968,665544,NULL,NULL,NULL,0,NULL,NULL 80212,323146,1427865,NULL,NULL,NULL,0,NULL,NULL 80213,507070,583068,NULL,NULL,NULL,0,NULL,NULL 80214,60127,520114,Great Answer Caucus Yearling symfony Good Answer Notable Question Revival Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 80215,6886647,1227600,NULL,NULL,NULL,0,NULL,NULL 80216,48740,619659,Popular Question Popular Question Yearling Necromancer Caucus Notable Question Revival,NULL,NULL,0,NULL,NULL 80217,97786,1050977,NULL,NULL,NULL,0,NULL,NULL 80218,44475,826884,NULL,NULL,NULL,0,NULL,NULL 80219,328287,1029693,Notable Question Civic Duty Curious Documentation User Popular Question,NULL,NULL,0,NULL,NULL 80220,15112,1418977,Necromancer,NULL,NULL,0,NULL,NULL 80221,267831,1245369,NULL,NULL,NULL,0,NULL,NULL 80222,70573,1561023,Popular Question,NULL,NULL,0,NULL,NULL 80223,1359700,546275,NULL,NULL,NULL,0,NULL,NULL 80224,427292,125314,NULL,NULL,NULL,0,NULL,NULL 80225,1056487,579084,Notable Question,NULL,NULL,0,NULL,NULL 80226,152416,1060364,NULL,NULL,NULL,0,NULL,NULL 80227,388260,558873,Yearling Enthusiast Revival Necromancer Popular Question Caucus Citizen Patrol Yearling Nice Answer Necromancer Revival,NULL,NULL,0,NULL,NULL 80228,3876488,950015,Popular Question,NULL,NULL,0,NULL,NULL 80229,1261361,950015,Popular Question,NULL,NULL,0,NULL,NULL 80230,12063,518879,Necromancer Revival Yearling Yearling Nice Answer Excavator Yearling Revival Caucus Nice Answer Yearling Announcer,NULL,pThis is really just an explaination of href https stackoverflow com users 312866 yuzem title Yuzem Yuzem answer but didn feel like this much editing should be done to someone else and comments don allow formatting so ppre coderdom local IFS gt read lt code prepLet call that read dom instead of rdom space it out bit and use longer variables ppre coderead dom local IFS gt read lt ENTITY CONTENT code prepOkay so it defines function called read dom The first line makes IFS the input field separator local to this function and changes it to That means that when you read data instead of automatically being split on space tab or newlines it gets split on The next line says to read input from stdin and instead of stopping at newline stop when you see lt character the for deliminator flag What is read is then split using the IFS and assigned to the variable ENTITY and CONTENT So take the following ppre code lt tag gt value lt tag gt code prepThe first call to coderead dom code get an empty string since the lt is the first character That gets split by IFS into just since there isn character Read then assigns an empty string to both variables The second call gets the string tagvalue That gets split then by the IFS into the two fields tag and value Read then assigns the variables like codeENTITY tag code and codeCONTENT value code The third call gets the string tag That gets split by the IFS into the two fields tag and Read then assigns the variables like codeENTITY tag code and codeCONTENT code The fourth call will return non zero status because we ve reached the end of file ppNow his while loop cleaned up bit to match the above ppre codewhile read dom do if ENTITY title then echo CONTENT exit fidone lt xhtmlfile xhtml gt titleOfXHTMLPage txt code prepThe first line just says while the read dom functionreturns zero status do the following The second line checks if the entity we ve just seen is title The next line echos the content of the tag The four line exits If it wasn the title entity then the loop repeats on the sixth line We redirect xhtmlfile xhtml into standard input for the coderead dom code function and redirect standard output to titleOfXHTMLPage txt the echo from earlier in the loop ppNow given the following similar to what you get from listing bucket on S3 for codeinput xml code ppre code lt ListBucketResult xmlns http s3 amazonaws com doc 2006 03 01 gt lt Name gt sth items lt Name gt lt IsTruncated gt false lt IsTruncated gt lt Contents gt lt Key gt item apple iso png lt Key gt lt LastModified gt 2011 07 25T22 23 04 000Z lt LastModified gt lt ETag gt amp quot 0032a28286680abee71aed5d059c6a09 amp quot lt ETag gt lt Size gt 1785 lt Size gt lt StorageClass gt STANDARD lt StorageClass gt lt Contents gt lt ListBucketResult gt code prepand the following loop ppre codewhile read dom do echo ENTITY gt CONTENT done lt input xml code prepYou should get ppre class lang none prettyprint override code gt ListBucketResult xmlns http s3 amazonaws com doc 2006 03 01 gt Name gt sth items Name gt IsTruncated gt false IsTruncated gt Contents gt Key gt item apple iso png Key gt LastModified gt 2011 07 25T22 23 04 000Z LastModified gt ETag gt amp quot 0032a28286680abee71aed5d059c6a09 amp quot ETag gt Size gt 1785 Size gt StorageClass gt STANDARD StorageClass gt Contents gt code prepSo if we wrote codewhile code loop like Yuzem ppre codewhile read dom do if ENTITY Key then echo CONTENT fidone lt input xml code prepWe get listing of all the files in the S3 bucket pp strongEDIT strongIf for some reason codelocal IFS gt code doesn work for you and you set it globally you should reset it at the end of the function like ppre coderead dom ORIGINAL IFS IFS IFS gt read lt ENTITY CONTENT IFS ORIGINAL IFS code prepOtherwise any line splitting you do later in the script will be messed up pp strongEDIT strongTo split out attribute name value pairs you can augment the coderead dom code like so ppre coderead dom local IFS gt read lt ENTITY CONTENT local ret TAG NAME ENTITY ATTRIBUTES ENTITY return ret code prepThen write your function to parse and get the data you want like this ppre codeparse dom if TAG NAME foo then eval local ATTRIBUTES echo foo size is size elif TAG NAME bar then eval local ATTRIBUTES echo bar type is type fi code prepThen while you coderead dom code call codeparse dom code ppre codewhile read dom do parse domdone code prepThen given the following example markup ppre code lt example gt lt bar size bar size type metal gt bars content lt bar gt lt foo size 1789 type unknown gt foos content lt foo gt lt example gt code prepYou should get this output ppre code cat example xml bash xml sh bar type is metalfoo size is 1789 code prep strongEDIT strong another href https stackoverflow com users 1486208 andi title Andi user said they were having problems with it in FreeBSD and suggested saving the exit status from read and returning it at the end of read dom like ppre coderead dom local IFS gt read lt ENTITY CONTENT local RET TAG NAME ENTITY ATTRIBUTES ENTITY return RET code prepI don see any reason why that shouldn work xml has nested structure you can have the same entity names with this way you lost this nested structure Meaning you can fetch the information you need Especially when the entity names are the same eg cars car typeVolvo type car car typeAudio type car cars It even worse when you want the list of all the cars How do you mock MySQL without an ORM in Node js mysql node js mocking vows sinon pI using codeNode js code with felixge href https github com felixge node mysql rel noreferrer codenode mysql code client am not using an ORM ppI testing with Vows and want to be able to mock my database possibly using Sinon Since don really have DAL per se aside from codenode mysql code not really sure how to go about this My models are mostly simple CRUD with lot of getters ppAny ideas on how to accomplish this Anybody using Jest with the same problem pIt turns out that mysql real escape string is pretty trivial href http php net manual en function mysql real escape string php rel noreferrer According to the documentation pblockquote strongmysql real escape string strong calls MySQL library function mysql real escape string which prepends backslashes to the following characters x00 and x1a blockquotepSounds pretty simple actually You could do something like this ppre codefunction mysql real escape string str return str replace x08 x09 x1a function char switch char case return case x08 return case x09 return case x1a return case return case return case case case case return char prepends backslash to backslash percent and double single quotes code prep strongNOTE strong haven run this through any sort of unit test or security test but it does seem to work and just as an added bonus it escapes tabs backspaces and so it can also be used in LIKE queries as per href https www owasp org index php SQL Injection Prevention Cheat Sheet MySQL Escaping rel noreferrer OWASP recommendations unlike the PHP original ppI do know that codemysql real escape string code is character set aware but not sure what benefit that adds ppThere good discussion of these issues href https stackoverflow com questions 229889 sanitizing mysql user parameters over here Javascript Standard gives me Unexpected control character in regular expression x08 x09 x1a And Unnecessary escape character Help,0,NULL,NULL 80231,141266,61160,NULL,NULL,NULL,0,NULL,NULL 80232,2061025,700227,Editor,NULL,NULL,0,NULL,NULL 80233,261547,700227,Editor,NULL,NULL,0,NULL,NULL 80234,364300,917198,Self-Learner Popular Question Yearling Revival Custodian Necromancer Yearling Necromancer,NULL,Are PHP short tags acceptable to use php coding style php shorttags pHere the information href http www php net manual en language basic syntax php rel noreferrer according to the official documentation pblockquote pThere are four different pairs of opening and closing tags which can be used in PHP Two of those code lt php gt code and code lt script language php gt lt script gt code are always available The other two are short tags and ASP style tags and can be turned on and off from the php ini configuration file As such while some people find short tags and ASP style tags convenient they are less portable and stronggenerally not recommended strong blockquotepIn my experience most servers emdo em have short tags enabled Typing ppre code lt code prepis far more convenient than typing ppre code lt php echo code prepThe programmers convenience is an important factor so strongwhy strong are they not recommended Fun fact had direct hand in convincing the PHP dev team to put into as always enabled When writing open source you have to assume short open tag is set to no but closed proprietary source code can be either way Even before found writing php echo or php print ad nauseam to be quite annoying and error prone and on internal systems enabled short open tag just to get access to,0,NULL,NULL 80235,54080,162087,Popular Question php Nice Answer Yearling Nice Answer Good Answer Nice Answer Nice Answer Nice Answer Yearling Great Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 80236,597605,464918,NULL,NULL,NULL,0,NULL,NULL 80237,1763,219743,Nice Answer phoenix-framework Nice Answer Enlightened Nice Answer Enlightened Notable Question json Nice Answer Enlightened ruby Nice Answer Enlightened Guru Good Answer Nice Answer Enlightened Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened elixir Nice Answer Enlightened Nice Answer Enlightened ruby-on-rails-3 Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened mysql Good Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Notable Question Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened ecto Nice Answer Enlightened Guru Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Guru html Nice Answer Populist Nice Answer Enlightened Caucus Constituent Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Nice Answer Enlightened Populist Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Nice Answer Enlightened Notable Question Generalist Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Great Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Enlightened Guru Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Guru Good Answer Nice Answer Enlightened Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened phoenix-framework Documentation User Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Yearling Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened activerecord Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Guru Nice Answer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Guru Good Answer Guru Nice Answer Enlightened Good Answer Great Answer Guru Nice Answer Enlightened Good Answer Nice Answer Guru Nice Answer Enlightened Guru Nice Answer Enlightened Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80238,203580,1354847,Popular Question,NULL,NULL,0,NULL,NULL 80239,38552,1272663,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80240,290394,5539,Revival Yearling Necromancer,NULL,NULL,0,NULL,NULL 80241,150291,931212,NULL,NULL,NULL,0,NULL,NULL 80242,3339539,40015,Revival Revival Notable Question Nice Answer Popular Question Notable Question Tumbleweed Custodian Custodian Custodian Notable Question Popular Question Yearling Nice Answer Favorite Question Census Nice Question Popular Question jquery Yearling Good Answer Census Custodian Popular Question Custodian Caucus Popular Question Famous Question Tenacious Popular Question Popular Question Tag Editor Yearling,NULL,NULL,0,NULL,NULL 80243,257828,1346849,NULL,NULL,NULL,0,NULL,NULL 80244,62312,336784,Great Answer Enthusiast Notable Question Yearling,NULL,NULL,0,NULL,NULL 80245,633261,514386,NULL,NULL,NULL,0,NULL,NULL 80246,328014,451733,NULL,NULL,NULL,0,NULL,NULL 80247,1335561,923592,Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80248,234004,891139,Editor Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80249,8135,6349,Favorite Question Yearling Great Answer Good Answer Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80250,3810306,783330,NULL,NULL,NULL,0,NULL,NULL 80251,602,783330,NULL,NULL,NULL,0,NULL,NULL 80252,169165,159475,Notable Question Nice Answer Notable Question Popular Question Yearling Nice Question Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 80253,193023,544113,Yearling Caucus,NULL,NULL,0,NULL,NULL 80254,2848814,583906,NULL,NULL,NULL,0,NULL,NULL 80255,35451,583906,NULL,NULL,NULL,0,NULL,NULL 80256,176684,1550514,Informed,NULL,NULL,0,NULL,NULL 80257,707095,1478302,Revival Excavator Necromancer,NULL,NULL,0,NULL,NULL 80258,319169,592751,Yearling Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80259,476105,257815,Notable Question Custodian Yearling Popular Question Famous Question Notable Question Good Answer Popular Question Popular Question Notable Question Yearling Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80260,88963,204210,Good Answer Great Answer javascript Nice Answer Yearling Guru Custodian Necromancer Good Answer Yearling Caucus Nice Answer Custodian Custodian Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80261,674631,469489,Yearling Organizer Yearling Custodian Revival Popular Question,NULL,NULL,0,NULL,NULL 80262,1445292,1462130,Editor Enthusiast Teacher,NULL,NULL,0,NULL,NULL 80263,489356,1181681,NULL,NULL,NULL,0,NULL,NULL 80264,224263,458467,NULL,NULL,NULL,0,NULL,NULL 80265,650308,351435,Popular Question Notable Question Notable Question Popular Question Popular Question Census Popular Question Custodian Famous Question Yearling Popular Question Nice Question Inquisitive,NULL,NULL,0,NULL,NULL 80266,759303,1530020,Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Nice Question Good Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 80267,129817,1530020,Popular Question Popular Question Nice Question Popular Question Yearling Famous Question Nice Question Good Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 80268,500500,1359007,Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80269,159063,477334,NULL,NULL,NULL,0,NULL,NULL 80270,109297,830975,NULL,NULL,NULL,0,NULL,NULL 80271,1516672,295171,Caucus Notable Question Popular Question,NULL,NULL,0,NULL,NULL 80272,170710,498216,NULL,NULL,NULL,0,NULL,NULL 80273,75262,99603,Informed Yearling Student Scholar Caucus,NULL,NULL,0,NULL,NULL 80274,103023,2606,Notable Question Yearling Notable Question Good Answer Yearling Guru Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80275,445022,323715,Yearling Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 80276,1196071,510080,Nice Answer,NULL,NULL,0,NULL,NULL 80277,195421,718268,NULL,NULL,NULL,0,NULL,NULL 80278,380755,974312,Nice Question Yearling Nice Question Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 80279,54979,1027695,Nice Answer,NULL,NULL,0,NULL,NULL 80280,160777,1299464,NULL,NULL,NULL,0,NULL,NULL 80281,330936,872105,NULL,NULL,NULL,0,NULL,NULL 80282,554207,1267634,NULL,NULL,NULL,0,NULL,NULL 80283,107424,922238,NULL,NULL,NULL,0,NULL,NULL 80284,347798,705741,Census,NULL,NULL,0,NULL,NULL 80285,18977,1320072,NULL,NULL,NULL,0,NULL,NULL 80286,125222,913682,NULL,NULL,NULL,0,NULL,NULL 80287,1280940,913682,NULL,NULL,NULL,0,NULL,NULL 80288,300347,66702,Yearling Yearling,NULL,NULL,0,NULL,NULL 80289,79265,404264,Notable Question Necromancer Popular Question Good Question Nice Question Popular Question Great Question Yearling Necromancer Enthusiast Nice Question Caucus Famous Question Nice Question Famous Question Great Question Nice Question Good Question Good Question Notable Question Revival Popular Question Notable Question Yearling Notable Question Famous Question Nice Question Famous Question Popular Question Documentation User Notable Question Notable Question Nice Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 80290,8750760,389799,Teacher Popular Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80291,1047477,389799,Teacher Popular Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80292,259543,802913,NULL,NULL,NULL,0,NULL,NULL 80293,556422,1241808,NULL,NULL,NULL,0,NULL,NULL 80294,190216,144628,Popular Question Guru Nice Answer Yearling Guru Nice Answer Curious Guru Yearling Good Answer Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 80295,63299,889423,NULL,NULL,NULL,0,NULL,NULL 80296,1091203,1220032,Popular Question Yearling Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80297,62969,403622,Editor Nice Question,NULL,NULL,0,NULL,NULL 80298,1172429,687394,NULL,NULL,NULL,0,NULL,NULL 80299,584693,878308,NULL,NULL,NULL,0,NULL,NULL 80300,986085,816604,NULL,NULL,NULL,0,NULL,NULL 80301,2800460,816604,NULL,NULL,NULL,0,NULL,NULL 80302,50756,24841,Favorite Question Popular Question Nice Question Popular Question Popular Question Great Question Yearling Nice Question Notable Question Notable Question Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 80303,332964,219927,Notable Question Popular Question Yearling Popular Question Popular Question Popular Question Nice Question Notable Question Famous Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80304,255544,144147,NULL,NULL,NULL,0,NULL,NULL 80305,176244,87960,Good Answer Yearling,NULL,NULL,0,NULL,NULL 80306,415224,1142751,NULL,NULL,NULL,0,NULL,NULL 80307,90292,1037194,NULL,NULL,NULL,0,NULL,NULL 80308,444680,495872,NULL,NULL,NULL,0,NULL,NULL 80309,77001,265501,Announcer,NULL,NULL,0,NULL,NULL 80310,18836,1073655,Yearling Caucus Necromancer Nice Answer Caucus Revival,NULL,NULL,0,NULL,NULL 80311,562972,943183,Yearling Famous Question Curious Commentator Good Question,NULL,NULL,0,NULL,NULL 80312,3693762,191479,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80313,43897,191479,Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80314,5685,76969,Yearling Great Question Popular Question Popular Question Good Question Yearling Notable Question Stellar Question Yearling,NULL,NULL,0,NULL,NULL 80315,191434,825952,Popular Question Student Tumbleweed,NULL,NULL,0,NULL,NULL 80316,357727,837046,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80317,286431,764559,NULL,NULL,NULL,0,NULL,NULL 80318,158826,382902,Popular Question,NULL,NULL,0,NULL,NULL 80319,15466,1406085,NULL,NULL,NULL,0,NULL,NULL 80320,6284944,1406085,NULL,NULL,NULL,0,NULL,NULL 80321,19332,710693,Nice Answer Necromancer Notable Question Yearling Nice Answer Tag Editor Good Answer Famous Question Nice Answer Nice Answer Caucus Nice Answer Constituent Necromancer Popular Question Nice Answer Necromancer Custodian Yearling Good Answer Notable Question Good Answer Caucus Constituent Necromancer Great Answer Census Populist Announcer Yearling Announcer Announcer Nice Answer Nice Question,NULL,NULL,0,NULL,NULL 80322,143879,319918,Yearling Yearling Nice Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 80323,479304,1212835,NULL,NULL,NULL,0,NULL,NULL 80324,128638,1059478,NULL,NULL,NULL,0,NULL,NULL 80325,182195,836135,NULL,NULL,NULL,0,NULL,NULL 80326,256588,804707,Yearling Famous Question Good Question Popular Question Popular Question Popular Question Notable Question Nice Question Yearling Caucus Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80327,15711,160511,Nice Question Peer Pressure Famous Question Nice Question Notable Question Popular Question Yearling Notable Question Notable Question Famous Question Custodian Notable Question Notable Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Popular Question Stellar Question Nice Question Yearling Notable Question Notable Question,NULL,pHere terse solution taken from href https codegolf stackexchange com questions 4707 outputting ordinal numbers 1st 2nd 3rd answer 4712 Gareth on codegolf ppre codeordinal lambda tsnrhtdd 10 10 10 lt 10 code prepWorks on any number ppre codeprint ordinal for in range 32 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th 31st code prepFor python codemath floor code is needed ppre codeimport mathordinal lambda tsnrhtdd math floor 10 10 10 lt 10 code pre cute but mon that just ugly,0,NULL,NULL 80328,160521,723505,Supporter Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 80329,186316,1051317,NULL,NULL,NULL,0,NULL,NULL 80330,366677,666533,Popular Question Caucus Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80331,7714509,786836,NULL,NULL,NULL,0,NULL,NULL 80332,184809,66767,Custodian Yearling Popular Question Popular Question Popular Question Popular Question Excavator Notable Question Yearling Good Question Popular Question Good Answer Popular Question Notable Question Yearling Benefactor Popular Question,NULL,NULL,0,NULL,NULL 80333,23161,859903,Notable Question Caucus,NULL,NULL,0,NULL,NULL 80334,110212,550903,NULL,NULL,NULL,0,NULL,NULL 80335,155418,886970,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 80336,167583,1210365,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 80337,800776,843968,NULL,NULL,NULL,0,NULL,NULL 80338,3676213,365584,Popular Question,NULL,NULL,0,NULL,NULL 80339,21656,365584,Popular Question,NULL,NULL,0,NULL,NULL 80340,801775,315179,Popular Question,NULL,NULL,0,NULL,NULL 80341,93345,710838,NULL,NULL,NULL,0,NULL,NULL 80342,1437,710838,NULL,NULL,NULL,0,NULL,NULL 80343,40584,889429,Informed Teacher Supporter Necromancer Revival Editor,NULL,NULL,0,NULL,NULL 80344,95416,876823,NULL,NULL,NULL,0,NULL,NULL 80345,191040,1006373,NULL,NULL,NULL,0,NULL,NULL 80346,2335823,934787,NULL,NULL,NULL,0,NULL,NULL 80347,428157,768922,NULL,NULL,NULL,0,NULL,NULL 80348,470715,793915,NULL,NULL,NULL,0,NULL,NULL 80349,1795801,1094814,Notable Question Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80350,729465,840694,NULL,NULL,NULL,0,NULL,NULL 80351,321438,1193875,NULL,NULL,NULL,0,NULL,NULL 80352,113671,1347027,NULL,NULL,NULL,0,NULL,NULL 80353,301076,1479464,NULL,NULL,NULL,0,NULL,NULL 80354,687331,774967,Popular Question Popular Question Curious,NULL,NULL,0,NULL,NULL 80355,178387,1091763,NULL,NULL,NULL,0,NULL,NULL 80356,1518962,560166,Yearling Yearling Great Answer Populist Revival Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 80357,570252,1130282,Scholar Caucus Constituent Yearling Popular Question,NULL,h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul One thing that not clear to me is if there is way to avoid having to allocate an extra EC2 machine just to run the cron jobs via cron yaml Ideally it would run on the same machine as the one that is servicing HTTP requests web tier,0,NULL,NULL 80358,770482,172265,Popular Question Nice Question Popular Question Peer Pressure Good Question Nice Question Notable Question Custodian Popular Question Popular Question Notable Question Yearling Famous Question Nice Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Civic Duty Famous Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Socratic Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Good Question Caucus Popular Question Notable Question Necromancer Nice Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Answer Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Notable Question Famous Question Famous Question Yearling Good Question Notable Question Notable Question Famous Question Popular Question Famous Question Popular Question Notable Question Notable Question Notable Question,NULL,selenium webdriver upload file by drag and drop selenium selenium webdriver pOn web page trying to test we implemented drag and drop file upload ve looked at the drag and drop API for selenium action chain API It looks like it supports only dragging and dropping between elements on page How to emulate dragging from file manager Thanks but looking for programming solution based on selenium,1,selenium webdriver upload file by drag and drop selenium selenium webdriver pOn web page trying to test we implemented drag and drop file upload ve looked at the drag and drop API for selenium action chain API It looks like it supports only dragging and dropping between elements on page How to emulate dragging from file manager Android disconnect the phone entirely android pI writing an app to disconnect the phone entirely from the outside only local activities are allowed Things like data wifi phone calls text message are all disabled ppI understand that with MDM one can probably change the passcode and lock the phone which will basically achieve the same thing But still like to know if one can write such program on Android kubernetes mounting volume from within init container kubernetes pI trying to make use of init container to prepare some files before the main container starts up In the init container like to mount codehostPath code volume so that can share prepare some file for the main container ppMy cluster is using pre version of kubernetes so using the codemeta annotation code syntax ppre codepod beta kubernetes io init containers name init myservice image busybox command sh mkdir tmp jack amp amp touch cd tmp jack amp amp touch volumeMounts mountPath tmp jack name confdir code prepBut it doesn seem to work The addition of codevolumeMounts code cause the container codeinit myserver code go into CrashLoop Without it the pod gets created successfully but it doesn achieve what want ppIs it not possible in lt to mount volume in init container What about,NULL 80359,5,123527,Epic Nice Answer Enlightened Famous Question Nice Answer Necromancer Notable Question Good Answer Famous Question Nice Answer Good Question Nice Answer Enlightened Nice Answer html Guru Good Answer Nice Answer Good Answer Great Answer Nice Answer Good Question Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Good Answer Revival Revival Favorite Question Yearling Great Answer Guru Nice Answer Enlightened Notable Question Nice Answer Documentation Pioneer Documentation Beta Talkative Nice Answer Reviewer database Nice Answer Announcer Good Answer dns Nice Answer Convention Nice Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Good Answer Nice Answer Enlightened Necromancer Good Answer Populist Good Answer Enlightened Good Answer Good Answer Nice Answer Caucus Guru Nice Answer Enlightened mysql Nice Answer Good Answer Good Answer Good Answer Good Answer Guru Nice Answer Announcer heroku Nice Answer Nice Answer Enlightened Nice Answer Guru Great Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Popular Question Favorite Question Good Answer Great Answer Populist Nice Answer Enlightened Nice Answer Enlightened Nice Answer Yearling Good Answer Good Answer Necromancer Good Answer Caucus Nice Answer Enlightened Guru Populist Popular Question Great Question Nice Answer Necromancer Good Question Nice Answer Documentation User Nice Answer Enlightened Nice Answer Guru Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Nice Answer Great Question Nice Answer Enlightened rails-activerecord Good Answer Good Answer Nice Answer Nice Question ssl Good Answer Enlightened Nice Answer Guru Necromancer Guru Good Answer Nice Answer Enlightened Populist Yearling Great Answer Nice Answer go Guru Guru Notable Question Good Answer Great Answer Good Answer Enlightened Nice Answer Enlightened Great Answer Nice Answer Enlightened Guru Good Answer,NULL,NULL,0,NULL,NULL 80360,81548,1367936,NULL,NULL,NULL,0,NULL,NULL 80361,264206,1013172,Popular Question,NULL,NULL,0,NULL,NULL 80362,197929,1331638,NULL,NULL,NULL,0,NULL,NULL 80363,282725,738672,NULL,NULL,NULL,0,NULL,NULL 80364,70647,521571,Yearling Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 80365,474452,621024,Notable Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80366,1374569,681992,NULL,NULL,NULL,0,NULL,NULL 80367,151379,435093,Notable Question Nice Question Notable Question Nice Answer Enlightened Popular Question Notable Question Notable Question Announcer Nice Question Famous Question Good Answer Nice Question Announcer Guru Good Answer Popular Question Yearling Popular Question Nice Answer Enlightened Popular Question Caucus Nice Answer Enlightened Famous Question Popular Question Nice Answer Enlightened Announcer Good Answer Popular Question Notable Question Popular Question Famous Question Notable Question Caucus Notable Question Yearling Popular Question Documentation User Custodian Popular Question Notable Question Notable Question Favorite Question Notable Question Census Nice Answer Guru Popular Question Notable Question Great Question Favorite Question Popular Question Good Question Popular Question Popular Question Great Answer Popular Question Yearling Notable Question Famous Question Notable Question Necromancer Socratic Nice Answer,NULL,blockquote pHow do specify that all streams from the input must be copied to the output blockquotepThe code map code option can do this with the shortcut code map code ppFor example ppre codeffmpeg input mkv copy map map output mkv code prepto copy the stream and to output mkv ppre codeffmpeg input mkv copy map output mkv code prepto copy emall em input streams from input codeinput mkv code to the output even if there are multiple video audio or subtitle streams ppThe code map code value corresponds to the input number code0 code is the first input code1 code is the second input etc If you add an additional input input and also want to copy all of the contents then you will need to add code map code ppYou can use codeffprobe code to analyse files and see which stream is mapped where Try code fflags genpts code if you get an codeunknown timestamp code error For detailed tutorial see href https trac ffmpeg org wiki Map rel nofollow noreferrer the FFmpeg Wiki page on the code map code option Thanks Next time you can just propose an edit to the post yourself Create random order of pairs without repeating subsequent python pSay have list of valid codeX code and list of valid codeY code ppI need to generate all combinations of every element in codeX code and every element in codeY code in this case 25 and get those combinations in random order ppThis in itself would be simple but there is an additional requirement In this random order there cannot be repetition of the same codex code in succession For example this is okay ppre code code prepThis is not ppre code lt the cannot repeat because there was already one before code prepNow the least efficient idea would be to simply randomize the full set as long as there are no more repetitions My approach was bit different repeatedly creating shuffled variant of codeX code and list of all codeY code then picking random next one from that So far ve come up with this ppre codeimport randomoutput num 5num 5all ys list xrange num num xwhile True end if no more are available if len output num num break xs list xrange num while len xs next random choice xs next random choice all ys if next next not in output xs remove next all ys remove next output append next next print sorted output code prepBut sure this can be done even more efficiently or in more succinct way ppAlso my solution first goes through all codeX code values before continuing with the full set again which is not emperfectly em random can live with that for my particular application case Every will appear len times Create random order of pairs without repeating subsequent python pSay have list of valid codeX code and list of valid codeY code ppI need to generate all combinations of every element in codeX code and every element in codeY code in this case 25 and get those combinations in random order ppThis in itself would be simple but there is an additional requirement In this random order there cannot be repetition of the same codex code in succession For example this is okay ppre code code prepThis is not ppre code lt the cannot repeat because there was already one before code prepNow the least efficient idea would be to simply randomize the full set as long as there are no more repetitions My approach was bit different repeatedly creating shuffled variant of codeX code and list of all codeY code then picking random next one from that So far ve come up with this ppre codeimport randomoutput num 5num 5all ys list xrange num num xwhile True end if no more are available if len output num num break xs list xrange num while len xs next random choice xs next random choice all ys if next next not in output xs remove next all ys remove next output append next next print sorted output code prepBut sure this can be done even more efficiently or in more succinct way ppAlso my solution first goes through all codeX code values before continuing with the full set again which is not emperfectly em random can live with that for my particular application case Because apparently ignorant to Python idioms haven been doing much with this language afraid But thanks for the pointers Create random order of pairs without repeating subsequent python pSay have list of valid codeX code and list of valid codeY code ppI need to generate all combinations of every element in codeX code and every element in codeY code in this case 25 and get those combinations in random order ppThis in itself would be simple but there is an additional requirement In this random order there cannot be repetition of the same codex code in succession For example this is okay ppre code code prepThis is not ppre code lt the cannot repeat because there was already one before code prepNow the least efficient idea would be to simply randomize the full set as long as there are no more repetitions My approach was bit different repeatedly creating shuffled variant of codeX code and list of all codeY code then picking random next one from that So far ve come up with this ppre codeimport randomoutput num 5num 5all ys list xrange num num xwhile True end if no more are available if len output num num break xs list xrange num while len xs next random choice xs next random choice all ys if next next not in output xs remove next all ys remove next output append next next print sorted output code prepBut sure this can be done even more efficiently or in more succinct way ppAlso my solution first goes through all codeX code values before continuing with the full set again which is not emperfectly em random can live with that for my particular application case Not necessarily My current script indeed forces all elements in to be processed before starting again which is not perfectly random but can live with it Create random order of pairs without repeating subsequent python pSay have list of valid codeX code and list of valid codeY code ppI need to generate all combinations of every element in codeX code and every element in codeY code in this case 25 and get those combinations in random order ppThis in itself would be simple but there is an additional requirement In this random order there cannot be repetition of the same codex code in succession For example this is okay ppre code code prepThis is not ppre code lt the cannot repeat because there was already one before code prepNow the least efficient idea would be to simply randomize the full set as long as there are no more repetitions My approach was bit different repeatedly creating shuffled variant of codeX code and list of all codeY code then picking random next one from that So far ve come up with this ppre codeimport randomoutput num 5num 5all ys list xrange num num xwhile True end if no more are available if len output num num break xs list xrange num while len xs next random choice xs next random choice all ys if next next not in output xs remove next all ys remove next output append next next print sorted output code prepBut sure this can be done even more efficiently or in more succinct way ppAlso my solution first goes through all codeX code values before continuing with the full set again which is not emperfectly em random can live with that for my particular application case Interesting do you know why it would be incorrect though Maybe didn think this algorithm through enough Also the length typically is less than 10 for both and but how this degenerates would also be interesting codeadb code is not in your codePATH code This is where the shell looks for executables You can check your current codePATH code with codeecho PATH code ppBash will first try to look for binary called codeadb code in your Path and not in the current directory Therefore if you are currently in the codeplatform tools code directory just call ppre code adb help code prepThe dot is your current directory and this tells Bash to use codeadb code from there ppOtherwise you should add codeplatform tools code to your codePATH code by adding the path in your shell profile href http www joshstaiger org archives 2005 07 bash profile vs html rel noreferrer depending on which file is used pulliLinux typically code bashrc code liliOS macOS typically code profile code or code bash profile code li ulpAdd the following line there and replace the path with the one where you installed codeplatform tools code ppre codeexport PATH Users espireinfolabs Desktop soft android sdk mac x86 platform tools PATH code prepSave the profile file then re start the Terminal or run codesource bashrc code or whatever you just modified ppIf you ve installed the platform tools somewhere else change the path accordingly For Android Studio on OS for example you use the following—note the double quotes that prevent possible space from breaking the path syntax ppre codeexport PATH Users myuser Library Android sdk platform tools PATH code pre Not sure how restarting Android Studio has an effect on this the PATH should be added to your shell profile bashrc or bash profile on OS or zshrc for Zsh etc It will then always be available What doesn work when you restart Android Studio Any specific error codeadb code is not in your codePATH code This is where the shell looks for executables You can check your current codePATH code with codeecho PATH code ppBash will first try to look for binary called codeadb code in your Path and not in the current directory Therefore if you are currently in the codeplatform tools code directory just call ppre code adb help code prepThe dot is your current directory and this tells Bash to use codeadb code from there ppOtherwise you should add codeplatform tools code to your codePATH code by adding the path in your shell profile href http www joshstaiger org archives 2005 07 bash profile vs html rel noreferrer depending on which file is used pulliLinux typically code bashrc code liliOS macOS typically code profile code or code bash profile code li ulpAdd the following line there and replace the path with the one where you installed codeplatform tools code ppre codeexport PATH Users espireinfolabs Desktop soft android sdk mac x86 platform tools PATH code prepSave the profile file then re start the Terminal or run codesource bashrc code or whatever you just modified ppIf you ve installed the platform tools somewhere else change the path accordingly For Android Studio on OS for example you use the following—note the double quotes that prevent possible space from breaking the path syntax ppre codeexport PATH Users myuser Library Android sdk platform tools PATH code pre That doesn make much sense… if you add the PATH to your shell profile it does not automatically disappear Please ask new question about this describe exactly what you are doing and we ll figure out what the problem is pI did this by inspecting the player progress every emx em milliseconds 50 If the player hasn advanced as much as it was expected to then we are buffering This is quite reliable since ve found that other events such as codewaiting code or codestalled code are not fired in all cases of the video buffering ppNote that the interval must be larger than the expected inter frame difference but sure that you won want to be that precise anyway An estimation of buffering time within ±300ms would still be fine given that humans most likely cannot perceive differences in that region ppIt is important to check whether the user hasn actively paused the playback though ppre codevar checkInterval 50 check every 50 ms do not use lower values var lastPlayPos 0var currentPlayPos 0var bufferingDetected falsevar player document getElementById videoPlayer setInterval checkBuffering checkInterval function checkBuffering currentPlayPos player currentTime checking offset should be at most the check interval but allow for some margin var offset checkInterval 20 1000 if no buffering is currently detected and the position does not seem to increase and the player isn manually paused if bufferingDetected amp amp currentPlayPos lt lastPlayPos offset amp amp player paused console log buffering bufferingDetected true if we were buffering but the player has advanced then there is no buffering if bufferingDetected amp amp currentPlayPos gt lastPlayPos offset amp amp player paused console log not buffering anymore bufferingDetected false lastPlayPos currentPlayPos code pre quite sure Does it not work for you At least the HTML spec hasn changed to me it seems that this is still the most reliable method You could check if the waiting event as proposed in brianchirls answer is more reliable now in different browsers pI did this by inspecting the player progress every emx em milliseconds 50 If the player hasn advanced as much as it was expected to then we are buffering This is quite reliable since ve found that other events such as codewaiting code or codestalled code are not fired in all cases of the video buffering ppNote that the interval must be larger than the expected inter frame difference but sure that you won want to be that precise anyway An estimation of buffering time within ±300ms would still be fine given that humans most likely cannot perceive differences in that region ppIt is important to check whether the user hasn actively paused the playback though ppre codevar checkInterval 50 check every 50 ms do not use lower values var lastPlayPos 0var currentPlayPos 0var bufferingDetected falsevar player document getElementById videoPlayer setInterval checkBuffering checkInterval function checkBuffering currentPlayPos player currentTime checking offset should be at most the check interval but allow for some margin var offset checkInterval 20 1000 if no buffering is currently detected and the position does not seem to increase and the player isn manually paused if bufferingDetected amp amp currentPlayPos lt lastPlayPos offset amp amp player paused console log buffering bufferingDetected true if we were buffering but the player has advanced then there is no buffering if bufferingDetected amp amp currentPlayPos gt lastPlayPos offset amp amp player paused console log not buffering anymore bufferingDetected false lastPlayPos currentPlayPos code pre True not aware of anything like this There are of course lots of providers that offer their own streaming solutions with DASH or other techniques and corresponding analytics but don have good overview of these either pI did this by inspecting the player progress every emx em milliseconds 50 If the player hasn advanced as much as it was expected to then we are buffering This is quite reliable since ve found that other events such as codewaiting code or codestalled code are not fired in all cases of the video buffering ppNote that the interval must be larger than the expected inter frame difference but sure that you won want to be that precise anyway An estimation of buffering time within ±300ms would still be fine given that humans most likely cannot perceive differences in that region ppIt is important to check whether the user hasn actively paused the playback though ppre codevar checkInterval 50 check every 50 ms do not use lower values var lastPlayPos 0var currentPlayPos 0var bufferingDetected falsevar player document getElementById videoPlayer setInterval checkBuffering checkInterval function checkBuffering currentPlayPos player currentTime checking offset should be at most the check interval but allow for some margin var offset checkInterval 20 1000 if no buffering is currently detected and the position does not seem to increase and the player isn manually paused if bufferingDetected amp amp currentPlayPos lt lastPlayPos offset amp amp player paused console log buffering bufferingDetected true if we were buffering but the player has advanced then there is no buffering if bufferingDetected amp amp currentPlayPos gt lastPlayPos offset amp amp player paused console log not buffering anymore bufferingDetected false lastPlayPos currentPlayPos code pre Yes you re absolutely right Thank you for spotting that never caught that bug since never changed the value of the offset Not sure what value of should be probably even checkInterval 1000 would work,1,Create random order of pairs without repeating subsequent python pSay have list of valid codeX code and list of valid codeY code ppI need to generate all combinations of every element in codeX code and every element in codeY code in this case 25 and get those combinations in random order ppThis in itself would be simple but there is an additional requirement In this random order there cannot be repetition of the same codex code in succession For example this is okay ppre code code prepThis is not ppre code lt the cannot repeat because there was already one before code prepNow the least efficient idea would be to simply randomize the full set as long as there are no more repetitions My approach was bit different repeatedly creating shuffled variant of codeX code and list of all codeY code then picking random next one from that So far ve come up with this ppre codeimport randomoutput num 5num 5all ys list xrange num num xwhile True end if no more are available if len output num num break xs list xrange num while len xs next random choice xs next random choice all ys if next next not in output xs remove next all ys remove next output append next next print sorted output code prepBut sure this can be done even more efficiently or in more succinct way ppAlso my solution first goes through all codeX code values before continuing with the full set again which is not emperfectly em random can live with that for my particular application case,NULL 80368,451617,167897,Revival Revival Good Answer Tag Editor Necromancer Necromancer Popular Question Necromancer Necromancer Necromancer Revival Necromancer Notable Question Necromancer Necromancer Revival Notable Question Guru Famous Question Nice Answer Good Question Notable Question Necromancer Revival Necromancer Revival Taxonomist Nice Answer Yearling Great Answer Nice Answer Nice Answer Nice Answer Nice Answer Necromancer Caucus Necromancer Famous Question Announcer Nice Answer Good Question Nice Answer Necromancer Necromancer Nice Answer Popular Question Popular Question Nice Question Necromancer Good Answer Popular Question Nice Answer Popular Question Good Answer Pundit Famous Question Booster Nice Answer Necromancer Yearling Good Answer Popular Question Good Answer Nice Answer Necromancer Nice Question Notable Question Famous Question Good Answer Populist Announcer Necromancer Good Answer Good Answer Nice Answer Announcer Announcer Popular Question Popular Question Great Answer Nice Answer Nice Answer Popular Question Yearling Great Answer Necromancer Notable Question Nice Answer,NULL,strongTL DR strong Google Container Engine running Kubernetes strongv1 strong supports codeloadBalancerIP code just mark the auto assigned IP as strongstatic strong first ppKubernetes v1 supports href https kubernetes io docs api reference v1 servicespec v1 core rel noreferrer externalIPs ppre codeapiVersion v1kind Servicespec type LoadBalancer loadBalancerIP 10 10 10 10 code prepSo far there isn really good consistent documentation on how to use it on GCE What is sure is that this IP must first be one of your pre allocated strongstatic strong IPs ppThe href https cloud google com compute docs load balancing http cross region example rel noreferrer cross region load balancing documentation is mostly for Compute Engine and not Kubernetes Container Engine but it still useful especially the part Configure the load balancing service ppIf you just create Kubernetes LoadBalancer on GCE it will create network Compute Engine Network Network load balancing Forwarding Rule pointing to target pool made of your machines on your cluster normally only those running the Pods matching the service selector It looks like deleting namespace doesn nicely clean up the those created rules phrh2Update h2pIt is actually now supported even though under documented polliCheck that you re running Kubernetes or later under href https console cloud google com project kubernetes list rel noreferrer GKE edit your cluster and check Node version liliAllocate static IPs under href https console cloud google com project networking addresses list rel noreferrer Networking External IP addresses either ulliDeploy once without codeloadBalancerIP code wait until you ve an external IP allocated when you run codekubectl get svc code and look up that IP in the list on that page and change those from emEphemeral em to emStatic em liliClick Reserver static address regional in the region of your cluster attached to None li ul liliEdit your emLoadBalancer em to have codeloadBalancerIP 10 10 10 10 code as above adapt to the IP that was given to you by Google li olpNow if you delete your LoadBalancer or even your namespace it ll preserve that IP address upon re reploying on that cluster phrh2Update 2016 11 14 h2pSee also href https beroux com english articles kubernetes part rel noreferrer Kubernetes article describing how to set up static IP for single or multiple domains on Kubernetes HTTP HTTPS has nothing to do with the IP More accurately you just have LB service with static IP and that service would just have 80 and 443 ports redirecting probably to pod 80 and 443 port strongTL DR strong Google Container Engine running Kubernetes strongv1 strong supports codeloadBalancerIP code just mark the auto assigned IP as strongstatic strong first ppKubernetes v1 supports href https kubernetes io docs api reference v1 servicespec v1 core rel noreferrer externalIPs ppre codeapiVersion v1kind Servicespec type LoadBalancer loadBalancerIP 10 10 10 10 code prepSo far there isn really good consistent documentation on how to use it on GCE What is sure is that this IP must first be one of your pre allocated strongstatic strong IPs ppThe href https cloud google com compute docs load balancing http cross region example rel noreferrer cross region load balancing documentation is mostly for Compute Engine and not Kubernetes Container Engine but it still useful especially the part Configure the load balancing service ppIf you just create Kubernetes LoadBalancer on GCE it will create network Compute Engine Network Network load balancing Forwarding Rule pointing to target pool made of your machines on your cluster normally only those running the Pods matching the service selector It looks like deleting namespace doesn nicely clean up the those created rules phrh2Update h2pIt is actually now supported even though under documented polliCheck that you re running Kubernetes or later under href https console cloud google com project kubernetes list rel noreferrer GKE edit your cluster and check Node version liliAllocate static IPs under href https console cloud google com project networking addresses list rel noreferrer Networking External IP addresses either ulliDeploy once without codeloadBalancerIP code wait until you ve an external IP allocated when you run codekubectl get svc code and look up that IP in the list on that page and change those from emEphemeral em to emStatic em liliClick Reserver static address regional in the region of your cluster attached to None li ul liliEdit your emLoadBalancer em to have codeloadBalancerIP 10 10 10 10 code as above adapt to the IP that was given to you by Google li olpNow if you delete your LoadBalancer or even your namespace it ll preserve that IP address upon re reploying on that cluster phrh2Update 2016 11 14 h2pSee also href https beroux com english articles kubernetes part rel noreferrer Kubernetes article describing how to set up static IP for single or multiple domains on Kubernetes Yes you re correct At least on Kubernetes clusters supporting it like GKE strongTL DR strong Google Container Engine running Kubernetes strongv1 strong supports codeloadBalancerIP code just mark the auto assigned IP as strongstatic strong first ppKubernetes v1 supports href https kubernetes io docs api reference v1 servicespec v1 core rel noreferrer externalIPs ppre codeapiVersion v1kind Servicespec type LoadBalancer loadBalancerIP 10 10 10 10 code prepSo far there isn really good consistent documentation on how to use it on GCE What is sure is that this IP must first be one of your pre allocated strongstatic strong IPs ppThe href https cloud google com compute docs load balancing http cross region example rel noreferrer cross region load balancing documentation is mostly for Compute Engine and not Kubernetes Container Engine but it still useful especially the part Configure the load balancing service ppIf you just create Kubernetes LoadBalancer on GCE it will create network Compute Engine Network Network load balancing Forwarding Rule pointing to target pool made of your machines on your cluster normally only those running the Pods matching the service selector It looks like deleting namespace doesn nicely clean up the those created rules phrh2Update h2pIt is actually now supported even though under documented polliCheck that you re running Kubernetes or later under href https console cloud google com project kubernetes list rel noreferrer GKE edit your cluster and check Node version liliAllocate static IPs under href https console cloud google com project networking addresses list rel noreferrer Networking External IP addresses either ulliDeploy once without codeloadBalancerIP code wait until you ve an external IP allocated when you run codekubectl get svc code and look up that IP in the list on that page and change those from emEphemeral em to emStatic em liliClick Reserver static address regional in the region of your cluster attached to None li ul liliEdit your emLoadBalancer em to have codeloadBalancerIP 10 10 10 10 code as above adapt to the IP that was given to you by Google li olpNow if you delete your LoadBalancer or even your namespace it ll preserve that IP address upon re reploying on that cluster phrh2Update 2016 11 14 h2pSee also href https beroux com english articles kubernetes part rel noreferrer Kubernetes article describing how to set up static IP for single or multiple domains on Kubernetes Updated the link even though it not the same page as the original is gone in history,0,NULL,NULL 80369,14429,188107,Nice Question Nice Answer Nice Answer Guru Notable Question Yearling Caucus Nice Answer Popular Question Popular Question Popular Question Popular Question Guru Popular Question Nice Answer Enlightened Necromancer Caucus java Yearling Nice Question Good Answer Popular Question Good Answer Nice Question Notable Question Caucus Good Answer Nice Answer Guru Announcer Nice Answer Enlightened git Famous Question Yearling,NULL,strongEdit strong pp strongFacebook decided to href https github com facebook react issues 436 issuecomment 207624448 not add support for defining custom event types and recommend you to use something like href https github com JedWatson react tappable react tappable strong so you can write something like code lt Tappable onTap gt code phrp strikeFacebook working on solution in the form of codeTapEventPlugin code but it href https github com facebook react issues 436 won be made available href https github com facebook react pull 1170 issuecomment 52123901 until they make some decisions ppIf you re reading this you re probably working on project that can wait until they figure out how they want to publish it strike ppThis repo is for you href https github com zilverline react tap event plugin https github com zilverline react tap event plugin pp strikeWhen Facebook solves href https github com facebook react issues 436 436 and href https github com facebook react pull 1170 1170 this repo will disappear strike pp emThis solution works for React 14 and 15 em ppre codenpm react tap event plugin code prepExample of usage ppre codevar React require react var ReactDOM require react dom injectTapEventPlugin require react tap event plugin injectTapEventPlugin var Main React createClass render function return lt href onTouchTap this handleTouchTap onClick this handleClick gt Tap Me lt gt handleClick function console log click handleTouchTap function console log touchTap ReactDOM render lt Main gt document getElementById container code prep emNote that with the injector you will probably need to use only codeonTouchTap code and not codeonClick code anymore em This answer is very hard to read and could use some editing,0,NULL,NULL 80370,244613,1040070,Enthusiast Popular Question Notable Question Yearling Great Answer Notable Question Popular Question Notable Question Yearling Caucus Good Question Notable Question Necromancer Nice Answer Yearling,NULL,pEven simpler with codepipe code and coderequest code Package ppre codevar request require request app use api function req res var url apiUrl req url req pipe request url pipe res code prepIt pipes the whole request to the API and pipes the response back to the requestor This also handles POST PUT DELETE and all other requests ppIf you also care about query string you should pipe it as well ppre codereq pipe request qs req query uri url pipe res code pre Also don forget to pay attention to headers Especially host header very important,0,NULL,NULL 80371,1501631,1541550,NULL,NULL,NULL,0,NULL,NULL 80372,102624,244875,Tumbleweed Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 80373,309858,513058,NULL,NULL,NULL,0,NULL,NULL 80374,480949,573947,Enthusiast,NULL,NULL,0,NULL,NULL 80375,511883,1317992,NULL,NULL,NULL,0,NULL,NULL 80376,313556,3738,Yearling Yearling Yearling Yearling Stellar Question,NULL,NULL,0,NULL,NULL 80377,753879,457309,Caucus Editor,NULL,NULL,0,NULL,NULL 80378,20153,197523,Yearling Revival Critic Necromancer Yearling,NULL,NULL,0,NULL,NULL 80379,322012,204880,Nice Question Notable Question Nice Question Nice Answer Nice Question Yearling,NULL,NULL,0,NULL,NULL 80380,13389,330561,Popular Question Yearling Popular Question Popular Question Nice Question Popular Question Nice Answer Notable Question Popular Question Yearling Nice Question Popular Question Nice Question Nice Question Popular Question Popular Question Nice Question Nice Question Famous Question Popular Question Popular Question Notable Question Great Question Yearling Famous Question Nice Question Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 80381,168064,603468,NULL,NULL,NULL,0,NULL,NULL 80382,81882,1480444,NULL,NULL,NULL,0,NULL,NULL 80383,61389,47092,NULL,NULL,NULL,0,NULL,NULL 80384,279366,294409,NULL,NULL,NULL,0,NULL,NULL 80385,185333,11552,NULL,NULL,NULL,0,NULL,NULL 80386,1532027,11552,NULL,NULL,NULL,0,NULL,NULL 80387,100635,1314,Yearling Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 80388,280405,844976,Critic Yearling Enthusiast Yearling Caucus Constituent Yearling Documentation User Announcer Yearling Tenacious Yearling,NULL,NULL,0,NULL,NULL 80389,227106,482498,Popular Question,NULL,NULL,0,NULL,NULL 80390,218557,299449,NULL,NULL,NULL,0,NULL,NULL 80391,21094,1443666,NULL,NULL,NULL,0,NULL,NULL 80392,196223,117421,Yearling Necromancer Excavator Notable Question Yearling Famous Question Notable Question Nice Answer Popular Question Yearling Popular Question Caucus Favorite Question Great Question Yearling Good Answer Custodian Popular Question Explainer Census Custodian Caucus Yearling Popular Question Popular Question,NULL,What are best practices for REST nested resources rest api design pAs far as can tell each individual resource should have strongonly one canonical strong path So in the following example what would good URL patterns be ppTake for an example rest representation of Companies In this hypothetical example each company strongowns strong or more departments and each department strongowns strong or more employees ppA department strongcan exist strong without an associated company ppAn employee strongcan exist strong without an associated department ppNow find the natural representation of the resource patterns to be pulli code companies code emA collection of companies em Accepts put for new company Get for the entire collection lili code companies companyId code An individual company Accepts GET PUT and DELETE lili code companies companyId departments code Accepts POST for new item Creates department within the company lili code companies companyId departments departmentId code lili code companies companyId departments departmentId employees code lili code companies companyId departments departmentId employees empId code li ulpGiven the constraints in each of the sections feel that this makes sense if bit deeply nested ppHowever my difficulty comes if want to list codeGET code all employees across all companies ppThe resource pattern for that would most closely map to code employees code The collection of all employees ppDoes that mean that should have code employees empId code also because if so then there are two URI to get the same resource ppOr maybe the entire schema should be flattened but that would mean that employees are nested top level object ppAt basic level code employees company companyId amp department deptId code returns the exact same view of employees as the most deeply nested pattern ppWhat the best practice for URL patterns where resources are strongowned strong by other resources but should be query able separately phrp strongUPDATE strong See my answer below to see what ve done voting to close this question as off topic because its about pattern rather than programming problem and has gathered too many votes,0,NULL,NULL 80393,934345,972025,NULL,NULL,NULL,0,NULL,NULL 80394,1343314,717949,Enthusiast,NULL,NULL,0,NULL,NULL 80395,527164,784936,NULL,NULL,NULL,0,NULL,NULL 80396,248668,95869,Synonymizer Good Answer Nice Answer Yearling Good Answer Nice Answer Curious Good Answer Nice Answer Good Answer Civic Duty Yearling Nice Answer Great Answer Documentation User Popular Question Populist Announcer Popular Question Yearling Guru Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80397,284418,1195581,NULL,NULL,NULL,0,NULL,NULL 80398,158177,114147,Yearling Yearling Necromancer Announcer Yearling,NULL,NULL,0,NULL,NULL 80399,251483,618856,NULL,NULL,NULL,0,NULL,NULL 80400,848549,1395811,Famous Question,NULL,NULL,0,NULL,NULL 80401,473184,956924,NULL,NULL,NULL,0,NULL,NULL 80402,2165155,917769,Notable Question Popular Question Yearling Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 80403,416435,463992,NULL,NULL,NULL,0,NULL,NULL 80404,416436,463992,NULL,NULL,NULL,0,NULL,NULL 80405,224522,1284089,NULL,NULL,NULL,0,NULL,NULL 80406,258514,1513418,NULL,NULL,NULL,0,NULL,NULL 80407,24737,454598,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80408,30240,776560,Good Answer Nice Answer Good Answer Guru Good Answer Great Answer dataframe Good Answer Guru Good Answer Good Answer Yearling Nice Answer Enlightened Good Answer Good Answer Guru Good Answer Great Answer Nice Answer Good Answer Nice Answer Good Answer Good Answer Nice Answer Enlightened Great Answer Guru Enlightened Great Answer Guru Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Guru Good Answer Good Answer Yearling Good Answer Guru Good Answer Good Answer Good Answer Guru Good Answer python Nice Answer Guru Great Answer Populist Nice Answer Enlightened Good Answer Great Answer Nice Answer Enlightened Yearling Populist Nice Answer Enlightened Nice Answer Nice Answer Enlightened Good Answer Good Answer Good Answer Nice Answer Enlightened Guru Great Answer Good Answer Great Answer Enlightened,NULL,NULL,0,NULL,NULL 80409,401143,593056,NULL,NULL,NULL,0,NULL,NULL 80410,25262,874333,NULL,NULL,NULL,0,NULL,NULL 80411,382364,80516,Civic Duty Notable Question Yearling Excavator,NULL,NULL,0,NULL,NULL 80412,2292159,80516,Civic Duty Notable Question Yearling Excavator,NULL,NULL,0,NULL,NULL 80413,575423,675157,Notable Question,NULL,NULL,0,NULL,NULL 80414,232770,68655,Yearling Yearling,NULL,NULL,0,NULL,NULL 80415,365274,1364720,Informed Teacher Supporter Editor Revival Revival,NULL,NULL,0,NULL,NULL 80416,155811,740451,NULL,NULL,NULL,0,NULL,NULL 80417,179735,93579,Nice Question Nice Answer Yearling Announcer Famous Question,NULL,NULL,0,NULL,NULL 80418,2333283,1112216,NULL,NULL,NULL,0,NULL,NULL 80419,156165,670789,NULL,NULL,NULL,0,NULL,NULL 80420,3040734,670789,NULL,NULL,NULL,0,NULL,NULL 80421,550789,668520,NULL,NULL,NULL,0,NULL,NULL 80422,311861,535644,NULL,NULL,NULL,0,NULL,NULL 80423,518303,794369,NULL,NULL,NULL,0,NULL,NULL 80424,163716,1055926,NULL,NULL,NULL,0,NULL,NULL 80425,114529,14256,Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Pundit xcode Good Answer Caucus Yearling macos Census Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer,NULL,NULL,0,NULL,NULL 80426,112127,667932,NULL,NULL,NULL,0,NULL,NULL 80427,505241,921110,Nice Answer Nice Question Yearling Famous Question Yearling Good Answer Great Answer Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 80428,167262,72356,Good Question Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 80429,3166,70973,NULL,NULL,NULL,0,NULL,NULL 80430,762281,309005,Yearling Notable Question Popular Question Notable Question Notable Question Yearling Yearling Custodian Excavator Custodian Critic Notable Question,NULL,NULL,0,NULL,NULL 80431,449629,624976,Nice Answer Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80432,175356,1280862,NULL,NULL,NULL,0,NULL,NULL 80433,4012730,1280862,NULL,NULL,NULL,0,NULL,NULL 80434,124260,575118,Notable Question Yearling,NULL,NULL,0,NULL,NULL 80435,176749,148239,Census Caucus Electorate Citizen Patrol,NULL,NULL,0,NULL,NULL 80436,444510,601087,NULL,NULL,NULL,0,NULL,NULL 80437,237715,601087,NULL,NULL,NULL,0,NULL,NULL 80438,871195,517645,Teacher,NULL,NULL,0,NULL,NULL 80439,1567702,700398,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80440,417286,703927,Revival,NULL,NULL,0,NULL,NULL 80441,577915,371970,Good Answer Yearling Necromancer Yearling Nice Question Caucus Yearling Caucus Announcer Popular Question Popular Question Yearling Popular Question Necromancer Yearling,NULL,NULL,0,NULL,NULL 80442,37690,641687,Inquisitive Notable Question Popular Question Yearling Popular Question Famous Question Famous Question Nice Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 80443,252642,1410361,NULL,NULL,NULL,0,NULL,NULL 80444,463421,319862,Popular Question Nice Question Notable Question Yearling Necromancer Famous Question Excavator Nice Answer Yearling Necromancer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80445,159268,456879,NULL,NULL,NULL,0,NULL,NULL 80446,786435,1074965,Editor Nice Question Custodian,NULL,NULL,0,NULL,NULL 80447,75340,50798,Good Question Popular Question Good Answer Famous Question,NULL,NULL,0,NULL,NULL 80448,15228,384301,NULL,NULL,NULL,0,NULL,NULL 80449,3772396,781938,Popular Question Necromancer Good Question Yearling Popular Question Nice Answer Yearling Curious Necromancer Revival Popular Question Good Answer Organizer Yearling Revival Nice Answer Yearling,NULL,py3k How do you read file inside zip file as text not bytes csv python zipfile pA simple program for reading CSV file inside zip file works in Python but not in Python ppre code cat test zip file py3k py import csv sys zipfilezip file zipfile ZipFile sys argv items file zip file open items csv rU for row in csv DictReader items file pass python2 test zip file py3k py data zip python3 test zip file py3k py data zipTraceback most recent call last File test zip file py3k py line in lt module gt for row in csv DictReader items file File home msabramo run lib python3 csv py line 109 in next self fieldnames File home msabramo run lib python3 csv py line 96 in fieldnames self fieldnames next self reader csv Error iterator should return strings not bytes did you open the file in text mode code prepSo the codecsv code module in Python wants to see text file but codezipfile ZipFile open code returns codezipfile ZipExtFile code that is always treated as binary data ppHow does one make this work in Python in nutshell reader csv DictReader io TextIOWrapper zipfile ZipFile archive zip open data csv,0,NULL,NULL 80450,9075,781938,Popular Question Necromancer Good Question Yearling Popular Question Nice Answer Yearling Curious Necromancer Revival Popular Question Good Answer Organizer Yearling Revival Nice Answer Yearling,NULL,py3k How do you read file inside zip file as text not bytes csv python zipfile pA simple program for reading CSV file inside zip file works in Python but not in Python ppre code cat test zip file py3k py import csv sys zipfilezip file zipfile ZipFile sys argv items file zip file open items csv rU for row in csv DictReader items file pass python2 test zip file py3k py data zip python3 test zip file py3k py data zipTraceback most recent call last File test zip file py3k py line in lt module gt for row in csv DictReader items file File home msabramo run lib python3 csv py line 109 in next self fieldnames File home msabramo run lib python3 csv py line 96 in fieldnames self fieldnames next self reader csv Error iterator should return strings not bytes did you open the file in text mode code prepSo the codecsv code module in Python wants to see text file but codezipfile ZipFile open code returns codezipfile ZipExtFile code that is always treated as binary data ppHow does one make this work in Python in nutshell reader csv DictReader io TextIOWrapper zipfile ZipFile archive zip open data csv,0,NULL,NULL 80451,393809,210050,NULL,NULL,NULL,0,NULL,NULL 80452,1650948,1089057,Popular Question Autobiographer Commentator,NULL,NULL,0,NULL,NULL 80453,94819,34168,Yearling,NULL,NULL,0,NULL,NULL 80454,79431,531150,Self-Learner,NULL,NULL,0,NULL,NULL 80455,1905157,445635,Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 80456,84216,778858,Notable Question Popular Question Nice Question Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80457,208049,1185439,Good Question Yearling Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 80458,301343,399607,NULL,NULL,NULL,0,NULL,NULL 80459,115084,438033,NULL,NULL,NULL,0,NULL,NULL 80460,266139,1262899,NULL,NULL,NULL,0,NULL,NULL 80461,359123,216717,Yearling Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80462,140912,144138,NULL,NULL,NULL,0,NULL,NULL 80463,47261,898839,NULL,NULL,NULL,0,NULL,NULL 80464,53388,1161909,Autobiographer Revival Organizer Revival Citizen Patrol Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 80465,776286,234975,Teacher Commentator Self-Learner Critic,NULL,NULL,0,NULL,NULL 80466,85113,183792,Yearling Nice Answer haskell Explainer Revival Enthusiast Disciplined Yearling Caucus Civic Duty Organizer Necromancer Nice Answer Enlightened Yearling Yearling,NULL,Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers wish had runnable fragment The solution may partly be to use streaming library like streaming or conduit or pipes But there are other peculiarities Keep in mind first that aeson does tend to accumulate the whole input in memory for parsing This is the only way to do it that would work for all json There is json stream library can get around this in some cases depending what you are looking for in the json Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers Another peculiarity is the way you use properties twice over in propertiesWithGeocoding if following First you run along it to get locations then you chunk it then you use mapM and sequence these are where are streaming library like streaming helps and it would nice to have runnable fragment to show how refactoring goes All of this so far can be made to stream beautifully without mapM which tends to accumulate the whole list Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers Finally though you zip the result with properties again if follow This is problem for properly streaming low memory use program since it entails that the first time you went through properties everything has to be saved since the compiler sees it will need it again Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers When you were shocked by the memory use take it you were sending more than or batches of 100 Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers can run the new version but made patch https github com Leonti haskell memory so pull that helped reduce memory pile up with the previous version you had on github doubt it will have much effect but it will at least be able to get rid of one hypothesis about the problem Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers One simple modernization like is talking about would be to use http hackage haskell org package http client docs Network HTTP Client html httpLbs to get lazy bytestring to feed directly to aeson Reduce memory usage of Haskell program haskell streaming aeson pI have following program in Haskell ppre codeprocessDate String gt IO processDate date do let newFlattenedPropertiesWithPrice filter notYetInserted date existingProperties flattenedPropertiesWithPrice geocodedProperties lt propertiesWithGeocoding newFlattenedPropertiesWithPricepropertiesWithGeocoding ParsedProperty gt IO ParsedProperty Maybe LatLng propertiesWithGeocoding properties do let addresses fmap location properties let batchAddresses chunksOf 100 addresses batchGeocodedLocations lt mapM geocodeAddresses batchAddresses let geocodedLocations fromJust concat lt gt sequence batchGeocodedLocations return zip properties geocodedLocations geocodeAddresses String gt IO Maybe Maybe LatLng geocodeAddresses addresses do mapQuestKey lt getEnv MAP QUEST KEY geocodeResponse lt openURL mapQuestUrl mapQuestKey addresses return geocodeResponseToResults geocodeResponsegeocodeResponseToResults String gt Maybe Maybe LatLng geocodeResponseToResults inputResponse latLangs where decodedResponse Maybe GeocodingResponse decodedResponse decodeGeocodingResponse inputResponse latLangs fmap fmap geocodingResultToLatLng results decodedResponsedecodeGeocodingResponse String gt Maybe GeocodingResponsedecodeGeocodingResponse inputResponse Data Aeson decode fromString inputResponse Maybe GeocodingResponse code prepIt reads list of properties homes and apartments from html files parses them geocodes the addresses and saves the results into sqlite db brEverything works fine except for very high memory usage around 800M brBy commenting code out have pinpointed the problem to be the geocoding step brI send 100 addresses at time to MapQuest api href https developer mapquest com documentation geocoding api batch get rel nofollow noreferrer https developer mapquest com documentation geocoding api batch get brThe response for 100 addresses is quite massive so it might be one of the culprits but 800M feel like it holds to all of the results until the end which drives the memory usage so high ppAfter commenting out the geocoding part of the program memory usage is around 30M which is fine ppYou can get the full version which reproduces the issue here href https github com Leonti haskell memory so rel nofollow noreferrer https github com Leonti haskell memory so pp href https stack imgur com 50GCJ png rel nofollow noreferrer img src https stack imgur com 50GCJ png alt enter image description here ppI quite newbie in Haskell so not sure how can optimize it brAny ideas ppCheers Let us continue this discussion in chat http chat stackoverflow com rooms 134269 discussion between michael and leonti,0,NULL,NULL 80467,241959,1130837,Yearling,NULL,NULL,0,NULL,NULL 80468,102173,430972,Popular Question,NULL,NULL,0,NULL,NULL 80469,293838,742528,NULL,NULL,NULL,0,NULL,NULL 80470,1487470,1484162,Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80471,384814,1028144,Notable Question,NULL,NULL,0,NULL,NULL 80472,317230,1308789,NULL,NULL,NULL,0,NULL,NULL 80473,93894,346263,Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80474,1434573,772441,NULL,NULL,NULL,0,NULL,NULL 80475,1337164,788285,NULL,NULL,NULL,0,NULL,NULL 80476,969878,872247,NULL,NULL,NULL,0,NULL,NULL 80477,482228,52349,Caucus,NULL,NULL,0,NULL,NULL 80478,569739,1330610,NULL,NULL,NULL,0,NULL,NULL 80479,392573,826565,Nice Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 80480,11351213,826565,Nice Question Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 80481,1489271,757944,NULL,NULL,NULL,0,NULL,NULL 80482,444683,87739,Nice Question Famous Question Notable Question Popular Question Great Answer Popular Question Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Good Question Popular Question Famous Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Famous Question Great Question Famous Question Yearling Nice Question Notable Question Notable Question Popular Question Notable Question Nice Question Popular Question Nice Question Good Question Nice Question Popular Question Popular Question Notable Question Popular Question javascript Notable Question Popular Question Famous Question Popular Question Notable Question Yearling Notable Question Popular Question Good Answer Famous Question Popular Question Good Answer Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80483,304508,681026,Scholar Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80484,54257,665869,Good Answer Yearling Popular Question Necromancer Yearling Popular Question Critic Yearling Notable Question Notable Question Nice Answer Yearling Caucus Revival Necromancer Necromancer,NULL,NULL,0,NULL,NULL 80485,732142,1524764,NULL,NULL,NULL,0,NULL,NULL 80486,416458,196732,Nice Answer Peer Pressure Yearling Good Question Necromancer Civic Duty Nice Answer Notable Question Yearling Popular Question Yearling Good Answer Yearling Necromancer Yearling Famous Question Yearling Pundit Necromancer Nice Answer,NULL,pHere is an immutable does not modify the inputs version of answer Useful if you re doing functional programming type stuff ppre class lang js prettyprint override codeexport function isObject item return item amp amp typeof item object amp amp Array isArray item export default function mergeDeep target source let output Object assign target if isObject target amp amp isObject source Object keys source forEach key gt if isObject source key if key in target Object assign output key source key else output key mergeDeep target key source key else Object assign output key source key return output code pre updated it after some testing found bug with the deeply nested objects pHere is an immutable does not modify the inputs version of answer Useful if you re doing functional programming type stuff ppre class lang js prettyprint override codeexport function isObject item return item amp amp typeof item object amp amp Array isArray item export default function mergeDeep target source let output Object assign target if isObject target amp amp isObject source Object keys source forEach key gt if isObject source key if key in target Object assign output key source key else output key mergeDeep target key source key else Object assign output key source key return output code pre Its computed property name the first will use the value of key as the property name the later will make key the property name See http es6 features org ComputedPropertyNames pHere is an immutable does not modify the inputs version of answer Useful if you re doing functional programming type stuff ppre class lang js prettyprint override codeexport function isObject item return item amp amp typeof item object amp amp Array isArray item export default function mergeDeep target source let output Object assign target if isObject target amp amp isObject source Object keys source forEach key gt if isObject source key if key in target Object assign output key source key else output key mergeDeep target key source key else Object assign output key source key return output code pre Yeah it doesn guarantee the result is immutable it just doesn modify it inputs so its functional immutable compatible Also you should be testing toMerge in your example not myInput pHere is an immutable does not modify the inputs version of answer Useful if you re doing functional programming type stuff ppre class lang js prettyprint override codeexport function isObject item return item amp amp typeof item object amp amp Array isArray item export default function mergeDeep target source let output Object assign target if isObject target amp amp isObject source Object keys source forEach key gt if isObject source key if key in target Object assign output key source key else output key mergeDeep target key source key else Object assign output key source key return output code pre Yeah if your using React this is good thing as components that take those deeper objects as props will not re render pIn case you re using href http www doughellmann com projects virtualenvwrapper rel noreferrer virtualenvwrapper highly recommend doing so you can define different hooks preactivate postactivate predeactivate postdeactivate using the scripts with the same names in code VIRTUAL ENV bin code You need the postactivate hook ppre code workon myvenv cat VIRTUAL ENV bin postactivate bin bash This hook is run after this virtualenv is activated export DJANGO DEBUG Trueexport S3 KEY mykeyexport S3 SECRET mysecret echo DJANGO DEBUGTrue code prepIf you want to keep this configuration in your project directory simply create symlink from your project directory to code VIRTUAL ENV bin postactivate code ppre code rm VIRTUAL ENV bin postactivate ln env postactivate VIRTUAL ENV bin postactivate code prepYou could even href http www doughellmann com docs virtualenvwrapper scripts html scripts rel noreferrer automate the creation of the symlinks each time you use emmkvirtualenv em ph1Cleaning up on deactivate h1pRemember that this wont clean up after itself When you deactivate the virtualenv the environment variable will persist To clean up symmetrically you can add to code VIRTUAL ENV bin predeactivate code ppre code cat VIRTUAL ENV bin predeactivate bin bash This hook is run before this virtualenv is deactivated unset DJANGO DEBUG deactivate echo DJANGO DEBUG code prepRemember that if using this for environment variables that might already be set in your environment then the unset will result in them being completely unset on leaving the virtualenv So if that is at all probable you could record the previous value somewhere temporary then read it back in on deactivate ppSetup ppre code cat VIRTUAL ENV bin postactivate bin bash This hook is run after this virtualenv is activated if SOME VAR then export SOME VAR BACKUP SOME VARfiexport SOME VAR apple cat VIRTUAL ENV bin predeactivate bin bash This hook is run before this virtualenv is deactivated if SOME VAR BACKUP then export SOME VAR SOME VAR BACKUP unset SOME VAR BACKUPelse unset SOME VARfi code prepTest ppre code echo SOME VARbanana workon myenv echo SOME VARapple deactivate echo SOME VARbanana code pre And source control How does this translate to other people cloning and setting up project that needs the env var,1,NULL,How to deep merge instead of shallow merge javascript spread syntax pBoth href https developer mozilla org en US docs Web JavaScript Reference Global Objects Object assign rel noreferrer Object assign and href https github com sebmarkbage ecmascript rest spread rel noreferrer Object spread only do shallow merge ppAn example of the problem ppre code No object nestingconst const const code prepThe output is what you expect However if try this ppre code Object nestingconst const const code prepInstead of ppre code code prepyou get ppre code code prepx is completely overwritten because the spread syntax only goes one level deep This is the same with codeObject assign code ppIs there way to do this pHere is an immutable does not modify the inputs version of answer Useful if you re doing functional programming type stuff ppre class lang js prettyprint override codeexport function isObject item return item amp amp typeof item object amp amp Array isArray item export default function mergeDeep target source let output Object assign target if isObject target amp amp isObject source Object keys source forEach key gt if isObject source key if key in target Object assign output key source key else output key mergeDeep target key source key else Object assign output key source key return output code pre 80487,122713,970319,Yearling Notable Question Famous Question Famous Question Popular Question Nice Question Yearling Popular Question Good Question Popular Question Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80488,91844,224579,NULL,NULL,NULL,0,NULL,NULL 80489,308979,490315,Popular Question Notable Question Favorite Question Good Question Famous Question Necromancer Famous Question Famous Question Popular Question Nice Answer Notable Question Yearling Caucus Famous Question Nice Answer Enlightened Census Custodian Notable Question Necromancer Popular Question Necromancer Popular Question Popular Question Nice Question Pundit Yearling Popular Question Great Question Announcer Census Stellar Question Necromancer Nice Answer Favorite Question Necromancer Good Question Yearling,NULL,NULL,0,NULL,NULL 80490,111061,324756,Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 80491,1405144,1116684,NULL,NULL,NULL,0,NULL,NULL 80492,219925,218498,NULL,NULL,NULL,0,NULL,NULL 80493,1089711,503318,NULL,NULL,NULL,0,NULL,NULL 80494,183948,1263676,NULL,NULL,NULL,0,NULL,NULL 80495,10646,1214215,NULL,NULL,NULL,0,NULL,NULL 80496,638693,1438720,NULL,NULL,NULL,0,NULL,NULL 80497,36563,678164,Popular Question Notable Question Yearling Notable Question Critic Nice Question,NULL,NULL,0,NULL,NULL 80498,2144,1027246,Nice Answer Enlightened Popular Question Famous Question Popular Question Notable Question Tumbleweed,NULL,NULL,0,NULL,NULL 80499,881863,574681,Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 80500,40803,935353,NULL,NULL,NULL,0,NULL,NULL 80501,118388,743900,Popular Question,NULL,NULL,0,NULL,NULL 80502,90424,677694,Commentator Revival Revival Yearling Critic Nice Answer,NULL,date command on OS doesn have ISO 8601 option bash macos iso8601 pIn Bash script want to print the current datetime in href http en wikipedia org wiki ISO 8601 rel noreferrer ISO 8601 format preferably UTC and it seems that this should be as simple as codedate code pp href http ss64 com bash date html rel noreferrer http ss64 com bash date html ppBut this doesn seem to work on my Mac ppre code date Idate illegal option Iusage date jnu dst seconds west val ymwdHMS fmt date mm dd HH MM cc yy ss format code prepAnd indeed codeman date code doesn list this option ppAnyone know why this is or any other easy way for me to print the date in ISO 8601 format Thanks It would be good to post your comment as an answer upvote it,0,NULL,NULL 80503,31161,254415,Yearling Notable Question Nice Answer Enlightened Announcer Yearling Nice Question Nice Answer Nice Answer Yearling Guru Famous Question,NULL,NULL,0,NULL,NULL 80504,2695,592591,NULL,NULL,NULL,0,NULL,NULL 80505,310068,1078969,Scholar Supporter Editor Commentator Informed Autobiographer Organizer Yearling Critic Yearling Suffrage Vox Populi Custodian Custodian Yearling Excavator Explainer Yearling Citizen Patrol Yearling Tenacious Yearling Enthusiast Student Fanatic Custodian Caucus Self-Learner docker Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80506,82608,191863,Good Question Yearling,NULL,NULL,0,NULL,NULL 80507,283799,191863,Good Question Yearling,NULL,NULL,0,NULL,NULL 80508,125625,493107,Popular Question Enthusiast Student,NULL,NULL,0,NULL,NULL 80509,39673,183481,Good Answer Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80510,1512805,1062862,NULL,NULL,NULL,0,NULL,NULL 80511,139338,613324,Necromancer Popular Question,NULL,NULL,0,NULL,NULL 80512,542111,964274,Critic Informed,NULL,NULL,0,NULL,NULL 80513,755017,572851,NULL,NULL,NULL,0,NULL,NULL 80514,186871,14948,NULL,NULL,NULL,0,NULL,NULL 80515,1241689,566216,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80516,886446,1215749,Scholar Editor Commentator,NULL,NULL,0,NULL,NULL 80517,33367,317302,Yearling Nice Answer Famous Question Popular Question Popular Question Notable Question Yearling Good Answer Good Answer Yearling Great Question Populist,NULL,NULL,0,NULL,NULL 80518,174958,238847,Notable Question Notable Question Popular Question Necromancer Nice Question Inquisitive Nice Question Caucus Notable Question Yearling Notable Question Popular Question Popular Question,NULL,pI am very disappointed by the accepted answers in this question This will not scale If you read the fine print on cursor skip pblockquote pThe cursor skip method is often expensive because it requires the server to walk from the beginning of the collection or index to get the offset or skip position before beginning to return result As offset pageNumber above increases cursor skip will become slower and more CPU intensive With larger collections cursor skip may become IO bound blockquotepTo achieve pagination in scaleable way combine limit along with at least one filter criterion createdOn date suits many purposes ppre codeMyModel find createdOn lte request createdOnBefore limit 10 sort createdOn code pre Yes timestamps will cause trouble if there is clustering on the same time recommend adding sortable auto incrementable id to each record It fast and it scales and precise But sometimes you can use timestamps because you may sort by other criteria than time If performance matters that much keep an external record counter document that you can refer to,0,NULL,NULL 80519,213794,1382670,NULL,NULL,NULL,0,NULL,NULL 80520,125144,1118626,Census Informed Autobiographer,NULL,NULL,0,NULL,NULL 80521,38398,1238073,Revival,NULL,NULL,0,NULL,NULL 80522,3658395,490815,Civic Duty Popular Question Famous Question Enthusiast Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 80523,2657290,1046526,Notable Question Good Question,NULL,NULL,0,NULL,NULL 80524,1550318,1046526,Notable Question Good Question,NULL,NULL,0,NULL,NULL 80525,109921,856490,Popular Question,NULL,NULL,0,NULL,NULL 80526,489160,118220,Good Question Great Answer Great Answer Yearling Necromancer Popular Question Popular Question Citizen Patrol Yearling Nice Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 80527,881545,1281136,NULL,NULL,NULL,0,NULL,NULL 80528,1296414,652826,NULL,NULL,NULL,0,NULL,NULL 80529,355030,49518,NULL,NULL,NULL,0,NULL,NULL 80530,136059,1267663,Nice Answer Nice Question Notable Question Nice Question Nice Question Yearling Necromancer Popular Question Nice Answer Announcer Good Answer Notable Question Good Answer Popular Question Nice Answer Caucus Constituent Good Question Revival Famous Question Popular Question Census Yearling Notable Question Good Answer Notable Question Pundit Caucus Constituent Archaeologist Good Question Announcer Announcer Notable Question Good Answer Revival Yearling Caucus Announcer Announcer Announcer Popular Question Notable Question Nice Question,NULL,How to Test if Git Repository is Shallow git pWhen make local clone from repository the clone fails if the origin repository is shallow ppre codegit clone target dir code prepAs that is not always the case like to find out prior clone but don know how to do that ppWhat tried so far is very little basically creating error messages on clone At the moment just fetch to unshallow and if that fails do plain fetch because if the repo would be shallow it should be unshallow afterwards ppre codeif git fetch unshallow then git fetchfi code prepHowever there is no guarantee for being unshallow afterwards remote to fetch from can be shallow too so test for the un shallowness of git repository would be much better What the question h3Short answer h3pYou omitted the fact that you ran codegit push code got the following error and then proceeded to run codegit pull code ppre codeTo git org username test1 git rejected dev gt dev non fast forward error failed to push some refs to git org username test1 git hint Updates were rejected because the tip of your current branch is behindhint its remote counterpart Integrate the remote changes hint git pull before pushing again hint See the Note about fast forwards in git push help for details code prepDespite Git trying to be helpful strongits git pull advice is most likely not what you want to do strong ppIf you are pulliWorking on feature branch or developer branch strongalone strong then you can run codegit push force code to update the remote with your post rebase commits href https stackoverflow com 27708147 1267663 as per user4405677 answer liliWorking on branch with multiple developers at the same time then strongyou probably should not be using codegit rebase code strong in the first place To update codedev code with changes from codemaster code you should instead of running codegit rebase master dev code run codegit merge master code whilst on codedev code href https stackoverflow com 9264653 1267663 as per Justin answer li ulh3A slightly longer explanation h3pEach commit hash in Git is based on number of factors one of which is the hash of the commit that comes before it ppIf you reorder commits you will change commit hashes rebasing when it does something will change commit hashes With that the result of running codegit rebase master dev code where codedev code is out of sync with codemaster code will create emnew em commits and thus hashes with the same content as those on codedev code but with the commits on codemaster code inserted before them ppYou can end up in situation like this in multiple ways Two ways can think of pulliYou could have commits on codemaster code that you want to base your codedev code work on liliYou could have commits on codedev code that have already been pushed to remote which you then proceed to change reword commit messages reorder commits squash commits etc li ulpLet better understand what happened—here is an example ppYou have repository ppre code2a2e220 HEAD master C5ab1bda4 C43cb46a9 C385f59ab C24516164 C10e783a3 C0 code prep img src https stack imgur com rIXUz png alt Initial set of linear commits in repository ppYou then proceed to change commits ppre codegit rebase interactive HEAD Three commits before where HEAD is pointing code prep This is where you ll have to take my word for it there are number of ways to change commits in Git In this example changed the time of codeC3 code but you be inserting new commits changing commit messages reordering commits squashing commits together etc ppre codeba7688a HEAD master C544085d5 C4961390d C385f59ab C24516164 C10e783a3 C0 code prep img src https stack imgur com kiPLf png alt The same commits with new hashes ppThis is where it is important to notice that the commit hashes are different This is expected behaviour since you have changed something anything about them This is okay BUT pp img src https stack imgur com QaTVK png alt graph log showing that master is out of sync with the remote ppTrying to push will show you an error and hint that you should run codegit pull code ppre code git push origin masterTo git org username test1 git rejected master gt master non fast forward error failed to push some refs to git org username test1 git hint Updates were rejected because the tip of your current branch is behindhint its remote counterpart Integrate the remote changes hint git pull before pushing again hint See the Note about fast forwards in git push help for details code prepIf we run codegit pull code we see this log ppre code7df65f2 HEAD master Merge branch master of bitbucket org username test1ba7688a C544085d5 C4961390d C32a2e220 origin master C585f59ab C2ab1bda4 C44516164 C13cb46a9 C30e783a3 C0 code prepOr shown another way pp img src https stack imgur com K6hCb png alt graph log showing merge commit ppAnd now we have duplicate commits locally If we were to run codegit push code we would send them up to the server ppTo avoid getting to this stage we could have run codegit push force code where we instead ran codegit pull code This would have sent our commits with the new hashes to the server without issue To fix the issue at this stage we can reset back to before we ran codegit pull code ppLook at the reflog codegit reflog code to see what the commit hash was embefore em we ran codegit pull code ppre code070e71d HEAD pull Merge made by the recursive strategy ba7688a HEAD rebase finish returning to refs heads masterba7688a HEAD rebase pick C544085d5 HEAD rebase pick C4961390d HEAD commit amend C33cb46a9 HEAD cherry pick fast forward85f59ab HEAD rebase start checkout HEAD 2a2e220 HEAD rebase finish returning to refs heads master2a2e220 HEAD rebase start checkout refs remotes origin master2a2e220 HEAD 10 commit C5ab1bda4 HEAD 11 commit C43cb46a9 HEAD 12 commit C385f59ab HEAD 13 commit C24516164 HEAD 14 commit C10e783a3 HEAD 15 commit initial C0 code prepAbove we see that codeba7688a code was the commit we were at before running codegit pull code With that commit hash in hand we can reset back to that codegit reset hard ba7688a code and then run codegit push force code ppAnd we re done ph3But wait continued to base work off of the duplicated commits h3pIf you somehow didn notice that the commits were duplicated and proceeded to continue working atop of duplicate commits you ve really made mess for yourself The size of the mess is proportional to the number of commits you have atop of the duplicates ppWhat this looks like ppre code3b959b4 HEAD master C108f84379 C90110e93 C86c4a525 C7630e7b4 C6070e71d origin master Merge branch master of bitbucket org username test1ba7688a C544085d5 C4961390d C32a2e220 C585f59ab C2ab1bda4 C44516164 C13cb46a9 C30e783a3 C0 code prep img src https stack imgur com cQQ3i png alt Git log showing linear commits atop duplicated commits ppOr shown another way pp img src https stack imgur com GTS2A png alt log graph showing linear commits atop duplicated commits ppIn this scenario we want to remove the duplicate commits but keep the commits that we have based on them—we want to keep C6 through C10 As with most things there are number of ways to go about this ppEither pulliCreate new branch at the last duplicated commitsup1 sup href https git scm com docs git cherry pick rel noreferrer codecherry pick code each commit C6 through C10 inclusive onto that new branch and treat that new branch as canonical liliRun codegit rebase interactive commit code where code commit code is the commit emprior em to both the duplicated commitssup2 sup Here we can outright delete the lines for the duplicates li ulp sup1 sup It doesn matter which of the two you choose either codeba7688a code or code2a2e220 code work fine pp sup2 sup In the example it would be code85f59ab code ph3TL DR h3pSet href https git scm com docs git config variables rel noreferrer codeadvice pushNonFastForward code to codefalse code ppre codegit config global advice pushNonFastForward false code pre would recommend using git push force with lease https robots thoughtbot com git push force with lease nowadays as it better default,0,NULL,NULL 80531,18461,258187,Yearling Good Question Notable Question Notable Question Popular Question Notable Question Nice Question Yearling Famous Question Popular Question Popular Question Yearling Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80532,136486,680906,NULL,NULL,NULL,0,NULL,NULL 80533,79718,176336,Inquisitive Citizen Patrol Necromancer Notable Question Popular Question Famous Question Popular Question Nice Question Notable Question Yearling Famous Question Nice Question Notable Question Famous Question Notable Question Popular Question Yearling Notable Question Notable Question Revival Notable Question Good Question Popular Question Notable Question Caucus Notable Question Popular Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 80534,35525,211490,Necromancer Yearling Caucus Promoter Nice Answer Curious Necromancer Good Answer Yearling Tumbleweed Popular Question Nice Answer Excavator Great Question Yearling,NULL,NULL,0,NULL,NULL 80535,208099,704286,Yearling Popular Question Notable Question Yearling Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 80536,475554,1267842,NULL,NULL,NULL,0,NULL,NULL 80537,860406,1118560,NULL,NULL,NULL,0,NULL,NULL 80538,14135,593562,NULL,NULL,NULL,0,NULL,NULL 80539,19457,343125,NULL,NULL,NULL,0,NULL,NULL 80540,475079,1510760,NULL,NULL,NULL,0,NULL,NULL 80541,63831,277186,Yearling Inquisitive Good Question Popular Question Notable Question Caucus Popular Question Nice Answer Necromancer Popular Question Yearling Popular Question Nice Answer Popular Question Popular Question Notable Question Notable Question Popular Question Yearling Popular Question Notable Question Necromancer Popular Question Necromancer,NULL,pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec Can you clarify your Rails uses comment on Rails and rake db create all throws this exception pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec Rails and Rails do not have any call to last comment although there are references to it in the rails tests they would not cause this error confused pRake 11 href https github com ruby rake blob ed197e56cc626725f02431d909e02e048244488e lib rake task manager rb L8 rel noreferrer removes the codelast comment code method which delRails del rspec core lt uses Therefore until if patch is released we need to pin rake to an older version in Gemfile ppre codegem rake lt 11 code prepthen ppre code bundle update grep rake Gemfile lock rake rake gt rake 10 rake rake lt 11 code prepWe are now using rake 10 which still has the codelast comment code method and our coderake code tasks will work again pp strongUPDATE strong This has now been fixed in rspec so the only thing necessary should be updating rspec Thanks for the good questions Kris just posted an answer which addresses my the root issue pHere terse solution taken from href https codegolf stackexchange com questions 4707 outputting ordinal numbers 1st 2nd 3rd answer 4712 Gareth on codegolf ppre codeordinal lambda tsnrhtdd 10 10 10 lt 10 code prepWorks on any number ppre codeprint ordinal for in range 32 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th 31st code prepFor python codemath floor code is needed ppre codeimport mathordinal lambda tsnrhtdd math floor 10 10 10 lt 10 code pre beautiful code is the antidote to complexity,0,NULL,NULL 80542,1375758,789616,NULL,NULL,NULL,0,NULL,NULL 80543,840286,273229,NULL,NULL,NULL,0,NULL,NULL 80544,1505070,938947,Popular Question Caucus Critic Popular Question Yearling Custodian Yearling Informed Yearling Tenacious Yearling Enthusiast Unsung Hero Yearling Caucus Explainer Constituent Yearling Fanatic Popular Question Caucus Constituent ruby-on-rails Yearling Custodian,NULL,NULL,0,NULL,NULL 80545,11433,585544,NULL,NULL,NULL,0,NULL,NULL 80546,1196809,607106,NULL,NULL,NULL,0,NULL,NULL 80547,444665,4195,Nice Answer Yearling Census Documentation User,NULL,NULL,0,NULL,NULL 80548,1336694,1095990,Enthusiast,NULL,NULL,0,NULL,NULL 80549,93626,1086672,Popular Question Famous Question Yearling Caucus Commentator Supporter,NULL,NULL,0,NULL,NULL 80550,435422,1032677,Yearling Necromancer,NULL,NULL,0,NULL,NULL 80551,254520,102441,Notable Question Nice Question Notable Question Nice Answer Good Answer Revival Notable Question Nice Answer Archaeologist Nice Answer Notable Question Nice Answer Enlightened Necromancer Nice Answer Enlightened Yearling Nice Answer Necromancer Notable Question Popular Question Nice Answer Good Question Great Answer Famous Question Necromancer Nice Answer Good Answer dictionary Popular Question Custodian Deputy Populist Notable Question Popular Question Famous Question Popular Question Popular Question numpy Popular Question Notable Question Investor Popular Question Nice Answer Nice Answer Enlightened Nice Answer Nice Question Nice Answer Electorate Notable Question Necromancer Nice Answer Nice Answer Popular Question Altruist Popular Question Good Answer Popular Question Popular Question Nice Answer python-3.x Good Answer Notable Question Necromancer Popular Question Nice Question Nice Answer Enlightened Notable Question Generalist Good Answer Announcer html Famous Question Nice Answer Yearling Popular Question Famous Question Good Question Necromancer Famous Question css Nice Answer Enlightened Notable Question Nice Answer Good Answer Popular Question Announcer Popular Question Necromancer Guru Good Answer Nice Answer Enlightened Necromancer json Good Answer Nice Answer Documentation User Guru Nice Answer Enlightened Popular Question Nice Answer Guru Announcer Nice Question Guru Notable Question Nice Answer Notable Question Nice Answer Enlightened Nice Answer Good Answer Good Answer Notable Question Popular Question Nice Answer Nice Question Populist Necromancer Yearling Good Question Nice Answer Notable Question Nice Answer Nice Question Good Answer Good Answer Good Answer Announcer Necromancer Good Question Nice Answer Announcer Good Question Popular Question Necromancer Nice Answer Enlightened arrays Necromancer numpy Nice Answer Enlightened Popular Question Nice Answer Nice Answer Popular Question Nice Answer,NULL,pYou can override codeEnum new code to take second codedoc code argument as follows ppre codeclass DocEnum Enum def new cls value doc None self object new cls calling super new value here would fail self value value if doc is not None self doc doc return self code prepWhich can be used as ppre codeclass Color DocEnum Some colors RED The color red GREEN The color green BLUE The color blue These docstrings are more useful in the real example code prepWhich in IPython gives the following ppre codeIn 17 Color RED Type ColorString form Color REDDocstring The color redClass docstring Some colors code prehrpThis can also be made to work for codeIntEnum code ppre codeclass DocIntEnum IntEnum def new cls value doc None self int new cls value calling super new value here would fail self value value if doc is not None self doc doc return self code pre Fey Calling super new cls doesn work as that calls Enum new which isn ready to be called yet Overriding init also doesn work because then it too late and now Color RED value is tuple not the intended integer pYou can override codeEnum new code to take second codedoc code argument as follows ppre codeclass DocEnum Enum def new cls value doc None self object new cls calling super new value here would fail self value value if doc is not None self doc doc return self code prepWhich can be used as ppre codeclass Color DocEnum Some colors RED The color red GREEN The color green BLUE The color blue These docstrings are more useful in the real example code prepWhich in IPython gives the following ppre codeIn 17 Color RED Type ColorString form Color REDDocstring The color redClass docstring Some colors code prehrpThis can also be made to work for codeIntEnum code ppre codeclass DocIntEnum IntEnum def new cls value doc None self int new cls value calling super new value here would fail self value value if doc is not None self doc doc return self code pre Good suggestion updated pYou can override codeEnum new code to take second codedoc code argument as follows ppre codeclass DocEnum Enum def new cls value doc None self object new cls calling super new value here would fail self value value if doc is not None self doc doc return self code prepWhich can be used as ppre codeclass Color DocEnum Some colors RED The color red GREEN The color green BLUE The color blue These docstrings are more useful in the real example code prepWhich in IPython gives the following ppre codeIn 17 Color RED Type ColorString form Color REDDocstring The color redClass docstring Some colors code prehrpThis can also be made to work for codeIntEnum code ppre codeclass DocIntEnum IntEnum def new cls value doc None self int new cls value calling super new value here would fail self value value if doc is not None self doc doc return self code pre Fey Ok init does work but not for IntEnum pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone This no longer works with GCC on ideone it gives error redefinition of ‘templateclass class void print const pA little less machinery than Kerrek answer but afraid no more readable ppre codetemplate lt class typename std enable if lt std is base of lt Printable gt value gt type nullptr gt void print const amp value std cout lt lt printable lt lt amp value lt lt template lt class typename std enable if lt std is base of lt Serializable gt value gt type nullptr gt void print const amp value std cout lt lt serializable lt lt amp value lt lt code prepSee it href http ideone com vzv3Xn rel nofollow noreferrer live at ideone didn say it was just point out that your ideone no longer compiles pYou need the href https docs scipy org doc numpy 14 reference generated numpy where html rel noreferrer codenp where code function to get the indexes ppre code gt gt gt np where vals all axis array 15 code prepOr as the documentation states pblockquote pIf only condition is given return codecondition nonzero code blockquotepYou could directly call href https docs scipy org doc numpy 14 reference generated numpy nonzero html numpy nonzero rel noreferrer code nonzero code on the array returned by code all code ppre code gt gt gt vals all axis nonzero array 15 code prepTo dissassemble that ppre code gt gt gt vals array True False False False True False False False False False dtype bool code prepand calling the code all code method on that array with codeaxis code gives you codeTrue code where both are True ppre code gt gt gt vals all axis array False False False True False False False False False False False False False False False True False False False False False False False False dtype bool code prepand to get which indexes are codeTrue code ppre code gt gt gt np where vals all axis array 15 code prepor ppre code gt gt gt vals all axis nonzero array 15 code prehrpI find my solution bit more readable but as unutbu points out the following may be faster and returns the same value as code vals all axis code ppre code gt gt gt vals amp vals code pre tend to favor np nonzero over the np where alias to avoid confusion with the completely different np where bool if true if false function,1,NULL,Return equivalent of from function for indexing array python arrays numpy pI have large array and function that returns index lists into the array pre codeimport numpyn 500a numpy random rand def get idx More complicated in reality return range if gt else range data get idx 29 data get idx 30 code prepA typical case is that the range is the entire array coderange code Unfortunately codea range code scales with coden code while codea code is of course constant time It pity that one cannot return code code from codeget idx code ppWhat can return from codeget idx code to use as an index for the entire array pNumPy has helper href https docs scipy org doc numpy reference generated numpy html numpy rel nofollow noreferrer codenp code which can be used to construct codeslice code and codeEllipsis code objects ppre codedef get idx return np if gt else np or even np None if gt else code prepIn general codea np lt stuff gt code is exactly the same as codea lt stuff gt code How can attach documentation to members of python enum python enums pI like to give documentation for each member of python enum in way that IPython can find it What have right now is something like ppre codeclass Color Enum RED The color red GREEN The color green BLUE The color blue These docstrings are more useful in the real example RED GREEN BLUE code prepThis isn great as it duplicates the member names and makes it harder to ask for the documentation for just one member ppI can get what after with ppre codeclass Color Enum RED GREEN BLUE 3Color RED doc The color red Color GREEN doc The color green Color BLUE doc The color blue These docstrings are more useful in the real example code prepBut this still suffers from repetition of the names ppIs there an easier way of doing this pYou can override codeEnum new code to take second codedoc code argument as follows ppre codeclass DocEnum Enum def new cls value doc None self object new cls calling super new value here would fail self value value if doc is not None self doc doc return self code prepWhich can be used as ppre codeclass Color DocEnum Some colors RED The color red GREEN The color green BLUE The color blue These docstrings are more useful in the real example code prepWhich in IPython gives the following ppre codeIn 17 Color RED Type ColorString form Color REDDocstring The color redClass docstring Some colors code prehrpThis can also be made to work for codeIntEnum code ppre codeclass DocIntEnum IntEnum def new cls value doc None self int new cls value calling super new value here would fail self value value if doc is not None self doc doc return self code pre 80552,412941,203858,Good Answer Guru Nice Answer Good Answer Nice Answer Enlightened Yearling Nice Answer Guru Good Answer Good Answer Great Answer Good Answer Yearling Great Answer Nice Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 80553,138444,141427,Teacher Editor Yearling Commentator Yearling Caucus Constituent Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80554,316698,1444165,NULL,NULL,NULL,0,NULL,NULL 80555,239129,755918,NULL,NULL,NULL,0,NULL,NULL 80556,425537,153110,Popular Question Nice Question Popular Question Good Answer Notable Question Popular Question Famous Question Famous Question Notable Question Nice Question Famous Question Notable Question Notable Question Nice Answer Yearling Nice Question Nice Answer Enlightened Popular Question Notable Question Notable Question Famous Question Guru Popular Question Yearling Good Answer Popular Question Nice Answer Enlightened Nice Answer Custodian Popular Question Popular Question Benefactor Yearling Good Question Nice Question,NULL,NULL,0,NULL,NULL 80557,632208,482713,Popular Question,NULL,NULL,0,NULL,NULL 80558,8767,330570,Popular Question Necromancer Popular Question Revival Yearling Necromancer Notable Question Famous Question Famous Question Famous Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 80559,854500,1389263,NULL,NULL,NULL,0,NULL,NULL 80560,302481,1313287,NULL,NULL,NULL,0,NULL,NULL 80561,447133,1245305,NULL,NULL,NULL,0,NULL,NULL 80562,7089,267838,NULL,NULL,NULL,0,NULL,NULL 80563,133616,1172219,Yearling Necromancer Critic Necromancer,NULL,NULL,0,NULL,NULL 80564,11967,128346,Yearling Caucus Good Answer Necromancer Nice Answer Necromancer Nice Answer Enlightened Yearling Revival Nice Answer Good Answer Necromancer Caucus Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 80565,446045,479350,NULL,NULL,NULL,0,NULL,NULL 80566,34693,63964,NULL,NULL,NULL,0,NULL,NULL 80567,91719,586606,Yearling Popular Question Notable Question Popular Question Popular Question Yearling Nice Question Famous Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80568,306117,861210,Popular Question Notable Question Revival Nice Question,NULL,NULL,0,NULL,NULL 80569,566137,33671,Custodian Custodian Yearling Organizer Census Custodian Popular Question Documentation User Yearling Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 80570,749143,1010786,NULL,NULL,NULL,0,NULL,NULL 80571,61953,534561,Yearling Commentator Editor Good Answer Revival Necromancer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80572,786923,1447011,Yearling Nice Question Notable Question Yearling Famous Question Good Question,NULL,NULL,0,NULL,NULL 80573,1025376,438267,Notable Question Yearling Nice Question Revival Citizen Patrol Custodian Custodian Yearling Yearling Informed Autobiographer Yearling Yearling Enthusiast Yearling Caucus Custodian Civic Duty Yearling,NULL,NULL,0,NULL,NULL 80574,11337954,882585,NULL,NULL,NULL,0,NULL,NULL 80575,63301,882585,NULL,NULL,NULL,0,NULL,NULL 80576,1949043,1404808,Commentator,NULL,NULL,0,NULL,NULL 80577,885865,1211394,Notable Question Supporter,NULL,NULL,0,NULL,NULL 80578,532928,1394890,Popular Question,NULL,NULL,0,NULL,NULL 80579,360234,1238699,Notable Question,NULL,NULL,0,NULL,NULL 80580,21669,440252,Yearling Great Answer Necromancer Yearling Nice Answer Custodian Yearling,NULL,NULL,0,NULL,NULL 80581,921188,839571,Student Commentator Scholar,NULL,NULL,0,NULL,NULL 80582,6205,1473565,NULL,NULL,NULL,0,NULL,NULL 80583,126598,1062499,Commentator Yearling Enthusiast Caucus Citizen Patrol Yearling python Nice Answer Good Answer Yearling Nice Answer Excavator Yearling,NULL,NULL,0,NULL,NULL 80584,494656,951451,NULL,NULL,NULL,0,NULL,NULL 80585,873833,27462,Nice Answer Famous Question Notable Question Popular Question Yearling Nice Question Notable Question Yearling Good Question Popular Question Caucus Nice Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 80586,7894650,450692,NULL,NULL,NULL,0,NULL,NULL 80587,573780,450692,NULL,NULL,NULL,0,NULL,NULL 80588,343894,136476,Popular Question Good Question Popular Question Famous Question Nice Answer Nice Question Popular Question Yearling Guru Popular Question Nice Question Good Answer Notable Question Nice Answer Notable Question Necromancer Popular Question Nice Answer Yearling Good Question Guru Popular Question Popular Question Good Answer Revival Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80589,413482,833009,Yearling Yearling Announcer Citizen Patrol Custodian Critic Custodian Editor Deputy Reviewer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 80590,310396,1279281,NULL,NULL,NULL,0,NULL,NULL 80591,426525,1278882,Famous Question,NULL,NULL,0,NULL,NULL 80592,29812,77457,Popular Question Famous Question Notable Question Popular Question Necromancer Nice Question Nice Answer Nice Question Caucus Promoter Nice Question Benefactor Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 80593,1019365,306516,NULL,NULL,NULL,0,NULL,NULL 80594,381517,916784,Nice Question Famous Question Notable Question Nice Question Nice Question Yearling Good Question Famous Question Caucus Constituent Famous Question Announcer Nice Answer Tumbleweed Caucus Constituent Yearling Good Question Good Question Nice Answer Necromancer Census Caucus Constituent Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80595,520689,1084385,Guru Custodian Custodian Citizen Patrol Informed Critic Yearling Yearling Caucus Nice Answer,NULL,NULL,0,NULL,NULL 80596,662899,212651,Notable Question,NULL,,0,, 80597,76057,1100694,Nice Answer Necromancer Yearling Nice Answer Yearling Necromancer Yearling Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 80598,50225,109361,Nice Answer Yearling Enlightened,NULL,NULL,0,NULL,NULL 80599,75411,192094,Good Question Yearling,NULL,NULL,0,NULL,NULL 80600,114905,37396,NULL,NULL,NULL,0,NULL,NULL 80601,148649,1266759,Popular Question,NULL,NULL,0,NULL,NULL 80602,66696,812991,Popular Question Yearling Good Answer Good Answer Good Answer Populist Yearling,NULL,NULL,0,NULL,NULL 80603,260659,1110390,Civic Duty Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80604,147101,1031776,Critic Documentation User Revival Yearling Yearling Custodian Popular Question Caucus Constituent Yearling Self-Learner,NULL,NULL,0,NULL,NULL 80605,34720,1158,Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 80606,2008037,1225209,NULL,NULL,NULL,0,NULL,NULL 80607,361577,249058,Popular Question Notable Question Good Answer,NULL,NULL,0,NULL,NULL 80608,528992,386770,Popular Question Nice Question Popular Question Notable Question Yearling Good Answer Yearling Good Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 80609,640644,104861,NULL,NULL,NULL,0,NULL,NULL 80610,62459,856668,NULL,NULL,NULL,0,NULL,NULL 80611,809092,856668,NULL,NULL,NULL,0,NULL,NULL 80612,1380656,84905,Yearling Critic Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 80613,41466,22396,Nice Answer,NULL,NULL,0,NULL,NULL 80614,50743,916345,Yearling,NULL,NULL,0,NULL,NULL 80615,205660,916345,Yearling,NULL,NULL,0,NULL,NULL 80616,678395,876505,NULL,NULL,NULL,0,NULL,NULL 80617,348171,1236889,Yearling,NULL,NULL,0,NULL,NULL 80618,414536,690904,Yearling Nice Answer Necromancer Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 80619,194658,949513,Nice Answer Editor Famous Question Yearling Revival Necromancer Yearling Good Answer Announcer Nice Answer,NULL,NULL,0,NULL,NULL 80620,13719,1162513,Necromancer Yearling Caucus Nice Answer Good Answer Popular Question,NULL,NULL,0,NULL,NULL 80621,324127,70693,NULL,NULL,NULL,0,NULL,NULL 80622,21837,581475,Critic Yearling Yearling Commentator,NULL,NULL,0,NULL,NULL 80623,8855332,264008,Popular Question Notable Question Popular Question Caucus Notable Question Inquisitive Yearling Popular Question Necromancer Favorite Question Caucus Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 80624,204873,264008,Popular Question Notable Question Popular Question Caucus Notable Question Inquisitive Yearling Popular Question Necromancer Favorite Question Caucus Custodian Yearling Notable Question,NULL,NULL,0,NULL,NULL 80625,141459,442574,NULL,NULL,NULL,0,NULL,NULL 80626,200802,4702,Good Answer Nice Question Good Answer Yearling Yearling Nice Answer Good Answer Nice Answer Enlightened Great Answer Guru Good Answer Good Answer Yearling Good Question Famous Question,NULL,NULL,0,NULL,NULL 80627,380138,420309,Commentator Editor Curious Teacher Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 80628,163788,252822,NULL,NULL,NULL,0,NULL,NULL 80629,105085,74360,Yearling,NULL,NULL,0,NULL,NULL 80630,83175,111013,NULL,NULL,NULL,0,NULL,NULL 80631,376371,944885,NULL,NULL,NULL,0,NULL,NULL 80632,874431,1040540,NULL,NULL,NULL,0,NULL,NULL 80633,456857,1203005,NULL,NULL,NULL,0,NULL,NULL 80634,815491,125539,Yearling,NULL,NULL,0,NULL,NULL 80635,65354,672737,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 80636,339657,682343,Revival,NULL,NULL,0,NULL,NULL 80637,1510014,608440,NULL,NULL,NULL,0,NULL,NULL 80638,351540,723532,NULL,NULL,NULL,0,NULL,NULL 80639,63520,914276,NULL,NULL,NULL,0,NULL,NULL 80640,621565,847317,NULL,NULL,NULL,0,NULL,NULL 80641,61624,677528,Yearling,NULL,NULL,0,NULL,NULL 80642,328754,126899,Nice Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 80643,613901,123654,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80644,277731,1214247,NULL,NULL,NULL,0,NULL,NULL 80645,527938,484792,Curious Yearling,NULL,NULL,0,NULL,NULL 80646,414555,363568,NULL,NULL,NULL,0,NULL,NULL 80647,1353147,1121563,Scholar Popular Question Supporter,NULL,NULL,0,NULL,NULL 80648,125395,58635,Copy Editor Yearling Enlightened Nice Answer Necromancer Nice Answer Great Answer Nice Answer Caucus Good Answer Yearling Nice Answer Custodian Nice Answer Nice Answer Notable Question Popular Question Caucus Nice Answer Necromancer Good Answer Tumbleweed Documentation User Good Answer Good Answer Good Answer Census Good Answer Good Answer Popular Question Yearling Nice Answer Caucus Necromancer python Nice Answer Guru,NULL,pIf you have coreutils in Ubuntu Karmic but not Jaunty then your codesort code command should have code code option version sort which you could use to do the comparison ppre codeverlte echo sort head n1 verlt amp amp return verlte verlte amp amp echo yes echo no noverlt 10 amp amp echo yes echo no noverlt 10 amp amp echo yes echo no yesverlte amp amp echo yes echo no yesverlt amp amp echo yes echo no no code pre Doesn work with different representations of the same version and pIf you have coreutils in Ubuntu Karmic but not Jaunty then your codesort code command should have code code option version sort which you could use to do the comparison ppre codeverlte echo sort head n1 verlt amp amp return verlte verlte amp amp echo yes echo no noverlt 10 amp amp echo yes echo no noverlt 10 amp amp echo yes echo no yesverlte amp amp echo yes echo no yesverlt amp amp echo yes echo no no code pre think the sort has to be stable for this to work sensibly For example verlte succeeds while verlte fails for the reasons you outline always comes before would expect these to produce the same result pSince codemultiprocessing code does print the string contents of exceptions raised in child processes you can wrap all your child process code in try except that catches any exceptions formats the relavent stack traces and raises new codeException code that holds all the relevant information in its string ppAn example of function use with codemultiprocessing map code ppre codedef run functor functor Given no argument functor run it and return its result We can use this with multiprocessing map and map it over list of job functors to do them Handles getting more than multiprocessing pitiful exception output try This is where you do your actual work return functor except Put all exception text into an exception and raise that raise Exception join traceback format exception sys exc info code prepWhat you get is stack trace with another formatted stack trace as the error message which helps with debugging The OP specifically said he wanted to avoid passing formatted string,0,NULL,NULL 80649,4009,230074,Necromancer Necromancer Yearling Necromancer Announcer Scholar Commentator,NULL,NULL,0,NULL,NULL 80650,59755,535940,NULL,NULL,NULL,0,NULL,NULL 80651,912232,1026671,Good Answer Nice Answer Enlightened Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80652,31760,1026671,Good Answer Nice Answer Enlightened Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Answer Enlightened Yearling Good Answer Guru Good Answer Nice Answer Enlightened Nice Answer Enlightened Nice Answer Good Answer Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 80653,619170,1515146,NULL,NULL,NULL,0,NULL,NULL 80654,62930,49935,NULL,NULL,NULL,0,NULL,NULL 80655,21089,1239485,Yearling Nice Answer Enlightened Nice Answer Yearling Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 80656,470219,1319533,NULL,NULL,NULL,0,NULL,NULL 80657,52614,173314,Nice Answer Enlightened Yearling Caucus Custodian Commentator Nice Answer Enlightened,NULL,NULL,1,Folder CopyHere from IShellDispatch silently fails to unpack most of Zip file but only if the file is on DVD com unzip windows shell dvd pMy application the href https endlessos com download rel nofollow noreferrer Endless OS installer for Windows uses methods on href https msdn microsoft com en us library windows desktop gg537707 vs 85 aspx rel nofollow noreferrer IShellDispatch provided by Shell32 dll to extract Zip file href https d2anzknqnc1kmb cloudfront net release eos amd64 amd64 base eos eos3 amd64 amd64 171122 232702 base boot zip rel nofollow noreferrer example In various modes of operation this file may be downloaded from the internet to fixed disk on an exFAT filesystem on USB stick or in an ISO 9660 with Joliet extensions image which may be mounted as virtual drive or written to DVD In all cases but the last extracting the Zip file works but when the Zip file is on DVD all that created in the target directory is the directory structure codeEFI BOOT code for the first file in the archive codeEFI BOOT bootx64 efi code neither that file nor any other files in that directory or any other directory are extracted With emexactly the same Zip file em on any other medium including inserting the ISO into VirtualBox virtual optical drive the problem disappears ppThe original code where first saw this problem is href https github com endlessm rufus blob db803bf57bb6a5336008cadd10066c82c10deefe src endless EndlessUsbToolDlg cpp L5091 L5098 rel nofollow noreferrer here It looks like this with error handling removed since all methods return successful codeHRESULT code in my testing and the codeFOF NO UI code also removed in case that was masking an error message ppre class lang cpp prettyprint override codevoid UnpackZip const CComBSTR source const CComBSTR dest CComPtr lt IShellDispatch gt pISD CComPtr lt Folder gt pToFolder pFromFolder CComPtr lt FolderItems gt folderItems CoCreateInstance CLSID Shell NULL CLSCTX INPROC SERVER IID IShellDispatch void amp pISD pISD gt NameSpace CComVariant dest amp pToFolder pISD gt NameSpace CComVariant source amp pFromFolder pFromFolder gt Items amp folderItems pToFolder gt CopyHere CComVariant folderItems CComVariant code prepI can reproduce this problem both by attempting to unpack the Zip file from Windows Explorer GUI which does not report any errors and by running the following in PowerShell so am reasonably sure it not my application code that at fault ppre codePS gt shell new object ComObject shell applicationPS gt zip shell NameSpace endless eos eos3 amd64 amd64 171122 232702 base boot zip PS gt target shell NameSpace test PS gt target CopyHere zip items code prepIf explicitly iterate over the top level folders in the Zip file as follows then some but not all files from each folder are extracted and still none in codeEFI BOOT code ppre codePS gt foreach item in zip items target CopyHere item code prepIf explicitly select that first file which is not unpacked no error is raised ppre codePS gt item zip items Item GetFolder Items Item GetFolder Items item PS gt itemApplication System ComObjectParent System ComObjectName bootx64 efiPath GetLink GetFolder IsLink FalseIsFolder FalseIsFileSystem FalseIsBrowsable FalseModifyDate 22 11 2017 23 33 56Size 1157984Type EFI FilePS gt target CopyHere item code prepBut it still not unpacked to code target code The DVD drive does not even spin up ppIf copy emexactly the same Zip file em to fixed drive or mount the DVD ISO as virtual disk whether within Windows or from the outside via the VirtualBox VM Windows is running in everything works correctly The problem emonly em occurs when the archive is really on physical DVD ve received many reports of this problem from users with various hardware so it not my DVD drive or laptop personally have only tested and reproduced it on Windows 10 build 14393 and 15063 at least not sure whether it can be reproduced on older Windows versions but since Windows 10 is the most commonly used version by users of this application it moot point whether this worked on older versions ppThe files which are not unpacked are all those ending code efi code EFI executables and those ending code mod code legacy BIOS GRUB modules This is totally deterministic But stumped as to why the shell would take such disliking to certain files only when the archive is on DVD ppMy application can work around this problem by copying the Zip file to the hard disk before extracting it But the question remains why is this happening And at higher level short of stepping through the compiled Shell32 dll code in debugger how could diagnose what going wrong,NULL 80658,807,812734,NULL,NULL,NULL,0,NULL,NULL 80659,1511526,810348,Supporter,NULL,NULL,0,NULL,NULL 80660,1413477,766965,Nice Question,NULL,NULL,0,NULL,NULL 80661,35151,708705,NULL,NULL,NULL,0,NULL,NULL 80662,68075,708705,NULL,NULL,NULL,0,NULL,NULL 80663,546965,402753,NULL,NULL,NULL,0,NULL,NULL 80664,174278,130704,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 80665,1504009,925948,NULL,NULL,NULL,0,NULL,NULL 80666,68912,192616,NULL,NULL,NULL,0,NULL,NULL 80667,80103,296961,Nice Question Yearling Nice Answer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80668,48600,1376205,Yearling Yearling Revival Caucus Yearling Popular Question Caucus Citizen Patrol Nice Answer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 80669,426816,51382,Yearling Great Answer Notable Question Famous Question Great Answer Popular Question Famous Question Yearling Nice Answer Nice Question Famous Question Nice Answer Enlightened Famous Question Notable Question Nice Answer Enlightened Yearling Popular Question Stellar Question Popular Question Nice Question java,NULL,NULL,0,NULL,NULL 80670,23805,918715,Student,NULL,NULL,0,NULL,NULL 80671,79946,141005,Popular Question Necromancer Yearling Popular Question Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 80672,20513,838833,Popular Question,NULL,NULL,0,NULL,NULL 80673,96115,204581,Yearling Informed Caucus Scholar Student Custodian Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 80674,176718,535701,NULL,NULL,NULL,0,NULL,NULL 80675,89835,108403,Citizen Patrol Custodian Notable Question Custodian Nice Question Caucus,NULL,NULL,0,NULL,NULL 80676,307923,511562,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 80677,28496,186145,Yearling Nice Answer Necromancer Necromancer Yearling Nice Question Necromancer Good Answer Announcer,NULL,NULL,0,NULL,NULL 80678,120313,251438,Critic,NULL,NULL,0,NULL,NULL 80679,40292,1425753,NULL,NULL,NULL,0,NULL,NULL 80680,785207,699152,NULL,NULL,NULL,0,NULL,NULL 80681,288913,1149089,NULL,NULL,NULL,0,NULL,NULL 80682,76128,868605,NULL,NULL,NULL,0,NULL,NULL 80683,202133,192213,Nice Question,NULL,NULL,0,NULL,NULL 80684,151293,540293,Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 80685,2688726,232539,Nice Answer Nice Answer Guru Yearling Nice Answer Guru Yearling Necromancer Announcer,NULL,NULL,0,NULL,NULL 80686,158744,599258,Yearling Curious Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 80687,36543,958409,Nice Answer Yearling Nice Question Popular Question Good Question Revival Yearling Necromancer Nice Answer Enlightened Yearling,NULL,pYou could check if string has both upper and lowercase ppre codedef camel return lower and upper and not in stests camel camelCase CamelCase CAMELCASE camelcase Camelcase Case for test in tests print test camel test code prepoutput python camel py ppre codecamel FalsecamelCase TrueCamelCase TrueCAMELCASE Falsecamelcase FalseCamelcase TrueCase True code pre It depends if you want to allow acronyms DecodeRGB or DecodeRgb,0,NULL,NULL 80688,98847,10078,NULL,NULL,NULL,0,NULL,NULL 80689,348812,1213800,NULL,NULL,NULL,0,NULL,NULL 80690,388185,877102,Yearling Student Yearling Custodian Custodian Organizer Tag Editor Yearling,NULL,NULL,0,NULL,NULL 80691,1361507,688621,Revival Scholar,NULL,NULL,0,NULL,NULL 80692,126499,588148,NULL,NULL,NULL,0,NULL,NULL 80693,858,636505,Nice Answer Enlightened Yearling propel Necromancer Good Answer Nice Question Yearling symfony Necromancer Guru Yearling,NULL,NULL,0,NULL,NULL 80694,54831,182018,Popular Question Critic,NULL,NULL,0,NULL,NULL 80695,612050,584663,Popular Question Nice Answer Nice Answer Yearling Curious Popular Question Tumbleweed Notable Question Custodian,NULL,pBased on the comments and answers here and some rudimentary research have the following summary to offer for comments from the Postgres erati Will really appreciate your input ppThere are three ways to restrict entries in Postgres database table column Consider table to store colors where you want only red green or blue to be valid entries polli pEnumerated data type ppre codeCREATE TYPE valid colors AS ENUM red green blue CREATE TABLE color VALID COLORS code prepAdvantages are that the type can be defined once and then reused in as many tables as needed standard query can list all the values for an ENUM type and can be used to make application form widgets ppre codeSELECT nspname AS enum schema typname AS enum name enumlabel AS enum valueFROM pg type JOIN pg enum ON oid enumtypid JOIN pg catalog pg namespace ON oid typnamespaceWHERE typname valid colors enum schema enum name enum value public valid colors red public valid colors green public valid colors blue code prepDisadvantages are the ENUM type is stored in system catalogs so query as above is required to view its definition These values are not apparent when viewing the table definition And since an ENUM type is actually data type separate from the built in NUMERIC and TEXT data types the regular numeric and string operators and functions don work on it So one can do query like ppre codeSELECT FROM WHERE color LIKE bl code pre lili pCheck constraints ppre codeCREATE TABLE colors TEXT CHECK colors IN red green blue code prepTwo advantage are that one what you see is what you get that is the valid values for the column are recorded right in the table definition and two all native string or numeric operators work lili pForeign keys ppre codeCREATE TABLE valid colors id SERIAL PRIMARY KEY NOT NULL color TEXT INSERT INTO valid colors color VALUES red green blue CREATE TABLE color id INTEGER REFERENCES valid colors id code prepEssentially the same as creating an ENUM type except the native numeric or string operators work and one doesn have to query system catalogs to discover the valid values join is required to link the codecolor id code to the desired text value li ol think that option has the disadvantage of requiring table lock when updating the valid enum values adding valid value,0,NULL,NULL 80696,1375147,617819,Teacher,NULL,NULL,0,NULL,NULL 80697,335518,663243,NULL,NULL,NULL,0,NULL,NULL 80698,11333518,1154261,Yearling Civic Duty Popular Question Yearling Informed Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80699,4270191,1154261,Yearling Civic Duty Popular Question Yearling Informed Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80700,280839,1154261,Yearling Civic Duty Popular Question Yearling Informed Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80701,368911,1154261,Yearling Civic Duty Popular Question Yearling Informed Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80702,1566165,19125,Revival Yearling Necromancer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80703,60640,9193,Yearling Nice Question Yearling Famous Question Yearling,NULL,NULL,0,NULL,NULL 80704,353522,864383,Necromancer,NULL,NULL,0,NULL,NULL 80705,59169,4196,Popular Question Nice Question Famous Question Nice Question Yearling Good Answer Nice Question Popular Question Favorite Question Notable Question Popular Question Good Question Necromancer Yearling Great Question Famous Question Nice Answer Good Answer Yearling Notable Question Nice Answer Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80706,729319,1274003,NULL,NULL,NULL,0,NULL,NULL 80707,96105,825664,Good Answer Nice Answer,NULL,NULL,0,NULL,NULL 80708,739441,372082,NULL,NULL,NULL,0,NULL,NULL 80709,238789,581842,NULL,NULL,NULL,0,NULL,NULL 80710,1068390,399387,NULL,NULL,NULL,0,NULL,NULL 80711,183575,1223543,NULL,NULL,NULL,0,NULL,NULL 80712,333630,1055826,NULL,NULL,NULL,0,NULL,NULL 80713,1462677,1055826,NULL,NULL,NULL,0,NULL,NULL 80714,149736,473829,Curious Critic Necromancer Yearling Necromancer Commentator Nice Answer Nice Answer Yearling Popular Question Good Answer Yearling,NULL,NULL,0,NULL,NULL 80715,329560,401780,NULL,NULL,NULL,0,NULL,NULL 80716,1344880,1049776,NULL,NULL,NULL,0,NULL,NULL 80717,174174,101031,Notable Question Yearling Custodian Popular Question Famous Question Yearling Yearling,NULL,NULL,0,NULL,NULL 80718,330439,1268039,NULL,NULL,NULL,0,NULL,NULL 80719,6937725,1189042,NULL,NULL,NULL,0,NULL,NULL 80720,121646,448076,Necromancer Yearling Student Nice Question Good Question Popular Question Scholar Good Answer Yearling,NULL,NULL,0,NULL,NULL 80721,4962283,588004,NULL,NULL,NULL,0,NULL,NULL 80722,31515,880040,Yearling Nice Answer Custodian Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 80723,155803,316706,NULL,NULL,NULL,0,NULL,NULL 80724,91642,396227,NULL,NULL,NULL,0,NULL,NULL 80725,68019,1413228,NULL,NULL,NULL,0,NULL,NULL 80726,1853429,210966,Yearling Popular Question,NULL,NULL,0,NULL,NULL 80727,1874088,403554,Yearling Critic Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 80728,312312,403554,Yearling Critic Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 80729,646659,1329932,NULL,NULL,NULL,0,NULL,NULL 80730,83234,510443,NULL,NULL,NULL,0,NULL,NULL 80731,1210148,269085,Informed,NULL,NULL,0,NULL,NULL 80732,14051,1315968,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 80733,915120,1524012,NULL,NULL,NULL,0,NULL,NULL 80734,303877,1366436,Nice Question Populist Yearling Famous Question,NULL,NULL,0,NULL,NULL 80735,60089,546612,NULL,NULL,NULL,0,NULL,NULL 80736,291341,1112499,NULL,NULL,NULL,0,NULL,NULL 80737,290298,218913,Nice Question Notable Question Popular Question Nice Question Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Good Question Census Popular Question Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80738,1227045,1077705,Critic Supporter Informed Yearling Scholar Popular Question Notable Question Nice Question Yearling Commentator Nice Answer Enlightened Caucus Custodian Yearling Good Question,NULL,NULL,0,NULL,NULL 80739,447821,178815,NULL,NULL,NULL,0,NULL,NULL 80740,520916,1072883,NULL,NULL,NULL,0,NULL,NULL 80741,194814,806871,NULL,NULL,NULL,0,NULL,NULL 80742,140323,186106,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80743,510203,1289494,Famous Question,NULL,NULL,0,NULL,NULL 80744,4966981,518016,NULL,NULL,NULL,0,NULL,NULL 80745,126874,823505,NULL,NULL,NULL,0,NULL,NULL 80746,496869,1383280,NULL,NULL,NULL,0,NULL,NULL 80747,335992,766990,NULL,NULL,NULL,0,NULL,NULL 80748,42960,1089062,Notable Question Nice Answer Enlightened Good Answer Yearling Custodian Good Answer maven Announcer Yearling Popular Question Guru,NULL,NULL,0,NULL,NULL 80749,334870,275656,NULL,NULL,NULL,0,NULL,NULL 80750,728051,346676,Editor Civic Duty Necromancer Announcer Critic Excavator,NULL,NULL,0,NULL,NULL 80751,3802415,924441,NULL,NULL,NULL,0,NULL,NULL 80752,219489,1559718,NULL,NULL,NULL,0,NULL,NULL 80753,285792,1526360,NULL,NULL,NULL,0,NULL,NULL 80754,1327805,737927,Nice Question,NULL,NULL,0,NULL,NULL 80755,209977,497864,NULL,NULL,NULL,0,NULL,NULL 80756,894942,854853,NULL,NULL,NULL,0,NULL,NULL 80757,143489,41871,Necromancer Necromancer Good Answer Revival Necromancer Notable Question Necromancer Necromancer Necromancer Good Answer Necromancer Nice Answer Necromancer Enlightened Good Answer Popular Question Necromancer Nice Answer Caucus Nice Answer Enlightened Yearling Revival Nice Answer Guru Nice Answer Populist Necromancer Nice Answer Popular Question Nice Answer Nice Question Revival Popular Question Revival Caucus Constituent Nice Answer Revival Good Answer Strunk & White Nice Answer Enlightened Yearling Popular Question Census Nice Answer Nice Answer Enlightened Popular Question Nice Answer Pundit Famous Question Nice Question Good Answer Famous Question Nice Answer Necromancer Nice Answer Nice Answer Popular Question Notable Question Good Answer Yearling,NULL,pThe codeVagrantfile code is just Ruby so YAML is another option ppFor example in the codeVagrantfile code do this ppre code mode ruby vi set ft ruby require yaml settings YAML load file vagrant yml db ip address settings db ip address api ip address settings api ip address Vagrant configure do config config vm box ffuenf ubuntu 13 10 server amd64 config vm box url https vagrantcloud com ffuenf ubuntu 13 10 server amd64 version provider virtualbox box config vm define db do db db vm synced folder settings db artifacts dir host settings db artifacts dir guest db vm network private network ip db ip address other stuff end config vm define api do api api vm synced folder settings api artifacts dir host settings api artifacts dir guest api vm network private network ip api ip address api vm network forwarded port guest settings api forwarded port guest host settings api forwarded port host endend code prepThen have codevagrant yml code file just made up the name you can use whatever name you like for the developer specific configuration ppre codedb ip address 192 168 14 artifacts dir host Users willie myapp db scripts guest opt myapp dbapi ip address 192 168 15 forwarded port host 9080 guest 8080 artifacts dir host Users willie myapp artifacts guest opt myapp api code pre You could easily add defaults to the code and then override those using vagrant yml if it exists,0,NULL,NULL 80758,122339,492325,Yearling Good Answer Nice Answer Yearling Popular Question Notable Question Popular Question Notable Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 80759,99453,514860,Popular Question Popular Question Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Good Answer Famous Question Nice Question Notable Question Nice Question Popular Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 80760,224717,1188740,Editor Scholar,NULL,NULL,0,NULL,NULL 80761,597297,1114132,NULL,NULL,NULL,0,NULL,NULL 80762,36881,970917,NULL,NULL,NULL,0,NULL,NULL 80763,334618,1021919,NULL,NULL,NULL,0,NULL,NULL 80764,668601,438389,NULL,NULL,NULL,0,NULL,NULL 80765,928144,1348537,Scholar,NULL,NULL,0,NULL,NULL 80766,166872,751431,NULL,NULL,NULL,0,NULL,NULL 80767,344643,755254,NULL,NULL,NULL,0,NULL,NULL 80768,1764325,909524,NULL,NULL,NULL,0,NULL,NULL 80769,10495898,909524,NULL,NULL,NULL,0,NULL,NULL 80770,39284,369964,NULL,NULL,NULL,0,NULL,NULL 80771,16836,138837,Popular Question Yearling Great Answer Nice Answer Caucus Famous Question Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80772,56358,534048,NULL,NULL,NULL,0,NULL,NULL 80773,137182,1362520,NULL,NULL,NULL,0,NULL,NULL 80774,553982,998672,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 80775,204136,1311267,Critic,NULL,NULL,0,NULL,NULL 80776,45271,1413807,Yearling,NULL,NULL,0,NULL,NULL 80777,227813,1123094,Popular Question Popular Question Popular Question Custodian Tumbleweed Popular Question Popular Question Popular Question Notable Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 80778,18521,1153977,Student,NULL,NULL,0,NULL,NULL 80779,463952,360044,Student Notable Question,NULL,NULL,0,NULL,NULL 80780,628315,837626,Enthusiast Tumbleweed Notable Question Popular Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 80781,1993291,346829,NULL,NULL,NULL,0,NULL,NULL 80782,747184,346829,NULL,NULL,NULL,0,NULL,NULL 80783,78559,884102,NULL,NULL,NULL,0,NULL,NULL 80784,468721,1498437,NULL,NULL,NULL,0,NULL,NULL 80785,436038,757319,NULL,NULL,NULL,0,NULL,NULL 80786,928631,580556,Yearling Good Answer Good Answer Great Answer Good Answer Informed Good Answer Good Answer Guru Good Answer Cleanup Nice Answer Steward Nice Answer Enlightened Guru Yearling Good Answer Caucus Nice Answer Enlightened Yearling Guru Nice Answer,NULL,NULL,0,NULL,NULL 80787,1566703,1372121,NULL,NULL,NULL,0,NULL,NULL 80788,101052,771689,Necromancer Necromancer Yearling Good Answer Caucus Good Answer Nice Answer Yearling Announcer Caucus Yearling Census Caucus,NULL,NULL,0,NULL,NULL 80789,600835,1419668,Nice Answer Announcer Supporter Yearling Notable Question Good Answer Yearling Critic Yearling Yearling,NULL,NULL,0,NULL,NULL 80790,1921192,716141,Popular Question,NULL,NULL,0,NULL,NULL 80791,12542,645035,Yearling Notable Question Good Answer Self-Learner Caucus Constituent Nice Answer Enlightened Caucus Yearling Custodian Custodian Caucus Necromancer Notable Question Scholar Citizen Patrol Critic Nice Answer,NULL,NULL,0,NULL,NULL 80792,318394,799668,NULL,NULL,NULL,0,NULL,NULL 80793,980281,82474,Famous Question Notable Question Popular Question Famous Question Notable Question Necromancer Yearling Nice Question Favorite Question Nice Question Good Question Famous Question Notable Question Notable Question Famous Question Famous Question Nice Question Favorite Question Nice Answer Famous Question Notable Question Nice Question Great Question Famous Question Popular Question Popular Question Nice Question Good Question Good Question Notable Question Notable Question Good Question Nice Question Popular Question Nice Question Nice Question Famous Question Great Question Nice Question Notable Question Nice Question Popular Question Stellar Question Nice Question Famous Question Census Famous Question Great Question Famous Question Notable Question Good Question Famous Question Nice Question Popular Question Yearling Famous Question Nice Question Guru Popular Question Good Question Nice Question Notable Question Notable Question Popular Question Good Question Good Answer Caucus Nice Question Popular Question Popular Question Popular Question Good Question Custodian Good Question Popular Question Documentation User Nice Question Popular Question Popular Question Famous Question Notable Question Popular Question Good Question Popular Question Favorite Question Census Popular Question Notable Question Good Question Notable Question Popular Question Good Question Yearling Nice Question Famous Question Good Question Popular Question Nice Answer Nice Question Favorite Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 80794,177302,199163,Nice Answer javascript Revival Yearling Nice Question Good Answer Yearling Nice Answer Nice Answer Enlightened Proofreader Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80795,1344539,682193,NULL,NULL,NULL,0,NULL,NULL 80796,248341,374702,NULL,NULL,NULL,0,NULL,NULL 80797,270250,770392,Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 80798,296202,1519358,Notable Question Nice Question Good Question Popular Question Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 80799,411896,1327786,NULL,NULL,NULL,0,NULL,NULL 80800,152645,474768,NULL,NULL,NULL,0,NULL,NULL 80801,1064946,247701,Benefactor,NULL,NULL,0,NULL,NULL 80802,903020,1404386,NULL,NULL,NULL,0,NULL,NULL 80803,258320,769883,NULL,NULL,NULL,0,NULL,NULL 80804,49788,900185,NULL,NULL,NULL,0,NULL,NULL 80805,376356,1026749,NULL,NULL,NULL,0,NULL,NULL 80806,73910,1537599,Student Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 80807,167011,2018,Nice Answer Enlightened Yearling Favorite Question Guru Yearling Stellar Question Census Yearling,NULL,NULL,0,NULL,NULL 80808,75278,750770,NULL,NULL,NULL,0,NULL,NULL 80809,443715,199554,Nice Answer Enlightened Nice Answer Enlightened Good Answer Good Answer Nice Answer Enlightened Yearling Popular Question Yearling Nice Answer Enlightened Informed Good Answer Nice Answer Announcer Yearling Custodian,NULL,NULL,0,NULL,NULL 80810,92456,776272,Yearling Self-Learner Popular Question Necromancer Nice Answer Yearling Good Answer Notable Question Popular Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 80811,261227,373999,Cleanup Custodian,NULL,NULL,0,NULL,NULL 80812,221837,405834,Nice Answer Critic Citizen Patrol,NULL,NULL,0,NULL,NULL 80813,496515,163174,Necromancer,NULL,NULL,0,NULL,NULL 80814,4775651,595391,NULL,NULL,NULL,0,NULL,NULL 80815,152238,426990,Editor Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 80816,60416,634133,NULL,NULL,NULL,0,NULL,NULL 80817,1784406,716891,Informed,NULL,NULL,0,NULL,NULL 80818,426630,337574,Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 80819,86807,205647,Yearling Good Answer,NULL,NULL,0,NULL,NULL 80820,187080,202158,NULL,NULL,NULL,0,NULL,NULL 80821,513977,1413384,Informed Autobiographer Tumbleweed,NULL,NULL,0,NULL,NULL 80822,68931,217701,Yearling Yearling Good Answer Guru,NULL,NULL,0,NULL,NULL 80823,101919,949584,NULL,NULL,NULL,0,NULL,NULL 80824,153276,2276,NULL,NULL,NULL,0,NULL,NULL 80825,161896,451665,NULL,NULL,NULL,0,NULL,NULL 80826,111203,554580,NULL,NULL,NULL,0,NULL,NULL 80827,172806,827815,Supporter,NULL,NULL,0,NULL,NULL 80828,2600,765752,Editor,NULL,NULL,0,NULL,NULL 80829,122724,766332,NULL,NULL,NULL,0,NULL,NULL 80830,928359,213672,NULL,NULL,NULL,0,NULL,NULL 80831,411544,1238173,NULL,NULL,NULL,0,NULL,NULL 80832,75483,1239571,Yearling Good Answer Yearling Guru Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80833,130919,126666,Popular Question Yearling Famous Question Good Question Yearling Nice Question Yearling Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 80834,158770,1165364,Popular Question,NULL,NULL,0,NULL,NULL 80835,6372606,484608,NULL,NULL,NULL,0,NULL,NULL 80836,87632,484608,NULL,NULL,NULL,0,NULL,NULL 80837,1236682,1538945,Notable Question,NULL,NULL,0,NULL,NULL 80838,132119,754131,Populist Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 80839,363502,789501,NULL,NULL,NULL,0,NULL,NULL 80840,204436,1124344,Nice Question Famous Question Yearling Documentation User Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80841,184525,977214,NULL,NULL,NULL,0,NULL,NULL 80842,5896173,848213,Student,NULL,NULL,0,NULL,NULL 80843,140180,848213,Student,NULL,NULL,0,NULL,NULL 80844,1334451,13260,NULL,NULL,NULL,0,NULL,NULL 80845,804793,877824,NULL,NULL,NULL,0,NULL,NULL 80846,61500,386925,Notable Question Yearling Good Answer Good Answer Yearling Self-Learner,NULL,NULL,0,NULL,NULL 80847,328417,546670,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 80848,68790,1202812,NULL,NULL,NULL,0,NULL,NULL 80849,458885,1152669,Supporter Teacher Editor,NULL,NULL,0,NULL,NULL 80850,128690,551011,Tumbleweed,NULL,NULL,0,NULL,NULL 80851,175345,795543,Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80852,93974,551839,NULL,NULL,NULL,0,NULL,NULL 80853,27532,412655,Famous Question Notable Question Yearling Necromancer r Yearling Nice Answer Good Question Popular Question Announcer Not a Robot Yearling,NULL,NULL,0,NULL,NULL 80854,2223444,728084,Critic,NULL,NULL,0,NULL,NULL 80855,101467,356508,Caucus Popular Question Yearling Popular Question Caucus Revival Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 80856,284917,1220271,Popular Question,NULL,NULL,0,NULL,NULL 80857,226725,918590,NULL,NULL,NULL,0,NULL,NULL 80858,107806,1141876,Yearling Guru Nice Answer Notable Question Good Answer Good Question Necromancer Popular Question Nice Answer Necromancer Famous Question Popular Question c# Notable Question Nice Answer Caucus Good Answer Constituent Necromancer Necromancer Yearling Custodian Notable Question Popular Question Notable Question Notable Question Good Answer Necromancer Caucus Nice Answer Constituent Announcer Necromancer Custodian Documentation User Nice Answer Necromancer Great Answer Nice Answer Necromancer Yearling Popular Question Popular Question Necromancer Caucus Popular Question Constituent Necromancer Popular Question Necromancer Good Answer Necromancer Necromancer Necromancer Notable Question Announcer Good Answer Necromancer Notable Question,NULL,NULL,0,NULL,NULL 80859,99637,212560,Necromancer,NULL,NULL,0,NULL,NULL 80860,217529,1040983,Nice Question Revival Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80861,53309,65739,NULL,NULL,NULL,0,NULL,NULL 80862,46429,831601,NULL,NULL,NULL,0,NULL,NULL 80863,191348,185880,NULL,NULL,NULL,0,NULL,NULL 80864,1142540,465195,NULL,NULL,NULL,0,NULL,NULL 80865,363920,61295,Yearling Good Question Yearling Nice Question Nice Answer Famous Question Popular Question Benefactor Yearling,NULL,NULL,0,NULL,NULL 80866,6857337,1547811,NULL,NULL,NULL,0,NULL,NULL 80867,502967,1547811,NULL,NULL,NULL,0,NULL,NULL 80868,256474,10638,Notable Question Guru Notable Question Yearling Census Nice Answer Nice Answer Caucus Constituent Explainer Great Answer Nice Question Yearling Census Good Answer Yearling,NULL,NULL,0,NULL,NULL 80869,1095618,812393,Notable Question,NULL,NULL,0,NULL,NULL 80870,357729,1078483,Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 80871,86988,315829,Editor Curious Necromancer Yearling,NULL,NULL,0,NULL,NULL 80872,3125536,735998,NULL,NULL,NULL,0,NULL,NULL 80873,849320,735998,NULL,NULL,NULL,0,NULL,NULL 80874,219476,731881,Popular Question Peer Pressure Famous Question Notable Question Yearling Popular Question Notable Question Famous Question Notable Question Nice Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 80875,1566288,1063134,NULL,NULL,NULL,0,NULL,NULL 80876,231937,759197,NULL,NULL,NULL,0,NULL,NULL 80877,7223599,759197,NULL,NULL,NULL,0,NULL,NULL 80878,283028,1178493,Caucus Census Caucus,NULL,NULL,0,NULL,NULL 80879,728673,1070776,NULL,NULL,NULL,0,NULL,NULL 80880,1908571,84736,Notable Question,NULL,NULL,0,NULL,NULL 80881,8494539,925055,NULL,NULL,NULL,0,NULL,NULL 80882,548403,1093510,NULL,NULL,NULL,0,NULL,NULL 80883,197403,738288,NULL,NULL,NULL,0,NULL,NULL 80884,254095,44817,Civic Duty Yearling Benefactor Good Answer Notable Question Custodian Yearling Nice Answer Nice Question python Guru Yearling,NULL,NULL,0,NULL,NULL 80885,23094,290853,Caucus Caucus Census Caucus,NULL,NULL,0,NULL,NULL 80886,68256,234231,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 80887,429965,1459809,NULL,NULL,NULL,0,NULL,NULL 80888,756882,1354122,Revival Necromancer,NULL,NULL,0,NULL,NULL 80889,4707,275188,NULL,NULL,NULL,0,NULL,NULL 80890,2293324,219741,Self-Learner Yearling Critic,NULL,NULL,0,NULL,NULL 80891,247944,1406560,NULL,NULL,NULL,0,NULL,NULL 80892,1777718,184268,Notable Question Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 80893,900039,1251488,Tumbleweed Editor Enthusiast,NULL,NULL,0,NULL,NULL 80894,346617,1322722,Curious Yearling Nice Answer Popular Question Custodian Necromancer Commentator Yearling Excavator Documentation User Popular Question,NULL,NULL,0,NULL,NULL 80895,555604,1433912,Yearling Yearling,NULL,NULL,0,NULL,NULL 80896,9984,339,Notable Question Necromancer Nice Question Good Question Notable Question Yearling Revival Notable Question Custodian Custodian Custodian Custodian Notable Question Yearling Famous Question Necromancer Popular Question Good Question Revival Yearling,NULL,NULL,0,NULL,NULL 80897,133142,1247297,NULL,NULL,NULL,0,NULL,NULL 80898,87746,1243227,Revival Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80899,884543,1331101,Yearling Curious Custodian,NULL,NULL,0,NULL,NULL 80900,57419,1513130,Custodian Famous Question Popular Question Nice Answer Critic Yearling Commentator Curious,NULL,NULL,0,NULL,NULL 80901,37893,309591,NULL,NULL,NULL,0,NULL,NULL 80902,63704,123371,Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 80903,669781,1320879,NULL,NULL,NULL,0,NULL,NULL 80904,470517,842273,NULL,NULL,NULL,0,NULL,NULL 80905,270318,232860,NULL,NULL,NULL,0,NULL,NULL 80906,1156105,346384,Popular Question,NULL,NULL,0,NULL,NULL 80907,141342,903589,Nice Answer Enlightened Yearling Nice Answer Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 80908,562206,22107,Revival Yearling Favorite Question Yearling Populist Famous Question Yearling,NULL,NULL,0,NULL,NULL 80909,46235,777862,Notable Question,NULL,NULL,0,NULL,NULL 80910,588671,854439,Popular Question,NULL,NULL,0,NULL,NULL 80911,1016352,893497,Informed Autobiographer,NULL,NULL,0,NULL,NULL 80912,1604,830426,Self-Learner Popular Question Popular Question Critic Nice Question Notable Question Popular Question Yearling Popular Question Popular Question Nice Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80913,587092,883101,NULL,NULL,NULL,0,NULL,NULL 80914,140224,865704,NULL,NULL,NULL,0,NULL,NULL 80915,751326,193288,NULL,NULL,NULL,0,NULL,NULL 80916,471478,19031,Teacher Curious Notable Question,NULL,NULL,0,NULL,NULL 80917,180365,893793,Revival Notable Question,NULL,NULL,0,NULL,NULL 80918,1058007,272159,Tumbleweed Self-Learner Yearling Famous Question Famous Question Revival Famous Question Nice Answer Nice Question Nice Question Necromancer Notable Question Caucus Constituent Yearling Notable Question Peer Pressure Popular Question Good Answer Nice Answer Yearling Critic Caucus Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80919,89568,671658,Announcer Necromancer Caucus,NULL,NULL,0,NULL,NULL 80920,544137,1450431,Scholar Student,NULL,NULL,0,NULL,NULL 80921,2795724,487756,NULL,NULL,NULL,0,NULL,NULL 80922,365938,288558,Notable Question Popular Question Notable Question Popular Question Notable Question Custodian Nice Question Popular Question,NULL,NULL,0,NULL,NULL 80923,964634,1019242,NULL,NULL,NULL,0,NULL,NULL 80924,1123112,563502,NULL,NULL,NULL,0,NULL,NULL 80925,623581,870443,Editor Popular Question,NULL,NULL,0,NULL,NULL 80926,221409,1316679,NULL,NULL,NULL,0,NULL,NULL 80927,405675,666366,NULL,NULL,NULL,0,NULL,NULL 80928,154506,891297,NULL,NULL,NULL,0,NULL,NULL 80929,277869,1276195,Yearling Popular Question Necromancer Caucus Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 80930,1278322,895309,Notable Question Popular Question Yearling Notable Question Self-Learner Notable Question Notable Question Nice Question Census Yearling Announcer Popular Question Announcer,NULL,NULL,0,NULL,NULL 80931,779460,586714,Yearling Nice Answer Yearling Nice Answer Enlightened Great Answer Yearling,NULL,NULL,0,NULL,NULL 80932,406589,518036,Revival Supporter Student Custodian Editor Commentator Critic,NULL,NULL,0,NULL,NULL 80933,213469,942200,NULL,NULL,NULL,0,NULL,NULL 80934,1342630,150798,NULL,NULL,NULL,0,NULL,NULL 80935,124526,312026,Good Answer Popular Question Necromancer Notable Question Yearling Good Question Nice Answer Excavator Notable Question Famous Question Popular Question Yearling Announcer Guru Yearling Necromancer Benefactor,NULL,NULL,0,NULL,NULL 80936,2023969,886718,Popular Question,NULL,NULL,0,NULL,NULL 80937,181157,1344654,NULL,NULL,NULL,0,NULL,NULL 80938,283739,1105538,NULL,NULL,NULL,0,NULL,NULL 80939,1470609,1538657,NULL,NULL,NULL,0,NULL,NULL 80940,283931,1533118,Student Revival Popular Question,NULL,NULL,0,NULL,NULL 80941,465601,234014,Self-Learner Popular Question Necromancer Popular Question,NULL,NULL,0,NULL,NULL 80942,102106,150607,Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 80943,229423,576260,NULL,NULL,NULL,0,NULL,NULL 80944,409704,678747,NULL,NULL,NULL,0,NULL,NULL 80945,447309,189413,Popular Question Good Question Yearling Teacher Popular Question,NULL,NULL,0,NULL,NULL 80946,122071,382559,Supporter,NULL,NULL,0,NULL,NULL 80947,110068,129306,Guru Yearling Yearling Census Nice Answer Enlightened Yearling Tenacious,NULL,NULL,0,NULL,NULL 80948,205700,613168,NULL,NULL,NULL,0,NULL,NULL 80949,1491326,583902,NULL,NULL,NULL,0,NULL,NULL 80950,33661,13783,Yearling Student,NULL,NULL,0,NULL,NULL 80951,764318,527149,Popular Question,NULL,NULL,0,NULL,NULL 80952,95177,1521158,NULL,NULL,NULL,0,NULL,NULL 80953,74264,36249,Commentator,NULL,NULL,0,NULL,NULL 80954,27600,499473,Student,NULL,NULL,0,NULL,NULL 80955,3586867,499473,Student,NULL,NULL,0,NULL,NULL 80956,22939,186057,NULL,NULL,NULL,0,NULL,NULL 80957,1033227,81660,Yearling Popular Question Popular Question Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 80958,15634,81660,Yearling Popular Question Popular Question Yearling Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 80959,692530,889168,Popular Question,NULL,NULL,0,NULL,NULL 80960,227143,501906,Editor Revival Tumbleweed Scholar,NULL,NULL,0,NULL,NULL 80961,23626,1301617,NULL,NULL,NULL,0,NULL,NULL 80962,529598,848982,NULL,NULL,NULL,0,NULL,NULL 80963,38634,483552,Necromancer Yearling,NULL,NULL,0,NULL,NULL 80964,124207,392097,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 80965,74353,641892,Scholar Yearling Caucus,NULL,NULL,0,NULL,NULL 80966,46945,470787,Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 80967,43070,612612,NULL,NULL,NULL,0,NULL,NULL 80968,10072,80357,Curious Popular Question Caucus Revival Yearling Necromancer Popular Question Necromancer Announcer Popular Question Necromancer,NULL,NULL,0,NULL,NULL 80969,1649310,1271541,Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 80970,119320,1178669,Nice Question Yearling Notable Question Popular Question Notable Question Nice Question Nice Question Good Question Notable Question Famous Question Nice Answer Famous Question Popular Question Nice Answer Enlightened Nice Answer Famous Question Famous Question Notable Question Nice Answer Popular Question Famous Question Great Question Nice Question Notable Question Notable Question Good Question Notable Question Famous Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Caucus Popular Question Constituent Notable Question Notable Question Nice Question Nice Question Great Question Yearling Notable Question Popular Question Favorite Question Nice Question Favorite Question Nice Question Nice Question Notable Question Popular Question Nice Answer Good Question Famous Question Great Question Good Answer Good Question Popular Question Notable Question Nice Question Socratic Nice Question Favorite Question Famous Question Tag Editor Popular Question Good Question Famous Question Taxonomist Popular Question Nice Question Good Question Famous Question Nice Question Popular Question Nice Question Yearling Popular Question Nice Question Notable Question Famous Question Notable Question Notable Question Popular Question Famous Question Famous Question Popular Question Nice Question Nice Question Notable Question Famous Question Great Question Favorite Question Popular Question Nice Question Popular Question Popular Question Stellar Question Popular Question Guru Nice Question,NULL,NULL,0,NULL,NULL 80971,92131,1097110,NULL,NULL,NULL,0,NULL,NULL 80972,200860,107108,Yearling Critic Caucus Yearling Yearling Great Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 80973,313105,1298261,NULL,NULL,NULL,0,NULL,NULL 80974,465149,792293,Student,NULL,NULL,0,NULL,NULL 80975,355784,1165510,NULL,NULL,NULL,0,NULL,NULL 80976,1512728,767780,Commentator Notable Question Yearling Necromancer Citizen Patrol,NULL,NULL,0,NULL,NULL 80977,560741,200570,NULL,NULL,NULL,0,NULL,NULL 80978,2962897,232562,NULL,NULL,NULL,0,NULL,NULL 80979,94318,232562,NULL,NULL,NULL,0,NULL,NULL 80980,192087,1269481,Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80981,629808,1361439,Informed,NULL,NULL,0,NULL,NULL 80982,944370,1361439,Informed,NULL,NULL,0,NULL,NULL 80983,963333,1035239,NULL,NULL,NULL,0,NULL,NULL 80984,25792,1072933,Supporter Scholar Notable Question,NULL,NULL,0,NULL,NULL 80985,1371985,1432478,Great Answer Announcer Good Answer Yearling Good Question Cleanup Nice Answer Enlightened Nice Answer Necromancer Nice Question Yearling Nice Answer Popular Question yeoman Yearling Revival,NULL,NULL,0,NULL,NULL 80986,651291,662699,Popular Question Yearling Revival Popular Question Nice Answer Caucus Notable Question Revival,NULL,NULL,0,NULL,NULL 80987,67185,104453,Civic Duty Excavator Yearling Good Answer Popular Question Necromancer Yearling Popular Question Revival Nice Answer Popular Question Yearling Necromancer Revival Citizen Patrol,NULL,NULL,0,NULL,NULL 80988,147661,1194525,Critic Scholar Custodian Caucus Yearling Revival Citizen Patrol Organizer Necromancer Yearling Yearling Mortarboard Excavator Student Tenacious Caucus Yearling Tumbleweed,NULL,NULL,0,NULL,NULL 80989,199073,836870,Famous Question,NULL,NULL,0,NULL,NULL 80990,312230,834301,NULL,NULL,NULL,0,NULL,NULL 80991,759167,153786,Necromancer Necromancer Good Answer Good Answer Populist Good Answer Populist Yearling Great Answer Revival Popular Question Popular Question Good Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80992,218672,153786,Necromancer Necromancer Good Answer Good Answer Populist Good Answer Populist Yearling Great Answer Revival Popular Question Popular Question Good Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80993,2119927,153786,Necromancer Necromancer Good Answer Good Answer Populist Good Answer Populist Yearling Great Answer Revival Popular Question Popular Question Good Answer Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 80994,24110,705560,NULL,NULL,NULL,0,NULL,NULL 80995,214261,807647,Yearling,NULL,NULL,0,NULL,NULL 80996,207988,434963,NULL,NULL,NULL,0,NULL,NULL 80997,280223,1123887,NULL,NULL,NULL,0,NULL,NULL 80998,232481,145754,Yearling Revival Popular Question Good Answer Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 80999,17448,188572,Nice Answer Yearling Caucus Nice Answer Nice Answer Caucus Good Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 81000,200861,1005717,NULL,NULL,NULL,0,NULL,NULL 81001,1201482,685820,NULL,NULL,NULL,0,NULL,NULL 81002,250486,114498,NULL,NULL,NULL,0,NULL,NULL 81003,7168,252620,NULL,NULL,NULL,0,NULL,NULL 81004,7613667,94526,Good Answer Yearling Notable Question Notable Question Notable Question Popular Question Guru Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 81005,43762,310792,NULL,NULL,NULL,0,NULL,NULL 81006,4186852,317562,Yearling Nice Answer Yearling Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Nice Question Custodian,NULL,NULL,0,NULL,NULL 81007,151814,193637,Yearling Caucus Custodian Citizen Patrol Good Answer Custodian Custodian Civic Duty Nice Question Yearling Custodian Curious Yearling Autobiographer Yearling Necromancer Enthusiast,NULL,NULL,0,NULL,NULL 81008,100121,966381,Yearling Revival Good Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 81009,585878,994114,Necromancer,NULL,NULL,0,NULL,NULL 81010,461975,497193,Good Question Famous Question Nice Question Popular Question Yearling Notable Question Announcer Announcer Famous Question Caucus Custodian Custodian Custodian Yearling Census Vox Populi Electorate Reviewer Notable Question Nice Question,NULL,NULL,0,NULL,NULL 81011,477779,1188149,NULL,NULL,NULL,0,NULL,NULL 81012,120314,1105591,Popular Question,NULL,NULL,0,NULL,NULL 81013,578924,711995,NULL,NULL,NULL,0,NULL,NULL 81014,200304,1565205,NULL,NULL,NULL,0,NULL,NULL 81015,146254,1537745,Student,NULL,NULL,0,NULL,NULL 81016,178359,459863,Guru Notable Question Good Answer Necromancer Announcer Necromancer Yearling Nice Answer Nice Answer Nice Answer Yearling Census Good Answer Famous Question Yearling,NULL,NULL,0,NULL,NULL 81017,347042,595003,NULL,NULL,NULL,0,NULL,NULL 81018,1283473,820011,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 81019,53152,1043168,NULL,NULL,NULL,0,NULL,NULL 81020,1617957,1402100,NULL,NULL,NULL,0,NULL,NULL 81021,94417,1377495,NULL,NULL,NULL,0,NULL,NULL 81022,420714,1454166,NULL,NULL,NULL,0,NULL,NULL 81023,147769,248823,Yearling Pundit Nice Answer Necromancer Necromancer Nice Answer Nice Answer Nice Answer numpy Caucus Notable Question Notable Question Yearling Nice Answer Enlightened Guru Nice Answer Enlightened Nice Answer Caucus Good Answer Good Answer Yearling Nice Answer Enlightened list Caucus Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 81024,24502,22419,javascript Guru Nice Answer Yearling Good Answer Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 81025,394351,1137552,NULL,NULL,NULL,0,NULL,NULL 81026,1412,325241,Good Question Notable Question Famous Question Nice Question Famous Question Revival Nice Answer Popular Question Yearling Popular Question Popular Question Notable Question Nice Question Notable Question Famous Question Popular Question Famous Question Famous Question Famous Question Good Question Good Question Notable Question Famous Question Good Question Great Answer Notable Question Notable Question Nice Question Famous Question Good Question Good Answer Nice Answer Enlightened Popular Question Popular Question Popular Question Nice Question Custodian Notable Question Notable Question Yearling Promoter Notable Question Notable Question Notable Question Popular Question Notable Question Famous Question Notable Question Notable Question Nice Question Famous Question Famous Question Nice Question Notable Question Good Question Nice Answer Enlightened Nice Question Favorite Question Popular Question Great Question Popular Question Popular Question Popular Question Popular Question Good Question Notable Question Popular Question Notable Question Yearling Nice Question Famous Question Popular Question Popular Question Nice Question Popular Question Nice Question Nice Question,NULL,NULL,0,NULL,NULL 81027,1682315,1046796,NULL,NULL,NULL,0,NULL,NULL 81028,1251721,1046796,NULL,NULL,NULL,0,NULL,NULL 81029,181895,636102,NULL,NULL,NULL,0,NULL,NULL 81030,69033,422387,NULL,NULL,NULL,0,NULL,NULL 81031,186672,994025,NULL,NULL,NULL,0,NULL,NULL 81032,159921,1347776,Popular Question Popular Question Notable Question Notable Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 81033,660,1407846,NULL,NULL,NULL,0,NULL,NULL 81034,238158,307359,Nice Question,NULL,NULL,0,NULL,NULL 81035,580930,1297405,NULL,NULL,NULL,0,NULL,NULL 81036,2464802,1189519,NULL,NULL,NULL,0,NULL,NULL 81037,1318533,1189519,NULL,NULL,NULL,0,NULL,NULL 81038,297732,91748,Popular Question Popular Question Yearling Notable Question Good Question Popular Question Good Question Yearling Popular Question Famous Question Famous Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Notable Question Nice Question Favorite Question,NULL,NULL,0,NULL,NULL 81039,5493711,1272072,Custodian Nice Question Popular Question Teacher Yearling Popular Question Critic Notable Question Popular Question Good Question Self-Learner Yearling,NULL,NULL,0,NULL,NULL 81040,1515177,717474,NULL,NULL,NULL,0,NULL,NULL 81041,103198,1022680,NULL,NULL,NULL,0,NULL,NULL 81042,194623,1022680,NULL,NULL,NULL,0,NULL,NULL 81043,736479,463732,Necromancer Curious Notable Question,NULL,NULL,0,NULL,NULL 81044,127359,1560603,Popular Question Nice Question,NULL,NULL,0,NULL,NULL 81045,17477,248501,Yearling Great Answer Popular Question Autobiographer Necromancer Yearling Necromancer Populist Caucus Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81046,1055079,1335738,Nice Answer Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 81047,1532201,764450,NULL,NULL,NULL,0,NULL,NULL 81048,1781418,1325053,Popular Question Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 81049,200941,193999,Informed Caucus Tag Editor Yearling Yearling Documentation User Caucus Constituent,NULL,NULL,0,NULL,NULL 81050,6825,675046,NULL,NULL,NULL,0,NULL,NULL 81051,163024,906261,Caucus Yearling Critic Commentator Caucus Yearling Nice Answer Caucus Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 81052,2054580,382943,NULL,NULL,NULL,0,NULL,NULL 81053,21103,100552,Documentation User Necromancer,NULL,NULL,0,NULL,NULL 81054,395706,1185404,NULL,NULL,NULL,0,NULL,NULL 81055,14035,346685,NULL,NULL,NULL,0,NULL,NULL 81056,200903,657742,NULL,NULL,NULL,0,NULL,NULL 81057,443738,1088828,Editor Excavator Revival Necromancer,NULL,NULL,0,NULL,NULL 81058,932853,1522993,Supporter,NULL,NULL,0,NULL,NULL 81059,2035500,1222670,NULL,NULL,NULL,0,NULL,NULL 81060,3330052,1039822,Scholar Notable Question,NULL,NULL,0,NULL,NULL 81061,545658,1039822,Scholar Notable Question,NULL,NULL,0,NULL,NULL 81062,67831,1011944,NULL,NULL,NULL,0,NULL,NULL 81063,320540,701083,NULL,NULL,NULL,0,NULL,NULL 81064,1355808,1549166,Popular Question Popular Question Yearling Popular Question Notable Question Nice Answer Critic Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 81065,72254,37702,NULL,NULL,NULL,0,NULL,NULL 81066,24001,80305,Yearling Announcer Yearling,NULL,NULL,0,NULL,NULL 81067,897908,822310,NULL,NULL,NULL,0,NULL,NULL 81068,339823,184053,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 81069,135028,658597,NULL,NULL,NULL,0,NULL,NULL 81070,46952,16035,Good Answer Yearling Nice Answer Custodian Yearling Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81071,84340,488909,Nice Answer Revival Yearling Good Question Custodian Notable Question,NULL,NULL,0,NULL,NULL 81072,602423,1223090,NULL,NULL,NULL,0,NULL,NULL 81073,1003795,368921,NULL,NULL,NULL,0,NULL,NULL 81074,1555074,395852,NULL,NULL,NULL,0,NULL,NULL 81075,9284,1065472,NULL,NULL,NULL,0,NULL,NULL 81076,100921,1065472,NULL,NULL,NULL,0,NULL,NULL 81077,172972,1065472,NULL,NULL,NULL,0,NULL,NULL 81078,12989,313616,Caucus,NULL,NULL,0,NULL,NULL 81079,378025,1147121,NULL,NULL,NULL,0,NULL,NULL 81080,22855,759678,NULL,NULL,NULL,0,NULL,NULL 81081,281785,438250,NULL,NULL,NULL,0,NULL,NULL 81082,755960,353548,Yearling Popular Question Caucus Popular Question Yearling Caucus Constituent Custodian Civic Duty Yearling,NULL,NULL,0,NULL,NULL 81083,882632,675721,Tumbleweed Cleanup Popular Question Yearling Revival Caucus Custodian Informed Yearling Necromancer Caucus Constituent Announcer Announcer Documentation User Announcer Notable Question Announcer Revival Necromancer Yearling Necromancer,NULL,NULL,0,NULL,NULL 81084,806440,1059154,NULL,NULL,NULL,0,NULL,NULL 81085,29003,467389,NULL,NULL,NULL,0,NULL,NULL 81086,71389,251741,Yearling Investor Popular Question Caucus Notable Question Yearling Caucus Census Yearling Popular Question,NULL,NULL,0,NULL,NULL 81087,389193,1517749,NULL,NULL,NULL,0,NULL,NULL 81088,970568,1386837,NULL,NULL,NULL,0,NULL,NULL 81089,182880,750523,NULL,NULL,NULL,0,NULL,NULL 81090,20871,971696,NULL,NULL,NULL,0,NULL,NULL 81091,135095,3432,Notable Question Yearling Nice Answer Nice Question Good Question Nice Answer Nice Question Yearling Good Answer Famous Question Yearling Good Answer,NULL,NULL,0,NULL,NULL 81092,593241,522248,Yearling Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 81093,338979,542969,NULL,NULL,NULL,0,NULL,NULL 81094,290495,915418,Editor Curious Notable Question Enthusiast Census Commentator Critic,NULL,NULL,0,NULL,NULL 81095,269864,454707,Tumbleweed,NULL,NULL,0,NULL,NULL 81096,723978,1086467,Famous Question Good Question Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81097,461799,1313261,NULL,NULL,NULL,0,NULL,NULL 81098,2488,450910,NULL,NULL,NULL,0,NULL,NULL 81099,1200985,415582,Yearling,NULL,NULL,0,NULL,NULL 81100,1285874,1006939,NULL,NULL,NULL,0,NULL,NULL 81101,97687,1527838,NULL,NULL,NULL,0,NULL,NULL 81102,1374594,962362,Supporter Popular Question,NULL,NULL,0,NULL,NULL 81103,21290,145346,Nice Answer Notable Question Announcer Nice Answer Announcer Nice Question Announcer Nice Answer Announcer Announcer Nice Answer Nice Answer Enlightened Popular Question Popular Question Documentation Beta Yearling Documentation Pioneer Stellar Question Announcer Necromancer Nice Answer Enlightened Announcer Announcer Great Answer Announcer Nice Answer Announcer Caucus javascript Constituent Announcer Good Answer Nice Answer Announcer Announcer Great Answer Announcer Populist html Good Answer Good Answer Announcer Notable Question Nice Answer Enlightened Good Question Good Answer Announcer Announcer Nice Answer Popular Question Caucus Yearling Announcer Constituent Necromancer Good Answer Nice Question Benefactor Documentation User Announcer Notable Question Announcer Announcer Announcer Necromancer Caucus Constituent Announcer Notable Question Announcer Announcer Announcer Announcer Nice Question Announcer Nice Answer Yearling Announcer Announcer Nice Answer Notable Question Nice Answer,NULL,DOM pure JavaScript solution to jQuery closest implementation javascript dom pHere the markup trying to query So given the markup ppre code lt table class non unique identifier table gt lt tr gt lt td gt lt div id unique identifier gt lt div gt lt td gt lt tr gt lt table gt code prepI querying for unique identifier ppre codevar myDiv document getElementById unique identifier code prepI then trying to select the table The issue is that want to make the code not brittle so don need to do this ppre codevar myDiv document getElementById unique identifier myTable myDiv parentNode parentNode parentNode parentNode code prep strongMy question strong ppIs there currently DOM implementation of the jQuery equivalent of closest closest implementation that is efficient without nested for loops would be preferred pp strongLimitations strong ppI required to not use jQuery or sizzle for this particular issue or introduce any new libraries The code is quite old as well Thus that is the reason for such limitations and the existence of code lt tables gt code DOM4 will have closest https dom spec whatwg org dom element closest built in,0,NULL,NULL 81104,6167,1077192,NULL,NULL,NULL,0,NULL,NULL 81105,1485388,953479,NULL,NULL,NULL,0,NULL,NULL 81106,4149,1232614,NULL,NULL,NULL,0,NULL,NULL 81107,108327,748866,NULL,NULL,NULL,0,NULL,NULL 81108,248104,1194284,NULL,NULL,NULL,0,NULL,NULL 81109,3802613,1194284,NULL,NULL,NULL,0,NULL,NULL 81110,45315,563392,NULL,NULL,NULL,0,NULL,NULL 81111,183629,361321,Notable Question,NULL,NULL,0,NULL,NULL 81112,463418,252022,Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 81113,705023,1417016,Necromancer Revival Revival Yearling,NULL,NULL,0,NULL,NULL 81114,471191,1258453,NULL,NULL,NULL,0,NULL,NULL 81115,3127973,659273,Yearling objective-c Yearling ios Guru Yearling,NULL,NULL,0,NULL,NULL 81116,159247,659273,Yearling objective-c Yearling ios Guru Yearling,NULL,NULL,0,NULL,NULL 81117,484030,40691,Nice Answer Enlightened Yearling Good Answer Nice Answer Enlightened Populist Yearling Caucus Nice Answer Yearling,NULL,h2Software biggest enemy h2pFirstly want to iterate that href http steve yegge blogspot com 2007 12 codes worst enemy html rel noreferrer Complexity and Large Code bases ais the single worst enemy of software development and that along with meeting the project requirements deriving value from our software managing complexity and maintaining minimal and low friction evolvable code base should be at the forefront of our minds as we re continually enhancing our software with new features and requirements Any guidelines rules or processes we add to increase software quality should be directly focused on managing its essential complexity One of the best things we can do to reduce complexity is to reduce code base size DRYing repeatable code and eliminating any unnecessary abstractions indirection concepts types and friction that isn absolutely essential to the software function ppIn this light href https en wikipedia org wiki You aren 27t gonna need it rel noreferrer YAGNI is one of the best principles to follow to ensure simple and lean code base by focusing on what essential to delivering value ph3Avoid blanket rules h3pI avoid blanket rules which consider one of the primary causes of unnecessary complexity in Software where it often liberally and thoughtlessly applied infecting code base without justification Every time you impose an artificial limitation you re creating friction and inertia to develop within its bounds in order to satisfy it which is why any rule you enforce should be thoughtfully and carefully applied and limited to places where it adds value ph3Be wary of invalid Rules and Patterns h3pEven Software Design Patterns are in many cases href http c2 com cgi wiki AreDesignPatternsMissingLanguageFeatures rel noreferrer programming language deficiencies where what useful in one language is unnecessary and more elegantly solved in more expressive and powerful languages Likewise with rules what cautionary guideline in one domain may not be applicable in others Therefore what more important than the rule itself is the value it actually provides and what concrete side effect it trying to prevent Once we understand its true value we can optimize to derive maximum value from it and together with YAGNI know when to selectively apply it ph2The Simple POCO Life h2pAs you ve noticed ServiceStack achieves lot of its simplicity and reuse by being able to reuse the same POCOs indiscriminately anywhere to interface and freely communicate between its different libraries and components This enables maximum value and reuse of your Models and reduces the friction in mapping between different domains which typically require having purpose specific types each with its own unique configuration limiting its applicability and potential re use ph3Heavy ORM models are poor DTOs h3pNot reusing data models as DTOs applies to Heavy ORM which encourage Data Models with cyclical dependencies and proxied objects with tight coupling and embedded logic that can trigger unintended data access making these models poor candidates for use as DTOs and why you should always copy them into purpose specificDTOs that your Services can return so they re serializable without issue ph3Clean POCOs h3pThe complex Data Models stored in href https github com ServiceStack ServiceStack OrmLite rel noreferrer OrmLite or href https github com ServiceStack ServiceStack Redis rel noreferrer Redis doesn suffer from any of these issues which are able to use clean disconnected POCOs They re loosely coupled where only the Shape of the POCO is significant moving projects and changing namespaces won impact serialization how it stored in RDBMS tables Redis data structures Caching providers etc You re also not coupled to specific types you can use different type to insert data in OrmLite than what youuse to read from it nor does it need to be the exact Shape as OrmLite can populate DTO with only asubset of the fields available in the underlying table There also no distinction between Table View or Stored procedure OrmLite will happily map any result set into any matching fields on the specified POCO ignoring others ppEffectively this means POCOs in ServiceStack are extremely resilient and interoperable so you can happilyre use the same DTOs in OrmLite and vice versa without issue If the DTO and Data models only deviate slightly you can href https stackoverflow com 14859968 85785 hide them from being serialized or stored in OrmLite with the attributes below ppre codepublic class Poco Ignore public int IgnoreInOrmLite get set IgnoreDataMember public int IgnoreInSerialization get set code prepOtherwise when you need to separate them more fields were added to the RDBMS table than you want to return the DTO includes additional fields populated from alternative sources or you just want your Servicesto project them differently At that point YAGNI you can take copy of the DTO and add it to your Services Implementation so they can grow separately unimpeded by their different concerns You can then effortlessly convert between them usingbra href https github com ServiceStack ServiceStack wiki Auto mapping rel noreferrer ServiceStack built in Auto Mapping ppre codevar dto dbPoco ConvertTo lt Poco gt code preblockquote pThe built in Auto Mapping is also very tolerant and can co erce properties with different types to from strings different collection types etc blockquoteh2Data Transfer Objects DTOs h2pSo if you re using clean serializable POCOs without external dependencies from OrmLite Redis or alt ServiceStack sources you can happily re use them as DTOs and freely refactor them out into different models as and when you need to But when you are re using Data Models as DTOs they should still be maintained in the strongServiceModel strong project aka DTO dll which should contain strongall the types strong that your Service returns DTOs should be logic and dependency free so the only dependency the ServiceModel project references is the impl free codeServiceStack Interfaces dll code which as it PCL dll can be freely referenced from all href https github com ServiceStackApps HelloMobile rel noreferrer NET Mobile and Desktop platforms ppYou want to ensure all types your Services return are in the DTO dll since this along with the base url of where your Services are hosted is strongall that required strong for your Service Consumers to know in order to consume your Services Which they can use with any of the href https github com ServiceStack ServiceStack wiki 23 client rel noreferrer NET Service Clients ato get an end to end Typed API without code gen tooling or any other artificial machinery If clients prefer source code instead they can use href https github com ServiceStack ServiceStack wiki Add ServiceStack Reference rel noreferrer Add ServiceStack Reference to access the Servers typed DTOs in their preferred platform and language of choice ph2Services h2pServices are the ultimate form of encapsulating complexity and offers the highest level of software reuse They package its capabilities and makes them available remotely to your consumers with never any more complexity than the cost of Service call pp href https stack imgur com RHzCr png rel noreferrer img src https stack imgur com RHzCr png alt DTO Interface vs Service Implementation ppThe DTOs are what defines your Services contract keeping them isolated from any Server implementation is how your Service is able to encapsulate its capabilities which can be of unbounded complexity and make themavailable behind remote facade It separates what your Service provides from the complexity in how it realizes it It defines the API for your Service and tells Service Consumers the minimum info they need to know to discover what functionality your Services provide and how to consume them maintaining similar role to Header files in source code Well defined Service contracts decoupled from implementation enforces interoperability ensuring that your Services don mandate specific client implementations ensuring they can be consumed by any HTTP Client on any platform DTOs also define the shape and structure of your Services wire format ensuring they canbe cleanly deserialized into native data structures eliminating the effort in manually parsing Service Responses ph3Parallel Client development h3pSince they capture the entire contract it also enables clients to develop their applications before the Services are implemented as they re able to bind their application to its concrete DTO models and can easily mock their Service client to return test data until the back end Services are implemented ppAs far as rules go ensuring well defined Service Contract DTOs decoupled from its implementation goes to very essence of what Service is and the value it provides ph3Request and Response DTOs h3pAs for which DTOs make good candidates for re use as Data Models you don want to use strongRequest DTOs strongfor anything other than defining your external Services API which is typically strongVerb strong that ideally href https stackoverflow com 15941229 85785 grouped by Call Semantics and Response Types ppre codepublic class SearchProducts IReturn lt SearchProductsResponse gt public string Category get set public decimal PriceGreaterThan get set code prepYour RDBMS tables are normally entities defined as strongNouns strong what your Service returns ppre codepublic class SearchProductsResponse public List lt Product gt Results get set public ResponseStatus ResponseStatus get set code prepEven the containing strongResponse DTO strong which defines what your Service returns isn good candidate for re use as Data Model typically use discrete DTOs for Service Responses as it allows freely extending existing Services to return extra data or metadata without breaking existing clients ppOther than the Request and Response DTOs all other the strongTypes strong that your Service returns would be candidates for re use as Data Models which frequently do keeping them in the strongServiceModel strong project for the reasons above In the sample what the point of IgnoreInSerialization property not being serialiazed but populated from OrmLite only Are the consumers of the typed service supposed to read some kind of documentation for this DTO to realize that property left over from the data access layer is to be ignored The only case using the IgnoreDataMember attrib is for convenience properties StockStatus to StockStatusText explains the first one so the latter is impl as simple lookup directly in the DTO and carries no separate data,0,NULL,NULL 81118,242827,458483,NULL,NULL,NULL,0,NULL,NULL 81119,145027,868276,NULL,NULL,NULL,0,NULL,NULL 81120,374748,113586,Good Answer Nice Question Nice Answer Nice Answer Good Answer Custodian Custodian Custodian linux Good Answer Yearling Guru Nice Answer Good Answer Nice Answer Enlightened Census Popular Question Yearling Nice Answer Enlightened Popular Question Popular Question Good Answer Nice Answer Enlightened Guru Nice Answer Enlightened Enlightened Guru Census Good Answer Popular Question Yearling Good Answer Popular Question Nice Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81121,2268152,407726,NULL,NULL,NULL,0,NULL,NULL 81122,202357,1349337,NULL,NULL,,0,, 81123,1316551,311848,NULL,NULL,NULL,0,NULL,NULL 81124,1249286,1079466,Critic Yearling Nice Question Notable Question Famous Question Notable Question Popular Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 81125,89362,297604,NULL,NULL,NULL,0,NULL,NULL 81126,338367,1100652,Curious,NULL,NULL,0,NULL,NULL 81127,106264,316842,NULL,NULL,NULL,0,NULL,NULL 81128,337168,1223531,Supporter Announcer Announcer Commentator Announcer,NULL,NULL,0,NULL,NULL 81129,30007,338526,Nice Question Yearling Nice Answer Enlightened Nice Answer Yearling Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81130,499747,20907,Nice Question Yearling,NULL,NULL,0,NULL,NULL 81131,172104,1251130,Custodian Editor Tumbleweed,NULL,NULL,0,NULL,NULL 81132,197047,166839,Necromancer Necromancer,NULL,NULL,0,NULL,NULL 81133,699760,1222272,NULL,NULL,NULL,0,NULL,NULL 81134,266172,212012,Necromancer,NULL,NULL,0,NULL,NULL 81135,172283,437028,Famous Question,NULL,NULL,0,NULL,NULL 81136,809749,631608,Yearling Yearling Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 81137,1245299,1274195,Good Answer Yearling Explainer Great Answer Popular Question Nice Answer Yearling Excavator Nice Answer Enlightened Caucus Constituent Great Answer Notable Question Yearling django,NULL,NULL,0,NULL,NULL 81138,14348,471347,NULL,NULL,NULL,0,NULL,NULL 81139,4011,295132,NULL,NULL,NULL,0,NULL,NULL 81140,18250,246693,NULL,NULL,NULL,0,NULL,NULL 81141,116744,722424,Yearling,NULL,NULL,0,NULL,NULL 81142,71233,1009118,Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 81143,18900,1070617,Supporter,NULL,NULL,0,NULL,NULL 81144,297512,430334,Necromancer Caucus Constituent Famous Question Caucus Constituent Caucus Yearling,NULL,NULL,0,NULL,NULL 81145,134048,1282901,NULL,NULL,NULL,0,NULL,NULL 81146,678288,777511,Popular Question Famous Question Custodian Popular Question,NULL,NULL,0,NULL,NULL 81147,305391,1031601,Revival Popular Question Nice Answer Enlightened Popular Question Yearling Revival Good Question Notable Question Good Question Notable Question Announcer Popular Question Necromancer Yearling Nice Question Popular Question Notable Question Necromancer Popular Question Nice Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 81148,109876,254255,Caucus Constituent Popular Question Popular Question Caucus Nice Question Notable Question,NULL,NULL,0,NULL,NULL 81149,155232,218227,NULL,NULL,NULL,0,NULL,NULL 81150,911652,708946,Popular Question,NULL,NULL,0,NULL,NULL 81151,110904,452418,Critic,NULL,NULL,0,NULL,NULL 81152,179383,441280,NULL,NULL,NULL,0,NULL,NULL 81153,1508214,743603,NULL,NULL,NULL,0,NULL,NULL 81154,826027,1162884,Yearling Electorate Notable Question Necromancer Notable Question Yearling Nice Answer Nice Answer Enlightened Popular Question Yearling Announcer Notable Question matlab,NULL,NULL,0,NULL,NULL 81155,158710,838018,Announcer Yearling Critic Nice Answer Enlightened Caucus Announcer,NULL,NULL,0,NULL,NULL 81156,8345203,675000,Scholar Editor Student Popular Question Supporter Teacher Notable Question Famous Question Tumbleweed,NULL,NULL,0,NULL,NULL 81157,881935,1061098,NULL,NULL,NULL,0,NULL,NULL 81158,691659,1026234,NULL,NULL,NULL,0,NULL,NULL 81159,619381,1244631,NULL,NULL,NULL,0,NULL,NULL 81160,6643053,1366681,NULL,NULL,NULL,0,NULL,NULL 81161,105986,598262,Commentator,NULL,NULL,0,NULL,NULL 81162,149189,1312892,Popular Question Yearling,NULL,NULL,0,NULL,NULL 81163,116168,4161,Nice Answer Enlightened Nice Answer Great Answer Great Question Stellar Question Yearling Nice Question Nice Answer Nice Answer Nice Answer Inquisitive Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81164,465430,947995,NULL,NULL,NULL,0,NULL,NULL 81165,182187,221063,Yearling Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 81166,243627,1033388,Nice Answer,NULL,NULL,0,NULL,NULL 81167,703042,811441,NULL,NULL,NULL,0,NULL,NULL 81168,252324,479967,NULL,NULL,NULL,0,NULL,NULL 81169,48772,1458633,NULL,NULL,NULL,0,NULL,NULL 81170,4445249,1458633,NULL,NULL,NULL,0,NULL,NULL 81171,92833,1220471,NULL,NULL,NULL,0,NULL,NULL 81172,3898379,1158535,NULL,NULL,NULL,0,NULL,NULL 81173,246132,325905,Great Answer Electorate Yearling Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 81174,1512249,906784,NULL,NULL,NULL,0,NULL,NULL 81175,177859,854346,Notable Question Announcer Nice Question Yearling Teacher Famous Question,NULL,NULL,0,NULL,NULL 81176,168665,339698,Good Answer Popular Question Yearling Nice Answer Caucus Custodian Custodian Notable Question Yearling Popular Question Nice Answer Documentation User Yearling Famous Question Peer Pressure,NULL,pIf your editor can exit with an error code Git will abort the commit When using VIM type ppre code cq code prepto exit with an non zero error code and abort the commit great when you re doing an interactive rebase aka squashing commits,0,NULL,NULL 81177,155276,682466,Nice Question Yearling Inquisitive Popular Question Popular Question Yearling Necromancer Revival Popular Question Notable Question Popular Question Yearling Popular Question Popular Question Autobiographer Excavator,NULL,NULL,1,NULL,Return list of connected component subgraphs in Boost Graph templates boost graph boost graph pI having problems in filtering the subgraphs with the same component in the original graph want to output them in vector of subgraphs Following the example in connected components ve tried to adapt it to me needs ppre code Create typedef for the Graph typetypedef adjacency list lt vecS vecS undirectedS property lt vertex index int gt property lt edge index int gt gt Graph typedef subgraph lt Graph gt SubGraph typedef typename graph traits lt Graph gt vertex descriptor Vertex typedef typename graph traits lt Graph gt edge descriptor Edge typedef graph traits lt Graph gt GraphTraits Iteratorstypedef graph traits lt Graph gt vertex iterator vertex iter typedef graph traits lt Graph gt edge iterator edge iter typedef property map lt Graph vertex index gt type VertexIndexMap typedef property map lt Graph edge index gt type EdgeIndexMap std vector lt Graph gt connected components subgraphs const Graph amp std vector lt int gt component num vertices int num boost connected components amp component for int lt component size cout lt lt component lt lt endl cout lt lt NUM lt lt num lt lt endl Something to output the induced subgraphs where every subgraph is in the same component code prepI totally stuck in the filtering of the graph because don understand how an external property that is stored for the vertices in the vector component can be exploited or passed to some functor needed to the filter the graph ppIn particular it seems that this question is very similar to my needs but with no pieces of code find it very difficult to figure out the problem pp href https stackoverflow com questions 16407791 splitting boost graph into connected components splitting boost graph into connected components ppHow can output the induced subgraphs from the nodes in the same connected component pInstead of codefiltered graph code you can use codesubgraph code as follows ppre codevector lt int gt comp num vertices size num boost connected components comp data vector lt Graph gt comps num for size lt num comps amp create subgraph for size lt num vertices add vertex comps comp code prepwhere codeGraph code is defined as ppre codeusing Graph subgraph lt adjacency list lt vecS vecS undirectedS property lt vertex index int gt property lt edge index int gt gt gt code prepNote that you ll need to use codelocal to global code to map vertex descriptors from the subgraph to the root graph ppRunning example href http coliru stacked crooked com cebece41c0daed87 rel nofollow http coliru stacked crooked com cebece41c0daed87 ppIt would be interesting to know the merits of codefiltered graph code vs codesubgraph code in this case 81178,1181450,1256577,NULL,NULL,NULL,0,NULL,NULL 81179,86806,1388675,NULL,NULL,NULL,0,NULL,NULL 81180,593333,1276501,Popular Question Popular Question Self-Learner Notable Question Yearling Famous Question Notable Question Nice Question Popular Question Announcer Notable Question Announcer Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Yearling Necromancer Notable Question Notable Question Notable Question Announcer Popular Question Announcer Nice Answer Notable Question Popular Question Notable Question Famous Question Yearling Nice Question Announcer Popular Question Notable Question Famous Question Notable Question,NULL,Linux grep how to treat all lines as big line for regex regex linux grep pAn example test txt ppre codeThis is bad real bad lt xml version encoding UTF gt lt wsdl definitions targetNamespace http tips cf xmlns impl http tips cf xmlns intf http tips cf xmlns apachesoap http xml apache org xml soap code prepI have regex code lt xml gt code pp codegrep code match as line by line So this regex can have match the second line ppBut want to make grep treat the lines as big line and couldn have match because it is not startswith code lt xml code ppI tried ppre codegrep lt xml gt test txt code prepuse code code but it still match the second line ppIs there way to use codegrep code to make it unmatch or there is another regex command line tool yte match newline should for multiple mode and have used to change EOL Linux grep how to treat all lines as big line for regex regex linux grep pAn example test txt ppre codeThis is bad real bad lt xml version encoding UTF gt lt wsdl definitions targetNamespace http tips cf xmlns impl http tips cf xmlns intf http tips cf xmlns apachesoap http xml apache org xml soap code prepI have regex code lt xml gt code pp codegrep code match as line by line So this regex can have match the second line ppBut want to make grep treat the lines as big line and couldn have match because it is not startswith code lt xml code ppI tried ppre codegrep lt xml gt test txt code prepuse code code but it still match the second line ppIs there way to use codegrep code to make it unmatch or there is another regex command line tool Hauri Why basic regexp can work but perl regexp could not Linux grep how to treat all lines as big line for regex regex linux grep pAn example test txt ppre codeThis is bad real bad lt xml version encoding UTF gt lt wsdl definitions targetNamespace http tips cf xmlns impl http tips cf xmlns intf http tips cf xmlns apachesoap http xml apache org xml soap code prepI have regex code lt xml gt code pp codegrep code match as line by line So this regex can have match the second line ppBut want to make grep treat the lines as big line and couldn have match because it is not startswith code lt xml code ppI tried ppre codegrep lt xml gt test txt code prepuse code code but it still match the second line ppIs there way to use codegrep code to make it unmatch or there is another regex command line tool Hauri under PerlRe is quantifier wich mean Match or times is there document,1,Linux grep how to treat all lines as big line for regex regex linux grep pAn example test txt ppre codeThis is bad real bad lt xml version encoding UTF gt lt wsdl definitions targetNamespace http tips cf xmlns impl http tips cf xmlns intf http tips cf xmlns apachesoap http xml apache org xml soap code prepI have regex code lt xml gt code pp codegrep code match as line by line So this regex can have match the second line ppBut want to make grep treat the lines as big line and couldn have match because it is not startswith code lt xml code ppI tried ppre codegrep lt xml gt test txt code prepuse code code but it still match the second line ppIs there way to use codegrep code to make it unmatch or there is another regex command line tool,NULL 81181,206212,1051113,NULL,NULL,NULL,0,NULL,NULL 81182,455774,845289,Necromancer Nice Question Yearling Necromancer Citizen Patrol Custodian Revival Necromancer Yearling Critic Nice Answer Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 81183,342354,539679,Famous Question Notable Question Yearling Notable Question Popular Question Teacher Caucus Yearling,NULL,NULL,0,NULL,NULL 81184,2109657,539679,Famous Question Notable Question Yearling Notable Question Popular Question Teacher Caucus Yearling,NULL,NULL,0,NULL,NULL 81185,2760959,539679,Famous Question Notable Question Yearling Notable Question Popular Question Teacher Caucus Yearling,NULL,NULL,0,NULL,NULL 81186,10528276,539679,Famous Question Notable Question Yearling Notable Question Popular Question Teacher Caucus Yearling,NULL,NULL,0,NULL,NULL 81187,5733635,1291187,NULL,NULL,NULL,0,NULL,NULL 81188,35398,3968,NULL,NULL,NULL,0,NULL,NULL 81189,2510476,1230909,NULL,NULL,NULL,0,NULL,NULL 81190,119743,683859,NULL,NULL,NULL,0,NULL,NULL 81191,5780533,683859,NULL,NULL,NULL,0,NULL,NULL 81192,438586,528000,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 81193,11890,851020,NULL,NULL,NULL,0,NULL,NULL 81194,132015,487307,NULL,NULL,NULL,0,NULL,NULL 81195,1962408,726086,Critic Commentator Yearling Scholar Necromancer Nice Answer Yearling Citizen Patrol Good Answer Yearling Custodian Revival,NULL,pI mixed the solutions from and and got this ppre codeDOT shell command dot gt dev null all ifndef DOT error dot is not available please install graphviz endif dot Tpdf pres pdf pres dot code prepIt works beautifully because command doesn print anything if the executable is not available so the variable DOT never gets defined and you can just check it whenever you want in your code In this example throwing an error but you could do something more useful if you wanted ppIf the variable is available command performs the inexpensive operation of printing the command path defining the DOT variable thought command was bash builtin so it would not cause any trouble guessing wrong then Anyway have some Ubuntu 14 04 machines at work going to check that later pThe algorithms with can runs awfully long ppThis one performs much better ppre codedef gcd while return code pre How is this code different from the one in the std library,1,NULL,Check if program exists from Makefile makefile gnu make pHow can check if program is callable from Makefile pp That is the program should exist in the path or otherwise be callable ppIt could be used to check for which compiler is installed for instance ppE something like href https stackoverflow com questions 592620 check if program exists from bash script this question but without assuming the underlying shell is POSIX compatible pI mixed the solutions from and and got this ppre codeDOT shell command dot gt dev null all ifndef DOT error dot is not available please install graphviz endif dot Tpdf pres pdf pres dot code prepIt works beautifully because command doesn print anything if the executable is not available so the variable DOT never gets defined and you can just check it whenever you want in your code In this example throwing an error but you could do something more useful if you wanted ppIf the variable is available command performs the inexpensive operation of printing the command path defining the DOT variable 81196,290868,985227,NULL,NULL,NULL,0,NULL,NULL 81197,285558,765351,NULL,NULL,NULL,0,NULL,NULL 81198,48122,1216585,NULL,NULL,NULL,0,NULL,NULL 81199,285591,603420,Yearling Nice Answer Enlightened Yearling ruby Yearling,NULL,NULL,0,NULL,NULL 81200,1067117,879184,NULL,NULL,NULL,0,NULL,NULL 81201,2066688,705998,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Nice Question Yearling Necromancer Famous Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 81202,897831,705998,Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Notable Question Notable Question Nice Question Yearling Necromancer Famous Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 81203,211385,881315,NULL,NULL,NULL,0,NULL,NULL 81204,88477,530427,NULL,NULL,NULL,0,NULL,NULL 81205,172075,512994,Revival Notable Question Popular Question Notable Question Famous Question Popular Question Notable Question Famous Question Popular Question Famous Question Nice Answer Famous Question Notable Question Notable Question Popular Question Popular Question Notable Question Yearling Caucus Constituent Good Answer Popular Question Nice Question Nice Question Popular Question Popular Question Caucus Constituent Necromancer Necromancer Yearling Popular Question Census Nice Answer Nice Answer Nice Answer Famous Question Nice Question Popular Question Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 81206,110628,900924,Necromancer Nice Answer Yearling Editor Excavator Necromancer Yearling Revival Good Answer Yearling,NULL,NULL,0,NULL,NULL 81207,116013,1360111,NULL,NULL,NULL,0,NULL,NULL 81208,254369,1182304,Yearling Popular Question Yearling Announcer Famous Question Announcer Yearling Good Question Famous Question Good Answer,NULL,NULL,0,NULL,NULL 81209,3304898,1054676,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81210,1848015,1002569,NULL,NULL,NULL,0,NULL,NULL 81211,49232,1223673,Notable Question,NULL,NULL,0,NULL,NULL 81212,54925,1273394,Notable Question Custodian Yearling Tenacious Popular Question Notable Question Nice Question Yearling Caucus Famous Question Nice Answer Enlightened Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81213,115942,683727,Nice Question Notable Question Caucus Good Question Yearling Notable Question Caucus Notable Question Yearling Famous Question Nice Question,NULL,NULL,0,NULL,NULL 81214,994521,802465,NULL,NULL,NULL,0,NULL,NULL 81215,821390,560423,NULL,NULL,NULL,0,NULL,NULL 81216,347994,248571,Yearling Notable Question Good Answer Nice Answer Yearling Notable Question Popular Question Necromancer,NULL,NULL,0,NULL,NULL 81217,1284046,1280240,Scholar Student Commentator,NULL,NULL,1,Jekyll HTTP css not loading on HTTPS site html https jekyll pMy Jekyll built blog is at href https wys35 github io rel nofollow https wys35 github io ppLocal site is OK as the website is hosted as http but once the site is commited through Travis CI when visit wys35 github io was redirected to https version of the website and the CSS of http link is blocked as it is mixed content ppHow can rectify this problem,NULL 81218,1884560,824916,NULL,NULL,NULL,0,NULL,NULL 81219,382936,824916,NULL,NULL,NULL,0,NULL,NULL 81220,213765,201354,Necromancer Custodian Citizen Patrol Nice Question Yearling Custodian Notable Question Yearling Yearling,NULL,NULL,0,NULL,NULL 81221,91176,1147211,Informed Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81222,374193,90527,Nice Answer Enlightened Necromancer Nice Answer Enlightened Nice Answer Nice Answer Good Answer Guru Good Answer Revival Popular Question oop Yearling Nice Answer Nice Answer Revival Good Answer Nice Answer Enlightened Nice Answer javascript Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Enlightened Self-Learner Notable Question Guru Nice Answer Nice Question Nice Question Nice Answer Enlightened Announcer php Caucus Necromancer Nice Answer Enlightened Notable Question Necromancer Good Answer Nice Answer Nice Answer Popular Question Nice Answer Nice Answer Yearling Nice Answer Nice Answer Guru Nice Answer Enlightened Famous Question Guru Caucus Good Question Announcer Necromancer Announcer Announcer Booster Nice Answer Enlightened Announcer Guru Announcer Necromancer Great Answer Announcer Announcer Announcer Announcer Nice Answer Enlightened Caucus Good Answer Guru Nice Answer Great Answer Yearling Nice Answer Enlightened Good Answer Nice Answer Announcer Publicist Announcer Good Answer Favorite Question Announcer Announcer Revival Good Answer mysql,NULL,pThere href https developer mozilla org en Core JavaScript Reference Global Objects Number toFixed rel noreferrer Number toFixed but it uses scientific notation if the number is 1e21 and has maximum precision of 20 Other than that you can roll your own but it will be messy ppre codefunction toFixed if Math abs lt var parseInt toString split if Math pow 10 new Array join toString substring else var parseInt toString split if gt 20 20 Math pow 10 new Array join return code prepAbove uses cheap easy string repetition code new Array join str code You could define codeString prototype repeat code using Russian Peasant Multiplication and use that instead ppAlternatively you could use href http www leemon com crypto BigInt html rel noreferrer BigInt library the question was specifically about large numbers so toFixed doesn address small ones As mentioned in this answer bigint library addresses the requested functionality and other functionality beyond the question pThere href https developer mozilla org en Core JavaScript Reference Global Objects Number toFixed rel noreferrer Number toFixed but it uses scientific notation if the number is 1e21 and has maximum precision of 20 Other than that you can roll your own but it will be messy ppre codefunction toFixed if Math abs lt var parseInt toString split if Math pow 10 new Array join toString substring else var parseInt toString split if gt 20 20 Math pow 10 new Array join return code prepAbove uses cheap easy string repetition code new Array join str code You could define codeString prototype repeat code using Russian Peasant Multiplication and use that instead ppAlternatively you could use href http www leemon com crypto BigInt html rel noreferrer BigInt library that due to imprecision rounding errors in Math pow As an alternative parseFloat 1e could be used but ultimately bigint library is better choice than trying to get bespoke function to cover 100 of cases given the original question this is one of those 80 of use cases is enough more than 20 effort is too much scenarios for custom code which is also why cheap easy string repetition is used strongSome more differences strong pulli emLua em has native support for href http www lua org manual manual html 11 rel nofollow noreferrer coroutines ulli strongUPDATE strong JS now contains the yield keyword inside generators giving it support for coroutines li ul lili emLua em href http www lua org manual manual html rel nofollow noreferrer doesn convert between types for any comparison operators In JS only code code and code code don type juggle lili emLua em has an exponentiation operator code code emJS em doesn emJS em uses different operators including the ternary conditional operator code code vs codeand or code and as of bitwise operators code amp code code code etc vs href https www lua org manual manual html rel nofollow noreferrer metamethods ulli strongUPDATE strong JS now has the exponentiation operator code code li ul lili emJS em has increment decrement type operators codetypeof code and codeinstanceof code additional assignment operators and additional comparison operators liliIn emJS em the code code code code code code and code code operators are of lower precedence than code gt code code gt code code lt code code lt code In Lua all comparison operators are the href http www lua org manual manual html rel nofollow noreferrer same precedence lili emLua em supports href http www lua org manual manual html rel nofollow noreferrer tail calls ulli strongUPDATE strong JS now href http 2ality com 2015 06 tail call optimization html rel nofollow noreferrer supports tail calls li ul lili emLua em supports href http www lua org manual manual html rel nofollow noreferrer assignment to list of variables While it isn yet standard in emJavascript em Mozilla JS engine and Opera to an extent has supported similar feature since JS available as part of Firefox under the name href https developer mozilla org en US docs JavaScript New in JavaScript Destructuring assignment 28Merge into own page 2Fsection 29 rel nofollow noreferrer destructuring assignment Destructuring in JS is more general as it can be used in contexts other than assignment such as href https developer mozilla org en US docs JavaScript New in JavaScript Pulling fields from objects passed as function parameter rel nofollow noreferrer function definitions amp calls and href https developer mozilla org en US docs JavaScript New in JavaScript Looping across values in an array of objects rel nofollow noreferrer loop initializers href http wiki ecmascript org doku php id proposals destructuring assignment rel nofollow noreferrer Destructuring assignment has been proposed addition to ECMAScript the language standard behind Javascript for awhile ulli strongUPDATE strong Destructuring and destructuring assignment is now part of the spec for ECMAScript already implemented in many engines li ul liliIn emLua em you can href http www lua org manual manual html rel nofollow noreferrer overload operators liliIn emLua em you can manipulate environments with href http www lua org manual manual html rel nofollow noreferrer codegetfenv code and codesetfenv code in Lua or code ENV code in href https www lua org manual manual html rel nofollow noreferrer Lua and href https www lua org manual manual html rel nofollow noreferrer liliIn emJS em all functions are variadic In emLua em functions must be href http www lua org manual manual html rel nofollow noreferrer explicitly declared as variadic lili codeForeach code in emJS em loops over object properties href http www lua org manual manual html rel nofollow noreferrer Foreach in emLua em which use the keyword codefor code loops over iterators and is more general ulli strongUPDATE strong JS has href https developer mozilla org en US docs Web JavaScript Guide Iterators and Generators rel nofollow noreferrer Iterables now too many of which are built into the regular data structures you expect such as codeArray code These can be looped over with the codefor of code syntax For regular Objects one can implement their own iterator functions This brings it much closer to Lua li ul lili pJS has global and function scope emLua em has href http www lua org manual manual html rel nofollow noreferrer global and block scope Control structures codeif code codefor code codewhile code introduce new href http www lua org pil html rel nofollow noreferrer blocks pulli pDue to differences in scoping rules closure referencing of an outer variable called upvalues in Lua parlance may be handled differently in Lua and in emJavascript em This is most commonly experienced with href http flightodyssey blogspot com 2013 09 closure html rel nofollow noreferrer closures in codefor code loops and catches some people by surprise In emJavascript em the body of codefor code loop doesn introduce new scope so any functions declared in the loop body all reference the href https developer mozilla org en US docs Web JavaScript Guide Closures Creating closures in loops 3A common mistake rel nofollow noreferrer same outer variables In Lua each iteration of the codefor code loop creates new local variables for each loop variable ppre codelocal foo for 10 do here is not the local declared above endprint prints foo code prepThe above code is equivalent to ppre codelocal foo do local while lt 10 do local endendprint code prepAs consequence functions defined in separate iterations have different upvalues for each referenced loop variable See also Nicolas Bola answers to href https stackoverflow com 7781507 90527 Implementation of closures in Lua and href https stackoverflow com 14331073 90527 What are the correct semantics of closure over loop variable and href http www lua org pil html rel nofollow noreferrer The Semantics of the Generic for pp strongUPDATE strong JS has block scope now Variables defined with codelet code or codeconst code respect block scope li ul liliInteger literals in emJS em can be in octal lili emJS em has explicit Unicode support and internally strings are encoded in href https en wikipedia org wiki UTF 16 rel nofollow noreferrer UTF 16 so they are sequences of pairs of bytes Various built in JavaScript functions use Unicode data such as code pâté toUpperCase code code PÂTÉ code emLua em and up have Unicode code point escape sequences in string literals with the same syntax as JavaScript code point escape sequences as well as the built in codeutf8 code library which provides basic support for the href https en wikipedia org wiki UTF rel nofollow noreferrer UTF encoding such as encoding code points into UTF and decoding UTF into code points getting the number of code points in string and iterating over code points Strings in Lua are sequences of individual bytes and can contain text in any encoding or arbitrary binary data Lua does not have any built in functions that use Unicode data the behavior of codestring upper code depends on the locale liliIn emLua em the codenot code codeor code codeand code keywords are used in place of emJS em code code code code code amp amp code lili emLua em uses code code for not equal whereas emJS em uses code code For example codeif foo 20 then end code lili emLua em and up use code code for binary bitwise XOR whereas emJS em uses code code liliIn emLua em any type of value except codenil code and codeNaN code can be used to index table in emJavaScript em all non string types except Symbol are converted to strings before being used to index an object liliIn emJS em assignments are treated as expressions but in emLua em they are not Thus JS allows assignments in conditions of codeif code codewhile code and codedo while code statements but Lua does not in codeif code codewhile code and coderepeat until code statements For example codeif code is valid JS but codeif do end code is invalid Lua lili emLua em has syntactic sugar for declaring block scoped function variables functions that are fields and methods codelocal function end code codefunction fieldname end code codefunction methodname end code emJS em declares these with an equals sign codelet funcname function optionalFuncname code codeobjectname fieldname function code li ul comments aren intended to address additional questions so let shift this to chat https chat stackoverflow com rooms 183916 why create javascript instead of just using lua,0,NULL,NULL 81223,150956,149789,Yearling Caucus Yearling Popular Question Custodian Yearling,NULL,NULL,0,NULL,NULL 81224,38784,259046,Notable Question,NULL,NULL,0,NULL,NULL 81225,242223,207245,NULL,NULL,NULL,0,NULL,NULL 81226,226393,469804,NULL,NULL,NULL,0,NULL,NULL 81227,192498,633310,Yearling Popular Question Nice Question Popular Question Nice Question Notable Question Yearling Nice Question Popular Question Popular Question Yearling Nice Question Good Question Notable Question Popular Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 81228,428853,477222,NULL,NULL,NULL,0,NULL,NULL 81229,178442,502073,NULL,NULL,NULL,0,NULL,NULL 81230,24539,286906,Necromancer,NULL,NULL,0,NULL,NULL 81231,240790,816212,NULL,NULL,NULL,0,NULL,NULL 81232,151943,4098,NULL,NULL,NULL,0,NULL,NULL 81233,505523,1362345,Notable Question,NULL,NULL,0,NULL,NULL 81234,908842,1397473,NULL,NULL,NULL,0,NULL,NULL 81235,17347,1359115,Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 81236,155425,1144897,NULL,NULL,NULL,0,NULL,NULL 81237,67122,721470,NULL,NULL,NULL,0,NULL,NULL 81238,319196,559153,Yearling Revival Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 81239,160339,1018216,NULL,NULL,NULL,0,NULL,NULL 81240,209826,263231,Yearling,NULL,NULL,0,NULL,NULL 81241,203325,238634,Critic Caucus Caucus Caucus,NULL,NULL,0,NULL,NULL 81242,1424678,208714,NULL,NULL,NULL,0,NULL,NULL 81243,40642,315314,NULL,NULL,NULL,0,NULL,NULL 81244,25581,1530527,Supporter,NULL,NULL,0,NULL,NULL 81245,289228,414902,Informed,NULL,NULL,0,NULL,NULL 81246,352458,1342895,NULL,NULL,NULL,0,NULL,NULL 81247,204952,26626,Notable Question Yearling,NULL,NULL,0,NULL,NULL 81248,33141,92374,NULL,NULL,NULL,0,NULL,NULL 81249,249295,388593,Critic Tumbleweed Student Census Scholar,NULL,NULL,0,NULL,NULL 81250,219278,1231970,NULL,NULL,NULL,0,NULL,NULL 81251,179993,838826,NULL,NULL,NULL,0,NULL,NULL 81252,272839,1277717,NULL,NULL,NULL,0,NULL,NULL 81253,36121,511822,Caucus,NULL,NULL,0,NULL,NULL 81254,3892,122162,Good Answer Yearling Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Enlightened Guru Good Answer Nice Answer Yearling Guru Good Answer Yearling Guru,NULL,NULL,0,NULL,NULL 81255,220165,681598,NULL,NULL,NULL,0,NULL,NULL 81256,113218,1249877,NULL,NULL,NULL,0,NULL,NULL 81257,11637,610632,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81258,501279,197763,Notable Question,NULL,NULL,0,NULL,NULL 81259,197426,197763,Notable Question,NULL,NULL,0,NULL,NULL 81260,149549,1093050,NULL,NULL,NULL,0,NULL,NULL 81261,283153,780160,Nice Question Yearling Famous Question Popular Question,NULL,NULL,0,NULL,NULL 81262,500726,976522,NULL,NULL,NULL,0,NULL,NULL 81263,152408,673223,Critic Caucus,NULL,NULL,0,NULL,NULL 81264,736199,722002,NULL,NULL,NULL,0,NULL,NULL 81265,469831,1039006,NULL,NULL,NULL,0,NULL,NULL 81266,2451,406393,NULL,NULL,NULL,0,NULL,NULL 81267,938843,509671,Nice Answer,NULL,NULL,0,NULL,NULL 81268,212634,226114,Good Answer Populist Good Answer Good Question Nice Question Nice Answer Yearling Notable Question Famous Question Good Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81269,18218,449611,NULL,NULL,NULL,0,NULL,NULL 81270,437436,872268,NULL,NULL,NULL,0,NULL,NULL 81271,154968,774647,NULL,NULL,NULL,0,NULL,NULL 81272,603185,911663,NULL,NULL,NULL,0,NULL,NULL 81273,1124696,524303,NULL,NULL,NULL,0,NULL,NULL 81274,167394,657184,Yearling Disciplined Yearling Notable Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 81275,118493,472279,Yearling,NULL,NULL,0,NULL,NULL 81276,9932,1107376,Documentation User,NULL,NULL,0,NULL,NULL 81277,569443,194282,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81278,35572,335304,Curious Yearling Nice Answer Famous Question,NULL,pThis is mix of an infinite table and an infinite scroll scenario The best abstraction found for this is the following pp strongOverview strong ppMake code lt List gt code component that takes an array of strongall strong children Since we do not render them it really cheap to just allocate them and discard them If 10k allocations is too big you can instead pass function that takes range and return the elements ppre code lt List gt thousandelements map function return lt Element gt lt List gt code prepYour codeList code component is keeping track of what the scroll position is and only renders the children that are in view It adds large empty div at the beginning to fake the previous items that are not rendered ppNow the interesting part is that once an codeElement code component is rendered you measure its height and store it in your codeList code This lets you compute the height of the spacer and know how many elements should be displayed in view pp strongImage strong ppYou are saying that when the image are loading they make everything jump down The solution for this is to set the image dimensions in your img tag code lt img src width 100 height 58 gt code This way the browser doesn have to wait to download it before knowing what size it is going to be displayed This requires some infrastructure but it really worth it ppIf you can know the size in advance then add codeonload code listeners to your image and when it is loaded then measure its displayed dimension and update the stored row height and compensate the scroll position pp strongJumping at random element strong ppIf you need to jump at random element in the list that going to require some trickery with scroll position because you don know the size of the elements in between What suggest you to do is to average the element heights you already have computed and jump to the scroll position of last known height number of elements average ppSince this is not exact it going to cause issues when you reach back to the last known good position When conflict happens simply change the scroll position to fix it This is going to move the scroll bar bit but shouldn affect him her too much pp strongReact Specifics strong ppYou want to provide href http facebook github io react docs reconciliation html keys rel noreferrer key to all the rendered elements so that they are maintained across renders There are two strategies have only keys where is the maximum number of elements you can display and use their position modulo have different key per element If all the elements share similar structure it good to use to reuse their DOM nodes If they don then use ppI would only have two pieces of React state the index of the first element and the number of elements being displayed The current scroll position and the height of all the elements would be directly attached to codethis code When using codesetState code you are actually doing rerender which should only happen when the range changes ppHere is an example href http jsfiddle net vjeux KbWJ2 rel noreferrer http jsfiddle net vjeux KbWJ2 of infinite list using some of the techniques describe in this answer It going to be some work but React is definitively good way to implement an infinite list Your JSFiddle currently throws an error Uncaught ReferenceError generate is not defined,0,NULL,NULL 81279,26072,624766,Yearling Civic Duty Unsung Hero Nice Answer Guru Custodian Good Answer Yearling Necromancer Nice Answer Enlightened Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 81280,1515352,1503549,Teacher Supporter Tumbleweed Necromancer,NULL,NULL,0,NULL,NULL 81281,436692,1418813,NULL,NULL,NULL,0,NULL,NULL 81282,131585,1513157,NULL,NULL,NULL,0,NULL,NULL 81283,32379,310099,Teacher Supporter,NULL,NULL,0,NULL,NULL 81284,881461,966419,Scholar,NULL,NULL,0,NULL,NULL 81285,303542,380629,NULL,NULL,NULL,0,NULL,NULL 81286,1362763,811762,NULL,NULL,NULL,0,NULL,NULL 81287,13085,320030,NULL,NULL,NULL,0,NULL,NULL 81288,117093,1504959,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81289,9113,854845,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81290,1804896,985117,Supporter,NULL,NULL,0,NULL,NULL 81291,249471,985117,Supporter,NULL,NULL,0,NULL,NULL 81292,3055690,985117,Supporter,NULL,NULL,0,NULL,NULL 81293,193144,84155,NULL,NULL,NULL,0,NULL,NULL 81294,476222,84155,NULL,NULL,NULL,0,NULL,NULL 81295,3138941,84155,NULL,NULL,NULL,0,NULL,NULL 81296,468025,84396,Yearling Yearling,NULL,NULL,0,NULL,NULL 81297,697611,1264402,NULL,NULL,NULL,0,NULL,NULL 81298,676567,249912,Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81299,1401745,570255,Yearling,NULL,NULL,0,NULL,NULL 81300,105698,15541,Good Answer Nice Answer Enlightened Nice Answer Nice Answer Guru Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Popular Question Nice Answer performance Great Answer Good Answer Guru Good Answer Popular Question Notable Question Good Answer Good Answer Yearling Good Answer Nice Answer Enlightened Nice Question Caucus Notable Question Nice Answer Nice Answer Popular Question Guru Good Answer Good Answer Nice Answer Enlightened Nice Answer Great Answer Enlightened Nice Answer Popular Question Caucus Constituent Custodian Good Answer Yearling Announcer Nice Answer clr Documentation User Good Answer Guru Nice Answer Nice Answer Enlightened Nice Answer Announcer Booster Nice Answer Enlightened Good Answer Great Answer datagridview Great Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 81301,31711,539797,NULL,NULL,NULL,0,NULL,NULL 81302,80619,1210659,NULL,NULL,NULL,0,NULL,NULL 81303,4667665,1210659,NULL,NULL,NULL,0,NULL,NULL 81304,5044965,1065708,NULL,NULL,NULL,0,NULL,NULL 81305,36735,1065708,NULL,NULL,NULL,0,NULL,NULL 81306,730932,1072175,Yearling Necromancer Notable Question Critic Custodian Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 81307,47931,708434,Popular Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Yearling Guru Proofreader Good Answer Nice Answer Enlightened Nice Answer Nice Answer Notable Question Guru guava php Archaeologist Nice Answer Enlightened Nice Answer Caucus Constituent Good Answer Good Answer Great Answer Great Answer Nice Answer Yearling Announcer Nice Answer Enlightened Caucus Constituent Announcer Announcer Populist Nice Answer Documentation User Guru Announcer Caucus Constituent Yearling Announcer Guru Good Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 81308,64161,423183,NULL,NULL,NULL,0,NULL,NULL 81309,319694,1259144,Informed,NULL,NULL,0,NULL,NULL 81310,700241,168073,NULL,NULL,NULL,0,NULL,NULL 81311,63852,658889,NULL,NULL,NULL,0,NULL,NULL 81312,473075,758991,Informed Yearling Yearling Citizen Patrol Critic Yearling Custodian Custodian Custodian Necromancer Yearling Caucus Necromancer Yearling Mortarboard Nice Answer Popular Question Curious Yearling Revival Announcer Necromancer Self-Learner Excavator Popular Question Notable Question Nice Answer Revival Civic Duty Popular Question Caucus Yearling Notable Question Necromancer Custodian Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 81313,180042,1302872,Yearling Self-Learner Commentator Popular Question Caucus Yearling,NULL,NULL,0,NULL,NULL 81314,179648,1482401,NULL,NULL,NULL,0,NULL,NULL 81315,993149,854883,NULL,NULL,NULL,0,NULL,NULL 81316,67040,289137,NULL,NULL,NULL,0,NULL,NULL 81317,11130438,913614,NULL,NULL,NULL,0,NULL,NULL 81318,90684,913614,NULL,NULL,NULL,0,NULL,NULL 81319,555347,1032747,NULL,NULL,NULL,0,NULL,NULL 81320,203545,691465,NULL,NULL,NULL,0,NULL,NULL 81321,171926,201747,Notable Question Good Answer Nice Answer Yearling Nice Answer Notable Question Populist Yearling Good Answer,NULL,NULL,0,NULL,NULL 81322,424995,1496874,Necromancer Nice Answer Commentator Caucus Caucus Caucus Constituent Critic Informed Student Yearling Scholar,NULL,NULL,0,NULL,NULL 81323,285536,551767,NULL,NULL,NULL,0,NULL,NULL 81324,686125,710850,NULL,NULL,NULL,0,NULL,NULL 81325,463233,696756,Nice Answer Enlightened Yearling Custodian Good Answer Yearling,NULL,NULL,0,NULL,NULL 81326,571121,745433,NULL,NULL,NULL,0,NULL,NULL 81327,51294,264035,NULL,NULL,NULL,0,NULL,NULL 81328,887680,1501670,Necromancer Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81329,168816,1399695,NULL,NULL,NULL,0,NULL,NULL 81330,881276,1399695,NULL,NULL,NULL,0,NULL,NULL 81331,149783,303184,Good Answer Necromancer Yearling Custodian Nice Answer Yearling Tumbleweed Yearling Popular Question,NULL,h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul v1 is solution stack version It should let you choose which version of solution stack you want to create when creating new environment Anything newer than v1 should do Regarding the URL it should be the URL which your application listens on not file path It is not possible to run Django management commands it only does HTTP requests h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul Well that really could be the reason why it doesn work You need to set up the HTTP endpoints in your application as described in previous post And then debug what going on try to call these endpoints when running your app locally But this is kind of out of scope for this SO question You might create new one if you believe it would help someone else too h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul Great Please upvote this answer if it pointed you to the right direction have submitted my suggestion how to resolve your problems to the new topic h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul As far as know that is not possible AWS cron is specifically designed for worker instances which on the other hand cannot serve normal HTTP requests as they do not face internet directly h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul Workers do not face internet directly For web tier with shared codebase we use simple env variable switch to indicate when to enable worker routes on worker tier instances and when not to on web tier instances h1This is the official way to do it now 2015 Please try this first it by far easiest method currently available and most reliable as well h1pAccording to current docs one is strongable to run periodic tasks strong on their so called href http docs aws amazon com elasticbeanstalk latest dg using features managing env tiers html worker periodictasks worker tier ppCiting the documentation pblockquote pAWS Elastic Beanstalk supports periodic tasks for worker environment tiers in environments running predefined configuration with solution stack that contains v1 in the container name You must create new environment blockquotepAlso interesting is the part about emcron yaml em pblockquote pTo invoke periodic tasks your application source bundle must include cron yaml file at the root level The file must contain information about the periodic tasks you want to schedule Specify this information using standard crontab syntax blockquotep strongUpdate strong We were able to get this work Here are some important gotchas from our experience Node js platform pulliWhen using emcron yaml em file make sure you have latest href https pypi python org pypi awsebcli awsebcli because older versions will not work properly liliIt is also vital to create new environment at least in our case it was not just clone old one liliIf you want to make sure CRON is supported on your EC2 Worker Tier instance ssh into it codeeb ssh code and run codecat var log aws sqsd default log code It should report as codeaws sqsd 2015 02 18 code If you don have version something gone wrong when creating your environment and you need to create new one as stated above li ul Sorry can help with that we are already in asynchronous rabbit hole,0,NULL,NULL 81332,459039,496623,NULL,NULL,NULL,0,NULL,NULL 81333,39598,534446,NULL,NULL,NULL,0,NULL,NULL 81334,862419,809926,NULL,NULL,NULL,0,NULL,NULL 81335,1104292,740345,NULL,NULL,NULL,0,NULL,NULL 81336,258988,1156063,Supporter,NULL,NULL,0,NULL,NULL 81337,89704,1210281,NULL,NULL,NULL,0,NULL,NULL 81338,62815,218257,Nice Answer Nice Answer Enlightened Nice Answer Enlightened Guru Revival Enlightened Good Answer Guru Yearling Guru Great Answer Great Answer Good Answer Nice Answer Enlightened Good Answer Nice Answer Good Answer Enlightened Good Answer Guru Good Answer Yearling Nice Answer Guru Enlightened Yearling,NULL,NULL,0,NULL,NULL 81339,268761,676467,NULL,NULL,NULL,0,NULL,NULL 81340,1178749,110629,Notable Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 81341,226991,758755,NULL,NULL,NULL,0,NULL,NULL 81342,39714,200472,Popular Question Popular Question Notable Question Civic Duty Informed Popular Question,NULL,NULL,0,NULL,NULL 81343,18405,53926,Yearling Good Answer Necromancer Nice Answer Tumbleweed Famous Question Guru Yearling Great Answer Famous Question Good Answer Announcer Good Answer Yearling Popular Question Good Answer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 81344,420046,128629,Announcer Announcer Yearling Nice Answer Documentation Beta Caucus Great Answer Yearling Nice Question Documentation User python Nice Answer Enlightened Announcer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81345,85967,245820,Yearling Explainer Nice Answer Populist Guru Nice Answer Enlightened Revival Yearling Nice Answer Enlightened Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 81346,907627,1365816,NULL,NULL,NULL,0,NULL,NULL 81347,161761,149974,NULL,NULL,NULL,0,NULL,NULL 81348,1163262,907218,Supporter,NULL,NULL,0,NULL,NULL 81349,321165,1362990,NULL,NULL,NULL,0,NULL,NULL 81350,1014584,117280,Nice Question Yearling Notable Question Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 81351,506980,123597,Popular Question Popular Question Yearling Custodian Notable Question Guru Proofreader Popular Question Caucus Constituent Popular Question Popular Question Census Popular Question Popular Question Yearling Nice Answer Enlightened Inquisitive Popular Question Self-Learner Caucus Constituent Notable Question Revival Notable Question Tag Editor Nice Question Announcer Nice Answer c# Notable Question Caucus Constituent Announcer Famous Question Custodian Yearling Popular Question Civic Duty,NULL,NULL,0,NULL,NULL 81352,149733,1438257,Teacher,NULL,NULL,0,NULL,NULL 81353,1509370,899324,NULL,NULL,NULL,0,NULL,NULL 81354,1709705,4177,Popular Question Good Answer Famous Question Yearling Popular Question Taxonomist Necromancer Good Question Yearling Good Question Yearling Explainer,NULL,NULL,0,NULL,NULL 81355,235119,77004,Notable Question Necromancer Popular Question Nice Answer Popular Question Nice Answer Nice Question Nice Question Nice Answer Nice Answer Guru Yearling Good Question Revival Popular Question Necromancer Good Question Nice Answer Populist Nice Question Good Answer Popular Question Yearling Popular Question Revival Popular Question Famous Question Famous Question Nice Question Electorate Popular Question Good Answer Notable Question Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 81356,119970,572543,Yearling Good Question Good Question Notable Question Popular Question Popular Question Notable Question Yearling Famous Question Nice Answer Popular Question Notable Question Good Answer Popular Question Necromancer Nice Answer Famous Question Excavator Popular Question Yearling Favorite Question Nice Question Nice Question Great Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 81357,209777,1249783,NULL,NULL,NULL,0,NULL,NULL 81358,1765098,801146,NULL,NULL,NULL,0,NULL,NULL 81359,2845363,801146,NULL,NULL,NULL,0,NULL,NULL 81360,591181,801146,NULL,NULL,NULL,0,NULL,NULL 81361,85680,177147,Notable Question,NULL,NULL,0,NULL,NULL 81362,19596,1265417,Yearling,NULL,NULL,0,NULL,NULL 81363,203620,328934,NULL,NULL,NULL,0,NULL,NULL 81364,753631,221013,Nice Answer,NULL,NULL,0,NULL,NULL 81365,247831,317304,Notable Question,NULL,NULL,0,NULL,NULL 81366,885054,589985,ruby-on-rails Yearling Guru Nice Answer Nice Answer Nice Answer Good Answer Notable Question Nice Answer Enlightened Yearling Nice Answer Enlightened Nice Answer Famous Question Disciplined Good Answer Good Answer Reviewer Custodian Custodian Yearling Announcer Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer,NULL,NULL,0,NULL,NULL 81367,41437,1339281,NULL,NULL,NULL,0,NULL,NULL 81368,388587,1223663,Necromancer,NULL,NULL,0,NULL,NULL 81369,213873,810100,NULL,NULL,NULL,0,NULL,NULL 81370,15433,191362,NULL,NULL,NULL,0,NULL,NULL 81371,977767,766894,NULL,NULL,NULL,0,NULL,NULL 81372,204856,553803,Good Question Autobiographer Notable Question Famous Question Critic Commentator Caucus Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 81373,309161,1376937,NULL,NULL,NULL,0,NULL,NULL 81374,96536,389499,Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Famous Question Famous Question Nice Question Popular Question Famous Question Popular Question Notable Question Famous Question Good Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81375,465156,636532,NULL,NULL,NULL,0,NULL,NULL 81376,26739,1089402,NULL,NULL,NULL,0,NULL,NULL 81377,257906,57639,Yearling Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 81378,1706268,1224193,NULL,NULL,NULL,0,NULL,NULL 81379,204311,597658,NULL,NULL,NULL,0,NULL,NULL 81380,70574,1315066,Tumbleweed Nice Question Critic,NULL,NULL,0,NULL,NULL 81381,19209,901379,Famous Question Nice Answer Enlightened Necromancer Popular Question Popular Question Yearling Good Answer Popular Question jquery Necromancer Notable Question Nice Answer Yearling Good Question Nice Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 81382,1513222,607028,NULL,NULL,NULL,0,NULL,NULL 81383,313628,815845,NULL,NULL,NULL,0,NULL,NULL 81384,1254212,1058115,Necromancer Documentation User Yearling Nice Answer Caucus Yearling Good Answer,NULL,NULL,0,NULL,NULL 81385,266861,471218,Nice Answer,NULL,NULL,0,NULL,NULL 81386,511374,625151,Yearling Good Answer Nice Answer Enlightened Nice Answer Yearling Guru Yearling Caucus,NULL,NULL,0,NULL,NULL 81387,242397,536549,Commentator Notable Question,NULL,NULL,0,NULL,NULL 81388,6779531,929451,Famous Question Documentation User,NULL,NULL,0,NULL,NULL 81389,546357,1299082,NULL,NULL,NULL,0,NULL,NULL 81390,184,263947,Yearling Good Answer,NULL,NULL,0,NULL,NULL 81391,426581,454819,NULL,NULL,NULL,0,NULL,NULL 81392,396394,692145,NULL,NULL,NULL,0,NULL,NULL 81393,136395,555041,Famous Question Popular Question Notable Question Notable Question Yearling Peer Pressure Inquisitive Popular Question,NULL,NULL,0,NULL,NULL 81394,329825,1334212,NULL,NULL,NULL,0,NULL,NULL 81395,713627,562096,NULL,NULL,NULL,0,NULL,NULL 81396,192485,1404193,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 81397,828955,565229,Self-Learner Yearling Caucus Census Curious Notable Question,NULL,NULL,0,NULL,NULL 81398,215913,663737,NULL,NULL,NULL,0,NULL,NULL 81399,1228349,1547129,Good Question,NULL,NULL,0,NULL,NULL 81400,658839,764000,Notable Question,NULL,NULL,0,NULL,NULL 81401,30863,270039,Civic Duty Yearling Yearling Announcer Yearling Custodian Excavator,NULL,NULL,0,NULL,NULL 81402,1410,138219,NULL,NULL,NULL,0,NULL,NULL 81403,54162,344028,Student Editor,NULL,NULL,0,NULL,NULL 81404,422571,630753,Popular Question,NULL,NULL,0,NULL,NULL 81405,256123,305632,NULL,NULL,NULL,0,NULL,NULL 81406,1195511,1086596,Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 81407,1038236,1191524,NULL,NULL,NULL,0,NULL,NULL 81408,853805,968186,NULL,NULL,NULL,0,NULL,NULL 81409,1601,1076282,NULL,NULL,NULL,0,NULL,NULL 81410,1471300,648169,Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 81411,32869,131615,Popular Question Enlightened Nice Answer Yearling Taxonomist Nice Answer Enlightened Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 81412,218270,1396753,NULL,NULL,NULL,0,NULL,NULL 81413,610907,603324,Popular Question Popular Question Informed Commentator Necromancer,NULL,NULL,0,NULL,NULL 81414,143729,1305127,Informed Autobiographer Revival Yearling Yearling Nice Answer Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81415,3376235,363803,Yearling Good Answer Caucus Caucus Constituent Custodian Citizen Patrol Caucus,NULL,NULL,0,NULL,NULL 81416,644632,1113837,NULL,NULL,NULL,0,NULL,NULL 81417,36467,206466,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Revival Notable Question Popular Question Popular Question Nice Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Yearling Popular Question Caucus Popular Question Notable Question Popular Question Popular Question Explainer Necromancer Announcer Announcer Announcer Popular Question Popular Question Announcer Famous Question Popular Question Popular Question Necromancer Popular Question Announcer Announcer Popular Question Nice Answer Nice Answer Notable Question Announcer Booster Booster Nice Question Popular Question Nice Question Announcer Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Announcer Popular Question Announcer Popular Question Announcer Notable Question Notable Question Popular Question Necromancer Famous Question Good Question Notable Question Popular Question Yearling Notable Question Announcer Good Answer Popular Question Popular Question Notable Question Announcer Popular Question Notable Question Booster Necromancer Announcer Nice Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Nice Answer Announcer Popular Question Announcer Good Question Nice Question java Notable Question Notable Question Popular Question Good Answer Announcer Popular Question Announcer Notable Question Popular Question Popular Question Announcer Famous Question Announcer Revival Notable Question Popular Question Yearling Notable Question,NULL,pFrom href https docs spring io spring framework docs current spring framework reference core html beans stereotype annotations rel noreferrer Spring Documentation pblockquote pIn Spring and later the code code annotation is marker for any class that fulfills the role or stereotype also known as Data Access Object or DAO of repository Among the uses of this marker is the automatic translation of exceptions pSpring introduces further stereotype annotations code code code code and code code code code is generic stereotype for any Spring managed component code code code code and code code are specializations of code code for more specific use cases for example in the persistence service and presentation layers respectively pTherefore you can annotate your component classes with code code but by annotating them with code code code code or code code instead your classes are more properly suited for processing by tools or associating with aspects For example these stereotype annotations make ideal targets for pointcuts pThus if you are choosing between using code code or code code for your service layer code code is clearly the better choice Similarly as stated above code code is already supported as marker for automatic exception translation in your persistence layer blockquotepre code┌────────────┬─────────────────────────────────────────────────────┐│ Annotation Meaning │├────────────┼─────────────────────────────────────────────────────┤│ generic stereotype for any Spring managed component ││ stereotype for persistence layer ││ stereotype for service layer ││ stereotype for presentation layer spring mvc │└────────────┴─────────────────────────────────────────────────────┘ code pre down voting because can read docs myself this doesn actually tell me anything didn know trying to figure out what the difference between and is it obvious to me that there is one since ve seen problems injecting into places where works strongDisclaimer strong am the founder of log4j SLF4J and logback projects ppThere are objective reasons for preferring SLF4J For one strongSLF4J allows the end user the liberty to choose the underlying logging framework strong In addition savvier users tend to prefer href http logback qos ch reasonsToSwitch html rel nofollow noreferrer logback which offers capabilities beyond log4j with falling way behind Feature wise may be sufficient for some users but for many others it just isn In nutshell if logging is important to you you would want to use SLF4J with logback as the underlying implementation If logging is unimportant is fine ppHowever as an oss developer you need to take into account the preferences of your users and not just your own It follows that you should adopt SLF4J not because emyou em are convinced that SLF4J is better than but because most Java developers currently July 2012 prefer SLF4J as their logging API If ultimately you decide not to care about popular opinion consider the following facts pollithose who prefer do so out of convenience because is bundled with the JDK To my knowledge there are no other objective arguments in favor of liliyour own preference for is just that ema preference em li olpThus holding hard facts above public opinion while seemingly brave is logical fallacy in this case ppIf still not convinced href https stackoverflow com users 571407 jb nizet JB Nizet makes an additional and potent argument pblockquote pExcept the end user could have already done this customization for his own code or another library that uses log4j or logback is extensible but having to extend logback log4j and God only knows which other logging framework because he uses four libraries that use four different logging frameworks is cumbersome By using SLF4J you allow him to configure the logging frameworks he wants not the one you have chosen strongRemember that typical project uses myriads of libraries and not just yours strong blockquotepIf for whatever reason you hate the SLF4J API and using it will snuff the fun out of your work then by all means go for After all there are means to href http www slf4j org legacy html jul to slf4j rel nofollow noreferrer redirect to SLF4J ppBy the way parametrization is at least 10 times slower than SLF4J which ends up making noticeable difference Objective argument in favor of JUL see comment SLF4J doesn support it know ve been following that bug for years strongDisclaimer strong am the founder of log4j SLF4J and logback projects ppThere are objective reasons for preferring SLF4J For one strongSLF4J allows the end user the liberty to choose the underlying logging framework strong In addition savvier users tend to prefer href http logback qos ch reasonsToSwitch html rel nofollow noreferrer logback which offers capabilities beyond log4j with falling way behind Feature wise may be sufficient for some users but for many others it just isn In nutshell if logging is important to you you would want to use SLF4J with logback as the underlying implementation If logging is unimportant is fine ppHowever as an oss developer you need to take into account the preferences of your users and not just your own It follows that you should adopt SLF4J not because emyou em are convinced that SLF4J is better than but because most Java developers currently July 2012 prefer SLF4J as their logging API If ultimately you decide not to care about popular opinion consider the following facts pollithose who prefer do so out of convenience because is bundled with the JDK To my knowledge there are no other objective arguments in favor of liliyour own preference for is just that ema preference em li olpThus holding hard facts above public opinion while seemingly brave is logical fallacy in this case ppIf still not convinced href https stackoverflow com users 571407 jb nizet JB Nizet makes an additional and potent argument pblockquote pExcept the end user could have already done this customization for his own code or another library that uses log4j or logback is extensible but having to extend logback log4j and God only knows which other logging framework because he uses four libraries that use four different logging frameworks is cumbersome By using SLF4J you allow him to configure the logging frameworks he wants not the one you have chosen strongRemember that typical project uses myriads of libraries and not just yours strong blockquotepIf for whatever reason you hate the SLF4J API and using it will snuff the fun out of your work then by all means go for After all there are means to href http www slf4j org legacy html jul to slf4j rel nofollow noreferrer redirect to SLF4J ppBy the way parametrization is at least 10 times slower than SLF4J which ends up making noticeable difference honestly though love to see 2018 benchmarks on Java 11 or whatever that ends up being and against log4j2 in async mode pIt been while since asked this question and much more familiar with the cryptographic theory now so here is the more modern approach ph2Reasoning h2ulliDon use md5 Don use single cycle of sha family quick hashes Quick hashes help attackers so you don want that liliUse resource intensive hash like bcrypt instead Bcrypt is time tested and scales up to be future proof able liliDon bother rolling your own salt you might screw up your own security or portability rely on gen salt to generate it awesome unique to each use salts on it own liliIn general don be an idiot don try to write your own homegrown crypto just use what smart people have provided li ulh2Debian Ubuntu install packages h2pre codesudo apt get install postgresql of course sudo apt get install postgresql contrib libpq dev gets bcrypt crypt and gen salt sudo apt get install php5 pgsql optional if you re using postgresql with php code preh2Activate crypt and bcrypt in postgresql in your database h2pre code Create your database first then cd pg config sharedir Move to the postgres directory that holds these scripts echo create extension pgcrypto psql yOuRdATaBaSeNaMe enable the pgcrypo extension code preh2Use crypt and gen salt in queries h2pCompare pass to existing hash with ppre codeselect from accounts where password hash crypt pass password hash note how the existing hash is used as its own individualized salt code prepCreate hash of password with great random salt ppre codeinsert into accounts password values crypt password gen salt bf the is the work factor code preh2From in Php bcrypt hashing is slightly preferrable h2pThere are codepassword code functions in php and above that allow trivially simple password hashing with bcrypt about time and there is backward compatibility library for versions below that emGenerally em that hashing falls back to wrapping linux system call for lower CPU usage anyway though you may want to ensure it installed on your server See href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat requires php ph2Be careful of logging h2pNote that with pg crypto the passwords are in plaintext all during the transmission from the browser to php to the database This means they can be logged emin plaintext em from queries if you re not careful with your database logs having postgresql slow query log could catch and log the password from login query in progress ph2In Summary h2pUse php bcrypt if you can it ll lessen the time that the password remains unhashed Try to ensure your linux system has bcrypt installed in it codecrypt code so that is performant Upgrade to at least php is highly recommended as php implementation is slightly buggy from php to and inappropriately falls back to the broken codeDES code without warning in php and lower ppIf you want need in postgres hashing installing bcrypt is the way to go as the default installed hashes are old and broken md5 etc ppHere are references for more reading on the topic pulli href http codahale com how to safely store password rel noreferrer http codahale com how to safely store password lili href http www postgresql org docs static pgcrypto html rel noreferrer http www postgresql org docs static pgcrypto html lili href https github com ircmaxell password compat rel noreferrer https github com ircmaxell password compat li ul don use md5 it broken postgres hear use md5 because that what it uses to hash it passwords,0,NULL,NULL 81418,145922,1197345,NULL,NULL,NULL,0,NULL,NULL 81419,169667,264,Yearling Great Question Excavator Yearling Documentation User Famous Question Great Answer Yearling,NULL,NULL,0,NULL,NULL 81420,6888538,873498,NULL,NULL,NULL,0,NULL,NULL 81421,511874,331358,NULL,NULL,NULL,0,NULL,NULL 81422,366212,1563543,Enthusiast Announcer Famous Question Nice Question Critic Yearling Citizen Patrol Good Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 81423,28199,1204602,NULL,NULL,NULL,0,NULL,NULL 81424,742998,336862,Student Census,NULL,NULL,0,NULL,NULL 81425,1211465,232490,Announcer,NULL,NULL,0,NULL,NULL 81426,1502110,1358322,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 81427,17946,393524,NULL,NULL,NULL,0,NULL,NULL 81428,33139,327687,Yearling Famous Question Notable Question Nice Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 81429,242277,976689,NULL,NULL,NULL,0,NULL,NULL 81430,240117,3729,NULL,NULL,NULL,0,NULL,NULL 81431,396803,1196701,Famous Question,NULL,NULL,0,NULL,NULL 81432,239619,779051,Yearling Popular Question Yearling Notable Question Nice Question Citizen Patrol,NULL,NULL,0,NULL,NULL 81433,371801,1271994,NULL,NULL,NULL,0,NULL,NULL 81434,40909,1560432,NULL,NULL,NULL,0,NULL,NULL 81435,163786,758041,NULL,NULL,NULL,0,NULL,NULL 81436,145591,252315,NULL,NULL,NULL,0,NULL,NULL 81437,12733,1312374,NULL,NULL,NULL,0,NULL,NULL 81438,192642,26237,Great Question Favorite Question Favorite Question Great Question Yearling Notable Question Yearling Nice Question Yearling,NULL,NULL,0,NULL,NULL 81439,678511,900420,NULL,NULL,NULL,0,NULL,NULL 81440,44911,642362,NULL,NULL,NULL,0,NULL,NULL 81441,93377,97860,NULL,NULL,NULL,0,NULL,NULL 81442,211804,902223,NULL,NULL,NULL,0,NULL,NULL 81443,124620,227975,Notable Question Famous Question Yearling Guru Yearling Great Question Favorite Question Notable Question,NULL,NULL,0,NULL,NULL 81444,1117816,1137067,NULL,NULL,NULL,0,NULL,NULL 81445,2302627,1504859,NULL,NULL,NULL,0,NULL,NULL 81446,65662,926507,NULL,NULL,NULL,0,NULL,NULL 81447,706391,1368122,Notable Question,NULL,NULL,0,NULL,NULL 81448,12563,938907,NULL,NULL,NULL,0,NULL,NULL 81449,18317,902045,Teacher Supporter,NULL,NULL,0,NULL,NULL 81450,48585,936013,Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 81451,180008,1248970,NULL,NULL,NULL,0,NULL,NULL 81452,1177445,833055,NULL,NULL,NULL,0,NULL,NULL 81453,20076,1122265,Notable Question Caucus Constituent Yearling Caucus Popular Question Famous Question,NULL,NULL,0,NULL,NULL 81454,916563,953899,NULL,NULL,NULL,0,NULL,NULL 81455,2703,703861,NULL,NULL,NULL,0,NULL,NULL 81456,14481,406050,NULL,NULL,NULL,0,NULL,NULL 81457,14467,801128,Notable Question,NULL,NULL,0,NULL,NULL 81458,357562,632535,NULL,NULL,NULL,0,NULL,NULL 81459,7694994,632535,NULL,NULL,NULL,0,NULL,NULL 81460,143333,1109167,Tumbleweed Supporter,NULL,NULL,0,NULL,NULL 81461,5113815,84998,NULL,NULL,NULL,0,NULL,NULL 81462,376703,84998,NULL,NULL,NULL,0,NULL,NULL 81463,244120,1070484,NULL,NULL,NULL,0,NULL,NULL 81464,76137,193584,Yearling Custodian Caucus Constituent Commentator,NULL,NULL,0,NULL,NULL 81465,169997,1299868,NULL,NULL,NULL,0,NULL,NULL 81466,225606,412596,NULL,NULL,NULL,0,NULL,NULL 81467,1759539,1345220,NULL,NULL,NULL,0,NULL,NULL 81468,7916,1053062,NULL,NULL,NULL,0,NULL,NULL 81469,329796,802268,Yearling Nice Answer Good Question Yearling Popular Question Famous Question Famous Question Caucus Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Yearling Good Answer Notable Question Notable Question Notable Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 81470,80744,1090657,Custodian Revival Nice Answer Proofreader Reviewer Popular Question Caucus Constituent Nice Answer Enlightened Yearling Caucus Nice Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer,NULL,NULL,0,NULL,NULL 81471,610896,481148,Editor,NULL,NULL,0,NULL,NULL 81472,413632,495116,Popular Question,NULL,NULL,0,NULL,NULL 81473,50224,529076,Popular Question,NULL,NULL,0,NULL,NULL 81474,183906,996925,Popular Question Famous Question Popular Question Yearling Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81475,88389,1302246,NULL,NULL,NULL,0,NULL,NULL 81476,175713,127859,Popular Question Yearling Famous Question Popular Question Favorite Question Notable Question Notable Question Good Answer Notable Question Popular Question Popular Question Caucus Publicist Popular Question Yearling Popular Question Civic Duty Notable Question Popular Question Caucus Nice Question Popular Question Caucus Notable Question Yearling Popular Question Necromancer Notable Question Notable Question,NULL,NULL,0,NULL,NULL 81477,63557,317290,Good Answer Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81478,164877,1058137,NULL,NULL,NULL,0,NULL,NULL 81479,92621,498175,Notable Question Yearling Caucus Notable Question Notable Question Popular Question Yearling Popular Question Great Answer Yearling Famous Question,NULL,NULL,0,NULL,NULL 81480,2526505,848289,NULL,NULL,NULL,0,NULL,NULL 81481,901575,1065087,NULL,NULL,NULL,0,NULL,NULL 81482,339128,1093400,NULL,NULL,NULL,0,NULL,NULL 81483,159860,1471499,NULL,NULL,NULL,0,NULL,NULL 81484,183764,1314250,NULL,NULL,NULL,0,NULL,NULL 81485,215363,222670,Announcer Tumbleweed Popular Question Documentation User Critic Nice Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 81486,191454,566659,Famous Question,NULL,NULL,0,NULL,NULL 81487,911647,670793,Supporter Student,NULL,NULL,0,NULL,NULL 81488,630025,961310,NULL,NULL,NULL,0,NULL,NULL 81489,58144,1454483,NULL,NULL,NULL,0,NULL,NULL 81490,754882,275457,Popular Question Yearling Guru Nice Answer Enlightened Yearling Good Question Yearling,NULL,NULL,0,NULL,NULL 81491,45978,679784,Yearling Notable Question Nice Answer Enlightened Caucus Notable Question Nice Answer Yearling Nice Answer Nice Question Good Answer Yearling Guru Yearling Enthusiast Famous Question Yearling,NULL,NULL,0,NULL,NULL 81492,39333,559676,Yearling Good Answer Good Answer Announcer Announcer Announcer Nice Answer Announcer Nice Answer Announcer Nice Answer Enlightened Revival Announcer Announcer Necromancer Guru Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Announcer Nice Answer Publicist Nice Answer Enlightened Notable Question Nice Answer shiny Nice Answer Enlightened Great Answer Revival Great Answer Announcer Announcer Nice Answer Enlightened Announcer Announcer Announcer Nice Answer Announcer Nice Answer Enlightened Publicist Nice Answer Enlightened Nice Answer Yearling Nice Answer Announcer Taxonomist Nice Answer Announcer Revival Announcer Announcer Announcer Nice Answer Announcer Publicist Announcer Announcer Announcer Booster Good Answer Announcer Famous Question Publicist Announcer Nice Answer Announcer pandoc Guru Nice Answer Revival Announcer Nice Answer Nice Answer Announcer Nice Answer Nice Answer Good Answer Announcer Announcer Caucus Announcer Revival Custodian Nice Answer Enlightened Announcer Popular Question Necromancer Announcer r-markdown r-markdown Nice Answer Enlightened Announcer Announcer Nice Answer Enlightened Good Answer Announcer Nice Answer Announcer Announcer Nice Question Popular Question Announcer Booster Nice Answer Enlightened Nice Question Announcer Announcer Good Answer Announcer Announcer Revival Yearling Announcer Popular Question Announcer Census Announcer Popular Question Nice Answer Enlightened Nice Answer Notable Question Announcer Announcer Revival Revival Not a Robot Good Answer Good Answer Necromancer Announcer Announcer Nice Answer Nice Answer Booster Announcer Announcer Announcer Announcer Nice Answer Nice Answer Enlightened Nice Answer Enlightened Announcer Good Answer Revival Nice Answer Announcer Booster blogdown Announcer Announcer Good Answer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Announcer Good Answer Nice Answer Enlightened Announcer Good Answer Announcer Announcer Announcer Revival Announcer Announcer Good Answer Nice Answer bookdown Good Answer Announcer Nice Answer Enlightened Announcer Nice Answer Enlightened Announcer Good Question Guru Nice Answer Enlightened Announcer Guru Announcer Announcer Nice Answer Enlightened Nice Answer Enlightened Announcer rstudio Nice Answer Nice Answer Enlightened Enlightened Announcer Announcer Announcer Announcer Announcer Good Answer,NULL,How to systematically change knitr label behavior to add hyperlink anchors latex knitr pdflatex hyperref pI want to change codeknitr code behavior when it creates codefigure code environment in codeLaTeX code to call different codeLaTeX code command than code label code code alabel code where define code alabel code to run code label foo code as well as code hypertarget foo code using the codehyperref code codeLaTeX code package doing this so that can construct URL in web browser to get to specific place in the code pdf code document built with codepdflatex code codehttp my pdf nameddest foo code ppHow can either override code label code or emit an additional code hypertarget same label used by label code in the figures ppThis is in the context of code Rnw code file like the anchor to appear inside the codefigure code environmentcodefor optimal positioning of the cursor when jumping into the code pdf document pp strongUPDATE strong ppIn rethinking this think it best not to generate codehypertarget code anchors but to write an codeR code function that parses the codeLaTeX code codeaux code file to retrieve the page number of the reference code newlabel code lines to generate the needed URL to the codepdf code file In the code Rnw code or code Rmd code file can call this function from within sentence to insert the computed URL pp strongUPDATE strong ppI ve decided after all to go with excellent method which works flawlessly For anyone interested in the codeR code based approach that doesn require the use of codehypertarget code here is the codeLaTeX code code needed to set up for it this handles the case where physical page numbers do not match logical page numbers using logical numbers such as chapter number page within chapter ppre code Creates pag file mapping absolute page numbers to logical page numbers works with function latexRef newwrite pgfile immediate openout pgfile jobname pag newcounter abspage setcounter abspage useackage everypage AddEverypageHook addtocounter abspage immediate write pgfile thepage theabspage AtEndDocument clearpage immediate closeout pgfile code prepHere the codeR code function that does the lookups in the code aux pag code files ppre code Create hyperlink to appropriate physical page in pdf document created by pdflatex given the aux and pag file Absolute and named page numbers are store in the pag file created by hslide stylatexRef lt function label base name path doc blogpath home harrelfe blog blogdown static doc lang markdown latex lang lt match arg lang aux lt paste0 blogpath base aux if file exists aux stop paste no file named aux path lt paste0 path base pdf pag lt paste0 blogpath base pag pagemap lt NULL if file exists pag lt read table pag sep pagemap lt trimws names pagemap lt trimws lt readLines aux lt paste0 newlabel label lt grepl if any stop paste no label label lt lt gsub lt gsub lt scan text sep what character quiet TRUE section lt if section section lt paste0 Section section page lt trimws if length pagemap page lt pagemap page url lt paste0 http fharrell com path page page switch lang markdown paste0 name section url latex paste0 href url name section code pre guess the answer would be different depending on whether you are using Rnw or Markdown documents Either way it will be great if you can provide minimal example To close voters can you just wait for second https yihui name en 2017 12 so bounties,0,NULL,NULL 81493,20296,892785,NULL,NULL,NULL,0,NULL,NULL 81494,17212,1436280,NULL,NULL,NULL,0,NULL,NULL 81495,903080,307016,Notable Question,NULL,NULL,0,NULL,NULL 81496,558216,885922,Necromancer Yearling Vox Populi Nice Answer Electorate Caucus Curious Custodian Custodian Proofreader Strunk & White Reviewer Reviewer Deputy Cleanup Steward Populist Steward Good Answer Steward Caucus Constituent Copy Editor Yearling Documentation User Marshal Caucus Constituent Yearling Taxonomist java,NULL,NULL,0,NULL,NULL 81497,584164,723409,Notable Question,NULL,NULL,0,NULL,NULL 81498,122176,961252,Revival Editor,NULL,NULL,0,NULL,NULL 81499,240089,674066,Yearling Yearling Yearling Revival,NULL,NULL,0,NULL,NULL 81500,439681,1169857,NULL,NULL,NULL,0,NULL,NULL 81501,40620,150841,Yearling Revival Tumbleweed Student Necromancer Critic Caucus Revival Popular Question,NULL,NULL,0,NULL,NULL 81502,323204,1142451,NULL,NULL,NULL,0,NULL,NULL 81503,139912,1107116,NULL,NULL,NULL,0,NULL,NULL 81504,238288,133601,NULL,NULL,NULL,0,NULL,NULL 81505,1086719,1516359,NULL,NULL,NULL,0,NULL,NULL 81506,7835,407068,Favorite Question Notable Question Yearling Nice Question Notable Question Yearling Popular Question Great Question,NULL,NULL,0,NULL,NULL 81507,219834,1115236,Critic Good Answer Nice Answer Yearling Tumbleweed Yearling Editor,NULL,NULL,0,NULL,NULL 81508,103239,1162747,Popular Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Nice Question Popular Question Famous Question Popular Question Yearling Popular Question Popular Question Notable Question Nice Question Teacher,NULL,NULL,0,NULL,NULL 81509,255523,701584,Good Answer,NULL,NULL,0,NULL,NULL 81510,907926,1036897,NULL,NULL,NULL,0,NULL,NULL 81511,183825,1290342,NULL,NULL,NULL,0,NULL,NULL 81512,6565092,1453067,NULL,NULL,NULL,0,NULL,NULL 81513,620913,1453067,NULL,NULL,NULL,0,NULL,NULL 81514,25915,492751,NULL,NULL,NULL,0,NULL,NULL 81515,1069431,1061387,NULL,NULL,NULL,0,NULL,NULL 81516,465662,484349,NULL,NULL,NULL,0,NULL,NULL 81517,1283780,1132214,NULL,NULL,NULL,0,NULL,NULL 81518,766137,1402870,NULL,NULL,NULL,0,NULL,NULL 81519,155464,775123,NULL,NULL,NULL,0,NULL,NULL 81520,223437,410390,Popular Question,NULL,NULL,0,NULL,NULL 81521,307499,901675,NULL,NULL,NULL,0,NULL,NULL 81522,430290,1239845,Notable Question Informed,NULL,NULL,0,NULL,NULL 81523,12562,3759,Famous Question Nice Question Nice Question Yearling Nice Answer Notable Question Yearling Notable Question Popular Question Yearling Great Question,NULL,NULL,0,NULL,NULL 81524,686738,1460950,Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 81525,147020,1044904,NULL,NULL,NULL,0,NULL,NULL 81526,187912,942376,Supporter Enthusiast,NULL,NULL,0,NULL,NULL 81527,216661,688515,Nice Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81528,144906,954522,Teacher,NULL,NULL,0,NULL,NULL 81529,36616,563375,NULL,NULL,NULL,0,NULL,NULL 81530,67715,434799,Great Answer Good Answer Announcer Nice Answer Enlightened Nice Answer Enlightened Yearling Nice Answer Nice Answer Enlightened Announcer Famous Question Necromancer Announcer Nice Answer Enlightened Good Question Guru Good Answer Announcer Yearling Nice Answer Announcer Nice Answer Good Answer Yearling Announcer Great Answer,NULL,NULL,0,NULL,NULL 81531,75018,120999,Custodian Proofreader Organizer Custodian Reviewer Custodian Yearling Announcer Announcer Popular Question Necromancer Electorate Reviewer Caucus Tenacious Custodian Custodian Enthusiast Census Announcer Announcer Nice Answer Necromancer Announcer Famous Question Popular Question Announcer Yearling Nice Question Caucus Announcer Necromancer Popular Question Booster Necromancer Notable Question Documentation User Nice Answer Announcer Notable Question ansible Booster Necromancer Necromancer Booster Caucus Announcer Popular Question Nice Answer Announcer Announcer Nice Answer Yearling Necromancer Famous Question Necromancer Quorum Famous Question Popular Question,NULL,pPatrick solution is probably the cleanest If you need to dynamically pick up the module as well you can import it like ppre codemodule import foo func getattr module bar func code pre Yes is part of and up both in strict versioning semantics and in release dates it came about six years later It also didn exist for three years after my comment In the branch the module has been around since and are now pretty ancient you ll still find servers hanging around that only support but it probably worth having importlib be the standard advice nowadays pWhile codegnuplot code is powerful it also really irritating when you just want to pipe in bunch of points and get graph ppThankfully someone created href http liris cnrs fr christian wolf software eplot index html eplot easy plot which handles all the nonsense for you ppIt doesn seem to have an option to force terminal graphs patched it like so ppre code eplot orig 2012 10 12 17 07 35 000000000 0700 eplot 2012 10 12 17 09 06 000000000 0700 377 377 print the options com echo getStyleString MiscOptions com com set multiplot if doMultiPlot com com set terminal dumb com com plot Range comString gnuplot persist printAndRun com convert to PDF code prepAn example of use ppre code gt git shortlog awk print eplot gt dev null 3500 tmp eplot20121012 19078 fw3txm 3000 2500 2000 1500 1000 500 10 15 20 25 30 35 40 code pre The latest version http liris cnrs fr christian wolf software eplot index html download was released in 2007 so yes better patch that might actually get released would involve adding another flag and conditionalizing the behavior but haven yet wanted to put in the effort to do that,0,NULL,NULL 81532,155319,1302664,Tumbleweed,NULL,NULL,0,NULL,NULL 81533,569582,785437,NULL,NULL,NULL,0,NULL,NULL 81534,1111525,1213173,NULL,NULL,NULL,0,NULL,NULL 81535,474245,1213173,NULL,NULL,NULL,0,NULL,NULL 81536,641260,1468875,Informed Autobiographer Revival,NULL,NULL,0,NULL,NULL 81537,376053,1261125,NULL,NULL,NULL,0,NULL,NULL 81538,101056,260995,NULL,NULL,NULL,0,NULL,NULL 81539,447719,17526,NULL,NULL,NULL,0,NULL,NULL 81540,164255,1545501,Yearling Caucus Yearling Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 81541,308431,1114369,NULL,NULL,NULL,0,NULL,NULL 81542,48615,509011,Yearling Custodian Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 81543,27579,590399,Informed Revival Yearling,NULL,NULL,0,NULL,NULL 81544,472802,1292768,NULL,NULL,NULL,0,NULL,NULL 81545,97135,510894,Revival,NULL,NULL,0,NULL,NULL 81546,408144,1067849,NULL,NULL,NULL,0,NULL,NULL 81547,13043,1022974,Revival Critic Popular Question Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 81548,48485,1147801,NULL,NULL,NULL,0,NULL,NULL 81549,397538,1215861,NULL,NULL,NULL,0,NULL,NULL 81550,63839,1243520,Editor,NULL,NULL,0,NULL,NULL 81551,598467,563629,NULL,NULL,NULL,0,NULL,NULL 81552,252184,886398,Notable Question Good Question Yearling Famous Question Census Famous Question Nice Question Nice Answer,NULL,NULL,0,NULL,NULL 81553,105446,824621,NULL,NULL,NULL,0,NULL,NULL 81554,368955,155861,Notable Question Nice Answer Enlightened Notable Question Nice Answer Popular Question Nice Answer Nice Answer Nice Answer Popular Question Notable Question Custodian Good Answer Investor Famous Question Great Question Popular Question Good Answer Nice Answer Nice Answer Yearling Popular Question Great Question Famous Question Popular Question Famous Question Good Answer Good Answer Great Answer Good Question Necromancer Popular Question Famous Question Notable Question Guru Nice Question Notable Question Notable Question Notable Question Nice Answer Revival Guru Popular Question Popular Question Necromancer Good Answer Good Answer Popular Question Good Answer Good Answer Yearling javascript Nice Answer Enlightened Good Answer Good Answer Popular Question Notable Question Famous Question Notable Question Good Answer Notable Question Notable Question Nice Answer Favorite Question Nice Answer Nice Question Notable Question Popular Question Nice Question Popular Question Yearling Great Answer Popular Question Famous Question Nice Question Caucus Caucus Caucus Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Notable Question Socratic Nice Answer Popular Question Custodian Notable Question Nice Answer,NULL,NULL,0,NULL,NULL 81555,64263,703173,NULL,NULL,NULL,0,NULL,NULL 81556,1126,785539,Custodian Custodian Informed Autobiographer Disciplined,NULL,NULL,0,NULL,NULL 81557,1150473,785539,Custodian Custodian Informed Autobiographer Disciplined,NULL,NULL,0,NULL,NULL 81558,348192,642626,Nice Answer Nice Answer Nice Answer Good Answer Good Question Nice Question Yearling Nice Question Notable Question Popular Question Famous Question Nice Answer Nice Answer Enlightened Nice Answer Enlightened Great Answer Popular Question Popular Question Nice Answer Enlightened Good Answer Popular Question Nice Answer Good Question Nice Answer Enlightened Caucus Good Question Famous Question Constituent Good Answer Electorate Announcer Popular Question Census Nice Answer Convention Yearling Good Answer Nice Answer Popular Question Good Answer Great Answer Caucus Nice Answer Enlightened Good Answer Nice Answer Guru iphone Famous Question Documentation User Notable Question Nice Answer Enlightened Nice Answer Enlightened Census Popular Question Notable Question Good Answer Good Question Announcer Favorite Question Yearling Caucus Constituent Great Question Popular Question Nice Answer Enlightened Announcer Notable Question Nice Answer Enlightened Famous Question Good Answer Popular Question,NULL,pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code Please note the difference between enqueue the task and execute the task Because both dispatch sync is called on same thread it is guarantee that both tasks will be enqueued with correct order Then dispatch serial queue will ensure the tasks are executed with correct order pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code see my edit pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code It is very useful to share non thread safe object between multiple threads dispatch queues If you only access the object in serial queue you know you are accessing it safely pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code You can enqueue tasks to serial queue concurrently from multiple threads pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code What the problem pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code do mean serial execution In point of view that all tasks are executed serial regards to other tasks in the same queue Of cause it still can be concurrent regards to other queues It is the whole point of GCD that tasks can be dispatched and executed concurrently pYes Using serial queue ensure the serial execution of tasks The only difference is that codedispatch sync code only return after the block is finished whereas codedispatch async code return after it is added to the queue and may not finished ppfor this code ppre codedispatch async serialQueue printf printf dispatch async serialQueue printf printf code prepIt may print code2413 code or code2143 code or code1234 code but code1 code always before code3 code ppfor this code ppre codedispatch sync serialQueue printf printf dispatch sync serialQueue printf printf code prepit always print code1234 code phrpNote For first code it emwon em print code1324 code Because codeprintf code is dispatched emafter em codeprintf code is executed And task can only be executed emafter em it is dispatched phrpThe execution time of the tasks doesn change anything This code always print code12 code ppre codedispatch async serialQueue sleep 1000 printf dispatch async serialQueue printf code prepWhat may happened is pulliThread dispatch async time consuming task task to serial queue liliThread start executing task liliThread dispatch async another task task to serial queue liliThread task finished start executing task liliThread task finished li ulpand you always see code12 code Yes access mean read write The answer you linked is an optimization that similar to readers writer lock https en wikipedia org wiki Readers–writer lock So if most of the operations are readonly it will improve performance,0,NULL,NULL 81559,346813,1444247,NULL,NULL,NULL,0,NULL,NULL 81560,518111,922813,NULL,NULL,NULL,0,NULL,NULL 81561,28129,1326602,Critic,NULL,NULL,0,NULL,NULL 81562,206183,1112781,NULL,NULL,NULL,0,NULL,NULL 81563,453124,348875,NULL,NULL,NULL,0,NULL,NULL 81564,5724747,273032,Caucus Yearling Good Question Revival Necromancer Yearling Notable Question Caucus Constituent Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 81565,139507,273032,Caucus Yearling Good Question Revival Necromancer Yearling Notable Question Caucus Constituent Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 81566,128999,660244,Nice Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81567,7169,917735,Yearling,NULL,NULL,0,NULL,NULL 81568,188206,874016,NULL,NULL,NULL,0,NULL,NULL 81569,1278850,434565,Nice Answer Nice Question Notable Question Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 81570,82824,254109,Yearling Organizer Revival Necromancer Revival Notable Question Famous Question Custodian Necromancer Announcer Necromancer Necromancer Nice Answer Caucus Necromancer Explainer Necromancer Nice Answer Yearling Tag Editor Nice Answer Announcer Nice Answer Electorate Necromancer Announcer Announcer Announcer Caucus Revival Announcer Announcer Announcer Documentation User Good Answer Disciplined Yearling Nice Answer Necromancer Caucus Constituent Autobiographer Necromancer c# Custodian Pundit Announcer Good Answer Revival Announcer,NULL,NULL,0,NULL,NULL 81571,328721,1270356,Necromancer Nice Answer Critic Caucus Yearling,NULL,NULL,0,NULL,NULL 81572,4350,1292294,NULL,NULL,NULL,0,NULL,NULL 81573,234836,434134,NULL,NULL,NULL,0,NULL,NULL 81574,50258,626431,Self-Learner Caucus Constituent Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81575,364156,1142998,Popular Question,NULL,NULL,0,NULL,NULL 81576,5043024,856094,NULL,NULL,NULL,0,NULL,NULL 81577,488587,1398484,NULL,NULL,NULL,0,NULL,NULL 81578,146395,293594,matplotlib Custodian Necromancer Yearling Popular Question Revival Popular Question Popular Question Nice Answer Nice Answer Cleanup Good Question Popular Question Popular Question Popular Question Yearling Popular Question Nice Answer Enlightened Popular Question Notable Question Notable Question Nice Answer Enlightened Nice Question Nice Answer Enlightened Notable Question Caucus arrays Popular Question Nice Answer Enlightened Popular Question Nice Answer Enlightened Nice Answer Enlightened Notable Question Nice Question Good Answer Good Answer Notable Question Nice Answer Enlightened Yearling Notable Question Nice Question Nice Answer Enlightened scipy Guru Popular Question python-2.7 Famous Question Nice Question Nice Answer Enlightened Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81579,133787,1363925,NULL,NULL,NULL,0,NULL,NULL 81580,82959,1334263,Nice Question Famous Question Good Question Yearling,NULL,NULL,0,NULL,NULL 81581,31188,1180031,NULL,NULL,NULL,0,NULL,NULL 81582,517691,688724,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 81583,92167,401463,NULL,NULL,NULL,0,NULL,NULL 81584,67408,206802,Editor Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81585,770475,460520,NULL,NULL,NULL,0,NULL,NULL 81586,104180,125952,Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81587,165452,455642,Good Answer Good Question Populist Nice Answer Yearling Nice Answer ruby Famous Question Yearling Necromancer Nice Answer ruby-on-rails-3 Great Answer Revival Yearling,NULL,NULL,0,NULL,NULL 81588,400247,835338,NULL,NULL,NULL,0,NULL,NULL 81589,200988,706576,NULL,NULL,NULL,0,NULL,NULL 81590,285036,606078,NULL,NULL,NULL,0,NULL,NULL 81591,909204,1251021,Popular Question,NULL,NULL,0,NULL,NULL 81592,10573252,195644,Nice Answer Nice Question Tumbleweed Nice Answer Enlightened Yearling Custodian Enthusiast Autobiographer Notable Question Custodian Famous Question Custodian Caucus Good Answer Great Answer Excavator Yearling Custodian Stellar Question Organizer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 81593,769073,195644,Nice Answer Nice Question Tumbleweed Nice Answer Enlightened Yearling Custodian Enthusiast Autobiographer Notable Question Custodian Famous Question Custodian Caucus Good Answer Great Answer Excavator Yearling Custodian Stellar Question Organizer Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 81594,150637,120964,Yearling,NULL,NULL,0,NULL,NULL 81595,365904,296729,NULL,NULL,NULL,0,NULL,NULL 81596,202022,1539270,Notable Question,NULL,NULL,0,NULL,NULL 81597,296228,111146,Nice Answer,NULL,NULL,0,NULL,NULL 81598,183631,331840,NULL,NULL,NULL,0,NULL,NULL 81599,511209,1140873,Yearling Nice Question Famous Question Popular Question Yearling Popular Question Popular Question Good Question Good Answer Yearling Good Answer Good Answer Nice Answer Enlightened Favorite Question,NULL,NULL,0,NULL,NULL 81600,319501,1507981,NULL,NULL,NULL,0,NULL,NULL 81601,18548,132257,Necromancer Nice Answer Good Question Good Question Nice Answer Popular Question Great Question Popular Question Yearling Notable Question Great Question Notable Question Favorite Question Nice Question Nice Answer Nice Question Popular Question Revival Popular Question Popular Question Notable Question Popular Question Nice Question Good Question Yearling Notable Question Socratic Good Question Famous Question Yearling Good Answer Necromancer Stellar Question,NULL,Validation library for Node js javascript validation node js pIs there good validation framework for node js that validates variable for pulliif its type of String Date Number etc lilimax and min length liliemail phone lilietc li ul encourage you to check the contextable js https github com xpepermint contextablejs framework which provides schema based validations and error handling It some sort of ActiveRecord for Node js,0,NULL,NULL 81602,352594,122745,Notable Question,NULL,NULL,0,NULL,NULL 81603,89436,636892,Good Question Notable Question Yearling Popular Question Famous Question Popular Question Popular Question Good Question Famous Question Notable Question Famous Question Great Question Popular Question Notable Question Popular Question Popular Question Famous Question Nice Question Popular Question Popular Question Popular Question Nice Question Nice Question Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Popular Question Popular Question Notable Question Nice Question Nice Question Notable Question Popular Question Famous Question Yearling Famous Question Good Question Great Question Popular Question Favorite Question Great Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 81604,201091,228598,Caucus Constituent Nice Answer Yearling Disciplined Good Answer Nice Answer Enlightened Yearling Popular Question,NULL,pMaybe it overkill but it funny to use RecursiveIterators pp strongUPDATE strong Maybe it was overkill with old versions of PHP but with specially with would totally use this without doubt ppre codefunction recursiveFind array haystack needle iterator new RecursiveArrayIterator haystack recursive new RecursiveIteratorIterator iterator RecursiveIteratorIterator SELF FIRST foreach recursive as key gt value if key needle return value code prep strongUPDATE strong Also as of PHP with generators you can easily iterate over all elements which pass the filter not only the first one ppre codefunction recursiveFind array haystack needle iterator new RecursiveArrayIterator haystack recursive new RecursiveIteratorIterator iterator RecursiveIteratorIterator SELF FIRST foreach recursive as key gt value if key needle yield value Usageforeach recursiveFind haystack needle as value Use value here code pre After PHP use generator for this calling yield instead of return pMaybe it overkill but it funny to use RecursiveIterators pp strongUPDATE strong Maybe it was overkill with old versions of PHP but with specially with would totally use this without doubt ppre codefunction recursiveFind array haystack needle iterator new RecursiveArrayIterator haystack recursive new RecursiveIteratorIterator iterator RecursiveIteratorIterator SELF FIRST foreach recursive as key gt value if key needle return value code prep strongUPDATE strong Also as of PHP with generators you can easily iterate over all elements which pass the filter not only the first one ppre codefunction recursiveFind array haystack needle iterator new RecursiveArrayIterator haystack recursive new RecursiveIteratorIterator iterator RecursiveIteratorIterator SELF FIRST foreach recursive as key gt value if key needle yield value Usageforeach recursiveFind haystack needle as value Use value here code pre élioDeleu have updated the answer,0,NULL,NULL 81605,2764508,609622,NULL,NULL,NULL,0,NULL,NULL 81606,421929,398854,Notable Question Popular Question Famous Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 81607,894536,87021,Informed Autobiographer,NULL,NULL,0,NULL,NULL 81608,1018304,501496,NULL,NULL,NULL,0,NULL,NULL 81609,2205941,1309162,NULL,NULL,NULL,0,NULL,NULL 81610,246742,1363840,NULL,NULL,NULL,0,NULL,NULL 81611,5790690,1363840,NULL,NULL,NULL,0,NULL,NULL 81612,4108,105589,Great Question Famous Question Yearling Announcer Revival Yearling Notable Question Popular Question Yearling Revival Self-Learner Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81613,85432,1241421,NULL,NULL,NULL,0,NULL,NULL 81614,540018,1554067,NULL,NULL,NULL,0,NULL,NULL 81615,1897787,1258845,NULL,NULL,NULL,0,NULL,NULL 81616,1521901,1258845,NULL,NULL,NULL,0,NULL,NULL 81617,135241,1180029,Necromancer Critic Caucus Constituent Commentator Yearling Student Scholar Caucus Yearling Nice Answer Announcer,NULL,NULL,0,NULL,NULL 81618,78111,311358,Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Inquisitive Popular Question Nice Question Notable Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 81619,27530,311358,Yearling Popular Question Popular Question Notable Question Famous Question Notable Question Inquisitive Popular Question Nice Question Notable Question Nice Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 81620,577779,1511202,Teacher,NULL,NULL,0,NULL,NULL 81621,109922,1387299,NULL,NULL,NULL,0,NULL,NULL 81622,99768,181789,NULL,NULL,NULL,0,NULL,NULL 81623,95775,1143194,NULL,NULL,NULL,0,NULL,NULL 81624,122100,1136522,Autobiographer,NULL,NULL,0,NULL,NULL 81625,316496,743455,NULL,NULL,NULL,0,NULL,NULL 81626,9448399,1350296,NULL,NULL,NULL,0,NULL,NULL 81627,110557,1350296,NULL,NULL,NULL,0,NULL,NULL 81628,2062948,1350296,NULL,NULL,NULL,0,NULL,NULL 81629,63734,1163940,Notable Question Notable Question Notable Question Custodian Popular Question Yearling Nice Question Popular Question Notable Question Promoter Benefactor Caucus Popular Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 81630,194197,758325,NULL,NULL,NULL,0,NULL,NULL 81631,15818,603345,NULL,NULL,NULL,0,NULL,NULL 81632,7662,226653,Enthusiast Caucus,NULL,NULL,0,NULL,NULL 81633,251876,972241,Popular Question Curious Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 81634,418626,38851,Necromancer Nice Answer Organizer Explainer Nice Answer Good Answer Yearling Nice Answer Guru Yearling Good Answer python Revival Nice Answer Enlightened Nice Question Yearling,NULL,NULL,0,NULL,NULL 81635,1321157,1004931,Citizen Patrol Commentator Popular Question Critic Revival Yearling,NULL,NULL,0,NULL,NULL 81636,169093,1289183,Supporter,NULL,NULL,0,NULL,NULL 81637,7832589,861614,NULL,NULL,NULL,0,NULL,NULL 81638,153014,328406,Critic Commentator Nice Answer Autobiographer Organizer Necromancer Enthusiast Yearling Informed,NULL,NULL,0,NULL,NULL 81639,964401,1016745,Supporter,NULL,NULL,0,NULL,NULL 81640,7835729,1016745,Supporter,NULL,NULL,0,NULL,NULL 81641,597159,378390,NULL,NULL,NULL,0,NULL,NULL 81642,187467,329346,Editor Custodian Notable Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 81643,390117,372460,NULL,NULL,NULL,0,NULL,NULL 81644,1202271,438034,NULL,NULL,NULL,0,NULL,NULL 81645,640510,1021789,NULL,NULL,NULL,0,NULL,NULL 81646,539010,1143870,NULL,NULL,NULL,0,NULL,NULL 81647,884550,1268445,NULL,NULL,NULL,0,NULL,NULL 81648,134594,592414,Student,NULL,NULL,0,NULL,NULL 81649,157600,1137863,NULL,NULL,NULL,0,NULL,NULL 81650,127112,1137863,NULL,NULL,NULL,0,NULL,NULL 81651,197621,825417,NULL,NULL,NULL,0,NULL,NULL 81652,197163,921500,Teacher,NULL,NULL,0,NULL,NULL 81653,145018,910052,Promoter Nice Question Enthusiast Custodian Yearling Nice Question Necromancer Good Answer Popular Question Yearling Documentation User Good Answer Great Question Necromancer Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81654,161161,672416,Yearling Popular Question Critic Curious Popular Question Nice Question Notable Question Revival Necromancer Popular Question Famous Question Necromancer Yearling Notable Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 81655,209955,127953,NULL,NULL,NULL,0,NULL,NULL 81656,898378,1355993,Student,NULL,NULL,0,NULL,NULL 81657,884598,757617,NULL,NULL,NULL,0,NULL,NULL 81658,749654,913419,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 81659,1539013,913419,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 81660,187951,792344,NULL,NULL,NULL,0,NULL,NULL 81661,160242,791756,Caucus,NULL,NULL,0,NULL,NULL 81662,170619,845762,Yearling Popular Question Popular Question Tumbleweed Critic Popular Question Caucus Nice Question Excavator,NULL,NULL,0,NULL,NULL 81663,1661563,752657,NULL,NULL,NULL,0,NULL,NULL 81664,130497,1270658,NULL,NULL,NULL,0,NULL,NULL 81665,118117,565601,NULL,NULL,NULL,0,NULL,NULL 81666,615617,1215356,Informed Scholar,NULL,NULL,0,NULL,NULL 81667,510760,1144923,Good Answer Supporter Yearling Yearling Yearling Yearling Great Answer,NULL,NULL,0,NULL,NULL 81668,295548,964032,Notable Question,NULL,NULL,0,NULL,NULL 81669,295559,964032,Notable Question,NULL,NULL,0,NULL,NULL 81670,30887,707911,NULL,NULL,NULL,0,NULL,NULL 81671,1842507,289325,Yearling Caucus Famous Question Popular Question Nice Question Popular Question Popular Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 81672,252648,714711,NULL,NULL,NULL,0,NULL,NULL 81673,122182,546243,Popular Question Yearling Nice Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 81674,718159,546243,Popular Question Yearling Nice Question Famous Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 81675,33325,538864,Yearling,NULL,NULL,0,NULL,NULL 81676,1085363,333247,Supporter,NULL,NULL,0,NULL,NULL 81677,249107,573834,NULL,NULL,NULL,0,NULL,NULL 81678,382089,1116015,NULL,NULL,NULL,0,NULL,NULL 81679,9613,582397,Critic,NULL,NULL,0,NULL,NULL 81680,26900,238546,Great Answer Nice Question Famous Question Great Question Nice Question Nice Question Famous Question Yearling Yearling Good Question,NULL,NULL,0,NULL,NULL 81681,486294,430739,NULL,NULL,NULL,0,NULL,NULL 81682,105819,539560,Popular Question,NULL,NULL,0,NULL,NULL 81683,574340,301385,Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 81684,1278587,1487713,Necromancer Necromancer Yearling Nice Answer Critic Autobiographer Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 81685,30800,641235,Autobiographer Notable Question Organizer Famous Question Teacher Popular Question Caucus Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Good Question Yearling Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81686,184724,413094,Yearling Caucus Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81687,1845734,1176500,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81688,147223,439964,NULL,NULL,NULL,0,NULL,NULL 81689,3868,335425,Yearling Yearling Great Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 81690,183261,1204694,NULL,NULL,NULL,0,NULL,NULL 81691,137209,1527673,NULL,NULL,NULL,0,NULL,NULL 81692,51337,860494,NULL,NULL,NULL,0,NULL,NULL 81693,417645,1562432,NULL,NULL,NULL,0,NULL,NULL 81694,892795,1186891,NULL,NULL,NULL,0,NULL,NULL 81695,61751,887399,NULL,NULL,NULL,0,NULL,NULL 81696,375802,1543434,Yearling Popular Question,NULL,NULL,0,NULL,NULL 81697,2058379,1543434,Yearling Popular Question,NULL,NULL,0,NULL,NULL 81698,117407,1355726,Yearling Nice Answer Good Question Famous Question Necromancer Announcer Documentation User Yearling Popular Question Nice Question Necromancer,NULL,NULL,0,NULL,NULL 81699,847029,185422,Popular Question Notable Question Nice Question Notable Question Nice Question Popular Question Yearling Great Answer Famous Question Famous Question Popular Question Notable Question Notable Question Good Question Yearling Yearling,NULL,NULL,0,NULL,NULL 81700,1220620,1462614,NULL,NULL,NULL,0,NULL,NULL 81701,413708,527510,NULL,NULL,NULL,0,NULL,NULL 81702,126292,483057,Notable Question Curious Notable Question Nice Question,NULL,NULL,0,NULL,NULL 81703,702621,644173,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 81704,2814174,791703,NULL,NULL,NULL,0,NULL,NULL 81705,73360,487326,NULL,NULL,NULL,0,NULL,NULL 81706,137199,282088,Yearling Revival Nice Answer Revival Yearling Revival Nice Answer Enlightened Enthusiast Caucus,NULL,NULL,0,NULL,NULL 81707,1284929,1526532,NULL,NULL,NULL,0,NULL,NULL 81708,16161,1128904,Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81709,196436,689586,Nice Answer,NULL,NULL,0,NULL,NULL 81710,176602,684765,NULL,NULL,NULL,0,NULL,NULL 81711,7826163,382999,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81712,363664,872269,NULL,NULL,NULL,0,NULL,NULL 81713,568303,1082599,NULL,NULL,NULL,0,NULL,NULL 81714,927480,1046497,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81715,65115,1293675,NULL,NULL,NULL,0,NULL,NULL 81716,155504,792296,NULL,NULL,NULL,0,NULL,NULL 81717,9114368,260616,Popular Question,NULL,NULL,0,NULL,NULL 81718,341109,260616,Popular Question,NULL,NULL,0,NULL,NULL 81719,3624282,260616,Popular Question,NULL,NULL,0,NULL,NULL 81720,98811,326670,NULL,NULL,NULL,0,NULL,NULL 81721,173970,1385809,Notable Question,NULL,NULL,0,NULL,NULL 81722,203381,1314342,NULL,NULL,NULL,0,NULL,NULL 81723,112571,1208057,NULL,NULL,NULL,0,NULL,NULL 81724,755771,918107,Nice Question,NULL,NULL,0,NULL,NULL 81725,254956,212245,Notable Question ruby-on-rails Nice Answer Yearling Good Answer Revival Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 81726,8141017,1260858,NULL,NULL,NULL,0,NULL,NULL 81727,865016,715081,Yearling,NULL,NULL,0,NULL,NULL 81728,533245,1059482,NULL,NULL,NULL,0,NULL,NULL 81729,38973,57318,Nice Answer Enlightened Yearling Famous Question Curious Nice Answer Good Answer Nice Answer Notable Question Nice Question Nice Answer Enlightened Yearling Popular Question Announcer Good Answer Yearling Nice Question Pundit Popular Question,NULL,pIt looks like your best bet is to read the body using the codeBody code interface that Requests implement pp href https fetch spec whatwg org body rel noreferrer https fetch spec whatwg org body ppThis can only be done asynchronously since the underlying consume body operation always reads asynchronously and returns promise Something like this should work ppre codeconst request new Request old method GET const bodyP request headers get Content Type request blob Promise resolve undefined const newRequestP bodyP then body gt new Request new method request method headers request headers body body referrer request referrer referrerPolicy request referrerPolicy mode request mode credentials request credentials cache request cache redirect request redirect integrity request integrity code prepAfter doing that codenewRequestP code will be promise that resolves to the request you want Luckily fetch is asynchronous anyway so your wrapper shouldn be significantly hampered by this pp Note Reading the body using code blob code off of request that does not have body seems to return zero length Blob object but it incorrect to specify any body even zero length one on GET or HEAD request believe that checking if the original request had codeContent Type code set is an accurate proxy for whether it has body which is what we really need to determine Looks like this doesn currently work in the github fetch polyfill which doesn appropriately set the Content Type header but this works great in Chrome Thanks,0,NULL,NULL 81730,636685,1280256,NULL,NULL,NULL,0,NULL,NULL 81731,234573,844759,python Nice Answer Yearling Nice Answer Good Answer Good Answer Good Answer Nice Answer Enlightened Nice Answer Nice Answer Necromancer Yearling Nice Answer Necromancer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81732,600272,389650,NULL,NULL,NULL,0,NULL,NULL 81733,234570,959255,NULL,NULL,NULL,0,NULL,NULL 81734,59556,233633,Notable Question Famous Question Yearling Nice Question Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 81735,181353,680820,Commentator Critic Famous Question Caucus,NULL,NULL,0,NULL,NULL 81736,122549,711285,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81737,174994,953594,NULL,NULL,NULL,0,NULL,NULL 81738,81024,523846,Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 81739,13108,1179954,NULL,NULL,NULL,0,NULL,NULL 81740,1887035,1089063,Good Question Notable Question Notable Question Yearling Popular Question Notable Question Popular Question Popular Question Necromancer Nice Question Notable Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81741,615706,717357,Guru Nice Answer Enlightened Guru Nice Answer Yearling Nice Answer Enlightened Popular Question Nice Answer Guru Nice Answer Enlightened Nice Answer Enlightened Popular Question Good Answer Guru Good Answer Notable Question Good Answer Popular Question Nice Question Yearling Announcer Caucus Nice Answer Good Answer Great Answer Nice Answer Enlightened Good Answer Guru Great Answer Yearling Good Answer Notable Question Good Answer Nice Question Good Answer,NULL,NULL,0,NULL,NULL 81742,200282,1361049,NULL,NULL,NULL,0,NULL,NULL 81743,307239,1203985,NULL,NULL,NULL,0,NULL,NULL 81744,993143,1203985,NULL,NULL,NULL,0,NULL,NULL 81745,403088,1099112,Popular Question,NULL,NULL,0,NULL,NULL 81746,792760,1099112,Popular Question,NULL,NULL,0,NULL,NULL 81747,1474597,968153,Popular Question Popular Question Yearling Nice Question Caucus Popular Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 81748,1200233,887234,NULL,NULL,NULL,0,NULL,NULL 81749,262481,587138,NULL,NULL,NULL,0,NULL,NULL 81750,167536,1012260,Tumbleweed,NULL,NULL,0,NULL,NULL 81751,180644,900964,Teacher Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81752,373045,249750,Scholar Necromancer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 81753,329441,232336,NULL,NULL,NULL,0,NULL,NULL 81754,7610,12349,Nice Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Nice Answer Great Answer Nice Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Nice Answer Nice Answer Good Answer Nice Answer Good Answer Nice Answer Guru Good Answer Nice Answer Good Answer Good Answer Good Answer Populist sql Yearling Good Answer Good Answer Good Answer Guru Guru Popular Question Yearling,NULL,pre coderequire csv csv text File read csv CSV parse csv text headers gt true csv each do row Moulding create row to hash end code pre That is definitely true Also you are parsing extremely large files in Ruby,0,NULL,NULL 81755,730170,3389,Favorite Question Yearling Great Question Famous Question Nice Answer Notable Question Popular Question Popular Question Notable Question Necromancer Popular Question Yearling Nice Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 81756,244742,326678,NULL,NULL,NULL,0,NULL,NULL 81757,103413,43118,Nice Answer Famous Question Popular Question Popular Question Necromancer Notable Question Notable Question Nice Question Nice Question Notable Question Nice Question Popular Question Famous Question Notable Question Notable Question Popular Question Nice Question Nice Question Yearling Popular Question Nice Question Good Question Popular Question Notable Question Notable Question Notable Question Great Question Nice Answer Notable Question Good Question Notable Question Famous Question Nice Answer Yearling Popular Question Popular Question Notable Question Nice Question Notable Question Notable Question Nice Question Good Question,NULL,NULL,0,NULL,NULL 81758,144703,1328212,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 81759,9876649,1528382,Critic,NULL,NULL,0,NULL,NULL 81760,8524181,1528382,Critic,NULL,NULL,0,NULL,NULL 81761,16141,51,Famous Question Necromancer Booster Nice Answer Notable Question Nice Question Nice Question Notable Question Nice Question Notable Question Yearling Nice Question Notable Question asp.net-mvc Caucus Announcer Constituent Guru Announcer Revival Census Nice Question Necromancer Good Answer Revival Popular Question Famous Question Popular Question Nice Answer Enlightened Famous Question Yearling Good Answer Documentation User Good Question Notable Question Famous Question Census Good Question Popular Question Good Answer Famous Question Nice Answer Famous Question Notable Question Strunk & White Yearling Announcer Nice Question Famous Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 81762,563154,595980,Popular Question,NULL,NULL,0,NULL,NULL 81763,1503823,937367,Self-Learner Yearling Civic Duty Nice Answer Enlightened Yearling Caucus Yearling,NULL,NULL,0,NULL,NULL 81764,319368,469687,Nice Answer,NULL,NULL,0,NULL,NULL 81765,1355889,1293204,NULL,NULL,NULL,0,NULL,NULL 81766,237508,121182,Notable Question,NULL,NULL,0,NULL,NULL 81767,261502,915976,NULL,NULL,NULL,0,NULL,NULL 81768,178858,607994,NULL,NULL,NULL,0,NULL,NULL 81769,150219,414361,NULL,NULL,NULL,0,NULL,NULL 81770,184308,1015816,NULL,NULL,NULL,0,NULL,NULL 81771,116515,950965,NULL,NULL,NULL,0,NULL,NULL 81772,83615,7290,Necromancer Nice Answer Great Question Good Question Notable Question Necromancer Notable Question Nice Answer Yearling Custodian Nice Question Notable Question Notable Question Popular Question Yearling Popular Question Famous Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 81773,539430,666350,NULL,NULL,NULL,0,NULL,NULL 81774,95232,667096,NULL,NULL,NULL,0,NULL,NULL 81775,396577,1350595,NULL,NULL,NULL,0,NULL,NULL 81776,1507971,1115905,NULL,NULL,NULL,0,NULL,NULL 81777,260301,548151,NULL,NULL,NULL,0,NULL,NULL 81778,3016550,814943,Curious Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81779,83821,1480884,NULL,NULL,NULL,0,NULL,NULL 81780,163119,1361323,Caucus Popular Question Caucus Civic Duty Informed Autobiographer Constituent Documentation User Custodian Yearling Census Notable Question Caucus Constituent Custodian Citizen Patrol Revival,NULL,NULL,0,NULL,NULL 81781,312223,466179,Peer Pressure,NULL,NULL,0,NULL,NULL 81782,38689,172322,Good Answer Great Answer Popular Question Necromancer Good Answer Nice Answer Good Answer Great Question Nice Answer Enlightened Notable Question Yearling Caucus Famous Question Good Question Good Answer Guru Guru Custodian Announcer Nice Answer Nice Answer Enlightened analytics Nice Answer Enlightened Great Answer Nice Answer Yearling Good Answer Famous Question Favorite Question Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 81783,616823,1166263,Informed,NULL,NULL,0,NULL,NULL 81784,37617,68210,Good Answer Great Answer Yearling Necromancer Nice Answer Good Question Popular Question Great Question Notable Question Notable Question Notable Question Good Answer Caucus Nice Answer Notable Question Good Answer Yearling Popular Question Necromancer Popular Question Good Answer Announcer Caucus Necromancer Famous Question Documentation User Popular Question Nice Answer Yearling Famous Question Popular Question Good Answer Notable Question Great Answer Notable Question,NULL,NULL,0,NULL,NULL 81785,1210942,1424709,NULL,NULL,NULL,0,NULL,NULL 81786,66909,40916,Popular Question Necromancer Nice Answer Nice Question Notable Question Nice Answer Enlightened Populist Yearling Good Answer Nice Question Good Question Nice Answer Nice Question Nice Answer Good Answer Popular Question Notable Question Yearling Necromancer Good Answer Famous Question Good Answer Great Answer Popular Question Good Answer Yearling,NULL,NULL,1,NULL,How to compare two strings in dot separated version format in Bash linux bash versioning pIs there any way to compare such strings on bash code2 code and code2 code and code2 code pre codefunction version echo awk printf 03d 03d 03d code prepUsed as such ppre codeif version VAR ge version then echo Version is up to date fi code prep from href https apple stackexchange com 123408 11374 https apple stackexchange com 123408 11374 81787,202557,1063255,NULL,NULL,NULL,0,NULL,NULL 81788,602931,1468388,Announcer Popular Question Critic Yearling Necromancer Popular Question Yearling Necromancer Popular Question Notable Question Nice Answer Announcer Popular Question Civic Duty Nice Question Yearling Excavator Self-Learner Famous Question Yearling Good Question Popular Question Popular Question Yearling Announcer,NULL,NULL,1,NULL,Not possible to set content type to application json using urllib2 python json post urllib2 pThis little baby ppre codeimport urllib2import simplejson as jsonopener urllib2 build opener opener addheaders append Content Type application json response opener open http localhost 8000 json dumps code prepProduces the following request as seen with ngrep ppre codesudo ngrep lo POST localhost 8000 127 51668 gt 127 8000 AP POST HTTP Accept Encoding identity Content Length 10 Host localhost 8000 Content Type application www form urlencoded Connection close User Agent Python urllib code prepI do not want that codeContent Type application www form urlencoded code am explicitely saying that want code Content Type application json code ppWhat going on here pI got hit by the same stuff and came up with this little gem ppre codeimport urllib2import simplejson as jsonclass ChangeTypeProcessor BaseHandler def http request self req req unredirected hdrs Content type application json return reqopener urllib2 build opener self opener add handler ChangeTypeProcessor response opener open http localhost 8000 json dumps code prepYou just add handler for HTTP requests that replaces the header that codeOpenerDirector code previously added 81789,225850,754949,NULL,NULL,NULL,0,NULL,NULL 81790,2717442,486519,NULL,NULL,NULL,0,NULL,NULL 81791,451085,1160615,NULL,NULL,NULL,0,NULL,NULL 81792,39046,450345,NULL,NULL,NULL,0,NULL,NULL 81793,1192931,364941,Revival Nice Answer Popular Question Self-Learner Nice Question Popular Question Citizen Patrol Custodian Informed Custodian Organizer Notable Question Nice Answer Good Question Yearling Popular Question Famous Question Custodian Popular Question Popular Question Nice Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Nice Question Popular Question Popular Question Good Question Notable Question Favorite Question Yearling,NULL,NULL,0,NULL,NULL 81794,378508,226651,NULL,NULL,NULL,0,NULL,NULL 81795,433832,352955,NULL,NULL,NULL,0,NULL,NULL 81796,105904,1154919,Necromancer Editor Nice Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 81797,656940,325661,Notable Question Notable Question Famous Question Notable Question Yearling Notable Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Popular Question Famous Question Famous Question Nice Question Notable Question Popular Question Notable Question Popular Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Famous Question Notable Question Famous Question Notable Question Notable Question Popular Question Yearling Nice Question Popular Question Popular Question Notable Question Good Question Famous Question,NULL,NULL,0,NULL,NULL 81798,24298,1364418,NULL,NULL,NULL,0,NULL,NULL 81799,293114,1539670,NULL,NULL,NULL,0,NULL,NULL 81800,295921,1333325,Yearling Nice Question Nice Question Popular Question Famous Question Famous Question Yearling Necromancer Good Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 81801,1043375,1113455,NULL,NULL,NULL,0,NULL,NULL 81802,223027,764631,NULL,NULL,NULL,0,NULL,NULL 81803,729067,1543746,NULL,NULL,NULL,0,NULL,NULL 81804,106238,398080,NULL,NULL,NULL,0,NULL,NULL 81805,696951,718551,NULL,NULL,NULL,0,NULL,NULL 81806,2192763,600743,Critic Informed Yearling Notable Question Census Necromancer Documentation User Yearling Necromancer Census,NULL,NULL,0,NULL,NULL 81807,626786,600743,Critic Informed Yearling Notable Question Census Necromancer Documentation User Yearling Necromancer Census,NULL,NULL,0,NULL,NULL 81808,77440,188774,NULL,NULL,NULL,0,NULL,NULL 81809,230600,2177,Popular Question Nice Answer Enlightened Nice Answer Yearling Popular Question Great Answer Great Question Yearling Census Nice Question Popular Question Popular Question Yearling Announcer,NULL,NULL,0,NULL,NULL 81810,107937,544641,Popular Question Necromancer Curious Caucus Necromancer Yearling Self-Learner Popular Question Civic Duty Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 81811,68577,422126,Popular Question Good Question,NULL,NULL,0,NULL,NULL 81812,81674,351029,NULL,NULL,NULL,0,NULL,NULL 81813,343270,1561972,NULL,NULL,NULL,0,NULL,NULL 81814,2413094,814405,Popular Question,NULL,NULL,0,NULL,NULL 81815,62795,1394878,NULL,NULL,NULL,0,NULL,NULL 81816,418036,1259562,NULL,NULL,NULL,0,NULL,NULL 81817,1141012,1178870,Announcer Caucus Caucus Yearling Census Caucus Commentator,NULL,NULL,0,NULL,NULL 81818,253126,1368536,Popular Question,NULL,NULL,0,NULL,NULL 81819,304074,835498,NULL,NULL,NULL,0,NULL,NULL 81820,1497851,1562897,NULL,NULL,NULL,0,NULL,NULL 81821,635347,1269763,Popular Question Student Scholar Supporter,NULL,NULL,0,NULL,NULL 81822,186111,1537756,NULL,NULL,NULL,0,NULL,NULL 81823,349818,1437346,Notable Question Nice Question Popular Question Yearling Popular Question Nice Question Popular Question Popular Question Popular Question Nice Answer Nice Question Popular Question Notable Question Yearling Popular Question Necromancer Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Revival Notable Question Popular Question Popular Question Socratic Notable Question Yearling Famous Question scala Popular Question Notable Question Popular Question Notable Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 81824,415930,1474088,NULL,NULL,NULL,0,NULL,NULL 81825,164512,1129220,Popular Question Yearling,NULL,NULL,0,NULL,NULL 81826,1014247,544498,NULL,NULL,NULL,0,NULL,NULL 81827,375686,544498,NULL,NULL,NULL,0,NULL,NULL 81828,28074,1134879,Popular Question Necromancer,NULL,NULL,0,NULL,NULL 81829,1506155,720852,Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 81830,354504,677836,Custodian Popular Question,NULL,NULL,0,NULL,NULL 81831,388307,1078469,NULL,NULL,NULL,0,NULL,NULL 81832,45046,1233280,NULL,NULL,NULL,0,NULL,NULL 81833,34401,547882,NULL,NULL,NULL,0,NULL,NULL 81834,17268,1328033,NULL,NULL,NULL,0,NULL,NULL 81835,155698,720448,Nice Answer Yearling Yearling Notable Question Good Answer Guru Yearling Supporter Scholar,NULL,NULL,0,NULL,NULL 81836,280609,610094,Popular Question Yearling Nice Question Notable Question Popular Question Famous Question Popular Question Popular Question Civic Duty Notable Question Popular Question Popular Question Notable Question Yearling Notable Question Caucus Constituent Famous Question Yearling Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 81837,252009,1406935,NULL,NULL,NULL,0,NULL,NULL 81838,3816097,1275165,Nice Question Yearling Nice Answer Enlightened Good Answer Good Question Favorite Question Popular Question Popular Question Notable Question Nice Question Caucus Popular Question Popular Question Constituent Popular Question Famous Question Nice Question Yearling Good Question Caucus Electorate Cleanup Yearling Caucus Constituent Popular Question Enlightened Guru Nice Answer,NULL,NULL,0,NULL,NULL 81839,187859,1275165,Nice Question Yearling Nice Answer Enlightened Good Answer Good Question Favorite Question Popular Question Popular Question Notable Question Nice Question Caucus Popular Question Popular Question Constituent Popular Question Famous Question Nice Question Yearling Good Question Caucus Electorate Cleanup Yearling Caucus Constituent Popular Question Enlightened Guru Nice Answer,NULL,NULL,0,NULL,NULL 81840,34680,1239163,NULL,NULL,NULL,0,NULL,NULL 81841,235772,1191994,Notable Question Popular Question Curious Informed,NULL,NULL,0,NULL,NULL 81842,61958,716481,Vox Populi Enthusiast Critic Yearling Yearling Custodian Custodian Custodian Census Fanatic Yearling Caucus Constituent Civic Duty Documentation User Nice Answer Enlightened Yearling Good Answer Revival,NULL,NULL,0,NULL,NULL 81843,282145,705266,NULL,NULL,NULL,0,NULL,NULL 81844,137168,620973,NULL,NULL,NULL,0,NULL,NULL 81845,231658,849113,NULL,NULL,NULL,0,NULL,NULL 81846,116988,921957,NULL,NULL,NULL,0,NULL,NULL 81847,52554,674226,Popular Question,NULL,NULL,0,NULL,NULL 81848,79166,1246477,NULL,NULL,NULL,0,NULL,NULL 81849,21780,474571,NULL,NULL,NULL,0,NULL,NULL 81850,132584,1010157,NULL,NULL,NULL,0,NULL,NULL 81851,41928,821624,Announcer Notable Question Notable Question Popular Question Self-Learner Yearling Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 81852,5686357,821624,Announcer Notable Question Notable Question Popular Question Self-Learner Yearling Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 81853,4618640,821624,Announcer Notable Question Notable Question Popular Question Self-Learner Yearling Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 81854,6337725,821624,Announcer Notable Question Notable Question Popular Question Self-Learner Yearling Notable Question Nice Question Nice Question Famous Question Popular Question Notable Question Yearling Popular Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 81855,4989,413760,NULL,NULL,NULL,0,NULL,NULL 81856,273886,649723,Famous Question,NULL,NULL,0,NULL,NULL 81857,2289651,1129444,NULL,NULL,NULL,0,NULL,NULL 81858,967834,1334202,Popular Question Yearling Tumbleweed Promoter Nice Question Notable Question Popular Question Self-Learner Notable Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 81859,4169,1202827,Revival Popular Question Yearling Popular Question Popular Question Self-Learner Popular Question Notable Question Yearling Notable Question Nice Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81860,115890,1083495,NULL,NULL,NULL,0,NULL,NULL 81861,162756,337262,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81862,2215775,337262,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81863,201226,689849,NULL,NULL,NULL,0,NULL,NULL 81864,155438,399846,Yearling Revival Favorite Question Great Question Yearling,NULL,NULL,0,NULL,NULL 81865,736515,866625,NULL,NULL,NULL,0,NULL,NULL 81866,165361,1093890,Nice Answer Enlightened Yearling Autobiographer Good Answer Yearling Good Answer Good Answer Necromancer Guru,NULL,NULL,0,NULL,NULL 81867,22357,1343078,Informed,NULL,NULL,0,NULL,NULL 81868,108477,1285060,Student,NULL,NULL,0,NULL,NULL 81869,96919,10356,Yearling,NULL,NULL,0,NULL,NULL 81870,483203,850087,NULL,NULL,NULL,0,NULL,NULL 81871,25922,1546765,Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 81872,431833,55985,Yearling,NULL,NULL,0,NULL,NULL 81873,288396,419665,Teacher Census,NULL,NULL,0,NULL,NULL 81874,652662,436425,Necromancer,NULL,NULL,0,NULL,NULL 81875,2480218,1252933,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 81876,9385377,1252933,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 81877,781878,1252933,Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 81878,4500,364165,NULL,NULL,NULL,0,NULL,NULL 81879,89928,69087,Notable Question,NULL,NULL,0,NULL,NULL 81880,873742,723934,Yearling Critic Commentator Good Answer Yearling Nice Answer Enlightened Yearling Necromancer Yearling intellij-idea Good Answer,NULL,NULL,0,NULL,NULL 81881,68397,753817,Yearling Nice Answer Nice Answer Enlightened Documentation User Announcer Good Answer Yearling,NULL,NULL,0,NULL,NULL 81882,76030,474574,Yearling Yearling,NULL,NULL,0,NULL,NULL 81883,19250,157481,Nice Answer,NULL,NULL,0,NULL,NULL 81884,1513528,1114989,NULL,NULL,NULL,0,NULL,NULL 81885,173536,772049,NULL,NULL,NULL,0,NULL,NULL 81886,625302,1400386,Nice Answer,NULL,NULL,0,NULL,NULL 81887,93960,641646,NULL,NULL,NULL,0,NULL,NULL 81888,431091,503806,NULL,NULL,NULL,0,NULL,NULL 81889,53562,957279,NULL,NULL,NULL,0,NULL,NULL 81890,1509927,1238210,Student Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81891,9238960,173191,Informed Yearling Great Answer Yearling Yearling,NULL,MVVM dependency injection and too many constructor parameters ios mvvm dependency injection pI have been doing iOS development using MVVM and dependency injection for couple of months and am really happy with the results The code is so much clear and easier to test But have been stragling with problem which haven found solution that felt really confortable with ppIn order to understand the problem want to give you little bit of context The last app that have been working was architectured in the following way layers pulli strongModel strong lili strongView models strong lili strongView View Controllers strong lili strongServices strong Classes that know how to deal with external services like Twitter Facebook etc lili strongRepositories strong repository is class that knows how to interact with resource of the application REST API Lets say that we have blog application we could have the users resources and the posts resources Each of thoses resources have several method There is to relation between the resources and the repositories li ulpWhen the applications starts we have Bootstrap class that initializes the app and creates the main view model We have restriction that only view models can create other view models For example in the case of having view that contains list of elements in iOS it will be represented with UITableView and the detail view for each of thoses elements that is presented by pushing it to the navigation stack after tapping on the element in the list What we do is make the view model that is attached to the table view controller create the detail view model The table view controller listens to the table view model and then presents the detail view model by creating the detail view controller and passing it its view model So the view controller does not know how to create view model it only knows how to create view controller for that view model ppIs the responsability of the parent view model to the pass all the dependecies to the child view model ppThe problem comes when view model that is very deep in the view hierachy needs dependencies that its parent controllers does not require For example service to access some external web service Because its parent does not have that dependency it will have to add it to its dependecy list thus adding new parameter to the constructor Imagine how this goes if the grand parent does not have the dependecy either ppWhat do you think is good solution Possible solutions pulli strongSingletons strong Harder to test and they are basically gloabl state lili strongA factory class strong We could set of factory that knows how to create certain types of object For example ServiceFactory and RepositoryFactory The service factory could have method to create services like TwitterService FacebookService GithubService The repository factory could know how to create repository for each of the API resources In the case of having few factories or all the view models could dependent on this factories li ulpFor now we have chosen the factory class solution because we don need to use singletons and we can treat the factory as any other dependecy which makes it relatively easy to test The problem is that it kind of feels like good object and by having factory you don actually know which is the real dependecy that needs the view model unless you look inside the constructor implementation to check which factory methods are being called ve been struggling with the exact same issue have been using MVVM with RAC for few months now and am generally very happy with it But the bloated constructors are big code smell Until now have postponed tackling the issue but sure it going to backfire if don resolve it soon,0,NULL,NULL 81892,218974,173191,Informed Yearling Great Answer Yearling Yearling,NULL,MVVM dependency injection and too many constructor parameters ios mvvm dependency injection pI have been doing iOS development using MVVM and dependency injection for couple of months and am really happy with the results The code is so much clear and easier to test But have been stragling with problem which haven found solution that felt really confortable with ppIn order to understand the problem want to give you little bit of context The last app that have been working was architectured in the following way layers pulli strongModel strong lili strongView models strong lili strongView View Controllers strong lili strongServices strong Classes that know how to deal with external services like Twitter Facebook etc lili strongRepositories strong repository is class that knows how to interact with resource of the application REST API Lets say that we have blog application we could have the users resources and the posts resources Each of thoses resources have several method There is to relation between the resources and the repositories li ulpWhen the applications starts we have Bootstrap class that initializes the app and creates the main view model We have restriction that only view models can create other view models For example in the case of having view that contains list of elements in iOS it will be represented with UITableView and the detail view for each of thoses elements that is presented by pushing it to the navigation stack after tapping on the element in the list What we do is make the view model that is attached to the table view controller create the detail view model The table view controller listens to the table view model and then presents the detail view model by creating the detail view controller and passing it its view model So the view controller does not know how to create view model it only knows how to create view controller for that view model ppIs the responsability of the parent view model to the pass all the dependecies to the child view model ppThe problem comes when view model that is very deep in the view hierachy needs dependencies that its parent controllers does not require For example service to access some external web service Because its parent does not have that dependency it will have to add it to its dependecy list thus adding new parameter to the constructor Imagine how this goes if the grand parent does not have the dependecy either ppWhat do you think is good solution Possible solutions pulli strongSingletons strong Harder to test and they are basically gloabl state lili strongA factory class strong We could set of factory that knows how to create certain types of object For example ServiceFactory and RepositoryFactory The service factory could have method to create services like TwitterService FacebookService GithubService The repository factory could know how to create repository for each of the API resources In the case of having few factories or all the view models could dependent on this factories li ulpFor now we have chosen the factory class solution because we don need to use singletons and we can treat the factory as any other dependecy which makes it relatively easy to test The problem is that it kind of feels like good object and by having factory you don actually know which is the real dependecy that needs the view model unless you look inside the constructor implementation to check which factory methods are being called ve been struggling with the exact same issue have been using MVVM with RAC for few months now and am generally very happy with it But the bloated constructors are big code smell Until now have postponed tackling the issue but sure it going to backfire if don resolve it soon,0,NULL,NULL 81893,76758,856142,Yearling Popular Question Necromancer Electorate Popular Question Yearling Inquisitive Informed Caucus Necromancer Popular Question Popular Question Popular Question Yearling Necromancer Custodian Popular Question Census Notable Question Caucus Custodian Custodian Yearling Constituent Citizen Patrol Popular Question Popular Question Necromancer Nice Question Organizer Reviewer Yearling Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 81894,14085,261062,Good Answer Yearling Notable Question Yearling Good Question Yearling Caucus Custodian Custodian Excavator Informed ios,NULL,NULL,0,NULL,NULL 81895,93210,611357,Popular Question Yearling,NULL,NULL,0,NULL,NULL 81896,34371,611357,Popular Question Yearling,NULL,NULL,0,NULL,NULL 81897,200880,279890,Announcer Quorum Yearling,NULL,NULL,0,NULL,NULL 81898,192390,1268974,NULL,NULL,NULL,0,NULL,NULL 81899,1918141,980444,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81900,477610,980444,Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 81901,7955,941093,Yearling Necromancer Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 81902,106614,152938,Nice Answer Nice Answer Notable Question Announcer Announcer Popular Question Announcer Tag Editor Announcer,NULL,NULL,0,NULL,NULL 81903,10291979,554060,Necromancer Yearling Notable Question Yearling c# Popular Question Nice Answer Popular Question Yearling Necromancer Necromancer Famous Question Great Answer Nice Answer,NULL,NULL,0,NULL,NULL 81904,805,97584,NULL,NULL,NULL,0,NULL,NULL 81905,81813,1084807,Good Question Popular Question Yearling Caucus Caucus,NULL,NULL,0,NULL,NULL 81906,358312,687246,NULL,NULL,NULL,0,NULL,NULL 81907,1019796,836345,NULL,NULL,NULL,0,NULL,NULL 81908,1520322,784888,NULL,NULL,NULL,0,NULL,NULL 81909,183172,309338,NULL,NULL,NULL,0,NULL,NULL 81910,119147,1565114,NULL,NULL,NULL,0,NULL,NULL 81911,149204,723512,Popular Question,NULL,NULL,0,NULL,NULL 81912,318350,1211877,NULL,NULL,NULL,0,NULL,NULL 81913,249357,1103875,Popular Question Yearling Nice Question Tumbleweed Popular Question Notable Question Caucus Necromancer Yearling Necromancer Popular Question Caucus Necromancer Necromancer Yearling Peer Pressure Disciplined,NULL,NULL,0,NULL,NULL 81914,654458,989825,Necromancer Yearling Caucus Necromancer Revival,NULL,NULL,0,NULL,NULL 81915,114701,447143,NULL,NULL,NULL,0,NULL,NULL 81916,607225,248698,NULL,NULL,NULL,0,NULL,NULL 81917,1031237,1171836,NULL,NULL,NULL,0,NULL,NULL 81918,446772,248237,Good Question Notable Question Yearling Good Question Popular Question Notable Question Notable Question Notable Question Great Question Notable Question Notable Question Popular Question Famous Question Famous Question Famous Question Nice Question Notable Question Nice Question Popular Question Nice Question Popular Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Favorite Question Favorite Question Great Question Popular Question Notable Question Notable Question Popular Question Notable Question Nice Question Nice Question Popular Question Good Question Popular Question Famous Question Popular Question Famous Question Favorite Question Good Question Notable Question Popular Question Nice Question Good Question Notable Question Great Question Popular Question Popular Question Good Question Notable Question Famous Question Notable Question Famous Question Popular Question Popular Question Nice Question Favorite Question Nice Question Good Question Favorite Question Famous Question Great Question Good Question Famous Question Notable Question Nice Question Nice Question Popular Question Notable Question Nice Question Nice Question Famous Question Famous Question Famous Question Notable Question Nice Question Popular Question Famous Question Famous Question Notable Question Notable Question Notable Question Famous Question Popular Question Great Question Good Question Popular Question Popular Question Favorite Question Notable Question Famous Question Notable Question Nice Question Notable Question Nice Question Popular Question Popular Question Popular Question Notable Question Nice Question Famous Question Popular Question Yearling Notable Question Good Question Notable Question Famous Question Notable Question Famous Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Nice Question Nice Question Popular Question Nice Question Notable Question Good Question Popular Question Famous Question Popular Question Nice Question Notable Question Famous Question Famous Question Nice Question Great Question Nice Answer Popular Question Famous Question Popular Question Famous Question Nice Question Notable Question Nice Question Popular Question Famous Question Notable Question Popular Question Notable Question Favorite Question Famous Question Popular Question Popular Question Famous Question Nice Question Famous Question Popular Question Notable Question Nice Question Popular Question Notable Question Popular Question Nice Question Famous Question Good Question Good Question Nice Question Nice Question Popular Question Famous Question Famous Question Popular Question Good Question Famous Question Notable Question Favorite Question Popular Question Famous Question Notable Question Famous Question Good Question Yearling Favorite Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Famous Question Famous Question Favorite Question Nice Question Popular Question Popular Question Popular Question Popular Question Nice Question Nice Question Famous Question Nice Question Popular Question Notable Question Good Question Popular Question Popular Question Famous Question Nice Question Great Question Famous Question Favorite Question Popular Question Notable Question Famous Question Nice Question Notable Question Great Question Nice Question Famous Question Great Question Nice Question Notable Question Popular Question Favorite Question Popular Question Notable Question Good Question Good Question Nice Question Notable Question Popular Question Famous Question Popular Question Nice Question Nice Question Good Question Nice Question Popular Question Famous Question Nice Question Nice Question Great Question,NULL,NULL,0,NULL,NULL 81919,10535859,274503,Yearling Nice Question Nice Answer Nice Answer Guru Yearling Custodian Announcer Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 81920,446680,1085424,NULL,NULL,NULL,0,NULL,NULL 81921,419512,785215,Yearling Necromancer Nice Answer Popular Question Notable Question Great Answer Custodian Yearling Caucus Favorite Question Good Answer Notable Question Caucus Constituent Yearling Good Answer,NULL,NULL,0,NULL,NULL 81922,132201,1323648,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 81923,240240,867514,Student,NULL,NULL,0,NULL,NULL 81924,29478,757160,NULL,NULL,NULL,0,NULL,NULL 81925,147083,196178,Popular Question,NULL,NULL,0,NULL,NULL 81926,480290,566074,Notable Question,NULL,NULL,0,NULL,NULL 81927,360851,1053727,NULL,NULL,NULL,0,NULL,NULL 81928,102797,69636,Popular Question Nice Question Nice Question Yearling Good Question Good Question Notable Question Good Question Notable Question Popular Question Notable Question Nice Question Notable Question Notable Question Revival Nice Question Popular Question Notable Question Popular Question Favorite Question Nice Answer Enlightened Popular Question Great Question Popular Question Favorite Question Yearling Famous Question Nice Question Popular Question Popular Question Famous Question Nice Question Popular Question Notable Question Famous Question Notable Question Popular Question Nice Question Notable Question Nice Question Nice Answer Revival Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Popular Question Yearling Popular Question Notable Question Notable Question Popular Question Notable Question Famous Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 81929,27294,70562,NULL,NULL,NULL,0,NULL,NULL 81930,266150,1532267,NULL,NULL,NULL,0,NULL,NULL 81931,126206,448017,Excavator Popular Question Yearling Nice Answer Yearling Nice Question Nice Answer Yearling Enlightened Necromancer Notable Question Notable Question Good Answer Nice Answer Nice Answer Popular Question Yearling Yearling,NULL,NULL,0,NULL,NULL 81932,114861,886669,Notable Question Famous Question Nice Question Popular Question Notable Question Famous Question Popular Question Popular Question Famous Question Nice Question Notable Question Popular Question Popular Question Yearling Nice Question Famous Question Famous Question Notable Question Notable Question Notable Question Announcer Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Famous Question Notable Question Popular Question Nice Question Notable Question Popular Question Popular Question Famous Question Famous Question Good Question Popular Question Famous Question Popular Question Yearling Popular Question Famous Question Famous Question Popular Question Popular Question Popular Question Popular Question Favorite Question Popular Question Popular Question Popular Question Notable Question Nice Question Popular Question Famous Question Notable Question Good Question Notable Question Famous Question Popular Question Popular Question Famous Question Notable Question Popular Question Popular Question Yearling Nice Question Famous Question Famous Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 81933,5457768,696158,NULL,NULL,NULL,0,NULL,NULL 81934,449577,551987,NULL,NULL,NULL,0,NULL,NULL 81935,10272865,551987,NULL,NULL,NULL,0,NULL,NULL 81936,43478,1175712,NULL,NULL,NULL,0,NULL,NULL 81937,629926,683352,NULL,NULL,NULL,0,NULL,NULL 81938,1092796,1087255,NULL,NULL,NULL,0,NULL,NULL 81939,291221,1118561,Yearling,NULL,NULL,0,NULL,NULL 81940,1007950,904301,NULL,NULL,NULL,0,NULL,NULL 81941,306340,542335,NULL,NULL,NULL,0,NULL,NULL 81942,38052,169534,Popular Question Announcer Electorate Caucus Nice Answer Notable Question Caucus Popular Question Famous Question Documentation User Yearling Census Publicist Caucus Constituent,NULL,NULL,0,NULL,NULL 81943,171061,385302,Notable Question,NULL,NULL,0,NULL,NULL 81944,682454,429850,Popular Question Nice Question Notable Question Popular Question Notable Question Notable Question Famous Question Nice Question Yearling Notable Question Great Question Famous Question Popular Question Popular Question Notable Question Famous Question Famous Question Notable Question python Popular Question Nice Answer Enlightened Notable Question Notable Question Notable Question Notable Question Yearling Documentation User Good Question Notable Question Popular Question Popular Question Popular Question Nice Question Announcer Notable Question Nice Question Popular Question Popular Question Yearling Nice Answer Famous Question,NULL,NULL,0,NULL,NULL 81945,124464,919061,Investor Nice Answer Popular Question Yearling Notable Question Self-Learner,NULL,NULL,0,NULL,NULL 81946,1969340,1090140,NULL,NULL,NULL,0,NULL,NULL 81947,130885,1090140,NULL,NULL,NULL,0,NULL,NULL 81948,111648,428321,Yearling Notable Question Yearling Caucus Constituent Good Question Good Answer,NULL,NULL,0,NULL,NULL 81949,146964,718463,NULL,NULL,NULL,0,NULL,NULL 81950,174959,1141253,Yearling Self-Learner Notable Question Popular Question Necromancer Notable Question Necromancer Popular Question Announcer Yearling Good Answer Nice Answer Nice Answer Necromancer Nice Answer Nice Answer Good Answer Yearling Popular Question Good Answer Popular Question Notable Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 81951,402374,343274,NULL,NULL,NULL,0,NULL,NULL 81952,1229333,1213058,NULL,NULL,NULL,0,NULL,NULL 81953,16556,1427595,Yearling,NULL,NULL,0,NULL,NULL 81954,35682,477823,NULL,NULL,NULL,0,NULL,NULL 81955,962027,1545485,NULL,NULL,NULL,0,NULL,NULL 81956,48823,1257135,NULL,NULL,NULL,0,NULL,NULL 81957,8177,314860,Editor,NULL,NULL,0,NULL,NULL 81958,20498,714466,NULL,NULL,NULL,0,NULL,NULL 81959,180264,1028838,NULL,NULL,NULL,0,NULL,NULL 81960,420693,1365591,NULL,NULL,NULL,0,NULL,NULL 81961,143039,1179727,NULL,NULL,NULL,0,NULL,NULL 81962,9353,959035,Famous Question Tumbleweed Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 81963,2569207,959035,Famous Question Tumbleweed Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 81964,67100,209648,Yearling,NULL,NULL,0,NULL,NULL 81965,52833,180284,Yearling Great Answer Good Question Famous Question Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 81966,448350,331212,Commentator Promoter Benefactor Popular Question,NULL,NULL,0,NULL,NULL 81967,17004,126026,Custodian,NULL,NULL,0,NULL,NULL 81968,130492,204340,NULL,NULL,NULL,0,NULL,NULL 81969,198558,20371,Nice Question Necromancer Notable Question Yearling Guru Popular Question Notable Question Famous Question Revival Necromancer Enthusiast Talkative Announcer Announcer Announcer Yearling Good Question Documentation User Nice Question Nice Answer Good Answer Cleanup Necromancer Census Nice Answer Enlightened Custodian Nice Answer Caucus Informed Custodian Famous Question Nice Answer Enlightened Tumbleweed Yearling Announcer Good Answer sql Populist Pundit,NULL,NULL,0,NULL,NULL 81970,110187,187590,NULL,NULL,NULL,0,NULL,NULL 81971,856,1287868,NULL,NULL,NULL,0,NULL,NULL 81972,301793,1215341,NULL,NULL,NULL,0,NULL,NULL 81973,877184,1465231,Popular Question,NULL,NULL,0,NULL,NULL 81974,169981,1465231,Popular Question,NULL,NULL,0,NULL,NULL 81975,425469,1113264,NULL,NULL,NULL,0,NULL,NULL 81976,1569097,516860,NULL,NULL,NULL,0,NULL,NULL 81977,451684,269238,Yearling Custodian Yearling Good Question Self-Learner Good Question Yearling Notable Question Famous Question,NULL,NULL,0,NULL,NULL 81978,443961,722375,NULL,NULL,NULL,0,NULL,NULL 81979,1040839,926416,NULL,NULL,NULL,0,NULL,NULL 81980,311578,1230135,Yearling Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 81981,585719,1147580,Teacher Informed Supporter Autobiographer Editor Commentator Critic Organizer Explainer Caucus Yearling,NULL,NULL,0,NULL,NULL 81982,360067,456105,Self-Learner Custodian Custodian Citizen Patrol Nice Answer Popular Question Yearling Inquisitive Popular Question Custodian Yearling Good Answer Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Yearling Popular Question Popular Question Notable Question Popular Question Documentation User Nice Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Yearling Notable Question Notable Question Notable Question Popular Question Good Question Notable Question Yearling Popular Question Notable Question Popular Question Notable Question Famous Question,NULL,spring boot package does not exist error java spring maven spring boot jar pI compiling my project with codemvn clean package code and failed with codepackage does not exist code ppThe detail command pulliGet the jar file codetarget xxxx jar code by running codemvn clean package code in source project liliinstall this jar file by running codemvn install install file Dfile lib xxxx jar DgroupId com company DartifactId source package name Dversion Dpackaging jar code liliadd code to target project which will use some functions in source project lilicompile target project by running codemvn clean package code and it just failed with codepackage does not exist code li ulphere is the source project codepom xml code ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt source package name lt artifactId gt lt version gt lt version gt lt packaging gt jar lt packaging gt lt name gt source package name lt name gt lt description gt xxxx lt description gt lt parent gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot starter parent lt artifactId gt lt version gt RELEASE lt version gt lt relativePath gt lt lookup parent from repository gt lt parent gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt project reporting outputEncoding gt UTF lt project reporting outputEncoding gt lt java version gt lt java version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt plugins gt lt plugin gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot maven plugin lt artifactId gt lt executions gt lt execution gt lt goals gt lt goal gt repackage lt goal gt lt goals gt lt execution gt lt executions gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven surefire plugin lt artifactId gt lt configuration gt lt argLine gt Xmx6144m lt argLine gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code prephere is the target project pom xml ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt target package name lt artifactId gt lt version gt SNAPSHOT lt version gt lt packaging gt war lt packaging gt lt name gt target package name lt name gt lt url gt http maven apache org lt url gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt jdk version gt lt jdk version gt lt smartv common version gt 5s lt smartv common version gt lt spring version gt RELEASE lt spring version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt excludes gt lt Exclude those since they are copied from the profile folder for the build gt lt exclude gt system properties lt exclude gt lt excludes gt lt filtering gt false lt filtering gt lt resource gt lt resources gt lt finalName gt xxxxx lt finalName gt lt Set compiler level gt lt extensions gt lt extension gt lt groupId gt kr motd maven lt groupId gt lt artifactId gt os maven plugin lt artifactId gt lt version gt Final lt version gt lt extension gt lt extensions gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt source gt jdk version lt source gt lt target gt jdk version lt target gt lt encoding gt UTF lt encoding gt lt configuration gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven war plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt http maven apache org plugins maven war plugin examples adding filtering webresources html http stackoverflow com questions 12729513 how to overwrite files in the war file during maven build gt lt webResources gt lt Resources from the activated profile folder gt lt resource gt lt targetPath gt WEB INF classes lt targetPath gt lt includes gt lt include gt system properties lt include gt lt includes gt lt resource gt lt webResources gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code pre did add dep, but it still does not work spring boot package does not exist error java spring maven spring boot jar pI compiling my project with codemvn clean package code and failed with codepackage does not exist code ppThe detail command pulliGet the jar file codetarget xxxx jar code by running codemvn clean package code in source project liliinstall this jar file by running codemvn install install file Dfile lib xxxx jar DgroupId com company DartifactId source package name Dversion Dpackaging jar code liliadd code to target project which will use some functions in source project lilicompile target project by running codemvn clean package code and it just failed with codepackage does not exist code li ulphere is the source project codepom xml code ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt source package name lt artifactId gt lt version gt lt version gt lt packaging gt jar lt packaging gt lt name gt source package name lt name gt lt description gt xxxx lt description gt lt parent gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot starter parent lt artifactId gt lt version gt RELEASE lt version gt lt relativePath gt lt lookup parent from repository gt lt parent gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt project reporting outputEncoding gt UTF lt project reporting outputEncoding gt lt java version gt lt java version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt plugins gt lt plugin gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot maven plugin lt artifactId gt lt executions gt lt execution gt lt goals gt lt goal gt repackage lt goal gt lt goals gt lt execution gt lt executions gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven surefire plugin lt artifactId gt lt configuration gt lt argLine gt Xmx6144m lt argLine gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code prephere is the target project pom xml ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt target package name lt artifactId gt lt version gt SNAPSHOT lt version gt lt packaging gt war lt packaging gt lt name gt target package name lt name gt lt url gt http maven apache org lt url gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt jdk version gt lt jdk version gt lt smartv common version gt 5s lt smartv common version gt lt spring version gt RELEASE lt spring version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt excludes gt lt Exclude those since they are copied from the profile folder for the build gt lt exclude gt system properties lt exclude gt lt excludes gt lt filtering gt false lt filtering gt lt resource gt lt resources gt lt finalName gt xxxxx lt finalName gt lt Set compiler level gt lt extensions gt lt extension gt lt groupId gt kr motd maven lt groupId gt lt artifactId gt os maven plugin lt artifactId gt lt version gt Final lt version gt lt extension gt lt extensions gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt source gt jdk version lt source gt lt target gt jdk version lt target gt lt encoding gt UTF lt encoding gt lt configuration gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven war plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt http maven apache org plugins maven war plugin examples adding filtering webresources html http stackoverflow com questions 12729513 how to overwrite files in the war file during maven build gt lt webResources gt lt Resources from the activated profile folder gt lt resource gt lt targetPath gt WEB INF classes lt targetPath gt lt includes gt lt include gt system properties lt include gt lt includes gt lt resource gt lt webResources gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code pre So think weather the way of package is right spring boot package does not exist error java spring maven spring boot jar pI compiling my project with codemvn clean package code and failed with codepackage does not exist code ppThe detail command pulliGet the jar file codetarget xxxx jar code by running codemvn clean package code in source project liliinstall this jar file by running codemvn install install file Dfile lib xxxx jar DgroupId com company DartifactId source package name Dversion Dpackaging jar code liliadd code to target project which will use some functions in source project lilicompile target project by running codemvn clean package code and it just failed with codepackage does not exist code li ulphere is the source project codepom xml code ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt source package name lt artifactId gt lt version gt lt version gt lt packaging gt jar lt packaging gt lt name gt source package name lt name gt lt description gt xxxx lt description gt lt parent gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot starter parent lt artifactId gt lt version gt RELEASE lt version gt lt relativePath gt lt lookup parent from repository gt lt parent gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt project reporting outputEncoding gt UTF lt project reporting outputEncoding gt lt java version gt lt java version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt plugins gt lt plugin gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot maven plugin lt artifactId gt lt executions gt lt execution gt lt goals gt lt goal gt repackage lt goal gt lt goals gt lt execution gt lt executions gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven surefire plugin lt artifactId gt lt configuration gt lt argLine gt Xmx6144m lt argLine gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code prephere is the target project pom xml ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt target package name lt artifactId gt lt version gt SNAPSHOT lt version gt lt packaging gt war lt packaging gt lt name gt target package name lt name gt lt url gt http maven apache org lt url gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt jdk version gt lt jdk version gt lt smartv common version gt 5s lt smartv common version gt lt spring version gt RELEASE lt spring version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt excludes gt lt Exclude those since they are copied from the profile folder for the build gt lt exclude gt system properties lt exclude gt lt excludes gt lt filtering gt false lt filtering gt lt resource gt lt resources gt lt finalName gt xxxxx lt finalName gt lt Set compiler level gt lt extensions gt lt extension gt lt groupId gt kr motd maven lt groupId gt lt artifactId gt os maven plugin lt artifactId gt lt version gt Final lt version gt lt extension gt lt extensions gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt source gt jdk version lt source gt lt target gt jdk version lt target gt lt encoding gt UTF lt encoding gt lt configuration gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven war plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt http maven apache org plugins maven war plugin examples adding filtering webresources html http stackoverflow com questions 12729513 how to overwrite files in the war file during maven build gt lt webResources gt lt Resources from the activated profile folder gt lt resource gt lt targetPath gt WEB INF classes lt targetPath gt lt includes gt lt include gt system properties lt include gt lt includes gt lt resource gt lt webResources gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code pre it is here but still failed,1,spring boot package does not exist error java spring maven spring boot jar pI compiling my project with codemvn clean package code and failed with codepackage does not exist code ppThe detail command pulliGet the jar file codetarget xxxx jar code by running codemvn clean package code in source project liliinstall this jar file by running codemvn install install file Dfile lib xxxx jar DgroupId com company DartifactId source package name Dversion Dpackaging jar code liliadd code to target project which will use some functions in source project lilicompile target project by running codemvn clean package code and it just failed with codepackage does not exist code li ulphere is the source project codepom xml code ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt source package name lt artifactId gt lt version gt lt version gt lt packaging gt jar lt packaging gt lt name gt source package name lt name gt lt description gt xxxx lt description gt lt parent gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot starter parent lt artifactId gt lt version gt RELEASE lt version gt lt relativePath gt lt lookup parent from repository gt lt parent gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt project reporting outputEncoding gt UTF lt project reporting outputEncoding gt lt java version gt lt java version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt plugins gt lt plugin gt lt groupId gt org springframework boot lt groupId gt lt artifactId gt spring boot maven plugin lt artifactId gt lt executions gt lt execution gt lt goals gt lt goal gt repackage lt goal gt lt goals gt lt execution gt lt executions gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven surefire plugin lt artifactId gt lt configuration gt lt argLine gt Xmx6144m lt argLine gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code prephere is the target project pom xml ppre code lt xml version encoding UTF gt lt project xmlns http maven apache org POM xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http maven apache org POM http maven apache org xsd maven xsd gt lt modelVersion gt lt modelVersion gt lt groupId gt com company lt groupId gt lt artifactId gt target package name lt artifactId gt lt version gt SNAPSHOT lt version gt lt packaging gt war lt packaging gt lt name gt target package name lt name gt lt url gt http maven apache org lt url gt lt properties gt lt project build sourceEncoding gt UTF lt project build sourceEncoding gt lt jdk version gt lt jdk version gt lt smartv common version gt 5s lt smartv common version gt lt spring version gt RELEASE lt spring version gt lt properties gt lt dependencies gt lt dependencies gt lt build gt lt resources gt lt resource gt lt directory gt src main resources lt directory gt lt excludes gt lt Exclude those since they are copied from the profile folder for the build gt lt exclude gt system properties lt exclude gt lt excludes gt lt filtering gt false lt filtering gt lt resource gt lt resources gt lt finalName gt xxxxx lt finalName gt lt Set compiler level gt lt extensions gt lt extension gt lt groupId gt kr motd maven lt groupId gt lt artifactId gt os maven plugin lt artifactId gt lt version gt Final lt version gt lt extension gt lt extensions gt lt plugins gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven compiler plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt source gt jdk version lt source gt lt target gt jdk version lt target gt lt encoding gt UTF lt encoding gt lt configuration gt lt plugin gt lt plugin gt lt groupId gt org apache maven plugins lt groupId gt lt artifactId gt maven war plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt http maven apache org plugins maven war plugin examples adding filtering webresources html http stackoverflow com questions 12729513 how to overwrite files in the war file during maven build gt lt webResources gt lt Resources from the activated profile folder gt lt resource gt lt targetPath gt WEB INF classes lt targetPath gt lt includes gt lt include gt system properties lt include gt lt includes gt lt resource gt lt webResources gt lt configuration gt lt plugin gt lt plugins gt lt build gt lt project gt code pre,NULL 81983,375705,687317,NULL,NULL,NULL,0,NULL,NULL 81984,23076,801176,NULL,NULL,NULL,0,NULL,NULL 81985,486772,340953,NULL,NULL,NULL,0,NULL,NULL 81986,98669,1061357,NULL,NULL,NULL,0,NULL,NULL 81987,262841,558994,NULL,NULL,NULL,0,NULL,NULL 81988,374537,220138,NULL,NULL,NULL,0,NULL,NULL 81989,298991,1261063,Self-Learner Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 81990,366329,1471933,NULL,NULL,NULL,0,NULL,NULL 81991,472076,778003,NULL,NULL,NULL,0,NULL,NULL 81992,1569084,592970,NULL,NULL,NULL,0,NULL,NULL 81993,133712,843928,NULL,NULL,NULL,0,NULL,NULL 81994,195896,780692,NULL,NULL,NULL,0,NULL,NULL 81995,2690729,1100137,Favorite Question Popular Question Notable Question Popular Question Popular Question Autobiographer Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 81996,1101263,1100137,Favorite Question Popular Question Notable Question Popular Question Popular Question Autobiographer Popular Question Notable Question Popular Question Notable Question Famous Question Notable Question,NULL,NULL,0,NULL,NULL 81997,6990815,712487,NULL,NULL,NULL,0,NULL,NULL 81998,847414,712487,NULL,NULL,NULL,0,NULL,NULL 81999,15243,891012,NULL,NULL,NULL,0,NULL,NULL 82000,137843,1314555,NULL,NULL,NULL,0,NULL,NULL 82001,331735,698944,NULL,NULL,NULL,0,NULL,NULL 82002,704413,622461,NULL,NULL,NULL,0,NULL,NULL 82003,41285,1097549,NULL,NULL,NULL,0,NULL,NULL 82004,26784,656917,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 82005,36704,685991,NULL,NULL,NULL,0,NULL,NULL 82006,37247,597260,Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 82007,2119891,597260,Student Scholar Popular Question,NULL,NULL,0,NULL,NULL 82008,775212,1199201,NULL,NULL,NULL,0,NULL,NULL 82009,3112,826909,Yearling,NULL,NULL,0,NULL,NULL 82010,6802,1302086,NULL,NULL,NULL,0,NULL,NULL 82011,445846,449003,NULL,NULL,NULL,0,NULL,NULL 82012,436136,986614,Popular Question,NULL,NULL,0,NULL,NULL 82013,55610,46090,Nice Question Popular Question Yearling Great Answer Great Question Notable Question Nice Question Taxonomist Yearling,NULL,NULL,0,NULL,NULL 82014,119394,619346,NULL,NULL,NULL,0,NULL,NULL 82015,187874,1114419,NULL,NULL,NULL,0,NULL,NULL 82016,517338,1367688,Tumbleweed Commentator Custodian Supporter Peer Pressure Teacher Popular Question Notable Question Curious Self-Learner,NULL,NULL,0,NULL,NULL 82017,517339,1367688,Tumbleweed Commentator Custodian Supporter Peer Pressure Teacher Popular Question Notable Question Curious Self-Learner,NULL,NULL,0,NULL,NULL 82018,85559,597234,Yearling Custodian Yearling Popular Question Popular Question Documentation User Yearling,NULL,NULL,0,NULL,NULL 82019,308409,922705,NULL,NULL,NULL,0,NULL,NULL 82020,140927,558908,Popular Question Promoter Nice Question Good Answer Yearling Notable Question Notable Question Yearling Good Answer Popular Question python,NULL,NULL,0,NULL,NULL 82021,280871,149487,Student Yearling Revival Caucus Popular Question Yearling,NULL,NULL,0,NULL,NULL 82022,248396,821517,Yearling Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Nice Question Famous Question Famous Question Notable Question Notable Question Popular Question Yearling Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82023,170354,692208,NULL,NULL,NULL,0,NULL,NULL 82024,165004,372107,Popular Question Nice Question Yearling Nice Answer Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82025,33677,105981,NULL,NULL,NULL,0,NULL,NULL 82026,194382,793226,NULL,NULL,NULL,0,NULL,NULL 82027,1323123,628870,Popular Question Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82028,321412,726728,NULL,NULL,NULL,0,NULL,NULL 82029,112652,1008042,Self-Learner Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 82030,179686,1375275,NULL,NULL,NULL,0,NULL,NULL 82031,280267,122847,Custodian Notable Question Yearling Caucus Notable Question Yearling Necromancer Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 82032,1989,129638,Notable Question Nice Question Notable Question Nice Question Yearling Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question Popular Question Yearling Famous Question Necromancer Good Question Notable Question Famous Question Popular Question Famous Question Yearling Good Question,NULL,NULL,0,NULL,NULL 82033,691166,1292425,NULL,NULL,NULL,0,NULL,NULL 82034,302984,812140,NULL,NULL,NULL,0,NULL,NULL 82035,2875610,537186,NULL,NULL,NULL,0,NULL,NULL 82036,282823,537186,NULL,NULL,NULL,0,NULL,NULL 82037,690195,1111854,NULL,NULL,NULL,0,NULL,NULL 82038,193904,122324,NULL,NULL,NULL,0,NULL,NULL 82039,455749,1310089,Popular Question,NULL,NULL,0,NULL,NULL 82040,148181,781833,NULL,NULL,NULL,0,NULL,NULL 82041,307839,275151,Caucus,NULL,NULL,0,NULL,NULL 82042,1696485,721752,NULL,NULL,NULL,0,NULL,NULL 82043,195253,1381204,Tumbleweed,NULL,NULL,0,NULL,NULL 82044,45689,219548,NULL,NULL,NULL,0,NULL,NULL 82045,38723,398988,Supporter Revival Popular Question Commentator Critic,NULL,NULL,0,NULL,NULL 82046,432729,7593,Notable Question,NULL,NULL,0,NULL,NULL 82047,29001,302414,Good Answer Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 82048,77358,569730,NULL,NULL,NULL,0,NULL,NULL 82049,268397,730849,NULL,NULL,NULL,0,NULL,NULL 82050,244307,608708,NULL,NULL,NULL,0,NULL,NULL 82051,889191,397646,Self-Learner Yearling Popular Question Revival Caucus Popular Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82052,384690,586083,NULL,NULL,NULL,0,NULL,NULL 82053,166968,804521,Yearling Self-Learner Popular Question Popular Question Unsung Hero Yearling Nice Answer Enlightened Yearling Custodian,NULL,NULL,0,NULL,NULL 82054,285069,1188209,Tumbleweed Student Yearling Commentator,NULL,NULL,0,NULL,NULL 82055,18084,353237,NULL,NULL,NULL,0,NULL,NULL 82056,29161,1230323,NULL,NULL,NULL,0,NULL,NULL 82057,85053,946674,NULL,NULL,NULL,0,NULL,NULL 82058,331979,639501,NULL,NULL,NULL,0,NULL,NULL 82059,8123,492918,Good Answer Necromancer Necromancer Yearling Critic Guru Popular Question Civic Duty Yearling Announcer Custodian Necromancer Explainer Yearling,NULL,How to manage application conf in several environments with play playframework pWith Play can prefix the configuration keys with the framework ID or application mode as follows ppre code Production configuration prod http port 80 prod application log INFO prod application mode prod code prepBut it doesn seem to work with ppIs there any way to make it work here is the SO link http stackoverflow com 35324046 492918 to solution using Play2 Java,0,NULL,NULL 82060,97550,153632,NULL,NULL,NULL,0,NULL,NULL 82061,88819,740523,Yearling Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 82062,658289,947973,Notable Question,NULL,NULL,0,NULL,NULL 82063,308187,913275,Custodian Custodian Citizen Patrol Organizer Yearling Popular Question Tumbleweed Critic Notable Question Notable Question Popular Question Popular Question Good Question Popular Question Nice Question Popular Question Popular Question Notable Question Notable Question Yearling Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82064,116657,1203574,NULL,NULL,NULL,0,NULL,NULL 82065,116803,118799,Yearling Yearling Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 82066,233743,290613,Good Question Famous Question Yearling Good Question Famous Question Popular Question Popular Question Nice Question Famous Question Yearling Famous Question Notable Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82067,33736,100091,Nice Answer Enlightened Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82068,1190180,991505,Informed Census Teacher Student Supporter Popular Question Scholar Notable Question,NULL,NULL,0,NULL,NULL 82069,21399,645693,NULL,NULL,NULL,0,NULL,NULL 82070,895283,1413778,Yearling Tumbleweed Promoter Great Question Popular Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 82071,10010,305945,Famous Question Nice Question Yearling Caucus Nice Answer Popular Question Autobiographer Popular Question,NULL,NULL,0,NULL,NULL 82072,12054,917855,Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82073,1555977,917855,Notable Question Notable Question Notable Question Yearling Notable Question Popular Question Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82074,2505921,355789,Yearling Guru Yearling Yearling,NULL,NULL,0,NULL,NULL 82075,688007,396286,NULL,NULL,NULL,0,NULL,NULL 82076,53173,426209,Necromancer Self-Learner Civic Duty Editor Popular Question Nice Answer,NULL,NULL,0,NULL,NULL 82077,216231,1252886,NULL,NULL,NULL,0,NULL,NULL 82078,138985,469716,Custodian Editor,NULL,NULL,0,NULL,NULL 82079,263485,1285444,Popular Question Popular Question Popular Question Popular Question Notable Question Inquisitive Popular Question Popular Question Necromancer Nice Question Electorate Popular Question Yearling Famous Question Popular Question Notable Question Nice Answer Popular Question Notable Question Notable Question Famous Question Census Yearling Notable Question Popular Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 82080,9857,91422,Yearling Popular Question Nice Question Favorite Question Great Question Yearling Nice Question Popular Question Teacher Yearling Nice Answer Enlightened Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 82081,913284,540331,NULL,NULL,NULL,0,NULL,NULL 82082,559013,1480091,Autobiographer,NULL,NULL,0,NULL,NULL 82083,1087733,872509,Supporter,NULL,NULL,0,NULL,NULL 82084,175386,764114,Student Popular Question,NULL,NULL,0,NULL,NULL 82085,1265779,675963,Enthusiast,NULL,NULL,0,NULL,NULL 82086,598261,1078852,NULL,NULL,NULL,0,NULL,NULL 82087,189592,642013,Yearling Favorite Question Teacher,NULL,NULL,0,NULL,NULL 82088,293343,1197961,Nice Answer Necromancer Caucus Revival Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 82089,159577,948445,Curious Necromancer Yearling Caucus Nice Answer Nice Answer Custodian Caucus Necromancer Yearling Favorite Question Popular Question Caucus ios Informed Proofreader Custodian Reviewer Unsung Hero Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82090,871280,1306183,Autobiographer Editor,NULL,NULL,0,NULL,NULL 82091,30793,339374,Nice Question Popular Question Critic Notable Question Teacher,NULL,NULL,0,NULL,NULL 82092,221336,343701,NULL,NULL,NULL,0,NULL,NULL 82093,96334,350127,Popular Question Yearling Popular Question Famous Question Civic Duty Yearling Notable Question Documentation User Famous Question Great Answer Notable Question Yearling Popular Question Nice Question,NULL,NULL,0,NULL,NULL 82094,11574,12078,Caucus Documentation User Census Caucus Yearling,NULL,NULL,0,NULL,NULL 82095,3650804,680186,Yearling Necromancer Caucus Nice Answer,NULL,NULL,0,NULL,NULL 82096,121894,680186,Yearling Necromancer Caucus Nice Answer,NULL,NULL,0,NULL,NULL 82097,992521,1142221,NULL,NULL,NULL,0,NULL,NULL 82098,476404,840113,NULL,NULL,NULL,0,NULL,NULL 82099,55790,175225,Inquisitive Nice Question Famous Question Famous Question Popular Question Yearling Notable Question Nice Question Announcer Popular Question,NULL,NULL,0,NULL,NULL 82100,331391,1222749,Informed,NULL,NULL,0,NULL,NULL 82101,228960,49531,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 82102,830603,753763,NULL,NULL,NULL,0,NULL,NULL 82103,53583,679563,Notable Question Nice Answer Popular Question Necromancer Nice Answer Famous Question Yearling Popular Question Enthusiast Tumbleweed Nice Question Census Yearling Revival Self-Learner Necromancer Necromancer Popular Question,NULL,NULL,0,NULL,NULL 82104,206801,1383677,Revival,NULL,NULL,0,NULL,NULL 82105,353,99722,Popular Question,NULL,NULL,0,NULL,NULL 82106,468516,1270633,NULL,NULL,NULL,0,NULL,NULL 82107,368570,1118128,Commentator Student,NULL,NULL,0,NULL,NULL 82108,106292,1157826,NULL,NULL,NULL,0,NULL,NULL 82109,453319,1069518,Teacher Popular Question Yearling Popular Question Necromancer,NULL,NULL,0,NULL,NULL 82110,22947,762429,NULL,NULL,NULL,0,NULL,NULL 82111,187537,1343116,NULL,NULL,NULL,0,NULL,NULL 82112,607895,501682,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 82113,81246,959609,NULL,NULL,NULL,0,NULL,NULL 82114,89414,1224650,NULL,NULL,NULL,0,NULL,NULL 82115,324135,885923,NULL,NULL,NULL,0,NULL,NULL 82116,274302,1425161,NULL,NULL,NULL,0,NULL,NULL 82117,352532,428376,NULL,NULL,NULL,0,NULL,NULL 82118,66546,497121,Popular Question Popular Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82119,312065,1268949,Student Commentator Scholar Necromancer Yearling,NULL,NULL,0,NULL,NULL 82120,1172100,839230,NULL,NULL,NULL,0,NULL,NULL 82121,1345385,1459764,NULL,NULL,NULL,0,NULL,NULL 82122,165510,1338118,NULL,NULL,NULL,0,NULL,NULL 82123,82971,257236,NULL,NULL,NULL,0,NULL,NULL 82124,2364934,904698,Nice Question Yearling Popular Question Popular Question Caucus Popular Question Civic Duty Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 82125,35829,618848,NULL,NULL,NULL,0,NULL,NULL 82126,263426,764578,NULL,NULL,NULL,0,NULL,NULL 82127,8379260,733004,NULL,NULL,NULL,0,NULL,NULL 82128,454113,733004,NULL,NULL,NULL,0,NULL,NULL 82129,10988099,733004,NULL,NULL,NULL,0,NULL,NULL 82130,158805,214624,NULL,NULL,NULL,0,NULL,NULL 82131,200674,584277,Popular Question,NULL,NULL,0,NULL,NULL 82132,273881,1412128,Autobiographer,NULL,NULL,0,NULL,NULL 82133,74946,1492576,NULL,NULL,NULL,0,NULL,NULL 82134,945984,1350415,NULL,NULL,NULL,0,NULL,NULL 82135,76631,595634,NULL,NULL,NULL,0,NULL,NULL 82136,219522,825981,Popular Question Nice Answer Enlightened Yearling Nice Answer Custodian Yearling Good Answer Caucus Famous Question Yearling Guru,NULL,NULL,0,NULL,NULL 82137,16722,326879,Popular Question Good Question Civic Duty Good Question,NULL,NULL,0,NULL,NULL 82138,262467,1552055,NULL,NULL,NULL,0,NULL,NULL 82139,64696,165673,Notable Question Good Question Famous Question Notable Question Nice Answer Nice Question Nice Question Nice Question Necromancer Popular Question Famous Question Good Question Popular Question Explainer Great Question Notable Question Necromancer Notable Question Necromancer Famous Question Good Answer Necromancer Popular Question Famous Question Popular Question Popular Question Announcer Popular Question Famous Question Nice Question Notable Question Popular Question Nice Question Notable Question Notable Question Notable Question Necromancer Nice Question Necromancer Famous Question Good Question Popular Question Altruist Famous Question Famous Question Nice Question Famous Question Famous Question Famous Question Notable Question Necromancer Famous Question Popular Question Famous Question Favorite Question Nice Question Good Question Popular Question Nice Answer Great Question Necromancer Notable Question Nice Question Nice Question Popular Question Nice Question Nice Question Nice Question Nice Answer Famous Question Nice Answer Good Question Necromancer Popular Question Favorite Question Popular Question Yearling Necromancer Popular Question Nice Answer Popular Question Good Question Notable Question Good Question Notable Question Nice Answer Necromancer Good Question Good Question Famous Question Nice Question Notable Question Notable Question Announcer Notable Question Good Answer Notable Question Notable Question Famous Question Great Answer Famous Question Necromancer Famous Question Famous Question Famous Question Notable Question Notable Question Famous Question Popular Question Good Question Popular Question Great Question Good Answer Good Question Popular Question Great Question Good Answer Popular Question Good Answer Famous Question Popular Question Popular Question Notable Question Nice Answer Notable Question Announcer Popular Question Popular Question Notable Question Nice Answer Notable Question Notable Question Nice Question Announcer Popular Question Announcer Popular Question Notable Question Good Question Good Question Notable Question Announcer Announcer Announcer Great Answer Populist Notable Question Notable Question Announcer Announcer Famous Question Custodian Favorite Question Popular Question Disciplined Notable Question Announcer Notable Question Yearling Favorite Question Announcer Popular Question Good Question Announcer Announcer Popular Question Announcer Popular Question Famous Question Nice Question Famous Question Populist Announcer Nice Question Nice Question Notable Question Famous Question Great Question Great Question Nice Answer Notable Question Notable Question Populist Popular Question Nice Question Announcer Announcer Great Question Announcer Announcer Announcer Notable Question Popular Question Necromancer Nice Question Announcer Nice Question Nice Question Popular Question Notable Question Famous Question Great Question Stellar Question Good Answer Popular Question Announcer Good Answer Notable Question Popular Question Popular Question Nice Question Popular Question Nice Answer Famous Question Notable Question Necromancer Nice Question Famous Question Good Answer Nice Question Great Question Notable Question Favorite Question Popular Question Good Question Nice Question Stellar Question Yearling Good Question Booster Great Answer Notable Question Announcer Good Question Notable Question,NULL,How to convert SVG to PNG with Image Magick svg imagemagick png pI have SVG file which has defined size of 16x16 When use Image Magick convert program to convert it into PNG then get 16x16 pixel PNG which is way too small ppre codeconvert test svg test png code prepI need to specify the pixel size of the output PNG code size code parameter seems to be ignored code scale code parameter scales the PNG strongafter strong it has been converted to PNG The best result up to now got by using the code density code parameter ppre codeconvert density 1200 test svg test png code prepBut not satisfied because want to specify the output size in pixels without doing math to calculate the density value So want to do something like this ppre codeconvert setTheOutputSizeOfThePng 1024x1024 test svg test png code prepSo what is the magic parameter have to use here FYI ImageMagick is pretty awful when it comes to SVG conversions For example it text positioning is broken https stackoverflow com questions 53417436 imagemagick svg to png conversion screws up text position found that better option was to use Node module that leverages PhantomJS like svg2png https github com domenic svg2png pLots of complicated and dangerous answers here but it actually easy ppre codegit revert no commit 0766c053 HEADgit commit code prepThis will revert everything from the HEAD back to the commit hash meaning it will recreate that commit state in the working tree emas if em every commit since had been walked back You can then commit the current tree and it will create brand new commit essentially equivalent to the commit you reverted to pp The code no commit code flag lets git revert all the commits at once otherwise you ll be prompted for message for each commit in the range littering your history with unnecessary new commits ppThis is strongsafe and easy way to rollback to previous state strong No history is destroyed so it can be used for commits that have already been made public Not following your argument or what you mean by if you revert change the change will eventually be deleted everywhere The advantage of using revert is that nothing is deleted whereas with reset it is That why it safer pA working example ppre code Add an event listenerdocument addEventListener name of event function console log detail Prints Example of an event Create the eventvar event new CustomEvent name of event detail Example of an event Dispatch Trigger Fire the eventdocument dispatchEvent event code prepFor older browsers href https developer mozilla org en US docs Web API CustomEvent CustomEvent Polyfill polyfill and more complex examples see href https developer mozilla org en US docs Web API CustomEvent MDN docs ppSee support tables for href http caniuse com feat dispatchevent codeEventTarget dispatchEvent code and href http caniuse com feat customevent codeCustomEvent code Won work with any version of IE https caniuse com feat customevent See my answer https stackoverflow com 49117631 165673 for fix Does Ruby have containers like stacks queues linked lists maps or sets ruby pI checked several Ruby tutorials online and they seemed to use array for everything So how could implement the following data structures in Ruby pulliStacks liliQueues liliLinked lists liliMaps liliSets li ul shift pop gives FIFO behavior should be push shift gives FIFO behavior,0,NULL,NULL 82140,257252,938807,NULL,NULL,NULL,0,NULL,NULL 82141,654208,471177,NULL,NULL,NULL,0,NULL,NULL 82142,248400,493395,NULL,NULL,NULL,0,NULL,NULL 82143,97922,569887,Yearling Yearling Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82144,1347390,1481350,NULL,NULL,NULL,0,NULL,NULL 82145,239132,972511,Necromancer,NULL,NULL,0,NULL,NULL 82146,28674,1322040,NULL,NULL,NULL,0,NULL,NULL 82147,1503722,818656,NULL,NULL,NULL,0,NULL,NULL 82148,1519336,1082109,NULL,NULL,NULL,0,NULL,NULL 82149,48617,965723,Yearling Nice Answer Yearling Guru Yearling,NULL,NULL,0,NULL,NULL 82150,252104,1456762,Necromancer Yearling,NULL,NULL,0,NULL,NULL 82151,857789,553178,NULL,NULL,NULL,0,NULL,NULL 82152,9914,521111,NULL,NULL,NULL,0,NULL,NULL 82153,91706,227442,Custodian Favorite Question Yearling Popular Question Notable Question Yearling Census Notable Question,NULL,NULL,0,NULL,NULL 82154,110213,748273,NULL,NULL,NULL,0,NULL,NULL 82155,152088,563167,NULL,NULL,NULL,0,NULL,NULL 82156,286258,1338370,NULL,NULL,NULL,0,NULL,NULL 82157,1084773,1029000,NULL,NULL,NULL,0,NULL,NULL 82158,406982,402659,NULL,NULL,NULL,0,NULL,NULL 82159,90136,1397481,NULL,NULL,NULL,0,NULL,NULL 82160,90146,1397481,NULL,NULL,NULL,0,NULL,NULL 82161,71787,838562,NULL,NULL,NULL,0,NULL,NULL 82162,52394,310170,Yearling Necromancer Notable Question Popular Question Notable Question Yearling Favorite Question Notable Question Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 82163,301677,515508,Autobiographer Yearling Tumbleweed Notable Question,NULL,NULL,0,NULL,NULL 82164,1768246,68822,Yearling Nice Answer Great Answer Nice Answer Nice Answer c# Good Answer Curious Yearling Nice Answer Enlightened Guru Popular Question Nice Answer Peer Pressure Nice Question Yearling,NULL,NULL,0,NULL,NULL 82165,262819,775808,NULL,NULL,NULL,0,NULL,NULL 82166,11529,1257166,Announcer,NULL,,0,, 82167,4944,423384,Necromancer Informed Autobiographer Yearling Tumbleweed Promoter Student Revival Nice Answer Populist Yearling Revival Custodian Explainer Necromancer Good Answer Yearling,NULL,NULL,0,NULL,NULL 82168,263945,590961,NULL,NULL,NULL,0,NULL,NULL 82169,70869,325836,Great Answer Yearling Guru Famous Question Nice Answer Enlightened Yearling Popular Question Nice Answer Enlightened Caucus Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 82170,408926,804511,NULL,NULL,NULL,0,NULL,NULL 82171,120711,1444356,Yearling,NULL,NULL,0,NULL,NULL 82172,46199,1021660,NULL,NULL,NULL,0,NULL,NULL 82173,214135,492150,NULL,NULL,NULL,0,NULL,NULL 82174,9875,88809,NULL,NULL,NULL,0,NULL,NULL 82175,79725,1276378,Caucus,NULL,NULL,0,NULL,NULL 82176,7728349,1212129,NULL,NULL,NULL,0,NULL,NULL 82177,681205,1467518,NULL,NULL,NULL,0,NULL,NULL 82178,680462,1464476,NULL,NULL,NULL,0,NULL,NULL 82179,196204,718239,NULL,NULL,NULL,0,NULL,NULL 82180,13803,122978,php Nice Answer Yearling Nice Answer Revival Necromancer Yearling Caucus Constituent Documentation User Notable Question Custodian Popular Question Caucus Constituent Nice Answer Enlightened Yearling Revival Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82181,171099,290551,NULL,NULL,NULL,0,NULL,NULL 82182,820155,867313,NULL,NULL,NULL,0,NULL,NULL 82183,430607,1515349,Student Editor Commentator Supporter,NULL,NULL,0,NULL,NULL 82184,168174,1121154,Popular Question Popular Question Popular Question Popular Question Notable Question Necromancer Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82185,280494,1057925,Critic Yearling Caucus Commentator Autobiographer Announcer Yearling Caucus,NULL,NULL,0,NULL,NULL 82186,915537,765578,Popular Question Student,NULL,NULL,0,NULL,NULL 82187,897718,986476,Notable Question Popular Question Critic Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82188,124710,1011,Nice Question Nice Answer Yearling Famous Question Yearling Populist Yearling,NULL,NULL,0,NULL,NULL 82189,235375,305019,Announcer Necromancer Yearling Famous Question Notable Question Nice Answer Good Answer Famous Question Nice Question Organizer Revival Yearling Necromancer Announcer Popular Question Popular Question Notable Question Popular Question Announcer Popular Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82190,434035,1532059,NULL,NULL,NULL,0,NULL,NULL 82191,195605,374262,Yearling Yearling Nice Answer Enlightened Custodian Yearling,NULL,NULL,0,NULL,NULL 82192,241524,563118,NULL,NULL,NULL,0,NULL,NULL 82193,277062,775281,NULL,NULL,NULL,0,NULL,NULL 82194,68114,410713,Good Question Yearling Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82195,193784,556172,NULL,NULL,NULL,0,NULL,NULL 82196,440981,1561707,Revival,NULL,NULL,0,NULL,NULL 82197,355754,729903,Teacher Supporter,NULL,NULL,0,NULL,NULL 82198,638219,1086889,NULL,NULL,NULL,0,NULL,NULL 82199,340404,1008278,Announcer Nice Answer Famous Question Announcer css Revival html Cleanup Great Answer Popular Question Good Answer Necromancer Explainer Yearling Caucus Notable Question Constituent Notable Question Census Good Answer Favorite Question Great Question Nice Answer Popular Question Notable Question Caucus Constituent Yearling Announcer Guru Census Announcer Caucus Announcer Popular Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 82200,5562020,1164057,NULL,NULL,NULL,0,NULL,NULL 82201,496945,1141571,Promoter Curious Yearling Caucus Editor Good Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 82202,6166367,1141571,Promoter Curious Yearling Caucus Editor Good Answer Commentator Yearling,NULL,NULL,0,NULL,NULL 82203,178781,1131274,Editor Scholar Critic Commentator Promoter Teacher Benefactor Nice Question Curious,NULL,NULL,0,NULL,NULL 82204,88378,684883,Popular Question Famous Question Good Question Popular Question Yearling Critic,NULL,NULL,0,NULL,NULL 82205,25917,404162,Famous Question Yearling,NULL,NULL,0,NULL,NULL 82206,1101519,826235,Notable Question Popular Question Notable Question Popular Question Popular Question Critic Citizen Patrol Teacher Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 82207,376412,957682,Popular Question Famous Question Notable Question Popular Question Famous Question Notable Question Popular Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Notable Question Notable Question Popular Question Good Answer Popular Question Notable Question Yearling Notable Question Nice Question Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82208,7780732,632072,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 82209,1072349,632072,Popular Question Notable Question Curious,NULL,NULL,0,NULL,NULL 82210,8373240,227662,NULL,NULL,NULL,0,NULL,NULL 82211,316850,570283,Good Question Popular Question,NULL,NULL,0,NULL,NULL 82212,113238,739909,Yearling,NULL,NULL,0,NULL,NULL 82213,163401,593133,NULL,NULL,NULL,0,NULL,NULL 82214,117679,431856,Famous Question Yearling Good Answer Yearling Scholar Custodian Informed Citizen Patrol,NULL,NULL,0,NULL,NULL 82215,310506,1158367,Yearling Nice Answer Great Answer Yearling Yearling Good Answer Good Answer Guru,NULL,NULL,0,NULL,NULL 82216,419346,1157548,NULL,NULL,NULL,0,NULL,NULL 82217,7132401,1157548,NULL,NULL,NULL,0,NULL,NULL 82218,409047,1034695,NULL,NULL,NULL,0,NULL,NULL 82219,232867,848622,NULL,NULL,NULL,0,NULL,NULL 82220,536233,683277,NULL,NULL,NULL,0,NULL,NULL 82221,212936,1406101,Critic Yearling Commentator Student Scholar Yearling Caucus Custodian,NULL,NULL,0,NULL,NULL 82222,1378531,15260,NULL,NULL,NULL,0,NULL,NULL 82223,1513236,626047,NULL,NULL,NULL,0,NULL,NULL 82224,17957,1400885,NULL,NULL,NULL,0,NULL,NULL 82225,22956,1076621,NULL,NULL,NULL,0,NULL,NULL 82226,98674,1289093,Supporter Editor,NULL,NULL,0,NULL,NULL 82227,55196,505621,Organizer Student Scholar Critic Editor Excavator Teacher,NULL,NULL,0,NULL,NULL 82228,1516896,502631,NULL,NULL,NULL,0,NULL,NULL 82229,186196,466395,Popular Question Popular Question Popular Question Custodian Good Question Yearling Enthusiast Custodian Civic Duty Caucus Constituent Yearling Popular Question,NULL,NULL,0,NULL,NULL 82230,47445,3821,Popular Question Yearling Caucus Notable Question Yearling Nice Answer Custodian Custodian Caucus Constituent Yearling Good Question,NULL,NULL,0,NULL,NULL 82231,167502,324510,NULL,NULL,NULL,0,NULL,NULL 82232,472677,1176162,Good Answer Custodian Informed Autobiographer Yearling Notable Question Custodian Custodian Civic Duty Citizen Patrol,NULL,NULL,0,NULL,NULL 82233,1077750,508837,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 82234,834441,20065,Popular Question Yearling Good Answer Popular Question Yearling Popular Question Good Answer Notable Question Yearling Self-Learner,NULL,NULL,0,NULL,NULL 82235,12398,471341,Good Answer Explainer Good Question Announcer Popular Question Revival Popular Question Nice Answer Revival Necromancer java Notable Question Yearling Revival Nice Answer Popular Question Good Answer Civic Duty Nice Question Famous Question Revival Guru Good Answer Necromancer Popular Question Popular Question Popular Question Guru Necromancer Notable Question Good Question Popular Question Yearling Popular Question Great Answer Popular Question Notable Question Yearling Popular Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 82236,593380,618935,Student Scholar Critic Caucus,NULL,NULL,0,NULL,NULL 82237,532198,1110355,NULL,NULL,NULL,0,NULL,NULL 82238,227185,659158,Nice Answer Yearling Nice Question,NULL,NULL,0,NULL,NULL 82239,432411,646639,NULL,NULL,NULL,0,NULL,NULL 82240,1717281,646639,NULL,NULL,NULL,0,NULL,NULL 82241,180841,338995,NULL,NULL,NULL,0,NULL,NULL 82242,33395,644963,NULL,NULL,NULL,0,NULL,NULL 82243,3061716,644963,NULL,NULL,NULL,0,NULL,NULL 82244,355977,1191374,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82245,40934,1383597,NULL,NULL,NULL,0,NULL,NULL 82246,90517,253737,NULL,NULL,NULL,0,NULL,NULL 82247,17999,183983,Popular Question Nice Question Guru Yearling Necromancer Popular Question Nice Question Yearling Good Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 82248,547128,1319651,Popular Question Revival Caucus Yearling Revival Necromancer Notable Question Curious Nice Answer Enlightened Popular Question Necromancer,NULL,NULL,0,NULL,NULL 82249,299251,654209,Revival Nice Answer Good Answer Yearling Necromancer Nice Answer Yearling Revival Good Answer Yearling Announcer Necromancer,NULL,NULL,0,NULL,NULL 82250,2844,145823,Necromancer Nice Question Good Answer Yearling Guru Announcer Yearling Good Answer Yearling Great Answer Guru Nice Answer,NULL,NULL,0,NULL,NULL 82251,1256178,918022,Popular Question,NULL,NULL,0,NULL,NULL 82252,1826558,439993,NULL,NULL,NULL,0,NULL,NULL 82253,68869,165515,Civic Duty Caucus,NULL,NULL,0,NULL,NULL 82254,621455,1164862,NULL,NULL,NULL,0,NULL,NULL 82255,426163,1143949,NULL,NULL,NULL,0,NULL,NULL 82256,312925,307091,Necromancer Yearling,NULL,NULL,0,NULL,NULL 82257,228402,1135950,Popular Question Peer Pressure Popular Question Teacher Autobiographer Caucus Caucus Yearling Yearling Notable Question Yearling Popular Question Caucus Notable Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Custodian Notable Question Custodian Nice Question Yearling Popular Question Good Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82258,596544,1566629,NULL,NULL,NULL,0,NULL,NULL 82259,8076,1258707,NULL,NULL,NULL,0,NULL,NULL 82260,1182406,1289794,Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Question Popular Question Notable Question Notable Question Yearling Popular Question Nice Question Popular Question Self-Learner Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82261,726938,387236,NULL,NULL,NULL,0,NULL,NULL 82262,28581,387236,NULL,NULL,NULL,0,NULL,NULL 82263,956748,1327731,NULL,NULL,NULL,0,NULL,NULL 82264,41710,694107,NULL,NULL,NULL,0,NULL,NULL 82265,72158,196368,Yearling Scholar,NULL,NULL,0,NULL,NULL 82266,402984,528980,Informed Autobiographer,NULL,NULL,0,NULL,NULL 82267,1034229,528980,Informed Autobiographer,NULL,NULL,0,NULL,NULL 82268,540805,1096712,NULL,NULL,NULL,0,NULL,NULL 82269,60436,565425,Yearling Yearling Popular Question Nice Answer Custodian Custodian Custodian Quorum Yearling Caucus Constituent,NULL,NULL,0,NULL,NULL 82270,400933,1120502,Yearling Commentator Scholar Critic Yearling Caucus Constituent Census Caucus,NULL,NULL,0,NULL,NULL 82271,46257,1120502,Yearling Commentator Scholar Critic Yearling Caucus Constituent Census Caucus,NULL,NULL,0,NULL,NULL 82272,707632,632968,Yearling Yearling Popular Question Favorite Question Popular Question Popular Question Great Question,NULL,NULL,0,NULL,NULL 82273,753543,879911,NULL,NULL,NULL,0,NULL,NULL 82274,3409946,1083711,NULL,NULL,NULL,0,NULL,NULL 82275,172389,290102,NULL,NULL,NULL,0,NULL,NULL 82276,357678,264238,Yearling Good Question,NULL,NULL,0,NULL,NULL 82277,147784,453182,Good Answer Yearling Nice Answer Guru Yearling,NULL,NULL,0,NULL,NULL 82278,31003,238308,Necromancer Yearling Good Answer Yearling Populist Yearling Scholar Great Answer Yearling Revival Announcer Custodian,NULL,NULL,0,NULL,NULL 82279,3781303,341275,Yearling Guru Yearling Populist Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82280,52000,341275,Yearling Guru Yearling Populist Census Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82281,81474,1251621,NULL,NULL,NULL,0,NULL,NULL 82282,1682107,1075886,NULL,NULL,NULL,0,NULL,NULL 82283,433440,1342347,NULL,NULL,NULL,0,NULL,NULL 82284,90120,1336924,NULL,NULL,NULL,0,NULL,NULL 82285,90193,1336924,NULL,NULL,NULL,0,NULL,NULL 82286,988763,1013738,NULL,NULL,NULL,0,NULL,NULL 82287,64651,479392,NULL,NULL,NULL,0,NULL,NULL 82288,711310,1461410,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82289,99111,1088996,NULL,NULL,NULL,0,NULL,NULL 82290,560055,864991,NULL,NULL,NULL,0,NULL,NULL 82291,170973,379593,Yearling Announcer Taxonomist Yearling Announcer Announcer Popular Question Yearling,NULL,NULL,0,NULL,NULL 82292,62624,1479560,NULL,NULL,NULL,0,NULL,NULL 82293,9003,637713,NULL,NULL,NULL,0,NULL,NULL 82294,145133,1309218,Nice Answer Yearling Notable Question Nice Answer Good Answer Nice Answer Popular Question Popular Question Cleanup Yearling Guru Self-Learner Notable Question Necromancer Nice Answer Notable Question Nice Answer Popular Question Necromancer Yearling Necromancer Popular Question Nice Answer Popular Question,NULL,pBased on href https stackoverflow com 4793662 711006 Maxim Yegorushkin answer tried to make the example in 11 style ppre code include lt mutex gt include lt condition variable gt class Semaphore public Semaphore int count count count inline void notify std unique lock lt std mutex gt lock mtx count cv notify one inline void wait std unique lock lt std mutex gt lock mtx while count cv wait lock count private std mutex mtx std condition variable cv int count code pre Thank you for your pointing out fixed it,0,NULL,NULL 82295,180607,434841,Revival Good Answer,NULL,NULL,0,NULL,NULL 82296,2109,308804,Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 82297,163502,345157,Stellar Question Yearling Good Question Good Question Famous Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Favorite Question Yearling Good Question Nice Answer Famous Question Popular Question Good Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 82298,642203,745005,NULL,NULL,NULL,0,NULL,NULL 82299,896927,4038,Famous Question Popular Question Favorite Question Popular Question Yearling Popular Question Famous Question Good Question Popular Question Caucus Great Question Popular Question Good Question Notable Question Nice Question Notable Question Popular Question Popular Question Popular Question Caucus Constituent Good Question Yearling Custodian Famous Question Notable Question Famous Question Notable Question Custodian Popular Question Caucus Constituent Proofreader Nice Question Yearling,NULL,NULL,0,NULL,NULL 82300,319072,933793,NULL,NULL,NULL,0,NULL,NULL 82301,1079586,1416472,NULL,NULL,NULL,0,NULL,NULL 82302,3401014,224792,NULL,NULL,NULL,0,NULL,NULL 82303,3343,224792,NULL,NULL,NULL,0,NULL,NULL 82304,168692,328840,Popular Question Commentator Excavator,NULL,NULL,0,NULL,NULL 82305,123850,1146428,NULL,NULL,NULL,0,NULL,NULL 82306,424259,726620,NULL,NULL,NULL,0,NULL,NULL 82307,104721,1332299,NULL,NULL,NULL,0,NULL,NULL 82308,159467,486677,NULL,NULL,NULL,0,NULL,NULL 82309,163780,1314563,Yearling Critic,NULL,NULL,0,NULL,NULL 82310,1556009,875764,NULL,NULL,NULL,0,NULL,NULL 82311,1728874,995734,NULL,NULL,NULL,0,NULL,NULL 82312,966025,292260,Notable Question,NULL,NULL,0,NULL,NULL 82313,4609,205117,NULL,NULL,NULL,0,NULL,NULL 82314,20328,711771,NULL,NULL,NULL,0,NULL,NULL 82315,493554,262056,Yearling Informed Good Answer Popular Question Popular Question Notable Question Nice Question php Nice Question Nice Answer Enlightened Yearling Great Answer Famous Question Notable Question Nice Answer Enlightened Good Question Famous Question Nice Question Popular Question Synonymizer Good Answer Popular Question Yearling Nice Answer Good Answer Notable Question Notable Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 82316,143464,1081782,NULL,NULL,NULL,0,NULL,NULL 82317,56932,1287290,NULL,NULL,NULL,0,NULL,NULL 82318,2235665,758039,NULL,NULL,NULL,0,NULL,NULL 82319,19591,190229,NULL,NULL,NULL,0,NULL,NULL 82320,1237270,962128,Notable Question,NULL,NULL,0,NULL,NULL 82321,1386972,1176829,NULL,NULL,NULL,0,NULL,NULL 82322,202198,609702,NULL,NULL,NULL,0,NULL,NULL 82323,585834,371553,Yearling Necromancer Notable Question,NULL,NULL,0,NULL,NULL 82324,46182,1505839,Enthusiast Editor,NULL,NULL,0,NULL,NULL 82325,192460,272898,Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82326,1082005,905376,Supporter Curious Commentator Enthusiast Popular Question Teacher Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82327,99465,956677,Announcer,NULL,NULL,0,NULL,NULL 82328,219290,872209,Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Nice Question,NULL,NULL,0,NULL,NULL 82329,228382,868528,Yearling,NULL,NULL,0,NULL,NULL 82330,1125208,1156798,Popular Question Nice Question Famous Question Popular Question Famous Question Caucus Famous Question Yearling Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 82331,914587,279023,Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 82332,901892,626004,Notable Question Popular Question Nice Question Famous Question Yearling Census Curious Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82333,1260245,1243777,NULL,NULL,NULL,0,NULL,NULL 82334,92528,74531,NULL,NULL,NULL,0,NULL,NULL 82335,38622,121607,Necromancer Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82336,2034195,1156158,NULL,NULL,NULL,0,NULL,NULL 82337,382008,956680,Nice Answer Enlightened Yearling Yearling Nice Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82338,542428,714760,Announcer Famous Question Commentator,NULL,NULL,0,NULL,NULL 82339,567397,688771,NULL,NULL,NULL,0,NULL,NULL 82340,256262,688771,NULL,NULL,NULL,0,NULL,NULL 82341,204470,513977,NULL,NULL,NULL,0,NULL,NULL 82342,302326,411934,Favorite Question Yearling Autobiographer Famous Question Favorite Question Yearling Yearling,NULL,NULL,0,NULL,NULL 82343,241630,9070,NULL,NULL,NULL,0,NULL,NULL 82344,1056622,35487,Census,NULL,NULL,0,NULL,NULL 82345,1521024,573690,NULL,NULL,NULL,0,NULL,NULL 82346,197013,1302512,NULL,NULL,NULL,0,NULL,NULL 82347,403177,325646,NULL,NULL,NULL,0,NULL,NULL 82348,574650,361514,NULL,NULL,NULL,0,NULL,NULL 82349,1561681,347479,NULL,NULL,NULL,0,NULL,NULL 82350,155638,419371,Good Answer Yearling Caucus Caucus Excavator Yearling Custodian Organizer Yearling,NULL,NULL,0,NULL,NULL 82351,195492,676844,NULL,NULL,NULL,0,NULL,NULL 82352,77824,1269848,Notable Question,NULL,NULL,0,NULL,NULL 82353,34707,829435,NULL,NULL,NULL,0,NULL,NULL 82354,2812,45652,Enthusiast Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82355,161846,660761,NULL,NULL,NULL,0,NULL,NULL 82356,522611,1530964,NULL,NULL,NULL,0,NULL,NULL 82357,156325,610797,NULL,NULL,NULL,0,NULL,NULL 82358,1348448,496268,NULL,NULL,NULL,0,NULL,NULL 82359,68245,1349334,Nice Answer Enlightened Yearling Self-Learner Notable Question Good Answer Necromancer Promoter Nice Question Nice Answer Good Answer Yearling Guru Revival Necromancer Popular Question Popular Question Popular Question Nice Answer Enlightened android Notable Question Famous Question Popular Question Yearling Necromancer Good Answer,NULL,NULL,0,NULL,NULL 82360,213116,59058,Nice Answer Yearling Nice Answer Yearling Good Answer Yearling Custodian Nice Answer Guru Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82361,85893,309483,Announcer Nice Answer Necromancer Nice Answer Yearling Necromancer Nice Answer Nice Answer Nice Answer Announcer Announcer Taxonomist Good Answer Guru Necromancer Nice Answer Good Answer Announcer Necromancer Good Answer Announcer Necromancer Good Answer Announcer Necromancer Good Answer Necromancer Great Answer Good Answer Nice Answer Announcer Popular Question Popular Question Yearling Popular Question Announcer Necromancer Announcer Booster Necromancer Announcer Revival Announcer Announcer Guru Announcer Documentation User Necromancer Popular Question Announcer Announcer Booster Announcer Announcer Good Answer Announcer Necromancer Booster Announcer Notable Question Revival Yearling Announcer Publicist Necromancer Announcer Announcer Booster Necromancer Nice Answer Announcer Nice Answer Announcer Announcer Announcer Nice Answer Necromancer,NULL,pI just grabbed the href https svn jenkins ci org trunk hudson dtkit dtkit format dtkit junit model src main resources com thalesgroup dtkit junit model xsd junit xsd rel noreferrer junit xsd that others have linked to and used tool named href http www donkeydevelopment com rel noreferrer XMLSpear to convert the schema to blank XML file with the options shown below This is the slightly cleaned up result ppre class lang xml prettyprint override code lt xml version encoding UTF gt lt testsuites disabled errors failures name tests time gt lt testsuite disabled errors failures hostname id name package skipped tests time timestamp gt lt properties gt lt property name value gt lt properties gt lt testcase assertions classname name status time gt lt skipped gt lt error message type gt lt failure message type gt lt system out gt lt system err gt lt testcase gt lt system out gt lt system err gt lt testsuite gt lt testsuites gt code prepSome of these items can occur multiple times pulliThere can only be one codetestsuites code element since that’s how XML works but there can be multiple codetestsuite code elements within the codetestsuites code element liliEach codeproperties code element can have multiple codeproperty code children liliEach codetestsuite code element can have multiple codetestcase code children liliEach codetestcase code element can have multiple codeerror code codefailure code codesystem out code or codesystem err code children li ulp href https stack imgur com CPp9v png rel noreferrer img src https stack imgur com CPp9v png alt XMLSpear options see https en wikipedia org wiki Root element Each XML document has exactly one single root element,0,NULL,NULL 82362,312640,199791,Revival Yearling Enthusiast Yearling Caucus Nice Answer Enlightened Critic Yearling Announcer Popular Question Announcer Yearling,NULL,NULL,0,NULL,NULL 82363,77091,580360,Yearling Nice Answer Enlightened Yearling Yearling cygwin,NULL,NULL,0,NULL,NULL 82364,72945,1127722,NULL,NULL,NULL,0,NULL,NULL 82365,438852,368512,Yearling,NULL,NULL,0,NULL,NULL 82366,243787,1195837,Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 82367,20875,717933,NULL,NULL,NULL,0,NULL,NULL 82368,1128054,1012689,Notable Question Nice Question Yearling Popular Question Famous Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Notable Question Famous Question Notable Question Popular Question Nice Question Notable Question Yearling Notable Question Famous Question Popular Question Nice Question Notable Question Good Question Yearling Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling,NULL,NULL,1,Scala Slick implicit mapping between java8 OffsetDateTime and Timestamp java scala datetime slick pFirst is if want to map datetime with timezone to Slick which class should use codeOffsetDateTime code or codeZonedDateTime code As for Joda we can only use codeDateTime code ppHow can write some implicit to convert between java8 codeZonedDateTime code and Sql codeTimestamp code for Slick table mapping ppIt seems quite straightforward to use joda codeDateTime code to include timezone information However once switch to Java8 not quite sure whether should use codeZonedDateTime code or codeOffsetDateTime code as href http www oracle com technetwork articles java jf14 date time 2125367 html rel noreferrer http www oracle com technetwork articles java jf14 date time 2125367 html suggests to use OffsetDateTime ppFor my current code just use Java8 codeLocalDateTime code and write following implicit to map between slick ppre codeimplicit val JavaLocalDateTimeMapper MappedColumnType base LocalDateTime Timestamp gt Timestamp valueOf gt toLocalDateTime code prepNot quite sure can write similar using either codeZonedDateTime code or codeOffsetDateTime code Javascript Update object of array by attribute of the object javascript ecmascript lodash pI have an array of person objects and want to update one of object in place ppre codepersons id name John age 12 id name Tom age 13 id name David age 14 code prepThe function have is ppre codefunction updatePersonsWith id propName value this persons code prepThe arguments passed are codeid code of the person want to update codepropName code is the properties of codeperson code object can be codeid code codename code or codeage code codevalue code is the value want to replace with ppI want to find an object by it id and update only this object of the array ppre codeupdatePersonsWith age 16 code prepThe result would be ppre codepersons id name John age 12 id name Tom age 16 id name David age 14 code prepCould be ES6 or using lodash,NULL 82369,149261,415938,NULL,NULL,NULL,0,NULL,NULL 82370,393736,1418492,Yearling Enthusiast Necromancer Necromancer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82371,520551,20294,Nice Question Guru Yearling,NULL,NULL,0,NULL,NULL 82372,197457,253800,Yearling Good Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Yearling Popular Question Good Question Popular Question Notable Question Popular Question Nice Question Notable Question Notable Question Popular Question Popular Question Famous Question Famous Question Popular Question Nice Question Good Question Yearling Popular Question Popular Question Notable Question Notable Question Nice Question Good Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 82373,38177,109450,Curious Good Question Popular Question,NULL,NULL,0,NULL,NULL 82374,349815,1110112,NULL,NULL,NULL,0,NULL,NULL 82375,63378,538228,NULL,NULL,NULL,0,NULL,NULL 82376,91655,734352,NULL,NULL,NULL,0,NULL,NULL 82377,128832,475438,Notable Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82378,19310,822012,NULL,NULL,NULL,0,NULL,NULL 82379,234479,388280,Necromancer Necromancer Nice Answer Yearling Notable Question Nice Answer Caucus Custodian Nice Answer Yearling Necromancer Curious Necromancer Yearling Nice Answer Excavator Promoter Tumbleweed Benefactor Necromancer Announcer Caucus Nice Answer Yearling Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 82380,700926,430177,NULL,NULL,NULL,0,NULL,NULL 82381,217171,140925,Good Answer Yearling Custodian Caucus Census Notable Question Yearling Tenacious Informed Popular Question Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 82382,158554,165915,Informed,NULL,NULL,0,NULL,NULL 82383,2777531,646552,Popular Question Yearling,NULL,NULL,0,NULL,NULL 82384,630072,646552,Popular Question Yearling,NULL,NULL,0,NULL,NULL 82385,1671432,1065033,Nice Answer Yearling Yearling Revival Revival Good Answer Caucus,NULL,NULL,0,NULL,NULL 82386,6779360,1040343,NULL,NULL,NULL,0,NULL,NULL 82387,303627,1217269,Yearling Notable Question Good Answer Popular Question Notable Question Popular Question Popular Question Nice Question Yearling Famous Question Popular Question Popular Question Yearling erlang Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82388,176506,328562,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82389,662414,377743,Good Question Popular Question Yearling Yearling Popular Question,NULL,NULL,0,NULL,NULL 82390,659893,21499,Nice Question Nice Question Popular Question Notable Question Popular Question Guru Necromancer Nice Answer Great Answer Good Question Favorite Question Yearling Famous Question Revival Favorite Question Nice Question Necromancer Great Question Nice Question Good Question Notable Question Popular Question Favorite Question Good Answer Popular Question Popular Question Famous Question Notable Question Nice Question Popular Question Nice Answer Necromancer Famous Question Yearling Famous Question Autobiographer Popular Question Notable Question Guru Booster Announcer Announcer Populist Popular Question Popular Question Favorite Question Good Question Famous Question Announcer Popular Question Great Question Popular Question Yearling,NULL,pI recommend using strong92821 strong Here why ppTo give meaningful answer to this you have to know something about the possible values of codei code and codej code The only thing can think of in general is that in many cases small values will be more common than large values The odds of 15 appearing as value in your program are much better than say 438281923 So it seems good idea to make the smallest hashcode collision as large as possible by choosing an appropriate prime For 31 this rather bad already for codei code and codej 31 code you have the same hash value as for codei code and codej code ppSince this is interesting ve written little program that searched the whole int range for the best prime in this sense That is for each prime searched for the minimum value of codeMath abs Math abs code over all values of codei code that have the same hashcode as code0 code and then took the prime where this minimum value is as large as possible pp emDrumroll em the best prime in this sense is 486187739 with the smallest collision being codei 25486 67194 code Nearly as good and much easier to remember is 92821 with the smallest collision being codei 46272 and 46016 code ppIf you give small another meaning and want to be the minimum of codeMath sqrt code for the collision as large as possible the results are little different the best would be 1322837333 with codei 6815 and 70091 code but my favourite 92821 smallest collision code 46272 46016 code is again almost as good as the best value ppI do acknowledge that it is quite debatable whether these calculation make much sense in practice But do think that taking 92821 as prime makes much more sense than 31 unless you have good reasons not to You are right that there are many much better hash algorithms out there was just trying to point out an easy but worthwhile improvement to an often used simple algorithm If you want really good properties there are libraries for that which are much better but that often overkill pI recommend using strong92821 strong Here why ppTo give meaningful answer to this you have to know something about the possible values of codei code and codej code The only thing can think of in general is that in many cases small values will be more common than large values The odds of 15 appearing as value in your program are much better than say 438281923 So it seems good idea to make the smallest hashcode collision as large as possible by choosing an appropriate prime For 31 this rather bad already for codei code and codej 31 code you have the same hash value as for codei code and codej code ppSince this is interesting ve written little program that searched the whole int range for the best prime in this sense That is for each prime searched for the minimum value of codeMath abs Math abs code over all values of codei code that have the same hashcode as code0 code and then took the prime where this minimum value is as large as possible pp emDrumroll em the best prime in this sense is 486187739 with the smallest collision being codei 25486 67194 code Nearly as good and much easier to remember is 92821 with the smallest collision being codei 46272 and 46016 code ppIf you give small another meaning and want to be the minimum of codeMath sqrt code for the collision as large as possible the results are little different the best would be 1322837333 with codei 6815 and 70091 code but my favourite 92821 smallest collision code 46272 46016 code is again almost as good as the best value ppI do acknowledge that it is quite debatable whether these calculation make much sense in practice But do think that taking 92821 as prime makes much more sense than 31 unless you have good reasons not to The idea to use multiple primes is surely good one that costs nothing though bit at loss how to tell which are good ones But perhaps any with more than 16 bits will do just fine By the way since you care about that topic could you perhaps vote to reopen the question Someone wrongly marked this as duplicate needlessly preventing any new interesting answers if there are some What is sensible prime for hashcode calculation java hashcode primes pEclipse has very nice feature to generate Java hashCode functions It would generate for example slightly shortened ppre codeclass HashTest int int public int hashCode final int prime 31 int result prime result prime result return result code prep If you have more attributes in the class coderesult prime result attribute hashCode code is repeated for each additional attribute For ints hashCode can be omitted ppThis seems fine but for the choice 31 for the prime It is probably taken from the href https stackoverflow com questions 299304 why does javas hashcode in string use 31 as multiplier hashCode implementation of Java String which was used for performance reasons that are long gone after the introduction of hardware multipliers Here you have many hashcode collisions for small values of and for example and 31 have the same value think that is Bad Thing TM since small values occur often For String hashCode you ll also find many short strings with the same hashcode for instance Ca and DB If you take large prime this problem disappears if you choose the prime right ppSo my question what is good prime to choose What criteria do you apply to find it ppThis is meant as general question so do not want to give range for and But suppose in most applications relatively small values occur more often than large values If you have large values the choice of the prime is probably unimportant It might not make much of difference but better choice is an easy and obvious way to improve this so why not do it Commons lang href http commons apache org proper commons lang apidocs org apache commons lang3 builder HashCodeBuilder html rel nofollow noreferrer HashCodeBuilder also suggests curiously small values pp strongClarification strong this is emnot em duplicate of href https stackoverflow com questions 299304 why does javas hashcode in string use 31 as multiplier Why does Java hashCode in String use 31 as multiplier since my question is not concerned with the history of the 31 in the JDK but on what would be better value in new code using the same basic template None of the answers there try to answer that Please notice that this is quite different from Why does Java hashCode in String use 31 as multiplier since this is not about the history of 31 but on what would be better choice instead of using 31 without using additional libraries or entirely different methods of calculating hashes None of the answers there adresses that https stackoverflow com questions 299304 why does javas hashcode in string use 31 as multiplier,0,NULL,NULL 82391,1947460,617167,NULL,NULL,NULL,0,NULL,NULL 82392,128295,756204,NULL,NULL,NULL,0,NULL,NULL 82393,914943,877701,Supporter Commentator Popular Question Documentation User Teacher Necromancer Tumbleweed,NULL,NULL,0,NULL,NULL 82394,451727,1221244,Notable Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82395,213121,1127411,NULL,NULL,NULL,0,NULL,NULL 82396,206109,722411,NULL,NULL,NULL,0,NULL,NULL 82397,114845,898238,NULL,NULL,NULL,0,NULL,NULL 82398,52741,1352628,NULL,NULL,NULL,0,NULL,NULL 82399,2257127,1013911,NULL,NULL,NULL,0,NULL,NULL 82400,18422,651069,NULL,NULL,,0,, 82401,345702,510930,NULL,NULL,NULL,0,NULL,NULL 82402,368213,1012534,NULL,NULL,NULL,0,NULL,NULL 82403,287762,390031,NULL,NULL,NULL,0,NULL,NULL 82404,503161,205817,NULL,NULL,NULL,0,NULL,NULL 82405,346384,1231405,Notable Question Famous Question Caucus Caucus Notable Question Good Question,NULL,NULL,0,NULL,NULL 82406,1340017,9622,Famous Question Famous Question Nice Question Yearling Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 82407,191601,1191595,NULL,NULL,NULL,0,NULL,NULL 82408,389591,1169054,NULL,NULL,NULL,0,NULL,NULL 82409,48051,652775,Yearling,NULL,NULL,0,NULL,NULL 82410,134007,636586,Critic Informed Notable Question Yearling Nice Answer Caucus Yearling Good Answer Promoter Custodian Yearling Citizen Patrol Custodian Yearling,NULL,NULL,0,NULL,NULL 82411,1329354,793033,Teacher Popular Question Revival,NULL,NULL,0,NULL,NULL 82412,211758,1188298,NULL,NULL,NULL,0,NULL,NULL 82413,342459,804834,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82414,1769119,1207341,NULL,NULL,NULL,0,NULL,NULL 82415,108353,530322,NULL,NULL,NULL,0,NULL,NULL 82416,36350,636143,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82417,1167964,1317097,NULL,NULL,NULL,0,NULL,NULL 82418,509486,417893,NULL,NULL,NULL,0,NULL,NULL 82419,110252,1124013,NULL,NULL,NULL,0,NULL,NULL 82420,8017265,1190393,NULL,NULL,NULL,0,NULL,NULL 82421,133363,1143086,NULL,NULL,NULL,0,NULL,NULL 82422,384055,587791,NULL,NULL,NULL,0,NULL,NULL 82423,333294,1124011,NULL,NULL,NULL,0,NULL,NULL 82424,362020,522810,Caucus,NULL,NULL,0,NULL,NULL 82425,20562,815990,NULL,NULL,NULL,0,NULL,NULL 82426,3551418,1222512,NULL,NULL,NULL,0,NULL,NULL 82427,916576,510647,NULL,NULL,NULL,0,NULL,NULL 82428,46173,1063747,NULL,NULL,NULL,0,NULL,NULL 82429,7783620,1063747,NULL,NULL,NULL,0,NULL,NULL 82430,248080,514279,NULL,NULL,NULL,0,NULL,NULL 82431,301028,1393367,NULL,NULL,NULL,0,NULL,NULL 82432,301003,1393367,NULL,NULL,NULL,0,NULL,NULL 82433,300542,602825,NULL,NULL,NULL,0,NULL,NULL 82434,97963,602704,NULL,NULL,NULL,0,NULL,NULL 82435,731493,1558059,NULL,NULL,NULL,0,NULL,NULL 82436,173782,1327905,NULL,NULL,NULL,0,NULL,NULL 82437,126379,1459987,NULL,NULL,NULL,0,NULL,NULL 82438,99490,11238,Great Question Famous Question Notable Question Famous Question Nice Answer Famous Question Nice Answer Enlightened Popular Question Popular Question Famous Question Popular Question Popular Question Nice Answer Notable Question Nice Answer Enlightened Good Question Socratic Nice Question Documentation Pioneer Famous Question Famous Question Yearling Nice Question Nice Question Great Answer Nice Answer Enlightened Popular Question Famous Question Favorite Question Famous Question Good Answer Stellar Question Good Answer Notable Question Notable Question Popular Question Good Answer Notable Question Popular Question Notable Question Good Question Popular Question Popular Question Good Question Notable Question Announcer Necromancer Good Answer Notable Question Famous Question Popular Question Nice Question Popular Question Nice Question Famous Question Announcer Yearling Popular Question Documentation User Nice Answer Popular Question Notable Question Nice Question Popular Question Famous Question Nice Question Nice Answer Nice Question Popular Question Good Answer Notable Question Notable Question Good Question Popular Question Nice Question Popular Question Famous Question Famous Question Great Question Great Question Nice Answer Notable Question Nice Answer Custodian Famous Question Good Question Notable Question Yearling Popular Question Nice Question Good Question,NULL,Why do have to return Unit INSTANCE when implementing in Java Kotlin function that returns Unit java kotlin kotlin interop pIf have Kotlin function ppre codefun cb Int gt Unit code prepand want to call codef code from Java have to do it like ppre codef gt dosomething return Unit INSTANCE code prepwhich looks very ugly Why can just write it like codef gt dosomething code since codeUnit code in Kotlin is equivalent to codevoid code in Java It is because for Java interop Kotlin itself is nice and quite elegant,1,Why do have to return Unit INSTANCE when implementing in Java Kotlin function that returns Unit java kotlin kotlin interop pIf have Kotlin function ppre codefun cb Int gt Unit code prepand want to call codef code from Java have to do it like ppre codef gt dosomething return Unit INSTANCE code prepwhich looks very ugly Why can just write it like codef gt dosomething code since codeUnit code in Kotlin is equivalent to codevoid code in Java,NULL 82439,186774,379703,Nice Question Famous Question Yearling Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 82440,96423,642373,Yearling javascript Good Answer Good Answer Yearling Yearling Guru,NULL,NULL,0,NULL,NULL 82441,248120,1146813,NULL,NULL,NULL,0,NULL,NULL 82442,114377,1052362,NULL,NULL,NULL,0,NULL,NULL 82443,1229004,689699,NULL,NULL,NULL,0,NULL,NULL 82444,144383,976314,Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 82445,857611,872417,NULL,NULL,NULL,0,NULL,NULL 82446,46170,84065,Notable Question Good Question Yearling Custodian Popular Question Nice Answer Notable Question Notable Question Famous Question Great Answer Yearling Famous Question Notable Question Custodian Nice Question Yearling Notable Question Self-Learner Popular Question,NULL,NULL,0,NULL,NULL 82447,2060481,1241423,NULL,NULL,NULL,0,NULL,NULL 82448,39652,1241423,NULL,NULL,NULL,0,NULL,NULL 82449,1397676,935956,NULL,NULL,NULL,0,NULL,NULL 82450,703012,419777,NULL,NULL,NULL,0,NULL,NULL 82451,200409,1269298,Popular Question Popular Question Custodian Popular Question Popular Question Popular Question,NULL,Sum of Two Integers without using operator in python python pNeed some help understanding python solutions of leetcode 371 Sum of Two Integers found href https discuss leetcode com topic 49900 python solution rel noreferrer https discuss leetcode com topic 49900 python solution is the most voted python solution but am having problem understand it pulliHow to understand the usage of MASK and why MASK 0x100000000 liliHow to understand MIN INT MAX INT liliWhen sum beyond MAX INT the functions yells negative value for example getSum 2147483647 2147483647 isn that incorrect li ulhrpre codeclass Solution object def getSum self type int type int rtype int MAX INT 0x7FFFFFFF MIN INT 0x80000000 MASK 0x100000000 while MASK amp lt lt MASK return if lt MAX INT else MIN INT MAX INT code pre yes that is correct Updated title,1,Sum of Two Integers without using operator in python python pNeed some help understanding python solutions of leetcode 371 Sum of Two Integers found href https discuss leetcode com topic 49900 python solution rel noreferrer https discuss leetcode com topic 49900 python solution is the most voted python solution but am having problem understand it pulliHow to understand the usage of MASK and why MASK 0x100000000 liliHow to understand MIN INT MAX INT liliWhen sum beyond MAX INT the functions yells negative value for example getSum 2147483647 2147483647 isn that incorrect li ulhrpre codeclass Solution object def getSum self type int type int rtype int MAX INT 0x7FFFFFFF MIN INT 0x80000000 MASK 0x100000000 while MASK amp lt lt MASK return if lt MAX INT else MIN INT MAX INT code pre,NULL 82452,89407,139226,Nice Answer Enlightened Yearling Good Answer Nice Answer Guru Yearling Nice Answer Enlightened Good Answer Scholar Yearling Necromancer,NULL,NULL,0,NULL,NULL 82453,3563791,931028,NULL,NULL,NULL,0,NULL,NULL 82454,10170,149546,NULL,NULL,NULL,0,NULL,NULL 82455,100374,873943,NULL,NULL,NULL,0,NULL,NULL 82456,50835,1467005,Necromancer Nice Answer Critic,NULL,NULL,0,NULL,NULL 82457,252664,1327967,Revival Scholar Revival Tumbleweed Student,NULL,NULL,0,NULL,NULL 82458,7678246,1064573,NULL,NULL,NULL,0,NULL,NULL 82459,205394,739169,NULL,NULL,NULL,0,NULL,NULL 82460,9194539,364392,Nice Answer Yearling Enlightened Caucus Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 82461,620233,364392,Nice Answer Yearling Enlightened Caucus Necromancer Yearling Revival,NULL,NULL,0,NULL,NULL 82462,1518510,775788,NULL,NULL,NULL,0,NULL,NULL 82463,513142,540742,Good Question Yearling Custodian Autobiographer Custodian Popular Question Good Answer Organizer Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82464,623874,1262061,NULL,NULL,NULL,0,NULL,NULL 82465,1045885,510684,Yearling Critic Necromancer Good Answer Necromancer,NULL,NULL,0,NULL,NULL 82466,465930,80320,Curious,NULL,NULL,0,NULL,NULL 82467,137068,360079,NULL,NULL,NULL,0,NULL,NULL 82468,602588,1111628,Good Answer Yearling,NULL,NULL,0,NULL,NULL 82469,327417,270535,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 82470,60671,647932,NULL,NULL,NULL,0,NULL,NULL 82471,24503,186912,Informed Critic Caucus Constituent Yearling Documentation User Civic Duty,NULL,NULL,0,NULL,NULL 82472,27386,1043368,Supporter Editor Popular Question,NULL,NULL,0,NULL,NULL 82473,487508,1095919,Civic Duty,NULL,NULL,0,NULL,NULL 82474,417934,1358103,Necromancer,NULL,NULL,0,NULL,NULL 82475,342304,732248,Custodian Custodian Custodian Organizer Yearling Explainer Yearling Excavator Tenacious Civic Duty Reviewer Caucus Constituent Necromancer Nice Answer Enlightened Caucus Documentation User Yearling Nice Answer Caucus Yearling,NULL,NULL,0,NULL,NULL 82476,42409,449569,NULL,NULL,NULL,0,NULL,NULL 82477,615314,437273,Self-Learner Popular Question Revival Nice Answer Enlightened Yearling Notable Question Famous Question Citizen Patrol Caucus Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 82478,120777,1097008,NULL,NULL,NULL,0,NULL,NULL 82479,131187,177275,Nice Answer Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Caucus Notable Question Notable Question Nice Answer Civic Duty Popular Question Notable Question Caucus Informed Yearling Notable Question Nice Question Organizer Popular Question Popular Question Popular Question Popular Question Necromancer Yearling Famous Question,NULL,NULL,1,Combine multiple debounce promises in JS javascript npm es6 promise pI would like to optimize multiple expensive server calls by repeatedly calling function that takes key and returns promise of an object When resolved the object is guaranteed to contain the needed key some value and it could contain other unrelated keys The function would pullion first call create promise lilion each call accumulate keys to be sent to the server liliall calls return the same promise until 100ms of quiet time liliwhen no calls are made for 100 ms call the server to process all the keys accumulated so far liliif new call is made even if the server hasn responded yet treat it as the first call by starting new promise with its own set of pending keys liliwhen server call returns resolve the pending promise li ulpAre there any NPM libs that would help with this or should write it from scratch,NULL 82480,159724,533830,NULL,NULL,NULL,0,NULL,NULL 82481,280350,1352240,Custodian Custodian Informed Yearling Peer Pressure Good Answer Student Scholar Yearling Announcer Excavator Yearling,NULL,NULL,0,NULL,NULL 82482,2740276,615872,NULL,NULL,NULL,0,NULL,NULL 82483,335707,978568,Announcer Excavator,NULL,NULL,0,NULL,NULL 82484,1217939,422622,Editor Custodian Revival,NULL,NULL,0,NULL,NULL 82485,235959,1101963,Notable Question Popular Question Yearling Critic Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82486,599793,506937,Promoter Necromancer Nice Answer Yearling Good Question Nice Question Custodian,NULL,NULL,0,NULL,NULL 82487,33177,535941,Commentator Civic Duty,NULL,NULL,0,NULL,NULL 82488,3766818,1448435,Supporter Documentation User Popular Question,NULL,NULL,0,NULL,NULL 82489,3011546,1448435,Supporter Documentation User Popular Question,NULL,NULL,0,NULL,NULL 82490,10864,1448435,Supporter Documentation User Popular Question,NULL,NULL,0,NULL,NULL 82491,1321045,1267086,Scholar Tumbleweed,NULL,NULL,0,NULL,NULL 82492,52908,1066230,NULL,NULL,NULL,0,NULL,NULL 82493,122845,586240,Yearling Excavator Popular Question Yearling Nice Answer Good Answer Yearling Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82494,268600,453645,NULL,NULL,NULL,0,NULL,NULL 82495,428512,1142039,Yearling Nice Question,NULL,NULL,0,NULL,NULL 82496,430089,1034382,NULL,NULL,NULL,0,NULL,NULL 82497,785147,1023088,NULL,NULL,NULL,0,NULL,NULL 82498,25407,565761,NULL,NULL,NULL,0,NULL,NULL 82499,3681,1367855,NULL,NULL,NULL,0,NULL,NULL 82500,23447,562407,NULL,NULL,NULL,0,NULL,NULL 82501,158076,1032683,NULL,NULL,NULL,0,NULL,NULL 82502,6150533,444438,NULL,NULL,NULL,0,NULL,NULL 82503,39575,444438,NULL,NULL,NULL,0,NULL,NULL 82504,1512497,362044,NULL,NULL,NULL,0,NULL,NULL 82505,115081,796985,NULL,NULL,NULL,0,NULL,NULL 82506,1425622,827009,NULL,NULL,NULL,0,NULL,NULL 82507,9564,327508,Famous Question Popular Question Good Question Notable Question Yearling Nice Answer Popular Question Notable Question Popular Question Good Question Great Question Nice Question Nice Question Notable Question Good Question Good Question Famous Question Yearling Cleanup Notable Question Popular Question Nice Question Famous Question Favorite Question python Nice Answer Notable Question Favorite Question Notable Question Yearling Famous Question Famous Question Good Question Great Question Popular Question Popular Question Good Question,NULL,NULL,0,NULL,NULL 82508,1037097,1414873,Good Answer Caucus Yearling Necromancer Caucus,NULL,NULL,0,NULL,NULL 82509,1510175,614077,NULL,NULL,NULL,0,NULL,NULL 82510,167503,1081572,Student Supporter Scholar Editor,NULL,NULL,0,NULL,NULL 82511,40482,1114695,NULL,NULL,NULL,0,NULL,NULL 82512,158355,1267770,NULL,NULL,NULL,0,NULL,NULL 82513,257116,753300,NULL,NULL,NULL,0,NULL,NULL 82514,947108,1063246,NULL,NULL,NULL,0,NULL,NULL 82515,31555,527811,NULL,NULL,NULL,0,NULL,NULL 82516,169723,1012132,Notable Question,NULL,NULL,0,NULL,NULL 82517,1218560,1419474,NULL,NULL,NULL,0,NULL,NULL 82518,378389,1176188,Notable Question,NULL,NULL,0,NULL,NULL 82519,1213180,1176188,Notable Question,NULL,NULL,0,NULL,NULL 82520,22274,24545,Nice Answer Popular Question Good Answer Great Answer Famous Question Notable Question Notable Question Great Question Nice Answer Popular Question Good Question Good Answer Notable Question Good Answer Guru Notable Question Famous Question Stellar Question Popular Question Nice Answer Famous Question Famous Question Good Question Good Question Nice Answer Good Answer Notable Question Good Answer Great Answer Nice Question Popular Question Popular Question Guru Nice Answer Good Answer Notable Question Good Question Famous Question Great Question Yearling Nice Answer Famous Question Nice Answer Good Answer Favorite Question Notable Question Popular Question Great Answer Good Question Good Answer Famous Question Famous Question Famous Question Nice Question Popular Question Guru Nice Question Guru Great Question Famous Question Popular Question Popular Question Nice Answer Guru Nice Answer Nice Answer Enlightened Favorite Question Famous Question heroku Famous Question Notable Question Popular Question Good Answer Popular Question Nice Question Good Answer Good Answer Nice Answer Notable Question Nice Question Nice Question Famous Question Popular Question Yearling Popular Question Nice Answer Nice Question Nice Answer Famous Question Enlightened Favorite Question Good Answer Great Answer Popular Question Guru Famous Question Good Question Nice Answer Good Answer Nice Answer Notable Question Notable Question Notable Question Favorite Question Great Answer Yearling Popular Question Favorite Question Nice Answer Popular Question Nice Question,NULL,NULL,0,NULL,NULL 82521,511088,189995,Custodian Yearling,NULL,NULL,0,NULL,NULL 82522,3072818,189995,Custodian Yearling,NULL,NULL,0,NULL,NULL 82523,424054,207927,Yearling Necromancer Caucus Necromancer,NULL,NULL,0,NULL,NULL 82524,165792,462002,Guru Revival Nice Answer Necromancer Yearling Necromancer Necromancer Revival Nice Answer Yearling Necromancer Necromancer Yearling,NULL,NULL,0,NULL,NULL 82525,693321,531763,NULL,NULL,NULL,0,NULL,NULL 82526,615541,897885,NULL,NULL,NULL,0,NULL,NULL 82527,126435,1093475,NULL,NULL,NULL,0,NULL,NULL 82528,1373492,1564650,NULL,NULL,NULL,0,NULL,NULL 82529,5758095,1564650,NULL,NULL,NULL,0,NULL,NULL 82530,1093709,751646,NULL,NULL,NULL,0,NULL,NULL 82531,2206879,1474113,Announcer Announcer Commentator Announcer Announcer Announcer Critic Announcer Yearling Necromancer Announcer Yearling Nice Answer,NULL,NULL,1,NULL,How to trigger ripple effect on Android Lollipop in specific location within the view without triggering touches events android android lollipop rippledrawable pThis is short question ppSuppose have codeView code with the codeRippleDrawable code as background ppIs there an easy way to trigger the ripple from specific position without triggering any touch or click events pHere is combination of Nikola setHotSpot and href https stackoverflow com 25415471 1474113 https stackoverflow com 25415471 1474113 ppre codeprivate void forceRipple View view int int Drawable background view getBackground if Build VERSION SDK INT gt Build VERSION CODES LOLLIPOP amp amp background instanceof RippleDrawable background setHotspot view setPressed true For quick ripple you can immediately set false view setPressed false code pre 82532,142528,1171003,NULL,NULL,NULL,0,NULL,NULL 82533,127954,991493,Necromancer,NULL,NULL,0,NULL,NULL 82534,248608,1536828,NULL,NULL,NULL,0,NULL,NULL 82535,409618,1394415,NULL,NULL,NULL,0,NULL,NULL 82536,962131,1022726,Nice Answer Yearling Caucus Necromancer Announcer Civic Duty Good Answer Yearling Caucus Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82537,60,1029412,NULL,NULL,NULL,0,NULL,NULL 82538,433380,1000216,NULL,NULL,NULL,0,NULL,NULL 82539,657489,1420827,Popular Question Student,NULL,NULL,0,NULL,NULL 82540,183304,1421076,NULL,NULL,NULL,0,NULL,NULL 82541,111982,936940,NULL,NULL,NULL,0,NULL,NULL 82542,338006,638516,NULL,NULL,NULL,0,NULL,NULL 82543,166123,418892,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82544,325113,1189129,Student,NULL,NULL,0,NULL,NULL 82545,476584,907286,NULL,NULL,NULL,0,NULL,NULL 82546,7235235,762579,Popular Question Popular Question Popular Question Notable Question Notable Question Yearling Famous Question Popular Question Popular Question Famous Question Popular Question Notable Question Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Yearling Popular Question Popular Question Popular Question Popular Question Popular Question Socratic Popular Question Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Custodian Notable Question Notable Question Famous Question Notable Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Famous Question Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Popular Question Caucus Famous Question Popular Question Notable Question Constituent Popular Question Civic Duty Popular Question Notable Question Popular Question Nice Question Popular Question Notable Question Taxonomist Popular Question Popular Question Notable Question Yearling Nice Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Famous Question Popular Question Famous Question Popular Question Notable Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Good Question Popular Question Popular Question,NULL,NULL,1,Typescript TS7006 Parameter xxx implicitly has an any type typescript pIn testing my UserRouter am using json file pp strongdata json strong ppre code id name Luke Cage aliases Carl Lucas Power Man Mr Bulletproof Hero for Hire occupation bartender gender male height ft in hair bald eyes brown powers strength durability healing code prepBuilding my app get the following TS error ppre codeERROR in UserRouter ts 30 27 error TS7006 Parameter user implicitly has an any type code prep strongUserRouter ts strong ppre codeimport Router Request Response NextFunction from express const Users require data export class UserRouter router Router constructor GET one User by id public getOne req Request res Response next NextFunction let query parseInt req params id 30 gt let user Users find user gt user id query if user res status 200 send message Success status res status user else res status 404 send message No User found with the given id status res status const userRouter new UserRouter router export default userRouter code pre,NULL 82547,630317,355490,Yearling cqrs Yearling Popular Question Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82548,784772,842936,NULL,NULL,NULL,0,NULL,NULL 82549,280720,944660,NULL,NULL,NULL,0,NULL,NULL 82550,886244,363473,Nice Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 82551,168359,1007123,NULL,NULL,NULL,0,NULL,NULL 82552,74666,473192,Popular Question Famous Question,NULL,NULL,0,NULL,NULL 82553,124736,902410,Excavator Yearling,NULL,NULL,0,NULL,NULL 82554,340091,297710,Yearling Good Answer Necromancer Yearling Necromancer Revival Guru Nice Answer Yearling Yearling Revival Announcer Yearling Necromancer Caucus Great Answer Announcer Yearling Revival Announcer Famous Question,NULL,h2UPDATE 11 2015 h2pSupport v7 library now includes codePreferenceFragmentCompat code So it will be better idea to use it phrpAdd the following project as library project to your application pp href https github com kolavar android support v4 preferencefragment rel nofollow noreferrer https github com kolavar android support v4 preferencefragment ppYou can keep everything including your fragment transaction as it is When importing the codePreferenceFragment code class make sure the correct import header is user ppre codeimport android support v4 preference PreferenceFragment code prepinstead of ppre codeimport android preference PreferenceFragment code pre Information on current versions of support libraries to be used for Gradle builds including v4 and v7 Preference Support Libraries is here developer android com topic libraries support library There is no support for RingtonePreference For workaround see code google com android issues detail id 183255After spending couple of hours converting my code to use PreferenceFragmentCompat returned back to android preference PreferenceFragment because there is no support for preference headers shown in their own fragment,1,NULL,Android starting up application wait until asynchronous code execution is complete before opening activity android android lifecycle pAt startup of my application would like to execute some initialization code ppI need to initialize pulliRESTkit by setting some HTTP headers liliNeed to make request to the server to get information about the current user liliNeed to make request to the server to get configuration from the current user li ulpAs you know these are asynchronous tasks need to perform ppWhat currently have is my initialization code inside MainActivity onCreate with callback method which will open CoreActivity This works fine when do cold boot of the app ppThe problem begins at the moment the app is moved to the background Android can kill it to free memory force this behavior now by disallowing background processes under codeDeveloper options code ppSo if have ExampleActivity opened and move the app to the background Android tries to reinitialize ExampleActivity when move it to the foreground This means my app doesn initialize properly because MainActivity onCreate is never executed ppSo thought could move the initialiation code to Application onCreate The problem face here is that onCreate completes execution and opens the ExampleActivity even while the initialization code is still running ppI noticed that sleeping the main thread inside Application onCreate is bad Also having while loop watching isInitialized boolean never gets true and ends in infinite loop ppHow should handle this situation ppI would like to do these steps polliApp starting up liliApp is initializing and need to wait on my callback method liliInitializing is done callback method is called open the activity li ol pI had very close problem in my application for years before starting almost any activity or even onResume need to make sure that my application is initialized So far had inserted call to the emsynchronous em initialization code to the onCreate method of many activities in case the initialization is done already the call completes instantly of course ppAs gradually with an application grow the initialization takes more and more time this started to cause ANRs sometimes in different activities so also came to the need to implement the asynchronous initialization on any activity start ppSo recently implemented the below approach which can be looked at tested see the GitHub project and in particular this class href https github com andstatus andstatus blob master app src main java org andstatus app context MyContextHolder java rel nofollow noreferrer MyContextHolder java polli pInsert call to my statically defined application initialization code into onCreate method of every activity which requires application to be initialized passing the calling Activity instance this to the initialization code Basically it looks like ppre codeif MyContextHolder initializeThenRestartMe this return code pre lili pa If initialization is already done return emfalse em instantly Done ppb If the initialization is needed grab the Activity launch parameters the application context so that the activity could be re launched later The simplest case store the Activity Intent activity getIntent and activity getApplicationContext lili pFinish the Activity which is not even shown yet with its finish method lili pOptionally show some Please wait activity to User didn need this yet lili pDo application initialization in background thread specialized AsyncTask using the applicationContext See href https github com andstatus andstatus blob master app src main java org andstatus app context MyFutureContext java rel nofollow noreferrer MyFutureContext java lili pOn completion re launch the Activity using its stored parameters using stored Intent and the Application Context Like this applicationContext startActivity intent li olpOne useful tip In order not to see blinking activities which are being restarted set default application theme in the Android Manifest to transparent one Super ppThe below style definition is from href https github com andstatus andstatus blob master app src main res values themes xml rel nofollow noreferrer themes xml file ppre code lt style name Theme Transparent parent Theme AppCompat NoActionBar gt lt item name android windowIsTranslucent gt true lt item gt lt item name android windowBackground gt color transparent lt item gt lt item name android windowContentOverlay gt lt item gt lt item name android windowNoTitle gt true lt item gt lt item name android windowIsFloating gt true lt item gt lt item name android backgroundDimEnabled gt false lt item gt lt style gt code pre 82555,1043949,7856,Nice Answer Notable Question Nice Answer Notable Question Good Answer Good Answer Stellar Question Popular Question Yearling Favorite Question Great Answer Yearling Famous Question Nice Answer Great Question Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 82556,473452,811356,NULL,NULL,NULL,0,NULL,NULL 82557,559556,1004435,NULL,NULL,NULL,0,NULL,NULL 82558,265192,811766,NULL,NULL,NULL,0,NULL,NULL 82559,69398,1053661,NULL,NULL,NULL,0,NULL,NULL 82560,762676,976371,Teacher Popular Question Notable Question Popular Question Documentation User Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 82561,177121,796732,NULL,NULL,NULL,0,NULL,NULL 82562,21597,904262,Caucus Yearling Caucus Popular Question Notable Question Caucus,NULL,NULL,0,NULL,NULL 82563,97865,614556,NULL,NULL,NULL,0,NULL,NULL 82564,36755,738130,NULL,NULL,NULL,0,NULL,NULL 82565,6836259,635903,NULL,NULL,NULL,0,NULL,NULL 82566,90479,466612,Documentation User,NULL,NULL,0,NULL,NULL 82567,9084098,466612,Documentation User,NULL,NULL,0,NULL,NULL 82568,202580,909873,NULL,NULL,NULL,0,NULL,NULL 82569,417191,827482,NULL,NULL,NULL,0,NULL,NULL 82570,212910,1389132,NULL,NULL,NULL,0,NULL,NULL 82571,18556,1070244,Yearling Nice Answer Enlightened Popular Question Notable Question Announcer Nice Answer Enlightened Nice Answer Enlightened Good Answer Nice Question Nice Answer Yearling Good Answer Nice Answer Enlightened Good Answer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82572,489086,722606,Self-Learner Nice Answer Enlightened Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82573,1230161,601107,NULL,NULL,NULL,0,NULL,NULL 82574,178058,1055372,NULL,NULL,NULL,0,NULL,NULL 82575,106930,876844,NULL,NULL,NULL,0,NULL,NULL 82576,3170845,934083,Notable Question Yearling Good Question,NULL,NULL,0,NULL,NULL 82577,430795,1436863,NULL,NULL,NULL,0,NULL,NULL 82578,14408,1289517,NULL,NULL,,0,, 82579,203192,945401,Editor,NULL,NULL,0,NULL,NULL 82580,1268197,1298043,Notable Question Yearling Nice Answer Necromancer Caucus Constituent Yearling Cleanup Necromancer Announcer Critic Nice Answer Caucus Constituent Yearling Caucus Constituent Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 82581,872939,1170066,NULL,NULL,NULL,0,NULL,NULL 82582,261506,398927,NULL,NULL,NULL,0,NULL,NULL 82583,12680,124355,Caucus Necromancer Yearling,NULL,NULL,0,NULL,NULL 82584,324736,929816,NULL,NULL,NULL,0,NULL,NULL 82585,723690,1315061,NULL,NULL,NULL,0,NULL,NULL 82586,1009759,1383877,Teacher Informed Editor Supporter,NULL,NULL,0,NULL,NULL 82587,44231,1457611,NULL,NULL,NULL,0,NULL,NULL 82588,1509084,1154076,NULL,NULL,NULL,0,NULL,NULL 82589,885931,451752,Yearling,NULL,NULL,0,NULL,NULL 82590,67216,269448,Necromancer Caucus Yearling Yearling Revival Commentator Civic Duty Informed Custodian Yearling Custodian,NULL,NULL,0,NULL,NULL 82591,2504994,849240,NULL,NULL,NULL,0,NULL,NULL 82592,14651,849240,NULL,NULL,NULL,0,NULL,NULL 82593,143687,1392263,Informed Autobiographer,NULL,NULL,0,NULL,NULL 82594,168792,1051249,NULL,NULL,NULL,0,NULL,NULL 82595,10185278,1051249,NULL,NULL,NULL,0,NULL,NULL 82596,1132738,960055,Caucus Popular Question Curious Yearling Popular Question Caucus Popular Question,NULL,NULL,0,NULL,NULL 82597,110915,752095,NULL,NULL,NULL,0,NULL,NULL 82598,3563,1063564,NULL,NULL,NULL,0,NULL,NULL 82599,48777,1036007,NULL,NULL,NULL,0,NULL,NULL 82600,219091,25381,NULL,NULL,NULL,0,NULL,NULL 82601,163664,240448,Notable Question Yearling Good Question Famous Question Nice Question Yearling Nice Answer Enlightened Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 82602,494984,838234,NULL,NULL,NULL,0,NULL,NULL 82603,253340,97897,NULL,NULL,NULL,0,NULL,NULL 82604,717204,797170,NULL,NULL,NULL,0,NULL,NULL 82605,275430,513981,NULL,NULL,NULL,0,NULL,NULL 82606,362333,746191,Teacher Supporter,NULL,NULL,0,NULL,NULL 82607,192428,471652,Popular Question Famous Question Curious Enthusiast Caucus Commentator Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82608,40073,1454243,NULL,NULL,NULL,0,NULL,NULL 82609,41192,1454243,NULL,NULL,NULL,0,NULL,NULL 82610,742001,183623,Famous Question Yearling Supporter Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82611,575826,612920,Popular Question Yearling Notable Question Notable Question Necromancer Popular Question Popular Question Yearling Steward Famous Question Popular Question Caucus Announcer Popular Question Documentation User Yearling Announcer Announcer Caucus Constituent Nice Answer Nice Answer Mortarboard Good Answer Tenacious Popular Question,NULL,Split string using 11 string split 11 pWhat would be easiest method to split string using 11 ppI ve seen the method used by this href https stackoverflow com questions 236129 how to split string in post but feel that there ought to be less verbose way of doing it using the new standard ppEdit would like to have codevector lt string gt code as result and be able to delimitate on single character think the most voted answer http stackoverflow com 236803 612920 is the best,0,NULL,NULL 82612,828165,896419,NULL,NULL,NULL,0,NULL,NULL 82613,251671,528579,NULL,NULL,NULL,0,NULL,NULL 82614,291960,1546824,Yearling,NULL,NULL,0,NULL,NULL 82615,8766566,1546824,Yearling,NULL,NULL,0,NULL,NULL 82616,840932,583892,NULL,NULL,NULL,0,NULL,NULL 82617,329804,582102,NULL,NULL,NULL,0,NULL,NULL 82618,125251,563367,Yearling,NULL,NULL,0,NULL,NULL 82619,175414,130166,Yearling Revival Yearling,NULL,NULL,0,NULL,NULL 82620,1210211,834390,Yearling Notable Question Notable Question Caucus Yearling Famous Question Nice Question Popular Question Great Question Nice Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 82621,135554,5630,Nice Answer Necromancer Yearling Notable Question Stellar Question Custodian Citizen Patrol,NULL,NULL,0,NULL,NULL 82622,84489,421277,Yearling Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 82623,89590,171819,Good Answer Yearling Good Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 82624,66302,855998,Yearling,NULL,NULL,0,NULL,NULL 82625,281551,3031,Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82626,243624,690469,Notable Question Popular Question Popular Question Famous Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82627,268281,256313,NULL,NULL,NULL,0,NULL,NULL 82628,30807,860639,NULL,NULL,NULL,0,NULL,NULL 82629,77256,556766,NULL,NULL,NULL,0,NULL,NULL 82630,46690,900911,Notable Question,NULL,NULL,0,NULL,NULL 82631,93037,464350,Nice Answer Enlightened Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 82632,139799,996015,Popular Question,NULL,NULL,0,NULL,NULL 82633,36751,421478,Student Famous Question,NULL,NULL,0,NULL,NULL 82634,74949,39741,NULL,NULL,NULL,0,NULL,NULL 82635,624321,1202315,NULL,NULL,NULL,0,NULL,NULL 82636,12598,672346,Caucus Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 82637,2041667,672346,Caucus Caucus Caucus Constituent,NULL,NULL,0,NULL,NULL 82638,802769,1086232,Famous Question Good Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 82639,1385196,264650,Notable Question Yearling Taxonomist Notable Question Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 82640,22276,631512,NULL,NULL,NULL,0,NULL,NULL 82641,80608,652830,NULL,NULL,NULL,0,NULL,NULL 82642,142996,549397,Teacher,NULL,NULL,0,NULL,NULL 82643,41455,410759,Critic Yearling Announcer Nice Answer,NULL,NULL,0,NULL,NULL 82644,75091,1241089,NULL,NULL,NULL,0,NULL,NULL 82645,342787,1072058,Popular Question Supporter Caucus Commentator Critic Informed Autobiographer Yearling,NULL,NULL,0,NULL,NULL 82646,93913,85841,NULL,NULL,NULL,0,NULL,NULL 82647,446387,859816,NULL,NULL,NULL,0,NULL,NULL 82648,3734954,1246030,Popular Question,NULL,NULL,0,NULL,NULL 82649,681240,1246030,Popular Question,NULL,NULL,0,NULL,NULL 82650,163729,936730,NULL,NULL,NULL,0,NULL,NULL 82651,436503,936730,NULL,NULL,NULL,0,NULL,NULL 82652,49184,162361,Nice Answer Nice Answer Yearling Yearling Nice Answer Enlightened ios Yearling,NULL,NULL,0,NULL,NULL 82653,3238976,317038,NULL,NULL,NULL,0,NULL,NULL 82654,88135,317038,NULL,NULL,NULL,0,NULL,NULL 82655,63157,214241,Informed,NULL,NULL,0,NULL,NULL 82656,608491,363522,Necromancer Yearling Custodian Yearling Yearling,NULL,NULL,0,NULL,NULL 82657,597622,878935,NULL,NULL,NULL,0,NULL,NULL 82658,199242,1286401,NULL,NULL,NULL,0,NULL,NULL 82659,432051,405154,Great Answer Yearling Custodian Caucus Constituent Caucus Yearling Caucus,NULL,NULL,0,NULL,NULL 82660,11144,586212,NULL,NULL,NULL,0,NULL,NULL 82661,23003,8154,NULL,NULL,NULL,0,NULL,NULL 82662,667130,371321,NULL,NULL,NULL,0,NULL,NULL 82663,442835,113198,Yearling Popular Question,NULL,NULL,0,NULL,NULL 82664,1330321,1029551,Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 82665,233866,322939,Good Answer Yearling Popular Question Good Answer Guru Nice Answer Announcer Famous Question Yearling Revival Custodian Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82666,23610,614819,NULL,NULL,NULL,0,NULL,NULL 82667,881349,735923,Nice Answer Yearling Custodian Custodian,NULL,NULL,0,NULL,NULL 82668,235135,26566,Famous Question Self-Learner Notable Question Yearling Famous Question Great Question Good Question Popular Question Nice Answer Enlightened Yearling Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 82669,161339,370716,NULL,NULL,NULL,0,NULL,NULL 82670,29128,973922,NULL,NULL,NULL,0,NULL,NULL 82671,4714665,125962,Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82672,140195,125962,Necromancer Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82673,244725,443804,NULL,NULL,NULL,0,NULL,NULL 82674,185064,82330,Popular Question Famous Question Popular Question Good Question Yearling Popular Question Popular Question Notable Question Famous Question Good Question Popular Question Great Question Popular Question Yearling Nice Question Notable Question Notable Question Notable Question Notable Question Favorite Question Popular Question Popular Question Good Question Famous Question Yearling Notable Question Notable Question Nice Question Popular Question Notable Question Good Question,NULL,NULL,0,NULL,NULL 82675,125433,991992,Good Answer Popular Question Nice Answer Nice Answer Enlightened Yearling Nice Answer Good Answer Necromancer Guru Yearling Good Answer Nice Answer Enlightened Good Answer Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82676,47895,1282513,Autobiographer Yearling Nice Answer Commentator Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82677,614295,1399753,NULL,NULL,NULL,0,NULL,NULL 82678,199668,384700,Yearling Revival Caucus Self-Learner Yearling Necromancer Custodian Yearling Custodian Necromancer,NULL,NULL,0,NULL,NULL 82679,1687876,848485,Tumbleweed Scholar Commentator,NULL,NULL,0,NULL,NULL 82680,709518,90895,Popular Question Nice Answer Enlightened Yearling Good Answer Guru Yearling Good Answer Nice Answer Census Guru Yearling wcf Custodian,NULL,NULL,0,NULL,NULL 82681,70505,793686,NULL,NULL,NULL,0,NULL,NULL 82682,3159795,1141517,NULL,NULL,NULL,0,NULL,NULL 82683,897459,1141517,NULL,NULL,NULL,0,NULL,NULL 82684,40002,1002082,NULL,NULL,NULL,0,NULL,NULL 82685,836789,129555,Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 82686,7658341,129555,Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 82687,13398,877580,NULL,NULL,NULL,0,NULL,NULL 82688,116948,1138241,NULL,NULL,NULL,0,NULL,NULL 82689,8160245,252905,Notable Question Documentation User,NULL,NULL,0,NULL,NULL 82690,47786,252905,Notable Question Documentation User,NULL,NULL,0,NULL,NULL 82691,18021,16711,Custodian Yearling Good Answer Yearling Yearling Announcer,NULL,NULL,0,NULL,NULL 82692,227120,537341,Nice Answer Yearling Revival Good Answer Yearling Caucus Yearling Nice Answer Enlightened Yearling Critic,NULL,NULL,0,NULL,NULL 82693,319537,211585,NULL,NULL,NULL,0,NULL,NULL 82694,403429,467510,Notable Question Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 82695,628845,847394,NULL,NULL,NULL,0,NULL,NULL 82696,429945,1012252,NULL,NULL,NULL,0,NULL,NULL 82697,229366,1513606,NULL,NULL,NULL,0,NULL,NULL 82698,500525,356725,Caucus,NULL,NULL,0,NULL,NULL 82699,238840,225643,Notable Question Good Question Yearling Yearling Notable Question Famous Question Favorite Question Yearling Great Question,NULL,NULL,0,NULL,NULL 82700,1562530,781037,Informed Autobiographer,NULL,NULL,0,NULL,NULL 82701,262606,1241375,Nice Answer Enlightened Yearling,NULL,NULL,0,NULL,NULL 82702,67634,647210,Curious Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82703,465374,906400,NULL,NULL,NULL,0,NULL,NULL 82704,25275,529894,NULL,NULL,NULL,0,NULL,NULL 82705,2139545,109549,Inquisitive Yearling Enthusiast Nice Question Revival Nice Question Census Popular Question Yearling Famous Question Stellar Question Nice Question Popular Question Famous Question Necromancer Yearling Popular Question Fanatic Nice Question Popular Question,NULL,NULL,0,NULL,NULL 82706,35185,663172,Necromancer Nice Answer Critic Revival Commentator Informed Autobiographer Announcer Yearling Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 82707,367797,521801,Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 82708,319451,623678,Yearling Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 82709,139894,228956,Nice Question,NULL,NULL,0,NULL,NULL 82710,447974,848881,NULL,NULL,NULL,0,NULL,NULL 82711,1431677,871582,NULL,NULL,NULL,0,NULL,NULL 82712,1034762,1189582,Famous Question,NULL,NULL,0,NULL,NULL 82713,291066,496599,Guru Populist Yearling Revival Nice Answer Good Answer Yearling Good Answer Scholar Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82714,12116,962091,Booster Yearling Good Answer Populist Yearling Announcer Announcer Yearling,NULL,NULL,0,NULL,NULL 82715,326113,126600,Announcer Necromancer Yearling Caucus Custodian Populist Announcer Yearling Caucus Good Answer Notable Question Custodian Yearling,NULL,NULL,0,NULL,NULL 82716,655971,697419,NULL,NULL,NULL,0,NULL,NULL 82717,356061,155916,NULL,NULL,NULL,0,NULL,NULL 82718,756615,445943,NULL,NULL,NULL,0,NULL,NULL 82719,92184,636881,NULL,NULL,NULL,0,NULL,NULL 82720,284192,1487687,Yearling Famous Question Yearling Good Question Yearling Necromancer Nice Answer Enlightened Yearling Necromancer Popular Question Good Answer Announcer Guru Necromancer Nice Answer reactjs Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82721,109275,1313972,Notable Question,NULL,NULL,0,NULL,NULL 82722,1309621,1345354,Supporter,NULL,NULL,0,NULL,NULL 82723,226658,104461,Popular Question Notable Question Notable Question Notable Question Popular Question Notable Question Yearling Custodian Great Question Popular Question Notable Question Popular Question Notable Question Good Question Yearling Notable Question Popular Question Popular Question Good Answer Popular Question Popular Question Notable Question Popular Question Yearling Benefactor Popular Question,NULL,NULL,0,NULL,NULL 82724,281126,388520,Nice Answer Nice Question Necromancer Nice Answer Electorate Nice Answer Good Answer Nice Answer Nice Answer Necromancer Famous Question Nice Answer Nice Question Famous Question Good Answer Nice Answer Enlightened Nice Answer Nice Answer Enlightened pointers Necromancer Popular Question Good Answer Nice Answer Nice Answer Good Answer Reversal Famous Question Good Question Good Answer Notable Question Great Answer Nice Answer Guru Nice Answer Good Answer Guru Yearling c-preprocessor Nice Answer Nice Answer Good Answer Good Answer Guru Nice Answer Great Answer Necromancer Benefactor Good Answer Popular Question Nice Answer Nice Answer Enlightened Enlightened Nice Answer Notable Question shell x86 Nice Answer Necromancer Refiner Necromancer Guru Guru Good Answer Good Question Nice Answer Enlightened Nice Answer Good Answer Nice Answer Enlightened Nice Answer Nice Question memory Good Answer Nice Answer Nice Answer Nice Question Nice Answer Nice Answer Enlightened Nice Answer Notable Question Nice Answer Enlightened Nice Answer gcc Nice Answer Nice Answer Nice Answer Enlightened Good Answer Nice Answer Yearling Nice Answer Nice Answer Famous Question Good Answer Caucus Guru Revival Good Answer Nice Answer Nice Answer Guru Nice Answer Enlightened Popular Question Nice Answer Documentation User Announcer Nice Answer Nice Answer Good Answer Guru Nice Answer Enlightened Nice Answer Enlightened Nice Answer Nice Question signals Necromancer Notable Question Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Necromancer Nice Answer Great Question Popular Question Caucus Good Answer Good Answer makefile Nice Answer Nice Answer Popular Question Good Answer Revival Yearling Famous Question Nice Answer Enlightened Necromancer Nice Answer Nice Answer Enlightened Good Answer Announcer Popular Question Nice Answer Good Answer Good Answer Enlightened Good Question Good Answer Necromancer Nice Answer Good Answer Nice Answer memory-management Nice Answer Necromancer Nice Answer Nice Answer Nice Answer Famous Question Nice Answer Announcer,NULL,blockquote pBy the way How to refresh it every time so it print mi in one place just change the number blockquotepIn general the way to do that is with href http www termsys demon co uk vtansi htm rel noreferrer terminal control codes This is particularly simple case for which you only need one special character 000D CARRIAGE RETURN which is written code code in Python and many other languages Here complete example based on your code ppre codefrom sys import stdoutfrom time import sleepfor in range 20 stdout write stdout flush sleep stdout write move the cursor to the next line code prepSome things about this that may be surprising pulliThe code code goes at the beginning of the string so that while the program is running the cursor will always be after the number This isn just cosmetic some terminal emulators get very confused if you do it the other way around liliIf you don include the last line then after the program terminates your shell will print its prompt on top of the number liliThe codestdout flush code is necessary on some systems or you won get any output Other systems may not require it but it doesn do any harm li ulpIf you find that this doesn work the first thing you should suspect is that your terminal emulator is buggy The href http invisible island net vttest rel noreferrer vttest program can help you test it ppYou could replace the codestdout write code with codeprint code statement but prefer not to mix codeprint code with direct use of file objects Right that because the REPL messes with the terminal itself in order to provide command history and editing fancier REPL might even let you manipulate that process CPython doesn don know if IPython does MSVC warning 4611 regarding setjmp POD struct visual studio 2017 compiler warnings longjmp setjmp pTrying to turn up some warning levels on codebase that also builds as giving Visual Studio shot for some reason ppGot warning about setjmp interactions despite not seeing any relevant destructors so did test ppre code include lt setjmp gt struct int int main struct jmp buf buf if setjmp buf longjmp buf else whatever code prepEnabling the warning on the command line ppre codeC wherever gt cl we4611 test cpp code preblockquote ptest cpp test cpp error C4611 interaction between setjmp and object destruction is non portable blockquotepThis seems like an extremely useful warning if it was warning me about crossing destructor code But that POD type There shouldn be any destructor code ppAm missing something here or did they botch this warning to the point of making it basically you used setjmp in program Does the warning mysteriously vanish if you enable optimization This particular diagnostic may be sensitive to whether the compiler has noticed that type is POD and it might not be so careful about noticing in the minimize compilation time default mode MSVC warning 4611 regarding setjmp POD struct visual studio 2017 compiler warnings longjmp setjmp pTrying to turn up some warning levels on codebase that also builds as giving Visual Studio shot for some reason ppGot warning about setjmp interactions despite not seeing any relevant destructors so did test ppre code include lt setjmp gt struct int int main struct jmp buf buf if setjmp buf longjmp buf else whatever code prepEnabling the warning on the command line ppre codeC wherever gt cl we4611 test cpp code preblockquote ptest cpp test cpp error C4611 interaction between setjmp and object destruction is non portable blockquotepThis seems like an extremely useful warning if it was warning me about crossing destructor code But that POD type There shouldn be any destructor code ppAm missing something here or did they botch this warning to the point of making it basically you used setjmp in program afraid that me out of ideas then agree with your assessment that the warning is worthless if it triggers on PODs pThe stack size is an operating system parameter adjustable per process see href http pubs opengroup org onlinepubs 007904975 functions setrlimit html codesetrlimit code You can adjust it from within as far as can tell but you can adjust it from the shell before starting with the codeulimit code command It works like this ppre code ulimit print default8192 slave Cstack info size size 8388608 code prep8388608 1024 8192 is printing the same value as codeulimit code but in bytes instead of kilobytes ppre code ulimit 16384 enlarge stack limit to 16 megs slave Cstack info size size 16777216 code pre haven the faintest idea Ask new question and specifically mention tag Windows and hopefully someone who does know will answer Integer to float conversions with IEEE FP ieee 754 pWhat are the guarantees regarding conversions from integral to floating point types in implementation supporting IEEE 754 FP arithmetic ppSpecifically is it always well defined behaviour to convert any integral value to any floating point type possibly resulting in value of code inf code Or are there situations in which this would result in undefined behaviour pp Note am not asking about exact conversion just if performing the conversion is always legal from the point of view of the language standard Sadly don see anything in http www open std org jtc1 sc22 wg21 docs cwg status html or https cplusplus github io EWG ewg status html that suggests that the committee is considering an equivalent of Annex ulli codevfork code is an obsolete optimization Before good memory management codefork code made full copy of the parent memory so it was pretty expensive since in many cases codefork code was followed by codeexec code which discards the current memory map and creates new one it was needless expense Nowadays codefork code doesn copy the memory it simply set as copy on write so codefork code codeexec code is just as efficient as codevfork code codeexec code lili codeclone code is the syscall used by codefork code with some parameters it creates new process with others it creates thread the difference between them is just which data structures memory space processor state stack PID open files etc are shared or not li ul It has to copy all the page tables set all writable memory copy on write in both processes flush the TLB and then it has to revert all the changes to the parent and flush the TLB again on exec,1,NULL,getrandom syscall in not found linux ubuntu gcc system calls emThe problem was resolved by upgrading the library em phrpI would like to use the syscall getrandom href http man7 org linux man pages man2 getrandom html rel noreferrer http man7 org linux man pages man2 getrandom html ppgcc std c11 test ppre code include lt sys types gt include lt sys stat gt include lt sys fcntl gt include lt errno gt include lt string gt include lt signal gt include lt linux random gt include lt sys syscall gt int main void void buf NULL size unsigned int int syscall SYS getrandom buf return code prepor ppre code int main void void buf NULL size unsigned int int getrandom buf return code prepAnyway when try to compile it with gcc ppre codetest In function ‘main’ test 14 17 warning implicit declaration of function ‘getrandom’ Wimplicit function declaration int getrandom buf tmp ccqFdJAJ In function main test text 0x36 undefined reference to getrandom collect2 error ld returned exit status code prepI am using Ubuntu 14 04 what can do to use getrandom As it is new syscall how can use it ppedit ppre codeuname gt 040003 generic 201505131441 SMP Wed May 13 13 43 16 UTC 2015 x86 64 x86 64 x86 64 GNU Linux code prepwhen replace by codeint syscall SYS getrandom buf codeor getrandom buf it is the same href https sourceware org ml libc alpha 2017 02 msg00079 html rel nofollow noreferrer codegetrandom code and codegetentropy code were added to glibc in version 25 As of July 2017 most Linux distributions have not yet updated to this version Debian most recent release which just came out has 24 but they should soon ppHere is how to use the glibc wrappers if available and fall back to the raw system call if not ppre code define GNU SOURCE include lt sys types gt include lt unistd gt if defined GLIBC amp amp defined linux if GLIBC gt GLIBC MINOR gt 24 include lt sys random gt intmy getentropy void buf size buflen return getentropy buf buflen else older glibc include lt sys syscall gt include lt errno gt intmy getentropy void buf size buflen if buflen gt 256 errno EIO return return syscall SYS getrandom buf buflen endif else not linux or not glibc error Need implementation for whatever operating system this is endif code prep As pointed out in other answers it is also necessary to ensure you have kernel 17 or newer Both the above versions of codemy getentropy code will fail and set codeerrno code to codeENOSYS code if run on an older kernel 82725,610095,801825,NULL,NULL,NULL,0,NULL,NULL 82726,865529,178348,Nice Question Notable Question Yearling Popular Question Famous Question Caucus Famous Question Good Question,NULL,NULL,0,NULL,NULL 82727,115027,661744,Yearling Notable Question,NULL,NULL,0,NULL,NULL 82728,67940,307436,Notable Question,NULL,NULL,0,NULL,NULL 82729,457984,1504048,NULL,NULL,NULL,0,NULL,NULL 82730,337464,1009952,Informed,NULL,NULL,0,NULL,NULL 82731,785471,850006,NULL,NULL,NULL,0,NULL,NULL 82732,1377156,1333481,Yearling Guru Caucus Nice Answer Yearling Caucus Good Answer Yearling,NULL,NULL,0,NULL,NULL 82733,1170553,195124,Yearling Notable Question Yearling Custodian Custodian Custodian Census Popular Question Yearling,NULL,NULL,0,NULL,NULL 82734,935471,979399,NULL,NULL,NULL,0,NULL,NULL 82735,64685,979399,NULL,NULL,NULL,0,NULL,NULL 82736,3100326,856912,NULL,NULL,NULL,0,NULL,NULL 82737,18809,856912,NULL,NULL,NULL,0,NULL,NULL 82738,2647880,1247516,NULL,NULL,NULL,0,NULL,NULL 82739,195433,1227597,Informed Critic Popular Question,NULL,NULL,0,NULL,NULL 82740,48151,1386769,Teacher,NULL,NULL,0,NULL,NULL 82741,21433,35511,Nice Answer Revival nim Yearling Necromancer Yearling Necromancer Nice Answer Enlightened Civic Duty Necromancer Nice Answer Necromancer Yearling Populist,NULL,NULL,0,NULL,NULL 82742,5555,773953,Popular Question Popular Question Yearling Popular Question Famous Question Famous Question Nice Question Notable Question Popular Question Nice Question Necromancer Yearling Popular Question,NULL,NULL,0,NULL,NULL 82743,391677,233075,NULL,NULL,NULL,0,NULL,NULL 82744,4303190,950804,Notable Question,NULL,NULL,0,NULL,NULL 82745,107377,950804,Notable Question,NULL,NULL,0,NULL,NULL 82746,44510,585304,NULL,NULL,NULL,0,NULL,NULL 82747,2351603,649421,NULL,NULL,NULL,0,NULL,NULL 82748,112483,863799,Popular Question,NULL,NULL,0,NULL,NULL 82749,3875978,523612,Good Answer Good Answer regex Good Answer Nice Question Documentation Pioneer Nice Answer Nice Answer Nice Answer Caucus Great Answer Good Answer Good Answer Yearling Great Answer class Nice Answer Nice Answer Good Answer Good Answer Guru Good Answer Documentation User Nice Answer Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened Nice Answer Nice Answer Enlightened Nice Answer Great Answer Good Answer Guru Good Answer python-3.x Guru Nice Answer Nice Answer Enlightened Good Answer Yearling,NULL,NULL,0,NULL,NULL 82750,406724,965817,Yearling Popular Question,NULL,NULL,0,NULL,NULL 82751,314372,1293903,NULL,NULL,NULL,0,NULL,NULL 82752,1219663,374420,Popular Question mongodb Nice Question Good Question Yearling Notable Question Popular Question Popular Question Good Answer Necromancer Nice Answer Nice Question Famous Question Nice Answer Notable Question Good Answer Nice Question Nice Answer Enlightened Notable Question Yearling Necromancer Necromancer Popular Question Famous Question Good Answer Nice Question Caucus Nice Answer Yearling Nice Answer Good Question Good Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 82753,1542637,1410811,NULL,NULL,NULL,0,NULL,NULL 82754,331388,836,Popular Question Good Question Notable Question,NULL,NULL,0,NULL,NULL 82755,1046341,666712,NULL,NULL,NULL,0,NULL,NULL 82756,1145167,278421,Teacher Revival Necromancer,NULL,NULL,0,NULL,NULL 82757,511245,1269774,Notable Question Notable Question Citizen Patrol Popular Question Good Question Yearling Good Question Notable Question Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82758,48552,1264209,NULL,NULL,NULL,0,NULL,NULL 82759,591436,1233881,NULL,NULL,NULL,0,NULL,NULL 82760,2295019,799781,NULL,NULL,NULL,0,NULL,NULL 82761,509681,515578,Good Answer Yearling Notable Question Famous Question Popular Question Popular Question Notable Question Autobiographer Popular Question Popular Question Popular Question Good Answer Popular Question Yearling Tumbleweed,NULL,NULL,1,NULL,Update enum column in Laravel migration using PostgreSQL postgresql laravel laravel laravel migrations pAccording to href https stackoverflow com questions 25251186 laravel migration update enum options this answer have to run raw query if want to update an codeenum code in MySQL But with PostgreSQL can use this query and enum type for PostgreSQL in Laravel seems strange pp strongIs there any way to update enum in migration for postgreSQL strong pTo extend on answer here is generic method you can use ppre code Alter an enum field constraints table field array options protected function alterEnum table field array options check table field check enumList foreach options as option enumList sprintf CHARACTER VARYING option enumString implode enumList DB transaction function use table field check options enumString DB statement sprintf ALTER TABLE DROP CONSTRAINT table check DB statement sprintf ALTER TABLE ADD CONSTRAINT CHECK TEXT ANY ARRAY TEXT table check field enumString code prepExample usage ppre code this gt alterEnum mytable status pending accepted canceled code prepNote that if you are dropping constraint that is used in the table you will need to either rename all instances to something that will be in the list or delete all instances before you run this function 82762,1339372,1067957,Supporter,NULL,NULL,0,NULL,NULL 82763,305444,1414282,Student Scholar,NULL,NULL,0,NULL,NULL 82764,214215,62628,Revival Yearling,NULL,NULL,0,NULL,NULL 82765,293060,700780,NULL,NULL,NULL,0,NULL,NULL 82766,389323,1205348,Notable Question,NULL,NULL,0,NULL,NULL 82767,936832,1205348,Notable Question,NULL,NULL,0,NULL,NULL 82768,17978,48597,Caucus Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82769,20941,576883,NULL,NULL,NULL,0,NULL,NULL 82770,264965,1429691,Teacher Necromancer Yearling Caucus,NULL,NULL,0,NULL,NULL 82771,1431876,1118565,Supporter,NULL,NULL,0,NULL,NULL 82772,300873,1011888,NULL,NULL,,0,, 82773,37557,17052,Informed,NULL,NULL,0,NULL,NULL 82774,481361,1347167,NULL,NULL,NULL,0,NULL,NULL 82775,1117333,937069,NULL,NULL,NULL,0,NULL,NULL 82776,208976,1206208,NULL,NULL,NULL,0,NULL,NULL 82777,220498,313675,Editor Popular Question Scholar Supporter Custodian Commentator Popular Question Popular Question Tumbleweed Curious Yearling Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82778,39006,119131,Famous Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 82779,373423,55724,Yearling Good Answer Yearling Good Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82780,406343,239956,NULL,NULL,NULL,0,NULL,NULL 82781,202456,1201498,NULL,NULL,NULL,0,NULL,NULL 82782,14946,117879,Student Scholar Revival,NULL,NULL,0,NULL,NULL 82783,174461,177977,NULL,NULL,NULL,0,NULL,NULL 82784,100331,1498743,NULL,NULL,NULL,0,NULL,NULL 82785,430442,1089159,NULL,NULL,NULL,0,NULL,NULL 82786,209887,721709,NULL,NULL,NULL,0,NULL,NULL 82787,527891,1225741,Nice Answer Caucus Caucus Custodian Custodian Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 82788,1271309,1245418,Yearling Popular Question Popular Question Popular Question Notable Question Notable Question Popular Question Nice Question Critic Enthusiast Necromancer Nice Question Notable Question Popular Question Caucus Popular Question Popular Question Popular Question Good Question Famous Question Yearling Popular Question Popular Question Notable Question Popular Question Notable Question Popular Question Notable Question Notable Question Revival Notable Question Popular Question Notable Question Popular Question Popular Question Popular Question Popular Question Nice Answer Yearling Nice Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question Notable Question Notable Question Good Question Popular Question,NULL,pThe codeorder by code solution suggested by other answers is actually an extraordinarily bad thing to do for tables that have large numbers of rows It results in an codeORDER BY RAND code SQL query As an example here how mysql handles that the situation is not much different for other databases Imagine your table has one billion rows polliTo accomplish codeORDER BY RAND code it needs codeRAND code column to sort on liliTo do that it needs new table the existing table has no such column liliTo do that mysql creates new temporary table with the new columns and copies the existing ONE BILLION ROWS OF DATA into it liliAs it does so it does as you asked and runs rand for every row to fill in that value Yes you ve instructed mysql to GENERATE ONE BILLION RANDOM NUMBERS That takes while liliA few hours days later when it done it now has to sort it Yes you ve instructed mysql to SORT THIS ONE BILLION ROW WORST CASE ORDERED TABLE worst case because the sort key is random liliA few days weeks later when that done it faithfully grabs the two measly rows you actually needed and returns them for you Nice job li olpNote just for little extra gravy be aware that mysql will initially try to create that temp table in RAM When that exhausted it puts everything on hold to copy the whole thing to disk so you get that extra knife twist of an bottleneck for nearly the entire process ppDoubters should look at the generated query to confirm that it codeORDER BY RAND code then Google for order by rand with the quotes ppA much better solution is to trade that one emreally em expensive query for three cheap ones limit offset instead of codeORDER BY RAND code ppre codeimport randomlast MyModel objects count 1index1 random randint last Here one simple way to keep even distribution for index2 while still gauranteeing not to match index1 index2 random randint last if index2 index1 index2 lastMyObj1 MyModel objects all index1 MyObj2 MyModel objects all index2 code pre Could you do something even more clever like hashing uuid into say 1000 buckets and then randomly select one of those buckets then do second random to pick from objects in that bucket Maybe this is more clever maybe not But need something very efficient,0,NULL,NULL 82789,186472,830229,Good Answer Yearling Yearling Nice Answer Yearling Nice Answer,NULL,pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it Did you set the push default config Also do you have the remote set up pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it It does but then when you try to pull you ll have to specify from where The sets up the branch tracking between origin and your local repo pYou can make this happen with less typing First change the way your push works ppre codegit config global push default current code prepThis will infer the codeorigin my branch code part thus you can do ppre codegit push code prepWhich will both create the remote branch with the same name and track it Yes you can name remote whatever you want origin happens to be the default that git uses,0,NULL,NULL 82790,204671,341271,NULL,NULL,NULL,0,NULL,NULL 82791,910655,485446,NULL,NULL,NULL,0,NULL,NULL 82792,231997,949167,Necromancer Notable Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82793,895420,17476,Famous Question Popular Question,NULL,NULL,0,NULL,NULL 82794,1868039,1338636,NULL,NULL,NULL,0,NULL,NULL 82795,502938,169201,Popular Question Necromancer Promoter Editor,NULL,NULL,0,NULL,NULL 82796,530250,690920,Custodian Yearling Nice Answer Enlightened Custodian Yearling Popular Question Organizer Documentation User Popular Question Revival Popular Question Famous Question Popular Question Yearling Popular Question Notable Question Custodian Custodian Notable Question,NULL,NULL,0,NULL,NULL 82797,41550,91359,Yearling Popular Question Famous Question Popular Question Necromancer Popular Question Inquisitive Caucus Revival Yearling Popular Question Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82798,33229,170128,Popular Question Necromancer Custodian Informed Yearling,NULL,NULL,0,NULL,NULL 82799,462778,929494,Popular Question Notable Question Enlightened Nice Answer Yearling Popular Question Nice Question Nice Question Citizen Patrol Custodian Critic Enthusiast Yearling Curious Custodian Famous Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 82800,437863,421201,Necromancer Good Answer Autobiographer Revival Curious,NULL,NULL,0,NULL,NULL 82801,13476,615092,NULL,NULL,NULL,0,NULL,NULL 82802,188089,184082,Nice Answer,NULL,NULL,0,NULL,NULL 82803,303185,175901,Tumbleweed Teacher Popular Question,NULL,NULL,0,NULL,NULL 82804,865746,1458656,NULL,NULL,NULL,0,NULL,NULL 82805,66276,441911,NULL,NULL,NULL,0,NULL,NULL 82806,248495,202274,NULL,NULL,NULL,0,NULL,NULL 82807,335674,494738,NULL,NULL,NULL,0,NULL,NULL 82808,133975,1517109,Census,NULL,NULL,0,NULL,NULL 82809,66730,87969,Yearling,NULL,NULL,0,NULL,NULL 82810,2495416,1291371,Autobiographer Informed Editor Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 82811,944047,1291371,Autobiographer Informed Editor Teacher Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 82812,219095,363088,NULL,NULL,NULL,0,NULL,NULL 82813,479285,784300,NULL,NULL,NULL,0,NULL,NULL 82814,399745,923349,Caucus Constituent Caucus Constituent Yearling,NULL,NULL,0,NULL,NULL 82815,184451,1427418,Great Question Yearling Yearling,NULL,NULL,0,NULL,NULL 82816,723633,884990,Nice Question Popular Question Critic Commentator,NULL,NULL,0,NULL,NULL 82817,1555349,399239,NULL,NULL,NULL,0,NULL,NULL 82818,1211475,529801,Popular Question Great Answer Self-Learner Notable Question Famous Question Necromancer Yearling Notable Question Popular Question Popular Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82819,1399944,688207,NULL,NULL,NULL,0,NULL,NULL 82820,312931,501807,Yearling,NULL,NULL,0,NULL,NULL 82821,461300,978352,Yearling Famous Question Critic Curious Caucus Popular Question Good Question Yearling Notable Question Popular Question Announcer,NULL,NULL,0,NULL,NULL 82822,21229,128023,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 82823,520834,1435364,Teacher,NULL,NULL,0,NULL,NULL 82824,59394,1235042,NULL,NULL,NULL,0,NULL,NULL 82825,168651,1183860,Popular Question,NULL,NULL,0,NULL,NULL 82826,323131,310999,Popular Question,NULL,NULL,0,NULL,NULL 82827,414277,1406431,NULL,NULL,NULL,0,NULL,NULL 82828,212578,271253,Yearling Critic Nice Answer Necromancer Yearling Revival Nice Answer Great Answer Yearling,NULL,NULL,0,NULL,NULL 82829,322014,356274,Nice Answer Yearling Caucus Informed Autobiographer Caucus Good Answer Yearling Announcer Enthusiast Nice Answer,NULL,NULL,0,NULL,NULL 82830,744909,731775,Nice Answer Revival Notable Question Yearling Necromancer Yearling Necromancer Nice Question Commentator Nice Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82831,232348,269033,Yearling Nice Answer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82832,191688,841897,NULL,NULL,NULL,0,NULL,NULL 82833,1842788,605265,NULL,NULL,NULL,0,NULL,NULL 82834,153482,1382948,Notable Question Teacher Notable Question,NULL,NULL,0,NULL,NULL 82835,80537,809877,Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82836,845749,1098525,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82837,72902,746276,Nice Answer,NULL,NULL,0,NULL,NULL 82838,4862640,275959,Nice Answer Curious Yearling Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82839,189943,159376,Yearling Tumbleweed Yearling,NULL,NULL,0,NULL,NULL 82840,442152,523244,NULL,NULL,NULL,0,NULL,NULL 82841,31900,815823,NULL,NULL,NULL,0,NULL,NULL 82842,69762,268592,Yearling Nice Answer Nice Answer Enlightened Caucus Constituent Census Yearling Reviewer Informed Nice Answer Famous Question Caucus Constituent Revival Documentation User Marshal Census Yearling Caucus,NULL,NULL,0,NULL,NULL 82843,901482,1430599,Editor Commentator Critic Yearling Yearling Citizen Patrol Organizer Popular Question Caucus Yearling Caucus Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82844,1509042,572767,NULL,NULL,NULL,0,NULL,NULL 82845,592942,325317,Yearling Curious Nice Answer,NULL,NULL,0,NULL,NULL 82846,213798,1124193,Popular Question Informed Autobiographer,NULL,NULL,0,NULL,NULL 82847,578993,1558289,NULL,NULL,NULL,0,NULL,NULL 82848,19589,297189,Yearling Critic Good Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 82849,19677,1159636,Popular Question,NULL,NULL,0,NULL,NULL 82850,81658,1022591,Famous Question Notable Question,NULL,NULL,0,NULL,NULL 82851,276088,1381529,Autobiographer Yearling Critic,NULL,NULL,0,NULL,NULL 82852,128203,217113,NULL,NULL,NULL,0,NULL,NULL 82853,309866,1443591,NULL,NULL,NULL,0,NULL,NULL 82854,480385,242296,NULL,NULL,NULL,0,NULL,NULL 82855,247898,815386,Popular Question Nice Answer Nice Answer Enlightened Yearling Tumbleweed Documentation Pioneer Nice Answer Enlightened Popular Question Caucus Constituent Famous Question Popular Question Good Answer Yearling Announcer Documentation User Announcer Nice Question Famous Question Announcer Announcer Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 82856,79000,568120,NULL,NULL,NULL,0,NULL,NULL 82857,100301,356090,Necromancer Yearling Nice Answer Notable Question,NULL,NULL,0,NULL,NULL 82858,745960,827739,NULL,NULL,NULL,0,NULL,NULL 82859,298252,868883,NULL,NULL,NULL,0,NULL,NULL 82860,18553,567298,NULL,NULL,NULL,0,NULL,NULL 82861,63586,379848,NULL,NULL,NULL,0,NULL,NULL 82862,118317,1296810,Notable Question Notable Question,NULL,NULL,0,NULL,NULL 82863,85567,405505,Necromancer Custodian Nice Answer Yearling Nice Answer Enlightened Nice Answer Revival Necromancer Necromancer Yearling Nice Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82864,534814,671880,Critic Revival Necromancer Student Yearling,NULL,NULL,0,NULL,NULL 82865,542818,731405,NULL,NULL,NULL,0,NULL,NULL 82866,791681,1009243,Notable Question,NULL,NULL,0,NULL,NULL 82867,90310,1396810,NULL,NULL,NULL,0,NULL,NULL 82868,224723,905132,Yearling Good Question Popular Question Caucus Nice Question Documentation User Popular Question Custodian Custodian Custodian Yearling,NULL,NULL,0,NULL,NULL 82869,14765,682252,Curious Announcer Notable Question,NULL,NULL,0,NULL,NULL 82870,66327,414646,Self-Learner Yearling Famous Question Popular Question Popular Question Popular Question Caucus Popular Question Popular Question Caucus Popular Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82871,1758325,1001686,Popular Question Nice Question Nice Answer Famous Question Yearling Good Answer Nice Answer Revival Yearling Famous Question Yearling,NULL,NULL,1,Quirk when parent class method accesses the subclass constants ruby oop pGiven the following code ppre codeclass Parent CONSTANT Parent def self do the thing puts CONSTANT puts self CONSTANT endendclass Child lt Parent CONSTANT Child end code prepAnd the following method calls ppre codeputs Parent do the thing Parent Parentputs Child do the thing Parent Child code prepWhy doesn codeChild do the thing code print Child twice,NULL 82872,98956,1001686,Popular Question Nice Question Nice Answer Famous Question Yearling Good Answer Nice Answer Revival Yearling Famous Question Yearling,NULL,NULL,1,Quirk when parent class method accesses the subclass constants ruby oop pGiven the following code ppre codeclass Parent CONSTANT Parent def self do the thing puts CONSTANT puts self CONSTANT endendclass Child lt Parent CONSTANT Child end code prepAnd the following method calls ppre codeputs Parent do the thing Parent Parentputs Child do the thing Parent Child code prepWhy doesn codeChild do the thing code print Child twice,NULL 82873,241968,534159,NULL,NULL,NULL,0,NULL,NULL 82874,745624,458290,Popular Question Enthusiast,NULL,NULL,0,NULL,NULL 82875,202560,1233778,NULL,NULL,NULL,0,NULL,NULL 82876,26863,671376,NULL,NULL,NULL,0,NULL,NULL 82877,48670,1354686,NULL,NULL,NULL,0,NULL,NULL 82878,309167,486732,Yearling Famous Question Famous Question Nice Question Great Question Yearling Nice Question,NULL,NULL,0,NULL,NULL 82879,378718,937772,NULL,NULL,NULL,0,NULL,NULL 82880,185411,1485388,NULL,NULL,NULL,0,NULL,NULL 82881,99867,221770,Notable Question Yearling Nice Answer Necromancer Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82882,630488,1348601,Necromancer Explainer Tag Editor Yearling Necromancer Popular Question Caucus Nice Answer Enlightened Census Yearling Custodian Nice Answer Enlightened Necromancer Revival Nice Answer Civic Duty Proofreader Yearling Custodian,NULL,NULL,0,NULL,NULL 82883,313675,305524,Popular Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 82884,907951,517885,NULL,NULL,NULL,0,NULL,NULL 82885,263758,321824,Notable Question Revival Popular Question Popular Question Famous Question,NULL,NULL,0,NULL,NULL 82886,135744,781552,Notable Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82887,1519644,520225,NULL,NULL,NULL,0,NULL,NULL 82888,311206,898678,Yearling Guru Necromancer Yearling Yearling,NULL,NULL,0,NULL,NULL 82889,317500,679881,Notable Question,NULL,NULL,0,NULL,NULL 82890,89438,528023,Student,NULL,NULL,0,NULL,NULL 82891,1393512,1206349,Necromancer Yearling Necromancer Nice Answer Yearling Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 82892,1181056,590433,NULL,NULL,NULL,0,NULL,NULL 82893,1909661,771602,NULL,NULL,NULL,0,NULL,NULL 82894,103596,943710,NULL,NULL,NULL,0,NULL,NULL 82895,257664,337249,Yearling Yearling Stellar Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 82896,18079,62248,Excavator Yearling Yearling Nice Answer Census Yearling Good Answer,NULL,NULL,0,NULL,NULL 82897,186229,360008,NULL,NULL,NULL,0,NULL,NULL 82898,831405,1319650,NULL,NULL,NULL,0,NULL,NULL 82899,300218,685101,Necromancer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82900,374540,1322843,Popular Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 82901,368626,956030,Notable Question Organizer Nice Answer Yearling Custodian Revival Yearling Custodian Good Answer Yearling linux,NULL,NULL,0,NULL,NULL 82902,152850,737723,Yearling,NULL,NULL,0,NULL,NULL 82903,20418,180290,Popular Question Nice Question Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82904,30159,608309,NULL,NULL,NULL,0,NULL,NULL 82905,927801,882891,Popular Question,NULL,NULL,0,NULL,NULL 82906,622862,1225401,Popular Question Notable Question,NULL,NULL,0,NULL,NULL 82907,120642,302229,Informed Caucus Caucus Constituent Nice Question Caucus Notable Question Yearling,NULL,NULL,0,NULL,NULL 82908,1059483,281599,Yearling Promoter Benefactor Notable Question Necromancer Revival Caucus Constituent Nice Question Yearling Famous Question Nice Answer Caucus Necromancer Popular Question Yearling Notable Question Notable Question,NULL,NULL,0,NULL,NULL 82909,745171,726312,Yearling Citizen Patrol Famous Question Popular Question Popular Question Nice Question Good Question Notable Question Notable Question Yearling Popular Question Popular Question Necromancer Yearling Notable Question,NULL,NULL,0,NULL,NULL 82910,280095,701945,Popular Question Critic Popular Question,NULL,NULL,0,NULL,NULL 82911,632230,1329247,Yearling Caucus,NULL,NULL,0,NULL,NULL 82912,1152560,1242919,NULL,NULL,NULL,0,NULL,NULL 82913,518113,1242919,NULL,NULL,NULL,0,NULL,NULL 82914,345059,286595,Nice Answer Yearling Nice Answer Nice Answer Enlightened Nice Answer Nice Answer Yearling Nice Answer Nice Answer Enlightened Good Answer Nice Answer Nice Answer Nice Answer Nice Answer Enlightened Yearling Nice Answer Populist Great Answer,NULL,NULL,0,NULL,NULL 82915,96038,620742,NULL,NULL,NULL,0,NULL,NULL 82916,1037359,485465,NULL,NULL,NULL,0,NULL,NULL 82917,81027,297524,NULL,NULL,NULL,0,NULL,NULL 82918,15708,237264,Nice Answer Editor Yearling Caucus Critic Informed Caucus Yearling Nice Answer Good Answer,NULL,NULL,0,NULL,NULL 82919,294188,933142,NULL,NULL,NULL,0,NULL,NULL 82920,576469,933142,NULL,NULL,NULL,0,NULL,NULL 82921,74907,1286233,NULL,NULL,NULL,0,NULL,NULL 82922,108203,91163,Yearling Revival Famous Question Good Question Nice Question Nice Question Good Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 82923,99248,389779,Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 82924,24581,452280,Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 82925,52629,453317,NULL,NULL,NULL,0,NULL,NULL 82926,226924,413685,NULL,NULL,NULL,0,NULL,NULL 82927,22575,413685,NULL,NULL,NULL,0,NULL,NULL 82928,486602,657358,Yearling Good Question Popular Question Yearling Necromancer Notable Question Yearling,NULL,NULL,0,NULL,NULL 82929,303752,481815,Notable Question Autobiographer Caucus Nice Answer Enlightened Popular Question,NULL,NULL,0,NULL,NULL 82930,87249,249230,Notable Question Yearling Nice Answer Quorum Popular Question Nice Answer Enlightened Popular Question Nice Question Popular Question Caucus Constituent Popular Question Custodian Yearling Notable Question Famous Question Custodian Necromancer Popular Question Popular Question Yearling Organizer Caucus Popular Question Nice Answer Popular Question Necromancer Famous Question Necromancer Popular Question Good Question Popular Question Popular Question Notable Question Notable Question Popular Question Notable Question,NULL,pThis is Python bug When waiting for condition in threading Condition wait KeyboardInterrupt is never sent Repro ppre codeimport threadingcond threading Condition threading Lock cond acquire cond wait None print done code prepThe KeyboardInterrupt exception won be delivered until wait returns and it never returns so the interrupt never happens KeyboardInterrupt should almost certainly interrupt condition wait ppNote that this doesn happen if timeout is specified cond wait will receive the interrupt immediately So workaround is to specify timeout To do that replace ppre code results pool map slowly square range 40 code prepwith ppre code results pool map async slowly square range 40 get 9999999 code prepor similar This doesn work for me with Python on Windows get tons of stack traces and other garbage when do Ctrl same as without such workaround In fact none of the solutions ve tried from this thread seem to work,0,NULL,NULL 82931,89557,172367,NULL,NULL,NULL,0,NULL,NULL 82932,333847,794957,NULL,NULL,NULL,0,NULL,NULL 82933,255249,929874,Yearling Caucus Constituent Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 82934,7663826,929874,Yearling Caucus Constituent Popular Question Self-Learner,NULL,NULL,0,NULL,NULL 82935,479611,1039646,NULL,NULL,NULL,0,NULL,NULL 82936,44083,181167,Editor Yearling Commentator Scholar,NULL,NULL,0,NULL,NULL 82937,26378,811248,Yearling Yearling Yearling Good Answer,NULL,NULL,0,NULL,NULL 82938,2184448,1116341,Notable Question Popular Question Custodian Commentator Popular Question,NULL,NULL,0,NULL,NULL 82939,184284,439026,Good Answer Organizer Yearling Announcer Guru Custodian Announcer Yearling Famous Question Nice Answer Enlightened typescript Census Caucus Good Answer Great Answer Yearling Guru,NULL,NULL,0,NULL,NULL 82940,645431,724072,Yearling Revival Necromancer Necromancer Popular Question Yearling Popular Question Nice Answer Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 82941,365529,769755,NULL,NULL,NULL,0,NULL,NULL 82942,1750021,769755,NULL,NULL,NULL,0,NULL,NULL 82943,179810,307272,Necromancer Yearling Notable Question Nice Answer Peer Pressure Custodian Yearling Revival,NULL,NULL,0,NULL,NULL 82944,1360933,988896,NULL,NULL,NULL,0,NULL,NULL 82945,64490,765361,NULL,NULL,NULL,0,NULL,NULL 82946,8042,95670,Notable Question Yearling Necromancer Nice Answer Popular Question Yearling Nice Question Popular Question Announcer Notable Question,NULL,NULL,0,NULL,NULL 82947,23400,118912,Nice Answer Yearling Yearling Custodian Custodian Caucus Yearling Custodian,NULL,NULL,0,NULL,NULL 82948,177072,1140377,NULL,NULL,NULL,0,NULL,NULL 82949,471423,315599,NULL,NULL,NULL,0,NULL,NULL 82950,12184,17469,Nice Answer Enlightened Good Question Notable Question Great Answer Yearling Great Answer Notable Question Nice Answer Enlightened Great Question Famous Question Yearling Good Answer Announcer Popular Question Famous Question Great Question Nice Answer Enlightened Synonymizer Announcer Nice Answer Enlightened Popular Question Yearling Booster Good Answer Announcer,NULL,NULL,0,NULL,NULL 82951,174338,592496,NULL,NULL,NULL,0,NULL,NULL 82952,167840,29325,Good Answer,NULL,NULL,0,NULL,NULL 82953,396898,412785,Good Answer Yearling Popular Question Nice Answer Yearling Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82954,264369,577788,Popular Question,NULL,NULL,0,NULL,NULL 82955,27767,111896,Great Question Nice Question Notable Question Guru Enlightened Favorite Question Popular Question Yearling Great Answer Nice Answer Enlightened Necromancer Notable Question Notable Question Caucus Nice Question Nice Question Famous Question Popular Question Notable Question Notable Question Good Answer Yearling Popular Question Caucus Custodian Notable Question Popular Question Good Question Great Answer Yearling Good Answer,NULL,NULL,0,NULL,NULL 82956,188106,23582,Announcer Yearling Excavator Good Question,NULL,NULL,0,NULL,NULL 82957,164941,683941,Nice Answer,NULL,NULL,0,NULL,NULL 82958,373517,1429798,Nice Question Notable Question,NULL,NULL,0,NULL,NULL 82959,91583,1015200,Teacher Supporter Popular Question,NULL,NULL,0,NULL,NULL 82960,723324,809075,NULL,NULL,NULL,0,NULL,NULL 82961,897766,1340179,NULL,NULL,NULL,0,NULL,NULL 82962,154403,144297,Nice Answer Enlightened Notable Question Good Question Notable Question Popular Question Popular Question Yearling Notable Question Nice Question Popular Question Famous Question Nice Question Popular Question Nice Answer Nice Question Necromancer Yearling Good Answer Notable Question Popular Question Nice Question Notable Question Nice Question Nice Question Notable Question Yearling Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 82963,248241,876272,NULL,NULL,NULL,0,NULL,NULL 82964,378471,520201,NULL,NULL,NULL,0,NULL,NULL 82965,48964,1337941,Yearling Announcer Yearling Yearling,NULL,NULL,0,NULL,NULL 82966,81945,1116766,Supporter Revival,NULL,NULL,0,NULL,NULL 82967,747123,76488,NULL,NULL,NULL,0,NULL,NULL 82968,2031847,1026937,Popular Question Teacher Notable Question Notable Question Tumbleweed Caucus Yearling Revival,NULL,NULL,0,NULL,NULL 82969,3996987,1358388,NULL,NULL,NULL,0,NULL,NULL 82970,321217,1358388,NULL,NULL,NULL,0,NULL,NULL 82971,9038356,1358388,NULL,NULL,NULL,0,NULL,NULL 82972,38730,1406048,NULL,NULL,NULL,0,NULL,NULL 82973,356390,748926,NULL,NULL,NULL,0,NULL,NULL 82974,180043,878343,NULL,NULL,NULL,0,NULL,NULL 82975,531795,819498,NULL,NULL,NULL,0,NULL,NULL 82976,188289,1166289,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 82977,1429279,1119081,NULL,NULL,NULL,0,NULL,NULL 82978,859816,916656,Civic Duty,NULL,NULL,0,NULL,NULL 82979,54010,404824,NULL,NULL,NULL,0,NULL,NULL 82980,98762,2594,Notable Question,NULL,NULL,0,NULL,NULL 82981,414210,1394636,NULL,NULL,NULL,0,NULL,NULL 82982,308570,986743,Nice Question Popular Question Nice Answer Popular Question Popular Question Notable Question Good Answer Good Answer Good Answer Notable Question Good Answer Nice Question Yearling Nice Question Caucus Popular Question Famous Question Good Answer Notable Question Guru Nice Answer Popular Question Good Answer Popular Question Yearling Revival Nice Answer Enlightened Famous Question Guru Famous Question Announcer Custodian Custodian Popular Question Nice Question Yearling Favorite Question Notable Question Nice Question,NULL,NULL,0,NULL,NULL 82983,545542,1093367,NULL,NULL,NULL,0,NULL,NULL 82984,7838,358250,NULL,NULL,NULL,0,NULL,NULL 82985,62890,1217172,NULL,NULL,NULL,0,NULL,NULL 82986,398197,454991,Good Answer Yearling,NULL,NULL,0,NULL,NULL 82987,127078,134427,Yearling Good Question Notable Question,NULL,NULL,0,NULL,NULL 82988,70842,755582,Notable Question Popular Question Nice Question Popular Question Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 82989,125709,1214087,NULL,NULL,NULL,0,NULL,NULL 82990,182336,237347,Nice Answer Yearling,NULL,NULL,0,NULL,NULL 82991,1294626,830094,NULL,NULL,NULL,0,NULL,NULL 82992,186469,830094,NULL,NULL,NULL,0,NULL,NULL 82993,6427,586580,Promoter Curious Benefactor Necromancer,NULL,NULL,0,NULL,NULL 82994,123763,270006,Yearling Yearling Yearling Organizer Yearling Informed Caucus Constituent Yearling Custodian Civic Duty Yearling Custodian Promoter Explainer Benefactor Caucus Documentation User Yearling Caucus Popular Question,NULL,NULL,0,NULL,NULL 82995,111721,1447863,NULL,NULL,NULL,0,NULL,NULL 82996,19798,819236,Teacher,NULL,NULL,0,NULL,NULL 82997,825975,106410,Yearling Custodian Guru Nice Answer Enlightened Notable Question Custodian Nice Answer Yearling Documentation User Nice Answer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 82998,905307,1288363,NULL,NULL,NULL,0,NULL,NULL 82999,216435,750595,NULL,NULL,NULL,0,NULL,NULL 83000,20694,745550,NULL,NULL,NULL,0,NULL,NULL 83001,1856691,876238,NULL,NULL,NULL,0,NULL,NULL 83002,40980,875459,Notable Question,NULL,NULL,0,NULL,NULL 83003,1509464,950749,NULL,NULL,NULL,0,NULL,NULL 83004,136287,579164,Famous Question,NULL,NULL,0,NULL,NULL 83005,38420,22312,Notable Question Popular Question Yearling Good Answer Nice Answer Nice Answer Enlightened Yearling Yearling,NULL,NULL,0,NULL,NULL 83006,102954,1014739,NULL,NULL,NULL,0,NULL,NULL 83007,132499,675207,NULL,NULL,NULL,0,NULL,NULL 83008,127592,235006,Popular Question,NULL,NULL,0,NULL,NULL 83009,2794361,1266911,NULL,NULL,NULL,0,NULL,NULL 83010,664518,1266911,NULL,NULL,NULL,0,NULL,NULL 83011,262227,403784,NULL,NULL,NULL,0,NULL,NULL 83012,975658,315565,Scholar Curious Commentator Critic Popular Question,NULL,NULL,0,NULL,NULL 83013,390288,991153,NULL,NULL,NULL,0,NULL,NULL 83014,170726,562395,NULL,NULL,NULL,0,NULL,NULL 83015,442126,966359,NULL,NULL,NULL,0,NULL,NULL 83016,180331,813609,Nice Answer Caucus Caucus,NULL,NULL,0,NULL,NULL 83017,155744,1016997,Notable Question Popular Question Enthusiast Yearling Good Question Popular Question Nice Question Famous Question,NULL,NULL,0,NULL,NULL 83018,412554,916683,NULL,NULL,NULL,0,NULL,NULL 83019,120394,977493,Yearling Yearling,NULL,NULL,0,NULL,NULL 83020,611740,969104,NULL,NULL,NULL,0,NULL,NULL 83021,162279,1098396,NULL,NULL,NULL,0,NULL,NULL 83022,70631,559114,NULL,NULL,NULL,0,NULL,NULL 83023,98588,1136604,Supporter Documentation User,NULL,NULL,0,NULL,NULL 83024,48332,172324,NULL,NULL,NULL,0,NULL,NULL 83025,486663,570087,Revival Supporter Necromancer Enthusiast Census Fanatic Nice Answer,NULL,NULL,0,NULL,NULL 83026,19771,570087,Revival Supporter Necromancer Enthusiast Census Fanatic Nice Answer,NULL,NULL,0,NULL,NULL 83027,233825,990964,Peer Pressure Informed Autobiographer,NULL,NULL,0,NULL,NULL 83028,702690,831838,Yearling Announcer swift Notable Question Revival Good Question Yearling Caucus Constituent Nice Answer Enlightened Notable Question Great Answer Census Necromancer Caucus Nice Answer Enlightened objective-c Yearling Enthusiast Necromancer,NULL,NULL,0,NULL,NULL 83029,385157,1303830,Nice Answer Yearling Popular Question Caucus,NULL,NULL,0,NULL,NULL 83030,27479,511191,NULL,NULL,NULL,0,NULL,NULL 83031,953803,1305463,Notable Question Yearling Famous Question Popular Question Notable Question Famous Question,NULL,NULL,0,NULL,NULL 83032,339935,267491,Yearling Nice Question Nice Question Nice Question Famous Question Popular Question Yearling Good Question Notable Question Famous Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 83033,679488,894434,NULL,NULL,NULL,0,NULL,NULL 83034,302533,1213540,NULL,NULL,NULL,0,NULL,NULL 83035,2940,722409,Custodian Curious Yearling Commentator Great Answer Tumbleweed Editor Yearling Nice Answer Caucus Yearling Necromancer,NULL,NULL,0,NULL,NULL 83036,131006,978012,NULL,NULL,NULL,0,NULL,NULL 83037,12617,256394,NULL,NULL,NULL,0,NULL,NULL 83038,48292,830602,NULL,NULL,NULL,0,NULL,NULL 83039,438386,572802,Caucus Peer Pressure Student Informed Caucus Nice Answer,NULL,NULL,0,NULL,NULL 83040,85201,910207,NULL,NULL,NULL,0,NULL,NULL 83041,90115,421923,Yearling Notable Question Nice Question Popular Question Yearling Popular Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 83042,158893,126056,Great Answer Yearling Yearling Yearling,NULL,NULL,0,NULL,NULL 83043,273949,1138201,NULL,NULL,NULL,0,NULL,NULL 83044,12080,472486,Excavator Curious Announcer Announcer,NULL,NULL,0,NULL,NULL 83045,87717,1411765,Popular Question,NULL,NULL,0,NULL,NULL 83046,1344294,829518,Popular Question Curious Notable Question Self-Learner Famous Question Caucus Constituent Popular Question,NULL,NULL,0,NULL,NULL 83047,168724,163611,NULL,NULL,NULL,0,NULL,NULL 83048,46722,629494,NULL,NULL,NULL,0,NULL,NULL 83049,186242,815004,Supporter,NULL,NULL,0,NULL,NULL 83050,60883,276694,NULL,NULL,NULL,0,NULL,NULL 83051,198027,1507141,NULL,NULL,NULL,0,NULL,NULL 83052,27647,1085154,NULL,NULL,NULL,0,NULL,NULL 83053,194385,479411,NULL,NULL,NULL,0,NULL,NULL 83054,234343,893981,Announcer,NULL,NULL,0,NULL,NULL 83055,246476,225429,Nice Question Notable Question Caucus Critic Commentator,NULL,NULL,0,NULL,NULL 83056,155348,538999,NULL,NULL,NULL,0,NULL,NULL 83057,170628,1052786,NULL,NULL,NULL,0,NULL,NULL 83058,155534,853226,NULL,NULL,NULL,0,NULL,NULL 83059,956665,716622,Popular Question Commentator,NULL,NULL,0,NULL,NULL 83060,7333290,1076981,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83061,6235330,1076981,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83062,10576553,54850,NULL,NULL,NULL,0,NULL,NULL 83063,198968,333392,Popular Question Yearling Caucus Popular Question Yearling Notable Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 83064,127211,1057317,NULL,NULL,NULL,0,NULL,NULL 83065,1165392,864722,NULL,NULL,NULL,0,NULL,NULL 83066,467761,494312,NULL,NULL,NULL,0,NULL,NULL 83067,650202,746994,NULL,NULL,NULL,0,NULL,NULL 83068,2225,619532,NULL,NULL,NULL,0,NULL,NULL 83069,887649,1503259,Informed,NULL,NULL,0,NULL,NULL 83070,403105,1503259,Informed,NULL,NULL,0,NULL,NULL 83071,1122952,628590,NULL,NULL,NULL,0,NULL,NULL 83072,155435,916419,Notable Question Popular Question,NULL,NULL,0,NULL,NULL 83073,309475,1528071,NULL,NULL,NULL,0,NULL,NULL 83074,1100779,1086971,NULL,NULL,NULL,0,NULL,NULL 83075,1594492,816653,Nice Question Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 83076,469575,1437712,NULL,NULL,NULL,0,NULL,NULL 83077,340140,688781,Supporter,NULL,NULL,0,NULL,NULL 83078,145071,631641,NULL,NULL,NULL,0,NULL,NULL 83079,889886,277368,Notable Question Favorite Question Yearling Nice Question Famous Question Popular Question Great Question Famous Question Yearling Famous Question Popular Question Notable Question Notable Question Good Question Nice Question Notable Question Caucus Nice Question Favorite Question Popular Question Popular Question Yearling Popular Question Famous Question Nice Question Notable Question Popular Question Notable Question Custodian,NULL,NULL,0,NULL,NULL 83080,376795,1553632,NULL,NULL,NULL,0,NULL,NULL 83081,202916,1297634,Supporter Necromancer,NULL,NULL,0,NULL,NULL 83082,248607,988722,NULL,NULL,NULL,0,NULL,NULL 83083,202427,1145041,NULL,NULL,NULL,0,NULL,NULL 83084,220031,90172,Announcer Caucus Census Caucus Yearling,NULL,NULL,0,NULL,NULL 83085,684211,997453,Critic Caucus Caucus,NULL,NULL,0,NULL,NULL 83086,8290,259848,NULL,NULL,NULL,0,NULL,NULL 83087,374232,953991,Popular Question Critic Yearling Notable Question Nice Question Popular Question Necromancer Popular Question Popular Question Good Question Popular Question Popular Question Popular Question Yearling Famous Question Popular Question Popular Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 83088,108880,668478,NULL,NULL,NULL,0,NULL,NULL 83089,259501,1112267,NULL,NULL,NULL,0,NULL,NULL 83090,1076498,494295,Caucus Editor Tumbleweed Caucus Popular Question Yearling Caucus,NULL,NULL,0,NULL,NULL 83091,1278488,1176195,NULL,NULL,NULL,0,NULL,NULL 83092,170376,425758,Notable Question Popular Question Yearling Necromancer Nice Answer Yearling Nice Answer Good Question Announcer Notable Question Yearling Necromancer Good Answer Yearling Notable Question Famous Question Nice Question Yearling,NULL,NULL,0,NULL,NULL 83093,82867,1093295,NULL,NULL,NULL,0,NULL,NULL 83094,3536841,788767,Student Scholar Supporter,NULL,NULL,0,NULL,NULL 83095,348311,788767,Student Scholar Supporter,NULL,NULL,0,NULL,NULL 83096,4634118,1155597,NULL,NULL,NULL,0,NULL,NULL 83097,44492,905260,Yearling Notable Question Nice Answer Notable Question Good Answer Notable Question,NULL,NULL,0,NULL,NULL 83098,32915,1232233,NULL,NULL,NULL,0,NULL,NULL 83099,56083,1289609,NULL,NULL,NULL,0,NULL,NULL 83100,103329,337140,Notable Question Popular Question Nice Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 83101,437757,1137862,NULL,NULL,NULL,0,NULL,NULL 83102,440401,1340133,NULL,NULL,NULL,0,NULL,NULL 83103,29501,1461740,NULL,NULL,NULL,0,NULL,NULL 83104,3029005,1490159,NULL,NULL,NULL,0,NULL,NULL 83105,218143,900278,Popular Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83106,893185,384219,Tumbleweed Popular Question,NULL,NULL,0,NULL,NULL 83107,120670,1129378,NULL,NULL,NULL,0,NULL,NULL 83108,263409,501175,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 83109,253318,798154,Popular Question,NULL,NULL,0,NULL,NULL 83110,134979,188357,Popular Question Yearling Enthusiast Notable Question Popular Question Popular Question Yearling Popular Question Great Question Popular Question Popular Question Popular Question Popular Question Yearling Popular Question Favorite Question Popular Question,NULL,NULL,0,NULL,NULL 83111,657351,1372375,NULL,NULL,NULL,0,NULL,NULL 83112,62729,411135,Yearling Yearling Popular Question Popular Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 83113,1136905,824831,Teacher,NULL,NULL,0,NULL,NULL 83114,128436,824499,Yearling Nice Question Famous Question Notable Question Nice Question Notable Question Notable Question Nice Question Nice Question Yearling Nice Question Popular Question Popular Question Famous Question Popular Question Custodian Famous Question Notable Question Yearling Popular Question,NULL,NULL,0,NULL,NULL 83115,25493,401406,Critic Yearling Caucus,NULL,NULL,0,NULL,NULL 83116,144837,429442,NULL,NULL,NULL,0,NULL,NULL 83117,34755,733887,NULL,NULL,NULL,0,NULL,NULL 83118,2651809,1150083,NULL,NULL,NULL,0,NULL,NULL 83119,170621,1118788,Necromancer,NULL,NULL,0,NULL,NULL 83120,249987,262868,Notable Question Popular Question Popular Question Popular Question Nice Question Notable Question Notable Question Famous Question Popular Question Notable Question Notable Question Notable Question Popular Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 83121,5536413,1058832,NULL,NULL,NULL,0,NULL,NULL 83122,255455,966103,Famous Question Yearling Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 83123,425854,966103,Famous Question Yearling Yearling Popular Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 83124,252646,620945,NULL,NULL,NULL,0,NULL,NULL 83125,11047770,1188895,NULL,NULL,NULL,0,NULL,NULL 83126,174887,1188895,NULL,NULL,NULL,0,NULL,NULL 83127,1832684,1188895,NULL,NULL,NULL,0,NULL,NULL 83128,813067,1188895,NULL,NULL,NULL,0,NULL,NULL 83129,162710,244404,NULL,NULL,NULL,0,NULL,NULL 83130,763164,1057954,NULL,NULL,NULL,0,NULL,NULL 83131,19257,1177470,NULL,NULL,NULL,0,NULL,NULL 83132,172109,264984,Yearling Nice Question Good Question Notable Question Notable Question Popular Question Popular Question Famous Question Nice Question Yearling Famous Question Stellar Question Favorite Question Popular Question Good Question Yearling Nice Question Famous Question Famous Question Popular Question,NULL,NULL,0,NULL,NULL 83133,94797,306590,NULL,NULL,NULL,0,NULL,NULL 83134,350093,542834,Popular Question,NULL,NULL,0,NULL,NULL 83135,1316127,881598,NULL,NULL,NULL,0,NULL,NULL 83136,311778,1188597,Good Answer Enthusiast Nice Answer Yearling Yearling,NULL,NULL,0,NULL,NULL 83137,99332,1349708,Supporter,NULL,NULL,0,NULL,NULL 83138,608956,1051377,Popular Question Tumbleweed Revival,NULL,NULL,0,NULL,NULL 83139,864608,1544920,Student Popular Question,NULL,NULL,0,NULL,NULL 83140,3567224,1544920,Student Popular Question,NULL,NULL,0,NULL,NULL 83141,470672,622758,NULL,NULL,NULL,0,NULL,NULL 83142,196771,311811,Yearling Caucus Nice Answer Yearling Great Answer Yearling,NULL,NULL,0,NULL,NULL 83143,575156,1433273,Yearling Revival Popular Question Yearling,NULL,NULL,0,NULL,NULL 83144,1510336,866233,NULL,NULL,NULL,0,NULL,NULL 83145,1508507,615826,Student,NULL,NULL,0,NULL,NULL 83146,8504,455905,Yearling Good Answer Revival Yearling Popular Question Notable Question Guru,NULL,NULL,0,NULL,NULL 83147,635159,1018263,NULL,NULL,NULL,0,NULL,NULL 83148,2702422,1018263,NULL,NULL,NULL,0,NULL,NULL 83149,308381,729636,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 83150,4749421,729636,Popular Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 83151,199467,173627,Census,NULL,NULL,0,NULL,NULL 83152,1504369,50773,Yearling Great Question Good Answer Yearling Nice Answer Favorite Question Guru Yearling Nice Answer Guru Favorite Question,NULL,NULL,0,NULL,NULL 83153,177450,1536735,Popular Question Curious Necromancer Nice Answer Popular Question Popular Question Tumbleweed,NULL,NULL,0,NULL,NULL 83154,325367,775783,Yearling Excavator Necromancer,NULL,NULL,1,NULL,Split array into chunks javascript arrays split pLet say that have an Javascript array looking as following ppre code Element Element Element with close to hundred elements code prepWhat approach would be appropriate to chunk split the array into many smaller arrays with lets say 10 elements at its most pCreated npm package for this href https www npmjs com package array chunk rel noreferrer https www npmjs com package array chunk ppre code var result for var lt arr length size result push arr slice size return result code pre 83155,110237,518813,Notable Question Famous Question Necromancer,NULL,NULL,0,NULL,NULL 83156,183058,472851,NULL,NULL,NULL,0,NULL,NULL 83157,141207,975222,Nice Answer Notable Question Popular Question Popular Question Notable Question Popular Question Popular Question Caucus Popular Question Popular Question Notable Question Yearling Famous Question Popular Question Nice Question Popular Question Popular Question Popular Question Good Answer Popular Question,NULL,NULL,0,NULL,NULL 83158,94331,1094088,NULL,NULL,NULL,0,NULL,NULL 83159,839413,314875,Notable Question Yearling,NULL,NULL,0,NULL,NULL 83160,20507,1473625,NULL,NULL,NULL,0,NULL,NULL 83161,1024324,879734,NULL,NULL,NULL,0,NULL,NULL 83162,175188,1400032,NULL,NULL,NULL,0,NULL,NULL 83163,435019,930836,Popular Question Editor Popular Question,NULL,NULL,0,NULL,NULL 83164,187723,1427582,NULL,NULL,NULL,0,NULL,NULL 83165,890589,896655,NULL,NULL,NULL,0,NULL,NULL 83166,27346,552504,NULL,NULL,NULL,0,NULL,NULL 83167,343204,1079225,Popular Question Civic Duty Popular Question Popular Question Popular Question Popular Question Famous Question Popular Question Yearling Popular Question Caucus Notable Question Notable Question Nice Question Popular Question Nice Question Inquisitive,NULL,NULL,0,NULL,NULL 83168,900019,1409930,Yearling Nice Question Nice Answer Famous Question Nice Answer Enlightened Yearling Great Answer Yearling Necromancer Good Question,NULL,NULL,0,NULL,NULL 83169,299860,1242369,NULL,NULL,NULL,0,NULL,NULL 83170,206192,303234,NULL,NULL,NULL,0,NULL,NULL 83171,1069836,1230893,Notable Question,NULL,NULL,0,NULL,NULL 83172,234413,119088,Popular Question,NULL,NULL,0,NULL,NULL 83173,303629,1420401,NULL,NULL,NULL,0,NULL,NULL 83174,134731,956007,Informed,NULL,NULL,0,NULL,NULL 83175,183219,956476,NULL,NULL,NULL,0,NULL,NULL 83176,450224,1305764,Yearling Good Answer Caucus Yearling Popular Question Caucus Necromancer,NULL,NULL,0,NULL,NULL 83177,2469791,638666,NULL,NULL,NULL,0,NULL,NULL 83178,141462,1112248,NULL,NULL,NULL,0,NULL,NULL 83179,78054,794424,Caucus Yearling Yearling Yearling Peer Pressure Nice Question Popular Question Popular Question Yearling Popular Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 83180,480015,391148,Scholar Supporter,NULL,NULL,0,NULL,NULL 83181,16545,1236305,NULL,NULL,NULL,0,NULL,NULL 83182,238826,1072641,NULL,NULL,NULL,0,NULL,NULL 83183,200989,988267,NULL,NULL,NULL,0,NULL,NULL 83184,176774,1087231,NULL,NULL,NULL,0,NULL,NULL 83185,248235,384657,NULL,NULL,NULL,0,NULL,NULL 83186,722863,1300255,NULL,NULL,NULL,0,NULL,NULL 83187,416254,797806,NULL,NULL,NULL,0,NULL,NULL 83188,387647,802544,Critic Caucus,NULL,NULL,0,NULL,NULL 83189,633041,1003296,NULL,NULL,NULL,0,NULL,NULL 83190,437440,465594,Custodian Good Question Notable Question Popular Question Notable Question Notable Question Yearling Disciplined Nice Question Notable Question Famous Question Notable Question Necromancer Yearling Good Question Famous Question Good Answer Notable Question Famous Question Yearling,NULL,NULL,0,NULL,NULL 83191,172162,807653,NULL,NULL,NULL,0,NULL,NULL 83192,7075,1183236,NULL,NULL,NULL,0,NULL,NULL 83193,99312,915048,Critic,NULL,NULL,0,NULL,NULL 83194,391250,925815,NULL,NULL,NULL,0,NULL,NULL 83195,181636,883383,NULL,NULL,NULL,0,NULL,NULL 83196,469513,1002329,Yearling Caucus Necromancer Necromancer,NULL,NULL,0,NULL,NULL 83197,7991397,657334,NULL,NULL,NULL,0,NULL,NULL 83198,217794,1455544,NULL,NULL,NULL,0,NULL,NULL 83199,923877,1098002,Popular Question,NULL,NULL,0,NULL,NULL 83200,48601,1275518,Notable Question,NULL,NULL,0,NULL,NULL 83201,513631,803403,Supporter,NULL,NULL,0,NULL,NULL 83202,729621,985156,Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83203,117460,883321,NULL,NULL,NULL,0,NULL,NULL 83204,79548,1114117,Notable Question Notable Question Nice Question Nice Question Favorite Question Notable Question Notable Question Popular Question Notable Question Yearling Notable Question Famous Question Popular Question Popular Question Great Question Popular Question Yearling Good Question Popular Question Notable Question Popular Question Nice Question,NULL,NULL,0,NULL,NULL 83205,41573,77922,Yearling Notable Question Popular Question Yearling Popular Question Yearling Good Question,NULL,NULL,0,NULL,NULL 83206,46066,1008235,Student,NULL,NULL,0,NULL,NULL 83207,326631,1121276,Editor,NULL,NULL,0,NULL,NULL 83208,1518607,575870,NULL,NULL,NULL,0,NULL,NULL 83209,47332,897356,NULL,NULL,NULL,0,NULL,NULL 83210,100419,925957,NULL,NULL,NULL,0,NULL,NULL 83211,421499,194357,NULL,NULL,NULL,0,NULL,NULL 83212,1027103,358535,Autobiographer Announcer,NULL,NULL,0,NULL,NULL 83213,518243,1167411,Teacher,NULL,NULL,0,NULL,NULL 83214,200590,606817,Famous Question,NULL,NULL,0,NULL,NULL 83215,156116,346701,Famous Question,NULL,NULL,0,NULL,NULL 83216,353085,696208,Popular Question Yearling Caucus Popular Question Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 83217,392472,1466522,Informed Autobiographer,NULL,NULL,0,NULL,NULL 83218,1303383,248522,NULL,NULL,NULL,0,NULL,NULL 83219,3001263,248522,NULL,NULL,NULL,0,NULL,NULL 83220,1082069,543353,Yearling Caucus Custodian Citizen Patrol Caucus,NULL,pAnother way to implement Pair with pulliPublic immutable fields simple data structure liliComparable liliSimple hash and equals lili pSimple factory so you don have to provide the types Pair of hello ppre codepublic class Pair lt FIRST SECOND gt implements Comparable lt Pair lt FIRST SECOND gt gt public final FIRST first public final SECOND second private Pair FIRST first SECOND second this first first this second second public static lt FIRST SECOND gt Pair lt FIRST SECOND gt of FIRST first SECOND second return new Pair lt FIRST SECOND gt first second public int compareTo Pair lt FIRST SECOND gt int cmp compare first first return cmp compare second second cmp todo move this to helper class private static int compare Object o1 Object o2 return o1 null o2 null o2 null Comparable o1 compareTo o2 public int hashCode return 31 hashcode first hashcode second todo move this to helper class private static int hashcode Object return null hashCode public boolean equals Object obj if obj instanceof Pair return false if this obj return true return equal first Pair obj first amp amp equal second Pair obj second todo move this to helper class private boolean equal Object o1 Object o2 return o1 null o2 null o1 o2 o1 equals o2 public String toString return first second code pre li ul is xor not power pAnother way to implement Pair with pulliPublic immutable fields simple data structure liliComparable liliSimple hash and equals lili pSimple factory so you don have to provide the types Pair of hello ppre codepublic class Pair lt FIRST SECOND gt implements Comparable lt Pair lt FIRST SECOND gt gt public final FIRST first public final SECOND second private Pair FIRST first SECOND second this first first this second second public static lt FIRST SECOND gt Pair lt FIRST SECOND gt of FIRST first SECOND second return new Pair lt FIRST SECOND gt first second public int compareTo Pair lt FIRST SECOND gt int cmp compare first first return cmp compare second second cmp todo move this to helper class private static int compare Object o1 Object o2 return o1 null o2 null o2 null Comparable o1 compareTo o2 public int hashCode return 31 hashcode first hashcode second todo move this to helper class private static int hashcode Object return null hashCode public boolean equals Object obj if obj instanceof Pair return false if this obj return true return equal first Pair obj first amp amp equal second Pair obj second todo move this to helper class private boolean equal Object o1 Object o2 return o1 null o2 null o1 o2 o1 equals o2 public String toString return first second code pre li ul the situation with strings is different the alphabet size is typically smaller char vs int,0,NULL,NULL 83221,164812,604142,Nice Question Necromancer Caucus Yearling Popular Question Nice Answer Nice Question Good Question Yearling Caucus Necromancer,NULL,NULL,0,NULL,NULL 83222,741667,1094125,Necromancer Nice Answer Supporter Yearling Good Answer Yearling,NULL,NULL,0,NULL,NULL 83223,212093,310219,NULL,NULL,NULL,0,NULL,NULL 83224,290398,1419231,NULL,NULL,NULL,0,NULL,NULL 83225,482415,459906,NULL,NULL,NULL,0,NULL,NULL 83226,1001823,498960,NULL,NULL,NULL,0,NULL,NULL 83227,341157,268753,NULL,NULL,NULL,0,NULL,NULL 83228,161567,254219,NULL,NULL,NULL,0,NULL,NULL 83229,576865,765252,NULL,NULL,NULL,0,NULL,NULL 83230,32929,260138,Nice Question Nice Answer Popular Question,NULL,NULL,0,NULL,NULL 83231,735550,224296,Yearling Great Question Famous Question Yearling Favorite Question,NULL,NULL,0,NULL,NULL 83232,3581485,869599,NULL,NULL,NULL,0,NULL,NULL 83233,278952,869599,NULL,NULL,NULL,0,NULL,NULL 83234,1353751,1306528,Teacher Editor Informed Supporter Yearling Commentator Critic Enthusiast Fanatic Yearling Student Announcer,NULL,NULL,0,NULL,NULL 83235,246759,833247,NULL,NULL,NULL,0,NULL,NULL 83236,281074,1319037,Popular Question Student,NULL,NULL,0,NULL,NULL 83237,10003041,385064,Popular Question Yearling Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83238,273908,385064,Popular Question Yearling Announcer Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83239,1197409,912639,NULL,NULL,NULL,0,NULL,NULL 83240,320232,1183833,NULL,NULL,NULL,0,NULL,NULL 83241,7413297,364404,NULL,NULL,NULL,0,NULL,NULL 83242,386087,965271,NULL,NULL,NULL,0,NULL,NULL 83243,62351,577759,Yearling Scholar Nice Question Popular Question Notable Question Caucus Yearling,NULL,NULL,0,NULL,NULL 83244,80781,668125,Notable Question Popular Question Popular Question Notable Question Notable Question Popular Question Popular Question Notable Question Documentation User Popular Question Caucus Deputy Revival Famous Question Yearling,NULL,,0,, 83245,321275,1017696,NULL,NULL,NULL,0,NULL,NULL 83246,64362,1348879,NULL,NULL,NULL,0,NULL,NULL 83247,898382,1259943,NULL,NULL,NULL,0,NULL,NULL 83248,136918,459150,Popular Question Yearling Revival Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83249,4597213,244384,Famous Question Notable Question Popular Question Famous Question Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83250,769038,244384,Famous Question Notable Question Popular Question Famous Question Nice Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83251,10070097,124349,Enthusiast Yearling Yearling Nice Answer Electorate,NULL,NULL,0,NULL,NULL 83252,2339563,850391,NULL,NULL,NULL,0,NULL,NULL 83253,1813584,1053146,NULL,NULL,NULL,0,NULL,NULL 83254,316776,1053146,NULL,NULL,NULL,0,NULL,NULL 83255,1344180,1192658,Critic Necromancer Caucus Caucus Constituent Revival Popular Question,NULL,NULL,0,NULL,NULL 83256,286512,605206,NULL,NULL,NULL,0,NULL,NULL 83257,1125010,938801,NULL,NULL,NULL,0,NULL,NULL 83258,408836,958674,Informed Teacher Supporter,NULL,NULL,0,NULL,NULL 83259,92928,230340,Famous Question Necromancer Good Question Necromancer Nice Answer Necromancer Nice Answer Enlightened Good Answer Yearling Good Answer Nice Answer Nice Answer Nice Answer Popular Question Nice Question Yearling Great Question Favorite Question Nice Answer Necromancer Necromancer Famous Question Necromancer Nice Answer Nice Answer Necromancer Great Answer Notable Question,NULL,NULL,0,NULL,NULL 83260,528505,364413,NULL,NULL,NULL,0,NULL,NULL 83261,116339,364413,NULL,NULL,NULL,0,NULL,NULL 83262,1515066,315341,NULL,NULL,NULL,0,NULL,NULL 83263,176869,83859,Self-Learner,NULL,NULL,0,NULL,NULL 83264,430516,1377516,NULL,NULL,NULL,0,NULL,NULL 83265,52800,531339,Scholar,NULL,NULL,1,Converting XGBoost model to CoreML python ios xgboost coreml pI am trying to convert the following XGBoost model to CoreML File but get the error ppre codeTraceback most recent call last File lt stdin gt line in lt module gt File usr local lib python2 dist packages coremltools converters xgboost tree py line 48 in convertreturn MLModel convert tree ensemble model feature names target File usr local lib python2 dist packages coremltools converters xgboost tree ensemble py line 111 in convert tree ensemblexgb model str model get dump with stats True dump format json TypeError get dump got an unexpected keyword argument dump format code prepI installed xgboost using pip Why is this occurring,NULL 83266,312014,640392,NULL,NULL,NULL,0,NULL,NULL 83267,251844,1111008,NULL,NULL,NULL,0,NULL,NULL 83268,680162,1044765,NULL,NULL,NULL,0,NULL,NULL 83269,334789,1550126,Famous Question Nice Question,NULL,NULL,0,NULL,NULL 83270,32276,686485,NULL,NULL,NULL,0,NULL,NULL 83271,73629,70044,NULL,NULL,NULL,0,NULL,NULL 83272,540496,1063081,Announcer,NULL,NULL,0,NULL,NULL 83273,423575,1459733,Notable Question Nice Question,NULL,NULL,0,NULL,NULL 83274,45658,358638,Yearling,NULL,NULL,0,NULL,NULL 83275,350487,968338,NULL,NULL,NULL,0,NULL,NULL 83276,1195926,806193,NULL,NULL,NULL,0,NULL,NULL 83277,124531,243755,Yearling Favorite Question Nice Question Notable Question Notable Question Notable Question Nice Question Notable Question Popular Question Notable Question Good Question Popular Question Nice Question Famous Question Nice Question Notable Question Famous Question Famous Question Popular Question Popular Question Necromancer Notable Question Yearling Popular Question Famous Question Famous Question Favorite Question Popular Question Nice Question Popular Question Notable Question Popular Question Notable Question Popular Question Socratic Famous Question Favorite Question Notable Question Notable Question Popular Question Popular Question Popular Question Popular Question Notable Question Caucus Notable Question Nice Answer Popular Question Notable Question Notable Question Popular Question Nice Question Popular Question Taxonomist Popular Question Famous Question Popular Question Popular Question Good Question Famous Question Notable Question Popular Question Yearling Notable Question Famous Question Popular Question Popular Question Popular Question Notable Question Notable Question Caucus Nice Question Popular Question Popular Question Notable Question Famous Question Good Question Favorite Question Nice Question Famous Question Famous Question Great Question Notable Question Notable Question Notable Question Famous Question Famous Question Popular Question Good Question Popular Question Notable Question Notable Question Famous Question Good Question Nice Question,NULL,NULL,0,NULL,NULL 83278,560555,532008,Yearling Necromancer Nice Answer Enlightened Popular Question Curious Notable Question Self-Learner Yearling Revival Popular Question Nice Answer Popular Question Nice Question Yearling Nice Question Notable Question Notable Question Good Answer Notable Question Good Question Revival Citizen Patrol Good Question Yearling Custodian Nice Answer Necromancer Famous Question,NULL,NULL,1,How to access the VM created by docker HyperKit docker docker machine docker for mac href https docs docker com docker for mac Docker for Mac uses Linux VM created by href https github com docker HyperKit HyperKit for storing and running containers on Mac ppWith Docker Toolbox can just open VirtualBox and access the docker machine VM But with Docker for Mac how do access the VM created by HyperKit,NULL 83279,8947,1072489,NULL,NULL,NULL,0,NULL,NULL 83280,28649,494578,NULL,NULL,NULL,0,NULL,NULL 83281,1394433,598643,NULL,NULL,NULL,0,NULL,NULL 83282,769882,1116968,NULL,NULL,NULL,0,NULL,NULL 83283,121873,639040,Yearling Necromancer Necromancer Necromancer Yearling Necromancer Necromancer Yearling Necromancer Nice Answer Nice Answer Necromancer,NULL,NULL,0,NULL,NULL 83284,176669,882531,NULL,NULL,NULL,0,NULL,NULL 83285,69639,1218105,NULL,NULL,NULL,0,NULL,NULL 83286,253642,756572,NULL,NULL,NULL,0,NULL,NULL 83287,1331500,838431,Notable Question,NULL,NULL,0,NULL,NULL 83288,170373,1425511,NULL,NULL,NULL,0,NULL,NULL 83289,249911,959524,NULL,NULL,NULL,0,NULL,NULL 83290,431492,1502069,NULL,NULL,NULL,0,NULL,NULL 83291,234463,703308,Popular Question Notable Question Curious Notable Question Popular Question,NULL,NULL,0,NULL,NULL 83292,177575,511707,Caucus Constituent Caucus Famous Question Constituent Custodian Custodian Critic Census Informed Caucus Constituent,NULL,NULL,0,NULL,NULL 83293,715831,770466,NULL,NULL,NULL,0,NULL,NULL 83294,430930,521348,NULL,NULL,NULL,0,NULL,NULL 83295,20867,988940,Necromancer Notable Question Nice Answer Enthusiast,NULL,NULL,0,NULL,NULL 83296,182991,162070,javascript Nice Answer Notable Question Inquisitive Popular Question Notable Question node.js Proofreader Nice Question Popular Question Nice Answer Popular Question Nice Answer Announcer Popular Question Yearling Popular Question Notable Question Popular Question Popular Question Popular Question Nice Answer Enlightened Notable Question Sportsmanship Caucus Constituent Nice Question Nice Question Famous Question Notable Question Reviewer Famous Question Famous Question Revival Pundit Favorite Question Popular Question Caucus Nice Question Yearling Documentation User Popular Question Good Question Popular Question Notable Question Census Announcer Caucus Investor Tag Editor Constituent Good Question Nice Answer Popular Question Good Answer Nice Question Nice Answer Yearling Peer Pressure Popular Question Notable Question,NULL,Pass environment variables to an Angular2 app angular environment pI need to pass the backend url to my Angular2 app since production and dev servers are hosted on different locations ppI know could store such things in an external config json and load upon startup This however seems like unnecessary extra call to server before the app can get started ppAlternatively what do now is do create single global variable which inject in gulp depending on build My app isn lib that needs to be reusable don believe should hit emunexpected em global name clashes But it not good practice ppI wonder if there third better solution You re possibly right especially when Angular hits production and the production builds and minification starts working really good Thanks,1,Pass environment variables to an Angular2 app angular environment pI need to pass the backend url to my Angular2 app since production and dev servers are hosted on different locations ppI know could store such things in an external config json and load upon startup This however seems like unnecessary extra call to server before the app can get started ppAlternatively what do now is do create single global variable which inject in gulp depending on build My app isn lib that needs to be reusable don believe should hit emunexpected em global name clashes But it not good practice ppI wonder if there third better solution,NULL 83297,854928,1045433,NULL,NULL,NULL,0,NULL,NULL 83298,467360,259824,Necromancer Yearling Nice Answer,NULL,NULL,0,NULL,NULL 83299,998055,966182,NULL,NULL,NULL,0,NULL,NULL 83300,593739,1285223,NULL,NULL,NULL,0,NULL,NULL 83301,47524,700304,NULL,NULL,NULL,0,NULL,NULL 83302,2465877,1445617,Notable Question Popular Question Popular Question Documentation User Notable Question Notable Question Popular Question,NULL,NULL,0,NULL,NULL 83303,428649,910868,Curious Notable Question Popular Question Custodian Nice Answer Enlightened Yearling javascript Caucus Nice Answer Famous Question Yearling Popular Question Popular Question Popular Question Nice Question Popular Question Great Answer Good Answer Yearling Good Question,NULL,NULL,0,NULL,NULL 83304,68814,184884,Famous Question Good Question Popular Question,NULL,NULL,0,NULL,NULL 83305,361671,917169,NULL,NULL,NULL,0,NULL,NULL 83306,762138,1060207,Good Answer Necromancer Yearling Nice Question Popular Question Notable Question Yearling Notable Question Nice Answer Announcer Necromancer Nice Answer Popular Question Yearling,NULL,NULL,0,NULL,NULL 83307,590258,975063,NULL,NULL,NULL,0,NULL,NULL 83308,134543,413059,Notable Question Nice Question Yearling Popular Question Famous Question,NULL,NULL,0,NULL,NULL 83309,149778,669073,Notable Question Yearling Popular Question Custodian Nice Answer Nice Answer Yearling Yearling Notable Question,NULL,NULL,0,NULL,NULL 83310,57294,880100,NULL,NULL,NULL,0,NULL,NULL 83311,366576,412395,Notable Question Popular Question Popular Question Proofreader Famous Question Notable Question php Notable Question Yearling Notable Question Nice Answer Great Answer Famous Question Popular Question Yearling Census Inquisitive Caucus Nice Answer Enlightened Yearling Good Answer Notable Question,NULL,NULL,0,NULL,NULL 83312,116501,1270447,Editor Excavator Supporter,NULL,NULL,0,NULL,NULL 83313,45498,2874,Notable Question Famous Question Notable Question Notable Question Yearling Notable Question Nice Question,NULL,NULL,0,NULL,NULL 83314,1082461,1084054,NULL,NULL,NULL,0,NULL,NULL 83315,36177,1092500,NULL,NULL,NULL,0,NULL,NULL 83316,139822,257096,Necromancer Yearling,NULL,NULL,0,NULL,NULL 83317,5591926,655770,Yearling Yearling Nice Question Yearling Famous Question Good Answer Notable Question Great Answer,NULL,NULL,0,NULL,NULL 83318,1099198,655770,Yearling Yearling Nice Question Yearling Famous Question Good Answer Notable Question Great Answer,NULL,NULL,0,NULL,NULL 83319,217572,200696,Scholar Excavator Critic Commentator Popular Question Revival,NULL,NULL,0,NULL,NULL 83320,948645,948793,NULL,NULL,NULL,0,NULL,NULL 83321,2015618,948793,NULL,NULL,NULL,0,NULL,NULL 83322,1276525,1458626,NULL,NULL,NULL,0,NULL,NULL 83323,105721,1407509,Nice Answer,NULL,NULL,0,NULL,NULL 83324,303427,358423,NULL,NULL,NULL,0,NULL,NULL 83325,19283,671432,Notable Question Notable Question Popular Question Yearling,NULL,NULL,0,NULL,NULL 83326,37329,183304,Popular Question Good Question Popular Question Famous Question Notable Question Nice Answer Enlightened Famous Question Notable Question Nice Question Yearling Stellar Question Notable Question Notable Question Great Question Nice Answer Yearling Good Question Great Answer Famous Question Famous Question Nice Question Famous Question Popular Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 83327,271141,1515605,NULL,NULL,NULL,0,NULL,NULL 83328,3624020,861098,NULL,NULL,NULL,0,NULL,NULL 83329,4749183,1096932,NULL,NULL,NULL,0,NULL,NULL 83330,97072,138023,Favorite Question Nice Answer Nice Question Nice Answer Enlightened Famous Question Notable Question Populist Notable Question Yearling Popular Question Popular Question Notable Question Famous Question Notable Question html Popular Question Notable Question Good Answer Nice Question Notable Question Great Answer Yearling Popular Question Announcer Popular Question Nice Question Popular Question Notable Question Popular Question Custodian Nice Answer Enlightened Self-Learner Good Question Popular Question Popular Question Yearling Famous Question Famous Question,NULL,NULL,0,NULL,NULL 83331,1035119,1142132,NULL,NULL,NULL,0,NULL,NULL 83332,101458,554693,Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83333,211410,1017858,NULL,NULL,NULL,0,NULL,NULL 83334,7050,1233173,NULL,NULL,NULL,0,NULL,NULL 83335,183071,519956,NULL,NULL,NULL,0,NULL,NULL 83336,650946,446746,Nice Question Notable Question Informed Popular Question Good Answer Yearling Revival Nice Question Caucus Yearling Census Caucus Famous Question Yearling,NULL,NULL,0,NULL,NULL 83337,175759,539814,NULL,NULL,NULL,0,NULL,NULL 83338,3069886,1124787,Informed Famous Question Notable Question,NULL,NULL,0,NULL,NULL 83339,147970,611962,NULL,NULL,NULL,0,NULL,NULL 83340,14732,1101367,NULL,NULL,NULL,0,NULL,NULL 83341,87210,1389784,Informed,NULL,NULL,0,NULL,NULL 83342,3555373,1222202,NULL,NULL,NULL,0,NULL,NULL 83343,251019,1222202,NULL,NULL,NULL,0,NULL,NULL 83344,31252,240921,Nice Answer Nice Question Nice Answer Necromancer Citizen Patrol Nice Answer Yearling Notable Question Notable Question Nice Answer Good Answer Good Question Famous Question Yearling Nice Answer Popular Question Great Answer,NULL,NULL,0,NULL,NULL 83345,370232,942772,Nice Answer Yearling Caucus Constituent Necromancer Caucus Constituent Yearling Necromancer Nice Answer,NULL,NULL,0,NULL,NULL 83346,662646,105315,Critic Commentator Caucus Excavator Popular Question,NULL,NULL,0,NULL,NULL 83347,500614,291589,Critic,NULL,NULL,0,NULL,NULL 83348,537108,284290,Yearling Notable Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 83349,862523,617924,NULL,NULL,NULL,0,NULL,NULL 83350,514518,854467,NULL,NULL,NULL,0,NULL,NULL 83351,980343,680781,Famous Question,NULL,NULL,0,NULL,NULL 83352,388304,710993,NULL,NULL,NULL,0,NULL,NULL 83353,125995,451210,Popular Question Caucus,NULL,NULL,0,NULL,NULL 83354,431337,677094,NULL,NULL,NULL,0,NULL,NULL 83355,8991,949692,NULL,NULL,NULL,0,NULL,NULL 83356,281359,1546790,Scholar Documentation User Popular Question Student Notable Question,NULL,NULL,0,NULL,NULL 83357,48556,515614,Nice Question Famous Question,NULL,NULL,0,NULL,NULL 83358,47000,152308,Nice Question Famous Question Yearling Nice Question Popular Question Popular Question Notable Question Popular Question Popular Question Notable Question Notable Question Yearling Nice Question Nice Answer Popular Question Popular Question Notable Question Famous Question Yearling Popular Question Popular Question Popular Question Notable Question Nice Question Notable Question Yearling Notable Question Popular Question Famous Question Nice Question Notable Question Notable Question Good Question Good Answer Yearling Nice Question Notable Question Good Question Notable Question Yearling Famous Question,NULL,NULL,0,NULL,NULL 83359,289035,1040895,NULL,NULL,NULL,0,NULL,NULL 83360,262526,1060992,NULL,NULL,NULL,0,NULL,NULL 83361,881770,616461,NULL,NULL,NULL,0,NULL,NULL 83362,415291,1496291,NULL,NULL,NULL,0,NULL,NULL 83363,443058,787821,NULL,NULL,NULL,0,NULL,NULL 83364,1519394,1310566,Strunk & White Notable Question Yearling Nice Answer Marshal Popular Question Notable Question Necromancer Nice Question Caucus Constituent Census Yearling Nice Answer Announcer Caucus Announcer Announcer Good Answer Documentation User Announcer Popular Question Announcer Good Answer Caucus Constituent Yearling Announcer Revival Nice Answer Good Answer Nice Answer Nice Answer Enlightened Revival Nice Answer,NULL,NULL,0,NULL,NULL 83365,104532,158497,Yearling Nice Answer Enlightened Caucus Yearling Yearling,NULL,NULL,0,NULL,NULL 83366,53442,495504,Popular Question Popular Question Custodian Custodian Citizen Patrol Informed Organizer Explainer Yearling Autobiographer Custodian Notable Question Documentation User Census Caucus Yearling Notable Question Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 83367,23990,777262,NULL,NULL,NULL,0,NULL,NULL 83368,240929,334146,NULL,NULL,NULL,0,NULL,NULL 83369,11937,475638,NULL,NULL,NULL,0,NULL,NULL 83370,118001,604262,Popular Question,NULL,NULL,0,NULL,NULL 83371,438075,799358,NULL,NULL,NULL,0,NULL,NULL 83372,12097,1023091,Scholar,NULL,NULL,0,NULL,NULL 83373,289255,897125,Nice Answer,NULL,NULL,0,NULL,NULL 83374,962539,897125,Nice Answer,NULL,NULL,0,NULL,NULL 83375,230989,608478,Notable Question,NULL,NULL,0,NULL,NULL 83376,127553,212275,Good Answer Nice Answer Guru Good Answer Good Answer Nice Answer Yearling Great Answer Yearling Guru Guru Guru Yearling,NULL,NULL,0,NULL,NULL 83377,66529,369820,NULL,NULL,NULL,0,NULL,NULL 83378,12120,1142157,NULL,NULL,NULL,0,NULL,NULL 83379,24046,201879,NULL,NULL,NULL,0,NULL,NULL 83380,179981,300593,Nice Answer Yearling Popular Question Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 83381,756370,193863,Nice Question,NULL,NULL,0,NULL,NULL 83382,33686,302824,Yearling Popular Question Nice Answer Enlightened Good Answer ruby-on-rails Critic Civic Duty Custodian activeadmin Necromancer Yearling Nice Answer Enlightened Census Yearling Announcer,NULL,NULL,0,NULL,NULL 83383,400418,951647,NULL,NULL,NULL,0,NULL,NULL 83384,211313,793911,Notable Question Yearling Yearling Caucus Investor Altruist Announcer Yearling Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 83385,109258,1433707,Popular Question,NULL,NULL,0,NULL,NULL 83386,240445,269297,Announcer Announcer Critic Yearling,NULL,NULL,0,NULL,NULL 83387,61414,272981,NULL,NULL,NULL,0,NULL,NULL 83388,540679,638380,NULL,NULL,NULL,0,NULL,NULL 83389,296893,134014,Enlightened Good Question Yearling Necromancer Popular Question Famous Question Popular Question Yearling Notable Question Announcer Announcer Revival Announcer Guru Popular Question Yearling Revival,NULL,pFollowing the instructions laid out in Facebook href https developers facebook com docs facebook login access tokens extendingpagetokens rel noreferrer extending page tokens documentation was able to get page access token that does not expire ppI suggest using the href https developers facebook com tools explorer rel noreferrer Graph API Explorer for all of these steps except where otherwise stated ph30 Create Facebook App h3p strongIf you already have an app strong skip to step polliGo to href https developers facebook com apps rel noreferrer My Apps liliClick Add New App liliSetup website app li olpYou don need to change its permissions or anything You just need an app that wont go away before you re done with your access token ph31 Get User Short Lived Access Token h3olliGo to the href https developers facebook com tools explorer rel noreferrer Graph API Explorer liliSelect the application you want to get the access token for in the Application drop down menu not the My Apps menu liliClick Get Token Get User Access Token liliIn the pop up under the Extended Permissions tab check manage pages liliClick Get Access Token liliGrant access from Facebook account that has access to manage the target page Note that if this user loses access the final never expiring access token will likely stop working li olpThe token that appears in the Access Token field is your short lived access token ph32 Generate Long Lived Access Token h3pFollowing href https developers facebook com docs facebook login access tokens extending rel noreferrer these instructions from the Facebook docs make GET request to pblockquote href https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id rel noreferrer https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id strong app id strong amp client secret strong app secret strong amp fb exchange token strong short lived token strong blockquotepentering in your app ID and secret and the short lived token generated in the previous step ppYou strongcannot use the Graph API Explorer strong For some reason it gets stuck on this request think it because the response isn JSON but query string Since it GET request you can just go to the URL in your browser ppThe response should look like this pblockquote access token strongABC123 strong token type bearer expires in 5183791 blockquotep ABC123 will be your long lived access token You can put it into the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger to verify Under Expires it should have something like months ph33 Get User ID h3pUsing the long lived access token make GET request to pblockquote href https graph facebook com v2 10 me access token rel noreferrer https graph facebook com v2 10 me access token strong long lived access token strong blockquotepThe codeid code field is your account ID You ll need it for the next step ph34 Get Permanent Page Access Token h3pMake GET request to pblockquote href https graph facebook com v2 10 rel noreferrer https graph facebook com v2 10 strong account id strong accounts access token strong long lived access token strong blockquotepThe JSON response should have codedata code field under which is an array of items the user has access to Find the item for the page you want the permanent access token from The codeaccess token code field should have your permanent access token Copy it and test it in the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger Under Expires it should say Never That the reason had to write this answer and why it has so many up votes Don know why it not well documented pFollowing the instructions laid out in Facebook href https developers facebook com docs facebook login access tokens extendingpagetokens rel noreferrer extending page tokens documentation was able to get page access token that does not expire ppI suggest using the href https developers facebook com tools explorer rel noreferrer Graph API Explorer for all of these steps except where otherwise stated ph30 Create Facebook App h3p strongIf you already have an app strong skip to step polliGo to href https developers facebook com apps rel noreferrer My Apps liliClick Add New App liliSetup website app li olpYou don need to change its permissions or anything You just need an app that wont go away before you re done with your access token ph31 Get User Short Lived Access Token h3olliGo to the href https developers facebook com tools explorer rel noreferrer Graph API Explorer liliSelect the application you want to get the access token for in the Application drop down menu not the My Apps menu liliClick Get Token Get User Access Token liliIn the pop up under the Extended Permissions tab check manage pages liliClick Get Access Token liliGrant access from Facebook account that has access to manage the target page Note that if this user loses access the final never expiring access token will likely stop working li olpThe token that appears in the Access Token field is your short lived access token ph32 Generate Long Lived Access Token h3pFollowing href https developers facebook com docs facebook login access tokens extending rel noreferrer these instructions from the Facebook docs make GET request to pblockquote href https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id rel noreferrer https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id strong app id strong amp client secret strong app secret strong amp fb exchange token strong short lived token strong blockquotepentering in your app ID and secret and the short lived token generated in the previous step ppYou strongcannot use the Graph API Explorer strong For some reason it gets stuck on this request think it because the response isn JSON but query string Since it GET request you can just go to the URL in your browser ppThe response should look like this pblockquote access token strongABC123 strong token type bearer expires in 5183791 blockquotep ABC123 will be your long lived access token You can put it into the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger to verify Under Expires it should have something like months ph33 Get User ID h3pUsing the long lived access token make GET request to pblockquote href https graph facebook com v2 10 me access token rel noreferrer https graph facebook com v2 10 me access token strong long lived access token strong blockquotepThe codeid code field is your account ID You ll need it for the next step ph34 Get Permanent Page Access Token h3pMake GET request to pblockquote href https graph facebook com v2 10 rel noreferrer https graph facebook com v2 10 strong account id strong accounts access token strong long lived access token strong blockquotepThe JSON response should have codedata code field under which is an array of items the user has access to Find the item for the page you want the permanent access token from The codeaccess token code field should have your permanent access token Copy it and test it in the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger Under Expires it should say Never Since the API is only accessed over HTTPS everything should be encrypted at least as securely as password forms on websites under HTTPS pFollowing the instructions laid out in Facebook href https developers facebook com docs facebook login access tokens extendingpagetokens rel noreferrer extending page tokens documentation was able to get page access token that does not expire ppI suggest using the href https developers facebook com tools explorer rel noreferrer Graph API Explorer for all of these steps except where otherwise stated ph30 Create Facebook App h3p strongIf you already have an app strong skip to step polliGo to href https developers facebook com apps rel noreferrer My Apps liliClick Add New App liliSetup website app li olpYou don need to change its permissions or anything You just need an app that wont go away before you re done with your access token ph31 Get User Short Lived Access Token h3olliGo to the href https developers facebook com tools explorer rel noreferrer Graph API Explorer liliSelect the application you want to get the access token for in the Application drop down menu not the My Apps menu liliClick Get Token Get User Access Token liliIn the pop up under the Extended Permissions tab check manage pages liliClick Get Access Token liliGrant access from Facebook account that has access to manage the target page Note that if this user loses access the final never expiring access token will likely stop working li olpThe token that appears in the Access Token field is your short lived access token ph32 Generate Long Lived Access Token h3pFollowing href https developers facebook com docs facebook login access tokens extending rel noreferrer these instructions from the Facebook docs make GET request to pblockquote href https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id rel noreferrer https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id strong app id strong amp client secret strong app secret strong amp fb exchange token strong short lived token strong blockquotepentering in your app ID and secret and the short lived token generated in the previous step ppYou strongcannot use the Graph API Explorer strong For some reason it gets stuck on this request think it because the response isn JSON but query string Since it GET request you can just go to the URL in your browser ppThe response should look like this pblockquote access token strongABC123 strong token type bearer expires in 5183791 blockquotep ABC123 will be your long lived access token You can put it into the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger to verify Under Expires it should have something like months ph33 Get User ID h3pUsing the long lived access token make GET request to pblockquote href https graph facebook com v2 10 me access token rel noreferrer https graph facebook com v2 10 me access token strong long lived access token strong blockquotepThe codeid code field is your account ID You ll need it for the next step ph34 Get Permanent Page Access Token h3pMake GET request to pblockquote href https graph facebook com v2 10 rel noreferrer https graph facebook com v2 10 strong account id strong accounts access token strong long lived access token strong blockquotepThe JSON response should have codedata code field under which is an array of items the user has access to Find the item for the page you want the permanent access token from The codeaccess token code field should have your permanent access token Copy it and test it in the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger Under Expires it should say Never Absolutely not Unless it only running server side with something like NodeJS you don want this token to be publicly accessible pFollowing the instructions laid out in Facebook href https developers facebook com docs facebook login access tokens extendingpagetokens rel noreferrer extending page tokens documentation was able to get page access token that does not expire ppI suggest using the href https developers facebook com tools explorer rel noreferrer Graph API Explorer for all of these steps except where otherwise stated ph30 Create Facebook App h3p strongIf you already have an app strong skip to step polliGo to href https developers facebook com apps rel noreferrer My Apps liliClick Add New App liliSetup website app li olpYou don need to change its permissions or anything You just need an app that wont go away before you re done with your access token ph31 Get User Short Lived Access Token h3olliGo to the href https developers facebook com tools explorer rel noreferrer Graph API Explorer liliSelect the application you want to get the access token for in the Application drop down menu not the My Apps menu liliClick Get Token Get User Access Token liliIn the pop up under the Extended Permissions tab check manage pages liliClick Get Access Token liliGrant access from Facebook account that has access to manage the target page Note that if this user loses access the final never expiring access token will likely stop working li olpThe token that appears in the Access Token field is your short lived access token ph32 Generate Long Lived Access Token h3pFollowing href https developers facebook com docs facebook login access tokens extending rel noreferrer these instructions from the Facebook docs make GET request to pblockquote href https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id rel noreferrer https graph facebook com v2 10 oauth access token grant type fb exchange token amp client id strong app id strong amp client secret strong app secret strong amp fb exchange token strong short lived token strong blockquotepentering in your app ID and secret and the short lived token generated in the previous step ppYou strongcannot use the Graph API Explorer strong For some reason it gets stuck on this request think it because the response isn JSON but query string Since it GET request you can just go to the URL in your browser ppThe response should look like this pblockquote access token strongABC123 strong token type bearer expires in 5183791 blockquotep ABC123 will be your long lived access token You can put it into the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger to verify Under Expires it should have something like months ph33 Get User ID h3pUsing the long lived access token make GET request to pblockquote href https graph facebook com v2 10 me access token rel noreferrer https graph facebook com v2 10 me access token strong long lived access token strong blockquotepThe codeid code field is your account ID You ll need it for the next step ph34 Get Permanent Page Access Token h3pMake GET request to pblockquote href https graph facebook com v2 10 rel noreferrer https graph facebook com v2 10 strong account id strong accounts access token strong long lived access token strong blockquotepThe JSON response should have codedata code field under which is an array of items the user has access to Find the item for the page you want the permanent access token from The codeaccess token code field should have your permanent access token Copy it and test it in the href https developers facebook com tools debug accesstoken rel noreferrer Access Token Debugger Under Expires it should say Never This token is basically key to access and make changes to Facebook page If you put it in js file anybody who visits your website with that js file could discover that token and make changes to the page,0,NULL,NULL 83390,107499,1166247,NULL,NULL,NULL,0,NULL,NULL 83391,217696,806875,Good Answer Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83392,141039,1122221,NULL,NULL,NULL,0,NULL,NULL 83393,1630450,1122221,NULL,NULL,NULL,0,NULL,NULL 83394,437096,498460,NULL,NULL,NULL,0,NULL,NULL 83395,348290,1103353,Yearling Yearling Yearling Necromancer Revival Popular Question Yearling Great Answer,NULL,NULL,0,NULL,NULL 83396,167752,28666,NULL,NULL,NULL,0,NULL,NULL 83397,64752,1419769,NULL,NULL,NULL,0,NULL,NULL 83398,280351,217763,NULL,NULL,NULL,0,NULL,NULL 83399,542241,217763,NULL,NULL,NULL,0,NULL,NULL 83400,292755,511153,NULL,NULL,NULL,0,NULL,NULL 83401,505857,1225110,NULL,NULL,NULL,0,NULL,NULL 83402,408373,1208195,NULL,NULL,NULL,0,NULL,NULL 83403,966644,143351,Good Question Yearling Enthusiast Popular Question,NULL,NULL,0,NULL,NULL 83404,592435,36041,Famous Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 83405,212228,92270,NULL,NULL,NULL,0,NULL,NULL 83406,34209,466435,Nice Answer,NULL,NULL,0,NULL,NULL 83407,578015,757888,Nice Answer Enlightened Yearling Investor Altruist Good Answer Yearling Guru Popular Question Documentation User Census Yearling,NULL,NULL,0,NULL,NULL 83408,142398,629375,NULL,NULL,NULL,0,NULL,NULL 83409,16735,1076922,Necromancer Nice Answer Editor Yearling Good Answer,NULL,NULL,0,NULL,NULL 83410,450355,1057188,NULL,NULL,NULL,0,NULL,NULL 83411,1512074,1119858,NULL,NULL,NULL,0,NULL,NULL 83412,314680,634959,NULL,NULL,NULL,0,NULL,NULL 83413,36503,84560,Yearling Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83414,398556,895892,NULL,NULL,NULL,0,NULL,NULL 83415,106533,984986,Yearling Commentator Necromancer Scholar Yearling Yearling Nice Answer Custodian,NULL,NULL,0,NULL,NULL 83416,193603,529181,Notable Question Popular Question Yearling Popular Question Nice Answer Tumbleweed Popular Question Caucus Enthusiast Yearling Populist Good Answer Popular Question Notable Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83417,117627,947742,Self-Learner Yearling Nice Answer Necromancer Yearling,NULL,NULL,0,NULL,NULL 83418,1093978,1440429,Revival,NULL,NULL,0,NULL,NULL 83419,154603,1542345,Announcer Announcer Nice Answer Enlightened Announcer Yearling Announcer Announcer Announcer,NULL,NULL,0,NULL,NULL 83420,915310,284797,NULL,NULL,NULL,0,NULL,NULL 83421,1023877,1177527,NULL,NULL,NULL,0,NULL,NULL 83422,36607,105460,Popular Question Nice Answer Yearling Popular Question Nice Answer Enlightened Yearling Enlightened Guru Yearling,NULL,NULL,0,NULL,NULL 83423,1383819,1177047,NULL,NULL,NULL,0,NULL,NULL 83424,474646,310808,Nice Question Yearling Nice Question Caucus Curious Notable Question Famous Question Documentation User Popular Question Yearling,NULL,NULL,0,NULL,NULL 83425,255853,1103111,NULL,NULL,NULL,0,NULL,NULL 83426,146461,318603,NULL,NULL,NULL,0,NULL,NULL 83427,5016,658181,Informed Caucus Caucus Constituent Custodian,NULL,NULL,0,NULL,NULL 83428,108558,481247,NULL,NULL,NULL,0,NULL,NULL 83429,216691,1178072,Popular Question Popular Question Popular Question Popular Question Good Question Yearling Notable Question Notable Question Notable Question Announcer Good Question Famous Question,NULL,Selecting and manipulating CSS pseudo elements such as before and after using jQuery javascript jquery css jquery selectors pseudo element pIs there any way to select manipulate CSS pseudo elements such as code before code and code after code and the old version with one semi colon using jQuery ppFor example my stylesheet has the following rule ppre class lang css prettyprint override code span after content foo code prepHow can change foo to bar using jQuery hate such comments on stackoverflow that going to write where commenter asks why don you do it some complete opposite way but at some point one should realize code design issue and replace that pseudo element with span or something guess you know what pointing at,0,NULL,NULL 83430,1687181,799700,Popular Question,NULL,NULL,0,NULL,NULL 83431,428735,1176831,NULL,NULL,NULL,0,NULL,NULL 83432,435710,786406,Editor Student,NULL,NULL,0,NULL,NULL 83433,152113,149180,Notable Question,NULL,NULL,0,NULL,NULL 83434,6825726,518169,Enthusiast Nice Question Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Famous Question Necromancer Popular Question Nice Question Yearling Notable Question Nice Question Popular Question Notable Question Good Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Caucus Popular Question Announcer Popular Question Notable Question Announcer Necromancer Announcer Popular Question Yearling Popular Question Excavator Popular Question Necromancer Famous Question Socratic Famous Question Peer Pressure Nice Answer Notable Question Announcer Famous Question Announcer Notable Question Autobiographer Popular Question Notable Question Necromancer Good Answer Good Question Necromancer Popular Question Notable Question Yearling,NULL,pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime As per https github com django django commit 931c60c commitcomment 30238549 this will never be fixed Django 11 LTS and Python will be incompatible pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime Django itself is not fixed that the core of the problem,0,NULL,NULL 83435,355718,518169,Enthusiast Nice Question Nice Question Notable Question Notable Question Popular Question Famous Question Famous Question Notable Question Famous Question Necromancer Popular Question Nice Question Yearling Notable Question Nice Question Popular Question Notable Question Good Question Notable Question Popular Question Famous Question Popular Question Popular Question Nice Question Notable Question Caucus Popular Question Announcer Popular Question Notable Question Announcer Necromancer Announcer Popular Question Yearling Popular Question Excavator Popular Question Necromancer Famous Question Socratic Famous Question Peer Pressure Nice Answer Notable Question Announcer Famous Question Announcer Notable Question Autobiographer Popular Question Notable Question Necromancer Good Answer Good Question Necromancer Popular Question Notable Question Yearling,NULL,pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime As per https github com django django commit 931c60c commitcomment 30238549 this will never be fixed Django 11 LTS and Python will be incompatible pYou’re not doing anything wrong this is problem between Django and Python href https github com django django commit 931c60c5216bd71bc11f489e00e063331cf21f40 rel noreferrer Django has fix but that fix hasn’t made it into new version yet ppYou can install the stable version of Python Python in the meantime Django itself is not fixed that the core of the problem,0,NULL,NULL 83436,894200,927846,Supporter,NULL,NULL,0,NULL,NULL 83437,528448,1175183,NULL,NULL,NULL,0,NULL,NULL 83438,886356,239301,NULL,NULL,NULL,0,NULL,NULL 83439,22460,728447,NULL,NULL,NULL,0,NULL,NULL 83440,110762,268499,NULL,NULL,NULL,0,NULL,NULL 83441,260050,1112025,Custodian Tumbleweed,NULL,NULL,0,NULL,NULL 83442,492702,1299651,Popular Question,NULL,NULL,0,NULL,NULL 83443,478320,1038826,Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Enlightened android java Good Answer Populist Yearling Good Answer Caucus apache-spark Nice Answer Enlightened Taxonomist Caucus Nice Answer Enlightened Necromancer Documentation User Yearling Nice Answer Enlightened scala Caucus Good Answer Nice Answer Nice Answer Nice Answer Enlightened Nice Answer Good Answer Yearling,NULL,NULL,0,NULL,NULL 83444,170934,796957,Revival Supporter,NULL,NULL,0,NULL,NULL 83445,1731681,749004,Nice Answer Enlightened Yearling Notable Question Nice Answer Enlightened Popular Question Notable Question Nice Answer Enlightened ruby Caucus Nice Answer Yearling Good Answer Yearling Popular Question,NULL,NULL,0,NULL,NULL 83446,229763,671934,Yearling node.js Yearling Yearling,NULL,NULL,0,NULL,NULL 83447,124419,967560,NULL,NULL,NULL,0,NULL,NULL 83448,50226,228387,Yearling Nice Answer Announcer Yearling Nice Answer Nice Answer Enlightened,NULL,NULL,0,NULL,NULL 83449,222351,194072,Student Teacher Supporter,NULL,NULL,0,NULL,NULL 83450,1838792,1021484,NULL,NULL,NULL,0,NULL,NULL 83451,3313,843971,NULL,NULL,NULL,0,NULL,NULL 83452,101090,100031,Revival Critic,NULL,NULL,0,NULL,NULL 83453,147341,1365624,Yearling Necromancer Necromancer Necromancer Yearling Nice Answer Necromancer Yearling Good Answer,NULL,NULL,0,NULL,NULL 83454,73141,449323,NULL,NULL,NULL,0,NULL,NULL 83455,91663,365950,Nice Answer Enlightened Necromancer Nice Answer Necromancer Yearling Notable Question Nice Question Great Answer Nice Answer Notable Question Necromancer Yearling Caucus Necromancer Nice Answer Popular Question Famous Question Good Answer Yearling Famous Question Popular Question Announcer Famous Question Nice Answer Revival,NULL,NULL,0,NULL,NULL 83456,14773,309247,Good Answer Yearling,NULL,NULL,0,NULL,NULL 83457,987345,277465,NULL,NULL,NULL,0,NULL,NULL 83458,434261,753891,Self-Learner Popular Question Necromancer Yearling Guru Necromancer Caucus Nice Answer Good Answer Popular Question Popular Question Good Answer Nice Answer Notable Question Yearling ruby Caucus Constituent Popular Question Nice Answer Enlightened Popular Question Yearling Great Answer Popular Question,NULL,NULL,0,NULL,NULL 83459,297586,956753,Yearling Popular Question Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83460,15935,12232,NULL,NULL,NULL,0,NULL,NULL 83461,6458986,58003,Notable Question Custodian Commentator,NULL,NULL,0,NULL,NULL 83462,193472,58003,Notable Question Custodian Commentator,NULL,NULL,0,NULL,NULL 83463,240191,941140,Popular Question Popular Question Notable Question Notable Question Yearling,NULL,NULL,0,NULL,NULL 83464,1099814,820184,Informed Autobiographer Teacher Editor,NULL,NULL,0,NULL,NULL 83465,382570,27831,Yearling Caucus Announcer,NULL,NULL,0,NULL,NULL 83466,1054981,1222132,NULL,NULL,NULL,0,NULL,NULL 83467,957644,1140593,Yearling Notable Question Nice Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 83468,305058,703455,NULL,NULL,NULL,0,NULL,NULL 83469,324649,682657,Yearling Good Answer,NULL,NULL,0,NULL,NULL 83470,1119498,891041,Guru Yearling Popular Question Yearling Notable Question Caucus Constituent Custodian Organizer Informed Custodian Custodian Yearling Enthusiast,NULL,NULL,0,NULL,NULL 83471,278896,901491,Student,NULL,NULL,0,NULL,NULL 83472,1174289,797230,Supporter Popular Question Notable Question Famous Question Nice Question Necromancer Good Question,NULL,NULL,0,NULL,NULL 83473,504635,1048214,Famous Question Yearling Good Question Famous Question Custodian Curious Yearling Popular Question Nice Question Notable Question,NULL,NULL,0,NULL,NULL 83474,109358,1096214,NULL,NULL,NULL,0,NULL,NULL 83475,1070497,673474,Popular Question Caucus Necromancer Yearling Popular Question Necromancer Custodian Custodian Nice Answer Nice Answer Yearling Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83476,133242,1344249,Census,NULL,h12017 Update line answer with vanilla JS h1pAll of the answers here are strongoverly complicated strong most of them take 20 lines of code or even more ppThis example uses just strongtwo lines of vanilla JavaScript strong no lodash underscore or other libraries ppre codelet gt concat map gt map gt concat let cartesian gt cartesian code preh3Update h3pThis is the same as above but improved to strictly follow the href http airbnb io javascript rel noreferrer Airbnb JavaScript Style Guide validated using href http eslint org rel noreferrer ESLint with href https www npmjs com package eslint config airbnb base rel noreferrer eslint config airbnb base ppre codeconst gt concat map gt map gt concat const cartesian gt cartesian code prepSpecial thanks to strongZuBB strong for letting me know about linter problems with the original code ph2Example h2pThis is the exact example from your question ppre codelet output cartesian 10 20 100 200 300 code preh2Output h2pThis is the output of that command ppre code 10 100 10 200 10 300 20 100 20 200 20 300 10 100 10 200 10 300 20 100 20 200 20 300 code preh2Demo h2pSee demos on pulli href http jsbin com vihibelome edit js console rel noreferrer JS Bin with Babel for old browsers lili href http jsbin com siwefuqina edit js console rel noreferrer JS Bin without Babel for modern browsers li ulh2Syntax h2pThe syntax that used here is nothing new My example uses the spread operator and the rest parameters features of JavaScript defined in the 6th edition of the ECMA 262 standard published on June 2015 and developed much earlier better known as ES6 or ES2015 See pulli href http www ecma international org ecma 262 rel noreferrer http www ecma international org ecma 262 lili href https developer mozilla org en docs Web JavaScript Reference Functions rest parameters rel noreferrer https developer mozilla org en docs Web JavaScript Reference Functions rest parameters lili href https developer mozilla org en docs Web JavaScript Reference Operators Spread operator rel noreferrer https developer mozilla org en docs Web JavaScript Reference Operators Spread operator li ulpIt makes code like this so simple that it sin not to use it For old platforms that don support it natively you can always use Babel or other tools to transpile it to older syntax and in fact my example transpiled by Babel is still shorter and simpler than most of the examples here but it doesn really matter because the output of transpilation is not something that you need to understand or maintain it just fact that found interesting ph2Conclusion h2pThere no need to write hundred of lines of code that is hard to maintain and there is no need to use entire libraries for such simple thing when two lines of vanilla JavaScript can easily get the job done As you can see it really pays off to use modern features of the language and in cases where you need to support archaic platforms with no native support of the modern features you can always use Babel or other tools to transpile the new syntax to the old one ph2Don code like it 1995 h2pJavaScript evolves and it does so for reason TC39 does an amazing job of the language design with adding new features and the browser vendors do an amazing job of implementing those features ppTo see the current state of native support of any given feature in the browsers see pulli href http caniuse com rel noreferrer http caniuse com lili href https kangax github io compat table rel noreferrer https kangax github io compat table li ulpTo see the support in Node versions see pulli href http node green rel noreferrer http node green li ulpTo use modern syntax on platforms that don support it natively use Babel pulli href https babeljs io rel noreferrer https babeljs io li ul thanks lot for really good answer although would like to ask you to improve it bit to get rig of warning of shadowed variables local vars and local vars,0,NULL,NULL 83477,955061,1344249,Census,NULL,h12017 Update line answer with vanilla JS h1pAll of the answers here are strongoverly complicated strong most of them take 20 lines of code or even more ppThis example uses just strongtwo lines of vanilla JavaScript strong no lodash underscore or other libraries ppre codelet gt concat map gt map gt concat let cartesian gt cartesian code preh3Update h3pThis is the same as above but improved to strictly follow the href http airbnb io javascript rel noreferrer Airbnb JavaScript Style Guide validated using href http eslint org rel noreferrer ESLint with href https www npmjs com package eslint config airbnb base rel noreferrer eslint config airbnb base ppre codeconst gt concat map gt map gt concat const cartesian gt cartesian code prepSpecial thanks to strongZuBB strong for letting me know about linter problems with the original code ph2Example h2pThis is the exact example from your question ppre codelet output cartesian 10 20 100 200 300 code preh2Output h2pThis is the output of that command ppre code 10 100 10 200 10 300 20 100 20 200 20 300 10 100 10 200 10 300 20 100 20 200 20 300 code preh2Demo h2pSee demos on pulli href http jsbin com vihibelome edit js console rel noreferrer JS Bin with Babel for old browsers lili href http jsbin com siwefuqina edit js console rel noreferrer JS Bin without Babel for modern browsers li ulh2Syntax h2pThe syntax that used here is nothing new My example uses the spread operator and the rest parameters features of JavaScript defined in the 6th edition of the ECMA 262 standard published on June 2015 and developed much earlier better known as ES6 or ES2015 See pulli href http www ecma international org ecma 262 rel noreferrer http www ecma international org ecma 262 lili href https developer mozilla org en docs Web JavaScript Reference Functions rest parameters rel noreferrer https developer mozilla org en docs Web JavaScript Reference Functions rest parameters lili href https developer mozilla org en docs Web JavaScript Reference Operators Spread operator rel noreferrer https developer mozilla org en docs Web JavaScript Reference Operators Spread operator li ulpIt makes code like this so simple that it sin not to use it For old platforms that don support it natively you can always use Babel or other tools to transpile it to older syntax and in fact my example transpiled by Babel is still shorter and simpler than most of the examples here but it doesn really matter because the output of transpilation is not something that you need to understand or maintain it just fact that found interesting ph2Conclusion h2pThere no need to write hundred of lines of code that is hard to maintain and there is no need to use entire libraries for such simple thing when two lines of vanilla JavaScript can easily get the job done As you can see it really pays off to use modern features of the language and in cases where you need to support archaic platforms with no native support of the modern features you can always use Babel or other tools to transpile the new syntax to the old one ph2Don code like it 1995 h2pJavaScript evolves and it does so for reason TC39 does an amazing job of the language design with adding new features and the browser vendors do an amazing job of implementing those features ppTo see the current state of native support of any given feature in the browsers see pulli href http caniuse com rel noreferrer http caniuse com lili href https kangax github io compat table rel noreferrer https kangax github io compat table li ulpTo see the support in Node versions see pulli href http node green rel noreferrer http node green li ulpTo use modern syntax on platforms that don support it natively use Babel pulli href https babeljs io rel noreferrer https babeljs io li ul thanks lot for really good answer although would like to ask you to improve it bit to get rig of warning of shadowed variables local vars and local vars,0,NULL,NULL 83478,1174427,1186952,NULL,NULL,NULL,0,NULL,NULL 83479,760520,423968,NULL,NULL,NULL,0,NULL,NULL 83480,1763508,1284008,NULL,NULL,NULL,0,NULL,NULL 83481,213559,1284008,NULL,NULL,NULL,0,NULL,NULL 83482,1521766,607203,Commentator Popular Question Necromancer Revival Necromancer,NULL,NULL,0,NULL,NULL 83483,1104982,264250,Good Question Nice Question Yearling Taxonomist Popular Question Popular Question Notable Question Yearling Famous Question Famous Question Nice Question Notable Question Notable Question Nice Question Nice Answer Nice Question Popular Question Good Question Notable Question Good Question Revival Popular Question Yearling Good Question Notable Question Notable Question Nice Question Nice Question Notable Question Notable Question,NULL,NULL,0,NULL,NULL 83484,75696,76859,Announcer Good Answer Good Answer Good Question Yearling Famous Question Great Question Notable Question Popular Question Yearling Necromancer Good Question Good Answer Good Answer Necromancer Yearling Notable Question Promoter Necromancer Popular Question Nice Answer Enlightened Notable Question,NULL,NULL,0,NULL,NULL 83485,606255,2583,Nice Answer Good Question Nice Question Nice Answer Nice Question Tumbleweed Guru Yearling Nice Answer Good Answer Good Answer Notable Question Yearling Nice Answer Good Answer Revival Yearling Notable Question,NULL,NULL,0,NULL,NULL 83486,791840,144214,Popular Question Teacher Yearling Notable Question,NULL,NULL,0,NULL,NULL 83487,104528,749774,Critic Commentator Yearling Nice Answer Yearling Necromancer Necromancer Student Necromancer Nice Answer Yearling Excavator,NULL,NULL,0,NULL,NULL 83488,243992,614715,NULL,NULL,NULL,0,NULL,NULL 83489,14473,273693,Yearling Nice Answer Yearling,NULL,NULL,0,NULL,NULL 83490,169585,147307,Announcer Notable Question Yearling Necromancer,NULL,NULL,0,NULL,NULL 83491,2294353,1070735,NULL,NULL,NULL,0,NULL,NULL 83492,129022,949782,NULL,NULL,NULL,0,NULL,NULL 83493,670973,1388980,NULL,NULL,NULL,0,NULL,NULL 83494,888895,1441020,NULL,NULL,NULL,0,NULL,NULL 83495,539354,549851,NULL,NULL,NULL,0,NULL,NULL 83496,138919,263356,Stellar Question Yearling Notable Question Nice Answer Yearling Notable Question Popular Question Yearling Notable Question,NULL,NULL,0,NULL,NULL 83497,494711,1494313,Informed Autobiographer Teacher Supporter,NULL,NULL,0,NULL,NULL 83498,258293,760314,Notable Question Investor Altruist Notable Question Nice Question Famous Question Yearling Custodian Citizen Patrol Notable Question Popular Question Caucus Popular Question Notable Question Popular Question Yearling Nice Question Notable Question Famous Question Popular Question Famous Question Famous Question Yearling Famous Question Popular Question Popular Question,NULL,NULL,0,NULL,NULL 83499,901813,675344,NULL,NULL,NULL,0,NULL,NULL 83500,41662,520759,NULL,NULL,NULL,0,NULL,NULL 83501,339213,1224662,Popular Question Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 83502,2633200,1224662,Popular Question Good Question Caucus Yearling,NULL,NULL,0,NULL,NULL 83503,3432731,1466020,NULL,NULL,NULL,0,NULL,NULL 83504,202255,358215,NULL,NULL,NULL,0,NULL,NULL 83505,339528,685047,NULL,NULL,NULL,0,NULL,NULL 83506,104111,1315062,Teacher Supporter Necromancer Critic Commentator Caucus,NULL,NULL,0,NULL,NULL 83507,74411,740004,Famous Question Announcer Necromancer Good Answer Yearling,NULL,codeobject class name code or codeobject meta object name code should give you the name of the model class However this strongcannot be used in templates strong because the attribute names start with an underscore ppThere isn built in way to get at that value from the templates so you ll have to define model method that returns that attribute or for more generic reusable solution use template filter ppre code filterdef to class name value return value class name code prepwhich you can use in your template as ppre code obj to class name code pre Add filter file in your app templatetags directory naming as to class name py And you have to restart Django after you added filter Don forget to load to class name in your template How do make MySQL NOW and CURDATE functions use UTC mysql timezone utc pI want to make it so calls to NOW and CURDATE in MySQL queries return the date in UTC How do make this happen without going through and changing all queries that use these functions how about this http w3resource com mysql date and time functions mysql utc timestamp function php pHow about ppre codeconn MySQLdb connect host user password database cursor conn cursor attempts 0while attempts lt try cursor execute query rows cursor fetchall for row in rows do something with the data break except MySQLdb Error attempts print MySQL Error args args code pre how do try to re connect mean what about the error was happen on the MySQLdb connect oh sorry so stupid think found the way,0,NULL,NULL 83508,1740771,1374088,NULL,NULL,NULL,0,NULL,NULL 83509,43925,792022,NULL,NULL,NULL,0,NULL,NULL 83510,488393,1318572,NULL,NULL,NULL,0,NULL,NULL 83511,170670,1561326,Editor Nice Answer,NULL,NULL,0,NULL,NULL 83512,19565,1171163,Yearling,NULL,NULL,0,NULL,NULL 83513,539356,988678,Guru Nice Answer Good Answer Yearling Caucus erlang Necromancer Necromancer Caucus Nice Answer Civic Duty Yearling Nice Answer Nice Answer Enlightened Census Caucus Nice Answer Enlightened Nice Answer Enlightened Good Answer Pundit Nice Answer Enlightened Nice Answer Yearling Nice Answer Enlightened,NULL,erlang uuid generator erlang pWhat module library do you use to generate uuid By far the prettiest and most compliance complete but biased zuuid https gitlab com zxq9 zuuid When pattern matching maps in Erlang why is this variable unbound erlang maps pattern matching pre code module count export count count when is list gt do count count gt error badarg do count Acc gt Acc do count gt do count gt do count Acc gt do count Acc do count Acc gt do count Acc gt code prepIn this example the third clause where the map key exists and has count associated with it will not compile The compiler complains ppre codecount erl 11 variable is unbound code prepWhy is unbound ppThis works by the way ppre codedo count Acc gt Acc do count Acc gt do count maps update with fun gt end Acc code prepBut it seems like the pattern match emought em to work and it doesn This comes up lot If you have further questions about it please drop by the Erlang OTP chat room https chat stackoverflow com rooms 75358 erlang otp and ask so can update my answer Between Richard excellent answer and my own more expository exploratory one want to create canonical reference out of this question page for this issue whenever it comes up later esp on the ML and IRC,0,NULL,NULL 83514,1084947,195615,Caucus,NULL,NULL,0,NULL,NULL 83515,707248,1204889,NULL,NULL,NULL,0,NULL,NULL 83516,429132,631506,NULL,NULL,NULL,0,NULL,NULL 83517,888520,480021,NULL,NULL,NULL,0,NULL,NULL 83518,15417,13186,Good Answer objective-c Yearling Caucus Yearling Census Caucus Yearling,NULL,NULL,0,NULL,NULL 83519,261611,770390,Tag Editor Nice Question Popular Question Yearling Popular Question Nice Question Caucus Constituent Famous Question Popular Question Good Question Yearling,NULL,NULL,0,NULL,NULL 83520,150195,1373580,NULL,NULL,NULL,0,NULL,NULL 83521,1595238,907803,Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83522,10912935,907803,Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83523,63889,907803,Popular Question Caucus Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83524,491586,1430067,NULL,NULL,NULL,0,NULL,NULL 83525,159558,950035,NULL,NULL,NULL,0,NULL,NULL 83526,922759,1447765,NULL,NULL,NULL,0,NULL,NULL 83527,963781,1279413,NULL,NULL,NULL,0,NULL,NULL 83528,30610,861091,Critic Yearling Supporter,NULL,NULL,0,NULL,NULL 83529,579492,853389,Yearling Caucus Constituent php Yearling Custodian Custodian Caucus Great Answer Informed Citizen Patrol Yearling,NULL,NULL,0,NULL,NULL 83530,1601708,973558,NULL,NULL,NULL,0,NULL,NULL 83531,11671,1489509,Revival Revival Nice Answer,NULL,NULL,0,NULL,NULL 83532,124730,344971,NULL,NULL,NULL,0,NULL,NULL 83533,18024,53800,Famous Question Good Question Nice Answer,NULL,NULL,0,NULL,NULL 83534,290047,909161,NULL,NULL,NULL,0,NULL,NULL 83535,214152,1112551,Self-Learner Yearling Popular Question Popular Question Notable Question,NULL,NULL,0,NULL,NULL 83536,2151,356679,Yearling Great Answer Nice Answer Yearling Notable Question Yearling,NULL,NULL,0,NULL,NULL 83537,872938,839265,NULL,NULL,NULL,0,NULL,NULL 83538,78088,1318666,NULL,NULL,NULL,0,NULL,NULL 83539,252759,887042,NULL,NULL,NULL,0,NULL,NULL 83540,6117425,1189356,NULL,NULL,NULL,0,NULL,NULL 83541,347436,1261051,NULL,NULL,NULL,0,NULL,NULL 83542,18139,661685,NULL,NULL,NULL,0,NULL,NULL 83543,251736,1139071,Revival Supporter Editor,NULL,NULL,0,NULL,NULL 83544,1216937,1302647,NULL,NULL,NULL,0,NULL,NULL 83545,408530,1382182,NULL,NULL,NULL,0,NULL,NULL 83546,1115066,592018,NULL,NULL,NULL,0,NULL,NULL 83547,100166,592018,NULL,NULL,NULL,0,NULL,NULL 83548,132771,5908,Yearling Popular Question Yearling,NULL,NULL,0,NULL,NULL 83549,165085,235750,Caucus Caucus,NULL,NULL,0,NULL,NULL 83550,484728,497418,NULL,NULL,NULL,NULL,NULL,NULL